jaci-ui 0.1.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/LICENSE +21 -0
- package/dist/components/accordion/accordion.cjs +83 -0
- package/dist/components/accordion/accordion.cjs.map +1 -0
- package/dist/components/accordion/accordion.d.cts +32 -0
- package/dist/components/accordion/accordion.d.ts +32 -0
- package/dist/components/accordion/accordion.js +77 -0
- package/dist/components/accordion/accordion.js.map +1 -0
- package/dist/components/accordion/index.d.cts +2 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/alert/alert.cjs +76 -0
- package/dist/components/alert/alert.cjs.map +1 -0
- package/dist/components/alert/alert.d.cts +26 -0
- package/dist/components/alert/alert.d.ts +26 -0
- package/dist/components/alert/alert.js +72 -0
- package/dist/components/alert/alert.js.map +1 -0
- package/dist/components/alert/index.d.cts +2 -0
- package/dist/components/alert/index.d.ts +2 -0
- package/dist/components/alert-dialog/alert-dialog.cjs +147 -0
- package/dist/components/alert-dialog/alert-dialog.cjs.map +1 -0
- package/dist/components/alert-dialog/alert-dialog.d.cts +73 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +73 -0
- package/dist/components/alert-dialog/alert-dialog.js +133 -0
- package/dist/components/alert-dialog/alert-dialog.js.map +1 -0
- package/dist/components/alert-dialog/index.d.cts +2 -0
- package/dist/components/alert-dialog/index.d.ts +2 -0
- package/dist/components/avatar/avatar.cjs +89 -0
- package/dist/components/avatar/avatar.cjs.map +1 -0
- package/dist/components/avatar/avatar.d.cts +33 -0
- package/dist/components/avatar/avatar.d.ts +33 -0
- package/dist/components/avatar/avatar.js +86 -0
- package/dist/components/avatar/avatar.js.map +1 -0
- package/dist/components/avatar/index.d.cts +2 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/base-ui.cjs +14 -0
- package/dist/components/base-ui.cjs.map +1 -0
- package/dist/components/base-ui.js +14 -0
- package/dist/components/base-ui.js.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.cjs +84 -0
- package/dist/components/breadcrumbs/breadcrumbs.cjs.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.cts +31 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +31 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +78 -0
- package/dist/components/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/components/breadcrumbs/index.d.cts +2 -0
- package/dist/components/breadcrumbs/index.d.ts +2 -0
- package/dist/components/button/button.cjs +54 -0
- package/dist/components/button/button.cjs.map +1 -0
- package/dist/components/button/button.d.cts +21 -0
- package/dist/components/button/button.d.ts +21 -0
- package/dist/components/button/button.js +54 -0
- package/dist/components/button/button.js.map +1 -0
- package/dist/components/button/index.d.cts +2 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/card/card.cjs +55 -0
- package/dist/components/card/card.cjs.map +1 -0
- package/dist/components/card/card.d.cts +13 -0
- package/dist/components/card/card.d.ts +13 -0
- package/dist/components/card/card.js +51 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/card/index.d.cts +2 -0
- package/dist/components/card/index.d.ts +2 -0
- package/dist/components/checkbox-group/checkbox-group.cjs +85 -0
- package/dist/components/checkbox-group/checkbox-group.cjs.map +1 -0
- package/dist/components/checkbox-group/checkbox-group.d.cts +37 -0
- package/dist/components/checkbox-group/checkbox-group.d.ts +37 -0
- package/dist/components/checkbox-group/checkbox-group.js +79 -0
- package/dist/components/checkbox-group/checkbox-group.js.map +1 -0
- package/dist/components/checkbox-group/index.d.cts +2 -0
- package/dist/components/checkbox-group/index.d.ts +2 -0
- package/dist/components/collapsible/collapsible.cjs +59 -0
- package/dist/components/collapsible/collapsible.cjs.map +1 -0
- package/dist/components/collapsible/collapsible.d.cts +22 -0
- package/dist/components/collapsible/collapsible.d.ts +22 -0
- package/dist/components/collapsible/collapsible.js +55 -0
- package/dist/components/collapsible/collapsible.js.map +1 -0
- package/dist/components/collapsible/index.d.cts +2 -0
- package/dist/components/collapsible/index.d.ts +2 -0
- package/dist/components/color-picker/color-picker.cjs +360 -0
- package/dist/components/color-picker/color-picker.cjs.map +1 -0
- package/dist/components/color-picker/color-picker.d.cts +94 -0
- package/dist/components/color-picker/color-picker.d.ts +94 -0
- package/dist/components/color-picker/color-picker.js +344 -0
- package/dist/components/color-picker/color-picker.js.map +1 -0
- package/dist/components/color-picker/color-utils.cjs +162 -0
- package/dist/components/color-picker/color-utils.cjs.map +1 -0
- package/dist/components/color-picker/color-utils.d.cts +14 -0
- package/dist/components/color-picker/color-utils.d.ts +14 -0
- package/dist/components/color-picker/color-utils.js +160 -0
- package/dist/components/color-picker/color-utils.js.map +1 -0
- package/dist/components/color-picker/index.d.cts +3 -0
- package/dist/components/color-picker/index.d.ts +3 -0
- package/dist/components/combobox/combobox.cjs +218 -0
- package/dist/components/combobox/combobox.cjs.map +1 -0
- package/dist/components/combobox/combobox.d.cts +81 -0
- package/dist/components/combobox/combobox.d.ts +81 -0
- package/dist/components/combobox/combobox.js +199 -0
- package/dist/components/combobox/combobox.js.map +1 -0
- package/dist/components/combobox/index.d.cts +2 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/command/command.cjs +303 -0
- package/dist/components/command/command.cjs.map +1 -0
- package/dist/components/command/command.d.cts +50 -0
- package/dist/components/command/command.d.ts +50 -0
- package/dist/components/command/command.js +294 -0
- package/dist/components/command/command.js.map +1 -0
- package/dist/components/command/index.d.cts +2 -0
- package/dist/components/command/index.d.ts +2 -0
- package/dist/components/context-menu/context-menu.cjs +175 -0
- package/dist/components/context-menu/context-menu.cjs.map +1 -0
- package/dist/components/context-menu/context-menu.d.cts +69 -0
- package/dist/components/context-menu/context-menu.d.ts +69 -0
- package/dist/components/context-menu/context-menu.js +156 -0
- package/dist/components/context-menu/context-menu.js.map +1 -0
- package/dist/components/context-menu/index.d.cts +2 -0
- package/dist/components/context-menu/index.d.ts +2 -0
- package/dist/components/controls/checkbox.cjs +33 -0
- package/dist/components/controls/checkbox.cjs.map +1 -0
- package/dist/components/controls/checkbox.d.cts +12 -0
- package/dist/components/controls/checkbox.d.ts +12 -0
- package/dist/components/controls/checkbox.js +33 -0
- package/dist/components/controls/checkbox.js.map +1 -0
- package/dist/components/controls/index.d.cts +6 -0
- package/dist/components/controls/index.d.ts +6 -0
- package/dist/components/controls/input.cjs +29 -0
- package/dist/components/controls/input.cjs.map +1 -0
- package/dist/components/controls/input.d.cts +9 -0
- package/dist/components/controls/input.d.ts +9 -0
- package/dist/components/controls/input.js +29 -0
- package/dist/components/controls/input.js.map +1 -0
- package/dist/components/controls/radio.cjs +20 -0
- package/dist/components/controls/radio.cjs.map +1 -0
- package/dist/components/controls/radio.d.cts +7 -0
- package/dist/components/controls/radio.d.ts +7 -0
- package/dist/components/controls/radio.js +20 -0
- package/dist/components/controls/radio.js.map +1 -0
- package/dist/components/controls/switch.cjs +30 -0
- package/dist/components/controls/switch.cjs.map +1 -0
- package/dist/components/controls/switch.d.cts +10 -0
- package/dist/components/controls/switch.d.ts +10 -0
- package/dist/components/controls/switch.js +30 -0
- package/dist/components/controls/switch.js.map +1 -0
- package/dist/components/controls/textarea.cjs +30 -0
- package/dist/components/controls/textarea.cjs.map +1 -0
- package/dist/components/controls/textarea.d.cts +9 -0
- package/dist/components/controls/textarea.d.ts +9 -0
- package/dist/components/controls/textarea.js +30 -0
- package/dist/components/controls/textarea.js.map +1 -0
- package/dist/components/copyable/copyable.cjs +124 -0
- package/dist/components/copyable/copyable.cjs.map +1 -0
- package/dist/components/copyable/copyable.d.cts +27 -0
- package/dist/components/copyable/copyable.d.ts +27 -0
- package/dist/components/copyable/copyable.js +121 -0
- package/dist/components/copyable/copyable.js.map +1 -0
- package/dist/components/copyable/index.d.cts +2 -0
- package/dist/components/copyable/index.d.ts +2 -0
- package/dist/components/data-view/data-view.cjs +85 -0
- package/dist/components/data-view/data-view.cjs.map +1 -0
- package/dist/components/data-view/data-view.d.cts +31 -0
- package/dist/components/data-view/data-view.d.ts +31 -0
- package/dist/components/data-view/data-view.js +79 -0
- package/dist/components/data-view/data-view.js.map +1 -0
- package/dist/components/data-view/index.d.cts +2 -0
- package/dist/components/data-view/index.d.ts +2 -0
- package/dist/components/date-picker/date-picker.cjs +448 -0
- package/dist/components/date-picker/date-picker.cjs.map +1 -0
- package/dist/components/date-picker/date-picker.d.cts +118 -0
- package/dist/components/date-picker/date-picker.d.ts +118 -0
- package/dist/components/date-picker/date-picker.js +432 -0
- package/dist/components/date-picker/date-picker.js.map +1 -0
- package/dist/components/date-picker/date-utils.cjs +80 -0
- package/dist/components/date-picker/date-utils.cjs.map +1 -0
- package/dist/components/date-picker/date-utils.js +66 -0
- package/dist/components/date-picker/date-utils.js.map +1 -0
- package/dist/components/date-picker/index.d.cts +2 -0
- package/dist/components/date-picker/index.d.ts +2 -0
- package/dist/components/dialog/dialog.cjs +130 -0
- package/dist/components/dialog/dialog.cjs.map +1 -0
- package/dist/components/dialog/dialog.d.cts +55 -0
- package/dist/components/dialog/dialog.d.ts +55 -0
- package/dist/components/dialog/dialog.js +118 -0
- package/dist/components/dialog/dialog.js.map +1 -0
- package/dist/components/dialog/index.d.cts +2 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/drawer/drawer.cjs +165 -0
- package/dist/components/drawer/drawer.cjs.map +1 -0
- package/dist/components/drawer/drawer.d.cts +58 -0
- package/dist/components/drawer/drawer.d.ts +58 -0
- package/dist/components/drawer/drawer.js +153 -0
- package/dist/components/drawer/drawer.js.map +1 -0
- package/dist/components/drawer/index.d.cts +2 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/feedback/badge.cjs +18 -0
- package/dist/components/feedback/badge.cjs.map +1 -0
- package/dist/components/feedback/badge.d.cts +9 -0
- package/dist/components/feedback/badge.d.ts +9 -0
- package/dist/components/feedback/badge.js +18 -0
- package/dist/components/feedback/badge.js.map +1 -0
- package/dist/components/feedback/index.d.cts +2 -0
- package/dist/components/feedback/index.d.ts +2 -0
- package/dist/components/field/field.cjs +127 -0
- package/dist/components/field/field.cjs.map +1 -0
- package/dist/components/field/field.d.cts +47 -0
- package/dist/components/field/field.d.ts +47 -0
- package/dist/components/field/field.js +123 -0
- package/dist/components/field/field.js.map +1 -0
- package/dist/components/field/index.d.cts +2 -0
- package/dist/components/field/index.d.ts +2 -0
- package/dist/components/fieldset/fieldset.cjs +48 -0
- package/dist/components/fieldset/fieldset.cjs.map +1 -0
- package/dist/components/fieldset/fieldset.d.cts +17 -0
- package/dist/components/fieldset/fieldset.d.ts +17 -0
- package/dist/components/fieldset/fieldset.js +45 -0
- package/dist/components/fieldset/fieldset.js.map +1 -0
- package/dist/components/fieldset/index.d.cts +2 -0
- package/dist/components/fieldset/index.d.ts +2 -0
- package/dist/components/form/form.cjs +27 -0
- package/dist/components/form/form.cjs.map +1 -0
- package/dist/components/form/form.d.cts +18 -0
- package/dist/components/form/form.d.ts +18 -0
- package/dist/components/form/form.js +26 -0
- package/dist/components/form/form.js.map +1 -0
- package/dist/components/form/index.d.cts +2 -0
- package/dist/components/form/index.d.ts +2 -0
- package/dist/components/layout/index.cjs +73 -0
- package/dist/components/layout/index.cjs.map +1 -0
- package/dist/components/layout/index.d.cts +35 -0
- package/dist/components/layout/index.d.ts +35 -0
- package/dist/components/layout/index.js +69 -0
- package/dist/components/layout/index.js.map +1 -0
- package/dist/components/list/index.d.cts +2 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/list/list.cjs +86 -0
- package/dist/components/list/list.cjs.map +1 -0
- package/dist/components/list/list.d.cts +37 -0
- package/dist/components/list/list.d.ts +37 -0
- package/dist/components/list/list.js +80 -0
- package/dist/components/list/list.js.map +1 -0
- package/dist/components/menu/index.d.cts +2 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.cjs +108 -0
- package/dist/components/menu/menu.cjs.map +1 -0
- package/dist/components/menu/menu.d.cts +47 -0
- package/dist/components/menu/menu.d.ts +47 -0
- package/dist/components/menu/menu.js +98 -0
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/menubar/index.d.cts +2 -0
- package/dist/components/menubar/index.d.ts +2 -0
- package/dist/components/menubar/menubar.cjs +206 -0
- package/dist/components/menubar/menubar.cjs.map +1 -0
- package/dist/components/menubar/menubar.d.cts +74 -0
- package/dist/components/menubar/menubar.d.ts +74 -0
- package/dist/components/menubar/menubar.js +187 -0
- package/dist/components/menubar/menubar.js.map +1 -0
- package/dist/components/meter/index.d.cts +2 -0
- package/dist/components/meter/index.d.ts +2 -0
- package/dist/components/meter/meter.cjs +91 -0
- package/dist/components/meter/meter.cjs.map +1 -0
- package/dist/components/meter/meter.d.cts +30 -0
- package/dist/components/meter/meter.d.ts +30 -0
- package/dist/components/meter/meter.js +86 -0
- package/dist/components/meter/meter.js.map +1 -0
- package/dist/components/navigation/index.d.cts +2 -0
- package/dist/components/navigation/index.d.ts +2 -0
- package/dist/components/navigation/navigation.cjs +163 -0
- package/dist/components/navigation/navigation.cjs.map +1 -0
- package/dist/components/navigation/navigation.d.cts +75 -0
- package/dist/components/navigation/navigation.d.ts +75 -0
- package/dist/components/navigation/navigation.js +151 -0
- package/dist/components/navigation/navigation.js.map +1 -0
- package/dist/components/navigation-menu/index.d.cts +2 -0
- package/dist/components/navigation-menu/index.d.ts +2 -0
- package/dist/components/navigation-menu/navigation-menu.cjs +214 -0
- package/dist/components/navigation-menu/navigation-menu.cjs.map +1 -0
- package/dist/components/navigation-menu/navigation-menu.d.cts +54 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +54 -0
- package/dist/components/navigation-menu/navigation-menu.js +201 -0
- package/dist/components/navigation-menu/navigation-menu.js.map +1 -0
- package/dist/components/number-field/index.d.cts +2 -0
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/number-field.cjs +124 -0
- package/dist/components/number-field/number-field.cjs.map +1 -0
- package/dist/components/number-field/number-field.d.cts +48 -0
- package/dist/components/number-field/number-field.d.ts +48 -0
- package/dist/components/number-field/number-field.js +116 -0
- package/dist/components/number-field/number-field.js.map +1 -0
- package/dist/components/option-selector/index.d.cts +2 -0
- package/dist/components/option-selector/index.d.ts +2 -0
- package/dist/components/option-selector/option-selector.cjs +105 -0
- package/dist/components/option-selector/option-selector.cjs.map +1 -0
- package/dist/components/option-selector/option-selector.d.cts +46 -0
- package/dist/components/option-selector/option-selector.d.ts +46 -0
- package/dist/components/option-selector/option-selector.js +105 -0
- package/dist/components/option-selector/option-selector.js.map +1 -0
- package/dist/components/pagination/index.d.cts +2 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/pagination.cjs +132 -0
- package/dist/components/pagination/pagination.cjs.map +1 -0
- package/dist/components/pagination/pagination.d.cts +44 -0
- package/dist/components/pagination/pagination.d.ts +44 -0
- package/dist/components/pagination/pagination.js +125 -0
- package/dist/components/pagination/pagination.js.map +1 -0
- package/dist/components/popover/index.d.cts +2 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/popover.cjs +98 -0
- package/dist/components/popover/popover.cjs.map +1 -0
- package/dist/components/popover/popover.d.cts +61 -0
- package/dist/components/popover/popover.d.ts +61 -0
- package/dist/components/popover/popover.js +89 -0
- package/dist/components/popover/popover.js.map +1 -0
- package/dist/components/progress/index.d.cts +2 -0
- package/dist/components/progress/index.d.ts +2 -0
- package/dist/components/progress/progress.cjs +59 -0
- package/dist/components/progress/progress.cjs.map +1 -0
- package/dist/components/progress/progress.d.cts +20 -0
- package/dist/components/progress/progress.d.ts +20 -0
- package/dist/components/progress/progress.js +59 -0
- package/dist/components/progress/progress.js.map +1 -0
- package/dist/components/radio-group/index.d.cts +2 -0
- package/dist/components/radio-group/index.d.ts +2 -0
- package/dist/components/radio-group/radio-group.cjs +90 -0
- package/dist/components/radio-group/radio-group.cjs.map +1 -0
- package/dist/components/radio-group/radio-group.d.cts +40 -0
- package/dist/components/radio-group/radio-group.d.ts +40 -0
- package/dist/components/radio-group/radio-group.js +84 -0
- package/dist/components/radio-group/radio-group.js.map +1 -0
- package/dist/components/range-slider/index.d.cts +2 -0
- package/dist/components/range-slider/index.d.ts +2 -0
- package/dist/components/range-slider/range-slider.cjs +103 -0
- package/dist/components/range-slider/range-slider.cjs.map +1 -0
- package/dist/components/range-slider/range-slider.d.cts +40 -0
- package/dist/components/range-slider/range-slider.d.ts +40 -0
- package/dist/components/range-slider/range-slider.js +96 -0
- package/dist/components/range-slider/range-slider.js.map +1 -0
- package/dist/components/scroll-area/index.d.cts +2 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/scroll-area.cjs +76 -0
- package/dist/components/scroll-area/scroll-area.cjs.map +1 -0
- package/dist/components/scroll-area/scroll-area.d.cts +26 -0
- package/dist/components/scroll-area/scroll-area.d.ts +26 -0
- package/dist/components/scroll-area/scroll-area.js +70 -0
- package/dist/components/scroll-area/scroll-area.js.map +1 -0
- package/dist/components/select/index.d.cts +2 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.cjs +171 -0
- package/dist/components/select/select.cjs.map +1 -0
- package/dist/components/select/select.d.cts +74 -0
- package/dist/components/select/select.d.ts +74 -0
- package/dist/components/select/select.js +156 -0
- package/dist/components/select/select.js.map +1 -0
- package/dist/components/sidebar/index.d.cts +2 -0
- package/dist/components/sidebar/index.d.ts +2 -0
- package/dist/components/sidebar/sidebar.cjs +162 -0
- package/dist/components/sidebar/sidebar.cjs.map +1 -0
- package/dist/components/sidebar/sidebar.d.cts +64 -0
- package/dist/components/sidebar/sidebar.d.ts +64 -0
- package/dist/components/sidebar/sidebar.js +154 -0
- package/dist/components/sidebar/sidebar.js.map +1 -0
- package/dist/components/skeleton/index.d.cts +2 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/skeleton.cjs +25 -0
- package/dist/components/skeleton/skeleton.cjs.map +1 -0
- package/dist/components/skeleton/skeleton.d.cts +13 -0
- package/dist/components/skeleton/skeleton.d.ts +13 -0
- package/dist/components/skeleton/skeleton.js +25 -0
- package/dist/components/skeleton/skeleton.js.map +1 -0
- package/dist/components/slider/index.d.cts +2 -0
- package/dist/components/slider/index.d.ts +2 -0
- package/dist/components/slider/slider.cjs +96 -0
- package/dist/components/slider/slider.cjs.map +1 -0
- package/dist/components/slider/slider.d.cts +39 -0
- package/dist/components/slider/slider.d.ts +39 -0
- package/dist/components/slider/slider.js +89 -0
- package/dist/components/slider/slider.js.map +1 -0
- package/dist/components/table/index.d.cts +2 -0
- package/dist/components/table/index.d.ts +2 -0
- package/dist/components/table/table.cjs +196 -0
- package/dist/components/table/table.cjs.map +1 -0
- package/dist/components/table/table.d.cts +66 -0
- package/dist/components/table/table.d.ts +66 -0
- package/dist/components/table/table.js +184 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/components/tabs/index.d.cts +2 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabs.cjs +65 -0
- package/dist/components/tabs/tabs.cjs.map +1 -0
- package/dist/components/tabs/tabs.d.cts +23 -0
- package/dist/components/tabs/tabs.d.ts +23 -0
- package/dist/components/tabs/tabs.js +61 -0
- package/dist/components/tabs/tabs.js.map +1 -0
- package/dist/components/tags-input/index.d.cts +2 -0
- package/dist/components/tags-input/index.d.ts +2 -0
- package/dist/components/tags-input/tags-input.cjs +172 -0
- package/dist/components/tags-input/tags-input.cjs.map +1 -0
- package/dist/components/tags-input/tags-input.d.cts +26 -0
- package/dist/components/tags-input/tags-input.d.ts +26 -0
- package/dist/components/tags-input/tags-input.js +172 -0
- package/dist/components/tags-input/tags-input.js.map +1 -0
- package/dist/components/toast/index.d.cts +2 -0
- package/dist/components/toast/index.d.ts +2 -0
- package/dist/components/toast/toast.cjs +135 -0
- package/dist/components/toast/toast.cjs.map +1 -0
- package/dist/components/toast/toast.d.cts +61 -0
- package/dist/components/toast/toast.d.ts +61 -0
- package/dist/components/toast/toast.js +125 -0
- package/dist/components/toast/toast.js.map +1 -0
- package/dist/components/toggle/index.d.cts +2 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/toggle.cjs +25 -0
- package/dist/components/toggle/toggle.cjs.map +1 -0
- package/dist/components/toggle/toggle.d.cts +16 -0
- package/dist/components/toggle/toggle.d.ts +16 -0
- package/dist/components/toggle/toggle.js +25 -0
- package/dist/components/toggle/toggle.js.map +1 -0
- package/dist/components/toggle-group/index.d.cts +2 -0
- package/dist/components/toggle-group/index.d.ts +2 -0
- package/dist/components/toggle-group/toggle-group.cjs +52 -0
- package/dist/components/toggle-group/toggle-group.cjs.map +1 -0
- package/dist/components/toggle-group/toggle-group.d.cts +25 -0
- package/dist/components/toggle-group/toggle-group.d.ts +25 -0
- package/dist/components/toggle-group/toggle-group.js +50 -0
- package/dist/components/toggle-group/toggle-group.js.map +1 -0
- package/dist/components/toolbar/index.d.cts +2 -0
- package/dist/components/toolbar/index.d.ts +2 -0
- package/dist/components/toolbar/toolbar.cjs +85 -0
- package/dist/components/toolbar/toolbar.cjs.map +1 -0
- package/dist/components/toolbar/toolbar.d.cts +34 -0
- package/dist/components/toolbar/toolbar.d.ts +34 -0
- package/dist/components/toolbar/toolbar.js +79 -0
- package/dist/components/toolbar/toolbar.js.map +1 -0
- package/dist/components/tooltip/index.d.cts +2 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/tooltip.cjs +65 -0
- package/dist/components/tooltip/tooltip.cjs.map +1 -0
- package/dist/components/tooltip/tooltip.d.cts +28 -0
- package/dist/components/tooltip/tooltip.d.ts +28 -0
- package/dist/components/tooltip/tooltip.js +59 -0
- package/dist/components/tooltip/tooltip.js.map +1 -0
- package/dist/components/tree-view/index.d.cts +2 -0
- package/dist/components/tree-view/index.d.ts +2 -0
- package/dist/components/tree-view/tree-view.cjs +345 -0
- package/dist/components/tree-view/tree-view.cjs.map +1 -0
- package/dist/components/tree-view/tree-view.d.cts +39 -0
- package/dist/components/tree-view/tree-view.d.ts +39 -0
- package/dist/components/tree-view/tree-view.js +340 -0
- package/dist/components/tree-view/tree-view.js.map +1 -0
- package/dist/components/typography/heading.cjs +28 -0
- package/dist/components/typography/heading.cjs.map +1 -0
- package/dist/components/typography/heading.d.cts +12 -0
- package/dist/components/typography/heading.d.ts +12 -0
- package/dist/components/typography/heading.js +28 -0
- package/dist/components/typography/heading.js.map +1 -0
- package/dist/components/typography/index.d.cts +5 -0
- package/dist/components/typography/index.d.ts +5 -0
- package/dist/components/typography/link.cjs +18 -0
- package/dist/components/typography/link.cjs.map +1 -0
- package/dist/components/typography/link.d.cts +9 -0
- package/dist/components/typography/link.d.ts +9 -0
- package/dist/components/typography/link.js +18 -0
- package/dist/components/typography/link.js.map +1 -0
- package/dist/components/typography/paragraph.cjs +18 -0
- package/dist/components/typography/paragraph.cjs.map +1 -0
- package/dist/components/typography/paragraph.d.cts +7 -0
- package/dist/components/typography/paragraph.d.ts +7 -0
- package/dist/components/typography/paragraph.js +18 -0
- package/dist/components/typography/paragraph.js.map +1 -0
- package/dist/components/typography/text.cjs +21 -0
- package/dist/components/typography/text.cjs.map +1 -0
- package/dist/components/typography/text.d.cts +14 -0
- package/dist/components/typography/text.d.ts +14 -0
- package/dist/components/typography/text.js +21 -0
- package/dist/components/typography/text.js.map +1 -0
- package/dist/components/upload/index.d.cts +2 -0
- package/dist/components/upload/index.d.ts +2 -0
- package/dist/components/upload/upload.cjs +411 -0
- package/dist/components/upload/upload.cjs.map +1 -0
- package/dist/components/upload/upload.d.cts +91 -0
- package/dist/components/upload/upload.d.ts +91 -0
- package/dist/components/upload/upload.js +398 -0
- package/dist/components/upload/upload.js.map +1 -0
- package/dist/components/visually-hidden/index.d.cts +2 -0
- package/dist/components/visually-hidden/index.d.ts +2 -0
- package/dist/components/visually-hidden/visually-hidden.cjs +18 -0
- package/dist/components/visually-hidden/visually-hidden.cjs.map +1 -0
- package/dist/components/visually-hidden/visually-hidden.d.cts +7 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts +7 -0
- package/dist/components/visually-hidden/visually-hidden.js +18 -0
- package/dist/components/visually-hidden/visually-hidden.js.map +1 -0
- package/dist/index.cjs +494 -0
- package/dist/index.d.cts +116 -0
- package/dist/index.d.ts +116 -0
- package/dist/index.js +63 -0
- package/dist/panda-preset.cjs +11 -0
- package/dist/panda-preset.cjs.map +1 -0
- package/dist/panda-preset.d.cts +4 -0
- package/dist/panda-preset.d.ts +5 -0
- package/dist/panda-preset.js +12 -0
- package/dist/panda-preset.js.map +1 -0
- package/dist/styled-system/css/conditions.cjs +31 -0
- package/dist/styled-system/css/conditions.cjs.map +1 -0
- package/dist/styled-system/css/conditions.js +29 -0
- package/dist/styled-system/css/conditions.js.map +1 -0
- package/dist/styled-system/css/css.cjs +48 -0
- package/dist/styled-system/css/css.cjs.map +1 -0
- package/dist/styled-system/css/css.js +47 -0
- package/dist/styled-system/css/css.js.map +1 -0
- package/dist/styled-system/css/cva.cjs +20 -0
- package/dist/styled-system/css/cva.cjs.map +1 -0
- package/dist/styled-system/css/cva.js +19 -0
- package/dist/styled-system/css/cva.js.map +1 -0
- package/dist/styled-system/css/cx.cjs +13 -0
- package/dist/styled-system/css/cx.cjs.map +1 -0
- package/dist/styled-system/css/cx.js +13 -0
- package/dist/styled-system/css/cx.js.map +1 -0
- package/dist/styled-system/helpers.cjs +231 -0
- package/dist/styled-system/helpers.cjs.map +1 -0
- package/dist/styled-system/helpers.js +216 -0
- package/dist/styled-system/helpers.js.map +1 -0
- package/dist/styled-system/recipes/accordion.cjs +37 -0
- package/dist/styled-system/recipes/accordion.cjs.map +1 -0
- package/dist/styled-system/recipes/accordion.js +37 -0
- package/dist/styled-system/recipes/accordion.js.map +1 -0
- package/dist/styled-system/recipes/alert.cjs +40 -0
- package/dist/styled-system/recipes/alert.cjs.map +1 -0
- package/dist/styled-system/recipes/alert.js +40 -0
- package/dist/styled-system/recipes/alert.js.map +1 -0
- package/dist/styled-system/recipes/avatar.cjs +46 -0
- package/dist/styled-system/recipes/avatar.cjs.map +1 -0
- package/dist/styled-system/recipes/avatar.js +46 -0
- package/dist/styled-system/recipes/avatar.js.map +1 -0
- package/dist/styled-system/recipes/badge.cjs +31 -0
- package/dist/styled-system/recipes/badge.cjs.map +1 -0
- package/dist/styled-system/recipes/badge.js +31 -0
- package/dist/styled-system/recipes/badge.js.map +1 -0
- package/dist/styled-system/recipes/bottom-navigation.cjs +30 -0
- package/dist/styled-system/recipes/bottom-navigation.cjs.map +1 -0
- package/dist/styled-system/recipes/bottom-navigation.js +30 -0
- package/dist/styled-system/recipes/bottom-navigation.js.map +1 -0
- package/dist/styled-system/recipes/breadcrumbs.cjs +37 -0
- package/dist/styled-system/recipes/breadcrumbs.cjs.map +1 -0
- package/dist/styled-system/recipes/breadcrumbs.js +37 -0
- package/dist/styled-system/recipes/breadcrumbs.js.map +1 -0
- package/dist/styled-system/recipes/button.cjs +42 -0
- package/dist/styled-system/recipes/button.cjs.map +1 -0
- package/dist/styled-system/recipes/button.js +42 -0
- package/dist/styled-system/recipes/button.js.map +1 -0
- package/dist/styled-system/recipes/card.cjs +40 -0
- package/dist/styled-system/recipes/card.cjs.map +1 -0
- package/dist/styled-system/recipes/card.js +40 -0
- package/dist/styled-system/recipes/card.js.map +1 -0
- package/dist/styled-system/recipes/checkbox-group.cjs +37 -0
- package/dist/styled-system/recipes/checkbox-group.cjs.map +1 -0
- package/dist/styled-system/recipes/checkbox-group.js +37 -0
- package/dist/styled-system/recipes/checkbox-group.js.map +1 -0
- package/dist/styled-system/recipes/checkbox.cjs +30 -0
- package/dist/styled-system/recipes/checkbox.cjs.map +1 -0
- package/dist/styled-system/recipes/checkbox.js +30 -0
- package/dist/styled-system/recipes/checkbox.js.map +1 -0
- package/dist/styled-system/recipes/collapsible.cjs +35 -0
- package/dist/styled-system/recipes/collapsible.cjs.map +1 -0
- package/dist/styled-system/recipes/collapsible.js +35 -0
- package/dist/styled-system/recipes/collapsible.js.map +1 -0
- package/dist/styled-system/recipes/color-picker.cjs +46 -0
- package/dist/styled-system/recipes/color-picker.cjs.map +1 -0
- package/dist/styled-system/recipes/color-picker.js +46 -0
- package/dist/styled-system/recipes/color-picker.js.map +1 -0
- package/dist/styled-system/recipes/combobox.cjs +53 -0
- package/dist/styled-system/recipes/combobox.cjs.map +1 -0
- package/dist/styled-system/recipes/combobox.js +53 -0
- package/dist/styled-system/recipes/combobox.js.map +1 -0
- package/dist/styled-system/recipes/command.cjs +41 -0
- package/dist/styled-system/recipes/command.cjs.map +1 -0
- package/dist/styled-system/recipes/command.js +41 -0
- package/dist/styled-system/recipes/command.js.map +1 -0
- package/dist/styled-system/recipes/copyable.cjs +35 -0
- package/dist/styled-system/recipes/copyable.cjs.map +1 -0
- package/dist/styled-system/recipes/copyable.js +35 -0
- package/dist/styled-system/recipes/copyable.js.map +1 -0
- package/dist/styled-system/recipes/create-recipe.cjs +80 -0
- package/dist/styled-system/recipes/create-recipe.cjs.map +1 -0
- package/dist/styled-system/recipes/create-recipe.js +79 -0
- package/dist/styled-system/recipes/create-recipe.js.map +1 -0
- package/dist/styled-system/recipes/data-view.cjs +52 -0
- package/dist/styled-system/recipes/data-view.cjs.map +1 -0
- package/dist/styled-system/recipes/data-view.js +52 -0
- package/dist/styled-system/recipes/data-view.js.map +1 -0
- package/dist/styled-system/recipes/date-picker.cjs +51 -0
- package/dist/styled-system/recipes/date-picker.cjs.map +1 -0
- package/dist/styled-system/recipes/date-picker.js +51 -0
- package/dist/styled-system/recipes/date-picker.js.map +1 -0
- package/dist/styled-system/recipes/dialog.cjs +46 -0
- package/dist/styled-system/recipes/dialog.cjs.map +1 -0
- package/dist/styled-system/recipes/dialog.js +46 -0
- package/dist/styled-system/recipes/dialog.js.map +1 -0
- package/dist/styled-system/recipes/drawer.cjs +46 -0
- package/dist/styled-system/recipes/drawer.cjs.map +1 -0
- package/dist/styled-system/recipes/drawer.js +46 -0
- package/dist/styled-system/recipes/drawer.js.map +1 -0
- package/dist/styled-system/recipes/field.cjs +36 -0
- package/dist/styled-system/recipes/field.cjs.map +1 -0
- package/dist/styled-system/recipes/field.js +36 -0
- package/dist/styled-system/recipes/field.js.map +1 -0
- package/dist/styled-system/recipes/fieldset.cjs +34 -0
- package/dist/styled-system/recipes/fieldset.cjs.map +1 -0
- package/dist/styled-system/recipes/fieldset.js +34 -0
- package/dist/styled-system/recipes/fieldset.js.map +1 -0
- package/dist/styled-system/recipes/form.cjs +25 -0
- package/dist/styled-system/recipes/form.cjs.map +1 -0
- package/dist/styled-system/recipes/form.js +25 -0
- package/dist/styled-system/recipes/form.js.map +1 -0
- package/dist/styled-system/recipes/heading.cjs +32 -0
- package/dist/styled-system/recipes/heading.cjs.map +1 -0
- package/dist/styled-system/recipes/heading.js +32 -0
- package/dist/styled-system/recipes/heading.js.map +1 -0
- package/dist/styled-system/recipes/input.cjs +29 -0
- package/dist/styled-system/recipes/input.cjs.map +1 -0
- package/dist/styled-system/recipes/input.js +29 -0
- package/dist/styled-system/recipes/input.js.map +1 -0
- package/dist/styled-system/recipes/layout-grid.cjs +42 -0
- package/dist/styled-system/recipes/layout-grid.cjs.map +1 -0
- package/dist/styled-system/recipes/layout-grid.js +42 -0
- package/dist/styled-system/recipes/layout-grid.js.map +1 -0
- package/dist/styled-system/recipes/layout-stack.cjs +53 -0
- package/dist/styled-system/recipes/layout-stack.cjs.map +1 -0
- package/dist/styled-system/recipes/layout-stack.js +53 -0
- package/dist/styled-system/recipes/layout-stack.js.map +1 -0
- package/dist/styled-system/recipes/link.cjs +25 -0
- package/dist/styled-system/recipes/link.cjs.map +1 -0
- package/dist/styled-system/recipes/link.js +25 -0
- package/dist/styled-system/recipes/link.js.map +1 -0
- package/dist/styled-system/recipes/list.cjs +52 -0
- package/dist/styled-system/recipes/list.cjs.map +1 -0
- package/dist/styled-system/recipes/list.js +52 -0
- package/dist/styled-system/recipes/list.js.map +1 -0
- package/dist/styled-system/recipes/menu.cjs +38 -0
- package/dist/styled-system/recipes/menu.cjs.map +1 -0
- package/dist/styled-system/recipes/menu.js +38 -0
- package/dist/styled-system/recipes/menu.js.map +1 -0
- package/dist/styled-system/recipes/menubar.cjs +30 -0
- package/dist/styled-system/recipes/menubar.cjs.map +1 -0
- package/dist/styled-system/recipes/menubar.js +30 -0
- package/dist/styled-system/recipes/menubar.js.map +1 -0
- package/dist/styled-system/recipes/meter.cjs +52 -0
- package/dist/styled-system/recipes/meter.cjs.map +1 -0
- package/dist/styled-system/recipes/meter.js +52 -0
- package/dist/styled-system/recipes/meter.js.map +1 -0
- package/dist/styled-system/recipes/navbar.cjs +41 -0
- package/dist/styled-system/recipes/navbar.cjs.map +1 -0
- package/dist/styled-system/recipes/navbar.js +41 -0
- package/dist/styled-system/recipes/navbar.js.map +1 -0
- package/dist/styled-system/recipes/navigation-menu.cjs +43 -0
- package/dist/styled-system/recipes/navigation-menu.cjs.map +1 -0
- package/dist/styled-system/recipes/navigation-menu.js +43 -0
- package/dist/styled-system/recipes/navigation-menu.js.map +1 -0
- package/dist/styled-system/recipes/number-field.cjs +43 -0
- package/dist/styled-system/recipes/number-field.cjs.map +1 -0
- package/dist/styled-system/recipes/number-field.js +43 -0
- package/dist/styled-system/recipes/number-field.js.map +1 -0
- package/dist/styled-system/recipes/option-selector.cjs +52 -0
- package/dist/styled-system/recipes/option-selector.cjs.map +1 -0
- package/dist/styled-system/recipes/option-selector.js +52 -0
- package/dist/styled-system/recipes/option-selector.js.map +1 -0
- package/dist/styled-system/recipes/pagination.cjs +44 -0
- package/dist/styled-system/recipes/pagination.cjs.map +1 -0
- package/dist/styled-system/recipes/pagination.js +44 -0
- package/dist/styled-system/recipes/pagination.js.map +1 -0
- package/dist/styled-system/recipes/paragraph.cjs +25 -0
- package/dist/styled-system/recipes/paragraph.cjs.map +1 -0
- package/dist/styled-system/recipes/paragraph.js +25 -0
- package/dist/styled-system/recipes/paragraph.js.map +1 -0
- package/dist/styled-system/recipes/popover.cjs +38 -0
- package/dist/styled-system/recipes/popover.cjs.map +1 -0
- package/dist/styled-system/recipes/popover.js +38 -0
- package/dist/styled-system/recipes/popover.js.map +1 -0
- package/dist/styled-system/recipes/progress.cjs +35 -0
- package/dist/styled-system/recipes/progress.cjs.map +1 -0
- package/dist/styled-system/recipes/progress.js +35 -0
- package/dist/styled-system/recipes/progress.js.map +1 -0
- package/dist/styled-system/recipes/radio-group.cjs +37 -0
- package/dist/styled-system/recipes/radio-group.cjs.map +1 -0
- package/dist/styled-system/recipes/radio-group.js +37 -0
- package/dist/styled-system/recipes/radio-group.js.map +1 -0
- package/dist/styled-system/recipes/range-slider.cjs +42 -0
- package/dist/styled-system/recipes/range-slider.cjs.map +1 -0
- package/dist/styled-system/recipes/range-slider.js +42 -0
- package/dist/styled-system/recipes/range-slider.js.map +1 -0
- package/dist/styled-system/recipes/screen-reader-only.cjs +25 -0
- package/dist/styled-system/recipes/screen-reader-only.cjs.map +1 -0
- package/dist/styled-system/recipes/screen-reader-only.js +25 -0
- package/dist/styled-system/recipes/screen-reader-only.js.map +1 -0
- package/dist/styled-system/recipes/scroll-area.cjs +37 -0
- package/dist/styled-system/recipes/scroll-area.cjs.map +1 -0
- package/dist/styled-system/recipes/scroll-area.js +37 -0
- package/dist/styled-system/recipes/scroll-area.js.map +1 -0
- package/dist/styled-system/recipes/select.cjs +48 -0
- package/dist/styled-system/recipes/select.cjs.map +1 -0
- package/dist/styled-system/recipes/select.js +48 -0
- package/dist/styled-system/recipes/select.js.map +1 -0
- package/dist/styled-system/recipes/separator.cjs +25 -0
- package/dist/styled-system/recipes/separator.cjs.map +1 -0
- package/dist/styled-system/recipes/separator.js +25 -0
- package/dist/styled-system/recipes/separator.js.map +1 -0
- package/dist/styled-system/recipes/sidebar.cjs +44 -0
- package/dist/styled-system/recipes/sidebar.cjs.map +1 -0
- package/dist/styled-system/recipes/sidebar.js +44 -0
- package/dist/styled-system/recipes/sidebar.js.map +1 -0
- package/dist/styled-system/recipes/skeleton.cjs +35 -0
- package/dist/styled-system/recipes/skeleton.cjs.map +1 -0
- package/dist/styled-system/recipes/skeleton.js +35 -0
- package/dist/styled-system/recipes/skeleton.js.map +1 -0
- package/dist/styled-system/recipes/slider.cjs +42 -0
- package/dist/styled-system/recipes/slider.cjs.map +1 -0
- package/dist/styled-system/recipes/slider.js +42 -0
- package/dist/styled-system/recipes/slider.js.map +1 -0
- package/dist/styled-system/recipes/spinner.cjs +29 -0
- package/dist/styled-system/recipes/spinner.cjs.map +1 -0
- package/dist/styled-system/recipes/spinner.js +29 -0
- package/dist/styled-system/recipes/spinner.js.map +1 -0
- package/dist/styled-system/recipes/table.cjs +58 -0
- package/dist/styled-system/recipes/table.cjs.map +1 -0
- package/dist/styled-system/recipes/table.js +58 -0
- package/dist/styled-system/recipes/table.js.map +1 -0
- package/dist/styled-system/recipes/tabs.cjs +35 -0
- package/dist/styled-system/recipes/tabs.cjs.map +1 -0
- package/dist/styled-system/recipes/tabs.js +35 -0
- package/dist/styled-system/recipes/tabs.js.map +1 -0
- package/dist/styled-system/recipes/tags-input.cjs +43 -0
- package/dist/styled-system/recipes/tags-input.cjs.map +1 -0
- package/dist/styled-system/recipes/tags-input.js +43 -0
- package/dist/styled-system/recipes/tags-input.js.map +1 -0
- package/dist/styled-system/recipes/text.cjs +35 -0
- package/dist/styled-system/recipes/text.cjs.map +1 -0
- package/dist/styled-system/recipes/text.js +35 -0
- package/dist/styled-system/recipes/text.js.map +1 -0
- package/dist/styled-system/recipes/textarea.cjs +29 -0
- package/dist/styled-system/recipes/textarea.cjs.map +1 -0
- package/dist/styled-system/recipes/textarea.js +29 -0
- package/dist/styled-system/recipes/textarea.js.map +1 -0
- package/dist/styled-system/recipes/toast.cjs +45 -0
- package/dist/styled-system/recipes/toast.cjs.map +1 -0
- package/dist/styled-system/recipes/toast.js +45 -0
- package/dist/styled-system/recipes/toast.js.map +1 -0
- package/dist/styled-system/recipes/toggle-group.cjs +44 -0
- package/dist/styled-system/recipes/toggle-group.cjs.map +1 -0
- package/dist/styled-system/recipes/toggle-group.js +44 -0
- package/dist/styled-system/recipes/toggle-group.js.map +1 -0
- package/dist/styled-system/recipes/toggle-switch.cjs +30 -0
- package/dist/styled-system/recipes/toggle-switch.cjs.map +1 -0
- package/dist/styled-system/recipes/toggle-switch.js +30 -0
- package/dist/styled-system/recipes/toggle-switch.js.map +1 -0
- package/dist/styled-system/recipes/toggle.cjs +39 -0
- package/dist/styled-system/recipes/toggle.cjs.map +1 -0
- package/dist/styled-system/recipes/toggle.js +39 -0
- package/dist/styled-system/recipes/toggle.js.map +1 -0
- package/dist/styled-system/recipes/toolbar.cjs +51 -0
- package/dist/styled-system/recipes/toolbar.cjs.map +1 -0
- package/dist/styled-system/recipes/toolbar.js +51 -0
- package/dist/styled-system/recipes/toolbar.js.map +1 -0
- package/dist/styled-system/recipes/tooltip.cjs +35 -0
- package/dist/styled-system/recipes/tooltip.cjs.map +1 -0
- package/dist/styled-system/recipes/tooltip.js +35 -0
- package/dist/styled-system/recipes/tooltip.js.map +1 -0
- package/dist/styled-system/recipes/tree-view.cjs +37 -0
- package/dist/styled-system/recipes/tree-view.cjs.map +1 -0
- package/dist/styled-system/recipes/tree-view.js +37 -0
- package/dist/styled-system/recipes/tree-view.js.map +1 -0
- package/dist/styled-system/recipes/upload.cjs +55 -0
- package/dist/styled-system/recipes/upload.cjs.map +1 -0
- package/dist/styled-system/recipes/upload.js +55 -0
- package/dist/styled-system/recipes/upload.js.map +1 -0
- package/dist/styles/theme.cjs +137 -0
- package/dist/styles/theme.cjs.map +1 -0
- package/dist/styles/theme.js +136 -0
- package/dist/styles/theme.js.map +1 -0
- package/dist/styles.css +7706 -0
- package/package.json +107 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
import { Avatar, AvatarRoot } from "@base-ui/react/avatar";
|
|
3
|
+
//#region src/components/avatar/avatar.d.ts
|
|
4
|
+
type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
5
|
+
type AvatarShape = "circle" | "rounded";
|
|
6
|
+
interface AvatarRootProps extends AvatarRoot.Props {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
shape?: AvatarShape;
|
|
9
|
+
size?: AvatarSize;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Groups an image and text fallback in a fixed-size avatar. Base UI controls
|
|
13
|
+
* the image lifecycle, so only one accessible representation is mounted at a
|
|
14
|
+
* time and the initial server render remains deterministic.
|
|
15
|
+
*/
|
|
16
|
+
declare const AvatarRoot$1: import("react").ForwardRefExoticComponent<Omit<AvatarRootProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
interface AvatarImageProps extends Omit<ComponentPropsWithoutRef<typeof Avatar.Image>, "alt"> {
|
|
18
|
+
/** Use an empty string explicitly when the image is decorative. */
|
|
19
|
+
alt: string;
|
|
20
|
+
}
|
|
21
|
+
/** The optional image layer. It is mounted by Base UI only after loading. */
|
|
22
|
+
declare const AvatarImage: import("react").ForwardRefExoticComponent<AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
23
|
+
type AvatarFallbackProps = ComponentPropsWithoutRef<typeof Avatar.Fallback>;
|
|
24
|
+
/** Textual initials or an icon shown whenever an image is unavailable. */
|
|
25
|
+
declare const AvatarFallback: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").AvatarFallbackProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
26
|
+
declare const Avatar$1: {
|
|
27
|
+
Root: import("react").ForwardRefExoticComponent<Omit<AvatarRootProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
28
|
+
Image: import("react").ForwardRefExoticComponent<AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
29
|
+
Fallback: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").AvatarFallbackProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Avatar$1 as Avatar, AvatarFallback, AvatarFallbackProps, AvatarImage, AvatarImageProps, AvatarRoot$1 as AvatarRoot, AvatarRootProps, AvatarShape, AvatarSize };
|
|
33
|
+
//# sourceMappingURL=avatar.d.cts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
2
|
+
import { Avatar, AvatarRoot } from "@base-ui/react/avatar";
|
|
3
|
+
//#region src/components/avatar/avatar.d.ts
|
|
4
|
+
type AvatarSize = "xs" | "sm" | "md" | "lg" | "xl";
|
|
5
|
+
type AvatarShape = "circle" | "rounded";
|
|
6
|
+
interface AvatarRootProps extends AvatarRoot.Props {
|
|
7
|
+
children?: ReactNode;
|
|
8
|
+
shape?: AvatarShape;
|
|
9
|
+
size?: AvatarSize;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Groups an image and text fallback in a fixed-size avatar. Base UI controls
|
|
13
|
+
* the image lifecycle, so only one accessible representation is mounted at a
|
|
14
|
+
* time and the initial server render remains deterministic.
|
|
15
|
+
*/
|
|
16
|
+
declare const AvatarRoot$1: import("react").ForwardRefExoticComponent<Omit<AvatarRootProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
17
|
+
interface AvatarImageProps extends Omit<ComponentPropsWithoutRef<typeof Avatar.Image>, "alt"> {
|
|
18
|
+
/** Use an empty string explicitly when the image is decorative. */
|
|
19
|
+
alt: string;
|
|
20
|
+
}
|
|
21
|
+
/** The optional image layer. It is mounted by Base UI only after loading. */
|
|
22
|
+
declare const AvatarImage: import("react").ForwardRefExoticComponent<AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
23
|
+
type AvatarFallbackProps = ComponentPropsWithoutRef<typeof Avatar.Fallback>;
|
|
24
|
+
/** Textual initials or an icon shown whenever an image is unavailable. */
|
|
25
|
+
declare const AvatarFallback: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").AvatarFallbackProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
26
|
+
declare const Avatar$1: {
|
|
27
|
+
Root: import("react").ForwardRefExoticComponent<Omit<AvatarRootProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
28
|
+
Image: import("react").ForwardRefExoticComponent<AvatarImageProps & import("react").RefAttributes<HTMLImageElement>>;
|
|
29
|
+
Fallback: import("react").ForwardRefExoticComponent<Omit<Omit<import("@base-ui/react").AvatarFallbackProps, "ref"> & import("react").RefAttributes<HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
30
|
+
};
|
|
31
|
+
//#endregion
|
|
32
|
+
export { Avatar$1 as Avatar, AvatarFallback, AvatarFallbackProps, AvatarImage, AvatarImageProps, AvatarRoot$1 as AvatarRoot, AvatarRootProps, AvatarShape, AvatarSize };
|
|
33
|
+
//# sourceMappingURL=avatar.d.ts.map
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { withRecipeClassName } from "../base-ui.js";
|
|
3
|
+
import { avatar } from "../../styled-system/recipes/avatar.js";
|
|
4
|
+
import { createContext, forwardRef, useContext } from "react";
|
|
5
|
+
import { jsx } from "react/jsx-runtime";
|
|
6
|
+
import { Avatar } from "@base-ui/react/avatar";
|
|
7
|
+
//#region src/components/avatar/avatar.tsx
|
|
8
|
+
const AvatarStyleContext = createContext({
|
|
9
|
+
hasAccessibleLabel: false,
|
|
10
|
+
shape: "circle",
|
|
11
|
+
size: "md"
|
|
12
|
+
});
|
|
13
|
+
function useAvatarStyleContext() {
|
|
14
|
+
return useContext(AvatarStyleContext);
|
|
15
|
+
}
|
|
16
|
+
function useAvatarStyles() {
|
|
17
|
+
const { shape, size } = useAvatarStyleContext();
|
|
18
|
+
return avatar({
|
|
19
|
+
shape,
|
|
20
|
+
size
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* Groups an image and text fallback in a fixed-size avatar. Base UI controls
|
|
25
|
+
* the image lifecycle, so only one accessible representation is mounted at a
|
|
26
|
+
* time and the initial server render remains deterministic.
|
|
27
|
+
*/
|
|
28
|
+
const AvatarRoot$1 = forwardRef(function AvatarRoot({ "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, children, className, role, shape = "circle", size = "md", ...props }, ref) {
|
|
29
|
+
const styles = avatar({
|
|
30
|
+
shape,
|
|
31
|
+
size
|
|
32
|
+
});
|
|
33
|
+
const hasAccessibleLabel = Boolean(ariaLabel || ariaLabelledBy);
|
|
34
|
+
return /* @__PURE__ */ jsx(AvatarStyleContext.Provider, {
|
|
35
|
+
value: {
|
|
36
|
+
hasAccessibleLabel,
|
|
37
|
+
shape,
|
|
38
|
+
size
|
|
39
|
+
},
|
|
40
|
+
children: /* @__PURE__ */ jsx(Avatar.Root, {
|
|
41
|
+
...props,
|
|
42
|
+
"aria-label": ariaLabel,
|
|
43
|
+
"aria-labelledby": ariaLabelledBy,
|
|
44
|
+
ref,
|
|
45
|
+
className: withRecipeClassName(styles.root, className),
|
|
46
|
+
"data-jaci-component": "avatar",
|
|
47
|
+
"data-shape": shape,
|
|
48
|
+
"data-size": size,
|
|
49
|
+
"data-slot": "avatar",
|
|
50
|
+
role: role ?? (hasAccessibleLabel ? "img" : void 0),
|
|
51
|
+
children
|
|
52
|
+
})
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/** The optional image layer. It is mounted by Base UI only after loading. */
|
|
56
|
+
const AvatarImage = forwardRef(function AvatarImage({ alt, className, ...props }, ref) {
|
|
57
|
+
const { hasAccessibleLabel } = useAvatarStyleContext();
|
|
58
|
+
return /* @__PURE__ */ jsx(Avatar.Image, {
|
|
59
|
+
...props,
|
|
60
|
+
alt: hasAccessibleLabel ? "" : alt,
|
|
61
|
+
"aria-hidden": hasAccessibleLabel || void 0,
|
|
62
|
+
ref,
|
|
63
|
+
className: withRecipeClassName(useAvatarStyles().image, className),
|
|
64
|
+
"data-slot": "avatar-image"
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
/** Textual initials or an icon shown whenever an image is unavailable. */
|
|
68
|
+
const AvatarFallback = forwardRef(function AvatarFallback({ "aria-hidden": ariaHidden, className, ...props }, ref) {
|
|
69
|
+
const { hasAccessibleLabel } = useAvatarStyleContext();
|
|
70
|
+
return /* @__PURE__ */ jsx(Avatar.Fallback, {
|
|
71
|
+
...props,
|
|
72
|
+
"aria-hidden": ariaHidden ?? (hasAccessibleLabel || void 0),
|
|
73
|
+
ref,
|
|
74
|
+
className: withRecipeClassName(useAvatarStyles().fallback, className),
|
|
75
|
+
"data-slot": "avatar-fallback"
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
const Avatar$1 = {
|
|
79
|
+
Root: AvatarRoot$1,
|
|
80
|
+
Image: AvatarImage,
|
|
81
|
+
Fallback: AvatarFallback
|
|
82
|
+
};
|
|
83
|
+
//#endregion
|
|
84
|
+
export { Avatar$1 as Avatar, AvatarFallback, AvatarImage, AvatarRoot$1 as AvatarRoot };
|
|
85
|
+
|
|
86
|
+
//# sourceMappingURL=avatar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"avatar.js","names":["AvatarRoot","BaseAvatar","Avatar"],"sources":["../../../src/components/avatar/avatar.tsx"],"sourcesContent":["\"use client\";\n\nimport { Avatar as BaseAvatar } from \"@base-ui/react/avatar\";\nimport { createContext, forwardRef, useContext } from \"react\";\nimport type { ComponentPropsWithoutRef, ReactNode } from \"react\";\nimport type { AvatarRoot as BaseAvatarRoot } from \"@base-ui/react/avatar\";\n\nimport { avatar } from \"../../styled-system/recipes\";\nimport { withRecipeClassName } from \"../base-ui\";\n\nexport type AvatarSize = \"xs\" | \"sm\" | \"md\" | \"lg\" | \"xl\";\nexport type AvatarShape = \"circle\" | \"rounded\";\n\ninterface AvatarStyleContextValue {\n hasAccessibleLabel: boolean;\n shape: AvatarShape;\n size: AvatarSize;\n}\n\nconst AvatarStyleContext = createContext<AvatarStyleContextValue>({\n hasAccessibleLabel: false,\n shape: \"circle\",\n size: \"md\",\n});\n\nfunction useAvatarStyleContext() {\n return useContext(AvatarStyleContext);\n}\n\nfunction useAvatarStyles() {\n const { shape, size } = useAvatarStyleContext();\n\n return avatar({ shape, size });\n}\n\nexport interface AvatarRootProps extends BaseAvatarRoot.Props {\n children?: ReactNode;\n shape?: AvatarShape;\n size?: AvatarSize;\n}\n\n/**\n * Groups an image and text fallback in a fixed-size avatar. Base UI controls\n * the image lifecycle, so only one accessible representation is mounted at a\n * time and the initial server render remains deterministic.\n */\nexport const AvatarRoot = forwardRef<HTMLSpanElement, AvatarRootProps>(function AvatarRoot(\n {\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n children,\n className,\n role,\n shape = \"circle\",\n size = \"md\",\n ...props\n },\n ref,\n) {\n const styles = avatar({ shape, size });\n const hasAccessibleLabel = Boolean(ariaLabel || ariaLabelledBy);\n\n return (\n <AvatarStyleContext.Provider value={{ hasAccessibleLabel, shape, size }}>\n <BaseAvatar.Root\n {...props}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledBy}\n ref={ref}\n className={withRecipeClassName(styles.root, className)}\n data-jaci-component=\"avatar\"\n data-shape={shape}\n data-size={size}\n data-slot=\"avatar\"\n role={role ?? (hasAccessibleLabel ? \"img\" : undefined)}\n >\n {children}\n </BaseAvatar.Root>\n </AvatarStyleContext.Provider>\n );\n});\n\nexport interface AvatarImageProps\n extends Omit<ComponentPropsWithoutRef<typeof BaseAvatar.Image>, \"alt\"> {\n /** Use an empty string explicitly when the image is decorative. */\n alt: string;\n}\n\n/** The optional image layer. It is mounted by Base UI only after loading. */\nexport const AvatarImage = forwardRef<HTMLImageElement, AvatarImageProps>(function AvatarImage(\n { alt, className, ...props },\n ref,\n) {\n const { hasAccessibleLabel } = useAvatarStyleContext();\n\n return (\n <BaseAvatar.Image\n {...props}\n alt={hasAccessibleLabel ? \"\" : alt}\n aria-hidden={hasAccessibleLabel || undefined}\n ref={ref}\n className={withRecipeClassName(useAvatarStyles().image, className)}\n data-slot=\"avatar-image\"\n />\n );\n});\n\nexport type AvatarFallbackProps = ComponentPropsWithoutRef<typeof BaseAvatar.Fallback>;\n\n/** Textual initials or an icon shown whenever an image is unavailable. */\nexport const AvatarFallback = forwardRef<HTMLSpanElement, AvatarFallbackProps>(\n function AvatarFallback({ \"aria-hidden\": ariaHidden, className, ...props }, ref) {\n const { hasAccessibleLabel } = useAvatarStyleContext();\n\n return (\n <BaseAvatar.Fallback\n {...props}\n aria-hidden={ariaHidden ?? (hasAccessibleLabel || undefined)}\n ref={ref}\n className={withRecipeClassName(useAvatarStyles().fallback, className)}\n data-slot=\"avatar-fallback\"\n />\n );\n },\n);\n\nexport const Avatar = {\n Root: AvatarRoot,\n Image: AvatarImage,\n Fallback: AvatarFallback,\n};\n"],"mappings":";;;;;;;AAmBA,MAAM,qBAAqB,cAAuC;CAChE,oBAAoB;CACpB,OAAO;CACP,MAAM;AACR,CAAC;AAED,SAAS,wBAAwB;CAC/B,OAAO,WAAW,kBAAkB;AACtC;AAEA,SAAS,kBAAkB;CACzB,MAAM,EAAE,OAAO,SAAS,sBAAsB;CAE9C,OAAO,OAAO;EAAE;EAAO;CAAK,CAAC;AAC/B;;;;;;AAaA,MAAaA,eAAa,WAA6C,SAAS,WAC9E,EACE,cAAc,WACd,mBAAmB,gBACnB,UACA,WACA,MACA,QAAQ,UACR,OAAO,MACP,GAAG,SAEL,KACA;CACA,MAAM,SAAS,OAAO;EAAE;EAAO;CAAK,CAAC;CACrC,MAAM,qBAAqB,QAAQ,aAAa,cAAc;CAE9D,OACE,oBAAC,mBAAmB,UAApB;EAA6B,OAAO;GAAE;GAAoB;GAAO;EAAK;YACpE,oBAACC,OAAW,MAAZ;GACE,GAAI;GACJ,cAAY;GACZ,mBAAiB;GACZ;GACL,WAAW,oBAAoB,OAAO,MAAM,SAAS;GACrD,uBAAoB;GACpB,cAAY;GACZ,aAAW;GACX,aAAU;GACV,MAAM,SAAS,qBAAqB,QAAQ,KAAA;GAE3C;EACc,CAAA;CACU,CAAA;AAEjC,CAAC;;AASD,MAAa,cAAc,WAA+C,SAAS,YACjF,EAAE,KAAK,WAAW,GAAG,SACrB,KACA;CACA,MAAM,EAAE,uBAAuB,sBAAsB;CAErD,OACE,oBAACA,OAAW,OAAZ;EACE,GAAI;EACJ,KAAK,qBAAqB,KAAK;EAC/B,eAAa,sBAAsB,KAAA;EAC9B;EACL,WAAW,oBAAoB,gBAAgB,CAAC,CAAC,OAAO,SAAS;EACjE,aAAU;CACX,CAAA;AAEL,CAAC;;AAKD,MAAa,iBAAiB,WAC5B,SAAS,eAAe,EAAE,eAAe,YAAY,WAAW,GAAG,SAAS,KAAK;CAC/E,MAAM,EAAE,uBAAuB,sBAAsB;CAErD,OACE,oBAACA,OAAW,UAAZ;EACE,GAAI;EACJ,eAAa,eAAe,sBAAsB,KAAA;EAC7C;EACL,WAAW,oBAAoB,gBAAgB,CAAC,CAAC,UAAU,SAAS;EACpE,aAAU;CACX,CAAA;AAEL,CACF;AAEA,MAAaC,WAAS;CACpB,MAAMF;CACN,OAAO;CACP,UAAU;AACZ"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Avatar, AvatarFallback, AvatarFallbackProps, AvatarImage, AvatarImageProps, AvatarRoot, AvatarRootProps, AvatarShape, AvatarSize } from "./avatar.cjs";
|
|
2
|
+
export { Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, AvatarRoot, type AvatarRootProps, type AvatarShape, type AvatarSize };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Avatar, AvatarFallback, AvatarFallbackProps, AvatarImage, AvatarImageProps, AvatarRoot, AvatarRootProps, AvatarShape, AvatarSize } from "./avatar.js";
|
|
2
|
+
export { Avatar, AvatarFallback, type AvatarFallbackProps, AvatarImage, type AvatarImageProps, AvatarRoot, type AvatarRootProps, type AvatarShape, type AvatarSize };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const require_cx = require("../styled-system/css/cx.cjs");
|
|
2
|
+
//#region src/components/base-ui.ts
|
|
3
|
+
/**
|
|
4
|
+
* Keeps Base UI's state-aware `className` API while always applying the Jaci
|
|
5
|
+
* recipe class. Consumers can still provide either a string or a callback.
|
|
6
|
+
*/
|
|
7
|
+
function withRecipeClassName(recipeClassName, className) {
|
|
8
|
+
if (typeof className === "function") return (state) => require_cx.cx(recipeClassName, className(state));
|
|
9
|
+
return require_cx.cx(recipeClassName, className);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
exports.withRecipeClassName = withRecipeClassName;
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=base-ui.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-ui.cjs","names":["cx"],"sources":["../../src/components/base-ui.ts"],"sourcesContent":["import { cx } from \"../styled-system/css\";\n\nexport type StatefulClassName<State> = string | ((state: State) => string | undefined) | undefined;\n\n/**\n * Keeps Base UI's state-aware `className` API while always applying the Jaci\n * recipe class. Consumers can still provide either a string or a callback.\n */\nexport function withRecipeClassName<State>(\n recipeClassName: string,\n className: StatefulClassName<State>,\n): StatefulClassName<State> {\n if (typeof className === \"function\") {\n return (state) => cx(recipeClassName, className(state));\n }\n\n return cx(recipeClassName, className);\n}\n"],"mappings":";;;;;;AAQA,SAAgB,oBACd,iBACA,WAC0B;CAC1B,IAAI,OAAO,cAAc,YACvB,QAAQ,UAAUA,WAAAA,GAAG,iBAAiB,UAAU,KAAK,CAAC;CAGxD,OAAOA,WAAAA,GAAG,iBAAiB,SAAS;AACtC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { cx } from "../styled-system/css/cx.js";
|
|
2
|
+
//#region src/components/base-ui.ts
|
|
3
|
+
/**
|
|
4
|
+
* Keeps Base UI's state-aware `className` API while always applying the Jaci
|
|
5
|
+
* recipe class. Consumers can still provide either a string or a callback.
|
|
6
|
+
*/
|
|
7
|
+
function withRecipeClassName(recipeClassName, className) {
|
|
8
|
+
if (typeof className === "function") return (state) => cx(recipeClassName, className(state));
|
|
9
|
+
return cx(recipeClassName, className);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { withRecipeClassName };
|
|
13
|
+
|
|
14
|
+
//# sourceMappingURL=base-ui.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"base-ui.js","names":[],"sources":["../../src/components/base-ui.ts"],"sourcesContent":["import { cx } from \"../styled-system/css\";\n\nexport type StatefulClassName<State> = string | ((state: State) => string | undefined) | undefined;\n\n/**\n * Keeps Base UI's state-aware `className` API while always applying the Jaci\n * recipe class. Consumers can still provide either a string or a callback.\n */\nexport function withRecipeClassName<State>(\n recipeClassName: string,\n className: StatefulClassName<State>,\n): StatefulClassName<State> {\n if (typeof className === \"function\") {\n return (state) => cx(recipeClassName, className(state));\n }\n\n return cx(recipeClassName, className);\n}\n"],"mappings":";;;;;;AAQA,SAAgB,oBACd,iBACA,WAC0B;CAC1B,IAAI,OAAO,cAAc,YACvB,QAAQ,UAAU,GAAG,iBAAiB,UAAU,KAAK,CAAC;CAGxD,OAAO,GAAG,iBAAiB,SAAS;AACtC"}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
const require_cx = require("../../styled-system/css/cx.cjs");
|
|
2
|
+
const require_breadcrumbs = require("../../styled-system/recipes/breadcrumbs.cjs");
|
|
3
|
+
let react = require("react");
|
|
4
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
5
|
+
//#region src/components/breadcrumbs/breadcrumbs.tsx
|
|
6
|
+
/** A landmark navigation region for a hierarchical path. */
|
|
7
|
+
const BreadcrumbsRoot = (0, react.forwardRef)(function BreadcrumbsRoot({ "aria-label": ariaLabel, className, ...props }, ref) {
|
|
8
|
+
const styles = require_breadcrumbs.breadcrumbs();
|
|
9
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("nav", {
|
|
10
|
+
...props,
|
|
11
|
+
"aria-label": ariaLabel ?? "Breadcrumb",
|
|
12
|
+
ref,
|
|
13
|
+
className: require_cx.cx(styles.root, className),
|
|
14
|
+
"data-jaci-component": "breadcrumbs",
|
|
15
|
+
"data-slot": "breadcrumbs"
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
/** Ordered list containing links, separators, and the current page. */
|
|
19
|
+
const BreadcrumbsList = (0, react.forwardRef)(function BreadcrumbsList({ className, ...props }, ref) {
|
|
20
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("ol", {
|
|
21
|
+
...props,
|
|
22
|
+
ref,
|
|
23
|
+
className: require_cx.cx(require_breadcrumbs.breadcrumbs().list, className),
|
|
24
|
+
"data-slot": "breadcrumbs-list"
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
/** A semantic list item that wraps one breadcrumb destination. */
|
|
28
|
+
const BreadcrumbsItem = (0, react.forwardRef)(function BreadcrumbsItem({ className, ...props }, ref) {
|
|
29
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
|
|
30
|
+
...props,
|
|
31
|
+
ref,
|
|
32
|
+
className: require_cx.cx(require_breadcrumbs.breadcrumbs().item, className),
|
|
33
|
+
"data-slot": "breadcrumbs-item"
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
/** A link to an ancestor in the current path. */
|
|
37
|
+
const BreadcrumbsLink = (0, react.forwardRef)(function BreadcrumbsLink({ className, ...props }, ref) {
|
|
38
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("a", {
|
|
39
|
+
...props,
|
|
40
|
+
ref,
|
|
41
|
+
className: require_cx.cx(require_breadcrumbs.breadcrumbs().link, className),
|
|
42
|
+
"data-slot": "breadcrumbs-link"
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
/** The final, non-link breadcrumb that identifies the current page. */
|
|
46
|
+
const BreadcrumbsCurrent = (0, react.forwardRef)(function BreadcrumbsCurrent({ "aria-current": ariaCurrent, className, ...props }, ref) {
|
|
47
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
48
|
+
...props,
|
|
49
|
+
"aria-current": ariaCurrent ?? "page",
|
|
50
|
+
ref,
|
|
51
|
+
className: require_cx.cx(require_breadcrumbs.breadcrumbs().current, className),
|
|
52
|
+
"data-slot": "breadcrumbs-current"
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/** A decorative separator. It is excluded from the ordered-list semantics. */
|
|
56
|
+
const BreadcrumbsSeparator = (0, react.forwardRef)(function BreadcrumbsSeparator({ children = "/", className, ...props }, ref) {
|
|
57
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("li", {
|
|
58
|
+
...props,
|
|
59
|
+
"aria-hidden": "true",
|
|
60
|
+
ref,
|
|
61
|
+
role: "presentation",
|
|
62
|
+
className: require_cx.cx(require_breadcrumbs.breadcrumbs().separator, className),
|
|
63
|
+
"data-slot": "breadcrumbs-separator",
|
|
64
|
+
children
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
const Breadcrumbs = {
|
|
68
|
+
Root: BreadcrumbsRoot,
|
|
69
|
+
List: BreadcrumbsList,
|
|
70
|
+
Item: BreadcrumbsItem,
|
|
71
|
+
Link: BreadcrumbsLink,
|
|
72
|
+
Current: BreadcrumbsCurrent,
|
|
73
|
+
Separator: BreadcrumbsSeparator
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
exports.Breadcrumbs = Breadcrumbs;
|
|
77
|
+
exports.BreadcrumbsCurrent = BreadcrumbsCurrent;
|
|
78
|
+
exports.BreadcrumbsItem = BreadcrumbsItem;
|
|
79
|
+
exports.BreadcrumbsLink = BreadcrumbsLink;
|
|
80
|
+
exports.BreadcrumbsList = BreadcrumbsList;
|
|
81
|
+
exports.BreadcrumbsRoot = BreadcrumbsRoot;
|
|
82
|
+
exports.BreadcrumbsSeparator = BreadcrumbsSeparator;
|
|
83
|
+
|
|
84
|
+
//# sourceMappingURL=breadcrumbs.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbs.cjs","names":["breadcrumbs","cx"],"sources":["../../../src/components/breadcrumbs/breadcrumbs.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type { ComponentPropsWithoutRef } from \"react\";\n\nimport { cx } from \"../../styled-system/css\";\nimport { breadcrumbs } from \"../../styled-system/recipes\";\n\nexport type BreadcrumbsRootProps = ComponentPropsWithoutRef<\"nav\">;\n\n/** A landmark navigation region for a hierarchical path. */\nexport const BreadcrumbsRoot = forwardRef<HTMLElement, BreadcrumbsRootProps>(\n function BreadcrumbsRoot({ \"aria-label\": ariaLabel, className, ...props }, ref) {\n const styles = breadcrumbs();\n\n return (\n <nav\n {...props}\n aria-label={ariaLabel ?? \"Breadcrumb\"}\n ref={ref}\n className={cx(styles.root, className)}\n data-jaci-component=\"breadcrumbs\"\n data-slot=\"breadcrumbs\"\n />\n );\n },\n);\n\nexport type BreadcrumbsListProps = ComponentPropsWithoutRef<\"ol\">;\n\n/** Ordered list containing links, separators, and the current page. */\nexport const BreadcrumbsList = forwardRef<HTMLOListElement, BreadcrumbsListProps>(\n function BreadcrumbsList({ className, ...props }, ref) {\n return (\n <ol\n {...props}\n ref={ref}\n className={cx(breadcrumbs().list, className)}\n data-slot=\"breadcrumbs-list\"\n />\n );\n },\n);\n\nexport type BreadcrumbsItemProps = ComponentPropsWithoutRef<\"li\">;\n\n/** A semantic list item that wraps one breadcrumb destination. */\nexport const BreadcrumbsItem = forwardRef<HTMLLIElement, BreadcrumbsItemProps>(\n function BreadcrumbsItem({ className, ...props }, ref) {\n return (\n <li\n {...props}\n ref={ref}\n className={cx(breadcrumbs().item, className)}\n data-slot=\"breadcrumbs-item\"\n />\n );\n },\n);\n\nexport type BreadcrumbsLinkProps = ComponentPropsWithoutRef<\"a\">;\n\n/** A link to an ancestor in the current path. */\nexport const BreadcrumbsLink = forwardRef<HTMLAnchorElement, BreadcrumbsLinkProps>(\n function BreadcrumbsLink({ className, ...props }, ref) {\n return (\n <a\n {...props}\n ref={ref}\n className={cx(breadcrumbs().link, className)}\n data-slot=\"breadcrumbs-link\"\n />\n );\n },\n);\n\nexport type BreadcrumbsCurrentProps = ComponentPropsWithoutRef<\"span\">;\n\n/** The final, non-link breadcrumb that identifies the current page. */\nexport const BreadcrumbsCurrent = forwardRef<HTMLSpanElement, BreadcrumbsCurrentProps>(\n function BreadcrumbsCurrent({ \"aria-current\": ariaCurrent, className, ...props }, ref) {\n return (\n <span\n {...props}\n aria-current={ariaCurrent ?? \"page\"}\n ref={ref}\n className={cx(breadcrumbs().current, className)}\n data-slot=\"breadcrumbs-current\"\n />\n );\n },\n);\n\nexport type BreadcrumbsSeparatorProps = ComponentPropsWithoutRef<\"li\">;\n\n/** A decorative separator. It is excluded from the ordered-list semantics. */\nexport const BreadcrumbsSeparator = forwardRef<HTMLLIElement, BreadcrumbsSeparatorProps>(\n function BreadcrumbsSeparator({ children = \"/\", className, ...props }, ref) {\n return (\n <li\n {...props}\n aria-hidden=\"true\"\n ref={ref}\n role=\"presentation\"\n className={cx(breadcrumbs().separator, className)}\n data-slot=\"breadcrumbs-separator\"\n >\n {children}\n </li>\n );\n },\n);\n\nexport const Breadcrumbs = {\n Root: BreadcrumbsRoot,\n List: BreadcrumbsList,\n Item: BreadcrumbsItem,\n Link: BreadcrumbsLink,\n Current: BreadcrumbsCurrent,\n Separator: BreadcrumbsSeparator,\n};\n"],"mappings":";;;;;;AASA,MAAa,mBAAA,GAAA,MAAA,WAAA,CACX,SAAS,gBAAgB,EAAE,cAAc,WAAW,WAAW,GAAG,SAAS,KAAK;CAC9E,MAAM,SAASA,oBAAAA,YAAY;CAE3B,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,OAAD;EACE,GAAI;EACJ,cAAY,aAAa;EACpB;EACL,WAAWC,WAAAA,GAAG,OAAO,MAAM,SAAS;EACpC,uBAAoB;EACpB,aAAU;CACX,CAAA;AAEL,CACF;;AAKA,MAAa,mBAAA,GAAA,MAAA,WAAA,CACX,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAS,KAAK;CACrD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;EACE,GAAI;EACC;EACL,WAAWA,WAAAA,GAAGD,oBAAAA,YAAY,CAAC,CAAC,MAAM,SAAS;EAC3C,aAAU;CACX,CAAA;AAEL,CACF;;AAKA,MAAa,mBAAA,GAAA,MAAA,WAAA,CACX,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAS,KAAK;CACrD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;EACE,GAAI;EACC;EACL,WAAWC,WAAAA,GAAGD,oBAAAA,YAAY,CAAC,CAAC,MAAM,SAAS;EAC3C,aAAU;CACX,CAAA;AAEL,CACF;;AAKA,MAAa,mBAAA,GAAA,MAAA,WAAA,CACX,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAS,KAAK;CACrD,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,KAAD;EACE,GAAI;EACC;EACL,WAAWC,WAAAA,GAAGD,oBAAAA,YAAY,CAAC,CAAC,MAAM,SAAS;EAC3C,aAAU;CACX,CAAA;AAEL,CACF;;AAKA,MAAa,sBAAA,GAAA,MAAA,WAAA,CACX,SAAS,mBAAmB,EAAE,gBAAgB,aAAa,WAAW,GAAG,SAAS,KAAK;CACrF,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,QAAD;EACE,GAAI;EACJ,gBAAc,eAAe;EACxB;EACL,WAAWC,WAAAA,GAAGD,oBAAAA,YAAY,CAAC,CAAC,SAAS,SAAS;EAC9C,aAAU;CACX,CAAA;AAEL,CACF;;AAKA,MAAa,wBAAA,GAAA,MAAA,WAAA,CACX,SAAS,qBAAqB,EAAE,WAAW,KAAK,WAAW,GAAG,SAAS,KAAK;CAC1E,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,MAAD;EACE,GAAI;EACJ,eAAY;EACP;EACL,MAAK;EACL,WAAWC,WAAAA,GAAGD,oBAAAA,YAAY,CAAC,CAAC,WAAW,SAAS;EAChD,aAAU;EAET;CACC,CAAA;AAER,CACF;AAEA,MAAa,cAAc;CACzB,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,SAAS;CACT,WAAW;AACb"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
//#region src/components/breadcrumbs/breadcrumbs.d.ts
|
|
3
|
+
type BreadcrumbsRootProps = ComponentPropsWithoutRef<"nav">;
|
|
4
|
+
/** A landmark navigation region for a hierarchical path. */
|
|
5
|
+
declare const BreadcrumbsRoot: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
6
|
+
type BreadcrumbsListProps = ComponentPropsWithoutRef<"ol">;
|
|
7
|
+
/** Ordered list containing links, separators, and the current page. */
|
|
8
|
+
declare const BreadcrumbsList: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & import("react").RefAttributes<HTMLOListElement>>;
|
|
9
|
+
type BreadcrumbsItemProps = ComponentPropsWithoutRef<"li">;
|
|
10
|
+
/** A semantic list item that wraps one breadcrumb destination. */
|
|
11
|
+
declare const BreadcrumbsItem: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
12
|
+
type BreadcrumbsLinkProps = ComponentPropsWithoutRef<"a">;
|
|
13
|
+
/** A link to an ancestor in the current path. */
|
|
14
|
+
declare const BreadcrumbsLink: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
15
|
+
type BreadcrumbsCurrentProps = ComponentPropsWithoutRef<"span">;
|
|
16
|
+
/** The final, non-link breadcrumb that identifies the current page. */
|
|
17
|
+
declare const BreadcrumbsCurrent: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
18
|
+
type BreadcrumbsSeparatorProps = ComponentPropsWithoutRef<"li">;
|
|
19
|
+
/** A decorative separator. It is excluded from the ordered-list semantics. */
|
|
20
|
+
declare const BreadcrumbsSeparator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
21
|
+
declare const Breadcrumbs: {
|
|
22
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
23
|
+
List: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & import("react").RefAttributes<HTMLOListElement>>;
|
|
24
|
+
Item: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
25
|
+
Link: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
26
|
+
Current: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
27
|
+
Separator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { Breadcrumbs, BreadcrumbsCurrent, BreadcrumbsCurrentProps, BreadcrumbsItem, BreadcrumbsItemProps, BreadcrumbsLink, BreadcrumbsLinkProps, BreadcrumbsList, BreadcrumbsListProps, BreadcrumbsRoot, BreadcrumbsRootProps, BreadcrumbsSeparator, BreadcrumbsSeparatorProps };
|
|
31
|
+
//# sourceMappingURL=breadcrumbs.d.cts.map
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef } from "react";
|
|
2
|
+
//#region src/components/breadcrumbs/breadcrumbs.d.ts
|
|
3
|
+
type BreadcrumbsRootProps = ComponentPropsWithoutRef<"nav">;
|
|
4
|
+
/** A landmark navigation region for a hierarchical path. */
|
|
5
|
+
declare const BreadcrumbsRoot: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
6
|
+
type BreadcrumbsListProps = ComponentPropsWithoutRef<"ol">;
|
|
7
|
+
/** Ordered list containing links, separators, and the current page. */
|
|
8
|
+
declare const BreadcrumbsList: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & import("react").RefAttributes<HTMLOListElement>>;
|
|
9
|
+
type BreadcrumbsItemProps = ComponentPropsWithoutRef<"li">;
|
|
10
|
+
/** A semantic list item that wraps one breadcrumb destination. */
|
|
11
|
+
declare const BreadcrumbsItem: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
12
|
+
type BreadcrumbsLinkProps = ComponentPropsWithoutRef<"a">;
|
|
13
|
+
/** A link to an ancestor in the current path. */
|
|
14
|
+
declare const BreadcrumbsLink: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
15
|
+
type BreadcrumbsCurrentProps = ComponentPropsWithoutRef<"span">;
|
|
16
|
+
/** The final, non-link breadcrumb that identifies the current page. */
|
|
17
|
+
declare const BreadcrumbsCurrent: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
18
|
+
type BreadcrumbsSeparatorProps = ComponentPropsWithoutRef<"li">;
|
|
19
|
+
/** A decorative separator. It is excluded from the ordered-list semantics. */
|
|
20
|
+
declare const BreadcrumbsSeparator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
21
|
+
declare const Breadcrumbs: {
|
|
22
|
+
Root: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLElement>, HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
|
|
23
|
+
List: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").OlHTMLAttributes<HTMLOListElement>, HTMLOListElement>, "ref"> & import("react").RefAttributes<HTMLOListElement>>;
|
|
24
|
+
Item: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
25
|
+
Link: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
26
|
+
Current: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & import("react").RefAttributes<HTMLSpanElement>>;
|
|
27
|
+
Separator: import("react").ForwardRefExoticComponent<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "ref"> & import("react").RefAttributes<HTMLLIElement>>;
|
|
28
|
+
};
|
|
29
|
+
//#endregion
|
|
30
|
+
export { Breadcrumbs, BreadcrumbsCurrent, BreadcrumbsCurrentProps, BreadcrumbsItem, BreadcrumbsItemProps, BreadcrumbsLink, BreadcrumbsLinkProps, BreadcrumbsList, BreadcrumbsListProps, BreadcrumbsRoot, BreadcrumbsRootProps, BreadcrumbsSeparator, BreadcrumbsSeparatorProps };
|
|
31
|
+
//# sourceMappingURL=breadcrumbs.d.ts.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { cx } from "../../styled-system/css/cx.js";
|
|
2
|
+
import { breadcrumbs } from "../../styled-system/recipes/breadcrumbs.js";
|
|
3
|
+
import { forwardRef } from "react";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/breadcrumbs/breadcrumbs.tsx
|
|
6
|
+
/** A landmark navigation region for a hierarchical path. */
|
|
7
|
+
const BreadcrumbsRoot = forwardRef(function BreadcrumbsRoot({ "aria-label": ariaLabel, className, ...props }, ref) {
|
|
8
|
+
const styles = breadcrumbs();
|
|
9
|
+
return /* @__PURE__ */ jsx("nav", {
|
|
10
|
+
...props,
|
|
11
|
+
"aria-label": ariaLabel ?? "Breadcrumb",
|
|
12
|
+
ref,
|
|
13
|
+
className: cx(styles.root, className),
|
|
14
|
+
"data-jaci-component": "breadcrumbs",
|
|
15
|
+
"data-slot": "breadcrumbs"
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
/** Ordered list containing links, separators, and the current page. */
|
|
19
|
+
const BreadcrumbsList = forwardRef(function BreadcrumbsList({ className, ...props }, ref) {
|
|
20
|
+
return /* @__PURE__ */ jsx("ol", {
|
|
21
|
+
...props,
|
|
22
|
+
ref,
|
|
23
|
+
className: cx(breadcrumbs().list, className),
|
|
24
|
+
"data-slot": "breadcrumbs-list"
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
/** A semantic list item that wraps one breadcrumb destination. */
|
|
28
|
+
const BreadcrumbsItem = forwardRef(function BreadcrumbsItem({ className, ...props }, ref) {
|
|
29
|
+
return /* @__PURE__ */ jsx("li", {
|
|
30
|
+
...props,
|
|
31
|
+
ref,
|
|
32
|
+
className: cx(breadcrumbs().item, className),
|
|
33
|
+
"data-slot": "breadcrumbs-item"
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
/** A link to an ancestor in the current path. */
|
|
37
|
+
const BreadcrumbsLink = forwardRef(function BreadcrumbsLink({ className, ...props }, ref) {
|
|
38
|
+
return /* @__PURE__ */ jsx("a", {
|
|
39
|
+
...props,
|
|
40
|
+
ref,
|
|
41
|
+
className: cx(breadcrumbs().link, className),
|
|
42
|
+
"data-slot": "breadcrumbs-link"
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
/** The final, non-link breadcrumb that identifies the current page. */
|
|
46
|
+
const BreadcrumbsCurrent = forwardRef(function BreadcrumbsCurrent({ "aria-current": ariaCurrent, className, ...props }, ref) {
|
|
47
|
+
return /* @__PURE__ */ jsx("span", {
|
|
48
|
+
...props,
|
|
49
|
+
"aria-current": ariaCurrent ?? "page",
|
|
50
|
+
ref,
|
|
51
|
+
className: cx(breadcrumbs().current, className),
|
|
52
|
+
"data-slot": "breadcrumbs-current"
|
|
53
|
+
});
|
|
54
|
+
});
|
|
55
|
+
/** A decorative separator. It is excluded from the ordered-list semantics. */
|
|
56
|
+
const BreadcrumbsSeparator = forwardRef(function BreadcrumbsSeparator({ children = "/", className, ...props }, ref) {
|
|
57
|
+
return /* @__PURE__ */ jsx("li", {
|
|
58
|
+
...props,
|
|
59
|
+
"aria-hidden": "true",
|
|
60
|
+
ref,
|
|
61
|
+
role: "presentation",
|
|
62
|
+
className: cx(breadcrumbs().separator, className),
|
|
63
|
+
"data-slot": "breadcrumbs-separator",
|
|
64
|
+
children
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
const Breadcrumbs = {
|
|
68
|
+
Root: BreadcrumbsRoot,
|
|
69
|
+
List: BreadcrumbsList,
|
|
70
|
+
Item: BreadcrumbsItem,
|
|
71
|
+
Link: BreadcrumbsLink,
|
|
72
|
+
Current: BreadcrumbsCurrent,
|
|
73
|
+
Separator: BreadcrumbsSeparator
|
|
74
|
+
};
|
|
75
|
+
//#endregion
|
|
76
|
+
export { Breadcrumbs, BreadcrumbsCurrent, BreadcrumbsItem, BreadcrumbsLink, BreadcrumbsList, BreadcrumbsRoot, BreadcrumbsSeparator };
|
|
77
|
+
|
|
78
|
+
//# sourceMappingURL=breadcrumbs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"breadcrumbs.js","names":[],"sources":["../../../src/components/breadcrumbs/breadcrumbs.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\nimport type { ComponentPropsWithoutRef } from \"react\";\n\nimport { cx } from \"../../styled-system/css\";\nimport { breadcrumbs } from \"../../styled-system/recipes\";\n\nexport type BreadcrumbsRootProps = ComponentPropsWithoutRef<\"nav\">;\n\n/** A landmark navigation region for a hierarchical path. */\nexport const BreadcrumbsRoot = forwardRef<HTMLElement, BreadcrumbsRootProps>(\n function BreadcrumbsRoot({ \"aria-label\": ariaLabel, className, ...props }, ref) {\n const styles = breadcrumbs();\n\n return (\n <nav\n {...props}\n aria-label={ariaLabel ?? \"Breadcrumb\"}\n ref={ref}\n className={cx(styles.root, className)}\n data-jaci-component=\"breadcrumbs\"\n data-slot=\"breadcrumbs\"\n />\n );\n },\n);\n\nexport type BreadcrumbsListProps = ComponentPropsWithoutRef<\"ol\">;\n\n/** Ordered list containing links, separators, and the current page. */\nexport const BreadcrumbsList = forwardRef<HTMLOListElement, BreadcrumbsListProps>(\n function BreadcrumbsList({ className, ...props }, ref) {\n return (\n <ol\n {...props}\n ref={ref}\n className={cx(breadcrumbs().list, className)}\n data-slot=\"breadcrumbs-list\"\n />\n );\n },\n);\n\nexport type BreadcrumbsItemProps = ComponentPropsWithoutRef<\"li\">;\n\n/** A semantic list item that wraps one breadcrumb destination. */\nexport const BreadcrumbsItem = forwardRef<HTMLLIElement, BreadcrumbsItemProps>(\n function BreadcrumbsItem({ className, ...props }, ref) {\n return (\n <li\n {...props}\n ref={ref}\n className={cx(breadcrumbs().item, className)}\n data-slot=\"breadcrumbs-item\"\n />\n );\n },\n);\n\nexport type BreadcrumbsLinkProps = ComponentPropsWithoutRef<\"a\">;\n\n/** A link to an ancestor in the current path. */\nexport const BreadcrumbsLink = forwardRef<HTMLAnchorElement, BreadcrumbsLinkProps>(\n function BreadcrumbsLink({ className, ...props }, ref) {\n return (\n <a\n {...props}\n ref={ref}\n className={cx(breadcrumbs().link, className)}\n data-slot=\"breadcrumbs-link\"\n />\n );\n },\n);\n\nexport type BreadcrumbsCurrentProps = ComponentPropsWithoutRef<\"span\">;\n\n/** The final, non-link breadcrumb that identifies the current page. */\nexport const BreadcrumbsCurrent = forwardRef<HTMLSpanElement, BreadcrumbsCurrentProps>(\n function BreadcrumbsCurrent({ \"aria-current\": ariaCurrent, className, ...props }, ref) {\n return (\n <span\n {...props}\n aria-current={ariaCurrent ?? \"page\"}\n ref={ref}\n className={cx(breadcrumbs().current, className)}\n data-slot=\"breadcrumbs-current\"\n />\n );\n },\n);\n\nexport type BreadcrumbsSeparatorProps = ComponentPropsWithoutRef<\"li\">;\n\n/** A decorative separator. It is excluded from the ordered-list semantics. */\nexport const BreadcrumbsSeparator = forwardRef<HTMLLIElement, BreadcrumbsSeparatorProps>(\n function BreadcrumbsSeparator({ children = \"/\", className, ...props }, ref) {\n return (\n <li\n {...props}\n aria-hidden=\"true\"\n ref={ref}\n role=\"presentation\"\n className={cx(breadcrumbs().separator, className)}\n data-slot=\"breadcrumbs-separator\"\n >\n {children}\n </li>\n );\n },\n);\n\nexport const Breadcrumbs = {\n Root: BreadcrumbsRoot,\n List: BreadcrumbsList,\n Item: BreadcrumbsItem,\n Link: BreadcrumbsLink,\n Current: BreadcrumbsCurrent,\n Separator: BreadcrumbsSeparator,\n};\n"],"mappings":";;;;;;AASA,MAAa,kBAAkB,WAC7B,SAAS,gBAAgB,EAAE,cAAc,WAAW,WAAW,GAAG,SAAS,KAAK;CAC9E,MAAM,SAAS,YAAY;CAE3B,OACE,oBAAC,OAAD;EACE,GAAI;EACJ,cAAY,aAAa;EACpB;EACL,WAAW,GAAG,OAAO,MAAM,SAAS;EACpC,uBAAoB;EACpB,aAAU;CACX,CAAA;AAEL,CACF;;AAKA,MAAa,kBAAkB,WAC7B,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAS,KAAK;CACrD,OACE,oBAAC,MAAD;EACE,GAAI;EACC;EACL,WAAW,GAAG,YAAY,CAAC,CAAC,MAAM,SAAS;EAC3C,aAAU;CACX,CAAA;AAEL,CACF;;AAKA,MAAa,kBAAkB,WAC7B,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAS,KAAK;CACrD,OACE,oBAAC,MAAD;EACE,GAAI;EACC;EACL,WAAW,GAAG,YAAY,CAAC,CAAC,MAAM,SAAS;EAC3C,aAAU;CACX,CAAA;AAEL,CACF;;AAKA,MAAa,kBAAkB,WAC7B,SAAS,gBAAgB,EAAE,WAAW,GAAG,SAAS,KAAK;CACrD,OACE,oBAAC,KAAD;EACE,GAAI;EACC;EACL,WAAW,GAAG,YAAY,CAAC,CAAC,MAAM,SAAS;EAC3C,aAAU;CACX,CAAA;AAEL,CACF;;AAKA,MAAa,qBAAqB,WAChC,SAAS,mBAAmB,EAAE,gBAAgB,aAAa,WAAW,GAAG,SAAS,KAAK;CACrF,OACE,oBAAC,QAAD;EACE,GAAI;EACJ,gBAAc,eAAe;EACxB;EACL,WAAW,GAAG,YAAY,CAAC,CAAC,SAAS,SAAS;EAC9C,aAAU;CACX,CAAA;AAEL,CACF;;AAKA,MAAa,uBAAuB,WAClC,SAAS,qBAAqB,EAAE,WAAW,KAAK,WAAW,GAAG,SAAS,KAAK;CAC1E,OACE,oBAAC,MAAD;EACE,GAAI;EACJ,eAAY;EACP;EACL,MAAK;EACL,WAAW,GAAG,YAAY,CAAC,CAAC,WAAW,SAAS;EAChD,aAAU;EAET;CACC,CAAA;AAER,CACF;AAEA,MAAa,cAAc;CACzB,MAAM;CACN,MAAM;CACN,MAAM;CACN,MAAM;CACN,SAAS;CACT,WAAW;AACb"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Breadcrumbs, BreadcrumbsCurrent, BreadcrumbsCurrentProps, BreadcrumbsItem, BreadcrumbsItemProps, BreadcrumbsLink, BreadcrumbsLinkProps, BreadcrumbsList, BreadcrumbsListProps, BreadcrumbsRoot, BreadcrumbsRootProps, BreadcrumbsSeparator, BreadcrumbsSeparatorProps } from "./breadcrumbs.cjs";
|
|
2
|
+
export { Breadcrumbs, BreadcrumbsCurrent, type BreadcrumbsCurrentProps, BreadcrumbsItem, type BreadcrumbsItemProps, BreadcrumbsLink, type BreadcrumbsLinkProps, BreadcrumbsList, type BreadcrumbsListProps, BreadcrumbsRoot, type BreadcrumbsRootProps, BreadcrumbsSeparator, type BreadcrumbsSeparatorProps };
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { Breadcrumbs, BreadcrumbsCurrent, BreadcrumbsCurrentProps, BreadcrumbsItem, BreadcrumbsItemProps, BreadcrumbsLink, BreadcrumbsLinkProps, BreadcrumbsList, BreadcrumbsListProps, BreadcrumbsRoot, BreadcrumbsRootProps, BreadcrumbsSeparator, BreadcrumbsSeparatorProps } from "./breadcrumbs.js";
|
|
2
|
+
export { Breadcrumbs, BreadcrumbsCurrent, type BreadcrumbsCurrentProps, BreadcrumbsItem, type BreadcrumbsItemProps, BreadcrumbsLink, type BreadcrumbsLinkProps, BreadcrumbsList, type BreadcrumbsListProps, BreadcrumbsRoot, type BreadcrumbsRootProps, BreadcrumbsSeparator, type BreadcrumbsSeparatorProps };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const require_cx = require("../../styled-system/css/cx.cjs");
|
|
3
|
+
const require_button = require("../../styled-system/recipes/button.cjs");
|
|
4
|
+
const require_index = require("../layout/index.cjs");
|
|
5
|
+
let react = require("react");
|
|
6
|
+
let react_jsx_runtime = require("react/jsx-runtime");
|
|
7
|
+
//#region src/components/button/button.tsx
|
|
8
|
+
function content(children, loading, startIcon, endIcon) {
|
|
9
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
10
|
+
loading ? /* @__PURE__ */ (0, react_jsx_runtime.jsx)(require_index.Spinner, {
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
label: "",
|
|
13
|
+
size: "sm"
|
|
14
|
+
}) : startIcon,
|
|
15
|
+
children,
|
|
16
|
+
!loading ? endIcon : void 0
|
|
17
|
+
] });
|
|
18
|
+
}
|
|
19
|
+
const Button = (0, react.forwardRef)(function Button({ children, className, variant = "outline", size = "md", fullWidth = false, loading = false, startIcon, endIcon, disabled, render, type = "button", ...props }, ref) {
|
|
20
|
+
const buttonClassName = require_cx.cx(require_button.button({
|
|
21
|
+
variant,
|
|
22
|
+
size,
|
|
23
|
+
fullWidth
|
|
24
|
+
}), className);
|
|
25
|
+
const childrenWithIcons = content(children, loading, startIcon, endIcon);
|
|
26
|
+
if (render) {
|
|
27
|
+
const renderedProps = render.props;
|
|
28
|
+
return (0, react.cloneElement)(render, {
|
|
29
|
+
...props,
|
|
30
|
+
"aria-busy": loading || void 0,
|
|
31
|
+
"aria-disabled": disabled || loading || void 0,
|
|
32
|
+
className: require_cx.cx(buttonClassName, renderedProps.className),
|
|
33
|
+
"data-jaci-component": "button",
|
|
34
|
+
"data-slot": "button",
|
|
35
|
+
children: childrenWithIcons,
|
|
36
|
+
onClick: disabled || loading ? void 0 : renderedProps.onClick
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("button", {
|
|
40
|
+
...props,
|
|
41
|
+
"aria-busy": loading || void 0,
|
|
42
|
+
className: buttonClassName,
|
|
43
|
+
"data-jaci-component": "button",
|
|
44
|
+
"data-slot": "button",
|
|
45
|
+
disabled: disabled || loading,
|
|
46
|
+
ref,
|
|
47
|
+
type,
|
|
48
|
+
children: childrenWithIcons
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
//#endregion
|
|
52
|
+
exports.Button = Button;
|
|
53
|
+
|
|
54
|
+
//# sourceMappingURL=button.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.cjs","names":["Spinner","cx","button"],"sources":["../../../src/components/button/button.tsx"],"sourcesContent":["\"use client\";\n\nimport { cloneElement, forwardRef } from \"react\";\nimport type { ComponentPropsWithoutRef, MouseEventHandler, ReactElement, ReactNode } from \"react\";\n\nimport { cx } from \"../../styled-system/css\";\nimport { button } from \"../../styled-system/recipes\";\nimport { Spinner } from \"../layout\";\n\ntype RenderableButtonProps = Record<string, unknown> & {\n children?: ReactNode | undefined;\n className?: string | undefined;\n onClick?: MouseEventHandler<HTMLElement> | undefined;\n};\n\nexport interface ButtonProps\n extends Omit<ComponentPropsWithoutRef<\"button\">, \"color\" | \"children\"> {\n children?: ReactNode;\n variant?: \"outline\" | \"solid\" | \"ghost\" | \"danger\";\n size?: \"sm\" | \"md\" | \"lg\";\n fullWidth?: boolean;\n loading?: boolean;\n startIcon?: ReactNode;\n endIcon?: ReactNode;\n render?: ReactElement<RenderableButtonProps>;\n}\n\nfunction content(children: ReactNode, loading: boolean, startIcon: ReactNode, endIcon: ReactNode) {\n return (\n <>\n {loading ? <Spinner aria-hidden=\"true\" label=\"\" size=\"sm\" /> : startIcon}\n {children}\n {!loading ? endIcon : undefined}\n </>\n );\n}\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(function Button(\n {\n children,\n className,\n variant = \"outline\",\n size = \"md\",\n fullWidth = false,\n loading = false,\n startIcon,\n endIcon,\n disabled,\n render,\n type = \"button\",\n ...props\n },\n ref,\n) {\n const buttonClassName = cx(button({ variant, size, fullWidth }), className);\n const childrenWithIcons = content(children, loading, startIcon, endIcon);\n\n if (render) {\n const renderedProps = render.props as {\n className?: string;\n children?: ReactNode;\n onClick?: MouseEventHandler<HTMLElement>;\n };\n\n return cloneElement(render, {\n ...props,\n \"aria-busy\": loading || undefined,\n \"aria-disabled\": disabled || loading || undefined,\n className: cx(buttonClassName, renderedProps.className),\n \"data-jaci-component\": \"button\",\n \"data-slot\": \"button\",\n children: childrenWithIcons,\n onClick: disabled || loading ? undefined : renderedProps.onClick,\n });\n }\n\n return (\n <button\n {...props}\n aria-busy={loading || undefined}\n className={buttonClassName}\n data-jaci-component=\"button\"\n data-slot=\"button\"\n disabled={disabled || loading}\n ref={ref}\n type={type}\n >\n {childrenWithIcons}\n </button>\n );\n});\n"],"mappings":";;;;;;;AA2BA,SAAS,QAAQ,UAAqB,SAAkB,WAAsB,SAAoB;CAChG,OACE,iBAAA,GAAA,kBAAA,KAAA,CAAA,kBAAA,UAAA,EAAA,UAAA;EACG,UAAU,iBAAA,GAAA,kBAAA,IAAA,CAACA,cAAAA,SAAD;GAAS,eAAY;GAAO,OAAM;GAAG,MAAK;EAAM,CAAA,IAAI;EAC9D;EACA,CAAC,UAAU,UAAU,KAAA;CACtB,EAAA,CAAA;AAEN;AAEA,MAAa,UAAA,GAAA,MAAA,WAAA,CAAoD,SAAS,OACxE,EACE,UACA,WACA,UAAU,WACV,OAAO,MACP,YAAY,OACZ,UAAU,OACV,WACA,SACA,UACA,QACA,OAAO,UACP,GAAG,SAEL,KACA;CACA,MAAM,kBAAkBC,WAAAA,GAAGC,eAAAA,OAAO;EAAE;EAAS;EAAM;CAAU,CAAC,GAAG,SAAS;CAC1E,MAAM,oBAAoB,QAAQ,UAAU,SAAS,WAAW,OAAO;CAEvE,IAAI,QAAQ;EACV,MAAM,gBAAgB,OAAO;EAM7B,QAAA,GAAA,MAAA,aAAA,CAAoB,QAAQ;GAC1B,GAAG;GACH,aAAa,WAAW,KAAA;GACxB,iBAAiB,YAAY,WAAW,KAAA;GACxC,WAAWD,WAAAA,GAAG,iBAAiB,cAAc,SAAS;GACtD,uBAAuB;GACvB,aAAa;GACb,UAAU;GACV,SAAS,YAAY,UAAU,KAAA,IAAY,cAAc;EAC3D,CAAC;CACH;CAEA,OACE,iBAAA,GAAA,kBAAA,IAAA,CAAC,UAAD;EACE,GAAI;EACJ,aAAW,WAAW,KAAA;EACtB,WAAW;EACX,uBAAoB;EACpB,aAAU;EACV,UAAU,YAAY;EACjB;EACC;YAEL;CACK,CAAA;AAEZ,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, MouseEventHandler, ReactElement, ReactNode } from "react";
|
|
2
|
+
//#region src/components/button/button.d.ts
|
|
3
|
+
type RenderableButtonProps = Record<string, unknown> & {
|
|
4
|
+
children?: ReactNode | undefined;
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
onClick?: MouseEventHandler<HTMLElement> | undefined;
|
|
7
|
+
};
|
|
8
|
+
interface ButtonProps extends Omit<ComponentPropsWithoutRef<"button">, "color" | "children"> {
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
variant?: "outline" | "solid" | "ghost" | "danger";
|
|
11
|
+
size?: "sm" | "md" | "lg";
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
startIcon?: ReactNode;
|
|
15
|
+
endIcon?: ReactNode;
|
|
16
|
+
render?: ReactElement<RenderableButtonProps>;
|
|
17
|
+
}
|
|
18
|
+
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Button, ButtonProps };
|
|
21
|
+
//# sourceMappingURL=button.d.cts.map
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComponentPropsWithoutRef, MouseEventHandler, ReactElement, ReactNode } from "react";
|
|
2
|
+
//#region src/components/button/button.d.ts
|
|
3
|
+
type RenderableButtonProps = Record<string, unknown> & {
|
|
4
|
+
children?: ReactNode | undefined;
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
onClick?: MouseEventHandler<HTMLElement> | undefined;
|
|
7
|
+
};
|
|
8
|
+
interface ButtonProps extends Omit<ComponentPropsWithoutRef<"button">, "color" | "children"> {
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
variant?: "outline" | "solid" | "ghost" | "danger";
|
|
11
|
+
size?: "sm" | "md" | "lg";
|
|
12
|
+
fullWidth?: boolean;
|
|
13
|
+
loading?: boolean;
|
|
14
|
+
startIcon?: ReactNode;
|
|
15
|
+
endIcon?: ReactNode;
|
|
16
|
+
render?: ReactElement<RenderableButtonProps>;
|
|
17
|
+
}
|
|
18
|
+
declare const Button: import("react").ForwardRefExoticComponent<ButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
19
|
+
//#endregion
|
|
20
|
+
export { Button, ButtonProps };
|
|
21
|
+
//# sourceMappingURL=button.d.ts.map
|