@sproutsocial/racine 14.2.0 → 15.0.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/CHANGELOG.md +87 -0
- package/__flow__/Card/Card.flow.js +1 -17
- package/__flow__/Card/CardTypes.flow.js +66 -0
- package/__flow__/Card/index.flow.js +2 -1
- package/__flow__/EnumIconNames.flow.js +1 -1
- package/__flow__/Icon/Icon.flow.js +3 -1
- package/__flow__/IconViewBoxes.js +2 -0
- package/__flow__/PartnerLogo/PartnerLogo.flow.js +3 -3
- package/__flow__/index.flow.js +1 -1
- package/__flow__/systemProps/{background.js → background.flow.js} +1 -1
- package/__flow__/systemProps/{border.js → border.flow.js} +1 -1
- package/__flow__/systemProps/{color.js → color.flow.js} +2 -2
- package/__flow__/systemProps/{custom.js → custom.flow.js} +1 -1
- package/__flow__/systemProps/{flexbox.js → flexbox.flow.js} +1 -1
- package/__flow__/systemProps/{grid.js → grid.flow.js} +1 -1
- package/__flow__/systemProps/index.flow.js +16 -0
- package/__flow__/systemProps/{layout.js → layout.flow.js} +1 -1
- package/__flow__/systemProps/{position.js → position.flow.js} +1 -1
- package/__flow__/systemProps/{shadow.js → shadow.flow.js} +1 -1
- package/__flow__/systemProps/{space.js → space.flow.js} +1 -1
- package/__flow__/systemProps/{systemProps.js → systemProps.flow.js} +13 -13
- package/__flow__/systemProps/{typography.js → typography.flow.js} +1 -1
- package/__flow__/systemProps/{variant.js → variant.flow.js} +1 -1
- package/__flow__/types/shared.flow.js +5 -1
- package/commonjs/Badge/Badge.js +2 -1
- package/commonjs/Banner/Banner.js +2 -1
- package/commonjs/Breadcrumb/Breadcrumb.js +2 -1
- package/commonjs/Card/Card.js +71 -26
- package/commonjs/Card/CardTypes.flow.js +6 -0
- package/commonjs/Card/index.flow.js +11 -0
- package/commonjs/Card/styles.js +102 -22
- package/commonjs/Card/subComponents.js +48 -0
- package/commonjs/Card/utils.js +56 -0
- package/commonjs/Checkbox/styles.js +6 -5
- package/commonjs/DatePicker/common.js +2 -1
- package/commonjs/Drawer/Drawer.js +9 -4
- package/commonjs/Icon/Icon.js +33 -10
- package/commonjs/IconViewBoxes.js +2 -0
- package/commonjs/IllustrationViewBoxes.d.js +5 -0
- package/commonjs/Indicator/Indicator.js +2 -1
- package/commonjs/Input/Input.js +2 -1
- package/commonjs/Listbox/Listbox.js +2 -1
- package/commonjs/Loader/styles.js +17 -12
- package/commonjs/LogoViewBoxes.d.js +5 -0
- package/commonjs/PartnerLogo/PartnerLogo.js +14 -13
- package/commonjs/PartnerLogo/PartnerLogoTypes.js +12 -1
- package/commonjs/PartnerLogo/index.js +0 -12
- package/commonjs/PartnerLogo/styles.js +1 -1
- package/commonjs/Select/Select.js +2 -1
- package/commonjs/Switch/Switch.js +1 -0
- package/commonjs/TableHeaderCell/TableHeaderCell.js +2 -1
- package/commonjs/TableRowAccordion/TableRowAccordion.js +6 -2
- package/commonjs/Toast/Toast.js +40 -34
- package/commonjs/ToggleHint/ToggleHint.js +4 -2
- package/commonjs/Token/Token.js +16 -2
- package/commonjs/Token/styles.js +1 -1
- package/commonjs/TokenInput/TokenInput.js +3 -1
- package/commonjs/index.flow.js +125 -125
- package/commonjs/systemProps/index.flow.js +159 -0
- package/commonjs/systemProps/{systemProps.js → systemProps.flow.js} +12 -12
- package/commonjs/themes/dark/theme.js +1 -1
- package/commonjs/themes/light/theme.js +1 -1
- package/commonjs/types/shared.flow.js +6 -1
- package/commonjs/utils/index.js +27 -2
- package/dist/icon.svg +1 -1
- package/dist/iconList.js +1 -1
- package/dist/themes/dark/theme.scss +1 -1
- package/dist/themes/extendedThemes/sproutTheme/dark/theme.scss +1 -1
- package/dist/themes/extendedThemes/sproutTheme/light/theme.scss +1 -1
- package/dist/themes/light/theme.scss +1 -1
- package/dist/types/Avatar/Avatar.d.ts +2 -2
- package/dist/types/Avatar/Avatar.d.ts.map +1 -1
- package/dist/types/Badge/Badge.d.ts +2 -1
- package/dist/types/Badge/Badge.d.ts.map +1 -1
- package/dist/types/Banner/Banner.d.ts +2 -1
- package/dist/types/Banner/Banner.d.ts.map +1 -1
- package/dist/types/Banner/styles.d.ts +3 -2
- package/dist/types/Banner/styles.d.ts.map +1 -1
- package/dist/types/Box/Box.d.ts +1 -1
- package/dist/types/Box/Box.d.ts.map +1 -1
- package/dist/types/Breadcrumb/Breadcrumb.d.ts +3 -2
- package/dist/types/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/types/Button/Button.d.ts +2 -1
- package/dist/types/Button/Button.d.ts.map +1 -1
- package/dist/types/Card/Card.d.ts +16 -2
- package/dist/types/Card/Card.d.ts.map +1 -1
- package/dist/types/Card/CardTypes.d.ts +48 -11
- package/dist/types/Card/CardTypes.d.ts.map +1 -1
- package/dist/types/Card/__tests__/CardTypes.d.ts +2 -0
- package/dist/types/Card/__tests__/CardTypes.d.ts.map +1 -0
- package/dist/types/Card/styles.d.ts +13 -6
- package/dist/types/Card/styles.d.ts.map +1 -1
- package/dist/types/Card/subComponents.d.ts +17 -0
- package/dist/types/Card/subComponents.d.ts.map +1 -0
- package/dist/types/Card/utils.d.ts +16 -0
- package/dist/types/Card/utils.d.ts.map +1 -0
- package/dist/types/CharacterCounter/CharacterCounter.d.ts +1 -1
- package/dist/types/ChartLegend/ChartLegend.d.ts +2 -1
- package/dist/types/ChartLegend/ChartLegend.d.ts.map +1 -1
- package/dist/types/Checkbox/Checkbox.d.ts +1 -1
- package/dist/types/Checkbox/styles.d.ts +7 -5
- package/dist/types/Checkbox/styles.d.ts.map +1 -1
- package/dist/types/Collapsible/Collapsible.d.ts +4 -3
- package/dist/types/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/types/Collapsible/styles.d.ts +1 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts +2 -1
- package/dist/types/DatePicker/DateRangePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts +2 -1
- package/dist/types/DatePicker/DateRangePicker/StatefulDateRangePicker.d.ts.map +1 -1
- package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts +2 -1
- package/dist/types/DatePicker/SingleDatePicker/StatefulSingleDatePicker.d.ts.map +1 -1
- package/dist/types/DatePicker/common.d.ts +2 -1
- package/dist/types/DatePicker/common.d.ts.map +1 -1
- package/dist/types/DatePicker/styles.d.ts +1 -1
- package/dist/types/Drawer/Drawer.d.ts +3 -3
- package/dist/types/Drawer/Drawer.d.ts.map +1 -1
- package/dist/types/Drawer/SlideTransition.d.ts +1 -1
- package/dist/types/Drawer/SlideTransition.d.ts.map +1 -1
- package/dist/types/Drawer/styles.d.ts +1 -1
- package/dist/types/Drawer/styles.d.ts.map +1 -1
- package/dist/types/EmptyState/EmptyState.d.ts +2 -1
- package/dist/types/EmptyState/EmptyState.d.ts.map +1 -1
- package/dist/types/EnumIconNames.d.ts +1 -1
- package/dist/types/EnumIconNames.d.ts.map +1 -1
- package/dist/types/Fieldset/Fieldset.d.ts +4 -3
- package/dist/types/Fieldset/Fieldset.d.ts.map +1 -1
- package/dist/types/Fieldset/styles.d.ts +1 -1
- package/dist/types/Fieldset/styles.d.ts.map +1 -1
- package/dist/types/FormField/FormField.d.ts +2 -1
- package/dist/types/FormField/FormField.d.ts.map +1 -1
- package/dist/types/Icon/Icon.d.ts +4 -2
- package/dist/types/Icon/Icon.d.ts.map +1 -1
- package/dist/types/Icon/IconTypes.d.ts +3 -2
- package/dist/types/Icon/IconTypes.d.ts.map +1 -1
- package/dist/types/Image/Image.d.ts +1 -1
- package/dist/types/Indicator/Indicator.d.ts +1 -1
- package/dist/types/Input/Input.d.ts +2 -2
- package/dist/types/KeyboardKey/KeyboardKey.d.ts +1 -1
- package/dist/types/Label/Label.d.ts +1 -1
- package/dist/types/Link/Link.d.ts +2 -1
- package/dist/types/Link/Link.d.ts.map +1 -1
- package/dist/types/Link/styles.d.ts +2 -1
- package/dist/types/Link/styles.d.ts.map +1 -1
- package/dist/types/Listbox/Listbox.d.ts +11 -10
- package/dist/types/Listbox/Listbox.d.ts.map +1 -1
- package/dist/types/Listbox/ListboxTypes.d.ts +1 -1
- package/dist/types/Listbox/ListboxTypes.d.ts.map +1 -1
- package/dist/types/Loader/Loader.d.ts +1 -1
- package/dist/types/Loader/styles.d.ts.map +1 -1
- package/dist/types/LoaderButton/LoaderButton.d.ts +2 -1
- package/dist/types/LoaderButton/LoaderButton.d.ts.map +1 -1
- package/dist/types/Menu/Menu.d.ts +14 -13
- package/dist/types/Menu/Menu.d.ts.map +1 -1
- package/dist/types/Menu/MenuTypes.d.ts +1 -1
- package/dist/types/Menu/MenuTypes.d.ts.map +1 -1
- package/dist/types/Menu/styles.d.ts +2 -2
- package/dist/types/Menu/styles.d.ts.map +1 -1
- package/dist/types/Menu/utils/descendants.d.ts +1 -1
- package/dist/types/Menu/utils/descendants.d.ts.map +1 -1
- package/dist/types/Message/Message.d.ts +8 -8
- package/dist/types/Message/styles.d.ts +5 -5
- package/dist/types/Message/styles.d.ts.map +1 -1
- package/dist/types/Modal/Modal.d.ts +5 -5
- package/dist/types/Modal/styles.d.ts +5 -5
- package/dist/types/Modal/styles.d.ts.map +1 -1
- package/dist/types/Numeral/Numeral.d.ts +2 -1
- package/dist/types/Numeral/Numeral.d.ts.map +1 -1
- package/dist/types/Numeral/styles.d.ts +3 -2
- package/dist/types/Numeral/styles.d.ts.map +1 -1
- package/dist/types/OverflowList/OverflowList.d.ts +2 -1
- package/dist/types/OverflowList/OverflowList.d.ts.map +1 -1
- package/dist/types/OverflowList/styles.d.ts +2 -1
- package/dist/types/OverflowList/styles.d.ts.map +1 -1
- package/dist/types/PartnerLogo/PartnerLogo.d.ts +2 -1
- package/dist/types/PartnerLogo/PartnerLogo.d.ts.map +1 -1
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts +12 -3
- package/dist/types/PartnerLogo/PartnerLogoTypes.d.ts.map +1 -1
- package/dist/types/PartnerLogo/index.d.ts +0 -1
- package/dist/types/PartnerLogo/index.d.ts.map +1 -1
- package/dist/types/Popout/Popout.d.ts +3 -2
- package/dist/types/Popout/Popout.d.ts.map +1 -1
- package/dist/types/Popout/PopoutTypes.d.ts +1 -1
- package/dist/types/Popout/PopoutTypes.d.ts.map +1 -1
- package/dist/types/Radio/Radio.d.ts +1 -1
- package/dist/types/Radio/styles.d.ts +2 -1
- package/dist/types/Radio/styles.d.ts.map +1 -1
- package/dist/types/SegmentedControl/SegmentedControl.d.ts +3 -2
- package/dist/types/SegmentedControl/SegmentedControl.d.ts.map +1 -1
- package/dist/types/SegmentedControl/styles.d.ts +3 -3
- package/dist/types/SegmentedControl/styles.d.ts.map +1 -1
- package/dist/types/Select/Select.d.ts +1 -1
- package/dist/types/Select/Select.d.ts.map +1 -1
- package/dist/types/Skeleton/Skeleton.d.ts +1 -1
- package/dist/types/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/types/SpotIllustration/SpotIllustration.d.ts +2 -1
- package/dist/types/SpotIllustration/SpotIllustration.d.ts.map +1 -1
- package/dist/types/Stack/Stack.d.ts +2 -1
- package/dist/types/Stack/Stack.d.ts.map +1 -1
- package/dist/types/Switch/Switch.d.ts +1 -1
- package/dist/types/Table/Table.d.ts +8 -7
- package/dist/types/Table/Table.d.ts.map +1 -1
- package/dist/types/TableCell/TableCell.d.ts +1 -1
- package/dist/types/TableCell/TableCellTypes.d.ts +1 -1
- package/dist/types/TableCell/TableCellTypes.d.ts.map +1 -1
- package/dist/types/TableHeaderCell/TableHeaderCell.d.ts +2 -2
- package/dist/types/TableHeaderCell/TableHeaderCell.d.ts.map +1 -1
- package/dist/types/TableRowAccordion/TableRowAccordion.d.ts +1 -1
- package/dist/types/TableRowAccordion/TableRowAccordion.d.ts.map +1 -1
- package/dist/types/Tabs/Tabs.d.ts +2 -2
- package/dist/types/Tabs/styles.d.ts +2 -1
- package/dist/types/Tabs/styles.d.ts.map +1 -1
- package/dist/types/Text/Text.d.ts +2 -1
- package/dist/types/Text/Text.d.ts.map +1 -1
- package/dist/types/Textarea/Textarea.d.ts +1 -1
- package/dist/types/ThemeProvider/index.d.ts +1 -1
- package/dist/types/ThemeProvider/index.d.ts.map +1 -1
- package/dist/types/Toast/Toast.d.ts +2 -1
- package/dist/types/Toast/Toast.d.ts.map +1 -1
- package/dist/types/Toast/styles.d.ts +3 -3
- package/dist/types/Toast/styles.d.ts.map +1 -1
- package/dist/types/ToggleHint/ToggleHint.d.ts +2 -2
- package/dist/types/ToggleHint/ToggleHint.d.ts.map +1 -1
- package/dist/types/Token/Token.d.ts +2 -1
- package/dist/types/Token/Token.d.ts.map +1 -1
- package/dist/types/TokenInput/TokenInput.d.ts +1 -1
- package/dist/types/TokenInput/TokenInput.d.ts.map +1 -1
- package/dist/types/Tooltip/Tooltip.d.ts +2 -1
- package/dist/types/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/types/Tooltip/TooltipTypes.d.ts +1 -1
- package/dist/types/Tooltip/TooltipTypes.d.ts.map +1 -1
- package/dist/types/Tooltip/styles.d.ts +1 -1
- package/dist/types/Tooltip/styles.d.ts.map +1 -1
- package/dist/types/systemProps/index.d.ts +3 -79
- package/dist/types/systemProps/index.d.ts.map +1 -1
- package/dist/types/types/styled-components.d.ts +3 -3
- package/dist/types/types/styled-components.d.ts.map +1 -1
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/index.d.ts.map +1 -1
- package/dist/types/utils/innerText.d.ts.map +1 -1
- package/icons/advocacy-outline.svg +2 -2
- package/icons/comment-ai-outline.svg +2 -2
- package/icons/comment-ai.svg +1 -1
- package/icons/dropbox.svg +2 -2
- package/icons/facebook-groups.svg +2 -2
- package/icons/facebook.svg +2 -2
- package/icons/feedly.svg +2 -2
- package/icons/flat-negative-sentiment-outline.svg +1 -1
- package/icons/flat-neutral-sentiment-outline.svg +1 -1
- package/icons/flat-positive-sentiment-outline.svg +1 -1
- package/icons/glassdoor.svg +2 -2
- package/icons/hand-sparkle-outline.svg +6 -0
- package/icons/hand-sparkle.svg +3 -0
- package/icons/instagram.svg +2 -2
- package/icons/linkedin.svg +2 -2
- package/icons/messenger.svg +2 -2
- package/icons/pinterest.svg +2 -2
- package/icons/reddit-alien.svg +2 -2
- package/icons/reddit.svg +2 -2
- package/icons/reels-outline.svg +1 -1
- package/icons/salesforce.svg +2 -2
- package/icons/send-again-outline.svg +1 -1
- package/icons/send-again.svg +1 -1
- package/icons/tasks-check.svg +1 -1
- package/icons/tumblr.svg +2 -2
- package/icons/twitter.svg +2 -2
- package/icons/youtube.svg +2 -2
- package/icons/zendesk.svg +2 -2
- package/lib/Badge/Badge.js +2 -1
- package/lib/Banner/Banner.js +2 -1
- package/lib/Breadcrumb/Breadcrumb.js +2 -1
- package/lib/Card/Card.js +73 -28
- package/lib/Card/CardTypes.flow.js +1 -0
- package/lib/Card/index.flow.js +2 -1
- package/lib/Card/styles.js +96 -20
- package/lib/Card/subComponents.js +37 -0
- package/lib/Card/utils.js +46 -0
- package/lib/Checkbox/styles.js +6 -5
- package/lib/DatePicker/common.js +2 -1
- package/lib/Drawer/Drawer.js +9 -4
- package/lib/Icon/Icon.js +33 -10
- package/lib/IconViewBoxes.js +2 -0
- package/lib/IllustrationViewBoxes.d.js +1 -0
- package/lib/Indicator/Indicator.js +2 -1
- package/lib/Input/Input.js +2 -1
- package/lib/Listbox/Listbox.js +2 -1
- package/lib/Loader/styles.js +17 -12
- package/lib/LogoViewBoxes.d.js +1 -0
- package/lib/PartnerLogo/PartnerLogo.js +14 -13
- package/lib/PartnerLogo/PartnerLogoTypes.js +8 -1
- package/lib/PartnerLogo/index.js +1 -2
- package/lib/PartnerLogo/styles.js +1 -1
- package/lib/Select/Select.js +2 -1
- package/lib/Switch/Switch.js +1 -0
- package/lib/TableHeaderCell/TableHeaderCell.js +2 -1
- package/lib/TableRowAccordion/TableRowAccordion.js +6 -2
- package/lib/Toast/Toast.js +40 -34
- package/lib/ToggleHint/ToggleHint.js +4 -2
- package/lib/Token/Token.js +16 -2
- package/lib/Token/styles.js +1 -1
- package/lib/TokenInput/TokenInput.js +3 -1
- package/lib/index.flow.js +1 -1
- package/lib/systemProps/index.flow.js +14 -0
- package/lib/systemProps/index.js +1 -45
- package/lib/systemProps/systemProps.flow.js +14 -0
- package/lib/themes/dark/theme.js +1 -1
- package/lib/themes/light/theme.js +1 -1
- package/lib/types/shared.flow.js +1 -0
- package/lib/utils/index.js +22 -1
- package/package.json +16 -12
- package/__flow__/systemProps/index.js +0 -16
- package/dist/types/PartnerLogo/TypePartnerNames.d.ts +0 -2
- package/dist/types/PartnerLogo/TypePartnerNames.d.ts.map +0 -1
- package/lib/systemProps/systemProps.js +0 -14
- /package/commonjs/{PartnerLogo/TypePartnerNames.js → IconViewBoxes.d.js} +0 -0
- /package/commonjs/systemProps/{background.js → background.flow.js} +0 -0
- /package/commonjs/systemProps/{border.js → border.flow.js} +0 -0
- /package/commonjs/systemProps/{color.js → color.flow.js} +0 -0
- /package/commonjs/systemProps/{custom.js → custom.flow.js} +0 -0
- /package/commonjs/systemProps/{flexbox.js → flexbox.flow.js} +0 -0
- /package/commonjs/systemProps/{grid.js → grid.flow.js} +0 -0
- /package/commonjs/systemProps/{layout.js → layout.flow.js} +0 -0
- /package/commonjs/systemProps/{position.js → position.flow.js} +0 -0
- /package/commonjs/systemProps/{shadow.js → shadow.flow.js} +0 -0
- /package/commonjs/systemProps/{space.js → space.flow.js} +0 -0
- /package/commonjs/systemProps/{typography.js → typography.flow.js} +0 -0
- /package/commonjs/systemProps/{variant.js → variant.flow.js} +0 -0
- /package/lib/{PartnerLogo/TypePartnerNames.js → IconViewBoxes.d.js} +0 -0
- /package/lib/systemProps/{background.js → background.flow.js} +0 -0
- /package/lib/systemProps/{border.js → border.flow.js} +0 -0
- /package/lib/systemProps/{color.js → color.flow.js} +0 -0
- /package/lib/systemProps/{custom.js → custom.flow.js} +0 -0
- /package/lib/systemProps/{flexbox.js → flexbox.flow.js} +0 -0
- /package/lib/systemProps/{grid.js → grid.flow.js} +0 -0
- /package/lib/systemProps/{layout.js → layout.flow.js} +0 -0
- /package/lib/systemProps/{position.js → position.flow.js} +0 -0
- /package/lib/systemProps/{shadow.js → shadow.flow.js} +0 -0
- /package/lib/systemProps/{space.js → space.flow.js} +0 -0
- /package/lib/systemProps/{typography.js → typography.flow.js} +0 -0
- /package/lib/systemProps/{variant.js → variant.flow.js} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,92 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 15.0.0
|
|
4
|
+
|
|
5
|
+
### Major Changes
|
|
6
|
+
|
|
7
|
+
- 03601450: Introducing the new and improved Card component!
|
|
8
|
+
|
|
9
|
+
**Breaking changes**
|
|
10
|
+
|
|
11
|
+
- Replace `buttonProps` with relevant button props at surface level
|
|
12
|
+
- `tabindex`
|
|
13
|
+
- `disabled`
|
|
14
|
+
- `selected`
|
|
15
|
+
|
|
16
|
+
**Features**
|
|
17
|
+
|
|
18
|
+
- [x] Simplify markup
|
|
19
|
+
- [x] Fine tune styling
|
|
20
|
+
- [x] Add layout utility subcomponents to simplify common use cases
|
|
21
|
+
- [x] Improve component API and developer experience
|
|
22
|
+
- [x] Improve testing
|
|
23
|
+
- [x] TypeScript
|
|
24
|
+
- [x] Color contrast and keyboard accessible
|
|
25
|
+
- [x] Improve docs to better inform implementation
|
|
26
|
+
|
|
27
|
+
### Minor Changes
|
|
28
|
+
|
|
29
|
+
- 8e990d95: `Loader` component updated with accessible visual contrast
|
|
30
|
+
|
|
31
|
+
| Mode | Old | New |
|
|
32
|
+
| ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
33
|
+
| Dark |
|
|
34
|
+
|  |  |
|
|
35
|
+
| Light |  |  |
|
|
36
|
+
|
|
37
|
+
## 14.3.0
|
|
38
|
+
|
|
39
|
+
### Minor Changes
|
|
40
|
+
|
|
41
|
+
- 3e367848: Token A11y fixes:
|
|
42
|
+
- Add `aria-label` and `aria-hidden` to `Icons` in stories
|
|
43
|
+
- Add a visual indicator for invalid tokens
|
|
44
|
+
- Adjust styling
|
|
45
|
+
- Fix bug with error text token in Racine theme
|
|
46
|
+
- 539fa582: Visual changes to bitly, canva, glassdoor, and whatsapp icons
|
|
47
|
+
|
|
48
|
+
- Now that the Icon component renders PartnerLogos, the old Icon version of any icon with a PartnerLogo equivalent is no longer available for use.
|
|
49
|
+
- In most cases, the icon and the partner logo with the same name looked almost identical.
|
|
50
|
+
- However, a few icons had a different design when rendered as an Icon.
|
|
51
|
+
- bitly
|
|
52
|
+
- glassdoor
|
|
53
|
+
- canva
|
|
54
|
+
- whatsapp
|
|
55
|
+
- There is no migration necessary, but please be aware that if you are currently using Icon to render an icon for any of these partners (e.g., `<Icon name="bitly" />`), the resulting icons will change visually.
|
|
56
|
+
|
|
57
|
+
Before and after image with the old Icon versions on the left and the new PartnerLogo versions on the right:
|
|
58
|
+
|
|
59
|
+

|
|
60
|
+
|
|
61
|
+
- 539fa582: Removes uncolored network icons with PartnerLogo equivalents
|
|
62
|
+
- Previously, the following icons had no pre-filled color when rendered using Icon.
|
|
63
|
+
- canva, dropbox, facebook, facebook-audience-network, facebook-groups, feedly, glassdoor, google-drive, instagram, linkedin, linkedin-audience-network, messenger, pinterest, reddit, salesforce, slack, tumblr, twitter, twitter-audience-network, youtube, and zendesk
|
|
64
|
+
- Now that Icon serves as a pass-through to PartnerLogo, dark mode-compatible network coloring is built into these icons.
|
|
65
|
+
- 539fa582: Allows rendering PartnerLogos using Icon
|
|
66
|
+
- The Icon component has been updated to render a PartnerLogo with `logoType` "symbol" when a valid `partnerName` is passed as the `name` prop to `Icon`.
|
|
67
|
+
- This behavior is provided as a developer utility only:
|
|
68
|
+
- Logos rendered this way should still follow the same semantic rules as any other PartnerLogo.
|
|
69
|
+
- PartnerLogo is still recommended for direct usage, and it is still the only way to render `wordmark` or `lockup` PartnerLogos.
|
|
70
|
+
- 539fa582: Adds "symbol" logoType to PartnerLogo
|
|
71
|
+
- The "symbol" `logoType` corresponds to the icon-like version of the specified partner's logo.
|
|
72
|
+
- This version of a logo was previously accessible only by omitting the `logoType` prop.
|
|
73
|
+
- "symbol" is now the explicit default value for PartnerLogo's `logoType` prop. It was already the implicit default, so there will not be any change in behavior for existing PartnerLogo components that do not specify a `logoType`.
|
|
74
|
+
- 539fa582: Add `svgProps` to `Icon` and `PartnerLogo` components to allow passing props to the `svg`, such as for accessbility.
|
|
75
|
+
- f2f060a4: To provide a better experiance for users using assitive technologies. `Drawer` components will now include `role="dialog"` and receive autofocus when opened. `Drawer.Header` components will now allow optional `id` prop to allow `Drawer` components to leverage `aria-labelledby` attribute. `Icon` components inside `Drawer.Header` will now include `aria-hidden="true"`
|
|
76
|
+
|
|
77
|
+
### Patch Changes
|
|
78
|
+
|
|
79
|
+
- 539fa582: Removes nonfunctional PartnerLogo 'color' prop
|
|
80
|
+
- There were references to a `color` prop in the PartnerLogo component
|
|
81
|
+
- However, passing a `color` prop would not actually have any effect because PartnerLogo colors are locked per theme
|
|
82
|
+
- References to this prop have been removed
|
|
83
|
+
- 539fa582: Updates PartnerLogo width logic
|
|
84
|
+
- Applies a width property to the logo-svg itself only, not the containing element, to fix layout issues such as padding not being applied to PartnerLogos when using `display="flex"`.
|
|
85
|
+
- This may lead to small layout changes for existing PartnerLogos.
|
|
86
|
+
- 8814fba7: Sync icons from Figma
|
|
87
|
+
- 539fa582: `PartnerLogo` and `Icon` components will now include `role="img"` and an `aria-label` or `aria-hidden` should now be passed to make these accessible.
|
|
88
|
+
- 34f778af: fixes a bug that prevents fill colors from being removed from icons
|
|
89
|
+
|
|
3
90
|
## 14.2.0
|
|
4
91
|
|
|
5
92
|
### Minor Changes
|
|
@@ -1,21 +1,5 @@
|
|
|
1
1
|
// @flow
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import type {
|
|
4
|
-
import type { TypeBoxProps } from "../Box/index.flow";
|
|
5
|
-
type TypeChildrenlessButtonProps = {
|
|
6
|
-
...TypeButtonProps,
|
|
7
|
-
children?: void | null,
|
|
8
|
-
...
|
|
9
|
-
};
|
|
10
|
-
export type TypeCardProps = {
|
|
11
|
-
...TypeBoxProps,
|
|
12
|
-
onClick?: () => void,
|
|
13
|
-
href?: string,
|
|
14
|
-
children: React.Node,
|
|
15
|
-
/** Label describing the action that will be performed when the user interacts with the card */
|
|
16
|
-
ariaLabel: string,
|
|
17
|
-
buttonProps?: TypeChildrenlessButtonProps,
|
|
18
|
-
...
|
|
19
|
-
};
|
|
3
|
+
import type { TypeCardProps } from "./CardTypes.flow";
|
|
20
4
|
declare var Card: React.StatelessFunctionalComponent<TypeCardProps>;
|
|
21
5
|
declare export default typeof Card;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
// @flow
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import type { TypeIconProps } from "../Icon/index.flow";
|
|
5
|
+
import type { TypeStyledComponentsCommonProps, TypePropsWithChildren } from "../types/index.flow";
|
|
6
|
+
import type { TypeBorderSystemProps, TypeColorSystemProps, TypeFlexboxSystemProps, TypeGridSystemProps, TypeLayoutSystemProps, TypePositionSystemProps, TypeSpaceSystemProps } from "../systemProps/index.flow";
|
|
7
|
+
export type TypeSharedCardSystemProps = TypePropsWithChildren<{|
|
|
8
|
+
...TypeStyledComponentsCommonProps,
|
|
9
|
+
...TypeBorderSystemProps,
|
|
10
|
+
...TypeColorSystemProps,
|
|
11
|
+
...TypeFlexboxSystemProps,
|
|
12
|
+
...TypeGridSystemProps,
|
|
13
|
+
...TypeLayoutSystemProps,
|
|
14
|
+
...TypePositionSystemProps,
|
|
15
|
+
...TypeSpaceSystemProps,
|
|
16
|
+
key?: React.Key,
|
|
17
|
+
|}>;
|
|
18
|
+
export type TypeCardStyleProps = {|
|
|
19
|
+
elevation?: 'low' | 'medium' | 'high',
|
|
20
|
+
disabled?: boolean,
|
|
21
|
+
compositionalComponents?: boolean,
|
|
22
|
+
selected?: boolean,
|
|
23
|
+
|};
|
|
24
|
+
export type TypeCardStyleTransientProps = {|
|
|
25
|
+
$elevation?: 'low' | 'medium' | 'high',
|
|
26
|
+
$disabled?: boolean,
|
|
27
|
+
$compositionalComponents?: boolean,
|
|
28
|
+
$selected?: boolean,
|
|
29
|
+
|};
|
|
30
|
+
export type TypeStyledCard = {
|
|
31
|
+
...TypeSharedCardSystemProps,
|
|
32
|
+
...TypeCardStyleTransientProps,
|
|
33
|
+
...
|
|
34
|
+
};
|
|
35
|
+
export type TypeCardStyles = {|
|
|
36
|
+
...TypeSharedCardSystemProps,
|
|
37
|
+
...$Diff<TypeCardStyleProps, {|
|
|
38
|
+
compositionalComponents: any
|
|
39
|
+
|}>,
|
|
40
|
+
|};
|
|
41
|
+
declare type TypeOnClick = (event: SyntheticMouseEvent<HTMLElement> | SyntheticMouseEvent<HTMLElement>) => void;
|
|
42
|
+
export type TypeCardConditions = {|
|
|
43
|
+
role: 'link' | 'button' | 'checkbox' | 'presentation',
|
|
44
|
+
href?: string,
|
|
45
|
+
onClick?: TypeOnClick,
|
|
46
|
+
selected?: boolean,
|
|
47
|
+
|};
|
|
48
|
+
export type TypeCardProps = {
|
|
49
|
+
...TypeCardConditions,
|
|
50
|
+
...TypeCardStyles,
|
|
51
|
+
$elevation?: void,
|
|
52
|
+
$disabled?: void,
|
|
53
|
+
$compositionalComponents?: void,
|
|
54
|
+
$selected?: void,
|
|
55
|
+
...
|
|
56
|
+
};
|
|
57
|
+
export type TypeCardArea = {
|
|
58
|
+
...TypeSharedCardSystemProps,
|
|
59
|
+
$divider?: 'top' | 'bottom',
|
|
60
|
+
...
|
|
61
|
+
};
|
|
62
|
+
export type TypeStyledSelectedIcon = {
|
|
63
|
+
...TypeIconProps,
|
|
64
|
+
$selected: $PropertyType<TypeCardStyleTransientProps, '$selected'>,
|
|
65
|
+
...
|
|
66
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @flow
|
|
2
|
-
export type EnumIconNames = "active-listener" | "add-item" | "add-keyword" | "add-team-member" | "add-variable" | "address-card-outline" | "address-card-solid" | "adobe-experience-manager" | "ads" | "advocacy-outline" | "advocacy" | "android" | "apple" | "approval-indicator-outline" | "approval-indicator" | "archive" | "arrow-down-line" | "arrow-down" | "arrow-left-line" | "arrow-left" | "arrow-right-line" | "arrow-right" | "arrow-up-line" | "arrow-up" | "arrows" | "asset-library-outline" | "asset-library" | "assign" | "atom" | "audio" | "back-to-top" | "bambu-icon-outline" | "bambu-icon" | "barcode" | "basketball" | "bell-outline" | "bigcommerce" | "bitly" | "bold" | "book" | "bookmark" | "bot" | "browser" | "business" | "calendar-outline" | "calendar" | "camera-outline" | "camera-story" | "camera" | "campaign" | "canva" | "carousel" | "cart-plus-outline" | "cart-plus" | "check" | "chevron-down-filled" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up-down-filled" | "chevron-up-filled" | "chevron-up" | "circle-check-outline" | "circle-check" | "circle" | "circle+" | "circles" | "circlex" | "click-to-view" | "clicks" | "clipboard-outline" | "clipboard" | "clock" | "closed-captioning" | "cloud" | "code" | "columns" | "comment-ai-outline" | "comment-ai" | "comment-alt-outline" | "comment-alt" | "comment-lines-alt-outline" | "comment" | "compact-density" | "compact-indicator" | "comparison" | "competitor" | "compose" | "content-suggestions" | "credit-card" | "crop" | "crown" | "dashboard" | "deconstructed-negative-sentiment" | "deconstructed-neutral-sentiment" | "deconstructed-positive-sentiment" | "discovery" | "dislike-outline" | "dislike" | "dm-link-outline" | "dm-link" | "dotdotdot" | "download" | "drafts-outline" | "drafts" | "dropbox" | "duplicate-outline" | "duplicate" | "emoji-outline" | "emoji" | "empty-image" | "engagement-per-post" | "engagements" | "error" | "exchange-alt" | "expanded-indicator" | "export" | "extended-circles" | "external-link-alt" | "external-link" | "extreme-negative-sentiment" | "eye-outline" | "eye-slash-outline" | "eye-slash" | "eye" | "facebook-audience-network" | "facebook-branded-content-outline" | "facebook-branded-content" | "facebook-groups" | "facebook" | "fb-reactions-angry" | "fb-reactions-haha" | "fb-reactions-like" | "fb-reactions-love" | "fb-reactions-sad" | "fb-reactions-wow" | "feedly" | "feeds" | "female" | "file-chart-line" | "file-edit" | "file-times-solid" | "filter" | "flag-outline" | "flag" | "flat-negative-sentiment-outline" | "flat-negative-sentiment" | "flat-neutral-sentiment-outline" | "flat-neutral-sentiment" | "flat-positive-sentiment-outline" | "flat-positive-sentiment" | "folder-open" | "folder" | "follow-outline" | "follow" | "follower-increase" | "following" | "font" | "full-access" | "gear" | "gears" | "github" | "glassdoor" | "glasses" | "globe" | "google-analytics-color" | "google-business-messages" | "google-drive" | "google-my-business" | "grip" | "h1" | "h2" | "h3" | "h4" | "hamburger" | "hashtag" | "headset" | "heart-outline" | "heart" | "heartbeat" | "help-alt" | "help" | "hiking" | "history" | "home" | "hourglass" | "hubspot" | "image-caption" | "image" | "images" | "impressions-per-post" | "impressions" | "inactive-listener" | "inbox-action" | "inbox-views" | "inbox" | "indicator" | "industry" | "info" | "instagram" | "internal-activity-outline" | "internal-activity" | "italic" | "key" | "keyboard" | "laptop-phone" | "large-density" | "lift" | "like-outline" | "like" | "link" | "linkedin-audience-network" | "linkedin" | "list-ol" | "listening" | "lists" | "location-outline" | "location" | "lock" | "magic-wand" | "male" | "marketo" | "mention" | "message-preview-outline" | "message-preview" | "message" | "messages-outline" | "messages" | "messenger" | "metric-table" | "microsoft-dynamics" | "minus" | "mobile" | "monitor" | "moon" | "negative-sentiment" | "neutral-positive-sentiment" | "neutral-sentiment" | "new-trend" | "newspaper" | "no-access" | "notepad" | "notifications-publishing-outline" | "notifications-publishing" | "notifications" | "offline" | "online" | "paid-promotion-outline" | "paid-promotion" | "paid" | "paint" | "palette" | "paperclip" | "pause" | "pencil-outline" | "pencil" | "person" | "phone" | "pinterest-boards-outline" | "pinterest-boards" | "pinterest" | "play-circle" | "play" | "plug" | "plus" | "positive-sentiment" | "power-up-outline" | "power-up" | "profile-connect" | "profile-disconnect" | "publishing-outline" | "publishing" | "puzzle-piece" | "qr-code" | "queue" | "recommendation" | "reddit-alien" | "reddit" | "reels-outline" | "reels" | "referrals" | "refresh" | "rejected" | "reply-outline" | "reply" | "reporting-period" | "reporting" | "reports-home" | "reports" | "retweet" | "route" | "rss" | "sales" | "salesforce-cloud" | "salesforce" | "save-assets" | "saved-messages" | "saved-reply-outline" | "saved-reply" | "search" | "send-again-outline" | "send-again" | "sent-message-outline" | "sent-message" | "share" | "shopify" | "shopping-bag-outline" | "shopping-bag" | "show-navigation" | "slack" | "small-density" | "smiley" | "some-access" | "sparkles" | "spike-alert" | "star-half-alt-solid" | "star-of-life" | "star-outline" | "star" | "sticky-note-outline" | "sticky-note" | "stories" | "story" | "suggestions" | "sun" | "tag-outline" | "tag" | "targeting-outline" | "targeting" | "tasks-check" | "tasks-outline" | "tasks" | "team-conversation-outline" | "team-conversation" | "team-sprout-outline" | "team-sprout" | "team" | "text-asset" | "text" | "tiktok" | "times" | "tools" | "trash-can-outline" | "trash-can" | "trend-down" | "trend-neutral" | "trend-up" | "trends" | "triangle-black" | "triangle" | "tripadvisor-circle-outline" | "tripadvisor-circle" | "tripadvisor" | "trophy-outline" | "tumblr" | "twitter-audience-network" | "twitter" | "underline" | "unfollow-outline" | "unfollow" | "unlink" | "unlock" | "upload" | "user-circle" | "users" | "verified" | "video-camera-story" | "video-camera" | "vip" | "weight" | "whatsapp" | "window-maximize" | "window-minimize" | "window-regular" | "window-restore" | "woocommerce" | "x" | "yelp-full-star" | "yelp-half-star" | "yelp" | "youtube" | "zendesk";
|
|
2
|
+
export type EnumIconNames = "active-listener" | "add-item" | "add-keyword" | "add-team-member" | "add-variable" | "address-card-outline" | "address-card-solid" | "adobe-experience-manager" | "ads" | "advocacy-outline" | "advocacy" | "android" | "apple" | "approval-indicator-outline" | "approval-indicator" | "archive" | "arrow-down-line" | "arrow-down" | "arrow-left-line" | "arrow-left" | "arrow-right-line" | "arrow-right" | "arrow-up-line" | "arrow-up" | "arrows" | "asset-library-outline" | "asset-library" | "assign" | "atom" | "audio" | "back-to-top" | "bambu-icon-outline" | "bambu-icon" | "barcode" | "basketball" | "bell-outline" | "bigcommerce" | "bitly" | "bold" | "book" | "bookmark" | "bot" | "browser" | "business" | "calendar-outline" | "calendar" | "camera-outline" | "camera-story" | "camera" | "campaign" | "canva" | "carousel" | "cart-plus-outline" | "cart-plus" | "check" | "chevron-down-filled" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up-down-filled" | "chevron-up-filled" | "chevron-up" | "circle-check-outline" | "circle-check" | "circle" | "circle+" | "circles" | "circlex" | "click-to-view" | "clicks" | "clipboard-outline" | "clipboard" | "clock" | "closed-captioning" | "cloud" | "code" | "columns" | "comment-ai-outline" | "comment-ai" | "comment-alt-outline" | "comment-alt" | "comment-lines-alt-outline" | "comment" | "compact-density" | "compact-indicator" | "comparison" | "competitor" | "compose" | "content-suggestions" | "credit-card" | "crop" | "crown" | "dashboard" | "deconstructed-negative-sentiment" | "deconstructed-neutral-sentiment" | "deconstructed-positive-sentiment" | "discovery" | "dislike-outline" | "dislike" | "dm-link-outline" | "dm-link" | "dotdotdot" | "download" | "drafts-outline" | "drafts" | "dropbox" | "duplicate-outline" | "duplicate" | "emoji-outline" | "emoji" | "empty-image" | "engagement-per-post" | "engagements" | "error" | "exchange-alt" | "expanded-indicator" | "export" | "extended-circles" | "external-link-alt" | "external-link" | "extreme-negative-sentiment" | "eye-outline" | "eye-slash-outline" | "eye-slash" | "eye" | "facebook-audience-network" | "facebook-branded-content-outline" | "facebook-branded-content" | "facebook-groups" | "facebook" | "fb-reactions-angry" | "fb-reactions-haha" | "fb-reactions-like" | "fb-reactions-love" | "fb-reactions-sad" | "fb-reactions-wow" | "feedly" | "feeds" | "female" | "file-chart-line" | "file-edit" | "file-times-solid" | "filter" | "flag-outline" | "flag" | "flat-negative-sentiment-outline" | "flat-negative-sentiment" | "flat-neutral-sentiment-outline" | "flat-neutral-sentiment" | "flat-positive-sentiment-outline" | "flat-positive-sentiment" | "folder-open" | "folder" | "follow-outline" | "follow" | "follower-increase" | "following" | "font" | "full-access" | "gear" | "gears" | "github" | "glassdoor" | "glasses" | "globe" | "google-analytics-color" | "google-business-messages" | "google-drive" | "google-my-business" | "grip" | "h1" | "h2" | "h3" | "h4" | "hamburger" | "hand-sparkle-outline" | "hand-sparkle" | "hashtag" | "headset" | "heart-outline" | "heart" | "heartbeat" | "help-alt" | "help" | "hiking" | "history" | "home" | "hourglass" | "hubspot" | "image-caption" | "image" | "images" | "impressions-per-post" | "impressions" | "inactive-listener" | "inbox-action" | "inbox-views" | "inbox" | "indicator" | "industry" | "info" | "instagram" | "internal-activity-outline" | "internal-activity" | "italic" | "key" | "keyboard" | "laptop-phone" | "large-density" | "lift" | "like-outline" | "like" | "link" | "linkedin-audience-network" | "linkedin" | "list-ol" | "listening" | "lists" | "location-outline" | "location" | "lock" | "magic-wand" | "male" | "marketo" | "mention" | "message-preview-outline" | "message-preview" | "message" | "messages-outline" | "messages" | "messenger" | "metric-table" | "microsoft-dynamics" | "minus" | "mobile" | "monitor" | "moon" | "negative-sentiment" | "neutral-positive-sentiment" | "neutral-sentiment" | "new-trend" | "newspaper" | "no-access" | "notepad" | "notifications-publishing-outline" | "notifications-publishing" | "notifications" | "offline" | "online" | "paid-promotion-outline" | "paid-promotion" | "paid" | "paint" | "palette" | "paperclip" | "pause" | "pencil-outline" | "pencil" | "person" | "phone" | "pinterest-boards-outline" | "pinterest-boards" | "pinterest" | "play-circle" | "play" | "plug" | "plus" | "positive-sentiment" | "power-up-outline" | "power-up" | "profile-connect" | "profile-disconnect" | "publishing-outline" | "publishing" | "puzzle-piece" | "qr-code" | "queue" | "recommendation" | "reddit-alien" | "reddit" | "reels-outline" | "reels" | "referrals" | "refresh" | "rejected" | "reply-outline" | "reply" | "reporting-period" | "reporting" | "reports-home" | "reports" | "retweet" | "route" | "rss" | "sales" | "salesforce-cloud" | "salesforce" | "save-assets" | "saved-messages" | "saved-reply-outline" | "saved-reply" | "search" | "send-again-outline" | "send-again" | "sent-message-outline" | "sent-message" | "share" | "shopify" | "shopping-bag-outline" | "shopping-bag" | "show-navigation" | "slack" | "small-density" | "smiley" | "some-access" | "sparkles" | "spike-alert" | "star-half-alt-solid" | "star-of-life" | "star-outline" | "star" | "sticky-note-outline" | "sticky-note" | "stories" | "story" | "suggestions" | "sun" | "tag-outline" | "tag" | "targeting-outline" | "targeting" | "tasks-check" | "tasks-outline" | "tasks" | "team-conversation-outline" | "team-conversation" | "team-sprout-outline" | "team-sprout" | "team" | "text-asset" | "text" | "tiktok" | "times" | "tools" | "trash-can-outline" | "trash-can" | "trend-down" | "trend-neutral" | "trend-up" | "trends" | "triangle-black" | "triangle" | "tripadvisor-circle-outline" | "tripadvisor-circle" | "tripadvisor" | "trophy-outline" | "tumblr" | "twitter-audience-network" | "twitter" | "underline" | "unfollow-outline" | "unfollow" | "unlink" | "unlock" | "upload" | "user-circle" | "users" | "verified" | "video-camera-story" | "video-camera" | "vip" | "weight" | "whatsapp" | "window-maximize" | "window-minimize" | "window-regular" | "window-restore" | "woocommerce" | "x" | "yelp-full-star" | "yelp-half-star" | "yelp" | "youtube" | "zendesk";
|
|
@@ -5,6 +5,7 @@ import type { EnumIconNames } from "../EnumIconNames.flow";
|
|
|
5
5
|
import type { TypeWithDisplayName } from "../types/shared.flow";
|
|
6
6
|
import type { TypeTheme } from "../types/theme.flow";
|
|
7
7
|
import deprecatedIcons from "./deprecatedIcons.flow";
|
|
8
|
+
import type { TypePartnerNames } from "../PartnerLogo/TypePartnerNames.flow";
|
|
8
9
|
export type TypeIconSize = 'mini' // 12x12
|
|
9
10
|
// TODO: deprecate default in favor of small in future release
|
|
10
11
|
| 'default' // 16x16
|
|
@@ -13,7 +14,7 @@ export type TypeIconSize = 'mini' // 12x12
|
|
|
13
14
|
| 'large' // 32x32
|
|
14
15
|
| 'jumbo'; // 64x64
|
|
15
16
|
|
|
16
|
-
export type TypeIconName = EnumIconNames | $Keys<typeof deprecatedIcons
|
|
17
|
+
export type TypeIconName = EnumIconNames | $Keys<typeof deprecatedIcons> | TypePartnerNames;
|
|
17
18
|
export type TypeIconProps = {
|
|
18
19
|
/** Name of the icon in the svg sprite */
|
|
19
20
|
name: TypeIconName,
|
|
@@ -22,6 +23,7 @@ export type TypeIconProps = {
|
|
|
22
23
|
fixedWidth?: boolean,
|
|
23
24
|
/** Label used to describe the icon if not used with an accompanying visual label */
|
|
24
25
|
ariaLabel?: string,
|
|
26
|
+
svgProps?: {...},
|
|
25
27
|
...
|
|
26
28
|
};
|
|
27
29
|
export type TypeToggleProps = {
|
|
@@ -174,6 +174,8 @@ module.exports = {
|
|
|
174
174
|
"h3": "0 0 16 16",
|
|
175
175
|
"h4": "0 0 16 16",
|
|
176
176
|
"hamburger": "0 0 16 18",
|
|
177
|
+
"hand-sparkle-outline": "0 0 18 18",
|
|
178
|
+
"hand-sparkle": "0 0 18 18",
|
|
177
179
|
"hashtag": "0 0 16 16",
|
|
178
180
|
"headset": "0 0 16 16",
|
|
179
181
|
"heart-outline": "0 0 16 16",
|
|
@@ -6,7 +6,7 @@ export type TypePartnerLogoProps = {
|
|
|
6
6
|
partnerName: TypePartnerNames,
|
|
7
7
|
/** Manually override the default mode behavior by rendering a logo based on the background it's displayed on. */
|
|
8
8
|
backgroundType?: 'dark' | 'light',
|
|
9
|
-
logoType?: 'wordmark' | 'lockup',
|
|
9
|
+
logoType?: 'symbol' | 'wordmark' | 'lockup',
|
|
10
10
|
height?: string,
|
|
11
11
|
width?: string,
|
|
12
12
|
size?: 'mini' // 12x12
|
|
@@ -14,8 +14,8 @@ export type TypePartnerLogoProps = {
|
|
|
14
14
|
| 'medium' // 24x24
|
|
15
15
|
| 'large' // 32x32
|
|
16
16
|
| 'jumbo',
|
|
17
|
-
|
|
18
|
-
|
|
17
|
+
// 64x64
|
|
18
|
+
svgProps?: {...},
|
|
19
19
|
...
|
|
20
20
|
};
|
|
21
21
|
declare var PartnerLogo: React.StatelessFunctionalComponent<TypePartnerLogoProps>;
|
package/__flow__/index.flow.js
CHANGED
|
@@ -6,7 +6,7 @@ export type { EnumIllustrationNames } from "./EnumIllustrationNames.flow";
|
|
|
6
6
|
export type { EnumLogoNames } from "./EnumLogoNames.flow";
|
|
7
7
|
|
|
8
8
|
/* Theme and related types */
|
|
9
|
-
export * from "./systemProps";
|
|
9
|
+
export * from "./systemProps/index.flow";
|
|
10
10
|
export { default as theme } from "./themes/light/theme.flow";
|
|
11
11
|
export { default as darkTheme } from "./themes/dark/theme.flow";
|
|
12
12
|
export { sproutLightTheme, sproutDarkTheme } from "./themes/extendedThemes/sproutTheme/index.flow";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { background } from 'styled-system';
|
|
4
4
|
import type { Property$BackgroundImage, Property$BackgroundPosition, Property$Background, Property$BackgroundRepeat, Property$BackgroundSize } from 'csstype';
|
|
5
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow
|
|
5
|
+
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
6
6
|
|
|
7
7
|
// https://styled-system.com/table#background
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { border } from 'styled-system';
|
|
4
4
|
import type { Property$BorderBottomColor, Property$BorderBottomLeftRadius, Property$BorderBottom, Property$BorderBottomRightRadius, Property$BorderBottomStyle, Property$BorderBottomWidth, Property$BorderColor, Property$BorderLeftColor, Property$BorderLeft, Property$BorderLeftStyle, Property$BorderLeftWidth, Property$Border, Property$BorderRadius, Property$BorderRightColor, Property$BorderRight, Property$BorderRightStyle, Property$BorderRightWidth, Property$BorderStyle, Property$BorderTopColor, Property$BorderTopLeftRadius, Property$BorderTop, Property$BorderTopRightRadius, Property$BorderTopStyle, Property$BorderTopWidth, Property$BorderWidth } from 'csstype';
|
|
5
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow
|
|
5
|
+
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
6
6
|
|
|
7
7
|
// https://styled-system.com/table#border
|
|
8
8
|
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
|
|
3
3
|
import { color } from 'styled-system';
|
|
4
4
|
import type { Property$BackgroundColor, Property$Color, Property$Opacity } from 'csstype';
|
|
5
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow
|
|
5
|
+
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
6
6
|
|
|
7
7
|
// https://styled-system.com/table#color
|
|
8
8
|
|
|
9
|
-
type TypeBackgroundColorSystemProp = TypeResponsiveBaseSystemProp<Property$BackgroundColor>;
|
|
9
|
+
export type TypeBackgroundColorSystemProp = TypeResponsiveBaseSystemProp<Property$BackgroundColor>;
|
|
10
10
|
export type TypeColorSystemProps = $ReadOnly<{|
|
|
11
11
|
backgroundColor?: TypeBackgroundColorSystemProp,
|
|
12
12
|
bg?: TypeBackgroundColorSystemProp,
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { compose, system } from 'styled-system';
|
|
4
4
|
import type { Property$Cursor, Property$WhiteSpace } from 'csstype';
|
|
5
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow
|
|
5
|
+
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
6
6
|
|
|
7
7
|
// https://styled-system.com/custom-props
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { flexbox } from 'styled-system';
|
|
4
4
|
import type { Property$AlignItems, Property$AlignContent, Property$JustifyContent, Property$JustifyItems, Property$FlexWrap, Property$FlexDirection, Property$Flex, Property$FlexBasis, Property$JustifySelf, Property$AlignSelf, Property$Gap, Property$ColumnGap, Property$RowGap, Globals } from 'csstype';
|
|
5
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow
|
|
5
|
+
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
6
6
|
|
|
7
7
|
// https://styled-system.com/table#flexbox
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { grid } from 'styled-system';
|
|
4
4
|
import type { Property$GridArea, Property$GridAutoColumns, Property$GridAutoFlow, Property$GridAutoRows, Property$GridColumn, Property$GridColumnGap, Property$GridGap, Property$GridRow, Property$GridRowGap, Property$GridTemplateAreas, Property$GridTemplateColumns, Property$GridTemplateRows } from 'csstype';
|
|
5
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow
|
|
5
|
+
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
6
6
|
|
|
7
7
|
// https://styled-system.com/table#grid-layout
|
|
8
8
|
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
// @flow strict-local
|
|
2
|
+
|
|
3
|
+
export * from "./types.flow";
|
|
4
|
+
export * from "./background.flow";
|
|
5
|
+
export * from "./border.flow";
|
|
6
|
+
export * from "./color.flow";
|
|
7
|
+
export * from "./custom.flow";
|
|
8
|
+
export * from "./flexbox.flow";
|
|
9
|
+
export * from "./grid.flow";
|
|
10
|
+
export * from "./layout.flow";
|
|
11
|
+
export * from "./position.flow";
|
|
12
|
+
export * from "./shadow.flow";
|
|
13
|
+
export * from "./space.flow";
|
|
14
|
+
export * from "./systemProps.flow";
|
|
15
|
+
export * from "./typography.flow";
|
|
16
|
+
export * from "./variant.flow";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { layout } from 'styled-system';
|
|
4
4
|
import type { Property$Display, Property$Height, Property$MaxHeight, Property$MaxWidth, Property$MinHeight, Property$MinWidth, Property$Overflow, Property$OverflowX, Property$OverflowY, Property$VerticalAlign, Property$Width } from 'csstype';
|
|
5
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow
|
|
5
|
+
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
6
6
|
|
|
7
7
|
// https://styled-system.com/table#layout
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { position } from 'styled-system';
|
|
4
4
|
import type { Property$Bottom, Property$Left, Property$Position, Property$Right, Property$Top, Property$ZIndex } from 'csstype';
|
|
5
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow
|
|
5
|
+
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
6
6
|
|
|
7
7
|
// https://styled-system.com/table#position
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { shadow } from 'styled-system';
|
|
4
4
|
import type { Property$BoxShadow, Property$TextShadow } from 'csstype';
|
|
5
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow
|
|
5
|
+
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
6
6
|
|
|
7
7
|
// https://styled-system.com/table#shadow
|
|
8
8
|
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
import { space } from 'styled-system';
|
|
5
5
|
import type { Property$Margin, Property$MarginBottom, Property$MarginLeft, Property$MarginRight, Property$MarginTop, Property$Padding, Property$PaddingBottom, Property$PaddingLeft, Property$PaddingRight, Property$PaddingTop } from 'csstype';
|
|
6
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow
|
|
6
|
+
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
7
7
|
|
|
8
8
|
// https://styled-system.com/table#space
|
|
9
9
|
// prettier-ignore
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// @flow strict-local
|
|
2
2
|
import { compose } from 'styled-system';
|
|
3
|
-
import { backgroundSystemProps, type TypeBackgroundSystemProps } from "./background";
|
|
4
|
-
import { borderSystemProps, type TypeBorderSystemProps } from "./border";
|
|
5
|
-
import { colorSystemProps, type TypeColorSystemProps } from "./color";
|
|
6
|
-
import { customSystemProps, type TypeCustomSystemProps } from "./custom";
|
|
7
|
-
import { flexboxSystemProps, type TypeFlexboxSystemProps } from "./flexbox";
|
|
8
|
-
import { gridSystemProps, type TypeGridSystemProps } from "./grid";
|
|
9
|
-
import { layoutSystemProps, type TypeLayoutSystemProps } from "./layout";
|
|
10
|
-
import { positionSystemProps, type TypePositionSystemProps } from "./position";
|
|
11
|
-
import { shadowSystemProps, type TypeShadowSystemProps } from "./shadow";
|
|
12
|
-
import { spaceSystemProps, type TypeSpaceSystemProps } from "./space";
|
|
13
|
-
import { typographySystemProps, type TypeTypographySystemProps } from "./typography";
|
|
14
|
-
import { variantSystemProps, type TypeVariantSystemProps } from "./variant";
|
|
15
|
-
import type { StyledSystemStyleFn } from "./types.flow
|
|
3
|
+
import { backgroundSystemProps, type TypeBackgroundSystemProps } from "./background.flow";
|
|
4
|
+
import { borderSystemProps, type TypeBorderSystemProps } from "./border.flow";
|
|
5
|
+
import { colorSystemProps, type TypeColorSystemProps } from "./color.flow";
|
|
6
|
+
import { customSystemProps, type TypeCustomSystemProps } from "./custom.flow";
|
|
7
|
+
import { flexboxSystemProps, type TypeFlexboxSystemProps } from "./flexbox.flow";
|
|
8
|
+
import { gridSystemProps, type TypeGridSystemProps } from "./grid.flow";
|
|
9
|
+
import { layoutSystemProps, type TypeLayoutSystemProps } from "./layout.flow";
|
|
10
|
+
import { positionSystemProps, type TypePositionSystemProps } from "./position.flow";
|
|
11
|
+
import { shadowSystemProps, type TypeShadowSystemProps } from "./shadow.flow";
|
|
12
|
+
import { spaceSystemProps, type TypeSpaceSystemProps } from "./space.flow";
|
|
13
|
+
import { typographySystemProps, type TypeTypographySystemProps } from "./typography.flow";
|
|
14
|
+
import { variantSystemProps, type TypeVariantSystemProps } from "./variant.flow";
|
|
15
|
+
import type { StyledSystemStyleFn } from "./types.flow";
|
|
16
16
|
export type TypeSystemProps = $ReadOnly<{|
|
|
17
17
|
...TypeCustomSystemProps,
|
|
18
18
|
...TypeVariantSystemProps,
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
import { typography } from 'styled-system';
|
|
4
4
|
import type { Property$FontFamily, Property$FontSize, Property$FontStyle, Property$FontWeight, Property$LetterSpacing, Property$LineHeight, Property$TextAlign } from 'csstype';
|
|
5
5
|
import typeof { fontWeights as TypeofFontWeights } from "../themes/light/theme.flow";
|
|
6
|
-
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow
|
|
6
|
+
import type { StyledSystemStyleFn, TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
7
7
|
|
|
8
8
|
// https://styled-system.com/table#typography
|
|
9
9
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @flow strict-local
|
|
2
2
|
import { compose, variant } from 'styled-system';
|
|
3
3
|
import type { TypeTypography } from "../types/theme.flow";
|
|
4
|
-
import type { TypeResponsiveBaseSystemProp } from "./types.flow
|
|
4
|
+
import type { TypeResponsiveBaseSystemProp } from "./types.flow";
|
|
5
5
|
|
|
6
6
|
// https://styled-system.com/variants
|
|
7
7
|
|
package/commonjs/Badge/Badge.js
CHANGED
|
@@ -52,7 +52,8 @@ var Badge = function Badge(_ref) {
|
|
|
52
52
|
}, iconName ? /*#__PURE__*/React.createElement(_Icon.default, {
|
|
53
53
|
mr: 200,
|
|
54
54
|
name: iconName,
|
|
55
|
-
size: size === 'small' ? 'mini' : 'default'
|
|
55
|
+
size: size === 'small' ? 'mini' : 'default',
|
|
56
|
+
"aria-hidden": true
|
|
56
57
|
}) : null, children || text));
|
|
57
58
|
};
|
|
58
59
|
var _default = Badge;
|
|
@@ -49,7 +49,8 @@ var Breadcrumb = function Breadcrumb(_ref2) {
|
|
|
49
49
|
px: 200,
|
|
50
50
|
py: 0
|
|
51
51
|
}, /*#__PURE__*/React.createElement(_Icon.default, {
|
|
52
|
-
name: "dotdotdot"
|
|
52
|
+
name: "dotdotdot",
|
|
53
|
+
"aria-hidden": true
|
|
53
54
|
}))), listItems.map(function (item, i) {
|
|
54
55
|
// @ts-notes - item is a childNode which can be a string or number but `cloneElement` requires props
|
|
55
56
|
var itemElem = _typeof(item) === 'object' && 'props' in item ? item : /*#__PURE__*/React.createElement("span", null, "item");
|