@canonical/react-ds-global-form 0.47.0 → 0.48.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/README.md +5 -6
- package/dist/esm/density.css +23 -28
- package/dist/esm/index.css +28 -13
- package/dist/esm/lib/{component → _work_in_progress/component}/ColorField/ColorField.js +2 -2
- package/dist/esm/lib/_work_in_progress/component/ColorField/ColorField.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/component/ColorField/index.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/component/ColorField/types.js.map +1 -0
- package/dist/esm/lib/{component → _work_in_progress/component}/ComboboxField/ComboboxField.js +2 -2
- package/dist/esm/lib/_work_in_progress/component/ComboboxField/ComboboxField.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/component/ComboboxField/index.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/component/ComboboxField/types.js.map +1 -0
- package/dist/esm/lib/{component → _work_in_progress/component}/RatingField/RatingField.js +2 -2
- package/dist/esm/lib/_work_in_progress/component/RatingField/RatingField.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/component/RatingField/index.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/component/RatingField/types.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ColorInput/ColorInput.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ColorInput/index.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ColorInput/types.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/ComboboxInput.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/MultipleCombobox.js +198 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/MultipleCombobox.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/SingleCombobox.js +120 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/SingleCombobox.js.map +1 -0
- package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/List.js +16 -4
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/List.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/index.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/types.js.map +1 -0
- package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/ResetButton.js +2 -2
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/ResetButton.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/index.js.map +1 -0
- package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/styles.css +3 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/types.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/common/index.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/constants.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/index.js.map +1 -0
- package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/messages.js +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/messages.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/types.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/convertItemToString.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/convertValueToItem.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/filterItems.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/index.js +7 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/index.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/isPromise.js +6 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/isPromise.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/settleLookup.js +10 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/settleLookup.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/stopPageMovesAtEnds.js +25 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/ComboboxInput/utils/stopPageMovesAtEnds.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/RatingInput/RatingInput.js.map +1 -0
- package/dist/esm/lib/_work_in_progress/subcomponent/RatingInput/index.js.map +1 -0
- package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/styles.css +7 -7
- package/dist/esm/lib/_work_in_progress/subcomponent/RatingInput/types.js.map +1 -0
- package/dist/esm/lib/common/Wrapper/InvisibleWrapper.js +3 -1
- package/dist/esm/lib/common/Wrapper/InvisibleWrapper.js.map +1 -1
- package/dist/esm/lib/common/Wrapper/ToggleWrapper.css +0 -6
- package/dist/esm/lib/common/Wrapper/ToggleWrapper.js +2 -1
- package/dist/esm/lib/common/Wrapper/ToggleWrapper.js.map +1 -1
- package/dist/esm/lib/common/Wrapper/Wrapper.js +10 -6
- package/dist/esm/lib/common/Wrapper/Wrapper.js.map +1 -1
- package/dist/esm/lib/common/Wrapper/createMiddleware.js +70 -0
- package/dist/esm/lib/common/Wrapper/createMiddleware.js.map +1 -0
- package/dist/esm/lib/common/Wrapper/hooks/useFieldWrapper.js +2 -2
- package/dist/esm/lib/common/Wrapper/hooks/useFieldWrapper.js.map +1 -1
- package/dist/esm/lib/common/Wrapper/withConditionalDisplay.js +17 -12
- package/dist/esm/lib/common/Wrapper/withConditionalDisplay.js.map +1 -1
- package/dist/esm/lib/common/Wrapper/withWrapper.js +16 -10
- package/dist/esm/lib/common/Wrapper/withWrapper.js.map +1 -1
- package/dist/esm/lib/component/ChoicesField/Choices.js +2 -2
- package/dist/esm/lib/component/ChoicesField/Choices.js.map +1 -1
- package/dist/esm/lib/component/ChoicesField/ChoicesField.js +3 -2
- package/dist/esm/lib/component/ChoicesField/ChoicesField.js.map +1 -1
- package/dist/esm/lib/component/ChoicesField/styles.css +3 -65
- package/dist/esm/lib/component/DateTimeField/DateTimeField.js +2 -1
- package/dist/esm/lib/component/DateTimeField/DateTimeField.js.map +1 -1
- package/dist/esm/lib/component/FileUploadField/FileUploadField.js +45 -41
- package/dist/esm/lib/component/FileUploadField/FileUploadField.js.map +1 -1
- package/dist/esm/lib/component/FileUploadField/fileUploadRules.js +39 -0
- package/dist/esm/lib/component/FileUploadField/fileUploadRules.js.map +1 -0
- package/dist/esm/lib/component/FileUploadField/styles.css +30 -0
- package/dist/esm/lib/component/RichChoicesField/RichChoices.js +2 -2
- package/dist/esm/lib/component/RichChoicesField/RichChoices.js.map +1 -1
- package/dist/esm/lib/component/RichChoicesField/RichChoicesField.js +2 -2
- package/dist/esm/lib/component/index.js +5 -4
- package/dist/esm/lib/component/index.js.map +1 -1
- package/dist/esm/lib/index.js.map +1 -1
- package/dist/esm/lib/pattern/Field/Field.js +3 -3
- package/dist/esm/lib/pattern/Field/Field.js.map +1 -1
- package/dist/esm/lib/subcomponent/DateInput/styles.css +16 -0
- package/dist/esm/lib/subcomponent/DateTimeInput/styles.css +24 -7
- package/dist/esm/lib/subcomponent/Field/Description/Description.js +1 -3
- package/dist/esm/lib/subcomponent/Field/Description/Description.js.map +1 -1
- package/dist/esm/lib/subcomponent/Field/Description/styles.css +4 -0
- package/dist/esm/lib/subcomponent/Field/Error/Error.js +4 -4
- package/dist/esm/lib/subcomponent/Field/Error/Error.js.map +1 -1
- package/dist/esm/lib/subcomponent/Field/Error/styles.css +8 -0
- package/dist/esm/lib/subcomponent/Field/Label/styles.css +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/FileUploadInput.js +119 -64
- package/dist/esm/lib/subcomponent/FileUploadInput/FileUploadInput.js.map +1 -1
- package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/FileItem.js +52 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/FileItem.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/index.js +2 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/index.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/types.js +2 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/common/FileItem/types.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/Thumbnail.js +40 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/Thumbnail.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/index.js +2 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/index.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/types.js +2 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/common/Thumbnail/types.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/constants.js +3 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/constants.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/hooks/index.js +3 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/hooks/index.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/hooks/useFileUploads.js +148 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/hooks/useFileUploads.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/hooks/useObjectUrl.js +22 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/hooks/useObjectUrl.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/messages.js +25 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/messages.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/styles.css +255 -94
- package/dist/esm/lib/subcomponent/FileUploadInput/utils/formatFileSize.js +21 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/utils/formatFileSize.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/utils/getFileMessage.js +20 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/utils/getFileMessage.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/utils/index.js +4 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/utils/index.js.map +1 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/utils/matchesAccept.js +26 -0
- package/dist/esm/lib/subcomponent/FileUploadInput/utils/matchesAccept.js.map +1 -0
- package/dist/esm/lib/subcomponent/NumberInput/NumberInput.js +1 -1
- package/dist/esm/lib/subcomponent/NumberInput/NumberInput.js.map +1 -1
- package/dist/esm/lib/subcomponent/NumberInput/styles.css +17 -0
- package/dist/esm/lib/subcomponent/PasswordInput/styles.css +7 -1
- package/dist/esm/lib/subcomponent/PhoneInput/PhoneInput.js +8 -2
- package/dist/esm/lib/subcomponent/PhoneInput/PhoneInput.js.map +1 -1
- package/dist/esm/lib/subcomponent/RadioInput/styles.css +15 -13
- package/dist/esm/lib/subcomponent/TextInput/TextInput.js +3 -1
- package/dist/esm/lib/subcomponent/TextInput/TextInput.js.map +1 -1
- package/dist/esm/lib/subcomponent/index.js +5 -5
- package/dist/esm/lib/subcomponent/index.js.map +1 -1
- package/dist/esm/lib/utils/hooks/useFieldAriaProperties.js +6 -4
- package/dist/esm/lib/utils/hooks/useFieldAriaProperties.js.map +1 -1
- package/dist/esm/lib/utils/hooks/useOptionAriaProperties.js +3 -3
- package/dist/esm/lib/utils/hooks/useOptionAriaProperties.js.map +1 -1
- package/dist/esm/lib/utils/middleware/addRESTOptions.js +99 -39
- package/dist/esm/lib/utils/middleware/addRESTOptions.js.map +1 -1
- package/dist/esm/lib/utils/middleware/addRESTValidation.js +246 -32
- package/dist/esm/lib/utils/middleware/addRESTValidation.js.map +1 -1
- package/dist/esm/lib/utils/middleware/index.js +1 -0
- package/dist/esm/lib/utils/middleware/index.js.map +1 -1
- package/dist/esm/testing/expectNoAxeViolations.js +30 -0
- package/dist/esm/testing/expectNoAxeViolations.js.map +1 -0
- package/dist/types/lib/{component → _work_in_progress/component}/ColorField/ColorField.d.ts +7 -12
- package/dist/types/lib/_work_in_progress/component/ColorField/ColorField.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/component/ColorField/index.d.ts.map +1 -0
- package/dist/types/lib/{component → _work_in_progress/component}/ColorField/types.d.ts +1 -1
- package/dist/types/lib/_work_in_progress/component/ColorField/types.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/component/ComboboxField/ComboboxField.d.ts +53 -0
- package/dist/types/lib/_work_in_progress/component/ComboboxField/ComboboxField.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/component/ComboboxField/index.d.ts.map +1 -0
- package/dist/types/lib/{component → _work_in_progress/component}/ComboboxField/types.d.ts +1 -1
- package/dist/types/lib/_work_in_progress/component/ComboboxField/types.d.ts.map +1 -0
- package/dist/types/lib/{component → _work_in_progress/component}/RatingField/RatingField.d.ts +7 -12
- package/dist/types/lib/_work_in_progress/component/RatingField/RatingField.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/component/RatingField/index.d.ts.map +1 -0
- package/dist/types/lib/{component → _work_in_progress/component}/RatingField/types.d.ts +1 -1
- package/dist/types/lib/_work_in_progress/component/RatingField/types.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ColorInput/ColorInput.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ColorInput/index.d.ts.map +1 -0
- package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/types.d.ts +1 -1
- package/dist/types/lib/_work_in_progress/subcomponent/ColorInput/types.d.ts.map +1 -0
- package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/ComboboxInput.d.ts +13 -5
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/ComboboxInput.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/MultipleCombobox.d.ts +24 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/MultipleCombobox.d.ts.map +1 -0
- package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/SingleCombobox.d.ts +19 -4
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/SingleCombobox.d.ts.map +1 -0
- package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/List.d.ts +1 -1
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/List.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/index.d.ts.map +1 -0
- package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/types.d.ts +2 -1
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/List/types.d.ts.map +1 -0
- package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/ResetButton.d.ts +1 -1
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/ResetButton.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/index.d.ts.map +1 -0
- package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/types.d.ts +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/ResetButton/types.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/common/index.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/constants.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/index.d.ts.map +1 -0
- package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/messages.d.ts +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/messages.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/types.d.ts +52 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/types.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/convertItemToString.d.ts +4 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/convertItemToString.d.ts.map +1 -0
- package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/utils/convertValueToItem.d.ts +1 -1
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/convertValueToItem.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/filterItems.d.ts +4 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/filterItems.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/index.d.ts +7 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/index.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/isPromise.d.ts +4 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/isPromise.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/settleLookup.d.ts +8 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/settleLookup.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/stopPageMovesAtEnds.d.ts +13 -0
- package/dist/types/lib/_work_in_progress/subcomponent/ComboboxInput/utils/stopPageMovesAtEnds.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/RatingInput/RatingInput.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/RatingInput/index.d.ts.map +1 -0
- package/dist/types/lib/_work_in_progress/subcomponent/RatingInput/types.d.ts.map +1 -0
- package/dist/types/lib/common/Wrapper/InvisibleWrapper.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/ToggleWrapper.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/Wrapper.d.ts +1 -1
- package/dist/types/lib/common/Wrapper/Wrapper.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/createMiddleware.d.ts +43 -0
- package/dist/types/lib/common/Wrapper/createMiddleware.d.ts.map +1 -0
- package/dist/types/lib/common/Wrapper/hooks/useFieldWrapper.d.ts +2 -0
- package/dist/types/lib/common/Wrapper/hooks/useFieldWrapper.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/withConditionalDisplay.d.ts +9 -3
- package/dist/types/lib/common/Wrapper/withConditionalDisplay.d.ts.map +1 -1
- package/dist/types/lib/common/Wrapper/withWrapper.d.ts +3 -5
- package/dist/types/lib/common/Wrapper/withWrapper.d.ts.map +1 -1
- package/dist/types/lib/common/types.d.ts +19 -7
- package/dist/types/lib/common/types.d.ts.map +1 -1
- package/dist/types/lib/component/ChoicesField/Choices.d.ts +1 -1
- package/dist/types/lib/component/ChoicesField/Choices.d.ts.map +1 -1
- package/dist/types/lib/component/ChoicesField/ChoicesField.d.ts +9 -13
- package/dist/types/lib/component/ChoicesField/ChoicesField.d.ts.map +1 -1
- package/dist/types/lib/component/ChoicesField/types.d.ts +2 -2
- package/dist/types/lib/component/ChoicesField/types.d.ts.map +1 -1
- package/dist/types/lib/component/DateField/DateField.d.ts +6 -11
- package/dist/types/lib/component/DateTimeField/DateTimeField.d.ts +7 -11
- package/dist/types/lib/component/DateTimeField/DateTimeField.d.ts.map +1 -1
- package/dist/types/lib/component/FileUploadField/FileUploadField.d.ts +299 -19
- package/dist/types/lib/component/FileUploadField/FileUploadField.d.ts.map +1 -1
- package/dist/types/lib/component/FileUploadField/fileUploadRules.d.ts +24 -0
- package/dist/types/lib/component/FileUploadField/fileUploadRules.d.ts.map +1 -0
- package/dist/types/lib/component/HiddenField/HiddenField.d.ts +6 -11
- package/dist/types/lib/component/NumberField/NumberField.d.ts +6 -11
- package/dist/types/lib/component/PasswordField/PasswordField.d.ts +6 -11
- package/dist/types/lib/component/PhoneField/PhoneField.d.ts +7 -11
- package/dist/types/lib/component/RangeField/RangeField.d.ts +6 -11
- package/dist/types/lib/component/RichChoicesField/RichChoices.d.ts +1 -1
- package/dist/types/lib/component/RichChoicesField/RichChoices.d.ts.map +1 -1
- package/dist/types/lib/component/RichChoicesField/RichChoicesField.d.ts +8 -13
- package/dist/types/lib/component/RichChoicesField/types.d.ts +2 -2
- package/dist/types/lib/component/RichChoicesField/types.d.ts.map +1 -1
- package/dist/types/lib/component/SelectField/SelectField.d.ts +6 -11
- package/dist/types/lib/component/TextField/TextField.d.ts +6 -11
- package/dist/types/lib/component/TextareaField/TextareaField.d.ts +6 -11
- package/dist/types/lib/component/TimeField/TimeField.d.ts +6 -11
- package/dist/types/lib/component/index.d.ts +3 -3
- package/dist/types/lib/component/index.d.ts.map +1 -1
- package/dist/types/lib/index.d.ts +1 -1
- package/dist/types/lib/index.d.ts.map +1 -1
- package/dist/types/lib/pattern/Field/types.d.ts +4 -4
- package/dist/types/lib/pattern/Field/types.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/Field/Description/Description.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/Field/Error/Error.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/FileUploadInput/FileUploadInput.d.ts +25 -4
- package/dist/types/lib/subcomponent/FileUploadInput/FileUploadInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/FileItem.d.ts +15 -0
- package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/FileItem.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/index.d.ts +3 -0
- package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/index.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/types.d.ts +28 -0
- package/dist/types/lib/subcomponent/FileUploadInput/common/FileItem/types.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/Thumbnail.d.ts +14 -0
- package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/Thumbnail.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/index.d.ts +3 -0
- package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/index.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/types.d.ts +9 -0
- package/dist/types/lib/subcomponent/FileUploadInput/common/Thumbnail/types.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/constants.d.ts +3 -0
- package/dist/types/lib/subcomponent/FileUploadInput/constants.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/hooks/index.d.ts +3 -0
- package/dist/types/lib/subcomponent/FileUploadInput/hooks/index.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/hooks/useFileUploads.d.ts +33 -0
- package/dist/types/lib/subcomponent/FileUploadInput/hooks/useFileUploads.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/hooks/useObjectUrl.d.ts +8 -0
- package/dist/types/lib/subcomponent/FileUploadInput/hooks/useObjectUrl.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/index.d.ts +1 -1
- package/dist/types/lib/subcomponent/FileUploadInput/index.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/FileUploadInput/messages.d.ts +4 -0
- package/dist/types/lib/subcomponent/FileUploadInput/messages.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/types.d.ts +165 -8
- package/dist/types/lib/subcomponent/FileUploadInput/types.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/FileUploadInput/utils/formatFileSize.d.ts +7 -0
- package/dist/types/lib/subcomponent/FileUploadInput/utils/formatFileSize.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/utils/getFileMessage.d.ts +14 -0
- package/dist/types/lib/subcomponent/FileUploadInput/utils/getFileMessage.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/utils/index.d.ts +5 -0
- package/dist/types/lib/subcomponent/FileUploadInput/utils/index.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/FileUploadInput/utils/matchesAccept.d.ts +10 -0
- package/dist/types/lib/subcomponent/FileUploadInput/utils/matchesAccept.d.ts.map +1 -0
- package/dist/types/lib/subcomponent/PhoneInput/PhoneInput.d.ts +12 -0
- package/dist/types/lib/subcomponent/PhoneInput/PhoneInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/PhoneInput/types.d.ts +11 -2
- package/dist/types/lib/subcomponent/PhoneInput/types.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/TextInput/TextInput.d.ts +2 -0
- package/dist/types/lib/subcomponent/TextInput/TextInput.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/index.d.ts +7 -7
- package/dist/types/lib/subcomponent/index.d.ts.map +1 -1
- package/dist/types/lib/subcomponent/types.d.ts +6 -0
- package/dist/types/lib/subcomponent/types.d.ts.map +1 -1
- package/dist/types/lib/utils/hooks/useFieldAriaProperties.d.ts +2 -1
- package/dist/types/lib/utils/hooks/useFieldAriaProperties.d.ts.map +1 -1
- package/dist/types/lib/utils/hooks/useOptionAriaProperties.d.ts +3 -2
- package/dist/types/lib/utils/hooks/useOptionAriaProperties.d.ts.map +1 -1
- package/dist/types/lib/utils/middleware/addRESTOptions.d.ts +37 -4
- package/dist/types/lib/utils/middleware/addRESTOptions.d.ts.map +1 -1
- package/dist/types/lib/utils/middleware/addRESTValidation.d.ts +38 -3
- package/dist/types/lib/utils/middleware/addRESTValidation.d.ts.map +1 -1
- package/dist/types/lib/utils/middleware/index.d.ts +2 -0
- package/dist/types/lib/utils/middleware/index.d.ts.map +1 -1
- package/dist/types/testing/expectNoAxeViolations.d.ts +10 -0
- package/dist/types/testing/expectNoAxeViolations.d.ts.map +1 -0
- package/package.json +18 -17
- package/dist/esm/lib/component/ColorField/ColorField.js.map +0 -1
- package/dist/esm/lib/component/ColorField/index.js.map +0 -1
- package/dist/esm/lib/component/ColorField/types.js.map +0 -1
- package/dist/esm/lib/component/ComboboxField/ComboboxField.js.map +0 -1
- package/dist/esm/lib/component/ComboboxField/index.js.map +0 -1
- package/dist/esm/lib/component/ComboboxField/types.js.map +0 -1
- package/dist/esm/lib/component/RatingField/RatingField.js.map +0 -1
- package/dist/esm/lib/component/RatingField/index.js.map +0 -1
- package/dist/esm/lib/component/RatingField/types.js.map +0 -1
- package/dist/esm/lib/subcomponent/ColorInput/ColorInput.js.map +0 -1
- package/dist/esm/lib/subcomponent/ColorInput/index.js.map +0 -1
- package/dist/esm/lib/subcomponent/ColorInput/types.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/ComboboxInput.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/MultipleCombobox.js +0 -84
- package/dist/esm/lib/subcomponent/ComboboxInput/MultipleCombobox.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/SingleCombobox.js +0 -67
- package/dist/esm/lib/subcomponent/ComboboxInput/SingleCombobox.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/common/List/List.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/common/List/index.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/common/List/types.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/common/ResetButton/ResetButton.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/common/ResetButton/index.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/common/ResetButton/types.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/common/index.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/constants.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/index.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/messages.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/types.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/utils/convertItemToString.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/utils/convertValueToItem.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/utils/filterItems.js.map +0 -1
- package/dist/esm/lib/subcomponent/ComboboxInput/utils/index.js +0 -4
- package/dist/esm/lib/subcomponent/ComboboxInput/utils/index.js.map +0 -1
- package/dist/esm/lib/subcomponent/RatingInput/RatingInput.js.map +0 -1
- package/dist/esm/lib/subcomponent/RatingInput/index.js.map +0 -1
- package/dist/esm/lib/subcomponent/RatingInput/types.js.map +0 -1
- package/dist/types/lib/component/ColorField/ColorField.d.ts.map +0 -1
- package/dist/types/lib/component/ColorField/index.d.ts.map +0 -1
- package/dist/types/lib/component/ColorField/types.d.ts.map +0 -1
- package/dist/types/lib/component/ComboboxField/ComboboxField.d.ts +0 -56
- package/dist/types/lib/component/ComboboxField/ComboboxField.d.ts.map +0 -1
- package/dist/types/lib/component/ComboboxField/index.d.ts.map +0 -1
- package/dist/types/lib/component/ComboboxField/types.d.ts.map +0 -1
- package/dist/types/lib/component/RatingField/RatingField.d.ts.map +0 -1
- package/dist/types/lib/component/RatingField/index.d.ts.map +0 -1
- package/dist/types/lib/component/RatingField/types.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ColorInput/ColorInput.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ColorInput/index.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ColorInput/types.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/ComboboxInput.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/MultipleCombobox.d.ts +0 -16
- package/dist/types/lib/subcomponent/ComboboxInput/MultipleCombobox.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/SingleCombobox.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/common/List/List.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/common/List/index.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/common/List/types.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/common/ResetButton/ResetButton.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/common/ResetButton/index.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/common/ResetButton/types.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/common/index.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/constants.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/index.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/messages.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/types.d.ts +0 -27
- package/dist/types/lib/subcomponent/ComboboxInput/types.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/utils/convertItemToString.d.ts +0 -4
- package/dist/types/lib/subcomponent/ComboboxInput/utils/convertItemToString.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/utils/convertValueToItem.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/utils/filterItems.d.ts +0 -4
- package/dist/types/lib/subcomponent/ComboboxInput/utils/filterItems.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/ComboboxInput/utils/index.d.ts +0 -4
- package/dist/types/lib/subcomponent/ComboboxInput/utils/index.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/RatingInput/RatingInput.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/RatingInput/index.d.ts.map +0 -1
- package/dist/types/lib/subcomponent/RatingInput/types.d.ts.map +0 -1
- /package/dist/esm/lib/{component → _work_in_progress/component}/ColorField/index.js +0 -0
- /package/dist/esm/lib/{component → _work_in_progress/component}/ColorField/types.js +0 -0
- /package/dist/esm/lib/{component → _work_in_progress/component}/ComboboxField/index.js +0 -0
- /package/dist/esm/lib/{component → _work_in_progress/component}/ComboboxField/types.js +0 -0
- /package/dist/esm/lib/{component → _work_in_progress/component}/RatingField/index.js +0 -0
- /package/dist/esm/lib/{component → _work_in_progress/component}/RatingField/types.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/ColorInput.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/index.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/styles.css +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/types.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/ComboboxInput.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/index.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/styles.css +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/types.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/index.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/types.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/index.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/constants.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/index.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/styles.css +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/types.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/utils/convertItemToString.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/utils/convertValueToItem.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/utils/filterItems.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/RatingInput.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/index.js +0 -0
- /package/dist/esm/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/types.js +0 -0
- /package/dist/types/lib/{component → _work_in_progress/component}/ColorField/index.d.ts +0 -0
- /package/dist/types/lib/{component → _work_in_progress/component}/ComboboxField/index.d.ts +0 -0
- /package/dist/types/lib/{component → _work_in_progress/component}/RatingField/index.d.ts +0 -0
- /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/ColorInput.d.ts +0 -0
- /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ColorInput/index.d.ts +0 -0
- /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/List/index.d.ts +0 -0
- /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/ResetButton/index.d.ts +0 -0
- /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/common/index.d.ts +0 -0
- /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/constants.d.ts +0 -0
- /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/ComboboxInput/index.d.ts +0 -0
- /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/RatingInput.d.ts +0 -0
- /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/index.d.ts +0 -0
- /package/dist/types/lib/{subcomponent → _work_in_progress/subcomponent}/RatingInput/types.d.ts +0 -0
|
@@ -8,7 +8,7 @@ import type { PasswordFieldProps } from "./types.js";
|
|
|
8
8
|
*
|
|
9
9
|
* @implements ds:global.component.password_field
|
|
10
10
|
*/
|
|
11
|
-
declare const _default: (
|
|
11
|
+
declare const _default: import("react").ComponentType<{
|
|
12
12
|
children?: import("react").ReactNode | undefined;
|
|
13
13
|
dangerouslySetInnerHTML?: {
|
|
14
14
|
__html: string | TrustedHTML;
|
|
@@ -324,21 +324,16 @@ declare const _default: (props: {
|
|
|
324
324
|
labelPosition?: "before" | "after";
|
|
325
325
|
isOptional?: boolean;
|
|
326
326
|
requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
|
|
327
|
+
descriptionPosition?: "leading" | "trailing";
|
|
327
328
|
nestedRegisterProps?: import("react-hook-form").RegisterOptions;
|
|
328
329
|
unregisterOnUnmount?: boolean;
|
|
329
330
|
mockLabel?: boolean;
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<PasswordFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<PasswordFieldProps>, "Component"> & {
|
|
334
|
-
condition?: import("../../index.js").Condition;
|
|
335
|
-
}>>) | undefined;
|
|
336
|
-
condition?: import("../../index.js").Condition;
|
|
331
|
+
errorSlot?: "payload" | "input";
|
|
332
|
+
middleware?: import("../../index.js").Middleware<PasswordFieldProps>[] | undefined;
|
|
333
|
+
WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<PasswordFieldProps>> | undefined;
|
|
337
334
|
revealable?: boolean;
|
|
338
335
|
revealLabel?: string;
|
|
339
336
|
maskLabel?: string;
|
|
340
|
-
}
|
|
341
|
-
condition?: import("../../index.js").Condition;
|
|
342
|
-
}, string | import("react").JSXElementConstructor<any>> | null;
|
|
337
|
+
} & import("../../index.js").ConditionalDisplayProps>;
|
|
343
338
|
export default _default;
|
|
344
339
|
//# sourceMappingURL=PasswordField.d.ts.map
|
|
@@ -13,7 +13,8 @@ import type { PhoneFieldProps } from "./types.js";
|
|
|
13
13
|
*
|
|
14
14
|
* @implements ds:global.component.phone_field
|
|
15
15
|
*/
|
|
16
|
-
declare const _default: (
|
|
16
|
+
declare const _default: import("react").ComponentType<{
|
|
17
|
+
"aria-required"?: ("false" | "true" | boolean) | undefined;
|
|
17
18
|
id?: string;
|
|
18
19
|
className?: string;
|
|
19
20
|
style?: React.CSSProperties;
|
|
@@ -29,16 +30,13 @@ declare const _default: (props: {
|
|
|
29
30
|
labelPosition?: "before" | "after";
|
|
30
31
|
isOptional?: boolean;
|
|
31
32
|
requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
|
|
33
|
+
descriptionPosition?: "leading" | "trailing";
|
|
32
34
|
nestedRegisterProps?: import("react-hook-form").RegisterOptions;
|
|
33
35
|
unregisterOnUnmount?: boolean;
|
|
34
36
|
mockLabel?: boolean;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<PhoneFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<PhoneFieldProps>, "Component"> & {
|
|
39
|
-
condition?: import("../../index.js").Condition;
|
|
40
|
-
}>>) | undefined;
|
|
41
|
-
condition?: import("../../index.js").Condition;
|
|
37
|
+
errorSlot?: "payload" | "input";
|
|
38
|
+
middleware?: import("../../index.js").Middleware<PhoneFieldProps>[] | undefined;
|
|
39
|
+
WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<PhoneFieldProps>> | undefined;
|
|
42
40
|
value?: string | import("../../subcomponent/PhoneInput/types.js").PhoneValue;
|
|
43
41
|
onChange?: (value: string | import("../../subcomponent/PhoneInput/types.js").PhoneValue) => void;
|
|
44
42
|
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
@@ -50,8 +48,6 @@ declare const _default: (props: {
|
|
|
50
48
|
countryDisplay?: "code" | "name" | "flag";
|
|
51
49
|
mask?: boolean;
|
|
52
50
|
disabled?: boolean;
|
|
53
|
-
}
|
|
54
|
-
condition?: import("../../index.js").Condition;
|
|
55
|
-
}, string | import("react").JSXElementConstructor<any>> | null;
|
|
51
|
+
} & import("../../index.js").ConditionalDisplayProps>;
|
|
56
52
|
export default _default;
|
|
57
53
|
//# sourceMappingURL=PhoneField.d.ts.map
|
|
@@ -13,7 +13,7 @@ import type { RangeFieldProps } from "./types.js";
|
|
|
13
13
|
*
|
|
14
14
|
* @implements ds:global.component.range_field
|
|
15
15
|
*/
|
|
16
|
-
declare const _default: (
|
|
16
|
+
declare const _default: import("react").ComponentType<{
|
|
17
17
|
children?: import("react").ReactNode | undefined;
|
|
18
18
|
dangerouslySetInnerHTML?: {
|
|
19
19
|
__html: string | TrustedHTML;
|
|
@@ -329,21 +329,16 @@ declare const _default: (props: {
|
|
|
329
329
|
labelPosition?: "before" | "after";
|
|
330
330
|
isOptional?: boolean;
|
|
331
331
|
requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
|
|
332
|
+
descriptionPosition?: "leading" | "trailing";
|
|
332
333
|
nestedRegisterProps?: import("react-hook-form").RegisterOptions;
|
|
333
334
|
unregisterOnUnmount?: boolean;
|
|
334
335
|
mockLabel?: boolean;
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<RangeFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<RangeFieldProps>, "Component"> & {
|
|
339
|
-
condition?: import("../../index.js").Condition;
|
|
340
|
-
}>>) | undefined;
|
|
341
|
-
condition?: import("../../index.js").Condition;
|
|
336
|
+
errorSlot?: "payload" | "input";
|
|
337
|
+
middleware?: import("../../index.js").Middleware<RangeFieldProps>[] | undefined;
|
|
338
|
+
WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<RangeFieldProps>> | undefined;
|
|
342
339
|
min: number;
|
|
343
340
|
max: number;
|
|
344
341
|
sliderLabel?: string;
|
|
345
|
-
}
|
|
346
|
-
condition?: import("../../index.js").Condition;
|
|
347
|
-
}, string | import("react").JSXElementConstructor<any>> | null;
|
|
342
|
+
} & import("../../index.js").ConditionalDisplayProps>;
|
|
348
343
|
export default _default;
|
|
349
344
|
//# sourceMappingURL=RangeField.d.ts.map
|
|
@@ -10,6 +10,6 @@ import "./styles.css";
|
|
|
10
10
|
*
|
|
11
11
|
* `import { RichChoices } from "@canonical/react-ds-global-form";`
|
|
12
12
|
*/
|
|
13
|
-
export declare const RichChoices: ({ id, className, style, name, isMultiple, disabled, options, value, onChange, }: RichChoicesPresentationProps) => React.ReactElement;
|
|
13
|
+
export declare const RichChoices: ({ id, className, style, name, isMultiple, disabled, options, value, onChange, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, }: RichChoicesPresentationProps) => React.ReactElement;
|
|
14
14
|
export default RichChoices;
|
|
15
15
|
//# sourceMappingURL=RichChoices.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RichChoices.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/RichChoicesField/RichChoices.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"RichChoices.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/RichChoicesField/RichChoices.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,YAAY,CAAC;AAC/D,OAAO,cAAc,CAAC;AAItB;;;;;;;;GAQG;AACH,eAAO,MAAM,WAAW,4JAYrB,4BAA4B,KAAG,KAAK,CAAC,YAyCvC,CAAC;eAEa,WAAW"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { RichChoicesFieldProps } from "./types.js";
|
|
2
2
|
/**
|
|
3
3
|
* RichChoices bound to react-hook-form (controlled), wrapped with field chrome.
|
|
4
|
-
* The label is
|
|
5
|
-
*
|
|
4
|
+
* The field label is rendered as plain text (`mockLabel`), as each option
|
|
5
|
+
* carries its own label; the fieldset is named by it through `aria-labelledby`.
|
|
6
6
|
*
|
|
7
7
|
* `import { RichChoicesField } from "@canonical/react-ds-global-form";`
|
|
8
8
|
*
|
|
9
9
|
* @implements ds:global.component.rich_choices_field
|
|
10
10
|
*/
|
|
11
|
-
declare const _default: (
|
|
11
|
+
declare const _default: import("react").ComponentType<{
|
|
12
12
|
id?: string;
|
|
13
13
|
className?: string;
|
|
14
14
|
style?: React.CSSProperties;
|
|
@@ -24,23 +24,18 @@ declare const _default: (props: {
|
|
|
24
24
|
labelPosition?: "before" | "after";
|
|
25
25
|
isOptional?: boolean;
|
|
26
26
|
requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
|
|
27
|
+
descriptionPosition?: "leading" | "trailing";
|
|
27
28
|
nestedRegisterProps?: import("react-hook-form").RegisterOptions;
|
|
28
29
|
unregisterOnUnmount?: boolean;
|
|
29
30
|
mockLabel?: boolean;
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<RichChoicesFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<RichChoicesFieldProps>, "Component"> & {
|
|
34
|
-
condition?: import("../../index.js").Condition;
|
|
35
|
-
}>>) | undefined;
|
|
36
|
-
condition?: import("../../index.js").Condition;
|
|
31
|
+
errorSlot?: "payload" | "input";
|
|
32
|
+
middleware?: import("../../index.js").Middleware<RichChoicesFieldProps>[] | undefined;
|
|
33
|
+
WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<RichChoicesFieldProps>> | undefined;
|
|
37
34
|
options: import("./types.js").RichChoiceOption[];
|
|
38
35
|
isMultiple?: boolean;
|
|
39
36
|
disabled?: boolean;
|
|
40
37
|
value?: string | string[];
|
|
41
38
|
onChange?: (value: string | string[]) => void;
|
|
42
|
-
}
|
|
43
|
-
condition?: import("../../index.js").Condition;
|
|
44
|
-
}, string | import("react").JSXElementConstructor<any>> | null;
|
|
39
|
+
} & import("../../index.js").ConditionalDisplayProps>;
|
|
45
40
|
export default _default;
|
|
46
41
|
//# sourceMappingURL=RichChoicesField.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type React from "react";
|
|
2
2
|
import type { InputProps } from "../../common/types.js";
|
|
3
|
-
import type { BaseProps } from "../../subcomponent/types.js";
|
|
3
|
+
import type { BaseProps, GroupAriaProps } from "../../subcomponent/types.js";
|
|
4
4
|
export type RichChoiceOption = {
|
|
5
5
|
value: string;
|
|
6
6
|
/** Freely-shaped label content (text, card, icon, etc.) */
|
|
@@ -22,7 +22,7 @@ type AdditionalRichChoicesProps = {
|
|
|
22
22
|
onChange?: (value: string | string[]) => void;
|
|
23
23
|
};
|
|
24
24
|
/** Props for the presentational RichChoices (controlled, no react-hook-form). */
|
|
25
|
-
export type RichChoicesPresentationProps = BaseProps & AdditionalRichChoicesProps;
|
|
25
|
+
export type RichChoicesPresentationProps = BaseProps & GroupAriaProps & AdditionalRichChoicesProps;
|
|
26
26
|
/** Props for the react-hook-form-bound RichChoices field. */
|
|
27
27
|
export type RichChoicesFieldProps = InputProps<RichChoicesPresentationProps>;
|
|
28
28
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/RichChoicesField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/component/RichChoicesField/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAE7E,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,2DAA2D;IAC3D,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,KAAK,0BAA0B,GAAG;IAChC,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IAEb,2CAA2C;IAC3C,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAE5B,yDAAyD;IACzD,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,kEAAkE;IAClE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAE1B,oEAAoE;IACpE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,KAAK,IAAI,CAAC;CAC/C,CAAC;AAEF,iFAAiF;AACjF,MAAM,MAAM,4BAA4B,GAAG,SAAS,GAClD,cAAc,GACd,0BAA0B,CAAC;AAE7B,6DAA6D;AAC7D,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,4BAA4B,CAAC,CAAC"}
|
|
@@ -7,7 +7,7 @@ import type { SelectFieldProps } from "./types.js";
|
|
|
7
7
|
*
|
|
8
8
|
* @implements ds:global.component.select_field
|
|
9
9
|
*/
|
|
10
|
-
declare const _default: (
|
|
10
|
+
declare const _default: import("react").ComponentType<{
|
|
11
11
|
children?: import("react").ReactNode | undefined;
|
|
12
12
|
dangerouslySetInnerHTML?: {
|
|
13
13
|
__html: string | TrustedHTML;
|
|
@@ -304,18 +304,13 @@ declare const _default: (props: {
|
|
|
304
304
|
labelPosition?: "before" | "after";
|
|
305
305
|
isOptional?: boolean;
|
|
306
306
|
requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
|
|
307
|
+
descriptionPosition?: "leading" | "trailing";
|
|
307
308
|
nestedRegisterProps?: import("react-hook-form").RegisterOptions;
|
|
308
309
|
unregisterOnUnmount?: boolean;
|
|
309
310
|
mockLabel?: boolean;
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
condition?: import("../../index.js").Condition;
|
|
315
|
-
}>>) | undefined;
|
|
316
|
-
condition?: import("../../index.js").Condition;
|
|
317
|
-
}) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<SelectFieldProps>, "Component"> & {
|
|
318
|
-
condition?: import("../../index.js").Condition;
|
|
319
|
-
}, string | import("react").JSXElementConstructor<any>> | null;
|
|
311
|
+
errorSlot?: "payload" | "input";
|
|
312
|
+
middleware?: import("../../index.js").Middleware<SelectFieldProps>[] | undefined;
|
|
313
|
+
WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<SelectFieldProps>> | undefined;
|
|
314
|
+
} & import("../../index.js").ConditionalDisplayProps>;
|
|
320
315
|
export default _default;
|
|
321
316
|
//# sourceMappingURL=SelectField.d.ts.map
|
|
@@ -7,7 +7,7 @@ import type { TextFieldProps } from "./types.js";
|
|
|
7
7
|
*
|
|
8
8
|
* @implements ds:global.component.text_field
|
|
9
9
|
*/
|
|
10
|
-
declare const _default: (
|
|
10
|
+
declare const _default: import("react").ComponentType<{
|
|
11
11
|
children?: import("react").ReactNode | undefined;
|
|
12
12
|
dangerouslySetInnerHTML?: {
|
|
13
13
|
__html: string | TrustedHTML;
|
|
@@ -325,20 +325,15 @@ declare const _default: (props: {
|
|
|
325
325
|
labelPosition?: "before" | "after";
|
|
326
326
|
isOptional?: boolean;
|
|
327
327
|
requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
|
|
328
|
+
descriptionPosition?: "leading" | "trailing";
|
|
328
329
|
nestedRegisterProps?: import("react-hook-form").RegisterOptions;
|
|
329
330
|
unregisterOnUnmount?: boolean;
|
|
330
331
|
mockLabel?: boolean;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
WrapperComponent?: (import("react").ComponentType<import("../../index.js").WrapperProps<TextFieldProps>> & import("react").ComponentType<import("../../index.js").WrapperProps<Omit<import("../../index.js").WrappedComponentProps<TextFieldProps>, "Component"> & {
|
|
335
|
-
condition?: import("../../index.js").Condition;
|
|
336
|
-
}>>) | undefined;
|
|
337
|
-
condition?: import("../../index.js").Condition;
|
|
332
|
+
errorSlot?: "payload" | "input";
|
|
333
|
+
middleware?: import("../../index.js").Middleware<TextFieldProps>[] | undefined;
|
|
334
|
+
WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<TextFieldProps>> | undefined;
|
|
338
335
|
inputType?: import("../../subcomponent/TextInput/types.js").TextInputType;
|
|
339
336
|
suffix?: React.ReactNode;
|
|
340
|
-
}
|
|
341
|
-
condition?: import("../../index.js").Condition;
|
|
342
|
-
}, string | import("react").JSXElementConstructor<any>> | null;
|
|
337
|
+
} & import("../../index.js").ConditionalDisplayProps>;
|
|
343
338
|
export default _default;
|
|
344
339
|
//# sourceMappingURL=TextField.d.ts.map
|
|
@@ -7,7 +7,7 @@ import type { TextareaFieldProps } from "./types.js";
|
|
|
7
7
|
*
|
|
8
8
|
* @implements ds:global.component.textarea_field
|
|
9
9
|
*/
|
|
10
|
-
declare const _default: (
|
|
10
|
+
declare const _default: import("react").ComponentType<{
|
|
11
11
|
children?: import("react").ReactNode | undefined;
|
|
12
12
|
dangerouslySetInnerHTML?: {
|
|
13
13
|
__html: string | TrustedHTML;
|
|
@@ -309,18 +309,13 @@ declare const _default: (props: {
|
|
|
309
309
|
labelPosition?: "before" | "after";
|
|
310
310
|
isOptional?: boolean;
|
|
311
311
|
requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
|
|
312
|
+
descriptionPosition?: "leading" | "trailing";
|
|
312
313
|
nestedRegisterProps?: import("react-hook-form").RegisterOptions;
|
|
313
314
|
unregisterOnUnmount?: boolean;
|
|
314
315
|
mockLabel?: boolean;
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
condition?: import("../../index.js").Condition;
|
|
320
|
-
}>>) | undefined;
|
|
321
|
-
condition?: import("../../index.js").Condition;
|
|
322
|
-
}) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<TextareaFieldProps>, "Component"> & {
|
|
323
|
-
condition?: import("../../index.js").Condition;
|
|
324
|
-
}, string | import("react").JSXElementConstructor<any>> | null;
|
|
316
|
+
errorSlot?: "payload" | "input";
|
|
317
|
+
middleware?: import("../../index.js").Middleware<TextareaFieldProps>[] | undefined;
|
|
318
|
+
WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<TextareaFieldProps>> | undefined;
|
|
319
|
+
} & import("../../index.js").ConditionalDisplayProps>;
|
|
325
320
|
export default _default;
|
|
326
321
|
//# sourceMappingURL=TextareaField.d.ts.map
|
|
@@ -7,7 +7,7 @@ import type { TimeFieldProps } from "./types.js";
|
|
|
7
7
|
*
|
|
8
8
|
* @implements ds:global.component.time_field
|
|
9
9
|
*/
|
|
10
|
-
declare const _default: (
|
|
10
|
+
declare const _default: import("react").ComponentType<{
|
|
11
11
|
children?: import("react").ReactNode | undefined;
|
|
12
12
|
dangerouslySetInnerHTML?: {
|
|
13
13
|
__html: string | TrustedHTML;
|
|
@@ -325,18 +325,13 @@ declare const _default: (props: {
|
|
|
325
325
|
labelPosition?: "before" | "after";
|
|
326
326
|
isOptional?: boolean;
|
|
327
327
|
requiredIndicator?: import("../../subcomponent/index.js").RequiredIndicator;
|
|
328
|
+
descriptionPosition?: "leading" | "trailing";
|
|
328
329
|
nestedRegisterProps?: import("react-hook-form").RegisterOptions;
|
|
329
330
|
unregisterOnUnmount?: boolean;
|
|
330
331
|
mockLabel?: boolean;
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
condition?: import("../../index.js").Condition;
|
|
336
|
-
}>>) | undefined;
|
|
337
|
-
condition?: import("../../index.js").Condition;
|
|
338
|
-
}) => import("react").ReactElement<Omit<import("../../index.js").WrappedComponentProps<TimeFieldProps>, "Component"> & {
|
|
339
|
-
condition?: import("../../index.js").Condition;
|
|
340
|
-
}, string | import("react").JSXElementConstructor<any>> | null;
|
|
332
|
+
errorSlot?: "payload" | "input";
|
|
333
|
+
middleware?: import("../../index.js").Middleware<TimeFieldProps>[] | undefined;
|
|
334
|
+
WrapperComponent?: import("react").ComponentType<import("../../index.js").WrapperProps<TimeFieldProps>> | undefined;
|
|
335
|
+
} & import("../../index.js").ConditionalDisplayProps>;
|
|
341
336
|
export default _default;
|
|
342
337
|
//# sourceMappingURL=TimeField.d.ts.map
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
export * from "../_work_in_progress/component/ColorField/index.js";
|
|
2
|
+
export * from "../_work_in_progress/component/ComboboxField/index.js";
|
|
3
|
+
export * from "../_work_in_progress/component/RatingField/index.js";
|
|
1
4
|
export * from "./CheckboxField/index.js";
|
|
2
5
|
export * from "./ChoicesField/index.js";
|
|
3
|
-
export * from "./ColorField/index.js";
|
|
4
|
-
export * from "./ComboboxField/index.js";
|
|
5
6
|
export * from "./DateField/index.js";
|
|
6
7
|
export * from "./DateTimeField/index.js";
|
|
7
8
|
export * from "./FileUploadField/index.js";
|
|
@@ -10,7 +11,6 @@ export * from "./NumberField/index.js";
|
|
|
10
11
|
export * from "./PasswordField/index.js";
|
|
11
12
|
export * from "./PhoneField/index.js";
|
|
12
13
|
export * from "./RangeField/index.js";
|
|
13
|
-
export * from "./RatingField/index.js";
|
|
14
14
|
export * from "./RichChoicesField/index.js";
|
|
15
15
|
export * from "./SelectField/index.js";
|
|
16
16
|
export * from "./SwitchField/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/component/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/component/index.ts"],"names":[],"mappings":"AAGA,cAAc,oDAAoD,CAAC;AACnE,cAAc,uDAAuD,CAAC;AACtE,cAAc,qDAAqD,CAAC;AACpE,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export * from "./pattern/index.js";
|
|
2
|
-
export type { CheckboxInputProps, ColorInputProps, ComboboxInputProps, DateInputProps, DateTimeInputProps, FileUploadInputProps, HexFormat, HiddenInputProps, NumberInputProps, PasswordInputProps, PhoneInputProps, PhoneValue, RadioInputProps, RangeInputProps, RatingInputProps, RatingScale, SelectInputProps, SwitchInputProps, TextareaInputProps, TextInputProps, TextInputType, TimeInputProps, } from "./subcomponent/index.js";
|
|
2
|
+
export type { CheckboxInputProps, ColorInputProps, ComboboxInputProps, DateInputProps, DateTimeInputProps, FileMessage, FileMessageLevel, FileUploadInputProps, FileUploadMessages, HexFormat, HiddenInputProps, NumberInputProps, PasswordInputProps, PhoneInputProps, PhoneValue, RadioInputProps, RangeInputProps, RatingInputProps, RatingScale, SelectInputProps, SwitchInputProps, TextareaInputProps, TextInputProps, TextInputType, TimeInputProps, UploadFunction, UploadOptions, UploadSummary, } from "./subcomponent/index.js";
|
|
3
3
|
export { CheckboxInput, ColorInput, ComboboxInput, DateInput, DateTimeInput, FileUploadInput, HiddenInput, NumberInput, PasswordInput, PhoneInput, RadioInput, RangeInput, RatingInput, SelectInput, SwitchInput, TextareaInput, TextInput, TimeInput, } from "./subcomponent/index.js";
|
|
4
4
|
export type { Formatter } from "./utils/formatter/index.js";
|
|
5
5
|
export { applyPattern, createFormatterRegisterOptions, createPatternFormatter, stripToDigits, } from "./utils/formatter/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AAOnC,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,oBAAoB,EACpB,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/lib/index.ts"],"names":[],"mappings":"AAIA,cAAc,oBAAoB,CAAC;AAOnC,YAAY,EACV,kBAAkB,EAClB,eAAe,EACf,kBAAkB,EAClB,cAAc,EACd,kBAAkB,EAClB,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,SAAS,EACT,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,eAAe,EACf,UAAU,EACV,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,cAAc,EACd,aAAa,EACb,cAAc,EACd,cAAc,EACd,aAAa,EACb,aAAa,GACd,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,aAAa,EACb,UAAU,EACV,aAAa,EACb,SAAS,EACT,aAAa,EACb,eAAe,EACf,WAAW,EACX,WAAW,EACX,aAAa,EACb,UAAU,EACV,UAAU,EACV,UAAU,EACV,WAAW,EACX,WAAW,EACX,WAAW,EACX,aAAa,EACb,SAAS,EACT,SAAS,GACV,MAAM,yBAAyB,CAAC;AAMjC,YAAY,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EACL,YAAY,EACZ,8BAA8B,EAC9B,sBAAsB,EACtB,aAAa,GACd,MAAM,4BAA4B,CAAC;AACpC,YAAY,EACV,sBAAsB,EACtB,uBAAuB,GACxB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,cAAc,6BAA6B,CAAC"}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { ComponentProps, ComponentType } from "react";
|
|
2
|
+
import type { ColorField } from "../../_work_in_progress/component/ColorField/index.js";
|
|
3
|
+
import type { ComboboxField } from "../../_work_in_progress/component/ComboboxField/index.js";
|
|
4
|
+
import type { RatingField } from "../../_work_in_progress/component/RatingField/index.js";
|
|
2
5
|
import type { CheckboxField } from "../../component/CheckboxField/index.js";
|
|
3
6
|
import type { ChoicesField } from "../../component/ChoicesField/index.js";
|
|
4
|
-
import type { ColorField } from "../../component/ColorField/index.js";
|
|
5
|
-
import type { ComboboxField } from "../../component/ComboboxField/index.js";
|
|
6
7
|
import type { DateField } from "../../component/DateField/index.js";
|
|
7
8
|
import type { DateTimeField } from "../../component/DateTimeField/index.js";
|
|
8
9
|
import type { FileUploadField } from "../../component/FileUploadField/index.js";
|
|
@@ -11,7 +12,6 @@ import type { NumberField } from "../../component/NumberField/index.js";
|
|
|
11
12
|
import type { PasswordField } from "../../component/PasswordField/index.js";
|
|
12
13
|
import type { PhoneField } from "../../component/PhoneField/index.js";
|
|
13
14
|
import type { RangeField } from "../../component/RangeField/index.js";
|
|
14
|
-
import type { RatingField } from "../../component/RatingField/index.js";
|
|
15
15
|
import type { RichChoicesField } from "../../component/RichChoicesField/index.js";
|
|
16
16
|
import type { SelectField } from "../../component/SelectField/index.js";
|
|
17
17
|
import type { SwitchField } from "../../component/SwitchField/index.js";
|
|
@@ -19,7 +19,7 @@ import type { TextareaField } from "../../component/TextareaField/index.js";
|
|
|
19
19
|
import type { TextField } from "../../component/TextField/index.js";
|
|
20
20
|
import type { TimeField } from "../../component/TimeField/index.js";
|
|
21
21
|
import type { NativeInputType } from "../../subcomponent/types.js";
|
|
22
|
-
export type { BaseInputProps, BaseWrapperProps, Condition, InputProps, Middleware, WrappedComponentProps, WrapperHOCAdditionalProps, WrapperProps, } from "../../common/types.js";
|
|
22
|
+
export type { BaseInputProps, BaseWrapperProps, Condition, ConditionalDisplayProps, InputProps, Middleware, WrappedComponentProps, WrapperHOCAdditionalProps, WrapperProps, } from "../../common/types.js";
|
|
23
23
|
export type { BaseProps, NativeInputType, Option, OptionsProps, } from "../../subcomponent/types.js";
|
|
24
24
|
type ReservedCustomKeys<P> = P extends unknown ? Extract<"inputType" | "CustomComponent" | "key", keyof P> : never;
|
|
25
25
|
type CustomVariant<P extends {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Field/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/lib/pattern/Field/types.ts"],"names":[],"mappings":"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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/Field/Description/Description.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,cAAc,CAAC;AAItB;;;;;GAKG;AACH,QAAA,MAAM,WAAW,wCAKd,gBAAgB,KAAG,KAAK,CAAC,
|
|
1
|
+
{"version":3,"file":"Description.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/Field/Description/Description.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,cAAc,CAAC;AAItB;;;;;GAKG;AACH,QAAA,MAAM,WAAW,wCAKd,gBAAgB,KAAG,KAAK,CAAC,YAU3B,CAAC;AAEF;;GAEG;eACY,WAAW"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/Field/Error/Error.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Error.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/subcomponent/Field/Error/Error.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,cAAc,CAAC;AAItB;;;;;GAKG;AACH,QAAA,MAAM,UAAU,wCAKb,UAAU,KAAG,KAAK,CAAC,YAcrB,CAAC;eAEa,UAAU"}
|
|
@@ -2,15 +2,36 @@ import type React from "react";
|
|
|
2
2
|
import type { FileUploadInputProps } from "./types.js";
|
|
3
3
|
import "./styles.css";
|
|
4
4
|
/**
|
|
5
|
-
* Presentational file upload input
|
|
6
|
-
*
|
|
7
|
-
* field tier supplies the binding.
|
|
5
|
+
* Presentational file upload input: a drop area, with a button that opens the
|
|
6
|
+
* file picker, and the list of chosen files. Controlled via `value`/`onChange`
|
|
7
|
+
* (no react-hook-form); the field tier supplies the binding.
|
|
8
|
+
*
|
|
9
|
+
* Each file's tile shows its name, optional size and an image thumbnail, and
|
|
10
|
+
* any warning or error under it: `accept` and `maxSize` violations, the
|
|
11
|
+
* `validateFile` result, and a failed upload. With an `upload` function the
|
|
12
|
+
* input is live: it sends each valid file as soon as it is chosen and shows
|
|
13
|
+
* its progress, then its result for a moment. Closing a running upload cancels
|
|
14
|
+
* it and removes the file; a failed upload can be retried. Without `upload` it
|
|
15
|
+
* only lists the files. An image's thumbnail shows the whole image on hover.
|
|
16
|
+
*
|
|
17
|
+
* `showDropArea` and `showFileList` turn the two halves off. The field-level
|
|
18
|
+
* `error` shows whether or not the drop area does. While `error` is set or
|
|
19
|
+
* `aria-invalid` is true, the drop area carries the `error` Criticality
|
|
20
|
+
* class, so its border and fill read the error colours. Without the drop
|
|
21
|
+
* area, the file actions carry the field's `aria-describedby`.
|
|
22
|
+
*
|
|
23
|
+
* The native file `<input>` sits beside the drop area, not inside it, and
|
|
24
|
+
* carries the `id`, `name` and `required`, so a `<label for>` reaches it and
|
|
25
|
+
* the selection posts without scripting. Its files are kept in step with
|
|
26
|
+
* `value`, including files added by drag and drop. A plain HTML submission
|
|
27
|
+
* only sends files when the form has `enctype="multipart/form-data"`. Live
|
|
28
|
+
* upload needs scripting; without it the files post with the form.
|
|
8
29
|
* @returns {React.ReactElement} - Rendered FileUploadInput
|
|
9
30
|
*
|
|
10
31
|
* `import { FileUploadInput } from "@canonical/react-ds-global-form";`
|
|
11
32
|
*
|
|
12
33
|
* @implements ds:global.subcomponent.file_upload_input
|
|
13
34
|
*/
|
|
14
|
-
export declare const FileUploadInput: ({ id, className,
|
|
35
|
+
export declare const FileUploadInput: ({ id, className, value, onChange, accept, maxSize, maxFiles, multiple, disabled, name, required, upload, validateFile, showFileSize, showDropArea, showFileList, error, onUploadStatusChange, messages: messageOverrides, "aria-labelledby": ariaLabelledBy, "aria-describedby": ariaDescribedBy, "aria-invalid": ariaInvalid, "aria-errormessage": ariaErrorMessage, ...otherProps }: FileUploadInputProps) => React.ReactElement;
|
|
15
36
|
export default FileUploadInput;
|
|
16
37
|
//# sourceMappingURL=FileUploadInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FileUploadInput.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/FileUploadInput/FileUploadInput.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FileUploadInput.d.ts","sourceRoot":"","sources":["../../../../../src/lib/subcomponent/FileUploadInput/FileUploadInput.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAY/B,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvD,OAAO,cAAc,CAAC;AAMtB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,eAAO,MAAM,eAAe,0XA2BzB,oBAAoB,KAAG,KAAK,CAAC,YAwL/B,CAAC;eAEa,eAAe"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { FileItemProps } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* One chosen file: its tile (thumbnail, name, size, upload status, retry and
|
|
5
|
+
* remove) and the warning or error message under it. The message comes from
|
|
6
|
+
* the file's validation or its failed upload; an `accept`, `maxSize` or
|
|
7
|
+
* `validateFile` error wins, then an upload failure, then a warning.
|
|
8
|
+
*
|
|
9
|
+
* The tile carries the message's Criticality class (`warning` or `error`), so
|
|
10
|
+
* its surface, text, icons and action buttons read the matching colour
|
|
11
|
+
* channels.
|
|
12
|
+
*/
|
|
13
|
+
declare const FileItem: ({ file, messageId, fieldDescribedBy, validation, live, upload, showFileSize, messages, onRemove, onRetry, }: FileItemProps) => React.ReactElement;
|
|
14
|
+
export default FileItem;
|
|
15
|
+
//# sourceMappingURL=FileItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileItem.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/subcomponent/FileUploadInput/common/FileItem/FileItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAI/B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;;;;;;GASG;AACH,QAAA,MAAM,QAAQ,gHAWX,aAAa,KAAG,KAAK,CAAC,YAoHxB,CAAC;eAEa,QAAQ"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/subcomponent/FileUploadInput/common/FileItem/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FileMessage, FileUploadMessages, UploadState } from "../../types.js";
|
|
2
|
+
/** Props for one file's tile in the file list. */
|
|
3
|
+
export type FileItemProps = {
|
|
4
|
+
/** The chosen file. */
|
|
5
|
+
file: File;
|
|
6
|
+
/** The id of the message under the tile, which the tile references. */
|
|
7
|
+
messageId: string;
|
|
8
|
+
/**
|
|
9
|
+
* The field's own `aria-describedby`, added to the tile's buttons while the
|
|
10
|
+
* drop area, and its Choose file button, is not shown.
|
|
11
|
+
*/
|
|
12
|
+
fieldDescribedBy?: string;
|
|
13
|
+
/** The `accept`, `maxSize` or `validateFile` message for the file. */
|
|
14
|
+
validation?: FileMessage;
|
|
15
|
+
/** Whether the input uploads files live, so the tile shows a status. */
|
|
16
|
+
live: boolean;
|
|
17
|
+
/** The file's live upload state, once it has been sent. */
|
|
18
|
+
upload?: UploadState;
|
|
19
|
+
/** Show the file size. */
|
|
20
|
+
showFileSize: boolean;
|
|
21
|
+
/** The texts the tile renders. */
|
|
22
|
+
messages: FileUploadMessages;
|
|
23
|
+
/** Removes the file from the selection, aborting its running upload. */
|
|
24
|
+
onRemove: (file: File) => void;
|
|
25
|
+
/** Sends the file again. */
|
|
26
|
+
onRetry: (file: File) => void;
|
|
27
|
+
};
|
|
28
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/subcomponent/FileUploadInput/common/FileItem/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,WAAW,EACX,kBAAkB,EAClB,WAAW,EACZ,MAAM,gBAAgB,CAAC;AAExB,kDAAkD;AAClD,MAAM,MAAM,aAAa,GAAG;IAC1B,uBAAuB;IACvB,IAAI,EAAE,IAAI,CAAC;IACX,uEAAuE;IACvE,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,sEAAsE;IACtE,UAAU,CAAC,EAAE,WAAW,CAAC;IACzB,wEAAwE;IACxE,IAAI,EAAE,OAAO,CAAC;IACd,2DAA2D;IAC3D,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB,0BAA0B;IAC1B,YAAY,EAAE,OAAO,CAAC;IACtB,kCAAkC;IAClC,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,wEAAwE;IACxE,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;IAC/B,4BAA4B;IAC5B,OAAO,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,IAAI,CAAC;CAC/B,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ThumbnailProps } from "./types.js";
|
|
3
|
+
/**
|
|
4
|
+
* A file's image thumbnail. Hovering it shows the whole image in a tooltip,
|
|
5
|
+
* since the thumbnail crops it to fill its box. The preview reuses the
|
|
6
|
+
* thumbnail's object URL, and appears only once that URL exists.
|
|
7
|
+
*
|
|
8
|
+
* The thumbnail takes no keyboard focus: the preview only enlarges a
|
|
9
|
+
* decorative image, and a stop on every image tile would slow keyboard
|
|
10
|
+
* movement through the list.
|
|
11
|
+
*/
|
|
12
|
+
declare const Thumbnail: ({ url }: ThumbnailProps) => React.ReactElement;
|
|
13
|
+
export default Thumbnail;
|
|
14
|
+
//# sourceMappingURL=Thumbnail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Thumbnail.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/subcomponent/FileUploadInput/common/Thumbnail/Thumbnail.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AA6BjD;;;;;;;;GAQG;AACH,QAAA,MAAM,SAAS,YAAa,cAAc,KAAG,KAAK,CAAC,YAOlD,CAAC;eAEa,SAAS"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../src/lib/subcomponent/FileUploadInput/common/Thumbnail/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACtD,YAAY,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC"}
|