@codefast/ui 0.3.16-canary.2 → 0.4.0-canary.4
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/CHANGELOG.md +81 -0
- package/README.md +28 -17
- package/dist/components/accordion.d.mts +7 -22
- package/dist/components/accordion.mjs +26 -29
- package/dist/components/alert-dialog.d.mts +27 -26
- package/dist/components/alert-dialog.mjs +53 -45
- package/dist/components/alert.d.mts +14 -14
- package/dist/components/alert.mjs +17 -28
- package/dist/components/aspect-ratio.d.mts +2 -2
- package/dist/components/aspect-ratio.mjs +2 -3
- package/dist/components/avatar.d.mts +41 -5
- package/dist/components/avatar.mjs +40 -10
- package/dist/components/badge.d.mts +3 -15
- package/dist/components/badge.mjs +6 -48
- package/dist/components/breadcrumb.d.mts +1 -0
- package/dist/components/breadcrumb.mjs +11 -10
- package/dist/components/button-group.d.mts +3 -13
- package/dist/components/button-group.mjs +9 -31
- package/dist/components/button.d.mts +3 -26
- package/dist/components/button.mjs +9 -79
- package/dist/components/calendar.d.mts +6 -2
- package/dist/components/calendar.mjs +41 -44
- package/dist/components/card.d.mts +4 -2
- package/dist/components/card.mjs +9 -9
- package/dist/components/carousel.d.mts +16 -5
- package/dist/components/carousel.mjs +24 -11
- package/dist/components/chart.d.mts +9 -6
- package/dist/components/chart.mjs +21 -15
- package/dist/components/checkbox-cards.mjs +4 -4
- package/dist/components/checkbox-group.mjs +3 -4
- package/dist/components/checkbox.d.mts +2 -2
- package/dist/components/checkbox.mjs +6 -7
- package/dist/components/collapsible.d.mts +4 -4
- package/dist/components/collapsible.mjs +4 -5
- package/dist/components/command.d.mts +11 -1
- package/dist/components/command.mjs +35 -32
- package/dist/components/context-menu.d.mts +22 -15
- package/dist/components/context-menu.mjs +44 -39
- package/dist/components/dialog.d.mts +19 -23
- package/dist/components/dialog.mjs +48 -47
- package/dist/components/direction.d.mts +24 -0
- package/dist/components/direction.mjs +18 -0
- package/dist/components/drawer.d.mts +3 -21
- package/dist/components/drawer.mjs +19 -27
- package/dist/components/dropdown-menu.d.mts +22 -15
- package/dist/components/dropdown-menu.mjs +41 -37
- package/dist/components/empty.d.mts +3 -13
- package/dist/components/empty.mjs +8 -23
- package/dist/components/field.d.mts +3 -14
- package/dist/components/field.mjs +14 -44
- package/dist/components/form.d.mts +7 -10
- package/dist/components/form.mjs +6 -7
- package/dist/components/hover-card.d.mts +5 -5
- package/dist/components/hover-card.mjs +14 -12
- package/dist/components/input-group.d.mts +4 -31
- package/dist/components/input-group.mjs +14 -96
- package/dist/components/input-number.d.mts +3 -1
- package/dist/components/input-number.mjs +50 -28
- package/dist/components/input-otp.mjs +9 -7
- package/dist/components/input-password.mjs +1 -4
- package/dist/components/input-search.mjs +3 -5
- package/dist/components/input.mjs +1 -2
- package/dist/components/item.d.mts +4 -29
- package/dist/components/item.mjs +12 -65
- package/dist/components/kbd.mjs +1 -1
- package/dist/components/label.d.mts +2 -2
- package/dist/components/label.mjs +3 -4
- package/dist/components/menubar.d.mts +22 -16
- package/dist/components/menubar.mjs +54 -47
- package/dist/components/native-select.d.mts +5 -1
- package/dist/components/native-select.mjs +9 -6
- package/dist/components/navigation-menu.d.mts +30 -13
- package/dist/components/navigation-menu.mjs +35 -32
- package/dist/components/pagination.d.mts +7 -1
- package/dist/components/pagination.mjs +27 -12
- package/dist/components/popover.d.mts +40 -7
- package/dist/components/popover.mjs +46 -14
- package/dist/components/progress-circle.d.mts +3 -47
- package/dist/components/progress-circle.mjs +2 -48
- package/dist/components/progress.d.mts +2 -2
- package/dist/components/progress.mjs +5 -6
- package/dist/components/radio-cards.d.mts +3 -3
- package/dist/components/radio-cards.mjs +11 -11
- package/dist/components/radio-group.d.mts +3 -3
- package/dist/components/radio-group.mjs +9 -9
- package/dist/components/radio.mjs +2 -3
- package/dist/components/resizable.mjs +3 -8
- package/dist/components/scroll-area.d.mts +8 -24
- package/dist/components/scroll-area.mjs +16 -70
- package/dist/components/select.d.mts +14 -14
- package/dist/components/select.mjs +47 -47
- package/dist/components/separator.d.mts +4 -19
- package/dist/components/separator.mjs +6 -27
- package/dist/components/sheet.d.mts +18 -31
- package/dist/components/sheet.mjs +46 -87
- package/dist/components/sidebar.d.mts +3 -19
- package/dist/components/sidebar.mjs +48 -84
- package/dist/components/skeleton.mjs +1 -1
- package/dist/components/slider.d.mts +2 -2
- package/dist/components/slider.mjs +9 -11
- package/dist/components/sonner.mjs +11 -3
- package/dist/components/spinner.mjs +6 -7
- package/dist/components/switch.d.mts +5 -2
- package/dist/components/switch.mjs +7 -7
- package/dist/components/table.mjs +10 -10
- package/dist/components/tabs.d.mts +8 -5
- package/dist/components/tabs.mjs +18 -12
- package/dist/components/textarea.mjs +1 -1
- package/dist/components/toggle-group.d.mts +11 -7
- package/dist/components/toggle-group.mjs +20 -21
- package/dist/components/toggle.d.mts +4 -24
- package/dist/components/toggle.mjs +6 -45
- package/dist/components/tooltip.d.mts +7 -6
- package/dist/components/tooltip.mjs +19 -17
- package/dist/hooks/use-animated-value.mjs +0 -1
- package/dist/hooks/use-copy-to-clipboard.mjs +0 -1
- package/dist/hooks/use-is-mobile.mjs +0 -1
- package/dist/hooks/use-media-query.mjs +0 -1
- package/dist/hooks/use-mutation-observer.mjs +0 -1
- package/dist/hooks/use-pagination.mjs +0 -1
- package/dist/index.d.mts +38 -21
- package/dist/index.mjs +40 -23
- package/dist/lib/utils.d.mts +1 -12
- package/dist/lib/utils.mjs +1 -9
- package/dist/primitives/checkbox-group.d.mts +9 -11
- package/dist/primitives/checkbox-group.mjs +14 -19
- package/dist/primitives/input-number.d.mts +3 -4
- package/dist/primitives/input-number.mjs +3 -5
- package/dist/primitives/input.d.mts +4 -5
- package/dist/primitives/input.mjs +2 -3
- package/dist/primitives/progress-circle.d.mts +3 -4
- package/dist/primitives/progress-circle.mjs +2 -3
- package/dist/variants/alert.d.mts +18 -0
- package/dist/variants/alert.mjs +15 -0
- package/dist/variants/badge.d.mts +22 -0
- package/dist/variants/badge.mjs +19 -0
- package/dist/variants/button-group.d.mts +18 -0
- package/dist/variants/button-group.mjs +15 -0
- package/dist/variants/button.d.mts +32 -0
- package/dist/variants/button.mjs +34 -0
- package/dist/variants/empty.d.mts +18 -0
- package/dist/variants/empty.mjs +15 -0
- package/dist/variants/field.d.mts +19 -0
- package/dist/variants/field.mjs +16 -0
- package/dist/variants/input-group.d.mts +43 -0
- package/dist/variants/input-group.mjs +34 -0
- package/dist/variants/input-number.d.mts +45 -0
- package/dist/variants/input-number.mjs +40 -0
- package/dist/variants/item.d.mts +38 -0
- package/dist/variants/item.mjs +38 -0
- package/dist/variants/navigation-menu.d.mts +13 -0
- package/dist/variants/navigation-menu.mjs +8 -0
- package/dist/variants/progress-circle.d.mts +52 -0
- package/dist/variants/progress-circle.mjs +45 -0
- package/dist/variants/scroll-area.d.mts +24 -0
- package/dist/variants/scroll-area.mjs +58 -0
- package/dist/variants/separator.d.mts +23 -0
- package/dist/variants/separator.mjs +25 -0
- package/dist/variants/sheet.d.mts +20 -0
- package/dist/variants/sheet.mjs +17 -0
- package/dist/variants/sidebar.d.mts +23 -0
- package/dist/variants/sidebar.mjs +25 -0
- package/dist/variants/tabs.d.mts +18 -0
- package/dist/variants/tabs.mjs +15 -0
- package/dist/variants/toggle.d.mts +23 -0
- package/dist/variants/toggle.mjs +25 -0
- package/package.json +186 -55
- package/src/components/accordion.tsx +114 -0
- package/src/components/alert-dialog.tsx +298 -0
- package/src/components/alert.tsx +94 -0
- package/src/components/aspect-ratio.tsx +25 -0
- package/src/components/avatar.tsx +171 -0
- package/src/components/badge.tsx +35 -0
- package/src/components/breadcrumb.tsx +191 -0
- package/src/components/button-group.tsx +97 -0
- package/src/components/button.tsx +55 -0
- package/src/components/calendar.tsx +222 -0
- package/src/components/card.tsx +169 -0
- package/src/components/carousel.tsx +349 -0
- package/src/components/chart.tsx +536 -0
- package/src/components/checkbox-cards.tsx +72 -0
- package/src/components/checkbox-group.tsx +60 -0
- package/src/components/checkbox.tsx +44 -0
- package/src/components/collapsible.tsx +57 -0
- package/src/components/command.tsx +298 -0
- package/src/components/context-menu.tsx +410 -0
- package/src/components/dialog.tsx +243 -0
- package/src/components/direction.tsx +32 -0
- package/src/components/drawer.tsx +209 -0
- package/src/components/dropdown-menu.tsx +419 -0
- package/src/components/empty.tsx +155 -0
- package/src/components/field.tsx +329 -0
- package/src/components/form.tsx +258 -0
- package/src/components/hover-card.tsx +93 -0
- package/src/components/input-group.tsx +185 -0
- package/src/components/input-number.tsx +141 -0
- package/src/components/input-otp.tsx +132 -0
- package/src/components/input-password.tsx +50 -0
- package/src/components/input-search.tsx +81 -0
- package/src/components/input.tsx +36 -0
- package/src/components/item.tsx +266 -0
- package/src/components/kbd.tsx +47 -0
- package/src/components/label.tsx +36 -0
- package/src/components/menubar.tsx +440 -0
- package/src/components/native-select.tsx +87 -0
- package/src/components/navigation-menu.tsx +235 -0
- package/src/components/pagination.tsx +198 -0
- package/src/components/popover.tsx +170 -0
- package/src/components/progress-circle.tsx +185 -0
- package/src/components/progress.tsx +41 -0
- package/src/components/radio-cards.tsx +66 -0
- package/src/components/radio-group.tsx +59 -0
- package/src/components/radio.tsx +40 -0
- package/src/components/resizable.tsx +78 -0
- package/src/components/scroll-area.tsx +95 -0
- package/src/components/select.tsx +296 -0
- package/src/components/separator.tsx +60 -0
- package/src/components/sheet.tsx +241 -0
- package/src/components/sidebar.tsx +926 -0
- package/src/components/skeleton.tsx +35 -0
- package/src/components/slider.tsx +66 -0
- package/src/components/sonner.tsx +57 -0
- package/src/components/spinner.tsx +66 -0
- package/src/components/switch.tsx +44 -0
- package/src/components/table.tsx +183 -0
- package/src/components/tabs.tsx +110 -0
- package/src/components/textarea.tsx +35 -0
- package/src/components/toggle-group.tsx +137 -0
- package/src/components/toggle.tsx +30 -0
- package/src/components/tooltip.tsx +115 -0
- package/src/css/foundation/base.css +50 -0
- package/src/css/foundation/motion.css +36 -0
- package/src/css/foundation/source.css +3 -0
- package/src/css/foundation/tokens.css +71 -0
- package/src/css/foundation/variants.css +113 -0
- package/src/css/preset.css +5 -195
- package/src/css/style.css +1 -1
- package/src/css/{amber.css → themes/amber.css} +59 -22
- package/src/css/{blue.css → themes/blue.css} +59 -22
- package/src/css/{cyan.css → themes/cyan.css} +59 -22
- package/src/css/{emerald.css → themes/emerald.css} +59 -22
- package/src/css/{fuchsia.css → themes/fuchsia.css} +59 -22
- package/src/css/{gray.css → themes/gray.css} +59 -22
- package/src/css/{green.css → themes/green.css} +59 -22
- package/src/css/{indigo.css → themes/indigo.css} +59 -22
- package/src/css/{lime.css → themes/lime.css} +59 -22
- package/src/css/{neutral.css → themes/neutral.css} +59 -22
- package/src/css/{orange.css → themes/orange.css} +59 -22
- package/src/css/{pink.css → themes/pink.css} +59 -22
- package/src/css/{purple.css → themes/purple.css} +59 -22
- package/src/css/{red.css → themes/red.css} +59 -22
- package/src/css/{rose.css → themes/rose.css} +59 -22
- package/src/css/{sky.css → themes/sky.css} +59 -22
- package/src/css/{slate.css → themes/slate.css} +59 -22
- package/src/css/{stone.css → themes/stone.css} +59 -22
- package/src/css/{teal.css → themes/teal.css} +59 -22
- package/src/css/{violet.css → themes/violet.css} +59 -22
- package/src/css/{yellow.css → themes/yellow.css} +59 -22
- package/src/css/{zinc.css → themes/zinc.css} +59 -22
- package/src/hooks/use-animated-value.ts +91 -0
- package/src/hooks/use-copy-to-clipboard.ts +58 -0
- package/src/hooks/use-is-mobile.ts +25 -0
- package/src/hooks/use-media-query.ts +69 -0
- package/src/hooks/use-mutation-observer.ts +51 -0
- package/src/hooks/use-pagination.ts +164 -0
- package/src/index.ts +679 -0
- package/src/lib/utils.ts +5 -0
- package/src/primitives/checkbox-group.tsx +346 -0
- package/src/primitives/input-number.tsx +967 -0
- package/src/primitives/input.tsx +227 -0
- package/src/primitives/progress-circle.tsx +507 -0
- package/src/variants/alert.ts +34 -0
- package/src/variants/badge.ts +39 -0
- package/src/variants/button-group.ts +36 -0
- package/src/variants/button.ts +56 -0
- package/src/variants/empty.ts +34 -0
- package/src/variants/field.ts +37 -0
- package/src/variants/input-group.ts +80 -0
- package/src/variants/input-number.ts +65 -0
- package/src/variants/item.ts +68 -0
- package/src/variants/navigation-menu.ts +25 -0
- package/src/variants/progress-circle.ts +46 -0
- package/src/variants/scroll-area.ts +73 -0
- package/src/variants/separator.ts +40 -0
- package/src/variants/sheet.ts +37 -0
- package/src/variants/sidebar.ts +41 -0
- package/src/variants/tabs.ts +34 -0
- package/src/variants/toggle.ts +40 -0
- package/dist/node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/clsx.d.mts +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,86 @@
|
|
|
1
1
|
# @codefast/ui
|
|
2
2
|
|
|
3
|
+
## 0.4.0-canary.4
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#495](https://github.com/codefastlabs/codefast/pull/495) [`8fdbf99`](https://github.com/codefastlabs/codefast/commit/8fdbf99e9b889e6937aca721a3f439cc25b6ea4b) Thanks [@thevuong](https://github.com/thevuong)! - Add `--ease-exit` motion token and apply asymmetric enter/exit easing across overlay, popup, accordion, and sidebar components, syncing dialog overlay durations with content.
|
|
8
|
+
|
|
9
|
+
- [#495](https://github.com/codefastlabs/codefast/pull/495) [`377224b`](https://github.com/codefastlabs/codefast/commit/377224bc337ca15ee4cfcfc1ddd9667bfce96b04) Thanks [@thevuong](https://github.com/thevuong)! - Add semantic motion duration tokens (`menu`, `popup`, `overlay`, `panel`, `expand`) and retune component timings for snappier feedback — menus 150/100ms, popovers 200/120ms, dialogs 220/150ms, sheets and drawers 320/220ms, accordion 200/150ms.
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [`6685ce3`](https://github.com/codefastlabs/codefast/commit/6685ce3db5042d0c1b90bda98d5d1517eeade1d2) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): update source file patterns in preset.css
|
|
14
|
+
|
|
15
|
+
- [#495](https://github.com/codefastlabs/codefast/pull/495) [`eecb986`](https://github.com/codefastlabs/codefast/commit/eecb9862353b93f76a03a75015a3b7c4e0ba948d) Thanks [@thevuong](https://github.com/thevuong)! - chore(deps): update catalog dependencies — radix-ui 1.5.0, react-hook-form 7.78.0, TanStack Router/Start patches, hono 4.12.25, oxfmt 0.54 / oxlint 1.69, knip 6.16, turbo 2.9.17-canary.7 — and bump pnpm to 11.5.2
|
|
16
|
+
|
|
17
|
+
- [`451da65`](https://github.com/codefastlabs/codefast/commit/451da65cf5b55cf982b0cb72396d7e08cbeab4ec) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): remove "use client" directive from multiple components
|
|
18
|
+
|
|
19
|
+
- [`b4ac0df`](https://github.com/codefastlabs/codefast/commit/b4ac0df0ed6073915c5b3502af60bb65489bc1fc) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): replace @radix-ui/react-context with radix-ui package
|
|
20
|
+
|
|
21
|
+
- [`06ab079`](https://github.com/codefastlabs/codefast/commit/06ab079012d82e8bd37f47a9978a98c446b6b0c9) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): adjust border radius in input group styles
|
|
22
|
+
|
|
23
|
+
- [#495](https://github.com/codefastlabs/codefast/pull/495) [`48c6661`](https://github.com/codefastlabs/codefast/commit/48c66618f88d4fa93c769e9ede2776f5c8075aa2) Thanks [@thevuong](https://github.com/thevuong)! - fix(ui): align ContextMenuSubTrigger spacing with ContextMenuItem so submenu trigger icons sit correctly
|
|
24
|
+
|
|
25
|
+
- [`c2e6f73`](https://github.com/codefastlabs/codefast/commit/c2e6f73d39912a9675f53233ce3464f76ad00b1b) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): streamline component styling and className usage
|
|
26
|
+
|
|
27
|
+
- [`801ac83`](https://github.com/codefastlabs/codefast/commit/801ac83659e00c84cf0d0dc4b1e2a632f7f26e20) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): enhance InputGroup component structure and styling
|
|
28
|
+
|
|
29
|
+
- [`dfcd7ef`](https://github.com/codefastlabs/codefast/commit/dfcd7ef01c224e5fa4f30b760daedda85b35dd55) Thanks [@thevuong](https://github.com/thevuong)! - feat(ui): enhance InputNumber component with new split variant and additional functionality
|
|
30
|
+
|
|
31
|
+
- [#495](https://github.com/codefastlabs/codefast/pull/495) [`480292c`](https://github.com/codefastlabs/codefast/commit/480292c36615c682f58e88fdb3136781620b98c0) Thanks [@thevuong](https://github.com/thevuong)! - refactor(navigation-menu): pass the trigger `className` to `navigationMenuTriggerVariants` as a `ClassValue` array instead of pre-merging with `cn`, letting the variant resolver handle merging in one pass
|
|
32
|
+
|
|
33
|
+
- [#495](https://github.com/codefastlabs/codefast/pull/495) [`391f4c7`](https://github.com/codefastlabs/codefast/commit/391f4c768a589eb47808ba8f1dcfe7c60ba2bfe5) Thanks [@thevuong](https://github.com/thevuong)! - Fix navigation menu viewport scale animation by replacing the invalid `origin-top-center` class with `origin-[top_center]`.
|
|
34
|
+
|
|
35
|
+
- [`2425b93`](https://github.com/codefastlabs/codefast/commit/2425b9310ee6bf62c7b74a85516808f7159bf152) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): update component styling for consistency and clarity
|
|
36
|
+
|
|
37
|
+
- [#495](https://github.com/codefastlabs/codefast/pull/495) [`fa338d6`](https://github.com/codefastlabs/codefast/commit/fa338d61fbfafb94beaa4d05d93d01e2c005cc91) Thanks [@thevuong](https://github.com/thevuong)! - Normalize import statement order and package.json key order repo-wide via the new oxfmt `sortImports`/`sortPackageJson` settings — purely mechanical, no runtime behavior change.
|
|
38
|
+
|
|
39
|
+
- [#495](https://github.com/codefastlabs/codefast/pull/495) [`68bc271`](https://github.com/codefastlabs/codefast/commit/68bc271a3f9864c68045ee495f510c19f3ac1c80) Thanks [@thevuong](https://github.com/thevuong)! - fix(ui): restore side-scoped slide animations on popover, hover-card, select, and tooltip
|
|
40
|
+
|
|
41
|
+
Reinstate ease-snappy easing with distinct open/close durations, scope slide-in
|
|
42
|
+
classes under data-open (and data-delayed-open for tooltip), and bring back
|
|
43
|
+
directional slide-out on close — matching the previously restored context menu,
|
|
44
|
+
dropdown menu, and menubar motion.
|
|
45
|
+
|
|
46
|
+
- [`2247289`](https://github.com/codefastlabs/codefast/commit/2247289ccc8c983a5cf8dd4689d185eab6f6adb3) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): enhance BreadcrumbSeparator component styling and props
|
|
47
|
+
|
|
48
|
+
- [#495](https://github.com/codefastlabs/codefast/pull/495) [`b66cb9d`](https://github.com/codefastlabs/codefast/commit/b66cb9debecb933f84ab1b4c711a01430823b641) Thanks [@thevuong](https://github.com/thevuong)! - Scope overlay enter/exit timing with `animation-duration-*` utilities (no more implicit all-property transitions from `duration-*`), make the navigation menu viewport size transition explicit, and fix the input OTP caret blink speed so the intended 1s duration actually applies.
|
|
49
|
+
|
|
50
|
+
- [`0636d46`](https://github.com/codefastlabs/codefast/commit/0636d46e54366a690fb8b9a85bb3adafe3e73fbc) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): replace `react-day-picker` with `@daypicker/react`
|
|
51
|
+
|
|
52
|
+
- [`ae3240a`](https://github.com/codefastlabs/codefast/commit/ae3240a4a8f026aa4f5d04fd270022139fc77433) Thanks [@thevuong](https://github.com/thevuong)! - feat(ui): export DirectionProvider to propagate reading direction
|
|
53
|
+
|
|
54
|
+
- [`09c3782`](https://github.com/codefastlabs/codefast/commit/09c3782ad73a5d5d76e678d9d71ab22135cebd5a) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): simplify DirectionProvider and useDirection
|
|
55
|
+
|
|
56
|
+
- [#495](https://github.com/codefastlabs/codefast/pull/495) [`95b0ec4`](https://github.com/codefastlabs/codefast/commit/95b0ec41b5223ee48aeb6d82213f6b6d5c5cdd1e) Thanks [@thevuong](https://github.com/thevuong)! - Tune dialog, alert-dialog, drawer, and sheet overlay animations with asymmetric open/close durations and gentle easing.
|
|
57
|
+
|
|
58
|
+
- [#495](https://github.com/codefastlabs/codefast/pull/495) [`c60a41f`](https://github.com/codefastlabs/codefast/commit/c60a41f28af1e51d29331c3716ec5023e41b617a) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): drop redundant single-arg `cn(className)` in Breadcrumb, CalendarRoot, AlertDialogAction/Cancel, and SidebarTrigger — `className` already forwards through `...props`, so the extra destructure and wrapper added nothing
|
|
59
|
+
|
|
60
|
+
- Updated dependencies [[`fa338d6`](https://github.com/codefastlabs/codefast/commit/fa338d61fbfafb94beaa4d05d93d01e2c005cc91), [`b097689`](https://github.com/codefastlabs/codefast/commit/b0976892cae3433670837aee0872262d38be0f45), [`7a4f8c3`](https://github.com/codefastlabs/codefast/commit/7a4f8c3b487526a319c6808d1164ba1c8168e9b6)]:
|
|
61
|
+
- @codefast/tailwind-variants@0.4.0-canary.4
|
|
62
|
+
|
|
63
|
+
## 0.3.16-canary.3
|
|
64
|
+
|
|
65
|
+
### Patch Changes
|
|
66
|
+
|
|
67
|
+
- [`6f61b94`](https://github.com/codefastlabs/codefast/commit/6f61b9477d3a8af78084502aa7d8e39c8623b861) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): extract component variants into separate files
|
|
68
|
+
|
|
69
|
+
- [`2a82188`](https://github.com/codefastlabs/codefast/commit/2a82188264c204b0b519b3324402ae962594d29b) Thanks [@thevuong](https://github.com/thevuong)! - feat(dev): enable source condition for zero-rebuild HMR in apps/docs
|
|
70
|
+
|
|
71
|
+
- [`9b94464`](https://github.com/codefastlabs/codefast/commit/9b94464be2247bd5ead32dc3d5c921ae3a52070c) Thanks [@thevuong](https://github.com/thevuong)! - Use minimum `>=` ranges in peerDependencies instead of `^` caret ranges.
|
|
72
|
+
|
|
73
|
+
- [`0701beb`](https://github.com/codefastlabs/codefast/commit/0701beb99330b5ff60f2523c71e4d7b10bfb41b1) Thanks [@thevuong](https://github.com/thevuong)! - Migrate reduced-motion handling to Tailwind `motion-reduce` utilities across UI components.
|
|
74
|
+
|
|
75
|
+
- [`bb82c44`](https://github.com/codefastlabs/codefast/commit/bb82c44ea5033de18a1d2403c0f3396f3aac0e39) Thanks [@thevuong](https://github.com/thevuong)! - Refine component motion with spring, snappy, and gentle easing tokens, shimmer skeleton loading, consistent theme token ordering, polished transitions on overlay and form controls, and subtler checkbox, radio, and switch press feedback.
|
|
76
|
+
|
|
77
|
+
- [`4d859cd`](https://github.com/codefastlabs/codefast/commit/4d859cda4c87407710ccf0a99b89c2a2d3676bf9) Thanks [@thevuong](https://github.com/thevuong)! - Support system dark mode via prefers-color-scheme, soften dialog and sheet overlays with backdrop blur, and polish bottom sheet layout for mobile safe areas.
|
|
78
|
+
|
|
79
|
+
- [`08bd9ad`](https://github.com/codefastlabs/codefast/commit/08bd9ad3900cba6af1ab30b25f9c7c8b39bb2063) Thanks [@thevuong](https://github.com/thevuong)! - refactor(ui): simplify `utils.ts` imports and cleanup
|
|
80
|
+
|
|
81
|
+
- Updated dependencies [[`2a82188`](https://github.com/codefastlabs/codefast/commit/2a82188264c204b0b519b3324402ae962594d29b)]:
|
|
82
|
+
- @codefast/tailwind-variants@0.3.16-canary.3
|
|
83
|
+
|
|
3
84
|
## 0.3.16-canary.2
|
|
4
85
|
|
|
5
86
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -48,7 +48,7 @@ Accessible, typed React components built on Radix UI primitives and styled with
|
|
|
48
48
|
|
|
49
49
|
## Requirements
|
|
50
50
|
|
|
51
|
-
- React
|
|
51
|
+
- React `>=19.0.0` and `react-dom` (peer; `@types/*` are optional peers)
|
|
52
52
|
- Tailwind CSS `4.x` at build time (only if you use one of the theme CSS imports)
|
|
53
53
|
- TypeScript `>= 5.9` (recommended)
|
|
54
54
|
|
|
@@ -86,7 +86,7 @@ Import the palette and the preset **after** `tailwindcss` so Tailwind isn't dupl
|
|
|
86
86
|
@import "tailwindcss";
|
|
87
87
|
|
|
88
88
|
/* @codefast/ui tokens + preset */
|
|
89
|
-
@import "@codefast/ui/css/slate.css";
|
|
89
|
+
@import "@codefast/ui/css/themes/slate.css";
|
|
90
90
|
@import "@codefast/ui/css/preset.css";
|
|
91
91
|
```
|
|
92
92
|
|
|
@@ -110,7 +110,7 @@ Make sure your bundler can process CSS `@import` (Vite and Next.js do this out o
|
|
|
110
110
|
|
|
111
111
|
### Theme palettes
|
|
112
112
|
|
|
113
|
-
Replace `slate.css` with any
|
|
113
|
+
Replace `themes/slate.css` with any palette under `@codefast/ui/css/themes/`:
|
|
114
114
|
|
|
115
115
|
```
|
|
116
116
|
amber · blue · cyan · emerald · fuchsia · gray · green · indigo · lime · neutral
|
|
@@ -134,7 +134,7 @@ Pair with [`@codefast/theme`](../theme/README.md) for SSR-safe theme management
|
|
|
134
134
|
Override CSS custom properties after the imports:
|
|
135
135
|
|
|
136
136
|
```css
|
|
137
|
-
@import "@codefast/ui/css/slate.css";
|
|
137
|
+
@import "@codefast/ui/css/themes/slate.css";
|
|
138
138
|
@import "@codefast/ui/css/preset.css";
|
|
139
139
|
|
|
140
140
|
:root {
|
|
@@ -258,7 +258,7 @@ All components are also re-exported from the root entry `@codefast/ui`.
|
|
|
258
258
|
| `Alert` | `@codefast/ui/alert` | Inline status message. |
|
|
259
259
|
| `Avatar` | `@codefast/ui/avatar` | User avatar with fallback. |
|
|
260
260
|
| `Badge` | `@codefast/ui/badge` | Status pill. |
|
|
261
|
-
| `Calendar` | `@codefast/ui/calendar` | Date picker (react
|
|
261
|
+
| `Calendar` | `@codefast/ui/calendar` | Date picker (@daypicker/react). |
|
|
262
262
|
| `Carousel` | `@codefast/ui/carousel` | Slider (embla-carousel). |
|
|
263
263
|
| `Chart` | `@codefast/ui/chart` | Responsive charts (recharts). |
|
|
264
264
|
| `Collapsible` | `@codefast/ui/collapsible` | Expand/collapse primitive. |
|
|
@@ -298,7 +298,9 @@ Low-level building blocks, used internally by the styled components, exposed for
|
|
|
298
298
|
| `@codefast/ui/primitives/checkbox-group` | Controlled checkbox-group state machine. |
|
|
299
299
|
| `@codefast/ui/primitives/progress-circle` | Math + a11y primitive for circular progress. |
|
|
300
300
|
| `@codefast/ui/lib/utils` | `cn()` — classname merge helper used by every component. |
|
|
301
|
-
| `@codefast/ui/css/*`
|
|
301
|
+
| `@codefast/ui/css/themes/*` | Theme palette CSS files (see [Styling](#styling)). |
|
|
302
|
+
| `@codefast/ui/css/preset.css` | Tailwind preset: variants, `cf-*` utilities, base layer. |
|
|
303
|
+
| `@codefast/ui/css/style.css` | Bundled Tailwind + default palette + preset. |
|
|
302
304
|
|
|
303
305
|
```tsx
|
|
304
306
|
import { cn } from "@codefast/ui/lib/utils";
|
|
@@ -312,32 +314,32 @@ const classes = cn("rounded-md px-3 py-1", disabled && "opacity-50");
|
|
|
312
314
|
|
|
313
315
|
If you ship TanStack Start behind **[Nitro](https://v3.nitro.build/)** and **Vite 8 (Rolldown)**, you may hit a server-side `TypeError` referencing `__extends` or `__toESM(...).default` during route loaders or SSR. It originates from CJS `tslib` usage inside overlay-related dependencies (Dialog, Sheet, Menu, …) that reach for `react-remove-scroll-bar` and friends.
|
|
314
316
|
|
|
315
|
-
**
|
|
317
|
+
**Fix** — make Nitro resolve the ESM entry points of those packages via the `module` export condition. Pass it to the `nitro` plugin so the server build picks ESM over CJS:
|
|
316
318
|
|
|
317
319
|
```ts
|
|
318
320
|
// vite.config.ts
|
|
319
321
|
import { defineConfig } from "vite";
|
|
322
|
+
import { nitro } from "nitro/vite";
|
|
320
323
|
|
|
321
324
|
export default defineConfig({
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
325
|
+
plugins: [
|
|
326
|
+
// tanstackStart(), …
|
|
327
|
+
nitro({ exportConditions: ["module"] }),
|
|
328
|
+
],
|
|
326
329
|
});
|
|
327
330
|
```
|
|
328
331
|
|
|
329
|
-
|
|
332
|
+
Keep the client `resolve.conditions` aligned with the server so both sides resolve the same entry points — a mismatch can otherwise surface as a hydration warning:
|
|
330
333
|
|
|
331
334
|
```ts
|
|
332
335
|
export default defineConfig({
|
|
333
336
|
resolve: {
|
|
334
|
-
|
|
337
|
+
conditions: ["module"],
|
|
335
338
|
},
|
|
339
|
+
// …
|
|
336
340
|
});
|
|
337
341
|
```
|
|
338
342
|
|
|
339
|
-
> Don't use `nitro.alias` for the bare specifier `tslib`. In Nitro v3 that option is for unenv path overrides, not npm package names, and produces broken resolutions.
|
|
340
|
-
|
|
341
343
|
---
|
|
342
344
|
|
|
343
345
|
## Troubleshooting
|
|
@@ -347,7 +349,7 @@ export default defineConfig({
|
|
|
347
349
|
| Components render unstyled | Make sure CSS imports run before the first component mounts (import from the app entry). |
|
|
348
350
|
| Tailwind output is duplicated | Use the palette + `preset.css` import — don't also import `css/style.css` in the same app. |
|
|
349
351
|
| Dark mode doesn't apply | Add the `dark` class to `<html>` (or any ancestor). See [Dark mode](#dark-mode). |
|
|
350
|
-
| `Cannot destructure property '__extends'` in SSR |
|
|
352
|
+
| `Cannot destructure property '__extends'` in SSR | Pass `exportConditions: ["module"]` to the `nitro` plugin (see above). |
|
|
351
353
|
| Missing font or radius after palette switch | Re-import the palette **before** `preset.css`. Preset depends on palette variables being defined. |
|
|
352
354
|
|
|
353
355
|
---
|
|
@@ -390,7 +392,16 @@ Adding a component:
|
|
|
390
392
|
4. Add tests under `src/components/__tests__` (unit + `jest-axe` if interactive).
|
|
391
393
|
5. Run `pnpm --filter @codefast/ui build` to verify `tsdown` picks up the new entry.
|
|
392
394
|
|
|
393
|
-
CSS
|
|
395
|
+
CSS exports under `@codefast/ui/css/*` map to `src/css/`:
|
|
396
|
+
|
|
397
|
+
```
|
|
398
|
+
css/
|
|
399
|
+
├── style.css # Tailwind + themes/neutral + preset
|
|
400
|
+
├── preset.css # Aggregates foundation + utilities
|
|
401
|
+
├── foundation/ # source, variants, tokens, motion, base
|
|
402
|
+
├── utilities/ # shared + component utilities referenced in TSX
|
|
403
|
+
└── themes/ # amber.css … zinc.css
|
|
404
|
+
```
|
|
394
405
|
|
|
395
406
|
---
|
|
396
407
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
1
|
+
import { Accordion as Accordion$1 } from "radix-ui";
|
|
3
2
|
import { ComponentProps, JSX } from "react";
|
|
4
3
|
|
|
5
4
|
//#region src/components/accordion.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* @since 0.3.16-canary.0
|
|
8
7
|
*/
|
|
9
|
-
type AccordionProps = ComponentProps<typeof
|
|
8
|
+
type AccordionProps = ComponentProps<typeof Accordion$1.Root>;
|
|
10
9
|
/**
|
|
11
10
|
* @since 0.3.16-canary.0
|
|
12
11
|
*/
|
|
13
12
|
declare function Accordion({
|
|
13
|
+
className,
|
|
14
14
|
...props
|
|
15
15
|
}: AccordionProps): JSX.Element;
|
|
16
16
|
/**
|
|
17
17
|
* @since 0.3.16-canary.0
|
|
18
18
|
*/
|
|
19
|
-
type AccordionItemProps = ComponentProps<typeof
|
|
19
|
+
type AccordionItemProps = ComponentProps<typeof Accordion$1.Item>;
|
|
20
20
|
/**
|
|
21
21
|
* @since 0.3.16-canary.0
|
|
22
22
|
*/
|
|
@@ -27,22 +27,7 @@ declare function AccordionItem({
|
|
|
27
27
|
/**
|
|
28
28
|
* @since 0.3.16-canary.0
|
|
29
29
|
*/
|
|
30
|
-
|
|
31
|
-
asChild?: boolean;
|
|
32
|
-
className?: string;
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @since 0.3.16-canary.0
|
|
36
|
-
*/
|
|
37
|
-
declare function AccordionIcon({
|
|
38
|
-
asChild,
|
|
39
|
-
className,
|
|
40
|
-
...props
|
|
41
|
-
}: AccordionIconProps): JSX.Element;
|
|
42
|
-
/**
|
|
43
|
-
* @since 0.3.16-canary.0
|
|
44
|
-
*/
|
|
45
|
-
type AccordionTriggerProps = ComponentProps<typeof AccordionPrimitive.Trigger>;
|
|
30
|
+
type AccordionTriggerProps = ComponentProps<typeof Accordion$1.Trigger>;
|
|
46
31
|
/**
|
|
47
32
|
* @since 0.3.16-canary.0
|
|
48
33
|
*/
|
|
@@ -54,7 +39,7 @@ declare function AccordionTrigger({
|
|
|
54
39
|
/**
|
|
55
40
|
* @since 0.3.16-canary.0
|
|
56
41
|
*/
|
|
57
|
-
type AccordionContentProps = ComponentProps<typeof
|
|
42
|
+
type AccordionContentProps = ComponentProps<typeof Accordion$1.Content>;
|
|
58
43
|
/**
|
|
59
44
|
* @since 0.3.16-canary.0
|
|
60
45
|
*/
|
|
@@ -64,4 +49,4 @@ declare function AccordionContent({
|
|
|
64
49
|
...props
|
|
65
50
|
}: AccordionContentProps): JSX.Element;
|
|
66
51
|
//#endregion
|
|
67
|
-
export { Accordion, AccordionContent, type AccordionContentProps,
|
|
52
|
+
export { Accordion, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps };
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
"use client";
|
|
2
1
|
import { cn } from "../lib/utils.mjs";
|
|
3
|
-
import
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { ChevronDownIcon, ChevronUpIcon } from "lucide-react";
|
|
3
|
+
import { Accordion as Accordion$1 } from "radix-ui";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
7
5
|
//#region src/components/accordion.tsx
|
|
8
6
|
/**
|
|
9
7
|
* @since 0.3.16-canary.0
|
|
10
8
|
*/
|
|
11
|
-
function Accordion({ ...props }) {
|
|
12
|
-
return /* @__PURE__ */ jsx(
|
|
9
|
+
function Accordion({ className, ...props }) {
|
|
10
|
+
return /* @__PURE__ */ jsx(Accordion$1.Root, {
|
|
11
|
+
className: cn("flex w-full flex-col", className),
|
|
13
12
|
"data-slot": "accordion",
|
|
14
13
|
...props
|
|
15
14
|
});
|
|
@@ -18,8 +17,8 @@ function Accordion({ ...props }) {
|
|
|
18
17
|
* @since 0.3.16-canary.0
|
|
19
18
|
*/
|
|
20
19
|
function AccordionItem({ className, ...props }) {
|
|
21
|
-
return /* @__PURE__ */ jsx(
|
|
22
|
-
className: cn("
|
|
20
|
+
return /* @__PURE__ */ jsx(Accordion$1.Item, {
|
|
21
|
+
className: cn("not-last:border-b", className),
|
|
23
22
|
"data-slot": "accordion-item",
|
|
24
23
|
...props
|
|
25
24
|
});
|
|
@@ -27,26 +26,24 @@ function AccordionItem({ className, ...props }) {
|
|
|
27
26
|
/**
|
|
28
27
|
* @since 0.3.16-canary.0
|
|
29
28
|
*/
|
|
30
|
-
function AccordionIcon({ asChild, className, ...props }) {
|
|
31
|
-
return /* @__PURE__ */ jsx(asChild ? Slot : ChevronDownIcon, {
|
|
32
|
-
"aria-hidden": true,
|
|
33
|
-
className: cn("size-4 shrink-0 text-muted-foreground", "translate-y-0.5 transition-transform duration-200", className),
|
|
34
|
-
"data-slot": "accordion-icon",
|
|
35
|
-
...props
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* @since 0.3.16-canary.0
|
|
40
|
-
*/
|
|
41
29
|
function AccordionTrigger({ children, className, ...props }) {
|
|
42
|
-
return /* @__PURE__ */ jsx(
|
|
30
|
+
return /* @__PURE__ */ jsx(Accordion$1.Header, {
|
|
43
31
|
className: "flex",
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
className: cn("group/accordion-trigger flex grow items-start justify-between gap-4 py-4", "rounded-md outline-hidden", "text-left text-sm font-medium", "hover:not-disabled:underline", "focus-visible:ring-3 focus-visible:ring-ring/50", "disabled:opacity-50", "[&[data-state=open]>svg]:rotate-180", className),
|
|
32
|
+
children: /* @__PURE__ */ jsxs(Accordion$1.Trigger, {
|
|
33
|
+
className: cn("group/accordion-trigger relative flex flex-1 items-start justify-between rounded-md border border-transparent py-4 text-left text-sm font-medium transition-all outline-none hover:underline focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 focus-visible:after:border-ring disabled:pointer-events-none disabled:opacity-50 **:data-[slot=accordion-trigger-icon]:ml-auto **:data-[slot=accordion-trigger-icon]:size-4 **:data-[slot=accordion-trigger-icon]:text-muted-foreground", className),
|
|
47
34
|
"data-slot": "accordion-trigger",
|
|
48
35
|
...props,
|
|
49
|
-
children
|
|
36
|
+
children: [
|
|
37
|
+
children,
|
|
38
|
+
/* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
39
|
+
className: "pointer-events-none shrink-0 group-aria-expanded/accordion-trigger:hidden",
|
|
40
|
+
"data-slot": "accordion-trigger-icon"
|
|
41
|
+
}),
|
|
42
|
+
/* @__PURE__ */ jsx(ChevronUpIcon, {
|
|
43
|
+
className: "pointer-events-none hidden shrink-0 group-aria-expanded/accordion-trigger:inline",
|
|
44
|
+
"data-slot": "accordion-trigger-icon"
|
|
45
|
+
})
|
|
46
|
+
]
|
|
50
47
|
})
|
|
51
48
|
});
|
|
52
49
|
}
|
|
@@ -54,15 +51,15 @@ function AccordionTrigger({ children, className, ...props }) {
|
|
|
54
51
|
* @since 0.3.16-canary.0
|
|
55
52
|
*/
|
|
56
53
|
function AccordionContent({ children, className, ...props }) {
|
|
57
|
-
return /* @__PURE__ */ jsx(
|
|
58
|
-
className:
|
|
54
|
+
return /* @__PURE__ */ jsx(Accordion$1.Content, {
|
|
55
|
+
className: "overflow-hidden text-sm ease-snappy data-open:animate-accordion-down data-open:animation-duration-expand-in data-closed:animate-accordion-up data-closed:ease-exit data-closed:animation-duration-expand-out",
|
|
59
56
|
"data-slot": "accordion-content",
|
|
60
57
|
...props,
|
|
61
58
|
children: /* @__PURE__ */ jsx("div", {
|
|
62
|
-
className: cn("pt-0 pb-4
|
|
59
|
+
className: cn("h-(--radix-accordion-content-height) pt-0 pb-4 [&_a]:underline [&_a]:underline-offset-3 [&_a]:hover:text-foreground [&_p:not(:last-child)]:mb-4", className),
|
|
63
60
|
children
|
|
64
61
|
})
|
|
65
62
|
});
|
|
66
63
|
}
|
|
67
64
|
//#endregion
|
|
68
|
-
export { Accordion, AccordionContent,
|
|
65
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger };
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import * as AlertDialogPrimitive from "@radix-ui/react-alert-dialog";
|
|
1
|
+
import { ButtonProps } from "./button.mjs";
|
|
2
|
+
import { AlertDialog as AlertDialog$1 } from "radix-ui";
|
|
4
3
|
import { ComponentProps, JSX } from "react";
|
|
5
4
|
|
|
6
5
|
//#region src/components/alert-dialog.d.ts
|
|
7
6
|
/**
|
|
8
7
|
* @since 0.3.16-canary.0
|
|
9
8
|
*/
|
|
10
|
-
type AlertDialogProps = ComponentProps<typeof
|
|
9
|
+
type AlertDialogProps = ComponentProps<typeof AlertDialog$1.Root>;
|
|
11
10
|
/**
|
|
12
11
|
* @since 0.3.16-canary.0
|
|
13
12
|
*/
|
|
@@ -17,7 +16,7 @@ declare function AlertDialog({
|
|
|
17
16
|
/**
|
|
18
17
|
* @since 0.3.16-canary.0
|
|
19
18
|
*/
|
|
20
|
-
type AlertDialogTriggerProps = ComponentProps<typeof
|
|
19
|
+
type AlertDialogTriggerProps = ComponentProps<typeof AlertDialog$1.Trigger>;
|
|
21
20
|
/**
|
|
22
21
|
* @since 0.3.16-canary.0
|
|
23
22
|
*/
|
|
@@ -27,20 +26,15 @@ declare function AlertDialogTrigger({
|
|
|
27
26
|
/**
|
|
28
27
|
* @since 0.3.16-canary.0
|
|
29
28
|
*/
|
|
30
|
-
interface AlertDialogContentProps extends ComponentProps<typeof
|
|
31
|
-
|
|
32
|
-
content?: string;
|
|
33
|
-
overlay?: string;
|
|
34
|
-
wrapper?: string;
|
|
35
|
-
};
|
|
29
|
+
interface AlertDialogContentProps extends ComponentProps<typeof AlertDialog$1.Content> {
|
|
30
|
+
size?: "default" | "sm";
|
|
36
31
|
}
|
|
37
32
|
/**
|
|
38
33
|
* @since 0.3.16-canary.0
|
|
39
34
|
*/
|
|
40
35
|
declare function AlertDialogContent({
|
|
41
|
-
children,
|
|
42
36
|
className,
|
|
43
|
-
|
|
37
|
+
size,
|
|
44
38
|
...props
|
|
45
39
|
}: AlertDialogContentProps): JSX.Element;
|
|
46
40
|
/**
|
|
@@ -57,6 +51,21 @@ declare function AlertDialogHeader({
|
|
|
57
51
|
/**
|
|
58
52
|
* @since 0.3.16-canary.0
|
|
59
53
|
*/
|
|
54
|
+
type AlertDialogMediaProps = ComponentProps<"div">;
|
|
55
|
+
/**
|
|
56
|
+
* @since 0.3.16-canary.0
|
|
57
|
+
*/
|
|
58
|
+
declare function AlertDialogMedia({
|
|
59
|
+
className,
|
|
60
|
+
...props
|
|
61
|
+
}: AlertDialogMediaProps): JSX.Element;
|
|
62
|
+
/**
|
|
63
|
+
* Optional scrollable region for long content. When used, the Header and Footer
|
|
64
|
+
* stay pinned (shrink-0) and only this body scrolls; without it, the whole
|
|
65
|
+
* Content scrolls via its own max-height. A codefast enhancement over radix-vega.
|
|
66
|
+
*
|
|
67
|
+
* @since 0.3.16-canary.0
|
|
68
|
+
*/
|
|
60
69
|
type AlertDialogBodyProps = ComponentProps<"div">;
|
|
61
70
|
/**
|
|
62
71
|
* @since 0.3.16-canary.0
|
|
@@ -79,7 +88,7 @@ declare function AlertDialogFooter({
|
|
|
79
88
|
/**
|
|
80
89
|
* @since 0.3.16-canary.0
|
|
81
90
|
*/
|
|
82
|
-
type AlertDialogTitleProps = ComponentProps<typeof
|
|
91
|
+
type AlertDialogTitleProps = ComponentProps<typeof AlertDialog$1.Title>;
|
|
83
92
|
/**
|
|
84
93
|
* @since 0.3.16-canary.0
|
|
85
94
|
*/
|
|
@@ -90,7 +99,7 @@ declare function AlertDialogTitle({
|
|
|
90
99
|
/**
|
|
91
100
|
* @since 0.3.16-canary.0
|
|
92
101
|
*/
|
|
93
|
-
type AlertDialogDescriptionProps = ComponentProps<typeof
|
|
102
|
+
type AlertDialogDescriptionProps = ComponentProps<typeof AlertDialog$1.Description>;
|
|
94
103
|
/**
|
|
95
104
|
* @since 0.3.16-canary.0
|
|
96
105
|
*/
|
|
@@ -101,15 +110,11 @@ declare function AlertDialogDescription({
|
|
|
101
110
|
/**
|
|
102
111
|
* @since 0.3.16-canary.0
|
|
103
112
|
*/
|
|
104
|
-
interface AlertDialogActionProps extends ComponentProps<typeof
|
|
105
|
-
size?: VariantProps<typeof buttonVariants>["size"];
|
|
106
|
-
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
107
|
-
}
|
|
113
|
+
interface AlertDialogActionProps extends ComponentProps<typeof AlertDialog$1.Action>, Pick<ButtonProps, "size" | "variant"> {}
|
|
108
114
|
/**
|
|
109
115
|
* @since 0.3.16-canary.0
|
|
110
116
|
*/
|
|
111
117
|
declare function AlertDialogAction({
|
|
112
|
-
className,
|
|
113
118
|
size,
|
|
114
119
|
variant,
|
|
115
120
|
...props
|
|
@@ -117,18 +122,14 @@ declare function AlertDialogAction({
|
|
|
117
122
|
/**
|
|
118
123
|
* @since 0.3.16-canary.0
|
|
119
124
|
*/
|
|
120
|
-
interface AlertDialogCancelProps extends ComponentProps<typeof
|
|
121
|
-
size?: VariantProps<typeof buttonVariants>["size"];
|
|
122
|
-
variant?: VariantProps<typeof buttonVariants>["variant"];
|
|
123
|
-
}
|
|
125
|
+
interface AlertDialogCancelProps extends ComponentProps<typeof AlertDialog$1.Cancel>, Pick<ButtonProps, "size" | "variant"> {}
|
|
124
126
|
/**
|
|
125
127
|
* @since 0.3.16-canary.0
|
|
126
128
|
*/
|
|
127
129
|
declare function AlertDialogCancel({
|
|
128
|
-
className,
|
|
129
130
|
size,
|
|
130
131
|
variant,
|
|
131
132
|
...props
|
|
132
133
|
}: AlertDialogCancelProps): JSX.Element;
|
|
133
134
|
//#endregion
|
|
134
|
-
export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogBody, type AlertDialogBodyProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
|
|
135
|
+
export { AlertDialog, AlertDialogAction, type AlertDialogActionProps, AlertDialogBody, type AlertDialogBodyProps, AlertDialogCancel, type AlertDialogCancelProps, AlertDialogContent, type AlertDialogContentProps, AlertDialogDescription, type AlertDialogDescriptionProps, AlertDialogFooter, type AlertDialogFooterProps, AlertDialogHeader, type AlertDialogHeaderProps, AlertDialogMedia, type AlertDialogMediaProps, type AlertDialogProps, AlertDialogTitle, type AlertDialogTitleProps, AlertDialogTrigger, type AlertDialogTriggerProps };
|