@stridge/noctis 1.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -0
- package/dist/_virtual/_rolldown/runtime.js +27 -0
- package/dist/components/accordion/accordion.context.js +15 -0
- package/dist/components/accordion/accordion.d.ts +136 -0
- package/dist/components/accordion/accordion.js +132 -0
- package/dist/components/accordion/accordion.props.d.ts +45 -0
- package/dist/components/accordion/accordion.props.js +53 -0
- package/dist/components/accordion/accordion.slots.d.ts +24 -0
- package/dist/components/accordion/accordion.slots.js +39 -0
- package/dist/components/accordion/accordion.types.d.ts +11 -0
- package/dist/components/accordion/index.d.ts +3 -0
- package/dist/components/alert-dialog/alert-dialog.context.js +16 -0
- package/dist/components/alert-dialog/alert-dialog.d.ts +324 -0
- package/dist/components/alert-dialog/alert-dialog.js +279 -0
- package/dist/components/alert-dialog/alert-dialog.props.d.ts +85 -0
- package/dist/components/alert-dialog/alert-dialog.props.js +84 -0
- package/dist/components/alert-dialog/alert-dialog.slots.d.ts +29 -0
- package/dist/components/alert-dialog/alert-dialog.slots.js +52 -0
- package/dist/components/alert-dialog/alert-dialog.types.d.ts +22 -0
- package/dist/components/alert-dialog/index.d.ts +3 -0
- package/dist/components/autocomplete/autocomplete.context.d.ts +5 -0
- package/dist/components/autocomplete/autocomplete.context.js +13 -0
- package/dist/components/autocomplete/autocomplete.d.ts +364 -0
- package/dist/components/autocomplete/autocomplete.js +373 -0
- package/dist/components/autocomplete/autocomplete.props.d.ts +83 -0
- package/dist/components/autocomplete/autocomplete.props.js +63 -0
- package/dist/components/autocomplete/autocomplete.slots.d.ts +32 -0
- package/dist/components/autocomplete/autocomplete.slots.js +61 -0
- package/dist/components/autocomplete/index.d.ts +3 -0
- package/dist/components/avatar/avatar.context.js +21 -0
- package/dist/components/avatar/avatar.d.ts +235 -0
- package/dist/components/avatar/avatar.js +208 -0
- package/dist/components/avatar/avatar.props.d.ts +86 -0
- package/dist/components/avatar/avatar.props.js +78 -0
- package/dist/components/avatar/avatar.slots.d.ts +35 -0
- package/dist/components/avatar/avatar.slots.js +49 -0
- package/dist/components/avatar/avatar.types.d.ts +28 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/button/button.d.ts +91 -0
- package/dist/components/button/button.js +82 -0
- package/dist/components/button/button.props.d.ts +48 -0
- package/dist/components/button/button.props.js +25 -0
- package/dist/components/button/button.slots.d.ts +30 -0
- package/dist/components/button/button.slots.js +40 -0
- package/dist/components/button/button.types.d.ts +12 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button-group/button-group.context.js +15 -0
- package/dist/components/button-group/button-group.d.ts +60 -0
- package/dist/components/button-group/button-group.js +50 -0
- package/dist/components/button-group/button-group.props.d.ts +22 -0
- package/dist/components/button-group/button-group.props.js +33 -0
- package/dist/components/button-group/button-group.slots.d.ts +12 -0
- package/dist/components/button-group/button-group.slots.js +18 -0
- package/dist/components/button-group/index.d.ts +2 -0
- package/dist/components/checkbox/checkbox-group.d.ts +46 -0
- package/dist/components/checkbox/checkbox-group.js +31 -0
- package/dist/components/checkbox/checkbox.context.js +15 -0
- package/dist/components/checkbox/checkbox.d.ts +130 -0
- package/dist/components/checkbox/checkbox.js +117 -0
- package/dist/components/checkbox/checkbox.props.d.ts +84 -0
- package/dist/components/checkbox/checkbox.props.js +49 -0
- package/dist/components/checkbox/checkbox.slots.d.ts +27 -0
- package/dist/components/checkbox/checkbox.slots.js +40 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/code-block/brand-logo.d.ts +37 -0
- package/dist/components/code-block/brand-logo.js +212 -0
- package/dist/components/code-block/code-block.context.js +13 -0
- package/dist/components/code-block/code-block.d.ts +190 -0
- package/dist/components/code-block/code-block.js +267 -0
- package/dist/components/code-block/code-block.props.d.ts +42 -0
- package/dist/components/code-block/code-block.props.js +51 -0
- package/dist/components/code-block/code-block.slots.d.ts +16 -0
- package/dist/components/code-block/code-block.slots.js +31 -0
- package/dist/components/code-block/index.d.ts +3 -0
- package/dist/components/code-block/language-label.js +43 -0
- package/dist/components/collapsible/collapsible.context.js +18 -0
- package/dist/components/collapsible/collapsible.d.ts +167 -0
- package/dist/components/collapsible/collapsible.js +182 -0
- package/dist/components/collapsible/collapsible.props.d.ts +33 -0
- package/dist/components/collapsible/collapsible.props.js +44 -0
- package/dist/components/collapsible/collapsible.slots.d.ts +25 -0
- package/dist/components/collapsible/collapsible.slots.js +40 -0
- package/dist/components/collapsible/collapsible.types.d.ts +23 -0
- package/dist/components/collapsible/index.d.ts +2 -0
- package/dist/components/color-picker/area.d.ts +11 -0
- package/dist/components/color-picker/area.js +148 -0
- package/dist/components/color-picker/color-picker.d.ts +110 -0
- package/dist/components/color-picker/color-picker.js +149 -0
- package/dist/components/color-picker/color-picker.props.d.ts +69 -0
- package/dist/components/color-picker/color-picker.props.js +74 -0
- package/dist/components/color-picker/color-picker.slots.js +21 -0
- package/dist/components/color-picker/color.d.ts +18 -0
- package/dist/components/color-picker/color.js +224 -0
- package/dist/components/color-picker/context.d.ts +25 -0
- package/dist/components/color-picker/context.js +23 -0
- package/dist/components/color-picker/eyedropper.d.ts +14 -0
- package/dist/components/color-picker/eyedropper.js +50 -0
- package/dist/components/color-picker/format-tabs.d.ts +11 -0
- package/dist/components/color-picker/format-tabs.js +35 -0
- package/dist/components/color-picker/index.d.ts +3 -0
- package/dist/components/color-picker/inputs.d.ts +16 -0
- package/dist/components/color-picker/inputs.js +61 -0
- package/dist/components/color-picker/sliders.d.ts +17 -0
- package/dist/components/color-picker/sliders.js +94 -0
- package/dist/components/color-picker/store.js +48 -0
- package/dist/components/color-picker/swatch.d.ts +15 -0
- package/dist/components/color-picker/swatch.js +25 -0
- package/dist/components/color-swatch/color-swatch-picker.d.ts +87 -0
- package/dist/components/color-swatch/color-swatch-picker.js +73 -0
- package/dist/components/color-swatch/color-swatch.context.js +8 -0
- package/dist/components/color-swatch/color-swatch.d.ts +55 -0
- package/dist/components/color-swatch/color-swatch.js +48 -0
- package/dist/components/color-swatch/color-swatch.props.d.ts +54 -0
- package/dist/components/color-swatch/color-swatch.props.js +32 -0
- package/dist/components/color-swatch/color-swatch.slots.js +13 -0
- package/dist/components/color-swatch/index.d.ts +2 -0
- package/dist/components/combobox/combobox.context.js +13 -0
- package/dist/components/combobox/combobox.d.ts +328 -0
- package/dist/components/combobox/combobox.js +315 -0
- package/dist/components/combobox/combobox.props.d.ts +85 -0
- package/dist/components/combobox/combobox.props.js +79 -0
- package/dist/components/combobox/combobox.slots.d.ts +28 -0
- package/dist/components/combobox/combobox.slots.js +63 -0
- package/dist/components/combobox/index.d.ts +2 -0
- package/dist/components/context-menu/context-menu.d.ts +254 -0
- package/dist/components/context-menu/context-menu.js +150 -0
- package/dist/components/context-menu/context-menu.props.d.ts +22 -0
- package/dist/components/context-menu/context-menu.props.js +32 -0
- package/dist/components/context-menu/context-menu.slots.d.ts +24 -0
- package/dist/components/context-menu/context-menu.slots.js +42 -0
- package/dist/components/context-menu/index.d.ts +2 -0
- package/dist/components/copy-button/copy-button.d.ts +56 -0
- package/dist/components/copy-button/copy-button.js +88 -0
- package/dist/components/copy-button/copy-button.props.d.ts +27 -0
- package/dist/components/copy-button/copy-button.props.js +51 -0
- package/dist/components/copy-button/copy-button.slots.d.ts +20 -0
- package/dist/components/copy-button/copy-button.slots.js +36 -0
- package/dist/components/copy-button/index.d.ts +2 -0
- package/dist/components/dialog/dialog.context.js +15 -0
- package/dist/components/dialog/dialog.d.ts +299 -0
- package/dist/components/dialog/dialog.js +263 -0
- package/dist/components/dialog/dialog.props.d.ts +71 -0
- package/dist/components/dialog/dialog.props.js +75 -0
- package/dist/components/dialog/dialog.slots.d.ts +26 -0
- package/dist/components/dialog/dialog.slots.js +46 -0
- package/dist/components/dialog/dialog.types.d.ts +16 -0
- package/dist/components/dialog/index.d.ts +3 -0
- package/dist/components/field/field.d.ts +221 -0
- package/dist/components/field/field.js +192 -0
- package/dist/components/field/field.props.d.ts +66 -0
- package/dist/components/field/field.props.js +65 -0
- package/dist/components/field/field.slots.d.ts +35 -0
- package/dist/components/field/field.slots.js +54 -0
- package/dist/components/field/field.types.d.ts +5 -0
- package/dist/components/field/index.d.ts +4 -0
- package/dist/components/inline-code/index.d.ts +1 -0
- package/dist/components/inline-code/inline-code.d.ts +46 -0
- package/dist/components/inline-code/inline-code.js +36 -0
- package/dist/components/inline-code/inline-code.props.d.ts +17 -0
- package/dist/components/inline-code/inline-code.props.js +27 -0
- package/dist/components/inline-code/inline-code.slots.js +8 -0
- package/dist/components/input/index.d.ts +3 -0
- package/dist/components/input/input.context.js +13 -0
- package/dist/components/input/input.d.ts +161 -0
- package/dist/components/input/input.js +117 -0
- package/dist/components/input/input.props.d.ts +51 -0
- package/dist/components/input/input.props.js +50 -0
- package/dist/components/input/input.slots.d.ts +35 -0
- package/dist/components/input/input.slots.js +46 -0
- package/dist/components/input/input.types.d.ts +12 -0
- package/dist/components/kbd/glyphs.js +45 -0
- package/dist/components/kbd/index.d.ts +1 -0
- package/dist/components/kbd/kbd.d.ts +61 -0
- package/dist/components/kbd/kbd.js +233 -0
- package/dist/components/kbd/kbd.props.d.ts +30 -0
- package/dist/components/kbd/kbd.props.js +39 -0
- package/dist/components/kbd/kbd.slots.js +14 -0
- package/dist/components/kbd/use-apple-platform.js +25 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/menu.d.ts +355 -0
- package/dist/components/menu/menu.js +263 -0
- package/dist/components/menu/menu.props.d.ts +92 -0
- package/dist/components/menu/menu.props.js +97 -0
- package/dist/components/menu/menu.slots.d.ts +32 -0
- package/dist/components/menu/menu.slots.js +60 -0
- package/dist/components/menubar/index.d.ts +2 -0
- package/dist/components/menubar/menubar.context.js +13 -0
- package/dist/components/menubar/menubar.d.ts +162 -0
- package/dist/components/menubar/menubar.js +122 -0
- package/dist/components/menubar/menubar.props.d.ts +41 -0
- package/dist/components/menubar/menubar.props.js +45 -0
- package/dist/components/menubar/menubar.slots.d.ts +26 -0
- package/dist/components/menubar/menubar.slots.js +40 -0
- package/dist/components/meter/index.d.ts +2 -0
- package/dist/components/meter/meter.context.d.ts +9 -0
- package/dist/components/meter/meter.context.js +13 -0
- package/dist/components/meter/meter.d.ts +163 -0
- package/dist/components/meter/meter.js +121 -0
- package/dist/components/meter/meter.props.d.ts +50 -0
- package/dist/components/meter/meter.props.js +33 -0
- package/dist/components/meter/meter.slots.d.ts +18 -0
- package/dist/components/meter/meter.slots.js +31 -0
- package/dist/components/navigation-menu/index.d.ts +2 -0
- package/dist/components/navigation-menu/navigation-menu.d.ts +328 -0
- package/dist/components/navigation-menu/navigation-menu.js +274 -0
- package/dist/components/navigation-menu/navigation-menu.props.d.ts +98 -0
- package/dist/components/navigation-menu/navigation-menu.props.js +90 -0
- package/dist/components/navigation-menu/navigation-menu.slots.d.ts +34 -0
- package/dist/components/navigation-menu/navigation-menu.slots.js +60 -0
- package/dist/components/number-field/index.d.ts +2 -0
- package/dist/components/number-field/number-field.context.d.ts +13 -0
- package/dist/components/number-field/number-field.context.js +13 -0
- package/dist/components/number-field/number-field.d.ts +197 -0
- package/dist/components/number-field/number-field.js +187 -0
- package/dist/components/number-field/number-field.props.d.ts +66 -0
- package/dist/components/number-field/number-field.props.js +50 -0
- package/dist/components/number-field/number-field.slots.d.ts +31 -0
- package/dist/components/number-field/number-field.slots.js +48 -0
- package/dist/components/otp-field/index.d.ts +3 -0
- package/dist/components/otp-field/otp-field.context.js +13 -0
- package/dist/components/otp-field/otp-field.d.ts +99 -0
- package/dist/components/otp-field/otp-field.js +76 -0
- package/dist/components/otp-field/otp-field.props.d.ts +48 -0
- package/dist/components/otp-field/otp-field.props.js +43 -0
- package/dist/components/otp-field/otp-field.slots.d.ts +28 -0
- package/dist/components/otp-field/otp-field.slots.js +39 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/popover.d.ts +192 -0
- package/dist/components/popover/popover.js +152 -0
- package/dist/components/popover/popover.props.d.ts +34 -0
- package/dist/components/popover/popover.props.js +44 -0
- package/dist/components/popover/popover.slots.d.ts +22 -0
- package/dist/components/popover/popover.slots.js +42 -0
- package/dist/components/preview-card/index.d.ts +2 -0
- package/dist/components/preview-card/preview-card.d.ts +182 -0
- package/dist/components/preview-card/preview-card.js +146 -0
- package/dist/components/preview-card/preview-card.props.d.ts +37 -0
- package/dist/components/preview-card/preview-card.props.js +48 -0
- package/dist/components/preview-card/preview-card.slots.d.ts +22 -0
- package/dist/components/preview-card/preview-card.slots.js +39 -0
- package/dist/components/progress/index.d.ts +3 -0
- package/dist/components/progress/progress.context.d.ts +9 -0
- package/dist/components/progress/progress.context.js +13 -0
- package/dist/components/progress/progress.d.ts +139 -0
- package/dist/components/progress/progress.js +92 -0
- package/dist/components/progress/progress.props.d.ts +56 -0
- package/dist/components/progress/progress.props.js +38 -0
- package/dist/components/progress/progress.slots.d.ts +24 -0
- package/dist/components/progress/progress.slots.js +37 -0
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/radio.context.js +5 -0
- package/dist/components/radio/radio.d.ts +205 -0
- package/dist/components/radio/radio.js +168 -0
- package/dist/components/radio/radio.props.d.ts +106 -0
- package/dist/components/radio/radio.props.js +65 -0
- package/dist/components/radio/radio.slots.d.ts +29 -0
- package/dist/components/radio/radio.slots.js +44 -0
- package/dist/components/rail/index.d.ts +3 -0
- package/dist/components/rail/rail.context.d.ts +17 -0
- package/dist/components/rail/rail.context.js +23 -0
- package/dist/components/rail/rail.d.ts +232 -0
- package/dist/components/rail/rail.js +254 -0
- package/dist/components/rail/rail.props.d.ts +98 -0
- package/dist/components/rail/rail.props.js +64 -0
- package/dist/components/rail/rail.slots.d.ts +20 -0
- package/dist/components/rail/rail.slots.js +40 -0
- package/dist/components/scroll-area/index.d.ts +2 -0
- package/dist/components/scroll-area/scroll-area.context.js +15 -0
- package/dist/components/scroll-area/scroll-area.d.ts +217 -0
- package/dist/components/scroll-area/scroll-area.js +153 -0
- package/dist/components/scroll-area/scroll-area.props.d.ts +73 -0
- package/dist/components/scroll-area/scroll-area.props.js +64 -0
- package/dist/components/scroll-area/scroll-area.slots.d.ts +40 -0
- package/dist/components/scroll-area/scroll-area.slots.js +54 -0
- package/dist/components/scroll-area/scroll-area.types.d.ts +24 -0
- package/dist/components/search-dialog/index.d.ts +3 -0
- package/dist/components/search-dialog/parts/input.d.ts +24 -0
- package/dist/components/search-dialog/parts/input.js +53 -0
- package/dist/components/search-dialog/parts/messages.d.ts +80 -0
- package/dist/components/search-dialog/parts/messages.js +75 -0
- package/dist/components/search-dialog/parts/results.d.ts +43 -0
- package/dist/components/search-dialog/parts/results.js +63 -0
- package/dist/components/search-dialog/parts/root.d.ts +54 -0
- package/dist/components/search-dialog/parts/root.js +99 -0
- package/dist/components/search-dialog/search-dialog.context.d.ts +15 -0
- package/dist/components/search-dialog/search-dialog.context.js +20 -0
- package/dist/components/search-dialog/search-dialog.d.ts +84 -0
- package/dist/components/search-dialog/search-dialog.js +43 -0
- package/dist/components/search-dialog/search-dialog.props.d.ts +45 -0
- package/dist/components/search-dialog/search-dialog.props.js +49 -0
- package/dist/components/search-dialog/search-dialog.slots.d.ts +16 -0
- package/dist/components/search-dialog/search-dialog.slots.js +32 -0
- package/dist/components/select/index.d.ts +2 -0
- package/dist/components/select/select.context.js +17 -0
- package/dist/components/select/select.d.ts +356 -0
- package/dist/components/select/select.js +314 -0
- package/dist/components/select/select.props.d.ts +110 -0
- package/dist/components/select/select.props.js +103 -0
- package/dist/components/select/select.slots.d.ts +38 -0
- package/dist/components/select/select.slots.js +67 -0
- package/dist/components/separator/index.d.ts +2 -0
- package/dist/components/separator/separator.d.ts +69 -0
- package/dist/components/separator/separator.js +44 -0
- package/dist/components/separator/separator.props.d.ts +30 -0
- package/dist/components/separator/separator.props.js +30 -0
- package/dist/components/separator/separator.slots.d.ts +22 -0
- package/dist/components/separator/separator.slots.js +21 -0
- package/dist/components/separator/separator.types.d.ts +5 -0
- package/dist/components/sheet/index.d.ts +3 -0
- package/dist/components/sheet/sheet-stack.d.ts +106 -0
- package/dist/components/sheet/sheet-stack.js +146 -0
- package/dist/components/sheet/sheet.d.ts +279 -0
- package/dist/components/sheet/sheet.js +264 -0
- package/dist/components/sheet/sheet.props.d.ts +74 -0
- package/dist/components/sheet/sheet.props.js +77 -0
- package/dist/components/sheet/sheet.slots.js +22 -0
- package/dist/components/sheet/sheet.types.d.ts +12 -0
- package/dist/components/slider/index.d.ts +3 -0
- package/dist/components/slider/slider.context.d.ts +5 -0
- package/dist/components/slider/slider.context.js +29 -0
- package/dist/components/slider/slider.d.ts +230 -0
- package/dist/components/slider/slider.js +274 -0
- package/dist/components/slider/slider.props.d.ts +72 -0
- package/dist/components/slider/slider.props.js +59 -0
- package/dist/components/slider/slider.slots.d.ts +30 -0
- package/dist/components/slider/slider.slots.js +50 -0
- package/dist/components/surface/index.d.ts +1 -0
- package/dist/components/surface/surface.d.ts +84 -0
- package/dist/components/surface/surface.js +48 -0
- package/dist/components/surface/surface.props.d.ts +35 -0
- package/dist/components/surface/surface.props.js +26 -0
- package/dist/components/surface/surface.slots.js +9 -0
- package/dist/components/surface/surface.types.d.ts +14 -0
- package/dist/components/switch/index.d.ts +2 -0
- package/dist/components/switch/switch.context.js +14 -0
- package/dist/components/switch/switch.d.ts +110 -0
- package/dist/components/switch/switch.js +92 -0
- package/dist/components/switch/switch.props.d.ts +68 -0
- package/dist/components/switch/switch.props.js +41 -0
- package/dist/components/switch/switch.slots.d.ts +23 -0
- package/dist/components/switch/switch.slots.js +35 -0
- package/dist/components/table/index.d.ts +1 -0
- package/dist/components/table/table.d.ts +104 -0
- package/dist/components/table/table.js +92 -0
- package/dist/components/table/table.props.d.ts +38 -0
- package/dist/components/table/table.props.js +49 -0
- package/dist/components/table/table.slots.js +17 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tabs.context.d.ts +9 -0
- package/dist/components/tabs/tabs.context.js +13 -0
- package/dist/components/tabs/tabs.d.ts +139 -0
- package/dist/components/tabs/tabs.js +118 -0
- package/dist/components/tabs/tabs.props.d.ts +59 -0
- package/dist/components/tabs/tabs.props.js +39 -0
- package/dist/components/tabs/tabs.slots.d.ts +20 -0
- package/dist/components/tabs/tabs.slots.js +33 -0
- package/dist/components/textarea/index.d.ts +3 -0
- package/dist/components/textarea/textarea.context.js +13 -0
- package/dist/components/textarea/textarea.d.ts +142 -0
- package/dist/components/textarea/textarea.js +129 -0
- package/dist/components/textarea/textarea.props.d.ts +44 -0
- package/dist/components/textarea/textarea.props.js +32 -0
- package/dist/components/textarea/textarea.slots.d.ts +23 -0
- package/dist/components/textarea/textarea.slots.js +33 -0
- package/dist/components/textarea/textarea.types.d.ts +5 -0
- package/dist/components/toast/index.d.ts +4 -0
- package/dist/components/toast/toast.d.ts +241 -0
- package/dist/components/toast/toast.js +193 -0
- package/dist/components/toast/toast.manager.d.ts +76 -0
- package/dist/components/toast/toast.manager.js +71 -0
- package/dist/components/toast/toast.props.d.ts +66 -0
- package/dist/components/toast/toast.props.js +74 -0
- package/dist/components/toast/toast.slots.d.ts +30 -0
- package/dist/components/toast/toast.slots.js +49 -0
- package/dist/components/toast/toast.types.d.ts +19 -0
- package/dist/components/toggle/index.d.ts +2 -0
- package/dist/components/toggle/toggle.context.d.ts +11 -0
- package/dist/components/toggle/toggle.context.js +14 -0
- package/dist/components/toggle/toggle.d.ts +136 -0
- package/dist/components/toggle/toggle.js +101 -0
- package/dist/components/toggle/toggle.props.d.ts +51 -0
- package/dist/components/toggle/toggle.props.js +29 -0
- package/dist/components/toggle/toggle.slots.d.ts +26 -0
- package/dist/components/toggle/toggle.slots.js +36 -0
- package/dist/components/toolbar/index.d.ts +3 -0
- package/dist/components/toolbar/toolbar.context.js +23 -0
- package/dist/components/toolbar/toolbar.d.ts +218 -0
- package/dist/components/toolbar/toolbar.js +197 -0
- package/dist/components/toolbar/toolbar.props.d.ts +54 -0
- package/dist/components/toolbar/toolbar.props.js +55 -0
- package/dist/components/toolbar/toolbar.slots.d.ts +24 -0
- package/dist/components/toolbar/toolbar.slots.js +37 -0
- package/dist/components/toolbar/toolbar.types.d.ts +15 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/tooltip.d.ts +170 -0
- package/dist/components/tooltip/tooltip.js +143 -0
- package/dist/components/tooltip/tooltip.props.d.ts +36 -0
- package/dist/components/tooltip/tooltip.props.js +42 -0
- package/dist/components/tooltip/tooltip.slots.d.ts +26 -0
- package/dist/components/tooltip/tooltip.slots.js +42 -0
- package/dist/core/derive-threshold-tone.js +35 -0
- package/dist/core/merge-class-name.d.ts +17 -0
- package/dist/core/merge-class-name.js +16 -0
- package/dist/core/noctis-provider.d.ts +38 -0
- package/dist/core/noctis-provider.js +44 -0
- package/dist/core/primitive/index.d.ts +1 -0
- package/dist/core/primitive/primitive.d.ts +44 -0
- package/dist/core/primitive/primitive.js +27 -0
- package/dist/core/radius-scope/index.d.ts +2 -0
- package/dist/core/radius-scope/radius-scope.d.ts +43 -0
- package/dist/core/radius-scope/radius-scope.js +36 -0
- package/dist/core/radius-scope/radius-scope.styles.d.ts +13 -0
- package/dist/core/radius-scope/radius-scope.styles.js +11 -0
- package/dist/core/render.d.ts +24 -0
- package/dist/core/render.js +12 -0
- package/dist/core/use-copy.d.ts +13 -0
- package/dist/core/use-copy.js +30 -0
- package/dist/core/use-injected-labels.js +55 -0
- package/dist/core/use-reduced-motion.d.ts +9 -0
- package/dist/core/use-reduced-motion.js +26 -0
- package/dist/core/visually-hidden/index.d.ts +1 -0
- package/dist/core/visually-hidden/visually-hidden.d.ts +24 -0
- package/dist/core/visually-hidden/visually-hidden.js +19 -0
- package/dist/i18n/default-messages.d.ts +12 -0
- package/dist/i18n/default-messages.js +10 -0
- package/dist/i18n/index.d.ts +2 -0
- package/dist/i18n/index.js +2 -0
- package/dist/i18n/messages/index.d.ts +2 -0
- package/dist/i18n/messages/index.js +2 -0
- package/dist/icons/glyphs.d.ts +2 -0
- package/dist/icons/glyphs.js +2 -0
- package/dist/icons/icon.d.ts +40 -0
- package/dist/icons/icon.js +26 -0
- package/dist/icons/icon.styles.d.ts +9 -0
- package/dist/icons/index.d.ts +3 -0
- package/dist/index.d.ts +126 -0
- package/dist/index.js +112 -0
- package/dist/primitives/accordion.d.ts +7 -0
- package/dist/primitives/accordion.js +8 -0
- package/dist/primitives/alert-dialog.d.ts +7 -0
- package/dist/primitives/alert-dialog.js +8 -0
- package/dist/primitives/autocomplete/autocomplete.d.ts +58 -0
- package/dist/primitives/autocomplete/autocomplete.js +58 -0
- package/dist/primitives/autocomplete/index.d.ts +1 -0
- package/dist/primitives/autocomplete.d.ts +2 -0
- package/dist/primitives/autocomplete.js +2 -0
- package/dist/primitives/avatar.d.ts +7 -0
- package/dist/primitives/avatar.js +8 -0
- package/dist/primitives/button.d.ts +7 -0
- package/dist/primitives/button.js +8 -0
- package/dist/primitives/checkbox-group.d.ts +7 -0
- package/dist/primitives/checkbox-group.js +8 -0
- package/dist/primitives/checkbox.d.ts +7 -0
- package/dist/primitives/checkbox.js +8 -0
- package/dist/primitives/collapsible.d.ts +7 -0
- package/dist/primitives/collapsible.js +8 -0
- package/dist/primitives/combobox/combobox.d.ts +71 -0
- package/dist/primitives/combobox/combobox.js +66 -0
- package/dist/primitives/combobox/index.d.ts +1 -0
- package/dist/primitives/combobox.d.ts +2 -0
- package/dist/primitives/combobox.js +2 -0
- package/dist/primitives/context-menu.d.ts +7 -0
- package/dist/primitives/context-menu.js +8 -0
- package/dist/primitives/csp-provider.d.ts +1 -0
- package/dist/primitives/csp-provider.js +2 -0
- package/dist/primitives/dialog.d.ts +7 -0
- package/dist/primitives/dialog.js +8 -0
- package/dist/primitives/direction-provider.d.ts +1 -0
- package/dist/primitives/direction-provider.js +8 -0
- package/dist/primitives/drawer.d.ts +1 -0
- package/dist/primitives/drawer.js +2 -0
- package/dist/primitives/field.d.ts +7 -0
- package/dist/primitives/field.js +8 -0
- package/dist/primitives/fieldset.d.ts +7 -0
- package/dist/primitives/fieldset.js +8 -0
- package/dist/primitives/form.d.ts +7 -0
- package/dist/primitives/form.js +8 -0
- package/dist/primitives/index.d.ts +79 -0
- package/dist/primitives/index.js +113 -0
- package/dist/primitives/input.d.ts +7 -0
- package/dist/primitives/input.js +8 -0
- package/dist/primitives/menu.d.ts +7 -0
- package/dist/primitives/menu.js +8 -0
- package/dist/primitives/menubar.d.ts +7 -0
- package/dist/primitives/menubar.js +8 -0
- package/dist/primitives/meter/index.d.ts +1 -0
- package/dist/primitives/meter/meter.d.ts +56 -0
- package/dist/primitives/meter/meter.js +59 -0
- package/dist/primitives/meter.d.ts +2 -0
- package/dist/primitives/meter.js +2 -0
- package/dist/primitives/navigation-menu.d.ts +7 -0
- package/dist/primitives/navigation-menu.js +8 -0
- package/dist/primitives/number-field/context.d.ts +13 -0
- package/dist/primitives/number-field/context.js +36 -0
- package/dist/primitives/number-field/index.d.ts +2 -0
- package/dist/primitives/number-field/number-field.d.ts +90 -0
- package/dist/primitives/number-field/number-field.js +107 -0
- package/dist/primitives/number-field.d.ts +3 -0
- package/dist/primitives/number-field.js +2 -0
- package/dist/primitives/otp-field.d.ts +7 -0
- package/dist/primitives/otp-field.js +8 -0
- package/dist/primitives/popover.d.ts +7 -0
- package/dist/primitives/popover.js +8 -0
- package/dist/primitives/preview-card.d.ts +7 -0
- package/dist/primitives/preview-card.js +8 -0
- package/dist/primitives/progress/index.d.ts +1 -0
- package/dist/primitives/progress/progress.d.ts +56 -0
- package/dist/primitives/progress/progress.js +59 -0
- package/dist/primitives/progress.d.ts +2 -0
- package/dist/primitives/progress.js +2 -0
- package/dist/primitives/radio-group.d.ts +7 -0
- package/dist/primitives/radio-group.js +8 -0
- package/dist/primitives/radio.d.ts +7 -0
- package/dist/primitives/radio.js +8 -0
- package/dist/primitives/scroll-area.d.ts +7 -0
- package/dist/primitives/scroll-area.js +8 -0
- package/dist/primitives/select.d.ts +7 -0
- package/dist/primitives/select.js +8 -0
- package/dist/primitives/separator.d.ts +7 -0
- package/dist/primitives/separator.js +8 -0
- package/dist/primitives/slider/context.d.ts +12 -0
- package/dist/primitives/slider/context.js +18 -0
- package/dist/primitives/slider/index.d.ts +2 -0
- package/dist/primitives/slider/slider.d.ts +83 -0
- package/dist/primitives/slider/slider.js +99 -0
- package/dist/primitives/slider.d.ts +3 -0
- package/dist/primitives/slider.js +2 -0
- package/dist/primitives/switch.d.ts +1 -0
- package/dist/primitives/switch.js +2 -0
- package/dist/primitives/tabs.d.ts +7 -0
- package/dist/primitives/tabs.js +8 -0
- package/dist/primitives/toast/context.d.ts +11 -0
- package/dist/primitives/toast/context.js +18 -0
- package/dist/primitives/toast/index.d.ts +2 -0
- package/dist/primitives/toast/toast.d.ts +122 -0
- package/dist/primitives/toast/toast.js +133 -0
- package/dist/primitives/toast.d.ts +3 -0
- package/dist/primitives/toast.js +2 -0
- package/dist/primitives/toggle-group.d.ts +7 -0
- package/dist/primitives/toggle-group.js +8 -0
- package/dist/primitives/toggle.d.ts +7 -0
- package/dist/primitives/toggle.js +8 -0
- package/dist/primitives/toolbar.d.ts +7 -0
- package/dist/primitives/toolbar.js +8 -0
- package/dist/primitives/tooltip.d.ts +7 -0
- package/dist/primitives/tooltip.js +8 -0
- package/dist/props.d.ts +46 -0
- package/dist/props.js +46 -0
- package/dist/styles.css +11513 -0
- package/dist/tailwind/cn.d.ts +33 -0
- package/dist/tailwind/cn.js +42 -0
- package/dist/tailwind/index.d.ts +3 -0
- package/dist/tailwind/index.js +3 -0
- package/dist/tailwind/tv.d.ts +20 -0
- package/dist/tailwind/tv.js +11 -0
- package/dist/tailwind.css +485 -0
- package/dist/theme/react.d.ts +1 -0
- package/dist/theme/react.js +1 -0
- package/dist/theme.d.ts +1 -0
- package/dist/theme.js +1 -0
- package/dist/tokens/react.d.ts +1 -0
- package/dist/tokens/react.js +1 -0
- package/dist/tokens.d.ts +1 -0
- package/dist/tokens.js +1 -0
- package/package.json +121 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useInjectedLabels, useInjectedLocale } from "../../core/use-injected-labels.js";
|
|
3
|
+
import { DEFAULT_NUMBER_FIELD_LABELS, NumberFieldProvider, deriveNumericInputMode, useNumberFieldContext } from "./context.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { NumberField } from "@base-ui/react/number-field";
|
|
6
|
+
//#region src/primitives/number-field/number-field.tsx
|
|
7
|
+
const LABEL_KEYS = {
|
|
8
|
+
increase: "numberField.increase",
|
|
9
|
+
decrease: "numberField.decrease",
|
|
10
|
+
roledescription: "numberField.numberField"
|
|
11
|
+
};
|
|
12
|
+
/**
|
|
13
|
+
* Owns the number field's value and shares the resolved assistive labels with its parts. Auto-injects
|
|
14
|
+
* the active locale (so numbers format for the reader) and the translated labels; pass `locale` or
|
|
15
|
+
* `labels` to override.
|
|
16
|
+
*/
|
|
17
|
+
function NumberFieldRoot({ labels: labelsProp, locale: localeProp, ...props }) {
|
|
18
|
+
const labels = useInjectedLabels(DEFAULT_NUMBER_FIELD_LABELS, LABEL_KEYS, labelsProp);
|
|
19
|
+
const locale = useInjectedLocale();
|
|
20
|
+
const resolvedLocale = localeProp ?? locale;
|
|
21
|
+
return /* @__PURE__ */ jsx(NumberFieldProvider, {
|
|
22
|
+
value: {
|
|
23
|
+
labels,
|
|
24
|
+
inputMode: deriveNumericInputMode({
|
|
25
|
+
format: props.format,
|
|
26
|
+
step: props.step,
|
|
27
|
+
smallStep: props.smallStep,
|
|
28
|
+
locale: resolvedLocale
|
|
29
|
+
})
|
|
30
|
+
},
|
|
31
|
+
children: /* @__PURE__ */ jsx(NumberField.Root, {
|
|
32
|
+
"data-slot": "noctis-number-field",
|
|
33
|
+
locale: resolvedLocale,
|
|
34
|
+
...props
|
|
35
|
+
})
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
/** Groups the input and its increment/decrement buttons. */
|
|
39
|
+
function NumberFieldGroup(props) {
|
|
40
|
+
return /* @__PURE__ */ jsx(NumberField.Group, {
|
|
41
|
+
"data-slot": "noctis-number-field-group",
|
|
42
|
+
...props
|
|
43
|
+
});
|
|
44
|
+
}
|
|
45
|
+
/** The increment button — labelled with the translated `increase` string; an explicit `aria-label` wins. */
|
|
46
|
+
function NumberFieldIncrement({ "aria-label": ariaLabel, ...props }) {
|
|
47
|
+
const { labels } = useNumberFieldContext("Increment");
|
|
48
|
+
return /* @__PURE__ */ jsx(NumberField.Increment, {
|
|
49
|
+
"data-slot": "noctis-number-field-increment",
|
|
50
|
+
...props,
|
|
51
|
+
"aria-label": ariaLabel ?? labels.increase
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/** The decrement button — labelled with the translated `decrease` string; an explicit `aria-label` wins. */
|
|
55
|
+
function NumberFieldDecrement({ "aria-label": ariaLabel, ...props }) {
|
|
56
|
+
const { labels } = useNumberFieldContext("Decrement");
|
|
57
|
+
return /* @__PURE__ */ jsx(NumberField.Decrement, {
|
|
58
|
+
"data-slot": "noctis-number-field-decrement",
|
|
59
|
+
...props,
|
|
60
|
+
"aria-label": ariaLabel ?? labels.decrease
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* The numeric input — carries the translated `roledescription` and the derived `inputMode` (the mobile
|
|
65
|
+
* keypad hint); an explicit `aria-roledescription` / `inputMode` always wins. Base UI keeps it a
|
|
66
|
+
* `role="textbox"` so the value formats and types freely per locale; bounds belong in a description.
|
|
67
|
+
*/
|
|
68
|
+
function NumberFieldInput({ "aria-roledescription": ariaRoledescription, inputMode: inputModeProp, ...props }) {
|
|
69
|
+
const { labels, inputMode } = useNumberFieldContext("Input");
|
|
70
|
+
return /* @__PURE__ */ jsx(NumberField.Input, {
|
|
71
|
+
"data-slot": "noctis-number-field-input",
|
|
72
|
+
inputMode: inputModeProp ?? inputMode,
|
|
73
|
+
...props,
|
|
74
|
+
"aria-roledescription": ariaRoledescription ?? labels.roledescription
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/** A draggable region that scrubs the value by pointer movement. */
|
|
78
|
+
function NumberFieldScrubArea(props) {
|
|
79
|
+
return /* @__PURE__ */ jsx(NumberField.ScrubArea, {
|
|
80
|
+
"data-slot": "noctis-number-field-scrub-area",
|
|
81
|
+
...props
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
/** The virtual cursor shown while scrubbing. */
|
|
85
|
+
function NumberFieldScrubAreaCursor(props) {
|
|
86
|
+
return /* @__PURE__ */ jsx(NumberField.ScrubAreaCursor, {
|
|
87
|
+
"data-slot": "noctis-number-field-scrub-area-cursor",
|
|
88
|
+
...props
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* A numeric input with stepper buttons and pointer scrubbing. Built on Base UI's NumberField; the
|
|
93
|
+
* noctis wrapper injects the active locale (Persian numerals under `fa`, etc.) and translates the
|
|
94
|
+
* stepper buttons' and input's assistive text. Per-instance `aria-label`/`aria-roledescription`/
|
|
95
|
+
* `labels` always win.
|
|
96
|
+
*/
|
|
97
|
+
const NumberField$1 = {
|
|
98
|
+
Root: NumberFieldRoot,
|
|
99
|
+
Group: NumberFieldGroup,
|
|
100
|
+
Decrement: NumberFieldDecrement,
|
|
101
|
+
Input: NumberFieldInput,
|
|
102
|
+
Increment: NumberFieldIncrement,
|
|
103
|
+
ScrubArea: NumberFieldScrubArea,
|
|
104
|
+
ScrubAreaCursor: NumberFieldScrubAreaCursor
|
|
105
|
+
};
|
|
106
|
+
//#endregion
|
|
107
|
+
export { NumberField$1 as NumberField };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exportAll, __reExport } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export * from "@base-ui/react/otp-field";
|
|
3
|
+
//#region src/primitives/otp-field.ts
|
|
4
|
+
var otp_field_exports = /* @__PURE__ */ __exportAll({});
|
|
5
|
+
import * as import__base_ui_react_otp_field from "@base-ui/react/otp-field";
|
|
6
|
+
__reExport(otp_field_exports, import__base_ui_react_otp_field);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { otp_field_exports };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exportAll, __reExport } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export * from "@base-ui/react/popover";
|
|
3
|
+
//#region src/primitives/popover.ts
|
|
4
|
+
var popover_exports = /* @__PURE__ */ __exportAll({});
|
|
5
|
+
import * as import__base_ui_react_popover from "@base-ui/react/popover";
|
|
6
|
+
__reExport(popover_exports, import__base_ui_react_popover);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { popover_exports };
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export * from "@base-ui/react/preview-card";
|
|
2
|
+
|
|
3
|
+
//#region src/primitives/preview-card.d.ts
|
|
4
|
+
|
|
5
|
+
import * as import__base_ui_react_preview_card from "@base-ui/react/preview-card";
|
|
6
|
+
//#endregion
|
|
7
|
+
export { import__base_ui_react_preview_card as preview_card_d_exports };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exportAll, __reExport } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export * from "@base-ui/react/preview-card";
|
|
3
|
+
//#region src/primitives/preview-card.ts
|
|
4
|
+
var preview_card_exports = /* @__PURE__ */ __exportAll({});
|
|
5
|
+
import * as import__base_ui_react_preview_card from "@base-ui/react/preview-card";
|
|
6
|
+
__reExport(preview_card_exports, import__base_ui_react_preview_card);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { preview_card_exports };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Progress } from "./progress.js";
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
2
|
+
import { Progress } from "@base-ui/react/progress";
|
|
3
|
+
|
|
4
|
+
//#region src/primitives/progress/progress.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* Shows the progress of a task. Auto-injects the active locale so its formatted value reads in the
|
|
7
|
+
* reader's language; pass `locale` to override.
|
|
8
|
+
*/
|
|
9
|
+
declare function ProgressRoot({
|
|
10
|
+
locale: localeProp,
|
|
11
|
+
...props
|
|
12
|
+
}: Progress$1.Root.Props): ReactElement;
|
|
13
|
+
/** The track the indicator fills. */
|
|
14
|
+
declare function ProgressTrack(props: Progress$1.Track.Props): ReactElement;
|
|
15
|
+
/** The filled portion, sized to the value. */
|
|
16
|
+
declare function ProgressIndicator(props: Progress$1.Indicator.Props): ReactElement;
|
|
17
|
+
/** The formatted value text, localized via the injected locale. */
|
|
18
|
+
declare function ProgressValue(props: Progress$1.Value.Props): ReactElement;
|
|
19
|
+
/** The progress bar's accessible label. */
|
|
20
|
+
declare function ProgressLabel(props: Progress$1.Label.Props): ReactElement;
|
|
21
|
+
/**
|
|
22
|
+
* A progress bar for a task's completion. Built on Base UI's Progress; the noctis wrapper injects the
|
|
23
|
+
* active locale so the value formats for the reader. Compose `Progress.Root` with `Track`/`Indicator`,
|
|
24
|
+
* and optionally `Label` + `Value`.
|
|
25
|
+
*/
|
|
26
|
+
declare const Progress$1: {
|
|
27
|
+
Root: typeof ProgressRoot;
|
|
28
|
+
Track: typeof ProgressTrack;
|
|
29
|
+
Indicator: typeof ProgressIndicator;
|
|
30
|
+
Value: typeof ProgressValue;
|
|
31
|
+
Label: typeof ProgressLabel;
|
|
32
|
+
};
|
|
33
|
+
declare namespace Progress$1 {
|
|
34
|
+
namespace Root {
|
|
35
|
+
type Props = Progress.Root.Props;
|
|
36
|
+
type State = Progress.Root.State;
|
|
37
|
+
}
|
|
38
|
+
namespace Track {
|
|
39
|
+
type Props = Progress.Track.Props;
|
|
40
|
+
type State = Progress.Track.State;
|
|
41
|
+
}
|
|
42
|
+
namespace Indicator {
|
|
43
|
+
type Props = Progress.Indicator.Props;
|
|
44
|
+
type State = Progress.Indicator.State;
|
|
45
|
+
}
|
|
46
|
+
namespace Value {
|
|
47
|
+
type Props = Progress.Value.Props;
|
|
48
|
+
type State = Progress.Value.State;
|
|
49
|
+
}
|
|
50
|
+
namespace Label {
|
|
51
|
+
type Props = Progress.Label.Props;
|
|
52
|
+
type State = Progress.Label.State;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//#endregion
|
|
56
|
+
export { Progress$1 as Progress };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useInjectedLocale } from "../../core/use-injected-labels.js";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { Progress } from "@base-ui/react/progress";
|
|
5
|
+
//#region src/primitives/progress/progress.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Shows the progress of a task. Auto-injects the active locale so its formatted value reads in the
|
|
8
|
+
* reader's language; pass `locale` to override.
|
|
9
|
+
*/
|
|
10
|
+
function ProgressRoot({ locale: localeProp, ...props }) {
|
|
11
|
+
const locale = useInjectedLocale();
|
|
12
|
+
return /* @__PURE__ */ jsx(Progress.Root, {
|
|
13
|
+
"data-slot": "noctis-progress",
|
|
14
|
+
locale: localeProp ?? locale,
|
|
15
|
+
...props
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/** The track the indicator fills. */
|
|
19
|
+
function ProgressTrack(props) {
|
|
20
|
+
return /* @__PURE__ */ jsx(Progress.Track, {
|
|
21
|
+
"data-slot": "noctis-progress-track",
|
|
22
|
+
...props
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/** The filled portion, sized to the value. */
|
|
26
|
+
function ProgressIndicator(props) {
|
|
27
|
+
return /* @__PURE__ */ jsx(Progress.Indicator, {
|
|
28
|
+
"data-slot": "noctis-progress-indicator",
|
|
29
|
+
...props
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
/** The formatted value text, localized via the injected locale. */
|
|
33
|
+
function ProgressValue(props) {
|
|
34
|
+
return /* @__PURE__ */ jsx(Progress.Value, {
|
|
35
|
+
"data-slot": "noctis-progress-value",
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
/** The progress bar's accessible label. */
|
|
40
|
+
function ProgressLabel(props) {
|
|
41
|
+
return /* @__PURE__ */ jsx(Progress.Label, {
|
|
42
|
+
"data-slot": "noctis-progress-label",
|
|
43
|
+
...props
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* A progress bar for a task's completion. Built on Base UI's Progress; the noctis wrapper injects the
|
|
48
|
+
* active locale so the value formats for the reader. Compose `Progress.Root` with `Track`/`Indicator`,
|
|
49
|
+
* and optionally `Label` + `Value`.
|
|
50
|
+
*/
|
|
51
|
+
const Progress$1 = {
|
|
52
|
+
Root: ProgressRoot,
|
|
53
|
+
Track: ProgressTrack,
|
|
54
|
+
Indicator: ProgressIndicator,
|
|
55
|
+
Value: ProgressValue,
|
|
56
|
+
Label: ProgressLabel
|
|
57
|
+
};
|
|
58
|
+
//#endregion
|
|
59
|
+
export { Progress$1 as Progress };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exportAll, __reExport } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export * from "@base-ui/react/radio-group";
|
|
3
|
+
//#region src/primitives/radio-group.ts
|
|
4
|
+
var radio_group_exports = /* @__PURE__ */ __exportAll({});
|
|
5
|
+
import * as import__base_ui_react_radio_group from "@base-ui/react/radio-group";
|
|
6
|
+
__reExport(radio_group_exports, import__base_ui_react_radio_group);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { radio_group_exports };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exportAll, __reExport } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export * from "@base-ui/react/radio";
|
|
3
|
+
//#region src/primitives/radio.ts
|
|
4
|
+
var radio_exports = /* @__PURE__ */ __exportAll({});
|
|
5
|
+
import * as import__base_ui_react_radio from "@base-ui/react/radio";
|
|
6
|
+
__reExport(radio_exports, import__base_ui_react_radio);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { radio_exports };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exportAll, __reExport } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export * from "@base-ui/react/scroll-area";
|
|
3
|
+
//#region src/primitives/scroll-area.ts
|
|
4
|
+
var scroll_area_exports = /* @__PURE__ */ __exportAll({});
|
|
5
|
+
import * as import__base_ui_react_scroll_area from "@base-ui/react/scroll-area";
|
|
6
|
+
__reExport(scroll_area_exports, import__base_ui_react_scroll_area);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { scroll_area_exports };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exportAll, __reExport } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export * from "@base-ui/react/select";
|
|
3
|
+
//#region src/primitives/select.ts
|
|
4
|
+
var select_exports = /* @__PURE__ */ __exportAll({});
|
|
5
|
+
import * as import__base_ui_react_select from "@base-ui/react/select";
|
|
6
|
+
__reExport(select_exports, import__base_ui_react_select);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { select_exports };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exportAll, __reExport } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export * from "@base-ui/react/separator";
|
|
3
|
+
//#region src/primitives/separator.ts
|
|
4
|
+
var separator_exports = /* @__PURE__ */ __exportAll({});
|
|
5
|
+
import * as import__base_ui_react_separator from "@base-ui/react/separator";
|
|
6
|
+
__reExport(separator_exports, import__base_ui_react_separator);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { separator_exports };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
//#region src/primitives/slider/context.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* The lowercase suffixes appended after a range slider's formatted value, mirroring Base UI's
|
|
4
|
+
* `"<value> start range"` / `"<value> end range"`. A `type` (not `interface`) so it satisfies the
|
|
5
|
+
* label-resolution helper's `Record<string, string>` constraint.
|
|
6
|
+
*/
|
|
7
|
+
type SliderLabels = {
|
|
8
|
+
/** Suffix for the lower thumb of a two-thumb slider. */startRange: string; /** Suffix for the upper thumb of a two-thumb slider. */
|
|
9
|
+
endRange: string;
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { SliderLabels };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext, use } from "react";
|
|
3
|
+
//#region src/primitives/slider/context.ts
|
|
4
|
+
/** English last-resort fallback; the active values come from the locale dictionary. Top-level const (lint). */
|
|
5
|
+
const DEFAULT_SLIDER_LABELS = {
|
|
6
|
+
startRange: "start range",
|
|
7
|
+
endRange: "end range"
|
|
8
|
+
};
|
|
9
|
+
const SliderContext = createContext(null);
|
|
10
|
+
const SliderProvider = SliderContext.Provider;
|
|
11
|
+
/** Read the resolved labels + range flag, throwing if a part is used outside `Slider.Root`. */
|
|
12
|
+
function useSliderContext(part) {
|
|
13
|
+
const context = use(SliderContext);
|
|
14
|
+
if (!context) throw new Error(`Slider.${part} must be used within a Slider.Root.`);
|
|
15
|
+
return context;
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { DEFAULT_SLIDER_LABELS, SliderProvider, useSliderContext };
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { SliderLabels } from "./context.js";
|
|
2
|
+
import { ReactElement } from "react";
|
|
3
|
+
import { Slider } from "@base-ui/react/slider";
|
|
4
|
+
|
|
5
|
+
//#region src/primitives/slider/slider.d.ts
|
|
6
|
+
/**
|
|
7
|
+
* Owns the slider's value and shares the resolved range suffixes with its thumbs. Auto-injects the
|
|
8
|
+
* active locale (so the value formats for the reader); pass `locale` or `labels` to override.
|
|
9
|
+
*/
|
|
10
|
+
declare function SliderRoot({
|
|
11
|
+
labels: labelsProp,
|
|
12
|
+
locale: localeProp,
|
|
13
|
+
...props
|
|
14
|
+
}: Slider$1.Root.Props): ReactElement;
|
|
15
|
+
/** The slider's accessible label. */
|
|
16
|
+
declare function SliderLabel(props: Slider$1.Label.Props): ReactElement;
|
|
17
|
+
/** The formatted value text, localized via the injected locale. */
|
|
18
|
+
declare function SliderValue(props: Slider$1.Value.Props): ReactElement;
|
|
19
|
+
/** The interactive track region the thumbs sit on. */
|
|
20
|
+
declare function SliderControl(props: Slider$1.Control.Props): ReactElement;
|
|
21
|
+
/** The rail the indicator fills. */
|
|
22
|
+
declare function SliderTrack(props: Slider$1.Track.Props): ReactElement;
|
|
23
|
+
/** The filled portion of the track. */
|
|
24
|
+
declare function SliderIndicator(props: Slider$1.Indicator.Props): ReactElement;
|
|
25
|
+
/**
|
|
26
|
+
* A draggable thumb. For a two-thumb (range) slider the `aria-valuetext` gains the translated
|
|
27
|
+
* `start range` / `end range` suffix; a single-thumb slider keeps the bare formatted value, matching
|
|
28
|
+
* Base UI (its default only appends the suffix when there are exactly two thumbs). A per-instance
|
|
29
|
+
* `getAriaValueText` always wins.
|
|
30
|
+
*/
|
|
31
|
+
declare function SliderThumb({
|
|
32
|
+
getAriaValueText,
|
|
33
|
+
...props
|
|
34
|
+
}: Slider$1.Thumb.Props): ReactElement;
|
|
35
|
+
/**
|
|
36
|
+
* A slider for picking a number (or a range) from a continuous scale. Built on Base UI's Slider; the
|
|
37
|
+
* noctis wrapper injects the active locale and, for range sliders, the translated start/end suffix on
|
|
38
|
+
* each thumb's value text. Compose `Slider.Root` with `Control` → `Track` → `Indicator` and one
|
|
39
|
+
* `Thumb` per value (`index={0}`, `index={1}` for a range).
|
|
40
|
+
*/
|
|
41
|
+
declare const Slider$1: {
|
|
42
|
+
Root: typeof SliderRoot;
|
|
43
|
+
Value: typeof SliderValue;
|
|
44
|
+
Control: typeof SliderControl;
|
|
45
|
+
Track: typeof SliderTrack;
|
|
46
|
+
Indicator: typeof SliderIndicator;
|
|
47
|
+
Thumb: typeof SliderThumb;
|
|
48
|
+
Label: typeof SliderLabel;
|
|
49
|
+
};
|
|
50
|
+
declare namespace Slider$1 {
|
|
51
|
+
namespace Root {
|
|
52
|
+
type Props = Slider.Root.Props & {
|
|
53
|
+
/** Override the translated range suffixes for this instance. */labels?: Partial<SliderLabels>;
|
|
54
|
+
};
|
|
55
|
+
type State = Slider.Root.State;
|
|
56
|
+
}
|
|
57
|
+
namespace Label {
|
|
58
|
+
type Props = Slider.Label.Props;
|
|
59
|
+
type State = Slider.Label.State;
|
|
60
|
+
}
|
|
61
|
+
namespace Value {
|
|
62
|
+
type Props = Slider.Value.Props;
|
|
63
|
+
type State = Slider.Value.State;
|
|
64
|
+
}
|
|
65
|
+
namespace Control {
|
|
66
|
+
type Props = Slider.Control.Props;
|
|
67
|
+
type State = Slider.Control.State;
|
|
68
|
+
}
|
|
69
|
+
namespace Track {
|
|
70
|
+
type Props = Slider.Track.Props;
|
|
71
|
+
type State = Slider.Track.State;
|
|
72
|
+
}
|
|
73
|
+
namespace Indicator {
|
|
74
|
+
type Props = Slider.Indicator.Props;
|
|
75
|
+
type State = Slider.Indicator.State;
|
|
76
|
+
}
|
|
77
|
+
namespace Thumb {
|
|
78
|
+
type Props = Slider.Thumb.Props;
|
|
79
|
+
type State = Slider.Thumb.State;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
//#endregion
|
|
83
|
+
export { Slider$1 as Slider };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useInjectedLabels, useInjectedLocale } from "../../core/use-injected-labels.js";
|
|
3
|
+
import { DEFAULT_SLIDER_LABELS, SliderProvider, useSliderContext } from "./context.js";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
import { Slider } from "@base-ui/react/slider";
|
|
6
|
+
//#region src/primitives/slider/slider.tsx
|
|
7
|
+
const LABEL_KEYS = {
|
|
8
|
+
startRange: "slider.startRange",
|
|
9
|
+
endRange: "slider.endRange"
|
|
10
|
+
};
|
|
11
|
+
function isRangeValue(value) {
|
|
12
|
+
return Array.isArray(value) && value.length === 2;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Owns the slider's value and shares the resolved range suffixes with its thumbs. Auto-injects the
|
|
16
|
+
* active locale (so the value formats for the reader); pass `locale` or `labels` to override.
|
|
17
|
+
*/
|
|
18
|
+
function SliderRoot({ labels: labelsProp, locale: localeProp, ...props }) {
|
|
19
|
+
const labels = useInjectedLabels(DEFAULT_SLIDER_LABELS, LABEL_KEYS, labelsProp);
|
|
20
|
+
const locale = useInjectedLocale();
|
|
21
|
+
return /* @__PURE__ */ jsx(SliderProvider, {
|
|
22
|
+
value: {
|
|
23
|
+
labels,
|
|
24
|
+
isRange: isRangeValue(props.value) || isRangeValue(props.defaultValue)
|
|
25
|
+
},
|
|
26
|
+
children: /* @__PURE__ */ jsx(Slider.Root, {
|
|
27
|
+
"data-slot": "noctis-slider",
|
|
28
|
+
locale: localeProp ?? locale,
|
|
29
|
+
...props
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
/** The slider's accessible label. */
|
|
34
|
+
function SliderLabel(props) {
|
|
35
|
+
return /* @__PURE__ */ jsx(Slider.Label, {
|
|
36
|
+
"data-slot": "noctis-slider-label",
|
|
37
|
+
...props
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/** The formatted value text, localized via the injected locale. */
|
|
41
|
+
function SliderValue(props) {
|
|
42
|
+
return /* @__PURE__ */ jsx(Slider.Value, {
|
|
43
|
+
"data-slot": "noctis-slider-value",
|
|
44
|
+
...props
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
/** The interactive track region the thumbs sit on. */
|
|
48
|
+
function SliderControl(props) {
|
|
49
|
+
return /* @__PURE__ */ jsx(Slider.Control, {
|
|
50
|
+
"data-slot": "noctis-slider-control",
|
|
51
|
+
...props
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/** The rail the indicator fills. */
|
|
55
|
+
function SliderTrack(props) {
|
|
56
|
+
return /* @__PURE__ */ jsx(Slider.Track, {
|
|
57
|
+
"data-slot": "noctis-slider-track",
|
|
58
|
+
...props
|
|
59
|
+
});
|
|
60
|
+
}
|
|
61
|
+
/** The filled portion of the track. */
|
|
62
|
+
function SliderIndicator(props) {
|
|
63
|
+
return /* @__PURE__ */ jsx(Slider.Indicator, {
|
|
64
|
+
"data-slot": "noctis-slider-indicator",
|
|
65
|
+
...props
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* A draggable thumb. For a two-thumb (range) slider the `aria-valuetext` gains the translated
|
|
70
|
+
* `start range` / `end range` suffix; a single-thumb slider keeps the bare formatted value, matching
|
|
71
|
+
* Base UI (its default only appends the suffix when there are exactly two thumbs). A per-instance
|
|
72
|
+
* `getAriaValueText` always wins.
|
|
73
|
+
*/
|
|
74
|
+
function SliderThumb({ getAriaValueText, ...props }) {
|
|
75
|
+
const { labels, isRange } = useSliderContext("Thumb");
|
|
76
|
+
const injected = isRange ? (formattedValue, _value, index) => index === 0 ? `${formattedValue} ${labels.startRange}` : `${formattedValue} ${labels.endRange}` : void 0;
|
|
77
|
+
return /* @__PURE__ */ jsx(Slider.Thumb, {
|
|
78
|
+
"data-slot": "noctis-slider-thumb",
|
|
79
|
+
...props,
|
|
80
|
+
getAriaValueText: getAriaValueText ?? injected
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* A slider for picking a number (or a range) from a continuous scale. Built on Base UI's Slider; the
|
|
85
|
+
* noctis wrapper injects the active locale and, for range sliders, the translated start/end suffix on
|
|
86
|
+
* each thumb's value text. Compose `Slider.Root` with `Control` → `Track` → `Indicator` and one
|
|
87
|
+
* `Thumb` per value (`index={0}`, `index={1}` for a range).
|
|
88
|
+
*/
|
|
89
|
+
const Slider$1 = {
|
|
90
|
+
Root: SliderRoot,
|
|
91
|
+
Value: SliderValue,
|
|
92
|
+
Control: SliderControl,
|
|
93
|
+
Track: SliderTrack,
|
|
94
|
+
Indicator: SliderIndicator,
|
|
95
|
+
Thumb: SliderThumb,
|
|
96
|
+
Label: SliderLabel
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
export { Slider$1 as Slider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "@base-ui/react/switch";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exportAll, __reExport } from "../_virtual/_rolldown/runtime.js";
|
|
2
|
+
export * from "@base-ui/react/tabs";
|
|
3
|
+
//#region src/primitives/tabs.ts
|
|
4
|
+
var tabs_exports = /* @__PURE__ */ __exportAll({});
|
|
5
|
+
import * as import__base_ui_react_tabs from "@base-ui/react/tabs";
|
|
6
|
+
__reExport(tabs_exports, import__base_ui_react_tabs);
|
|
7
|
+
//#endregion
|
|
8
|
+
export { tabs_exports };
|