@k8ordo/ui 1.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +206 -171
- package/dist/_virtual/_rolldown/runtime.mjs +13 -0
- package/dist/components/_internal/focus-ring.css +37 -0
- package/dist/components/_internal/focus-ring.module.mjs +9 -0
- package/dist/components/_internal/form-value.d.mts +33 -0
- package/dist/components/_internal/form-value.mjs +91 -0
- package/dist/components/_internal/high-contrast.css +18 -0
- package/dist/components/_internal/high-contrast.module.mjs +5 -0
- package/dist/components/_internal/ignore-changes.d.mts +20 -0
- package/dist/components/_internal/ignore-changes.mjs +37 -0
- package/dist/components/_internal/nav-link.css +78 -0
- package/dist/components/_internal/nav-link.d.mts +5 -0
- package/dist/components/_internal/nav-link.mjs +8 -0
- package/dist/components/_internal/nav-link.module.mjs +14 -0
- package/dist/components/_internal/sr-only.css +17 -0
- package/dist/components/_internal/sr-only.module.mjs +5 -0
- package/dist/components/_internal/status-tone.css +37 -0
- package/dist/components/_internal/status-tone.d.mts +20 -0
- package/dist/components/_internal/status-tone.mjs +22 -0
- package/dist/components/_internal/status-tone.module.mjs +14 -0
- package/dist/components/ai/_internal/attachment-preview.css +75 -0
- package/dist/components/ai/_internal/attachment-preview.d.mts +14 -0
- package/dist/components/ai/_internal/attachment-preview.mjs +50 -0
- package/dist/components/ai/_internal/attachment-preview.module.mjs +14 -0
- package/dist/components/ai/_internal/collapsible.css +62 -0
- package/dist/components/ai/_internal/collapsible.d.mts +4 -3
- package/dist/components/ai/_internal/collapsible.mjs +42 -33
- package/dist/components/ai/_internal/collapsible.module.mjs +12 -0
- package/dist/components/ai/_internal/icons.d.mts +7 -0
- package/dist/components/ai/_internal/icons.mjs +14 -0
- package/dist/components/ai/_internal/streaming-cursor.css +28 -0
- package/dist/components/ai/_internal/streaming-cursor.d.mts +2 -3
- package/dist/components/ai/_internal/streaming-cursor.mjs +2 -1
- package/dist/components/ai/_internal/streaming-cursor.module.mjs +8 -0
- package/dist/components/ai/attachment/attachment.css +17 -0
- package/dist/components/ai/attachment/attachment.d.mts +14 -0
- package/dist/components/ai/attachment/attachment.mjs +25 -0
- package/dist/components/ai/attachment/attachment.module.mjs +8 -0
- package/dist/components/ai/attachment/index.d.mts +13 -0
- package/dist/components/ai/attachment/index.mjs +8 -0
- package/dist/components/ai/conversation/conversation.css +71 -0
- package/dist/components/ai/conversation/conversation.d.mts +8 -11
- package/dist/components/ai/conversation/conversation.mjs +39 -40
- package/dist/components/ai/conversation/conversation.module.mjs +11 -0
- package/dist/components/ai/conversation/index.d.mts +15 -2
- package/dist/components/ai/conversation/index.mjs +8 -1
- package/dist/components/ai/index.d.mts +8 -10
- package/dist/components/ai/index.mjs +7 -5
- package/dist/components/ai/message/index.d.mts +39 -2
- package/dist/components/ai/message/index.mjs +12 -1
- package/dist/components/ai/message/message.css +71 -0
- package/dist/components/ai/message/message.d.mts +33 -5
- package/dist/components/ai/message/message.mjs +98 -12
- package/dist/components/ai/message/message.module.mjs +18 -0
- package/dist/components/ai/prompt-input/index.d.mts +31 -2
- package/dist/components/ai/prompt-input/index.mjs +10 -1
- package/dist/components/ai/prompt-input/prompt-input.css +101 -0
- package/dist/components/ai/prompt-input/prompt-input.d.mts +15 -8
- package/dist/components/ai/prompt-input/prompt-input.mjs +152 -42
- package/dist/components/ai/prompt-input/prompt-input.module.mjs +15 -0
- package/dist/components/ai/reasoning/reasoning.css +16 -0
- package/dist/components/ai/reasoning/reasoning.d.mts +2 -3
- package/dist/components/ai/reasoning/reasoning.mjs +5 -5
- package/dist/components/ai/reasoning/reasoning.module.mjs +8 -0
- package/dist/components/ai/response/response.css +453 -0
- package/dist/components/ai/response/response.d.mts +4 -6
- package/dist/components/ai/response/response.mjs +20 -15
- package/dist/components/ai/response/response.module.mjs +8 -0
- package/dist/components/ai/source/index.d.mts +12 -0
- package/dist/components/ai/source/index.mjs +8 -0
- package/dist/components/ai/source/source.css +54 -0
- package/dist/components/ai/source/source.d.mts +13 -0
- package/dist/components/ai/source/source.mjs +51 -0
- package/dist/components/ai/source/source.module.mjs +12 -0
- package/dist/components/ai/suggestion/index.d.mts +13 -2
- package/dist/components/ai/suggestion/index.mjs +7 -1
- package/dist/components/ai/suggestion/suggestion.css +32 -0
- package/dist/components/ai/suggestion/suggestion.d.mts +3 -6
- package/dist/components/ai/suggestion/suggestion.mjs +8 -11
- package/dist/components/ai/suggestion/suggestion.module.mjs +8 -0
- package/dist/components/ai/tool-invocation/approval-bar.css +26 -0
- package/dist/components/ai/tool-invocation/approval-bar.d.mts +11 -0
- package/dist/components/ai/tool-invocation/approval-bar.mjs +59 -0
- package/dist/components/ai/tool-invocation/approval-bar.module.mjs +9 -0
- package/dist/components/ai/tool-invocation/tool-invocation.css +55 -0
- package/dist/components/ai/tool-invocation/tool-invocation.d.mts +5 -5
- package/dist/components/ai/tool-invocation/tool-invocation.mjs +39 -18
- package/dist/components/ai/tool-invocation/tool-invocation.module.mjs +15 -0
- package/dist/components/ai/types.d.mts +21 -4
- package/dist/components/buttons/button/button.css +158 -0
- package/dist/components/buttons/button/button.d.mts +32 -9
- package/dist/components/buttons/button/button.mjs +46 -36
- package/dist/components/buttons/button/button.module.mjs +23 -0
- package/dist/components/buttons/button/index.d.mts +2 -2
- package/dist/components/buttons/copy-button/copy-button.css +15 -0
- package/dist/components/buttons/copy-button/copy-button.d.mts +10 -0
- package/dist/components/buttons/copy-button/copy-button.mjs +70 -0
- package/dist/components/buttons/copy-button/copy-button.module.mjs +8 -0
- package/dist/components/buttons/copy-button/index.d.mts +2 -0
- package/dist/components/buttons/copy-button/index.mjs +2 -0
- package/dist/components/buttons/icon-button/icon-button.css +81 -0
- package/dist/components/buttons/icon-button/icon-button.d.mts +39 -12
- package/dist/components/buttons/icon-button/icon-button.mjs +71 -58
- package/dist/components/buttons/icon-button/icon-button.module.mjs +15 -0
- package/dist/components/buttons/icon-button/index.d.mts +2 -2
- package/dist/components/buttons/toolbar/index.d.mts +14 -0
- package/dist/components/buttons/toolbar/index.mjs +9 -0
- package/dist/components/buttons/toolbar/toolbar.css +30 -0
- package/dist/components/buttons/toolbar/toolbar.d.mts +18 -0
- package/dist/components/buttons/toolbar/toolbar.mjs +111 -0
- package/dist/components/buttons/toolbar/toolbar.module.mjs +9 -0
- package/dist/components/data-display/accordion/accordion-button.css +48 -0
- package/dist/components/data-display/accordion/accordion-button.d.mts +2 -3
- package/dist/components/data-display/accordion/accordion-button.mjs +5 -4
- package/dist/components/data-display/accordion/accordion-button.module.mjs +9 -0
- package/dist/components/data-display/accordion/accordion-item.css +11 -0
- package/dist/components/data-display/accordion/accordion-item.d.mts +2 -3
- package/dist/components/data-display/accordion/accordion-item.mjs +2 -1
- package/dist/components/data-display/accordion/accordion-item.module.mjs +5 -0
- package/dist/components/data-display/accordion/accordion-panel.css +9 -0
- package/dist/components/data-display/accordion/accordion-panel.d.mts +2 -3
- package/dist/components/data-display/accordion/accordion-panel.mjs +2 -2
- package/dist/components/data-display/accordion/accordion-panel.module.mjs +5 -0
- package/dist/components/data-display/accordion/accordion.css +19 -0
- package/dist/components/data-display/accordion/accordion.d.mts +2 -3
- package/dist/components/data-display/accordion/accordion.mjs +2 -1
- package/dist/components/data-display/accordion/accordion.module.mjs +5 -0
- package/dist/components/data-display/accordion/context.d.mts +3 -3
- package/dist/components/data-display/accordion/index.d.mts +2 -3
- package/dist/components/data-display/avatar/avatar.css +95 -0
- package/dist/components/data-display/avatar/avatar.d.mts +2 -3
- package/dist/components/data-display/avatar/avatar.mjs +22 -6
- package/dist/components/data-display/avatar/avatar.module.mjs +18 -0
- package/dist/components/data-display/badge/badge.css +160 -0
- package/dist/components/data-display/badge/badge.d.mts +2 -3
- package/dist/components/data-display/badge/badge.mjs +30 -5
- package/dist/components/data-display/badge/badge.module.mjs +21 -0
- package/dist/components/data-display/card/card.css +44 -0
- package/dist/components/data-display/card/card.d.mts +2 -3
- package/dist/components/data-display/card/card.mjs +12 -2
- package/dist/components/data-display/card/card.module.mjs +12 -0
- package/dist/components/data-display/carousel/carousel.css +83 -0
- package/dist/components/data-display/carousel/carousel.d.mts +11 -0
- package/dist/components/data-display/carousel/carousel.mjs +186 -0
- package/dist/components/data-display/carousel/carousel.module.mjs +18 -0
- package/dist/components/data-display/carousel/index.d.mts +11 -0
- package/dist/components/data-display/carousel/index.mjs +8 -0
- package/dist/components/data-display/code/code.css +37 -0
- package/dist/components/data-display/code/code.d.mts +2 -3
- package/dist/components/data-display/code/code.mjs +7 -6
- package/dist/components/data-display/code/code.module.mjs +9 -0
- package/dist/components/data-display/code/find-all-colors.d.mts +2 -3
- package/dist/components/data-display/code/find-all-colors.mjs +0 -161
- package/dist/components/data-display/code-block/code-block.css +161 -0
- package/dist/components/data-display/code-block/code-block.d.mts +12 -0
- package/dist/components/data-display/code-block/code-block.mjs +44 -0
- package/dist/components/data-display/code-block/code-block.module.mjs +11 -0
- package/dist/components/data-display/code-block/highlight.d.mts +9 -0
- package/dist/components/data-display/code-block/highlight.mjs +54 -0
- package/dist/components/data-display/code-block/index.d.mts +2 -0
- package/dist/components/data-display/code-block/index.mjs +2 -0
- package/dist/components/data-display/data-table/data-table.css +74 -0
- package/dist/components/data-display/data-table/data-table.d.mts +31 -0
- package/dist/components/data-display/data-table/data-table.mjs +155 -0
- package/dist/components/data-display/data-table/data-table.module.mjs +14 -0
- package/dist/components/data-display/data-table/index.d.mts +2 -0
- package/dist/components/data-display/data-table/index.mjs +2 -0
- package/dist/components/data-display/heading/heading.css +99 -0
- package/dist/components/data-display/heading/heading.d.mts +2 -3
- package/dist/components/data-display/heading/heading.mjs +15 -14
- package/dist/components/data-display/heading/heading.module.mjs +20 -0
- package/dist/components/data-display/kbd/index.d.mts +2 -0
- package/dist/components/data-display/kbd/index.mjs +2 -0
- package/dist/components/data-display/kbd/kbd.css +21 -0
- package/dist/components/data-display/kbd/kbd.d.mts +8 -0
- package/dist/components/data-display/kbd/kbd.mjs +17 -0
- package/dist/components/data-display/kbd/kbd.module.mjs +5 -0
- package/dist/components/data-display/prose/index.d.mts +2 -0
- package/dist/components/data-display/prose/index.mjs +2 -0
- package/dist/components/data-display/prose/prose.css +253 -0
- package/dist/components/data-display/prose/prose.d.mts +5 -0
- package/dist/components/data-display/prose/prose.mjs +10 -0
- package/dist/components/data-display/prose/prose.module.mjs +5 -0
- package/dist/components/data-display/table/table.css +107 -0
- package/dist/components/data-display/table/table.d.mts +10 -9
- package/dist/components/data-display/table/table.mjs +26 -15
- package/dist/components/data-display/table/table.module.mjs +22 -0
- package/dist/components/data-display/tree/index.d.mts +2 -0
- package/dist/components/data-display/tree/index.mjs +2 -0
- package/dist/components/data-display/tree/tree.css +84 -0
- package/dist/components/data-display/tree/tree.d.mts +20 -0
- package/dist/components/data-display/tree/tree.mjs +151 -0
- package/dist/components/data-display/tree/tree.module.mjs +15 -0
- package/dist/components/feedback/alert/alert.css +42 -0
- package/dist/components/feedback/alert/alert.d.mts +3 -4
- package/dist/components/feedback/alert/alert.mjs +20 -23
- package/dist/components/feedback/alert/alert.module.mjs +14 -0
- package/dist/components/feedback/callout/callout.css +38 -0
- package/dist/components/feedback/callout/callout.d.mts +10 -0
- package/dist/components/feedback/callout/callout.mjs +38 -0
- package/dist/components/feedback/callout/callout.module.mjs +11 -0
- package/dist/components/feedback/callout/index.d.mts +2 -0
- package/dist/components/feedback/callout/index.mjs +2 -0
- package/dist/components/feedback/empty-state/empty-state.css +36 -0
- package/dist/components/feedback/empty-state/empty-state.d.mts +10 -0
- package/dist/components/feedback/empty-state/empty-state.mjs +27 -0
- package/dist/components/feedback/empty-state/empty-state.module.mjs +11 -0
- package/dist/components/feedback/empty-state/index.d.mts +2 -0
- package/dist/components/feedback/empty-state/index.mjs +2 -0
- package/dist/components/feedback/progress/progress.css +78 -0
- package/dist/components/feedback/progress/progress.d.mts +5 -5
- package/dist/components/feedback/progress/progress.mjs +17 -3
- package/dist/components/feedback/progress/progress.module.mjs +12 -0
- package/dist/components/feedback/skeleton/skeleton.css +64 -0
- package/dist/components/feedback/skeleton/skeleton.d.mts +2 -3
- package/dist/components/feedback/skeleton/skeleton.mjs +19 -2
- package/dist/components/feedback/skeleton/skeleton.module.mjs +17 -0
- package/dist/components/feedback/spinner/spinner.css +40 -0
- package/dist/components/feedback/spinner/spinner.d.mts +2 -3
- package/dist/components/feedback/spinner/spinner.mjs +13 -7
- package/dist/components/feedback/spinner/spinner.module.mjs +12 -0
- package/dist/components/feedback/toast/context.d.mts +8 -9
- package/dist/components/feedback/toast/provider.css +69 -0
- package/dist/components/feedback/toast/provider.d.mts +2 -3
- package/dist/components/feedback/toast/provider.mjs +17 -13
- package/dist/components/feedback/toast/provider.module.mjs +12 -0
- package/dist/components/feedback/toast/toast.d.mts +2 -3
- package/dist/components/form/autocomplete/autocomplete.css +154 -0
- package/dist/components/form/autocomplete/autocomplete.d.mts +2 -3
- package/dist/components/form/autocomplete/autocomplete.mjs +70 -46
- package/dist/components/form/autocomplete/autocomplete.module.mjs +21 -0
- package/dist/components/form/calendar/calendar.css +98 -0
- package/dist/components/form/calendar/calendar.d.mts +14 -0
- package/dist/components/form/calendar/calendar.mjs +182 -0
- package/dist/components/form/calendar/calendar.module.mjs +18 -0
- package/dist/components/form/calendar/index.d.mts +2 -0
- package/dist/components/form/calendar/index.mjs +2 -0
- package/dist/components/form/checkbox/checkbox.css +90 -0
- package/dist/components/form/checkbox/checkbox.d.mts +5 -3
- package/dist/components/form/checkbox/checkbox.mjs +30 -27
- package/dist/components/form/checkbox/checkbox.module.mjs +13 -0
- package/dist/components/form/checkbox-card/checkbox-card.css +138 -0
- package/dist/components/form/checkbox-card/checkbox-card.d.mts +3 -4
- package/dist/components/form/checkbox-card/checkbox-card.mjs +17 -23
- package/dist/components/form/checkbox-card/checkbox-card.module.mjs +17 -0
- package/dist/components/form/checkbox-group/checkbox-group.css +15 -0
- package/dist/components/form/checkbox-group/checkbox-group.d.mts +7 -5
- package/dist/components/form/checkbox-group/checkbox-group.mjs +12 -16
- package/dist/components/form/checkbox-group/checkbox-group.module.mjs +8 -0
- package/dist/components/form/checkbox-group/index.d.mts +5 -3
- package/dist/components/form/color-picker/color-picker.css +172 -0
- package/dist/components/form/color-picker/color-picker.d.mts +28 -0
- package/dist/components/form/color-picker/color-picker.mjs +239 -0
- package/dist/components/form/color-picker/color-picker.module.mjs +20 -0
- package/dist/components/form/color-picker/index.d.mts +2 -0
- package/dist/components/form/color-picker/index.mjs +2 -0
- package/dist/components/form/combobox/combobox.css +143 -0
- package/dist/components/form/combobox/combobox.d.mts +32 -0
- package/dist/components/form/combobox/combobox.mjs +278 -0
- package/dist/components/form/combobox/combobox.module.mjs +19 -0
- package/dist/components/form/combobox/index.d.mts +2 -0
- package/dist/components/form/combobox/index.mjs +2 -0
- package/dist/components/form/date-field/date-field.css +31 -0
- package/dist/components/form/date-field/date-field.d.mts +8 -0
- package/dist/components/form/date-field/date-field.mjs +20 -0
- package/dist/components/form/date-field/date-field.module.mjs +5 -0
- package/dist/components/form/date-field/index.d.mts +2 -0
- package/dist/components/form/date-field/index.mjs +2 -0
- package/dist/components/form/date-picker/date-picker.css +90 -0
- package/dist/components/form/date-picker/date-picker.d.mts +12 -0
- package/dist/components/form/date-picker/date-picker.mjs +77 -0
- package/dist/components/form/date-picker/date-picker.module.mjs +14 -0
- package/dist/components/form/date-picker/index.d.mts +2 -0
- package/dist/components/form/date-picker/index.mjs +2 -0
- package/dist/components/form/file-field/file-field.css +88 -0
- package/dist/components/form/file-field/file-field.d.mts +18 -19
- package/dist/components/form/file-field/file-field.mjs +130 -42
- package/dist/components/form/file-field/file-field.module.mjs +17 -0
- package/dist/components/form/file-field/index.d.mts +20 -2
- package/dist/components/form/file-field/index.mjs +9 -1
- package/dist/components/form/form/form.css +11 -0
- package/dist/components/form/form/form.d.mts +4 -4
- package/dist/components/form/form/form.mjs +2 -1
- package/dist/components/form/form/form.module.mjs +5 -0
- package/dist/components/form/form-control/form-control.css +43 -0
- package/dist/components/form/form-control/form-control.d.mts +2 -3
- package/dist/components/form/form-control/form-control.mjs +11 -10
- package/dist/components/form/form-control/form-control.module.mjs +12 -0
- package/dist/components/form/number-field/cast.d.mts +2 -3
- package/dist/components/form/number-field/cast.mjs +3 -22
- package/dist/components/form/number-field/number-field.css +122 -0
- package/dist/components/form/number-field/number-field.d.mts +10 -10
- package/dist/components/form/number-field/number-field.mjs +126 -54
- package/dist/components/form/number-field/number-field.module.mjs +10 -0
- package/dist/components/form/password-input/password-input.css +88 -0
- package/dist/components/form/password-input/password-input.d.mts +2 -3
- package/dist/components/form/password-input/password-input.mjs +15 -12
- package/dist/components/form/password-input/password-input.module.mjs +12 -0
- package/dist/components/form/radio/radio.css +89 -0
- package/dist/components/form/radio/radio.d.mts +4 -3
- package/dist/components/form/radio/radio.mjs +16 -19
- package/dist/components/form/radio/radio.module.mjs +16 -0
- package/dist/components/form/radio-card/radio-card.css +147 -0
- package/dist/components/form/radio-card/radio-card.d.mts +4 -4
- package/dist/components/form/radio-card/radio-card.mjs +17 -23
- package/dist/components/form/radio-card/radio-card.module.mjs +19 -0
- package/dist/components/form/range-slider/index.d.mts +2 -0
- package/dist/components/form/range-slider/index.mjs +2 -0
- package/dist/components/form/range-slider/range-slider.css +67 -0
- package/dist/components/form/range-slider/range-slider.d.mts +30 -0
- package/dist/components/form/range-slider/range-slider.mjs +135 -0
- package/dist/components/form/range-slider/range-slider.module.mjs +14 -0
- package/dist/components/form/select/select.css +74 -0
- package/dist/components/form/select/select.d.mts +2 -3
- package/dist/components/form/select/select.mjs +25 -8
- package/dist/components/form/select/select.module.mjs +12 -0
- package/dist/components/form/slider/range-input-class.css +97 -0
- package/dist/components/form/slider/range-input-class.d.mts +7 -0
- package/dist/components/form/slider/range-input-class.mjs +10 -0
- package/dist/components/form/slider/range-input-class.module.mjs +8 -0
- package/dist/components/form/slider/slider.css +55 -0
- package/dist/components/form/slider/slider.d.mts +6 -7
- package/dist/components/form/slider/slider.mjs +44 -11
- package/dist/components/form/slider/slider.module.mjs +12 -0
- package/dist/components/form/switch/switch.css +103 -0
- package/dist/components/form/switch/switch.d.mts +2 -3
- package/dist/components/form/switch/switch.mjs +14 -17
- package/dist/components/form/switch/switch.module.mjs +16 -0
- package/dist/components/form/text-field/text-field.css +41 -0
- package/dist/components/form/text-field/text-field.d.mts +4 -5
- package/dist/components/form/text-field/text-field.mjs +2 -3
- package/dist/components/form/text-field/text-field.module.mjs +5 -0
- package/dist/components/form/textarea/textarea.css +50 -0
- package/dist/components/form/textarea/textarea.d.mts +3 -3
- package/dist/components/form/textarea/textarea.mjs +6 -20
- package/dist/components/form/textarea/textarea.module.mjs +9 -0
- package/dist/components/icons/base.css +40 -0
- package/dist/components/icons/base.d.mts +4 -5
- package/dist/components/icons/base.mjs +10 -10
- package/dist/components/icons/base.module.mjs +13 -0
- package/dist/components/icons/browsers.d.mts +5 -6
- package/dist/components/icons/color-scale.d.mts +2 -3
- package/dist/components/icons/github-mark.d.mts +2 -3
- package/dist/components/icons/logo.css +17 -0
- package/dist/components/icons/logo.d.mts +3 -4
- package/dist/components/icons/logo.mjs +4 -3
- package/dist/components/icons/logo.module.mjs +9 -0
- package/dist/components/icons/lucide-deep.d.mts +3 -1
- package/dist/components/icons/lucide-imports.d.mts +3 -1
- package/dist/components/icons/lucide-imports.mjs +3 -1
- package/dist/components/icons/lucide.d.mts +60 -61
- package/dist/components/icons/qiita.d.mts +2 -3
- package/dist/components/icons/twitter.css +9 -0
- package/dist/components/icons/twitter.d.mts +2 -3
- package/dist/components/icons/twitter.mjs +2 -1
- package/dist/components/icons/twitter.module.mjs +5 -0
- package/dist/components/icons/vertical-writing.d.mts +2 -3
- package/dist/components/index.d.mts +62 -29
- package/dist/components/index.mjs +36 -14
- package/dist/components/layout/_shared/gap.css +25 -0
- package/dist/components/layout/_shared/gap.d.mts +8 -9
- package/dist/components/layout/_shared/gap.mjs +6 -5
- package/dist/components/layout/_shared/gap.module.mjs +11 -0
- package/dist/components/layout/_shared/padding.css +25 -0
- package/dist/components/layout/_shared/padding.d.mts +8 -9
- package/dist/components/layout/_shared/padding.mjs +6 -5
- package/dist/components/layout/_shared/padding.module.mjs +11 -0
- package/dist/components/layout/grid/grid.css +93 -0
- package/dist/components/layout/grid/grid.d.mts +5 -6
- package/dist/components/layout/grid/grid.mjs +21 -20
- package/dist/components/layout/grid/grid.module.mjs +25 -0
- package/dist/components/layout/resizable-panels/index.d.mts +18 -0
- package/dist/components/layout/resizable-panels/index.mjs +9 -0
- package/dist/components/layout/resizable-panels/resizable-panels.css +77 -0
- package/dist/components/layout/resizable-panels/resizable-panels.d.mts +21 -0
- package/dist/components/layout/resizable-panels/resizable-panels.mjs +164 -0
- package/dist/components/layout/resizable-panels/resizable-panels.module.mjs +16 -0
- package/dist/components/layout/separator/separator.css +37 -0
- package/dist/components/layout/separator/separator.d.mts +2 -3
- package/dist/components/layout/separator/separator.mjs +12 -9
- package/dist/components/layout/separator/separator.module.mjs +12 -0
- package/dist/components/layout/stack/stack.css +49 -0
- package/dist/components/layout/stack/stack.d.mts +3 -4
- package/dist/components/layout/stack/stack.mjs +11 -10
- package/dist/components/layout/stack/stack.module.mjs +17 -0
- package/dist/components/navigation/anchor/anchor.css +29 -0
- package/dist/components/navigation/anchor/anchor.d.mts +2 -3
- package/dist/components/navigation/anchor/anchor.mjs +5 -2
- package/dist/components/navigation/anchor/anchor.module.mjs +8 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.css +72 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +5 -6
- package/dist/components/navigation/breadcrumb/breadcrumb.mjs +15 -9
- package/dist/components/navigation/breadcrumb/breadcrumb.module.mjs +14 -0
- package/dist/components/navigation/breadcrumb/index.d.mts +2 -3
- package/dist/components/navigation/pagination/pagination.css +36 -0
- package/dist/components/navigation/pagination/pagination.d.mts +2 -3
- package/dist/components/navigation/pagination/pagination.mjs +9 -8
- package/dist/components/navigation/pagination/pagination.module.mjs +11 -0
- package/dist/components/navigation/side-nav/index.d.mts +16 -0
- package/dist/components/navigation/side-nav/index.mjs +10 -0
- package/dist/components/navigation/side-nav/side-nav.css +73 -0
- package/dist/components/navigation/side-nav/side-nav.d.mts +31 -0
- package/dist/components/navigation/side-nav/side-nav.mjs +62 -0
- package/dist/components/navigation/side-nav/side-nav.module.mjs +11 -0
- package/dist/components/navigation/stepper/index.d.mts +2 -0
- package/dist/components/navigation/stepper/index.mjs +2 -0
- package/dist/components/navigation/stepper/stepper.css +151 -0
- package/dist/components/navigation/stepper/stepper.d.mts +19 -0
- package/dist/components/navigation/stepper/stepper.mjs +87 -0
- package/dist/components/navigation/stepper/stepper.module.mjs +29 -0
- package/dist/components/navigation/table-of-contents/index.d.mts +2 -0
- package/dist/components/navigation/table-of-contents/index.mjs +2 -0
- package/dist/components/navigation/table-of-contents/table-of-contents.css +17 -0
- package/dist/components/navigation/table-of-contents/table-of-contents.d.mts +12 -0
- package/dist/components/navigation/table-of-contents/table-of-contents.mjs +94 -0
- package/dist/components/navigation/table-of-contents/table-of-contents.module.mjs +8 -0
- package/dist/components/navigation/tabs/index.d.mts +19 -2
- package/dist/components/navigation/tabs/index.mjs +9 -1
- package/dist/components/navigation/tabs/tabs.css +70 -0
- package/dist/components/navigation/tabs/tabs.d.mts +16 -19
- package/dist/components/navigation/tabs/tabs.mjs +52 -49
- package/dist/components/navigation/tabs/tabs.module.mjs +12 -0
- package/dist/components/observers/fragment-instance.d.mts +1 -0
- package/dist/components/observers/in-view/in-view.d.mts +11 -0
- package/dist/components/observers/in-view/in-view.mjs +60 -0
- package/dist/components/observers/in-view/index.d.mts +2 -0
- package/dist/components/observers/in-view/index.mjs +2 -0
- package/dist/components/observers/resize/index.d.mts +2 -0
- package/dist/components/observers/resize/index.mjs +2 -0
- package/dist/components/observers/resize/resize.d.mts +7 -0
- package/dist/components/observers/resize/resize.mjs +25 -0
- package/dist/components/overlays/_internal/modal-dialog-context.d.mts +4 -5
- package/dist/components/overlays/_internal/use-can-hover.d.mts +2 -3
- package/dist/components/overlays/_internal/use-hover-intent.d.mts +3 -4
- package/dist/components/overlays/_internal/use-list-navigation.d.mts +17 -11
- package/dist/components/overlays/_internal/use-list-navigation.mjs +42 -26
- package/dist/components/overlays/command-palette/command-palette.css +91 -0
- package/dist/components/overlays/command-palette/command-palette.d.mts +24 -0
- package/dist/components/overlays/command-palette/command-palette.mjs +139 -0
- package/dist/components/overlays/command-palette/command-palette.module.mjs +14 -0
- package/dist/components/overlays/command-palette/index.d.mts +2 -0
- package/dist/components/overlays/command-palette/index.mjs +2 -0
- package/dist/components/overlays/context-menu/context-menu.d.mts +13 -0
- package/dist/components/overlays/context-menu/context-menu.mjs +79 -0
- package/dist/components/overlays/context-menu/index.d.mts +21 -0
- package/dist/components/overlays/context-menu/index.mjs +13 -0
- package/dist/components/overlays/dialog/dialog.css +31 -0
- package/dist/components/overlays/dialog/dialog.d.mts +12 -17
- package/dist/components/overlays/dialog/dialog.mjs +11 -13
- package/dist/components/overlays/dialog/dialog.module.mjs +10 -0
- package/dist/components/overlays/dialog/index.d.mts +17 -2
- package/dist/components/overlays/dialog/index.mjs +8 -1
- package/dist/components/overlays/drawer/drawer.css +48 -0
- package/dist/components/overlays/drawer/drawer.d.mts +2 -3
- package/dist/components/overlays/drawer/drawer.mjs +11 -10
- package/dist/components/overlays/drawer/drawer.module.mjs +13 -0
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +19 -26
- package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +12 -20
- package/dist/components/overlays/dropdown-menu/hooks.d.mts +7 -7
- package/dist/components/overlays/dropdown-menu/hooks.mjs +3 -3
- package/dist/components/overlays/dropdown-menu/index.d.mts +30 -2
- package/dist/components/overlays/dropdown-menu/index.mjs +12 -1
- package/dist/components/overlays/dropdown-menu/shared.css +51 -0
- package/dist/components/overlays/dropdown-menu/shared.d.mts +3 -6
- package/dist/components/overlays/dropdown-menu/shared.mjs +4 -6
- package/dist/components/overlays/dropdown-menu/shared.module.mjs +8 -0
- package/dist/components/overlays/dropdown-menu/sub-menu.css +28 -0
- package/dist/components/overlays/dropdown-menu/sub-menu.d.mts +3 -6
- package/dist/components/overlays/dropdown-menu/sub-menu.mjs +16 -16
- package/dist/components/overlays/dropdown-menu/sub-menu.module.mjs +9 -0
- package/dist/components/overlays/dropdown-menu/use-safe-triangle.d.mts +2 -3
- package/dist/components/overlays/list-box/hooks.d.mts +6 -5
- package/dist/components/overlays/list-box/hooks.mjs +5 -4
- package/dist/components/overlays/list-box/index.d.mts +27 -2
- package/dist/components/overlays/list-box/index.mjs +9 -1
- package/dist/components/overlays/list-box/list-box.css +74 -0
- package/dist/components/overlays/list-box/list-box.d.mts +20 -23
- package/dist/components/overlays/list-box/list-box.mjs +17 -21
- package/dist/components/overlays/list-box/list-box.module.mjs +10 -0
- package/dist/components/overlays/modal/modal.css +119 -0
- package/dist/components/overlays/modal/modal.d.mts +2 -3
- package/dist/components/overlays/modal/modal.mjs +14 -11
- package/dist/components/overlays/modal/modal.module.mjs +11 -0
- package/dist/components/overlays/popover/anchor-positioning.d.mts +4 -5
- package/dist/components/overlays/popover/escape-stack.d.mts +2 -3
- package/dist/components/overlays/popover/hooks.d.mts +7 -8
- package/dist/components/overlays/popover/index.d.mts +25 -2
- package/dist/components/overlays/popover/index.mjs +8 -1
- package/dist/components/overlays/popover/popover.css +51 -0
- package/dist/components/overlays/popover/popover.d.mts +18 -20
- package/dist/components/overlays/popover/popover.mjs +13 -12
- package/dist/components/overlays/popover/popover.module.mjs +11 -0
- package/dist/components/overlays/tooltip/bridge.css +68 -0
- package/dist/components/overlays/tooltip/bridge.d.mts +2 -3
- package/dist/components/overlays/tooltip/bridge.mjs +7 -21
- package/dist/components/overlays/tooltip/bridge.module.mjs +11 -0
- package/dist/components/overlays/tooltip/index.d.mts +22 -2
- package/dist/components/overlays/tooltip/index.mjs +8 -1
- package/dist/components/overlays/tooltip/tooltip.css +15 -0
- package/dist/components/overlays/tooltip/tooltip.d.mts +19 -24
- package/dist/components/overlays/tooltip/tooltip.mjs +5 -9
- package/dist/components/overlays/tooltip/tooltip.module.mjs +5 -0
- package/dist/components/providers/index.d.mts +1 -2
- package/dist/components/providers/portal-root.d.mts +9 -7
- package/dist/components/providers/portal-root.mjs +7 -7
- package/dist/components/providers/ui-provider.d.mts +2 -6
- package/dist/components/providers/ui-provider.mjs +1 -5
- package/dist/helpers/chain.d.mts +2 -3
- package/dist/helpers/chain.mjs +0 -23
- package/dist/helpers/create-safe-context.d.mts +2 -3
- package/dist/helpers/create-safe-context.mjs +0 -17
- package/dist/helpers/index.d.mts +1 -2
- package/dist/helpers/index.mjs +2 -3
- package/dist/helpers/merge-props.d.mts +2 -3
- package/dist/helpers/merge-props.mjs +2 -37
- package/dist/helpers/merge-refs.d.mts +2 -3
- package/dist/helpers/merge-refs.mjs +0 -32
- package/dist/hooks/click-away/index.d.mts +2 -3
- package/dist/hooks/controllable-state/index.d.mts +2 -3
- package/dist/hooks/controllable-state/index.mjs +9 -11
- package/dist/hooks/index.d.mts +2 -23
- package/dist/hooks/index.mjs +2 -22
- package/dist/hooks/writing-mode/index.d.mts +15 -5
- package/dist/hooks/writing-mode/index.mjs +21 -14
- package/dist/i18n/current.d.mts +23 -0
- package/dist/i18n/current.mjs +43 -0
- package/dist/i18n/en.d.mts +2 -3
- package/dist/i18n/en.mjs +46 -0
- package/dist/i18n/index.d.mts +3 -2
- package/dist/i18n/index.mjs +4 -3
- package/dist/i18n/ja.d.mts +2 -3
- package/dist/i18n/ja.mjs +46 -0
- package/dist/i18n/messages.d.mts +81 -3
- package/dist/i18n/usage.d.mts +8 -0
- package/dist/i18n/usage.mjs +131 -0
- package/dist/index.d.mts +40 -47
- package/dist/index.mjs +36 -42
- package/dist/integrations/_shared/openui-defs.d.mts +3 -4
- package/dist/integrations/_shared/openui-defs.mjs +123 -54
- package/dist/integrations/_shared/renderers.css +50 -0
- package/dist/integrations/_shared/renderers.d.mts +71 -52
- package/dist/integrations/_shared/renderers.mjs +292 -34
- package/dist/integrations/_shared/renderers.module.mjs +14 -0
- package/dist/integrations/_shared/schemas.d.mts +388 -104
- package/dist/integrations/_shared/schemas.mjs +165 -27
- package/dist/integrations/ai-sdk/index.d.mts +2 -2
- package/dist/integrations/ai-sdk/map-parts.d.mts +25 -7
- package/dist/integrations/ai-sdk/map-parts.mjs +28 -3
- package/dist/integrations/json-render/catalog.d.mts +336 -18
- package/dist/integrations/json-render/catalog.mjs +120 -57
- package/dist/integrations/json-render/registry.d.mts +3 -4
- package/dist/integrations/json-render/registry.mjs +38 -4
- package/dist/integrations/openui/form-views.d.mts +23 -18
- package/dist/integrations/openui/form-views.mjs +27 -3
- package/dist/integrations/openui/library.d.mts +59 -7
- package/dist/integrations/openui/library.mjs +18 -3
- package/dist/integrations/openui/prompt.d.mts +2 -3
- package/dist/internal/accepts-file.d.mts +8 -0
- package/dist/internal/accepts-file.mjs +19 -0
- package/dist/internal/carries-files.d.mts +3 -0
- package/dist/internal/carries-files.mjs +4 -0
- package/dist/internal/clamp.d.mts +2 -3
- package/dist/internal/clamp.mjs +0 -11
- package/dist/internal/commit-input-value.d.mts +10 -0
- package/dist/internal/commit-input-value.mjs +15 -0
- package/dist/internal/dropped-files.d.mts +3 -0
- package/dist/internal/dropped-files.mjs +8 -0
- package/dist/{hooks/focus-trap/index.d.mts → internal/focus-trap.d.mts} +6 -7
- package/dist/{hooks/focus-trap/index.mjs → internal/focus-trap.mjs} +5 -5
- package/dist/internal/hex-color.d.mts +22 -0
- package/dist/internal/hex-color.mjs +53 -0
- package/dist/internal/iso-date.d.mts +39 -0
- package/dist/internal/iso-date.mjs +98 -0
- package/dist/internal/to-precision.d.mts +2 -3
- package/dist/internal/to-precision.mjs +0 -8
- package/dist/styles/index.css +513 -2534
- package/dist/styles/tailwind.css +217 -17
- package/dist/styles/tokens.d.mts +1 -2
- package/dist/styles/tokens.mjs +1 -2
- package/dist/types/variables.d.mts +7 -9
- package/docs/GUIDE.md +340 -158
- package/docs/llms.txt +18 -10
- package/docs/props.generated.json +2157 -292
- package/docs/references/ai-chat.md +396 -113
- package/docs/references/color.md +258 -113
- package/docs/references/components.md +1891 -461
- package/docs/references/generative-ui.md +163 -34
- package/docs/references/interaction-design.md +103 -73
- package/docs/references/spatial-design.md +112 -90
- package/docs/references/types.md +101 -0
- package/docs/references/typography.md +182 -73
- package/package.json +71 -70
- package/dist/components/_internal/focus-ring.d.mts +0 -8
- package/dist/components/_internal/focus-ring.mjs +0 -8
- package/dist/components/layout/scroll-linked/index.d.mts +0 -2
- package/dist/components/layout/scroll-linked/index.mjs +0 -2
- package/dist/components/layout/scroll-linked/scroll-linked.d.mts +0 -14
- package/dist/components/layout/scroll-linked/scroll-linked.mjs +0 -59
- package/dist/helpers/cn.d.mts +0 -5
- package/dist/helpers/cn.mjs +0 -27
- package/dist/hooks/breakpoint/index.d.mts +0 -5
- package/dist/hooks/breakpoint/index.mjs +0 -24
- package/dist/hooks/client/index.d.mts +0 -4
- package/dist/hooks/client/index.mjs +0 -6
- package/dist/hooks/clipboard/index.d.mts +0 -7
- package/dist/hooks/clipboard/index.mjs +0 -15
- package/dist/hooks/debounced-transition/index.d.mts +0 -5
- package/dist/hooks/debounced-transition/index.mjs +0 -49
- package/dist/hooks/deferred-debounce/index.d.mts +0 -4
- package/dist/hooks/deferred-debounce/index.mjs +0 -9
- package/dist/hooks/disclosure/index.d.mts +0 -10
- package/dist/hooks/disclosure/index.mjs +0 -20
- package/dist/hooks/hash/index.d.mts +0 -4
- package/dist/hooks/hash/index.mjs +0 -25
- package/dist/hooks/hover/index.d.mts +0 -12
- package/dist/hooks/hover/index.mjs +0 -19
- package/dist/hooks/intersection-observer/index.d.mts +0 -3
- package/dist/hooks/intersection-observer/index.mjs +0 -3
- package/dist/hooks/intersection-observer/use-in-view.d.mts +0 -11
- package/dist/hooks/intersection-observer/use-in-view.mjs +0 -18
- package/dist/hooks/intersection-observer/use-intersection-observer.d.mts +0 -11
- package/dist/hooks/intersection-observer/use-intersection-observer.mjs +0 -33
- package/dist/hooks/interval/index.d.mts +0 -4
- package/dist/hooks/interval/index.mjs +0 -19
- package/dist/hooks/local-storage/index.d.mts +0 -4
- package/dist/hooks/local-storage/index.mjs +0 -46
- package/dist/hooks/resize/index.d.mts +0 -8
- package/dist/hooks/resize/index.mjs +0 -24
- package/dist/hooks/scroll-direction/index.d.mts +0 -13
- package/dist/hooks/scroll-direction/index.mjs +0 -67
- package/dist/hooks/scroll-lock/index.d.mts +0 -9
- package/dist/hooks/scroll-lock/index.mjs +0 -59
- package/dist/hooks/session-storage/index.d.mts +0 -4
- package/dist/hooks/session-storage/index.mjs +0 -46
- package/dist/hooks/step/index.d.mts +0 -15
- package/dist/hooks/step/index.mjs +0 -39
- package/dist/hooks/timeout/index.d.mts +0 -4
- package/dist/hooks/timeout/index.mjs +0 -19
- package/dist/hooks/window-resize/index.d.mts +0 -11
- package/dist/hooks/window-resize/index.mjs +0 -21
- package/dist/hooks/window-size/index.d.mts +0 -8
- package/dist/hooks/window-size/index.mjs +0 -31
- package/dist/i18n/context.d.mts +0 -9
- package/dist/i18n/context.mjs +0 -19
- package/dist/styles/base.css +0 -315
- package/dist/styles/tokens.css +0 -380
- package/dist/styles/tokens.generated.d.mts +0 -840
- package/dist/styles/tokens.generated.mjs +0 -813
- package/dist/styles/utilities.css +0 -62
- package/docs/references/helpers.md +0 -120
- package/docs/references/hooks.md +0 -314
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './progress.css';
|
|
2
|
+
//#region src/components/feedback/progress/progress.module.css
|
|
3
|
+
var progress_module_default = {
|
|
4
|
+
"fill": "YyzTwG_fill",
|
|
5
|
+
"indeterminate": "YyzTwG_indeterminate",
|
|
6
|
+
"indeterminateTrack": "YyzTwG_indeterminateTrack",
|
|
7
|
+
"pulse": "YyzTwG_pulse",
|
|
8
|
+
"slide": "YyzTwG_slide",
|
|
9
|
+
"track": "YyzTwG_track"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { progress_module_default as default };
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
@layer properties, theme, base;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.RGPkxq_root {
|
|
5
|
+
background-color: var(--color-bg-mute);
|
|
6
|
+
|
|
7
|
+
@media (forced-colors: active) {
|
|
8
|
+
background-color: var(--color-system-gray-text);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.RGPkxq_animate {
|
|
13
|
+
animation-name: RGPkxq_pulse;
|
|
14
|
+
animation-duration: var(--duration-pulse);
|
|
15
|
+
animation-timing-function: var(--easing-pulse);
|
|
16
|
+
animation-iteration-count: infinite;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.RGPkxq_rect {
|
|
20
|
+
border-radius: var(--radius-lg);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.RGPkxq_rectSm {
|
|
24
|
+
width: calc(var(--spacing) * 24);
|
|
25
|
+
height: calc(var(--spacing) * 3);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.RGPkxq_rectMd {
|
|
29
|
+
width: calc(var(--spacing) * 40);
|
|
30
|
+
height: calc(var(--spacing) * 4);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.RGPkxq_rectLg {
|
|
34
|
+
width: calc(var(--spacing) * 56);
|
|
35
|
+
height: calc(var(--spacing) * 5);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.RGPkxq_circle {
|
|
39
|
+
border-radius: var(--radius-full);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.RGPkxq_circleSm {
|
|
43
|
+
width: calc(var(--spacing) * 8);
|
|
44
|
+
height: calc(var(--spacing) * 8);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.RGPkxq_circleMd {
|
|
48
|
+
width: calc(var(--spacing) * 12);
|
|
49
|
+
height: calc(var(--spacing) * 12);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.RGPkxq_circleLg {
|
|
53
|
+
width: calc(var(--spacing) * 16);
|
|
54
|
+
height: calc(var(--spacing) * 16);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
@keyframes RGPkxq_pulse {
|
|
58
|
+
50% {
|
|
59
|
+
opacity: .5;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@layer utilities;
|
|
@@ -5,6 +5,5 @@ type Props = {
|
|
|
5
5
|
shape?: 'rect' | 'circle';
|
|
6
6
|
size?: 'sm' | 'md' | 'lg';
|
|
7
7
|
} & Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'className' | 'style'>;
|
|
8
|
-
declare const Skeleton: FC<Props>;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { Skeleton };
|
|
8
|
+
export declare const Skeleton: FC<Props>;
|
|
9
|
+
//#endregion
|
|
@@ -1,10 +1,27 @@
|
|
|
1
|
-
import
|
|
1
|
+
import skeleton_module_default from "./skeleton.module.mjs";
|
|
2
|
+
import { clsx } from "clsx";
|
|
2
3
|
import { jsx } from "react/jsx-runtime";
|
|
3
4
|
//#region src/components/feedback/skeleton/skeleton.tsx
|
|
5
|
+
const SHAPE = {
|
|
6
|
+
rect: skeleton_module_default.rect,
|
|
7
|
+
circle: skeleton_module_default.circle
|
|
8
|
+
};
|
|
9
|
+
const SIZE = {
|
|
10
|
+
rect: {
|
|
11
|
+
sm: skeleton_module_default.rectSm,
|
|
12
|
+
md: skeleton_module_default.rectMd,
|
|
13
|
+
lg: skeleton_module_default.rectLg
|
|
14
|
+
},
|
|
15
|
+
circle: {
|
|
16
|
+
sm: skeleton_module_default.circleSm,
|
|
17
|
+
md: skeleton_module_default.circleMd,
|
|
18
|
+
lg: skeleton_module_default.circleLg
|
|
19
|
+
}
|
|
20
|
+
};
|
|
4
21
|
const Skeleton = ({ animate = true, shape = "rect", size = "md", ...rest }) => /* @__PURE__ */ jsx("div", {
|
|
5
22
|
...rest,
|
|
6
23
|
"aria-hidden": true,
|
|
7
|
-
className:
|
|
24
|
+
className: clsx(skeleton_module_default.root, animate && skeleton_module_default.animate, SHAPE[shape], SIZE[shape][size])
|
|
8
25
|
});
|
|
9
26
|
//#endregion
|
|
10
27
|
export { Skeleton };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import './skeleton.css';
|
|
2
|
+
//#region src/components/feedback/skeleton/skeleton.module.css
|
|
3
|
+
var skeleton_module_default = {
|
|
4
|
+
"animate": "RGPkxq_animate",
|
|
5
|
+
"circle": "RGPkxq_circle",
|
|
6
|
+
"circleLg": "RGPkxq_circleLg",
|
|
7
|
+
"circleMd": "RGPkxq_circleMd",
|
|
8
|
+
"circleSm": "RGPkxq_circleSm",
|
|
9
|
+
"pulse": "RGPkxq_pulse",
|
|
10
|
+
"rect": "RGPkxq_rect",
|
|
11
|
+
"rectLg": "RGPkxq_rectLg",
|
|
12
|
+
"rectMd": "RGPkxq_rectMd",
|
|
13
|
+
"rectSm": "RGPkxq_rectSm",
|
|
14
|
+
"root": "RGPkxq_root"
|
|
15
|
+
};
|
|
16
|
+
//#endregion
|
|
17
|
+
export { skeleton_module_default as default };
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
@layer properties, theme, base;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.F4IY4q_root {
|
|
5
|
+
justify-content: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
display: inline-flex;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.F4IY4q_indicator {
|
|
11
|
+
border: 4px solid var(--color-border-base);
|
|
12
|
+
border-top-color: var(--color-primary-border);
|
|
13
|
+
border-radius: var(--radius-full);
|
|
14
|
+
animation: F4IY4q_spin var(--duration-spin) linear infinite;
|
|
15
|
+
display: inline-block;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.F4IY4q_sm {
|
|
19
|
+
width: calc(var(--spacing) * 4);
|
|
20
|
+
height: calc(var(--spacing) * 4);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.F4IY4q_md {
|
|
24
|
+
width: calc(var(--spacing) * 6);
|
|
25
|
+
height: calc(var(--spacing) * 6);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.F4IY4q_lg {
|
|
29
|
+
width: calc(var(--spacing) * 8);
|
|
30
|
+
height: calc(var(--spacing) * 8);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
@keyframes F4IY4q_spin {
|
|
34
|
+
to {
|
|
35
|
+
transform: rotate(360deg);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@layer utilities;
|
|
@@ -4,6 +4,5 @@ type Props = {
|
|
|
4
4
|
label?: string;
|
|
5
5
|
size?: 'sm' | 'md' | 'lg';
|
|
6
6
|
} & Omit<OutputHTMLAttributes<HTMLOutputElement>, 'children' | 'aria-label' | 'className' | 'style'>;
|
|
7
|
-
declare const Spinner: FC<Props>;
|
|
8
|
-
//#endregion
|
|
9
|
-
export { Spinner };
|
|
7
|
+
export declare const Spinner: FC<Props>;
|
|
8
|
+
//#endregion
|
|
@@ -1,21 +1,27 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
|
+
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
3
|
+
import spinner_module_default from "./spinner.module.mjs";
|
|
4
|
+
import { clsx } from "clsx";
|
|
4
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
6
|
//#region src/components/feedback/spinner/spinner.tsx
|
|
7
|
+
const SIZE = {
|
|
8
|
+
sm: spinner_module_default.sm,
|
|
9
|
+
md: spinner_module_default.md,
|
|
10
|
+
lg: spinner_module_default.lg
|
|
11
|
+
};
|
|
6
12
|
const Spinner = ({ label, size = "md", ...rest }) => {
|
|
7
|
-
const messages =
|
|
13
|
+
const messages = getMessages();
|
|
8
14
|
const resolvedLabel = label ?? messages.loading;
|
|
9
15
|
return /* @__PURE__ */ jsxs("output", {
|
|
10
16
|
...rest,
|
|
11
17
|
"aria-label": resolvedLabel,
|
|
12
18
|
"aria-live": "polite",
|
|
13
|
-
className:
|
|
19
|
+
className: spinner_module_default.root,
|
|
14
20
|
children: [/* @__PURE__ */ jsx("span", {
|
|
15
21
|
"aria-hidden": true,
|
|
16
|
-
className:
|
|
22
|
+
className: clsx(spinner_module_default.indicator, SIZE[size])
|
|
17
23
|
}), /* @__PURE__ */ jsx("span", {
|
|
18
|
-
className:
|
|
24
|
+
className: sr_only_module_default.srOnly,
|
|
19
25
|
children: resolvedLabel
|
|
20
26
|
})]
|
|
21
27
|
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './spinner.css';
|
|
2
|
+
//#region src/components/feedback/spinner/spinner.module.css
|
|
3
|
+
var spinner_module_default = {
|
|
4
|
+
"indicator": "F4IY4q_indicator",
|
|
5
|
+
"lg": "F4IY4q_lg",
|
|
6
|
+
"md": "F4IY4q_md",
|
|
7
|
+
"root": "F4IY4q_root",
|
|
8
|
+
"sm": "F4IY4q_sm",
|
|
9
|
+
"spin": "F4IY4q_spin"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { spinner_module_default as default };
|
|
@@ -2,8 +2,8 @@ import { Status } from "../../../types/variables.mjs";
|
|
|
2
2
|
import { AlertAction } from "../alert/alert.mjs";
|
|
3
3
|
import "../alert/index.mjs";
|
|
4
4
|
//#region src/components/feedback/toast/context.d.ts
|
|
5
|
-
type ToastAction = AlertAction;
|
|
6
|
-
type ToastOptions = {
|
|
5
|
+
export type ToastAction = AlertAction;
|
|
6
|
+
export type ToastOptions = {
|
|
7
7
|
/**
|
|
8
8
|
* 自動で閉じるまでのミリ秒。`Number.POSITIVE_INFINITY` で自動クローズなし
|
|
9
9
|
* (閉じるボタンでのみ閉じる)。既定は 5000ms。
|
|
@@ -11,7 +11,7 @@ type ToastOptions = {
|
|
|
11
11
|
duration?: number;
|
|
12
12
|
action?: ToastAction;
|
|
13
13
|
};
|
|
14
|
-
type ToastType = {
|
|
14
|
+
export type ToastType = {
|
|
15
15
|
id: string;
|
|
16
16
|
tone: Status;
|
|
17
17
|
message: string;
|
|
@@ -23,12 +23,11 @@ type ToastType = {
|
|
|
23
23
|
*/
|
|
24
24
|
opener?: WeakRef<HTMLElement>;
|
|
25
25
|
};
|
|
26
|
-
type ToastStore = {
|
|
27
|
-
open: (tone: Status, message: string, options?: ToastOptions) =>
|
|
26
|
+
export type ToastStore = {
|
|
27
|
+
open: (tone: Status, message: string, options?: ToastOptions) => string;
|
|
28
28
|
close: (id: string) => void;
|
|
29
29
|
closeAll: () => void;
|
|
30
30
|
};
|
|
31
|
-
declare const ToastStoreContext: import("react").Context<ToastStore | null>, useToastStore: () => ToastStore;
|
|
32
|
-
declare const useToast: () => ToastStore;
|
|
33
|
-
//#endregion
|
|
34
|
-
export { ToastAction, ToastOptions, ToastStore, ToastStoreContext, ToastType, useToast, useToastStore };
|
|
31
|
+
export declare const ToastStoreContext: import("react").Context<ToastStore | null>, useToastStore: () => ToastStore;
|
|
32
|
+
export declare const useToast: () => ToastStore;
|
|
33
|
+
//#endregion
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
@layer properties, theme, base;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.l8QDQq_viewport {
|
|
5
|
+
bottom: calc(var(--spacing) * 3);
|
|
6
|
+
z-index: var(--z-index-toast);
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
align-items: center;
|
|
10
|
+
width: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.l8QDQq_fixed {
|
|
15
|
+
position: fixed;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.l8QDQq_absolute {
|
|
19
|
+
position: absolute;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.l8QDQq_item {
|
|
23
|
+
width: 100%;
|
|
24
|
+
transition-property: grid-template-rows, opacity, padding-block-start;
|
|
25
|
+
transition-duration: var(--duration-moderate);
|
|
26
|
+
grid-template-rows: 1fr;
|
|
27
|
+
justify-items: center;
|
|
28
|
+
padding-block-start: calc(var(--spacing) * 4);
|
|
29
|
+
display: grid;
|
|
30
|
+
|
|
31
|
+
&[data-closing] {
|
|
32
|
+
opacity: 0;
|
|
33
|
+
grid-template-rows: 0fr;
|
|
34
|
+
padding-block-start: 0;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@media (prefers-reduced-motion: reduce) {
|
|
38
|
+
transition: none;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.l8QDQq_itemContent {
|
|
43
|
+
min-height: 0;
|
|
44
|
+
min-block-size: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
.l8QDQq_item[data-closing] > .l8QDQq_itemContent {
|
|
48
|
+
overflow: hidden;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.l8QDQq_enter {
|
|
52
|
+
box-shadow: var(--shadow-lg);
|
|
53
|
+
animation-name: l8QDQq_enter;
|
|
54
|
+
animation-duration: var(--duration-moderate);
|
|
55
|
+
|
|
56
|
+
@media (prefers-reduced-motion: reduce) {
|
|
57
|
+
animation: none;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@keyframes l8QDQq_enter {
|
|
62
|
+
from {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
translate: 0 calc(var(--spacing) * 6);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@layer utilities;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { FC, PropsWithChildren, RefObject } from "react";
|
|
2
2
|
//#region src/components/feedback/toast/provider.d.ts
|
|
3
|
-
declare const ToastProvider: FC<PropsWithChildren<{
|
|
3
|
+
export declare const ToastProvider: FC<PropsWithChildren<{
|
|
4
4
|
portalRef?: RefObject<HTMLElement | null>;
|
|
5
5
|
position?: 'fixed' | 'absolute';
|
|
6
6
|
}>>;
|
|
7
|
-
//#endregion
|
|
8
|
-
export { ToastProvider };
|
|
7
|
+
//#endregion
|
|
@@ -1,15 +1,22 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { useMessages } from "../../../i18n/context.mjs";
|
|
2
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
4
3
|
import { ToastStoreContext } from "./context.mjs";
|
|
5
4
|
import { Toast } from "./toast.mjs";
|
|
6
|
-
import
|
|
5
|
+
import provider_module_default from "./provider.module.mjs";
|
|
6
|
+
import { clsx } from "clsx";
|
|
7
|
+
import { useEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
|
|
7
8
|
import { createPortal } from "react-dom";
|
|
8
9
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
10
|
//#region src/components/feedback/toast/provider.tsx
|
|
10
11
|
const MAX_TOAST_COUNT = 5;
|
|
11
12
|
const DEFAULT_DURATION_MS = 5e3;
|
|
12
13
|
const EXIT_MS = 200;
|
|
14
|
+
const POSITION = {
|
|
15
|
+
fixed: provider_module_default.fixed,
|
|
16
|
+
absolute: provider_module_default.absolute
|
|
17
|
+
};
|
|
18
|
+
/** 差し替えを通知する相手がいない外部値のための、何もしない購読。 */
|
|
19
|
+
const subscribeNever = () => () => {};
|
|
13
20
|
const FOCUSABLE_SELECTOR = "a[href], button:not(:disabled), [tabindex]:not([tabindex=\"-1\"])";
|
|
14
21
|
const enforceLimit = (state) => {
|
|
15
22
|
if (state.isHovered || state.isFocused) return state;
|
|
@@ -22,19 +29,15 @@ const enforceLimit = (state) => {
|
|
|
22
29
|
};
|
|
23
30
|
};
|
|
24
31
|
const ToastProvider = ({ children, portalRef = null, position = "fixed" }) => {
|
|
25
|
-
const messages =
|
|
32
|
+
const messages = getMessages();
|
|
26
33
|
const [state, setState] = useState({
|
|
27
34
|
toasts: [],
|
|
28
35
|
closingIds: [],
|
|
29
36
|
isHovered: false,
|
|
30
37
|
isFocused: false
|
|
31
38
|
});
|
|
32
|
-
const [defaultContainer, setDefaultContainer] = useState(null);
|
|
33
39
|
const viewportRef = useRef(null);
|
|
34
40
|
const focusedToastIdRef = useRef(null);
|
|
35
|
-
useEffect(() => {
|
|
36
|
-
setDefaultContainer(document.body);
|
|
37
|
-
}, []);
|
|
38
41
|
const exitTimersRef = useRef(/* @__PURE__ */ new Map());
|
|
39
42
|
useEffect(() => {
|
|
40
43
|
for (const id of state.closingIds) {
|
|
@@ -88,6 +91,7 @@ const ToastProvider = ({ children, portalRef = null, position = "fixed" }) => {
|
|
|
88
91
|
opener
|
|
89
92
|
}]
|
|
90
93
|
}));
|
|
94
|
+
return id;
|
|
91
95
|
},
|
|
92
96
|
close: (id) => {
|
|
93
97
|
setState((prev) => prev.closingIds.includes(id) ? prev : {
|
|
@@ -114,13 +118,13 @@ const ToastProvider = ({ children, portalRef = null, position = "fixed" }) => {
|
|
|
114
118
|
isFocused
|
|
115
119
|
}));
|
|
116
120
|
};
|
|
117
|
-
const container = portalRef?.current ??
|
|
121
|
+
const container = useSyncExternalStore(subscribeNever, () => portalRef?.current ?? document.body, () => null);
|
|
118
122
|
const isPaused = state.isHovered || state.isFocused;
|
|
119
123
|
return /* @__PURE__ */ jsxs(ToastStoreContext, {
|
|
120
124
|
value: store,
|
|
121
125
|
children: [children, container ? createPortal(/* @__PURE__ */ jsx("section", {
|
|
122
126
|
"aria-label": state.toasts.length > 0 ? messages.toastRegion : void 0,
|
|
123
|
-
className:
|
|
127
|
+
className: clsx(provider_module_default.viewport, POSITION[position]),
|
|
124
128
|
onBlur: (event) => {
|
|
125
129
|
if (event.currentTarget.contains(event.relatedTarget)) return;
|
|
126
130
|
setFocused(false);
|
|
@@ -142,14 +146,14 @@ const ToastProvider = ({ children, portalRef = null, position = "fixed" }) => {
|
|
|
142
146
|
children: state.toasts.map((toast) => {
|
|
143
147
|
const isClosing = state.closingIds.includes(toast.id);
|
|
144
148
|
return /* @__PURE__ */ jsx("div", {
|
|
145
|
-
className:
|
|
149
|
+
className: provider_module_default.item,
|
|
146
150
|
"data-closing": isClosing || void 0,
|
|
147
151
|
"data-toast-id": toast.id,
|
|
148
152
|
inert: isClosing || void 0,
|
|
149
153
|
children: /* @__PURE__ */ jsx("div", {
|
|
150
|
-
className:
|
|
154
|
+
className: provider_module_default.itemContent,
|
|
151
155
|
children: /* @__PURE__ */ jsx("div", {
|
|
152
|
-
className:
|
|
156
|
+
className: provider_module_default.enter,
|
|
153
157
|
children: /* @__PURE__ */ jsx(Toast, {
|
|
154
158
|
action: toast.action,
|
|
155
159
|
duration: toast.duration,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './provider.css';
|
|
2
|
+
//#region src/components/feedback/toast/provider.module.css
|
|
3
|
+
var provider_module_default = {
|
|
4
|
+
"absolute": "l8QDQq_absolute",
|
|
5
|
+
"enter": "l8QDQq_enter",
|
|
6
|
+
"fixed": "l8QDQq_fixed",
|
|
7
|
+
"item": "l8QDQq_item",
|
|
8
|
+
"itemContent": "l8QDQq_itemContent",
|
|
9
|
+
"viewport": "l8QDQq_viewport"
|
|
10
|
+
};
|
|
11
|
+
//#endregion
|
|
12
|
+
export { provider_module_default as default };
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
@layer properties, theme, base;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
.ms0JIW_root {
|
|
5
|
+
border-radius: var(--radius-xl);
|
|
6
|
+
border-width: 1px;
|
|
7
|
+
border-color: var(--color-border-base);
|
|
8
|
+
background-color: var(--color-bg-base);
|
|
9
|
+
inline-size: 100%;
|
|
10
|
+
position: relative;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.ms0JIW_disabled {
|
|
14
|
+
cursor: not-allowed;
|
|
15
|
+
border-color: var(--color-border-mute);
|
|
16
|
+
background-color: var(--color-bg-mute);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.ms0JIW_readOnly {
|
|
20
|
+
background-color: var(--color-bg-subtle);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.ms0JIW_root:has([aria-invalid="true"]), .ms0JIW_root:has([aria-invalid="true"]):focus-within {
|
|
24
|
+
border-color: var(--color-border-error);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.ms0JIW_body {
|
|
28
|
+
min-height: calc(var(--spacing) * 12);
|
|
29
|
+
justify-content: space-between;
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: calc(var(--spacing) * 2);
|
|
32
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
33
|
+
padding-block: calc(var(--spacing) * 2);
|
|
34
|
+
display: flex;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.ms0JIW_tags {
|
|
38
|
+
gap: calc(var(--spacing) * 1);
|
|
39
|
+
flex-wrap: wrap;
|
|
40
|
+
width: 100%;
|
|
41
|
+
min-width: 0;
|
|
42
|
+
display: flex;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
.ms0JIW_tag {
|
|
46
|
+
align-items: center;
|
|
47
|
+
gap: calc(var(--spacing) * 2);
|
|
48
|
+
border-radius: var(--radius-full);
|
|
49
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
50
|
+
padding-block: calc(var(--spacing) * 1);
|
|
51
|
+
font-size: var(--font-size-sm);
|
|
52
|
+
line-height: var(--line-height-sm);
|
|
53
|
+
font-weight: var(--font-weight-medium);
|
|
54
|
+
background-color: var(--color-bg-mute);
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.ms0JIW_tagOnDisabled {
|
|
59
|
+
background-color: var(--color-bg-base);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.ms0JIW_input {
|
|
63
|
+
background-color: #0000;
|
|
64
|
+
flex-grow: 1;
|
|
65
|
+
|
|
66
|
+
&:focus-visible {
|
|
67
|
+
outline-style: none;
|
|
68
|
+
|
|
69
|
+
@media (forced-colors: active) {
|
|
70
|
+
outline-offset: 2px;
|
|
71
|
+
outline: 2px solid #0000;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&:read-only, &:disabled {
|
|
76
|
+
cursor: not-allowed;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.ms0JIW_popup {
|
|
81
|
+
z-index: var(--z-index-raised);
|
|
82
|
+
border-radius: var(--radius-xl);
|
|
83
|
+
border-width: 1px;
|
|
84
|
+
border-color: var(--color-border-subtle);
|
|
85
|
+
background-color: var(--color-bg-raised);
|
|
86
|
+
box-shadow: var(--shadow-md);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.ms0JIW_list {
|
|
90
|
+
max-block-size: calc(var(--spacing) * 96);
|
|
91
|
+
padding-block: calc(var(--spacing) * 2);
|
|
92
|
+
transition-property: opacity;
|
|
93
|
+
transition-duration: var(--duration-fast);
|
|
94
|
+
transition-timing-function: var(--easing-in-out);
|
|
95
|
+
overflow-y: auto;
|
|
96
|
+
|
|
97
|
+
@container style(--writing: vertical) {
|
|
98
|
+
overflow: auto visible;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.ms0JIW_pending {
|
|
103
|
+
opacity: .6;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.ms0JIW_empty {
|
|
107
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
108
|
+
padding-block: calc(var(--spacing) * 2);
|
|
109
|
+
color: var(--color-fg-mute);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.ms0JIW_option {
|
|
113
|
+
cursor: pointer;
|
|
114
|
+
padding-inline: calc(var(--spacing) * 3);
|
|
115
|
+
padding-block: calc(var(--spacing) * 2);
|
|
116
|
+
outline-color: var(--color-border-base);
|
|
117
|
+
outline-offset: -2px;
|
|
118
|
+
transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke;
|
|
119
|
+
transition-duration: var(--duration-fast);
|
|
120
|
+
transition-timing-function: var(--easing-out);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.ms0JIW_selected {
|
|
124
|
+
background-color: var(--color-primary-bg-subtle);
|
|
125
|
+
color: var(--color-primary-fg);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
.ms0JIW_active {
|
|
129
|
+
background-color: var(--color-bg-subtle);
|
|
130
|
+
|
|
131
|
+
@media (prefers-contrast: more) {
|
|
132
|
+
outline-width: 2px;
|
|
133
|
+
outline-style: solid;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
@media (forced-colors: active) {
|
|
137
|
+
outline-width: 2px;
|
|
138
|
+
outline-style: solid;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.ms0JIW_active.ms0JIW_selected {
|
|
143
|
+
background-color: var(--color-primary-bg-mute);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.ms0JIW_option.ms0JIW_selected {
|
|
147
|
+
@media (forced-colors: active) {
|
|
148
|
+
background-color: var(--color-system-highlight);
|
|
149
|
+
color: var(--color-system-highlight-text);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
@layer utilities;
|
|
@@ -18,6 +18,5 @@ type UncontrolledProps = {
|
|
|
18
18
|
onChange?: (value: string[]) => void;
|
|
19
19
|
};
|
|
20
20
|
type Props = BaseProps & (ControlledProps | UncontrolledProps);
|
|
21
|
-
declare const Autocomplete: FC<Props>;
|
|
22
|
-
//#endregion
|
|
23
|
-
export { Autocomplete };
|
|
21
|
+
export declare const Autocomplete: FC<Props>;
|
|
22
|
+
//#endregion
|