@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,24 @@
|
|
|
1
|
+
import { type Context } from "react";
|
|
2
|
+
declare const FormDisabledContext: Context<boolean>;
|
|
3
|
+
/** Provides whether the enclosing `Form.Root` is busy. */
|
|
4
|
+
export declare const FormDisabledProvider: typeof FormDisabledContext.Provider;
|
|
5
|
+
/**
|
|
6
|
+
* Whether an enclosing `Form.Root` is busy, so its controls are disabled. A
|
|
7
|
+
* control whose primitive ignores the disabled `<fieldset>` reads this.
|
|
8
|
+
*
|
|
9
|
+
* @example
|
|
10
|
+
* const formDisabled = useFormDisabled();
|
|
11
|
+
*/
|
|
12
|
+
export declare const useFormDisabled: () => boolean;
|
|
13
|
+
declare const FormStatusContext: Context<HTMLElement | null>;
|
|
14
|
+
/** Provides the live region `Form.Submit` announces its wait in. */
|
|
15
|
+
export declare const FormStatusProvider: typeof FormStatusContext.Provider;
|
|
16
|
+
/**
|
|
17
|
+
* The enclosing `Form.Root`'s live region, which sits outside its inert fields.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* const status = useFormStatus();
|
|
21
|
+
*/
|
|
22
|
+
export declare const useFormStatus: () => HTMLElement | null;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=form-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form-context.d.ts","sourceRoot":"","sources":["../../../src/components/form/form-context.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,OAAO,EAGZ,MAAM,OAAO,CAAC;AAEf,QAAA,MAAM,mBAAmB,EAAE,OAAO,CAAC,OAAO,CACrB,CAAC;AAEtB,0DAA0D;AAC1D,eAAO,MAAM,oBAAoB,EAAE,OAAO,mBAAmB,CAAC,QACjC,CAAC;AAE9B;;;;;;GAMG;AACH,eAAO,MAAM,eAAe,QAAO,OACH,CAAC;AAEjC,QAAA,MAAM,iBAAiB,EAAE,OAAO,CAAC,WAAW,GAAG,IAAI,CACX,CAAC;AAEzC,oEAAoE;AACpE,eAAO,MAAM,kBAAkB,EAAE,OAAO,iBAAiB,CAAC,QAC/B,CAAC;AAE5B;;;;;GAKG;AACH,eAAO,MAAM,aAAa,QAAO,WAAW,GAAG,IACjB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { createContext, useContext } from "react";
|
|
2
|
+
// src/components/form/form-context.ts
|
|
3
|
+
var FormDisabledContext = createContext(false);
|
|
4
|
+
/** Provides whether the enclosing `Form.Root` is busy. */
|
|
5
|
+
var FormDisabledProvider = FormDisabledContext.Provider;
|
|
6
|
+
/**
|
|
7
|
+
* Whether an enclosing `Form.Root` is busy, so its controls are disabled. A
|
|
8
|
+
* control whose primitive ignores the disabled `<fieldset>` reads this.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* const formDisabled = useFormDisabled();
|
|
12
|
+
*/
|
|
13
|
+
var useFormDisabled = () => {
|
|
14
|
+
return useContext(FormDisabledContext);
|
|
15
|
+
};
|
|
16
|
+
var FormStatusContext = createContext(null);
|
|
17
|
+
/** Provides the live region `Form.Submit` announces its wait in. */
|
|
18
|
+
var FormStatusProvider = FormStatusContext.Provider;
|
|
19
|
+
/**
|
|
20
|
+
* The enclosing `Form.Root`'s live region, which sits outside its inert fields.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* const status = useFormStatus();
|
|
24
|
+
*/
|
|
25
|
+
var useFormStatus = () => {
|
|
26
|
+
return useContext(FormStatusContext);
|
|
27
|
+
};
|
|
28
|
+
export { FormDisabledProvider, FormStatusProvider, useFormDisabled, useFormStatus };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
@layer kit.reset, kit.base, kit.components;
|
|
2
|
+
@layer kit.components {
|
|
3
|
+
._fieldset_1kw7m_3 {
|
|
4
|
+
display: contents;
|
|
5
|
+
}
|
|
6
|
+
._status_1kw7m_6 {
|
|
7
|
+
position: absolute;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
clip-path: inset(50%);
|
|
10
|
+
inline-size: 1px;
|
|
11
|
+
block-size: 1px;
|
|
12
|
+
white-space: nowrap;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import { type AnyFormApi } from "@tanstack/react-form";
|
|
2
|
+
import { type ComponentPropsWithRef, type ReactNode } from "react";
|
|
3
|
+
import { type LeaveGuardPolicy } from "../../lib/unsaved-changes/policy.ts";
|
|
4
|
+
import { type ButtonProps } from "../button/index.ts";
|
|
5
|
+
export type FormRootProps = Omit<ComponentPropsWithRef<"form">, "onSubmit" | "children"> & Readonly<{
|
|
6
|
+
/** The form instance, from `useAppForm`. */
|
|
7
|
+
form: AnyFormApi;
|
|
8
|
+
/** Work the form waits on besides its own submit, such as a mutation it started. */
|
|
9
|
+
busy?: boolean;
|
|
10
|
+
/** When the form reports unsaved changes to the page's leave guards, decided from its live state. Defaults to `whenDirty`. */
|
|
11
|
+
leaveGuard?: LeaveGuardPolicy;
|
|
12
|
+
children: ReactNode;
|
|
13
|
+
}>;
|
|
14
|
+
/**
|
|
15
|
+
* The `<form>`: submits through the form instance, leaves validation to it,
|
|
16
|
+
* disables and inerts its fields while busy, and focuses the first invalid
|
|
17
|
+
* control after a failed submit. While its `leaveGuard` policy holds, it
|
|
18
|
+
* reports unsaved changes to the page's leave guards. Its parts read the
|
|
19
|
+
* form from it.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* <Form.Root form={form}>…</Form.Root>
|
|
23
|
+
*/
|
|
24
|
+
declare const FormRoot: ({ form, busy, leaveGuard, children, ...props }: FormRootProps) => ReactNode;
|
|
25
|
+
export type FormErrorsProps = Readonly<{
|
|
26
|
+
className?: string;
|
|
27
|
+
}>;
|
|
28
|
+
/**
|
|
29
|
+
* The errors that belong to the form rather than to one of its fields, such
|
|
30
|
+
* as a refusal `onSubmitAsync` returns. Renders nothing when there are none.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* <Form.Errors />
|
|
34
|
+
*/
|
|
35
|
+
declare const FormErrors: ({ className, }: FormErrorsProps) => ReactNode;
|
|
36
|
+
export type FormSubmitProps = Omit<Extract<ButtonProps, Readonly<{
|
|
37
|
+
iconOnly?: false;
|
|
38
|
+
}>>, "type" | "iconOnly"> & Readonly<{
|
|
39
|
+
/** What a wait is announced as once it has lasted, such as "Saving". */
|
|
40
|
+
busyLabel: string;
|
|
41
|
+
}>;
|
|
42
|
+
/**
|
|
43
|
+
* The form's submit button. A wait that lasts 150 ms shows a spinner and is
|
|
44
|
+
* announced as `busyLabel`, and stays shown at least 200 ms.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* <Form.Submit busyLabel="Saving">Save</Form.Submit>
|
|
48
|
+
*/
|
|
49
|
+
declare const FormSubmit: ({ busyLabel, variant, icon, children, ...props }: FormSubmitProps) => ReactNode;
|
|
50
|
+
/** The parts of a form. */
|
|
51
|
+
export type FormParts = Readonly<{
|
|
52
|
+
Root: typeof FormRoot;
|
|
53
|
+
Errors: typeof FormErrors;
|
|
54
|
+
Submit: typeof FormSubmit;
|
|
55
|
+
}>;
|
|
56
|
+
/**
|
|
57
|
+
* A form over a TanStack Form instance: `Root` is the `<form>`, `Errors` its
|
|
58
|
+
* form-level errors and `Submit` its submit button.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* <Form.Root form={form}>
|
|
62
|
+
* <form.AppField name="email">{field => <field.EmailField label="Email" optionalLabel="optional" />}</form.AppField>
|
|
63
|
+
* <Form.Errors />
|
|
64
|
+
* <Form.Submit busyLabel="Signing in">Sign in</Form.Submit>
|
|
65
|
+
* </Form.Root>
|
|
66
|
+
*/
|
|
67
|
+
export declare const Form: FormParts;
|
|
68
|
+
export {};
|
|
69
|
+
//# sourceMappingURL=form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"form.d.ts","sourceRoot":"","sources":["../../../src/components/form/form.tsx"],"names":[],"mappings":"AAAA,OAAO,EACN,KAAK,UAAU,EAEf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,KAAK,qBAAqB,EAC1B,KAAK,SAAS,EAId,MAAM,OAAO,CAAC;AASf,OAAO,EACN,KAAK,gBAAgB,EAErB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAEN,KAAK,WAAW,EAChB,MAAM,oBAAoB,CAAC;AAgB5B,MAAM,MAAM,aAAa,GAAG,IAAI,CAC/B,qBAAqB,CAAC,MAAM,CAAC,EAC7B,UAAU,GAAG,UAAU,CACvB,GACA,QAAQ,CAAC;IACR,4CAA4C;IAC5C,IAAI,EAAE,UAAU,CAAC;IACjB,oFAAoF;IACpF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,8HAA8H;IAC9H,UAAU,CAAC,EAAE,gBAAgB,CAAC;IAC9B,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC,CAAC;AAEJ;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ,mDAMX,aAAa,KAAG,SA+DlB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC;IACtC,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH;;;;;;GAMG;AACH,QAAA,MAAM,UAAU,mBAEb,eAAe,KAAG,SAWpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CACjC,OAAO,CAAC,WAAW,EAAE,QAAQ,CAAC;IAAE,QAAQ,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC,CAAC,EACpD,MAAM,GAAG,UAAU,CACnB,GACA,QAAQ,CAAC;IACR,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC,CAAC;AAEJ;;;;;;GAMG;AACH,QAAA,MAAM,UAAU,qDAMb,eAAe,KAAG,SAqBpB,CAAC;AAEF,2BAA2B;AAC3B,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC;IAChC,IAAI,EAAE,OAAO,QAAQ,CAAC;IACtB,MAAM,EAAE,OAAO,UAAU,CAAC;IAC1B,MAAM,EAAE,OAAO,UAAU,CAAC;CAC1B,CAAC,CAAC;AAEH;;;;;;;;;;GAUG;AACH,eAAO,MAAM,IAAI,EAAE,SAIlB,CAAC"}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
import { formContext, useFormContext } from "../../lib/forms/context.js";
|
|
2
|
+
import { normalizeFieldErrors } from "../../lib/forms/errors.js";
|
|
3
|
+
import { useFailedSubmitFocus } from "../../lib/forms/failed-submit.js";
|
|
4
|
+
import { useBusyPhase } from "../../lib/hooks/use-busy-phase.js";
|
|
5
|
+
import { whenDirty } from "../../lib/unsaved-changes/policy.js";
|
|
6
|
+
import { useReportUnsavedChanges } from "../../lib/unsaved-changes/registry.js";
|
|
7
|
+
import { Button } from "../button/button.js";
|
|
8
|
+
import { ErrorCascadeProvider, createErrorCascade } from "../error-text/error-cascade.js";
|
|
9
|
+
import { ErrorText } from "../error-text/error-text.js";
|
|
10
|
+
import { Spinner } from "../spinner/spinner.js";
|
|
11
|
+
import { focusFirstInvalid } from "./first-invalid.js";
|
|
12
|
+
import { FormDisabledProvider, FormStatusProvider, useFormDisabled, useFormStatus } from "./form-context.js";
|
|
13
|
+
import form_module_default from "./form.module.js";
|
|
14
|
+
import { c } from "react/compiler-runtime";
|
|
15
|
+
import { useEffect, useRef, useState } from "react";
|
|
16
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
17
|
+
import { useStore } from "@tanstack/react-form";
|
|
18
|
+
import { createPortal } from "react-dom";
|
|
19
|
+
// src/components/form/form.tsx
|
|
20
|
+
/**
|
|
21
|
+
* The `<form>`: submits through the form instance, leaves validation to it,
|
|
22
|
+
* disables and inerts its fields while busy, and focuses the first invalid
|
|
23
|
+
* control after a failed submit. While its `leaveGuard` policy holds, it
|
|
24
|
+
* reports unsaved changes to the page's leave guards. Its parts read the
|
|
25
|
+
* form from it.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* <Form.Root form={form}>…</Form.Root>
|
|
29
|
+
*/
|
|
30
|
+
var FormRoot = (t0) => {
|
|
31
|
+
const $ = c(34);
|
|
32
|
+
let children;
|
|
33
|
+
let form;
|
|
34
|
+
let props;
|
|
35
|
+
let t1;
|
|
36
|
+
let t2;
|
|
37
|
+
if ($[0] !== t0) {
|
|
38
|
+
({form, busy: t1, leaveGuard: t2, children, ...props} = t0);
|
|
39
|
+
$[0] = t0;
|
|
40
|
+
$[1] = children;
|
|
41
|
+
$[2] = form;
|
|
42
|
+
$[3] = props;
|
|
43
|
+
$[4] = t1;
|
|
44
|
+
$[5] = t2;
|
|
45
|
+
} else {
|
|
46
|
+
children = $[1];
|
|
47
|
+
form = $[2];
|
|
48
|
+
props = $[3];
|
|
49
|
+
t1 = $[4];
|
|
50
|
+
t2 = $[5];
|
|
51
|
+
}
|
|
52
|
+
const busy = t1 === void 0 ? false : t1;
|
|
53
|
+
const leaveGuard = t2 === void 0 ? whenDirty : t2;
|
|
54
|
+
const submitting = useStore(form.store, _temp);
|
|
55
|
+
const guarded = useStore(form.store, leaveGuard);
|
|
56
|
+
useReportUnsavedChanges(guarded);
|
|
57
|
+
const disabled = busy || submitting;
|
|
58
|
+
const content = useRef(null);
|
|
59
|
+
const [invalidSubmits, setInvalidSubmits] = useState(0);
|
|
60
|
+
const focusedSubmits = useRef(0);
|
|
61
|
+
const [cascade] = useState(_temp2);
|
|
62
|
+
const [status, setStatus] = useState(null);
|
|
63
|
+
let t3;
|
|
64
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
65
|
+
t3 = () => setInvalidSubmits(_temp3);
|
|
66
|
+
$[6] = t3;
|
|
67
|
+
} else t3 = $[6];
|
|
68
|
+
useFailedSubmitFocus(form, t3);
|
|
69
|
+
let t4;
|
|
70
|
+
let t5;
|
|
71
|
+
if ($[7] !== disabled || $[8] !== invalidSubmits) {
|
|
72
|
+
t4 = () => {
|
|
73
|
+
if (disabled || content.current === null || focusedSubmits.current === invalidSubmits) return;
|
|
74
|
+
focusedSubmits.current = invalidSubmits;
|
|
75
|
+
focusFirstInvalid(content.current);
|
|
76
|
+
};
|
|
77
|
+
t5 = [disabled, invalidSubmits];
|
|
78
|
+
$[7] = disabled;
|
|
79
|
+
$[8] = invalidSubmits;
|
|
80
|
+
$[9] = t4;
|
|
81
|
+
$[10] = t5;
|
|
82
|
+
} else {
|
|
83
|
+
t4 = $[9];
|
|
84
|
+
t5 = $[10];
|
|
85
|
+
}
|
|
86
|
+
useEffect(t4, t5);
|
|
87
|
+
const t6 = disabled || void 0;
|
|
88
|
+
let t7;
|
|
89
|
+
if ($[11] !== form) {
|
|
90
|
+
t7 = (event) => {
|
|
91
|
+
event.preventDefault();
|
|
92
|
+
form.handleSubmit();
|
|
93
|
+
};
|
|
94
|
+
$[11] = form;
|
|
95
|
+
$[12] = t7;
|
|
96
|
+
} else t7 = $[12];
|
|
97
|
+
let t8;
|
|
98
|
+
if ($[13] !== cascade || $[14] !== children) {
|
|
99
|
+
t8 = /* @__PURE__ */ jsx(ErrorCascadeProvider, {
|
|
100
|
+
value: cascade,
|
|
101
|
+
children
|
|
102
|
+
});
|
|
103
|
+
$[13] = cascade;
|
|
104
|
+
$[14] = children;
|
|
105
|
+
$[15] = t8;
|
|
106
|
+
} else t8 = $[15];
|
|
107
|
+
let t9;
|
|
108
|
+
if ($[16] !== status || $[17] !== t8) {
|
|
109
|
+
t9 = /* @__PURE__ */ jsx(FormStatusProvider, {
|
|
110
|
+
value: status,
|
|
111
|
+
children: t8
|
|
112
|
+
});
|
|
113
|
+
$[16] = status;
|
|
114
|
+
$[17] = t8;
|
|
115
|
+
$[18] = t9;
|
|
116
|
+
} else t9 = $[18];
|
|
117
|
+
let t10;
|
|
118
|
+
if ($[19] !== disabled || $[20] !== t9) {
|
|
119
|
+
t10 = /* @__PURE__ */ jsx(FormDisabledProvider, {
|
|
120
|
+
value: disabled,
|
|
121
|
+
children: t9
|
|
122
|
+
});
|
|
123
|
+
$[19] = disabled;
|
|
124
|
+
$[20] = t9;
|
|
125
|
+
$[21] = t10;
|
|
126
|
+
} else t10 = $[21];
|
|
127
|
+
let t11;
|
|
128
|
+
if ($[22] !== disabled || $[23] !== t10) {
|
|
129
|
+
t11 = /* @__PURE__ */ jsx("fieldset", {
|
|
130
|
+
ref: content,
|
|
131
|
+
disabled,
|
|
132
|
+
inert: disabled,
|
|
133
|
+
className: form_module_default.fieldset,
|
|
134
|
+
children: t10
|
|
135
|
+
});
|
|
136
|
+
$[22] = disabled;
|
|
137
|
+
$[23] = t10;
|
|
138
|
+
$[24] = t11;
|
|
139
|
+
} else t11 = $[24];
|
|
140
|
+
let t12;
|
|
141
|
+
if ($[25] === Symbol.for("react.memo_cache_sentinel")) {
|
|
142
|
+
t12 = /* @__PURE__ */ jsx("span", {
|
|
143
|
+
ref: setStatus,
|
|
144
|
+
role: "status",
|
|
145
|
+
className: form_module_default.status
|
|
146
|
+
});
|
|
147
|
+
$[25] = t12;
|
|
148
|
+
} else t12 = $[25];
|
|
149
|
+
let t13;
|
|
150
|
+
if ($[26] !== props || $[27] !== t11 || $[28] !== t6 || $[29] !== t7) {
|
|
151
|
+
t13 = /* @__PURE__ */ jsxs("form", {
|
|
152
|
+
noValidate: true,
|
|
153
|
+
"aria-busy": t6,
|
|
154
|
+
...props,
|
|
155
|
+
onSubmit: t7,
|
|
156
|
+
children: [t11, t12]
|
|
157
|
+
});
|
|
158
|
+
$[26] = props;
|
|
159
|
+
$[27] = t11;
|
|
160
|
+
$[28] = t6;
|
|
161
|
+
$[29] = t7;
|
|
162
|
+
$[30] = t13;
|
|
163
|
+
} else t13 = $[30];
|
|
164
|
+
let t14;
|
|
165
|
+
if ($[31] !== form || $[32] !== t13) {
|
|
166
|
+
t14 = /* @__PURE__ */ jsx(formContext.Provider, {
|
|
167
|
+
value: form,
|
|
168
|
+
children: t13
|
|
169
|
+
});
|
|
170
|
+
$[31] = form;
|
|
171
|
+
$[32] = t13;
|
|
172
|
+
$[33] = t14;
|
|
173
|
+
} else t14 = $[33];
|
|
174
|
+
return t14;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* The errors that belong to the form rather than to one of its fields, such
|
|
178
|
+
* as a refusal `onSubmitAsync` returns. Renders nothing when there are none.
|
|
179
|
+
*
|
|
180
|
+
* @example
|
|
181
|
+
* <Form.Errors />
|
|
182
|
+
*/
|
|
183
|
+
var FormErrors = (t0) => {
|
|
184
|
+
const $ = c(5);
|
|
185
|
+
const { className } = t0;
|
|
186
|
+
const form = useFormContext();
|
|
187
|
+
const errors = useStore(form.store, _temp4);
|
|
188
|
+
let t1;
|
|
189
|
+
if ($[0] !== errors) {
|
|
190
|
+
t1 = normalizeFieldErrors(errors);
|
|
191
|
+
$[0] = errors;
|
|
192
|
+
$[1] = t1;
|
|
193
|
+
} else t1 = $[1];
|
|
194
|
+
let t2;
|
|
195
|
+
if ($[2] !== className || $[3] !== t1) {
|
|
196
|
+
t2 = /* @__PURE__ */ jsx(ErrorText, {
|
|
197
|
+
role: "alert",
|
|
198
|
+
className,
|
|
199
|
+
children: t1
|
|
200
|
+
});
|
|
201
|
+
$[2] = className;
|
|
202
|
+
$[3] = t1;
|
|
203
|
+
$[4] = t2;
|
|
204
|
+
} else t2 = $[4];
|
|
205
|
+
return t2;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* The form's submit button. A wait that lasts 150 ms shows a spinner and is
|
|
209
|
+
* announced as `busyLabel`, and stays shown at least 200 ms.
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* <Form.Submit busyLabel="Saving">Save</Form.Submit>
|
|
213
|
+
*/
|
|
214
|
+
var FormSubmit = (t0) => {
|
|
215
|
+
const $ = c(24);
|
|
216
|
+
let busyLabel;
|
|
217
|
+
let children;
|
|
218
|
+
let icon;
|
|
219
|
+
let props;
|
|
220
|
+
let t1;
|
|
221
|
+
if ($[0] !== t0) {
|
|
222
|
+
({busyLabel, variant: t1, icon, children, ...props} = t0);
|
|
223
|
+
$[0] = t0;
|
|
224
|
+
$[1] = busyLabel;
|
|
225
|
+
$[2] = children;
|
|
226
|
+
$[3] = icon;
|
|
227
|
+
$[4] = props;
|
|
228
|
+
$[5] = t1;
|
|
229
|
+
} else {
|
|
230
|
+
busyLabel = $[1];
|
|
231
|
+
children = $[2];
|
|
232
|
+
icon = $[3];
|
|
233
|
+
props = $[4];
|
|
234
|
+
t1 = $[5];
|
|
235
|
+
}
|
|
236
|
+
const variant = t1 === void 0 ? "primary" : t1;
|
|
237
|
+
const busy = useFormDisabled();
|
|
238
|
+
const status = useFormStatus();
|
|
239
|
+
let t2;
|
|
240
|
+
if ($[6] !== busy) {
|
|
241
|
+
t2 = { busy };
|
|
242
|
+
$[6] = busy;
|
|
243
|
+
$[7] = t2;
|
|
244
|
+
} else t2 = $[7];
|
|
245
|
+
const shown = useBusyPhase(t2) !== "fresh";
|
|
246
|
+
const t3 = shown ? void 0 : icon;
|
|
247
|
+
const t4 = shown || void 0;
|
|
248
|
+
let t5;
|
|
249
|
+
if ($[8] !== shown) {
|
|
250
|
+
t5 = shown ? /* @__PURE__ */ jsx(Spinner, { size: 1 }) : null;
|
|
251
|
+
$[8] = shown;
|
|
252
|
+
$[9] = t5;
|
|
253
|
+
} else t5 = $[9];
|
|
254
|
+
let t6;
|
|
255
|
+
if ($[10] !== children || $[11] !== props || $[12] !== t3 || $[13] !== t4 || $[14] !== t5 || $[15] !== variant) {
|
|
256
|
+
t6 = /* @__PURE__ */ jsxs(Button, {
|
|
257
|
+
...props,
|
|
258
|
+
type: "submit",
|
|
259
|
+
variant,
|
|
260
|
+
icon: t3,
|
|
261
|
+
"aria-busy": t4,
|
|
262
|
+
children: [t5, children]
|
|
263
|
+
});
|
|
264
|
+
$[10] = children;
|
|
265
|
+
$[11] = props;
|
|
266
|
+
$[12] = t3;
|
|
267
|
+
$[13] = t4;
|
|
268
|
+
$[14] = t5;
|
|
269
|
+
$[15] = variant;
|
|
270
|
+
$[16] = t6;
|
|
271
|
+
} else t6 = $[16];
|
|
272
|
+
let t7;
|
|
273
|
+
if ($[17] !== busyLabel || $[18] !== shown || $[19] !== status) {
|
|
274
|
+
t7 = shown && status !== null ? createPortal(busyLabel, status) : null;
|
|
275
|
+
$[17] = busyLabel;
|
|
276
|
+
$[18] = shown;
|
|
277
|
+
$[19] = status;
|
|
278
|
+
$[20] = t7;
|
|
279
|
+
} else t7 = $[20];
|
|
280
|
+
let t8;
|
|
281
|
+
if ($[21] !== t6 || $[22] !== t7) {
|
|
282
|
+
t8 = /* @__PURE__ */ jsxs(Fragment$1, { children: [t6, t7] });
|
|
283
|
+
$[21] = t6;
|
|
284
|
+
$[22] = t7;
|
|
285
|
+
$[23] = t8;
|
|
286
|
+
} else t8 = $[23];
|
|
287
|
+
return t8;
|
|
288
|
+
};
|
|
289
|
+
/**
|
|
290
|
+
* A form over a TanStack Form instance: `Root` is the `<form>`, `Errors` its
|
|
291
|
+
* form-level errors and `Submit` its submit button.
|
|
292
|
+
*
|
|
293
|
+
* @example
|
|
294
|
+
* <Form.Root form={form}>
|
|
295
|
+
* <form.AppField name="email">{field => <field.EmailField label="Email" optionalLabel="optional" />}</form.AppField>
|
|
296
|
+
* <Form.Errors />
|
|
297
|
+
* <Form.Submit busyLabel="Signing in">Sign in</Form.Submit>
|
|
298
|
+
* </Form.Root>
|
|
299
|
+
*/
|
|
300
|
+
var Form = {
|
|
301
|
+
Root: FormRoot,
|
|
302
|
+
Errors: FormErrors,
|
|
303
|
+
Submit: FormSubmit
|
|
304
|
+
};
|
|
305
|
+
function _temp(state) {
|
|
306
|
+
return state.isSubmitting;
|
|
307
|
+
}
|
|
308
|
+
function _temp2() {
|
|
309
|
+
return createErrorCascade();
|
|
310
|
+
}
|
|
311
|
+
function _temp3(count) {
|
|
312
|
+
return count + 1;
|
|
313
|
+
}
|
|
314
|
+
function _temp4(state) {
|
|
315
|
+
return state.errors;
|
|
316
|
+
}
|
|
317
|
+
export { Form };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { FunctionComponent, ReactNode, SVGProps } from "react";
|
|
2
|
+
/**
|
|
3
|
+
* The component type produced by SVGR's `?react` imports
|
|
4
|
+
* (e.g. `import Close from "@material-design-icons/svg/outlined/close.svg?react"`).
|
|
5
|
+
*/
|
|
6
|
+
export type SvgComponent = FunctionComponent<SVGProps<SVGSVGElement>>;
|
|
7
|
+
export type IconProps = Readonly<{
|
|
8
|
+
/** The SVG component to render, from a SVGR `?react` import. */
|
|
9
|
+
svg: SvgComponent;
|
|
10
|
+
/**
|
|
11
|
+
* Size relative to the current font size (in `em`). Defaults to `1`
|
|
12
|
+
* so the icon matches the surrounding text.
|
|
13
|
+
*/
|
|
14
|
+
size?: number;
|
|
15
|
+
/**
|
|
16
|
+
* Human-readable label for assistive tech. An empty string (`""`) hides the
|
|
17
|
+
* icon from the accessibility tree, for a decorative or already-labelled one.
|
|
18
|
+
*/
|
|
19
|
+
label: string;
|
|
20
|
+
className?: string;
|
|
21
|
+
}>;
|
|
22
|
+
/**
|
|
23
|
+
* Renders an SVG icon with a consistent size and accessibility treatment.
|
|
24
|
+
* Decorative icons (`label=""`) are hidden from assistive tech; labelled icons
|
|
25
|
+
* expose `role="img"` with an accessible name.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* import Close from "@material-design-icons/svg/outlined/close.svg?react";
|
|
29
|
+
* <Icon svg={Close} label="Close" />
|
|
30
|
+
*/
|
|
31
|
+
export declare const Icon: ({ svg: Svg, size, label, className, }: IconProps) => ReactNode;
|
|
32
|
+
//# sourceMappingURL=icon.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/icon/icon.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,iBAAiB,EACjB,SAAS,EACT,QAAQ,EACR,MAAM,OAAO,CAAC;AAGf;;;GAGG;AACH,MAAM,MAAM,YAAY,GAAG,iBAAiB,CAC3C,QAAQ,CAAC,aAAa,CAAC,CACvB,CAAC;AAEF,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC;IAChC,gEAAgE;IAChE,GAAG,EAAE,YAAY,CAAC;IAElB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC,CAAC;AAEH;;;;;;;;GAQG;AACH,eAAO,MAAM,IAAI,0CAKd,SAAS,KAAG,SAYd,CAAC"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import icon_module_default from "./icon.module.js";
|
|
2
|
+
import { c } from "react/compiler-runtime";
|
|
3
|
+
import { jsx } from "react/jsx-runtime";
|
|
4
|
+
import { clsx } from "clsx";
|
|
5
|
+
// src/components/icon/icon.tsx
|
|
6
|
+
/**
|
|
7
|
+
* Renders an SVG icon with a consistent size and accessibility treatment.
|
|
8
|
+
* Decorative icons (`label=""`) are hidden from assistive tech; labelled icons
|
|
9
|
+
* expose `role="img"` with an accessible name.
|
|
10
|
+
*
|
|
11
|
+
* @example
|
|
12
|
+
* import Close from "@material-design-icons/svg/outlined/close.svg?react";
|
|
13
|
+
* <Icon svg={Close} label="Close" />
|
|
14
|
+
*/
|
|
15
|
+
var Icon = (t0) => {
|
|
16
|
+
const $ = c(12);
|
|
17
|
+
const { svg: Svg, size: t1, label, className } = t0;
|
|
18
|
+
const size = t1 === void 0 ? 1 : t1;
|
|
19
|
+
const decorative = label === "";
|
|
20
|
+
let t2;
|
|
21
|
+
if ($[0] !== className) {
|
|
22
|
+
t2 = clsx(icon_module_default.icon, className);
|
|
23
|
+
$[0] = className;
|
|
24
|
+
$[1] = t2;
|
|
25
|
+
} else t2 = $[1];
|
|
26
|
+
const t3 = `${size}em`;
|
|
27
|
+
const t4 = `${size}em`;
|
|
28
|
+
let t5;
|
|
29
|
+
if ($[2] !== t3 || $[3] !== t4) {
|
|
30
|
+
t5 = {
|
|
31
|
+
width: t3,
|
|
32
|
+
height: t4
|
|
33
|
+
};
|
|
34
|
+
$[2] = t3;
|
|
35
|
+
$[3] = t4;
|
|
36
|
+
$[4] = t5;
|
|
37
|
+
} else t5 = $[4];
|
|
38
|
+
const t6 = decorative || void 0;
|
|
39
|
+
const t7 = decorative ? void 0 : "img";
|
|
40
|
+
const t8 = decorative ? void 0 : label;
|
|
41
|
+
let t9;
|
|
42
|
+
if ($[5] !== Svg || $[6] !== t2 || $[7] !== t5 || $[8] !== t6 || $[9] !== t7 || $[10] !== t8) {
|
|
43
|
+
t9 = /* @__PURE__ */ jsx(Svg, {
|
|
44
|
+
className: t2,
|
|
45
|
+
style: t5,
|
|
46
|
+
focusable: "false",
|
|
47
|
+
"aria-hidden": t6,
|
|
48
|
+
role: t7,
|
|
49
|
+
"aria-label": t8
|
|
50
|
+
});
|
|
51
|
+
$[5] = Svg;
|
|
52
|
+
$[6] = t2;
|
|
53
|
+
$[7] = t5;
|
|
54
|
+
$[8] = t6;
|
|
55
|
+
$[9] = t7;
|
|
56
|
+
$[10] = t8;
|
|
57
|
+
$[11] = t9;
|
|
58
|
+
} else t9 = $[11];
|
|
59
|
+
return t9;
|
|
60
|
+
};
|
|
61
|
+
export { Icon };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Icon } from "./icon.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/link/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Link } from "./link.js";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@layer kit.reset, kit.base, kit.components;
|
|
2
|
+
@layer kit.components {
|
|
3
|
+
._link_xyp6s_3 {
|
|
4
|
+
color: var(--link-fg, var(--sys-color-primary));
|
|
5
|
+
text-decoration: underline;
|
|
6
|
+
text-underline-offset: var(--link-underline-offset, var(--sys-unit-1));
|
|
7
|
+
}
|
|
8
|
+
._link_xyp6s_3 {
|
|
9
|
+
outline: 0 solid var(--sys-color-focus-ring);
|
|
10
|
+
outline-offset: var(--sys-focus-ring-offset);
|
|
11
|
+
}
|
|
12
|
+
._link_xyp6s_3:focus-visible {
|
|
13
|
+
outline-width: var(--sys-focus-ring-width);
|
|
14
|
+
}
|
|
15
|
+
._link_xyp6s_3:hover {
|
|
16
|
+
color: var(--link-hover-fg, var(--sys-color-on-primary-container));
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef, ReactNode } from "react";
|
|
2
|
+
export type LinkProps = ComponentPropsWithRef<"a">;
|
|
3
|
+
/**
|
|
4
|
+
* The one text link: brand-coloured and underlined. It spreads every prop onto
|
|
5
|
+
* the `<a>` and forwards its ref, so a router's `createLink` can wrap it.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* const RouterLink = createLink(Link);
|
|
9
|
+
* <RouterLink to="/register">Create an account</RouterLink>
|
|
10
|
+
*/
|
|
11
|
+
export declare const Link: ({ className, ...anchorProps }: LinkProps) => ReactNode;
|
|
12
|
+
//# sourceMappingURL=link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/link/link.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,qBAAqB,EACrB,SAAS,EACT,MAAM,OAAO,CAAC;AAGf,MAAM,MAAM,SAAS,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC;AAEnD;;;;;;;GAOG;AACH,eAAO,MAAM,IAAI,kCAGd,SAAS,KAAG,SAKd,CAAC"}
|