@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
package/package.json CHANGED
@@ -55,6 +55,7 @@
55
55
  "postcss": "8.4.49",
56
56
  "postcss-styled-syntax": "0.7.0",
57
57
  "remark-gfm": "4.0.0",
58
+ "rollup-plugin-visualizer": "5.14.0",
58
59
  "storybook": "8.4.7",
59
60
  "stylelint": "16.12.0",
60
61
  "stylelint-config-standard": "36.0.1",
@@ -74,12 +75,7 @@
74
75
  ".": {
75
76
  "types": "./dist/index.d.ts",
76
77
  "import": "./dist/index.js"
77
- },
78
- "./button": {
79
- "types": "./dist/components/button/index.d.ts",
80
- "import": "./dist/components/button/index.js"
81
- },
82
- "./styles": "./dist/assets/design.css"
78
+ }
83
79
  },
84
80
  "files": [
85
81
  "README.md",
@@ -117,5 +113,5 @@
117
113
  "test-storybook": "test-storybook"
118
114
  },
119
115
  "typings": "./dist/index.d.ts",
120
- "version": "3.1.13"
116
+ "version": "3.2.0"
121
117
  }
@@ -1,6 +0,0 @@
1
- function e(t) {
2
- return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
3
- }
4
- export {
5
- e as g
6
- };
@@ -1,234 +0,0 @@
1
- import { jsxs as p, jsx as s } from "react/jsx-runtime";
2
- import { styled as i } from "styled-components";
3
- import { theme as d } from "./components/colors/index.js";
4
- import { Icon as c } from "./components/icon/index.js";
5
- import "./components/typography/heading/index.js";
6
- import "./components/typography/span/index.js";
7
- import { Text as l } from "./components/typography/text/index.js";
8
- const g = i.a`
9
- ${({ theme: a }) => `
10
- align-items: center;
11
- display: flex;
12
- background: ${a.palette.white};
13
- border-radius: ${a.spacing[0.5]};
14
- cursor: pointer;
15
- gap: ${a.spacing[1]};
16
- padding:
17
- ${a.spacing[0.5]}
18
- ${a.spacing[1]}
19
- ${a.spacing[0.5]}
20
- ${a.spacing[0.5]};
21
- width: 1143px;
22
-
23
- &:hover {
24
- background: ${a.palette.gray[100]};
25
-
26
- > div.icon-wrap {
27
- background: ${a.palette.gradients["01"]};
28
-
29
- path {
30
- fill: ${a.palette.white};
31
- }
32
- }
33
- }
34
-
35
- @media screen
36
- and (min-width: ${a.breakpoints.sm})
37
- and (max-width: ${a.breakpoints.md})
38
- {
39
- width: 905px;
40
- }
41
-
42
- @media screen
43
- and (min-width: 40em)
44
- and (max-width: ${a.breakpoints.sm})
45
- {
46
- width: 475px;
47
- }
48
-
49
- @media screen and (max-width: 40em) {
50
- width: 270px;
51
- }
52
- `}
53
- `, $ = i.div.attrs({ className: "icon-wrap" })`
54
- ${({ theme: a }) => `
55
- align-items: center;
56
- background: ${a.palette.primary[25]};
57
- border-radius: ${a.spacing[0.25]};
58
- display: flex;
59
- justify-content: center;
60
- min-width: ${a.spacing[2.5]};
61
- height: ${a.spacing[2.5]};
62
- padding: ${a.spacing[0.5]};
63
-
64
- span {
65
- font-size: 20px;
66
- }
67
- `}
68
- `, k = i.div`
69
- ${({ theme: a }) => `
70
- align-items: flex-start;
71
- display: flex;
72
- flex-direction: column;
73
- gap: ${a.spacing[1.5]};
74
- width: 1193px;
75
-
76
- > :is(form, .dropdown) {
77
- border-radius: ${a.spacing[0.5]};
78
- border: 1px solid ${a.palette.gray[200]};
79
- background-color: ${a.palette.white};
80
- }
81
-
82
- @media screen
83
- and (min-width: ${a.breakpoints.sm})
84
- and (max-width: ${a.breakpoints.md})
85
- {
86
- width: 954px;
87
- }
88
-
89
- @media screen
90
- and (min-width: 40em)
91
- and (max-width: ${a.breakpoints.sm})
92
- {
93
- width: 526px;
94
- }
95
-
96
- @media screen and (max-width: 40em) {
97
- width: 320px;
98
- }
99
- `}
100
- `, h = i.form`
101
- ${({ theme: a }) => `
102
- align-items: center;
103
- display: flex;
104
- gap: ${a.spacing[0.5]};
105
- justify-content: space-between;
106
- padding: ${a.spacing[1]} ${a.spacing[1.5]};
107
- width: 100%;
108
- `}
109
- `, S = i.input`
110
- ${({ theme: a }) => `
111
- flex: 1 0 0;
112
- border: none;
113
- color: ${a.palette.gray[600]};
114
- font-family: ${a.typography.type.primary};
115
- font-size: ${a.typography.text.md};
116
- font-weight: ${a.typography.weight.regular};
117
- line-height: ${a.spacing[1.5]};
118
- outline: none;
119
-
120
- &::placeholder {
121
- color: ${a.palette.gray[400]};
122
- }
123
-
124
- &::-webkit-search-decoration,
125
- &::-webkit-search-cancel-button,
126
- &::-webkit-search-results-button,
127
- &::-webkit-search-results-decoration {
128
- -webkit-appearance:none;
129
- }
130
-
131
- @media screen and (max-width: ${a.breakpoints.mobile}) {
132
- font-size: ${a.typography.text.sm};
133
- }
134
- `}
135
- `, v = i.button`
136
- ${({ theme: a }) => `
137
- align-items: center;
138
- border-radius: ${a.spacing[0.5]};
139
- display: flex;
140
- width: ${a.spacing[2.5]};
141
- height: ${a.spacing[2.5]};
142
- padding: ${a.spacing[0.625]} ${a.spacing[1]};
143
- justify-content: center;
144
- gap: ${a.spacing[0.5]};
145
- flex-shrink: 0;
146
-
147
- span {
148
- color: ${a.palette.gray[400]};
149
- }
150
-
151
- &:hover {
152
- background-color: ${a.palette.gray[100]};
153
- }
154
- `}
155
- `, z = i.div.attrs({ className: "dropdown" })`
156
- ${({ theme: a, $empty: r = !1, $showHits: n = !1 }) => `
157
- align-items: flex-start;
158
- align-self: stretch;
159
- background-repeat: no-repeat;
160
- background-size: 100% 100%;
161
- display: flex;
162
- flex-direction: column;
163
- gap: ${a.spacing[0.5]};
164
- max-height: ${n ? "270px" : "500px"};
165
- overflow: hidden auto;
166
- padding: ${a.spacing[1.5]};
167
- scrollbar-color: ${a.palette.gray[600]} ${a.palette.gray[100]};
168
- scroll-padding: ${a.spacing[0.5]};
169
- scrollbar-width: thin;
170
-
171
- @media screen and (max-width: ${a.breakpoints.sm}) and (${!r}) {
172
- max-height: 410px;
173
- }
174
- ${r && `
175
- @media screen and (min-width: ${a.breakpoints.mobile}) {
176
- border: none !important;
177
- background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729784164/airs/search-bar/empty_state_bg.webp);
178
- }
179
- @media screen and (max-width: ${a.breakpoints.mobile}) {
180
- border: none !important;
181
- background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729783908/airs/search-bar/empty_state_bg_mobile.webp);
182
- }
183
- `}
184
-
185
- &::-webkit-scrollbar {
186
- height: ${a.spacing[0.5]};
187
- width: ${a.spacing[0.5]};
188
- }
189
- &::-webkit-scrollbar-track {
190
- background: ${a.palette.gray[100]};
191
- }
192
- &::-webkit-scrollbar-thumb {
193
- background-color: ${a.palette.gray[600]};
194
- border-radius: ${a.spacing[5]};
195
- height: ${a.spacing[0.5]};
196
- }
197
- `}
198
- `, I = ({
199
- hit: a,
200
- icon: r = "infinity",
201
- showIcon: n = !1
202
- }) => {
203
- const { slug: t, title: e } = a, o = String(t).startsWith("/pages/") ? String(t).replace("/pages/", "/") : String(t);
204
- return /* @__PURE__ */ p(g, { href: o, rel: "nofollow noopener noreferrer", children: [
205
- n && /* @__PURE__ */ s($, { children: /* @__PURE__ */ s(
206
- c,
207
- {
208
- icon: r,
209
- iconClass: "fill-gradient-01",
210
- iconSize: "sm",
211
- iconType: "fa-light"
212
- }
213
- ) }),
214
- /* @__PURE__ */ s(
215
- l,
216
- {
217
- color: d.palette.gray[800],
218
- lineSpacing: 1.5,
219
- size: "md",
220
- sizeSm: "sm",
221
- whiteSpace: "wrap",
222
- children: String(e)
223
- }
224
- )
225
- ] });
226
- };
227
- export {
228
- I,
229
- k as S,
230
- h as a,
231
- S as b,
232
- v as c,
233
- z as d
234
- };
@@ -1,135 +0,0 @@
1
- import { jsx as a } from "react/jsx-runtime";
2
- import { styled as r } from "styled-components";
3
- import "./components/typography/heading/index.js";
4
- import "./components/typography/span/index.js";
5
- import { Text as n } from "./components/typography/text/index.js";
6
- const p = r.button`
7
- ${({ theme: o }) => `
8
- align-items: center;
9
- border-left: 3px solid transparent;
10
- display: flex;
11
- gap: ${o.spacing[0.625]};
12
- height: 42px;
13
- min-width: 50px;
14
- padding: ${o.spacing[0.625]} ${o.spacing[1]};
15
-
16
- &.dark {
17
- background-color: ${o.palette.gray[800]};
18
- color: ${o.palette.gray[25]};
19
-
20
- &.disabled {
21
- border-color: ${o.palette.gray[500]};
22
- color: ${o.palette.gray[500]};
23
- cursor: not-allowed;
24
- }
25
-
26
- &:hover:not(.disabled) {
27
- background-color: ${o.palette.gray[700]};
28
- border-color: ${o.palette.primary[400]};
29
- }
30
- }
31
-
32
- &.light {
33
- background-color: ${o.palette.gray[50]};
34
- color: ${o.palette.gray[800]};
35
-
36
- &.disabled {
37
- background-color: ${o.palette.white};
38
- border-color: ${o.palette.gray[300]};
39
- color: ${o.palette.gray[300]};
40
- cursor: not-allowed;
41
- }
42
-
43
- &:hover:not(.disabled) {
44
- background-color: ${o.palette.gray[100]};
45
- border-color: ${o.palette.primary[400]};
46
- }
47
- }
48
- `}
49
- `, $ = r.div`
50
- ${({ theme: o }) => `
51
- align-items: center;
52
- background-color: transparent;
53
- border-bottom: 2px solid transparent;
54
- display: flex;
55
- font-family: ${o.typography.type.primary};
56
- font-size: ${o.typography.text.sm};
57
- font-weight: ${o.typography.weight.regular};
58
- gap: ${o.spacing[0.5]};
59
- height: 30px;
60
- justify-content: center;
61
- padding: ${o.spacing[0.25]};
62
- margin-bottom: ${o.spacing[0.25]};
63
- min-width: 50px;
64
- width: max-content;
65
- z-index: 11;
66
-
67
- &:hover {
68
- border-color: ${o.palette.primary[400]};
69
- }
70
-
71
- &.dark {
72
- color: ${o.palette.gray[25]};
73
- }
74
-
75
- &.light {
76
- color: ${o.palette.gray[800]};
77
- }
78
- `}
79
- `, y = r.div`
80
- ${({ theme: o }) => `
81
- background-color: ${o.palette.white};
82
- border-radius: 0 0 ${o.spacing[0.25]} ${o.spacing[0.25]};
83
- box-shadow: ${o.shadows.lg};
84
- display: none;
85
- flex-direction: column;
86
- position: absolute;
87
- top: 100%;
88
- z-index: 11;
89
-
90
- > button:last-child {
91
- border-radius: 0 0 ${o.spacing[0.25]} ${o.spacing[0.25]};
92
- }
93
- `}
94
- `, b = r.div`
95
- ${({ theme: o }) => `
96
- align-items: flex-start;
97
- cursor: pointer;
98
- display: flex;
99
- flex-direction: column;
100
- gap: ${o.spacing[0.25]};
101
- height: max-content;
102
- position: relative;
103
- width: max-content;
104
- z-index: 10;
105
-
106
- &:hover {
107
- > div:first-child {
108
- border-color: ${o.palette.primary[400]};
109
- }
110
-
111
- > div:last-child {
112
- display: flex;
113
- }
114
- }
115
- `}
116
- `, x = ({
117
- disabled: o = !1,
118
- mode: t,
119
- onClick: i,
120
- text: l
121
- }) => /* @__PURE__ */ a(
122
- p,
123
- {
124
- className: `${o && "disabled"} ${t}`,
125
- disabled: o,
126
- onClick: i,
127
- children: /* @__PURE__ */ a(n, { color: "inherit", size: "sm", sizeSm: "xs", children: l })
128
- }
129
- );
130
- export {
131
- x as I,
132
- b as S,
133
- $ as a,
134
- y as b
135
- };
@@ -1,146 +0,0 @@
1
- import { jsxs as s, jsx as i } from "react/jsx-runtime";
2
- import { styled as o, useTheme as c } from "styled-components";
3
- import "./components/typography/heading/index.js";
4
- import "./components/typography/span/index.js";
5
- import { Text as r } from "./components/typography/text/index.js";
6
- const g = o.div`
7
- ${({ theme: e }) => `
8
- align-items: center;
9
- background-color: ${e.palette.white};
10
- border: 1px solid ${e.palette.gray[200]};
11
- border-radius: ${e.spacing[0.25]};
12
- display: flex;
13
- flex-direction: column;
14
- gap: ${e.spacing[0.5]};
15
- min-height: 180px;
16
- padding: ${e.spacing[1.5]};
17
- width: 510px;
18
-
19
- p {
20
- font-style: normal;
21
- line-height: ${e.spacing[1.25]};
22
- }
23
-
24
- &:hover {
25
- border: 1px solid ${e.palette.gray[600]};
26
- }
27
- `}
28
- `, u = o.div`
29
- ${({ theme: e }) => `
30
- display: flex;
31
- flex-direction: column;
32
- gap: ${e.spacing[1.5]};
33
- position: relative;
34
- max-width: 1268px;
35
-
36
- &::before {
37
- background-color: ${e.palette.gray[200]};
38
- border-radius: 5px;
39
- height: 100%;
40
- width: 4px;
41
- transform: translate(-50%, 0);
42
- }
43
-
44
- > * {
45
- &:nth-child(even) {
46
- align-self: end;
47
- }
48
-
49
- &:nth-child(odd) {
50
- align-self: start;
51
- }
52
-
53
- &::before {
54
- position: absolute;
55
- background-color: ${e.palette.primary[500]};
56
- border-radius: 50%;
57
- height: 14px;
58
- width: 14px;
59
- z-index: 1;
60
- }
61
- }
62
-
63
- &::before,
64
- > *::before {
65
- content: "";
66
- left: 50%;
67
- position: absolute;
68
- transform: translateX(-50%);
69
- }
70
-
71
- @media (width <= 1270px) {
72
- max-width: 540px;
73
-
74
- p {
75
- text-align: center;
76
- }
77
-
78
- &::before,
79
- > *::before {
80
- left: 8px;
81
- }
82
-
83
- > * {
84
- &:nth-child(odd) {
85
- align-self: end;
86
- }
87
- }
88
-
89
- @media (width <= 630px) {
90
- display: block;
91
-
92
- .timeline-card {
93
- width: auto;
94
- margin-left: 30px;
95
- }
96
- }
97
- }
98
- `}
99
- `, $ = ({
100
- date: e,
101
- description: a,
102
- title: l
103
- }) => {
104
- const t = c();
105
- return /* @__PURE__ */ s(g, { className: "timeline-card", children: [
106
- /* @__PURE__ */ i(
107
- r,
108
- {
109
- color: t.palette.gray[800],
110
- fontWeight: "bold",
111
- lineSpacing: 1.75,
112
- size: "xl",
113
- children: e
114
- }
115
- ),
116
- /* @__PURE__ */ i(
117
- r,
118
- {
119
- color: t.palette.gray[800],
120
- fontWeight: "bold",
121
- lineSpacing: 1.5,
122
- mb: 0.5,
123
- size: "md",
124
- textAlign: "center",
125
- children: l
126
- }
127
- ),
128
- /* @__PURE__ */ i("div", { children: a.map((n, d) => {
129
- const p = `${n}#${d}`;
130
- return /* @__PURE__ */ i(
131
- r,
132
- {
133
- size: "sm",
134
- textAlign: "center",
135
- wordBreak: "break-word",
136
- children: n
137
- },
138
- p
139
- );
140
- }) })
141
- ] });
142
- };
143
- export {
144
- u as T,
145
- $ as a
146
- };
@@ -1,130 +0,0 @@
1
- import { jsxs as s, jsx as a } from "react/jsx-runtime";
2
- import { useCallback as c } from "react";
3
- import { styled as d, useTheme as m } from "styled-components";
4
- import { Container as x } from "./components/container/index.js";
5
- import { Icon as p } from "./components/icon/index.js";
6
- const g = d.button`
7
- display: flex;
8
- position: relative;
9
- height: 32px;
10
- width: 32px;
11
-
12
- svg {
13
- position: absolute;
14
- }
15
-
16
- .hovered {
17
- display: none;
18
- }
19
-
20
- &:hover {
21
- .hovered {
22
- display: flex;
23
- }
24
-
25
- .uncover {
26
- display: none;
27
- }
28
- }
29
- `, w = d.div`
30
- ${({ theme: o }) => `
31
- display: flex;
32
- flex-direction: column;
33
- gap: ${o.spacing[2.5]};
34
- overflow: hidden;
35
- min-height: 589px;
36
- max-width: 1316px;
37
-
38
- span {
39
- background: ${o.palette.gradients["01"]};
40
- background-clip: text;
41
- -webkit-background-clip: text;
42
- -webkit-text-fill-color: transparent;
43
- }
44
-
45
- #mobile {
46
- display: none;
47
- }
48
-
49
- #carousel {
50
- scrollbar-width: none;
51
-
52
- &::-webkit-scrollbar {
53
- display: none;
54
- }
55
- }
56
-
57
- @media screen and (max-width: ${o.breakpoints.mobile}) {
58
- align-items: center;
59
- height: auto;
60
- max-width: 340px;
61
-
62
- #desktop {
63
- display: none;
64
- }
65
- #mobile {
66
- display: flex;
67
- }
68
- }
69
- `}
70
- `, v = ({
71
- containerRef: o,
72
- id: i
73
- }) => {
74
- const l = m(), t = i === "desktop" ? 380 : 342, n = c(
75
- (e) => () => {
76
- if (o != null && o.current) {
77
- const { current: h } = o;
78
- h.scrollBy({
79
- left: e === "right" ? t : -t,
80
- behavior: "smooth"
81
- });
82
- }
83
- },
84
- [o, t]
85
- ), r = c(
86
- (e) => /* @__PURE__ */ s(g, { onClick: n(e), children: [
87
- /* @__PURE__ */ a(
88
- p,
89
- {
90
- clickable: !0,
91
- icon: `circle-arrow-${e}`,
92
- iconClass: "hovered",
93
- iconColor: l.palette.gray[800],
94
- iconSize: "md",
95
- iconType: "fa-solid"
96
- }
97
- ),
98
- /* @__PURE__ */ a(
99
- p,
100
- {
101
- clickable: !0,
102
- icon: `circle-arrow-${e}`,
103
- iconClass: "uncover",
104
- iconColor: l.palette.gray[800],
105
- iconSize: "md",
106
- iconType: "fa-light"
107
- }
108
- )
109
- ] }),
110
- [n, l]
111
- );
112
- return /* @__PURE__ */ s(
113
- x,
114
- {
115
- alignItems: "center",
116
- display: "flex",
117
- gap: 1,
118
- id: i,
119
- width: "max-content",
120
- children: [
121
- r("left"),
122
- r("right")
123
- ]
124
- }
125
- );
126
- };
127
- export {
128
- w as O,
129
- v as S
130
- };