@hero-design/rn 8.91.0 → 8.91.3
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/CHANGELOG.md +23 -0
- package/es/index.js +157 -37
- package/lib/index.js +157 -37
- package/package.json +1 -1
- package/src/components/AnimatedScroller/__tests__/__snapshots__/ScrollablesWithFAB.spec.tsx.snap +6 -6
- package/src/components/Checkbox/StyledCheckbox.tsx +3 -3
- package/src/components/Checkbox/__tests__/__snapshots__/StyledCheckbox.spec.tsx.snap +1 -1
- package/src/components/Checkbox/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/Checkbox/__tests__/index.spec.tsx +11 -7
- package/src/components/Checkbox/index.tsx +11 -2
- package/src/components/Chip/__tests__/__snapshots__/index.spec.tsx.snap +8 -8
- package/src/components/DatePicker/__tests__/__snapshots__/DatePicker.spec.tsx.snap +63 -3
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerAndroid.spec.tsx.snap +21 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerCalendar.spec.tsx.snap +21 -1
- package/src/components/DatePicker/__tests__/__snapshots__/DatePickerIOS.spec.tsx.snap +42 -2
- package/src/components/FAB/ActionGroup/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FAB/Pair/__tests__/__snapshots__/index.spec.tsx.snap +2 -2
- package/src/components/FAB/__tests__/__snapshots__/StyledFAB.spec.tsx.snap +2 -2
- package/src/components/FAB/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FloatingIsland/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/List/__tests__/__snapshots__/ListItem.spec.tsx.snap +3 -2
- package/src/components/List/__tests__/__snapshots__/StyledListItem.spec.tsx.snap +2 -2
- package/src/components/MapPin/__tests__/__snapshots__/index.spec.tsx.snap +4 -4
- package/src/components/RichTextEditor/RichTextEditor.tsx +2 -1
- package/src/components/RichTextEditor/__tests__/__snapshots__/RichTextEditor.spec.tsx.snap +40 -2
- package/src/components/Search/SearchOneLine.tsx +3 -1
- package/src/components/Search/__tests__/__snapshots__/SearchOneLine.spec.tsx.snap +7 -0
- package/src/components/Select/MultiSelect/__tests__/__snapshots__/index.spec.tsx.snap +147 -7
- package/src/components/Select/SingleSelect/__tests__/__snapshots__/index.spec.tsx.snap +126 -6
- package/src/components/Slider/__tests__/__snapshots__/RangeSlider.spec.tsx.snap +2 -2
- package/src/components/Success/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Switch/SelectorSwitch/__tests__/__snapshots__/index.spec.tsx.snap +1 -1
- package/src/components/Switch/StyledSwitch.tsx +1 -0
- package/src/components/Switch/__tests__/__snapshots__/StyledSwitch.spec.tsx.snap +8 -4
- package/src/components/Switch/__tests__/__snapshots__/index.spec.tsx.snap +4 -2
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +337 -16
- package/src/components/TextInput/__tests__/index.spec.tsx +2 -0
- package/src/components/TextInput/index.tsx +7 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerAndroid.spec.tsx.snap +42 -2
- package/src/components/TimePicker/__tests__/__snapshots__/TimePickerIOS.spec.tsx.snap +42 -2
- package/src/components/Toast/__tests__/__snapshots__/Toast.spec.tsx.snap +7 -7
- package/src/theme/__tests__/__snapshots__/index.spec.ts.snap +44 -16
- package/src/theme/components/attachment.ts +1 -1
- package/src/theme/components/checkbox.ts +7 -0
- package/src/theme/components/success.ts +1 -1
- package/src/theme/components/switch.ts +5 -5
- package/src/theme/components/textInput.ts +1 -0
- package/src/theme/global/colors/__tests__/__snapshots__/swagLight.spec.ts.snap +4 -3
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightGlobal.spec.ts.snap +3 -3
- package/src/theme/global/colors/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +4 -3
- package/src/theme/global/colors/ehWorkDark.ts +1 -0
- package/src/theme/global/colors/swagLight.ts +1 -0
- package/src/theme/global/colors/swagLightGlobal.ts +3 -3
- package/src/theme/global/colors/swagLightJobs.ts +3 -1
- package/src/theme/global/colors/types.ts +2 -0
- package/src/theme/global/shadows/__tests__/__snapshots__/ehWorkDark.spec.ts.snap +36 -0
- package/src/theme/global/shadows/__tests__/__snapshots__/swagLight.spec.ts.snap +36 -0
- package/src/theme/global/shadows/__tests__/__snapshots__/swagLightJobs.spec.ts.snap +36 -0
- package/src/theme/global/shadows/__tests__/ehWorkDark.spec.ts +7 -0
- package/src/theme/global/shadows/__tests__/index.spec.ts +24 -0
- package/src/theme/global/shadows/__tests__/swagLight.spec.ts +7 -0
- package/src/theme/global/shadows/__tests__/swagLightJobs.spec.ts +7 -0
- package/src/theme/global/shadows/ehWorkDark.ts +37 -0
- package/src/theme/global/shadows/index.ts +23 -0
- package/src/theme/global/shadows/swagLight.ts +37 -0
- package/src/theme/global/shadows/swagLightJobs.ts +37 -0
- package/src/theme/global/shadows/types.ts +16 -0
- package/stats/8.91.1/rn-stats.html +4842 -0
- package/stats/8.91.2/rn-stats.html +4842 -0
- package/stats/8.91.3/rn-stats.html +4844 -0
- package/types/components/Checkbox/StyledCheckbox.d.ts +1 -1
- package/types/components/Checkbox/index.d.ts +2 -1
- package/types/components/TextInput/index.d.ts +3 -1
- package/types/theme/components/attachment.d.ts +1 -1
- package/types/theme/components/checkbox.d.ts +7 -0
- package/types/theme/components/chip.d.ts +1 -10
- package/types/theme/components/floatingIsland.d.ts +1 -10
- package/types/theme/components/slider.d.ts +1 -10
- package/types/theme/components/switch.d.ts +1 -1
- package/types/theme/components/textInput.d.ts +1 -0
- package/types/theme/global/colors/swagLightJobs.d.ts +2 -50
- package/types/theme/global/colors/types.d.ts +2 -0
- package/types/theme/global/index.d.ts +2 -12
- package/types/theme/global/shadows/ehWorkDark.d.ts +3 -0
- package/types/theme/global/shadows/index.d.ts +5 -0
- package/types/theme/global/shadows/swagLight.d.ts +3 -0
- package/types/theme/global/shadows/swagLightJobs.d.ts +3 -0
- package/types/theme/global/shadows/types.d.ts +15 -0
- package/src/theme/global/shadows.ts +0 -19
- package/types/theme/global/shadows.d.ts +0 -16
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(node:
|
|
1
|
+
(node:3043) 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
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
[7m [0m [91m ~~~~~~~~~~~~~~~~~~~[0m
|
|
11
11
|
[39m
|
|
12
12
|
[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
|
|
13
|
-
[32mcreated [1mlib/index.js, es/index.js[22m in [1m51.
|
|
13
|
+
[32mcreated [1mlib/index.js, es/index.js[22m in [1m51.4s[22m[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,28 @@
|
|
|
1
1
|
# @hero-design/rn
|
|
2
2
|
|
|
3
|
+
## 8.91.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#3696](https://github.com/Thinkei/hero-design/pull/3696) [`769f2738b4d870703ad169290f3cc36305920a28`](https://github.com/Thinkei/hero-design/commit/769f2738b4d870703ad169290f3cc36305920a28) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - Update mobile shadow tokens
|
|
8
|
+
|
|
9
|
+
## 8.91.2
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#3694](https://github.com/Thinkei/hero-design/pull/3694) [`6b5810543df428ac5e4ffb6be8a3a0c820177d23`](https://github.com/Thinkei/hero-design/commit/6b5810543df428ac5e4ffb6be8a3a0c820177d23) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Checkbox][switch] Update color
|
|
14
|
+
|
|
15
|
+
- [#3695](https://github.com/Thinkei/hero-design/pull/3695) [`5b3d9e000462957834b653bf9f2a3934f39aca6b`](https://github.com/Thinkei/hero-design/commit/5b3d9e000462957834b653bf9f2a3934f39aca6b) Thanks [@vinhphan-eh](https://github.com/vinhphan-eh)! - [Search.OneLine][textinput] Update placeholder color
|
|
16
|
+
|
|
17
|
+
- [#3697](https://github.com/Thinkei/hero-design/pull/3697) [`0bb02b0f890e99650c5dce6afc231da2c3507539`](https://github.com/Thinkei/hero-design/commit/0bb02b0f890e99650c5dce6afc231da2c3507539) Thanks [@luanlai2201](https://github.com/luanlai2201)! - [TextInput][richtexteditor] Add element to wrap the label
|
|
18
|
+
|
|
19
|
+
## 8.91.1
|
|
20
|
+
|
|
21
|
+
### Patch Changes
|
|
22
|
+
|
|
23
|
+
- [#3692](https://github.com/Thinkei/hero-design/pull/3692) [`55b61687842b3d6b7415195bab1e70fa272da600`](https://github.com/Thinkei/hero-design/commit/55b61687842b3d6b7415195bab1e70fa272da600) Thanks [@ttkien](https://github.com/ttkien)! - [Attachment] change highlightedBackground to decorativeSecondarySurface
|
|
24
|
+
[Success] change fullscreen background to defaultGlobalSurface
|
|
25
|
+
|
|
3
26
|
## 8.91.0
|
|
4
27
|
|
|
5
28
|
### Minor Changes
|
package/es/index.js
CHANGED
|
@@ -1986,10 +1986,10 @@ var swagDarkSystemPalette = _objectSpread2(_objectSpread2(_objectSpread2({}, glo
|
|
|
1986
1986
|
|
|
1987
1987
|
var swagLightGlobalPalette = _objectSpread2(_objectSpread2({}, globalPalette$1), {}, {
|
|
1988
1988
|
onDefaultGlobalSurface: palette$3.offBlack,
|
|
1989
|
-
mutedOnDefaultGlobalSurface:
|
|
1990
|
-
inactiveOnDefaultGlobalSurface:
|
|
1989
|
+
mutedOnDefaultGlobalSurface: '#4d6265',
|
|
1990
|
+
inactiveOnDefaultGlobalSurface: '#808f91',
|
|
1991
1991
|
primaryOutline: palette$3.offBlack,
|
|
1992
|
-
inactiveOutline:
|
|
1992
|
+
inactiveOutline: '#808f91'
|
|
1993
1993
|
});
|
|
1994
1994
|
|
|
1995
1995
|
var swagBrandSystemPallete = {
|
|
@@ -2005,9 +2005,12 @@ var swagBrandSystemPallete = {
|
|
|
2005
2005
|
decorativeSecondary: '#fdfbff',
|
|
2006
2006
|
decorativeSecondarySurface: '#f0e6ff'
|
|
2007
2007
|
};
|
|
2008
|
-
var swagSystemPalette = _objectSpread2(_objectSpread2({}, swagLightGlobalPalette), swagBrandSystemPallete)
|
|
2008
|
+
var swagSystemPalette = _objectSpread2(_objectSpread2(_objectSpread2({}, swagLightGlobalPalette), swagBrandSystemPallete), {}, {
|
|
2009
|
+
name: 'swagLight'
|
|
2010
|
+
});
|
|
2009
2011
|
|
|
2010
2012
|
var swagLightJobsSystemPalette = _objectSpread2(_objectSpread2({}, swagSystemPalette), {}, {
|
|
2013
|
+
name: 'swagLightJobs',
|
|
2011
2014
|
secondary: '#40d1ff',
|
|
2012
2015
|
onSecondary: '#460078',
|
|
2013
2016
|
secondaryHighlightedSurface: '#ecfaff',
|
|
@@ -2124,7 +2127,8 @@ var ehWorkDarkSystemPalette = {
|
|
|
2124
2127
|
decorativeSecondary: '#280541',
|
|
2125
2128
|
decorativeSecondarySurface: '#4c1d95',
|
|
2126
2129
|
// Theme Mode
|
|
2127
|
-
themeMode: 'dark'
|
|
2130
|
+
themeMode: 'dark',
|
|
2131
|
+
name: 'ehWorkDark'
|
|
2128
2132
|
};
|
|
2129
2133
|
|
|
2130
2134
|
var BASE_WIDTH = 390; // Based on iPhone 13's viewport size
|
|
@@ -2289,19 +2293,116 @@ var getRadii = function getRadii(baseRadius) {
|
|
|
2289
2293
|
};
|
|
2290
2294
|
};
|
|
2291
2295
|
|
|
2292
|
-
var
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2296
|
+
var swagLightShadowPalette = {
|
|
2297
|
+
"default": {
|
|
2298
|
+
shadowOffset: {
|
|
2299
|
+
width: 0,
|
|
2300
|
+
height: 2
|
|
2301
|
+
},
|
|
2302
|
+
shadowColor: swagSystemPalette.primaryOutline,
|
|
2303
|
+
shadowOpacity: 0.12,
|
|
2304
|
+
shadowRadius: 4,
|
|
2305
|
+
elevation: 3
|
|
2306
|
+
},
|
|
2307
|
+
cardDrawer: {
|
|
2308
|
+
shadowOffset: {
|
|
2309
|
+
width: 0,
|
|
2310
|
+
height: 2
|
|
2311
|
+
},
|
|
2312
|
+
shadowColor: '#001f23',
|
|
2313
|
+
shadowOpacity: 0.12,
|
|
2314
|
+
shadowRadius: 2,
|
|
2315
|
+
elevation: 6
|
|
2316
|
+
},
|
|
2317
|
+
tabBar: {
|
|
2318
|
+
shadowOffset: {
|
|
2319
|
+
width: 0,
|
|
2320
|
+
height: -4
|
|
2321
|
+
},
|
|
2322
|
+
shadowColor: '#001f23',
|
|
2323
|
+
shadowOpacity: 0.04,
|
|
2324
|
+
shadowRadius: 6,
|
|
2325
|
+
elevation: 10
|
|
2326
|
+
}
|
|
2327
|
+
};
|
|
2328
|
+
|
|
2329
|
+
var swagLightJobsShadowPalette = {
|
|
2330
|
+
"default": {
|
|
2331
|
+
shadowOffset: {
|
|
2332
|
+
width: 0,
|
|
2333
|
+
height: 2
|
|
2334
|
+
},
|
|
2335
|
+
shadowColor: swagLightJobsSystemPalette.primaryOutline,
|
|
2336
|
+
shadowOpacity: 0.12,
|
|
2337
|
+
shadowRadius: 4,
|
|
2338
|
+
elevation: 3
|
|
2339
|
+
},
|
|
2340
|
+
cardDrawer: {
|
|
2341
|
+
shadowOffset: {
|
|
2342
|
+
width: 0,
|
|
2343
|
+
height: 2
|
|
2344
|
+
},
|
|
2345
|
+
shadowColor: '#001f23',
|
|
2346
|
+
shadowOpacity: 0.12,
|
|
2347
|
+
shadowRadius: 2,
|
|
2348
|
+
elevation: 6
|
|
2349
|
+
},
|
|
2350
|
+
tabBar: {
|
|
2351
|
+
shadowOffset: {
|
|
2352
|
+
width: 0,
|
|
2353
|
+
height: -4
|
|
2354
|
+
},
|
|
2355
|
+
shadowColor: '#001f23',
|
|
2356
|
+
shadowOpacity: 0.04,
|
|
2357
|
+
shadowRadius: 6,
|
|
2358
|
+
elevation: 10
|
|
2359
|
+
}
|
|
2360
|
+
};
|
|
2361
|
+
|
|
2362
|
+
var ehWorkDarkShadowPalette = {
|
|
2363
|
+
"default": {
|
|
2364
|
+
shadowOffset: {
|
|
2365
|
+
width: 0,
|
|
2366
|
+
height: 2
|
|
2367
|
+
},
|
|
2368
|
+
shadowColor: ehWorkDarkSystemPalette.primaryOutline,
|
|
2369
|
+
shadowOpacity: 0.12,
|
|
2370
|
+
shadowRadius: 4,
|
|
2371
|
+
elevation: 3
|
|
2372
|
+
},
|
|
2373
|
+
cardDrawer: {
|
|
2374
|
+
shadowOffset: {
|
|
2375
|
+
width: 0,
|
|
2376
|
+
height: 2
|
|
2377
|
+
},
|
|
2378
|
+
shadowColor: '#000000',
|
|
2379
|
+
shadowOpacity: 0.56,
|
|
2380
|
+
shadowRadius: 2,
|
|
2381
|
+
elevation: 6
|
|
2382
|
+
},
|
|
2383
|
+
tabBar: {
|
|
2384
|
+
shadowOffset: {
|
|
2385
|
+
width: 0,
|
|
2386
|
+
height: -4
|
|
2387
|
+
},
|
|
2388
|
+
shadowColor: '#000000',
|
|
2389
|
+
shadowOpacity: 0.24,
|
|
2390
|
+
shadowRadius: 6,
|
|
2391
|
+
elevation: 10
|
|
2392
|
+
}
|
|
2393
|
+
};
|
|
2394
|
+
|
|
2395
|
+
var getShadows = function getShadows(palette) {
|
|
2396
|
+
switch (palette.name) {
|
|
2397
|
+
case 'swagLight':
|
|
2398
|
+
return swagLightShadowPalette;
|
|
2399
|
+
case 'swagLightJobs':
|
|
2400
|
+
return swagLightJobsShadowPalette;
|
|
2401
|
+
case 'ehWorkDark':
|
|
2402
|
+
return ehWorkDarkShadowPalette;
|
|
2403
|
+
default:
|
|
2404
|
+
return swagLightShadowPalette;
|
|
2405
|
+
}
|
|
2305
2406
|
};
|
|
2306
2407
|
|
|
2307
2408
|
var getGlobalTheme = function getGlobalTheme(scale, systemPalette) {
|
|
@@ -2387,7 +2488,7 @@ var getAlertTheme = function getAlertTheme(theme) {
|
|
|
2387
2488
|
|
|
2388
2489
|
var getAttachmentTheme = function getAttachmentTheme(theme) {
|
|
2389
2490
|
var colors = {
|
|
2390
|
-
highlightedBackground: theme.colors.
|
|
2491
|
+
highlightedBackground: theme.colors.decorativeSecondarySurface
|
|
2391
2492
|
};
|
|
2392
2493
|
var sizes = {
|
|
2393
2494
|
imageHeight: theme.sizes.xxxlarge,
|
|
@@ -2808,8 +2909,15 @@ var getCheckboxTheme = function getCheckboxTheme(theme) {
|
|
|
2808
2909
|
var colors = {
|
|
2809
2910
|
borders: {
|
|
2810
2911
|
"default": theme.colors.primaryOutline,
|
|
2912
|
+
checked: theme.colors.primaryOutline,
|
|
2811
2913
|
disabled: theme.colors.disabledOutline,
|
|
2812
2914
|
readonly: theme.colors.inactiveOutline
|
|
2915
|
+
},
|
|
2916
|
+
checkboxBorder: {
|
|
2917
|
+
"default": theme.colors.primaryOutline,
|
|
2918
|
+
checked: theme.colors.primary,
|
|
2919
|
+
disabled: theme.colors.disabledOutline,
|
|
2920
|
+
readonly: theme.colors.mutedOnDefaultGlobalSurface
|
|
2813
2921
|
}
|
|
2814
2922
|
};
|
|
2815
2923
|
var space = {
|
|
@@ -3539,7 +3647,7 @@ var getSuccessTheme = function getSuccessTheme(theme) {
|
|
|
3539
3647
|
var colors = {
|
|
3540
3648
|
title: theme.colors.onDefaultGlobalSurface,
|
|
3541
3649
|
description: theme.colors.mutedOnDefaultGlobalSurface,
|
|
3542
|
-
fullScreenBackground: theme.colors.
|
|
3650
|
+
fullScreenBackground: theme.colors.defaultGlobalSurface,
|
|
3543
3651
|
inPageBackground: theme.colors.neutralGlobalSurface
|
|
3544
3652
|
};
|
|
3545
3653
|
var fontSizes = {
|
|
@@ -3582,14 +3690,14 @@ var getSwipeableTheme = function getSwipeableTheme(theme) {
|
|
|
3582
3690
|
var getSwitchTheme = function getSwitchTheme(theme) {
|
|
3583
3691
|
var colors = {
|
|
3584
3692
|
backgroundColors: {
|
|
3585
|
-
checked: theme.colors.
|
|
3693
|
+
checked: theme.colors.pressedSurface,
|
|
3586
3694
|
unchecked: theme.colors.inactiveOnDefaultGlobalSurface,
|
|
3587
|
-
'disabled-checked': theme.colors.
|
|
3588
|
-
'disabled-unchecked': theme.colors.
|
|
3695
|
+
'disabled-checked': theme.colors.inactiveOnDefaultGlobalSurface,
|
|
3696
|
+
'disabled-unchecked': theme.colors.inactiveOnDefaultGlobalSurface
|
|
3589
3697
|
},
|
|
3590
|
-
thumb: theme.colors.
|
|
3698
|
+
thumb: theme.colors.white,
|
|
3591
3699
|
selector: {
|
|
3592
|
-
background: theme.colors.
|
|
3700
|
+
background: theme.colors.neutralGlobalSurface,
|
|
3593
3701
|
textBackground: theme.colors.decorativePrimarySurface
|
|
3594
3702
|
}
|
|
3595
3703
|
};
|
|
@@ -3745,7 +3853,8 @@ var getTextInputTheme = function getTextInputTheme(theme) {
|
|
|
3745
3853
|
disabled: theme.colors.disabledOnDefaultGlobalSurface,
|
|
3746
3854
|
readonly: theme.colors.inactiveOnDefaultGlobalSurface,
|
|
3747
3855
|
filled: theme.colors.onDefaultGlobalSurface
|
|
3748
|
-
}
|
|
3856
|
+
},
|
|
3857
|
+
placeholder: theme.colors.mutedOnDefaultGlobalSurface
|
|
3749
3858
|
};
|
|
3750
3859
|
var space = {
|
|
3751
3860
|
containerPadding: theme.space.medium,
|
|
@@ -14352,7 +14461,7 @@ var StyledCheckbox = index$a(View)(function (_ref4) {
|
|
|
14352
14461
|
flex: 1,
|
|
14353
14462
|
borderRadius: theme.__hd__.checkbox.radii.icon,
|
|
14354
14463
|
borderWidth: theme.__hd__.checkbox.borderWidths.icon,
|
|
14355
|
-
borderColor: theme.__hd__.checkbox.colors.
|
|
14464
|
+
borderColor: theme.__hd__.checkbox.colors.checkboxBorder[themeState]
|
|
14356
14465
|
};
|
|
14357
14466
|
});
|
|
14358
14467
|
var StyledCheckMark = index$a(Icon)(function (_ref5) {
|
|
@@ -14361,19 +14470,23 @@ var StyledCheckMark = index$a(Icon)(function (_ref5) {
|
|
|
14361
14470
|
return {
|
|
14362
14471
|
position: 'absolute',
|
|
14363
14472
|
top: theme.__hd__.checkbox.space.iconTop,
|
|
14364
|
-
color: theme.__hd__.checkbox.colors.
|
|
14473
|
+
color: theme.__hd__.checkbox.colors.checkboxBorder[themeState]
|
|
14365
14474
|
};
|
|
14366
14475
|
});
|
|
14367
14476
|
|
|
14368
14477
|
var getThemeState = function getThemeState(_ref) {
|
|
14369
14478
|
var disabled = _ref.disabled,
|
|
14370
|
-
readonly = _ref.readonly
|
|
14479
|
+
readonly = _ref.readonly,
|
|
14480
|
+
checked = _ref.checked;
|
|
14371
14481
|
if (disabled) {
|
|
14372
14482
|
return 'disabled';
|
|
14373
14483
|
}
|
|
14374
14484
|
if (readonly) {
|
|
14375
14485
|
return 'readonly';
|
|
14376
14486
|
}
|
|
14487
|
+
if (checked) {
|
|
14488
|
+
return 'checked';
|
|
14489
|
+
}
|
|
14377
14490
|
return 'default';
|
|
14378
14491
|
};
|
|
14379
14492
|
var Checkbox = function Checkbox(_ref2) {
|
|
@@ -14391,7 +14504,8 @@ var Checkbox = function Checkbox(_ref2) {
|
|
|
14391
14504
|
useDeprecation("Checkbox's withBorder prop will be removed in the next major release, all checkboxes will have border by default. Please remove it.", withBorder === true);
|
|
14392
14505
|
var themeState = getThemeState({
|
|
14393
14506
|
disabled: disabled,
|
|
14394
|
-
readonly: readonly
|
|
14507
|
+
readonly: readonly,
|
|
14508
|
+
checked: checked
|
|
14395
14509
|
});
|
|
14396
14510
|
return /*#__PURE__*/React__default.createElement(StyledWrapper$8, {
|
|
14397
14511
|
onPress: onPress,
|
|
@@ -14584,11 +14698,13 @@ var renderInput$1 = function renderInput(_ref3) {
|
|
|
14584
14698
|
var variant = _ref3.variant,
|
|
14585
14699
|
nativeInputProps = _ref3.nativeInputProps,
|
|
14586
14700
|
renderInputValue = _ref3.renderInputValue,
|
|
14587
|
-
ref = _ref3.ref
|
|
14701
|
+
ref = _ref3.ref,
|
|
14702
|
+
theme = _ref3.theme;
|
|
14588
14703
|
return renderInputValue ? renderInputValue(nativeInputProps) : /*#__PURE__*/React__default.createElement(StyledTextInput, _extends$1({}, nativeInputProps, {
|
|
14589
14704
|
themeVariant: variant,
|
|
14590
14705
|
multiline: variant === 'textarea' || nativeInputProps.multiline,
|
|
14591
|
-
ref: ref
|
|
14706
|
+
ref: ref,
|
|
14707
|
+
placeholderTextColor: theme.__hd__.textInput.colors.placeholder
|
|
14592
14708
|
}));
|
|
14593
14709
|
};
|
|
14594
14710
|
var renderSuffix$1 = function renderSuffix(_ref4) {
|
|
@@ -14843,13 +14959,14 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref8, ref) {
|
|
|
14843
14959
|
},
|
|
14844
14960
|
themeState: state,
|
|
14845
14961
|
testID: "input-label-asterisk"
|
|
14846
|
-
}, "*"), label)), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
|
|
14962
|
+
}, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, null, label))), /*#__PURE__*/React__default.createElement(StyledTextInputAndLabelContainer, null, renderInput$1({
|
|
14847
14963
|
variant: variant,
|
|
14848
14964
|
nativeInputProps: nativeInputProps,
|
|
14849
14965
|
renderInputValue: renderInputValue,
|
|
14850
14966
|
ref: function ref(rnTextInputRef) {
|
|
14851
14967
|
innerTextInput.current = rnTextInputRef;
|
|
14852
|
-
}
|
|
14968
|
+
},
|
|
14969
|
+
theme: theme
|
|
14853
14970
|
})), renderSuffix$1({
|
|
14854
14971
|
state: state,
|
|
14855
14972
|
loading: loading,
|
|
@@ -19459,7 +19576,8 @@ var StyledWrapper$2 = index$a(View)(function (_ref) {
|
|
|
19459
19576
|
borderRadius: theme.__hd__["switch"].radii.rounded,
|
|
19460
19577
|
backgroundColor: theme.__hd__["switch"].colors.backgroundColors[themeVariant],
|
|
19461
19578
|
display: 'flex',
|
|
19462
|
-
justifyContent: 'center'
|
|
19579
|
+
justifyContent: 'center',
|
|
19580
|
+
opacity: themeVariant.includes('disabled') ? 0.4 : 1
|
|
19463
19581
|
};
|
|
19464
19582
|
});
|
|
19465
19583
|
var StyledKnot = index$a(Animated.View)(function (_ref2) {
|
|
@@ -39814,7 +39932,7 @@ var RichTextEditor = function RichTextEditor(_ref) {
|
|
|
39814
39932
|
backgroundColor: theme.__hd__.textInput.colors.labelBackground
|
|
39815
39933
|
},
|
|
39816
39934
|
themeState: state
|
|
39817
|
-
}, "*"), label)), /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
|
|
39935
|
+
}, "*"), /*#__PURE__*/React__default.createElement(Typography.Body, null, label))), /*#__PURE__*/React__default.createElement(StyledTextInputContainer, {
|
|
39818
39936
|
onLayout: onLayout
|
|
39819
39937
|
}, /*#__PURE__*/React__default.createElement(StyledBorderBackDrop, {
|
|
39820
39938
|
themeState: state,
|
|
@@ -40209,6 +40327,7 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40209
40327
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
40210
40328
|
isFocused = _React$useState2[0],
|
|
40211
40329
|
setIsFocused = _React$useState2[1];
|
|
40330
|
+
var theme = useTheme();
|
|
40212
40331
|
var displayText = (_ref3 = value !== undefined ? value : defaultValue) !== null && _ref3 !== void 0 ? _ref3 : '';
|
|
40213
40332
|
var isEmptyValue = displayText.length === 0;
|
|
40214
40333
|
var state = getState({
|
|
@@ -40293,7 +40412,8 @@ var SearchOneLine = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
40293
40412
|
maxLength: maxLength,
|
|
40294
40413
|
value: value,
|
|
40295
40414
|
defaultValue: defaultValue,
|
|
40296
|
-
placeholder: placeholder
|
|
40415
|
+
placeholder: placeholder,
|
|
40416
|
+
placeholderTextColor: theme.__hd__.textInput.colors.placeholder
|
|
40297
40417
|
}),
|
|
40298
40418
|
ref: function ref(rnTextInputRef) {
|
|
40299
40419
|
innerTextInput.current = rnTextInputRef;
|