@hero-design/rn-work-uikit 1.7.1 → 1.7.2
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 +9 -0
- package/lib/index.js +217 -134
- package/package.json +3 -3
- package/src/components/DatePicker/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FormGroup/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/Select/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/TextInput/InputComponent.tsx +8 -3
- package/src/components/TextInput/InputRow.tsx +1 -0
- package/src/components/TextInput/__tests__/InputComponent.spec.tsx +2 -0
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +17 -17
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +11 -1
- package/stats/1.7.2/rn-work-uikit-stats.html +4844 -0
- package/stats/1.7.1/rn-work-uikit-stats.html +0 -4844
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @hero-design/rn-work-uikit
|
|
2
2
|
|
|
3
|
+
## 1.7.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#4193](https://github.com/Thinkei/hero-design/pull/4193) [`84aabf6b98f5753616a8376ad5e5be4667d6dcb0`](https://github.com/Thinkei/hero-design/commit/84aabf6b98f5753616a8376ad5e5be4667d6dcb0) Thanks [@ttkien](https://github.com/ttkien)! - [TextInput] Update colors support dark mode
|
|
8
|
+
|
|
9
|
+
- Updated dependencies [[`84aabf6b98f5753616a8376ad5e5be4667d6dcb0`](https://github.com/Thinkei/hero-design/commit/84aabf6b98f5753616a8376ad5e5be4667d6dcb0), [`d706fb127368ac597b0c8b1517650e64e39734ba`](https://github.com/Thinkei/hero-design/commit/d706fb127368ac597b0c8b1517650e64e39734ba), [`a2f2b9db429029f263278100365417e9b300d219`](https://github.com/Thinkei/hero-design/commit/a2f2b9db429029f263278100365417e9b300d219)]:
|
|
10
|
+
- @hero-design/rn@8.107.0
|
|
11
|
+
|
|
3
12
|
## 1.7.1
|
|
4
13
|
|
|
5
14
|
### Patch Changes
|
package/lib/index.js
CHANGED
|
@@ -6185,10 +6185,14 @@ var getCardTheme = function getCardTheme(theme) {
|
|
|
6185
6185
|
"default": theme.radii.large,
|
|
6186
6186
|
superRound: theme.radii.xxxlarge
|
|
6187
6187
|
};
|
|
6188
|
+
var space = {
|
|
6189
|
+
dataCardContentPadding: theme.space.medium
|
|
6190
|
+
};
|
|
6188
6191
|
return {
|
|
6189
6192
|
colors: colors,
|
|
6190
6193
|
sizes: sizes,
|
|
6191
|
-
radii: radii
|
|
6194
|
+
radii: radii,
|
|
6195
|
+
space: space
|
|
6192
6196
|
};
|
|
6193
6197
|
};
|
|
6194
6198
|
|
|
@@ -7211,7 +7215,7 @@ var getTextInputTheme$1 = function getTextInputTheme(theme) {
|
|
|
7211
7215
|
"default": theme.colors.onDefaultGlobalSurface,
|
|
7212
7216
|
error: theme.colors.onDefaultGlobalSurface,
|
|
7213
7217
|
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
7214
|
-
readonly: theme.colors.
|
|
7218
|
+
readonly: theme.colors.mutedOnDefaultGlobalSurface,
|
|
7215
7219
|
filled: theme.colors.onDefaultGlobalSurface
|
|
7216
7220
|
},
|
|
7217
7221
|
labelsInsideTextInput: {
|
|
@@ -7228,7 +7232,13 @@ var getTextInputTheme$1 = function getTextInputTheme(theme) {
|
|
|
7228
7232
|
readonly: theme.colors.inactiveOnDefaultGlobalSurface,
|
|
7229
7233
|
filled: theme.colors.onDefaultGlobalSurface
|
|
7230
7234
|
},
|
|
7231
|
-
placeholder:
|
|
7235
|
+
placeholder: {
|
|
7236
|
+
"default": theme.colors.onDefaultGlobalSurface,
|
|
7237
|
+
error: theme.colors.onDefaultGlobalSurface,
|
|
7238
|
+
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
7239
|
+
readonly: theme.colors.onDefaultGlobalSurface,
|
|
7240
|
+
filled: theme.colors.onDefaultGlobalSurface
|
|
7241
|
+
}
|
|
7232
7242
|
};
|
|
7233
7243
|
var space = {
|
|
7234
7244
|
containerPadding: theme.space.medium,
|
|
@@ -7238,6 +7248,7 @@ var getTextInputTheme$1 = function getTextInputTheme(theme) {
|
|
|
7238
7248
|
labelHorizontalPadding: theme.space.xsmall,
|
|
7239
7249
|
inputHorizontalMargin: theme.space.small,
|
|
7240
7250
|
errorContainerMarginRight: theme.space.xsmall,
|
|
7251
|
+
errorAndHelpTextContainerMarginTop: theme.space.xxsmall,
|
|
7241
7252
|
errorMarginLeft: theme.space.xsmall,
|
|
7242
7253
|
errorAndHelpTextContainerHorizontalPadding: theme.space.medium,
|
|
7243
7254
|
containerMarginTop: theme.space.small,
|
|
@@ -10014,11 +10025,13 @@ var StyledErrorAndHelpTextContainer = index$c(reactNative.View)(function (_ref11
|
|
|
10014
10025
|
paddingTop: theme.__hd__.textInput.space.errorAndHelpTextContainerPaddingTop
|
|
10015
10026
|
};
|
|
10016
10027
|
});
|
|
10017
|
-
var StyledErrorAndMaxLengthContainer = index$c(reactNative.View)(function () {
|
|
10028
|
+
var StyledErrorAndMaxLengthContainer = index$c(reactNative.View)(function (_ref12) {
|
|
10029
|
+
var theme = _ref12.theme;
|
|
10018
10030
|
return {
|
|
10019
10031
|
flexDirection: 'row',
|
|
10020
10032
|
justifyContent: 'space-between',
|
|
10021
|
-
alignItems: 'flex-start'
|
|
10033
|
+
alignItems: 'flex-start',
|
|
10034
|
+
marginTop: theme.__hd__.textInput.space.errorAndHelpTextContainerMarginTop
|
|
10022
10035
|
};
|
|
10023
10036
|
});
|
|
10024
10037
|
|
|
@@ -10065,7 +10078,8 @@ var renderInput$1 = function renderInput(_ref3) {
|
|
|
10065
10078
|
nativeInputProps = _ref3.nativeInputProps,
|
|
10066
10079
|
renderInputValue = _ref3.renderInputValue,
|
|
10067
10080
|
ref = _ref3.ref,
|
|
10068
|
-
theme = _ref3.theme
|
|
10081
|
+
theme = _ref3.theme,
|
|
10082
|
+
state = _ref3.state;
|
|
10069
10083
|
var multiline = variant === 'textarea' || nativeInputProps.multiline;
|
|
10070
10084
|
// `numberOfLines` must be `1` for single-line inputs to render properly on Android.
|
|
10071
10085
|
var numberOfLines = multiline ? nativeInputProps.numberOfLines : 1;
|
|
@@ -10074,7 +10088,7 @@ var renderInput$1 = function renderInput(_ref3) {
|
|
|
10074
10088
|
multiline: multiline,
|
|
10075
10089
|
numberOfLines: numberOfLines,
|
|
10076
10090
|
ref: ref,
|
|
10077
|
-
placeholderTextColor: theme.__hd__.textInput.colors.placeholder
|
|
10091
|
+
placeholderTextColor: theme.__hd__.textInput.colors.placeholder[state]
|
|
10078
10092
|
}));
|
|
10079
10093
|
};
|
|
10080
10094
|
var renderSuffix$1 = function renderSuffix(_ref4) {
|
|
@@ -10336,7 +10350,8 @@ var TextInput$1 = /*#__PURE__*/React.forwardRef(function (_ref8, ref) {
|
|
|
10336
10350
|
ref: function ref(rnTextInputRef) {
|
|
10337
10351
|
innerTextInput.current = rnTextInputRef;
|
|
10338
10352
|
},
|
|
10339
|
-
theme: theme
|
|
10353
|
+
theme: theme,
|
|
10354
|
+
state: state
|
|
10340
10355
|
})), renderSuffix$1({
|
|
10341
10356
|
state: state,
|
|
10342
10357
|
loading: loading,
|
|
@@ -16411,9 +16426,16 @@ var StyledDataCard = index$c(reactNative.View)(function (_ref) {
|
|
|
16411
16426
|
backgroundColor: theme.__hd__.card.colors.dataCardBackground
|
|
16412
16427
|
};
|
|
16413
16428
|
});
|
|
16414
|
-
var
|
|
16415
|
-
var theme = _ref2.theme
|
|
16416
|
-
|
|
16429
|
+
var StyledDataCardContent = index$c(reactNative.View)(function (_ref2) {
|
|
16430
|
+
var theme = _ref2.theme;
|
|
16431
|
+
return {
|
|
16432
|
+
backgroundColor: 'transparent',
|
|
16433
|
+
padding: theme.__hd__.card.space.dataCardContentPadding
|
|
16434
|
+
};
|
|
16435
|
+
});
|
|
16436
|
+
var Indicator = index$c(reactNative.View)(function (_ref3) {
|
|
16437
|
+
var theme = _ref3.theme,
|
|
16438
|
+
themeIntent = _ref3.themeIntent;
|
|
16417
16439
|
return {
|
|
16418
16440
|
backgroundColor: theme.__hd__.card.colors[themeIntent],
|
|
16419
16441
|
width: theme.__hd__.card.sizes.indicatorWidth,
|
|
@@ -16458,7 +16480,8 @@ var Card = function Card(_ref) {
|
|
|
16458
16480
|
}), children);
|
|
16459
16481
|
};
|
|
16460
16482
|
var Card$1 = Object.assign(Card, {
|
|
16461
|
-
Data: DataCard
|
|
16483
|
+
Data: DataCard,
|
|
16484
|
+
DataContent: StyledDataCardContent
|
|
16462
16485
|
});
|
|
16463
16486
|
|
|
16464
16487
|
var StyledPageControl$2 = index$c(reactNative.View)(function () {
|
|
@@ -22585,14 +22608,34 @@ var index$8 = Object.assign(Drawer, {
|
|
|
22585
22608
|
Dragable: DragableDrawer
|
|
22586
22609
|
});
|
|
22587
22610
|
|
|
22611
|
+
var DEFAULT_ILLUSTRATION_SIZE = scale(72);
|
|
22612
|
+
|
|
22613
|
+
var BaseSvg = function BaseSvg(_ref) {
|
|
22614
|
+
var children = _ref.children,
|
|
22615
|
+
_ref$width = _ref.width,
|
|
22616
|
+
width = _ref$width === void 0 ? DEFAULT_ILLUSTRATION_SIZE : _ref$width,
|
|
22617
|
+
_ref$height = _ref.height,
|
|
22618
|
+
height = _ref$height === void 0 ? DEFAULT_ILLUSTRATION_SIZE : _ref$height,
|
|
22619
|
+
viewBox = _ref.viewBox,
|
|
22620
|
+
testID = _ref.testID;
|
|
22621
|
+
var defaultViewBox = viewBox || "0 0 ".concat(DEFAULT_ILLUSTRATION_SIZE, " ").concat(DEFAULT_ILLUSTRATION_SIZE);
|
|
22622
|
+
return /*#__PURE__*/React__namespace.default.createElement(Svg__default.default, {
|
|
22623
|
+
width: width,
|
|
22624
|
+
height: height,
|
|
22625
|
+
viewBox: defaultViewBox,
|
|
22626
|
+
testID: testID
|
|
22627
|
+
}, children);
|
|
22628
|
+
};
|
|
22629
|
+
|
|
22588
22630
|
var Add = function Add(_ref) {
|
|
22589
22631
|
var stroke = _ref.stroke,
|
|
22590
22632
|
fill = _ref.fill,
|
|
22591
|
-
testID = _ref.testID
|
|
22592
|
-
|
|
22593
|
-
|
|
22594
|
-
|
|
22595
|
-
|
|
22633
|
+
testID = _ref.testID,
|
|
22634
|
+
width = _ref.width,
|
|
22635
|
+
height = _ref.height;
|
|
22636
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
22637
|
+
width: width,
|
|
22638
|
+
height: height,
|
|
22596
22639
|
testID: testID
|
|
22597
22640
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
22598
22641
|
x: "0.100098",
|
|
@@ -22633,11 +22676,12 @@ var Add = function Add(_ref) {
|
|
|
22633
22676
|
var Boom = function Boom(_ref) {
|
|
22634
22677
|
var stroke = _ref.stroke,
|
|
22635
22678
|
fill = _ref.fill,
|
|
22636
|
-
testID = _ref.testID
|
|
22637
|
-
|
|
22638
|
-
|
|
22639
|
-
|
|
22640
|
-
|
|
22679
|
+
testID = _ref.testID,
|
|
22680
|
+
width = _ref.width,
|
|
22681
|
+
height = _ref.height;
|
|
22682
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
22683
|
+
width: width,
|
|
22684
|
+
height: height,
|
|
22641
22685
|
testID: testID
|
|
22642
22686
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Path, {
|
|
22643
22687
|
d: "M17.762 51.247v12.16L2.996 41.693v-3.91l2.172-2.17h3.474l-.868-2.172-1.738-6.515 2.606-2.605 2.606-2.172-.434-6.514 4.343-1.303 3.908 1.303 3.475-2.606h4.343l6.514 9.989h-5.646c-3.33 9.265-9.989 27.882-9.989 28.229z",
|
|
@@ -22689,11 +22733,12 @@ var Boom = function Boom(_ref) {
|
|
|
22689
22733
|
var Build = function Build(_ref) {
|
|
22690
22734
|
var stroke = _ref.stroke,
|
|
22691
22735
|
fill = _ref.fill,
|
|
22692
|
-
testID = _ref.testID
|
|
22693
|
-
|
|
22694
|
-
|
|
22695
|
-
|
|
22696
|
-
|
|
22736
|
+
testID = _ref.testID,
|
|
22737
|
+
width = _ref.width,
|
|
22738
|
+
height = _ref.height;
|
|
22739
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
22740
|
+
width: width,
|
|
22741
|
+
height: height,
|
|
22697
22742
|
testID: testID
|
|
22698
22743
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
22699
22744
|
x: "0.615723",
|
|
@@ -22730,11 +22775,12 @@ var Build = function Build(_ref) {
|
|
|
22730
22775
|
var Clock = function Clock(_ref) {
|
|
22731
22776
|
var stroke = _ref.stroke,
|
|
22732
22777
|
fill = _ref.fill,
|
|
22733
|
-
testID = _ref.testID
|
|
22734
|
-
|
|
22735
|
-
|
|
22736
|
-
|
|
22737
|
-
|
|
22778
|
+
testID = _ref.testID,
|
|
22779
|
+
width = _ref.width,
|
|
22780
|
+
height = _ref.height;
|
|
22781
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
22782
|
+
width: width,
|
|
22783
|
+
height: height,
|
|
22738
22784
|
testID: testID
|
|
22739
22785
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
22740
22786
|
x: "0.384277",
|
|
@@ -22764,17 +22810,18 @@ var Clock = function Clock(_ref) {
|
|
|
22764
22810
|
var Confetti = function Confetti(_ref) {
|
|
22765
22811
|
var stroke = _ref.stroke,
|
|
22766
22812
|
fill = _ref.fill,
|
|
22767
|
-
testID = _ref.testID
|
|
22768
|
-
|
|
22769
|
-
|
|
22770
|
-
|
|
22771
|
-
|
|
22813
|
+
testID = _ref.testID,
|
|
22814
|
+
width = _ref.width,
|
|
22815
|
+
height = _ref.height;
|
|
22816
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
22817
|
+
width: width,
|
|
22818
|
+
height: height,
|
|
22772
22819
|
testID: testID
|
|
22773
22820
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
|
|
22774
22821
|
id: "clip0_19647_1699"
|
|
22775
22822
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
22776
|
-
width:
|
|
22777
|
-
height:
|
|
22823
|
+
width: width,
|
|
22824
|
+
height: height,
|
|
22778
22825
|
fill: "white",
|
|
22779
22826
|
transform: "translate(0.100098)"
|
|
22780
22827
|
}))), /*#__PURE__*/React__namespace.default.createElement(Svg.G, {
|
|
@@ -22831,11 +22878,12 @@ var Confetti = function Confetti(_ref) {
|
|
|
22831
22878
|
var Connections = function Connections(_ref) {
|
|
22832
22879
|
var stroke = _ref.stroke,
|
|
22833
22880
|
fill = _ref.fill,
|
|
22834
|
-
testID = _ref.testID
|
|
22835
|
-
|
|
22836
|
-
|
|
22837
|
-
|
|
22838
|
-
|
|
22881
|
+
testID = _ref.testID,
|
|
22882
|
+
width = _ref.width,
|
|
22883
|
+
height = _ref.height;
|
|
22884
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
22885
|
+
width: width,
|
|
22886
|
+
height: height,
|
|
22839
22887
|
testID: testID
|
|
22840
22888
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
22841
22889
|
y: "12.2122",
|
|
@@ -22878,17 +22926,18 @@ var Connections = function Connections(_ref) {
|
|
|
22878
22926
|
var ErrorIcon = function ErrorIcon(_ref) {
|
|
22879
22927
|
var stroke = _ref.stroke,
|
|
22880
22928
|
fill = _ref.fill,
|
|
22881
|
-
testID = _ref.testID
|
|
22882
|
-
|
|
22883
|
-
|
|
22884
|
-
|
|
22885
|
-
|
|
22929
|
+
testID = _ref.testID,
|
|
22930
|
+
width = _ref.width,
|
|
22931
|
+
height = _ref.height;
|
|
22932
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
22933
|
+
width: width,
|
|
22934
|
+
height: height,
|
|
22886
22935
|
testID: testID
|
|
22887
22936
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
|
|
22888
22937
|
id: "clip0_19647_1720"
|
|
22889
22938
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
22890
|
-
width:
|
|
22891
|
-
height:
|
|
22939
|
+
width: width,
|
|
22940
|
+
height: height,
|
|
22892
22941
|
fill: "white"
|
|
22893
22942
|
}))), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
22894
22943
|
y: "11.3684",
|
|
@@ -22930,11 +22979,12 @@ var ErrorIcon = function ErrorIcon(_ref) {
|
|
|
22930
22979
|
var Info = function Info(_ref) {
|
|
22931
22980
|
var stroke = _ref.stroke,
|
|
22932
22981
|
fill = _ref.fill,
|
|
22933
|
-
testID = _ref.testID
|
|
22934
|
-
|
|
22935
|
-
|
|
22936
|
-
|
|
22937
|
-
|
|
22982
|
+
testID = _ref.testID,
|
|
22983
|
+
width = _ref.width,
|
|
22984
|
+
height = _ref.height;
|
|
22985
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
22986
|
+
width: width,
|
|
22987
|
+
height: height,
|
|
22938
22988
|
testID: testID
|
|
22939
22989
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
22940
22990
|
x: "0.799805",
|
|
@@ -22962,11 +23012,12 @@ var Info = function Info(_ref) {
|
|
|
22962
23012
|
var List = function List(_ref) {
|
|
22963
23013
|
var stroke = _ref.stroke,
|
|
22964
23014
|
fill = _ref.fill,
|
|
22965
|
-
testID = _ref.testID
|
|
22966
|
-
|
|
22967
|
-
|
|
22968
|
-
|
|
22969
|
-
|
|
23015
|
+
testID = _ref.testID,
|
|
23016
|
+
width = _ref.width,
|
|
23017
|
+
height = _ref.height;
|
|
23018
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
23019
|
+
width: width,
|
|
23020
|
+
height: height,
|
|
22970
23021
|
testID: testID
|
|
22971
23022
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
22972
23023
|
x: "0.199951",
|
|
@@ -22996,11 +23047,12 @@ var List = function List(_ref) {
|
|
|
22996
23047
|
var Location = function Location(_ref) {
|
|
22997
23048
|
var stroke = _ref.stroke,
|
|
22998
23049
|
fill = _ref.fill,
|
|
22999
|
-
testID = _ref.testID
|
|
23000
|
-
|
|
23001
|
-
|
|
23002
|
-
|
|
23003
|
-
|
|
23050
|
+
testID = _ref.testID,
|
|
23051
|
+
width = _ref.width,
|
|
23052
|
+
height = _ref.height;
|
|
23053
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
23054
|
+
width: width,
|
|
23055
|
+
height: height,
|
|
23004
23056
|
testID: testID
|
|
23005
23057
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
23006
23058
|
x: "0.615723",
|
|
@@ -23030,11 +23082,12 @@ var Location = function Location(_ref) {
|
|
|
23030
23082
|
var Merge = function Merge(_ref) {
|
|
23031
23083
|
var stroke = _ref.stroke,
|
|
23032
23084
|
fill = _ref.fill,
|
|
23033
|
-
testID = _ref.testID
|
|
23034
|
-
|
|
23035
|
-
|
|
23036
|
-
|
|
23037
|
-
|
|
23085
|
+
testID = _ref.testID,
|
|
23086
|
+
width = _ref.width,
|
|
23087
|
+
height = _ref.height;
|
|
23088
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
23089
|
+
width: width,
|
|
23090
|
+
height: height,
|
|
23038
23091
|
testID: testID
|
|
23039
23092
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
23040
23093
|
x: "0.100098",
|
|
@@ -23084,11 +23137,12 @@ var Merge = function Merge(_ref) {
|
|
|
23084
23137
|
var Notifications = function Notifications(_ref) {
|
|
23085
23138
|
var stroke = _ref.stroke,
|
|
23086
23139
|
fill = _ref.fill,
|
|
23087
|
-
testID = _ref.testID
|
|
23088
|
-
|
|
23089
|
-
|
|
23090
|
-
|
|
23091
|
-
|
|
23140
|
+
testID = _ref.testID,
|
|
23141
|
+
width = _ref.width,
|
|
23142
|
+
height = _ref.height;
|
|
23143
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
23144
|
+
width: width,
|
|
23145
|
+
height: height,
|
|
23092
23146
|
testID: testID
|
|
23093
23147
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
23094
23148
|
y: "12.3684",
|
|
@@ -23108,11 +23162,12 @@ var Notifications = function Notifications(_ref) {
|
|
|
23108
23162
|
var Search$1 = function Search(_ref) {
|
|
23109
23163
|
var stroke = _ref.stroke,
|
|
23110
23164
|
fill = _ref.fill,
|
|
23111
|
-
testID = _ref.testID
|
|
23112
|
-
|
|
23113
|
-
|
|
23114
|
-
|
|
23115
|
-
|
|
23165
|
+
testID = _ref.testID,
|
|
23166
|
+
width = _ref.width,
|
|
23167
|
+
height = _ref.height;
|
|
23168
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
23169
|
+
width: width,
|
|
23170
|
+
height: height,
|
|
23116
23171
|
testID: testID
|
|
23117
23172
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
23118
23173
|
y: "11.3684",
|
|
@@ -23141,11 +23196,12 @@ var Search$1 = function Search(_ref) {
|
|
|
23141
23196
|
var Star = function Star(_ref) {
|
|
23142
23197
|
var stroke = _ref.stroke,
|
|
23143
23198
|
fill = _ref.fill,
|
|
23144
|
-
testID = _ref.testID
|
|
23145
|
-
|
|
23146
|
-
|
|
23147
|
-
|
|
23148
|
-
|
|
23199
|
+
testID = _ref.testID,
|
|
23200
|
+
width = _ref.width,
|
|
23201
|
+
height = _ref.height;
|
|
23202
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
23203
|
+
width: width,
|
|
23204
|
+
height: height,
|
|
23149
23205
|
testID: testID
|
|
23150
23206
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
23151
23207
|
x: "0.199951",
|
|
@@ -23175,11 +23231,12 @@ var Star = function Star(_ref) {
|
|
|
23175
23231
|
var User = function User(_ref) {
|
|
23176
23232
|
var stroke = _ref.stroke,
|
|
23177
23233
|
fill = _ref.fill,
|
|
23178
|
-
testID = _ref.testID
|
|
23179
|
-
|
|
23180
|
-
|
|
23181
|
-
|
|
23182
|
-
|
|
23234
|
+
testID = _ref.testID,
|
|
23235
|
+
width = _ref.width,
|
|
23236
|
+
height = _ref.height;
|
|
23237
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
23238
|
+
width: width,
|
|
23239
|
+
height: height,
|
|
23183
23240
|
testID: testID
|
|
23184
23241
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
23185
23242
|
x: "0.799805",
|
|
@@ -23214,17 +23271,18 @@ var User = function User(_ref) {
|
|
|
23214
23271
|
var Success$1 = function Success(_ref) {
|
|
23215
23272
|
var stroke = _ref.stroke,
|
|
23216
23273
|
fill = _ref.fill,
|
|
23217
|
-
testID = _ref.testID
|
|
23218
|
-
|
|
23219
|
-
|
|
23220
|
-
|
|
23221
|
-
|
|
23274
|
+
testID = _ref.testID,
|
|
23275
|
+
width = _ref.width,
|
|
23276
|
+
height = _ref.height;
|
|
23277
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
23278
|
+
width: width,
|
|
23279
|
+
height: height,
|
|
23222
23280
|
testID: testID
|
|
23223
23281
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Defs, null, /*#__PURE__*/React__namespace.default.createElement(Svg.ClipPath, {
|
|
23224
23282
|
id: "clip0_19647_1726"
|
|
23225
23283
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
23226
|
-
width:
|
|
23227
|
-
height:
|
|
23284
|
+
width: width,
|
|
23285
|
+
height: height,
|
|
23228
23286
|
fill: "white"
|
|
23229
23287
|
}))), /*#__PURE__*/React__namespace.default.createElement(Svg.Rect, {
|
|
23230
23288
|
y: "11.3684",
|
|
@@ -23253,11 +23311,12 @@ var Success$1 = function Success(_ref) {
|
|
|
23253
23311
|
var Lock = function Lock(_ref) {
|
|
23254
23312
|
var stroke = _ref.stroke,
|
|
23255
23313
|
fill = _ref.fill,
|
|
23256
|
-
testID = _ref.testID
|
|
23257
|
-
|
|
23258
|
-
|
|
23259
|
-
|
|
23260
|
-
|
|
23314
|
+
testID = _ref.testID,
|
|
23315
|
+
width = _ref.width,
|
|
23316
|
+
height = _ref.height;
|
|
23317
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
23318
|
+
width: width,
|
|
23319
|
+
height: height,
|
|
23261
23320
|
testID: testID
|
|
23262
23321
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.G, {
|
|
23263
23322
|
clipPath: "url(#clip0_21932_5671)"
|
|
@@ -23281,11 +23340,12 @@ var Lock = function Lock(_ref) {
|
|
|
23281
23340
|
var Unlock = function Unlock(_ref) {
|
|
23282
23341
|
var stroke = _ref.stroke,
|
|
23283
23342
|
fill = _ref.fill,
|
|
23284
|
-
testID = _ref.testID
|
|
23285
|
-
|
|
23286
|
-
|
|
23287
|
-
|
|
23288
|
-
|
|
23343
|
+
testID = _ref.testID,
|
|
23344
|
+
width = _ref.width,
|
|
23345
|
+
height = _ref.height;
|
|
23346
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
23347
|
+
width: width,
|
|
23348
|
+
height: height,
|
|
23289
23349
|
testID: testID
|
|
23290
23350
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.G, {
|
|
23291
23351
|
clipPath: "url(#clip0_21932_5714)"
|
|
@@ -23309,11 +23369,12 @@ var Unlock = function Unlock(_ref) {
|
|
|
23309
23369
|
var NoResult = function NoResult(_ref) {
|
|
23310
23370
|
var stroke = _ref.stroke,
|
|
23311
23371
|
fill = _ref.fill,
|
|
23312
|
-
testID = _ref.testID
|
|
23313
|
-
|
|
23314
|
-
|
|
23315
|
-
|
|
23316
|
-
|
|
23372
|
+
testID = _ref.testID,
|
|
23373
|
+
width = _ref.width,
|
|
23374
|
+
height = _ref.height;
|
|
23375
|
+
return /*#__PURE__*/React__namespace.default.createElement(BaseSvg, {
|
|
23376
|
+
width: width,
|
|
23377
|
+
height: height,
|
|
23317
23378
|
testID: testID
|
|
23318
23379
|
}, /*#__PURE__*/React__namespace.default.createElement(Svg.G, {
|
|
23319
23380
|
clipPath: "url(#clip0_21888_4920)"
|
|
@@ -23337,7 +23398,7 @@ var NoResult = function NoResult(_ref) {
|
|
|
23337
23398
|
}))));
|
|
23338
23399
|
};
|
|
23339
23400
|
|
|
23340
|
-
var
|
|
23401
|
+
var Illustrations = {
|
|
23341
23402
|
add: Add,
|
|
23342
23403
|
boom: Boom,
|
|
23343
23404
|
build: Build,
|
|
@@ -23358,16 +23419,32 @@ var StatusIcons = {
|
|
|
23358
23419
|
unlock: Unlock,
|
|
23359
23420
|
'no-result': NoResult
|
|
23360
23421
|
};
|
|
23361
|
-
var
|
|
23362
|
-
|
|
23363
|
-
|
|
23364
|
-
var
|
|
23422
|
+
var IllustrationList = Object.keys(Illustrations);
|
|
23423
|
+
|
|
23424
|
+
var Illustration = function Illustration(_ref) {
|
|
23425
|
+
var name = _ref.name,
|
|
23426
|
+
testID = _ref.testID,
|
|
23427
|
+
_ref$width = _ref.width,
|
|
23428
|
+
width = _ref$width === void 0 ? DEFAULT_ILLUSTRATION_SIZE : _ref$width,
|
|
23429
|
+
_ref$height = _ref.height,
|
|
23430
|
+
height = _ref$height === void 0 ? DEFAULT_ILLUSTRATION_SIZE : _ref$height,
|
|
23431
|
+
style = _ref.style;
|
|
23432
|
+
var IllustrationComponent = Illustrations[name];
|
|
23365
23433
|
var theme = useTheme();
|
|
23366
|
-
|
|
23367
|
-
|
|
23368
|
-
|
|
23434
|
+
var defaultStroke = theme.colors.primary;
|
|
23435
|
+
var defaultFill = theme.colors.decorativeSecondarySurface;
|
|
23436
|
+
if (!IllustrationComponent) {
|
|
23437
|
+
return null;
|
|
23438
|
+
}
|
|
23439
|
+
return /*#__PURE__*/React__namespace.default.createElement(Box, {
|
|
23440
|
+
style: style
|
|
23441
|
+
}, /*#__PURE__*/React__namespace.default.createElement(IllustrationComponent, {
|
|
23442
|
+
stroke: defaultStroke,
|
|
23443
|
+
fill: defaultFill,
|
|
23444
|
+
width: width,
|
|
23445
|
+
height: height,
|
|
23369
23446
|
testID: testID
|
|
23370
|
-
});
|
|
23447
|
+
}));
|
|
23371
23448
|
};
|
|
23372
23449
|
|
|
23373
23450
|
var StyledWrapper$7 = index$c(reactNative.View)(function (_ref) {
|
|
@@ -23409,8 +23486,8 @@ var renderImageOrIcon$2 = function renderImageOrIcon(_ref) {
|
|
|
23409
23486
|
var image = _ref.image,
|
|
23410
23487
|
icon = _ref.icon;
|
|
23411
23488
|
if (icon) {
|
|
23412
|
-
return /*#__PURE__*/React__namespace.default.createElement(StyledEmptyImageContainer, null, /*#__PURE__*/React__namespace.default.createElement(
|
|
23413
|
-
|
|
23489
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledEmptyImageContainer, null, /*#__PURE__*/React__namespace.default.createElement(Illustration, {
|
|
23490
|
+
name: icon,
|
|
23414
23491
|
testID: "empty-icon"
|
|
23415
23492
|
}));
|
|
23416
23493
|
}
|
|
@@ -23886,8 +23963,8 @@ var renderImageOrIcon$1 = function renderImageOrIcon(_ref) {
|
|
|
23886
23963
|
var image = _ref.image,
|
|
23887
23964
|
icon = _ref.icon;
|
|
23888
23965
|
if (icon) {
|
|
23889
|
-
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(
|
|
23890
|
-
|
|
23966
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledErrorIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(Illustration, {
|
|
23967
|
+
name: icon,
|
|
23891
23968
|
testID: "error-icon"
|
|
23892
23969
|
}));
|
|
23893
23970
|
}
|
|
@@ -26450,8 +26527,8 @@ var renderImageOrIcon = function renderImageOrIcon(_ref) {
|
|
|
26450
26527
|
var image = _ref.image,
|
|
26451
26528
|
icon = _ref.icon;
|
|
26452
26529
|
if (icon) {
|
|
26453
|
-
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(
|
|
26454
|
-
|
|
26530
|
+
return /*#__PURE__*/React__namespace.default.createElement(StyledSuccessIconContainer, null, /*#__PURE__*/React__namespace.default.createElement(Illustration, {
|
|
26531
|
+
name: icon,
|
|
26455
26532
|
testID: "success-icon"
|
|
26456
26533
|
}));
|
|
26457
26534
|
}
|
|
@@ -47583,7 +47660,7 @@ var SearchOneLine = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
47583
47660
|
value: value,
|
|
47584
47661
|
defaultValue: defaultValue,
|
|
47585
47662
|
placeholder: placeholder,
|
|
47586
|
-
placeholderTextColor: theme.__hd__.textInput.colors.placeholder
|
|
47663
|
+
placeholderTextColor: theme.__hd__.textInput.colors.placeholder[state]
|
|
47587
47664
|
}),
|
|
47588
47665
|
ref: function ref(rnTextInputRef) {
|
|
47589
47666
|
innerTextInput.current = rnTextInputRef;
|
|
@@ -48551,7 +48628,8 @@ var PrefixComponent$1 = /*#__PURE__*/React__namespace.default.memo(PrefixCompone
|
|
|
48551
48628
|
|
|
48552
48629
|
var DefaultTextInput = /*#__PURE__*/React__namespace.default.forwardRef(function (_ref, ref) {
|
|
48553
48630
|
var variant = _ref.variant,
|
|
48554
|
-
nativeInputProps = _ref.nativeInputProps
|
|
48631
|
+
nativeInputProps = _ref.nativeInputProps,
|
|
48632
|
+
state = _ref.state;
|
|
48555
48633
|
var theme = useWorkTheme();
|
|
48556
48634
|
var inputRef = React.useRef(null);
|
|
48557
48635
|
React.useImperativeHandle(ref, function () {
|
|
@@ -48583,7 +48661,7 @@ var DefaultTextInput = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
48583
48661
|
themeVariant: variant,
|
|
48584
48662
|
multiline: variant === 'textarea' || nativeInputProps.multiline,
|
|
48585
48663
|
ref: inputRef,
|
|
48586
|
-
placeholderTextColor: theme.__hd__.textInput.colors.placeholder
|
|
48664
|
+
placeholderTextColor: theme.__hd__.textInput.colors.placeholder[state]
|
|
48587
48665
|
}));
|
|
48588
48666
|
});
|
|
48589
48667
|
/**
|
|
@@ -48611,14 +48689,16 @@ var DefaultTextInput = /*#__PURE__*/React__namespace.default.forwardRef(function
|
|
|
48611
48689
|
var InputComponent = /*#__PURE__*/React__namespace.default.forwardRef(function (_ref2, ref) {
|
|
48612
48690
|
var variant = _ref2.variant,
|
|
48613
48691
|
nativeInputProps = _ref2.nativeInputProps,
|
|
48614
|
-
renderInputValue = _ref2.renderInputValue
|
|
48692
|
+
renderInputValue = _ref2.renderInputValue,
|
|
48693
|
+
state = _ref2.state;
|
|
48615
48694
|
if (renderInputValue) {
|
|
48616
48695
|
return /*#__PURE__*/React__namespace.default.createElement(React__namespace.default.Fragment, null, renderInputValue(_objectSpread2({}, nativeInputProps), ref));
|
|
48617
48696
|
}
|
|
48618
48697
|
return /*#__PURE__*/React__namespace.default.createElement(DefaultTextInput, {
|
|
48619
48698
|
variant: variant,
|
|
48620
48699
|
nativeInputProps: nativeInputProps,
|
|
48621
|
-
ref: ref
|
|
48700
|
+
ref: ref,
|
|
48701
|
+
state: state
|
|
48622
48702
|
});
|
|
48623
48703
|
});
|
|
48624
48704
|
InputComponent.displayName = 'InputComponent';
|
|
@@ -48693,7 +48773,8 @@ var InputRow = /*#__PURE__*/React__namespace.default.forwardRef(function (_ref,
|
|
|
48693
48773
|
onBlur: handleBlur
|
|
48694
48774
|
}),
|
|
48695
48775
|
renderInputValue: renderInputValue,
|
|
48696
|
-
ref: ref
|
|
48776
|
+
ref: ref,
|
|
48777
|
+
state: state
|
|
48697
48778
|
})));
|
|
48698
48779
|
});
|
|
48699
48780
|
|
|
@@ -68364,6 +68445,8 @@ exports.FloatingIsland = FloatingIsland;
|
|
|
68364
68445
|
exports.FormGroup = FormGroup;
|
|
68365
68446
|
exports.HeroDesignProvider = HeroDesignProvider;
|
|
68366
68447
|
exports.Icon = Icon;
|
|
68448
|
+
exports.Illustration = Illustration;
|
|
68449
|
+
exports.IllustrationList = IllustrationList;
|
|
68367
68450
|
exports.Image = Image;
|
|
68368
68451
|
exports.List = List$1;
|
|
68369
68452
|
exports.LocaleProvider = LocaleProvider;
|