@fluidattacks/design 3.1.12 → 3.1.14

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 (159) hide show
  1. package/dist/assets/design.css +1 -0
  2. package/dist/components/@core/index.js +15 -16
  3. package/dist/components/accordion/accordion-content/index.js +3 -7
  4. package/dist/components/accordion/index.js +5 -19
  5. package/dist/components/alert/index.js +4 -111
  6. package/dist/components/button/index.js +4 -16
  7. package/dist/components/card/card-header/index.js +4 -12
  8. package/dist/components/card/card-with-image/index.js +5 -16
  9. package/dist/components/card/card-with-input/index.js +5 -54
  10. package/dist/components/card/card-with-selector/index.js +4 -14
  11. package/dist/components/card/card-with-switch/index.js +4 -10
  12. package/dist/components/card/index.js +6 -10
  13. package/dist/components/carousel/index.js +4 -47
  14. package/dist/components/checkbox/index.js +4 -82
  15. package/dist/components/cloud-image/index.js +2 -2
  16. package/dist/components/code-snippet/index.js +6 -25
  17. package/dist/components/code-snippet/location-code/index.js +7 -123
  18. package/dist/components/colors/index.js +7 -7
  19. package/dist/components/confirm-dialog/index.js +4 -20
  20. package/dist/components/container/index.js +4 -25
  21. package/dist/components/content-card/category-tag/index.js +4 -11
  22. package/dist/components/content-card/event-date/index.js +5 -16
  23. package/dist/components/content-card/index.js +4 -61
  24. package/dist/components/content-card-carousel/index.js +4 -13
  25. package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
  26. package/dist/components/divider/index.js +4 -8
  27. package/dist/components/empty-state/empty-button/index.js +3 -4
  28. package/dist/components/empty-state/index.js +3 -46
  29. package/dist/components/file-preview/index.js +3 -26
  30. package/dist/components/form/index.js +4 -24
  31. package/dist/components/grid-container/index.js +4 -26
  32. package/dist/components/group-selector/index.js +6 -24
  33. package/dist/components/group-selector/option-container/index.js +3 -7
  34. package/dist/components/icon/index.js +4 -46
  35. package/dist/components/icon-button/index.js +4 -25
  36. package/dist/components/indicator-card/index.js +5 -13
  37. package/dist/components/info-sidebar/index.js +4 -14
  38. package/dist/components/inputs/fields/combobox/index.js +7 -24
  39. package/dist/components/inputs/fields/combobox/option/index.js +2 -3
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -14
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -13
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +4 -14
  43. package/dist/components/inputs/fields/date/calendar/index.js +6 -13
  44. package/dist/components/inputs/fields/date/index.js +8 -16
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +7 -14
  46. package/dist/components/inputs/fields/date-range/index.js +6 -26
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +7 -33
  48. package/dist/components/inputs/fields/date-time/index.js +6 -16
  49. package/dist/components/inputs/fields/editable/index.js +4 -14
  50. package/dist/components/inputs/fields/input/index.js +5 -11
  51. package/dist/components/inputs/fields/input-file/index.js +6 -30
  52. package/dist/components/inputs/fields/input-tags/index.js +4 -17
  53. package/dist/components/inputs/fields/number/index.js +4 -8
  54. package/dist/components/inputs/fields/number-range/index.js +4 -9
  55. package/dist/components/inputs/fields/phone/index.js +7 -417
  56. package/dist/components/inputs/fields/text-area/index.js +5 -11
  57. package/dist/components/inputs/index.js +14 -26
  58. package/dist/components/inputs/label/index.js +5 -10
  59. package/dist/components/inputs/outline-container/index.js +4 -16
  60. package/dist/components/inputs/utils/action-button/index.js +4 -8
  61. package/dist/components/inputs/utils/calendar-button/index.js +5 -11
  62. package/dist/components/inputs/utils/date-selector/index.js +3 -6
  63. package/dist/components/inputs/utils/date-time-field/index.js +10 -30
  64. package/dist/components/inputs/utils/dialog/index.js +5 -9
  65. package/dist/components/inputs/utils/number-field/index.js +5 -11
  66. package/dist/components/inputs/utils/popover/index.js +5 -11
  67. package/dist/components/interactive-card/icon/index.js +2 -4
  68. package/dist/components/interactive-card/index.js +4 -13
  69. package/dist/components/language-selector/index.js +4 -11
  70. package/dist/components/language-selector/item-list/index.js +2 -5
  71. package/dist/components/link/index.js +3 -50
  72. package/dist/components/list-item/index.js +6 -14
  73. package/dist/components/little-flag/index.js +3 -13
  74. package/dist/components/loading/index.js +4 -65
  75. package/dist/components/logo/index.js +3 -5
  76. package/dist/components/logo-carousel/index.js +4 -50
  77. package/dist/components/lottie/index.js +3 -13
  78. package/dist/components/menu/index.js +5 -20
  79. package/dist/components/message-banner/index.js +5 -33
  80. package/dist/components/modal/index.js +6 -17
  81. package/dist/components/modal/modal-confirm/index.js +3 -8
  82. package/dist/components/modal/modal-footer/index.js +5 -14
  83. package/dist/components/modal/modal-header/index.js +6 -23
  84. package/dist/components/notification/index.js +5 -66
  85. package/dist/components/notification-sign/index.js +4 -28
  86. package/dist/components/number-input/index.js +5 -50
  87. package/dist/components/oauth-selector/index.js +6 -24
  88. package/dist/components/oauth-selector/option-container/index.js +4 -13
  89. package/dist/components/plan-card/index.js +3 -82
  90. package/dist/components/plan-card/recommended-tag/index.js +3 -8
  91. package/dist/components/pop-up/description/index.js +5 -11
  92. package/dist/components/pop-up/index.js +7 -21
  93. package/dist/components/premium-feature/index.js +4 -43
  94. package/dist/components/priority-score/index.js +4 -12
  95. package/dist/components/progress/index.js +5 -32
  96. package/dist/components/progress-bar/index.js +3 -93
  97. package/dist/components/radio-button/index.js +4 -86
  98. package/dist/components/scroll-button/index.js +4 -22
  99. package/dist/components/search/index.js +7 -61
  100. package/dist/components/search-bar/index.js +4 -30
  101. package/dist/components/search-bar/item-searching/index.js +2 -7
  102. package/dist/components/severity-badge/index.js +4 -12
  103. package/dist/components/severity-overview/badge/index.js +4 -16
  104. package/dist/components/severity-overview/index.js +3 -5
  105. package/dist/components/show-on-hover/index.js +3 -23
  106. package/dist/components/slide-out-menu/index.js +6 -2006
  107. package/dist/components/slide-out-menu/menu-item/index.js +4 -13
  108. package/dist/components/slider/index.js +7 -91
  109. package/dist/components/slider/thumb/index.js +5 -8
  110. package/dist/components/step-lapse/index.js +4 -99
  111. package/dist/components/table-button/index.js +4 -54
  112. package/dist/components/tabs/fixed-tabs/index.js +3 -7
  113. package/dist/components/tabs/index.js +6 -12
  114. package/dist/components/tabs/tab/index.js +3 -6
  115. package/dist/components/tag/index.js +4 -114
  116. package/dist/components/timeline/card/index.js +2 -5
  117. package/dist/components/timeline/index.js +4 -5
  118. package/dist/components/toggle/index.js +4 -61
  119. package/dist/components/toggle-buttons/index.js +4 -72
  120. package/dist/components/tooltip/index.js +3 -6
  121. package/dist/components/tour/index.js +7 -2514
  122. package/dist/components/typography/heading/index.js +4 -7
  123. package/dist/components/typography/index.js +4 -6
  124. package/dist/components/typography/span/index.js +4 -7
  125. package/dist/components/typography/text/index.js +4 -7
  126. package/dist/components/web-form/index.js +4 -69
  127. package/dist/components-C2JBXbtI.mjs +9653 -0
  128. package/dist/hooks/index.js +6 -10
  129. package/dist/index.js +113 -205
  130. package/dist/vendor-CVMqCpkZ.mjs +14504 -0
  131. package/package.json +2 -3
  132. package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
  133. package/dist/assets/index.css +0 -1
  134. package/dist/assets/index2.css +0 -1
  135. package/dist/index-38JqtnAI.mjs +0 -122
  136. package/dist/index-B5yoGFs6.mjs +0 -54
  137. package/dist/index-BLbKylyw.mjs +0 -209
  138. package/dist/index-Bu448Tz2.mjs +0 -106
  139. package/dist/index-BwFnfaRh.mjs +0 -2310
  140. package/dist/index-Co_k0WFk.mjs +0 -75
  141. package/dist/index-Cu7uUMlx.mjs +0 -82
  142. package/dist/index-D-lcuEHY.mjs +0 -1018
  143. package/dist/index-DrfjITyT.mjs +0 -61
  144. package/dist/styles-7_q7nHce.mjs +0 -110
  145. package/dist/styles-BA0WIQL-.mjs +0 -74
  146. package/dist/styles-C3cZmKVJ.mjs +0 -131
  147. package/dist/styles-CI-I6joH.mjs +0 -144
  148. package/dist/styles-Cx93EcVo.mjs +0 -76
  149. package/dist/styles-D85YYIjM.mjs +0 -131
  150. package/dist/styles-EIbGRPlk.mjs +0 -106
  151. package/dist/styles-Q1VXuWI7.mjs +0 -65
  152. package/dist/styles-fH2c4cfc.mjs +0 -77
  153. package/dist/styles-lSVV9kjn.mjs +0 -133
  154. package/dist/use-carousel-CvRxi2FI.mjs +0 -17
  155. package/dist/use-click-outside-BtZLIoU1.mjs +0 -18
  156. package/dist/use-cloudinary-image-fG7ODNgr.mjs +0 -611
  157. package/dist/use-modal-CkrZ-_-M.mjs +0 -14
  158. package/dist/use-search-DpLNvt7Q.mjs +0 -12
  159. package/dist/utils-CQvBF-wY.mjs +0 -4
@@ -1,15 +1,6 @@
1
- import { jsxs as t, jsx as r } from "react/jsx-runtime";
2
- import { useTheme as m } from "styled-components";
3
- import { Container as i } from "../../container/index.js";
4
- import { Icon as d } from "../../icon/index.js";
5
- import { PremiumFeature as g } from "../../premium-feature/index.js";
6
- import "../../typography/heading/index.js";
7
- import "../../typography/span/index.js";
8
- import { Text as o } from "../../typography/text/index.js";
9
- const j = ({ customBadge: a, description: l, icon: s, onClick: n, requiresUpgrade: p = !1, title: c }) => {
10
- const e = m();
11
- return t(i, { bgColor: e.palette.white, bgColorHover: e.palette.gray[100], cursor: "pointer", display: "flex", gap: 0.5, onClick: n, px: 1.25, py: 1, width: "100%", children: [r(i, { alignItems: "center", bgColor: e.palette.gray[300], borderRadius: e.spacing[0.25], display: "flex", height: "24px", justify: "center", width: "24px", children: r(d, { icon: s, iconColor: e.palette.gray[800], iconSize: "xxs", ml: 0.5, mr: 0.5 }) }), t(i, { children: [t(i, { alignItems: "center", display: "inline-flex", gap: 0.5, children: [r(o, { color: e.palette.gray[800], size: "sm", children: c }), p ? r(g, { text: "Upgrade" }) : void 0, a] }), r(o, { color: e.palette.gray[400], size: "xs", children: l })] })] });
12
- };
1
+ import "react/jsx-runtime";
2
+ import "styled-components";
3
+ import { bt as e } from "../../../components-C2JBXbtI.mjs";
13
4
  export {
14
- j as MenuItem
5
+ e as MenuItem
15
6
  };
@@ -1,93 +1,9 @@
1
- import { jsxs as s, jsx as n } from "react/jsx-runtime";
2
- import { useRef as u } from "react";
3
- import { useNumberFormatter as y, useSlider as f } from "react-aria";
4
- import { useSliderState as x } from "react-stately";
5
- import { styled as o, useTheme as b } from "styled-components";
6
- import { Thumb as w } from "./thumb/index.js";
7
- import { Container as k } from "../container/index.js";
8
- import "../typography/heading/index.js";
9
- import "../typography/span/index.js";
10
- import { Text as j } from "../typography/text/index.js";
11
- const v = o.div`
12
- ${({ theme: e, $min: p, $value: r }) => `
13
- align-items: center;
14
- align-self: stretch;
15
- display: flex;
16
- flex-direction: column;
17
- justify-content: end;
18
- gap: ${e.spacing[0.75]};
19
- width: 304px;
20
-
21
- .track {
22
- background: linear-gradient(
23
- to right,
24
- ${p >= 0 ? `
25
- ${e.palette.primary[500]} ${r}%,
26
- ${e.palette.gray[200]} ${r}%
27
- ` : ((a, t) => t >= 50 ? `
28
- ${a.palette.gray[200]} 50%,
29
- ${a.palette.primary[500]} 50.05%,
30
- ${a.palette.primary[500]} ${t}%,
31
- ${a.palette.gray[200]} ${t}%
32
- ` : `
33
- ${a.palette.gray[200]} ${t}%,
34
- ${a.palette.primary[500]} ${t}%,
35
- ${a.palette.primary[500]} 50%,
36
- ${a.palette.gray[200]} 50.05%,
37
- ${a.palette.gray[200]} 100%
38
- `)(e, r)}
39
- );
40
- border-radius: ${e.spacing[0.125]};
41
- height: ${e.spacing[0.25]};
42
- width: 100%;
43
- }
44
-
45
- .track.disabled {
46
- opacity: 0.4;
47
- }
48
-
49
- .thumb {
50
- background: ${e.palette.white};
51
- border-radius: ${e.spacing[1.25]};
52
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
53
- top: 50%;
54
- height: 20px;
55
- width: 20px;
56
- }
57
-
58
- .thumb.dragging {
59
- border: 1px solid ${e.palette.primary[500]};
60
- }
61
- `}
62
- `, T = o.div`
63
- ${({ theme: e }) => `
64
- align-items: center;
65
- display: flex;
66
- justify-content: space-between;
67
- height: ${e.spacing[0.625]};
68
- width: 100%;
69
-
70
- p {
71
- color: ${e.palette.gray[400]};
72
- font-family: ${e.typography.type.primary};
73
- font-size: ${e.spacing[0.5]};
74
- }
75
- `}
76
- `, S = o.output`
77
- ${({ theme: e }) => `
78
- align-items: flex-end;
79
- border-radius: ${e.spacing[0.5]};
80
- border: 1px solid ${e.palette.gray[300]};
81
- background: ${e.palette.white};
82
- display: flex;
83
- gap: ${e.spacing[0.625]};
84
- padding: ${e.spacing[0.625]} ${e.spacing[0.75]};
85
- width: 59px;
86
- `}
87
- `, H = (e) => {
88
- const p = b(), r = u(null), { minValue: a = 0, maxValue: t = 100 } = e, l = y(), i = x({ ...e, numberFormatter: l }), m = ((d, c, h) => Math.round((h - d) / (c - d) * 100))(a, t, i.getThumbValue(0)), { groupProps: g, trackProps: $ } = f({ ...e, "aria-label": "slider" }, i, r);
89
- return s(k, { alignItems: "center", display: "inline-flex", gap: 1.25, children: [s(v, { ...g, $min: a ?? 0, $value: m, className: "slider", children: [n("div", { ...$, className: "track " + (i.isDisabled ? "disabled" : ""), ref: r, children: n(w, { index: 0, state: i, trackRef: r }) }), s(T, { children: [n("p", { children: `${l.format(a)} (Low)` }), a < 0 && n("p", { children: "0" }), n("p", { children: `${l.format(t)} (High)` })] })] }), n(S, { children: n(j, { color: p.palette.gray[800], size: "sm", textAlign: "right", children: i.getThumbValueLabel(0) }) })] });
90
- };
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "react-aria";
4
+ import "react-stately";
5
+ import "styled-components";
6
+ import { aw as e } from "../../components-C2JBXbtI.mjs";
91
7
  export {
92
- H as Slider
8
+ e as Slider
93
9
  };
@@ -1,10 +1,7 @@
1
- import { jsx as r } from "react/jsx-runtime";
2
- import { useRef as u } from "react";
3
- import { useSliderThumb as o, VisuallyHidden as p } from "react-aria";
4
- const l = ({ state: i, trackRef: s, index: t }) => {
5
- const e = u(null), { thumbProps: n, inputProps: a, isDragging: m } = o({ index: t, trackRef: s, inputRef: e }, i);
6
- return r("div", { ...n, className: "thumb " + (m ? "dragging" : ""), children: r(p, { children: r("input", { ref: e, ...a }) }) });
7
- };
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "react-aria";
4
+ import { bu as i } from "../../../components-C2JBXbtI.mjs";
8
5
  export {
9
- l as Thumb
6
+ i as Thumb
10
7
  };
@@ -1,101 +1,6 @@
1
- import { jsx as e, jsxs as r } from "react/jsx-runtime";
2
- import { useState as v, useCallback as k } from "react";
3
- import { styled as o } from "styled-components";
4
- import { v as w } from "../../utils-CQvBF-wY.mjs";
5
- import "../../styles-C3cZmKVJ.mjs";
6
- import { Button as d } from "../button/index.js";
7
- import { Container as g } from "../container/index.js";
8
- import { Icon as C } from "../icon/index.js";
9
- import { Heading as z } from "../typography/heading/index.js";
10
- import "../typography/span/index.js";
11
- import "../typography/text/index.js";
12
- const { getVariant: S } = w((t) => ({ completed: `
13
- background-color: ${t.palette.primary[500]};
14
- color: ${t.palette.white};
15
-
16
- &::after {
17
- background-color: ${t.palette.primary[500]};
18
- }
19
- `, current: `
20
- background-color: ${t.palette.primary[500]};
21
- color: ${t.palette.white};
22
-
23
- &::after {
24
- background-color: ${t.palette.gray[200]};
25
- }
26
- `, disabled: `
27
- background-color: ${t.palette.gray[200]};
28
- outline: 1px solid ${t.palette.gray[400]};
29
- outline-offset: -1px;
30
- color: ${t.palette.gray[400]};
31
-
32
- &::after {
33
- background-color: ${t.palette.gray[200]};
34
- }
35
- ` })), j = o.div`
36
- ${({ theme: t }) => `
37
- align-items: stretch;
38
- background-color: ${t.palette.white};
39
- display: flex;
40
- flex-direction: column;
41
- height: 100%;
42
- padding: ${t.spacing[1]} ${t.spacing[1]};
43
- scroll-behavior: unset;
44
- `}
45
- `, A = o.div`
46
- display: flex;
47
- flex-direction: row;
48
- margin-bottom: ${({ theme: t }) => t.spacing[2]};
49
-
50
- &:last-child > div:first-child > span::after {
51
- display: none;
52
- }
53
- `, D = o.div`
54
- ${({ theme: t }) => `
55
- display: inline-flex;
56
- font-family: ${t.typography.type.primary};
57
- font-size: ${t.typography.text.sm};
58
- line-height: ${t.spacing[1.25]};
59
- margin-top: ${t.spacing[1]};
60
-
61
- & > button:first-child {
62
- margin-right: ${t.spacing[0.5]};
63
- }
64
- `}
65
- `, N = o.span`
66
- ${({ theme: t, $variant: l }) => `
67
- border-radius: 6px;
68
- display: inline-block;
69
- text-align: center;
70
- font-size: ${t.typography.text.sm};
71
- font-weight: ${t.typography.weight.bold};
72
- font-family: ${t.typography.type.primary};
73
- line-height: ${t.spacing[1]};
74
- padding: ${t.spacing[0.5]} ${t.spacing[0.5]};
75
- height: ${t.spacing[2]};
76
- width: ${t.spacing[2]};
77
-
78
- &::after {
79
- content: "";
80
- position: absolute;
81
- top: calc(32px + ${t.spacing[0.5]});
82
- left: 50%;
83
- bottom: 0;
84
- width: 2px;
85
- height: calc(100% - ${t.spacing[1]});
86
- }
87
-
88
- ${S(t, l)}
89
- `}
90
- `, G = ({ button: { disabled: t = !1, text: l, type: y = "button", onClick: $ }, steps: h }) => {
91
- const [a, f] = v(1), m = k((n, i) => () => {
92
- f((p) => p + n), i == null || i();
93
- }, []);
94
- return e(j, { children: h.map((n, i) => {
95
- const { content: p, title: b, nextAction: u, previousAction: x } = n, c = i + 1, s = c < a ? "completed" : c === a ? "current" : "disabled";
96
- return r(A, { children: [e(g, { maxWidth: "40px", position: "relative", children: e(N, { $variant: s, children: s === "completed" ? e(C, { icon: "check", iconSize: "xs", iconType: "fa-solid" }) : c }) }), r(g, { ml: 1.5, width: "100%", children: [e(z, { fontWeight: "bold", lineSpacing: 1.25, mb: 1.5, size: "xs", children: b }), s === "current" && r(g, { children: [p, r(D, { children: [a > 1 && e(d, { disabled: n.isDisabledPrevious ?? !1, onClick: m(-1, x), variant: "tertiary", children: "Previous" }), a < h.length ? e(d, { disabled: n.isDisabledNext ?? !1, onClick: m(1, u), variant: "primary", children: "Next step" }) : e(d, { disabled: t, onClick: $, type: y, variant: "primary", children: l })] })] })] })] }, n.title);
97
- }) });
98
- };
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { ax as a } from "../../components-C2JBXbtI.mjs";
99
4
  export {
100
- G as StepLapse
5
+ a as StepLapse
101
6
  };
@@ -1,56 +1,6 @@
1
- import { jsxs as a, jsx as r } from "react/jsx-runtime";
2
- import { styled as m, useTheme as b } from "styled-components";
3
- import { Container as u } from "../container/index.js";
4
- import { Icon as g } from "../icon/index.js";
5
- import "../typography/heading/index.js";
6
- import "../typography/span/index.js";
7
- import { Text as h } from "../typography/text/index.js";
8
- const y = m.button`
9
- ${({ theme: e }) => `
10
- align-items: center;
11
- background-color: ${e.palette.white};
12
- border: 1px solid ${e.palette.gray[100]};
13
- border-radius: ${e.spacing[0.25]};
14
- color: ${e.palette.gray[800]};
15
- cursor: pointer;
16
- display: flex;
17
- font-size: ${e.typography.text.sm};
18
- gap: ${e.spacing[0.25]};
19
- height: 21px;
20
- width: 21px;
21
- justify-content: center;
22
- padding: 6px;
23
- transition: all 0.25s ease;
24
-
25
- &[aria-label] {
26
- height: auto;
27
- width: auto;
28
- }
29
-
30
- &.success {
31
- border-color: ${e.palette.success[500]};
32
- color: ${e.palette.success[500]};
33
-
34
- &:hover {
35
- background-color: ${e.palette.success[200]};
36
- }
37
- }
38
-
39
- &:disabled {
40
- cursor: not-allowed;
41
- background: ${e.palette.gray[200]};
42
- border-color: ${e.palette.gray[200]};
43
- color: ${e.palette.gray[300]};
44
- }
45
-
46
- &:hover:not(.success) {
47
- background-color: ${e.palette.gray[100]};
48
- }
49
- `}
50
- `, x = { add: { icon: "plus" }, approve: { icon: "check" }, disabled: { icon: "ban" }, reject: { icon: "xmark" }, submit: { icon: "arrow-right" }, success: { icon: "check" } }, z = ({ disabled: e = !1, icon: i, id: s, label: n, name: o, onClick: c, type: l = "button", variant: t }) => {
51
- const p = b(), d = a(y, { "aria-label": o ?? void 0, className: t, disabled: e, id: s, onClick: c, type: l, children: [r(g, { clickable: !1, icon: i ?? x[t].icon, iconSize: o === void 0 ? "xxs" : "xs", iconType: "fa-light" }), o ?? void 0] });
52
- return a(u, { alignItems: "center", display: "flex", children: [d, n && r(h, { color: p.palette.gray[800], ml: 0.5, size: "sm", children: n })] });
53
- };
1
+ import "react/jsx-runtime";
2
+ import "styled-components";
3
+ import { ay as m } from "../../components-C2JBXbtI.mjs";
54
4
  export {
55
- z as TableButton
5
+ m as TableButton
56
6
  };
@@ -1,9 +1,5 @@
1
- import { jsx as i } from "react/jsx-runtime";
2
- import { S as r, a } from "../../../styles-BA0WIQL-.mjs";
3
- import { Heading as c } from "../../typography/heading/index.js";
4
- import "../../typography/span/index.js";
5
- import "../../typography/text/index.js";
6
- const b = ({ items: o }) => i(r, { children: o.map(({ isActive: s, label: e, onClick: t }, m) => i(a, { className: s ? "active" : "", onClick: t, type: "button", children: i(c, { color: "inherit", fontWeight: "semibold", size: "sm", sizeSm: "xs", children: e }) }, `${e}-${m}`)) });
1
+ import "react/jsx-runtime";
2
+ import { az as e } from "../../../components-C2JBXbtI.mjs";
7
3
  export {
8
- b as FixedTabs
4
+ e as FixedTabs
9
5
  };
@@ -1,14 +1,8 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { useTheme as m } from "styled-components";
3
- import { FixedTabs as u } from "./fixed-tabs/index.js";
4
- import { Tab as c } from "./tab/index.js";
5
- import { Container as v } from "../container/index.js";
6
- const T = ({ items: a, borders: t = !0, box: i = !1 }) => {
7
- const o = m();
8
- return e(v, { bgColor: o.palette.white, border: i ? "1px solid" : void 0, borderBottom: t ? `1px solid ${o.palette.gray[300]}` : void 0, borderColor: i ? o.palette.gray[200] : void 0, borderRadius: i ? o.spacing[0.25] : void 0, display: "inline-flex", gap: 0.25, padding: i ? [0, 0, 0, 0] : void 0, pl: t ? 1.25 : void 0, pr: t ? 1.25 : void 0, role: "tablist", width: i ? "max-content" : "100%", children: a.map(({ id: r, isActive: l, link: s, label: d, notificationSign: p, onClick: n, tooltip: b }) => e(c, { id: r, isActive: l, label: d, link: s, notificationSign: p, onClick: n, tooltip: b }, r)) });
9
- };
1
+ import "react/jsx-runtime";
2
+ import "styled-components";
3
+ import { az as b, aB as i, aA as m } from "../../components-C2JBXbtI.mjs";
10
4
  export {
11
- u as FixedTabs,
12
- c as Tab,
13
- T as Tabs
5
+ b as FixedTabs,
6
+ i as Tab,
7
+ m as Tabs
14
8
  };
@@ -1,8 +1,5 @@
1
- import { jsx as a, jsxs as l } from "react/jsx-runtime";
2
- import { T as m } from "../../../styles-BA0WIQL-.mjs";
3
- import { NotificationSign as p } from "../../notification-sign/index.js";
4
- import { T as d } from "../../../index-D-lcuEHY.mjs";
5
- const x = ({ label: r, id: o, isActive: t = !1, link: n, notificationSign: i, onClick: e, tooltip: s = "" }) => a(d, { display: "flex", id: `${o}-tooltip`, tip: s, children: l(m, { "aria-selected": t, className: t ? "active" : "", id: o, onClick: e, role: "tab", to: n, children: [r, a(p, { left: i == null ? void 0 : i.left, numberIndicator: i == null ? void 0 : i.numberIndicator, show: i == null ? void 0 : i.show, top: i == null ? void 0 : i.top, variant: i == null ? void 0 : i.variant })] }) });
1
+ import "react/jsx-runtime";
2
+ import { aB as m } from "../../../components-C2JBXbtI.mjs";
6
3
  export {
7
- x as Tab
4
+ m as Tab
8
5
  };
@@ -1,116 +1,6 @@
1
- import { jsxs as i, jsx as e } from "react/jsx-runtime";
2
- import { isEmpty as y } from "lodash";
3
- import { styled as b } from "styled-components";
4
- import { v as k } from "../../utils-CQvBF-wY.mjs";
5
- import "../../styles-C3cZmKVJ.mjs";
6
- import { Icon as w } from "../icon/index.js";
7
- import { IconButton as x } from "../icon-button/index.js";
8
- import { Link as v } from "../link/index.js";
9
- import "../typography/heading/index.js";
10
- import { Span as z } from "../typography/span/index.js";
11
- import "../typography/text/index.js";
12
- const { getVariant: S } = k((o) => ({ default: `
13
- background-color: ${o.palette.gray[200]};
14
- color: ${o.palette.gray[800]};
15
- `, error: `
16
- &.high {
17
- background-color: ${o.palette.error[700]};
18
- color: ${o.palette.white};
19
- }
20
- &.low {
21
- background-color: ${o.palette.error[50]};
22
- color: ${o.palette.error[700]};
23
- }
24
- &.medium {
25
- background-color: ${o.palette.error[500]};
26
- color: ${o.palette.error[50]};
27
- }
28
- `, inactive: `
29
- background-color: ${o.palette.gray[200]};
30
- color: ${o.palette.gray[600]};
31
- `, info: `
32
- &.high {
33
- background-color: ${o.palette.info[700]};
34
- color: ${o.palette.white};
35
- }
36
- &.low {
37
- background-color: ${o.palette.info[50]};
38
- color: ${o.palette.info[700]};
39
- }
40
- &.medium {
41
- background-color: ${o.palette.info[500]};
42
- color: ${o.palette.info[50]};
43
- }
44
- `, reachable: `
45
- background-color: ${o.palette.gray[50]};
46
- color: ${o.palette.gray[800]};
47
- `, remediation: `
48
- background-color: inherit;
49
- border: 1px solid ${o.palette.gray[300]};
50
- color: ${o.palette.gray[400]};
51
- `, role: `
52
- background-color: ${o.palette.gray[800]};
53
- color: ${o.palette.white};
54
- `, success: `
55
- &.high {
56
- background-color: ${o.palette.success[700]};
57
- color: ${o.palette.white};
58
- }
59
- &.low {
60
- background-color: ${o.palette.success[50]};
61
- color: ${o.palette.success[700]};
62
- }
63
- &.medium {
64
- background-color: ${o.palette.success[500]};
65
- color: ${o.palette.success[50]};
66
- }
67
- `, technique: `
68
- --tag-padding-y: ${o.spacing[0.25]};
69
- --tag-padding-x: ${o.spacing[0.75]};
70
-
71
- background-color: inherit;
72
- border: 1px solid ${o.palette.success[800]};
73
- color: ${o.palette.success[800]};
74
- `, warning: `
75
- &.high {
76
- background-color: ${o.palette.warning[600]};
77
- color: ${o.palette.white};
78
- }
79
- &.low {
80
- background-color: ${o.palette.warning[50]};
81
- color: ${o.palette.warning[700]};
82
- }
83
- &.medium {
84
- background-color: ${o.palette.warning[400]};
85
- color: ${o.palette.warning[700]};
86
- }
87
- ` })), T = b.span`
88
- ${({ theme: o, $fontSize: n = o.typography.text.xs, $variant: t }) => `
89
- align-items: center;
90
- border-radius: ${o.spacing[t === "technique" ? 1 : 0.25]};
91
- display: inline-flex;
92
- gap: ${o.spacing[0.25]};
93
- font-family: ${o.typography.type.primary};
94
- font-size: ${n};
95
- font-style: normal;
96
- font-weight: ${o.typography.weight.regular};
97
- justify-content: center;
98
- line-height: 18px;
99
- padding: var(--tag-padding-y) var(--tag-padding-x);
100
- white-space: nowrap;
101
- width: max-content;
102
-
103
- ~ a {
104
- font-size: ${o.typography.text.xs};
105
- display: flex;
106
- }
107
-
108
- ${S(o, t)}
109
- `}
110
- `, F = ({ disabled: o, icon: n, iconColor: t = "inherit", iconType: s = "fa-light", id: g = "close-tag", filterValues: l = "", fontSize: d, href: r, linkLabel: $, onClose: c, priority: h = "default", tagTitle: p = "", tagLabel: a, variant: m = "default" }) => {
111
- const u = a.length > 25 && y(p + l), f = `${a.slice(0, 25)}...`;
112
- return i(z, { className: "gap-0.5", display: r === void 0 ? "initial" : "flex", size: "sm", children: [i(T, { $fontSize: d, $variant: m, className: h, children: [n && e(w, { icon: n, iconColor: t, iconSize: "xxs", iconType: s }), i("span", { children: [e("strong", { children: p }), e("span", { children: u ? f : a }), e("strong", { children: l })] }), c ? e(x, { disabled: o, icon: "xmark", iconSize: "xxs", iconType: "fa-light", id: g, onClick: c, px: 0.125, py: 0.125, variant: "ghost" }) : void 0] }), r === void 0 ? void 0 : e(v, { href: r, children: $ })] });
113
- };
1
+ import "react/jsx-runtime";
2
+ import "lodash";
3
+ import { aC as p } from "../../components-C2JBXbtI.mjs";
114
4
  export {
115
- F as Tag
5
+ p as Tag
116
6
  };
@@ -1,9 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "styled-components";
3
- import { a as e } from "../../../index-Bu448Tz2.mjs";
4
- import "../../typography/heading/index.js";
5
- import "../../typography/span/index.js";
6
- import "../../typography/text/index.js";
3
+ import { aD as a } from "../../../components-C2JBXbtI.mjs";
7
4
  export {
8
- e as TimeLineCard
5
+ a as TimeLineCard
9
6
  };
@@ -1,7 +1,6 @@
1
- import { jsx as t } from "react/jsx-runtime";
2
- import { T as r, a as s } from "../../index-Bu448Tz2.mjs";
3
- const d = ({ items: e }) => t(r, { children: e.map((i, a) => t(s, { date: i.date, description: i.description, title: i.title }, `${i.title}-${a}`)) });
1
+ import "react/jsx-runtime";
2
+ import { aE as m, aD as r } from "../../components-C2JBXbtI.mjs";
4
3
  export {
5
- d as TimeLine,
6
- s as TimeLineCard
4
+ m as TimeLine,
5
+ r as TimeLineCard
7
6
  };
@@ -1,63 +1,6 @@
1
- import { jsxs as l, jsx as o } from "react/jsx-runtime";
2
- import { forwardRef as u, useCallback as m } from "react";
3
- import { styled as a } from "styled-components";
4
- import { Container as $ } from "../container/index.js";
5
- const i = a.div`
6
- ${({ theme: e }) => `
7
- align-items: center;
8
- background-color: ${e.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: e }) => `
19
- background-color: ${e.palette.white};
20
- border-radius: 50%;
21
- height: ${e.spacing[1]};
22
- left: 2px;
23
- position: absolute;
24
- transition: 0.2s;
25
- width: ${e.spacing[1]};
26
- z-index: 1;
27
- `}
28
- `, k = a.label`
29
- display: inline-block;
30
-
31
- input {
32
- position: absolute;
33
- height: 0;
34
- opacity: 0;
35
- width: 0;
36
- }
37
-
38
- input:checked + ${i} {
39
- background-color: ${({ theme: e }) => e.palette.primary[500]};
40
- }
41
-
42
- input:checked + ${i} > div {
43
- transform: translateX(100%);
44
- }
45
-
46
- input:disabled + ${i} {
47
- cursor: not-allowed;
48
- background-color: ${({ theme: e }) => e.palette.gray[100]};
49
- }
50
-
51
- input:disabled + ${i} > div {
52
- background-color: ${({ theme: e }) => e.palette.gray[200]};
53
- border: 1px solid ${({ theme: e }) => e.palette.gray[200]};
54
- }
55
- `, C = u(function({ defaultChecked: e, disabled: r = !1, justify: d, name: n, leftDescription: t, rightDescription: s, ...c }, p) {
56
- const h = e === !0 ? "on" : "off", g = typeof t == "object" && t.on && t.off ? t[h] : t, b = m((f) => {
57
- f.stopPropagation();
58
- }, []);
59
- return l($, { alignItems: "center", display: "flex", fontSize: "14px", gap: 0.75, justify: d, children: [g, l(k, { onClick: b, role: "switch", children: [o("input", { ...c, "aria-disabled": r, "aria-label": n, checked: e === !0, disabled: r, name: n, ref: p, type: "checkbox" }), o(i, { "aria-label": "Toggle Switch", id: `${n}Toggle`, children: o(y, {}) })] }), s] });
60
- });
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { aF as t } from "../../components-C2JBXbtI.mjs";
61
4
  export {
62
- C as Toggle
5
+ t as Toggle
63
6
  };
@@ -1,74 +1,6 @@
1
- import { jsx as e } from "react/jsx-runtime";
2
- import { useState as c, useCallback as g } from "react";
3
- import { styled as r } 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 m = r.div`
8
- ${({ theme: n }) => `
9
- align-items: center;
10
- display: flex;
11
- position: relative;
12
- width: 352px;
13
-
14
- > button:first-child {
15
- border-radius: ${n.spacing[2]} 0 0 ${n.spacing[2]};
16
- }
17
- > button:last-child {
18
- --angle-grad: -45deg;
19
- border-radius: 0 ${n.spacing[2]} ${n.spacing[2]} 0;
20
- }
21
-
22
- &::before {
23
- background: ${n.palette.gradients["01"]} border-box;
24
- border-radius: ${n.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: ${n.breakpoints.mobile}) {
34
- width: 320px;
35
- }
36
- `}
37
- `, b = r.button`
38
- ${({ theme: n }) => `
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: ${n.palette.primary[500]};
46
- cursor: pointer;
47
- display: flex;
48
- flex: 1 0 0;
49
- justify-content: center;
50
- gap: ${n.spacing[0.625]};
51
- height: ${n.spacing[4]};
52
- padding: ${n.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: ${n.palette.white};
64
- }
65
- `}
66
- `, k = ({ defaultSelection: n, options: t, handleClick: i }) => {
67
- const [o, s] = c(n ?? t[0]), d = g((a) => () => {
68
- s(a), i(a);
69
- }, [i]);
70
- return e(m, { children: t.map((a, l) => e(b, { className: `${a.includes(o) && "selected"}`, onClick: d(a), children: e(p, { color: "inherit", fontWeight: "bold", size: "md", sizeSm: "sm", textAlign: "center", children: a }) }, `${a}-${l}`)) });
71
- };
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { aG as p } from "../../components-C2JBXbtI.mjs";
72
4
  export {
73
- k as ToggleButton
5
+ p as ToggleButton
74
6
  };
@@ -1,13 +1,10 @@
1
1
  import "react/jsx-runtime";
2
- import { T as s } from "../../index-D-lcuEHY.mjs";
2
+ import "../../vendor-CVMqCpkZ.mjs";
3
3
  import "lodash";
4
4
  import "react";
5
5
  import "react-dom";
6
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";
7
+ import { aH as f } from "../../components-C2JBXbtI.mjs";
11
8
  export {
12
- s as Tooltip
9
+ f as Tooltip
13
10
  };