@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,95 +1,153 @@
1
- import { jsxs as h, jsx as l } from "react/jsx-runtime";
1
+ import { jsxs as $, jsx as n } from "react/jsx-runtime";
2
2
  import { styled as p } from "styled-components";
3
- import { v as g } from "../../utils-CQvBF-wY.mjs";
4
- import "../../styles-C3cZmKVJ.mjs";
3
+ import { v as h } from "../../utils-V0EumEPM.mjs";
4
+ import "../../styles-CplEd2kw.mjs";
5
5
  import { Container as d } from "../container/index.js";
6
6
  import "../typography/heading/index.js";
7
7
  import "../typography/span/index.js";
8
- import { Text as $ } from "../typography/text/index.js";
9
- const { getVariant: m } = g((n) => ({ compliance: `
8
+ import { Text as f } from "../typography/text/index.js";
9
+ const { getVariant: u } = h(
10
+ (r) => ({
11
+ compliance: `
10
12
  display: inline-flex;
11
13
 
12
14
  &.horizontal {
13
- height: ${n.spacing[0.75]};
15
+ height: ${r.spacing[0.75]};
14
16
  }
15
17
  &.vertical {
16
- width: ${n.spacing[0.75]};
18
+ width: ${r.spacing[0.75]};
17
19
  }
18
- `, default: `
20
+ `,
21
+ default: `
19
22
  display: inline-flex;
20
23
 
21
24
  &.horizontal {
22
- height: ${n.spacing[0.5]};
25
+ height: ${r.spacing[0.5]};
23
26
  }
24
27
  &.vertical {
25
- width: ${n.spacing[0.5]};
28
+ width: ${r.spacing[0.5]};
26
29
  }
27
30
  .progress-bar {
28
- background-color: ${n.palette.primary[500]};
31
+ background-color: ${r.palette.primary[500]};
29
32
  }
30
- `, progressIndicator: `
33
+ `,
34
+ progressIndicator: `
31
35
  display: flex;
32
36
 
33
37
  &.horizontal {
34
- height: ${n.spacing[0.125]};
38
+ height: ${r.spacing[0.125]};
35
39
  }
36
40
  &.vertical {
37
- width: ${n.spacing[0.125]};
41
+ width: ${r.spacing[0.125]};
38
42
  }
39
43
  .progress-bar {
40
- background-color: ${n.palette.primary[500]};
44
+ background-color: ${r.palette.primary[500]};
41
45
  }
42
- `, progressIndicatorError: `
46
+ `,
47
+ progressIndicatorError: `
43
48
  display: flex;
44
49
 
45
50
  &.horizontal {
46
- height: ${n.spacing[0.125]};
51
+ height: ${r.spacing[0.125]};
47
52
  }
48
53
  &.vertical {
49
- width: ${n.spacing[0.125]};
54
+ width: ${r.spacing[0.125]};
50
55
  }
51
56
  .progress-bar {
52
- background-color: ${n.palette.error[200]};
57
+ background-color: ${r.palette.error[200]};
53
58
  }
54
- `, small: `
55
- color: ${n.palette.primary[500]};
59
+ `,
60
+ small: `
61
+ color: ${r.palette.primary[500]};
56
62
  display: inline-flex;
57
63
 
58
64
  &.horizontal {
59
- height: ${n.spacing[0.25]};
65
+ height: ${r.spacing[0.25]};
60
66
  }
61
67
  &.vertical {
62
- width: ${n.spacing[0.25]};
68
+ width: ${r.spacing[0.25]};
63
69
  }
64
70
  .progress-bar {
65
- background-color: ${n.palette.primary[500]};
71
+ background-color: ${r.palette.primary[500]};
66
72
  }
67
- ` })), u = p.div`
68
- ${({ theme: n, $minWidth: r, $orientation: e, $rounded: t, $variant: i }) => `
69
- background-color: ${n.palette.gray[100]};
73
+ `
74
+ })
75
+ ), x = (r, i) => i < 50 ? r.palette.error[500] : i < 80 ? r.palette.warning[500] : r.palette.success[500], b = p.div`
76
+ ${({ theme: r, $minWidth: i, $orientation: a, $rounded: t, $variant: o }) => `
77
+ background-color: ${r.palette.gray[100]};
70
78
  border-radius: ${t ? "100px" : "unset"};
71
- ${e === "horizontal" ? "min-width" : "min-height"}: ${r}px;
72
- ${e === "horizontal" ? "" : "height: 100%;"}
79
+ ${a === "horizontal" ? "min-width" : "min-height"}: ${i}px;
80
+ ${a === "horizontal" ? "" : "height: 100%;"}
73
81
 
74
- ${m(n, i)}
82
+ ${u(r, o)}
75
83
 
76
84
  `}
77
- `, x = p.div`
78
- ${({ theme: n, $percentage: r, $rounded: e, $variant: t }) => `
85
+ `, m = p.div`
86
+ ${({ theme: r, $percentage: i, $rounded: a, $variant: t }) => `
79
87
  display: inline-flex;
80
- width: ${r}%;
88
+ width: ${i}%;
81
89
  max-width: 100%;
82
90
  min-width: 0%;
83
91
  height: 100%;
84
- border-radius: ${e ? "100px" : "unset"};
85
- border-end-end-radius: ${e && r < 100 ? "0" : "inherit"};
86
- border-start-end-radius: ${e && r < 100 ? "0" : "inherit"};
87
- background-color: ${t === "compliance" ? ((i, a) => a < 50 ? i.palette.error[500] : a < 80 ? i.palette.warning[500] : i.palette.success[500])(n, r) : "inherit"};
92
+ border-radius: ${a ? "100px" : "unset"};
93
+ border-end-end-radius: ${a && i < 100 ? "0" : "inherit"};
94
+ border-start-end-radius: ${a && i < 100 ? "0" : "inherit"};
95
+ background-color: ${t === "compliance" ? x(r, i) : "inherit"};
88
96
  `}
89
- `, I = ({ minWidth: n = 100, percentage: r, percentageLocation: e = "right", showPercentage: t = !1, orientation: i = "horizontal", rounded: a = !0, variant: s = "default" }) => {
90
- const o = t && e === "left", c = t ? l(d, { alignItems: "center", display: "flex", justify: o ? "flex-end" : "flex-start", width: "40px", children: l($, { ml: 0.5, mr: o ? 0.5 : 0, size: "sm", children: `${r}%` }) }) : null;
91
- return h(d, { alignItems: "center", display: "inline-flex", flexDirection: o ? "row-reverse" : "row", height: i === "horizontal" ? "auto" : "100%", maxWidth: o ? `${n + 43}px` : void 0, minWidth: o ? `${n + 43}px` : void 0, textAlign: "end", children: [l(u, { $minWidth: n, $orientation: i, $rounded: a, $variant: s, className: i, children: l(x, { $percentage: r, $rounded: a, $variant: s, className: "progress-bar" }) }), c] });
97
+ `, C = ({
98
+ minWidth: r = 100,
99
+ percentage: i,
100
+ percentageLocation: a = "right",
101
+ showPercentage: t = !1,
102
+ orientation: o = "horizontal",
103
+ rounded: s = !0,
104
+ variant: e = "default"
105
+ }) => {
106
+ const l = t && a === "left", c = t ? /* @__PURE__ */ n(
107
+ d,
108
+ {
109
+ alignItems: "center",
110
+ display: "flex",
111
+ justify: l ? "flex-end" : "flex-start",
112
+ width: "40px",
113
+ children: /* @__PURE__ */ n(f, { ml: 0.5, mr: l ? 0.5 : 0, size: "sm", children: `${i}%` })
114
+ }
115
+ ) : null, g = /* @__PURE__ */ n(
116
+ b,
117
+ {
118
+ $minWidth: r,
119
+ $orientation: o,
120
+ $rounded: s,
121
+ $variant: e,
122
+ className: o,
123
+ children: /* @__PURE__ */ n(
124
+ m,
125
+ {
126
+ $percentage: i,
127
+ $rounded: s,
128
+ $variant: e,
129
+ className: "progress-bar"
130
+ }
131
+ )
132
+ }
133
+ );
134
+ return /* @__PURE__ */ $(
135
+ d,
136
+ {
137
+ alignItems: "center",
138
+ display: "inline-flex",
139
+ flexDirection: l ? "row-reverse" : "row",
140
+ height: o === "horizontal" ? "auto" : "100%",
141
+ maxWidth: l ? `${r + 43}px` : void 0,
142
+ minWidth: l ? `${r + 43}px` : void 0,
143
+ textAlign: "end",
144
+ children: [
145
+ g,
146
+ c
147
+ ]
148
+ }
149
+ );
92
150
  };
93
151
  export {
94
- I as ProgressBar
152
+ C as ProgressBar
95
153
  };
@@ -1,22 +1,22 @@
1
- import { jsxs as s, jsx as t } from "react/jsx-runtime";
2
- import { forwardRef as h } from "react";
3
- import { styled as r } from "styled-components";
4
- const k = r.label`
5
- ${({ theme: n }) => `
1
+ import { jsxs as k, jsx as e } from "react/jsx-runtime";
2
+ import { forwardRef as u } from "react";
3
+ import { styled as i } from "styled-components";
4
+ const g = i.label`
5
+ ${({ theme: r }) => `
6
6
  align-items: center;
7
7
  display: flex;
8
- color: ${n.palette.gray[600]};
8
+ color: ${r.palette.gray[600]};
9
9
  cursor: pointer;
10
- font-family: ${n.typography.type.primary};
11
- font-size: ${n.typography.text.sm};
12
- font-weight: ${n.typography.weight.regular};
13
- gap: ${n.spacing[0.5]};
14
- line-height: ${n.typography.text.lg};
10
+ font-family: ${r.typography.type.primary};
11
+ font-size: ${r.typography.text.sm};
12
+ font-weight: ${r.typography.weight.regular};
13
+ gap: ${r.spacing[0.5]};
14
+ line-height: ${r.typography.text.lg};
15
15
  text-align: left;
16
16
  position: relative;
17
17
 
18
18
  &[aria-disabled="true"] {
19
- color: ${n.palette.gray[300]};
19
+ color: ${r.palette.gray[300]};
20
20
  cursor: not-allowed;
21
21
  }
22
22
 
@@ -33,30 +33,30 @@ const k = r.label`
33
33
  left: 0;
34
34
  height: 16px;
35
35
  width: 16px;
36
- background-color: ${n.palette.white};
36
+ background-color: ${r.palette.white};
37
37
  border-radius: 50%;
38
- border: 1px solid ${n.palette.gray[600]};
38
+ border: 1px solid ${r.palette.gray[600]};
39
39
  }
40
40
 
41
41
  input:disabled ~ .checkmark {
42
- border: 1px solid ${n.palette.gray[300]};
43
- background-color: ${n.palette.white};
42
+ border: 1px solid ${r.palette.gray[300]};
43
+ background-color: ${r.palette.white};
44
44
  cursor: not-allowed;
45
45
  }
46
46
 
47
47
  input:not(:disabled):checked ~ .checkmark {
48
- background-color: ${n.palette.white};
49
- border: 1px solid ${n.palette.primary[500]};
48
+ background-color: ${r.palette.white};
49
+ border: 1px solid ${r.palette.primary[500]};
50
50
  }
51
51
 
52
52
  input:not(:disabled):hover ~ .checkmark {
53
- background-color: ${n.palette.white};
54
- box-shadow: 0 0 0 4px ${n.palette.gray[100]};
53
+ background-color: ${r.palette.white};
54
+ box-shadow: 0 0 0 4px ${r.palette.gray[100]};
55
55
  }
56
56
 
57
57
  input:not(:disabled):hover:checked ~ .checkmark {
58
- background-color: ${n.palette.white};
59
- box-shadow: 0 0 0 4px ${n.palette.primary[50]};
58
+ background-color: ${r.palette.white};
59
+ box-shadow: 0 0 0 4px ${r.palette.primary[50]};
60
60
  }
61
61
 
62
62
  .checkmark::after {
@@ -68,7 +68,7 @@ const k = r.label`
68
68
  width: 8px;
69
69
  height: 8px;
70
70
  border-radius: 50%;
71
- background: ${n.palette.primary[500]};
71
+ background: ${r.palette.primary[500]};
72
72
  }
73
73
 
74
74
  input:checked ~ .checkmark::after {
@@ -76,13 +76,50 @@ const k = r.label`
76
76
  }
77
77
 
78
78
  input:disabled:checked ~ .checkmark::after {
79
- background-color: ${n.palette.gray[300]};
79
+ background-color: ${r.palette.gray[300]};
80
80
  }
81
81
 
82
82
  `}
83
- `, u = r.span.attrs({ className: "checkmark" })``, y = h(function({ defaultChecked: n = !1, disabled: e = !1, label: o, name: a, onChange: i, onClick: l, value: p, ...d }, c) {
84
- return s(k, { "aria-disabled": e, "aria-label": a, role: "radiogroup", children: [t("input", { "aria-checked": n, "aria-disabled": e, "aria-label": a, defaultChecked: n, disabled: e, name: a, onChange: i, onClick: l, ref: c, type: "radio", value: p, ...d }), t(u, {}), o ?? null] });
83
+ `, b = i.span.attrs({ className: "checkmark" })``, $ = u(function({
84
+ defaultChecked: t = !1,
85
+ disabled: a = !1,
86
+ label: l,
87
+ name: o,
88
+ onChange: p,
89
+ onClick: c,
90
+ value: d,
91
+ ...n
92
+ }, s) {
93
+ return /* @__PURE__ */ k(
94
+ g,
95
+ {
96
+ "aria-disabled": a,
97
+ "aria-label": o,
98
+ role: "radiogroup",
99
+ children: [
100
+ /* @__PURE__ */ e(
101
+ "input",
102
+ {
103
+ "aria-checked": t,
104
+ "aria-disabled": a,
105
+ "aria-label": o,
106
+ defaultChecked: t,
107
+ disabled: a,
108
+ name: o,
109
+ onChange: p,
110
+ onClick: c,
111
+ ref: s,
112
+ type: "radio",
113
+ value: d,
114
+ ...n
115
+ }
116
+ ),
117
+ /* @__PURE__ */ e(b, {}),
118
+ l ?? null
119
+ ]
120
+ }
121
+ );
85
122
  });
86
123
  export {
87
- y as RadioButton
124
+ $ as RadioButton
88
125
  };
@@ -1,24 +1,42 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { useState as l, useEffect as a, useCallback as m } from "react";
3
- import { styled as d } from "styled-components";
4
- import { IconButton as p } from "../icon-button/index.js";
5
- const u = d.div.attrs({ className: "comp-scroll-up" })`
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { useState as i, useEffect as p, useCallback as m } from "react";
3
+ import { styled as a } from "styled-components";
4
+ import { IconButton as u } from "../icon-button/index.js";
5
+ const d = a.div.attrs({
6
+ className: "comp-scroll-up"
7
+ })`
6
8
  bottom: 15px;
7
9
  position: fixed;
8
10
  right: 140px;
9
11
  z-index: 100;
10
- `, v = ({ scrollerId: t = "dashboard", visibleAt: s = 500 }) => {
11
- const [e, i] = l(!1), [o, c] = l(null);
12
- a(() => {
13
- c(document.getElementById(t)), o == null || o.addEventListener("scroll", () => {
14
- i(o.scrollTop > s);
12
+ `, g = ({
13
+ scrollerId: t = "dashboard",
14
+ visibleAt: e = 500
15
+ }) => {
16
+ const [n, l] = i(!1), [o, r] = i(null);
17
+ p(() => {
18
+ r(document.getElementById(t)), o == null || o.addEventListener("scroll", () => {
19
+ l(o.scrollTop > e);
20
+ });
21
+ }, [o, t, e]);
22
+ const c = m(() => {
23
+ o == null || o.scrollTo({
24
+ behavior: "smooth",
25
+ top: 0
15
26
  });
16
- }, [o, t, s]);
17
- const n = m(() => {
18
- o == null || o.scrollTo({ behavior: "smooth", top: 0 });
19
27
  }, [o]);
20
- return e ? r(u, { children: r(p, { height: "40px", icon: "arrow-up", iconSize: "sm", id: "scroll-up", onClick: n, width: "40px" }) }) : null;
28
+ return n ? /* @__PURE__ */ s(d, { children: /* @__PURE__ */ s(
29
+ u,
30
+ {
31
+ height: "40px",
32
+ icon: "arrow-up",
33
+ iconSize: "sm",
34
+ id: "scroll-up",
35
+ onClick: c,
36
+ width: "40px"
37
+ }
38
+ ) }) : null;
21
39
  };
22
40
  export {
23
- v as ScrollUpButton
41
+ g as ScrollUpButton
24
42
  };
@@ -1,62 +1,104 @@
1
- import { jsxs as l, jsx as n } from "react/jsx-runtime";
2
- import { u } from "../../index-D-lcuEHY.mjs";
3
- import { isEmpty as x } from "lodash";
4
- import { forwardRef as $, useState as b, useCallback as v, Fragment as w } from "react";
5
- import { styled as r, useTheme as k } from "styled-components";
6
- import { Icon as S } from "../icon/index.js";
7
- import { IconButton as p } from "../icon-button/index.js";
8
- import { u as z } from "../../use-click-outside-BtZLIoU1.mjs";
9
- const C = r.input`
10
- ${({ theme: e }) => `
1
+ import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
+ import { u as h } from "../../index-DwznImvK.mjs";
3
+ import { isEmpty as $ } from "lodash";
4
+ import { forwardRef as b, useState as w, useCallback as S, Fragment as k } from "react";
5
+ import { styled as i, useTheme as C } from "styled-components";
6
+ import { Icon as z } from "../icon/index.js";
7
+ import { IconButton as c } from "../icon-button/index.js";
8
+ import { u as O } from "../../use-click-outside-BUll8Ag-.mjs";
9
+ const v = i.input`
10
+ ${({ theme: o }) => `
11
11
  background: none;
12
12
  border: none !important;
13
13
  box-shadow: none;
14
14
  box-sizing: border-box;
15
- color: ${e.palette.gray[800]};
16
- font-family: ${e.typography.type.primary};
17
- font-size: ${e.typography.text.sm};
15
+ color: ${o.palette.gray[800]};
16
+ font-family: ${o.typography.type.primary};
17
+ font-size: ${o.typography.text.sm};
18
18
  outline: none;
19
19
  width: 100%;
20
20
 
21
21
  &::placeholder {
22
- color: ${e.palette.gray[400]};
22
+ color: ${o.palette.gray[400]};
23
23
  }
24
24
  `}
25
- `, T = r.div`
26
- ${({ theme: e }) => `
25
+ `, I = i.div`
26
+ ${({ theme: o }) => `
27
27
  align-items: center;
28
- background-color: ${e.palette.white};
29
- border: 1px solid ${e.palette.gray[300]};
30
- border-radius: ${e.spacing[0.5]};
28
+ background-color: ${o.palette.white};
29
+ border: 1px solid ${o.palette.gray[300]};
30
+ border-radius: ${o.spacing[0.5]};
31
31
  display: flex;
32
32
  height: 40px;
33
- gap: ${e.spacing[0.5]};
34
- padding: ${e.spacing[0.5]};
33
+ gap: ${o.spacing[0.5]};
34
+ padding: ${o.spacing[0.5]};
35
35
  width: 100%;
36
36
 
37
37
  &:hover {
38
- border-color: ${e.palette.gray[600]};
38
+ border-color: ${o.palette.gray[600]};
39
39
  }
40
40
 
41
41
  &:focus-within {
42
- border: 2px solid ${e.palette.black};
42
+ border: 2px solid ${o.palette.black};
43
43
  }
44
44
  `}
45
- `, j = r.div`
46
- ${({ theme: e }) => `
47
- background-color: ${e.palette.white};
48
- border-radius: ${e.spacing[0.5]};
45
+ `, T = i.div`
46
+ ${({ theme: o }) => `
47
+ background-color: ${o.palette.white};
48
+ border-radius: ${o.spacing[0.5]};
49
49
  width: 250px;
50
50
  `}
51
- `, G = $(function({ name: e, smallSearch: c = !1, value: a, ...g }, m) {
52
- const o = k(), [d, i] = b(!1), { refs: t, floatingStyles: f } = u(), h = v(() => {
53
- i((y) => !y);
51
+ `, G = b(function({ name: n, smallSearch: d = !1, value: a, ...g }, f) {
52
+ const t = C(), [y, s] = w(!1), { refs: e, floatingStyles: u } = h(), m = S(() => {
53
+ s((x) => !x);
54
54
  }, []);
55
- z(t.floating.current, () => {
56
- i(!1);
57
- }, !0);
58
- const s = l(T, { children: [n(S, { icon: "magnifying-glass", iconColor: o.palette.gray[700], iconSize: "xs", iconType: "fa-light" }), n(C, { ...g, id: e, name: e, ref: m, value: a }), !x(a) && n(p, { icon: "xmark", iconColor: o.palette.gray[300], iconSize: "xs", iconType: "fa-light", px: 0.25, py: 0.25, type: "reset", variant: "ghost" })] });
59
- return c ? l(w, { children: [n(p, { border: `1px solid ${o.palette.gray[300]} !important`, icon: "magnifying-glass", iconSize: "xs", iconType: "fa-light", onClick: h, ref: t.setReference, variant: "ghost" }), d ? n(j, { ref: t.setFloating, style: f, children: s }) : void 0] }) : s;
55
+ O(
56
+ e.floating.current,
57
+ () => {
58
+ s(!1);
59
+ },
60
+ !0
61
+ );
62
+ const p = /* @__PURE__ */ l(I, { children: [
63
+ /* @__PURE__ */ r(
64
+ z,
65
+ {
66
+ icon: "magnifying-glass",
67
+ iconColor: t.palette.gray[700],
68
+ iconSize: "xs",
69
+ iconType: "fa-light"
70
+ }
71
+ ),
72
+ /* @__PURE__ */ r(v, { ...g, id: n, name: n, ref: f, value: a }),
73
+ !$(a) && /* @__PURE__ */ r(
74
+ c,
75
+ {
76
+ icon: "xmark",
77
+ iconColor: t.palette.gray[300],
78
+ iconSize: "xs",
79
+ iconType: "fa-light",
80
+ px: 0.25,
81
+ py: 0.25,
82
+ type: "reset",
83
+ variant: "ghost"
84
+ }
85
+ )
86
+ ] });
87
+ return d ? /* @__PURE__ */ l(k, { children: [
88
+ /* @__PURE__ */ r(
89
+ c,
90
+ {
91
+ border: `1px solid ${t.palette.gray[300]} !important`,
92
+ icon: "magnifying-glass",
93
+ iconSize: "xs",
94
+ iconType: "fa-light",
95
+ onClick: m,
96
+ ref: e.setReference,
97
+ variant: "ghost"
98
+ }
99
+ ),
100
+ y ? /* @__PURE__ */ r(T, { ref: e.setFloating, style: u, children: p }) : void 0
101
+ ] }) : p;
60
102
  });
61
103
  export {
62
104
  G as Search