@codefast/ui 0.0.39 → 0.0.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{chunk-EVN2IB57.js → chunk-6EAQQBWG.js} +2 -2
- package/dist/chunk-6EAQQBWG.js.map +1 -0
- package/dist/{chunk-YR36SVVG.mjs → chunk-7HJV22OF.mjs} +1 -1
- package/dist/chunk-7HJV22OF.mjs.map +1 -0
- package/dist/{chunk-5WJB3UAO.js → chunk-CERSQE5J.js} +1 -1
- package/dist/chunk-CERSQE5J.js.map +1 -0
- package/dist/{chunk-ZWGC5M4G.js → chunk-DTSAQICV.js} +1 -1
- package/dist/chunk-DTSAQICV.js.map +1 -0
- package/dist/{chunk-UPZHCTQV.js → chunk-ELWITZPX.js} +2 -2
- package/dist/chunk-ELWITZPX.js.map +1 -0
- package/dist/{chunk-WLMYX3C7.mjs → chunk-GDMHMSJ2.mjs} +2 -2
- package/dist/chunk-GDMHMSJ2.mjs.map +1 -0
- package/dist/{chunk-UJJZZCAC.js → chunk-HQ4AUOQM.js} +1 -1
- package/dist/{chunk-UJJZZCAC.js.map → chunk-HQ4AUOQM.js.map} +1 -1
- package/dist/{chunk-HLXU3SQI.mjs → chunk-HWEFQSTC.mjs} +1 -1
- package/dist/chunk-HWEFQSTC.mjs.map +1 -0
- package/dist/{chunk-JTAXNFUM.mjs → chunk-HX5YKP4E.mjs} +2 -2
- package/dist/chunk-HX5YKP4E.mjs.map +1 -0
- package/dist/{chunk-PLX35IKX.mjs → chunk-I6QCJDIF.mjs} +1 -1
- package/dist/chunk-I6QCJDIF.mjs.map +1 -0
- package/dist/{chunk-4TJBMO2Y.mjs → chunk-KZ3CIZTP.mjs} +1 -1
- package/dist/chunk-KZ3CIZTP.mjs.map +1 -0
- package/dist/{chunk-466PAJCA.mjs → chunk-LEUB3C3L.mjs} +1 -1
- package/dist/chunk-LEUB3C3L.mjs.map +1 -0
- package/dist/{chunk-KJ77RPJ4.mjs → chunk-M5UKNISJ.mjs} +2 -2
- package/dist/chunk-M5UKNISJ.mjs.map +1 -0
- package/dist/{chunk-EYERINEJ.js → chunk-MZJL73RI.js} +1 -1
- package/dist/chunk-MZJL73RI.js.map +1 -0
- package/dist/{chunk-JCMRDCFT.js → chunk-NH6X3FON.js} +1 -1
- package/dist/{chunk-JCMRDCFT.js.map → chunk-NH6X3FON.js.map} +1 -1
- package/dist/{chunk-UDNWQQ3I.js → chunk-NSK74YTM.js} +2 -2
- package/dist/chunk-NSK74YTM.js.map +1 -0
- package/dist/{chunk-N6QGG4WS.mjs → chunk-P5AV3QU7.mjs} +2 -2
- package/dist/chunk-P5AV3QU7.mjs.map +1 -0
- package/dist/{chunk-GRQGCS7U.mjs → chunk-PWF46YXQ.mjs} +2 -2
- package/dist/chunk-PWF46YXQ.mjs.map +1 -0
- package/dist/{chunk-MSHUAEXI.js → chunk-SCPFGC2X.js} +2 -2
- package/dist/chunk-SCPFGC2X.js.map +1 -0
- package/dist/{chunk-JIHHUXA5.js → chunk-VXPAGNPJ.js} +2 -2
- package/dist/chunk-VXPAGNPJ.js.map +1 -0
- package/dist/{chunk-6B2PU2GG.mjs → chunk-WL65TBKJ.mjs} +2 -2
- package/dist/chunk-WL65TBKJ.mjs.map +1 -0
- package/dist/{chunk-FEE6PNWV.js → chunk-XM4Y2S5E.js} +2 -2
- package/dist/chunk-XM4Y2S5E.js.map +1 -0
- package/dist/{chunk-7PJR4WFR.mjs → chunk-ZEYIBYZP.mjs} +2 -2
- package/dist/chunk-ZEYIBYZP.mjs.map +1 -0
- package/dist/{chunk-AEWLL6A2.js → chunk-ZTEJNUH6.js} +2 -2
- package/dist/chunk-ZTEJNUH6.js.map +1 -0
- package/dist/lib/utils.js +1 -1
- package/dist/lib/utils.mjs +1 -1
- package/dist/plugin/animate.plugin.d.mts +9 -0
- package/dist/plugin/animate.plugin.d.ts +9 -0
- package/dist/plugin/animate.plugin.js +1 -1
- package/dist/plugin/animate.plugin.mjs +1 -1
- package/dist/plugin/base.plugin.d.mts +8 -0
- package/dist/plugin/base.plugin.d.ts +8 -0
- package/dist/plugin/base.plugin.js +1 -1
- package/dist/plugin/base.plugin.mjs +1 -1
- package/dist/plugin/perspective.plugin.d.mts +8 -0
- package/dist/plugin/perspective.plugin.d.ts +8 -0
- package/dist/plugin/perspective.plugin.js +1 -1
- package/dist/plugin/perspective.plugin.mjs +1 -1
- package/dist/react/accordion.js +1 -1
- package/dist/react/accordion.js.map +1 -1
- package/dist/react/accordion.mjs +1 -1
- package/dist/react/accordion.mjs.map +1 -1
- package/dist/react/alert-dialog.js +1 -1
- package/dist/react/alert-dialog.js.map +1 -1
- package/dist/react/alert-dialog.mjs +1 -1
- package/dist/react/alert-dialog.mjs.map +1 -1
- package/dist/react/alert.js +1 -1
- package/dist/react/alert.js.map +1 -1
- package/dist/react/alert.mjs +1 -1
- package/dist/react/alert.mjs.map +1 -1
- package/dist/react/aspect-ratio.js.map +1 -1
- package/dist/react/aspect-ratio.mjs.map +1 -1
- package/dist/react/avatar.js +1 -1
- package/dist/react/avatar.js.map +1 -1
- package/dist/react/avatar.mjs +1 -1
- package/dist/react/avatar.mjs.map +1 -1
- package/dist/react/badge.js +1 -1
- package/dist/react/badge.js.map +1 -1
- package/dist/react/badge.mjs +1 -1
- package/dist/react/badge.mjs.map +1 -1
- package/dist/react/blockquote.js.map +1 -1
- package/dist/react/blockquote.mjs.map +1 -1
- package/dist/react/box.d.mts +2 -2
- package/dist/react/box.d.ts +2 -2
- package/dist/react/box.js.map +1 -1
- package/dist/react/box.mjs.map +1 -1
- package/dist/react/breadcrumb.js +1 -1
- package/dist/react/breadcrumb.js.map +1 -1
- package/dist/react/breadcrumb.mjs +1 -1
- package/dist/react/breadcrumb.mjs.map +1 -1
- package/dist/react/button.js +1 -1
- package/dist/react/button.mjs +1 -1
- package/dist/react/calendar.js +1 -1
- package/dist/react/calendar.js.map +1 -1
- package/dist/react/calendar.mjs +1 -1
- package/dist/react/calendar.mjs.map +1 -1
- package/dist/react/card.js +1 -1
- package/dist/react/card.js.map +1 -1
- package/dist/react/card.mjs +1 -1
- package/dist/react/card.mjs.map +1 -1
- package/dist/react/carousel.d.mts +1 -1
- package/dist/react/carousel.d.ts +1 -1
- package/dist/react/carousel.js +1 -1
- package/dist/react/carousel.js.map +1 -1
- package/dist/react/carousel.mjs +1 -1
- package/dist/react/carousel.mjs.map +1 -1
- package/dist/react/checkbox-cards.js +1 -1
- package/dist/react/checkbox-cards.js.map +1 -1
- package/dist/react/checkbox-cards.mjs +1 -1
- package/dist/react/checkbox-cards.mjs.map +1 -1
- package/dist/react/checkbox-group.js +1 -1
- package/dist/react/checkbox-group.js.map +1 -1
- package/dist/react/checkbox-group.mjs +1 -1
- package/dist/react/checkbox-group.mjs.map +1 -1
- package/dist/react/checkbox-group.primitive.d.mts +8 -8
- package/dist/react/checkbox-group.primitive.d.ts +8 -8
- package/dist/react/checkbox-group.primitive.js +1 -1
- package/dist/react/checkbox-group.primitive.mjs +1 -1
- package/dist/react/checkbox.js +1 -1
- package/dist/react/checkbox.js.map +1 -1
- package/dist/react/checkbox.mjs +1 -1
- package/dist/react/checkbox.mjs.map +1 -1
- package/dist/react/code.js.map +1 -1
- package/dist/react/code.mjs.map +1 -1
- package/dist/react/collapsible.js +1 -1
- package/dist/react/collapsible.js.map +1 -1
- package/dist/react/collapsible.mjs +1 -1
- package/dist/react/collapsible.mjs.map +1 -1
- package/dist/react/command.js +1 -1
- package/dist/react/command.js.map +1 -1
- package/dist/react/command.mjs +1 -1
- package/dist/react/command.mjs.map +1 -1
- package/dist/react/container.js +1 -1
- package/dist/react/container.js.map +1 -1
- package/dist/react/container.mjs +1 -1
- package/dist/react/container.mjs.map +1 -1
- package/dist/react/context-menu.js +1 -1
- package/dist/react/context-menu.js.map +1 -1
- package/dist/react/context-menu.mjs +1 -1
- package/dist/react/context-menu.mjs.map +1 -1
- package/dist/react/data-table.d.mts +1 -1
- package/dist/react/data-table.d.ts +1 -1
- package/dist/react/data-table.js +1 -1
- package/dist/react/data-table.js.map +1 -1
- package/dist/react/data-table.mjs +1 -1
- package/dist/react/data-table.mjs.map +1 -1
- package/dist/react/dialog.js +1 -1
- package/dist/react/dialog.mjs +1 -1
- package/dist/react/drawer.js +1 -1
- package/dist/react/drawer.js.map +1 -1
- package/dist/react/drawer.mjs +1 -1
- package/dist/react/drawer.mjs.map +1 -1
- package/dist/react/dropdown-menu.js +1 -1
- package/dist/react/dropdown-menu.mjs +1 -1
- package/dist/react/em.js.map +1 -1
- package/dist/react/em.mjs.map +1 -1
- package/dist/react/form.js +1 -1
- package/dist/react/form.js.map +1 -1
- package/dist/react/form.mjs +1 -1
- package/dist/react/form.mjs.map +1 -1
- package/dist/react/heading.d.mts +1 -1
- package/dist/react/heading.d.ts +1 -1
- package/dist/react/heading.js.map +1 -1
- package/dist/react/heading.mjs.map +1 -1
- package/dist/react/hover-card.js +1 -1
- package/dist/react/hover-card.js.map +1 -1
- package/dist/react/hover-card.mjs +1 -1
- package/dist/react/hover-card.mjs.map +1 -1
- package/dist/react/input-otp.js +1 -1
- package/dist/react/input-otp.js.map +1 -1
- package/dist/react/input-otp.mjs +1 -1
- package/dist/react/input-otp.mjs.map +1 -1
- package/dist/react/input.js +1 -1
- package/dist/react/input.js.map +1 -1
- package/dist/react/input.mjs +1 -1
- package/dist/react/input.mjs.map +1 -1
- package/dist/react/kbd.js +1 -1
- package/dist/react/kbd.js.map +1 -1
- package/dist/react/kbd.mjs +1 -1
- package/dist/react/kbd.mjs.map +1 -1
- package/dist/react/label.js +1 -1
- package/dist/react/label.mjs +1 -1
- package/dist/react/menubar.js +1 -1
- package/dist/react/menubar.js.map +1 -1
- package/dist/react/menubar.mjs +1 -1
- package/dist/react/menubar.mjs.map +1 -1
- package/dist/react/navigation-menu.js +1 -1
- package/dist/react/navigation-menu.js.map +1 -1
- package/dist/react/navigation-menu.mjs +1 -1
- package/dist/react/navigation-menu.mjs.map +1 -1
- package/dist/react/pagination.d.mts +1 -1
- package/dist/react/pagination.d.ts +1 -1
- package/dist/react/pagination.js +1 -1
- package/dist/react/pagination.js.map +1 -1
- package/dist/react/pagination.mjs +1 -1
- package/dist/react/pagination.mjs.map +1 -1
- package/dist/react/popover.js +1 -1
- package/dist/react/popover.js.map +1 -1
- package/dist/react/popover.mjs +1 -1
- package/dist/react/popover.mjs.map +1 -1
- package/dist/react/pre.js.map +1 -1
- package/dist/react/pre.mjs.map +1 -1
- package/dist/react/progress.js +1 -1
- package/dist/react/progress.js.map +1 -1
- package/dist/react/progress.mjs +1 -1
- package/dist/react/progress.mjs.map +1 -1
- package/dist/react/quote.js.map +1 -1
- package/dist/react/quote.mjs.map +1 -1
- package/dist/react/radio-cards.js +1 -1
- package/dist/react/radio-cards.js.map +1 -1
- package/dist/react/radio-cards.mjs +1 -1
- package/dist/react/radio-cards.mjs.map +1 -1
- package/dist/react/radio-group.js +1 -1
- package/dist/react/radio-group.js.map +1 -1
- package/dist/react/radio-group.mjs +1 -1
- package/dist/react/radio-group.mjs.map +1 -1
- package/dist/react/radio.js +1 -1
- package/dist/react/radio.js.map +1 -1
- package/dist/react/radio.mjs +1 -1
- package/dist/react/radio.mjs.map +1 -1
- package/dist/react/resizable.js +1 -1
- package/dist/react/resizable.js.map +1 -1
- package/dist/react/resizable.mjs +1 -1
- package/dist/react/resizable.mjs.map +1 -1
- package/dist/react/scroll-area.js +1 -1
- package/dist/react/scroll-area.js.map +1 -1
- package/dist/react/scroll-area.mjs +1 -1
- package/dist/react/scroll-area.mjs.map +1 -1
- package/dist/react/section.js.map +1 -1
- package/dist/react/section.mjs.map +1 -1
- package/dist/react/select.js +1 -1
- package/dist/react/select.mjs +1 -1
- package/dist/react/separator.js +1 -1
- package/dist/react/separator.js.map +1 -1
- package/dist/react/separator.mjs +1 -1
- package/dist/react/separator.mjs.map +1 -1
- package/dist/react/sheet.js +1 -1
- package/dist/react/sheet.js.map +1 -1
- package/dist/react/sheet.mjs +1 -1
- package/dist/react/sheet.mjs.map +1 -1
- package/dist/react/skeleton.js +1 -1
- package/dist/react/skeleton.js.map +1 -1
- package/dist/react/skeleton.mjs +1 -1
- package/dist/react/skeleton.mjs.map +1 -1
- package/dist/react/slider.js +1 -1
- package/dist/react/slider.js.map +1 -1
- package/dist/react/slider.mjs +1 -1
- package/dist/react/slider.mjs.map +1 -1
- package/dist/react/sonner.js.map +1 -1
- package/dist/react/sonner.mjs.map +1 -1
- package/dist/react/spinner.js +1 -1
- package/dist/react/spinner.mjs +1 -1
- package/dist/react/strong.js.map +1 -1
- package/dist/react/strong.mjs.map +1 -1
- package/dist/react/switch.js +1 -1
- package/dist/react/switch.js.map +1 -1
- package/dist/react/switch.mjs +1 -1
- package/dist/react/switch.mjs.map +1 -1
- package/dist/react/table.js +1 -1
- package/dist/react/table.js.map +1 -1
- package/dist/react/table.mjs +1 -1
- package/dist/react/table.mjs.map +1 -1
- package/dist/react/tabs.js +1 -1
- package/dist/react/tabs.js.map +1 -1
- package/dist/react/tabs.mjs +1 -1
- package/dist/react/tabs.mjs.map +1 -1
- package/dist/react/text.d.mts +2 -2
- package/dist/react/text.d.ts +2 -2
- package/dist/react/text.js.map +1 -1
- package/dist/react/text.mjs.map +1 -1
- package/dist/react/textarea.js +1 -1
- package/dist/react/textarea.js.map +1 -1
- package/dist/react/textarea.mjs +1 -1
- package/dist/react/textarea.mjs.map +1 -1
- package/dist/react/toggle-group.js +1 -1
- package/dist/react/toggle-group.js.map +1 -1
- package/dist/react/toggle-group.mjs +1 -1
- package/dist/react/toggle-group.mjs.map +1 -1
- package/dist/react/toggle.js +1 -1
- package/dist/react/toggle.mjs +1 -1
- package/dist/react/tooltip.js +1 -1
- package/dist/react/tooltip.js.map +1 -1
- package/dist/react/tooltip.mjs +1 -1
- package/dist/react/tooltip.mjs.map +1 -1
- package/dist/tailwind.config.d.mts +5 -0
- package/dist/tailwind.config.d.ts +5 -0
- package/dist/tailwind.config.js +1 -1
- package/dist/tailwind.config.js.map +1 -1
- package/dist/tailwind.config.mjs +1 -1
- package/dist/tailwind.config.mjs.map +1 -1
- package/package.json +6 -6
- package/plugin/animate.plugin.ts +114 -111
- package/plugin/base.plugin.ts +7 -7
- package/plugin/perspective.plugin.ts +1 -1
- package/src/lib/utils.ts +2 -2
- package/src/react/accordion.tsx +65 -41
- package/src/react/alert-dialog.tsx +130 -62
- package/src/react/alert.tsx +50 -24
- package/src/react/aspect-ratio.tsx +6 -4
- package/src/react/avatar.tsx +47 -19
- package/src/react/badge.tsx +15 -10
- package/src/react/blockquote.tsx +11 -8
- package/src/react/box.tsx +11 -9
- package/src/react/breadcrumb.tsx +62 -29
- package/src/react/button.tsx +47 -31
- package/src/react/calendar.tsx +54 -37
- package/src/react/card.tsx +64 -30
- package/src/react/carousel.tsx +101 -43
- package/src/react/checkbox-cards.tsx +60 -33
- package/src/react/checkbox-group.primitive.tsx +93 -38
- package/src/react/checkbox-group.tsx +57 -34
- package/src/react/checkbox.tsx +24 -20
- package/src/react/code.tsx +9 -7
- package/src/react/collapsible.tsx +33 -23
- package/src/react/command.tsx +140 -75
- package/src/react/container.tsx +12 -8
- package/src/react/context-menu.tsx +228 -150
- package/src/react/data-table.tsx +51 -21
- package/src/react/dialog.tsx +95 -50
- package/src/react/drawer.tsx +96 -49
- package/src/react/dropdown-menu.tsx +199 -131
- package/src/react/em.tsx +9 -7
- package/src/react/form.tsx +96 -61
- package/src/react/heading.tsx +10 -8
- package/src/react/hover-card.tsx +42 -26
- package/src/react/input-otp.tsx +48 -37
- package/src/react/input.tsx +25 -15
- package/src/react/kbd.tsx +21 -19
- package/src/react/label.tsx +16 -14
- package/src/react/menubar.tsx +214 -135
- package/src/react/navigation-menu.tsx +153 -111
- package/src/react/pagination.tsx +59 -26
- package/src/react/popover.tsx +44 -29
- package/src/react/pre.tsx +9 -7
- package/src/react/progress.tsx +26 -19
- package/src/react/quote.tsx +9 -7
- package/src/react/radio-cards.tsx +32 -12
- package/src/react/radio-group.tsx +32 -12
- package/src/react/radio.tsx +24 -20
- package/src/react/resizable.tsx +13 -8
- package/src/react/scroll-area.tsx +56 -34
- package/src/react/section.tsx +9 -7
- package/src/react/select.tsx +167 -114
- package/src/react/separator.tsx +16 -7
- package/src/react/sheet.tsx +84 -34
- package/src/react/skeleton.tsx +8 -3
- package/src/react/slider.tsx +31 -24
- package/src/react/sonner.tsx +12 -10
- package/src/react/spinner.tsx +14 -9
- package/src/react/strong.tsx +9 -7
- package/src/react/switch.tsx +18 -16
- package/src/react/table.tsx +97 -52
- package/src/react/tabs.tsx +48 -38
- package/src/react/text.tsx +13 -10
- package/src/react/textarea.tsx +17 -15
- package/src/react/toggle-group.tsx +66 -23
- package/src/react/toggle.tsx +26 -18
- package/src/react/tooltip.tsx +43 -28
- package/tailwind.config.ts +62 -62
- package/dist/chunk-466PAJCA.mjs.map +0 -1
- package/dist/chunk-4TJBMO2Y.mjs.map +0 -1
- package/dist/chunk-5WJB3UAO.js.map +0 -1
- package/dist/chunk-6B2PU2GG.mjs.map +0 -1
- package/dist/chunk-7PJR4WFR.mjs.map +0 -1
- package/dist/chunk-AEWLL6A2.js.map +0 -1
- package/dist/chunk-EVN2IB57.js.map +0 -1
- package/dist/chunk-EYERINEJ.js.map +0 -1
- package/dist/chunk-FEE6PNWV.js.map +0 -1
- package/dist/chunk-GRQGCS7U.mjs.map +0 -1
- package/dist/chunk-HLXU3SQI.mjs.map +0 -1
- package/dist/chunk-JIHHUXA5.js.map +0 -1
- package/dist/chunk-JTAXNFUM.mjs.map +0 -1
- package/dist/chunk-KJ77RPJ4.mjs.map +0 -1
- package/dist/chunk-MSHUAEXI.js.map +0 -1
- package/dist/chunk-N6QGG4WS.mjs.map +0 -1
- package/dist/chunk-PLX35IKX.mjs.map +0 -1
- package/dist/chunk-UDNWQQ3I.js.map +0 -1
- package/dist/chunk-UPZHCTQV.js.map +0 -1
- package/dist/chunk-WLMYX3C7.mjs.map +0 -1
- package/dist/chunk-YR36SVVG.mjs.map +0 -1
- package/dist/chunk-ZWGC5M4G.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../tailwind.config.ts"],"sourcesContent":["import type { Config } from
|
|
1
|
+
{"version":3,"sources":["../tailwind.config.ts"],"sourcesContent":["import type { Config } from 'tailwindcss';\nimport { fontFamily } from 'tailwindcss/defaultTheme';\nimport animate from './plugin/animate.plugin';\nimport perspective from './plugin/perspective.plugin';\nimport base from './plugin/base.plugin';\n\nconst config: Config = {\n content: ['./src/**/*.{js,ts,jsx,tsx,mdx}'],\n darkMode: ['class'],\n plugins: [animate, perspective, base],\n theme: {\n extend: {\n animation: {\n 'collapsible-open': 'collapsible-open 200ms ease',\n 'collapsible-closed': 'collapsible-closed 200ms ease',\n 'caret-blink': 'caret-blink 1000ms ease infinite',\n },\n borderColor: {\n DEFAULT: 'hsl(var(--border))',\n },\n borderRadius: {\n sm: 'calc(var(--radius, 0.25rem) - 0.125px)', // 2px\n DEFAULT: 'var(--radius, 0.25rem)', // 4px\n md: 'calc(var(--radius, 0.25rem) + 0.125rem)', // 6px\n lg: 'calc(var(--radius, 0.25rem) + 0.25rem)', // 8px\n xl: 'calc(var(--radius, 0.25rem) + 0.5rem)', // 12px\n '2xl': 'calc(var(--radius, 0.25rem) + 0.75rem)', // 16px\n '3xl': 'calc(var(--radius, 0.25rem) + 1.25rem)', // 24px\n },\n colors: {\n accent: {\n DEFAULT: 'hsl(var(--accent))',\n foreground: 'hsl(var(--accent-foreground))',\n },\n background: 'hsl(var(--background))',\n border: 'hsl(var(--border))',\n card: {\n DEFAULT: 'hsl(var(--card))',\n foreground: 'hsl(var(--card-foreground))',\n },\n compound: 'hsl(var(--compound))',\n destructive: {\n DEFAULT: 'hsl(var(--destructive))',\n foreground: 'hsl(var(--destructive-foreground))',\n },\n foreground: 'hsl(var(--foreground))',\n info: {\n DEFAULT: 'hsl(var(--info))',\n foreground: 'hsl(var(--info-foreground))',\n },\n input: 'hsl(var(--input))',\n muted: {\n DEFAULT: 'hsl(var(--muted))',\n foreground: 'hsl(var(--muted-foreground))',\n },\n popover: {\n DEFAULT: 'hsl(var(--popover))',\n foreground: 'hsl(var(--popover-foreground))',\n },\n primary: {\n DEFAULT: 'hsl(var(--primary))',\n foreground: 'hsl(var(--primary-foreground))',\n },\n ring: 'hsl(var(--ring))',\n secondary: {\n DEFAULT: 'hsl(var(--secondary))',\n foreground: 'hsl(var(--secondary-foreground))',\n },\n success: {\n DEFAULT: 'hsl(var(--success))',\n foreground: 'hsl(var(--success-foreground))',\n },\n warning: {\n DEFAULT: 'hsl(var(--warning))',\n foreground: 'hsl(var(--warning-foreground))',\n },\n },\n fontFamily: {\n sans: `var(--font-sans, ${fontFamily.sans.join(', ')})`,\n },\n keyframes: {\n 'collapsible-open': {\n from: {\n height: '0',\n },\n to: {\n height: 'var(--radix-collapsible-content-height)',\n },\n },\n 'collapsible-closed': {\n from: {\n height: 'var(--radix-collapsible-content-height)',\n },\n to: {\n height: '0',\n },\n },\n 'caret-blink': {\n '0%,70%,100%': {\n opacity: '1',\n },\n '20%,50%': {\n opacity: '0',\n },\n },\n },\n outlineColor: {\n DEFAULT: 'hsl(var(--ring))',\n },\n ringColor: {\n DEFAULT: 'hsl(var(--ring))',\n },\n ringOffsetColor: {\n DEFAULT: 'hsl(var(--background))',\n },\n spacing: {\n 0.75: '0.1875rem', // 3px\n 18: '4.5rem', // 72px\n },\n transitionDuration: {\n 250: '250ms',\n },\n },\n },\n};\n\nexport default config;\n"],"mappings":"2HACA,OAAS,cAAAA,MAAkB,2BAK3B,IAAMC,EAAiB,CACrB,QAAS,CAAC,gCAAgC,EAC1C,SAAU,CAAC,OAAO,EAClB,QAAS,CAACC,EAASC,EAAaC,CAAI,EACpC,MAAO,CACL,OAAQ,CACN,UAAW,CACT,mBAAoB,8BACpB,qBAAsB,gCACtB,cAAe,kCACjB,EACA,YAAa,CACX,QAAS,oBACX,EACA,aAAc,CACZ,GAAI,yCACJ,QAAS,yBACT,GAAI,0CACJ,GAAI,yCACJ,GAAI,wCACJ,MAAO,yCACP,MAAO,wCACT,EACA,OAAQ,CACN,OAAQ,CACN,QAAS,qBACT,WAAY,+BACd,EACA,WAAY,yBACZ,OAAQ,qBACR,KAAM,CACJ,QAAS,mBACT,WAAY,6BACd,EACA,SAAU,uBACV,YAAa,CACX,QAAS,0BACT,WAAY,oCACd,EACA,WAAY,yBACZ,KAAM,CACJ,QAAS,mBACT,WAAY,6BACd,EACA,MAAO,oBACP,MAAO,CACL,QAAS,oBACT,WAAY,8BACd,EACA,QAAS,CACP,QAAS,sBACT,WAAY,gCACd,EACA,QAAS,CACP,QAAS,sBACT,WAAY,gCACd,EACA,KAAM,mBACN,UAAW,CACT,QAAS,wBACT,WAAY,kCACd,EACA,QAAS,CACP,QAAS,sBACT,WAAY,gCACd,EACA,QAAS,CACP,QAAS,sBACT,WAAY,gCACd,CACF,EACA,WAAY,CACV,KAAM,oBAAoBC,EAAW,KAAK,KAAK,IAAI,CAAC,GACtD,EACA,UAAW,CACT,mBAAoB,CAClB,KAAM,CACJ,OAAQ,GACV,EACA,GAAI,CACF,OAAQ,yCACV,CACF,EACA,qBAAsB,CACpB,KAAM,CACJ,OAAQ,yCACV,EACA,GAAI,CACF,OAAQ,GACV,CACF,EACA,cAAe,CACb,cAAe,CACb,QAAS,GACX,EACA,UAAW,CACT,QAAS,GACX,CACF,CACF,EACA,aAAc,CACZ,QAAS,kBACX,EACA,UAAW,CACT,QAAS,kBACX,EACA,gBAAiB,CACf,QAAS,wBACX,EACA,QAAS,CACP,IAAM,YACN,GAAI,QACN,EACA,mBAAoB,CAClB,IAAK,OACP,CACF,CACF,CACF,EAEOC,EAAQL","names":["fontFamily","config","animate_plugin_default","perspective_plugin_default","base_plugin_default","fontFamily","tailwind_config_default"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@codefast/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.41",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"sideEffects": [
|
|
6
6
|
"**/*.css"
|
|
@@ -372,19 +372,19 @@
|
|
|
372
372
|
"@tanstack/react-table": "^8.16.0",
|
|
373
373
|
"cmdk": "^1.0.0",
|
|
374
374
|
"cva": "1.0.0-beta.1",
|
|
375
|
-
"embla-carousel-react": "^8.0.
|
|
375
|
+
"embla-carousel-react": "^8.0.4",
|
|
376
376
|
"input-otp": "^1.2.4",
|
|
377
377
|
"next-themes": "^0.3.0",
|
|
378
378
|
"react-day-picker": "^8.10.1",
|
|
379
|
-
"react-hook-form": "^7.51.
|
|
380
|
-
"react-resizable-panels": "^2.0.
|
|
379
|
+
"react-hook-form": "^7.51.4",
|
|
380
|
+
"react-resizable-panels": "^2.0.19",
|
|
381
381
|
"sonner": "^1.4.41",
|
|
382
382
|
"tailwind-merge": "^2.3.0",
|
|
383
383
|
"vaul": "^0.9.0"
|
|
384
384
|
},
|
|
385
385
|
"devDependencies": {
|
|
386
386
|
"@types/eslint": "^8.56.10",
|
|
387
|
-
"@types/node": "^20.12.
|
|
387
|
+
"@types/node": "^20.12.8",
|
|
388
388
|
"@types/react": "^18.3.1",
|
|
389
389
|
"autoprefixer": "^10.4.19",
|
|
390
390
|
"eslint": "^8.57.0",
|
|
@@ -393,7 +393,7 @@
|
|
|
393
393
|
"tailwindcss": "^3.4.3",
|
|
394
394
|
"tsup": "^8.0.2",
|
|
395
395
|
"typescript": "^5.4.5",
|
|
396
|
-
"@codefast/eslint-config": "0.0.
|
|
396
|
+
"@codefast/eslint-config": "0.0.21",
|
|
397
397
|
"@codefast/typescript-config": "0.0.2"
|
|
398
398
|
},
|
|
399
399
|
"peerDependencies": {
|
package/plugin/animate.plugin.ts
CHANGED
|
@@ -1,259 +1,262 @@
|
|
|
1
|
-
import plugin from
|
|
2
|
-
import { type Config } from
|
|
1
|
+
import plugin from 'tailwindcss/plugin';
|
|
2
|
+
import { type Config } from 'tailwindcss/types/config';
|
|
3
3
|
|
|
4
|
-
type Theme = <TDefaultValue = Config[
|
|
4
|
+
type Theme = <TDefaultValue = Config['theme']>(
|
|
5
|
+
path?: string,
|
|
6
|
+
defaultValue?: TDefaultValue,
|
|
7
|
+
) => TDefaultValue;
|
|
5
8
|
|
|
6
9
|
const animate = plugin(
|
|
7
10
|
({ addUtilities, matchUtilities, theme }) => {
|
|
8
11
|
// Keyframes
|
|
9
12
|
addUtilities({
|
|
10
|
-
|
|
13
|
+
'@keyframes in': {
|
|
11
14
|
from: {
|
|
12
|
-
opacity:
|
|
15
|
+
opacity: 'var(--animate-in-opacity, 1)',
|
|
13
16
|
transform: [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
].join(
|
|
17
|
+
'translate3d(var(--animate-in-translate-x, 0), var(--animate-in-translate-y, 0), 0)',
|
|
18
|
+
'scale3d(var(--animate-in-scale, 1), var(--animate-in-scale, 1), var(--animate-in-scale, 1))',
|
|
19
|
+
'rotate(var(--animate-in-rotate, 0))',
|
|
20
|
+
].join(' '),
|
|
18
21
|
},
|
|
19
22
|
},
|
|
20
23
|
|
|
21
|
-
|
|
24
|
+
'@keyframes out': {
|
|
22
25
|
to: {
|
|
23
|
-
opacity:
|
|
26
|
+
opacity: 'var(--animate-out-opacity, 1)',
|
|
24
27
|
transform: [
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
].join(
|
|
28
|
+
'translate3d(var(--animate-out-translate-x, 0), var(--animate-out-translate-y, 0), 0)',
|
|
29
|
+
'scale3d(var(--animate-out-scale, 1), var(--animate-out-scale, 1), var(--animate-out-scale, 1))',
|
|
30
|
+
'rotate(var(--animate-out-rotate, 0))',
|
|
31
|
+
].join(' '),
|
|
29
32
|
},
|
|
30
33
|
},
|
|
31
34
|
|
|
32
|
-
|
|
35
|
+
'@keyframes fade-in': {
|
|
33
36
|
from: {
|
|
34
|
-
opacity:
|
|
37
|
+
opacity: 'var(--animate-in-opacity, 0)',
|
|
35
38
|
},
|
|
36
39
|
},
|
|
37
40
|
|
|
38
|
-
|
|
41
|
+
'@keyframes fade-out': {
|
|
39
42
|
to: {
|
|
40
|
-
opacity:
|
|
43
|
+
opacity: 'var(--animate-out-opacity, 0)',
|
|
41
44
|
},
|
|
42
45
|
},
|
|
43
46
|
|
|
44
|
-
|
|
45
|
-
animationName:
|
|
46
|
-
animationDuration: theme(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
'.animate-in': {
|
|
48
|
+
animationName: 'in',
|
|
49
|
+
animationDuration: theme('animationDuration.DEFAULT'),
|
|
50
|
+
'--animate-in-opacity': 'initial',
|
|
51
|
+
'--animate-in-scale': 'initial',
|
|
52
|
+
'--animate-in-rotate': 'initial',
|
|
53
|
+
'--animate-in-translate-x': 'initial',
|
|
54
|
+
'--animate-in-translate-y': 'initial',
|
|
52
55
|
},
|
|
53
56
|
|
|
54
|
-
|
|
55
|
-
animationName:
|
|
56
|
-
animationDuration: theme(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
'.animate-out': {
|
|
58
|
+
animationName: 'out',
|
|
59
|
+
animationDuration: theme('animationDuration.DEFAULT'),
|
|
60
|
+
'--animate-out-opacity': 'initial',
|
|
61
|
+
'--animate-out-scale': 'initial',
|
|
62
|
+
'--animate-out-rotate': 'initial',
|
|
63
|
+
'--animate-out-translate-x': 'initial',
|
|
64
|
+
'--animate-out-translate-y': 'initial',
|
|
62
65
|
},
|
|
63
66
|
|
|
64
|
-
|
|
65
|
-
animationName:
|
|
66
|
-
animationDuration: theme(
|
|
67
|
-
|
|
67
|
+
'.animate-fade-in': {
|
|
68
|
+
animationName: 'fade-in',
|
|
69
|
+
animationDuration: theme('animationDuration.DEFAULT'),
|
|
70
|
+
'--animate-in-opacity': 'initial',
|
|
68
71
|
},
|
|
69
72
|
|
|
70
|
-
|
|
71
|
-
animationName:
|
|
72
|
-
animationDuration: theme(
|
|
73
|
-
|
|
73
|
+
'.animate-fade-out': {
|
|
74
|
+
animationName: 'fade-out',
|
|
75
|
+
animationDuration: theme('animationDuration.DEFAULT'),
|
|
76
|
+
'--animate-out-opacity': 'initial',
|
|
74
77
|
},
|
|
75
78
|
});
|
|
76
79
|
|
|
77
80
|
// Play state
|
|
78
81
|
addUtilities({
|
|
79
|
-
|
|
80
|
-
animationPlayState:
|
|
82
|
+
'.animation-running': {
|
|
83
|
+
animationPlayState: 'running',
|
|
81
84
|
},
|
|
82
|
-
|
|
83
|
-
animationPlayState:
|
|
85
|
+
'.animation-paused': {
|
|
86
|
+
animationPlayState: 'paused',
|
|
84
87
|
},
|
|
85
88
|
});
|
|
86
89
|
|
|
87
90
|
// Delay
|
|
88
91
|
matchUtilities(
|
|
89
92
|
{
|
|
90
|
-
|
|
93
|
+
'animate-delay': (value) => ({
|
|
91
94
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
92
95
|
animationDelay: value,
|
|
93
96
|
}),
|
|
94
97
|
},
|
|
95
98
|
{
|
|
96
|
-
values: theme(
|
|
99
|
+
values: theme('animationDelay'),
|
|
97
100
|
},
|
|
98
101
|
);
|
|
99
102
|
|
|
100
103
|
// Direction
|
|
101
104
|
matchUtilities(
|
|
102
105
|
{
|
|
103
|
-
|
|
106
|
+
'animate-direction': (value) => ({
|
|
104
107
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
105
108
|
animationDirection: value,
|
|
106
109
|
}),
|
|
107
110
|
},
|
|
108
111
|
{
|
|
109
|
-
values: theme(
|
|
112
|
+
values: theme('animationDirection'),
|
|
110
113
|
},
|
|
111
114
|
);
|
|
112
115
|
|
|
113
116
|
// Duration
|
|
114
117
|
matchUtilities(
|
|
115
118
|
{
|
|
116
|
-
|
|
119
|
+
'animate-duration': (value) => ({
|
|
117
120
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
118
121
|
animationDuration: value,
|
|
119
122
|
}),
|
|
120
123
|
},
|
|
121
124
|
{
|
|
122
|
-
values: theme(
|
|
125
|
+
values: theme('animationDuration'),
|
|
123
126
|
},
|
|
124
127
|
);
|
|
125
128
|
|
|
126
129
|
// Fill mode
|
|
127
130
|
matchUtilities(
|
|
128
131
|
{
|
|
129
|
-
|
|
132
|
+
'animate-fill-mode': (value) => ({
|
|
130
133
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
131
134
|
animationFillMode: value,
|
|
132
135
|
}),
|
|
133
136
|
},
|
|
134
137
|
{
|
|
135
|
-
values: theme(
|
|
138
|
+
values: theme('animationFillMode'),
|
|
136
139
|
},
|
|
137
140
|
);
|
|
138
141
|
|
|
139
142
|
// Opacity
|
|
140
143
|
matchUtilities(
|
|
141
144
|
{
|
|
142
|
-
|
|
145
|
+
'fade-in': (value) => ({
|
|
143
146
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
144
|
-
|
|
147
|
+
'--animate-in-opacity': value,
|
|
145
148
|
}),
|
|
146
|
-
|
|
149
|
+
'fade-out': (value) => ({
|
|
147
150
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
148
|
-
|
|
151
|
+
'--animate-out-opacity': value,
|
|
149
152
|
}),
|
|
150
153
|
},
|
|
151
154
|
{
|
|
152
|
-
values: theme(
|
|
155
|
+
values: theme('animationOpacity'),
|
|
153
156
|
},
|
|
154
157
|
);
|
|
155
158
|
|
|
156
159
|
// Repeat
|
|
157
160
|
matchUtilities(
|
|
158
161
|
{
|
|
159
|
-
|
|
162
|
+
'animate-repeat': (value) => ({
|
|
160
163
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
161
164
|
animationIterationCount: value,
|
|
162
165
|
}),
|
|
163
166
|
},
|
|
164
167
|
{
|
|
165
|
-
values: theme(
|
|
168
|
+
values: theme('animationRepeat'),
|
|
166
169
|
},
|
|
167
170
|
);
|
|
168
171
|
|
|
169
172
|
// Rotate
|
|
170
173
|
matchUtilities(
|
|
171
174
|
{
|
|
172
|
-
|
|
175
|
+
'spin-in': (value) => ({
|
|
173
176
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
174
|
-
|
|
177
|
+
'--animate-in-rotate': value,
|
|
175
178
|
}),
|
|
176
|
-
|
|
179
|
+
'spin-out': (value) => ({
|
|
177
180
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
178
|
-
|
|
181
|
+
'--animate-out-rotate': value,
|
|
179
182
|
}),
|
|
180
183
|
},
|
|
181
184
|
{
|
|
182
|
-
values: theme(
|
|
185
|
+
values: theme('animationRotate'),
|
|
183
186
|
},
|
|
184
187
|
);
|
|
185
188
|
|
|
186
189
|
// Scale - Zoom
|
|
187
190
|
matchUtilities(
|
|
188
191
|
{
|
|
189
|
-
|
|
192
|
+
'zoom-in': (value) => ({
|
|
190
193
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
191
|
-
|
|
194
|
+
'--animate-in-scale': value,
|
|
192
195
|
}),
|
|
193
|
-
|
|
196
|
+
'zoom-out': (value) => ({
|
|
194
197
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
195
|
-
|
|
198
|
+
'--animate-out-scale': value,
|
|
196
199
|
}),
|
|
197
200
|
},
|
|
198
201
|
{
|
|
199
|
-
values: theme(
|
|
202
|
+
values: theme('animationScale'),
|
|
200
203
|
},
|
|
201
204
|
);
|
|
202
205
|
|
|
203
206
|
// Timing function
|
|
204
207
|
matchUtilities(
|
|
205
208
|
{
|
|
206
|
-
|
|
209
|
+
'animate-ease': (value) => ({
|
|
207
210
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
208
211
|
animationTimingFunction: value,
|
|
209
212
|
}),
|
|
210
213
|
},
|
|
211
214
|
{
|
|
212
|
-
values: theme(
|
|
215
|
+
values: theme('animationTimingFunction'),
|
|
213
216
|
},
|
|
214
217
|
);
|
|
215
218
|
|
|
216
219
|
// Translate - Slide
|
|
217
220
|
matchUtilities(
|
|
218
221
|
{
|
|
219
|
-
|
|
220
|
-
|
|
222
|
+
'slide-in-from-top': (value) => ({
|
|
223
|
+
'--animate-in-translate-y': `-${value}`,
|
|
221
224
|
}),
|
|
222
225
|
|
|
223
|
-
|
|
226
|
+
'slide-in-from-bottom': (value) => ({
|
|
224
227
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
225
|
-
|
|
228
|
+
'--animate-in-translate-y': value,
|
|
226
229
|
}),
|
|
227
230
|
|
|
228
|
-
|
|
229
|
-
|
|
231
|
+
'slide-in-from-left': (value) => ({
|
|
232
|
+
'--animate-in-translate-x': `-${value}`,
|
|
230
233
|
}),
|
|
231
234
|
|
|
232
|
-
|
|
235
|
+
'slide-in-from-right': (value) => ({
|
|
233
236
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
234
|
-
|
|
237
|
+
'--animate-in-translate-x': value,
|
|
235
238
|
}),
|
|
236
239
|
|
|
237
|
-
|
|
238
|
-
|
|
240
|
+
'slide-out-to-top': (value) => ({
|
|
241
|
+
'--animate-out-translate-y': `-${value}`,
|
|
239
242
|
}),
|
|
240
243
|
|
|
241
|
-
|
|
244
|
+
'slide-out-to-bottom': (value) => ({
|
|
242
245
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
243
|
-
|
|
246
|
+
'--animate-out-translate-y': value,
|
|
244
247
|
}),
|
|
245
248
|
|
|
246
|
-
|
|
247
|
-
|
|
249
|
+
'slide-out-to-left': (value) => ({
|
|
250
|
+
'--animate-out-translate-x': `-${value}`,
|
|
248
251
|
}),
|
|
249
252
|
|
|
250
|
-
|
|
253
|
+
'slide-out-to-right': (value) => ({
|
|
251
254
|
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- safe
|
|
252
|
-
|
|
255
|
+
'--animate-out-translate-x': value,
|
|
253
256
|
}),
|
|
254
257
|
},
|
|
255
258
|
{
|
|
256
|
-
values: theme(
|
|
259
|
+
values: theme('animationTranslate'),
|
|
257
260
|
},
|
|
258
261
|
);
|
|
259
262
|
},
|
|
@@ -261,55 +264,55 @@ const animate = plugin(
|
|
|
261
264
|
theme: {
|
|
262
265
|
extend: {
|
|
263
266
|
animationDelay: ({ theme }: { theme: Theme }) => ({
|
|
264
|
-
...theme(
|
|
267
|
+
...theme('transitionDelay'),
|
|
265
268
|
}),
|
|
266
269
|
|
|
267
270
|
animationDirection: {
|
|
268
|
-
normal:
|
|
269
|
-
reverse:
|
|
270
|
-
alternate:
|
|
271
|
-
|
|
271
|
+
normal: 'normal',
|
|
272
|
+
reverse: 'reverse',
|
|
273
|
+
alternate: 'alternate',
|
|
274
|
+
'alternate-reverse': 'alternate-reverse',
|
|
272
275
|
},
|
|
273
276
|
|
|
274
277
|
animationDuration: ({ theme }: { theme: Theme }) => ({
|
|
275
|
-
...theme(
|
|
278
|
+
...theme('transitionDuration'),
|
|
276
279
|
}),
|
|
277
280
|
|
|
278
281
|
animationFillMode: {
|
|
279
|
-
none:
|
|
280
|
-
forwards:
|
|
281
|
-
backwards:
|
|
282
|
-
both:
|
|
282
|
+
none: 'none',
|
|
283
|
+
forwards: 'forwards',
|
|
284
|
+
backwards: 'backwards',
|
|
285
|
+
both: 'both',
|
|
283
286
|
},
|
|
284
287
|
|
|
285
288
|
animationOpacity: ({ theme }: { theme: Theme }) => ({
|
|
286
289
|
DEFAULT: 0,
|
|
287
|
-
...theme(
|
|
290
|
+
...theme('opacity'),
|
|
288
291
|
}),
|
|
289
292
|
|
|
290
293
|
animationRepeat: {
|
|
291
|
-
0:
|
|
292
|
-
1:
|
|
293
|
-
infinite:
|
|
294
|
+
0: '0',
|
|
295
|
+
1: '1',
|
|
296
|
+
infinite: 'infinite',
|
|
294
297
|
},
|
|
295
298
|
|
|
296
299
|
animationRotate: ({ theme }: { theme: Theme }) => ({
|
|
297
|
-
DEFAULT:
|
|
298
|
-
...theme(
|
|
300
|
+
DEFAULT: '30deg',
|
|
301
|
+
...theme('rotate'),
|
|
299
302
|
}),
|
|
300
303
|
|
|
301
304
|
animationScale: ({ theme }: { theme: Theme }) => ({
|
|
302
305
|
DEFAULT: 0,
|
|
303
|
-
...theme(
|
|
306
|
+
...theme('scale'),
|
|
304
307
|
}),
|
|
305
308
|
|
|
306
309
|
animationTimingFunction: ({ theme }: { theme: Theme }) => ({
|
|
307
|
-
...theme(
|
|
310
|
+
...theme('transitionTimingFunction'),
|
|
308
311
|
}),
|
|
309
312
|
|
|
310
313
|
animationTranslate: ({ theme }: { theme: Theme }) => ({
|
|
311
|
-
DEFAULT:
|
|
312
|
-
...theme(
|
|
314
|
+
DEFAULT: '100%',
|
|
315
|
+
...theme('translate'),
|
|
313
316
|
}),
|
|
314
317
|
},
|
|
315
318
|
},
|
package/plugin/base.plugin.ts
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import plugin from
|
|
1
|
+
import plugin from 'tailwindcss/plugin';
|
|
2
2
|
|
|
3
3
|
const base = plugin(({ addBase }) => {
|
|
4
4
|
addBase({
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
'.dark': {
|
|
6
|
+
'color-scheme': 'dark',
|
|
7
7
|
},
|
|
8
8
|
body: {
|
|
9
|
-
|
|
9
|
+
'@apply bg-background text-foreground': '',
|
|
10
10
|
},
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
':focus-visible': {
|
|
12
|
+
'@apply outline-ring': '',
|
|
13
13
|
},
|
|
14
14
|
"button, [role='button'], input:where([type='button']), input:where([type='reset']), input:where([type='submit'])":
|
|
15
15
|
{
|
|
16
|
-
|
|
16
|
+
'@apply outline-transparent': '',
|
|
17
17
|
},
|
|
18
18
|
});
|
|
19
19
|
});
|
package/src/lib/utils.ts
CHANGED