@justanarthur/modo-ui 0.6.0 → 2.0.0
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/README.md +240 -549
- package/blocks/desktop-shell/examples.mdx +153 -0
- package/blocks/desktop-shell/index.tsx +352 -0
- package/blocks/shell-card/examples.mdx +72 -0
- package/blocks/shell-card/index.tsx +127 -0
- package/blocks/sidebar-app/examples.mdx +33 -0
- package/blocks/sidebar-app/index.tsx +232 -0
- package/blocks/sidebar-app/inset-topbar.tsx +20 -0
- package/blocks/sidebar-app/menu-grid.ts +16 -0
- package/blocks/sidebar-app/nav-data.ts +36 -0
- package/blocks/sidebar-app/search-field.tsx +41 -0
- package/blocks/sidebar-app/thread-page.tsx +58 -0
- package/blocks/sidebar-app/user-footer.tsx +60 -0
- package/blocks/sidebar-app/workspace-header.tsx +110 -0
- package/components/actions/button/examples.mdx +153 -0
- package/components/actions/button/index.tsx +325 -0
- package/components/actions/button/loading-demo.tsx +27 -0
- package/components/actions/button/variants.ts +138 -0
- package/components/actions/copy/examples.mdx +125 -0
- package/components/actions/copy/index.tsx +605 -0
- package/components/containers/accordion/accordion-content.tsx +220 -0
- package/components/containers/accordion/accordion-context.tsx +127 -0
- package/components/containers/accordion/accordion-group.tsx +215 -0
- package/components/containers/accordion/examples.mdx +165 -0
- package/components/containers/accordion/index.tsx +355 -0
- package/components/containers/card/card-group.tsx +184 -0
- package/components/containers/card/card-media.tsx +207 -0
- package/components/containers/card/card-parts.tsx +189 -0
- package/components/containers/card/examples.mdx +200 -0
- package/components/containers/card/index.tsx +380 -0
- package/components/data-display/avatar/examples.mdx +95 -0
- package/components/data-display/avatar/index.tsx +135 -0
- package/components/data-display/badge/change-demo.tsx +31 -0
- package/components/data-display/badge/examples.mdx +106 -0
- package/components/data-display/badge/index.tsx +185 -0
- package/components/data-display/badge/variants.ts +55 -0
- package/components/data-display/diff/examples.mdx +72 -0
- package/components/data-display/diff/index.tsx +147 -0
- package/components/data-display/kbd/examples.mdx +55 -0
- package/components/data-display/kbd/index.tsx +65 -0
- package/components/data-display/list/examples.mdx +157 -0
- package/components/data-display/list/index.tsx +130 -0
- package/components/data-display/log-view/examples.mdx +69 -0
- package/components/data-display/log-view/index.tsx +290 -0
- package/components/data-display/log-view/stream-demo.tsx +46 -0
- package/components/data-display/markdown/examples.mdx +92 -0
- package/components/data-display/markdown/index.tsx +291 -0
- package/components/data-display/table/context.ts +59 -0
- package/components/data-display/table/examples.mdx +156 -0
- package/components/data-display/table/head.tsx +105 -0
- package/components/data-display/table/index.tsx +176 -0
- package/components/data-display/table/parts.tsx +202 -0
- package/components/data-display/table/sort-demo.tsx +52 -0
- package/components/feedback/empty-state/examples.mdx +38 -0
- package/components/feedback/empty-state/index.tsx +96 -0
- package/components/feedback/meter/examples.mdx +61 -0
- package/components/feedback/meter/index.tsx +182 -0
- package/components/feedback/progress/examples.mdx +59 -0
- package/components/feedback/progress/index.tsx +168 -0
- package/components/feedback/progress/progress.css +27 -0
- package/components/feedback/progress/step-demo.tsx +29 -0
- package/components/feedback/status-dot/examples.mdx +75 -0
- package/components/feedback/status-dot/index.tsx +105 -0
- package/components/inputs/checkbox/examples.mdx +70 -0
- package/components/inputs/checkbox/index.tsx +465 -0
- package/components/inputs/checkbox/select-all-demo.tsx +50 -0
- package/components/inputs/choice-list/examples.mdx +101 -0
- package/components/inputs/choice-list/index.tsx +186 -0
- package/components/inputs/color-picker/channel-sliders.tsx +70 -0
- package/components/inputs/color-picker/color-input.tsx +387 -0
- package/components/inputs/color-picker/context.ts +11 -0
- package/components/inputs/color-picker/examples.mdx +82 -0
- package/components/inputs/color-picker/format-menu.tsx +212 -0
- package/components/inputs/color-picker/index.tsx +411 -0
- package/components/inputs/color-picker/inputs-row.tsx +196 -0
- package/components/inputs/color-picker/popover.tsx +193 -0
- package/components/inputs/color-picker/saturation-square.tsx +167 -0
- package/components/inputs/color-picker/swatches.tsx +178 -0
- package/components/inputs/color-picker/variants.ts +366 -0
- package/components/inputs/combobox/context.ts +114 -0
- package/components/inputs/combobox/examples.mdx +263 -0
- package/components/inputs/combobox/fields.tsx +377 -0
- package/components/inputs/combobox/index.tsx +390 -0
- package/components/inputs/combobox/list.tsx +415 -0
- package/components/inputs/combobox/remote-demo.tsx +101 -0
- package/components/inputs/date-time/calendar/examples.mdx +34 -0
- package/components/inputs/date-time/calendar/index.tsx +346 -0
- package/components/inputs/date-time/calendar/use-month-window.ts +176 -0
- package/components/inputs/date-time/date-picker/examples.mdx +183 -0
- package/components/inputs/date-time/date-picker/index.tsx +378 -0
- package/components/inputs/date-time/date-picker/masked-date-input.tsx +206 -0
- package/components/inputs/date-time/date-range-picker/examples.mdx +73 -0
- package/components/inputs/date-time/date-range-picker/index.tsx +503 -0
- package/components/inputs/date-time/date-value.ts +37 -0
- package/components/inputs/date-time/day-rules.ts +25 -0
- package/components/inputs/date-time/duration-picker/examples.mdx +32 -0
- package/components/inputs/date-time/duration-picker/index.tsx +215 -0
- package/components/inputs/date-time/month-picker/examples.mdx +28 -0
- package/components/inputs/date-time/month-picker/index.tsx +225 -0
- package/components/inputs/date-time/picker-shell.tsx +591 -0
- package/components/inputs/date-time/time-columns.tsx +93 -0
- package/components/inputs/date-time/time-picker/examples.mdx +39 -0
- package/components/inputs/date-time/time-picker/index.tsx +197 -0
- package/components/inputs/editable-text/examples.mdx +33 -0
- package/components/inputs/editable-text/index.tsx +175 -0
- package/components/inputs/field/examples.mdx +159 -0
- package/components/inputs/field/index.tsx +278 -0
- package/components/inputs/file-dropzone/examples.mdx +82 -0
- package/components/inputs/file-dropzone/file-row.tsx +200 -0
- package/components/inputs/file-dropzone/index.tsx +322 -0
- package/components/inputs/file-dropzone/upload-demo.tsx +71 -0
- package/components/inputs/file-dropzone/variants.ts +96 -0
- package/components/inputs/input/examples.mdx +111 -0
- package/components/inputs/input/index.tsx +431 -0
- package/components/inputs/input/password-demo.tsx +30 -0
- package/components/inputs/key-value/examples.mdx +58 -0
- package/components/inputs/key-value/index.tsx +232 -0
- package/components/inputs/label/examples.mdx +60 -0
- package/components/inputs/label/index.tsx +72 -0
- package/components/inputs/number-input/examples.mdx +96 -0
- package/components/inputs/number-input/index.tsx +226 -0
- package/components/inputs/radio/examples.mdx +72 -0
- package/components/inputs/radio/index.tsx +442 -0
- package/components/inputs/search/examples.mdx +74 -0
- package/components/inputs/search/index.tsx +340 -0
- package/components/inputs/select/examples.mdx +232 -0
- package/components/inputs/select/index.tsx +601 -0
- package/components/inputs/slider/comfortable.tsx +524 -0
- package/components/inputs/slider/compact.tsx +690 -0
- package/components/inputs/slider/examples.mdx +127 -0
- package/components/inputs/slider/geometry.ts +88 -0
- package/components/inputs/slider/index.tsx +136 -0
- package/components/inputs/slider/value-display.tsx +184 -0
- package/components/inputs/switch/examples.mdx +94 -0
- package/components/inputs/switch/index.tsx +452 -0
- package/components/inputs/textarea/examples.mdx +88 -0
- package/components/inputs/textarea/index.tsx +129 -0
- package/components/navigation/breadcrumb/examples.mdx +45 -0
- package/components/navigation/breadcrumb/index.tsx +284 -0
- package/components/navigation/navigation-menu/content.tsx +76 -0
- package/components/navigation/navigation-menu/context.ts +38 -0
- package/components/navigation/navigation-menu/examples.mdx +96 -0
- package/components/navigation/navigation-menu/index.tsx +211 -0
- package/components/navigation/navigation-menu/indicator.tsx +38 -0
- package/components/navigation/navigation-menu/item.tsx +47 -0
- package/components/navigation/navigation-menu/link.tsx +104 -0
- package/components/navigation/navigation-menu/list.tsx +97 -0
- package/components/navigation/navigation-menu/trigger.tsx +78 -0
- package/components/navigation/navigation-menu/use-dom-rows.ts +56 -0
- package/components/navigation/pagination/examples.mdx +65 -0
- package/components/navigation/pagination/index.tsx +323 -0
- package/components/navigation/sidebar/examples.mdx +319 -0
- package/components/navigation/sidebar/index.tsx +393 -0
- package/components/navigation/sidebar/menu-scope.tsx +439 -0
- package/components/navigation/sidebar/row-label.tsx +61 -0
- package/components/navigation/sidebar/sidebar-context.tsx +71 -0
- package/components/navigation/sidebar/sidebar-group.tsx +299 -0
- package/components/navigation/sidebar/sidebar-menu-actions.tsx +209 -0
- package/components/navigation/sidebar/sidebar-menu-button.tsx +214 -0
- package/components/navigation/sidebar/sidebar-menu-item.tsx +207 -0
- package/components/navigation/sidebar/sidebar-menu-sub.tsx +180 -0
- package/components/navigation/sidebar/sidebar-parts.tsx +94 -0
- package/components/navigation/sidebar/sidebar-provider.tsx +248 -0
- package/components/navigation/sidebar/sidebar-rail.tsx +206 -0
- package/components/navigation/sidebar/sidebar-shell.tsx +180 -0
- package/components/navigation/sidebar/sidebar-shortcut.tsx +101 -0
- package/components/navigation/sidebar/sidebar.css +70 -0
- package/components/navigation/sidebar/use-measured-collapse.ts +62 -0
- package/components/navigation/tabs/context.ts +45 -0
- package/components/navigation/tabs/examples.mdx +146 -0
- package/components/navigation/tabs/index.tsx +142 -0
- package/components/navigation/tabs/item.tsx +161 -0
- package/components/navigation/tabs/list.tsx +143 -0
- package/components/navigation/tree/examples.mdx +76 -0
- package/components/navigation/tree/index.tsx +431 -0
- package/components/overlays/alert-dialog/examples.mdx +89 -0
- package/components/overlays/alert-dialog/index.tsx +273 -0
- package/components/overlays/alert-dialog/pending-demo.tsx +38 -0
- package/components/overlays/command/examples.mdx +113 -0
- package/components/overlays/command/index.tsx +397 -0
- package/components/overlays/context-menu/examples.mdx +110 -0
- package/components/overlays/context-menu/index.tsx +144 -0
- package/components/overlays/dialog/examples.mdx +162 -0
- package/components/overlays/dialog/index.tsx +326 -0
- package/components/overlays/dropdown/dropdown-search.tsx +330 -0
- package/components/overlays/dropdown/examples.mdx +242 -0
- package/components/overlays/dropdown/index.tsx +433 -0
- package/components/overlays/dropdown/menu-item.tsx +326 -0
- package/components/overlays/dropdown/menu-parts.tsx +153 -0
- package/components/overlays/dropdown/menu-popup.tsx +336 -0
- package/components/overlays/dropdown/panel-state.ts +209 -0
- package/components/overlays/dropdown/submenu.tsx +169 -0
- package/components/overlays/lightbox/examples.mdx +29 -0
- package/components/overlays/lightbox/index.tsx +395 -0
- package/components/overlays/popover/anchored-demo.tsx +68 -0
- package/components/overlays/popover/examples.mdx +154 -0
- package/components/overlays/popover/index.tsx +276 -0
- package/components/overlays/preview-card/examples.mdx +61 -0
- package/components/overlays/preview-card/index.tsx +152 -0
- package/components/overlays/sheet/examples.mdx +102 -0
- package/components/overlays/sheet/index.tsx +290 -0
- package/components/overlays/toast/examples.mdx +109 -0
- package/components/overlays/toast/index.tsx +469 -0
- package/components/overlays/toast/manager.ts +170 -0
- package/components/overlays/tooltip/examples.mdx +100 -0
- package/components/overlays/tooltip/index.tsx +408 -0
- package/dist/base.css +186 -50
- package/dist/blocks/desktop-shell/index.d.ts +84 -0
- package/dist/blocks/desktop-shell/index.js +45 -0
- package/dist/blocks/shell-card/index.d.ts +57 -0
- package/dist/blocks/shell-card/index.js +13 -0
- package/dist/blocks/sidebar-app/index.d.ts +31 -3
- package/dist/blocks/sidebar-app/index.js +55 -26
- package/dist/components/actions/button/index.d.ts +87 -0
- package/dist/components/actions/button/index.js +22 -0
- package/dist/components/actions/button/variants.d.ts +29 -0
- package/dist/components/actions/button/variants.js +6 -0
- package/dist/components/actions/copy/index.d.ts +79 -0
- package/dist/components/actions/copy/index.js +26 -0
- package/dist/components/containers/accordion/index.d.ts +144 -0
- package/dist/components/containers/accordion/index.js +40 -0
- package/dist/components/containers/card/index.d.ts +223 -0
- package/dist/components/containers/card/index.js +58 -0
- package/dist/components/data-display/avatar/index.d.ts +46 -0
- package/dist/components/data-display/avatar/index.js +20 -0
- package/dist/components/{badge → data-display/badge}/index.d.ts +18 -15
- package/dist/components/data-display/badge/index.js +21 -0
- package/dist/components/data-display/badge/variants.d.ts +31 -0
- package/dist/components/data-display/badge/variants.js +8 -0
- package/dist/components/data-display/diff/index.d.ts +42 -0
- package/dist/components/data-display/diff/index.js +17 -0
- package/dist/components/data-display/kbd/index.d.ts +28 -0
- package/dist/components/data-display/kbd/index.js +11 -0
- package/dist/components/data-display/list/index.d.ts +60 -0
- package/dist/components/data-display/list/index.js +21 -0
- package/dist/components/data-display/log-view/index.d.ts +47 -0
- package/dist/components/data-display/log-view/index.js +26 -0
- package/dist/components/data-display/markdown/index.d.ts +43 -0
- package/dist/components/data-display/markdown/index.js +34 -0
- package/dist/components/data-display/table/index.d.ts +117 -0
- package/dist/components/data-display/table/index.js +40 -0
- package/dist/components/feedback/empty-state/index.d.ts +38 -0
- package/dist/components/feedback/empty-state/index.js +15 -0
- package/dist/components/feedback/meter/index.d.ts +48 -0
- package/dist/components/feedback/meter/index.js +13 -0
- package/dist/components/feedback/progress/index.d.ts +55 -0
- package/dist/components/feedback/progress/index.js +16 -0
- package/dist/components/feedback/status-dot/index.d.ts +37 -0
- package/dist/components/feedback/status-dot/index.js +15 -0
- package/dist/components/inputs/checkbox/index.d.ts +31 -9
- package/dist/components/inputs/checkbox/index.js +22 -13
- package/dist/components/inputs/choice-list/index.d.ts +52 -0
- package/dist/components/inputs/choice-list/index.js +25 -0
- package/dist/components/inputs/color-picker/index.d.ts +89 -53
- package/dist/components/inputs/color-picker/index.js +37 -21
- package/dist/components/inputs/color-picker/variants.d.ts +61 -0
- package/dist/components/inputs/color-picker/variants.js +28 -0
- package/dist/components/inputs/combobox/index.d.ts +194 -103
- package/dist/components/inputs/combobox/index.js +31 -20
- package/dist/components/inputs/date-time/calendar/index.d.ts +6 -1
- package/dist/components/inputs/date-time/calendar/index.js +17 -11
- package/dist/components/inputs/date-time/date-picker/index.d.ts +105 -20
- package/dist/components/inputs/date-time/date-picker/index.js +42 -25
- package/dist/components/inputs/date-time/date-range-picker/index.d.ts +137 -22
- package/dist/components/inputs/date-time/date-range-picker/index.js +42 -24
- package/dist/components/inputs/date-time/duration-picker/index.d.ts +60 -10
- package/dist/components/inputs/date-time/duration-picker/index.js +39 -24
- package/dist/components/inputs/date-time/month-picker/index.d.ts +57 -9
- package/dist/components/inputs/date-time/month-picker/index.js +38 -23
- package/dist/components/inputs/date-time/time-picker/index.d.ts +55 -9
- package/dist/components/inputs/date-time/time-picker/index.js +39 -24
- package/dist/components/inputs/editable-text/index.d.ts +38 -0
- package/dist/components/inputs/editable-text/index.js +17 -0
- package/dist/components/inputs/field/index.d.ts +112 -0
- package/dist/components/inputs/field/index.js +28 -0
- package/dist/components/inputs/file-dropzone/index.d.ts +176 -0
- package/dist/components/inputs/file-dropzone/index.js +36 -0
- package/dist/components/inputs/file-dropzone/variants.d.ts +35 -0
- package/dist/components/inputs/file-dropzone/variants.js +12 -0
- package/dist/components/inputs/input/index.d.ts +100 -20
- package/dist/components/inputs/input/index.js +20 -9
- package/dist/components/inputs/key-value/index.d.ts +57 -0
- package/dist/components/inputs/key-value/index.js +29 -0
- package/dist/components/inputs/label/index.d.ts +34 -0
- package/dist/components/inputs/label/index.js +12 -0
- package/dist/components/inputs/number-input/index.d.ts +96 -0
- package/dist/components/inputs/number-input/index.js +23 -0
- package/dist/components/inputs/radio/index.d.ts +25 -6
- package/dist/components/inputs/radio/index.js +20 -12
- package/dist/components/inputs/search/index.d.ts +10 -3
- package/dist/components/inputs/search/index.js +33 -18
- package/dist/components/inputs/select/index.d.ts +141 -52
- package/dist/components/inputs/select/index.js +36 -17
- package/dist/components/inputs/slider/index.d.ts +26 -39
- package/dist/components/inputs/slider/index.js +9 -7
- package/dist/components/inputs/switch/index.d.ts +14 -2
- package/dist/components/inputs/switch/index.js +17 -12
- package/dist/components/inputs/textarea/index.d.ts +13 -4
- package/dist/components/inputs/textarea/index.js +12 -6
- package/dist/components/navigation/breadcrumb/index.d.ts +44 -0
- package/dist/components/navigation/breadcrumb/index.js +45 -0
- package/dist/components/navigation/navigation-menu/index.d.ts +166 -0
- package/dist/components/navigation/navigation-menu/index.js +47 -0
- package/dist/components/navigation/pagination/index.d.ts +62 -0
- package/dist/components/navigation/pagination/index.js +34 -0
- package/dist/components/navigation/sidebar/index.d.ts +228 -207
- package/dist/components/navigation/sidebar/index.js +51 -36
- package/dist/components/navigation/tabs/index.d.ts +63 -40
- package/dist/components/navigation/tabs/index.js +23 -12
- package/dist/components/navigation/tree/index.d.ts +65 -0
- package/dist/components/navigation/tree/index.js +25 -0
- package/dist/components/overlays/alert-dialog/index.d.ts +149 -45
- package/dist/components/overlays/alert-dialog/index.js +28 -13
- package/dist/components/overlays/command/index.d.ts +36 -17
- package/dist/components/overlays/command/index.js +31 -17
- package/dist/components/overlays/context-menu/index.d.ts +182 -50
- package/dist/components/overlays/context-menu/index.js +37 -19
- package/dist/components/overlays/dialog/index.d.ts +110 -72
- package/dist/components/overlays/dialog/index.js +23 -12
- package/dist/components/overlays/dropdown/index.d.ts +329 -121
- package/dist/components/overlays/dropdown/index.js +53 -21
- package/dist/components/overlays/lightbox/index.d.ts +59 -0
- package/dist/components/overlays/lightbox/index.js +30 -0
- package/dist/components/overlays/popover/index.d.ts +100 -39
- package/dist/components/overlays/popover/index.js +17 -9
- package/dist/components/overlays/preview-card/index.d.ts +55 -26
- package/dist/components/overlays/preview-card/index.js +16 -8
- package/dist/components/overlays/sheet/index.d.ts +82 -28
- package/dist/components/overlays/sheet/index.js +24 -13
- package/dist/components/overlays/toast/index.d.ts +155 -53
- package/dist/components/overlays/toast/index.js +24 -10
- package/dist/components/overlays/tooltip/index.d.ts +113 -39
- package/dist/components/overlays/tooltip/index.js +18 -6
- package/dist/docs/index.d.ts +54 -0
- package/dist/docs/index.js +327 -0
- package/dist/docs/vite.d.ts +50 -0
- package/dist/docs/vite.js +63 -0
- package/dist/index.d.ts +5036 -2211
- package/dist/index.js +413 -155
- package/dist/lib/date-locale.d.ts +31 -0
- package/dist/lib/date-locale.js +26 -0
- package/dist/lib/date-mask.d.ts +41 -0
- package/dist/lib/date-mask.js +20 -0
- package/dist/lib/field-box.d.ts +114 -0
- package/dist/lib/field-box.js +18 -0
- package/dist/lib/field-classes.d.ts +45 -0
- package/dist/lib/field-classes.js +24 -0
- package/dist/lib/fluid-hover-highlight.d.ts +90 -0
- package/dist/lib/fluid-hover-highlight.js +12 -0
- package/dist/lib/focus-ring.d.ts +24 -0
- package/dist/lib/focus-ring.js +11 -0
- package/dist/lib/goo-indicator.d.ts +46 -0
- package/dist/lib/goo-indicator.js +15 -0
- package/dist/lib/icon-context.d.ts +29 -0
- package/dist/lib/icon-context.js +10 -0
- package/dist/lib/merge-refs.d.ts +10 -0
- package/dist/lib/merge-refs.js +8 -0
- package/dist/lib/morph-layers.d.ts +99 -0
- package/dist/lib/morph-layers.js +14 -0
- package/dist/lib/morph-part.d.ts +21 -0
- package/dist/lib/morph-part.js +12 -0
- package/dist/lib/overlay.d.ts +113 -0
- package/dist/lib/overlay.js +21 -0
- package/dist/lib/popup-rows.d.ts +101 -0
- package/dist/lib/popup-rows.js +25 -0
- package/dist/lib/popup-surface.d.ts +92 -0
- package/dist/lib/popup-surface.js +17 -0
- package/dist/lib/popup.d.ts +36 -0
- package/dist/lib/popup.js +15 -0
- package/dist/lib/rect.d.ts +16 -0
- package/dist/lib/rect.js +12 -0
- package/dist/lib/reduced-motion.d.ts +9 -0
- package/dist/lib/reduced-motion.js +6 -0
- package/dist/lib/row-group.d.ts +100 -0
- package/dist/lib/row-group.js +12 -0
- package/dist/lib/row-index.d.ts +12 -0
- package/dist/lib/row-index.js +10 -0
- package/dist/lib/row-order.d.ts +28 -0
- package/dist/lib/row-order.js +11 -0
- package/dist/lib/scroll-column.d.ts +27 -0
- package/dist/lib/scroll-column.js +20 -0
- package/dist/lib/shape-classes.d.ts +16 -0
- package/dist/lib/shape-classes.js +6 -0
- package/dist/lib/shape-context.d.ts +30 -0
- package/dist/lib/shape-context.js +11 -0
- package/dist/lib/size-context.d.ts +93 -0
- package/dist/lib/size-context.js +15 -0
- package/dist/lib/size-scale.d.ts +79 -0
- package/dist/lib/size-scale.js +8 -0
- package/dist/lib/slot.d.ts +51 -0
- package/dist/lib/slot.js +16 -0
- package/dist/lib/spinner-glyph.d.ts +7 -0
- package/dist/lib/spinner-glyph.js +7 -0
- package/dist/lib/springs.d.ts +48 -0
- package/dist/lib/springs.js +10 -0
- package/dist/lib/surface-classes.d.ts +19 -0
- package/dist/lib/surface-classes.js +10 -0
- package/dist/lib/surface-context.d.ts +11 -0
- package/dist/lib/surface-context.js +10 -0
- package/dist/lib/use-autosize-textarea.d.ts +16 -0
- package/dist/lib/use-autosize-textarea.js +7 -0
- package/dist/lib/use-controllable-state.d.ts +16 -0
- package/dist/lib/use-controllable-state.js +6 -0
- package/dist/lib/use-fluid-hover.d.ts +90 -0
- package/dist/lib/use-fluid-hover.js +8 -0
- package/dist/lib/use-is-mobile.d.ts +2 -0
- package/dist/lib/use-is-mobile.js +6 -0
- package/dist/lib/use-iso-layout-effect.d.ts +7 -0
- package/dist/lib/use-iso-layout-effect.js +6 -0
- package/dist/lib/use-keyboard-nav-gate.d.ts +20 -0
- package/dist/lib/use-keyboard-nav-gate.js +8 -0
- package/dist/lib/use-merge-split.d.ts +47 -0
- package/dist/lib/use-merge-split.js +16 -0
- package/dist/lib/use-morph.d.ts +107 -0
- package/dist/lib/use-morph.js +21 -0
- package/dist/lib/use-touch-primary.d.ts +2 -0
- package/dist/lib/use-touch-primary.js +6 -0
- package/dist/lib/utils.d.ts +3 -0
- package/dist/lib/utils.js +6 -0
- package/dist/lib/weight-label.d.ts +26 -0
- package/dist/lib/weight-label.js +7 -0
- package/dist/preset.d.ts +27 -0
- package/dist/preset.js +35 -4
- package/dist/primitives/content/code/index.js +14 -0
- package/dist/primitives/content/skeleton/index.d.ts +35 -0
- package/dist/primitives/content/skeleton/index.js +14 -0
- package/dist/primitives/layout/resizable/index.d.ts +67 -0
- package/dist/primitives/layout/resizable/index.js +16 -0
- package/dist/primitives/{scroll-area → layout/scroll-area}/index.d.ts +5 -4
- package/dist/primitives/layout/scroll-area/index.js +14 -0
- package/dist/primitives/layout/separator/index.d.ts +26 -0
- package/dist/primitives/layout/separator/index.js +9 -0
- package/dist/primitives/layout/sortable/index.d.ts +79 -0
- package/dist/primitives/layout/sortable/index.js +23 -0
- package/dist/primitives/layout/virtual-list/index.d.ts +50 -0
- package/dist/primitives/layout/virtual-list/index.js +9 -0
- package/dist/primitives/{craft → systems/craft}/index.d.ts +1 -1
- package/dist/primitives/systems/craft/index.js +16 -0
- package/dist/primitives/{fluid-hover → systems/fluid-hover}/index.d.ts +13 -14
- package/dist/primitives/systems/fluid-hover/index.js +30 -0
- package/dist/primitives/{morph → systems/morph}/index.d.ts +4 -2
- package/dist/primitives/systems/morph/index.js +30 -0
- package/dist/primitives/{motion → systems/motion}/index.d.ts +2 -0
- package/dist/primitives/systems/motion/index.js +25 -0
- package/dist/primitives/{sizes → systems/sizes}/index.d.ts +19 -6
- package/dist/primitives/{sizes → systems/sizes}/index.js +10 -5
- package/dist/primitives/{surface → systems/surface}/index.d.ts +12 -25
- package/dist/primitives/systems/surface/index.js +21 -0
- package/dist/shared/components-0cpte6s1.js +868 -0
- package/dist/shared/{components-b2wyq2cq.js → components-0h2mng6m.js} +65 -88
- package/dist/shared/components-14wzcym0.js +585 -0
- package/dist/shared/components-1asw2ph0.js +237 -0
- package/dist/shared/components-1bnf96sr.js +231 -0
- package/dist/shared/components-1f3a7gmg.js +168 -0
- package/dist/shared/components-1hb27y2e.js +77 -0
- package/dist/shared/components-1hga6pkn.js +334 -0
- package/dist/shared/components-1ztgy933.js +61 -0
- package/dist/shared/components-22h8dvt1.js +180 -0
- package/dist/shared/{components-y9y0g8er.js → components-280grw6q.js} +41 -55
- package/dist/shared/components-29ebea21.js +129 -0
- package/dist/shared/components-2m2hg11x.js +1486 -0
- package/dist/shared/components-3hgk57s0.js +27 -0
- package/dist/shared/components-3rvrdsa9.js +208 -0
- package/dist/shared/{components-1v7rxytx.js → components-45r18egt.js} +11 -1
- package/dist/shared/components-464zs8v6.js +152 -0
- package/dist/shared/components-4t2cjav8.js +73 -0
- package/dist/shared/components-5xs8pkkj.js +64 -0
- package/dist/shared/components-62510420.js +192 -0
- package/dist/shared/components-6f5pyzb2.js +33 -0
- package/dist/shared/components-6h5qg9rs.js +188 -0
- package/dist/shared/components-6rtawx8y.js +476 -0
- package/dist/shared/{components-fzrq6tr3.js → components-77gxngmc.js} +87 -62
- package/dist/shared/{components-59efxjd9.js → components-7c4a0egq.js} +9 -0
- package/dist/shared/components-7mj5wsv3.js +200 -0
- package/dist/shared/components-7xc2dne4.js +324 -0
- package/dist/shared/{components-hqeq3w9q.js → components-8pnvkrbw.js} +51 -50
- package/dist/shared/{components-c6s6b43g.js → components-8wp8d8q1.js} +11 -2
- package/dist/shared/components-91mmbrw3.js +113 -0
- package/dist/shared/components-92mvpt9h.js +243 -0
- package/dist/shared/components-9ca0c92a.js +148 -0
- package/dist/shared/components-9h3g4mnq.js +46 -0
- package/dist/shared/components-9rebr89j.js +249 -0
- package/dist/shared/{components-s083f38z.js → components-9z7bq8gn.js} +192 -62
- package/dist/shared/{components-q5xj5c16.js → components-a1ms36qq.js} +17 -9
- package/dist/shared/components-a1mwqxsv.js +448 -0
- package/dist/shared/components-azrjnfxn.js +22 -0
- package/dist/shared/components-b2kjsn1s.js +643 -0
- package/dist/shared/{components-1z6tdadk.js → components-b7p1pjcm.js} +40 -36
- package/dist/shared/components-b9bj65j3.js +204 -0
- package/dist/shared/components-bkwjvvkh.js +18 -0
- package/dist/shared/components-c515d6xr.js +35 -0
- package/dist/shared/{components-zx6b6yby.js → components-ceyn28cf.js} +11 -18
- package/dist/shared/components-chda6b23.js +70 -0
- package/dist/shared/{components-vc7vq5nz.js → components-cp5ym3g2.js} +16 -7
- package/dist/shared/components-czvraaw9.js +135 -0
- package/dist/shared/components-dm86y7b3.js +105 -0
- package/dist/shared/{components-mjthm1kf.js → components-e7zxwja1.js} +18 -15
- package/dist/shared/components-ee09xmkh.js +359 -0
- package/dist/shared/{components-b0eac83j.js → components-esy5nsvc.js} +17 -31
- package/dist/shared/{components-39jq9va1.js → components-ev0ytbqb.js} +39 -31
- package/dist/shared/components-ew4wq7mj.js +42 -0
- package/dist/shared/components-fmyvz4r2.js +79 -0
- package/dist/shared/components-fpsfr52a.js +34 -0
- package/dist/shared/{components-jwst3vtj.js → components-fqsgd07c.js} +198 -86
- package/dist/shared/{components-kvr7f9hy.js → components-g35n8tzm.js} +20 -12
- package/dist/shared/components-g8qgr7p8.js +28 -0
- package/dist/shared/{components-vfbhxf5r.js → components-gd8gmr6w.js} +10 -9
- package/dist/shared/components-grxgqa75.js +49 -0
- package/dist/shared/{components-8snj490h.js → components-gsstwhtv.js} +101 -72
- package/dist/shared/components-h0x2pj2y.js +433 -0
- package/dist/shared/components-h8v9nh5r.js +142 -0
- package/dist/shared/components-hcftn5r8.js +336 -0
- package/dist/shared/components-hh1g7r3t.js +57 -0
- package/dist/shared/components-hz6armxa.js +301 -0
- package/dist/shared/{components-ta7shw28.js → components-j3q9kaps.js} +11 -7
- package/dist/shared/{components-4700p9kz.js → components-j79a6jqa.js} +44 -38
- package/dist/shared/components-jeecysvd.js +192 -0
- package/dist/shared/{components-zrkzcayz.js → components-jnhpgpfk.js} +59 -4
- package/dist/shared/{components-7r3etddy.js → components-jw45ck66.js} +30 -58
- package/dist/shared/components-kwxye0an.js +85 -0
- package/dist/shared/{components-cv16mryv.js → components-kxpcj2ry.js} +24 -32
- package/dist/shared/components-m3vxpz2z.js +123 -0
- package/dist/shared/components-me742146.js +252 -0
- package/dist/shared/components-mse06t0x.js +31 -0
- package/dist/shared/components-n0gbyp5a.js +65 -0
- package/dist/shared/{components-w90endve.js → components-nhmgr5xc.js} +1480 -1483
- package/dist/shared/components-nwa2a9tq.js +27 -0
- package/dist/shared/components-nxqrw789.js +37 -0
- package/dist/shared/components-nz14rwtd.js +40 -0
- package/dist/shared/components-p0x8ren6.js +61 -0
- package/dist/shared/{components-wvp1m52g.js → components-p32aqk3q.js} +919 -898
- package/dist/shared/components-pa2t12j2.js +327 -0
- package/dist/shared/components-pa43g2r2.js +39 -0
- package/dist/shared/components-pva1wj1r.js +27 -0
- package/dist/shared/components-q0hs5rqn.js +91 -0
- package/dist/shared/components-q7zk70tx.js +257 -0
- package/dist/shared/components-r5q9gdh4.js +147 -0
- package/dist/shared/components-rgng034x.js +53 -0
- package/dist/shared/{components-2dxkv6zm.js → components-rzy6h7s4.js} +34 -40
- package/dist/shared/components-s217vq1n.js +35 -0
- package/dist/shared/components-s4x951hj.js +45 -0
- package/dist/shared/components-s90v3jpr.js +1170 -0
- package/dist/shared/components-t0c1rw40.js +75 -0
- package/dist/shared/components-t84071ay.js +76 -0
- package/dist/shared/{components-gz8zf3ec.js → components-ta4e10mx.js} +16 -43
- package/dist/shared/components-tcyz2tdn.js +31 -0
- package/dist/shared/components-twyj2y8c.js +336 -0
- package/dist/shared/{components-men63rwj.js → components-tz0axc0f.js} +4 -2
- package/dist/shared/components-v2j3jx89.js +7 -0
- package/dist/shared/components-vcte8p75.js +71 -0
- package/dist/shared/components-vfreweq3.js +210 -0
- package/dist/shared/components-vpkh6j83.js +42 -0
- package/dist/shared/{components-5xc2j8jz.js → components-w1ysefg1.js} +27 -18
- package/dist/shared/components-w2at9ntm.js +113 -0
- package/dist/shared/{components-0q0sqfh4.js → components-wq9hrera.js} +48 -49
- package/dist/shared/{components-n7mjr357.js → components-wwd093xg.js} +4 -2
- package/dist/shared/{components-5vgpnxgy.js → components-wx1dcp2n.js} +36 -52
- package/dist/shared/components-xa9fvd5b.js +302 -0
- package/dist/shared/components-xnkc892z.js +340 -0
- package/dist/shared/{components-ezxhrmer.js → components-xnp09586.js} +9 -1
- package/dist/shared/components-y09nr7fe.js +30 -0
- package/dist/shared/{components-11da9ajg.js → components-y4gsk1jt.js} +12 -8
- package/dist/shared/components-y8m64zdw.js +561 -0
- package/dist/shared/components-yf2gtq68.js +302 -0
- package/dist/shared/components-ymq8tbq9.js +88 -0
- package/dist/shared/components-ywgqahmg.js +80 -0
- package/dist/shared/{components-chacnk61.js → components-z0kz9rxj.js} +20 -19
- package/dist/shared/components-znspksk0.js +41 -0
- package/dist/styles.css +493 -147
- package/dist/tailwind.css +42 -0
- package/dist/tokens.css +91 -6
- package/docs/chrome.css +175 -0
- package/docs/chrome.tsx +314 -0
- package/docs/index.ts +8 -0
- package/docs/vite.ts +123 -0
- package/index.ts +93 -0
- package/lib/date-locale.ts +204 -0
- package/lib/date-mask.ts +146 -0
- package/lib/field-box.ts +117 -0
- package/lib/field-classes.ts +106 -0
- package/lib/fluid-hover-highlight.tsx +94 -0
- package/lib/focus-ring.tsx +49 -0
- package/lib/goo-indicator.tsx +263 -0
- package/lib/icon-context.tsx +302 -0
- package/lib/merge-refs.ts +29 -0
- package/lib/morph-layers.tsx +104 -0
- package/lib/morph-part.tsx +51 -0
- package/lib/overlay.tsx +118 -0
- package/lib/popup-rows.tsx +149 -0
- package/lib/popup-surface.tsx +52 -0
- package/lib/popup.ts +53 -0
- package/lib/rect.ts +48 -0
- package/lib/reduced-motion.ts +21 -0
- package/lib/row-group.tsx +113 -0
- package/lib/row-index.tsx +36 -0
- package/lib/row-order.tsx +111 -0
- package/lib/scroll-column.tsx +246 -0
- package/lib/shape-classes.ts +56 -0
- package/lib/shape-context.tsx +77 -0
- package/lib/size-context.tsx +53 -0
- package/lib/size-scale.ts +109 -0
- package/lib/slot.tsx +137 -0
- package/lib/spinner-glyph.tsx +27 -0
- package/lib/springs.ts +61 -0
- package/lib/surface-classes.ts +53 -0
- package/lib/surface-context.tsx +26 -0
- package/lib/use-autosize-textarea.ts +64 -0
- package/lib/use-controllable-state.ts +59 -0
- package/lib/use-fluid-hover.ts +539 -0
- package/lib/use-is-mobile.ts +25 -0
- package/lib/use-iso-layout-effect.ts +14 -0
- package/lib/use-keyboard-nav-gate.ts +44 -0
- package/lib/use-merge-split.tsx +199 -0
- package/lib/use-morph.ts +533 -0
- package/lib/use-touch-primary.tsx +43 -0
- package/lib/utils.ts +30 -0
- package/lib/weight-label.tsx +69 -0
- package/package.json +255 -7
- package/primitives/content/code/examples.mdx +27 -0
- package/primitives/content/code/index.tsx +82 -0
- package/primitives/content/skeleton/examples.mdx +51 -0
- package/primitives/content/skeleton/index.tsx +86 -0
- package/primitives/content/skeleton/skeleton.css +20 -0
- package/primitives/layout/resizable/examples.mdx +93 -0
- package/primitives/layout/resizable/index.tsx +332 -0
- package/primitives/layout/scroll-area/examples.mdx +58 -0
- package/primitives/layout/scroll-area/index.tsx +179 -0
- package/primitives/layout/separator/examples.mdx +30 -0
- package/primitives/layout/separator/index.tsx +54 -0
- package/primitives/layout/sortable/examples.mdx +53 -0
- package/primitives/layout/sortable/index.tsx +351 -0
- package/primitives/layout/virtual-list/examples.mdx +45 -0
- package/primitives/layout/virtual-list/index.tsx +269 -0
- package/primitives/layout/virtual-list/jump-demo.tsx +53 -0
- package/primitives/systems/craft/demos.tsx +175 -0
- package/primitives/systems/craft/examples.mdx +140 -0
- package/primitives/systems/craft/index.tsx +79 -0
- package/primitives/systems/fluid-hover/examples.mdx +84 -0
- package/primitives/systems/fluid-hover/index.tsx +281 -0
- package/primitives/systems/morph/examples.mdx +136 -0
- package/primitives/systems/morph/index.tsx +199 -0
- package/primitives/systems/motion/examples.mdx +100 -0
- package/primitives/systems/motion/index.tsx +144 -0
- package/primitives/systems/sizes/examples.mdx +167 -0
- package/primitives/systems/sizes/index.tsx +75 -0
- package/primitives/systems/surface/examples.mdx +173 -0
- package/primitives/systems/surface/index.tsx +84 -0
- package/primitives/systems/surface/surface.css +176 -0
- package/tokens/colors.css +234 -0
- package/tokens/motion.css +40 -0
- package/tokens/radius.css +24 -0
- package/tokens/spacing.css +9 -0
- package/tokens/typography.css +119 -0
- package/dist/components/AI/input-message/index.d.ts +0 -125
- package/dist/components/AI/input-message/index.js +0 -25
- package/dist/components/AI/thinking-indicator/index.d.ts +0 -32
- package/dist/components/AI/thinking-indicator/index.js +0 -13
- package/dist/components/accordion/index.d.ts +0 -117
- package/dist/components/accordion/index.js +0 -28
- package/dist/components/badge/index.js +0 -16
- package/dist/components/button/index.d.ts +0 -59
- package/dist/components/button/index.js +0 -14
- package/dist/components/card/index.d.ts +0 -141
- package/dist/components/card/index.js +0 -42
- package/dist/components/copy/index.d.ts +0 -44
- package/dist/components/copy/index.js +0 -16
- package/dist/components/navigation/tabs-subtle/index.d.ts +0 -73
- package/dist/components/navigation/tabs-subtle/index.js +0 -21
- package/dist/components/table/index.d.ts +0 -44
- package/dist/components/table/index.js +0 -26
- package/dist/primitives/code/index.js +0 -11
- package/dist/primitives/craft/index.js +0 -11
- package/dist/primitives/fluid-hover/index.js +0 -25
- package/dist/primitives/morph/index.js +0 -19
- package/dist/primitives/motion/index.js +0 -19
- package/dist/primitives/scroll-area/index.js +0 -12
- package/dist/primitives/surface/index.js +0 -17
- package/dist/shared/components-0sn7ypjw.js +0 -61
- package/dist/shared/components-1434p1mh.js +0 -123
- package/dist/shared/components-27nnvrwe.js +0 -152
- package/dist/shared/components-2ecg8svx.js +0 -496
- package/dist/shared/components-2ph6t61s.js +0 -215
- package/dist/shared/components-3ky44908.js +0 -9
- package/dist/shared/components-3mkepka5.js +0 -111
- package/dist/shared/components-6p8tfcd6.js +0 -122
- package/dist/shared/components-b3c5et5b.js +0 -667
- package/dist/shared/components-d6xtjht3.js +0 -981
- package/dist/shared/components-dk0gjr5a.js +0 -304
- package/dist/shared/components-gc5vtq2f.js +0 -149
- package/dist/shared/components-gf5s6ap9.js +0 -42
- package/dist/shared/components-h2ajmhwn.js +0 -183
- package/dist/shared/components-hw9yk32z.js +0 -288
- package/dist/shared/components-hyq23phv.js +0 -310
- package/dist/shared/components-jbbmdr74.js +0 -484
- package/dist/shared/components-jjw69c4c.js +0 -28
- package/dist/shared/components-jthe1pwb.js +0 -1759
- package/dist/shared/components-kwa6mrf9.js +0 -89
- package/dist/shared/components-n42c79bz.js +0 -445
- package/dist/shared/components-ng72k97e.js +0 -128
- package/dist/shared/components-pbmqctfa.js +0 -300
- package/dist/shared/components-raknhppb.js +0 -64
- package/dist/shared/components-rr7a6ja9.js +0 -160
- package/dist/shared/components-s5ngg32c.js +0 -267
- package/dist/shared/components-sn1rxx1d.js +0 -143
- package/dist/shared/components-vynjtrk6.js +0 -19
- package/dist/shared/components-w1r67ag9.js +0 -717
- package/dist/shared/components-wy9jpqny.js +0 -146
- package/dist/shared/components-ypp01w3p.js +0 -986
- package/dist/shared/components-zfnmn5d4.js +0 -220
- /package/dist/primitives/{code → content/code}/index.d.ts +0 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Code2
|
|
3
|
+
} from "../../../shared/components-y4gsk1jt.js";
|
|
4
|
+
import"../../../shared/components-ceyn28cf.js";
|
|
5
|
+
import"../../../shared/components-nwa2a9tq.js";
|
|
6
|
+
import"../../../shared/components-esy5nsvc.js";
|
|
7
|
+
import"../../../shared/components-6f5pyzb2.js";
|
|
8
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
9
|
+
import"../../../shared/components-s217vq1n.js";
|
|
10
|
+
import"../../../shared/components-xnp09586.js";
|
|
11
|
+
export {
|
|
12
|
+
Code2 as Code,
|
|
13
|
+
Code2 as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
type SizeVariant = "default" | "compact";
|
|
3
|
+
import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn } from "react";
|
|
4
|
+
import { RefAttributes as RefAttributes_miuf56 } from "react";
|
|
5
|
+
interface SkeletonProps extends Omit<ComponentPropsWithoutRef<"div">, "children" | "className"> {
|
|
6
|
+
/** Renders a stack of this many row placeholders, each one control tall and 4px apart, for a list still loading. Omitted, the skeleton is one block you size with `className`. */
|
|
7
|
+
rows?: number;
|
|
8
|
+
/** Frames the rows in a hairline container, like an outlined Card.Group. Only with `rows`. Defaults to `false`. */
|
|
9
|
+
bordered?: boolean;
|
|
10
|
+
/** Pins the rows to one step of the size ladder (36px default, 28px compact). Defaults to the surrounding SizeProvider. */
|
|
11
|
+
size?: SizeVariant;
|
|
12
|
+
/** Classes for the block (its width, height and radius) or, with `rows`, for the stack. */
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* A placeholder that holds the place of content still loading, so nothing
|
|
17
|
+
* jumps when it arrives.
|
|
18
|
+
*
|
|
19
|
+
* One block by default: give it the size of what it stands for through
|
|
20
|
+
* `className` (`h-4 w-40` for a line of text, `size-9 rounded-full` for an
|
|
21
|
+
* avatar). With `rows` it becomes a stack of rows one control tall (36px,
|
|
22
|
+
* 28px compact), the height of a list or menu row, 4px apart; `bordered`
|
|
23
|
+
* frames them like an outlined group, the row corners nesting inside the
|
|
24
|
+
* frame's. A table's rows sit at their own pitch (a control plus a
|
|
25
|
+
* hairline), so for a table the stack is a close match, not a line-for-line
|
|
26
|
+
* one. The fill is a light mix of the foreground, so it reads on any
|
|
27
|
+
* surface level in light and dark. It pulses in opacity only; under reduced
|
|
28
|
+
* motion the pulse stays, as every fade does, but dims half as far.
|
|
29
|
+
* Placeholders are hidden from assistive tech: mark the region that is
|
|
30
|
+
* loading with `aria-busy`.
|
|
31
|
+
*
|
|
32
|
+
* @example {@include ./examples.mdx}
|
|
33
|
+
*/
|
|
34
|
+
declare const Skeleton: ForwardRefExoticComponent_tcubfn<SkeletonProps & RefAttributes_miuf56<HTMLDivElement>>;
|
|
35
|
+
export { Skeleton, SkeletonProps, Skeleton as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Skeleton2,
|
|
3
|
+
skeleton_default
|
|
4
|
+
} from "../../../shared/components-s4x951hj.js";
|
|
5
|
+
import"../../../shared/components-znspksk0.js";
|
|
6
|
+
import"../../../shared/components-ew4wq7mj.js";
|
|
7
|
+
import"../../../shared/components-tz0axc0f.js";
|
|
8
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
9
|
+
import"../../../shared/components-s217vq1n.js";
|
|
10
|
+
import"../../../shared/components-xnp09586.js";
|
|
11
|
+
export {
|
|
12
|
+
Skeleton2 as Skeleton,
|
|
13
|
+
skeleton_default as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, ReactNode, RefAttributes } from "react";
|
|
2
|
+
import { JSX as JSX_1kxb } from "react";
|
|
3
|
+
type ResizableDirection = "horizontal" | "vertical";
|
|
4
|
+
interface ResizablePanelProps {
|
|
5
|
+
/** Initial share of the group, in percent. Panels without one share what the others leave. */
|
|
6
|
+
defaultSize?: number;
|
|
7
|
+
/** Smallest share, in percent. Defaults to `0`. */
|
|
8
|
+
minSize?: number;
|
|
9
|
+
/** Largest share, in percent. Defaults to `100`. */
|
|
10
|
+
maxSize?: number;
|
|
11
|
+
/** Let the panel snap shut when dragged below half its `minSize`, and open again past it. Defaults to `false`. */
|
|
12
|
+
collapsible?: boolean;
|
|
13
|
+
/** The panel's content. */
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
/** Classes for the panel. */
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
19
|
+
declare function ResizablePanel({ children, className }: ResizablePanelProps): Element_12xgc;
|
|
20
|
+
interface ResizableHandleProps {
|
|
21
|
+
/** Accessible name of the separator. Defaults to `'Resize'`. */
|
|
22
|
+
label?: string;
|
|
23
|
+
/** Classes for the separator. */
|
|
24
|
+
className?: string;
|
|
25
|
+
}
|
|
26
|
+
declare function ResizableHandle({ label, className }: ResizableHandleProps): Element_12xgc;
|
|
27
|
+
interface ResizableProps {
|
|
28
|
+
/** Lay the panels out side by side or stacked. Defaults to `'horizontal'`. */
|
|
29
|
+
direction?: ResizableDirection;
|
|
30
|
+
/** Controlled panel sizes in percent, one per panel in order. Pair with `onSizesChange`. */
|
|
31
|
+
sizes?: number[];
|
|
32
|
+
/** Called with every panel's size whenever a handle moves. */
|
|
33
|
+
onSizesChange?: (sizes: number[]) => void;
|
|
34
|
+
/** Percent a handle moves per arrow key. Defaults to `5`. */
|
|
35
|
+
step?: number;
|
|
36
|
+
/** `Resizable.Panel`s with a `Resizable.Handle` between each pair. */
|
|
37
|
+
children: ReactNode;
|
|
38
|
+
/** Classes for the group. */
|
|
39
|
+
className?: string;
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Panes that split a region and resize by dragging the line between them.
|
|
43
|
+
*
|
|
44
|
+
* Each `Resizable.Panel` takes a share of the group in percent, with optional
|
|
45
|
+
* limits; a `Resizable.Handle` between two panels moves space from one to the
|
|
46
|
+
* other. The handle rests as a hairline and thickens while the pointer is on
|
|
47
|
+
* it or holds it; the drag keeps going wherever the pointer travels. By
|
|
48
|
+
* keyboard, arrows move it a step, Home and End take the panel before it to
|
|
49
|
+
* its smallest and largest size, and a double-click puts every panel back to
|
|
50
|
+
* its starting size. A collapsible panel snaps shut when dragged below half
|
|
51
|
+
* its minimum. A drag follows the pointer; every other change of size (a
|
|
52
|
+
* key, a reset, new controlled `sizes`, such as a toggle folding a pane)
|
|
53
|
+
* glides there. Sizes work uncontrolled (each panel's `defaultSize`) or
|
|
54
|
+
* controlled (`sizes` + `onSizesChange`). Groups nest: put a Resizable inside
|
|
55
|
+
* a panel to split it the other way.
|
|
56
|
+
*
|
|
57
|
+
* Statics:
|
|
58
|
+
* - `Resizable.Panel` — one pane: `defaultSize`, `minSize`, `maxSize`, `collapsible`.
|
|
59
|
+
* - `Resizable.Handle` — the separator between two panels: `label`.
|
|
60
|
+
*
|
|
61
|
+
* @example {@include ./examples.mdx}
|
|
62
|
+
*/
|
|
63
|
+
declare const Resizable: ForwardRefExoticComponent<ResizableProps & RefAttributes<HTMLDivElement>> & {
|
|
64
|
+
Panel: typeof ResizablePanel;
|
|
65
|
+
Handle: typeof ResizableHandle;
|
|
66
|
+
};
|
|
67
|
+
export { Resizable, ResizableDirection, ResizableHandle, ResizableHandleProps, ResizablePanel, ResizablePanelProps, ResizableProps, Resizable as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ResizablePanel2,
|
|
3
|
+
ResizableHandle2,
|
|
4
|
+
Resizable2,
|
|
5
|
+
resizable_default
|
|
6
|
+
} from "../../../shared/components-7mj5wsv3.js";
|
|
7
|
+
import"../../../shared/components-45r18egt.js";
|
|
8
|
+
import"../../../shared/components-wwd093xg.js";
|
|
9
|
+
import"../../../shared/components-tz0axc0f.js";
|
|
10
|
+
import"../../../shared/components-xnp09586.js";
|
|
11
|
+
export {
|
|
12
|
+
Resizable2 as Resizable,
|
|
13
|
+
ResizableHandle2 as ResizableHandle,
|
|
14
|
+
ResizablePanel2 as ResizablePanel,
|
|
15
|
+
resizable_default as default
|
|
16
|
+
};
|
|
@@ -11,10 +11,9 @@ interface ScrollAreaProps extends ComponentPropsWithoutRef<"div"> {
|
|
|
11
11
|
/** The scrolling content. Give it an intrinsic size (`w-max`, `whitespace-nowrap`) to overflow horizontally. */
|
|
12
12
|
children?: ReactNode;
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
/** `ScrollBar` — one scrollbar, for composing a Base UI scroll area by hand. */
|
|
14
|
+
type ScrollAreaComponent = ForwardRefExoticComponent<ScrollAreaProps & RefAttributes<HTMLDivElement>> & {
|
|
16
15
|
Bar: typeof ScrollBar;
|
|
17
|
-
}
|
|
16
|
+
};
|
|
18
17
|
/**
|
|
19
18
|
* A scrollbar that stays out of the way but never disappears, over shadcn's
|
|
20
19
|
* scroll-fade as the baseline edge treatment — restyled to the shape system,
|
|
@@ -35,7 +34,9 @@ interface ScrollAreaStatics {
|
|
|
35
34
|
* areas.
|
|
36
35
|
*
|
|
37
36
|
* @example {@include ./examples.mdx}
|
|
37
|
+
* @source https://github.com/mickadesign/fluid-functionalism/blob/b3587bdbd83fc66c2a6aae3817ffb856cb09260b/registry/base/scroll-area.tsx Fluid Functionalism
|
|
38
|
+
* @license MIT © 2026 Micka Touillaud
|
|
38
39
|
*/
|
|
39
|
-
declare const ScrollArea:
|
|
40
|
+
declare const ScrollArea: ScrollAreaComponent;
|
|
40
41
|
declare const ScrollBar: ForwardRefExoticComponent<Omit<Omit<ScrollAreaScrollbarProps_g9nf4s, "ref"> & RefAttributes<HTMLDivElement>, "ref"> & RefAttributes<HTMLDivElement>>;
|
|
41
42
|
export { ScrollArea, ScrollAreaProps, ScrollBar, ScrollArea as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ScrollArea2,
|
|
3
|
+
ScrollBar2,
|
|
4
|
+
scroll_area_default
|
|
5
|
+
} from "../../../shared/components-esy5nsvc.js";
|
|
6
|
+
import"../../../shared/components-6f5pyzb2.js";
|
|
7
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
8
|
+
import"../../../shared/components-s217vq1n.js";
|
|
9
|
+
import"../../../shared/components-xnp09586.js";
|
|
10
|
+
export {
|
|
11
|
+
ScrollArea2 as ScrollArea,
|
|
12
|
+
ScrollBar2 as ScrollBar,
|
|
13
|
+
scroll_area_default as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn } from "react";
|
|
3
|
+
import { RefAttributes as RefAttributes_miuf56 } from "react";
|
|
4
|
+
type SeparatorOrientation = "horizontal" | "vertical";
|
|
5
|
+
interface SeparatorProps extends Omit<ComponentPropsWithoutRef<"div">, "children" | "className"> {
|
|
6
|
+
/** Which way the line runs: across a stack, or down between the items of a row. A vertical line stretches to its row's height. Defaults to `"horizontal"`. */
|
|
7
|
+
orientation?: "horizontal" | "vertical";
|
|
8
|
+
/** Classes for the line: margins, or a length shorter than the full run. */
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* A 1px hairline between groups of content: stacked sections, a toolbar's
|
|
13
|
+
* clusters, a card's body and its actions.
|
|
14
|
+
*
|
|
15
|
+
* It is the system's one line: `border`, 12% of the foreground, so it tracks
|
|
16
|
+
* light and dark and any forced scheme on a subtree, and it never thickens
|
|
17
|
+
* or takes a color. Base UI's Separator gives it the `separator` role and
|
|
18
|
+
* its orientation for assistive tech. A horizontal line fills its
|
|
19
|
+
* container's width; a vertical one stretches to the height of the row it
|
|
20
|
+
* sits in. The spacing around it is the layout's: pass margins through
|
|
21
|
+
* `className`. Other props go to the `div`.
|
|
22
|
+
*
|
|
23
|
+
* @example {@include ./examples.mdx}
|
|
24
|
+
*/
|
|
25
|
+
declare const Separator: ForwardRefExoticComponent_tcubfn<SeparatorProps & RefAttributes_miuf56<HTMLDivElement>>;
|
|
26
|
+
export { Separator, SeparatorOrientation, SeparatorProps, Separator as default };
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { FocusEvent, KeyboardEvent, PointerEvent, ReactNode } from "react";
|
|
2
|
+
import { JSX as JSX_1kxb } from "react";
|
|
3
|
+
/** One entry: a stable id, the name screen readers hear, and what the row shows. */
|
|
4
|
+
interface SortableItem {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
content?: ReactNode;
|
|
8
|
+
}
|
|
9
|
+
type SortableOrientation = "vertical" | "horizontal";
|
|
10
|
+
/** The list's element: a list of its own, or `'none'` for rows that are already a host list's items. */
|
|
11
|
+
type SortableAs = "ul" | "ol" | "none";
|
|
12
|
+
interface SortableHandleProps {
|
|
13
|
+
/** Accessible name of the handle. Defaults to `'Reorder'` followed by the item's label. */
|
|
14
|
+
label?: string;
|
|
15
|
+
/** Classes for the handle button. */
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/** The props that make any button its item's drag handle: keyboard focus, the pointer grab and an accessible name. */
|
|
19
|
+
declare function useSortableHandle(label?: string): {
|
|
20
|
+
"aria-label": string;
|
|
21
|
+
onPointerDown: (e: PointerEvent) => void;
|
|
22
|
+
ref: (node: HTMLElement | null) => void;
|
|
23
|
+
tabIndex: number;
|
|
24
|
+
"aria-roledescription": string;
|
|
25
|
+
"aria-describedby": string;
|
|
26
|
+
onKeyDown: (e: KeyboardEvent) => void;
|
|
27
|
+
onBlur: (e: FocusEvent) => void;
|
|
28
|
+
};
|
|
29
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
30
|
+
/** The grip that drags its item, when the list has `handle`. It also takes the item's keyboard focus. */
|
|
31
|
+
declare function SortableHandle({ label, className }: SortableHandleProps): Element_12xgc;
|
|
32
|
+
interface SortableProps {
|
|
33
|
+
/** Every entry, in any order: `{ id, label, content? }`. `label` is announced and shown when there is no `content`. */
|
|
34
|
+
items: SortableItem[];
|
|
35
|
+
/** Controlled order, as item ids. Pair with `onOrderChange`. */
|
|
36
|
+
order?: string[];
|
|
37
|
+
/** Initial order, for an uncontrolled list. Defaults to the order of `items`. */
|
|
38
|
+
defaultOrder?: string[];
|
|
39
|
+
/** Called with the new order of ids after every move. */
|
|
40
|
+
onOrderChange?: (order: string[]) => void;
|
|
41
|
+
/** Which way the list runs, and which arrows move an item. Defaults to `'vertical'`. */
|
|
42
|
+
orientation?: SortableOrientation;
|
|
43
|
+
/** The list's element. `'none'` renders plain boxes with no role, for rows that are a host list's own items (a `Sidebar.Menu`'s rows). Defaults to `'ul'`. */
|
|
44
|
+
as?: SortableAs;
|
|
45
|
+
/** Drag only by each item's `Sortable.Handle` (which also takes keyboard focus) instead of the whole item. Defaults to `false`. */
|
|
46
|
+
handle?: boolean;
|
|
47
|
+
/** Accessible name of the list (ignored with `as="none"`: name the host list). */
|
|
48
|
+
label?: string;
|
|
49
|
+
/** Classes for the list. */
|
|
50
|
+
className?: string;
|
|
51
|
+
/** Classes for every item. */
|
|
52
|
+
itemClassName?: string;
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Drag to reorder a list, with the pointer or the keyboard.
|
|
56
|
+
*
|
|
57
|
+
* Grab an item and the others make room as it passes, sliding on the
|
|
58
|
+
* moderate spring; the item you hold lifts one surface step off the list.
|
|
59
|
+
* From the keyboard, focus an item (or its handle) and press Space to lift
|
|
60
|
+
* it, the arrow keys to move it, Space again to drop it, or Escape to put it
|
|
61
|
+
* back where it was; each step is announced. With `handle`, only the grip
|
|
62
|
+
* drags, so the rest of the row can hold buttons and text to select. Works
|
|
63
|
+
* controlled (`order` + `onOrderChange`) or uncontrolled (`defaultOrder`).
|
|
64
|
+
*
|
|
65
|
+
* Statics:
|
|
66
|
+
* - `Sortable.Handle` — the grip inside an item's `content`, for a list with
|
|
67
|
+
* `handle`: `label`, `className`.
|
|
68
|
+
*
|
|
69
|
+
* `useSortableHandle(label?)` returns the same wiring as props, to spread on
|
|
70
|
+
* a button of your own (a sidebar row's action). With `as="none"` the list
|
|
71
|
+
* and its items are plain boxes with no role, so a host list's rows (a
|
|
72
|
+
* `Sidebar.Menu`'s items) can be the ones that move.
|
|
73
|
+
*
|
|
74
|
+
* @example {@include ./examples.mdx}
|
|
75
|
+
*/
|
|
76
|
+
declare const Sortable: (({ items, order, defaultOrder, onOrderChange, orientation, as, handle, label, className, itemClassName }: SortableProps) => Element_12xgc) & {
|
|
77
|
+
Handle: typeof SortableHandle;
|
|
78
|
+
};
|
|
79
|
+
export { Sortable, SortableAs, SortableHandle, SortableHandleProps, SortableItem, SortableOrientation, SortableProps, Sortable as default, useSortableHandle };
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
useSortableHandle2,
|
|
3
|
+
SortableHandle2,
|
|
4
|
+
Sortable2,
|
|
5
|
+
sortable_default
|
|
6
|
+
} from "../../../shared/components-92mvpt9h.js";
|
|
7
|
+
import"../../../shared/components-jnhpgpfk.js";
|
|
8
|
+
import"../../../shared/components-45r18egt.js";
|
|
9
|
+
import"../../../shared/components-wwd093xg.js";
|
|
10
|
+
import"../../../shared/components-znspksk0.js";
|
|
11
|
+
import"../../../shared/components-ew4wq7mj.js";
|
|
12
|
+
import"../../../shared/components-tz0axc0f.js";
|
|
13
|
+
import"../../../shared/components-ceyn28cf.js";
|
|
14
|
+
import"../../../shared/components-nwa2a9tq.js";
|
|
15
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
16
|
+
import"../../../shared/components-s217vq1n.js";
|
|
17
|
+
import"../../../shared/components-xnp09586.js";
|
|
18
|
+
export {
|
|
19
|
+
Sortable2 as Sortable,
|
|
20
|
+
SortableHandle2 as SortableHandle,
|
|
21
|
+
sortable_default as default,
|
|
22
|
+
useSortableHandle2 as useSortableHandle
|
|
23
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn } from "react";
|
|
3
|
+
import { RefAttributes as RefAttributes_miuf56 } from "react";
|
|
4
|
+
type VirtualListAlign = "auto" | "start" | "center" | "end";
|
|
5
|
+
/** What a `ref` on VirtualList holds. */
|
|
6
|
+
interface VirtualListHandle {
|
|
7
|
+
/** Scrolls the row at `index` into view: only as far as needed (`auto`), or to the viewport's start, center or end. */
|
|
8
|
+
scrollToIndex: (index: number, align?: VirtualListAlign) => void;
|
|
9
|
+
/** Scrolls to the very end and, with `follow`, starts following again. */
|
|
10
|
+
scrollToEnd: () => void;
|
|
11
|
+
}
|
|
12
|
+
interface VirtualListProps {
|
|
13
|
+
/** Number of rows. */
|
|
14
|
+
count: number;
|
|
15
|
+
/** Renders the row at `index`. Only rows near the viewport are rendered. */
|
|
16
|
+
renderItem: (index: number) => ReactNode;
|
|
17
|
+
/** Fixed row height in px. Leave it out to measure each row as it renders. */
|
|
18
|
+
itemHeight?: number;
|
|
19
|
+
/** Height in px assumed for a row not measured yet, when there is no `itemHeight`. Defaults to `36`. */
|
|
20
|
+
estimateHeight?: number;
|
|
21
|
+
/** Rows rendered beyond each edge of the viewport, so a fast scroll never shows a gap. Defaults to `6`. */
|
|
22
|
+
overscan?: number;
|
|
23
|
+
/** Stay scrolled to the end while rows are added or grow, as long as the reader is at the end; scrolling up lets go, scrolling back down (or `scrollToEnd`) follows again. A followed list starts at its end. Defaults to `false`. */
|
|
24
|
+
follow?: boolean;
|
|
25
|
+
/** Called when following starts or stops, e.g. to show a jump-to-latest button. Only with `follow`. */
|
|
26
|
+
onFollowChange?: (following: boolean) => void;
|
|
27
|
+
/** Width of the rows as a CSS length, for rows wider than the viewport (unwrapped log lines) that scroll sideways. Defaults to the list's width. */
|
|
28
|
+
contentWidth?: string;
|
|
29
|
+
/** Accessible name of the list. */
|
|
30
|
+
label?: string;
|
|
31
|
+
/** Classes for the root. On its own it is the scroller: give it a height. Inside a ScrollArea the area scrolls it. */
|
|
32
|
+
className?: string;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* A long list that renders only the rows you can see.
|
|
36
|
+
*
|
|
37
|
+
* Ten thousand rows scroll like ten: the list keeps its full height, and
|
|
38
|
+
* only the rows inside the viewport, plus `overscan` on each side, are
|
|
39
|
+
* mounted. Rows take a fixed `itemHeight`, or are measured as they render
|
|
40
|
+
* (`estimateHeight` stands in until then), so wrapping text and rows of
|
|
41
|
+
* different kinds just work. On its own the list scrolls itself; inside a
|
|
42
|
+
* ScrollArea it follows the area's viewport, so the list can sit below a
|
|
43
|
+
* header in one scroll. With `follow` a growing list (a log, a chat) stays
|
|
44
|
+
* at its end until the reader scrolls up. A `ref` gives
|
|
45
|
+
* `scrollToIndex(index, align)` and `scrollToEnd()`.
|
|
46
|
+
*
|
|
47
|
+
* @example {@include ./examples.mdx}
|
|
48
|
+
*/
|
|
49
|
+
declare const VirtualList: ForwardRefExoticComponent_tcubfn<VirtualListProps & RefAttributes_miuf56<VirtualListHandle>>;
|
|
50
|
+
export { VirtualList, VirtualListAlign, VirtualListHandle, VirtualListProps, VirtualList as default };
|
|
@@ -28,4 +28,4 @@ type Element_12xgc = JSX_1kxb["Element"];
|
|
|
28
28
|
* @example {@include ./examples.mdx}
|
|
29
29
|
*/
|
|
30
30
|
declare function Craft({ bad, good, badNote, goodNote, className }: CraftProps): Element_12xgc;
|
|
31
|
-
export { CraftProps, Craft as default };
|
|
31
|
+
export { Craft, CraftProps, Craft as default };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Craft2
|
|
3
|
+
} from "../../../shared/components-gd8gmr6w.js";
|
|
4
|
+
import"../../../shared/components-jw45ck66.js";
|
|
5
|
+
import"../../../shared/components-9h3g4mnq.js";
|
|
6
|
+
import"../../../shared/components-45r18egt.js";
|
|
7
|
+
import"../../../shared/components-znspksk0.js";
|
|
8
|
+
import"../../../shared/components-ew4wq7mj.js";
|
|
9
|
+
import"../../../shared/components-tz0axc0f.js";
|
|
10
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
11
|
+
import"../../../shared/components-s217vq1n.js";
|
|
12
|
+
import"../../../shared/components-xnp09586.js";
|
|
13
|
+
export {
|
|
14
|
+
Craft2 as Craft,
|
|
15
|
+
Craft2 as default
|
|
16
|
+
};
|
|
@@ -90,8 +90,6 @@ declare function useFluidHover<T extends HTMLElement>(containerRef: RefObject<T
|
|
|
90
90
|
*/
|
|
91
91
|
declare function useRegisterFluidHoverItem(registerItem: ((index: number, element: HTMLElement | null) => void) | undefined, index: number | undefined, ref: RefObject<HTMLElement | null>): void;
|
|
92
92
|
import { JSX as JSX_1kxb } from "react";
|
|
93
|
-
/** What the highlight reads off the hook: the highlighted index, the
|
|
94
|
-
* measured rects, whether they are current, and the pointer session. */
|
|
95
93
|
type FluidHoverSource = Pick<UseFluidHoverReturn, "activeIndex" | "itemRects" | "isMeasured" | "sessionRef">;
|
|
96
94
|
interface HighlightFromHook {
|
|
97
95
|
/** The hook's return value. The highlight sits on
|
|
@@ -122,18 +120,17 @@ type FluidHoverHighlightProps = (HighlightFromHook | HighlightFromRect) & {
|
|
|
122
120
|
/** Radius, z-index, anything else. Merged onto
|
|
123
121
|
* `absolute bg-hover pointer-events-none`. */
|
|
124
122
|
className?: string;
|
|
125
|
-
/** The positional spring. Defaults to `spring.fast`.
|
|
126
|
-
*
|
|
127
|
-
* underneath, not a hover change). The opacity fade is always 0.08s. */
|
|
123
|
+
/** The positional spring. Defaults to `spring.fast`. `false` snaps with no
|
|
124
|
+
* travel (a reflow moved the rows, not the hover). Reduced motion snaps too. */
|
|
128
125
|
transition?: Transition | false;
|
|
129
126
|
};
|
|
130
127
|
type Element_12xgc = JSX_1kxb["Element"];
|
|
131
128
|
declare function FluidHoverHighlight(props: FluidHoverHighlightProps): Element_12xgc;
|
|
132
129
|
type FluidHoverAxis = "x" | "y" | "xy";
|
|
133
130
|
interface FluidHoverItemProps extends HTMLAttributes<HTMLButtonElement> {
|
|
134
|
-
/** Position in the list.
|
|
131
|
+
/** Position in the list. Defaults to the row's place among `FluidHover`'s children. */
|
|
135
132
|
index?: number;
|
|
136
|
-
/** Skips the row: never lit, never the target of a gap click. It stays registered, so its neighbours keep their indices. Defaults to `
|
|
133
|
+
/** Skips the row: never lit, never the target of a gap click. It stays registered, so its neighbours keep their indices. Defaults to whether `disabledIndices` lists it. */
|
|
137
134
|
disabled?: boolean;
|
|
138
135
|
/** The row's content — a label, or an icon plus text, or (on `xy`) a title over a description. */
|
|
139
136
|
children?: ReactNode;
|
|
@@ -166,7 +163,7 @@ interface FluidHoverProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
166
163
|
highlightClassName?: string;
|
|
167
164
|
/** Classes for the list container. Padding here is part of the list: a click in it still lands on the lit row. */
|
|
168
165
|
className?: string;
|
|
169
|
-
/** `FluidHover.Item` rows, when `items` is not enough.
|
|
166
|
+
/** `FluidHover.Item` rows, when `items` is not enough. Children are indexed in order. */
|
|
170
167
|
children?: ReactNode;
|
|
171
168
|
}
|
|
172
169
|
type FluidHoverComponent = ForwardRefExoticComponent<FluidHoverProps & RefAttributes<HTMLDivElement>> & {
|
|
@@ -199,9 +196,8 @@ type FluidHoverComponent = ForwardRefExoticComponent<FluidHoverProps & RefAttrib
|
|
|
199
196
|
* over cached rectangles per animation frame, with no DOM reads per row, and
|
|
200
197
|
* the highlight travels on a transform. While it melts, a shrinking blob and
|
|
201
198
|
* the goo filter join it, and both are gone once it settles, so a resting
|
|
202
|
-
* highlight is filtered by nothing. Reduced motion
|
|
203
|
-
*
|
|
204
|
-
* the highlight still fades in on the nearest row, it just stops travelling
|
|
199
|
+
* highlight is filtered by nothing. Reduced motion (the OS setting or a
|
|
200
|
+
* `MotionConfig`) keeps the fade onto the nearest row and drops the travel
|
|
205
201
|
* between rows.
|
|
206
202
|
*
|
|
207
203
|
* Use it when everything in the list can be clicked (a menu, a list, tabs, a
|
|
@@ -210,9 +206,10 @@ type FluidHoverComponent = ForwardRefExoticComponent<FluidHoverProps & RefAttrib
|
|
|
210
206
|
* only some of the cards can be clicked, when there is a lot of empty space
|
|
211
207
|
* around the items, or when rows change place as you scroll.
|
|
212
208
|
*
|
|
213
|
-
* Statics:
|
|
214
|
-
*
|
|
215
|
-
*
|
|
209
|
+
* Statics:
|
|
210
|
+
* - `FluidHover.Item` — one row, rendered as a real button (focusable,
|
|
211
|
+
* activatable from the keyboard, announced by its label); the hook only
|
|
212
|
+
* lights it, it never moves focus.
|
|
216
213
|
*
|
|
217
214
|
* For a list this container cannot express, the machinery is re-exported
|
|
218
215
|
* unchanged. `useFluidHover(containerRef, { axis, isItemDisabled, gapClick })`
|
|
@@ -228,6 +225,8 @@ type FluidHoverComponent = ForwardRefExoticComponent<FluidHoverProps & RefAttrib
|
|
|
228
225
|
* place after a reflow instead of sliding.
|
|
229
226
|
*
|
|
230
227
|
* @example {@include ./examples.mdx}
|
|
228
|
+
* @source https://github.com/mickadesign/fluid-functionalism/blob/b3587bdbd83fc66c2a6aae3817ffb856cb09260b/app/docs/fluid-hover/page.tsx Fluid Functionalism
|
|
229
|
+
* @license MIT © 2026 Micka Touillaud
|
|
231
230
|
*/
|
|
232
231
|
declare const FluidHover: FluidHoverComponent;
|
|
233
232
|
export { FluidHover, FluidHoverAxis, FluidHoverHighlight, FluidHoverHighlightProps, FluidHoverItem, FluidHoverItemProps, FluidHoverProps, ItemRect, UseFluidHoverOptions, UseFluidHoverReturn, FluidHover as default, useFluidHover, useRegisterFluidHoverItem };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
FluidHoverItem2,
|
|
3
|
+
FluidHover2,
|
|
4
|
+
fluid_hover_default
|
|
5
|
+
} from "../../../shared/components-rzy6h7s4.js";
|
|
6
|
+
import {
|
|
7
|
+
FluidHoverHighlight2
|
|
8
|
+
} from "../../../shared/components-g35n8tzm.js";
|
|
9
|
+
import"../../../shared/components-z0kz9rxj.js";
|
|
10
|
+
import"../../../shared/components-j3q9kaps.js";
|
|
11
|
+
import {
|
|
12
|
+
useFluidHover2,
|
|
13
|
+
useRegisterFluidHoverItem2
|
|
14
|
+
} from "../../../shared/components-7c4a0egq.js";
|
|
15
|
+
import"../../../shared/components-8pnvkrbw.js";
|
|
16
|
+
import"../../../shared/components-pva1wj1r.js";
|
|
17
|
+
import"../../../shared/components-bkwjvvkh.js";
|
|
18
|
+
import"../../../shared/components-45r18egt.js";
|
|
19
|
+
import"../../../shared/components-tz0axc0f.js";
|
|
20
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
21
|
+
import"../../../shared/components-s217vq1n.js";
|
|
22
|
+
import"../../../shared/components-xnp09586.js";
|
|
23
|
+
export {
|
|
24
|
+
FluidHover2 as FluidHover,
|
|
25
|
+
FluidHoverHighlight2 as FluidHoverHighlight,
|
|
26
|
+
FluidHoverItem2 as FluidHoverItem,
|
|
27
|
+
fluid_hover_default as default,
|
|
28
|
+
useFluidHover2 as useFluidHover,
|
|
29
|
+
useRegisterFluidHoverItem2 as useRegisterFluidHoverItem
|
|
30
|
+
};
|
|
@@ -85,7 +85,7 @@ type Element_12xgc2 = JSX_1kxb2["Element"];
|
|
|
85
85
|
* ## Liquid indicators
|
|
86
86
|
*
|
|
87
87
|
* The same goo moves everything that travels between items: the active tab
|
|
88
|
-
* of Tabs
|
|
88
|
+
* of both Tabs variants, the Switch thumb, Radio.Group's selection and the
|
|
89
89
|
* fluid hover highlight of every list (Select, Dropdown, Combobox, Card,
|
|
90
90
|
* Accordion, FluidHover). The indicator springs to its new item and leaves
|
|
91
91
|
* a blob behind. The blob lingers for a third of the spring, then follows
|
|
@@ -123,5 +123,7 @@ type Element_12xgc2 = JSX_1kxb2["Element"];
|
|
|
123
123
|
*
|
|
124
124
|
* @example {@include ./examples.mdx}
|
|
125
125
|
*/
|
|
126
|
-
declare
|
|
126
|
+
declare const Morph: (({ from, effect, tier, hideSource, open, defaultOpen, onOpenChange, label, className, children }: MorphProps) => Element_12xgc2) & {
|
|
127
|
+
Part: typeof MorphPart;
|
|
128
|
+
};
|
|
127
129
|
export { Morph, MorphPart, MorphProps, Morph as default };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Morph2,
|
|
3
|
+
morph_default
|
|
4
|
+
} from "../../../shared/components-ev0ytbqb.js";
|
|
5
|
+
import"../../../shared/components-wq9hrera.js";
|
|
6
|
+
import {
|
|
7
|
+
MorphPart2
|
|
8
|
+
} from "../../../shared/components-pa43g2r2.js";
|
|
9
|
+
import"../../../shared/components-0h2mng6m.js";
|
|
10
|
+
import"../../../shared/components-ywgqahmg.js";
|
|
11
|
+
import"../../../shared/components-3hgk57s0.js";
|
|
12
|
+
import"../../../shared/components-8pnvkrbw.js";
|
|
13
|
+
import"../../../shared/components-pva1wj1r.js";
|
|
14
|
+
import"../../../shared/components-kwxye0an.js";
|
|
15
|
+
import"../../../shared/components-bkwjvvkh.js";
|
|
16
|
+
import"../../../shared/components-45r18egt.js";
|
|
17
|
+
import"../../../shared/components-wwd093xg.js";
|
|
18
|
+
import"../../../shared/components-znspksk0.js";
|
|
19
|
+
import"../../../shared/components-ew4wq7mj.js";
|
|
20
|
+
import"../../../shared/components-tz0axc0f.js";
|
|
21
|
+
import"../../../shared/components-ceyn28cf.js";
|
|
22
|
+
import"../../../shared/components-nwa2a9tq.js";
|
|
23
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
24
|
+
import"../../../shared/components-s217vq1n.js";
|
|
25
|
+
import"../../../shared/components-xnp09586.js";
|
|
26
|
+
export {
|
|
27
|
+
Morph2 as Morph,
|
|
28
|
+
MorphPart2 as MorphPart,
|
|
29
|
+
morph_default as default
|
|
30
|
+
};
|
|
@@ -110,6 +110,8 @@ type Element_12xgc = JSX_1kxb["Element"];
|
|
|
110
110
|
* Hidden children keep their space and leave the accessibility tree.
|
|
111
111
|
*
|
|
112
112
|
* @example {@include ./examples.mdx}
|
|
113
|
+
* @source https://github.com/mickadesign/fluid-functionalism/blob/b3587bdbd83fc66c2a6aae3817ffb856cb09260b/registry/default/lib/springs.ts Fluid Functionalism
|
|
114
|
+
* @license MIT © 2026 Micka Touillaud
|
|
113
115
|
*/
|
|
114
116
|
declare function Motion({ tier, show, defaultShow, onShowChange, sameExit, reducedMotion, className, children }: MotionProps): Element_12xgc;
|
|
115
117
|
export { Motion, MotionProps, SpringTier, Motion as default, exitFallbackMs, spring };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Motion2
|
|
3
|
+
} from "../../../shared/components-a1ms36qq.js";
|
|
4
|
+
import"../../../shared/components-0h2mng6m.js";
|
|
5
|
+
import"../../../shared/components-ywgqahmg.js";
|
|
6
|
+
import"../../../shared/components-3hgk57s0.js";
|
|
7
|
+
import"../../../shared/components-kwxye0an.js";
|
|
8
|
+
import"../../../shared/components-bkwjvvkh.js";
|
|
9
|
+
import {
|
|
10
|
+
spring2,
|
|
11
|
+
exitFallbackMs2
|
|
12
|
+
} from "../../../shared/components-45r18egt.js";
|
|
13
|
+
import"../../../shared/components-wwd093xg.js";
|
|
14
|
+
import"../../../shared/components-znspksk0.js";
|
|
15
|
+
import"../../../shared/components-ew4wq7mj.js";
|
|
16
|
+
import"../../../shared/components-tz0axc0f.js";
|
|
17
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
18
|
+
import"../../../shared/components-s217vq1n.js";
|
|
19
|
+
import"../../../shared/components-xnp09586.js";
|
|
20
|
+
export {
|
|
21
|
+
Motion2 as Motion,
|
|
22
|
+
Motion2 as default,
|
|
23
|
+
exitFallbackMs2 as exitFallbackMs,
|
|
24
|
+
spring2 as spring
|
|
25
|
+
};
|