@k8ordo/ui 2.3.1 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +75 -183
- package/dist/catalog/icon-map.d.mts +108 -0
- package/dist/catalog/icon-map.mjs +212 -0
- package/dist/catalog/icon-names.d.mts +1 -0
- package/dist/catalog/icon-names.mjs +108 -0
- package/dist/catalog/index.d.mts +1289 -0
- package/dist/catalog/index.mjs +419 -0
- package/dist/catalog/render.css +34 -0
- package/dist/catalog/render.d.mts +72 -0
- package/dist/catalog/render.mjs +631 -0
- package/dist/catalog/render.module.mjs +11 -0
- package/dist/{integrations/_shared → catalog}/schemas.d.mts +550 -307
- package/dist/{integrations/_shared → catalog}/schemas.mjs +191 -184
- package/dist/catalog/to-tree.d.mts +4 -0
- package/dist/catalog/to-tree.mjs +17 -0
- package/dist/components/_internal/checked-values.d.mts +1 -0
- package/dist/components/_internal/checked-values.mjs +5 -0
- package/dist/components/_internal/field-message.css +25 -0
- package/dist/components/_internal/field-message.d.mts +10 -0
- package/dist/components/_internal/field-message.mjs +22 -0
- package/dist/components/_internal/field-message.module.mjs +9 -0
- package/dist/components/_internal/focus-ring.css +1 -1
- package/dist/components/_internal/high-contrast.css +1 -0
- package/dist/components/{observers/in-view → _internal}/in-view.mjs +1 -1
- package/dist/components/{observers/resize → _internal}/resize.mjs +1 -1
- package/dist/components/ai/_internal/attachment-preview.mjs +3 -3
- package/dist/components/ai/_internal/collapsible.mjs +2 -2
- package/dist/components/ai/attachment/attachment.d.mts +1 -1
- package/dist/components/ai/attachment/index.d.mts +1 -1
- package/dist/components/ai/conversation/conversation.mjs +4 -4
- package/dist/components/ai/index.d.mts +2 -2
- package/dist/components/ai/message/index.d.mts +2 -2
- package/dist/components/ai/message/message.d.mts +2 -2
- package/dist/components/ai/message/message.mjs +14 -12
- package/dist/components/ai/prompt-input/prompt-input.mjs +5 -5
- package/dist/components/ai/reasoning/reasoning.mjs +1 -1
- package/dist/components/ai/source/index.d.mts +2 -2
- package/dist/components/ai/source/source.d.mts +2 -2
- package/dist/components/ai/source/source.mjs +2 -2
- package/dist/components/ai/tool-invocation/approval-bar.mjs +11 -22
- package/dist/components/ai/tool-invocation/tool-invocation.d.mts +2 -2
- package/dist/components/ai/tool-invocation/tool-invocation.mjs +2 -1
- package/dist/components/buttons/button/button.css +1 -1
- package/dist/components/buttons/button/button.d.mts +34 -37
- package/dist/components/buttons/button/button.mjs +37 -24
- package/dist/components/buttons/button/button.module.mjs +0 -1
- package/dist/components/buttons/button/index.d.mts +2 -2
- package/dist/components/buttons/copy-button/copy-button.mjs +6 -4
- package/dist/components/buttons/icon-button/icon-button.css +3 -3
- package/dist/components/buttons/icon-button/icon-button.d.mts +37 -43
- package/dist/components/buttons/icon-button/icon-button.mjs +73 -63
- package/dist/components/buttons/icon-button/icon-button.module.mjs +2 -2
- package/dist/components/buttons/icon-button/index.d.mts +2 -2
- package/dist/components/buttons/toolbar/toolbar.css +5 -1
- package/dist/components/buttons/toolbar/toolbar.mjs +1 -1
- package/dist/components/data-display/accordion/accordion-button.d.mts +4 -1
- package/dist/components/data-display/accordion/accordion-button.mjs +5 -5
- package/dist/components/data-display/accordion/index.d.mts +3 -3
- package/dist/components/data-display/card/card-action.d.mts +6 -0
- package/dist/components/data-display/card/card-action.mjs +21 -0
- package/dist/components/data-display/card/card.css +24 -0
- package/dist/components/data-display/card/card.d.mts +26 -3
- package/dist/components/data-display/card/card.mjs +46 -6
- package/dist/components/data-display/card/card.module.mjs +4 -1
- package/dist/components/data-display/card/index.d.mts +2 -2
- package/dist/components/data-display/carousel/carousel.mjs +3 -3
- package/dist/components/data-display/code/code.css +4 -0
- package/dist/components/data-display/code-block/code-block.mjs +1 -1
- package/dist/components/data-display/data-table/data-table.css +0 -3
- package/dist/components/data-display/data-table/data-table.mjs +25 -26
- package/dist/components/data-display/tree/tree.d.mts +1 -1
- package/dist/components/data-display/tree/tree.mjs +7 -6
- package/dist/components/feedback/alert/alert.d.mts +2 -7
- package/dist/components/feedback/alert/alert.mjs +12 -11
- package/dist/components/feedback/alert/index.d.mts +2 -2
- package/dist/components/feedback/callout/callout.mjs +3 -3
- package/dist/components/feedback/progress/progress.mjs +1 -1
- package/dist/components/feedback/toast/context.d.mts +4 -5
- package/dist/components/feedback/toast/index.d.mts +2 -2
- package/dist/components/feedback/toast/provider.d.mts +7 -2
- package/dist/components/feedback/toast/provider.mjs +7 -2
- package/dist/components/feedback/toast/toast.d.mts +2 -3
- package/dist/components/form/autocomplete/autocomplete.d.mts +2 -2
- package/dist/components/form/autocomplete/autocomplete.mjs +15 -12
- package/dist/components/form/calendar/calendar.mjs +4 -6
- package/dist/components/form/checkbox/checkbox.d.mts +3 -1
- package/dist/components/form/checkbox/checkbox.mjs +45 -45
- package/dist/components/form/checkbox-card/checkbox-card.d.mts +3 -2
- package/dist/components/form/checkbox-card/checkbox-card.mjs +13 -6
- package/dist/components/form/checkbox-group/checkbox-group.d.mts +15 -20
- package/dist/components/form/checkbox-group/checkbox-group.mjs +18 -26
- package/dist/components/form/checkbox-group/index.d.mts +2 -34
- package/dist/components/form/checkbox-group/index.mjs +1 -8
- package/dist/components/form/color-picker/color-picker.css +3 -5
- package/dist/components/form/color-picker/color-picker.d.mts +0 -1
- package/dist/components/form/color-picker/color-picker.mjs +4 -4
- package/dist/components/form/combobox/combobox.d.mts +0 -1
- package/dist/components/form/combobox/combobox.mjs +9 -8
- package/dist/components/form/date-picker/date-picker.css +0 -5
- package/dist/components/form/date-picker/date-picker.mjs +22 -23
- package/dist/components/form/file-field/file-field.d.mts +6 -3
- package/dist/components/form/file-field/file-field.mjs +42 -19
- package/dist/components/form/file-field/index.d.mts +4 -1
- package/dist/components/form/form/form.mjs +0 -1
- package/dist/components/form/form-control/form-control.css +0 -15
- package/dist/components/form/form-control/form-control.d.mts +3 -4
- package/dist/components/form/form-control/form-control.mjs +44 -46
- package/dist/components/form/form-control/form-control.module.mjs +0 -3
- package/dist/components/form/number-field/number-field.d.mts +2 -2
- package/dist/components/form/number-field/number-field.mjs +13 -52
- package/dist/components/form/password-input/password-input.mjs +3 -2
- package/dist/components/form/radio/radio.mjs +4 -2
- package/dist/components/form/radio-card/radio-card.mjs +9 -2
- package/dist/components/form/range-slider/range-slider.d.mts +4 -2
- package/dist/components/form/range-slider/range-slider.mjs +2 -4
- package/dist/components/form/select/select.css +6 -4
- package/dist/components/form/select/select.d.mts +5 -0
- package/dist/components/form/select/select.mjs +10 -7
- package/dist/components/form/slider/slider.d.mts +2 -2
- package/dist/components/form/slider/slider.mjs +3 -6
- package/dist/components/form/switch/switch.d.mts +3 -0
- package/dist/components/form/switch/switch.mjs +43 -31
- package/dist/components/form/text-field/index.d.mts +2 -2
- package/dist/components/form/text-field/text-field.css +4 -0
- package/dist/components/form/text-field/text-field.d.mts +1 -1
- package/dist/components/form/textarea/textarea.d.mts +0 -1
- package/dist/components/form/textarea/textarea.mjs +1 -1
- package/dist/components/icons/alert.d.mts +6 -0
- package/dist/components/icons/alert.mjs +17 -0
- package/dist/components/icons/{vertical-writing.d.mts → arrow-down.d.mts} +1 -1
- package/dist/components/icons/arrow-down.mjs +8 -0
- package/dist/components/icons/arrow-left.d.mts +3 -0
- package/dist/components/icons/arrow-left.mjs +8 -0
- package/dist/components/icons/arrow-right.d.mts +3 -0
- package/dist/components/icons/arrow-right.mjs +8 -0
- package/dist/components/icons/{twitter.d.mts → arrow-up.d.mts} +1 -1
- package/dist/components/icons/arrow-up.mjs +8 -0
- package/dist/components/icons/base.d.mts +0 -1
- package/dist/components/icons/base.mjs +1 -2
- package/dist/components/icons/{qiita.d.mts → bell.d.mts} +1 -1
- package/dist/components/icons/bell.mjs +8 -0
- package/dist/components/icons/{github-mark.d.mts → blend.d.mts} +1 -1
- package/dist/components/icons/blend.mjs +16 -0
- package/dist/components/icons/book-text.d.mts +3 -0
- package/dist/components/icons/book-text.mjs +8 -0
- package/dist/components/icons/bookmark.d.mts +3 -0
- package/dist/components/icons/bookmark.mjs +8 -0
- package/dist/components/icons/bot-message.d.mts +3 -0
- package/dist/components/icons/bot-message.mjs +8 -0
- package/dist/components/icons/bot.d.mts +3 -0
- package/dist/components/icons/bot.mjs +14 -0
- package/dist/components/icons/calendar.d.mts +3 -0
- package/dist/components/icons/calendar.mjs +14 -0
- package/dist/components/icons/check.d.mts +3 -0
- package/dist/components/icons/check.mjs +8 -0
- package/dist/components/icons/chevron-down.d.mts +3 -0
- package/dist/components/icons/chevron-down.mjs +8 -0
- package/dist/components/icons/chevron-left.d.mts +3 -0
- package/dist/components/icons/chevron-left.mjs +8 -0
- package/dist/components/icons/chevron-right.d.mts +3 -0
- package/dist/components/icons/chevron-right.mjs +8 -0
- package/dist/components/icons/chevron-up.d.mts +3 -0
- package/dist/components/icons/chevron-up.mjs +8 -0
- package/dist/components/icons/chevron.d.mts +6 -0
- package/dist/components/icons/chevron.mjs +17 -0
- package/dist/components/icons/chevrons-up-down.d.mts +3 -0
- package/dist/components/icons/chevrons-up-down.mjs +8 -0
- package/dist/components/icons/circle-alert.d.mts +3 -0
- package/dist/components/icons/circle-alert.mjs +12 -0
- package/dist/components/icons/circle-check.d.mts +3 -0
- package/dist/components/icons/circle-check.mjs +12 -0
- package/dist/components/icons/circle-help.d.mts +3 -0
- package/dist/components/icons/circle-help.mjs +12 -0
- package/dist/components/icons/circle-x.d.mts +3 -0
- package/dist/components/icons/circle-x.mjs +12 -0
- package/dist/components/icons/clipboard-check.d.mts +3 -0
- package/dist/components/icons/clipboard-check.mjs +18 -0
- package/dist/components/icons/clock.d.mts +3 -0
- package/dist/components/icons/clock.mjs +12 -0
- package/dist/components/icons/code.d.mts +3 -0
- package/dist/components/icons/code.mjs +8 -0
- package/dist/components/icons/color-scale.mjs +18 -30
- package/dist/components/icons/contrast.d.mts +3 -0
- package/dist/components/icons/contrast.mjs +15 -0
- package/dist/components/icons/copy.d.mts +3 -0
- package/dist/components/icons/copy.mjs +14 -0
- package/dist/components/icons/download.d.mts +3 -0
- package/dist/components/icons/download.mjs +8 -0
- package/dist/components/icons/ellipsis-vertical.d.mts +3 -0
- package/dist/components/icons/ellipsis-vertical.mjs +27 -0
- package/dist/components/icons/ellipsis.d.mts +3 -0
- package/dist/components/icons/ellipsis.mjs +27 -0
- package/dist/components/icons/external-link.d.mts +3 -0
- package/dist/components/icons/external-link.mjs +8 -0
- package/dist/components/icons/eye-closed.d.mts +3 -0
- package/dist/components/icons/eye-closed.mjs +8 -0
- package/dist/components/icons/eye.d.mts +3 -0
- package/dist/components/icons/eye.mjs +12 -0
- package/dist/components/icons/file-text.d.mts +3 -0
- package/dist/components/icons/file-text.mjs +12 -0
- package/dist/components/icons/file.d.mts +3 -0
- package/dist/components/icons/file.mjs +8 -0
- package/dist/components/icons/filter.d.mts +3 -0
- package/dist/components/icons/filter.mjs +8 -0
- package/dist/components/icons/flask.d.mts +3 -0
- package/dist/components/icons/flask.mjs +8 -0
- package/dist/components/icons/folder-open.d.mts +3 -0
- package/dist/components/icons/folder-open.mjs +8 -0
- package/dist/components/icons/folder.d.mts +3 -0
- package/dist/components/icons/folder.mjs +8 -0
- package/dist/components/icons/git-fork.d.mts +3 -0
- package/dist/components/icons/git-fork.mjs +25 -0
- package/dist/components/icons/git-pull-request.d.mts +3 -0
- package/dist/components/icons/git-pull-request.mjs +20 -0
- package/dist/components/icons/globe.d.mts +3 -0
- package/dist/components/icons/globe.mjs +12 -0
- package/dist/components/icons/grid.d.mts +3 -0
- package/dist/components/icons/grid.mjs +37 -0
- package/dist/components/icons/grip-vertical.d.mts +3 -0
- package/dist/components/icons/grip-vertical.mjs +45 -0
- package/dist/components/icons/heart.d.mts +3 -0
- package/dist/components/icons/heart.mjs +8 -0
- package/dist/components/icons/history.d.mts +3 -0
- package/dist/components/icons/history.mjs +8 -0
- package/dist/components/icons/home.d.mts +3 -0
- package/dist/components/icons/home.mjs +8 -0
- package/dist/components/icons/image.d.mts +3 -0
- package/dist/components/icons/image.mjs +22 -0
- package/dist/components/icons/index.d.mts +107 -9
- package/dist/components/icons/index.mjs +107 -8
- package/dist/components/icons/info.d.mts +3 -0
- package/dist/components/icons/info.mjs +12 -0
- package/dist/components/icons/lightbulb.d.mts +3 -0
- package/dist/components/icons/lightbulb.mjs +8 -0
- package/dist/components/icons/line-icon.d.mts +3 -0
- package/dist/components/icons/line-icon.mjs +17 -0
- package/dist/components/icons/link.d.mts +3 -0
- package/dist/components/icons/link.mjs +11 -0
- package/dist/components/icons/list.d.mts +3 -0
- package/dist/components/icons/list.mjs +8 -0
- package/dist/components/icons/lock-open.d.mts +3 -0
- package/dist/components/icons/lock-open.mjs +14 -0
- package/dist/components/icons/lock.d.mts +3 -0
- package/dist/components/icons/lock.mjs +14 -0
- package/dist/components/icons/log-in.d.mts +3 -0
- package/dist/components/icons/log-in.mjs +8 -0
- package/dist/components/icons/log-out.d.mts +3 -0
- package/dist/components/icons/log-out.mjs +8 -0
- package/dist/components/icons/mail.d.mts +3 -0
- package/dist/components/icons/mail.mjs +14 -0
- package/dist/components/icons/map-pin.d.mts +3 -0
- package/dist/components/icons/map-pin.mjs +12 -0
- package/dist/components/icons/maximize.d.mts +3 -0
- package/dist/components/icons/maximize.mjs +8 -0
- package/dist/components/icons/menu.d.mts +3 -0
- package/dist/components/icons/menu.mjs +8 -0
- package/dist/components/icons/message-circle.d.mts +3 -0
- package/dist/components/icons/message-circle.mjs +8 -0
- package/dist/components/icons/minimize.d.mts +3 -0
- package/dist/components/icons/minimize.mjs +8 -0
- package/dist/components/icons/minus.d.mts +3 -0
- package/dist/components/icons/minus.mjs +8 -0
- package/dist/components/icons/monitor.d.mts +3 -0
- package/dist/components/icons/monitor.mjs +14 -0
- package/dist/components/icons/moon.d.mts +3 -0
- package/dist/components/icons/moon.mjs +8 -0
- package/dist/components/icons/package.d.mts +3 -0
- package/dist/components/icons/package.mjs +8 -0
- package/dist/components/icons/paint-bucket.d.mts +3 -0
- package/dist/components/icons/paint-bucket.mjs +8 -0
- package/dist/components/icons/palette.d.mts +3 -0
- package/dist/components/icons/palette.mjs +8 -0
- package/dist/components/icons/panel-left.d.mts +3 -0
- package/dist/components/icons/panel-left.mjs +14 -0
- package/dist/components/icons/paperclip.d.mts +3 -0
- package/dist/components/icons/paperclip.mjs +11 -0
- package/dist/components/icons/pause.d.mts +3 -0
- package/dist/components/icons/pause.mjs +20 -0
- package/dist/components/icons/pencil.d.mts +3 -0
- package/dist/components/icons/pencil.mjs +8 -0
- package/dist/components/icons/pin.d.mts +3 -0
- package/dist/components/icons/pin.mjs +11 -0
- package/dist/components/icons/play.d.mts +3 -0
- package/dist/components/icons/play.mjs +8 -0
- package/dist/components/icons/plus.d.mts +3 -0
- package/dist/components/icons/plus.mjs +8 -0
- package/dist/components/icons/presentation.d.mts +3 -0
- package/dist/components/icons/presentation.mjs +8 -0
- package/dist/components/icons/redo.d.mts +3 -0
- package/dist/components/icons/redo.mjs +8 -0
- package/dist/components/icons/refresh.d.mts +3 -0
- package/dist/components/icons/refresh.mjs +8 -0
- package/dist/components/icons/rocket.d.mts +3 -0
- package/dist/components/icons/rocket.mjs +19 -0
- package/dist/components/icons/rss.d.mts +3 -0
- package/dist/components/icons/rss.mjs +13 -0
- package/dist/components/icons/search.d.mts +3 -0
- package/dist/components/icons/search.mjs +12 -0
- package/dist/components/icons/send.d.mts +3 -0
- package/dist/components/icons/send.mjs +8 -0
- package/dist/components/icons/settings.d.mts +3 -0
- package/dist/components/icons/settings.mjs +12 -0
- package/dist/components/icons/share.d.mts +3 -0
- package/dist/components/icons/share.mjs +25 -0
- package/dist/components/icons/shield-check.d.mts +3 -0
- package/dist/components/icons/shield-check.mjs +8 -0
- package/dist/components/icons/smile.d.mts +3 -0
- package/dist/components/icons/smile.mjs +12 -0
- package/dist/components/icons/sparkles.d.mts +3 -0
- package/dist/components/icons/sparkles.mjs +8 -0
- package/dist/components/icons/square.d.mts +3 -0
- package/dist/components/icons/square.mjs +14 -0
- package/dist/components/icons/squircle.d.mts +3 -0
- package/dist/components/icons/squircle.mjs +8 -0
- package/dist/components/icons/star.d.mts +3 -0
- package/dist/components/icons/star.mjs +8 -0
- package/dist/components/icons/sun.d.mts +3 -0
- package/dist/components/icons/sun.mjs +12 -0
- package/dist/components/icons/table.d.mts +3 -0
- package/dist/components/icons/table.mjs +14 -0
- package/dist/components/icons/tag.d.mts +3 -0
- package/dist/components/icons/tag.mjs +8 -0
- package/dist/components/icons/text-horizontal.d.mts +3 -0
- package/dist/components/icons/text-horizontal.mjs +8 -0
- package/dist/components/icons/text-vertical.d.mts +3 -0
- package/dist/components/icons/text-vertical.mjs +8 -0
- package/dist/components/icons/thumbs-down.d.mts +3 -0
- package/dist/components/icons/thumbs-down.mjs +8 -0
- package/dist/components/icons/thumbs-up.d.mts +3 -0
- package/dist/components/icons/thumbs-up.mjs +8 -0
- package/dist/components/icons/trash.d.mts +3 -0
- package/dist/components/icons/trash.mjs +8 -0
- package/dist/components/icons/triangle-alert.d.mts +3 -0
- package/dist/components/icons/triangle-alert.mjs +8 -0
- package/dist/components/icons/undo.d.mts +3 -0
- package/dist/components/icons/undo.mjs +8 -0
- package/dist/components/icons/upload.d.mts +3 -0
- package/dist/components/icons/upload.mjs +8 -0
- package/dist/components/icons/user.d.mts +3 -0
- package/dist/components/icons/user.mjs +12 -0
- package/dist/components/icons/users.d.mts +3 -0
- package/dist/components/icons/users.mjs +12 -0
- package/dist/components/icons/x.d.mts +3 -0
- package/dist/components/icons/x.mjs +8 -0
- package/dist/components/index.d.mts +58 -76
- package/dist/components/index.mjs +13 -27
- package/dist/components/layout/resizable-panels/resizable-panels.mjs +3 -3
- package/dist/components/navigation/anchor/anchor.css +3 -3
- package/dist/components/navigation/anchor/anchor.mjs +20 -7
- package/dist/components/navigation/anchor/anchor.module.mjs +1 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +6 -4
- package/dist/components/navigation/breadcrumb/breadcrumb.mjs +3 -2
- package/dist/components/navigation/pagination/pagination.d.mts +2 -2
- package/dist/components/navigation/pagination/pagination.mjs +3 -3
- package/dist/components/navigation/side-nav/side-nav.mjs +1 -1
- package/dist/components/navigation/stepper/stepper.mjs +3 -3
- package/dist/components/navigation/tabs/index.d.mts +10 -5
- package/dist/components/navigation/tabs/tabs.d.mts +11 -6
- package/dist/components/navigation/tabs/tabs.mjs +24 -27
- package/dist/components/overlays/_internal/modal-header.css +38 -0
- package/dist/components/overlays/_internal/modal-header.d.mts +7 -0
- package/dist/components/overlays/_internal/modal-header.mjs +32 -0
- package/dist/components/overlays/_internal/modal-header.module.mjs +10 -0
- package/dist/components/overlays/command-palette/command-palette.d.mts +2 -2
- package/dist/components/overlays/command-palette/command-palette.mjs +9 -8
- package/dist/components/overlays/context-menu/context-menu.mjs +3 -3
- package/dist/components/overlays/context-menu/index.d.mts +27 -2
- package/dist/components/overlays/dialog/dialog.css +3 -21
- package/dist/components/overlays/dialog/dialog.d.mts +20 -9
- package/dist/components/overlays/dialog/dialog.mjs +35 -73
- package/dist/components/overlays/dialog/dialog.module.mjs +1 -3
- package/dist/components/overlays/dialog/index.d.mts +2 -15
- package/dist/components/overlays/dialog/index.mjs +1 -8
- package/dist/components/overlays/drawer/drawer.css +4 -26
- package/dist/components/overlays/drawer/drawer.d.mts +7 -2
- package/dist/components/overlays/drawer/drawer.mjs +24 -37
- package/dist/components/overlays/drawer/drawer.module.mjs +2 -6
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +35 -5
- package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +30 -12
- package/dist/components/overlays/dropdown-menu/hooks.d.mts +1 -1
- package/dist/components/overlays/dropdown-menu/hooks.mjs +1 -1
- package/dist/components/overlays/dropdown-menu/index.d.mts +34 -4
- package/dist/components/overlays/dropdown-menu/shared.css +1 -0
- package/dist/components/overlays/dropdown-menu/sub-menu.mjs +4 -4
- package/dist/components/overlays/list-box/hooks.mjs +2 -2
- package/dist/components/overlays/list-box/index.d.mts +2 -25
- package/dist/components/overlays/list-box/index.mjs +1 -9
- package/dist/components/overlays/list-box/list-box.d.mts +11 -16
- package/dist/components/overlays/list-box/list-box.mjs +24 -16
- package/dist/components/overlays/modal/modal.d.mts +8 -7
- package/dist/components/overlays/modal/modal.mjs +23 -32
- package/dist/components/overlays/popover/anchor-positioning.d.mts +3 -16
- package/dist/components/overlays/popover/anchor-positioning.mjs +14 -6
- package/dist/components/overlays/popover/hooks.d.mts +0 -2
- package/dist/components/overlays/popover/hooks.mjs +0 -2
- package/dist/components/overlays/popover/index.d.mts +19 -2
- package/dist/components/overlays/popover/index.mjs +7 -2
- package/dist/components/overlays/popover/popover.css +6 -0
- package/dist/components/overlays/popover/popover.d.mts +15 -2
- package/dist/components/overlays/popover/popover.mjs +28 -13
- package/dist/components/overlays/popover/popover.module.mjs +2 -1
- package/dist/components/overlays/tooltip/bridge.css +1 -1
- package/dist/components/overlays/tooltip/tooltip.mjs +5 -5
- package/dist/helpers/index.mjs +1 -1
- package/dist/i18n/en.mjs +1 -2
- package/dist/i18n/index.d.mts +3 -4
- package/dist/i18n/index.mjs +1 -2
- package/dist/i18n/ja.mjs +1 -2
- package/dist/i18n/messages.d.mts +2 -4
- package/dist/i18n/usage.d.mts +2 -1
- package/dist/i18n/usage.mjs +3 -3
- package/dist/index.d.mts +30 -45
- package/dist/index.mjs +4 -18
- package/dist/internal/iso-date.mjs +1 -1
- package/dist/styles/index.css +79 -231
- package/dist/styles/tailwind.css +1 -4
- package/dist/styles/tokens.css +281 -0
- package/dist/styles/tokens.d.mts +1 -1
- package/dist/styles/tokens.mjs +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/variables.d.mts +4 -2
- package/docs/GUIDE.md +145 -69
- package/docs/llms.txt +38 -11
- package/docs/props.generated.json +1414 -645
- package/docs/references/ai-chat.md +94 -44
- package/docs/references/color.md +15 -15
- package/docs/references/components.md +636 -504
- package/docs/references/generative-ui.md +378 -187
- package/docs/references/interaction-design.md +6 -5
- package/docs/references/spatial-design.md +8 -8
- package/docs/references/types.md +22 -25
- package/package.json +43 -73
- package/dist/components/ai/_internal/icons.d.mts +0 -6
- package/dist/components/ai/_internal/icons.mjs +0 -13
- package/dist/components/form/date-field/date-field.css +0 -31
- package/dist/components/form/date-field/date-field.d.mts +0 -7
- package/dist/components/form/date-field/date-field.mjs +0 -19
- package/dist/components/form/date-field/date-field.module.mjs +0 -4
- package/dist/components/form/date-field/index.d.mts +0 -2
- package/dist/components/form/date-field/index.mjs +0 -1
- package/dist/components/icons/browsers.d.mts +0 -6
- package/dist/components/icons/browsers.mjs +0 -890
- package/dist/components/icons/github-mark.mjs +0 -18
- package/dist/components/icons/logo.css +0 -17
- package/dist/components/icons/logo.d.mts +0 -4
- package/dist/components/icons/logo.mjs +0 -29
- package/dist/components/icons/logo.module.mjs +0 -8
- package/dist/components/icons/lucide-imports.d.mts +0 -67
- package/dist/components/icons/lucide-imports.mjs +0 -67
- package/dist/components/icons/lucide.d.mts +0 -67
- package/dist/components/icons/lucide.mjs +0 -255
- package/dist/components/icons/qiita.mjs +0 -27
- package/dist/components/icons/twitter.css +0 -9
- package/dist/components/icons/twitter.mjs +0 -20
- package/dist/components/icons/twitter.module.mjs +0 -4
- package/dist/components/icons/vertical-writing.mjs +0 -25
- package/dist/components/observers/in-view/index.d.mts +0 -2
- package/dist/components/observers/in-view/index.mjs +0 -1
- package/dist/components/observers/resize/index.d.mts +0 -2
- package/dist/components/observers/resize/index.mjs +0 -1
- package/dist/components/overlays/_internal/modal-dialog-context.d.mts +0 -11
- package/dist/components/overlays/_internal/modal-dialog-context.mjs +0 -12
- package/dist/components/providers/index.d.mts +0 -3
- package/dist/components/providers/index.mjs +0 -3
- package/dist/components/providers/portal-root.d.mts +0 -8
- package/dist/components/providers/portal-root.mjs +0 -11
- package/dist/components/providers/ui-provider.d.mts +0 -2
- package/dist/components/providers/ui-provider.mjs +0 -6
- package/dist/integrations/_shared/openui-defs.d.mts +0 -15
- package/dist/integrations/_shared/openui-defs.mjs +0 -230
- package/dist/integrations/_shared/renderers.css +0 -50
- package/dist/integrations/_shared/renderers.d.mts +0 -88
- package/dist/integrations/_shared/renderers.mjs +0 -936
- package/dist/integrations/_shared/renderers.module.mjs +0 -13
- package/dist/integrations/ai-sdk/index.d.mts +0 -3
- package/dist/integrations/ai-sdk/index.mjs +0 -1
- package/dist/integrations/ai-sdk/map-parts.d.mts +0 -44
- package/dist/integrations/ai-sdk/map-parts.mjs +0 -56
- package/dist/integrations/json-render/catalog.d.mts +0 -1155
- package/dist/integrations/json-render/catalog.mjs +0 -373
- package/dist/integrations/json-render/registry.d.mts +0 -26
- package/dist/integrations/json-render/registry.mjs +0 -192
- package/dist/integrations/openui/form-views.d.mts +0 -24
- package/dist/integrations/openui/form-views.mjs +0 -89
- package/dist/integrations/openui/library.d.mts +0 -202
- package/dist/integrations/openui/library.mjs +0 -83
- package/dist/integrations/openui/prompt.d.mts +0 -2
- package/dist/integrations/openui/prompt.mjs +0 -18
- /package/dist/components/{observers → _internal}/fragment-instance.d.mts +0 -0
- /package/dist/components/{observers/in-view → _internal}/in-view.d.mts +0 -0
- /package/dist/components/{observers/resize → _internal}/resize.d.mts +0 -0
|
@@ -62,7 +62,7 @@ Vary the radius with the element's role.
|
|
|
62
62
|
|
|
63
63
|
| Use | Token |
|
|
64
64
|
| -------------------------------- | --------------- |
|
|
65
|
-
| Dialog,
|
|
65
|
+
| Dialog, Drawer | `--radius-lg` |
|
|
66
66
|
| Avatar, IconButton, progress bar | `--radius-full` |
|
|
67
67
|
|
|
68
68
|
With `tailwind.css` these are `rounded-full`, `rounded-xl`, … .
|
|
@@ -71,13 +71,13 @@ With `tailwind.css` these are `rounded-full`, `rounded-xl`, … .
|
|
|
71
71
|
|
|
72
72
|
Express depth with a soft, gentle shadow.
|
|
73
73
|
|
|
74
|
-
| Use
|
|
75
|
-
|
|
|
76
|
-
| Card (default)
|
|
77
|
-
| Card (outlined)
|
|
78
|
-
|
|
|
79
|
-
| Dropdown / ListBox
|
|
80
|
-
| Button
|
|
74
|
+
| Use | Style |
|
|
75
|
+
| ------------------------- | -------------------------------------------------------- |
|
|
76
|
+
| Card (default) | `--shadow-sm` (with `variant="shadow"`) |
|
|
77
|
+
| Card (outlined) | a 1px `--color-border-mute` border (`variant="outline"`) |
|
|
78
|
+
| Dialog / Drawer / Tooltip | `--shadow-md` |
|
|
79
|
+
| Dropdown / ListBox | `--shadow-md` |
|
|
80
|
+
| Button | None |
|
|
81
81
|
|
|
82
82
|
Never use `--shadow-xl` or heavier. The focus ring is a shadow too,
|
|
83
83
|
`--shadow-ring-info`; with a surface's own shadow, list the ring first:
|
package/docs/references/types.md
CHANGED
|
@@ -4,9 +4,9 @@ The shared types `@k8ordo/ui` exports for typing component props.
|
|
|
4
4
|
|
|
5
5
|
```tsx
|
|
6
6
|
import type {
|
|
7
|
+
DialogSide,
|
|
7
8
|
Direction,
|
|
8
9
|
DrawerSide,
|
|
9
|
-
ModalSide,
|
|
10
10
|
Option,
|
|
11
11
|
Placement,
|
|
12
12
|
Status,
|
|
@@ -51,24 +51,23 @@ Placement relative to an anchor element, for Popover, Tooltip, DropdownMenu,
|
|
|
51
51
|
and ListBox (the `placement` prop), and for IconButton's tooltip
|
|
52
52
|
(`tooltipPlacement`).
|
|
53
53
|
|
|
54
|
-
##
|
|
54
|
+
## DialogSide
|
|
55
55
|
|
|
56
56
|
```tsx
|
|
57
|
-
type
|
|
57
|
+
type DialogSide = 'center' | 'bottom';
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
-
|
|
61
|
-
idea from `Placement`, which is relative to an
|
|
62
|
-
too.
|
|
60
|
+
Where a Dialog opens (the `side` prop): in the center, or as a sheet from the
|
|
61
|
+
bottom edge. It is a different idea from `Placement`, which is relative to an
|
|
62
|
+
anchor, so the prop name differs too.
|
|
63
63
|
|
|
64
64
|
## DrawerSide
|
|
65
65
|
|
|
66
66
|
```tsx
|
|
67
|
-
type DrawerSide =
|
|
67
|
+
type DrawerSide = 'left' | 'right';
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
The
|
|
71
|
-
edge, so `center` is excluded.
|
|
70
|
+
The edge a Drawer slides in from (the `side` prop).
|
|
72
71
|
|
|
73
72
|
## Option
|
|
74
73
|
|
|
@@ -83,19 +82,17 @@ Used for the choices in Radio, Select, Autocomplete, and similar components.
|
|
|
83
82
|
The root also exports types that belong to one component, for typing your own
|
|
84
83
|
code around it:
|
|
85
84
|
|
|
86
|
-
| Type
|
|
87
|
-
|
|
|
88
|
-
| `StackProps` / `GridProps`
|
|
89
|
-
| `GapSize` / `PaddingSize`
|
|
90
|
-
| `
|
|
91
|
-
| `
|
|
92
|
-
| `
|
|
93
|
-
| `
|
|
94
|
-
| `
|
|
95
|
-
| `
|
|
96
|
-
| `
|
|
97
|
-
| `
|
|
98
|
-
| `
|
|
99
|
-
| `
|
|
100
|
-
| `CellAlign` | A table cell's `align`: `'left'`, `'center'`, or `'right'` |
|
|
101
|
-
| `BaseIconProps` / `IconRenderProps` | An icon's `size`, and the props an icon puts on its `<svg>` |
|
|
85
|
+
| Type | What it types |
|
|
86
|
+
| --------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
|
|
87
|
+
| `StackProps` / `GridProps` | Every prop of `Stack` / `Grid`, for a component that wraps one |
|
|
88
|
+
| `GapSize` / `PaddingSize` | The `none`–`xl` scale of `gap` (Stack, Grid) and `padding` (Stack) |
|
|
89
|
+
| `PopoverTriggerProps` / `TooltipTriggerProps` | What `renderItem` receives on `Popover.Trigger` / `Tooltip.Trigger` |
|
|
90
|
+
| `ToolbarItemProps` | What `renderItem` receives on `Toolbar.Item`: `ref`, `tabIndex`, `onFocus` |
|
|
91
|
+
| `CommandPaletteItem` | A command in `CommandPalette`: `id`, `label`, `onAction`, plus `group`, `keywords`, `shortcut` |
|
|
92
|
+
| `ToastOptions` | What a toast takes besides its message: `duration`, and an `action` node |
|
|
93
|
+
| `ColorPickerSwatch` | A preset in `ColorPicker`'s `swatches`: `value` (`#rrggbb`) and `label`, the color's name |
|
|
94
|
+
| `ComboboxSearch` | `Combobox`'s `search`: `(query, { signal }) => Promise<readonly Option[]>` |
|
|
95
|
+
| `CheckboxCardOption` / `RadioCardOption` | A choice in `CheckboxCard` / `RadioCard`: `value` and `label`, plus `description`, `visual`, `disabled` |
|
|
96
|
+
| `StepperStep` | A step in `Stepper`: `label`, plus `description` |
|
|
97
|
+
| `CellAlign` | A table cell's `align`: `'left'`, `'center'`, or `'right'` |
|
|
98
|
+
| `BaseIconProps` / `IconRenderProps` | An icon's `size`, and the props an icon puts on its `<svg>` |
|
package/package.json
CHANGED
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@k8ordo/ui",
|
|
3
|
-
"version": "
|
|
4
|
-
"description": "k8o's React UI library with
|
|
3
|
+
"version": "4.0.0",
|
|
4
|
+
"description": "k8o's React UI library, with a format-neutral catalog of its components for LLM-driven, on-brand generative UI",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
7
7
|
"components",
|
|
8
8
|
"design-system",
|
|
9
9
|
"generative-ui",
|
|
10
|
-
"json-render",
|
|
11
10
|
"k8o",
|
|
12
11
|
"llm",
|
|
13
|
-
"openui",
|
|
14
12
|
"react",
|
|
15
13
|
"typescript",
|
|
16
14
|
"ui"
|
|
@@ -43,21 +41,13 @@
|
|
|
43
41
|
"default": "./dist/styles/tokens.mjs"
|
|
44
42
|
},
|
|
45
43
|
"./props.json": "./docs/props.generated.json",
|
|
46
|
-
"./
|
|
47
|
-
"types": "./dist/
|
|
48
|
-
"default": "./dist/
|
|
44
|
+
"./catalog": {
|
|
45
|
+
"types": "./dist/catalog/index.d.mts",
|
|
46
|
+
"default": "./dist/catalog/index.mjs"
|
|
49
47
|
},
|
|
50
|
-
"./
|
|
51
|
-
"types": "./dist/
|
|
52
|
-
"default": "./dist/
|
|
53
|
-
},
|
|
54
|
-
"./openui": {
|
|
55
|
-
"types": "./dist/integrations/openui/library.d.mts",
|
|
56
|
-
"default": "./dist/integrations/openui/library.mjs"
|
|
57
|
-
},
|
|
58
|
-
"./openui/prompt": {
|
|
59
|
-
"types": "./dist/integrations/openui/prompt.d.mts",
|
|
60
|
-
"default": "./dist/integrations/openui/prompt.mjs"
|
|
48
|
+
"./catalog/render": {
|
|
49
|
+
"types": "./dist/catalog/render.d.mts",
|
|
50
|
+
"default": "./dist/catalog/render.mjs"
|
|
61
51
|
},
|
|
62
52
|
"./ai": {
|
|
63
53
|
"types": "./dist/components/ai/index.d.mts",
|
|
@@ -67,20 +57,22 @@
|
|
|
67
57
|
"types": "./dist/components/ai/response/index.d.mts",
|
|
68
58
|
"default": "./dist/components/ai/response/index.mjs"
|
|
69
59
|
},
|
|
60
|
+
"./icons": {
|
|
61
|
+
"types": "./dist/components/icons/index.d.mts",
|
|
62
|
+
"default": "./dist/components/icons/index.mjs"
|
|
63
|
+
},
|
|
70
64
|
"./code-block": {
|
|
71
65
|
"types": "./dist/components/data-display/code-block/index.d.mts",
|
|
72
66
|
"default": "./dist/components/data-display/code-block/index.mjs"
|
|
73
67
|
},
|
|
74
|
-
"./ai-sdk": {
|
|
75
|
-
"types": "./dist/integrations/ai-sdk/index.d.mts",
|
|
76
|
-
"default": "./dist/integrations/ai-sdk/index.mjs"
|
|
77
|
-
},
|
|
78
68
|
"./i18n": {
|
|
79
69
|
"types": "./dist/i18n/index.d.mts",
|
|
80
70
|
"default": "./dist/i18n/index.mjs"
|
|
81
71
|
},
|
|
82
72
|
"./styles.css": "./dist/styles/index.css",
|
|
83
|
-
"./
|
|
73
|
+
"./tokens.css": "./dist/styles/tokens.css",
|
|
74
|
+
"./tailwind.css": "./dist/styles/tailwind.css",
|
|
75
|
+
"./package.json": "./package.json"
|
|
84
76
|
},
|
|
85
77
|
"publishConfig": {
|
|
86
78
|
"access": "public",
|
|
@@ -88,85 +80,63 @@
|
|
|
88
80
|
},
|
|
89
81
|
"dependencies": {
|
|
90
82
|
"clsx": "2.1.1",
|
|
91
|
-
"
|
|
92
|
-
"server-only": "0.0.1",
|
|
93
|
-
"shiki": "4.5.0"
|
|
83
|
+
"server-only": "0.0.1"
|
|
94
84
|
},
|
|
95
85
|
"devDependencies": {
|
|
96
86
|
"@arethetypeswrong/cli": "0.18.5",
|
|
97
|
-
"@better-css-modules/cli": "0.
|
|
98
|
-
"@better-css-modules/core": "0.
|
|
99
|
-
"@better-css-modules/vite": "0.
|
|
87
|
+
"@better-css-modules/cli": "0.5.0",
|
|
88
|
+
"@better-css-modules/core": "0.5.0",
|
|
89
|
+
"@better-css-modules/vite": "0.5.0",
|
|
100
90
|
"@chromatic-com/storybook": "5.6.0",
|
|
101
|
-
"@
|
|
102
|
-
"@
|
|
103
|
-
"@
|
|
104
|
-
"@
|
|
105
|
-
"@
|
|
106
|
-
"@
|
|
107
|
-
"@storybook/
|
|
108
|
-
"@storybook/addon-docs": "10.6.5",
|
|
109
|
-
"@storybook/addon-mcp": "10.6.5",
|
|
110
|
-
"@storybook/addon-vitest": "10.6.5",
|
|
111
|
-
"@storybook/react-vite": "10.6.5",
|
|
91
|
+
"@k8ordo/form": "^4.0.0",
|
|
92
|
+
"@k8ordo/i18n": "^4.0.0",
|
|
93
|
+
"@storybook/addon-a11y": "10.6.8",
|
|
94
|
+
"@storybook/addon-docs": "10.6.8",
|
|
95
|
+
"@storybook/addon-mcp": "10.6.8",
|
|
96
|
+
"@storybook/addon-vitest": "10.6.8",
|
|
97
|
+
"@storybook/react-vite": "10.6.8",
|
|
112
98
|
"@types/react": "19.3.0",
|
|
113
99
|
"@types/react-dom": "19.3.0",
|
|
114
|
-
"@vitejs/plugin-react": "6.
|
|
115
|
-
"@vitest/browser-playwright": "5.
|
|
116
|
-
"@vitest/coverage-v8": "5.
|
|
117
|
-
"@vitest/ui": "5.
|
|
118
|
-
"
|
|
119
|
-
"postcss": "8.5.32",
|
|
100
|
+
"@vitejs/plugin-react": "6.3.0",
|
|
101
|
+
"@vitest/browser-playwright": "5.1.1",
|
|
102
|
+
"@vitest/coverage-v8": "5.1.1",
|
|
103
|
+
"@vitest/ui": "5.1.1",
|
|
104
|
+
"postcss": "8.5.33",
|
|
120
105
|
"publint": "0.3.25",
|
|
121
106
|
"react": "19.3.1",
|
|
122
107
|
"react-dom": "19.3.1",
|
|
123
|
-
"
|
|
108
|
+
"shiki": "4.6.0",
|
|
109
|
+
"storybook": "10.6.8",
|
|
124
110
|
"storybook-addon-determinism": "0.2.1",
|
|
125
111
|
"storybook-addon-mock-date": "3.2.1",
|
|
126
112
|
"storybook-addon-vrt": "0.4.2",
|
|
127
|
-
"streamdown": "2.
|
|
113
|
+
"streamdown": "2.8.0",
|
|
128
114
|
"typescript": "7.0.2",
|
|
129
|
-
"vite": "npm:@voidzero-dev/vite-plus-core@
|
|
130
|
-
"vite-plus": "1.
|
|
131
|
-
"vitest": "5.
|
|
115
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@8.3.8000",
|
|
116
|
+
"vite-plus": "1.7.0",
|
|
117
|
+
"vitest": "5.1.1",
|
|
132
118
|
"vitest-browser-react": "2.3.0",
|
|
133
119
|
"zod": "4.6.7"
|
|
134
120
|
},
|
|
135
121
|
"peerDependencies": {
|
|
136
|
-
"@
|
|
137
|
-
"@json-render/react": ">=0.21.0 <0.22.0",
|
|
138
|
-
"@k8ordo/i18n": "^2.3.1",
|
|
139
|
-
"@openuidev/lang-core": "^1.0.0",
|
|
140
|
-
"@openuidev/react-lang": "^1.0.0",
|
|
122
|
+
"@k8ordo/i18n": "^4.0.0",
|
|
141
123
|
"@types/react": ">=19.3.0",
|
|
142
124
|
"@types/react-dom": ">=19.3.0",
|
|
143
|
-
"ai": ">=7.0.51",
|
|
144
125
|
"react": ">=19.3.0",
|
|
145
126
|
"react-dom": ">=19.3.0",
|
|
127
|
+
"shiki": ">=4.6.0",
|
|
146
128
|
"streamdown": ">=2.5.0",
|
|
147
129
|
"typescript": ">=7.0.0",
|
|
148
130
|
"zod": "^4.6.6"
|
|
149
131
|
},
|
|
150
132
|
"peerDependenciesMeta": {
|
|
151
|
-
"@json-render/core": {
|
|
152
|
-
"optional": true
|
|
153
|
-
},
|
|
154
|
-
"@json-render/react": {
|
|
155
|
-
"optional": true
|
|
156
|
-
},
|
|
157
|
-
"@openuidev/lang-core": {
|
|
158
|
-
"optional": true
|
|
159
|
-
},
|
|
160
|
-
"@openuidev/react-lang": {
|
|
161
|
-
"optional": true
|
|
162
|
-
},
|
|
163
133
|
"@types/react": {
|
|
164
134
|
"optional": true
|
|
165
135
|
},
|
|
166
136
|
"@types/react-dom": {
|
|
167
137
|
"optional": true
|
|
168
138
|
},
|
|
169
|
-
"
|
|
139
|
+
"shiki": {
|
|
170
140
|
"optional": true
|
|
171
141
|
},
|
|
172
142
|
"streamdown": {
|
|
@@ -181,10 +151,10 @@
|
|
|
181
151
|
},
|
|
182
152
|
"scripts": {
|
|
183
153
|
"build": "vp pack && node scripts/build-tokens.ts",
|
|
184
|
-
"generate:props": "node scripts/extract-props.ts && node scripts/generate-component-docs.ts",
|
|
185
|
-
"check:props": "node scripts/extract-props.ts --check && node scripts/generate-component-docs.ts --check",
|
|
154
|
+
"generate:props": "node scripts/generate-icons.ts && node scripts/extract-props.ts && node scripts/generate-component-docs.ts",
|
|
155
|
+
"check:props": "node scripts/generate-icons.ts --check && node scripts/extract-props.ts --check && node scripts/generate-component-docs.ts --check",
|
|
186
156
|
"check:dist": "node scripts/check-dist-tests.ts",
|
|
187
|
-
"check:package": "publint && attw --pack . --profile esm-only --exclude-entrypoints ./styles.css ./tailwind.css && pnpm check:dist",
|
|
157
|
+
"check:package": "publint && attw --pack . --profile esm-only --exclude-entrypoints ./styles.css ./tokens.css ./tailwind.css && pnpm check:dist",
|
|
188
158
|
"storybook": "storybook dev -p 6006 --no-open",
|
|
189
159
|
"build-storybook": "storybook build",
|
|
190
160
|
"test:vrt": "VRT=1 TEST_BROWSER=chromium vitest run --project=components",
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BaseIcon } from "../../icons/base.mjs";
|
|
2
|
-
import { File, Paperclip } from "../../icons/lucide-imports.mjs";
|
|
3
|
-
import { jsx } from "react/jsx-runtime";
|
|
4
|
-
// src/components/ai/_internal/icons.tsx
|
|
5
|
-
const AttachIcon = ({ size = "md" }) => /* @__PURE__ */ jsx(BaseIcon, {
|
|
6
|
-
renderItem: (props) => /* @__PURE__ */ jsx(Paperclip, { ...props }),
|
|
7
|
-
size
|
|
8
|
-
});
|
|
9
|
-
const FileIcon = ({ size = "md" }) => /* @__PURE__ */ jsx(BaseIcon, {
|
|
10
|
-
renderItem: (props) => /* @__PURE__ */ jsx(File, { ...props }),
|
|
11
|
-
size
|
|
12
|
-
});
|
|
13
|
-
export { AttachIcon, FileIcon };
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
@layer properties, theme, base;
|
|
2
|
-
|
|
3
|
-
@layer components {
|
|
4
|
-
._pBLbq_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
|
-
padding-inline: calc(var(--spacing) * 3);
|
|
11
|
-
padding-block: calc(var(--spacing) * 2);
|
|
12
|
-
font-variant-numeric: tabular-nums;
|
|
13
|
-
|
|
14
|
-
&:read-only {
|
|
15
|
-
cursor: not-allowed;
|
|
16
|
-
background-color: var(--color-bg-subtle);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
&:disabled {
|
|
20
|
-
cursor: not-allowed;
|
|
21
|
-
border-color: var(--color-border-mute);
|
|
22
|
-
background-color: var(--color-bg-mute);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
&[aria-invalid="true"] {
|
|
26
|
-
border-color: var(--color-border-error);
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
@layer utilities;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { FC, InputHTMLAttributes, Ref } from "react";
|
|
2
|
-
type Props = {
|
|
3
|
-
invalid?: boolean;
|
|
4
|
-
ref?: Ref<HTMLInputElement>;
|
|
5
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, 'className' | 'style' | 'type' | 'children'>;
|
|
6
|
-
export declare const DateField: FC<Props>;
|
|
7
|
-
export {};
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
3
|
-
import date_field_module_default from "./date-field.module.mjs";
|
|
4
|
-
import { clsx } from "clsx";
|
|
5
|
-
import { useFormStatus } from "react-dom";
|
|
6
|
-
import { jsx } from "react/jsx-runtime";
|
|
7
|
-
// src/components/form/date-field/date-field.tsx
|
|
8
|
-
const DateField = ({ invalid = false, readOnly, ref, ...rest }) => {
|
|
9
|
-
const { pending } = useFormStatus();
|
|
10
|
-
return /* @__PURE__ */ jsx("input", {
|
|
11
|
-
"aria-invalid": invalid,
|
|
12
|
-
className: clsx(date_field_module_default.root, focus_ring_module_default.ring),
|
|
13
|
-
readOnly: pending || readOnly,
|
|
14
|
-
ref,
|
|
15
|
-
...rest,
|
|
16
|
-
type: "date"
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
export { DateField };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { DateField } from "./date-field.mjs";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { BaseIconProps } from "./base.mjs";
|
|
2
|
-
import { FC } from "react";
|
|
3
|
-
export declare const ChromeIcon: FC<Partial<BaseIconProps>>;
|
|
4
|
-
export declare const EdgeIcon: FC<Partial<BaseIconProps>>;
|
|
5
|
-
export declare const FirefoxIcon: FC<Partial<BaseIconProps>>;
|
|
6
|
-
export declare const SafariIcon: FC<Partial<BaseIconProps>>;
|