@hero-design/rn-work-uikit 1.13.4 → 1.13.6

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hero-design/rn-work-uikit",
3
- "version": "1.13.4",
3
+ "version": "1.13.6",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -23,7 +23,7 @@
23
23
  "dependencies": {
24
24
  "@emotion/native": "^11.9.3",
25
25
  "@emotion/react": "^11.9.3",
26
- "@hero-design/rn": "8.124.2",
26
+ "@hero-design/rn": "8.126.0",
27
27
  "hero-editor": "^1.17.0"
28
28
  },
29
29
  "peerDependencies": {
@@ -252,7 +252,7 @@ export const InternalTextInput = forwardRef<
252
252
  style: StyleSheet.flatten([
253
253
  {
254
254
  backgroundColor,
255
- color: theme.__hd__.textInput.colors.text,
255
+ color: theme.__hd__.textInput.colors.text.default,
256
256
  },
257
257
  textInputStyle,
258
258
  ]),
@@ -7,7 +7,13 @@ const getTextInputTheme = (theme: Theme) => {
7
7
  const colors = {
8
8
  ...baseTextInputTheme.colors,
9
9
  // Example: override specific colors
10
- // text: theme.colors.customTextColor,
10
+ asterisks: {
11
+ default: theme.colors.onErrorSurface,
12
+ error: theme.colors.onErrorSurface,
13
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
14
+ readonly: theme.colors.inactiveOnDefaultGlobalSurface,
15
+ filled: theme.colors.onErrorSurface,
16
+ },
11
17
  borders: {
12
18
  default: theme.colors.secondaryOutline,
13
19
  error: theme.colors.onErrorSurface,
@@ -24,6 +30,13 @@ const getTextInputTheme = (theme: Theme) => {
24
30
  filled: theme.colors.inactiveOnDefaultGlobalSurface,
25
31
  focused: theme.colors.onDefaultGlobalSurface,
26
32
  },
33
+ labelsInsideTextInput: {
34
+ default: theme.colors.onDefaultGlobalSurface,
35
+ error: theme.colors.onDefaultGlobalSurface,
36
+ disabled: theme.colors.disabledOnDefaultGlobalSurface,
37
+ readonly: theme.colors.inactiveOnDefaultGlobalSurface,
38
+ filled: theme.colors.onDefaultGlobalSurface,
39
+ },
27
40
  maxLengthLabels: {
28
41
  default: theme.colors.onDefaultGlobalSurface,
29
42
  error: theme.colors.onErrorSurface,
@@ -37,7 +50,8 @@ const getTextInputTheme = (theme: Theme) => {
37
50
  const space = {
38
51
  ...baseTextInputTheme.space,
39
52
  // Example: override specific spacing
40
- // containerPadding: theme.space.large,
53
+ containerPadding: theme.space.medium,
54
+ errorMarginLeft: theme.space.xsmall,
41
55
  inputWrapperMarginVertical: theme.space.small,
42
56
  prefixAndInputContainerGap: theme.space.xsmall,
43
57
  };
@@ -56,10 +70,6 @@ const getTextInputTheme = (theme: Theme) => {
56
70
 
57
71
  const borderWidths = {
58
72
  ...baseTextInputTheme.borderWidths,
59
- container: {
60
- ...baseTextInputTheme.borderWidths.container,
61
- normal: theme.borderWidths.medium,
62
- },
63
73
  };
64
74
 
65
75
  const radii = {
@@ -71,6 +81,7 @@ const getTextInputTheme = (theme: Theme) => {
71
81
  containerMinHeight: theme.sizes.xxxxlarge,
72
82
  errorAndHelpTextContainerHeight: 0,
73
83
  textInputMinHeight: baseTextInputTheme.fontSizes.text + theme.space.small,
84
+ textareaHeight: theme.sizes['15xlarge'],
74
85
  };
75
86
 
76
87
  const lineHeights = {
package/types/index.d.ts CHANGED
@@ -396,6 +396,13 @@ declare const _default: React$1.ForwardRefExoticComponent<Omit<RichTextEditorPro
396
396
 
397
397
  declare const getTextInputTheme: (theme: Theme$1) => {
398
398
  colors: {
399
+ asterisks: {
400
+ default: string;
401
+ error: string;
402
+ disabled: string;
403
+ readonly: string;
404
+ filled: string;
405
+ };
399
406
  borders: {
400
407
  default: string;
401
408
  error: string;
@@ -412,32 +419,32 @@ declare const getTextInputTheme: (theme: Theme$1) => {
412
419
  filled: string;
413
420
  focused: string;
414
421
  };
415
- maxLengthLabels: {
422
+ labelsInsideTextInput: {
416
423
  default: string;
417
424
  error: string;
418
425
  disabled: string;
419
426
  readonly: string;
420
427
  filled: string;
421
- focused: string;
422
428
  };
423
- labelBackground: string;
424
- containerBackground: string;
425
- asterisks: {
429
+ maxLengthLabels: {
426
430
  default: string;
427
431
  error: string;
428
432
  disabled: string;
429
433
  readonly: string;
430
434
  filled: string;
435
+ focused: string;
431
436
  };
437
+ labelBackground: string;
438
+ containerBackground: string;
432
439
  error: string;
433
- text: string;
434
- labelsInsideTextInput: {
440
+ text: {
435
441
  default: string;
442
+ filled: string;
436
443
  error: string;
437
- disabled: string;
438
444
  readonly: string;
439
- filled: string;
445
+ disabled: string;
440
446
  };
447
+ readonlyBackground: string;
441
448
  placeholder: {
442
449
  default: string;
443
450
  error: string;
@@ -447,9 +454,12 @@ declare const getTextInputTheme: (theme: Theme$1) => {
447
454
  };
448
455
  };
449
456
  space: {
457
+ containerPadding: number;
458
+ errorMarginLeft: number;
450
459
  inputWrapperMarginVertical: number;
451
460
  prefixAndInputContainerGap: number;
452
- containerPadding: number;
461
+ containerHorizontalPadding: number;
462
+ containerVerticalPadding: number;
453
463
  labelLeft: number;
454
464
  labelTop: number;
455
465
  labelPaddingBottom: number;
@@ -457,11 +467,12 @@ declare const getTextInputTheme: (theme: Theme$1) => {
457
467
  inputHorizontalMargin: number;
458
468
  errorContainerMarginRight: number;
459
469
  errorAndHelpTextContainerMarginTop: number;
460
- errorMarginLeft: number;
461
- errorAndHelpTextContainerHorizontalPadding: number;
462
470
  containerMarginTop: number;
463
471
  labelInsideTextInputMarginTop: number;
464
472
  errorAndHelpTextContainerPaddingTop: number;
473
+ inputAndLabelContainerPaddingTop: number;
474
+ labelFocusedTranslateY: number;
475
+ textareaLabelIdleTranslateY: number;
465
476
  };
466
477
  fonts: {
467
478
  text: string;
@@ -488,10 +499,12 @@ declare const getTextInputTheme: (theme: Theme$1) => {
488
499
  errorAndHelpTextContainerHeight: number;
489
500
  textInputMinHeight: number;
490
501
  textareaHeight: number;
502
+ errorAndHelpTextContainerMinHeight: number;
491
503
  textInputMaxHeight: number;
492
504
  };
493
505
  lineHeights: {
494
506
  topLabel: number;
507
+ label: number;
495
508
  };
496
509
  };
497
510