UNPKG

@transkripid/flowbite-react

Version:

Official React components built for Flowbite and Tailwind CSS - Transkrip.id fork

1 lines 2.99 kB
{"version":3,"file":"theme.mjs","sources":["../../../src/components/Modal/theme.ts"],"sourcesContent":["import type { FlowbiteModalTheme } from './Modal';\n\nexport const modalTheme: FlowbiteModalTheme = {\n root: {\n base: 'fixed top-0 right-0 left-0 z-50 h-modal h-screen overflow-y-auto overflow-x-hidden md:inset-0 md:h-full',\n show: {\n on: 'flex bg-gray-900 bg-opacity-50 dark:bg-opacity-80',\n off: 'hidden',\n },\n sizes: {\n sm: 'max-w-sm',\n md: 'max-w-md',\n lg: 'max-w-lg',\n xl: 'max-w-xl',\n '2xl': 'max-w-2xl',\n '3xl': 'max-w-3xl',\n '4xl': 'max-w-4xl',\n '5xl': 'max-w-5xl',\n '6xl': 'max-w-6xl',\n '7xl': 'max-w-7xl',\n },\n positions: {\n 'top-left': 'items-start justify-start',\n 'top-center': 'items-start justify-center',\n 'top-right': 'items-start justify-end',\n 'center-left': 'items-center justify-start',\n center: 'items-center justify-center',\n 'center-right': 'items-center justify-end',\n 'bottom-right': 'items-end justify-end',\n 'bottom-center': 'items-end justify-center',\n 'bottom-left': 'items-end justify-start',\n },\n },\n content: {\n base: 'relative h-full w-full p-4 md:h-auto',\n inner: 'relative rounded-lg bg-white shadow dark:bg-gray-700 flex flex-col max-h-[90vh]',\n },\n body: {\n base: 'p-6 flex-1 overflow-auto',\n popup: 'pt-0',\n },\n header: {\n base: 'flex items-start justify-between rounded-t dark:border-gray-600 border-b p-5',\n popup: 'p-2 border-b-0',\n title: 'text-xl font-medium text-gray-900 dark:text-white',\n close: {\n base: 'ml-auto inline-flex items-center rounded-lg bg-transparent p-1.5 text-sm text-gray-400 hover:bg-gray-200 hover:text-gray-900 dark:hover:bg-gray-600 dark:hover:text-white',\n icon: 'h-5 w-5',\n },\n },\n footer: {\n base: 'flex items-center space-x-2 rounded-b border-gray-200 p-6 dark:border-gray-600',\n popup: 'border-t',\n },\n};\n"],"names":["modalTheme","root","base","show","on","off","sizes","sm","md","lg","xl","positions","center","content","inner","body","popup","header","title","close","icon","footer"],"mappings":"AAEO,MAAMA,IAAiC;AAAA,EAC5CC,MAAM;AAAA,IACJC,MAAM;AAAA,IACNC,MAAM;AAAA,MACJC,IAAI;AAAA,MACJC,KAAK;AAAA,IACP;AAAA,IACAC,OAAO;AAAA,MACLC,IAAI;AAAA,MACJC,IAAI;AAAA,MACJC,IAAI;AAAA,MACJC,IAAI;AAAA,MACJ,OAAO;AAAA,MACP,OAAO;AAAA,MACP,OAAO;AAAA,MACP,OAAO;AAAA,MACP,OAAO;AAAA,MACP,OAAO;AAAA,IACT;AAAA,IACAC,WAAW;AAAA,MACT,YAAY;AAAA,MACZ,cAAc;AAAA,MACd,aAAa;AAAA,MACb,eAAe;AAAA,MACfC,QAAQ;AAAA,MACR,gBAAgB;AAAA,MAChB,gBAAgB;AAAA,MAChB,iBAAiB;AAAA,MACjB,eAAe;AAAA,IACjB;AAAA,EACF;AAAA,EACAC,SAAS;AAAA,IACPX,MAAM;AAAA,IACNY,OAAO;AAAA,EACT;AAAA,EACAC,MAAM;AAAA,IACJb,MAAM;AAAA,IACNc,OAAO;AAAA,EACT;AAAA,EACAC,QAAQ;AAAA,IACNf,MAAM;AAAA,IACNc,OAAO;AAAA,IACPE,OAAO;AAAA,IACPC,OAAO;AAAA,MACLjB,MAAM;AAAA,MACNkB,MAAM;AAAA,IACR;AAAA,EACF;AAAA,EACAC,QAAQ;AAAA,IACNnB,MAAM;AAAA,IACNc,OAAO;AAAA,EACT;AACF;"}