@fluidattacks/design 3.1.12 → 3.1.13

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 (172) hide show
  1. package/dist/components/@core/index.js +2 -2
  2. package/dist/components/accordion/accordion-content/index.js +18 -5
  3. package/dist/components/accordion/index.js +71 -14
  4. package/dist/components/alert/index.js +108 -57
  5. package/dist/components/button/index.js +64 -13
  6. package/dist/components/card/card-header/index.js +78 -9
  7. package/dist/components/card/card-with-image/index.js +88 -13
  8. package/dist/components/card/card-with-input/index.js +72 -23
  9. package/dist/components/card/card-with-selector/index.js +63 -8
  10. package/dist/components/card/card-with-switch/index.js +46 -8
  11. package/dist/components/carousel/index.js +54 -28
  12. package/dist/components/checkbox/index.js +66 -32
  13. package/dist/components/cloud-image/index.js +2 -2
  14. package/dist/components/code-snippet/index.js +64 -19
  15. package/dist/components/code-snippet/location-code/index.js +146 -100
  16. package/dist/components/colors/index.js +220 -5
  17. package/dist/components/confirm-dialog/index.js +41 -18
  18. package/dist/components/container/index.js +39 -15
  19. package/dist/components/content-card/category-tag/index.js +37 -8
  20. package/dist/components/content-card/event-date/index.js +53 -10
  21. package/dist/components/content-card/index.js +118 -13
  22. package/dist/components/content-card-carousel/index.js +87 -7
  23. package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
  24. package/dist/components/divider/index.js +22 -7
  25. package/dist/components/empty-state/empty-button/index.js +4 -4
  26. package/dist/components/empty-state/index.js +52 -15
  27. package/dist/components/file-preview/index.js +28 -12
  28. package/dist/components/form/index.js +46 -9
  29. package/dist/components/grid-container/index.js +31 -11
  30. package/dist/components/group-selector/index.js +126 -17
  31. package/dist/components/group-selector/option-container/index.js +1 -1
  32. package/dist/components/icon/index.js +78 -18
  33. package/dist/components/icon-button/index.js +63 -14
  34. package/dist/components/indicator-card/index.js +70 -11
  35. package/dist/components/info-sidebar/index.js +107 -7
  36. package/dist/components/inputs/fields/combobox/index.js +141 -21
  37. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  38. package/dist/components/inputs/fields/date/calendar/cell/index.js +22 -11
  39. package/dist/components/inputs/fields/date/calendar/grid/index.js +21 -10
  40. package/dist/components/inputs/fields/date/calendar/header/index.js +35 -13
  41. package/dist/components/inputs/fields/date/calendar/index.js +26 -11
  42. package/dist/components/inputs/fields/date/index.js +65 -15
  43. package/dist/components/inputs/fields/date-range/calendar/index.js +29 -10
  44. package/dist/components/inputs/fields/date-range/index.js +98 -18
  45. package/dist/components/inputs/fields/date-time/calendar/index.js +44 -15
  46. package/dist/components/inputs/fields/date-time/index.js +65 -14
  47. package/dist/components/inputs/fields/editable/index.js +22 -10
  48. package/dist/components/inputs/fields/input/index.js +74 -10
  49. package/dist/components/inputs/fields/input-file/index.js +114 -21
  50. package/dist/components/inputs/fields/input-tags/index.js +60 -11
  51. package/dist/components/inputs/fields/number/index.js +54 -7
  52. package/dist/components/inputs/fields/number-range/index.js +46 -8
  53. package/dist/components/inputs/fields/phone/index.js +446 -286
  54. package/dist/components/inputs/fields/text-area/index.js +78 -10
  55. package/dist/components/inputs/label/index.js +34 -8
  56. package/dist/components/inputs/outline-container/index.js +98 -12
  57. package/dist/components/inputs/utils/action-button/index.js +28 -7
  58. package/dist/components/inputs/utils/calendar-button/index.js +34 -10
  59. package/dist/components/inputs/utils/date-selector/index.js +60 -6
  60. package/dist/components/inputs/utils/date-time-field/index.js +129 -28
  61. package/dist/components/inputs/utils/dialog/index.js +10 -7
  62. package/dist/components/inputs/utils/number-field/index.js +81 -8
  63. package/dist/components/inputs/utils/popover/index.js +41 -10
  64. package/dist/components/interactive-card/icon/index.js +1 -1
  65. package/dist/components/interactive-card/index.js +110 -7
  66. package/dist/components/language-selector/index.js +34 -10
  67. package/dist/components/language-selector/item-list/index.js +1 -1
  68. package/dist/components/link/index.js +71 -17
  69. package/dist/components/list-item/index.js +64 -13
  70. package/dist/components/little-flag/index.js +26 -9
  71. package/dist/components/loading/index.js +48 -21
  72. package/dist/components/logo/index.js +10 -4
  73. package/dist/components/logo-carousel/index.js +40 -5
  74. package/dist/components/lottie/index.js +12 -7
  75. package/dist/components/menu/index.js +53 -9
  76. package/dist/components/message-banner/index.js +79 -13
  77. package/dist/components/modal/index.js +59 -13
  78. package/dist/components/modal/modal-confirm/index.js +48 -7
  79. package/dist/components/modal/modal-footer/index.js +22 -13
  80. package/dist/components/modal/modal-header/index.js +45 -19
  81. package/dist/components/notification/index.js +65 -20
  82. package/dist/components/notification-sign/index.js +27 -10
  83. package/dist/components/number-input/index.js +58 -21
  84. package/dist/components/oauth-selector/index.js +97 -23
  85. package/dist/components/oauth-selector/option-container/index.js +68 -7
  86. package/dist/components/plan-card/index.js +99 -28
  87. package/dist/components/plan-card/recommended-tag/index.js +23 -2
  88. package/dist/components/pop-up/description/index.js +47 -9
  89. package/dist/components/pop-up/index.js +146 -17
  90. package/dist/components/premium-feature/index.js +56 -16
  91. package/dist/components/priority-score/index.js +24 -9
  92. package/dist/components/progress/index.js +30 -17
  93. package/dist/components/progress-bar/index.js +99 -41
  94. package/dist/components/radio-button/index.js +64 -27
  95. package/dist/components/scroll-button/index.js +33 -15
  96. package/dist/components/search/index.js +77 -35
  97. package/dist/components/search-bar/index.js +211 -24
  98. package/dist/components/search-bar/item-searching/index.js +1 -1
  99. package/dist/components/severity-badge/index.js +66 -6
  100. package/dist/components/severity-overview/badge/index.js +62 -11
  101. package/dist/components/severity-overview/index.js +15 -5
  102. package/dist/components/show-on-hover/index.js +16 -10
  103. package/dist/components/slide-out-menu/index.js +2611 -1164
  104. package/dist/components/slide-out-menu/menu-item/index.js +58 -6
  105. package/dist/components/slider/index.js +79 -48
  106. package/dist/components/slider/thumb/index.js +13 -6
  107. package/dist/components/step-lapse/index.js +81 -23
  108. package/dist/components/table-button/index.js +65 -24
  109. package/dist/components/tabs/fixed-tabs/index.js +24 -4
  110. package/dist/components/tabs/index.js +54 -11
  111. package/dist/components/tabs/tab/index.js +37 -6
  112. package/dist/components/tag/index.js +95 -27
  113. package/dist/components/timeline/card/index.js +1 -1
  114. package/dist/components/timeline/index.js +15 -5
  115. package/dist/components/toggle/index.js +65 -25
  116. package/dist/components/toggle-buttons/index.js +51 -22
  117. package/dist/components/tooltip/index.js +1 -1
  118. package/dist/components/tour/index.js +3897 -1829
  119. package/dist/components/typography/heading/index.js +43 -5
  120. package/dist/components/typography/span/index.js +38 -6
  121. package/dist/components/typography/text/index.js +44 -6
  122. package/dist/components/web-form/index.js +28 -19
  123. package/dist/hooks/index.js +5 -5
  124. package/dist/index-BMHVi812.mjs +234 -0
  125. package/dist/index-BzAniA2J.mjs +135 -0
  126. package/dist/index-C6LbClYh.mjs +146 -0
  127. package/dist/index-CAIe8hBv.mjs +130 -0
  128. package/dist/index-CUQBAqt_.mjs +75 -0
  129. package/dist/index-CWlrSlUk.mjs +68 -0
  130. package/dist/index-Ckmu1TfV.mjs +86 -0
  131. package/dist/index-DwznImvK.mjs +1678 -0
  132. package/dist/index-maWH3JYC.mjs +3561 -0
  133. package/dist/index.js +11 -11
  134. package/dist/styles-B2N0JLw1.mjs +114 -0
  135. package/dist/styles-B64DVBIF.mjs +115 -0
  136. package/dist/{styles-lSVV9kjn.mjs → styles-BXFVwnWT.mjs} +28 -28
  137. package/dist/styles-BZQOqe8p.mjs +141 -0
  138. package/dist/styles-Bdque9TT.mjs +65 -0
  139. package/dist/{styles-CI-I6joH.mjs → styles-BlHspTrz.mjs} +18 -18
  140. package/dist/{styles-Cx93EcVo.mjs → styles-CROOwXEH.mjs} +5 -5
  141. package/dist/styles-CplEd2kw.mjs +228 -0
  142. package/dist/styles-D1eTIklB.mjs +110 -0
  143. package/dist/styles-ePGii_9g.mjs +74 -0
  144. package/dist/use-carousel-CgAF78h3.mjs +23 -0
  145. package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
  146. package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
  147. package/dist/use-modal-CtgexKnf.mjs +14 -0
  148. package/dist/use-search-Dj47QDw9.mjs +15 -0
  149. package/dist/utils-V0EumEPM.mjs +6 -0
  150. package/package.json +1 -3
  151. package/dist/index-38JqtnAI.mjs +0 -122
  152. package/dist/index-B5yoGFs6.mjs +0 -54
  153. package/dist/index-BLbKylyw.mjs +0 -209
  154. package/dist/index-Bu448Tz2.mjs +0 -106
  155. package/dist/index-BwFnfaRh.mjs +0 -2310
  156. package/dist/index-Co_k0WFk.mjs +0 -75
  157. package/dist/index-Cu7uUMlx.mjs +0 -82
  158. package/dist/index-D-lcuEHY.mjs +0 -1018
  159. package/dist/index-DrfjITyT.mjs +0 -61
  160. package/dist/styles-7_q7nHce.mjs +0 -110
  161. package/dist/styles-BA0WIQL-.mjs +0 -74
  162. package/dist/styles-C3cZmKVJ.mjs +0 -131
  163. package/dist/styles-D85YYIjM.mjs +0 -131
  164. package/dist/styles-EIbGRPlk.mjs +0 -106
  165. package/dist/styles-Q1VXuWI7.mjs +0 -65
  166. package/dist/styles-fH2c4cfc.mjs +0 -77
  167. package/dist/use-carousel-CvRxi2FI.mjs +0 -17
  168. package/dist/use-click-outside-BtZLIoU1.mjs +0 -18
  169. package/dist/use-cloudinary-image-fG7ODNgr.mjs +0 -611
  170. package/dist/use-modal-CkrZ-_-M.mjs +0 -14
  171. package/dist/use-search-DpLNvt7Q.mjs +0 -12
  172. package/dist/utils-CQvBF-wY.mjs +0 -4
@@ -1,14 +1,66 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import { useTheme as m } from "styled-components";
3
- import { Container as i } from "../../container/index.js";
1
+ import { jsxs as i, jsx as r } from "react/jsx-runtime";
2
+ import { useTheme as c } from "styled-components";
3
+ import { Container as t } from "../../container/index.js";
4
4
  import { Icon as d } from "../../icon/index.js";
5
5
  import { PremiumFeature as g } from "../../premium-feature/index.js";
6
6
  import "../../typography/heading/index.js";
7
7
  import "../../typography/span/index.js";
8
8
  import { Text as o } from "../../typography/text/index.js";
9
- const j = ({ customBadge: a, description: l, icon: s, onClick: n, requiresUpgrade: p = !1, title: c }) => {
10
- const e = m();
11
- return t(i, { bgColor: e.palette.white, bgColorHover: e.palette.gray[100], cursor: "pointer", display: "flex", gap: 0.5, onClick: n, px: 1.25, py: 1, width: "100%", children: [r(i, { alignItems: "center", bgColor: e.palette.gray[300], borderRadius: e.spacing[0.25], display: "flex", height: "24px", justify: "center", width: "24px", children: r(d, { icon: s, iconColor: e.palette.gray[800], iconSize: "xxs", ml: 0.5, mr: 0.5 }) }), t(i, { children: [t(i, { alignItems: "center", display: "inline-flex", gap: 0.5, children: [r(o, { color: e.palette.gray[800], size: "sm", children: c }), p ? r(g, { text: "Upgrade" }) : void 0, a] }), r(o, { color: e.palette.gray[400], size: "xs", children: l })] })] });
9
+ const j = ({
10
+ customBadge: l = void 0,
11
+ description: n,
12
+ icon: p,
13
+ onClick: a,
14
+ requiresUpgrade: m = !1,
15
+ title: s
16
+ }) => {
17
+ const e = c();
18
+ return /* @__PURE__ */ i(
19
+ t,
20
+ {
21
+ bgColor: e.palette.white,
22
+ bgColorHover: e.palette.gray[100],
23
+ cursor: "pointer",
24
+ display: "flex",
25
+ gap: 0.5,
26
+ onClick: a,
27
+ px: 1.25,
28
+ py: 1,
29
+ width: "100%",
30
+ children: [
31
+ /* @__PURE__ */ r(
32
+ t,
33
+ {
34
+ alignItems: "center",
35
+ bgColor: e.palette.gray[300],
36
+ borderRadius: e.spacing[0.25],
37
+ display: "flex",
38
+ height: "24px",
39
+ justify: "center",
40
+ width: "24px",
41
+ children: /* @__PURE__ */ r(
42
+ d,
43
+ {
44
+ icon: p,
45
+ iconColor: e.palette.gray[800],
46
+ iconSize: "xxs",
47
+ ml: 0.5,
48
+ mr: 0.5
49
+ }
50
+ )
51
+ }
52
+ ),
53
+ /* @__PURE__ */ i(t, { children: [
54
+ /* @__PURE__ */ i(t, { alignItems: "center", display: "inline-flex", gap: 0.5, children: [
55
+ /* @__PURE__ */ r(o, { color: e.palette.gray[800], size: "sm", children: s }),
56
+ m ? /* @__PURE__ */ r(g, { text: "Upgrade" }) : void 0,
57
+ l
58
+ ] }),
59
+ /* @__PURE__ */ r(o, { color: e.palette.gray[400], size: "xs", children: n })
60
+ ] })
61
+ ]
62
+ }
63
+ );
12
64
  };
13
65
  export {
14
66
  j as MenuItem
@@ -1,44 +1,44 @@
1
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
- import { useRef as u } from "react";
3
- import { useNumberFormatter as y, useSlider as f } from "react-aria";
4
- import { useSliderState as x } from "react-stately";
5
- import { styled as o, useTheme as b } from "styled-components";
6
- import { Thumb as w } from "./thumb/index.js";
7
- import { Container as k } from "../container/index.js";
1
+ import { jsxs as n, jsx as a } from "react/jsx-runtime";
2
+ import { useRef as $ } from "react";
3
+ import { useNumberFormatter as u, useSlider as y } from "react-aria";
4
+ import { useSliderState as m } from "react-stately";
5
+ import { styled as o, useTheme as f } from "styled-components";
6
+ import { Thumb as b } from "./thumb/index.js";
7
+ import { Container as x } from "../container/index.js";
8
8
  import "../typography/heading/index.js";
9
9
  import "../typography/span/index.js";
10
- import { Text as j } from "../typography/text/index.js";
11
- const v = o.div`
12
- ${({ theme: e, $min: p, $value: r }) => `
10
+ import { Text as h } from "../typography/text/index.js";
11
+ const w = (r, t) => t >= 50 ? `
12
+ ${r.palette.gray[200]} 50%,
13
+ ${r.palette.primary[500]} 50.05%,
14
+ ${r.palette.primary[500]} ${t}%,
15
+ ${r.palette.gray[200]} ${t}%
16
+ ` : `
17
+ ${r.palette.gray[200]} ${t}%,
18
+ ${r.palette.primary[500]} ${t}%,
19
+ ${r.palette.primary[500]} 50%,
20
+ ${r.palette.gray[200]} 50.05%,
21
+ ${r.palette.gray[200]} 100%
22
+ `, k = o.div`
23
+ ${({ theme: r, $min: t, $value: i }) => `
13
24
  align-items: center;
14
25
  align-self: stretch;
15
26
  display: flex;
16
27
  flex-direction: column;
17
28
  justify-content: end;
18
- gap: ${e.spacing[0.75]};
29
+ gap: ${r.spacing[0.75]};
19
30
  width: 304px;
20
31
 
21
32
  .track {
22
33
  background: linear-gradient(
23
34
  to right,
24
- ${p >= 0 ? `
25
- ${e.palette.primary[500]} ${r}%,
26
- ${e.palette.gray[200]} ${r}%
27
- ` : ((a, t) => t >= 50 ? `
28
- ${a.palette.gray[200]} 50%,
29
- ${a.palette.primary[500]} 50.05%,
30
- ${a.palette.primary[500]} ${t}%,
31
- ${a.palette.gray[200]} ${t}%
32
- ` : `
33
- ${a.palette.gray[200]} ${t}%,
34
- ${a.palette.primary[500]} ${t}%,
35
- ${a.palette.primary[500]} 50%,
36
- ${a.palette.gray[200]} 50.05%,
37
- ${a.palette.gray[200]} 100%
38
- `)(e, r)}
35
+ ${t >= 0 ? `
36
+ ${r.palette.primary[500]} ${i}%,
37
+ ${r.palette.gray[200]} ${i}%
38
+ ` : w(r, i)}
39
39
  );
40
- border-radius: ${e.spacing[0.125]};
41
- height: ${e.spacing[0.25]};
40
+ border-radius: ${r.spacing[0.125]};
41
+ height: ${r.spacing[0.25]};
42
42
  width: 100%;
43
43
  }
44
44
 
@@ -47,8 +47,8 @@ const v = o.div`
47
47
  }
48
48
 
49
49
  .thumb {
50
- background: ${e.palette.white};
51
- border-radius: ${e.spacing[1.25]};
50
+ background: ${r.palette.white};
51
+ border-radius: ${r.spacing[1.25]};
52
52
  box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
53
53
  top: 50%;
54
54
  height: 20px;
@@ -56,38 +56,69 @@ const v = o.div`
56
56
  }
57
57
 
58
58
  .thumb.dragging {
59
- border: 1px solid ${e.palette.primary[500]};
59
+ border: 1px solid ${r.palette.primary[500]};
60
60
  }
61
61
  `}
62
- `, T = o.div`
63
- ${({ theme: e }) => `
62
+ `, S = o.div`
63
+ ${({ theme: r }) => `
64
64
  align-items: center;
65
65
  display: flex;
66
66
  justify-content: space-between;
67
- height: ${e.spacing[0.625]};
67
+ height: ${r.spacing[0.625]};
68
68
  width: 100%;
69
69
 
70
70
  p {
71
- color: ${e.palette.gray[400]};
72
- font-family: ${e.typography.type.primary};
73
- font-size: ${e.spacing[0.5]};
71
+ color: ${r.palette.gray[400]};
72
+ font-family: ${r.typography.type.primary};
73
+ font-size: ${r.spacing[0.5]};
74
74
  }
75
75
  `}
76
- `, S = o.output`
77
- ${({ theme: e }) => `
76
+ `, V = o.output`
77
+ ${({ theme: r }) => `
78
78
  align-items: flex-end;
79
- border-radius: ${e.spacing[0.5]};
80
- border: 1px solid ${e.palette.gray[300]};
81
- background: ${e.palette.white};
79
+ border-radius: ${r.spacing[0.5]};
80
+ border: 1px solid ${r.palette.gray[300]};
81
+ background: ${r.palette.white};
82
82
  display: flex;
83
- gap: ${e.spacing[0.625]};
84
- padding: ${e.spacing[0.625]} ${e.spacing[0.75]};
83
+ gap: ${r.spacing[0.625]};
84
+ padding: ${r.spacing[0.625]} ${r.spacing[0.75]};
85
85
  width: 59px;
86
86
  `}
87
- `, H = (e) => {
88
- const p = b(), r = u(null), { minValue: a = 0, maxValue: t = 100 } = e, l = y(), i = x({ ...e, numberFormatter: l }), m = ((d, c, h) => Math.round((h - d) / (c - d) * 100))(a, t, i.getThumbValue(0)), { groupProps: g, trackProps: $ } = f({ ...e, "aria-label": "slider" }, i, r);
89
- return s(k, { alignItems: "center", display: "inline-flex", gap: 1.25, children: [s(v, { ...g, $min: a ?? 0, $value: m, className: "slider", children: [n("div", { ...$, className: "track " + (i.isDisabled ? "disabled" : ""), ref: r, children: n(w, { index: 0, state: i, trackRef: r }) }), s(T, { children: [n("p", { children: `${l.format(a)} (Low)` }), a < 0 && n("p", { children: "0" }), n("p", { children: `${l.format(t)} (High)` })] })] }), n(S, { children: n(j, { color: p.palette.gray[800], size: "sm", textAlign: "right", children: i.getThumbValueLabel(0) }) })] });
87
+ `, T = (r, t, i) => Math.round((i - r) / (t - r) * 100), D = (r) => {
88
+ const t = f(), i = $(null), { minValue: p = 0, maxValue: s = 100 } = r, l = u(), e = m({ ...r, numberFormatter: l }), d = T(p, s, e.getThumbValue(0)), { groupProps: c, trackProps: g } = y(
89
+ { ...r, "aria-label": "slider" },
90
+ e,
91
+ i
92
+ );
93
+ return /* @__PURE__ */ n(x, { alignItems: "center", display: "inline-flex", gap: 1.25, children: [
94
+ /* @__PURE__ */ n(
95
+ k,
96
+ {
97
+ ...c,
98
+ $min: p ?? 0,
99
+ $value: d,
100
+ className: "slider",
101
+ children: [
102
+ /* @__PURE__ */ a(
103
+ "div",
104
+ {
105
+ ...g,
106
+ className: `track ${e.isDisabled ? "disabled" : ""}`,
107
+ ref: i,
108
+ children: /* @__PURE__ */ a(b, { index: 0, state: e, trackRef: i })
109
+ }
110
+ ),
111
+ /* @__PURE__ */ n(S, { children: [
112
+ /* @__PURE__ */ a("p", { children: `${l.format(p)} (Low)` }),
113
+ p < 0 && /* @__PURE__ */ a("p", { children: "0" }),
114
+ /* @__PURE__ */ a("p", { children: `${l.format(s)} (High)` })
115
+ ] })
116
+ ]
117
+ }
118
+ ),
119
+ /* @__PURE__ */ a(V, { children: /* @__PURE__ */ a(h, { color: t.palette.gray[800], size: "sm", textAlign: "right", children: e.getThumbValueLabel(0) }) })
120
+ ] });
90
121
  };
91
122
  export {
92
- H as Slider
123
+ D as Slider
93
124
  };
@@ -1,10 +1,17 @@
1
1
  import { jsx as r } from "react/jsx-runtime";
2
- import { useRef as u } from "react";
3
- import { useSliderThumb as o, VisuallyHidden as p } from "react-aria";
4
- const l = ({ state: i, trackRef: s, index: t }) => {
5
- const e = u(null), { thumbProps: n, inputProps: a, isDragging: m } = o({ index: t, trackRef: s, inputRef: e }, i);
6
- return r("div", { ...n, className: "thumb " + (m ? "dragging" : ""), children: r(p, { children: r("input", { ref: e, ...a }) }) });
2
+ import { useRef as m } from "react";
3
+ import { useSliderThumb as p, VisuallyHidden as l } from "react-aria";
4
+ const g = ({
5
+ state: n,
6
+ trackRef: t,
7
+ index: e
8
+ }) => {
9
+ const i = m(null), { thumbProps: o, inputProps: s, isDragging: u } = p(
10
+ { index: e, trackRef: t, inputRef: i },
11
+ n
12
+ );
13
+ return /* @__PURE__ */ r("div", { ...o, className: `thumb ${u ? "dragging" : ""}`, children: /* @__PURE__ */ r(l, { children: /* @__PURE__ */ r("input", { ref: i, ...s }) }) });
7
14
  };
8
15
  export {
9
- l as Thumb
16
+ g as Thumb
10
17
  };
@@ -1,29 +1,33 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import { useState as v, useCallback as k } from "react";
3
- import { styled as o } from "styled-components";
4
- import { v as w } from "../../utils-CQvBF-wY.mjs";
5
- import "../../styles-C3cZmKVJ.mjs";
1
+ import { jsx as i, jsxs as a } from "react/jsx-runtime";
2
+ import { useState as k, useCallback as S } from "react";
3
+ import { styled as e } from "styled-components";
4
+ import { v as w } from "../../utils-V0EumEPM.mjs";
5
+ import "../../styles-CplEd2kw.mjs";
6
6
  import { Button as d } from "../button/index.js";
7
7
  import { Container as g } from "../container/index.js";
8
8
  import { Icon as C } from "../icon/index.js";
9
9
  import { Heading as z } from "../typography/heading/index.js";
10
10
  import "../typography/span/index.js";
11
11
  import "../typography/text/index.js";
12
- const { getVariant: S } = w((t) => ({ completed: `
12
+ const { getVariant: B } = w(
13
+ (t) => ({
14
+ completed: `
13
15
  background-color: ${t.palette.primary[500]};
14
16
  color: ${t.palette.white};
15
17
 
16
18
  &::after {
17
19
  background-color: ${t.palette.primary[500]};
18
20
  }
19
- `, current: `
21
+ `,
22
+ current: `
20
23
  background-color: ${t.palette.primary[500]};
21
24
  color: ${t.palette.white};
22
25
 
23
26
  &::after {
24
27
  background-color: ${t.palette.gray[200]};
25
28
  }
26
- `, disabled: `
29
+ `,
30
+ disabled: `
27
31
  background-color: ${t.palette.gray[200]};
28
32
  outline: 1px solid ${t.palette.gray[400]};
29
33
  outline-offset: -1px;
@@ -32,17 +36,19 @@ const { getVariant: S } = w((t) => ({ completed: `
32
36
  &::after {
33
37
  background-color: ${t.palette.gray[200]};
34
38
  }
35
- ` })), j = o.div`
39
+ `
40
+ })
41
+ ), N = e.div`
36
42
  ${({ theme: t }) => `
37
43
  align-items: stretch;
38
44
  background-color: ${t.palette.white};
39
45
  display: flex;
40
46
  flex-direction: column;
41
47
  height: 100%;
42
- padding: ${t.spacing[1]} ${t.spacing[1]};
48
+ padding: ${`${t.spacing[1]} ${t.spacing[1]}`};
43
49
  scroll-behavior: unset;
44
50
  `}
45
- `, A = o.div`
51
+ `, j = e.div`
46
52
  display: flex;
47
53
  flex-direction: row;
48
54
  margin-bottom: ${({ theme: t }) => t.spacing[2]};
@@ -50,7 +56,7 @@ const { getVariant: S } = w((t) => ({ completed: `
50
56
  &:last-child > div:first-child > span::after {
51
57
  display: none;
52
58
  }
53
- `, D = o.div`
59
+ `, A = e.div`
54
60
  ${({ theme: t }) => `
55
61
  display: inline-flex;
56
62
  font-family: ${t.typography.type.primary};
@@ -62,7 +68,7 @@ const { getVariant: S } = w((t) => ({ completed: `
62
68
  margin-right: ${t.spacing[0.5]};
63
69
  }
64
70
  `}
65
- `, N = o.span`
71
+ `, D = e.span`
66
72
  ${({ theme: t, $variant: l }) => `
67
73
  border-radius: 6px;
68
74
  display: inline-block;
@@ -71,7 +77,7 @@ const { getVariant: S } = w((t) => ({ completed: `
71
77
  font-weight: ${t.typography.weight.bold};
72
78
  font-family: ${t.typography.type.primary};
73
79
  line-height: ${t.spacing[1]};
74
- padding: ${t.spacing[0.5]} ${t.spacing[0.5]};
80
+ padding: ${`${t.spacing[0.5]} ${t.spacing[0.5]}`};
75
81
  height: ${t.spacing[2]};
76
82
  width: ${t.spacing[2]};
77
83
 
@@ -85,17 +91,69 @@ const { getVariant: S } = w((t) => ({ completed: `
85
91
  height: calc(100% - ${t.spacing[1]});
86
92
  }
87
93
 
88
- ${S(t, l)}
94
+ ${B(t, l)}
89
95
  `}
90
- `, G = ({ button: { disabled: t = !1, text: l, type: y = "button", onClick: $ }, steps: h }) => {
91
- const [a, f] = v(1), m = k((n, i) => () => {
92
- f((p) => p + n), i == null || i();
93
- }, []);
94
- return e(j, { children: h.map((n, i) => {
95
- const { content: p, title: b, nextAction: u, previousAction: x } = n, c = i + 1, s = c < a ? "completed" : c === a ? "current" : "disabled";
96
- return r(A, { children: [e(g, { maxWidth: "40px", position: "relative", children: e(N, { $variant: s, children: s === "completed" ? e(C, { icon: "check", iconSize: "xs", iconType: "fa-solid" }) : c }) }), r(g, { ml: 1.5, width: "100%", children: [e(z, { fontWeight: "bold", lineSpacing: 1.25, mb: 1.5, size: "xs", children: b }), s === "current" && r(g, { children: [p, r(D, { children: [a > 1 && e(d, { disabled: n.isDisabledPrevious ?? !1, onClick: m(-1, x), variant: "tertiary", children: "Previous" }), a < h.length ? e(d, { disabled: n.isDisabledNext ?? !1, onClick: m(1, u), variant: "primary", children: "Next step" }) : e(d, { disabled: t, onClick: $, type: y, variant: "primary", children: l })] })] })] })] }, n.title);
96
+ `, J = ({
97
+ button: { disabled: t = !1, text: l, type: f = "button", onClick: u },
98
+ steps: y
99
+ }) => {
100
+ const [n, b] = k(1), $ = S(
101
+ (r, o) => () => {
102
+ b((p) => p + r), o == null || o();
103
+ },
104
+ []
105
+ );
106
+ return /* @__PURE__ */ i(N, { children: y.map((r, o) => {
107
+ const { content: p, title: x, nextAction: h, previousAction: m } = r, c = o + 1, v = c === n ? "current" : "disabled", s = c < n ? "completed" : v;
108
+ return /* @__PURE__ */ a(j, { children: [
109
+ /* @__PURE__ */ i(g, { maxWidth: "40px", position: "relative", children: /* @__PURE__ */ i(D, { $variant: s, children: s === "completed" ? /* @__PURE__ */ i(C, { icon: "check", iconSize: "xs", iconType: "fa-solid" }) : c }) }),
110
+ /* @__PURE__ */ a(g, { ml: 1.5, width: "100%", children: [
111
+ /* @__PURE__ */ i(
112
+ z,
113
+ {
114
+ fontWeight: "bold",
115
+ lineSpacing: 1.25,
116
+ mb: 1.5,
117
+ size: "xs",
118
+ children: x
119
+ }
120
+ ),
121
+ s === "current" && /* @__PURE__ */ a(g, { children: [
122
+ p,
123
+ /* @__PURE__ */ a(A, { children: [
124
+ n > 1 && /* @__PURE__ */ i(
125
+ d,
126
+ {
127
+ disabled: r.isDisabledPrevious ?? !1,
128
+ onClick: $(-1, m),
129
+ variant: "tertiary",
130
+ children: "Previous"
131
+ }
132
+ ),
133
+ n < y.length ? /* @__PURE__ */ i(
134
+ d,
135
+ {
136
+ disabled: r.isDisabledNext ?? !1,
137
+ onClick: $(1, h),
138
+ variant: "primary",
139
+ children: "Next step"
140
+ }
141
+ ) : /* @__PURE__ */ i(
142
+ d,
143
+ {
144
+ disabled: t,
145
+ onClick: u,
146
+ type: f,
147
+ variant: "primary",
148
+ children: l
149
+ }
150
+ )
151
+ ] })
152
+ ] })
153
+ ] })
154
+ ] }, r.title);
97
155
  }) });
98
156
  };
99
157
  export {
100
- G as StepLapse
158
+ J as StepLapse
101
159
  };
@@ -1,21 +1,21 @@
1
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
- import { styled as m, useTheme as b } from "styled-components";
3
- import { Container as u } from "../container/index.js";
4
- import { Icon as g } from "../icon/index.js";
1
+ import { jsxs as c, jsx as s } from "react/jsx-runtime";
2
+ import { styled as u, useTheme as g } from "styled-components";
3
+ import { Container as b } from "../container/index.js";
4
+ import { Icon as y } from "../icon/index.js";
5
5
  import "../typography/heading/index.js";
6
6
  import "../typography/span/index.js";
7
- import { Text as h } from "../typography/text/index.js";
8
- const y = m.button`
9
- ${({ theme: e }) => `
7
+ import { Text as f } from "../typography/text/index.js";
8
+ const x = u.button`
9
+ ${({ theme: o }) => `
10
10
  align-items: center;
11
- background-color: ${e.palette.white};
12
- border: 1px solid ${e.palette.gray[100]};
13
- border-radius: ${e.spacing[0.25]};
14
- color: ${e.palette.gray[800]};
11
+ background-color: ${o.palette.white};
12
+ border: 1px solid ${o.palette.gray[100]};
13
+ border-radius: ${o.spacing[0.25]};
14
+ color: ${o.palette.gray[800]};
15
15
  cursor: pointer;
16
16
  display: flex;
17
- font-size: ${e.typography.text.sm};
18
- gap: ${e.spacing[0.25]};
17
+ font-size: ${o.typography.text.sm};
18
+ gap: ${o.spacing[0.25]};
19
19
  height: 21px;
20
20
  width: 21px;
21
21
  justify-content: center;
@@ -28,29 +28,70 @@ const y = m.button`
28
28
  }
29
29
 
30
30
  &.success {
31
- border-color: ${e.palette.success[500]};
32
- color: ${e.palette.success[500]};
31
+ border-color: ${o.palette.success[500]};
32
+ color: ${o.palette.success[500]};
33
33
 
34
34
  &:hover {
35
- background-color: ${e.palette.success[200]};
35
+ background-color: ${o.palette.success[200]};
36
36
  }
37
37
  }
38
38
 
39
39
  &:disabled {
40
40
  cursor: not-allowed;
41
- background: ${e.palette.gray[200]};
42
- border-color: ${e.palette.gray[200]};
43
- color: ${e.palette.gray[300]};
41
+ background: ${o.palette.gray[200]};
42
+ border-color: ${o.palette.gray[200]};
43
+ color: ${o.palette.gray[300]};
44
44
  }
45
45
 
46
46
  &:hover:not(.success) {
47
- background-color: ${e.palette.gray[100]};
47
+ background-color: ${o.palette.gray[100]};
48
48
  }
49
49
  `}
50
- `, x = { add: { icon: "plus" }, approve: { icon: "check" }, disabled: { icon: "ban" }, reject: { icon: "xmark" }, submit: { icon: "arrow-right" }, success: { icon: "check" } }, z = ({ disabled: e = !1, icon: i, id: s, label: n, name: o, onClick: c, type: l = "button", variant: t }) => {
51
- const p = b(), d = a(y, { "aria-label": o ?? void 0, className: t, disabled: e, id: s, onClick: c, type: l, children: [r(g, { clickable: !1, icon: i ?? x[t].icon, iconSize: o === void 0 ? "xxs" : "xs", iconType: "fa-light" }), o ?? void 0] });
52
- return a(u, { alignItems: "center", display: "flex", children: [d, n && r(h, { color: p.palette.gray[800], ml: 0.5, size: "sm", children: n })] });
50
+ `, $ = {
51
+ add: { icon: "plus" },
52
+ approve: { icon: "check" },
53
+ disabled: { icon: "ban" },
54
+ reject: { icon: "xmark" },
55
+ submit: { icon: "arrow-right" },
56
+ success: { icon: "check" }
57
+ }, v = ({
58
+ disabled: o = !1,
59
+ icon: a,
60
+ id: i,
61
+ label: e,
62
+ name: r,
63
+ onClick: n,
64
+ type: l = "button",
65
+ variant: t
66
+ }) => {
67
+ const p = g(), d = /* @__PURE__ */ c(
68
+ x,
69
+ {
70
+ "aria-label": r ?? void 0,
71
+ className: t,
72
+ disabled: o,
73
+ id: i,
74
+ onClick: n,
75
+ type: l,
76
+ children: [
77
+ /* @__PURE__ */ s(
78
+ y,
79
+ {
80
+ clickable: !1,
81
+ icon: a ?? $[t].icon,
82
+ iconSize: r === void 0 ? "xxs" : "xs",
83
+ iconType: "fa-light"
84
+ }
85
+ ),
86
+ r ?? void 0
87
+ ]
88
+ }
89
+ );
90
+ return /* @__PURE__ */ c(b, { alignItems: "center", display: "flex", children: [
91
+ d,
92
+ e && /* @__PURE__ */ s(f, { color: p.palette.gray[800], ml: 0.5, size: "sm", children: e })
93
+ ] });
53
94
  };
54
95
  export {
55
- z as TableButton
96
+ v as TableButton
56
97
  };
@@ -1,9 +1,29 @@
1
1
  import { jsx as i } from "react/jsx-runtime";
2
- import { S as r, a } from "../../../styles-BA0WIQL-.mjs";
3
- import { Heading as c } from "../../typography/heading/index.js";
2
+ import { S as s, a } from "../../../styles-ePGii_9g.mjs";
3
+ import { Heading as d } from "../../typography/heading/index.js";
4
4
  import "../../typography/span/index.js";
5
5
  import "../../typography/text/index.js";
6
- const b = ({ items: o }) => i(r, { children: o.map(({ isActive: s, label: e, onClick: t }, m) => i(a, { className: s ? "active" : "", onClick: t, type: "button", children: i(c, { color: "inherit", fontWeight: "semibold", size: "sm", sizeSm: "xs", children: e }) }, `${e}-${m}`)) });
6
+ const h = ({ items: t }) => /* @__PURE__ */ i(s, { children: t.map(
7
+ ({ isActive: r, label: e, onClick: o }, m) => /* @__PURE__ */ i(
8
+ a,
9
+ {
10
+ className: r ? "active" : "",
11
+ onClick: o,
12
+ type: "button",
13
+ children: /* @__PURE__ */ i(
14
+ d,
15
+ {
16
+ color: "inherit",
17
+ fontWeight: "semibold",
18
+ size: "sm",
19
+ sizeSm: "xs",
20
+ children: e
21
+ }
22
+ )
23
+ },
24
+ `${e}-${m}`
25
+ )
26
+ ) });
7
27
  export {
8
- b as FixedTabs
28
+ h as FixedTabs
9
29
  };
@@ -1,14 +1,57 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { useTheme as m } from "styled-components";
3
- import { FixedTabs as u } from "./fixed-tabs/index.js";
4
- import { Tab as c } from "./tab/index.js";
5
- import { Container as v } from "../container/index.js";
6
- const T = ({ items: a, borders: t = !0, box: i = !1 }) => {
7
- const o = m();
8
- return e(v, { bgColor: o.palette.white, border: i ? "1px solid" : void 0, borderBottom: t ? `1px solid ${o.palette.gray[300]}` : void 0, borderColor: i ? o.palette.gray[200] : void 0, borderRadius: i ? o.spacing[0.25] : void 0, display: "inline-flex", gap: 0.25, padding: i ? [0, 0, 0, 0] : void 0, pl: t ? 1.25 : void 0, pr: t ? 1.25 : void 0, role: "tablist", width: i ? "max-content" : "100%", children: a.map(({ id: r, isActive: l, link: s, label: d, notificationSign: p, onClick: n, tooltip: b }) => e(c, { id: r, isActive: l, label: d, link: s, notificationSign: p, onClick: n, tooltip: b }, r)) });
1
+ import { jsx as d } from "react/jsx-runtime";
2
+ import { useTheme as s } from "styled-components";
3
+ import { FixedTabs as w } from "./fixed-tabs/index.js";
4
+ import { Tab as u } from "./tab/index.js";
5
+ import { Container as g } from "../container/index.js";
6
+ const b = ({
7
+ items: i,
8
+ borders: r = !0,
9
+ box: e = !1
10
+ }) => {
11
+ const n = s();
12
+ return /* @__PURE__ */ d(
13
+ g,
14
+ {
15
+ bgColor: n.palette.white,
16
+ border: e ? "1px solid" : void 0,
17
+ borderBottom: r ? `1px solid ${n.palette.gray[300]}` : void 0,
18
+ borderColor: e ? n.palette.gray[200] : void 0,
19
+ borderRadius: e ? n.spacing[0.25] : void 0,
20
+ display: "inline-flex",
21
+ gap: 0.25,
22
+ padding: e ? [0, 0, 0, 0] : void 0,
23
+ pl: r ? 1.25 : void 0,
24
+ pr: r ? 1.25 : void 0,
25
+ role: "tablist",
26
+ width: e ? "max-content" : "100%",
27
+ children: i.map(
28
+ ({
29
+ id: t,
30
+ isActive: o,
31
+ link: a,
32
+ label: p,
33
+ notificationSign: l,
34
+ onClick: f,
35
+ tooltip: m
36
+ }) => /* @__PURE__ */ d(
37
+ u,
38
+ {
39
+ id: t,
40
+ isActive: o,
41
+ label: p,
42
+ link: a,
43
+ notificationSign: l,
44
+ onClick: f,
45
+ tooltip: m
46
+ },
47
+ t
48
+ )
49
+ )
50
+ }
51
+ );
9
52
  };
10
53
  export {
11
- u as FixedTabs,
12
- c as Tab,
13
- T as Tabs
54
+ w as FixedTabs,
55
+ u as Tab,
56
+ b as Tabs
14
57
  };