@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,17 +1,17 @@
1
- import { jsxs as o, jsx as t } from "react/jsx-runtime";
1
+ import { jsxs as i, jsx as t } from "react/jsx-runtime";
2
2
  import { createCalendar as f } from "@internationalized/date";
3
- import { useLocale as g, useCalendar as h } from "react-aria";
4
- import { useCalendarState as u } from "react-stately";
5
- import { styled as n, useTheme as C } from "styled-components";
6
- import { TimeField as x } from "../../../utils/date-time-field/index.js";
7
- import { CalendarGrid as v } from "../../date/calendar/grid/index.js";
8
- import { Header as y } from "../../date/calendar/header/index.js";
9
- import { F as $ } from "../../../../../styles-CI-I6joH.mjs";
10
- import { Button as B } from "../../../../button/index.js";
3
+ import { useLocale as u, useCalendar as g } from "react-aria";
4
+ import { useCalendarState as C } from "react-stately";
5
+ import { styled as n, useTheme as x } from "styled-components";
6
+ import { TimeField as h } from "../../../utils/date-time-field/index.js";
7
+ import { CalendarGrid as y } from "../../date/calendar/grid/index.js";
8
+ import { Header as v } from "../../date/calendar/header/index.js";
9
+ import { F as $ } from "../../../../../styles-BlHspTrz.mjs";
10
+ import { Button as T } from "../../../../button/index.js";
11
11
  import "../../../../typography/heading/index.js";
12
12
  import "../../../../typography/span/index.js";
13
13
  import { Text as j } from "../../../../typography/text/index.js";
14
- const T = n.div`
14
+ const b = n.div`
15
15
  ${({ theme: e }) => `
16
16
  align-items: center;
17
17
  border-top: 1px solid ${e.palette.gray[200]};
@@ -20,16 +20,45 @@ const T = n.div`
20
20
  justify-content: center;
21
21
  padding: ${e.spacing[0.5]} ${e.spacing[1.25]};
22
22
  `}
23
- `, b = n.div`
23
+ `, B = n.div`
24
24
  align-items: center;
25
25
  display: flex;
26
26
  gap: ${({ theme: e }) => e.spacing[0.5]};
27
27
  justify-content: flex-end;
28
28
  flex: 1 0 0;
29
- `, A = ({ handleTimeChange: e, onClose: i, props: r, timeState: s }) => {
30
- const l = C(), { locale: m } = g(), a = u({ ...r, createCalendar: f, locale: m }), { prevButtonProps: p, nextButtonProps: d, title: c } = h(r, a);
31
- return o("div", { className: "calendar", children: [t(y, { nextButtonProps: d, prevButtonProps: p, state: a, title: c }), t(v, { state: a }), o(T, { children: [t(j, { color: l.palette.gray[800], fontWeight: "bold", size: "sm", children: "Time" }), t(b, { children: t(x, { hourCycle: 12, label: "time-field", onChange: e, value: s.timeValue }) })] }), t($, { children: t(B, { onClick: i, variant: "ghost", children: "Cancel" }) })] });
29
+ `, w = ({
30
+ handleTimeChange: e,
31
+ onClose: a,
32
+ props: o,
33
+ timeState: l
34
+ }) => {
35
+ const s = x(), { locale: m } = u(), r = C({ ...o, createCalendar: f, locale: m }), { prevButtonProps: c, nextButtonProps: d, title: p } = g(o, r);
36
+ return /* @__PURE__ */ i("div", { className: "calendar", children: [
37
+ /* @__PURE__ */ t(
38
+ v,
39
+ {
40
+ nextButtonProps: d,
41
+ prevButtonProps: c,
42
+ state: r,
43
+ title: p
44
+ }
45
+ ),
46
+ /* @__PURE__ */ t(y, { state: r }),
47
+ /* @__PURE__ */ i(b, { children: [
48
+ /* @__PURE__ */ t(j, { color: s.palette.gray[800], fontWeight: "bold", size: "sm", children: "Time" }),
49
+ /* @__PURE__ */ t(B, { children: /* @__PURE__ */ t(
50
+ h,
51
+ {
52
+ hourCycle: 12,
53
+ label: "time-field",
54
+ onChange: e,
55
+ value: l.timeValue
56
+ }
57
+ ) })
58
+ ] }),
59
+ /* @__PURE__ */ t($, { children: /* @__PURE__ */ t(T, { onClick: a, variant: "ghost", children: "Cancel" }) })
60
+ ] });
32
61
  };
33
62
  export {
34
- A as Calendar
63
+ w as Calendar
35
64
  };
@@ -1,18 +1,69 @@
1
- import { jsxs as C, jsx as r } from "react/jsx-runtime";
2
- import { forwardRef as R, useRef as D, useCallback as S } from "react";
3
- import { useDatePicker as k } from "react-aria";
4
- import { useDatePickerState as x } from "react-stately";
5
- import { Calendar as y } from "./calendar/index.js";
6
- import { OutlineContainer as O } from "../../outline-container/index.js";
7
- import { DateSelector as T } from "../../utils/date-selector/index.js";
1
+ import { jsxs as D, jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as b, useRef as R, useCallback as k } from "react";
3
+ import { useDatePicker as S } from "react-aria";
4
+ import { useDatePickerState as T } from "react-stately";
5
+ import { Calendar as x } from "./calendar/index.js";
6
+ import { OutlineContainer as y } from "../../outline-container/index.js";
7
+ import { DateSelector as O } from "../../utils/date-selector/index.js";
8
8
  import { Dialog as j } from "../../utils/dialog/index.js";
9
- import { Popover as q } from "../../utils/popover/index.js";
10
- const G = R(function(o, n) {
11
- const t = D(null), e = x({ ...o, granularity: "minute", hourCycle: 12, shouldCloseOnSelect: !1 }), { close: m } = e, { disabled: a = !1, error: s, required: p, label: u, name: i, tooltip: f } = o, { groupProps: d, fieldProps: c, buttonProps: P, dialogProps: g, calendarProps: b } = k(o, e, t), h = S((l) => {
12
- l && e.setTimeValue(l);
13
- }, [e]);
14
- return C(O, { error: s, htmlFor: i, label: u, required: p, tooltip: f, children: [r(T, { buttonProps: P, datePickerRef: t, disabled: a, error: s, fieldProps: c, granularity: "minute", groupProps: d, inputRef: n, name: i }), e.isOpen && !a ? r(q, { offset: 8, placement: "bottom start", state: e, triggerRef: t, children: r(j, { ...g, children: r(y, { handleTimeChange: h, onClose: m, props: { ...b }, timeState: e }) }) }) : null] });
9
+ import { Popover as I } from "../../utils/popover/index.js";
10
+ const J = b(function(o, m) {
11
+ const r = R(null), e = T({
12
+ ...o,
13
+ granularity: "minute",
14
+ hourCycle: 12,
15
+ shouldCloseOnSelect: !1
16
+ }), { close: s } = e, { disabled: i = !1, error: n, required: f, label: p, name: a, tooltip: u } = o, { groupProps: c, fieldProps: d, buttonProps: P, dialogProps: g, calendarProps: h } = S(o, e, r), C = k(
17
+ (l) => {
18
+ l && e.setTimeValue(l);
19
+ },
20
+ [e]
21
+ );
22
+ return /* @__PURE__ */ D(
23
+ y,
24
+ {
25
+ error: n,
26
+ htmlFor: a,
27
+ label: p,
28
+ required: f,
29
+ tooltip: u,
30
+ children: [
31
+ /* @__PURE__ */ t(
32
+ O,
33
+ {
34
+ buttonProps: P,
35
+ datePickerRef: r,
36
+ disabled: i,
37
+ error: n,
38
+ fieldProps: d,
39
+ granularity: "minute",
40
+ groupProps: c,
41
+ inputRef: m,
42
+ name: a
43
+ }
44
+ ),
45
+ e.isOpen && !i ? /* @__PURE__ */ t(
46
+ I,
47
+ {
48
+ offset: 8,
49
+ placement: "bottom start",
50
+ state: e,
51
+ triggerRef: r,
52
+ children: /* @__PURE__ */ t(j, { ...g, children: /* @__PURE__ */ t(
53
+ x,
54
+ {
55
+ handleTimeChange: C,
56
+ onClose: s,
57
+ props: { ...h },
58
+ timeState: e
59
+ }
60
+ ) })
61
+ }
62
+ ) : null
63
+ ]
64
+ }
65
+ );
15
66
  });
16
67
  export {
17
- G as InputDateTime
68
+ J as InputDateTime
18
69
  };
@@ -1,16 +1,28 @@
1
- import { jsx as r, jsxs as p } from "react/jsx-runtime";
2
- import { isNil as d } from "lodash";
3
- import { Label as h } from "../../label/index.js";
4
- import { Container as f } from "../../../container/index.js";
5
- import { Link as c } from "../../../link/index.js";
1
+ import { jsx as r, jsxs as h } from "react/jsx-runtime";
2
+ import { isNil as l } from "lodash";
3
+ import { Label as d } from "../../label/index.js";
4
+ import { Container as c } from "../../../container/index.js";
5
+ import { Link as a } from "../../../link/index.js";
6
6
  import "../../../typography/heading/index.js";
7
7
  import "../../../typography/span/index.js";
8
8
  import { Text as x } from "../../../typography/text/index.js";
9
- const w = ({ children: e, currentValue: i, externalLink: l, isEditing: n, label: s, name: a, tooltip: m }) => {
10
- if (n) return r("div", { children: e });
11
- const t = d(i) ? "" : i, o = String(l ?? t);
12
- return p(f, { children: [r(h, { htmlFor: a, label: s, tooltip: m, weight: "bold" }), o.startsWith("https://") ? r(c, { href: o, children: t }) : r(x, { size: "md", children: t })] });
9
+ const z = ({
10
+ children: m,
11
+ currentValue: i,
12
+ externalLink: e,
13
+ isEditing: n,
14
+ label: s,
15
+ name: p,
16
+ tooltip: f
17
+ }) => {
18
+ if (n)
19
+ return /* @__PURE__ */ r("div", { children: m });
20
+ const t = l(i) ? "" : i, o = String(e ?? t);
21
+ return /* @__PURE__ */ h(c, { children: [
22
+ /* @__PURE__ */ r(d, { htmlFor: p, label: s, tooltip: f, weight: "bold" }),
23
+ o.startsWith("https://") ? /* @__PURE__ */ r(a, { href: o, children: t }) : /* @__PURE__ */ r(x, { size: "md", children: t })
24
+ ] });
13
25
  };
14
26
  export {
15
- w as Editable
27
+ z as Editable
16
28
  };
@@ -1,13 +1,77 @@
1
- import { jsx as r, jsxs as k } from "react/jsx-runtime";
2
- import { forwardRef as T } from "react";
3
- import { useTheme as C } from "styled-components";
4
- import { OutlineContainer as L } from "../../outline-container/index.js";
5
- import { S as g } from "../../../../styles-lSVV9kjn.mjs";
6
- import { Icon as t } from "../../../icon/index.js";
7
- const S = T(function({ disabled: o = !1, hasIcon: l = !1, helpLink: n, helpLinkText: s, helpText: m, error: i, label: c, name: e, maskValue: d = !1, required: a, tooltip: p, type: u = "text", weight: f, ...h }, x) {
8
- const b = C();
9
- return r(L, { error: i, helpLink: n, helpLinkText: s, helpText: m, htmlFor: e, label: c, required: a, tooltip: p, weight: f, children: k(g, { className: `${o ? "disabled" : ""} ${i ? "error" : ""}`, children: [l ? r(t, { icon: "user", iconSize: "sm", iconType: "fa-light" }) : void 0, r("input", { "aria-hidden": !1, "aria-invalid": i ? "true" : "false", "aria-label": e, "aria-required": a, autoComplete: "off", className: d ? "sr-block" : "", "data-testid": `${e}-input`, disabled: o, id: e, name: e, ref: x, type: u, ...h }), i ? r(t, { icon: "exclamation-circle", iconClass: "error-icon", iconColor: b.palette.error[500], iconSize: "xs" }) : void 0] }) });
1
+ import { jsx as o, jsxs as I } from "react/jsx-runtime";
2
+ import { forwardRef as S } from "react";
3
+ import { useTheme as T } from "styled-components";
4
+ import { OutlineContainer as $ } from "../../outline-container/index.js";
5
+ import { S as b } from "../../../../styles-BXFVwnWT.mjs";
6
+ import { Icon as n } from "../../../icon/index.js";
7
+ const w = S(function({
8
+ disabled: t = !1,
9
+ hasIcon: a = !1,
10
+ helpLink: l,
11
+ helpLinkText: s,
12
+ helpText: c,
13
+ error: i,
14
+ label: f,
15
+ name: e,
16
+ maskValue: m = !1,
17
+ required: r,
18
+ tooltip: p,
19
+ type: d = "text",
20
+ weight: u,
21
+ ...x
22
+ }, h) {
23
+ const C = T();
24
+ return /* @__PURE__ */ o(
25
+ $,
26
+ {
27
+ error: i,
28
+ helpLink: l,
29
+ helpLinkText: s,
30
+ helpText: c,
31
+ htmlFor: e,
32
+ label: f,
33
+ required: r,
34
+ tooltip: p,
35
+ weight: u,
36
+ children: /* @__PURE__ */ I(
37
+ b,
38
+ {
39
+ className: `${t ? "disabled" : ""} ${i ? "error" : ""}`,
40
+ children: [
41
+ a ? /* @__PURE__ */ o(n, { icon: "user", iconSize: "sm", iconType: "fa-light" }) : void 0,
42
+ /* @__PURE__ */ o(
43
+ "input",
44
+ {
45
+ "aria-hidden": !1,
46
+ "aria-invalid": i ? "true" : "false",
47
+ "aria-label": e,
48
+ "aria-required": r,
49
+ autoComplete: "off",
50
+ className: m ? "sr-block" : "",
51
+ "data-testid": `${e}-input`,
52
+ disabled: t,
53
+ id: e,
54
+ name: e,
55
+ ref: h,
56
+ type: d,
57
+ ...x
58
+ }
59
+ ),
60
+ i ? /* @__PURE__ */ o(
61
+ n,
62
+ {
63
+ icon: "exclamation-circle",
64
+ iconClass: "error-icon",
65
+ iconColor: C.palette.error[500],
66
+ iconSize: "xs"
67
+ }
68
+ ) : void 0
69
+ ]
70
+ }
71
+ )
72
+ }
73
+ );
10
74
  });
11
75
  export {
12
- S as Input
76
+ w as Input
13
77
  };
@@ -1,32 +1,125 @@
1
- import { jsxs as o, jsx as i } from "react/jsx-runtime";
2
- import { isEmpty as q } from "lodash";
3
- import { forwardRef as z } from "react";
4
- import { styled as m, useTheme as C } from "styled-components";
5
- import { b as S } from "../../../../styles-fH2c4cfc.mjs";
6
- import { OutlineContainer as j } from "../../outline-container/index.js";
7
- import { S as k } from "../../../../styles-lSVV9kjn.mjs";
8
- import { Button as I } from "../../../button/index.js";
9
- import { Container as A } from "../../../container/index.js";
10
- import { Icon as s } from "../../../icon/index.js";
11
- import { IconButton as B } from "../../../icon-button/index.js";
12
- const F = m(S)`
1
+ import { jsxs as n, jsx as t } from "react/jsx-runtime";
2
+ import { isEmpty as v } from "lodash";
3
+ import { forwardRef as C } from "react";
4
+ import { styled as s, useTheme as F } from "styled-components";
5
+ import { b as T } from "../../../../styles-B64DVBIF.mjs";
6
+ import { OutlineContainer as $ } from "../../outline-container/index.js";
7
+ import { S as b } from "../../../../styles-BXFVwnWT.mjs";
8
+ import { Button as z } from "../../../button/index.js";
9
+ import { Container as j } from "../../../container/index.js";
10
+ import { Icon as m } from "../../../icon/index.js";
11
+ import { IconButton as N } from "../../../icon-button/index.js";
12
+ const A = s(T)`
13
13
  white-space: nowrap;
14
- margin-right: ${({ theme: t }) => t.spacing[0.25]};
14
+ margin-right: ${({ theme: e }) => e.spacing[0.25]};
15
15
  text-overflow: ellipsis;
16
16
  overflow: hidden;
17
17
  max-width: 80%;
18
- `, L = m.input`
18
+ `, B = s.input`
19
19
  opacity: 0;
20
20
  position: absolute;
21
21
  visibility: hidden;
22
22
  width: 0;
23
- `, Q = z(function({ accept: t, disabled: e = !1, error: a, label: d, helpLink: c, helpText: h, id: f, multiple: x, name: r, required: u, tooltip: g, weight: b, value: w, ...y }, v) {
24
- const l = C(), p = ((T) => {
25
- const n = T;
26
- return n ? Array.from(n).map(($) => $.name).join(", ") : "";
27
- })(w);
28
- return o(j, { error: a, helpLink: c, helpText: h, htmlFor: r, label: d, required: u, tooltip: g, weight: b, children: [o(k, { className: `${e ? "disabled" : ""} ${a ? "error" : ""}`, children: [i(F, { $size: "xs", children: p }), o(A, { display: "flex", gap: 0.5, children: [q(p) ? void 0 : i(B, { color: l.palette.gray[400], height: "20px", icon: "xmark", iconSize: "lg", iconType: "fa-light", variant: "ghost", width: "20px" }), a && i(s, { icon: "exclamation-circle", iconClass: "error-icon", iconColor: l.palette.error[500], iconSize: "xs" })] }), o(I, { border: e ? `1px solid ${l.palette.gray[300]} !important` : "", borderRadius: "0px 8px 8px 0px !important", disabled: e, height: "40px", variant: "primary", width: "96px", children: [i(s, { icon: "search", iconSize: "sm", mr: 0.5 }), "Add file"] })] }), i(L, { accept: t, "aria-label": r, "data-testid": r, disabled: e, id: f, multiple: x, name: r, ref: v, required: void 0, type: "file", value: void 0, ...y })] });
23
+ `, R = (e) => {
24
+ const o = e;
25
+ return o ? Array.from(o).map((i) => i.name).join(", ") : "";
26
+ }, P = C(function({
27
+ accept: o,
28
+ disabled: i = !1,
29
+ error: p,
30
+ label: c,
31
+ helpLink: d,
32
+ helpText: f,
33
+ id: h,
34
+ multiple: x,
35
+ name: r,
36
+ required: u,
37
+ tooltip: y,
38
+ weight: g,
39
+ value: w,
40
+ ...I
41
+ }, S) {
42
+ const a = F(), l = R(w);
43
+ return /* @__PURE__ */ n(
44
+ $,
45
+ {
46
+ error: p,
47
+ helpLink: d,
48
+ helpText: f,
49
+ htmlFor: r,
50
+ label: c,
51
+ required: u,
52
+ tooltip: y,
53
+ weight: g,
54
+ children: [
55
+ /* @__PURE__ */ n(
56
+ b,
57
+ {
58
+ className: `${i ? "disabled" : ""} ${p ? "error" : ""}`,
59
+ children: [
60
+ /* @__PURE__ */ t(A, { $size: "xs", children: l }),
61
+ /* @__PURE__ */ n(j, { display: "flex", gap: 0.5, children: [
62
+ v(l) ? void 0 : /* @__PURE__ */ t(
63
+ N,
64
+ {
65
+ color: a.palette.gray[400],
66
+ height: "20px",
67
+ icon: "xmark",
68
+ iconSize: "lg",
69
+ iconType: "fa-light",
70
+ variant: "ghost",
71
+ width: "20px"
72
+ }
73
+ ),
74
+ p && /* @__PURE__ */ t(
75
+ m,
76
+ {
77
+ icon: "exclamation-circle",
78
+ iconClass: "error-icon",
79
+ iconColor: a.palette.error[500],
80
+ iconSize: "xs"
81
+ }
82
+ )
83
+ ] }),
84
+ /* @__PURE__ */ n(
85
+ z,
86
+ {
87
+ border: i ? `1px solid ${a.palette.gray[300]} !important` : "",
88
+ borderRadius: "0px 8px 8px 0px !important",
89
+ disabled: i,
90
+ height: "40px",
91
+ variant: "primary",
92
+ width: "96px",
93
+ children: [
94
+ /* @__PURE__ */ t(m, { icon: "search", iconSize: "sm", mr: 0.5 }),
95
+ "Add file"
96
+ ]
97
+ }
98
+ )
99
+ ]
100
+ }
101
+ ),
102
+ /* @__PURE__ */ t(
103
+ B,
104
+ {
105
+ accept: o,
106
+ "aria-label": r,
107
+ "data-testid": r,
108
+ disabled: i,
109
+ id: h,
110
+ multiple: x,
111
+ name: r,
112
+ ref: S,
113
+ required: void 0,
114
+ type: "file",
115
+ value: void 0,
116
+ ...I
117
+ }
118
+ )
119
+ ]
120
+ }
121
+ );
29
122
  });
30
123
  export {
31
- Q as InputFile
124
+ P as InputFile
32
125
  };
@@ -1,19 +1,68 @@
1
- import { jsx as i, jsxs as b } from "react/jsx-runtime";
2
- import { forwardRef as c, useMemo as g } from "react";
3
- import { styled as x } from "styled-components";
4
- import { OutlineContainer as v } from "../../outline-container/index.js";
5
- import { S as w } from "../../../../styles-lSVV9kjn.mjs";
6
- import { Tag as C } from "../../../tag/index.js";
7
- const j = x.input`
1
+ import { jsx as o, jsxs as c } from "react/jsx-runtime";
2
+ import { forwardRef as h, useMemo as x } from "react";
3
+ import { styled as T } from "styled-components";
4
+ import { OutlineContainer as y } from "../../outline-container/index.js";
5
+ import { S as I } from "../../../../styles-BXFVwnWT.mjs";
6
+ import { Tag as b } from "../../../tag/index.js";
7
+ const C = T.input`
8
8
  border: none;
9
9
  background: transparent;
10
10
  min-width: 15rem;
11
11
  padding: 0;
12
12
  flex: 1;
13
- `, F = c(function({ disabled: r = !1, error: a, label: d, name: o = "input-tag", onChange: s, placeholder: m, required: t, tooltip: p, weight: f, value: e, ...u }, h) {
14
- const l = g(() => e && typeof e == "string" ? e.split(",").filter(Boolean) : [], [e]);
15
- return i(v, { error: a, htmlFor: o, label: d, required: t, tooltip: p, weight: f, children: b(w, { className: `${r ? "disabled" : ""} ${a ? "error" : ""}`, children: [l.map((n) => i(C, { disabled: r, tagLabel: n }, n)), i(j, { "aria-hidden": !1, "aria-invalid": a ? "true" : "false", "aria-label": o, "aria-required": t, autoComplete: "off", disabled: r, name: o, onChange: s, placeholder: l.length === 0 ? m : void 0, ref: h, type: "text", value: e, ...u })] }) });
13
+ `, L = h(function({
14
+ disabled: r = !1,
15
+ error: n,
16
+ label: s,
17
+ name: e = "input-tag",
18
+ onChange: f,
19
+ placeholder: l,
20
+ required: a,
21
+ tooltip: m,
22
+ weight: d,
23
+ value: t,
24
+ ...u
25
+ }, g) {
26
+ const i = x(() => t && typeof t == "string" ? t.split(",").filter(Boolean) : [], [t]);
27
+ return /* @__PURE__ */ o(
28
+ y,
29
+ {
30
+ error: n,
31
+ htmlFor: e,
32
+ label: s,
33
+ required: a,
34
+ tooltip: m,
35
+ weight: d,
36
+ children: /* @__PURE__ */ c(
37
+ I,
38
+ {
39
+ className: `${r ? "disabled" : ""} ${n ? "error" : ""}`,
40
+ children: [
41
+ i.map((p) => /* @__PURE__ */ o(b, { disabled: r, tagLabel: p }, p)),
42
+ /* @__PURE__ */ o(
43
+ C,
44
+ {
45
+ "aria-hidden": !1,
46
+ "aria-invalid": n ? "true" : "false",
47
+ "aria-label": e,
48
+ "aria-required": a,
49
+ autoComplete: "off",
50
+ disabled: r,
51
+ name: e,
52
+ onChange: f,
53
+ placeholder: i.length === 0 ? l : void 0,
54
+ ref: g,
55
+ type: "text",
56
+ value: t,
57
+ ...u
58
+ }
59
+ )
60
+ ]
61
+ }
62
+ )
63
+ }
64
+ );
16
65
  });
17
66
  export {
18
- F as InputTags
67
+ L as InputTags
19
68
  };
@@ -1,10 +1,57 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { forwardRef as L } from "react";
3
- import { OutlineContainer as w } from "../../outline-container/index.js";
4
- import { NumberField as C } from "../../utils/number-field/index.js";
5
- const P = L(function({ decimalPlaces: o, disabled: a = !1, error: e, helpLink: l, helpText: m, id: n, label: t, maxLength: d, max: h, min: p, name: r, onChange: s, placeholder: c, required: f, tooltip: u, weight: x, ...b }, g) {
6
- return i(w, { error: e, helpLink: l, helpText: m, htmlFor: r, label: t, maxLength: d, required: f, tooltip: u, weight: x, children: i(C, { decimalPlaces: o, disabled: a, error: e, id: n, max: h, min: p, name: r, onChange: s, placeholder: c, ref: g, ...b }) });
1
+ import { jsx as t } from "react/jsx-runtime";
2
+ import { forwardRef as F } from "react";
3
+ import { OutlineContainer as I } from "../../outline-container/index.js";
4
+ import { NumberField as j } from "../../utils/number-field/index.js";
5
+ const k = F(function({
6
+ decimalPlaces: m,
7
+ disabled: e = !1,
8
+ error: r,
9
+ helpLink: i,
10
+ helpText: n,
11
+ id: f,
12
+ label: u,
13
+ maxLength: p,
14
+ max: l,
15
+ min: b,
16
+ name: o,
17
+ onChange: c,
18
+ placeholder: d,
19
+ required: s,
20
+ tooltip: N,
21
+ weight: a,
22
+ ...h
23
+ }, x) {
24
+ return /* @__PURE__ */ t(
25
+ I,
26
+ {
27
+ error: r,
28
+ helpLink: i,
29
+ helpText: n,
30
+ htmlFor: o,
31
+ label: u,
32
+ maxLength: p,
33
+ required: s,
34
+ tooltip: N,
35
+ weight: a,
36
+ children: /* @__PURE__ */ t(
37
+ j,
38
+ {
39
+ decimalPlaces: m,
40
+ disabled: e,
41
+ error: r,
42
+ id: f,
43
+ max: l,
44
+ min: b,
45
+ name: o,
46
+ onChange: c,
47
+ placeholder: d,
48
+ ref: x,
49
+ ...h
50
+ }
51
+ )
52
+ }
53
+ );
7
54
  });
8
55
  export {
9
- P as InputNumber
56
+ k as InputNumber
10
57
  };
@@ -1,11 +1,49 @@
1
- import { jsx as e, jsxs as m } from "react/jsx-runtime";
2
- import { forwardRef as f } from "react";
3
- import { OutlineContainer as u } from "../../outline-container/index.js";
4
- import { NumberField as a } from "../../utils/number-field/index.js";
5
- import { Container as b } from "../../../container/index.js";
6
- const q = f(function({ disabled: o = !1, error: r, name: t, label: s, propsMax: n, propsMin: l, required: p, tooltip: d }, i) {
7
- return e(u, { error: r, htmlFor: t, label: s, required: p, tooltip: d, children: m(b, { display: "flex", gap: 0.25, width: "100%", children: [e(a, { ...l, disabled: o, error: r, ref: i }), e(a, { ...n, disabled: o, error: r, ref: i })] }) });
1
+ import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
+ import { forwardRef as s } from "react";
3
+ import { OutlineContainer as c } from "../../outline-container/index.js";
4
+ import { NumberField as m } from "../../utils/number-field/index.js";
5
+ import { Container as d } from "../../../container/index.js";
6
+ const j = s(function({
7
+ disabled: n = !1,
8
+ error: r,
9
+ name: i,
10
+ label: e,
11
+ propsMax: p,
12
+ propsMin: f,
13
+ required: u,
14
+ tooltip: a
15
+ }, o) {
16
+ return /* @__PURE__ */ t(
17
+ c,
18
+ {
19
+ error: r,
20
+ htmlFor: i,
21
+ label: e,
22
+ required: u,
23
+ tooltip: a,
24
+ children: /* @__PURE__ */ l(d, { display: "flex", gap: 0.25, width: "100%", children: [
25
+ /* @__PURE__ */ t(
26
+ m,
27
+ {
28
+ ...f,
29
+ disabled: n,
30
+ error: r,
31
+ ref: o
32
+ }
33
+ ),
34
+ /* @__PURE__ */ t(
35
+ m,
36
+ {
37
+ ...p,
38
+ disabled: n,
39
+ error: r,
40
+ ref: o
41
+ }
42
+ )
43
+ ] })
44
+ }
45
+ );
8
46
  });
9
47
  export {
10
- q as InputNumberRange
48
+ j as InputNumberRange
11
49
  };