@powerhousedao/document-engineering 1.38.0 → 1.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/setupTests.d.ts +2 -0
- package/dist/setupTests.d.ts.map +1 -0
- package/dist/setupTests.js +2 -0
- package/dist/setupTests.js.map +1 -0
- package/dist/src/scalars/components/aid-field/aid-field.stories.d.ts +71 -0
- package/dist/src/scalars/components/aid-field/aid-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/aid-field/aid-field.stories.js +495 -0
- package/dist/src/scalars/components/aid-field/aid-field.stories.js.map +1 -0
- package/dist/src/scalars/components/aid-field/aid-field.test.d.ts +2 -0
- package/dist/src/scalars/components/aid-field/aid-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/aid-field/aid-field.test.js +180 -0
- package/dist/src/scalars/components/aid-field/aid-field.test.js.map +1 -0
- package/dist/src/scalars/components/amount-field/amount-field.stories.d.ts +267 -0
- package/dist/src/scalars/components/amount-field/amount-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/amount-field/amount-field.stories.js +339 -0
- package/dist/src/scalars/components/amount-field/amount-field.stories.js.map +1 -0
- package/dist/src/scalars/components/amount-field/amount-field.test.d.ts +2 -0
- package/dist/src/scalars/components/amount-field/amount-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/amount-field/amount-field.test.js +53 -0
- package/dist/src/scalars/components/amount-field/amount-field.test.js.map +1 -0
- package/dist/src/scalars/components/boolean-field/boolean-field.stories.d.ts +85 -0
- package/dist/src/scalars/components/boolean-field/boolean-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/boolean-field/boolean-field.stories.js +113 -0
- package/dist/src/scalars/components/boolean-field/boolean-field.stories.js.map +1 -0
- package/dist/src/scalars/components/boolean-field/boolean-field.test.d.ts +2 -0
- package/dist/src/scalars/components/boolean-field/boolean-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/boolean-field/boolean-field.test.js +82 -0
- package/dist/src/scalars/components/boolean-field/boolean-field.test.js.map +1 -0
- package/dist/src/scalars/components/country-code-field/country-code-field.js +1 -1
- package/dist/src/scalars/components/country-code-field/country-code-field.js.map +1 -1
- package/dist/src/scalars/components/country-code-field/country-code-field.stories.d.ts +19 -0
- package/dist/src/scalars/components/country-code-field/country-code-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/country-code-field/country-code-field.stories.js +173 -0
- package/dist/src/scalars/components/country-code-field/country-code-field.stories.js.map +1 -0
- package/dist/src/scalars/components/country-code-field/country-code-field.test.d.ts +2 -0
- package/dist/src/scalars/components/country-code-field/country-code-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/country-code-field/country-code-field.test.js +116 -0
- package/dist/src/scalars/components/country-code-field/country-code-field.test.js.map +1 -0
- package/dist/src/scalars/components/currency-code-field/currency-code-field.stories.d.ts +12 -0
- package/dist/src/scalars/components/currency-code-field/currency-code-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/currency-code-field/currency-code-field.stories.js +160 -0
- package/dist/src/scalars/components/currency-code-field/currency-code-field.stories.js.map +1 -0
- package/dist/src/scalars/components/currency-code-field/currency-code-field.test.d.ts +2 -0
- package/dist/src/scalars/components/currency-code-field/currency-code-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/currency-code-field/currency-code-field.test.js +47 -0
- package/dist/src/scalars/components/currency-code-field/currency-code-field.test.js.map +1 -0
- package/dist/src/scalars/components/date-picker-field/date-picker-field.stories.d.ts +26 -0
- package/dist/src/scalars/components/date-picker-field/date-picker-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/date-picker-field/date-picker-field.stories.js +296 -0
- package/dist/src/scalars/components/date-picker-field/date-picker-field.stories.js.map +1 -0
- package/dist/src/scalars/components/date-picker-field/date-picker-field.test.d.ts +2 -0
- package/dist/src/scalars/components/date-picker-field/date-picker-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/date-picker-field/date-picker-field.test.js +119 -0
- package/dist/src/scalars/components/date-picker-field/date-picker-field.test.js.map +1 -0
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.stories.d.ts +19 -0
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.stories.js +218 -0
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.stories.js.map +1 -0
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.test.d.ts +2 -0
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.test.js +125 -0
- package/dist/src/scalars/components/date-time-picker-field/date-time-picker-field.test.js.map +1 -0
- package/dist/src/scalars/components/email-field/email-field.stories.d.ts +12 -0
- package/dist/src/scalars/components/email-field/email-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/email-field/email-field.stories.js +108 -0
- package/dist/src/scalars/components/email-field/email-field.stories.js.map +1 -0
- package/dist/src/scalars/components/email-field/email-field.test.d.ts +2 -0
- package/dist/src/scalars/components/email-field/email-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/email-field/email-field.test.js +162 -0
- package/dist/src/scalars/components/email-field/email-field.test.js.map +1 -0
- package/dist/src/scalars/components/enum-field/enum-field.stories.d.ts +46 -0
- package/dist/src/scalars/components/enum-field/enum-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/enum-field/enum-field.stories.js +360 -0
- package/dist/src/scalars/components/enum-field/enum-field.stories.js.map +1 -0
- package/dist/src/scalars/components/enum-field/enum-field.test.d.ts +2 -0
- package/dist/src/scalars/components/enum-field/enum-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/enum-field/enum-field.test.js +89 -0
- package/dist/src/scalars/components/enum-field/enum-field.test.js.map +1 -0
- package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.stories.d.ts +21 -0
- package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.stories.js +76 -0
- package/dist/src/scalars/components/examples/enum-field-example/enum-field-example.stories.js.map +1 -0
- package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.stories.d.ts +21 -0
- package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.stories.js +141 -0
- package/dist/src/scalars/components/examples/multiple-fields-with-complex-layout/multiple-fields-with-complex-layout.stories.js.map +1 -0
- package/dist/src/scalars/components/examples/reset-button/reset-button.stories.d.ts +21 -0
- package/dist/src/scalars/components/examples/reset-button/reset-button.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/examples/reset-button/reset-button.stories.js +48 -0
- package/dist/src/scalars/components/examples/reset-button/reset-button.stories.js.map +1 -0
- package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.stories.d.ts +21 -0
- package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.stories.js +47 -0
- package/dist/src/scalars/components/examples/reset-on-successful-submit/reset-on-successful-submit.stories.js.map +1 -0
- package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.stories.d.ts +21 -0
- package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.stories.js +19 -0
- package/dist/src/scalars/components/examples/submit-changes-only/submit-changes-only.stories.js.map +1 -0
- package/dist/src/scalars/components/file-field/file-field.stories.d.ts +15 -0
- package/dist/src/scalars/components/file-field/file-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/file-field/file-field.stories.js +199 -0
- package/dist/src/scalars/components/file-field/file-field.stories.js.map +1 -0
- package/dist/src/scalars/components/file-field/index.js +1 -0
- package/dist/src/scalars/components/file-field/index.js.map +1 -1
- package/dist/src/scalars/components/form/form.test.d.ts +2 -0
- package/dist/src/scalars/components/form/form.test.d.ts.map +1 -0
- package/dist/src/scalars/components/form/form.test.js +129 -0
- package/dist/src/scalars/components/form/form.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/button/button.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/button/button.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/button/button.test.js +11 -0
- package/dist/src/scalars/components/fragments/button/button.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/character-counter/character-counter.stories.d.ts +30 -0
- package/dist/src/scalars/components/fragments/character-counter/character-counter.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/character-counter/character-counter.stories.js +48 -0
- package/dist/src/scalars/components/fragments/character-counter/character-counter.stories.js.map +1 -0
- package/dist/src/scalars/components/fragments/character-counter/character-counter.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/character-counter/character-counter.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/character-counter/character-counter.test.js +36 -0
- package/dist/src/scalars/components/fragments/character-counter/character-counter.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.test.js +53 -0
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/command/command.d.ts +3 -3
- package/dist/src/scalars/components/fragments/command/command.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/command/command.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/command/command.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/command/command.test.js +11 -0
- package/dist/src/scalars/components/fragments/command/command.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/form-description/form-description.stories.d.ts +18 -0
- package/dist/src/scalars/components/fragments/form-description/form-description.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/form-description/form-description.stories.js +25 -0
- package/dist/src/scalars/components/fragments/form-description/form-description.stories.js.map +1 -0
- package/dist/src/scalars/components/fragments/form-description/form-description.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/form-description/form-description.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/form-description/form-description.test.js +29 -0
- package/dist/src/scalars/components/fragments/form-description/form-description.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/form-group/form-group.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/form-group/form-group.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/form-group/form-group.test.js +16 -0
- package/dist/src/scalars/components/fragments/form-group/form-group.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/form-label/form-label.stories.d.ts +11 -0
- package/dist/src/scalars/components/fragments/form-label/form-label.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/form-label/form-label.stories.js +74 -0
- package/dist/src/scalars/components/fragments/form-label/form-label.stories.js.map +1 -0
- package/dist/src/scalars/components/fragments/form-label/form-label.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/form-label/form-label.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/form-label/form-label.test.js +53 -0
- package/dist/src/scalars/components/fragments/form-label/form-label.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/form-message/form-message.stories.d.ts +9 -0
- package/dist/src/scalars/components/fragments/form-message/form-message.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/form-message/form-message.stories.js +43 -0
- package/dist/src/scalars/components/fragments/form-message/form-message.stories.js.map +1 -0
- package/dist/src/scalars/components/fragments/form-message/form-message.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/form-message/form-message.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/form-message/form-message.test.js +49 -0
- package/dist/src/scalars/components/fragments/form-message/form-message.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-input-container.js +1 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-input-container.js.map +1 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-list.d.ts +1 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete-list.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.d.ts +1 -2
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.js +13 -13
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.js.map +1 -1
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.test.js +136 -0
- package/dist/src/scalars/components/fragments/id-autocomplete/id-autocomplete.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/id-autocomplete/use-id-autocomplete.d.ts +1 -1
- package/dist/src/scalars/components/fragments/popover/popover.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/popover/popover.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/popover/popover.test.js +11 -0
- package/dist/src/scalars/components/fragments/popover/popover.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/progress-bar/progress-bar.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/progress-bar/progress-bar.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/progress-bar/progress-bar.test.js +18 -0
- package/dist/src/scalars/components/fragments/progress-bar/progress-bar.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.test.js +133 -0
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/select-field/select-field.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/select-field/select-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/select-field/select-field.test.js +160 -0
- package/dist/src/scalars/components/fragments/select-field/select-field.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/tabs/tabs.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/tabs/tabs.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/tabs/tabs.test.js +47 -0
- package/dist/src/scalars/components/fragments/tabs/tabs.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/text-field/text-field.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/text-field/text-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/text-field/text-field.test.js +106 -0
- package/dist/src/scalars/components/fragments/text-field/text-field.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/textarea-field/textarea-field.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/textarea-field/textarea-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/textarea-field/textarea-field.test.js +100 -0
- package/dist/src/scalars/components/fragments/textarea-field/textarea-field.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/toggle-field/toggle-field.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/toggle-field/toggle-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/toggle-field/toggle-field.test.js +56 -0
- package/dist/src/scalars/components/fragments/toggle-field/toggle-field.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/value-transformer/value-transformer.d.ts +1 -1
- package/dist/src/scalars/components/fragments/value-transformer/value-transformer.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/value-transformer/value-transformer.js +2 -1
- package/dist/src/scalars/components/fragments/value-transformer/value-transformer.js.map +1 -1
- package/dist/src/scalars/components/fragments/value-transformer/value-transformer.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/value-transformer/value-transformer.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/value-transformer/value-transformer.test.js +102 -0
- package/dist/src/scalars/components/fragments/value-transformer/value-transformer.test.js.map +1 -0
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.test.d.ts +2 -0
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.test.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.test.js +141 -0
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.test.js.map +1 -0
- package/dist/src/scalars/components/id-field/id-field.stories.d.ts +58 -0
- package/dist/src/scalars/components/id-field/id-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/id-field/id-field.stories.js +73 -0
- package/dist/src/scalars/components/id-field/id-field.stories.js.map +1 -0
- package/dist/src/scalars/components/id-field/id-field.test.d.ts +2 -0
- package/dist/src/scalars/components/id-field/id-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/id-field/id-field.test.js +80 -0
- package/dist/src/scalars/components/id-field/id-field.test.js.map +1 -0
- package/dist/src/scalars/components/number-field/number-field.d.ts +2 -1
- package/dist/src/scalars/components/number-field/number-field.d.ts.map +1 -1
- package/dist/src/scalars/components/number-field/number-field.js.map +1 -1
- package/dist/src/scalars/components/number-field/number-field.stories.d.ts +156 -0
- package/dist/src/scalars/components/number-field/number-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/number-field/number-field.stories.js +228 -0
- package/dist/src/scalars/components/number-field/number-field.stories.js.map +1 -0
- package/dist/src/scalars/components/number-field/number-field.test.d.ts +2 -0
- package/dist/src/scalars/components/number-field/number-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/number-field/number-field.test.js +336 -0
- package/dist/src/scalars/components/number-field/number-field.test.js.map +1 -0
- package/dist/src/scalars/components/oid-field/oid-field.stories.d.ts +69 -0
- package/dist/src/scalars/components/oid-field/oid-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/oid-field/oid-field.stories.js +447 -0
- package/dist/src/scalars/components/oid-field/oid-field.stories.js.map +1 -0
- package/dist/src/scalars/components/oid-field/oid-field.test.d.ts +2 -0
- package/dist/src/scalars/components/oid-field/oid-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/oid-field/oid-field.test.js +161 -0
- package/dist/src/scalars/components/oid-field/oid-field.test.js.map +1 -0
- package/dist/src/scalars/components/password-field/password-field.stories.d.ts +23 -0
- package/dist/src/scalars/components/password-field/password-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/password-field/password-field.stories.js +234 -0
- package/dist/src/scalars/components/password-field/password-field.stories.js.map +1 -0
- package/dist/src/scalars/components/password-field/password-field.test.d.ts +2 -0
- package/dist/src/scalars/components/password-field/password-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/password-field/password-field.test.js +112 -0
- package/dist/src/scalars/components/password-field/password-field.test.js.map +1 -0
- package/dist/src/scalars/components/phid-field/phid-field.stories.d.ts +69 -0
- package/dist/src/scalars/components/phid-field/phid-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/phid-field/phid-field.stories.js +476 -0
- package/dist/src/scalars/components/phid-field/phid-field.stories.js.map +1 -0
- package/dist/src/scalars/components/phid-field/phid-field.test.d.ts +2 -0
- package/dist/src/scalars/components/phid-field/phid-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/phid-field/phid-field.test.js +164 -0
- package/dist/src/scalars/components/phid-field/phid-field.test.js.map +1 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.stories.d.ts +19 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.stories.js +116 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.stories.js.map +1 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.test.d.ts +2 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.test.js +225 -0
- package/dist/src/scalars/components/phone-number-field/phone-number-field.test.js.map +1 -0
- package/dist/src/scalars/components/string-field/string-field.stories.d.ts +18 -0
- package/dist/src/scalars/components/string-field/string-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/string-field/string-field.stories.js +143 -0
- package/dist/src/scalars/components/string-field/string-field.stories.js.map +1 -0
- package/dist/src/scalars/components/string-field/string-field.test.d.ts +2 -0
- package/dist/src/scalars/components/string-field/string-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/string-field/string-field.test.js +60 -0
- package/dist/src/scalars/components/string-field/string-field.test.js.map +1 -0
- package/dist/src/scalars/components/time-picker-field/time-picker-field.stories.d.ts +25 -0
- package/dist/src/scalars/components/time-picker-field/time-picker-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/time-picker-field/time-picker-field.stories.js +150 -0
- package/dist/src/scalars/components/time-picker-field/time-picker-field.stories.js.map +1 -0
- package/dist/src/scalars/components/time-picker-field/time-picker-field.test.d.ts +2 -0
- package/dist/src/scalars/components/time-picker-field/time-picker-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/time-picker-field/time-picker-field.test.js +123 -0
- package/dist/src/scalars/components/time-picker-field/time-picker-field.test.js.map +1 -0
- package/dist/src/scalars/components/url-field/url-field.stories.d.ts +17 -0
- package/dist/src/scalars/components/url-field/url-field.stories.d.ts.map +1 -0
- package/dist/src/scalars/components/url-field/url-field.stories.js +146 -0
- package/dist/src/scalars/components/url-field/url-field.stories.js.map +1 -0
- package/dist/src/scalars/components/url-field/url-field.test.d.ts +2 -0
- package/dist/src/scalars/components/url-field/url-field.test.d.ts.map +1 -0
- package/dist/src/scalars/components/url-field/url-field.test.js +131 -0
- package/dist/src/scalars/components/url-field/url-field.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/Amount.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/Amount.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/Amount.test.js +135 -0
- package/dist/src/scalars/graphql/test/Amount.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/AmountCrypto.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/AmountCrypto.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/AmountCrypto.test.js +138 -0
- package/dist/src/scalars/graphql/test/AmountCrypto.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/AmountCurrency.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/AmountCurrency.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/AmountCurrency.test.js +141 -0
- package/dist/src/scalars/graphql/test/AmountCurrency.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/AmountFiat.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/AmountFiat.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/AmountFiat.test.js +129 -0
- package/dist/src/scalars/graphql/test/AmountFiat.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/AmountMoney.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/AmountMoney.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/AmountMoney.test.js +50 -0
- package/dist/src/scalars/graphql/test/AmountMoney.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/AmountPercentage.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/AmountPercentage.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/AmountPercentage.test.js +50 -0
- package/dist/src/scalars/graphql/test/AmountPercentage.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/AmountTokens.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/AmountTokens.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/AmountTokens.test.js +50 -0
- package/dist/src/scalars/graphql/test/AmountTokens.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/Currency.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/Currency.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/Currency.test.js +35 -0
- package/dist/src/scalars/graphql/test/Currency.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/Date.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/Date.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/Date.test.js +50 -0
- package/dist/src/scalars/graphql/test/Date.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/DateTime.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/DateTime.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/DateTime.test.js +50 -0
- package/dist/src/scalars/graphql/test/DateTime.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/EmailAddress.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/EmailAddress.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/EmailAddress.test.js +50 -0
- package/dist/src/scalars/graphql/test/EmailAddress.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/EthereumAddress.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/EthereumAddress.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/EthereumAddress.test.js +50 -0
- package/dist/src/scalars/graphql/test/EthereumAddress.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/OID.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/OID.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/OID.test.js +35 -0
- package/dist/src/scalars/graphql/test/OID.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/OLabel.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/OLabel.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/OLabel.test.js +35 -0
- package/dist/src/scalars/graphql/test/OLabel.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/PHID.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/PHID.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/PHID.test.js +35 -0
- package/dist/src/scalars/graphql/test/PHID.test.js.map +1 -0
- package/dist/src/scalars/graphql/test/URL.test.d.ts +2 -0
- package/dist/src/scalars/graphql/test/URL.test.d.ts.map +1 -0
- package/dist/src/scalars/graphql/test/URL.test.js +50 -0
- package/dist/src/scalars/graphql/test/URL.test.js.map +1 -0
- package/dist/src/scalars/hooks/useEllipsis.d.ts +1 -1
- package/dist/src/scalars/hooks/useEllipsis.d.ts.map +1 -1
- package/dist/src/scalars/hooks/useEllipsis.js.map +1 -1
- package/dist/src/scalars/lib/deep-equal.test.d.ts +2 -0
- package/dist/src/scalars/lib/deep-equal.test.d.ts.map +1 -0
- package/dist/src/scalars/lib/deep-equal.test.js +70 -0
- package/dist/src/scalars/lib/deep-equal.test.js.map +1 -0
- package/dist/src/scalars/lib/is-empty.test.d.ts +2 -0
- package/dist/src/scalars/lib/is-empty.test.d.ts.map +1 -0
- package/dist/src/scalars/lib/is-empty.test.js +87 -0
- package/dist/src/scalars/lib/is-empty.test.js.map +1 -0
- package/dist/src/table/components/cells/render-cell/use-cell-logic.d.ts +1 -1
- package/dist/src/table/components/default-cell-editors/amount-editor.js.map +1 -1
- package/dist/src/table/components/default-cell-renderers/country-render.js +1 -1
- package/dist/src/table/components/default-cell-renderers/country-render.js.map +1 -1
- package/dist/src/table/components/rows/row-actions.d.ts +1 -1
- package/dist/src/table/components/rows/row-actions.d.ts.map +1 -1
- package/dist/src/table/components/table-focus-trap.js.map +1 -1
- package/dist/src/table/components/table-provider/table-provider.d.ts +1 -1
- package/dist/src/table/components/table-provider/table-provider.d.ts.map +1 -1
- package/dist/src/table/components/table-provider/table-provider.js +1 -1
- package/dist/src/table/components/table-provider/table-provider.js.map +1 -1
- package/dist/src/table/components/table-provider/table-reducer.d.ts +1 -1
- package/dist/src/table/components/table-provider/table-reducer.d.ts.map +1 -1
- package/dist/src/table/examples/api-usage/api-usage.stories.d.ts +16 -0
- package/dist/src/table/examples/api-usage/api-usage.stories.d.ts.map +1 -0
- package/dist/src/table/examples/api-usage/api-usage.stories.js +15 -0
- package/dist/src/table/examples/api-usage/api-usage.stories.js.map +1 -0
- package/dist/src/table/examples/column-visibility/column-visibility.stories.d.ts +23 -0
- package/dist/src/table/examples/column-visibility/column-visibility.stories.d.ts.map +1 -0
- package/dist/src/table/examples/column-visibility/column-visibility.stories.js +127 -0
- package/dist/src/table/examples/column-visibility/column-visibility.stories.js.map +1 -0
- package/dist/src/table/examples/computed-columns/computed-columns.stories.d.ts +23 -0
- package/dist/src/table/examples/computed-columns/computed-columns.stories.d.ts.map +1 -0
- package/dist/src/table/examples/computed-columns/computed-columns.stories.js +89 -0
- package/dist/src/table/examples/computed-columns/computed-columns.stories.js.map +1 -0
- package/dist/src/table/examples/custom-cell-editors/custom-cell-editors.stories.d.ts +23 -0
- package/dist/src/table/examples/custom-cell-editors/custom-cell-editors.stories.d.ts.map +1 -0
- package/dist/src/table/examples/custom-cell-editors/custom-cell-editors.stories.js +332 -0
- package/dist/src/table/examples/custom-cell-editors/custom-cell-editors.stories.js.map +1 -0
- package/dist/src/table/examples/custom-rendering/custom-rendering.stories.d.ts +23 -0
- package/dist/src/table/examples/custom-rendering/custom-rendering.stories.d.ts.map +1 -0
- package/dist/src/table/examples/custom-rendering/custom-rendering.stories.js +112 -0
- package/dist/src/table/examples/custom-rendering/custom-rendering.stories.js.map +1 -0
- package/dist/src/table/examples/events/events.stories.d.ts +16 -0
- package/dist/src/table/examples/events/events.stories.d.ts.map +1 -0
- package/dist/src/table/examples/events/events.stories.js +15 -0
- package/dist/src/table/examples/events/events.stories.js.map +1 -0
- package/dist/src/table/examples/row-reordering/row-reordering.stories.d.ts +37 -0
- package/dist/src/table/examples/row-reordering/row-reordering.stories.d.ts.map +1 -0
- package/dist/src/table/examples/row-reordering/row-reordering.stories.js +143 -0
- package/dist/src/table/examples/row-reordering/row-reordering.stories.js.map +1 -0
- package/dist/src/table/examples/table-editing/table-editing.stories.d.ts +43 -0
- package/dist/src/table/examples/table-editing/table-editing.stories.d.ts.map +1 -0
- package/dist/src/table/examples/table-editing/table-editing.stories.js +163 -0
- package/dist/src/table/examples/table-editing/table-editing.stories.js.map +1 -0
- package/dist/src/table/logic/table-api.d.ts +1 -1
- package/dist/src/table/logic/table-api.d.ts.map +1 -1
- package/dist/src/table/logic/table-api.js.map +1 -1
- package/dist/src/table/table/object-set-table.stories.d.ts +97 -0
- package/dist/src/table/table/object-set-table.stories.d.ts.map +1 -0
- package/dist/src/table/table/object-set-table.stories.js +300 -0
- package/dist/src/table/table/object-set-table.stories.js.map +1 -0
- package/dist/src/table/table/utils.d.ts +1 -1
- package/dist/src/table/table/utils.d.ts.map +1 -1
- package/dist/src/table/table/utils.js.map +1 -1
- package/dist/src/ui/components/button/button.stories.d.ts +32 -0
- package/dist/src/ui/components/button/button.stories.d.ts.map +1 -0
- package/dist/src/ui/components/button/button.stories.js +121 -0
- package/dist/src/ui/components/button/button.stories.js.map +1 -0
- package/dist/src/ui/components/button/button.test.d.ts +2 -0
- package/dist/src/ui/components/button/button.test.d.ts.map +1 -0
- package/dist/src/ui/components/button/button.test.js +71 -0
- package/dist/src/ui/components/button/button.test.js.map +1 -0
- package/dist/src/ui/components/confirm/alert-dialog.test.d.ts +2 -0
- package/dist/src/ui/components/confirm/alert-dialog.test.d.ts.map +1 -0
- package/dist/src/ui/components/confirm/alert-dialog.test.js +20 -0
- package/dist/src/ui/components/confirm/alert-dialog.test.js.map +1 -0
- package/dist/src/ui/components/confirm/confirm.stories.d.ts +37 -0
- package/dist/src/ui/components/confirm/confirm.stories.d.ts.map +1 -0
- package/dist/src/ui/components/confirm/confirm.stories.js +75 -0
- package/dist/src/ui/components/confirm/confirm.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/aid-input/aid-input.stories.d.ts +74 -0
- package/dist/src/ui/components/data-entry/aid-input/aid-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/aid-input/aid-input.stories.js +505 -0
- package/dist/src/ui/components/data-entry/aid-input/aid-input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/aid-input/aid-input.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/aid-input/aid-input.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/aid-input/aid-input.test.js +191 -0
- package/dist/src/ui/components/data-entry/aid-input/aid-input.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/amount-input/amount-input.d.ts +1 -1
- package/dist/src/ui/components/data-entry/amount-input/amount-input.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/amount-input/amount-input.stories.d.ts +269 -0
- package/dist/src/ui/components/data-entry/amount-input/amount-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/amount-input/amount-input.stories.js +363 -0
- package/dist/src/ui/components/data-entry/amount-input/amount-input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/amount-input/amount-input.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/amount-input/amount-input.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/amount-input/amount-input.test.js +98 -0
- package/dist/src/ui/components/data-entry/amount-input/amount-input.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/amount-input/utils.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/amount-input/utils.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/amount-input/utils.test.js +64 -0
- package/dist/src/ui/components/data-entry/amount-input/utils.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/checkbox/checkbox-base.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/checkbox/checkbox-base.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/checkbox/checkbox-base.test.js +57 -0
- package/dist/src/ui/components/data-entry/checkbox/checkbox-base.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/checkbox/checkbox.stories.d.ts +73 -0
- package/dist/src/ui/components/data-entry/checkbox/checkbox.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/checkbox/checkbox.stories.js +139 -0
- package/dist/src/ui/components/data-entry/checkbox/checkbox.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/checkbox/index.js +1 -0
- package/dist/src/ui/components/data-entry/checkbox/index.js.map +1 -1
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js +1 -1
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.js.map +1 -1
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.stories.d.ts +33 -0
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.stories.js +194 -0
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.test.js +173 -0
- package/dist/src/ui/components/data-entry/country-code-picker/country-code-picker.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.stories.d.ts +28 -0
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.stories.js +185 -0
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.test.js +161 -0
- package/dist/src/ui/components/data-entry/currency-code-picker/currency-code-picker.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/date-picker/date-picker.stories.d.ts +104 -0
- package/dist/src/ui/components/data-entry/date-picker/date-picker.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/date-picker/date-picker.stories.js +360 -0
- package/dist/src/ui/components/data-entry/date-picker/date-picker.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/date-picker/date-picker.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/date-picker/date-picker.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/date-picker/date-picker.test.js +225 -0
- package/dist/src/ui/components/data-entry/date-picker/date-picker.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/date-picker/index.js +1 -0
- package/dist/src/ui/components/data-entry/date-picker/index.js.map +1 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-nav/calendar-nav.d.ts +1 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-nav/calendar-nav.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/calendar-nav/calendar-nav.js.map +1 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/caption-label/caption-label.d.ts +1 -1
- package/dist/src/ui/components/data-entry/date-picker/subcomponents/caption-label/caption-label.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.stories.d.ts +152 -0
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.stories.js +376 -0
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.test.js +241 -0
- package/dist/src/ui/components/data-entry/date-time-picker/date-time-picker.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/date-time-picker/use-date-time-picker.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/date-time-picker/utils.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/date-time-picker/utils.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/date-time-picker/utils.test.js +38 -0
- package/dist/src/ui/components/data-entry/date-time-picker/utils.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/email-input/email-input.stories.d.ts +17 -0
- package/dist/src/ui/components/data-entry/email-input/email-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/email-input/email-input.stories.js +80 -0
- package/dist/src/ui/components/data-entry/email-input/email-input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/email-input/index.js +1 -0
- package/dist/src/ui/components/data-entry/email-input/index.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.stories.d.ts +31 -0
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.stories.js +193 -0
- package/dist/src/ui/components/data-entry/file-input/examples/file-upload-item-example.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/file-input.stories.d.ts +16 -0
- package/dist/src/ui/components/data-entry/file-input/file-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/file-input.stories.js +199 -0
- package/dist/src/ui/components/data-entry/file-input/file-input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/file-input.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/file-input/file-input.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/file-input.test.js +114 -0
- package/dist/src/ui/components/data-entry/file-input/file-input.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/file-input/index.js +1 -0
- package/dist/src/ui/components/data-entry/file-input/index.js.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.d.ts +1 -0
- package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/file-input/sub-components/loading-bar.js.map +1 -1
- package/dist/src/ui/components/data-entry/input/input.stories.d.ts +41 -0
- package/dist/src/ui/components/data-entry/input/input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/input/input.stories.js +70 -0
- package/dist/src/ui/components/data-entry/input/input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/input/input.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/input/input.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/input/input.test.js +46 -0
- package/dist/src/ui/components/data-entry/input/input.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/input/splitted-input-diff.d.ts +1 -0
- package/dist/src/ui/components/data-entry/input/splitted-input-diff.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/input/splitted-input-diff.js.map +1 -1
- package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.d.ts +1 -0
- package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/input/subcomponent/text-diff.js.map +1 -1
- package/dist/src/ui/components/data-entry/number-input/number-input.stories.d.ts +173 -0
- package/dist/src/ui/components/data-entry/number-input/number-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/number-input/number-input.stories.js +249 -0
- package/dist/src/ui/components/data-entry/number-input/number-input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/number-input/number-input.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/number-input/number-input.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/number-input/number-input.test.js +234 -0
- package/dist/src/ui/components/data-entry/number-input/number-input.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/number-input/use-number-input.d.ts +1 -1
- package/dist/src/ui/components/data-entry/oid-input/oid-input.stories.d.ts +72 -0
- package/dist/src/ui/components/data-entry/oid-input/oid-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/oid-input/oid-input.stories.js +457 -0
- package/dist/src/ui/components/data-entry/oid-input/oid-input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/oid-input/oid-input.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/oid-input/oid-input.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/oid-input/oid-input.test.js +176 -0
- package/dist/src/ui/components/data-entry/oid-input/oid-input.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.stories.d.ts +21 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.stories.js +101 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.test.js +92 -0
- package/dist/src/ui/components/data-entry/password-input/password-input.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/phid-input/phid-input.stories.d.ts +72 -0
- package/dist/src/ui/components/data-entry/phid-input/phid-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/phid-input/phid-input.stories.js +486 -0
- package/dist/src/ui/components/data-entry/phid-input/phid-input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/phid-input/phid-input.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/phid-input/phid-input.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/phid-input/phid-input.test.js +179 -0
- package/dist/src/ui/components/data-entry/phid-input/phid-input.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.stories.d.ts +21 -0
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.stories.js +122 -0
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.test.js +190 -0
- package/dist/src/ui/components/data-entry/phone-number-input/phone-number-input.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.d.ts +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js +1 -1
- package/dist/src/ui/components/data-entry/phone-number-input/use-phone-number-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/radio-group/customizable-radio-group.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/radio-group/customizable-radio-group.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/radio-group/customizable-radio-group.test.js +76 -0
- package/dist/src/ui/components/data-entry/radio-group/customizable-radio-group.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/radio-group/radio-group.stories.d.ts +86 -0
- package/dist/src/ui/components/data-entry/radio-group/radio-group.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/radio-group/radio-group.stories.js +250 -0
- package/dist/src/ui/components/data-entry/radio-group/radio-group.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/radio-group/radio-group.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/radio-group/radio-group.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/radio-group/radio-group.test.js +136 -0
- package/dist/src/ui/components/data-entry/radio-group/radio-group.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/radio-group/radio.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/radio-group/radio.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/radio-group/radio.test.js +63 -0
- package/dist/src/ui/components/data-entry/radio-group/radio.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/select/content.d.ts +1 -1
- package/dist/src/ui/components/data-entry/select/content.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/select/select-diff.d.ts +1 -0
- package/dist/src/ui/components/data-entry/select/select-diff.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/select/select-diff.js.map +1 -1
- package/dist/src/ui/components/data-entry/select/select.stories.d.ts +75 -0
- package/dist/src/ui/components/data-entry/select/select.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/select/select.stories.js +439 -0
- package/dist/src/ui/components/data-entry/select/select.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/select/select.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/select/select.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/select/select.test.js +218 -0
- package/dist/src/ui/components/data-entry/select/select.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/select/use-select.d.ts +1 -1
- package/dist/src/ui/components/data-entry/select/use-select.js.map +1 -1
- package/dist/src/ui/components/data-entry/text-input/index.js +1 -0
- package/dist/src/ui/components/data-entry/text-input/index.js.map +1 -1
- package/dist/src/ui/components/data-entry/text-input/text-input.js +1 -1
- package/dist/src/ui/components/data-entry/text-input/text-input.js.map +1 -1
- package/dist/src/ui/components/data-entry/text-input/text-input.stories.d.ts +171 -0
- package/dist/src/ui/components/data-entry/text-input/text-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/text-input/text-input.stories.js +133 -0
- package/dist/src/ui/components/data-entry/text-input/text-input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/textarea/textarea.d.ts +2 -3
- package/dist/src/ui/components/data-entry/textarea/textarea.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/textarea/textarea.js +10 -10
- package/dist/src/ui/components/data-entry/textarea/textarea.js.map +1 -1
- package/dist/src/ui/components/data-entry/textarea/textarea.stories.d.ts +177 -0
- package/dist/src/ui/components/data-entry/textarea/textarea.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/textarea/textarea.stories.js +167 -0
- package/dist/src/ui/components/data-entry/textarea/textarea.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/time-picker/index.js +1 -0
- package/dist/src/ui/components/data-entry/time-picker/index.js.map +1 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.js +2 -2
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/time-selector.js.map +1 -1
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/use-time-selector.d.ts +2 -2
- package/dist/src/ui/components/data-entry/time-picker/subcomponents/use-time-selector.d.ts.map +1 -1
- package/dist/src/ui/components/data-entry/time-picker/time-picker.stories.d.ts +66 -0
- package/dist/src/ui/components/data-entry/time-picker/time-picker.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/time-picker/time-picker.stories.js +228 -0
- package/dist/src/ui/components/data-entry/time-picker/time-picker.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/time-picker/time-picker.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/time-picker/time-picker.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/time-picker/time-picker.test.js +235 -0
- package/dist/src/ui/components/data-entry/time-picker/time-picker.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/time-picker/utils.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/time-picker/utils.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/time-picker/utils.test.js +149 -0
- package/dist/src/ui/components/data-entry/time-picker/utils.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/toggle/toggle-base.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/toggle/toggle-base.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/toggle/toggle-base.test.js +98 -0
- package/dist/src/ui/components/data-entry/toggle/toggle-base.test.js.map +1 -0
- package/dist/src/ui/components/data-entry/toggle/toggle.stories.d.ts +68 -0
- package/dist/src/ui/components/data-entry/toggle/toggle.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/toggle/toggle.stories.js +131 -0
- package/dist/src/ui/components/data-entry/toggle/toggle.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/url-input/url-input.stories.d.ts +34 -0
- package/dist/src/ui/components/data-entry/url-input/url-input.stories.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/url-input/url-input.stories.js +156 -0
- package/dist/src/ui/components/data-entry/url-input/url-input.stories.js.map +1 -0
- package/dist/src/ui/components/data-entry/url-input/url-input.test.d.ts +2 -0
- package/dist/src/ui/components/data-entry/url-input/url-input.test.d.ts.map +1 -0
- package/dist/src/ui/components/data-entry/url-input/url-input.test.js +72 -0
- package/dist/src/ui/components/data-entry/url-input/url-input.test.js.map +1 -0
- package/dist/src/ui/components/dropdown/dropdown.stories.d.ts +169 -0
- package/dist/src/ui/components/dropdown/dropdown.stories.d.ts.map +1 -0
- package/dist/src/ui/components/dropdown/dropdown.stories.js +194 -0
- package/dist/src/ui/components/dropdown/dropdown.stories.js.map +1 -0
- package/dist/src/ui/components/icon/icon.stories.d.ts +16 -0
- package/dist/src/ui/components/icon/icon.stories.d.ts.map +1 -0
- package/dist/src/ui/components/icon/icon.stories.js +37 -0
- package/dist/src/ui/components/icon/icon.stories.js.map +1 -0
- package/dist/src/ui/components/icon/index.js +1 -0
- package/dist/src/ui/components/icon/index.js.map +1 -1
- package/dist/src/ui/components/sidebar/sidebar.stories.d.ts +147 -0
- package/dist/src/ui/components/sidebar/sidebar.stories.d.ts.map +1 -0
- package/dist/src/ui/components/sidebar/sidebar.stories.js +420 -0
- package/dist/src/ui/components/sidebar/sidebar.stories.js.map +1 -0
- package/dist/src/ui/components/sidebar/sidebar.test.d.ts +2 -0
- package/dist/src/ui/components/sidebar/sidebar.test.d.ts.map +1 -0
- package/dist/src/ui/components/sidebar/sidebar.test.js +357 -0
- package/dist/src/ui/components/sidebar/sidebar.test.js.map +1 -0
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.d.ts.map +1 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js +3 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-item.js.map +1 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.d.ts +1 -1
- package/dist/src/ui/components/sidebar/subcomponents/sidebar-provider/sidebar-provider.d.ts.map +1 -1
- package/dist/src/ui/components/sidebar/subcomponents/status-icon.d.ts +1 -1
- package/dist/src/ui/components/sidebar/subcomponents/status-icon.d.ts.map +1 -1
- package/dist/src/ui/components/sidebar/use-sidebar-resize.d.ts +1 -1
- package/dist/src/ui/components/tooltip/tooltip.stories.d.ts +11 -0
- package/dist/src/ui/components/tooltip/tooltip.stories.d.ts.map +1 -0
- package/dist/src/ui/components/tooltip/tooltip.stories.js +87 -0
- package/dist/src/ui/components/tooltip/tooltip.stories.js.map +1 -0
- package/dist/src/ui/components/tooltip/tooltip.test.d.ts +2 -0
- package/dist/src/ui/components/tooltip/tooltip.test.d.ts.map +1 -0
- package/dist/src/ui/components/tooltip/tooltip.test.js +60 -0
- package/dist/src/ui/components/tooltip/tooltip.test.js.map +1 -0
- package/dist/style.css +15 -13
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/vitest.config.d.ts +3 -0
- package/dist/vitest.config.d.ts.map +1 -0
- package/dist/vitest.config.js +16 -0
- package/dist/vitest.config.js.map +1 -0
- package/package.json +90 -88
- package/dist/scripts/create-icon-components.d.ts +0 -2
- package/dist/scripts/create-icon-components.d.ts.map +0 -1
- package/dist/scripts/create-icon-components.js +0 -91
- package/dist/scripts/create-icon-components.js.map +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { withForm } from '../../lib/decorators.js';
|
|
3
|
+
import { getDefaultArgTypes, getValidationArgTypes, PrebuiltArgTypes, StorybookControlCategory, } from '../../lib/storybook-arg-types.js';
|
|
4
|
+
import { StringField } from './string-field.js';
|
|
5
|
+
const meta = {
|
|
6
|
+
title: 'Scalars/String Field',
|
|
7
|
+
component: StringField,
|
|
8
|
+
decorators: [withForm, (Story) => _jsx("div", { className: "w-48", children: Story() })],
|
|
9
|
+
parameters: {
|
|
10
|
+
layout: 'centered',
|
|
11
|
+
},
|
|
12
|
+
tags: ['autodocs'],
|
|
13
|
+
argTypes: {
|
|
14
|
+
...getDefaultArgTypes(),
|
|
15
|
+
...PrebuiltArgTypes.placeholder,
|
|
16
|
+
...PrebuiltArgTypes.autoComplete,
|
|
17
|
+
...PrebuiltArgTypes.spellCheck,
|
|
18
|
+
multiline: {
|
|
19
|
+
control: 'boolean',
|
|
20
|
+
description: 'Whether to render as a multi-line textarea',
|
|
21
|
+
table: {
|
|
22
|
+
type: { summary: 'boolean' },
|
|
23
|
+
defaultValue: { summary: 'false' },
|
|
24
|
+
category: StorybookControlCategory.COMPONENT_SPECIFIC,
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
autoExpand: {
|
|
28
|
+
control: 'boolean',
|
|
29
|
+
description: 'Whether textarea should automatically expand as content grows',
|
|
30
|
+
table: {
|
|
31
|
+
type: { summary: 'boolean' },
|
|
32
|
+
defaultValue: { summary: 'false' },
|
|
33
|
+
category: StorybookControlCategory.COMPONENT_SPECIFIC,
|
|
34
|
+
},
|
|
35
|
+
},
|
|
36
|
+
...PrebuiltArgTypes.trim,
|
|
37
|
+
...PrebuiltArgTypes.uppercase,
|
|
38
|
+
...PrebuiltArgTypes.lowercase,
|
|
39
|
+
...PrebuiltArgTypes.diffMode,
|
|
40
|
+
...PrebuiltArgTypes.viewMode,
|
|
41
|
+
...PrebuiltArgTypes.baseValue,
|
|
42
|
+
...getValidationArgTypes(),
|
|
43
|
+
...PrebuiltArgTypes.minLength,
|
|
44
|
+
...PrebuiltArgTypes.maxLength,
|
|
45
|
+
...PrebuiltArgTypes.pattern,
|
|
46
|
+
},
|
|
47
|
+
args: {
|
|
48
|
+
name: 'string-field',
|
|
49
|
+
},
|
|
50
|
+
};
|
|
51
|
+
export default meta;
|
|
52
|
+
export const Default = {
|
|
53
|
+
args: {
|
|
54
|
+
label: 'String Input',
|
|
55
|
+
placeholder: 'Type something...',
|
|
56
|
+
},
|
|
57
|
+
};
|
|
58
|
+
export const WithDescription = {
|
|
59
|
+
args: {
|
|
60
|
+
label: 'Bio',
|
|
61
|
+
description: 'Tell us a little bit about yourself',
|
|
62
|
+
placeholder: 'I am a...',
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
export const Required = {
|
|
66
|
+
args: {
|
|
67
|
+
label: 'Full Name',
|
|
68
|
+
required: true,
|
|
69
|
+
placeholder: 'John Doe',
|
|
70
|
+
},
|
|
71
|
+
};
|
|
72
|
+
export const WithValue = {
|
|
73
|
+
args: {
|
|
74
|
+
label: 'Email',
|
|
75
|
+
value: 'john.doe@example.com',
|
|
76
|
+
placeholder: 'Enter your email',
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
export const Disabled = {
|
|
80
|
+
args: {
|
|
81
|
+
label: 'Read Only Field',
|
|
82
|
+
value: 'This field is disabled',
|
|
83
|
+
disabled: true,
|
|
84
|
+
placeholder: 'This field is disabled',
|
|
85
|
+
},
|
|
86
|
+
};
|
|
87
|
+
export const WithError = {
|
|
88
|
+
args: {
|
|
89
|
+
label: 'Username',
|
|
90
|
+
value: '123',
|
|
91
|
+
required: true,
|
|
92
|
+
errors: ['Username must be at least 8 characters long'],
|
|
93
|
+
placeholder: 'Enter your username',
|
|
94
|
+
},
|
|
95
|
+
};
|
|
96
|
+
export const WithWarning = {
|
|
97
|
+
args: {
|
|
98
|
+
label: 'Password',
|
|
99
|
+
value: 'password123',
|
|
100
|
+
warnings: ['Consider using a stronger password'],
|
|
101
|
+
placeholder: 'Enter your password',
|
|
102
|
+
},
|
|
103
|
+
};
|
|
104
|
+
export const Multiline = {
|
|
105
|
+
args: {
|
|
106
|
+
label: 'Comments',
|
|
107
|
+
multiline: true,
|
|
108
|
+
placeholder: 'Enter your comments here...',
|
|
109
|
+
autoExpand: true,
|
|
110
|
+
},
|
|
111
|
+
};
|
|
112
|
+
export const WithDefaultValue = {
|
|
113
|
+
args: {
|
|
114
|
+
label: 'Favorite Color',
|
|
115
|
+
defaultValue: 'Blue',
|
|
116
|
+
placeholder: 'Enter your favorite color',
|
|
117
|
+
},
|
|
118
|
+
};
|
|
119
|
+
export const WithDifferencesAddition = {
|
|
120
|
+
args: {
|
|
121
|
+
label: 'Number difference addition',
|
|
122
|
+
value: 'Lorem ipsum dolor sit amet consectetur adipiscing elit.',
|
|
123
|
+
baseValue: 'Dolor sit amet consectetur adipiscing elit quisque faucibus.',
|
|
124
|
+
viewMode: 'addition',
|
|
125
|
+
},
|
|
126
|
+
};
|
|
127
|
+
export const WithDifferencesRemoval = {
|
|
128
|
+
args: {
|
|
129
|
+
label: 'Date difference removal',
|
|
130
|
+
value: 'Lorem ipsum dolor sit amet consectetur adipiscing elit.',
|
|
131
|
+
baseValue: 'Dolor sit amet consectetur adipiscing elit quisque faucibus.',
|
|
132
|
+
viewMode: 'removal',
|
|
133
|
+
},
|
|
134
|
+
};
|
|
135
|
+
export const WithDifferencesMixed = {
|
|
136
|
+
args: {
|
|
137
|
+
label: 'Date difference mixed',
|
|
138
|
+
value: 'Lorem ipsum dolor sit amet consectetur adipiscing elit.',
|
|
139
|
+
baseValue: 'Dolor sit amet consectetur adipiscing elit quisque faucibus.',
|
|
140
|
+
viewMode: 'mixed',
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
//# sourceMappingURL=string-field.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-field.stories.js","sourceRoot":"","sources":["../../../../../src/scalars/components/string-field/string-field.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAClD,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,MAAM,IAAI,GAA6B;IACrC,KAAK,EAAE,sBAAsB;IAC7B,SAAS,EAAE,WAAW;IACtB,UAAU,EAAE,CAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,cAAK,SAAS,EAAC,MAAM,YAAE,KAAK,EAAE,GAAO,CAAC;IACxE,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;KACnB;IACD,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB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;KACzC;CACF,CAAA;AAED,MAAM,CAAC,MAAM,uBAAuB,GAAU;IAC5C,IAAI,EAAE;QACJ,KAAK,EAAE,4BAA4B;QACnC,KAAK,EAAE,yDAAyD;QAChE,SAAS,EAAE,8DAA8D;QACzE,QAAQ,EAAE,UAAU;KACrB;CACF,CAAA;AACD,MAAM,CAAC,MAAM,sBAAsB,GAAU;IAC3C,IAAI,EAAE;QACJ,KAAK,EAAE,yBAAyB;QAChC,KAAK,EAAE,yDAAyD;QAChE,SAAS,EAAE,8DAA8D;QACzE,QAAQ,EAAE,SAAS;KACpB;CACF,CAAA;AACD,MAAM,CAAC,MAAM,oBAAoB,GAAU;IACzC,IAAI,EAAE;QACJ,KAAK,EAAE,uBAAuB;QAC9B,KAAK,EAAE,yDAAyD;QAChE,SAAS,EAAE,8DAA8D;QACzE,QAAQ,EAAE,OAAO;KAClB;CACF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-field.test.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/string-field/string-field.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { screen, waitFor } from '@testing-library/react';
|
|
3
|
+
import { userEvent } from '@testing-library/user-event';
|
|
4
|
+
import { describe, expect, it, vi } from 'vitest';
|
|
5
|
+
import { renderWithForm } from '../../lib/testing.js';
|
|
6
|
+
import { StringField } from './string-field.js';
|
|
7
|
+
describe('StringField', () => {
|
|
8
|
+
it('should match snapshot with minimal props', () => {
|
|
9
|
+
const { container } = renderWithForm(_jsx(StringField, { name: "test" }));
|
|
10
|
+
expect(container).toMatchSnapshot();
|
|
11
|
+
});
|
|
12
|
+
it('should match snapshot when multiline is true (textarea)', () => {
|
|
13
|
+
const { container } = renderWithForm(_jsx(StringField, { name: "test", multiline: true }));
|
|
14
|
+
expect(container).toMatchSnapshot();
|
|
15
|
+
});
|
|
16
|
+
it('should render label when provided', () => {
|
|
17
|
+
renderWithForm(_jsx(StringField, { name: "test", label: "Test Label" }));
|
|
18
|
+
expect(screen.getByText('Test Label')).toBeInTheDocument();
|
|
19
|
+
});
|
|
20
|
+
it('should render description when provided', () => {
|
|
21
|
+
renderWithForm(_jsx(StringField, { name: "test", description: "Test description" }));
|
|
22
|
+
expect(screen.getByText('Test description')).toBeInTheDocument();
|
|
23
|
+
});
|
|
24
|
+
it('should render error messages when provided', async () => {
|
|
25
|
+
renderWithForm(_jsx(StringField, { name: "test", errors: ['Error message'] }));
|
|
26
|
+
await waitFor(() => {
|
|
27
|
+
expect(screen.getByText('Error message')).toBeInTheDocument();
|
|
28
|
+
});
|
|
29
|
+
});
|
|
30
|
+
it('should render warning messages when provided', () => {
|
|
31
|
+
renderWithForm(_jsx(StringField, { name: "test", warnings: ['Warning message'] }));
|
|
32
|
+
expect(screen.getByText('Warning message')).toBeInTheDocument();
|
|
33
|
+
});
|
|
34
|
+
it('should render as textarea when multiline is true', () => {
|
|
35
|
+
renderWithForm(_jsx(StringField, { name: "test", multiline: true }));
|
|
36
|
+
expect(screen.getByRole('textbox')).toHaveProperty('tagName', 'TEXTAREA');
|
|
37
|
+
});
|
|
38
|
+
it('should render as input when multiline is false', () => {
|
|
39
|
+
renderWithForm(_jsx(StringField, { name: "test" }));
|
|
40
|
+
expect(screen.getByRole('textbox')).toHaveProperty('tagName', 'INPUT');
|
|
41
|
+
});
|
|
42
|
+
it('should disable input when disabled prop is true', () => {
|
|
43
|
+
renderWithForm(_jsx(StringField, { name: "test", disabled: true }));
|
|
44
|
+
expect(screen.getByRole('textbox')).toBeDisabled();
|
|
45
|
+
});
|
|
46
|
+
it('should show required indicator when required prop is true', () => {
|
|
47
|
+
renderWithForm(_jsx(StringField, { name: "test", label: "Test Label", required: true }));
|
|
48
|
+
expect(screen.getByText('*')).toBeInTheDocument();
|
|
49
|
+
});
|
|
50
|
+
it('should handle value changes', async () => {
|
|
51
|
+
const user = userEvent.setup();
|
|
52
|
+
const onChange = vi.fn();
|
|
53
|
+
renderWithForm(_jsx(StringField, { name: "test", value: "initial", onChange: onChange }));
|
|
54
|
+
const input = screen.getByRole('textbox');
|
|
55
|
+
expect(input).toHaveValue('initial');
|
|
56
|
+
await user.type(input, 'test');
|
|
57
|
+
expect(onChange).toHaveBeenCalledTimes(4); // Once per character typed
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
//# sourceMappingURL=string-field.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-field.test.js","sourceRoot":"","sources":["../../../../../src/scalars/components/string-field/string-field.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,wBAAwB,CAAA;AACxD,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAA;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,QAAQ,CAAC,aAAa,EAAE,GAAG,EAAE;IAC3B,EAAE,CAAC,0CAA0C,EAAE,GAAG,EAAE;QAClD,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,CAAC,KAAC,WAAW,IAAC,IAAI,EAAC,MAAM,GAAG,CAAC,CAAA;QACjE,MAAM,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,CAAA;IACrC,CAAC,CAAC,CAAA;IAEF,EAAE,CAAC,yDAAyD,EAAE,GAAG,EAAE;QACjE,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,CAAC,KAAC,WAAW,IAAC,IAAI,EAAC,MAAM,EAAC,SAAS,SAAG,CAAC,CAAA;QAC3E,MAAM,CAAC,SAAS,CAAC,CAAC,eAAe,EAAE,CAAA;IACrC,CAAC,CAAC,CAAA;IAEF,EAAE,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C,CAAA;QAEzC,MAAM,CAAC,KAAK,CAAC,CAAC,WAAW,CAAC,SAAS,CAAC,CAAA;QACpC,MAAM,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;QAC9B,MAAM,CAAC,QAAQ,CAAC,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAA,CAAC,2BAA2B;IACvE,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TimePickerField } from './time-picker-field.js';
|
|
3
|
+
/**
|
|
4
|
+
* A time picker component designed for form usage with built-in validation.
|
|
5
|
+
*
|
|
6
|
+
* Key features:
|
|
7
|
+
* - Seamless form integration
|
|
8
|
+
* - Input validation out of the box
|
|
9
|
+
* - Customizable styling via Tailwind CSS (className prop)
|
|
10
|
+
* - Timezone selection support
|
|
11
|
+
*
|
|
12
|
+
* For styling examples and implementation details:
|
|
13
|
+
* See our Storybook docs → 🎨
|
|
14
|
+
* [Time Picker Examples](?path=/docs/data-entry-time-picker--readme)
|
|
15
|
+
*/
|
|
16
|
+
declare const meta: Meta<typeof TimePickerField>;
|
|
17
|
+
export default meta;
|
|
18
|
+
type Story = StoryObj<typeof TimePickerField>;
|
|
19
|
+
export declare const Default: Story;
|
|
20
|
+
export declare const Disabled: Story;
|
|
21
|
+
export declare const Filled: Story;
|
|
22
|
+
export declare const WithDifferencesAddition: Story;
|
|
23
|
+
export declare const WithDifferencesRemoval: Story;
|
|
24
|
+
export declare const WithDifferencesMixed: Story;
|
|
25
|
+
//# sourceMappingURL=time-picker-field.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-field.stories.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/time-picker-field/time-picker-field.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAQtD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAExD;;;;;;;;;;;;GAYG;AAEH,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,eAAe,CAwFtC,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAA;AAE7C,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAA;AACD,eAAO,MAAM,QAAQ,EAAE,KAOtB,CAAA;AAED,eAAO,MAAM,MAAM,EAAE,KAOpB,CAAA;AACD,eAAO,MAAM,uBAAuB,EAAE,KAOrC,CAAA;AACD,eAAO,MAAM,sBAAsB,EAAE,KAOpC,CAAA;AACD,eAAO,MAAM,oBAAoB,EAAE,KAOlC,CAAA"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import { withForm } from '../../lib/decorators.js';
|
|
2
|
+
import { getDefaultArgTypes, getValidationArgTypes, PrebuiltArgTypes, StorybookControlCategory, } from '../../lib/storybook-arg-types.js';
|
|
3
|
+
import { TimePickerField } from './time-picker-field.js';
|
|
4
|
+
/**
|
|
5
|
+
* A time picker component designed for form usage with built-in validation.
|
|
6
|
+
*
|
|
7
|
+
* Key features:
|
|
8
|
+
* - Seamless form integration
|
|
9
|
+
* - Input validation out of the box
|
|
10
|
+
* - Customizable styling via Tailwind CSS (className prop)
|
|
11
|
+
* - Timezone selection support
|
|
12
|
+
*
|
|
13
|
+
* For styling examples and implementation details:
|
|
14
|
+
* See our Storybook docs → 🎨
|
|
15
|
+
* [Time Picker Examples](?path=/docs/data-entry-time-picker--readme)
|
|
16
|
+
*/
|
|
17
|
+
const meta = {
|
|
18
|
+
title: 'Scalars/Time Picker Field',
|
|
19
|
+
component: TimePickerField,
|
|
20
|
+
parameters: {
|
|
21
|
+
layout: 'centered',
|
|
22
|
+
form: {
|
|
23
|
+
resetBehavior: 'unmount',
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
decorators: [withForm],
|
|
27
|
+
tags: ['autodocs'],
|
|
28
|
+
argTypes: {
|
|
29
|
+
...getDefaultArgTypes(),
|
|
30
|
+
...getValidationArgTypes(),
|
|
31
|
+
timeFormat: {
|
|
32
|
+
control: {
|
|
33
|
+
type: 'select',
|
|
34
|
+
},
|
|
35
|
+
description: 'The format of the time in the time picker',
|
|
36
|
+
table: {
|
|
37
|
+
type: { summary: 'string' },
|
|
38
|
+
category: StorybookControlCategory.COMPONENT_SPECIFIC,
|
|
39
|
+
},
|
|
40
|
+
options: ['hh:mm A', 'HH:mm'],
|
|
41
|
+
defaultValue: { summary: 'hh:mm A' },
|
|
42
|
+
},
|
|
43
|
+
showTimezoneSelect: {
|
|
44
|
+
control: {
|
|
45
|
+
type: 'boolean',
|
|
46
|
+
},
|
|
47
|
+
description: 'Show timezone select',
|
|
48
|
+
table: {
|
|
49
|
+
category: StorybookControlCategory.COMPONENT_SPECIFIC,
|
|
50
|
+
type: { summary: 'boolean' },
|
|
51
|
+
},
|
|
52
|
+
},
|
|
53
|
+
timeIntervals: {
|
|
54
|
+
description: 'The interval between each time option',
|
|
55
|
+
control: {
|
|
56
|
+
type: 'number',
|
|
57
|
+
},
|
|
58
|
+
type: 'number',
|
|
59
|
+
min: 1,
|
|
60
|
+
max: 60,
|
|
61
|
+
table: {
|
|
62
|
+
category: StorybookControlCategory.COMPONENT_SPECIFIC,
|
|
63
|
+
},
|
|
64
|
+
defaultValue: { summary: 1 },
|
|
65
|
+
},
|
|
66
|
+
timeZone: {
|
|
67
|
+
description: 'The timezone to display in the time picker',
|
|
68
|
+
control: {
|
|
69
|
+
type: 'text',
|
|
70
|
+
},
|
|
71
|
+
table: {
|
|
72
|
+
category: StorybookControlCategory.COMPONENT_SPECIFIC,
|
|
73
|
+
type: { summary: 'string' },
|
|
74
|
+
},
|
|
75
|
+
},
|
|
76
|
+
includeContinent: {
|
|
77
|
+
description: 'Show continent name in the timezone select',
|
|
78
|
+
control: {
|
|
79
|
+
type: 'boolean',
|
|
80
|
+
defaultValue: false,
|
|
81
|
+
},
|
|
82
|
+
table: {
|
|
83
|
+
category: StorybookControlCategory.COMPONENT_SPECIFIC,
|
|
84
|
+
defaultValue: { summary: 'false ' },
|
|
85
|
+
type: { summary: 'boolean' },
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
placeholder: {
|
|
89
|
+
description: 'The placeholder text for the time picker',
|
|
90
|
+
table: {
|
|
91
|
+
category: StorybookControlCategory.DEFAULT,
|
|
92
|
+
type: { summary: 'string' },
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
...PrebuiltArgTypes.viewMode,
|
|
96
|
+
...PrebuiltArgTypes.baseValue,
|
|
97
|
+
},
|
|
98
|
+
args: {
|
|
99
|
+
name: 'time-picker-field',
|
|
100
|
+
},
|
|
101
|
+
};
|
|
102
|
+
export default meta;
|
|
103
|
+
export const Default = {
|
|
104
|
+
args: {
|
|
105
|
+
name: 'time',
|
|
106
|
+
label: 'Pick a time',
|
|
107
|
+
placeholder: 'HH:mm',
|
|
108
|
+
},
|
|
109
|
+
};
|
|
110
|
+
export const Disabled = {
|
|
111
|
+
args: {
|
|
112
|
+
name: 'time',
|
|
113
|
+
label: 'Pick a time',
|
|
114
|
+
placeholder: 'HH:mm',
|
|
115
|
+
disabled: true,
|
|
116
|
+
},
|
|
117
|
+
};
|
|
118
|
+
export const Filled = {
|
|
119
|
+
args: {
|
|
120
|
+
name: 'time',
|
|
121
|
+
label: 'Pick a time',
|
|
122
|
+
value: '12:00 PM',
|
|
123
|
+
placeholder: 'HH:mm',
|
|
124
|
+
},
|
|
125
|
+
};
|
|
126
|
+
export const WithDifferencesAddition = {
|
|
127
|
+
args: {
|
|
128
|
+
label: 'Time difference addition',
|
|
129
|
+
value: '12:00 PM',
|
|
130
|
+
baseValue: '11:00 AM',
|
|
131
|
+
viewMode: 'addition',
|
|
132
|
+
},
|
|
133
|
+
};
|
|
134
|
+
export const WithDifferencesRemoval = {
|
|
135
|
+
args: {
|
|
136
|
+
label: 'Time difference removal',
|
|
137
|
+
value: '12:00 PM',
|
|
138
|
+
baseValue: '11:00 AM',
|
|
139
|
+
viewMode: 'removal',
|
|
140
|
+
},
|
|
141
|
+
};
|
|
142
|
+
export const WithDifferencesMixed = {
|
|
143
|
+
args: {
|
|
144
|
+
label: 'Time difference mixed',
|
|
145
|
+
value: '12:00 PM',
|
|
146
|
+
baseValue: '11:00 AM',
|
|
147
|
+
viewMode: 'mixed',
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
//# sourceMappingURL=time-picker-field.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-field.stories.js","sourceRoot":"","sources":["../../../../../src/scalars/components/time-picker-field/time-picker-field.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAClD,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,gBAAgB,EAChB,wBAAwB,GACzB,MAAM,kCAAkC,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAExD;;;;;;;;;;;;GAYG;AAEH,MAAM,IAAI,GAAiC;IACzC,KAAK,EAAE,2BAA2B;IAClC,SAAS,EAAE,eAAe;IAC1B,UAAU,EAAE;QACV,MAAM,EAAE,UAAU;QAClB,IAAI,EAAE;YACJ,aAAa,EAAE,SAAS;SACzB;KACF;IACD,UAAU,EAAE,CAAC,QAAQ,CAAC;IACtB,IAAI,EAAE,CAAC,UAAU,CAAC;IAClB,QAAQ,EAAE;QACR,GAAG,kBAAkB,EAAE;QACvB,GAAG,qBAAqB,EAAE;QAC1B,UAAU,EAAE;YACV,OAAO,EAAE;gBACP,IAAI,EAAE,QAAQ;aACf;YACD,WAAW,EAAE,2CAA2C;YACxD,KAAK,EAAE;gBACL,IAAI,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;gBAC3B,QAAQ,EAAE,w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1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-field.test.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/time-picker-field/time-picker-field.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { screen } from '@testing-library/react';
|
|
3
|
+
import { userEvent } from '@testing-library/user-event';
|
|
4
|
+
import { renderWithForm } from '../../lib/testing.js';
|
|
5
|
+
import { TimePickerField } from './time-picker-field.js';
|
|
6
|
+
describe('TimePickerField', () => {
|
|
7
|
+
it('should match the snapshot', () => {
|
|
8
|
+
const { container } = renderWithForm(_jsx(TimePickerField, { label: "Test Label", name: "test-time", id: "test-id", required: true, disabled: false }));
|
|
9
|
+
expect(container).toMatchSnapshot();
|
|
10
|
+
});
|
|
11
|
+
it('should display the label when provided', () => {
|
|
12
|
+
const labelText = 'Test Label';
|
|
13
|
+
renderWithForm(_jsx(TimePickerField, { name: "test-time", label: labelText }));
|
|
14
|
+
expect(screen.getByText(labelText)).toBeInTheDocument();
|
|
15
|
+
});
|
|
16
|
+
it('should not render the label when label prop is not provided', () => {
|
|
17
|
+
renderWithForm(_jsx(TimePickerField, { name: "test-time" }));
|
|
18
|
+
expect(screen.queryByText('Test Label')).not.toBeInTheDocument();
|
|
19
|
+
});
|
|
20
|
+
it('should mark the label as required when required prop is true', () => {
|
|
21
|
+
renderWithForm(_jsx(TimePickerField, { name: "test-time", label: "Test Label", required: true }));
|
|
22
|
+
const label = screen.getByText('Test Label');
|
|
23
|
+
const asterisk = screen.getByText('*');
|
|
24
|
+
expect(label).toBeInTheDocument();
|
|
25
|
+
expect(asterisk).toBeInTheDocument();
|
|
26
|
+
});
|
|
27
|
+
it('should mark the label as disabled when disabled prop is true', () => {
|
|
28
|
+
renderWithForm(_jsx(TimePickerField, { name: "test-time", label: "Test Label", disabled: true }));
|
|
29
|
+
const label = screen.getByText('Test Label');
|
|
30
|
+
expect(label).toHaveClass('cursor-not-allowed');
|
|
31
|
+
expect(label).toHaveClass('text-gray-700');
|
|
32
|
+
});
|
|
33
|
+
it('should handle timeIntervals prop correctly with 15-minute intervals', async () => {
|
|
34
|
+
const user = userEvent.setup();
|
|
35
|
+
renderWithForm(_jsx(TimePickerField, { name: "test-time", label: "Test Label", timeIntervals: 15 }));
|
|
36
|
+
// Open the time picker using the button instead of the input
|
|
37
|
+
const clockButton = screen.getByRole('button');
|
|
38
|
+
await user.click(clockButton);
|
|
39
|
+
// First wait for the popover to be visible
|
|
40
|
+
const popoverContent = await screen.findByRole('dialog');
|
|
41
|
+
expect(popoverContent).toBeVisible();
|
|
42
|
+
// Now check for the minute values
|
|
43
|
+
const minutes = ['00', '15', '30', '45'];
|
|
44
|
+
for (const minute of minutes) {
|
|
45
|
+
// Use findAllByText instead of findByText since there are multiple elements with the same text
|
|
46
|
+
const minuteElements = await screen.findAllByText(minute);
|
|
47
|
+
expect(minuteElements.length).toBeGreaterThan(0);
|
|
48
|
+
expect(minuteElements[0]).toBeInTheDocument();
|
|
49
|
+
}
|
|
50
|
+
// Verify that intermediate values are not present
|
|
51
|
+
;
|
|
52
|
+
['13', '20', '25', '35', '40', '50', '55'].forEach((minute) => {
|
|
53
|
+
expect(screen.queryByText(minute)).not.toBeInTheDocument();
|
|
54
|
+
});
|
|
55
|
+
});
|
|
56
|
+
it('should handle timeIntervals prop correctly with 30-minute intervals', async () => {
|
|
57
|
+
const user = userEvent.setup();
|
|
58
|
+
renderWithForm(_jsx(TimePickerField, { name: "test-time", label: "Test Label", timeIntervals: 30 }));
|
|
59
|
+
// Open the time picker using the button instead of the input
|
|
60
|
+
const clockButton = screen.getByRole('button');
|
|
61
|
+
await user.click(clockButton);
|
|
62
|
+
// First wait for the popover to be visible
|
|
63
|
+
const popoverContent = await screen.findByRole('dialog');
|
|
64
|
+
expect(popoverContent).toBeVisible();
|
|
65
|
+
// Now check for the minute values
|
|
66
|
+
const minutes = ['00', '30'];
|
|
67
|
+
for (const minute of minutes) {
|
|
68
|
+
const minuteElements = await screen.findAllByText(minute);
|
|
69
|
+
expect(minuteElements.length).toBeGreaterThan(0);
|
|
70
|
+
expect(minuteElements[0]).toBeInTheDocument();
|
|
71
|
+
}
|
|
72
|
+
// Verify that other values are not present
|
|
73
|
+
;
|
|
74
|
+
['15', '45'].forEach((minute) => {
|
|
75
|
+
expect(screen.queryByText(minute)).not.toBeInTheDocument();
|
|
76
|
+
});
|
|
77
|
+
});
|
|
78
|
+
it('should set timezone value and disable select when timeZone prop is provided', async () => {
|
|
79
|
+
const user = userEvent.setup();
|
|
80
|
+
const timeZoneValue = 'America/New_York';
|
|
81
|
+
renderWithForm(_jsx(TimePickerField, { name: "test-time", label: "Test Label", timeZone: timeZoneValue }));
|
|
82
|
+
const clockButton = screen.getByRole('button');
|
|
83
|
+
await user.click(clockButton);
|
|
84
|
+
const popoverContent = await screen.findByRole('dialog');
|
|
85
|
+
expect(popoverContent).toBeVisible();
|
|
86
|
+
const select = await screen.findByRole('combobox');
|
|
87
|
+
expect(select).toBeDisabled();
|
|
88
|
+
// Use a more flexible approach to find the timezone text
|
|
89
|
+
const timezoneText = screen.getByText((content) => {
|
|
90
|
+
return content.includes('New York') && content.includes('(');
|
|
91
|
+
});
|
|
92
|
+
expect(timezoneText).toBeInTheDocument();
|
|
93
|
+
});
|
|
94
|
+
it('should display continent when includeContinent prop is true', async () => {
|
|
95
|
+
const user = userEvent.setup();
|
|
96
|
+
const timeZoneValue = 'America/New_York';
|
|
97
|
+
renderWithForm(_jsx(TimePickerField, { name: "test-time", label: "Test Label", timeZone: timeZoneValue, includeContinent: true }));
|
|
98
|
+
const clockButton = screen.getByRole('button');
|
|
99
|
+
await user.click(clockButton);
|
|
100
|
+
const popoverContent = await screen.findByRole('dialog');
|
|
101
|
+
expect(popoverContent).toBeVisible();
|
|
102
|
+
// Verify that the timezone includes the continent (America)
|
|
103
|
+
const timezoneText = screen.getByText((content) => {
|
|
104
|
+
return content.includes('America') && content.includes('New York');
|
|
105
|
+
});
|
|
106
|
+
expect(timezoneText).toBeInTheDocument();
|
|
107
|
+
});
|
|
108
|
+
it('should not display continent when includeContinent prop is false', async () => {
|
|
109
|
+
const user = userEvent.setup();
|
|
110
|
+
const timeZoneValue = 'America/New_York';
|
|
111
|
+
renderWithForm(_jsx(TimePickerField, { name: "test-time", label: "Test Label", timeZone: timeZoneValue, includeContinent: false }));
|
|
112
|
+
const clockButton = screen.getByRole('button');
|
|
113
|
+
await user.click(clockButton);
|
|
114
|
+
const popoverContent = await screen.findByRole('dialog');
|
|
115
|
+
expect(popoverContent).toBeVisible();
|
|
116
|
+
// Verify that the timezone excludes the continent (America)
|
|
117
|
+
const timezoneText = screen.getByText((content) => {
|
|
118
|
+
return content.includes('New York') && !content.includes('America');
|
|
119
|
+
});
|
|
120
|
+
expect(timezoneText).toBeInTheDocument();
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
//# sourceMappingURL=time-picker-field.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"time-picker-field.test.js","sourceRoot":"","sources":["../../../../../src/scalars/components/time-picker-field/time-picker-field.test.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAC/C,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAA;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAA;AAExD,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,2BAA2B,EAAE,GAAG,EAAE;QACnC,MAAM,EAAE,SAAS,EAAE,GAAG,cAAc,CAClC,KAAC,eAAe,IAAC,KAAK,EAAC,YAAY,EAAC,IAAI,EAAC,WAAW,EAAC,EAAE,EAAC,SAAS,EAAC,QAAQ,QAAC,QAAQ,EAAE,KAAK,GAAI,CAC/F,CAAA;QACD,MAAM,CA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,OAAO,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAA;QACrE,CAAC,CAAC,CAAA;QACF,MAAM,CAAC,YAAY,CAAC,CAAC,iBAAiB,EAAE,CAAA;IAC1C,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { UrlField } from './url-field.js';
|
|
3
|
+
declare const meta: Meta<typeof UrlField>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof UrlField>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithDescription: Story;
|
|
8
|
+
export declare const Required: Story;
|
|
9
|
+
export declare const WithValue: Story;
|
|
10
|
+
export declare const Disabled: Story;
|
|
11
|
+
export declare const WithError: Story;
|
|
12
|
+
export declare const WithWarning: Story;
|
|
13
|
+
export declare const WithPlatformIcon: Story;
|
|
14
|
+
export declare const WithDifferencesAddition: Story;
|
|
15
|
+
export declare const WithDifferencesRemoval: Story;
|
|
16
|
+
export declare const WithDifferencesMixed: Story;
|
|
17
|
+
//# sourceMappingURL=url-field.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"url-field.stories.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/url-field/url-field.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AAQtD,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,QAAQ,CAwD/B,CAAA;AAED,eAAe,IAAI,CAAA;AACnB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,QAAQ,CAAC,CAAA;AAEtC,eAAO,MAAM,OAAO,EAAE,KAKrB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,KAM7B,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAKvB,CAAA;AAED,eAAO,MAAM,QAAQ,EAAE,KAMtB,CAAA;AAED,eAAO,MAAM,SAAS,EAAE,KAMvB,CAAA;AAED,eAAO,MAAM,WAAW,EAAE,KAMzB,CAAA;AAED,eAAO,MAAM,gBAAgB,EAAE,KAe9B,CAAA;AACD,eAAO,MAAM,uBAAuB,EAAE,KAOrC,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,KAOpC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,KAOlC,CAAA"}
|