@fluidattacks/design 3.1.13 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (157) hide show
  1. package/dist/components/@core/index.js +15 -16
  2. package/dist/components/accordion/accordion-content/index.js +3 -20
  3. package/dist/components/accordion/index.js +5 -76
  4. package/dist/components/alert/index.js +4 -162
  5. package/dist/components/button/index.js +4 -67
  6. package/dist/components/card/card-header/index.js +4 -81
  7. package/dist/components/card/card-with-image/index.js +5 -91
  8. package/dist/components/card/card-with-input/index.js +5 -103
  9. package/dist/components/card/card-with-selector/index.js +4 -69
  10. package/dist/components/card/card-with-switch/index.js +4 -48
  11. package/dist/components/card/index.js +6 -10
  12. package/dist/components/carousel/index.js +4 -73
  13. package/dist/components/checkbox/index.js +4 -116
  14. package/dist/components/cloud-image/index.js +2 -2
  15. package/dist/components/code-snippet/index.js +6 -70
  16. package/dist/components/code-snippet/location-code/index.js +7 -169
  17. package/dist/components/colors/index.js +7 -222
  18. package/dist/components/confirm-dialog/index.js +4 -43
  19. package/dist/components/container/index.js +4 -49
  20. package/dist/components/content-card/category-tag/index.js +4 -40
  21. package/dist/components/content-card/event-date/index.js +5 -59
  22. package/dist/components/content-card/index.js +4 -166
  23. package/dist/components/content-card-carousel/index.js +4 -93
  24. package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
  25. package/dist/components/divider/index.js +4 -23
  26. package/dist/components/empty-state/empty-button/index.js +3 -4
  27. package/dist/components/empty-state/index.js +3 -83
  28. package/dist/components/file-preview/index.js +3 -42
  29. package/dist/components/form/index.js +4 -61
  30. package/dist/components/grid-container/index.js +4 -46
  31. package/dist/components/group-selector/index.js +6 -133
  32. package/dist/components/group-selector/option-container/index.js +3 -7
  33. package/dist/components/icon/index.js +4 -106
  34. package/dist/components/icon-button/index.js +4 -74
  35. package/dist/components/indicator-card/index.js +5 -72
  36. package/dist/components/info-sidebar/index.js +4 -114
  37. package/dist/components/inputs/fields/combobox/index.js +7 -144
  38. package/dist/components/inputs/fields/combobox/option/index.js +2 -3
  39. package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -25
  40. package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -24
  41. package/dist/components/inputs/fields/date/calendar/header/index.js +4 -36
  42. package/dist/components/inputs/fields/date/calendar/index.js +6 -28
  43. package/dist/components/inputs/fields/date/index.js +8 -66
  44. package/dist/components/inputs/fields/date-range/calendar/index.js +7 -33
  45. package/dist/components/inputs/fields/date-range/index.js +6 -106
  46. package/dist/components/inputs/fields/date-time/calendar/index.js +7 -62
  47. package/dist/components/inputs/fields/date-time/index.js +6 -67
  48. package/dist/components/inputs/fields/editable/index.js +4 -26
  49. package/dist/components/inputs/fields/input/index.js +5 -75
  50. package/dist/components/inputs/fields/input-file/index.js +6 -123
  51. package/dist/components/inputs/fields/input-tags/index.js +4 -66
  52. package/dist/components/inputs/fields/number/index.js +4 -55
  53. package/dist/components/inputs/fields/number-range/index.js +4 -47
  54. package/dist/components/inputs/fields/phone/index.js +7 -577
  55. package/dist/components/inputs/fields/text-area/index.js +5 -79
  56. package/dist/components/inputs/index.js +14 -26
  57. package/dist/components/inputs/label/index.js +5 -36
  58. package/dist/components/inputs/outline-container/index.js +4 -102
  59. package/dist/components/inputs/utils/action-button/index.js +4 -29
  60. package/dist/components/inputs/utils/calendar-button/index.js +5 -35
  61. package/dist/components/inputs/utils/date-selector/index.js +3 -60
  62. package/dist/components/inputs/utils/date-time-field/index.js +10 -131
  63. package/dist/components/inputs/utils/dialog/index.js +5 -12
  64. package/dist/components/inputs/utils/number-field/index.js +5 -84
  65. package/dist/components/inputs/utils/popover/index.js +5 -42
  66. package/dist/components/interactive-card/icon/index.js +2 -4
  67. package/dist/components/interactive-card/index.js +4 -116
  68. package/dist/components/language-selector/index.js +4 -35
  69. package/dist/components/language-selector/item-list/index.js +2 -5
  70. package/dist/components/link/index.js +3 -104
  71. package/dist/components/list-item/index.js +6 -65
  72. package/dist/components/little-flag/index.js +3 -30
  73. package/dist/components/loading/index.js +4 -92
  74. package/dist/components/logo/index.js +2 -10
  75. package/dist/components/logo-carousel/index.js +4 -85
  76. package/dist/components/lottie/index.js +3 -18
  77. package/dist/components/menu/index.js +5 -64
  78. package/dist/components/message-banner/index.js +5 -99
  79. package/dist/components/modal/index.js +6 -63
  80. package/dist/components/modal/modal-confirm/index.js +3 -49
  81. package/dist/components/modal/modal-footer/index.js +5 -23
  82. package/dist/components/modal/modal-header/index.js +6 -49
  83. package/dist/components/notification/index.js +5 -111
  84. package/dist/components/notification-sign/index.js +4 -45
  85. package/dist/components/number-input/index.js +5 -87
  86. package/dist/components/oauth-selector/index.js +6 -98
  87. package/dist/components/oauth-selector/option-container/index.js +4 -74
  88. package/dist/components/plan-card/index.js +3 -153
  89. package/dist/components/plan-card/recommended-tag/index.js +3 -29
  90. package/dist/components/pop-up/description/index.js +5 -49
  91. package/dist/components/pop-up/index.js +7 -150
  92. package/dist/components/premium-feature/index.js +4 -83
  93. package/dist/components/priority-score/index.js +4 -27
  94. package/dist/components/progress/index.js +5 -45
  95. package/dist/components/progress-bar/index.js +3 -151
  96. package/dist/components/radio-button/index.js +4 -123
  97. package/dist/components/scroll-button/index.js +4 -40
  98. package/dist/components/search/index.js +7 -103
  99. package/dist/components/search-bar/index.js +4 -217
  100. package/dist/components/search-bar/item-searching/index.js +2 -7
  101. package/dist/components/severity-badge/index.js +4 -72
  102. package/dist/components/severity-overview/badge/index.js +4 -67
  103. package/dist/components/severity-overview/index.js +3 -15
  104. package/dist/components/show-on-hover/index.js +3 -29
  105. package/dist/components/slide-out-menu/index.js +6 -3453
  106. package/dist/components/slide-out-menu/menu-item/index.js +4 -65
  107. package/dist/components/slider/index.js +7 -122
  108. package/dist/components/slider/thumb/index.js +5 -15
  109. package/dist/components/step-lapse/index.js +4 -157
  110. package/dist/components/table-button/index.js +4 -95
  111. package/dist/components/tabs/fixed-tabs/index.js +3 -27
  112. package/dist/components/tabs/index.js +6 -55
  113. package/dist/components/tabs/tab/index.js +3 -37
  114. package/dist/components/tag/index.js +4 -182
  115. package/dist/components/timeline/card/index.js +2 -5
  116. package/dist/components/timeline/index.js +4 -15
  117. package/dist/components/toggle/index.js +4 -101
  118. package/dist/components/toggle-buttons/index.js +4 -101
  119. package/dist/components/tooltip/index.js +3 -6
  120. package/dist/components/tour/index.js +7 -4582
  121. package/dist/components/typography/heading/index.js +4 -45
  122. package/dist/components/typography/index.js +4 -6
  123. package/dist/components/typography/span/index.js +4 -39
  124. package/dist/components/typography/text/index.js +4 -45
  125. package/dist/components/web-form/index.js +4 -78
  126. package/dist/components-C7JPRIEW.mjs +9653 -0
  127. package/dist/hooks/index.js +6 -10
  128. package/dist/index.js +112 -204
  129. package/dist/vendor-_XDhaIzo.mjs +14504 -0
  130. package/package.json +3 -7
  131. package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
  132. package/dist/index-BMHVi812.mjs +0 -234
  133. package/dist/index-BzAniA2J.mjs +0 -135
  134. package/dist/index-C6LbClYh.mjs +0 -146
  135. package/dist/index-CAIe8hBv.mjs +0 -130
  136. package/dist/index-CUQBAqt_.mjs +0 -75
  137. package/dist/index-CWlrSlUk.mjs +0 -68
  138. package/dist/index-Ckmu1TfV.mjs +0 -86
  139. package/dist/index-DwznImvK.mjs +0 -1678
  140. package/dist/index-maWH3JYC.mjs +0 -3561
  141. package/dist/styles-B2N0JLw1.mjs +0 -114
  142. package/dist/styles-B64DVBIF.mjs +0 -115
  143. package/dist/styles-BXFVwnWT.mjs +0 -133
  144. package/dist/styles-BZQOqe8p.mjs +0 -141
  145. package/dist/styles-Bdque9TT.mjs +0 -65
  146. package/dist/styles-BlHspTrz.mjs +0 -144
  147. package/dist/styles-CROOwXEH.mjs +0 -76
  148. package/dist/styles-CplEd2kw.mjs +0 -228
  149. package/dist/styles-D1eTIklB.mjs +0 -110
  150. package/dist/styles-ePGii_9g.mjs +0 -74
  151. package/dist/use-carousel-CgAF78h3.mjs +0 -23
  152. package/dist/use-click-outside-BUll8Ag-.mjs +0 -18
  153. package/dist/use-cloudinary-image-BCxwj15o.mjs +0 -1176
  154. package/dist/use-modal-CtgexKnf.mjs +0 -14
  155. package/dist/use-search-Dj47QDw9.mjs +0 -15
  156. package/dist/utils-V0EumEPM.mjs +0 -6
  157. /package/dist/assets/{index2.css → vendor.css} +0 -0
@@ -1,95 +1,6 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { useRef as d } from "react";
3
- import { O as p, S as r } from "../../index-CAIe8hBv.mjs";
4
- import { Container as n } from "../container/index.js";
5
- import { ContentCard as f } from "../content-card/index.js";
6
- import { Heading as x } from "../typography/heading/index.js";
7
- import "../typography/span/index.js";
8
- import { Text as g } from "../typography/text/index.js";
9
- const j = ({
10
- description: a,
11
- items: o,
12
- title: s,
13
- titleHighlighted: m
14
- }) => {
15
- const t = d(null);
16
- return /* @__PURE__ */ i(p, { "data-testid": "content-card-carousel", children: [
17
- /* @__PURE__ */ i(
18
- n,
19
- {
20
- alignItems: "flex-start",
21
- display: "flex",
22
- justify: "space-between",
23
- children: [
24
- /* @__PURE__ */ i(
25
- n,
26
- {
27
- alignItems: "flex-start",
28
- display: "flex",
29
- flexDirection: "column",
30
- gap: 0.625,
31
- maxWidth: "800px",
32
- children: [
33
- /* @__PURE__ */ i(
34
- x,
35
- {
36
- display: "inline",
37
- fontWeight: "semibold",
38
- lineSpacing: 2.25,
39
- lineSpacingSm: 1.75,
40
- size: "lg",
41
- sizeSm: "md",
42
- children: [
43
- s + " ",
44
- " ",
45
- /* @__PURE__ */ e("span", { className: "inline", children: m })
46
- ]
47
- }
48
- ),
49
- /* @__PURE__ */ e(
50
- g,
51
- {
52
- lineSpacing: 1.5,
53
- lineSpacingSm: 1.25,
54
- size: "md",
55
- sizeSm: "sm",
56
- children: a
57
- }
58
- )
59
- ]
60
- }
61
- ),
62
- /* @__PURE__ */ e(r, { containerRef: t, id: "desktop" })
63
- ]
64
- }
65
- ),
66
- /* @__PURE__ */ e(
67
- n,
68
- {
69
- alignSelf: "stretch",
70
- display: "flex",
71
- id: "carousel",
72
- pb: 1,
73
- pr: 2.25,
74
- ref: t,
75
- scroll: "x",
76
- children: /* @__PURE__ */ e(
77
- n,
78
- {
79
- alignItems: "flex-start",
80
- display: "flex",
81
- gap: 1.5,
82
- width: "max-content",
83
- children: o.map(
84
- (l, c) => /* @__PURE__ */ e(f, { ...l }, `${c}-${l.title}`)
85
- )
86
- }
87
- )
88
- }
89
- ),
90
- /* @__PURE__ */ e(r, { containerRef: t, id: "mobile" })
91
- ] });
92
- };
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { bh as e } from "../../components-C7JPRIEW.mjs";
93
4
  export {
94
- j as ContentCardCarousel
5
+ e as ContentCardCarousel
95
6
  };
@@ -1,9 +1,7 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "styled-components";
4
- import { S as s } from "../../../index-CAIe8hBv.mjs";
5
- import "../../container/index.js";
6
- import "../../icon/index.js";
4
+ import { bd as i } from "../../../components-C7JPRIEW.mjs";
7
5
  export {
8
- s as ScrollButtons
6
+ i as ScrollButtons
9
7
  };
@@ -1,25 +1,6 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { forwardRef as f } from "react";
3
- import { theme as p } from "../colors/index.js";
4
- import { Container as n } from "../container/index.js";
5
- const h = f(function({
6
- color: r = p.palette.gray[100],
7
- mt: o = 0.5,
8
- mb: t = 0.5,
9
- ...e
10
- }, i) {
11
- return /* @__PURE__ */ m(
12
- n,
13
- {
14
- as: "hr",
15
- border: `1px solid ${r}`,
16
- mb: t,
17
- mt: o,
18
- ref: i,
19
- ...e
20
- }
21
- );
22
- });
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { F as p } from "../../components-C7JPRIEW.mjs";
23
4
  export {
24
- h as Divider
5
+ p as Divider
25
6
  };
@@ -1,6 +1,5 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { Button as n } from "../../button/index.js";
3
- const c = ({ buttonProps: t, variant: o }) => /* @__PURE__ */ r(n, { onClick: t.onClick, variant: o, children: t.text });
1
+ import "react/jsx-runtime";
2
+ import { bi as p } from "../../../components-C7JPRIEW.mjs";
4
3
  export {
5
- c as EmptyButton
4
+ p as EmptyButton
6
5
  };
@@ -1,85 +1,5 @@
1
- import { jsxs as d, jsx as t } from "react/jsx-runtime";
2
- import { EmptyButton as m } from "./empty-button/index.js";
3
- import { styled as n } from "styled-components";
4
- import { M as g } from "../../index-maWH3JYC.mjs";
5
- import { Heading as f } from "../typography/heading/index.js";
6
- import "../typography/span/index.js";
7
- import { Text as x } from "../typography/text/index.js";
8
- const h = n.div`
9
- display: flex;
10
- flex-direction: column;
11
- align-items: center;
12
- padding: ${({ theme: i, $padding: e }) => i.spacing[e]};
13
- max-width: 900px;
14
- white-space: pre-line;
15
- margin: 0 auto;
16
- `, y = n.div`
17
- display: flex;
18
- flex-direction: row;
19
- justify-content: center;
20
- align-items: center;
21
- background-color: transparent;
22
- width: 96px;
23
- height: 96px;
24
- margin-bottom: ${({ theme: i }) => i.spacing[2]};
25
-
26
- > img {
27
- width: 100%;
28
- }
29
- `, u = n.div`
30
- display: flex;
31
- flex-direction: row;
32
- margin: 0;
33
- margin-bottom: ${({ theme: i }) => i.spacing[2]};
34
-
35
- > * {
36
- margin-right: ${({ theme: i }) => i.spacing[0.75]};
37
- }
38
-
39
- > *:last-child {
40
- margin-right: 0;
41
- }
42
- `, a = {
43
- md: { description: "md", title: "lg" },
44
- sm: { description: "sm", title: "xs" }
45
- }, C = ({
46
- cancelButton: i = void 0,
47
- confirmButton: e = void 0,
48
- description: p,
49
- imageSrc: s = "integrates/empty/addRoot",
50
- padding: l = 1.25,
51
- title: c,
52
- size: r = "md"
53
- }) => {
54
- const o = (e ?? i) !== void 0;
55
- return /* @__PURE__ */ d(h, { $padding: l, children: [
56
- /* @__PURE__ */ t(y, { children: /* @__PURE__ */ t(g, { alt: "empty-icon", publicId: s }) }),
57
- /* @__PURE__ */ t(
58
- f,
59
- {
60
- fontWeight: "bold",
61
- lineSpacing: 1.75,
62
- mb: 0.25,
63
- size: a[r].title,
64
- textAlign: "center",
65
- children: c
66
- }
67
- ),
68
- /* @__PURE__ */ t(
69
- x,
70
- {
71
- mb: o ? 2 : void 0,
72
- size: a[r].description,
73
- textAlign: "center",
74
- children: p
75
- }
76
- ),
77
- o ? /* @__PURE__ */ d(u, { children: [
78
- i && /* @__PURE__ */ t(m, { buttonProps: i, variant: "tertiary" }),
79
- e && /* @__PURE__ */ t(m, { buttonProps: e, variant: "primary" })
80
- ] }) : void 0
81
- ] });
82
- };
1
+ import "react/jsx-runtime";
2
+ import { G as p } from "../../components-C7JPRIEW.mjs";
83
3
  export {
84
- C as EmptyState
4
+ p as EmptyState
85
5
  };
@@ -1,44 +1,5 @@
1
- import { jsx as i, jsxs as c } from "react/jsx-runtime";
2
- import { styled as p } from "styled-components";
3
- import { Container as a } from "../container/index.js";
4
- import n from "lodash";
5
- import { Link as m } from "../link/index.js";
6
- const d = p(a).attrs(
7
- ({ ...e }) => ({
8
- display: "inline-block",
9
- position: "relative",
10
- ...e
11
- })
12
- )`
13
- & img {
14
- display: block;
15
- }
16
-
17
- &::after {
18
- content: "";
19
- position: absolute;
20
- top: 0;
21
- left: 0;
22
- width: 100%;
23
- height: 100%;
24
- pointer-events: none;
25
- ${({ $opacity: e = 0 }) => `background-color: rgba(0, 0, 0, ${e});`}
26
- }
27
- `, u = (e) => {
28
- if (n.isNil(e)) return "";
29
- const t = e.split(".");
30
- return (t.length > 1 ? n.last(t) : "").toLowerCase();
31
- }, f = (e, t) => n.isUndefined(t) ? !1 : n.includes(e, u(t)), w = ({
32
- alt: e,
33
- fileType: t,
34
- width: r = "100%",
35
- opacity: s = 0,
36
- src: o,
37
- height: l = "auto"
38
- }) => t === "video" || f(["webm"], o) ? /* @__PURE__ */ i(d, { $opacity: s, children: /* @__PURE__ */ c("video", { controls: !0, height: l, muted: !0, width: r, children: [
39
- /* @__PURE__ */ i("source", { src: o, type: "video/webm" }),
40
- /* @__PURE__ */ i(m, { href: o, iconPosition: "hidden", children: o })
41
- ] }) }) : /* @__PURE__ */ i(d, { $opacity: s, children: /* @__PURE__ */ i("img", { alt: e, height: l, src: o, width: r }) });
1
+ import "react/jsx-runtime";
2
+ import { H as o } from "../../components-C7JPRIEW.mjs";
42
3
  export {
43
- w as FilePreview
4
+ o as FilePreview
44
5
  };
@@ -1,63 +1,6 @@
1
- import { jsx as t, jsxs as l } from "react/jsx-runtime";
2
- import { forwardRef as x } from "react";
3
- import { styled as y } from "styled-components";
4
- import { Button as a } from "../button/index.js";
5
- import { Container as n } from "../container/index.js";
6
- const b = y.form`
7
- ${({ theme: i }) => `
8
- align-items: flex-start;
9
- align-self: stretch;
10
- display: flex;
11
- flex-direction: column;
12
- gap: ${i.spacing[0.5]};
13
-
14
- &:has(button[type="reset"]) {
15
- &:last-child {
16
- margin-top: ${i.spacing[1]};
17
- }
18
- }
19
- `}
20
- `, F = x(function({
21
- cancelLabel: m,
22
- children: c,
23
- id: o = "modal-confirm",
24
- onCancel: e,
25
- onConfirm: r = "submit",
26
- submitLabel: d,
27
- submitDisabled: f = !1,
28
- ...p
29
- }, u) {
30
- const s = r === "submit", h = [e, r].some(Boolean);
31
- return /* @__PURE__ */ t(b, { ref: u, ...p, children: /* @__PURE__ */ l(n, { children: [
32
- /* @__PURE__ */ t(n, { display: "flex", flexDirection: "column", gap: 0.5, mb: 1.5, children: c }),
33
- h && /* @__PURE__ */ l(n, { display: "flex", gap: 0.75, maxWidth: "392px", children: [
34
- e ? /* @__PURE__ */ t(
35
- a,
36
- {
37
- id: `${o}-cancel`,
38
- justify: "center",
39
- onClick: e,
40
- type: "reset",
41
- variant: "tertiary",
42
- width: "100%",
43
- children: m ?? "Cancel"
44
- }
45
- ) : void 0,
46
- /* @__PURE__ */ t(
47
- a,
48
- {
49
- disabled: f,
50
- id: o,
51
- justify: "center",
52
- onClick: s ? void 0 : r,
53
- type: s ? "submit" : "button",
54
- width: "100%",
55
- children: d ?? "Confirm"
56
- }
57
- )
58
- ] })
59
- ] }) });
60
- });
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { I as t } from "../../components-C7JPRIEW.mjs";
61
4
  export {
62
- F as Form
5
+ t as Form
63
6
  };
@@ -1,48 +1,6 @@
1
- import { jsx as d } from "react/jsx-runtime";
2
- import { forwardRef as $ } from "react";
3
- import { styled as s } from "styled-components";
4
- import { B as l } from "../../styles-CplEd2kw.mjs";
5
- const f = s(l)`
6
- display: grid;
7
- gap: ${({ $gap: r = 1.25 }) => `${r}rem`};
8
- grid-template-columns: ${({ $sm: r }) => `repeat(${r}, 1fr)`};
9
-
10
- ${({ theme: r, $xl: t, $lg: e, $md: i }) => `
11
- @media (width >= ${r.breakpoints.sm}) {
12
- grid-template-columns: repeat(${i}, 1fr);
13
- }
14
-
15
- @media (width >= ${r.breakpoints.md}) {
16
- grid-template-columns: repeat(${e}, 1fr);
17
- }
18
-
19
- @media (width >= ${r.breakpoints.lg}) {
20
- grid-template-columns: repeat(${t}, 1fr);
21
- }
22
- `}
23
- `, C = $(function({
24
- children: t,
25
- md: e,
26
- sm: i,
27
- lg: o,
28
- xl: a,
29
- gap: m,
30
- ...n
31
- }, p) {
32
- return /* @__PURE__ */ d(
33
- f,
34
- {
35
- $gap: m,
36
- $lg: o,
37
- $md: e,
38
- $sm: i,
39
- $xl: a,
40
- ref: p,
41
- ...n,
42
- children: t
43
- }
44
- );
45
- });
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { J as m } from "../../components-C7JPRIEW.mjs";
46
4
  export {
47
- C as GridContainer
5
+ m as GridContainer
48
6
  };
@@ -1,135 +1,8 @@
1
- import { jsx as e, jsxs as i } from "react/jsx-runtime";
2
- import { useState as p, useCallback as d, useEffect as z } from "react";
3
- import { createPortal as T } from "react-dom";
4
- import { useTheme as v } from "styled-components";
5
- import { S as L, O as j, a as k } from "../../index-CWlrSlUk.mjs";
6
- import { Container as t } from "../container/index.js";
7
- import { Divider as O } from "../divider/index.js";
8
- import { Icon as B } from "../icon/index.js";
9
- import { IconButton as F } from "../icon-button/index.js";
10
- import { Search as G } from "../search/index.js";
11
- import "../typography/heading/index.js";
12
- import "../typography/span/index.js";
13
- import { Text as h } from "../typography/text/index.js";
14
- const Q = ({
15
- isOpen: f = !0,
16
- items: n,
17
- handleNewOrganization: u,
18
- onSelect: g,
19
- onClose: x,
20
- selectedItem: y,
21
- title: C,
22
- variant: S
23
- }) => {
24
- const o = v(), [c, l] = p(n), [s, m] = p(""), a = d(
25
- (r) => {
26
- l(
27
- (I) => I.filter(
28
- (b) => String(b.name).toLowerCase().includes(r.toLocaleLowerCase())
29
- )
30
- );
31
- },
32
- [l]
33
- ), w = d(
34
- (r) => {
35
- r.currentTarget && (m(r.currentTarget.value), a(r.currentTarget.value));
36
- },
37
- [m, a]
38
- );
39
- return z(() => {
40
- l(n), a(s);
41
- }, [n, a, s]), f ? T(/* @__PURE__ */ e(
42
- t,
43
- {
44
- "aria-modal": "true",
45
- className: "comp-modal fixed inset-0 overflow-auto",
46
- zIndex: 99999,
47
- children: /* @__PURE__ */ e(
48
- t,
49
- {
50
- alignItems: "center",
51
- bgColor: "rgb(52 64 84 / 70%)",
52
- display: "flex",
53
- height: "100vh",
54
- justify: "center",
55
- left: "0",
56
- top: "0",
57
- width: "100%",
58
- children: /* @__PURE__ */ i(L, { $itemsLength: c.length, children: [
59
- /* @__PURE__ */ i(
60
- t,
61
- {
62
- alignItems: "center",
63
- display: "flex",
64
- justify: "space-between",
65
- children: [
66
- /* @__PURE__ */ e(
67
- h,
68
- {
69
- color: o.palette.gray[800],
70
- fontWeight: "bold",
71
- size: "lg",
72
- children: C
73
- }
74
- ),
75
- /* @__PURE__ */ e(
76
- F,
77
- {
78
- icon: "xmark",
79
- iconColor: o.palette.gray[400],
80
- iconSize: "xs",
81
- iconType: "fa-light",
82
- onClick: x,
83
- variant: "ghost"
84
- }
85
- )
86
- ]
87
- }
88
- ),
89
- /* @__PURE__ */ e(t, { mt: 1, children: /* @__PURE__ */ e(G, { onInput: w, placeholder: "Search" }) }),
90
- /* @__PURE__ */ e(O, { mb: 1, mt: 1 }),
91
- /* @__PURE__ */ i(
92
- t,
93
- {
94
- display: "inline-flex",
95
- gap: 1,
96
- maxHeight: "332px",
97
- scroll: "y",
98
- wrap: "wrap",
99
- children: [
100
- S === "organization-selector" ? /* @__PURE__ */ e(j, { onClick: u, children: /* @__PURE__ */ i(t, { alignItems: "center", display: "flex", children: [
101
- /* @__PURE__ */ e(
102
- B,
103
- {
104
- icon: "square-plus",
105
- iconColor: o.palette.gray[400],
106
- iconSize: "xs",
107
- iconType: "fa-light",
108
- mr: 0.5
109
- }
110
- ),
111
- /* @__PURE__ */ e(h, { color: o.palette.gray[400], size: "sm", children: "New organization" })
112
- ] }) }) : void 0,
113
- c.map(
114
- (r) => /* @__PURE__ */ e(
115
- k,
116
- {
117
- isSelected: y.toLowerCase() === r.name,
118
- label: r.name.charAt(0).toUpperCase() + r.name.slice(1),
119
- onSelect: g
120
- },
121
- r.name
122
- )
123
- )
124
- ]
125
- }
126
- )
127
- ] })
128
- }
129
- )
130
- }
131
- ), document.body) : /* @__PURE__ */ e("div", {});
132
- };
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "react-dom";
4
+ import "styled-components";
5
+ import { K as e } from "../../components-C7JPRIEW.mjs";
133
6
  export {
134
- Q as GroupSelector
7
+ e as GroupSelector
135
8
  };
@@ -1,12 +1,8 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
3
  import "styled-components";
4
- import { O, a as s } from "../../../index-CWlrSlUk.mjs";
5
- import "../../icon/index.js";
6
- import "../../typography/heading/index.js";
7
- import "../../typography/span/index.js";
8
- import "../../typography/text/index.js";
4
+ import { bk as p, bj as a } from "../../../components-C7JPRIEW.mjs";
9
5
  export {
10
- O as OptionBoxContainer,
11
- s as OptionContainer
6
+ p as OptionBoxContainer,
7
+ a as OptionContainer
12
8
  };
@@ -1,108 +1,6 @@
1
- import { jsx as $ } from "react/jsx-runtime";
2
- import { forwardRef as v } from "react";
3
- import { styled as c } from "styled-components";
4
- import { c as b } from "../../styles-CplEd2kw.mjs";
5
- const y = {
6
- xl: "96px",
7
- lg: "64px",
8
- md: "32px",
9
- sm: "24px",
10
- xs: "16px",
11
- xxs: "12px",
12
- xxss: "10px"
13
- }, z = c(b)`
14
- ${({
15
- $clickable: i,
16
- $color: o = "inherit",
17
- $disabled: a = !1,
18
- $hoverColor: e,
19
- $rotation: r,
20
- $size: n,
21
- $secondaryColor: s
22
- }) => {
23
- const t = e ? "" : "brightness(50%)", l = e ?? "";
24
- return `
25
- color: ${o};
26
- cursor: ${i ? "pointer" : "inherit"};
27
- font-size: ${y[n]};
28
- line-height: 0;
29
- vertical-align: middle;
30
- pointer-events: inherit;
31
- opacity: ${a ? "0.5" : "1"};
32
-
33
- > svg {
34
- --fa-secondary-color: ${s};
35
- transform: ${r === void 0 ? "" : `rotate(${r}deg)`};
36
- }
37
-
38
- .fill-gradient-01 path {
39
- fill: url(/gradients.svg#gradient-01);
40
- fill: url(#gradient-01);
41
- }
42
- .fill-gradient-02 path {
43
- fill: url(/gradients.svg#gradient-02);
44
- fill: url(#gradient-02);
45
- }
46
-
47
- ${i ? `&:hover {
48
- filter: ${t};
49
- color: ${l};
50
- }` : ""}
51
- `;
52
- }}
53
- `;
54
- c.div`
55
- cursor: pointer;
56
- transition: all 0.2s ease-in-out;
57
-
58
- &:hover:not([disabled]) {
59
- transform: scale(1.2);
60
- }
61
- `;
62
- const w = v(function({
63
- clickable: o,
64
- disabled: a,
65
- hoverColor: e,
66
- icon: r,
67
- iconClass: n = "",
68
- iconColor: s,
69
- iconMask: t,
70
- iconSize: l,
71
- iconTransform: d,
72
- iconType: f = "fa-solid",
73
- onClick: p,
74
- rotation: m,
75
- spanClass: g,
76
- secondaryColor: x,
77
- ...h
78
- }, u) {
79
- return /* @__PURE__ */ $(
80
- z,
81
- {
82
- $clickable: o,
83
- $color: s,
84
- $disabled: a,
85
- $hoverColor: e,
86
- $rotation: m,
87
- $secondaryColor: x,
88
- $size: l,
89
- className: g,
90
- "data-testid": `${r}-icon`,
91
- onClick: p,
92
- ref: u,
93
- ...h,
94
- children: /* @__PURE__ */ $(
95
- "i",
96
- {
97
- className: `${f} fa-${r} ${n}`,
98
- ...t !== void 0 ? { "data-fa-mask": t } : {},
99
- ...d !== void 0 ? { "data-fa-transform": d } : {}
100
- }
101
- )
102
- },
103
- `${f}-${r}`
104
- );
105
- });
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { L as t } from "../../components-C7JPRIEW.mjs";
106
4
  export {
107
- w as Icon
5
+ t as Icon
108
6
  };