@agility/plenum-ui 1.3.48 → 2.0.0-rc1

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 (332) hide show
  1. package/.eslintrc.json +6 -0
  2. package/.prettierrc +12 -12
  3. package/.storybook/Layout.jsx +9 -6
  4. package/.storybook/head.tsx +4 -0
  5. package/.storybook/main.ts +18 -0
  6. package/.storybook/manager-head.html +1 -0
  7. package/.storybook/manager.ts +25 -0
  8. package/.storybook/plenumTheme.ts +8 -0
  9. package/.storybook/preview-head.html +4 -0
  10. package/.storybook/preview.tsx +28 -0
  11. package/.vscode/settings.json +4 -0
  12. package/.yarnrc.yml +1 -0
  13. package/README.md +165 -53
  14. package/app/globals.css +99 -0
  15. package/app/head.tsx +59 -0
  16. package/app/layout.tsx +28 -0
  17. package/app/page.tsx +7 -0
  18. package/build.js +33 -0
  19. package/dist/index.js +5936 -0
  20. package/dist/index.js.map +7 -0
  21. package/{lib/components → dist/types/stories/atoms}/Avatar/Avatar.d.ts +28 -27
  22. package/dist/types/stories/atoms/Avatar/index.d.ts +3 -0
  23. package/dist/types/stories/atoms/badges/Badge.d.ts +21 -0
  24. package/dist/types/stories/atoms/badges/index.d.ts +3 -0
  25. package/dist/types/stories/atoms/buttons/Button/Alternative/Alternative.stories.d.ts +13 -0
  26. package/dist/types/stories/atoms/buttons/Button/Button.d.ts +33 -0
  27. package/dist/types/stories/atoms/buttons/Button/Danger/Danger.stories.d.ts +13 -0
  28. package/dist/types/stories/atoms/buttons/Button/Primary/Primary.stories.d.ts +13 -0
  29. package/dist/types/stories/atoms/buttons/Button/Secondary/Secondary.stories.d.ts +13 -0
  30. package/dist/types/stories/atoms/buttons/Button/defaultArgs.d.ts +3 -0
  31. package/dist/types/stories/atoms/buttons/Button/index.d.ts +3 -0
  32. package/dist/types/stories/atoms/buttons/Capsule/Alternative/Alternative.stories.d.ts +6 -0
  33. package/dist/types/stories/atoms/buttons/Capsule/Capsule.d.ts +27 -0
  34. package/dist/types/stories/atoms/buttons/Capsule/Danger/Danger.stories.d.ts +6 -0
  35. package/dist/types/stories/atoms/buttons/Capsule/Primary/Primary.stories.d.ts +6 -0
  36. package/dist/types/stories/atoms/buttons/Capsule/Secondary/Secondary.stories.d.ts +6 -0
  37. package/dist/types/stories/atoms/buttons/Capsule/index.d.ts +3 -0
  38. package/dist/types/stories/atoms/buttons/index.d.ts +4 -0
  39. package/{lib/components/DynamicIcons/DynamicIcons.d.ts → dist/types/stories/atoms/icons/DynamicIcon.d.ts} +20 -17
  40. package/dist/types/stories/atoms/icons/DynamicIcon.stories.d.ts +10 -0
  41. package/dist/types/stories/atoms/icons/IconWithShadow.d.ts +6 -0
  42. package/dist/types/stories/atoms/icons/IconWithShadow.stories.d.ts +10 -0
  43. package/{lib/components/DynamicIcons → dist/types/stories/atoms/icons}/TablerIcon.d.ts +9 -9
  44. package/dist/types/stories/atoms/icons/index.d.ts +4 -0
  45. package/dist/types/stories/atoms/icons/tablerIconNames.d.ts +2 -0
  46. package/dist/types/stories/atoms/index.d.ts +7 -0
  47. package/dist/types/stories/atoms/loaders/Loader.d.ts +6 -0
  48. package/dist/types/stories/atoms/loaders/Loader.stories.d.ts +6 -0
  49. package/dist/types/stories/atoms/loaders/NProgress/RadialProgress.d.ts +11 -0
  50. package/dist/types/stories/atoms/loaders/NProgress/index.d.ts +3 -0
  51. package/dist/types/stories/atoms/loaders/index.d.ts +4 -0
  52. package/dist/types/stories/index.d.ts +5 -0
  53. package/dist/types/stories/layouts/index.d.ts +0 -0
  54. package/dist/types/stories/molecules/index.d.ts +3 -0
  55. package/dist/types/stories/molecules/inputs/InputField/InputField.d.ts +28 -0
  56. package/dist/types/stories/molecules/inputs/InputField/index.d.ts +3 -0
  57. package/{lib/components/Forms → dist/types/stories/molecules/inputs}/InputLabel/InputLabel.d.ts +15 -14
  58. package/dist/types/stories/molecules/inputs/InputLabel/index.d.ts +3 -0
  59. package/dist/types/stories/molecules/inputs/NestedInputButton/NestedInputButton.d.ts +17 -0
  60. package/dist/types/stories/molecules/inputs/NestedInputButton/index.d.ts +3 -0
  61. package/{lib/components/Forms/Checkbox → dist/types/stories/molecules/inputs/checkbox}/Checkbox.d.ts +28 -27
  62. package/dist/types/stories/molecules/inputs/checkbox/Checkbox.stories.d.ts +6 -0
  63. package/dist/types/stories/molecules/inputs/checkbox/index.d.ts +3 -0
  64. package/{lib/components/Combobox/Combobox.d.ts → dist/types/stories/molecules/inputs/combobox/ComboBox.d.ts} +34 -34
  65. package/dist/types/stories/molecules/inputs/combobox/ComboBox.stories.d.ts +6 -0
  66. package/dist/types/stories/molecules/inputs/combobox/index.d.ts +3 -0
  67. package/dist/types/stories/molecules/inputs/index.d.ts +11 -0
  68. package/{lib/components/Forms/Radio → dist/types/stories/molecules/inputs/radio}/Radio.d.ts +27 -27
  69. package/dist/types/stories/molecules/inputs/radio/Radio.stories.d.ts +6 -0
  70. package/dist/types/stories/molecules/inputs/radio/index.d.ts +3 -0
  71. package/{lib/components/Forms/Select → dist/types/stories/molecules/inputs/select}/Select.d.ts +27 -27
  72. package/dist/types/stories/molecules/inputs/select/Select.stories.d.ts +6 -0
  73. package/dist/types/stories/molecules/inputs/select/index.d.ts +3 -0
  74. package/dist/types/stories/molecules/inputs/textArea/TextArea.d.ts +26 -0
  75. package/dist/types/stories/molecules/inputs/textArea/TextArea.stories.d.ts +6 -0
  76. package/dist/types/stories/molecules/inputs/textArea/index.d.ts +3 -0
  77. package/dist/types/stories/molecules/inputs/toggleSwitch/ToggleSwitch.d.ts +18 -0
  78. package/dist/types/stories/molecules/inputs/toggleSwitch/index.d.ts +3 -0
  79. package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +18 -0
  80. package/dist/types/stories/organisms/AnimatedLabelInput/index.d.ts +3 -0
  81. package/dist/types/stories/organisms/ButtonDropdown/ButtonDropdown.d.ts +14 -0
  82. package/dist/types/stories/organisms/ButtonDropdown/index.d.ts +3 -0
  83. package/{lib/components/Dropdown/Dropdown.d.ts → dist/types/stories/organisms/DropdownComponent/DropdownComponent.d.ts} +40 -39
  84. package/dist/types/stories/organisms/DropdownComponent/dropdownItems.d.ts +3 -0
  85. package/dist/types/stories/organisms/DropdownComponent/index.d.ts +4 -0
  86. package/dist/types/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.d.ts +19 -0
  87. package/dist/types/stories/organisms/EmptySectionPlaceholder/index.d.ts +3 -0
  88. package/dist/types/stories/organisms/FormInputWithAddons/FormInputWithAddons.d.ts +21 -0
  89. package/dist/types/stories/organisms/FormInputWithAddons/index.d.ts +3 -0
  90. package/dist/types/stories/organisms/index.d.ts +7 -0
  91. package/dist/types/utils/types.d.ts +2 -0
  92. package/dist/types/utils/useId.d.ts +1 -0
  93. package/next.config.js +8 -0
  94. package/package.json +53 -77
  95. package/pages/api/hello.ts +13 -0
  96. package/postcss.config.js +5 -6
  97. package/public/next.svg +1 -0
  98. package/public/thirteen.svg +1 -0
  99. package/public/vercel.svg +1 -0
  100. package/scripts/create-component.js +97 -0
  101. package/stories/Introduction.mdx +314 -0
  102. package/stories/assets/code-brackets.svg +1 -0
  103. package/stories/assets/colors.svg +1 -0
  104. package/stories/assets/comments.svg +1 -0
  105. package/stories/assets/direction.svg +1 -0
  106. package/stories/assets/flow.svg +1 -0
  107. package/stories/assets/plugin.svg +1 -0
  108. package/stories/assets/repo.svg +1 -0
  109. package/stories/assets/stackalt.svg +1 -0
  110. package/stories/atoms/Avatar/Avatar.stories.tsx +96 -0
  111. package/stories/atoms/Avatar/Avatar.tsx +123 -0
  112. package/stories/atoms/Avatar/index.ts +3 -0
  113. package/stories/atoms/badges/Badge.tsx +127 -0
  114. package/stories/atoms/badges/Pill/Pill.stories.tsx +75 -0
  115. package/stories/atoms/badges/Rounded/Rounded.stories.tsx +75 -0
  116. package/stories/atoms/badges/index.ts +3 -0
  117. package/stories/atoms/buttons/Button/Alternative/Alternative.stories.ts +69 -0
  118. package/stories/atoms/buttons/Button/Button.tsx +123 -0
  119. package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +71 -0
  120. package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +78 -0
  121. package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +74 -0
  122. package/stories/atoms/buttons/Button/defaultArgs.ts +9 -0
  123. package/stories/atoms/buttons/Button/index.ts +3 -0
  124. package/stories/atoms/buttons/Capsule/Alternative/Alternative.stories.ts +27 -0
  125. package/stories/atoms/buttons/Capsule/Capsule.tsx +87 -0
  126. package/stories/atoms/buttons/Capsule/Danger/Danger.stories.ts +27 -0
  127. package/stories/atoms/buttons/Capsule/Primary/Primary.stories.ts +27 -0
  128. package/stories/atoms/buttons/Capsule/Secondary/Secondary.stories.ts +27 -0
  129. package/stories/atoms/buttons/Capsule/index.ts +3 -0
  130. package/stories/atoms/buttons/FloatingActionButton/FloatingActionButton.stories.tsx +15 -0
  131. package/stories/atoms/buttons/FloatingActionButton/FloatingActionButton.tsx +22 -0
  132. package/stories/atoms/buttons/FloatingActionButton/index.tsx +3 -0
  133. package/stories/atoms/buttons/index.ts +4 -0
  134. package/stories/atoms/crumb/Crumb.stories.tsx +18 -0
  135. package/stories/atoms/crumb/Crumb.tsx +22 -0
  136. package/stories/atoms/crumb/index.tsx +3 -0
  137. package/stories/atoms/icons/DynamicIcon.stories.ts +43 -0
  138. package/stories/atoms/icons/DynamicIcon.tsx +90 -0
  139. package/stories/atoms/icons/IconWithShadow.stories.ts +43 -0
  140. package/stories/atoms/icons/IconWithShadow.tsx +16 -0
  141. package/stories/atoms/icons/TablerIcon.tsx +22 -0
  142. package/stories/atoms/icons/index.tsx +14 -0
  143. package/stories/atoms/icons/tablerIconNames.ts +4336 -0
  144. package/stories/atoms/index.ts +46 -0
  145. package/stories/atoms/loaders/Loader.stories.ts +15 -0
  146. package/stories/atoms/loaders/Loader.tsx +15 -0
  147. package/stories/atoms/loaders/NProgress/RadialProgress.stories.tsx +19 -0
  148. package/stories/atoms/loaders/NProgress/RadialProgress.tsx +76 -0
  149. package/stories/atoms/loaders/NProgress/index.ts +3 -0
  150. package/stories/atoms/loaders/index.ts +4 -0
  151. package/stories/index.ts +124 -0
  152. package/stories/layouts/CardLayout/CardLayout.stories.tsx +18 -0
  153. package/stories/layouts/CardLayout/CardLayout.tsx +22 -0
  154. package/stories/layouts/CardLayout/index.tsx +3 -0
  155. package/stories/layouts/ModalLayout/ModalLayout.stories.tsx +18 -0
  156. package/stories/layouts/ModalLayout/ModalLayout.tsx +22 -0
  157. package/stories/layouts/ModalLayout/index.tsx +3 -0
  158. package/stories/layouts/index.ts +0 -0
  159. package/stories/molecules/index.ts +35 -0
  160. package/stories/molecules/inputs/InputField/InputField.stories.tsx +29 -0
  161. package/stories/molecules/inputs/InputField/InputField.tsx +88 -0
  162. package/stories/molecules/inputs/InputField/index.tsx +3 -0
  163. package/stories/molecules/inputs/InputLabel/InputLabel.stories.tsx +19 -0
  164. package/stories/molecules/inputs/InputLabel/InputLabel.tsx +45 -0
  165. package/stories/molecules/inputs/InputLabel/index.tsx +3 -0
  166. package/stories/molecules/inputs/NestedInputButton/NestedInputButton.stories.tsx +52 -0
  167. package/stories/molecules/inputs/NestedInputButton/NestedInputButton.tsx +64 -0
  168. package/stories/molecules/inputs/NestedInputButton/index.tsx +3 -0
  169. package/stories/molecules/inputs/checkbox/Checkbox.stories.ts +23 -0
  170. package/stories/molecules/inputs/checkbox/Checkbox.tsx +99 -0
  171. package/stories/molecules/inputs/checkbox/index.ts +3 -0
  172. package/stories/molecules/inputs/combobox/ComboBox.stories.ts +41 -0
  173. package/stories/molecules/inputs/combobox/ComboBox.tsx +194 -0
  174. package/stories/molecules/inputs/combobox/index.ts +3 -0
  175. package/stories/molecules/inputs/index.ts +24 -0
  176. package/stories/molecules/inputs/radio/Radio.stories.ts +27 -0
  177. package/stories/molecules/inputs/radio/Radio.tsx +92 -0
  178. package/stories/molecules/inputs/radio/index.ts +3 -0
  179. package/stories/molecules/inputs/select/Select.stories.ts +23 -0
  180. package/stories/molecules/inputs/select/Select.tsx +100 -0
  181. package/stories/molecules/inputs/select/index.ts +3 -0
  182. package/stories/molecules/inputs/textArea/TextArea.stories.ts +20 -0
  183. package/stories/molecules/inputs/textArea/TextArea.tsx +67 -0
  184. package/stories/molecules/inputs/textArea/index.ts +3 -0
  185. package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.stories.tsx +119 -0
  186. package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.tsx +75 -0
  187. package/stories/molecules/inputs/toggleSwitch/index.ts +3 -0
  188. package/stories/molecules/tabs/Tabs.stories.tsx +18 -0
  189. package/stories/molecules/tabs/Tabs.tsx +22 -0
  190. package/stories/molecules/tabs/index.tsx +3 -0
  191. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.stories.tsx +21 -0
  192. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +60 -0
  193. package/stories/organisms/AnimatedLabelInput/index.tsx +3 -0
  194. package/stories/organisms/ButtonDropdown/ButtonDropdown.stories.tsx +118 -0
  195. package/stories/organisms/ButtonDropdown/ButtonDropdown.tsx +81 -0
  196. package/stories/organisms/ButtonDropdown/index.tsx +3 -0
  197. package/stories/organisms/DropdownComponent/Dropdown.stories.tsx +49 -0
  198. package/stories/organisms/DropdownComponent/Dropdown.test.tsx +0 -0
  199. package/stories/organisms/DropdownComponent/DropdownComponent.tsx +269 -0
  200. package/stories/organisms/DropdownComponent/dropdownItems.ts +101 -0
  201. package/stories/organisms/DropdownComponent/index.ts +4 -0
  202. package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.stories.tsx +76 -0
  203. package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.tsx +52 -0
  204. package/stories/organisms/EmptySectionPlaceholder/index.tsx +3 -0
  205. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.stories.tsx +29 -0
  206. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.tsx +140 -0
  207. package/stories/organisms/FormInputWithAddons/index.tsx +3 -0
  208. package/stories/organisms/index.ts +16 -0
  209. package/tailwind.config.js +165 -36
  210. package/tsconfig.json +27 -21
  211. package/tsconfig.lib.json +19 -0
  212. package/utils/types.d.ts +2 -0
  213. package/utils/types.ts +3 -0
  214. package/utils/useId.d.ts +1 -0
  215. package/utils/useId.tsx +16 -0
  216. package/.babelrc +0 -14
  217. package/.editorconfig +0 -9
  218. package/.eslintrc +0 -13
  219. package/.github/workflows/test.yml +0 -27
  220. package/.storybook/main.js +0 -17
  221. package/.storybook/manager.js +0 -6
  222. package/.storybook/plenumTheme.js +0 -8
  223. package/.storybook/preview.js +0 -44
  224. package/_templates/component/new/component.ejs.t +0 -18
  225. package/_templates/component/new/component.stories.ejs.t +0 -21
  226. package/_templates/component/new/component.test.ejs.t +0 -15
  227. package/_templates/component/new/index.ejs.t +0 -6
  228. package/_templates/component/new/prompt.js +0 -7
  229. package/jest.config.js +0 -8
  230. package/lib/common/brandCfg.d.ts +0 -3
  231. package/lib/common/index.d.ts +0 -3
  232. package/lib/common/storyCfg.d.ts +0 -5
  233. package/lib/components/Avatar/Avatar.stories.d.ts +0 -6
  234. package/lib/components/Avatar/Avatar.test.d.ts +0 -1
  235. package/lib/components/Avatar/index.d.ts +0 -1
  236. package/lib/components/Button/Button.d.ts +0 -55
  237. package/lib/components/Button/Button.stories.d.ts +0 -11
  238. package/lib/components/Button/Button.test.d.ts +0 -1
  239. package/lib/components/Button/index.d.ts +0 -1
  240. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +0 -12
  241. package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts +0 -9
  242. package/lib/components/ButtonDropdown/index.d.ts +0 -1
  243. package/lib/components/Combobox/Combobox.stories.d.ts +0 -14
  244. package/lib/components/Combobox/Combobox.test.d.ts +0 -1
  245. package/lib/components/Combobox/index.d.ts +0 -1
  246. package/lib/components/Dropdown/Dropdown.stories.d.ts +0 -8
  247. package/lib/components/Dropdown/Dropdown.test.d.ts +0 -1
  248. package/lib/components/Dropdown/data.d.ts +0 -3
  249. package/lib/components/Dropdown/index.d.ts +0 -1
  250. package/lib/components/DynamicIcons/DynamicIcons.stories.d.ts +0 -9
  251. package/lib/components/DynamicIcons/index.d.ts +0 -3
  252. package/lib/components/DynamicIcons/tablerIconNames.d.ts +0 -2
  253. package/lib/components/Forms/BaseField/BaseField.d.ts +0 -34
  254. package/lib/components/Forms/BaseField/BaseField.stories.d.ts +0 -6
  255. package/lib/components/Forms/BaseField/BaseField.test.d.ts +0 -1
  256. package/lib/components/Forms/BaseField/index.d.ts +0 -1
  257. package/lib/components/Forms/Checkbox/Checkbox.stories.d.ts +0 -14
  258. package/lib/components/Forms/Checkbox/Checkbox.test.d.ts +0 -1
  259. package/lib/components/Forms/Checkbox/index.d.ts +0 -1
  260. package/lib/components/Forms/InputCounter/InputCounter.d.ts +0 -9
  261. package/lib/components/Forms/InputCounter/InputCounter.stories.d.ts +0 -6
  262. package/lib/components/Forms/InputCounter/InputCounter.test.d.ts +0 -1
  263. package/lib/components/Forms/InputCounter/index.d.ts +0 -1
  264. package/lib/components/Forms/InputLabel/InputLabel.stories.d.ts +0 -6
  265. package/lib/components/Forms/InputLabel/InputLabel.test.d.ts +0 -1
  266. package/lib/components/Forms/InputLabel/index.d.ts +0 -1
  267. package/lib/components/Forms/Radio/Radio.stories.d.ts +0 -12
  268. package/lib/components/Forms/Radio/Radio.test.d.ts +0 -1
  269. package/lib/components/Forms/Radio/index.d.ts +0 -1
  270. package/lib/components/Forms/Select/Select.stories.d.ts +0 -11
  271. package/lib/components/Forms/Select/Select.test.d.ts +0 -1
  272. package/lib/components/Forms/Select/index.d.ts +0 -1
  273. package/lib/components/Forms/TextInput/TextInput.d.ts +0 -39
  274. package/lib/components/Forms/TextInput/TextInput.stories.d.ts +0 -12
  275. package/lib/components/Forms/TextInput/index.d.ts +0 -1
  276. package/lib/components/Forms/TextInputAddon/InputCta/InputCta.d.ts +0 -16
  277. package/lib/components/Forms/TextInputAddon/InputCta/InputCta.stories.d.ts +0 -6
  278. package/lib/components/Forms/TextInputAddon/InputCta/InputCta.test.d.ts +0 -1
  279. package/lib/components/Forms/TextInputAddon/InputCta/index.d.ts +0 -1
  280. package/lib/components/Forms/TextInputAddon/TextInputAddon.d.ts +0 -54
  281. package/lib/components/Forms/TextInputAddon/TextInputAddon.stories.d.ts +0 -13
  282. package/lib/components/Forms/TextInputAddon/index.d.ts +0 -1
  283. package/lib/components/Forms/TextInputSelect/InputSelect/InputSelect.d.ts +0 -13
  284. package/lib/components/Forms/TextInputSelect/InputSelect/InputSelect.stories.d.ts +0 -6
  285. package/lib/components/Forms/TextInputSelect/InputSelect/InputSelect.test.d.ts +0 -1
  286. package/lib/components/Forms/TextInputSelect/InputSelect/index.d.ts +0 -1
  287. package/lib/components/Forms/TextInputSelect/TextInputSelect.d.ts +0 -48
  288. package/lib/components/Forms/TextInputSelect/TextInputSelect.stories.d.ts +0 -8
  289. package/lib/components/Forms/TextInputSelect/index.d.ts +0 -1
  290. package/lib/components/Forms/Textarea/Textarea.d.ts +0 -32
  291. package/lib/components/Forms/Textarea/Textarea.stories.d.ts +0 -12
  292. package/lib/components/Forms/Textarea/Textarea.test.d.ts +0 -1
  293. package/lib/components/Forms/Textarea/index.d.ts +0 -1
  294. package/lib/components/ToggleSwitch/ToggleSwitch.d.ts +0 -28
  295. package/lib/components/ToggleSwitch/ToggleSwitch.stories.d.ts +0 -21
  296. package/lib/components/ToggleSwitch/ToggleSwitch.test.d.ts +0 -1
  297. package/lib/components/ToggleSwitch/index.d.ts +0 -1
  298. package/lib/components/TreeView/TreeView.d.ts +0 -36
  299. package/lib/components/TreeView/TreeView.stories.d.ts +0 -6
  300. package/lib/components/TreeView/TreeView.test.d.ts +0 -1
  301. package/lib/components/TreeView/index.d.ts +0 -1
  302. package/lib/components/TreeView V1/TreeItem/TreeItem.d.ts +0 -16
  303. package/lib/components/TreeView V1/TreeItem/TreeItem.stories.d.ts +0 -9
  304. package/lib/components/TreeView V1/TreeItem/TreeItem.test.d.ts +0 -1
  305. package/lib/components/TreeView V1/TreeItem/index.d.ts +0 -1
  306. package/lib/components/TreeView V1/TreeView.d.ts +0 -6
  307. package/lib/components/TreeView V1/TreeView.stories.d.ts +0 -6
  308. package/lib/components/TreeView V1/TreeView.test.d.ts +0 -1
  309. package/lib/components/TreeView V1/context.d.ts +0 -9
  310. package/lib/components/TreeView V1/index.d.ts +0 -1
  311. package/lib/components/TreeView V1/sampleData.d.ts +0 -71
  312. package/lib/components/TreeView V1/types/tree.types.d.ts +0 -21
  313. package/lib/index.d.ts +0 -13
  314. package/lib/index.esm.js +0 -105874
  315. package/lib/index.esm.js.map +0 -1
  316. package/lib/index.js +0 -105913
  317. package/lib/index.js.map +0 -1
  318. package/lib/page/TreeNavigation/CustomNode/CustomNode.d.ts +0 -3
  319. package/lib/page/TreeNavigation/CustomNode/CustomNode.test.d.ts +0 -1
  320. package/lib/page/TreeNavigation/CustomNode/index.d.ts +0 -1
  321. package/lib/page/TreeNavigation/TreeNavigation.d.ts +0 -8
  322. package/lib/page/TreeNavigation/TreeNavigation.stories.d.ts +0 -6
  323. package/lib/page/TreeNavigation/hooks/useFetch.d.ts +0 -14
  324. package/lib/page/TreeNavigation/index.d.ts +0 -1
  325. package/lib/tailwind.css +0 -2023
  326. package/lib/util/DynamicIcons.d.ts +0 -10
  327. package/lib/util/Loader.d.ts +0 -5
  328. package/lib/util/types.d.ts +0 -2
  329. package/lib/util/useID.d.ts +0 -1
  330. package/rollup.config.js +0 -37
  331. package/setupTests.js +0 -6
  332. package/styleMock.js +0 -2
@@ -0,0 +1,11 @@
1
+ import Checkbox, { ICheckboxProps } from "./checkbox";
2
+ import Combobox, { IComboboxProps } from "./combobox";
3
+ import InputField, { AcceptedInputTypes, IInputFieldProps } from "./InputField";
4
+ import InputLabel, { IInputLabelProps } from "./InputLabel";
5
+ import NestedInputButton, { INestedInputButtonProps } from "./NestedInputButton";
6
+ import Radio, { IRadioProps } from "./radio";
7
+ import Select, { ISelectProps } from "./select";
8
+ import TextAreaField, { ITextAreaFieldProps } from "./textArea";
9
+ import ToggleSwitch, { IToggleSwitchProps } from "./toggleSwitch";
10
+ export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes };
11
+ export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch };
@@ -1,27 +1,27 @@
1
- import { FC } from 'react';
2
- export interface RadioProps {
3
- /** group name */
4
- name?: string;
5
- /** Radio label */
6
- label: string;
7
- /** Radio ID */
8
- id?: string;
9
- /** Disabled state */
10
- isDisabled?: boolean;
11
- /** Check state */
12
- isChecked?: boolean;
13
- /** If field is required */
14
- isRequired?: boolean;
15
- /** Error state */
16
- isError?: boolean;
17
- /** Message or description */
18
- message?: string;
19
- /** value */
20
- value?: string;
21
- /** Callback on input change */
22
- onChange?(value: string, isChecked: boolean): void;
23
- /** Callback on click */
24
- onClick?(value: string, isChecked: boolean): void;
25
- }
26
- /** Comment */
27
- export declare const Radio: FC<RadioProps>;
1
+ import React from "react";
2
+ export interface IRadioProps {
3
+ /** group name */
4
+ name?: string;
5
+ /** Radio label */
6
+ label: string;
7
+ /** Radio ID */
8
+ id?: string;
9
+ /** Disabled state */
10
+ isDisabled?: boolean;
11
+ /** Check state */
12
+ isChecked?: boolean;
13
+ /** If field is required */
14
+ isRequired?: boolean;
15
+ /** Error state */
16
+ isError?: boolean;
17
+ /** Message or description */
18
+ message?: string;
19
+ /** value */
20
+ value?: string;
21
+ /** Callback on input change */
22
+ onChange?(value: string, isChecked: boolean): void;
23
+ /** Callback on click */
24
+ onClick?(value: string, isChecked: boolean): void;
25
+ }
26
+ declare const Radio: React.FC<IRadioProps>;
27
+ export default Radio;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import Radio from "./Radio";
3
+ declare const meta: Meta<typeof Radio>;
4
+ type Story = StoryObj<typeof Radio>;
5
+ export declare const DefaultRadio: Story;
6
+ export default meta;
@@ -0,0 +1,3 @@
1
+ import Radio, { IRadioProps } from "./Radio";
2
+ export type { IRadioProps };
3
+ export default Radio;
@@ -1,27 +1,27 @@
1
- import { FC } from "react";
2
- export type SimpleSelectOptions = {
3
- label: string;
4
- value: string;
5
- };
6
- export interface SimpleSelectProps {
7
- /** Label */
8
- label?: string;
9
- /** Select ID prop */
10
- id?: string;
11
- /** Select name prop */
12
- name?: string;
13
- /** List of options to display in the select menu */
14
- options: SimpleSelectOptions[];
15
- /** Select name prop */
16
- onChange?(value: string): void;
17
- /** Select disabled state */
18
- isDisabled?: boolean;
19
- /** Select error state */
20
- isError?: boolean;
21
- /** Select required state */
22
- isRequired?: boolean;
23
- value?: string;
24
- className?: string;
25
- }
26
- /** Comment */
27
- export declare const Select: FC<SimpleSelectProps>;
1
+ import React from "react";
2
+ export type ISimpleSelectOptions = {
3
+ label: string;
4
+ value: string;
5
+ };
6
+ export interface ISelectProps {
7
+ /** Label */
8
+ label?: string;
9
+ /** Select ID prop */
10
+ id?: string;
11
+ /** Select name prop */
12
+ name?: string;
13
+ /** List of options to display in the select menu */
14
+ options: ISimpleSelectOptions[];
15
+ /** Select name prop */
16
+ onChange?(value: string): void;
17
+ /** Select disabled state */
18
+ isDisabled?: boolean;
19
+ /** Select error state */
20
+ isError?: boolean;
21
+ /** Select required state */
22
+ isRequired?: boolean;
23
+ value?: string;
24
+ className?: string;
25
+ }
26
+ declare const Select: React.FC<ISelectProps>;
27
+ export default Select;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import Select from "./Select";
3
+ declare const meta: Meta<typeof Select>;
4
+ type Story = StoryObj<typeof Select>;
5
+ export declare const DefaultSelect: Story;
6
+ export default meta;
@@ -0,0 +1,3 @@
1
+ import Select, { ISelectProps, ISimpleSelectOptions } from "./Select";
2
+ export type { ISelectProps, ISimpleSelectOptions };
3
+ export default Select;
@@ -0,0 +1,26 @@
1
+ /// <reference types="react" />
2
+ export interface ITextAreaFieldProps extends React.ComponentPropsWithoutRef<"textarea"> {
3
+ /** Callback on change */
4
+ handleChange: (value: string) => void;
5
+ /** textarea ID*/
6
+ id: string;
7
+ /** textarea Name */
8
+ name: string;
9
+ /** Force the focus state on the textarea */
10
+ isFocused?: boolean;
11
+ /** Error condition */
12
+ isError?: boolean;
13
+ /** Disabled state */
14
+ isDisabled?: boolean;
15
+ /** Readonly state */
16
+ isReadonly?: boolean;
17
+ /** textarea value */
18
+ value: string;
19
+ /** If field is required */
20
+ required?: boolean;
21
+ /**Allow Text Area Resize*/
22
+ textAreaResize?: boolean;
23
+ className?: string;
24
+ }
25
+ declare const TextAreaField: React.FC<ITextAreaFieldProps>;
26
+ export default TextAreaField;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import TextArea from "./TextArea";
3
+ declare const meta: Meta<typeof TextArea>;
4
+ type Story = StoryObj<typeof TextArea>;
5
+ export declare const DefaultTextArea: Story;
6
+ export default meta;
@@ -0,0 +1,3 @@
1
+ import TextAreaField, { ITextAreaFieldProps } from "./TextArea";
2
+ export type { ITextAreaFieldProps };
3
+ export default TextAreaField;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { IDynamicIconProps } from "@/stories/atoms";
3
+ export interface IToggleSwitchProps {
4
+ isChecked: boolean;
5
+ onChange: (isChecked: boolean) => void;
6
+ label?: {
7
+ text: string | JSX.Element;
8
+ className?: string;
9
+ xPosition?: "left" | "right";
10
+ };
11
+ screenReaderLabel: string;
12
+ name: string;
13
+ id: string;
14
+ variant: "base" | "short";
15
+ withIcon?: IDynamicIconProps;
16
+ }
17
+ declare const ToggleSwitch: React.FC<IToggleSwitchProps>;
18
+ export default ToggleSwitch;
@@ -0,0 +1,3 @@
1
+ import ToggleSwitch, { IToggleSwitchProps } from "./ToggleSwitch";
2
+ export type { IToggleSwitchProps };
3
+ export default ToggleSwitch;
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import { IInputFieldProps } from "@/stories/molecules/inputs/InputField";
3
+ import { ITextAreaFieldProps } from "@/stories/molecules/inputs/textArea/TextArea";
4
+ interface ILabelProps extends React.ComponentPropsWithoutRef<"label"> {
5
+ display: string;
6
+ }
7
+ export interface IAnimatedLabelInputProps {
8
+ id: string;
9
+ containerStyles?: string;
10
+ message?: string;
11
+ input?: IInputFieldProps;
12
+ textarea?: ITextAreaFieldProps;
13
+ required?: boolean;
14
+ isError?: boolean;
15
+ label: ILabelProps;
16
+ }
17
+ declare const AnimatedLabelInput: React.FC<IAnimatedLabelInputProps>;
18
+ export default AnimatedLabelInput;
@@ -0,0 +1,3 @@
1
+ import AnimatedLabelInput, { IAnimatedLabelInputProps } from "./AnimatedLabelInput";
2
+ export default AnimatedLabelInput;
3
+ export type { IAnimatedLabelInputProps };
@@ -0,0 +1,14 @@
1
+ import { FC } from "react";
2
+ import { IButtonProps } from "@/stories/atoms/buttons/Button";
3
+ import { IDropdownProps } from "../DropdownComponent";
4
+ export interface IButtonDropdownProps {
5
+ button: IButtonProps;
6
+ dropDown: IDropdownProps;
7
+ placement?: IDropdownProps["placement"];
8
+ offsetOptions?: IDropdownProps["offsetOptions"];
9
+ }
10
+ /**
11
+ * Primary UI component for user interaction
12
+ */
13
+ declare const ButtonDropdown: FC<IButtonDropdownProps>;
14
+ export default ButtonDropdown;
@@ -0,0 +1,3 @@
1
+ import ButtonDropdown, { IButtonDropdownProps } from "./ButtonDropdown";
2
+ export type { IButtonDropdownProps };
3
+ export default ButtonDropdown;
@@ -1,39 +1,40 @@
1
- import React, { HTMLAttributes } from "react";
2
- import { Placement } from "@floating-ui/react";
3
- import { IDynamicIconsProps } from "../DynamicIcons/DynamicIcons";
4
- import { ClassNameWithAutocomplete } from "../../util/types";
5
- export interface ItemProp extends HTMLAttributes<HTMLButtonElement> {
6
- icon?: {
7
- name: IDynamicIconsProps["icon"];
8
- className?: ClassNameWithAutocomplete;
9
- pos?: "trailing" | "leading";
10
- outline?: boolean;
11
- };
12
- label: string;
13
- onClick?(): void;
14
- isEmphasized?: boolean;
15
- key: React.Key;
16
- }
17
- export interface IDropdownClassnames {
18
- groupClassname?: ClassNameWithAutocomplete;
19
- itemsClassname?: ClassNameWithAutocomplete;
20
- itemClassname?: ClassNameWithAutocomplete;
21
- activeItemClassname?: ClassNameWithAutocomplete;
22
- buttonClassname?: ClassNameWithAutocomplete;
23
- }
24
- export interface IDropdownProps extends HTMLAttributes<HTMLDivElement> {
25
- items: ItemProp[][];
26
- label: string;
27
- CustomDropdownTrigger?: React.ReactNode;
28
- id: string;
29
- classNames?: IDropdownClassnames;
30
- placement?: Placement;
31
- offsetOptions?: Partial<{
32
- mainAxis: number;
33
- crossAxis: number;
34
- alignmentAxis: number | null;
35
- }>;
36
- }
37
- export declare const defaultClassNames: IDropdownClassnames;
38
- /** Comment */
39
- export declare const Dropdown: React.FC<IDropdownProps>;
1
+ import React, { HTMLAttributes } from "react";
2
+ import { Placement } from "@floating-ui/react";
3
+ import { ClassNameWithAutocomplete } from "utils/types";
4
+ import { IDynamicIconProps } from "@/stories/atoms/icons";
5
+ export interface IItemProp extends HTMLAttributes<HTMLButtonElement> {
6
+ icon?: {
7
+ name: IDynamicIconProps["icon"];
8
+ className?: ClassNameWithAutocomplete;
9
+ pos?: "trailing" | "leading";
10
+ outline?: boolean;
11
+ };
12
+ label: string;
13
+ onClick?(): void;
14
+ isEmphasized?: boolean;
15
+ key: React.Key;
16
+ }
17
+ export interface IDropdownClassnames {
18
+ groupClassname?: ClassNameWithAutocomplete;
19
+ itemsClassname?: ClassNameWithAutocomplete;
20
+ itemClassname?: ClassNameWithAutocomplete;
21
+ activeItemClassname?: ClassNameWithAutocomplete;
22
+ buttonClassname?: ClassNameWithAutocomplete;
23
+ }
24
+ export interface IDropdownProps extends HTMLAttributes<HTMLDivElement> {
25
+ items: IItemProp[][];
26
+ label: string;
27
+ CustomDropdownTrigger?: React.ReactNode;
28
+ id: string;
29
+ classNames?: IDropdownClassnames;
30
+ placement?: Placement;
31
+ offsetOptions?: Partial<{
32
+ mainAxis: number;
33
+ crossAxis: number;
34
+ alignmentAxis: number | null;
35
+ }>;
36
+ }
37
+ export declare const defaultClassNames: IDropdownClassnames;
38
+ /** Comment */
39
+ declare const Dropdown: React.FC<IDropdownProps>;
40
+ export default Dropdown;
@@ -0,0 +1,3 @@
1
+ import { IItemProp } from "./DropdownComponent";
2
+ export declare const dropdownDataBase: IItemProp[][];
3
+ export declare const dropdownDataWithIcons: IItemProp[][];
@@ -0,0 +1,4 @@
1
+ import Dropdown, { IItemProp, IDropdownClassnames, IDropdownProps, defaultClassNames } from "./DropdownComponent";
2
+ export type { IItemProp, IDropdownClassnames, IDropdownProps };
3
+ export { defaultClassNames };
4
+ export default Dropdown;
@@ -0,0 +1,19 @@
1
+ import React from "react";
2
+ import { IButtonProps } from "@/stories/atoms/buttons/Button";
3
+ import { IDynamicIconProps } from "@/stories/atoms/icons";
4
+ export interface IEmptySectionPlaceholderProps {
5
+ /** the primary icon to display at top of component */
6
+ icon: IDynamicIconProps;
7
+ /** the muted text to display below the icon */
8
+ mutedText?: string;
9
+ /** the primary message to display below the muted text */
10
+ primaryMessage: string;
11
+ /** the call to action component that if provided will be used instead of primaryMessage */
12
+ CallToActionComponent?: React.ReactNode;
13
+ /** the actions to display below the primary call to action or message */
14
+ actions: IButtonProps[];
15
+ /** whether to display the component in a wide or narrow format */
16
+ isWide?: boolean;
17
+ }
18
+ declare const EmptySectionPlaceholder: React.FC<IEmptySectionPlaceholderProps>;
19
+ export default EmptySectionPlaceholder;
@@ -0,0 +1,3 @@
1
+ import EmptySectionPlaceholder, { IEmptySectionPlaceholderProps } from "./EmptySectionPlaceholder";
2
+ export default EmptySectionPlaceholder;
3
+ export type { IEmptySectionPlaceholderProps };
@@ -0,0 +1,21 @@
1
+ import { IDynamicIconProps } from "@/stories/atoms/icons";
2
+ import React from "react";
3
+ import { IInputFieldProps, AcceptedInputTypes } from "@/stories/molecules/inputs/InputField";
4
+ export interface IFormInputWithAddonsProps extends Omit<IInputFieldProps, "type"> {
5
+ leadIcon?: IDynamicIconProps;
6
+ leadLabel?: string;
7
+ trailIcon?: IDynamicIconProps;
8
+ trailLabel?: string;
9
+ iconOutlined?: boolean;
10
+ /** @param addonOffset An extra buffer zone in pixels between the trailing/leading icon or label and search input -- Default is 24 */
11
+ addonOffset?: number;
12
+ topLabel?: string;
13
+ labelClass?: string;
14
+ containerClassName?: string;
15
+ description?: string;
16
+ leadIconClassNames?: string;
17
+ customIconClass?: string;
18
+ type: AcceptedInputTypes;
19
+ }
20
+ declare const FormInputWithAddons: React.FC<IFormInputWithAddonsProps>;
21
+ export default FormInputWithAddons;
@@ -0,0 +1,3 @@
1
+ import FormInputWithAddons, { IFormInputWithAddonsProps } from "./FormInputWithAddons";
2
+ export type { IFormInputWithAddonsProps };
3
+ export default FormInputWithAddons;
@@ -0,0 +1,7 @@
1
+ import AnimatedLabelInput, { IAnimatedLabelInputProps } from "./AnimatedLabelInput";
2
+ import ButtonDropdown, { IButtonDropdownProps } from "./ButtonDropdown";
3
+ import Dropdown, { IDropdownClassnames, IDropdownProps, IItemProp } from "./DropdownComponent";
4
+ import EmptySectionPlaceholder, { IEmptySectionPlaceholderProps } from "./EmptySectionPlaceholder";
5
+ import FormInputWithAddons, { IFormInputWithAddonsProps } from "./FormInputWithAddons";
6
+ export type { IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps };
7
+ export { AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons };
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export type ClassNameWithAutocomplete = React.ComponentPropsWithoutRef<"div">["className"];
@@ -0,0 +1 @@
1
+ export declare const useId: () => string;
package/next.config.js ADDED
@@ -0,0 +1,8 @@
1
+ /** @type {import('next').NextConfig} */
2
+ const nextConfig = {
3
+ experimental: {
4
+ appDir: true,
5
+ },
6
+ }
7
+
8
+ module.exports = nextConfig
package/package.json CHANGED
@@ -1,89 +1,65 @@
1
1
  {
2
2
  "name": "@agility/plenum-ui",
3
- "version": "1.3.48",
4
- "description": "Components that are part of the Agility CMS design system.",
5
- "main": "lib/index.js",
6
- "module": "lib/index.esm.js",
7
- "types": "lib/index.d.ts",
8
- "author": "Agility CMS",
3
+ "version": "2.0.0-rc1",
9
4
  "license": "MIT",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "engines": {
9
+ "node": ">= 18.0.0"
10
+ },
10
11
  "scripts": {
11
- "prepare": "yarn build",
12
- "storybook:tw": "tailwindcss -o ./lib/tailwind.css -w",
13
- "storybook:run": "start-storybook -p 6006",
14
- "storybook": "npm-run-all --parallel storybook:*",
12
+ "lint": "next lint",
13
+ "build-storybook": "npm-run-all -p \"sb-build:*\"",
14
+ "sb-build:storybook": "storybook build",
15
+ "sb-build:tw": "tailwindcss -o ./lib/tailwind.css",
16
+ "storybook:dev": "storybook dev -p 6006",
17
+ "storybook:tw": "tailwindcss -o ./lib/tailwind.css -w ",
18
+ "storybook": "npm-run-all -p \"storybook:*\" ",
19
+ "dev": "yarn storybook",
15
20
  "build:tw": "tailwindcss -o ./lib/tailwind.css",
16
- "build-storybook": "build-storybook",
17
- "build:rollup": "rollup -c",
18
- "build": "npm-run-all --parallel build:*",
19
- "test": "jest",
20
- "make:comp": "hygen component new"
21
- },
22
- "repository": {
23
- "type": "git",
24
- "url": "https://github.com/agility/agility-plenum-ui"
21
+ "build:tsc": "yarn node build.js",
22
+ "prepare": "yarn build",
23
+ "build": "npm run clean && npm-run-all -s \"build:*\" ",
24
+ "clean": "rimraf dist",
25
+ "create-component": "node scripts/create-component.js"
25
26
  },
26
- "homepage": "https://plenum-ui.vercel.app/",
27
27
  "devDependencies": {
28
- "@babel/core": "^7.17.2",
29
- "@babel/preset-env": "^7.16.11",
30
- "@babel/preset-react": "^7.16.7",
31
- "@babel/preset-typescript": "^7.16.7",
32
- "@rollup/plugin-commonjs": "^21.0.1",
33
- "@rollup/plugin-node-resolve": "^13.1.3",
34
- "@storybook/addon-a11y": "^6.4.19",
35
- "@storybook/addon-actions": "^6.4.18",
36
- "@storybook/addon-essentials": "^6.4.18",
37
- "@storybook/addon-links": "^6.4.18",
38
- "@storybook/addon-postcss": "^2.0.0",
39
- "@storybook/react": "^6.4.18",
40
- "@storybook/theming": "^6.4.19",
41
- "@tailwindcss/forms": "^0.5.2",
42
- "@types/enzyme": "^3.10.11",
43
- "@types/jest": "^27.4.0",
44
- "@types/react": "^17.0.39",
45
- "@typescript-eslint/eslint-plugin": "^5.11.0",
46
- "@typescript-eslint/parser": "^5.11.0",
47
- "@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
48
- "autoprefixer": "^10.4.2",
49
- "babel-jest": "^27.5.1",
50
- "babel-loader": "^8.2.3",
51
- "css-loader": "5.2.6",
52
- "enzyme": "^3.11.0",
53
- "eslint": "^8.8.0",
54
- "eslint-config-prettier": "^8.3.0",
55
- "hygen": "^6.1.0",
56
- "jest": "^27.5.1",
57
- "jsdom": "^19.0.0",
58
- "npm-run-all": "^4.1.5",
59
- "postcss": "^8.4.6",
60
- "postcss-loader": "4.0.0",
61
- "prettier": "^2.6.2",
62
- "prettier-plugin-tailwindcss": "^0.1.11",
63
- "react": "^17.0.2",
64
- "react-dom": "^17.0.2",
65
- "rollup": "^2.67.2",
66
- "rollup-plugin-dts": "^4.1.0",
67
- "rollup-plugin-peer-deps-external": "^2.2.4",
68
- "rollup-plugin-postcss": "^4.0.2",
69
- "rollup-plugin-typescript2": "^0.31.2",
70
- "storybook-addon-mock": "^2.3.0",
71
- "style-loader": "2.0.0",
72
- "tailwindcss": "3.0.24",
73
- "ts-jest": "^27.1.3",
74
- "typescript": "^4.5.5"
75
- },
76
- "peerDependencies": {
77
- "react": "^17.0.2",
78
- "react-dom": "^17.0.2"
79
- },
80
- "dependencies": {
81
- "@floating-ui/react": "^0.24.8",
82
- "@headlessui/react": "^1.7.8",
28
+ "@floating-ui/react": "^0.25.0",
29
+ "@headlessui/react": "^1.7.10",
30
+ "@headlessui/tailwindcss": "^0.1.2",
83
31
  "@heroicons/react": "^1.0.5",
32
+ "@next/font": "^13.4.12",
33
+ "@storybook/addon-designs": "^7.0.1",
34
+ "@storybook/addon-essentials": "^7.1.1",
35
+ "@storybook/addon-interactions": "^7.1.1",
36
+ "@storybook/addon-links": "^7.1.1",
37
+ "@storybook/blocks": "^7.1.1",
38
+ "@storybook/manager-api": "^7.1.1",
39
+ "@storybook/nextjs": "^7.1.1",
40
+ "@storybook/react": "^7.1.1",
41
+ "@storybook/testing-library": "^0.2.0",
42
+ "@storybook/theming": "^7.1.1",
84
43
  "@tabler/icons": "^2.26.0",
85
44
  "@tabler/icons-react": "^2.27.0",
86
- "classnames": "^2.3.1",
87
- "react-icons": "^4.10.1"
45
+ "@tailwindcss/forms": "^0.5.3",
46
+ "@tailwindcss/typography": "^0.5.9",
47
+ "@types/node": "18.11.18",
48
+ "autoprefixer": "^10.4.13",
49
+ "classnames": "^2.3.2",
50
+ "concurrently": "^7.6.0",
51
+ "esbuild": "^0.18.19",
52
+ "eslint": "8.32.0",
53
+ "eslint-config-next": "13.1.6",
54
+ "eslint-plugin-storybook": "^0.6.13",
55
+ "next": "13.1.6",
56
+ "npm-run-all": "^4.1.5",
57
+ "postcss": "^8.4.21",
58
+ "react": "18.2.0",
59
+ "react-dom": "18.2.0",
60
+ "react-icons": "^4.10.1",
61
+ "storybook": "^7.1.1",
62
+ "tailwindcss": "^3.2.4",
63
+ "typescript": "^5.1.6"
88
64
  }
89
65
  }
@@ -0,0 +1,13 @@
1
+ // Next.js API route support: https://nextjs.org/docs/api-routes/introduction
2
+ import type { NextApiRequest, NextApiResponse } from 'next'
3
+
4
+ type Data = {
5
+ name: string
6
+ }
7
+
8
+ export default function handler(
9
+ req: NextApiRequest,
10
+ res: NextApiResponse<Data>
11
+ ) {
12
+ res.status(200).json({ name: 'John Doe' })
13
+ }
package/postcss.config.js CHANGED
@@ -1,7 +1,6 @@
1
- // postcss.config.js
2
1
  module.exports = {
3
- plugins: {
4
- tailwindcss: {},
5
- autoprefixer: {}
6
- }
7
- };
2
+ plugins: {
3
+ tailwindcss: {},
4
+ autoprefixer: {},
5
+ },
6
+ }
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 394 80"><path fill="#000" d="M262 0h68.5v12.7h-27.2v66.6h-13.6V12.7H262V0ZM149 0v12.7H94v20.4h44.3v12.6H94v21h55v12.6H80.5V0h68.7zm34.3 0h-17.8l63.8 79.4h17.9l-32-39.7 32-39.6h-17.9l-23 28.6-23-28.6zm18.3 56.7-9-11-27.1 33.7h17.8l18.3-22.7z"/><path fill="#000" d="M81 79.3 17 0H0v79.3h13.6V17l50.2 62.3H81Zm252.6-.4c-1 0-1.8-.4-2.5-1s-1.1-1.6-1.1-2.6.3-1.8 1-2.5 1.6-1 2.6-1 1.8.3 2.5 1a3.4 3.4 0 0 1 .6 4.3 3.7 3.7 0 0 1-3 1.8zm23.2-33.5h6v23.3c0 2.1-.4 4-1.3 5.5a9.1 9.1 0 0 1-3.8 3.5c-1.6.8-3.5 1.3-5.7 1.3-2 0-3.7-.4-5.3-1s-2.8-1.8-3.7-3.2c-.9-1.3-1.4-3-1.4-5h6c.1.8.3 1.6.7 2.2s1 1.2 1.6 1.5c.7.4 1.5.5 2.4.5 1 0 1.8-.2 2.4-.6a4 4 0 0 0 1.6-1.8c.3-.8.5-1.8.5-3V45.5zm30.9 9.1a4.4 4.4 0 0 0-2-3.3 7.5 7.5 0 0 0-4.3-1.1c-1.3 0-2.4.2-3.3.5-.9.4-1.6 1-2 1.6a3.5 3.5 0 0 0-.3 4c.3.5.7.9 1.3 1.2l1.8 1 2 .5 3.2.8c1.3.3 2.5.7 3.7 1.2a13 13 0 0 1 3.2 1.8 8.1 8.1 0 0 1 3 6.5c0 2-.5 3.7-1.5 5.1a10 10 0 0 1-4.4 3.5c-1.8.8-4.1 1.2-6.8 1.2-2.6 0-4.9-.4-6.8-1.2-2-.8-3.4-2-4.5-3.5a10 10 0 0 1-1.7-5.6h6a5 5 0 0 0 3.5 4.6c1 .4 2.2.6 3.4.6 1.3 0 2.5-.2 3.5-.6 1-.4 1.8-1 2.4-1.7a4 4 0 0 0 .8-2.4c0-.9-.2-1.6-.7-2.2a11 11 0 0 0-2.1-1.4l-3.2-1-3.8-1c-2.8-.7-5-1.7-6.6-3.2a7.2 7.2 0 0 1-2.4-5.7 8 8 0 0 1 1.7-5 10 10 0 0 1 4.3-3.5c2-.8 4-1.2 6.4-1.2 2.3 0 4.4.4 6.2 1.2 1.8.8 3.2 2 4.3 3.4 1 1.4 1.5 3 1.5 5h-5.8z"/></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="40" height="31" fill="none"><g opacity=".9"><path fill="url(#a)" d="M13 .4v29.3H7V6.3h-.2L0 10.5V5L7.2.4H13Z"/><path fill="url(#b)" d="M28.8 30.1c-2.2 0-4-.3-5.7-1-1.7-.8-3-1.8-4-3.1a7.7 7.7 0 0 1-1.4-4.6h6.2c0 .8.3 1.4.7 2 .4.5 1 .9 1.7 1.2.7.3 1.6.4 2.5.4 1 0 1.7-.2 2.5-.5.7-.3 1.3-.8 1.7-1.4.4-.6.6-1.2.6-2s-.2-1.5-.7-2.1c-.4-.6-1-1-1.8-1.4-.8-.4-1.8-.5-2.9-.5h-2.7v-4.6h2.7a6 6 0 0 0 2.5-.5 4 4 0 0 0 1.7-1.3c.4-.6.6-1.3.6-2a3.5 3.5 0 0 0-2-3.3 5.6 5.6 0 0 0-4.5 0 4 4 0 0 0-1.7 1.2c-.4.6-.6 1.2-.6 2h-6c0-1.7.6-3.2 1.5-4.5 1-1.3 2.2-2.3 3.8-3C25 .4 26.8 0 28.8 0s3.8.4 5.3 1.1c1.5.7 2.7 1.7 3.6 3a7.2 7.2 0 0 1 1.2 4.2c0 1.6-.5 3-1.5 4a7 7 0 0 1-4 2.2v.2c2.2.3 3.8 1 5 2.2a6.4 6.4 0 0 1 1.6 4.6c0 1.7-.5 3.1-1.4 4.4a9.7 9.7 0 0 1-4 3.1c-1.7.8-3.7 1.1-5.8 1.1Z"/></g><defs><linearGradient id="a" x1="20" x2="20" y1="0" y2="30.1" gradientUnits="userSpaceOnUse"><stop/><stop offset="1" stop-color="#3D3D3D"/></linearGradient><linearGradient id="b" x1="20" x2="20" y1="0" y2="30.1" gradientUnits="userSpaceOnUse"><stop/><stop offset="1" stop-color="#3D3D3D"/></linearGradient></defs></svg>
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 283 64"><path fill="black" d="M141 16c-11 0-19 7-19 18s9 18 20 18c7 0 13-3 16-7l-7-5c-2 3-6 4-9 4-5 0-9-3-10-7h28v-3c0-11-8-18-19-18zm-9 15c1-4 4-7 9-7s8 3 9 7h-18zm117-15c-11 0-19 7-19 18s9 18 20 18c6 0 12-3 16-7l-8-5c-2 3-5 4-8 4-5 0-9-3-11-7h28l1-3c0-11-8-18-19-18zm-10 15c2-4 5-7 10-7s8 3 9 7h-19zm-39 3c0 6 4 10 10 10 4 0 7-2 9-5l8 5c-3 5-9 8-17 8-11 0-19-7-19-18s8-18 19-18c8 0 14 3 17 8l-8 5c-2-3-5-5-9-5-6 0-10 4-10 10zm83-29v46h-9V5h9zM37 0l37 64H0L37 0zm92 5-27 48L74 5h10l18 30 17-30h10zm59 12v10l-3-1c-6 0-10 4-10 10v15h-9V17h9v9c0-5 6-9 13-9z"/></svg>