@powerhousedao/design-system 2.5.0-dev.4 → 2.5.0-dev.41
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/dist/src/assets/home-bg.avif +0 -0
- package/dist/src/connect/components/account-popover/account-popover-login.d.ts +1 -1
- package/dist/src/connect/components/account-popover/account-popover-login.d.ts.map +1 -1
- package/dist/src/connect/components/account-popover/account-popover-login.js +7 -3
- package/dist/src/connect/components/account-popover/account-popover-login.js.map +1 -1
- package/dist/src/connect/components/account-popover/account-popover-user.d.ts +1 -1
- package/dist/src/connect/components/account-popover/account-popover-user.d.ts.map +1 -1
- package/dist/src/connect/components/account-popover/account-popover-user.js +4 -1
- package/dist/src/connect/components/account-popover/account-popover-user.js.map +1 -1
- package/dist/src/connect/components/account-popover/account-popover.d.ts.map +1 -1
- package/dist/src/connect/components/account-popover/account-popover.js +2 -2
- package/dist/src/connect/components/account-popover/account-popover.js.map +1 -1
- package/dist/src/connect/components/cookie-banner/cookie-banner.d.ts.map +1 -1
- package/dist/src/connect/components/cookie-banner/cookie-banner.js +1 -1
- package/dist/src/connect/components/cookie-banner/cookie-banner.js.map +1 -1
- package/dist/src/connect/components/home-screen/home-background-image.d.ts +2 -0
- package/dist/src/connect/components/home-screen/home-background-image.d.ts.map +1 -0
- package/dist/src/connect/components/home-screen/home-background-image.js +7 -0
- package/dist/src/connect/components/home-screen/home-background-image.js.map +1 -0
- package/dist/src/connect/components/home-screen/home-screen.d.ts.map +1 -1
- package/dist/src/connect/components/home-screen/home-screen.js +2 -2
- package/dist/src/connect/components/home-screen/home-screen.js.map +1 -1
- package/dist/src/connect/components/home-screen/index.d.ts +2 -1
- package/dist/src/connect/components/home-screen/index.d.ts.map +1 -1
- package/dist/src/connect/components/home-screen/index.js +2 -1
- package/dist/src/connect/components/home-screen/index.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.js +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/danger-zone.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.d.ts +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.d.ts.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.js +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/default-editor.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.d.ts.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.js +1 -2
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-input.js.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.d.ts +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.d.ts.map +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.js +1 -1
- package/dist/src/connect/components/modal/settings-modal-v2/package-manager/package-manager-select.js.map +1 -1
- package/dist/src/connect/components/search-bar/search-bar.js +1 -1
- package/dist/src/connect/components/search-bar/search-bar.js.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-footer.d.ts +3 -3
- package/dist/src/connect/components/sidebar/sidebar-footer.d.ts.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-footer.js +1 -1
- package/dist/src/connect/components/sidebar/sidebar-footer.js.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-header.d.ts.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-header.js +1 -1
- package/dist/src/connect/components/sidebar/sidebar-header.js.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-login.d.ts +1 -1
- package/dist/src/connect/components/sidebar/sidebar-login.d.ts.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-login.js +2 -1
- package/dist/src/connect/components/sidebar/sidebar-login.js.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar-user.d.ts +1 -1
- package/dist/src/connect/components/sidebar/sidebar-user.d.ts.map +1 -1
- package/dist/src/connect/components/sidebar/sidebar.d.ts +2 -2
- package/dist/src/connect/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/src/connect/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/src/connect/components/tooltip/tooltip.js +2 -2
- package/dist/src/connect/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/powerhouse/components/icon/icon.d.ts +1 -1
- package/dist/src/powerhouse/components/icon/icon.d.ts.map +1 -1
- package/dist/src/powerhouse/components/icon/icon.js +2 -2
- package/dist/src/powerhouse/components/icon/icon.js.map +1 -1
- package/dist/src/powerhouse/utils/index.d.ts +2 -0
- package/dist/src/powerhouse/utils/index.d.ts.map +1 -1
- package/dist/src/powerhouse/utils/index.js +5 -0
- package/dist/src/powerhouse/utils/index.js.map +1 -1
- package/dist/src/ui/components/amount-input/types.d.ts +52 -0
- package/dist/src/ui/components/amount-input/types.d.ts.map +1 -0
- package/dist/src/ui/components/amount-input/types.js.map +1 -0
- package/dist/src/ui/components/button/button.d.ts.map +1 -0
- package/dist/src/ui/components/button/button.js +23 -0
- package/dist/src/ui/components/button/button.js.map +1 -0
- package/dist/src/ui/components/button/index.d.ts.map +1 -0
- package/dist/src/ui/components/button/index.js.map +1 -0
- package/dist/src/ui/components/character-counter/character-counter.d.ts.map +1 -0
- package/dist/src/ui/components/character-counter/character-counter.js.map +1 -0
- package/dist/src/ui/components/character-counter/index.d.ts.map +1 -0
- package/dist/src/ui/components/character-counter/index.js.map +1 -0
- package/dist/src/ui/components/checkbox/checkbox-base.d.ts.map +1 -0
- package/dist/src/ui/components/checkbox/checkbox-base.js +29 -0
- package/dist/src/ui/components/checkbox/checkbox-base.js.map +1 -0
- package/dist/src/ui/components/checkbox/checkbox.d.ts +10 -0
- package/dist/src/ui/components/checkbox/checkbox.d.ts.map +1 -0
- package/dist/src/ui/components/checkbox/checkbox.js +22 -0
- package/dist/src/ui/components/checkbox/checkbox.js.map +1 -0
- package/dist/src/ui/components/checkbox/index.d.ts.map +1 -0
- package/dist/src/ui/components/checkbox/index.js.map +1 -0
- package/dist/src/ui/components/command/command.d.ts +80 -0
- package/dist/src/ui/components/command/command.d.ts.map +1 -0
- package/dist/src/ui/components/command/command.js +20 -0
- package/dist/src/ui/components/command/command.js.map +1 -0
- package/dist/src/ui/components/command/index.d.ts.map +1 -0
- package/dist/src/ui/components/command/index.js.map +1 -0
- package/dist/src/ui/components/date-picker/index.d.ts +2 -0
- package/dist/src/ui/components/date-picker/index.d.ts.map +1 -0
- package/dist/src/ui/components/date-picker/index.js +2 -0
- package/dist/src/ui/components/date-picker/index.js.map +1 -0
- package/dist/src/ui/components/date-picker/types.d.ts.map +1 -0
- package/dist/src/ui/components/date-picker/types.js.map +1 -0
- package/dist/src/ui/components/date-picker/utils.d.ts +7 -0
- package/dist/src/ui/components/date-picker/utils.d.ts.map +1 -0
- package/dist/src/ui/components/date-picker/utils.js +29 -0
- package/dist/src/ui/components/date-picker/utils.js.map +1 -0
- package/dist/src/ui/components/date-time-picker/index.d.ts +2 -0
- package/dist/src/ui/components/date-time-picker/index.d.ts.map +1 -0
- package/dist/src/ui/components/date-time-picker/index.js +2 -0
- package/dist/src/ui/components/date-time-picker/index.js.map +1 -0
- package/dist/src/ui/components/date-time-picker/utils.d.ts +31 -0
- package/dist/src/ui/components/date-time-picker/utils.d.ts.map +1 -0
- package/dist/src/ui/components/date-time-picker/utils.js +99 -0
- package/dist/src/ui/components/date-time-picker/utils.js.map +1 -0
- package/dist/src/ui/components/enum-field/enum-field.d.ts +12 -0
- package/dist/src/ui/components/enum-field/enum-field.d.ts.map +1 -0
- package/dist/src/ui/components/enum-field/enum-field.js +18 -0
- package/dist/src/ui/components/enum-field/enum-field.js.map +1 -0
- package/dist/src/ui/components/enum-field/index.d.ts.map +1 -0
- package/dist/src/ui/components/enum-field/index.js.map +1 -0
- package/dist/src/ui/components/enum-field/types.d.ts.map +1 -0
- package/dist/src/ui/components/enum-field/types.js.map +1 -0
- package/dist/src/ui/components/form/form.d.ts.map +1 -0
- package/dist/src/ui/components/form/form.js +138 -0
- package/dist/src/ui/components/form/form.js.map +1 -0
- package/dist/src/ui/components/form/index.d.ts.map +1 -0
- package/dist/src/ui/components/form/index.js.map +1 -0
- package/dist/src/ui/components/form/utils.d.ts.map +1 -0
- package/dist/src/ui/components/form/utils.js.map +1 -0
- package/dist/src/ui/components/form-description/form-description.d.ts.map +1 -0
- package/dist/src/ui/components/form-description/form-description.js +8 -0
- package/dist/src/ui/components/form-description/form-description.js.map +1 -0
- package/dist/src/ui/components/form-description/index.d.ts.map +1 -0
- package/dist/src/ui/components/form-description/index.js.map +1 -0
- package/dist/src/ui/components/form-group/form-group.d.ts.map +1 -0
- package/dist/src/ui/components/form-group/form-group.js.map +1 -0
- package/dist/src/ui/components/form-group/index.d.ts.map +1 -0
- package/dist/src/ui/components/form-group/index.js.map +1 -0
- package/dist/src/ui/components/form-label/form-label.d.ts.map +1 -0
- package/dist/src/ui/components/form-label/form-label.js +19 -0
- package/dist/src/ui/components/form-label/form-label.js.map +1 -0
- package/dist/src/ui/components/form-label/index.d.ts.map +1 -0
- package/dist/src/ui/components/form-label/index.js.map +1 -0
- package/dist/src/ui/components/form-message/form-message.d.ts.map +1 -0
- package/dist/src/ui/components/form-message/form-message.js +15 -0
- package/dist/src/ui/components/form-message/form-message.js.map +1 -0
- package/dist/src/ui/components/form-message/form-server-error-message.d.ts.map +1 -0
- package/dist/src/ui/components/form-message/form-server-error-message.js.map +1 -0
- package/dist/src/ui/components/form-message/index.d.ts.map +1 -0
- package/dist/src/ui/components/form-message/index.js.map +1 -0
- package/dist/src/ui/components/form-message/message-list.d.ts.map +1 -0
- package/dist/src/ui/components/form-message/message-list.js +22 -0
- package/dist/src/ui/components/form-message/message-list.js.map +1 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-context.d.ts.map +1 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-context.js.map +1 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-input-container.d.ts.map +1 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-input-container.js +71 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-input-container.js.map +1 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list-option.d.ts.map +1 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list-option.js +47 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list-option.js.map +1 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list.d.ts.map +1 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list.js +31 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete-list.js.map +1 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete.d.ts.map +1 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete.js +88 -0
- package/dist/src/ui/components/id-autocomplete/id-autocomplete.js.map +1 -0
- package/dist/src/ui/components/id-autocomplete/index.d.ts.map +1 -0
- package/dist/src/ui/components/id-autocomplete/index.js.map +1 -0
- package/dist/src/ui/components/id-autocomplete/types.d.ts.map +1 -0
- package/dist/src/ui/components/id-autocomplete/types.js.map +1 -0
- package/dist/src/ui/components/id-autocomplete/use-id-autocomplete.d.ts.map +1 -0
- package/dist/src/ui/components/id-autocomplete/use-id-autocomplete.js.map +1 -0
- package/dist/src/ui/components/index.d.ts +13 -14
- package/dist/src/ui/components/index.d.ts.map +1 -1
- package/dist/src/ui/components/index.js +13 -20
- package/dist/src/ui/components/index.js.map +1 -1
- package/dist/src/ui/components/input/index.d.ts.map +1 -0
- package/dist/src/ui/components/input/index.js.map +1 -0
- package/dist/src/ui/components/input/input.d.ts.map +1 -0
- package/dist/src/ui/components/input/input.js +22 -0
- package/dist/src/ui/components/input/input.js.map +1 -0
- package/dist/src/ui/components/input/splitted-input-diff.d.ts +8 -0
- package/dist/src/ui/components/input/splitted-input-diff.d.ts.map +1 -0
- package/dist/src/ui/components/input/splitted-input-diff.js +35 -0
- package/dist/src/ui/components/input/splitted-input-diff.js.map +1 -0
- package/dist/src/ui/components/input/subcomponent/input-diff.d.ts.map +1 -0
- package/dist/src/ui/components/input/subcomponent/input-diff.js +8 -0
- package/dist/src/ui/components/input/subcomponent/input-diff.js.map +1 -0
- package/dist/src/ui/components/input/subcomponent/text-diff.d.ts +9 -0
- package/dist/src/ui/components/input/subcomponent/text-diff.d.ts.map +1 -0
- package/dist/src/ui/components/input/subcomponent/text-diff.js +27 -0
- package/dist/src/ui/components/input/subcomponent/text-diff.js.map +1 -0
- package/dist/src/ui/components/popover/index.d.ts.map +1 -0
- package/dist/src/ui/components/popover/index.js.map +1 -0
- package/dist/src/ui/components/popover/popover.d.ts.map +1 -0
- package/dist/src/ui/components/popover/popover.js +17 -0
- package/dist/src/ui/components/popover/popover.js.map +1 -0
- package/dist/src/ui/components/radio-group-field/index.d.ts.map +1 -0
- package/dist/src/ui/components/radio-group-field/index.js.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio-group-field.d.ts +12 -0
- package/dist/src/ui/components/radio-group-field/radio-group-field.d.ts.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio-group-field.js +20 -0
- package/dist/src/ui/components/radio-group-field/radio-group-field.js.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio-group.d.ts.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio-group.js.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio.d.ts.map +1 -0
- package/dist/src/ui/components/radio-group-field/radio.js +24 -0
- package/dist/src/ui/components/radio-group-field/radio.js.map +1 -0
- package/dist/src/ui/components/select-field/content.d.ts +17 -0
- package/dist/src/ui/components/select-field/content.d.ts.map +1 -0
- package/dist/src/ui/components/select-field/content.js +34 -0
- package/dist/src/ui/components/select-field/content.js.map +1 -0
- package/dist/src/ui/components/select-field/index.d.ts.map +1 -0
- package/dist/src/ui/components/select-field/index.js.map +1 -0
- package/dist/src/ui/components/select-field/select-field.d.ts +18 -0
- package/dist/src/ui/components/select-field/select-field.d.ts.map +1 -0
- package/dist/src/ui/components/select-field/select-field.js +66 -0
- package/dist/src/ui/components/select-field/select-field.js.map +1 -0
- package/dist/src/ui/components/select-field/selected-content.d.ts +13 -0
- package/dist/src/ui/components/select-field/selected-content.d.ts.map +1 -0
- package/dist/src/ui/components/select-field/selected-content.js +26 -0
- package/dist/src/ui/components/select-field/selected-content.js.map +1 -0
- package/dist/src/ui/components/select-field/subcomponents/CommandItemList.d.ts +15 -0
- package/dist/src/ui/components/select-field/subcomponents/CommandItemList.d.ts.map +1 -0
- package/dist/src/ui/components/select-field/subcomponents/CommandItemList.js +24 -0
- package/dist/src/ui/components/select-field/subcomponents/CommandItemList.js.map +1 -0
- package/dist/src/ui/components/select-field/use-select-field.d.ts +19 -0
- package/dist/src/ui/components/select-field/use-select-field.d.ts.map +1 -0
- package/dist/src/ui/components/select-field/use-select-field.js.map +1 -0
- package/dist/src/ui/components/text-field/index.d.ts.map +1 -0
- package/dist/src/ui/components/text-field/index.js.map +1 -0
- package/dist/src/ui/components/text-field/text-field.d.ts +5 -0
- package/dist/src/ui/components/text-field/text-field.d.ts.map +1 -0
- package/dist/src/ui/components/text-field/text-field.js +5 -0
- package/dist/src/ui/components/text-field/text-field.js.map +1 -0
- package/dist/src/ui/components/text-input/index.d.ts.map +1 -0
- package/dist/src/ui/components/text-input/index.js.map +1 -0
- package/dist/src/ui/components/text-input/text-input-diff.d.ts +9 -0
- package/dist/src/ui/components/text-input/text-input-diff.d.ts.map +1 -0
- package/dist/src/ui/components/text-input/text-input-diff.js +9 -0
- package/dist/src/ui/components/text-input/text-input-diff.js.map +1 -0
- package/dist/src/ui/components/text-input/text-input.d.ts +10 -0
- package/dist/src/ui/components/text-input/text-input.d.ts.map +1 -0
- package/dist/src/ui/components/text-input/text-input.js +38 -0
- package/dist/src/ui/components/text-input/text-input.js.map +1 -0
- package/dist/src/ui/components/text-input/types.d.ts.map +1 -0
- package/dist/src/ui/components/text-input/types.js.map +1 -0
- package/dist/src/ui/components/tooltip/tooltip.d.ts +1 -1
- package/dist/src/ui/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/src/ui/components/tooltip/tooltip.js +2 -2
- package/dist/src/ui/components/tooltip/tooltip.js.map +1 -1
- package/dist/src/ui/components/value-transformer/index.d.ts.map +1 -0
- package/dist/src/ui/components/value-transformer/index.js.map +1 -0
- package/dist/src/ui/components/value-transformer/value-transformer.d.ts.map +1 -0
- package/dist/src/ui/components/value-transformer/value-transformer.js +142 -0
- package/dist/src/ui/components/value-transformer/value-transformer.js.map +1 -0
- package/dist/src/ui/components/with-field-validation/index.d.ts.map +1 -0
- package/dist/src/ui/components/with-field-validation/index.js.map +1 -0
- package/dist/src/ui/components/with-field-validation/with-field-validation.d.ts.map +1 -0
- package/dist/src/ui/components/with-field-validation/with-field-validation.js.map +1 -0
- package/dist/src/ui/index.d.ts +1 -0
- package/dist/src/ui/index.d.ts.map +1 -1
- package/dist/src/ui/index.js +1 -0
- package/dist/src/ui/index.js.map +1 -1
- package/dist/src/ui/lib/cn.d.ts +3 -0
- package/dist/src/ui/lib/cn.d.ts.map +1 -0
- package/dist/src/ui/lib/cn.js +6 -0
- package/dist/src/ui/lib/cn.js.map +1 -0
- package/dist/src/ui/lib/decorators.d.ts.map +1 -0
- package/dist/src/ui/lib/decorators.js +96 -0
- package/dist/src/ui/lib/decorators.js.map +1 -0
- package/dist/src/ui/lib/deep-equal.d.ts.map +1 -0
- package/dist/src/ui/lib/deep-equal.js.map +1 -0
- package/dist/src/ui/lib/index.d.ts +9 -0
- package/dist/src/ui/lib/index.d.ts.map +1 -0
- package/dist/src/ui/lib/index.js +9 -0
- package/dist/src/ui/lib/index.js.map +1 -0
- package/dist/src/ui/lib/is-empty.d.ts.map +1 -0
- package/dist/src/ui/lib/is-empty.js.map +1 -0
- package/dist/src/ui/lib/shared-value-transformers.d.ts +3 -0
- package/dist/src/ui/lib/shared-value-transformers.d.ts.map +1 -0
- package/dist/src/ui/lib/shared-value-transformers.js.map +1 -0
- package/dist/src/ui/lib/storybook-arg-types.d.ts.map +1 -0
- package/dist/src/ui/lib/storybook-arg-types.js.map +1 -0
- package/dist/src/ui/lib/testing.d.ts.map +1 -0
- package/dist/src/ui/lib/testing.js.map +1 -0
- package/dist/src/ui/lib/value-cast.d.ts.map +1 -0
- package/dist/src/ui/lib/value-cast.js +57 -0
- package/dist/src/ui/lib/value-cast.js.map +1 -0
- package/dist/src/ui/types.d.ts.map +1 -0
- package/dist/src/ui/types.js.map +1 -0
- package/dist/style.css +6 -992
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -9
- package/dist/src/scalars/EthereumAddress/EthereumAddress.d.ts +0 -5
- package/dist/src/scalars/EthereumAddress/EthereumAddress.d.ts.map +0 -1
- package/dist/src/scalars/EthereumAddress/EthereumAddress.js +0 -14
- package/dist/src/scalars/EthereumAddress/EthereumAddress.js.map +0 -1
- package/dist/src/scalars/EthereumAddress/index.d.ts +0 -2
- package/dist/src/scalars/EthereumAddress/index.d.ts.map +0 -1
- package/dist/src/scalars/EthereumAddress/index.js +0 -2
- package/dist/src/scalars/EthereumAddress/index.js.map +0 -1
- package/dist/src/scalars/components/aid-field/aid-field.d.ts +0 -4
- package/dist/src/scalars/components/aid-field/aid-field.d.ts.map +0 -1
- package/dist/src/scalars/components/aid-field/aid-field.js +0 -49
- package/dist/src/scalars/components/aid-field/aid-field.js.map +0 -1
- package/dist/src/scalars/components/aid-field/index.d.ts +0 -3
- package/dist/src/scalars/components/aid-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/aid-field/index.js +0 -2
- package/dist/src/scalars/components/aid-field/index.js.map +0 -1
- package/dist/src/scalars/components/aid-field/types.d.ts +0 -5
- package/dist/src/scalars/components/aid-field/types.d.ts.map +0 -1
- package/dist/src/scalars/components/aid-field/types.js.map +0 -1
- package/dist/src/scalars/components/amount-field/amount-currency-validations.d.ts +0 -3
- package/dist/src/scalars/components/amount-field/amount-currency-validations.d.ts.map +0 -1
- package/dist/src/scalars/components/amount-field/amount-currency-validations.js +0 -13
- package/dist/src/scalars/components/amount-field/amount-currency-validations.js.map +0 -1
- package/dist/src/scalars/components/amount-field/amount-field-validations.d.ts +0 -4
- package/dist/src/scalars/components/amount-field/amount-field-validations.d.ts.map +0 -1
- package/dist/src/scalars/components/amount-field/amount-field-validations.js +0 -77
- package/dist/src/scalars/components/amount-field/amount-field-validations.js.map +0 -1
- package/dist/src/scalars/components/amount-field/amount-field.d.ts +0 -6
- package/dist/src/scalars/components/amount-field/amount-field.d.ts.map +0 -1
- package/dist/src/scalars/components/amount-field/amount-field.js +0 -13
- package/dist/src/scalars/components/amount-field/amount-field.js.map +0 -1
- package/dist/src/scalars/components/amount-field/index.d.ts +0 -2
- package/dist/src/scalars/components/amount-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/amount-field/index.js +0 -2
- package/dist/src/scalars/components/amount-field/index.js.map +0 -1
- package/dist/src/scalars/components/boolean-field/boolean-field.d.ts +0 -10
- package/dist/src/scalars/components/boolean-field/boolean-field.d.ts.map +0 -1
- package/dist/src/scalars/components/boolean-field/boolean-field.js +0 -12
- package/dist/src/scalars/components/boolean-field/boolean-field.js.map +0 -1
- package/dist/src/scalars/components/boolean-field/index.d.ts +0 -2
- package/dist/src/scalars/components/boolean-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/boolean-field/index.js +0 -2
- package/dist/src/scalars/components/boolean-field/index.js.map +0 -1
- package/dist/src/scalars/components/country-code-field/country-code-field.d.ts +0 -8
- package/dist/src/scalars/components/country-code-field/country-code-field.d.ts.map +0 -1
- package/dist/src/scalars/components/country-code-field/country-code-field.js +0 -58
- package/dist/src/scalars/components/country-code-field/country-code-field.js.map +0 -1
- package/dist/src/scalars/components/country-code-field/index.d.ts +0 -2
- package/dist/src/scalars/components/country-code-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/country-code-field/index.js +0 -2
- package/dist/src/scalars/components/country-code-field/index.js.map +0 -1
- package/dist/src/scalars/components/country-code-field/types.d.ts +0 -11
- package/dist/src/scalars/components/country-code-field/types.d.ts.map +0 -1
- package/dist/src/scalars/components/country-code-field/types.js.map +0 -1
- package/dist/src/scalars/components/currency-code-field/currency-code-field.d.ts +0 -21
- package/dist/src/scalars/components/currency-code-field/currency-code-field.d.ts.map +0 -1
- package/dist/src/scalars/components/currency-code-field/currency-code-field.js +0 -72
- package/dist/src/scalars/components/currency-code-field/currency-code-field.js.map +0 -1
- package/dist/src/scalars/components/currency-code-field/defaults.d.ts +0 -4
- package/dist/src/scalars/components/currency-code-field/defaults.d.ts.map +0 -1
- package/dist/src/scalars/components/currency-code-field/defaults.js +0 -43
- package/dist/src/scalars/components/currency-code-field/defaults.js.map +0 -1
- package/dist/src/scalars/components/currency-code-field/index.d.ts +0 -5
- package/dist/src/scalars/components/currency-code-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/currency-code-field/index.js +0 -4
- package/dist/src/scalars/components/currency-code-field/index.js.map +0 -1
- package/dist/src/scalars/components/currency-code-field/types.d.ts +0 -13
- package/dist/src/scalars/components/currency-code-field/types.d.ts.map +0 -1
- package/dist/src/scalars/components/currency-code-field/types.js.map +0 -1
- package/dist/src/scalars/components/currency-code-field/utils.d.ts +0 -38
- package/dist/src/scalars/components/currency-code-field/utils.d.ts.map +0 -1
- package/dist/src/scalars/components/currency-code-field/utils.js +0 -40
- package/dist/src/scalars/components/currency-code-field/utils.js.map +0 -1
- package/dist/src/scalars/components/date-picker-field/date-picker-field.d.ts +0 -7
- package/dist/src/scalars/components/date-picker-field/date-picker-field.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/date-picker-field.js +0 -11
- package/dist/src/scalars/components/date-picker-field/date-picker-field.js.map +0 -1
- package/dist/src/scalars/components/date-picker-field/date-picker-validations.d.ts +0 -3
- package/dist/src/scalars/components/date-picker-field/date-picker-validations.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/date-picker-validations.js +0 -73
- package/dist/src/scalars/components/date-picker-field/date-picker-validations.js.map +0 -1
- package/dist/src/scalars/components/date-picker-field/index.d.ts +0 -2
- package/dist/src/scalars/components/date-picker-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/index.js +0 -2
- package/dist/src/scalars/components/date-picker-field/index.js.map +0 -1
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field-validations.d.ts +0 -3
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field-validations.d.ts.map +0 -1
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field-validations.js +0 -78
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field-validations.js.map +0 -1
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.d.ts +0 -7
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.d.ts.map +0 -1
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.js +0 -11
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.js.map +0 -1
- package/dist/src/scalars/components/date-time-picker-field/index.d.ts +0 -2
- package/dist/src/scalars/components/date-time-picker-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/date-time-picker-field/index.js +0 -2
- package/dist/src/scalars/components/date-time-picker-field/index.js.map +0 -1
- package/dist/src/scalars/components/enum-field/enum-field.d.ts +0 -12
- package/dist/src/scalars/components/enum-field/enum-field.d.ts.map +0 -1
- package/dist/src/scalars/components/enum-field/enum-field.js +0 -18
- package/dist/src/scalars/components/enum-field/enum-field.js.map +0 -1
- package/dist/src/scalars/components/enum-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/enum-field/index.js.map +0 -1
- package/dist/src/scalars/components/enum-field/types.d.ts.map +0 -1
- package/dist/src/scalars/components/enum-field/types.js.map +0 -1
- package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.d.ts +0 -3
- package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.d.ts.map +0 -1
- package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.js +0 -27
- package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.js.map +0 -1
- package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.d.ts +0 -3
- package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.d.ts.map +0 -1
- package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.js +0 -31
- package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.js.map +0 -1
- package/dist/src/scalars/components/examples/reset-button/reset-button.d.ts +0 -3
- package/dist/src/scalars/components/examples/reset-button/reset-button.d.ts.map +0 -1
- package/dist/src/scalars/components/examples/reset-button/reset-button.js +0 -12
- package/dist/src/scalars/components/examples/reset-button/reset-button.js.map +0 -1
- package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.d.ts +0 -3
- package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.d.ts.map +0 -1
- package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.js +0 -16
- package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.js.map +0 -1
- package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.d.ts +0 -4
- package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.d.ts.map +0 -1
- package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.js +0 -75
- package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.js.map +0 -1
- package/dist/src/scalars/components/form/form.d.ts.map +0 -1
- package/dist/src/scalars/components/form/form.js +0 -138
- package/dist/src/scalars/components/form/form.js.map +0 -1
- package/dist/src/scalars/components/form/index.d.ts.map +0 -1
- package/dist/src/scalars/components/form/index.js.map +0 -1
- package/dist/src/scalars/components/form/utils.d.ts.map +0 -1
- package/dist/src/scalars/components/form/utils.js.map +0 -1
- package/dist/src/scalars/components/fragments/button/button.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/button/button.js +0 -23
- package/dist/src/scalars/components/fragments/button/button.js.map +0 -1
- package/dist/src/scalars/components/fragments/button/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/button/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/character-counter/character-counter.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/character-counter/character-counter.js.map +0 -1
- package/dist/src/scalars/components/fragments/character-counter/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/character-counter/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.d.ts +0 -4
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.js +0 -6
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.js.map +0 -1
- package/dist/src/scalars/components/fragments/checkbox-field/index.d.ts +0 -2
- package/dist/src/scalars/components/fragments/checkbox-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/checkbox-field/index.js +0 -2
- package/dist/src/scalars/components/fragments/checkbox-field/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/command/command.d.ts +0 -80
- package/dist/src/scalars/components/fragments/command/command.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/command/command.js +0 -21
- package/dist/src/scalars/components/fragments/command/command.js.map +0 -1
- package/dist/src/scalars/components/fragments/command/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/command/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/form-description/form-description.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/form-description/form-description.js +0 -8
- package/dist/src/scalars/components/fragments/form-description/form-description.js.map +0 -1
- package/dist/src/scalars/components/fragments/form-description/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/form-description/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/form-group/form-group.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/form-group/form-group.js.map +0 -1
- package/dist/src/scalars/components/fragments/form-group/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/form-group/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/form-label/form-label.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/form-label/form-label.js +0 -20
- package/dist/src/scalars/components/fragments/form-label/form-label.js.map +0 -1
- package/dist/src/scalars/components/fragments/form-label/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/form-label/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/form-message/form-message.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/form-message/form-message.js +0 -15
- package/dist/src/scalars/components/fragments/form-message/form-message.js.map +0 -1
- package/dist/src/scalars/components/fragments/form-message/form-server-error-message.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/form-message/form-server-error-message.js.map +0 -1
- package/dist/src/scalars/components/fragments/form-message/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/form-message/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/form-message/message-list.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/form-message/message-list.js +0 -22
- package/dist/src/scalars/components/fragments/form-message/message-list.js.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-context.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-context.js.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-input-container.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-input-container.js +0 -71
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-input-container.js.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-list-option.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-list-option.js +0 -47
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-list-option.js.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-list.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-list.js +0 -31
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-list.js.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.js +0 -88
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.js.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/types.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/types.js.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/use-id-autocomplete.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/use-id-autocomplete.js.map +0 -1
- package/dist/src/scalars/components/fragments/index.d.ts +0 -8
- package/dist/src/scalars/components/fragments/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/index.js +0 -8
- package/dist/src/scalars/components/fragments/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/popover/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/popover/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/popover/popover.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/popover/popover.js +0 -17
- package/dist/src/scalars/components/fragments/popover/popover.js.map +0 -1
- package/dist/src/scalars/components/fragments/radio-group-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/radio-group-field/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.d.ts +0 -12
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.js +0 -18
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.js.map +0 -1
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group.js.map +0 -1
- package/dist/src/scalars/components/fragments/radio-group-field/radio.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/radio-group-field/radio.js +0 -24
- package/dist/src/scalars/components/fragments/radio-group-field/radio.js.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/content.d.ts +0 -17
- package/dist/src/scalars/components/fragments/select-field/content.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/content.js +0 -34
- package/dist/src/scalars/components/fragments/select-field/content.js.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/select-field.d.ts +0 -19
- package/dist/src/scalars/components/fragments/select-field/select-field.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/select-field.js +0 -62
- package/dist/src/scalars/components/fragments/select-field/select-field.js.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/selected-content.d.ts +0 -13
- package/dist/src/scalars/components/fragments/select-field/selected-content.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/selected-content.js +0 -26
- package/dist/src/scalars/components/fragments/select-field/selected-content.js.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/subcomponents/CommandItemList.d.ts +0 -15
- package/dist/src/scalars/components/fragments/select-field/subcomponents/CommandItemList.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/subcomponents/CommandItemList.js +0 -24
- package/dist/src/scalars/components/fragments/select-field/subcomponents/CommandItemList.js.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/use-select-field.d.ts +0 -19
- package/dist/src/scalars/components/fragments/select-field/use-select-field.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/select-field/use-select-field.js.map +0 -1
- package/dist/src/scalars/components/fragments/tabs/tabs.d.ts +0 -8
- package/dist/src/scalars/components/fragments/tabs/tabs.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/tabs/tabs.js +0 -14
- package/dist/src/scalars/components/fragments/tabs/tabs.js.map +0 -1
- package/dist/src/scalars/components/fragments/text-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/text-field/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/text-field/text-field.d.ts +0 -5
- package/dist/src/scalars/components/fragments/text-field/text-field.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/text-field/text-field.js +0 -5
- package/dist/src/scalars/components/fragments/text-field/text-field.js.map +0 -1
- package/dist/src/scalars/components/fragments/textarea-field/index.d.ts +0 -2
- package/dist/src/scalars/components/fragments/textarea-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/textarea-field/index.js +0 -2
- package/dist/src/scalars/components/fragments/textarea-field/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/textarea-field/textarea-field.d.ts +0 -6
- package/dist/src/scalars/components/fragments/textarea-field/textarea-field.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/textarea-field/textarea-field.js +0 -6
- package/dist/src/scalars/components/fragments/textarea-field/textarea-field.js.map +0 -1
- package/dist/src/scalars/components/fragments/toggle-field/index.d.ts +0 -2
- package/dist/src/scalars/components/fragments/toggle-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/toggle-field/index.js +0 -2
- package/dist/src/scalars/components/fragments/toggle-field/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/toggle-field/toggle-field.d.ts +0 -6
- package/dist/src/scalars/components/fragments/toggle-field/toggle-field.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/toggle-field/toggle-field.js +0 -6
- package/dist/src/scalars/components/fragments/toggle-field/toggle-field.js.map +0 -1
- package/dist/src/scalars/components/fragments/value-transformer/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/value-transformer/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/value-transformer/value-transformer.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/value-transformer/value-transformer.js +0 -142
- package/dist/src/scalars/components/fragments/value-transformer/value-transformer.js.map +0 -1
- package/dist/src/scalars/components/fragments/with-field-validation/index.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/with-field-validation/index.js.map +0 -1
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.d.ts.map +0 -1
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.js.map +0 -1
- package/dist/src/scalars/components/id-field/id-field.d.ts +0 -9
- package/dist/src/scalars/components/id-field/id-field.d.ts.map +0 -1
- package/dist/src/scalars/components/id-field/id-field.js +0 -23
- package/dist/src/scalars/components/id-field/id-field.js.map +0 -1
- package/dist/src/scalars/components/id-field/index.d.ts +0 -2
- package/dist/src/scalars/components/id-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/id-field/index.js +0 -2
- package/dist/src/scalars/components/id-field/index.js.map +0 -1
- package/dist/src/scalars/components/index.d.ts +0 -122
- package/dist/src/scalars/components/index.d.ts.map +0 -1
- package/dist/src/scalars/components/index.js +0 -94
- package/dist/src/scalars/components/index.js.map +0 -1
- package/dist/src/scalars/components/number-field/index.d.ts +0 -2
- package/dist/src/scalars/components/number-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/number-field/index.js +0 -2
- package/dist/src/scalars/components/number-field/index.js.map +0 -1
- package/dist/src/scalars/components/number-field/number-field-validations.d.ts +0 -7
- package/dist/src/scalars/components/number-field/number-field-validations.d.ts.map +0 -1
- package/dist/src/scalars/components/number-field/number-field-validations.js +0 -117
- package/dist/src/scalars/components/number-field/number-field-validations.js.map +0 -1
- package/dist/src/scalars/components/number-field/number-field.d.ts +0 -12
- package/dist/src/scalars/components/number-field/number-field.d.ts.map +0 -1
- package/dist/src/scalars/components/number-field/number-field.js +0 -50
- package/dist/src/scalars/components/number-field/number-field.js.map +0 -1
- package/dist/src/scalars/components/number-field/types.d.ts +0 -20
- package/dist/src/scalars/components/number-field/types.d.ts.map +0 -1
- package/dist/src/scalars/components/number-field/types.js.map +0 -1
- package/dist/src/scalars/components/number-field/use-number-field.d.ts +0 -29
- package/dist/src/scalars/components/number-field/use-number-field.d.ts.map +0 -1
- package/dist/src/scalars/components/number-field/use-number-field.js +0 -140
- package/dist/src/scalars/components/number-field/use-number-field.js.map +0 -1
- package/dist/src/scalars/components/number-field/utils.d.ts +0 -10
- package/dist/src/scalars/components/number-field/utils.d.ts.map +0 -1
- package/dist/src/scalars/components/number-field/utils.js +0 -38
- package/dist/src/scalars/components/number-field/utils.js.map +0 -1
- package/dist/src/scalars/components/oid-field/index.d.ts +0 -3
- package/dist/src/scalars/components/oid-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/oid-field/index.js +0 -2
- package/dist/src/scalars/components/oid-field/index.js.map +0 -1
- package/dist/src/scalars/components/oid-field/oid-field.d.ts +0 -4
- package/dist/src/scalars/components/oid-field/oid-field.d.ts.map +0 -1
- package/dist/src/scalars/components/oid-field/oid-field.js +0 -20
- package/dist/src/scalars/components/oid-field/oid-field.js.map +0 -1
- package/dist/src/scalars/components/oid-field/types.d.ts +0 -5
- package/dist/src/scalars/components/oid-field/types.d.ts.map +0 -1
- package/dist/src/scalars/components/oid-field/types.js +0 -2
- package/dist/src/scalars/components/oid-field/types.js.map +0 -1
- package/dist/src/scalars/components/phid-field/index.d.ts +0 -3
- package/dist/src/scalars/components/phid-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/phid-field/index.js +0 -2
- package/dist/src/scalars/components/phid-field/index.js.map +0 -1
- package/dist/src/scalars/components/phid-field/phid-field.d.ts +0 -4
- package/dist/src/scalars/components/phid-field/phid-field.d.ts.map +0 -1
- package/dist/src/scalars/components/phid-field/phid-field.js +0 -51
- package/dist/src/scalars/components/phid-field/phid-field.js.map +0 -1
- package/dist/src/scalars/components/phid-field/types.d.ts +0 -5
- package/dist/src/scalars/components/phid-field/types.d.ts.map +0 -1
- package/dist/src/scalars/components/phid-field/types.js +0 -2
- package/dist/src/scalars/components/phid-field/types.js.map +0 -1
- package/dist/src/scalars/components/string-field/index.d.ts +0 -2
- package/dist/src/scalars/components/string-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/string-field/index.js +0 -2
- package/dist/src/scalars/components/string-field/index.js.map +0 -1
- package/dist/src/scalars/components/string-field/string-field.d.ts +0 -7
- package/dist/src/scalars/components/string-field/string-field.d.ts.map +0 -1
- package/dist/src/scalars/components/string-field/string-field.js +0 -13
- package/dist/src/scalars/components/string-field/string-field.js.map +0 -1
- package/dist/src/scalars/components/time-picker-field/index.d.ts +0 -2
- package/dist/src/scalars/components/time-picker-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/time-picker-field/index.js +0 -2
- package/dist/src/scalars/components/time-picker-field/index.js.map +0 -1
- package/dist/src/scalars/components/time-picker-field/time-picker-field-validations.d.ts +0 -3
- package/dist/src/scalars/components/time-picker-field/time-picker-field-validations.d.ts.map +0 -1
- package/dist/src/scalars/components/time-picker-field/time-picker-field-validations.js +0 -48
- package/dist/src/scalars/components/time-picker-field/time-picker-field-validations.js.map +0 -1
- package/dist/src/scalars/components/time-picker-field/time-picker-field.d.ts +0 -7
- package/dist/src/scalars/components/time-picker-field/time-picker-field.d.ts.map +0 -1
- package/dist/src/scalars/components/time-picker-field/time-picker-field.js +0 -11
- package/dist/src/scalars/components/time-picker-field/time-picker-field.js.map +0 -1
- package/dist/src/scalars/components/types.d.ts.map +0 -1
- package/dist/src/scalars/components/types.js +0 -2
- package/dist/src/scalars/components/types.js.map +0 -1
- package/dist/src/scalars/components/url-field/index.d.ts +0 -3
- package/dist/src/scalars/components/url-field/index.d.ts.map +0 -1
- package/dist/src/scalars/components/url-field/index.js +0 -3
- package/dist/src/scalars/components/url-field/index.js.map +0 -1
- package/dist/src/scalars/components/url-field/url-favicon.d.ts +0 -8
- package/dist/src/scalars/components/url-field/url-favicon.d.ts.map +0 -1
- package/dist/src/scalars/components/url-field/url-favicon.js +0 -36
- package/dist/src/scalars/components/url-field/url-favicon.js.map +0 -1
- package/dist/src/scalars/components/url-field/url-field.d.ts +0 -9
- package/dist/src/scalars/components/url-field/url-field.d.ts.map +0 -1
- package/dist/src/scalars/components/url-field/url-field.js +0 -48
- package/dist/src/scalars/components/url-field/url-field.js.map +0 -1
- package/dist/src/scalars/components/url-field/url-input.d.ts +0 -11
- package/dist/src/scalars/components/url-field/url-input.d.ts.map +0 -1
- package/dist/src/scalars/components/url-field/url-input.js +0 -34
- package/dist/src/scalars/components/url-field/url-input.js.map +0 -1
- package/dist/src/scalars/components/url-field/useURLWarnings.d.ts +0 -5
- package/dist/src/scalars/components/url-field/useURLWarnings.d.ts.map +0 -1
- package/dist/src/scalars/components/url-field/useURLWarnings.js +0 -77
- package/dist/src/scalars/components/url-field/useURLWarnings.js.map +0 -1
- package/dist/src/scalars/hooks/useEllipsis.d.ts +0 -7
- package/dist/src/scalars/hooks/useEllipsis.d.ts.map +0 -1
- package/dist/src/scalars/hooks/useEllipsis.js +0 -21
- package/dist/src/scalars/hooks/useEllipsis.js.map +0 -1
- package/dist/src/scalars/index.d.ts +0 -4
- package/dist/src/scalars/index.d.ts.map +0 -1
- package/dist/src/scalars/index.js +0 -5
- package/dist/src/scalars/index.js.map +0 -1
- package/dist/src/scalars/lib/decorators.d.ts.map +0 -1
- package/dist/src/scalars/lib/decorators.js +0 -96
- package/dist/src/scalars/lib/decorators.js.map +0 -1
- package/dist/src/scalars/lib/deep-equal.d.ts.map +0 -1
- package/dist/src/scalars/lib/deep-equal.js.map +0 -1
- package/dist/src/scalars/lib/index.d.ts +0 -7
- package/dist/src/scalars/lib/index.d.ts.map +0 -1
- package/dist/src/scalars/lib/index.js +0 -7
- package/dist/src/scalars/lib/index.js.map +0 -1
- package/dist/src/scalars/lib/is-empty.d.ts.map +0 -1
- package/dist/src/scalars/lib/is-empty.js.map +0 -1
- package/dist/src/scalars/lib/share-number-validations.d.ts +0 -5
- package/dist/src/scalars/lib/share-number-validations.d.ts.map +0 -1
- package/dist/src/scalars/lib/share-number-validations.js +0 -32
- package/dist/src/scalars/lib/share-number-validations.js.map +0 -1
- package/dist/src/scalars/lib/shared-value-transformers.d.ts +0 -3
- package/dist/src/scalars/lib/shared-value-transformers.d.ts.map +0 -1
- package/dist/src/scalars/lib/shared-value-transformers.js.map +0 -1
- package/dist/src/scalars/lib/storybook-arg-types.d.ts.map +0 -1
- package/dist/src/scalars/lib/storybook-arg-types.js.map +0 -1
- package/dist/src/scalars/lib/testing.d.ts.map +0 -1
- package/dist/src/scalars/lib/testing.js.map +0 -1
- package/dist/src/scalars/lib/utils.d.ts +0 -3
- package/dist/src/scalars/lib/utils.d.ts.map +0 -1
- package/dist/src/scalars/lib/utils.js +0 -6
- package/dist/src/scalars/lib/utils.js.map +0 -1
- package/dist/src/scalars/lib/value-cast.d.ts.map +0 -1
- package/dist/src/scalars/lib/value-cast.js +0 -57
- package/dist/src/scalars/lib/value-cast.js.map +0 -1
- package/dist/src/ui/components/data-entry/aid-input/aid-input.d.ts +0 -5
- package/dist/src/ui/components/data-entry/aid-input/aid-input.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/aid-input/aid-input.js +0 -25
- package/dist/src/ui/components/data-entry/aid-input/aid-input.js.map +0 -1
- package/dist/src/ui/components/data-entry/aid-input/index.d.ts +0 -3
- package/dist/src/ui/components/data-entry/aid-input/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/aid-input/index.js +0 -2
- package/dist/src/ui/components/data-entry/aid-input/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/aid-input/mocks.d.ts +0 -7
- package/dist/src/ui/components/data-entry/aid-input/mocks.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/aid-input/mocks.js +0 -319
- package/dist/src/ui/components/data-entry/aid-input/mocks.js.map +0 -1
- package/dist/src/ui/components/data-entry/aid-input/types.d.ts +0 -25
- package/dist/src/ui/components/data-entry/aid-input/types.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/aid-input/types.js +0 -2
- package/dist/src/ui/components/data-entry/aid-input/types.js.map +0 -1
- package/dist/src/ui/components/data-entry/amount-input/amount-input.d.ts +0 -24
- package/dist/src/ui/components/data-entry/amount-input/amount-input.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/amount-input/amount-input.js +0 -34
- package/dist/src/ui/components/data-entry/amount-input/amount-input.js.map +0 -1
- package/dist/src/ui/components/data-entry/amount-input/index.d.ts +0 -2
- package/dist/src/ui/components/data-entry/amount-input/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/amount-input/index.js +0 -2
- package/dist/src/ui/components/data-entry/amount-input/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/amount-input/types.d.ts +0 -43
- package/dist/src/ui/components/data-entry/amount-input/types.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/amount-input/types.js +0 -2
- package/dist/src/ui/components/data-entry/amount-input/types.js.map +0 -1
- package/dist/src/ui/components/data-entry/amount-input/use-amount-input.d.ts +0 -34
- package/dist/src/ui/components/data-entry/amount-input/use-amount-input.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/amount-input/use-amount-input.js +0 -311
- package/dist/src/ui/components/data-entry/amount-input/use-amount-input.js.map +0 -1
- package/dist/src/ui/components/data-entry/amount-input/utils.d.ts +0 -17
- package/dist/src/ui/components/data-entry/amount-input/utils.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/amount-input/utils.js +0 -92
- package/dist/src/ui/components/data-entry/amount-input/utils.js.map +0 -1
- package/dist/src/ui/components/data-entry/checkbox/checkbox-base.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/checkbox/checkbox-base.js +0 -29
- package/dist/src/ui/components/data-entry/checkbox/checkbox-base.js.map +0 -1
- package/dist/src/ui/components/data-entry/checkbox/checkbox.d.ts +0 -10
- package/dist/src/ui/components/data-entry/checkbox/checkbox.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/checkbox/checkbox.js +0 -22
- package/dist/src/ui/components/data-entry/checkbox/checkbox.js.map +0 -1
- package/dist/src/ui/components/data-entry/checkbox/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/checkbox/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/date-picker.d.ts +0 -25
- package/dist/src/ui/components/data-entry/date-picker/date-picker.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/date-picker.js +0 -47
- package/dist/src/ui/components/data-entry/date-picker/date-picker.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/index.d.ts +0 -3
- package/dist/src/ui/components/data-entry/date-picker/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/index.js +0 -2
- package/dist/src/ui/components/data-entry/date-picker/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar/calendar.d.ts +0 -49
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar/calendar.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar/calendar.js +0 -112
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar/calendar.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-date-header/calendar-date-header.d.ts +0 -8
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-date-header/calendar-date-header.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-date-header/calendar-date-header.js +0 -8
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-date-header/calendar-date-header.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-nav/calendar-nav.d.ts +0 -22
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-nav/calendar-nav.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-nav/calendar-nav.js +0 -81
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-nav/calendar-nav.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/caption-label/caption-label.d.ts +0 -9
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/caption-label/caption-label.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/caption-label/caption-label.js +0 -15
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/caption-label/caption-label.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/months-view/month-view.d.ts +0 -8
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/months-view/month-view.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/months-view/month-view.js +0 -8
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/months-view/month-view.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/utils.d.ts +0 -2
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/utils.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/utils.js +0 -15
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/utils.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/year-view/year-button.d.ts +0 -16
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/year-view/year-button.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/year-view/year-button.js +0 -13
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/year-view/year-button.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/year-view/year-grid.d.ts +0 -18
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/year-view/year-grid.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/year-view/year-grid.js +0 -8
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/year-view/year-grid.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/types.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/types.js +0 -2
- package/dist/src/ui/components/data-entry/date-picker/types.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/use-date-picker.d.ts +0 -38
- package/dist/src/ui/components/data-entry/date-picker/use-date-picker.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/use-date-picker.js +0 -130
- package/dist/src/ui/components/data-entry/date-picker/use-date-picker.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/utils.d.ts +0 -50
- package/dist/src/ui/components/data-entry/date-picker/utils.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-picker/utils.js +0 -104
- package/dist/src/ui/components/data-entry/date-picker/utils.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/base-picker.d.ts +0 -25
- package/dist/src/ui/components/data-entry/date-time-picker/base-picker.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/base-picker.js +0 -16
- package/dist/src/ui/components/data-entry/date-time-picker/base-picker.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.d.ts +0 -33
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.js +0 -37
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker-content.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.d.ts +0 -30
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.js +0 -50
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/index.d.ts +0 -2
- package/dist/src/ui/components/data-entry/date-time-picker/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/index.js +0 -2
- package/dist/src/ui/components/data-entry/date-time-picker/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.d.ts +0 -72
- package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.js +0 -291
- package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.js.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/utils.d.ts +0 -70
- package/dist/src/ui/components/data-entry/date-time-picker/utils.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/date-time-picker/utils.js +0 -217
- package/dist/src/ui/components/data-entry/date-time-picker/utils.js.map +0 -1
- package/dist/src/ui/components/data-entry/input/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/input/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/input/input.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/input/input.js +0 -22
- package/dist/src/ui/components/data-entry/input/input.js.map +0 -1
- package/dist/src/ui/components/data-entry/input/splitted-input-diff.d.ts +0 -8
- package/dist/src/ui/components/data-entry/input/splitted-input-diff.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/input/splitted-input-diff.js +0 -35
- package/dist/src/ui/components/data-entry/input/splitted-input-diff.js.map +0 -1
- package/dist/src/ui/components/data-entry/input/subcomponent/input-diff.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/input/subcomponent/input-diff.js +0 -8
- package/dist/src/ui/components/data-entry/input/subcomponent/input-diff.js.map +0 -1
- package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.d.ts +0 -9
- package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.js +0 -27
- package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.js.map +0 -1
- package/dist/src/ui/components/data-entry/oid-input/index.d.ts +0 -3
- package/dist/src/ui/components/data-entry/oid-input/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/oid-input/index.js +0 -2
- package/dist/src/ui/components/data-entry/oid-input/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/oid-input/mocks.d.ts +0 -7
- package/dist/src/ui/components/data-entry/oid-input/mocks.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/oid-input/mocks.js +0 -119
- package/dist/src/ui/components/data-entry/oid-input/mocks.js.map +0 -1
- package/dist/src/ui/components/data-entry/oid-input/oid-input.d.ts +0 -5
- package/dist/src/ui/components/data-entry/oid-input/oid-input.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/oid-input/oid-input.js +0 -21
- package/dist/src/ui/components/data-entry/oid-input/oid-input.js.map +0 -1
- package/dist/src/ui/components/data-entry/oid-input/types.d.ts +0 -16
- package/dist/src/ui/components/data-entry/oid-input/types.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/oid-input/types.js +0 -2
- package/dist/src/ui/components/data-entry/oid-input/types.js.map +0 -1
- package/dist/src/ui/components/data-entry/phid-input/index.d.ts +0 -3
- package/dist/src/ui/components/data-entry/phid-input/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/phid-input/index.js +0 -2
- package/dist/src/ui/components/data-entry/phid-input/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/phid-input/mocks.d.ts +0 -7
- package/dist/src/ui/components/data-entry/phid-input/mocks.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/phid-input/mocks.js +0 -224
- package/dist/src/ui/components/data-entry/phid-input/mocks.js.map +0 -1
- package/dist/src/ui/components/data-entry/phid-input/phid-input-diff.d.ts +0 -13
- package/dist/src/ui/components/data-entry/phid-input/phid-input-diff.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/phid-input/phid-input-diff.js +0 -52
- package/dist/src/ui/components/data-entry/phid-input/phid-input-diff.js.map +0 -1
- package/dist/src/ui/components/data-entry/phid-input/phid-input.d.ts +0 -5
- package/dist/src/ui/components/data-entry/phid-input/phid-input.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/phid-input/phid-input.js +0 -28
- package/dist/src/ui/components/data-entry/phid-input/phid-input.js.map +0 -1
- package/dist/src/ui/components/data-entry/phid-input/types.d.ts +0 -30
- package/dist/src/ui/components/data-entry/phid-input/types.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/phid-input/types.js +0 -2
- package/dist/src/ui/components/data-entry/phid-input/types.js.map +0 -1
- package/dist/src/ui/components/data-entry/text-input/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/text-input/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/text-input/text-input-diff.d.ts +0 -9
- package/dist/src/ui/components/data-entry/text-input/text-input-diff.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/text-input/text-input-diff.js +0 -8
- package/dist/src/ui/components/data-entry/text-input/text-input-diff.js.map +0 -1
- package/dist/src/ui/components/data-entry/text-input/text-input.d.ts +0 -10
- package/dist/src/ui/components/data-entry/text-input/text-input.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/text-input/text-input.js +0 -37
- package/dist/src/ui/components/data-entry/text-input/text-input.js.map +0 -1
- package/dist/src/ui/components/data-entry/text-input/types.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/text-input/types.js +0 -2
- package/dist/src/ui/components/data-entry/text-input/types.js.map +0 -1
- package/dist/src/ui/components/data-entry/textarea/index.d.ts +0 -2
- package/dist/src/ui/components/data-entry/textarea/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/textarea/index.js +0 -2
- package/dist/src/ui/components/data-entry/textarea/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/textarea/subcomponent/splitted-textarea-diff.d.ts +0 -13
- package/dist/src/ui/components/data-entry/textarea/subcomponent/splitted-textarea-diff.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/textarea/subcomponent/splitted-textarea-diff.js +0 -9
- package/dist/src/ui/components/data-entry/textarea/subcomponent/splitted-textarea-diff.js.map +0 -1
- package/dist/src/ui/components/data-entry/textarea/textarea.d.ts +0 -12
- package/dist/src/ui/components/data-entry/textarea/textarea.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/textarea/textarea.js +0 -103
- package/dist/src/ui/components/data-entry/textarea/textarea.js.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/index.d.ts +0 -3
- package/dist/src/ui/components/data-entry/time-picker/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/index.js +0 -2
- package/dist/src/ui/components/data-entry/time-picker/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-period-selector.d.ts +0 -8
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-period-selector.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-period-selector.js +0 -8
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-period-selector.js.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-picker-content.d.ts +0 -25
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-picker-content.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-picker-content.js +0 -12
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-picker-content.js.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.constants.d.ts +0 -5
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.constants.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.constants.js +0 -5
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.constants.js.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.d.ts +0 -5
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.js +0 -28
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.js.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/use-time-selector.d.ts +0 -13
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/use-time-selector.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/use-time-selector.js +0 -106
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/use-time-selector.js.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/time-picker.d.ts +0 -23
- package/dist/src/ui/components/data-entry/time-picker/time-picker.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/time-picker.js +0 -27
- package/dist/src/ui/components/data-entry/time-picker/time-picker.js.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/type.d.ts +0 -9
- package/dist/src/ui/components/data-entry/time-picker/type.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/type.js +0 -2
- package/dist/src/ui/components/data-entry/time-picker/type.js.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/use-time-picker.d.ts +0 -42
- package/dist/src/ui/components/data-entry/time-picker/use-time-picker.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/use-time-picker.js +0 -144
- package/dist/src/ui/components/data-entry/time-picker/use-time-picker.js.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/utils.d.ts +0 -207
- package/dist/src/ui/components/data-entry/time-picker/utils.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/time-picker/utils.js +0 -475
- package/dist/src/ui/components/data-entry/time-picker/utils.js.map +0 -1
- package/dist/src/ui/components/data-entry/toggle/index.d.ts +0 -2
- package/dist/src/ui/components/data-entry/toggle/index.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/toggle/index.js +0 -2
- package/dist/src/ui/components/data-entry/toggle/index.js.map +0 -1
- package/dist/src/ui/components/data-entry/toggle/toggle-base.d.ts +0 -11
- package/dist/src/ui/components/data-entry/toggle/toggle-base.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/toggle/toggle-base.js +0 -10
- package/dist/src/ui/components/data-entry/toggle/toggle-base.js.map +0 -1
- package/dist/src/ui/components/data-entry/toggle/toggle.d.ts +0 -11
- package/dist/src/ui/components/data-entry/toggle/toggle.d.ts.map +0 -1
- package/dist/src/ui/components/data-entry/toggle/toggle.js +0 -17
- package/dist/src/ui/components/data-entry/toggle/toggle.js.map +0 -1
- package/dist/src/ui/components/dropdown/dropdown-example.d.ts +0 -3
- package/dist/src/ui/components/dropdown/dropdown-example.d.ts.map +0 -1
- package/dist/src/ui/components/dropdown/dropdown-example.js +0 -13
- package/dist/src/ui/components/dropdown/dropdown-example.js.map +0 -1
- package/dist/src/ui/components/dropdown/index.d.ts +0 -8
- package/dist/src/ui/components/dropdown/index.d.ts.map +0 -1
- package/dist/src/ui/components/dropdown/index.js +0 -8
- package/dist/src/ui/components/dropdown/index.js.map +0 -1
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-content.d.ts +0 -4
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-content.d.ts.map +0 -1
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-content.js +0 -17
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-content.js.map +0 -1
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-item.d.ts +0 -6
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-item.d.ts.map +0 -1
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-item.js +0 -13
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-item.js.map +0 -1
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-label.d.ts +0 -6
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-label.d.ts.map +0 -1
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-label.js +0 -7
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-label.js.map +0 -1
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-shortcut.d.ts +0 -5
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-shortcut.d.ts.map +0 -1
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-shortcut.js +0 -7
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-shortcut.js.map +0 -1
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-trigger.d.ts +0 -3
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-trigger.d.ts.map +0 -1
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-trigger.js +0 -6
- package/dist/src/ui/components/dropdown/subcomponents/dropdown-trigger.js.map +0 -1
- package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.d.ts +0 -3
- package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.js +0 -48
- package/dist/src/ui/components/object-set-table/hooks/useGlobalTableKeyEvents.js.map +0 -1
- package/dist/src/ui/components/object-set-table/index.d.ts +0 -2
- package/dist/src/ui/components/object-set-table/index.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/index.js +0 -5
- package/dist/src/ui/components/object-set-table/index.js.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/selection-manager.d.ts +0 -49
- package/dist/src/ui/components/object-set-table/logic/selection-manager.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/selection-manager.js +0 -97
- package/dist/src/ui/components/object-set-table/logic/selection-manager.js.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/table-api.d.ts +0 -52
- package/dist/src/ui/components/object-set-table/logic/table-api.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/logic/table-api.js +0 -105
- package/dist/src/ui/components/object-set-table/logic/table-api.js.map +0 -1
- package/dist/src/ui/components/object-set-table/mock-data.d.ts +0 -16
- package/dist/src/ui/components/object-set-table/mock-data.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/mock-data.js +0 -101
- package/dist/src/ui/components/object-set-table/mock-data.js.map +0 -1
- package/dist/src/ui/components/object-set-table/object-set-table.d.ts +0 -12
- package/dist/src/ui/components/object-set-table/object-set-table.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/object-set-table.js +0 -53
- package/dist/src/ui/components/object-set-table/object-set-table.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/body.d.ts +0 -8
- package/dist/src/ui/components/object-set-table/subcomponents/body.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/body.js +0 -114
- package/dist/src/ui/components/object-set-table/subcomponents/body.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/basic-cell.d.ts +0 -3
- package/dist/src/ui/components/object-set-table/subcomponents/cells/basic-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/basic-cell.js +0 -7
- package/dist/src/ui/components/object-set-table/subcomponents/cells/basic-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.d.ts +0 -7
- package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.js +0 -8
- package/dist/src/ui/components/object-set-table/subcomponents/cells/default-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.d.ts +0 -3
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.js +0 -7
- package/dist/src/ui/components/object-set-table/subcomponents/cells/information-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.d.ts +0 -8
- package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.js +0 -15
- package/dist/src/ui/components/object-set-table/subcomponents/cells/row-number-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.d.ts +0 -4
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.js +0 -14
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/get-render-fn.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.d.ts +0 -3
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.js +0 -6
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/number-render.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.d.ts +0 -3
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.js +0 -6
- package/dist/src/ui/components/object-set-table/subcomponents/default-cell-renderers/text-render.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-formatter.d.ts +0 -3
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-formatter.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-formatter.js +0 -11
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-formatter.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-getter.d.ts +0 -4
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-getter.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-getter.js +0 -6
- package/dist/src/ui/components/object-set-table/subcomponents/default-fns/default-cell-value-getter.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-cell.d.ts +0 -3
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-cell.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-cell.js +0 -7
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-cell.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-number-td.d.ts +0 -7
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-number-td.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-number-td.js +0 -13
- package/dist/src/ui/components/object-set-table/subcomponents/header/header-number-td.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header.d.ts +0 -8
- package/dist/src/ui/components/object-set-table/subcomponents/header.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/header.js +0 -19
- package/dist/src/ui/components/object-set-table/subcomponents/header.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/table-row.d.ts +0 -6
- package/dist/src/ui/components/object-set-table/subcomponents/rows/table-row.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/rows/table-row.js +0 -18
- package/dist/src/ui/components/object-set-table/subcomponents/rows/table-row.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.d.ts +0 -5
- package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.js +0 -16
- package/dist/src/ui/components/object-set-table/subcomponents/table-focus-trap.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.d.ts +0 -24
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.js +0 -41
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-provider.js.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.d.ts +0 -49
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.js +0 -109
- package/dist/src/ui/components/object-set-table/subcomponents/table-provider/table-reducer.js.map +0 -1
- package/dist/src/ui/components/object-set-table/types.d.ts +0 -242
- package/dist/src/ui/components/object-set-table/types.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/types.js +0 -2
- package/dist/src/ui/components/object-set-table/types.js.map +0 -1
- package/dist/src/ui/components/object-set-table/utils.d.ts +0 -90
- package/dist/src/ui/components/object-set-table/utils.d.ts.map +0 -1
- package/dist/src/ui/components/object-set-table/utils.js +0 -172
- package/dist/src/ui/components/object-set-table/utils.js.map +0 -1
- package/dist/src/ui/components/sidebar/index.d.ts +0 -4
- package/dist/src/ui/components/sidebar/index.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/index.js +0 -3
- package/dist/src/ui/components/sidebar/index.js.map +0 -1
- package/dist/src/ui/components/sidebar/mocked_tree.json +0 -5230
- package/dist/src/ui/components/sidebar/sidebar.d.ts +0 -81
- package/dist/src/ui/components/sidebar/sidebar.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/sidebar.js +0 -62
- package/dist/src/ui/components/sidebar/sidebar.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-content-area.d.ts +0 -7
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-content-area.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-content-area.js +0 -17
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-content-area.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-header.d.ts +0 -8
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-header.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-header.js +0 -17
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-header.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.d.ts +0 -19
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js +0 -82
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-pinning-area.d.ts +0 -2
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-pinning-area.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-pinning-area.js +0 -13
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-pinning-area.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/index.d.ts +0 -2
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/index.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/index.js +0 -2
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/index.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.d.ts +0 -37
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.js +0 -292
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.d.ts +0 -93
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.js +0 -135
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-reducer.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/index.d.ts +0 -4
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/index.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/index.js +0 -4
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/index.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.d.ts +0 -8
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.js +0 -6
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/search-navigation-arrow.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.d.ts +0 -8
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.js +0 -8
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/search-result-counter.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.d.ts +0 -6
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.js +0 -36
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-search/sidebar-search.js.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/status-icon.d.ts +0 -8
- package/dist/src/ui/components/sidebar/subcomponents/status-icon.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/subcomponents/status-icon.js +0 -32
- package/dist/src/ui/components/sidebar/subcomponents/status-icon.js.map +0 -1
- package/dist/src/ui/components/sidebar/types.d.ts +0 -23
- package/dist/src/ui/components/sidebar/types.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/types.js +0 -10
- package/dist/src/ui/components/sidebar/types.js.map +0 -1
- package/dist/src/ui/components/sidebar/use-sidebar-resize.d.ts +0 -33
- package/dist/src/ui/components/sidebar/use-sidebar-resize.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/use-sidebar-resize.js +0 -97
- package/dist/src/ui/components/sidebar/use-sidebar-resize.js.map +0 -1
- package/dist/src/ui/components/sidebar/utils.d.ts +0 -52
- package/dist/src/ui/components/sidebar/utils.d.ts.map +0 -1
- package/dist/src/ui/components/sidebar/utils.js +0 -238
- package/dist/src/ui/components/sidebar/utils.js.map +0 -1
- /package/dist/src/{scalars/components/aid-field → ui/components/amount-input}/types.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/button/button.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/button/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/button/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/character-counter/character-counter.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/character-counter/character-counter.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/character-counter/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/character-counter/index.js +0 -0
- /package/dist/src/ui/components/{data-entry/checkbox → checkbox}/checkbox-base.d.ts +0 -0
- /package/dist/src/ui/components/{data-entry/checkbox → checkbox}/index.d.ts +0 -0
- /package/dist/src/ui/components/{data-entry/checkbox → checkbox}/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/command/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/command/index.js +0 -0
- /package/dist/src/ui/components/{data-entry/date-picker → date-picker}/types.d.ts +0 -0
- /package/dist/src/{scalars/components/country-code-field → ui/components/date-picker}/types.js +0 -0
- /package/dist/src/{scalars → ui}/components/enum-field/index.d.ts +0 -0
- /package/dist/src/{scalars → ui}/components/enum-field/index.js +0 -0
- /package/dist/src/{scalars → ui}/components/enum-field/types.d.ts +0 -0
- /package/dist/src/{scalars/components/currency-code-field → ui/components/enum-field}/types.js +0 -0
- /package/dist/src/{scalars → ui}/components/form/form.d.ts +0 -0
- /package/dist/src/{scalars → ui}/components/form/index.d.ts +0 -0
- /package/dist/src/{scalars → ui}/components/form/index.js +0 -0
- /package/dist/src/{scalars → ui}/components/form/utils.d.ts +0 -0
- /package/dist/src/{scalars → ui}/components/form/utils.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-description/form-description.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-description/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-description/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-group/form-group.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-group/form-group.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-group/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-group/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-label/form-label.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-label/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-label/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-message/form-message.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-message/form-server-error-message.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-message/form-server-error-message.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-message/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-message/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/form-message/message-list.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/id-autocomplete/id-autocomplete-context.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/id-autocomplete/id-autocomplete-context.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/id-autocomplete/id-autocomplete-input-container.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/id-autocomplete/id-autocomplete-list-option.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/id-autocomplete/id-autocomplete-list.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/id-autocomplete/id-autocomplete.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/id-autocomplete/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/id-autocomplete/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/id-autocomplete/types.d.ts +0 -0
- /package/dist/src/{scalars/components/enum-field → ui/components/id-autocomplete}/types.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/id-autocomplete/use-id-autocomplete.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/id-autocomplete/use-id-autocomplete.js +0 -0
- /package/dist/src/ui/components/{data-entry/input → input}/index.d.ts +0 -0
- /package/dist/src/ui/components/{data-entry/input → input}/index.js +0 -0
- /package/dist/src/ui/components/{data-entry/input → input}/input.d.ts +0 -0
- /package/dist/src/ui/components/{data-entry/input → input}/subcomponent/input-diff.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/popover/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/popover/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/popover/popover.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/radio-group-field/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/radio-group-field/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/radio-group-field/radio-group.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/radio-group-field/radio-group.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/radio-group-field/radio.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/select-field/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/select-field/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/select-field/use-select-field.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/text-field/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/text-field/index.js +0 -0
- /package/dist/src/ui/components/{data-entry/text-input → text-input}/index.d.ts +0 -0
- /package/dist/src/ui/components/{data-entry/text-input → text-input}/index.js +0 -0
- /package/dist/src/ui/components/{data-entry/text-input → text-input}/types.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments/id-autocomplete → ui/components/text-input}/types.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/value-transformer/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/value-transformer/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/value-transformer/value-transformer.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/with-field-validation/index.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/with-field-validation/index.js +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/with-field-validation/with-field-validation.d.ts +0 -0
- /package/dist/src/{scalars/components/fragments → ui/components}/with-field-validation/with-field-validation.js +0 -0
- /package/dist/src/{scalars → ui}/lib/decorators.d.ts +0 -0
- /package/dist/src/{scalars → ui}/lib/deep-equal.d.ts +0 -0
- /package/dist/src/{scalars → ui}/lib/deep-equal.js +0 -0
- /package/dist/src/{scalars → ui}/lib/is-empty.d.ts +0 -0
- /package/dist/src/{scalars → ui}/lib/is-empty.js +0 -0
- /package/dist/src/{scalars → ui}/lib/shared-value-transformers.js +0 -0
- /package/dist/src/{scalars → ui}/lib/storybook-arg-types.d.ts +0 -0
- /package/dist/src/{scalars → ui}/lib/storybook-arg-types.js +0 -0
- /package/dist/src/{scalars → ui}/lib/testing.d.ts +0 -0
- /package/dist/src/{scalars → ui}/lib/testing.js +0 -0
- /package/dist/src/{scalars → ui}/lib/value-cast.d.ts +0 -0
- /package/dist/src/{scalars/components → ui}/types.d.ts +0 -0
- /package/dist/src/{scalars/components/number-field → ui}/types.js +0 -0
|
@@ -1,311 +0,0 @@
|
|
|
1
|
-
import { useEffect, useMemo, useState } from "react";
|
|
2
|
-
import { isValidNumber } from "../../../../scalars/components/number-field/number-field-validations.js";
|
|
3
|
-
import { createAmountValue, displayValueAmount, getDefaultUnits, handleEventOnBlur, handleEventOnChange, isNotSafeValue, isValidBigInt, isValidNumberGreaterThanMaxSafeInteger, } from "./utils.js";
|
|
4
|
-
export const useAmountInput = ({ value, defaultValue, type, onChange, onBlur, precision, viewPrecision, trailingZeros, units, }) => {
|
|
5
|
-
const currentValue = value ?? defaultValue;
|
|
6
|
-
const baseValue = useMemo(() => {
|
|
7
|
-
if (currentValue === undefined) {
|
|
8
|
-
return undefined;
|
|
9
|
-
}
|
|
10
|
-
// If it's an object (for any type), we extract the amount property
|
|
11
|
-
if (typeof currentValue === "object") {
|
|
12
|
-
return currentValue.amount;
|
|
13
|
-
}
|
|
14
|
-
// If it's a primitive value (for AmountPercentage)
|
|
15
|
-
return currentValue;
|
|
16
|
-
}, [currentValue]);
|
|
17
|
-
useEffect(() => {
|
|
18
|
-
if (type === "AmountPercentage") {
|
|
19
|
-
if (typeof currentValue === "object") {
|
|
20
|
-
const newValue = currentValue.amount === ""
|
|
21
|
-
? ""
|
|
22
|
-
: currentValue.amount === undefined
|
|
23
|
-
? ""
|
|
24
|
-
: currentValue.amount;
|
|
25
|
-
const nativeEvent = handleEventOnChange(newValue);
|
|
26
|
-
onChange?.(nativeEvent);
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
if (typeof currentValue === "number" ||
|
|
30
|
-
typeof currentValue === "string" ||
|
|
31
|
-
typeof currentValue === "bigint" ||
|
|
32
|
-
typeof currentValue === "undefined") {
|
|
33
|
-
const nativeEvent = handleEventOnChange(currentValue);
|
|
34
|
-
onChange?.(nativeEvent);
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
if ((type === "AmountFiat" ||
|
|
38
|
-
type === "AmountCrypto" ||
|
|
39
|
-
type === "Amount" ||
|
|
40
|
-
type === "AmountCurrency") &&
|
|
41
|
-
(typeof currentValue === "number" || typeof currentValue === "string")) {
|
|
42
|
-
const newValue = {
|
|
43
|
-
amount: currentValue,
|
|
44
|
-
unit: "",
|
|
45
|
-
};
|
|
46
|
-
const nativeEvent = handleEventOnChange(newValue);
|
|
47
|
-
onChange?.(nativeEvent);
|
|
48
|
-
}
|
|
49
|
-
}, [currentValue, onChange, type]);
|
|
50
|
-
const valueSelect = useMemo(() => {
|
|
51
|
-
if (currentValue === undefined) {
|
|
52
|
-
return undefined;
|
|
53
|
-
}
|
|
54
|
-
// If it's an object, we try to get the unit property
|
|
55
|
-
if (typeof currentValue === "object" && "unit" in currentValue) {
|
|
56
|
-
return currentValue.unit;
|
|
57
|
-
}
|
|
58
|
-
return undefined;
|
|
59
|
-
}, [currentValue]);
|
|
60
|
-
const isBigInt = type === "AmountCrypto" ||
|
|
61
|
-
(type === "AmountCurrency" &&
|
|
62
|
-
isValidNumberGreaterThanMaxSafeInteger(baseValue?.toString()));
|
|
63
|
-
const [inputFocused, setInputFocused] = useState(false);
|
|
64
|
-
const rawAmountState = baseValue?.toString() ?? "";
|
|
65
|
-
const displayValueAmountState = useMemo(() => {
|
|
66
|
-
if (inputFocused) {
|
|
67
|
-
return rawAmountState;
|
|
68
|
-
}
|
|
69
|
-
if (type === "Amount" ||
|
|
70
|
-
type === "AmountPercentage" ||
|
|
71
|
-
type === "AmountFiat") {
|
|
72
|
-
if (!isValidNumber(rawAmountState) || isNotSafeValue(rawAmountState)) {
|
|
73
|
-
// Return the value without formatting if not valid
|
|
74
|
-
return baseValue?.toString() ?? "";
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
if (type === "AmountCrypto") {
|
|
78
|
-
return baseValue?.toString();
|
|
79
|
-
}
|
|
80
|
-
if (type === "AmountCurrency") {
|
|
81
|
-
if (isValidNumberGreaterThanMaxSafeInteger(rawAmountState)) {
|
|
82
|
-
// // Return the value without formatting if not valid
|
|
83
|
-
return baseValue?.toString() ?? "";
|
|
84
|
-
}
|
|
85
|
-
if (!isValidNumber(rawAmountState) || isNotSafeValue(rawAmountState)) {
|
|
86
|
-
// Return the value without formatting if not valid
|
|
87
|
-
return baseValue?.toString() ?? "";
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
// Here its safe to format the value
|
|
91
|
-
return displayValueAmount(baseValue?.toString() ?? "", precision, viewPrecision, trailingZeros);
|
|
92
|
-
}, [
|
|
93
|
-
inputFocused,
|
|
94
|
-
type,
|
|
95
|
-
baseValue,
|
|
96
|
-
precision,
|
|
97
|
-
viewPrecision,
|
|
98
|
-
trailingZeros,
|
|
99
|
-
rawAmountState,
|
|
100
|
-
]);
|
|
101
|
-
const isPercent = type === "AmountPercentage";
|
|
102
|
-
const isAmountWithUnit = type === "Amount" && typeof value === "object" && "unit" in value;
|
|
103
|
-
const isAmountWithoutUnit = type === "Amount" && !isAmountWithUnit;
|
|
104
|
-
const isShowSelect = (isAmountWithUnit && units && units.length > 0) ||
|
|
105
|
-
type === "AmountFiat" ||
|
|
106
|
-
type === "AmountCrypto" ||
|
|
107
|
-
type === "AmountCurrency";
|
|
108
|
-
// Handle the change of the input
|
|
109
|
-
const handleOnChangeInput = (e) => {
|
|
110
|
-
const inputValue = e.target.value;
|
|
111
|
-
if (type === "AmountFiat" && typeof value === "object") {
|
|
112
|
-
const newValue = {
|
|
113
|
-
...value,
|
|
114
|
-
amount: createAmountValue(inputValue),
|
|
115
|
-
};
|
|
116
|
-
const nativeEvent = handleEventOnChange(newValue);
|
|
117
|
-
onChange?.(nativeEvent);
|
|
118
|
-
}
|
|
119
|
-
// Handle the change of the currency crypto
|
|
120
|
-
if (type === "AmountCrypto" && typeof value === "object") {
|
|
121
|
-
const newValueCurrencyCrypto = {
|
|
122
|
-
...value,
|
|
123
|
-
amount: createAmountValue(inputValue),
|
|
124
|
-
};
|
|
125
|
-
const nativeEvent = handleEventOnChange(newValueCurrencyCrypto);
|
|
126
|
-
onChange?.(nativeEvent);
|
|
127
|
-
}
|
|
128
|
-
if (type === "AmountPercentage") {
|
|
129
|
-
const amountValue = createAmountValue(inputValue);
|
|
130
|
-
const nativeEvent = handleEventOnChange(amountValue);
|
|
131
|
-
onChange?.(nativeEvent);
|
|
132
|
-
}
|
|
133
|
-
// Handle the change of the universal amount
|
|
134
|
-
if (type === "AmountCurrency" && typeof value === "object") {
|
|
135
|
-
const newValue = {
|
|
136
|
-
...value,
|
|
137
|
-
amount: createAmountValue(inputValue),
|
|
138
|
-
};
|
|
139
|
-
const nativeEvent = handleEventOnChange(newValue);
|
|
140
|
-
onChange?.(nativeEvent);
|
|
141
|
-
}
|
|
142
|
-
if (type === "Amount" && typeof value === "object") {
|
|
143
|
-
const newValue = {
|
|
144
|
-
...value,
|
|
145
|
-
amount: createAmountValue(inputValue),
|
|
146
|
-
};
|
|
147
|
-
const nativeEvent = handleEventOnChange(newValue);
|
|
148
|
-
onChange?.(nativeEvent);
|
|
149
|
-
}
|
|
150
|
-
};
|
|
151
|
-
// Handle the change of the select
|
|
152
|
-
const handleOnChangeSelect = (e) => {
|
|
153
|
-
let newValue = {};
|
|
154
|
-
if (type === "AmountFiat" && typeof value === "object") {
|
|
155
|
-
newValue = {
|
|
156
|
-
...value,
|
|
157
|
-
unit: typeof e === "string" ? e : undefined,
|
|
158
|
-
};
|
|
159
|
-
}
|
|
160
|
-
if (type === "AmountCrypto" && typeof value === "object") {
|
|
161
|
-
newValue = {
|
|
162
|
-
...value,
|
|
163
|
-
unit: typeof e === "string" ? e : undefined,
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
if (type === "AmountCurrency" && typeof value === "object") {
|
|
167
|
-
newValue = {
|
|
168
|
-
...value,
|
|
169
|
-
unit: typeof e === "string" ? e : undefined,
|
|
170
|
-
};
|
|
171
|
-
}
|
|
172
|
-
if (type === "Amount" && typeof value === "object") {
|
|
173
|
-
newValue = {
|
|
174
|
-
...value,
|
|
175
|
-
unit: typeof e === "string" ? e : undefined,
|
|
176
|
-
};
|
|
177
|
-
}
|
|
178
|
-
const nativeEvent = handleEventOnChange(newValue);
|
|
179
|
-
onChange?.(nativeEvent);
|
|
180
|
-
};
|
|
181
|
-
const handleBlur = (e) => {
|
|
182
|
-
setInputFocused(false);
|
|
183
|
-
const inputValue = e.target.value;
|
|
184
|
-
//Avoid transformation if the value is not a number
|
|
185
|
-
if (type === "AmountFiat" && typeof value === "object") {
|
|
186
|
-
if (!isValidNumber(inputValue)) {
|
|
187
|
-
const newValue = {
|
|
188
|
-
...value,
|
|
189
|
-
amount: inputValue,
|
|
190
|
-
};
|
|
191
|
-
const nativeEvent = handleEventOnBlur(newValue);
|
|
192
|
-
onBlur?.(nativeEvent);
|
|
193
|
-
return;
|
|
194
|
-
}
|
|
195
|
-
// Avoid transformation if the value is not a number
|
|
196
|
-
if (isNotSafeValue(inputValue)) {
|
|
197
|
-
const newValue = {
|
|
198
|
-
...value,
|
|
199
|
-
amount: inputValue,
|
|
200
|
-
};
|
|
201
|
-
const nativeEvent = handleEventOnBlur(newValue);
|
|
202
|
-
onBlur?.(nativeEvent);
|
|
203
|
-
return;
|
|
204
|
-
}
|
|
205
|
-
const formatValue = displayValueAmount(inputValue, precision, viewPrecision, trailingZeros);
|
|
206
|
-
// Update the state with the formatted value
|
|
207
|
-
const newValue = {
|
|
208
|
-
...value,
|
|
209
|
-
amount: formatValue,
|
|
210
|
-
};
|
|
211
|
-
const nativeEvent = handleEventOnBlur(newValue);
|
|
212
|
-
onBlur?.(nativeEvent);
|
|
213
|
-
}
|
|
214
|
-
if (type === "AmountCrypto" && typeof value === "object") {
|
|
215
|
-
if (!isValidBigInt(inputValue) || isNotSafeValue(inputValue)) {
|
|
216
|
-
const newValue = {
|
|
217
|
-
...value,
|
|
218
|
-
amount: inputValue,
|
|
219
|
-
};
|
|
220
|
-
const nativeEventBlur = handleEventOnBlur(newValue);
|
|
221
|
-
onBlur?.(nativeEventBlur);
|
|
222
|
-
return;
|
|
223
|
-
}
|
|
224
|
-
const newValue = {
|
|
225
|
-
...value,
|
|
226
|
-
amount: inputValue,
|
|
227
|
-
};
|
|
228
|
-
const nativeEventBlur = handleEventOnBlur(newValue);
|
|
229
|
-
onBlur?.(nativeEventBlur);
|
|
230
|
-
}
|
|
231
|
-
if (type === "Amount" || type === "AmountPercentage") {
|
|
232
|
-
if (!isValidNumber(inputValue)) {
|
|
233
|
-
const nativeEventBlur = handleEventOnBlur(inputValue);
|
|
234
|
-
onBlur?.(nativeEventBlur);
|
|
235
|
-
return;
|
|
236
|
-
}
|
|
237
|
-
// Avoid transformation if the value is not a number
|
|
238
|
-
if (isNotSafeValue(inputValue)) {
|
|
239
|
-
const newValue = inputValue;
|
|
240
|
-
const nativeEventBlur = handleEventOnBlur(newValue);
|
|
241
|
-
onBlur?.(nativeEventBlur);
|
|
242
|
-
return;
|
|
243
|
-
}
|
|
244
|
-
const formatValue = displayValueAmount(inputValue, precision, viewPrecision, trailingZeros);
|
|
245
|
-
const nativeEventBlur = handleEventOnBlur(formatValue);
|
|
246
|
-
onBlur?.(nativeEventBlur);
|
|
247
|
-
return;
|
|
248
|
-
}
|
|
249
|
-
// Handle the blur event for AmountCurrency
|
|
250
|
-
if (type === "AmountCurrency" && typeof value === "object") {
|
|
251
|
-
if (isValidBigInt(inputValue) &&
|
|
252
|
-
isValidNumberGreaterThanMaxSafeInteger(inputValue)) {
|
|
253
|
-
const formatValue = inputValue;
|
|
254
|
-
const nativeEventBlur = handleEventOnBlur(formatValue);
|
|
255
|
-
onBlur?.(nativeEventBlur);
|
|
256
|
-
return;
|
|
257
|
-
}
|
|
258
|
-
// Avoid transformation if the value is not a number
|
|
259
|
-
if (!isValidNumber(inputValue)) {
|
|
260
|
-
const newValue = {
|
|
261
|
-
...value,
|
|
262
|
-
amount: inputValue,
|
|
263
|
-
};
|
|
264
|
-
onBlur?.(newValue);
|
|
265
|
-
return;
|
|
266
|
-
}
|
|
267
|
-
const formatValue = viewPrecision !== undefined
|
|
268
|
-
? trailingZeros
|
|
269
|
-
? parseFloat(inputValue).toFixed(viewPrecision)
|
|
270
|
-
: parseFloat(parseFloat(inputValue).toFixed(viewPrecision)).toString()
|
|
271
|
-
: inputValue;
|
|
272
|
-
if (isNotSafeValue(inputValue)) {
|
|
273
|
-
const newValue = {
|
|
274
|
-
...value,
|
|
275
|
-
amount: inputValue,
|
|
276
|
-
};
|
|
277
|
-
const nativeEventBlur = handleEventOnBlur(newValue);
|
|
278
|
-
onBlur?.(nativeEventBlur);
|
|
279
|
-
return;
|
|
280
|
-
}
|
|
281
|
-
const newValue = {
|
|
282
|
-
...value,
|
|
283
|
-
amount: formatValue,
|
|
284
|
-
};
|
|
285
|
-
onBlur?.(newValue);
|
|
286
|
-
}
|
|
287
|
-
};
|
|
288
|
-
const handleIsInputFocused = () => {
|
|
289
|
-
setInputFocused(true);
|
|
290
|
-
};
|
|
291
|
-
const options = units ?? getDefaultUnits(type);
|
|
292
|
-
//Put the placeholder in case that value its not in the options
|
|
293
|
-
const validatedValueSelect = valueSelect && units?.some((unit) => unit.ticker === valueSelect)
|
|
294
|
-
? valueSelect
|
|
295
|
-
: undefined;
|
|
296
|
-
return {
|
|
297
|
-
isPercent,
|
|
298
|
-
isShowSelect,
|
|
299
|
-
options,
|
|
300
|
-
valueInput: displayValueAmountState,
|
|
301
|
-
valueSelect: validatedValueSelect,
|
|
302
|
-
handleOnChangeInput,
|
|
303
|
-
handleOnChangeSelect,
|
|
304
|
-
handleBlur,
|
|
305
|
-
isBigInt,
|
|
306
|
-
handleIsInputFocused,
|
|
307
|
-
inputFocused,
|
|
308
|
-
isAmountWithoutUnit,
|
|
309
|
-
};
|
|
310
|
-
};
|
|
311
|
-
//# sourceMappingURL=use-amount-input.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"use-amount-input.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/amount-input/use-amount-input.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,yEAAyE,CAAC;AASxG,OAAO,EACL,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,cAAc,EACd,aAAa,EACb,sCAAsC,GACvC,MAAM,YAAY,CAAC;AAcpB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,EAC7B,KAAK,EACL,YAAY,EACZ,IAAI,EACJ,QAAQ,EACR,MAAM,EACN,SAAS,EACT,aAAa,EACb,aAAa,EACb,KAAK,GACe,EAAE,EAAE;IACxB,MAAM,YAAY,GAAG,KAAK,IAAI,YAAY,CAAC;IAE3C,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,EAAE;QAC7B,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;YAC/B,OAAO,SAAS,CAAC;QACnB,CAAC;QAED,mEAAmE;QACnE,IAAI,OAAO,YAAY,KAAK,QAAQ,EAAE,CAAC;YACrC,OAAO,YAAY,CAAC,MAAM,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KAAK,EAAE,IAAI,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,KAAK,WAAW,CAAC;QAC/D,CAAC,CAAC,WAAW;QACb,CAAC,CAAC,SAAS,CAAC;IAEhB,OAAO;QACL,SAAS;QACT,YAAY;QACZ,OAAO;QACP,UAAU,EAAE,uBAAuB;QACnC,WAAW,EAAE,oBAAoB;QACjC,mBAAmB;QACnB,oBAAoB;QACpB,UAAU;QACV,QAAQ;QACR,oBAAoB;QACpB,YAAY;QACZ,mBAAmB;KACpB,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { type Currency } from "#scalars";
|
|
2
|
-
import type { AmountInputPropsGeneric, AmountValue } from "./types.js";
|
|
3
|
-
export declare const getDefaultUnits: (type: AmountInputPropsGeneric["type"]) => {
|
|
4
|
-
ticker: string;
|
|
5
|
-
crypto: boolean;
|
|
6
|
-
label: string;
|
|
7
|
-
symbol: string;
|
|
8
|
-
}[];
|
|
9
|
-
export declare const isValidBigInt: (value: string | undefined) => boolean;
|
|
10
|
-
export declare const isValidNumberGreaterThanMaxSafeInteger: (value: string | undefined) => boolean;
|
|
11
|
-
export declare const isNotSafeValue: (value: string) => boolean;
|
|
12
|
-
export declare const displayValueAmount: (value?: string, precision?: number, viewPrecision?: number, trailingZeros?: boolean) => string | number | undefined;
|
|
13
|
-
export declare const handleEventOnChange: <T>(value: T) => React.ChangeEvent<HTMLInputElement>;
|
|
14
|
-
export declare const handleEventOnBlur: <T>(value: T) => React.FocusEvent<HTMLInputElement>;
|
|
15
|
-
export declare const createAmountValue: (inputValue: string) => string | undefined;
|
|
16
|
-
export declare const isValidUnit: (type: AmountInputPropsGeneric["type"], value: AmountValue, units?: Currency[]) => boolean;
|
|
17
|
-
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/amount-input/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,QAAQ,EAEd,MAAM,UAAU,CAAC;AAClB,OAAO,KAAK,EAAE,uBAAuB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEvE,eAAO,MAAM,eAAe,GAAI,MAAM,uBAAuB,CAAC,MAAM,CAAC;;;;;GAWpE,CAAC;AAEF,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,GAAG,SAAS,KAAG,OAOzD,CAAC;AAEF,eAAO,MAAM,sCAAsC,GACjD,OAAO,MAAM,GAAG,SAAS,YAS1B,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,YAE3C,CAAC;AAEF,eAAO,MAAM,kBAAkB,GAC7B,QAAQ,MAAM,EACd,YAAY,MAAM,EAClB,gBAAgB,MAAM,EACtB,gBAAgB,OAAO,gCA4BxB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,CAAC,EAAE,OAAO,CAAC,KASZ,KAAK,CAAC,WAAW,CAAC,gBAAgB,CACpE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,CAAC,EAAE,OAAO,CAAC,KASV,KAAK,CAAC,UAAU,CAAC,gBAAgB,CACnE,CAAC;AAEF,eAAO,MAAM,iBAAiB,GAAI,YAAY,MAAM,uBAEnD,CAAC;AAEF,eAAO,MAAM,WAAW,GACtB,MAAM,uBAAuB,CAAC,MAAM,CAAC,EACrC,OAAO,WAAW,EAClB,QAAQ,QAAQ,EAAE,YAgBnB,CAAC"}
|
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
import { cryptoCurrencies, currencies, fiatCurrencies, } from "#scalars";
|
|
2
|
-
export const getDefaultUnits = (type) => {
|
|
3
|
-
switch (type) {
|
|
4
|
-
case "AmountFiat":
|
|
5
|
-
return fiatCurrencies();
|
|
6
|
-
case "AmountCrypto":
|
|
7
|
-
return cryptoCurrencies();
|
|
8
|
-
case "AmountCurrency":
|
|
9
|
-
return currencies();
|
|
10
|
-
default:
|
|
11
|
-
return [];
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
export const isValidBigInt = (value) => {
|
|
15
|
-
if (!value) {
|
|
16
|
-
return false;
|
|
17
|
-
}
|
|
18
|
-
// Ensure the value contains only digits (no decimal points)
|
|
19
|
-
const bigintRegex = /^\d+$/;
|
|
20
|
-
return bigintRegex.test(value);
|
|
21
|
-
};
|
|
22
|
-
export const isValidNumberGreaterThanMaxSafeInteger = (value) => {
|
|
23
|
-
if (!value) {
|
|
24
|
-
return false;
|
|
25
|
-
}
|
|
26
|
-
const isValidBigIntValue = isValidBigInt(value);
|
|
27
|
-
return (isValidBigIntValue && Math.abs(Number(value)) > Number.MAX_SAFE_INTEGER);
|
|
28
|
-
};
|
|
29
|
-
export const isNotSafeValue = (value) => {
|
|
30
|
-
return Math.abs(Number(value)) > Number.MAX_SAFE_INTEGER;
|
|
31
|
-
};
|
|
32
|
-
export const displayValueAmount = (value, precision, viewPrecision, trailingZeros) => {
|
|
33
|
-
if (!value) {
|
|
34
|
-
return undefined; // Return undefined if no value is provided
|
|
35
|
-
}
|
|
36
|
-
// If viewPrecision is provided but not precision, format to viewPrecision
|
|
37
|
-
if (viewPrecision !== undefined && precision === undefined) {
|
|
38
|
-
const formattedValue = parseFloat(value).toFixed(viewPrecision);
|
|
39
|
-
return trailingZeros
|
|
40
|
-
? formattedValue
|
|
41
|
-
: parseFloat(formattedValue).toString();
|
|
42
|
-
}
|
|
43
|
-
// If precision is provided but not viewPrecision, truncate to precision
|
|
44
|
-
if (precision !== undefined && viewPrecision === undefined) {
|
|
45
|
-
const formattedValue = parseFloat(value).toFixed(precision);
|
|
46
|
-
// If the number of decimals is greater than or equal to the precision, apply toFixed
|
|
47
|
-
return parseFloat(formattedValue).toString();
|
|
48
|
-
}
|
|
49
|
-
// If both are present, show the value with viewPrecision when focused
|
|
50
|
-
if (precision !== undefined && viewPrecision !== undefined) {
|
|
51
|
-
const formattedValue = parseFloat(value).toFixed(viewPrecision);
|
|
52
|
-
return trailingZeros ? formattedValue : parseFloat(formattedValue);
|
|
53
|
-
}
|
|
54
|
-
return value;
|
|
55
|
-
};
|
|
56
|
-
export const handleEventOnChange = (value) => {
|
|
57
|
-
const nativeEvent = new Event("change", { bubbles: true, cancelable: true });
|
|
58
|
-
Object.defineProperty(nativeEvent, "target", {
|
|
59
|
-
value: { value },
|
|
60
|
-
writable: false,
|
|
61
|
-
});
|
|
62
|
-
return nativeEvent;
|
|
63
|
-
};
|
|
64
|
-
export const handleEventOnBlur = (value) => {
|
|
65
|
-
const nativeEvent = new Event("blur", { bubbles: true, cancelable: true });
|
|
66
|
-
Object.defineProperty(nativeEvent, "target", {
|
|
67
|
-
value: { value },
|
|
68
|
-
writable: false,
|
|
69
|
-
});
|
|
70
|
-
return nativeEvent;
|
|
71
|
-
};
|
|
72
|
-
export const createAmountValue = (inputValue) => {
|
|
73
|
-
return inputValue === "" ? undefined : inputValue;
|
|
74
|
-
};
|
|
75
|
-
export const isValidUnit = (type, value, units) => {
|
|
76
|
-
if (!units)
|
|
77
|
-
return true;
|
|
78
|
-
if (type === "Amount" && typeof value === "object" && "unit" in value) {
|
|
79
|
-
return units.some((u) => u.ticker === value.unit);
|
|
80
|
-
}
|
|
81
|
-
if (type === "AmountCurrency" && typeof value === "object") {
|
|
82
|
-
return units.some((u) => u.ticker === value.unit);
|
|
83
|
-
}
|
|
84
|
-
if (type === "AmountCrypto" && typeof value === "object") {
|
|
85
|
-
return units.some((u) => u.ticker === value.unit);
|
|
86
|
-
}
|
|
87
|
-
if (type === "AmountFiat" && typeof value === "object") {
|
|
88
|
-
return units.some((u) => u.ticker === value.unit);
|
|
89
|
-
}
|
|
90
|
-
return false;
|
|
91
|
-
};
|
|
92
|
-
//# sourceMappingURL=utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/amount-input/utils.ts"],"names":[],"mappings":"AAAA,O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Q,EAAE,CAAC;QACzD,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACD,IAAI,IAAI,KAAK,YAAY,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE,CAAC;QACvD,OAAO,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,KAAK,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-base.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/checkbox/checkbox-base.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,KAAK,aAAa,GAAG,OAAO,GAAG,eAAe,CAAC;AAQ/C,QAAA,MAAM,YAAY;cAHN,OAAO;2CAwEjB,CAAC;AAIH,OAAO,EAAE,YAAY,EAAE,KAAK,aAAa,EAAE,CAAC"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "#scalars";
|
|
3
|
-
import * as CheckboxPrimitive from "@radix-ui/react-checkbox";
|
|
4
|
-
import * as React from "react";
|
|
5
|
-
const CheckboxBase = React.forwardRef(({ className, checked, invalid, ...props }, ref) => (_jsx(CheckboxPrimitive.Root, { ref: ref, className: cn(
|
|
6
|
-
// Base styles
|
|
7
|
-
"peer size-4 shrink-0 rounded",
|
|
8
|
-
// Border & Shadow
|
|
9
|
-
"border-input border shadow-sm shadow-black/[.04]",
|
|
10
|
-
// Background & Ring
|
|
11
|
-
"ring-offset-background transition-shadow",
|
|
12
|
-
// Focus styles
|
|
13
|
-
"focus-visible:border-ring focus-visible:ring-ring focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-offset-2",
|
|
14
|
-
// Disabled state
|
|
15
|
-
"disabled:cursor-not-allowed disabled:border-gray-700 disabled:data-[invalid=false]:data-[state=checked]:bg-gray-700 disabled:data-[invalid=false]:data-[state=indeterminate]:bg-gray-700 dark:disabled:data-[invalid=false]:data-[state=checked]:bg-gray-500 dark:disabled:data-[invalid=false]:data-[state=indeterminate]:bg-gray-500",
|
|
16
|
-
// Checked & Indeterminate states
|
|
17
|
-
"data-[state]:border-gray-700 dark:data-[state]:border-gray-500", "data-[state=checked]:bg-gray-900 data-[state=indeterminate]:bg-gray-900 dark:data-[state=checked]:bg-gray-400 dark:data-[state=indeterminate]:bg-gray-400", "data-[state=checked]:text-slate-50 data-[state=indeterminate]:text-slate-50 dark:data-[state=checked]:text-gray-900 dark:data-[state=indeterminate]:text-gray-900",
|
|
18
|
-
// hover states
|
|
19
|
-
!props.disabled && [
|
|
20
|
-
"group-hover:border-gray-900 data-[state=checked]:group-hover:bg-gray-900 data-[state=indeterminate]:group-hover:bg-gray-900",
|
|
21
|
-
"dark:group-hover:border-slate-50 dark:data-[state=checked]:group-hover:bg-slate-50 dark:data-[state=indeterminate]:group-hover:bg-slate-50",
|
|
22
|
-
],
|
|
23
|
-
// Error state
|
|
24
|
-
"data-[invalid=true]:data-[state]:!border-red-800 data-[invalid=true]:data-[state=checked]:!bg-red-800 data-[invalid=true]:data-[state=indeterminate]:!bg-red-800", "dark:data-[invalid=true]:data-[state]:!border-red-800 dark:data-[invalid=true]:data-[state=checked]:!bg-red-800 dark:data-[invalid=true]:data-[state=indeterminate]:!bg-red-800",
|
|
25
|
-
// error hover states
|
|
26
|
-
"data-[invalid=true]:group-hover:!border-red-900 data-[invalid=true]:data-[state=checked]:group-hover:!bg-red-900 data-[invalid=true]:data-[state=indeterminate]:group-hover:!bg-red-900", className), checked: checked, "data-invalid": invalid, ...props, children: _jsx(CheckboxPrimitive.Indicator, { className: "flex items-center justify-center text-current", children: checked === "indeterminate" ? (_jsx("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M0.75 4.5C0.75 4.08579 1.08579 3.75 1.5 3.75H7.5C7.91421 3.75 8.25 4.08579 8.25 4.5C8.25 4.91421 7.91421 5.25 7.5 5.25H1.5C1.08579 5.25 0.75 4.91421 0.75 4.5Z" }) })) : checked ? (_jsx("svg", { width: "9", height: "9", viewBox: "0 0 9 9", fill: "currentcolor", xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M8.53547 0.62293C8.88226 0.849446 8.97976 1.3142 8.75325 1.66099L4.5083 8.1599C4.38833 8.34356 4.19397 8.4655 3.9764 8.49358C3.75883 8.52167 3.53987 8.45309 3.3772 8.30591L0.616113 5.80777C0.308959 5.52987 0.285246 5.05559 0.563148 4.74844C0.84105 4.44128 1.31533 4.41757 1.62249 4.69547L3.73256 6.60459L7.49741 0.840706C7.72393 0.493916 8.18868 0.396414 8.53547 0.62293Z" }) })) : null }) })));
|
|
27
|
-
CheckboxBase.displayName = "CheckboxBase";
|
|
28
|
-
export { CheckboxBase };
|
|
29
|
-
//# sourceMappingURL=checkbox-base.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox-base.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/checkbox/checkbox-base.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC9B,OAAO,KAAK,iBAAiB,MAAM,0BAA0B,CAAC;AAC9D,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAU/B,MAAM,YAAY,GAAG,KAAK,CAAC,UAAU,CAGnC,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAA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AAsB,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import type { InputBaseProps } from "../../../../scalars/components/types.js";
|
|
3
|
-
import { type CheckboxValue } from "./checkbox-base.js";
|
|
4
|
-
type CheckboxBaseProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof InputBaseProps<CheckboxValue> | "onChange">;
|
|
5
|
-
export interface CheckboxProps extends CheckboxBaseProps, InputBaseProps<CheckboxValue> {
|
|
6
|
-
onChange?: ((checked: CheckboxValue) => void) | ((checked: boolean) => void);
|
|
7
|
-
}
|
|
8
|
-
declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLButtonElement>>;
|
|
9
|
-
export { Checkbox };
|
|
10
|
-
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/checkbox/checkbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAgB,MAAM,OAAO,CAAC;AAGrC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAC9E,OAAO,EAAgB,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAEtE,KAAK,iBAAiB,GAAG,IAAI,CAC3B,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,MAAM,cAAc,CAAC,aAAa,CAAC,GAAG,UAAU,CACjD,CAAC;AAEF,MAAM,WAAW,aACf,SAAQ,iBAAiB,EACvB,cAAc,CAAC,aAAa,CAAC;IAC/B,QAAQ,CAAC,EAAE,CAAC,CAAC,OAAO,EAAE,aAAa,KAAK,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC,CAAC;CAC9E;AAED,QAAA,MAAM,QAAQ,yFA6Db,CAAC;AAIF,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn } from "#scalars";
|
|
3
|
-
import React, { useId } from "react";
|
|
4
|
-
import { FormLabel } from "../../../../scalars/components/fragments/form-label/index.js";
|
|
5
|
-
import { FormMessageList } from "../../../../scalars/components/fragments/form-message/index.js";
|
|
6
|
-
import { CheckboxBase } from "./checkbox-base.js";
|
|
7
|
-
const Checkbox = React.forwardRef(({ id: idProp, name, label, value, defaultValue, disabled, required, description, errors, warnings, onChange, className, ...props }, ref) => {
|
|
8
|
-
const generatedId = useId();
|
|
9
|
-
const id = idProp ?? generatedId;
|
|
10
|
-
const hasError = !!errors?.length;
|
|
11
|
-
const castValue = (value) => {
|
|
12
|
-
if (value === "true")
|
|
13
|
-
return true;
|
|
14
|
-
if (value === "false")
|
|
15
|
-
return false;
|
|
16
|
-
return value;
|
|
17
|
-
};
|
|
18
|
-
return (_jsxs("div", { className: cn("flex flex-col gap-2"), children: [_jsxs("div", { className: cn("group flex items-center space-x-2", className), children: [_jsx(CheckboxBase, { id: id, name: name, checked: castValue(value ?? defaultValue), disabled: disabled, onCheckedChange: onChange, required: required, invalid: hasError, "aria-invalid": hasError, ref: ref, ...props }), _jsx(FormLabel, { htmlFor: id, required: required, disabled: disabled, hasError: hasError, description: description, className: cn(!disabled && "group-hover:cursor-pointer"), inline: true, children: label })] }), warnings && _jsx(FormMessageList, { type: "warning", messages: warnings }), errors && _jsx(FormMessageList, { type: "error", messages: errors })] }));
|
|
19
|
-
});
|
|
20
|
-
Checkbox.displayName = "Checkbox";
|
|
21
|
-
export { Checkbox };
|
|
22
|
-
//# sourceMappingURL=checkbox.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/checkbox/checkbox.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,EAAE,EAAE,MAAM,UAAU,CAA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IACR,OAAO,EAAE,EAAE,EACX,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,EAClB,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,EAAE,CAAC,CAAC,QAAQ,IAAI,4BAA4B,CAAC,EACxD,MAAM,kBAEL,KAAK,GACI,IACR,EACL,QAAQ,IAAI,KAAC,eAAe,IAAC,IAAI,EAAC,SAAS,EAAC,QAAQ,EAAE,QAAQ,GAAI,EAClE,MAAM,IAAI,KAAC,eAAe,IAAC,IAAI,EAAC,OAAO,EAAC,QAAQ,EAAE,MAAM,GAAI,IACzD,CACP,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU,CAAC;AAElC,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/checkbox/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAsB,MAAM,eAAe,CAAC"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { type InputBaseProps } from "#scalars";
|
|
2
|
-
import type { DateFieldValue } from "./types.js";
|
|
3
|
-
interface DatePickerProps extends InputBaseProps<DateFieldValue> {
|
|
4
|
-
label?: string;
|
|
5
|
-
id?: string;
|
|
6
|
-
name: string;
|
|
7
|
-
disabled?: boolean;
|
|
8
|
-
required?: boolean;
|
|
9
|
-
value?: DateFieldValue;
|
|
10
|
-
defaultValue?: DateFieldValue;
|
|
11
|
-
placeholder?: string;
|
|
12
|
-
onChange?: (e: React.ChangeEvent<HTMLInputElement>) => void;
|
|
13
|
-
onBlur?: (e: React.FocusEvent<HTMLInputElement>) => void;
|
|
14
|
-
inputProps?: Omit<InputBaseProps<DateFieldValue>, "name" | "onChange" | "value" | "defaultValue" | "onBlur">;
|
|
15
|
-
minDate?: string;
|
|
16
|
-
maxDate?: string;
|
|
17
|
-
disablePastDates?: boolean;
|
|
18
|
-
disableFutureDates?: boolean;
|
|
19
|
-
dateFormat?: string;
|
|
20
|
-
weekStart?: string;
|
|
21
|
-
autoClose?: boolean;
|
|
22
|
-
}
|
|
23
|
-
declare const DatePicker: import("react").ForwardRefExoticComponent<DatePickerProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
24
|
-
export { DatePicker, type DatePickerProps };
|
|
25
|
-
//# sourceMappingURL=date-picker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"date-picker.d.ts","sourceRoot":"","sources":["../../../../../../src/ui/components/data-entry/date-picker/date-picker.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,cAAc,EACpB,MAAM,UAAU,CAAC;AAIlB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD,UAAU,eAAgB,SAAQ,cAAc,CAAC,cAAc,CAAC;IAC9D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IAC5D,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,gBAAgB,CAAC,KAAK,IAAI,CAAC;IACzD,UAAU,CAAC,EAAE,IAAI,CACf,cAAc,CAAC,cAAc,CAAC,EAC9B,MAAM,GAAG,UAAU,GAAG,OAAO,GAAG,cAAc,GAAG,QAAQ,CAC1D,CAAC;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,QAAA,MAAM,UAAU,8GAiKf,CAAC;AAIF,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,CAAC"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { cn, FormDescription, FormGroup, FormLabel, FormMessageList, } from "#scalars";
|
|
3
|
-
import { forwardRef } from "react";
|
|
4
|
-
import { BasePickerField } from "../date-time-picker/base-picker.js";
|
|
5
|
-
import { Calendar } from "./subcomponents/calendar/calendar.js";
|
|
6
|
-
import { useDatePickerField } from "./use-date-picker.js";
|
|
7
|
-
const DatePicker = forwardRef(({ label, id, errors, name, disabled, required, value, defaultValue, placeholder, description, warnings, onChange, onBlur, inputProps, disablePastDates, disableFutureDates, dateFormat, weekStart, autoClose = false, minDate, maxDate, ...props }, ref) => {
|
|
8
|
-
const { date, inputValue, handleDateSelect, handleInputChange, isOpen, setIsOpen, handleBlur, disabledDates, weekStartDay, handleDayClick, } = useDatePickerField({
|
|
9
|
-
value,
|
|
10
|
-
defaultValue,
|
|
11
|
-
onChange,
|
|
12
|
-
onBlur,
|
|
13
|
-
disablePastDates,
|
|
14
|
-
disableFutureDates,
|
|
15
|
-
dateFormat,
|
|
16
|
-
weekStart,
|
|
17
|
-
autoClose,
|
|
18
|
-
minDate,
|
|
19
|
-
maxDate,
|
|
20
|
-
});
|
|
21
|
-
return (_jsxs(FormGroup, { children: [label && (_jsx(FormLabel, { htmlFor: id, required: required, disabled: disabled, hasError: !!errors?.length, children: label })), _jsx(BasePickerField, { ref: ref, label: label, id: id, value: inputValue, name: name, errors: errors, disabled: disabled, required: required, iconName: "CalendarTime", placeholder: placeholder, isOpen: isOpen, setIsOpen: setIsOpen, onInputChange: handleInputChange, inputProps: inputProps, handleBlur: handleBlur, "data-cast": `DateString:${dateFormat}`, className: cn(
|
|
22
|
-
// custom styles
|
|
23
|
-
"px-4 pb-6 pt-3"), children: _jsx(Calendar, { mode: "single", selected: date, weekStartsOn: weekStartDay, onSelect: handleDateSelect, disabled: disabledDates, onDayClick: handleDayClick, className: cn("w-full", "p-0",
|
|
24
|
-
// dark
|
|
25
|
-
"dark:text-gray-500",
|
|
26
|
-
// custom styles
|
|
27
|
-
"font-inter", "text-[14px]", "font-semibold", "leading-[22px]"), weekdaysClassName: cn("h-[34px]", "gap-x-[3px]", "dark:text-gray-600"), monthGridClassName: cn("w-full", "px-[5.5px]"), dayClassName: cn("w-[34px] cursor-pointer text-[12px] text-gray-900 hover:rounded-[4px] hover:bg-gray-200",
|
|
28
|
-
// dark
|
|
29
|
-
"dark:text-gray-50 hover:dark:bg-gray-900", "disabled:text-gray-300"), buttonPreviousClassName: cn("border border-gray-200",
|
|
30
|
-
// hover
|
|
31
|
-
"hover:border-gray-300 hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-900",
|
|
32
|
-
// dark
|
|
33
|
-
"dark:border-gray-900 dark:text-gray-300"), buttonNextClassName: cn("border border-gray-200",
|
|
34
|
-
// hover
|
|
35
|
-
"hover:border-gray-300 hover:bg-gray-100 hover:text-gray-900 dark:hover:bg-gray-900",
|
|
36
|
-
// dark
|
|
37
|
-
"dark:border-gray-900 dark:text-gray-300"), todayClassName: cn("rounded-[4px]", "bg-gray-100",
|
|
38
|
-
// dark
|
|
39
|
-
"dark:bg-gray-900 dark:text-gray-50",
|
|
40
|
-
// When selected, apply these styles with !important to ensure priority
|
|
41
|
-
"aria-selected:!bg-gray-900 aria-selected:!text-white"), selectedClassName: cn("rounded-[4px]", "bg-gray-900 text-white", "hover:bg-gray-900",
|
|
42
|
-
// dark
|
|
43
|
-
"dark:bg-gray-50 dark:text-gray-900", "dark:hover:bg-gray-50 dark:hover:text-gray-900"), dayButtonClassName: cn("text-[12px] font-medium"), weekClassName: cn("w-full"), disabledClassName: cn("!cursor-not-allowed !text-gray-300 hover:!bg-transparent [&>button]:hover:!bg-transparent"), ...props }) }), description && _jsx(FormDescription, { children: description }), warnings && _jsx(FormMessageList, { messages: warnings, type: "warning" }), errors && _jsx(FormMessageList, { messages: errors, type: "error" })] }));
|
|
44
|
-
});
|
|
45
|
-
DatePicker.displayName = "DatePicker";
|
|
46
|
-
export { DatePicker };
|
|
47
|
-
//# sourceMappingURL=date-picker.js.map
|