@vjdesigns/vjdesigns-ui 0.0.0-stage → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +724 -3
- package/dist/ai/llms-full.txt +8231 -0
- package/dist/ai/llms.txt +196 -0
- package/dist/ai/mcp-server.mjs +212 -0
- package/dist/ai/registry.json +20490 -0
- package/dist/components/data-display/Accordion/Accordion.cjs.js +1 -0
- package/dist/components/data-display/Accordion/Accordion.d.ts +154 -0
- package/dist/components/data-display/Accordion/Accordion.mjs +327 -0
- package/dist/components/data-display/Accordion/Accordion.module.css.cjs.js +1 -0
- package/dist/components/data-display/Accordion/Accordion.module.css.mjs +31 -0
- package/dist/components/data-display/Accordion/index.d.ts +1 -0
- package/dist/components/data-display/Avatar/Avatar.cjs.js +1 -0
- package/dist/components/data-display/Avatar/Avatar.d.ts +114 -0
- package/dist/components/data-display/Avatar/Avatar.mjs +150 -0
- package/dist/components/data-display/Avatar/Avatar.module.css.cjs.js +1 -0
- package/dist/components/data-display/Avatar/Avatar.module.css.mjs +48 -0
- package/dist/components/data-display/Avatar/index.d.ts +1 -0
- package/dist/components/data-display/Badge/Badge.cjs.js +1 -0
- package/dist/components/data-display/Badge/Badge.d.ts +95 -0
- package/dist/components/data-display/Badge/Badge.mjs +100 -0
- package/dist/components/data-display/Badge/Badge.module.css.cjs.js +1 -0
- package/dist/components/data-display/Badge/Badge.module.css.mjs +43 -0
- package/dist/components/data-display/Badge/index.d.ts +1 -0
- package/dist/components/data-display/Card/Card.cjs.js +1 -0
- package/dist/components/data-display/Card/Card.d.ts +171 -0
- package/dist/components/data-display/Card/Card.mjs +178 -0
- package/dist/components/data-display/Card/Card.module.css.cjs.js +1 -0
- package/dist/components/data-display/Card/Card.module.css.mjs +59 -0
- package/dist/components/data-display/Card/index.d.ts +1 -0
- package/dist/components/data-display/Carousel/Carousel.cjs.js +1 -0
- package/dist/components/data-display/Carousel/Carousel.d.ts +117 -0
- package/dist/components/data-display/Carousel/Carousel.mjs +374 -0
- package/dist/components/data-display/Carousel/Carousel.module.css.cjs.js +1 -0
- package/dist/components/data-display/Carousel/Carousel.module.css.mjs +26 -0
- package/dist/components/data-display/Carousel/index.d.ts +1 -0
- package/dist/components/data-display/Chip/Chip.cjs.js +1 -0
- package/dist/components/data-display/Chip/Chip.d.ts +162 -0
- package/dist/components/data-display/Chip/Chip.mjs +223 -0
- package/dist/components/data-display/Chip/Chip.module.css.cjs.js +1 -0
- package/dist/components/data-display/Chip/Chip.module.css.mjs +45 -0
- package/dist/components/data-display/Chip/index.d.ts +1 -0
- package/dist/components/data-display/CodeBlock/CodeBlock.cjs.js +6 -0
- package/dist/components/data-display/CodeBlock/CodeBlock.d.ts +96 -0
- package/dist/components/data-display/CodeBlock/CodeBlock.mjs +207 -0
- package/dist/components/data-display/CodeBlock/CodeBlock.module.css.cjs.js +1 -0
- package/dist/components/data-display/CodeBlock/CodeBlock.module.css.mjs +48 -0
- package/dist/components/data-display/CodeBlock/index.d.ts +1 -0
- package/dist/components/data-display/CodeBlock/tokenize.cjs.js +13 -0
- package/dist/components/data-display/CodeBlock/tokenize.d.ts +26 -0
- package/dist/components/data-display/CodeBlock/tokenize.mjs +307 -0
- package/dist/components/data-display/DataGrid/DataGrid.cjs.js +1 -0
- package/dist/components/data-display/DataGrid/DataGrid.d.ts +183 -0
- package/dist/components/data-display/DataGrid/DataGrid.mjs +403 -0
- package/dist/components/data-display/DataGrid/DataGrid.module.css.cjs.js +1 -0
- package/dist/components/data-display/DataGrid/DataGrid.module.css.mjs +41 -0
- package/dist/components/data-display/DataGrid/dataGridUtils.cjs.js +1 -0
- package/dist/components/data-display/DataGrid/dataGridUtils.d.ts +28 -0
- package/dist/components/data-display/DataGrid/dataGridUtils.mjs +46 -0
- package/dist/components/data-display/DataGrid/index.d.ts +1 -0
- package/dist/components/data-display/EmptyState/EmptyState.cjs.js +1 -0
- package/dist/components/data-display/EmptyState/EmptyState.d.ts +112 -0
- package/dist/components/data-display/EmptyState/EmptyState.mjs +146 -0
- package/dist/components/data-display/EmptyState/EmptyState.module.css.cjs.js +1 -0
- package/dist/components/data-display/EmptyState/EmptyState.module.css.mjs +31 -0
- package/dist/components/data-display/EmptyState/index.d.ts +1 -0
- package/dist/components/data-display/Image/Image.cjs.js +1 -0
- package/dist/components/data-display/Image/Image.d.ts +107 -0
- package/dist/components/data-display/Image/Image.mjs +171 -0
- package/dist/components/data-display/Image/Image.module.css.cjs.js +1 -0
- package/dist/components/data-display/Image/Image.module.css.mjs +46 -0
- package/dist/components/data-display/Image/index.d.ts +1 -0
- package/dist/components/data-display/List/List.cjs.js +1 -0
- package/dist/components/data-display/List/List.d.ts +195 -0
- package/dist/components/data-display/List/List.mjs +200 -0
- package/dist/components/data-display/List/List.module.css.cjs.js +1 -0
- package/dist/components/data-display/List/List.module.css.mjs +33 -0
- package/dist/components/data-display/List/index.d.ts +1 -0
- package/dist/components/data-display/Stat/Stat.cjs.js +1 -0
- package/dist/components/data-display/Stat/Stat.d.ts +149 -0
- package/dist/components/data-display/Stat/Stat.mjs +224 -0
- package/dist/components/data-display/Stat/Stat.module.css.cjs.js +1 -0
- package/dist/components/data-display/Stat/Stat.module.css.mjs +60 -0
- package/dist/components/data-display/Stat/index.d.ts +1 -0
- package/dist/components/data-display/Table/Table.cjs.js +1 -0
- package/dist/components/data-display/Table/Table.d.ts +255 -0
- package/dist/components/data-display/Table/Table.mjs +333 -0
- package/dist/components/data-display/Table/Table.module.css.cjs.js +1 -0
- package/dist/components/data-display/Table/Table.module.css.mjs +55 -0
- package/dist/components/data-display/Table/index.d.ts +1 -0
- package/dist/components/data-display/Table/useTable.cjs.js +1 -0
- package/dist/components/data-display/Table/useTable.d.ts +118 -0
- package/dist/components/data-display/Table/useTable.mjs +89 -0
- package/dist/components/data-display/Timeline/Timeline.cjs.js +1 -0
- package/dist/components/data-display/Timeline/Timeline.d.ts +92 -0
- package/dist/components/data-display/Timeline/Timeline.mjs +140 -0
- package/dist/components/data-display/Timeline/Timeline.module.css.cjs.js +1 -0
- package/dist/components/data-display/Timeline/Timeline.module.css.mjs +46 -0
- package/dist/components/data-display/Timeline/index.d.ts +1 -0
- package/dist/components/data-display/TreeView/TreeView.cjs.js +1 -0
- package/dist/components/data-display/TreeView/TreeView.d.ts +86 -0
- package/dist/components/data-display/TreeView/TreeView.mjs +361 -0
- package/dist/components/data-display/TreeView/TreeView.module.css.cjs.js +1 -0
- package/dist/components/data-display/TreeView/TreeView.module.css.mjs +24 -0
- package/dist/components/data-display/TreeView/index.d.ts +1 -0
- package/dist/components/data-display/TreeView/treeUtils.cjs.js +1 -0
- package/dist/components/data-display/TreeView/treeUtils.d.ts +82 -0
- package/dist/components/data-display/TreeView/treeUtils.mjs +54 -0
- package/dist/components/data-display/VirtualList/VirtualList.cjs.js +1 -0
- package/dist/components/data-display/VirtualList/VirtualList.d.ts +66 -0
- package/dist/components/data-display/VirtualList/VirtualList.mjs +53 -0
- package/dist/components/data-display/VirtualList/VirtualList.module.css.cjs.js +1 -0
- package/dist/components/data-display/VirtualList/VirtualList.module.css.mjs +9 -0
- package/dist/components/data-display/VirtualList/index.d.ts +1 -0
- package/dist/components/feedback/Alert/Alert.cjs.js +1 -0
- package/dist/components/feedback/Alert/Alert.d.ts +101 -0
- package/dist/components/feedback/Alert/Alert.mjs +113 -0
- package/dist/components/feedback/Alert/Alert.module.css.cjs.js +1 -0
- package/dist/components/feedback/Alert/Alert.module.css.mjs +32 -0
- package/dist/components/feedback/Alert/index.d.ts +1 -0
- package/dist/components/feedback/Banner/Banner.cjs.js +1 -0
- package/dist/components/feedback/Banner/Banner.d.ts +132 -0
- package/dist/components/feedback/Banner/Banner.mjs +199 -0
- package/dist/components/feedback/Banner/Banner.module.css.cjs.js +1 -0
- package/dist/components/feedback/Banner/Banner.module.css.mjs +40 -0
- package/dist/components/feedback/Banner/index.d.ts +1 -0
- package/dist/components/feedback/ErrorSummary/ErrorSummary.cjs.js +1 -0
- package/dist/components/feedback/ErrorSummary/ErrorSummary.d.ts +29 -0
- package/dist/components/feedback/ErrorSummary/ErrorSummary.mjs +38 -0
- package/dist/components/feedback/ErrorSummary/ErrorSummary.module.css.cjs.js +1 -0
- package/dist/components/feedback/ErrorSummary/ErrorSummary.module.css.mjs +7 -0
- package/dist/components/feedback/ErrorSummary/index.d.ts +1 -0
- package/dist/components/feedback/Progress/Progress.cjs.js +1 -0
- package/dist/components/feedback/Progress/Progress.d.ts +150 -0
- package/dist/components/feedback/Progress/Progress.mjs +238 -0
- package/dist/components/feedback/Progress/Progress.module.css.cjs.js +1 -0
- package/dist/components/feedback/Progress/Progress.module.css.mjs +57 -0
- package/dist/components/feedback/Progress/index.d.ts +1 -0
- package/dist/components/feedback/Skeleton/Skeleton.cjs.js +1 -0
- package/dist/components/feedback/Skeleton/Skeleton.d.ts +151 -0
- package/dist/components/feedback/Skeleton/Skeleton.mjs +157 -0
- package/dist/components/feedback/Skeleton/Skeleton.module.css.cjs.js +1 -0
- package/dist/components/feedback/Skeleton/Skeleton.module.css.mjs +63 -0
- package/dist/components/feedback/Skeleton/index.d.ts +1 -0
- package/dist/components/feedback/Spinner/Spinner.cjs.js +1 -0
- package/dist/components/feedback/Spinner/Spinner.d.ts +72 -0
- package/dist/components/feedback/Spinner/Spinner.mjs +67 -0
- package/dist/components/feedback/Spinner/Spinner.module.css.cjs.js +1 -0
- package/dist/components/feedback/Spinner/Spinner.module.css.mjs +29 -0
- package/dist/components/feedback/Spinner/index.d.ts +1 -0
- package/dist/components/feedback/Toast/Toast.cjs.js +1 -0
- package/dist/components/feedback/Toast/Toast.d.ts +52 -0
- package/dist/components/feedback/Toast/Toast.mjs +89 -0
- package/dist/components/feedback/Toast/Toast.module.css.cjs.js +1 -0
- package/dist/components/feedback/Toast/Toast.module.css.mjs +48 -0
- package/dist/components/feedback/Toast/Toast.storyHelpers.d.ts +21 -0
- package/dist/components/feedback/Toast/ToastItem.cjs.js +1 -0
- package/dist/components/feedback/Toast/ToastItem.d.ts +18 -0
- package/dist/components/feedback/Toast/ToastItem.mjs +61 -0
- package/dist/components/feedback/Toast/ToastProvider.cjs.js +1 -0
- package/dist/components/feedback/Toast/ToastProvider.d.ts +62 -0
- package/dist/components/feedback/Toast/ToastProvider.mjs +36 -0
- package/dist/components/feedback/Toast/ToastViewport.cjs.js +1 -0
- package/dist/components/feedback/Toast/ToastViewport.d.ts +25 -0
- package/dist/components/feedback/Toast/ToastViewport.mjs +137 -0
- package/dist/components/feedback/Toast/index.d.ts +5 -0
- package/dist/components/feedback/Toast/toastStore.cjs.js +1 -0
- package/dist/components/feedback/Toast/toastStore.d.ts +46 -0
- package/dist/components/feedback/Toast/toastStore.mjs +86 -0
- package/dist/components/feedback/Toast/toastTiming.cjs.js +1 -0
- package/dist/components/feedback/Toast/toastTiming.d.ts +27 -0
- package/dist/components/feedback/Toast/toastTiming.mjs +43 -0
- package/dist/components/feedback/Toast/toastTypes.d.ts +136 -0
- package/dist/components/feedback/Toast/useToast.cjs.js +1 -0
- package/dist/components/feedback/Toast/useToast.d.ts +32 -0
- package/dist/components/feedback/Toast/useToast.mjs +16 -0
- package/dist/components/feedback/Toast/useToastAnnouncer.cjs.js +1 -0
- package/dist/components/feedback/Toast/useToastAnnouncer.d.ts +15 -0
- package/dist/components/feedback/Toast/useToastAnnouncer.mjs +39 -0
- package/dist/components/forms/CheckBox/CheckBox.cjs.js +1 -0
- package/dist/components/forms/CheckBox/CheckBox.d.ts +79 -0
- package/dist/components/forms/CheckBox/CheckBox.mjs +168 -0
- package/dist/components/forms/CheckBox/CheckBox.module.css.cjs.js +1 -0
- package/dist/components/forms/CheckBox/CheckBox.module.css.mjs +33 -0
- package/dist/components/forms/CheckBox/index.d.ts +1 -0
- package/dist/components/forms/ColorPicker/ColorInput.cjs.js +1 -0
- package/dist/components/forms/ColorPicker/ColorInput.d.ts +38 -0
- package/dist/components/forms/ColorPicker/ColorInput.mjs +113 -0
- package/dist/components/forms/ColorPicker/ColorPicker.cjs.js +1 -0
- package/dist/components/forms/ColorPicker/ColorPicker.d.ts +129 -0
- package/dist/components/forms/ColorPicker/ColorPicker.mjs +554 -0
- package/dist/components/forms/ColorPicker/ColorPicker.module.css.cjs.js +1 -0
- package/dist/components/forms/ColorPicker/ColorPicker.module.css.mjs +45 -0
- package/dist/components/forms/ColorPicker/colorUtils.cjs.js +1 -0
- package/dist/components/forms/ColorPicker/colorUtils.d.ts +86 -0
- package/dist/components/forms/ColorPicker/colorUtils.mjs +184 -0
- package/dist/components/forms/ColorPicker/index.d.ts +2 -0
- package/dist/components/forms/Combobox/Combobox.cjs.js +1 -0
- package/dist/components/forms/Combobox/Combobox.d.ts +172 -0
- package/dist/components/forms/Combobox/Combobox.mjs +364 -0
- package/dist/components/forms/Combobox/Combobox.module.css.cjs.js +1 -0
- package/dist/components/forms/Combobox/Combobox.module.css.mjs +37 -0
- package/dist/components/forms/Combobox/ComboboxPopup.cjs.js +1 -0
- package/dist/components/forms/Combobox/ComboboxPopup.d.ts +40 -0
- package/dist/components/forms/Combobox/ComboboxPopup.mjs +183 -0
- package/dist/components/forms/Combobox/comboboxUtils.cjs.js +1 -0
- package/dist/components/forms/Combobox/comboboxUtils.d.ts +70 -0
- package/dist/components/forms/Combobox/comboboxUtils.mjs +57 -0
- package/dist/components/forms/Combobox/index.d.ts +1 -0
- package/dist/components/forms/DatePicker/Calendar.cjs.js +1 -0
- package/dist/components/forms/DatePicker/Calendar.d.ts +98 -0
- package/dist/components/forms/DatePicker/Calendar.mjs +228 -0
- package/dist/components/forms/DatePicker/Calendar.module.css.cjs.js +1 -0
- package/dist/components/forms/DatePicker/Calendar.module.css.mjs +25 -0
- package/dist/components/forms/DatePicker/DatePicker.cjs.js +1 -0
- package/dist/components/forms/DatePicker/DatePicker.d.ts +100 -0
- package/dist/components/forms/DatePicker/DatePicker.mjs +186 -0
- package/dist/components/forms/DatePicker/DatePicker.module.css.cjs.js +1 -0
- package/dist/components/forms/DatePicker/DatePicker.module.css.mjs +11 -0
- package/dist/components/forms/DatePicker/DateRangePicker.cjs.js +1 -0
- package/dist/components/forms/DatePicker/DateRangePicker.d.ts +124 -0
- package/dist/components/forms/DatePicker/DateRangePicker.mjs +250 -0
- package/dist/components/forms/DatePicker/DateRangePicker.module.css.cjs.js +1 -0
- package/dist/components/forms/DatePicker/DateRangePicker.module.css.mjs +15 -0
- package/dist/components/forms/DatePicker/dateUtils.cjs.js +1 -0
- package/dist/components/forms/DatePicker/dateUtils.d.ts +88 -0
- package/dist/components/forms/DatePicker/dateUtils.mjs +204 -0
- package/dist/components/forms/DatePicker/index.d.ts +4 -0
- package/dist/components/forms/DateTimePicker/DateTimePicker.cjs.js +1 -0
- package/dist/components/forms/DateTimePicker/DateTimePicker.d.ts +101 -0
- package/dist/components/forms/DateTimePicker/DateTimePicker.mjs +120 -0
- package/dist/components/forms/DateTimePicker/DateTimePicker.module.css.cjs.js +1 -0
- package/dist/components/forms/DateTimePicker/DateTimePicker.module.css.mjs +12 -0
- package/dist/components/forms/DateTimePicker/index.d.ts +1 -0
- package/dist/components/forms/Field/Field.cjs.js +1 -0
- package/dist/components/forms/Field/Field.d.ts +171 -0
- package/dist/components/forms/Field/Field.mjs +277 -0
- package/dist/components/forms/Field/Field.module.css.cjs.js +1 -0
- package/dist/components/forms/Field/Field.module.css.mjs +29 -0
- package/dist/components/forms/Field/FieldContext.cjs.js +1 -0
- package/dist/components/forms/Field/FieldContext.d.ts +74 -0
- package/dist/components/forms/Field/FieldContext.mjs +29 -0
- package/dist/components/forms/Field/index.d.ts +2 -0
- package/dist/components/forms/FileUpload/FileUpload.cjs.js +1 -0
- package/dist/components/forms/FileUpload/FileUpload.d.ts +153 -0
- package/dist/components/forms/FileUpload/FileUpload.mjs +447 -0
- package/dist/components/forms/FileUpload/FileUpload.module.css.cjs.js +1 -0
- package/dist/components/forms/FileUpload/FileUpload.module.css.mjs +40 -0
- package/dist/components/forms/FileUpload/index.d.ts +1 -0
- package/dist/components/forms/Input/Input.cjs.js +1 -0
- package/dist/components/forms/Input/Input.d.ts +98 -0
- package/dist/components/forms/Input/Input.mjs +147 -0
- package/dist/components/forms/Input/Input.module.css.cjs.js +1 -0
- package/dist/components/forms/Input/Input.module.css.mjs +36 -0
- package/dist/components/forms/Input/index.d.ts +1 -0
- package/dist/components/forms/NumberInput/NumberInput.cjs.js +1 -0
- package/dist/components/forms/NumberInput/NumberInput.d.ts +87 -0
- package/dist/components/forms/NumberInput/NumberInput.mjs +309 -0
- package/dist/components/forms/NumberInput/NumberInput.module.css.cjs.js +1 -0
- package/dist/components/forms/NumberInput/NumberInput.module.css.mjs +13 -0
- package/dist/components/forms/NumberInput/index.d.ts +1 -0
- package/dist/components/forms/PasswordInput/PasswordInput.cjs.js +1 -0
- package/dist/components/forms/PasswordInput/PasswordInput.d.ts +117 -0
- package/dist/components/forms/PasswordInput/PasswordInput.mjs +253 -0
- package/dist/components/forms/PasswordInput/PasswordInput.module.css.cjs.js +1 -0
- package/dist/components/forms/PasswordInput/PasswordInput.module.css.mjs +33 -0
- package/dist/components/forms/PasswordInput/index.d.ts +1 -0
- package/dist/components/forms/PinInput/PinInput.cjs.js +1 -0
- package/dist/components/forms/PinInput/PinInput.d.ts +92 -0
- package/dist/components/forms/PinInput/PinInput.mjs +221 -0
- package/dist/components/forms/PinInput/PinInput.module.css.cjs.js +1 -0
- package/dist/components/forms/PinInput/PinInput.module.css.mjs +34 -0
- package/dist/components/forms/PinInput/index.d.ts +1 -0
- package/dist/components/forms/Radio/Radio.cjs.js +1 -0
- package/dist/components/forms/Radio/Radio.d.ts +119 -0
- package/dist/components/forms/Radio/Radio.mjs +220 -0
- package/dist/components/forms/Radio/Radio.module.css.cjs.js +1 -0
- package/dist/components/forms/Radio/Radio.module.css.mjs +43 -0
- package/dist/components/forms/Radio/index.d.ts +1 -0
- package/dist/components/forms/Rating/Rating.cjs.js +1 -0
- package/dist/components/forms/Rating/Rating.d.ts +128 -0
- package/dist/components/forms/Rating/Rating.mjs +228 -0
- package/dist/components/forms/Rating/Rating.module.css.cjs.js +1 -0
- package/dist/components/forms/Rating/Rating.module.css.mjs +42 -0
- package/dist/components/forms/Rating/index.d.ts +1 -0
- package/dist/components/forms/SearchInput/SearchInput.cjs.js +1 -0
- package/dist/components/forms/SearchInput/SearchInput.d.ts +124 -0
- package/dist/components/forms/SearchInput/SearchInput.mjs +220 -0
- package/dist/components/forms/SearchInput/SearchInput.module.css.cjs.js +1 -0
- package/dist/components/forms/SearchInput/SearchInput.module.css.mjs +8 -0
- package/dist/components/forms/SearchInput/index.d.ts +1 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.cjs.js +1 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.d.ts +120 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.mjs +171 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.module.css.cjs.js +1 -0
- package/dist/components/forms/SegmentedControl/SegmentedControl.module.css.mjs +33 -0
- package/dist/components/forms/SegmentedControl/index.d.ts +1 -0
- package/dist/components/forms/Select/Select.cjs.js +1 -0
- package/dist/components/forms/Select/Select.d.ts +86 -0
- package/dist/components/forms/Select/Select.mjs +107 -0
- package/dist/components/forms/Select/Select.module.css.cjs.js +1 -0
- package/dist/components/forms/Select/Select.module.css.mjs +27 -0
- package/dist/components/forms/Select/index.d.ts +1 -0
- package/dist/components/forms/Slider/Slider.cjs.js +1 -0
- package/dist/components/forms/Slider/Slider.d.ts +84 -0
- package/dist/components/forms/Slider/Slider.mjs +251 -0
- package/dist/components/forms/Slider/Slider.module.css.cjs.js +1 -0
- package/dist/components/forms/Slider/Slider.module.css.mjs +29 -0
- package/dist/components/forms/Slider/index.d.ts +1 -0
- package/dist/components/forms/Switch/Switch.cjs.js +1 -0
- package/dist/components/forms/Switch/Switch.d.ts +62 -0
- package/dist/components/forms/Switch/Switch.mjs +135 -0
- package/dist/components/forms/Switch/Switch.module.css.cjs.js +1 -0
- package/dist/components/forms/Switch/Switch.module.css.mjs +30 -0
- package/dist/components/forms/Switch/index.d.ts +1 -0
- package/dist/components/forms/TagInput/TagInput.cjs.js +1 -0
- package/dist/components/forms/TagInput/TagInput.d.ts +144 -0
- package/dist/components/forms/TagInput/TagInput.mjs +311 -0
- package/dist/components/forms/TagInput/TagInput.module.css.cjs.js +1 -0
- package/dist/components/forms/TagInput/TagInput.module.css.mjs +22 -0
- package/dist/components/forms/TagInput/index.d.ts +1 -0
- package/dist/components/forms/Textarea/Textarea.cjs.js +1 -0
- package/dist/components/forms/Textarea/Textarea.d.ts +62 -0
- package/dist/components/forms/Textarea/Textarea.mjs +151 -0
- package/dist/components/forms/Textarea/Textarea.module.css.cjs.js +1 -0
- package/dist/components/forms/Textarea/Textarea.module.css.mjs +30 -0
- package/dist/components/forms/Textarea/index.d.ts +1 -0
- package/dist/components/forms/TimePicker/TimePicker.cjs.js +1 -0
- package/dist/components/forms/TimePicker/TimePicker.d.ts +116 -0
- package/dist/components/forms/TimePicker/TimePicker.mjs +161 -0
- package/dist/components/forms/TimePicker/TimePicker.module.css.cjs.js +1 -0
- package/dist/components/forms/TimePicker/TimePicker.module.css.mjs +9 -0
- package/dist/components/forms/TimePicker/index.d.ts +1 -0
- package/dist/components/forms/TimePicker/timeUtils.cjs.js +1 -0
- package/dist/components/forms/TimePicker/timeUtils.d.ts +23 -0
- package/dist/components/forms/TimePicker/timeUtils.mjs +117 -0
- package/dist/components/forms/ToggleGroup/ToggleGroup.cjs.js +1 -0
- package/dist/components/forms/ToggleGroup/ToggleGroup.d.ts +153 -0
- package/dist/components/forms/ToggleGroup/ToggleGroup.mjs +201 -0
- package/dist/components/forms/ToggleGroup/ToggleGroup.module.css.cjs.js +1 -0
- package/dist/components/forms/ToggleGroup/ToggleGroup.module.css.mjs +58 -0
- package/dist/components/forms/ToggleGroup/index.d.ts +1 -0
- package/dist/components/layout/Box/Box.cjs.js +1 -0
- package/dist/components/layout/Box/Box.d.ts +120 -0
- package/dist/components/layout/Box/Box.mjs +158 -0
- package/dist/components/layout/Box/Box.module.css.cjs.js +1 -0
- package/dist/components/layout/Box/Box.module.css.mjs +83 -0
- package/dist/components/layout/Box/index.d.ts +1 -0
- package/dist/components/layout/Container/Container.cjs.js +1 -0
- package/dist/components/layout/Container/Container.d.ts +30 -0
- package/dist/components/layout/Container/Container.mjs +48 -0
- package/dist/components/layout/Container/Container.module.css.cjs.js +1 -0
- package/dist/components/layout/Container/Container.module.css.mjs +43 -0
- package/dist/components/layout/Container/index.d.ts +1 -0
- package/dist/components/layout/Divider/Divider.cjs.js +1 -0
- package/dist/components/layout/Divider/Divider.d.ts +65 -0
- package/dist/components/layout/Divider/Divider.mjs +77 -0
- package/dist/components/layout/Divider/Divider.module.css.cjs.js +1 -0
- package/dist/components/layout/Divider/Divider.module.css.mjs +31 -0
- package/dist/components/layout/Divider/index.d.ts +1 -0
- package/dist/components/layout/Flex/Flex.cjs.js +1 -0
- package/dist/components/layout/Flex/Flex.d.ts +96 -0
- package/dist/components/layout/Flex/Flex.mjs +60 -0
- package/dist/components/layout/Flex/Flex.module.css.cjs.js +1 -0
- package/dist/components/layout/Flex/Flex.module.css.mjs +60 -0
- package/dist/components/layout/Flex/index.d.ts +1 -0
- package/dist/components/layout/Grid/Grid.cjs.js +1 -0
- package/dist/components/layout/Grid/Grid.d.ts +127 -0
- package/dist/components/layout/Grid/Grid.mjs +74 -0
- package/dist/components/layout/Grid/Grid.module.css.cjs.js +1 -0
- package/dist/components/layout/Grid/Grid.module.css.mjs +22 -0
- package/dist/components/layout/Grid/index.d.ts +1 -0
- package/dist/components/layout/ResizablePanels/ResizablePanels.cjs.js +1 -0
- package/dist/components/layout/ResizablePanels/ResizablePanels.d.ts +48 -0
- package/dist/components/layout/ResizablePanels/ResizablePanels.mjs +175 -0
- package/dist/components/layout/ResizablePanels/ResizablePanels.module.css.cjs.js +1 -0
- package/dist/components/layout/ResizablePanels/ResizablePanels.module.css.mjs +9 -0
- package/dist/components/layout/ResizablePanels/index.d.ts +1 -0
- package/dist/components/layout/ScrollArea/ScrollArea.cjs.js +1 -0
- package/dist/components/layout/ScrollArea/ScrollArea.d.ts +65 -0
- package/dist/components/layout/ScrollArea/ScrollArea.mjs +152 -0
- package/dist/components/layout/ScrollArea/ScrollArea.module.css.cjs.js +1 -0
- package/dist/components/layout/ScrollArea/ScrollArea.module.css.mjs +13 -0
- package/dist/components/layout/ScrollArea/index.d.ts +1 -0
- package/dist/components/layout/Stack/Stack.cjs.js +1 -0
- package/dist/components/layout/Stack/Stack.d.ts +81 -0
- package/dist/components/layout/Stack/Stack.mjs +70 -0
- package/dist/components/layout/Stack/Stack.module.css.cjs.js +1 -0
- package/dist/components/layout/Stack/Stack.module.css.mjs +43 -0
- package/dist/components/layout/Stack/index.d.ts +1 -0
- package/dist/components/navigation/Breadcrumbs/Breadcrumbs.cjs.js +1 -0
- package/dist/components/navigation/Breadcrumbs/Breadcrumbs.d.ts +111 -0
- package/dist/components/navigation/Breadcrumbs/Breadcrumbs.mjs +147 -0
- package/dist/components/navigation/Breadcrumbs/Breadcrumbs.module.css.cjs.js +1 -0
- package/dist/components/navigation/Breadcrumbs/Breadcrumbs.module.css.mjs +21 -0
- package/dist/components/navigation/Breadcrumbs/index.d.ts +1 -0
- package/dist/components/navigation/ContextMenu/ContextMenu.cjs.js +1 -0
- package/dist/components/navigation/ContextMenu/ContextMenu.d.ts +67 -0
- package/dist/components/navigation/ContextMenu/ContextMenu.mjs +168 -0
- package/dist/components/navigation/ContextMenu/ContextMenu.module.css.cjs.js +1 -0
- package/dist/components/navigation/ContextMenu/ContextMenu.module.css.mjs +7 -0
- package/dist/components/navigation/ContextMenu/index.d.ts +1 -0
- package/dist/components/navigation/Link/Link.cjs.js +1 -0
- package/dist/components/navigation/Link/Link.d.ts +93 -0
- package/dist/components/navigation/Link/Link.mjs +83 -0
- package/dist/components/navigation/Link/Link.module.css.cjs.js +1 -0
- package/dist/components/navigation/Link/Link.module.css.mjs +31 -0
- package/dist/components/navigation/Link/index.d.ts +1 -0
- package/dist/components/navigation/Menu/Menu.cjs.js +1 -0
- package/dist/components/navigation/Menu/Menu.d.ts +61 -0
- package/dist/components/navigation/Menu/Menu.mjs +72 -0
- package/dist/components/navigation/Menu/Menu.module.css.cjs.js +1 -0
- package/dist/components/navigation/Menu/Menu.module.css.mjs +22 -0
- package/dist/components/navigation/Menu/MenuContent.cjs.js +1 -0
- package/dist/components/navigation/Menu/MenuContent.d.ts +46 -0
- package/dist/components/navigation/Menu/MenuContent.mjs +180 -0
- package/dist/components/navigation/Menu/MenuContext.cjs.js +1 -0
- package/dist/components/navigation/Menu/MenuContext.d.ts +84 -0
- package/dist/components/navigation/Menu/MenuContext.mjs +60 -0
- package/dist/components/navigation/Menu/MenuItem.cjs.js +1 -0
- package/dist/components/navigation/Menu/MenuItem.d.ts +133 -0
- package/dist/components/navigation/Menu/MenuItem.mjs +250 -0
- package/dist/components/navigation/Menu/MenuSub.cjs.js +1 -0
- package/dist/components/navigation/Menu/MenuSub.d.ts +28 -0
- package/dist/components/navigation/Menu/MenuSub.mjs +93 -0
- package/dist/components/navigation/Menu/index.d.ts +1 -0
- package/dist/components/navigation/Menu/useMenuRoot.cjs.js +1 -0
- package/dist/components/navigation/Menu/useMenuRoot.d.ts +14 -0
- package/dist/components/navigation/Menu/useMenuRoot.mjs +59 -0
- package/dist/components/navigation/Navbar/Navbar.cjs.js +1 -0
- package/dist/components/navigation/Navbar/Navbar.d.ts +245 -0
- package/dist/components/navigation/Navbar/Navbar.mjs +249 -0
- package/dist/components/navigation/Navbar/Navbar.module.css.cjs.js +1 -0
- package/dist/components/navigation/Navbar/Navbar.module.css.mjs +49 -0
- package/dist/components/navigation/Navbar/index.d.ts +1 -0
- package/dist/components/navigation/Pagination/Pagination.cjs.js +1 -0
- package/dist/components/navigation/Pagination/Pagination.d.ts +97 -0
- package/dist/components/navigation/Pagination/Pagination.mjs +133 -0
- package/dist/components/navigation/Pagination/Pagination.module.css.cjs.js +1 -0
- package/dist/components/navigation/Pagination/Pagination.module.css.mjs +19 -0
- package/dist/components/navigation/Pagination/index.d.ts +1 -0
- package/dist/components/navigation/Sidebar/Sidebar.cjs.js +1 -0
- package/dist/components/navigation/Sidebar/Sidebar.d.ts +90 -0
- package/dist/components/navigation/Sidebar/Sidebar.mjs +113 -0
- package/dist/components/navigation/Sidebar/Sidebar.module.css.cjs.js +1 -0
- package/dist/components/navigation/Sidebar/Sidebar.module.css.mjs +34 -0
- package/dist/components/navigation/Sidebar/Sidebar.storyHelpers.d.ts +27 -0
- package/dist/components/navigation/Sidebar/SidebarContext.cjs.js +1 -0
- package/dist/components/navigation/Sidebar/SidebarContext.d.ts +45 -0
- package/dist/components/navigation/Sidebar/SidebarContext.mjs +21 -0
- package/dist/components/navigation/Sidebar/SidebarParts.cjs.js +1 -0
- package/dist/components/navigation/Sidebar/SidebarParts.d.ts +179 -0
- package/dist/components/navigation/Sidebar/SidebarParts.mjs +242 -0
- package/dist/components/navigation/Sidebar/index.d.ts +1 -0
- package/dist/components/navigation/SkipLink/SkipLink.cjs.js +1 -0
- package/dist/components/navigation/SkipLink/SkipLink.d.ts +41 -0
- package/dist/components/navigation/SkipLink/SkipLink.mjs +52 -0
- package/dist/components/navigation/SkipLink/SkipLink.module.css.cjs.js +1 -0
- package/dist/components/navigation/SkipLink/SkipLink.module.css.mjs +8 -0
- package/dist/components/navigation/SkipLink/index.d.ts +1 -0
- package/dist/components/navigation/Stepper/Stepper.cjs.js +1 -0
- package/dist/components/navigation/Stepper/Stepper.d.ts +109 -0
- package/dist/components/navigation/Stepper/Stepper.mjs +185 -0
- package/dist/components/navigation/Stepper/Stepper.module.css.cjs.js +1 -0
- package/dist/components/navigation/Stepper/Stepper.module.css.mjs +32 -0
- package/dist/components/navigation/Stepper/index.d.ts +1 -0
- package/dist/components/navigation/Tabs/Tabs.cjs.js +1 -0
- package/dist/components/navigation/Tabs/Tabs.d.ts +132 -0
- package/dist/components/navigation/Tabs/Tabs.mjs +300 -0
- package/dist/components/navigation/Tabs/Tabs.module.css.cjs.js +1 -0
- package/dist/components/navigation/Tabs/Tabs.module.css.mjs +26 -0
- package/dist/components/navigation/Tabs/index.d.ts +1 -0
- package/dist/components/overlays/CommandPalette/CommandPalette.cjs.js +1 -0
- package/dist/components/overlays/CommandPalette/CommandPalette.d.ts +152 -0
- package/dist/components/overlays/CommandPalette/CommandPalette.mjs +375 -0
- package/dist/components/overlays/CommandPalette/CommandPalette.module.css.cjs.js +1 -0
- package/dist/components/overlays/CommandPalette/CommandPalette.module.css.mjs +33 -0
- package/dist/components/overlays/CommandPalette/CommandPaletteContext.cjs.js +1 -0
- package/dist/components/overlays/CommandPalette/CommandPaletteContext.d.ts +96 -0
- package/dist/components/overlays/CommandPalette/CommandPaletteContext.mjs +11 -0
- package/dist/components/overlays/CommandPalette/CommandPaletteParts.cjs.js +1 -0
- package/dist/components/overlays/CommandPalette/CommandPaletteParts.d.ts +115 -0
- package/dist/components/overlays/CommandPalette/CommandPaletteParts.mjs +304 -0
- package/dist/components/overlays/CommandPalette/commandPaletteUtils.cjs.js +1 -0
- package/dist/components/overlays/CommandPalette/commandPaletteUtils.d.ts +50 -0
- package/dist/components/overlays/CommandPalette/commandPaletteUtils.mjs +147 -0
- package/dist/components/overlays/CommandPalette/index.d.ts +1 -0
- package/dist/components/overlays/Drawer/Drawer.cjs.js +1 -0
- package/dist/components/overlays/Drawer/Drawer.d.ts +148 -0
- package/dist/components/overlays/Drawer/Drawer.mjs +106 -0
- package/dist/components/overlays/Drawer/Drawer.module.css.cjs.js +1 -0
- package/dist/components/overlays/Drawer/Drawer.module.css.mjs +34 -0
- package/dist/components/overlays/Drawer/Drawer.storyHelpers.d.ts +16 -0
- package/dist/components/overlays/Drawer/DrawerContent.cjs.js +1 -0
- package/dist/components/overlays/Drawer/DrawerContent.d.ts +27 -0
- package/dist/components/overlays/Drawer/DrawerContent.mjs +192 -0
- package/dist/components/overlays/Drawer/DrawerContext.cjs.js +1 -0
- package/dist/components/overlays/Drawer/DrawerContext.d.ts +39 -0
- package/dist/components/overlays/Drawer/DrawerContext.mjs +10 -0
- package/dist/components/overlays/Drawer/DrawerParts.cjs.js +1 -0
- package/dist/components/overlays/Drawer/DrawerParts.d.ts +65 -0
- package/dist/components/overlays/Drawer/DrawerParts.mjs +63 -0
- package/dist/components/overlays/Drawer/index.d.ts +1 -0
- package/dist/components/overlays/Drawer/internal.cjs.js +1 -0
- package/dist/components/overlays/Drawer/internal.d.ts +1 -0
- package/dist/components/overlays/Drawer/internal.mjs +4 -0
- package/dist/components/overlays/Drawer/useDragToClose.cjs.js +1 -0
- package/dist/components/overlays/Drawer/useDragToClose.d.ts +28 -0
- package/dist/components/overlays/Drawer/useDragToClose.mjs +42 -0
- package/dist/components/overlays/HoverCard/HoverCard.cjs.js +1 -0
- package/dist/components/overlays/HoverCard/HoverCard.d.ts +50 -0
- package/dist/components/overlays/HoverCard/HoverCard.mjs +173 -0
- package/dist/components/overlays/HoverCard/HoverCard.module.css.cjs.js +1 -0
- package/dist/components/overlays/HoverCard/HoverCard.module.css.mjs +12 -0
- package/dist/components/overlays/HoverCard/index.d.ts +1 -0
- package/dist/components/overlays/Modal/ConfirmModal.cjs.js +1 -0
- package/dist/components/overlays/Modal/ConfirmModal.d.ts +47 -0
- package/dist/components/overlays/Modal/ConfirmModal.mjs +76 -0
- package/dist/components/overlays/Modal/Modal.cjs.js +1 -0
- package/dist/components/overlays/Modal/Modal.d.ts +150 -0
- package/dist/components/overlays/Modal/Modal.mjs +153 -0
- package/dist/components/overlays/Modal/Modal.module.css.cjs.js +1 -0
- package/dist/components/overlays/Modal/Modal.module.css.mjs +36 -0
- package/dist/components/overlays/Modal/ModalContent.cjs.js +1 -0
- package/dist/components/overlays/Modal/ModalContent.d.ts +12 -0
- package/dist/components/overlays/Modal/ModalContent.mjs +160 -0
- package/dist/components/overlays/Modal/ModalContext.cjs.js +1 -0
- package/dist/components/overlays/Modal/ModalContext.d.ts +56 -0
- package/dist/components/overlays/Modal/ModalContext.mjs +10 -0
- package/dist/components/overlays/Modal/index.d.ts +2 -0
- package/dist/components/overlays/Modal/useScrollRegion.cjs.js +1 -0
- package/dist/components/overlays/Modal/useScrollRegion.d.ts +7 -0
- package/dist/components/overlays/Modal/useScrollRegion.mjs +25 -0
- package/dist/components/overlays/Popover/Popover.cjs.js +1 -0
- package/dist/components/overlays/Popover/Popover.d.ts +96 -0
- package/dist/components/overlays/Popover/Popover.mjs +150 -0
- package/dist/components/overlays/Popover/Popover.module.css.cjs.js +1 -0
- package/dist/components/overlays/Popover/Popover.module.css.mjs +16 -0
- package/dist/components/overlays/Popover/PopoverContent.cjs.js +1 -0
- package/dist/components/overlays/Popover/PopoverContent.d.ts +41 -0
- package/dist/components/overlays/Popover/PopoverContent.mjs +158 -0
- package/dist/components/overlays/Popover/PopoverContext.cjs.js +1 -0
- package/dist/components/overlays/Popover/PopoverContext.d.ts +38 -0
- package/dist/components/overlays/Popover/PopoverContext.mjs +11 -0
- package/dist/components/overlays/Popover/index.d.ts +1 -0
- package/dist/components/overlays/Tooltip/Tooltip.cjs.js +1 -0
- package/dist/components/overlays/Tooltip/Tooltip.d.ts +104 -0
- package/dist/components/overlays/Tooltip/Tooltip.mjs +153 -0
- package/dist/components/overlays/Tooltip/Tooltip.module.css.cjs.js +1 -0
- package/dist/components/overlays/Tooltip/Tooltip.module.css.mjs +13 -0
- package/dist/components/overlays/Tooltip/index.d.ts +1 -0
- package/dist/components/primitives/Button/Button.cjs.js +1 -0
- package/dist/components/primitives/Button/Button.d.ts +123 -0
- package/dist/components/primitives/Button/Button.mjs +194 -0
- package/dist/components/primitives/Button/Button.module.css.cjs.js +1 -0
- package/dist/components/primitives/Button/Button.module.css.mjs +63 -0
- package/dist/components/primitives/Button/index.d.ts +1 -0
- package/dist/components/primitives/Icon/Icon.cjs.js +1 -0
- package/dist/components/primitives/Icon/Icon.d.ts +17 -0
- package/dist/components/primitives/Icon/Icon.mjs +11 -0
- package/dist/components/primitives/Icon/Icon.module.css.cjs.js +1 -0
- package/dist/components/primitives/Icon/Icon.module.css.mjs +21 -0
- package/dist/components/primitives/Icon/IconSvg.cjs.js +1 -0
- package/dist/components/primitives/Icon/IconSvg.d.ts +31 -0
- package/dist/components/primitives/Icon/IconSvg.mjs +47 -0
- package/dist/components/primitives/Icon/icons.cjs.js +1 -0
- package/dist/components/primitives/Icon/icons.d.ts +315 -0
- package/dist/components/primitives/Icon/icons.mjs +285 -0
- package/dist/components/primitives/Icon/index.d.ts +2 -0
- package/dist/components/primitives/Kbd/Kbd.cjs.js +1 -0
- package/dist/components/primitives/Kbd/Kbd.d.ts +81 -0
- package/dist/components/primitives/Kbd/Kbd.mjs +175 -0
- package/dist/components/primitives/Kbd/Kbd.module.css.cjs.js +1 -0
- package/dist/components/primitives/Kbd/Kbd.module.css.mjs +16 -0
- package/dist/components/primitives/Kbd/index.d.ts +1 -0
- package/dist/components/primitives/Typography/Typography.cjs.js +1 -0
- package/dist/components/primitives/Typography/Typography.d.ts +111 -0
- package/dist/components/primitives/Typography/Typography.mjs +147 -0
- package/dist/components/primitives/Typography/Typography.module.css.cjs.js +1 -0
- package/dist/components/primitives/Typography/Typography.module.css.mjs +49 -0
- package/dist/components/primitives/Typography/index.d.ts +1 -0
- package/dist/components/utilities/LocaleProvider/LocaleProvider.cjs.js +1 -0
- package/dist/components/utilities/LocaleProvider/LocaleProvider.d.ts +58 -0
- package/dist/components/utilities/LocaleProvider/LocaleProvider.mjs +40 -0
- package/dist/components/utilities/LocaleProvider/LocaleProvider.module.css.cjs.js +1 -0
- package/dist/components/utilities/LocaleProvider/LocaleProvider.module.css.mjs +4 -0
- package/dist/components/utilities/LocaleProvider/index.d.ts +1 -0
- package/dist/components/utilities/Portal/Portal.cjs.js +1 -0
- package/dist/components/utilities/Portal/Portal.d.ts +23 -0
- package/dist/components/utilities/Portal/Portal.mjs +27 -0
- package/dist/components/utilities/Portal/index.d.ts +1 -0
- package/dist/components/utilities/Theme/Theme.cjs.js +1 -0
- package/dist/components/utilities/Theme/Theme.d.ts +79 -0
- package/dist/components/utilities/Theme/Theme.mjs +86 -0
- package/dist/components/utilities/Theme/Theme.module.css.cjs.js +1 -0
- package/dist/components/utilities/Theme/Theme.module.css.mjs +7 -0
- package/dist/components/utilities/Theme/index.d.ts +1 -0
- package/dist/components/utilities/VisuallyHidden/VisuallyHidden.cjs.js +1 -0
- package/dist/components/utilities/VisuallyHidden/VisuallyHidden.d.ts +4 -0
- package/dist/components/utilities/VisuallyHidden/VisuallyHidden.mjs +10 -0
- package/dist/components/utilities/VisuallyHidden/VisuallyHidden.module.css.cjs.js +1 -0
- package/dist/components/utilities/VisuallyHidden/VisuallyHidden.module.css.mjs +4 -0
- package/dist/components/utilities/VisuallyHidden/index.d.ts +1 -0
- package/dist/hooks/elementSource.cjs.js +1 -0
- package/dist/hooks/elementSource.d.ts +16 -0
- package/dist/hooks/elementSource.mjs +17 -0
- package/dist/hooks/index.d.ts +21 -0
- package/dist/hooks/useClipboard.cjs.js +1 -0
- package/dist/hooks/useClipboard.d.ts +24 -0
- package/dist/hooks/useClipboard.mjs +23 -0
- package/dist/hooks/useControllableState.cjs.js +1 -0
- package/dist/hooks/useControllableState.d.ts +15 -0
- package/dist/hooks/useControllableState.mjs +13 -0
- package/dist/hooks/useDisclosure.cjs.js +1 -0
- package/dist/hooks/useDisclosure.d.ts +35 -0
- package/dist/hooks/useDisclosure.mjs +29 -0
- package/dist/hooks/useDismiss.cjs.js +1 -0
- package/dist/hooks/useDismiss.d.ts +33 -0
- package/dist/hooks/useDismiss.mjs +15 -0
- package/dist/hooks/useElementObservers.cjs.js +1 -0
- package/dist/hooks/useElementObservers.d.ts +70 -0
- package/dist/hooks/useElementObservers.mjs +88 -0
- package/dist/hooks/useEnvironment.cjs.js +1 -0
- package/dist/hooks/useEnvironment.d.ts +42 -0
- package/dist/hooks/useEnvironment.mjs +36 -0
- package/dist/hooks/useFloatingPosition.cjs.js +1 -0
- package/dist/hooks/useFloatingPosition.d.ts +55 -0
- package/dist/hooks/useFloatingPosition.mjs +116 -0
- package/dist/hooks/useFocusTrap.cjs.js +1 -0
- package/dist/hooks/useFocusTrap.d.ts +52 -0
- package/dist/hooks/useFocusTrap.mjs +93 -0
- package/dist/hooks/useFormReset.cjs.js +1 -0
- package/dist/hooks/useFormReset.d.ts +17 -0
- package/dist/hooks/useFormReset.mjs +16 -0
- package/dist/hooks/useFormValidation.cjs.js +1 -0
- package/dist/hooks/useFormValidation.d.ts +101 -0
- package/dist/hooks/useFormValidation.mjs +187 -0
- package/dist/hooks/useHotkeys.cjs.js +1 -0
- package/dist/hooks/useHotkeys.d.ts +50 -0
- package/dist/hooks/useHotkeys.mjs +39 -0
- package/dist/hooks/useInertOutside.cjs.js +1 -0
- package/dist/hooks/useInertOutside.d.ts +23 -0
- package/dist/hooks/useInertOutside.mjs +83 -0
- package/dist/hooks/useMediaQuery.cjs.js +1 -0
- package/dist/hooks/useMediaQuery.d.ts +11 -0
- package/dist/hooks/useMediaQuery.mjs +13 -0
- package/dist/hooks/useMergedRef.cjs.js +1 -0
- package/dist/hooks/useMergedRef.d.ts +7 -0
- package/dist/hooks/useMergedRef.mjs +8 -0
- package/dist/hooks/useOverlayLayer.cjs.js +1 -0
- package/dist/hooks/useOverlayLayer.d.ts +92 -0
- package/dist/hooks/useOverlayLayer.mjs +163 -0
- package/dist/hooks/useResponsiveValue.cjs.js +1 -0
- package/dist/hooks/useResponsiveValue.d.ts +10 -0
- package/dist/hooks/useResponsiveValue.mjs +14 -0
- package/dist/hooks/useScrollLock.cjs.js +1 -0
- package/dist/hooks/useScrollLock.d.ts +4 -0
- package/dist/hooks/useScrollLock.mjs +30 -0
- package/dist/hooks/useStorage.cjs.js +1 -0
- package/dist/hooks/useStorage.d.ts +21 -0
- package/dist/hooks/useStorage.mjs +70 -0
- package/dist/hooks/useTiming.cjs.js +1 -0
- package/dist/hooks/useTiming.d.ts +78 -0
- package/dist/hooks/useTiming.mjs +100 -0
- package/dist/hooks/useVirtualizer.cjs.js +1 -0
- package/dist/hooks/useVirtualizer.d.ts +77 -0
- package/dist/hooks/useVirtualizer.mjs +115 -0
- package/dist/i18n/en.cjs.js +1 -0
- package/dist/i18n/en.d.ts +3 -0
- package/dist/i18n/en.mjs +565 -0
- package/dist/i18n/index.d.ts +4 -0
- package/dist/i18n/locales/ar.d.ts +3 -0
- package/dist/i18n/locales/bn.d.ts +3 -0
- package/dist/i18n/locales/cs.d.ts +3 -0
- package/dist/i18n/locales/da.d.ts +3 -0
- package/dist/i18n/locales/de.d.ts +3 -0
- package/dist/i18n/locales/el.d.ts +3 -0
- package/dist/i18n/locales/es.d.ts +3 -0
- package/dist/i18n/locales/fa.d.ts +3 -0
- package/dist/i18n/locales/fi.d.ts +3 -0
- package/dist/i18n/locales/fr.d.ts +3 -0
- package/dist/i18n/locales/he.d.ts +3 -0
- package/dist/i18n/locales/hi.d.ts +3 -0
- package/dist/i18n/locales/hu.d.ts +3 -0
- package/dist/i18n/locales/id.d.ts +3 -0
- package/dist/i18n/locales/it.d.ts +3 -0
- package/dist/i18n/locales/ja.d.ts +3 -0
- package/dist/i18n/locales/ko.d.ts +3 -0
- package/dist/i18n/locales/nb.d.ts +3 -0
- package/dist/i18n/locales/nl.d.ts +3 -0
- package/dist/i18n/locales/pl.d.ts +3 -0
- package/dist/i18n/locales/pt-BR.d.ts +3 -0
- package/dist/i18n/locales/ro.d.ts +3 -0
- package/dist/i18n/locales/ru.d.ts +3 -0
- package/dist/i18n/locales/sv.d.ts +3 -0
- package/dist/i18n/locales/th.d.ts +3 -0
- package/dist/i18n/locales/tr.d.ts +3 -0
- package/dist/i18n/locales/uk.d.ts +3 -0
- package/dist/i18n/locales/ur.d.ts +3 -0
- package/dist/i18n/locales/vi.d.ts +3 -0
- package/dist/i18n/locales/zh-Hans.d.ts +3 -0
- package/dist/i18n/locales/zh-Hant.d.ts +3 -0
- package/dist/i18n/merge.cjs.js +1 -0
- package/dist/i18n/merge.d.ts +6 -0
- package/dist/i18n/merge.mjs +12 -0
- package/dist/i18n/plural.cjs.js +1 -0
- package/dist/i18n/plural.d.ts +45 -0
- package/dist/i18n/plural.mjs +43 -0
- package/dist/i18n/types.d.ts +619 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.d.ts +81 -0
- package/dist/index.mjs +143 -0
- package/dist/locales/ar.cjs.js +1 -0
- package/dist/locales/ar.d.ts +6 -0
- package/dist/locales/ar.mjs +585 -0
- package/dist/locales/bn.cjs.js +1 -0
- package/dist/locales/bn.d.ts +6 -0
- package/dist/locales/bn.mjs +512 -0
- package/dist/locales/cs.cjs.js +1 -0
- package/dist/locales/cs.d.ts +6 -0
- package/dist/locales/cs.mjs +594 -0
- package/dist/locales/da.cjs.js +1 -0
- package/dist/locales/da.d.ts +6 -0
- package/dist/locales/da.mjs +562 -0
- package/dist/locales/de.cjs.js +1 -0
- package/dist/locales/de.d.ts +6 -0
- package/dist/locales/de.mjs +562 -0
- package/dist/locales/el.cjs.js +1 -0
- package/dist/locales/el.d.ts +6 -0
- package/dist/locales/el.mjs +562 -0
- package/dist/locales/es.cjs.js +1 -0
- package/dist/locales/es.d.ts +6 -0
- package/dist/locales/es.mjs +565 -0
- package/dist/locales/fa.cjs.js +1 -0
- package/dist/locales/fa.d.ts +6 -0
- package/dist/locales/fa.mjs +512 -0
- package/dist/locales/fi.cjs.js +1 -0
- package/dist/locales/fi.d.ts +6 -0
- package/dist/locales/fi.mjs +562 -0
- package/dist/locales/fr.cjs.js +1 -0
- package/dist/locales/fr.d.ts +6 -0
- package/dist/locales/fr.mjs +565 -0
- package/dist/locales/he.cjs.js +1 -0
- package/dist/locales/he.d.ts +6 -0
- package/dist/locales/he.mjs +573 -0
- package/dist/locales/hi.cjs.js +1 -0
- package/dist/locales/hi.d.ts +6 -0
- package/dist/locales/hi.mjs +562 -0
- package/dist/locales/hu.cjs.js +1 -0
- package/dist/locales/hu.d.ts +6 -0
- package/dist/locales/hu.mjs +512 -0
- package/dist/locales/id.cjs.js +1 -0
- package/dist/locales/id.d.ts +6 -0
- package/dist/locales/id.mjs +512 -0
- package/dist/locales/it.cjs.js +1 -0
- package/dist/locales/it.d.ts +6 -0
- package/dist/locales/it.mjs +565 -0
- package/dist/locales/ja.cjs.js +1 -0
- package/dist/locales/ja.d.ts +6 -0
- package/dist/locales/ja.mjs +512 -0
- package/dist/locales/ko.cjs.js +1 -0
- package/dist/locales/ko.d.ts +6 -0
- package/dist/locales/ko.mjs +512 -0
- package/dist/locales/nb.cjs.js +1 -0
- package/dist/locales/nb.d.ts +6 -0
- package/dist/locales/nb.mjs +562 -0
- package/dist/locales/nl.cjs.js +1 -0
- package/dist/locales/nl.d.ts +6 -0
- package/dist/locales/nl.mjs +562 -0
- package/dist/locales/pl.cjs.js +1 -0
- package/dist/locales/pl.d.ts +6 -0
- package/dist/locales/pl.mjs +594 -0
- package/dist/locales/pt-BR.cjs.js +1 -0
- package/dist/locales/pt-BR.d.ts +6 -0
- package/dist/locales/pt-BR.mjs +565 -0
- package/dist/locales/ro.cjs.js +1 -0
- package/dist/locales/ro.d.ts +6 -0
- package/dist/locales/ro.mjs +578 -0
- package/dist/locales/ru.cjs.js +1 -0
- package/dist/locales/ru.d.ts +6 -0
- package/dist/locales/ru.mjs +594 -0
- package/dist/locales/sv.cjs.js +1 -0
- package/dist/locales/sv.d.ts +6 -0
- package/dist/locales/sv.mjs +562 -0
- package/dist/locales/th.cjs.js +1 -0
- package/dist/locales/th.d.ts +6 -0
- package/dist/locales/th.mjs +512 -0
- package/dist/locales/tr.cjs.js +1 -0
- package/dist/locales/tr.d.ts +6 -0
- package/dist/locales/tr.mjs +512 -0
- package/dist/locales/uk.cjs.js +1 -0
- package/dist/locales/uk.d.ts +6 -0
- package/dist/locales/uk.mjs +594 -0
- package/dist/locales/ur.cjs.js +1 -0
- package/dist/locales/ur.d.ts +6 -0
- package/dist/locales/ur.mjs +562 -0
- package/dist/locales/vi.cjs.js +1 -0
- package/dist/locales/vi.d.ts +6 -0
- package/dist/locales/vi.mjs +512 -0
- package/dist/locales/zh-Hans.cjs.js +1 -0
- package/dist/locales/zh-Hans.d.ts +6 -0
- package/dist/locales/zh-Hans.mjs +512 -0
- package/dist/locales/zh-Hant.cjs.js +1 -0
- package/dist/locales/zh-Hant.d.ts +6 -0
- package/dist/locales/zh-Hant.mjs +512 -0
- package/dist/types/common.cjs.js +1 -0
- package/dist/types/common.d.ts +31 -0
- package/dist/types/common.mjs +10 -0
- package/dist/types/style.d.ts +7 -0
- package/dist/utils/announce.cjs.js +1 -0
- package/dist/utils/announce.d.ts +1 -0
- package/dist/utils/announce.mjs +26 -0
- package/dist/utils/brandPalette.cjs.js +3 -0
- package/dist/utils/brandPalette.d.ts +146 -0
- package/dist/utils/brandPalette.mjs +387 -0
- package/dist/utils/clipboard.cjs.js +1 -0
- package/dist/utils/clipboard.d.ts +6 -0
- package/dist/utils/clipboard.mjs +21 -0
- package/dist/utils/cx.cjs.js +1 -0
- package/dist/utils/cx.d.ts +2 -0
- package/dist/utils/cx.mjs +6 -0
- package/dist/utils/fillSlot.cjs.js +1 -0
- package/dist/utils/fillSlot.d.ts +9 -0
- package/dist/utils/fillSlot.mjs +5 -0
- package/dist/utils/flattenChildren.cjs.js +1 -0
- package/dist/utils/flattenChildren.d.ts +8 -0
- package/dist/utils/flattenChildren.mjs +7 -0
- package/dist/utils/hotkeys.cjs.js +1 -0
- package/dist/utils/hotkeys.d.ts +27 -0
- package/dist/utils/hotkeys.mjs +45 -0
- package/dist/utils/index.d.ts +11 -0
- package/dist/utils/refs.cjs.js +1 -0
- package/dist/utils/refs.d.ts +15 -0
- package/dist/utils/refs.mjs +27 -0
- package/dist/utils/responsive.cjs.js +1 -0
- package/dist/utils/responsive.d.ts +43 -0
- package/dist/utils/responsive.mjs +63 -0
- package/dist/utils/slot.cjs.js +1 -0
- package/dist/utils/slot.d.ts +11 -0
- package/dist/utils/slot.mjs +21 -0
- package/dist/utils/validators.cjs.js +1 -0
- package/dist/utils/validators.d.ts +72 -0
- package/dist/utils/validators.mjs +61 -0
- package/dist/vjdesigns-ui.css +2 -0
- package/package.json +88 -6
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../utilities/LocaleProvider/LocaleProvider.cjs.js"),t=require("../../../utils/cx.cjs.js"),n=require("../Alert/Alert.cjs.js"),r=require("../../navigation/Link/Link.cjs.js"),i=require("./ErrorSummary.module.css.cjs.js");let a=require("react/jsx-runtime");function o({errors:o,title:s,headingLevel:c=2,className:l,...u}){let d=e.useMessages();if(o.length===0)return null;let f=e=>t=>{if(e.focus){t.preventDefault(),e.focus();return}let n=e.id?document.getElementById(e.id):null;n&&(t.preventDefault(),n.focus())};return(0,a.jsx)(n.Alert,{tabIndex:-1,...u,tone:`danger`,headingLevel:c,title:s??d.validation.summaryTitle(o.length),className:t.cx(i.default.root,l),children:(0,a.jsx)(`ul`,{className:i.default.list,children:o.map(e=>(0,a.jsx)(`li`,{children:(0,a.jsx)(r.Link,{href:`#${e.id??e.name}`,tone:`danger`,onClick:f(e),children:e.message})},e.name))})})}exports.ErrorSummary=o;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { FormErrorItem } from '../../../hooks/useFormValidation';
|
|
3
|
+
import { AlertProps } from '../Alert';
|
|
4
|
+
/** One entry: the field's message and how to reach it. */
|
|
5
|
+
export type ErrorSummaryItem = Pick<FormErrorItem, "name" | "message"> & {
|
|
6
|
+
/** Id of the field's control, for the `#id` link. */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** Moves focus to the field (otherwise the element with `id` is focused). */
|
|
9
|
+
focus?: () => void;
|
|
10
|
+
};
|
|
11
|
+
export interface ErrorSummaryProps extends Omit<AlertProps, "tone" | "title" | "children" | "dismissible" | "onDismiss"> {
|
|
12
|
+
/** The errors, in page order: `useFormValidation`'s `errorList`, or your own. Renders nothing when empty. */
|
|
13
|
+
errors: readonly ErrorSummaryItem[];
|
|
14
|
+
/** Heading. @default "There is 1 problem" / "There are 3 problems", in the current language */
|
|
15
|
+
title?: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The list of a form's errors, shown above it after a failed submit: a danger
|
|
19
|
+
* `Alert` whose items link to their fields (activating one moves focus to the
|
|
20
|
+
* field). It's focusable (`tabIndex={-1}`): give `useFormValidation`'s
|
|
21
|
+
* `summaryRef` as `ref` and a failed submit moves focus here, so screen
|
|
22
|
+
* readers announce the heading and the list. The title is a real heading
|
|
23
|
+
* (`h2` by default; set `headingLevel` to fit the page outline).
|
|
24
|
+
*
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <ErrorSummary ref={form.summaryRef} errors={form.errorList} />
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
export declare function ErrorSummary({ errors, title, headingLevel, className, ...rest }: ErrorSummaryProps): import("react").JSX.Element | null;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { useMessages as e } from "../../utilities/LocaleProvider/LocaleProvider.mjs";
|
|
2
|
+
import { cx as t } from "../../../utils/cx.mjs";
|
|
3
|
+
import { Alert as n } from "../Alert/Alert.mjs";
|
|
4
|
+
import { Link as r } from "../../navigation/Link/Link.mjs";
|
|
5
|
+
import i from "./ErrorSummary.module.css.mjs";
|
|
6
|
+
import { jsx as a } from "react/jsx-runtime";
|
|
7
|
+
//#region src/components/feedback/ErrorSummary/ErrorSummary.tsx
|
|
8
|
+
function o({ errors: o, title: s, headingLevel: c = 2, className: l, ...u }) {
|
|
9
|
+
let d = e();
|
|
10
|
+
if (o.length === 0) return null;
|
|
11
|
+
let f = (e) => (t) => {
|
|
12
|
+
if (e.focus) {
|
|
13
|
+
t.preventDefault(), e.focus();
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
let n = e.id ? document.getElementById(e.id) : null;
|
|
17
|
+
n && (t.preventDefault(), n.focus());
|
|
18
|
+
};
|
|
19
|
+
return /* @__PURE__ */ a(n, {
|
|
20
|
+
tabIndex: -1,
|
|
21
|
+
...u,
|
|
22
|
+
tone: "danger",
|
|
23
|
+
headingLevel: c,
|
|
24
|
+
title: s ?? d.validation.summaryTitle(o.length),
|
|
25
|
+
className: t(i.root, l),
|
|
26
|
+
children: /* @__PURE__ */ a("ul", {
|
|
27
|
+
className: i.list,
|
|
28
|
+
children: o.map((e) => /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(r, {
|
|
29
|
+
href: `#${e.id ?? e.name}`,
|
|
30
|
+
tone: "danger",
|
|
31
|
+
onClick: f(e),
|
|
32
|
+
children: e.message
|
|
33
|
+
}) }, e.name))
|
|
34
|
+
})
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
//#endregion
|
|
38
|
+
export { o as ErrorSummary };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_root_e770i_4`,t=`_list_e770i_9`,n={root:e,list:t};exports.default=n,exports.list=t,exports.root=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ErrorSummary';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../../utils/cx.cjs.js"),t=require("./Progress.module.css.cjs.js");let n=require("react"),r=require("react/jsx-runtime");var i=globalThis.process?.env?.NODE_ENV!==`production`;function a(e,...t){let r=t.some(e=>e!=null&&e!==``&&e!==!1);(0,n.useEffect)(()=>{i&&!r&&console.warn(`[`+e+`] Give it a name: label, aria-label, or aria-labelledby.`)},[e,r])}var o=(e,t,n)=>Math.min(n,Math.max(t,e)),s=(e,t,n)=>n>t?(o(e,t,n)-t)/(n-t)*100:0,c=(e,t,n)=>`${Math.round(s(e,n,t))}%`,l=e=>e==null||Number.isNaN(e),u={neutral:t.default.toneNeutral,primary:t.default.tonePrimary,accent:t.default.toneAccent,success:t.default.toneSuccess,warning:t.default.toneWarning,danger:t.default.toneDanger,info:t.default.toneInfo},d={none:t.default.radiusNone,xs:t.default.radiusXs,sm:t.default.radiusSm,md:t.default.radiusMd,lg:t.default.radiusLg,xl:t.default.radiusXl,"2xl":t.default.radius2xl,pill:t.default.radiusPill},f={sm:t.default.barSm,md:t.default.barMd,lg:t.default.barLg};function p({value:e,min:t,max:n,semantic:r,valueText:i,formatValue:a,showValue:u}){let d=l(e),f=d?void 0:o(e,t,n),p=f===void 0?0:s(f,t,n),m=u&&f!==void 0?(a??c)(f,n,t):void 0,h=i??(a&&f!==void 0?a(f,n,t):void 0);return{indeterminate:d,now:f,percent:p,displayValue:m,rangeProps:{role:d?`progressbar`:r,"aria-valuemin":t,"aria-valuemax":n,"aria-valuenow":f,"aria-valuetext":h}}}function m({value:i,min:o=0,max:c=100,tone:l=`primary`,size:m=`md`,radius:h=`pill`,striped:g=!1,animated:_=!1,label:v,showValue:y=!1,formatValue:b,valueText:x,semantic:S=`progressbar`,buffer:C,className:w,"aria-labelledby":T,...E}){a(`Progress`,v,E[`aria-label`],T);let D=(0,n.useId)(),{indeterminate:O,percent:k,displayValue:A,rangeProps:j}=p({value:i,min:o,max:c,semantic:S,valueText:x,formatValue:b,showValue:y}),M=C===void 0||O?void 0:s(C,o,c),N=!!v||A!==void 0;return(0,r.jsxs)(`div`,{...E,...j,"aria-labelledby":T??(v?D:void 0),"data-indeterminate":O||void 0,className:e.cx(t.default.bar,u[l],f[m],d[h],O&&t.default.indeterminate,(g||_)&&t.default.striped,_&&t.default.animated,w),children:[N&&(0,r.jsxs)(`div`,{className:t.default.header,children:[v&&(0,r.jsx)(`span`,{id:D,className:t.default.label,children:v}),A!==void 0&&(0,r.jsx)(`span`,{className:t.default.value,children:A})]}),(0,r.jsxs)(`div`,{className:t.default.track,children:[M!==void 0&&(0,r.jsx)(`div`,{className:t.default.buffer,style:{inlineSize:`${M}%`}}),(0,r.jsx)(`div`,{className:t.default.fill,style:O?void 0:{inlineSize:`${k}%`}})]})]})}var h=[`primary`,`warning`,`success`,`danger`,`neutral`,`accent`,`info`];function g({segments:i,max:s=100,label:l,showValue:p=!1,formatValue:m=c,valueText:g,semantic:_=`meter`,size:v=`md`,radius:y=`pill`,showLegend:b=!0,className:x,"aria-label":S,"aria-labelledby":C,"aria-describedby":w,...T}){a(`ProgressSegments`,l,S,C);let E=(0,n.useId)(),D=(0,n.useId)(),O=Math.max(0,s),k=i.map((e,t)=>{let n=o(e.value,0,O);return O-=n,{...e,amount:n,percent:s>0?n/s*100:0,tone:e.tone??h[t%h.length]}}),A=k.reduce((e,t)=>e+t.amount,0),j=g??[k.map(e=>`${e.label} ${m(e.amount,s,0)}`).join(`, `),`${m(A,s,0)} total`].filter(Boolean).join(`; `),M=!!l||p;return(0,r.jsxs)(`div`,{...T,className:e.cx(t.default.segments,f[v],d[y],x),children:[M&&(0,r.jsxs)(`div`,{className:t.default.header,children:[l&&(0,r.jsx)(`span`,{id:E,className:t.default.label,children:l}),p&&(0,r.jsx)(`span`,{className:t.default.value,children:m(A,s,0)})]}),(0,r.jsx)(`div`,{role:_,"aria-valuemin":0,"aria-valuemax":s,"aria-valuenow":A,"aria-valuetext":j,"aria-label":S,"aria-labelledby":C??(l?E:void 0),"aria-describedby":e.cx(w,b&&D)||void 0,className:e.cx(t.default.track,t.default.segmentTrack),children:k.map((n,i)=>n.percent>0?(0,r.jsx)(`div`,{className:e.cx(t.default.segment,u[n.tone]),style:{inlineSize:`${n.percent}%`}},`${n.label}-${i}`):null)}),b&&(0,r.jsx)(`ul`,{id:D,role:`list`,className:t.default.legend,children:k.map((n,i)=>(0,r.jsxs)(`li`,{className:t.default.legendItem,children:[(0,r.jsx)(`span`,{"aria-hidden":`true`,className:e.cx(t.default.swatch,u[n.tone])}),(0,r.jsx)(`span`,{className:t.default.legendLabel,children:n.label}),(0,r.jsx)(`span`,{className:t.default.legendValue,children:m(n.amount,s,0)})]},`${n.label}-${i}`))})]})}var _={sm:32,md:48,lg:64,xl:96},v={sm:t.default.ringSm,md:t.default.ringMd,lg:t.default.ringLg,xl:t.default.ringXl},y={sm:4,md:5,lg:6,xl:8};function b({value:i,min:o=0,max:s=100,tone:c=`primary`,size:l=`md`,thickness:d,label:f,showValue:m=!1,formatValue:h,valueText:g,semantic:b=`progressbar`,children:x,className:S,style:C,"aria-labelledby":w,...T}){a(`CircularProgress`,f,T[`aria-label`],w);let E=(0,n.useId)(),{indeterminate:D,percent:O,displayValue:k,rangeProps:A}=p({value:i,min:o,max:s,semantic:b,valueText:g,formatValue:h,showValue:m&&l!==`sm`}),j=typeof l==`number`,M=j?l:_[l],N=Math.min(M/2,d??(j?Math.max(3,Math.round(l/10)):y[l])),P=M/2,F=(M-N)/2,I=x??k;return(0,r.jsxs)(`div`,{...T,...A,"aria-labelledby":w??(f?E:void 0),"data-indeterminate":D||void 0,className:e.cx(t.default.circular,u[c],!j&&v[l],D&&t.default.indeterminate,S),style:j?{"--pg-ring-size":`${l}px`,...C}:C,children:[(0,r.jsxs)(`div`,{className:t.default.ring,children:[(0,r.jsxs)(`svg`,{className:t.default.ringSvg,viewBox:`0 0 ${M} ${M}`,"aria-hidden":`true`,focusable:`false`,children:[(0,r.jsx)(`circle`,{className:t.default.ringTrack,cx:P,cy:P,r:F,strokeWidth:N}),(0,r.jsx)(`circle`,{className:e.cx(t.default.ringFill,!D&&O===0&&t.default.ringEmpty),cx:P,cy:P,r:F,strokeWidth:N,pathLength:100,strokeDasharray:`100 100`,transform:`rotate(-90 ${P} ${P})`,style:{strokeDashoffset:D?72:100-O}})]}),I!=null&&(0,r.jsx)(`div`,{className:t.default.ringCenter,children:I})]}),f&&(0,r.jsx)(`span`,{id:E,className:t.default.ringLabel,children:f})]})}exports.CircularProgress=b,exports.Progress=m,exports.ProgressSegments=g,exports.formatProgressPercent=c;
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { ComponentPropsWithRef, ReactNode } from 'react';
|
|
2
|
+
import { Radius, Size, Tone } from '../../../types/common';
|
|
3
|
+
/**
|
|
4
|
+
* ARIA semantics of the indicator.
|
|
5
|
+
* - `progressbar`: progress of a task that is moving toward completion
|
|
6
|
+
* (uploads, installs, steps). Supports the indeterminate state.
|
|
7
|
+
* - `meter`: a static measurement within a known range (disk usage, battery,
|
|
8
|
+
* a score). Requires a value; an indeterminate meter falls back to
|
|
9
|
+
* `progressbar`, since a measurement cannot be "unknown but in progress".
|
|
10
|
+
*/
|
|
11
|
+
export type ProgressSemantic = "progressbar" | "meter";
|
|
12
|
+
/**
|
|
13
|
+
* Formats a value for display and for `aria-valuetext`.
|
|
14
|
+
* Receives the clamped value, the max, and the min.
|
|
15
|
+
*/
|
|
16
|
+
export type ProgressFormatValue = (value: number, max: number, min: number) => string;
|
|
17
|
+
/** Default formatter: a whole-number percentage of the range, e.g. `"42%"`. */
|
|
18
|
+
export declare const formatProgressPercent: ProgressFormatValue;
|
|
19
|
+
/** Props shared by `Progress` and `CircularProgress`. */
|
|
20
|
+
interface ProgressValueProps {
|
|
21
|
+
/**
|
|
22
|
+
* Current value. Leave `undefined` or pass `null` for the indeterminate
|
|
23
|
+
* state (an animated sweep; a calm pulse under `prefers-reduced-motion`).
|
|
24
|
+
* Values outside `min`..`max` are clamped.
|
|
25
|
+
*/
|
|
26
|
+
value?: number | null;
|
|
27
|
+
/** Lower bound of the range. */
|
|
28
|
+
min?: number;
|
|
29
|
+
/** Upper bound of the range. */
|
|
30
|
+
max?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Semantic color of the fill. Color never carries meaning alone: pair
|
|
33
|
+
* `danger`/`warning` with a `label` and `showValue` (or `valueText`).
|
|
34
|
+
*/
|
|
35
|
+
tone?: Tone;
|
|
36
|
+
/**
|
|
37
|
+
* Visible label. Becomes the accessible name through `aria-labelledby`.
|
|
38
|
+
* Without it, pass `aria-label` (or `aria-labelledby`).
|
|
39
|
+
*/
|
|
40
|
+
label?: ReactNode;
|
|
41
|
+
/** Show the formatted value (a percentage by default, see `formatValue`). */
|
|
42
|
+
showValue?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Custom value formatter, e.g. `(v, max) => \`${v} of ${max} MB\``. Its
|
|
45
|
+
* result is shown with `showValue` and also used as `aria-valuetext`.
|
|
46
|
+
*/
|
|
47
|
+
formatValue?: ProgressFormatValue;
|
|
48
|
+
/**
|
|
49
|
+
* Overrides `aria-valuetext`, the text screen readers announce instead of
|
|
50
|
+
* the raw number (e.g. `"Step 2 of 5: Shipping"`). Also usable while
|
|
51
|
+
* indeterminate (e.g. `"Preparing upload"`).
|
|
52
|
+
*/
|
|
53
|
+
valueText?: string;
|
|
54
|
+
/** ARIA role: `progressbar` for tasks (default), `meter` for static measurements. */
|
|
55
|
+
semantic?: ProgressSemantic;
|
|
56
|
+
}
|
|
57
|
+
export interface ProgressProps extends ProgressValueProps, Omit<ComponentPropsWithRef<"div">, "role" | "children"> {
|
|
58
|
+
/** Bar thickness: `sm` 4px, `md` 8px, `lg` 12px. */
|
|
59
|
+
size?: Size;
|
|
60
|
+
/** Corner rounding of the track and fill. */
|
|
61
|
+
radius?: Radius;
|
|
62
|
+
/** Diagonal stripes on the fill, for an energetic look. */
|
|
63
|
+
striped?: boolean;
|
|
64
|
+
/** Move the stripes (implies `striped`). Stops under `prefers-reduced-motion`. */
|
|
65
|
+
animated?: boolean;
|
|
66
|
+
/**
|
|
67
|
+
* Secondary, lighter fill behind the main one, in the same units as
|
|
68
|
+
* `value` (e.g. how much of a video has buffered). Visual only: it is not
|
|
69
|
+
* exposed to assistive technology, so describe it in `valueText` if it matters.
|
|
70
|
+
*/
|
|
71
|
+
buffer?: number;
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Linear progress bar. Shows determinate progress with a smooth transition,
|
|
75
|
+
* or an indeterminate sweep when `value` is not set. The root carries
|
|
76
|
+
* `role="progressbar"` (or `meter`) with the ARIA range attributes.
|
|
77
|
+
*/
|
|
78
|
+
export declare function Progress({ value, min, max, tone, size, radius, striped, animated, label, showValue, formatValue, valueText, semantic, buffer, className, "aria-labelledby": ariaLabelledBy, ...rest }: ProgressProps): import("react").JSX.Element;
|
|
79
|
+
/** One part of a `ProgressSegments` bar. */
|
|
80
|
+
export interface ProgressSegment {
|
|
81
|
+
/** Amount this segment takes up, in the same units as `max`. */
|
|
82
|
+
value: number;
|
|
83
|
+
/** Name shown in the legend and announced to screen readers. */
|
|
84
|
+
label: string;
|
|
85
|
+
/** Fill color. Defaults to a rotating set of tones. */
|
|
86
|
+
tone?: Tone;
|
|
87
|
+
}
|
|
88
|
+
export interface ProgressSegmentsProps extends Omit<ComponentPropsWithRef<"div">, "role" | "children"> {
|
|
89
|
+
/** The parts, in order from the start of the bar. Their sum is clamped to `max`. */
|
|
90
|
+
segments: ProgressSegment[];
|
|
91
|
+
/** Total capacity (e.g. 256 for 256 GB). */
|
|
92
|
+
max?: number;
|
|
93
|
+
/** Visible label; the accessible name of the bar. Otherwise pass `aria-label`. */
|
|
94
|
+
label?: ReactNode;
|
|
95
|
+
/** Show the formatted total next to the label. */
|
|
96
|
+
showValue?: boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Formats segment values and the total, e.g. `(v) => \`${v} GB\``.
|
|
99
|
+
* Defaults to a percentage of `max`.
|
|
100
|
+
*/
|
|
101
|
+
formatValue?: ProgressFormatValue;
|
|
102
|
+
/** Overrides the generated `aria-valuetext` summary. */
|
|
103
|
+
valueText?: string;
|
|
104
|
+
/** ARIA role of the bar. Defaults to `meter`, since stacked usage is usually a measurement. */
|
|
105
|
+
semantic?: ProgressSemantic;
|
|
106
|
+
/** Bar thickness: `sm` 4px, `md` 8px, `lg` 12px. */
|
|
107
|
+
size?: Size;
|
|
108
|
+
/** Corner rounding of the track. */
|
|
109
|
+
radius?: Radius;
|
|
110
|
+
/** Show the legend (label and value for every segment). */
|
|
111
|
+
showLegend?: boolean;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Stacked bar made of labeled parts, with a legend (e.g. storage usage).
|
|
115
|
+
*
|
|
116
|
+
* Accessibility: the bar is a single `meter` (or `progressbar`) whose value
|
|
117
|
+
* is the total, and whose `aria-valuetext` lists every segment
|
|
118
|
+
* ("Photos 42 GB, Apps 30 GB; 72 GB total"). The visual segments are hidden
|
|
119
|
+
* from assistive technology; the legend is a real list with text for every
|
|
120
|
+
* part, so the breakdown never depends on color.
|
|
121
|
+
*/
|
|
122
|
+
export declare function ProgressSegments({ segments, max, label, showValue, formatValue, valueText, semantic, size, radius, showLegend, className, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, ...rest }: ProgressSegmentsProps): import("react").JSX.Element;
|
|
123
|
+
/** Ring size: `sm` 32px, `md` 48px, `lg` 64px, `xl` 96px, or a number of pixels. */
|
|
124
|
+
export type CircularProgressSize = Size | "xl" | number;
|
|
125
|
+
export interface CircularProgressProps extends ProgressValueProps, Omit<ComponentPropsWithRef<"div">, "role"> {
|
|
126
|
+
/** Ring diameter: `sm` 32px, `md` 48px, `lg` 64px, `xl` 96px, or a number of pixels. */
|
|
127
|
+
size?: CircularProgressSize;
|
|
128
|
+
/** Stroke width in pixels. Defaults scale with `size`. */
|
|
129
|
+
thickness?: number;
|
|
130
|
+
/**
|
|
131
|
+
* Content in the center of the ring, e.g. an icon or custom text. Overrides
|
|
132
|
+
* the `showValue` percentage. Presentational: it is part of the
|
|
133
|
+
* progressbar, so put anything screen readers must hear in `valueText`.
|
|
134
|
+
*/
|
|
135
|
+
children?: ReactNode;
|
|
136
|
+
/**
|
|
137
|
+
* Show the formatted value in the center, in bold display type. Not
|
|
138
|
+
* rendered at `size="sm"` (too small to read); use `label` there instead.
|
|
139
|
+
*/
|
|
140
|
+
showValue?: boolean;
|
|
141
|
+
/** Visible caption under the ring; the accessible name. Otherwise pass `aria-label`. */
|
|
142
|
+
label?: ReactNode;
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Ring-shaped progress indicator with rounded caps and an optional center
|
|
146
|
+
* slot. Determinate when `value` is set, spinning otherwise (a calm pulse
|
|
147
|
+
* under `prefers-reduced-motion`).
|
|
148
|
+
*/
|
|
149
|
+
export declare function CircularProgress({ value, min, max, tone, size, thickness, label, showValue, formatValue, valueText, semantic, children, className, style, "aria-labelledby": ariaLabelledBy, ...rest }: CircularProgressProps): import("react").JSX.Element;
|
|
150
|
+
export {};
|
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
import { cx as e } from "../../../utils/cx.mjs";
|
|
2
|
+
import t from "./Progress.module.css.mjs";
|
|
3
|
+
import { useEffect as n, useId as r } from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region src/components/feedback/Progress/Progress.tsx
|
|
6
|
+
var o = globalThis.process?.env?.NODE_ENV !== "production";
|
|
7
|
+
function s(e, ...t) {
|
|
8
|
+
let r = t.some((e) => e != null && e !== "" && e !== !1);
|
|
9
|
+
n(() => {
|
|
10
|
+
o && !r && console.warn("[" + e + "] Give it a name: label, aria-label, or aria-labelledby.");
|
|
11
|
+
}, [e, r]);
|
|
12
|
+
}
|
|
13
|
+
var c = (e, t, n) => Math.min(n, Math.max(t, e)), l = (e, t, n) => n > t ? (c(e, t, n) - t) / (n - t) * 100 : 0, u = (e, t, n) => `${Math.round(l(e, n, t))}%`, d = (e) => e == null || Number.isNaN(e), f = {
|
|
14
|
+
neutral: t.toneNeutral,
|
|
15
|
+
primary: t.tonePrimary,
|
|
16
|
+
accent: t.toneAccent,
|
|
17
|
+
success: t.toneSuccess,
|
|
18
|
+
warning: t.toneWarning,
|
|
19
|
+
danger: t.toneDanger,
|
|
20
|
+
info: t.toneInfo
|
|
21
|
+
}, p = {
|
|
22
|
+
none: t.radiusNone,
|
|
23
|
+
xs: t.radiusXs,
|
|
24
|
+
sm: t.radiusSm,
|
|
25
|
+
md: t.radiusMd,
|
|
26
|
+
lg: t.radiusLg,
|
|
27
|
+
xl: t.radiusXl,
|
|
28
|
+
"2xl": t.radius2xl,
|
|
29
|
+
pill: t.radiusPill
|
|
30
|
+
}, m = {
|
|
31
|
+
sm: t.barSm,
|
|
32
|
+
md: t.barMd,
|
|
33
|
+
lg: t.barLg
|
|
34
|
+
};
|
|
35
|
+
function h({ value: e, min: t, max: n, semantic: r, valueText: i, formatValue: a, showValue: o }) {
|
|
36
|
+
let s = d(e), f = s ? void 0 : c(e, t, n), p = f === void 0 ? 0 : l(f, t, n), m = o && f !== void 0 ? (a ?? u)(f, n, t) : void 0, h = i ?? (a && f !== void 0 ? a(f, n, t) : void 0);
|
|
37
|
+
return {
|
|
38
|
+
indeterminate: s,
|
|
39
|
+
now: f,
|
|
40
|
+
percent: p,
|
|
41
|
+
displayValue: m,
|
|
42
|
+
rangeProps: {
|
|
43
|
+
role: s ? "progressbar" : r,
|
|
44
|
+
"aria-valuemin": t,
|
|
45
|
+
"aria-valuemax": n,
|
|
46
|
+
"aria-valuenow": f,
|
|
47
|
+
"aria-valuetext": h
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
function g({ value: n, min: o = 0, max: c = 100, tone: u = "primary", size: d = "md", radius: g = "pill", striped: _ = !1, animated: v = !1, label: y, showValue: b = !1, formatValue: x, valueText: S, semantic: C = "progressbar", buffer: w, className: T, "aria-labelledby": E, ...D }) {
|
|
52
|
+
s("Progress", y, D["aria-label"], E);
|
|
53
|
+
let O = r(), { indeterminate: k, percent: A, displayValue: j, rangeProps: M } = h({
|
|
54
|
+
value: n,
|
|
55
|
+
min: o,
|
|
56
|
+
max: c,
|
|
57
|
+
semantic: C,
|
|
58
|
+
valueText: S,
|
|
59
|
+
formatValue: x,
|
|
60
|
+
showValue: b
|
|
61
|
+
}), N = w === void 0 || k ? void 0 : l(w, o, c), P = !!y || j !== void 0;
|
|
62
|
+
return /* @__PURE__ */ a("div", {
|
|
63
|
+
...D,
|
|
64
|
+
...M,
|
|
65
|
+
"aria-labelledby": E ?? (y ? O : void 0),
|
|
66
|
+
"data-indeterminate": k || void 0,
|
|
67
|
+
className: e(t.bar, f[u], m[d], p[g], k && t.indeterminate, (_ || v) && t.striped, v && t.animated, T),
|
|
68
|
+
children: [P && /* @__PURE__ */ a("div", {
|
|
69
|
+
className: t.header,
|
|
70
|
+
children: [y && /* @__PURE__ */ i("span", {
|
|
71
|
+
id: O,
|
|
72
|
+
className: t.label,
|
|
73
|
+
children: y
|
|
74
|
+
}), j !== void 0 && /* @__PURE__ */ i("span", {
|
|
75
|
+
className: t.value,
|
|
76
|
+
children: j
|
|
77
|
+
})]
|
|
78
|
+
}), /* @__PURE__ */ a("div", {
|
|
79
|
+
className: t.track,
|
|
80
|
+
children: [N !== void 0 && /* @__PURE__ */ i("div", {
|
|
81
|
+
className: t.buffer,
|
|
82
|
+
style: { inlineSize: `${N}%` }
|
|
83
|
+
}), /* @__PURE__ */ i("div", {
|
|
84
|
+
className: t.fill,
|
|
85
|
+
style: k ? void 0 : { inlineSize: `${A}%` }
|
|
86
|
+
})]
|
|
87
|
+
})]
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
var _ = [
|
|
91
|
+
"primary",
|
|
92
|
+
"warning",
|
|
93
|
+
"success",
|
|
94
|
+
"danger",
|
|
95
|
+
"neutral",
|
|
96
|
+
"accent",
|
|
97
|
+
"info"
|
|
98
|
+
];
|
|
99
|
+
function v({ segments: n, max: o = 100, label: l, showValue: d = !1, formatValue: h = u, valueText: g, semantic: v = "meter", size: y = "md", radius: b = "pill", showLegend: x = !0, className: S, "aria-label": C, "aria-labelledby": w, "aria-describedby": T, ...E }) {
|
|
100
|
+
s("ProgressSegments", l, C, w);
|
|
101
|
+
let D = r(), O = r(), k = Math.max(0, o), A = n.map((e, t) => {
|
|
102
|
+
let n = c(e.value, 0, k);
|
|
103
|
+
return k -= n, {
|
|
104
|
+
...e,
|
|
105
|
+
amount: n,
|
|
106
|
+
percent: o > 0 ? n / o * 100 : 0,
|
|
107
|
+
tone: e.tone ?? _[t % _.length]
|
|
108
|
+
};
|
|
109
|
+
}), j = A.reduce((e, t) => e + t.amount, 0), M = g ?? [A.map((e) => `${e.label} ${h(e.amount, o, 0)}`).join(", "), `${h(j, o, 0)} total`].filter(Boolean).join("; "), N = !!l || d;
|
|
110
|
+
return /* @__PURE__ */ a("div", {
|
|
111
|
+
...E,
|
|
112
|
+
className: e(t.segments, m[y], p[b], S),
|
|
113
|
+
children: [
|
|
114
|
+
N && /* @__PURE__ */ a("div", {
|
|
115
|
+
className: t.header,
|
|
116
|
+
children: [l && /* @__PURE__ */ i("span", {
|
|
117
|
+
id: D,
|
|
118
|
+
className: t.label,
|
|
119
|
+
children: l
|
|
120
|
+
}), d && /* @__PURE__ */ i("span", {
|
|
121
|
+
className: t.value,
|
|
122
|
+
children: h(j, o, 0)
|
|
123
|
+
})]
|
|
124
|
+
}),
|
|
125
|
+
/* @__PURE__ */ i("div", {
|
|
126
|
+
role: v,
|
|
127
|
+
"aria-valuemin": 0,
|
|
128
|
+
"aria-valuemax": o,
|
|
129
|
+
"aria-valuenow": j,
|
|
130
|
+
"aria-valuetext": M,
|
|
131
|
+
"aria-label": C,
|
|
132
|
+
"aria-labelledby": w ?? (l ? D : void 0),
|
|
133
|
+
"aria-describedby": e(T, x && O) || void 0,
|
|
134
|
+
className: e(t.track, t.segmentTrack),
|
|
135
|
+
children: A.map((n, r) => n.percent > 0 ? /* @__PURE__ */ i("div", {
|
|
136
|
+
className: e(t.segment, f[n.tone]),
|
|
137
|
+
style: { inlineSize: `${n.percent}%` }
|
|
138
|
+
}, `${n.label}-${r}`) : null)
|
|
139
|
+
}),
|
|
140
|
+
x && /* @__PURE__ */ i("ul", {
|
|
141
|
+
id: O,
|
|
142
|
+
role: "list",
|
|
143
|
+
className: t.legend,
|
|
144
|
+
children: A.map((n, r) => /* @__PURE__ */ a("li", {
|
|
145
|
+
className: t.legendItem,
|
|
146
|
+
children: [
|
|
147
|
+
/* @__PURE__ */ i("span", {
|
|
148
|
+
"aria-hidden": "true",
|
|
149
|
+
className: e(t.swatch, f[n.tone])
|
|
150
|
+
}),
|
|
151
|
+
/* @__PURE__ */ i("span", {
|
|
152
|
+
className: t.legendLabel,
|
|
153
|
+
children: n.label
|
|
154
|
+
}),
|
|
155
|
+
/* @__PURE__ */ i("span", {
|
|
156
|
+
className: t.legendValue,
|
|
157
|
+
children: h(n.amount, o, 0)
|
|
158
|
+
})
|
|
159
|
+
]
|
|
160
|
+
}, `${n.label}-${r}`))
|
|
161
|
+
})
|
|
162
|
+
]
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
var y = {
|
|
166
|
+
sm: 32,
|
|
167
|
+
md: 48,
|
|
168
|
+
lg: 64,
|
|
169
|
+
xl: 96
|
|
170
|
+
}, b = {
|
|
171
|
+
sm: t.ringSm,
|
|
172
|
+
md: t.ringMd,
|
|
173
|
+
lg: t.ringLg,
|
|
174
|
+
xl: t.ringXl
|
|
175
|
+
}, x = {
|
|
176
|
+
sm: 4,
|
|
177
|
+
md: 5,
|
|
178
|
+
lg: 6,
|
|
179
|
+
xl: 8
|
|
180
|
+
};
|
|
181
|
+
function S({ value: n, min: o = 0, max: c = 100, tone: l = "primary", size: u = "md", thickness: d, label: p, showValue: m = !1, formatValue: g, valueText: _, semantic: v = "progressbar", children: S, className: C, style: w, "aria-labelledby": T, ...E }) {
|
|
182
|
+
s("CircularProgress", p, E["aria-label"], T);
|
|
183
|
+
let D = r(), { indeterminate: O, percent: k, displayValue: A, rangeProps: j } = h({
|
|
184
|
+
value: n,
|
|
185
|
+
min: o,
|
|
186
|
+
max: c,
|
|
187
|
+
semantic: v,
|
|
188
|
+
valueText: _,
|
|
189
|
+
formatValue: g,
|
|
190
|
+
showValue: m && u !== "sm"
|
|
191
|
+
}), M = typeof u == "number", N = M ? u : y[u], P = Math.min(N / 2, d ?? (M ? Math.max(3, Math.round(u / 10)) : x[u])), F = N / 2, I = (N - P) / 2, L = S ?? A;
|
|
192
|
+
return /* @__PURE__ */ a("div", {
|
|
193
|
+
...E,
|
|
194
|
+
...j,
|
|
195
|
+
"aria-labelledby": T ?? (p ? D : void 0),
|
|
196
|
+
"data-indeterminate": O || void 0,
|
|
197
|
+
className: e(t.circular, f[l], !M && b[u], O && t.indeterminate, C),
|
|
198
|
+
style: M ? {
|
|
199
|
+
"--pg-ring-size": `${u}px`,
|
|
200
|
+
...w
|
|
201
|
+
} : w,
|
|
202
|
+
children: [/* @__PURE__ */ a("div", {
|
|
203
|
+
className: t.ring,
|
|
204
|
+
children: [/* @__PURE__ */ a("svg", {
|
|
205
|
+
className: t.ringSvg,
|
|
206
|
+
viewBox: `0 0 ${N} ${N}`,
|
|
207
|
+
"aria-hidden": "true",
|
|
208
|
+
focusable: "false",
|
|
209
|
+
children: [/* @__PURE__ */ i("circle", {
|
|
210
|
+
className: t.ringTrack,
|
|
211
|
+
cx: F,
|
|
212
|
+
cy: F,
|
|
213
|
+
r: I,
|
|
214
|
+
strokeWidth: P
|
|
215
|
+
}), /* @__PURE__ */ i("circle", {
|
|
216
|
+
className: e(t.ringFill, !O && k === 0 && t.ringEmpty),
|
|
217
|
+
cx: F,
|
|
218
|
+
cy: F,
|
|
219
|
+
r: I,
|
|
220
|
+
strokeWidth: P,
|
|
221
|
+
pathLength: 100,
|
|
222
|
+
strokeDasharray: "100 100",
|
|
223
|
+
transform: `rotate(-90 ${F} ${F})`,
|
|
224
|
+
style: { strokeDashoffset: O ? 72 : 100 - k }
|
|
225
|
+
})]
|
|
226
|
+
}), L != null && /* @__PURE__ */ i("div", {
|
|
227
|
+
className: t.ringCenter,
|
|
228
|
+
children: L
|
|
229
|
+
})]
|
|
230
|
+
}), p && /* @__PURE__ */ i("span", {
|
|
231
|
+
id: D,
|
|
232
|
+
className: t.ringLabel,
|
|
233
|
+
children: p
|
|
234
|
+
})]
|
|
235
|
+
});
|
|
236
|
+
}
|
|
237
|
+
//#endregion
|
|
238
|
+
export { S as CircularProgress, g as Progress, v as ProgressSegments, u as formatProgressPercent };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var e=`_tonePrimary_1mn5i_23`,t=`_toneNeutral_1mn5i_35`,n=`_toneAccent_1mn5i_49`,r=`_toneSuccess_1mn5i_61`,i=`_toneWarning_1mn5i_73`,a=`_toneDanger_1mn5i_85`,o=`_toneInfo_1mn5i_97`,s=`_radiusNone_1mn5i_117`,c=`_radiusXs_1mn5i_119`,l=`_radiusSm_1mn5i_121`,u=`_radiusMd_1mn5i_123`,d=`_radiusLg_1mn5i_125`,f=`_radiusXl_1mn5i_127`,p=`_radius2xl_1mn5i_129`,m=`_radiusPill_1mn5i_131`,h=`_barSm_1mn5i_143`,g=`_barMd_1mn5i_145`,_=`_barLg_1mn5i_147`,v=`_bar_1mn5i_143`,y=`_segments_1mn5i_161`,b=`_header_1mn5i_179`,x=`_label_1mn5i_193`,S=`_value_1mn5i_209`,C=`_track_1mn5i_231`,w=`_fill_1mn5i_251`,T=`_buffer_1mn5i_253`,E=`_striped_1mn5i_291`,D=`_animated_1mn5i_319`,O=`_stripes_1mn5i_1`,k=`_indeterminate_1mn5i_349`,A=`_sweep_1mn5i_1`,j=`_segmentTrack_1mn5i_413`,M=`_segment_1mn5i_161`,N=`_legend_1mn5i_449`,P=`_legendItem_1mn5i_467`,F=`_swatch_1mn5i_483`,I=`_legendLabel_1mn5i_523`,L=`_legendValue_1mn5i_531`,R=`_ringSm_1mn5i_553`,z=`_ringMd_1mn5i_555`,B=`_ringLg_1mn5i_557`,V=`_ringXl_1mn5i_559`,H=`_circular_1mn5i_563`,U=`_ring_1mn5i_553`,W=`_ringSvg_1mn5i_599`,G=`_ringTrack_1mn5i_615`,K=`_ringFill_1mn5i_625`,q=`_ringEmpty_1mn5i_641`,J=`_ringCenter_1mn5i_649`,Y=`_ringLabel_1mn5i_687`,X=`_spin_1mn5i_1`,Z=`_pulse_1mn5i_1`,Q={tonePrimary:e,toneNeutral:t,toneAccent:n,toneSuccess:r,toneWarning:i,toneDanger:a,toneInfo:o,radiusNone:s,radiusXs:c,radiusSm:l,radiusMd:u,radiusLg:d,radiusXl:f,radius2xl:p,radiusPill:m,barSm:h,barMd:g,barLg:_,bar:v,segments:y,header:b,label:x,value:S,track:C,fill:w,buffer:T,striped:E,animated:D,stripes:O,indeterminate:k,sweep:A,segmentTrack:j,segment:M,legend:N,legendItem:P,swatch:F,legendLabel:I,legendValue:L,ringSm:R,ringMd:z,ringLg:B,ringXl:V,circular:H,ring:U,ringSvg:W,ringTrack:G,ringFill:K,ringEmpty:q,ringCenter:J,ringLabel:Y,spin:X,pulse:Z};exports.animated=D,exports.bar=v,exports.barLg=_,exports.barMd=g,exports.barSm=h,exports.buffer=T,exports.circular=H,exports.default=Q,exports.fill=w,exports.header=b,exports.indeterminate=k,exports.label=x,exports.legend=N,exports.legendItem=P,exports.legendLabel=I,exports.legendValue=L,exports.pulse=Z,exports.radius2xl=p,exports.radiusLg=d,exports.radiusMd=u,exports.radiusNone=s,exports.radiusPill=m,exports.radiusSm=l,exports.radiusXl=f,exports.radiusXs=c,exports.ring=U,exports.ringCenter=J,exports.ringEmpty=q,exports.ringFill=K,exports.ringLabel=Y,exports.ringLg=B,exports.ringMd=z,exports.ringSm=R,exports.ringSvg=W,exports.ringTrack=G,exports.ringXl=V,exports.segment=M,exports.segmentTrack=j,exports.segments=y,exports.spin=X,exports.striped=E,exports.stripes=O,exports.swatch=F,exports.sweep=A,exports.toneAccent=n,exports.toneDanger=a,exports.toneInfo=o,exports.toneNeutral=t,exports.tonePrimary=e,exports.toneSuccess=r,exports.toneWarning=i,exports.track=C,exports.value=S;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
//#region src/components/feedback/Progress/Progress.module.css
|
|
2
|
+
var e = "_tonePrimary_1mn5i_23", t = "_toneNeutral_1mn5i_35", n = "_toneAccent_1mn5i_49", r = "_toneSuccess_1mn5i_61", i = "_toneWarning_1mn5i_73", a = "_toneDanger_1mn5i_85", o = "_toneInfo_1mn5i_97", s = "_radiusNone_1mn5i_117", c = "_radiusXs_1mn5i_119", l = "_radiusSm_1mn5i_121", u = "_radiusMd_1mn5i_123", d = "_radiusLg_1mn5i_125", f = "_radiusXl_1mn5i_127", p = "_radius2xl_1mn5i_129", m = "_radiusPill_1mn5i_131", h = "_barSm_1mn5i_143", g = "_barMd_1mn5i_145", _ = "_barLg_1mn5i_147", v = "_bar_1mn5i_143", y = "_segments_1mn5i_161", b = "_header_1mn5i_179", x = "_label_1mn5i_193", S = "_value_1mn5i_209", C = "_track_1mn5i_231", w = "_fill_1mn5i_251", T = "_buffer_1mn5i_253", E = "_striped_1mn5i_291", D = "_animated_1mn5i_319", O = "_stripes_1mn5i_1", k = "_indeterminate_1mn5i_349", A = "_sweep_1mn5i_1", j = "_segmentTrack_1mn5i_413", M = "_segment_1mn5i_161", N = "_legend_1mn5i_449", P = "_legendItem_1mn5i_467", F = "_swatch_1mn5i_483", I = "_legendLabel_1mn5i_523", L = "_legendValue_1mn5i_531", R = "_ringSm_1mn5i_553", z = "_ringMd_1mn5i_555", B = "_ringLg_1mn5i_557", V = "_ringXl_1mn5i_559", H = "_circular_1mn5i_563", U = "_ring_1mn5i_553", W = "_ringSvg_1mn5i_599", G = "_ringTrack_1mn5i_615", K = "_ringFill_1mn5i_625", q = "_ringEmpty_1mn5i_641", J = "_ringCenter_1mn5i_649", Y = "_ringLabel_1mn5i_687", X = "_spin_1mn5i_1", Z = "_pulse_1mn5i_1", Q = {
|
|
3
|
+
tonePrimary: e,
|
|
4
|
+
toneNeutral: t,
|
|
5
|
+
toneAccent: n,
|
|
6
|
+
toneSuccess: r,
|
|
7
|
+
toneWarning: i,
|
|
8
|
+
toneDanger: a,
|
|
9
|
+
toneInfo: o,
|
|
10
|
+
radiusNone: s,
|
|
11
|
+
radiusXs: c,
|
|
12
|
+
radiusSm: l,
|
|
13
|
+
radiusMd: u,
|
|
14
|
+
radiusLg: d,
|
|
15
|
+
radiusXl: f,
|
|
16
|
+
radius2xl: p,
|
|
17
|
+
radiusPill: m,
|
|
18
|
+
barSm: h,
|
|
19
|
+
barMd: g,
|
|
20
|
+
barLg: _,
|
|
21
|
+
bar: v,
|
|
22
|
+
segments: y,
|
|
23
|
+
header: b,
|
|
24
|
+
label: x,
|
|
25
|
+
value: S,
|
|
26
|
+
track: C,
|
|
27
|
+
fill: w,
|
|
28
|
+
buffer: T,
|
|
29
|
+
striped: E,
|
|
30
|
+
animated: D,
|
|
31
|
+
stripes: O,
|
|
32
|
+
indeterminate: k,
|
|
33
|
+
sweep: A,
|
|
34
|
+
segmentTrack: j,
|
|
35
|
+
segment: M,
|
|
36
|
+
legend: N,
|
|
37
|
+
legendItem: P,
|
|
38
|
+
swatch: F,
|
|
39
|
+
legendLabel: I,
|
|
40
|
+
legendValue: L,
|
|
41
|
+
ringSm: R,
|
|
42
|
+
ringMd: z,
|
|
43
|
+
ringLg: B,
|
|
44
|
+
ringXl: V,
|
|
45
|
+
circular: H,
|
|
46
|
+
ring: U,
|
|
47
|
+
ringSvg: W,
|
|
48
|
+
ringTrack: G,
|
|
49
|
+
ringFill: K,
|
|
50
|
+
ringEmpty: q,
|
|
51
|
+
ringCenter: J,
|
|
52
|
+
ringLabel: Y,
|
|
53
|
+
spin: X,
|
|
54
|
+
pulse: Z
|
|
55
|
+
};
|
|
56
|
+
//#endregion
|
|
57
|
+
export { D as animated, v as bar, _ as barLg, g as barMd, h as barSm, T as buffer, H as circular, Q as default, w as fill, b as header, k as indeterminate, x as label, N as legend, P as legendItem, I as legendLabel, L as legendValue, Z as pulse, p as radius2xl, d as radiusLg, u as radiusMd, s as radiusNone, m as radiusPill, l as radiusSm, f as radiusXl, c as radiusXs, U as ring, J as ringCenter, q as ringEmpty, K as ringFill, Y as ringLabel, B as ringLg, z as ringMd, R as ringSm, W as ringSvg, G as ringTrack, V as ringXl, M as segment, j as segmentTrack, y as segments, X as spin, E as striped, O as stripes, F as swatch, A as sweep, n as toneAccent, a as toneDanger, o as toneInfo, t as toneNeutral, e as tonePrimary, r as toneSuccess, i as toneWarning, C as track, S as value };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Progress';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("../../utilities/LocaleProvider/LocaleProvider.cjs.js"),t=require("../../../utils/cx.cjs.js"),n=require("../../utilities/VisuallyHidden/VisuallyHidden.cjs.js"),r=require("./Skeleton.module.css.cjs.js");let i=require("react"),a=require("react/jsx-runtime");var o={rect:r.default.rect,text:r.default.text,circle:r.default.circle,pill:r.default.pill},s={pulse:r.default.pulse,shimmer:r.default.shimmer,none:``},c={none:r.default.radiusNone,xs:r.default.radiusXs,sm:r.default.radiusSm,md:r.default.radiusMd,lg:r.default.radiusLg,xl:r.default.radiusXl,"2xl":r.default.radius2xl,pill:r.default.radiusPill},l=e=>e===void 0?void 0:typeof e==`number`?`${e}px`:e,u=(e,t)=>{let n={},r=l(e),i=l(t);return r!==void 0&&(n[`--_skeleton-width`]=r),i!==void 0&&(n[`--_skeleton-height`]=i),n},d=(e,t,n)=>{let[r,a]=(0,i.useState)(``);return(0,i.useEffect)(()=>{if(!e){a(n??``);return}a(``);let r=window.setTimeout(()=>a(t),150);return()=>window.clearTimeout(r)},[e,t,n]),r},f=({message:e})=>(0,a.jsx)(n.VisuallyHidden,{role:`status`,"aria-live":`polite`,"aria-atomic":`true`,children:e}),p=({variant:e=`rect`,width:n,height:i,radius:l,animation:p=`pulse`,loading:m=!0,inline:h=!1,loadingLabel:g,loadedLabel:_,children:v,className:y,style:b,ref:x,...S})=>{let C=v!=null&&v!==!1,w=C&&g!==void 0,T=d(w&&m,g??``,w?_:void 0);if(!C)return m?(0,a.jsx)(`span`,{"aria-hidden":`true`,...S,ref:x,className:t.cx(r.default.root,o[e],s[p],l&&c[l],y),style:{...u(n,i),...b},"data-variant":e}):null;let E=(0,a.jsxs)(`div`,{"aria-busy":m||void 0,...S,ref:x,className:t.cx(r.default.wrapper,h&&r.default.wrapperInline,m&&r.default.wrapperLoading,y),style:{...u(n,i),...b},"data-loading":m?``:void 0,children:[(0,a.jsx)(`div`,{className:t.cx(r.default.content,m&&r.default.hiddenContent),inert:m,"aria-hidden":m||void 0,children:v}),m&&(0,a.jsx)(`span`,{"aria-hidden":`true`,className:t.cx(r.default.root,r.default.overlay,e===`circle`&&r.default.radiusRound,e===`pill`&&r.default.radiusPill,s[p],l&&c[l])})]});return w?(0,a.jsxs)(a.Fragment,{children:[E,(0,a.jsx)(f,{message:T})]}):E},m={xs:r.default.sizeXs,sm:r.default.sizeSm,md:r.default.sizeMd,lg:r.default.sizeLg,xl:r.default.sizeXl,"2xl":r.default.size2xl,"3xl":r.default.size3xl,"4xl":r.default.size4xl,"5xl":r.default.size5xl,"6xl":r.default.size6xl},h={tight:r.default.leadingTight,snug:r.default.leadingSnug,normal:r.default.leadingNormal,relaxed:r.default.leadingRelaxed},g={0:r.default.gap0,1:r.default.gap1,2:r.default.gap2,3:r.default.gap3,4:r.default.gap4,5:r.default.gap5,6:r.default.gap6,8:r.default.gap8,10:r.default.gap10,12:r.default.gap12,16:r.default.gap16,20:r.default.gap20,24:r.default.gap24},_=({lines:e=3,lastLineWidth:n,width:i,size:o=`md`,leading:s=`normal`,gap:c=0,animation:l=`pulse`,className:d,style:f,..._})=>{let v=Math.max(1,Math.floor(e)),y=n??(v>1?`60%`:void 0);return(0,a.jsx)(`span`,{"aria-hidden":`true`,..._,className:t.cx(r.default.textBlock,m[o],h[s],g[c],d),style:{...u(i,void 0),...f},children:Array.from({length:v},(e,t)=>(0,a.jsx)(p,{variant:`text`,animation:l,width:t===v-1?y:void 0,"aria-hidden":void 0},t))})},v={xs:r.default.avatarXs,sm:r.default.avatarSm,md:r.default.avatarMd,lg:r.default.avatarLg,xl:r.default.avatarXl,"2xl":r.default.avatar2xl},y={circle:r.default.radiusRound,rounded:r.default.radiusMd,square:r.default.radiusSm},b=({size:e=`md`,shape:n=`circle`,animation:i=`pulse`,className:o,...c})=>(0,a.jsx)(`span`,{"aria-hidden":`true`,...c,className:t.cx(r.default.root,r.default.avatar,v[e],y[n],s[i],o)}),x=e=>(0,a.jsx)(b,{...e,shape:`circle`}),S=({loading:t=!0,label:n,loadedLabel:r,children:i,...o})=>{let s=e.useMessages(),c=d(t,n??s.skeleton.loading,r);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(`div`,{"aria-busy":t||void 0,...o,children:i}),(0,a.jsx)(f,{message:c})]})};exports.Skeleton=p,exports.SkeletonAvatar=b,exports.SkeletonCircle=x,exports.SkeletonGroup=S,exports.SkeletonText=_;
|