@hero-design/rn-work-uikit 1.2.3 → 1.3.1

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.
Files changed (29) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/babel.config.js +6 -0
  3. package/lib/index.js +46464 -1337
  4. package/package.json +8 -5
  5. package/rollup.config.mjs +20 -5
  6. package/src/__tests__/index-export.spec.ts +64 -0
  7. package/src/__tests__/index.spec.tsx +0 -19
  8. package/src/components/DatePicker/__tests__/__snapshots__/index.spec.tsx.snap +1602 -0
  9. package/src/components/DatePicker/__tests__/index.spec.tsx +56 -0
  10. package/src/components/DatePicker/index.tsx +12 -0
  11. package/src/components/Select/__tests__/__snapshots__/index.spec.tsx.snap +1293 -0
  12. package/src/components/Select/__tests__/index.spec.tsx +43 -0
  13. package/src/components/Select/index.tsx +23 -0
  14. package/src/components/TextInput/Group/__tests__/__snapshots__/index.spec.tsx.snap +0 -6
  15. package/src/components/TextInput/PrefixComponent.tsx +4 -4
  16. package/src/components/TextInput/StyledTextInput.tsx +6 -3
  17. package/src/components/TextInput/__tests__/__snapshots__/index.spec.tsx.snap +130 -34
  18. package/src/components/TimePicker/__tests__/index.spec.tsx +34 -0
  19. package/src/components/TimePicker/index.tsx +12 -0
  20. package/src/hero-editor.d.ts +8 -0
  21. package/src/index.ts +4 -1
  22. package/src/utils/functions.ts +2 -0
  23. package/stats/1.3.0/rn-work-uikit-stats.html +4842 -0
  24. package/stats/1.3.1/rn-work-uikit-stats.html +4844 -0
  25. package/tsconfig.json +9 -3
  26. package/tsconfig.rollup.json +8 -2
  27. package/src/__tests__/__snapshots__/index.spec.tsx.snap +0 -172
  28. package/src/__tests__/theme-export-override.spec.ts +0 -96
  29. package/stats/1.2.3/rn-work-uikit-stats.html +0 -4842
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import {
3
+ TimePicker as InternalTimePicker,
4
+ TimePickerProps,
5
+ } from '@hero-design/rn';
6
+ import TextInput from '../TextInput';
7
+
8
+ const TimePicker = (props: TimePickerProps) => {
9
+ return <InternalTimePicker {...props} TextInputComponent={TextInput} />;
10
+ };
11
+
12
+ export default TimePicker;
@@ -0,0 +1,8 @@
1
+ declare module 'hero-editor/dist/app.js' {
2
+ const script: string;
3
+ export default script;
4
+ }
5
+
6
+ declare module 'hero-editor' {
7
+ export function isEmptyContent(content: unknown): boolean;
8
+ }
package/src/index.ts CHANGED
@@ -1,5 +1,8 @@
1
1
  // Re-export everything from @hero-design/rn except theme exports we want to override
2
2
  import TextInput from './components/TextInput';
3
+ import Select from './components/Select';
4
+ import DatePicker from './components/DatePicker';
5
+ import TimePicker from './components/TimePicker';
3
6
 
4
7
  export * from '@hero-design/rn';
5
8
 
@@ -14,4 +17,4 @@ export {
14
17
  } from './theme';
15
18
 
16
19
  export { default as theme } from './theme';
17
- export { TextInput };
20
+ export { TextInput, Select, DatePicker, TimePicker };
@@ -0,0 +1,2 @@
1
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
2
+ export const noop = (): void => {};