@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,81 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),i=require("styled-components"),t=require("../../outline-container/index.js"),a=require("../../../../styles-Bl-CstrT.js"),l=require("../../../icon/index.js"),o=r.forwardRef((function({disabled:r=!1,error:o,helpLink:n,helpText:s,label:d,name:c="input-text",id:u,maskValue:x=!1,maxLength:h,placeholder:p,required:m,rows:b,tooltip:j,value:q,weight:g,...v},f){const T=i.useTheme();return e.jsx(t.OutlineContainer,{error:o,helpLink:n,helpText:s,htmlFor:c,label:d,maxLength:h,required:m,tooltip:j,value:q?String(q):void 0,weight:g,children:e.jsxs(a.StyledTextInputContainer,{className:`${r?"disabled":""} ${o?"error":""}`,children:[e.jsx("textarea",{"aria-hidden":!1,"aria-invalid":o?"true":"false","aria-label":c,"aria-required":m,className:x?"sr-block":"","data-testid":`${c}-text-area`,disabled:r,id:u??c,maxLength:h,name:c,placeholder:p,ref:f,rows:b,value:q,...v}),o?e.jsx(l.Icon,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0]})})}));exports.TextArea=o;
1
+ import { jsx as i, jsxs as T } from "react/jsx-runtime";
2
+ import { forwardRef as $ } from "react";
3
+ import { useTheme as b } from "styled-components";
4
+ import { OutlineContainer as j } from "../../outline-container/index.js";
5
+ import { S as A } from "../../../../styles-BXFVwnWT.mjs";
6
+ import { Icon as I } from "../../../icon/index.js";
7
+ const R = $(function({
8
+ disabled: o = !1,
9
+ error: r,
10
+ helpLink: s,
11
+ helpText: l,
12
+ label: c,
13
+ name: e = "input-text",
14
+ id: f,
15
+ maskValue: d = !1,
16
+ maxLength: a,
17
+ placeholder: m,
18
+ required: n,
19
+ rows: p,
20
+ tooltip: x,
21
+ value: t,
22
+ weight: u,
23
+ ...h
24
+ }, C) {
25
+ const S = b();
26
+ return /* @__PURE__ */ i(
27
+ j,
28
+ {
29
+ error: r,
30
+ helpLink: s,
31
+ helpText: l,
32
+ htmlFor: e,
33
+ label: c,
34
+ maxLength: a,
35
+ required: n,
36
+ tooltip: x,
37
+ value: t ? String(t) : void 0,
38
+ weight: u,
39
+ children: /* @__PURE__ */ T(
40
+ A,
41
+ {
42
+ className: `${o ? "disabled" : ""} ${r ? "error" : ""}`,
43
+ children: [
44
+ /* @__PURE__ */ i(
45
+ "textarea",
46
+ {
47
+ "aria-hidden": !1,
48
+ "aria-invalid": r ? "true" : "false",
49
+ "aria-label": e,
50
+ "aria-required": n,
51
+ className: d ? "sr-block" : "",
52
+ "data-testid": `${e}-text-area`,
53
+ disabled: o,
54
+ id: f ?? e,
55
+ maxLength: a,
56
+ name: e,
57
+ placeholder: m,
58
+ ref: C,
59
+ rows: p,
60
+ value: t,
61
+ ...h
62
+ }
63
+ ),
64
+ r ? /* @__PURE__ */ i(
65
+ I,
66
+ {
67
+ icon: "exclamation-circle",
68
+ iconClass: "error-icon",
69
+ iconColor: S.palette.error[500],
70
+ iconSize: "xs"
71
+ }
72
+ ) : void 0
73
+ ]
74
+ }
75
+ )
76
+ }
77
+ );
78
+ });
79
+ export {
80
+ R as TextArea
81
+ };
@@ -1 +1,28 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./fields/combobox/index.js"),t=require("./fields/date/index.js"),i=require("./fields/date-range/index.js"),r=require("./fields/date-time/index.js"),n=require("./fields/editable/index.js"),u=require("./fields/input/index.js"),s=require("./fields/input-file/index.js"),p=require("./fields/input-tags/index.js"),o=require("./fields/number/index.js"),d=require("./fields/number-range/index.js"),x=require("./fields/phone/index.js"),a=require("./fields/text-area/index.js"),l=require("./outline-container/index.js");exports.ComboBox=e.ComboBox,exports.InputDate=t.InputDate,exports.InputDateRange=i.InputDateRange,exports.InputDateTime=r.InputDateTime,exports.Editable=n.Editable,exports.Input=u.Input,exports.InputFile=s.InputFile,exports.InputTags=p.InputTags,exports.InputNumber=o.InputNumber,exports.InputNumberRange=d.InputNumberRange,exports.PhoneInput=x.PhoneInput,exports.TextArea=a.TextArea,exports.OutlineContainer=l.OutlineContainer;
1
+ import { ComboBox as t } from "./fields/combobox/index.js";
2
+ import { InputDate as p } from "./fields/date/index.js";
3
+ import { InputDateRange as n } from "./fields/date-range/index.js";
4
+ import { InputDateTime as f } from "./fields/date-time/index.js";
5
+ import { Editable as a } from "./fields/editable/index.js";
6
+ import { Input as i } from "./fields/input/index.js";
7
+ import { InputFile as g } from "./fields/input-file/index.js";
8
+ import { InputTags as D } from "./fields/input-tags/index.js";
9
+ import { InputNumber as C } from "./fields/number/index.js";
10
+ import { InputNumberRange as R } from "./fields/number-range/index.js";
11
+ import { PhoneInput as h } from "./fields/phone/index.js";
12
+ import { TextArea as A } from "./fields/text-area/index.js";
13
+ import { OutlineContainer as E } from "./outline-container/index.js";
14
+ export {
15
+ t as ComboBox,
16
+ a as Editable,
17
+ i as Input,
18
+ p as InputDate,
19
+ n as InputDateRange,
20
+ f as InputDateTime,
21
+ g as InputFile,
22
+ C as InputNumber,
23
+ R as InputNumberRange,
24
+ D as InputTags,
25
+ E as OutlineContainer,
26
+ h as PhoneInput,
27
+ A as TextArea
28
+ };
@@ -1 +1,38 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("lodash"),o=require("styled-components"),r=require("../../icon/index.js"),l=require("../../../index-CmylnDrF.js");exports.Label=({htmlFor:t,label:s,required:n,tooltip:c,weight:a="normal"})=>{const p=o.useTheme(),u=`${t}-tooltip`,x=void 0!==c&&!i.isEmpty(c);return e.jsxs("label",{className:`flex font-${a} gap-1 w-full`,htmlFor:t,children:[s,n&&e.jsx(r.Icon,{icon:"asterisk",iconColor:p.palette.error[500],iconSize:"xxss"}),x?e.jsx(l.Tooltip,{display:"inline-flex",icon:"circle-info",id:u,place:"top",tip:c}):null]})};
1
+ import { jsxs as c, jsx as i } from "react/jsx-runtime";
2
+ import { isEmpty as m } from "lodash";
3
+ import { useTheme as a } from "styled-components";
4
+ import { Icon as f } from "../../icon/index.js";
5
+ import { T as x } from "../../../index-DwznImvK.mjs";
6
+ const j = ({
7
+ htmlFor: e,
8
+ label: r,
9
+ required: t,
10
+ tooltip: o,
11
+ weight: l = "normal"
12
+ }) => {
13
+ const n = a(), s = `${e}-tooltip`, p = o !== void 0 && !m(o);
14
+ return /* @__PURE__ */ c("label", { className: `flex font-${l} gap-1 w-full`, htmlFor: e, children: [
15
+ r,
16
+ t && /* @__PURE__ */ i(
17
+ f,
18
+ {
19
+ icon: "asterisk",
20
+ iconColor: n.palette.error[500],
21
+ iconSize: "xxss"
22
+ }
23
+ ),
24
+ p ? /* @__PURE__ */ i(
25
+ x,
26
+ {
27
+ display: "inline-flex",
28
+ icon: "circle-info",
29
+ id: s,
30
+ place: "top",
31
+ tip: o
32
+ }
33
+ ) : null
34
+ ] });
35
+ };
36
+ export {
37
+ j as Label
38
+ };
@@ -1 +1,104 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("styled-components"),r=require("../label/index.js"),n=require("../../../styles-Bl-CstrT.js"),t=require("../../container/index.js"),l=require("../../icon/index.js"),s=require("../../link/index.js"),o=require("../../tag/index.js");require("../../typography/heading/index.js"),require("../../typography/span/index.js");const a=require("../../typography/text/index.js");exports.OutlineContainer=({children:d,error:c,helpLink:x,helpLinkText:p="Link here",helpText:h,htmlFor:u,label:j,maxLength:g,required:y,tooltip:m,value:q,weight:b})=>{const v=i.useTheme(),T=q?q.length:0;return e.jsxs(n.StyledOutlineContainer,{children:[void 0===j?void 0:e.jsx(r.Label,{htmlFor:u,label:j,required:y,tooltip:m,weight:b}),d,c||g?e.jsxs(t.Container,{display:"flex",justify:void 0===c?"end":"space-between",width:"100%",children:[c&&e.jsx(a.Text,{className:"error-msg",color:v.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:c}),g&&e.jsx(o.Tag,{priority:"low",tagLabel:`${T}/${g}`,variant:"error"})]}):void 0,h||x?e.jsxs(t.Container,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[h&&e.jsxs(e.Fragment,{children:[e.jsx(l.Icon,{icon:"circle-info",iconColor:v.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),e.jsx(a.Text,{color:v.palette.gray[400],display:"inline-block",size:"sm",children:h})]}),x&&e.jsx(s.Link,{href:x,children:p})]}):void 0]})};
1
+ import { jsxs as r, jsx as e, Fragment as b } from "react/jsx-runtime";
2
+ import { useTheme as w } from "styled-components";
3
+ import { Label as x } from "../label/index.js";
4
+ import { a as C } from "../../../styles-BXFVwnWT.mjs";
5
+ import { Container as c } from "../../container/index.js";
6
+ import { Icon as j } from "../../icon/index.js";
7
+ import { Link as z } from "../../link/index.js";
8
+ import { Tag as S } from "../../tag/index.js";
9
+ import "../../typography/heading/index.js";
10
+ import "../../typography/span/index.js";
11
+ import { Text as d } from "../../typography/text/index.js";
12
+ const B = ({
13
+ children: s,
14
+ error: i,
15
+ helpLink: n,
16
+ helpLinkText: f = "Link here",
17
+ helpText: o,
18
+ htmlFor: p,
19
+ label: m,
20
+ maxLength: t,
21
+ required: g,
22
+ tooltip: h,
23
+ value: a,
24
+ weight: u
25
+ }) => {
26
+ const l = w(), y = a ? a.length : 0;
27
+ return /* @__PURE__ */ r(C, { children: [
28
+ m === void 0 ? void 0 : /* @__PURE__ */ e(
29
+ x,
30
+ {
31
+ htmlFor: p,
32
+ label: m,
33
+ required: g,
34
+ tooltip: h,
35
+ weight: u
36
+ }
37
+ ),
38
+ s,
39
+ i || t ? /* @__PURE__ */ r(
40
+ c,
41
+ {
42
+ display: "flex",
43
+ justify: i === void 0 ? "end" : "space-between",
44
+ width: "100%",
45
+ children: [
46
+ i && /* @__PURE__ */ e(
47
+ d,
48
+ {
49
+ className: "error-msg",
50
+ color: l.palette.error[500],
51
+ display: "block",
52
+ lineSpacing: 1,
53
+ size: "sm",
54
+ children: i
55
+ }
56
+ ),
57
+ t && /* @__PURE__ */ e(
58
+ S,
59
+ {
60
+ priority: "low",
61
+ tagLabel: `${y}/${t}`,
62
+ variant: "error"
63
+ }
64
+ )
65
+ ]
66
+ }
67
+ ) : void 0,
68
+ o || n ? /* @__PURE__ */ r(
69
+ c,
70
+ {
71
+ alignItems: "center",
72
+ display: "flex",
73
+ gap: 0.25,
74
+ width: "100%",
75
+ children: [
76
+ o && /* @__PURE__ */ r(b, { children: [
77
+ /* @__PURE__ */ e(
78
+ j,
79
+ {
80
+ icon: "circle-info",
81
+ iconColor: l.palette.gray[400],
82
+ iconSize: "xxs",
83
+ iconType: "fa-light"
84
+ }
85
+ ),
86
+ /* @__PURE__ */ e(
87
+ d,
88
+ {
89
+ color: l.palette.gray[400],
90
+ display: "inline-block",
91
+ size: "sm",
92
+ children: o
93
+ }
94
+ )
95
+ ] }),
96
+ n && /* @__PURE__ */ e(z, { href: n, children: f })
97
+ ]
98
+ }
99
+ ) : void 0
100
+ ] });
101
+ };
102
+ export {
103
+ B as OutlineContainer
104
+ };
@@ -1 +1,31 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),t=require("../../../../styles-3pR4Xdvy.js"),n=require("../../../icon/index.js"),r=i.forwardRef((function({disabled:i,icon:r,margin:o,onClick:c,...s},a){return e.jsx(t.StyledButtonAction,{$margin:o,"aria-label":r,className:"action-btn",disabled:i,onClick:c,ref:a,type:"button",...s,children:e.jsx(n.Icon,{icon:r,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}));exports.ActionButton=r;
1
+ import { jsx as o } from "react/jsx-runtime";
2
+ import { forwardRef as e } from "react";
3
+ import { S as m } from "../../../../styles-D1eTIklB.mjs";
4
+ import { Icon as f } from "../../../icon/index.js";
5
+ const d = e(function({ disabled: n, icon: t, margin: i, onClick: r, ...a }, c) {
6
+ return /* @__PURE__ */ o(
7
+ m,
8
+ {
9
+ $margin: i,
10
+ "aria-label": t,
11
+ className: "action-btn",
12
+ disabled: n,
13
+ onClick: r,
14
+ ref: c,
15
+ type: "button",
16
+ ...a,
17
+ children: /* @__PURE__ */ o(
18
+ f,
19
+ {
20
+ icon: t,
21
+ iconClass: "action",
22
+ iconSize: "xs",
23
+ iconType: "fa-light"
24
+ }
25
+ )
26
+ }
27
+ );
28
+ });
29
+ export {
30
+ d as ActionButton
31
+ };
@@ -1 +1,37 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),t=require("react-aria"),o=require("../../../../styles-3pR4Xdvy.js"),n=require("../../../colors/index.js"),i=require("../../../icon/index.js");exports.Button=({disabled:a=!1,icon:s,props:c})=>{const u=r.useRef(null),{buttonProps:l}=t.useButton(c,u);return e.jsx(o.CalendarButtonAction,{...l,$disabled:a,$focus:Boolean(l["aria-expanded"]),$header:"calendar"===s||"calendar-clock"===s,disabled:a,ref:u,type:"button",children:e.jsx(i.Icon,{icon:s,iconColor:n.theme.palette.gray[a?400:700],iconSize:"xs",iconType:"fa-light"})})};
1
+ import { jsx as n } from "react/jsx-runtime";
2
+ import { useRef as m } from "react";
3
+ import { useButton as c } from "react-aria";
4
+ import { C as p } from "../../../../styles-D1eTIklB.mjs";
5
+ import { theme as f } from "../../../colors/index.js";
6
+ import { Icon as i } from "../../../icon/index.js";
7
+ const B = ({
8
+ disabled: o = !1,
9
+ icon: t,
10
+ props: a
11
+ }) => {
12
+ const r = m(null), { buttonProps: e } = c(a, r);
13
+ return /* @__PURE__ */ n(
14
+ p,
15
+ {
16
+ ...e,
17
+ $disabled: o,
18
+ $focus: !!e["aria-expanded"],
19
+ $header: t === "calendar" || t === "calendar-clock",
20
+ disabled: o,
21
+ ref: r,
22
+ type: "button",
23
+ children: /* @__PURE__ */ n(
24
+ i,
25
+ {
26
+ icon: t,
27
+ iconColor: f.palette.gray[o ? 400 : 700],
28
+ iconSize: "xs",
29
+ iconType: "fa-light"
30
+ }
31
+ )
32
+ }
33
+ );
34
+ };
35
+ export {
36
+ B as Button
37
+ };
@@ -1 +1,62 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("../../../../styles-Bl-CstrT.js"),t=require("../calendar-button/index.js"),a=require("../date-time-field/index.js");exports.DateSelector=({error:s,buttonProps:i,datePickerRef:l,disabled:d=!1,granularity:o="day",fieldProps:n,groupProps:u,inputRef:c,name:p,...x})=>e.jsxs(r.StyledTextInputContainer,{...u,className:`${d?"disabled":""} ${s?"error":""}`,ref:l,children:[e.jsx(a.DateField,{disabled:d,error:null!=s,props:{...n,autoFocus:!1,granularity:o,shouldForceLeadingZeros:!0}}),e.jsx(t.Button,{disabled:d,icon:"minute"===o?"calendar-clock":"calendar",props:i}),e.jsx("input",{...x,"aria-label":p,className:"date-input",disabled:d,name:p,ref:c,type:"text",value:""})]});
1
+ import { jsxs as u, jsx as r } from "react/jsx-runtime";
2
+ import { S as m } from "../../../../styles-BXFVwnWT.mjs";
3
+ import { Button as f } from "../calendar-button/index.js";
4
+ import { DateField as d } from "../date-time-field/index.js";
5
+ const j = ({
6
+ error: t,
7
+ buttonProps: n,
8
+ datePickerRef: s,
9
+ disabled: e = !1,
10
+ granularity: o = "day",
11
+ fieldProps: p,
12
+ groupProps: c,
13
+ inputRef: l,
14
+ name: a,
15
+ ...i
16
+ }) => /* @__PURE__ */ u(
17
+ m,
18
+ {
19
+ ...c,
20
+ className: `${e ? "disabled" : ""} ${t ? "error" : ""}`,
21
+ ref: s,
22
+ children: [
23
+ /* @__PURE__ */ r(
24
+ d,
25
+ {
26
+ disabled: e,
27
+ error: t != null,
28
+ props: {
29
+ ...p,
30
+ autoFocus: !1,
31
+ granularity: o,
32
+ shouldForceLeadingZeros: !0
33
+ }
34
+ }
35
+ ),
36
+ /* @__PURE__ */ r(
37
+ f,
38
+ {
39
+ disabled: e,
40
+ icon: o === "minute" ? "calendar-clock" : "calendar",
41
+ props: n
42
+ }
43
+ ),
44
+ /* @__PURE__ */ r(
45
+ "input",
46
+ {
47
+ ...i,
48
+ "aria-label": a,
49
+ className: "date-input",
50
+ disabled: e,
51
+ name: a,
52
+ ref: l,
53
+ type: "text",
54
+ value: ""
55
+ }
56
+ )
57
+ ]
58
+ }
59
+ );
60
+ export {
61
+ j as DateSelector
62
+ };
@@ -1 +1,133 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("@internationalized/date"),r=require("lodash"),s=require("react"),i=require("react-aria"),l=require("react-stately"),a=require("styled-components"),n=require("../../../../styles-3pR4Xdvy.js"),o=require("../../../icon/index.js"),c=({segment:t,state:r})=>{const l=a.useTheme(),n=s.useRef(null),o={...t,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[t.type]},{segmentProps:c}=i.useDateSegment(o,r,n),d=l.palette.gray[o.isEditable?800:500];return e.jsx("div",{..."literal"!==o.type&&{...c,className:"segment-cell"},ref:n,style:"literal"===o.type?void 0:{color:o.isPlaceholder?l.palette.gray[400]:d},children:o.isPlaceholder?o.placeholder:o.text})};exports.DateField=({disabled:d,error:u=!1,props:m})=>{const y=a.useTheme(),p=s.useRef(null),x=l.useDateFieldState({...m,createCalendar:t.createCalendar,locale:"en-US"}),{fieldProps:g}=i.useDateField(m,x,p),h=s.useCallback((e=>{const t=document.getElementsByClassName("segment-cell"),r=e.currentTarget;Object.values(t).some((e=>e.contains(r)))||(e.preventDefault(),e.stopPropagation())}),[]);return e.jsxs(n.InputDateBox,{...g,onClick:h,children:[e.jsx("div",{className:"flex flex-row",style:{color:y.palette.gray[r.isNil(x.value)?400:800]},tabIndex:-1,children:x.segments.map(((t,r)=>{const s=`key_${r}`;return e.jsx(c,{segment:{...t,isEditable:!d},state:x},s)}))}),u?e.jsx(o.Icon,{icon:"exclamation-circle",iconColor:y.palette.error[500],iconSize:"xs"}):void 0]})},exports.TimeField=t=>{const a=s.useRef(null),o=l.useTimeFieldState({...t,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:d}=o,u=!r.isNil(d)&&d.hour<12?"AM":"PM",[m,y]=s.useState(r.isNil(d)?"AM":u),{fieldProps:p}=i.useTimeField(t,o,a),x=s.useCallback((e=>{const t=e.currentTarget.name;t!==m&&(r.isNil(d)||("AM"===t?o.setSegment("dayPeriod",0):"PM"===t&&o.setSegment("dayPeriod",12))),y(t)}),[m,o,d]);return e.jsxs(n.TimeOutlineContainer,{children:[e.jsx(n.TimePickerContainer,{...p,ref:a,children:o.segments.slice(0,-2).map(((t,r)=>{const s=`key_${r}`;return e.jsx(c,{segment:t,state:o},s)}))}),e.jsxs(n.TimePickerContainer,{children:[e.jsx(n.DayPeriodButton,{id:"AM"===m?"active":"",name:"AM",onClick:x,type:"button",children:"AM"}),e.jsx(n.DayPeriodButton,{id:"PM"===m?"active":"",name:"PM",onClick:x,type:"button",children:"PM"})]})]})};
1
+ import { jsxs as f, jsx as r } from "react/jsx-runtime";
2
+ import { createCalendar as D } from "@internationalized/date";
3
+ import { isNil as u } from "lodash";
4
+ import { useRef as y, useCallback as P, useState as S } from "react";
5
+ import { useDateField as C, useTimeField as F, useDateSegment as T } from "react-aria";
6
+ import { useDateFieldState as b, useTimeFieldState as k } from "react-stately";
7
+ import { useTheme as M } from "styled-components";
8
+ import { I as A, T as v, a as h, b as g } from "../../../../styles-D1eTIklB.mjs";
9
+ import { Icon as I } from "../../../icon/index.js";
10
+ const x = ({
11
+ segment: i,
12
+ state: a
13
+ }) => {
14
+ const t = M(), n = y(null), e = { ...i, placeholder: {
15
+ day: "dd",
16
+ dayPeriod: "(AM/PM)",
17
+ era: "",
18
+ hour: "hh",
19
+ literal: "",
20
+ minute: "mm",
21
+ month: "mm",
22
+ second: "",
23
+ timeZoneName: "",
24
+ year: "yyyy"
25
+ }[i.type] }, { segmentProps: c } = T(e, a, n), m = t.palette.gray[e.isEditable ? 800 : 500];
26
+ return /* @__PURE__ */ r(
27
+ "div",
28
+ {
29
+ ...e.type !== "literal" && {
30
+ ...c,
31
+ className: "segment-cell"
32
+ },
33
+ ref: n,
34
+ style: e.type === "literal" ? void 0 : {
35
+ color: e.isPlaceholder ? t.palette.gray[400] : m
36
+ },
37
+ children: e.isPlaceholder ? e.placeholder : e.text
38
+ }
39
+ );
40
+ }, $ = ({
41
+ disabled: i,
42
+ error: a = !1,
43
+ props: t
44
+ }) => {
45
+ const n = M(), d = y(null), e = b({
46
+ ...t,
47
+ createCalendar: D,
48
+ locale: "en-US"
49
+ }), { fieldProps: c } = C(t, e, d), m = P(
50
+ (l) => {
51
+ const s = document.getElementsByClassName("segment-cell"), o = l.currentTarget;
52
+ Object.values(s).some(
53
+ (p) => p.contains(o)
54
+ ) || (l.preventDefault(), l.stopPropagation());
55
+ },
56
+ []
57
+ );
58
+ return /* @__PURE__ */ f(A, { ...c, onClick: m, children: [
59
+ /* @__PURE__ */ r(
60
+ "div",
61
+ {
62
+ className: "flex flex-row",
63
+ style: { color: n.palette.gray[u(e.value) ? 400 : 800] },
64
+ tabIndex: -1,
65
+ children: e.segments.map((l, s) => {
66
+ const o = `key_${s}`;
67
+ return /* @__PURE__ */ r(
68
+ x,
69
+ {
70
+ segment: { ...l, isEditable: !i },
71
+ state: e
72
+ },
73
+ o
74
+ );
75
+ })
76
+ }
77
+ ),
78
+ a ? /* @__PURE__ */ r(
79
+ I,
80
+ {
81
+ icon: "exclamation-circle",
82
+ iconColor: n.palette.error[500],
83
+ iconSize: "xs"
84
+ }
85
+ ) : void 0
86
+ ] });
87
+ }, w = (i) => {
88
+ const a = y(null), t = k({
89
+ ...i,
90
+ locale: "en-US",
91
+ shouldForceLeadingZeros: !0
92
+ }), { timeValue: n } = t, d = !u(n) && n.hour < 12 ? "AM" : "PM", [e, c] = S(
93
+ u(n) ? "AM" : d
94
+ ), { fieldProps: m } = F(i, t, a), l = P(
95
+ (s) => {
96
+ const o = s.currentTarget.name;
97
+ o !== e && (u(n) || (o === "AM" ? t.setSegment("dayPeriod", 0) : o === "PM" && t.setSegment("dayPeriod", 12))), c(o);
98
+ },
99
+ [e, t, n]
100
+ );
101
+ return /* @__PURE__ */ f(v, { children: [
102
+ /* @__PURE__ */ r(h, { ...m, ref: a, children: t.segments.slice(0, -2).map((s, o) => {
103
+ const p = `key_${o}`;
104
+ return /* @__PURE__ */ r(x, { segment: s, state: t }, p);
105
+ }) }),
106
+ /* @__PURE__ */ f(h, { children: [
107
+ /* @__PURE__ */ r(
108
+ g,
109
+ {
110
+ id: e === "AM" ? "active" : "",
111
+ name: "AM",
112
+ onClick: l,
113
+ type: "button",
114
+ children: "AM"
115
+ }
116
+ ),
117
+ /* @__PURE__ */ r(
118
+ g,
119
+ {
120
+ id: e === "PM" ? "active" : "",
121
+ name: "PM",
122
+ onClick: l,
123
+ type: "button",
124
+ children: "PM"
125
+ }
126
+ )
127
+ ] })
128
+ ] });
129
+ };
130
+ export {
131
+ $ as DateField,
132
+ w as TimeField
133
+ };
@@ -1 +1,14 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),t=require("react-aria"),i=require("../../../../styles-3pR4Xdvy.js");exports.Dialog=({children:o,...s})=>{const a=r.useRef(null),{dialogProps:l}=t.useDialog(s,a);return e.jsx(i.DialogContainer,{...l,ref:a,children:o})};
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { useRef as m } from "react";
3
+ import { useDialog as s } from "react-aria";
4
+ import { D as a } from "../../../../styles-D1eTIklB.mjs";
5
+ const g = ({
6
+ children: r,
7
+ ...i
8
+ }) => {
9
+ const o = m(null), { dialogProps: t } = s(i, o);
10
+ return /* @__PURE__ */ e(a, { ...t, ref: o, children: r });
11
+ };
12
+ export {
13
+ g as Dialog
14
+ };
@@ -1 +1,86 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("react"),i=require("styled-components"),t=require("../../../../styles-Bl-CstrT.js"),n=require("../action-button/index.js"),o=require("../../../icon/index.js");exports.NumberField=({error:a,decimalPlaces:s=0,disabled:d=!1,max:l=1/0,min:u=0,name:c="input-number",placeholder:m,ref:p,required:x,value:b,...j})=>{const q=i.useTheme(),h=r.useMemo((()=>s<0?0:s),[s]);return e.jsxs(t.StyledTextInputContainer,{className:`${d?"disabled":""} ${a?"error":""}`,children:[e.jsx("input",{"aria-hidden":!1,"aria-invalid":a?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",disabled:d,max:l,min:u,placeholder:m,ref:p,required:void 0,step:10**-h,type:"number",value:/^-?\d+/u.test(String(b))?b:"",...j}),a&&e.jsx(o.Icon,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:q.palette.error[500],iconSize:"xs"}),e.jsx(n.ActionButton,{borderLeft:"inherit",borderRight:"inherit",disabled:d,icon:"minus",margin:"0 -0.625rem 0 0",px:.75,py:.75}),e.jsx(n.ActionButton,{borderRadius:`0 ${q.spacing[.5]} ${q.spacing[.5]} 0`,disabled:d,icon:"plus",px:.75,py:.75})]})};
1
+ import { jsxs as x, jsx as e } from "react/jsx-runtime";
2
+ import { useMemo as h } from "react";
3
+ import { useTheme as b } from "styled-components";
4
+ import { S as g } from "../../../../styles-BXFVwnWT.mjs";
5
+ import { ActionButton as m } from "../action-button/index.js";
6
+ import { Icon as y } from "../../../icon/index.js";
7
+ const N = ({
8
+ error: i,
9
+ decimalPlaces: o = 0,
10
+ disabled: r = !1,
11
+ max: a = 1 / 0,
12
+ min: p = 0,
13
+ name: s = "input-number",
14
+ placeholder: u,
15
+ ref: c,
16
+ required: f,
17
+ value: n,
18
+ ...l
19
+ }) => {
20
+ const t = b(), d = h(
21
+ () => o < 0 ? 0 : o,
22
+ [o]
23
+ );
24
+ return /* @__PURE__ */ x(
25
+ g,
26
+ {
27
+ className: `${r ? "disabled" : ""} ${i ? "error" : ""}`,
28
+ children: [
29
+ /* @__PURE__ */ e(
30
+ "input",
31
+ {
32
+ "aria-hidden": !1,
33
+ "aria-invalid": i ? "true" : "false",
34
+ "aria-label": s,
35
+ "aria-required": f,
36
+ autoComplete: "off",
37
+ disabled: r,
38
+ max: a,
39
+ min: p,
40
+ placeholder: u,
41
+ ref: c,
42
+ required: void 0,
43
+ step: 10 ** -d,
44
+ type: "number",
45
+ value: /^-?\d+/u.test(String(n)) ? n : "",
46
+ ...l
47
+ }
48
+ ),
49
+ i && /* @__PURE__ */ e(
50
+ y,
51
+ {
52
+ icon: "exclamation-circle",
53
+ iconClass: "error-icon",
54
+ iconColor: t.palette.error[500],
55
+ iconSize: "xs"
56
+ }
57
+ ),
58
+ /* @__PURE__ */ e(
59
+ m,
60
+ {
61
+ borderLeft: "inherit",
62
+ borderRight: "inherit",
63
+ disabled: r,
64
+ icon: "minus",
65
+ margin: "0 -0.625rem 0 0",
66
+ px: 0.75,
67
+ py: 0.75
68
+ }
69
+ ),
70
+ /* @__PURE__ */ e(
71
+ m,
72
+ {
73
+ borderRadius: `0 ${t.spacing[0.5]} ${t.spacing[0.5]} 0`,
74
+ disabled: r,
75
+ icon: "plus",
76
+ px: 0.75,
77
+ py: 0.75
78
+ }
79
+ )
80
+ ]
81
+ }
82
+ );
83
+ };
84
+ export {
85
+ N as NumberField
86
+ };