@agility/plenum-ui 1.3.50 → 2.0.0-rc2

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 (333) 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 +41 -0
  19. package/dist/index.d.ts +959 -0
  20. package/dist/index.js +5936 -0
  21. package/dist/index.js.map +7 -0
  22. package/{lib/components → dist/types/stories/atoms}/Avatar/Avatar.d.ts +28 -27
  23. package/dist/types/stories/atoms/Avatar/index.d.ts +3 -0
  24. package/dist/types/stories/atoms/badges/Badge.d.ts +21 -0
  25. package/dist/types/stories/atoms/badges/index.d.ts +3 -0
  26. package/dist/types/stories/atoms/buttons/Button/Alternative/Alternative.stories.d.ts +13 -0
  27. package/dist/types/stories/atoms/buttons/Button/Button.d.ts +33 -0
  28. package/dist/types/stories/atoms/buttons/Button/Danger/Danger.stories.d.ts +13 -0
  29. package/dist/types/stories/atoms/buttons/Button/Primary/Primary.stories.d.ts +13 -0
  30. package/dist/types/stories/atoms/buttons/Button/Secondary/Secondary.stories.d.ts +13 -0
  31. package/dist/types/stories/atoms/buttons/Button/defaultArgs.d.ts +3 -0
  32. package/dist/types/stories/atoms/buttons/Button/index.d.ts +3 -0
  33. package/dist/types/stories/atoms/buttons/Capsule/Alternative/Alternative.stories.d.ts +6 -0
  34. package/dist/types/stories/atoms/buttons/Capsule/Capsule.d.ts +27 -0
  35. package/dist/types/stories/atoms/buttons/Capsule/Danger/Danger.stories.d.ts +6 -0
  36. package/dist/types/stories/atoms/buttons/Capsule/Primary/Primary.stories.d.ts +6 -0
  37. package/dist/types/stories/atoms/buttons/Capsule/Secondary/Secondary.stories.d.ts +6 -0
  38. package/dist/types/stories/atoms/buttons/Capsule/index.d.ts +3 -0
  39. package/dist/types/stories/atoms/buttons/index.d.ts +4 -0
  40. package/{lib/components/DynamicIcons/DynamicIcons.d.ts → dist/types/stories/atoms/icons/DynamicIcon.d.ts} +20 -18
  41. package/dist/types/stories/atoms/icons/DynamicIcon.stories.d.ts +10 -0
  42. package/dist/types/stories/atoms/icons/IconWithShadow.d.ts +6 -0
  43. package/dist/types/stories/atoms/icons/IconWithShadow.stories.d.ts +10 -0
  44. package/{lib/components/DynamicIcons → dist/types/stories/atoms/icons}/TablerIcon.d.ts +9 -9
  45. package/dist/types/stories/atoms/icons/index.d.ts +4 -0
  46. package/dist/types/stories/atoms/icons/tablerIconNames.d.ts +2 -0
  47. package/dist/types/stories/atoms/index.d.ts +7 -0
  48. package/dist/types/stories/atoms/loaders/Loader.d.ts +6 -0
  49. package/dist/types/stories/atoms/loaders/Loader.stories.d.ts +6 -0
  50. package/dist/types/stories/atoms/loaders/NProgress/RadialProgress.d.ts +11 -0
  51. package/dist/types/stories/atoms/loaders/NProgress/index.d.ts +3 -0
  52. package/dist/types/stories/atoms/loaders/index.d.ts +4 -0
  53. package/dist/types/stories/index.d.ts +5 -0
  54. package/dist/types/stories/layouts/index.d.ts +0 -0
  55. package/dist/types/stories/molecules/index.d.ts +3 -0
  56. package/dist/types/stories/molecules/inputs/InputField/InputField.d.ts +28 -0
  57. package/dist/types/stories/molecules/inputs/InputField/index.d.ts +3 -0
  58. package/{lib/components/Forms → dist/types/stories/molecules/inputs}/InputLabel/InputLabel.d.ts +15 -14
  59. package/dist/types/stories/molecules/inputs/InputLabel/index.d.ts +3 -0
  60. package/dist/types/stories/molecules/inputs/NestedInputButton/NestedInputButton.d.ts +17 -0
  61. package/dist/types/stories/molecules/inputs/NestedInputButton/index.d.ts +3 -0
  62. package/{lib/components/Forms/Checkbox → dist/types/stories/molecules/inputs/checkbox}/Checkbox.d.ts +28 -27
  63. package/dist/types/stories/molecules/inputs/checkbox/Checkbox.stories.d.ts +6 -0
  64. package/dist/types/stories/molecules/inputs/checkbox/index.d.ts +3 -0
  65. package/{lib/components/Combobox/Combobox.d.ts → dist/types/stories/molecules/inputs/combobox/ComboBox.d.ts} +34 -34
  66. package/dist/types/stories/molecules/inputs/combobox/ComboBox.stories.d.ts +6 -0
  67. package/dist/types/stories/molecules/inputs/combobox/index.d.ts +3 -0
  68. package/dist/types/stories/molecules/inputs/index.d.ts +11 -0
  69. package/{lib/components/Forms/Radio → dist/types/stories/molecules/inputs/radio}/Radio.d.ts +27 -27
  70. package/dist/types/stories/molecules/inputs/radio/Radio.stories.d.ts +6 -0
  71. package/dist/types/stories/molecules/inputs/radio/index.d.ts +3 -0
  72. package/{lib/components/Forms/Select → dist/types/stories/molecules/inputs/select}/Select.d.ts +27 -27
  73. package/dist/types/stories/molecules/inputs/select/Select.stories.d.ts +6 -0
  74. package/dist/types/stories/molecules/inputs/select/index.d.ts +3 -0
  75. package/dist/types/stories/molecules/inputs/textArea/TextArea.d.ts +26 -0
  76. package/dist/types/stories/molecules/inputs/textArea/TextArea.stories.d.ts +6 -0
  77. package/dist/types/stories/molecules/inputs/textArea/index.d.ts +3 -0
  78. package/dist/types/stories/molecules/inputs/toggleSwitch/ToggleSwitch.d.ts +18 -0
  79. package/dist/types/stories/molecules/inputs/toggleSwitch/index.d.ts +3 -0
  80. package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +18 -0
  81. package/dist/types/stories/organisms/AnimatedLabelInput/index.d.ts +3 -0
  82. package/dist/types/stories/organisms/ButtonDropdown/ButtonDropdown.d.ts +14 -0
  83. package/dist/types/stories/organisms/ButtonDropdown/index.d.ts +3 -0
  84. package/{lib/components/Dropdown/Dropdown.d.ts → dist/types/stories/organisms/DropdownComponent/DropdownComponent.d.ts} +40 -39
  85. package/dist/types/stories/organisms/DropdownComponent/dropdownItems.d.ts +3 -0
  86. package/dist/types/stories/organisms/DropdownComponent/index.d.ts +4 -0
  87. package/dist/types/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.d.ts +19 -0
  88. package/dist/types/stories/organisms/EmptySectionPlaceholder/index.d.ts +3 -0
  89. package/dist/types/stories/organisms/FormInputWithAddons/FormInputWithAddons.d.ts +21 -0
  90. package/dist/types/stories/organisms/FormInputWithAddons/index.d.ts +3 -0
  91. package/dist/types/stories/organisms/index.d.ts +7 -0
  92. package/dist/types/utils/types.d.ts +2 -0
  93. package/dist/types/utils/useId.d.ts +1 -0
  94. package/next.config.js +8 -0
  95. package/package.json +55 -78
  96. package/pages/api/hello.ts +13 -0
  97. package/postcss.config.js +5 -6
  98. package/public/next.svg +1 -0
  99. package/public/thirteen.svg +1 -0
  100. package/public/vercel.svg +1 -0
  101. package/scripts/create-component.js +97 -0
  102. package/stories/Introduction.mdx +314 -0
  103. package/stories/assets/code-brackets.svg +1 -0
  104. package/stories/assets/colors.svg +1 -0
  105. package/stories/assets/comments.svg +1 -0
  106. package/stories/assets/direction.svg +1 -0
  107. package/stories/assets/flow.svg +1 -0
  108. package/stories/assets/plugin.svg +1 -0
  109. package/stories/assets/repo.svg +1 -0
  110. package/stories/assets/stackalt.svg +1 -0
  111. package/stories/atoms/Avatar/Avatar.stories.tsx +96 -0
  112. package/stories/atoms/Avatar/Avatar.tsx +123 -0
  113. package/stories/atoms/Avatar/index.ts +3 -0
  114. package/stories/atoms/badges/Badge.tsx +127 -0
  115. package/stories/atoms/badges/Pill/Pill.stories.tsx +75 -0
  116. package/stories/atoms/badges/Rounded/Rounded.stories.tsx +75 -0
  117. package/stories/atoms/badges/index.ts +3 -0
  118. package/stories/atoms/buttons/Button/Alternative/Alternative.stories.ts +69 -0
  119. package/stories/atoms/buttons/Button/Button.tsx +123 -0
  120. package/stories/atoms/buttons/Button/Danger/Danger.stories.ts +71 -0
  121. package/stories/atoms/buttons/Button/Primary/Primary.stories.ts +78 -0
  122. package/stories/atoms/buttons/Button/Secondary/Secondary.stories.ts +74 -0
  123. package/stories/atoms/buttons/Button/defaultArgs.ts +9 -0
  124. package/stories/atoms/buttons/Button/index.ts +3 -0
  125. package/stories/atoms/buttons/Capsule/Alternative/Alternative.stories.ts +27 -0
  126. package/stories/atoms/buttons/Capsule/Capsule.tsx +87 -0
  127. package/stories/atoms/buttons/Capsule/Danger/Danger.stories.ts +27 -0
  128. package/stories/atoms/buttons/Capsule/Primary/Primary.stories.ts +27 -0
  129. package/stories/atoms/buttons/Capsule/Secondary/Secondary.stories.ts +27 -0
  130. package/stories/atoms/buttons/Capsule/index.ts +3 -0
  131. package/stories/atoms/buttons/FloatingActionButton/FloatingActionButton.stories.tsx +15 -0
  132. package/stories/atoms/buttons/FloatingActionButton/FloatingActionButton.tsx +22 -0
  133. package/stories/atoms/buttons/FloatingActionButton/index.tsx +3 -0
  134. package/stories/atoms/buttons/index.ts +4 -0
  135. package/stories/atoms/crumb/Crumb.stories.tsx +18 -0
  136. package/stories/atoms/crumb/Crumb.tsx +22 -0
  137. package/stories/atoms/crumb/index.tsx +3 -0
  138. package/stories/atoms/icons/DynamicIcon.stories.ts +43 -0
  139. package/stories/atoms/icons/DynamicIcon.tsx +90 -0
  140. package/stories/atoms/icons/IconWithShadow.stories.ts +43 -0
  141. package/stories/atoms/icons/IconWithShadow.tsx +16 -0
  142. package/stories/atoms/icons/TablerIcon.tsx +22 -0
  143. package/stories/atoms/icons/index.tsx +14 -0
  144. package/stories/atoms/icons/tablerIconNames.ts +4336 -0
  145. package/stories/atoms/index.ts +46 -0
  146. package/stories/atoms/loaders/Loader.stories.ts +15 -0
  147. package/stories/atoms/loaders/Loader.tsx +15 -0
  148. package/stories/atoms/loaders/NProgress/RadialProgress.stories.tsx +19 -0
  149. package/stories/atoms/loaders/NProgress/RadialProgress.tsx +76 -0
  150. package/stories/atoms/loaders/NProgress/index.ts +3 -0
  151. package/stories/atoms/loaders/index.ts +4 -0
  152. package/stories/index.ts +124 -0
  153. package/stories/layouts/CardLayout/CardLayout.stories.tsx +18 -0
  154. package/stories/layouts/CardLayout/CardLayout.tsx +22 -0
  155. package/stories/layouts/CardLayout/index.tsx +3 -0
  156. package/stories/layouts/ModalLayout/ModalLayout.stories.tsx +18 -0
  157. package/stories/layouts/ModalLayout/ModalLayout.tsx +22 -0
  158. package/stories/layouts/ModalLayout/index.tsx +3 -0
  159. package/stories/layouts/index.ts +0 -0
  160. package/stories/molecules/index.ts +35 -0
  161. package/stories/molecules/inputs/InputField/InputField.stories.tsx +29 -0
  162. package/stories/molecules/inputs/InputField/InputField.tsx +88 -0
  163. package/stories/molecules/inputs/InputField/index.tsx +3 -0
  164. package/stories/molecules/inputs/InputLabel/InputLabel.stories.tsx +19 -0
  165. package/stories/molecules/inputs/InputLabel/InputLabel.tsx +45 -0
  166. package/stories/molecules/inputs/InputLabel/index.tsx +3 -0
  167. package/stories/molecules/inputs/NestedInputButton/NestedInputButton.stories.tsx +52 -0
  168. package/stories/molecules/inputs/NestedInputButton/NestedInputButton.tsx +64 -0
  169. package/stories/molecules/inputs/NestedInputButton/index.tsx +3 -0
  170. package/stories/molecules/inputs/checkbox/Checkbox.stories.ts +23 -0
  171. package/stories/molecules/inputs/checkbox/Checkbox.tsx +99 -0
  172. package/stories/molecules/inputs/checkbox/index.ts +3 -0
  173. package/stories/molecules/inputs/combobox/ComboBox.stories.ts +41 -0
  174. package/stories/molecules/inputs/combobox/ComboBox.tsx +194 -0
  175. package/stories/molecules/inputs/combobox/index.ts +3 -0
  176. package/stories/molecules/inputs/index.ts +24 -0
  177. package/stories/molecules/inputs/radio/Radio.stories.ts +27 -0
  178. package/stories/molecules/inputs/radio/Radio.tsx +92 -0
  179. package/stories/molecules/inputs/radio/index.ts +3 -0
  180. package/stories/molecules/inputs/select/Select.stories.ts +23 -0
  181. package/stories/molecules/inputs/select/Select.tsx +100 -0
  182. package/stories/molecules/inputs/select/index.ts +3 -0
  183. package/stories/molecules/inputs/textArea/TextArea.stories.ts +20 -0
  184. package/stories/molecules/inputs/textArea/TextArea.tsx +67 -0
  185. package/stories/molecules/inputs/textArea/index.ts +3 -0
  186. package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.stories.tsx +119 -0
  187. package/stories/molecules/inputs/toggleSwitch/ToggleSwitch.tsx +75 -0
  188. package/stories/molecules/inputs/toggleSwitch/index.ts +3 -0
  189. package/stories/molecules/tabs/Tabs.stories.tsx +18 -0
  190. package/stories/molecules/tabs/Tabs.tsx +22 -0
  191. package/stories/molecules/tabs/index.tsx +3 -0
  192. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.stories.tsx +21 -0
  193. package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +60 -0
  194. package/stories/organisms/AnimatedLabelInput/index.tsx +3 -0
  195. package/stories/organisms/ButtonDropdown/ButtonDropdown.stories.tsx +118 -0
  196. package/stories/organisms/ButtonDropdown/ButtonDropdown.tsx +81 -0
  197. package/stories/organisms/ButtonDropdown/index.tsx +3 -0
  198. package/stories/organisms/DropdownComponent/Dropdown.stories.tsx +49 -0
  199. package/stories/organisms/DropdownComponent/Dropdown.test.tsx +0 -0
  200. package/stories/organisms/DropdownComponent/DropdownComponent.tsx +269 -0
  201. package/stories/organisms/DropdownComponent/dropdownItems.ts +101 -0
  202. package/stories/organisms/DropdownComponent/index.ts +4 -0
  203. package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.stories.tsx +76 -0
  204. package/stories/organisms/EmptySectionPlaceholder/EmptySectionPlaceholder.tsx +52 -0
  205. package/stories/organisms/EmptySectionPlaceholder/index.tsx +3 -0
  206. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.stories.tsx +29 -0
  207. package/stories/organisms/FormInputWithAddons/FormInputWithAddons.tsx +140 -0
  208. package/stories/organisms/FormInputWithAddons/index.tsx +3 -0
  209. package/stories/organisms/index.ts +16 -0
  210. package/tailwind.config.js +165 -36
  211. package/tsconfig.json +27 -21
  212. package/tsconfig.lib.json +19 -0
  213. package/utils/types.d.ts +2 -0
  214. package/utils/types.ts +3 -0
  215. package/utils/useId.d.ts +1 -0
  216. package/utils/useId.tsx +16 -0
  217. package/.babelrc +0 -14
  218. package/.editorconfig +0 -9
  219. package/.eslintrc +0 -13
  220. package/.github/workflows/test.yml +0 -27
  221. package/.storybook/main.js +0 -17
  222. package/.storybook/manager.js +0 -6
  223. package/.storybook/plenumTheme.js +0 -8
  224. package/.storybook/preview.js +0 -44
  225. package/_templates/component/new/component.ejs.t +0 -18
  226. package/_templates/component/new/component.stories.ejs.t +0 -21
  227. package/_templates/component/new/component.test.ejs.t +0 -15
  228. package/_templates/component/new/index.ejs.t +0 -6
  229. package/_templates/component/new/prompt.js +0 -7
  230. package/jest.config.js +0 -8
  231. package/lib/common/brandCfg.d.ts +0 -3
  232. package/lib/common/index.d.ts +0 -3
  233. package/lib/common/storyCfg.d.ts +0 -5
  234. package/lib/components/Avatar/Avatar.stories.d.ts +0 -6
  235. package/lib/components/Avatar/Avatar.test.d.ts +0 -1
  236. package/lib/components/Avatar/index.d.ts +0 -1
  237. package/lib/components/Button/Button.d.ts +0 -55
  238. package/lib/components/Button/Button.stories.d.ts +0 -12
  239. package/lib/components/Button/Button.test.d.ts +0 -1
  240. package/lib/components/Button/index.d.ts +0 -1
  241. package/lib/components/ButtonDropdown/ButtonDropdown.d.ts +0 -12
  242. package/lib/components/ButtonDropdown/ButtonDropdown.stories.d.ts +0 -9
  243. package/lib/components/ButtonDropdown/index.d.ts +0 -1
  244. package/lib/components/Combobox/Combobox.stories.d.ts +0 -14
  245. package/lib/components/Combobox/Combobox.test.d.ts +0 -1
  246. package/lib/components/Combobox/index.d.ts +0 -1
  247. package/lib/components/Dropdown/Dropdown.stories.d.ts +0 -8
  248. package/lib/components/Dropdown/Dropdown.test.d.ts +0 -1
  249. package/lib/components/Dropdown/data.d.ts +0 -3
  250. package/lib/components/Dropdown/index.d.ts +0 -1
  251. package/lib/components/DynamicIcons/DynamicIcons.stories.d.ts +0 -9
  252. package/lib/components/DynamicIcons/index.d.ts +0 -3
  253. package/lib/components/DynamicIcons/tablerIconNames.d.ts +0 -2
  254. package/lib/components/Forms/BaseField/BaseField.d.ts +0 -34
  255. package/lib/components/Forms/BaseField/BaseField.stories.d.ts +0 -6
  256. package/lib/components/Forms/BaseField/BaseField.test.d.ts +0 -1
  257. package/lib/components/Forms/BaseField/index.d.ts +0 -1
  258. package/lib/components/Forms/Checkbox/Checkbox.stories.d.ts +0 -14
  259. package/lib/components/Forms/Checkbox/Checkbox.test.d.ts +0 -1
  260. package/lib/components/Forms/Checkbox/index.d.ts +0 -1
  261. package/lib/components/Forms/InputCounter/InputCounter.d.ts +0 -9
  262. package/lib/components/Forms/InputCounter/InputCounter.stories.d.ts +0 -6
  263. package/lib/components/Forms/InputCounter/InputCounter.test.d.ts +0 -1
  264. package/lib/components/Forms/InputCounter/index.d.ts +0 -1
  265. package/lib/components/Forms/InputLabel/InputLabel.stories.d.ts +0 -6
  266. package/lib/components/Forms/InputLabel/InputLabel.test.d.ts +0 -1
  267. package/lib/components/Forms/InputLabel/index.d.ts +0 -1
  268. package/lib/components/Forms/Radio/Radio.stories.d.ts +0 -12
  269. package/lib/components/Forms/Radio/Radio.test.d.ts +0 -1
  270. package/lib/components/Forms/Radio/index.d.ts +0 -1
  271. package/lib/components/Forms/Select/Select.stories.d.ts +0 -11
  272. package/lib/components/Forms/Select/Select.test.d.ts +0 -1
  273. package/lib/components/Forms/Select/index.d.ts +0 -1
  274. package/lib/components/Forms/TextInput/TextInput.d.ts +0 -39
  275. package/lib/components/Forms/TextInput/TextInput.stories.d.ts +0 -12
  276. package/lib/components/Forms/TextInput/index.d.ts +0 -1
  277. package/lib/components/Forms/TextInputAddon/InputCta/InputCta.d.ts +0 -16
  278. package/lib/components/Forms/TextInputAddon/InputCta/InputCta.stories.d.ts +0 -6
  279. package/lib/components/Forms/TextInputAddon/InputCta/InputCta.test.d.ts +0 -1
  280. package/lib/components/Forms/TextInputAddon/InputCta/index.d.ts +0 -1
  281. package/lib/components/Forms/TextInputAddon/TextInputAddon.d.ts +0 -54
  282. package/lib/components/Forms/TextInputAddon/TextInputAddon.stories.d.ts +0 -13
  283. package/lib/components/Forms/TextInputAddon/index.d.ts +0 -1
  284. package/lib/components/Forms/TextInputSelect/InputSelect/InputSelect.d.ts +0 -13
  285. package/lib/components/Forms/TextInputSelect/InputSelect/InputSelect.stories.d.ts +0 -6
  286. package/lib/components/Forms/TextInputSelect/InputSelect/InputSelect.test.d.ts +0 -1
  287. package/lib/components/Forms/TextInputSelect/InputSelect/index.d.ts +0 -1
  288. package/lib/components/Forms/TextInputSelect/TextInputSelect.d.ts +0 -48
  289. package/lib/components/Forms/TextInputSelect/TextInputSelect.stories.d.ts +0 -8
  290. package/lib/components/Forms/TextInputSelect/index.d.ts +0 -1
  291. package/lib/components/Forms/Textarea/Textarea.d.ts +0 -32
  292. package/lib/components/Forms/Textarea/Textarea.stories.d.ts +0 -12
  293. package/lib/components/Forms/Textarea/Textarea.test.d.ts +0 -1
  294. package/lib/components/Forms/Textarea/index.d.ts +0 -1
  295. package/lib/components/ToggleSwitch/ToggleSwitch.d.ts +0 -28
  296. package/lib/components/ToggleSwitch/ToggleSwitch.stories.d.ts +0 -21
  297. package/lib/components/ToggleSwitch/ToggleSwitch.test.d.ts +0 -1
  298. package/lib/components/ToggleSwitch/index.d.ts +0 -1
  299. package/lib/components/TreeView/TreeView.d.ts +0 -36
  300. package/lib/components/TreeView/TreeView.stories.d.ts +0 -6
  301. package/lib/components/TreeView/TreeView.test.d.ts +0 -1
  302. package/lib/components/TreeView/index.d.ts +0 -1
  303. package/lib/components/TreeView V1/TreeItem/TreeItem.d.ts +0 -16
  304. package/lib/components/TreeView V1/TreeItem/TreeItem.stories.d.ts +0 -9
  305. package/lib/components/TreeView V1/TreeItem/TreeItem.test.d.ts +0 -1
  306. package/lib/components/TreeView V1/TreeItem/index.d.ts +0 -1
  307. package/lib/components/TreeView V1/TreeView.d.ts +0 -6
  308. package/lib/components/TreeView V1/TreeView.stories.d.ts +0 -6
  309. package/lib/components/TreeView V1/TreeView.test.d.ts +0 -1
  310. package/lib/components/TreeView V1/context.d.ts +0 -9
  311. package/lib/components/TreeView V1/index.d.ts +0 -1
  312. package/lib/components/TreeView V1/sampleData.d.ts +0 -71
  313. package/lib/components/TreeView V1/types/tree.types.d.ts +0 -21
  314. package/lib/index.d.ts +0 -13
  315. package/lib/index.esm.js +0 -105883
  316. package/lib/index.esm.js.map +0 -1
  317. package/lib/index.js +0 -105922
  318. package/lib/index.js.map +0 -1
  319. package/lib/page/TreeNavigation/CustomNode/CustomNode.d.ts +0 -3
  320. package/lib/page/TreeNavigation/CustomNode/CustomNode.test.d.ts +0 -1
  321. package/lib/page/TreeNavigation/CustomNode/index.d.ts +0 -1
  322. package/lib/page/TreeNavigation/TreeNavigation.d.ts +0 -8
  323. package/lib/page/TreeNavigation/TreeNavigation.stories.d.ts +0 -6
  324. package/lib/page/TreeNavigation/hooks/useFetch.d.ts +0 -14
  325. package/lib/page/TreeNavigation/index.d.ts +0 -1
  326. package/lib/tailwind.css +0 -2023
  327. package/lib/util/DynamicIcons.d.ts +0 -10
  328. package/lib/util/Loader.d.ts +0 -5
  329. package/lib/util/types.d.ts +0 -2
  330. package/lib/util/useID.d.ts +0 -1
  331. package/rollup.config.js +0 -37
  332. package/setupTests.js +0 -6
  333. package/styleMock.js +0 -2
@@ -0,0 +1,140 @@
1
+ import { DynamicIcon, IDynamicIconProps } from "@/stories/atoms/icons"
2
+ import React, { useLayoutEffect, useRef, useState } from "react"
3
+ import { default as cn } from "classnames"
4
+ import InputField, { IInputFieldProps, AcceptedInputTypes } from "@/stories/molecules/inputs/InputField"
5
+
6
+ export interface IFormInputWithAddonsProps extends Omit<IInputFieldProps, "type"> {
7
+ leadIcon?: IDynamicIconProps
8
+ leadLabel?: string
9
+ trailIcon?: IDynamicIconProps
10
+ trailLabel?: string
11
+ iconOutlined?: boolean
12
+ /** @param addonOffset An extra buffer zone in pixels between the trailing/leading icon or label and search input -- Default is 24 */
13
+ addonOffset?: number
14
+ topLabel?: string
15
+ labelClass?: string
16
+ containerClassName?: string
17
+ description?: string
18
+ leadIconClassNames?: string
19
+ customIconClass?: string
20
+ type: AcceptedInputTypes
21
+ }
22
+
23
+ const FormInputWithAddons: React.FC<IFormInputWithAddonsProps> = ({
24
+ handleChange,
25
+ value,
26
+ name,
27
+ id,
28
+ placeholder,
29
+ className,
30
+ containerClassName,
31
+ leadIcon,
32
+ leadLabel,
33
+ trailIcon,
34
+ trailLabel,
35
+ topLabel,
36
+ labelClass,
37
+ isDisabled,
38
+ isReadonly,
39
+ isError,
40
+ addonOffset = 24,
41
+ iconOutlined = false,
42
+ description,
43
+ leadIconClassNames,
44
+ customIconClass,
45
+ type,
46
+ ...rest
47
+ }) => {
48
+ // #region logic to determine the width of the lead and or trailing labels in order to offset the input padding by the appropriate amount.
49
+ const leadLabelRef = useRef<HTMLLabelElement>(null)
50
+ const trailLabelRef = useRef<HTMLLabelElement>(null)
51
+ const [leadLabelWidth, setLeadLabelWidth] = useState<number>(0)
52
+ const [trailLabelWidth, setTrailLabelWidth] = useState<number>(0)
53
+ useLayoutEffect(() => {
54
+ setLeadLabelWidth(leadLabelRef.current?.clientWidth || 0)
55
+ setTrailLabelWidth(trailLabelRef.current?.clientWidth || 0)
56
+ }, [])
57
+ // #endregion
58
+
59
+ return (
60
+ <div className={cn("group flex flex-col", containerClassName)}>
61
+ {!leadLabel && !trailLabel && topLabel && (
62
+ <label htmlFor={id} className={cn("flex items-center text-sm font-medium text-gray-600", labelClass)}>
63
+ {topLabel}
64
+ </label>
65
+ )}
66
+ {description && <div className="mb-2 text-sm text-gray-500">{description}</div>}
67
+ <div className="relative flex-grow">
68
+ {(leadLabel || leadIcon) && (
69
+ <label
70
+ ref={leadLabelRef}
71
+ htmlFor={id}
72
+ className={cn(
73
+ "absolute top-0 bottom-0 left-3 flex items-center justify-center text-sm text-gray-500",
74
+ labelClass
75
+ )}
76
+ >
77
+ {leadIcon && (
78
+ <span>
79
+ <DynamicIcon
80
+ {...{
81
+ ...leadIcon,
82
+ className: cn("h-5 w-5 text-gray-400", leadIconClassNames, customIconClass),
83
+ outline: iconOutlined
84
+ }}
85
+ />
86
+ </span>
87
+ )}
88
+ {leadLabel && leadLabel}
89
+ </label>
90
+ )}
91
+ <InputField
92
+ {...{
93
+ ...rest,
94
+ handleChange,
95
+ value,
96
+ id,
97
+ name,
98
+ type,
99
+ autoComplete: "off",
100
+ disabled: isDisabled,
101
+ placeholder: placeholder || "",
102
+ isReadonly,
103
+ isError,
104
+ className,
105
+ // add padding to accomodate inner labels and icons
106
+ style: {
107
+ paddingRight: `${trailLabelWidth + addonOffset}px`,
108
+ paddingLeft: `${leadLabelWidth + addonOffset}px`
109
+ }
110
+ }}
111
+ />
112
+ {(trailLabel || trailIcon) && (
113
+ <label
114
+ ref={trailLabelRef}
115
+ htmlFor={id}
116
+ className={cn(
117
+ "right absolute top-0 bottom-0 right-3 flex items-center justify-center text-sm !text-gray-500 ",
118
+ labelClass
119
+ )}
120
+ >
121
+ {trailIcon && (
122
+ <span>
123
+ <DynamicIcon
124
+ {...{
125
+ ...trailIcon,
126
+ className: cn("h-5 w-5 text-gray-400", customIconClass),
127
+ outline: iconOutlined
128
+ }}
129
+ />
130
+ </span>
131
+ )}
132
+ {trailLabel && trailLabel}
133
+ </label>
134
+ )}
135
+ </div>
136
+ </div>
137
+ )
138
+ }
139
+
140
+ export default FormInputWithAddons
@@ -0,0 +1,3 @@
1
+ import FormInputWithAddons, { IFormInputWithAddonsProps } from "./FormInputWithAddons"
2
+ export type { IFormInputWithAddonsProps }
3
+ export default FormInputWithAddons
@@ -0,0 +1,16 @@
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
+
7
+ export type {
8
+ IAnimatedLabelInputProps,
9
+ IButtonDropdownProps,
10
+ IDropdownClassnames,
11
+ IDropdownProps,
12
+ IEmptySectionPlaceholderProps,
13
+ IItemProp,
14
+ IFormInputWithAddonsProps
15
+ }
16
+ export { AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons }
@@ -1,11 +1,42 @@
1
- // eslint-disable-next-line
1
+ /** @type {import('tailwindcss').Config} */
2
2
  module.exports = {
3
- mode: 'jit',
4
- content: ['./src/**/*.{js,ts,jsx,tsx}', './.storybook/*.{js,ts,jsx,tsx}'],
5
- darkMode: false, // or 'media' or 'class'
3
+ mode: "development",
4
+
5
+ content: [
6
+ "./app/**/*.{js,ts,jsx,tsx}",
7
+ "./pages/**/*.{js,ts,jsx,tsx}",
8
+ "./components/**/*/.{js,ts,jsx,tsx}",
9
+ "./stories/**/*.{js,ts,jsx,tsx}",
10
+ "./.storybook/*.{js,ts,jsx,tsx}"
11
+ ],
12
+ safelist: [
13
+ "text-xs",
14
+ "text-sm",
15
+ "text-base",
16
+ "text-lg",
17
+ "text-xl",
18
+ "text-2xl",
19
+ "text-3xl",
20
+ "text-4xl",
21
+ "text-5xl",
22
+ "text-6xl",
23
+ "font-thin",
24
+ "font-extralight",
25
+ "font-light",
26
+ "font-normal",
27
+ "font-medium",
28
+ "font-semibold",
29
+ "font-bold",
30
+ "font-extrabold",
31
+ "font-black",
32
+ {
33
+ pattern:
34
+ /^(bg|text|border(-(t|r|b|l))?)-((gray)|(red)|(orange)|(yellow)|(blue)|(light-blue)|(cyan)|(green)|(purple)|(teal)|(violet)|(pink)|(rose))-(50|100|200|300|400|500|600|700|800|900)|(mx|my|m|px|py|p)-\d.$/
35
+ }
36
+ ],
6
37
  theme: {
7
38
  fontFamily: {
8
- muli: ['Muli', 'sans-serif']
39
+ mulish: ["Mulish", "sans-serif"]
9
40
  },
10
41
  extend: {
11
42
  gridTemplateColumns: {
@@ -17,47 +48,145 @@ module.exports = {
17
48
  header: "max-content 1fr 1fr"
18
49
  },
19
50
  colors: {
20
- 'purple-50': '#EEE6FB',
21
- 'purple-100': '#DECCF6',
22
- 'purple-200': '#CDB3F2',
23
- 'purple-300': '#BC99EE',
24
- 'purple-400': '#9B66E5',
25
- 'purple-500': '#7933DD',
26
- 'purple-600': '#692CD8',
27
- 'purple-700': '#5800D4',
28
- 'purple-800': '#4F00BF',
29
- 'purple-900': '#4600AA',
30
-
51
+ "gray-50": "#F9FAFB",
52
+ "gray-100": "#F3F4F6",
53
+ "gray-200": "#E5E7EB",
54
+ "gray-300": "#D1D5DB",
55
+ "gray-400": "#9CA3AF",
31
56
  "gray-500": "#6B7280",
57
+ "gray-600": "#4B5563",
32
58
  "gray-700": "#374151",
59
+ "gray-800": "#1F2937",
33
60
  "gray-900": "#111827",
34
61
 
35
- "green-50": "#ECFDF5",
36
- "green-100": "#D1FAE5",
37
- "green-200": "#A7F3D0",
38
- "green-300": "#6EE7B7",
39
- "green-400": "#34D399",
40
- "green-500": "#10B981",
41
- "green-600": "#059669",
42
- "green-700": "#047857",
43
- "green-800": "#065F46",
44
- "green-900": "#064E3B",
62
+ "red-50": "#FEF2F2",
63
+ "red-100": "#FEE2E2",
64
+ "red-200": "#FECACA",
65
+ "red-300": "#FCA5A5",
66
+ "red-400": "#F87171",
67
+ "red-500": "#EF4444",
68
+ "red-600": "#DC2626",
69
+ "red-700": "#B91C1C",
70
+ "red-800": "#991B1B",
71
+ "red-900": "#7F1D1D",
72
+
73
+ "orange-50": "#FFF7ED",
74
+ "orange-100": "#FFEDD5",
75
+ "orange-200": "#FED7AA",
76
+ "orange-300": "#FDBA74",
77
+ "orange-400": "#FB923C",
78
+ "orange-500": "#F97316",
79
+ "orange-600": "#EA580C",
80
+ "orange-700": "#C2410C",
81
+ "orange-800": "#9A3412",
82
+ "orange-900": "#7C2D12",
45
83
 
84
+ "yellow-50": "#FFFAEA",
46
85
  "yellow-100": "#FFF5D4",
47
- "yellow-400": "#FFDB69",
86
+ "yellow-200": "#FFEAA9",
87
+ "yellow-300": "#FFE07E",
88
+ "yellow-400": "#FFD553",
89
+ "yellow-500": "#FFCB28",
90
+ "yellow-600": "#E6B724",
91
+ "yellow-700": "#B38E1C",
92
+ "yellow-800": "#997A18",
93
+ "yellow-900": "#806614",
94
+
95
+ "teal-50": "#F0FDFA",
96
+ "teal-100": "#CCFBF1",
97
+ "teal-200": "#99F6E4",
98
+ "teal-300": "#5EEAD4",
99
+ "teal-400": "#2DD4BF",
100
+ "teal-500": "#14B8A6",
101
+ "teal-600": "#0D9488",
102
+ "teal-700": "#0F766E",
103
+ "teal-800": "#115E59",
104
+ "teal-900": "#134E4A",
105
+
106
+ "cyan-50": "#CFFAFE",
107
+ "cyan-100": "#A5F3FC",
108
+ "cyan-200": "#67E8F9",
109
+ "cyan-300": "#22D3EE",
110
+ "cyan-400": "#ECFEFF",
111
+ "cyan-500": "#06B6D4",
112
+ "cyan-600": "#0891B2",
113
+ "cyan-700": "#0E7490",
114
+ "cyan-800": "#155E75",
115
+ "cyan-900": "#164E63",
116
+
117
+ "light-blue-50": "#E0F2FE",
118
+ "light-blue-100": "#BAE6FD",
119
+ "light-blue-200": "#7DD3FC",
120
+ "light-blue-300": "#38BDF8",
121
+ "light-blue-400": "#F0F9FF",
122
+ "light-blue-500": "#0EA5E9",
123
+ "light-blue-600": "#0284C7",
124
+ "light-blue-700": "#0369A1",
125
+ "light-blue-800": "#075985",
126
+ "light-blue-900": "#0C4A6E",
48
127
 
49
- "pink-100": "#fce7f3",
50
- "pink-400": "#f472b6"
128
+ "blue-50": "#DBEAFE",
129
+ "blue-100": "#BFDBFE",
130
+ "blue-200": "#93C5FD",
131
+ "blue-300": "#60A5FA",
132
+ "blue-400": "#EFF6FF",
133
+ "blue-500": "#3B82F6",
134
+ "blue-600": "#2563EB",
135
+ "blue-700": "#1D4ED8",
136
+ "blue-800": "#1E40AF",
137
+ "blue-900": "#1E3A8A",
138
+
139
+ "purple-50": "#EEE6FB",
140
+ "purple-100": "#DECCF6",
141
+ "purple-200": "#CDB3F2",
142
+ "purple-300": "#BC99EE",
143
+ "purple-400": "#9B66E5",
144
+ "purple-500": "#7933DD",
145
+ "purple-600": "#691AD8",
146
+ "purple-700": "#5800D4",
147
+ "purple-800": "#4F00BF",
148
+ "purple-900": "#4600AA",
149
+
150
+ "violet-50": "#EDE9FE",
151
+ "violet-100": "#DDD6FE",
152
+ "violet-200": "#C4B5FD",
153
+ "violet-300": "#A78BFA",
154
+ "violet-400": "#F5F3FF",
155
+ "violet-500": "#8B5CF6",
156
+ "violet-600": "#7C3AED",
157
+ "violet-700": "#6D28D9",
158
+ "violet-800": "#5B21B6",
159
+ "violet-900": "#4C1D95",
160
+
161
+ "pink-50": "#FCE7F3",
162
+ "pink-100": "#FCE7F3",
163
+ "pink-200": "#FBCFE8",
164
+ "pink-400": "#F472B6",
165
+ "pink-500": "#EC4899",
166
+ "pink-600": "#DB2777",
167
+ "pink-700": "#BE185D",
168
+ "pink-800": "#9D174D",
169
+ "pink-900": "#831843",
170
+
171
+ "rose-50": "#FFE4E6",
172
+ "rose-100": "#FECDD3",
173
+ "rose-200": "#FDA4AF",
174
+ "rose-300": "#FB7185",
175
+ "rose-400": "#FFF1F2",
176
+ "rose-500": "#F43F5E",
177
+ "rose-600": "#E11D48",
178
+ "rose-700": "#BE123C",
179
+ "rose-800": "#9F1239",
180
+ "rose-900": "#881337"
51
181
  },
52
182
  fontWeight: {
53
183
  medium: 600
54
184
  }
55
185
  }
56
186
  },
57
- variants: {
58
- extend: {
59
- display: ["group-hover"]
60
- }
61
- },
62
- plugins: [require('@tailwindcss/forms')]
63
- };
187
+ plugins: [
188
+ require("@tailwindcss/forms"),
189
+ require("@tailwindcss/typography"),
190
+ require("@headlessui/tailwindcss")
191
+ ]
192
+ }
package/tsconfig.json CHANGED
@@ -1,23 +1,29 @@
1
1
  {
2
- "compilerOptions": {
3
- "target": "es5",
4
- "outDir": "lib",
5
- "lib": ["dom", "dom.iterable", "esnext", "es6"],
6
- "declaration": true,
7
- "declarationDir": "lib",
8
- "allowJs": true,
9
- "skipLibCheck": true,
10
- "esModuleInterop": true,
11
- "allowSyntheticDefaultImports": true,
12
- "strict": true,
13
- "forceConsistentCasingInFileNames": true,
14
- "module": "esnext",
15
- "moduleResolution": "node",
16
- "resolveJsonModule": true,
17
- "isolatedModules": true,
18
- "noEmit": true,
19
- "jsx": "react"
20
- },
21
- "include": ["src"],
22
- "exclude": ["node_modules", "lib"]
2
+ "compilerOptions": {
3
+ "target": "es5",
4
+ "lib": ["dom", "dom.iterable", "esnext"],
5
+ "allowJs": true,
6
+ "skipLibCheck": true,
7
+ "strict": true,
8
+ "forceConsistentCasingInFileNames": true,
9
+ "noEmit": true,
10
+ "esModuleInterop": true,
11
+ "module": "esnext",
12
+ "moduleResolution": "node",
13
+ "resolveJsonModule": true,
14
+ "isolatedModules": true,
15
+ "jsx": "preserve",
16
+ "incremental": true,
17
+ "plugins": [
18
+ {
19
+ "name": "next"
20
+ }
21
+ ],
22
+ "baseUrl": ".",
23
+ "paths": {
24
+ "@/*": ["./*"]
25
+ }
26
+ },
27
+ "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"],
28
+ "exclude": ["node_modules"]
23
29
  }
@@ -0,0 +1,19 @@
1
+ {
2
+ "compilerOptions": {
3
+ "declaration": true,
4
+ "declarationDir": "./dist/types",
5
+ "outDir": "./dist",
6
+ "module": "esnext",
7
+ "rootDir": "./",
8
+ "target": "es2021",
9
+ "esModuleInterop": true,
10
+ "moduleResolution": "node",
11
+ "baseUrl": ".",
12
+ "paths": {
13
+ "@/*": ["./*"]
14
+ },
15
+ "jsx": "react-jsx"
16
+ },
17
+ "include": ["stories/**/*.ts", "utils/**/*.ts"],
18
+ "exclude": ["node_modules"]
19
+ }
@@ -0,0 +1,2 @@
1
+ import React from "react";
2
+ export type ClassNameWithAutocomplete = React.ComponentPropsWithoutRef<"div">["className"];
package/utils/types.ts ADDED
@@ -0,0 +1,3 @@
1
+ import { HTMLAttributes } from "react"
2
+ import React from "react"
3
+ export type ClassNameWithAutocomplete = React.ComponentPropsWithoutRef<"div">["className"]
@@ -0,0 +1 @@
1
+ export declare const useId: () => string;
@@ -0,0 +1,16 @@
1
+ import { useLayoutEffect, useState } from "react"
2
+
3
+ let id = 0
4
+ function generateId() {
5
+ return ++id
6
+ }
7
+
8
+ export const useId = () => {
9
+ const [id, setId] = useState(generateId)
10
+
11
+ useLayoutEffect(() => {
12
+ if (id === null) setId(generateId())
13
+ }, [id])
14
+
15
+ return id != null ? "" + id : undefined
16
+ }
package/.babelrc DELETED
@@ -1,14 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "targets": {
7
- "node": "current"
8
- }
9
- }
10
- ],
11
- ["@babel/preset-react"],
12
- ["@babel/preset-typescript"]
13
- ]
14
- }
package/.editorconfig DELETED
@@ -1,9 +0,0 @@
1
- root = true
2
-
3
- [*]
4
- indent_style = space
5
- indent_size = 4
6
- charset = utf-8
7
- trim_trailing_whitespace = true
8
- insert_final_newline = true
9
- end_of_line = lf
package/.eslintrc DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "root": true,
3
- "parser": "@typescript-eslint/parser",
4
- "plugins": [
5
- "@typescript-eslint"
6
- ],
7
- "extends": [
8
- "eslint:recommended",
9
- "plugin:@typescript-eslint/eslint-recommended",
10
- "plugin:@typescript-eslint/recommended",
11
- "prettier"
12
- ]
13
- }
@@ -1,27 +0,0 @@
1
- # This workflow will do a clean install of node dependencies run tests across different on of node 12.x
2
-
3
- name: Component test CI
4
-
5
- on:
6
- pull_request:
7
- types:
8
- - opened
9
- branches:
10
- - 'main'
11
-
12
- jobs:
13
- build:
14
- runs-on: ubuntu-latest
15
- strategy:
16
- matrix:
17
- node-version: [16.x]
18
- # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19
- steps:
20
- - uses: actions/checkout@v2
21
- - name: Use Node.js ${{ matrix.node-version }}
22
- uses: actions/setup-node@v2
23
- with:
24
- node-version: ${{ matrix.node-version }}
25
- - run: npm install
26
- - run: npm test
27
-
@@ -1,17 +0,0 @@
1
- module.exports = {
2
- stories: ['../src/**/*.stories.tsx'],
3
- addons: [
4
- '@storybook/addon-links',
5
- '@storybook/addon-essentials',
6
- '@storybook/addon-a11y',
7
- 'storybook-addon-mock/register',
8
- {
9
- name: '@storybook/addon-postcss',
10
- options: {
11
- postcssLoaderOptions: {
12
- implementation: require('postcss')
13
- }
14
- }
15
- }
16
- ]
17
- };
@@ -1,6 +0,0 @@
1
- import { addons } from '@storybook/addons';
2
- import plenumTheme from './plenumTheme';
3
-
4
- addons.setConfig({
5
- theme: plenumTheme,
6
- });
@@ -1,8 +0,0 @@
1
- import { create } from '@storybook/theming';
2
-
3
- export default create({
4
- base: 'light',
5
- brandTitle: 'Agility Plenum UI',
6
- brandUrl: 'https://plenum-ui.vercel.app/',
7
- brandImage: 'https://cdn.agilitycms.com/content-manager/images/logos/agility-logo-storybook-350.png'
8
- });
@@ -1,44 +0,0 @@
1
-
2
- import React from 'react';
3
- import { addDecorator } from '@storybook/react';
4
- //import { withInfo } from '@storybook/addon-info';
5
-
6
- import Layout from './Layout';
7
-
8
- addDecorator(storyFn => <Layout>{storyFn()}</Layout>);
9
- // addDecorator(withInfo({
10
- // inline: true,
11
- // propTablesExclude: [Layout]
12
- // }));
13
-
14
- export const parameters = {
15
- actions: { argTypesRegex: "^on[A-Z].*" },
16
- controls: {
17
- matchers: {
18
- color: /(background|color)$/i,
19
- date: /Date$/,
20
- },
21
- },
22
- layout: 'centered',
23
- backgrounds: {
24
- default: 'agility white',
25
- values: [
26
- {
27
- name: 'agility white',
28
- value: '#ffffff',
29
- },
30
- {
31
- name: 'agility yellow',
32
- value: '#FFCB28',
33
- },
34
- {
35
- name: 'agility purple',
36
- value: '#4600A8',
37
- },
38
- {
39
- name: 'agility dark blue',
40
- value: '#2A3846',
41
- },
42
- ],
43
- },
44
- }
@@ -1,18 +0,0 @@
1
- ---
2
- to: src/components/<%= h.capitalize(name) %>/<%= h.capitalize(name) %>.tsx
3
- ---
4
- import React, { FC } from 'react';
5
- import { default as cn } from 'classnames';
6
-
7
- export interface <%= h.capitalize(name) %>Props {
8
- /** Prop comment */
9
- prop: string;
10
- }
11
-
12
- /** Comment */
13
- export const <%= h.capitalize(name) %>: FC<<%= h.capitalize(name) %>Props> = ({prop}: <%= h.capitalize(name) %>Props) => {
14
-
15
- return (
16
- <div><%= h.capitalize(name) %> component {prop}</div>
17
- );
18
- };