se-design 1.0.61 → 1.0.62-dev

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 (307) hide show
  1. package/dist/assets/colors.css +22 -9
  2. package/dist/assets/icons/command.svg +1 -1
  3. package/dist/assets/style.css +1 -1
  4. package/dist/components/BreadCrumbs/index.d.ts +2 -0
  5. package/dist/components/Button/index.d.ts +5 -1
  6. package/dist/index.js +23 -21
  7. package/dist/index.js.map +1 -1
  8. package/dist/index100.js +1 -1
  9. package/dist/index100.js.map +1 -1
  10. package/dist/index101.js +1 -1
  11. package/dist/index101.js.map +1 -1
  12. package/dist/index102.js +2 -2
  13. package/dist/index102.js.map +1 -1
  14. package/dist/index103.js +1 -1
  15. package/dist/index103.js.map +1 -1
  16. package/dist/index104.js +2 -2
  17. package/dist/index104.js.map +1 -1
  18. package/dist/index105.js +1 -1
  19. package/dist/index105.js.map +1 -1
  20. package/dist/index106.js +1 -1
  21. package/dist/index106.js.map +1 -1
  22. package/dist/index107.js +1 -1
  23. package/dist/index107.js.map +1 -1
  24. package/dist/index108.js +2 -2
  25. package/dist/index108.js.map +1 -1
  26. package/dist/index109.js +1 -1
  27. package/dist/index109.js.map +1 -1
  28. package/dist/index110.js +2 -2
  29. package/dist/index110.js.map +1 -1
  30. package/dist/index111.js +2 -2
  31. package/dist/index111.js.map +1 -1
  32. package/dist/index112.js +2 -2
  33. package/dist/index112.js.map +1 -1
  34. package/dist/index113.js +2 -2
  35. package/dist/index113.js.map +1 -1
  36. package/dist/index114.js +1 -1
  37. package/dist/index114.js.map +1 -1
  38. package/dist/index115.js +1 -1
  39. package/dist/index115.js.map +1 -1
  40. package/dist/index116.js +1 -1
  41. package/dist/index116.js.map +1 -1
  42. package/dist/index117.js +2 -2
  43. package/dist/index117.js.map +1 -1
  44. package/dist/index118.js +2 -2
  45. package/dist/index118.js.map +1 -1
  46. package/dist/index119.js +2 -2
  47. package/dist/index119.js.map +1 -1
  48. package/dist/index120.js +1 -1
  49. package/dist/index120.js.map +1 -1
  50. package/dist/index121.js +1 -1
  51. package/dist/index121.js.map +1 -1
  52. package/dist/index122.js +1 -1
  53. package/dist/index122.js.map +1 -1
  54. package/dist/index123.js +1 -1
  55. package/dist/index123.js.map +1 -1
  56. package/dist/index124.js +1 -1
  57. package/dist/index124.js.map +1 -1
  58. package/dist/index125.js +1 -1
  59. package/dist/index125.js.map +1 -1
  60. package/dist/index126.js +1 -1
  61. package/dist/index126.js.map +1 -1
  62. package/dist/index127.js +1 -1
  63. package/dist/index127.js.map +1 -1
  64. package/dist/index128.js +2 -2
  65. package/dist/index128.js.map +1 -1
  66. package/dist/index129.js +2 -2
  67. package/dist/index129.js.map +1 -1
  68. package/dist/index130.js +1 -1
  69. package/dist/index130.js.map +1 -1
  70. package/dist/index131.js +1 -1
  71. package/dist/index131.js.map +1 -1
  72. package/dist/index132.js +1 -1
  73. package/dist/index132.js.map +1 -1
  74. package/dist/index133.js +1 -1
  75. package/dist/index133.js.map +1 -1
  76. package/dist/index134.js +1 -1
  77. package/dist/index134.js.map +1 -1
  78. package/dist/index135.js +1 -1
  79. package/dist/index135.js.map +1 -1
  80. package/dist/index136.js +2 -2
  81. package/dist/index136.js.map +1 -1
  82. package/dist/index137.js +1 -1
  83. package/dist/index137.js.map +1 -1
  84. package/dist/index138.js +2 -2
  85. package/dist/index138.js.map +1 -1
  86. package/dist/index139.js +2 -2
  87. package/dist/index139.js.map +1 -1
  88. package/dist/index140.js +2 -2
  89. package/dist/index140.js.map +1 -1
  90. package/dist/index141.js +2 -2
  91. package/dist/index141.js.map +1 -1
  92. package/dist/index142.js +1 -1
  93. package/dist/index142.js.map +1 -1
  94. package/dist/index143.js +1 -1
  95. package/dist/index143.js.map +1 -1
  96. package/dist/index144.js +1 -1
  97. package/dist/index144.js.map +1 -1
  98. package/dist/index145.js +1 -1
  99. package/dist/index145.js.map +1 -1
  100. package/dist/index146.js +1 -1
  101. package/dist/index146.js.map +1 -1
  102. package/dist/index147.js +1 -1
  103. package/dist/index147.js.map +1 -1
  104. package/dist/index148.js +1 -1
  105. package/dist/index148.js.map +1 -1
  106. package/dist/index149.js +1 -1
  107. package/dist/index149.js.map +1 -1
  108. package/dist/index15.js +2 -2
  109. package/dist/index150.js +1 -1
  110. package/dist/index150.js.map +1 -1
  111. package/dist/index151.js +1 -1
  112. package/dist/index151.js.map +1 -1
  113. package/dist/index152.js +1 -1
  114. package/dist/index152.js.map +1 -1
  115. package/dist/index153.js +1 -1
  116. package/dist/index153.js.map +1 -1
  117. package/dist/index154.js +1 -1
  118. package/dist/index154.js.map +1 -1
  119. package/dist/index155.js +1 -1
  120. package/dist/index155.js.map +1 -1
  121. package/dist/index156.js +1 -1
  122. package/dist/index156.js.map +1 -1
  123. package/dist/index157.js +1 -1
  124. package/dist/index157.js.map +1 -1
  125. package/dist/index158.js +1 -1
  126. package/dist/index158.js.map +1 -1
  127. package/dist/index159.js +1 -1
  128. package/dist/index159.js.map +1 -1
  129. package/dist/index160.js +1 -1
  130. package/dist/index160.js.map +1 -1
  131. package/dist/index161.js +1 -1
  132. package/dist/index161.js.map +1 -1
  133. package/dist/index162.js +1 -1
  134. package/dist/index162.js.map +1 -1
  135. package/dist/index163.js +1 -1
  136. package/dist/index163.js.map +1 -1
  137. package/dist/index164.js +1 -1
  138. package/dist/index164.js.map +1 -1
  139. package/dist/index165.js +2 -2
  140. package/dist/index165.js.map +1 -1
  141. package/dist/index166.js +2 -2
  142. package/dist/index166.js.map +1 -1
  143. package/dist/index167.js +1 -1
  144. package/dist/index167.js.map +1 -1
  145. package/dist/index168.js +1 -1
  146. package/dist/index168.js.map +1 -1
  147. package/dist/index169.js +2 -2
  148. package/dist/index169.js.map +1 -1
  149. package/dist/index17.js +1 -1
  150. package/dist/index170.js +2 -2
  151. package/dist/index170.js.map +1 -1
  152. package/dist/index171.js +1 -1
  153. package/dist/index171.js.map +1 -1
  154. package/dist/index172.js +1 -1
  155. package/dist/index172.js.map +1 -1
  156. package/dist/index173.js +1 -1
  157. package/dist/index173.js.map +1 -1
  158. package/dist/index174.js +1 -1
  159. package/dist/index174.js.map +1 -1
  160. package/dist/index175.js +1 -1
  161. package/dist/index175.js.map +1 -1
  162. package/dist/index176.js +1 -1
  163. package/dist/index176.js.map +1 -1
  164. package/dist/index177.js +1 -1
  165. package/dist/index177.js.map +1 -1
  166. package/dist/index178.js +1 -1
  167. package/dist/index178.js.map +1 -1
  168. package/dist/index179.js +2 -2
  169. package/dist/index179.js.map +1 -1
  170. package/dist/index18.js +2 -2
  171. package/dist/index180.js +2 -2
  172. package/dist/index180.js.map +1 -1
  173. package/dist/index181.js +2 -2
  174. package/dist/index181.js.map +1 -1
  175. package/dist/index182.js +2 -149
  176. package/dist/index182.js.map +1 -1
  177. package/dist/index183.js +149 -9
  178. package/dist/index183.js.map +1 -1
  179. package/dist/index184.js +8 -5
  180. package/dist/index184.js.map +1 -1
  181. package/dist/index185.js +5 -4
  182. package/dist/index185.js.map +1 -1
  183. package/dist/index186.js +8 -0
  184. package/dist/index186.js.map +1 -0
  185. package/dist/index189.js +20 -58
  186. package/dist/index189.js.map +1 -1
  187. package/dist/index191.js +1 -1
  188. package/dist/index212.js +1 -1
  189. package/dist/index22.js +3 -3
  190. package/dist/index224.js +1 -1
  191. package/dist/index225.js +1 -1
  192. package/dist/index226.js +9 -21
  193. package/dist/index226.js.map +1 -1
  194. package/dist/index227.js +9 -18
  195. package/dist/index227.js.map +1 -1
  196. package/dist/index228.js +4 -9
  197. package/dist/index228.js.map +1 -1
  198. package/dist/index229.js +170 -10
  199. package/dist/index229.js.map +1 -1
  200. package/dist/index230.js +11 -5
  201. package/dist/index230.js.map +1 -1
  202. package/dist/index231.js +22 -170
  203. package/dist/index231.js.map +1 -1
  204. package/dist/index232.js +19 -11
  205. package/dist/index232.js.map +1 -1
  206. package/dist/index24.js +2 -2
  207. package/dist/index24.js.map +1 -1
  208. package/dist/index27.js +1 -1
  209. package/dist/index29.js +1 -1
  210. package/dist/index3.js +23 -21
  211. package/dist/index3.js.map +1 -1
  212. package/dist/index31.js +10 -11
  213. package/dist/index34.js +1 -1
  214. package/dist/index36.js +35 -38
  215. package/dist/index36.js.map +1 -1
  216. package/dist/index37.js +4 -5
  217. package/dist/index37.js.map +1 -1
  218. package/dist/index38.js +3 -3
  219. package/dist/index41.js +7 -8
  220. package/dist/index42.js +6 -7
  221. package/dist/index43.js +16 -16
  222. package/dist/index43.js.map +1 -1
  223. package/dist/index44.js +2 -2
  224. package/dist/index45.js +2 -2
  225. package/dist/index48.js +1 -1
  226. package/dist/index49.js +48 -30
  227. package/dist/index49.js.map +1 -1
  228. package/dist/index5.js +113 -113
  229. package/dist/index50.js +2 -2
  230. package/dist/index50.js.map +1 -1
  231. package/dist/index54.js +21 -22
  232. package/dist/index56.js +2 -2
  233. package/dist/index56.js.map +1 -1
  234. package/dist/index6.js +2 -3
  235. package/dist/index63.js +1 -1
  236. package/dist/index64.js +2 -3
  237. package/dist/index66.js +19 -17
  238. package/dist/index66.js.map +1 -1
  239. package/dist/index68.js +55 -5
  240. package/dist/index68.js.map +1 -1
  241. package/dist/index69.js +5 -9
  242. package/dist/index69.js.map +1 -1
  243. package/dist/index70.js +12 -0
  244. package/dist/index70.js.map +1 -0
  245. package/dist/index72.js +2 -2
  246. package/dist/index72.js.map +1 -1
  247. package/dist/index73.js +2 -2
  248. package/dist/index73.js.map +1 -1
  249. package/dist/index74.js +2 -2
  250. package/dist/index74.js.map +1 -1
  251. package/dist/index75.js +1 -1
  252. package/dist/index75.js.map +1 -1
  253. package/dist/index76.js +1 -1
  254. package/dist/index76.js.map +1 -1
  255. package/dist/index77.js +1 -1
  256. package/dist/index77.js.map +1 -1
  257. package/dist/index78.js +1 -1
  258. package/dist/index78.js.map +1 -1
  259. package/dist/index79.js +1 -1
  260. package/dist/index79.js.map +1 -1
  261. package/dist/index8.js +5 -5
  262. package/dist/index8.js.map +1 -1
  263. package/dist/index80.js +1 -1
  264. package/dist/index80.js.map +1 -1
  265. package/dist/index81.js +1 -1
  266. package/dist/index81.js.map +1 -1
  267. package/dist/index82.js +1 -1
  268. package/dist/index82.js.map +1 -1
  269. package/dist/index83.js +1 -1
  270. package/dist/index83.js.map +1 -1
  271. package/dist/index84.js +1 -1
  272. package/dist/index84.js.map +1 -1
  273. package/dist/index85.js +1 -1
  274. package/dist/index85.js.map +1 -1
  275. package/dist/index86.js +1 -1
  276. package/dist/index86.js.map +1 -1
  277. package/dist/index87.js +1 -1
  278. package/dist/index87.js.map +1 -1
  279. package/dist/index88.js +1 -1
  280. package/dist/index88.js.map +1 -1
  281. package/dist/index89.js +1 -1
  282. package/dist/index89.js.map +1 -1
  283. package/dist/index90.js +1 -1
  284. package/dist/index90.js.map +1 -1
  285. package/dist/index91.js +1 -1
  286. package/dist/index91.js.map +1 -1
  287. package/dist/index92.js +1 -1
  288. package/dist/index92.js.map +1 -1
  289. package/dist/index93.js +1 -1
  290. package/dist/index93.js.map +1 -1
  291. package/dist/index94.js +1 -1
  292. package/dist/index94.js.map +1 -1
  293. package/dist/index95.js +1 -1
  294. package/dist/index95.js.map +1 -1
  295. package/dist/index96.js +1 -1
  296. package/dist/index96.js.map +1 -1
  297. package/dist/index97.js +2 -2
  298. package/dist/index97.js.map +1 -1
  299. package/dist/index98.js +1 -1
  300. package/dist/index98.js.map +1 -1
  301. package/dist/index99.js +2 -2
  302. package/dist/index99.js.map +1 -1
  303. package/package.json +1 -1
  304. package/dist/index188.js +0 -27
  305. package/dist/index188.js.map +0 -1
  306. package/dist/index71.js +0 -5
  307. package/dist/index71.js.map +0 -1
package/dist/index42.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import e, { useState as p } from "react";
2
- import { Icon as a } from "./index5.js";
2
+ import { Icon as l } from "./index5.js";
3
3
  import { Button as w } from "./index3.js";
4
4
  /* empty css */
5
5
  const r = {
@@ -15,7 +15,7 @@ const r = {
15
15
  customAlertClassBtn: "bg-[var(--color-red-500)] text-[var(--color-white)] hover:bg-[var(--color-red-500)] border border-[var(--color-white)] hover:border-[var(--color-white)]",
16
16
  customNudgeClassBtn: "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-500)] border border-[var(--color-white)] hover:border-[var(--color-white)]"
17
17
  }, B = ({
18
- messageBarCtnClassName: l = "",
18
+ messageBarCtnClassName: a = "",
19
19
  messageBarType: o = "info",
20
20
  message: s = "",
21
21
  hasCloseIcon: c = !1,
@@ -46,7 +46,7 @@ const r = {
46
46
  }
47
47
  }, [o]);
48
48
  return /* @__PURE__ */ e.createElement("div", {
49
- className: `se-design-message-bar ${l} ${r.messageBarCtn} ${r[o]} ${v ? "show" : "hide"}`,
49
+ className: `se-design-message-bar ${a} ${r.messageBarCtn} ${r[o]} ${v ? "show" : "hide"}`,
50
50
  "data-automation-id": u
51
51
  }, /* @__PURE__ */ e.createElement("div", {
52
52
  className: r.messageCtn
@@ -54,7 +54,7 @@ const r = {
54
54
  className: "inline-flex items-center"
55
55
  }, /* @__PURE__ */ e.createElement("span", {
56
56
  className: f
57
- }, /* @__PURE__ */ e.createElement(a, {
57
+ }, /* @__PURE__ */ e.createElement(l, {
58
58
  name: "info",
59
59
  className: "inline-block h-fit relative top-[3px] mr-1"
60
60
  }), s, n && /* @__PURE__ */ e.createElement(w, {
@@ -64,14 +64,13 @@ const r = {
64
64
  onClick: m,
65
65
  className: `${g} ml-2 alert-btn`,
66
66
  automationId: "message-bar-cta"
67
- })))), c && /* @__PURE__ */ e.createElement(a, {
67
+ })))), c && /* @__PURE__ */ e.createElement(l, {
68
68
  name: "close",
69
69
  className: r.closeIconCtn,
70
70
  onClick: d
71
71
  }));
72
72
  };
73
73
  export {
74
- B as MessageBar,
75
- B as default
74
+ B as MessageBar
76
75
  };
77
76
  //# sourceMappingURL=index42.js.map
package/dist/index43.js CHANGED
@@ -1,4 +1,4 @@
1
- import e, { useState as g, useEffect as p } from "react";
1
+ import e, { useState as v, useEffect as g } from "react";
2
2
  import { Icon as s } from "./index5.js";
3
3
  /* empty css */
4
4
  const t = {
@@ -8,27 +8,27 @@ const t = {
8
8
  info: "var(--color-gray-700)",
9
9
  toastMessageCtn: "flex items-center gap-2",
10
10
  toastMessage: "text-[var(--color-white)] text-center word-break",
11
- closeIconCtn: "absolute right-[12px] cursor-pointer cursor-pointer hover:bg-[var(--color-gray-500)] rounded-full p-1"
12
- }, C = ({
11
+ closeIconCtn: "absolute right-[12px] cursor-pointer cursor-pointer hover:bg-[var(--color-gray-500)] rounded-full p-1 focus-visible:!outline-[var(--color-blue-300)]"
12
+ }, x = ({
13
13
  toastBarCtnClassName: a = "",
14
- type: r,
14
+ type: o,
15
15
  message: c = "",
16
- shouldAutoClose: n = !1,
17
- delay: l = 5e3,
16
+ shouldAutoClose: l = !1,
17
+ delay: n = 5e3,
18
18
  onClose: i = () => {
19
19
  },
20
20
  containerStyle: m = {}
21
21
  }) => {
22
- const [u, f] = g(!0);
23
- p(() => {
24
- if (n) {
22
+ const [u, f] = v(!0);
23
+ g(() => {
24
+ if (l) {
25
25
  const d = setTimeout(() => {
26
- o();
27
- }, l);
26
+ r();
27
+ }, n);
28
28
  return () => clearTimeout(d);
29
29
  }
30
30
  }, []);
31
- const o = () => {
31
+ const r = () => {
32
32
  setTimeout(() => {
33
33
  f(!1), setTimeout(() => {
34
34
  i?.();
@@ -38,13 +38,13 @@ const t = {
38
38
  return /* @__PURE__ */ e.createElement("div", {
39
39
  className: `se-design-toast-bar ${a} ${t.toastBarCtn} ${u ? "show" : "hide"}`,
40
40
  style: {
41
- background: t[r],
41
+ background: t[o],
42
42
  ...m
43
43
  }
44
44
  }, /* @__PURE__ */ e.createElement("div", {
45
45
  className: t.toastMessageCtn
46
46
  }, /* @__PURE__ */ e.createElement(s, {
47
- name: r === "info" ? "info" : r === "error" ? "stop" : "checked-circle",
47
+ name: o === "info" ? "info" : o === "error" ? "stop" : "checked-circle",
48
48
  stroke: "var(--color-white)"
49
49
  }), /* @__PURE__ */ e.createElement("span", {
50
50
  className: t.toastMessage
@@ -52,10 +52,10 @@ const t = {
52
52
  name: "close",
53
53
  stroke: "var(--color-white)",
54
54
  className: t.closeIconCtn,
55
- onClick: o
55
+ onClick: r
56
56
  }));
57
57
  };
58
58
  export {
59
- C as ToastBar
59
+ x as ToastBar
60
60
  };
61
61
  //# sourceMappingURL=index43.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index43.js","sources":["../src/components/ToastBar/index.tsx"],"sourcesContent":["import React, { FC, useEffect, useState } from \"react\";\nimport { Map } from \"../../utils/common.types\";\nimport { Icon } from \"../Icon\";\nimport \"./style.scss\";\n\nexport interface ToastBarProps {\n toastBarCtnClassName?: string;\n type: \"success\" | \"error\" | \"info\";\n message: string;\n shouldAutoClose?: boolean;\n delay?: number;\n onClose?: () => void;\n containerStyle?: React.CSSProperties;\n}\n\nconst classNames: Map = {\n toastBarCtn: \"min-h-[48px] fixed top-0 w-full flex items-center justify-center flex-wrap z-[1020]\",\n success: \"var(--color-green-500)\",\n error: \"var(--color-red-500)\",\n info: \"var(--color-gray-700)\", \n toastMessageCtn: \"flex items-center gap-2\",\n toastMessage: \"text-[var(--color-white)] text-center word-break\",\n closeIconCtn: \"absolute right-[12px] cursor-pointer cursor-pointer hover:bg-[var(--color-gray-500)] rounded-full p-1\",\n};\n\nexport const ToastBar: FC<ToastBarProps> = ({\n toastBarCtnClassName = \"\",\n type,\n message = \"\",\n shouldAutoClose = false,\n delay = 5000,\n onClose = () => {},\n containerStyle = {}\n}) => {\n const [visible, setVisible] = useState(true);\n\n useEffect(() => {\n if (shouldAutoClose) {\n const timer = setTimeout(() => {\n handleClose();\n }, delay);\n return () => clearTimeout(timer);\n }\n }, []);\n\n const handleClose = () => {\n setTimeout(() => {\n setVisible(false);\n setTimeout(() => {\n onClose?.();\n }, 300);\n }, 300);\n };\n\n return (\n <div\n className={`se-design-toast-bar ${toastBarCtnClassName} ${classNames.toastBarCtn} ${visible ? \"show\" : \"hide\"}`}\n style={{ background: classNames[type], ...containerStyle }}\n >\n <div className={classNames.toastMessageCtn} >\n <Icon name={type === \"info\" ? \"info\" : type === \"error\" ? \"stop\" : \"checked-circle\"} stroke={'var(--color-white)'} />\n <span className={classNames.toastMessage}>{message}</span>\n </div>\n <Icon name=\"close\" stroke={'var(--color-white)'} className={classNames.closeIconCtn} onClick={handleClose} />\n </div>\n );\n};"],"names":["React__default","useState","useEffect","Icon","classNames","toastBarCtn","success","error","info","toastMessageCtn","toastMessage","closeIconCtn","ToastBar","toastBarCtnClassName","type","message","shouldAutoClose","delay","onClose","containerStyle","visible","setVisible","timer","setTimeout","handleClose","clearTimeout","React","createElement","className","style","background","name","stroke","onClick"],"mappings":"AAeA,OAAAA,KAAA,YAAAC,GAAA,aAAAC,SAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,OAAA;AAAA,MAAMC,IAAkB;AAAA,EACtBC,aAAa;AAAA,EACbC,SAAS;AAAA,EACTC,OAAO;AAAA,EACPC,MAAM;AAAA,EACNC,iBAAiB;AAAA,EACjBC,cAAc;AAAA,EACdC,cAAc;AAChB,GAEaC,IAA8BA,CAAC;AAAA,EAC1CC,sBAAAA,IAAuB;AAAA,EACvBC,MAAAA;AAAAA,EACAC,SAAAA,IAAU;AAAA,EACVC,iBAAAA,IAAkB;AAAA,EAClBC,OAAAA,IAAQ;AAAA,EACRC,SAAAA,IAAUA,MAAM;AAAA,EAAC;AAAA,EACjBC,gBAAAA,IAAiB,CAAA;AACnB,MAAM;AACJ,QAAM,CAACC,GAASC,CAAU,IAAIpB,EAAS,EAAI;AAE3CC,EAAAA,EAAU,MAAM;AACd,QAAIc,GAAiB;AACnB,YAAMM,IAAQC,WAAW,MAAM;AAC7BC,QAAAA,EAAAA;AAAAA,MACF,GAAGP,CAAK;AACR,aAAO,MAAMQ,aAAaH,CAAK;AAAA,IACjC;AAAA,EACF,GAAG,CAAA,CAAE;AAEL,QAAME,IAAcA,MAAM;AACxBD,eAAW,MAAM;AACfF,MAAAA,EAAW,EAAK,GAChBE,WAAW,MAAM;AACfL,QAAAA,IAAAA;AAAAA,MACF,GAAG,GAAG;AAAA,IACR,GAAG,GAAG;AAAA,EACR;AAEA,SACEQ,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IACEC,WAAW,uBAAuBf,CAAoB,IAAIT,EAAWC,WAAW,IAAIe,IAAU,SAAS,MAAM;AAAA,IAC7GS,OAAO;AAAA,MAAEC,YAAY1B,EAAWU,CAAI;AAAA,MAAG,GAAGK;AAAAA,IAAAA;AAAAA,EAAe,GAEzDO,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKC,WAAWxB,EAAWK;AAAAA,EAAAA,GACzBiB,gBAAAA,EAAAC,cAACxB,GAAI;AAAA,IAAC4B,MAAMjB,MAAS,SAAS,SAASA,MAAS,UAAU,SAAS;AAAA,IAAkBkB,QAAQ;AAAA,EAAA,CAAuB,GACpHN,gBAAAA,EAAAC,cAAA,QAAA;AAAA,IAAMC,WAAWxB,EAAWM;AAAAA,EAAAA,GAAeK,CAAc,CACtD,GACLW,gBAAAA,EAAAC,cAACxB,GAAI;AAAA,IAAC4B,MAAK;AAAA,IAAQC,QAAQ;AAAA,IAAsBJ,WAAWxB,EAAWO;AAAAA,IAAcsB,SAAST;AAAAA,EAAAA,CAAc,CACzG;AAET;"}
1
+ {"version":3,"file":"index43.js","sources":["../src/components/ToastBar/index.tsx"],"sourcesContent":["import React, { FC, useEffect, useState } from \"react\";\nimport { Map } from \"../../utils/common.types\";\nimport { Icon } from \"../Icon\";\nimport \"./style.scss\";\n\nexport interface ToastBarProps {\n toastBarCtnClassName?: string;\n type: \"success\" | \"error\" | \"info\";\n message: string;\n shouldAutoClose?: boolean;\n delay?: number;\n onClose?: () => void;\n containerStyle?: React.CSSProperties;\n}\n\nconst classNames: Map = {\n toastBarCtn: \"min-h-[48px] fixed top-0 w-full flex items-center justify-center flex-wrap z-[1020]\",\n success: \"var(--color-green-500)\",\n error: \"var(--color-red-500)\",\n info: \"var(--color-gray-700)\", \n toastMessageCtn: \"flex items-center gap-2\",\n toastMessage: \"text-[var(--color-white)] text-center word-break\",\n closeIconCtn: \"absolute right-[12px] cursor-pointer cursor-pointer hover:bg-[var(--color-gray-500)] rounded-full p-1 focus-visible:!outline-[var(--color-blue-300)]\",\n};\n\nexport const ToastBar: FC<ToastBarProps> = ({\n toastBarCtnClassName = \"\",\n type,\n message = \"\",\n shouldAutoClose = false,\n delay = 5000,\n onClose = () => {},\n containerStyle = {}\n}) => {\n const [visible, setVisible] = useState(true);\n\n useEffect(() => {\n if (shouldAutoClose) {\n const timer = setTimeout(() => {\n handleClose();\n }, delay);\n return () => clearTimeout(timer);\n }\n }, []);\n\n const handleClose = () => {\n setTimeout(() => {\n setVisible(false);\n setTimeout(() => {\n onClose?.();\n }, 300);\n }, 300);\n };\n\n return (\n <div\n className={`se-design-toast-bar ${toastBarCtnClassName} ${classNames.toastBarCtn} ${visible ? \"show\" : \"hide\"}`}\n style={{ background: classNames[type], ...containerStyle }}\n >\n <div className={classNames.toastMessageCtn} >\n <Icon name={type === \"info\" ? \"info\" : type === \"error\" ? \"stop\" : \"checked-circle\"} stroke={'var(--color-white)'} />\n <span className={classNames.toastMessage}>{message}</span>\n </div>\n <Icon name=\"close\" stroke={'var(--color-white)'} className={classNames.closeIconCtn} onClick={handleClose} />\n </div>\n );\n};"],"names":["React__default","useState","useEffect","Icon","classNames","toastBarCtn","success","error","info","toastMessageCtn","toastMessage","closeIconCtn","ToastBar","toastBarCtnClassName","type","message","shouldAutoClose","delay","onClose","containerStyle","visible","setVisible","timer","setTimeout","handleClose","clearTimeout","React","createElement","className","style","background","name","stroke","onClick"],"mappings":"AAeA,OAAAA,KAAA,YAAAC,GAAA,aAAAC,SAAA;AAAA,SAAA,QAAAC,SAAA;AAAA,OAAA;AAAA,MAAMC,IAAkB;AAAA,EACtBC,aAAa;AAAA,EACbC,SAAS;AAAA,EACTC,OAAO;AAAA,EACPC,MAAM;AAAA,EACNC,iBAAiB;AAAA,EACjBC,cAAc;AAAA,EACdC,cAAc;AAChB,GAEaC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AAAA,IAAC4B,MAAK;AAAA,IAAQC,QAAQ;AAAA,IAAsBJ,WAAWxB,EAAWO;AAAAA,IAAcsB,SAAST;AAAAA,EAAAA,CAAc,CACzG;AAET;"}
package/dist/index44.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import e, { useState as S, useRef as k, useCallback as P, useEffect as Y } from "react";
2
2
  /* empty css */
3
3
  import { Icon as x } from "./index5.js";
4
- import { useStableId as Z } from "./index184.js";
5
- import { getA11yNameAttributes as L } from "./index69.js";
4
+ import { useStableId as Z } from "./index185.js";
5
+ import { getA11yNameAttributes as L } from "./index70.js";
6
6
  import { useCombobox as ee } from "./index191.js";
7
7
  function u() {
8
8
  return u = Object.assign ? Object.assign.bind() : function(o) {
package/dist/index45.js CHANGED
@@ -2,8 +2,8 @@ import t, { useState as m, useRef as h, useCallback as f, useEffect as x } from
2
2
  /* empty css */
3
3
  import g from "./index209.js";
4
4
  import { Icon as T } from "./index5.js";
5
- import { useStableId as E } from "./index184.js";
6
- import { getA11yNameAttributes as ce } from "./index69.js";
5
+ import { useStableId as E } from "./index185.js";
6
+ import { getA11yNameAttributes as ce } from "./index70.js";
7
7
  import { useCombobox as se } from "./index191.js";
8
8
  function c() {
9
9
  return c = Object.assign ? Object.assign.bind() : function(s) {
package/dist/index48.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import o, { useState as F, useMemo as y, useEffect as g } from "react";
2
2
  import "./index3.js";
3
3
  import { Icon as w } from "./index5.js";
4
- import { getA11yNameAttributes as O } from "./index69.js";
4
+ import { getA11yNameAttributes as O } from "./index70.js";
5
5
  import { MenuList as _ } from "./index17.js";
6
6
  /* empty css */
7
7
  /* empty css */
package/dist/index49.js CHANGED
@@ -1,59 +1,77 @@
1
1
  import r from "react";
2
- import { Icon as s } from "./index5.js";
3
- import { Popover as d } from "./index18.js";
4
- import { MenuList as b } from "./index17.js";
2
+ import { Icon as b } from "./index5.js";
3
+ import { Popover as p } from "./index18.js";
4
+ import { MenuList as f } from "./index17.js";
5
5
  /* empty css */
6
- const v = ({
6
+ function c() {
7
+ return c = Object.assign ? Object.assign.bind() : function(a) {
8
+ for (var n = 1; n < arguments.length; n++) {
9
+ var o = arguments[n];
10
+ for (var s in o) ({}).hasOwnProperty.call(o, s) && (a[s] = o[s]);
11
+ }
12
+ return a;
13
+ }, c.apply(null, arguments);
14
+ }
15
+ const $ = ({
7
16
  crumbs: a,
8
- onCrumbClick: o,
9
- className: m
17
+ onCrumbClick: n,
18
+ className: o,
19
+ ariaLabel: s = "Breadcrumb"
10
20
  }) => {
11
- const n = a?.length > 3, i = n ? a?.slice(-2) : a, l = n ? a?.slice(0, -2) : [], c = (t) => {
12
- let e = "se-design-breadcrumbs-item-label inline-flex items-center w-fit";
13
- return i?.length === 1 ? `${e} single-crumb` : t === i?.length - 1 ? `${e} highlighted-crumb` : `${e} cursor-pointer unhighlighted-crumb`;
21
+ const i = a?.length > 3, m = i ? a?.slice(-2) : a, u = i ? a?.slice(0, -2) : [], l = (t) => t === m?.length - 1, d = (t) => {
22
+ const e = "se-design-breadcrumbs-item-label inline-flex items-center w-fit";
23
+ return m?.length === 1 ? `${e} single-crumb` : l(t) ? `${e} highlighted-crumb` : `${e} unhighlighted-crumb`;
14
24
  };
15
- return /* @__PURE__ */ r.createElement("div", {
16
- className: `se-design-breadcrumbs flex items-center ${m}`,
17
- "aria-label": "Breadcrumb",
25
+ return /* @__PURE__ */ r.createElement("nav", {
26
+ className: `se-design-breadcrumbs flex items-center ${o}`,
27
+ "aria-label": s,
18
28
  "data-automation-id": "breadcrumbs-container"
19
- }, l?.length > 0 && /* @__PURE__ */ r.createElement(d, {
29
+ }, u?.length > 0 && /* @__PURE__ */ r.createElement(p, {
20
30
  className: "se-design-overflow-breadcrumbs",
21
31
  position: "bottom-left",
22
32
  noBorder: !0,
33
+ ariaLabel: "Show more breadcrumbs",
23
34
  renderPopoverSrcElement: ({
24
35
  displayPopover: t
25
36
  }) => /* @__PURE__ */ r.createElement("div", {
26
37
  className: `overflow-breadcrumbs-src-element px-1.5 py-1.5 rounded-md hover:cursor-pointer ${t ? "bg-[var(--color-blue-200)]" : ""}`,
27
38
  "data-automation-id": "breadcrumbs-kebab-menu"
28
- }, /* @__PURE__ */ r.createElement(s, {
39
+ }, /* @__PURE__ */ r.createElement(b, {
29
40
  name: "kebab-menu"
30
41
  })),
31
42
  renderPopoverContents: ({
32
43
  closePopoverCb: t
33
- }) => /* @__PURE__ */ r.createElement(b, {
34
- items: l.map((e) => ({
44
+ }) => /* @__PURE__ */ r.createElement(f, {
45
+ items: u.map((e) => ({
35
46
  id: String(e?.id),
36
47
  label: e?.label,
37
48
  onClick: () => {
38
- o?.(e), t();
49
+ n?.(e), t();
39
50
  }
40
51
  }))
41
52
  })
42
- }), /* @__PURE__ */ r.createElement("div", {
53
+ }), /* @__PURE__ */ r.createElement("ol", {
43
54
  className: "se-design-breadcrumbs-list inline-flex items-center"
44
- }, i?.map((t, e) => /* @__PURE__ */ r.createElement("div", {
45
- key: t?.id,
46
- className: "se-design-breadcrumbs-item inline-flex items-center w-fit text-xl"
47
- }, (e > 0 || n) && /* @__PURE__ */ r.createElement(s, {
48
- name: "chevron",
49
- rotation: "270"
50
- }), /* @__PURE__ */ r.createElement("p", {
51
- onClick: () => o?.(t),
52
- className: c(e),
53
- "data-automation-id": t?.automationId || `breadcrumbs-item-${e}`
54
- }, t?.label)))));
55
+ }, m?.map((t, e) => {
56
+ const g = l(e) ? "span" : "button";
57
+ return /* @__PURE__ */ r.createElement("li", {
58
+ key: t?.id,
59
+ className: "se-design-breadcrumbs-item inline-flex items-center w-fit text-xl"
60
+ }, (e > 0 || i) && /* @__PURE__ */ r.createElement(b, {
61
+ name: "chevron",
62
+ rotation: "270"
63
+ }), /* @__PURE__ */ r.createElement(g, c({}, l(e) ? {
64
+ "aria-current": "page"
65
+ } : {
66
+ type: "button",
67
+ onClick: () => n?.(t)
68
+ }, {
69
+ className: `${d(e)}${l(e) ? "" : " cursor-pointer focus-outline"}`,
70
+ "data-automation-id": t?.automationId || `breadcrumbs-item-${e}`
71
+ }), t?.label));
72
+ })));
55
73
  };
56
74
  export {
57
- v as BreadCrumbs
75
+ $ as BreadCrumbs
58
76
  };
59
77
  //# sourceMappingURL=index49.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index49.js","sources":["../src/components/BreadCrumbs/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon } from '../Icon';\nimport { Popover } from '../Popover';\nimport { MenuList } from '../MenuList';\n\nimport './style.scss';\n\ninterface Crumb {\n id: string | number;\n label: string;\n automationId?: string;\n}\n\ninterface BreadCrumbsProps {\n crumbs: Crumb[];\n onCrumbClick?: (crumb: Crumb) => void;\n className?: any;\n}\n\nexport const BreadCrumbs: React.FC<BreadCrumbsProps> = ({ crumbs, onCrumbClick, className }) => {\n const shouldShowDropdown = crumbs?.length > 3;\n const visibleCrumbs = shouldShowDropdown ? crumbs?.slice(-2) : crumbs;\n const dropdownCrumbs = shouldShowDropdown ? crumbs?.slice(0, -2) : [];\n\n const getLabelClassNames = (index: number) => {\n let className = 'se-design-breadcrumbs-item-label inline-flex items-center w-fit';\n if (visibleCrumbs?.length === 1) {\n return `${className} single-crumb`;\n }\n\n if (index === visibleCrumbs?.length - 1) {\n return `${className} highlighted-crumb`;\n }\n\n return `${className} cursor-pointer unhighlighted-crumb`;\n };\n\n return (\n <div className={`se-design-breadcrumbs flex items-center ${className}`} aria-label=\"Breadcrumb\" data-automation-id=\"breadcrumbs-container\">\n {dropdownCrumbs?.length > 0 && (\n <Popover\n className=\"se-design-overflow-breadcrumbs\"\n position=\"bottom-left\"\n noBorder\n renderPopoverSrcElement={({ displayPopover }) => {\n return (\n <div\n className={`overflow-breadcrumbs-src-element px-1.5 py-1.5 rounded-md hover:cursor-pointer ${\n displayPopover ? 'bg-[var(--color-blue-200)]' : ''\n }`}\n data-automation-id=\"breadcrumbs-kebab-menu\"\n >\n <Icon name=\"kebab-menu\" />\n </div>\n );\n }}\n renderPopoverContents={({ closePopoverCb }) => (\n <MenuList\n items={dropdownCrumbs.map((crumb) => ({\n id: String(crumb?.id),\n label: crumb?.label,\n onClick: () => {\n onCrumbClick?.(crumb);\n closePopoverCb();\n }\n }))}\n />\n )}\n />\n )}\n <div className=\"se-design-breadcrumbs-list inline-flex items-center\">\n {visibleCrumbs?.map((crumb, index) => (\n <div key={crumb?.id} className=\"se-design-breadcrumbs-item inline-flex items-center w-fit text-xl\" >\n {(index > 0 || shouldShowDropdown) && <Icon name=\"chevron\" rotation={'270'} />}\n <p onClick={() => onCrumbClick?.(crumb)} className={getLabelClassNames(index)} data-automation-id={crumb?.automationId || `breadcrumbs-item-${index}`}>\n {crumb?.label}\n </p>\n </div>\n ))}\n </div>\n </div>\n );\n};\n"],"names":["BreadCrumbs","crumbs","onCrumbClick","className","shouldShowDropdown","length","visibleCrumbs","slice","dropdownCrumbs","getLabelClassNames","index","React","createElement","Popover","position","noBorder","renderPopoverSrcElement","displayPopover","Icon","name","renderPopoverContents","closePopoverCb","MenuList","items","map","crumb","id","String","label","onClick","key","rotation","automationId"],"mappings":";;;;;AAmBO,MAAMA,IAA0CA,CAAC;AAAA,EAAEC,QAAAA;AAAAA,EAAQC,cAAAA;AAAAA,EAAcC,WAAAA;AAAU,MAAM;AAC9F,QAAMC,IAAqBH,GAAQI,SAAS,GACtCC,IAAgBF,IAAqBH,GAAQM,MAAM,EAAE,IAAIN,GACzDO,IAAiBJ,IAAqBH,GAAQM,MAAM,GAAG,EAAE,IAAI,CAAA,GAE7DE,IAAqBA,CAACC,MAAkB;AAC5C,QAAIP,IAAY;AAChB,WAAIG,GAAeD,WAAW,IACrB,GAAGF,CAAS,kBAGjBO,MAAUJ,GAAeD,SAAS,IAC7B,GAAGF,CAAS,uBAGd,GAAGA,CAAS;AAAA,EACrB;AAEA,SACEQ,gBAAAA,EAAAC,cAAA,OAAA;AAAA,IAAKT,WAAW,2CAA2CA,CAAS;AAAA,IAAI,cAAW;AAAA,IAAa,sBAAmB;AAAA,EAAA,GA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CACA,CACN,CACE,CACF;AAET;"}
1
+ {"version":3,"file":"index49.js","sources":["../src/components/BreadCrumbs/index.tsx"],"sourcesContent":["import React from 'react';\nimport { Icon } from '../Icon';\nimport { Popover } from '../Popover';\nimport { MenuList } from '../MenuList';\n\nimport './style.scss';\n\ninterface Crumb {\n id: string | number;\n label: string;\n automationId?: string;\n}\n\ninterface BreadCrumbsProps {\n crumbs: Crumb[];\n onCrumbClick?: (crumb: Crumb) => void;\n className?: any;\n /** Accessible name for the breadcrumb navigation landmark. Defaults to \"Breadcrumb\". Use for i18n or when multiple breadcrumb regions exist. */\n ariaLabel?: string;\n}\n\nexport const BreadCrumbs: React.FC<BreadCrumbsProps> = ({ crumbs, onCrumbClick, className, ariaLabel = 'Breadcrumb' }) => {\n const shouldShowDropdown = crumbs?.length > 3;\n const visibleCrumbs = shouldShowDropdown ? crumbs?.slice(-2) : crumbs;\n const dropdownCrumbs = shouldShowDropdown ? crumbs?.slice(0, -2) : [];\n\n const isCurrentPage = (index: number) => index === visibleCrumbs?.length - 1;\n\n const getLabelClassNames = (index: number) => {\n const className = 'se-design-breadcrumbs-item-label inline-flex items-center w-fit';\n if (visibleCrumbs?.length === 1) {\n return `${className} single-crumb`;\n }\n if (isCurrentPage(index)) {\n return `${className} highlighted-crumb`;\n }\n return `${className} unhighlighted-crumb`;\n };\n\n return (\n <nav className={`se-design-breadcrumbs flex items-center ${className}`} aria-label={ariaLabel} data-automation-id=\"breadcrumbs-container\">\n {dropdownCrumbs?.length > 0 && (\n <Popover\n className=\"se-design-overflow-breadcrumbs\"\n position=\"bottom-left\"\n noBorder\n ariaLabel=\"Show more breadcrumbs\"\n renderPopoverSrcElement={({ displayPopover }) => {\n return (\n <div\n className={`overflow-breadcrumbs-src-element px-1.5 py-1.5 rounded-md hover:cursor-pointer ${\n displayPopover ? 'bg-[var(--color-blue-200)]' : ''\n }`}\n data-automation-id=\"breadcrumbs-kebab-menu\"\n >\n <Icon name=\"kebab-menu\" />\n </div>\n );\n }}\n renderPopoverContents={({ closePopoverCb }) => (\n <MenuList\n items={dropdownCrumbs.map((crumb) => ({\n id: String(crumb?.id),\n label: crumb?.label,\n onClick: () => {\n onCrumbClick?.(crumb);\n closePopoverCb();\n }\n }))}\n />\n )}\n />\n )}\n <ol className=\"se-design-breadcrumbs-list inline-flex items-center\">\n {visibleCrumbs?.map((crumb, index) => {\n const Tag = isCurrentPage(index) ? 'span' : 'button';// Current page should not be clickable\n return (\n <li key={crumb?.id} className=\"se-design-breadcrumbs-item inline-flex items-center w-fit text-xl\">\n {(index > 0 || shouldShowDropdown) && <Icon name=\"chevron\" rotation={'270'} />}\n <Tag\n {...(isCurrentPage(index)\n ? { 'aria-current': 'page' as const }\n : { type: 'button' as const, onClick: () => onCrumbClick?.(crumb) })}\n className={`${getLabelClassNames(index)}${!isCurrentPage(index) ? ' cursor-pointer focus-outline' : ''}`}\n data-automation-id={crumb?.automationId || `breadcrumbs-item-${index}`}\n >\n {crumb?.label}\n </Tag>\n </li>\n );\n })}\n </ol>\n </nav>\n );\n};\n"],"names":["BreadCrumbs","crumbs","onCrumbClick","className","ariaLabel","shouldShowDropdown","length","visibleCrumbs","slice","dropdownCrumbs","isCurrentPage","index","getLabelClassNames","React","createElement","Popover","position","noBorder","renderPopoverSrcElement","displayPopover","Icon","name","renderPopoverContents","closePopoverCb","MenuList","items","map","crumb","id","String","label","onClick","Tag","key","rotation","_extends","type","automationId"],"mappings":";;;;;;;;;;;;;;AAqBO,MAAMA,IAA0CA,CAAC;AAAA,EAAEC,QAAAA;AAAAA,EAAQC,cAAAA;AAAAA,EAAcC,WAAAA;AAAAA,EAAWC,WAAAA,IAAY;AAAa,MAAM;AACxH,QAAMC,IAAqBJ,GAAQK,SAAS,GACtCC,IAAgBF,IAAqBJ,GAAQO,MAAM,EAAE,IAAIP,GACzDQ,IAAiBJ,IAAqBJ,GAAQO,MAAM,GAAG,EAAE,IAAI,CAAA,GAE7DE,IAAgBA,CAACC,MAAkBA,MAAUJ,GAA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cAAA,MAAA;AAAA,MAAImB,KAAKN,GAAOC;AAAAA,MAAIzB,WAAU;AAAA,IAAA,IAC1BQ,IAAQ,KAAKN,MAAuBQ,gBAAAA,EAAAC,cAACM,GAAI;AAAA,MAACC,MAAK;AAAA,MAAUa,UAAU;AAAA,IAAA,CAAQ,GAC7ErB,gBAAAA,EAAAC,cAACkB,GAAGG,EAAA,IACGzB,EAAcC,CAAK,IACpB;AAAA,MAAE,gBAAgB;AAAA,IAAA,IAClB;AAAA,MAAEyB,MAAM;AAAA,MAAmBL,SAASA,MAAM7B,IAAeyB,CAAK;AAAA,IAAA,GAAG;AAAA,MACrExB,WAAW,GAAGS,EAAmBD,CAAK,CAAC,GAAID,EAAcC,CAAK,IAAsC,KAAlC,+BAAoC;AAAA,MACtG,sBAAoBgB,GAAOU,gBAAgB,oBAAoB1B,CAAK;AAAA,IAAA,CAAG,GAEtEgB,GAAOG,KACL,CACH;AAAA,EAER,CAAC,CACC,CACD;AAET;"}
package/dist/index5.js CHANGED
@@ -1,117 +1,117 @@
1
- import C from "./index71.js";
2
- import O from "./index72.js";
3
- import E from "./index73.js";
4
- import S from "./index74.js";
5
- import $ from "./index75.js";
6
- import j from "./index76.js";
7
- import L from "./index77.js";
8
- import F from "./index78.js";
9
- import R from "./index79.js";
10
- import B from "./index80.js";
11
- import M from "./index81.js";
12
- import q from "./index82.js";
13
- import D from "./index83.js";
14
- import G from "./index84.js";
15
- import T from "./index85.js";
16
- import V from "./index86.js";
17
- import H from "./index87.js";
18
- import J from "./index88.js";
19
- import K from "./index89.js";
20
- import Q from "./index90.js";
21
- import U from "./index91.js";
22
- import W from "./index92.js";
23
- import X from "./index93.js";
24
- import Y from "./index94.js";
25
- import Z from "./index95.js";
26
- import z from "./index96.js";
27
- import ss from "./index97.js";
28
- import os from "./index98.js";
29
- import _s from "./index99.js";
30
- import ts from "./index100.js";
31
- import is from "./index101.js";
32
- import rs from "./index102.js";
33
- import es from "./index103.js";
34
- import cs from "./index104.js";
35
- import as from "./index105.js";
36
- import ms from "./index106.js";
37
- import gs from "./index107.js";
38
- import vs from "./index108.js";
39
- import ns from "./index109.js";
40
- import ls from "./index110.js";
41
- import fs from "./index111.js";
42
- import bs from "./index112.js";
43
- import ps from "./index113.js";
44
- import ds from "./index114.js";
45
- import us from "./index115.js";
46
- import hs from "./index116.js";
47
- import ks from "./index117.js";
48
- import xs from "./index118.js";
49
- import As from "./index119.js";
50
- import ws from "./index120.js";
51
- import ys from "./index121.js";
52
- import Ps from "./index122.js";
53
- import Is from "./index123.js";
54
- import Ns from "./index124.js";
55
- import Cs from "./index125.js";
56
- import Os from "./index126.js";
57
- import Es from "./index127.js";
58
- import Ss from "./index128.js";
59
- import $s from "./index129.js";
60
- import js from "./index130.js";
61
- import Ls from "./index131.js";
62
- import Fs from "./index132.js";
63
- import Rs from "./index133.js";
64
- import Bs from "./index134.js";
65
- import Ms from "./index135.js";
66
- import qs from "./index136.js";
67
- import Ds from "./index137.js";
68
- import Gs from "./index138.js";
69
- import Ts from "./index139.js";
70
- import Vs from "./index140.js";
71
- import Hs from "./index141.js";
72
- import Js from "./index142.js";
73
- import Ks from "./index143.js";
74
- import Qs from "./index144.js";
75
- import Us from "./index145.js";
76
- import Ws from "./index146.js";
77
- import Xs from "./index147.js";
78
- import Ys from "./index148.js";
79
- import Zs from "./index149.js";
80
- import zs from "./index150.js";
81
- import so from "./index151.js";
82
- import oo from "./index152.js";
83
- import _o from "./index153.js";
84
- import to from "./index154.js";
85
- import io from "./index155.js";
86
- import ro from "./index156.js";
87
- import eo from "./index157.js";
88
- import co from "./index158.js";
89
- import ao from "./index159.js";
90
- import mo from "./index160.js";
91
- import go from "./index161.js";
92
- import vo from "./index162.js";
93
- import no from "./index163.js";
94
- import lo from "./index164.js";
95
- import fo from "./index165.js";
96
- import bo from "./index166.js";
97
- import po from "./index167.js";
98
- import uo from "./index168.js";
99
- import ho from "./index169.js";
100
- import ko from "./index170.js";
101
- import xo from "./index171.js";
102
- import Ao from "./index172.js";
103
- import wo from "./index173.js";
104
- import yo from "./index174.js";
105
- import Po from "./index175.js";
106
- import Io from "./index176.js";
107
- import No from "./index177.js";
108
- import Co from "./index178.js";
109
- import Oo from "./index179.js";
110
- import Eo from "./index180.js";
111
- import So from "./index181.js";
1
+ import C from "./index72.js";
2
+ import O from "./index73.js";
3
+ import E from "./index74.js";
4
+ import S from "./index75.js";
5
+ import $ from "./index76.js";
6
+ import j from "./index77.js";
7
+ import L from "./index78.js";
8
+ import F from "./index79.js";
9
+ import R from "./index80.js";
10
+ import B from "./index81.js";
11
+ import M from "./index82.js";
12
+ import q from "./index83.js";
13
+ import D from "./index84.js";
14
+ import G from "./index85.js";
15
+ import T from "./index86.js";
16
+ import V from "./index87.js";
17
+ import H from "./index88.js";
18
+ import J from "./index89.js";
19
+ import K from "./index90.js";
20
+ import Q from "./index91.js";
21
+ import U from "./index92.js";
22
+ import W from "./index93.js";
23
+ import X from "./index94.js";
24
+ import Y from "./index95.js";
25
+ import Z from "./index96.js";
26
+ import z from "./index97.js";
27
+ import ss from "./index98.js";
28
+ import os from "./index99.js";
29
+ import _s from "./index100.js";
30
+ import ts from "./index101.js";
31
+ import is from "./index102.js";
32
+ import rs from "./index103.js";
33
+ import es from "./index104.js";
34
+ import cs from "./index105.js";
35
+ import as from "./index106.js";
36
+ import ms from "./index107.js";
37
+ import gs from "./index108.js";
38
+ import vs from "./index109.js";
39
+ import ns from "./index110.js";
40
+ import ls from "./index111.js";
41
+ import fs from "./index112.js";
42
+ import bs from "./index113.js";
43
+ import ps from "./index114.js";
44
+ import ds from "./index115.js";
45
+ import us from "./index116.js";
46
+ import hs from "./index117.js";
47
+ import ks from "./index118.js";
48
+ import xs from "./index119.js";
49
+ import As from "./index120.js";
50
+ import ws from "./index121.js";
51
+ import ys from "./index122.js";
52
+ import Ps from "./index123.js";
53
+ import Is from "./index124.js";
54
+ import Ns from "./index125.js";
55
+ import Cs from "./index126.js";
56
+ import Os from "./index127.js";
57
+ import Es from "./index128.js";
58
+ import Ss from "./index129.js";
59
+ import $s from "./index130.js";
60
+ import js from "./index131.js";
61
+ import Ls from "./index132.js";
62
+ import Fs from "./index133.js";
63
+ import Rs from "./index134.js";
64
+ import Bs from "./index135.js";
65
+ import Ms from "./index136.js";
66
+ import qs from "./index137.js";
67
+ import Ds from "./index138.js";
68
+ import Gs from "./index139.js";
69
+ import Ts from "./index140.js";
70
+ import Vs from "./index141.js";
71
+ import Hs from "./index142.js";
72
+ import Js from "./index143.js";
73
+ import Ks from "./index144.js";
74
+ import Qs from "./index145.js";
75
+ import Us from "./index146.js";
76
+ import Ws from "./index147.js";
77
+ import Xs from "./index148.js";
78
+ import Ys from "./index149.js";
79
+ import Zs from "./index150.js";
80
+ import zs from "./index151.js";
81
+ import so from "./index152.js";
82
+ import oo from "./index153.js";
83
+ import _o from "./index154.js";
84
+ import to from "./index155.js";
85
+ import io from "./index156.js";
86
+ import ro from "./index157.js";
87
+ import eo from "./index158.js";
88
+ import co from "./index159.js";
89
+ import ao from "./index160.js";
90
+ import mo from "./index161.js";
91
+ import go from "./index162.js";
92
+ import vo from "./index163.js";
93
+ import no from "./index164.js";
94
+ import lo from "./index165.js";
95
+ import fo from "./index166.js";
96
+ import bo from "./index167.js";
97
+ import po from "./index168.js";
98
+ import uo from "./index169.js";
99
+ import ho from "./index170.js";
100
+ import ko from "./index171.js";
101
+ import xo from "./index172.js";
102
+ import Ao from "./index173.js";
103
+ import wo from "./index174.js";
104
+ import yo from "./index175.js";
105
+ import Po from "./index176.js";
106
+ import Io from "./index177.js";
107
+ import No from "./index178.js";
108
+ import Co from "./index179.js";
109
+ import Oo from "./index180.js";
110
+ import Eo from "./index181.js";
111
+ import So from "./index182.js";
112
112
  import m from "react";
113
- import { ReactSVG as $o } from "./index182.js";
114
- import { getA11yNameAttributes as jo } from "./index69.js";
113
+ import { ReactSVG as $o } from "./index183.js";
114
+ import { getA11yNameAttributes as jo } from "./index70.js";
115
115
  import { useAccessiblePress as Lo } from "./index66.js";
116
116
  function c() {
117
117
  return c = Object.assign ? Object.assign.bind() : function(s) {
package/dist/index50.js CHANGED
@@ -332,7 +332,7 @@ const fe = ["S", "M", "T", "W", "T", "F", "S"], pe = ["Today", "Yesterday", "Thi
332
332
  ${!k && g ? "bg-[var(--color-blue-500)] text-[var(--color-white)] hover:bg-[var(--color-blue-600)]" : ""}
333
333
  ${!u && !g && J ? "bg-[var(--color-blue-100)] text-[var(--color-blue-600)]" : ""}
334
334
  ${!u && !g && !J && !M ? "hover:bg-[var(--color-blue-100)]" : ""}
335
- ${V && !u && !g ? "text-[var(--color-blue-500)]" : ""}
335
+ ${V && !u && !g ? "text-[var(--color-blue-500)] bg-[var(--color-blue-100)]" : ""}
336
336
  ${!M && !u && !g && !V ? "text-[var(--color-gray-700)]" : ""}
337
337
  `,
338
338
  "data-automation-id": `${m}-date-${_}`
@@ -364,7 +364,7 @@ const fe = ["S", "M", "T", "W", "T", "F", "S"], pe = ["Today", "Yesterday", "Thi
364
364
  className: "se-design-datepicker-footer flex justify-end items-center gap-5 p-4 border-t border-[var(--color-gray-200)]"
365
365
  }, /* @__PURE__ */ o.createElement(S, {
366
366
  label: j?.clear || "Clear",
367
- type: "link",
367
+ type: "ghost",
368
368
  onClick: De,
369
369
  "data-automation-id": `${m}-clear-button`
370
370
  }), /* @__PURE__ */ o.createElement(S, {