@hero-design/rn 7.23.0 → 7.24.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 +2 -2
- package/assets/fonts/hero-icons.ttf +0 -0
- package/es/index.js +857 -8825
- package/lib/assets/fonts/hero-icons.ttf +0 -0
- package/lib/index.js +858 -8824
- package/package.json +6 -4
- package/rollup.config.js +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +1 -0
- package/src/components/Empty/index.tsx +1 -2
- package/src/components/Icon/HeroIcon/fonts/hero-icons.ttf +0 -0
- package/src/components/Icon/HeroIcon/glyphMap.json +1 -0
- package/src/components/Icon/HeroIcon/index.tsx +3 -7
- package/src/components/Icon/IconList.ts +8 -5
- package/src/components/Icon/index.tsx +1 -0
- package/src/components/RichTextEditor/RichTextEditor.tsx +1 -4
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +2 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -4
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/OptionList.spec.tsx.snap +8 -4
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +5 -0
- package/src/components/Spinner/AnimatedSpinner.tsx +22 -7
- package/src/components/Spinner/StyledSpinner.tsx +16 -11
- package/src/components/Spinner/__tests__/AnimatedSpinner.spec.tsx +3 -1
- package/src/components/Spinner/__tests__/StyledSpinner.spec.tsx +42 -31
- package/src/components/Spinner/__tests__/__snapshots__/AnimatedSpinner.spec.tsx.snap +8 -4
- package/src/components/Spinner/__tests__/__snapshots__/StyledSpinner.spec.tsx.snap +532 -72
- package/src/components/Spinner/__tests__/__snapshots__/index.spec.tsx.snap +8 -4
- package/src/components/Spinner/index.tsx +6 -1
- package/src/components/Swipeable/StyledSwipeable.tsx +11 -0
- package/src/components/Swipeable/SwipeableAction.tsx +45 -0
- package/src/components/Swipeable/__tests__/SwipeableAction.spec.tsx +37 -0
- package/src/components/Swipeable/__tests__/__snapshots__/SwipeableAction.spec.tsx.snap +130 -0
- package/src/components/Swipeable/__tests__/__snapshots__/index.spec.tsx.snap +33 -0
- package/src/components/Swipeable/__tests__/index.spec.tsx +34 -0
- package/src/components/Swipeable/index.tsx +148 -0
- package/src/components/TextInput/StyledTextInput.tsx +6 -12
- package/src/components/TextInput/__tests__/StyledTextInput.spec.tsx +12 -6
- package/src/components/TextInput/__tests__/__snapshots__/StyledTextInput.spec.tsx.snap +22 -138
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +13 -0
- package/src/components/TextInput/__tests__/index.spec.tsx +114 -124
- package/src/components/TextInput/index.tsx +7 -6
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +1 -0
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +1 -0
- package/src/index.ts +4 -0
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +11 -6
- package/src/theme/components/spinner.ts +4 -1
- package/src/theme/components/swipeable.ts +13 -0
- package/src/theme/components/textInput.ts +0 -5
- package/src/theme/getTheme.ts +3 -0
- package/src/theme/global/colors/jobs.ts +0 -1
- package/src/theme/global/colors/work.ts +0 -2
- package/src/types.ts +2 -0
- package/testUtils/setup.tsx +13 -0
- package/types/components/Empty/index.d.ts +1 -2
- package/types/components/Icon/IconList.d.ts +1 -1
- package/types/components/Icon/index.d.ts +4 -1
- package/types/components/Icon/utils.d.ts +1 -1
- package/types/components/Spinner/AnimatedSpinner.d.ts +2 -1
- package/types/components/Spinner/StyledSpinner.d.ts +1 -0
- package/types/components/Spinner/index.d.ts +5 -1
- package/types/components/Swipeable/StyledSwipeable.d.ts +10 -0
- package/types/components/Swipeable/SwipeableAction.d.ts +27 -0
- package/types/components/Swipeable/index.d.ts +41 -0
- package/types/components/TextInput/StyledTextInput.d.ts +2 -1
- package/types/components/TextInput/index.d.ts +1 -1
- package/types/index.d.ts +3 -2
- package/types/theme/components/spinner.d.ts +4 -1
- package/types/theme/components/swipeable.d.ts +9 -0
- package/types/theme/components/textInput.d.ts +0 -5
- package/types/theme/getTheme.d.ts +2 -0
- package/types/types.d.ts +2 -1
- package/src/components/Icon/HeroIcon/selection.json +0 -7029
|
@@ -38,12 +38,13 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
38
38
|
"backgroundColor": "#001f23",
|
|
39
39
|
"borderRadius": 999,
|
|
40
40
|
"height": 16,
|
|
41
|
-
"opacity":
|
|
41
|
+
"opacity": 0.9,
|
|
42
42
|
"width": 16,
|
|
43
43
|
},
|
|
44
44
|
Object {},
|
|
45
45
|
]
|
|
46
46
|
}
|
|
47
|
+
themeIntent="primary"
|
|
47
48
|
themePosition="topLeft"
|
|
48
49
|
themeSize="medium"
|
|
49
50
|
/>
|
|
@@ -57,12 +58,13 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
57
58
|
"borderRadius": 999,
|
|
58
59
|
"height": 16,
|
|
59
60
|
"marginLeft": 8,
|
|
60
|
-
"opacity": 0.
|
|
61
|
+
"opacity": 0.675,
|
|
61
62
|
"width": 16,
|
|
62
63
|
},
|
|
63
64
|
Object {},
|
|
64
65
|
]
|
|
65
66
|
}
|
|
67
|
+
themeIntent="primary"
|
|
66
68
|
themePosition="topRight"
|
|
67
69
|
themeSize="medium"
|
|
68
70
|
/>
|
|
@@ -91,12 +93,13 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
91
93
|
"backgroundColor": "#001f23",
|
|
92
94
|
"borderRadius": 999,
|
|
93
95
|
"height": 16,
|
|
94
|
-
"opacity": 0.
|
|
96
|
+
"opacity": 0.45,
|
|
95
97
|
"width": 16,
|
|
96
98
|
},
|
|
97
99
|
Object {},
|
|
98
100
|
]
|
|
99
101
|
}
|
|
102
|
+
themeIntent="primary"
|
|
100
103
|
themePosition="bottomLeft"
|
|
101
104
|
themeSize="medium"
|
|
102
105
|
/>
|
|
@@ -110,12 +113,13 @@ exports[`AnimatedSpinner renders correctly 1`] = `
|
|
|
110
113
|
"borderRadius": 999,
|
|
111
114
|
"height": 16,
|
|
112
115
|
"marginLeft": 8,
|
|
113
|
-
"opacity": 0.
|
|
116
|
+
"opacity": 0.225,
|
|
114
117
|
"width": 16,
|
|
115
118
|
},
|
|
116
119
|
Object {},
|
|
117
120
|
]
|
|
118
121
|
}
|
|
122
|
+
themeIntent="primary"
|
|
119
123
|
themePosition="bottomRight"
|
|
120
124
|
themeSize="medium"
|
|
121
125
|
/>
|