@gobolt/genesis 0.1.6 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (674) hide show
  1. package/README.md +2 -2
  2. package/dist/AntdIcon-DH0CLM1Y.cjs +58 -0
  3. package/dist/CSSMotionList-BkQaDrZL.cjs +54 -0
  4. package/dist/CSSMotionList-Bnxp3McO.js +3043 -0
  5. package/dist/CheckCircleFilled-CjHdYIbm.cjs +1 -0
  6. package/dist/CheckOutlined-zCdr5BJm.cjs +1 -0
  7. package/dist/ClockCircleOutlined-5UFb32Vd.cjs +1 -0
  8. package/dist/CloseCircleFilled-DTf4XAEx.cjs +1 -0
  9. package/dist/CloseOutlined-Bdhtz5G6.cjs +1 -0
  10. package/dist/{Compact-DFcWZrNo.js → Compact-DLyEiUiM.js} +4 -4
  11. package/dist/Compact-DbbroFuI.cjs +1 -0
  12. package/dist/Context-C1u4yclk.cjs +1 -0
  13. package/dist/ContextIsolator-CoEIkMNv.cjs +1 -0
  14. package/dist/{ContextIsolator-CUJnq-4F.js → ContextIsolator-DmNIEQ4a.js} +2 -2
  15. package/dist/{DownOutlined-Bv7ua5i8.js → DownOutlined-B6sv2Wz7.js} +5 -5
  16. package/dist/DownOutlined-BQeYXxEW.cjs +4 -0
  17. package/dist/EllipsisOutlined-41dQ6mc7.cjs +1 -0
  18. package/dist/{EllipsisOutlined-BodkguEc.js → EllipsisOutlined-p42n6YT6.js} +62 -61
  19. package/dist/ExclamationCircleFilled-CKIE3287.cjs +1 -0
  20. package/dist/{Input--qsU-6vp.js → Input-BQWrpo9X.js} +10 -10
  21. package/dist/Input-DR_AoU5d.cjs +1 -0
  22. package/dist/KeyCode-CIq7HTTY.cjs +1 -0
  23. package/dist/Keyframes-CLS7wZIp.cjs +1 -0
  24. package/dist/{Keyframes-CyO2Aeq-.js → Keyframes-DIF9LGg-.js} +1 -1
  25. package/dist/LoadingOutlined-ByLc1sSe.cjs +1 -0
  26. package/dist/MinusCircleOutlined-d1WYK6RE.cjs +1 -0
  27. package/dist/{Overflow-CVbsx7Gn.js → Overflow-BjFvsSs4.js} +60 -59
  28. package/dist/Overflow-Bthkof3a.cjs +4 -0
  29. package/dist/SearchOutlined-BzV3qXvi.cjs +1 -0
  30. package/dist/{Skeleton-CudViN0a.js → Skeleton-CUGMlCIU.js} +3 -3
  31. package/dist/Skeleton-DJMABrvW.cjs +8 -0
  32. package/dist/TextArea-B8UHj7uQ.cjs +15 -0
  33. package/dist/{TextArea-CHo3cxKw.js → TextArea-FhT_niDe.js} +11 -11
  34. package/dist/{Typography-8BO7aTuQ.js → Typography-BKm8uXM1.js} +52 -51
  35. package/dist/Typography-DCxwDJFP.cjs +10 -0
  36. package/dist/_baseIsEqual-DnZ6AoVd.cjs +1 -0
  37. package/dist/_commonjsHelpers-BTDuMlIz.cjs +1 -0
  38. package/dist/asyncToGenerator-Dr7BhN2C.cjs +1 -0
  39. package/dist/{button-CYVlK7G0.js → button-CvcGKj7O.js} +31 -31
  40. package/dist/button-vyLzOdPi.cjs +1 -0
  41. package/dist/collapse-DNCMuTyD.cjs +3 -0
  42. package/dist/compact-item-B2FiQh6y.cjs +1 -0
  43. package/dist/components/Avatar/Avatar.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  44. package/dist/components/Avatar/__tests__/Avatar.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  45. package/dist/components/Avatar/index.cjs.js +1 -0
  46. package/dist/components/Avatar/index.es.js +4 -0
  47. package/dist/components/Avatar/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
  48. package/dist/components/Avatar/styles.d.ts +1 -12
  49. package/dist/components/Badge/Badge.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  50. package/dist/components/Badge/Badge.d.ts +4 -1
  51. package/dist/components/Badge/__stories__/Badge.stories.d.ts +1 -0
  52. package/dist/components/Badge/__tests__/Badge.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  53. package/dist/components/Badge/index.cjs.js +1 -0
  54. package/dist/components/Badge/index.es.js +4 -0
  55. package/dist/components/Badge/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +10 -14
  56. package/dist/components/Badge/styles.d.ts +1 -8
  57. package/dist/components/Breadcrumb/Breadcrumb.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  58. package/dist/components/Breadcrumb/Breadcrumb.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  59. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  60. package/dist/components/Breadcrumb/index.cjs.js +1 -0
  61. package/dist/components/Breadcrumb/index.es.js +4 -0
  62. package/dist/components/Breadcrumb/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +60 -0
  63. package/dist/components/Breadcrumb/styles.d.ts +2 -23
  64. package/dist/components/Button/Button.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  65. package/dist/components/Button/IconButton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  66. package/dist/components/Button/UtilityButton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  67. package/dist/components/Button/__stories__/UtilityButton.stories.d.ts +2 -1
  68. package/dist/components/Button/__tests__/Button.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  69. package/dist/components/Button/{icon-button-styles.js → icon-button-styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +12 -16
  70. package/dist/components/Button/icon-button-styles.d.ts +1 -12
  71. package/dist/components/Button/index.cjs.js +1 -0
  72. package/dist/components/Button/index.es.js +8 -0
  73. package/dist/components/Button/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +14 -22
  74. package/dist/components/Button/styles.d.ts +1 -16
  75. package/dist/components/Card/Card.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  76. package/dist/components/Card/__tests__/Card.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  77. package/dist/components/Card/index.cjs.js +1 -0
  78. package/dist/components/Card/index.es.js +4 -0
  79. package/dist/components/Card/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  80. package/dist/components/Card/styles.d.ts +1 -10
  81. package/dist/components/Checkbox/Checkbox.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  82. package/dist/components/Checkbox/__tests__/Checkbox.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  83. package/dist/components/Checkbox/index.cjs.js +1 -0
  84. package/dist/components/Checkbox/index.es.js +4 -0
  85. package/dist/components/Checkbox/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +17 -23
  86. package/dist/components/Checkbox/styles.d.ts +2 -7
  87. package/dist/components/Dashboard/Dashboard.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  88. package/dist/components/Dashboard/__mocks__/dashboard-data.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  89. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  90. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  91. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  92. package/dist/components/Dashboard/__stories__/charts/LineChart.[format === /"es/" ? /"js/" : /"cjs/"]" +2 -0
  93. package/dist/components/Dashboard/__tests__/Dashboard.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  94. package/dist/components/Dashboard/index.cjs.js +1 -0
  95. package/dist/components/Dashboard/index.es.js +4 -0
  96. package/dist/components/Dashboard/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  97. package/dist/components/Dashboard/styles.d.ts +1 -8
  98. package/dist/components/DatePicker/DatePicker.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  99. package/dist/components/DatePicker/__tests__/DatePicker.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  100. package/dist/components/DatePicker/index.cjs.js +1 -0
  101. package/dist/components/DatePicker/index.es.js +4 -0
  102. package/dist/components/DateRangePicker/DateRangePicker.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  103. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  104. package/dist/components/DateRangePicker/index.cjs.js +1 -0
  105. package/dist/components/DateRangePicker/index.es.js +4 -0
  106. package/dist/components/ErrorBoundary/ErrorBoundary.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  107. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  108. package/dist/components/ErrorBoundary/index.cjs.js +1 -0
  109. package/dist/components/ErrorBoundary/index.es.js +4 -0
  110. package/dist/components/ErrorBoundary/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  111. package/dist/components/ErrorBoundary/styles.d.ts +1 -8
  112. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  113. package/dist/components/ErrorBoundaryFallback/index.cjs.js +1 -0
  114. package/dist/components/ErrorBoundaryFallback/index.es.js +4 -0
  115. package/dist/components/ErrorBoundaryFallback/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +11 -0
  116. package/dist/components/ErrorBoundaryFallback/styles.d.ts +1 -1
  117. package/dist/components/Form/Form.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  118. package/dist/components/Form/__stories__/FormStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  119. package/dist/components/Form/__tests__/form.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  120. package/dist/components/Form/index.cjs.js +1 -0
  121. package/dist/components/Form/index.es.js +4 -0
  122. package/dist/components/Form/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  123. package/dist/components/Glyph/Glyph.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  124. package/dist/components/Glyph/index.cjs.js +1 -0
  125. package/dist/components/Glyph/index.es.js +4 -0
  126. package/dist/components/Glyph/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  127. package/dist/components/Glyph/styles.d.ts +1 -8
  128. package/dist/components/Input/Input.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  129. package/dist/components/Input/Input.d.ts +3 -2
  130. package/dist/components/Input/__stories__/Input.stories.d.ts +1 -0
  131. package/dist/components/Input/__tests__/Input.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  132. package/dist/components/Input/index.cjs.js +1 -0
  133. package/dist/components/Input/index.es.js +4 -0
  134. package/dist/components/Input/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  135. package/dist/components/Input/styles.d.ts +1 -15
  136. package/dist/components/Layout/Content/Content.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  137. package/dist/components/Layout/Content/ResponsiveContent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  138. package/dist/components/Layout/Content/index.cjs.js +1 -0
  139. package/dist/components/Layout/Content/index.es.js +4 -0
  140. package/dist/components/Layout/Content/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +11 -0
  141. package/dist/components/Layout/Content/styles.d.ts +1 -7
  142. package/dist/components/Layout/Layout.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  143. package/dist/components/Layout/MainLayout/MainLayout.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  144. package/dist/components/Layout/MainLayout/index.cjs.js +1 -0
  145. package/dist/components/Layout/MainLayout/index.es.js +4 -0
  146. package/dist/components/Layout/MainLayout/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +62 -0
  147. package/dist/components/Layout/MainLayout/styles.d.ts +4 -4
  148. package/dist/components/Layout/__tests__/Layout.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  149. package/dist/components/Layout/index.cjs.js +1 -0
  150. package/dist/components/Layout/index.es.js +4 -0
  151. package/dist/components/Message/Message.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  152. package/dist/components/Message/__tests__/Message.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  153. package/dist/components/Message/index.cjs.js +1 -0
  154. package/dist/components/Message/index.es.js +4 -0
  155. package/dist/components/Message/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +38 -0
  156. package/dist/components/Message/styles.d.ts +3 -9
  157. package/dist/components/Notification/Notification.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  158. package/dist/components/Notification/NotificationBadge/NotificationBadge.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  159. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  160. package/dist/components/Notification/NotificationBadge/icons/ASN.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  161. package/dist/components/Notification/NotificationBadge/icons/Appointment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  162. package/dist/components/Notification/NotificationBadge/icons/Inventory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  163. package/dist/components/Notification/NotificationBadge/icons/Parcel.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  164. package/dist/components/Notification/NotificationBadge/icons/Product.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  165. package/dist/components/Notification/NotificationBadge/icons/Route.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  166. package/dist/components/Notification/NotificationBadge/icons/Shipment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  167. package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  168. package/dist/components/Notification/NotificationBadge/icons/System.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  169. package/dist/components/Notification/NotificationBadge/index.cjs.js +1 -0
  170. package/dist/components/Notification/NotificationBadge/index.es.js +4 -0
  171. package/dist/components/Notification/NotificationBadge/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +28 -0
  172. package/dist/components/Notification/NotificationBadge/styles.d.ts +3 -3
  173. package/dist/components/Notification/NotificationRightChevron.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  174. package/dist/components/Notification/__tests__/Notification.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  175. package/dist/components/Notification/index.cjs.js +1 -0
  176. package/dist/components/Notification/index.es.js +4 -0
  177. package/dist/components/Notification/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +56 -0
  178. package/dist/components/Notification/styles.d.ts +5 -16
  179. package/dist/components/Popover/Popover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  180. package/dist/components/Popover/__tests__/Popover.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  181. package/dist/components/Popover/index.cjs.js +1 -0
  182. package/dist/components/Popover/index.es.js +4 -0
  183. package/dist/components/Popover/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  184. package/dist/components/Popover/styles.d.ts +1 -13
  185. package/dist/components/Progress/Progress.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  186. package/dist/components/Progress/Progress.util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  187. package/dist/components/Progress/ProgressText.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  188. package/dist/components/Progress/__tests__/Progress.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  189. package/dist/components/Progress/index.cjs.js +1 -0
  190. package/dist/components/Progress/index.es.js +4 -0
  191. package/dist/components/Progress/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
  192. package/dist/components/Progress/styles.d.ts +1 -13
  193. package/dist/components/Radio/Radio.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  194. package/dist/components/Radio/Radio.d.ts +1 -4
  195. package/dist/components/Radio/RadioGroup.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  196. package/dist/components/Radio/__tests__/RadioGroup.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  197. package/dist/components/Radio/index.cjs.js +1 -0
  198. package/dist/components/Radio/index.es.js +4 -0
  199. package/dist/components/Radio/states/RadioChecked.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  200. package/dist/components/Radio/states/RadioCheckedDisabled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  201. package/dist/components/Radio/states/RadioCheckedFocussed.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  202. package/dist/components/Radio/states/RadioCheckedHover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  203. package/dist/components/Radio/states/RadioUnchecked.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  204. package/dist/components/Radio/states/RadioUncheckedDisabled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  205. package/dist/components/Radio/states/RadioUncheckedFocussed.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  206. package/dist/components/Radio/states/RadioUncheckedHover.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  207. package/dist/components/Row/Row.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  208. package/dist/components/Row/RowActions/RowActions.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  209. package/dist/components/Row/RowActions/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +4 -9
  210. package/dist/components/Row/RowActions/styles.d.ts +2 -2
  211. package/dist/components/Row/RowLabelValue/RowLabelValue.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  212. package/dist/components/Row/RowLabelValue/RowSkeleton.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  213. package/dist/components/Row/RowLabelValue/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +18 -0
  214. package/dist/components/Row/RowLabelValue/styles.d.ts +2 -12
  215. package/dist/components/Row/__tests__/Row.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  216. package/dist/components/Row/index.cjs.js +1 -0
  217. package/dist/components/Row/index.es.js +4 -0
  218. package/dist/components/Row/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +10 -0
  219. package/dist/components/Row/styles.d.ts +1 -9
  220. package/dist/components/SegmentedControls/SegmentedControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  221. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  222. package/dist/components/SegmentedControls/index.cjs.js +1 -0
  223. package/dist/components/SegmentedControls/index.es.js +4 -0
  224. package/dist/components/SegmentedControls/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +22 -0
  225. package/dist/components/SegmentedControls/styles.d.ts +1 -9
  226. package/dist/components/Select/DropdownChevron.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  227. package/dist/components/Select/Select.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  228. package/dist/components/Select/Select.d.ts +5 -2
  229. package/dist/components/Select/__stories__/Select.stories.d.ts +1 -0
  230. package/dist/components/Select/__tests__/Select.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  231. package/dist/components/Select/index.cjs.js +1 -0
  232. package/dist/components/Select/index.es.js +4 -0
  233. package/dist/components/Select/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +129 -0
  234. package/dist/components/Select/styles.d.ts +5 -21
  235. package/dist/components/Shapes/Shapes.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  236. package/dist/components/Shapes/__tests__/Shapes.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  237. package/dist/components/Shapes/index.cjs.js +1 -0
  238. package/dist/components/Shapes/index.es.js +4 -0
  239. package/dist/components/Shapes/variants/Circle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  240. package/dist/components/Shapes/variants/Rectangle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  241. package/dist/components/Shapes/variants/Triangle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  242. package/dist/components/Switch/Switch.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  243. package/dist/components/Switch/__tests__/Switch.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  244. package/dist/components/Switch/index.cjs.js +1 -0
  245. package/dist/components/Switch/index.es.js +4 -0
  246. package/dist/components/Switch/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +58 -0
  247. package/dist/components/Switch/styles.d.ts +1 -7
  248. package/dist/components/Table/Table.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  249. package/dist/components/Table/Table.d.ts +40 -11
  250. package/dist/components/Table/TableControls/PrimaryTableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  251. package/dist/components/Table/TableControls/PrimaryTableControls.d.ts +15 -0
  252. package/dist/components/Table/TableControls/SecondaryTableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  253. package/dist/components/Table/TableControls/SecondaryTableControls.d.ts +10 -0
  254. package/dist/components/Table/TableControls/TableControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  255. package/dist/components/Table/TableControls/TableControls.d.ts +8 -0
  256. package/dist/components/Table/TableControls/__stories__/TableControls.stories.d.ts +6 -0
  257. package/dist/components/Table/TableControls/__tests__/TableControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  258. package/dist/components/Table/TableControls/index.cjs.js +1 -0
  259. package/dist/components/Table/TableControls/index.d.ts +2 -0
  260. package/dist/components/Table/TableControls/index.es.js +4 -0
  261. package/dist/components/Table/TableControls/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +6 -0
  262. package/dist/components/Table/TableControls/styles.d.ts +6 -0
  263. package/dist/components/Table/TableWithControls/TableWithControls.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  264. package/dist/components/Table/TableWithControls/TableWithControls.d.ts +12 -0
  265. package/dist/components/Table/TableWithControls/__stories__/TableWithControls.stories.d.ts +6 -0
  266. package/dist/components/Table/TableWithControls/__stories__/TableWithControlsStory.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  267. package/dist/components/Table/TableWithControls/__stories__/TableWithControlsStory.d.ts +1 -0
  268. package/dist/components/Table/TableWithControls/__tests__/TableWithControls.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  269. package/dist/components/Table/TableWithControls/__tests__/TableWithControls.test.d.ts +1 -0
  270. package/dist/components/Table/TableWithControls/index.cjs.js +1 -0
  271. package/dist/components/Table/TableWithControls/index.d.ts +2 -0
  272. package/dist/components/Table/TableWithControls/index.es.js +4 -0
  273. package/dist/components/Table/__mocks__/table-mocks.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  274. package/dist/components/Table/__mocks__/table-mocks.d.ts +2 -1
  275. package/dist/components/Table/__stories__/GenesisTable.stories.d.ts +3 -0
  276. package/dist/components/Table/__stories__/Table.stories.d.ts +3 -1
  277. package/dist/components/Table/__stories__/use-table-hook.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  278. package/dist/components/Table/__stories__/use-table-hook.d.ts +9 -0
  279. package/dist/components/Table/__tests__/Table.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  280. package/dist/components/Table/index.cjs.js +1 -0
  281. package/dist/components/Table/index.es.js +4 -0
  282. package/dist/components/Table/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  283. package/dist/components/Table/use-table-hook.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  284. package/dist/components/Table/use-table-hook.d.ts +23 -0
  285. package/dist/components/Tabs/Tabs.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  286. package/dist/components/Tabs/__tests__/Tabs.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  287. package/dist/components/Tabs/index.cjs.js +1 -0
  288. package/dist/components/Tabs/index.es.js +4 -0
  289. package/dist/components/Tabs/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +4 -10
  290. package/dist/components/Tabs/styles.d.ts +1 -9
  291. package/dist/components/Tile/Tile.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  292. package/dist/components/Tile/__tests__/Tile.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  293. package/dist/components/Tile/index.cjs.js +1 -0
  294. package/dist/components/Tile/index.es.js +4 -0
  295. package/dist/components/Tile/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +7 -0
  296. package/dist/components/Tile/styles.d.ts +1 -7
  297. package/dist/components/Toast/Toast.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  298. package/dist/components/Toast/__tests__/Toast.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  299. package/dist/components/Toast/index.cjs.js +1 -0
  300. package/dist/components/Toast/index.es.js +4 -0
  301. package/dist/components/Toast/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +38 -0
  302. package/dist/components/Toast/styles.d.ts +3 -9
  303. package/dist/components/Tooltip/Tooltip.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  304. package/dist/components/Tooltip/__tests__/Tooltip.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  305. package/dist/components/Tooltip/index.cjs.js +1 -0
  306. package/dist/components/Tooltip/index.es.js +4 -0
  307. package/dist/components/Tooltip/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +5 -0
  308. package/dist/components/Tooltip/styles.d.ts +1 -14
  309. package/dist/components/Typography/Typography.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  310. package/dist/components/Typography/Typography.d.ts +1 -2
  311. package/dist/components/Typography/__tests__/Typography.test.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  312. package/dist/components/Typography/index.cjs.js +1 -0
  313. package/dist/components/Typography/index.es.js +4 -0
  314. package/dist/components/Typography/styles.[format === /"es/" ? /"js/" : /"cjs/"]" +29 -0
  315. package/dist/components/Typography/styles.d.ts +3 -21
  316. package/dist/components/index.cjs.js +1 -0
  317. package/dist/components/index.d.cjs.js +1 -0
  318. package/dist/components/index.es.js +62 -0
  319. package/dist/constants/index.cjs.js +1 -0
  320. package/dist/{context-CQfFkrkv.js → context-CTca8gjn.js} +3 -3
  321. package/dist/context-DdubDZbV.cjs +1 -0
  322. package/dist/declaration.d.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  323. package/dist/{dropdown-BlRB2LxQ.js → dropdown-CZHhUAdC.js} +13 -13
  324. package/dist/dropdown-DDY5X1Q0.cjs +27 -0
  325. package/dist/generateCategoricalChart-Dcyk3onh.cjs +90 -0
  326. package/dist/genesis/GenesisThemeBreakdown.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  327. package/dist/genesis/GenesisThemeDemo.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  328. package/dist/genesis/{styles.js → styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +3 -10
  329. package/dist/genesis/styles.d.ts +2 -11
  330. package/dist/iconBase-C4boY5mo.cjs +1 -0
  331. package/dist/index-B2Z5NSa0.cjs +4 -0
  332. package/dist/{index-DRGbc-fW.js → index-B56O6LEG.js} +38 -37
  333. package/dist/index-B6nsE0F_.cjs +16 -0
  334. package/dist/index-BD5op9DA.cjs +6 -0
  335. package/dist/{index-BZ050Dyl.js → index-BJgt3NQN.js} +7 -7
  336. package/dist/index-Bj0GOR4e.cjs +1 -0
  337. package/dist/index-Bml8d_Df.cjs +15 -0
  338. package/dist/index-CNA8GQQR.cjs +1 -0
  339. package/dist/index-CSLsxIxR.cjs +1 -0
  340. package/dist/index-CUpwy6fl.cjs +24 -0
  341. package/dist/{index-CzMIlMTV.js → index-CXee0v2G.js} +2 -2
  342. package/dist/{index-C2K1BzmJ.js → index-CYbLY3uE.js} +22 -21
  343. package/dist/{index-DCopujxC.js → index-Ce7BgA_I.js} +32 -32
  344. package/dist/index-Cft4ZDoE.cjs +1 -0
  345. package/dist/{index-Br3D3cFM.js → index-CkrCy-wr.js} +49 -48
  346. package/dist/index-CmiuhnsO.js +11 -0
  347. package/dist/{index-RtWhGOwR.js → index-CsSLy_ri.js} +9 -9
  348. package/dist/{index-Bxbr727t.js → index-D0AjEeN2.js} +1 -1
  349. package/dist/{index-B7FXyiY_.js → index-D76Ewoqp.js} +4 -4
  350. package/dist/{index-BHCqeC4j.js → index-D9i74AKg.js} +11 -11
  351. package/dist/{index-DavB5GQ3.js → index-DAtTGIsZ.js} +19 -19
  352. package/dist/{index-Y0KgiFZb.js → index-DJcvYBdb.js} +9 -9
  353. package/dist/index-DLI4yl_y.cjs +22 -0
  354. package/dist/index-DPPQ1GIl.cjs +10 -0
  355. package/dist/index-DV4cHHkU.cjs +1 -0
  356. package/dist/index-DY6qmEFc.js +23 -0
  357. package/dist/index-DdF9CYRQ.cjs +1 -0
  358. package/dist/index-Dwe6wwhx.cjs +7 -0
  359. package/dist/{index-sX7KZ-nU.js → index-FDGutzXP.js} +42 -42
  360. package/dist/{index-RAH9f-qb.js → index-emugciTm.js} +6 -6
  361. package/dist/index-x6LPvHOw.cjs +17 -0
  362. package/dist/index-zDIwuuqH.cjs +3 -0
  363. package/dist/index.cjs.js +1 -0
  364. package/dist/index.es.js +69 -0
  365. package/dist/interface/address.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  366. package/dist/interface/appointment.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  367. package/dist/interface/appointmentV2.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  368. package/dist/interface/appointmentsState.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  369. package/dist/interface/common.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  370. package/dist/interface/completionData.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  371. package/dist/interface/deliveryPartner.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  372. package/dist/interface/organization.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  373. package/dist/interface/pagination.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  374. package/dist/interface/roles.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  375. package/dist/interface/route.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  376. package/dist/interface/routeAnalysis.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  377. package/dist/interface/routeAutomationJob.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  378. package/dist/interface/routeAutomationLog.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  379. package/dist/interface/routeEvent.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  380. package/dist/interface/serviceArea.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  381. package/dist/interface/util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  382. package/dist/interface/vehicle.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  383. package/dist/interface/workOrder.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  384. package/dist/isVisible-BNxwNfFH.cjs +1 -0
  385. package/dist/magic-string.es-BMxHbF2i.cjs +10 -0
  386. package/dist/motion-B_a-We1F.cjs +1 -0
  387. package/dist/{motion-C-XpKcZG.js → motion-Tyjtqn8t.js} +2 -2
  388. package/dist/omit-BrHx-Kj7.cjs +1 -0
  389. package/dist/pickAttrs-BUFdQiVt.cjs +18 -0
  390. package/dist/presetColors-DyrVjOJc.cjs +1 -0
  391. package/dist/presets-CCbttGCy.cjs +6 -0
  392. package/dist/providers/BreakpointProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  393. package/dist/providers/BreakpointProvider.d.ts +7 -0
  394. package/dist/providers/GenesisProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  395. package/dist/providers/ToastProvider.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  396. package/dist/providers/index.cjs.js +1 -0
  397. package/dist/providers/index.es.js +6 -0
  398. package/dist/providers/useGenesis.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  399. package/dist/providers/useGenesis.d.ts +2 -1
  400. package/dist/reactNode-DcoR9VZw.cjs +1 -0
  401. package/dist/{roundedArrow-BxPlu4Hq.js → roundedArrow-BtSC7b_q.js} +1 -1
  402. package/dist/roundedArrow-i9Dmpgeh.cjs +1 -0
  403. package/dist/{setup-rcqlwLGQ.js → setup-D5hJ8cId.js} +6300 -5518
  404. package/dist/setup-Lma-RJTH.cjs +148 -0
  405. package/dist/setup.types-DNdmb6tK.cjs +46 -0
  406. package/dist/shadow-1q6dM13I.cjs +1 -0
  407. package/dist/statusUtils-DExYjn05.cjs +1 -0
  408. package/dist/styleChecker-Vc3-yig2.cjs +1 -0
  409. package/dist/styles/design-tokens/border-tokens/BorderTokenList.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  410. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  411. package/dist/styles/design-tokens/variables.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  412. package/dist/styles/{global-styles.js → global-styles.[format === /"es/" ? /"js/" : /"cjs/"]" } +2 -6
  413. package/dist/styles/global-styles.d.ts +1 -1
  414. package/dist/styles/theme/genesis-theme.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  415. package/dist/styles/theme/genesis-theme.test.[format === /"es/" ? /"js/" : /"cjs/"]" +3 -0
  416. package/dist/styles/theme/genesis-theme.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  417. package/dist/styles/theme/index.cjs.js +1 -0
  418. package/dist/styles/theme/{index.js → index.es.js} +1 -1
  419. package/dist/styles/theme/theme-tree/ThemeTree.[format === /"es/" ? /"js/" : /"cjs/"]" +7 -0
  420. package/dist/styles-BEj8fZMe.cjs +3 -0
  421. package/dist/styles-BWTP_Zyu.cjs +103 -0
  422. package/dist/styles-BfoQ93tm.cjs +91 -0
  423. package/dist/{styles-Wpm1RiGr.js → styles-Bnh9HSiM.js} +46 -45
  424. package/dist/{styles-XuoEGUZZ.js → styles-CRSK7_lW.js} +135 -122
  425. package/dist/{styles-DNay6iFa.js → styles-CSzrJlJ9.js} +7 -7
  426. package/dist/{index-CupwdUIJ.js → styles-DXLK47iT.js} +167 -157
  427. package/dist/styles-j60Er7XY.cjs +16 -0
  428. package/dist/test/setup.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  429. package/dist/test/setup.types.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  430. package/dist/{toArray-D5kvYi_U.js → toArray-BdEmgTlP.js} +1 -1
  431. package/dist/toArray-Cnq83wS3.cjs +1 -0
  432. package/dist/useBreakpoint-BkvhZP6y.cjs +1 -0
  433. package/dist/{useBreakpoint-ByLol0R9.js → useBreakpoint-C6P2JavP.js} +1 -1
  434. package/dist/{useCSSVarCls-YfJY1twF.js → useCSSVarCls-CwGsW74t.js} +1 -1
  435. package/dist/useCSSVarCls-Eahl89PI.cjs +1 -0
  436. package/dist/{useIcons-CoxuumP_.js → useIcons-BP_qFbBH.js} +3 -3
  437. package/dist/useIcons-elrpktrI.cjs +6 -0
  438. package/dist/useId-BDresUbx.cjs +1 -0
  439. package/dist/useLocale-Ccu6a0gD.cjs +1 -0
  440. package/dist/{useLocale-BQ3mKRyJ.js → useLocale-DkcoQ5u9.js} +1 -1
  441. package/dist/{useMergedState-D1-TbeEv.js → useMergedState-dLe_CnQY.js} +1 -1
  442. package/dist/useMergedState-g1JWsrDw.cjs +1 -0
  443. package/dist/{useSize-Ct1guc-z.js → useSize-D_iM0JXw.js} +1 -1
  444. package/dist/useSize-OiGNe58i.cjs +1 -0
  445. package/dist/{useVariants-C6UAAu9f.js → useVariants-BO1luVHT.js} +3 -3
  446. package/dist/useVariants-CAEx8XcP.cjs +1 -0
  447. package/dist/useZIndex-B720RqFH.cjs +1 -0
  448. package/dist/{useZIndex-tgX56o1r.js → useZIndex-DNLQPZBP.js} +2 -2
  449. package/dist/utils/icon-util.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  450. package/dist/utils/icon-util.d.ts +1 -0
  451. package/dist/utils/styled.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  452. package/dist/utils/styled.d.ts +7 -0
  453. package/dist/vi.B5EKKJdE-CoUxwxV9.cjs +434 -0
  454. package/dist/vite-env.d.[format === /"es/" ? /"js/" : /"cjs/"]" +1 -0
  455. package/package.json +26 -11
  456. package/dist/CSSMotionList-DB0khM6h.js +0 -22193
  457. package/dist/components/Avatar/Avatar.js +0 -63
  458. package/dist/components/Avatar/__tests__/Avatar.test.js +0 -17
  459. package/dist/components/Avatar/index.js +0 -4
  460. package/dist/components/Avatar/styles.js +0 -328
  461. package/dist/components/Badge/Badge.js +0 -72
  462. package/dist/components/Badge/__tests__/Badge.test.js +0 -17
  463. package/dist/components/Badge/index.js +0 -4
  464. package/dist/components/Breadcrumb/Breadcrumb.js +0 -11
  465. package/dist/components/Breadcrumb/__tests__/Breadcrumb.test.js +0 -23
  466. package/dist/components/Breadcrumb/index.js +0 -4
  467. package/dist/components/Breadcrumb/styles.js +0 -415
  468. package/dist/components/Button/Button.js +0 -30
  469. package/dist/components/Button/IconButton.js +0 -29
  470. package/dist/components/Button/UtilityButton.js +0 -29
  471. package/dist/components/Button/__tests__/Button.test.js +0 -18
  472. package/dist/components/Button/index.js +0 -8
  473. package/dist/components/Card/Card.js +0 -16
  474. package/dist/components/Card/__tests__/Card.test.js +0 -16
  475. package/dist/components/Card/index.js +0 -4
  476. package/dist/components/Card/styles.js +0 -12
  477. package/dist/components/Checkbox/Checkbox.js +0 -53
  478. package/dist/components/Checkbox/__tests__/Checkbox.test.js +0 -19
  479. package/dist/components/Checkbox/index.js +0 -4
  480. package/dist/components/Dashboard/Dashboard.js +0 -5
  481. package/dist/components/Dashboard/__mocks__/dashboard-data.js +0 -186
  482. package/dist/components/Dashboard/__stories__/DashboardLayoutContent.js +0 -948
  483. package/dist/components/Dashboard/__stories__/DashboardLayoutHeader.js +0 -87
  484. package/dist/components/Dashboard/__stories__/DashboardLayoutStory.js +0 -23
  485. package/dist/components/Dashboard/__stories__/charts/LineChart.js +0 -534
  486. package/dist/components/Dashboard/__tests__/Dashboard.test.js +0 -16
  487. package/dist/components/Dashboard/index.js +0 -4
  488. package/dist/components/Dashboard/styles.js +0 -11
  489. package/dist/components/DatePicker/DatePicker.js +0 -5
  490. package/dist/components/DatePicker/__tests__/DatePicker.test.js +0 -19
  491. package/dist/components/DatePicker/index.js +0 -4
  492. package/dist/components/DateRangePicker/DateRangePicker.js +0 -5
  493. package/dist/components/DateRangePicker/__tests__/DateRangePicker.test.js +0 -23
  494. package/dist/components/DateRangePicker/index.js +0 -4
  495. package/dist/components/ErrorBoundary/ErrorBoundary.js +0 -74
  496. package/dist/components/ErrorBoundary/__tests__/ErrorBoundary.test.js +0 -30
  497. package/dist/components/ErrorBoundary/index.js +0 -4
  498. package/dist/components/ErrorBoundary/styles.js +0 -11
  499. package/dist/components/ErrorBoundaryFallback/ErrorBoundaryFallback.js +0 -57
  500. package/dist/components/ErrorBoundaryFallback/index.js +0 -4
  501. package/dist/components/ErrorBoundaryFallback/styles.js +0 -933
  502. package/dist/components/Form/Form.js +0 -8
  503. package/dist/components/Form/__stories__/FormStory.js +0 -172
  504. package/dist/components/Form/__tests__/form.test.js +0 -19
  505. package/dist/components/Form/index.js +0 -4
  506. package/dist/components/Form/styles.js +0 -13
  507. package/dist/components/FormBrandon/Form.d.ts +0 -25
  508. package/dist/components/FormBrandon/Form.js +0 -18
  509. package/dist/components/FormBrandon/__stories__/Form.stories.d.ts +0 -6
  510. package/dist/components/FormBrandon/__stories__/FormStory.d.ts +0 -1
  511. package/dist/components/FormBrandon/__stories__/FormStory.js +0 -173
  512. package/dist/components/FormBrandon/__tests__/form.test.js +0 -19
  513. package/dist/components/FormBrandon/index.d.ts +0 -2
  514. package/dist/components/FormBrandon/index.js +0 -4
  515. package/dist/components/FormBrandon/styles.d.ts +0 -2
  516. package/dist/components/FormBrandon/styles.js +0 -13
  517. package/dist/components/Glyph/Glyph.js +0 -9
  518. package/dist/components/Glyph/index.js +0 -4
  519. package/dist/components/Glyph/styles.js +0 -11
  520. package/dist/components/Input/Input.js +0 -22
  521. package/dist/components/Input/__tests__/Input.test.js +0 -25
  522. package/dist/components/Input/index.js +0 -4
  523. package/dist/components/Input/styles.js +0 -6
  524. package/dist/components/Layout/Content/Content.js +0 -32
  525. package/dist/components/Layout/Content/ResponsiveContent.js +0 -83
  526. package/dist/components/Layout/Content/index.js +0 -4
  527. package/dist/components/Layout/Content/styles.js +0 -16
  528. package/dist/components/Layout/Layout.js +0 -6
  529. package/dist/components/Layout/MainLayout/MainLayout.js +0 -28
  530. package/dist/components/Layout/MainLayout/index.js +0 -4
  531. package/dist/components/Layout/MainLayout/styles.js +0 -69
  532. package/dist/components/Layout/__tests__/Layout.test.js +0 -14
  533. package/dist/components/Layout/index.js +0 -4
  534. package/dist/components/Message/Message.js +0 -107
  535. package/dist/components/Message/__tests__/Message.test.js +0 -43
  536. package/dist/components/Message/index.js +0 -4
  537. package/dist/components/Message/styles.js +0 -45
  538. package/dist/components/Notification/Notification.js +0 -1463
  539. package/dist/components/Notification/NotificationBadge/NotificationBadge.js +0 -49
  540. package/dist/components/Notification/NotificationBadge/__tests__/NotificationBadge.test.js +0 -18
  541. package/dist/components/Notification/NotificationBadge/icons/ASN.js +0 -23
  542. package/dist/components/Notification/NotificationBadge/icons/Appointment.js +0 -23
  543. package/dist/components/Notification/NotificationBadge/icons/Inventory.js +0 -23
  544. package/dist/components/Notification/NotificationBadge/icons/Parcel.js +0 -23
  545. package/dist/components/Notification/NotificationBadge/icons/Product.js +0 -23
  546. package/dist/components/Notification/NotificationBadge/icons/Route.js +0 -23
  547. package/dist/components/Notification/NotificationBadge/icons/Shipment.js +0 -23
  548. package/dist/components/Notification/NotificationBadge/icons/ShoppingCart.js +0 -23
  549. package/dist/components/Notification/NotificationBadge/icons/System.js +0 -23
  550. package/dist/components/Notification/NotificationBadge/index.js +0 -4
  551. package/dist/components/Notification/NotificationBadge/styles.js +0 -34
  552. package/dist/components/Notification/NotificationRightChevron.js +0 -23
  553. package/dist/components/Notification/__tests__/Notification.test.js +0 -15
  554. package/dist/components/Notification/index.js +0 -4
  555. package/dist/components/Notification/styles.js +0 -65
  556. package/dist/components/Popover/Popover.js +0 -24
  557. package/dist/components/Popover/__tests__/Popover.test.js +0 -33
  558. package/dist/components/Popover/index.js +0 -4
  559. package/dist/components/Popover/styles.js +0 -6
  560. package/dist/components/Progress/Progress.js +0 -87
  561. package/dist/components/Progress/Progress.util.js +0 -64
  562. package/dist/components/Progress/ProgressText.js +0 -69
  563. package/dist/components/Progress/__tests__/Progress.test.js +0 -21
  564. package/dist/components/Progress/index.js +0 -4
  565. package/dist/components/Progress/styles.js +0 -796
  566. package/dist/components/Radio/Radio.js +0 -46
  567. package/dist/components/Radio/RadioGroup.js +0 -33
  568. package/dist/components/Radio/__tests__/RadioGroup.test.js +0 -31
  569. package/dist/components/Radio/index.js +0 -4
  570. package/dist/components/Radio/states/RadioChecked.js +0 -18
  571. package/dist/components/Radio/states/RadioCheckedDisabled.js +0 -18
  572. package/dist/components/Radio/states/RadioCheckedFocussed.js +0 -30
  573. package/dist/components/Radio/states/RadioCheckedHover.js +0 -18
  574. package/dist/components/Radio/states/RadioUnchecked.js +0 -15
  575. package/dist/components/Radio/states/RadioUncheckedDisabled.js +0 -15
  576. package/dist/components/Radio/states/RadioUncheckedFocussed.js +0 -29
  577. package/dist/components/Radio/states/RadioUncheckedHover.js +0 -18
  578. package/dist/components/Row/Row.js +0 -41
  579. package/dist/components/Row/RowActions/RowActions.js +0 -61
  580. package/dist/components/Row/RowLabelValue/RowLabelValue.js +0 -64
  581. package/dist/components/Row/RowLabelValue/RowSkeleton.js +0 -24
  582. package/dist/components/Row/RowLabelValue/styles.js +0 -25
  583. package/dist/components/Row/__tests__/Row.test.js +0 -16
  584. package/dist/components/Row/index.js +0 -4
  585. package/dist/components/Row/styles.js +0 -15
  586. package/dist/components/SegmentedControls/SegmentedControls.js +0 -26
  587. package/dist/components/SegmentedControls/__tests__/SegmentedControls.test.js +0 -24
  588. package/dist/components/SegmentedControls/index.js +0 -4
  589. package/dist/components/SegmentedControls/styles.js +0 -522
  590. package/dist/components/Select/DropdownChevron.js +0 -23
  591. package/dist/components/Select/Select.js +0 -36
  592. package/dist/components/Select/__tests__/Select.test.js +0 -55
  593. package/dist/components/Select/index.js +0 -4
  594. package/dist/components/Select/styles.js +0 -119
  595. package/dist/components/Shapes/Shapes.js +0 -8
  596. package/dist/components/Shapes/__tests__/Shapes.test.js +0 -16
  597. package/dist/components/Shapes/index.js +0 -4
  598. package/dist/components/Shapes/variants/Circle.js +0 -23
  599. package/dist/components/Shapes/variants/Rectangle.js +0 -23
  600. package/dist/components/Shapes/variants/Triangle.js +0 -23
  601. package/dist/components/Switch/Switch.js +0 -22
  602. package/dist/components/Switch/__tests__/Switch.test.js +0 -25
  603. package/dist/components/Switch/index.js +0 -4
  604. package/dist/components/Switch/styles.js +0 -456
  605. package/dist/components/Table/Table.js +0 -23
  606. package/dist/components/Table/__mocks__/table-mocks.js +0 -323
  607. package/dist/components/Table/__tests__/Table.test.js +0 -34
  608. package/dist/components/Table/index.js +0 -4
  609. package/dist/components/Table/styles.js +0 -6
  610. package/dist/components/Tabs/Tabs.js +0 -23
  611. package/dist/components/Tabs/__tests__/Tabs.test.js +0 -37
  612. package/dist/components/Tabs/index.js +0 -4
  613. package/dist/components/Tile/Tile.js +0 -21
  614. package/dist/components/Tile/__tests__/Tile.test.js +0 -21
  615. package/dist/components/Tile/index.js +0 -4
  616. package/dist/components/Tile/styles.js +0 -12
  617. package/dist/components/Toast/Toast.js +0 -38
  618. package/dist/components/Toast/__tests__/Toast.test.js +0 -19
  619. package/dist/components/Toast/index.js +0 -4
  620. package/dist/components/Toast/styles.js +0 -45
  621. package/dist/components/Tooltip/Tooltip.js +0 -52
  622. package/dist/components/Tooltip/__tests__/Tooltip.test.js +0 -25
  623. package/dist/components/Tooltip/index.js +0 -4
  624. package/dist/components/Tooltip/styles.js +0 -11
  625. package/dist/components/Typography/Typography.js +0 -8
  626. package/dist/components/Typography/__tests__/Typography.test.js +0 -24
  627. package/dist/components/Typography/index.js +0 -4
  628. package/dist/components/Typography/styles.js +0 -84
  629. package/dist/components/index.d.js +0 -1
  630. package/dist/components/index.js +0 -62
  631. package/dist/declaration.d.js +0 -1
  632. package/dist/genesis/GenesisThemeBreakdown.js +0 -146
  633. package/dist/genesis/GenesisThemeDemo.js +0 -7
  634. package/dist/index.js +0 -69
  635. package/dist/interface/address.js +0 -1
  636. package/dist/interface/appointment.js +0 -5
  637. package/dist/interface/appointmentV2.js +0 -1
  638. package/dist/interface/appointmentsState.js +0 -1
  639. package/dist/interface/common.js +0 -1
  640. package/dist/interface/completionData.js +0 -1
  641. package/dist/interface/deliveryPartner.js +0 -1
  642. package/dist/interface/organization.js +0 -1
  643. package/dist/interface/pagination.js +0 -1
  644. package/dist/interface/roles.js +0 -1
  645. package/dist/interface/route.js +0 -1
  646. package/dist/interface/routeAnalysis.js +0 -1
  647. package/dist/interface/routeAutomationJob.js +0 -10
  648. package/dist/interface/routeAutomationLog.js +0 -1
  649. package/dist/interface/routeEvent.js +0 -5
  650. package/dist/interface/serviceArea.js +0 -1
  651. package/dist/interface/util.js +0 -1
  652. package/dist/interface/vehicle.js +0 -1
  653. package/dist/interface/workOrder.js +0 -1
  654. package/dist/providers/BreakpointThemeProvider.d.ts +0 -8
  655. package/dist/providers/BreakpointThemeProvider.js +0 -21
  656. package/dist/providers/GenesisProvider.js +0 -11
  657. package/dist/providers/ToastProvider.js +0 -38
  658. package/dist/providers/index.js +0 -6
  659. package/dist/providers/useGenesis.js +0 -6
  660. package/dist/styled-components.browser.esm-C47QHsU4.js +0 -1211
  661. package/dist/styles/design-tokens/border-tokens/BorderTokenList.js +0 -61
  662. package/dist/styles/design-tokens/sizing-tokens/SizingTokenList.js +0 -65
  663. package/dist/styles/design-tokens/variables.js +0 -699
  664. package/dist/styles/theme/genesis-theme.js +0 -1154
  665. package/dist/styles/theme/genesis-theme.test.js +0 -69
  666. package/dist/styles/theme/genesis-theme.types.js +0 -4
  667. package/dist/styles/theme/theme-tree/ThemeTree.js +0 -1653
  668. package/dist/test/setup.js +0 -91
  669. package/dist/test/setup.types.js +0 -1
  670. package/dist/utils/icon-util.js +0 -93
  671. package/dist/vite-env.d.js +0 -1
  672. /package/dist/components/{FormBrandon/__tests__/form.test.d.ts → Table/TableControls/__tests__/TableControls.test.d.ts} +0 -0
  673. /package/dist/components/{Breadcrumb/Breadcrumb.types.js → index.d.es.js} +0 -0
  674. /package/dist/constants/{index.js → index.es.js} +0 -0
@@ -1,1463 +0,0 @@
1
- import { jsxs as X, jsx as b } from "react/jsx-runtime";
2
- import { SIZE as _, STATE as P, TYPOGRAPHY_VARIANT as S } from "../../constants/index.js";
3
- import "../Avatar/styles.js";
4
- import "../Badge/styles.js";
5
- import "../../providers/BreakpointThemeProvider.js";
6
- import { a as C } from "../../Typography-8BO7aTuQ.js";
7
- import { n as J } from "../../styled-components.browser.esm-C47QHsU4.js";
8
- import "../Breadcrumb/styles.js";
9
- import U from "../Button/Button.js";
10
- import "../Button/icon-button-styles.js";
11
- import "../Card/styles.js";
12
- import "../Checkbox/styles.js";
13
- import "../DateRangePicker/DateRangePicker.js";
14
- import "react";
15
- import "../ErrorBoundaryFallback/styles.js";
16
- import "../../styles-XuoEGUZZ.js";
17
- import "../Layout/Content/styles.js";
18
- import "../Message/styles.js";
19
- import "../../styles-DNay6iFa.js";
20
- import "../Progress/styles.js";
21
- import "../Row/styles.js";
22
- import "../../styles/global-styles.js";
23
- import "../Row/RowLabelValue/styles.js";
24
- import "../Row/RowActions/styles.js";
25
- import "../SegmentedControls/styles.js";
26
- import "../Select/styles.js";
27
- import "../Switch/styles.js";
28
- import "../../styles-Wpm1RiGr.js";
29
- import "../Tabs/styles.js";
30
- import "../Tile/styles.js";
31
- import "../Toast/styles.js";
32
- import "../Tooltip/styles.js";
33
- import K from "./NotificationBadge/NotificationBadge.js";
34
- import { NotificationRow as Z, NotificationUnread as z, NotificationContent as tt, ChevronButton as et } from "./styles.js";
35
- import nt from "./NotificationRightChevron.js";
36
- function d(t) {
37
- const e = Object.prototype.toString.call(t);
38
- return t instanceof Date || typeof t == "object" && e === "[object Date]" ? new t.constructor(+t) : typeof t == "number" || e === "[object Number]" || typeof t == "string" || e === "[object String]" ? new Date(t) : /* @__PURE__ */ new Date(NaN);
39
- }
40
- function D(t, e) {
41
- return t instanceof Date ? new t.constructor(e) : new Date(e);
42
- }
43
- const A = 6048e5, rt = 864e5, W = 43200, H = 1440;
44
- let at = {};
45
- function T() {
46
- return at;
47
- }
48
- function k(t, e) {
49
- var i, u, f, l;
50
- const n = T(), r = (e == null ? void 0 : e.weekStartsOn) ?? ((u = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : u.weekStartsOn) ?? n.weekStartsOn ?? ((l = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : l.weekStartsOn) ?? 0, a = d(t), o = a.getDay(), s = (o < r ? 7 : 0) + o - r;
51
- return a.setDate(a.getDate() - s), a.setHours(0, 0, 0, 0), a;
52
- }
53
- function F(t) {
54
- return k(t, { weekStartsOn: 1 });
55
- }
56
- function B(t) {
57
- const e = d(t), n = e.getFullYear(), r = D(t, 0);
58
- r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
59
- const a = F(r), o = D(t, 0);
60
- o.setFullYear(n, 0, 4), o.setHours(0, 0, 0, 0);
61
- const s = F(o);
62
- return e.getTime() >= a.getTime() ? n + 1 : e.getTime() >= s.getTime() ? n : n - 1;
63
- }
64
- function R(t) {
65
- const e = d(t);
66
- return e.setHours(0, 0, 0, 0), e;
67
- }
68
- function N(t) {
69
- const e = d(t), n = new Date(
70
- Date.UTC(
71
- e.getFullYear(),
72
- e.getMonth(),
73
- e.getDate(),
74
- e.getHours(),
75
- e.getMinutes(),
76
- e.getSeconds(),
77
- e.getMilliseconds()
78
- )
79
- );
80
- return n.setUTCFullYear(e.getFullYear()), +t - +n;
81
- }
82
- function ot(t, e) {
83
- const n = R(t), r = R(e), a = +n - N(n), o = +r - N(r);
84
- return Math.round((a - o) / rt);
85
- }
86
- function it(t) {
87
- const e = B(t), n = D(t, 0);
88
- return n.setFullYear(e, 0, 4), n.setHours(0, 0, 0, 0), F(n);
89
- }
90
- function Y(t, e) {
91
- const n = d(t), r = d(e), a = n.getTime() - r.getTime();
92
- return a < 0 ? -1 : a > 0 ? 1 : a;
93
- }
94
- function st(t) {
95
- return D(t, Date.now());
96
- }
97
- function ct(t) {
98
- return t instanceof Date || typeof t == "object" && Object.prototype.toString.call(t) === "[object Date]";
99
- }
100
- function ut(t) {
101
- if (!ct(t) && typeof t != "number")
102
- return !1;
103
- const e = d(t);
104
- return !isNaN(Number(e));
105
- }
106
- function dt(t, e) {
107
- const n = d(t), r = d(e), a = n.getFullYear() - r.getFullYear(), o = n.getMonth() - r.getMonth();
108
- return a * 12 + o;
109
- }
110
- function ft(t) {
111
- return (e) => {
112
- const r = (t ? Math[t] : Math.trunc)(e);
113
- return r === 0 ? 0 : r;
114
- };
115
- }
116
- function lt(t, e) {
117
- return +d(t) - +d(e);
118
- }
119
- function ht(t) {
120
- const e = d(t);
121
- return e.setHours(23, 59, 59, 999), e;
122
- }
123
- function mt(t) {
124
- const e = d(t), n = e.getMonth();
125
- return e.setFullYear(e.getFullYear(), n + 1, 0), e.setHours(23, 59, 59, 999), e;
126
- }
127
- function gt(t) {
128
- const e = d(t);
129
- return +ht(e) == +mt(e);
130
- }
131
- function wt(t, e) {
132
- const n = d(t), r = d(e), a = Y(n, r), o = Math.abs(
133
- dt(n, r)
134
- );
135
- let s;
136
- if (o < 1)
137
- s = 0;
138
- else {
139
- n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - a * o);
140
- let i = Y(n, r) === -a;
141
- gt(d(t)) && o === 1 && Y(t, r) === 1 && (i = !1), s = a * (o - Number(i));
142
- }
143
- return s === 0 ? 0 : s;
144
- }
145
- function yt(t, e, n) {
146
- const r = lt(t, e) / 1e3;
147
- return ft(n == null ? void 0 : n.roundingMethod)(r);
148
- }
149
- function bt(t) {
150
- const e = d(t), n = D(t, 0);
151
- return n.setFullYear(e.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
152
- }
153
- const Mt = {
154
- lessThanXSeconds: {
155
- one: "less than a second",
156
- other: "less than {{count}} seconds"
157
- },
158
- xSeconds: {
159
- one: "1 second",
160
- other: "{{count}} seconds"
161
- },
162
- halfAMinute: "half a minute",
163
- lessThanXMinutes: {
164
- one: "less than a minute",
165
- other: "less than {{count}} minutes"
166
- },
167
- xMinutes: {
168
- one: "1 minute",
169
- other: "{{count}} minutes"
170
- },
171
- aboutXHours: {
172
- one: "about 1 hour",
173
- other: "about {{count}} hours"
174
- },
175
- xHours: {
176
- one: "1 hour",
177
- other: "{{count}} hours"
178
- },
179
- xDays: {
180
- one: "1 day",
181
- other: "{{count}} days"
182
- },
183
- aboutXWeeks: {
184
- one: "about 1 week",
185
- other: "about {{count}} weeks"
186
- },
187
- xWeeks: {
188
- one: "1 week",
189
- other: "{{count}} weeks"
190
- },
191
- aboutXMonths: {
192
- one: "about 1 month",
193
- other: "about {{count}} months"
194
- },
195
- xMonths: {
196
- one: "1 month",
197
- other: "{{count}} months"
198
- },
199
- aboutXYears: {
200
- one: "about 1 year",
201
- other: "about {{count}} years"
202
- },
203
- xYears: {
204
- one: "1 year",
205
- other: "{{count}} years"
206
- },
207
- overXYears: {
208
- one: "over 1 year",
209
- other: "over {{count}} years"
210
- },
211
- almostXYears: {
212
- one: "almost 1 year",
213
- other: "almost {{count}} years"
214
- }
215
- }, Dt = (t, e, n) => {
216
- let r;
217
- const a = Mt[t];
218
- return typeof a == "string" ? r = a : e === 1 ? r = a.one : r = a.other.replace("{{count}}", e.toString()), n != null && n.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
219
- };
220
- function q(t) {
221
- return (e = {}) => {
222
- const n = e.width ? String(e.width) : t.defaultWidth;
223
- return t.formats[n] || t.formats[t.defaultWidth];
224
- };
225
- }
226
- const pt = {
227
- full: "EEEE, MMMM do, y",
228
- long: "MMMM do, y",
229
- medium: "MMM d, y",
230
- short: "MM/dd/yyyy"
231
- }, Ot = {
232
- full: "h:mm:ss a zzzz",
233
- long: "h:mm:ss a z",
234
- medium: "h:mm:ss a",
235
- short: "h:mm a"
236
- }, Pt = {
237
- full: "{{date}} 'at' {{time}}",
238
- long: "{{date}} 'at' {{time}}",
239
- medium: "{{date}}, {{time}}",
240
- short: "{{date}}, {{time}}"
241
- }, xt = {
242
- date: q({
243
- formats: pt,
244
- defaultWidth: "full"
245
- }),
246
- time: q({
247
- formats: Ot,
248
- defaultWidth: "full"
249
- }),
250
- dateTime: q({
251
- formats: Pt,
252
- defaultWidth: "full"
253
- })
254
- }, vt = {
255
- lastWeek: "'last' eeee 'at' p",
256
- yesterday: "'yesterday at' p",
257
- today: "'today at' p",
258
- tomorrow: "'tomorrow at' p",
259
- nextWeek: "eeee 'at' p",
260
- other: "P"
261
- }, kt = (t, e, n, r) => vt[t];
262
- function x(t) {
263
- return (e, n) => {
264
- const r = n != null && n.context ? String(n.context) : "standalone";
265
- let a;
266
- if (r === "formatting" && t.formattingValues) {
267
- const s = t.defaultFormattingWidth || t.defaultWidth, i = n != null && n.width ? String(n.width) : s;
268
- a = t.formattingValues[i] || t.formattingValues[s];
269
- } else {
270
- const s = t.defaultWidth, i = n != null && n.width ? String(n.width) : t.defaultWidth;
271
- a = t.values[i] || t.values[s];
272
- }
273
- const o = t.argumentCallback ? t.argumentCallback(e) : e;
274
- return a[o];
275
- };
276
- }
277
- const Tt = {
278
- narrow: ["B", "A"],
279
- abbreviated: ["BC", "AD"],
280
- wide: ["Before Christ", "Anno Domini"]
281
- }, St = {
282
- narrow: ["1", "2", "3", "4"],
283
- abbreviated: ["Q1", "Q2", "Q3", "Q4"],
284
- wide: ["1st quarter", "2nd quarter", "3rd quarter", "4th quarter"]
285
- }, Wt = {
286
- narrow: ["J", "F", "M", "A", "M", "J", "J", "A", "S", "O", "N", "D"],
287
- abbreviated: [
288
- "Jan",
289
- "Feb",
290
- "Mar",
291
- "Apr",
292
- "May",
293
- "Jun",
294
- "Jul",
295
- "Aug",
296
- "Sep",
297
- "Oct",
298
- "Nov",
299
- "Dec"
300
- ],
301
- wide: [
302
- "January",
303
- "February",
304
- "March",
305
- "April",
306
- "May",
307
- "June",
308
- "July",
309
- "August",
310
- "September",
311
- "October",
312
- "November",
313
- "December"
314
- ]
315
- }, Yt = {
316
- narrow: ["S", "M", "T", "W", "T", "F", "S"],
317
- short: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
318
- abbreviated: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
319
- wide: [
320
- "Sunday",
321
- "Monday",
322
- "Tuesday",
323
- "Wednesday",
324
- "Thursday",
325
- "Friday",
326
- "Saturday"
327
- ]
328
- }, Ft = {
329
- narrow: {
330
- am: "a",
331
- pm: "p",
332
- midnight: "mi",
333
- noon: "n",
334
- morning: "morning",
335
- afternoon: "afternoon",
336
- evening: "evening",
337
- night: "night"
338
- },
339
- abbreviated: {
340
- am: "AM",
341
- pm: "PM",
342
- midnight: "midnight",
343
- noon: "noon",
344
- morning: "morning",
345
- afternoon: "afternoon",
346
- evening: "evening",
347
- night: "night"
348
- },
349
- wide: {
350
- am: "a.m.",
351
- pm: "p.m.",
352
- midnight: "midnight",
353
- noon: "noon",
354
- morning: "morning",
355
- afternoon: "afternoon",
356
- evening: "evening",
357
- night: "night"
358
- }
359
- }, Nt = {
360
- narrow: {
361
- am: "a",
362
- pm: "p",
363
- midnight: "mi",
364
- noon: "n",
365
- morning: "in the morning",
366
- afternoon: "in the afternoon",
367
- evening: "in the evening",
368
- night: "at night"
369
- },
370
- abbreviated: {
371
- am: "AM",
372
- pm: "PM",
373
- midnight: "midnight",
374
- noon: "noon",
375
- morning: "in the morning",
376
- afternoon: "in the afternoon",
377
- evening: "in the evening",
378
- night: "at night"
379
- },
380
- wide: {
381
- am: "a.m.",
382
- pm: "p.m.",
383
- midnight: "midnight",
384
- noon: "noon",
385
- morning: "in the morning",
386
- afternoon: "in the afternoon",
387
- evening: "in the evening",
388
- night: "at night"
389
- }
390
- }, Et = (t, e) => {
391
- const n = Number(t), r = n % 100;
392
- if (r > 20 || r < 10)
393
- switch (r % 10) {
394
- case 1:
395
- return n + "st";
396
- case 2:
397
- return n + "nd";
398
- case 3:
399
- return n + "rd";
400
- }
401
- return n + "th";
402
- }, Ct = {
403
- ordinalNumber: Et,
404
- era: x({
405
- values: Tt,
406
- defaultWidth: "wide"
407
- }),
408
- quarter: x({
409
- values: St,
410
- defaultWidth: "wide",
411
- argumentCallback: (t) => t - 1
412
- }),
413
- month: x({
414
- values: Wt,
415
- defaultWidth: "wide"
416
- }),
417
- day: x({
418
- values: Yt,
419
- defaultWidth: "wide"
420
- }),
421
- dayPeriod: x({
422
- values: Ft,
423
- defaultWidth: "wide",
424
- formattingValues: Nt,
425
- defaultFormattingWidth: "wide"
426
- })
427
- };
428
- function v(t) {
429
- return (e, n = {}) => {
430
- const r = n.width, a = r && t.matchPatterns[r] || t.matchPatterns[t.defaultMatchWidth], o = e.match(a);
431
- if (!o)
432
- return null;
433
- const s = o[0], i = r && t.parsePatterns[r] || t.parsePatterns[t.defaultParseWidth], u = Array.isArray(i) ? Xt(i, (w) => w.test(s)) : (
434
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
435
- qt(i, (w) => w.test(s))
436
- );
437
- let f;
438
- f = t.valueCallback ? t.valueCallback(u) : u, f = n.valueCallback ? (
439
- // eslint-disable-next-line @typescript-eslint/no-explicit-any -- I challange you to fix the type
440
- n.valueCallback(f)
441
- ) : f;
442
- const l = e.slice(s.length);
443
- return { value: f, rest: l };
444
- };
445
- }
446
- function qt(t, e) {
447
- for (const n in t)
448
- if (Object.prototype.hasOwnProperty.call(t, n) && e(t[n]))
449
- return n;
450
- }
451
- function Xt(t, e) {
452
- for (let n = 0; n < t.length; n++)
453
- if (e(t[n]))
454
- return n;
455
- }
456
- function _t(t) {
457
- return (e, n = {}) => {
458
- const r = e.match(t.matchPattern);
459
- if (!r) return null;
460
- const a = r[0], o = e.match(t.parsePattern);
461
- if (!o) return null;
462
- let s = t.valueCallback ? t.valueCallback(o[0]) : o[0];
463
- s = n.valueCallback ? n.valueCallback(s) : s;
464
- const i = e.slice(a.length);
465
- return { value: s, rest: i };
466
- };
467
- }
468
- const Ht = /^(\d+)(th|st|nd|rd)?/i, Rt = /\d+/i, Lt = {
469
- narrow: /^(b|a)/i,
470
- abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
471
- wide: /^(before christ|before common era|anno domini|common era)/i
472
- }, jt = {
473
- any: [/^b/i, /^(a|c)/i]
474
- }, It = {
475
- narrow: /^[1234]/i,
476
- abbreviated: /^q[1234]/i,
477
- wide: /^[1234](th|st|nd|rd)? quarter/i
478
- }, Qt = {
479
- any: [/1/i, /2/i, /3/i, /4/i]
480
- }, At = {
481
- narrow: /^[jfmasond]/i,
482
- abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
483
- wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
484
- }, Bt = {
485
- narrow: [
486
- /^j/i,
487
- /^f/i,
488
- /^m/i,
489
- /^a/i,
490
- /^m/i,
491
- /^j/i,
492
- /^j/i,
493
- /^a/i,
494
- /^s/i,
495
- /^o/i,
496
- /^n/i,
497
- /^d/i
498
- ],
499
- any: [
500
- /^ja/i,
501
- /^f/i,
502
- /^mar/i,
503
- /^ap/i,
504
- /^may/i,
505
- /^jun/i,
506
- /^jul/i,
507
- /^au/i,
508
- /^s/i,
509
- /^o/i,
510
- /^n/i,
511
- /^d/i
512
- ]
513
- }, Gt = {
514
- narrow: /^[smtwf]/i,
515
- short: /^(su|mo|tu|we|th|fr|sa)/i,
516
- abbreviated: /^(sun|mon|tue|wed|thu|fri|sat)/i,
517
- wide: /^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i
518
- }, Vt = {
519
- narrow: [/^s/i, /^m/i, /^t/i, /^w/i, /^t/i, /^f/i, /^s/i],
520
- any: [/^su/i, /^m/i, /^tu/i, /^w/i, /^th/i, /^f/i, /^sa/i]
521
- }, $t = {
522
- narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
523
- any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
524
- }, Jt = {
525
- any: {
526
- am: /^a/i,
527
- pm: /^p/i,
528
- midnight: /^mi/i,
529
- noon: /^no/i,
530
- morning: /morning/i,
531
- afternoon: /afternoon/i,
532
- evening: /evening/i,
533
- night: /night/i
534
- }
535
- }, Ut = {
536
- ordinalNumber: _t({
537
- matchPattern: Ht,
538
- parsePattern: Rt,
539
- valueCallback: (t) => parseInt(t, 10)
540
- }),
541
- era: v({
542
- matchPatterns: Lt,
543
- defaultMatchWidth: "wide",
544
- parsePatterns: jt,
545
- defaultParseWidth: "any"
546
- }),
547
- quarter: v({
548
- matchPatterns: It,
549
- defaultMatchWidth: "wide",
550
- parsePatterns: Qt,
551
- defaultParseWidth: "any",
552
- valueCallback: (t) => t + 1
553
- }),
554
- month: v({
555
- matchPatterns: At,
556
- defaultMatchWidth: "wide",
557
- parsePatterns: Bt,
558
- defaultParseWidth: "any"
559
- }),
560
- day: v({
561
- matchPatterns: Gt,
562
- defaultMatchWidth: "wide",
563
- parsePatterns: Vt,
564
- defaultParseWidth: "any"
565
- }),
566
- dayPeriod: v({
567
- matchPatterns: $t,
568
- defaultMatchWidth: "any",
569
- parsePatterns: Jt,
570
- defaultParseWidth: "any"
571
- })
572
- }, G = {
573
- code: "en-US",
574
- formatDistance: Dt,
575
- formatLong: xt,
576
- formatRelative: kt,
577
- localize: Ct,
578
- match: Ut,
579
- options: {
580
- weekStartsOn: 0,
581
- firstWeekContainsDate: 1
582
- }
583
- };
584
- function Kt(t) {
585
- const e = d(t);
586
- return ot(e, bt(e)) + 1;
587
- }
588
- function Zt(t) {
589
- const e = d(t), n = +F(e) - +it(e);
590
- return Math.round(n / A) + 1;
591
- }
592
- function V(t, e) {
593
- var l, w, h, y;
594
- const n = d(t), r = n.getFullYear(), a = T(), o = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((w = (l = e == null ? void 0 : e.locale) == null ? void 0 : l.options) == null ? void 0 : w.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((y = (h = a.locale) == null ? void 0 : h.options) == null ? void 0 : y.firstWeekContainsDate) ?? 1, s = D(t, 0);
595
- s.setFullYear(r + 1, 0, o), s.setHours(0, 0, 0, 0);
596
- const i = k(s, e), u = D(t, 0);
597
- u.setFullYear(r, 0, o), u.setHours(0, 0, 0, 0);
598
- const f = k(u, e);
599
- return n.getTime() >= i.getTime() ? r + 1 : n.getTime() >= f.getTime() ? r : r - 1;
600
- }
601
- function zt(t, e) {
602
- var i, u, f, l;
603
- const n = T(), r = (e == null ? void 0 : e.firstWeekContainsDate) ?? ((u = (i = e == null ? void 0 : e.locale) == null ? void 0 : i.options) == null ? void 0 : u.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((l = (f = n.locale) == null ? void 0 : f.options) == null ? void 0 : l.firstWeekContainsDate) ?? 1, a = V(t, e), o = D(t, 0);
604
- return o.setFullYear(a, 0, r), o.setHours(0, 0, 0, 0), k(o, e);
605
- }
606
- function te(t, e) {
607
- const n = d(t), r = +k(n, e) - +zt(n, e);
608
- return Math.round(r / A) + 1;
609
- }
610
- function c(t, e) {
611
- const n = t < 0 ? "-" : "", r = Math.abs(t).toString().padStart(e, "0");
612
- return n + r;
613
- }
614
- const M = {
615
- // Year
616
- y(t, e) {
617
- const n = t.getFullYear(), r = n > 0 ? n : 1 - n;
618
- return c(e === "yy" ? r % 100 : r, e.length);
619
- },
620
- // Month
621
- M(t, e) {
622
- const n = t.getMonth();
623
- return e === "M" ? String(n + 1) : c(n + 1, 2);
624
- },
625
- // Day of the month
626
- d(t, e) {
627
- return c(t.getDate(), e.length);
628
- },
629
- // AM or PM
630
- a(t, e) {
631
- const n = t.getHours() / 12 >= 1 ? "pm" : "am";
632
- switch (e) {
633
- case "a":
634
- case "aa":
635
- return n.toUpperCase();
636
- case "aaa":
637
- return n;
638
- case "aaaaa":
639
- return n[0];
640
- case "aaaa":
641
- default:
642
- return n === "am" ? "a.m." : "p.m.";
643
- }
644
- },
645
- // Hour [1-12]
646
- h(t, e) {
647
- return c(t.getHours() % 12 || 12, e.length);
648
- },
649
- // Hour [0-23]
650
- H(t, e) {
651
- return c(t.getHours(), e.length);
652
- },
653
- // Minute
654
- m(t, e) {
655
- return c(t.getMinutes(), e.length);
656
- },
657
- // Second
658
- s(t, e) {
659
- return c(t.getSeconds(), e.length);
660
- },
661
- // Fraction of second
662
- S(t, e) {
663
- const n = e.length, r = t.getMilliseconds(), a = Math.trunc(
664
- r * Math.pow(10, n - 3)
665
- );
666
- return c(a, e.length);
667
- }
668
- }, O = {
669
- midnight: "midnight",
670
- noon: "noon",
671
- morning: "morning",
672
- afternoon: "afternoon",
673
- evening: "evening",
674
- night: "night"
675
- }, L = {
676
- // Era
677
- G: function(t, e, n) {
678
- const r = t.getFullYear() > 0 ? 1 : 0;
679
- switch (e) {
680
- // AD, BC
681
- case "G":
682
- case "GG":
683
- case "GGG":
684
- return n.era(r, { width: "abbreviated" });
685
- // A, B
686
- case "GGGGG":
687
- return n.era(r, { width: "narrow" });
688
- // Anno Domini, Before Christ
689
- case "GGGG":
690
- default:
691
- return n.era(r, { width: "wide" });
692
- }
693
- },
694
- // Year
695
- y: function(t, e, n) {
696
- if (e === "yo") {
697
- const r = t.getFullYear(), a = r > 0 ? r : 1 - r;
698
- return n.ordinalNumber(a, { unit: "year" });
699
- }
700
- return M.y(t, e);
701
- },
702
- // Local week-numbering year
703
- Y: function(t, e, n, r) {
704
- const a = V(t, r), o = a > 0 ? a : 1 - a;
705
- if (e === "YY") {
706
- const s = o % 100;
707
- return c(s, 2);
708
- }
709
- return e === "Yo" ? n.ordinalNumber(o, { unit: "year" }) : c(o, e.length);
710
- },
711
- // ISO week-numbering year
712
- R: function(t, e) {
713
- const n = B(t);
714
- return c(n, e.length);
715
- },
716
- // Extended year. This is a single number designating the year of this calendar system.
717
- // The main difference between `y` and `u` localizers are B.C. years:
718
- // | Year | `y` | `u` |
719
- // |------|-----|-----|
720
- // | AC 1 | 1 | 1 |
721
- // | BC 1 | 1 | 0 |
722
- // | BC 2 | 2 | -1 |
723
- // Also `yy` always returns the last two digits of a year,
724
- // while `uu` pads single digit years to 2 characters and returns other years unchanged.
725
- u: function(t, e) {
726
- const n = t.getFullYear();
727
- return c(n, e.length);
728
- },
729
- // Quarter
730
- Q: function(t, e, n) {
731
- const r = Math.ceil((t.getMonth() + 1) / 3);
732
- switch (e) {
733
- // 1, 2, 3, 4
734
- case "Q":
735
- return String(r);
736
- // 01, 02, 03, 04
737
- case "QQ":
738
- return c(r, 2);
739
- // 1st, 2nd, 3rd, 4th
740
- case "Qo":
741
- return n.ordinalNumber(r, { unit: "quarter" });
742
- // Q1, Q2, Q3, Q4
743
- case "QQQ":
744
- return n.quarter(r, {
745
- width: "abbreviated",
746
- context: "formatting"
747
- });
748
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
749
- case "QQQQQ":
750
- return n.quarter(r, {
751
- width: "narrow",
752
- context: "formatting"
753
- });
754
- // 1st quarter, 2nd quarter, ...
755
- case "QQQQ":
756
- default:
757
- return n.quarter(r, {
758
- width: "wide",
759
- context: "formatting"
760
- });
761
- }
762
- },
763
- // Stand-alone quarter
764
- q: function(t, e, n) {
765
- const r = Math.ceil((t.getMonth() + 1) / 3);
766
- switch (e) {
767
- // 1, 2, 3, 4
768
- case "q":
769
- return String(r);
770
- // 01, 02, 03, 04
771
- case "qq":
772
- return c(r, 2);
773
- // 1st, 2nd, 3rd, 4th
774
- case "qo":
775
- return n.ordinalNumber(r, { unit: "quarter" });
776
- // Q1, Q2, Q3, Q4
777
- case "qqq":
778
- return n.quarter(r, {
779
- width: "abbreviated",
780
- context: "standalone"
781
- });
782
- // 1, 2, 3, 4 (narrow quarter; could be not numerical)
783
- case "qqqqq":
784
- return n.quarter(r, {
785
- width: "narrow",
786
- context: "standalone"
787
- });
788
- // 1st quarter, 2nd quarter, ...
789
- case "qqqq":
790
- default:
791
- return n.quarter(r, {
792
- width: "wide",
793
- context: "standalone"
794
- });
795
- }
796
- },
797
- // Month
798
- M: function(t, e, n) {
799
- const r = t.getMonth();
800
- switch (e) {
801
- case "M":
802
- case "MM":
803
- return M.M(t, e);
804
- // 1st, 2nd, ..., 12th
805
- case "Mo":
806
- return n.ordinalNumber(r + 1, { unit: "month" });
807
- // Jan, Feb, ..., Dec
808
- case "MMM":
809
- return n.month(r, {
810
- width: "abbreviated",
811
- context: "formatting"
812
- });
813
- // J, F, ..., D
814
- case "MMMMM":
815
- return n.month(r, {
816
- width: "narrow",
817
- context: "formatting"
818
- });
819
- // January, February, ..., December
820
- case "MMMM":
821
- default:
822
- return n.month(r, { width: "wide", context: "formatting" });
823
- }
824
- },
825
- // Stand-alone month
826
- L: function(t, e, n) {
827
- const r = t.getMonth();
828
- switch (e) {
829
- // 1, 2, ..., 12
830
- case "L":
831
- return String(r + 1);
832
- // 01, 02, ..., 12
833
- case "LL":
834
- return c(r + 1, 2);
835
- // 1st, 2nd, ..., 12th
836
- case "Lo":
837
- return n.ordinalNumber(r + 1, { unit: "month" });
838
- // Jan, Feb, ..., Dec
839
- case "LLL":
840
- return n.month(r, {
841
- width: "abbreviated",
842
- context: "standalone"
843
- });
844
- // J, F, ..., D
845
- case "LLLLL":
846
- return n.month(r, {
847
- width: "narrow",
848
- context: "standalone"
849
- });
850
- // January, February, ..., December
851
- case "LLLL":
852
- default:
853
- return n.month(r, { width: "wide", context: "standalone" });
854
- }
855
- },
856
- // Local week of year
857
- w: function(t, e, n, r) {
858
- const a = te(t, r);
859
- return e === "wo" ? n.ordinalNumber(a, { unit: "week" }) : c(a, e.length);
860
- },
861
- // ISO week of year
862
- I: function(t, e, n) {
863
- const r = Zt(t);
864
- return e === "Io" ? n.ordinalNumber(r, { unit: "week" }) : c(r, e.length);
865
- },
866
- // Day of the month
867
- d: function(t, e, n) {
868
- return e === "do" ? n.ordinalNumber(t.getDate(), { unit: "date" }) : M.d(t, e);
869
- },
870
- // Day of year
871
- D: function(t, e, n) {
872
- const r = Kt(t);
873
- return e === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : c(r, e.length);
874
- },
875
- // Day of week
876
- E: function(t, e, n) {
877
- const r = t.getDay();
878
- switch (e) {
879
- // Tue
880
- case "E":
881
- case "EE":
882
- case "EEE":
883
- return n.day(r, {
884
- width: "abbreviated",
885
- context: "formatting"
886
- });
887
- // T
888
- case "EEEEE":
889
- return n.day(r, {
890
- width: "narrow",
891
- context: "formatting"
892
- });
893
- // Tu
894
- case "EEEEEE":
895
- return n.day(r, {
896
- width: "short",
897
- context: "formatting"
898
- });
899
- // Tuesday
900
- case "EEEE":
901
- default:
902
- return n.day(r, {
903
- width: "wide",
904
- context: "formatting"
905
- });
906
- }
907
- },
908
- // Local day of week
909
- e: function(t, e, n, r) {
910
- const a = t.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
911
- switch (e) {
912
- // Numerical value (Nth day of week with current locale or weekStartsOn)
913
- case "e":
914
- return String(o);
915
- // Padded numerical value
916
- case "ee":
917
- return c(o, 2);
918
- // 1st, 2nd, ..., 7th
919
- case "eo":
920
- return n.ordinalNumber(o, { unit: "day" });
921
- case "eee":
922
- return n.day(a, {
923
- width: "abbreviated",
924
- context: "formatting"
925
- });
926
- // T
927
- case "eeeee":
928
- return n.day(a, {
929
- width: "narrow",
930
- context: "formatting"
931
- });
932
- // Tu
933
- case "eeeeee":
934
- return n.day(a, {
935
- width: "short",
936
- context: "formatting"
937
- });
938
- // Tuesday
939
- case "eeee":
940
- default:
941
- return n.day(a, {
942
- width: "wide",
943
- context: "formatting"
944
- });
945
- }
946
- },
947
- // Stand-alone local day of week
948
- c: function(t, e, n, r) {
949
- const a = t.getDay(), o = (a - r.weekStartsOn + 8) % 7 || 7;
950
- switch (e) {
951
- // Numerical value (same as in `e`)
952
- case "c":
953
- return String(o);
954
- // Padded numerical value
955
- case "cc":
956
- return c(o, e.length);
957
- // 1st, 2nd, ..., 7th
958
- case "co":
959
- return n.ordinalNumber(o, { unit: "day" });
960
- case "ccc":
961
- return n.day(a, {
962
- width: "abbreviated",
963
- context: "standalone"
964
- });
965
- // T
966
- case "ccccc":
967
- return n.day(a, {
968
- width: "narrow",
969
- context: "standalone"
970
- });
971
- // Tu
972
- case "cccccc":
973
- return n.day(a, {
974
- width: "short",
975
- context: "standalone"
976
- });
977
- // Tuesday
978
- case "cccc":
979
- default:
980
- return n.day(a, {
981
- width: "wide",
982
- context: "standalone"
983
- });
984
- }
985
- },
986
- // ISO day of week
987
- i: function(t, e, n) {
988
- const r = t.getDay(), a = r === 0 ? 7 : r;
989
- switch (e) {
990
- // 2
991
- case "i":
992
- return String(a);
993
- // 02
994
- case "ii":
995
- return c(a, e.length);
996
- // 2nd
997
- case "io":
998
- return n.ordinalNumber(a, { unit: "day" });
999
- // Tue
1000
- case "iii":
1001
- return n.day(r, {
1002
- width: "abbreviated",
1003
- context: "formatting"
1004
- });
1005
- // T
1006
- case "iiiii":
1007
- return n.day(r, {
1008
- width: "narrow",
1009
- context: "formatting"
1010
- });
1011
- // Tu
1012
- case "iiiiii":
1013
- return n.day(r, {
1014
- width: "short",
1015
- context: "formatting"
1016
- });
1017
- // Tuesday
1018
- case "iiii":
1019
- default:
1020
- return n.day(r, {
1021
- width: "wide",
1022
- context: "formatting"
1023
- });
1024
- }
1025
- },
1026
- // AM or PM
1027
- a: function(t, e, n) {
1028
- const a = t.getHours() / 12 >= 1 ? "pm" : "am";
1029
- switch (e) {
1030
- case "a":
1031
- case "aa":
1032
- return n.dayPeriod(a, {
1033
- width: "abbreviated",
1034
- context: "formatting"
1035
- });
1036
- case "aaa":
1037
- return n.dayPeriod(a, {
1038
- width: "abbreviated",
1039
- context: "formatting"
1040
- }).toLowerCase();
1041
- case "aaaaa":
1042
- return n.dayPeriod(a, {
1043
- width: "narrow",
1044
- context: "formatting"
1045
- });
1046
- case "aaaa":
1047
- default:
1048
- return n.dayPeriod(a, {
1049
- width: "wide",
1050
- context: "formatting"
1051
- });
1052
- }
1053
- },
1054
- // AM, PM, midnight, noon
1055
- b: function(t, e, n) {
1056
- const r = t.getHours();
1057
- let a;
1058
- switch (r === 12 ? a = O.noon : r === 0 ? a = O.midnight : a = r / 12 >= 1 ? "pm" : "am", e) {
1059
- case "b":
1060
- case "bb":
1061
- return n.dayPeriod(a, {
1062
- width: "abbreviated",
1063
- context: "formatting"
1064
- });
1065
- case "bbb":
1066
- return n.dayPeriod(a, {
1067
- width: "abbreviated",
1068
- context: "formatting"
1069
- }).toLowerCase();
1070
- case "bbbbb":
1071
- return n.dayPeriod(a, {
1072
- width: "narrow",
1073
- context: "formatting"
1074
- });
1075
- case "bbbb":
1076
- default:
1077
- return n.dayPeriod(a, {
1078
- width: "wide",
1079
- context: "formatting"
1080
- });
1081
- }
1082
- },
1083
- // in the morning, in the afternoon, in the evening, at night
1084
- B: function(t, e, n) {
1085
- const r = t.getHours();
1086
- let a;
1087
- switch (r >= 17 ? a = O.evening : r >= 12 ? a = O.afternoon : r >= 4 ? a = O.morning : a = O.night, e) {
1088
- case "B":
1089
- case "BB":
1090
- case "BBB":
1091
- return n.dayPeriod(a, {
1092
- width: "abbreviated",
1093
- context: "formatting"
1094
- });
1095
- case "BBBBB":
1096
- return n.dayPeriod(a, {
1097
- width: "narrow",
1098
- context: "formatting"
1099
- });
1100
- case "BBBB":
1101
- default:
1102
- return n.dayPeriod(a, {
1103
- width: "wide",
1104
- context: "formatting"
1105
- });
1106
- }
1107
- },
1108
- // Hour [1-12]
1109
- h: function(t, e, n) {
1110
- if (e === "ho") {
1111
- let r = t.getHours() % 12;
1112
- return r === 0 && (r = 12), n.ordinalNumber(r, { unit: "hour" });
1113
- }
1114
- return M.h(t, e);
1115
- },
1116
- // Hour [0-23]
1117
- H: function(t, e, n) {
1118
- return e === "Ho" ? n.ordinalNumber(t.getHours(), { unit: "hour" }) : M.H(t, e);
1119
- },
1120
- // Hour [0-11]
1121
- K: function(t, e, n) {
1122
- const r = t.getHours() % 12;
1123
- return e === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : c(r, e.length);
1124
- },
1125
- // Hour [1-24]
1126
- k: function(t, e, n) {
1127
- let r = t.getHours();
1128
- return r === 0 && (r = 24), e === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : c(r, e.length);
1129
- },
1130
- // Minute
1131
- m: function(t, e, n) {
1132
- return e === "mo" ? n.ordinalNumber(t.getMinutes(), { unit: "minute" }) : M.m(t, e);
1133
- },
1134
- // Second
1135
- s: function(t, e, n) {
1136
- return e === "so" ? n.ordinalNumber(t.getSeconds(), { unit: "second" }) : M.s(t, e);
1137
- },
1138
- // Fraction of second
1139
- S: function(t, e) {
1140
- return M.S(t, e);
1141
- },
1142
- // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
1143
- X: function(t, e, n) {
1144
- const r = t.getTimezoneOffset();
1145
- if (r === 0)
1146
- return "Z";
1147
- switch (e) {
1148
- // Hours and optional minutes
1149
- case "X":
1150
- return I(r);
1151
- // Hours, minutes and optional seconds without `:` delimiter
1152
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1153
- // so this token always has the same output as `XX`
1154
- case "XXXX":
1155
- case "XX":
1156
- return p(r);
1157
- // Hours, minutes and optional seconds with `:` delimiter
1158
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1159
- // so this token always has the same output as `XXX`
1160
- case "XXXXX":
1161
- case "XXX":
1162
- // Hours and minutes with `:` delimiter
1163
- default:
1164
- return p(r, ":");
1165
- }
1166
- },
1167
- // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
1168
- x: function(t, e, n) {
1169
- const r = t.getTimezoneOffset();
1170
- switch (e) {
1171
- // Hours and optional minutes
1172
- case "x":
1173
- return I(r);
1174
- // Hours, minutes and optional seconds without `:` delimiter
1175
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1176
- // so this token always has the same output as `xx`
1177
- case "xxxx":
1178
- case "xx":
1179
- return p(r);
1180
- // Hours, minutes and optional seconds with `:` delimiter
1181
- // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
1182
- // so this token always has the same output as `xxx`
1183
- case "xxxxx":
1184
- case "xxx":
1185
- // Hours and minutes with `:` delimiter
1186
- default:
1187
- return p(r, ":");
1188
- }
1189
- },
1190
- // Timezone (GMT)
1191
- O: function(t, e, n) {
1192
- const r = t.getTimezoneOffset();
1193
- switch (e) {
1194
- // Short
1195
- case "O":
1196
- case "OO":
1197
- case "OOO":
1198
- return "GMT" + j(r, ":");
1199
- // Long
1200
- case "OOOO":
1201
- default:
1202
- return "GMT" + p(r, ":");
1203
- }
1204
- },
1205
- // Timezone (specific non-location)
1206
- z: function(t, e, n) {
1207
- const r = t.getTimezoneOffset();
1208
- switch (e) {
1209
- // Short
1210
- case "z":
1211
- case "zz":
1212
- case "zzz":
1213
- return "GMT" + j(r, ":");
1214
- // Long
1215
- case "zzzz":
1216
- default:
1217
- return "GMT" + p(r, ":");
1218
- }
1219
- },
1220
- // Seconds timestamp
1221
- t: function(t, e, n) {
1222
- const r = Math.trunc(t.getTime() / 1e3);
1223
- return c(r, e.length);
1224
- },
1225
- // Milliseconds timestamp
1226
- T: function(t, e, n) {
1227
- const r = t.getTime();
1228
- return c(r, e.length);
1229
- }
1230
- };
1231
- function j(t, e = "") {
1232
- const n = t > 0 ? "-" : "+", r = Math.abs(t), a = Math.trunc(r / 60), o = r % 60;
1233
- return o === 0 ? n + String(a) : n + String(a) + e + c(o, 2);
1234
- }
1235
- function I(t, e) {
1236
- return t % 60 === 0 ? (t > 0 ? "-" : "+") + c(Math.abs(t) / 60, 2) : p(t, e);
1237
- }
1238
- function p(t, e = "") {
1239
- const n = t > 0 ? "-" : "+", r = Math.abs(t), a = c(Math.trunc(r / 60), 2), o = c(r % 60, 2);
1240
- return n + a + e + o;
1241
- }
1242
- const Q = (t, e) => {
1243
- switch (t) {
1244
- case "P":
1245
- return e.date({ width: "short" });
1246
- case "PP":
1247
- return e.date({ width: "medium" });
1248
- case "PPP":
1249
- return e.date({ width: "long" });
1250
- case "PPPP":
1251
- default:
1252
- return e.date({ width: "full" });
1253
- }
1254
- }, $ = (t, e) => {
1255
- switch (t) {
1256
- case "p":
1257
- return e.time({ width: "short" });
1258
- case "pp":
1259
- return e.time({ width: "medium" });
1260
- case "ppp":
1261
- return e.time({ width: "long" });
1262
- case "pppp":
1263
- default:
1264
- return e.time({ width: "full" });
1265
- }
1266
- }, ee = (t, e) => {
1267
- const n = t.match(/(P+)(p+)?/) || [], r = n[1], a = n[2];
1268
- if (!a)
1269
- return Q(t, e);
1270
- let o;
1271
- switch (r) {
1272
- case "P":
1273
- o = e.dateTime({ width: "short" });
1274
- break;
1275
- case "PP":
1276
- o = e.dateTime({ width: "medium" });
1277
- break;
1278
- case "PPP":
1279
- o = e.dateTime({ width: "long" });
1280
- break;
1281
- case "PPPP":
1282
- default:
1283
- o = e.dateTime({ width: "full" });
1284
- break;
1285
- }
1286
- return o.replace("{{date}}", Q(r, e)).replace("{{time}}", $(a, e));
1287
- }, ne = {
1288
- p: $,
1289
- P: ee
1290
- }, re = /^D+$/, ae = /^Y+$/, oe = ["D", "DD", "YY", "YYYY"];
1291
- function ie(t) {
1292
- return re.test(t);
1293
- }
1294
- function se(t) {
1295
- return ae.test(t);
1296
- }
1297
- function ce(t, e, n) {
1298
- const r = ue(t, e, n);
1299
- if (console.warn(r), oe.includes(t)) throw new RangeError(r);
1300
- }
1301
- function ue(t, e, n) {
1302
- const r = t[0] === "Y" ? "years" : "days of the month";
1303
- return `Use \`${t.toLowerCase()}\` instead of \`${t}\` (in \`${e}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
1304
- }
1305
- const de = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, fe = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, le = /^'([^]*?)'?$/, he = /''/g, me = /[a-zA-Z]/;
1306
- function ge(t, e, n) {
1307
- var l, w, h, y;
1308
- const r = T(), a = r.locale ?? G, o = r.firstWeekContainsDate ?? ((w = (l = r.locale) == null ? void 0 : l.options) == null ? void 0 : w.firstWeekContainsDate) ?? 1, s = r.weekStartsOn ?? ((y = (h = r.locale) == null ? void 0 : h.options) == null ? void 0 : y.weekStartsOn) ?? 0, i = d(t);
1309
- if (!ut(i))
1310
- throw new RangeError("Invalid time value");
1311
- let u = e.match(fe).map((m) => {
1312
- const g = m[0];
1313
- if (g === "p" || g === "P") {
1314
- const E = ne[g];
1315
- return E(m, a.formatLong);
1316
- }
1317
- return m;
1318
- }).join("").match(de).map((m) => {
1319
- if (m === "''")
1320
- return { isToken: !1, value: "'" };
1321
- const g = m[0];
1322
- if (g === "'")
1323
- return { isToken: !1, value: we(m) };
1324
- if (L[g])
1325
- return { isToken: !0, value: m };
1326
- if (g.match(me))
1327
- throw new RangeError(
1328
- "Format string contains an unescaped latin alphabet character `" + g + "`"
1329
- );
1330
- return { isToken: !1, value: m };
1331
- });
1332
- a.localize.preprocessor && (u = a.localize.preprocessor(i, u));
1333
- const f = {
1334
- firstWeekContainsDate: o,
1335
- weekStartsOn: s,
1336
- locale: a
1337
- };
1338
- return u.map((m) => {
1339
- if (!m.isToken) return m.value;
1340
- const g = m.value;
1341
- (se(g) || ie(g)) && ce(g, e, String(t));
1342
- const E = L[g[0]];
1343
- return E(i, g, a.localize, f);
1344
- }).join("");
1345
- }
1346
- function we(t) {
1347
- const e = t.match(le);
1348
- return e ? e[1].replace(he, "'") : t;
1349
- }
1350
- function ye(t, e, n) {
1351
- const r = T(), a = (n == null ? void 0 : n.locale) ?? r.locale ?? G, o = 2520, s = Y(t, e);
1352
- if (isNaN(s))
1353
- throw new RangeError("Invalid time value");
1354
- const i = Object.assign({}, n, {
1355
- addSuffix: n == null ? void 0 : n.addSuffix,
1356
- comparison: s
1357
- });
1358
- let u, f;
1359
- s > 0 ? (u = d(e), f = d(t)) : (u = d(t), f = d(e));
1360
- const l = yt(f, u), w = (N(f) - N(u)) / 1e3, h = Math.round((l - w) / 60);
1361
- let y;
1362
- if (h < 2)
1363
- return n != null && n.includeSeconds ? l < 5 ? a.formatDistance("lessThanXSeconds", 5, i) : l < 10 ? a.formatDistance("lessThanXSeconds", 10, i) : l < 20 ? a.formatDistance("lessThanXSeconds", 20, i) : l < 40 ? a.formatDistance("halfAMinute", 0, i) : l < 60 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", 1, i) : h === 0 ? a.formatDistance("lessThanXMinutes", 1, i) : a.formatDistance("xMinutes", h, i);
1364
- if (h < 45)
1365
- return a.formatDistance("xMinutes", h, i);
1366
- if (h < 90)
1367
- return a.formatDistance("aboutXHours", 1, i);
1368
- if (h < H) {
1369
- const m = Math.round(h / 60);
1370
- return a.formatDistance("aboutXHours", m, i);
1371
- } else {
1372
- if (h < o)
1373
- return a.formatDistance("xDays", 1, i);
1374
- if (h < W) {
1375
- const m = Math.round(h / H);
1376
- return a.formatDistance("xDays", m, i);
1377
- } else if (h < W * 2)
1378
- return y = Math.round(h / W), a.formatDistance("aboutXMonths", y, i);
1379
- }
1380
- if (y = wt(f, u), y < 12) {
1381
- const m = Math.round(h / W);
1382
- return a.formatDistance("xMonths", m, i);
1383
- } else {
1384
- const m = y % 12, g = Math.trunc(y / 12);
1385
- return m < 3 ? a.formatDistance("aboutXYears", g, i) : m < 9 ? a.formatDistance("overXYears", g, i) : a.formatDistance("almostXYears", g + 1, i);
1386
- }
1387
- }
1388
- function be(t, e) {
1389
- return ye(t, st(t), e);
1390
- }
1391
- const Me = (t, e) => {
1392
- switch (t) {
1393
- case P.warning:
1394
- return e.colors.status.warning.onsurface;
1395
- case P.error:
1396
- return e.colors.status.error.onsurface;
1397
- case P.success:
1398
- return e.colors.status.success.onsurface;
1399
- case P.generic:
1400
- return e.colors.status.generic.onsurface;
1401
- case P.info:
1402
- default:
1403
- return e.colors.status.info.onsurface;
1404
- }
1405
- }, en = ({
1406
- message: t,
1407
- state: e = P.info,
1408
- date: n,
1409
- action: r,
1410
- onArrowClick: a,
1411
- size: o = _.standard,
1412
- isUnread: s = !0,
1413
- hasFormattedDate: i = !1
1414
- }) => {
1415
- const u = J();
1416
- Me(e, u), u.colors.interactive.utility.border, u.colors.interactive.utility.onsurface;
1417
- const f = " • ", l = n ? ge(new Date(n), "MMM d, h:mma") : "", w = n ? be(new Date(n), { addSuffix: !0 }) : "", h = i ? `${w}${f}${l}` : w, y = o === _.small ? S.body1 : S.body2;
1418
- return /* @__PURE__ */ X(Z, { state: e, size: o, $isUnread: s, children: [
1419
- s ? /* @__PURE__ */ b(z, { state: e, size: o }) : /* @__PURE__ */ b("div", { style: { width: 8 } }),
1420
- /* @__PURE__ */ b(K, { state: e }),
1421
- /* @__PURE__ */ b(tt, { size: o, children: /* @__PURE__ */ X("div", { children: [
1422
- /* @__PURE__ */ b(
1423
- C,
1424
- {
1425
- variant: S.body3,
1426
- color: u.colors.onsurface["copy-dark"],
1427
- isText: !0,
1428
- children: t
1429
- }
1430
- ),
1431
- /* @__PURE__ */ b("div", { style: { marginTop: 8 }, children: /* @__PURE__ */ b(
1432
- C,
1433
- {
1434
- variant: y,
1435
- color: u.colors.onsurface["copy-light"],
1436
- isText: !0,
1437
- children: h
1438
- }
1439
- ) })
1440
- ] }) }),
1441
- r ? /* @__PURE__ */ b(
1442
- U,
1443
- {
1444
- themeType: "utility",
1445
- onClick: r.onClick,
1446
- size: "small",
1447
- style: { pointerEvents: "all" },
1448
- children: /* @__PURE__ */ b(
1449
- C,
1450
- {
1451
- variant: S.body1,
1452
- isText: !0,
1453
- children: r.label
1454
- }
1455
- )
1456
- }
1457
- ) : null,
1458
- a ? /* @__PURE__ */ b(et, { onClick: a, children: /* @__PURE__ */ b(nt, {}) }) : null
1459
- ] });
1460
- };
1461
- export {
1462
- en as default
1463
- };