@powerhousedao/design-system 1.37.2 → 1.38.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/src/connect/components/home-screen/home-screen-item/home-screen-item.d.ts.map +1 -1
- package/dist/src/connect/components/home-screen/home-screen-item/home-screen-item.js +1 -1
- package/dist/src/connect/components/home-screen/home-screen.js +1 -1
- package/dist/src/scalars/components/aid-field/aid-field.d.ts +4 -6
- package/dist/src/scalars/components/aid-field/aid-field.d.ts.map +1 -1
- package/dist/src/scalars/components/aid-field/aid-field.js +3 -1
- package/dist/src/scalars/components/aid-field/mocks.d.ts +6 -6
- package/dist/src/scalars/components/aid-field/mocks.d.ts.map +1 -1
- package/dist/src/scalars/components/aid-field/mocks.js +50 -25
- package/dist/src/scalars/components/aid-field/types.d.ts +16 -2
- package/dist/src/scalars/components/aid-field/types.d.ts.map +1 -1
- package/dist/src/scalars/components/boolean-field/boolean-field.d.ts +3 -3
- package/dist/src/scalars/components/boolean-field/boolean-field.d.ts.map +1 -1
- package/dist/src/scalars/components/boolean-field/boolean-field.js +2 -2
- package/dist/src/scalars/components/boolean-field/index.d.ts +1 -1
- package/dist/src/scalars/components/boolean-field/index.d.ts.map +1 -1
- package/dist/src/scalars/components/boolean-field/index.js +1 -1
- package/dist/src/scalars/components/country-code-field/country-code-field.d.ts +4 -4
- package/dist/src/scalars/components/country-code-field/country-code-field.d.ts.map +1 -1
- package/dist/src/scalars/components/country-code-field/country-code-field.js +1 -1
- package/dist/src/scalars/components/currency-code-field/currency-code-field.d.ts +3 -3
- package/dist/src/scalars/components/currency-code-field/currency-code-field.d.ts.map +1 -1
- package/dist/src/scalars/components/currency-code-field/currency-code-field.js +38 -4
- package/dist/src/scalars/components/{date-picker-field/date-picker-field.d.ts → date-field/date-field.d.ts} +5 -5
- package/dist/src/scalars/components/date-field/date-field.d.ts.map +1 -0
- package/dist/src/scalars/components/{date-picker-field/date-picker-field.js → date-field/date-field.js} +7 -7
- package/dist/src/scalars/components/date-field/date-validations.d.ts +3 -0
- package/dist/src/scalars/components/date-field/date-validations.d.ts.map +1 -0
- package/dist/src/scalars/components/date-field/index.d.ts +2 -0
- package/dist/src/scalars/components/date-field/index.d.ts.map +1 -0
- package/dist/src/scalars/components/date-field/index.js +1 -0
- package/dist/src/scalars/components/date-field/subcomponents/calendar/calendar.d.ts.map +1 -0
- package/dist/src/scalars/components/date-field/subcomponents/calendar-date-header/calendar-date-header.d.ts.map +1 -0
- package/dist/src/scalars/components/date-field/subcomponents/calendar-nav/calendar-nav.d.ts.map +1 -0
- package/dist/src/scalars/components/date-field/subcomponents/caption-label/caption-label.d.ts.map +1 -0
- package/dist/src/scalars/components/date-field/subcomponents/months-view/month-view.d.ts.map +1 -0
- package/dist/src/scalars/components/date-field/subcomponents/utils.d.ts.map +1 -0
- package/dist/src/scalars/components/date-field/subcomponents/year-view/year-button.d.ts.map +1 -0
- package/dist/src/scalars/components/date-field/subcomponents/year-view/year-grid.d.ts.map +1 -0
- package/dist/src/scalars/components/date-field/types.d.ts.map +1 -0
- package/dist/src/scalars/components/{date-picker-field/use-date-picker-field.d.ts → date-field/use-date-field.d.ts} +1 -1
- package/dist/src/scalars/components/date-field/use-date-field.d.ts.map +1 -0
- package/dist/src/scalars/components/{date-picker-field/use-date-picker-field.js → date-field/use-date-field.js} +1 -1
- package/dist/src/scalars/components/date-field/utils.d.ts.map +1 -0
- package/dist/src/scalars/components/date-time-field/base-picker-field.d.ts +2 -2
- package/dist/src/scalars/components/date-time-field/base-picker-field.d.ts.map +1 -1
- package/dist/src/scalars/components/date-time-field/base-picker-field.js +1 -1
- package/dist/src/scalars/components/date-time-field/{date-time-picker-contet.d.ts → date-time-contet.d.ts} +2 -2
- package/dist/src/scalars/components/date-time-field/date-time-contet.d.ts.map +1 -0
- package/dist/src/scalars/components/date-time-field/{date-time-picker-contet.js → date-time-contet.js} +2 -2
- package/dist/src/scalars/components/date-time-field/date-time-field-validations.d.ts +2 -2
- package/dist/src/scalars/components/date-time-field/date-time-field-validations.d.ts.map +1 -1
- package/dist/src/scalars/components/date-time-field/date-time-field-validations.js +1 -1
- package/dist/src/scalars/components/date-time-field/date-time-field.d.ts +8 -8
- package/dist/src/scalars/components/date-time-field/date-time-field.d.ts.map +1 -1
- package/dist/src/scalars/components/date-time-field/date-time-field.js +3 -8
- package/dist/src/scalars/components/date-time-field/date-time.d.ts +3 -3
- package/dist/src/scalars/components/date-time-field/date-time.d.ts.map +1 -1
- package/dist/src/scalars/components/date-time-field/date-time.js +1 -1
- package/dist/src/scalars/components/date-time-field/use-date-time.d.ts +3 -3
- package/dist/src/scalars/components/date-time-field/use-date-time.d.ts.map +1 -1
- package/dist/src/scalars/components/date-time-field/use-date-time.js +4 -4
- package/dist/src/scalars/components/enum-field/types.d.ts +1 -0
- package/dist/src/scalars/components/enum-field/types.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-base.d.ts +8 -0
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-base.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-base.js +28 -0
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.d.ts +3 -9
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox-field.js +3 -20
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox.d.ts +8 -9
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/checkbox-field/checkbox.js +19 -26
- package/dist/src/scalars/components/fragments/checkbox-field/index.d.ts +2 -2
- package/dist/src/scalars/components/fragments/checkbox-field/index.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/checkbox-field/index.js +2 -2
- package/dist/src/scalars/components/fragments/form-message/form-message.js +2 -2
- package/dist/src/scalars/components/fragments/id-autocomplete-field/id-autocomplete-field.d.ts +3 -3
- package/dist/src/scalars/components/fragments/id-autocomplete-field/id-autocomplete-field.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/id-autocomplete-field/id-autocomplete-field.js +1 -4
- package/dist/src/scalars/components/fragments/id-autocomplete-field/id-autocomplete-input-container.d.ts +1 -1
- package/dist/src/scalars/components/fragments/id-autocomplete-field/id-autocomplete-input-container.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/id-autocomplete-field/id-autocomplete-list-option.d.ts +1 -1
- package/dist/src/scalars/components/fragments/id-autocomplete-field/id-autocomplete-list-option.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/id-autocomplete-field/id-autocomplete-list-option.js +6 -2
- package/dist/src/scalars/components/fragments/id-autocomplete-field/types.d.ts +4 -2
- package/dist/src/scalars/components/fragments/id-autocomplete-field/types.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/input/index.d.ts +1 -1
- package/dist/src/scalars/components/fragments/input/index.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/input/index.js +1 -1
- package/dist/src/scalars/components/fragments/input/input.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/input/input.js +1 -0
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.d.ts +6 -5
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/radio-group-field/radio-group-field.js +1 -1
- package/dist/src/scalars/components/fragments/select-field/content.d.ts +2 -0
- package/dist/src/scalars/components/fragments/select-field/content.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/select-field/content.js +3 -18
- package/dist/src/scalars/components/fragments/select-field/select-field.d.ts +16 -5
- package/dist/src/scalars/components/fragments/select-field/select-field.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/select-field/select-field.js +3 -3
- package/dist/src/scalars/components/fragments/select-field/subcomponents/CommandItemList.d.ts +14 -0
- package/dist/src/scalars/components/fragments/select-field/subcomponents/CommandItemList.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/select-field/subcomponents/CommandItemList.js +23 -0
- package/dist/src/scalars/components/fragments/text-field/index.d.ts +2 -1
- package/dist/src/scalars/components/fragments/text-field/index.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/text-field/index.js +2 -1
- package/dist/src/scalars/components/fragments/text-field/text-field.d.ts +4 -6
- package/dist/src/scalars/components/fragments/text-field/text-field.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/text-field/text-field.js +2 -28
- package/dist/src/scalars/components/fragments/text-field/text-input.d.ts +9 -0
- package/dist/src/scalars/components/fragments/text-field/text-input.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/text-field/text-input.js +29 -0
- package/dist/src/scalars/components/fragments/text-field/types.d.ts +12 -0
- package/dist/src/scalars/components/fragments/text-field/types.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/textarea-field/index.d.ts +2 -1
- package/dist/src/scalars/components/fragments/textarea-field/index.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/textarea-field/index.js +2 -1
- package/dist/src/scalars/components/fragments/textarea-field/textarea-field.d.ts +5 -8
- package/dist/src/scalars/components/fragments/textarea-field/textarea-field.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/textarea-field/textarea-field.js +4 -98
- package/dist/src/scalars/components/fragments/textarea-field/textarea.d.ts +11 -0
- package/dist/src/scalars/components/fragments/textarea-field/textarea.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/textarea-field/textarea.js +98 -0
- package/dist/src/scalars/components/fragments/toggle-field/index.d.ts +2 -2
- package/dist/src/scalars/components/fragments/toggle-field/index.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/toggle-field/index.js +2 -2
- package/dist/src/scalars/components/fragments/toggle-field/toggle-base.d.ts +11 -0
- package/dist/src/scalars/components/fragments/toggle-field/toggle-base.d.ts.map +1 -0
- package/dist/src/scalars/components/fragments/toggle-field/toggle-base.js +9 -0
- package/dist/src/scalars/components/fragments/toggle-field/toggle-field.d.ts +3 -8
- package/dist/src/scalars/components/fragments/toggle-field/toggle-field.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/toggle-field/toggle-field.js +3 -12
- package/dist/src/scalars/components/fragments/toggle-field/toggle.d.ts +6 -8
- package/dist/src/scalars/components/fragments/toggle-field/toggle.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/toggle-field/toggle.js +12 -7
- 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 +13 -3
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.d.ts +2 -2
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.d.ts.map +1 -1
- package/dist/src/scalars/components/fragments/with-field-validation/with-field-validation.js +3 -0
- package/dist/src/scalars/components/index.d.ts +2 -2
- package/dist/src/scalars/components/index.d.ts.map +1 -1
- package/dist/src/scalars/components/index.js +2 -2
- package/dist/src/scalars/components/number-field/types.d.ts +2 -3
- package/dist/src/scalars/components/number-field/types.d.ts.map +1 -1
- package/dist/src/scalars/components/oid-field/index.d.ts +2 -0
- package/dist/src/scalars/components/oid-field/index.d.ts.map +1 -0
- package/dist/src/scalars/components/oid-field/index.js +1 -0
- package/dist/src/scalars/components/oid-field/mocks.d.ts +7 -0
- package/dist/src/scalars/components/oid-field/mocks.d.ts.map +1 -0
- package/dist/src/scalars/components/oid-field/mocks.js +141 -0
- package/dist/src/scalars/components/oid-field/oid-field.d.ts +8 -0
- package/dist/src/scalars/components/oid-field/oid-field.d.ts.map +1 -0
- package/dist/src/scalars/components/oid-field/oid-field.js +32 -0
- package/dist/src/scalars/components/oid-field/types.d.ts +14 -0
- package/dist/src/scalars/components/oid-field/types.d.ts.map +1 -0
- package/dist/src/scalars/components/oid-field/types.js +1 -0
- package/dist/src/scalars/components/phid-field/phid-field.d.ts +3 -3
- package/dist/src/scalars/components/phid-field/phid-field.d.ts.map +1 -1
- package/dist/src/scalars/components/string-field/string-field.d.ts +2 -2
- package/dist/src/scalars/components/string-field/string-field.d.ts.map +1 -1
- package/dist/src/scalars/components/time-field/index.d.ts +2 -0
- package/dist/src/scalars/components/time-field/index.d.ts.map +1 -0
- package/dist/src/scalars/components/time-field/index.js +1 -0
- package/dist/src/scalars/components/time-field/subcomponents/time-period-selector.d.ts.map +1 -0
- package/dist/src/scalars/components/time-field/subcomponents/time-picker-content.d.ts.map +1 -0
- package/dist/src/scalars/components/time-field/subcomponents/time-selector.constants.d.ts.map +1 -0
- package/dist/src/scalars/components/time-field/subcomponents/time-selector.d.ts.map +1 -0
- package/dist/src/scalars/components/time-field/subcomponents/use-time-selector.d.ts.map +1 -0
- package/dist/src/scalars/components/{time-picker-field/time-picker-field.d.ts → time-field/time-field.d.ts} +4 -4
- package/dist/src/scalars/components/time-field/time-field.d.ts.map +1 -0
- package/dist/src/scalars/components/{time-picker-field/time-picker-field.js → time-field/time-field.js} +5 -5
- package/dist/src/scalars/components/time-field/time-validations.d.ts +3 -0
- package/dist/src/scalars/components/time-field/time-validations.d.ts.map +1 -0
- package/dist/src/scalars/components/time-field/type.d.ts.map +1 -0
- package/dist/src/scalars/components/time-field/type.js +1 -0
- package/dist/src/scalars/components/{time-picker-field/use-time-picker-field.d.ts → time-field/use-time-field.d.ts} +1 -1
- package/dist/src/scalars/components/time-field/use-time-field.d.ts.map +1 -0
- package/dist/src/scalars/components/time-field/utils.d.ts.map +1 -0
- package/dist/src/scalars/components/types.d.ts +3 -17
- package/dist/src/scalars/components/types.d.ts.map +1 -1
- package/dist/src/scalars/components/url-field/index.d.ts +2 -1
- package/dist/src/scalars/components/url-field/index.d.ts.map +1 -1
- package/dist/src/scalars/components/url-field/index.js +2 -1
- package/dist/src/scalars/components/url-field/url-field.d.ts +5 -9
- package/dist/src/scalars/components/url-field/url-field.d.ts.map +1 -1
- package/dist/src/scalars/components/url-field/url-field.js +4 -37
- package/dist/src/scalars/components/url-field/url-input.d.ts +11 -0
- package/dist/src/scalars/components/url-field/url-input.d.ts.map +1 -0
- package/dist/src/scalars/components/url-field/url-input.js +32 -0
- package/dist/src/scalars/lib/decorators.js +1 -1
- package/dist/src/scalars/lib/index.d.ts +0 -1
- package/dist/src/scalars/lib/index.d.ts.map +1 -1
- package/dist/src/scalars/lib/index.js +0 -1
- package/dist/src/scalars/lib/value-cast.js +2 -2
- package/dist/style.css +5 -4
- package/dist/tsconfig.lib.tsbuildinfo +1 -1
- package/package.json +4 -4
- 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-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/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 -1
- package/dist/src/scalars/components/date-picker-field/subcomponents/calendar/calendar.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/subcomponents/calendar-date-header/calendar-date-header.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/subcomponents/calendar-nav/calendar-nav.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/subcomponents/caption-label/caption-label.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/subcomponents/months-view/month-view.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/subcomponents/utils.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/subcomponents/year-view/year-button.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/subcomponents/year-view/year-grid.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/types.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/use-date-picker-field.d.ts.map +0 -1
- package/dist/src/scalars/components/date-picker-field/utils.d.ts.map +0 -1
- package/dist/src/scalars/components/date-time-field/date-time-picker-contet.d.ts.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 -1
- package/dist/src/scalars/components/time-picker-field/subcomponents/time-period-selector.d.ts.map +0 -1
- package/dist/src/scalars/components/time-picker-field/subcomponents/time-picker-content.d.ts.map +0 -1
- package/dist/src/scalars/components/time-picker-field/subcomponents/time-selector.constants.d.ts.map +0 -1
- package/dist/src/scalars/components/time-picker-field/subcomponents/time-selector.d.ts.map +0 -1
- package/dist/src/scalars/components/time-picker-field/subcomponents/use-time-selector.d.ts.map +0 -1
- 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-validations.d.ts +0 -3
- package/dist/src/scalars/components/time-picker-field/time-picker-validations.d.ts.map +0 -1
- package/dist/src/scalars/components/time-picker-field/type.d.ts.map +0 -1
- package/dist/src/scalars/components/time-picker-field/use-time-picker-field.d.ts.map +0 -1
- package/dist/src/scalars/components/time-picker-field/utils.d.ts.map +0 -1
- package/dist/src/scalars/lib/currency-list.d.ts +0 -2
- package/dist/src/scalars/lib/currency-list.d.ts.map +0 -1
- package/dist/src/scalars/lib/currency-list.js +0 -182
- /package/dist/src/scalars/components/{date-picker-field/date-picker-validations.js → date-field/date-validations.js} +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/calendar/calendar.d.ts +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/calendar/calendar.js +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/calendar-date-header/calendar-date-header.d.ts +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/calendar-date-header/calendar-date-header.js +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/calendar-nav/calendar-nav.d.ts +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/calendar-nav/calendar-nav.js +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/caption-label/caption-label.d.ts +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/caption-label/caption-label.js +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/months-view/month-view.d.ts +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/months-view/month-view.js +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/utils.d.ts +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/utils.js +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/year-view/year-button.d.ts +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/year-view/year-button.js +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/year-view/year-grid.d.ts +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/subcomponents/year-view/year-grid.js +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/types.d.ts +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/types.js +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/utils.d.ts +0 -0
- /package/dist/src/scalars/components/{date-picker-field → date-field}/utils.js +0 -0
- /package/dist/src/scalars/components/{time-picker-field/type.js → fragments/text-field/types.js} +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/subcomponents/time-period-selector.d.ts +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/subcomponents/time-period-selector.js +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/subcomponents/time-picker-content.d.ts +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/subcomponents/time-picker-content.js +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/subcomponents/time-selector.constants.d.ts +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/subcomponents/time-selector.constants.js +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/subcomponents/time-selector.d.ts +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/subcomponents/time-selector.js +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/subcomponents/use-time-selector.d.ts +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/subcomponents/use-time-selector.js +0 -0
- /package/dist/src/scalars/components/{time-picker-field/time-picker-validations.js → time-field/time-validations.js} +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/type.d.ts +0 -0
- /package/dist/src/scalars/components/{time-picker-field/use-time-picker-field.js → time-field/use-time-field.js} +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/utils.d.ts +0 -0
- /package/dist/src/scalars/components/{time-picker-field → time-field}/utils.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"home-screen-item.d.ts","sourceRoot":"","sources":["../../../../../../src/connect/components/home-screen/home-screen-item/home-screen-item.tsx"],"names":[],"mappings":"AAGA,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACtE,CAAC;AACF,eAAO,MAAM,cAAc,GACzB,OAAO,mBAAmB,
|
|
1
|
+
{"version":3,"file":"home-screen-item.d.ts","sourceRoot":"","sources":["../../../../../../src/connect/components/home-screen/home-screen-item/home-screen-item.tsx"],"names":[],"mappings":"AAGA,KAAK,mBAAmB,GAAG;IACzB,QAAQ,CAAC,IAAI,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,kBAAkB,CAAC,EAAE,MAAM,CAAC;IACrC,QAAQ,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC;IAC7B,QAAQ,CAAC,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,UAAU,CAAC,cAAc,CAAC,KAAK,IAAI,CAAC;CACtE,CAAC;AACF,eAAO,MAAM,cAAc,GACzB,OAAO,mBAAmB,4CAiC3B,CAAC"}
|
|
@@ -3,5 +3,5 @@ import { Icon } from "#powerhouse";
|
|
|
3
3
|
import { twMerge } from "tailwind-merge";
|
|
4
4
|
export const HomeScreenItem = function HomeScreenItem(props) {
|
|
5
5
|
const { icon, title, description, containerClassName, shareable, onClick } = props;
|
|
6
|
-
return (_jsxs("div", { className: twMerge("relative flex h-24 cursor-pointer flex-col items-center justify-center text-center text-sm text-black", containerClassName, onClick && "cursor-pointer"), onClick: onClick, children: [_jsx("div", { className: "mx-auto pb-
|
|
6
|
+
return (_jsxs("div", { className: twMerge("relative flex h-24 cursor-pointer flex-col items-center justify-center text-center text-sm text-black", containerClassName, onClick && "cursor-pointer"), onClick: onClick, children: [_jsx("div", { className: "mx-auto pb-2", children: icon || (_jsx("div", { className: "size-8 items-center justify-center rounded-lg bg-black pt-1", children: _jsx("span", { className: "text-6 w-6 text-white", children: title.slice(0, 1).toUpperCase() }) })) }), _jsxs("div", { children: [_jsx("h3", { children: title }), description && _jsx("p", { className: "text-gray-500", children: description })] }), shareable && (_jsx("div", { className: "absolute left-2 top-0 mb-2", children: _jsx(Icon, { name: "PeopleFill", width: 12, height: 12 }) }))] }));
|
|
7
7
|
};
|
|
@@ -3,5 +3,5 @@ import HomeBg from "#assets/home-bg.png";
|
|
|
3
3
|
import { twMerge } from "tailwind-merge";
|
|
4
4
|
export const HomeScreen = function HomeScreen(props) {
|
|
5
5
|
const { children, containerClassName } = props;
|
|
6
|
-
return (_jsx("div", { className: twMerge("container relative flex h-full flex-col", containerClassName), children: _jsxs("div", { className: "m-8 flex flex-wrap justify-center gap-4 pt-12", children: [_jsx("img", { src: HomeBg, alt: "background", className: "pointer-events-none absolute inset-8 z-0 size-[calc(100%-32px)] object-contain" }), children] }) }));
|
|
6
|
+
return (_jsx("div", { className: twMerge("container relative mx-auto flex h-full flex-col", containerClassName), children: _jsxs("div", { className: "m-8 flex flex-wrap justify-center gap-4 pt-12", children: [_jsx("img", { src: HomeBg, alt: "background", className: "pointer-events-none absolute inset-8 z-0 size-[calc(100%-32px)] object-contain" }), children] }) }));
|
|
7
7
|
};
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { FieldErrorHandling, InputBaseProps } from "../types.js";
|
|
3
3
|
import type { AIDProps } from "./types.js";
|
|
4
|
-
type AIDFieldBaseProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof
|
|
5
|
-
export type AIDFieldProps = AIDFieldBaseProps &
|
|
6
|
-
export declare const AIDField: React.ForwardRefExoticComponent<
|
|
7
|
-
supportedNetworks?: import("./types.js").Network[];
|
|
8
|
-
} & React.RefAttributes<unknown>>;
|
|
4
|
+
type AIDFieldBaseProps = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof InputBaseProps<string> | keyof FieldErrorHandling | keyof AIDProps | "pattern">;
|
|
5
|
+
export type AIDFieldProps = AIDFieldBaseProps & InputBaseProps<string> & FieldErrorHandling & AIDProps;
|
|
6
|
+
export declare const AIDField: React.ForwardRefExoticComponent<AIDFieldProps & React.RefAttributes<unknown>>;
|
|
9
7
|
export {};
|
|
10
8
|
//# sourceMappingURL=aid-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"aid-field.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/aid-field/aid-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"aid-field.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/aid-field/aid-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAM3D,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAa,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtD,KAAK,iBAAiB,GAAG,IAAI,CAC3B,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EACzC,MAAM,cAAc,CAAC,MAAM,CAAC,GAC5B,MAAM,kBAAkB,GACxB,MAAM,QAAQ,GACd,SAAS,CACZ,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAC3C,cAAc,CAAC,MAAM,CAAC,GACtB,kBAAkB,GAClB,QAAQ,CAAC;AAuIX,eAAO,MAAM,QAAQ,+EAuDnB,CAAC"}
|
|
@@ -13,7 +13,9 @@ initialOptions, // to be used only in stories
|
|
|
13
13
|
const id = idProp ?? `${prefix}-aid`;
|
|
14
14
|
const autoComplete = autoCompleteProp ?? true;
|
|
15
15
|
const contextValue = useMemo(() => ({ supportedNetworks }), [supportedNetworks]);
|
|
16
|
-
const renderOption = useCallback((option, displayProps) => (_jsx(IdAutocompleteListOption, { variant: variant, icon: option.icon, title: option.title, path: option.path, value: displayProps?.asPlaceholder ? "did not available" : option.value, description: option.description,
|
|
16
|
+
const renderOption = useCallback((option, displayProps) => (_jsx(IdAutocompleteListOption, { variant: variant, icon: option.icon, title: option.title, path: option.path, value: displayProps?.asPlaceholder ? "did not available" : option.value, description: option.description, agentType: displayProps?.asPlaceholder
|
|
17
|
+
? "Agent type not available"
|
|
18
|
+
: option.agentType, placeholderIcon: "Person", ...displayProps })), [variant]);
|
|
17
19
|
return (_jsx(IdAutocompleteContext.Provider, { value: contextValue, children: autoComplete && fetchOptionsCallback ? (_jsx(IdAutocompleteFieldRaw, { id: id, name: name, className: className, label: label, description: description, value: value, defaultValue: defaultValue, disabled: disabled, placeholder: placeholder, required: required, errors: errors, warnings: warnings, onChange: onChange, onBlur: onBlur, onClick: onClick, onMouseDown: onMouseDown, autoComplete: true, variant: variant, maxLength: maxLength, fetchOptionsCallback: fetchOptionsCallback, fetchSelectedOptionCallback: fetchSelectedOptionCallback, isOpenByDefault: isOpenByDefault, initialOptions: initialOptions, renderOption: renderOption, ...props, ref: ref })) : (_jsx(IdAutocompleteFieldRaw, { id: id, name: name, className: className, label: label, description: description, value: value, defaultValue: defaultValue, disabled: disabled, placeholder: placeholder, required: required, errors: errors, warnings: warnings, onChange: onChange, onBlur: onBlur, onClick: onClick, onMouseDown: onMouseDown, autoComplete: false, maxLength: maxLength, ...props, ref: ref })) }));
|
|
18
20
|
});
|
|
19
21
|
export const AIDField = withFieldValidation(AIDFieldRaw, {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
export declare const mockedOptions:
|
|
3
|
-
export declare const fetchOptions: (userInput: string, context?: Record<string, unknown>) => Promise<
|
|
4
|
-
export declare const fetchSelectedOption: (value: string) => Promise<
|
|
5
|
-
export declare const fetchOptionsSync: (userInput: string, context?: Record<string, unknown>) =>
|
|
6
|
-
export declare const fetchSelectedOptionSync: (value: string) =>
|
|
1
|
+
import type { AIDOption } from "./types.js";
|
|
2
|
+
export declare const mockedOptions: AIDOption[];
|
|
3
|
+
export declare const fetchOptions: (userInput: string, context?: Record<string, unknown>) => Promise<AIDOption[]>;
|
|
4
|
+
export declare const fetchSelectedOption: (value: string) => Promise<AIDOption | undefined>;
|
|
5
|
+
export declare const fetchOptionsSync: (userInput: string, context?: Record<string, unknown>) => AIDOption[];
|
|
6
|
+
export declare const fetchSelectedOptionSync: (value: string) => AIDOption | undefined;
|
|
7
7
|
//# sourceMappingURL=mocks.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/aid-field/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"mocks.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/aid-field/mocks.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAW,MAAM,YAAY,CAAC;AAErD,eAAO,MAAM,aAAa,EAAE,SAAS,EAoRpC,CAAC;AA8BF,eAAO,MAAM,YAAY,GACvB,WAAW,MAAM,EACjB,UAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAChC,OAAO,CAAC,SAAS,EAAE,CAUrB,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,OAAO,MAAM,KACZ,OAAO,CAAC,SAAS,GAAG,SAAS,CAI/B,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAC3B,WAAW,MAAM,EACjB,UAAU,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAChC,SAAS,EAEX,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAClC,OAAO,MAAM,KACZ,SAAS,GAAG,SAEd,CAAC"}
|
|
@@ -4,250 +4,275 @@ export const mockedOptions = [
|
|
|
4
4
|
title: "Agent A",
|
|
5
5
|
path: {
|
|
6
6
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e8a",
|
|
7
|
-
url: "https://www.renown.id/
|
|
7
|
+
url: "https://www.renown.id/",
|
|
8
8
|
},
|
|
9
9
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e8a",
|
|
10
10
|
description: "Agent A description",
|
|
11
|
+
agentType: "Human Contributor",
|
|
11
12
|
},
|
|
12
13
|
{
|
|
13
14
|
icon: "Person",
|
|
14
15
|
title: "Agent B",
|
|
15
16
|
path: {
|
|
16
17
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e8a",
|
|
17
|
-
url: "https://www.renown.id/
|
|
18
|
+
url: "https://www.renown.id/",
|
|
18
19
|
},
|
|
19
20
|
value: "did:ethr:0x5:0xb9c5714089478a327f09197987f16f9e5d936e8a",
|
|
20
21
|
description: "Agent B description",
|
|
22
|
+
agentType: "Contributor Team",
|
|
21
23
|
},
|
|
22
24
|
{
|
|
23
25
|
icon: "Person",
|
|
24
26
|
title: "Agent C",
|
|
25
27
|
path: {
|
|
26
28
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e8a",
|
|
27
|
-
url: "https://www.renown.id/
|
|
29
|
+
url: "https://www.renown.id/",
|
|
28
30
|
},
|
|
29
31
|
value: "did:ethr:0x89:0xb9c5714089478a327f09197987f16f9e5d936e8a",
|
|
30
32
|
description: "Agent C description",
|
|
33
|
+
agentType: "AI Contributor",
|
|
31
34
|
},
|
|
32
35
|
{
|
|
33
36
|
icon: "Person",
|
|
34
37
|
title: "Lucas Martinez",
|
|
35
38
|
path: {
|
|
36
39
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e8b",
|
|
37
|
-
url: "https://www.renown.id/
|
|
40
|
+
url: "https://www.renown.id/",
|
|
38
41
|
},
|
|
39
42
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e8b",
|
|
40
43
|
description: "UX Designer",
|
|
44
|
+
agentType: "Human Contributor",
|
|
41
45
|
},
|
|
42
46
|
{
|
|
43
47
|
icon: "Person",
|
|
44
48
|
title: "Oliver Brown",
|
|
45
49
|
path: {
|
|
46
50
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e8c",
|
|
47
|
-
url: "https://www.renown.id/
|
|
51
|
+
url: "https://www.renown.id/",
|
|
48
52
|
},
|
|
49
53
|
value: "did:ethr:0x5:0xb9c5714089478a327f09197987f16f9e5d936e8c",
|
|
50
54
|
description: "DevOps Engineer",
|
|
55
|
+
agentType: "Contributor Team",
|
|
51
56
|
},
|
|
52
57
|
{
|
|
53
58
|
icon: "Person",
|
|
54
59
|
title: "Isabella Garcia",
|
|
55
60
|
path: {
|
|
56
61
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e8d",
|
|
57
|
-
url: "https://www.renown.id/
|
|
62
|
+
url: "https://www.renown.id/",
|
|
58
63
|
},
|
|
59
64
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e8d",
|
|
60
65
|
description: "Frontend Developer",
|
|
66
|
+
agentType: "AI Contributor",
|
|
61
67
|
},
|
|
62
68
|
{
|
|
63
69
|
icon: "Person",
|
|
64
70
|
title: "William Taylor",
|
|
65
71
|
path: {
|
|
66
72
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e8e",
|
|
67
|
-
url: "https://www.renown.id/
|
|
73
|
+
url: "https://www.renown.id/",
|
|
68
74
|
},
|
|
69
75
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e8e",
|
|
70
76
|
description: "Backend Developer",
|
|
77
|
+
agentType: "Human Contributor",
|
|
71
78
|
},
|
|
72
79
|
{
|
|
73
80
|
icon: "Person",
|
|
74
81
|
title: "Ava Johnson",
|
|
75
82
|
path: {
|
|
76
83
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e8f",
|
|
77
|
-
url: "https://www.renown.id/
|
|
84
|
+
url: "https://www.renown.id/",
|
|
78
85
|
},
|
|
79
86
|
value: "did:ethr:0x5:0xb9c5714089478a327f09197987f16f9e5d936e8f",
|
|
80
87
|
description: "Quality Assurance Engineer",
|
|
88
|
+
agentType: "Contributor Team",
|
|
81
89
|
},
|
|
82
90
|
{
|
|
83
91
|
icon: "Person",
|
|
84
92
|
title: "Noah Anderson",
|
|
85
93
|
path: {
|
|
86
94
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e9a",
|
|
87
|
-
url: "https://www.renown.id/
|
|
95
|
+
url: "https://www.renown.id/",
|
|
88
96
|
},
|
|
89
97
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e9a",
|
|
90
98
|
description: "Systems Architect",
|
|
99
|
+
agentType: "AI Contributor",
|
|
91
100
|
},
|
|
92
101
|
{
|
|
93
102
|
icon: "Person",
|
|
94
103
|
title: "Mia Patel",
|
|
95
104
|
path: {
|
|
96
105
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e9b",
|
|
97
|
-
url: "https://www.renown.id/
|
|
106
|
+
url: "https://www.renown.id/",
|
|
98
107
|
},
|
|
99
108
|
value: "did:ethr:0x5:0xb9c5714089478a327f09197987f16f9e5d936e9b",
|
|
100
109
|
description: "Security Analyst",
|
|
110
|
+
agentType: "Human Contributor",
|
|
101
111
|
},
|
|
102
112
|
{
|
|
103
113
|
icon: "Person",
|
|
104
114
|
title: "Ethan Wright",
|
|
105
115
|
path: {
|
|
106
116
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e9c",
|
|
107
|
-
url: "https://www.renown.id/
|
|
117
|
+
url: "https://www.renown.id/",
|
|
108
118
|
},
|
|
109
119
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e9c",
|
|
110
120
|
description: "Cloud Engineer",
|
|
121
|
+
agentType: "Contributor Team",
|
|
111
122
|
},
|
|
112
123
|
{
|
|
113
124
|
icon: "Person",
|
|
114
125
|
title: "Charlotte Lee",
|
|
115
126
|
path: {
|
|
116
127
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e9d",
|
|
117
|
-
url: "https://www.renown.id/
|
|
128
|
+
url: "https://www.renown.id/",
|
|
118
129
|
},
|
|
119
130
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e9d",
|
|
120
131
|
description: "Project Manager",
|
|
132
|
+
agentType: "AI Contributor",
|
|
121
133
|
},
|
|
122
134
|
{
|
|
123
135
|
icon: "Person",
|
|
124
136
|
title: "Alexander Kim",
|
|
125
137
|
path: {
|
|
126
138
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e9e",
|
|
127
|
-
url: "https://www.renown.id/
|
|
139
|
+
url: "https://www.renown.id/",
|
|
128
140
|
},
|
|
129
141
|
value: "did:ethr:0x5:0xb9c5714089478a327f09197987f16f9e5d936e9e",
|
|
130
142
|
description: "Machine Learning Engineer",
|
|
143
|
+
agentType: "Human Contributor",
|
|
131
144
|
},
|
|
132
145
|
{
|
|
133
146
|
icon: "Person",
|
|
134
147
|
title: "Sofia Rodriguez",
|
|
135
148
|
path: {
|
|
136
149
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936e9f",
|
|
137
|
-
url: "https://www.renown.id/
|
|
150
|
+
url: "https://www.renown.id/",
|
|
138
151
|
},
|
|
139
152
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936e9f",
|
|
140
153
|
description: "Full Stack Developer",
|
|
154
|
+
agentType: "Contributor Team",
|
|
141
155
|
},
|
|
142
156
|
{
|
|
143
157
|
icon: "Person",
|
|
144
158
|
title: "Daniel Smith",
|
|
145
159
|
path: {
|
|
146
160
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936eaa",
|
|
147
|
-
url: "https://www.renown.id/
|
|
161
|
+
url: "https://www.renown.id/",
|
|
148
162
|
},
|
|
149
163
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936eaa",
|
|
150
164
|
description: "Mobile Developer",
|
|
165
|
+
agentType: "AI Contributor",
|
|
151
166
|
},
|
|
152
167
|
{
|
|
153
168
|
icon: "Person",
|
|
154
169
|
title: "Victoria White",
|
|
155
170
|
path: {
|
|
156
171
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936eab",
|
|
157
|
-
url: "https://www.renown.id/
|
|
172
|
+
url: "https://www.renown.id/",
|
|
158
173
|
},
|
|
159
174
|
value: "did:ethr:0x5:0xb9c5714089478a327f09197987f16f9e5d936eab",
|
|
160
175
|
description: "Business Analyst",
|
|
176
|
+
agentType: "Human Contributor",
|
|
161
177
|
},
|
|
162
178
|
{
|
|
163
179
|
icon: "Person",
|
|
164
180
|
title: "Henry Davis",
|
|
165
181
|
path: {
|
|
166
182
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936eac",
|
|
167
|
-
url: "https://www.renown.id/
|
|
183
|
+
url: "https://www.renown.id/",
|
|
168
184
|
},
|
|
169
185
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936eac",
|
|
170
186
|
description: "Technical Lead",
|
|
187
|
+
agentType: "Contributor Team",
|
|
171
188
|
},
|
|
172
189
|
{
|
|
173
190
|
icon: "Person",
|
|
174
191
|
title: "Zoe Miller",
|
|
175
192
|
path: {
|
|
176
193
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936ead",
|
|
177
|
-
url: "https://www.renown.id/
|
|
194
|
+
url: "https://www.renown.id/",
|
|
178
195
|
},
|
|
179
196
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936ead",
|
|
180
197
|
description: "UI Designer",
|
|
198
|
+
agentType: "AI Contributor",
|
|
181
199
|
},
|
|
182
200
|
{
|
|
183
201
|
icon: "Person",
|
|
184
202
|
title: "Benjamin Clark",
|
|
185
203
|
path: {
|
|
186
204
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936eae",
|
|
187
|
-
url: "https://www.renown.id/
|
|
205
|
+
url: "https://www.renown.id/",
|
|
188
206
|
},
|
|
189
207
|
value: "did:ethr:0x5:0xb9c5714089478a327f09197987f16f9e5d936eae",
|
|
190
208
|
description: "Infrastructure Engineer",
|
|
209
|
+
agentType: "Human Contributor",
|
|
191
210
|
},
|
|
192
211
|
{
|
|
193
212
|
icon: "Person",
|
|
194
213
|
title: "Lily Zhang",
|
|
195
214
|
path: {
|
|
196
215
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936eaf",
|
|
197
|
-
url: "https://www.renown.id/
|
|
216
|
+
url: "https://www.renown.id/",
|
|
198
217
|
},
|
|
199
218
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936eaf",
|
|
200
219
|
description: "Software Developer",
|
|
220
|
+
agentType: "Contributor Team",
|
|
201
221
|
},
|
|
202
222
|
{
|
|
203
223
|
icon: "Person",
|
|
204
224
|
title: "Sebastian Moore",
|
|
205
225
|
path: {
|
|
206
226
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936eba",
|
|
207
|
-
url: "https://www.renown.id/
|
|
227
|
+
url: "https://www.renown.id/",
|
|
208
228
|
},
|
|
209
229
|
value: "did:ethr:0x5:0xb9c5714089478a327f09197987f16f9e5d936eba",
|
|
210
230
|
description: "Database Administrator",
|
|
231
|
+
agentType: "AI Contributor",
|
|
211
232
|
},
|
|
212
233
|
{
|
|
213
234
|
icon: "Person",
|
|
214
235
|
title: "Aria Thomas",
|
|
215
236
|
path: {
|
|
216
237
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936ebb",
|
|
217
|
-
url: "https://www.renown.id/
|
|
238
|
+
url: "https://www.renown.id/",
|
|
218
239
|
},
|
|
219
240
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936ebb",
|
|
220
241
|
description: "Product Designer",
|
|
242
|
+
agentType: "Human Contributor",
|
|
221
243
|
},
|
|
222
244
|
{
|
|
223
245
|
icon: "Person",
|
|
224
246
|
title: "Jack Wilson",
|
|
225
247
|
path: {
|
|
226
248
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936ebc",
|
|
227
|
-
url: "https://www.renown.id/
|
|
249
|
+
url: "https://www.renown.id/",
|
|
228
250
|
},
|
|
229
251
|
value: "did:ethr:0x5:0xb9c5714089478a327f09197987f16f9e5d936ebc",
|
|
230
252
|
description: "Solutions Architect",
|
|
253
|
+
agentType: "Contributor Team",
|
|
231
254
|
},
|
|
232
255
|
{
|
|
233
256
|
icon: "Person",
|
|
234
257
|
title: "Luna Harris",
|
|
235
258
|
path: {
|
|
236
259
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936ebd",
|
|
237
|
-
url: "https://www.renown.id/
|
|
260
|
+
url: "https://www.renown.id/",
|
|
238
261
|
},
|
|
239
262
|
value: "did:ethr:0xb9c5714089478a327f09197987f16f9e5d936ebd",
|
|
240
263
|
description: "Network Engineer",
|
|
264
|
+
agentType: "AI Contributor",
|
|
241
265
|
},
|
|
242
266
|
{
|
|
243
267
|
icon: "Person",
|
|
244
268
|
title: "Owen Martinez",
|
|
245
269
|
path: {
|
|
246
270
|
text: "renown.id/0xb9c5714089478a327f09197987f16f9e5d936ebe",
|
|
247
|
-
url: "https://www.renown.id/
|
|
271
|
+
url: "https://www.renown.id/",
|
|
248
272
|
},
|
|
249
273
|
value: "did:ethr:0x5:0xb9c5714089478a327f09197987f16f9e5d936ebe",
|
|
250
274
|
description: "Security Engineer",
|
|
275
|
+
agentType: "Human Contributor",
|
|
251
276
|
},
|
|
252
277
|
];
|
|
253
278
|
const filterOptions = (options, userInput, context) => {
|
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
import type { IdAutocompleteProps } from "../fragments/id-autocomplete-field/types.js";
|
|
1
|
+
import type { IdAutocompleteOption, IdAutocompleteProps } from "../fragments/id-autocomplete-field/types.js";
|
|
2
2
|
export interface Network {
|
|
3
3
|
chainId: string;
|
|
4
4
|
name?: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
type AIDOptionProps = {
|
|
7
|
+
agentType?: string;
|
|
8
|
+
};
|
|
9
|
+
export type AIDOption = IdAutocompleteOption<AIDOptionProps>;
|
|
10
|
+
type AIDBaseProps = Omit<IdAutocompleteProps, "autoComplete" | "fetchOptionsCallback" | "fetchSelectedOptionCallback" | "renderOption"> & {
|
|
7
11
|
supportedNetworks?: Network[];
|
|
8
12
|
};
|
|
13
|
+
export type AIDProps = AIDBaseProps & ({
|
|
14
|
+
autoComplete: false;
|
|
15
|
+
fetchOptionsCallback?: never;
|
|
16
|
+
fetchSelectedOptionCallback?: never;
|
|
17
|
+
} | {
|
|
18
|
+
autoComplete?: true;
|
|
19
|
+
fetchOptionsCallback: (userInput: string, context?: Record<string, unknown>) => Promise<AIDOption[]> | AIDOption[];
|
|
20
|
+
fetchSelectedOptionCallback?: (value: string) => Promise<AIDOption | undefined> | AIDOption | undefined;
|
|
21
|
+
});
|
|
22
|
+
export {};
|
|
9
23
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/aid-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/aid-field/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,oBAAoB,EACpB,mBAAmB,EACpB,MAAM,6CAA6C,CAAC;AAErD,MAAM,WAAW,OAAO;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,KAAK,cAAc,GAAG;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AACF,MAAM,MAAM,SAAS,GAAG,oBAAoB,CAAC,cAAc,CAAC,CAAC;AAE7D,KAAK,YAAY,GAAG,IAAI,CACtB,mBAAmB,EACjB,cAAc,GACd,sBAAsB,GACtB,6BAA6B,GAC7B,cAAc,CACjB,GAAG;IACF,iBAAiB,CAAC,EAAE,OAAO,EAAE,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,QAAQ,GAAG,YAAY,GACjC,CACI;IACE,YAAY,EAAE,KAAK,CAAC;IACpB,oBAAoB,CAAC,EAAE,KAAK,CAAC;IAC7B,2BAA2B,CAAC,EAAE,KAAK,CAAC;CACrC,GACD;IACE,YAAY,CAAC,EAAE,IAAI,CAAC;IACpB,oBAAoB,EAAE,CACpB,SAAS,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,OAAO,CAAC,SAAS,EAAE,CAAC,GAAG,SAAS,EAAE,CAAC;IACxC,2BAA2B,CAAC,EAAE,CAC5B,KAAK,EAAE,MAAM,KACV,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,SAAS,GAAG,SAAS,CAAC;CAC7D,CACJ,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
export interface BooleanFieldProps extends Omit<
|
|
2
|
+
import type { CheckboxProps } from "../fragments/checkbox-field/checkbox.js";
|
|
3
|
+
import type { ToggleProps } from "../fragments/toggle-field/toggle.js";
|
|
4
|
+
export interface BooleanFieldProps extends Omit<CheckboxProps, "defaultValue" | "onChange" | "value">, Omit<ToggleProps, "onChange" | "value"> {
|
|
5
5
|
isToggle?: boolean;
|
|
6
6
|
onChange?: (value: boolean) => void;
|
|
7
7
|
value?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"boolean-field.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/boolean-field/boolean-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,
|
|
1
|
+
{"version":3,"file":"boolean-field.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/boolean-field/boolean-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yCAAyC,CAAC;AAG7E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,MAAM,WAAW,iBACf,SAAQ,IAAI,CAAC,aAAa,EAAE,cAAc,GAAG,UAAU,GAAG,OAAO,CAAC,EAChE,IAAI,CAAC,WAAW,EAAE,UAAU,GAAG,OAAO,CAAC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,eAAO,MAAM,YAAY,6FAavB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
2
|
import React from "react";
|
|
3
|
-
import { CheckboxField
|
|
4
|
-
import { ToggleField
|
|
3
|
+
import { CheckboxField } from "../fragments/checkbox-field/index.js";
|
|
4
|
+
import { ToggleField } from "../fragments/toggle-field/index.js";
|
|
5
5
|
export const BooleanField = React.forwardRef(({ isToggle, onChange, ...props }, ref) => {
|
|
6
6
|
const handleChange = (value) => {
|
|
7
7
|
onChange?.(Boolean(value));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BooleanField } from "./boolean-field.js";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/boolean-field/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/boolean-field/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { BooleanField } from "./boolean-field.js";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { type ErrorHandling, type FieldCommonProps } from "#scalars";
|
|
2
1
|
import React from "react";
|
|
2
|
+
import type { FieldErrorHandling, InputBaseProps } from "../types.js";
|
|
3
3
|
import type { CountryCodeProps } from "./types.js";
|
|
4
|
-
type CountryCodeFieldBaseProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof
|
|
5
|
-
export type CountryCodeFieldProps = CountryCodeFieldBaseProps &
|
|
6
|
-
export declare const CountryCodeField: React.ForwardRefExoticComponent<CountryCodeFieldBaseProps &
|
|
4
|
+
type CountryCodeFieldBaseProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof InputBaseProps<string> | keyof FieldErrorHandling | keyof CountryCodeProps>;
|
|
5
|
+
export type CountryCodeFieldProps = CountryCodeFieldBaseProps & InputBaseProps<string> & FieldErrorHandling & CountryCodeProps;
|
|
6
|
+
export declare const CountryCodeField: React.ForwardRefExoticComponent<CountryCodeFieldBaseProps & InputBaseProps<string> & FieldErrorHandling & CountryCodeProps & React.RefAttributes<unknown>>;
|
|
7
7
|
export {};
|
|
8
8
|
//# sourceMappingURL=country-code-field.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"country-code-field.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/country-code-field/country-code-field.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"country-code-field.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/country-code-field/country-code-field.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEnD,KAAK,yBAAyB,GAAG,IAAI,CACnC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC3C,MAAM,cAAc,CAAC,MAAM,CAAC,GAC5B,MAAM,kBAAkB,GACxB,MAAM,gBAAgB,CACzB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG,yBAAyB,GAC3D,cAAc,CAAC,MAAM,CAAC,GACtB,kBAAkB,GAClB,gBAAgB,CAAC;AAsEnB,eAAO,MAAM,gBAAgB,4JA0C5B,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import type {
|
|
2
|
+
import type { FieldErrorHandling, InputBaseProps } from "../types.js";
|
|
3
3
|
import type { Currency, CurrencyType } from "./types.js";
|
|
4
|
-
type CurrencyCodeFieldBaseProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof
|
|
5
|
-
export interface CurrencyCodeFieldProps extends CurrencyCodeFieldBaseProps,
|
|
4
|
+
type CurrencyCodeFieldBaseProps = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof InputBaseProps<string | string[]> | keyof FieldErrorHandling | "onChange" | "onBlur">;
|
|
5
|
+
export interface CurrencyCodeFieldProps extends CurrencyCodeFieldBaseProps, InputBaseProps<string | string[]>, FieldErrorHandling {
|
|
6
6
|
placeholder?: string;
|
|
7
7
|
onChange?: (value: string | string[]) => void;
|
|
8
8
|
onBlur?: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"currency-code-field.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/currency-code-field/currency-code-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"currency-code-field.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/currency-code-field/currency-code-field.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAIvC,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAEzD,KAAK,0BAA0B,GAAG,IAAI,CACpC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAC3C,MAAM,cAAc,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,GACvC,MAAM,kBAAkB,GACxB,UAAU,GACV,QAAQ,CACX,CAAC;AAEF,MAAM,WAAW,sBACf,SAAQ,0BAA0B,EAChC,cAAc,CAAC,MAAM,GAAG,MAAM,EAAE,CAAC,EACjC,kBAAkB;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;IAC9C,MAAM,CAAC,EAAE,MAAM,IAAI,CAAC;IACpB,UAAU,CAAC,EAAE,QAAQ,EAAE,CAAC;IACxB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,YAAY,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IACrC,kBAAkB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC9B,cAAc,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAClC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;CAC3C;AAED,eAAO,MAAM,oBAAoB,kGA6FhC,CAAC;AAIF,eAAO,MAAM,iBAAiB,wFACqC,CAAC"}
|
|
@@ -2,13 +2,42 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
2
2
|
import React, { useMemo } from "react";
|
|
3
3
|
import { SelectFieldRaw } from "../fragments/index.js";
|
|
4
4
|
import { withFieldValidation } from "../fragments/with-field-validation/with-field-validation.js";
|
|
5
|
-
export const CurrencyCodeFieldRaw = React.forwardRef(({ placeholder, currencies, includeCurrencySymbols = true, symbolPosition = "right", searchable = false, contentClassName, contentAlign = "start",
|
|
5
|
+
export const CurrencyCodeFieldRaw = React.forwardRef(({ placeholder, currencies, favoriteCurrencies = [], includeCurrencySymbols = true, symbolPosition = "right", searchable = false, contentClassName, contentAlign = "start",
|
|
6
6
|
// TODO: implement following props
|
|
7
7
|
// allowedTypes = "Both",
|
|
8
8
|
// favoriteCurrencies,
|
|
9
9
|
...props }, ref) => {
|
|
10
10
|
const options = useMemo(() => {
|
|
11
|
-
|
|
11
|
+
const favoriteTickers = new Set(favoriteCurrencies);
|
|
12
|
+
return (currencies
|
|
13
|
+
?.map((currency) => {
|
|
14
|
+
if (favoriteTickers.has(currency.ticker)) {
|
|
15
|
+
return null;
|
|
16
|
+
}
|
|
17
|
+
let label = currency.label ?? currency.ticker;
|
|
18
|
+
if (includeCurrencySymbols && currency.symbol) {
|
|
19
|
+
label =
|
|
20
|
+
symbolPosition === "right"
|
|
21
|
+
? `${label} (${currency.symbol})`
|
|
22
|
+
: `(${currency.symbol}) ${label}`;
|
|
23
|
+
}
|
|
24
|
+
return {
|
|
25
|
+
label,
|
|
26
|
+
value: currency.ticker,
|
|
27
|
+
};
|
|
28
|
+
})
|
|
29
|
+
.filter(Boolean) ?? []);
|
|
30
|
+
}, [
|
|
31
|
+
currencies,
|
|
32
|
+
includeCurrencySymbols,
|
|
33
|
+
symbolPosition,
|
|
34
|
+
favoriteCurrencies,
|
|
35
|
+
]);
|
|
36
|
+
const favoriteOptions = useMemo(() => {
|
|
37
|
+
const favoriteTickers = new Set(favoriteCurrencies || []);
|
|
38
|
+
return (currencies
|
|
39
|
+
?.filter((currency) => favoriteTickers.has(currency.ticker))
|
|
40
|
+
.map((currency) => {
|
|
12
41
|
let label = currency.label ?? currency.ticker;
|
|
13
42
|
if (includeCurrencySymbols && currency.symbol) {
|
|
14
43
|
label =
|
|
@@ -21,8 +50,13 @@ export const CurrencyCodeFieldRaw = React.forwardRef(({ placeholder, currencies,
|
|
|
21
50
|
value: currency.ticker,
|
|
22
51
|
};
|
|
23
52
|
}) ?? []);
|
|
24
|
-
}, [
|
|
25
|
-
|
|
53
|
+
}, [
|
|
54
|
+
currencies,
|
|
55
|
+
favoriteCurrencies,
|
|
56
|
+
includeCurrencySymbols,
|
|
57
|
+
symbolPosition,
|
|
58
|
+
]);
|
|
59
|
+
return (_jsx(SelectFieldRaw, { ref: ref, options: options, selectionIcon: "checkmark", searchable: searchable, multiple: false, placeholder: placeholder, contentAlign: contentAlign, contentClassName: contentClassName, favoriteOptions: favoriteOptions, ...props }));
|
|
26
60
|
});
|
|
27
61
|
CurrencyCodeFieldRaw.displayName = "CurrencyCodeFieldRaw";
|
|
28
62
|
export const CurrencyCodeField = withFieldValidation(CurrencyCodeFieldRaw);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { ErrorHandling, FieldCommonProps } from "../types.js";
|
|
2
|
-
import type { DateFieldValue } from "./types.js";
|
|
3
1
|
import { type InputProps } from "../fragments/index.js";
|
|
4
|
-
|
|
2
|
+
import type { FieldErrorHandling, InputBaseProps } from "../types.js";
|
|
3
|
+
import type { DateFieldValue } from "./types.js";
|
|
4
|
+
export interface DateFieldProps extends InputBaseProps<DateFieldValue>, FieldErrorHandling {
|
|
5
5
|
label?: string;
|
|
6
6
|
id?: string;
|
|
7
7
|
name: string;
|
|
@@ -21,5 +21,5 @@ export interface DatePickerFieldProps extends FieldCommonProps<DateFieldValue>,
|
|
|
21
21
|
weekStart?: string;
|
|
22
22
|
autoClose?: boolean;
|
|
23
23
|
}
|
|
24
|
-
export declare const
|
|
25
|
-
//# sourceMappingURL=date-
|
|
24
|
+
export declare const DateField: import("react").ForwardRefExoticComponent<DateFieldProps & import("react").RefAttributes<unknown>>;
|
|
25
|
+
//# sourceMappingURL=date-field.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-field.d.ts","sourceRoot":"","sources":["../../../../../src/scalars/components/date-field/date-field.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,uBAAuB,CAAC;AAExD,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAGtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAGjD,MAAM,WAAW,cACf,SAAQ,cAAc,CAAC,cAAc,CAAC,EACpC,kBAAkB;IACpB,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,UAAU,EACV,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;AAmKD,eAAO,MAAM,SAAS,oGAIpB,CAAC"}
|