@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,76 +0,0 @@
1
- import { styled as i } from "styled-components";
2
- const t = i.div`
3
- ${({ theme: n }) => `
4
- background-color: ${n.palette.gray[100]};
5
- border-radius: ${n.spacing[0.25]};
6
- display: inline-flex;
7
- padding: ${n.spacing[1]};
8
- position: relative;
9
- width: fit-content;
10
-
11
- .line-highlight.language-none {
12
- background: ${n.palette.gray[100]};
13
- }
14
-
15
- .line-highlight {
16
- background: hsl(354deg 88% 93% / 50%);
17
- font-family: ${n.typography.type.mono};
18
- font-size: ${n.typography.text.xs};
19
- line-height: ${n.spacing[1]};
20
- }
21
-
22
- .line-highlight::before,
23
- .line-highlight[data-end]::after {
24
- background: ${n.palette.primary[300]};
25
- background-color: hsl(355deg 89% 36%);
26
- color: ${n.palette.white};
27
- }
28
-
29
- pre code {
30
- color: #161616;
31
- font-family: ${n.typography.type.mono};
32
- font-size: ${n.typography.text.xs};
33
- line-height: ${n.spacing[1]};
34
- }
35
-
36
- pre:not(.line-highlight) {
37
- margin-top: unset;
38
- margin-bottom: unset;
39
- padding: unset;
40
- width: 100%;
41
- }
42
-
43
- span:hover {
44
- background-color: ${n.palette.gray[200]};
45
- }
46
-
47
- .no-data,
48
- pre.line-highlight {
49
- background-color: ${n.palette.gray[100]};
50
- padding-top: unset;
51
- padding-bottom: unset;
52
- }
53
- `}
54
- `, a = i.div`
55
- ${({ theme: n }) => `
56
- align-items: end;
57
- background-color: ${n.palette.gray[100]};
58
- display: flex;
59
- flex-direction: column;
60
- justify-content: space-between;
61
- min-width: 103px;
62
- margin-right: ${n.spacing[1]};
63
- padding-top: ${n.spacing[1]};
64
- padding-bottom: ${n.spacing[1]};
65
- position: relative;
66
- padding-left: unset;
67
-
68
- button:hover:not([disabled]) {
69
- background-color: ${n.palette.gray[200]};
70
- }
71
- `}
72
- `;
73
- export {
74
- a as B,
75
- t as C
76
- };
@@ -1,228 +0,0 @@
1
- import { styled as g } from "styled-components";
2
- import { theme as n } from "./components/colors/index.js";
3
- const G = [
4
- // IPaddingModifiable
5
- "padding",
6
- "px",
7
- "py",
8
- "pl",
9
- "pr",
10
- "pt",
11
- "pb",
12
- // IMarginModifiable
13
- "margin",
14
- "mx",
15
- "my",
16
- "ml",
17
- "mr",
18
- "mt",
19
- "mb",
20
- // IPositionModifiable
21
- "zIndex",
22
- "position",
23
- "top",
24
- "right",
25
- "bottom",
26
- "left",
27
- // IBorderModifiable
28
- "border",
29
- "borderTop",
30
- "borderRight",
31
- "borderBottom",
32
- "borderLeft",
33
- "borderColor",
34
- "borderRadius",
35
- // IDisplayModifiable
36
- "scroll",
37
- "visibility",
38
- "display",
39
- "height",
40
- "width",
41
- "maxHeight",
42
- "maxWidth",
43
- "minHeight",
44
- "minWidth",
45
- "shadow",
46
- "bgColor",
47
- "bgGradient",
48
- "gap",
49
- "flexDirection",
50
- "flexGrow",
51
- "justify",
52
- "justifySelf",
53
- "alignItems",
54
- "alignSelf",
55
- "wrap",
56
- // ITextModifiable
57
- "color",
58
- "fontFamily",
59
- "fontSize",
60
- "fontWeight",
61
- "textAlign",
62
- "whiteSpace",
63
- "letterSpacing",
64
- "lineSpacing",
65
- "textDecoration",
66
- "textOverflow",
67
- "whiteSpace",
68
- "wordBreak",
69
- "wordWrap",
70
- // IInteractionModifiable
71
- "cursor",
72
- "transition",
73
- "borderColorHover",
74
- "bgColorHover",
75
- "shadowHover"
76
- ], o = (t, e) => e === void 0 ? "" : `${t}: ${e};`, $ = (t) => {
77
- const e = t.py ?? t.pt ?? 0, i = t.px ?? t.pr ?? 0, r = t.py ?? t.pb ?? 0, c = t.px ?? t.pl ?? 0;
78
- if (t.padding) {
79
- const [a, s, d, l] = t.padding;
80
- return `padding: ${n.spacing[a]} ${n.spacing[s]} ${n.spacing[d]} ${n.spacing[l]};`;
81
- }
82
- return `padding: ${n.spacing[e]} ${n.spacing[i]} ${n.spacing[r]} ${n.spacing[c]};`;
83
- }, f = (t) => {
84
- const e = t.my ?? t.mt ?? 0, i = t.mx ?? t.mr ?? 0, r = t.my ?? t.mb ?? 0, c = t.mx ?? t.ml ?? 0;
85
- if (t.margin) {
86
- const [a, s, d, l] = t.margin;
87
- return `margin: ${n.spacing[a]} ${n.spacing[s]} ${n.spacing[d]} ${n.spacing[l]};`;
88
- }
89
- return `margin: ${n.spacing[e]} ${n.spacing[i]} ${n.spacing[r]} ${n.spacing[c]};`;
90
- }, h = (t) => {
91
- const e = o("position", t.position), i = o("top", t.top), r = o("right", t.right), c = o("bottom", t.bottom), a = o("left", t.left), s = o("z-index", t.zIndex);
92
- return `
93
- ${e}
94
- ${i}
95
- ${r}
96
- ${c}
97
- ${a}
98
- ${s}
99
- `;
100
- }, m = (t) => {
101
- const e = o("border", t.border), i = o("border-top", t.borderTop), r = o("border-right", t.borderRight), c = o("border-bottom", t.borderBottom), a = o("border-left", t.borderLeft), s = o("border-color", t.borderColor), d = o("border-radius", t.borderRadius);
102
- return `
103
- ${e}
104
- ${i}
105
- ${r}
106
- ${c}
107
- ${a}
108
- ${s}
109
- ${d}
110
- `;
111
- }, R = (t) => t.includes("x") ? "overflow-x: auto;" : "", P = (t) => t.includes("y") ? "overflow-y: auto;" : "", b = (t) => {
112
- const e = t.scroll ? `
113
- ${R(t.scroll)}
114
- ${P(t.scroll)}
115
- ` : "", i = o("visibility", t.visibility), r = o("display", t.display), c = o("height", t.height), a = o("width", t.width), s = o("max-height", t.maxHeight), d = o("max-width", t.maxWidth), l = o("min-height", t.minHeight), y = o("min-width", t.minWidth), S = o(
116
- "box-shadow",
117
- t.shadow ? n.shadows[t.shadow] : void 0
118
- ), v = o(
119
- "gap",
120
- t.gap === void 0 ? void 0 : n.spacing[t.gap]
121
- ), C = o("background-color", t.bgColor), H = o("background", t.bgGradient), B = o("flex-direction", t.flexDirection), W = o("flex-grow", t.flexGrow), j = o("justify-content", t.justify), k = o("justify-self", t.justifySelf), z = o("align-items", t.alignItems), I = o("align-self", t.alignSelf), D = o("flex-wrap", t.wrap);
122
- return `
123
- ${e}
124
- ${i}
125
- ${r}
126
- ${c}
127
- ${a}
128
- ${s}
129
- ${d}
130
- ${l}
131
- ${y}
132
- ${S}
133
- ${C}
134
- ${H}
135
- ${v}
136
- ${B}
137
- ${W}
138
- ${j}
139
- ${k}
140
- ${z}
141
- ${I}
142
- ${D}
143
- `;
144
- }, w = (t) => {
145
- const e = o("color", t.color), i = o("font-family", t.fontFamily), r = o("font-size", t.fontSize), c = o("font-weight", t.fontWeight), a = o("line-spacing", t.letterSpacing), s = o("line-height", t.lineSpacing), d = o("text-align", t.textAlign), l = o("text-decoration", t.textDecoration), y = o("text-overflow", t.textOverflow), S = o("white-space", t.whiteSpace), v = o("word-break", t.wordBreak), C = o("word-wrap", t.wordWrap);
146
- return `
147
- ${e}
148
- ${i}
149
- ${r}
150
- ${c}
151
- ${a}
152
- ${s}
153
- ${d}
154
- ${l}
155
- ${y}
156
- ${S}
157
- ${v}
158
- ${C}
159
- `;
160
- }, x = (t) => {
161
- const e = o("cursor", t.cursor), i = o("border-color", t.borderColorHover), r = o("background-color", t.bgColorHover), c = o(
162
- "box-shadow",
163
- t.shadowHover === void 0 ? void 0 : n.shadows[t.shadowHover]
164
- ), a = o("transition", t.transition);
165
- return `
166
- ${e}
167
-
168
- &:hover {
169
- ${a || "transition: all 0.2s;"}
170
- ${i}
171
- ${r}
172
- ${c}
173
- }
174
- `;
175
- }, u = () => ({
176
- shouldForwardProp: (t) => !G.includes(t)
177
- }), A = g.div.withConfig(u())`
178
- ${$}
179
- ${f}
180
- ${h}
181
- ${b}
182
- ${w}
183
- ${m}
184
- ${x}
185
- `, L = g.button.withConfig(
186
- u()
187
- )`
188
- ${$}
189
- ${f}
190
- ${h}
191
- ${b}
192
- ${w}
193
- ${m}
194
- ${x}
195
- `, O = g.p.withConfig(u())`
196
- ${$}
197
- ${f}
198
- ${h}
199
- ${b}
200
- ${w}
201
- ${m}
202
- ${x}
203
- `, M = g.span.withConfig(
204
- u()
205
- )`
206
- ${$}
207
- ${f}
208
- ${h}
209
- ${b}
210
- ${w}
211
- ${m}
212
- ${x}
213
- `;
214
- export {
215
- A as B,
216
- L as a,
217
- O as b,
218
- M as c,
219
- w as d,
220
- f as e,
221
- x as f,
222
- h as g,
223
- G as h,
224
- b as i,
225
- m as j,
226
- u as k,
227
- $ as s
228
- };
@@ -1,110 +0,0 @@
1
- import { styled as i, css as e } from "styled-components";
2
- import { a as s } from "./styles-CplEd2kw.mjs";
3
- import "react/jsx-runtime";
4
- const d = i(s)`
5
- align-items: center;
6
- background-color: inherit;
7
- border-color: inherit;
8
- display: flex;
9
- height: 38px;
10
- justify-content: center;
11
- width: 40px;
12
- margin: ${({ $margin: t = "0" }) => e`
13
- ${t}
14
- `};
15
-
16
- &:hover:not(:disabled) {
17
- background-color: ${({ theme: t }) => t.palette.gray[100]};
18
- cursor: pointer;
19
- }
20
- `, g = i.div`
21
- ${({ theme: t }) => `
22
- align-items: flex-start;
23
- background: ${t.palette.white};
24
- border: 1px solid ${t.palette.gray[200]};
25
- border-radius: ${t.spacing[0.5]};
26
- box-shadow: ${t.shadows.md};
27
- display: inline-flex;
28
- flex-direction: column;
29
- gap: ${t.spacing[0.25]};
30
- height: auto;
31
- padding: ${t.spacing[0.25]};
32
- width: 292px;
33
- `}
34
- `, u = i.button`
35
- ${({ theme: t, $disabled: o, $focus: a, $header: n }) => {
36
- const r = a ? "34px" : "40px";
37
- return `
38
- align-items: center;
39
- border-radius: ${n ? `0 ${t.spacing[0.5]} ${t.spacing[0.5]} 0` : "4px"};
40
- border-left: inherit;
41
- display: flex;
42
- height: ${n ? "38px" : r};
43
- justify-content: center;
44
- outline: none;
45
- width: ${n ? "38px" : "40px"};
46
-
47
- &:hover {
48
- background-color: ${t.palette.gray[o ? 500 : 100]};
49
- }
50
- `;
51
- }}
52
- `, $ = i.div`
53
- ${({ theme: t }) => `
54
- align-items: center;
55
- background: transparent;
56
- border-radius: ${t.spacing[0.5]} 0 0 ${t.spacing[0.5]};
57
- border-color: inherit;
58
- display: flex;
59
- height: 100%;
60
- justify-content: space-between;
61
- width: calc(100% - 40px);
62
- `}
63
- `, x = i.div`
64
- align-items: center;
65
- display: flex;
66
- justify-content: flex-end;
67
- gap: ${({ theme: t }) => t.spacing[0.5]};
68
- flex: 1 0 0;
69
- `, y = i.div`
70
- ${({ theme: t }) => `
71
- align-items: center;
72
- align-self: stretch;
73
- background-color: ${t.palette.gray[200]};
74
- border-radius: ${t.spacing[0.25]};
75
- display: flex;
76
- font-family: ${t.typography.type.primary};
77
- gap: ${t.spacing[0.25]};
78
- line-height: ${t.spacing[1.5]};
79
- padding: 2px ${t.spacing[0.25]};
80
- `}
81
- `, b = i.button`
82
- ${({ theme: t }) => `
83
- align-items: center;
84
- background-color: inherit;
85
- border: 0.5px solid ${t.palette.gray[200]};
86
- border-radius: 7px;
87
- color: ${t.palette.gray[800]};
88
- cursor: pointer;
89
- display: flex;
90
- font-weight: ${t.typography.weight.regular};
91
- justify-content: center;
92
- gap: 10px;
93
- padding: 2px 10px;
94
-
95
- &#active {
96
- background-color: ${t.palette.white};
97
- box-shadow: ${t.shadows.md};
98
- font-weight: ${t.typography.weight.bold};
99
- }
100
- `}
101
- `;
102
- export {
103
- u as C,
104
- g as D,
105
- $ as I,
106
- d as S,
107
- x as T,
108
- y as a,
109
- b
110
- };
@@ -1,74 +0,0 @@
1
- import { NavLink as o } from "react-router-dom";
2
- import { styled as t } from "styled-components";
3
- const p = t.button`
4
- ${({ theme: a }) => `
5
- align-items: center;
6
- color: ${a.palette.gray[500]};
7
- display: flex;
8
- gap: ${a.spacing[0.625]};
9
- justify-content: center;
10
- padding: ${a.spacing[0.75]};
11
- text-align: center;
12
- width: 151px;
13
-
14
- &.active {
15
- color: ${a.palette.gray[800]};
16
- border-bottom: 3px solid ${a.palette.primary[400]};
17
- }
18
-
19
- &:hover {
20
- color: ${a.palette.gray[800]};
21
- }
22
- `}
23
- `, n = t.div`
24
- ${({ theme: a }) => `
25
- align-items: center;
26
- border-bottom: 2px solid ${a.palette.gray[200]};
27
- display: flex;
28
- gap: ${a.spacing[3]};
29
- height: ${a.spacing[3]};
30
- width: max-content;
31
- `}
32
- `, l = t(o)`
33
- ${({ theme: a }) => `
34
- align-items: center;
35
- background: transparent;
36
- cursor: pointer;
37
- color: ${a.palette.gray[800]};
38
- font-family: ${a.typography.type.primary};
39
- font-size: ${a.typography.text.sm};
40
- display: flex;
41
- font-weight: ${a.typography.weight.regular};
42
- padding: ${a.spacing[0.625]} ${a.spacing[0.5]};
43
- position: relative;
44
- text-align: center;
45
- text-decoration: unset;
46
-
47
- &:disabled {
48
- cursor: not-allowed;
49
- background-color: ${a.palette.gray[300]};
50
- color: ${a.palette.gray[300]};
51
- }
52
-
53
- &:hover:not([disabled]) {
54
- background-color: ${a.palette.gray[100]};
55
- color: ${a.palette.gray[800]};
56
- }
57
-
58
- &.active {
59
- background-color: transparent;
60
- border-bottom: solid 4px ${a.palette.primary[500]};
61
- padding-bottom: calc(${a.spacing[0.625]} - 4px);
62
-
63
- &:hover {
64
- background-color: transparent;
65
- border-bottom: solid 4px ${a.palette.primary[500]};
66
- }
67
- }
68
- `}
69
- `;
70
- export {
71
- n as S,
72
- l as T,
73
- p as a
74
- };
@@ -1,23 +0,0 @@
1
- import { useState as n, useEffect as a } from "react";
2
- const m = (t, r) => {
3
- const [g, o] = n(0), [e, c] = n(0);
4
- return a(() => {
5
- e === 100 && (() => {
6
- o(
7
- (s) => s === r - 1 ? 0 : s + 1
8
- );
9
- })();
10
- }, [e, r]), a(() => {
11
- const i = setInterval(() => {
12
- c(
13
- (s) => s === 100 ? 0 : s + 1
14
- );
15
- }, t);
16
- return () => {
17
- clearInterval(i);
18
- };
19
- }, [t]), { cycle: g, progress: e, setCycle: o, setProgress: c };
20
- };
21
- export {
22
- m as u
23
- };
@@ -1,18 +0,0 @@
1
- import { useEffect as i } from "react";
2
- const s = (r, c, n = !1) => {
3
- i(() => {
4
- var o;
5
- const e = (t) => {
6
- r && !r.contains(t.target) && c();
7
- };
8
- return n ? (document.addEventListener("click", e, !0), () => {
9
- document.removeEventListener("click", e, !0);
10
- }) : ((o = document.getElementById("root")) == null || o.addEventListener("click", e, !0), () => {
11
- var t;
12
- (t = document.getElementById("root")) == null || t.removeEventListener("click", e, !0);
13
- });
14
- }, [n, r, c]);
15
- };
16
- export {
17
- s as u
18
- };