@digigov/react-core 2.0.0-rc.30 → 2.0.0-rc.31

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 (96) hide show
  1. package/Accordion/index.native.d.ts +1 -5
  2. package/AccordionSection/index.native.d.ts +1 -3
  3. package/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  4. package/Base/compat/Input/RadioInput.native.js.map +2 -2
  5. package/Base/index.native.js.map +2 -2
  6. package/Base/index.web.js.map +1 -1
  7. package/Base/mapping.native.d.ts +1 -1
  8. package/Base/mapping.native.js.map +2 -2
  9. package/Button/index.js +1 -0
  10. package/Button/index.js.map +2 -2
  11. package/CopyToClipboardMessage/index.native.d.ts +1 -3
  12. package/DateInputItem/index.native.d.ts +1 -3
  13. package/Details/index.native.d.ts +1 -3
  14. package/LinkBase/index.js +1 -0
  15. package/LinkBase/index.js.map +2 -2
  16. package/NavListItemActionContainer/index.native.d.ts +0 -2
  17. package/NotificationBannerLink/index.native.d.ts +1 -3
  18. package/Table/index.d.ts +9 -0
  19. package/Table/index.js +4 -1
  20. package/Table/index.js.map +2 -2
  21. package/TableDataCell/index.d.ts +13 -0
  22. package/TableDataCell/index.js +10 -1
  23. package/TableDataCell/index.js.map +2 -2
  24. package/TextArea/index.native.d.ts +1 -3
  25. package/TextInput/index.native.d.ts +1 -3
  26. package/Typography/index.d.ts +1 -1
  27. package/Typography/index.js +15 -17
  28. package/Typography/index.js.map +2 -2
  29. package/WarningText/index.d.ts +7 -0
  30. package/WarningText/index.js +10 -2
  31. package/WarningText/index.js.map +2 -2
  32. package/cjs/Base/compat/Input/CheckboxInput.native.js.map +2 -2
  33. package/cjs/Base/compat/Input/RadioInput.native.js.map +2 -2
  34. package/cjs/Base/index.native.js.map +2 -2
  35. package/cjs/Base/index.web.js.map +1 -1
  36. package/cjs/Base/mapping.native.js.map +2 -2
  37. package/cjs/Button/index.js +1 -0
  38. package/cjs/Button/index.js.map +2 -2
  39. package/cjs/LinkBase/index.js +1 -0
  40. package/cjs/LinkBase/index.js.map +2 -2
  41. package/cjs/Table/index.js +4 -1
  42. package/cjs/Table/index.js.map +2 -2
  43. package/cjs/TableDataCell/index.js +10 -1
  44. package/cjs/TableDataCell/index.js.map +2 -2
  45. package/cjs/Typography/index.js +15 -17
  46. package/cjs/Typography/index.js.map +2 -2
  47. package/cjs/WarningText/index.js +10 -2
  48. package/cjs/WarningText/index.js.map +2 -2
  49. package/cjs/index.js +0 -2
  50. package/cjs/index.js.map +2 -2
  51. package/cjs/lazy/index.js +2 -3
  52. package/cjs/lazy.js.map +2 -2
  53. package/cjs/registry/index.js +28 -30
  54. package/cjs/registry.js.map +2 -2
  55. package/cjs/utils/index.native/index.js +32 -34
  56. package/cjs/utils/index.native.js.map +2 -2
  57. package/index.d.ts +0 -1
  58. package/index.js +1 -2
  59. package/index.js.map +2 -2
  60. package/lazy/index.js +2 -3
  61. package/package.json +5 -5
  62. package/registry/index.js +28 -30
  63. package/src/Base/compat/Input/CheckboxInput.native.tsx +2 -6
  64. package/src/Base/compat/Input/RadioInput.native.tsx +2 -6
  65. package/src/Base/index.native.tsx +2 -2
  66. package/src/Base/index.web.tsx +1 -1
  67. package/src/Base/mapping.native.tsx +1 -1
  68. package/src/Button/index.tsx +1 -0
  69. package/src/Checkbox/__snapshots__/index.test.tsx.snap +0 -5
  70. package/src/CheckboxItem/__snapshots__/index.test.tsx.snap +0 -4
  71. package/src/LinkBase/index.tsx +1 -0
  72. package/src/RadioItem/__snapshots__/index.test.tsx.snap +0 -4
  73. package/src/Table/index.tsx +12 -0
  74. package/src/TableDataCell/__snapshots__/index.test.tsx.snap +2 -2
  75. package/src/TableDataCell/index.tsx +23 -1
  76. package/src/Typography/index.tsx +21 -20
  77. package/src/WarningText/__snapshots__/index.test.tsx.snap +26 -0
  78. package/src/WarningText/index.test.tsx +5 -0
  79. package/src/WarningText/index.tsx +17 -2
  80. package/src/index.ts +0 -1
  81. package/src/lazy.js +2 -3
  82. package/src/registry.js +28 -30
  83. package/src/utils/index.native.tsx +56 -54
  84. package/utils/index.native/index.js +32 -34
  85. package/utils/index.native.d.ts +3 -6
  86. package/utils/index.native.js.map +2 -2
  87. package/AutoCompleteInputTypeahead/index.d.ts +0 -11
  88. package/AutoCompleteInputTypeahead/index.js +0 -25
  89. package/AutoCompleteInputTypeahead/index.js.map +0 -7
  90. package/AutoCompleteInputTypeahead/index.test.d.ts +0 -1
  91. package/AutoCompleteInputTypeahead/package.json +0 -6
  92. package/cjs/AutoCompleteInputTypeahead/index.js +0 -58
  93. package/cjs/AutoCompleteInputTypeahead/index.js.map +0 -7
  94. package/src/AutoCompleteInputTypeahead/__snapshots__/index.test.tsx.snap +0 -16
  95. package/src/AutoCompleteInputTypeahead/index.test.tsx +0 -8
  96. package/src/AutoCompleteInputTypeahead/index.tsx +0 -32
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import { render } from '@testing-library/react';
3
-
4
- import AutoCompleteInputTypeahead from '@digigov/react-core/AutoCompleteInputTypeahead';
5
-
6
- it('renders the AutoCompleteInputTypeahead with no props', () => {
7
- expect(render(<AutoCompleteInputTypeahead />).baseElement).toMatchSnapshot();
8
- });
@@ -1,32 +0,0 @@
1
- import React from 'react';
2
- import clsx from 'clsx';
3
- import Base, { BaseProps } from '@digigov/react-core/Base';
4
-
5
- export interface AutoCompleteInputTypeaheadProps extends BaseProps<'input'> {}
6
- /**
7
- * AutoCompleteInputTypeahead component is used to display the hole search value
8
- * in the background.
9
- *
10
- */
11
- export const AutoCompleteInputTypeahead = React.forwardRef<
12
- HTMLInputElement,
13
- AutoCompleteInputTypeaheadProps
14
- >(function AutoCompleteInputTypeahead({ className, ...props }, ref) {
15
- return (
16
- <span>
17
- <Base
18
- as="input"
19
- type="text"
20
- readOnly
21
- ref={ref}
22
- tabIndex={-1}
23
- className={clsx(className, {
24
- 'ds-autocomplete__hint': true,
25
- })}
26
- {...props}
27
- />
28
- </span>
29
- );
30
- });
31
-
32
- export default AutoCompleteInputTypeahead;