braid-design-system 32.24.0 → 32.24.1
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/CHANGELOG.md +37 -6
- package/dist/lib/components/Autosuggest/Autosuggest.cjs +4 -4
- package/dist/lib/components/Autosuggest/Autosuggest.css.cjs +0 -4
- package/dist/lib/components/Autosuggest/Autosuggest.css.mjs +0 -4
- package/dist/lib/components/Autosuggest/Autosuggest.mjs +7 -7
- package/dist/lib/components/BraidTestProvider/BraidTestProvider.cjs +5 -0
- package/dist/lib/components/BraidTestProvider/BraidTestProvider.mjs +5 -0
- package/dist/lib/components/Dropdown/Dropdown.cjs +1 -0
- package/dist/lib/components/Dropdown/Dropdown.mjs +1 -0
- package/dist/lib/components/MonthPicker/MonthPicker.cjs +45 -34
- package/dist/lib/components/MonthPicker/MonthPicker.mjs +45 -34
- package/dist/lib/components/PasswordField/PasswordField.cjs +1 -0
- package/dist/lib/components/PasswordField/PasswordField.mjs +1 -0
- package/dist/lib/components/RadioGroup/RadioGroup.cjs +1 -0
- package/dist/lib/components/RadioGroup/RadioGroup.mjs +1 -0
- package/dist/lib/components/Rating/Rating.cjs +4 -2
- package/dist/lib/components/Rating/Rating.mjs +4 -2
- package/dist/lib/components/Spread/Spread.cjs +7 -3
- package/dist/lib/components/Spread/Spread.css.cjs +12 -0
- package/dist/lib/components/Spread/Spread.css.mjs +12 -0
- package/dist/lib/components/Spread/Spread.mjs +8 -4
- package/dist/lib/components/TextField/TextField.cjs +1 -0
- package/dist/lib/components/TextField/TextField.mjs +1 -0
- package/dist/lib/components/Textarea/Textarea.cjs +1 -0
- package/dist/lib/components/Textarea/Textarea.mjs +1 -0
- package/dist/lib/components/icons/IconAI/IconAI.cjs +2 -5
- package/dist/lib/components/icons/IconAI/IconAI.mjs +2 -5
- package/dist/lib/components/icons/IconAdd/IconAdd.cjs +2 -5
- package/dist/lib/components/icons/IconAdd/IconAdd.mjs +2 -5
- package/dist/lib/components/icons/IconArrow/IconArrow.cjs +17 -20
- package/dist/lib/components/icons/IconArrow/IconArrow.mjs +17 -20
- package/dist/lib/components/icons/IconBookmark/IconBookmark.cjs +8 -11
- package/dist/lib/components/icons/IconBookmark/IconBookmark.mjs +8 -11
- package/dist/lib/components/icons/IconCareer/IconCareer.cjs +8 -11
- package/dist/lib/components/icons/IconCareer/IconCareer.mjs +8 -11
- package/dist/lib/components/icons/IconCategory/IconCategory.cjs +2 -5
- package/dist/lib/components/icons/IconCategory/IconCategory.mjs +2 -5
- package/dist/lib/components/icons/IconCaution/IconCaution.cjs +2 -5
- package/dist/lib/components/icons/IconCaution/IconCaution.mjs +2 -5
- package/dist/lib/components/icons/IconChevron/IconChevron.cjs +17 -20
- package/dist/lib/components/icons/IconChevron/IconChevron.mjs +17 -20
- package/dist/lib/components/icons/IconClear/IconClear.cjs +2 -5
- package/dist/lib/components/icons/IconClear/IconClear.mjs +2 -5
- package/dist/lib/components/icons/IconCompany/IconCompany.cjs +2 -5
- package/dist/lib/components/icons/IconCompany/IconCompany.mjs +2 -5
- package/dist/lib/components/icons/IconCompose/IconCompose.cjs +2 -5
- package/dist/lib/components/icons/IconCompose/IconCompose.mjs +2 -5
- package/dist/lib/components/icons/IconContainer.cjs +15 -0
- package/dist/lib/components/icons/IconContainer.mjs +16 -0
- package/dist/lib/components/icons/IconCopy/IconCopy.cjs +2 -5
- package/dist/lib/components/icons/IconCopy/IconCopy.mjs +2 -5
- package/dist/lib/components/icons/IconCreditCard/IconCreditCard.cjs +2 -5
- package/dist/lib/components/icons/IconCreditCard/IconCreditCard.mjs +2 -5
- package/dist/lib/components/icons/IconCritical/IconCritical.cjs +2 -5
- package/dist/lib/components/icons/IconCritical/IconCritical.mjs +2 -5
- package/dist/lib/components/icons/IconDate/IconDate.cjs +2 -5
- package/dist/lib/components/icons/IconDate/IconDate.mjs +2 -5
- package/dist/lib/components/icons/IconDelete/IconDelete.cjs +2 -5
- package/dist/lib/components/icons/IconDelete/IconDelete.mjs +2 -5
- package/dist/lib/components/icons/IconDesktop/IconDesktop.cjs +2 -5
- package/dist/lib/components/icons/IconDesktop/IconDesktop.mjs +2 -5
- package/dist/lib/components/icons/IconDocument/IconDocument.cjs +2 -5
- package/dist/lib/components/icons/IconDocument/IconDocument.mjs +2 -5
- package/dist/lib/components/icons/IconDocumentBroken/IconDocumentBroken.cjs +2 -5
- package/dist/lib/components/icons/IconDocumentBroken/IconDocumentBroken.mjs +2 -5
- package/dist/lib/components/icons/IconDownload/IconDownload.cjs +9 -7
- package/dist/lib/components/icons/IconDownload/IconDownload.mjs +9 -7
- package/dist/lib/components/icons/IconEdit/IconEdit.cjs +9 -7
- package/dist/lib/components/icons/IconEdit/IconEdit.mjs +9 -7
- package/dist/lib/components/icons/IconEducation/IconEducation.cjs +2 -5
- package/dist/lib/components/icons/IconEducation/IconEducation.mjs +2 -5
- package/dist/lib/components/icons/IconEnlarge/IconEnlarge.cjs +8 -11
- package/dist/lib/components/icons/IconEnlarge/IconEnlarge.mjs +8 -11
- package/dist/lib/components/icons/IconExperience/IconExperience.cjs +2 -5
- package/dist/lib/components/icons/IconExperience/IconExperience.mjs +2 -5
- package/dist/lib/components/icons/IconFilter/IconFilter.cjs +2 -5
- package/dist/lib/components/icons/IconFilter/IconFilter.mjs +2 -5
- package/dist/lib/components/icons/IconFlag/IconFlag.cjs +2 -5
- package/dist/lib/components/icons/IconFlag/IconFlag.mjs +2 -5
- package/dist/lib/components/icons/IconGift/IconGift.cjs +2 -5
- package/dist/lib/components/icons/IconGift/IconGift.mjs +2 -5
- package/dist/lib/components/icons/IconGlobe/IconGlobe.cjs +2 -5
- package/dist/lib/components/icons/IconGlobe/IconGlobe.mjs +2 -5
- package/dist/lib/components/icons/IconGrid/IconGrid.cjs +2 -5
- package/dist/lib/components/icons/IconGrid/IconGrid.mjs +2 -5
- package/dist/lib/components/icons/IconHash/IconHash.cjs +2 -5
- package/dist/lib/components/icons/IconHash/IconHash.mjs +2 -5
- package/dist/lib/components/icons/IconHeart/IconHeart.cjs +8 -11
- package/dist/lib/components/icons/IconHeart/IconHeart.mjs +8 -11
- package/dist/lib/components/icons/IconHelp/IconHelp.cjs +2 -5
- package/dist/lib/components/icons/IconHelp/IconHelp.mjs +2 -5
- package/dist/lib/components/icons/IconHistory/IconHistory.cjs +2 -5
- package/dist/lib/components/icons/IconHistory/IconHistory.mjs +2 -5
- package/dist/lib/components/icons/IconHome/IconHome.cjs +2 -5
- package/dist/lib/components/icons/IconHome/IconHome.mjs +2 -5
- package/dist/lib/components/icons/IconImage/IconImage.cjs +2 -5
- package/dist/lib/components/icons/IconImage/IconImage.mjs +2 -5
- package/dist/lib/components/icons/IconInfo/IconInfo.cjs +2 -5
- package/dist/lib/components/icons/IconInfo/IconInfo.mjs +2 -5
- package/dist/lib/components/icons/IconInvoice/IconInvoice.cjs +2 -5
- package/dist/lib/components/icons/IconInvoice/IconInvoice.mjs +2 -5
- package/dist/lib/components/icons/IconLanguage/IconLanguage.cjs +2 -5
- package/dist/lib/components/icons/IconLanguage/IconLanguage.mjs +2 -5
- package/dist/lib/components/icons/IconLink/IconLink.cjs +2 -5
- package/dist/lib/components/icons/IconLink/IconLink.mjs +2 -5
- package/dist/lib/components/icons/IconLinkBroken/IconLinkBroken.cjs +2 -5
- package/dist/lib/components/icons/IconLinkBroken/IconLinkBroken.mjs +2 -5
- package/dist/lib/components/icons/IconList/IconList.cjs +2 -5
- package/dist/lib/components/icons/IconList/IconList.mjs +2 -5
- package/dist/lib/components/icons/IconLocation/IconLocation.cjs +2 -5
- package/dist/lib/components/icons/IconLocation/IconLocation.mjs +2 -5
- package/dist/lib/components/icons/IconMail/IconMail.cjs +2 -5
- package/dist/lib/components/icons/IconMail/IconMail.mjs +2 -5
- package/dist/lib/components/icons/IconMessage/IconMessage.cjs +2 -5
- package/dist/lib/components/icons/IconMessage/IconMessage.mjs +2 -5
- package/dist/lib/components/icons/IconMinus/IconMinus.cjs +2 -5
- package/dist/lib/components/icons/IconMinus/IconMinus.mjs +2 -5
- package/dist/lib/components/icons/IconMobile/IconMobile.cjs +2 -5
- package/dist/lib/components/icons/IconMobile/IconMobile.mjs +2 -5
- package/dist/lib/components/icons/IconMoney/IconMoney.cjs +2 -5
- package/dist/lib/components/icons/IconMoney/IconMoney.mjs +2 -5
- package/dist/lib/components/icons/IconNewWindow/IconNewWindow.cjs +2 -5
- package/dist/lib/components/icons/IconNewWindow/IconNewWindow.mjs +2 -5
- package/dist/lib/components/icons/IconNote/IconNote.cjs +2 -5
- package/dist/lib/components/icons/IconNote/IconNote.mjs +2 -5
- package/dist/lib/components/icons/IconNotification/IconNotification.cjs +2 -5
- package/dist/lib/components/icons/IconNotification/IconNotification.mjs +2 -5
- package/dist/lib/components/icons/IconOverflow/IconOverflow.cjs +2 -5
- package/dist/lib/components/icons/IconOverflow/IconOverflow.mjs +2 -5
- package/dist/lib/components/icons/IconPeople/IconPeople.cjs +2 -5
- package/dist/lib/components/icons/IconPeople/IconPeople.mjs +2 -5
- package/dist/lib/components/icons/IconPersonAdd/IconPersonAdd.cjs +2 -5
- package/dist/lib/components/icons/IconPersonAdd/IconPersonAdd.mjs +2 -5
- package/dist/lib/components/icons/IconPersonVerified/IconPersonVerified.cjs +2 -5
- package/dist/lib/components/icons/IconPersonVerified/IconPersonVerified.mjs +2 -5
- package/dist/lib/components/icons/IconPhone/IconPhone.cjs +2 -5
- package/dist/lib/components/icons/IconPhone/IconPhone.mjs +2 -5
- package/dist/lib/components/icons/IconPlatformAndroid/IconPlatformAndroid.cjs +2 -5
- package/dist/lib/components/icons/IconPlatformAndroid/IconPlatformAndroid.mjs +2 -5
- package/dist/lib/components/icons/IconPlatformApple/IconPlatformApple.cjs +2 -5
- package/dist/lib/components/icons/IconPlatformApple/IconPlatformApple.mjs +2 -5
- package/dist/lib/components/icons/IconPositive/IconPositive.cjs +2 -5
- package/dist/lib/components/icons/IconPositive/IconPositive.mjs +2 -5
- package/dist/lib/components/icons/IconPrint/IconPrint.cjs +2 -5
- package/dist/lib/components/icons/IconPrint/IconPrint.mjs +2 -5
- package/dist/lib/components/icons/IconProfile/IconProfile.cjs +2 -5
- package/dist/lib/components/icons/IconProfile/IconProfile.mjs +2 -5
- package/dist/lib/components/icons/IconPromote/IconPromote.cjs +2 -5
- package/dist/lib/components/icons/IconPromote/IconPromote.mjs +2 -5
- package/dist/lib/components/icons/IconRecommended/IconRecommended.cjs +2 -5
- package/dist/lib/components/icons/IconRecommended/IconRecommended.mjs +2 -5
- package/dist/lib/components/icons/IconRefresh/IconRefresh.cjs +2 -5
- package/dist/lib/components/icons/IconRefresh/IconRefresh.mjs +2 -5
- package/dist/lib/components/icons/IconResume/IconResume.cjs +2 -5
- package/dist/lib/components/icons/IconResume/IconResume.mjs +2 -5
- package/dist/lib/components/icons/IconRocket/IconRocket.cjs +2 -5
- package/dist/lib/components/icons/IconRocket/IconRocket.mjs +2 -5
- package/dist/lib/components/icons/IconSearch/IconSearch.cjs +2 -5
- package/dist/lib/components/icons/IconSearch/IconSearch.mjs +2 -5
- package/dist/lib/components/icons/IconSecurity/IconSecurity.cjs +2 -5
- package/dist/lib/components/icons/IconSecurity/IconSecurity.mjs +2 -5
- package/dist/lib/components/icons/IconSend/IconSend.cjs +9 -7
- package/dist/lib/components/icons/IconSend/IconSend.mjs +9 -7
- package/dist/lib/components/icons/IconSent/IconSent.cjs +2 -5
- package/dist/lib/components/icons/IconSent/IconSent.mjs +2 -5
- package/dist/lib/components/icons/IconSentiment/IconSentiment.cjs +8 -11
- package/dist/lib/components/icons/IconSentiment/IconSentiment.mjs +8 -11
- package/dist/lib/components/icons/IconSettings/IconSettings.cjs +2 -5
- package/dist/lib/components/icons/IconSettings/IconSettings.mjs +2 -5
- package/dist/lib/components/icons/IconShare/IconShare.cjs +2 -5
- package/dist/lib/components/icons/IconShare/IconShare.mjs +2 -5
- package/dist/lib/components/icons/IconSkills/IconSkills.cjs +2 -5
- package/dist/lib/components/icons/IconSkills/IconSkills.mjs +2 -5
- package/dist/lib/components/icons/IconSocialFacebook/IconSocialFacebook.cjs +2 -5
- package/dist/lib/components/icons/IconSocialFacebook/IconSocialFacebook.mjs +2 -5
- package/dist/lib/components/icons/IconSocialGitHub/IconSocialGitHub.cjs +2 -5
- package/dist/lib/components/icons/IconSocialGitHub/IconSocialGitHub.mjs +2 -5
- package/dist/lib/components/icons/IconSocialInstagram/IconSocialInstagram.cjs +2 -5
- package/dist/lib/components/icons/IconSocialInstagram/IconSocialInstagram.mjs +2 -5
- package/dist/lib/components/icons/IconSocialLinkedIn/IconSocialLinkedIn.cjs +2 -5
- package/dist/lib/components/icons/IconSocialLinkedIn/IconSocialLinkedIn.mjs +2 -5
- package/dist/lib/components/icons/IconSocialMedium/IconSocialMedium.cjs +2 -5
- package/dist/lib/components/icons/IconSocialMedium/IconSocialMedium.mjs +2 -5
- package/dist/lib/components/icons/IconSocialTwitter/IconSocialTwitter.cjs +2 -5
- package/dist/lib/components/icons/IconSocialTwitter/IconSocialTwitter.mjs +2 -5
- package/dist/lib/components/icons/IconSocialX/IconSocialX.cjs +2 -5
- package/dist/lib/components/icons/IconSocialX/IconSocialX.mjs +2 -5
- package/dist/lib/components/icons/IconSocialYouTube/IconSocialYouTube.cjs +2 -5
- package/dist/lib/components/icons/IconSocialYouTube/IconSocialYouTube.mjs +2 -5
- package/dist/lib/components/icons/IconSort/IconSort.cjs +2 -5
- package/dist/lib/components/icons/IconSort/IconSort.mjs +2 -5
- package/dist/lib/components/icons/IconStar/IconStar.cjs +2 -5
- package/dist/lib/components/icons/IconStar/IconStar.mjs +2 -5
- package/dist/lib/components/icons/IconStatistics/IconStatistics.cjs +2 -5
- package/dist/lib/components/icons/IconStatistics/IconStatistics.mjs +2 -5
- package/dist/lib/components/icons/IconSubCategory/IconSubCategory.cjs +2 -5
- package/dist/lib/components/icons/IconSubCategory/IconSubCategory.mjs +2 -5
- package/dist/lib/components/icons/IconTag/IconTag.cjs +2 -5
- package/dist/lib/components/icons/IconTag/IconTag.mjs +2 -5
- package/dist/lib/components/icons/IconThumb/IconThumb.cjs +15 -18
- package/dist/lib/components/icons/IconThumb/IconThumb.mjs +15 -18
- package/dist/lib/components/icons/IconTick/IconTick.cjs +2 -5
- package/dist/lib/components/icons/IconTick/IconTick.mjs +2 -5
- package/dist/lib/components/icons/IconTime/IconTime.cjs +2 -5
- package/dist/lib/components/icons/IconTime/IconTime.mjs +2 -5
- package/dist/lib/components/icons/IconTip/IconTip.cjs +2 -5
- package/dist/lib/components/icons/IconTip/IconTip.mjs +2 -5
- package/dist/lib/components/icons/IconUpload/IconUpload.cjs +9 -7
- package/dist/lib/components/icons/IconUpload/IconUpload.mjs +9 -7
- package/dist/lib/components/icons/IconVideo/IconVideo.cjs +2 -5
- package/dist/lib/components/icons/IconVideo/IconVideo.mjs +2 -5
- package/dist/lib/components/icons/IconVisibility/IconVisibility.cjs +8 -11
- package/dist/lib/components/icons/IconVisibility/IconVisibility.mjs +8 -11
- package/dist/lib/components/icons/IconWorkExperience/IconWorkExperience.cjs +9 -7
- package/dist/lib/components/icons/IconWorkExperience/IconWorkExperience.mjs +9 -7
- package/dist/lib/components/icons/IconZoomIn/IconZoomIn.cjs +2 -5
- package/dist/lib/components/icons/IconZoomIn/IconZoomIn.mjs +2 -5
- package/dist/lib/components/icons/IconZoomOut/IconZoomOut.cjs +2 -5
- package/dist/lib/components/icons/IconZoomOut/IconZoomOut.mjs +2 -5
- package/dist/lib/components/private/Field/Field.cjs +15 -0
- package/dist/lib/components/private/Field/Field.mjs +14 -0
- package/dist/lib/components/private/FieldGroup/FieldGroup.cjs +16 -0
- package/dist/lib/components/private/FieldGroup/FieldGroup.mjs +14 -0
- package/dist/lib/components/private/Typography/Typography.cjs +1 -0
- package/dist/lib/components/private/Typography/Typography.mjs +1 -0
- package/dist/lib/hooks/useIcon/index.cjs +28 -22
- package/dist/lib/hooks/useIcon/index.mjs +29 -23
- package/dist/lib/playroom/snippets/Stack.cjs +3 -0
- package/dist/lib/playroom/snippets/Stack.mjs +3 -0
- package/dist/wireframe.chunk.d.ts +98 -96
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,35 @@
|
|
|
1
1
|
# braid-design-system
|
|
2
2
|
|
|
3
|
+
## 32.24.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- **BraidTestProvider:** Provide `scrollIntoView` stub function for jsdom ([#1590](https://github.com/seek-oss/braid-design-system/pull/1590))
|
|
8
|
+
|
|
9
|
+
Fixes an issue where `scrollIntoView` is not defined in jsdom, causing tests to fail with the following error:
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
Error: Uncaught [TypeError: highlightedItem?.scrollIntoView is not a function]
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
- **Autosuggest:** Update suggestion group heading design ([#1581](https://github.com/seek-oss/braid-design-system/pull/1581))
|
|
16
|
+
|
|
17
|
+
Updating the design of the suggestion group headings, moving from `formAccent` to `secondary` tone, from all caps to provided casing, and from `xsmall` to `small` size.
|
|
18
|
+
|
|
19
|
+
- **Text, Heading:** Ensure `maxLines` truncates correctly when used as the direct child of a flex container. ([#1580](https://github.com/seek-oss/braid-design-system/pull/1580))
|
|
20
|
+
|
|
21
|
+
- Validate accessible field labels in development ([#1591](https://github.com/seek-oss/braid-design-system/pull/1591))
|
|
22
|
+
|
|
23
|
+
Introduce development-time validation for the `label` prop on form fields to guard against blank values and guide towards the alternative labelling options that are available.
|
|
24
|
+
This validation helps ensure that all fields are accessible to screen readers and other assistive technologies.
|
|
25
|
+
|
|
26
|
+
- **Spread:** Apply content width to children ([#1583](https://github.com/seek-oss/braid-design-system/pull/1583))
|
|
27
|
+
|
|
28
|
+
Align the behaviour of children in `Spread` to be the same as `Inline` children.
|
|
29
|
+
This makes their behaviour more predicatable when spreading full width elements, while also ensuring child elements are not stretched vertically.
|
|
30
|
+
|
|
31
|
+
- **Icons:** Support rendering inline as child of a flex container ([#1585](https://github.com/seek-oss/braid-design-system/pull/1585))
|
|
32
|
+
|
|
3
33
|
## 32.24.0
|
|
4
34
|
|
|
5
35
|
### Minor Changes
|
|
@@ -16,7 +46,7 @@
|
|
|
16
46
|
|
|
17
47
|
#### Migration Guide
|
|
18
48
|
|
|
19
|
-
See [
|
|
49
|
+
See [migration guide] for details on how to migrate off the `dividers` prop.
|
|
20
50
|
|
|
21
51
|
[CSS gap]: https://developer.mozilla.org/en-US/docs/Web/CSS/gap
|
|
22
52
|
[migration guide]: https://github.com/seek-oss/braid-design-system/blob/master/docs/Removing%20dividers%20support%20from%20layout%20components.md
|
|
@@ -2049,7 +2079,7 @@ For more detail on the specific changes in this release, please read on.
|
|
|
2049
2079
|
|
|
2050
2080
|
```jsx
|
|
2051
2081
|
<MenuRenderer
|
|
2052
|
-
onClose={closeReason => {
|
|
2082
|
+
onClose={(closeReason) => {
|
|
2053
2083
|
// ...
|
|
2054
2084
|
}}
|
|
2055
2085
|
/>
|
|
@@ -2348,7 +2378,7 @@ For more detail on the specific changes in this release, please read on.
|
|
|
2348
2378
|
|
|
2349
2379
|
```jsx
|
|
2350
2380
|
<MenuRenderer
|
|
2351
|
-
trigger={triggerProps => <Button {...triggerProps}>Button</Button>}
|
|
2381
|
+
trigger={(triggerProps) => <Button {...triggerProps}>Button</Button>}
|
|
2352
2382
|
>
|
|
2353
2383
|
...
|
|
2354
2384
|
</MenuRenderer>
|
|
@@ -2780,8 +2810,9 @@ For more detail on the specific changes in this release, please read on.
|
|
|
2780
2810
|
|
|
2781
2811
|
type ThemeName = 'apac' | 'catho';
|
|
2782
2812
|
|
|
2783
|
-
const BraidTheme = loadable.lib(
|
|
2784
|
-
|
|
2813
|
+
const BraidTheme = loadable.lib(
|
|
2814
|
+
(props: { themeName: ThemeName }) =>
|
|
2815
|
+
import(`braid-design-system/themes/${props.themeName}`),
|
|
2785
2816
|
);
|
|
2786
2817
|
|
|
2787
2818
|
interface AppProps {
|
|
@@ -5440,7 +5471,7 @@ For more detail on the specific changes in this release, please read on.
|
|
|
5440
5471
|
<AccordionItem
|
|
5441
5472
|
id="id"
|
|
5442
5473
|
label="Label"
|
|
5443
|
-
onToggle={expanded => trackSomething(expanded)}
|
|
5474
|
+
onToggle={(expanded) => trackSomething(expanded)}
|
|
5444
5475
|
>
|
|
5445
5476
|
...
|
|
5446
5477
|
</AccordionItem>
|
|
@@ -117,13 +117,12 @@ function GroupHeading({ children }) {
|
|
|
117
117
|
{
|
|
118
118
|
paddingX: "small",
|
|
119
119
|
className: [
|
|
120
|
-
lib_components_Autosuggest_Autosuggest_css_cjs.groupHeading,
|
|
121
120
|
lib_css_typography_css_cjs.touchableText.xsmall,
|
|
122
121
|
lib_css_typography_cjs.textStyles({
|
|
123
|
-
size: "
|
|
124
|
-
baseline:
|
|
122
|
+
size: "small",
|
|
123
|
+
baseline: true,
|
|
125
124
|
weight: "strong",
|
|
126
|
-
tone: "
|
|
125
|
+
tone: "secondary"
|
|
127
126
|
})
|
|
128
127
|
],
|
|
129
128
|
"data-testid": process.env.NODE_ENV !== "production" ? `group-heading-${children}` : void 0,
|
|
@@ -520,6 +519,7 @@ const Autosuggest = React.forwardRef(function({
|
|
|
520
519
|
lib_components_private_Field_Field_cjs.Field,
|
|
521
520
|
{
|
|
522
521
|
...restProps,
|
|
522
|
+
componentName: "Autosuggest",
|
|
523
523
|
id,
|
|
524
524
|
value: value.text,
|
|
525
525
|
prefix: void 0,
|
|
@@ -23,11 +23,7 @@ const menu = css.style(lib_css_responsiveStyle_cjs.responsiveStyle({
|
|
|
23
23
|
maxHeight: calcMenuHeight(8)
|
|
24
24
|
}
|
|
25
25
|
}), "menu");
|
|
26
|
-
const groupHeading = css.style({
|
|
27
|
-
textTransform: "uppercase"
|
|
28
|
-
}, "groupHeading");
|
|
29
26
|
fileScope.endFileScope();
|
|
30
27
|
exports.backdrop = backdrop;
|
|
31
28
|
exports.backdropVisible = backdropVisible;
|
|
32
|
-
exports.groupHeading = groupHeading;
|
|
33
29
|
exports.menu = menu;
|
|
@@ -22,13 +22,9 @@ const menu = style(responsiveStyle({
|
|
|
22
22
|
maxHeight: calcMenuHeight(8)
|
|
23
23
|
}
|
|
24
24
|
}), "menu");
|
|
25
|
-
const groupHeading = style({
|
|
26
|
-
textTransform: "uppercase"
|
|
27
|
-
}, "groupHeading");
|
|
28
25
|
endFileScope();
|
|
29
26
|
export {
|
|
30
27
|
backdrop,
|
|
31
28
|
backdropVisible,
|
|
32
|
-
groupHeading,
|
|
33
29
|
menu
|
|
34
30
|
};
|
|
@@ -21,7 +21,7 @@ import { RemoveScroll } from "react-remove-scroll";
|
|
|
21
21
|
import { getItemId, createAccessibilityProps } from "./createAccessibilityProps.mjs";
|
|
22
22
|
import { autosuggest } from "../../translations/en.mjs";
|
|
23
23
|
import { reverseMatches } from "./reverseMatches.mjs";
|
|
24
|
-
import { backdrop, backdropVisible, menu
|
|
24
|
+
import { backdrop, backdropVisible, menu } from "./Autosuggest.css.mjs";
|
|
25
25
|
import { IconClear } from "../icons/IconClear/IconClear.mjs";
|
|
26
26
|
const INPUT_FOCUS = 0;
|
|
27
27
|
const INPUT_BLUR = 1;
|
|
@@ -112,13 +112,12 @@ function GroupHeading({ children }) {
|
|
|
112
112
|
{
|
|
113
113
|
paddingX: "small",
|
|
114
114
|
className: [
|
|
115
|
-
groupHeading,
|
|
116
115
|
touchableText.xsmall,
|
|
117
116
|
textStyles({
|
|
118
|
-
size: "
|
|
119
|
-
baseline:
|
|
117
|
+
size: "small",
|
|
118
|
+
baseline: true,
|
|
120
119
|
weight: "strong",
|
|
121
|
-
tone: "
|
|
120
|
+
tone: "secondary"
|
|
122
121
|
})
|
|
123
122
|
],
|
|
124
123
|
"data-testid": process.env.NODE_ENV !== "production" ? `group-heading-${children}` : void 0,
|
|
@@ -515,6 +514,7 @@ const Autosuggest = forwardRef(function({
|
|
|
515
514
|
Field,
|
|
516
515
|
{
|
|
517
516
|
...restProps,
|
|
517
|
+
componentName: "Autosuggest",
|
|
518
518
|
id,
|
|
519
519
|
value: value.text,
|
|
520
520
|
prefix: void 0,
|
|
@@ -579,14 +579,14 @@ const Autosuggest = forwardRef(function({
|
|
|
579
579
|
) : null,
|
|
580
580
|
isOpen && hasSuggestions ? normalisedSuggestions.map((suggestion, index) => {
|
|
581
581
|
const { text } = suggestion;
|
|
582
|
-
const
|
|
582
|
+
const groupHeading = groupHeadingIndexes.get(index);
|
|
583
583
|
const highlights = suggestionHighlight ? highlightSuggestions(
|
|
584
584
|
suggestion.text,
|
|
585
585
|
value.text,
|
|
586
586
|
suggestionHighlight
|
|
587
587
|
) : suggestion.highlights;
|
|
588
588
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
589
|
-
|
|
589
|
+
groupHeading ? /* @__PURE__ */ jsx(GroupHeading, { children: groupHeading }) : null,
|
|
590
590
|
/* @__PURE__ */ jsx(
|
|
591
591
|
SuggestionItem,
|
|
592
592
|
{
|
|
@@ -1,9 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var _a;
|
|
2
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
3
4
|
const lib_themes_index_cjs = require("../../themes/index.cjs");
|
|
4
5
|
const lib_components_BraidProvider_BraidProvider_cjs = require("../BraidProvider/BraidProvider.cjs");
|
|
5
6
|
const lib_components_BraidTestProvider_BraidTestProviderContext_cjs = require("./BraidTestProviderContext.cjs");
|
|
6
7
|
const lib_components_BraidProvider_BreakpointContext_cjs = require("../BraidProvider/BreakpointContext.cjs");
|
|
8
|
+
if (typeof navigator !== "undefined" && ((_a = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : _a.includes("jsdom"))) {
|
|
9
|
+
window.HTMLElement.prototype.scrollIntoView = window.HTMLElement.prototype.scrollIntoView || (() => {
|
|
10
|
+
});
|
|
11
|
+
}
|
|
7
12
|
const BraidTestProvider = ({
|
|
8
13
|
themeName = "wireframe",
|
|
9
14
|
breakpoint = null,
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
var _a;
|
|
1
2
|
import { jsx } from "react/jsx-runtime";
|
|
2
3
|
import { themes } from "../../themes/index.mjs";
|
|
3
4
|
import { BraidProvider } from "../BraidProvider/BraidProvider.mjs";
|
|
4
5
|
import { BraidTestProviderContext } from "./BraidTestProviderContext.mjs";
|
|
5
6
|
import { breakpointContext } from "../BraidProvider/BreakpointContext.mjs";
|
|
7
|
+
if (typeof navigator !== "undefined" && ((_a = navigator == null ? void 0 : navigator.userAgent) == null ? void 0 : _a.includes("jsdom"))) {
|
|
8
|
+
window.HTMLElement.prototype.scrollIntoView = window.HTMLElement.prototype.scrollIntoView || (() => {
|
|
9
|
+
});
|
|
10
|
+
}
|
|
6
11
|
const BraidTestProvider = ({
|
|
7
12
|
themeName = "wireframe",
|
|
8
13
|
breakpoint = null,
|
|
@@ -110,6 +110,7 @@ const MonthPicker = ({
|
|
|
110
110
|
disabled,
|
|
111
111
|
value: customValueToString(currentValue),
|
|
112
112
|
...restProps,
|
|
113
|
+
componentName: "MonthPicker",
|
|
113
114
|
icon: void 0,
|
|
114
115
|
prefix: void 0,
|
|
115
116
|
name: void 0,
|
|
@@ -134,40 +135,50 @@ const MonthPicker = ({
|
|
|
134
135
|
] })
|
|
135
136
|
}
|
|
136
137
|
);
|
|
137
|
-
const customFieldGroup = /* @__PURE__ */ jsxRuntime.jsx(
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
138
|
+
const customFieldGroup = /* @__PURE__ */ jsxRuntime.jsx(
|
|
139
|
+
lib_components_private_FieldGroup_FieldGroup_cjs.FieldGroup,
|
|
140
|
+
{
|
|
141
|
+
id,
|
|
142
|
+
tone,
|
|
143
|
+
disabled,
|
|
144
|
+
componentName: "MonthPicker",
|
|
145
|
+
...restProps,
|
|
146
|
+
children: (fieldGroupProps) => /* @__PURE__ */ jsxRuntime.jsxs(lib_components_Columns_Columns_cjs.Columns, { space: "xsmall", children: [
|
|
147
|
+
/* @__PURE__ */ jsxRuntime.jsx(lib_components_Column_Column_cjs.Column, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
148
|
+
lib_components_Dropdown_Dropdown_cjs.Dropdown,
|
|
149
|
+
{
|
|
150
|
+
id: monthId,
|
|
151
|
+
value: currentValue.month || "",
|
|
152
|
+
onChange: makeChangeHandler(onChange, value, "month"),
|
|
153
|
+
onBlur: blurHandler,
|
|
154
|
+
onFocus: focusHandler,
|
|
155
|
+
tone,
|
|
156
|
+
placeholder: monthLabel,
|
|
157
|
+
"aria-label": monthLabel,
|
|
158
|
+
...fieldGroupProps,
|
|
159
|
+
ref: monthRef,
|
|
160
|
+
children: getMonths(monthNames)
|
|
161
|
+
}
|
|
162
|
+
) }),
|
|
163
|
+
/* @__PURE__ */ jsxRuntime.jsx(lib_components_Column_Column_cjs.Column, { children: /* @__PURE__ */ jsxRuntime.jsx(
|
|
164
|
+
lib_components_Dropdown_Dropdown_cjs.Dropdown,
|
|
165
|
+
{
|
|
166
|
+
id: yearId,
|
|
167
|
+
value: currentValue.year || "",
|
|
168
|
+
onChange: makeChangeHandler(onChange, value, "year"),
|
|
169
|
+
onBlur: blurHandler,
|
|
170
|
+
onFocus: focusHandler,
|
|
171
|
+
tone,
|
|
172
|
+
placeholder: yearLabel,
|
|
173
|
+
"aria-label": yearLabel,
|
|
174
|
+
...fieldGroupProps,
|
|
175
|
+
ref: yearRef,
|
|
176
|
+
children: getYears(minYear, maxYear, ascendingYears)
|
|
177
|
+
}
|
|
178
|
+
) })
|
|
179
|
+
] })
|
|
180
|
+
}
|
|
181
|
+
);
|
|
171
182
|
return renderNativeInput ? nativeField : customFieldGroup;
|
|
172
183
|
};
|
|
173
184
|
MonthPicker.displayName = "MonthPicker";
|
|
@@ -107,6 +107,7 @@ const MonthPicker = ({
|
|
|
107
107
|
disabled,
|
|
108
108
|
value: customValueToString(currentValue),
|
|
109
109
|
...restProps,
|
|
110
|
+
componentName: "MonthPicker",
|
|
110
111
|
icon: void 0,
|
|
111
112
|
prefix: void 0,
|
|
112
113
|
name: void 0,
|
|
@@ -131,40 +132,50 @@ const MonthPicker = ({
|
|
|
131
132
|
] })
|
|
132
133
|
}
|
|
133
134
|
);
|
|
134
|
-
const customFieldGroup = /* @__PURE__ */ jsx(
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
135
|
+
const customFieldGroup = /* @__PURE__ */ jsx(
|
|
136
|
+
FieldGroup,
|
|
137
|
+
{
|
|
138
|
+
id,
|
|
139
|
+
tone,
|
|
140
|
+
disabled,
|
|
141
|
+
componentName: "MonthPicker",
|
|
142
|
+
...restProps,
|
|
143
|
+
children: (fieldGroupProps) => /* @__PURE__ */ jsxs(Columns, { space: "xsmall", children: [
|
|
144
|
+
/* @__PURE__ */ jsx(Column, { children: /* @__PURE__ */ jsx(
|
|
145
|
+
Dropdown,
|
|
146
|
+
{
|
|
147
|
+
id: monthId,
|
|
148
|
+
value: currentValue.month || "",
|
|
149
|
+
onChange: makeChangeHandler(onChange, value, "month"),
|
|
150
|
+
onBlur: blurHandler,
|
|
151
|
+
onFocus: focusHandler,
|
|
152
|
+
tone,
|
|
153
|
+
placeholder: monthLabel,
|
|
154
|
+
"aria-label": monthLabel,
|
|
155
|
+
...fieldGroupProps,
|
|
156
|
+
ref: monthRef,
|
|
157
|
+
children: getMonths(monthNames)
|
|
158
|
+
}
|
|
159
|
+
) }),
|
|
160
|
+
/* @__PURE__ */ jsx(Column, { children: /* @__PURE__ */ jsx(
|
|
161
|
+
Dropdown,
|
|
162
|
+
{
|
|
163
|
+
id: yearId,
|
|
164
|
+
value: currentValue.year || "",
|
|
165
|
+
onChange: makeChangeHandler(onChange, value, "year"),
|
|
166
|
+
onBlur: blurHandler,
|
|
167
|
+
onFocus: focusHandler,
|
|
168
|
+
tone,
|
|
169
|
+
placeholder: yearLabel,
|
|
170
|
+
"aria-label": yearLabel,
|
|
171
|
+
...fieldGroupProps,
|
|
172
|
+
ref: yearRef,
|
|
173
|
+
children: getYears(minYear, maxYear, ascendingYears)
|
|
174
|
+
}
|
|
175
|
+
) })
|
|
176
|
+
] })
|
|
177
|
+
}
|
|
178
|
+
);
|
|
168
179
|
return renderNativeInput ? nativeField : customFieldGroup;
|
|
169
180
|
};
|
|
170
181
|
MonthPicker.displayName = "MonthPicker";
|
|
@@ -16,7 +16,9 @@ const dedent__default = /* @__PURE__ */ _interopDefaultCompat(dedent);
|
|
|
16
16
|
const getPercent = (rating, position) => Math.round(Math.min(Math.max(rating - position, 0), 1) * 100);
|
|
17
17
|
const RatingStar = ({ percent, ...restProps }) => {
|
|
18
18
|
const currentBg = lib_components_Box_BackgroundContext_cjs.useBackground();
|
|
19
|
-
const {
|
|
19
|
+
const {
|
|
20
|
+
svgProps: { className, ...svgProps }
|
|
21
|
+
} = lib_hooks_useIcon_index_cjs.useIcon(restProps);
|
|
20
22
|
let component = lib_components_icons_IconStar_IconStarSvg_cjs.IconStarSvg;
|
|
21
23
|
if (percent >= 25 && percent < 75) {
|
|
22
24
|
component = lib_components_icons_IconStar_IconStarHalfSvg_cjs.IconStarHalfSvg;
|
|
@@ -28,7 +30,7 @@ const RatingStar = ({ percent, ...restProps }) => {
|
|
|
28
30
|
lib_components_Box_Box_cjs.Box,
|
|
29
31
|
{
|
|
30
32
|
component,
|
|
31
|
-
...
|
|
33
|
+
...svgProps,
|
|
32
34
|
className: [
|
|
33
35
|
className,
|
|
34
36
|
{
|
|
@@ -12,7 +12,9 @@ import { starSpacing, textSpacing, lightModeStarColor, darkModeStarColor } from
|
|
|
12
12
|
const getPercent = (rating, position) => Math.round(Math.min(Math.max(rating - position, 0), 1) * 100);
|
|
13
13
|
const RatingStar = ({ percent, ...restProps }) => {
|
|
14
14
|
const currentBg = useBackground();
|
|
15
|
-
const {
|
|
15
|
+
const {
|
|
16
|
+
svgProps: { className, ...svgProps }
|
|
17
|
+
} = useIcon(restProps);
|
|
16
18
|
let component = IconStarSvg;
|
|
17
19
|
if (percent >= 25 && percent < 75) {
|
|
18
20
|
component = IconStarHalfSvg;
|
|
@@ -24,7 +26,7 @@ const RatingStar = ({ percent, ...restProps }) => {
|
|
|
24
26
|
Box,
|
|
25
27
|
{
|
|
26
28
|
component,
|
|
27
|
-
...
|
|
29
|
+
...svgProps,
|
|
28
30
|
className: [
|
|
29
31
|
className,
|
|
30
32
|
{
|
|
@@ -10,7 +10,7 @@ const Spread = ({
|
|
|
10
10
|
space,
|
|
11
11
|
direction = "horizontal",
|
|
12
12
|
align,
|
|
13
|
-
alignY,
|
|
13
|
+
alignY = "top",
|
|
14
14
|
data,
|
|
15
15
|
...restProps
|
|
16
16
|
}) => {
|
|
@@ -19,7 +19,7 @@ const Spread = ({
|
|
|
19
19
|
let alignItems;
|
|
20
20
|
if (align && isVertical) {
|
|
21
21
|
alignItems = lib_utils_align_cjs.alignToFlexAlign(align);
|
|
22
|
-
} else if (
|
|
22
|
+
} else if (isHorizontal) {
|
|
23
23
|
alignItems = lib_utils_align_cjs.alignYToFlexAlign(alignY);
|
|
24
24
|
}
|
|
25
25
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
@@ -32,7 +32,11 @@ const Spread = ({
|
|
|
32
32
|
height: isVertical ? "full" : void 0,
|
|
33
33
|
justifyContent: "spaceBetween",
|
|
34
34
|
alignItems,
|
|
35
|
-
className:
|
|
35
|
+
className: [
|
|
36
|
+
isHorizontal ? lib_components_Spread_Spread_css_cjs.fitContent : void 0,
|
|
37
|
+
isVertical ? lib_components_Spread_Spread_css_cjs.maxWidth : void 0,
|
|
38
|
+
lib_components_Spread_Spread_css_cjs.responsiveGap({ gap: space })
|
|
39
|
+
],
|
|
36
40
|
...lib_components_private_buildDataAttributes_cjs.buildDataAttributes({ data, validateRestProps: restProps }),
|
|
37
41
|
children
|
|
38
42
|
}
|
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const fileScope = require("@vanilla-extract/css/fileScope");
|
|
3
|
+
const css = require("@vanilla-extract/css");
|
|
3
4
|
const sprinkles = require("@vanilla-extract/sprinkles");
|
|
4
5
|
const lib_css_breakpoints_cjs = require("../../css/breakpoints.cjs");
|
|
5
6
|
const lib_css_atoms_atomicProperties_cjs = require("../../css/atoms/atomicProperties.cjs");
|
|
6
7
|
fileScope.setFileScope("src/lib/components/Spread/Spread.css.ts", "braid-design-system");
|
|
8
|
+
const fitContent = css.style({}, "fitContent");
|
|
9
|
+
css.globalStyle(`${fitContent} > *`, {
|
|
10
|
+
flexBasis: "auto",
|
|
11
|
+
width: "auto"
|
|
12
|
+
});
|
|
13
|
+
const maxWidth = css.style({}, "maxWidth");
|
|
14
|
+
css.globalStyle(`${maxWidth} > *`, {
|
|
15
|
+
maxWidth: "100%"
|
|
16
|
+
});
|
|
7
17
|
const responsiveGapProperties = sprinkles.defineProperties({
|
|
8
18
|
defaultCondition: "mobile",
|
|
9
19
|
conditions: {
|
|
@@ -24,4 +34,6 @@ const responsiveGapProperties = sprinkles.defineProperties({
|
|
|
24
34
|
});
|
|
25
35
|
const responsiveGap = sprinkles.createSprinkles(responsiveGapProperties);
|
|
26
36
|
fileScope.endFileScope();
|
|
37
|
+
exports.fitContent = fitContent;
|
|
38
|
+
exports.maxWidth = maxWidth;
|
|
27
39
|
exports.responsiveGap = responsiveGap;
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { style, globalStyle } from "@vanilla-extract/css";
|
|
2
3
|
import { defineProperties, createSprinkles } from "@vanilla-extract/sprinkles";
|
|
3
4
|
import { breakpoints } from "../../css/breakpoints.mjs";
|
|
4
5
|
import { space } from "../../css/atoms/atomicProperties.mjs";
|
|
5
6
|
setFileScope("src/lib/components/Spread/Spread.css.ts", "braid-design-system");
|
|
7
|
+
const fitContent = style({}, "fitContent");
|
|
8
|
+
globalStyle(`${fitContent} > *`, {
|
|
9
|
+
flexBasis: "auto",
|
|
10
|
+
width: "auto"
|
|
11
|
+
});
|
|
12
|
+
const maxWidth = style({}, "maxWidth");
|
|
13
|
+
globalStyle(`${maxWidth} > *`, {
|
|
14
|
+
maxWidth: "100%"
|
|
15
|
+
});
|
|
6
16
|
const responsiveGapProperties = defineProperties({
|
|
7
17
|
defaultCondition: "mobile",
|
|
8
18
|
conditions: {
|
|
@@ -24,5 +34,7 @@ const responsiveGapProperties = defineProperties({
|
|
|
24
34
|
const responsiveGap = createSprinkles(responsiveGapProperties);
|
|
25
35
|
endFileScope();
|
|
26
36
|
export {
|
|
37
|
+
fitContent,
|
|
38
|
+
maxWidth,
|
|
27
39
|
responsiveGap
|
|
28
40
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { Box } from "../Box/Box.mjs";
|
|
3
3
|
import { alignToFlexAlign, alignYToFlexAlign } from "../../utils/align.mjs";
|
|
4
|
-
import { responsiveGap } from "./Spread.css.mjs";
|
|
4
|
+
import { fitContent, maxWidth, responsiveGap } from "./Spread.css.mjs";
|
|
5
5
|
import { buildDataAttributes } from "../private/buildDataAttributes.mjs";
|
|
6
6
|
const Spread = ({
|
|
7
7
|
component,
|
|
@@ -9,7 +9,7 @@ const Spread = ({
|
|
|
9
9
|
space,
|
|
10
10
|
direction = "horizontal",
|
|
11
11
|
align,
|
|
12
|
-
alignY,
|
|
12
|
+
alignY = "top",
|
|
13
13
|
data,
|
|
14
14
|
...restProps
|
|
15
15
|
}) => {
|
|
@@ -18,7 +18,7 @@ const Spread = ({
|
|
|
18
18
|
let alignItems;
|
|
19
19
|
if (align && isVertical) {
|
|
20
20
|
alignItems = alignToFlexAlign(align);
|
|
21
|
-
} else if (
|
|
21
|
+
} else if (isHorizontal) {
|
|
22
22
|
alignItems = alignYToFlexAlign(alignY);
|
|
23
23
|
}
|
|
24
24
|
return /* @__PURE__ */ jsx(
|
|
@@ -31,7 +31,11 @@ const Spread = ({
|
|
|
31
31
|
height: isVertical ? "full" : void 0,
|
|
32
32
|
justifyContent: "spaceBetween",
|
|
33
33
|
alignItems,
|
|
34
|
-
className:
|
|
34
|
+
className: [
|
|
35
|
+
isHorizontal ? fitContent : void 0,
|
|
36
|
+
isVertical ? maxWidth : void 0,
|
|
37
|
+
responsiveGap({ gap: space })
|
|
38
|
+
],
|
|
35
39
|
...buildDataAttributes({ data, validateRestProps: restProps }),
|
|
36
40
|
children
|
|
37
41
|
}
|
|
@@ -48,6 +48,7 @@ const TextField = React.forwardRef(
|
|
|
48
48
|
lib_components_private_Field_Field_cjs.Field,
|
|
49
49
|
{
|
|
50
50
|
...restProps,
|
|
51
|
+
componentName: "TextField",
|
|
51
52
|
id,
|
|
52
53
|
value,
|
|
53
54
|
secondaryMessage: characterLimit ? lib_components_private_Field_getCharacterLimitStatus_cjs.getCharacterLimitStatus({
|