@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,10 +1,108 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),o=require("react"),e=require("styled-components"),r=require("../../styles-C2CoGJl7.js"),i={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},s=e.styled(r.BaseSpanComponent)`
2
- ${({$clickable:n,$color:o="inherit",$disabled:e=!1,$hoverColor:r,$rotation:s,$size:t,$secondaryColor:a})=>`\n color: ${o};\n cursor: ${n?"pointer":"inherit"};\n font-size: ${i[t]};\n line-height: 0;\n vertical-align: middle;\n pointer-events: inherit;\n opacity: ${e?"0.5":"1"};\n\n > svg {\n --fa-secondary-color: ${a};\n transform: ${void 0===s?"":`rotate(${s}deg)`};\n }\n\n .fill-gradient-01 path {\n fill: url(/gradients.svg#gradient-01);\n fill: url(#gradient-01);\n }\n .fill-gradient-02 path {\n fill: url(/gradients.svg#gradient-02);\n fill: url(#gradient-02);\n }\n\n ${n?`&:hover {\n filter: ${r?"":"brightness(50%)"};\n color: ${r??""};\n }`:""}\n `}
3
- `;e.styled.div`
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`
4
55
  cursor: pointer;
5
56
  transition: all 0.2s ease-in-out;
6
57
 
7
58
  &:hover:not([disabled]) {
8
59
  transform: scale(1.2);
9
60
  }
10
- `;const t=o.forwardRef((function({clickable:o,disabled:e,hoverColor:r,icon:i,iconClass:t="",iconColor:a,iconMask:l,iconSize:c,iconTransform:d,iconType:$="fa-solid",onClick:f,rotation:p,spanClass:g,secondaryColor:x,...u},v){return n.jsx(s,{$clickable:o,$color:a,$disabled:e,$hoverColor:r,$rotation:p,$secondaryColor:x,$size:c,className:g,"data-testid":`${i}-icon`,onClick:f,ref:v,...u,children:n.jsx("i",{className:`${$} fa-${i} ${t}`,...void 0!==l?{"data-fa-mask":l}:{},...void 0!==d?{"data-fa-transform":d}:{}})},`${$}-${i}`)}));exports.Icon=t;
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
+ });
106
+ export {
107
+ w as Icon
108
+ };
@@ -1,3 +1,76 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("react"),n=require("styled-components"),r=require("../../styles--Elze-LV.js"),t=require("../icon/index.js"),o=require("../../index-CmylnDrF.js"),a=n.styled(r.StyledButton)`
2
- ${({theme:e,$borderRadius:i="4px",$px:n=.5,$py:r=.5})=>`\n --btn-spacing: ${i};\n --btn-padding-x: ${e.spacing[n]};\n --btn-padding-y: ${e.spacing[r]};\n\n align-items: center;\n line-height: 0;\n text-align: center;\n\n > span {\n margin: 0 !important;\n }\n `}
3
- `,c=i.forwardRef((function({borderRadius:i,disabled:n,icon:r,iconColor:c,iconSize:s="xxs",iconTransform:d,iconType:l,id:p,justify:u="center",onClick:y,px:x,py:b,type:$="button",tooltip:g,tooltipPlace:j,value:m,variant:f="primary",...q},v){const T=e.jsx(a,{$borderRadius:i,$px:x,$py:b,$variant:f,"aria-disabled":n,"aria-label":p,borderRadius:i,disabled:n,id:p,justify:u,onClick:y,ref:v,type:$,value:m,...q,children:e.jsx(t.Icon,{clickable:!1,icon:r,iconColor:c,iconSize:s,iconTransform:d,iconType:l})}),h=($+(f??"")+(p??r)).replace(/ /u,"_");return void 0===g?T:e.jsx(o.Tooltip,{id:`${h}-tooltip`,place:j,tip:g,children:T})}));exports.IconButton=c;
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { forwardRef as S } from "react";
3
+ import { styled as T } from "styled-components";
4
+ import { S as j } from "../../styles-B2N0JLw1.mjs";
5
+ import { Icon as k } from "../icon/index.js";
6
+ import { T as w } from "../../index-DwznImvK.mjs";
7
+ const R = T(j)`
8
+ ${({ theme: r, $borderRadius: t = "4px", $px: n = 0.5, $py: o = 0.5 }) => `
9
+ --btn-spacing: ${t};
10
+ --btn-padding-x: ${r.spacing[n]};
11
+ --btn-padding-y: ${r.spacing[o]};
12
+
13
+ align-items: center;
14
+ line-height: 0;
15
+ text-align: center;
16
+
17
+ > span {
18
+ margin: 0 !important;
19
+ }
20
+ `}
21
+ `, E = S(function({
22
+ borderRadius: t,
23
+ disabled: n,
24
+ icon: o,
25
+ iconColor: m,
26
+ iconSize: s = "xxs",
27
+ iconTransform: f,
28
+ iconType: d,
29
+ id: a,
30
+ justify: g = "center",
31
+ onClick: u,
32
+ px: $,
33
+ py: x,
34
+ type: e = "button",
35
+ tooltip: c,
36
+ tooltipPlace: b,
37
+ value: y,
38
+ variant: p = "primary",
39
+ ...B
40
+ }, I) {
41
+ const l = /* @__PURE__ */ i(
42
+ R,
43
+ {
44
+ $borderRadius: t,
45
+ $px: $,
46
+ $py: x,
47
+ $variant: p,
48
+ "aria-disabled": n,
49
+ "aria-label": a,
50
+ borderRadius: t,
51
+ disabled: n,
52
+ id: a,
53
+ justify: g,
54
+ onClick: u,
55
+ ref: I,
56
+ type: e,
57
+ value: y,
58
+ ...B,
59
+ children: /* @__PURE__ */ i(
60
+ k,
61
+ {
62
+ clickable: !1,
63
+ icon: o,
64
+ iconColor: m,
65
+ iconSize: s,
66
+ iconTransform: f,
67
+ iconType: d
68
+ }
69
+ )
70
+ }
71
+ ), h = (e + (p ?? "") + (a ?? o)).replace(/ /u, "_");
72
+ return c === void 0 ? l : /* @__PURE__ */ i(w, { id: `${h}-tooltip`, place: b, tip: c, children: l });
73
+ });
74
+ export {
75
+ E as IconButton
76
+ };
@@ -1 +1,74 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("lodash"),t=require("styled-components"),r=require("../container/index.js"),n=require("../../index-CmylnDrF.js"),d=require("../typography/heading/index.js");require("../typography/span/index.js");const o=require("../typography/text/index.js");exports.IndicatorCard=({description:s,height:a="auto",leftIconName:l,children:p,rightIconName:c,title:x,tooltipId:g,tooltipTip:h,tooltipPlace:y="bottom",variant:u="centered",width:f="318px"})=>{const j=t.useTheme(),m="centered"===u,v=e.jsx(n.Tooltip,{icon:c??l,iconColor:j.palette.gray[800],id:g,place:y,tip:h});return e.jsxs(r.Container,{alignItems:m?"center":"flex-start",bgColor:j.palette.gray[50],border:`1px solid ${j.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:m?"column":"column-reverse",gap:.5,height:a,justify:"center",padding:[1.25,1.25,1.25,1.25],width:f,children:[e.jsxs(r.Container,{alignItems:"center",display:"flex",gap:.5,children:[m||i.isUndefined(l)?void 0:v,e.jsx(o.Text,{color:m?j.palette.gray[800]:j.palette.gray[400],size:"md",textAlign:m?"center":"start",children:s}),m||i.isUndefined(c)?void 0:v]}),e.jsxs(r.Container,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[m&&!i.isUndefined(l)?v:void 0,e.jsxs("div",{style:{display:"flex",gap:"12px"},children:[i.isUndefined(x)?void 0:e.jsx(d.Heading,{fontWeight:"bold",size:"md",children:x}),p]}),m&&!i.isUndefined(c)?v:void 0]})]})};
1
+ import { jsx as l, jsxs as n } from "react/jsx-runtime";
2
+ import { isUndefined as r } from "lodash";
3
+ import { useTheme as h } from "styled-components";
4
+ import { Container as p } from "../container/index.js";
5
+ import { T as b } from "../../index-DwznImvK.mjs";
6
+ import { Heading as C } from "../typography/heading/index.js";
7
+ import "../typography/span/index.js";
8
+ import { Text as T } from "../typography/text/index.js";
9
+ const W = ({
10
+ description: s,
11
+ height: m = "auto",
12
+ leftIconName: o,
13
+ children: c,
14
+ rightIconName: d,
15
+ title: a,
16
+ tooltipId: f,
17
+ tooltipTip: g,
18
+ tooltipPlace: x = "bottom",
19
+ variant: u = "centered",
20
+ width: y = "318px"
21
+ }) => {
22
+ const t = h(), e = u === "centered", i = /* @__PURE__ */ l(
23
+ b,
24
+ {
25
+ icon: d ?? o,
26
+ iconColor: t.palette.gray[800],
27
+ id: f,
28
+ place: x,
29
+ tip: g
30
+ }
31
+ );
32
+ return /* @__PURE__ */ n(
33
+ p,
34
+ {
35
+ alignItems: e ? "center" : "flex-start",
36
+ bgColor: t.palette.gray[50],
37
+ border: `1px solid ${t.palette.gray[200]}`,
38
+ borderRadius: "4px",
39
+ display: "inline-flex",
40
+ flexDirection: e ? "column" : "column-reverse",
41
+ gap: 0.5,
42
+ height: m,
43
+ justify: "center",
44
+ padding: [1.25, 1.25, 1.25, 1.25],
45
+ width: y,
46
+ children: [
47
+ /* @__PURE__ */ n(p, { alignItems: "center", display: "flex", gap: 0.5, children: [
48
+ e || r(o) ? void 0 : i,
49
+ /* @__PURE__ */ l(
50
+ T,
51
+ {
52
+ color: e ? t.palette.gray[800] : t.palette.gray[400],
53
+ size: "md",
54
+ textAlign: e ? "center" : "start",
55
+ children: s
56
+ }
57
+ ),
58
+ e || r(d) ? void 0 : i
59
+ ] }),
60
+ /* @__PURE__ */ n(p, { alignItems: "center", display: "flex", gap: 0.5, my: 0.5, children: [
61
+ e && !r(o) ? i : void 0,
62
+ /* @__PURE__ */ n("div", { style: { display: "flex", gap: "12px" }, children: [
63
+ r(a) ? void 0 : /* @__PURE__ */ l(C, { fontWeight: "bold", size: "md", children: a }),
64
+ c
65
+ ] }),
66
+ e && !r(d) ? i : void 0
67
+ ] })
68
+ ]
69
+ }
70
+ );
71
+ };
72
+ export {
73
+ W as IndicatorCard
74
+ };
@@ -1 +1,116 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("styled-components"),i=require("../button/index.js"),n=require("../container/index.js"),r=require("../icon-button/index.js"),l=require("../tabs/index.js");require("../typography/heading/index.js"),require("../typography/span/index.js");const o=require("../typography/text/index.js");exports.InfoSidebar=({actions:a,children:s,header:p,title:x,tabs:c,footer:d})=>{const y=t.useTheme();return e.jsxs(n.Container,{alignItems:"flex-start",bgColor:y.palette.white,borderLeft:`1px solid ${y.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[e.jsxs(n.Container,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${y.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[e.jsxs(n.Container,{display:"flex",flexDirection:"column",gap:.25,children:[e.jsx(o.Text,{color:y.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:x}),p]}),a&&e.jsx(n.Container,{display:"flex",gap:.25,children:a.map((({icon:t,onClick:i},n)=>e.jsx(r.IconButton,{icon:t??"paper-plane",iconColor:y.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:i,variant:"ghost"},`${n}-${t}`)))})]}),e.jsx(n.Container,{display:"flex",pt:.25,width:"100%",children:e.jsx(l.Tabs,{items:c})}),e.jsx(n.Container,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:s}),d&&e.jsx(n.Container,{alignSelf:"stretch",borderTop:`1px solid ${y.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:d.map((({icon:t,text:n,onClick:r},l)=>e.jsx(i.Button,{icon:t,onClick:r,variant:0===l?"primary":"tertiary",width:"100%",children:n},`${l}-${n}`)))})]})};
1
+ import { jsxs as p, jsx as e } from "react/jsx-runtime";
2
+ import { useTheme as x } from "styled-components";
3
+ import { Button as h } from "../button/index.js";
4
+ import { Container as t } from "../container/index.js";
5
+ import { IconButton as y } from "../icon-button/index.js";
6
+ import { Tabs as g } from "../tabs/index.js";
7
+ import "../typography/heading/index.js";
8
+ import "../typography/span/index.js";
9
+ import { Text as u } from "../typography/text/index.js";
10
+ const D = ({
11
+ actions: a,
12
+ children: m,
13
+ header: f,
14
+ title: c,
15
+ tabs: d,
16
+ footer: n
17
+ }) => {
18
+ const i = x();
19
+ return /* @__PURE__ */ p(
20
+ t,
21
+ {
22
+ alignItems: "flex-start",
23
+ bgColor: i.palette.white,
24
+ borderLeft: `1px solid ${i.palette.gray[300]}`,
25
+ display: "flex",
26
+ flexDirection: "column",
27
+ maxHeight: "750px",
28
+ width: "480px",
29
+ children: [
30
+ /* @__PURE__ */ p(
31
+ t,
32
+ {
33
+ alignItems: "flex-start",
34
+ alignSelf: "stretch",
35
+ borderBottom: `1px solid ${i.palette.gray[300]}`,
36
+ display: "flex",
37
+ gap: 0.25,
38
+ justify: "space-between",
39
+ px: 1.25,
40
+ py: 1,
41
+ children: [
42
+ /* @__PURE__ */ p(t, { display: "flex", flexDirection: "column", gap: 0.25, children: [
43
+ /* @__PURE__ */ e(
44
+ u,
45
+ {
46
+ color: i.palette.gray[800],
47
+ fontWeight: "bold",
48
+ lineSpacing: 1.75,
49
+ size: "xl",
50
+ children: c
51
+ }
52
+ ),
53
+ f
54
+ ] }),
55
+ a && /* @__PURE__ */ e(t, { display: "flex", gap: 0.25, children: a.map(
56
+ ({ icon: r, onClick: l }, o) => /* @__PURE__ */ e(
57
+ y,
58
+ {
59
+ icon: r ?? "paper-plane",
60
+ iconColor: i.palette.gray[400],
61
+ iconSize: "xxs",
62
+ iconType: "fa-light",
63
+ onClick: l,
64
+ variant: "ghost"
65
+ },
66
+ `${o}-${r}`
67
+ )
68
+ ) })
69
+ ]
70
+ }
71
+ ),
72
+ /* @__PURE__ */ e(t, { display: "flex", pt: 0.25, width: "100%", children: /* @__PURE__ */ e(g, { items: d }) }),
73
+ /* @__PURE__ */ e(
74
+ t,
75
+ {
76
+ alignSelf: "stretch",
77
+ display: "flex",
78
+ flexDirection: "column",
79
+ px: 1.25,
80
+ py: 1,
81
+ scroll: "y",
82
+ children: m
83
+ }
84
+ ),
85
+ n && /* @__PURE__ */ e(
86
+ t,
87
+ {
88
+ alignSelf: "stretch",
89
+ borderTop: `1px solid ${i.palette.gray[300]}`,
90
+ display: "flex",
91
+ gap: 0.5,
92
+ justify: "end",
93
+ px: 1.25,
94
+ py: 1,
95
+ children: n.map(
96
+ ({ icon: r, text: l, onClick: o }, s) => /* @__PURE__ */ e(
97
+ h,
98
+ {
99
+ icon: r,
100
+ onClick: o,
101
+ variant: s === 0 ? "primary" : "tertiary",
102
+ width: "100%",
103
+ children: l
104
+ },
105
+ `${s}-${l}`
106
+ )
107
+ )
108
+ }
109
+ )
110
+ ]
111
+ }
112
+ );
113
+ };
114
+ export {
115
+ D as InfoSidebar
116
+ };
@@ -1 +1,146 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),o=require("react-aria"),n=require("react-stately"),r=require("styled-components"),i=require("../../../../index-DpQYiwGu.js"),l=require("../../outline-container/index.js"),s=require("../../../../styles-Bl-CstrT.js"),a=require("../../utils/popover/index.js"),u=require("../../../icon/index.js"),c=require("../../../icon-button/index.js"),p=t.forwardRef((function({disabled:p=!1,error:d,helpLink:x,helpLinkText:m,helpText:f,label:h,name:b,items:j,onChange:v,required:C,tooltip:g,value:q,weight:y,...S},R){const B=r.useTheme(),[T,w]=t.useState(q??""),[P,k]=t.useState(q),[O,I]=t.useState(j),{contains:L}=o.useFilter({sensitivity:"base"}),z=t.useRef(null),N=t.useRef(null),F=t.useRef(null),M=t.useRef(null),V=t.useMemo((()=>j.map((t=>L(t.name,T)?e.jsx(n.Item,{children:t.name},t.value):null))),[L,T,j]),$=t.useCallback((e=>{w(e),k((t=>{const o=""===e?"":t;return null==v||v(o),o})),I(j.filter((t=>L(t.name,e))))}),[L,j,v]),D=t.useCallback((e=>{var t;e&&(w((null==(t=j.find((t=>t.value===e)))?void 0:t.name)??""),k(String(e)),null==v||v(e),I(j))}),[v,j]),E=n.useComboBoxState({allowsEmptyCollection:!0,inputValue:T,items:O,shouldCloseOnBlur:!0,selectedKey:P,onInputChange:$,onSelectionChange:D,children:V}),{buttonProps:K,inputProps:A,listBoxProps:G}=o.useComboBox({inputValue:T,items:O,buttonRef:z,id:b,inputRef:R,label:h,listBoxRef:N,name:b,popoverRef:M},E),{listBoxProps:H}=o.useListBox(G,E,N),{buttonProps:J}=o.useButton(K,z);return e.jsxs(l.OutlineContainer,{error:d,helpLink:x,helpLinkText:m,helpText:f,htmlFor:b,label:h,required:C,tooltip:g,weight:y,children:[e.jsxs(s.StyledTextInputContainer,{className:`${p?"disabled":""} ${d?"error":""}`,ref:F,children:[e.jsx("input",{...A,...S,"aria-invalid":d?"true":"false",ref:R}),d?e.jsx(u.Icon,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:B.palette.error[500],iconSize:"xs"}):void 0,e.jsx(c.IconButton,{...J,className:"action",icon:E.isOpen?"chevron-up":"chevron-down",iconColor:B.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:z,variant:"ghost"})]}),E.isOpen&&E.collection.size>0&&!p?e.jsx(a.Popover,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:M,state:E,triggerRef:F,children:e.jsx(i.StyledDropdown,{...H,ref:N,children:O.map((t=>e.jsx(i.Option,{item:t,state:E},t.value)))})}):null]})}));exports.ComboBox=p;
1
+ import { jsx as r, jsxs as O } from "react/jsx-runtime";
2
+ import { forwardRef as J, useState as x, useRef as u, useMemo as Q, useCallback as C } from "react";
3
+ import { useFilter as U, useComboBox as W, useListBox as X, useButton as Y } from "react-aria";
4
+ import { Item as Z, useComboBoxState as _ } from "react-stately";
5
+ import { useTheme as k } from "styled-components";
6
+ import { S as g, O as oo } from "../../../../index-CUQBAqt_.mjs";
7
+ import { OutlineContainer as to } from "../../outline-container/index.js";
8
+ import { S as eo } from "../../../../styles-BXFVwnWT.mjs";
9
+ import { Popover as no } from "../../utils/popover/index.js";
10
+ import { Icon as ro } from "../../../icon/index.js";
11
+ import { IconButton as so } from "../../../icon-button/index.js";
12
+ const Io = J(function({
13
+ disabled: b = !1,
14
+ error: i,
15
+ helpLink: z,
16
+ helpLinkText: F,
17
+ helpText: N,
18
+ label: B,
19
+ name: m,
20
+ items: t,
21
+ onChange: e,
22
+ required: T,
23
+ tooltip: V,
24
+ value: S,
25
+ weight: j,
26
+ ...K
27
+ }, I) {
28
+ const P = k(), [l, R] = x(S ?? ""), [L, v] = x(S), [a, h] = x(t), { contains: c } = U({ sensitivity: "base" }), f = u(null), d = u(null), w = u(null), y = u(null), $ = Q(() => t.map(
29
+ (o) => c(o.name, l) ? /* @__PURE__ */ r(Z, { children: o.name }, o.value) : null
30
+ ), [c, l, t]), D = C(
31
+ (o) => {
32
+ R(o), v((s) => {
33
+ const p = o === "" ? "" : s;
34
+ return e == null || e(p), p;
35
+ }), h(t.filter((s) => c(s.name, o)));
36
+ },
37
+ [c, t, e]
38
+ ), E = C(
39
+ (o) => {
40
+ var s;
41
+ o && (R(((s = t.find((p) => p.value === o)) == null ? void 0 : s.name) ?? ""), v(String(o)), e == null || e(o), h(t));
42
+ },
43
+ [e, t]
44
+ ), n = _({
45
+ allowsEmptyCollection: !0,
46
+ inputValue: l,
47
+ items: a,
48
+ shouldCloseOnBlur: !0,
49
+ selectedKey: L,
50
+ onInputChange: D,
51
+ onSelectionChange: E,
52
+ children: $
53
+ }), {
54
+ buttonProps: M,
55
+ inputProps: q,
56
+ listBoxProps: A
57
+ } = W(
58
+ {
59
+ inputValue: l,
60
+ items: a,
61
+ buttonRef: f,
62
+ id: m,
63
+ inputRef: I,
64
+ label: B,
65
+ listBoxRef: d,
66
+ name: m,
67
+ popoverRef: y
68
+ },
69
+ n
70
+ ), { listBoxProps: G } = X(A, n, d), { buttonProps: H } = Y(M, f);
71
+ return /* @__PURE__ */ O(
72
+ to,
73
+ {
74
+ error: i,
75
+ helpLink: z,
76
+ helpLinkText: F,
77
+ helpText: N,
78
+ htmlFor: m,
79
+ label: B,
80
+ required: T,
81
+ tooltip: V,
82
+ weight: j,
83
+ children: [
84
+ /* @__PURE__ */ O(
85
+ eo,
86
+ {
87
+ className: `${b ? "disabled" : ""} ${i ? "error" : ""}`,
88
+ ref: w,
89
+ children: [
90
+ /* @__PURE__ */ r(
91
+ "input",
92
+ {
93
+ ...q,
94
+ ...K,
95
+ "aria-invalid": i ? "true" : "false",
96
+ ref: I
97
+ }
98
+ ),
99
+ i ? /* @__PURE__ */ r(
100
+ ro,
101
+ {
102
+ icon: "exclamation-circle",
103
+ iconClass: "error-icon",
104
+ iconColor: P.palette.error[500],
105
+ iconSize: "xs"
106
+ }
107
+ ) : void 0,
108
+ /* @__PURE__ */ r(
109
+ so,
110
+ {
111
+ ...H,
112
+ className: "action",
113
+ icon: n.isOpen ? "chevron-up" : "chevron-down",
114
+ iconColor: P.palette.gray[400],
115
+ iconSize: "xxs",
116
+ iconType: "fa-light",
117
+ px: 0.125,
118
+ py: 0.125,
119
+ ref: f,
120
+ variant: "ghost"
121
+ }
122
+ )
123
+ ]
124
+ }
125
+ ),
126
+ n.isOpen && n.collection.size > 0 && !b ? /* @__PURE__ */ r(
127
+ no,
128
+ {
129
+ className: "dropdown",
130
+ offset: 4,
131
+ placement: "bottom start",
132
+ popoverRef: y,
133
+ state: n,
134
+ triggerRef: w,
135
+ children: /* @__PURE__ */ r(g, { ...G, ref: d, children: a.map(
136
+ (o) => /* @__PURE__ */ r(oo, { item: o, state: n }, o.value)
137
+ ) })
138
+ }
139
+ ) : null
140
+ ]
141
+ }
142
+ );
143
+ });
144
+ export {
145
+ Io as ComboBox
146
+ };
@@ -1 +1,8 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("react/jsx-runtime"),require("react"),require("react-aria");const e=require("../../../../../index-DpQYiwGu.js");require("../../../../icon/index.js"),exports.Option=e.Option;
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "react-aria";
4
+ import { O } from "../../../../../index-CUQBAqt_.mjs";
5
+ import "../../../../icon/index.js";
6
+ export {
7
+ O as Option
8
+ };
@@ -1 +1,27 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@internationalized/date"),t=require("lodash"),a=require("react"),r=require("react-aria"),l=require("../../../../../../styles-DYoftbd3.js"),s=require("../../../../../icon/index.js");exports.CalendarCell=({state:n,date:d})=>{const o=a.useRef(null),c=i.isToday(d,i.getLocalTimeZone()),{cellProps:g,buttonProps:h,isSelected:u,isDisabled:x,formattedDate:j}=r.useCalendarCell({date:d},n,o),m="highlightedRange"in n&&!t.isNull(n.highlightedRange)?i.isSameDay(d,n.highlightedRange.start):u,y="highlightedRange"in n&&!t.isNull(n.highlightedRange)?i.isSameDay(d,n.highlightedRange.end):u,q=!u||x||m||y?"":"range";return e.jsx(l.DayItemTd,{id:q,...g,children:e.jsxs("div",{...h,className:`cell ${m||y?"selected":""}\n ${x?"disabled":""} ${c?"today":""}\n ${n.isFocused||c?"":"focused"} ${q}`,ref:o,children:[j,c?e.jsx(l.DotIconContainer,{children:e.jsx(s.Icon,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})};
1
+ import { jsx as n, jsxs as p } from "react/jsx-runtime";
2
+ import { isToday as u, getLocalTimeZone as R, isSameDay as a } from "@internationalized/date";
3
+ import { isNull as g } from "lodash";
4
+ import { useRef as S } from "react";
5
+ import { useCalendarCell as b } from "react-aria";
6
+ import { a as x, b as y } from "../../../../../../styles-BlHspTrz.mjs";
7
+ import { Icon as C } from "../../../../../icon/index.js";
8
+ const k = ({ state: e, date: i }) => {
9
+ const r = S(null), o = u(i, R()), { cellProps: h, buttonProps: m, isSelected: l, isDisabled: c, formattedDate: f } = b({ date: i }, e, r), s = "highlightedRange" in e && !g(e.highlightedRange) ? a(i, e.highlightedRange.start) : l, d = "highlightedRange" in e && !g(e.highlightedRange) ? a(i, e.highlightedRange.end) : l, t = l && !c && !(s || d) ? "range" : "";
10
+ return /* @__PURE__ */ n(x, { id: t, ...h, children: /* @__PURE__ */ p(
11
+ "div",
12
+ {
13
+ ...m,
14
+ className: `cell ${s || d ? "selected" : ""}
15
+ ${c ? "disabled" : ""} ${o ? "today" : ""}
16
+ ${!e.isFocused && !o ? "focused" : ""} ${t}`,
17
+ ref: r,
18
+ children: [
19
+ f,
20
+ o ? /* @__PURE__ */ n(y, { children: /* @__PURE__ */ n(C, { clickable: !1, icon: "circle", iconSize: "xxs" }) }) : void 0
21
+ ]
22
+ }
23
+ ) });
24
+ };
25
+ export {
26
+ k as CalendarCell
27
+ };
@@ -1 +1,26 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@internationalized/date"),t=require("react-aria"),a=require("../cell/index.js"),s=require("../../../../../../styles-DYoftbd3.js");exports.CalendarGrid=({state:n,...i})=>{const{locale:l}=t.useLocale(),{weekDays:d}=t.useCalendarGrid(i,n),c=r.getWeeksInMonth(n.visibleRange.start,l);return e.jsxs("table",{children:[e.jsx("thead",{children:e.jsx(s.WeekDaysTr,{children:d.map(((r,t)=>{const a=`key_${t}`;return e.jsx(s.DayHeaderTh,{children:r},a)}))})}),e.jsx("tbody",{children:[...new Array(c).keys()].map((r=>e.jsx(s.WeekDaysTr,{children:n.getDatesInWeek(r).map(((r,t)=>{const s=`key_${t}`;return r?e.jsx(a.CalendarCell,{date:r,state:n},s):e.jsx("td",{},s)}))},r)))})]})};
1
+ import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
+ import { getWeeksInMonth as h } from "@internationalized/date";
3
+ import { useLocale as k, useCalendarGrid as p } from "react-aria";
4
+ import { CalendarCell as y } from "../cell/index.js";
5
+ import { W as s, D as f } from "../../../../../../styles-BlHspTrz.mjs";
6
+ const g = ({
7
+ state: r,
8
+ ...l
9
+ }) => {
10
+ const { locale: d } = k(), { weekDays: i } = p(l, r), c = h(r.visibleRange.start, d);
11
+ return /* @__PURE__ */ m("table", { children: [
12
+ /* @__PURE__ */ e("thead", { children: /* @__PURE__ */ e(s, { children: i.map((n, o) => {
13
+ const a = `key_${o}`;
14
+ return /* @__PURE__ */ e(f, { children: n }, a);
15
+ }) }) }),
16
+ /* @__PURE__ */ e("tbody", { children: [...new Array(c).keys()].map(
17
+ (n) => /* @__PURE__ */ e(s, { children: r.getDatesInWeek(n).map((o, a) => {
18
+ const t = `key_${a}`;
19
+ return o ? /* @__PURE__ */ e(y, { date: o, state: r }, t) : /* @__PURE__ */ e("td", {}, t);
20
+ }) }, n)
21
+ ) })
22
+ ] });
23
+ };
24
+ export {
25
+ g as CalendarGrid
26
+ };
@@ -1 +1,38 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),s=require("../../../../../../styles-DYoftbd3.js"),r=require("../../../../../icon/index.js"),o=require("../../../../utils/calendar-button/index.js");exports.Header=({state:a,prevButtonProps:n,nextButtonProps:i,title:c})=>{const l=a.focusedDate,u=t.useCallback((()=>{a.setFocusedDate(l.add({years:1}))}),[l,a]),x=t.useCallback((()=>{a.setFocusedDate(l.subtract({years:1}))}),[l,a]);return e.jsxs("div",{className:"header flex items-start",children:[e.jsx(o.Button,{icon:"chevron-left",props:n}),e.jsxs(s.TitleContainer,{children:[c,e.jsxs(s.YearSwitch,{children:[e.jsx(s.CaretButton,{"aria-label":"top",onClick:u,children:e.jsx(r.Icon,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),e.jsx(s.CaretButton,{"aria-label":"bottom",onClick:x,children:e.jsx(r.Icon,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),e.jsx(o.Button,{icon:"chevron-right",props:i})]})};
1
+ import { jsxs as a, jsx as o } from "react/jsx-runtime";
2
+ import { useCallback as c } from "react";
3
+ import { T as m, Y as u, C as i } from "../../../../../../styles-BlHspTrz.mjs";
4
+ import { Icon as s } from "../../../../../icon/index.js";
5
+ import { Button as t } from "../../../../utils/calendar-button/index.js";
6
+ const v = ({
7
+ state: r,
8
+ prevButtonProps: n,
9
+ nextButtonProps: l,
10
+ title: d
11
+ }) => {
12
+ const e = r.focusedDate, h = c(() => {
13
+ r.setFocusedDate(e.add({ years: 1 }));
14
+ }, [e, r]), p = c(() => {
15
+ r.setFocusedDate(e.subtract({ years: 1 }));
16
+ }, [e, r]);
17
+ return /* @__PURE__ */ a("div", { className: "header flex items-start", children: [
18
+ /* @__PURE__ */ o(t, { icon: "chevron-left", props: n }),
19
+ /* @__PURE__ */ a(m, { children: [
20
+ d,
21
+ /* @__PURE__ */ a(u, { children: [
22
+ /* @__PURE__ */ o(i, { "aria-label": "top", onClick: h, children: /* @__PURE__ */ o(s, { icon: "caret-up", iconClass: "fa-sharp", iconSize: "xxss" }) }),
23
+ /* @__PURE__ */ o(i, { "aria-label": "bottom", onClick: p, children: /* @__PURE__ */ o(
24
+ s,
25
+ {
26
+ icon: "caret-down",
27
+ iconClass: "fa-sharp",
28
+ iconSize: "xxss"
29
+ }
30
+ ) })
31
+ ] })
32
+ ] }),
33
+ /* @__PURE__ */ o(t, { icon: "chevron-right", props: l })
34
+ ] });
35
+ };
36
+ export {
37
+ v as Header
38
+ };