@flipdish/ui-library 0.58.1 → 0.60.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 +3 -3
- package/dist/components/atoms/AppStoreButton/index.d.ts.map +1 -1
- package/dist/components/atoms/Badge/index.cjs +15 -59
- package/dist/components/atoms/Badge/index.cjs.map +1 -1
- package/dist/components/atoms/Badge/index.d.ts +22 -98
- package/dist/components/atoms/Badge/index.d.ts.map +1 -1
- package/dist/components/atoms/Badge/index.js +15 -59
- package/dist/components/atoms/Badge/index.js.map +1 -1
- package/dist/components/atoms/Badges/Badge/Badge.cjs +71 -0
- package/dist/components/atoms/Badges/Badge/Badge.cjs.map +1 -0
- package/dist/components/atoms/Badges/Badge/Badge.d.ts +99 -0
- package/dist/components/atoms/Badges/Badge/Badge.d.ts.map +1 -0
- package/dist/components/atoms/Badges/Badge/Badge.js +63 -0
- package/dist/components/atoms/Badges/Badge/Badge.js.map +1 -0
- package/dist/components/atoms/{Badge → Badges/Badge}/Badge.styles.cjs +1 -1
- package/dist/components/atoms/Badges/Badge/Badge.styles.cjs.map +1 -0
- package/dist/components/atoms/{Badge → Badges/Badge}/Badge.styles.d.ts +1 -1
- package/dist/components/atoms/Badges/Badge/Badge.styles.d.ts.map +1 -0
- package/dist/components/atoms/{Badge → Badges/Badge}/Badge.styles.js +1 -1
- package/dist/components/atoms/Badges/Badge/Badge.styles.js.map +1 -0
- package/dist/components/atoms/Badges/Badge/badge.types.cjs.map +1 -0
- package/dist/components/atoms/Badges/Badge/badge.types.d.ts.map +1 -0
- package/dist/components/atoms/Badges/Badge/badge.types.js.map +1 -0
- package/dist/components/atoms/{Badge → Badges/Badge/utilities}/badge.utils.d.ts +2 -2
- package/dist/components/atoms/Badges/Badge/utilities/badge.utils.d.ts.map +1 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.cjs +116 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.cjs.map +1 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.d.ts +38 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.d.ts.map +1 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.js +114 -0
- package/dist/components/atoms/Badges/BadgeGroup/BadgeGroup.js.map +1 -0
- package/dist/components/atoms/Badges/index.cjs +16 -0
- package/dist/components/atoms/Badges/index.cjs.map +1 -0
- package/dist/components/atoms/Badges/index.d.ts +16 -0
- package/dist/components/atoms/Badges/index.d.ts.map +1 -0
- package/dist/components/atoms/Badges/index.js +3 -0
- package/dist/components/atoms/Badges/index.js.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButton.cjs +1 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButton.js +1 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreBadgeLink.cjs.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreBadgeLink.d.ts.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreBadgeLink.js.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreButtonsOutline.cjs → components/AppStoreButtonsOutline.cjs} +1 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreButtonsOutline.cjs.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreButtonsOutline.d.ts.map +1 -0
- package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreButtonsOutline.js → components/AppStoreButtonsOutline.js} +1 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/components/AppStoreButtonsOutline.js.map +1 -0
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.cjs +1 -1
- package/dist/components/atoms/BrandButtons/SocialButton/SocialButton.js +1 -1
- package/dist/components/atoms/BrandButtons/SocialButton/components/SocialLogos.cjs.map +1 -0
- package/dist/components/atoms/BrandButtons/SocialButton/components/SocialLogos.d.ts.map +1 -0
- package/dist/components/atoms/BrandButtons/SocialButton/components/SocialLogos.js.map +1 -0
- package/dist/components/atoms/BrandButtons/index.cjs +1 -1
- package/dist/components/atoms/BrandButtons/index.d.ts +1 -1
- package/dist/components/atoms/BrandButtons/index.d.ts.map +1 -1
- package/dist/components/atoms/BrandButtons/index.js +1 -1
- package/dist/components/atoms/Button/index.cjs +6 -163
- package/dist/components/atoms/Button/index.cjs.map +1 -1
- package/dist/components/atoms/Button/index.d.ts +14 -117
- package/dist/components/atoms/Button/index.d.ts.map +1 -1
- package/dist/components/atoms/Button/index.js +6 -163
- package/dist/components/atoms/Button/index.js.map +1 -1
- package/dist/components/atoms/Buttons/Button/Button.cjs +168 -0
- package/dist/components/atoms/Buttons/Button/Button.cjs.map +1 -0
- package/dist/components/atoms/Buttons/Button/Button.d.ts +116 -0
- package/dist/components/atoms/Buttons/Button/Button.d.ts.map +1 -0
- package/dist/components/atoms/Buttons/Button/Button.js +165 -0
- package/dist/components/atoms/Buttons/Button/Button.js.map +1 -0
- package/dist/components/atoms/{Button → Buttons/Button}/Button.styles.d.ts +1 -1
- package/dist/components/atoms/Buttons/Button/Button.styles.d.ts.map +1 -0
- package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonIcon.cjs +1 -1
- package/dist/components/atoms/Buttons/Button/components/ButtonIcon.cjs.map +1 -0
- package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonIcon.d.ts +1 -1
- package/dist/components/atoms/Buttons/Button/components/ButtonIcon.d.ts.map +1 -0
- package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonIcon.js +1 -1
- package/dist/components/atoms/Buttons/Button/components/ButtonIcon.js.map +1 -0
- package/dist/components/atoms/Buttons/Button/components/ButtonSpinner.cjs.map +1 -0
- package/dist/components/atoms/Buttons/Button/components/ButtonSpinner.d.ts.map +1 -0
- package/dist/components/atoms/Buttons/Button/components/ButtonSpinner.js.map +1 -0
- package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.cjs +61 -0
- package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.cjs.map +1 -0
- package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.d.ts +27 -0
- package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.d.ts.map +1 -0
- package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.js +59 -0
- package/dist/components/atoms/Buttons/Button/hooks/useLoadingLinkPress.js.map +1 -0
- package/dist/components/atoms/Buttons/CloseButton/CloseButton.cjs +31 -0
- package/dist/components/atoms/Buttons/CloseButton/CloseButton.cjs.map +1 -0
- package/dist/components/atoms/Buttons/CloseButton/CloseButton.d.ts +19 -0
- package/dist/components/atoms/Buttons/CloseButton/CloseButton.d.ts.map +1 -0
- package/dist/components/atoms/Buttons/CloseButton/CloseButton.js +29 -0
- package/dist/components/atoms/Buttons/CloseButton/CloseButton.js.map +1 -0
- package/dist/components/atoms/Buttons/CopyButton/CopyButton.cjs +27 -0
- package/dist/components/atoms/Buttons/CopyButton/CopyButton.cjs.map +1 -0
- package/dist/components/atoms/Buttons/CopyButton/CopyButton.d.ts +28 -0
- package/dist/components/atoms/Buttons/CopyButton/CopyButton.d.ts.map +1 -0
- package/dist/components/atoms/Buttons/CopyButton/CopyButton.js +25 -0
- package/dist/components/atoms/Buttons/CopyButton/CopyButton.js.map +1 -0
- package/dist/components/atoms/Buttons/IconButton/IconButton.cjs +59 -0
- package/dist/components/atoms/Buttons/IconButton/IconButton.cjs.map +1 -0
- package/dist/components/atoms/Buttons/IconButton/IconButton.d.ts +65 -0
- package/dist/components/atoms/Buttons/IconButton/IconButton.d.ts.map +1 -0
- package/dist/components/atoms/Buttons/IconButton/IconButton.js +56 -0
- package/dist/components/atoms/Buttons/IconButton/IconButton.js.map +1 -0
- package/dist/components/atoms/Buttons/index.cjs +14 -0
- package/dist/components/atoms/Buttons/index.cjs.map +1 -0
- package/dist/components/atoms/Buttons/index.d.ts +18 -0
- package/dist/components/atoms/Buttons/index.d.ts.map +1 -0
- package/dist/components/atoms/Buttons/index.js +5 -0
- package/dist/components/atoms/Buttons/index.js.map +1 -0
- package/dist/components/atoms/Checkboxes/Checkbox/Checkbox.cjs +1 -1
- package/dist/components/atoms/Checkboxes/Checkbox/Checkbox.js +1 -1
- package/dist/components/atoms/Checkboxes/Checkbox/components/CheckboxBase.cjs.map +1 -0
- package/dist/components/atoms/Checkboxes/Checkbox/components/CheckboxBase.d.ts.map +1 -0
- package/dist/components/atoms/Checkboxes/Checkbox/components/CheckboxBase.js.map +1 -0
- package/dist/components/atoms/Checkboxes/CheckboxGroup/CheckboxGroup.cjs +2 -2
- package/dist/components/atoms/Checkboxes/CheckboxGroup/CheckboxGroup.cjs.map +1 -1
- package/dist/components/atoms/Checkboxes/CheckboxGroup/CheckboxGroup.js +1 -1
- package/dist/components/atoms/Checkboxes/index.cjs +1 -1
- package/dist/components/atoms/Checkboxes/index.d.ts +2 -2
- package/dist/components/atoms/Checkboxes/index.d.ts.map +1 -1
- package/dist/components/atoms/Checkboxes/index.js +1 -1
- package/dist/components/atoms/CloseButton/index.cjs +3 -26
- package/dist/components/atoms/CloseButton/index.cjs.map +1 -1
- package/dist/components/atoms/CloseButton/index.d.ts +5 -18
- package/dist/components/atoms/CloseButton/index.d.ts.map +1 -1
- package/dist/components/atoms/CloseButton/index.js +3 -26
- package/dist/components/atoms/CloseButton/index.js.map +1 -1
- package/dist/components/atoms/CopyButton/index.cjs +3 -21
- package/dist/components/atoms/CopyButton/index.cjs.map +1 -1
- package/dist/components/atoms/CopyButton/index.d.ts +5 -27
- package/dist/components/atoms/CopyButton/index.d.ts.map +1 -1
- package/dist/components/atoms/CopyButton/index.js +3 -21
- package/dist/components/atoms/CopyButton/index.js.map +1 -1
- package/dist/components/atoms/Input/index.cjs +13 -84
- package/dist/components/atoms/Input/index.cjs.map +1 -1
- package/dist/components/atoms/Input/index.d.ts +20 -70
- package/dist/components/atoms/Input/index.d.ts.map +1 -1
- package/dist/components/atoms/Input/index.js +11 -82
- package/dist/components/atoms/Input/index.js.map +1 -1
- package/dist/components/atoms/Inputs/Input/Input.cjs +89 -0
- package/dist/components/atoms/Inputs/Input/Input.cjs.map +1 -0
- package/dist/components/atoms/Inputs/Input/Input.d.ts +74 -0
- package/dist/components/atoms/Inputs/Input/Input.d.ts.map +1 -0
- package/dist/components/atoms/Inputs/Input/Input.js +85 -0
- package/dist/components/atoms/Inputs/Input/Input.js.map +1 -0
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.cjs +60 -0
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.cjs.map +1 -0
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.d.ts +47 -0
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.d.ts.map +1 -0
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.js +58 -0
- package/dist/components/atoms/Inputs/SearchInput/SearchInput.js.map +1 -0
- package/dist/components/atoms/Inputs/TextArea/TextArea.cjs +41 -0
- package/dist/components/atoms/Inputs/TextArea/TextArea.cjs.map +1 -0
- package/dist/components/atoms/Inputs/TextArea/TextArea.d.ts +51 -0
- package/dist/components/atoms/Inputs/TextArea/TextArea.d.ts.map +1 -0
- package/dist/components/atoms/Inputs/TextArea/TextArea.js +38 -0
- package/dist/components/atoms/Inputs/TextArea/TextArea.js.map +1 -0
- package/dist/components/atoms/Inputs/components/HintText.cjs.map +1 -0
- package/dist/components/atoms/Inputs/components/HintText.d.ts.map +1 -0
- package/dist/components/atoms/Inputs/components/HintText.js.map +1 -0
- package/dist/components/atoms/Inputs/components/Label.cjs.map +1 -0
- package/dist/components/atoms/Inputs/components/Label.d.ts.map +1 -0
- package/dist/components/atoms/Inputs/components/Label.js.map +1 -0
- package/dist/components/atoms/Inputs/index.cjs +19 -0
- package/dist/components/atoms/Inputs/index.cjs.map +1 -0
- package/dist/components/atoms/Inputs/index.d.ts +19 -0
- package/dist/components/atoms/Inputs/index.d.ts.map +1 -0
- package/dist/components/atoms/Inputs/index.js +6 -0
- package/dist/components/atoms/Inputs/index.js.map +1 -0
- package/dist/components/atoms/Radios/RadioButton/RadioButton.cjs +1 -1
- package/dist/components/atoms/Radios/RadioButton/RadioButton.js +1 -1
- package/dist/components/atoms/Radios/RadioButton/components/RadioButtonBase.cjs.map +1 -0
- package/dist/components/atoms/Radios/RadioButton/components/RadioButtonBase.d.ts.map +1 -0
- package/dist/components/atoms/Radios/RadioButton/components/RadioButtonBase.js.map +1 -0
- package/dist/components/atoms/Radios/index.cjs +2 -2
- package/dist/components/atoms/Radios/index.d.ts +2 -2
- package/dist/components/atoms/Radios/index.d.ts.map +1 -1
- package/dist/components/atoms/Radios/index.js +1 -1
- package/dist/components/atoms/SearchInput/index.cjs +3 -52
- package/dist/components/atoms/SearchInput/index.cjs.map +1 -1
- package/dist/components/atoms/SearchInput/index.d.ts +5 -43
- package/dist/components/atoms/SearchInput/index.d.ts.map +1 -1
- package/dist/components/atoms/SearchInput/index.js +3 -52
- package/dist/components/atoms/SearchInput/index.js.map +1 -1
- package/dist/components/atoms/Slider/index.cjs +3 -3
- package/dist/components/atoms/Slider/index.cjs.map +1 -1
- package/dist/components/atoms/Slider/index.js +1 -1
- package/dist/components/atoms/UtilityButton/index.cjs +6 -51
- package/dist/components/atoms/UtilityButton/index.cjs.map +1 -1
- package/dist/components/atoms/UtilityButton/index.d.ts +12 -54
- package/dist/components/atoms/UtilityButton/index.d.ts.map +1 -1
- package/dist/components/atoms/UtilityButton/index.js +6 -51
- package/dist/components/atoms/UtilityButton/index.js.map +1 -1
- package/dist/components/atoms/VerificationCodeInput/index.cjs +96 -0
- package/dist/components/atoms/VerificationCodeInput/index.cjs.map +1 -0
- package/dist/components/atoms/VerificationCodeInput/index.d.ts +70 -0
- package/dist/components/atoms/VerificationCodeInput/index.d.ts.map +1 -0
- package/dist/components/atoms/VerificationCodeInput/index.js +93 -0
- package/dist/components/atoms/VerificationCodeInput/index.js.map +1 -0
- package/dist/components/forms/fields/FormInput/index.cjs +2 -2
- package/dist/components/forms/fields/FormInput/index.d.ts +1 -1
- package/dist/components/forms/fields/FormInput/index.d.ts.map +1 -1
- package/dist/components/forms/fields/FormInput/index.js +1 -1
- package/dist/components/forms/fields/FormRadioCardGroup/index.cjs +5 -5
- package/dist/components/forms/fields/FormRadioCardGroup/index.cjs.map +1 -1
- package/dist/components/forms/fields/FormRadioCardGroup/index.d.ts +3 -3
- package/dist/components/forms/fields/FormRadioCardGroup/index.d.ts.map +1 -1
- package/dist/components/forms/fields/FormRadioCardGroup/index.js +4 -4
- package/dist/components/forms/fields/FormRadioGroup/index.cjs +2 -2
- package/dist/components/forms/fields/FormRadioGroup/index.cjs.map +1 -1
- package/dist/components/forms/fields/FormRadioGroup/index.js +1 -1
- package/dist/components/forms/fields/FormSlider/index.cjs +2 -2
- package/dist/components/forms/fields/FormSlider/index.cjs.map +1 -1
- package/dist/components/forms/fields/FormSlider/index.js +1 -1
- package/dist/components/forms/fields/FormTextArea/index.cjs +2 -2
- package/dist/components/forms/fields/FormTextArea/index.d.ts +2 -2
- package/dist/components/forms/fields/FormTextArea/index.d.ts.map +1 -1
- package/dist/components/forms/fields/FormTextArea/index.js +1 -1
- package/dist/components/layouts/PageHubLayout/components/PageHubLayoutSectionNav.cjs +2 -2
- package/dist/components/layouts/PageHubLayout/components/PageHubLayoutSectionNav.cjs.map +1 -1
- package/dist/components/layouts/PageHubLayout/components/PageHubLayoutSectionNav.js +1 -1
- package/dist/components/molecules/ActivityFeed/index.cjs +2 -2
- package/dist/components/molecules/ActivityFeed/index.cjs.map +1 -1
- package/dist/components/molecules/ActivityFeed/index.d.ts +1 -1
- package/dist/components/molecules/ActivityFeed/index.d.ts.map +1 -1
- package/dist/components/molecules/ActivityFeed/index.js +1 -1
- package/dist/components/molecules/BadgeGroup/index.cjs +3 -110
- package/dist/components/molecules/BadgeGroup/index.cjs.map +1 -1
- package/dist/components/molecules/BadgeGroup/index.d.ts +5 -37
- package/dist/components/molecules/BadgeGroup/index.d.ts.map +1 -1
- package/dist/components/molecules/BadgeGroup/index.js +3 -110
- package/dist/components/molecules/BadgeGroup/index.js.map +1 -1
- package/dist/components/molecules/Paginations/Pagination/Pagination.cjs +2 -2
- package/dist/components/molecules/Paginations/Pagination/Pagination.cjs.map +1 -1
- package/dist/components/molecules/Paginations/Pagination/Pagination.js +1 -1
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.cjs +37 -0
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.cjs.map +1 -0
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.d.ts +33 -0
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.d.ts.map +1 -0
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.js +35 -0
- package/dist/components/molecules/RadioCards/RadioCardAvatar/RadioCardAvatar.js.map +1 -0
- package/dist/components/molecules/{RadioGroup → RadioCards/RadioCardAvatar}/hooks/useCommitOnPress.cjs +1 -1
- package/dist/components/molecules/RadioCards/RadioCardAvatar/hooks/useCommitOnPress.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup → RadioCards/RadioCardAvatar}/hooks/useCommitOnPress.d.ts +6 -6
- package/dist/components/molecules/RadioCards/RadioCardAvatar/hooks/useCommitOnPress.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup → RadioCards/RadioCardAvatar}/hooks/useCommitOnPress.js +1 -1
- package/dist/components/molecules/RadioCards/RadioCardAvatar/hooks/useCommitOnPress.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupRadioButton.cjs → RadioCards/RadioCardBullet/RadioCardBullet.cjs} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardBullet/RadioCardBullet.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupRadioButton.d.ts → RadioCards/RadioCardBullet/RadioCardBullet.d.ts} +5 -5
- package/dist/components/molecules/RadioCards/RadioCardBullet/RadioCardBullet.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupRadioButton.js → RadioCards/RadioCardBullet/RadioCardBullet.js} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardBullet/RadioCardBullet.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupCheckbox.cjs → RadioCards/RadioCardCheck/RadioCardCheck.cjs} +4 -4
- package/dist/components/molecules/RadioCards/RadioCardCheck/RadioCardCheck.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupCheckbox.d.ts → RadioCards/RadioCardCheck/RadioCardCheck.d.ts} +6 -7
- package/dist/components/molecules/RadioCards/RadioCardCheck/RadioCardCheck.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupCheckbox.js → RadioCards/RadioCardCheck/RadioCardCheck.js} +4 -4
- package/dist/components/molecules/RadioCards/RadioCardCheck/RadioCardCheck.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconSimple.cjs → RadioCards/RadioCardIcon/RadioCardIcon.cjs} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardIcon/RadioCardIcon.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconSimple.d.ts → RadioCards/RadioCardIcon/RadioCardIcon.d.ts} +5 -6
- package/dist/components/molecules/RadioCards/RadioCardIcon/RadioCardIcon.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconSimple.js → RadioCards/RadioCardIcon/RadioCardIcon.js} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardIcon/RadioCardIcon.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconCard.cjs → RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.cjs} +5 -5
- package/dist/components/molecules/RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconCard.d.ts → RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.d.ts} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupIconCard.js → RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.js} +4 -4
- package/dist/components/molecules/RadioCards/RadioCardIconFeatured/RadioCardIconFeatured.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupPaymentIcon.cjs → RadioCards/RadioCardPayment/RadioCardPayment.cjs} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardPayment/RadioCardPayment.cjs.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupPaymentIcon.d.ts → RadioCards/RadioCardPayment/RadioCardPayment.d.ts} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardPayment/RadioCardPayment.d.ts.map +1 -0
- package/dist/components/molecules/{RadioGroup/components/RadioGroupPaymentIcon.js → RadioCards/RadioCardPayment/RadioCardPayment.js} +3 -3
- package/dist/components/molecules/RadioCards/RadioCardPayment/RadioCardPayment.js.map +1 -0
- package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.cjs.map +1 -1
- package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.d.ts.map +1 -1
- package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.js.map +1 -1
- package/dist/components/molecules/RadioCards/index.cjs +18 -0
- package/dist/components/molecules/RadioCards/index.cjs.map +1 -0
- package/dist/components/molecules/RadioCards/index.d.ts +23 -0
- package/dist/components/molecules/RadioCards/index.d.ts.map +1 -0
- package/dist/components/molecules/RadioCards/index.js +7 -0
- package/dist/components/molecules/RadioCards/index.js.map +1 -0
- package/dist/components/molecules/{RadioGroup/radioGroup.types.d.ts → RadioCards/radioCards.types.d.ts} +12 -10
- package/dist/components/molecules/RadioCards/radioCards.types.d.ts.map +1 -0
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.cjs +2 -7
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.cjs.map +1 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.d.ts +2 -7
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.d.ts.map +1 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.js +2 -7
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatar.js.map +1 -1
- package/dist/components/molecules/RadioGroup/index.cjs +26 -14
- package/dist/components/molecules/RadioGroup/index.cjs.map +1 -1
- package/dist/components/molecules/RadioGroup/index.d.ts +25 -8
- package/dist/components/molecules/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/molecules/RadioGroup/index.js +23 -7
- package/dist/components/molecules/RadioGroup/index.js.map +1 -1
- package/dist/components/molecules/Select/index.d.ts +1 -1
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.cjs +3 -3
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.cjs.map +1 -1
- package/dist/components/molecules/Selects/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/molecules/Selects/Select/Select.cjs +4 -4
- package/dist/components/molecules/Selects/Select/Select.cjs.map +1 -1
- package/dist/components/molecules/Selects/Select/Select.d.ts +1 -1
- package/dist/components/molecules/Selects/Select/Select.d.ts.map +1 -1
- package/dist/components/molecules/Selects/Select/Select.js +3 -3
- package/dist/components/molecules/Selects/Select/{Combobox.cjs → components/Combobox.cjs} +8 -8
- package/dist/components/molecules/Selects/Select/components/Combobox.cjs.map +1 -0
- package/dist/components/molecules/Selects/Select/{Combobox.d.ts → components/Combobox.d.ts} +1 -1
- package/dist/components/molecules/Selects/Select/components/Combobox.d.ts.map +1 -0
- package/dist/components/molecules/Selects/Select/{Combobox.js → components/Combobox.js} +6 -6
- package/dist/components/molecules/Selects/Select/components/Combobox.js.map +1 -0
- package/dist/components/molecules/Selects/Select/{Popover.cjs → components/Popover.cjs} +1 -1
- package/dist/components/molecules/Selects/Select/components/Popover.cjs.map +1 -0
- package/dist/components/molecules/Selects/Select/components/Popover.d.ts.map +1 -0
- package/dist/components/molecules/Selects/Select/{Popover.js → components/Popover.js} +1 -1
- package/dist/components/molecules/Selects/Select/components/Popover.js.map +1 -0
- package/dist/components/molecules/Tabs/index.cjs +2 -2
- package/dist/components/molecules/Tabs/index.cjs.map +1 -1
- package/dist/components/molecules/Tabs/index.js +1 -1
- package/dist/components/molecules/Tags/Tag/Tag.cjs +3 -3
- package/dist/components/molecules/Tags/Tag/Tag.js +3 -3
- package/dist/components/molecules/Tags/Tag/{TagAvatar.cjs → components/TagAvatar.cjs} +1 -1
- package/dist/components/molecules/Tags/Tag/components/TagAvatar.cjs.map +1 -0
- package/dist/components/molecules/Tags/Tag/components/TagAvatar.d.ts.map +1 -0
- package/dist/components/molecules/Tags/Tag/{TagAvatar.js → components/TagAvatar.js} +1 -1
- package/dist/components/molecules/Tags/Tag/components/TagAvatar.js.map +1 -0
- package/dist/components/molecules/Tags/Tag/{TagCheckbox.cjs → components/TagCheckbox.cjs} +1 -1
- package/dist/components/molecules/Tags/Tag/components/TagCheckbox.cjs.map +1 -0
- package/dist/components/molecules/Tags/Tag/{TagCheckbox.d.ts → components/TagCheckbox.d.ts} +1 -1
- package/dist/components/molecules/Tags/Tag/components/TagCheckbox.d.ts.map +1 -0
- package/dist/components/molecules/Tags/Tag/{TagCheckbox.js → components/TagCheckbox.js} +1 -1
- package/dist/components/molecules/Tags/Tag/components/TagCheckbox.js.map +1 -0
- package/dist/components/molecules/Tags/Tag/{TagCloseX.cjs → components/TagCloseX.cjs} +1 -1
- package/dist/components/molecules/Tags/Tag/components/TagCloseX.cjs.map +1 -0
- package/dist/components/molecules/Tags/Tag/{TagCloseX.d.ts → components/TagCloseX.d.ts} +1 -1
- package/dist/components/molecules/Tags/Tag/components/TagCloseX.d.ts.map +1 -0
- package/dist/components/molecules/Tags/Tag/{TagCloseX.js → components/TagCloseX.js} +1 -1
- package/dist/components/molecules/Tags/Tag/components/TagCloseX.js.map +1 -0
- package/dist/components/molecules/Tags/index.cjs +2 -2
- package/dist/components/molecules/Tags/index.d.ts +1 -1
- package/dist/components/molecules/Tags/index.d.ts.map +1 -1
- package/dist/components/molecules/Tags/index.js +1 -1
- package/dist/components/molecules/TextArea/index.cjs +5 -30
- package/dist/components/molecules/TextArea/index.cjs.map +1 -1
- package/dist/components/molecules/TextArea/index.d.ts +7 -47
- package/dist/components/molecules/TextArea/index.d.ts.map +1 -1
- package/dist/components/molecules/TextArea/index.js +5 -30
- package/dist/components/molecules/TextArea/index.js.map +1 -1
- package/dist/components/molecules/VerificationCodeInput/index.cjs +5 -89
- package/dist/components/molecules/VerificationCodeInput/index.cjs.map +1 -1
- package/dist/components/molecules/VerificationCodeInput/index.d.ts +9 -69
- package/dist/components/molecules/VerificationCodeInput/index.d.ts.map +1 -1
- package/dist/components/molecules/VerificationCodeInput/index.js +5 -89
- package/dist/components/molecules/VerificationCodeInput/index.js.map +1 -1
- package/dist/components/organisms/Calendar/components/CalendarHeader.cjs +2 -2
- package/dist/components/organisms/Calendar/components/CalendarHeader.cjs.map +1 -1
- package/dist/components/organisms/Calendar/components/CalendarHeader.js +1 -1
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.cjs +2 -2
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.cjs.map +1 -1
- package/dist/components/organisms/ColorPicker/components/ColorPickerField.js +1 -1
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs +3 -3
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.cjs.map +1 -1
- package/dist/components/organisms/DatePickers/DatePicker/DatePicker.js +2 -2
- package/dist/components/organisms/DatePickers/DatePicker/{Calendar.cjs → components/Calendar.cjs} +2 -2
- package/dist/components/organisms/DatePickers/DatePicker/components/Calendar.cjs.map +1 -0
- package/dist/components/organisms/DatePickers/DatePicker/components/Calendar.d.ts.map +1 -0
- package/dist/components/organisms/DatePickers/DatePicker/{Calendar.js → components/Calendar.js} +2 -2
- package/dist/components/organisms/DatePickers/DatePicker/components/Calendar.js.map +1 -0
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs +2 -2
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.cjs.map +1 -1
- package/dist/components/organisms/DatePickers/DateRangePicker/DateRangePicker.js +1 -1
- package/dist/components/organisms/DatePickers/components/InputDate.cjs +1 -1
- package/dist/components/organisms/DatePickers/components/InputDate.js +1 -1
- package/dist/components/organisms/HeaderNavigation/components/NavItem.cjs +2 -2
- package/dist/components/organisms/HeaderNavigation/components/NavItem.cjs.map +1 -1
- package/dist/components/organisms/HeaderNavigation/components/NavItem.js +1 -1
- package/dist/components/organisms/HeaderNavigation/index.cjs +2 -2
- package/dist/components/organisms/HeaderNavigation/index.cjs.map +1 -1
- package/dist/components/organisms/HeaderNavigation/index.js +1 -1
- package/dist/components/organisms/PageHeader/components/PageHeaderTabNav.cjs +2 -2
- package/dist/components/organisms/PageHeader/components/PageHeaderTabNav.cjs.map +1 -1
- package/dist/components/organisms/PageHeader/components/PageHeaderTabNav.js +1 -1
- package/dist/components/organisms/SidebarNavigation/components/NavItem.cjs +2 -2
- package/dist/components/organisms/SidebarNavigation/components/NavItem.cjs.map +1 -1
- package/dist/components/organisms/SidebarNavigation/components/NavItem.js +1 -1
- package/dist/components/organisms/Table/index.cjs +2 -2
- package/dist/components/organisms/Table/index.cjs.map +1 -1
- package/dist/components/organisms/Table/index.js +1 -1
- package/dist/components/organisms/TextEditor/components/TextEditorExtensions.cjs +2 -2
- package/dist/components/organisms/TextEditor/components/TextEditorExtensions.cjs.map +1 -1
- package/dist/components/organisms/TextEditor/components/TextEditorExtensions.js +1 -1
- package/dist/components/organisms/TextEditor/index.cjs +3 -3
- package/dist/components/organisms/TextEditor/index.cjs.map +1 -1
- package/dist/components/organisms/TextEditor/index.d.ts +1 -1
- package/dist/components/organisms/TextEditor/index.d.ts.map +1 -1
- package/dist/components/organisms/TextEditor/index.js +1 -1
- package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.cjs +35 -8
- package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.cjs.map +1 -1
- package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.d.ts +5 -5
- package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.d.ts.map +1 -1
- package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.js +36 -9
- package/dist/hooks/__internal__/useDebouncedSearch/useDebouncedSearch.js.map +1 -1
- package/dist/native/components/atoms/Badge/index.d.ts +20 -97
- package/dist/native/components/atoms/Badge/index.d.ts.map +1 -1
- package/dist/native/components/atoms/Badge/index.js +17 -62
- package/dist/native/components/atoms/Badge/index.js.map +1 -1
- package/dist/native/components/atoms/Badges/Badge/Badge.d.ts +98 -0
- package/dist/native/components/atoms/Badges/Badge/Badge.d.ts.map +1 -0
- package/dist/native/components/atoms/Badges/Badge/Badge.js +66 -0
- package/dist/native/components/atoms/Badges/Badge/Badge.js.map +1 -0
- package/dist/native/components/atoms/{Badge → Badges/Badge}/Badge.styles.d.ts +1 -1
- package/dist/native/components/atoms/Badges/Badge/Badge.styles.d.ts.map +1 -0
- package/dist/native/components/atoms/{Badge → Badges/Badge}/Badge.styles.js +1 -1
- package/dist/native/components/atoms/Badges/Badge/Badge.styles.js.map +1 -0
- package/dist/native/components/atoms/Badges/Badge/badge.types.d.ts.map +1 -0
- package/dist/native/components/atoms/Badges/Badge/badge.types.js.map +1 -0
- package/dist/native/components/atoms/{Badge → Badges/Badge/utilities}/badge.utils.d.ts +2 -2
- package/dist/native/components/atoms/Badges/Badge/utilities/badge.utils.d.ts.map +1 -0
- package/dist/native/components/atoms/{Badge → Badges/Badge/utilities}/badge.utils.js +1 -1
- package/dist/native/components/atoms/Badges/Badge/utilities/badge.utils.js.map +1 -0
- package/dist/native/components/atoms/Badges/index.d.ts +5 -0
- package/dist/native/components/atoms/Badges/index.d.ts.map +1 -0
- package/dist/native/components/atoms/Badges/index.js +2 -0
- package/dist/native/components/atoms/Badges/index.js.map +1 -0
- package/dist/native/components/atoms/Button/index.d.ts +14 -65
- package/dist/native/components/atoms/Button/index.d.ts.map +1 -1
- package/dist/native/components/atoms/Button/index.js +6 -145
- package/dist/native/components/atoms/Button/index.js.map +1 -1
- package/dist/native/components/atoms/Buttons/Button/Button.d.ts +66 -0
- package/dist/native/components/atoms/Buttons/Button/Button.d.ts.map +1 -0
- package/dist/native/components/atoms/Buttons/Button/Button.js +149 -0
- package/dist/native/components/atoms/Buttons/Button/Button.js.map +1 -0
- package/dist/native/components/atoms/{Button → Buttons/Button}/Button.styles.d.ts +1 -1
- package/dist/native/components/atoms/Buttons/Button/Button.styles.d.ts.map +1 -0
- package/dist/native/components/atoms/{Button → Buttons/Button}/Button.styles.js +1 -1
- package/dist/native/components/atoms/Buttons/Button/Button.styles.js.map +1 -0
- package/dist/native/components/atoms/Buttons/index.d.ts +4 -0
- package/dist/native/components/atoms/Buttons/index.d.ts.map +1 -0
- package/dist/native/components/atoms/Buttons/index.js +2 -0
- package/dist/native/components/atoms/Buttons/index.js.map +1 -0
- package/dist/native/components/atoms/Inputs/index.d.ts +12 -0
- package/dist/native/components/atoms/VerificationCodeInput/index.d.ts +12 -0
- package/dist/native/components/molecules/RadioCards/index.d.ts +12 -0
- package/package.json +1 -1
- package/dist/components/atoms/Badge/Badge.styles.cjs.map +0 -1
- package/dist/components/atoms/Badge/Badge.styles.d.ts.map +0 -1
- package/dist/components/atoms/Badge/Badge.styles.js.map +0 -1
- package/dist/components/atoms/Badge/badge.types.cjs.map +0 -1
- package/dist/components/atoms/Badge/badge.types.d.ts.map +0 -1
- package/dist/components/atoms/Badge/badge.types.js.map +0 -1
- package/dist/components/atoms/Badge/badge.utils.d.ts.map +0 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreBadgeLink.cjs.map +0 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreBadgeLink.d.ts.map +0 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreBadgeLink.js.map +0 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButtonsOutline.cjs.map +0 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButtonsOutline.d.ts.map +0 -1
- package/dist/components/atoms/BrandButtons/AppStoreButton/AppStoreButtonsOutline.js.map +0 -1
- package/dist/components/atoms/BrandButtons/SocialButton/SocialLogos.cjs.map +0 -1
- package/dist/components/atoms/BrandButtons/SocialButton/SocialLogos.d.ts.map +0 -1
- package/dist/components/atoms/BrandButtons/SocialButton/SocialLogos.js.map +0 -1
- package/dist/components/atoms/Button/Button.styles.d.ts.map +0 -1
- package/dist/components/atoms/Button/components/ButtonIcon.cjs.map +0 -1
- package/dist/components/atoms/Button/components/ButtonIcon.d.ts.map +0 -1
- package/dist/components/atoms/Button/components/ButtonIcon.js.map +0 -1
- package/dist/components/atoms/Button/components/ButtonSpinner.cjs.map +0 -1
- package/dist/components/atoms/Button/components/ButtonSpinner.d.ts.map +0 -1
- package/dist/components/atoms/Button/components/ButtonSpinner.js.map +0 -1
- package/dist/components/atoms/Checkboxes/Checkbox/CheckboxBase.cjs.map +0 -1
- package/dist/components/atoms/Checkboxes/Checkbox/CheckboxBase.d.ts.map +0 -1
- package/dist/components/atoms/Checkboxes/Checkbox/CheckboxBase.js.map +0 -1
- package/dist/components/atoms/Input/components/HintText.cjs.map +0 -1
- package/dist/components/atoms/Input/components/HintText.d.ts.map +0 -1
- package/dist/components/atoms/Input/components/HintText.js.map +0 -1
- package/dist/components/atoms/Input/components/Label.cjs.map +0 -1
- package/dist/components/atoms/Input/components/Label.d.ts.map +0 -1
- package/dist/components/atoms/Input/components/Label.js.map +0 -1
- package/dist/components/atoms/Radios/RadioButton/RadioButtonBase.cjs.map +0 -1
- package/dist/components/atoms/Radios/RadioButton/RadioButtonBase.d.ts.map +0 -1
- package/dist/components/atoms/Radios/RadioButton/RadioButtonBase.js.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.cjs +0 -39
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.d.ts +0 -32
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.js +0 -37
- package/dist/components/molecules/RadioGroup/components/RadioGroupAvatarCard.js.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupCheckbox.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupCheckbox.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupCheckbox.js.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconCard.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconCard.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconCard.js.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconSimple.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconSimple.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupIconSimple.js.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupPaymentIcon.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupPaymentIcon.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupPaymentIcon.js.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupRadioButton.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupRadioButton.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/components/RadioGroupRadioButton.js.map +0 -1
- package/dist/components/molecules/RadioGroup/hooks/useCommitOnPress.cjs.map +0 -1
- package/dist/components/molecules/RadioGroup/hooks/useCommitOnPress.d.ts.map +0 -1
- package/dist/components/molecules/RadioGroup/hooks/useCommitOnPress.js.map +0 -1
- package/dist/components/molecules/RadioGroup/radioGroup.types.d.ts.map +0 -1
- package/dist/components/molecules/Selects/Select/Combobox.cjs.map +0 -1
- package/dist/components/molecules/Selects/Select/Combobox.d.ts.map +0 -1
- package/dist/components/molecules/Selects/Select/Combobox.js.map +0 -1
- package/dist/components/molecules/Selects/Select/Popover.cjs.map +0 -1
- package/dist/components/molecules/Selects/Select/Popover.d.ts.map +0 -1
- package/dist/components/molecules/Selects/Select/Popover.js.map +0 -1
- package/dist/components/molecules/Tags/Tag/TagAvatar.cjs.map +0 -1
- package/dist/components/molecules/Tags/Tag/TagAvatar.d.ts.map +0 -1
- package/dist/components/molecules/Tags/Tag/TagAvatar.js.map +0 -1
- package/dist/components/molecules/Tags/Tag/TagCheckbox.cjs.map +0 -1
- package/dist/components/molecules/Tags/Tag/TagCheckbox.d.ts.map +0 -1
- package/dist/components/molecules/Tags/Tag/TagCheckbox.js.map +0 -1
- package/dist/components/molecules/Tags/Tag/TagCloseX.cjs.map +0 -1
- package/dist/components/molecules/Tags/Tag/TagCloseX.d.ts.map +0 -1
- package/dist/components/molecules/Tags/Tag/TagCloseX.js.map +0 -1
- package/dist/components/organisms/DatePickers/DatePicker/Calendar.cjs.map +0 -1
- package/dist/components/organisms/DatePickers/DatePicker/Calendar.d.ts.map +0 -1
- package/dist/components/organisms/DatePickers/DatePicker/Calendar.js.map +0 -1
- package/dist/native/components/atoms/Badge/Badge.styles.d.ts.map +0 -1
- package/dist/native/components/atoms/Badge/Badge.styles.js.map +0 -1
- package/dist/native/components/atoms/Badge/badge.types.d.ts.map +0 -1
- package/dist/native/components/atoms/Badge/badge.types.js.map +0 -1
- package/dist/native/components/atoms/Badge/badge.utils.d.ts.map +0 -1
- package/dist/native/components/atoms/Badge/badge.utils.js.map +0 -1
- package/dist/native/components/atoms/Button/Button.styles.d.ts.map +0 -1
- package/dist/native/components/atoms/Button/Button.styles.js.map +0 -1
- /package/dist/components/atoms/{Badge → Badges/Badge}/badge.types.cjs +0 -0
- /package/dist/components/atoms/{Badge → Badges/Badge}/badge.types.d.ts +0 -0
- /package/dist/components/atoms/{Badge → Badges/Badge}/badge.types.js +0 -0
- /package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreBadgeLink.cjs → components/AppStoreBadgeLink.cjs} +0 -0
- /package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreBadgeLink.d.ts → components/AppStoreBadgeLink.d.ts} +0 -0
- /package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreBadgeLink.js → components/AppStoreBadgeLink.js} +0 -0
- /package/dist/components/atoms/BrandButtons/AppStoreButton/{AppStoreButtonsOutline.d.ts → components/AppStoreButtonsOutline.d.ts} +0 -0
- /package/dist/components/atoms/BrandButtons/SocialButton/{SocialLogos.cjs → components/SocialLogos.cjs} +0 -0
- /package/dist/components/atoms/BrandButtons/SocialButton/{SocialLogos.d.ts → components/SocialLogos.d.ts} +0 -0
- /package/dist/components/atoms/BrandButtons/SocialButton/{SocialLogos.js → components/SocialLogos.js} +0 -0
- /package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonSpinner.cjs +0 -0
- /package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonSpinner.d.ts +0 -0
- /package/dist/components/atoms/{Button → Buttons/Button}/components/ButtonSpinner.js +0 -0
- /package/dist/components/atoms/Checkboxes/Checkbox/{CheckboxBase.cjs → components/CheckboxBase.cjs} +0 -0
- /package/dist/components/atoms/Checkboxes/Checkbox/{CheckboxBase.d.ts → components/CheckboxBase.d.ts} +0 -0
- /package/dist/components/atoms/Checkboxes/Checkbox/{CheckboxBase.js → components/CheckboxBase.js} +0 -0
- /package/dist/components/atoms/{Input → Inputs}/components/HintText.cjs +0 -0
- /package/dist/components/atoms/{Input → Inputs}/components/HintText.d.ts +0 -0
- /package/dist/components/atoms/{Input → Inputs}/components/HintText.js +0 -0
- /package/dist/components/atoms/{Input → Inputs}/components/Label.cjs +0 -0
- /package/dist/components/atoms/{Input → Inputs}/components/Label.d.ts +0 -0
- /package/dist/components/atoms/{Input → Inputs}/components/Label.js +0 -0
- /package/dist/components/atoms/Radios/RadioButton/{RadioButtonBase.cjs → components/RadioButtonBase.cjs} +0 -0
- /package/dist/components/atoms/Radios/RadioButton/{RadioButtonBase.d.ts → components/RadioButtonBase.d.ts} +0 -0
- /package/dist/components/atoms/Radios/RadioButton/{RadioButtonBase.js → components/RadioButtonBase.js} +0 -0
- /package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.cjs +0 -0
- /package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.d.ts +0 -0
- /package/dist/components/molecules/{RadioGroup → RadioCards}/hooks/useOptionIds.js +0 -0
- /package/dist/components/molecules/Selects/Select/{Popover.d.ts → components/Popover.d.ts} +0 -0
- /package/dist/components/molecules/Tags/Tag/{TagAvatar.d.ts → components/TagAvatar.d.ts} +0 -0
- /package/dist/components/organisms/DatePickers/DatePicker/{Calendar.d.ts → components/Calendar.d.ts} +0 -0
- /package/dist/native/components/atoms/{Badge → Badges/Badge}/badge.types.d.ts +0 -0
- /package/dist/native/components/atoms/{Badge → Badges/Badge}/badge.types.js +0 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { SearchLg, XClose } from '@flipdish/ui-icons';
|
|
3
|
+
import { LoadingIndicator } from '@flipdish/ui-library/components/atoms/LoadingIndicator';
|
|
4
|
+
import { sortCx, cx } from '@flipdish/ui-library/utilities/cx';
|
|
5
|
+
import { useResolvedTestId, joinTestId } from '@flipdish/ui-library/utilities/testIdUtils';
|
|
6
|
+
import { SearchField, Group, Input, Button } from 'react-aria-components';
|
|
7
|
+
import { useDebouncedSearch } from '../../../../hooks/__internal__/useDebouncedSearch/useDebouncedSearch.js';
|
|
8
|
+
import { useHotkeyHint } from '../../../../hooks/__internal__/useHotkeyHint/useHotkeyHint.js';
|
|
9
|
+
import { HintText } from '../components/HintText.js';
|
|
10
|
+
import { Label } from '../components/Label.js';
|
|
11
|
+
|
|
12
|
+
const sizes = sortCx({
|
|
13
|
+
sm: { input: 'py-2 pr-9 pl-9 text-sm', icon: 'left-3 size-4 stroke-[2.25px]', clear: 'right-2', shortcut: 'pr-1.5' },
|
|
14
|
+
md: { input: 'py-2 pr-9 pl-10 text-md', icon: 'left-3 size-5', clear: 'right-2', shortcut: 'pr-2' },
|
|
15
|
+
lg: { input: 'py-2.5 pr-9.5 pl-10.5 text-md', icon: 'left-3.5 size-5', clear: 'right-2.5', shortcut: 'pr-2.5' },
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* A search box with a magnifier, a clear button once it holds text, and Escape to clear. Use it
|
|
19
|
+
* wherever typing filters a list or table; for a field that collects a value, use `Input`.
|
|
20
|
+
*
|
|
21
|
+
* @summary search box that filters as you type and clears in one press
|
|
22
|
+
*/
|
|
23
|
+
const SearchInput = ({ label, hint, placeholder, size = 'md', clearLabel = 'Clear search', isLoading = false, debounce, shortcut, className, wrapperClassName, inputClassName, ref, 'data-testid': dataTestId, ...props }) => {
|
|
24
|
+
const inputTestId = useResolvedTestId({ testId: dataTestId, segment: 'search-input', rootName: 'search-input' });
|
|
25
|
+
const shortcutLabel = useHotkeyHint(shortcut === true ? 'mod+k' : shortcut || null);
|
|
26
|
+
const { value, defaultValue, onChange, onSubmit, onClear, onKeyDown, ...fieldProps } = props;
|
|
27
|
+
const draft = useDebouncedSearch({ value, initialValue: defaultValue, onChange: (next) => onChange?.(next), delay: debounce });
|
|
28
|
+
// The draft owns the text in both modes, so turning `debounce` on or off keeps the query; a controlled field without
|
|
29
|
+
// `debounce` shows its owner's value as given. The draft starts from `defaultValue`, so the field gets only `value`.
|
|
30
|
+
const fieldValue = debounce === undefined && value !== undefined ? value : draft.draft;
|
|
31
|
+
// React Aria cancels Enter's form submission whenever it has `onSubmit`, so the field gets one only when the caller passes one.
|
|
32
|
+
const handleSubmit = onSubmit &&
|
|
33
|
+
((next) => {
|
|
34
|
+
draft.submit();
|
|
35
|
+
onSubmit(next);
|
|
36
|
+
});
|
|
37
|
+
const handleKeyDown = (event) => {
|
|
38
|
+
if (event.key === 'Enter')
|
|
39
|
+
draft.submit();
|
|
40
|
+
onKeyDown?.(event);
|
|
41
|
+
};
|
|
42
|
+
const handleClear = () => {
|
|
43
|
+
draft.clear();
|
|
44
|
+
onClear?.();
|
|
45
|
+
};
|
|
46
|
+
return (jsx(SearchField, { "aria-label": label ? undefined : placeholder, ...fieldProps, value: fieldValue, onChange: draft.change, onSubmit: handleSubmit,
|
|
47
|
+
// Only when there can be a draft to commit: React Aria stops every key from bubbling past a handler, and a read-only field
|
|
48
|
+
// otherwise has none, so Escape still reaches an enclosing modal.
|
|
49
|
+
onKeyDown: debounce !== undefined && !fieldProps.isReadOnly ? handleKeyDown : onKeyDown, onClear: handleClear, className: cx('group/search flex h-max w-full flex-col items-start gap-1.5', className), children: ({ isInvalid, isDisabled }) => (jsxs(Fragment, { children: [label && jsx(Label, { isInvalid: isInvalid, children: label }), jsxs(Group, { isDisabled: isDisabled, isInvalid: isInvalid, className: ({ isFocusWithin }) => cx('relative flex w-full items-center rounded-lg bg-primary shadow-xs ring-1 ring-primary transition-shadow duration-100 ease-linear ring-inset', isFocusWithin && !isDisabled && 'ring-2 ring-brand', isDisabled && 'cursor-not-allowed opacity-50', isInvalid && 'ring-error_subtle', isInvalid && isFocusWithin && 'ring-2 ring-error', wrapperClassName), children: [isLoading ? (
|
|
50
|
+
// In the magnifier's slot, with its size classes, so the field does not shift; the input's `aria-busy` carries the state.
|
|
51
|
+
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
|
+
// The browser draws its own cancel control on a search input; the clear button below replaces it.
|
|
53
|
+
'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
|
+
SearchInput.displayName = 'SearchInput';
|
|
56
|
+
|
|
57
|
+
export { SearchInput };
|
|
58
|
+
//# sourceMappingURL=SearchInput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SearchInput.js","sources":["../../../../../src/components/atoms/Inputs/SearchInput/SearchInput.tsx"],"sourcesContent":[null],"names":["_jsx","AriaSearchField","_jsxs","_Fragment","AriaGroup","AriaInput","AriaButton"],"mappings":"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"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
|
+
var cx = require('@flipdish/ui-library/utilities/cx');
|
|
5
|
+
var testIdUtils = require('@flipdish/ui-library/utilities/testIdUtils');
|
|
6
|
+
var reactAriaComponents = require('react-aria-components');
|
|
7
|
+
var HintText = require('../components/HintText.cjs');
|
|
8
|
+
var Label = require('../components/Label.cjs');
|
|
9
|
+
|
|
10
|
+
// Creates a data URL for an SVG resize handle with a given color.
|
|
11
|
+
const getResizeHandleBg = (color) => {
|
|
12
|
+
return `url(data:image/svg+xml;base64,${btoa(`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 2L2 10" stroke="${color}" stroke-linecap="round"/><path d="M11 7L7 11" stroke="${color}" stroke-linecap="round"/></svg>`)})`;
|
|
13
|
+
};
|
|
14
|
+
/** Bare styled `<textarea>` with no label or hint; use it to compose a custom field, otherwise reach for `TextArea`. */
|
|
15
|
+
const TextAreaBase = ({ className, style, size = 'md', 'data-testid': dataTestId, ...props }) => {
|
|
16
|
+
const textAreaTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'text-area', rootName: 'text-area' });
|
|
17
|
+
const resizeHandle = {
|
|
18
|
+
'--resize-handle-bg': getResizeHandleBg('#D5D7DA'),
|
|
19
|
+
'--resize-handle-bg-dark': getResizeHandleBg('#373A41'),
|
|
20
|
+
};
|
|
21
|
+
return (jsxRuntime.jsx(reactAriaComponents.TextArea, { ...props, "data-testid": textAreaTestId,
|
|
22
|
+
// The caller's style is merged after the handle's variables, so it can still turn resizing off or restyle the field.
|
|
23
|
+
style: (state) => ({ ...resizeHandle, ...(typeof style === 'function' ? style(state) : style) }), className: (state) => cx.cx('w-full scroll-py-3 rounded-lg bg-primary text-primary shadow-xs ring-1 ring-primary transition duration-100 ease-linear ring-inset placeholder:text-placeholder autofill:rounded-lg autofill:text-primary focus:outline-hidden', size === 'sm' && 'p-3 text-sm', size === 'md' && 'px-3.5 py-3 text-md',
|
|
24
|
+
// Resize handle
|
|
25
|
+
'[&::-webkit-resizer]:bg-(image:--resize-handle-bg) [&::-webkit-resizer]:bg-contain dark:[&::-webkit-resizer]:bg-(image:--resize-handle-bg-dark)', state.isFocused && !state.isDisabled && 'ring-2 ring-brand', state.isDisabled && 'cursor-not-allowed opacity-50', state.isInvalid && 'ring-error_subtle', state.isInvalid && state.isFocused && 'ring-2 ring-error', typeof className === 'function' ? className(state) : className) }));
|
|
26
|
+
};
|
|
27
|
+
TextAreaBase.displayName = 'TextAreaBase';
|
|
28
|
+
/**
|
|
29
|
+
* A multi-line text field for collecting longer-form user input. Reach for it when the value can run to several lines,
|
|
30
|
+
* such as a description, a note or an address; for one line use `Input`.
|
|
31
|
+
*
|
|
32
|
+
* @summary multi-line text field for collecting longer-form user input
|
|
33
|
+
*/
|
|
34
|
+
const TextArea = ({ label, hint, tooltip, textAreaRef, hideRequiredIndicator, textAreaClassName, placeholder, className, rows, cols, size = 'md', 'data-testid': dataTestId, ...props }) => {
|
|
35
|
+
return (jsxRuntime.jsx(reactAriaComponents.TextField, { ...props, className: (state) => cx.cx('group flex h-max w-full flex-col items-start justify-start gap-1.5', typeof className === 'function' ? className(state) : className), children: ({ isInvalid, isRequired }) => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [label && (jsxRuntime.jsx(Label.Label, { isRequired: hideRequiredIndicator ? !hideRequiredIndicator : isRequired, tooltip: tooltip, children: label })), jsxRuntime.jsx(TextAreaBase, { placeholder: placeholder, className: textAreaClassName, ref: textAreaRef, rows: rows, cols: cols, size: size, "data-testid": dataTestId }), hint && (jsxRuntime.jsx(HintText.HintText, { isInvalid: isInvalid, size: size, children: hint }))] })) }));
|
|
36
|
+
};
|
|
37
|
+
TextArea.displayName = 'TextArea';
|
|
38
|
+
|
|
39
|
+
exports.TextArea = TextArea;
|
|
40
|
+
exports.TextAreaBase = TextAreaBase;
|
|
41
|
+
//# sourceMappingURL=TextArea.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.cjs","sources":["../../../../../src/components/atoms/Inputs/TextArea/TextArea.tsx"],"sourcesContent":[null],"names":["useResolvedTestId","_jsx","AriaTextArea","cx","AriaTextField","_jsxs","_Fragment","Label","HintText"],"mappings":"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"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
|
+
import type { TextAreaProps as AriaTextAreaProps, TextFieldProps as AriaTextFieldProps } from 'react-aria-components';
|
|
3
|
+
interface TextAreaBaseProps extends AriaTextAreaProps {
|
|
4
|
+
ref?: Ref<HTMLTextAreaElement>;
|
|
5
|
+
size?: 'sm' | 'md';
|
|
6
|
+
/** Overrides the `data-testid` applied to the underlying `<textarea>` (defaults to `fd-text-area`). */
|
|
7
|
+
'data-testid'?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Bare styled `<textarea>` with no label or hint; use it to compose a custom field, otherwise reach for `TextArea`. */
|
|
10
|
+
export declare const TextAreaBase: {
|
|
11
|
+
({ className, style, size, "data-testid": dataTestId, ...props }: TextAreaBaseProps): import("react").JSX.Element;
|
|
12
|
+
displayName: string;
|
|
13
|
+
};
|
|
14
|
+
export interface TextAreaProps extends AriaTextFieldProps {
|
|
15
|
+
/** Label text for the textarea */
|
|
16
|
+
label?: string;
|
|
17
|
+
/** Helper text displayed below the textarea */
|
|
18
|
+
hint?: ReactNode;
|
|
19
|
+
/** Tooltip message displayed after the label. */
|
|
20
|
+
tooltip?: string;
|
|
21
|
+
/** Textarea size. */
|
|
22
|
+
size?: TextAreaBaseProps['size'];
|
|
23
|
+
/** Class name for the textarea wrapper */
|
|
24
|
+
textAreaClassName?: TextAreaBaseProps['className'];
|
|
25
|
+
/** Ref for the textarea wrapper */
|
|
26
|
+
ref?: Ref<HTMLDivElement>;
|
|
27
|
+
/** Ref for the textarea */
|
|
28
|
+
textAreaRef?: TextAreaBaseProps['ref'];
|
|
29
|
+
/** Whether to hide required indicator from label. */
|
|
30
|
+
hideRequiredIndicator?: boolean;
|
|
31
|
+
/** Placeholder text. */
|
|
32
|
+
placeholder?: string;
|
|
33
|
+
/** Visible height of textarea in rows . */
|
|
34
|
+
rows?: number;
|
|
35
|
+
/** Visible width of textarea in columns. */
|
|
36
|
+
cols?: number;
|
|
37
|
+
/** Applied to the underlying `<textarea>` (not the wrapper). Defaults to `fd-text-area`. */
|
|
38
|
+
'data-testid'?: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* A multi-line text field for collecting longer-form user input. Reach for it when the value can run to several lines,
|
|
42
|
+
* such as a description, a note or an address; for one line use `Input`.
|
|
43
|
+
*
|
|
44
|
+
* @summary multi-line text field for collecting longer-form user input
|
|
45
|
+
*/
|
|
46
|
+
export declare const TextArea: {
|
|
47
|
+
({ label, hint, tooltip, textAreaRef, hideRequiredIndicator, textAreaClassName, placeholder, className, rows, cols, size, "data-testid": dataTestId, ...props }: TextAreaProps): import("react").JSX.Element;
|
|
48
|
+
displayName: string;
|
|
49
|
+
};
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=TextArea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/TextArea/TextArea.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAiB,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,KAAK,EAAE,aAAa,IAAI,iBAAiB,EAAE,cAAc,IAAI,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAUtH,UAAU,iBAAkB,SAAQ,iBAAiB;IACnD,GAAG,CAAC,EAAE,GAAG,CAAC,mBAAmB,CAAC,CAAC;IAC/B,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,uGAAuG;IACvG,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,wHAAwH;AACxH,eAAO,MAAM,YAAY;sEAA4E,iBAAiB;;CAiCrH,CAAC;AAIF,MAAM,WAAW,aAAc,SAAQ,kBAAkB;IACvD,kCAAkC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,iDAAiD;IACjD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qBAAqB;IACrB,IAAI,CAAC,EAAE,iBAAiB,CAAC,MAAM,CAAC,CAAC;IACjC,0CAA0C;IAC1C,iBAAiB,CAAC,EAAE,iBAAiB,CAAC,WAAW,CAAC,CAAC;IACnD,mCAAmC;IACnC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IAC1B,2BAA2B;IAC3B,WAAW,CAAC,EAAE,iBAAiB,CAAC,KAAK,CAAC,CAAC;IACvC,qDAAqD;IACrD,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2CAA2C;IAC3C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4CAA4C;IAC5C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,4FAA4F;IAC5F,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;;;;;GAKG;AACH,eAAO,MAAM,QAAQ;qKAclB,aAAa;;CAmCf,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
|
+
import { cx } from '@flipdish/ui-library/utilities/cx';
|
|
3
|
+
import { useResolvedTestId } from '@flipdish/ui-library/utilities/testIdUtils';
|
|
4
|
+
import { TextField, TextArea as TextArea$1 } from 'react-aria-components';
|
|
5
|
+
import { HintText } from '../components/HintText.js';
|
|
6
|
+
import { Label } from '../components/Label.js';
|
|
7
|
+
|
|
8
|
+
// Creates a data URL for an SVG resize handle with a given color.
|
|
9
|
+
const getResizeHandleBg = (color) => {
|
|
10
|
+
return `url(data:image/svg+xml;base64,${btoa(`<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10 2L2 10" stroke="${color}" stroke-linecap="round"/><path d="M11 7L7 11" stroke="${color}" stroke-linecap="round"/></svg>`)})`;
|
|
11
|
+
};
|
|
12
|
+
/** Bare styled `<textarea>` with no label or hint; use it to compose a custom field, otherwise reach for `TextArea`. */
|
|
13
|
+
const TextAreaBase = ({ className, style, size = 'md', 'data-testid': dataTestId, ...props }) => {
|
|
14
|
+
const textAreaTestId = useResolvedTestId({ testId: dataTestId, segment: 'text-area', rootName: 'text-area' });
|
|
15
|
+
const resizeHandle = {
|
|
16
|
+
'--resize-handle-bg': getResizeHandleBg('#D5D7DA'),
|
|
17
|
+
'--resize-handle-bg-dark': getResizeHandleBg('#373A41'),
|
|
18
|
+
};
|
|
19
|
+
return (jsx(TextArea$1, { ...props, "data-testid": textAreaTestId,
|
|
20
|
+
// The caller's style is merged after the handle's variables, so it can still turn resizing off or restyle the field.
|
|
21
|
+
style: (state) => ({ ...resizeHandle, ...(typeof style === 'function' ? style(state) : style) }), className: (state) => cx('w-full scroll-py-3 rounded-lg bg-primary text-primary shadow-xs ring-1 ring-primary transition duration-100 ease-linear ring-inset placeholder:text-placeholder autofill:rounded-lg autofill:text-primary focus:outline-hidden', size === 'sm' && 'p-3 text-sm', size === 'md' && 'px-3.5 py-3 text-md',
|
|
22
|
+
// Resize handle
|
|
23
|
+
'[&::-webkit-resizer]:bg-(image:--resize-handle-bg) [&::-webkit-resizer]:bg-contain dark:[&::-webkit-resizer]:bg-(image:--resize-handle-bg-dark)', state.isFocused && !state.isDisabled && 'ring-2 ring-brand', state.isDisabled && 'cursor-not-allowed opacity-50', state.isInvalid && 'ring-error_subtle', state.isInvalid && state.isFocused && 'ring-2 ring-error', typeof className === 'function' ? className(state) : className) }));
|
|
24
|
+
};
|
|
25
|
+
TextAreaBase.displayName = 'TextAreaBase';
|
|
26
|
+
/**
|
|
27
|
+
* A multi-line text field for collecting longer-form user input. Reach for it when the value can run to several lines,
|
|
28
|
+
* such as a description, a note or an address; for one line use `Input`.
|
|
29
|
+
*
|
|
30
|
+
* @summary multi-line text field for collecting longer-form user input
|
|
31
|
+
*/
|
|
32
|
+
const TextArea = ({ label, hint, tooltip, textAreaRef, hideRequiredIndicator, textAreaClassName, placeholder, className, rows, cols, size = 'md', 'data-testid': dataTestId, ...props }) => {
|
|
33
|
+
return (jsx(TextField, { ...props, className: (state) => cx('group flex h-max w-full flex-col items-start justify-start gap-1.5', typeof className === 'function' ? className(state) : className), children: ({ isInvalid, isRequired }) => (jsxs(Fragment, { children: [label && (jsx(Label, { isRequired: hideRequiredIndicator ? !hideRequiredIndicator : isRequired, tooltip: tooltip, children: label })), jsx(TextAreaBase, { placeholder: placeholder, className: textAreaClassName, ref: textAreaRef, rows: rows, cols: cols, size: size, "data-testid": dataTestId }), hint && (jsx(HintText, { isInvalid: isInvalid, size: size, children: hint }))] })) }));
|
|
34
|
+
};
|
|
35
|
+
TextArea.displayName = 'TextArea';
|
|
36
|
+
|
|
37
|
+
export { TextArea, TextAreaBase };
|
|
38
|
+
//# sourceMappingURL=TextArea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextArea.js","sources":["../../../../../src/components/atoms/Inputs/TextArea/TextArea.tsx"],"sourcesContent":[null],"names":["_jsx","AriaTextArea","AriaTextField","_jsxs","_Fragment"],"mappings":";;;;;;;AAUA;AACA,MAAM,iBAAiB,GAAG,CAAC,KAAa,KAAI;IAC1C,OAAO,CAAA,8BAAA,EAAiC,IAAI,CAAC,CAAA,4HAAA,EAA+H,KAAK,0DAA0D,KAAK,CAAA,gCAAA,CAAkC,CAAC,CAAA,CAAA,CAAG;AACxR,CAAC;AASD;MACa,YAAY,GAAG,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,IAAI,GAAG,IAAI,EAAE,aAAa,EAAE,UAAU,EAAE,GAAG,KAAK,EAAqB,KAAI;AACxH,IAAA,MAAM,cAAc,GAAG,iBAAiB,CAAC,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,CAAC;AAC7G,IAAA,MAAM,YAAY,GAAG;AACnB,QAAA,oBAAoB,EAAE,iBAAiB,CAAC,SAAS,CAAC;AAClD,QAAA,yBAAyB,EAAE,iBAAiB,CAAC,SAAS,CAAC;KACvC;AAElB,IAAA,QACEA,GAAA,CAACC,UAAY,EAAA,EAAA,GACP,KAAK,iBACI,cAAc;;QAE3B,KAAK,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,YAAY,EAAE,IAAI,OAAO,KAAK,KAAK,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,EAAE,CAAC,EAChG,SAAS,EAAE,CAAC,KAAK,KACf,EAAE,CACA,gOAAgO,EAEhO,IAAI,KAAK,IAAI,IAAI,aAAa,EAC9B,IAAI,KAAK,IAAI,IAAI,qBAAqB;;QAGtC,iJAAiJ,EAEjJ,KAAK,CAAC,SAAS,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,mBAAmB,EAC3D,KAAK,CAAC,UAAU,IAAI,+BAA+B,EACnD,KAAK,CAAC,SAAS,IAAI,mBAAmB,EACtC,KAAK,CAAC,SAAS,IAAI,KAAK,CAAC,SAAS,IAAI,mBAAmB,EAEzD,OAAO,SAAS,KAAK,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,SAAS,CAC/D,EAAA,CAEH;AAEN;AAEA,YAAY,CAAC,WAAW,GAAG,cAAc;AA6BzC;;;;;AAKG;AACI,MAAM,QAAQ,GAAG,CAAC,EACvB,KAAK,EACL,IAAI,EACJ,OAAO,EACP,WAAW,EACX,qBAAqB,EACrB,iBAAiB,EACjB,WAAW,EACX,SAAS,EACT,IAAI,EACJ,IAAI,EACJ,IAAI,GAAG,IAAI,EACX,aAAa,EAAE,UAAU,EACzB,GAAG,KAAK,EACM,KAAI;IAClB,QACED,GAAA,CAACE,SAAa,EAAA,EAAA,GACR,KAAK,EACT,SAAS,EAAE,CAAC,KAAK,KACf,EAAE,CAAC,oEAAoE,EAAE,OAAO,SAAS,KAAK,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,SAAS,CAAC,EAAA,QAAA,EAGzI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,MACzBC,IAAA,CAAAC,QAAA,EAAA,EAAA,QAAA,EAAA,CACG,KAAK,KACJJ,GAAA,CAAC,KAAK,EAAA,EAAC,UAAU,EAAE,qBAAqB,GAAG,CAAC,qBAAqB,GAAG,UAAU,EAAE,OAAO,EAAE,OAAO,EAAA,QAAA,EAC7F,KAAK,EAAA,CACA,CACT,EAEDA,GAAA,CAAC,YAAY,EAAA,EACX,WAAW,EAAE,WAAW,EACxB,SAAS,EAAE,iBAAiB,EAC5B,GAAG,EAAE,WAAW,EAChB,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EACV,IAAI,EAAE,IAAI,EAAA,aAAA,EACG,UAAU,EAAA,CACvB,EAED,IAAI,KACHA,GAAA,CAAC,QAAQ,EAAA,EAAC,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAA,QAAA,EACvC,IAAI,EAAA,CACI,CACZ,CAAA,EAAA,CACA,CACJ,EAAA,CACa;AAEpB;AAEA,QAAQ,CAAC,WAAW,GAAG,UAAU;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HintText.cjs","sources":["../../../../../src/components/atoms/Inputs/components/HintText.tsx"],"sourcesContent":[null],"names":["_jsx","AriaText","cx"],"mappings":";;;;;;AAeO,MAAM,QAAQ,GAAG,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,KAAK,EAAiB,KAAI;IACzF,QACEA,eAACC,wBAAQ,EAAA,EAAA,GACH,KAAK,EACT,IAAI,EAAE,SAAS,GAAG,cAAc,GAAG,aAAa,EAChD,SAAS,EAAEC,KAAE,CACX,uBAAuB;;AAGvB,QAAA,IAAI,KAAK,IAAI,IAAI,SAAS,EAC1B,iCAAiC;;QAGjC,SAAS,IAAI,oBAAoB,EACjC,kCAAkC,EAElC,SAAS,CACV,EAAA,CACD;AAEN;AAEA,QAAQ,CAAC,WAAW,GAAG,UAAU;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HintText.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/components/HintText.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,SAAS,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAGxE,UAAU,aAAc,SAAQ,aAAa;IAC3C,wDAAwD;IACxD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,GAAG,CAAC,EAAE,GAAG,CAAC,WAAW,CAAC,CAAC;IACvB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,QAAQ;+CAAqD,aAAa;;CAoBtF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HintText.js","sources":["../../../../../src/components/atoms/Inputs/components/HintText.tsx"],"sourcesContent":[null],"names":["_jsx","AriaText"],"mappings":";;;;AAeO,MAAM,QAAQ,GAAG,CAAC,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,GAAG,IAAI,EAAE,GAAG,KAAK,EAAiB,KAAI;IACzF,QACEA,IAACC,IAAQ,EAAA,EAAA,GACH,KAAK,EACT,IAAI,EAAE,SAAS,GAAG,cAAc,GAAG,aAAa,EAChD,SAAS,EAAE,EAAE,CACX,uBAAuB;;AAGvB,QAAA,IAAI,KAAK,IAAI,IAAI,SAAS,EAC1B,iCAAiC;;QAGjC,SAAS,IAAI,oBAAoB,EACjC,kCAAkC,EAElC,SAAS,CACV,EAAA,CACD;AAEN;AAEA,QAAQ,CAAC,WAAW,GAAG,UAAU;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.cjs","sources":["../../../../../src/components/atoms/Inputs/components/Label.tsx"],"sourcesContent":[null],"names":["_jsxs","AriaLabel","cx","_jsx","Tooltip","TooltipTrigger","HelpCircle"],"mappings":";;;;;;;;MAkBa,KAAK,GAAG,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,KAAK,EAAc,KAAI;IAC/G,QACEA,gBAACC;;;;;AAKY,MAAA,EAAA,YAAA,EAAA,MAAM,EAAA,GACb,KAAK,EACT,SAAS,EAAEC,KAAE,CAAC,6EAA6E,EAAE,SAAS,CAAC,EAAA,QAAA,EAAA,CAEtG,KAAK,CAAC,QAAQ,EAEfC,cAAA,CAAA,MAAA,EAAA,EACE,SAAS,EAAED,KAAE,CACX,4BAA4B,EAC5B,UAAU,IAAI,OAAO,EACrB,OAAO,UAAU,KAAK,WAAW,IAAI,sBAAsB,EAE3D,SAAS,IAAI,oBAAoB,EACjC,OAAO,SAAS,KAAK,WAAW,IAAI,kCAAkC,CACvE,EAAA,QAAA,EAAA,GAAA,EAAA,CAGI,EAEN,OAAO,KACNC,cAAA,CAACC,eAAO,EAAA,EAAC,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAC,KAAK,EAAA,QAAA,EACvED,eAACE;;;;;;;;AAIC,oBAAA,UAAU,EAAE,KAAK,EACjB,SAAS,EAAC,yHAAyH,YAEnIF,cAAA,CAACG,kBAAU,IAAC,SAAS,EAAC,QAAQ,EAAA,CAAG,EAAA,CAClB,GACT,CACX,CAAA,EAAA,CACS;AAEhB;AAEA,KAAK,CAAC,WAAW,GAAG,OAAO;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Inputs/components/Label.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,KAAK,EAAE,UAAU,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG1E,UAAU,UAAW,SAAQ,cAAc;IACzC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAAC;CAC7B;AAED,eAAO,MAAM,KAAK;kFAAiF,UAAU;;CAyC5G,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.js","sources":["../../../../../src/components/atoms/Inputs/components/Label.tsx"],"sourcesContent":[null],"names":["_jsxs","AriaLabel","_jsx"],"mappings":";;;;;;MAkBa,KAAK,GAAG,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,OAAO,EAAE,kBAAkB,EAAE,SAAS,EAAE,GAAG,KAAK,EAAc,KAAI;IAC/G,QACEA,KAACC;;;;;AAKY,MAAA,EAAA,YAAA,EAAA,MAAM,EAAA,GACb,KAAK,EACT,SAAS,EAAE,EAAE,CAAC,6EAA6E,EAAE,SAAS,CAAC,EAAA,QAAA,EAAA,CAEtG,KAAK,CAAC,QAAQ,EAEfC,GAAA,CAAA,MAAA,EAAA,EACE,SAAS,EAAE,EAAE,CACX,4BAA4B,EAC5B,UAAU,IAAI,OAAO,EACrB,OAAO,UAAU,KAAK,WAAW,IAAI,sBAAsB,EAE3D,SAAS,IAAI,oBAAoB,EACjC,OAAO,SAAS,KAAK,WAAW,IAAI,kCAAkC,CACvE,EAAA,QAAA,EAAA,GAAA,EAAA,CAGI,EAEN,OAAO,KACNA,GAAA,CAAC,OAAO,EAAA,EAAC,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,kBAAkB,EAAE,SAAS,EAAC,KAAK,EAAA,QAAA,EACvEA,IAAC;;;;;;;;AAIC,oBAAA,UAAU,EAAE,KAAK,EACjB,SAAS,EAAC,yHAAyH,YAEnIA,GAAA,CAAC,UAAU,IAAC,SAAS,EAAC,QAAQ,EAAA,CAAG,EAAA,CAClB,GACT,CACX,CAAA,EAAA,CACS;AAEhB;AAEA,KAAK,CAAC,WAAW,GAAG,OAAO;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var HintText = require('./components/HintText.cjs');
|
|
4
|
+
var Label = require('./components/Label.cjs');
|
|
5
|
+
var Input = require('./Input/Input.cjs');
|
|
6
|
+
var SearchInput = require('./SearchInput/SearchInput.cjs');
|
|
7
|
+
var TextArea = require('./TextArea/TextArea.cjs');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
exports.HintText = HintText.HintText;
|
|
12
|
+
exports.Label = Label.Label;
|
|
13
|
+
exports.Input = Input.Input;
|
|
14
|
+
exports.InputBase = Input.InputBase;
|
|
15
|
+
exports.TextField = Input.TextField;
|
|
16
|
+
exports.SearchInput = SearchInput.SearchInput;
|
|
17
|
+
exports.TextArea = TextArea.TextArea;
|
|
18
|
+
exports.TextAreaBase = TextArea.TextAreaBase;
|
|
19
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Fields the user types into: `Input` for one line (with `InputBase` and `TextField` for building a custom field),
|
|
3
|
+
* `SearchInput` for a box that filters as you type, `TextArea` for several lines (with `TextAreaBase`), and the `Label`
|
|
4
|
+
* and `HintText` every one of them renders.
|
|
5
|
+
*
|
|
6
|
+
* Explicit named re-exports on purpose: `export *` would publish every symbol of every member and private file
|
|
7
|
+
* (import paths are the public API here), so this list is the single source of truth for what Inputs exposes.
|
|
8
|
+
* Each member's implementation, stories and docs live in its own folder (`Input/Input.tsx`), never as
|
|
9
|
+
* `index.tsx`: the `exports` wildcard would make that folder a public path.
|
|
10
|
+
*/
|
|
11
|
+
export { HintText } from './components/HintText';
|
|
12
|
+
export { Label } from './components/Label';
|
|
13
|
+
export type { InputBaseProps, InputProps, TextFieldProps } from './Input/Input';
|
|
14
|
+
export { Input, InputBase, TextField } from './Input/Input';
|
|
15
|
+
export type { SearchInputProps } from './SearchInput/SearchInput';
|
|
16
|
+
export { SearchInput } from './SearchInput/SearchInput';
|
|
17
|
+
export type { TextAreaProps } from './TextArea/TextArea';
|
|
18
|
+
export { TextArea, TextAreaBase } from './TextArea/TextArea';
|
|
19
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Inputs/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAC3C,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC5D,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,YAAY,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { HintText } from './components/HintText.js';
|
|
2
|
+
export { Label } from './components/Label.js';
|
|
3
|
+
export { Input, InputBase, TextField } from './Input/Input.js';
|
|
4
|
+
export { SearchInput } from './SearchInput/SearchInput.js';
|
|
5
|
+
export { TextArea, TextAreaBase } from './TextArea/TextArea.js';
|
|
6
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -7,7 +7,7 @@ var React = require('react');
|
|
|
7
7
|
var reactAriaComponents = require('react-aria-components');
|
|
8
8
|
var selectionControl_styles = require('../../../__internal__/selectionControl/selectionControl.styles.cjs');
|
|
9
9
|
var RadioGroup_context = require('../providers/RadioGroup.context.cjs');
|
|
10
|
-
var RadioButtonBase = require('./RadioButtonBase.cjs');
|
|
10
|
+
var RadioButtonBase = require('./components/RadioButtonBase.cjs');
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Single-select option rendered inside a `RadioGroup`. Enforces mutual exclusivity
|
|
@@ -5,7 +5,7 @@ import { useContext } from 'react';
|
|
|
5
5
|
import { Radio } from 'react-aria-components';
|
|
6
6
|
import { selectionControlSizes } from '../../../__internal__/selectionControl/selectionControl.styles.js';
|
|
7
7
|
import { RadioGroupContext } from '../providers/RadioGroup.context.js';
|
|
8
|
-
import { RadioButtonBase } from './RadioButtonBase.js';
|
|
8
|
+
import { RadioButtonBase } from './components/RadioButtonBase.js';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Single-select option rendered inside a `RadioGroup`. Enforces mutual exclusivity
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioButtonBase.cjs","sources":["../../../../../../src/components/atoms/Radios/RadioButton/components/RadioButtonBase.tsx"],"sourcesContent":[null],"names":["_jsx","cx"],"mappings":";;;;;AAiBA;AACO,MAAM,eAAe,GAAG,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,GAAG,IAAI,EAAwB,KAAI;IAC1H,QACEA,cAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAEC,KAAE,CACX,wIAAwI,EACxI,IAAI,KAAK,IAAI,IAAI,QAAQ,EACzB,UAAU,IAAI,iCAAiC,EAC/C,UAAU,IAAI,+BAA+B,EAC7C,UAAU,IAAI,CAAC,UAAU,IAAI,aAAa,EAC1C,cAAc,IAAI,+CAA+C,EACjE,SAAS,CACV,EAAA,QAAA,EAEDD,cAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAEC,KAAE,CAAC,oEAAoE,EAAE,IAAI,KAAK,IAAI,IAAI,QAAQ,EAAE,UAAU,IAAI,aAAa,CAAC,EAAA,CAC3I,EAAA,CACE;AAEV;AACA,eAAe,CAAC,WAAW,GAAG,iBAAiB;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioButtonBase.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/Radios/RadioButton/components/RadioButtonBase.tsx"],"names":[],"mappings":"AAIA,MAAM,WAAW,oBAAoB;IACnC,wDAAwD;IACxD,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IACnB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uDAAuD;IACvD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,sEAAsE;IACtE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,sDAAsD;IACtD,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,uJAAuJ;AACvJ,eAAO,MAAM,eAAe;kEAAwE,oBAAoB;;CAkBvH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioButtonBase.js","sources":["../../../../../../src/components/atoms/Radios/RadioButton/components/RadioButtonBase.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;AAiBA;AACO,MAAM,eAAe,GAAG,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,IAAI,GAAG,IAAI,EAAwB,KAAI;IAC1H,QACEA,GAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,EAAE,CACX,wIAAwI,EACxI,IAAI,KAAK,IAAI,IAAI,QAAQ,EACzB,UAAU,IAAI,iCAAiC,EAC/C,UAAU,IAAI,+BAA+B,EAC7C,UAAU,IAAI,CAAC,UAAU,IAAI,aAAa,EAC1C,cAAc,IAAI,+CAA+C,EACjE,SAAS,CACV,EAAA,QAAA,EAEDA,GAAA,CAAA,KAAA,EAAA,EACE,SAAS,EAAE,EAAE,CAAC,oEAAoE,EAAE,IAAI,KAAK,IAAI,IAAI,QAAQ,EAAE,UAAU,IAAI,aAAa,CAAC,EAAA,CAC3I,EAAA,CACE;AAEV;AACA,eAAe,CAAC,WAAW,GAAG,iBAAiB;;"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var RadioButtonBase = require('./RadioButton/components/RadioButtonBase.cjs');
|
|
3
4
|
var RadioButton = require('./RadioButton/RadioButton.cjs');
|
|
4
|
-
var RadioButtonBase = require('./RadioButton/RadioButtonBase.cjs');
|
|
5
5
|
var RadioGroup = require('./RadioGroup/RadioGroup.cjs');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
exports.RadioButton = RadioButton.RadioButton;
|
|
10
9
|
exports.RadioButtonBase = RadioButtonBase.RadioButtonBase;
|
|
10
|
+
exports.RadioButton = RadioButton.RadioButton;
|
|
11
11
|
exports.RadioGroup = RadioGroup.RadioGroup;
|
|
12
12
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -7,10 +7,10 @@
|
|
|
7
7
|
* Each member's implementation, stories and docs live in its own folder (`RadioButton/RadioButton.tsx`), never as
|
|
8
8
|
* `index.tsx`: the `exports` wildcard would make that folder a public path.
|
|
9
9
|
*/
|
|
10
|
+
export type { RadioButtonBaseProps } from './RadioButton/components/RadioButtonBase';
|
|
11
|
+
export { RadioButtonBase } from './RadioButton/components/RadioButtonBase';
|
|
10
12
|
export type { RadioButtonProps } from './RadioButton/RadioButton';
|
|
11
13
|
export { RadioButton } from './RadioButton/RadioButton';
|
|
12
|
-
export type { RadioButtonBaseProps } from './RadioButton/RadioButtonBase';
|
|
13
|
-
export { RadioButtonBase } from './RadioButton/RadioButtonBase';
|
|
14
14
|
export type { RadioGroupProps } from './RadioGroup/RadioGroup';
|
|
15
15
|
export { RadioGroup } from './RadioGroup/RadioGroup';
|
|
16
16
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Radios/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Radios/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,YAAY,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AAC3E,YAAY,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAClE,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,YAAY,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
export { RadioButtonBase } from './RadioButton/components/RadioButtonBase.js';
|
|
1
2
|
export { RadioButton } from './RadioButton/RadioButton.js';
|
|
2
|
-
export { RadioButtonBase } from './RadioButton/RadioButtonBase.js';
|
|
3
3
|
export { RadioGroup } from './RadioGroup/RadioGroup.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,58 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var uiIcons = require('@flipdish/ui-icons');
|
|
5
|
-
var Input = require('@flipdish/ui-library/components/atoms/Input');
|
|
6
|
-
var LoadingIndicator = require('@flipdish/ui-library/components/atoms/LoadingIndicator');
|
|
7
|
-
var cx = require('@flipdish/ui-library/utilities/cx');
|
|
8
|
-
var testIdUtils = require('@flipdish/ui-library/utilities/testIdUtils');
|
|
9
|
-
var reactAriaComponents = require('react-aria-components');
|
|
10
|
-
var useDebouncedSearch = require('../../../hooks/__internal__/useDebouncedSearch/useDebouncedSearch.cjs');
|
|
11
|
-
var useHotkeyHint = require('../../../hooks/__internal__/useHotkeyHint/useHotkeyHint.cjs');
|
|
3
|
+
var Inputs = require('@flipdish/ui-library/components/atoms/Inputs');
|
|
12
4
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
md: { input: 'py-2 pr-9 pl-10 text-md', icon: 'left-3 size-5', clear: 'right-2', shortcut: 'pr-2' },
|
|
16
|
-
lg: { input: 'py-2.5 pr-9.5 pl-10.5 text-md', icon: 'left-3.5 size-5', clear: 'right-2.5', shortcut: 'pr-2.5' },
|
|
17
|
-
});
|
|
18
|
-
/**
|
|
19
|
-
* A search box with a magnifier, a clear button once it holds text, and Escape to clear. Use it
|
|
20
|
-
* wherever typing filters a list or table; for a field that collects a value, use `Input`.
|
|
21
|
-
*
|
|
22
|
-
* @summary search box that filters as you type and clears in one press
|
|
23
|
-
*/
|
|
24
|
-
const SearchInput = ({ label, hint, placeholder, size = 'md', clearLabel = 'Clear search', isLoading = false, debounce, shortcut, className, wrapperClassName, inputClassName, ref, 'data-testid': dataTestId, ...props }) => {
|
|
25
|
-
const inputTestId = testIdUtils.useResolvedTestId({ testId: dataTestId, segment: 'search-input', rootName: 'search-input' });
|
|
26
|
-
const shortcutLabel = useHotkeyHint.useHotkeyHint(shortcut === true ? 'mod+k' : shortcut || null);
|
|
27
|
-
const { onChange, onSubmit, onClear, defaultValue, ...fieldProps } = props;
|
|
28
|
-
const draft = useDebouncedSearch.useDebouncedSearch({
|
|
29
|
-
value: props.value ?? '',
|
|
30
|
-
initialValue: defaultValue,
|
|
31
|
-
onChange: (next) => onChange?.(next),
|
|
32
|
-
delay: debounce ?? 0,
|
|
33
|
-
});
|
|
34
|
-
// With `debounce` the field shows its draft and commits through the hook; without it the props reach the field untouched.
|
|
35
|
-
// The draft already starts from `defaultValue`, so the field gets only `value`, never both.
|
|
36
|
-
const debouncedProps = {
|
|
37
|
-
...fieldProps,
|
|
38
|
-
value: draft.draft,
|
|
39
|
-
onChange: draft.change,
|
|
40
|
-
onSubmit: (value) => {
|
|
41
|
-
draft.submit();
|
|
42
|
-
onSubmit?.(value);
|
|
43
|
-
},
|
|
44
|
-
onClear: () => {
|
|
45
|
-
draft.clear();
|
|
46
|
-
onClear?.();
|
|
47
|
-
},
|
|
48
|
-
};
|
|
49
|
-
return (jsxRuntime.jsx(reactAriaComponents.SearchField, { "aria-label": label ? undefined : placeholder, ...(debounce === undefined ? props : debouncedProps), className: cx.cx('group/search flex h-max w-full flex-col items-start gap-1.5', className), children: ({ isInvalid, isDisabled }) => (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [label && jsxRuntime.jsx(Input.Label, { isInvalid: isInvalid, children: label }), jsxRuntime.jsxs(reactAriaComponents.Group, { isDisabled: isDisabled, isInvalid: isInvalid, className: ({ isFocusWithin }) => cx.cx('relative flex w-full items-center rounded-lg bg-primary shadow-xs ring-1 ring-primary transition-shadow duration-100 ease-linear ring-inset', isFocusWithin && !isDisabled && 'ring-2 ring-brand', isDisabled && 'cursor-not-allowed opacity-50', isInvalid && 'ring-error_subtle', isInvalid && isFocusWithin && 'ring-2 ring-error', wrapperClassName), children: [isLoading ? (
|
|
50
|
-
// In the magnifier's slot, with its size classes, so the field does not shift; the input's `aria-busy` carries the state.
|
|
51
|
-
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(
|
|
52
|
-
// The browser draws its own cancel control on a search input; the clear button below replaces it.
|
|
53
|
-
'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(Input.HintText, { isInvalid: isInvalid, children: hint })] })) }));
|
|
54
|
-
};
|
|
55
|
-
SearchInput.displayName = 'SearchInput';
|
|
5
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
|
|
6
|
+
const SearchInput = Inputs.SearchInput;
|
|
56
7
|
|
|
57
8
|
exports.SearchInput = SearchInput;
|
|
58
9
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../src/components/atoms/SearchInput/index.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../src/components/atoms/SearchInput/index.tsx"],"sourcesContent":[null],"names":["SearchInputNext"],"mappings":";;;;AAMA;AACO,MAAM,WAAW,GAAGA;;"}
|
|
@@ -1,47 +1,9 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
3
|
-
export interface SearchInputProps extends Omit<AriaSearchFieldProps, 'children' | 'className' | 'style'> {
|
|
4
|
-
/** Visible label above the field. Without one, pass `aria-label`; the placeholder alone does not name the field once it holds a value. */
|
|
5
|
-
label?: string;
|
|
6
|
-
/** Helper text under the field. */
|
|
7
|
-
hint?: ReactNode;
|
|
8
|
-
/** Placeholder shown while the field is empty. */
|
|
9
|
-
placeholder?: string;
|
|
10
|
-
/** Height, padding and text size. */
|
|
11
|
-
size?: 'sm' | 'md' | 'lg';
|
|
12
|
-
/** Accessible name of the clear button. */
|
|
13
|
-
clearLabel?: string;
|
|
14
|
-
/** A search is running: a spinner takes the magnifier's place and the input is `aria-busy`, so results stay readable. */
|
|
15
|
-
isLoading?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Commits typing to `onChange` only once it pauses for this many milliseconds, with Enter and the clear button committing at
|
|
18
|
-
* once. The field keeps its own draft meanwhile; a `value` changed elsewhere, by Back or a reset, replaces the draft.
|
|
19
|
-
*/
|
|
20
|
-
debounce?: number;
|
|
21
|
-
/**
|
|
22
|
-
* Keyboard shortcut hint shown while the field is empty. `true` shows the search shortcut (⌘K on
|
|
23
|
-
* macOS, Ctrl K elsewhere); a shortcut such as `mod+j` is drawn for the user's platform.
|
|
24
|
-
*/
|
|
25
|
-
shortcut?: string | boolean;
|
|
26
|
-
/** Extra classes merged onto the outer field. */
|
|
27
|
-
className?: string;
|
|
28
|
-
/** Extra classes merged onto the bordered group around the input. */
|
|
29
|
-
wrapperClassName?: string;
|
|
30
|
-
/** Extra classes merged onto the `<input>`. */
|
|
31
|
-
inputClassName?: string;
|
|
32
|
-
/** Ref forwarded to the `<input>`. */
|
|
33
|
-
ref?: Ref<HTMLInputElement>;
|
|
34
|
-
/** Overrides the `<input>`'s `data-testid` (defaults to `fd-search-input`). The clear button derives `<root>--clear`. */
|
|
35
|
-
'data-testid'?: string;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* A search box with a magnifier, a clear button once it holds text, and Escape to clear. Use it
|
|
39
|
-
* wherever typing filters a list or table; for a field that collects a value, use `Input`.
|
|
40
|
-
*
|
|
41
|
-
* @summary search box that filters as you type and clears in one press
|
|
42
|
-
*/
|
|
1
|
+
import { type SearchInputProps as SearchInputPropsNext } from '@flipdish/ui-library/components/atoms/Inputs';
|
|
2
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
|
|
43
3
|
export declare const SearchInput: {
|
|
44
|
-
({ label, hint, placeholder, size, clearLabel, isLoading, debounce, shortcut, className, wrapperClassName, inputClassName, ref, "data-testid": dataTestId, ...props }:
|
|
4
|
+
({ label, hint, placeholder, size, clearLabel, isLoading, debounce, shortcut, className, wrapperClassName, inputClassName, ref, "data-testid": dataTestId, ...props }: SearchInputPropsNext): import("react").JSX.Element;
|
|
45
5
|
displayName: string;
|
|
46
6
|
};
|
|
7
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Inputs`. Removed in the next major. */
|
|
8
|
+
export type SearchInputProps = SearchInputPropsNext;
|
|
47
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/SearchInput/index.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/SearchInput/index.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAkC,KAAK,gBAAgB,IAAI,oBAAoB,EAAE,MAAM,8CAA8C,CAAC;AAE7I,yGAAyG;AACzG,eAAO,MAAM,WAAW;;;CAAkB,CAAC;AAC3C,yGAAyG;AACzG,MAAM,MAAM,gBAAgB,GAAG,oBAAoB,CAAC"}
|