@justanarthur/modo-ui 1.0.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 +59 -20
- 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/index.tsx +3 -2
- package/blocks/sidebar-app/thread-page.tsx +2 -2
- package/components/{button → actions/button}/index.tsx +14 -22
- package/components/actions/button/variants.ts +138 -0
- package/components/{copy → actions/copy}/examples.mdx +40 -2
- package/components/{copy → actions/copy}/index.tsx +206 -36
- package/components/{accordion → containers/accordion}/accordion-content.tsx +14 -11
- package/components/{accordion → containers/accordion}/accordion-context.tsx +21 -12
- package/components/{accordion → containers/accordion}/accordion-group.tsx +11 -11
- package/components/{accordion → containers/accordion}/index.tsx +95 -47
- package/components/{card → containers/card}/card-group.tsx +7 -7
- package/components/{card → containers/card}/card-media.tsx +5 -5
- package/components/{card → containers/card}/card-parts.tsx +27 -17
- package/components/{card → containers/card}/examples.mdx +3 -2
- package/components/{card → containers/card}/index.tsx +12 -11
- package/components/{avatar → data-display/avatar}/examples.mdx +1 -1
- package/components/{avatar → data-display/avatar}/index.tsx +5 -5
- package/components/{badge → data-display/badge}/change-demo.tsx +1 -1
- package/components/{badge → data-display/badge}/index.tsx +8 -10
- package/components/{badge → data-display/badge}/variants.ts +7 -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/{table → data-display/table}/context.ts +12 -2
- package/components/{table → data-display/table}/head.tsx +5 -5
- package/components/{table → data-display/table}/index.tsx +40 -14
- package/components/{table → data-display/table}/parts.tsx +66 -52
- 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/{progress → feedback/progress}/examples.mdx +2 -2
- package/components/{progress → feedback/progress}/index.tsx +5 -5
- package/components/{progress → feedback/progress}/step-demo.tsx +1 -1
- package/components/feedback/status-dot/examples.mdx +75 -0
- package/components/feedback/status-dot/index.tsx +105 -0
- package/components/inputs/checkbox/index.tsx +15 -9
- package/components/inputs/choice-list/examples.mdx +101 -0
- package/components/inputs/choice-list/index.tsx +186 -0
- package/components/inputs/color-picker/examples.mdx +10 -0
- package/components/inputs/color-picker/format-menu.tsx +1 -1
- package/components/inputs/color-picker/index.tsx +26 -10
- package/components/inputs/color-picker/inputs-row.tsx +1 -1
- package/components/inputs/color-picker/popover.tsx +40 -8
- package/components/inputs/color-picker/saturation-square.tsx +1 -1
- package/components/inputs/color-picker/swatches.tsx +1 -1
- package/components/inputs/combobox/context.ts +25 -1
- package/components/inputs/combobox/examples.mdx +1 -1
- package/components/inputs/combobox/fields.tsx +100 -51
- package/components/inputs/combobox/index.tsx +218 -200
- package/components/inputs/combobox/list.tsx +1 -1
- package/components/inputs/combobox/remote-demo.tsx +1 -1
- package/components/inputs/date-time/calendar/index.tsx +6 -3
- package/components/inputs/date-time/date-picker/examples.mdx +36 -0
- package/components/inputs/date-time/date-picker/index.tsx +106 -20
- package/components/inputs/date-time/date-range-picker/examples.mdx +36 -0
- package/components/inputs/date-time/date-range-picker/index.tsx +331 -54
- package/components/inputs/date-time/day-rules.ts +6 -3
- package/components/inputs/date-time/duration-picker/examples.mdx +16 -0
- package/components/inputs/date-time/duration-picker/index.tsx +74 -22
- package/components/inputs/date-time/month-picker/examples.mdx +12 -0
- package/components/inputs/date-time/month-picker/index.tsx +76 -21
- package/components/inputs/date-time/picker-shell.tsx +142 -11
- package/components/inputs/date-time/time-columns.tsx +5 -2
- package/components/inputs/date-time/time-picker/examples.mdx +13 -0
- package/components/inputs/date-time/time-picker/index.tsx +63 -12
- package/components/inputs/editable-text/examples.mdx +33 -0
- package/components/inputs/editable-text/index.tsx +175 -0
- package/components/inputs/field/index.tsx +1 -1
- package/components/inputs/file-dropzone/file-row.tsx +2 -2
- package/components/inputs/file-dropzone/index.tsx +5 -0
- package/components/inputs/input/index.tsx +1 -1
- package/components/inputs/key-value/examples.mdx +58 -0
- package/components/inputs/key-value/index.tsx +232 -0
- package/components/inputs/label/examples.mdx +1 -1
- package/components/inputs/number-input/index.tsx +4 -4
- package/components/inputs/radio/examples.mdx +10 -0
- package/components/inputs/radio/index.tsx +15 -6
- package/components/inputs/search/examples.mdx +1 -1
- package/components/inputs/search/index.tsx +1 -1
- package/components/inputs/select/examples.mdx +28 -1
- package/components/inputs/select/index.tsx +248 -167
- package/components/inputs/switch/index.tsx +1 -1
- package/components/navigation/breadcrumb/examples.mdx +45 -0
- package/components/navigation/breadcrumb/index.tsx +284 -0
- package/components/navigation/navigation-menu/context.ts +5 -1
- package/components/navigation/navigation-menu/examples.mdx +23 -0
- package/components/navigation/navigation-menu/index.tsx +8 -1
- package/components/navigation/navigation-menu/indicator.tsx +38 -0
- package/components/navigation/navigation-menu/list.tsx +33 -22
- package/components/navigation/pagination/index.tsx +2 -2
- package/components/navigation/sidebar/index.tsx +1 -1
- package/components/navigation/sidebar/sidebar-menu-item.tsx +1 -1
- package/components/navigation/sidebar/sidebar-rail.tsx +1 -1
- package/components/navigation/tabs/examples.mdx +11 -0
- package/components/navigation/tabs/index.tsx +1 -1
- package/components/navigation/tabs/item.tsx +3 -3
- package/components/navigation/tree/examples.mdx +76 -0
- package/components/navigation/tree/index.tsx +431 -0
- package/components/overlays/alert-dialog/examples.mdx +1 -1
- package/components/overlays/alert-dialog/index.tsx +37 -26
- package/components/overlays/alert-dialog/pending-demo.tsx +1 -1
- package/components/overlays/command/examples.mdx +2 -2
- package/components/overlays/command/index.tsx +20 -17
- package/components/overlays/context-menu/index.tsx +38 -29
- package/components/overlays/dialog/examples.mdx +22 -2
- package/components/overlays/dialog/index.tsx +87 -32
- package/components/overlays/dropdown/examples.mdx +86 -2
- package/components/overlays/dropdown/index.tsx +136 -48
- package/components/overlays/dropdown/menu-item.tsx +165 -65
- package/components/overlays/dropdown/menu-parts.tsx +153 -0
- package/components/overlays/dropdown/menu-popup.tsx +52 -10
- package/components/overlays/dropdown/panel-state.ts +49 -16
- package/components/overlays/dropdown/submenu.tsx +26 -27
- package/components/overlays/lightbox/examples.mdx +29 -0
- package/components/overlays/lightbox/index.tsx +395 -0
- package/components/overlays/popover/anchored-demo.tsx +1 -1
- package/components/overlays/popover/examples.mdx +1 -1
- package/components/overlays/popover/index.tsx +27 -24
- package/components/overlays/preview-card/index.tsx +16 -13
- package/components/overlays/sheet/examples.mdx +14 -1
- package/components/overlays/sheet/index.tsx +122 -54
- package/components/overlays/toast/examples.mdx +17 -1
- package/components/overlays/toast/index.tsx +117 -45
- package/components/overlays/toast/manager.ts +45 -12
- package/components/overlays/tooltip/examples.mdx +7 -7
- package/components/overlays/tooltip/index.tsx +59 -50
- package/dist/base.css +62 -82
- 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 +24 -4
- package/dist/blocks/sidebar-app/index.js +43 -37
- package/dist/components/{button → actions/button}/index.d.ts +28 -12
- package/dist/components/actions/button/index.js +22 -0
- package/dist/components/actions/button/variants.d.ts +29 -0
- package/dist/components/{button → actions/button}/variants.js +1 -1
- package/dist/components/actions/copy/index.d.ts +79 -0
- package/dist/components/actions/copy/index.js +26 -0
- package/dist/components/{accordion → containers/accordion}/index.d.ts +51 -19
- package/dist/components/containers/accordion/index.js +40 -0
- package/dist/components/{card → containers/card}/index.d.ts +27 -23
- package/dist/components/containers/card/index.js +58 -0
- package/dist/components/data-display/avatar/index.js +20 -0
- package/dist/components/{badge → data-display/badge}/index.d.ts +6 -3
- package/dist/components/data-display/badge/index.js +21 -0
- package/dist/components/{badge → data-display/badge}/variants.d.ts +6 -1
- package/dist/components/{badge → data-display/badge}/variants.js +1 -1
- 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/{table → data-display/table}/index.d.ts +24 -7
- 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.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 +8 -5
- package/dist/components/inputs/checkbox/index.js +13 -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 +39 -23
- package/dist/components/inputs/color-picker/index.js +27 -25
- 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 +40 -9
- package/dist/components/inputs/combobox/index.js +21 -21
- package/dist/components/inputs/date-time/calendar/index.d.ts +6 -1
- package/dist/components/inputs/date-time/calendar/index.js +10 -10
- package/dist/components/inputs/date-time/date-picker/index.d.ts +48 -8
- package/dist/components/inputs/date-time/date-picker/index.js +31 -31
- package/dist/components/inputs/date-time/date-range-picker/index.d.ts +99 -18
- package/dist/components/inputs/date-time/date-range-picker/index.js +32 -30
- package/dist/components/inputs/date-time/duration-picker/index.d.ts +52 -9
- package/dist/components/inputs/date-time/duration-picker/index.js +29 -29
- package/dist/components/inputs/date-time/month-picker/index.d.ts +49 -8
- package/dist/components/inputs/date-time/month-picker/index.js +28 -28
- package/dist/components/inputs/date-time/time-picker/index.d.ts +47 -8
- package/dist/components/inputs/date-time/time-picker/index.js +29 -29
- 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.js +8 -8
- package/dist/components/inputs/file-dropzone/index.d.ts +3 -1
- package/dist/components/inputs/file-dropzone/index.js +10 -10
- package/dist/components/inputs/input/index.js +9 -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.js +2 -2
- package/dist/components/inputs/number-input/index.d.ts +3 -2
- package/dist/components/inputs/number-input/index.js +11 -11
- package/dist/components/inputs/radio/index.d.ts +2 -2
- package/dist/components/inputs/radio/index.js +11 -11
- package/dist/components/inputs/search/index.js +23 -23
- package/dist/components/inputs/select/index.d.ts +71 -47
- package/dist/components/inputs/select/index.js +23 -22
- package/dist/components/inputs/slider/index.js +4 -4
- package/dist/components/inputs/switch/index.js +9 -9
- package/dist/components/inputs/textarea/index.js +5 -5
- 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 +13 -2
- package/dist/components/navigation/navigation-menu/index.js +20 -18
- package/dist/components/navigation/pagination/index.js +19 -19
- package/dist/components/navigation/sidebar/index.d.ts +1 -9
- package/dist/components/navigation/sidebar/index.js +26 -26
- package/dist/components/navigation/tabs/index.d.ts +5 -5
- package/dist/components/navigation/tabs/index.js +12 -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 +35 -15
- package/dist/components/overlays/alert-dialog/index.js +15 -15
- package/dist/components/overlays/command/index.d.ts +6 -1
- package/dist/components/overlays/command/index.js +21 -21
- package/dist/components/overlays/context-menu/index.d.ts +138 -14
- package/dist/components/overlays/context-menu/index.js +29 -26
- package/dist/components/overlays/dialog/index.d.ts +43 -15
- package/dist/components/overlays/dialog/index.js +14 -14
- package/dist/components/overlays/dropdown/index.d.ts +163 -59
- package/dist/components/overlays/dropdown/index.js +37 -26
- 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 +7 -1
- package/dist/components/overlays/popover/index.js +11 -11
- package/dist/components/overlays/preview-card/index.d.ts +4 -1
- package/dist/components/overlays/preview-card/index.js +10 -10
- package/dist/components/overlays/sheet/index.d.ts +49 -8
- package/dist/components/overlays/sheet/index.js +15 -15
- package/dist/components/overlays/toast/index.d.ts +92 -39
- package/dist/components/overlays/toast/index.js +13 -11
- package/dist/components/overlays/tooltip/index.d.ts +16 -6
- package/dist/components/overlays/tooltip/index.js +8 -8
- 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 +3722 -2274
- package/dist/index.js +240 -115
- package/dist/lib/date-locale.d.ts +13 -1
- package/dist/lib/date-locale.js +11 -3
- package/dist/lib/field-box.js +3 -3
- package/dist/lib/fluid-hover-highlight.js +4 -4
- package/dist/lib/focus-ring.js +3 -3
- package/dist/lib/goo-indicator.js +3 -3
- package/dist/lib/icon-context.d.ts +7 -2
- package/dist/lib/icon-context.js +4 -2
- package/dist/lib/morph-layers.js +3 -3
- package/dist/lib/overlay.js +3 -3
- package/dist/lib/popup-rows.js +2 -2
- package/dist/lib/popup-surface.js +7 -7
- package/dist/lib/row-index.d.ts +6 -9
- package/dist/lib/row-index.js +1 -1
- package/dist/lib/row-order.d.ts +28 -0
- package/dist/lib/row-order.js +11 -0
- package/dist/lib/scroll-column.js +6 -6
- package/dist/lib/shape-context.d.ts +8 -1
- package/dist/lib/shape-context.js +4 -2
- package/dist/lib/slot.d.ts +9 -2
- package/dist/lib/slot.js +5 -3
- package/dist/lib/use-merge-split.js +4 -4
- package/dist/lib/use-morph.js +1 -1
- package/dist/lib/utils.js +1 -1
- package/dist/lib/weight-label.js +2 -2
- package/dist/preset.d.ts +9 -0
- package/dist/preset.js +11 -2
- package/dist/primitives/content/code/index.js +14 -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/layout/scroll-area/index.js +14 -0
- package/dist/primitives/{separator → layout/separator}/index.js +2 -2
- 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/systems/craft/index.js +16 -0
- package/dist/primitives/systems/fluid-hover/index.js +30 -0
- package/dist/primitives/{morph → systems/morph}/index.d.ts +3 -1
- package/dist/primitives/systems/morph/index.js +30 -0
- package/dist/primitives/systems/motion/index.js +25 -0
- package/dist/primitives/{sizes → systems/sizes}/index.d.ts +2 -2
- package/dist/primitives/{sizes → systems/sizes}/index.js +4 -4
- package/dist/primitives/{surface → systems/surface}/index.js +6 -6
- package/dist/shared/{components-7t3pz7v7.js → components-0cpte6s1.js} +76 -40
- package/dist/shared/{components-gc5zky2w.js → components-0h2mng6m.js} +7 -7
- package/dist/shared/{components-62mg6pab.js → components-14wzcym0.js} +16 -16
- package/dist/shared/components-1asw2ph0.js +237 -0
- package/dist/shared/{components-p0z99d5b.js → components-1bnf96sr.js} +17 -15
- package/dist/shared/components-1f3a7gmg.js +168 -0
- package/dist/shared/components-1hb27y2e.js +77 -0
- package/dist/shared/{components-1axxc3tk.js → components-1hga6pkn.js} +8 -8
- package/dist/shared/{components-wyfmhtw9.js → components-1ztgy933.js} +2 -2
- package/dist/shared/{components-0h3f5jae.js → components-22h8dvt1.js} +19 -16
- package/dist/shared/{components-07g2gbjy.js → components-280grw6q.js} +19 -12
- package/dist/shared/components-29ebea21.js +129 -0
- package/dist/shared/{components-zbzx62pg.js → components-2m2hg11x.js} +93 -378
- package/dist/shared/components-3rvrdsa9.js +208 -0
- package/dist/shared/components-464zs8v6.js +152 -0
- package/dist/shared/components-4t2cjav8.js +73 -0
- package/dist/shared/{components-9ybenn5v.js → components-5xs8pkkj.js} +5 -5
- package/dist/shared/{components-gbsdhmrv.js → components-62510420.js} +62 -27
- package/dist/shared/components-6h5qg9rs.js +188 -0
- package/dist/shared/{components-7fsy0jxg.js → components-6rtawx8y.js} +108 -75
- package/dist/shared/{components-n7e31ct4.js → components-77gxngmc.js} +8 -8
- package/dist/shared/components-7mj5wsv3.js +200 -0
- package/dist/shared/{components-amsc86fb.js → components-7xc2dne4.js} +68 -37
- package/dist/shared/{components-pedbt2dc.js → components-8pnvkrbw.js} +1 -1
- package/dist/shared/{components-be3wggg1.js → components-91mmbrw3.js} +5 -5
- package/dist/shared/components-92mvpt9h.js +243 -0
- package/dist/shared/{components-jtfptckj.js → components-9ca0c92a.js} +6 -6
- package/dist/shared/{components-ejn6tvbw.js → components-9h3g4mnq.js} +1 -1
- package/dist/shared/components-9rebr89j.js +249 -0
- package/dist/shared/{components-re8p99fj.js → components-9z7bq8gn.js} +147 -21
- package/dist/shared/{components-3js2vgds.js → components-a1ms36qq.js} +3 -3
- package/dist/shared/{components-q4wyd06h.js → components-a1mwqxsv.js} +88 -22
- package/dist/shared/{components-cy5z8zxy.js → components-azrjnfxn.js} +2 -2
- package/dist/shared/{components-85epgxwf.js → components-b2kjsn1s.js} +60 -37
- package/dist/shared/{components-vgzerqt0.js → components-b7p1pjcm.js} +8 -7
- package/dist/shared/{components-j4z3rtw2.js → components-b9bj65j3.js} +46 -21
- package/dist/shared/{components-0mrhj88d.js → components-c515d6xr.js} +2 -2
- package/dist/shared/{components-5f3tq4qb.js → components-chda6b23.js} +2 -2
- package/dist/shared/{components-az04rmng.js → components-cp5ym3g2.js} +2 -2
- package/dist/shared/components-czvraaw9.js +135 -0
- package/dist/shared/{components-kn5c7652.js → components-e7zxwja1.js} +7 -6
- package/dist/shared/components-ee09xmkh.js +359 -0
- package/dist/shared/{components-3m4rqrqm.js → components-esy5nsvc.js} +3 -3
- package/dist/shared/{components-34brwmgp.js → components-ev0ytbqb.js} +12 -10
- package/dist/shared/{components-zpatc9x3.js → components-fmyvz4r2.js} +9 -8
- package/dist/shared/{components-f9adtfq8.js → components-fpsfr52a.js} +1 -1
- package/dist/shared/{components-zf0nnvvg.js → components-fqsgd07c.js} +68 -24
- package/dist/shared/{components-5vyaexsj.js → components-g35n8tzm.js} +2 -2
- package/dist/shared/components-g8qgr7p8.js +28 -0
- package/dist/shared/{components-88r046aa.js → components-gd8gmr6w.js} +4 -4
- package/dist/shared/{components-f75y4gn8.js → components-gsstwhtv.js} +6 -6
- package/dist/shared/{components-1hc3xv0y.js → components-h0x2pj2y.js} +170 -118
- package/dist/shared/components-h8v9nh5r.js +142 -0
- package/dist/shared/{components-6xfhc5qm.js → components-hcftn5r8.js} +14 -12
- package/dist/shared/components-hh1g7r3t.js +57 -0
- package/dist/shared/{components-jm91mjm1.js → components-hz6armxa.js} +13 -9
- package/dist/shared/{components-k81x1aea.js → components-j3q9kaps.js} +2 -2
- package/dist/shared/{components-88ktjdg0.js → components-j79a6jqa.js} +13 -12
- package/dist/shared/{components-k785rge6.js → components-jeecysvd.js} +24 -168
- package/dist/shared/{components-1nv9q3s8.js → components-jnhpgpfk.js} +29 -2
- package/dist/shared/{components-wgd1nebp.js → components-jw45ck66.js} +4 -4
- package/dist/shared/{components-7fqnqbh0.js → components-kwxye0an.js} +10 -4
- package/dist/shared/{components-qrpdtvxa.js → components-kxpcj2ry.js} +7 -1
- package/dist/shared/components-m3vxpz2z.js +123 -0
- package/dist/shared/{components-86vvx0c8.js → components-me742146.js} +9 -9
- package/dist/shared/{components-jx9qb4z8.js → components-n0gbyp5a.js} +18 -16
- package/dist/shared/{components-8hfrd2fk.js → components-nhmgr5xc.js} +14 -14
- package/dist/shared/{components-nv5m3gcv.js → components-nxqrw789.js} +2 -2
- package/dist/shared/{components-1a7cr7vh.js → components-nz14rwtd.js} +1 -1
- package/dist/shared/{components-j8tcbm8y.js → components-p32aqk3q.js} +2 -2
- package/dist/shared/components-pa2t12j2.js +327 -0
- package/dist/shared/{components-r33dxr5j.js → components-q0hs5rqn.js} +1 -1
- package/dist/shared/{components-xzcgr3gy.js → components-q7zk70tx.js} +6 -6
- package/dist/shared/{components-8sazy704.js → components-r5q9gdh4.js} +13 -12
- package/dist/shared/{components-tjxy84s9.js → components-rgng034x.js} +1 -1
- package/dist/shared/{components-skn189mp.js → components-rzy6h7s4.js} +5 -5
- package/dist/shared/{components-wrbw67f6.js → components-s4x951hj.js} +3 -3
- package/dist/shared/{components-gw0wd7gd.js → components-s90v3jpr.js} +371 -187
- package/dist/shared/components-t0c1rw40.js +75 -0
- package/dist/shared/components-t84071ay.js +76 -0
- package/dist/shared/{components-0p2na0cp.js → components-ta4e10mx.js} +3 -3
- package/dist/shared/components-twyj2y8c.js +336 -0
- package/dist/shared/components-vfreweq3.js +210 -0
- package/dist/shared/{components-2xmke84n.js → components-w1ysefg1.js} +2 -2
- package/dist/shared/{components-5atrr490.js → components-w2at9ntm.js} +27 -13
- package/dist/shared/{components-346ged8v.js → components-wq9hrera.js} +2 -2
- package/dist/shared/{components-tnj6mkhg.js → components-wx1dcp2n.js} +17 -10
- package/dist/shared/components-xa9fvd5b.js +302 -0
- package/dist/shared/{components-1jxw899c.js → components-xnkc892z.js} +8 -6
- package/dist/shared/{components-ycx2kxeq.js → components-xnp09586.js} +1 -1
- package/dist/shared/{components-vp6vzsee.js → components-y09nr7fe.js} +1 -1
- package/dist/shared/{components-sesrjvcc.js → components-y4gsk1jt.js} +3 -3
- package/dist/shared/{components-099sdasz.js → components-y8m64zdw.js} +31 -22
- package/dist/shared/components-yf2gtq68.js +302 -0
- package/dist/shared/{components-xpw8dzb0.js → components-ymq8tbq9.js} +2 -2
- package/dist/shared/components-ywgqahmg.js +80 -0
- package/dist/shared/{components-5ynncdpn.js → components-z0kz9rxj.js} +2 -2
- package/dist/styles.css +212 -137
- package/dist/tailwind.css +14 -0
- package/dist/tokens.css +37 -4
- 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 +40 -21
- package/lib/date-locale.ts +152 -6
- package/lib/icon-context.tsx +45 -1
- package/lib/row-index.tsx +6 -16
- package/lib/row-order.tsx +111 -0
- package/lib/shape-context.tsx +9 -1
- package/lib/slot.tsx +17 -4
- package/lib/use-autosize-textarea.ts +1 -1
- package/lib/use-morph.ts +1 -1
- package/lib/utils.ts +1 -1
- package/package.json +200 -38
- package/primitives/{code → content/code}/index.tsx +4 -4
- package/primitives/{skeleton → content/skeleton}/examples.mdx +1 -1
- package/primitives/{skeleton → content/skeleton}/index.tsx +4 -4
- package/primitives/layout/resizable/examples.mdx +93 -0
- package/primitives/layout/resizable/index.tsx +332 -0
- package/primitives/{scroll-area → layout/scroll-area}/index.tsx +3 -3
- package/primitives/{separator → layout/separator}/examples.mdx +1 -1
- package/primitives/{separator → layout/separator}/index.tsx +1 -1
- 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/{craft → systems/craft}/demos.tsx +8 -8
- package/primitives/{craft → systems/craft}/examples.mdx +5 -5
- package/primitives/{craft → systems/craft}/index.tsx +3 -3
- package/primitives/{fluid-hover → systems/fluid-hover}/examples.mdx +1 -1
- package/primitives/{fluid-hover → systems/fluid-hover}/index.tsx +10 -10
- package/primitives/{morph → systems/morph}/examples.mdx +4 -4
- package/primitives/{morph → systems/morph}/index.tsx +71 -66
- package/primitives/{motion → systems/motion}/index.tsx +5 -5
- package/primitives/{sizes → systems/sizes}/examples.mdx +4 -4
- package/primitives/{sizes → systems/sizes}/index.tsx +8 -8
- package/primitives/{surface → systems/surface}/examples.mdx +2 -2
- package/primitives/{surface → systems/surface}/index.tsx +3 -3
- 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/components/AI/input-message/examples.mdx +0 -134
- package/components/AI/input-message/file-preview-tile.tsx +0 -59
- package/components/AI/input-message/file-thumbnail.tsx +0 -146
- package/components/AI/input-message/index.tsx +0 -625
- package/components/AI/input-message/input-message.css +0 -25
- package/components/AI/input-message/queued-row.tsx +0 -102
- package/components/AI/input-message/shared.ts +0 -38
- package/components/AI/input-message/suggestion-row.tsx +0 -64
- package/components/AI/input-message/use-composer-files.ts +0 -142
- package/components/AI/input-message/use-history-nav.ts +0 -60
- package/components/AI/input-message/use-message-queue.ts +0 -108
- package/components/AI/input-message/use-region-height.ts +0 -34
- package/components/AI/thinking-indicator/examples.mdx +0 -27
- package/components/AI/thinking-indicator/index.tsx +0 -188
- package/components/button/variants.ts +0 -63
- package/dist/components/AI/input-message/index.d.ts +0 -128
- package/dist/components/AI/input-message/index.js +0 -39
- package/dist/components/AI/thinking-indicator/index.d.ts +0 -34
- package/dist/components/AI/thinking-indicator/index.js +0 -17
- package/dist/components/accordion/index.js +0 -39
- package/dist/components/avatar/index.js +0 -20
- package/dist/components/badge/index.js +0 -21
- package/dist/components/button/index.js +0 -22
- package/dist/components/button/variants.d.ts +0 -8
- package/dist/components/card/index.js +0 -57
- package/dist/components/copy/index.d.ts +0 -46
- package/dist/components/copy/index.js +0 -25
- package/dist/components/progress/index.js +0 -16
- package/dist/components/table/index.js +0 -39
- package/dist/primitives/code/index.js +0 -14
- package/dist/primitives/craft/index.js +0 -16
- package/dist/primitives/fluid-hover/index.js +0 -30
- package/dist/primitives/morph/index.js +0 -29
- package/dist/primitives/motion/index.js +0 -25
- package/dist/primitives/scroll-area/index.js +0 -14
- package/dist/primitives/skeleton/index.js +0 -14
- package/dist/shared/components-1p3k62x2.js +0 -137
- package/dist/shared/components-38wa9nx5.js +0 -19
- package/dist/shared/components-50rh4ggz.js +0 -54
- package/dist/shared/components-bdkm2jzy.js +0 -34
- package/dist/shared/components-gkdx1787.js +0 -159
- package/dist/shared/components-nskr4hwg.js +0 -1008
- /package/components/{button → actions/button}/examples.mdx +0 -0
- /package/components/{button → actions/button}/loading-demo.tsx +0 -0
- /package/components/{accordion → containers/accordion}/examples.mdx +0 -0
- /package/components/{badge → data-display/badge}/examples.mdx +0 -0
- /package/components/{table → data-display/table}/examples.mdx +0 -0
- /package/components/{table → data-display/table}/sort-demo.tsx +0 -0
- /package/components/{progress → feedback/progress}/progress.css +0 -0
- /package/components/inputs/color-picker/{color-math.ts → variants.ts} +0 -0
- /package/dist/components/{avatar → data-display/avatar}/index.d.ts +0 -0
- /package/dist/components/{progress → feedback/progress}/index.d.ts +0 -0
- /package/dist/primitives/{code → content/code}/index.d.ts +0 -0
- /package/dist/primitives/{skeleton → content/skeleton}/index.d.ts +0 -0
- /package/dist/primitives/{scroll-area → layout/scroll-area}/index.d.ts +0 -0
- /package/dist/primitives/{separator → layout/separator}/index.d.ts +0 -0
- /package/dist/primitives/{craft → systems/craft}/index.d.ts +0 -0
- /package/dist/primitives/{fluid-hover → systems/fluid-hover}/index.d.ts +0 -0
- /package/dist/primitives/{motion → systems/motion}/index.d.ts +0 -0
- /package/dist/primitives/{surface → systems/surface}/index.d.ts +0 -0
- /package/primitives/{code → content/code}/examples.mdx +0 -0
- /package/primitives/{skeleton → content/skeleton}/skeleton.css +0 -0
- /package/primitives/{scroll-area → layout/scroll-area}/examples.mdx +0 -0
- /package/primitives/{motion → systems/motion}/examples.mdx +0 -0
- /package/primitives/{surface → systems/surface}/surface.css +0 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
type SizeVariant = "default" | "compact";
|
|
2
|
+
/**
|
|
3
|
+
* Framed at rest (`bordered`), or invisible until hovered or focused
|
|
4
|
+
* (`borderless`). Free text (Input, Textarea) defaults to `borderless`; a
|
|
5
|
+
* field that opens a panel (the pickers, Combobox, Select) defaults to
|
|
6
|
+
* `bordered`, so it reads as a control before it is touched.
|
|
7
|
+
*/
|
|
8
|
+
type FieldVariant = "bordered" | "borderless";
|
|
9
|
+
import { JSX as JSX_1kxb } from "react";
|
|
10
|
+
/** One row: its key, its value, and whether the value is masked. */
|
|
11
|
+
interface KeyValuePair {
|
|
12
|
+
key: string;
|
|
13
|
+
value: string;
|
|
14
|
+
secret?: boolean;
|
|
15
|
+
}
|
|
16
|
+
interface KeyValueProps {
|
|
17
|
+
/** Controlled rows. Pair with `onValueChange`. */
|
|
18
|
+
value?: KeyValuePair[];
|
|
19
|
+
/** Initial rows, for an uncontrolled list. Defaults to `[]`. */
|
|
20
|
+
defaultValue?: KeyValuePair[];
|
|
21
|
+
/** Called with every row whenever one is edited, added or removed. */
|
|
22
|
+
onValueChange?: (value: KeyValuePair[]) => void;
|
|
23
|
+
/** Placeholder of each key field. Defaults to `'Key'`. */
|
|
24
|
+
keyPlaceholder?: string;
|
|
25
|
+
/** Placeholder of each value field. Defaults to `'Value'`. */
|
|
26
|
+
valuePlaceholder?: string;
|
|
27
|
+
/** Label of the button that adds a row. Defaults to `'Add'`. */
|
|
28
|
+
addLabel?: string;
|
|
29
|
+
/** Whether a new row masks its value. Defaults to `false`. */
|
|
30
|
+
secretByDefault?: boolean;
|
|
31
|
+
/** Framed at rest, or invisible until hovered or focused. Defaults to `'bordered'`. */
|
|
32
|
+
variant?: FieldVariant;
|
|
33
|
+
/** Disables every field and button. Defaults to `false`. */
|
|
34
|
+
disabled?: boolean;
|
|
35
|
+
/** Pins the rows to one step of the size ladder (36px default, 28px compact). Defaults to the surrounding SizeProvider. */
|
|
36
|
+
size?: SizeVariant;
|
|
37
|
+
/** Accessible name of the list. Defaults to `'Key-value pairs'`. */
|
|
38
|
+
label?: string;
|
|
39
|
+
/** Classes for the root. */
|
|
40
|
+
className?: string;
|
|
41
|
+
}
|
|
42
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
43
|
+
/**
|
|
44
|
+
* An editable list of key / value pairs, for environment variables, headers
|
|
45
|
+
* or labels.
|
|
46
|
+
*
|
|
47
|
+
* Each row is a key Input and a value Input in monospace, with a remove button that shows when the row is hovered or
|
|
48
|
+
* focused (always on touch). A row marked `secret` masks its value; the eye
|
|
49
|
+
* inside the field reveals it for this session only, keeping the caret. A key used on more than
|
|
50
|
+
* one row turns those keys invalid and names the duplicate under the list.
|
|
51
|
+
* Works controlled (`value` + `onValueChange`) or uncontrolled
|
|
52
|
+
* (`defaultValue`); every edit hands back the whole array.
|
|
53
|
+
*
|
|
54
|
+
* @example {@include ./examples.mdx}
|
|
55
|
+
*/
|
|
56
|
+
declare function KeyValue({ value, defaultValue, onValueChange, keyPlaceholder, valuePlaceholder, addLabel, secretByDefault, variant, disabled, size: sizeProp, label, className }: KeyValueProps): Element_12xgc;
|
|
57
|
+
export { KeyValue, KeyValuePair, KeyValueProps, KeyValue as default };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
KeyValue2,
|
|
3
|
+
key_value_default
|
|
4
|
+
} from "../../../shared/components-1f3a7gmg.js";
|
|
5
|
+
import"../../../shared/components-q7zk70tx.js";
|
|
6
|
+
import"../../../shared/components-0h2mng6m.js";
|
|
7
|
+
import"../../../shared/components-ywgqahmg.js";
|
|
8
|
+
import"../../../shared/components-3hgk57s0.js";
|
|
9
|
+
import"../../../shared/components-j3q9kaps.js";
|
|
10
|
+
import"../../../shared/components-7c4a0egq.js";
|
|
11
|
+
import"../../../shared/components-fpsfr52a.js";
|
|
12
|
+
import"../../../shared/components-1ztgy933.js";
|
|
13
|
+
import"../../../shared/components-grxgqa75.js";
|
|
14
|
+
import"../../../shared/components-kwxye0an.js";
|
|
15
|
+
import"../../../shared/components-nz14rwtd.js";
|
|
16
|
+
import"../../../shared/components-bkwjvvkh.js";
|
|
17
|
+
import"../../../shared/components-jnhpgpfk.js";
|
|
18
|
+
import"../../../shared/components-45r18egt.js";
|
|
19
|
+
import"../../../shared/components-wwd093xg.js";
|
|
20
|
+
import"../../../shared/components-znspksk0.js";
|
|
21
|
+
import"../../../shared/components-ew4wq7mj.js";
|
|
22
|
+
import"../../../shared/components-tz0axc0f.js";
|
|
23
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
24
|
+
import"../../../shared/components-s217vq1n.js";
|
|
25
|
+
import"../../../shared/components-xnp09586.js";
|
|
26
|
+
export {
|
|
27
|
+
KeyValue2 as KeyValue,
|
|
28
|
+
key_value_default as default
|
|
29
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Label2,
|
|
3
3
|
label_default
|
|
4
|
-
} from "../../../shared/components-
|
|
4
|
+
} from "../../../shared/components-fpsfr52a.js";
|
|
5
5
|
import"../../../shared/components-grxgqa75.js";
|
|
6
6
|
import"../../../shared/components-znspksk0.js";
|
|
7
7
|
import"../../../shared/components-ew4wq7mj.js";
|
|
8
|
-
import"../../../shared/components-
|
|
8
|
+
import"../../../shared/components-xnp09586.js";
|
|
9
9
|
export {
|
|
10
10
|
Label2 as Label,
|
|
11
11
|
label_default as default
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { NumberFieldRootChangeEventDetails } from "@base-ui/react/number-field";
|
|
1
2
|
import { InputHTMLAttributes, ReactNode } from "react";
|
|
2
3
|
type SizeVariant = "default" | "compact";
|
|
3
4
|
/**
|
|
@@ -15,8 +16,8 @@ interface NumberInputProps extends NativeInputProps {
|
|
|
15
16
|
value?: number | null;
|
|
16
17
|
/** Initial value when uncontrolled. Empty when unset. */
|
|
17
18
|
defaultValue?: number;
|
|
18
|
-
/** Called with the new value as it changes (typing, steppers, arrow keys, scrubbing); `null` when cleared. */
|
|
19
|
-
onValueChange?: (value: number | null) => void;
|
|
19
|
+
/** Called with the new value as it changes (typing, steppers, arrow keys, scrubbing); `null` when cleared. The second argument is Base UI's change details: `reason` names the cause (`"input-change"`, `"keyboard"`, `"increment-press"`, `"scrub"`, …). */
|
|
20
|
+
onValueChange?: (value: number | null, details: NumberFieldRootChangeEventDetails) => void;
|
|
20
21
|
/** Called once a change is done: on blur after typing, on release after a stepper press or a scrub. */
|
|
21
22
|
onValueCommitted?: (value: number | null) => void;
|
|
22
23
|
/** Lowest value the steppers, arrow keys and blur clamp to. */
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NumberInput2,
|
|
3
3
|
number_input_default
|
|
4
|
-
} from "../../../shared/components-
|
|
5
|
-
import"../../../shared/components-
|
|
6
|
-
import"../../../shared/components-
|
|
7
|
-
import"../../../shared/components-1nv9q3s8.js";
|
|
8
|
-
import"../../../shared/components-wyfmhtw9.js";
|
|
9
|
-
import"../../../shared/components-grxgqa75.js";
|
|
10
|
-
import"../../../shared/components-1a7cr7vh.js";
|
|
11
|
-
import"../../../shared/components-k81x1aea.js";
|
|
4
|
+
} from "../../../shared/components-9ca0c92a.js";
|
|
5
|
+
import"../../../shared/components-q7zk70tx.js";
|
|
6
|
+
import"../../../shared/components-j3q9kaps.js";
|
|
12
7
|
import"../../../shared/components-7c4a0egq.js";
|
|
13
|
-
import"../../../shared/components-
|
|
8
|
+
import"../../../shared/components-fpsfr52a.js";
|
|
9
|
+
import"../../../shared/components-1ztgy933.js";
|
|
10
|
+
import"../../../shared/components-grxgqa75.js";
|
|
11
|
+
import"../../../shared/components-nz14rwtd.js";
|
|
14
12
|
import"../../../shared/components-bkwjvvkh.js";
|
|
13
|
+
import"../../../shared/components-jnhpgpfk.js";
|
|
14
|
+
import"../../../shared/components-wwd093xg.js";
|
|
15
15
|
import"../../../shared/components-znspksk0.js";
|
|
16
16
|
import"../../../shared/components-ew4wq7mj.js";
|
|
17
|
-
import"../../../shared/components-
|
|
17
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
18
18
|
import"../../../shared/components-s217vq1n.js";
|
|
19
|
-
import"../../../shared/components-
|
|
19
|
+
import"../../../shared/components-xnp09586.js";
|
|
20
20
|
export {
|
|
21
21
|
NumberInput2 as NumberInput,
|
|
22
22
|
number_input_default as default
|
|
@@ -24,8 +24,8 @@ interface RadioGroupProps extends Omit<HTMLAttributes<HTMLDivElement>, "onSelect
|
|
|
24
24
|
}
|
|
25
25
|
declare const RadioGroup: ForwardRefExoticComponent<RadioGroupProps & RefAttributes<HTMLDivElement>>;
|
|
26
26
|
interface RadioProps extends HTMLAttributes<HTMLDivElement> {
|
|
27
|
-
/**
|
|
28
|
-
label?:
|
|
27
|
+
/** Label beside the circle: text, or any node (it then names the row through `aria-labelledby`). Omit it for the bare circle in a layout of your own (see Bare): it then needs a `value`, and a name from `aria-label`, `aria-labelledby` or a `<label htmlFor>` pointing at its `id`. */
|
|
28
|
+
label?: ReactNode;
|
|
29
29
|
/** Position within the `Radio.Group`: the row's `selectedIndex`. Defaults to its order among the group's rows. */
|
|
30
30
|
index?: number;
|
|
31
31
|
/** Whether this item is selected. Defaults to the group's selection. */
|
|
@@ -2,26 +2,26 @@ import {
|
|
|
2
2
|
RadioGroup2,
|
|
3
3
|
Radio2,
|
|
4
4
|
radio_default
|
|
5
|
-
} from "../../../shared/components-
|
|
6
|
-
import"../../../shared/components-
|
|
5
|
+
} from "../../../shared/components-hz6armxa.js";
|
|
6
|
+
import"../../../shared/components-y09nr7fe.js";
|
|
7
7
|
import"../../../shared/components-vcte8p75.js";
|
|
8
|
-
import"../../../shared/components-
|
|
9
|
-
import"../../../shared/components-
|
|
10
|
-
import"../../../shared/components-
|
|
11
|
-
import"../../../shared/components-
|
|
12
|
-
import"../../../shared/components-5ynncdpn.js";
|
|
8
|
+
import"../../../shared/components-c515d6xr.js";
|
|
9
|
+
import"../../../shared/components-g35n8tzm.js";
|
|
10
|
+
import"../../../shared/components-z0kz9rxj.js";
|
|
11
|
+
import"../../../shared/components-j3q9kaps.js";
|
|
13
12
|
import"../../../shared/components-7c4a0egq.js";
|
|
14
|
-
import"../../../shared/components-
|
|
15
|
-
import"../../../shared/components-pedbt2dc.js";
|
|
13
|
+
import"../../../shared/components-8pnvkrbw.js";
|
|
16
14
|
import"../../../shared/components-pva1wj1r.js";
|
|
15
|
+
import"../../../shared/components-nz14rwtd.js";
|
|
17
16
|
import"../../../shared/components-bkwjvvkh.js";
|
|
18
17
|
import"../../../shared/components-45r18egt.js";
|
|
18
|
+
import"../../../shared/components-wwd093xg.js";
|
|
19
19
|
import"../../../shared/components-znspksk0.js";
|
|
20
20
|
import"../../../shared/components-ew4wq7mj.js";
|
|
21
21
|
import"../../../shared/components-tz0axc0f.js";
|
|
22
|
-
import"../../../shared/components-
|
|
22
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
23
23
|
import"../../../shared/components-s217vq1n.js";
|
|
24
|
-
import"../../../shared/components-
|
|
24
|
+
import"../../../shared/components-xnp09586.js";
|
|
25
25
|
export {
|
|
26
26
|
Radio2 as Radio,
|
|
27
27
|
RadioGroup2 as RadioGroup,
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Search2,
|
|
3
3
|
search_default
|
|
4
|
-
} from "../../../shared/components-
|
|
5
|
-
import"../../../shared/components-
|
|
6
|
-
import"../../../shared/components-
|
|
7
|
-
import"../../../shared/components-r33dxr5j.js";
|
|
4
|
+
} from "../../../shared/components-77gxngmc.js";
|
|
5
|
+
import"../../../shared/components-j79a6jqa.js";
|
|
6
|
+
import"../../../shared/components-q0hs5rqn.js";
|
|
8
7
|
import"../../../shared/components-mse06t0x.js";
|
|
9
|
-
import"../../../shared/components-
|
|
10
|
-
import"../../../shared/components-
|
|
11
|
-
import"../../../shared/components-
|
|
12
|
-
import"../../../shared/components-
|
|
13
|
-
import"../../../shared/components-6f5pyzb2.js";
|
|
14
|
-
import"../../../shared/components-1a7cr7vh.js";
|
|
15
|
-
import"../../../shared/components-5vyaexsj.js";
|
|
16
|
-
import"../../../shared/components-5ynncdpn.js";
|
|
17
|
-
import"../../../shared/components-7c4a0egq.js";
|
|
18
|
-
import"../../../shared/components-346ged8v.js";
|
|
8
|
+
import"../../../shared/components-b9bj65j3.js";
|
|
9
|
+
import"../../../shared/components-nxqrw789.js";
|
|
10
|
+
import"../../../shared/components-rgng034x.js";
|
|
11
|
+
import"../../../shared/components-wq9hrera.js";
|
|
19
12
|
import"../../../shared/components-pa43g2r2.js";
|
|
20
|
-
import"../../../shared/components-
|
|
21
|
-
import"../../../shared/components-
|
|
22
|
-
import"../../../shared/components-gc5zky2w.js";
|
|
23
|
-
import"../../../shared/components-50rh4ggz.js";
|
|
13
|
+
import"../../../shared/components-0h2mng6m.js";
|
|
14
|
+
import"../../../shared/components-ywgqahmg.js";
|
|
24
15
|
import"../../../shared/components-3hgk57s0.js";
|
|
25
|
-
import"../../../shared/components-
|
|
26
|
-
import"../../../shared/components-
|
|
27
|
-
import"../../../shared/components-
|
|
16
|
+
import"../../../shared/components-g35n8tzm.js";
|
|
17
|
+
import"../../../shared/components-z0kz9rxj.js";
|
|
18
|
+
import"../../../shared/components-7c4a0egq.js";
|
|
19
|
+
import"../../../shared/components-8pnvkrbw.js";
|
|
28
20
|
import"../../../shared/components-pva1wj1r.js";
|
|
21
|
+
import"../../../shared/components-kwxye0an.js";
|
|
22
|
+
import"../../../shared/components-nz14rwtd.js";
|
|
29
23
|
import"../../../shared/components-bkwjvvkh.js";
|
|
24
|
+
import"../../../shared/components-jnhpgpfk.js";
|
|
30
25
|
import"../../../shared/components-45r18egt.js";
|
|
26
|
+
import"../../../shared/components-wwd093xg.js";
|
|
31
27
|
import"../../../shared/components-znspksk0.js";
|
|
32
28
|
import"../../../shared/components-ew4wq7mj.js";
|
|
33
29
|
import"../../../shared/components-tz0axc0f.js";
|
|
34
|
-
import"../../../shared/components-
|
|
30
|
+
import"../../../shared/components-ceyn28cf.js";
|
|
31
|
+
import"../../../shared/components-nwa2a9tq.js";
|
|
32
|
+
import"../../../shared/components-esy5nsvc.js";
|
|
33
|
+
import"../../../shared/components-6f5pyzb2.js";
|
|
34
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
35
35
|
import"../../../shared/components-s217vq1n.js";
|
|
36
|
-
import"../../../shared/components-
|
|
36
|
+
import"../../../shared/components-xnp09586.js";
|
|
37
37
|
export {
|
|
38
38
|
Search2 as Search,
|
|
39
39
|
search_default as default
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Select as SelectPrimitive } from "@base-ui/react/select";
|
|
2
|
+
import { ComponentProps, HTMLAttributes, ReactElement, ReactNode as ReactNode3 } from "react";
|
|
2
3
|
type SizeVariant = "default" | "compact";
|
|
3
4
|
/**
|
|
4
5
|
* Framed at rest (`bordered`), or invisible until hovered or focused
|
|
@@ -49,9 +50,11 @@ interface AnchorProps {
|
|
|
49
50
|
/** Portal target. Defaults to the nearest `PortalContainer`, else the document body. */
|
|
50
51
|
container?: HTMLElement | null;
|
|
51
52
|
}
|
|
52
|
-
import { JSX as JSX_1kxb3 } from "react";
|
|
53
53
|
import { ForwardRefExoticComponent as ForwardRefExoticComponent_tcubfn } from "react";
|
|
54
54
|
import { RefAttributes as RefAttributes_miuf56 } from "react";
|
|
55
|
+
import { JSX as JSX_1kxb3 } from "react";
|
|
56
|
+
/** What `onOpenChange` receives besides the open state: Base UI's Select change details. */
|
|
57
|
+
type SelectOpenChangeDetails = SelectPrimitive.Root.ChangeEventDetails;
|
|
55
58
|
interface SelectProps {
|
|
56
59
|
/** `Select.Trigger` and `Select.Content`. */
|
|
57
60
|
children: ReactNode3;
|
|
@@ -65,8 +68,8 @@ interface SelectProps {
|
|
|
65
68
|
open?: boolean;
|
|
66
69
|
/** Initial open state, for an uncontrolled select. Defaults to `false`. */
|
|
67
70
|
defaultOpen?: boolean;
|
|
68
|
-
/** Called when the popup opens or closes
|
|
69
|
-
onOpenChange?: (open: boolean) => void;
|
|
71
|
+
/** Called when the popup opens or closes, with Base UI's change details: `reason` (`'trigger-press'`, `'item-press'`, `'escape-key'`, `'outside-press'`, …), the `event`, and `cancel()` to keep it as it is. After a pick, once the 300ms acknowledgment has run. */
|
|
72
|
+
onOpenChange?: (open: boolean, details: SelectOpenChangeDetails) => void;
|
|
70
73
|
/** Disables the entire select. Defaults to `false`. */
|
|
71
74
|
disabled?: boolean;
|
|
72
75
|
/** Shows the value but takes no pick: the popup stays shut. Defaults to `false`. */
|
|
@@ -78,56 +81,21 @@ interface SelectProps {
|
|
|
78
81
|
/** Pins trigger and popup to one step of the size ladder (default 36px, compact 28px — see Sizes). Omitted, both follow the surrounding SizeProvider. */
|
|
79
82
|
size?: SizeVariant;
|
|
80
83
|
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* An animated select menu: fluid hover on the rows, a popup that oozes out of
|
|
84
|
-
* its trigger, and a checkmark that draws itself as the selection lands.
|
|
85
|
-
*
|
|
86
|
-
* Built on Base UI's Select — positioning and collision flipping, dismissal,
|
|
87
|
-
* typeahead, combobox ARIA and the hidden form input all come from the
|
|
88
|
-
* primitive. This layer adds the magnetic hover background, the selected
|
|
89
|
-
* background that melts from the old row to the picked one, a keyboard
|
|
90
|
-
* focus ring that only appears once you actually use the keyboard, and the
|
|
91
|
-
* popup's open and close through the shared morph (see Morph), goo by
|
|
92
|
-
* default. A pick holds the popup open for 300ms so that acknowledgment is
|
|
93
|
-
* seen; Escape and outside presses close at once. The trigger sits on the
|
|
94
|
-
* field box, like Combobox's field. Uncontrolled through `defaultValue` and
|
|
95
|
-
* `defaultOpen`, controlled through `value` + `onValueChange` and `open` +
|
|
96
|
-
* `onOpenChange`.
|
|
97
|
-
*
|
|
98
|
-
* Rows need no `index`: they take their place in document order, inside a
|
|
99
|
-
* `Select.Group` or out of a `map`. A row's label may be any node (an icon
|
|
100
|
-
* and text, a badge): it keeps its own box in the row and in the trigger,
|
|
101
|
-
* where text is trimmed and truncated, and its `textValue` is what typeahead
|
|
102
|
-
* matches.
|
|
103
|
-
*
|
|
104
|
-
* Statics:
|
|
105
|
-
* - `Select.Trigger` — the field: `variant`, `icon`, `placeholder`, `error`;
|
|
106
|
-
* children replace its value slot (a `Select.Value`).
|
|
107
|
-
* - `Select.Value` — the value slot: the picked row's label, else the muted `placeholder`.
|
|
108
|
-
* - `Select.Content` — the popup: `side`, `align`, `sideOffset`, `container` and the
|
|
109
|
-
* morph options `from`, `effect`, `hideSource`, `tier`.
|
|
110
|
-
* - `Select.Item` — one row: `value`, optional `index`, `textValue`, `icon`, `disabled`;
|
|
111
|
-
* its children are the label.
|
|
112
|
-
* - `Select.Group`, `Select.Label`, `Select.Separator` — sections, their captions and
|
|
113
|
-
* the hairlines between them.
|
|
114
|
-
*
|
|
115
|
-
* @example {@include ./examples.mdx}
|
|
116
|
-
* @source https://github.com/mickadesign/fluid-functionalism/blob/b3587bdbd83fc66c2a6aae3817ffb856cb09260b/registry/base/select.tsx Fluid Functionalism
|
|
117
|
-
* @license MIT © 2026 Micka Touillaud
|
|
118
|
-
*/
|
|
119
|
-
declare function Select({ children, value: valueProp, defaultValue, onValueChange, open, defaultOpen, onOpenChange, disabled: disabledProp, readOnly: readOnlyProp, name, required: requiredProp, size }: SelectProps): Element_12xgc3;
|
|
120
|
-
interface SelectValueProps {
|
|
84
|
+
interface SelectValueProps extends Omit<HTMLAttributes<HTMLSpanElement>, "children" | "placeholder"> {
|
|
121
85
|
/** Shown, muted, while nothing is selected. Defaults to `"Select…"`. */
|
|
122
86
|
placeholder?: ReactNode3;
|
|
123
87
|
/** Extra classes for the value slot. */
|
|
124
88
|
className?: string;
|
|
125
89
|
}
|
|
126
90
|
/** The trigger's value slot: the picked row's label, else the muted placeholder. */
|
|
127
|
-
declare
|
|
91
|
+
declare const SelectValue: ForwardRefExoticComponent_tcubfn<SelectValueProps & RefAttributes_miuf56<HTMLSpanElement>>;
|
|
128
92
|
interface SelectTriggerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "children"> {
|
|
129
|
-
/** Replaces the built-in value slot, typically with a `Select.Value`. The icon and chevron stay. */
|
|
93
|
+
/** Replaces the built-in value slot, typically with a `Select.Value`. The icon and chevron stay. With `asChild`, the element that becomes the trigger. */
|
|
130
94
|
children?: ReactNode3;
|
|
95
|
+
/** An element that becomes the trigger, look included (`render={<Button/>}`): childless, it gets the value slot, `icon` and chevron; with children of its own, they are the whole body. */
|
|
96
|
+
render?: ReactElement;
|
|
97
|
+
/** Compose onto the single child element instead, the same way as `render`. Defaults to `false`. */
|
|
98
|
+
asChild?: boolean;
|
|
131
99
|
/** Framed at rest, or invisible until hovered or focused. Defaults to `"bordered"`. */
|
|
132
100
|
variant?: FieldVariant;
|
|
133
101
|
/** Optional icon displayed before the value. */
|
|
@@ -140,9 +108,14 @@ interface SelectTriggerProps extends Omit<HTMLAttributes<HTMLButtonElement>, "ch
|
|
|
140
108
|
size?: SizeVariant;
|
|
141
109
|
/** Extra classes for the trigger button. */
|
|
142
110
|
className?: string;
|
|
111
|
+
/** Extra classes for the div around the trigger, which holds the `error` message under it: a flex column, so `contents` takes it out of the layout. */
|
|
112
|
+
wrapperClassName?: string;
|
|
143
113
|
}
|
|
144
114
|
declare const SelectTrigger: ForwardRefExoticComponent_tcubfn<SelectTriggerProps & RefAttributes_miuf56<HTMLButtonElement>>;
|
|
115
|
+
type SelectPopupProps = ComponentProps<typeof SelectPrimitive.Popup>;
|
|
145
116
|
interface SelectContentProps extends AnchorProps, MorphProps, Omit<HTMLAttributes<HTMLDivElement>, "children"> {
|
|
117
|
+
/** Where focus goes when the popup closes: a ref, `false` to leave it, `true` for the default, or a function of how it closed. Defaults to the trigger. */
|
|
118
|
+
finalFocus?: SelectPopupProps["finalFocus"];
|
|
146
119
|
/** Additional classes for the menu container. */
|
|
147
120
|
className?: string;
|
|
148
121
|
/** `Select.Item`, `Select.Group`, `Select.Label`, `Select.Separator`. */
|
|
@@ -164,7 +137,58 @@ interface SelectItemProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
164
137
|
children?: ReactNode3;
|
|
165
138
|
}
|
|
166
139
|
declare const SelectItem: ForwardRefExoticComponent_tcubfn<SelectItemProps & RefAttributes_miuf56<HTMLDivElement>>;
|
|
140
|
+
type Element_12xgc3 = JSX_1kxb3["Element"];
|
|
167
141
|
declare function SelectGroup(props: HTMLAttributes<HTMLDivElement>): Element_12xgc3;
|
|
168
142
|
declare const SelectLabel: ForwardRefExoticComponent_tcubfn<HTMLAttributes<HTMLDivElement> & RefAttributes_miuf56<HTMLDivElement>>;
|
|
169
143
|
declare const SelectSeparator: ForwardRefExoticComponent_tcubfn<HTMLAttributes<HTMLDivElement> & RefAttributes_miuf56<HTMLDivElement>>;
|
|
170
|
-
|
|
144
|
+
/**
|
|
145
|
+
* An animated select menu: fluid hover on the rows, a popup that oozes out of
|
|
146
|
+
* its trigger, and a checkmark that draws itself as the selection lands.
|
|
147
|
+
*
|
|
148
|
+
* Built on Base UI's Select — positioning and collision flipping, dismissal,
|
|
149
|
+
* typeahead, combobox ARIA and the hidden form input all come from the
|
|
150
|
+
* primitive. This layer adds the magnetic hover background, the selected
|
|
151
|
+
* background that melts from the old row to the picked one, a keyboard
|
|
152
|
+
* focus ring that only appears once you actually use the keyboard, and the
|
|
153
|
+
* popup's open and close through the shared morph (see Morph), goo by
|
|
154
|
+
* default. A pick holds the popup open for 300ms so that acknowledgment is
|
|
155
|
+
* seen; Escape and outside presses close at once. The trigger sits on the
|
|
156
|
+
* field box, like Combobox's field. Uncontrolled through `defaultValue` and
|
|
157
|
+
* `defaultOpen`, controlled through `value` + `onValueChange` and `open` +
|
|
158
|
+
* `onOpenChange`; `onOpenChange` hears why (`details.reason`) and can
|
|
159
|
+
* `details.cancel()` it.
|
|
160
|
+
*
|
|
161
|
+
* Rows need no `index`: they take their place in document order, inside a
|
|
162
|
+
* `Select.Group` or out of a `map`. A row's label may be any node (an icon
|
|
163
|
+
* and text, a badge): it keeps its own box in the row and in the trigger,
|
|
164
|
+
* where text is trimmed and truncated, and its `textValue` is what typeahead
|
|
165
|
+
* matches.
|
|
166
|
+
*
|
|
167
|
+
* Statics:
|
|
168
|
+
* - `Select.Trigger` — the field: `variant`, `icon`, `placeholder`, `error`,
|
|
169
|
+
* `wrapperClassName`; children replace its value slot (a `Select.Value`).
|
|
170
|
+
* `render={<Button/>}` or `asChild` make your own element the trigger,
|
|
171
|
+
* look included: childless it keeps the value slot and chevron, with
|
|
172
|
+
* children those are its whole body.
|
|
173
|
+
* - `Select.Value` — the value slot: the picked row's label, else the muted `placeholder`.
|
|
174
|
+
* - `Select.Content` — the popup: `side`, `align`, `sideOffset`, `container`, `finalFocus` and the
|
|
175
|
+
* morph options `from`, `effect`, `hideSource`, `tier`.
|
|
176
|
+
* - `Select.Item` — one row: `value`, optional `index`, `textValue`, `icon`, `disabled`;
|
|
177
|
+
* its children are the label.
|
|
178
|
+
* - `Select.Group`, `Select.Label`, `Select.Separator` — sections, their captions and
|
|
179
|
+
* the hairlines between them.
|
|
180
|
+
*
|
|
181
|
+
* @example {@include ./examples.mdx}
|
|
182
|
+
* @source https://github.com/mickadesign/fluid-functionalism/blob/b3587bdbd83fc66c2a6aae3817ffb856cb09260b/registry/base/select.tsx Fluid Functionalism
|
|
183
|
+
* @license MIT © 2026 Micka Touillaud
|
|
184
|
+
*/
|
|
185
|
+
declare const Select: (({ children, value: valueProp, defaultValue, onValueChange, open, defaultOpen, onOpenChange, disabled: disabledProp, readOnly: readOnlyProp, name, required: requiredProp, size }: SelectProps) => Element_12xgc3) & {
|
|
186
|
+
Trigger: ForwardRefExoticComponent_tcubfn<SelectTriggerProps & RefAttributes_miuf56<HTMLButtonElement>>;
|
|
187
|
+
Value: ForwardRefExoticComponent_tcubfn<SelectValueProps & RefAttributes_miuf56<HTMLSpanElement>>;
|
|
188
|
+
Content: ForwardRefExoticComponent_tcubfn<SelectContentProps & RefAttributes_miuf56<HTMLDivElement>>;
|
|
189
|
+
Item: ForwardRefExoticComponent_tcubfn<SelectItemProps & RefAttributes_miuf56<HTMLDivElement>>;
|
|
190
|
+
Group: typeof SelectGroup;
|
|
191
|
+
Label: ForwardRefExoticComponent_tcubfn<HTMLAttributes<HTMLDivElement> & RefAttributes_miuf56<HTMLDivElement>>;
|
|
192
|
+
Separator: ForwardRefExoticComponent_tcubfn<HTMLAttributes<HTMLDivElement> & RefAttributes_miuf56<HTMLDivElement>>;
|
|
193
|
+
};
|
|
194
|
+
export { Select, SelectContent, SelectContentProps, SelectGroup, SelectItem, SelectItemProps, SelectLabel, SelectOpenChangeDetails, SelectProps, SelectSeparator, SelectTrigger, SelectTriggerProps, SelectValue, SelectValueProps, Select as default };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
Select2,
|
|
3
2
|
SelectValue2,
|
|
4
3
|
SelectTrigger2,
|
|
5
4
|
SelectContent2,
|
|
@@ -7,38 +6,40 @@ import {
|
|
|
7
6
|
SelectGroup2,
|
|
8
7
|
SelectLabel2,
|
|
9
8
|
SelectSeparator2,
|
|
9
|
+
Select2,
|
|
10
10
|
select_default
|
|
11
|
-
} from "../../../shared/components-
|
|
11
|
+
} from "../../../shared/components-h0x2pj2y.js";
|
|
12
12
|
import"../../../shared/components-tcyz2tdn.js";
|
|
13
|
-
import"../../../shared/components-
|
|
14
|
-
import"../../../shared/components-0mrhj88d.js";
|
|
15
|
-
import"../../../shared/components-r33dxr5j.js";
|
|
13
|
+
import"../../../shared/components-q0hs5rqn.js";
|
|
16
14
|
import"../../../shared/components-mse06t0x.js";
|
|
17
|
-
import"../../../shared/components-
|
|
18
|
-
import"../../../shared/components-
|
|
19
|
-
import"../../../shared/components-
|
|
20
|
-
import"../../../shared/components-grxgqa75.js";
|
|
21
|
-
import"../../../shared/components-3m4rqrqm.js";
|
|
22
|
-
import"../../../shared/components-6f5pyzb2.js";
|
|
23
|
-
import"../../../shared/components-1a7cr7vh.js";
|
|
24
|
-
import"../../../shared/components-5vyaexsj.js";
|
|
25
|
-
import"../../../shared/components-5ynncdpn.js";
|
|
26
|
-
import"../../../shared/components-7c4a0egq.js";
|
|
27
|
-
import"../../../shared/components-346ged8v.js";
|
|
15
|
+
import"../../../shared/components-nxqrw789.js";
|
|
16
|
+
import"../../../shared/components-rgng034x.js";
|
|
17
|
+
import"../../../shared/components-wq9hrera.js";
|
|
28
18
|
import"../../../shared/components-pa43g2r2.js";
|
|
29
|
-
import"../../../shared/components-
|
|
30
|
-
import"../../../shared/components-
|
|
31
|
-
import"../../../shared/components-
|
|
32
|
-
import"../../../shared/components-
|
|
19
|
+
import"../../../shared/components-vcte8p75.js";
|
|
20
|
+
import"../../../shared/components-c515d6xr.js";
|
|
21
|
+
import"../../../shared/components-g35n8tzm.js";
|
|
22
|
+
import"../../../shared/components-z0kz9rxj.js";
|
|
23
|
+
import"../../../shared/components-7c4a0egq.js";
|
|
24
|
+
import"../../../shared/components-8pnvkrbw.js";
|
|
33
25
|
import"../../../shared/components-pva1wj1r.js";
|
|
26
|
+
import"../../../shared/components-1ztgy933.js";
|
|
27
|
+
import"../../../shared/components-grxgqa75.js";
|
|
28
|
+
import"../../../shared/components-kwxye0an.js";
|
|
29
|
+
import"../../../shared/components-nz14rwtd.js";
|
|
34
30
|
import"../../../shared/components-bkwjvvkh.js";
|
|
35
31
|
import"../../../shared/components-45r18egt.js";
|
|
32
|
+
import"../../../shared/components-wwd093xg.js";
|
|
36
33
|
import"../../../shared/components-znspksk0.js";
|
|
37
34
|
import"../../../shared/components-ew4wq7mj.js";
|
|
38
35
|
import"../../../shared/components-tz0axc0f.js";
|
|
39
|
-
import"../../../shared/components-
|
|
36
|
+
import"../../../shared/components-ceyn28cf.js";
|
|
37
|
+
import"../../../shared/components-nwa2a9tq.js";
|
|
38
|
+
import"../../../shared/components-esy5nsvc.js";
|
|
39
|
+
import"../../../shared/components-6f5pyzb2.js";
|
|
40
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
40
41
|
import"../../../shared/components-s217vq1n.js";
|
|
41
|
-
import"../../../shared/components-
|
|
42
|
+
import"../../../shared/components-xnp09586.js";
|
|
42
43
|
export {
|
|
43
44
|
Select2 as Select,
|
|
44
45
|
SelectContent2 as SelectContent,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Slider2,
|
|
3
3
|
slider_default
|
|
4
|
-
} from "../../../shared/components-
|
|
5
|
-
import"../../../shared/components-wwd093xg.js";
|
|
4
|
+
} from "../../../shared/components-p32aqk3q.js";
|
|
6
5
|
import"../../../shared/components-bkwjvvkh.js";
|
|
7
6
|
import"../../../shared/components-45r18egt.js";
|
|
7
|
+
import"../../../shared/components-wwd093xg.js";
|
|
8
8
|
import"../../../shared/components-znspksk0.js";
|
|
9
9
|
import"../../../shared/components-ew4wq7mj.js";
|
|
10
|
-
import"../../../shared/components-
|
|
10
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
11
11
|
import"../../../shared/components-s217vq1n.js";
|
|
12
|
-
import"../../../shared/components-
|
|
12
|
+
import"../../../shared/components-xnp09586.js";
|
|
13
13
|
export {
|
|
14
14
|
Slider2 as Slider,
|
|
15
15
|
slider_default as default
|
|
@@ -2,23 +2,23 @@ import {
|
|
|
2
2
|
Switch2,
|
|
3
3
|
SwitchGroup2,
|
|
4
4
|
switch_default
|
|
5
|
-
} from "../../../shared/components-
|
|
6
|
-
import"../../../shared/components-
|
|
7
|
-
import"../../../shared/components-
|
|
8
|
-
import"../../../shared/components-
|
|
9
|
-
import"../../../shared/components-5ynncdpn.js";
|
|
5
|
+
} from "../../../shared/components-gsstwhtv.js";
|
|
6
|
+
import"../../../shared/components-g35n8tzm.js";
|
|
7
|
+
import"../../../shared/components-z0kz9rxj.js";
|
|
8
|
+
import"../../../shared/components-j3q9kaps.js";
|
|
10
9
|
import"../../../shared/components-7c4a0egq.js";
|
|
11
|
-
import"../../../shared/components-
|
|
12
|
-
import"../../../shared/components-pedbt2dc.js";
|
|
10
|
+
import"../../../shared/components-8pnvkrbw.js";
|
|
13
11
|
import"../../../shared/components-pva1wj1r.js";
|
|
12
|
+
import"../../../shared/components-nz14rwtd.js";
|
|
14
13
|
import"../../../shared/components-bkwjvvkh.js";
|
|
15
14
|
import"../../../shared/components-45r18egt.js";
|
|
15
|
+
import"../../../shared/components-wwd093xg.js";
|
|
16
16
|
import"../../../shared/components-znspksk0.js";
|
|
17
17
|
import"../../../shared/components-ew4wq7mj.js";
|
|
18
18
|
import"../../../shared/components-tz0axc0f.js";
|
|
19
|
-
import"../../../shared/components-
|
|
19
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
20
20
|
import"../../../shared/components-s217vq1n.js";
|
|
21
|
-
import"../../../shared/components-
|
|
21
|
+
import"../../../shared/components-xnp09586.js";
|
|
22
22
|
export {
|
|
23
23
|
Switch2 as Switch,
|
|
24
24
|
SwitchGroup2 as SwitchGroup,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Textarea2,
|
|
3
3
|
textarea_default
|
|
4
|
-
} from "../../../shared/components-
|
|
4
|
+
} from "../../../shared/components-chda6b23.js";
|
|
5
5
|
import"../../../shared/components-vpkh6j83.js";
|
|
6
6
|
import"../../../shared/components-v2j3jx89.js";
|
|
7
|
-
import"../../../shared/components-
|
|
7
|
+
import"../../../shared/components-1ztgy933.js";
|
|
8
8
|
import"../../../shared/components-grxgqa75.js";
|
|
9
|
-
import"../../../shared/components-wwd093xg.js";
|
|
10
9
|
import"../../../shared/components-bkwjvvkh.js";
|
|
10
|
+
import"../../../shared/components-wwd093xg.js";
|
|
11
11
|
import"../../../shared/components-znspksk0.js";
|
|
12
12
|
import"../../../shared/components-ew4wq7mj.js";
|
|
13
|
-
import"../../../shared/components-
|
|
13
|
+
import"../../../shared/components-kxpcj2ry.js";
|
|
14
14
|
import"../../../shared/components-s217vq1n.js";
|
|
15
|
-
import"../../../shared/components-
|
|
15
|
+
import"../../../shared/components-xnp09586.js";
|
|
16
16
|
export {
|
|
17
17
|
Textarea2 as Textarea,
|
|
18
18
|
textarea_default as default
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
type SizeVariant = "default" | "compact";
|
|
3
|
+
import { JSX as JSX_1kxb } from "react";
|
|
4
|
+
interface BreadcrumbItemProps {
|
|
5
|
+
/** The crumb's text. */
|
|
6
|
+
label: string;
|
|
7
|
+
/** Where the crumb links to. */
|
|
8
|
+
href?: string;
|
|
9
|
+
/** Called when the crumb is pressed; a crumb with neither `href` nor `onClick` is plain text. */
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
}
|
|
12
|
+
/** One crumb, as a child of `Breadcrumb`; it reads the same as an entry of `items`. */
|
|
13
|
+
declare function BreadcrumbItem(_: BreadcrumbItemProps): null;
|
|
14
|
+
interface BreadcrumbProps {
|
|
15
|
+
/** The trail, first crumb first: `{ label, href?, onClick? }`. Or pass `Breadcrumb.Item` children instead. */
|
|
16
|
+
items?: BreadcrumbItemProps[];
|
|
17
|
+
/** `Breadcrumb.Item`s, read when `items` is left out. */
|
|
18
|
+
children?: ReactNode;
|
|
19
|
+
/** Pins the crumbs to one step of the size ladder (36px default, 28px compact). Defaults to the surrounding SizeProvider. */
|
|
20
|
+
size?: SizeVariant;
|
|
21
|
+
/** Classes for the `nav` root. */
|
|
22
|
+
className?: string;
|
|
23
|
+
}
|
|
24
|
+
type Element_12xgc = JSX_1kxb["Element"];
|
|
25
|
+
/**
|
|
26
|
+
* Where you are: the path from the top down to the current page, each step a
|
|
27
|
+
* link back up.
|
|
28
|
+
*
|
|
29
|
+
* The last crumb is the current page (`aria-current="page"`), in the text
|
|
30
|
+
* color; the ones before it are muted links that light up under one fluid
|
|
31
|
+
* hover highlight gliding along the trail. When the trail runs out of room,
|
|
32
|
+
* the middle crumbs fold into an ellipsis that opens them as a Dropdown,
|
|
33
|
+
* keeping the first and as many of the last as fit; the current page
|
|
34
|
+
* truncates last.
|
|
35
|
+
*
|
|
36
|
+
* Statics:
|
|
37
|
+
* - `Breadcrumb.Item` — one crumb: `label`, `href`, `onClick`.
|
|
38
|
+
*
|
|
39
|
+
* @example {@include ./examples.mdx}
|
|
40
|
+
*/
|
|
41
|
+
declare const Breadcrumb: (({ items: itemsProp, children, size: sizeProp, className }: BreadcrumbProps) => Element_12xgc) & {
|
|
42
|
+
Item: typeof BreadcrumbItem;
|
|
43
|
+
};
|
|
44
|
+
export { Breadcrumb, BreadcrumbItem, BreadcrumbItemProps, BreadcrumbProps, Breadcrumb as default };
|