@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,3 +1,184 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),e=require("lodash"),o=require("styled-components"),t=require("../../utils-C2whpEd3.js");require("../../styles-C2CoGJl7.js");const r=require("../icon/index.js"),a=require("../icon-button/index.js"),i=require("../link/index.js");require("../typography/heading/index.js");const l=require("../typography/span/index.js");require("../typography/text/index.js");const{getVariant:c}=t.variantBuilder((n=>({default:`\n background-color: ${n.palette.gray[200]};\n color: ${n.palette.gray[800]};\n `,error:`\n &.high {\n background-color: ${n.palette.error[700]};\n color: ${n.palette.white};\n }\n &.low {\n background-color: ${n.palette.error[50]};\n color: ${n.palette.error[700]};\n }\n &.medium {\n background-color: ${n.palette.error[500]};\n color: ${n.palette.error[50]};\n }\n `,inactive:`\n background-color: ${n.palette.gray[200]};\n color: ${n.palette.gray[600]};\n `,info:`\n &.high {\n background-color: ${n.palette.info[700]};\n color: ${n.palette.white};\n }\n &.low {\n background-color: ${n.palette.info[50]};\n color: ${n.palette.info[700]};\n }\n &.medium {\n background-color: ${n.palette.info[500]};\n color: ${n.palette.info[50]};\n }\n `,reachable:`\n background-color: ${n.palette.gray[50]};\n color: ${n.palette.gray[800]};\n `,remediation:`\n background-color: inherit;\n border: 1px solid ${n.palette.gray[300]};\n color: ${n.palette.gray[400]};\n `,role:`\n background-color: ${n.palette.gray[800]};\n color: ${n.palette.white};\n `,success:`\n &.high {\n background-color: ${n.palette.success[700]};\n color: ${n.palette.white};\n }\n &.low {\n background-color: ${n.palette.success[50]};\n color: ${n.palette.success[700]};\n }\n &.medium {\n background-color: ${n.palette.success[500]};\n color: ${n.palette.success[50]};\n }\n `,technique:`\n --tag-padding-y: ${n.spacing[.25]};\n --tag-padding-x: ${n.spacing[.75]};\n\n background-color: inherit;\n border: 1px solid ${n.palette.success[800]};\n color: ${n.palette.success[800]};\n `,warning:`\n &.high {\n background-color: ${n.palette.warning[600]};\n color: ${n.palette.white};\n }\n &.low {\n background-color: ${n.palette.warning[50]};\n color: ${n.palette.warning[700]};\n }\n &.medium {\n background-color: ${n.palette.warning[400]};\n color: ${n.palette.warning[700]};\n }\n `}))),s=o.styled.span`
2
- ${({theme:n,$fontSize:e=n.typography.text.xs,$variant:o})=>`\n align-items: center;\n border-radius: ${n.spacing["technique"===o?1:.25]};\n display: inline-flex;\n gap: ${n.spacing[.25]};\n font-family: ${n.typography.type.primary};\n font-size: ${e};\n font-style: normal;\n font-weight: ${n.typography.weight.regular};\n justify-content: center;\n line-height: 18px;\n padding: var(--tag-padding-y) var(--tag-padding-x);\n white-space: nowrap;\n width: max-content;\n\n ~ a {\n font-size: ${n.typography.text.xs};\n display: flex;\n }\n\n ${c(n,o)}\n `}
3
- `;exports.Tag=({disabled:o,icon:t,iconColor:c="inherit",iconType:p="fa-light",id:g="close-tag",filterValues:d="",fontSize:u,href:$,linkLabel:h,onClose:y,priority:x="default",tagTitle:b="",tagLabel:f,variant:k="default"})=>{const m=f.length>25&&e.isEmpty(b+d),j=`${f.slice(0,25)}...`;return n.jsxs(l.Span,{className:"gap-0.5",display:void 0===$?"initial":"flex",size:"sm",children:[n.jsxs(s,{$fontSize:u,$variant:k,className:x,children:[t&&n.jsx(r.Icon,{icon:t,iconColor:c,iconSize:"xxs",iconType:p}),n.jsxs("span",{children:[n.jsx("strong",{children:b}),n.jsx("span",{children:m?j:f}),n.jsx("strong",{children:d})]}),y?n.jsx(a.IconButton,{disabled:o,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:g,onClick:y,px:.125,py:.125,variant:"ghost"}):void 0]}),void 0===$?void 0:n.jsx(i.Link,{href:$,children:h})]})};
1
+ import { jsxs as n, jsx as r } from "react/jsx-runtime";
2
+ import { isEmpty as k } from "lodash";
3
+ import { styled as b } from "styled-components";
4
+ import { v as w } from "../../utils-V0EumEPM.mjs";
5
+ import "../../styles-CplEd2kw.mjs";
6
+ import { Icon as v } from "../icon/index.js";
7
+ import { IconButton as z } from "../icon-button/index.js";
8
+ import { Link as S } from "../link/index.js";
9
+ import "../typography/heading/index.js";
10
+ import { Span as j } from "../typography/span/index.js";
11
+ import "../typography/text/index.js";
12
+ const { getVariant: T } = w(
13
+ (o) => ({
14
+ default: `
15
+ background-color: ${o.palette.gray[200]};
16
+ color: ${o.palette.gray[800]};
17
+ `,
18
+ error: `
19
+ &.high {
20
+ background-color: ${o.palette.error[700]};
21
+ color: ${o.palette.white};
22
+ }
23
+ &.low {
24
+ background-color: ${o.palette.error[50]};
25
+ color: ${o.palette.error[700]};
26
+ }
27
+ &.medium {
28
+ background-color: ${o.palette.error[500]};
29
+ color: ${o.palette.error[50]};
30
+ }
31
+ `,
32
+ inactive: `
33
+ background-color: ${o.palette.gray[200]};
34
+ color: ${o.palette.gray[600]};
35
+ `,
36
+ info: `
37
+ &.high {
38
+ background-color: ${o.palette.info[700]};
39
+ color: ${o.palette.white};
40
+ }
41
+ &.low {
42
+ background-color: ${o.palette.info[50]};
43
+ color: ${o.palette.info[700]};
44
+ }
45
+ &.medium {
46
+ background-color: ${o.palette.info[500]};
47
+ color: ${o.palette.info[50]};
48
+ }
49
+ `,
50
+ reachable: `
51
+ background-color: ${o.palette.gray[50]};
52
+ color: ${o.palette.gray[800]};
53
+ `,
54
+ remediation: `
55
+ background-color: inherit;
56
+ border: 1px solid ${o.palette.gray[300]};
57
+ color: ${o.palette.gray[400]};
58
+ `,
59
+ role: `
60
+ background-color: ${o.palette.gray[800]};
61
+ color: ${o.palette.white};
62
+ `,
63
+ success: `
64
+ &.high {
65
+ background-color: ${o.palette.success[700]};
66
+ color: ${o.palette.white};
67
+ }
68
+ &.low {
69
+ background-color: ${o.palette.success[50]};
70
+ color: ${o.palette.success[700]};
71
+ }
72
+ &.medium {
73
+ background-color: ${o.palette.success[500]};
74
+ color: ${o.palette.success[50]};
75
+ }
76
+ `,
77
+ technique: `
78
+ --tag-padding-y: ${o.spacing[0.25]};
79
+ --tag-padding-x: ${o.spacing[0.75]};
80
+
81
+ background-color: inherit;
82
+ border: 1px solid ${o.palette.success[800]};
83
+ color: ${o.palette.success[800]};
84
+ `,
85
+ warning: `
86
+ &.high {
87
+ background-color: ${o.palette.warning[600]};
88
+ color: ${o.palette.white};
89
+ }
90
+ &.low {
91
+ background-color: ${o.palette.warning[50]};
92
+ color: ${o.palette.warning[700]};
93
+ }
94
+ &.medium {
95
+ background-color: ${o.palette.warning[400]};
96
+ color: ${o.palette.warning[700]};
97
+ }
98
+ `
99
+ })
100
+ ), q = b.span`
101
+ ${({ theme: o, $fontSize: a = o.typography.text.xs, $variant: l }) => `
102
+ align-items: center;
103
+ border-radius: ${o.spacing[l === "technique" ? 1 : 0.25]};
104
+ display: inline-flex;
105
+ gap: ${o.spacing[0.25]};
106
+ font-family: ${o.typography.type.primary};
107
+ font-size: ${a};
108
+ font-style: normal;
109
+ font-weight: ${o.typography.weight.regular};
110
+ justify-content: center;
111
+ line-height: 18px;
112
+ padding: var(--tag-padding-y) var(--tag-padding-x);
113
+ white-space: nowrap;
114
+ width: max-content;
115
+
116
+ ~ a {
117
+ font-size: ${o.typography.text.xs};
118
+ display: flex;
119
+ }
120
+
121
+ ${T(o, l)}
122
+ `}
123
+ `, K = ({
124
+ disabled: o,
125
+ icon: a,
126
+ iconColor: l = "inherit",
127
+ iconType: s = "fa-light",
128
+ id: g = "close-tag",
129
+ filterValues: c = "",
130
+ fontSize: d,
131
+ href: t,
132
+ linkLabel: $,
133
+ onClose: p,
134
+ priority: u = "default",
135
+ tagTitle: e = "",
136
+ tagLabel: i,
137
+ variant: y = "default"
138
+ }) => {
139
+ const f = i.length > 25 && k(e + c), x = `${i.slice(0, 25)}...`;
140
+ return /* @__PURE__ */ n(
141
+ j,
142
+ {
143
+ className: "gap-0.5",
144
+ display: t === void 0 ? "initial" : "flex",
145
+ size: "sm",
146
+ children: [
147
+ /* @__PURE__ */ n(q, { $fontSize: d, $variant: y, className: u, children: [
148
+ a && /* @__PURE__ */ r(
149
+ v,
150
+ {
151
+ icon: a,
152
+ iconColor: l,
153
+ iconSize: "xxs",
154
+ iconType: s
155
+ }
156
+ ),
157
+ /* @__PURE__ */ n("span", { children: [
158
+ /* @__PURE__ */ r("strong", { children: e }),
159
+ /* @__PURE__ */ r("span", { children: f ? x : i }),
160
+ /* @__PURE__ */ r("strong", { children: c })
161
+ ] }),
162
+ p ? /* @__PURE__ */ r(
163
+ z,
164
+ {
165
+ disabled: o,
166
+ icon: "xmark",
167
+ iconSize: "xxs",
168
+ iconType: "fa-light",
169
+ id: g,
170
+ onClick: p,
171
+ px: 0.125,
172
+ py: 0.125,
173
+ variant: "ghost"
174
+ }
175
+ ) : void 0
176
+ ] }),
177
+ t === void 0 ? void 0 : /* @__PURE__ */ r(S, { href: t, children: $ })
178
+ ]
179
+ }
180
+ );
181
+ };
182
+ export {
183
+ K as Tag
184
+ };
@@ -1 +1,9 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("react/jsx-runtime"),require("styled-components");const e=require("../../../index-CA_9DXWd.js");require("../../typography/heading/index.js"),require("../../typography/span/index.js"),require("../../typography/text/index.js"),exports.TimeLineCard=e.TimeLineCard;
1
+ import "react/jsx-runtime";
2
+ import "styled-components";
3
+ import { a as e } from "../../../index-C6LbClYh.mjs";
4
+ import "../../typography/heading/index.js";
5
+ import "../../typography/span/index.js";
6
+ import "../../typography/text/index.js";
7
+ export {
8
+ e as TimeLineCard
9
+ };
@@ -1 +1,17 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("../../index-CA_9DXWd.js");exports.TimeLineCard=i.TimeLineCard,exports.TimeLine=({items:t})=>e.jsx(i.TimelineContainer,{children:t.map(((t,r)=>e.jsx(i.TimeLineCard,{date:t.date,description:t.description,title:t.title},`${t.title}-${r}`)))});
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { T as n, a as o } from "../../index-C6LbClYh.mjs";
3
+ const p = ({ items: t }) => /* @__PURE__ */ e(n, { children: t.map(
4
+ (i, r) => /* @__PURE__ */ e(
5
+ o,
6
+ {
7
+ date: i.date,
8
+ description: i.description,
9
+ title: i.title
10
+ },
11
+ `${i.title}-${r}`
12
+ )
13
+ ) });
14
+ export {
15
+ p as TimeLine,
16
+ o as TimeLineCard
17
+ };
@@ -1,8 +1,31 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),i=require("styled-components"),n=require("../container/index.js"),r=i.styled.div`
2
- ${({theme:e})=>`\n align-items: center;\n background-color: ${e.palette.gray[200]};\n border-radius: 34px;\n cursor: pointer;\n display: flex;\n height: 20px;\n position: relative;\n transition: 0.2s;\n width: 36px;\n `}
3
- `,o=i.styled.div`
4
- ${({theme:e})=>`\n background-color: ${e.palette.white};\n border-radius: 50%;\n height: ${e.spacing[1]};\n left: 2px;\n position: absolute;\n transition: 0.2s;\n width: ${e.spacing[1]};\n z-index: 1;\n `}
5
- `,a=i.styled.label`
1
+ import { jsxs as c, jsx as r } from "react/jsx-runtime";
2
+ import { forwardRef as f, useCallback as x } from "react";
3
+ import { styled as a } from "styled-components";
4
+ import { Container as k } from "../container/index.js";
5
+ const e = a.div`
6
+ ${({ theme: o }) => `
7
+ align-items: center;
8
+ background-color: ${o.palette.gray[200]};
9
+ border-radius: 34px;
10
+ cursor: pointer;
11
+ display: flex;
12
+ height: 20px;
13
+ position: relative;
14
+ transition: 0.2s;
15
+ width: 36px;
16
+ `}
17
+ `, y = a.div`
18
+ ${({ theme: o }) => `
19
+ background-color: ${o.palette.white};
20
+ border-radius: 50%;
21
+ height: ${o.spacing[1]};
22
+ left: 2px;
23
+ position: absolute;
24
+ transition: 0.2s;
25
+ width: ${o.spacing[1]};
26
+ z-index: 1;
27
+ `}
28
+ `, m = a.label`
6
29
  display: inline-block;
7
30
 
8
31
  input {
@@ -12,21 +35,69 @@
12
35
  width: 0;
13
36
  }
14
37
 
15
- input:checked + ${r} {
16
- background-color: ${({theme:e})=>e.palette.primary[500]};
38
+ input:checked + ${e} {
39
+ background-color: ${({ theme: o }) => o.palette.primary[500]};
17
40
  }
18
41
 
19
- input:checked + ${r} > div {
42
+ input:checked + ${e} > div {
20
43
  transform: translateX(100%);
21
44
  }
22
45
 
23
- input:disabled + ${r} {
46
+ input:disabled + ${e} {
24
47
  cursor: not-allowed;
25
- background-color: ${({theme:e})=>e.palette.gray[100]};
48
+ background-color: ${({ theme: o }) => o.palette.gray[100]};
26
49
  }
27
50
 
28
- input:disabled + ${r} > div {
29
- background-color: ${({theme:e})=>e.palette.gray[200]};
30
- border: 1px solid ${({theme:e})=>e.palette.gray[200]};
51
+ input:disabled + ${e} > div {
52
+ background-color: ${({ theme: o }) => o.palette.gray[200]};
53
+ border: 1px solid ${({ theme: o }) => o.palette.gray[200]};
31
54
  }
32
- `,l=t.forwardRef((function({defaultChecked:i,disabled:l=!1,justify:s,name:d,leftDescription:c,rightDescription:p,...u},g){const h=!0===i?"on":"off",b="object"==typeof c&&c.on&&c.off?c[h]:c,f=t.useCallback((e=>{e.stopPropagation()}),[]);return e.jsxs(n.Container,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:s,children:[b,e.jsxs(a,{onClick:f,role:"switch",children:[e.jsx("input",{...u,"aria-disabled":l,"aria-label":d,checked:!0===i,disabled:l,name:d,ref:g,type:"checkbox"}),e.jsx(r,{"aria-label":"Toggle Switch",id:`${d}Toggle`,children:e.jsx(o,{})})]}),p]})}));exports.Toggle=l;
55
+ `, j = f(function({
56
+ defaultChecked: l,
57
+ disabled: n = !1,
58
+ justify: s,
59
+ name: i,
60
+ leftDescription: t,
61
+ rightDescription: d,
62
+ ...p
63
+ }, g) {
64
+ const u = l === !0 ? "on" : "off", b = typeof t == "object" && t.on && t.off ? t[u] : t, h = x(
65
+ ($) => {
66
+ $.stopPropagation();
67
+ },
68
+ []
69
+ );
70
+ return /* @__PURE__ */ c(
71
+ k,
72
+ {
73
+ alignItems: "center",
74
+ display: "flex",
75
+ fontSize: "14px",
76
+ gap: 0.75,
77
+ justify: s,
78
+ children: [
79
+ b,
80
+ /* @__PURE__ */ c(m, { onClick: h, role: "switch", children: [
81
+ /* @__PURE__ */ r(
82
+ "input",
83
+ {
84
+ ...p,
85
+ "aria-disabled": n,
86
+ "aria-label": i,
87
+ checked: l === !0,
88
+ disabled: n,
89
+ name: i,
90
+ ref: g,
91
+ type: "checkbox"
92
+ }
93
+ ),
94
+ /* @__PURE__ */ r(e, { "aria-label": "Toggle Switch", id: `${i}Toggle`, children: /* @__PURE__ */ r(y, {}) })
95
+ ] }),
96
+ d
97
+ ]
98
+ }
99
+ );
100
+ });
101
+ export {
102
+ j as Toggle
103
+ };
@@ -1,5 +1,103 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),e=require("react"),t=require("styled-components");require("../typography/heading/index.js"),require("../typography/span/index.js");const r=require("../typography/text/index.js"),a=t.styled.div`
2
- ${({theme:n})=>`\n align-items: center;\n display: flex;\n position: relative;\n width: 352px;\n\n > button:first-child {\n border-radius: ${n.spacing[2]} 0 0 ${n.spacing[2]};\n }\n > button:last-child {\n --angle-grad: -45deg;\n border-radius: 0 ${n.spacing[2]} ${n.spacing[2]} 0;\n }\n\n &::before {\n background: ${n.palette.gradients["01"]} border-box;\n border-radius: ${n.spacing[2]};\n content: "";\n position: absolute;\n inset: 0;\n border: 2px solid transparent;\n mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);\n mask-composite: exclude;\n }\n\n @media screen and (max-width: ${n.breakpoints.mobile}) {\n width: 320px;\n }\n `}
3
- `,i=t.styled.button`
4
- ${({theme:n})=>`\n align-items: center;\n background: linear-gradient(\n var(--angle-grad),\n rgba(243, 38, 55, var(--opacity-grad)),\n rgba(184, 7, 93, var(--opacity-grad))\n );\n color: ${n.palette.primary[500]};\n cursor: pointer;\n display: flex;\n flex: 1 0 0;\n justify-content: center;\n gap: ${n.spacing[.625]};\n height: ${n.spacing[4]};\n padding: ${n.spacing[1.25]};\n position: relative;\n transition: color, --opacity-grad 0.5s ease-in-out;\n\n &.selected {\n --opacity-grad: 1;\n background: linear-gradient(\n var(--angle-grad),\n rgba(243, 38, 55, var(--opacity-grad)),\n rgba(184, 7, 93, var(--opacity-grad))\n );\n color: ${n.palette.white};\n }\n `}
5
- `;exports.ToggleButton=({defaultSelection:t,options:o,handleClick:s})=>{const[d,l]=e.useState(t??o[0]),c=e.useCallback((n=>()=>{l(n),s(n)}),[s]);return n.jsx(a,{children:o.map(((e,t)=>n.jsx(i,{className:`${e.includes(d)&&"selected"}`,onClick:c(e),children:n.jsx(r.Text,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:e})},`${e}-${t}`)))})};
1
+ import { jsx as i } from "react/jsx-runtime";
2
+ import { useState as l, useCallback as g } from "react";
3
+ import { styled as n } from "styled-components";
4
+ import "../typography/heading/index.js";
5
+ import "../typography/span/index.js";
6
+ import { Text as p } from "../typography/text/index.js";
7
+ const b = n.div`
8
+ ${({ theme: r }) => `
9
+ align-items: center;
10
+ display: flex;
11
+ position: relative;
12
+ width: 352px;
13
+
14
+ > button:first-child {
15
+ border-radius: ${r.spacing[2]} 0 0 ${r.spacing[2]};
16
+ }
17
+ > button:last-child {
18
+ --angle-grad: -45deg;
19
+ border-radius: 0 ${r.spacing[2]} ${r.spacing[2]} 0;
20
+ }
21
+
22
+ &::before {
23
+ background: ${r.palette.gradients["01"]} border-box;
24
+ border-radius: ${r.spacing[2]};
25
+ content: "";
26
+ position: absolute;
27
+ inset: 0;
28
+ border: 2px solid transparent;
29
+ mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
30
+ mask-composite: exclude;
31
+ }
32
+
33
+ @media screen and (max-width: ${r.breakpoints.mobile}) {
34
+ width: 320px;
35
+ }
36
+ `}
37
+ `, u = n.button`
38
+ ${({ theme: r }) => `
39
+ align-items: center;
40
+ background: linear-gradient(
41
+ var(--angle-grad),
42
+ rgba(243, 38, 55, var(--opacity-grad)),
43
+ rgba(184, 7, 93, var(--opacity-grad))
44
+ );
45
+ color: ${r.palette.primary[500]};
46
+ cursor: pointer;
47
+ display: flex;
48
+ flex: 1 0 0;
49
+ justify-content: center;
50
+ gap: ${r.spacing[0.625]};
51
+ height: ${r.spacing[4]};
52
+ padding: ${r.spacing[1.25]};
53
+ position: relative;
54
+ transition: color, --opacity-grad 0.5s ease-in-out;
55
+
56
+ &.selected {
57
+ --opacity-grad: 1;
58
+ background: linear-gradient(
59
+ var(--angle-grad),
60
+ rgba(243, 38, 55, var(--opacity-grad)),
61
+ rgba(184, 7, 93, var(--opacity-grad))
62
+ );
63
+ color: ${r.palette.white};
64
+ }
65
+ `}
66
+ `, k = ({
67
+ defaultSelection: r,
68
+ options: e,
69
+ handleClick: t
70
+ }) => {
71
+ const [o, d] = l(
72
+ r ?? e[0]
73
+ ), s = g(
74
+ (a) => () => {
75
+ d(a), t(a);
76
+ },
77
+ [t]
78
+ );
79
+ return /* @__PURE__ */ i(b, { children: e.map(
80
+ (a, c) => /* @__PURE__ */ i(
81
+ u,
82
+ {
83
+ className: `${a.includes(o) && "selected"}`,
84
+ onClick: s(a),
85
+ children: /* @__PURE__ */ i(
86
+ p,
87
+ {
88
+ color: "inherit",
89
+ fontWeight: "bold",
90
+ size: "md",
91
+ sizeSm: "sm",
92
+ textAlign: "center",
93
+ children: a
94
+ }
95
+ )
96
+ },
97
+ `${a}-${c}`
98
+ )
99
+ ) });
100
+ };
101
+ export {
102
+ k as ToggleButton
103
+ };
@@ -1 +1,13 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("react/jsx-runtime");const e=require("../../index-CmylnDrF.js");require("lodash"),require("react"),require("react-dom"),require("styled-components"),require("../icon/index.js"),require("../typography/heading/index.js"),require("../typography/span/index.js"),require("../typography/text/index.js"),exports.Tooltip=e.Tooltip;
1
+ import "react/jsx-runtime";
2
+ import { T as s } from "../../index-DwznImvK.mjs";
3
+ import "lodash";
4
+ import "react";
5
+ import "react-dom";
6
+ import "styled-components";
7
+ import "../icon/index.js";
8
+ import "../typography/heading/index.js";
9
+ import "../typography/span/index.js";
10
+ import "../typography/text/index.js";
11
+ export {
12
+ s as Tooltip
13
+ };