@fluidattacks/design 3.1.11 → 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 (205) hide show
  1. package/dist/_commonjsHelpers-C6fGbg64.mjs +6 -0
  2. package/dist/components/@core/index.js +18 -1
  3. package/dist/components/accordion/accordion-content/index.js +22 -1
  4. package/dist/components/accordion/index.js +78 -1
  5. package/dist/components/alert/index.js +162 -4
  6. package/dist/components/button/index.js +69 -1
  7. package/dist/components/card/card-header/index.js +83 -1
  8. package/dist/components/card/card-with-image/index.js +93 -1
  9. package/dist/components/card/card-with-input/index.js +106 -3
  10. package/dist/components/card/card-with-selector/index.js +71 -1
  11. package/dist/components/card/card-with-switch/index.js +50 -1
  12. package/dist/components/card/index.js +12 -1
  13. package/dist/components/carousel/index.js +62 -10
  14. package/dist/components/checkbox/index.js +118 -3
  15. package/dist/components/cloud-image/index.js +8 -1
  16. package/dist/components/code-snippet/index.js +72 -1
  17. package/dist/components/code-snippet/location-code/index.js +171 -1
  18. package/dist/components/colors/index.js +224 -1
  19. package/dist/components/confirm-dialog/index.js +46 -1
  20. package/dist/components/container/index.js +51 -3
  21. package/dist/components/content-card/category-tag/index.js +42 -1
  22. package/dist/components/content-card/event-date/index.js +61 -1
  23. package/dist/components/content-card/index.js +168 -3
  24. package/dist/components/content-card-carousel/index.js +95 -1
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +9 -1
  26. package/dist/components/divider/index.js +25 -1
  27. package/dist/components/empty-state/empty-button/index.js +6 -1
  28. package/dist/components/empty-state/index.js +58 -8
  29. package/dist/components/file-preview/index.js +31 -3
  30. package/dist/components/form/index.js +63 -3
  31. package/dist/components/grid-container/index.js +46 -5
  32. package/dist/components/group-selector/index.js +135 -1
  33. package/dist/components/group-selector/option-container/index.js +12 -1
  34. package/dist/components/icon/index.js +102 -4
  35. package/dist/components/icon-button/index.js +76 -3
  36. package/dist/components/indicator-card/index.js +74 -1
  37. package/dist/components/info-sidebar/index.js +116 -1
  38. package/dist/components/inputs/fields/combobox/index.js +146 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +8 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +27 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +26 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +38 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +30 -1
  44. package/dist/components/inputs/fields/date/index.js +68 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +35 -1
  46. package/dist/components/inputs/fields/date-range/index.js +108 -3
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +60 -5
  48. package/dist/components/inputs/fields/date-time/index.js +69 -1
  49. package/dist/components/inputs/fields/editable/index.js +28 -1
  50. package/dist/components/inputs/fields/input/index.js +77 -1
  51. package/dist/components/inputs/fields/input-file/index.js +117 -4
  52. package/dist/components/inputs/fields/input-tags/index.js +63 -2
  53. package/dist/components/inputs/fields/number/index.js +57 -1
  54. package/dist/components/inputs/fields/number-range/index.js +49 -1
  55. package/dist/components/inputs/fields/phone/index.js +574 -11
  56. package/dist/components/inputs/fields/text-area/index.js +81 -1
  57. package/dist/components/inputs/index.js +28 -1
  58. package/dist/components/inputs/label/index.js +38 -1
  59. package/dist/components/inputs/outline-container/index.js +104 -1
  60. package/dist/components/inputs/utils/action-button/index.js +31 -1
  61. package/dist/components/inputs/utils/calendar-button/index.js +37 -1
  62. package/dist/components/inputs/utils/date-selector/index.js +62 -1
  63. package/dist/components/inputs/utils/date-time-field/index.js +133 -1
  64. package/dist/components/inputs/utils/dialog/index.js +14 -1
  65. package/dist/components/inputs/utils/number-field/index.js +86 -1
  66. package/dist/components/inputs/utils/popover/index.js +44 -1
  67. package/dist/components/interactive-card/icon/index.js +7 -1
  68. package/dist/components/interactive-card/index.js +118 -1
  69. package/dist/components/language-selector/index.js +37 -1
  70. package/dist/components/language-selector/item-list/index.js +8 -1
  71. package/dist/components/link/index.js +106 -7
  72. package/dist/components/list-item/index.js +67 -1
  73. package/dist/components/little-flag/index.js +32 -3
  74. package/dist/components/loading/index.js +55 -14
  75. package/dist/components/logo/index.js +13 -1
  76. package/dist/components/logo-carousel/index.js +45 -4
  77. package/dist/components/lottie/index.js +20 -3
  78. package/dist/components/menu/index.js +67 -1
  79. package/dist/components/message-banner/index.js +87 -4
  80. package/dist/components/modal/index.js +65 -1
  81. package/dist/components/modal/modal-confirm/index.js +51 -1
  82. package/dist/components/modal/modal-footer/index.js +25 -1
  83. package/dist/components/modal/modal-header/index.js +51 -1
  84. package/dist/components/notification/index.js +113 -5
  85. package/dist/components/notification-sign/index.js +43 -6
  86. package/dist/components/number-input/index.js +62 -7
  87. package/dist/components/oauth-selector/index.js +100 -1
  88. package/dist/components/oauth-selector/option-container/index.js +76 -1
  89. package/dist/components/plan-card/index.js +155 -5
  90. package/dist/components/plan-card/recommended-tag/index.js +31 -1
  91. package/dist/components/pop-up/description/index.js +51 -1
  92. package/dist/components/pop-up/index.js +152 -1
  93. package/dist/components/premium-feature/index.js +85 -3
  94. package/dist/components/priority-score/index.js +29 -1
  95. package/dist/components/progress/index.js +36 -3
  96. package/dist/components/progress-bar/index.js +153 -5
  97. package/dist/components/radio-button/index.js +125 -3
  98. package/dist/components/scroll-button/index.js +38 -2
  99. package/dist/components/search/index.js +105 -7
  100. package/dist/components/search-bar/index.js +219 -1
  101. package/dist/components/search-bar/item-searching/index.js +10 -1
  102. package/dist/components/severity-badge/index.js +74 -1
  103. package/dist/components/severity-overview/badge/index.js +69 -1
  104. package/dist/components/severity-overview/index.js +17 -1
  105. package/dist/components/show-on-hover/index.js +31 -3
  106. package/dist/components/slide-out-menu/index.js +3456 -3
  107. package/dist/components/slide-out-menu/menu-item/index.js +67 -1
  108. package/dist/components/slider/index.js +124 -7
  109. package/dist/components/slider/thumb/index.js +17 -1
  110. package/dist/components/step-lapse/index.js +153 -9
  111. package/dist/components/table-button/index.js +97 -3
  112. package/dist/components/tabs/fixed-tabs/index.js +29 -1
  113. package/dist/components/tabs/index.js +57 -1
  114. package/dist/components/tabs/tab/index.js +39 -1
  115. package/dist/components/tag/index.js +184 -3
  116. package/dist/components/timeline/card/index.js +9 -1
  117. package/dist/components/timeline/index.js +17 -1
  118. package/dist/components/toggle/index.js +85 -14
  119. package/dist/components/toggle-buttons/index.js +103 -5
  120. package/dist/components/tooltip/index.js +13 -1
  121. package/dist/components/tour/index.js +4549 -4
  122. package/dist/components/typography/heading/index.js +47 -1
  123. package/dist/components/typography/index.js +8 -1
  124. package/dist/components/typography/span/index.js +41 -1
  125. package/dist/components/typography/text/index.js +47 -1
  126. package/dist/components/web-form/index.js +68 -7
  127. package/dist/hooks/index.js +13 -1
  128. package/dist/index-BMHVi812.mjs +234 -0
  129. package/dist/index-BzAniA2J.mjs +135 -0
  130. package/dist/index-C6LbClYh.mjs +146 -0
  131. package/dist/index-CAIe8hBv.mjs +130 -0
  132. package/dist/index-CUQBAqt_.mjs +75 -0
  133. package/dist/index-CWlrSlUk.mjs +68 -0
  134. package/dist/index-Ckmu1TfV.mjs +86 -0
  135. package/dist/index-DwznImvK.mjs +1678 -0
  136. package/dist/index-maWH3JYC.mjs +3561 -0
  137. package/dist/index.js +206 -1
  138. package/dist/styles-B2N0JLw1.mjs +114 -0
  139. package/dist/styles-B64DVBIF.mjs +115 -0
  140. package/dist/{styles-BAhpqi6C.mjs → styles-BXFVwnWT.mjs} +28 -28
  141. package/dist/styles-BZQOqe8p.mjs +141 -0
  142. package/dist/styles-Bdque9TT.mjs +65 -0
  143. package/dist/styles-BlHspTrz.mjs +144 -0
  144. package/dist/styles-CROOwXEH.mjs +76 -0
  145. package/dist/styles-CplEd2kw.mjs +228 -0
  146. package/dist/styles-D1eTIklB.mjs +110 -0
  147. package/dist/styles-ePGii_9g.mjs +74 -0
  148. package/dist/use-carousel-CgAF78h3.mjs +23 -0
  149. package/dist/use-click-outside-BUll8Ag-.mjs +18 -0
  150. package/dist/use-cloudinary-image-BCxwj15o.mjs +1176 -0
  151. package/dist/use-modal-CtgexKnf.mjs +14 -0
  152. package/dist/use-search-Dj47QDw9.mjs +15 -0
  153. package/dist/utils-V0EumEPM.mjs +6 -0
  154. package/package.json +1 -3
  155. package/dist/_commonjsHelpers-C37NGDzP.js +0 -1
  156. package/dist/_commonjsHelpers-D6CrkqQz.mjs +0 -6
  157. package/dist/index-BH27NQKA.mjs +0 -2311
  158. package/dist/index-Bcw2vW_n.mjs +0 -75
  159. package/dist/index-C0_LPuYU.mjs +0 -106
  160. package/dist/index-C8zdgAVH.mjs +0 -82
  161. package/dist/index-CA_9DXWd.js +0 -5
  162. package/dist/index-CmylnDrF.js +0 -14
  163. package/dist/index-DUMgwAbO.js +0 -26
  164. package/dist/index-DpQYiwGu.js +0 -5
  165. package/dist/index-Dy8ZUIYs.js +0 -5
  166. package/dist/index-JPf5Yzg6.js +0 -17
  167. package/dist/index-OBZtKZuT.mjs +0 -1021
  168. package/dist/index-SsXlDjK4.mjs +0 -122
  169. package/dist/index-TKLFHcRp.js +0 -18
  170. package/dist/index-TnyKqJHo.mjs +0 -61
  171. package/dist/index-Yr95Cb7Z.mjs +0 -54
  172. package/dist/index-h9-U5wxq.mjs +0 -209
  173. package/dist/index-qCiUU4sZ.js +0 -9
  174. package/dist/index-qe0nJwzl.js +0 -15
  175. package/dist/styles--Elze-LV.js +0 -3
  176. package/dist/styles-3pR4Xdvy.js +0 -33
  177. package/dist/styles-59h91S9m.mjs +0 -65
  178. package/dist/styles-BCwLWpC3.mjs +0 -126
  179. package/dist/styles-BJ7-0I5X.mjs +0 -74
  180. package/dist/styles-BKObp9bh.mjs +0 -76
  181. package/dist/styles-BWVdbvFu.js +0 -5
  182. package/dist/styles-Bl-CstrT.js +0 -5
  183. package/dist/styles-Bn42XCW5.js +0 -7
  184. package/dist/styles-C2CoGJl7.js +0 -33
  185. package/dist/styles-CNzziAXG.js +0 -5
  186. package/dist/styles-CdD9waPD.js +0 -29
  187. package/dist/styles-CnKTwnFk.mjs +0 -110
  188. package/dist/styles-D4R-eerv.mjs +0 -77
  189. package/dist/styles-DNIIhyRC.mjs +0 -144
  190. package/dist/styles-DV8yOaqV.mjs +0 -131
  191. package/dist/styles-DYoftbd3.js +0 -42
  192. package/dist/styles-DlmKLhPh.js +0 -7
  193. package/dist/styles-be8gOdgy.mjs +0 -106
  194. package/dist/use-carousel-64dKFW4E.js +0 -1
  195. package/dist/use-carousel-D7xeL3YZ.mjs +0 -17
  196. package/dist/use-click-outside-BqkLISED.js +0 -1
  197. package/dist/use-click-outside-C4Z4pdiW.mjs +0 -18
  198. package/dist/use-cloudinary-image-DKMl7jbx.mjs +0 -612
  199. package/dist/use-cloudinary-image-YMMafagv.js +0 -1
  200. package/dist/use-modal-CNbLSSQb.mjs +0 -14
  201. package/dist/use-modal-_bYY6M_n.js +0 -1
  202. package/dist/use-search-75ip5xR-.mjs +0 -12
  203. package/dist/use-search-DeL4UDMh.js +0 -1
  204. package/dist/utils-C2whpEd3.js +0 -1
  205. package/dist/utils-Da0qL35u.mjs +0 -4
@@ -1 +1,95 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),n=require("../../index-DUMgwAbO.js"),t=require("../container/index.js"),r=require("../content-card/index.js"),s=require("../typography/heading/index.js");require("../typography/span/index.js");const l=require("../typography/text/index.js");exports.ContentCardCarousel=({description:a,items:d,title:o,titleHighlighted:c})=>{const x=i.useRef(null);return e.jsxs(n.OutlineContainer,{"data-testid":"content-card-carousel",children:[e.jsxs(t.Container,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[e.jsxs(t.Container,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[e.jsxs(s.Heading,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[o+" "," ",e.jsx("span",{className:"inline",children:c})]}),e.jsx(l.Text,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:a})]}),e.jsx(n.ScrollButtons,{containerRef:x,id:"desktop"})]}),e.jsx(t.Container,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:x,scroll:"x",children:e.jsx(t.Container,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:d.map(((i,n)=>e.jsx(r.ContentCard,{...i},`${n}-${i.title}`)))})}),e.jsx(n.ScrollButtons,{containerRef:x,id:"mobile"})]})};
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
+ };
93
+ export {
94
+ j as ContentCardCarousel
95
+ };
@@ -1 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("react/jsx-runtime"),require("react"),require("styled-components");const e=require("../../../index-DUMgwAbO.js");require("../../container/index.js"),require("../../icon/index.js"),exports.ScrollButtons=e.ScrollButtons;
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "styled-components";
4
+ import { S as s } from "../../../index-CAIe8hBv.mjs";
5
+ import "../../container/index.js";
6
+ import "../../icon/index.js";
7
+ export {
8
+ s as ScrollButtons
9
+ };
@@ -1 +1,25 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),t=require("../colors/index.js"),o=require("../container/index.js"),i=r.forwardRef((function({color:r=t.theme.palette.gray[100],mt:i=.5,mb:n=.5,...s},a){return e.jsx(o.Container,{as:"hr",border:`1px solid ${r}`,mb:n,mt:i,ref:a,...s})}));exports.Divider=i;
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
+ });
23
+ export {
24
+ h as Divider
25
+ };
@@ -1 +1,6 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),e=require("../../button/index.js");exports.EmptyButton=({buttonProps:r,variant:n})=>t.jsx(e.Button,{onClick:r.onClick,variant:n,children:r.text});
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 });
4
+ export {
5
+ c as EmptyButton
6
+ };
@@ -1,12 +1,19 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./empty-button/index.js"),i=require("styled-components"),n=require("../../index-TKLFHcRp.js"),r=require("../typography/heading/index.js");require("../typography/span/index.js");const d=require("../typography/text/index.js"),s=i.styled.div`
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`
2
9
  display: flex;
3
10
  flex-direction: column;
4
11
  align-items: center;
5
- padding: ${({theme:e,$padding:t})=>e.spacing[t]};
12
+ padding: ${({ theme: i, $padding: e }) => i.spacing[e]};
6
13
  max-width: 900px;
7
14
  white-space: pre-line;
8
15
  margin: 0 auto;
9
- `,o=i.styled.div`
16
+ `, y = n.div`
10
17
  display: flex;
11
18
  flex-direction: row;
12
19
  justify-content: center;
@@ -14,22 +21,65 @@
14
21
  background-color: transparent;
15
22
  width: 96px;
16
23
  height: 96px;
17
- margin-bottom: ${({theme:e})=>e.spacing[2]};
24
+ margin-bottom: ${({ theme: i }) => i.spacing[2]};
18
25
 
19
26
  > img {
20
27
  width: 100%;
21
28
  }
22
- `,a=i.styled.div`
29
+ `, u = n.div`
23
30
  display: flex;
24
31
  flex-direction: row;
25
32
  margin: 0;
26
- margin-bottom: ${({theme:e})=>e.spacing[2]};
33
+ margin-bottom: ${({ theme: i }) => i.spacing[2]};
27
34
 
28
35
  > * {
29
- margin-right: ${({theme:e})=>e.spacing[.75]};
36
+ margin-right: ${({ theme: i }) => i.spacing[0.75]};
30
37
  }
31
38
 
32
39
  > *:last-child {
33
40
  margin-right: 0;
34
41
  }
35
- `,p={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}};exports.EmptyState=({cancelButton:i,confirmButton:c,description:l,imageSrc:m="integrates/empty/addRoot",padding:g=1.25,title:x,size:h="md"})=>{const u=void 0!==(c??i);return e.jsxs(s,{$padding:g,children:[e.jsx(o,{children:e.jsx(n.MemoizedImage,{alt:"empty-icon",publicId:m})}),e.jsx(r.Heading,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:p[h].title,textAlign:"center",children:x}),e.jsx(d.Text,{mb:u?2:void 0,size:p[h].description,textAlign:"center",children:l}),u?e.jsxs(a,{children:[i&&e.jsx(t.EmptyButton,{buttonProps:i,variant:"tertiary"}),c&&e.jsx(t.EmptyButton,{buttonProps:c,variant:"primary"})]}):void 0]})};
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
+ };
83
+ export {
84
+ C as EmptyState
85
+ };
@@ -1,4 +1,15 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("styled-components"),t=require("../container/index.js"),o=require("lodash"),r=require("../link/index.js"),n=i.styled(t.Container).attrs((({...e})=>({display:"inline-block",position:"relative",...e})))`
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
+ )`
2
13
  & img {
3
14
  display: block;
4
15
  }
@@ -11,6 +22,23 @@
11
22
  width: 100%;
12
23
  height: 100%;
13
24
  pointer-events: none;
14
- ${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
25
+ ${({ $opacity: e = 0 }) => `background-color: rgba(0, 0, 0, ${e});`}
15
26
  }
16
- `;exports.FilePreview=({alt:i,fileType:t,width:s="100%",opacity:l=0,src:c,height:d="auto"})=>"video"===t||((e,i)=>!o.isUndefined(i)&&o.includes(e,(e=>{if(o.isNil(e))return"";const i=e.split(".");return(i.length>1?o.last(i):"").toLowerCase()})(i)))(["webm"],c)?e.jsx(n,{$opacity:l,children:e.jsxs("video",{controls:!0,height:d,muted:!0,width:s,children:[e.jsx("source",{src:c,type:"video/webm"}),e.jsx(r.Link,{href:c,iconPosition:"hidden",children:c})]})}):e.jsx(n,{$opacity:l,children:e.jsx("img",{alt:i,height:d,src:c,width:s})});
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 }) });
42
+ export {
43
+ w as FilePreview
44
+ };
@@ -1,3 +1,63 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("react"),t=require("styled-components"),i=require("../button/index.js"),r=require("../container/index.js"),s=t.styled.form`
2
- ${({theme:e})=>`\n align-items: flex-start;\n align-self: stretch;\n display: flex;\n flex-direction: column;\n gap: ${e.spacing[.5]};\n\n &:has(button[type="reset"]) {\n &:last-child {\n margin-top: ${e.spacing[1]};\n }\n }\n `}
3
- `,o=n.forwardRef((function({cancelLabel:n,children:t,id:o="modal-confirm",onCancel:l,onConfirm:a="submit",submitLabel:c,submitDisabled:d=!1,...u},m){const x="submit"===a,f=[l,a].some(Boolean);return e.jsx(s,{ref:m,...u,children:e.jsxs(r.Container,{children:[e.jsx(r.Container,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,children:t}),f&&e.jsxs(r.Container,{display:"flex",gap:.75,maxWidth:"392px",children:[l?e.jsx(i.Button,{id:`${o}-cancel`,justify:"center",onClick:l,type:"reset",variant:"tertiary",width:"100%",children:n??"Cancel"}):void 0,e.jsx(i.Button,{disabled:d,id:o,justify:"center",onClick:x?void 0:a,type:x?"submit":"button",width:"100%",children:c??"Confirm"})]})]})})}));exports.Form=o;
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
+ });
61
+ export {
62
+ F as Form
63
+ };
@@ -1,7 +1,48 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),t=require("styled-components"),n=require("../../styles-C2CoGJl7.js"),i=t.styled(n.BaseComponent)`
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)`
2
6
  display: grid;
3
- gap: ${({$gap:e=1.25})=>`${e}rem`};
4
- grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
7
+ gap: ${({ $gap: r = 1.25 }) => `${r}rem`};
8
+ grid-template-columns: ${({ $sm: r }) => `repeat(${r}, 1fr)`};
5
9
 
6
- ${({theme:e,$xl:r,$lg:t,$md:n})=>`\n @media (width >= ${e.breakpoints.sm}) {\n grid-template-columns: repeat(${n}, 1fr);\n }\n\n @media (width >= ${e.breakpoints.md}) {\n grid-template-columns: repeat(${t}, 1fr);\n }\n\n @media (width >= ${e.breakpoints.lg}) {\n grid-template-columns: repeat(${r}, 1fr);\n }\n `}
7
- `,a=r.forwardRef((function({children:r,md:t,sm:n,lg:a,xl:s,gap:m,...d},l){return e.jsx(i,{$gap:m,$lg:a,$md:t,$sm:n,$xl:s,ref:l,...d,children:r})}));exports.GridContainer=a;
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
+ });
46
+ export {
47
+ C as GridContainer
48
+ };
@@ -1 +1,135 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),t=require("react-dom"),n=require("styled-components"),i=require("../../index-Dy8ZUIYs.js"),a=require("../container/index.js"),o=require("../divider/index.js"),s=require("../icon/index.js"),l=require("../icon-button/index.js"),c=require("../search/index.js");require("../typography/heading/index.js"),require("../typography/span/index.js");const d=require("../typography/text/index.js");exports.GroupSelector=({isOpen:x=!0,items:u,handleNewOrganization:p,onSelect:g,onClose:h,selectedItem:j,title:m,variant:y})=>{const C=n.useTheme(),[f,q]=r.useState(u),[S,b]=r.useState(""),v=r.useCallback((e=>{q((r=>r.filter((r=>String(r.name).toLowerCase().includes(e.toLocaleLowerCase())))))}),[q]),w=r.useCallback((e=>{e.currentTarget&&(b(e.currentTarget.value),v(e.currentTarget.value))}),[b,v]);return r.useEffect((()=>{q(u),v(S)}),[u,v,S]),x?t.createPortal(e.jsx(a.Container,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:e.jsx(a.Container,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:e.jsxs(i.StyledGroupContainer,{$itemsLength:f.length,children:[e.jsxs(a.Container,{alignItems:"center",display:"flex",justify:"space-between",children:[e.jsx(d.Text,{color:C.palette.gray[800],fontWeight:"bold",size:"lg",children:m}),e.jsx(l.IconButton,{icon:"xmark",iconColor:C.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:h,variant:"ghost"})]}),e.jsx(a.Container,{mt:1,children:e.jsx(c.Search,{onInput:w,placeholder:"Search"})}),e.jsx(o.Divider,{mb:1,mt:1}),e.jsxs(a.Container,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:["organization-selector"===y?e.jsx(i.OptionBoxContainer,{onClick:p,children:e.jsxs(a.Container,{alignItems:"center",display:"flex",children:[e.jsx(s.Icon,{icon:"square-plus",iconColor:C.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),e.jsx(d.Text,{color:C.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,f.map((r=>e.jsx(i.OptionContainer,{isSelected:j.toLowerCase()===r.name,label:r.name.charAt(0).toUpperCase()+r.name.slice(1),onSelect:g},r.name)))]})]})})}),document.body):e.jsx("div",{})};
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
+ };
133
+ export {
134
+ Q as GroupSelector
135
+ };
@@ -1 +1,12 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("react/jsx-runtime"),require("react"),require("styled-components");const e=require("../../../index-Dy8ZUIYs.js");require("../../icon/index.js"),require("../../typography/heading/index.js"),require("../../typography/span/index.js"),require("../../typography/text/index.js"),exports.OptionBoxContainer=e.OptionBoxContainer,exports.OptionContainer=e.OptionContainer;
1
+ import "react/jsx-runtime";
2
+ import "react";
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";
9
+ export {
10
+ O as OptionBoxContainer,
11
+ s as OptionContainer
12
+ };