@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,66 @@
|
|
|
1
|
+
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
+
import { X } from '@flipdish/ui-icons';
|
|
3
|
+
import { Dot } from '../../Dot/index.js';
|
|
4
|
+
import { cx } from '../../../../utilities/cx/index.js';
|
|
5
|
+
import { useResolvedTestId, joinTestId } from '../../../../utilities/testIdUtils/index.js';
|
|
6
|
+
import { useState } from 'react';
|
|
7
|
+
import { View, Pressable, Image, Text } from 'react-native';
|
|
8
|
+
import { styles } from './Badge.styles.js';
|
|
9
|
+
import { layoutClasses, resolveNativeTone } from './utilities/badge.utils.js';
|
|
10
|
+
|
|
11
|
+
/** Root classes shared by every labelled variant: shape, fill, border and the layout half of the size. */
|
|
12
|
+
const rootClass = (type, sizeClasses, tone, className) => cx(styles.native.common[type], 'border', tone.bg, tone.border, layoutClasses(sizeClasses), className);
|
|
13
|
+
const Label = ({ size, color, children }) => (jsx(Text, { style: { color, fontWeight: '500', ...styles.native.text[size] }, children: children }));
|
|
14
|
+
/**
|
|
15
|
+
* React Native `Badge` — a compact label for statuses, categories, counts and tags, drawn as a
|
|
16
|
+
* `View` holding a `Text`. All variants and sizes match web.
|
|
17
|
+
*
|
|
18
|
+
* - The ring becomes a `border` on every variant, since `ring-inset` is unverified under `react-native-css`.
|
|
19
|
+
* - Label and icon colours are light-mode hex values, not tokens: `Text` ignores `className` under the
|
|
20
|
+
* current `react-native-css` preview and an icon has no `currentColor` to inherit (see `Badge.styles.ts`).
|
|
21
|
+
* - `BadgeWithFlag` is not available yet because `Flag` has no React Native implementation.
|
|
22
|
+
* - `className` accepts layout classes only; transitions have no equivalent.
|
|
23
|
+
*
|
|
24
|
+
* @summary compact status, category, or count label (React Native)
|
|
25
|
+
*/
|
|
26
|
+
const Badge = ({ type = 'pill-color', size = 'md', color = 'gray', children, className, 'data-testid': dataTestId, }) => {
|
|
27
|
+
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
28
|
+
const tone = resolveNativeTone('standard', type, color);
|
|
29
|
+
return (jsx(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.label[type][size], tone, className), children: jsx(Label, { size: size, color: tone.text, children: children }) }));
|
|
30
|
+
};
|
|
31
|
+
/** `Badge` variant with a coloured status dot before the label. */
|
|
32
|
+
const BadgeWithDot = ({ size = 'md', color = 'gray', type = 'pill-color', className, children, 'data-testid': dataTestId, }) => {
|
|
33
|
+
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
34
|
+
const tone = resolveNativeTone('addon', type, color);
|
|
35
|
+
const dotColor = styles.types.addon[type].styles[color].dotColor;
|
|
36
|
+
return (jsxs(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.dot[type][size], tone, className), children: [jsx(Dot, { color: dotColor, size: "sm", "data-testid": joinTestId(badgeTestId, 'dot') }), jsx(Label, { size: size, color: tone.text, children: children })] }));
|
|
37
|
+
};
|
|
38
|
+
/** `Badge` variant with a leading or trailing icon beside the label. */
|
|
39
|
+
const BadgeWithIcon = ({ size = 'md', color = 'gray', type = 'pill-color', iconLeading: IconLeading, iconTrailing: IconTrailing, children, className, 'data-testid': dataTestId, }) => {
|
|
40
|
+
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
41
|
+
const tone = resolveNativeTone('addon', type, color);
|
|
42
|
+
const placement = IconLeading ? 'leading' : 'trailing';
|
|
43
|
+
const iconProps = { size: styles.native.iconSize, color: tone.addon, strokeWidth: styles.native.iconStrokeWidth };
|
|
44
|
+
return (jsxs(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.icon[type][size][placement], tone, className), children: [IconLeading && (jsx(View, { testID: joinTestId(badgeTestId, 'icon'), children: jsx(IconLeading, { ...iconProps }) })), jsx(Label, { size: size, color: tone.text, children: children }), IconTrailing && (jsx(View, { testID: joinTestId(badgeTestId, 'icon'), children: jsx(IconTrailing, { ...iconProps }) }))] }));
|
|
45
|
+
};
|
|
46
|
+
/** `Badge` variant with a small round image before the label. */
|
|
47
|
+
const BadgeWithImage = ({ size = 'md', color = 'gray', type = 'pill-color', imgSrc, children, }) => {
|
|
48
|
+
const tone = resolveNativeTone('standard', type, color);
|
|
49
|
+
const { imageSize } = styles.native;
|
|
50
|
+
return (jsxs(View, { className: rootClass(type, styles.sizes.media[type][size], tone), children: [jsx(Image, { source: { uri: imgSrc }, accessibilityLabel: "Badge image", style: { width: imageSize, height: imageSize, borderRadius: imageSize / 2 } }), jsx(Label, { size: size, color: tone.text, children: children })] }));
|
|
51
|
+
};
|
|
52
|
+
/** `Badge` variant with a trailing icon button, typically to dismiss or remove the tag. */
|
|
53
|
+
const BadgeWithButton = ({ size = 'md', color = 'gray', type = 'pill-color', icon: Icon = X, buttonLabel, onButtonClick, children, 'data-testid': dataTestId, }) => {
|
|
54
|
+
const badgeTestId = useResolvedTestId({ testId: dataTestId, segment: 'badge', rootName: 'badge' });
|
|
55
|
+
const [pressed, setPressed] = useState(false);
|
|
56
|
+
const tone = resolveNativeTone('standard', type, color);
|
|
57
|
+
return (jsxs(View, { testID: badgeTestId, className: rootClass(type, styles.sizes.button[type][size], tone), children: [jsx(Label, { size: size, color: tone.text, children: children }), jsx(Pressable, { testID: joinTestId(badgeTestId, 'close-button'), accessibilityRole: "button", accessibilityLabel: buttonLabel, onPress: onButtonClick, onPressIn: () => setPressed(true), onPressOut: () => setPressed(false), className: cx('items-center justify-center p-0.5', type === 'pill-color' ? 'rounded-full' : 'rounded-[3px]', pressed && tone.buttonPressedBg), children: jsx(Icon, { size: styles.native.iconSize, color: pressed ? tone.buttonPressed : tone.button, strokeWidth: styles.native.iconStrokeWidth }) })] }));
|
|
58
|
+
};
|
|
59
|
+
/** Icon-only `Badge` with no label text. */
|
|
60
|
+
const BadgeIcon = ({ size = 'md', color = 'gray', type = 'pill-color', icon: Icon, }) => {
|
|
61
|
+
const tone = resolveNativeTone('standard', type, color);
|
|
62
|
+
return (jsx(View, { className: cx(styles.native.common[type], 'border', tone.bg, tone.border, layoutClasses(styles.sizes.iconOnly[type][size])), children: jsx(Icon, { size: styles.native.iconSize, color: tone.addon, strokeWidth: styles.native.iconStrokeWidth }) }));
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
export { Badge, BadgeIcon, BadgeWithButton, BadgeWithDot, BadgeWithIcon, BadgeWithImage };
|
|
66
|
+
//# sourceMappingURL=Badge.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.js","sources":["../../../../../../../src/components/atoms/Badges/Badge/Badge.native.tsx"],"sourcesContent":[null],"names":["_jsx","_jsxs","CloseX"],"mappings":";;;;;;;;;;AA8BA;AACA,MAAM,SAAS,GAAG,CAAC,IAAgB,EAAE,WAAmB,EAAE,IAAoC,EAAE,SAAkB,KAChH,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAA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AAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAA,QAAA,EAC/HA,GAAA,CAAC,IAAI,EAAA,EAAC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,WAAW,EAAE,MAAM,CAAC,MAAM,CAAC,eAAe,EAAA,CAAI,EAAA,CAChG;AAEX;;"}
|
|
@@ -17,7 +17,7 @@ export type BadgeColorStyles = {
|
|
|
17
17
|
addonButton: string;
|
|
18
18
|
};
|
|
19
19
|
/**
|
|
20
|
-
* Shared `Badge` style config, read by `
|
|
20
|
+
* Shared `Badge` style config, read by both `Badge.tsx` and `Badge.native.tsx`.
|
|
21
21
|
*
|
|
22
22
|
* `types.standard` serves `Badge`, `BadgeWithFlag`, `BadgeWithImage`, `BadgeWithButton` and `BadgeIcon`:
|
|
23
23
|
* its `modern` type only offers `gray`, with the fill in `root`. `types.addon` serves `BadgeWithDot`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.styles.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/Badges/Badge/Badge.styles.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2CAA2C,CAAC;AAC1E,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAGpE,8GAA8G;AAC9G,MAAM,MAAM,UAAU,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,QAAQ,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC;AAuGxG;;;;;;;;;GASG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAuEf,kGAAkG;;;;;IA2BpG;;;;;;;OAOG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QAiID,4FAA4F;;;;;;;;;;QAW5F,8EAA8E;;QAE9E,gFAAgF;;QAEhF,kEAAkE;;QAElE,0EAA0E;;;;;;;;;;;;;;;;CAO7E,CAAC"}
|
|
@@ -87,7 +87,7 @@ const bySize = (pill, badge) => ({
|
|
|
87
87
|
[badgeTypes.badgeModern]: badge,
|
|
88
88
|
});
|
|
89
89
|
/**
|
|
90
|
-
* Shared `Badge` style config, read by `
|
|
90
|
+
* Shared `Badge` style config, read by both `Badge.tsx` and `Badge.native.tsx`.
|
|
91
91
|
*
|
|
92
92
|
* `types.standard` serves `Badge`, `BadgeWithFlag`, `BadgeWithImage`, `BadgeWithButton` and `BadgeIcon`:
|
|
93
93
|
* its `modern` type only offers `gray`, with the fill in `root`. `types.addon` serves `BadgeWithDot`
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Badge.styles.js","sources":["../../../../../../../src/components/atoms/Badges/Badge/Badge.styles.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAiBA,MAAM,YAAY,GAA0C;AAC1D,IAAA,IAAI,EAAE;AACJ,QAAA,IAAI,EAAE,yEAAyE;AAC/E,QAAA,KAAK,EAAE,0BAA0B;AACjC,QAAA,QAAQ,EAAE,qBAAqB;AAC/B,QAAA,WAAW,EAAE,sFAAsF;AACpG,KAAA;AACD,IAAA,KAAK,EAAE;AACL,QAAA,IAA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AAC,CAAC,CAAC;AAE9D,eAAO,MAAM,UAAU;;;;CAIb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,CAAC,OAAO,UAAU,CAAC,CAAC,MAAM,OAAO,UAAU,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.types.js","sources":["../../../../../../../src/components/atoms/Badges/Badge/badge.types.ts"],"sourcesContent":[null],"names":[],"mappings":"AAaO,MAAM,UAAU,GAAG;AACxB,IAAA,SAAS,EAAE,YAAY;AACvB,IAAA,UAAU,EAAE,OAAO;AACnB,IAAA,WAAW,EAAE,QAAQ;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type NativeTone } from '
|
|
2
|
-
import type { BadgeColors, BadgeTypes } from '
|
|
1
|
+
import { type NativeTone } from '../Badge.styles';
|
|
2
|
+
import type { BadgeColors, BadgeTypes } from '../badge.types';
|
|
3
3
|
/**
|
|
4
4
|
* Drops the typography utilities from a shared size string, leaving the padding, gap and radius a
|
|
5
5
|
* React Native `View` can resolve. The label's size and weight reach `Text` through `style` instead.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.utils.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/atoms/Badges/Badge/utilities/badge.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,UAAU,EAAU,MAAM,iBAAiB,CAAC;AAC1D,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAE9D;;;;;;GAMG;AACH,eAAO,MAAM,aAAa,GAAI,aAAa,MAAM,WAInC,CAAC;AAEf;;;;;;;;GAQG;AACH,eAAO,MAAM,iBAAiB,GAAI,MAAM,UAAU,GAAG,OAAO,EAAE,MAAM,UAAU,EAAE,OAAO,WAAW,KAAG,UAIpG,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"badge.utils.js","sources":["../../../../../../../../src/components/atoms/Badges/Badge/utilities/badge.utils.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA;;;;;;AAMG;MACU,aAAa,GAAG,CAAC,WAAmB,KAC/C;KACG,KAAK,CAAC,GAAG;KACT,MAAM,CAAC,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,UAAU,CAAC,OAAO,CAAC;KAC1E,IAAI,CAAC,GAAG;AAEb;;;;;;;;AAQG;AACI,MAAM,iBAAiB,GAAG,CAAC,IAA0B,EAAE,IAAgB,EAAE,KAAkB,KAAgB;IAChH,IAAI,IAAI,KAAK,QAAQ;QAAE,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;IACzD,IAAI,IAAI,KAAK,UAAU;AAAE,QAAA,OAAO,MAAM,CAAC,MAAM,CAAC,MAAM;IACpD,OAAO,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE;AAC9E;;"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** The React Native entry for Badges: explicit named re-exports on purpose, as in `index.tsx`. `BadgeWithFlag` and `BadgeGroup` are web-only. */
|
|
2
|
+
export type { BadgeColor, BadgeProps } from './Badge/Badge';
|
|
3
|
+
export { Badge, BadgeIcon, BadgeWithButton, BadgeWithDot, BadgeWithIcon, BadgeWithImage } from './Badge/Badge';
|
|
4
|
+
export type { BadgeColors } from './Badge/badge.types';
|
|
5
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Badges/index.native.tsx"],"names":[],"mappings":"AAAA,iJAAiJ;AAKjJ,YAAY,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtH,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,66 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
export type
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
isLoading?: boolean;
|
|
16
|
-
/** Shows a check in place of the button's icons, to confirm the action finished; `isLoading` takes precedence. */
|
|
17
|
-
isSuccess?: boolean;
|
|
18
|
-
/** The size variant of the button */
|
|
19
|
-
size?: ButtonSize;
|
|
20
|
-
/** The color variant of the button */
|
|
21
|
-
color?: ButtonColor;
|
|
22
|
-
/** Icon component or element to show before the text */
|
|
23
|
-
iconLeading?: IconProp;
|
|
24
|
-
/** Icon component or element to show after the text */
|
|
25
|
-
iconTrailing?: IconProp;
|
|
26
|
-
/** Removes horizontal padding from the text content */
|
|
27
|
-
noTextPadding?: boolean;
|
|
28
|
-
/** When true, keeps the text visible during loading state */
|
|
29
|
-
showTextWhileLoading?: boolean;
|
|
30
|
-
/** Overrides the generated `testID` (defaults to `fd-button`). */
|
|
31
|
-
'data-testid'?: string;
|
|
32
|
-
/**
|
|
33
|
-
* Web-style accessible name. Accepted as an alias of `accessibilityLabel` so shared
|
|
34
|
-
* stories (and cross-platform call sites) can pass `aria-label` on both platforms.
|
|
35
|
-
*/
|
|
36
|
-
'aria-label'?: string;
|
|
37
|
-
children?: ReactNode;
|
|
38
|
-
className?: string;
|
|
39
|
-
}
|
|
40
|
-
type PressBits = Pick<PressableProps, 'onPress' | 'hitSlop' | 'accessibilityLabel' | 'accessibilityHint'>;
|
|
41
|
-
/** Props for the button variant (non-link) */
|
|
42
|
-
export type ButtonProps = CommonProps & PressBits;
|
|
43
|
-
/** Props for the link variant — pass `href` to open a URL via `Linking.openURL` */
|
|
44
|
-
export type LinkProps = CommonProps & PressBits & {
|
|
45
|
-
href: string;
|
|
46
|
-
};
|
|
47
|
-
export type Props = ButtonProps | LinkProps;
|
|
48
|
-
/**
|
|
49
|
-
* React Native `Button` — mirrors the web prop surface (sizes, colors, icons, loading,
|
|
50
|
-
* `href`) with platform adaptations:
|
|
51
|
-
*
|
|
52
|
-
* - `Pressable` instead of react-aria-components `Button` / `Link`
|
|
53
|
-
* - pressed styles instead of `hover:`
|
|
54
|
-
* - `ActivityIndicator` instead of the web SVG spinner
|
|
55
|
-
* - `href` opens via `Linking.openURL` (disabled/loading skips navigation)
|
|
56
|
-
* - no `before:` inset border gradient; no InputGroup nesting selectors
|
|
57
|
-
* - label colour/size via `style` on `Text` (NativeWind Text `className` bug — see Avatar)
|
|
58
|
-
*
|
|
59
|
-
* @summary action trigger or URL control (React Native)
|
|
60
|
-
*/
|
|
61
|
-
export declare const Button: {
|
|
62
|
-
(props: LinkProps): ReactElement;
|
|
63
|
-
(props: ButtonProps): ReactElement;
|
|
64
|
-
};
|
|
65
|
-
export {};
|
|
1
|
+
import { Button as ButtonNext, type ButtonProps as ButtonPropsNext } from '@flipdish/ui-library/components/atoms/Buttons';
|
|
2
|
+
import type { ButtonColor as ButtonColorNext, ButtonSize as ButtonSizeNext, LinkProps as LinkPropsNext, Props as PropsNext } from '../Buttons/Button/Button';
|
|
3
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Buttons`. Removed in the next major. */
|
|
4
|
+
export declare const Button: typeof ButtonNext;
|
|
5
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Buttons`. Removed in the next major. */
|
|
6
|
+
export type ButtonProps = ButtonPropsNext;
|
|
7
|
+
/** @deprecated Not exported from `@flipdish/ui-library/components/atoms/Buttons`. Removed in the next major. */
|
|
8
|
+
export type LinkProps = LinkPropsNext;
|
|
9
|
+
/** @deprecated Not exported from `@flipdish/ui-library/components/atoms/Buttons`. Removed in the next major. */
|
|
10
|
+
export type Props = PropsNext;
|
|
11
|
+
/** @deprecated Not exported from `@flipdish/ui-library/components/atoms/Buttons`. Removed in the next major. */
|
|
12
|
+
export type ButtonSize = ButtonSizeNext;
|
|
13
|
+
/** @deprecated Not exported from `@flipdish/ui-library/components/atoms/Buttons`. Removed in the next major. */
|
|
14
|
+
export type ButtonColor = ButtonColorNext;
|
|
66
15
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Button/index.native.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/atoms/Button/index.native.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,MAAM,IAAI,UAAU,EAAE,KAAK,WAAW,IAAI,eAAe,EAAE,MAAM,+CAA+C,CAAC;AAE1H,OAAO,KAAK,EACV,WAAW,IAAI,eAAe,EAC9B,UAAU,IAAI,cAAc,EAC5B,SAAS,IAAI,aAAa,EAC1B,KAAK,IAAI,SAAS,EACnB,MAAM,iCAAiC,CAAC;AAEzC,0GAA0G;AAC1G,eAAO,MAAM,MAAM,EAAE,OAAO,UAAuB,CAAC;AACpD,0GAA0G;AAC1G,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC;AAC1C,gHAAgH;AAChH,MAAM,MAAM,SAAS,GAAG,aAAa,CAAC;AACtC,gHAAgH;AAChH,MAAM,MAAM,KAAK,GAAG,SAAS,CAAC;AAC9B,gHAAgH;AAChH,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC;AACxC,gHAAgH;AAChH,MAAM,MAAM,WAAW,GAAG,eAAe,CAAC"}
|
|
@@ -1,149 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Check } from '@flipdish/ui-icons';
|
|
3
|
-
import { cx } from '../../../utilities/cx/index.js';
|
|
4
|
-
import { useResolvedTestId } from '../../../utilities/testIdUtils/index.js';
|
|
5
|
-
import { useState, isValidElement } from 'react';
|
|
6
|
-
import { Pressable, View, ActivityIndicator, Text, Linking } from 'react-native';
|
|
7
|
-
import { isReactComponent } from '../../../utilities/__internal__/componentGuardUtils/componentGuard.utils.js';
|
|
8
|
-
import { styles } from './Button.styles.js';
|
|
1
|
+
import { Button as Button$1 } from '../Buttons/Button/Button.js';
|
|
9
2
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const ICON_PIXEL_SIZE = {
|
|
16
|
-
xs: 16,
|
|
17
|
-
sm: 20,
|
|
18
|
-
md: 20,
|
|
19
|
-
lg: 20,
|
|
20
|
-
xl: 20,
|
|
21
|
-
};
|
|
22
|
-
/**
|
|
23
|
-
* Label typography via plain `style` rather than `className` on `Text`.
|
|
24
|
-
*
|
|
25
|
-
* Same workaround as Avatar: `className` on `Text` silently fails under the current
|
|
26
|
-
* `react-native-css` preview, while `style` works. Mirrors web `text-sm` (xs–md) /
|
|
27
|
-
* `text-md` (lg–xl) + `font-semibold`. Revisit once upstream Text className works.
|
|
28
|
-
*/
|
|
29
|
-
const LABEL_TEXT_SIZE = {
|
|
30
|
-
xs: { fontSize: 14, lineHeight: 20 },
|
|
31
|
-
sm: { fontSize: 14, lineHeight: 20 },
|
|
32
|
-
md: { fontSize: 14, lineHeight: 20 },
|
|
33
|
-
lg: { fontSize: 16, lineHeight: 24 },
|
|
34
|
-
xl: { fontSize: 16, lineHeight: 24 },
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* Light-mode hex approximations of semantic text tokens for the Text `style` workaround.
|
|
38
|
-
* Hardcoded like Avatar — className can't resolve tokens on Text yet, and the consuming
|
|
39
|
-
* app does not support dark mode elsewhere yet.
|
|
40
|
-
*/
|
|
41
|
-
const LABEL_TEXT_COLOR = {
|
|
42
|
-
primary: '#ffffff',
|
|
43
|
-
secondary: '#404040', // text-secondary → neutral-700
|
|
44
|
-
tertiary: '#525252', // text-tertiary → neutral-600
|
|
45
|
-
'link-color': '#085eb1', // text-brand-secondary → brand-700
|
|
46
|
-
'link-gray': '#525252', // text-tertiary
|
|
47
|
-
'primary-destructive': '#ffffff',
|
|
48
|
-
'secondary-destructive': '#dc2626', // text-error-primary → red-600
|
|
49
|
-
'tertiary-destructive': '#dc2626',
|
|
50
|
-
'link-destructive': '#dc2626',
|
|
51
|
-
};
|
|
52
|
-
const LABEL_TEXT_COLOR_PRESSED = {
|
|
53
|
-
secondary: '#262626', // text-secondary_hover → neutral-800
|
|
54
|
-
tertiary: '#404040', // text-tertiary_hover → neutral-700
|
|
55
|
-
'link-color': '#074c8f', // text-brand-secondary_hover → brand-800
|
|
56
|
-
'link-gray': '#404040',
|
|
57
|
-
'secondary-destructive': '#b91c1c', // text-error-primary_hover → red-700
|
|
58
|
-
'tertiary-destructive': '#b91c1c',
|
|
59
|
-
'link-destructive': '#b91c1c',
|
|
60
|
-
};
|
|
61
|
-
/** Icon tint — mirrors web `*:data-icon:text-…` (light-mode hex). */
|
|
62
|
-
const ICON_COLOR = {
|
|
63
|
-
primary: 'rgba(255,255,255,0.6)',
|
|
64
|
-
secondary: '#a3a3a3', // fg-quaternary → neutral-400
|
|
65
|
-
tertiary: '#a3a3a3',
|
|
66
|
-
'link-color': '#1c8bf3', // fg-brand-secondary → brand-500
|
|
67
|
-
'link-gray': '#a3a3a3',
|
|
68
|
-
'primary-destructive': 'rgba(255,255,255,0.6)',
|
|
69
|
-
'secondary-destructive': '#f04438', // approximate fg-error-secondary
|
|
70
|
-
'tertiary-destructive': '#f04438',
|
|
71
|
-
'link-destructive': '#f04438',
|
|
72
|
-
};
|
|
73
|
-
const ICON_COLOR_PRESSED = {
|
|
74
|
-
primary: 'rgba(255,255,255,0.7)',
|
|
75
|
-
secondary: '#737373', // fg-quaternary_hover → neutral-500
|
|
76
|
-
tertiary: '#737373',
|
|
77
|
-
'link-color': '#0b75d7', // fg-brand-secondary_hover → brand-600
|
|
78
|
-
'link-gray': '#737373',
|
|
79
|
-
'primary-destructive': 'rgba(255,255,255,0.7)',
|
|
80
|
-
'secondary-destructive': '#d92d20',
|
|
81
|
-
'tertiary-destructive': '#d92d20',
|
|
82
|
-
'link-destructive': '#d92d20',
|
|
83
|
-
};
|
|
84
|
-
const renderIcon = (icon, size, color, className) => {
|
|
85
|
-
if (isValidElement(icon))
|
|
86
|
-
return icon;
|
|
87
|
-
if (isReactComponent(icon)) {
|
|
88
|
-
const Icon = icon;
|
|
89
|
-
return jsx(Icon, { className: className, size: ICON_PIXEL_SIZE[size], color: color });
|
|
90
|
-
}
|
|
91
|
-
return null;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* React Native `Button` — mirrors the web prop surface (sizes, colors, icons, loading,
|
|
95
|
-
* `href`) with platform adaptations:
|
|
96
|
-
*
|
|
97
|
-
* - `Pressable` instead of react-aria-components `Button` / `Link`
|
|
98
|
-
* - pressed styles instead of `hover:`
|
|
99
|
-
* - `ActivityIndicator` instead of the web SVG spinner
|
|
100
|
-
* - `href` opens via `Linking.openURL` (disabled/loading skips navigation)
|
|
101
|
-
* - no `before:` inset border gradient; no InputGroup nesting selectors
|
|
102
|
-
* - label colour/size via `style` on `Text` (NativeWind Text `className` bug — see Avatar)
|
|
103
|
-
*
|
|
104
|
-
* @summary action trigger or URL control (React Native)
|
|
105
|
-
*/
|
|
106
|
-
const Button = ({ size = 'sm', color = 'primary', children, className, noTextPadding: noTextPaddingProp, iconLeading: IconLeading, iconTrailing: IconTrailing, isDisabled, isLoading, isSuccess, showTextWhileLoading, 'data-testid': dataTestId, 'aria-label': ariaLabel, onPress, hitSlop, accessibilityLabel, accessibilityHint, ...props }) => {
|
|
107
|
-
const href = 'href' in props ? props.href : undefined;
|
|
108
|
-
const resolvedAccessibilityLabel = accessibilityLabel ?? ariaLabel;
|
|
109
|
-
const buttonTestId = useResolvedTestId({ testId: dataTestId, segment: 'button', rootName: 'button' });
|
|
110
|
-
const [pressed, setPressed] = useState(false);
|
|
111
|
-
const hasChildren = children !== null && children !== undefined;
|
|
112
|
-
const isIcon = Boolean((IconLeading || IconTrailing) && !hasChildren);
|
|
113
|
-
const isLinkType = LINK_COLORS.includes(color);
|
|
114
|
-
const noTextPadding = isLinkType || noTextPaddingProp;
|
|
115
|
-
const disabled = Boolean(isDisabled || isLoading);
|
|
116
|
-
const iconColor = (pressed && ICON_COLOR_PRESSED[color]) || ICON_COLOR[color];
|
|
117
|
-
const labelColor = (pressed && LABEL_TEXT_COLOR_PRESSED[color]) || LABEL_TEXT_COLOR[color];
|
|
118
|
-
// Match web: hide non-spinner content with opacity-0 (keeps layout + a11y name) unless
|
|
119
|
-
// showTextWhileLoading — then only icons are omitted and the label stays visible.
|
|
120
|
-
const dimNonSpinner = Boolean(isLoading && !showTextWhileLoading);
|
|
121
|
-
const omitIconsWhileLoading = Boolean(isLoading && showTextWhileLoading);
|
|
122
|
-
const handlePress = (event) => {
|
|
123
|
-
if (disabled)
|
|
124
|
-
return;
|
|
125
|
-
onPress?.(event);
|
|
126
|
-
if (href) {
|
|
127
|
-
// `openURL` rejects when no app can handle the URL — swallow it so it doesn't
|
|
128
|
-
// surface as an unhandled promise rejection (no established error path to route to).
|
|
129
|
-
Linking.openURL(href).catch(() => { });
|
|
130
|
-
}
|
|
131
|
-
};
|
|
132
|
-
const showSuccess = Boolean(isSuccess && !isLoading);
|
|
133
|
-
const leadingIcon = !omitIconsWhileLoading ? renderIcon(showSuccess ? Check : IconLeading, size, iconColor, styles.common.icon) : null;
|
|
134
|
-
const trailingIcon = !omitIconsWhileLoading && !showSuccess ? renderIcon(IconTrailing, size, iconColor, styles.common.icon) : null;
|
|
135
|
-
return (jsxs(Pressable, { testID: buttonTestId, disabled: disabled, onPress: handlePress, onPressIn: () => setPressed(true), onPressOut: () => setPressed(false), hitSlop: hitSlop, accessibilityRole: href ? 'link' : 'button', accessibilityLabel: resolvedAccessibilityLabel, accessibilityHint: accessibilityHint, accessibilityState: { disabled, busy: Boolean(isLoading) }, className: cx(styles.common.root, isLinkType ? styles.sizes[size].linkRoot : styles.sizes[size].root,
|
|
136
|
-
// Merged (not swapped) so icon-only keeps `rounded-lg`/`gap-*` from `root` —
|
|
137
|
-
// `cx` (tailwind-merge) resolves the padding conflict, keeping this override.
|
|
138
|
-
isIcon && !isLinkType && styles.sizes[size].iconOnly, styles.colors[color].root, pressed && !disabled && styles.colors[color].pressed, isLoading && styles.colors[color].loading, disabled && 'opacity-50', className), children: [leadingIcon ? jsx(View, { style: dimNonSpinner ? { opacity: 0 } : undefined, children: leadingIcon }) : null, isLoading && (jsx(View, { className: cx(styles.common.icon, dimNonSpinner && 'absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2'), children: jsx(ActivityIndicator, { size: "small", color: labelColor }) })), hasChildren && (jsx(Text, { style: {
|
|
139
|
-
color: labelColor,
|
|
140
|
-
fontWeight: '600',
|
|
141
|
-
...LABEL_TEXT_SIZE[size],
|
|
142
|
-
...(dimNonSpinner ? { opacity: 0 } : null),
|
|
143
|
-
...(isLinkType ? { textDecorationLine: 'underline' } : null),
|
|
144
|
-
...(!noTextPadding ? { paddingHorizontal: 2 } : null),
|
|
145
|
-
}, children: children })), trailingIcon ? jsx(View, { style: dimNonSpinner ? { opacity: 0 } : undefined, children: trailingIcon }) : null] }));
|
|
146
|
-
};
|
|
3
|
+
// Deprecated path, kept so existing imports keep working until the next major: `Button` now lives in `atoms/Buttons`.
|
|
4
|
+
// A re-export file is banned elsewhere; this one is a temporary deprecation path, and without it this path would
|
|
5
|
+
// resolve to the "not available on React Native" stub.
|
|
6
|
+
/** @deprecated Import from `@flipdish/ui-library/components/atoms/Buttons`. Removed in the next major. */
|
|
7
|
+
const Button = Button$1;
|
|
147
8
|
|
|
148
9
|
export { Button };
|
|
149
10
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../src/components/atoms/Button/index.native.tsx"],"sourcesContent":[null],"names":["
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/components/atoms/Button/index.native.tsx"],"sourcesContent":[null],"names":["ButtonNext"],"mappings":";;AAAA;AACA;AACA;AAUA;AACO,MAAM,MAAM,GAAsBA;;"}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type FC, type ReactElement, type ReactNode } from 'react';
|
|
2
|
+
import { type PressableProps } from 'react-native';
|
|
3
|
+
import { styles } from './Button.styles';
|
|
4
|
+
type IconProp = FC<{
|
|
5
|
+
className?: string;
|
|
6
|
+
size?: number;
|
|
7
|
+
color?: string;
|
|
8
|
+
}> | ReactNode;
|
|
9
|
+
export type ButtonSize = keyof typeof styles.sizes;
|
|
10
|
+
export type ButtonColor = keyof typeof styles.colors;
|
|
11
|
+
interface CommonProps {
|
|
12
|
+
/** Disables the button and shows a disabled state */
|
|
13
|
+
isDisabled?: boolean;
|
|
14
|
+
/** Shows a loading spinner and disables the button */
|
|
15
|
+
isLoading?: boolean;
|
|
16
|
+
/** Shows a check in place of the button's icons, to confirm the action finished; `isLoading` takes precedence. */
|
|
17
|
+
isSuccess?: boolean;
|
|
18
|
+
/** The size variant of the button */
|
|
19
|
+
size?: ButtonSize;
|
|
20
|
+
/** The color variant of the button */
|
|
21
|
+
color?: ButtonColor;
|
|
22
|
+
/** Icon component or element to show before the text */
|
|
23
|
+
iconLeading?: IconProp;
|
|
24
|
+
/** Icon component or element to show after the text */
|
|
25
|
+
iconTrailing?: IconProp;
|
|
26
|
+
/** Removes horizontal padding from the text content */
|
|
27
|
+
noTextPadding?: boolean;
|
|
28
|
+
/** When true, keeps the text visible during loading state */
|
|
29
|
+
showTextWhileLoading?: boolean;
|
|
30
|
+
/** Overrides the generated `testID` (defaults to `fd-button`). */
|
|
31
|
+
'data-testid'?: string;
|
|
32
|
+
/**
|
|
33
|
+
* Web-style accessible name. Accepted as an alias of `accessibilityLabel` so shared
|
|
34
|
+
* stories (and cross-platform call sites) can pass `aria-label` on both platforms.
|
|
35
|
+
*/
|
|
36
|
+
'aria-label'?: string;
|
|
37
|
+
children?: ReactNode;
|
|
38
|
+
className?: string;
|
|
39
|
+
}
|
|
40
|
+
type PressBits = Pick<PressableProps, 'onPress' | 'hitSlop' | 'accessibilityLabel' | 'accessibilityHint'>;
|
|
41
|
+
/** Props for the button variant (non-link) */
|
|
42
|
+
export type ButtonProps = CommonProps & PressBits;
|
|
43
|
+
/** Props for the link variant — pass `href` to open a URL via `Linking.openURL` */
|
|
44
|
+
export type LinkProps = CommonProps & PressBits & {
|
|
45
|
+
href: string;
|
|
46
|
+
};
|
|
47
|
+
export type Props = ButtonProps | LinkProps;
|
|
48
|
+
/**
|
|
49
|
+
* React Native `Button` — mirrors the web prop surface (sizes, colors, icons, loading,
|
|
50
|
+
* `href`) with platform adaptations:
|
|
51
|
+
*
|
|
52
|
+
* - `Pressable` instead of react-aria-components `Button` / `Link`
|
|
53
|
+
* - pressed styles instead of `hover:`
|
|
54
|
+
* - `ActivityIndicator` instead of the web SVG spinner
|
|
55
|
+
* - `href` opens via `Linking.openURL` (disabled/loading skips navigation)
|
|
56
|
+
* - no `before:` inset border gradient; no InputGroup nesting selectors
|
|
57
|
+
* - label colour/size via `style` on `Text` (NativeWind Text `className` bug — see Avatar)
|
|
58
|
+
*
|
|
59
|
+
* @summary action trigger or URL control (React Native)
|
|
60
|
+
*/
|
|
61
|
+
export declare const Button: {
|
|
62
|
+
(props: LinkProps): ReactElement;
|
|
63
|
+
(props: ButtonProps): ReactElement;
|
|
64
|
+
};
|
|
65
|
+
export {};
|
|
66
|
+
//# sourceMappingURL=Button.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../../../src/components/atoms/Buttons/Button/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