@aveonline/ui-react 1.19.5 → 2.0.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.
Files changed (194) hide show
  1. package/README.md +83 -126
  2. package/dist/hooks/useTokens.d.ts +1 -1
  3. package/dist/index.css +1 -1
  4. package/dist/index.d.ts +45 -43
  5. package/dist/reset.css +273 -273
  6. package/dist/tailwind.config.js +242 -242
  7. package/dist/tailwind.css +1 -1
  8. package/dist/tokens.css +160 -160
  9. package/dist/{components → ui}/atoms/Avatar/Avatar.d.ts +1 -2
  10. package/dist/{components → ui}/atoms/Badge/Badge.d.ts +1 -2
  11. package/dist/{components → ui}/atoms/Badge/IBadge.d.ts +2 -6
  12. package/dist/ui/atoms/Button/Button.d.ts +7 -0
  13. package/dist/ui/atoms/Checkbox/Checkbox.d.ts +7 -0
  14. package/dist/{components → ui}/atoms/Icon/Svg.d.ts +1 -1
  15. package/dist/{components → ui}/atoms/Logo/ILogo.d.ts +1 -1
  16. package/dist/{components → ui}/atoms/Logo/Logo.d.ts +1 -1
  17. package/dist/ui/atoms/Radio/Radio.d.ts +7 -0
  18. package/dist/ui/atoms/Radio/index.d.ts +2 -0
  19. package/dist/{components → ui}/atoms/Spinner/Spinner.d.ts +0 -1
  20. package/dist/{components → ui}/atoms/Switch/Switch.d.ts +0 -1
  21. package/dist/{components → ui}/atoms/Tooltip/Tooltip.d.ts +1 -2
  22. package/dist/{components → ui}/atoms/Tracker/Tracker.d.ts +0 -1
  23. package/dist/{components → ui}/atoms/Typography/Heading/Heading.d.ts +0 -1
  24. package/dist/{components → ui}/atoms/Typography/Link/ILink.d.ts +5 -1
  25. package/dist/{components → ui}/atoms/Typography/Link/Link.d.ts +1 -2
  26. package/dist/{components → ui}/atoms/Typography/Text/Text.d.ts +1 -2
  27. package/dist/ui/atoms/Typography/Text/TextRef.d.ts +4 -0
  28. package/dist/{components → ui}/index.d.ts +11 -10
  29. package/dist/ui/molecules/Cards/CardHistory/CardHistory.d.ts +4 -0
  30. package/dist/ui/molecules/Cards/CardHistory/ICardHistory.d.ts +22 -0
  31. package/dist/{components/molecules/Card/Select/Select.d.ts → ui/molecules/Cards/CardSelect/CardSelect.d.ts} +1 -2
  32. package/dist/ui/molecules/Cards/CardSelect/index.d.ts +2 -0
  33. package/dist/{components/molecules/Card/Simple → ui/molecules/Cards/CardSimple}/ICardSimple.d.ts +1 -1
  34. package/dist/ui/molecules/Cards/CardSimple/index.d.ts +2 -0
  35. package/dist/{components → ui}/molecules/DateInputPicker/Atoms/PluginEspecialDates.d.ts +1 -1
  36. package/dist/{components → ui}/molecules/DateInputPicker/Datelocate.d.ts +1 -1
  37. package/dist/{components → ui}/molecules/DateInputPicker/IDateInputPicker.d.ts +2 -0
  38. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownFilterMultiple/IDropdownFilterMultiple.d.ts +1 -1
  39. package/dist/ui/molecules/Dropdowns/DropdownSearchMultiple/DropdownSearchMultiple.d.ts +3 -0
  40. package/dist/{components/molecules/Filter/FilterSearchMultiple/IFilterSearchMultiple.d.ts → ui/molecules/Dropdowns/DropdownSearchMultiple/IDropdownSearchMultiple.d.ts} +1 -1
  41. package/dist/ui/molecules/Dropdowns/DropdownSearchMultiple/index.d.ts +2 -0
  42. package/dist/{components/molecules/Dropdown/Dropdown.d.ts → ui/molecules/Dropdowns/DropdownSummary/DropdownSummary.d.ts} +3 -5
  43. package/dist/{components/molecules/Dropdown/IDropdown.d.ts → ui/molecules/Dropdowns/DropdownSummary/IDropdownSummary.d.ts} +2 -2
  44. package/dist/ui/molecules/Dropdowns/DropdownSummary/index.d.ts +2 -0
  45. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownUser/IDropdownUser.d.ts +1 -1
  46. package/dist/{components → ui}/molecules/Field/Field.d.ts +2 -2
  47. package/dist/{components → ui}/molecules/InlineError/InlineError.d.ts +0 -1
  48. package/dist/ui/molecules/Selectable/select.d.ts +28 -0
  49. package/dist/{components → ui}/molecules/Summary/Summary.d.ts +2 -2
  50. package/dist/{components → ui}/molecules/Tab/Tab.d.ts +0 -1
  51. package/dist/{components → ui}/molecules/Table/ITable.d.ts +13 -8
  52. package/dist/{components → ui}/molecules/Table/Table.d.ts +1 -1
  53. package/dist/ui/molecules/Table/atoms/IPagination.d.ts +16 -0
  54. package/dist/ui/molecules/Table/atoms/Pagination.d.ts +5 -0
  55. package/dist/ui-react.mjs +20729 -21396
  56. package/dist/ui-react.umd.js +121 -108
  57. package/dist/vite-env.d.ts +2 -2
  58. package/package.json +154 -111
  59. package/dist/components/atoms/Button/Button.d.ts +0 -8
  60. package/dist/components/atoms/Checkbox/Checkbox.d.ts +0 -8
  61. package/dist/components/atoms/RadioButton/RadioButton.d.ts +0 -8
  62. package/dist/components/atoms/RadioButton/index.d.ts +0 -2
  63. package/dist/components/atoms/Typography/Text/TextRef.d.ts +0 -4
  64. package/dist/components/molecules/Card/Select/index.d.ts +0 -2
  65. package/dist/components/molecules/Card/Simple/index.d.ts +0 -2
  66. package/dist/components/molecules/CardHistory/CardHistory.d.ts +0 -4
  67. package/dist/components/molecules/CardHistory/ICardHistory.d.ts +0 -20
  68. package/dist/components/molecules/Dropdown/index.d.ts +0 -2
  69. package/dist/components/molecules/Filter/FilterSearchMultiple/FilterSearchMultiple.d.ts +0 -3
  70. package/dist/components/molecules/Filter/FilterSearchMultiple/index.d.ts +0 -2
  71. package/dist/components/molecules/Table/atoms/IPagination.d.ts +0 -12
  72. package/dist/components/molecules/Table/atoms/Pagination.d.ts +0 -4
  73. package/dist/{components → ui}/atoms/Avatar/IAvatar.d.ts +0 -0
  74. package/dist/{components → ui}/atoms/Avatar/index.d.ts +0 -0
  75. package/dist/{components → ui}/atoms/Badge/index.d.ts +0 -0
  76. package/dist/{components → ui}/atoms/Button/IButton.d.ts +0 -0
  77. package/dist/{components → ui}/atoms/Button/index.d.ts +0 -0
  78. package/dist/{components → ui}/atoms/Button/useCSS.d.ts +0 -0
  79. package/dist/{components → ui}/atoms/Checkbox/ICheckbox.d.ts +0 -0
  80. package/dist/{components → ui}/atoms/Checkbox/index.d.ts +0 -0
  81. package/dist/{components → ui}/atoms/Icon/IIcon.d.ts +0 -0
  82. package/dist/{components → ui}/atoms/Icon/Icon.d.ts +0 -0
  83. package/dist/{components → ui}/atoms/Icon/index.d.ts +0 -0
  84. package/dist/{components → ui}/atoms/Logo/index.d.ts +0 -0
  85. package/dist/{components/atoms/RadioButton/IRadioButton.d.ts → ui/atoms/Radio/IRadio.d.ts} +0 -0
  86. package/dist/{components → ui}/atoms/Spinner/ISpinner.d.ts +0 -0
  87. package/dist/{components → ui}/atoms/Spinner/index.d.ts +0 -0
  88. package/dist/{components → ui}/atoms/Switch/ISwitch.d.ts +0 -0
  89. package/dist/{components → ui}/atoms/Switch/index.d.ts +0 -0
  90. package/dist/{components → ui}/atoms/Tooltip/ITooltip.d.ts +0 -0
  91. package/dist/{components → ui}/atoms/Tooltip/TooltipAnchor.d.ts +0 -0
  92. package/dist/{components → ui}/atoms/Tooltip/TooltipFloat.d.ts +0 -0
  93. package/dist/{components → ui}/atoms/Tooltip/index.d.ts +0 -0
  94. package/dist/{components → ui}/atoms/Tracker/ITracker.d.ts +0 -0
  95. package/dist/{components → ui}/atoms/Tracker/index.d.ts +0 -0
  96. package/dist/{components → ui}/atoms/Typography/Heading/IHeading.d.ts +0 -0
  97. package/dist/{components → ui}/atoms/Typography/Heading/index.d.ts +0 -0
  98. package/dist/{components → ui}/atoms/Typography/Heading/useCSS.d.ts +0 -0
  99. package/dist/{components → ui}/atoms/Typography/Link/index.d.ts +0 -0
  100. package/dist/{components → ui}/atoms/Typography/Text/IText.d.ts +0 -0
  101. package/dist/{components → ui}/atoms/Typography/Text/index.d.ts +0 -0
  102. package/dist/{components → ui}/atoms/Typography/Text/useCSS.d.ts +0 -0
  103. package/dist/{components → ui}/atoms/Typography/Text/useText.d.ts +0 -0
  104. package/dist/{components/molecules → ui/molecules/Cards}/CardHistory/index.d.ts +0 -0
  105. package/dist/{components/molecules/Card/Select/ISelect.d.ts → ui/molecules/Cards/CardSelect/ICardSelect.d.ts} +0 -0
  106. package/dist/{components/molecules/Card/Simple/Simple.d.ts → ui/molecules/Cards/CardSimple/CardSimple.d.ts} +0 -0
  107. package/dist/{components → ui}/molecules/DateInputPicker/Atoms/CustomButton.d.ts +0 -0
  108. package/dist/{components → ui}/molecules/DateInputPicker/Atoms/CustomInput.d.ts +0 -0
  109. package/dist/{components → ui}/molecules/DateInputPicker/Atoms/CustomRangeInput.d.ts +0 -0
  110. package/dist/{components → ui}/molecules/DateInputPicker/DateInputPicker.d.ts +0 -0
  111. package/dist/{components → ui}/molecules/DateInputPicker/index.d.ts +0 -0
  112. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/DropdownButton.d.ts +0 -0
  113. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/IDropdownButton.d.ts +4 -4
  114. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/index.d.ts +0 -0
  115. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownButton/useCss.d.ts +0 -0
  116. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownFilterMultiple/DropdownFilterMultiple.d.ts +0 -0
  117. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownFilterMultiple/index.d.ts +0 -0
  118. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownUser/DropdownUser.d.ts +0 -0
  119. package/dist/{components/molecules → ui/molecules/Dropdowns}/DropdownUser/index.d.ts +0 -0
  120. package/dist/{components → ui}/molecules/EmptyState/BoxSvg.d.ts +0 -0
  121. package/dist/{components → ui}/molecules/EmptyState/EmptyState.d.ts +0 -0
  122. package/dist/{components → ui}/molecules/EmptyState/IEmptyState.d.ts +0 -0
  123. package/dist/{components → ui}/molecules/EmptyState/PadlockSvg.d.ts +0 -0
  124. package/dist/{components → ui}/molecules/EmptyState/index.d.ts +0 -0
  125. package/dist/{components → ui}/molecules/Field/Container.d.ts +0 -0
  126. package/dist/{components → ui}/molecules/Field/Footer.d.ts +0 -0
  127. package/dist/{components → ui}/molecules/Field/IField.d.ts +0 -0
  128. package/dist/{components → ui}/molecules/Field/IFieldCustom.d.ts +22 -22
  129. /package/dist/{components → ui}/molecules/Field/index.d.ts +0 -0
  130. /package/dist/{components → ui}/molecules/Field/useField.d.ts +0 -0
  131. /package/dist/{components → ui}/molecules/Flag/Flag.d.ts +0 -0
  132. /package/dist/{components → ui}/molecules/Flag/IFlag.d.ts +0 -0
  133. /package/dist/{components → ui}/molecules/Flag/index.d.ts +0 -0
  134. /package/dist/{components → ui}/molecules/Header/Header.d.ts +0 -0
  135. /package/dist/{components → ui}/molecules/Header/IHeader.d.ts +0 -0
  136. /package/dist/{components → ui}/molecules/Header/NavigationMovil.d.ts +0 -0
  137. /package/dist/{components → ui}/molecules/Header/index.d.ts +0 -0
  138. /package/dist/{components → ui}/molecules/Indicator/Graphic/Graphic.d.ts +0 -0
  139. /package/dist/{components → ui}/molecules/Indicator/Graphic/IGraphic.d.ts +0 -0
  140. /package/dist/{components → ui}/molecules/Indicator/Graphic/index.d.ts +0 -0
  141. /package/dist/{components → ui}/molecules/InlineError/IInlineError.d.ts +0 -0
  142. /package/dist/{components → ui}/molecules/InlineError/index.d.ts +0 -0
  143. /package/dist/{components → ui}/molecules/Modal/IModal.d.ts +0 -0
  144. /package/dist/{components → ui}/molecules/Modal/Modal.d.ts +0 -0
  145. /package/dist/{components → ui}/molecules/Modal/index.d.ts +0 -0
  146. /package/dist/{components → ui}/molecules/Selectable/AsyncCreatableSelect/AsyncCreatableSelect.d.ts +0 -0
  147. /package/dist/{components → ui}/molecules/Selectable/AsyncCreatableSelect/IAsyncCreatableSelect.d.ts +0 -0
  148. /package/dist/{components → ui}/molecules/Selectable/AsyncCreatableSelect/index.d.ts +0 -0
  149. /package/dist/{components → ui}/molecules/Selectable/AsyncSelect/AsyncSelect.d.ts +0 -0
  150. /package/dist/{components → ui}/molecules/Selectable/AsyncSelect/IAsyncSelect.d.ts +0 -0
  151. /package/dist/{components → ui}/molecules/Selectable/AsyncSelect/index.d.ts +0 -0
  152. /package/dist/{components → ui}/molecules/Selectable/Select/ISelect.d.ts +0 -0
  153. /package/dist/{components → ui}/molecules/Selectable/Select/Select.d.ts +0 -0
  154. /package/dist/{components → ui}/molecules/Selectable/Select/index.d.ts +0 -0
  155. /package/dist/{components → ui}/molecules/Selectable/SelectButton/ISelectButton.d.ts +0 -0
  156. /package/dist/{components → ui}/molecules/Selectable/SelectButton/Option.d.ts +0 -0
  157. /package/dist/{components → ui}/molecules/Selectable/SelectButton/SelectButton.d.ts +0 -0
  158. /package/dist/{components → ui}/molecules/Selectable/SelectButton/index.d.ts +0 -0
  159. /package/dist/{components → ui}/molecules/Selectable/SelectCountry/Option.d.ts +0 -0
  160. /package/dist/{components → ui}/molecules/Selectable/SelectCountry/Prefix.d.ts +0 -0
  161. /package/dist/{components → ui}/molecules/Selectable/SelectCountry/SelectCountry.d.ts +0 -0
  162. /package/dist/{components → ui}/molecules/Selectable/SelectCountry/SingleValue.d.ts +0 -0
  163. /package/dist/{components → ui}/molecules/Selectable/SelectCountry/index.d.ts +0 -0
  164. /package/dist/{components → ui}/molecules/Selectable/atoms/ClearIndicator.d.ts +0 -0
  165. /package/dist/{components → ui}/molecules/Selectable/atoms/Container.d.ts +0 -0
  166. /package/dist/{components → ui}/molecules/Selectable/atoms/Control.d.ts +0 -0
  167. /package/dist/{components → ui}/molecules/Selectable/atoms/DropdownIndicator.d.ts +0 -0
  168. /package/dist/{components → ui}/molecules/Selectable/atoms/Option.d.ts +0 -0
  169. /package/dist/{components → ui}/molecules/Selectable/atoms/Placeholder.d.ts +0 -0
  170. /package/dist/{components → ui}/molecules/Selectable/atoms/SingleValue.d.ts +0 -0
  171. /package/dist/{components → ui}/molecules/Selectable/atoms/index.d.ts +0 -0
  172. /package/dist/{components → ui}/molecules/Selectable/hooks/index.d.ts +0 -0
  173. /package/dist/{components → ui}/molecules/Selectable/hooks/useCSS.d.ts +0 -0
  174. /package/dist/{components → ui}/molecules/Summary/index.d.ts +0 -0
  175. /package/dist/{components → ui}/molecules/Tab/ITab.d.ts +0 -0
  176. /package/dist/{components → ui}/molecules/Tab/index.d.ts +0 -0
  177. /package/dist/{components → ui}/molecules/TabNav/ITabNav.d.ts +0 -0
  178. /package/dist/{components → ui}/molecules/TabNav/TabNav.d.ts +0 -0
  179. /package/dist/{components → ui}/molecules/TabNav/index.d.ts +0 -0
  180. /package/dist/{components → ui}/molecules/Table/atoms/CheckBoxTable.d.ts +0 -0
  181. /package/dist/{components → ui}/molecules/Table/atoms/ISortTable.d.ts +0 -0
  182. /package/dist/{components → ui}/molecules/Table/atoms/InputSearch.d.ts +0 -0
  183. /package/dist/{components → ui}/molecules/Table/atoms/SortTable.d.ts +0 -0
  184. /package/dist/{components → ui}/molecules/Table/atoms/index.d.ts +0 -0
  185. /package/dist/{components → ui}/molecules/Table/index.d.ts +0 -0
  186. /package/dist/{components → ui}/organisms/Navigation/INavigation.d.ts +0 -0
  187. /package/dist/{components → ui}/organisms/Navigation/Navigation.d.ts +0 -0
  188. /package/dist/{components → ui}/organisms/Navigation/index.d.ts +0 -0
  189. /package/dist/{components → ui}/templates/Main/Main.d.ts +0 -0
  190. /package/dist/{components → ui}/templates/Main/index.d.ts +0 -0
  191. /package/dist/{components → ui}/templates/SecondMain/SecondMain.d.ts +0 -0
  192. /package/dist/{components → ui}/templates/SecondMain/index.d.ts +0 -0
  193. /package/dist/{components → ui}/templates/Shipment/Shipment.d.ts +0 -0
  194. /package/dist/{components → ui}/templates/Shipment/index.d.ts +0 -0
@@ -1,2 +1,2 @@
1
- /// <reference types="vite/client" />
2
- /// <reference types="vite-plugin-svgr/client" />
1
+ /// <reference types="vite/client" />
2
+ /// <reference types="vite-plugin-svgr/client" />
package/package.json CHANGED
@@ -1,111 +1,154 @@
1
- {
2
- "name": "@aveonline/ui-react",
3
- "description": "Home base for Aveonline design system - ecosystem react",
4
- "private": false,
5
- "version": "1.19.5",
6
- "types": "./dist/index.d.ts",
7
- "files": [
8
- "dist"
9
- ],
10
- "exports": {
11
- ".": {
12
- "import": "./dist/ui-react.mjs",
13
- "require": "./dist/ui-react.umd.mjs"
14
- },
15
- "./tailwind.css": {
16
- "import": "./dist/tailwind.css",
17
- "require": "./dist/tailwind.css"
18
- },
19
- "./tokens.css": {
20
- "import": "./dist/tokens.css",
21
- "require": "./dist/tokens.css"
22
- },
23
- "./tailwind.config.js": {
24
- "import": "./dist/tailwind.config.js",
25
- "require": "./dist/tailwind.config.js"
26
- },
27
- "./index.css": {
28
- "import": "./dist/index.css",
29
- "require": "./dist/index.css"
30
- }
31
- },
32
- "keywords": [
33
- "react",
34
- "react-kit"
35
- ],
36
- "license": "MIT",
37
- "scripts": {
38
- "dev": "start-storybook -p 6006 --no-manager-cache",
39
- "build": "vite build && npm run build:tailwind && npm run cp:tailwind-config && npm run cp:tokens",
40
- "build:storybook": "build-storybook",
41
- "lint": "eslint --ignore-path .gitignore \"./src/**/*.+(tsx,ts)\" --fix",
42
- "build:tailwind": "npx tailwindcss -o ./dist/tailwind.css --minify",
43
- "clean": "rm -rf dist",
44
- "cp:tailwind-config": "cp tailwind.config.js dist/",
45
- "cp:tokens": "cp ./src/design-tokens/styles/tokens.css dist/",
46
- "test": "vitest",
47
- "coverage": "vitest run --coverage",
48
- "test:ui": "vitest --ui",
49
- "chromatic": "npx chromatic --project-token=53dce1ebae91",
50
- "changelog": "conventional-changelog -i CHANGELOG-current.md -s -r 0"
51
- },
52
- "dependencies": {
53
- "@floating-ui/react-dom-interactions": "0.11.0",
54
- "@headlessui/react": "1.7.4",
55
- "@tanstack/match-sorter-utils": "8.7.6",
56
- "@tanstack/react-table": "8.7.8",
57
- "country-flag-icons": "1.5.5",
58
- "hamburger-react": "^2.5.0",
59
- "react-currency-input-field": "3.6.9",
60
- "react-input-mask": "^3.0.0-alpha.2",
61
- "react-merge-refs": "2.0.1",
62
- "react-multi-date-picker": "^3.3.4",
63
- "react-select": "5.6.0",
64
- "recharts": "^2.5.0"
65
- },
66
- "devDependencies": {
67
- "@storybook/addon-a11y": "6.5.13",
68
- "@storybook/addon-essentials": "6.5.13",
69
- "@storybook/addon-interactions": "6.5.13",
70
- "@storybook/addon-links": "6.5.13",
71
- "@storybook/addons": "6.5.13",
72
- "@storybook/builder-vite": "0.2.5",
73
- "@storybook/react": "6.5.13",
74
- "@storybook/theming": "6.5.13",
75
- "@tailwindcss/forms": "0.5.3",
76
- "@testing-library/jest-dom": "5.16.5",
77
- "@testing-library/react": "13.4.0",
78
- "@types/node": "16.11.6",
79
- "@types/react": "18.0.22",
80
- "@types/react-dom": "18.0.7",
81
- "@types/react-input-mask": "^3.0.2",
82
- "@types/react-text-mask": "^5.4.11",
83
- "@vitejs/plugin-react": "2.2.0",
84
- "@vitest/coverage-c8": "0.24.5",
85
- "@vitest/ui": "0.24.5",
86
- "autoprefixer": "10.4.13",
87
- "chromatic": "6.11.4",
88
- "classnames": "2.3.2",
89
- "conventional-changelog-cli": "2.2.2",
90
- "cssnano": "5.0.9",
91
- "jsdom": "20.0.2",
92
- "postcss": "8.3.11",
93
- "postcss-import": "15.0.0",
94
- "prettier-plugin-tailwindcss": "0.1.5",
95
- "react": "18.2.0",
96
- "react-dom": "18.2.0",
97
- "sd-tailwindcss-transformer": "1.2.0",
98
- "style-dictionary": "3.7.1",
99
- "tailwindcss": "3.2.4",
100
- "ts-dedent": "2.2.0",
101
- "typescript": "4.6.4",
102
- "vite": "3.2.0",
103
- "vite-plugin-dts": "1.6.6",
104
- "vite-plugin-svgr": "2.4.0",
105
- "vitest": "0.24.4"
106
- },
107
- "peerDependencies": {
108
- "react": "18.2.0",
109
- "react-dom": "18.2.0"
110
- }
111
- }
1
+ {
2
+ "name": "@aveonline/ui-react",
3
+ "description": "Home base for Aveonline design system - ecosystem react",
4
+ "private": false,
5
+ "version": "2.0.0",
6
+ "types": "./dist/index.d.ts",
7
+ "files": [
8
+ "dist"
9
+ ],
10
+ "exports": {
11
+ ".": {
12
+ "import": "./dist/ui-react.mjs",
13
+ "require": "./dist/ui-react.umd.mjs"
14
+ },
15
+ "./tailwind.css": {
16
+ "import": "./dist/tailwind.css",
17
+ "require": "./dist/tailwind.css"
18
+ },
19
+ "./tokens.css": {
20
+ "import": "./dist/tokens.css",
21
+ "require": "./dist/tokens.css"
22
+ },
23
+ "./tailwind.config.js": {
24
+ "import": "./dist/tailwind.config.js",
25
+ "require": "./dist/tailwind.config.js"
26
+ },
27
+ "./index.css": {
28
+ "import": "./dist/index.css",
29
+ "require": "./dist/index.css"
30
+ }
31
+ },
32
+ "keywords": [
33
+ "react",
34
+ "react-kit"
35
+ ],
36
+ "license": "MIT",
37
+ "scripts": {
38
+ "dev": "storybook dev -p 6006",
39
+ "build": "npm run lint && vite build && npm run build:tailwind && npm run cp:tailwind-config && npm run cp:tokens",
40
+ "build:storybook": "npm run lint && storybook build",
41
+ "prettier": "prettier --check .",
42
+ "prettier:fix": "prettier --write .",
43
+ "lint": "eslint --cache \"**/*.{ts,tsx}*\"",
44
+ "lint:fix": "eslint --fix \"**/*.{ts,tsx}*\" && npm run prettier:fix",
45
+ "build:tailwind": "npx tailwindcss -o ./dist/tailwind.css --minify",
46
+ "clean": "rm -rf dist",
47
+ "cp:tailwind-config": "cp tailwind.config.js dist/",
48
+ "cp:tokens": "cp ./src/design-tokens/styles/tokens.css dist/",
49
+ "test": "vitest",
50
+ "coverage": "vitest run --coverage",
51
+ "test:ui": "vitest --ui",
52
+ "changelog": "conventional-changelog -i CHANGELOG-current.md -s -r 0",
53
+ "commit": "git-cz"
54
+ },
55
+ "dependencies": {
56
+ "@floating-ui/react-dom-interactions": "0.11.0",
57
+ "@headlessui/react": "1.7.4",
58
+ "@tanstack/match-sorter-utils": "8.7.6",
59
+ "@tanstack/react-table": "8.7.8",
60
+ "country-flag-icons": "1.5.5",
61
+ "hamburger-react": "2.5.0",
62
+ "react-currency-input-field": "3.6.9",
63
+ "react-input-mask": "3.0.0-alpha.2",
64
+ "react-merge-refs": "2.0.1",
65
+ "react-multi-date-picker": "3.3.4",
66
+ "react-select": "5.6.0",
67
+ "recharts": "2.5.0"
68
+ },
69
+ "devDependencies": {
70
+ "@digitalroute/cz-conventional-changelog-for-jira": "8.0.1",
71
+ "@storybook/addon-a11y": "7.0.9",
72
+ "@storybook/addon-essentials": "7.0.9",
73
+ "@storybook/addon-interactions": "7.0.9",
74
+ "@storybook/addon-links": "7.0.9",
75
+ "@storybook/addon-mdx-gfm": "^7.0.9",
76
+ "@storybook/addons": "7.0.9",
77
+ "@storybook/blocks": "7.0.9",
78
+ "@storybook/react": "7.0.9",
79
+ "@storybook/react-vite": "7.0.9",
80
+ "@storybook/theming": "7.0.9",
81
+ "@tailwindcss/forms": "0.5.3",
82
+ "@testing-library/jest-dom": "5.16.5",
83
+ "@testing-library/react": "13.4.0",
84
+ "@types/node": "16.11.6",
85
+ "@types/react": "18.0.22",
86
+ "@types/react-dom": "18.0.7",
87
+ "@types/react-input-mask": "3.0.2",
88
+ "@types/react-text-mask": "5.4.11",
89
+ "@typescript-eslint/eslint-plugin": "5.59.1",
90
+ "@typescript-eslint/parser": "5.59.1",
91
+ "@vitejs/plugin-react": "4.0.0",
92
+ "@vitest/coverage-c8": "0.24.5",
93
+ "@vitest/ui": "0.24.5",
94
+ "autoprefixer": "10.4.13",
95
+ "classnames": "2.3.2",
96
+ "commitizen": "4.3.0",
97
+ "conventional-changelog-cli": "2.2.2",
98
+ "cssnano": "5.0.9",
99
+ "eslint": "8.39.0",
100
+ "eslint-config-ts-standard": "1.0.5",
101
+ "eslint-plugin-no-only-tests": "3.1.0",
102
+ "eslint-plugin-react-hooks": "4.6.0",
103
+ "eslint-plugin-react-refresh": "0.3.5",
104
+ "eslint-plugin-storybook": "0.6.12",
105
+ "jsdom": "20.0.2",
106
+ "postcss": "8.3.11",
107
+ "postcss-import": "15.0.0",
108
+ "prettier": "2.8.8",
109
+ "prettier-plugin-tailwindcss": "0.1.5",
110
+ "react": "18.2.0",
111
+ "react-dom": "18.2.0",
112
+ "sd-tailwindcss-transformer": "1.2.0",
113
+ "storybook": "7.0.9",
114
+ "style-dictionary": "3.7.1",
115
+ "tailwindcss": "3.3.2",
116
+ "ts-dedent": "2.2.0",
117
+ "ts-standard": "12.0.2",
118
+ "typescript": "5.0.4",
119
+ "vite": "4.3.5",
120
+ "vite-plugin-dts": "1.6.6",
121
+ "vite-plugin-svgr": "2.4.0",
122
+ "vitest": "0.31.0"
123
+ },
124
+ "peerDependencies": {
125
+ "react": "18.2.0",
126
+ "react-dom": "18.2.0"
127
+ },
128
+ "packageManager": "npm@9.5.1",
129
+ "engines": {
130
+ "node": ">=16.15.1 <18.0.0 || >=18.11",
131
+ "pnpm": "please-use-npm",
132
+ "yarn": "please-use-npm",
133
+ "npm": ">=8.0.0"
134
+ },
135
+ "config": {
136
+ "commitizen": {
137
+ "path": "./node_modules/@digitalroute/cz-conventional-changelog-for-jira",
138
+ "jiraPrefix": "APP",
139
+ "jiraLocation": "pre-type",
140
+ "jiraOptional": true,
141
+ "customScope": true,
142
+ "skipScope": false,
143
+ "scopes": [
144
+ "atoms",
145
+ "molecules",
146
+ "organisms",
147
+ "templates",
148
+ "design-tokens",
149
+ "styles",
150
+ "hooks"
151
+ ]
152
+ }
153
+ }
154
+ }
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { IButton } from './IButton';
3
- /**
4
- * Atom: Button
5
- * Are used primarily for actions, such as 'Add', 'Close', 'Cancel', or 'Save'. Plain buttons, which look similar to links, are used for less important or less commonly used actions, such as 'view shipping settings'.
6
- */
7
- declare const Button: React.ForwardRefExoticComponent<IButton & React.RefAttributes<HTMLButtonElement>>;
8
- export default Button;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { IPropsCheckbox } from './ICheckbox';
3
- /**
4
- * Atom: Checkbox
5
- * Checkboxes are most commonly used to give merchants a way to make a range of selections (zero, one, or multiple). They may also be used as a way to have merchants indicate they agree to specific terms and services.
6
- */
7
- declare const Checkbox: React.ForwardRefExoticComponent<IPropsCheckbox & React.RefAttributes<HTMLInputElement>>;
8
- export default Checkbox;
@@ -1,8 +0,0 @@
1
- import React from 'react';
2
- import type { IPropsRadio } from './IRadioButton';
3
- /**
4
- * Atom: RadioButton
5
- * Use radio buttons to present each item in a list of options where merchants must make a single selection.
6
- */
7
- declare const RadioButton: React.ForwardRefExoticComponent<IPropsRadio & React.RefAttributes<HTMLInputElement>>;
8
- export default RadioButton;
@@ -1,2 +0,0 @@
1
- export { default as RadioButton } from './RadioButton';
2
- export * from './IRadioButton';
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- import type { IText } from './IText';
3
- declare const Text: React.ForwardRefExoticComponent<Pick<IText, keyof IText> & React.RefAttributes<any>>;
4
- export default Text;
@@ -1,2 +0,0 @@
1
- export { default as CardSelect } from './Select';
2
- export * from './ISelect';
@@ -1,2 +0,0 @@
1
- export { default as CardSimple } from './Simple';
2
- export * from './Simple';
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import { ICardHistory } from './ICardHistory';
3
- declare function CardHistory({ description, date, hour, badge, state, size, variant, dropdown, children }: ICardHistory): JSX.Element;
4
- export default CardHistory;
@@ -1,20 +0,0 @@
1
- import { IChildren } from '../../../types';
2
- import { IBadge } from '../..';
3
- interface IDropdownCardHistory extends IChildren {
4
- isActive?: boolean;
5
- title?: string;
6
- description?: string;
7
- }
8
- interface ICardHistory extends IChildren {
9
- description?: string;
10
- date?: string;
11
- hour?: string;
12
- badge?: Omit<IBadge, 'children'> & {
13
- title?: string;
14
- };
15
- size?: 'sm' | 'md';
16
- state?: 'active' | 'default';
17
- variant?: 'default' | 'critical';
18
- dropdown?: IDropdownCardHistory;
19
- }
20
- export type { ICardHistory, IDropdownCardHistory };
@@ -1,2 +0,0 @@
1
- export { default as Dropdown } from './Dropdown';
2
- export * from './IDropdown';
@@ -1,3 +0,0 @@
1
- /// <reference types="react" />
2
- import { IFilterSearchMultiple } from './IFilterSearchMultiple';
3
- export default function FilterSearchMultiple({ options, title, titleNotFound, onSelected, placement, placeholderSearch }: IFilterSearchMultiple): JSX.Element;
@@ -1,2 +0,0 @@
1
- export { default as FilterSearchMultiple } from './FilterSearchMultiple';
2
- export * from './IFilterSearchMultiple';
@@ -1,12 +0,0 @@
1
- declare type IPagination = {
2
- pageIndex: number;
3
- getPageCount: number;
4
- pageSize: number;
5
- setPageSize: (value: number) => void;
6
- previousPage: () => void;
7
- getCanPreviousPage: boolean;
8
- nextPage: () => void;
9
- getCanNextPage: boolean;
10
- paginationOptionList?: Array<number>;
11
- };
12
- export type { IPagination };
@@ -1,4 +0,0 @@
1
- /// <reference types="react" />
2
- import type { IPagination } from './IPagination';
3
- declare function Pagination({ pageIndex, getPageCount, pageSize, setPageSize, previousPage, getCanPreviousPage, nextPage, getCanNextPage, paginationOptionList }: IPagination): JSX.Element;
4
- export default Pagination;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
+ interface IOptionDropdownButton {
3
+ title: string | JSX.Element;
4
+ onClick: () => void;
5
+ }
2
6
  interface IDropdownButton {
3
7
  options: Array<IOptionDropdownButton>;
4
8
  filling?: boolean;
5
9
  isDisabled?: boolean;
6
10
  }
7
- interface IOptionDropdownButton {
8
- title: string | JSX.Element;
9
- onClick: () => void;
10
- }
11
11
  export { IDropdownButton, IOptionDropdownButton };
@@ -1,3 +1,25 @@
1
+ declare type IFieldCustomMask = {
2
+ charactersLength?: number;
3
+ /**
4
+ * Mask string. Format characters are:
5
+ * * `9`: `0-9`
6
+ * * `a`: `A-Z, a-z`
7
+ * * `\*`: `A-Z, a-z, 0-9`
8
+ *
9
+ * Any character can be escaped with backslash, which usually will appear as double backslash in JS strings.
10
+ * For example, German phone mask with unremoveable prefix +49 will look like `mask="+4\\9 99 999 99"` or `mask={"+4\\\\9 99 999 99"}`
11
+ */
12
+ mask?: string | RegExp;
13
+ /**
14
+ * Character to cover unfilled editable parts of mask. Default character is "_". If set to null, unfilled parts will be empty, like in ordinary input.
15
+ */
16
+ maskChar?: string | null | undefined;
17
+ maskPlaceholder?: string;
18
+ /**
19
+ * Show mask even in empty input without focus.
20
+ */
21
+ alwaysShowMask?: boolean | undefined;
22
+ };
1
23
  declare type IFieldCustom = {
2
24
  /**
3
25
  * Allow decimals
@@ -83,26 +105,4 @@ declare type IFieldCustom = {
83
105
  */
84
106
  mask?: IFieldCustomMask;
85
107
  };
86
- declare type IFieldCustomMask = {
87
- charactersLength?: number;
88
- /**
89
- * Mask string. Format characters are:
90
- * * `9`: `0-9`
91
- * * `a`: `A-Z, a-z`
92
- * * `\*`: `A-Z, a-z, 0-9`
93
- *
94
- * Any character can be escaped with backslash, which usually will appear as double backslash in JS strings.
95
- * For example, German phone mask with unremoveable prefix +49 will look like `mask="+4\\9 99 999 99"` or `mask={"+4\\\\9 99 999 99"}`
96
- */
97
- mask?: string | RegExp;
98
- /**
99
- * Character to cover unfilled editable parts of mask. Default character is "_". If set to null, unfilled parts will be empty, like in ordinary input.
100
- */
101
- maskChar?: string | null | undefined;
102
- maskPlaceholder?: string;
103
- /**
104
- * Show mask even in empty input without focus.
105
- */
106
- alwaysShowMask?: boolean | undefined;
107
- };
108
108
  export type { IFieldCustom, IFieldCustomMask };