@hero-design/rn 8.110.0 → 8.111.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/.turbo/turbo-build.log +3 -3
- package/CHANGELOG.md +18 -0
- package/assets/fonts/BeVietnamPro-BoldItalic.ttf +0 -0
- package/assets/fonts/BeVietnamPro-LightItalic.ttf +0 -0
- package/assets/fonts/BeVietnamPro-RegularItalic.ttf +0 -0
- package/assets/fonts/BeVietnamPro-SemiBoldItalic.ttf +0 -0
- package/assets/fonts/Saiga-LightItalic.otf +0 -0
- package/assets/fonts/Saiga-MediumItalic.otf +0 -0
- package/assets/fonts/Saiga-RegularItalic.otf +0 -0
- package/es/index.js +86 -40
- package/lib/index.js +86 -40
- package/package.json +7 -7
- package/src/components/Accordion/__tests__/__snapshots__/AccordionItem.spec.tsx.snap +48 -24
- package/src/components/Accordion/__tests__/__snapshots__/index.spec.tsx.snap +72 -36
- package/src/components/Accordion/index.tsx +6 -1
- package/src/components/Alert/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/components/Alert/index.tsx +10 -2
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +70 -0
- package/src/components/AppCue/__tests__/__snapshots__/StyledAppCue.tsx.snap +121 -97
- package/src/components/Attachment/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/StyledAvatarStack.spec.tsx.snap +2 -0
- package/src/components/Avatar/AvatarStack/__tests__/__snapshots__/index.spec.tsx.snap +31 -0
- package/src/components/Avatar/__tests__/__snapshots__/StyledAvatar.spec.tsx.snap +1 -0
- package/src/components/Avatar/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Badge/__tests__/__snapshots__/Badge.spec.tsx.snap +8 -0
- package/src/components/Badge/__tests__/__snapshots__/Status.spec.tsx.snap +1 -0
- package/src/components/BottomNavigation/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/BottomSheet/__tests__/__snapshots__/index.spec.tsx.snap +8 -3
- package/src/components/Button/Button.tsx +10 -4
- package/src/components/Button/UtilityButton/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Button/__tests__/__snapshots__/Button.spec.tsx.snap +51 -18
- package/src/components/Button/__tests__/__snapshots__/StyledButton.spec.tsx.snap +13 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRangeConnector.spec.tsx.snap +5 -0
- package/src/components/Calendar/__tests__/__snapshots__/CalendarRowItem.spec.tsx.snap +5 -0
- package/src/components/Card/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
- package/src/components/Carousel/__tests__/__snapshots__/CardCarousel.spec.tsx.snap +16 -0
- package/src/components/Carousel/__tests__/__snapshots__/index.spec.tsx.snap +20 -0
- package/src/components/Chart/ColumnChart/__tests__/__snapshots__/index.spec.tsx.snap +49 -0
- package/src/components/Chart/Line/__tests__/__snapshots__/index.spec.tsx.snap +60 -0
- package/src/components/Chart/shared/__tests__/__snapshots__/ChartFrame.spec.tsx.snap +62 -0
- package/src/components/Chart/shared/__tests__/__snapshots__/ChartHeader.spec.tsx.snap +2 -0
- package/src/components/Chart/shared/__tests__/__snapshots__/EmptyState.spec.tsx.snap +2 -0
- package/src/components/Chart/shared/__tests__/__snapshots__/XAxis.spec.tsx.snap +12 -0
- package/src/components/Chart/shared/__tests__/__snapshots__/YAxis.spec.tsx.snap +36 -0
- package/src/components/Checkbox/__tests__/__snapshots__/DefaultCheckBox.spec.tsx.snap +4 -0
- package/src/components/Checkbox/__tests__/__snapshots__/InlineCheckBox.spec.tsx.snap +6 -0
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +19 -0
- package/src/components/Chip/index.tsx +15 -8
- package/src/components/Collapse/__tests__/__snapshots__/StyledCollapse.spec.tsx.snap +8 -5
- package/src/components/Collapse/__tests__/__snapshots__/index.spec.tsx.snap +20 -12
- package/src/components/ContentNavigator/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +3 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +6 -0
- package/src/components/Drawer/__tests__/__snapshots__/index.spec.tsx.snap +13 -9
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -0
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/FilterTrigger/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +6 -0
- package/src/components/HeroDesignProvider/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/List/__tests__/__snapshots__/BasicListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +13 -0
- package/src/components/List/__tests__/__snapshots__/StyledBasicListItem.spec.tsx.snap +4 -0
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +4 -0
- package/src/components/Modal/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/PinInput/__tests__/__snapshots__/PinCell.spec.tsx.snap +5 -0
- package/src/components/PinInput/__tests__/__snapshots__/index.spec.tsx.snap +4 -0
- package/src/components/PinInput/index.tsx +6 -1
- package/src/components/Portal/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Progress/__tests__/__snapshots__/index.spec.js.snap +3 -0
- package/src/components/Radio/RadioGroup.tsx +6 -1
- package/src/components/Radio/__tests__/__snapshots__/Radio.spec.tsx.snap +4 -0
- package/src/components/Radio/__tests__/__snapshots__/RadioGroup.spec.tsx.snap +10 -0
- package/src/components/Rate/__tests__/__snapshots__/index.spec.tsx.snap +84 -48
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +4 -0
- package/src/components/Search/SearchOneLine.tsx +6 -0
- package/src/components/Search/SearchTwoLine.tsx +6 -1
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +2 -0
- package/src/components/Search/__tests__/__snapshots__/SearchSuffixIcon.spec.tsx.snap +1 -0
- package/src/components/Search/__tests__/__snapshots__/SearchTwoLine.spec.tsx.snap +4 -0
- package/src/components/SectionHeading/__tests__/__snapshots__/index.spec.tsx.snap +7 -0
- package/src/components/SegmentedControl/__tests__/__snapshots__/SegmentedItem.spec.tsx.snap +1 -0
- package/src/components/SegmentedControl/__tests__/__snapshots__/index.spec.tsx.snap +3 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +20 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +57 -3
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +24 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +45 -3
- package/src/components/StatusScreens/Empty/__tests__/__snapshots__/index.spec.tsx.snap +8 -0
- package/src/components/StatusScreens/Error/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/components/StatusScreens/Success/__tests__/__snapshots__/index.spec.tsx.snap +16 -0
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +3 -0
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +2 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/Option.spec.tsx.snap +1 -0
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -0
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +9 -6
- package/src/components/Tabs/__tests__/__snapshots__/SceneView.spec.tsx.snap +3 -0
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabs.spec.tsx.snap +219 -138
- package/src/components/Tabs/__tests__/__snapshots__/ScrollableTabsHeader.spec.tsx.snap +102 -62
- package/src/components/Tabs/__tests__/__snapshots__/TabWithBadge.spec.tsx.snap +1 -0
- package/src/components/Tabs/__tests__/__snapshots__/index.spec.tsx.snap +18 -0
- package/src/components/Tag/__tests__/__snapshots__/Tag.spec.tsx.snap +10 -0
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +7 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +40 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +3 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +5 -0
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +13 -0
- package/src/components/Toolbar/ToolbarGroup.tsx +18 -4
- package/src/components/Toolbar/__tests__/ToolbarGroup.spec.tsx +34 -1
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarGroup.spec.tsx.snap +9 -0
- package/src/components/Toolbar/__tests__/__snapshots__/ToolbarItem.spec.tsx.snap +7 -0
- package/src/components/Typography/Body/StyledBody.tsx +24 -19
- package/src/components/Typography/Body/__tests__/__snapshots__/index.spec.tsx.snap +229 -0
- package/src/components/Typography/Body/__tests__/index.spec.tsx +19 -0
- package/src/components/Typography/Body/index.tsx +8 -2
- package/src/components/Typography/Caption/StyledCaption.tsx +15 -8
- package/src/components/Typography/Caption/__tests__/__snapshots__/index.spec.tsx.snap +219 -0
- package/src/components/Typography/Caption/__tests__/index.spec.tsx +19 -0
- package/src/components/Typography/Caption/index.tsx +18 -10
- package/src/components/Typography/Label/StyledLabel.tsx +16 -6
- package/src/components/Typography/Label/__tests__/__snapshots__/StyledLabel.tsx.snap +8 -0
- package/src/components/Typography/Label/__tests__/__snapshots__/index.spec.tsx.snap +126 -0
- package/src/components/Typography/Label/__tests__/index.spec.tsx +12 -0
- package/src/components/Typography/Label/index.tsx +17 -9
- package/src/components/Typography/Title/StyledTitle.tsx +22 -8
- package/src/components/Typography/Title/__tests__/__snapshots__/index.spec.tsx.snap +441 -0
- package/src/components/Typography/Title/__tests__/index.spec.tsx +23 -0
- package/src/components/Typography/Title/index.tsx +8 -2
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +24 -10
- package/src/theme/components/typography.ts +12 -10
- package/src/theme/global/typography.ts +9 -0
- package/stats/8.110.1/rn-stats.html +4844 -0
- package/stats/8.111.0/rn-stats.html +4844 -0
- package/types/components/Accordion/index.d.ts +5 -1
- package/types/components/Alert/index.d.ts +8 -2
- package/types/components/Button/Button.d.ts +8 -4
- package/types/components/Chip/index.d.ts +12 -3
- package/types/components/PinInput/index.d.ts +4 -0
- package/types/components/Radio/RadioGroup.d.ts +5 -1
- package/types/components/Radio/index.d.ts +1 -1
- package/types/components/Search/SearchOneLine.d.ts +4 -0
- package/types/components/Search/SearchTwoLine.d.ts +4 -0
- package/types/components/TextInput/StyledTextInput.d.ts +1 -1
- package/types/components/Toolbar/ToolbarGroup.d.ts +11 -3
- package/types/components/Toolbar/index.d.ts +1 -1
- package/types/components/Typography/Body/StyledBody.d.ts +1 -0
- package/types/components/Typography/Body/index.d.ts +6 -2
- package/types/components/Typography/Caption/StyledCaption.d.ts +1 -0
- package/types/components/Typography/Caption/index.d.ts +5 -1
- package/types/components/Typography/Label/StyledLabel.d.ts +1 -0
- package/types/components/Typography/Label/index.d.ts +5 -1
- package/types/components/Typography/Title/StyledTitle.d.ts +1 -0
- package/types/components/Typography/Title/index.d.ts +6 -2
- package/types/theme/components/typography.d.ts +12 -10
- package/types/theme/global/typography.d.ts +3 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:2763) ExperimentalWarning: Importing JSON modules is an experimental feature and might change at any time
|
|
2
2
|
(Use `node --trace-warnings ...` to show where the warning was created)
|
|
3
3
|
[36m
|
|
4
4
|
[1msrc/index.ts[22m → [1mlib/index.js, es/index.js[22m...[39m
|
|
@@ -9,9 +9,9 @@ node_modules/d3-selection/src/selection/index.js -> node_modules/d3-selection/sr
|
|
|
9
9
|
...and 12 more
|
|
10
10
|
[1m[33m(!) [plugin replace] @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.[39m[22m
|
|
11
11
|
[1m[33m(!) [plugin node-resolve] preferring built-in module 'events' over local alternative at '/home/runner/_work/hero-design/hero-design/node_modules/events/events.js', pass 'preferBuiltins: false' to disable this behavior or 'preferBuiltins: true' to disable this warning.or passing a function to 'preferBuiltins' to provide more fine-grained control over which built-in modules to prefer.[39m[22m
|
|
12
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [1m2m
|
|
12
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m2m 5.7s[22m[39m
|
|
13
13
|
[36m
|
|
14
14
|
[1m/home/runner/_work/hero-design/hero-design/packages/rn/src/locales/en_AU.ts, /home/runner/_work/hero-design/hero-design/packages/rn/src/locales/en_CA.ts, /home/runner/_work/hero-design/hero-design/packages/rn/src/locales/index.ts, /home/runner/_work/hero-design/hero-design/packages/rn/src/locales/types.ts[22m → [1m., .[22m...[39m
|
|
15
15
|
[1m[33m(!) Generated empty chunks[39m[22m
|
|
16
16
|
"locales/types" and "locales/types"
|
|
17
|
-
[32mcreated [1m., .[22m in [
|
|
17
|
+
[32mcreated [1m., .[22m in [1m38.3s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.111.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#4287](https://github.com/Thinkei/hero-design/pull/4287) [`e7d09c0d84402f39f49d9de984b435de75fda538`](https://github.com/Thinkei/hero-design/commit/e7d09c0d84402f39f49d9de984b435de75fda538) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Typography.Body][typography.caption][Typography.Label] Support italic style prop
|
|
8
|
+
|
|
9
|
+
- [#4277](https://github.com/Thinkei/hero-design/pull/4277) [`41d0eb39bb03540a9c2d47c40c79846739ebedcf`](https://github.com/Thinkei/hero-design/commit/41d0eb39bb03540a9c2d47c40c79846739ebedcf) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Typography.Title] Support italic style
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#4285](https://github.com/Thinkei/hero-design/pull/4285) [`52f1ccb86d7c307f93aa95ccf7b9e11ff97e542a`](https://github.com/Thinkei/hero-design/commit/52f1ccb86d7c307f93aa95ccf7b9e11ff97e542a) Thanks [@haudao-eh](https://github.com/haudao-eh)! - Improve component's deprecated props values typing
|
|
14
|
+
|
|
15
|
+
## 8.110.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- [#4262](https://github.com/Thinkei/hero-design/pull/4262) [`7fbdf8736b42b9a9cb1c7ee203c69192b6d12a1f`](https://github.com/Thinkei/hero-design/commit/7fbdf8736b42b9a9cb1c7ee203c69192b6d12a1f) Thanks [@ttkien](https://github.com/ttkien)! - Upgrade react-native 0.77.3
|
|
20
|
+
|
|
3
21
|
## 8.110.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/es/index.js
CHANGED
|
@@ -5171,13 +5171,19 @@ var getFonts = function getFonts(_ref) {
|
|
|
5171
5171
|
return {
|
|
5172
5172
|
neutral: {
|
|
5173
5173
|
light: "".concat(neutral, "-Light"),
|
|
5174
|
+
lightItalic: "".concat(neutral, "-LightItalic"),
|
|
5174
5175
|
regular: "".concat(neutral, "-Regular"),
|
|
5175
|
-
|
|
5176
|
+
regularItalic: "".concat(neutral, "-RegularItalic"),
|
|
5177
|
+
semiBold: "".concat(neutral, "-SemiBold"),
|
|
5178
|
+
semiBoldItalic: "".concat(neutral, "-SemiBoldItalic")
|
|
5176
5179
|
},
|
|
5177
5180
|
playful: {
|
|
5178
5181
|
light: "".concat(playful, "-Light"),
|
|
5182
|
+
lightItalic: "".concat(playful, "-LightItalic"),
|
|
5179
5183
|
regular: "".concat(playful, "-Regular"),
|
|
5180
|
-
|
|
5184
|
+
regularItalic: "".concat(playful, "-RegularItalic"),
|
|
5185
|
+
semiBold: "".concat(playful, "-Medium"),
|
|
5186
|
+
semiBoldItalic: "".concat(playful, "-MediumItalic")
|
|
5181
5187
|
}
|
|
5182
5188
|
};
|
|
5183
5189
|
};
|
|
@@ -7442,29 +7448,31 @@ var getTypographyTheme = function getTypographyTheme(theme) {
|
|
|
7442
7448
|
titles: {
|
|
7443
7449
|
neutral: {
|
|
7444
7450
|
h1: theme.fonts.neutral.regular,
|
|
7451
|
+
h1Italic: theme.fonts.neutral.regularItalic,
|
|
7445
7452
|
h2: theme.fonts.neutral.semiBold,
|
|
7453
|
+
h2Italic: theme.fonts.neutral.semiBoldItalic,
|
|
7446
7454
|
h3: theme.fonts.neutral.semiBold,
|
|
7455
|
+
h3Italic: theme.fonts.neutral.semiBoldItalic,
|
|
7447
7456
|
h4: theme.fonts.neutral.semiBold,
|
|
7457
|
+
h4Italic: theme.fonts.neutral.semiBoldItalic,
|
|
7448
7458
|
h5: theme.fonts.neutral.semiBold,
|
|
7449
|
-
|
|
7459
|
+
h5Italic: theme.fonts.neutral.semiBoldItalic,
|
|
7460
|
+
h6: theme.fonts.neutral.regular,
|
|
7461
|
+
h6Italic: theme.fonts.neutral.regularItalic
|
|
7450
7462
|
},
|
|
7451
7463
|
playful: {
|
|
7452
7464
|
h1: theme.fonts.playful.semiBold,
|
|
7465
|
+
h1Italic: theme.fonts.playful.semiBoldItalic,
|
|
7453
7466
|
h2: theme.fonts.playful.semiBold,
|
|
7467
|
+
h2Italic: theme.fonts.playful.semiBoldItalic,
|
|
7454
7468
|
h3: theme.fonts.playful.semiBold,
|
|
7469
|
+
h3Italic: theme.fonts.playful.semiBoldItalic,
|
|
7455
7470
|
h4: theme.fonts.playful.semiBold,
|
|
7471
|
+
h4Italic: theme.fonts.playful.semiBoldItalic,
|
|
7456
7472
|
h5: theme.fonts.playful.semiBold,
|
|
7457
|
-
|
|
7458
|
-
|
|
7459
|
-
|
|
7460
|
-
body: {
|
|
7461
|
-
neutral: {
|
|
7462
|
-
semiBold: theme.fonts.neutral.semiBold,
|
|
7463
|
-
regular: theme.fonts.neutral.regular
|
|
7464
|
-
},
|
|
7465
|
-
playful: {
|
|
7466
|
-
semiBold: theme.fonts.playful.semiBold,
|
|
7467
|
-
regular: theme.fonts.playful.regular
|
|
7473
|
+
h5Italic: theme.fonts.playful.semiBoldItalic,
|
|
7474
|
+
h6: theme.fonts.playful.regular,
|
|
7475
|
+
h6Italic: theme.fonts.playful.regularItalic
|
|
7468
7476
|
}
|
|
7469
7477
|
}
|
|
7470
7478
|
};
|
|
@@ -8060,17 +8068,20 @@ var FONTWEIGHT_MAP$1 = {
|
|
|
8060
8068
|
var StyledCaption = index$c(Text$1)(function (_ref) {
|
|
8061
8069
|
var themeFontWeight = _ref.themeFontWeight,
|
|
8062
8070
|
themeIntent = _ref.themeIntent,
|
|
8063
|
-
theme = _ref.theme
|
|
8071
|
+
theme = _ref.theme,
|
|
8072
|
+
themeIsItalic = _ref.themeIsItalic;
|
|
8073
|
+
var baseFontWeight = FONTWEIGHT_MAP$1[themeFontWeight];
|
|
8074
|
+
var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts.neutral["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts.neutral[baseFontWeight];
|
|
8064
8075
|
return {
|
|
8065
8076
|
fontSize: theme.__hd__.typography.fontSizes.caption,
|
|
8066
8077
|
lineHeight: theme.__hd__.typography.lineHeights.caption,
|
|
8067
8078
|
letterSpacing: themeFontWeight === 'regular' ? 0.36 : 0.24,
|
|
8068
8079
|
color: theme.__hd__.typography.colors[themeIntent],
|
|
8069
|
-
fontFamily:
|
|
8080
|
+
fontFamily: fontFamily
|
|
8070
8081
|
};
|
|
8071
8082
|
});
|
|
8072
8083
|
|
|
8073
|
-
var _excluded$N = ["children", "fontWeight", "intent", "allowFontScaling"];
|
|
8084
|
+
var _excluded$N = ["children", "fontWeight", "intent", "allowFontScaling", "fontStyle"];
|
|
8074
8085
|
var Caption = function Caption(_ref) {
|
|
8075
8086
|
var children = _ref.children,
|
|
8076
8087
|
_ref$fontWeight = _ref.fontWeight,
|
|
@@ -8079,35 +8090,46 @@ var Caption = function Caption(_ref) {
|
|
|
8079
8090
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
8080
8091
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
8081
8092
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8093
|
+
_ref$fontStyle = _ref.fontStyle,
|
|
8094
|
+
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8082
8095
|
nativeProps = _objectWithoutProperties(_ref, _excluded$N);
|
|
8083
8096
|
return /*#__PURE__*/React__default.createElement(StyledCaption, _extends$1({}, nativeProps, {
|
|
8084
8097
|
themeFontWeight: fontWeight,
|
|
8085
8098
|
themeIntent: intent,
|
|
8099
|
+
themeIsItalic: fontStyle === 'italic',
|
|
8086
8100
|
allowFontScaling: allowFontScaling
|
|
8087
8101
|
}), children);
|
|
8088
8102
|
};
|
|
8089
8103
|
|
|
8090
8104
|
var StyledLabel$1 = index$c(Text$1)(function (_ref) {
|
|
8091
8105
|
var themeIntent = _ref.themeIntent,
|
|
8092
|
-
theme = _ref.theme
|
|
8106
|
+
theme = _ref.theme,
|
|
8107
|
+
themeIsItalic = _ref.themeIsItalic;
|
|
8108
|
+
// For Label, we assume 'regular' weight for base font family
|
|
8109
|
+
var baseFontWeight = 'regular';
|
|
8110
|
+
var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts.neutral["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts.neutral[baseFontWeight];
|
|
8093
8111
|
return {
|
|
8094
8112
|
fontSize: theme.__hd__.typography.fontSizes.label,
|
|
8095
8113
|
lineHeight: theme.__hd__.typography.lineHeights.label,
|
|
8096
8114
|
letterSpacing: 0,
|
|
8097
|
-
color: theme.__hd__.typography.colors[themeIntent]
|
|
8115
|
+
color: theme.__hd__.typography.colors[themeIntent],
|
|
8116
|
+
fontFamily: fontFamily
|
|
8098
8117
|
};
|
|
8099
8118
|
});
|
|
8100
8119
|
|
|
8101
|
-
var _excluded$M = ["children", "intent", "allowFontScaling"];
|
|
8120
|
+
var _excluded$M = ["children", "intent", "allowFontScaling", "fontStyle"];
|
|
8102
8121
|
var Label = function Label(_ref) {
|
|
8103
8122
|
var children = _ref.children,
|
|
8104
8123
|
_ref$intent = _ref.intent,
|
|
8105
8124
|
intent = _ref$intent === void 0 ? 'body' : _ref$intent,
|
|
8106
8125
|
_ref$allowFontScaling = _ref.allowFontScaling,
|
|
8107
8126
|
allowFontScaling = _ref$allowFontScaling === void 0 ? false : _ref$allowFontScaling,
|
|
8127
|
+
_ref$fontStyle = _ref.fontStyle,
|
|
8128
|
+
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8108
8129
|
nativeProps = _objectWithoutProperties(_ref, _excluded$M);
|
|
8109
8130
|
return /*#__PURE__*/React__default.createElement(StyledLabel$1, _extends$1({}, nativeProps, {
|
|
8110
8131
|
themeIntent: intent,
|
|
8132
|
+
themeIsItalic: fontStyle === 'italic',
|
|
8111
8133
|
allowFontScaling: allowFontScaling
|
|
8112
8134
|
}), children);
|
|
8113
8135
|
};
|
|
@@ -8116,17 +8138,18 @@ var StyledTitle$1 = index$c(Text$1)(function (_ref) {
|
|
|
8116
8138
|
var themeIntent = _ref.themeIntent,
|
|
8117
8139
|
themeLevel = _ref.themeLevel,
|
|
8118
8140
|
theme = _ref.theme,
|
|
8119
|
-
typeface = _ref.themeTypeface
|
|
8141
|
+
typeface = _ref.themeTypeface,
|
|
8142
|
+
themeIsItalic = _ref.themeIsItalic;
|
|
8120
8143
|
return {
|
|
8121
8144
|
fontSize: theme.__hd__.typography.fontSizes.titles[typeface][themeLevel],
|
|
8122
8145
|
lineHeight: theme.__hd__.typography.lineHeights.titles[typeface][themeLevel],
|
|
8123
8146
|
letterSpacing: theme.__hd__.typography.letterSpacings.titles[typeface][themeLevel],
|
|
8124
|
-
|
|
8125
|
-
|
|
8147
|
+
color: theme.__hd__.typography.colors[themeIntent],
|
|
8148
|
+
fontFamily: themeIsItalic ? theme.__hd__.typography.fontWeights.titles[typeface]["".concat(themeLevel, "Italic")] : theme.__hd__.typography.fontWeights.titles[typeface][themeLevel]
|
|
8126
8149
|
};
|
|
8127
8150
|
});
|
|
8128
8151
|
|
|
8129
|
-
var _excluded$L = ["children", "intent", "allowFontScaling", "level", "typeface"];
|
|
8152
|
+
var _excluded$L = ["children", "intent", "allowFontScaling", "level", "typeface", "fontStyle"];
|
|
8130
8153
|
var Title = function Title(_ref) {
|
|
8131
8154
|
var children = _ref.children,
|
|
8132
8155
|
_ref$intent = _ref.intent,
|
|
@@ -8137,11 +8160,14 @@ var Title = function Title(_ref) {
|
|
|
8137
8160
|
level = _ref$level === void 0 ? 'h1' : _ref$level,
|
|
8138
8161
|
_ref$typeface = _ref.typeface,
|
|
8139
8162
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8163
|
+
_ref$fontStyle = _ref.fontStyle,
|
|
8164
|
+
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8140
8165
|
nativeProps = _objectWithoutProperties(_ref, _excluded$L);
|
|
8141
8166
|
return /*#__PURE__*/React__default.createElement(StyledTitle$1, _extends$1({}, nativeProps, {
|
|
8142
8167
|
themeLevel: level,
|
|
8143
8168
|
themeTypeface: typeface,
|
|
8144
8169
|
themeIntent: intent,
|
|
8170
|
+
themeIsItalic: fontStyle === 'italic',
|
|
8145
8171
|
allowFontScaling: allowFontScaling
|
|
8146
8172
|
}), children);
|
|
8147
8173
|
};
|
|
@@ -8162,17 +8188,20 @@ var StyledBody$2 = index$c(Text$1)(function (_ref) {
|
|
|
8162
8188
|
var themeIntent = _ref.themeIntent,
|
|
8163
8189
|
theme = _ref.theme,
|
|
8164
8190
|
themeTypeface = _ref.themeTypeface,
|
|
8165
|
-
themeVariant = _ref.themeVariant
|
|
8191
|
+
themeVariant = _ref.themeVariant,
|
|
8192
|
+
themeIsItalic = _ref.themeIsItalic;
|
|
8193
|
+
var baseFontWeight = FONTWEIGHT_MAP[themeVariant];
|
|
8194
|
+
var fontFamily = themeIsItalic ? theme.__hd__.typography.fonts[themeTypeface]["".concat(baseFontWeight, "Italic")] : theme.__hd__.typography.fonts[themeTypeface][baseFontWeight];
|
|
8166
8195
|
return {
|
|
8167
8196
|
fontSize: theme.__hd__.typography.fontSizes.body[themeTypeface][FONTSIZE_MAP[themeVariant]],
|
|
8168
8197
|
lineHeight: theme.__hd__.typography.lineHeights.body[themeTypeface][FONTSIZE_MAP[themeVariant]],
|
|
8169
8198
|
letterSpacing: theme.__hd__.typography.letterSpacings.body[themeTypeface][FONTWEIGHT_MAP[themeVariant]],
|
|
8170
|
-
fontFamily:
|
|
8199
|
+
fontFamily: fontFamily,
|
|
8171
8200
|
color: theme.__hd__.typography.colors[themeIntent]
|
|
8172
8201
|
};
|
|
8173
8202
|
});
|
|
8174
8203
|
|
|
8175
|
-
var _excluded$K = ["children", "intent", "allowFontScaling", "typeface", "variant"];
|
|
8204
|
+
var _excluded$K = ["children", "intent", "allowFontScaling", "typeface", "variant", "fontStyle"];
|
|
8176
8205
|
var Body = function Body(_ref) {
|
|
8177
8206
|
var children = _ref.children,
|
|
8178
8207
|
_ref$intent = _ref.intent,
|
|
@@ -8183,11 +8212,14 @@ var Body = function Body(_ref) {
|
|
|
8183
8212
|
typeface = _ref$typeface === void 0 ? 'neutral' : _ref$typeface,
|
|
8184
8213
|
_ref$variant = _ref.variant,
|
|
8185
8214
|
variant = _ref$variant === void 0 ? 'regular' : _ref$variant,
|
|
8215
|
+
_ref$fontStyle = _ref.fontStyle,
|
|
8216
|
+
fontStyle = _ref$fontStyle === void 0 ? 'normal' : _ref$fontStyle,
|
|
8186
8217
|
nativeProps = _objectWithoutProperties(_ref, _excluded$K);
|
|
8187
8218
|
return /*#__PURE__*/React__default.createElement(StyledBody$2, _extends$1({}, nativeProps, {
|
|
8188
8219
|
themeTypeface: typeface,
|
|
8189
8220
|
themeIntent: intent,
|
|
8190
8221
|
themeVariant: variant,
|
|
8222
|
+
themeIsItalic: fontStyle === 'italic',
|
|
8191
8223
|
allowFontScaling: allowFontScaling
|
|
8192
8224
|
}), children);
|
|
8193
8225
|
};
|
|
@@ -8903,7 +8935,8 @@ var Accordion = function Accordion(_ref) {
|
|
|
8903
8935
|
_ref$variant = _ref.variant,
|
|
8904
8936
|
variant = _ref$variant === void 0 ? 'default' : _ref$variant,
|
|
8905
8937
|
style = _ref.style,
|
|
8906
|
-
testID = _ref.testID
|
|
8938
|
+
testID = _ref.testID,
|
|
8939
|
+
accessible = _ref.accessible;
|
|
8907
8940
|
var defaultValue = useMemo(function () {
|
|
8908
8941
|
return typeof activeItemKey === 'number' ? NaN : '';
|
|
8909
8942
|
}, [activeItemKey]);
|
|
@@ -8913,7 +8946,8 @@ var Accordion = function Accordion(_ref) {
|
|
|
8913
8946
|
_onItemPress = _usePropsOrInternalSt2[1];
|
|
8914
8947
|
return /*#__PURE__*/React__default.createElement(StyledWrapper$e, {
|
|
8915
8948
|
style: style,
|
|
8916
|
-
testID: testID
|
|
8949
|
+
testID: testID,
|
|
8950
|
+
accessible: accessible
|
|
8917
8951
|
}, items.map(function (_ref2, index) {
|
|
8918
8952
|
var key = _ref2.key,
|
|
8919
8953
|
props = _objectWithoutProperties(_ref2, _excluded$I);
|
|
@@ -20012,7 +20046,7 @@ var StyledChipIcon = index$c(Icon)(function (_ref2) {
|
|
|
20012
20046
|
};
|
|
20013
20047
|
});
|
|
20014
20048
|
|
|
20015
|
-
var _excluded$u = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon"];
|
|
20049
|
+
var _excluded$u = ["label", "variant", "selected", "icon", "onPress", "showSelectedIcon", "accessible"];
|
|
20016
20050
|
var getChipLabel = function getChipLabel(label) {
|
|
20017
20051
|
if (typeof label === 'string') {
|
|
20018
20052
|
return /*#__PURE__*/React__default.createElement(Typography.Body, {
|
|
@@ -20045,6 +20079,7 @@ var Chip = function Chip(_ref) {
|
|
|
20045
20079
|
onPress = _ref.onPress,
|
|
20046
20080
|
_ref$showSelectedIcon = _ref.showSelectedIcon,
|
|
20047
20081
|
showSelectedIcon = _ref$showSelectedIcon === void 0 ? true : _ref$showSelectedIcon,
|
|
20082
|
+
accessible = _ref.accessible,
|
|
20048
20083
|
otherProps = _objectWithoutProperties(_ref, _excluded$u);
|
|
20049
20084
|
useDeprecation('Chip variant `outlined` and `filled` are deprecated.', variant === 'outlined' || variant === 'filled');
|
|
20050
20085
|
var renamedVariant = getChipVariant(variant);
|
|
@@ -20055,7 +20090,8 @@ var Chip = function Chip(_ref) {
|
|
|
20055
20090
|
return /*#__PURE__*/React__default.createElement(StyledChipWrapper, _extends$1({
|
|
20056
20091
|
onPress: onPress,
|
|
20057
20092
|
themeVariant: renamedVariant,
|
|
20058
|
-
themeSelected: selected
|
|
20093
|
+
themeSelected: selected,
|
|
20094
|
+
accessible: accessible
|
|
20059
20095
|
}, otherProps), icon && /*#__PURE__*/React__default.createElement(Box, {
|
|
20060
20096
|
marginRight: "small"
|
|
20061
20097
|
}, /*#__PURE__*/React__default.createElement(StyledChipIcon, {
|
|
@@ -24958,7 +24994,8 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
24958
24994
|
style = _ref2.style,
|
|
24959
24995
|
testID = _ref2.testID,
|
|
24960
24996
|
textContentType = _ref2.textContentType,
|
|
24961
|
-
autoComplete = _ref2.autoComplete
|
|
24997
|
+
autoComplete = _ref2.autoComplete,
|
|
24998
|
+
accessible = _ref2.accessible;
|
|
24962
24999
|
var inputRef = useRef(null);
|
|
24963
25000
|
var _useState = useState(autoFocus),
|
|
24964
25001
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -25019,7 +25056,8 @@ var PinInput = /*#__PURE__*/forwardRef(function (_ref2, ref) {
|
|
|
25019
25056
|
}, [trimmedValue]);
|
|
25020
25057
|
return /*#__PURE__*/React__default.createElement(StyledWrapper$6, {
|
|
25021
25058
|
style: style,
|
|
25022
|
-
testID: testID
|
|
25059
|
+
testID: testID,
|
|
25060
|
+
accessible: accessible
|
|
25023
25061
|
}, /*#__PURE__*/React__default.createElement(StyledPinWrapper, {
|
|
25024
25062
|
onPress: focus,
|
|
25025
25063
|
disabled: disabled,
|
|
@@ -25829,11 +25867,13 @@ var RadioGroup = function RadioGroup(_ref) {
|
|
|
25829
25867
|
keyExtractor = _ref.keyExtractor,
|
|
25830
25868
|
style = _ref.style,
|
|
25831
25869
|
testID = _ref.testID,
|
|
25870
|
+
accessible = _ref.accessible,
|
|
25832
25871
|
_ref$inactiveIntent = _ref.inactiveIntent,
|
|
25833
25872
|
inactiveIntent = _ref$inactiveIntent === void 0 ? 'light' : _ref$inactiveIntent;
|
|
25834
25873
|
return /*#__PURE__*/React__default.createElement(View, {
|
|
25835
25874
|
style: style,
|
|
25836
|
-
testID: testID
|
|
25875
|
+
testID: testID,
|
|
25876
|
+
accessible: accessible
|
|
25837
25877
|
}, options.map(function (option, index) {
|
|
25838
25878
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
25839
25879
|
key: getKey(option, index, keyExtractor)
|
|
@@ -28168,10 +28208,12 @@ var ToolbarGroup = function ToolbarGroup(_ref) {
|
|
|
28168
28208
|
var _ref$align = _ref.align,
|
|
28169
28209
|
align = _ref$align === void 0 ? 'right' : _ref$align,
|
|
28170
28210
|
_ref$items = _ref.items,
|
|
28171
|
-
items = _ref$items === void 0 ? [] : _ref$items
|
|
28211
|
+
items = _ref$items === void 0 ? [] : _ref$items,
|
|
28212
|
+
accessible = _ref.accessible;
|
|
28172
28213
|
useDeprecation("Toolbar's align prop is deprecated for 'left' and 'center' alignment. Please use 'right' instead.", align !== 'right');
|
|
28173
28214
|
return /*#__PURE__*/React__default.createElement(ToolbarGroupWrapper, {
|
|
28174
|
-
align: align
|
|
28215
|
+
align: align,
|
|
28216
|
+
accessible: accessible
|
|
28175
28217
|
}, items.map(function (_ref2) {
|
|
28176
28218
|
var label = _ref2.label,
|
|
28177
28219
|
icon = _ref2.icon,
|
|
@@ -48142,10 +48184,12 @@ var SearchTwoLine = function SearchTwoLine(props) {
|
|
|
48142
48184
|
content = props.content,
|
|
48143
48185
|
testID = props.testID,
|
|
48144
48186
|
_props$variant = props.variant,
|
|
48145
|
-
variant = _props$variant === void 0 ? 'basic' : _props$variant
|
|
48187
|
+
variant = _props$variant === void 0 ? 'basic' : _props$variant,
|
|
48188
|
+
accessible = props.accessible;
|
|
48146
48189
|
return /*#__PURE__*/React__default.createElement(StyledContainer, {
|
|
48147
48190
|
style: style,
|
|
48148
|
-
testID: testID
|
|
48191
|
+
testID: testID,
|
|
48192
|
+
accessible: accessible
|
|
48149
48193
|
}, /*#__PURE__*/React__default.createElement(StyledInputContainer, {
|
|
48150
48194
|
themeVariant: variant
|
|
48151
48195
|
}, renderPrefix({
|
|
@@ -48157,7 +48201,7 @@ var SearchTwoLine = function SearchTwoLine(props) {
|
|
|
48157
48201
|
})));
|
|
48158
48202
|
};
|
|
48159
48203
|
|
|
48160
|
-
var _excluded$2 = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID", "variant", "clearable"];
|
|
48204
|
+
var _excluded$2 = ["prefix", "suffix", "style", "allowFontScaling", "accessibilityLabelledBy", "editable", "maxLength", "value", "defaultValue", "placeholder", "disabled", "testID", "variant", "clearable", "accessible"];
|
|
48161
48205
|
var getState = function getState(_ref) {
|
|
48162
48206
|
var disabled = _ref.disabled,
|
|
48163
48207
|
editable = _ref.editable,
|
|
@@ -48201,6 +48245,7 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
48201
48245
|
variant = _props$variant === void 0 ? 'basic' : _props$variant,
|
|
48202
48246
|
_props$clearable = props.clearable,
|
|
48203
48247
|
clearable = _props$clearable === void 0 ? false : _props$clearable,
|
|
48248
|
+
accessible = props.accessible,
|
|
48204
48249
|
nativeProps = _objectWithoutProperties(props, _excluded$2);
|
|
48205
48250
|
var _React$useState = React__default.useState(false),
|
|
48206
48251
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
@@ -48262,7 +48307,8 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
48262
48307
|
return /*#__PURE__*/React__default.createElement(StyledContainer, {
|
|
48263
48308
|
pointerEvents: state === 'disabled' || state === 'readonly' ? 'none' : 'auto',
|
|
48264
48309
|
testID: testID,
|
|
48265
|
-
style: style
|
|
48310
|
+
style: style,
|
|
48311
|
+
accessible: accessible
|
|
48266
48312
|
}, /*#__PURE__*/React__default.createElement(StyledInputContainer, {
|
|
48267
48313
|
themeVariant: variant
|
|
48268
48314
|
}, renderPrefix({
|