@maanlamp/react-web-ui 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +181 -2
- package/dist/assets/spinner.js +28 -0
- package/dist/base.css +171 -0
- package/dist/components/accordion/accordion.css +93 -0
- package/dist/components/accordion/accordion.d.ts +47 -0
- package/dist/components/accordion/accordion.d.ts.map +1 -0
- package/dist/components/accordion/accordion.js +184 -0
- package/dist/components/accordion/accordion.module.js +16 -0
- package/dist/components/accordion/index.d.ts +2 -0
- package/dist/components/accordion/index.d.ts.map +1 -0
- package/dist/components/accordion/index.js +1 -0
- package/dist/components/active-filters/active-filter-describers.d.ts +58 -0
- package/dist/components/active-filters/active-filter-describers.d.ts.map +1 -0
- package/dist/components/active-filters/active-filter-describers.js +48 -0
- package/dist/components/active-filters/active-filters.d.ts +28 -0
- package/dist/components/active-filters/active-filters.d.ts.map +1 -0
- package/dist/components/active-filters/active-filters.js +96 -0
- package/dist/components/active-filters/index.d.ts +3 -0
- package/dist/components/active-filters/index.d.ts.map +1 -0
- package/dist/components/active-filters/index.js +3 -0
- package/dist/components/attachment-tile/attachment-preview.d.ts +34 -0
- package/dist/components/attachment-tile/attachment-preview.d.ts.map +1 -0
- package/dist/components/attachment-tile/attachment-preview.js +181 -0
- package/dist/components/attachment-tile/attachment-tile.css +92 -0
- package/dist/components/attachment-tile/attachment-tile.d.ts +48 -0
- package/dist/components/attachment-tile/attachment-tile.d.ts.map +1 -0
- package/dist/components/attachment-tile/attachment-tile.js +126 -0
- package/dist/components/attachment-tile/attachment-tile.module.js +20 -0
- package/dist/components/attachment-tile/index.d.ts +3 -0
- package/dist/components/attachment-tile/index.d.ts.map +1 -0
- package/dist/components/attachment-tile/index.js +3 -0
- package/dist/components/avatar/avatar.css +48 -0
- package/dist/components/avatar/avatar.d.ts +20 -0
- package/dist/components/avatar/avatar.d.ts.map +1 -0
- package/dist/components/avatar/avatar.js +98 -0
- package/dist/components/avatar/avatar.module.js +10 -0
- package/dist/components/avatar/index.d.ts +2 -0
- package/dist/components/avatar/index.d.ts.map +1 -0
- package/dist/components/avatar/index.js +1 -0
- package/dist/components/avatar-group/avatar-group.css +75 -0
- package/dist/components/avatar-group/avatar-group.d.ts +41 -0
- package/dist/components/avatar-group/avatar-group.d.ts.map +1 -0
- package/dist/components/avatar-group/avatar-group.js +213 -0
- package/dist/components/avatar-group/avatar-group.module.js +20 -0
- package/dist/components/avatar-group/index.d.ts +2 -0
- package/dist/components/avatar-group/index.d.ts.map +1 -0
- package/dist/components/avatar-group/index.js +1 -0
- package/dist/components/badge/badge.css +101 -0
- package/dist/components/badge/badge.d.ts +18 -0
- package/dist/components/badge/badge.d.ts.map +1 -0
- package/dist/components/badge/badge.js +61 -0
- package/dist/components/badge/badge.module.js +4 -0
- package/dist/components/badge/index.d.ts +2 -0
- package/dist/components/badge/index.d.ts.map +1 -0
- package/dist/components/badge/index.js +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.css +57 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +106 -0
- package/dist/components/breadcrumbs/breadcrumbs.d.ts.map +1 -0
- package/dist/components/breadcrumbs/breadcrumbs.js +710 -0
- package/dist/components/breadcrumbs/breadcrumbs.module.js +20 -0
- package/dist/components/breadcrumbs/index.d.ts +3 -0
- package/dist/components/breadcrumbs/index.d.ts.map +1 -0
- package/dist/components/breadcrumbs/index.js +3 -0
- package/dist/components/breadcrumbs/use-fold.d.ts +35 -0
- package/dist/components/breadcrumbs/use-fold.d.ts.map +1 -0
- package/dist/components/breadcrumbs/use-fold.js +73 -0
- package/dist/components/button/button.css +111 -0
- package/dist/components/button/button.d.ts +48 -0
- package/dist/components/button/button.d.ts.map +1 -0
- package/dist/components/button/button.js +213 -0
- package/dist/components/button/button.module.js +4 -0
- package/dist/components/button/index.d.ts +2 -0
- package/dist/components/button/index.d.ts.map +1 -0
- package/dist/components/button/index.js +1 -0
- package/dist/components/checkbox-field/checkbox-field.d.ts +21 -0
- package/dist/components/checkbox-field/checkbox-field.d.ts.map +1 -0
- package/dist/components/checkbox-field/checkbox-field.js +180 -0
- package/dist/components/checkbox-field/checkbox-glyph.d.ts +13 -0
- package/dist/components/checkbox-field/checkbox-glyph.d.ts.map +1 -0
- package/dist/components/checkbox-field/checkbox-glyph.js +38 -0
- package/dist/components/checkbox-field/checkbox.css +126 -0
- package/dist/components/checkbox-field/checkbox.d.ts +15 -0
- package/dist/components/checkbox-field/checkbox.d.ts.map +1 -0
- package/dist/components/checkbox-field/checkbox.js +82 -0
- package/dist/components/checkbox-field/checkbox.module.js +14 -0
- package/dist/components/checkbox-field/index.d.ts +5 -0
- package/dist/components/checkbox-field/index.d.ts.map +1 -0
- package/dist/components/checkbox-field/index.js +5 -0
- package/dist/components/checkbox-field/tsf-checkbox-field.d.ts +15 -0
- package/dist/components/checkbox-field/tsf-checkbox-field.d.ts.map +1 -0
- package/dist/components/checkbox-field/tsf-checkbox-field.js +40 -0
- package/dist/components/checkbox-group-field/checkbox-group-field.d.ts +35 -0
- package/dist/components/checkbox-group-field/checkbox-group-field.d.ts.map +1 -0
- package/dist/components/checkbox-group-field/checkbox-group-field.js +128 -0
- package/dist/components/checkbox-group-field/checkbox-group.css +31 -0
- package/dist/components/checkbox-group-field/checkbox-group.d.ts +39 -0
- package/dist/components/checkbox-group-field/checkbox-group.d.ts.map +1 -0
- package/dist/components/checkbox-group-field/checkbox-group.js +102 -0
- package/dist/components/checkbox-group-field/checkbox-group.module.js +8 -0
- package/dist/components/checkbox-group-field/index.d.ts +4 -0
- package/dist/components/checkbox-group-field/index.d.ts.map +1 -0
- package/dist/components/checkbox-group-field/index.js +4 -0
- package/dist/components/checkbox-group-field/tsf-checkbox-group-field.d.ts +16 -0
- package/dist/components/checkbox-group-field/tsf-checkbox-group-field.d.ts.map +1 -0
- package/dist/components/checkbox-group-field/tsf-checkbox-group-field.js +41 -0
- package/dist/components/collapsible/collapsible.css +88 -0
- package/dist/components/collapsible/collapsible.d.ts +34 -0
- package/dist/components/collapsible/collapsible.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.js +146 -0
- package/dist/components/collapsible/collapsible.module.js +14 -0
- package/dist/components/collapsible/index.d.ts +2 -0
- package/dist/components/collapsible/index.d.ts.map +1 -0
- package/dist/components/collapsible/index.js +1 -0
- package/dist/components/combobox-field/combobox-field.d.ts +67 -0
- package/dist/components/combobox-field/combobox-field.d.ts.map +1 -0
- package/dist/components/combobox-field/combobox-field.js +532 -0
- package/dist/components/combobox-field/combobox-items.d.ts +81 -0
- package/dist/components/combobox-field/combobox-items.d.ts.map +1 -0
- package/dist/components/combobox-field/combobox-items.js +27 -0
- package/dist/components/combobox-field/combobox-popup-body.d.ts +35 -0
- package/dist/components/combobox-field/combobox-popup-body.d.ts.map +1 -0
- package/dist/components/combobox-field/combobox-popup-body.js +142 -0
- package/dist/components/combobox-field/combobox.css +524 -0
- package/dist/components/combobox-field/combobox.d.ts +106 -0
- package/dist/components/combobox-field/combobox.d.ts.map +1 -0
- package/dist/components/combobox-field/combobox.js +647 -0
- package/dist/components/combobox-field/combobox.module.js +46 -0
- package/dist/components/combobox-field/index.d.ts +8 -0
- package/dist/components/combobox-field/index.d.ts.map +1 -0
- package/dist/components/combobox-field/index.js +4 -0
- package/dist/components/combobox-field/item-lookups.d.ts +19 -0
- package/dist/components/combobox-field/item-lookups.d.ts.map +1 -0
- package/dist/components/combobox-field/item-lookups.js +8 -0
- package/dist/components/combobox-field/react-query.d.ts +16 -0
- package/dist/components/combobox-field/react-query.d.ts.map +1 -0
- package/dist/components/combobox-field/react-query.js +78 -0
- package/dist/components/combobox-field/selection.d.ts +51 -0
- package/dist/components/combobox-field/selection.d.ts.map +1 -0
- package/dist/components/combobox-field/selection.js +38 -0
- package/dist/components/combobox-field/tsf-combobox-field.d.ts +34 -0
- package/dist/components/combobox-field/tsf-combobox-field.d.ts.map +1 -0
- package/dist/components/combobox-field/tsf-combobox-field.js +88 -0
- package/dist/components/combobox-field/value-state-view.css +21 -0
- package/dist/components/combobox-field/value-state-view.d.ts +36 -0
- package/dist/components/combobox-field/value-state-view.d.ts.map +1 -0
- package/dist/components/combobox-field/value-state-view.js +107 -0
- package/dist/components/combobox-field/value-state-view.module.js +10 -0
- package/dist/components/combobox-field/value-state.d.ts +50 -0
- package/dist/components/combobox-field/value-state.d.ts.map +1 -0
- package/dist/components/combobox-field/value-state.js +38 -0
- package/dist/components/composer/composer-attachments.d.ts +32 -0
- package/dist/components/composer/composer-attachments.d.ts.map +1 -0
- package/dist/components/composer/composer-attachments.js +158 -0
- package/dist/components/composer/composer-editor.css +105 -0
- package/dist/components/composer/composer-editor.d.ts +16 -0
- package/dist/components/composer/composer-editor.d.ts.map +1 -0
- package/dist/components/composer/composer-editor.js +165 -0
- package/dist/components/composer/composer-editor.module.js +14 -0
- package/dist/components/composer/composer-mentions.d.ts +11 -0
- package/dist/components/composer/composer-mentions.d.ts.map +1 -0
- package/dist/components/composer/composer-mentions.js +294 -0
- package/dist/components/composer/composer.context.d.ts +57 -0
- package/dist/components/composer/composer.context.d.ts.map +1 -0
- package/dist/components/composer/composer.context.js +14 -0
- package/dist/components/composer/composer.css +80 -0
- package/dist/components/composer/composer.d.ts +78 -0
- package/dist/components/composer/composer.d.ts.map +1 -0
- package/dist/components/composer/composer.handle.d.ts +32 -0
- package/dist/components/composer/composer.handle.d.ts.map +1 -0
- package/dist/components/composer/composer.handle.js +41 -0
- package/dist/components/composer/composer.js +428 -0
- package/dist/components/composer/composer.module.js +14 -0
- package/dist/components/composer/editor-behavior.d.ts +3 -0
- package/dist/components/composer/editor-behavior.d.ts.map +1 -0
- package/dist/components/composer/editor-behavior.js +99 -0
- package/dist/components/composer/index.d.ts +9 -0
- package/dist/components/composer/index.d.ts.map +1 -0
- package/dist/components/composer/index.js +3 -0
- package/dist/components/composer/mention-node.d.ts +45 -0
- package/dist/components/composer/mention-node.d.ts.map +1 -0
- package/dist/components/composer/mention-node.js +71 -0
- package/dist/components/composer/mention-sources.d.ts +15 -0
- package/dist/components/composer/mention-sources.d.ts.map +1 -0
- package/dist/components/composer/mention-text.css +14 -0
- package/dist/components/composer/mention-text.d.ts +67 -0
- package/dist/components/composer/mention-text.d.ts.map +1 -0
- package/dist/components/composer/mention-text.js +95 -0
- package/dist/components/composer/mention-text.module.js +4 -0
- package/dist/components/confirm-dialog/confirm-dialog.css +68 -0
- package/dist/components/confirm-dialog/confirm-dialog.d.ts +75 -0
- package/dist/components/confirm-dialog/confirm-dialog.d.ts.map +1 -0
- package/dist/components/confirm-dialog/confirm-dialog.js +400 -0
- package/dist/components/confirm-dialog/confirm-dialog.module.js +14 -0
- package/dist/components/confirm-dialog/index.d.ts +2 -0
- package/dist/components/confirm-dialog/index.d.ts.map +1 -0
- package/dist/components/confirm-dialog/index.js +1 -0
- package/dist/components/conversation/conversation.context.d.ts +17 -0
- package/dist/components/conversation/conversation.context.d.ts.map +1 -0
- package/dist/components/conversation/conversation.context.js +14 -0
- package/dist/components/conversation/conversation.css +143 -0
- package/dist/components/conversation/conversation.d.ts +127 -0
- package/dist/components/conversation/conversation.d.ts.map +1 -0
- package/dist/components/conversation/conversation.js +761 -0
- package/dist/components/conversation/conversation.module.js +34 -0
- package/dist/components/conversation/group-messages.d.ts +35 -0
- package/dist/components/conversation/group-messages.d.ts.map +1 -0
- package/dist/components/conversation/group-messages.js +64 -0
- package/dist/components/conversation/index.d.ts +5 -0
- package/dist/components/conversation/index.d.ts.map +1 -0
- package/dist/components/conversation/index.js +4 -0
- package/dist/components/conversation/moment.d.ts +12 -0
- package/dist/components/conversation/moment.d.ts.map +1 -0
- package/dist/components/conversation/moment.js +15 -0
- package/dist/components/date-field/date-field.d.ts +46 -0
- package/dist/components/date-field/date-field.d.ts.map +1 -0
- package/dist/components/date-field/date-field.js +183 -0
- package/dist/components/date-field/date-input.d.ts +47 -0
- package/dist/components/date-field/date-input.d.ts.map +1 -0
- package/dist/components/date-field/date-input.js +109 -0
- package/dist/components/date-field/index.d.ts +5 -0
- package/dist/components/date-field/index.d.ts.map +1 -0
- package/dist/components/date-field/index.js +4 -0
- package/dist/components/date-field/tsf-date-field.d.ts +15 -0
- package/dist/components/date-field/tsf-date-field.d.ts.map +1 -0
- package/dist/components/date-field/tsf-date-field.js +40 -0
- package/dist/components/date-range-field/date-range-field.d.ts +54 -0
- package/dist/components/date-range-field/date-range-field.d.ts.map +1 -0
- package/dist/components/date-range-field/date-range-field.js +188 -0
- package/dist/components/date-range-field/date-range-input.d.ts +52 -0
- package/dist/components/date-range-field/date-range-input.d.ts.map +1 -0
- package/dist/components/date-range-field/date-range-input.js +109 -0
- package/dist/components/date-range-field/index.d.ts +5 -0
- package/dist/components/date-range-field/index.d.ts.map +1 -0
- package/dist/components/date-range-field/index.js +5 -0
- package/dist/components/date-range-field/tsf-date-range-field.d.ts +16 -0
- package/dist/components/date-range-field/tsf-date-range-field.d.ts.map +1 -0
- package/dist/components/date-range-field/tsf-date-range-field.js +58 -0
- package/dist/components/detail-list/detail-list.css +32 -0
- package/dist/components/detail-list/detail-list.d.ts +42 -0
- package/dist/components/detail-list/detail-list.d.ts.map +1 -0
- package/dist/components/detail-list/detail-list.js +163 -0
- package/dist/components/detail-list/detail-list.module.js +14 -0
- package/dist/components/detail-list/index.d.ts +2 -0
- package/dist/components/detail-list/index.d.ts.map +1 -0
- package/dist/components/detail-list/index.js +1 -0
- package/dist/components/dialog/dialog.css +78 -0
- package/dist/components/dialog/dialog.d.ts +62 -0
- package/dist/components/dialog/dialog.d.ts.map +1 -0
- package/dist/components/dialog/dialog.js +249 -0
- package/dist/components/dialog/dialog.module.js +16 -0
- package/dist/components/dialog/index.d.ts +2 -0
- package/dist/components/dialog/index.d.ts.map +1 -0
- package/dist/components/dialog/index.js +1 -0
- package/dist/components/divider/divider.css +16 -0
- package/dist/components/divider/divider.d.ts +14 -0
- package/dist/components/divider/divider.d.ts.map +1 -0
- package/dist/components/divider/divider.js +47 -0
- package/dist/components/divider/divider.module.js +10 -0
- package/dist/components/divider/index.d.ts +2 -0
- package/dist/components/divider/index.d.ts.map +1 -0
- package/dist/components/divider/index.js +1 -0
- package/dist/components/drawer/drawer.css +168 -0
- package/dist/components/drawer/drawer.d.ts +68 -0
- package/dist/components/drawer/drawer.d.ts.map +1 -0
- package/dist/components/drawer/drawer.js +223 -0
- package/dist/components/drawer/drawer.module.js +16 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/drawer/index.d.ts.map +1 -0
- package/dist/components/drawer/index.js +1 -0
- package/dist/components/email-field/email-field.d.ts +12 -0
- package/dist/components/email-field/email-field.d.ts.map +1 -0
- package/dist/components/email-field/email-field.js +45 -0
- package/dist/components/email-field/index.d.ts +3 -0
- package/dist/components/email-field/index.d.ts.map +1 -0
- package/dist/components/email-field/index.js +3 -0
- package/dist/components/email-field/tsf-email-field.d.ts +14 -0
- package/dist/components/email-field/tsf-email-field.d.ts.map +1 -0
- package/dist/components/email-field/tsf-email-field.js +14 -0
- package/dist/components/empty-message/empty-message.d.ts +17 -0
- package/dist/components/empty-message/empty-message.d.ts.map +1 -0
- package/dist/components/empty-message/empty-message.js +31 -0
- package/dist/components/empty-message/index.d.ts +2 -0
- package/dist/components/empty-message/index.d.ts.map +1 -0
- package/dist/components/empty-message/index.js +1 -0
- package/dist/components/error-boundary/error-boundary.d.ts +44 -0
- package/dist/components/error-boundary/error-boundary.d.ts.map +1 -0
- package/dist/components/error-boundary/error-boundary.js +60 -0
- package/dist/components/error-boundary/index.d.ts +2 -0
- package/dist/components/error-boundary/index.d.ts.map +1 -0
- package/dist/components/error-boundary/index.js +1 -0
- package/dist/components/error-message/error-message.d.ts +16 -0
- package/dist/components/error-message/error-message.d.ts.map +1 -0
- package/dist/components/error-message/error-message.js +30 -0
- package/dist/components/error-message/index.d.ts +2 -0
- package/dist/components/error-message/index.d.ts.map +1 -0
- package/dist/components/error-message/index.js +1 -0
- package/dist/components/error-text/error-cascade.d.ts +33 -0
- package/dist/components/error-text/error-cascade.d.ts.map +1 -0
- package/dist/components/error-text/error-cascade.js +49 -0
- package/dist/components/error-text/error-text.css +27 -0
- package/dist/components/error-text/error-text.d.ts +23 -0
- package/dist/components/error-text/error-text.d.ts.map +1 -0
- package/dist/components/error-text/error-text.js +139 -0
- package/dist/components/error-text/error-text.module.js +11 -0
- package/dist/components/error-text/index.d.ts +2 -0
- package/dist/components/error-text/index.d.ts.map +1 -0
- package/dist/components/error-text/index.js +1 -0
- package/dist/components/field/choice-option.d.ts +12 -0
- package/dist/components/field/choice-option.d.ts.map +1 -0
- package/dist/components/field/field-state.d.ts +50 -0
- package/dist/components/field/field-state.d.ts.map +1 -0
- package/dist/components/field/field-state.js +28 -0
- package/dist/components/field/field.css +50 -0
- package/dist/components/field/field.d.ts +179 -0
- package/dist/components/field/field.d.ts.map +1 -0
- package/dist/components/field/field.js +434 -0
- package/dist/components/field/field.module.js +20 -0
- package/dist/components/field/fieldset.d.ts +23 -0
- package/dist/components/field/fieldset.d.ts.map +1 -0
- package/dist/components/field/fieldset.js +128 -0
- package/dist/components/field/hidden-input.d.ts +9 -0
- package/dist/components/field/hidden-input.d.ts.map +1 -0
- package/dist/components/field/hidden-input.js +12 -0
- package/dist/components/field/index.d.ts +8 -0
- package/dist/components/field/index.d.ts.map +1 -0
- package/dist/components/field/index.js +7 -0
- package/dist/components/field/options-load.d.ts +55 -0
- package/dist/components/field/options-load.d.ts.map +1 -0
- package/dist/components/field/options-load.js +38 -0
- package/dist/components/field/rim-focus.d.ts +11 -0
- package/dist/components/field/rim-focus.d.ts.map +1 -0
- package/dist/components/field/rim-focus.js +23 -0
- package/dist/components/field/use-field-focus.d.ts +38 -0
- package/dist/components/field/use-field-focus.d.ts.map +1 -0
- package/dist/components/field/use-field-focus.js +71 -0
- package/dist/components/field-placeholder/field-placeholder.css +22 -0
- package/dist/components/field-placeholder/field-placeholder.d.ts +11 -0
- package/dist/components/field-placeholder/field-placeholder.d.ts.map +1 -0
- package/dist/components/field-placeholder/field-placeholder.js +54 -0
- package/dist/components/field-placeholder/field-placeholder.module.js +12 -0
- package/dist/components/field-placeholder/index.d.ts +2 -0
- package/dist/components/field-placeholder/index.d.ts.map +1 -0
- package/dist/components/field-placeholder/index.js +1 -0
- package/dist/components/file-field/file-field.css +95 -0
- package/dist/components/file-field/file-field.d.ts +60 -0
- package/dist/components/file-field/file-field.d.ts.map +1 -0
- package/dist/components/file-field/file-field.js +302 -0
- package/dist/components/file-field/file-field.module.js +10 -0
- package/dist/components/file-field/file-input.d.ts +86 -0
- package/dist/components/file-field/file-input.d.ts.map +1 -0
- package/dist/components/file-field/file-input.js +338 -0
- package/dist/components/file-field/file-size.d.ts +22 -0
- package/dist/components/file-field/file-size.d.ts.map +1 -0
- package/dist/components/file-field/file-size.js +18 -0
- package/dist/components/file-field/file-type.d.ts +22 -0
- package/dist/components/file-field/file-type.d.ts.map +1 -0
- package/dist/components/file-field/file-type.js +28 -0
- package/dist/components/file-field/index.d.ts +4 -0
- package/dist/components/file-field/index.d.ts.map +1 -0
- package/dist/components/file-field/index.js +4 -0
- package/dist/components/file-field/tsf-file-field.d.ts +15 -0
- package/dist/components/file-field/tsf-file-field.d.ts.map +1 -0
- package/dist/components/file-field/tsf-file-field.js +48 -0
- package/dist/components/filter-bar/filter-bar.css +34 -0
- package/dist/components/filter-bar/filter-bar.d.ts +86 -0
- package/dist/components/filter-bar/filter-bar.d.ts.map +1 -0
- package/dist/components/filter-bar/filter-bar.js +310 -0
- package/dist/components/filter-bar/filter-bar.module.js +14 -0
- package/dist/components/filter-bar/index.d.ts +3 -0
- package/dist/components/filter-bar/index.d.ts.map +1 -0
- package/dist/components/filter-bar/index.js +3 -0
- package/dist/components/filter-bar/use-filter-view.d.ts +87 -0
- package/dist/components/filter-bar/use-filter-view.d.ts.map +1 -0
- package/dist/components/filter-bar/use-filter-view.js +219 -0
- package/dist/components/form/first-invalid.d.ts +11 -0
- package/dist/components/form/first-invalid.d.ts.map +1 -0
- package/dist/components/form/first-invalid.js +31 -0
- package/dist/components/form/form-context.d.ts +24 -0
- package/dist/components/form/form-context.d.ts.map +1 -0
- package/dist/components/form/form-context.js +28 -0
- package/dist/components/form/form.css +14 -0
- package/dist/components/form/form.d.ts +69 -0
- package/dist/components/form/form.d.ts.map +1 -0
- package/dist/components/form/form.js +317 -0
- package/dist/components/form/form.module.js +8 -0
- package/dist/components/form/index.d.ts +3 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/form/index.js +3 -0
- package/dist/components/icon/icon.css +9 -0
- package/dist/components/icon/icon.d.ts +32 -0
- package/dist/components/icon/icon.d.ts.map +1 -0
- package/dist/components/icon/icon.js +61 -0
- package/dist/components/icon/icon.module.js +4 -0
- package/dist/components/icon/index.d.ts +2 -0
- package/dist/components/icon/index.d.ts.map +1 -0
- package/dist/components/icon/index.js +1 -0
- package/dist/components/link/index.d.ts +2 -0
- package/dist/components/link/index.d.ts.map +1 -0
- package/dist/components/link/index.js +1 -0
- package/dist/components/link/link.css +18 -0
- package/dist/components/link/link.d.ts +12 -0
- package/dist/components/link/link.d.ts.map +1 -0
- package/dist/components/link/link.js +45 -0
- package/dist/components/link/link.module.js +4 -0
- package/dist/components/link-button/index.d.ts +2 -0
- package/dist/components/link-button/index.d.ts.map +1 -0
- package/dist/components/link-button/index.js +1 -0
- package/dist/components/link-button/link-button.d.ts +24 -0
- package/dist/components/link-button/link-button.d.ts.map +1 -0
- package/dist/components/link-button/link-button.js +82 -0
- package/dist/components/loading-message/index.d.ts +2 -0
- package/dist/components/loading-message/index.d.ts.map +1 -0
- package/dist/components/loading-message/index.js +1 -0
- package/dist/components/loading-message/loading-message.d.ts +23 -0
- package/dist/components/loading-message/loading-message.d.ts.map +1 -0
- package/dist/components/loading-message/loading-message.js +55 -0
- package/dist/components/locale-provider/index.d.ts +2 -0
- package/dist/components/locale-provider/index.d.ts.map +1 -0
- package/dist/components/locale-provider/index.js +1 -0
- package/dist/components/locale-provider/locale-provider.d.ts +23 -0
- package/dist/components/locale-provider/locale-provider.d.ts.map +1 -0
- package/dist/components/locale-provider/locale-provider.js +50 -0
- package/dist/components/menu/index.d.ts +2 -0
- package/dist/components/menu/index.d.ts.map +1 -0
- package/dist/components/menu/index.js +1 -0
- package/dist/components/menu/menu.css +123 -0
- package/dist/components/menu/menu.d.ts +79 -0
- package/dist/components/menu/menu.d.ts.map +1 -0
- package/dist/components/menu/menu.js +382 -0
- package/dist/components/menu/menu.module.js +20 -0
- package/dist/components/nav/index.d.ts +4 -0
- package/dist/components/nav/index.d.ts.map +1 -0
- package/dist/components/nav/index.js +3 -0
- package/dist/components/nav/nav-context.d.ts +18 -0
- package/dist/components/nav/nav-context.d.ts.map +1 -0
- package/dist/components/nav/nav-context.js +5 -0
- package/dist/components/nav/nav-item-view.d.ts +64 -0
- package/dist/components/nav/nav-item-view.d.ts.map +1 -0
- package/dist/components/nav/nav-item-view.js +243 -0
- package/dist/components/nav/nav.css +310 -0
- package/dist/components/nav/nav.d.ts +84 -0
- package/dist/components/nav/nav.d.ts.map +1 -0
- package/dist/components/nav/nav.js +481 -0
- package/dist/components/nav/nav.module.js +32 -0
- package/dist/components/number-field/index.d.ts +5 -0
- package/dist/components/number-field/index.d.ts.map +1 -0
- package/dist/components/number-field/index.js +5 -0
- package/dist/components/number-field/number-field-formats.d.ts +25 -0
- package/dist/components/number-field/number-field-formats.d.ts.map +1 -0
- package/dist/components/number-field/number-field-formats.js +43 -0
- package/dist/components/number-field/number-field.css +110 -0
- package/dist/components/number-field/number-field.d.ts +34 -0
- package/dist/components/number-field/number-field.d.ts.map +1 -0
- package/dist/components/number-field/number-field.js +168 -0
- package/dist/components/number-field/number-field.module.js +16 -0
- package/dist/components/number-field/number-input-context.d.ts +23 -0
- package/dist/components/number-field/number-input-context.d.ts.map +1 -0
- package/dist/components/number-field/number-input-context.js +15 -0
- package/dist/components/number-field/number-input.d.ts +81 -0
- package/dist/components/number-field/number-input.d.ts.map +1 -0
- package/dist/components/number-field/number-input.js +482 -0
- package/dist/components/number-field/tsf-number-field.d.ts +15 -0
- package/dist/components/number-field/tsf-number-field.d.ts.map +1 -0
- package/dist/components/number-field/tsf-number-field.js +34 -0
- package/dist/components/otp-field/index.d.ts +4 -0
- package/dist/components/otp-field/index.d.ts.map +1 -0
- package/dist/components/otp-field/index.js +4 -0
- package/dist/components/otp-field/otp-field.css +91 -0
- package/dist/components/otp-field/otp-field.d.ts +23 -0
- package/dist/components/otp-field/otp-field.d.ts.map +1 -0
- package/dist/components/otp-field/otp-field.js +80 -0
- package/dist/components/otp-field/otp-field.module.js +12 -0
- package/dist/components/otp-field/otp-input-context.d.ts +30 -0
- package/dist/components/otp-field/otp-input-context.d.ts.map +1 -0
- package/dist/components/otp-field/otp-input-context.js +15 -0
- package/dist/components/otp-field/otp-input.d.ts +74 -0
- package/dist/components/otp-field/otp-input.d.ts.map +1 -0
- package/dist/components/otp-field/otp-input.js +297 -0
- package/dist/components/otp-field/tsf-otp-field.d.ts +15 -0
- package/dist/components/otp-field/tsf-otp-field.d.ts.map +1 -0
- package/dist/components/otp-field/tsf-otp-field.js +34 -0
- package/dist/components/pagination/index.d.ts +2 -0
- package/dist/components/pagination/index.d.ts.map +1 -0
- package/dist/components/pagination/index.js +1 -0
- package/dist/components/pagination/pagination-context.d.ts +24 -0
- package/dist/components/pagination/pagination-context.d.ts.map +1 -0
- package/dist/components/pagination/pagination-context.js +14 -0
- package/dist/components/pagination/pagination.css +24 -0
- package/dist/components/pagination/pagination.d.ts +61 -0
- package/dist/components/pagination/pagination.d.ts.map +1 -0
- package/dist/components/pagination/pagination.js +341 -0
- package/dist/components/pagination/pagination.module.js +12 -0
- package/dist/components/password-field/index.d.ts +5 -0
- package/dist/components/password-field/index.d.ts.map +1 -0
- package/dist/components/password-field/index.js +4 -0
- package/dist/components/password-field/password-field.css +66 -0
- package/dist/components/password-field/password-field.d.ts +45 -0
- package/dist/components/password-field/password-field.d.ts.map +1 -0
- package/dist/components/password-field/password-field.js +227 -0
- package/dist/components/password-field/password-field.module.js +20 -0
- package/dist/components/password-field/password-strength.d.ts +28 -0
- package/dist/components/password-field/password-strength.d.ts.map +1 -0
- package/dist/components/password-field/password-strength.js +124 -0
- package/dist/components/password-field/tsf-password-field.d.ts +15 -0
- package/dist/components/password-field/tsf-password-field.d.ts.map +1 -0
- package/dist/components/password-field/tsf-password-field.js +34 -0
- package/dist/components/phone-field/index.d.ts +3 -0
- package/dist/components/phone-field/index.d.ts.map +1 -0
- package/dist/components/phone-field/index.js +3 -0
- package/dist/components/phone-field/phone-field.d.ts +15 -0
- package/dist/components/phone-field/phone-field.d.ts.map +1 -0
- package/dist/components/phone-field/phone-field.js +29 -0
- package/dist/components/phone-field/tsf-phone-field.d.ts +15 -0
- package/dist/components/phone-field/tsf-phone-field.d.ts.map +1 -0
- package/dist/components/phone-field/tsf-phone-field.js +14 -0
- package/dist/components/photo-field/index.d.ts +4 -0
- package/dist/components/photo-field/index.d.ts.map +1 -0
- package/dist/components/photo-field/index.js +4 -0
- package/dist/components/photo-field/photo-field.d.ts +30 -0
- package/dist/components/photo-field/photo-field.d.ts.map +1 -0
- package/dist/components/photo-field/photo-field.js +170 -0
- package/dist/components/photo-field/photo-input.css +112 -0
- package/dist/components/photo-field/photo-input.d.ts +55 -0
- package/dist/components/photo-field/photo-input.d.ts.map +1 -0
- package/dist/components/photo-field/photo-input.js +326 -0
- package/dist/components/photo-field/photo-input.module.js +18 -0
- package/dist/components/photo-field/tsf-photo-field.d.ts +19 -0
- package/dist/components/photo-field/tsf-photo-field.d.ts.map +1 -0
- package/dist/components/photo-field/tsf-photo-field.js +56 -0
- package/dist/components/popover/index.d.ts +2 -0
- package/dist/components/popover/index.d.ts.map +1 -0
- package/dist/components/popover/index.js +1 -0
- package/dist/components/popover/popover.css +120 -0
- package/dist/components/popover/popover.d.ts +73 -0
- package/dist/components/popover/popover.d.ts.map +1 -0
- package/dist/components/popover/popover.js +434 -0
- package/dist/components/popover/popover.module.js +34 -0
- package/dist/components/radio-group-field/index.d.ts +4 -0
- package/dist/components/radio-group-field/index.d.ts.map +1 -0
- package/dist/components/radio-group-field/index.js +4 -0
- package/dist/components/radio-group-field/radio-group-field.d.ts +26 -0
- package/dist/components/radio-group-field/radio-group-field.d.ts.map +1 -0
- package/dist/components/radio-group-field/radio-group-field.js +128 -0
- package/dist/components/radio-group-field/radio-group.css +114 -0
- package/dist/components/radio-group-field/radio-group.d.ts +39 -0
- package/dist/components/radio-group-field/radio-group.d.ts.map +1 -0
- package/dist/components/radio-group-field/radio-group.js +158 -0
- package/dist/components/radio-group-field/radio-group.module.js +12 -0
- package/dist/components/radio-group-field/tsf-radio-group-field.d.ts +16 -0
- package/dist/components/radio-group-field/tsf-radio-group-field.d.ts.map +1 -0
- package/dist/components/radio-group-field/tsf-radio-group-field.js +41 -0
- package/dist/components/search-field/index.d.ts +3 -0
- package/dist/components/search-field/index.d.ts.map +1 -0
- package/dist/components/search-field/index.js +3 -0
- package/dist/components/search-field/search-field.d.ts +18 -0
- package/dist/components/search-field/search-field.d.ts.map +1 -0
- package/dist/components/search-field/search-field.js +45 -0
- package/dist/components/search-field/tsf-search-field.d.ts +15 -0
- package/dist/components/search-field/tsf-search-field.d.ts.map +1 -0
- package/dist/components/search-field/tsf-search-field.js +14 -0
- package/dist/components/segmented-control-field/index.d.ts +4 -0
- package/dist/components/segmented-control-field/index.d.ts.map +1 -0
- package/dist/components/segmented-control-field/index.js +4 -0
- package/dist/components/segmented-control-field/segmented-control-field.d.ts +33 -0
- package/dist/components/segmented-control-field/segmented-control-field.d.ts.map +1 -0
- package/dist/components/segmented-control-field/segmented-control-field.js +166 -0
- package/dist/components/segmented-control-field/segmented-control.css +188 -0
- package/dist/components/segmented-control-field/segmented-control.d.ts +59 -0
- package/dist/components/segmented-control-field/segmented-control.d.ts.map +1 -0
- package/dist/components/segmented-control-field/segmented-control.js +199 -0
- package/dist/components/segmented-control-field/segmented-control.module.js +12 -0
- package/dist/components/segmented-control-field/tsf-segmented-control-field.d.ts +16 -0
- package/dist/components/segmented-control-field/tsf-segmented-control-field.d.ts.map +1 -0
- package/dist/components/segmented-control-field/tsf-segmented-control-field.js +41 -0
- package/dist/components/select-field/index.d.ts +4 -0
- package/dist/components/select-field/index.d.ts.map +1 -0
- package/dist/components/select-field/index.js +4 -0
- package/dist/components/select-field/select-context.d.ts +21 -0
- package/dist/components/select-field/select-context.d.ts.map +1 -0
- package/dist/components/select-field/select-context.js +15 -0
- package/dist/components/select-field/select-field.d.ts +33 -0
- package/dist/components/select-field/select-field.d.ts.map +1 -0
- package/dist/components/select-field/select-field.js +307 -0
- package/dist/components/select-field/select.css +228 -0
- package/dist/components/select-field/select.d.ts +79 -0
- package/dist/components/select-field/select.d.ts.map +1 -0
- package/dist/components/select-field/select.js +529 -0
- package/dist/components/select-field/select.module.js +30 -0
- package/dist/components/select-field/tsf-select-field.d.ts +16 -0
- package/dist/components/select-field/tsf-select-field.d.ts.map +1 -0
- package/dist/components/select-field/tsf-select-field.js +41 -0
- package/dist/components/skeleton/index.d.ts +2 -0
- package/dist/components/skeleton/index.d.ts.map +1 -0
- package/dist/components/skeleton/index.js +1 -0
- package/dist/components/skeleton/skeleton.css +16 -0
- package/dist/components/skeleton/skeleton.d.ts +14 -0
- package/dist/components/skeleton/skeleton.d.ts.map +1 -0
- package/dist/components/skeleton/skeleton.js +34 -0
- package/dist/components/skeleton/skeleton.module.js +9 -0
- package/dist/components/spinner/index.d.ts +2 -0
- package/dist/components/spinner/index.d.ts.map +1 -0
- package/dist/components/spinner/index.js +1 -0
- package/dist/components/spinner/spinner.css +7 -0
- package/dist/components/spinner/spinner.d.ts +16 -0
- package/dist/components/spinner/spinner.d.ts.map +1 -0
- package/dist/components/spinner/spinner.js +50 -0
- package/dist/components/spinner/spinner.module.js +4 -0
- package/dist/components/stale/index.d.ts +2 -0
- package/dist/components/stale/index.d.ts.map +1 -0
- package/dist/components/stale/index.js +1 -0
- package/dist/components/stale/stale.css +60 -0
- package/dist/components/stale/stale.d.ts +69 -0
- package/dist/components/stale/stale.d.ts.map +1 -0
- package/dist/components/stale/stale.js +231 -0
- package/dist/components/stale/stale.module.js +16 -0
- package/dist/components/status-message/index.d.ts +2 -0
- package/dist/components/status-message/index.d.ts.map +1 -0
- package/dist/components/status-message/index.js +1 -0
- package/dist/components/status-message/status-message.css +122 -0
- package/dist/components/status-message/status-message.d.ts +73 -0
- package/dist/components/status-message/status-message.d.ts.map +1 -0
- package/dist/components/status-message/status-message.js +182 -0
- package/dist/components/status-message/status-message.module.js +16 -0
- package/dist/components/status-message/status-preset.d.ts +27 -0
- package/dist/components/status-message/status-preset.d.ts.map +1 -0
- package/dist/components/status-message/status-preset.js +64 -0
- package/dist/components/switch-field/index.d.ts +4 -0
- package/dist/components/switch-field/index.d.ts.map +1 -0
- package/dist/components/switch-field/index.js +4 -0
- package/dist/components/switch-field/switch-field.d.ts +23 -0
- package/dist/components/switch-field/switch-field.d.ts.map +1 -0
- package/dist/components/switch-field/switch-field.js +142 -0
- package/dist/components/switch-field/switch.css +138 -0
- package/dist/components/switch-field/switch.d.ts +36 -0
- package/dist/components/switch-field/switch.d.ts.map +1 -0
- package/dist/components/switch-field/switch.js +205 -0
- package/dist/components/switch-field/switch.module.js +12 -0
- package/dist/components/switch-field/tsf-switch-field.d.ts +15 -0
- package/dist/components/switch-field/tsf-switch-field.d.ts.map +1 -0
- package/dist/components/switch-field/tsf-switch-field.js +40 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/index.d.ts.map +1 -0
- package/dist/components/tabs/index.js +1 -0
- package/dist/components/tabs/tabs.css +122 -0
- package/dist/components/tabs/tabs.d.ts +53 -0
- package/dist/components/tabs/tabs.d.ts.map +1 -0
- package/dist/components/tabs/tabs.js +194 -0
- package/dist/components/tabs/tabs.module.js +18 -0
- package/dist/components/tag/index.d.ts +2 -0
- package/dist/components/tag/index.d.ts.map +1 -0
- package/dist/components/tag/index.js +1 -0
- package/dist/components/tag/tag.css +120 -0
- package/dist/components/tag/tag.d.ts +37 -0
- package/dist/components/tag/tag.d.ts.map +1 -0
- package/dist/components/tag/tag.js +124 -0
- package/dist/components/tag/tag.module.js +10 -0
- package/dist/components/tag-group/index.d.ts +2 -0
- package/dist/components/tag-group/index.d.ts.map +1 -0
- package/dist/components/tag-group/index.js +1 -0
- package/dist/components/tag-group/tag-group.css +155 -0
- package/dist/components/tag-group/tag-group.d.ts +54 -0
- package/dist/components/tag-group/tag-group.d.ts.map +1 -0
- package/dist/components/tag-group/tag-group.js +182 -0
- package/dist/components/tag-group/tag-group.module.js +12 -0
- package/dist/components/text-field/connect-text-preset.d.ts +14 -0
- package/dist/components/text-field/connect-text-preset.d.ts.map +1 -0
- package/dist/components/text-field/connect-text-preset.js +34 -0
- package/dist/components/text-field/index.d.ts +6 -0
- package/dist/components/text-field/index.d.ts.map +1 -0
- package/dist/components/text-field/index.js +5 -0
- package/dist/components/text-field/text-field.css +164 -0
- package/dist/components/text-field/text-field.d.ts +57 -0
- package/dist/components/text-field/text-field.d.ts.map +1 -0
- package/dist/components/text-field/text-field.js +247 -0
- package/dist/components/text-field/text-field.module.js +22 -0
- package/dist/components/text-field/text-input-context.d.ts +35 -0
- package/dist/components/text-field/text-input-context.d.ts.map +1 -0
- package/dist/components/text-field/text-input-context.js +16 -0
- package/dist/components/text-field/text-input.d.ts +84 -0
- package/dist/components/text-field/text-input.d.ts.map +1 -0
- package/dist/components/text-field/text-input.js +590 -0
- package/dist/components/text-field/text-preset.d.ts +8 -0
- package/dist/components/text-field/text-preset.d.ts.map +1 -0
- package/dist/components/text-field/tsf-text-field.d.ts +15 -0
- package/dist/components/text-field/tsf-text-field.d.ts.map +1 -0
- package/dist/components/text-field/tsf-text-field.js +34 -0
- package/dist/components/textarea-field/index.d.ts +4 -0
- package/dist/components/textarea-field/index.d.ts.map +1 -0
- package/dist/components/textarea-field/index.js +4 -0
- package/dist/components/textarea-field/textarea-field.css +12 -0
- package/dist/components/textarea-field/textarea-field.d.ts +20 -0
- package/dist/components/textarea-field/textarea-field.d.ts.map +1 -0
- package/dist/components/textarea-field/textarea-field.js +168 -0
- package/dist/components/textarea-field/textarea-field.module.js +8 -0
- package/dist/components/textarea-field/textarea.d.ts +20 -0
- package/dist/components/textarea-field/textarea.d.ts.map +1 -0
- package/dist/components/textarea-field/textarea.js +108 -0
- package/dist/components/textarea-field/tsf-textarea-field.d.ts +15 -0
- package/dist/components/textarea-field/tsf-textarea-field.d.ts.map +1 -0
- package/dist/components/textarea-field/tsf-textarea-field.js +34 -0
- package/dist/components/textarea-field/use-autosize.d.ts +12 -0
- package/dist/components/textarea-field/use-autosize.d.ts.map +1 -0
- package/dist/components/textarea-field/use-autosize.js +65 -0
- package/dist/components/time-field/index.d.ts +4 -0
- package/dist/components/time-field/index.d.ts.map +1 -0
- package/dist/components/time-field/index.js +4 -0
- package/dist/components/time-field/time-field.d.ts +26 -0
- package/dist/components/time-field/time-field.d.ts.map +1 -0
- package/dist/components/time-field/time-field.js +136 -0
- package/dist/components/time-field/time-input.d.ts +31 -0
- package/dist/components/time-field/time-input.d.ts.map +1 -0
- package/dist/components/time-field/time-input.js +66 -0
- package/dist/components/time-field/tsf-time-field.d.ts +15 -0
- package/dist/components/time-field/tsf-time-field.d.ts.map +1 -0
- package/dist/components/time-field/tsf-time-field.js +40 -0
- package/dist/components/time-zone-provider/index.d.ts +2 -0
- package/dist/components/time-zone-provider/index.d.ts.map +1 -0
- package/dist/components/time-zone-provider/index.js +1 -0
- package/dist/components/time-zone-provider/time-zone-provider.d.ts +23 -0
- package/dist/components/time-zone-provider/time-zone-provider.d.ts.map +1 -0
- package/dist/components/time-zone-provider/time-zone-provider.js +39 -0
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/index.d.ts.map +1 -0
- package/dist/components/toast/index.js +3 -0
- package/dist/components/toast/toast-provider.css +99 -0
- package/dist/components/toast/toast-provider.d.ts +19 -0
- package/dist/components/toast/toast-provider.d.ts.map +1 -0
- package/dist/components/toast/toast-provider.js +203 -0
- package/dist/components/toast/toast-provider.module.js +24 -0
- package/dist/components/toast/toast.d.ts +89 -0
- package/dist/components/toast/toast.d.ts.map +1 -0
- package/dist/components/toast/toast.js +77 -0
- package/dist/components/toggle-group-field/index.d.ts +4 -0
- package/dist/components/toggle-group-field/index.d.ts.map +1 -0
- package/dist/components/toggle-group-field/index.js +4 -0
- package/dist/components/toggle-group-field/toggle-group-field.d.ts +33 -0
- package/dist/components/toggle-group-field/toggle-group-field.d.ts.map +1 -0
- package/dist/components/toggle-group-field/toggle-group-field.js +158 -0
- package/dist/components/toggle-group-field/toggle-group.css +132 -0
- package/dist/components/toggle-group-field/toggle-group.d.ts +45 -0
- package/dist/components/toggle-group-field/toggle-group.d.ts.map +1 -0
- package/dist/components/toggle-group-field/toggle-group.js +146 -0
- package/dist/components/toggle-group-field/toggle-group.module.js +8 -0
- package/dist/components/toggle-group-field/tsf-toggle-group-field.d.ts +16 -0
- package/dist/components/toggle-group-field/tsf-toggle-group-field.d.ts.map +1 -0
- package/dist/components/toggle-group-field/tsf-toggle-group-field.js +41 -0
- package/dist/components/tooltip/index.d.ts +2 -0
- package/dist/components/tooltip/index.d.ts.map +1 -0
- package/dist/components/tooltip/index.js +1 -0
- package/dist/components/tooltip/tooltip.css +22 -0
- package/dist/components/tooltip/tooltip.d.ts +47 -0
- package/dist/components/tooltip/tooltip.d.ts.map +1 -0
- package/dist/components/tooltip/tooltip.js +175 -0
- package/dist/components/tooltip/tooltip.module.js +4 -0
- package/dist/data-table/data-table-content.d.ts +28 -0
- package/dist/data-table/data-table-content.d.ts.map +1 -0
- package/dist/data-table/data-table-content.js +311 -0
- package/dist/data-table/data-table-context.d.ts +34 -0
- package/dist/data-table/data-table-context.d.ts.map +1 -0
- package/dist/data-table/data-table-context.js +31 -0
- package/dist/data-table/data-table-selection.d.ts +43 -0
- package/dist/data-table/data-table-selection.d.ts.map +1 -0
- package/dist/data-table/data-table-selection.js +299 -0
- package/dist/data-table/data-table.css +531 -0
- package/dist/data-table/data-table.d.ts +88 -0
- package/dist/data-table/data-table.d.ts.map +1 -0
- package/dist/data-table/data-table.js +309 -0
- package/dist/data-table/data-table.module.js +74 -0
- package/dist/data-table/index.d.ts +7 -0
- package/dist/data-table/index.d.ts.map +1 -0
- package/dist/data-table/index.js +5 -0
- package/dist/data-table/resolve-view.d.ts +32 -0
- package/dist/data-table/resolve-view.d.ts.map +1 -0
- package/dist/data-table/resolve-view.js +37 -0
- package/dist/data-table/table-features.d.ts +70 -0
- package/dist/data-table/table-features.d.ts.map +1 -0
- package/dist/data-table/table-features.js +41 -0
- package/dist/data-table/use-sticky-offsets.d.ts +22 -0
- package/dist/data-table/use-sticky-offsets.d.ts.map +1 -0
- package/dist/data-table/use-sticky-offsets.js +86 -0
- package/dist/data-view/index.d.ts +2 -0
- package/dist/data-view/index.d.ts.map +1 -0
- package/dist/data-view/index.js +1 -0
- package/dist/data-view/use-data-view.d.ts +84 -0
- package/dist/data-view/use-data-view.d.ts.map +1 -0
- package/dist/data-view/use-data-view.js +135 -0
- package/dist/index.d.ts +71 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +136 -0
- package/dist/lib/calendar/calendar-navigation.d.ts +20 -0
- package/dist/lib/calendar/calendar-navigation.d.ts.map +1 -0
- package/dist/lib/calendar/calendar-navigation.js +216 -0
- package/dist/lib/calendar/calendar-state.d.ts +20 -0
- package/dist/lib/calendar/calendar-state.d.ts.map +1 -0
- package/dist/lib/calendar/calendar-state.js +33 -0
- package/dist/lib/calendar/calendar-year.d.ts +21 -0
- package/dist/lib/calendar/calendar-year.d.ts.map +1 -0
- package/dist/lib/calendar/calendar-year.js +334 -0
- package/dist/lib/calendar/temporal-value.d.ts +85 -0
- package/dist/lib/calendar/temporal-value.d.ts.map +1 -0
- package/dist/lib/calendar/temporal-value.js +105 -0
- package/dist/lib/calendar/temporal.css +583 -0
- package/dist/lib/calendar/temporal.d.ts +135 -0
- package/dist/lib/calendar/temporal.d.ts.map +1 -0
- package/dist/lib/calendar/temporal.js +783 -0
- package/dist/lib/calendar/temporal.module.js +80 -0
- package/dist/lib/format-bytes.d.ts +11 -0
- package/dist/lib/format-bytes.d.ts.map +1 -0
- package/dist/lib/format-bytes.js +22 -0
- package/dist/lib/forms/app-form.d.ts +88 -0
- package/dist/lib/forms/app-form.d.ts.map +1 -0
- package/dist/lib/forms/app-form.js +89 -0
- package/dist/lib/forms/context.d.ts +33 -0
- package/dist/lib/forms/context.d.ts.map +1 -0
- package/dist/lib/forms/context.js +33 -0
- package/dist/lib/forms/deferred.d.ts +13 -0
- package/dist/lib/forms/deferred.d.ts.map +1 -0
- package/dist/lib/forms/deferred.js +38 -0
- package/dist/lib/forms/errors.d.ts +24 -0
- package/dist/lib/forms/errors.d.ts.map +1 -0
- package/dist/lib/forms/errors.js +25 -0
- package/dist/lib/forms/failed-submit.d.ts +17 -0
- package/dist/lib/forms/failed-submit.d.ts.map +1 -0
- package/dist/lib/forms/failed-submit.js +44 -0
- package/dist/lib/forms/index.d.ts +3 -0
- package/dist/lib/forms/index.d.ts.map +1 -0
- package/dist/lib/forms/use-connected-field.d.ts +27 -0
- package/dist/lib/forms/use-connected-field.d.ts.map +1 -0
- package/dist/lib/forms/use-connected-field.js +48 -0
- package/dist/lib/hooks/index.d.ts +6 -0
- package/dist/lib/hooks/index.d.ts.map +1 -0
- package/dist/lib/hooks/use-busy-phase.d.ts +32 -0
- package/dist/lib/hooks/use-busy-phase.d.ts.map +1 -0
- package/dist/lib/hooks/use-busy-phase.js +75 -0
- package/dist/lib/hooks/use-media-query.d.ts +9 -0
- package/dist/lib/hooks/use-media-query.d.ts.map +1 -0
- package/dist/lib/hooks/use-media-query.js +34 -0
- package/dist/lib/hooks/use-presence.d.ts +26 -0
- package/dist/lib/hooks/use-presence.d.ts.map +1 -0
- package/dist/lib/hooks/use-presence.js +155 -0
- package/dist/lib/hooks/use-row-selection.d.ts +66 -0
- package/dist/lib/hooks/use-row-selection.d.ts.map +1 -0
- package/dist/lib/hooks/use-row-selection.js +133 -0
- package/dist/lib/hooks/use-theme.d.ts +29 -0
- package/dist/lib/hooks/use-theme.d.ts.map +1 -0
- package/dist/lib/hooks/use-theme.js +88 -0
- package/dist/lib/iso-zoned.d.ts +10 -0
- package/dist/lib/iso-zoned.d.ts.map +1 -0
- package/dist/lib/iso-zoned.js +19 -0
- package/dist/lib/password-strength/password-strength.d.ts +39 -0
- package/dist/lib/password-strength/password-strength.d.ts.map +1 -0
- package/dist/lib/password-strength/password-strength.js +72 -0
- package/dist/lib/popup-edge-padding.d.ts +21 -0
- package/dist/lib/popup-edge-padding.d.ts.map +1 -0
- package/dist/lib/popup-edge-padding.js +41 -0
- package/dist/lib/sliding-indicator/index.d.ts +2 -0
- package/dist/lib/sliding-indicator/index.d.ts.map +1 -0
- package/dist/lib/sliding-indicator/use-sliding-indicator.d.ts +28 -0
- package/dist/lib/sliding-indicator/use-sliding-indicator.d.ts.map +1 -0
- package/dist/lib/sliding-indicator/use-sliding-indicator.js +84 -0
- package/dist/lib/storage.d.ts +22 -0
- package/dist/lib/storage.d.ts.map +1 -0
- package/dist/lib/table-storage.d.ts +44 -0
- package/dist/lib/table-storage.d.ts.map +1 -0
- package/dist/lib/table-storage.js +62 -0
- package/dist/lib/text-length.d.ts +11 -0
- package/dist/lib/text-length.d.ts.map +1 -0
- package/dist/lib/text-length.js +15 -0
- package/dist/lib/tone.d.ts +15 -0
- package/dist/lib/tone.d.ts.map +1 -0
- package/dist/lib/unsaved-changes/before-unload.d.ts +9 -0
- package/dist/lib/unsaved-changes/before-unload.d.ts.map +1 -0
- package/dist/lib/unsaved-changes/before-unload.js +37 -0
- package/dist/lib/unsaved-changes/index.d.ts +5 -0
- package/dist/lib/unsaved-changes/index.d.ts.map +1 -0
- package/dist/lib/unsaved-changes/leave-guard.d.ts +81 -0
- package/dist/lib/unsaved-changes/leave-guard.d.ts.map +1 -0
- package/dist/lib/unsaved-changes/leave-guard.js +170 -0
- package/dist/lib/unsaved-changes/policy.d.ts +25 -0
- package/dist/lib/unsaved-changes/policy.d.ts.map +1 -0
- package/dist/lib/unsaved-changes/policy.js +17 -0
- package/dist/lib/unsaved-changes/registry.d.ts +37 -0
- package/dist/lib/unsaved-changes/registry.d.ts.map +1 -0
- package/dist/lib/unsaved-changes/registry.js +78 -0
- package/dist/lib/unsaved-changes/tanstack-router.d.ts +13 -0
- package/dist/lib/unsaved-changes/tanstack-router.d.ts.map +1 -0
- package/dist/lib/unsaved-changes/tanstack-router.js +50 -0
- package/dist/lib/use-infinite-scroll.d.ts +32 -0
- package/dist/lib/use-infinite-scroll.d.ts.map +1 -0
- package/dist/lib/use-infinite-scroll.js +78 -0
- package/dist/lib/use-intent.d.ts +18 -0
- package/dist/lib/use-intent.d.ts.map +1 -0
- package/dist/lib/use-intent.js +77 -0
- package/dist/lib/use-required-context.d.ts +10 -0
- package/dist/lib/use-required-context.d.ts.map +1 -0
- package/dist/lib/use-required-context.js +15 -0
- package/dist/terrazzo/index.d.ts +38 -0
- package/dist/terrazzo/index.js +77 -0
- package/dist/tokens.css +1085 -0
- package/dist/vendor/@material-design-icons/svg/outlined/add.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/arrow_downward.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/arrow_forward.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/arrow_upward.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/attach_file.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/block.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/calendar_today.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/check.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/check_circle.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/chevron_left.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/chevron_right.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/close.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/content_copy.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/date_range.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/description.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/download.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/error.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/error_outline.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/expand_less.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/expand_more.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/filter_alt.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/filter_alt_off.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/first_page.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/info.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/keyboard_arrow_down.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/last_page.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/mail.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/more_horiz.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/photo_camera.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/remove.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/restart_alt.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/restore.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/search.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/unfold_more.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/upload_file.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/visibility.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/visibility_off.js +12 -0
- package/dist/vendor/@material-design-icons/svg/outlined/warning_amber.js +12 -0
- package/package.json +412 -5
- package/tokens/dark.tokens.json +315 -0
- package/tokens/kit.resolver.json +38 -0
- package/tokens/ref.tokens.json +1436 -0
- package/tokens/sys.tokens.json +1250 -0
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import './popover.css';// src/components/popover/popover.module.scss
|
|
2
|
+
var positioner = "_positioner_1oo44_3";
|
|
3
|
+
var visuallyHidden = "_visuallyHidden_1oo44_18";
|
|
4
|
+
var popup = "_popup_1oo44_26";
|
|
5
|
+
var arrow = "_arrow_1oo44_47";
|
|
6
|
+
var arrowFill = "_arrowFill_1oo44_65";
|
|
7
|
+
var heading = "_heading_1oo44_68";
|
|
8
|
+
var rows = "_rows_1oo44_73";
|
|
9
|
+
var row = "_row_1oo44_73";
|
|
10
|
+
var rowLabel = "_rowLabel_1oo44_86";
|
|
11
|
+
var rowValue = "_rowValue_1oo44_87";
|
|
12
|
+
var skeletonText = "_skeletonText_1oo44_101";
|
|
13
|
+
var skeletonTextContent = "_skeletonTextContent_1oo44_105";
|
|
14
|
+
var skeletonTextOverlay = "_skeletonTextOverlay_1oo44_108";
|
|
15
|
+
var headingSkeleton = "_headingSkeleton_1oo44_114";
|
|
16
|
+
var valueSkeleton = "_valueSkeleton_1oo44_117";
|
|
17
|
+
var popover_module_default = {
|
|
18
|
+
positioner,
|
|
19
|
+
visuallyHidden,
|
|
20
|
+
popup,
|
|
21
|
+
arrow,
|
|
22
|
+
arrowFill,
|
|
23
|
+
heading,
|
|
24
|
+
rows,
|
|
25
|
+
row,
|
|
26
|
+
rowLabel,
|
|
27
|
+
rowValue,
|
|
28
|
+
skeletonText,
|
|
29
|
+
skeletonTextContent,
|
|
30
|
+
skeletonTextOverlay,
|
|
31
|
+
headingSkeleton,
|
|
32
|
+
valueSkeleton
|
|
33
|
+
};
|
|
34
|
+
export { arrow, arrowFill, popover_module_default as default, heading, headingSkeleton, popup, positioner, row, rowLabel, rowValue, rows, skeletonText, skeletonTextContent, skeletonTextOverlay, valueSkeleton, visuallyHidden };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { RadioGroup as BaseRadioGroup } from "@base-ui/react/radio-group";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
import { type FieldProps, type ChoiceOption } from "../field/index.ts";
|
|
4
|
+
export type RadioGroupFieldProps = FieldProps & Pick<BaseRadioGroup.Props<string | null>, "value" | "defaultValue" | "onValueChange" | "onBlur" | "disabled" | "readOnly"> & Readonly<{
|
|
5
|
+
/** The mutually exclusive choices, in the order they read. */
|
|
6
|
+
options: readonly ChoiceOption[];
|
|
7
|
+
/** The form field's name. */
|
|
8
|
+
name?: string;
|
|
9
|
+
/** Applied to the fieldset, so callers can size the group. */
|
|
10
|
+
className?: string;
|
|
11
|
+
}>;
|
|
12
|
+
/**
|
|
13
|
+
* The assembled radio group: a fieldset named by its label, holding one radio
|
|
14
|
+
* per option, then the description and the error.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* <RadioGroupField
|
|
18
|
+
* label="Kind"
|
|
19
|
+
* optionalLabel="optional"
|
|
20
|
+
* options={[{ label: "Direct", value: "direct" }]}
|
|
21
|
+
* value={kind}
|
|
22
|
+
* onValueChange={setKind}
|
|
23
|
+
* />
|
|
24
|
+
*/
|
|
25
|
+
export declare const RadioGroupField: ({ label, description, errors, requiredness, optionalLabel, dirty, touched, pending, options, className, value, defaultValue, onValueChange, onBlur, name, disabled, readOnly, }: RadioGroupFieldProps) => ReactNode;
|
|
26
|
+
//# sourceMappingURL=radio-group-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group-field.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group-field/radio-group-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,KAAK,UAAU,EAEf,KAAK,YAAY,EACjB,MAAM,mBAAmB,CAAC;AAG3B,MAAM,MAAM,oBAAoB,GAAG,UAAU,GAC5C,IAAI,CACH,cAAc,CAAC,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,EACjC,OAAO,GACP,cAAc,GACd,eAAe,GACf,QAAQ,GACR,UAAU,GACV,UAAU,CACZ,GACD,QAAQ,CAAC;IACR,8DAA8D;IAC9D,OAAO,EAAE,SAAS,YAAY,EAAE,CAAC;IACjC,6BAA6B;IAC7B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEJ;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,oLAkBzB,oBAAoB,KAAG,SAoDzB,CAAC"}
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import { detachHiddenInput } from "../field/hidden-input.js";
|
|
2
|
+
import { RadioGroup } from "./radio-group.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
|
+
// src/components/radio-group-field/radio-group-field.tsx
|
|
6
|
+
/**
|
|
7
|
+
* The assembled radio group: a fieldset named by its label, holding one radio
|
|
8
|
+
* per option, then the description and the error.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <RadioGroupField
|
|
12
|
+
* label="Kind"
|
|
13
|
+
* optionalLabel="optional"
|
|
14
|
+
* options={[{ label: "Direct", value: "direct" }]}
|
|
15
|
+
* value={kind}
|
|
16
|
+
* onValueChange={setKind}
|
|
17
|
+
* />
|
|
18
|
+
*/
|
|
19
|
+
var RadioGroupField = (t0) => {
|
|
20
|
+
const $ = c(36);
|
|
21
|
+
const { label, description, errors, requiredness, optionalLabel, dirty, touched, pending, options, className, value, defaultValue, onValueChange, onBlur, name, disabled, readOnly } = t0;
|
|
22
|
+
const ids = RadioGroup.useIds();
|
|
23
|
+
const t1 = value !== void 0 && value !== null && value !== "";
|
|
24
|
+
let t2;
|
|
25
|
+
if ($[0] !== label || $[1] !== optionalLabel || $[2] !== requiredness) {
|
|
26
|
+
t2 = /* @__PURE__ */ jsx(RadioGroup.Legend, {
|
|
27
|
+
requiredness,
|
|
28
|
+
optionalLabel,
|
|
29
|
+
children: label
|
|
30
|
+
});
|
|
31
|
+
$[0] = label;
|
|
32
|
+
$[1] = optionalLabel;
|
|
33
|
+
$[2] = requiredness;
|
|
34
|
+
$[3] = t2;
|
|
35
|
+
} else t2 = $[3];
|
|
36
|
+
const t3 = name ?? ids.controlId;
|
|
37
|
+
const t4 = ids.controlId;
|
|
38
|
+
const t5 = requiredness === "required";
|
|
39
|
+
let t6;
|
|
40
|
+
if ($[4] !== options) {
|
|
41
|
+
t6 = options.map(_temp);
|
|
42
|
+
$[4] = options;
|
|
43
|
+
$[5] = t6;
|
|
44
|
+
} else t6 = $[5];
|
|
45
|
+
let t7;
|
|
46
|
+
if ($[6] !== defaultValue || $[7] !== disabled || $[8] !== ids.controlId || $[9] !== onBlur || $[10] !== onValueChange || $[11] !== readOnly || $[12] !== t3 || $[13] !== t5 || $[14] !== t6 || $[15] !== value) {
|
|
47
|
+
t7 = /* @__PURE__ */ jsx(RadioGroup.Group, {
|
|
48
|
+
value,
|
|
49
|
+
defaultValue,
|
|
50
|
+
onValueChange,
|
|
51
|
+
onBlur,
|
|
52
|
+
name: t3,
|
|
53
|
+
inputRef: detachHiddenInput,
|
|
54
|
+
id: t4,
|
|
55
|
+
disabled,
|
|
56
|
+
readOnly,
|
|
57
|
+
required: t5,
|
|
58
|
+
children: t6
|
|
59
|
+
});
|
|
60
|
+
$[6] = defaultValue;
|
|
61
|
+
$[7] = disabled;
|
|
62
|
+
$[8] = ids.controlId;
|
|
63
|
+
$[9] = onBlur;
|
|
64
|
+
$[10] = onValueChange;
|
|
65
|
+
$[11] = readOnly;
|
|
66
|
+
$[12] = t3;
|
|
67
|
+
$[13] = t5;
|
|
68
|
+
$[14] = t6;
|
|
69
|
+
$[15] = value;
|
|
70
|
+
$[16] = t7;
|
|
71
|
+
} else t7 = $[16];
|
|
72
|
+
let t8;
|
|
73
|
+
if ($[17] !== description) {
|
|
74
|
+
t8 = /* @__PURE__ */ jsx(RadioGroup.Description, { children: description });
|
|
75
|
+
$[17] = description;
|
|
76
|
+
$[18] = t8;
|
|
77
|
+
} else t8 = $[18];
|
|
78
|
+
let t9;
|
|
79
|
+
if ($[19] !== errors) {
|
|
80
|
+
t9 = /* @__PURE__ */ jsx(RadioGroup.Error, { children: errors });
|
|
81
|
+
$[19] = errors;
|
|
82
|
+
$[20] = t9;
|
|
83
|
+
} else t9 = $[20];
|
|
84
|
+
let t10;
|
|
85
|
+
if ($[21] !== className || $[22] !== dirty || $[23] !== disabled || $[24] !== errors || $[25] !== name || $[26] !== pending || $[27] !== readOnly || $[28] !== requiredness || $[29] !== t1 || $[30] !== t2 || $[31] !== t7 || $[32] !== t8 || $[33] !== t9 || $[34] !== touched) {
|
|
86
|
+
t10 = /* @__PURE__ */ jsxs(RadioGroup.Root, {
|
|
87
|
+
name,
|
|
88
|
+
className,
|
|
89
|
+
disabled,
|
|
90
|
+
readOnly,
|
|
91
|
+
errors,
|
|
92
|
+
requiredness,
|
|
93
|
+
dirty,
|
|
94
|
+
touched,
|
|
95
|
+
pending,
|
|
96
|
+
filled: t1,
|
|
97
|
+
children: [
|
|
98
|
+
t2,
|
|
99
|
+
t7,
|
|
100
|
+
t8,
|
|
101
|
+
t9
|
|
102
|
+
]
|
|
103
|
+
});
|
|
104
|
+
$[21] = className;
|
|
105
|
+
$[22] = dirty;
|
|
106
|
+
$[23] = disabled;
|
|
107
|
+
$[24] = errors;
|
|
108
|
+
$[25] = name;
|
|
109
|
+
$[26] = pending;
|
|
110
|
+
$[27] = readOnly;
|
|
111
|
+
$[28] = requiredness;
|
|
112
|
+
$[29] = t1;
|
|
113
|
+
$[30] = t2;
|
|
114
|
+
$[31] = t7;
|
|
115
|
+
$[32] = t8;
|
|
116
|
+
$[33] = t9;
|
|
117
|
+
$[34] = touched;
|
|
118
|
+
$[35] = t10;
|
|
119
|
+
} else t10 = $[35];
|
|
120
|
+
return t10;
|
|
121
|
+
};
|
|
122
|
+
function _temp(option) {
|
|
123
|
+
return /* @__PURE__ */ jsxs(RadioGroup.Item, {
|
|
124
|
+
disabled: option.disabled,
|
|
125
|
+
children: [/* @__PURE__ */ jsx(RadioGroup.Radio, { value: option.value }), option.label]
|
|
126
|
+
}, option.value);
|
|
127
|
+
}
|
|
128
|
+
export { RadioGroupField };
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
@layer kit.reset, kit.base, kit.components;
|
|
2
|
+
@layer kit.components {
|
|
3
|
+
._group_hqlv0_3 {
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
gap: var(--radio-group-gap, var(--sys-unit-2));
|
|
8
|
+
}
|
|
9
|
+
._item_hqlv0_9 {
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
flex: 0 0 auto;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: var(--radio-group-item-gap, var(--sys-unit-6));
|
|
14
|
+
min-block-size: var(--sys-unit-20);
|
|
15
|
+
cursor: pointer;
|
|
16
|
+
}
|
|
17
|
+
._item_hqlv0_9:hover ._radio_hqlv0_17 {
|
|
18
|
+
border-color: var(--sys-color-primary);
|
|
19
|
+
}
|
|
20
|
+
:where([data-readonly], [data-disabled]) ._item_hqlv0_9 {
|
|
21
|
+
cursor: default;
|
|
22
|
+
}
|
|
23
|
+
:where([data-readonly], [data-disabled]) ._item_hqlv0_9:hover ._radio_hqlv0_17:not([data-checked]) {
|
|
24
|
+
border-color: var(--box-border, var(--sys-color-border));
|
|
25
|
+
}
|
|
26
|
+
._radio_hqlv0_17 {
|
|
27
|
+
--box-border: var(--sys-color-border);
|
|
28
|
+
--box-bg: var(--sys-color-surface);
|
|
29
|
+
--box-fg: var(--sys-color-on-primary);
|
|
30
|
+
--box-checked-bg: var(--sys-color-primary);
|
|
31
|
+
display: grid;
|
|
32
|
+
flex: 0 0 auto;
|
|
33
|
+
place-items: center;
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
inline-size: var(--checkbox-size, var(--sys-unit-16));
|
|
36
|
+
block-size: var(--checkbox-size, var(--sys-unit-16));
|
|
37
|
+
border: 1px solid var(--box-border);
|
|
38
|
+
border-radius: var(--sys-radius-sm);
|
|
39
|
+
background: var(--box-bg);
|
|
40
|
+
color: var(--box-fg);
|
|
41
|
+
}
|
|
42
|
+
@media not (prefers-reduced-motion) {
|
|
43
|
+
._radio_hqlv0_17 {
|
|
44
|
+
transition: background var(--sys-motion-instant) var(--sys-motion-standard), border-color var(--sys-motion-instant) var(--sys-motion-standard);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
._radio_hqlv0_17:focus-visible {
|
|
48
|
+
border-color: var(--sys-color-primary);
|
|
49
|
+
}
|
|
50
|
+
._radio_hqlv0_17 {
|
|
51
|
+
outline: 0 solid var(--sys-color-focus-ring);
|
|
52
|
+
outline-offset: var(--sys-focus-ring-offset);
|
|
53
|
+
}
|
|
54
|
+
._radio_hqlv0_17[data-focus-visible] {
|
|
55
|
+
outline-width: var(--sys-focus-ring-width);
|
|
56
|
+
}
|
|
57
|
+
._radio_hqlv0_17 {
|
|
58
|
+
position: relative;
|
|
59
|
+
border-radius: var(--sys-radius-circle);
|
|
60
|
+
}
|
|
61
|
+
._radio_hqlv0_17[data-invalid] {
|
|
62
|
+
--box-border: var(--sys-color-error-fg);
|
|
63
|
+
--box-bg: var(--sys-color-error-bg);
|
|
64
|
+
--box-checked-bg: var(--sys-color-error-fg);
|
|
65
|
+
--box-fg: var(--sys-color-error-bg);
|
|
66
|
+
}
|
|
67
|
+
._radio_hqlv0_17[data-readonly] {
|
|
68
|
+
--box-border: var(--sys-color-outline);
|
|
69
|
+
--box-bg: var(--sys-color-surface-high);
|
|
70
|
+
--box-checked-bg: var(--sys-color-primary-container);
|
|
71
|
+
--box-fg: var(--sys-color-on-primary-container);
|
|
72
|
+
border-style: dashed;
|
|
73
|
+
}
|
|
74
|
+
._radio_hqlv0_17[data-checked] {
|
|
75
|
+
--box-border: var(--box-checked-bg);
|
|
76
|
+
--box-bg: var(--box-checked-bg);
|
|
77
|
+
}
|
|
78
|
+
._radio_hqlv0_17[data-disabled] {
|
|
79
|
+
opacity: 0.5;
|
|
80
|
+
cursor: not-allowed;
|
|
81
|
+
}
|
|
82
|
+
._indicator_hqlv0_82 {
|
|
83
|
+
display: grid;
|
|
84
|
+
place-items: center;
|
|
85
|
+
}
|
|
86
|
+
._indicator_hqlv0_82 svg {
|
|
87
|
+
inline-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.7);
|
|
88
|
+
block-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.7);
|
|
89
|
+
}
|
|
90
|
+
._indicator_hqlv0_82 {
|
|
91
|
+
opacity: 0;
|
|
92
|
+
scale: 0;
|
|
93
|
+
}
|
|
94
|
+
@media not (prefers-reduced-motion) {
|
|
95
|
+
._indicator_hqlv0_82 {
|
|
96
|
+
transition: opacity var(--sys-motion-instant) var(--sys-motion-standard), scale var(--sys-motion-instant) var(--sys-motion-standard);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
._indicator_hqlv0_82 {
|
|
100
|
+
inline-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.4);
|
|
101
|
+
block-size: calc(var(--checkbox-size, var(--sys-unit-16)) * 0.4);
|
|
102
|
+
border-radius: var(--sys-radius-circle);
|
|
103
|
+
background: currentcolor;
|
|
104
|
+
}
|
|
105
|
+
._indicator_hqlv0_82[data-checked] {
|
|
106
|
+
opacity: 1;
|
|
107
|
+
scale: 1;
|
|
108
|
+
}
|
|
109
|
+
@media not (prefers-reduced-motion) {
|
|
110
|
+
._indicator_hqlv0_82[data-checked] {
|
|
111
|
+
transition: opacity var(--sys-motion-instant) var(--sys-motion-standard), scale var(--sys-motion-short) var(--sys-motion-overshoot);
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Field as BaseField } from "@base-ui/react/field";
|
|
2
|
+
import { Radio as BaseRadio } from "@base-ui/react/radio";
|
|
3
|
+
import { RadioGroup as BaseRadioGroup } from "@base-ui/react/radio-group";
|
|
4
|
+
import type { ReactNode } from "react";
|
|
5
|
+
import { Field } from "../field/index.ts";
|
|
6
|
+
import { FieldsetLegend, FieldsetRoot, type FieldsetRootProps } from "../field/fieldset.tsx";
|
|
7
|
+
export type RadioGroupRootProps = FieldsetRootProps;
|
|
8
|
+
declare const RadioGroupGroup: <TValue>({ className, ...props }: BaseRadioGroup.Props<TValue>) => ReactNode;
|
|
9
|
+
declare const RadioGroupItem: ({ className, ...props }: BaseField.Item.Props) => ReactNode;
|
|
10
|
+
declare const RadioGroupRadio: ({ className, ...props }: BaseRadio.Root.Props) => ReactNode;
|
|
11
|
+
/** The parts of a radio group. */
|
|
12
|
+
export type RadioGroupParts = Readonly<{
|
|
13
|
+
Root: typeof FieldsetRoot;
|
|
14
|
+
Legend: typeof FieldsetLegend;
|
|
15
|
+
Group: typeof RadioGroupGroup;
|
|
16
|
+
Item: typeof RadioGroupItem;
|
|
17
|
+
Radio: typeof RadioGroupRadio;
|
|
18
|
+
Description: typeof Field.Description;
|
|
19
|
+
Error: typeof Field.Error;
|
|
20
|
+
useIds: typeof Field.useIds;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* The styled parts of a base-ui radio group. The `Root` is a fieldset named by
|
|
24
|
+
* its `Legend`. For the ordinary case, use `RadioGroupField`.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* <RadioGroup.Root filled={kind !== null}>
|
|
28
|
+
* <RadioGroup.Legend optionalLabel="optional">Kind</RadioGroup.Legend>
|
|
29
|
+
* <RadioGroup.Group value={kind} onValueChange={setKind}>
|
|
30
|
+
* <RadioGroup.Item>
|
|
31
|
+
* <RadioGroup.Radio value="direct" />
|
|
32
|
+
* Direct
|
|
33
|
+
* </RadioGroup.Item>
|
|
34
|
+
* </RadioGroup.Group>
|
|
35
|
+
* </RadioGroup.Root>
|
|
36
|
+
*/
|
|
37
|
+
export declare const RadioGroup: RadioGroupParts;
|
|
38
|
+
export {};
|
|
39
|
+
//# sourceMappingURL=radio-group.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio-group.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group-field/radio-group.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAE1E,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,KAAK,EAGL,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACN,cAAc,EACd,YAAY,EACZ,KAAK,iBAAiB,EACtB,MAAM,uBAAuB,CAAC;AAG/B,MAAM,MAAM,mBAAmB,GAAG,iBAAiB,CAAC;AAEpD,QAAA,MAAM,eAAe,GAAI,MAAM,2BAG5B,cAAc,CAAC,KAAK,CAAC,MAAM,CAAC,KAAG,SAKjC,CAAC;AAEF,QAAA,MAAM,cAAc,4BAGjB,SAAS,CAAC,IAAI,CAAC,KAAK,KAAG,SAMzB,CAAC;AAEF,QAAA,MAAM,eAAe,4BAGlB,SAAS,CAAC,IAAI,CAAC,KAAK,KAAG,SAezB,CAAC;AAEF,kCAAkC;AAClC,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACtC,IAAI,EAAE,OAAO,YAAY,CAAC;IAC1B,MAAM,EAAE,OAAO,cAAc,CAAC;IAC9B,KAAK,EAAE,OAAO,eAAe,CAAC;IAC9B,IAAI,EAAE,OAAO,cAAc,CAAC;IAC5B,KAAK,EAAE,OAAO,eAAe,CAAC;IAC9B,WAAW,EAAE,OAAO,KAAK,CAAC,WAAW,CAAC;IACtC,KAAK,EAAE,OAAO,KAAK,CAAC,KAAK,CAAC;IAC1B,MAAM,EAAE,OAAO,KAAK,CAAC,MAAM,CAAC;CAC5B,CAAC,CAAC;AAEH;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,UAAU,EAAE,eASxB,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import { Field as Field$1 } from "../field/field.js";
|
|
2
|
+
import { fieldStateAttributes } from "../field/field-state.js";
|
|
3
|
+
import { useFieldFocus } from "../field/use-field-focus.js";
|
|
4
|
+
import { FieldsetLegend, FieldsetRoot } from "../field/fieldset.js";
|
|
5
|
+
import radio_group_module_default from "./radio-group.module.js";
|
|
6
|
+
import { c } from "react/compiler-runtime";
|
|
7
|
+
import { jsx } from "react/jsx-runtime";
|
|
8
|
+
import { clsx } from "clsx";
|
|
9
|
+
import { Field } from "@base-ui/react/field";
|
|
10
|
+
import { Radio } from "@base-ui/react/radio";
|
|
11
|
+
import { RadioGroup } from "@base-ui/react/radio-group";
|
|
12
|
+
// src/components/radio-group-field/radio-group.tsx
|
|
13
|
+
var RadioGroupGroup = (t0) => {
|
|
14
|
+
const $ = c(8);
|
|
15
|
+
let className;
|
|
16
|
+
let props;
|
|
17
|
+
if ($[0] !== t0) {
|
|
18
|
+
({className, ...props} = t0);
|
|
19
|
+
$[0] = t0;
|
|
20
|
+
$[1] = className;
|
|
21
|
+
$[2] = props;
|
|
22
|
+
} else {
|
|
23
|
+
className = $[1];
|
|
24
|
+
props = $[2];
|
|
25
|
+
}
|
|
26
|
+
let t1;
|
|
27
|
+
if ($[3] !== className) {
|
|
28
|
+
t1 = clsx(radio_group_module_default.group, className);
|
|
29
|
+
$[3] = className;
|
|
30
|
+
$[4] = t1;
|
|
31
|
+
} else t1 = $[4];
|
|
32
|
+
let t2;
|
|
33
|
+
if ($[5] !== props || $[6] !== t1) {
|
|
34
|
+
t2 = /* @__PURE__ */ jsx(RadioGroup, {
|
|
35
|
+
className: t1,
|
|
36
|
+
...props
|
|
37
|
+
});
|
|
38
|
+
$[5] = props;
|
|
39
|
+
$[6] = t1;
|
|
40
|
+
$[7] = t2;
|
|
41
|
+
} else t2 = $[7];
|
|
42
|
+
return t2;
|
|
43
|
+
};
|
|
44
|
+
var RadioGroupItem = (t0) => {
|
|
45
|
+
const $ = c(9);
|
|
46
|
+
let className;
|
|
47
|
+
let props;
|
|
48
|
+
if ($[0] !== t0) {
|
|
49
|
+
({className, ...props} = t0);
|
|
50
|
+
$[0] = t0;
|
|
51
|
+
$[1] = className;
|
|
52
|
+
$[2] = props;
|
|
53
|
+
} else {
|
|
54
|
+
className = $[1];
|
|
55
|
+
props = $[2];
|
|
56
|
+
}
|
|
57
|
+
let t1;
|
|
58
|
+
if ($[3] !== className) {
|
|
59
|
+
t1 = clsx(radio_group_module_default.item, className);
|
|
60
|
+
$[3] = className;
|
|
61
|
+
$[4] = t1;
|
|
62
|
+
} else t1 = $[4];
|
|
63
|
+
let t2;
|
|
64
|
+
if ($[5] === Symbol.for("react.memo_cache_sentinel")) {
|
|
65
|
+
t2 = /* @__PURE__ */ jsx(Field.Label, {});
|
|
66
|
+
$[5] = t2;
|
|
67
|
+
} else t2 = $[5];
|
|
68
|
+
let t3;
|
|
69
|
+
if ($[6] !== props || $[7] !== t1) {
|
|
70
|
+
t3 = /* @__PURE__ */ jsx(Field.Item, {
|
|
71
|
+
className: t1,
|
|
72
|
+
render: t2,
|
|
73
|
+
...props
|
|
74
|
+
});
|
|
75
|
+
$[6] = props;
|
|
76
|
+
$[7] = t1;
|
|
77
|
+
$[8] = t3;
|
|
78
|
+
} else t3 = $[8];
|
|
79
|
+
return t3;
|
|
80
|
+
};
|
|
81
|
+
var RadioGroupRadio = (t0) => {
|
|
82
|
+
const $ = c(13);
|
|
83
|
+
let className;
|
|
84
|
+
let props;
|
|
85
|
+
if ($[0] !== t0) {
|
|
86
|
+
({className, ...props} = t0);
|
|
87
|
+
$[0] = t0;
|
|
88
|
+
$[1] = className;
|
|
89
|
+
$[2] = props;
|
|
90
|
+
} else {
|
|
91
|
+
className = $[1];
|
|
92
|
+
props = $[2];
|
|
93
|
+
}
|
|
94
|
+
const focus = useFieldFocus(props);
|
|
95
|
+
let t1;
|
|
96
|
+
if ($[3] !== className) {
|
|
97
|
+
t1 = clsx(radio_group_module_default.radio, className);
|
|
98
|
+
$[3] = className;
|
|
99
|
+
$[4] = t1;
|
|
100
|
+
} else t1 = $[4];
|
|
101
|
+
let t2;
|
|
102
|
+
if ($[5] !== focus) {
|
|
103
|
+
t2 = fieldStateAttributes(focus);
|
|
104
|
+
$[5] = focus;
|
|
105
|
+
$[6] = t2;
|
|
106
|
+
} else t2 = $[6];
|
|
107
|
+
let t3;
|
|
108
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
109
|
+
t3 = /* @__PURE__ */ jsx(Radio.Indicator, {
|
|
110
|
+
keepMounted: true,
|
|
111
|
+
className: radio_group_module_default.indicator
|
|
112
|
+
});
|
|
113
|
+
$[7] = t3;
|
|
114
|
+
} else t3 = $[7];
|
|
115
|
+
let t4;
|
|
116
|
+
if ($[8] !== focus.props || $[9] !== props || $[10] !== t1 || $[11] !== t2) {
|
|
117
|
+
t4 = /* @__PURE__ */ jsx(Radio.Root, {
|
|
118
|
+
className: t1,
|
|
119
|
+
"aria-readonly": void 0,
|
|
120
|
+
...t2,
|
|
121
|
+
...props,
|
|
122
|
+
...focus.props,
|
|
123
|
+
children: t3
|
|
124
|
+
});
|
|
125
|
+
$[8] = focus.props;
|
|
126
|
+
$[9] = props;
|
|
127
|
+
$[10] = t1;
|
|
128
|
+
$[11] = t2;
|
|
129
|
+
$[12] = t4;
|
|
130
|
+
} else t4 = $[12];
|
|
131
|
+
return t4;
|
|
132
|
+
};
|
|
133
|
+
/**
|
|
134
|
+
* The styled parts of a base-ui radio group. The `Root` is a fieldset named by
|
|
135
|
+
* its `Legend`. For the ordinary case, use `RadioGroupField`.
|
|
136
|
+
*
|
|
137
|
+
* @example
|
|
138
|
+
* <RadioGroup.Root filled={kind !== null}>
|
|
139
|
+
* <RadioGroup.Legend optionalLabel="optional">Kind</RadioGroup.Legend>
|
|
140
|
+
* <RadioGroup.Group value={kind} onValueChange={setKind}>
|
|
141
|
+
* <RadioGroup.Item>
|
|
142
|
+
* <RadioGroup.Radio value="direct" />
|
|
143
|
+
* Direct
|
|
144
|
+
* </RadioGroup.Item>
|
|
145
|
+
* </RadioGroup.Group>
|
|
146
|
+
* </RadioGroup.Root>
|
|
147
|
+
*/
|
|
148
|
+
var RadioGroup$1 = {
|
|
149
|
+
Root: FieldsetRoot,
|
|
150
|
+
Legend: FieldsetLegend,
|
|
151
|
+
Group: RadioGroupGroup,
|
|
152
|
+
Item: RadioGroupItem,
|
|
153
|
+
Radio: RadioGroupRadio,
|
|
154
|
+
Description: Field$1.Description,
|
|
155
|
+
Error: Field$1.Error,
|
|
156
|
+
useIds: Field$1.useIds
|
|
157
|
+
};
|
|
158
|
+
export { RadioGroup$1 as RadioGroup };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import './radio-group.css';// src/components/radio-group-field/radio-group.module.scss
|
|
2
|
+
var group = "_group_hqlv0_3";
|
|
3
|
+
var item = "_item_hqlv0_9";
|
|
4
|
+
var radio = "_radio_hqlv0_17";
|
|
5
|
+
var indicator = "_indicator_hqlv0_82";
|
|
6
|
+
var radio_group_module_default = {
|
|
7
|
+
group,
|
|
8
|
+
item,
|
|
9
|
+
radio,
|
|
10
|
+
indicator
|
|
11
|
+
};
|
|
12
|
+
export { radio_group_module_default as default, group, indicator, item, radio };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type ConnectedFieldProps } from "../../lib/forms/use-connected-field.ts";
|
|
3
|
+
import { type RadioGroupFieldProps } from "./radio-group-field.tsx";
|
|
4
|
+
export type TSFRadioGroupFieldProps = Omit<RadioGroupFieldProps, keyof ConnectedFieldProps | "value" | "defaultValue" | "onValueChange">;
|
|
5
|
+
/**
|
|
6
|
+
* `RadioGroupField` bound to the TanStack Form field it renders in, whose value
|
|
7
|
+
* is the chosen option's value or `null`. Reach it as `field.RadioGroupField`
|
|
8
|
+
* inside `form.AppField`.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* <form.AppField name="kind">
|
|
12
|
+
* {field => <field.RadioGroupField label="Kind" options={kinds} optionalLabel="optional" />}
|
|
13
|
+
* </form.AppField>
|
|
14
|
+
*/
|
|
15
|
+
export declare const TSFRadioGroupField: (props: TSFRadioGroupFieldProps) => ReactNode;
|
|
16
|
+
//# sourceMappingURL=tsf-radio-group-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tsf-radio-group-field.d.ts","sourceRoot":"","sources":["../../../src/components/radio-group-field/tsf-radio-group-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EACN,KAAK,mBAAmB,EAExB,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAEN,KAAK,oBAAoB,EACzB,MAAM,yBAAyB,CAAC;AAEjC,MAAM,MAAM,uBAAuB,GAAG,IAAI,CACzC,oBAAoB,EAClB,MAAM,mBAAmB,GACzB,OAAO,GACP,cAAc,GACd,eAAe,CACjB,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,kBAAkB,UACvB,uBAAuB,KAC5B,SAaF,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { useConnectedField } from "../../lib/forms/use-connected-field.js";
|
|
2
|
+
import { RadioGroupField } from "./radio-group-field.js";
|
|
3
|
+
import { c } from "react/compiler-runtime";
|
|
4
|
+
import { jsx } from "react/jsx-runtime";
|
|
5
|
+
// src/components/radio-group-field/tsf-radio-group-field.tsx
|
|
6
|
+
/**
|
|
7
|
+
* `RadioGroupField` bound to the TanStack Form field it renders in, whose value
|
|
8
|
+
* is the chosen option's value or `null`. Reach it as `field.RadioGroupField`
|
|
9
|
+
* inside `form.AppField`.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* <form.AppField name="kind">
|
|
13
|
+
* {field => <field.RadioGroupField label="Kind" options={kinds} optionalLabel="optional" />}
|
|
14
|
+
* </form.AppField>
|
|
15
|
+
*/
|
|
16
|
+
var TSFRadioGroupField = (props) => {
|
|
17
|
+
const $ = c(7);
|
|
18
|
+
const { field, props: connected } = useConnectedField();
|
|
19
|
+
let t0;
|
|
20
|
+
if ($[0] !== field) {
|
|
21
|
+
t0 = (next) => field.handleChange(next);
|
|
22
|
+
$[0] = field;
|
|
23
|
+
$[1] = t0;
|
|
24
|
+
} else t0 = $[1];
|
|
25
|
+
let t1;
|
|
26
|
+
if ($[2] !== connected || $[3] !== field.state.value || $[4] !== props || $[5] !== t0) {
|
|
27
|
+
t1 = /* @__PURE__ */ jsx(RadioGroupField, {
|
|
28
|
+
...props,
|
|
29
|
+
...connected,
|
|
30
|
+
value: field.state.value,
|
|
31
|
+
onValueChange: t0
|
|
32
|
+
});
|
|
33
|
+
$[2] = connected;
|
|
34
|
+
$[3] = field.state.value;
|
|
35
|
+
$[4] = props;
|
|
36
|
+
$[5] = t0;
|
|
37
|
+
$[6] = t1;
|
|
38
|
+
} else t1 = $[6];
|
|
39
|
+
return t1;
|
|
40
|
+
};
|
|
41
|
+
export { TSFRadioGroupField };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/search-field/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
import { type TextFieldBaseProps, type TextPresetProps } from "../text-field/index.ts";
|
|
3
|
+
/** What a search field takes beside the preset props. */
|
|
4
|
+
export type SearchFieldExtraProps = Pick<TextFieldBaseProps, "labelHidden" | "placeholder"> & Readonly<{
|
|
5
|
+
/** The clear button's accessible name and tooltip, such as "Clear search". */
|
|
6
|
+
clearLabel: string;
|
|
7
|
+
}>;
|
|
8
|
+
export type SearchFieldProps = TextPresetProps & SearchFieldExtraProps;
|
|
9
|
+
/**
|
|
10
|
+
* A search box: a `TextField` with a leading search glyph and the clear button.
|
|
11
|
+
* `labelHidden` keeps the name for screen readers where the layout carries no
|
|
12
|
+
* room for a visible label.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* <SearchField label="Search clients" optionalLabel="optional" clearLabel="Clear search" value={search} onValueChange={setSearch} />
|
|
16
|
+
*/
|
|
17
|
+
export declare const SearchField: ({ enterKeyHint, ...props }: SearchFieldProps) => ReactNode;
|
|
18
|
+
//# sourceMappingURL=search-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"search-field.d.ts","sourceRoot":"","sources":["../../../src/components/search-field/search-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAEN,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,MAAM,wBAAwB,CAAC;AAEhC,yDAAyD;AACzD,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACvC,kBAAkB,EAClB,aAAa,GAAG,aAAa,CAC7B,GACA,QAAQ,CAAC;IACR,8EAA8E;IAC9E,UAAU,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEJ,MAAM,MAAM,gBAAgB,GAAG,eAAe,GAC7C,qBAAqB,CAAC;AAEvB;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,+BAGrB,gBAAgB,KAAG,SAUrB,CAAC"}
|