@k8ordo/ui 2.0.0 → 2.2.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 +197 -187
- 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 +34 -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 +15 -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 -2
- 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 +8 -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 +15 -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 +4 -4
- package/dist/components/ai/conversation/conversation.mjs +38 -34
- package/dist/components/ai/conversation/conversation.module.mjs +11 -0
- package/dist/components/ai/conversation/index.d.mts +2 -3
- package/dist/components/ai/index.d.mts +4 -2
- package/dist/components/ai/index.mjs +3 -1
- package/dist/components/ai/message/index.d.mts +29 -3
- package/dist/components/ai/message/index.mjs +7 -2
- package/dist/components/ai/message/message.css +71 -0
- package/dist/components/ai/message/message.d.mts +34 -3
- package/dist/components/ai/message/message.mjs +99 -9
- package/dist/components/ai/message/message.module.mjs +18 -0
- package/dist/components/ai/prompt-input/index.d.mts +11 -4
- package/dist/components/ai/prompt-input/index.mjs +3 -1
- package/dist/components/ai/prompt-input/prompt-input.css +101 -0
- package/dist/components/ai/prompt-input/prompt-input.d.mts +15 -5
- package/dist/components/ai/prompt-input/prompt-input.mjs +152 -37
- package/dist/components/ai/prompt-input/prompt-input.module.mjs +15 -0
- package/dist/components/ai/reasoning/index.mjs +1 -2
- package/dist/components/ai/reasoning/reasoning.css +16 -0
- package/dist/components/ai/reasoning/reasoning.d.mts +2 -2
- package/dist/components/ai/reasoning/reasoning.mjs +5 -5
- package/dist/components/ai/reasoning/reasoning.module.mjs +8 -0
- package/dist/components/ai/response/index.mjs +1 -2
- package/dist/components/ai/response/response.css +453 -0
- package/dist/components/ai/response/response.d.mts +4 -5
- 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 +14 -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 +2 -3
- package/dist/components/ai/suggestion/suggestion.css +32 -0
- package/dist/components/ai/suggestion/suggestion.d.mts +3 -3
- package/dist/components/ai/suggestion/suggestion.mjs +7 -6
- 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 +12 -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/index.mjs +1 -2
- package/dist/components/ai/tool-invocation/tool-invocation.css +55 -0
- package/dist/components/ai/tool-invocation/tool-invocation.d.mts +5 -4
- 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 -8
- 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/button/index.mjs +1 -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 +1 -0
- package/dist/components/buttons/icon-button/icon-button.css +81 -0
- package/dist/components/buttons/icon-button/icon-button.d.mts +39 -11
- package/dist/components/buttons/icon-button/icon-button.mjs +70 -57
- 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/icon-button/index.mjs +1 -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 +19 -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 -2
- 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/avatar/index.mjs +1 -2
- package/dist/components/data-display/badge/badge.css +160 -0
- package/dist/components/data-display/badge/badge.d.mts +2 -2
- 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/badge/index.mjs +1 -2
- package/dist/components/data-display/card/card.css +44 -0
- package/dist/components/data-display/card/card.d.mts +2 -2
- 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/card/index.mjs +1 -2
- package/dist/components/data-display/carousel/carousel.css +83 -0
- package/dist/components/data-display/carousel/carousel.d.mts +12 -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 -2
- 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 -2
- package/dist/components/data-display/code/find-all-colors.mjs +0 -161
- package/dist/components/data-display/code/index.mjs +1 -2
- package/dist/components/data-display/code-block/code-block.css +161 -0
- package/dist/components/data-display/code-block/code-block.d.mts +13 -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 +10 -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 +1 -0
- package/dist/components/data-display/data-table/data-table.css +74 -0
- package/dist/components/data-display/data-table/data-table.d.mts +32 -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 +1 -0
- package/dist/components/data-display/heading/heading.css +99 -0
- package/dist/components/data-display/heading/heading.d.mts +2 -2
- 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/heading/index.mjs +1 -2
- package/dist/components/data-display/kbd/index.d.mts +2 -0
- package/dist/components/data-display/kbd/index.mjs +1 -0
- package/dist/components/data-display/kbd/kbd.css +21 -0
- package/dist/components/data-display/kbd/kbd.d.mts +9 -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 +1 -0
- package/dist/components/data-display/prose/prose.css +253 -0
- package/dist/components/data-display/prose/prose.d.mts +6 -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/index.mjs +1 -2
- package/dist/components/data-display/table/table.css +107 -0
- package/dist/components/data-display/table/table.d.mts +10 -8
- 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 +1 -0
- package/dist/components/data-display/tree/tree.css +70 -0
- package/dist/components/data-display/tree/tree.d.mts +21 -0
- package/dist/components/data-display/tree/tree.mjs +144 -0
- package/dist/components/data-display/tree/tree.module.mjs +14 -0
- package/dist/components/feedback/alert/alert.css +42 -0
- package/dist/components/feedback/alert/alert.d.mts +3 -3
- package/dist/components/feedback/alert/alert.mjs +20 -23
- package/dist/components/feedback/alert/alert.module.mjs +14 -0
- package/dist/components/feedback/alert/index.mjs +1 -2
- package/dist/components/feedback/callout/callout.css +38 -0
- package/dist/components/feedback/callout/callout.d.mts +11 -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 +1 -0
- package/dist/components/feedback/empty-state/empty-state.css +36 -0
- package/dist/components/feedback/empty-state/empty-state.d.mts +11 -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 +1 -0
- package/dist/components/feedback/progress/index.mjs +1 -2
- package/dist/components/feedback/progress/progress.css +78 -0
- package/dist/components/feedback/progress/progress.d.mts +5 -4
- package/dist/components/feedback/progress/progress.mjs +17 -3
- package/dist/components/feedback/progress/progress.module.mjs +12 -0
- package/dist/components/feedback/skeleton/index.mjs +1 -2
- package/dist/components/feedback/skeleton/skeleton.css +64 -0
- package/dist/components/feedback/skeleton/skeleton.d.mts +2 -2
- package/dist/components/feedback/skeleton/skeleton.mjs +19 -2
- package/dist/components/feedback/skeleton/skeleton.module.mjs +17 -0
- package/dist/components/feedback/spinner/index.mjs +1 -2
- package/dist/components/feedback/spinner/spinner.css +40 -0
- package/dist/components/feedback/spinner/spinner.d.mts +2 -2
- 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 -2
- package/dist/components/form/autocomplete/autocomplete.css +154 -0
- package/dist/components/form/autocomplete/autocomplete.d.mts +2 -2
- package/dist/components/form/autocomplete/autocomplete.mjs +70 -46
- package/dist/components/form/autocomplete/autocomplete.module.mjs +21 -0
- package/dist/components/form/autocomplete/index.mjs +1 -2
- package/dist/components/form/calendar/calendar.css +98 -0
- package/dist/components/form/calendar/calendar.d.mts +15 -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 +1 -0
- package/dist/components/form/checkbox/checkbox.css +90 -0
- package/dist/components/form/checkbox/checkbox.d.mts +4 -2
- package/dist/components/form/checkbox/checkbox.mjs +29 -27
- package/dist/components/form/checkbox/checkbox.module.mjs +13 -0
- package/dist/components/form/checkbox/index.mjs +1 -2
- package/dist/components/form/checkbox-card/checkbox-card.css +138 -0
- package/dist/components/form/checkbox-card/checkbox-card.d.mts +3 -3
- 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-card/index.mjs +1 -2
- 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 +4 -3
- package/dist/components/form/color-picker/color-picker.css +172 -0
- package/dist/components/form/color-picker/color-picker.d.mts +29 -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 +1 -0
- package/dist/components/form/combobox/combobox.css +143 -0
- package/dist/components/form/combobox/combobox.d.mts +33 -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 +1 -0
- package/dist/components/form/date-field/date-field.css +31 -0
- package/dist/components/form/date-field/date-field.d.mts +9 -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 +1 -0
- package/dist/components/form/date-picker/date-picker.css +90 -0
- package/dist/components/form/date-picker/date-picker.d.mts +13 -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 +1 -0
- package/dist/components/form/file-field/file-field.css +88 -0
- package/dist/components/form/file-field/file-field.d.mts +9 -6
- package/dist/components/form/file-field/file-field.mjs +130 -37
- package/dist/components/form/file-field/file-field.module.mjs +17 -0
- package/dist/components/form/file-field/index.d.mts +5 -3
- package/dist/components/form/file-field/index.mjs +2 -1
- package/dist/components/form/form/form.css +11 -0
- package/dist/components/form/form/form.d.mts +4 -3
- package/dist/components/form/form/form.mjs +2 -1
- package/dist/components/form/form/form.module.mjs +5 -0
- package/dist/components/form/form/index.mjs +1 -2
- package/dist/components/form/form-control/form-control.css +43 -0
- package/dist/components/form/form-control/form-control.d.mts +2 -2
- 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/form-control/index.mjs +1 -2
- 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/index.mjs +1 -2
- package/dist/components/form/number-field/number-field.css +122 -0
- package/dist/components/form/number-field/number-field.d.mts +10 -9
- 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/index.mjs +1 -2
- package/dist/components/form/password-input/password-input.css +88 -0
- package/dist/components/form/password-input/password-input.d.mts +2 -2
- 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/index.mjs +1 -2
- package/dist/components/form/radio/radio.css +89 -0
- package/dist/components/form/radio/radio.d.mts +3 -2
- package/dist/components/form/radio/radio.mjs +15 -19
- package/dist/components/form/radio/radio.module.mjs +16 -0
- package/dist/components/form/radio-card/index.mjs +1 -2
- package/dist/components/form/radio-card/radio-card.css +147 -0
- package/dist/components/form/radio-card/radio-card.d.mts +4 -3
- 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 +1 -0
- package/dist/components/form/range-slider/range-slider.css +67 -0
- package/dist/components/form/range-slider/range-slider.d.mts +31 -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/index.mjs +1 -2
- package/dist/components/form/select/select.css +74 -0
- package/dist/components/form/select/select.d.mts +2 -2
- package/dist/components/form/select/select.mjs +25 -8
- package/dist/components/form/select/select.module.mjs +12 -0
- package/dist/components/form/slider/index.mjs +1 -2
- 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 -6
- package/dist/components/form/slider/slider.mjs +44 -11
- package/dist/components/form/slider/slider.module.mjs +12 -0
- package/dist/components/form/switch/index.mjs +1 -2
- package/dist/components/form/switch/switch.css +103 -0
- package/dist/components/form/switch/switch.d.mts +2 -2
- 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/index.mjs +1 -2
- package/dist/components/form/text-field/text-field.css +41 -0
- package/dist/components/form/text-field/text-field.d.mts +4 -4
- 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/index.mjs +1 -2
- package/dist/components/form/textarea/textarea.css +50 -0
- package/dist/components/form/textarea/textarea.d.mts +3 -2
- 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 -60
- 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 +48 -9
- package/dist/components/index.mjs +32 -10
- 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/grid/index.mjs +1 -2
- 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 +22 -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/index.mjs +1 -2
- package/dist/components/layout/separator/separator.css +37 -0
- package/dist/components/layout/separator/separator.d.mts +2 -2
- package/dist/components/layout/separator/separator.mjs +12 -9
- package/dist/components/layout/separator/separator.module.mjs +12 -0
- package/dist/components/layout/stack/index.mjs +1 -2
- 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 -2
- package/dist/components/navigation/anchor/anchor.mjs +5 -2
- package/dist/components/navigation/anchor/anchor.module.mjs +8 -0
- package/dist/components/navigation/anchor/index.mjs +1 -2
- package/dist/components/navigation/breadcrumb/breadcrumb.css +72 -0
- package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +5 -5
- 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/index.mjs +1 -2
- package/dist/components/navigation/pagination/pagination.css +36 -0
- package/dist/components/navigation/pagination/pagination.d.mts +2 -2
- 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 +32 -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 +1 -0
- package/dist/components/navigation/stepper/stepper.css +151 -0
- package/dist/components/navigation/stepper/stepper.d.mts +20 -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 +1 -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 +2 -3
- package/dist/components/navigation/tabs/tabs.css +70 -0
- package/dist/components/navigation/tabs/tabs.d.mts +5 -6
- package/dist/components/navigation/tabs/tabs.mjs +51 -42
- 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 +1 -0
- package/dist/components/observers/resize/index.d.mts +2 -0
- package/dist/components/observers/resize/index.mjs +1 -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 +25 -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 +1 -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 +4 -5
- package/dist/components/overlays/dialog/dialog.mjs +10 -7
- package/dist/components/overlays/dialog/dialog.module.mjs +10 -0
- package/dist/components/overlays/dialog/index.d.mts +2 -3
- 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/drawer/index.mjs +1 -2
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +7 -10
- package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +10 -9
- package/dist/components/overlays/dropdown-menu/hooks.d.mts +7 -6
- package/dist/components/overlays/dropdown-menu/hooks.mjs +3 -3
- package/dist/components/overlays/dropdown-menu/index.d.mts +8 -10
- 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 +15 -15
- 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 +2 -3
- package/dist/components/overlays/list-box/list-box.css +74 -0
- package/dist/components/overlays/list-box/list-box.d.mts +5 -6
- package/dist/components/overlays/list-box/list-box.mjs +15 -13
- package/dist/components/overlays/list-box/list-box.module.mjs +10 -0
- package/dist/components/overlays/modal/index.mjs +1 -2
- 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 -4
- package/dist/components/overlays/popover/escape-stack.d.mts +2 -3
- package/dist/components/overlays/popover/hooks.d.mts +7 -7
- package/dist/components/overlays/popover/index.d.mts +2 -2
- package/dist/components/overlays/popover/popover.css +51 -0
- package/dist/components/overlays/popover/popover.d.mts +4 -4
- package/dist/components/overlays/popover/popover.mjs +11 -5
- 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 +2 -2
- package/dist/components/overlays/tooltip/tooltip.css +15 -0
- package/dist/components/overlays/tooltip/tooltip.d.mts +5 -6
- package/dist/components/overlays/tooltip/tooltip.mjs +3 -2
- 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 -2
- package/dist/helpers/chain.mjs +0 -23
- package/dist/helpers/create-safe-context.d.mts +2 -2
- 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 -2
- 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 -2
- package/dist/hooks/controllable-state/index.mjs +9 -11
- package/dist/hooks/index.d.mts +2 -20
- package/dist/hooks/index.mjs +2 -19
- 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 +29 -34
- package/dist/index.mjs +32 -35
- 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 +288 -30
- package/dist/integrations/_shared/renderers.module.mjs +14 -0
- package/dist/integrations/_shared/schemas.d.mts +384 -102
- package/dist/integrations/_shared/schemas.mjs +165 -27
- package/dist/integrations/ai-sdk/index.d.mts +2 -2
- package/dist/integrations/ai-sdk/index.mjs +1 -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 -17
- 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 -6
- 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/internal/focus-trap.d.mts +5 -6
- package/dist/internal/focus-trap.mjs +4 -4
- 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 -2526
- 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 +239 -72
- package/docs/llms.txt +11 -7
- package/docs/props.generated.json +2156 -309
- package/docs/references/ai-chat.md +345 -62
- package/docs/references/color.md +222 -78
- package/docs/references/components.md +1667 -242
- package/docs/references/generative-ui.md +126 -17
- package/docs/references/interaction-design.md +65 -35
- package/docs/references/spatial-design.md +83 -63
- package/docs/references/types.md +101 -0
- package/docs/references/typography.md +159 -51
- package/package.json +65 -63
- 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/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/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/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 -223
- package/docs/references/hooks.md +0 -301
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { accordionProps, alertProps, anchorProps, autocompleteProps, avatarProps, badgeProps, breadcrumbProps, buttonProps, cardProps, checkboxCardProps, checkboxGroupProps, checkboxProps, chevronIconProps, codeProps, dialogProps, drawerProps, dropdownMenuProps, fileFieldProps, formControlProps, formProps, gridProps, headingProps, iconButtonProps, iconProps, listBoxProps, modalProps, numberFieldProps, paginationProps, passwordInputProps, popoverProps, progressProps, radioCardProps, radioProps,
|
|
1
|
+
import { accordionProps, alertProps, anchorProps, autocompleteProps, avatarProps, badgeProps, breadcrumbProps, buttonProps, calendarProps, calloutProps, cardProps, carouselProps, checkboxCardProps, checkboxGroupProps, checkboxProps, chevronIconProps, codeProps, colorPickerProps, comboboxProps, copyButtonProps, dataTableProps, dateFieldProps, datePickerProps, dialogProps, drawerProps, dropdownMenuProps, emptyStateProps, fileFieldProps, formControlProps, formProps, gridProps, headingProps, iconButtonProps, iconProps, kbdProps, listBoxProps, modalProps, numberFieldProps, paginationProps, passwordInputProps, popoverProps, progressProps, radioCardProps, radioProps, rangeSliderProps, selectProps, separatorProps, sideNavProps, skeletonProps, sliderProps, spinnerProps, stackProps, statusIconProps, stepperProps, switchProps, tableProps, tabsProps, textFieldProps, textareaProps, toastProps, toolbarProps, tooltipProps, treeProps } from "./schemas.mjs";
|
|
2
2
|
import { createLibrary, defineComponent } from "@openuidev/lang-core";
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
//#region src/integrations/_shared/openui-defs.ts
|
|
@@ -9,58 +9,76 @@ const buildComponentLibrary = (render) => {
|
|
|
9
9
|
props,
|
|
10
10
|
component: render[name]
|
|
11
11
|
});
|
|
12
|
-
const Button = def("Button", "
|
|
13
|
-
const IconButton = def("IconButton", "
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
20
|
-
const
|
|
21
|
-
const
|
|
22
|
-
const
|
|
23
|
-
const
|
|
24
|
-
const
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
const
|
|
33
|
-
const
|
|
34
|
-
const
|
|
35
|
-
const
|
|
36
|
-
const
|
|
37
|
-
const
|
|
38
|
-
const
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
const
|
|
49
|
-
const
|
|
50
|
-
const
|
|
51
|
-
const
|
|
12
|
+
const Button = def("Button", "Action button. With href it renders as a link (<a>).", buttonProps);
|
|
13
|
+
const IconButton = def("IconButton", "Icon-only button (label is required).", iconButtonProps);
|
|
14
|
+
const CopyButton = def("CopyButton", "Button that copies value to the clipboard and confirms it.", copyButtonProps);
|
|
15
|
+
const Badge = def("Badge", "Badge for a status or a label.", badgeProps);
|
|
16
|
+
const Heading = def("Heading", "Heading (h1 to h6).", headingProps);
|
|
17
|
+
const Anchor = def("Anchor", "Text link.", anchorProps);
|
|
18
|
+
const Avatar = def("Avatar", "Avatar (an image or initials).", avatarProps);
|
|
19
|
+
const Code = def("Code", "Inline code or value.", codeProps);
|
|
20
|
+
const Kbd = def("Kbd", "Keyboard shortcut. keys lists the keys pressed together, and each is drawn as its own key cap.", kbdProps);
|
|
21
|
+
const EmptyState = def("EmptyState", "Placeholder for a list, table, or search with nothing to show: a title, an optional description, and an optional icon.", emptyStateProps);
|
|
22
|
+
const Icon = def("Icon", "Icon, chosen by name.", iconProps);
|
|
23
|
+
const ChevronIcon = def("ChevronIcon", "Arrow icon. direction sets which way it points.", chevronIconProps);
|
|
24
|
+
const StatusIcon = def("StatusIcon", "Icon for a status (success/info/warning/error). It is decorative; to show a message, use Alert.", statusIconProps);
|
|
25
|
+
const Alert = def("Alert", "Alert that reports a status. message is a string or an array of strings.", alertProps);
|
|
26
|
+
const Callout = def("Callout", "Note inside the content (a tip, a caveat). Unlike Alert, it is not announced as a status. content is plain text; label is an optional bold line above it.", calloutProps);
|
|
27
|
+
const Spinner = def("Spinner", "Loading spinner.", spinnerProps);
|
|
28
|
+
const Progress = def("Progress", "Progress bar. Leave value out when progress is unknown; it then shows an animated bar.", progressProps);
|
|
29
|
+
const Skeleton = def("Skeleton", "Loading placeholder.", skeletonProps);
|
|
30
|
+
const Separator = def("Separator", "Divider line.", separatorProps);
|
|
31
|
+
const Tabs = def("Tabs", "Tabs. Each tab has a label and text content; content must be a plain string.", tabsProps);
|
|
32
|
+
const Accordion = def("Accordion", "Accordion of items that open and close. Each item has a title and text content; content must be a plain string.", accordionProps);
|
|
33
|
+
const Stepper = def("Stepper", "Steps of a process in order, marking the ones done and the current one (display only).", stepperProps);
|
|
34
|
+
const Breadcrumb = def("Breadcrumb", "Breadcrumb trail.", breadcrumbProps);
|
|
35
|
+
const SideNav = def("SideNav", "Side navigation: groups of links, each group under a small title. Mark the page being shown with current: true.", sideNavProps);
|
|
36
|
+
const Table = def("Table", "Table with columns and rows (the cell strings of each row). Every row must have exactly as many cells as there are columns.", tableProps);
|
|
37
|
+
const DataTable = def("DataTable", "Table the reader can sort (by the columns marked sortable) and, with selectable, pick rows from. Every row must have exactly as many cells as there are columns.", dataTableProps);
|
|
38
|
+
const Tree = def("Tree", "Tree of nodes that open and close, such as files and folders, navigable with the arrow keys. List every node flat; a child names its parent by parentId.", treeProps);
|
|
39
|
+
const TextField = def("TextField", "Single-line text input, bound to form state by name.", textFieldProps);
|
|
40
|
+
const Textarea = def("Textarea", "Multi-line text input, bound to form state by name.", textareaProps);
|
|
41
|
+
const PasswordInput = def("PasswordInput", "Password input, bound to form state by name.", passwordInputProps);
|
|
42
|
+
const NumberField = def("NumberField", "Number input, bound to form state by name.", numberFieldProps);
|
|
43
|
+
const Slider = def("Slider", "Slider, bound to form state by name.", sliderProps);
|
|
44
|
+
const RangeSlider = def("RangeSlider", "Slider with two thumbs for picking a range, bound to form state by name as [lower, upper].", rangeSliderProps);
|
|
45
|
+
const ColorPicker = def("ColorPicker", "Color input with a visible label (#rrggbb), hue / saturation / lightness sliders, and optional preset swatches, bound to form state by name.", colorPickerProps);
|
|
46
|
+
const DateField = def("DateField", "Date input with a visible label (YYYY-MM-DD), bound to form state by name.", dateFieldProps);
|
|
47
|
+
const DatePicker = def("DatePicker", "Date input with a visible label and a calendar popover (YYYY-MM-DD), bound to form state by name.", datePickerProps);
|
|
48
|
+
const Calendar = def("Calendar", "Month calendar shown inline for picking one day (YYYY-MM-DD), bound to state by name. It submits nothing; in a form, use DatePicker.", calendarProps);
|
|
49
|
+
const Checkbox = def("Checkbox", "Checkbox, bound to form state by name.", checkboxProps);
|
|
50
|
+
const Switch = def("Switch", "On/off switch, bound to form state by name.", switchProps);
|
|
51
|
+
const Select = def("Select", "Dropdown select, bound to form state by name.", selectProps);
|
|
52
|
+
const Radio = def("Radio", "Radio buttons for a single choice, bound to form state by name.", radioProps);
|
|
53
|
+
const RadioCard = def("RadioCard", "Single choice presented as cards, bound to form state by name.", radioCardProps);
|
|
54
|
+
const CheckboxCard = def("CheckboxCard", "Multiple choice presented as cards, bound to form state by name.", checkboxCardProps);
|
|
55
|
+
const Pagination = def("Pagination", "Pagination, bound to form state by name.", paginationProps);
|
|
56
|
+
const Tooltip = def("Tooltip", "Tooltip shown on hover or focus.", tooltipProps);
|
|
57
|
+
const Toolbar = def("Toolbar", "Row (or column) of buttons that arrow keys move between, e.g. formatting actions. Give each item an icon to show only the icon.", toolbarProps);
|
|
58
|
+
const DropdownMenu = def("DropdownMenu", "Dropdown menu.", dropdownMenuProps);
|
|
59
|
+
const Toast = def("Toast", "Toast notification that a button labeled triggerLabel shows.", toastProps);
|
|
60
|
+
const ListBox = def("ListBox", "Single-choice list in a popup.", listBoxProps);
|
|
61
|
+
const CheckboxGroup = def("CheckboxGroup", "Group of checkboxes, bound to form state by name.", checkboxGroupProps);
|
|
62
|
+
const Combobox = def("Combobox", "Text field with a visible label that filters options as you type, for picking one, bound to form state by name. Prefer it to ListBox when there are many options.", comboboxProps);
|
|
63
|
+
const Autocomplete = def("Autocomplete", "Tag-style autocomplete for multiple choices.", autocompleteProps);
|
|
64
|
+
const FileField = def("FileField", "File picker field (a self-contained widget). With dropzone, files can also be dropped onto it.", fileFieldProps);
|
|
65
|
+
const FormControl = def("FormControl", "Field with a label and help or error text (text/textarea/password).", formControlProps);
|
|
52
66
|
const childRefs = [
|
|
53
67
|
Button.ref,
|
|
54
68
|
IconButton.ref,
|
|
69
|
+
CopyButton.ref,
|
|
55
70
|
Badge.ref,
|
|
56
71
|
Heading.ref,
|
|
57
72
|
Anchor.ref,
|
|
58
73
|
Avatar.ref,
|
|
59
74
|
Code.ref,
|
|
75
|
+
Kbd.ref,
|
|
76
|
+
EmptyState.ref,
|
|
60
77
|
Icon.ref,
|
|
61
78
|
ChevronIcon.ref,
|
|
62
79
|
StatusIcon.ref,
|
|
63
80
|
Alert.ref,
|
|
81
|
+
Callout.ref,
|
|
64
82
|
Spinner.ref,
|
|
65
83
|
Progress.ref,
|
|
66
84
|
Skeleton.ref,
|
|
@@ -68,12 +86,21 @@ const buildComponentLibrary = (render) => {
|
|
|
68
86
|
Tabs.ref,
|
|
69
87
|
Accordion.ref,
|
|
70
88
|
Breadcrumb.ref,
|
|
89
|
+
Stepper.ref,
|
|
90
|
+
SideNav.ref,
|
|
71
91
|
Table.ref,
|
|
92
|
+
DataTable.ref,
|
|
93
|
+
Tree.ref,
|
|
72
94
|
TextField.ref,
|
|
73
95
|
Textarea.ref,
|
|
74
96
|
PasswordInput.ref,
|
|
75
97
|
NumberField.ref,
|
|
76
98
|
Slider.ref,
|
|
99
|
+
RangeSlider.ref,
|
|
100
|
+
DateField.ref,
|
|
101
|
+
DatePicker.ref,
|
|
102
|
+
Calendar.ref,
|
|
103
|
+
ColorPicker.ref,
|
|
77
104
|
Checkbox.ref,
|
|
78
105
|
Switch.ref,
|
|
79
106
|
Select.ref,
|
|
@@ -83,27 +110,54 @@ const buildComponentLibrary = (render) => {
|
|
|
83
110
|
Pagination.ref,
|
|
84
111
|
Tooltip.ref,
|
|
85
112
|
DropdownMenu.ref,
|
|
113
|
+
Toolbar.ref,
|
|
86
114
|
Toast.ref,
|
|
87
|
-
ScrollLinked.ref,
|
|
88
115
|
ListBox.ref,
|
|
89
116
|
CheckboxGroup.ref,
|
|
117
|
+
Combobox.ref,
|
|
90
118
|
Autocomplete.ref,
|
|
91
119
|
FileField.ref,
|
|
92
120
|
FormControl.ref
|
|
93
121
|
];
|
|
94
|
-
const
|
|
95
|
-
const Grid = def("Grid", "子要素をグリッド状に並べる。cols(1〜6 / auto-fill / auto-fit)と gap、auto-fill/fit 時は minItemSize で各セルの最小サイズを制御。Grid の直下に Stack/Grid/Card は置けない。", gridProps.extend({ children: z.array(z.union(childRefs)).describe("グリッド内の子要素") }));
|
|
96
|
-
const containerChildRefs = [
|
|
122
|
+
const containerChildren = (description) => z.array(z.union([
|
|
97
123
|
...childRefs,
|
|
98
124
|
Stack.ref,
|
|
99
|
-
Grid.ref
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
125
|
+
Grid.ref,
|
|
126
|
+
Card.ref,
|
|
127
|
+
Form.ref,
|
|
128
|
+
Modal.ref,
|
|
129
|
+
Dialog.ref,
|
|
130
|
+
Drawer.ref,
|
|
131
|
+
Popover.ref,
|
|
132
|
+
Carousel.ref
|
|
133
|
+
])).describe(description);
|
|
134
|
+
const Stack = def("Stack", "Layout container that places its children in a row or a column with even spacing.", stackProps.extend({ get children() {
|
|
135
|
+
return containerChildren("Children to lay out");
|
|
136
|
+
} }));
|
|
137
|
+
const Grid = def("Grid", "Places its children in a grid. Set cols (1 to 6, auto-fill, or auto-fit) and gap; with auto-fill or auto-fit, minItemSize sets the smallest size of each cell.", gridProps.extend({ get children() {
|
|
138
|
+
return containerChildren("Children of the grid");
|
|
139
|
+
} }));
|
|
140
|
+
const Card = def("Card", "Card that groups content (a container). interactive makes it scale up on hover.", cardProps.extend({ get children() {
|
|
141
|
+
return containerChildren("Children of the card");
|
|
142
|
+
} }));
|
|
143
|
+
const Form = def("Form", "Wrapper for form elements (a vertical layout).", formProps.extend({ get children() {
|
|
144
|
+
return containerChildren("Elements in the form");
|
|
145
|
+
} }));
|
|
146
|
+
const Modal = def("Modal", "Modal dialog that opens from a button labeled triggerLabel.", modalProps.extend({ get children() {
|
|
147
|
+
return containerChildren("Elements in the modal");
|
|
148
|
+
} }));
|
|
149
|
+
const Dialog = def("Dialog", "Centered dialog that opens from a button labeled triggerLabel.", dialogProps.extend({ get children() {
|
|
150
|
+
return containerChildren("Elements in the dialog");
|
|
151
|
+
} }));
|
|
152
|
+
const Drawer = def("Drawer", "Side drawer that opens from a button labeled triggerLabel.", drawerProps.extend({ get children() {
|
|
153
|
+
return containerChildren("Elements in the drawer");
|
|
154
|
+
} }));
|
|
155
|
+
const Popover = def("Popover", "Popover that a button labeled triggerLabel opens and closes.", popoverProps.extend({ get children() {
|
|
156
|
+
return containerChildren("Elements in the popover");
|
|
157
|
+
} }));
|
|
158
|
+
const Carousel = def("Carousel", "Horizontally scrolling carousel with previous and next buttons. Each child is one slide. slideSize sets how much of the track one slide takes (full, lg, md for two, sm for three).", carouselProps.extend({ get children() {
|
|
159
|
+
return containerChildren("Slides, one child per slide");
|
|
160
|
+
} }));
|
|
107
161
|
return createLibrary({
|
|
108
162
|
components: [
|
|
109
163
|
Stack,
|
|
@@ -114,34 +168,48 @@ const buildComponentLibrary = (render) => {
|
|
|
114
168
|
Dialog,
|
|
115
169
|
Drawer,
|
|
116
170
|
Popover,
|
|
171
|
+
Carousel,
|
|
117
172
|
Tooltip,
|
|
118
173
|
DropdownMenu,
|
|
174
|
+
Toolbar,
|
|
119
175
|
Toast,
|
|
120
176
|
Button,
|
|
121
177
|
IconButton,
|
|
178
|
+
CopyButton,
|
|
122
179
|
Badge,
|
|
123
180
|
Heading,
|
|
124
181
|
Anchor,
|
|
125
182
|
Avatar,
|
|
126
183
|
Code,
|
|
184
|
+
Kbd,
|
|
185
|
+
EmptyState,
|
|
127
186
|
Icon,
|
|
128
187
|
ChevronIcon,
|
|
129
188
|
StatusIcon,
|
|
130
189
|
Alert,
|
|
190
|
+
Callout,
|
|
131
191
|
Spinner,
|
|
132
192
|
Progress,
|
|
133
193
|
Skeleton,
|
|
134
194
|
Separator,
|
|
135
|
-
ScrollLinked,
|
|
136
195
|
Tabs,
|
|
137
196
|
Accordion,
|
|
138
197
|
Breadcrumb,
|
|
198
|
+
Stepper,
|
|
199
|
+
SideNav,
|
|
139
200
|
Table,
|
|
201
|
+
DataTable,
|
|
202
|
+
Tree,
|
|
140
203
|
TextField,
|
|
141
204
|
Textarea,
|
|
142
205
|
PasswordInput,
|
|
143
206
|
NumberField,
|
|
144
207
|
Slider,
|
|
208
|
+
RangeSlider,
|
|
209
|
+
DateField,
|
|
210
|
+
DatePicker,
|
|
211
|
+
Calendar,
|
|
212
|
+
ColorPicker,
|
|
145
213
|
Checkbox,
|
|
146
214
|
Switch,
|
|
147
215
|
Select,
|
|
@@ -151,6 +219,7 @@ const buildComponentLibrary = (render) => {
|
|
|
151
219
|
Pagination,
|
|
152
220
|
ListBox,
|
|
153
221
|
CheckboxGroup,
|
|
222
|
+
Combobox,
|
|
154
223
|
Autocomplete,
|
|
155
224
|
FileField,
|
|
156
225
|
FormControl
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
@layer properties, theme, base;
|
|
2
|
+
|
|
3
|
+
@layer components {
|
|
4
|
+
._6aBdoW_cardSm {
|
|
5
|
+
padding: calc(var(--spacing) * 4);
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
._6aBdoW_cardMd {
|
|
9
|
+
padding: calc(var(--spacing) * 6);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
._6aBdoW_cardLg {
|
|
13
|
+
padding: calc(var(--spacing) * 8);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
._6aBdoW_field {
|
|
17
|
+
gap: calc(var(--spacing) * 1);
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
display: flex;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
._6aBdoW_fieldLabel {
|
|
23
|
+
color: var(--color-fg-base);
|
|
24
|
+
font-size: var(--font-size-sm);
|
|
25
|
+
font-weight: var(--font-weight-medium);
|
|
26
|
+
line-height: var(--line-height-sm);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
._6aBdoW_keys {
|
|
30
|
+
align-items: center;
|
|
31
|
+
gap: calc(var(--spacing) * 1);
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
._6aBdoW_popover {
|
|
36
|
+
padding: calc(var(--spacing) * 4);
|
|
37
|
+
border-radius: var(--radius-lg);
|
|
38
|
+
background-color: var(--color-bg-raised);
|
|
39
|
+
color: var(--color-fg-base);
|
|
40
|
+
box-shadow: var(--shadow-md);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
._6aBdoW_dropHint {
|
|
44
|
+
color: var(--color-fg-mute);
|
|
45
|
+
font-size: var(--font-size-sm);
|
|
46
|
+
line-height: var(--line-height-sm);
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@layer utilities;
|
|
@@ -1,71 +1,90 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { TreeItem } from "../../components/data-display/tree/tree.mjs";
|
|
2
|
+
import "../../components/data-display/tree/index.mjs";
|
|
3
|
+
import { AccordionProps, AlertProps, AnchorProps, AutocompleteProps, AvatarProps, BadgeProps, BreadcrumbProps, ButtonProps, CalendarProps, CalloutProps, CardProps, CarouselProps, CheckboxCardProps, CheckboxGroupProps, CheckboxProps, ChevronIconProps, CodeProps, ColorPickerProps, ComboboxProps, CopyButtonProps, DataTableProps, DateFieldProps, DatePickerProps, DialogProps, DrawerProps, DropdownMenuProps, EmptyStateProps, FileFieldProps, FormControlProps, FormProps, GridProps, HeadingProps, IconButtonProps, IconProps, KbdProps, ListBoxProps, ModalProps, NumberFieldProps, PaginationProps, PasswordInputProps, PopoverProps, ProgressProps, RadioCardProps, RadioProps, RangeSliderProps, SelectProps, SeparatorProps, SideNavProps, SkeletonProps, SliderProps, SpinnerProps, StackProps, StatusIconProps, StepperProps, SwitchProps, TableProps, TabsProps, TextFieldProps, TextareaProps, ToastProps, ToolbarProps, TooltipProps, TreeProps } from "./schemas.mjs";
|
|
2
4
|
import { FC, ReactNode } from "react";
|
|
3
5
|
//#region src/integrations/_shared/renderers.d.ts
|
|
4
|
-
declare function renderButton(props: ButtonProps): ReactNode;
|
|
5
|
-
declare function renderBadge(props: BadgeProps): ReactNode;
|
|
6
|
-
declare function renderHeading(props: HeadingProps): ReactNode;
|
|
7
|
-
declare function renderAlert(props: AlertProps): ReactNode;
|
|
8
|
-
declare function
|
|
9
|
-
declare function
|
|
10
|
-
declare function
|
|
11
|
-
declare
|
|
6
|
+
export declare function renderButton(props: ButtonProps): ReactNode;
|
|
7
|
+
export declare function renderBadge(props: BadgeProps): ReactNode;
|
|
8
|
+
export declare function renderHeading(props: HeadingProps): ReactNode;
|
|
9
|
+
export declare function renderAlert(props: AlertProps): ReactNode;
|
|
10
|
+
export declare function renderCallout(props: CalloutProps): ReactNode;
|
|
11
|
+
export declare function renderSpinner(props: SpinnerProps): ReactNode;
|
|
12
|
+
export declare function renderSeparator(props: SeparatorProps): ReactNode;
|
|
13
|
+
export declare function renderCard(props: CardProps, children: ReactNode): ReactNode;
|
|
14
|
+
export declare const TabsView: FC<{
|
|
12
15
|
props: TabsProps;
|
|
13
16
|
}>;
|
|
14
|
-
declare function renderTabs(props: TabsProps): ReactNode;
|
|
15
|
-
declare function renderStack(props: StackProps, children: ReactNode): ReactNode;
|
|
16
|
-
declare function renderGrid(props: GridProps, children: ReactNode): ReactNode;
|
|
17
|
-
declare function renderTextField(props: TextFieldProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
18
|
-
declare function renderCheckbox(props: CheckboxProps, checked: boolean, onChange: (next: boolean) => void): ReactNode;
|
|
19
|
-
declare function renderSwitch(props: SwitchProps, checked: boolean, onChange: (next: boolean) => void): ReactNode;
|
|
20
|
-
declare function renderSelect(props: SelectProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
21
|
-
declare function renderTextarea(props: TextareaProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
22
|
-
declare function renderPasswordInput(props: PasswordInputProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
23
|
-
declare function renderNumberField(props: NumberFieldProps, value: number, onChange: (next: number) => void): ReactNode;
|
|
24
|
-
declare function renderSlider(props: SliderProps, value: number, onChange: (next: number) => void): ReactNode;
|
|
25
|
-
declare function
|
|
26
|
-
declare function
|
|
27
|
-
declare function
|
|
28
|
-
declare function
|
|
29
|
-
declare function
|
|
30
|
-
declare function
|
|
31
|
-
declare function
|
|
32
|
-
declare function
|
|
33
|
-
declare function
|
|
34
|
-
declare function
|
|
35
|
-
declare function
|
|
36
|
-
declare function
|
|
37
|
-
declare function
|
|
38
|
-
declare function
|
|
39
|
-
declare function
|
|
40
|
-
declare function
|
|
41
|
-
declare function
|
|
42
|
-
declare
|
|
17
|
+
export declare function renderTabs(props: TabsProps): ReactNode;
|
|
18
|
+
export declare function renderStack(props: StackProps, children: ReactNode): ReactNode;
|
|
19
|
+
export declare function renderGrid(props: GridProps, children: ReactNode): ReactNode;
|
|
20
|
+
export declare function renderTextField(props: TextFieldProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
21
|
+
export declare function renderCheckbox(props: CheckboxProps, checked: boolean, onChange: (next: boolean) => void): ReactNode;
|
|
22
|
+
export declare function renderSwitch(props: SwitchProps, checked: boolean, onChange: (next: boolean) => void): ReactNode;
|
|
23
|
+
export declare function renderSelect(props: SelectProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
24
|
+
export declare function renderTextarea(props: TextareaProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
25
|
+
export declare function renderPasswordInput(props: PasswordInputProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
26
|
+
export declare function renderNumberField(props: NumberFieldProps, value: number | null, onChange: (next: number | null) => void): ReactNode;
|
|
27
|
+
export declare function renderSlider(props: SliderProps, value: number, onChange: (next: number) => void): ReactNode;
|
|
28
|
+
export declare function renderRangeSlider(props: RangeSliderProps, value: readonly [number, number], onChange: (next: readonly [number, number]) => void): ReactNode;
|
|
29
|
+
export declare function renderColorPicker(props: ColorPickerProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
30
|
+
export declare function renderDateField(props: DateFieldProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
31
|
+
export declare function renderDatePicker(props: DatePickerProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
32
|
+
export declare function renderCalendar(props: CalendarProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
33
|
+
export declare function renderRadio(props: RadioProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
34
|
+
export declare function renderRadioCard(props: RadioCardProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
35
|
+
export declare function renderCheckboxCard(props: CheckboxCardProps, value: string[], onChange: (next: string[]) => void): ReactNode;
|
|
36
|
+
export declare function renderPagination(props: PaginationProps, currentPage: number, onChange: (next: number) => void): ReactNode;
|
|
37
|
+
export declare function renderIcon(props: IconProps): ReactNode;
|
|
38
|
+
export declare function renderChevronIcon(props: ChevronIconProps): ReactNode;
|
|
39
|
+
export declare function renderStatusIcon(props: StatusIconProps): ReactNode;
|
|
40
|
+
export declare function renderIconButton(props: IconButtonProps): ReactNode;
|
|
41
|
+
export declare function renderCopyButton(props: CopyButtonProps): ReactNode;
|
|
42
|
+
export declare function renderAnchor(props: AnchorProps): ReactNode;
|
|
43
|
+
export declare function renderAvatar(props: AvatarProps): ReactNode;
|
|
44
|
+
export declare function renderCode(props: CodeProps): ReactNode;
|
|
45
|
+
export declare function renderKbd(props: KbdProps): ReactNode;
|
|
46
|
+
export declare function renderEmptyState(props: EmptyStateProps): ReactNode;
|
|
47
|
+
export declare function renderCarousel(props: CarouselProps, slides: readonly ReactNode[]): ReactNode;
|
|
48
|
+
export declare function renderProgress(props: ProgressProps): ReactNode;
|
|
49
|
+
export declare function renderSkeleton(props: SkeletonProps): ReactNode;
|
|
50
|
+
export declare function renderAccordion(props: AccordionProps): ReactNode;
|
|
51
|
+
export declare function renderBreadcrumb(props: BreadcrumbProps): ReactNode;
|
|
52
|
+
export declare function renderStepper(props: StepperProps): ReactNode;
|
|
53
|
+
export declare const toTree: (items: TreeProps['items']) => TreeItem[];
|
|
54
|
+
export declare function renderTree(props: TreeProps): ReactNode;
|
|
55
|
+
export declare function renderSideNav(props: SideNavProps): ReactNode;
|
|
56
|
+
export declare function renderTable(props: TableProps): ReactNode;
|
|
57
|
+
export declare function renderForm(props: FormProps, children: ReactNode): ReactNode;
|
|
58
|
+
export declare const ModalWidget: FC<{
|
|
43
59
|
props: ModalProps;
|
|
44
60
|
children: ReactNode;
|
|
45
61
|
}>;
|
|
46
|
-
declare const DialogWidget: FC<{
|
|
62
|
+
export declare const DialogWidget: FC<{
|
|
47
63
|
props: DialogProps;
|
|
48
64
|
children: ReactNode;
|
|
49
65
|
}>;
|
|
50
|
-
declare const DrawerWidget: FC<{
|
|
66
|
+
export declare const DrawerWidget: FC<{
|
|
51
67
|
props: DrawerProps;
|
|
52
68
|
children: ReactNode;
|
|
53
69
|
}>;
|
|
54
|
-
declare function renderPopover(props: PopoverProps, children: ReactNode): ReactNode;
|
|
55
|
-
declare function renderTooltip(props: TooltipProps): ReactNode;
|
|
56
|
-
declare function
|
|
57
|
-
declare function
|
|
58
|
-
declare const
|
|
70
|
+
export declare function renderPopover(props: PopoverProps, children: ReactNode): ReactNode;
|
|
71
|
+
export declare function renderTooltip(props: TooltipProps): ReactNode;
|
|
72
|
+
export declare function renderToolbar(props: ToolbarProps): ReactNode;
|
|
73
|
+
export declare function renderDropdownMenu(props: DropdownMenuProps): ReactNode;
|
|
74
|
+
export declare const DataTableWidget: FC<{
|
|
75
|
+
props: DataTableProps;
|
|
76
|
+
}>;
|
|
77
|
+
export declare const ToastWidget: FC<{
|
|
59
78
|
props: ToastProps;
|
|
60
79
|
}>;
|
|
61
|
-
declare function renderListBox(props: ListBoxProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
62
|
-
declare function renderCheckboxGroup(props: CheckboxGroupProps, value: string[], onChange: (next: string[]) => void): ReactNode;
|
|
63
|
-
declare function renderAutocomplete(props: AutocompleteProps, value: string[], onChange: (next: string[]) => void): ReactNode;
|
|
64
|
-
declare
|
|
80
|
+
export declare function renderListBox(props: ListBoxProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
81
|
+
export declare function renderCheckboxGroup(props: CheckboxGroupProps, value: string[], onChange: (next: string[]) => void): ReactNode;
|
|
82
|
+
export declare function renderAutocomplete(props: AutocompleteProps, value: string[], onChange: (next: string[]) => void): ReactNode;
|
|
83
|
+
export declare function renderCombobox(props: ComboboxProps, value: string, onChange: (next: string) => void): ReactNode;
|
|
84
|
+
export declare const FileFieldWidget: FC<{
|
|
65
85
|
props: FileFieldProps;
|
|
66
86
|
}>;
|
|
67
|
-
declare const FormControlWidget: FC<{
|
|
87
|
+
export declare const FormControlWidget: FC<{
|
|
68
88
|
props: FormControlProps;
|
|
69
89
|
}>;
|
|
70
|
-
//#endregion
|
|
71
|
-
export { DialogWidget, DrawerWidget, FileFieldWidget, FormControlWidget, ModalWidget, TabsView, ToastWidget, renderAccordion, renderAlert, renderAnchor, renderAutocomplete, renderAvatar, renderBadge, renderBreadcrumb, renderButton, renderCard, renderCheckbox, renderCheckboxCard, renderCheckboxGroup, renderChevronIcon, renderCode, renderDropdownMenu, renderForm, renderGrid, renderHeading, renderIcon, renderIconButton, renderListBox, renderNumberField, renderPagination, renderPasswordInput, renderPopover, renderProgress, renderRadio, renderRadioCard, renderScrollLinked, renderSelect, renderSeparator, renderSkeleton, renderSlider, renderSpinner, renderStack, renderStatusIcon, renderSwitch, renderTable, renderTabs, renderTextField, renderTextarea, renderTooltip };
|
|
90
|
+
//#endregion
|