@gobolt/genesis 0.3.26 → 0.3.28

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 (370) hide show
  1. package/README.md +1 -1
  2. package/dist/bundle.css +1205 -0
  3. package/dist/components/Avatar/Avatar.d.ts +16 -0
  4. package/dist/components/Avatar/index.d.ts +2 -0
  5. package/dist/components/{TableWithControls/components/Tooltip → Avatar}/styles.d.ts +1 -1
  6. package/dist/components/Badge/index.d.ts +2 -2
  7. package/dist/components/Badge/styles.d.ts +3 -12
  8. package/dist/components/Breadcrumb/Breadcrumb.d.ts +7 -0
  9. package/dist/components/Breadcrumb/index.d.ts +4 -0
  10. package/dist/components/Breadcrumb/styles.d.ts +5 -0
  11. package/dist/components/Button/Button.d.ts +3 -3
  12. package/dist/components/Button/IconButton.d.ts +1 -1
  13. package/dist/components/Button/icon-button-styles.d.ts +1 -12
  14. package/dist/components/Button/index.d.ts +4 -4
  15. package/dist/components/Button/styles.d.ts +1 -16
  16. package/dist/components/Card/Card.d.ts +9 -0
  17. package/dist/components/Card/index.d.ts +2 -0
  18. package/dist/components/Card/styles.d.ts +6 -0
  19. package/dist/components/Chat/Chat.d.ts +18 -0
  20. package/dist/components/Chat/Message.d.ts +8 -0
  21. package/dist/components/Chat/index.d.ts +2 -0
  22. package/dist/components/Checkbox/Checkbox.d.ts +9 -0
  23. package/dist/components/Checkbox/index.d.ts +2 -0
  24. package/dist/components/Checkbox/styles.d.ts +10 -0
  25. package/dist/components/DatePicker/DatePicker.d.ts +4 -0
  26. package/dist/components/DatePicker/index.d.ts +2 -0
  27. package/dist/components/DateRangePicker/DateRangePicker.d.ts +4 -0
  28. package/dist/components/DateRangePicker/index.d.ts +2 -0
  29. package/dist/components/ErrorBoundary/ErrorBoundary.d.ts +19 -0
  30. package/dist/components/ErrorBoundary/index.d.ts +2 -0
  31. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.d.ts +8 -0
  32. package/dist/components/ErrorBoundaryFallback/index.d.ts +2 -0
  33. package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -0
  34. package/dist/components/Form/Form.d.ts +25 -0
  35. package/dist/components/Form/index.d.ts +2 -0
  36. package/dist/components/Form/styles.d.ts +2 -0
  37. package/dist/components/Glyph/custom/UnitNumber.d.ts +5 -0
  38. package/dist/components/Input/Input.d.ts +4 -4
  39. package/dist/components/Input/index.d.ts +2 -2
  40. package/dist/components/Input/styles.d.ts +1 -18
  41. package/dist/components/Insights/BarChart/BarChart.d.ts +31 -0
  42. package/dist/components/Insights/BarChart/index.d.ts +2 -0
  43. package/dist/components/Insights/BarChart/styles.d.ts +2 -0
  44. package/dist/components/Insights/DonutChart/DonutChart.d.ts +19 -0
  45. package/dist/components/Insights/DonutChart/index.d.ts +2 -0
  46. package/dist/components/Insights/DonutChart/styles.d.ts +2 -0
  47. package/dist/components/Insights/LineChart/LineChart.d.ts +23 -0
  48. package/dist/components/Insights/LineChart/index.d.ts +2 -0
  49. package/dist/components/Insights/LineChart/styles.d.ts +2 -0
  50. package/dist/components/Insights/common-settings.d.ts +75 -0
  51. package/dist/components/Insights/index.d.ts +6 -0
  52. package/dist/components/Layout/Content/Content.d.ts +10 -0
  53. package/dist/components/Layout/Content/index.d.ts +2 -0
  54. package/dist/components/Layout/Content/styles.d.ts +4 -0
  55. package/dist/components/Layout/Layout.d.ts +8 -0
  56. package/dist/components/Layout/index.d.ts +2 -0
  57. package/dist/components/Message/Message.d.ts +14 -0
  58. package/dist/components/Message/index.d.ts +2 -0
  59. package/dist/components/Message/styles.d.ts +3 -0
  60. package/dist/components/Notification/Notification.d.ts +17 -0
  61. package/dist/components/Notification/NotificationBadge/NotificationBadge.d.ts +6 -0
  62. package/dist/components/Notification/NotificationBadge/icons/ASN.d.ts +2 -0
  63. package/dist/components/Notification/NotificationBadge/icons/Appointment.d.ts +2 -0
  64. package/dist/components/Notification/NotificationBadge/icons/Inventory.d.ts +2 -0
  65. package/dist/components/Notification/NotificationBadge/icons/Parcel.d.ts +2 -0
  66. package/dist/components/Notification/NotificationBadge/icons/Product.d.ts +2 -0
  67. package/dist/components/Notification/NotificationBadge/icons/Route.d.ts +2 -0
  68. package/dist/components/Notification/NotificationBadge/icons/Shipment.d.ts +2 -0
  69. package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.d.ts +2 -0
  70. package/dist/components/Notification/NotificationBadge/icons/System.d.ts +2 -0
  71. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -0
  72. package/dist/components/Notification/NotificationRightChevron.d.ts +2 -0
  73. package/dist/components/Notification/index.d.ts +2 -0
  74. package/dist/components/Notification/styles.d.ts +5 -0
  75. package/dist/components/Popover/Popover.d.ts +10 -0
  76. package/dist/components/Popover/index.d.ts +2 -0
  77. package/dist/components/Popover/styles.d.ts +2 -0
  78. package/dist/components/Progress/Progress.d.ts +18 -0
  79. package/dist/components/Progress/Progress.util.d.ts +3 -0
  80. package/dist/components/Progress/ProgressText.d.ts +10 -0
  81. package/dist/components/Progress/index.d.ts +2 -0
  82. package/dist/components/Progress/styles.d.ts +4 -0
  83. package/dist/components/Radio/Radio.d.ts +10 -0
  84. package/dist/components/Radio/RadioGroup.d.ts +12 -0
  85. package/dist/components/Radio/index.d.ts +4 -0
  86. package/dist/components/Radio/states/RadioChecked.d.ts +2 -0
  87. package/dist/components/Radio/states/RadioCheckedDisabled.d.ts +2 -0
  88. package/dist/components/Radio/states/RadioCheckedFocussed.d.ts +2 -0
  89. package/dist/components/Radio/states/RadioCheckedHover.d.ts +2 -0
  90. package/dist/components/Radio/states/RadioUnchecked.d.ts +2 -0
  91. package/dist/components/Radio/states/RadioUncheckedDisabled.d.ts +2 -0
  92. package/dist/components/Radio/states/RadioUncheckedFocussed.d.ts +2 -0
  93. package/dist/components/Radio/states/RadioUncheckedHover.d.ts +2 -0
  94. package/dist/components/Row/Row.d.ts +13 -0
  95. package/dist/components/Row/RowActions/RowActions.d.ts +9 -0
  96. package/dist/components/Row/RowActions/styles.d.ts +1 -0
  97. package/dist/components/Row/RowLabelValue/RowLabelValue.d.ts +10 -0
  98. package/dist/components/Row/RowLabelValue/RowSkeleton.d.ts +3 -0
  99. package/dist/components/Row/RowLabelValue/styles.d.ts +5 -0
  100. package/dist/components/Row/index.d.ts +2 -0
  101. package/dist/components/Row/styles.d.ts +6 -0
  102. package/dist/components/SegmentedControls/SegmentedControls.d.ts +12 -0
  103. package/dist/components/SegmentedControls/index.d.ts +2 -0
  104. package/dist/components/SegmentedControls/styles.d.ts +3 -0
  105. package/dist/components/Select/Select.d.ts +4 -4
  106. package/dist/components/Select/SelectTrigger.d.ts +3 -3
  107. package/dist/components/Select/index.d.ts +2 -2
  108. package/dist/components/Shapes/Shapes.d.ts +6 -0
  109. package/dist/components/Shapes/index.d.ts +2 -0
  110. package/dist/components/Shapes/variants/Circle.d.ts +5 -0
  111. package/dist/components/Shapes/variants/Rectangle.d.ts +5 -0
  112. package/dist/components/Shapes/variants/Triangle.d.ts +5 -0
  113. package/dist/components/Switch/Switch.d.ts +9 -0
  114. package/dist/components/Switch/index.d.ts +2 -0
  115. package/dist/components/Switch/styles.d.ts +2 -0
  116. package/dist/components/Table/Table.d.ts +3 -4
  117. package/dist/components/Table/TableControls/CustomPagination.d.ts +2 -2
  118. package/dist/components/Table/TableControls/PaginationNumber.d.ts +1 -1
  119. package/dist/components/Table/TableControls/PrimaryTableControlsRow.d.ts +4 -2
  120. package/dist/components/Table/TableControls/SecondaryTableControlsRow.d.ts +1 -1
  121. package/dist/components/Table/TableControls/TableControls.d.ts +3 -3
  122. package/dist/components/Table/TableControls/index.d.ts +2 -2
  123. package/dist/components/Table/TablePagination.d.ts +2 -2
  124. package/dist/components/Table/__mocks__/table-mocks.d.ts +1 -1
  125. package/dist/components/Table/index.d.ts +6 -6
  126. package/dist/components/Table/styles.d.ts +3 -17
  127. package/dist/components/Table/useTable.d.ts +6 -2
  128. package/dist/components/TableWithControls/TableWithControls.d.ts +2 -2
  129. package/dist/components/TableWithControls/index.d.ts +3 -3
  130. package/dist/components/TableWithControls/useTableWithControls.d.ts +7 -5
  131. package/dist/components/Tabs/Tabs.d.ts +50 -0
  132. package/dist/components/Tabs/index.d.ts +2 -0
  133. package/dist/components/Tabs/styles.d.ts +3 -0
  134. package/dist/components/Tile/Tile.d.ts +10 -0
  135. package/dist/components/Tile/index.d.ts +2 -0
  136. package/dist/components/Tile/styles.d.ts +4 -0
  137. package/dist/components/Toast/Toast.d.ts +13 -0
  138. package/dist/components/Toast/index.d.ts +2 -0
  139. package/dist/components/Toast/styles.d.ts +3 -0
  140. package/dist/components/Tooltip/Tooltip.d.ts +6 -1
  141. package/dist/components/Tooltip/index.d.ts +2 -2
  142. package/dist/components/Tooltip/styles.d.ts +1 -14
  143. package/dist/components/Typography/Typography.d.ts +2 -2
  144. package/dist/components/Typography/index.d.ts +2 -2
  145. package/dist/components/Typography/styles.d.ts +3 -21
  146. package/dist/components/UtilityButton/UtilityButton.d.ts +1 -1
  147. package/dist/components/UtilityButton/index.d.ts +2 -2
  148. package/dist/components/index.d.ts +74 -7
  149. package/dist/index.cjs +84795 -0
  150. package/dist/index.d.ts +6 -10
  151. package/dist/index.js +84778 -9
  152. package/dist/providers/BreakpointProvider.d.ts +7 -0
  153. package/dist/providers/GenesisProvider.d.ts +7 -0
  154. package/dist/providers/ToastProvider.d.ts +12 -0
  155. package/dist/providers/index.d.ts +2 -0
  156. package/dist/providers/useGenesis.d.ts +7 -0
  157. package/dist/styles/global-styles.d.ts +1 -0
  158. package/dist/styles/theme/genesis-theme.d.ts +1 -79
  159. package/dist/styles/theme/index.d.ts +2 -2
  160. package/dist/types/index.d.ts +1 -0
  161. package/dist/utils/user-util.d.ts +2 -0
  162. package/package.json +25 -31
  163. package/dist/components/Badge/Badge.js +0 -51
  164. package/dist/components/Badge/index.js +0 -1
  165. package/dist/components/Badge/styles.js +0 -21
  166. package/dist/components/Button/Button.js +0 -36
  167. package/dist/components/Button/IconButton.js +0 -32
  168. package/dist/components/Button/__stories__/Button.stories.d.ts +0 -12
  169. package/dist/components/Button/__stories__/Button.stories.js +0 -154
  170. package/dist/components/Button/__stories__/IconButton.stories.d.ts +0 -8
  171. package/dist/components/Button/__stories__/IconButton.stories.js +0 -133
  172. package/dist/components/Button/__stories__/UtilityButton.stories.d.ts +0 -8
  173. package/dist/components/Button/__stories__/UtilityButton.stories.js +0 -71
  174. package/dist/components/Button/__tests__/Button.test.js +0 -19
  175. package/dist/components/Button/components/Button/Button.d.ts +0 -16
  176. package/dist/components/Button/components/Button/Button.js +0 -13
  177. package/dist/components/Button/components/Button/styles.d.ts +0 -1
  178. package/dist/components/Button/components/Button/styles.js +0 -118
  179. package/dist/components/Button/constants/index.d.ts +0 -163
  180. package/dist/components/Button/constants/index.js +0 -89
  181. package/dist/components/Button/icon-button-styles.js +0 -23
  182. package/dist/components/Button/index.js +0 -2
  183. package/dist/components/Button/styles.js +0 -60
  184. package/dist/components/Button/styles.ts +0 -176
  185. package/dist/components/Input/Input.js +0 -57
  186. package/dist/components/Input/index.js +0 -1
  187. package/dist/components/Input/styles.js +0 -76
  188. package/dist/components/Select/Select.js +0 -199
  189. package/dist/components/Select/SelectTrigger.js +0 -89
  190. package/dist/components/Select/index.js +0 -1
  191. package/dist/components/Table/Table/Table.d.ts +0 -51
  192. package/dist/components/Table/Table/Table.js +0 -14
  193. package/dist/components/Table/Table/TableControls/CustomPagination.d.ts +0 -13
  194. package/dist/components/Table/Table/TableControls/CustomPagination.js +0 -158
  195. package/dist/components/Table/Table/TableControls/PaginationNumber.d.ts +0 -7
  196. package/dist/components/Table/Table/TableControls/PaginationNumber.js +0 -30
  197. package/dist/components/Table/Table/styles.d.ts +0 -14
  198. package/dist/components/Table/Table/styles.js +0 -64
  199. package/dist/components/Table/Table/useTable.d.ts +0 -26
  200. package/dist/components/Table/Table/useTable.js +0 -141
  201. package/dist/components/Table/Table.js +0 -33
  202. package/dist/components/Table/TableControls/CustomPagination.js +0 -174
  203. package/dist/components/Table/TableControls/PaginationNumber.js +0 -46
  204. package/dist/components/Table/TableControls/PrimaryTableControlsRow.js +0 -78
  205. package/dist/components/Table/TableControls/SecondaryTableControlsRow.js +0 -65
  206. package/dist/components/Table/TableControls/TableControls.js +0 -14
  207. package/dist/components/Table/TableControls/TableControls.tsx +0 -51
  208. package/dist/components/Table/TableControls/__stories__/CustomPaginationStandalone.stories.d.ts +0 -9
  209. package/dist/components/Table/TableControls/__stories__/CustomPaginationStandalone.stories.js +0 -58
  210. package/dist/components/Table/TableControls/__stories__/PaginationNumber.stories.d.ts +0 -7
  211. package/dist/components/Table/TableControls/__stories__/PaginationNumber.stories.js +0 -37
  212. package/dist/components/Table/TableControls/__stories__/TableControls.stories.d.ts +0 -6
  213. package/dist/components/Table/TableControls/__stories__/TableControls.stories.js +0 -106
  214. package/dist/components/Table/TableControls/__tests__/CustomPagination.test.d.ts +0 -1
  215. package/dist/components/Table/TableControls/__tests__/CustomPagination.test.js +0 -82
  216. package/dist/components/Table/TableControls/__tests__/TableControls.test.d.ts +0 -1
  217. package/dist/components/Table/TableControls/__tests__/TableControls.test.js +0 -74
  218. package/dist/components/Table/TableControls/index.js +0 -1
  219. package/dist/components/Table/TableControls/styles.d.ts +0 -13
  220. package/dist/components/Table/TableControls/styles.js +0 -16
  221. package/dist/components/Table/TablePagination.js +0 -28
  222. package/dist/components/Table/Typography/Typography.d.ts +0 -17
  223. package/dist/components/Table/Typography/Typography.js +0 -16
  224. package/dist/components/Table/Typography/index.d.ts +0 -2
  225. package/dist/components/Table/Typography/index.js +0 -1
  226. package/dist/components/Table/Typography/styles.d.ts +0 -3
  227. package/dist/components/Table/Typography/styles.js +0 -54
  228. package/dist/components/Table/__mocks__/table-mocks.js +0 -310
  229. package/dist/components/Table/__stories__/GenesisTable.stories.d.ts +0 -5
  230. package/dist/components/Table/__stories__/GenesisTable.stories.js +0 -23
  231. package/dist/components/Table/__stories__/Table.stories.d.ts +0 -8
  232. package/dist/components/Table/__stories__/Table.stories.js +0 -188
  233. package/dist/components/Table/__tests__/table.test.d.ts +0 -1
  234. package/dist/components/Table/__tests__/table.test.js +0 -47
  235. package/dist/components/Table/index.js +0 -3
  236. package/dist/components/Table/styles.js +0 -20
  237. package/dist/components/Table/useTable.js +0 -238
  238. package/dist/components/TableWithControls/TableWithControls.js +0 -21
  239. package/dist/components/TableWithControls/__stories__/TableWithControls.stories.d.ts +0 -6
  240. package/dist/components/TableWithControls/__stories__/TableWithControls.stories.js +0 -178
  241. package/dist/components/TableWithControls/__stories__/TableWithControlsStory.d.ts +0 -1
  242. package/dist/components/TableWithControls/__stories__/TableWithControlsStory.js +0 -55
  243. package/dist/components/TableWithControls/__tests__/TableWithControls.test.d.ts +0 -1
  244. package/dist/components/TableWithControls/__tests__/TableWithControls.test.js +0 -41
  245. package/dist/components/TableWithControls/components/Badge/Badge.d.ts +0 -16
  246. package/dist/components/TableWithControls/components/Badge/Badge.js +0 -28
  247. package/dist/components/TableWithControls/components/Badge/index.d.ts +0 -2
  248. package/dist/components/TableWithControls/components/Badge/index.js +0 -1
  249. package/dist/components/TableWithControls/components/Badge/styles.d.ts +0 -4
  250. package/dist/components/TableWithControls/components/Badge/styles.js +0 -46
  251. package/dist/components/TableWithControls/components/Button/Button.d.ts +0 -16
  252. package/dist/components/TableWithControls/components/Button/Button.js +0 -13
  253. package/dist/components/TableWithControls/components/Button/IconButton.d.ts +0 -8
  254. package/dist/components/TableWithControls/components/Button/IconButton.js +0 -9
  255. package/dist/components/TableWithControls/components/Button/icon-button-styles.d.ts +0 -1
  256. package/dist/components/TableWithControls/components/Button/icon-button-styles.js +0 -76
  257. package/dist/components/TableWithControls/components/Button/index.d.ts +0 -4
  258. package/dist/components/TableWithControls/components/Button/index.js +0 -2
  259. package/dist/components/TableWithControls/components/Button/styles.d.ts +0 -1
  260. package/dist/components/TableWithControls/components/Button/styles.js +0 -118
  261. package/dist/components/TableWithControls/components/Input/Input.d.ts +0 -13
  262. package/dist/components/TableWithControls/components/Input/Input.js +0 -34
  263. package/dist/components/TableWithControls/components/Input/index.d.ts +0 -2
  264. package/dist/components/TableWithControls/components/Input/index.js +0 -1
  265. package/dist/components/TableWithControls/components/Input/styles.d.ts +0 -1
  266. package/dist/components/TableWithControls/components/Input/styles.js +0 -180
  267. package/dist/components/TableWithControls/components/Select/Select.d.ts +0 -26
  268. package/dist/components/TableWithControls/components/Select/Select.js +0 -175
  269. package/dist/components/TableWithControls/components/Select/SelectTrigger.d.ts +0 -23
  270. package/dist/components/TableWithControls/components/Select/SelectTrigger.js +0 -103
  271. package/dist/components/TableWithControls/components/Select/index.d.ts +0 -2
  272. package/dist/components/TableWithControls/components/Select/index.js +0 -1
  273. package/dist/components/TableWithControls/components/Table/Table.d.ts +0 -51
  274. package/dist/components/TableWithControls/components/Table/Table.js +0 -14
  275. package/dist/components/TableWithControls/components/Table/TableControls/CustomPagination.d.ts +0 -13
  276. package/dist/components/TableWithControls/components/Table/TableControls/CustomPagination.js +0 -158
  277. package/dist/components/TableWithControls/components/Table/TableControls/PaginationNumber.d.ts +0 -7
  278. package/dist/components/TableWithControls/components/Table/TableControls/PaginationNumber.js +0 -30
  279. package/dist/components/TableWithControls/components/Table/TableControls/PrimaryTableControlsRow.d.ts +0 -18
  280. package/dist/components/TableWithControls/components/Table/TableControls/PrimaryTableControlsRow.js +0 -77
  281. package/dist/components/TableWithControls/components/Table/TableControls/SecondaryTableControlsRow.d.ts +0 -11
  282. package/dist/components/TableWithControls/components/Table/TableControls/SecondaryTableControlsRow.js +0 -43
  283. package/dist/components/TableWithControls/components/Table/TableControls/TableControls.d.ts +0 -14
  284. package/dist/components/TableWithControls/components/Table/TableControls/TableControls.js +0 -13
  285. package/dist/components/TableWithControls/components/Table/TableControls/index.d.ts +0 -2
  286. package/dist/components/TableWithControls/components/Table/TableControls/index.js +0 -1
  287. package/dist/components/TableWithControls/components/Table/TablePagination.d.ts +0 -13
  288. package/dist/components/TableWithControls/components/Table/TablePagination.js +0 -11
  289. package/dist/components/TableWithControls/components/Table/__mocks__/table-mocks.d.ts +0 -20
  290. package/dist/components/TableWithControls/components/Table/__mocks__/table-mocks.js +0 -301
  291. package/dist/components/TableWithControls/components/Table/index.d.ts +0 -6
  292. package/dist/components/TableWithControls/components/Table/index.js +0 -3
  293. package/dist/components/TableWithControls/components/Table/styles.d.ts +0 -14
  294. package/dist/components/TableWithControls/components/Table/styles.js +0 -64
  295. package/dist/components/TableWithControls/components/Table/useTable.d.ts +0 -26
  296. package/dist/components/TableWithControls/components/Table/useTable.js +0 -141
  297. package/dist/components/TableWithControls/components/TableWithControls/TableWithControls.d.ts +0 -12
  298. package/dist/components/TableWithControls/components/TableWithControls/TableWithControls.js +0 -20
  299. package/dist/components/TableWithControls/components/TableWithControls/useTableWithControls.d.ts +0 -29
  300. package/dist/components/TableWithControls/components/TableWithControls/useTableWithControls.js +0 -136
  301. package/dist/components/TableWithControls/components/Tooltip/Tooltip.d.ts +0 -7
  302. package/dist/components/TableWithControls/components/Tooltip/Tooltip.js +0 -8
  303. package/dist/components/TableWithControls/components/Tooltip/index.d.ts +0 -2
  304. package/dist/components/TableWithControls/components/Tooltip/index.js +0 -1
  305. package/dist/components/TableWithControls/components/Tooltip/styles.js +0 -26
  306. package/dist/components/TableWithControls/components/Typography/Typography.d.ts +0 -17
  307. package/dist/components/TableWithControls/components/Typography/Typography.js +0 -16
  308. package/dist/components/TableWithControls/components/Typography/index.d.ts +0 -2
  309. package/dist/components/TableWithControls/components/Typography/index.js +0 -1
  310. package/dist/components/TableWithControls/components/Typography/styles.d.ts +0 -3
  311. package/dist/components/TableWithControls/components/Typography/styles.js +0 -54
  312. package/dist/components/TableWithControls/components/UtilityButton/UtilityButton.d.ts +0 -5
  313. package/dist/components/TableWithControls/components/UtilityButton/UtilityButton.js +0 -9
  314. package/dist/components/TableWithControls/components/UtilityButton/index.d.ts +0 -2
  315. package/dist/components/TableWithControls/components/UtilityButton/index.js +0 -1
  316. package/dist/components/TableWithControls/components/shared/DropdownChevron.d.ts +0 -2
  317. package/dist/components/TableWithControls/components/shared/DropdownChevron.js +0 -7
  318. package/dist/components/TableWithControls/constants/index.d.ts +0 -163
  319. package/dist/components/TableWithControls/constants/index.js +0 -89
  320. package/dist/components/TableWithControls/index.js +0 -2
  321. package/dist/components/TableWithControls/types/events.d.ts +0 -22
  322. package/dist/components/TableWithControls/types/events.js +0 -1
  323. package/dist/components/TableWithControls/useTableWithControls.js +0 -117
  324. package/dist/components/TableWithControls/utils/icon-util.d.ts +0 -3
  325. package/dist/components/TableWithControls/utils/icon-util.js +0 -116
  326. package/dist/components/Tooltip/Tooltip.js +0 -9
  327. package/dist/components/Tooltip/index.js +0 -1
  328. package/dist/components/Tooltip/styles.js +0 -17
  329. package/dist/components/Typography/Typography.js +0 -39
  330. package/dist/components/Typography/index.js +0 -1
  331. package/dist/components/Typography/styles.js +0 -37
  332. package/dist/components/UtilityButton/UtilityButton.js +0 -32
  333. package/dist/components/UtilityButton/components/Button/Button.d.ts +0 -16
  334. package/dist/components/UtilityButton/components/Button/Button.js +0 -13
  335. package/dist/components/UtilityButton/components/Button/IconButton.d.ts +0 -8
  336. package/dist/components/UtilityButton/components/Button/IconButton.js +0 -9
  337. package/dist/components/UtilityButton/components/Button/icon-button-styles.d.ts +0 -1
  338. package/dist/components/UtilityButton/components/Button/icon-button-styles.js +0 -76
  339. package/dist/components/UtilityButton/components/Button/index.d.ts +0 -4
  340. package/dist/components/UtilityButton/components/Button/index.js +0 -2
  341. package/dist/components/UtilityButton/components/Button/styles.d.ts +0 -1
  342. package/dist/components/UtilityButton/components/Button/styles.js +0 -118
  343. package/dist/components/UtilityButton/components/UtilityButton/UtilityButton.d.ts +0 -5
  344. package/dist/components/UtilityButton/components/UtilityButton/UtilityButton.js +0 -9
  345. package/dist/components/UtilityButton/constants/index.d.ts +0 -163
  346. package/dist/components/UtilityButton/constants/index.js +0 -89
  347. package/dist/components/UtilityButton/index.js +0 -1
  348. package/dist/components/index.js +0 -7
  349. package/dist/components/shared/DropdownChevron.js +0 -18
  350. package/dist/constants/index.js +0 -89
  351. package/dist/interface/address.d.ts +0 -10
  352. package/dist/interface/address.js +0 -1
  353. package/dist/interface/appointment.d.ts +0 -56
  354. package/dist/interface/appointment.js +0 -23
  355. package/dist/styles/design-tokens/variables.d.ts +0 -706
  356. package/dist/styles/design-tokens/variables.js +0 -707
  357. package/dist/styles/theme/genesis-theme.js +0 -1512
  358. package/dist/styles/theme/genesis-theme.types.d.ts +0 -263
  359. package/dist/styles/theme/genesis-theme.types.js +0 -6
  360. package/dist/styles/theme/index.js +0 -1
  361. package/dist/test/setup.d.ts +0 -6
  362. package/dist/test/setup.js +0 -53
  363. package/dist/test/setup.types.d.ts +0 -7
  364. package/dist/test/setup.types.js +0 -1
  365. package/dist/types/events.d.ts +0 -22
  366. package/dist/types/events.js +0 -1
  367. package/dist/utils/icon-util.js +0 -119
  368. package/dist/utils/styled.d.ts +0 -1
  369. package/dist/utils/styled.js +0 -44
  370. /package/dist/{components/Button/__tests__/Button.test.d.ts → styles/theme/genesis-theme.test.d.ts} +0 -0
@@ -1,133 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- var __generator = (this && this.__generator) || function (thisArg, body) {
11
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
12
- return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
13
- function verb(n) { return function (v) { return step([n, v]); }; }
14
- function step(op) {
15
- if (f) throw new TypeError("Generator is already executing.");
16
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
17
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
18
- if (y = 0, t) op = [op[0] & 2, t.value];
19
- switch (op[0]) {
20
- case 0: case 1: t = op; break;
21
- case 4: _.label++; return { value: op[1], done: false };
22
- case 5: _.label++; y = op[1]; op = [0]; continue;
23
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
24
- default:
25
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
26
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
27
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
28
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
29
- if (t[2]) _.ops.pop();
30
- _.trys.pop(); continue;
31
- }
32
- op = body.call(thisArg, _);
33
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
34
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
- }
36
- };
37
- var __rest = (this && this.__rest) || function (s, e) {
38
- var t = {};
39
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
40
- t[p] = s[p];
41
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
42
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
43
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
44
- t[p[i]] = s[p[i]];
45
- }
46
- return t;
47
- };
48
- var __read = (this && this.__read) || function (o, n) {
49
- var m = typeof Symbol === "function" && o[Symbol.iterator];
50
- if (!m) return o;
51
- var i = m.call(o), r, ar = [], e;
52
- try {
53
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
54
- }
55
- catch (error) { e = { error: error }; }
56
- finally {
57
- try {
58
- if (r && !r.done && (m = i["return"])) m.call(i);
59
- }
60
- finally { if (e) throw e.error; }
61
- }
62
- return ar;
63
- };
64
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
65
- import { useState } from "react";
66
- import IconButton from "../IconButton";
67
- import { STATE } from "../../../constants";
68
- import description from "./IconButtonDescription.md?raw";
69
- import { HiOutlineDuplicate, HiSearch, HiOutlineLocationMarker, } from "react-icons/hi";
70
- var focussed = STATE.focussed, stateWithoutFocussed = __rest(STATE, ["focussed"]);
71
- var meta = {
72
- title: "Components/Buttons/IconButton",
73
- component: IconButton,
74
- tags: ["autodocs"],
75
- parameters: {
76
- layout: "centered",
77
- docs: {
78
- description: {
79
- component: description,
80
- },
81
- },
82
- },
83
- argTypes: {
84
- state: {
85
- control: "radio",
86
- options: Object.keys(stateWithoutFocussed),
87
- },
88
- },
89
- };
90
- export default meta;
91
- var onClick = function (e) {
92
- alert("Button Clicked");
93
- };
94
- export var Default = {
95
- args: {
96
- children: null,
97
- icon: _jsx(HiOutlineDuplicate, {}),
98
- isIconButton: true,
99
- onClick: onClick,
100
- },
101
- };
102
- export var Focussed = {
103
- args: {
104
- icon: _jsx(HiOutlineDuplicate, {}),
105
- onClick: onClick,
106
- },
107
- play: function (_a) { return __awaiter(void 0, [_a], void 0, function (_b) {
108
- var button;
109
- var canvasElement = _b.canvasElement;
110
- return __generator(this, function (_c) {
111
- button = canvasElement.querySelector("button");
112
- if (button) {
113
- button.focus();
114
- }
115
- return [2 /*return*/];
116
- });
117
- }); },
118
- };
119
- export var Selected = {
120
- args: {
121
- children: null,
122
- icon: _jsx(HiOutlineDuplicate, {}),
123
- isIconButton: true,
124
- onClick: onClick,
125
- },
126
- render: function () {
127
- var _a = __read(useState(1), 2), selectedId = _a[0], setSelectedId = _a[1];
128
- var onClick = function (newId) {
129
- setSelectedId(newId);
130
- };
131
- return (_jsxs("div", { style: { display: "flex", gap: "1rem" }, children: [_jsx(IconButton, { icon: _jsx(HiOutlineDuplicate, {}), onClick: function () { return onClick(1); }, isSelected: selectedId === 1 }), _jsx(IconButton, { icon: _jsx(HiSearch, {}), onClick: function () { return onClick(2); }, isSelected: selectedId === 2 }), _jsx(IconButton, { icon: _jsx(HiOutlineLocationMarker, {}), onClick: function () { return onClick(3); }, isSelected: selectedId === 3 })] }));
132
- },
133
- };
@@ -1,8 +0,0 @@
1
- import type { Meta, StoryObj } from "@storybook/react";
2
- import UtilityButton from "../../UtilityButton";
3
- declare const meta: Meta<typeof UtilityButton>;
4
- export default meta;
5
- type Story = StoryObj<typeof UtilityButton>;
6
- export declare const Primary: Story;
7
- export declare const AddIcon: Story;
8
- export declare const FilterIcon: Story;
@@ -1,71 +0,0 @@
1
- var __rest = (this && this.__rest) || function (s, e) {
2
- var t = {};
3
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
4
- t[p] = s[p];
5
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
6
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
7
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
8
- t[p[i]] = s[p[i]];
9
- }
10
- return t;
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import UtilityButton from "../../UtilityButton";
14
- import { STATE } from "../../../constants";
15
- import description from "./UtilityButtonDescription.md?raw";
16
- import { PlusOutlined } from "@ant-design/icons";
17
- import { HiMiniAdjustmentsVertical } from "react-icons/hi2";
18
- // remove the focussed key since we have a separate story for that
19
- var focussed = STATE.focussed, stateWithoutFocussed = __rest(STATE, ["focussed"]);
20
- var meta = {
21
- title: "Components/Buttons/UtilityButton",
22
- component: UtilityButton,
23
- tags: ["autodocs"],
24
- parameters: {
25
- layout: "centered",
26
- docs: {
27
- description: {
28
- component: description,
29
- },
30
- },
31
- },
32
- argTypes: {
33
- state: {
34
- control: "radio",
35
- options: Object.keys(stateWithoutFocussed),
36
- },
37
- size: {
38
- control: "radio",
39
- options: ["small", "normal", "large"],
40
- defaultValue: "large",
41
- },
42
- },
43
- };
44
- export default meta;
45
- var onClick = function (e) {
46
- alert("Button Clicked");
47
- };
48
- export var Primary = {
49
- args: {
50
- children: "Button Label",
51
- isIconButton: false,
52
- onClick: onClick,
53
- },
54
- };
55
- export var AddIcon = {
56
- args: {
57
- children: null,
58
- icon: _jsx(PlusOutlined, {}),
59
- iconPosition: "end",
60
- isIconButton: true,
61
- onClick: onClick,
62
- },
63
- };
64
- export var FilterIcon = {
65
- args: {
66
- children: null,
67
- icon: _jsx(HiMiniAdjustmentsVertical, {}),
68
- isIconButton: true,
69
- onClick: onClick,
70
- },
71
- };
@@ -1,19 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import { screen } from "@testing-library/react";
3
- import { customRender } from "../../../test/setup";
4
- import Button from "../";
5
- import { vi } from "vitest";
6
- describe("<Button />", function () {
7
- var properties;
8
- beforeEach(function () {
9
- properties = {
10
- onClick: vi.fn(),
11
- themeType: "primary",
12
- };
13
- });
14
- var renderComponent = function () { return customRender(_jsx(Button, { children: "Ship it!" })); };
15
- it("should render the button", function () {
16
- renderComponent();
17
- expect(screen.getByText("Ship it!")).toBeInTheDocument();
18
- });
19
- });
@@ -1,16 +0,0 @@
1
- import React, { MouseEvent } from "react";
2
- import type { ButtonProps as AntButtonProperties } from "antd/es/button";
3
- import { STATE } from "../../constants";
4
- type ButtonThemeType = "primary" | "secondary" | "tertiary" | "destructive" | "utility" | "icon";
5
- export interface ButtonProps extends Omit<AntButtonProperties, "type" | "size"> {
6
- onClick?: (event: MouseEvent<HTMLButtonElement>) => void;
7
- children?: React.ReactNode;
8
- themeType?: ButtonThemeType;
9
- state?: keyof typeof STATE;
10
- isIconButton?: boolean;
11
- size?: "small" | "normal" | "large";
12
- isSelected?: boolean;
13
- icon?: React.ReactNode;
14
- }
15
- declare const Button: React.FC<ButtonProps>;
16
- export default Button;
@@ -1,13 +0,0 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
2
- import * as S from "./styles";
3
- const getState = (state, isSelected) => {
4
- if (isSelected) {
5
- return "selected";
6
- }
7
- return state === "active" || state === "disabled" ? state : "active";
8
- };
9
- const Button = ({ children, onClick, themeType = "primary", state = "active", isIconButton = false, size = "normal", isSelected, ...rest }) => {
10
- const buttonState = getState(state, isSelected);
11
- return (_jsx(S.Button, { onClick: onClick, "$themeType": themeType, "$state": buttonState, disabled: state === "disabled" || rest.disabled, "$isIconButton": isIconButton, size: size, ...rest, children: children }));
12
- };
13
- export default Button;
@@ -1 +0,0 @@
1
- export declare const Button: any;
@@ -1,118 +0,0 @@
1
- import styled from "@gobolt/genesis/utils/styled";
2
- import { Button as AntButton } from "antd";
3
- const getPadding = (size, $themeType, sizing, $isIconButton) => {
4
- if ($isIconButton && (size === "normal" || size === "large")) {
5
- return `${sizing.Size2}px ${sizing.Size2}px`;
6
- }
7
- if ($isIconButton && size === "small") {
8
- return `${sizing.Size1}px ${sizing.Size1}px`;
9
- }
10
- // utility button padding is different from the main button
11
- if ($themeType === "utility" && size === "small") {
12
- return `${sizing.Size1_5}px ${sizing.Size2}px`;
13
- }
14
- if ($themeType === "utility" && (size === "normal" || size === "large")) {
15
- return `${sizing.Size2_5}px ${sizing.Size3}px`;
16
- }
17
- if (size === "small") {
18
- return `${sizing.Size1_5}px ${sizing.Size4}px`;
19
- }
20
- if (size === "normal" || size === "large") {
21
- return `${sizing.Size2_5}px ${sizing.Size6}px`;
22
- }
23
- return `${sizing.Size2}px ${sizing.Size2}px`;
24
- };
25
- const getHeight = (size) => {
26
- if (size === "normal" || size === "large") {
27
- return `40px`;
28
- }
29
- if (size === "small") {
30
- return `32px`;
31
- }
32
- return `40px`;
33
- };
34
- const getWidth = (size, $isIconButton) => {
35
- if (!$isIconButton) {
36
- return `auto`;
37
- }
38
- if (size === "normal" || size === "large") {
39
- return `40px`;
40
- }
41
- if (size === "small") {
42
- return `32px`;
43
- }
44
- return `40px`;
45
- };
46
- const getVariant = ({ colors, sizing, borderRadius, components }, $themeType, $state, size, $isIconButton) => {
47
- const backgroundColor = colors[$themeType][$state].backgroundColor;
48
- return `
49
- &.ant-btn {
50
-
51
- color: ${colors[$themeType][$state].color};
52
- font-size: ${sizing.Size4}px;
53
- line-height: ${sizing.Size6}px;
54
- letter-spacing: 0;
55
- font-weight: 400;
56
- border-width: 1px;
57
- line-height: 1 !important;
58
-
59
- width: ${getWidth(size, $isIconButton)}; !important;
60
- height: ${getHeight(size)}; !important;
61
-
62
- background-color: ${colors[$themeType][$state].backgroundColor};
63
- padding: ${getPadding(size, $themeType, sizing, $isIconButton)};
64
-
65
- box-shadow: ${$themeType === "utility" ? "0px 1px 2px 0px #00000026" : "none"};
66
-
67
- border-radius: ${borderRadius.BorderRadiusMd}px;
68
- gap: ${components.button.gap}px;
69
- border-style: solid;
70
- border-color: ${colors[$themeType][$state].borderColor};
71
-
72
- transition: all 0.2s ease-in-out;
73
-
74
- &:hover {
75
- color: ${colors[$themeType].hover.color};
76
- background-color: ${colors[$themeType].hover.backgroundColor};
77
- border-color: ${colors[$themeType].hover.borderColor};
78
- }
79
-
80
- &:active {
81
- color: ${colors[$themeType].pressed.color};
82
- background-color: ${colors[$themeType].pressed.backgroundColor};
83
- border-color: ${colors[$themeType].pressed.borderColor};
84
- }
85
-
86
- &:focus-visible {
87
- outline: none;
88
- color: ${colors[$themeType].focussed.color};
89
- background-color: ${colors[$themeType].focussed.backgroundColor};
90
- box-shadow: 0 0 0 1px #fff, 0 0 0 4px ${colors[$themeType].focussed.ringColor};
91
- border-radius: ${borderRadius.BorderRadiusMd}px;
92
- border-color: ${colors[$themeType].focussed.borderColor};
93
- transition: box-shadow 0.2s ease-in-out;
94
- }
95
-
96
- &:disabled {
97
- color: ${colors[$themeType].disabled.color};
98
- background-color: ${colors[$themeType].disabled.backgroundColor};
99
- border-color: ${colors[$themeType].disabled.borderColor};
100
- cursor: not-allowed;
101
- }
102
-
103
- }
104
-
105
- `;
106
- };
107
- const getGenesisButtonClass = (theme, $themeType, $state, $isIconButton, size) => `
108
- &.ant-btn {
109
- font-family: 'Inter', sans-serif;
110
-
111
- ${getVariant(theme, $themeType, $state, size, $isIconButton)}
112
- }
113
- `;
114
- export const Button = styled(AntButton) `
115
- ${({ theme, $themeType, $state, children, $isIconButton, size }) => {
116
- return getGenesisButtonClass(theme, $themeType, $state, $isIconButton, size);
117
- }}
118
- `;
@@ -1,163 +0,0 @@
1
- export declare const TYPE: {
2
- primary: string;
3
- secondary: string;
4
- tertiary: string;
5
- destructive: string;
6
- utility: string;
7
- icon: string;
8
- };
9
- export declare const BREAKPOINTS: {
10
- wide: string;
11
- medium: string;
12
- narrow: string;
13
- };
14
- export declare const STATE: {
15
- active: string;
16
- hover: string;
17
- pressed: string;
18
- focussed: string;
19
- disabled: string;
20
- error: string;
21
- success: string;
22
- warning: string;
23
- progress: string;
24
- info: string;
25
- filled: string;
26
- generic: string;
27
- removed: string;
28
- hollow: string;
29
- };
30
- export declare const TYPOGRAPHY_VARIANT: {
31
- display1: string;
32
- display2: string;
33
- display3: string;
34
- heading1: string;
35
- heading2: string;
36
- heading3: string;
37
- subHeading1: string;
38
- subHeading2: string;
39
- subHeading3: string;
40
- body1: string;
41
- body2: string;
42
- body3: string;
43
- body4: string;
44
- body5: string;
45
- message: string;
46
- overline1: string;
47
- overline2: string;
48
- overline3: string;
49
- label1: string;
50
- label2: string;
51
- label3: string;
52
- link1: string;
53
- link2: string;
54
- link3: string;
55
- digits1: string;
56
- digits2: string;
57
- digits3: string;
58
- };
59
- export declare const BUTTON_VARIANT: {
60
- primary: string;
61
- secondary: string;
62
- tertiary: string;
63
- };
64
- export declare const SIZE: {
65
- small: string;
66
- medium: string;
67
- large: string;
68
- standard: string;
69
- };
70
- export declare const BADGE: {
71
- appointment: string;
72
- asn: string;
73
- inventory: string;
74
- parcel: string;
75
- product: string;
76
- route: string;
77
- shipment: string;
78
- shoppingCart: string;
79
- system: string;
80
- };
81
- declare const _default: {
82
- TYPE: {
83
- primary: string;
84
- secondary: string;
85
- tertiary: string;
86
- destructive: string;
87
- utility: string;
88
- icon: string;
89
- };
90
- BREAKPOINTS: {
91
- wide: string;
92
- medium: string;
93
- narrow: string;
94
- };
95
- STATE: {
96
- active: string;
97
- hover: string;
98
- pressed: string;
99
- focussed: string;
100
- disabled: string;
101
- error: string;
102
- success: string;
103
- warning: string;
104
- progress: string;
105
- info: string;
106
- filled: string;
107
- generic: string;
108
- removed: string;
109
- hollow: string;
110
- };
111
- TYPOGRAPHY_VARIANT: {
112
- display1: string;
113
- display2: string;
114
- display3: string;
115
- heading1: string;
116
- heading2: string;
117
- heading3: string;
118
- subHeading1: string;
119
- subHeading2: string;
120
- subHeading3: string;
121
- body1: string;
122
- body2: string;
123
- body3: string;
124
- body4: string;
125
- body5: string;
126
- message: string;
127
- overline1: string;
128
- overline2: string;
129
- overline3: string;
130
- label1: string;
131
- label2: string;
132
- label3: string;
133
- link1: string;
134
- link2: string;
135
- link3: string;
136
- digits1: string;
137
- digits2: string;
138
- digits3: string;
139
- };
140
- BUTTON_VARIANT: {
141
- primary: string;
142
- secondary: string;
143
- tertiary: string;
144
- };
145
- SIZE: {
146
- small: string;
147
- medium: string;
148
- large: string;
149
- standard: string;
150
- };
151
- BADGE: {
152
- appointment: string;
153
- asn: string;
154
- inventory: string;
155
- parcel: string;
156
- product: string;
157
- route: string;
158
- shipment: string;
159
- shoppingCart: string;
160
- system: string;
161
- };
162
- };
163
- export default _default;
@@ -1,89 +0,0 @@
1
- export const TYPE = {
2
- primary: "primary",
3
- secondary: "secondary",
4
- tertiary: "tertiary",
5
- destructive: "destructive",
6
- utility: "utility",
7
- icon: "icon",
8
- };
9
- export const BREAKPOINTS = {
10
- wide: "wide",
11
- medium: "medium",
12
- narrow: "narrow",
13
- };
14
- export const STATE = {
15
- active: "active",
16
- hover: "hover",
17
- pressed: "pressed",
18
- focussed: "focus",
19
- disabled: "disabled",
20
- error: "error",
21
- success: "success",
22
- warning: "warning",
23
- progress: "progress",
24
- info: "info",
25
- filled: "filled",
26
- generic: "generic",
27
- removed: "removed",
28
- hollow: "hollow",
29
- };
30
- export const TYPOGRAPHY_VARIANT = {
31
- display1: "display1",
32
- display2: "display2",
33
- display3: "display3",
34
- heading1: "heading1",
35
- heading2: "heading2",
36
- heading3: "heading3",
37
- subHeading1: "subHeading1",
38
- subHeading2: "subHeading2",
39
- subHeading3: "subHeading3",
40
- body1: "body1",
41
- body2: "body2",
42
- body3: "body3",
43
- body4: "body4",
44
- body5: "body5",
45
- message: "message",
46
- overline1: "overline1",
47
- overline2: "overline2",
48
- overline3: "overline3",
49
- label1: "label1",
50
- label2: "label2",
51
- label3: "label3",
52
- link1: "link1",
53
- link2: "link2",
54
- link3: "link3",
55
- digits1: "digits1",
56
- digits2: "digits2",
57
- digits3: "digits3",
58
- };
59
- export const BUTTON_VARIANT = {
60
- primary: "primary",
61
- secondary: "secondary",
62
- tertiary: "tertiary",
63
- };
64
- export const SIZE = {
65
- small: "small",
66
- medium: "medium",
67
- large: "large",
68
- standard: "standard",
69
- };
70
- export const BADGE = {
71
- appointment: "appointment",
72
- asn: "asn",
73
- inventory: "inventory",
74
- parcel: "parcel",
75
- product: "product",
76
- route: "route",
77
- shipment: "shipment",
78
- shoppingCart: "shopping cart",
79
- system: "system",
80
- };
81
- export default {
82
- TYPE,
83
- BREAKPOINTS,
84
- STATE,
85
- TYPOGRAPHY_VARIANT,
86
- BUTTON_VARIANT,
87
- SIZE,
88
- BADGE,
89
- };
@@ -1,23 +0,0 @@
1
- var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
2
- if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
3
- return cooked;
4
- };
5
- import styled from "@gobolt/genesis/utils/styled";
6
- var getPadding = function (size, sizing) {
7
- if (size === "small") {
8
- return "".concat(sizing.Size1, "px ").concat(sizing.Size1, "px");
9
- }
10
- return "".concat(sizing.Size2, "px ").concat(sizing.Size2, "px");
11
- };
12
- var getVariant = function (_a, $themeType, $state, size, $isSelected) {
13
- var colors = _a.colors, sizing = _a.sizing, borderRadius = _a.borderRadius, components = _a.components;
14
- return "\n display: flex;\n align-items: center;\n justify-content: center;\n text-align: center;\n color: ".concat(colors[$themeType][$state].color, ";\n font-size: ").concat(sizing.Size4, "px;\n line-height: ").concat(sizing.Size6, "px;\n letter-spacing: 0;\n font-weight: 400;\n border-width: 1px;\n cursor: pointer;\n width: auto; !important;\n height: auto; !important;\n\n background-color:").concat($isSelected
15
- ? colors[$themeType].hover.backgroundColor
16
- : colors[$themeType][$state].backgroundColor, ";\n padding: ").concat(getPadding(size, sizing), ";\n\n box-shadow: ").concat($themeType === "utility" ? "0px 1px 2px 0px #00000026" : "none", ";\n\n border-radius: ").concat(borderRadius.BorderRadiusMd, "px;\n gap: ").concat(components.button.gap, "px;\n border-style: solid;\n border-color: ").concat(colors[$themeType][$state].borderColor, ";\n \n transition: all 0.2s ease-in-out;\n\n &:hover {\n color: ").concat(colors[$themeType].hover.color, ";\n background-color: ").concat(colors[$themeType].hover.backgroundColor, ";\n border-color: ").concat(colors[$themeType].hover.borderColor, ";\n }\n\n &:active {\n color: ").concat(colors[$themeType].pressed.color, ";\n background-color: ").concat(colors[$themeType].pressed.backgroundColor, ";\n border-color: ").concat(colors[$themeType].pressed.borderColor, ";\n }\n\n &:focus-visible {\n outline: none;\n color: ").concat(colors[$themeType].focussed.color, ";\n background-color: ").concat(colors[$themeType].focussed.backgroundColor, ";\n box-shadow: 0 0 0 1px #fff, 0 0 0 4px ").concat(colors[$themeType].focussed.ringColor, ";\n border-radius: ").concat(borderRadius.BorderRadiusMd, "px;\n border-color: ").concat(colors[$themeType].focussed.borderColor, ";\n transition: box-shadow 0.2s ease-in-out;\n }\n\n &:disabled {\n color: ").concat(colors[$themeType].disabled.color, ";\n background-color: ").concat(colors[$themeType].disabled.backgroundColor, ";\n border-color: ").concat(colors[$themeType].disabled.borderColor, ";\n cursor: not-allowed;\n }\n ");
17
- };
18
- var getGenesisButtonClass = function (theme, $themeType, $state, size, $isSelected) { return "\n font-family: 'Inter', sans-serif;\n ".concat(getVariant(theme, $themeType, $state, size, $isSelected), "\n"); };
19
- export var Button = styled.button(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
20
- var theme = _a.theme, $themeType = _a.$themeType, $state = _a.$state, size = _a.size, $isSelected = _a.$isSelected;
21
- return getGenesisButtonClass(theme, $themeType, $state, size, $isSelected);
22
- });
23
- var templateObject_1;
@@ -1,2 +0,0 @@
1
- export { default } from "./Button";
2
- export { default as IconButton } from "./IconButton";