@flipdish/ui-library 0.51.0 → 0.52.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 +17 -16
- package/dist/components/atoms/Checkbox/index.cjs +4 -2
- package/dist/components/atoms/Checkbox/index.cjs.map +1 -1
- package/dist/components/atoms/Checkbox/index.d.ts.map +1 -1
- package/dist/components/atoms/Checkbox/index.js +4 -2
- package/dist/components/atoms/Checkbox/index.js.map +1 -1
- package/dist/components/atoms/Slider/index.cjs +2 -2
- package/dist/components/atoms/Slider/index.cjs.map +1 -1
- package/dist/components/atoms/Slider/index.d.ts +3 -1
- package/dist/components/atoms/Slider/index.d.ts.map +1 -1
- package/dist/components/atoms/Slider/index.js +2 -2
- package/dist/components/atoms/Slider/index.js.map +1 -1
- package/dist/components/forms/Form/hooks/useForm.cjs +26 -0
- package/dist/components/forms/Form/hooks/useForm.cjs.map +1 -0
- package/dist/components/forms/Form/hooks/useForm.d.ts +13 -0
- package/dist/components/forms/Form/hooks/useForm.d.ts.map +1 -0
- package/dist/components/forms/Form/hooks/useForm.js +24 -0
- package/dist/components/forms/Form/hooks/useForm.js.map +1 -0
- package/dist/components/forms/Form/hooks/useSubmitInTurn/useSubmitInTurn.cjs +28 -0
- package/dist/components/forms/Form/hooks/useSubmitInTurn/useSubmitInTurn.cjs.map +1 -0
- package/dist/components/forms/Form/hooks/useSubmitInTurn/useSubmitInTurn.d.ts +10 -0
- package/dist/components/forms/Form/hooks/useSubmitInTurn/useSubmitInTurn.d.ts.map +1 -0
- package/dist/components/forms/Form/hooks/useSubmitInTurn/useSubmitInTurn.js +26 -0
- package/dist/components/forms/Form/hooks/useSubmitInTurn/useSubmitInTurn.js.map +1 -0
- package/dist/components/forms/Form/index.cjs +43 -0
- package/dist/components/forms/Form/index.cjs.map +1 -0
- package/dist/components/forms/Form/index.d.ts +30 -0
- package/dist/components/forms/Form/index.d.ts.map +1 -0
- package/dist/components/forms/Form/index.js +40 -0
- package/dist/components/forms/Form/index.js.map +1 -0
- package/dist/components/forms/Form/utilities/formSubmit.utils.cjs +23 -0
- package/dist/components/forms/Form/utilities/formSubmit.utils.cjs.map +1 -0
- package/dist/components/forms/Form/utilities/formSubmit.utils.d.ts +14 -0
- package/dist/components/forms/Form/utilities/formSubmit.utils.d.ts.map +1 -0
- package/dist/components/forms/Form/utilities/formSubmit.utils.js +21 -0
- package/dist/components/forms/Form/utilities/formSubmit.utils.js.map +1 -0
- package/dist/components/forms/FormFooter/hooks/useDestructiveConfirmation.cjs +39 -0
- package/dist/components/forms/FormFooter/hooks/useDestructiveConfirmation.cjs.map +1 -0
- package/dist/components/forms/FormFooter/hooks/useDestructiveConfirmation.d.ts +17 -0
- package/dist/components/forms/FormFooter/hooks/useDestructiveConfirmation.d.ts.map +1 -0
- package/dist/components/forms/FormFooter/hooks/useDestructiveConfirmation.js +37 -0
- package/dist/components/forms/FormFooter/hooks/useDestructiveConfirmation.js.map +1 -0
- package/dist/components/forms/FormFooter/hooks/useHasFieldError.cjs +26 -0
- package/dist/components/forms/FormFooter/hooks/useHasFieldError.cjs.map +1 -0
- package/dist/components/forms/FormFooter/hooks/useHasFieldError.d.ts +9 -0
- package/dist/components/forms/FormFooter/hooks/useHasFieldError.d.ts.map +1 -0
- package/dist/components/forms/FormFooter/hooks/useHasFieldError.js +24 -0
- package/dist/components/forms/FormFooter/hooks/useHasFieldError.js.map +1 -0
- package/dist/components/forms/FormFooter/index.cjs +41 -0
- package/dist/components/forms/FormFooter/index.cjs.map +1 -0
- package/dist/components/forms/FormFooter/index.d.ts +52 -0
- package/dist/components/forms/FormFooter/index.d.ts.map +1 -0
- package/dist/components/forms/FormFooter/index.js +39 -0
- package/dist/components/forms/FormFooter/index.js.map +1 -0
- package/dist/components/forms/FormFooter/utilities/formFooter.utils.cjs +21 -0
- package/dist/components/forms/FormFooter/utilities/formFooter.utils.cjs.map +1 -0
- package/dist/components/forms/FormFooter/utilities/formFooter.utils.d.ts +12 -0
- package/dist/components/forms/FormFooter/utilities/formFooter.utils.d.ts.map +1 -0
- package/dist/components/forms/FormFooter/utilities/formFooter.utils.js +19 -0
- package/dist/components/forms/FormFooter/utilities/formFooter.utils.js.map +1 -0
- package/dist/components/forms/FormSection/FormSection.styles.cjs +15 -0
- package/dist/components/forms/FormSection/FormSection.styles.cjs.map +1 -0
- package/dist/components/forms/FormSection/FormSection.styles.d.ts +9 -0
- package/dist/components/forms/FormSection/FormSection.styles.d.ts.map +1 -0
- package/dist/components/forms/FormSection/FormSection.styles.js +13 -0
- package/dist/components/forms/FormSection/FormSection.styles.js.map +1 -0
- package/dist/components/forms/FormSection/index.cjs +43 -0
- package/dist/components/forms/FormSection/index.cjs.map +1 -0
- package/dist/components/forms/FormSection/index.d.ts +41 -0
- package/dist/components/forms/FormSection/index.d.ts.map +1 -0
- package/dist/components/forms/FormSection/index.js +41 -0
- package/dist/components/forms/FormSection/index.js.map +1 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusTarget.cjs +28 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusTarget.cjs.map +1 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusTarget.d.ts +12 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusTarget.d.ts.map +1 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusTarget.js +26 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusTarget.js.map +1 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusThroughSubmit.cjs +68 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusThroughSubmit.cjs.map +1 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusThroughSubmit.d.ts +26 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusThroughSubmit.d.ts.map +1 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusThroughSubmit.js +66 -0
- package/dist/components/forms/__internal__/formField/hooks/useFocusThroughSubmit.js.map +1 -0
- package/dist/components/forms/__internal__/formField/hooks/useFormField.cjs +142 -0
- package/dist/components/forms/__internal__/formField/hooks/useFormField.cjs.map +1 -0
- package/dist/components/forms/__internal__/formField/hooks/useFormField.d.ts +35 -0
- package/dist/components/forms/__internal__/formField/hooks/useFormField.d.ts.map +1 -0
- package/dist/components/forms/__internal__/formField/hooks/useFormField.js +140 -0
- package/dist/components/forms/__internal__/formField/hooks/useFormField.js.map +1 -0
- package/dist/components/forms/__internal__/formField/providers/FieldElements.context.cjs +12 -0
- package/dist/components/forms/__internal__/formField/providers/FieldElements.context.cjs.map +1 -0
- package/dist/components/forms/__internal__/formField/providers/FieldElements.context.d.ts +7 -0
- package/dist/components/forms/__internal__/formField/providers/FieldElements.context.d.ts.map +1 -0
- package/dist/components/forms/__internal__/formField/providers/FieldElements.context.js +10 -0
- package/dist/components/forms/__internal__/formField/providers/FieldElements.context.js.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldElements.utils.cjs +39 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldElements.utils.cjs.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldElements.utils.d.ts +21 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldElements.utils.d.ts.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldElements.utils.js +37 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldElements.utils.js.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldValue.utils.cjs +40 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldValue.utils.cjs.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldValue.utils.d.ts +18 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldValue.utils.d.ts.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldValue.utils.js +37 -0
- package/dist/components/forms/__internal__/formField/utilities/fieldValue.utils.js.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/formFocus.utils.cjs +21 -0
- package/dist/components/forms/__internal__/formField/utilities/formFocus.utils.cjs.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/formFocus.utils.d.ts +11 -0
- package/dist/components/forms/__internal__/formField/utilities/formFocus.utils.d.ts.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/formFocus.utils.js +19 -0
- package/dist/components/forms/__internal__/formField/utilities/formFocus.utils.js.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/validationQueue.utils.cjs +128 -0
- package/dist/components/forms/__internal__/formField/utilities/validationQueue.utils.cjs.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/validationQueue.utils.d.ts +72 -0
- package/dist/components/forms/__internal__/formField/utilities/validationQueue.utils.d.ts.map +1 -0
- package/dist/components/forms/__internal__/formField/utilities/validationQueue.utils.js +121 -0
- package/dist/components/forms/__internal__/formField/utilities/validationQueue.utils.js.map +1 -0
- package/dist/components/forms/fields/FormCheckbox/index.cjs +34 -0
- package/dist/components/forms/fields/FormCheckbox/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormCheckbox/index.d.ts +16 -0
- package/dist/components/forms/fields/FormCheckbox/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormCheckbox/index.js +32 -0
- package/dist/components/forms/fields/FormCheckbox/index.js.map +1 -0
- package/dist/components/forms/fields/FormCheckboxGroup/index.cjs +33 -0
- package/dist/components/forms/fields/FormCheckboxGroup/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormCheckboxGroup/index.d.ts +16 -0
- package/dist/components/forms/fields/FormCheckboxGroup/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormCheckboxGroup/index.js +31 -0
- package/dist/components/forms/fields/FormCheckboxGroup/index.js.map +1 -0
- package/dist/components/forms/fields/FormColorPicker/hooks/useEmptyFieldValue.cjs +26 -0
- package/dist/components/forms/fields/FormColorPicker/hooks/useEmptyFieldValue.cjs.map +1 -0
- package/dist/components/forms/fields/FormColorPicker/hooks/useEmptyFieldValue.d.ts +11 -0
- package/dist/components/forms/fields/FormColorPicker/hooks/useEmptyFieldValue.d.ts.map +1 -0
- package/dist/components/forms/fields/FormColorPicker/hooks/useEmptyFieldValue.js +24 -0
- package/dist/components/forms/fields/FormColorPicker/hooks/useEmptyFieldValue.js.map +1 -0
- package/dist/components/forms/fields/FormColorPicker/index.cjs +33 -0
- package/dist/components/forms/fields/FormColorPicker/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormColorPicker/index.d.ts +21 -0
- package/dist/components/forms/fields/FormColorPicker/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormColorPicker/index.js +31 -0
- package/dist/components/forms/fields/FormColorPicker/index.js.map +1 -0
- package/dist/components/forms/fields/FormColorPicker/utilities/formColorPicker.utils.cjs +20 -0
- package/dist/components/forms/fields/FormColorPicker/utilities/formColorPicker.utils.cjs.map +1 -0
- package/dist/components/forms/fields/FormColorPicker/utilities/formColorPicker.utils.d.ts +17 -0
- package/dist/components/forms/fields/FormColorPicker/utilities/formColorPicker.utils.d.ts.map +1 -0
- package/dist/components/forms/fields/FormColorPicker/utilities/formColorPicker.utils.js +18 -0
- package/dist/components/forms/fields/FormColorPicker/utilities/formColorPicker.utils.js.map +1 -0
- package/dist/components/forms/fields/FormDatePicker/index.cjs +35 -0
- package/dist/components/forms/fields/FormDatePicker/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormDatePicker/index.d.ts +17 -0
- package/dist/components/forms/fields/FormDatePicker/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormDatePicker/index.js +33 -0
- package/dist/components/forms/fields/FormDatePicker/index.js.map +1 -0
- package/dist/components/forms/fields/FormDatePicker/utilities/formDatePicker.utils.cjs +23 -0
- package/dist/components/forms/fields/FormDatePicker/utilities/formDatePicker.utils.cjs.map +1 -0
- package/dist/components/forms/fields/FormDatePicker/utilities/formDatePicker.utils.d.ts +9 -0
- package/dist/components/forms/fields/FormDatePicker/utilities/formDatePicker.utils.d.ts.map +1 -0
- package/dist/components/forms/fields/FormDatePicker/utilities/formDatePicker.utils.js +21 -0
- package/dist/components/forms/fields/FormDatePicker/utilities/formDatePicker.utils.js.map +1 -0
- package/dist/components/forms/fields/FormInput/index.cjs +27 -0
- package/dist/components/forms/fields/FormInput/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormInput/index.d.ts +16 -0
- package/dist/components/forms/fields/FormInput/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormInput/index.js +25 -0
- package/dist/components/forms/fields/FormInput/index.js.map +1 -0
- package/dist/components/forms/fields/FormMultiSelect/index.cjs +44 -0
- package/dist/components/forms/fields/FormMultiSelect/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormMultiSelect/index.d.ts +17 -0
- package/dist/components/forms/fields/FormMultiSelect/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormMultiSelect/index.js +42 -0
- package/dist/components/forms/fields/FormMultiSelect/index.js.map +1 -0
- package/dist/components/forms/fields/FormRadioCardGroup/index.cjs +36 -0
- package/dist/components/forms/fields/FormRadioCardGroup/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormRadioCardGroup/index.d.ts +29 -0
- package/dist/components/forms/fields/FormRadioCardGroup/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormRadioCardGroup/index.js +34 -0
- package/dist/components/forms/fields/FormRadioCardGroup/index.js.map +1 -0
- package/dist/components/forms/fields/FormRadioGroup/index.cjs +31 -0
- package/dist/components/forms/fields/FormRadioGroup/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormRadioGroup/index.d.ts +17 -0
- package/dist/components/forms/fields/FormRadioGroup/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormRadioGroup/index.js +29 -0
- package/dist/components/forms/fields/FormRadioGroup/index.js.map +1 -0
- package/dist/components/forms/fields/FormSelect/index.cjs +30 -0
- package/dist/components/forms/fields/FormSelect/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormSelect/index.d.ts +16 -0
- package/dist/components/forms/fields/FormSelect/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormSelect/index.js +28 -0
- package/dist/components/forms/fields/FormSelect/index.js.map +1 -0
- package/dist/components/forms/fields/FormSlider/index.cjs +43 -0
- package/dist/components/forms/fields/FormSlider/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormSlider/index.d.ts +17 -0
- package/dist/components/forms/fields/FormSlider/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormSlider/index.js +41 -0
- package/dist/components/forms/fields/FormSlider/index.js.map +1 -0
- package/dist/components/forms/fields/FormTextArea/index.cjs +27 -0
- package/dist/components/forms/fields/FormTextArea/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormTextArea/index.d.ts +16 -0
- package/dist/components/forms/fields/FormTextArea/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormTextArea/index.js +25 -0
- package/dist/components/forms/fields/FormTextArea/index.js.map +1 -0
- package/dist/components/forms/fields/FormToggle/index.cjs +32 -0
- package/dist/components/forms/fields/FormToggle/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormToggle/index.d.ts +16 -0
- package/dist/components/forms/fields/FormToggle/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormToggle/index.js +30 -0
- package/dist/components/forms/fields/FormToggle/index.js.map +1 -0
- package/dist/components/forms/validation/hooks/useSchemaResolver.cjs +39 -0
- package/dist/components/forms/validation/hooks/useSchemaResolver.cjs.map +1 -0
- package/dist/components/forms/validation/hooks/useSchemaResolver.d.ts +15 -0
- package/dist/components/forms/validation/hooks/useSchemaResolver.d.ts.map +1 -0
- package/dist/components/forms/validation/hooks/useSchemaResolver.js +37 -0
- package/dist/components/forms/validation/hooks/useSchemaResolver.js.map +1 -0
- package/dist/components/forms/validation/index.cjs +309 -0
- package/dist/components/forms/validation/index.cjs.map +1 -0
- package/dist/components/forms/validation/index.d.ts +214 -0
- package/dist/components/forms/validation/index.d.ts.map +1 -0
- package/dist/components/forms/validation/index.js +293 -0
- package/dist/components/forms/validation/index.js.map +1 -0
- package/dist/components/forms/validation/utilities/validation.utils.cjs +42 -0
- package/dist/components/forms/validation/utilities/validation.utils.cjs.map +1 -0
- package/dist/components/forms/validation/utilities/validation.utils.d.ts +20 -0
- package/dist/components/forms/validation/utilities/validation.utils.d.ts.map +1 -0
- package/dist/components/forms/validation/utilities/validation.utils.js +39 -0
- package/dist/components/forms/validation/utilities/validation.utils.js.map +1 -0
- package/dist/components/forms/validation/validation.types.d.ts +8 -0
- package/dist/components/forms/validation/validation.types.d.ts.map +1 -0
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.cjs +13 -3
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.cjs.map +1 -1
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.d.ts +1 -1
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.d.ts.map +1 -1
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.js +13 -3
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.js.map +1 -1
- package/dist/components/organisms/ColorPicker/hooks/useColorFieldEdit.cjs +2 -2
- package/dist/components/organisms/ColorPicker/hooks/useColorFieldEdit.cjs.map +1 -1
- package/dist/components/organisms/ColorPicker/hooks/useColorFieldEdit.d.ts +1 -0
- package/dist/components/organisms/ColorPicker/hooks/useColorFieldEdit.d.ts.map +1 -1
- package/dist/components/organisms/ColorPicker/hooks/useColorFieldEdit.js +2 -2
- package/dist/components/organisms/ColorPicker/hooks/useColorFieldEdit.js.map +1 -1
- package/dist/components/organisms/ColorPicker/hooks/useCssColorField.cjs +1 -1
- package/dist/components/organisms/ColorPicker/hooks/useCssColorField.js +1 -1
- package/dist/components/organisms/ColorPicker/index.cjs +1 -1
- package/dist/components/organisms/ColorPicker/index.d.ts.map +1 -1
- package/dist/components/organisms/ColorPicker/index.js +1 -1
- package/dist/components/organisms/ColorPicker/providers/ColorPicker.provider.d.ts +1 -1
- package/dist/components/organisms/ColorPicker/providers/ColorPicker.provider.d.ts.map +1 -1
- package/dist/components/organisms/ColorPicker/utilities/colorPicker.utils.cjs.map +1 -0
- package/dist/components/organisms/ColorPicker/utilities/colorPicker.utils.d.ts.map +1 -0
- package/dist/components/organisms/ColorPicker/utilities/colorPicker.utils.js.map +1 -0
- package/dist/components/organisms/GradientPicker/components/GradientStopRow.cjs +1 -1
- package/dist/components/organisms/GradientPicker/components/GradientStopRow.js +1 -1
- package/dist/localization/en.json.cjs +98 -0
- package/dist/localization/en.json.cjs.map +1 -0
- package/dist/localization/en.json.js +81 -0
- package/dist/localization/en.json.js.map +1 -0
- package/dist/native/components/forms/Form/index.d.ts +12 -0
- package/dist/native/components/forms/FormFooter/index.d.ts +12 -0
- package/dist/native/components/forms/FormSection/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormCheckbox/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormCheckboxGroup/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormColorPicker/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormDatePicker/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormInput/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormMultiSelect/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormRadioCardGroup/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormRadioGroup/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormSelect/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormSlider/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormTextArea/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormToggle/index.d.ts +12 -0
- package/dist/native/components/forms/validation/index.d.ts +12 -0
- package/dist/providers/UnsavedChangesGuardProvider/index.cjs +1 -1
- package/dist/providers/UnsavedChangesGuardProvider/index.js +1 -1
- package/dist/providers/UnsavedChangesGuardProvider/utilities/unsavedChangesGuard.utils.cjs.map +1 -0
- package/dist/providers/UnsavedChangesGuardProvider/{unsavedChangesGuard.utils.d.ts → utilities/unsavedChangesGuard.utils.d.ts} +1 -1
- package/dist/providers/UnsavedChangesGuardProvider/utilities/unsavedChangesGuard.utils.d.ts.map +1 -0
- package/dist/providers/UnsavedChangesGuardProvider/utilities/unsavedChangesGuard.utils.js.map +1 -0
- package/dist/utilities/__internal__/builtInTextUtils/builtInText.utils.cjs +74 -0
- package/dist/utilities/__internal__/builtInTextUtils/builtInText.utils.cjs.map +1 -0
- package/dist/utilities/__internal__/builtInTextUtils/builtInText.utils.d.ts +51 -0
- package/dist/utilities/__internal__/builtInTextUtils/builtInText.utils.d.ts.map +1 -0
- package/dist/utilities/__internal__/builtInTextUtils/builtInText.utils.js +68 -0
- package/dist/utilities/__internal__/builtInTextUtils/builtInText.utils.js.map +1 -0
- package/package.json +41 -6
- package/dist/components/organisms/ColorPicker/colorPicker.utils.cjs.map +0 -1
- package/dist/components/organisms/ColorPicker/colorPicker.utils.d.ts.map +0 -1
- package/dist/components/organisms/ColorPicker/colorPicker.utils.js.map +0 -1
- package/dist/providers/UnsavedChangesGuardProvider/unsavedChangesGuard.utils.cjs.map +0 -1
- package/dist/providers/UnsavedChangesGuardProvider/unsavedChangesGuard.utils.d.ts.map +0 -1
- package/dist/providers/UnsavedChangesGuardProvider/unsavedChangesGuard.utils.js.map +0 -1
- /package/dist/components/organisms/ColorPicker/{colorPicker.utils.cjs → utilities/colorPicker.utils.cjs} +0 -0
- /package/dist/components/organisms/ColorPicker/{colorPicker.utils.d.ts → utilities/colorPicker.utils.d.ts} +0 -0
- /package/dist/components/organisms/ColorPicker/{colorPicker.utils.js → utilities/colorPicker.utils.js} +0 -0
- /package/dist/providers/UnsavedChangesGuardProvider/{unsavedChangesGuard.utils.cjs → utilities/unsavedChangesGuard.utils.cjs} +0 -0
- /package/dist/providers/UnsavedChangesGuardProvider/{unsavedChangesGuard.utils.js → utilities/unsavedChangesGuard.utils.js} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"unsavedChangesGuard.utils.js","sources":["../../../../src/providers/UnsavedChangesGuardProvider/utilities/unsavedChangesGuard.utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;;;;AAIG;AACI,MAAM,SAAS,GAAG,MAAsC,MAA6D,CAAC;AAE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,CAAC,QAAQ,GAAG,IAAI,CAAC,QAAQ,KAAK,QAAQ;AACjD;AAEA;;;;;AAKG;AACI,MAAM,YAAY,GAAG,CAAC,OAAe,KAAkC;AAC5E,IAAA,MAAM,KAAK,GAAY,MAAM,CAAC,OAAO,CAAC,KAAK;AAC3C,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,EAAE,KAAK,IAAI,KAAK,CAAC;AAAE,QAAA,OAAO,SAAS;;AAEtF,IAAA,MAAM,GAAG,GAAG,KAAK,IAAI,KAAK,GAAG,KAAK,CAAC,GAAG,GAAG,SAAS;AAClD,IAAA,OAAO,GAAG,KAAK,OAAO,GAAG,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,GAAG,SAAS;AACzD;AAEA;;;;;;AAMG;MACU,QAAQ,GAAG,CAAC,QAAgB,EAAE,QAAgB,KAAI;AAC7D,IAAA,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE;AACvD,IAAA,MAAM,IAAI,GAAG,QAAQ,CAAC,WAAW,EAAE;AACnC,IAAA,OAAO,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,CAAA,EAAG,IAAI,CAAA,CAAA,CAAG,CAAC;AACrD;;"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var en = require('../../../localization/en.json.cjs');
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* The library's own text, read from the language files `scripts/sync-localization.mjs` copies in from the repo's
|
|
7
|
+
* `localization/` folder. INTERNAL: import as `#internal/utilities/builtInTextUtils/builtInText.utils`.
|
|
8
|
+
*/
|
|
9
|
+
const FALLBACK_LANGUAGE = 'en';
|
|
10
|
+
// `en` alone formats a date the American way; Portal's `en` is British and Irish English, and `en-US` is its own file.
|
|
11
|
+
const DATE_LOCALES = { en: 'en-GB' };
|
|
12
|
+
const ISO_DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
13
|
+
/**
|
|
14
|
+
* Fills a message's `{name}` placeholders.
|
|
15
|
+
*
|
|
16
|
+
* @param message The message, with a `{name}` placeholder wherever a value belongs.
|
|
17
|
+
* @param values The value for each placeholder; one with no value is left as written.
|
|
18
|
+
* @returns The message with its placeholders filled.
|
|
19
|
+
*/
|
|
20
|
+
const fillPlaceholders = (message, values = {}) => message.replace(/\{(\w+)\}/g, (placeholder, name) => (name in values ? String(values[name]) : placeholder));
|
|
21
|
+
/**
|
|
22
|
+
* Writes an ISO date the way the language's readers do, such as `13 Nov 2026`, and passes any other value through.
|
|
23
|
+
*
|
|
24
|
+
* @param value A placeholder's value.
|
|
25
|
+
* @param language The language the message is shown in.
|
|
26
|
+
* @returns The date as text, or the value unchanged when it is not an ISO date.
|
|
27
|
+
*/
|
|
28
|
+
const readable = (value, language) => {
|
|
29
|
+
if (typeof value !== 'string' || !ISO_DATE.test(value))
|
|
30
|
+
return value;
|
|
31
|
+
try {
|
|
32
|
+
return new Intl.DateTimeFormat(DATE_LOCALES[language] ?? language, { dateStyle: 'medium', timeZone: 'UTC' }).format(new Date(`${value}T00:00:00Z`));
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
// A language tag or option this runtime's `Intl` does not know: the ISO date still reads.
|
|
36
|
+
return value;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* Builds the lookup for one package's messages.
|
|
41
|
+
*
|
|
42
|
+
* @param languages The package's language files, keyed by language.
|
|
43
|
+
* @returns A function from a message id, its placeholder values and a language to the text to show. A message or a
|
|
44
|
+
* language the files do not hold is shown in English, and a date among the values is written for the language.
|
|
45
|
+
*/
|
|
46
|
+
const createBuiltInText = (languages) => (id, values = {}, language = FALLBACK_LANGUAGE) => {
|
|
47
|
+
const message = languages[language]?.[id]?.value ?? languages.en[id].value;
|
|
48
|
+
const readableValues = Object.fromEntries(Object.entries(values).map(([name, value]) => [name, readable(value, language)]));
|
|
49
|
+
return fillPlaceholders(message, readableValues);
|
|
50
|
+
};
|
|
51
|
+
/** The text of one of the library's own messages. English until the `TranslationProvider` supplies the language. */
|
|
52
|
+
const builtInText = createBuiltInText({ en: en.default });
|
|
53
|
+
/**
|
|
54
|
+
* The English wording of one of the library's messages, with its placeholders unfilled.
|
|
55
|
+
*
|
|
56
|
+
* @param id The message's id.
|
|
57
|
+
* @returns The message as `localization/en.json` holds it.
|
|
58
|
+
*/
|
|
59
|
+
const builtInTextTemplate = (id) => en.default[id].value;
|
|
60
|
+
const ID_BY_TEMPLATE = new Map(Object.entries(en.default).map(([id, { value }]) => [value, id]));
|
|
61
|
+
/**
|
|
62
|
+
* Finds the id behind a message that is one of the library's own, so it can be shown in the reader's language.
|
|
63
|
+
*
|
|
64
|
+
* @param template A message as written, with its placeholders unfilled.
|
|
65
|
+
* @returns The message's id, or `undefined` for text the library does not ship.
|
|
66
|
+
*/
|
|
67
|
+
const builtInTextIdOf = (template) => ID_BY_TEMPLATE.get(template);
|
|
68
|
+
|
|
69
|
+
exports.builtInText = builtInText;
|
|
70
|
+
exports.builtInTextIdOf = builtInTextIdOf;
|
|
71
|
+
exports.builtInTextTemplate = builtInTextTemplate;
|
|
72
|
+
exports.createBuiltInText = createBuiltInText;
|
|
73
|
+
exports.fillPlaceholders = fillPlaceholders;
|
|
74
|
+
//# sourceMappingURL=builtInText.utils.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtInText.utils.cjs","sources":["../../../../src/utilities/__internal__/builtInTextUtils/builtInText.utils.ts"],"sourcesContent":[null],"names":["en"],"mappings":";;;;AAAA;;;AAGG;AAiBH,MAAM,iBAAiB,GAAG,IAAI;AAC9B;AACA,MAAM,YAAY,GAA2B,EAAE,EAAE,EAAE,OAAO,EAAE;AAC5D,MAAM,QAAQ,GAAG,qBAAqB;AAEtC;;;;;;AAMG;MACU,gBAAgB,GAAG,CAAC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E,cAAc,CAAC;AAClD;AAEF;AACO,MAAM,WAAW,GAAG,iBAAiB,CAAgB,MAAEA,UAAE,EAAE;AAElE;;;;;AAKG;AACI,MAAM,mBAAmB,GAAG,CAAC,EAAiB,KAAaA,UAAE,CAAC,EAAE,CAAC,CAAC;AAEzE,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAACA,UAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,EAAmB,CAAC,CAAC,CAAC;AAEzG;;;;;AAKG;AACI,MAAM,eAAe,GAAG,CAAC,QAAgB,KAAgC,cAAc,CAAC,GAAG,CAAC,QAAQ;;;;;;"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The library's own text, read from the language files `scripts/sync-localization.mjs` copies in from the repo's
|
|
3
|
+
* `localization/` folder. INTERNAL: import as `#internal/utilities/builtInTextUtils/builtInText.utils`.
|
|
4
|
+
*/
|
|
5
|
+
import en from '../../../localization/en.json';
|
|
6
|
+
/** One message as a language file holds it. */
|
|
7
|
+
interface Message {
|
|
8
|
+
value: string;
|
|
9
|
+
}
|
|
10
|
+
/** The value for each `{name}` placeholder in a message. */
|
|
11
|
+
type TextValues = Record<string, string | number>;
|
|
12
|
+
/** A set of language files: English, which holds every message, and any other language, which may hold fewer. */
|
|
13
|
+
type Languages<TId extends string> = {
|
|
14
|
+
en: Record<TId, Message>;
|
|
15
|
+
} & Record<string, Partial<Record<TId, Message>>>;
|
|
16
|
+
/** The id of a message the library ships: a key of `localization/en.json`. */
|
|
17
|
+
export type BuiltInTextId = keyof typeof en;
|
|
18
|
+
/**
|
|
19
|
+
* Fills a message's `{name}` placeholders.
|
|
20
|
+
*
|
|
21
|
+
* @param message The message, with a `{name}` placeholder wherever a value belongs.
|
|
22
|
+
* @param values The value for each placeholder; one with no value is left as written.
|
|
23
|
+
* @returns The message with its placeholders filled.
|
|
24
|
+
*/
|
|
25
|
+
export declare const fillPlaceholders: (message: string, values?: TextValues) => string;
|
|
26
|
+
/**
|
|
27
|
+
* Builds the lookup for one package's messages.
|
|
28
|
+
*
|
|
29
|
+
* @param languages The package's language files, keyed by language.
|
|
30
|
+
* @returns A function from a message id, its placeholder values and a language to the text to show. A message or a
|
|
31
|
+
* language the files do not hold is shown in English, and a date among the values is written for the language.
|
|
32
|
+
*/
|
|
33
|
+
export declare const createBuiltInText: <TId extends string>(languages: Languages<TId>) => (id: TId, values?: TextValues, language?: string) => string;
|
|
34
|
+
/** The text of one of the library's own messages. English until the `TranslationProvider` supplies the language. */
|
|
35
|
+
export declare const builtInText: (id: "This_field_is_required" | "Enter_{min}_or_more_characters" | "Enter_{max}_characters_or_fewer" | "Enter_a_valid_value" | "Enter_a_valid_email_address" | "Enter_a_valid_web_address" | "Enter_a_valid_phone_number" | "Enter_a_valid_amount" | "Enter_a_number" | "Enter_a_whole_number" | "Enter_{min}_or_more" | "Enter_{max}_or_less" | "Enter_a_valid_colour" | "Choose_a_date_on_or_after_{min}" | "Choose_a_date_on_or_before_{max}" | "Choose_an_option" | "Choose_at_least_one_option" | "Enter_digits_only" | "Enter_{length}_digits" | "Select_this_box_to_continue" | "Choose_{max}_or_fewer", values?: TextValues, language?: string) => string;
|
|
36
|
+
/**
|
|
37
|
+
* The English wording of one of the library's messages, with its placeholders unfilled.
|
|
38
|
+
*
|
|
39
|
+
* @param id The message's id.
|
|
40
|
+
* @returns The message as `localization/en.json` holds it.
|
|
41
|
+
*/
|
|
42
|
+
export declare const builtInTextTemplate: (id: BuiltInTextId) => string;
|
|
43
|
+
/**
|
|
44
|
+
* Finds the id behind a message that is one of the library's own, so it can be shown in the reader's language.
|
|
45
|
+
*
|
|
46
|
+
* @param template A message as written, with its placeholders unfilled.
|
|
47
|
+
* @returns The message's id, or `undefined` for text the library does not ship.
|
|
48
|
+
*/
|
|
49
|
+
export declare const builtInTextIdOf: (template: string) => BuiltInTextId | undefined;
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=builtInText.utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtInText.utils.d.ts","sourceRoot":"","sources":["../../../../src/utilities/__internal__/builtInTextUtils/builtInText.utils.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,MAAM,+BAA+B,CAAC;AAE/C,+CAA+C;AAC/C,UAAU,OAAO;IACf,KAAK,EAAE,MAAM,CAAC;CACf;AAED,4DAA4D;AAC5D,KAAK,UAAU,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAElD,iHAAiH;AACjH,KAAK,SAAS,CAAC,GAAG,SAAS,MAAM,IAAI;IAAE,EAAE,EAAE,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAA;CAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,MAAM,CAAC,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;AAElH,8EAA8E;AAC9E,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,EAAE,CAAC;AAO5C;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,SAAS,MAAM,EAAE,SAAQ,UAAe,KAAG,MACyC,CAAC;AAqBtH;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,GAC3B,GAAG,SAAS,MAAM,EAAE,WAAW,SAAS,CAAC,GAAG,CAAC,MAC7C,IAAI,GAAG,EAAE,SAAQ,UAAe,EAAE,WAAU,MAA0B,KAAG,MAIzE,CAAC;AAEJ,oHAAoH;AACpH,eAAO,MAAM,WAAW,2lBAPJ,UAAU,aAAiB,MAAM,KAAuB,MAOT,CAAC;AAEpE;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,IAAI,aAAa,KAAG,MAAsB,CAAC;AAI/E;;;;;GAKG;AACH,eAAO,MAAM,eAAe,GAAI,UAAU,MAAM,KAAG,aAAa,GAAG,SAAyC,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import en from '../../../localization/en.json.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* The library's own text, read from the language files `scripts/sync-localization.mjs` copies in from the repo's
|
|
5
|
+
* `localization/` folder. INTERNAL: import as `#internal/utilities/builtInTextUtils/builtInText.utils`.
|
|
6
|
+
*/
|
|
7
|
+
const FALLBACK_LANGUAGE = 'en';
|
|
8
|
+
// `en` alone formats a date the American way; Portal's `en` is British and Irish English, and `en-US` is its own file.
|
|
9
|
+
const DATE_LOCALES = { en: 'en-GB' };
|
|
10
|
+
const ISO_DATE = /^\d{4}-\d{2}-\d{2}$/;
|
|
11
|
+
/**
|
|
12
|
+
* Fills a message's `{name}` placeholders.
|
|
13
|
+
*
|
|
14
|
+
* @param message The message, with a `{name}` placeholder wherever a value belongs.
|
|
15
|
+
* @param values The value for each placeholder; one with no value is left as written.
|
|
16
|
+
* @returns The message with its placeholders filled.
|
|
17
|
+
*/
|
|
18
|
+
const fillPlaceholders = (message, values = {}) => message.replace(/\{(\w+)\}/g, (placeholder, name) => (name in values ? String(values[name]) : placeholder));
|
|
19
|
+
/**
|
|
20
|
+
* Writes an ISO date the way the language's readers do, such as `13 Nov 2026`, and passes any other value through.
|
|
21
|
+
*
|
|
22
|
+
* @param value A placeholder's value.
|
|
23
|
+
* @param language The language the message is shown in.
|
|
24
|
+
* @returns The date as text, or the value unchanged when it is not an ISO date.
|
|
25
|
+
*/
|
|
26
|
+
const readable = (value, language) => {
|
|
27
|
+
if (typeof value !== 'string' || !ISO_DATE.test(value))
|
|
28
|
+
return value;
|
|
29
|
+
try {
|
|
30
|
+
return new Intl.DateTimeFormat(DATE_LOCALES[language] ?? language, { dateStyle: 'medium', timeZone: 'UTC' }).format(new Date(`${value}T00:00:00Z`));
|
|
31
|
+
}
|
|
32
|
+
catch {
|
|
33
|
+
// A language tag or option this runtime's `Intl` does not know: the ISO date still reads.
|
|
34
|
+
return value;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Builds the lookup for one package's messages.
|
|
39
|
+
*
|
|
40
|
+
* @param languages The package's language files, keyed by language.
|
|
41
|
+
* @returns A function from a message id, its placeholder values and a language to the text to show. A message or a
|
|
42
|
+
* language the files do not hold is shown in English, and a date among the values is written for the language.
|
|
43
|
+
*/
|
|
44
|
+
const createBuiltInText = (languages) => (id, values = {}, language = FALLBACK_LANGUAGE) => {
|
|
45
|
+
const message = languages[language]?.[id]?.value ?? languages.en[id].value;
|
|
46
|
+
const readableValues = Object.fromEntries(Object.entries(values).map(([name, value]) => [name, readable(value, language)]));
|
|
47
|
+
return fillPlaceholders(message, readableValues);
|
|
48
|
+
};
|
|
49
|
+
/** The text of one of the library's own messages. English until the `TranslationProvider` supplies the language. */
|
|
50
|
+
const builtInText = createBuiltInText({ en });
|
|
51
|
+
/**
|
|
52
|
+
* The English wording of one of the library's messages, with its placeholders unfilled.
|
|
53
|
+
*
|
|
54
|
+
* @param id The message's id.
|
|
55
|
+
* @returns The message as `localization/en.json` holds it.
|
|
56
|
+
*/
|
|
57
|
+
const builtInTextTemplate = (id) => en[id].value;
|
|
58
|
+
const ID_BY_TEMPLATE = new Map(Object.entries(en).map(([id, { value }]) => [value, id]));
|
|
59
|
+
/**
|
|
60
|
+
* Finds the id behind a message that is one of the library's own, so it can be shown in the reader's language.
|
|
61
|
+
*
|
|
62
|
+
* @param template A message as written, with its placeholders unfilled.
|
|
63
|
+
* @returns The message's id, or `undefined` for text the library does not ship.
|
|
64
|
+
*/
|
|
65
|
+
const builtInTextIdOf = (template) => ID_BY_TEMPLATE.get(template);
|
|
66
|
+
|
|
67
|
+
export { builtInText, builtInTextIdOf, builtInTextTemplate, createBuiltInText, fillPlaceholders };
|
|
68
|
+
//# sourceMappingURL=builtInText.utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"builtInText.utils.js","sources":["../../../../src/ut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cAAc,GAAG,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC;AAC3H,IAAA,OAAO,gBAAgB,CAAC,OAAO,EAAE,cAAc,CAAC;AAClD;AAEF;AACO,MAAM,WAAW,GAAG,iBAAiB,CAAgB,EAAE,EAAE,EAAE;AAElE;;;;;AAKG;AACI,MAAM,mBAAmB,GAAG,CAAC,EAAiB,KAAa,EAAE,CAAC,EAAE,CAAC,CAAC;AAEzE,MAAM,cAAc,GAAG,IAAI,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,CAAC,KAAK,CAAC,KAAK,EAAE,EAAmB,CAAC,CAAC,CAAC;AAEzG;;;;;AAKG;AACI,MAAM,eAAe,GAAG,CAAC,QAAgB,KAAgC,cAAc,CAAC,GAAG,CAAC,QAAQ;;"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@flipdish/ui-library",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.52.0",
|
|
4
4
|
"description": "Flipdish Design System — atomic-design component library (Tailwind v4 + UntitledUI + React Aria).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
7
7
|
"#internal/components/*": "./src/components/__internal__/*",
|
|
8
|
+
"#internal/forms/*": "./src/components/forms/__internal__/*",
|
|
8
9
|
"#internal/hooks/*": "./src/hooks/__internal__/*",
|
|
9
10
|
"#internal/utilities/*": "./src/utilities/__internal__/*"
|
|
10
11
|
},
|
|
@@ -52,6 +53,24 @@
|
|
|
52
53
|
"import": "./dist/components/organisms/*/index.js",
|
|
53
54
|
"require": "./dist/components/organisms/*/index.cjs"
|
|
54
55
|
},
|
|
56
|
+
"./components/forms/fields/*": {
|
|
57
|
+
"react-native": {
|
|
58
|
+
"types": "./dist/native/components/forms/fields/*/index.d.ts",
|
|
59
|
+
"default": "./dist/native/components/forms/fields/*/index.js"
|
|
60
|
+
},
|
|
61
|
+
"types": "./dist/components/forms/fields/*/index.d.ts",
|
|
62
|
+
"import": "./dist/components/forms/fields/*/index.js",
|
|
63
|
+
"require": "./dist/components/forms/fields/*/index.cjs"
|
|
64
|
+
},
|
|
65
|
+
"./components/forms/*": {
|
|
66
|
+
"react-native": {
|
|
67
|
+
"types": "./dist/native/components/forms/*/index.d.ts",
|
|
68
|
+
"default": "./dist/native/components/forms/*/index.js"
|
|
69
|
+
},
|
|
70
|
+
"types": "./dist/components/forms/*/index.d.ts",
|
|
71
|
+
"import": "./dist/components/forms/*/index.js",
|
|
72
|
+
"require": "./dist/components/forms/*/index.cjs"
|
|
73
|
+
},
|
|
55
74
|
"./components/templates/*": {
|
|
56
75
|
"react-native": {
|
|
57
76
|
"types": "./dist/native/components/templates/*/index.d.ts",
|
|
@@ -105,6 +124,7 @@
|
|
|
105
124
|
},
|
|
106
125
|
"peerDependencies": {
|
|
107
126
|
"@expo/metro-config": ">=54.0.0",
|
|
127
|
+
"@hookform/resolvers": "^7.0.5",
|
|
108
128
|
"@react-native-aria/focus": ">=0.2.7",
|
|
109
129
|
"@react-native-aria/interactions": ">=0.2.7",
|
|
110
130
|
"@tiptap/core": "^3.27.1",
|
|
@@ -127,6 +147,7 @@
|
|
|
127
147
|
"react-aria": "3.50.0",
|
|
128
148
|
"react-aria-components": "1.19.0",
|
|
129
149
|
"react-dom": "^19.0.0",
|
|
150
|
+
"react-hook-form": "^7.91.0",
|
|
130
151
|
"react-hotkeys-hook": "^5.3.2",
|
|
131
152
|
"react-native": ">=0.81.0",
|
|
132
153
|
"react-native-css": "^3.1.0-rc.0",
|
|
@@ -134,12 +155,16 @@
|
|
|
134
155
|
"react-router": "^7.0.0",
|
|
135
156
|
"recharts": "^3.8.1",
|
|
136
157
|
"shiki": "^4.2.0",
|
|
137
|
-
"tailwind-merge": "^3.6.0"
|
|
158
|
+
"tailwind-merge": "^3.6.0",
|
|
159
|
+
"zod": "^4.4.0"
|
|
138
160
|
},
|
|
139
161
|
"peerDependenciesMeta": {
|
|
140
162
|
"@expo/metro-config": {
|
|
141
163
|
"optional": true
|
|
142
164
|
},
|
|
165
|
+
"@hookform/resolvers": {
|
|
166
|
+
"optional": true
|
|
167
|
+
},
|
|
143
168
|
"@react-native-aria/focus": {
|
|
144
169
|
"optional": true
|
|
145
170
|
},
|
|
@@ -203,6 +228,9 @@
|
|
|
203
228
|
"react-dom": {
|
|
204
229
|
"optional": true
|
|
205
230
|
},
|
|
231
|
+
"react-hook-form": {
|
|
232
|
+
"optional": true
|
|
233
|
+
},
|
|
206
234
|
"react-hotkeys-hook": {
|
|
207
235
|
"optional": true
|
|
208
236
|
},
|
|
@@ -223,10 +251,14 @@
|
|
|
223
251
|
},
|
|
224
252
|
"shiki": {
|
|
225
253
|
"optional": true
|
|
254
|
+
},
|
|
255
|
+
"zod": {
|
|
256
|
+
"optional": true
|
|
226
257
|
}
|
|
227
258
|
},
|
|
228
259
|
"devDependencies": {
|
|
229
260
|
"@figma/code-connect": "^1.4.8",
|
|
261
|
+
"@hookform/resolvers": "^7.0.5",
|
|
230
262
|
"@storybook/addon-a11y": "^10.5.8",
|
|
231
263
|
"@storybook/addon-docs": "^10.5.8",
|
|
232
264
|
"@storybook/addon-mcp": "^0.7.0",
|
|
@@ -265,6 +297,7 @@
|
|
|
265
297
|
"react-aria": "3.50.0",
|
|
266
298
|
"react-aria-components": "1.19.0",
|
|
267
299
|
"react-dom": "^19.0.0",
|
|
300
|
+
"react-hook-form": "^7.91.0",
|
|
268
301
|
"react-hotkeys-hook": "^5.3.2",
|
|
269
302
|
"react-native-css": "^3.1.0-rc.0",
|
|
270
303
|
"react-native-svg": "^15.0.0",
|
|
@@ -277,22 +310,24 @@
|
|
|
277
310
|
"tailwind-merge": "^3.6.0",
|
|
278
311
|
"tailwindcss": "^4.3.1",
|
|
279
312
|
"vite": "^8.0.16",
|
|
280
|
-
"vitest": "^4.1.10"
|
|
313
|
+
"vitest": "^4.1.10",
|
|
314
|
+
"zod": "^4.6.7"
|
|
281
315
|
},
|
|
282
316
|
"scripts": {
|
|
283
|
-
"build": "rimraf dist && node scripts/check-public-surface.mjs && node scripts/check-native-conventions.mjs && pnpm build:web && pnpm build:native && node scripts/verify-build.mjs && node scripts/check-exports-resolution.mjs",
|
|
317
|
+
"build": "pnpm sync:localization && rimraf dist && node scripts/check-public-surface.mjs && node scripts/check-native-conventions.mjs && pnpm build:web && pnpm build:native && node scripts/verify-build.mjs && node scripts/check-exports-resolution.mjs",
|
|
284
318
|
"build:web": "rollup -c && tsc -p tsconfig.build.json",
|
|
285
319
|
"build:native": "rollup -c rollup.native.config.js && tsc -p tsconfig.build.native.json && node scripts/finalise-native-types.mjs && node scripts/emit-native-stubs.mjs",
|
|
320
|
+
"sync:localization": "node ../../scripts/sync-localization.mjs",
|
|
286
321
|
"lint:imports": "node scripts/check-deep-imports.mjs",
|
|
287
322
|
"lint:utilities": "node scripts/check-utilities.mjs --from-styles",
|
|
288
|
-
"typecheck": "tsc --noEmit",
|
|
323
|
+
"typecheck": "pnpm sync:localization && tsc --noEmit",
|
|
289
324
|
"test": "vitest run --project unit",
|
|
290
325
|
"test:watch": "vitest --project unit",
|
|
291
326
|
"test:storybook": "vitest run --project storybook --project storybook-native",
|
|
292
327
|
"test:storybook:watch": "vitest --project storybook --project storybook-native",
|
|
293
328
|
"test:storybook:native": "vitest run --project storybook-native",
|
|
294
329
|
"test:storybook:coverage": "vitest run --project storybook --project storybook-native --coverage",
|
|
295
|
-
"typecheck:native": "node scripts/typecheck-native.mjs",
|
|
330
|
+
"typecheck:native": "pnpm sync:localization && node scripts/typecheck-native.mjs",
|
|
296
331
|
"storybook": "storybook dev -p 6006",
|
|
297
332
|
"generate:icon-list": "node scripts/generate-icon-list.mjs",
|
|
298
333
|
"build-storybook": "pnpm --filter @flipdish/ui-icons build && node scripts/generate-icon-list.mjs && node scripts/build-storybook.mjs",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colorPicker.utils.cjs","sources":["../../../../src/components/organisms/ColorPicker/colorPicker.utils.ts"],"sourcesContent":[null],"names":["parseColor"],"mappings":";;;;AAKO,MAAM,gBAAgB,GAA8C,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM;AAEjG;;;;;;;;;AASG;MACU,aAAa,GAAG,CAAC,GAAW,EAAE,KAAa,EAAE,IAAY,EAAE,KAAa,KACnF,CAAA,KAAA,EAAQ,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA,EAAA,EAAK,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA,EAAA,EAAK,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA,EAAA,EAAK,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,CAAA,CAAA;AAEtG;;;;;AAKG;AACI,MAAM,mBAAmB,GAAG,CAAC,KAAa,KAA2C;IAC1F,MAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC;IACpC,MAAM,GAAG,GAAG,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;AAC9B,IAAA,IAAI,KAAK,GAAG,CAAC,IAAI,GAAG,GAAG,KAAK;AAAE,QAAA,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE;AACnD,IAAA,OAAO,IAAI;AACb;AAEA;;;;;;AAMG;AACI,MAAM,gBAAgB,GAAG,CAAC,MAAyB,KAAa;AACrE,IAAA,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;AAAE,QAAA,OAAO,KAAK;AACrC,IAAA,IAAI;AACF,QAAAA,8BAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACrB,QAAA,OAAO,IAAI;IACb;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,KAAK;IACd;AACF;AAEA;;;;;;;;;AASG;AACI,MAAM,YAAY,GAAG,CAAC,MAAgB,KAAc;AACzD,IAAA,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU;AAC9B,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,KAAI;AACzB,QAAA,IAAI,GAAW;AACf,QAAA,IAAI;YACF,GAAG,GAAGA,8BAAU,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;QACtC;AAAE,QAAA,MAAM;YACN,GAAG,GAAG,CAAC;QACT;AACA,QAAA,IAAI,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AAAE,YAAA,OAAO,KAAK;AAC/B,QAAA,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AACb,QAAA,OAAO,IAAI;AACb,IAAA,CAAC,CAAC;AACJ;AAEA;;;;;AAKG;AACI,MAAM,OAAO,GAAG,CAAC,KAAgC,KAAkB;AACxE,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE;AAAE,QAAA,OAAO,IAAI;AAC1D,IAAA,IAAI;AACF,QAAA,OAAOA,8BAAU,CAAC,KAAK,CAAC;IAC1B;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,IAAI;IACb;AACF;AAEA;;;;;AAKG;AACH;AACO,MAAM,WAAW,GAAG,CAAC,KAAY,KAAa,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,MAAM,GAAG,KAAK;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colorPicker.utils.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/ColorPicker/colorPicker.utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,KAAK,KAAK,EAAc,MAAM,uBAAuB,CAAC;AAE/D,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAEvE,eAAO,MAAM,gBAAgB,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAA4B,CAAC;AAEpG;;;;;;;;;GASG;AACH,eAAO,MAAM,aAAa,GAAI,KAAK,MAAM,EAAE,OAAO,MAAM,EAAE,MAAM,MAAM,EAAE,OAAO,MAAM,KAAG,MACiB,CAAC;AAE1G;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,OAAO,MAAM,KAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GAAG,IAKpF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,gBAAgB,GAAI,QAAQ,SAAS,MAAM,EAAE,KAAG,OAQ5D,CAAC;AAEF;;;;;;;;;GASG;AACH,eAAO,MAAM,YAAY,GAAI,QAAQ,MAAM,EAAE,KAAG,MAAM,EAarD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,OAAO,GAAI,OAAO,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,KAAK,GAAG,IAOlE,CAAC;AAEF;;;;;GAKG;AAEH,eAAO,MAAM,WAAW,GAAI,OAAO,KAAK,KAAG,MAAiG,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colorPicker.utils.js","sources":["../../../../src/components/organisms/ColorPicker/colorPicker.utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAKO,MAAM,gBAAgB,GAA8C,CAAC,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,MAAM;AAEjG;;;;;;;;;AASG;MACU,aAAa,GAAG,CAAC,GAAW,EAAE,KAAa,EAAE,IAAY,EAAE,KAAa,KACnF,CAAA,KAAA,EA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AAC,GAAG,CAAC;AAAE,YAAA,OAAO,KAAK;AAC/B,QAAA,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC;AACb,QAAA,OAAO,IAAI;AACb,IAAA,CAAC,CAAC;AACJ;AAEA;;;;;AAKG;AACI,MAAM,OAAO,GAAG,CAAC,KAAgC,KAAkB;AACxE,IAAA,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,EAAE;AAAE,QAAA,OAAO,IAAI;AAC1D,IAAA,IAAI;AACF,QAAA,OAAO,UAAU,CAAC,KAAK,CAAC;IAC1B;AAAE,IAAA,MAAM;AACN,QAAA,OAAO,IAAI;IACb;AACF;AAEA;;;;;AAKG;AACH;AACO,MAAM,WAAW,GAAG,CAAC,KAAY,KAAa,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,eAAe,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,GAAG,GAAG,GAAG,MAAM,GAAG,KAAK;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unsavedChangesGuard.utils.cjs","sources":["../../../src/providers/UnsavedChangesGuardProvider/unsavedChangesGuard.utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAEA;;;;AAIG;AACI,MAAM,SAAS,GAAG,MAAsC,MAA6D,CAAC;AAE7H;;;;AAIG;AACI,MAAM,YAAY,GAAG,MAAgB,MAAM,CAAC,OAAO,CAAC,KAAkC,EAAE;AAE/F;;;;AAIG;AACI,MAAM,eAAe,GAAG,MAA2B,MAAkD,CAAC,UAAU,EAAE,YAAY,EAAE;AASvI;;;;;AAKG;AACI,MAAM,iBAAiB,GAAG,CAAC,OAA+C,KAAkB;AACjG,IAAA,MAAM,EAAE,UAAU,EAAE,GAAG,MAAiD;AACxE,IAAA,IAAI,CAAC,UAAU;AAAE,QAAA,OAAO,MAAK,EAAE,CAAC;;AAEhC,IAAA,MAAM,IAAI,GAAG,CAAC,KAA2C,KAAK,OAAO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O,MAAM,YAAY,GAAI,SAAS,MAAM,KAAG;IAAE,GAAG,EAAE,OAAO,CAAA;CAAE,GAAG,SAMjE,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,QAAQ,GAAI,UAAU,MAAM,EAAE,UAAU,MAAM,YAI1D,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unsavedChangesGuard.utils.js","sources":["../../../src/providers/UnsavedChangesGuardProvider/unsavedChangesGuard.utils.ts"],"sourcesContent":[null],"names":[],"mappings":"AAEA;;;;AAIG;AACI,MAAM,SAAS,GAAG,MAAsC,MAA6D,CAAC;AAE7H;;;;AAIG;AACI,MAAM,YAAY,GAAG,MAAgB,MAAM,CAAC,OAAO,CAAC,KAAkC,EAAE;AAE/F;;;;AAIG;AACI,MAAM,eAAe,GAAG,MAA2B,MAAkD,CAAC,UAAU,EAAE,YAAY,EAAE;AASvI;;;;;AAKG;AACI,MAAM,iBAAiB,GAAG,CAAC,OAA+C,KAAkB;AACjG,IAAA,MAAM,EAAE,UAAU,EAAE,GAAG,MAAiD;AACxE,IAAA,IAAI,CAAC,UAAU;AAAE,QAAA,OAAO,MAAK,EAAE,CAAC;;AAEhC,IAAA,MAAM,IAAI,GAAG,CAAC,KAA2C,KAAK,OAAO,CAAC,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC;AACzF,IAAA,UAAU,CAAC,gBAAgB,CAAC,oBAAoB,EAAE,IAAI,CAAC;IACvD,OAAO,MAAM,UAAU,CAAC,mBAAmB,CAAC,oBAAoB,EAAE,IAAI,CAAC;AACzE;AAEA;;;;;;;AAOG;AACI,MAAM,WAAW,GAAG,CAAC,KAAmB,EAAE,YAAgC,KAC/E,KAAK,CAAC,QAAQ,KAAK,SAAS,IAAI,YAAY,KAAK,SAAS,IAAI,KAAK,CAAC,QAAQ,KAAK;AAEnF;;;;;;;AAOG;MACU,SAAS,GAAG,CAAC,IAAkB,EAAE,EAAgB,KAAI;AAChE,IAAA,MAAM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