@hero-design/rn-work-uikit 1.4.0 → 1.5.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/CHANGELOG.md +14 -0
- package/lib/index.js +736 -580
- package/package.json +2 -2
- package/src/components/DatePicker/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/FormGroup/__tests__/__snapshots__/index.spec.tsx.snap +26 -3
- package/src/components/FormGroup/__tests__/index.spec.tsx +130 -3
- package/src/components/FormGroup/index.tsx +16 -7
- package/src/components/RichTextEditor/RichTextEditorInput.tsx +17 -11
- package/src/components/RichTextEditor/StyledRichTextEditor.tsx +1 -4
- package/src/components/Select/__tests__/__snapshots__/index.spec.tsx.snap +24 -2
- package/src/components/Select/index.tsx +11 -10
- package/src/components/TextInput/Group/__tests__/__snapshots__/index.spec.tsx.snap +3 -3
- package/src/components/TextInput/Group/index.tsx +6 -1
- package/src/components/TextInput/StyledTextInput.tsx +3 -3
- package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +17 -17
- package/src/components/TextInput/index.tsx +2 -2
- package/src/components/TextInput/types.ts +1 -1
- package/src/index.ts +2 -1
- package/src/utils/hooks.ts +10 -0
- package/stats/1.5.0/rn-work-uikit-stats.html +4844 -0
- package/stats/1.4.0/rn-work-uikit-stats.html +0 -4844
|
@@ -24,8 +24,8 @@ exports[`TextInput when user applies custom styling should respect user-provided
|
|
|
24
24
|
]
|
|
25
25
|
}
|
|
26
26
|
themeFocused={false}
|
|
27
|
+
themeGroupStyleEnabled={false}
|
|
27
28
|
themeHasError={false}
|
|
28
|
-
themeUseGroupStyleEnabled={false}
|
|
29
29
|
>
|
|
30
30
|
<View
|
|
31
31
|
pointerEvents="none"
|
|
@@ -380,8 +380,8 @@ exports[`TextInput when user chooses textarea variant should provide multiline t
|
|
|
380
380
|
]
|
|
381
381
|
}
|
|
382
382
|
themeFocused={false}
|
|
383
|
+
themeGroupStyleEnabled={false}
|
|
383
384
|
themeHasError={false}
|
|
384
|
-
themeUseGroupStyleEnabled={false}
|
|
385
385
|
>
|
|
386
386
|
<View
|
|
387
387
|
pointerEvents="none"
|
|
@@ -659,8 +659,8 @@ exports[`TextInput when user encounters a disabled field should display content
|
|
|
659
659
|
]
|
|
660
660
|
}
|
|
661
661
|
themeFocused={false}
|
|
662
|
+
themeGroupStyleEnabled={false}
|
|
662
663
|
themeHasError={false}
|
|
663
|
-
themeUseGroupStyleEnabled={false}
|
|
664
664
|
>
|
|
665
665
|
<View
|
|
666
666
|
pointerEvents="none"
|
|
@@ -937,8 +937,8 @@ exports[`TextInput when user encounters a read-only field should display content
|
|
|
937
937
|
]
|
|
938
938
|
}
|
|
939
939
|
themeFocused={false}
|
|
940
|
+
themeGroupStyleEnabled={false}
|
|
940
941
|
themeHasError={false}
|
|
941
|
-
themeUseGroupStyleEnabled={false}
|
|
942
942
|
>
|
|
943
943
|
<View
|
|
944
944
|
pointerEvents="none"
|
|
@@ -1299,8 +1299,8 @@ exports[`TextInput when user has entered text should show the input content and
|
|
|
1299
1299
|
]
|
|
1300
1300
|
}
|
|
1301
1301
|
themeFocused={false}
|
|
1302
|
+
themeGroupStyleEnabled={false}
|
|
1302
1303
|
themeHasError={false}
|
|
1303
|
-
themeUseGroupStyleEnabled={false}
|
|
1304
1304
|
>
|
|
1305
1305
|
<View
|
|
1306
1306
|
pointerEvents="none"
|
|
@@ -1661,8 +1661,8 @@ exports[`TextInput when user interacts with placeholder text starting from empty
|
|
|
1661
1661
|
]
|
|
1662
1662
|
}
|
|
1663
1663
|
themeFocused={false}
|
|
1664
|
+
themeGroupStyleEnabled={false}
|
|
1664
1665
|
themeHasError={false}
|
|
1665
|
-
themeUseGroupStyleEnabled={false}
|
|
1666
1666
|
>
|
|
1667
1667
|
<View
|
|
1668
1668
|
pointerEvents="none"
|
|
@@ -1980,8 +1980,8 @@ exports[`TextInput when user needs programmatic control should provide ref metho
|
|
|
1980
1980
|
]
|
|
1981
1981
|
}
|
|
1982
1982
|
themeFocused={false}
|
|
1983
|
+
themeGroupStyleEnabled={false}
|
|
1983
1984
|
themeHasError={false}
|
|
1984
|
-
themeUseGroupStyleEnabled={false}
|
|
1985
1985
|
>
|
|
1986
1986
|
<View
|
|
1987
1987
|
pointerEvents="none"
|
|
@@ -2258,8 +2258,8 @@ exports[`TextInput when user provides default values starting with pre-filled co
|
|
|
2258
2258
|
]
|
|
2259
2259
|
}
|
|
2260
2260
|
themeFocused={false}
|
|
2261
|
+
themeGroupStyleEnabled={false}
|
|
2261
2262
|
themeHasError={false}
|
|
2262
|
-
themeUseGroupStyleEnabled={false}
|
|
2263
2263
|
>
|
|
2264
2264
|
<View
|
|
2265
2265
|
pointerEvents="none"
|
|
@@ -2613,8 +2613,8 @@ exports[`TextInput when user provides default values when both default and contr
|
|
|
2613
2613
|
]
|
|
2614
2614
|
}
|
|
2615
2615
|
themeFocused={false}
|
|
2616
|
+
themeGroupStyleEnabled={false}
|
|
2616
2617
|
themeHasError={false}
|
|
2617
|
-
themeUseGroupStyleEnabled={false}
|
|
2618
2618
|
>
|
|
2619
2619
|
<View
|
|
2620
2620
|
pointerEvents="none"
|
|
@@ -2969,8 +2969,8 @@ exports[`TextInput when user sees a loading state should show loading indicator
|
|
|
2969
2969
|
]
|
|
2970
2970
|
}
|
|
2971
2971
|
themeFocused={false}
|
|
2972
|
+
themeGroupStyleEnabled={false}
|
|
2972
2973
|
themeHasError={false}
|
|
2973
|
-
themeUseGroupStyleEnabled={false}
|
|
2974
2974
|
>
|
|
2975
2975
|
<View
|
|
2976
2976
|
pointerEvents="none"
|
|
@@ -3350,8 +3350,8 @@ exports[`TextInput when user sees a required field should indicate the field is
|
|
|
3350
3350
|
]
|
|
3351
3351
|
}
|
|
3352
3352
|
themeFocused={false}
|
|
3353
|
+
themeGroupStyleEnabled={false}
|
|
3353
3354
|
themeHasError={false}
|
|
3354
|
-
themeUseGroupStyleEnabled={false}
|
|
3355
3355
|
>
|
|
3356
3356
|
<View
|
|
3357
3357
|
pointerEvents="none"
|
|
@@ -3682,8 +3682,8 @@ exports[`TextInput when user sees a textarea with character count should display
|
|
|
3682
3682
|
]
|
|
3683
3683
|
}
|
|
3684
3684
|
themeFocused={false}
|
|
3685
|
+
themeGroupStyleEnabled={false}
|
|
3685
3686
|
themeHasError={false}
|
|
3686
|
-
themeUseGroupStyleEnabled={false}
|
|
3687
3687
|
>
|
|
3688
3688
|
<View
|
|
3689
3689
|
pointerEvents="none"
|
|
@@ -4081,8 +4081,8 @@ exports[`TextInput when user sees a textarea with character count should hide ch
|
|
|
4081
4081
|
]
|
|
4082
4082
|
}
|
|
4083
4083
|
themeFocused={false}
|
|
4084
|
+
themeGroupStyleEnabled={false}
|
|
4084
4085
|
themeHasError={false}
|
|
4085
|
-
themeUseGroupStyleEnabled={false}
|
|
4086
4086
|
>
|
|
4087
4087
|
<View
|
|
4088
4088
|
pointerEvents="none"
|
|
@@ -4447,8 +4447,8 @@ exports[`TextInput when user sees an empty input field should display label and
|
|
|
4447
4447
|
]
|
|
4448
4448
|
}
|
|
4449
4449
|
themeFocused={false}
|
|
4450
|
+
themeGroupStyleEnabled={false}
|
|
4450
4451
|
themeHasError={false}
|
|
4451
|
-
themeUseGroupStyleEnabled={false}
|
|
4452
4452
|
>
|
|
4453
4453
|
<View
|
|
4454
4454
|
pointerEvents="none"
|
|
@@ -4808,8 +4808,8 @@ exports[`TextInput when user sees an error state should display error message to
|
|
|
4808
4808
|
]
|
|
4809
4809
|
}
|
|
4810
4810
|
themeFocused={false}
|
|
4811
|
+
themeGroupStyleEnabled={false}
|
|
4811
4812
|
themeHasError={true}
|
|
4812
|
-
themeUseGroupStyleEnabled={false}
|
|
4813
4813
|
>
|
|
4814
4814
|
<View
|
|
4815
4815
|
pointerEvents="none"
|
|
@@ -5185,8 +5185,8 @@ exports[`TextInput when user sees helper text should display guidance text to as
|
|
|
5185
5185
|
]
|
|
5186
5186
|
}
|
|
5187
5187
|
themeFocused={false}
|
|
5188
|
+
themeGroupStyleEnabled={false}
|
|
5188
5189
|
themeHasError={false}
|
|
5189
|
-
themeUseGroupStyleEnabled={false}
|
|
5190
5190
|
>
|
|
5191
5191
|
<View
|
|
5192
5192
|
pointerEvents="none"
|
|
@@ -5504,8 +5504,8 @@ exports[`TextInput when user sees input with custom prefix and suffix elements s
|
|
|
5504
5504
|
]
|
|
5505
5505
|
}
|
|
5506
5506
|
themeFocused={false}
|
|
5507
|
+
themeGroupStyleEnabled={false}
|
|
5507
5508
|
themeHasError={false}
|
|
5508
|
-
themeUseGroupStyleEnabled={false}
|
|
5509
5509
|
>
|
|
5510
5510
|
<View
|
|
5511
5511
|
pointerEvents="none"
|
|
@@ -162,7 +162,7 @@ export const InternalTextInput = forwardRef<
|
|
|
162
162
|
allowFontScaling = false,
|
|
163
163
|
variant = 'text',
|
|
164
164
|
accessibilityLabel,
|
|
165
|
-
|
|
165
|
+
groupStyleEnabled = false,
|
|
166
166
|
...nativeProps
|
|
167
167
|
}: InternalTextInputProps,
|
|
168
168
|
ref?: React.Ref<TextInputHandles>
|
|
@@ -292,7 +292,7 @@ export const InternalTextInput = forwardRef<
|
|
|
292
292
|
}}
|
|
293
293
|
themeFocused={isFocused}
|
|
294
294
|
themeHasError={!!error}
|
|
295
|
-
|
|
295
|
+
themeGroupStyleEnabled={groupStyleEnabled}
|
|
296
296
|
testID={testID}
|
|
297
297
|
>
|
|
298
298
|
{/*
|
package/src/index.ts
CHANGED
|
@@ -3,6 +3,7 @@ import TextInput from './components/TextInput';
|
|
|
3
3
|
import Select from './components/Select';
|
|
4
4
|
import DatePicker from './components/DatePicker';
|
|
5
5
|
import TimePicker from './components/TimePicker';
|
|
6
|
+
import FormGroup from './components/FormGroup';
|
|
6
7
|
import RichTextEditor from './components/RichTextEditor';
|
|
7
8
|
|
|
8
9
|
export * from '@hero-design/rn';
|
|
@@ -18,4 +19,4 @@ export {
|
|
|
18
19
|
} from './theme';
|
|
19
20
|
|
|
20
21
|
export { default as theme } from './theme';
|
|
21
|
-
export { TextInput, Select, DatePicker, TimePicker, RichTextEditor };
|
|
22
|
+
export { TextInput, Select, DatePicker, TimePicker, FormGroup, RichTextEditor };
|