@flipdish/ui-library 0.62.0 → 0.64.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 +22 -21
- package/dist/components/__internal__/listOption/listOption.styles.cjs +20 -0
- package/dist/components/__internal__/listOption/listOption.styles.cjs.map +1 -0
- package/dist/components/__internal__/listOption/listOption.styles.d.ts +16 -0
- package/dist/components/__internal__/listOption/listOption.styles.d.ts.map +1 -0
- package/dist/components/__internal__/listOption/listOption.styles.js +18 -0
- package/dist/components/__internal__/listOption/listOption.styles.js.map +1 -0
- package/dist/components/atoms/BackgroundPattern/components/Circle.cjs +17 -12
- package/dist/components/atoms/BackgroundPattern/components/Circle.cjs.map +1 -1
- package/dist/components/atoms/BackgroundPattern/components/Circle.d.ts +3 -3
- package/dist/components/atoms/BackgroundPattern/components/Circle.d.ts.map +1 -1
- package/dist/components/atoms/BackgroundPattern/components/Circle.js +17 -12
- package/dist/components/atoms/BackgroundPattern/components/Circle.js.map +1 -1
- package/dist/components/atoms/BackgroundPattern/components/Grid.cjs +17 -12
- package/dist/components/atoms/BackgroundPattern/components/Grid.cjs.map +1 -1
- package/dist/components/atoms/BackgroundPattern/components/Grid.d.ts +3 -3
- package/dist/components/atoms/BackgroundPattern/components/Grid.d.ts.map +1 -1
- package/dist/components/atoms/BackgroundPattern/components/Grid.js +17 -12
- package/dist/components/atoms/BackgroundPattern/components/Grid.js.map +1 -1
- package/dist/components/atoms/BackgroundPattern/components/GridCheck.cjs +13 -8
- package/dist/components/atoms/BackgroundPattern/components/GridCheck.cjs.map +1 -1
- package/dist/components/atoms/BackgroundPattern/components/GridCheck.d.ts +3 -3
- package/dist/components/atoms/BackgroundPattern/components/GridCheck.d.ts.map +1 -1
- package/dist/components/atoms/BackgroundPattern/components/GridCheck.js +13 -8
- package/dist/components/atoms/BackgroundPattern/components/GridCheck.js.map +1 -1
- package/dist/components/atoms/BackgroundPattern/components/Square.cjs +17 -12
- package/dist/components/atoms/BackgroundPattern/components/Square.cjs.map +1 -1
- package/dist/components/atoms/BackgroundPattern/components/Square.d.ts +3 -3
- package/dist/components/atoms/BackgroundPattern/components/Square.d.ts.map +1 -1
- package/dist/components/atoms/BackgroundPattern/components/Square.js +17 -12
- package/dist/components/atoms/BackgroundPattern/components/Square.js.map +1 -1
- package/dist/components/atoms/BackgroundPattern/index.cjs +5 -3
- package/dist/components/atoms/BackgroundPattern/index.cjs.map +1 -1
- package/dist/components/atoms/BackgroundPattern/index.d.ts +11 -11
- package/dist/components/atoms/BackgroundPattern/index.d.ts.map +1 -1
- package/dist/components/atoms/BackgroundPattern/index.js +5 -3
- package/dist/components/atoms/BackgroundPattern/index.js.map +1 -1
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.cjs +7 -3
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.cjs.map +1 -1
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.d.ts +4 -4
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.d.ts.map +1 -1
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.js +7 -3
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.js.map +1 -1
- package/dist/components/atoms/Buttons/IconButton/IconButton.cjs +6 -3
- package/dist/components/atoms/Buttons/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/atoms/Buttons/IconButton/IconButton.d.ts +4 -4
- package/dist/components/atoms/Buttons/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/atoms/Buttons/IconButton/IconButton.js +7 -4
- package/dist/components/atoms/Buttons/IconButton/IconButton.js.map +1 -1
- package/dist/components/atoms/Card/index.cjs +5 -3
- package/dist/components/atoms/Card/index.cjs.map +1 -1
- package/dist/components/atoms/Card/index.d.ts +3 -3
- package/dist/components/atoms/Card/index.d.ts.map +1 -1
- package/dist/components/atoms/Card/index.js +5 -3
- package/dist/components/atoms/Card/index.js.map +1 -1
- package/dist/components/atoms/Checkbox/index.d.ts +1 -4
- package/dist/components/atoms/Checkbox/index.d.ts.map +1 -1
- package/dist/components/atoms/Checkboxes/Checkbox/Checkbox.cjs +3 -3
- package/dist/components/atoms/Checkboxes/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/atoms/Checkboxes/Checkbox/Checkbox.d.ts +2 -7
- package/dist/components/atoms/Checkboxes/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/atoms/Checkboxes/Checkbox/Checkbox.js +4 -4
- package/dist/components/atoms/Checkboxes/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/atoms/Dot/index.cjs +5 -3
- package/dist/components/atoms/Dot/index.cjs.map +1 -1
- package/dist/components/atoms/Dot/index.d.ts +3 -3
- package/dist/components/atoms/Dot/index.d.ts.map +1 -1
- package/dist/components/atoms/Dot/index.js +5 -3
- package/dist/components/atoms/Dot/index.js.map +1 -1
- package/dist/components/atoms/FeaturedIcon/index.cjs +4 -3
- package/dist/components/atoms/FeaturedIcon/index.cjs.map +1 -1
- package/dist/components/atoms/FeaturedIcon/index.d.ts +2 -4
- package/dist/components/atoms/FeaturedIcon/index.d.ts.map +1 -1
- package/dist/components/atoms/FeaturedIcon/index.js +5 -4
- package/dist/components/atoms/FeaturedIcon/index.js.map +1 -1
- package/dist/components/atoms/Flag/index.cjs +10 -6
- package/dist/components/atoms/Flag/index.cjs.map +1 -1
- package/dist/components/atoms/Flag/index.d.ts +3 -3
- package/dist/components/atoms/Flag/index.d.ts.map +1 -1
- package/dist/components/atoms/Flag/index.js +12 -8
- package/dist/components/atoms/Flag/index.js.map +1 -1
- package/dist/components/atoms/FlipdishLogo/index.cjs +5 -3
- package/dist/components/atoms/FlipdishLogo/index.cjs.map +1 -1
- package/dist/components/atoms/FlipdishLogo/index.d.ts +3 -3
- package/dist/components/atoms/FlipdishLogo/index.d.ts.map +1 -1
- package/dist/components/atoms/FlipdishLogo/index.js +5 -3
- package/dist/components/atoms/FlipdishLogo/index.js.map +1 -1
- package/dist/components/atoms/Illustration/components/TextIllustration.cjs +7 -4
- package/dist/components/atoms/Illustration/components/TextIllustration.cjs.map +1 -1
- package/dist/components/atoms/Illustration/components/TextIllustration.d.ts +2 -3
- package/dist/components/atoms/Illustration/components/TextIllustration.d.ts.map +1 -1
- package/dist/components/atoms/Illustration/components/TextIllustration.js +7 -4
- package/dist/components/atoms/Illustration/components/TextIllustration.js.map +1 -1
- package/dist/components/atoms/Input/index.d.ts +2 -8
- package/dist/components/atoms/Input/index.d.ts.map +1 -1
- package/dist/components/atoms/Inputs/Input/Input.cjs +4 -4
- package/dist/components/atoms/Inputs/Input/Input.cjs.map +1 -1
- package/dist/components/atoms/Inputs/Input/Input.d.ts +3 -11
- package/dist/components/atoms/Inputs/Input/Input.d.ts.map +1 -1
- package/dist/components/atoms/Inputs/Input/Input.js +6 -6
- package/dist/components/atoms/Inputs/Input/Input.js.map +1 -1
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.cjs +3 -2
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.cjs.map +1 -1
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.d.ts +2 -7
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.d.ts.map +1 -1
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.js +3 -2
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.js.map +1 -1
- package/dist/components/atoms/Inputs/TextArea/TextArea.cjs +7 -6
- package/dist/components/atoms/Inputs/TextArea/TextArea.cjs.map +1 -1
- package/dist/components/atoms/Inputs/TextArea/TextArea.d.ts +4 -13
- package/dist/components/atoms/Inputs/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/atoms/Inputs/TextArea/TextArea.js +8 -7
- package/dist/components/atoms/Inputs/TextArea/TextArea.js.map +1 -1
- package/dist/components/atoms/Inputs/TimeInput/TimeInput.cjs +5 -5
- package/dist/components/atoms/Inputs/TimeInput/TimeInput.cjs.map +1 -1
- package/dist/components/atoms/Inputs/TimeInput/TimeInput.d.ts +2 -7
- package/dist/components/atoms/Inputs/TimeInput/TimeInput.d.ts.map +1 -1
- package/dist/components/atoms/Inputs/TimeInput/TimeInput.js +6 -6
- package/dist/components/atoms/Inputs/TimeInput/TimeInput.js.map +1 -1
- package/dist/components/atoms/Inputs/components/HintText.cjs +4 -3
- package/dist/components/atoms/Inputs/components/HintText.cjs.map +1 -1
- package/dist/components/atoms/Inputs/components/HintText.d.ts +3 -8
- package/dist/components/atoms/Inputs/components/HintText.d.ts.map +1 -1
- package/dist/components/atoms/Inputs/components/HintText.js +4 -3
- package/dist/components/atoms/Inputs/components/HintText.js.map +1 -1
- package/dist/components/atoms/Inputs/components/Label.cjs +4 -3
- package/dist/components/atoms/Inputs/components/Label.cjs.map +1 -1
- package/dist/components/atoms/Inputs/components/Label.d.ts +3 -8
- package/dist/components/atoms/Inputs/components/Label.d.ts.map +1 -1
- package/dist/components/atoms/Inputs/components/Label.js +4 -3
- package/dist/components/atoms/Inputs/components/Label.js.map +1 -1
- package/dist/components/atoms/PhoneInput/components/PhoneInputCountrySelect.cjs +35 -0
- package/dist/components/atoms/PhoneInput/components/PhoneInputCountrySelect.cjs.map +1 -0
- package/dist/components/atoms/PhoneInput/components/PhoneInputCountrySelect.d.ts +24 -0
- package/dist/components/atoms/PhoneInput/components/PhoneInputCountrySelect.d.ts.map +1 -0
- package/dist/components/atoms/PhoneInput/components/PhoneInputCountrySelect.js +33 -0
- package/dist/components/atoms/PhoneInput/components/PhoneInputCountrySelect.js.map +1 -0
- package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.cjs +100 -0
- package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.cjs.map +1 -0
- package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.d.ts +35 -0
- package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.d.ts.map +1 -0
- package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.js +98 -0
- package/dist/components/atoms/PhoneInput/hooks/usePhoneEntry.js.map +1 -0
- package/dist/components/atoms/PhoneInput/index.cjs +79 -0
- package/dist/components/atoms/PhoneInput/index.cjs.map +1 -0
- package/dist/components/atoms/PhoneInput/index.d.ts +48 -0
- package/dist/components/atoms/PhoneInput/index.d.ts.map +1 -0
- package/dist/components/atoms/PhoneInput/index.js +77 -0
- package/dist/components/atoms/PhoneInput/index.js.map +1 -0
- package/dist/components/atoms/PhoneInput/phoneInput.types.d.ts +17 -0
- package/dist/components/atoms/PhoneInput/phoneInput.types.d.ts.map +1 -0
- package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.cjs +304 -0
- package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.cjs.map +1 -0
- package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.d.ts +147 -0
- package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.d.ts.map +1 -0
- package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.js +288 -0
- package/dist/components/atoms/PhoneInput/utilities/phoneInput.utils.js.map +1 -0
- package/dist/components/atoms/RadioButton/index.d.ts +1 -4
- package/dist/components/atoms/RadioButton/index.d.ts.map +1 -1
- package/dist/components/atoms/Radios/RadioButton/RadioButton.cjs +6 -4
- package/dist/components/atoms/Radios/RadioButton/RadioButton.cjs.map +1 -1
- package/dist/components/atoms/Radios/RadioButton/RadioButton.d.ts +2 -7
- package/dist/components/atoms/Radios/RadioButton/RadioButton.d.ts.map +1 -1
- package/dist/components/atoms/Radios/RadioButton/RadioButton.js +7 -5
- package/dist/components/atoms/Radios/RadioButton/RadioButton.js.map +1 -1
- package/dist/components/atoms/RatingStars/index.cjs +4 -3
- package/dist/components/atoms/RatingStars/index.cjs.map +1 -1
- package/dist/components/atoms/RatingStars/index.d.ts +3 -3
- package/dist/components/atoms/RatingStars/index.d.ts.map +1 -1
- package/dist/components/atoms/RatingStars/index.js +6 -5
- package/dist/components/atoms/RatingStars/index.js.map +1 -1
- package/dist/components/atoms/SearchInput/index.d.ts +1 -4
- package/dist/components/atoms/SearchInput/index.d.ts.map +1 -1
- package/dist/components/atoms/SocialButton/index.d.ts +1 -1
- package/dist/components/atoms/SocialButton/index.d.ts.map +1 -1
- package/dist/components/atoms/UtilityButton/index.cjs.map +1 -1
- package/dist/components/atoms/UtilityButton/index.d.ts +2 -2
- package/dist/components/atoms/UtilityButton/index.d.ts.map +1 -1
- package/dist/components/atoms/UtilityButton/index.js.map +1 -1
- package/dist/components/atoms/VerificationCodeInput/index.cjs +18 -18
- package/dist/components/atoms/VerificationCodeInput/index.cjs.map +1 -1
- package/dist/components/atoms/VerificationCodeInput/index.d.ts +10 -29
- package/dist/components/atoms/VerificationCodeInput/index.d.ts.map +1 -1
- package/dist/components/atoms/VerificationCodeInput/index.js +19 -19
- package/dist/components/atoms/VerificationCodeInput/index.js.map +1 -1
- package/dist/components/forms/Form/index.cjs +14 -11
- package/dist/components/forms/Form/index.cjs.map +1 -1
- package/dist/components/forms/Form/index.d.ts +9 -8
- package/dist/components/forms/Form/index.d.ts.map +1 -1
- package/dist/components/forms/Form/index.js +16 -13
- package/dist/components/forms/Form/index.js.map +1 -1
- package/dist/components/forms/__internal__/formField/hooks/useFocusThroughSubmit.cjs +10 -1
- package/dist/components/forms/__internal__/formField/hooks/useFocusThroughSubmit.cjs.map +1 -1
- package/dist/components/forms/__internal__/formField/hooks/useFocusThroughSubmit.d.ts.map +1 -1
- package/dist/components/forms/__internal__/formField/hooks/useFocusThroughSubmit.js +10 -1
- package/dist/components/forms/__internal__/formField/hooks/useFocusThroughSubmit.js.map +1 -1
- package/dist/components/forms/fields/FormPhoneInput/index.cjs +36 -0
- package/dist/components/forms/fields/FormPhoneInput/index.cjs.map +1 -0
- package/dist/components/forms/fields/FormPhoneInput/index.d.ts +19 -0
- package/dist/components/forms/fields/FormPhoneInput/index.d.ts.map +1 -0
- package/dist/components/forms/fields/FormPhoneInput/index.js +34 -0
- package/dist/components/forms/fields/FormPhoneInput/index.js.map +1 -0
- package/dist/components/forms/validation/index.cjs +25 -56
- package/dist/components/forms/validation/index.cjs.map +1 -1
- package/dist/components/forms/validation/index.d.ts +2 -12
- package/dist/components/forms/validation/index.d.ts.map +1 -1
- package/dist/components/forms/validation/index.js +1 -32
- package/dist/components/forms/validation/index.js.map +1 -1
- package/dist/components/forms/validation/phoneNumber/index.cjs +20 -0
- package/dist/components/forms/validation/phoneNumber/index.cjs.map +1 -0
- package/dist/components/forms/validation/phoneNumber/index.d.ts +14 -0
- package/dist/components/forms/validation/phoneNumber/index.d.ts.map +1 -0
- package/dist/components/forms/validation/phoneNumber/index.js +18 -0
- package/dist/components/forms/validation/phoneNumber/index.js.map +1 -0
- package/dist/components/forms/validation/utilities/validation.utils.cjs +34 -0
- package/dist/components/forms/validation/utilities/validation.utils.cjs.map +1 -1
- package/dist/components/forms/validation/utilities/validation.utils.d.ts +29 -1
- package/dist/components/forms/validation/utilities/validation.utils.d.ts.map +1 -1
- package/dist/components/forms/validation/utilities/validation.utils.js +33 -2
- package/dist/components/forms/validation/utilities/validation.utils.js.map +1 -1
- package/dist/components/forms/validation/validation.types.d.ts +10 -0
- package/dist/components/forms/validation/validation.types.d.ts.map +1 -1
- package/dist/components/molecules/ButtonGroup/index.cjs +8 -6
- package/dist/components/molecules/ButtonGroup/index.cjs.map +1 -1
- package/dist/components/molecules/ButtonGroup/index.d.ts +7 -5
- package/dist/components/molecules/ButtonGroup/index.d.ts.map +1 -1
- package/dist/components/molecules/ButtonGroup/index.js +12 -10
- package/dist/components/molecules/ButtonGroup/index.js.map +1 -1
- package/dist/components/molecules/EmptyState/index.cjs +33 -33
- package/dist/components/molecules/EmptyState/index.cjs.map +1 -1
- package/dist/components/molecules/EmptyState/index.d.ts +23 -24
- package/dist/components/molecules/EmptyState/index.d.ts.map +1 -1
- package/dist/components/molecules/EmptyState/index.js +36 -36
- package/dist/components/molecules/EmptyState/index.js.map +1 -1
- package/dist/components/molecules/Messaging/index.cjs +5 -3
- package/dist/components/molecules/Messaging/index.cjs.map +1 -1
- package/dist/components/molecules/Messaging/index.d.ts +3 -3
- package/dist/components/molecules/Messaging/index.d.ts.map +1 -1
- package/dist/components/molecules/Messaging/index.js +5 -3
- package/dist/components/molecules/Messaging/index.js.map +1 -1
- package/dist/components/molecules/SectionFooter/index.cjs +9 -6
- package/dist/components/molecules/SectionFooter/index.cjs.map +1 -1
- package/dist/components/molecules/SectionFooter/index.d.ts +5 -5
- package/dist/components/molecules/SectionFooter/index.d.ts.map +1 -1
- package/dist/components/molecules/SectionFooter/index.js +10 -7
- package/dist/components/molecules/SectionFooter/index.js.map +1 -1
- package/dist/components/molecules/SectionHeader/index.cjs +21 -15
- package/dist/components/molecules/SectionHeader/index.cjs.map +1 -1
- package/dist/components/molecules/SectionHeader/index.d.ts +11 -11
- package/dist/components/molecules/SectionHeader/index.d.ts.map +1 -1
- package/dist/components/molecules/SectionHeader/index.js +22 -16
- package/dist/components/molecules/SectionHeader/index.js.map +1 -1
- package/dist/components/molecules/Select/index.d.ts +2 -5
- package/dist/components/molecules/Select/index.d.ts.map +1 -1
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.cjs +3 -2
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.cjs.map +1 -1
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.d.ts +3 -3
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.d.ts.map +1 -1
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.js +4 -3
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.js.map +1 -1
- package/dist/components/molecules/Selects/Select/Select.cjs +5 -5
- package/dist/components/molecules/Selects/Select/Select.cjs.map +1 -1
- package/dist/components/molecules/Selects/Select/Select.d.ts +3 -6
- package/dist/components/molecules/Selects/Select/Select.d.ts.map +1 -1
- package/dist/components/molecules/Selects/Select/Select.js +6 -6
- package/dist/components/molecules/Selects/Select/Select.js.map +1 -1
- package/dist/components/molecules/Selects/Select/components/Combobox.cjs +7 -5
- package/dist/components/molecules/Selects/Select/components/Combobox.cjs.map +1 -1
- package/dist/components/molecules/Selects/Select/components/Combobox.d.ts +3 -3
- package/dist/components/molecules/Selects/Select/components/Combobox.d.ts.map +1 -1
- package/dist/components/molecules/Selects/Select/components/Combobox.js +10 -8
- package/dist/components/molecules/Selects/Select/components/Combobox.js.map +1 -1
- package/dist/components/molecules/Selects/Select/components/Popover.cjs +2 -3
- package/dist/components/molecules/Selects/Select/components/Popover.cjs.map +1 -1
- package/dist/components/molecules/Selects/Select/components/Popover.d.ts.map +1 -1
- package/dist/components/molecules/Selects/Select/components/Popover.js +2 -3
- package/dist/components/molecules/Selects/Select/components/Popover.js.map +1 -1
- package/dist/components/molecules/Selects/components/SelectItem.cjs +2 -1
- package/dist/components/molecules/Selects/components/SelectItem.cjs.map +1 -1
- package/dist/components/molecules/Selects/components/SelectItem.d.ts.map +1 -1
- package/dist/components/molecules/Selects/components/SelectItem.js +2 -1
- package/dist/components/molecules/Selects/components/SelectItem.js.map +1 -1
- package/dist/components/molecules/Tabs/index.cjs +10 -7
- package/dist/components/molecules/Tabs/index.cjs.map +1 -1
- package/dist/components/molecules/Tabs/index.d.ts +12 -15
- package/dist/components/molecules/Tabs/index.d.ts.map +1 -1
- package/dist/components/molecules/Tabs/index.js +13 -10
- package/dist/components/molecules/Tabs/index.js.map +1 -1
- package/dist/components/molecules/Tags/Tag/Tag.cjs +4 -3
- package/dist/components/molecules/Tags/Tag/Tag.cjs.map +1 -1
- package/dist/components/molecules/Tags/Tag/Tag.d.ts +4 -3
- package/dist/components/molecules/Tags/Tag/Tag.d.ts.map +1 -1
- package/dist/components/molecules/Tags/Tag/Tag.js +5 -4
- package/dist/components/molecules/Tags/Tag/Tag.js.map +1 -1
- package/dist/components/molecules/Tags/TagGroup/TagGroup.cjs +5 -3
- package/dist/components/molecules/Tags/TagGroup/TagGroup.cjs.map +1 -1
- package/dist/components/molecules/Tags/TagGroup/TagGroup.d.ts +2 -3
- package/dist/components/molecules/Tags/TagGroup/TagGroup.d.ts.map +1 -1
- package/dist/components/molecules/Tags/TagGroup/TagGroup.js +6 -4
- package/dist/components/molecules/Tags/TagGroup/TagGroup.js.map +1 -1
- package/dist/components/molecules/TextArea/index.d.ts +1 -4
- package/dist/components/molecules/TextArea/index.d.ts.map +1 -1
- package/dist/components/organisms/Carousel/index.cjs +26 -14
- package/dist/components/organisms/Carousel/index.cjs.map +1 -1
- package/dist/components/organisms/Carousel/index.d.ts +8 -10
- package/dist/components/organisms/Carousel/index.d.ts.map +1 -1
- package/dist/components/organisms/Carousel/index.js +28 -16
- package/dist/components/organisms/Carousel/index.js.map +1 -1
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.cjs +3 -2
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.cjs.map +1 -1
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.d.ts +2 -4
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.d.ts.map +1 -1
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.js +4 -3
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.js.map +1 -1
- package/dist/components/organisms/ColorPicker/index.cjs +3 -1
- package/dist/components/organisms/ColorPicker/index.cjs.map +1 -1
- package/dist/components/organisms/ColorPicker/index.d.ts +1 -1
- package/dist/components/organisms/ColorPicker/index.d.ts.map +1 -1
- package/dist/components/organisms/ColorPicker/index.js +7 -5
- package/dist/components/organisms/ColorPicker/index.js.map +1 -1
- package/dist/components/organisms/ColorPicker/providers/ColorPicker.provider.js +1 -1
- package/dist/components/organisms/CommandMenu/components/CommandInput.cjs +5 -3
- package/dist/components/organisms/CommandMenu/components/CommandInput.cjs.map +1 -1
- package/dist/components/organisms/CommandMenu/components/CommandInput.d.ts +3 -5
- package/dist/components/organisms/CommandMenu/components/CommandInput.d.ts.map +1 -1
- package/dist/components/organisms/CommandMenu/components/CommandInput.js +5 -3
- package/dist/components/organisms/CommandMenu/components/CommandInput.js.map +1 -1
- package/dist/components/organisms/CommandMenu/index.cjs +8 -6
- package/dist/components/organisms/CommandMenu/index.cjs.map +1 -1
- package/dist/components/organisms/CommandMenu/index.d.ts +4 -4
- package/dist/components/organisms/CommandMenu/index.d.ts.map +1 -1
- package/dist/components/organisms/CommandMenu/index.js +9 -7
- package/dist/components/organisms/CommandMenu/index.js.map +1 -1
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs +4 -2
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs.map +1 -1
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.d.ts +2 -4
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.js +4 -2
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs +3 -2
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs.map +1 -1
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.d.ts +2 -4
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.js +4 -3
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/components/organisms/DatePickers/RangeCalendar/RangeCalendar.js +2 -2
- package/dist/components/organisms/FileUpload/index.cjs +8 -6
- package/dist/components/organisms/FileUpload/index.cjs.map +1 -1
- package/dist/components/organisms/FileUpload/index.d.ts +7 -7
- package/dist/components/organisms/FileUpload/index.d.ts.map +1 -1
- package/dist/components/organisms/FileUpload/index.js +12 -10
- package/dist/components/organisms/FileUpload/index.js.map +1 -1
- package/dist/components/organisms/FilterBar/index.cjs +13 -9
- package/dist/components/organisms/FilterBar/index.cjs.map +1 -1
- package/dist/components/organisms/FilterBar/index.d.ts +7 -7
- package/dist/components/organisms/FilterBar/index.d.ts.map +1 -1
- package/dist/components/organisms/FilterBar/index.js +14 -10
- package/dist/components/organisms/FilterBar/index.js.map +1 -1
- package/dist/components/organisms/SidePanel/components/SidePanelContent.cjs +4 -3
- package/dist/components/organisms/SidePanel/components/SidePanelContent.cjs.map +1 -1
- package/dist/components/organisms/SidePanel/components/SidePanelContent.d.ts +12 -6
- package/dist/components/organisms/SidePanel/components/SidePanelContent.d.ts.map +1 -1
- package/dist/components/organisms/SidePanel/components/SidePanelContent.js +4 -3
- package/dist/components/organisms/SidePanel/components/SidePanelContent.js.map +1 -1
- package/dist/components/organisms/SidePanel/components/SidePanelFooter.cjs +4 -3
- package/dist/components/organisms/SidePanel/components/SidePanelFooter.cjs.map +1 -1
- package/dist/components/organisms/SidePanel/components/SidePanelFooter.d.ts +11 -6
- package/dist/components/organisms/SidePanel/components/SidePanelFooter.d.ts.map +1 -1
- package/dist/components/organisms/SidePanel/components/SidePanelFooter.js +4 -3
- package/dist/components/organisms/SidePanel/components/SidePanelFooter.js.map +1 -1
- package/dist/components/organisms/SidePanel/components/SidePanelHeader.cjs +12 -10
- package/dist/components/organisms/SidePanel/components/SidePanelHeader.cjs.map +1 -1
- package/dist/components/organisms/SidePanel/components/SidePanelHeader.d.ts +8 -7
- package/dist/components/organisms/SidePanel/components/SidePanelHeader.d.ts.map +1 -1
- package/dist/components/organisms/SidePanel/components/SidePanelHeader.js +15 -13
- package/dist/components/organisms/SidePanel/components/SidePanelHeader.js.map +1 -1
- package/dist/components/organisms/SidebarNavigation/index.cjs +2 -1
- package/dist/components/organisms/SidebarNavigation/index.cjs.map +1 -1
- package/dist/components/organisms/SidebarNavigation/index.d.ts.map +1 -1
- package/dist/components/organisms/SidebarNavigation/index.js +2 -1
- package/dist/components/organisms/SidebarNavigation/index.js.map +1 -1
- package/dist/components/organisms/SlideoutMenu/index.cjs +8 -8
- package/dist/components/organisms/SlideoutMenu/index.cjs.map +1 -1
- package/dist/components/organisms/SlideoutMenu/index.d.ts +9 -18
- package/dist/components/organisms/SlideoutMenu/index.d.ts.map +1 -1
- package/dist/components/organisms/SlideoutMenu/index.js +9 -9
- package/dist/components/organisms/SlideoutMenu/index.js.map +1 -1
- package/dist/components/organisms/Table/index.cjs +15 -10
- package/dist/components/organisms/Table/index.cjs.map +1 -1
- package/dist/components/organisms/Table/index.d.ts +10 -19
- package/dist/components/organisms/Table/index.d.ts.map +1 -1
- package/dist/components/organisms/Table/index.js +18 -13
- package/dist/components/organisms/Table/index.js.map +1 -1
- package/dist/components/organisms/TextEditor/components/TextEditorExtensions.js +1 -1
- package/dist/components/organisms/TextEditor/components/TextEditorToolbar.cjs +5 -3
- package/dist/components/organisms/TextEditor/components/TextEditorToolbar.cjs.map +1 -1
- package/dist/components/organisms/TextEditor/components/TextEditorToolbar.d.ts +2 -3
- package/dist/components/organisms/TextEditor/components/TextEditorToolbar.d.ts.map +1 -1
- package/dist/components/organisms/TextEditor/components/TextEditorToolbar.js +5 -3
- package/dist/components/organisms/TextEditor/components/TextEditorToolbar.js.map +1 -1
- package/dist/components/organisms/TextEditor/index.cjs +16 -9
- package/dist/components/organisms/TextEditor/index.cjs.map +1 -1
- package/dist/components/organisms/TextEditor/index.d.ts +7 -9
- package/dist/components/organisms/TextEditor/index.d.ts.map +1 -1
- package/dist/components/organisms/TextEditor/index.js +21 -14
- package/dist/components/organisms/TextEditor/index.js.map +1 -1
- package/dist/components/organisms/VideoPlayer/index.cjs +3 -2
- package/dist/components/organisms/VideoPlayer/index.cjs.map +1 -1
- package/dist/components/organisms/VideoPlayer/index.d.ts +1 -6
- package/dist/components/organisms/VideoPlayer/index.d.ts.map +1 -1
- package/dist/components/organisms/VideoPlayer/index.js +4 -3
- package/dist/components/organisms/VideoPlayer/index.js.map +1 -1
- package/dist/native/components/atoms/PhoneInput/index.d.ts +12 -0
- package/dist/native/components/forms/fields/FormPhoneInput/index.d.ts +12 -0
- package/dist/native/components/forms/validation/phoneNumber/index.d.ts +12 -0
- package/dist/utilities/__internal__/inertUtils/inert.utils.cjs +17 -0
- package/dist/utilities/__internal__/inertUtils/inert.utils.cjs.map +1 -1
- package/dist/utilities/__internal__/inertUtils/inert.utils.d.ts +11 -0
- package/dist/utilities/__internal__/inertUtils/inert.utils.d.ts.map +1 -1
- package/dist/utilities/__internal__/inertUtils/inert.utils.js +17 -1
- package/dist/utilities/__internal__/inertUtils/inert.utils.js.map +1 -1
- package/dist/utilities/__internal__/refUtils/ref.utils.cjs +20 -0
- package/dist/utilities/__internal__/refUtils/ref.utils.cjs.map +1 -1
- package/dist/utilities/__internal__/refUtils/ref.utils.d.ts +10 -1
- package/dist/utilities/__internal__/refUtils/ref.utils.d.ts.map +1 -1
- package/dist/utilities/__internal__/refUtils/ref.utils.js +20 -1
- package/dist/utilities/__internal__/refUtils/ref.utils.js.map +1 -1
- package/package.json +13 -5
|
@@ -2,13 +2,16 @@
|
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var cx = require('@flipdish/ui-library/utilities/cx');
|
|
5
|
+
var React = require('react');
|
|
5
6
|
|
|
6
|
-
const TextIllustration = (props) => (
|
|
7
|
+
const TextIllustration = React.forwardRef((props, ref) => (
|
|
7
8
|
// biome-ignore lint/a11y/noSvgWithoutTitle: this is an icon
|
|
8
|
-
jsxRuntime.jsxs("svg", { width: "514", height: "164", viewBox: "0 0 514 164", fill: "none", ...props, className: cx.cx('text-fg-quaternary', props.className), children: [jsxRuntime.jsx("circle", { cx: "101", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "101", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "21", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "141", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "193", cy: "82", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "313", cy: "82", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "253", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "253", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M1 102C1 90.9543 9.9543 82 21 82H141C152.046 82 161 90.9543 161 102C161 113.046 152.046 122 141 122H21C9.9543 122 1 113.046 1 102Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M101 162C89.9543 162 81 153.046 81 142L81 22C81 10.9543 89.9543 2 101 2C112.046 2 121 10.9543 121 22L121 142C121 153.046 112.046 162 101 162Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M7.14214 115.995C-0.668351 108.185 -0.668351 95.5214 7.14214 87.7109L86.7107 8.14235C94.5212 0.331858 107.184 0.331851 114.995 8.14234C122.805 15.9528 122.805 28.6161 114.995 36.4266L35.4264 115.995C27.6159 123.806 14.9526 123.806 7.14214 115.995Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "453", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "453", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "373", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "493", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M353 102C353 90.9543 361.954 82 373 82H493C504.046 82 513 90.9543 513 102C513 113.046 504.046 122 493 122H373C361.954 122 353 113.046 353 102Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M453 162C441.954 162 433 153.046 433 142L433 22C433 10.9543 441.954 2 453 2C464.046 2 473 10.9543 473 22L473 142C473 153.046 464.046 162 453 162Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M359.142 115.995C351.332 108.185 351.332 95.5214 359.142 87.7109L438.711 8.14235C446.521 0.331858 459.184 0.331851 466.995 8.14234C474.805 15.9528 474.805 28.6161 466.995 36.4266L387.426 115.995C379.616 123.806 366.953 123.806 359.142 115.995Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "253", cy: "82", r: "80", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "253", cy: "82", r: "40", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("line", { x1: "8.74228e-08", y1: "1", x2: "513", y2: "1.00004", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("line", { x1: "-8.74228e-08", y1: "163", x2: "513", y2: "163", stroke: "currentColor", strokeWidth: "2" })] }));
|
|
9
|
-
|
|
9
|
+
jsxRuntime.jsxs("svg", { width: "514", height: "164", viewBox: "0 0 514 164", fill: "none", ...props, ref: ref, className: cx.cx('text-fg-quaternary', props.className), children: [jsxRuntime.jsx("circle", { cx: "101", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "101", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "21", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "141", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "193", cy: "82", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "313", cy: "82", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "253", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "253", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M1 102C1 90.9543 9.9543 82 21 82H141C152.046 82 161 90.9543 161 102C161 113.046 152.046 122 141 122H21C9.9543 122 1 113.046 1 102Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M101 162C89.9543 162 81 153.046 81 142L81 22C81 10.9543 89.9543 2 101 2C112.046 2 121 10.9543 121 22L121 142C121 153.046 112.046 162 101 162Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M7.14214 115.995C-0.668351 108.185 -0.668351 95.5214 7.14214 87.7109L86.7107 8.14235C94.5212 0.331858 107.184 0.331851 114.995 8.14234C122.805 15.9528 122.805 28.6161 114.995 36.4266L35.4264 115.995C27.6159 123.806 14.9526 123.806 7.14214 115.995Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "453", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "453", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "373", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "493", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M353 102C353 90.9543 361.954 82 373 82H493C504.046 82 513 90.9543 513 102C513 113.046 504.046 122 493 122H373C361.954 122 353 113.046 353 102Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M453 162C441.954 162 433 153.046 433 142L433 22C433 10.9543 441.954 2 453 2C464.046 2 473 10.9543 473 22L473 142C473 153.046 464.046 162 453 162Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M359.142 115.995C351.332 108.185 351.332 95.5214 359.142 87.7109L438.711 8.14235C446.521 0.331858 459.184 0.331851 466.995 8.14234C474.805 15.9528 474.805 28.6161 466.995 36.4266L387.426 115.995C379.616 123.806 366.953 123.806 359.142 115.995Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "253", cy: "82", r: "80", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "253", cy: "82", r: "40", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("line", { x1: "8.74228e-08", y1: "1", x2: "513", y2: "1.00004", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("line", { x1: "-8.74228e-08", y1: "163", x2: "513", y2: "163", stroke: "currentColor", strokeWidth: "2" })] })));
|
|
10
|
+
TextIllustration.displayName = 'TextIllustration';
|
|
11
|
+
const TextIllustrationSM = React.forwardRef((props, ref) => (
|
|
10
12
|
// biome-ignore lint/a11y/noSvgWithoutTitle: this is an icon
|
|
11
|
-
jsxRuntime.jsxs("svg", { width: "282", height: "91", viewBox: "0 0 282 91", fill: "none", ...props, className: cx.cx('text-bg-tertiary', props.className), children: [jsxRuntime.jsx("circle", { cx: "56.0197", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "56.0197", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "12.4399", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "77.8092", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "106.136", cy: "45.6694", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "171.506", cy: "45.6694", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "138.821", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "138.821", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M1.54492 56.5639C1.54492 50.5468 6.42275 45.6689 12.4399 45.6689H77.8095C83.8266 45.6689 88.7045 50.5468 88.7045 56.5639C88.7045 62.581 83.8266 67.4588 77.8095 67.4588H12.4399C6.42275 67.4588 1.54492 62.581 1.54492 56.5639Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M56.0197 89.249C50.0026 89.249 45.1248 84.3712 45.1248 78.3541L45.1248 12.9844C45.1248 6.96732 50.0026 2.08948 56.0197 2.08948C62.0368 2.08948 66.9146 6.96731 66.9146 12.9844L66.9146 78.3541C66.9146 84.3712 62.0368 89.249 56.0197 89.249Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M4.89041 64.1883C0.635671 59.9335 0.635671 53.0352 4.89041 48.7805L48.2351 5.43576C52.4899 1.18102 59.3882 1.18101 63.6429 5.43575C67.8977 9.69049 67.8977 16.5888 63.6429 20.8435L20.2982 64.1883C16.0434 68.443 9.14515 68.443 4.89041 64.1883Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "247.77", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "247.77", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "204.191", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "269.56", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M193.296 56.5639C193.296 50.5468 198.174 45.6689 204.191 45.6689H269.56C275.578 45.6689 280.455 50.5468 280.455 56.5639C280.455 62.581 275.578 67.4588 269.56 67.4588H204.191C198.174 67.4588 193.296 62.581 193.296 56.5639Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M247.77 89.249C241.753 89.249 236.875 84.3712 236.875 78.3541L236.875 12.9844C236.875 6.96732 241.753 2.08948 247.77 2.08948C253.787 2.08948 258.665 6.96731 258.665 12.9844L258.665 78.3541C258.665 84.3712 253.787 89.249 247.77 89.249Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M196.642 64.1883C192.387 59.9335 192.387 53.0352 196.642 48.7805L239.986 5.43576C244.241 1.18102 251.139 1.18101 255.394 5.43575C259.649 9.69049 259.649 16.5888 255.394 20.8435L212.049 64.1883C207.795 68.443 200.896 68.443 196.642 64.1883Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "138.821", cy: "45.6691", r: "43.5798", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "138.821", cy: "45.6693", r: "21.7899", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("line", { x1: "1", y1: "1.08936", x2: "280.455", y2: "1.08938", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("line", { x1: "1", y1: "89.3384", x2: "280.455", y2: "89.3384", stroke: "currentColor", strokeWidth: "2" })] }));
|
|
13
|
+
jsxRuntime.jsxs("svg", { width: "282", height: "91", viewBox: "0 0 282 91", fill: "none", ...props, ref: ref, className: cx.cx('text-bg-tertiary', props.className), children: [jsxRuntime.jsx("circle", { cx: "56.0197", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "56.0197", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "12.4399", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "77.8092", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "106.136", cy: "45.6694", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "171.506", cy: "45.6694", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "138.821", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "138.821", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M1.54492 56.5639C1.54492 50.5468 6.42275 45.6689 12.4399 45.6689H77.8095C83.8266 45.6689 88.7045 50.5468 88.7045 56.5639C88.7045 62.581 83.8266 67.4588 77.8095 67.4588H12.4399C6.42275 67.4588 1.54492 62.581 1.54492 56.5639Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M56.0197 89.249C50.0026 89.249 45.1248 84.3712 45.1248 78.3541L45.1248 12.9844C45.1248 6.96732 50.0026 2.08948 56.0197 2.08948C62.0368 2.08948 66.9146 6.96731 66.9146 12.9844L66.9146 78.3541C66.9146 84.3712 62.0368 89.249 56.0197 89.249Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M4.89041 64.1883C0.635671 59.9335 0.635671 53.0352 4.89041 48.7805L48.2351 5.43576C52.4899 1.18102 59.3882 1.18101 63.6429 5.43575C67.8977 9.69049 67.8977 16.5888 63.6429 20.8435L20.2982 64.1883C16.0434 68.443 9.14515 68.443 4.89041 64.1883Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "247.77", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "247.77", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "204.191", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "269.56", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M193.296 56.5639C193.296 50.5468 198.174 45.6689 204.191 45.6689H269.56C275.578 45.6689 280.455 50.5468 280.455 56.5639C280.455 62.581 275.578 67.4588 269.56 67.4588H204.191C198.174 67.4588 193.296 62.581 193.296 56.5639Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M247.77 89.249C241.753 89.249 236.875 84.3712 236.875 78.3541L236.875 12.9844C236.875 6.96732 241.753 2.08948 247.77 2.08948C253.787 2.08948 258.665 6.96731 258.665 12.9844L258.665 78.3541C258.665 84.3712 253.787 89.249 247.77 89.249Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("path", { d: "M196.642 64.1883C192.387 59.9335 192.387 53.0352 196.642 48.7805L239.986 5.43576C244.241 1.18102 251.139 1.18101 255.394 5.43575C259.649 9.69049 259.649 16.5888 255.394 20.8435L212.049 64.1883C207.795 68.443 200.896 68.443 196.642 64.1883Z", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "138.821", cy: "45.6691", r: "43.5798", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("circle", { cx: "138.821", cy: "45.6693", r: "21.7899", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("line", { x1: "1", y1: "1.08936", x2: "280.455", y2: "1.08938", stroke: "currentColor", strokeWidth: "2" }), jsxRuntime.jsx("line", { x1: "1", y1: "89.3384", x2: "280.455", y2: "89.3384", stroke: "currentColor", strokeWidth: "2" })] })));
|
|
14
|
+
TextIllustrationSM.displayName = 'TextIllustrationSM';
|
|
12
15
|
|
|
13
16
|
exports.TextIllustration = TextIllustration;
|
|
14
17
|
exports.TextIllustrationSM = TextIllustrationSM;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextIllustration.cjs","sources":["../../../../../src/components/atoms/Illustration/components/TextIllustration.tsx"],"sourcesContent":[null],"names":["_jsxs","cx","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextIllustration.cjs","sources":["../../../../../src/components/atoms/Illustration/components/TextIllustration.tsx"],"sourcesContent":[null],"names":["forwardRef","_jsxs","cx","_jsx"],"mappings":";;;;;;AAKO,MAAM,gBAAgB,GAAGA,gBAAU,CAAiD,CAAC,KAAK,EAAE,GAAG;AACpG;AACAC,eAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,aAAa,EAAC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
2
|
-
export declare const
|
|
3
|
-
export declare const TextIllustrationSM: (props: SVGProps<SVGSVGElement>) => import("react").JSX.Element;
|
|
1
|
+
export declare const TextIllustration: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
2
|
+
export declare const TextIllustrationSM: import("react").ForwardRefExoticComponent<Omit<import("react").SVGProps<SVGSVGElement>, "ref"> & import("react").RefAttributes<SVGSVGElement>>;
|
|
4
3
|
//# sourceMappingURL=TextIllustration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextIllustration.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Illustration/components/TextIllustration.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextIllustration.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Illustration/components/TextIllustration.tsx"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB,gJAkD3B,CAAC;AAGH,eAAO,MAAM,kBAAkB,gJAkD7B,CAAC"}
|
|
@@ -1,12 +1,15 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { cx } from '@flipdish/ui-library/utilities/cx';
|
|
3
|
+
import { forwardRef } from 'react';
|
|
3
4
|
|
|
4
|
-
const TextIllustration = (props) => (
|
|
5
|
+
const TextIllustration = forwardRef((props, ref) => (
|
|
5
6
|
// biome-ignore lint/a11y/noSvgWithoutTitle: this is an icon
|
|
6
|
-
jsxs("svg", { width: "514", height: "164", viewBox: "0 0 514 164", fill: "none", ...props, className: cx('text-fg-quaternary', props.className), children: [jsx("circle", { cx: "101", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "101", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "21", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "141", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "193", cy: "82", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "313", cy: "82", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "253", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "253", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M1 102C1 90.9543 9.9543 82 21 82H141C152.046 82 161 90.9543 161 102C161 113.046 152.046 122 141 122H21C9.9543 122 1 113.046 1 102Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M101 162C89.9543 162 81 153.046 81 142L81 22C81 10.9543 89.9543 2 101 2C112.046 2 121 10.9543 121 22L121 142C121 153.046 112.046 162 101 162Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M7.14214 115.995C-0.668351 108.185 -0.668351 95.5214 7.14214 87.7109L86.7107 8.14235C94.5212 0.331858 107.184 0.331851 114.995 8.14234C122.805 15.9528 122.805 28.6161 114.995 36.4266L35.4264 115.995C27.6159 123.806 14.9526 123.806 7.14214 115.995Z", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "453", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "453", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "373", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "493", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M353 102C353 90.9543 361.954 82 373 82H493C504.046 82 513 90.9543 513 102C513 113.046 504.046 122 493 122H373C361.954 122 353 113.046 353 102Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M453 162C441.954 162 433 153.046 433 142L433 22C433 10.9543 441.954 2 453 2C464.046 2 473 10.9543 473 22L473 142C473 153.046 464.046 162 453 162Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M359.142 115.995C351.332 108.185 351.332 95.5214 359.142 87.7109L438.711 8.14235C446.521 0.331858 459.184 0.331851 466.995 8.14234C474.805 15.9528 474.805 28.6161 466.995 36.4266L387.426 115.995C379.616 123.806 366.953 123.806 359.142 115.995Z", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "253", cy: "82", r: "80", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "253", cy: "82", r: "40", stroke: "currentColor", strokeWidth: "2" }), jsx("line", { x1: "8.74228e-08", y1: "1", x2: "513", y2: "1.00004", stroke: "currentColor", strokeWidth: "2" }), jsx("line", { x1: "-8.74228e-08", y1: "163", x2: "513", y2: "163", stroke: "currentColor", strokeWidth: "2" })] }));
|
|
7
|
-
|
|
7
|
+
jsxs("svg", { width: "514", height: "164", viewBox: "0 0 514 164", fill: "none", ...props, ref: ref, className: cx('text-fg-quaternary', props.className), children: [jsx("circle", { cx: "101", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "101", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "21", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "141", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "193", cy: "82", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "313", cy: "82", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "253", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "253", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M1 102C1 90.9543 9.9543 82 21 82H141C152.046 82 161 90.9543 161 102C161 113.046 152.046 122 141 122H21C9.9543 122 1 113.046 1 102Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M101 162C89.9543 162 81 153.046 81 142L81 22C81 10.9543 89.9543 2 101 2C112.046 2 121 10.9543 121 22L121 142C121 153.046 112.046 162 101 162Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M7.14214 115.995C-0.668351 108.185 -0.668351 95.5214 7.14214 87.7109L86.7107 8.14235C94.5212 0.331858 107.184 0.331851 114.995 8.14234C122.805 15.9528 122.805 28.6161 114.995 36.4266L35.4264 115.995C27.6159 123.806 14.9526 123.806 7.14214 115.995Z", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "453", cy: "22", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "453", cy: "142", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "373", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "493", cy: "102", r: "20", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M353 102C353 90.9543 361.954 82 373 82H493C504.046 82 513 90.9543 513 102C513 113.046 504.046 122 493 122H373C361.954 122 353 113.046 353 102Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M453 162C441.954 162 433 153.046 433 142L433 22C433 10.9543 441.954 2 453 2C464.046 2 473 10.9543 473 22L473 142C473 153.046 464.046 162 453 162Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M359.142 115.995C351.332 108.185 351.332 95.5214 359.142 87.7109L438.711 8.14235C446.521 0.331858 459.184 0.331851 466.995 8.14234C474.805 15.9528 474.805 28.6161 466.995 36.4266L387.426 115.995C379.616 123.806 366.953 123.806 359.142 115.995Z", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "253", cy: "82", r: "80", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "253", cy: "82", r: "40", stroke: "currentColor", strokeWidth: "2" }), jsx("line", { x1: "8.74228e-08", y1: "1", x2: "513", y2: "1.00004", stroke: "currentColor", strokeWidth: "2" }), jsx("line", { x1: "-8.74228e-08", y1: "163", x2: "513", y2: "163", stroke: "currentColor", strokeWidth: "2" })] })));
|
|
8
|
+
TextIllustration.displayName = 'TextIllustration';
|
|
9
|
+
const TextIllustrationSM = forwardRef((props, ref) => (
|
|
8
10
|
// biome-ignore lint/a11y/noSvgWithoutTitle: this is an icon
|
|
9
|
-
jsxs("svg", { width: "282", height: "91", viewBox: "0 0 282 91", fill: "none", ...props, className: cx('text-bg-tertiary', props.className), children: [jsx("circle", { cx: "56.0197", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "56.0197", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "12.4399", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "77.8092", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "106.136", cy: "45.6694", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "171.506", cy: "45.6694", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "138.821", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "138.821", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M1.54492 56.5639C1.54492 50.5468 6.42275 45.6689 12.4399 45.6689H77.8095C83.8266 45.6689 88.7045 50.5468 88.7045 56.5639C88.7045 62.581 83.8266 67.4588 77.8095 67.4588H12.4399C6.42275 67.4588 1.54492 62.581 1.54492 56.5639Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M56.0197 89.249C50.0026 89.249 45.1248 84.3712 45.1248 78.3541L45.1248 12.9844C45.1248 6.96732 50.0026 2.08948 56.0197 2.08948C62.0368 2.08948 66.9146 6.96731 66.9146 12.9844L66.9146 78.3541C66.9146 84.3712 62.0368 89.249 56.0197 89.249Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M4.89041 64.1883C0.635671 59.9335 0.635671 53.0352 4.89041 48.7805L48.2351 5.43576C52.4899 1.18102 59.3882 1.18101 63.6429 5.43575C67.8977 9.69049 67.8977 16.5888 63.6429 20.8435L20.2982 64.1883C16.0434 68.443 9.14515 68.443 4.89041 64.1883Z", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "247.77", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "247.77", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "204.191", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "269.56", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M193.296 56.5639C193.296 50.5468 198.174 45.6689 204.191 45.6689H269.56C275.578 45.6689 280.455 50.5468 280.455 56.5639C280.455 62.581 275.578 67.4588 269.56 67.4588H204.191C198.174 67.4588 193.296 62.581 193.296 56.5639Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M247.77 89.249C241.753 89.249 236.875 84.3712 236.875 78.3541L236.875 12.9844C236.875 6.96732 241.753 2.08948 247.77 2.08948C253.787 2.08948 258.665 6.96731 258.665 12.9844L258.665 78.3541C258.665 84.3712 253.787 89.249 247.77 89.249Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M196.642 64.1883C192.387 59.9335 192.387 53.0352 196.642 48.7805L239.986 5.43576C244.241 1.18102 251.139 1.18101 255.394 5.43575C259.649 9.69049 259.649 16.5888 255.394 20.8435L212.049 64.1883C207.795 68.443 200.896 68.443 196.642 64.1883Z", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "138.821", cy: "45.6691", r: "43.5798", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "138.821", cy: "45.6693", r: "21.7899", stroke: "currentColor", strokeWidth: "2" }), jsx("line", { x1: "1", y1: "1.08936", x2: "280.455", y2: "1.08938", stroke: "currentColor", strokeWidth: "2" }), jsx("line", { x1: "1", y1: "89.3384", x2: "280.455", y2: "89.3384", stroke: "currentColor", strokeWidth: "2" })] }));
|
|
11
|
+
jsxs("svg", { width: "282", height: "91", viewBox: "0 0 282 91", fill: "none", ...props, ref: ref, className: cx('text-bg-tertiary', props.className), children: [jsx("circle", { cx: "56.0197", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "56.0197", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "12.4399", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "77.8092", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "106.136", cy: "45.6694", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "171.506", cy: "45.6694", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "138.821", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "138.821", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M1.54492 56.5639C1.54492 50.5468 6.42275 45.6689 12.4399 45.6689H77.8095C83.8266 45.6689 88.7045 50.5468 88.7045 56.5639C88.7045 62.581 83.8266 67.4588 77.8095 67.4588H12.4399C6.42275 67.4588 1.54492 62.581 1.54492 56.5639Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M56.0197 89.249C50.0026 89.249 45.1248 84.3712 45.1248 78.3541L45.1248 12.9844C45.1248 6.96732 50.0026 2.08948 56.0197 2.08948C62.0368 2.08948 66.9146 6.96731 66.9146 12.9844L66.9146 78.3541C66.9146 84.3712 62.0368 89.249 56.0197 89.249Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M4.89041 64.1883C0.635671 59.9335 0.635671 53.0352 4.89041 48.7805L48.2351 5.43576C52.4899 1.18102 59.3882 1.18101 63.6429 5.43575C67.8977 9.69049 67.8977 16.5888 63.6429 20.8435L20.2982 64.1883C16.0434 68.443 9.14515 68.443 4.89041 64.1883Z", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "247.77", cy: "12.9843", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "247.77", cy: "78.3544", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "204.191", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "269.56", cy: "56.5639", r: "10.8949", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M193.296 56.5639C193.296 50.5468 198.174 45.6689 204.191 45.6689H269.56C275.578 45.6689 280.455 50.5468 280.455 56.5639C280.455 62.581 275.578 67.4588 269.56 67.4588H204.191C198.174 67.4588 193.296 62.581 193.296 56.5639Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M247.77 89.249C241.753 89.249 236.875 84.3712 236.875 78.3541L236.875 12.9844C236.875 6.96732 241.753 2.08948 247.77 2.08948C253.787 2.08948 258.665 6.96731 258.665 12.9844L258.665 78.3541C258.665 84.3712 253.787 89.249 247.77 89.249Z", stroke: "currentColor", strokeWidth: "2" }), jsx("path", { d: "M196.642 64.1883C192.387 59.9335 192.387 53.0352 196.642 48.7805L239.986 5.43576C244.241 1.18102 251.139 1.18101 255.394 5.43575C259.649 9.69049 259.649 16.5888 255.394 20.8435L212.049 64.1883C207.795 68.443 200.896 68.443 196.642 64.1883Z", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "138.821", cy: "45.6691", r: "43.5798", stroke: "currentColor", strokeWidth: "2" }), jsx("circle", { cx: "138.821", cy: "45.6693", r: "21.7899", stroke: "currentColor", strokeWidth: "2" }), jsx("line", { x1: "1", y1: "1.08936", x2: "280.455", y2: "1.08938", stroke: "currentColor", strokeWidth: "2" }), jsx("line", { x1: "1", y1: "89.3384", x2: "280.455", y2: "89.3384", stroke: "currentColor", strokeWidth: "2" })] })));
|
|
12
|
+
TextIllustrationSM.displayName = 'TextIllustrationSM';
|
|
10
13
|
|
|
11
14
|
export { TextIllustration, TextIllustrationSM };
|
|
12
15
|
//# sourceMappingURL=TextIllustration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextIllustration.js","sources":["../../../../../src/components/atoms/Illustration/components/TextIllustration.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":"
|
|
1
|
+
{"version":3,"file":"TextIllustration.js","sources":["../../../../../src/components/atoms/Illustration/components/TextIllustration.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;AAKO,MAAM,gBAAgB,GAAG,UAAU,CAAiD,CAAC,KAAK,EAAE,GAAG;AACpG;AACAA,IAAA,CAAA,KAAA,EAAA,EAAK,KAAK,EAAC,KAAK,EAAC,MAAM,EAAC,KAAK,EAAC,OAAO,EAAC,aAAa,EAAC,IAAI,EAAC,MAAM,EAAA,GAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,CAAC,oBAAoB,EAAE,KAAK,CAAC,SAAS,CAAC,EAAA,QAAA,EAAA,CACvIC,GAAA,CAAA,QAAA,EAAA,EAAQ,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,EAAA,CAAG,EACxEA,GAAA,CAAA,QAAA,EAAA,EAAQ,EAAE,EAAC,KAAK,EAAC,EAAE,EAAC,KAAK,EAAC,CAAC,EAAC,IAAI,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,EAAA,CAAG,EACzEA,GAAA,CAAA,QAAA,EAAA,EAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,KAAK,EAAC,CAAC,EAAC,IAAI,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,EAAA,CAAG,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,EAAC,SAAS,EAAC,CAAC,EAAC,SAAS,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,EAAA,CAAG,EACtFA,GAAA,CAAA,MAAA,EAAA,EAAM,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,EAAA,CAAG,EAC5FA,GAAA,CAAA,MAAA,EAAA,EAAM,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,EAAC,EAAE,EAAC,SAAS,EAAC,MAAM,EAAC,cAAc,EAAC,WAAW,EAAC,GAAG,EAAA,CAAG,CAAA,EAAA,CACxF,CACP;AACD,kBAAkB,CAAC,WAAW,GAAG,oBAAoB;;"}
|
|
@@ -1,14 +1,8 @@
|
|
|
1
1
|
import { HintText as HintTextNext, type InputBaseProps as InputBasePropsNext, type InputProps as InputPropsNext, Label as LabelNext, type TextFieldProps as TextFieldPropsNext } from '@flipdish/ui-library/components/atoms/Inputs';
|
|
2
2
|
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
|
|
3
|
-
export declare const Input:
|
|
4
|
-
({ size, placeholder, icon: Icon, label, hint, shortcut, hideRequiredIndicator, className, ref, groupRef, tooltip, iconClassName, inputClassName, wrapperClassName, tooltipClassName, type, "data-testid": dataTestId, ...props }: InputPropsNext): import("react").JSX.Element;
|
|
5
|
-
displayName: string;
|
|
6
|
-
};
|
|
3
|
+
export declare const Input: import("react").ForwardRefExoticComponent<InputPropsNext & import("react").RefAttributes<HTMLInputElement>>;
|
|
7
4
|
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
|
|
8
|
-
export declare const InputBase:
|
|
9
|
-
({ ref, tooltip, shortcut, groupRef, size, isInvalid, isDisabled, isRequired, icon: Icon, placeholder, wrapperClassName, tooltipClassName, inputClassName, iconClassName, type, "data-testid": dataTestId, ...inputProps }: InputBasePropsNext): import("react").JSX.Element;
|
|
10
|
-
displayName: string;
|
|
11
|
-
};
|
|
5
|
+
export declare const InputBase: import("react").ForwardRefExoticComponent<InputBasePropsNext & import("react").RefAttributes<HTMLInputElement>>;
|
|
12
6
|
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
|
|
13
7
|
export declare const TextField: {
|
|
14
8
|
({ className, size, inputClassName, wrapperClassName, iconClassName, tooltipClassName, ...props }: TextFieldPropsNext): import("react").JSX.Element;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Input/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,QAAQ,IAAI,YAAY,EAExB,KAAK,cAAc,IAAI,kBAAkB,EAEzC,KAAK,UAAU,IAAI,cAAc,EACjC,KAAK,IAAI,SAAS,EAElB,KAAK,cAAc,IAAI,kBAAkB,EAC1C,MAAM,8CAA8C,CAAC;AAEtD,yGAAyG;AACzG,eAAO,MAAM,KAAK
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Input/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,QAAQ,IAAI,YAAY,EAExB,KAAK,cAAc,IAAI,kBAAkB,EAEzC,KAAK,UAAU,IAAI,cAAc,EACjC,KAAK,IAAI,SAAS,EAElB,KAAK,cAAc,IAAI,kBAAkB,EAC1C,MAAM,8CAA8C,CAAC;AAEtD,yGAAyG;AACzG,eAAO,MAAM,KAAK,6GAAY,CAAC;AAC/B,yGAAyG;AACzG,eAAO,MAAM,SAAS,iHAAgB,CAAC;AACvC,yGAAyG;AACzG,eAAO,MAAM,SAAS;;;CAAgB,CAAC;AACvC,yGAAyG;AACzG,eAAO,MAAM,KAAK,EAAE,OAAO,SAAqB,CAAC;AACjD,yGAAyG;AACzG,eAAO,MAAM,QAAQ,EAAE,OAAO,YAA2B,CAAC;AAC1D,yGAAyG;AACzG,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC;AACxC,yGAAyG;AACzG,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC;AAChD,yGAAyG;AACzG,MAAM,MAAM,cAAc,GAAG,kBAAkB,CAAC"}
|
|
@@ -12,7 +12,7 @@ var HintText = require('../components/HintText.cjs');
|
|
|
12
12
|
var Label = require('../components/Label.cjs');
|
|
13
13
|
|
|
14
14
|
/** Bare input group with icon, tooltip and shortcut adornments but no label or hint; `Input` composes it inside a `TextField`. */
|
|
15
|
-
const InputBase = ({
|
|
15
|
+
const InputBase = React.forwardRef(({ tooltip, shortcut, groupRef, size = 'md', isInvalid, isDisabled, isRequired, icon: Icon, placeholder, wrapperClassName, tooltipClassName, inputClassName, iconClassName, type = 'text', 'data-testid': dataTestId, ...inputProps }, ref) => {
|
|
16
16
|
const shortcutLabel = useHotkeyHint.useHotkeyHint(shortcut === true ? 'mod+k' : shortcut || null);
|
|
17
17
|
const [isPasswordVisible, setIsPasswordVisible] = React.useState(false);
|
|
18
18
|
const inputTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'input', rootName: 'input' });
|
|
@@ -51,7 +51,7 @@ const InputBase = ({ ref, tooltip, shortcut, groupRef, size = 'md', isInvalid, i
|
|
|
51
51
|
isInvalid && 'ring-error_subtle', 'group-invalid:ring-error_subtle',
|
|
52
52
|
// Invalid state with focus-within styles
|
|
53
53
|
isInvalid && isFocusWithin && 'ring-2 ring-error', isFocusWithin && 'group-invalid:ring-2 group-invalid:ring-error', context?.wrapperClassName, wrapperClassName), children: [Icon && (jsxRuntime.jsx(Icon, { className: cx.cx('pointer-events-none absolute text-fg-quaternary', sizes[inputSize].iconLeading, context?.iconClassName, iconClassName) })), jsxRuntime.jsx(reactAriaComponents.Input, { ...inputProps, ref: ref, "data-testid": inputTestId, required: isRequired, type: type === 'password' && isPasswordVisible ? 'text' : type, placeholder: placeholder, className: cx.cx('m-0 w-full bg-transparent text-primary ring-0 outline-hidden placeholder:text-placeholder autofill:rounded-lg autofill:text-primary disabled:cursor-not-allowed', sizes[inputSize].root, context?.inputClassName, inputClassName) }), tooltip && type !== 'password' && (jsxRuntime.jsx(Tooltip.Tooltip, { title: tooltip, placement: "top", children: jsxRuntime.jsx(Tooltip.TooltipTrigger, { "aria-label": "More information", className: cx.cx('absolute cursor-pointer text-fg-quaternary transition duration-100 ease-linear group-invalid/input:hidden hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover', sizes[inputSize].iconTrailing, context?.tooltipClassName, tooltipClassName), children: jsxRuntime.jsx(uiIcons.HelpCircle, { className: "size-4 stroke-[2.25px]" }) }) })), type !== 'password' && (jsxRuntime.jsx(uiIcons.InfoCircle, { className: cx.cx('pointer-events-none absolute hidden size-4 stroke-[2.25px] text-fg-error-secondary group-invalid/input:block', sizes[inputSize].iconTrailing, context?.tooltipClassName, tooltipClassName) })), type === 'password' && (jsxRuntime.jsx(reactAriaComponents.Button, { "aria-label": "Toggle password visibility", onClick: () => setIsPasswordVisible(!isPasswordVisible), className: cx.cx('absolute flex cursor-pointer items-center justify-center text-fg-quaternary transition duration-100 ease-linear hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover focus:outline-hidden', sizes[inputSize].iconTrailing), children: isPasswordVisible ? jsxRuntime.jsx(uiIcons.EyeOff, { className: "size-4 stroke-[2.25px]" }) : jsxRuntime.jsx(uiIcons.Eye, { className: "size-4 stroke-[2.25px]" }) })), shortcut && (jsxRuntime.jsx("div", { className: cx.cx('pointer-events-none absolute inset-y-0.5 z-10 hidden items-center rounded-r-[inherit] bg-linear-to-r from-transparent to-bg-primary to-40% pl-8 md:flex', sizes[inputSize].shortcut), children: jsxRuntime.jsx("span", { "aria-hidden": "true", className: "pointer-events-none rounded px-1 py-px text-xs font-medium text-quaternary ring-1 ring-secondary select-none ring-inset", children: shortcutLabel }) }))] }));
|
|
54
|
-
};
|
|
54
|
+
});
|
|
55
55
|
InputBase.displayName = 'InputBase';
|
|
56
56
|
const TextFieldContext = React.createContext({});
|
|
57
57
|
/** Wrapper around react-aria-components' `TextField` that shares `size` and the class-name props with a nested `InputBase` through context. */
|
|
@@ -65,7 +65,7 @@ TextField.displayName = 'TextField';
|
|
|
65
65
|
*
|
|
66
66
|
* @summary text field for collecting a single line of user input
|
|
67
67
|
*/
|
|
68
|
-
const Input = ({ size = 'md', placeholder, icon: Icon, label, hint, shortcut, hideRequiredIndicator, className,
|
|
68
|
+
const Input = React.forwardRef(({ size = 'md', placeholder, icon: Icon, label, hint, shortcut, hideRequiredIndicator, className, groupRef, tooltip, iconClassName, inputClassName, wrapperClassName, tooltipClassName, type = 'text', 'data-testid': dataTestId, ...props }, ref) => {
|
|
69
69
|
return (jsxRuntime.jsx(TextField, { "aria-label": !label ? placeholder : undefined, ...props, size: size, className: className, children: ({ isRequired, isInvalid }) => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [label && (jsxRuntime.jsx(Label.Label, { isRequired: hideRequiredIndicator ? !hideRequiredIndicator : isRequired, isInvalid: isInvalid, children: label })), jsxRuntime.jsx(InputBase, { ref,
|
|
70
70
|
groupRef,
|
|
71
71
|
size,
|
|
@@ -80,7 +80,7 @@ const Input = ({ size = 'md', placeholder, icon: Icon, label, hint, shortcut, hi
|
|
|
80
80
|
tooltip,
|
|
81
81
|
type,
|
|
82
82
|
'data-testid': dataTestId }), hint && jsxRuntime.jsx(HintText.HintText, { isInvalid: isInvalid, children: hint })] })) }));
|
|
83
|
-
};
|
|
83
|
+
});
|
|
84
84
|
Input.displayName = 'Input';
|
|
85
85
|
|
|
86
86
|
exports.Input = Input;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.cjs","sources":["../../../../../src/components/atoms/Inputs/Input/Input.tsx"],"sourcesContent":[null],"names":["useHotkeyHint","useState","useResolvedTestId","useContext","sortCx","cx","_jsxs","AriaGroup","_jsx","AriaInput","Tooltip","TooltipTrigger","HelpCircle","InfoCircle","AriaButton","EyeOff","Eye","createContext","AriaTextField","_Fragment","Label","HintText"],"mappings":";;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Input.cjs","sources":["../../../../../src/components/atoms/Inputs/Input/Input.tsx"],"sourcesContent":[null],"names":["forwardRef","useHotkeyHint","useState","useResolvedTestId","useContext","sortCx","cx","_jsxs","AriaGroup","_jsx","AriaInput","Tooltip","TooltipTrigger","HelpCircle","InfoCircle","AriaButton","EyeOff","Eye","createContext","AriaTextField","_Fragment","Label","HintText"],"mappings":";;;;;;;;;;;;;AAgDA;AACO,MAAM,SAAS,GAAGA,gBAAU,CACjC,CACE,EACE,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,IAAI,GAAG,IAAI,EACX,SAAS,EACT,UAAU,EACV,UAAU,EACV,IAAI,EAAE,IAAI,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,IAAI,GAAG,MAAM,EACb,aAAa,EAAE,UAAU,EACzB,GAAG,UAAU,EACd,EACD,GAAG,KACD;AACF,IAAA,MAAM,aAAa,GAAGC,2BAAa,CAAC,QAAQ,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC;IACnF,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAGC,cAAQ,CAAC,KAAK,CAAC;AACjE,IAAA,MAAM,WAAW,GAAGC,6BAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC;;;AAIlG,IAAA,MAAM,eAAe,GAAG,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,SAAS,CAAC,IAAI,IAAI,KAAK,UAAU;IACrF,MAAM,cAAc,GAAG,IAAI;;AAG3B,IAAA,MAAM,OAAO,GAAGC,gBAAU,CAAC,gBAAgB,CAAC;AAE5C,IAAA,MAAM,SAAS,GAAG,OAAO,EAAE,IAAI,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B;oBAChB,gBAAgB;oBAChB,OAAO;oBACP,IAAI;AACJ,oBAAA,aAAa,EAAE,UAAU,EAAA,CAE3B,EAED,IAAI,IAAIA,eAACa,iBAAQ,EAAA,EAAC,SAAS,EAAE,SAAS,YAAG,IAAI,EAAA,CAAY,IACzD,CACJ,EAAA,CACS;AAEhB,CAAC;AAGH,KAAK,CAAC,WAAW,GAAG,OAAO;;;;"}
|
|
@@ -27,8 +27,6 @@ export interface InputBaseProps extends Omit<AriaInputProps, 'size'> {
|
|
|
27
27
|
* as written.
|
|
28
28
|
*/
|
|
29
29
|
shortcut?: string | boolean;
|
|
30
|
-
/** Ref forwarded to the underlying `<input>`. */
|
|
31
|
-
ref?: Ref<HTMLInputElement>;
|
|
32
30
|
/** Ref forwarded to the group `<div>` that wraps the input, icon and adornments. */
|
|
33
31
|
groupRef?: Ref<HTMLDivElement>;
|
|
34
32
|
/** Icon component to display on the left side of the input. */
|
|
@@ -37,10 +35,7 @@ export interface InputBaseProps extends Omit<AriaInputProps, 'size'> {
|
|
|
37
35
|
'data-testid'?: string;
|
|
38
36
|
}
|
|
39
37
|
/** Bare input group with icon, tooltip and shortcut adornments but no label or hint; `Input` composes it inside a `TextField`. */
|
|
40
|
-
export declare const InputBase:
|
|
41
|
-
({ ref, tooltip, shortcut, groupRef, size, isInvalid, isDisabled, isRequired, icon: Icon, placeholder, wrapperClassName, tooltipClassName, inputClassName, iconClassName, type, "data-testid": dataTestId, ...inputProps }: InputBaseProps): import("react").JSX.Element;
|
|
42
|
-
displayName: string;
|
|
43
|
-
};
|
|
38
|
+
export declare const InputBase: import("react").ForwardRefExoticComponent<InputBaseProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
44
39
|
interface TextFieldContextProps extends Partial<Pick<InputBaseProps, 'size' | 'wrapperClassName' | 'inputClassName' | 'iconClassName' | 'tooltipClassName'>> {
|
|
45
40
|
}
|
|
46
41
|
export interface TextFieldProps extends AriaTextFieldProps, TextFieldContextProps {
|
|
@@ -50,7 +45,7 @@ export declare const TextField: {
|
|
|
50
45
|
({ className, size, inputClassName, wrapperClassName, iconClassName, tooltipClassName, ...props }: TextFieldProps): import("react").JSX.Element;
|
|
51
46
|
displayName: string;
|
|
52
47
|
};
|
|
53
|
-
export interface InputProps extends AriaTextFieldProps, Pick<InputBaseProps, '
|
|
48
|
+
export interface InputProps extends AriaTextFieldProps, Pick<InputBaseProps, 'placeholder' | 'icon' | 'shortcut' | 'tooltip' | 'groupRef' | 'size' | 'wrapperClassName' | 'inputClassName' | 'iconClassName' | 'tooltipClassName'> {
|
|
54
49
|
/** Label text for the input */
|
|
55
50
|
label?: string;
|
|
56
51
|
/** Helper text displayed below the input */
|
|
@@ -66,9 +61,6 @@ export interface InputProps extends AriaTextFieldProps, Pick<InputBaseProps, 're
|
|
|
66
61
|
*
|
|
67
62
|
* @summary text field for collecting a single line of user input
|
|
68
63
|
*/
|
|
69
|
-
export declare const Input:
|
|
70
|
-
({ size, placeholder, icon: Icon, label, hint, shortcut, hideRequiredIndicator, className, ref, groupRef, tooltip, iconClassName, inputClassName, wrapperClassName, tooltipClassName, type, "data-testid": dataTestId, ...props }: InputProps): import("react").JSX.Element;
|
|
71
|
-
displayName: string;
|
|
72
|
-
};
|
|
64
|
+
export declare const Input: import("react").ForwardRefExoticComponent<InputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
73
65
|
export {};
|
|
74
66
|
//# sourceMappingURL=Input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/Input/Input.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/Input/Input.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAE,KAAK,aAAa,EAA6B,KAAK,cAAc,EAAE,KAAK,SAAS,EAAE,KAAK,GAAG,EAAwB,MAA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kB,EAAE,qBAAqB;CAAG;AAEpF,+IAA+I;AAC/I,eAAO,MAAM,SAAS;uGAQnB,cAAc;;CAahB,CAAC;AAIF,MAAM,WAAW,UACf,SAAQ,kBAAkB,EACxB,IAAI,CACF,cAAc,EACZ,aAAa,GACb,MAAM,GACN,UAAU,GACV,SAAS,GACT,UAAU,GACV,MAAM,GACN,kBAAkB,GAClB,gBAAgB,GAChB,eAAe,GACf,kBAAkB,CACrB;IACH,+BAA+B;IAC/B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,4CAA4C;IAC5C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,oDAAoD;IACpD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,qFAAqF;IACrF,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,KAAK,yGA0DjB,CAAC"}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { HelpCircle, InfoCircle, EyeOff, Eye } from '@flipdish/ui-icons';
|
|
3
3
|
import { Tooltip, TooltipTrigger } from '@flipdish/ui-library/components/atoms/Tooltip';
|
|
4
4
|
import { sortCx, cx } from '@flipdish/ui-library/utilities/cx';
|
|
5
5
|
import { useResolvedTestId } from '@flipdish/ui-library/utilities/testIdUtils';
|
|
6
|
-
import {
|
|
6
|
+
import { forwardRef, useState, useContext, createContext } from 'react';
|
|
7
7
|
import { Group, Input as Input$1, Button, TextField as TextField$1 } from 'react-aria-components';
|
|
8
8
|
import { useHotkeyHint } from '../../../../hooks/__internal__/useHotkeyHint/useHotkeyHint.js';
|
|
9
9
|
import { HintText } from '../components/HintText.js';
|
|
10
10
|
import { Label } from '../components/Label.js';
|
|
11
11
|
|
|
12
12
|
/** Bare input group with icon, tooltip and shortcut adornments but no label or hint; `Input` composes it inside a `TextField`. */
|
|
13
|
-
const InputBase = ({
|
|
13
|
+
const InputBase = forwardRef(({ tooltip, shortcut, groupRef, size = 'md', isInvalid, isDisabled, isRequired, icon: Icon, placeholder, wrapperClassName, tooltipClassName, inputClassName, iconClassName, type = 'text', 'data-testid': dataTestId, ...inputProps }, ref) => {
|
|
14
14
|
const shortcutLabel = useHotkeyHint(shortcut === true ? 'mod+k' : shortcut || null);
|
|
15
15
|
const [isPasswordVisible, setIsPasswordVisible] = useState(false);
|
|
16
16
|
const inputTestId = useResolvedTestId({ testId: dataTestId, segment: 'input', rootName: 'input' });
|
|
@@ -49,7 +49,7 @@ const InputBase = ({ ref, tooltip, shortcut, groupRef, size = 'md', isInvalid, i
|
|
|
49
49
|
isInvalid && 'ring-error_subtle', 'group-invalid:ring-error_subtle',
|
|
50
50
|
// Invalid state with focus-within styles
|
|
51
51
|
isInvalid && isFocusWithin && 'ring-2 ring-error', isFocusWithin && 'group-invalid:ring-2 group-invalid:ring-error', context?.wrapperClassName, wrapperClassName), children: [Icon && (jsx(Icon, { className: cx('pointer-events-none absolute text-fg-quaternary', sizes[inputSize].iconLeading, context?.iconClassName, iconClassName) })), jsx(Input$1, { ...inputProps, ref: ref, "data-testid": inputTestId, required: isRequired, type: type === 'password' && isPasswordVisible ? 'text' : type, placeholder: placeholder, className: cx('m-0 w-full bg-transparent text-primary ring-0 outline-hidden placeholder:text-placeholder autofill:rounded-lg autofill:text-primary disabled:cursor-not-allowed', sizes[inputSize].root, context?.inputClassName, inputClassName) }), tooltip && type !== 'password' && (jsx(Tooltip, { title: tooltip, placement: "top", children: jsx(TooltipTrigger, { "aria-label": "More information", className: cx('absolute cursor-pointer text-fg-quaternary transition duration-100 ease-linear group-invalid/input:hidden hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover', sizes[inputSize].iconTrailing, context?.tooltipClassName, tooltipClassName), children: jsx(HelpCircle, { className: "size-4 stroke-[2.25px]" }) }) })), type !== 'password' && (jsx(InfoCircle, { className: cx('pointer-events-none absolute hidden size-4 stroke-[2.25px] text-fg-error-secondary group-invalid/input:block', sizes[inputSize].iconTrailing, context?.tooltipClassName, tooltipClassName) })), type === 'password' && (jsx(Button, { "aria-label": "Toggle password visibility", onClick: () => setIsPasswordVisible(!isPasswordVisible), className: cx('absolute flex cursor-pointer items-center justify-center text-fg-quaternary transition duration-100 ease-linear hover:text-fg-quaternary_hover focus:text-fg-quaternary_hover focus:outline-hidden', sizes[inputSize].iconTrailing), children: isPasswordVisible ? jsx(EyeOff, { className: "size-4 stroke-[2.25px]" }) : jsx(Eye, { className: "size-4 stroke-[2.25px]" }) })), shortcut && (jsx("div", { className: cx('pointer-events-none absolute inset-y-0.5 z-10 hidden items-center rounded-r-[inherit] bg-linear-to-r from-transparent to-bg-primary to-40% pl-8 md:flex', sizes[inputSize].shortcut), children: jsx("span", { "aria-hidden": "true", className: "pointer-events-none rounded px-1 py-px text-xs font-medium text-quaternary ring-1 ring-secondary select-none ring-inset", children: shortcutLabel }) }))] }));
|
|
52
|
-
};
|
|
52
|
+
});
|
|
53
53
|
InputBase.displayName = 'InputBase';
|
|
54
54
|
const TextFieldContext = createContext({});
|
|
55
55
|
/** Wrapper around react-aria-components' `TextField` that shares `size` and the class-name props with a nested `InputBase` through context. */
|
|
@@ -63,7 +63,7 @@ TextField.displayName = 'TextField';
|
|
|
63
63
|
*
|
|
64
64
|
* @summary text field for collecting a single line of user input
|
|
65
65
|
*/
|
|
66
|
-
const Input = ({ size = 'md', placeholder, icon: Icon, label, hint, shortcut, hideRequiredIndicator, className,
|
|
66
|
+
const Input = forwardRef(({ size = 'md', placeholder, icon: Icon, label, hint, shortcut, hideRequiredIndicator, className, groupRef, tooltip, iconClassName, inputClassName, wrapperClassName, tooltipClassName, type = 'text', 'data-testid': dataTestId, ...props }, ref) => {
|
|
67
67
|
return (jsx(TextField, { "aria-label": !label ? placeholder : undefined, ...props, size: size, className: className, children: ({ isRequired, isInvalid }) => (jsxs(Fragment, { children: [label && (jsx(Label, { isRequired: hideRequiredIndicator ? !hideRequiredIndicator : isRequired, isInvalid: isInvalid, children: label })), jsx(InputBase, { ref,
|
|
68
68
|
groupRef,
|
|
69
69
|
size,
|
|
@@ -78,7 +78,7 @@ const Input = ({ size = 'md', placeholder, icon: Icon, label, hint, shortcut, hi
|
|
|
78
78
|
tooltip,
|
|
79
79
|
type,
|
|
80
80
|
'data-testid': dataTestId }), hint && jsx(HintText, { isInvalid: isInvalid, children: hint })] })) }));
|
|
81
|
-
};
|
|
81
|
+
});
|
|
82
82
|
Input.displayName = 'Input';
|
|
83
83
|
|
|
84
84
|
export { Input, InputBase, TextField };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.js","sources":["../../../../../src/components/atoms/Inputs/Input/Input.tsx"],"sourcesContent":[null],"names":["_jsxs","AriaGroup","_jsx","AriaInput","AriaButton","AriaTextField","_Fragment"],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Input.js","sources":["../../../../../src/components/atoms/Inputs/Input/Input.tsx"],"sourcesContent":[null],"names":["_jsxs","AriaGroup","_jsx","AriaInput","AriaButton","AriaTextField","_Fragment"],"mappings":";;;;;;;;;;;AAgDA;AACO,MAAM,SAAS,GAAG,UAAU,CACjC,CACE,EACE,OAAO,EACP,QAAQ,EACR,QAAQ,EACR,IAAI,GAAG,IAAI,EACX,SAAS,EACT,UAAU,EACV,UAAU,EACV,IAAI,EAAE,IAAI,EACV,WAAW,EACX,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,IAAI,GAAG,MAAM,EACb,aAAa,EAAE,UAAU,EACzB,GAAG,UAAU,EACd,EACD,GAAG,KACD;AACF,IAAA,MAAM,aAAa,GAAG,aAAa,CAAC,QAAQ,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,IAAI,IAAI,CAAC;IACnF,MAAM,CAAC,iBAAiB,EAAE,oBAAoB,CAAC,GAAG,QAAQ,CAAC,KAAK,CAAC;AACjE,IAAA,MAAM,WAAW,GAAG,iBAAiB,CAAC,EAAE,MAAM,EA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EAAC,UAAU,EAAE,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,UAAU,EAAE,SAAS,EAAE,SAAS,EAAA,QAAA,EACjG,KAAK,EAAA,CACA,CACT,EAEDA,GAAA,CAAC,SAAS,IAEN,GAAG;oBACH,QAAQ;oBACR,IAAI;oBACJ,WAAW;AACX,oBAAA,IAAI,EAAE,IAAI;oBACV,QAAQ;oBACR,SAAS;oBACT,aAAa;oBACb,cAAc;oBACd,gBAAgB;oBAChB,gBAAgB;oBAChB,OAAO;oBACP,IAAI;AACJ,oBAAA,aAAa,EAAE,UAAU,EAAA,CAE3B,EAED,IAAI,IAAIA,IAAC,QAAQ,EAAA,EAAC,SAAS,EAAE,SAAS,YAAG,IAAI,EAAA,CAAY,IACzD,CACJ,EAAA,CACS;AAEhB,CAAC;AAGH,KAAK,CAAC,WAAW,GAAG,OAAO;;"}
|
|
@@ -5,6 +5,7 @@ var uiIcons = require('@flipdish/ui-icons');
|
|
|
5
5
|
var LoadingIndicator = require('@flipdish/ui-library/components/atoms/LoadingIndicator');
|
|
6
6
|
var cx = require('@flipdish/ui-library/utilities/cx');
|
|
7
7
|
var testIdUtils = require('@flipdish/ui-library/utilities/testIdUtils');
|
|
8
|
+
var React = require('react');
|
|
8
9
|
var reactAriaComponents = require('react-aria-components');
|
|
9
10
|
var useDebouncedSearch = require('../../../../hooks/__internal__/useDebouncedSearch/useDebouncedSearch.cjs');
|
|
10
11
|
var useHotkeyHint = require('../../../../hooks/__internal__/useHotkeyHint/useHotkeyHint.cjs');
|
|
@@ -22,7 +23,7 @@ const sizes = cx.sortCx({
|
|
|
22
23
|
*
|
|
23
24
|
* @summary search box that filters as you type and clears in one press
|
|
24
25
|
*/
|
|
25
|
-
const SearchInput = ({ label, hint, placeholder, size = 'md', clearLabel = 'Clear search', isLoading = false, debounce, shortcut, className, wrapperClassName, inputClassName,
|
|
26
|
+
const SearchInput = React.forwardRef(({ label, hint, placeholder, size = 'md', clearLabel = 'Clear search', isLoading = false, debounce, shortcut, className, wrapperClassName, inputClassName, 'data-testid': dataTestId, ...props }, ref) => {
|
|
26
27
|
const inputTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'search-input', rootName: 'search-input' });
|
|
27
28
|
const shortcutLabel = useHotkeyHint.useHotkeyHint(shortcut === true ? 'mod+k' : shortcut || null);
|
|
28
29
|
const { value, defaultValue, onChange, onSubmit, onClear, onKeyDown, ...fieldProps } = props;
|
|
@@ -53,7 +54,7 @@ const SearchInput = ({ label, hint, placeholder, size = 'md', clearLabel = 'Clea
|
|
|
53
54
|
jsxRuntime.jsx("span", { "aria-hidden": "true", "data-testid": testIdUtils.joinTestId(inputTestId, 'loading'), className: cx.cx('pointer-events-none absolute flex items-center justify-center', sizes[size].icon), children: jsxRuntime.jsx(LoadingIndicator.LoadingIndicator, { size: "xs" }) })) : (jsxRuntime.jsx(uiIcons.SearchLg, { "aria-hidden": "true", className: cx.cx('pointer-events-none absolute text-fg-quaternary', sizes[size].icon) })), jsxRuntime.jsx(reactAriaComponents.Input, { ref: ref, "data-testid": inputTestId, placeholder: placeholder, "aria-busy": isLoading || undefined, className: cx.cx(
|
|
54
55
|
// The browser draws its own cancel control on a search input; the clear button below replaces it.
|
|
55
56
|
'm-0 w-full bg-transparent text-primary ring-0 outline-hidden placeholder:text-placeholder disabled:cursor-not-allowed [&::-webkit-search-cancel-button]:hidden', sizes[size].input, inputClassName) }), jsxRuntime.jsx(reactAriaComponents.Button, { "aria-label": clearLabel, "data-testid": testIdUtils.joinTestId(inputTestId, 'clear'), className: cx.cx('absolute flex cursor-pointer items-center justify-center rounded-md p-1 text-fg-quaternary outline-focus-ring transition duration-100 ease-linear group-data-empty/search:hidden group-data-disabled/search:hidden group-data-readonly/search:hidden hover:text-fg-quaternary_hover focus-visible:outline-2', sizes[size].clear), children: jsxRuntime.jsx(uiIcons.XClose, { "aria-hidden": "true", className: "size-4 stroke-[2.25px]" }) }), shortcut && (jsxRuntime.jsx("div", { className: cx.cx('pointer-events-none absolute inset-y-0.5 right-0.5 z-10 hidden items-center rounded-r-[inherit] bg-linear-to-r from-transparent to-bg-primary to-40% pl-8 group-data-empty/search:md:flex', sizes[size].shortcut), children: jsxRuntime.jsx("span", { "aria-hidden": "true", className: "rounded px-1 py-px text-xs font-medium text-quaternary ring-1 ring-secondary select-none ring-inset", children: shortcutLabel }) }))] }), hint && jsxRuntime.jsx(HintText.HintText, { isInvalid: isInvalid, children: hint })] })) }));
|
|
56
|
-
};
|
|
57
|
+
});
|
|
57
58
|
SearchInput.displayName = 'SearchInput';
|
|
58
59
|
|
|
59
60
|
exports.SearchInput = SearchInput;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.cjs","sources":["../../../../../src/components/atoms/Inputs/SearchInput/SearchInput.tsx"],"sourcesContent":[null],"names":["sortCx","useResolvedTestId","useHotkeyHint","useDebouncedSearch","_jsx","AriaSearchField","cx","_jsxs","_Fragment","Label","AriaGroup","joinTestId","LoadingIndicator","SearchLg","AriaInput","AriaButton","XClose","HintText"],"mappings":"
|
|
1
|
+
{"version":3,"file":"SearchInput.cjs","sources":["../../../../../src/components/atoms/Inputs/SearchInput/SearchInput.tsx"],"sourcesContent":[null],"names":["sortCx","forwardRef","useResolvedTestId","useHotkeyHint","useDebouncedSearch","_jsx","AriaSearchField","cx","_jsxs","_Fragment","Label","AriaGroup","joinTestId","LoadingIndicator","SearchLg","AriaInput","AriaButton","XClose","HintText"],"mappings":";;;;;;;;;;;;;;AAcA,MAAM,KAAK,GAAGA,SAAM,CAAC;AACnB,IAAA,EAAE,EAAE,EAAE,KAAK,EAAE,wBAAwB,EAAE,IAAI,EAAE,+BAA+B,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,QAAQ,EAAE;AACpH,IAAA,EAAE,EAAE,EAAE,KAAK,EAAE,yBAAyB,EAAE,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE;AACnG,IAA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IAAC,SAAS,EAAE,SAAS,EAAA,QAAA,EAAG,IAAI,GAAY,CAAA,EAAA,CACzD,CACJ,EAAA,CACe;AAEtB,CAAC;AAGH,WAAW,CAAC,WAAW,GAAG,aAAa;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
2
|
import type { SearchFieldProps as AriaSearchFieldProps } from 'react-aria-components';
|
|
3
3
|
export interface SearchInputProps extends Omit<AriaSearchFieldProps, 'children' | 'className' | 'style'> {
|
|
4
4
|
/** Visible label above the field. Without one the field is named by `aria-label`, or failing that by its `placeholder`. */
|
|
@@ -29,8 +29,6 @@ export interface SearchInputProps extends Omit<AriaSearchFieldProps, 'children'
|
|
|
29
29
|
wrapperClassName?: string;
|
|
30
30
|
/** Extra classes merged onto the `<input>`. */
|
|
31
31
|
inputClassName?: string;
|
|
32
|
-
/** Ref forwarded to the `<input>`. */
|
|
33
|
-
ref?: Ref<HTMLInputElement>;
|
|
34
32
|
/** Overrides the `<input>`'s `data-testid` (defaults to `fd-search-input`). The clear button derives `<root>--clear`. */
|
|
35
33
|
'data-testid'?: string;
|
|
36
34
|
}
|
|
@@ -40,8 +38,5 @@ export interface SearchInputProps extends Omit<AriaSearchFieldProps, 'children'
|
|
|
40
38
|
*
|
|
41
39
|
* @summary search box that filters as you type and clears in one press
|
|
42
40
|
*/
|
|
43
|
-
export declare const SearchInput:
|
|
44
|
-
({ label, hint, placeholder, size, clearLabel, isLoading, debounce, shortcut, className, wrapperClassName, inputClassName, ref, "data-testid": dataTestId, ...props }: SearchInputProps): import("react").JSX.Element;
|
|
45
|
-
displayName: string;
|
|
46
|
-
};
|
|
41
|
+
export declare const SearchInput: import("react").ForwardRefExoticComponent<SearchInputProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
47
42
|
//# sourceMappingURL=SearchInput.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"SearchInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/SearchInput/SearchInput.tsx"],"names":[],"mappings":"AAMA,OAAO,EAAc,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AACnD,OAAO,KAAK,EAAE,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAatF,MAAM,WAAW,gBAAiB,SAAQ,IAAI,CAAC,oBAAoB,EAAE,UAAU,GAAG,WAAW,GAAG,OAAO,CAAC;IACtG,2HAA2H;IAC3H,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,kDAAkD;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qCAAqC;IACrC,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,2CAA2C;IAC3C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,yHAAyH;IACzH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC5B,iDAAiD;IACjD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,yHAAyH;IACzH,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,WAAW,+GAmIvB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { SearchLg, XClose } from '@flipdish/ui-icons';
|
|
|
3
3
|
import { LoadingIndicator } from '@flipdish/ui-library/components/atoms/LoadingIndicator';
|
|
4
4
|
import { sortCx, cx } from '@flipdish/ui-library/utilities/cx';
|
|
5
5
|
import { useResolvedTestId, joinTestId } from '@flipdish/ui-library/utilities/testIdUtils';
|
|
6
|
+
import { forwardRef } from 'react';
|
|
6
7
|
import { SearchField, Group, Input, Button } from 'react-aria-components';
|
|
7
8
|
import { useDebouncedSearch } from '../../../../hooks/__internal__/useDebouncedSearch/useDebouncedSearch.js';
|
|
8
9
|
import { useHotkeyHint } from '../../../../hooks/__internal__/useHotkeyHint/useHotkeyHint.js';
|
|
@@ -20,7 +21,7 @@ const sizes = sortCx({
|
|
|
20
21
|
*
|
|
21
22
|
* @summary search box that filters as you type and clears in one press
|
|
22
23
|
*/
|
|
23
|
-
const SearchInput = ({ label, hint, placeholder, size = 'md', clearLabel = 'Clear search', isLoading = false, debounce, shortcut, className, wrapperClassName, inputClassName,
|
|
24
|
+
const SearchInput = forwardRef(({ label, hint, placeholder, size = 'md', clearLabel = 'Clear search', isLoading = false, debounce, shortcut, className, wrapperClassName, inputClassName, 'data-testid': dataTestId, ...props }, ref) => {
|
|
24
25
|
const inputTestId = useResolvedTestId({ testId: dataTestId, segment: 'search-input', rootName: 'search-input' });
|
|
25
26
|
const shortcutLabel = useHotkeyHint(shortcut === true ? 'mod+k' : shortcut || null);
|
|
26
27
|
const { value, defaultValue, onChange, onSubmit, onClear, onKeyDown, ...fieldProps } = props;
|
|
@@ -51,7 +52,7 @@ const SearchInput = ({ label, hint, placeholder, size = 'md', clearLabel = 'Clea
|
|
|
51
52
|
jsx("span", { "aria-hidden": "true", "data-testid": joinTestId(inputTestId, 'loading'), className: cx('pointer-events-none absolute flex items-center justify-center', sizes[size].icon), children: jsx(LoadingIndicator, { size: "xs" }) })) : (jsx(SearchLg, { "aria-hidden": "true", className: cx('pointer-events-none absolute text-fg-quaternary', sizes[size].icon) })), jsx(Input, { ref: ref, "data-testid": inputTestId, placeholder: placeholder, "aria-busy": isLoading || undefined, className: cx(
|
|
52
53
|
// The browser draws its own cancel control on a search input; the clear button below replaces it.
|
|
53
54
|
'm-0 w-full bg-transparent text-primary ring-0 outline-hidden placeholder:text-placeholder disabled:cursor-not-allowed [&::-webkit-search-cancel-button]:hidden', sizes[size].input, inputClassName) }), jsx(Button, { "aria-label": clearLabel, "data-testid": joinTestId(inputTestId, 'clear'), className: cx('absolute flex cursor-pointer items-center justify-center rounded-md p-1 text-fg-quaternary outline-focus-ring transition duration-100 ease-linear group-data-empty/search:hidden group-data-disabled/search:hidden group-data-readonly/search:hidden hover:text-fg-quaternary_hover focus-visible:outline-2', sizes[size].clear), children: jsx(XClose, { "aria-hidden": "true", className: "size-4 stroke-[2.25px]" }) }), shortcut && (jsx("div", { className: cx('pointer-events-none absolute inset-y-0.5 right-0.5 z-10 hidden items-center rounded-r-[inherit] bg-linear-to-r from-transparent to-bg-primary to-40% pl-8 group-data-empty/search:md:flex', sizes[size].shortcut), children: jsx("span", { "aria-hidden": "true", className: "rounded px-1 py-px text-xs font-medium text-quaternary ring-1 ring-secondary select-none ring-inset", children: shortcutLabel }) }))] }), hint && jsx(HintText, { isInvalid: isInvalid, children: hint })] })) }));
|
|
54
|
-
};
|
|
55
|
+
});
|
|
55
56
|
SearchInput.displayName = 'SearchInput';
|
|
56
57
|
|
|
57
58
|
export { SearchInput };
|