@fluidattacks/design 3.1.13 → 3.2.0

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 (157) hide show
  1. package/dist/components/@core/index.js +15 -16
  2. package/dist/components/accordion/accordion-content/index.js +3 -20
  3. package/dist/components/accordion/index.js +5 -76
  4. package/dist/components/alert/index.js +4 -162
  5. package/dist/components/button/index.js +4 -67
  6. package/dist/components/card/card-header/index.js +4 -81
  7. package/dist/components/card/card-with-image/index.js +5 -91
  8. package/dist/components/card/card-with-input/index.js +5 -103
  9. package/dist/components/card/card-with-selector/index.js +4 -69
  10. package/dist/components/card/card-with-switch/index.js +4 -48
  11. package/dist/components/card/index.js +6 -10
  12. package/dist/components/carousel/index.js +4 -73
  13. package/dist/components/checkbox/index.js +4 -116
  14. package/dist/components/cloud-image/index.js +2 -2
  15. package/dist/components/code-snippet/index.js +6 -70
  16. package/dist/components/code-snippet/location-code/index.js +7 -169
  17. package/dist/components/colors/index.js +7 -222
  18. package/dist/components/confirm-dialog/index.js +4 -43
  19. package/dist/components/container/index.js +4 -49
  20. package/dist/components/content-card/category-tag/index.js +4 -40
  21. package/dist/components/content-card/event-date/index.js +5 -59
  22. package/dist/components/content-card/index.js +4 -166
  23. package/dist/components/content-card-carousel/index.js +4 -93
  24. package/dist/components/content-card-carousel/scroll-buttons/index.js +2 -4
  25. package/dist/components/divider/index.js +4 -23
  26. package/dist/components/empty-state/empty-button/index.js +3 -4
  27. package/dist/components/empty-state/index.js +3 -83
  28. package/dist/components/file-preview/index.js +3 -42
  29. package/dist/components/form/index.js +4 -61
  30. package/dist/components/grid-container/index.js +4 -46
  31. package/dist/components/group-selector/index.js +6 -133
  32. package/dist/components/group-selector/option-container/index.js +3 -7
  33. package/dist/components/icon/index.js +4 -106
  34. package/dist/components/icon-button/index.js +4 -74
  35. package/dist/components/indicator-card/index.js +5 -72
  36. package/dist/components/info-sidebar/index.js +4 -114
  37. package/dist/components/inputs/fields/combobox/index.js +7 -144
  38. package/dist/components/inputs/fields/combobox/option/index.js +2 -3
  39. package/dist/components/inputs/fields/date/calendar/cell/index.js +7 -25
  40. package/dist/components/inputs/fields/date/calendar/grid/index.js +5 -24
  41. package/dist/components/inputs/fields/date/calendar/header/index.js +4 -36
  42. package/dist/components/inputs/fields/date/calendar/index.js +6 -28
  43. package/dist/components/inputs/fields/date/index.js +8 -66
  44. package/dist/components/inputs/fields/date-range/calendar/index.js +7 -33
  45. package/dist/components/inputs/fields/date-range/index.js +6 -106
  46. package/dist/components/inputs/fields/date-time/calendar/index.js +7 -62
  47. package/dist/components/inputs/fields/date-time/index.js +6 -67
  48. package/dist/components/inputs/fields/editable/index.js +4 -26
  49. package/dist/components/inputs/fields/input/index.js +5 -75
  50. package/dist/components/inputs/fields/input-file/index.js +6 -123
  51. package/dist/components/inputs/fields/input-tags/index.js +4 -66
  52. package/dist/components/inputs/fields/number/index.js +4 -55
  53. package/dist/components/inputs/fields/number-range/index.js +4 -47
  54. package/dist/components/inputs/fields/phone/index.js +7 -577
  55. package/dist/components/inputs/fields/text-area/index.js +5 -79
  56. package/dist/components/inputs/index.js +14 -26
  57. package/dist/components/inputs/label/index.js +5 -36
  58. package/dist/components/inputs/outline-container/index.js +4 -102
  59. package/dist/components/inputs/utils/action-button/index.js +4 -29
  60. package/dist/components/inputs/utils/calendar-button/index.js +5 -35
  61. package/dist/components/inputs/utils/date-selector/index.js +3 -60
  62. package/dist/components/inputs/utils/date-time-field/index.js +10 -131
  63. package/dist/components/inputs/utils/dialog/index.js +5 -12
  64. package/dist/components/inputs/utils/number-field/index.js +5 -84
  65. package/dist/components/inputs/utils/popover/index.js +5 -42
  66. package/dist/components/interactive-card/icon/index.js +2 -4
  67. package/dist/components/interactive-card/index.js +4 -116
  68. package/dist/components/language-selector/index.js +4 -35
  69. package/dist/components/language-selector/item-list/index.js +2 -5
  70. package/dist/components/link/index.js +3 -104
  71. package/dist/components/list-item/index.js +6 -65
  72. package/dist/components/little-flag/index.js +3 -30
  73. package/dist/components/loading/index.js +4 -92
  74. package/dist/components/logo/index.js +2 -10
  75. package/dist/components/logo-carousel/index.js +4 -85
  76. package/dist/components/lottie/index.js +3 -18
  77. package/dist/components/menu/index.js +5 -64
  78. package/dist/components/message-banner/index.js +5 -99
  79. package/dist/components/modal/index.js +6 -63
  80. package/dist/components/modal/modal-confirm/index.js +3 -49
  81. package/dist/components/modal/modal-footer/index.js +5 -23
  82. package/dist/components/modal/modal-header/index.js +6 -49
  83. package/dist/components/notification/index.js +5 -111
  84. package/dist/components/notification-sign/index.js +4 -45
  85. package/dist/components/number-input/index.js +5 -87
  86. package/dist/components/oauth-selector/index.js +6 -98
  87. package/dist/components/oauth-selector/option-container/index.js +4 -74
  88. package/dist/components/plan-card/index.js +3 -153
  89. package/dist/components/plan-card/recommended-tag/index.js +3 -29
  90. package/dist/components/pop-up/description/index.js +5 -49
  91. package/dist/components/pop-up/index.js +7 -150
  92. package/dist/components/premium-feature/index.js +4 -83
  93. package/dist/components/priority-score/index.js +4 -27
  94. package/dist/components/progress/index.js +5 -45
  95. package/dist/components/progress-bar/index.js +3 -151
  96. package/dist/components/radio-button/index.js +4 -123
  97. package/dist/components/scroll-button/index.js +4 -40
  98. package/dist/components/search/index.js +7 -103
  99. package/dist/components/search-bar/index.js +4 -217
  100. package/dist/components/search-bar/item-searching/index.js +2 -7
  101. package/dist/components/severity-badge/index.js +4 -72
  102. package/dist/components/severity-overview/badge/index.js +4 -67
  103. package/dist/components/severity-overview/index.js +3 -15
  104. package/dist/components/show-on-hover/index.js +3 -29
  105. package/dist/components/slide-out-menu/index.js +6 -3453
  106. package/dist/components/slide-out-menu/menu-item/index.js +4 -65
  107. package/dist/components/slider/index.js +7 -122
  108. package/dist/components/slider/thumb/index.js +5 -15
  109. package/dist/components/step-lapse/index.js +4 -157
  110. package/dist/components/table-button/index.js +4 -95
  111. package/dist/components/tabs/fixed-tabs/index.js +3 -27
  112. package/dist/components/tabs/index.js +6 -55
  113. package/dist/components/tabs/tab/index.js +3 -37
  114. package/dist/components/tag/index.js +4 -182
  115. package/dist/components/timeline/card/index.js +2 -5
  116. package/dist/components/timeline/index.js +4 -15
  117. package/dist/components/toggle/index.js +4 -101
  118. package/dist/components/toggle-buttons/index.js +4 -101
  119. package/dist/components/tooltip/index.js +3 -6
  120. package/dist/components/tour/index.js +7 -4582
  121. package/dist/components/typography/heading/index.js +4 -45
  122. package/dist/components/typography/index.js +4 -6
  123. package/dist/components/typography/span/index.js +4 -39
  124. package/dist/components/typography/text/index.js +4 -45
  125. package/dist/components/web-form/index.js +4 -78
  126. package/dist/components-C7JPRIEW.mjs +9653 -0
  127. package/dist/hooks/index.js +6 -10
  128. package/dist/index.js +112 -204
  129. package/dist/vendor-_XDhaIzo.mjs +14504 -0
  130. package/package.json +3 -7
  131. package/dist/_commonjsHelpers-C6fGbg64.mjs +0 -6
  132. package/dist/index-BMHVi812.mjs +0 -234
  133. package/dist/index-BzAniA2J.mjs +0 -135
  134. package/dist/index-C6LbClYh.mjs +0 -146
  135. package/dist/index-CAIe8hBv.mjs +0 -130
  136. package/dist/index-CUQBAqt_.mjs +0 -75
  137. package/dist/index-CWlrSlUk.mjs +0 -68
  138. package/dist/index-Ckmu1TfV.mjs +0 -86
  139. package/dist/index-DwznImvK.mjs +0 -1678
  140. package/dist/index-maWH3JYC.mjs +0 -3561
  141. package/dist/styles-B2N0JLw1.mjs +0 -114
  142. package/dist/styles-B64DVBIF.mjs +0 -115
  143. package/dist/styles-BXFVwnWT.mjs +0 -133
  144. package/dist/styles-BZQOqe8p.mjs +0 -141
  145. package/dist/styles-Bdque9TT.mjs +0 -65
  146. package/dist/styles-BlHspTrz.mjs +0 -144
  147. package/dist/styles-CROOwXEH.mjs +0 -76
  148. package/dist/styles-CplEd2kw.mjs +0 -228
  149. package/dist/styles-D1eTIklB.mjs +0 -110
  150. package/dist/styles-ePGii_9g.mjs +0 -74
  151. package/dist/use-carousel-CgAF78h3.mjs +0 -23
  152. package/dist/use-click-outside-BUll8Ag-.mjs +0 -18
  153. package/dist/use-cloudinary-image-BCxwj15o.mjs +0 -1176
  154. package/dist/use-modal-CtgexKnf.mjs +0 -14
  155. package/dist/use-search-Dj47QDw9.mjs +0 -15
  156. package/dist/utils-V0EumEPM.mjs +0 -6
  157. /package/dist/assets/{index2.css → vendor.css} +0 -0
@@ -1,29 +1,6 @@
1
- import { jsxs as n, jsx as o } from "react/jsx-runtime";
2
- import { useTheme as a } from "styled-components";
3
- import { Container as m } from "../container/index.js";
4
- import { Icon as p } from "../icon/index.js";
5
- import "../typography/heading/index.js";
6
- import "../typography/span/index.js";
7
- import { Text as l } from "../typography/text/index.js";
8
- const d = ({
9
- score: r
10
- }) => {
11
- const i = a(), t = r <= 33 ? "priority-bars-low" : "priority-bars-medium", e = r > 66 || r === 0 ? "priority-bars-high" : t;
12
- return /* @__PURE__ */ n(m, { alignItems: "center", display: "inline-flex", gap: 0.25, children: [
13
- /* @__PURE__ */ o(
14
- p,
15
- {
16
- icon: e,
17
- iconClass: r <= 66 ? "fa-kit-duotone" : "",
18
- iconColor: r > 0 ? i.palette.primary[500] : i.palette.gray[200],
19
- iconSize: "xs",
20
- iconType: "fa-kit",
21
- secondaryColor: i.palette.gray[200]
22
- }
23
- ),
24
- /* @__PURE__ */ o(l, { color: i.palette.gray[800], size: "sm", textAlign: "right", children: r + "%" })
25
- ] });
26
- };
1
+ import "react/jsx-runtime";
2
+ import "styled-components";
3
+ import { al as m } from "../../components-C7JPRIEW.mjs";
27
4
  export {
28
- d as PriorityScore
5
+ m as PriorityScore
29
6
  };
@@ -1,47 +1,7 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { useState as f, useEffect as n } from "react";
3
- import { styled as g, useTheme as c } from "styled-components";
4
- import { B as d } from "../../styles-CplEd2kw.mjs";
5
- import { Container as l } from "../container/index.js";
6
- const p = g(d)`
7
- animation: ${({ $animationTime: t }) => `progress-bar ${t}s ease-in-out`};
8
- animation-fill-mode: both;
9
-
10
- @keyframes progress-bar {
11
- 0% {
12
- width: 0;
13
- }
14
-
15
- 100% {
16
- width: 100%;
17
- }
18
- }
19
- `, b = (t) => t * 1e3 / 100, x = ({
20
- progressTime: t = 10,
21
- onComplete: r
22
- }) => {
23
- const s = c(), i = 100, [e, m] = f(0);
24
- return n(() => {
25
- e === i && (r == null || r());
26
- }, [e, r]), n(() => {
27
- const h = setInterval(() => {
28
- m(
29
- (a) => a === i ? 0 : a + 1
30
- );
31
- }, b(t));
32
- return () => {
33
- clearInterval(h);
34
- };
35
- }, [e, t]), /* @__PURE__ */ o(l, { bgColor: s.palette.gray[200], height: "4px", children: /* @__PURE__ */ o(
36
- p,
37
- {
38
- $animationTime: t,
39
- bgGradient: s.palette.gradients["01"],
40
- height: "100%",
41
- width: `${e}%`
42
- }
43
- ) });
44
- };
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import "styled-components";
4
+ import { am as i } from "../../components-C7JPRIEW.mjs";
45
5
  export {
46
- x as Progress
6
+ i as Progress
47
7
  };
@@ -1,153 +1,5 @@
1
- import { jsxs as $, jsx as n } from "react/jsx-runtime";
2
- import { styled as p } from "styled-components";
3
- import { v as h } from "../../utils-V0EumEPM.mjs";
4
- import "../../styles-CplEd2kw.mjs";
5
- import { Container as d } from "../container/index.js";
6
- import "../typography/heading/index.js";
7
- import "../typography/span/index.js";
8
- import { Text as f } from "../typography/text/index.js";
9
- const { getVariant: u } = h(
10
- (r) => ({
11
- compliance: `
12
- display: inline-flex;
13
-
14
- &.horizontal {
15
- height: ${r.spacing[0.75]};
16
- }
17
- &.vertical {
18
- width: ${r.spacing[0.75]};
19
- }
20
- `,
21
- default: `
22
- display: inline-flex;
23
-
24
- &.horizontal {
25
- height: ${r.spacing[0.5]};
26
- }
27
- &.vertical {
28
- width: ${r.spacing[0.5]};
29
- }
30
- .progress-bar {
31
- background-color: ${r.palette.primary[500]};
32
- }
33
- `,
34
- progressIndicator: `
35
- display: flex;
36
-
37
- &.horizontal {
38
- height: ${r.spacing[0.125]};
39
- }
40
- &.vertical {
41
- width: ${r.spacing[0.125]};
42
- }
43
- .progress-bar {
44
- background-color: ${r.palette.primary[500]};
45
- }
46
- `,
47
- progressIndicatorError: `
48
- display: flex;
49
-
50
- &.horizontal {
51
- height: ${r.spacing[0.125]};
52
- }
53
- &.vertical {
54
- width: ${r.spacing[0.125]};
55
- }
56
- .progress-bar {
57
- background-color: ${r.palette.error[200]};
58
- }
59
- `,
60
- small: `
61
- color: ${r.palette.primary[500]};
62
- display: inline-flex;
63
-
64
- &.horizontal {
65
- height: ${r.spacing[0.25]};
66
- }
67
- &.vertical {
68
- width: ${r.spacing[0.25]};
69
- }
70
- .progress-bar {
71
- background-color: ${r.palette.primary[500]};
72
- }
73
- `
74
- })
75
- ), x = (r, i) => i < 50 ? r.palette.error[500] : i < 80 ? r.palette.warning[500] : r.palette.success[500], b = p.div`
76
- ${({ theme: r, $minWidth: i, $orientation: a, $rounded: t, $variant: o }) => `
77
- background-color: ${r.palette.gray[100]};
78
- border-radius: ${t ? "100px" : "unset"};
79
- ${a === "horizontal" ? "min-width" : "min-height"}: ${i}px;
80
- ${a === "horizontal" ? "" : "height: 100%;"}
81
-
82
- ${u(r, o)}
83
-
84
- `}
85
- `, m = p.div`
86
- ${({ theme: r, $percentage: i, $rounded: a, $variant: t }) => `
87
- display: inline-flex;
88
- width: ${i}%;
89
- max-width: 100%;
90
- min-width: 0%;
91
- height: 100%;
92
- border-radius: ${a ? "100px" : "unset"};
93
- border-end-end-radius: ${a && i < 100 ? "0" : "inherit"};
94
- border-start-end-radius: ${a && i < 100 ? "0" : "inherit"};
95
- background-color: ${t === "compliance" ? x(r, i) : "inherit"};
96
- `}
97
- `, C = ({
98
- minWidth: r = 100,
99
- percentage: i,
100
- percentageLocation: a = "right",
101
- showPercentage: t = !1,
102
- orientation: o = "horizontal",
103
- rounded: s = !0,
104
- variant: e = "default"
105
- }) => {
106
- const l = t && a === "left", c = t ? /* @__PURE__ */ n(
107
- d,
108
- {
109
- alignItems: "center",
110
- display: "flex",
111
- justify: l ? "flex-end" : "flex-start",
112
- width: "40px",
113
- children: /* @__PURE__ */ n(f, { ml: 0.5, mr: l ? 0.5 : 0, size: "sm", children: `${i}%` })
114
- }
115
- ) : null, g = /* @__PURE__ */ n(
116
- b,
117
- {
118
- $minWidth: r,
119
- $orientation: o,
120
- $rounded: s,
121
- $variant: e,
122
- className: o,
123
- children: /* @__PURE__ */ n(
124
- m,
125
- {
126
- $percentage: i,
127
- $rounded: s,
128
- $variant: e,
129
- className: "progress-bar"
130
- }
131
- )
132
- }
133
- );
134
- return /* @__PURE__ */ $(
135
- d,
136
- {
137
- alignItems: "center",
138
- display: "inline-flex",
139
- flexDirection: l ? "row-reverse" : "row",
140
- height: o === "horizontal" ? "auto" : "100%",
141
- maxWidth: l ? `${r + 43}px` : void 0,
142
- minWidth: l ? `${r + 43}px` : void 0,
143
- textAlign: "end",
144
- children: [
145
- g,
146
- c
147
- ]
148
- }
149
- );
150
- };
1
+ import "react/jsx-runtime";
2
+ import { bq as a } from "../../components-C7JPRIEW.mjs";
151
3
  export {
152
- C as ProgressBar
4
+ a as ProgressBar
153
5
  };
@@ -1,125 +1,6 @@
1
- import { jsxs as k, jsx as e } from "react/jsx-runtime";
2
- import { forwardRef as u } from "react";
3
- import { styled as i } from "styled-components";
4
- const g = i.label`
5
- ${({ theme: r }) => `
6
- align-items: center;
7
- display: flex;
8
- color: ${r.palette.gray[600]};
9
- cursor: pointer;
10
- font-family: ${r.typography.type.primary};
11
- font-size: ${r.typography.text.sm};
12
- font-weight: ${r.typography.weight.regular};
13
- gap: ${r.spacing[0.5]};
14
- line-height: ${r.typography.text.lg};
15
- text-align: left;
16
- position: relative;
17
-
18
- &[aria-disabled="true"] {
19
- color: ${r.palette.gray[300]};
20
- cursor: not-allowed;
21
- }
22
-
23
- input {
24
- position: absolute;
25
- opacity: 0;
26
- cursor: pointer;
27
- width: 0;
28
- }
29
-
30
- .checkmark {
31
- position: relative;
32
- top: 0;
33
- left: 0;
34
- height: 16px;
35
- width: 16px;
36
- background-color: ${r.palette.white};
37
- border-radius: 50%;
38
- border: 1px solid ${r.palette.gray[600]};
39
- }
40
-
41
- input:disabled ~ .checkmark {
42
- border: 1px solid ${r.palette.gray[300]};
43
- background-color: ${r.palette.white};
44
- cursor: not-allowed;
45
- }
46
-
47
- input:not(:disabled):checked ~ .checkmark {
48
- background-color: ${r.palette.white};
49
- border: 1px solid ${r.palette.primary[500]};
50
- }
51
-
52
- input:not(:disabled):hover ~ .checkmark {
53
- background-color: ${r.palette.white};
54
- box-shadow: 0 0 0 4px ${r.palette.gray[100]};
55
- }
56
-
57
- input:not(:disabled):hover:checked ~ .checkmark {
58
- background-color: ${r.palette.white};
59
- box-shadow: 0 0 0 4px ${r.palette.primary[50]};
60
- }
61
-
62
- .checkmark::after {
63
- content: "";
64
- position: absolute;
65
- display: none;
66
- top: 3px;
67
- left: 3px;
68
- width: 8px;
69
- height: 8px;
70
- border-radius: 50%;
71
- background: ${r.palette.primary[500]};
72
- }
73
-
74
- input:checked ~ .checkmark::after {
75
- display: block;
76
- }
77
-
78
- input:disabled:checked ~ .checkmark::after {
79
- background-color: ${r.palette.gray[300]};
80
- }
81
-
82
- `}
83
- `, b = i.span.attrs({ className: "checkmark" })``, $ = u(function({
84
- defaultChecked: t = !1,
85
- disabled: a = !1,
86
- label: l,
87
- name: o,
88
- onChange: p,
89
- onClick: c,
90
- value: d,
91
- ...n
92
- }, s) {
93
- return /* @__PURE__ */ k(
94
- g,
95
- {
96
- "aria-disabled": a,
97
- "aria-label": o,
98
- role: "radiogroup",
99
- children: [
100
- /* @__PURE__ */ e(
101
- "input",
102
- {
103
- "aria-checked": t,
104
- "aria-disabled": a,
105
- "aria-label": o,
106
- defaultChecked: t,
107
- disabled: a,
108
- name: o,
109
- onChange: p,
110
- onClick: c,
111
- ref: s,
112
- type: "radio",
113
- value: d,
114
- ...n
115
- }
116
- ),
117
- /* @__PURE__ */ e(b, {}),
118
- l ?? null
119
- ]
120
- }
121
- );
122
- });
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { ao as i } from "../../components-C7JPRIEW.mjs";
123
4
  export {
124
- $ as RadioButton
5
+ i as RadioButton
125
6
  };
@@ -1,42 +1,6 @@
1
- import { jsx as s } from "react/jsx-runtime";
2
- import { useState as i, useEffect as p, useCallback as m } from "react";
3
- import { styled as a } from "styled-components";
4
- import { IconButton as u } from "../icon-button/index.js";
5
- const d = a.div.attrs({
6
- className: "comp-scroll-up"
7
- })`
8
- bottom: 15px;
9
- position: fixed;
10
- right: 140px;
11
- z-index: 100;
12
- `, g = ({
13
- scrollerId: t = "dashboard",
14
- visibleAt: e = 500
15
- }) => {
16
- const [n, l] = i(!1), [o, r] = i(null);
17
- p(() => {
18
- r(document.getElementById(t)), o == null || o.addEventListener("scroll", () => {
19
- l(o.scrollTop > e);
20
- });
21
- }, [o, t, e]);
22
- const c = m(() => {
23
- o == null || o.scrollTo({
24
- behavior: "smooth",
25
- top: 0
26
- });
27
- }, [o]);
28
- return n ? /* @__PURE__ */ s(d, { children: /* @__PURE__ */ s(
29
- u,
30
- {
31
- height: "40px",
32
- icon: "arrow-up",
33
- iconSize: "sm",
34
- id: "scroll-up",
35
- onClick: c,
36
- width: "40px"
37
- }
38
- ) }) : null;
39
- };
1
+ import "react/jsx-runtime";
2
+ import "react";
3
+ import { ap as m } from "../../components-C7JPRIEW.mjs";
40
4
  export {
41
- g as ScrollUpButton
5
+ m as ScrollUpButton
42
6
  };
@@ -1,105 +1,9 @@
1
- import { jsxs as l, jsx as r } from "react/jsx-runtime";
2
- import { u as h } from "../../index-DwznImvK.mjs";
3
- import { isEmpty as $ } from "lodash";
4
- import { forwardRef as b, useState as w, useCallback as S, Fragment as k } from "react";
5
- import { styled as i, useTheme as C } from "styled-components";
6
- import { Icon as z } from "../icon/index.js";
7
- import { IconButton as c } from "../icon-button/index.js";
8
- import { u as O } from "../../use-click-outside-BUll8Ag-.mjs";
9
- const v = i.input`
10
- ${({ theme: o }) => `
11
- background: none;
12
- border: none !important;
13
- box-shadow: none;
14
- box-sizing: border-box;
15
- color: ${o.palette.gray[800]};
16
- font-family: ${o.typography.type.primary};
17
- font-size: ${o.typography.text.sm};
18
- outline: none;
19
- width: 100%;
20
-
21
- &::placeholder {
22
- color: ${o.palette.gray[400]};
23
- }
24
- `}
25
- `, I = i.div`
26
- ${({ theme: o }) => `
27
- align-items: center;
28
- background-color: ${o.palette.white};
29
- border: 1px solid ${o.palette.gray[300]};
30
- border-radius: ${o.spacing[0.5]};
31
- display: flex;
32
- height: 40px;
33
- gap: ${o.spacing[0.5]};
34
- padding: ${o.spacing[0.5]};
35
- width: 100%;
36
-
37
- &:hover {
38
- border-color: ${o.palette.gray[600]};
39
- }
40
-
41
- &:focus-within {
42
- border: 2px solid ${o.palette.black};
43
- }
44
- `}
45
- `, T = i.div`
46
- ${({ theme: o }) => `
47
- background-color: ${o.palette.white};
48
- border-radius: ${o.spacing[0.5]};
49
- width: 250px;
50
- `}
51
- `, G = b(function({ name: n, smallSearch: d = !1, value: a, ...g }, f) {
52
- const t = C(), [y, s] = w(!1), { refs: e, floatingStyles: u } = h(), m = S(() => {
53
- s((x) => !x);
54
- }, []);
55
- O(
56
- e.floating.current,
57
- () => {
58
- s(!1);
59
- },
60
- !0
61
- );
62
- const p = /* @__PURE__ */ l(I, { children: [
63
- /* @__PURE__ */ r(
64
- z,
65
- {
66
- icon: "magnifying-glass",
67
- iconColor: t.palette.gray[700],
68
- iconSize: "xs",
69
- iconType: "fa-light"
70
- }
71
- ),
72
- /* @__PURE__ */ r(v, { ...g, id: n, name: n, ref: f, value: a }),
73
- !$(a) && /* @__PURE__ */ r(
74
- c,
75
- {
76
- icon: "xmark",
77
- iconColor: t.palette.gray[300],
78
- iconSize: "xs",
79
- iconType: "fa-light",
80
- px: 0.25,
81
- py: 0.25,
82
- type: "reset",
83
- variant: "ghost"
84
- }
85
- )
86
- ] });
87
- return d ? /* @__PURE__ */ l(k, { children: [
88
- /* @__PURE__ */ r(
89
- c,
90
- {
91
- border: `1px solid ${t.palette.gray[300]} !important`,
92
- icon: "magnifying-glass",
93
- iconSize: "xs",
94
- iconType: "fa-light",
95
- onClick: m,
96
- ref: e.setReference,
97
- variant: "ghost"
98
- }
99
- ),
100
- y ? /* @__PURE__ */ r(T, { ref: e.setFloating, style: u, children: p }) : void 0
101
- ] }) : p;
102
- });
1
+ import "react/jsx-runtime";
2
+ import "../../vendor-_XDhaIzo.mjs";
3
+ import "lodash";
4
+ import "react";
5
+ import "styled-components";
6
+ import { aq as e } from "../../components-C7JPRIEW.mjs";
103
7
  export {
104
- G as Search
8
+ e as Search
105
9
  };