@muffled-ui/react 1.0.23 → 1.1.1

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.
package/dist/index.mjs CHANGED
@@ -71,7 +71,7 @@ __export(index_exports, {
71
71
  ClickOutside: () => ClickOutside,
72
72
  ClickableElement: () => ClickableElement,
73
73
  Collapse: () => Collapse,
74
- Container: () => Container10,
74
+ Container: () => Container6,
75
75
  DarkTheme: () => DarkTheme,
76
76
  DatePicker: () => DatePicker,
77
77
  DateRangePicker: () => DateRangePicker,
@@ -82,9 +82,9 @@ __export(index_exports, {
82
82
  GlobalStyles: () => GlobalStyles,
83
83
  Grow: () => Grow,
84
84
  ImageComp: () => ImageComp,
85
- Input: () => Input2,
85
+ Input: () => Input,
86
86
  InputGroup: () => InputGroup,
87
- Label: () => Label3,
87
+ Label: () => Label2,
88
88
  LightTheme: () => LightTheme,
89
89
  LinearLoader: () => LinearLoader,
90
90
  LinearProgress: () => LinearProgress,
@@ -158,45 +158,11 @@ __export(index_exports, {
158
158
 
159
159
  // src/inputs/Button/Button.tsx
160
160
  import { forwardRef as forwardRef2 } from "react";
161
- import styled2 from "styled-components";
162
161
 
163
162
  // src/inputs/Button/BaseButton.tsx
164
163
  import { forwardRef } from "react";
165
- import styled from "styled-components";
166
- import {
167
- border,
168
- color,
169
- flexbox,
170
- layout,
171
- position,
172
- space,
173
- typography,
174
- boxShadow
175
- } from "styled-system";
164
+ import { x } from "@xstyled/styled-components";
176
165
  import { jsx } from "react/jsx-runtime";
177
- var StyledButton = styled.button`
178
- display: inline-flex;
179
- place-content: center;
180
- align-items: center;
181
- user-select: none;
182
- border-radius: ${({ theme: theme2 }) => theme2.radii[3]};
183
- padding: ${({ theme: theme2 }) => `${theme2.space[11]} ${theme2.space[3]}`};
184
- font-size: ${({ theme: theme2 }) => theme2.fontSizes[1]};
185
- line-height: ${({ theme: theme2 }) => theme2.lineHeights[1]};
186
- font-weight: 500;
187
- > :not([hidden]) ~ :not([hidden]) {
188
- margin-left: 0.5rem;
189
- }
190
- ${({ disabled }) => disabled && "cursor: not-allowed;"}
191
- ${layout}
192
- ${border}
193
- ${position}
194
- ${color}
195
- ${space}
196
- ${typography}
197
- ${flexbox}
198
- ${boxShadow}
199
- `;
200
166
  var BaseButton = forwardRef((_a, ref) => {
201
167
  var _b = _a, {
202
168
  children,
@@ -205,39 +171,51 @@ var BaseButton = forwardRef((_a, ref) => {
205
171
  "children",
206
172
  "disabled"
207
173
  ]);
208
- return /* @__PURE__ */ jsx(StyledButton, __spreadProps(__spreadValues({ ref, disabled }, rest), { children }));
174
+ return /* @__PURE__ */ jsx(
175
+ x.button,
176
+ __spreadProps(__spreadValues({
177
+ ref,
178
+ disabled,
179
+ display: "inline-flex",
180
+ alignContent: "center",
181
+ justifyContent: "center",
182
+ alignItems: "center",
183
+ userSelect: "none",
184
+ borderRadius: 3,
185
+ px: 3,
186
+ py: 11,
187
+ fontSize: 1,
188
+ lineHeight: 1,
189
+ fontWeight: 500,
190
+ marginLeft: { "> :not([hidden]) ~ :not([hidden])": "0.5rem" },
191
+ cursor: { "&:disabled": "not-allowed" }
192
+ }, rest), {
193
+ children
194
+ })
195
+ );
209
196
  });
210
197
 
211
198
  // src/inputs/Button/Button.tsx
212
- import { darken } from "polished";
213
199
  import { jsx as jsx2 } from "react/jsx-runtime";
214
- var StyledButton2 = styled2(BaseButton)`
215
- color: ${({ theme: theme2 }) => theme2.colors.foreground};
216
- background: ${({ theme: theme2, active }) => active ? theme2.colors.accent : "transparent"};
217
- :disabled {
218
- color: ${({ theme: theme2 }) => theme2.colors.mutedForeground};
219
- }
220
- :hover {
221
- background: ${({ theme: theme2, active }) => active ? darken(0.05, theme2.colors.accent) : theme2.colors.accent};
222
- }
223
- `;
224
200
  var Button = forwardRef2((_a, ref) => {
225
- var _b = _a, { children, color: color6 } = _b, rest = __objRest(_b, ["children", "color"]);
226
- return /* @__PURE__ */ jsx2(StyledButton2, __spreadProps(__spreadValues({ ref }, rest), { children }));
201
+ var _b = _a, { children, disabled, active, color } = _b, rest = __objRest(_b, ["children", "disabled", "active", "color"]);
202
+ return /* @__PURE__ */ jsx2(
203
+ BaseButton,
204
+ __spreadProps(__spreadValues({
205
+ ref,
206
+ bg: { "": active ? "accent" : "transparent", "&:hover": "accent" },
207
+ color: disabled ? "mutedForeground" : "foreground",
208
+ opacity: { "&:hover": active ? 0.9 : 1 },
209
+ disabled
210
+ }, rest), {
211
+ children
212
+ })
213
+ );
227
214
  });
228
215
 
229
216
  // src/inputs/Button/PrimaryButton.tsx
230
217
  import { forwardRef as forwardRef3 } from "react";
231
- import styled3 from "styled-components";
232
218
  import { jsx as jsx3 } from "react/jsx-runtime";
233
- var StyledButton3 = styled3(BaseButton)`
234
- :hover {
235
- opacity: 0.8;
236
- }
237
- :disabled {
238
- opacity: 0.8;
239
- }
240
- `;
241
219
  var PrimaryButton = forwardRef3((_a, ref) => {
242
220
  var _b = _a, {
243
221
  children
@@ -245,11 +223,12 @@ var PrimaryButton = forwardRef3((_a, ref) => {
245
223
  "children"
246
224
  ]);
247
225
  return /* @__PURE__ */ jsx3(
248
- StyledButton3,
226
+ BaseButton,
249
227
  __spreadProps(__spreadValues({
250
228
  color: "background",
251
229
  bg: "primary",
252
- ref
230
+ ref,
231
+ opacity: { "&:hover": 0.8, "&:disabled": 0.8 }
253
232
  }, rest), {
254
233
  children
255
234
  })
@@ -258,9 +237,9 @@ var PrimaryButton = forwardRef3((_a, ref) => {
258
237
 
259
238
  // src/inputs/Button/SecondaryButton.tsx
260
239
  import { forwardRef as forwardRef4 } from "react";
261
- import styled4 from "styled-components";
240
+ import { styled } from "@xstyled/styled-components";
262
241
  import { jsx as jsx4 } from "react/jsx-runtime";
263
- var StyledButton4 = styled4(BaseButton)`
242
+ var StyledButton = styled(BaseButton)`
264
243
  :hover {
265
244
  opacity: 0.7;
266
245
  }
@@ -275,7 +254,7 @@ var SecondaryButton = forwardRef4((_a, ref) => {
275
254
  "children"
276
255
  ]);
277
256
  return /* @__PURE__ */ jsx4(
278
- StyledButton4,
257
+ StyledButton,
279
258
  __spreadProps(__spreadValues({
280
259
  color: "secondaryForeground",
281
260
  bg: "secondary",
@@ -288,17 +267,7 @@ var SecondaryButton = forwardRef4((_a, ref) => {
288
267
 
289
268
  // src/inputs/Button/DestructiveButton.tsx
290
269
  import { forwardRef as forwardRef5 } from "react";
291
- import styled5 from "styled-components";
292
- import { darken as darken2 } from "polished";
293
270
  import { jsx as jsx5 } from "react/jsx-runtime";
294
- var StyledButton5 = styled5(BaseButton)`
295
- :hover {
296
- background: ${({ theme: theme2 }) => darken2(0.1, theme2.colors.destructive)};
297
- }
298
- :disabled {
299
- opacity: 0.8;
300
- }
301
- `;
302
271
  var DestructiveButton = forwardRef5((_a, ref) => {
303
272
  var _b = _a, {
304
273
  children
@@ -306,10 +275,11 @@ var DestructiveButton = forwardRef5((_a, ref) => {
306
275
  "children"
307
276
  ]);
308
277
  return /* @__PURE__ */ jsx5(
309
- StyledButton5,
278
+ BaseButton,
310
279
  __spreadProps(__spreadValues({
311
280
  color: "destructiveForeground",
312
281
  bg: "destructive",
282
+ opacity: { "&:disabled": "0.8" },
313
283
  ref
314
284
  }, rest), {
315
285
  children
@@ -319,26 +289,18 @@ var DestructiveButton = forwardRef5((_a, ref) => {
319
289
 
320
290
  // src/inputs/Button/OutlineButton.tsx
321
291
  import { forwardRef as forwardRef6 } from "react";
322
- import styled6 from "styled-components";
323
292
  import { jsx as jsx6 } from "react/jsx-runtime";
324
- var StyledButton6 = styled6(BaseButton)`
325
- :disabled {
326
- opacity: 0.4;
327
- }
328
- :hover:not(:disabled) {
329
- background: ${({ theme: theme2 }) => theme2.colors.accent};
330
- }
331
- `;
332
293
  var OutlineButton = forwardRef6((_a, ref) => {
333
294
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
334
295
  return /* @__PURE__ */ jsx6(
335
- StyledButton6,
296
+ BaseButton,
336
297
  __spreadProps(__spreadValues({
337
- backgroundColor: "background",
298
+ bg: { "": "background", "&:hover": "accent" },
338
299
  boxShadow: "base.0",
339
300
  border: "border.1",
340
301
  color: "foreground",
341
302
  lineHeight: "18px",
303
+ opacity: { "&:disabled": "0.4" },
342
304
  ref
343
305
  }, rest), {
344
306
  children
@@ -459,9 +421,9 @@ var LinearSlide = (_a) => {
459
421
 
460
422
  // src/utils/Transitions/Grow.tsx
461
423
  import { animated as animated5, useTransition as useTransition3 } from "react-spring";
462
- import styled7 from "styled-components";
424
+ import styled2 from "@xstyled/styled-components";
463
425
  import { jsx as jsx12 } from "react/jsx-runtime";
464
- var Container = styled7(animated5.div)`
426
+ var Container = styled2(animated5.div)`
465
427
  transform-origin: top left;
466
428
  `;
467
429
  var Grow = (_a) => {
@@ -497,45 +459,55 @@ var Open = (_a) => {
497
459
  };
498
460
 
499
461
  // src/data/Accordion/AccordionSummary.tsx
500
- import styled8 from "styled-components";
501
462
  import { ChevronRightIcon } from "@heroicons/react/24/solid";
502
- import { jsx as jsx14, jsxs } from "react/jsx-runtime";
503
- var StyledSummary = styled8(ClickableElement)`
504
- width: 100%;
505
- padding: ${({ theme: theme2 }) => `${theme2.space[2]} ${theme2.space[3]}`};
506
- border-bottom: ${({ theme: theme2 }) => theme2.borders.border[1]};
507
- border-left: ${({ theme: theme2 }) => theme2.borders.border[1]};
508
- border-right: ${({ theme: theme2 }) => theme2.borders.border[1]};
509
- background: ${({ theme: theme2 }) => theme2.colors.background};
510
- place-content: flex-start;
511
- border-radius: 0;
512
- &:focus {
513
- box-shadow: none;
514
- }
515
- &:first-of-type {
516
- border-top: ${({ theme: theme2 }) => theme2.borders.border[1]};
517
- border-top-left-radius: ${({ theme: theme2 }) => theme2.radii[3]};
518
- border-top-right-radius: ${({ theme: theme2 }) => theme2.radii[3]};
519
- }
520
- &:last-of-type {
521
- ${({ theme: theme2, isOpen }) => !isOpen && `
522
- border-bottom-left-radius: ${theme2.radii[3]};
523
- border-bottom-right-radius: ${theme2.radii[3]};
524
- `}
525
- }
526
- `;
527
- var StyledIcon = styled8(ChevronRightIcon)`
528
- margin-right: ${({ theme: theme2 }) => theme2.space[3]};
529
- transition-property: all;
530
- transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
531
- transition-duration: 150ms;
532
- ${({ isOpen }) => isOpen && `
533
- transform: rotate(90deg);
534
- `}
535
- `;
536
- var AccordionSummary = ({ isOpen, onClick, children }) => /* @__PURE__ */ jsxs(StyledSummary, { isOpen, onClick, children: [
537
- /* @__PURE__ */ jsx14(
538
- StyledIcon,
463
+
464
+ // src/data/Box/Box.tsx
465
+ import { x as x2 } from "@xstyled/styled-components";
466
+ import { forwardRef as forwardRef8 } from "react";
467
+ import { jsx as jsx14 } from "react/jsx-runtime";
468
+ var Box = forwardRef8((_a, ref) => {
469
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
470
+ return /* @__PURE__ */ jsx14(x2.div, __spreadProps(__spreadValues({ ref }, rest), { children }));
471
+ });
472
+
473
+ // src/data/Accordion/AccordionSummary.tsx
474
+ import { jsx as jsx15, jsxs } from "react/jsx-runtime";
475
+ var Summary = (_a) => {
476
+ var _b = _a, { isOpen } = _b, props = __objRest(_b, ["isOpen"]);
477
+ return /* @__PURE__ */ jsx15(
478
+ ClickableElement,
479
+ __spreadValues({
480
+ w: "100%",
481
+ padding: "2 3",
482
+ borderBottom: "border.1",
483
+ borderLeft: "border.1",
484
+ borderRight: "border.1",
485
+ bg: "background",
486
+ alignContent: "flex-start",
487
+ justifyContent: "flex-start",
488
+ borderRadius: { _: "0", "&:first-of-type": "3 3 0 0", "&:last-of-type": !isOpen ? "0 0 3 3" : "0" },
489
+ borderTop: { "&:first-of-type": "border.1" },
490
+ boxShadow: { "&:focus": "none" }
491
+ }, props)
492
+ );
493
+ };
494
+ var Icon = (_a) => {
495
+ var _b = _a, { isOpen } = _b, props = __objRest(_b, ["isOpen"]);
496
+ return /* @__PURE__ */ jsx15(Box, { mr: "3", children: /* @__PURE__ */ jsx15(
497
+ ChevronRightIcon,
498
+ __spreadValues({
499
+ style: {
500
+ transitionProperty: "all",
501
+ transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
502
+ transitionDuration: "150ms",
503
+ transform: isOpen ? "rotate(90deg)" : void 0
504
+ }
505
+ }, props)
506
+ ) });
507
+ };
508
+ var AccordionSummary = ({ isOpen, onClick, children }) => /* @__PURE__ */ jsxs(Summary, { isOpen, onClick, children: [
509
+ /* @__PURE__ */ jsx15(
510
+ Icon,
539
511
  {
540
512
  width: 16,
541
513
  height: 16,
@@ -546,111 +518,92 @@ var AccordionSummary = ({ isOpen, onClick, children }) => /* @__PURE__ */ jsxs(S
546
518
  ] });
547
519
 
548
520
  // src/data/Accordion/AccordionDetail.tsx
549
- import styled9 from "styled-components";
550
- var AccordionDetail = styled9.div`
551
- background: ${({ theme: theme2 }) => theme2.colors.background};
552
- padding: ${({ theme: theme2 }) => `${theme2.space[3]} ${theme2.space[2]}`};
553
- border-bottom: ${({ theme: theme2 }) => theme2.borders.border[1]};
554
- border-left: ${({ theme: theme2 }) => theme2.borders.border[1]};
555
- border-right: ${({ theme: theme2 }) => theme2.borders.border[1]};
556
- box-shadow: ${({ theme: theme2 }) => theme2.shadows.inner};
557
- `;
558
- var DetailsGrouping = styled9.div`
559
- :last-of-type ${AccordionDetail} {
560
- border-bottom-left-radius: ${({ theme: theme2 }) => theme2.radii[3]};
561
- border-bottom-right-radius: ${({ theme: theme2 }) => theme2.radii[3]};
562
- }
563
- `;
521
+ import { x as x3 } from "@xstyled/styled-components";
522
+ import { forwardRef as forwardRef9 } from "react";
523
+ import { jsx as jsx16 } from "react/jsx-runtime";
524
+ var AccordionDetail = forwardRef9((props, ref) => /* @__PURE__ */ jsx16(
525
+ x3.div,
526
+ __spreadValues({
527
+ ref,
528
+ bg: "background",
529
+ padding: "3 2",
530
+ borderBottom: "border.1",
531
+ borderLeft: "border.1",
532
+ borderRight: "border.1",
533
+ boxShadow: "inner"
534
+ }, props)
535
+ ));
536
+ var DetailsGrouping = forwardRef9((props, ref) => /* @__PURE__ */ jsx16(
537
+ x3.div,
538
+ __spreadValues({
539
+ ref,
540
+ borderRadius: { "&:last-of-type div": "0 0 3 3" }
541
+ }, props)
542
+ ));
564
543
 
565
544
  // src/data/Accordion/Accordion.tsx
566
- import { Fragment, jsx as jsx15, jsxs as jsxs2 } from "react/jsx-runtime";
545
+ import { Fragment, jsx as jsx17, jsxs as jsxs2 } from "react/jsx-runtime";
567
546
  var Accordion = ({
568
547
  summary,
569
548
  children,
570
549
  onClick,
571
550
  isOpen
572
551
  }) => {
573
- let accodingTitle = typeof summary === "string" ? /* @__PURE__ */ jsx15(AccordionSummary, { onClick, isOpen, children: summary }) : /* @__PURE__ */ jsx15(ClickableElement, { onClick, children: summary });
574
- let details = typeof children === "string" ? /* @__PURE__ */ jsx15(AccordionDetail, { children }) : children;
552
+ let accodingTitle = typeof summary === "string" ? /* @__PURE__ */ jsx17(AccordionSummary, { onClick, isOpen, children: summary }) : /* @__PURE__ */ jsx17(ClickableElement, { onClick, children: summary });
553
+ let details = typeof children === "string" ? /* @__PURE__ */ jsx17(AccordionDetail, { children }) : children;
575
554
  return /* @__PURE__ */ jsxs2(Fragment, { children: [
576
555
  accodingTitle,
577
- /* @__PURE__ */ jsx15(DetailsGrouping, { children: /* @__PURE__ */ jsx15(Collapse, { inProp: isOpen, children: details }) })
556
+ /* @__PURE__ */ jsx17(DetailsGrouping, { children: /* @__PURE__ */ jsx17(Collapse, { inProp: isOpen, children: details }) })
578
557
  ] });
579
558
  };
580
559
 
581
- // src/data/Box/Box.tsx
582
- import styled10 from "styled-components";
583
- import {
584
- border as border2,
585
- boxShadow as boxShadow2,
586
- color as color2,
587
- grid,
588
- layout as layout2,
589
- order,
590
- space as space2,
591
- flexbox as flexbox2,
592
- position as position2,
593
- typography as typography2
594
- } from "styled-system";
595
- var Box = styled10.div`
596
- ${space2}
597
- ${layout2}
598
- ${color2}
599
- ${boxShadow2}
600
- ${border2}
601
- ${order}
602
- ${grid}
603
- ${flexbox2}
604
- ${position2}
605
- ${typography2}
606
- ${({ spaceXBetween: spaceXBetween2, theme: theme2 }) => spaceXBetween2 && theme2.spaceXBetween[spaceXBetween2]}
607
- ${({ spaceYBetween: spaceYBetween2, theme: theme2 }) => spaceYBetween2 && theme2.spaceYBetween[spaceYBetween2]}
608
- `;
609
-
610
560
  // src/data/Cards/Card.tsx
611
- import styled11 from "styled-components";
612
- import { flexbox as flexbox3, layout as layout3, space as space3, color as color3, background } from "styled-system";
613
- var Card = styled11.div`
614
- background: ${({ theme: theme2 }) => theme2.colors.background};
615
- border-radius: ${({ theme: theme2 }) => theme2.radii[3]};
616
- box-shadow: ${({ theme: theme2 }) => theme2.shadows.base[0]};
617
- border:${({ theme: theme2 }) => theme2.borders.border[1]};
618
- overflow: hidden;
619
- ${layout3}
620
- ${flexbox3}
621
- ${space3}
622
- ${color3}
623
- ${background}
624
- `;
561
+ import { x as x4 } from "@xstyled/styled-components";
562
+ import { forwardRef as forwardRef10 } from "react";
563
+ import { jsx as jsx18 } from "react/jsx-runtime";
564
+ var Card = forwardRef10((_a, ref) => {
565
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
566
+ return /* @__PURE__ */ jsx18(
567
+ x4.div,
568
+ __spreadProps(__spreadValues({
569
+ ref,
570
+ bg: "background",
571
+ borderRadius: 3,
572
+ boxShadow: "base.0",
573
+ border: "border.1",
574
+ overflow: "hidden"
575
+ }, rest), {
576
+ children
577
+ })
578
+ );
579
+ });
625
580
 
626
581
  // src/data/Cards/CardContent.tsx
627
- import styled12 from "styled-components";
628
- import { border as border3, space as space4 } from "styled-system";
629
- var CardContent = styled12.div`
630
- padding-top: ${({ theme: theme2 }) => theme2.space[2]};
631
- padding-bottom: ${({ theme: theme2 }) => theme2.space[2]};
632
- padding-left: ${({ theme: theme2 }) => theme2.space[3]};
633
- padding-right: ${({ theme: theme2 }) => theme2.space[3]};
634
- ${space4}
635
- ${border3}
636
- `;
582
+ import { x as x5 } from "@xstyled/styled-components";
583
+ import { forwardRef as forwardRef11 } from "react";
584
+ import { jsx as jsx19 } from "react/jsx-runtime";
585
+ var CardContent = forwardRef11((_a, ref) => {
586
+ var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
587
+ return /* @__PURE__ */ jsx19(
588
+ x5.div,
589
+ __spreadProps(__spreadValues({
590
+ ref,
591
+ pt: 2,
592
+ pb: 2,
593
+ pl: 3,
594
+ pr: 3
595
+ }, rest), {
596
+ children
597
+ })
598
+ );
599
+ });
637
600
 
638
601
  // src/data/Cards/CardMedia.tsx
639
602
  import { useState } from "react";
640
- import styled13 from "styled-components";
641
- import { layout as layout4 } from "styled-system";
642
- import { Fragment as Fragment2, jsx as jsx16 } from "react/jsx-runtime";
603
+ import { x as x6 } from "@xstyled/styled-components";
604
+ import { Fragment as Fragment2, jsx as jsx20 } from "react/jsx-runtime";
643
605
  var MEDIA_COMPONENTS = ["video", "audio", "picture", "iframe", "img"];
644
606
  var IMAGE_COMPONENTS = ["picture", "img"];
645
- var Component = styled13.div`
646
- ${layout4}
647
- object-fit: ${({ isImageComponent }) => isImageComponent ? "cover" : "unset"};
648
- display: block;
649
- background-size: cover;
650
- background-repeat: no-repeat;
651
- background-position: center;
652
- ${({ image, showBgImagine }) => showBgImagine ? `background-image: url("${image}");` : ""}
653
- `;
654
607
  var CardMedia = (_a) => {
655
608
  var _b = _a, {
656
609
  children,
@@ -669,15 +622,18 @@ var CardMedia = (_a) => {
669
622
  let isImageComponent = IMAGE_COMPONENTS.indexOf(as) !== -1;
670
623
  let isMediaComponent = MEDIA_COMPONENTS.indexOf(as) !== -1;
671
624
  let showBgImagine = !isMediaComponent && image !== void 0;
672
- return errored ? /* @__PURE__ */ jsx16(Fragment2, { children: fallback2 }) : /* @__PURE__ */ jsx16(
673
- Component,
625
+ return errored ? /* @__PURE__ */ jsx20(Fragment2, { children: fallback2 }) : /* @__PURE__ */ jsx20(
626
+ x6.div,
674
627
  __spreadProps(__spreadValues({
675
628
  as,
676
629
  onError: () => setError(true),
677
630
  src,
678
- isImageComponent,
679
- isMediaComponent,
680
- showBgImagine
631
+ objectFit: isImageComponent ? "cover" : "unset",
632
+ display: "block",
633
+ backgroundSize: "cover",
634
+ backgroundRepeat: "no-repeat",
635
+ backgroundPosition: "center",
636
+ backgroundImage: showBgImagine && image ? `url("${image}")` : void 0
681
637
  }, rest), {
682
638
  children
683
639
  })
@@ -686,101 +642,109 @@ var CardMedia = (_a) => {
686
642
 
687
643
  // src/data/Image/Image.tsx
688
644
  import { useState as useState2 } from "react";
689
- import styled14 from "styled-components";
690
- import {
691
- flexbox as flexbox4,
692
- grid as grid2,
693
- layout as layout5,
694
- order as order2,
695
- position as position3,
696
- space as space5
697
- } from "styled-system";
698
- import { Fragment as Fragment3, jsx as jsx17 } from "react/jsx-runtime";
699
- var Img = styled14.img`
700
- ${space5}
701
- ${layout5}
702
- ${order2}
703
- ${grid2}
704
- ${flexbox4}
705
- ${position3}
706
- `;
645
+ import { x as x7 } from "@xstyled/styled-components";
646
+ import { Fragment as Fragment3, jsx as jsx21 } from "react/jsx-runtime";
707
647
  var ImageComp = (_a) => {
708
648
  var _b = _a, { fallback: fallback2 } = _b, rest = __objRest(_b, ["fallback"]);
709
649
  let [hasError, setError] = useState2(false);
710
- return hasError && fallback2 ? /* @__PURE__ */ jsx17(Fragment3, { children: fallback2 }) : /* @__PURE__ */ jsx17(Img, __spreadValues({ onError: () => setError(true) }, rest));
650
+ return hasError && fallback2 ? /* @__PURE__ */ jsx21(Fragment3, { children: fallback2 }) : /* @__PURE__ */ jsx21(x7.img, __spreadValues({ onError: () => setError(true) }, rest));
711
651
  };
712
652
 
713
653
  // src/data/List/List.tsx
714
- import styled15 from "styled-components";
715
- var List = styled15.ul`
716
- list-style-position: inside;
717
- list-style-type: none;
718
- `;
654
+ import { x as x8 } from "@xstyled/styled-components";
655
+ import { jsx as jsx22 } from "react/jsx-runtime";
656
+ var List = (props) => /* @__PURE__ */ jsx22(
657
+ x8.ul,
658
+ __spreadValues({
659
+ listStylePosition: "inside",
660
+ listStyleType: "none"
661
+ }, props)
662
+ );
719
663
 
720
664
  // src/data/Text/Text.tsx
721
- import styled16 from "styled-components";
722
- import { color as color4, typography as typography3 } from "styled-system";
723
- var Text = styled16.p`
724
- font-family: ${({ mono, theme: theme2 }) => mono ? theme2.fonts.mono : ""};
725
- ${color4}
726
- ${typography3}
727
- `;
665
+ import { x as x9 } from "@xstyled/styled-components";
666
+ import { jsx as jsx23 } from "react/jsx-runtime";
667
+ var Text = (_a) => {
668
+ var _b = _a, { mono } = _b, rest = __objRest(_b, ["mono"]);
669
+ return /* @__PURE__ */ jsx23(x9.p, __spreadValues({ fontFamily: mono ? "mono" : void 0 }, rest));
670
+ };
728
671
 
729
672
  // src/data/Text/Title.tsx
730
- import styled17 from "styled-components";
731
- import { color as color5, layout as layout6, typography as typography4, variant } from "styled-system";
732
- var Title = styled17.h1`
733
- color: ${({ theme: theme2 }) => theme2.colors.foreground};
734
- font-weight: bold;
735
- ${color5}
736
- ${typography4}
737
- ${layout6}
738
- ${variant({
739
- prop: "as",
740
- variants: {
741
- h1: { fontSize: 5 },
742
- h2: { fontSize: 4 },
743
- h3: { fontSize: 3 },
744
- h4: { fontSize: 2 },
745
- h5: { fontSize: 1 },
746
- h6: { fontSize: 0 }
747
- }
748
- })}
749
- `;
673
+ import { x as x10 } from "@xstyled/styled-components";
674
+ import { jsx as jsx24 } from "react/jsx-runtime";
675
+ var Title = (_a) => {
676
+ var _b = _a, {
677
+ children,
678
+ as = "h1"
679
+ } = _b, rest = __objRest(_b, [
680
+ "children",
681
+ "as"
682
+ ]);
683
+ const determineFontSize = () => {
684
+ switch (as) {
685
+ case "h1":
686
+ return 5;
687
+ case "h2":
688
+ return 4;
689
+ case "h3":
690
+ return 3;
691
+ case "h4":
692
+ return 2;
693
+ case "h5":
694
+ return 1;
695
+ case "h6":
696
+ return 0;
697
+ default:
698
+ return 5;
699
+ }
700
+ };
701
+ return /* @__PURE__ */ jsx24(
702
+ x10.h1,
703
+ __spreadProps(__spreadValues({
704
+ as,
705
+ fontWeight: 600,
706
+ fontSize: determineFontSize()
707
+ }, rest), {
708
+ children
709
+ })
710
+ );
711
+ };
750
712
 
751
713
  // src/data/List/ListItem.tsx
752
- import { jsx as jsx18 } from "react/jsx-runtime";
714
+ import { jsx as jsx25 } from "react/jsx-runtime";
753
715
  var ListItem = (_a) => {
754
716
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
755
- return /* @__PURE__ */ jsx18(Text, __spreadProps(__spreadValues({ as: "li" }, rest), { children }));
717
+ return /* @__PURE__ */ jsx25(Text, __spreadProps(__spreadValues({ as: "li" }, rest), { children }));
756
718
  };
757
719
 
758
720
  // src/data/List/OrderedList.tsx
759
- import styled18 from "styled-components";
760
- var OrderedList = styled18.ol`
761
- list-style-type: decimal;
762
- list-style-position: inside;
763
- *::marker {
764
- color:${({ theme: theme2 }) => theme2.colors.foreground};
765
- }
766
- `;
721
+ import { x as x11 } from "@xstyled/styled-components";
722
+ import { jsx as jsx26 } from "react/jsx-runtime";
723
+ var OrderedList = (props) => /* @__PURE__ */ jsx26(
724
+ x11.ol,
725
+ __spreadValues({
726
+ listStyleType: "decimal",
727
+ listStylePosition: "inside"
728
+ }, props)
729
+ );
767
730
 
768
731
  // src/data/List/UnorderedList.tsx
769
- import styled19 from "styled-components";
770
- var UnorderedList = styled19.ul`
771
- list-style-type: disc;
772
- list-style-position: inside;
773
- *::marker {
774
- color:${({ theme: theme2 }) => theme2.colors.foreground};
775
- }
776
- `;
732
+ import { x as x12 } from "@xstyled/styled-components";
733
+ import { jsx as jsx27 } from "react/jsx-runtime";
734
+ var UnorderedList = (props) => /* @__PURE__ */ jsx27(
735
+ x12.ul,
736
+ __spreadValues({
737
+ listStyleType: "disc",
738
+ listStylePosition: "inside"
739
+ }, props)
740
+ );
777
741
 
778
742
  // src/data/Pagination/Pagination.tsx
779
- import styled41 from "styled-components";
743
+ import { x as x22 } from "@xstyled/styled-components";
780
744
 
781
745
  // src/data/Pagination/PaginationControls.tsx
782
746
  import { ChevronLeftIcon, ChevronRightIcon as ChevronRightIcon2, ChevronDoubleLeftIcon, ChevronDoubleRightIcon } from "@heroicons/react/24/solid";
783
- import { jsx as jsx19, jsxs as jsxs3 } from "react/jsx-runtime";
747
+ import { jsx as jsx28, jsxs as jsxs3 } from "react/jsx-runtime";
784
748
  var PaginationControls = ({
785
749
  skip,
786
750
  limit,
@@ -789,150 +753,99 @@ var PaginationControls = ({
789
753
  }) => {
790
754
  let currentPage = skip === 0 ? 1 : Math.floor(skip / limit + 1);
791
755
  let totalPages = Math.ceil(itemCount / limit);
792
- return /* @__PURE__ */ jsxs3(Box, { display: "inline-flex", alignItems: "center", gridColumnGap: "2", children: [
756
+ return /* @__PURE__ */ jsxs3(Box, { display: "inline-flex", alignItems: "center", gap: "2", children: [
793
757
  /* @__PURE__ */ jsxs3(Text, { children: [
794
758
  "Page ",
795
759
  currentPage,
796
760
  " of ",
797
761
  totalPages
798
762
  ] }),
799
- /* @__PURE__ */ jsx19(
763
+ /* @__PURE__ */ jsx28(
800
764
  OutlineButton,
801
765
  {
802
766
  verticalAlign: "bottom",
803
767
  disabled: currentPage === 1,
804
768
  onClick: () => setSkip(0),
805
- paddingX: 11,
806
- children: /* @__PURE__ */ jsx19(ChevronDoubleLeftIcon, { width: 18, height: 18 })
769
+ px: 11,
770
+ children: /* @__PURE__ */ jsx28(ChevronDoubleLeftIcon, { width: 18, height: 18 })
807
771
  }
808
772
  ),
809
- /* @__PURE__ */ jsx19(
773
+ /* @__PURE__ */ jsx28(
810
774
  OutlineButton,
811
775
  {
812
776
  verticalAlign: "bottom",
813
777
  onClick: () => setSkip(skip - limit),
814
778
  disabled: currentPage === 1,
815
- paddingX: 11,
816
- children: /* @__PURE__ */ jsx19(ChevronLeftIcon, { width: 18, height: 18 })
779
+ px: 11,
780
+ children: /* @__PURE__ */ jsx28(ChevronLeftIcon, { width: 18, height: 18 })
817
781
  }
818
782
  ),
819
- /* @__PURE__ */ jsx19(
783
+ /* @__PURE__ */ jsx28(
820
784
  OutlineButton,
821
785
  {
822
786
  verticalAlign: "bottom",
823
787
  onClick: () => setSkip(skip + limit),
824
788
  disabled: currentPage === totalPages,
825
- paddingX: 11,
826
- children: /* @__PURE__ */ jsx19(ChevronRightIcon2, { width: 18, height: 18 })
789
+ px: 11,
790
+ children: /* @__PURE__ */ jsx28(ChevronRightIcon2, { width: 18, height: 18 })
827
791
  }
828
792
  ),
829
- /* @__PURE__ */ jsx19(
793
+ /* @__PURE__ */ jsx28(
830
794
  OutlineButton,
831
795
  {
832
796
  verticalAlign: "bottom",
833
797
  onClick: () => setSkip(itemCount - limit),
834
798
  disabled: currentPage === totalPages,
835
- paddingX: 11,
836
- children: /* @__PURE__ */ jsx19(ChevronDoubleRightIcon, { width: 18, height: 18 })
799
+ px: 11,
800
+ children: /* @__PURE__ */ jsx28(ChevronDoubleRightIcon, { width: 18, height: 18 })
837
801
  }
838
802
  )
839
803
  ] });
840
804
  };
841
805
 
842
- // src/data/Pagination/RowControls.tsx
843
- import styled40 from "styled-components";
844
-
845
806
  // src/inputs/ButtonGroup/ButtonGroup.tsx
846
- import styled20 from "styled-components";
847
- import { jsx as jsx20 } from "react/jsx-runtime";
848
- var Grouping = styled20.div`
849
- ${StyledButton}:not([data-ignore-radius]) {
850
- border-radius:0;
851
- }
852
- ${StyledButton} {
853
- position: relative;
854
- margin-right: -1px;
855
- }
856
- ${StyledButton}:first-of-type {
857
- border-top-left-radius: ${({ theme: theme2 }) => theme2.radii[3]};
858
- border-bottom-left-radius: ${({ theme: theme2 }) => theme2.radii[3]};
859
- }
860
-
861
- ${StyledButton}:last-of-type {
862
- border-top-right-radius: ${({ theme: theme2 }) => theme2.radii[3]};
863
- border-bottom-right-radius: ${({ theme: theme2 }) => theme2.radii[3]};
807
+ import { x as x13 } from "@xstyled/styled-components";
808
+ import { jsx as jsx29 } from "react/jsx-runtime";
809
+ var ButtonGroup = ({ children }) => /* @__PURE__ */ jsx29(
810
+ x13.div,
811
+ {
812
+ borderRadius: { "button:last-of-type": "0 3 3 0", "button:first-of-type": "3 0 0 3", "> button": 0 },
813
+ position: { "> button": "relative" },
814
+ marginRight: { "> button": "-1px" },
815
+ children
864
816
  }
865
- `;
866
- var ButtonGroup = ({ children }) => /* @__PURE__ */ jsx20(Grouping, { children });
817
+ );
867
818
 
868
819
  // src/inputs/Controls/Checkbox/Checkbox.tsx
869
820
  import { CheckIcon } from "@heroicons/react/24/outline";
870
821
 
871
822
  // src/inputs/Controls/BaseControl.tsx
872
- import styled21 from "styled-components";
873
- import { jsx as jsx21, jsxs as jsxs4 } from "react/jsx-runtime";
874
- var Label = styled21.label`
823
+ import styled3, { x as x14 } from "@xstyled/styled-components";
824
+ import { jsx as jsx30, jsxs as jsxs4 } from "react/jsx-runtime";
825
+ var Label = styled3.label`
875
826
  display: flex;
876
827
  align-items: center;
877
828
  cursor: ${({ disabled }) => disabled ? "not-allowed" : "pointer"};
878
- color: ${({ theme: theme2, disabled }) => disabled ? theme2.colors.mutedForeground : theme2.colors.foreground};
879
829
  > :not([hidden]) ~ :not([hidden]) {
880
830
  margin-left: 0.5rem;
881
831
  }
832
+ svg {
833
+ color: transparent;
834
+ z-index: 10;
835
+ position: relative;
836
+ }
882
837
  div > svg {
883
- ${({ theme: theme2, checked }) => checked && `
884
- color: ${theme2.colors.background};
885
- `}
838
+ color: background;
886
839
  }
887
840
 
888
841
  :hover div {
889
- ${({ theme: theme2, checked }) => `
890
- background: ${checked ? theme2.colors.foreground : theme2.colors.background};
891
- `}
842
+ background: foreground;
892
843
  }
893
844
 
894
845
  :hover div > svg {
895
- ${({ theme: theme2, checked }) => `
896
- color: ${checked ? theme2.colors.background : theme2.colors.foreground};
897
- `}
846
+ color: input;
898
847
  }
899
848
  `;
900
- var Btn = styled21.div`
901
- position: relative;
902
- width: ${({ theme: theme2 }) => theme2.sizes[4]};
903
- height: ${({ theme: theme2 }) => theme2.sizes[4]};
904
- border: ${({ theme: theme2 }) => theme2.borders.background[1]};
905
- background: ${({ theme: theme2 }) => theme2.colors.background};
906
- overflow: hidden;
907
- border: ${({ theme: theme2 }) => theme2.borders.primary[1]};
908
- box-shadow: ${({ theme: theme2 }) => theme2.shadows.base[1]};
909
- display: flex;
910
- align-items: center;
911
- justify-content: center;
912
- margin-right: ${({ theme: theme2 }) => theme2.space[2]};
913
- border-radius: ${({ theme: theme2, rounded }) => rounded ? theme2.radii[8] : theme2.radii[2]};
914
- opacity: ${({ disabled }) => disabled ? 0.5 : 1};
915
- `;
916
- var Box2 = styled21.div`
917
- background: ${({ theme: theme2 }) => theme2.colors.background};
918
- width: 100%;
919
- height: 100%;
920
- position: absolute;
921
- ${({ checked, theme: theme2 }) => checked && `
922
- background: ${theme2.colors.primary};
923
- `}
924
-
925
- `;
926
- var Icon = styled21.div`
927
- svg {
928
- color: transparent;
929
- z-index: 10;
930
- position: relative;
931
- }
932
- `;
933
- var Input = styled21.input`
934
- display: none;
935
- `;
936
849
  var BaseControl = (_a) => {
937
850
  var _b = _a, {
938
851
  labelText,
@@ -946,20 +859,38 @@ var BaseControl = (_a) => {
946
859
  "disabled"
947
860
  ]);
948
861
  return /* @__PURE__ */ jsxs4(Label, { disabled, checked: rest.checked, children: [
949
- /* @__PURE__ */ jsxs4(Btn, { rounded, disabled, children: [
950
- /* @__PURE__ */ jsx21(Input, __spreadValues({ disabled }, rest)),
951
- /* @__PURE__ */ jsx21(Box2, __spreadValues({}, rest)),
952
- /* @__PURE__ */ jsx21(Icon, __spreadProps(__spreadValues({ disabled }, rest), { children: icon }))
953
- ] }),
862
+ /* @__PURE__ */ jsxs4(
863
+ x14.div,
864
+ {
865
+ position: "relative",
866
+ w: "4",
867
+ h: "4",
868
+ border: "border.1",
869
+ bg: "background",
870
+ overflow: "hidden",
871
+ boxShadow: "base.1",
872
+ display: "flex",
873
+ alignItems: "center",
874
+ justifyContent: "center",
875
+ mr: "2",
876
+ borderRadius: rounded ? "8" : "2",
877
+ opacity: disabled ? 0.5 : 1,
878
+ children: [
879
+ /* @__PURE__ */ jsx30(x14.input, __spreadValues({ display: "none", disabled }, rest)),
880
+ /* @__PURE__ */ jsx30(Box, { bg: rest.checked ? "primary" : "background", w: "100%", h: "100%", position: "absolute" }),
881
+ /* @__PURE__ */ jsx30(Box, { color: disabled ? "mutedForeground" : "foreground", children: icon })
882
+ ]
883
+ }
884
+ ),
954
885
  labelText
955
886
  ] });
956
887
  };
957
888
 
958
889
  // src/inputs/Controls/Checkbox/Checkbox.tsx
959
- import { jsx as jsx22 } from "react/jsx-runtime";
890
+ import { jsx as jsx31 } from "react/jsx-runtime";
960
891
  var Checkbox = (_a) => {
961
892
  var rest = __objRest(_a, []);
962
- return /* @__PURE__ */ jsx22(BaseControl, __spreadValues({ icon: /* @__PURE__ */ jsx22(CheckIcon, { width: "12", height: "12" }), type: "checkbox" }, rest));
893
+ return /* @__PURE__ */ jsx31(BaseControl, __spreadValues({ icon: /* @__PURE__ */ jsx31(CheckIcon, { width: "12", height: "12" }), type: "checkbox" }, rest));
963
894
  };
964
895
 
965
896
  // src/utils/index.ts
@@ -996,7 +927,7 @@ import { createPortal } from "react-dom";
996
927
  var Portal = ({ children, element }) => createPortal(children, element || (document.getElementById("portal-root") || document.body));
997
928
 
998
929
  // src/utils/Backdrop/Backdrop.tsx
999
- import { jsx as jsx23 } from "react/jsx-runtime";
930
+ import { jsx as jsx32 } from "react/jsx-runtime";
1000
931
  var stopPropagation = (e) => e.stopPropagation();
1001
932
  var Backdrop = (_a) => {
1002
933
  var _b = _a, {
@@ -1031,11 +962,11 @@ var Backdrop = (_a) => {
1031
962
  document.body.style.overflow = "unset";
1032
963
  };
1033
964
  }, [closeModalOnESC]);
1034
- return /* @__PURE__ */ jsx23(Portal, { children: /* @__PURE__ */ jsx23(FocusLock, { children: /* @__PURE__ */ jsx23(Fade, __spreadProps(__spreadValues({ inProp: open, onProps: onClick }, rest), { children: /* @__PURE__ */ jsx23(
965
+ return /* @__PURE__ */ jsx32(Portal, { children: /* @__PURE__ */ jsx32(FocusLock, { children: /* @__PURE__ */ jsx32(Fade, __spreadProps(__spreadValues({ inProp: open, onProps: onClick }, rest), { children: /* @__PURE__ */ jsx32(
1035
966
  Box,
1036
967
  {
1037
- width: "100vw",
1038
- height: "100%",
968
+ w: "100vw",
969
+ h: "100%",
1039
970
  position: "fixed",
1040
971
  top: 0,
1041
972
  left: 0,
@@ -1055,7 +986,7 @@ var Backdrop = (_a) => {
1055
986
 
1056
987
  // src/utils/ClickOutside/ClickOutside.tsx
1057
988
  import { useEffect as useEffect3, useState as useState4, cloneElement } from "react";
1058
- import { jsx as jsx24 } from "react/jsx-runtime";
989
+ import { jsx as jsx33 } from "react/jsx-runtime";
1059
990
  var ClickOutside = ({ children, handleClose, target, wrapper, inline = false }) => {
1060
991
  let [isOpen, setOpen] = useState4(true);
1061
992
  useEffect3(() => {
@@ -1072,9 +1003,9 @@ var ClickOutside = ({ children, handleClose, target, wrapper, inline = false })
1072
1003
  }
1073
1004
  return () => document.removeEventListener("mousedown", handleClick);
1074
1005
  }, [isOpen, handleClose, target]);
1075
- let WrappedTransition = /* @__PURE__ */ jsx24(Grow, { inProp: isOpen, onDestroyed: handleClose, children });
1006
+ let WrappedTransition = /* @__PURE__ */ jsx33(Grow, { inProp: isOpen, onDestroyed: handleClose, children });
1076
1007
  let content = wrapper ? cloneElement(wrapper, { children: WrappedTransition }) : WrappedTransition;
1077
- return inline ? content : /* @__PURE__ */ jsx24(Portal, { children: content });
1008
+ return inline ? content : /* @__PURE__ */ jsx33(Portal, { children: content });
1078
1009
  };
1079
1010
 
1080
1011
  // src/utils/FocusLock/index.ts
@@ -1087,13 +1018,8 @@ __reExport(utils_exports, FocusLock_exports);
1087
1018
 
1088
1019
  // src/utils/Scrollable/Scrollable.tsx
1089
1020
  import { useEffect as useEffect4, useRef as useRef3, useState as useState5 } from "react";
1090
- import styled22 from "styled-components";
1091
1021
  import { ChevronLeftIcon as ChevronLeftIcon2, ChevronRightIcon as ChevronRightIcon3 } from "@heroicons/react/24/outline";
1092
- import { Fragment as Fragment4, jsx as jsx25, jsxs as jsxs5 } from "react/jsx-runtime";
1093
- var ScrollBox = styled22(Box)`
1094
- white-space: nowrap;
1095
- scroll-snap-type: x;
1096
- `;
1022
+ import { Fragment as Fragment4, jsx as jsx34, jsxs as jsxs5 } from "react/jsx-runtime";
1097
1023
  var Scrollable = ({ children }) => {
1098
1024
  let [{ left, right }, setArrows] = useState5({ left: false, right: false });
1099
1025
  let [scrollable, setScrollable] = useState5(void 0);
@@ -1116,29 +1042,31 @@ var Scrollable = ({ children }) => {
1116
1042
  handleScroll();
1117
1043
  }, []);
1118
1044
  if (!scrollable === false) {
1119
- return /* @__PURE__ */ jsx25(Fragment4, { children });
1045
+ return /* @__PURE__ */ jsx34(Fragment4, { children });
1120
1046
  }
1121
1047
  return /* @__PURE__ */ jsxs5(Box, { position: "relative", px: "5", children: [
1122
- left && /* @__PURE__ */ jsx25(Box, { height: "100%", width: "5", position: "absolute", left: "0", top: "0", zIndex: "50", display: "flex", alignItems: "center", color: "baseHighlight", children: /* @__PURE__ */ jsx25(ChevronLeftIcon2, { width: 16, height: 16 }) }),
1123
- /* @__PURE__ */ jsx25(
1124
- ScrollBox,
1048
+ left && /* @__PURE__ */ jsx34(Box, { h: "100%", w: "5", position: "absolute", left: "0", top: "0", zIndex: "50", display: "flex", alignItems: "center", color: "baseHighlight", children: /* @__PURE__ */ jsx34(ChevronLeftIcon2, { width: 16, height: 16 }) }),
1049
+ /* @__PURE__ */ jsx34(
1050
+ Box,
1125
1051
  {
1052
+ whiteSpace: "nowrap",
1126
1053
  maxHeight: "100%",
1127
1054
  ref,
1128
1055
  overflowX: "auto",
1056
+ style: { scrollSnapType: "x" },
1129
1057
  onScroll: handleScroll,
1130
1058
  children
1131
1059
  }
1132
1060
  ),
1133
- right && /* @__PURE__ */ jsx25(Box, { height: "100%", width: "5", position: "absolute", right: "0", top: "0", zIndex: "50", display: "flex", alignItems: "center", justifyContent: "end", color: "baseHighlight", children: /* @__PURE__ */ jsx25(ChevronRightIcon3, { width: 16, height: 16 }) })
1061
+ right && /* @__PURE__ */ jsx34(Box, { h: "100%", w: "5", position: "absolute", right: "0", top: "0", zIndex: "50", display: "flex", alignItems: "center", justifyContent: "end", color: "baseHighlight", children: /* @__PURE__ */ jsx34(ChevronRightIcon3, { width: 16, height: 16 }) })
1134
1062
  ] });
1135
1063
  };
1136
1064
 
1137
1065
  // src/utils/Icons/index.tsx
1138
- import { jsx as jsx26 } from "react/jsx-runtime";
1066
+ import { jsx as jsx35 } from "react/jsx-runtime";
1139
1067
  var RadioIcon = (_a) => {
1140
1068
  var rest = __objRest(_a, []);
1141
- return /* @__PURE__ */ jsx26("svg", __spreadProps(__spreadValues({ viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" }, rest), { children: /* @__PURE__ */ jsx26("circle", { cx: "8", cy: "8", r: "3" }) }));
1069
+ return /* @__PURE__ */ jsx35("svg", __spreadProps(__spreadValues({ viewBox: "0 0 16 16", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" }, rest), { children: /* @__PURE__ */ jsx35("circle", { cx: "8", cy: "8", r: "3" }) }));
1142
1070
  };
1143
1071
 
1144
1072
  // src/utils/Theme/Borders.ts
@@ -1200,7 +1128,7 @@ var LightThemeColors = {
1200
1128
  destructive: "hsl(0, 84.2%, 60.2%)",
1201
1129
  destructiveForeground: "hsl(0, 0%, 98%)",
1202
1130
  border: "hsl(210, 16%, 90%)",
1203
- input: "hsl(210, 16%, 90%)",
1131
+ input: "hsl(210, 16%, 70%)",
1204
1132
  ring: "hsl(240, 5.9%, 10%)",
1205
1133
  offsetBackground: "hsl(0, 0%, 98%)",
1206
1134
  offsetForeground: "hsl(210, 10%, 35%)",
@@ -1224,7 +1152,7 @@ var DarkThemeColors = {
1224
1152
  destructive: "hsl(0, 70%, 45%)",
1225
1153
  destructiveForeground: "hsl(0, 0%, 95%)",
1226
1154
  border: "hsl(220, 5%, 20%)",
1227
- input: "hsl(220, 5%, 20%)",
1155
+ input: "hsl(220, 5%, 40%)",
1228
1156
  ring: "hsl(220, 5%, 70%)",
1229
1157
  offsetBackground: "hsl(220, 10%, 15%)",
1230
1158
  offsetForeground: "hsl(220, 5%, 90%)",
@@ -1248,44 +1176,9 @@ var ThemeBoxShadow = {
1248
1176
 
1249
1177
  // src/utils/Theme/Animations.ts
1250
1178
  var animations = {
1251
- spin: `
1252
- animation: spin 1s linear infinite;
1253
-
1254
- @keyframes spin {
1255
- from {
1256
- transform: rotate(0deg);
1257
- }
1258
- to {
1259
- transform: rotate(360deg);
1260
- }
1261
- }
1262
- `,
1263
- pulse: `
1264
- animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
1265
-
1266
- @keyframes pulse {
1267
- 0%, 100% {
1268
- opacity: 1;
1269
- }
1270
- 50% {
1271
- opacity: .5;
1272
- }
1273
- }
1274
- `,
1275
- bounce: `
1276
- animation: bounce 1s infinite;
1277
-
1278
- @keyframes bounce {
1279
- 0%, 100% {
1280
- transform: translateY(-25%);
1281
- animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
1282
- }
1283
- 50% {
1284
- transform: translateY(0);
1285
- animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
1286
- }
1287
- }
1288
- `
1179
+ spin: "spin 1s linear infinite",
1180
+ pulse: " pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite",
1181
+ bounce: " bounce 1s infinite"
1289
1182
  };
1290
1183
 
1291
1184
  // src/utils/Theme/spaces.ts
@@ -1385,10 +1278,10 @@ var DarkTheme = __spreadValues({
1385
1278
  }, theme);
1386
1279
 
1387
1280
  // src/utils/Theme/ThemeProvider.tsx
1388
- import { ThemeProvider } from "styled-components";
1281
+ import { ThemeProvider } from "@xstyled/styled-components";
1389
1282
 
1390
1283
  // src/utils/Theme/GlobalStyles.ts
1391
- import { createGlobalStyle } from "styled-components";
1284
+ import { createGlobalStyle, th } from "@xstyled/styled-components";
1392
1285
  var GlobalStyles = createGlobalStyle`
1393
1286
  *,
1394
1287
  ::before,
@@ -1396,7 +1289,7 @@ var GlobalStyles = createGlobalStyle`
1396
1289
  box-sizing: border-box;
1397
1290
  border-width: 0;
1398
1291
  border-style: solid;
1399
- border-color: ${({ theme: theme2 }) => theme2.colors.background}
1292
+ border-color: ${th.color("background")};
1400
1293
  }
1401
1294
 
1402
1295
  body {
@@ -1407,9 +1300,9 @@ var GlobalStyles = createGlobalStyle`
1407
1300
  font-style: normal;
1408
1301
  font-variation-settings: "wdth" 100, "YTLC" 500;
1409
1302
  tab-size: 4;
1410
- background: ${({ theme: theme2 }) => theme2.colors.background};
1411
- font-family: ${({ theme: theme2 }) => theme2.fonts.base};
1412
- color: ${({ theme: theme2 }) => theme2.colors.foreground};
1303
+ background: ${th.color("background")};
1304
+ font-family: ${th.font("base")};
1305
+ color: ${th.color("foreground")};
1413
1306
  margin: 0;
1414
1307
  }
1415
1308
 
@@ -1446,7 +1339,7 @@ var GlobalStyles = createGlobalStyle`
1446
1339
  kbd,
1447
1340
  samp,
1448
1341
  pre {
1449
- font-family: ${({ theme: theme2 }) => theme2.fonts.mono};
1342
+ font-family: ${th.font("mono")};
1450
1343
  font-size: 1em;
1451
1344
  }
1452
1345
 
@@ -1576,7 +1469,7 @@ var GlobalStyles = createGlobalStyle`
1576
1469
  input::placeholder,
1577
1470
  textarea::placeholder {
1578
1471
  opacity: 1;
1579
- color: ${({ theme: theme2 }) => theme2.colors.mutedForeground};
1472
+ color: ${th.color("mutedForeground")};
1580
1473
  }
1581
1474
 
1582
1475
  button,
@@ -1605,6 +1498,35 @@ var GlobalStyles = createGlobalStyle`
1605
1498
  [hidden] {
1606
1499
  display: none;
1607
1500
  }
1501
+
1502
+ @keyframes spin {
1503
+ from {
1504
+ transform: rotate(0deg);
1505
+ }
1506
+ to {
1507
+ transform: rotate(360deg);
1508
+ }
1509
+ }
1510
+
1511
+ @keyframes pulse {
1512
+ 0%, 100% {
1513
+ opacity: 1;
1514
+ }
1515
+ 50% {
1516
+ opacity: .5;
1517
+ }
1518
+ }
1519
+
1520
+ @keyframes bounce {
1521
+ 0%, 100% {
1522
+ transform: translateY(-25%);
1523
+ animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
1524
+ }
1525
+ 50% {
1526
+ transform: translateY(0);
1527
+ animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
1528
+ }
1529
+ }
1608
1530
  `;
1609
1531
 
1610
1532
  // src/utils/Theme/ThemeProvider.tsx
@@ -1614,7 +1536,7 @@ import { createContext, useContext, useEffect as useEffect5, useState as useStat
1614
1536
  var InheritedTheme = window.matchMedia("(prefers-color-scheme: light)").matches ? "Light" : "Dark";
1615
1537
 
1616
1538
  // src/utils/Theme/ThemeProvider.tsx
1617
- import { jsx as jsx27, jsxs as jsxs6 } from "react/jsx-runtime";
1539
+ import { jsx as jsx36, jsxs as jsxs6 } from "react/jsx-runtime";
1618
1540
  var LocalStorageKey = "@muffled-ui/settings";
1619
1541
  var SettingsContext = createContext(void 0);
1620
1542
  var useMuffledSettings = () => {
@@ -1636,44 +1558,44 @@ var MuffledUI = ({ children }) => {
1636
1558
  useEffect5(() => {
1637
1559
  localStorage.setItem(LocalStorageKey, JSON.stringify({ theme: themeKey }));
1638
1560
  }, [themeKey]);
1639
- return /* @__PURE__ */ jsx27(SettingsContext.Provider, { value: {
1561
+ return /* @__PURE__ */ jsx36(SettingsContext.Provider, { value: {
1640
1562
  theme: themeKey,
1641
1563
  setTheme: setThemeKey,
1642
1564
  toggleTheme: () => setThemeKey(themeKey == "Dark" ? "Light" : "Dark")
1643
1565
  }, children: /* @__PURE__ */ jsxs6(ThemeProvider, { theme: theme2, children: [
1644
- /* @__PURE__ */ jsx27(GlobalStyles, { theme: theme2 }),
1566
+ /* @__PURE__ */ jsx36(GlobalStyles, { theme: theme2 }),
1645
1567
  children
1646
1568
  ] }) });
1647
1569
  };
1648
1570
 
1649
1571
  // src/utils/Theme/ThemeToggle.tsx
1650
1572
  import { MoonIcon, SunIcon } from "@heroicons/react/16/solid";
1651
- import { jsx as jsx28, jsxs as jsxs7 } from "react/jsx-runtime";
1573
+ import { jsx as jsx37, jsxs as jsxs7 } from "react/jsx-runtime";
1652
1574
  var ThemeSwitch = () => {
1653
1575
  let { theme: theme2, toggleTheme } = useMuffledSettings();
1654
- return /* @__PURE__ */ jsxs7(Box, { display: "flex", alignSelf: "center", width: "120px", justifyContent: "space-between", borderRadius: "8", border: "border.1", px: "3", py: "3", bg: "background", children: [
1655
- /* @__PURE__ */ jsx28(SunIcon, { width: "16px" }),
1656
- /* @__PURE__ */ jsx28(Switch, { checked: theme2 === "Dark", onChange: toggleTheme }),
1657
- /* @__PURE__ */ jsx28(MoonIcon, { width: "16px" })
1576
+ return /* @__PURE__ */ jsxs7(Box, { display: "flex", alignSelf: "center", w: "120px", justifyContent: "space-between", borderRadius: "8", border: "border.1", px: "3", py: "3", bg: "background", children: [
1577
+ /* @__PURE__ */ jsx37(SunIcon, { width: "16px" }),
1578
+ /* @__PURE__ */ jsx37(Switch, { checked: theme2 === "Dark", onChange: toggleTheme }),
1579
+ /* @__PURE__ */ jsx37(MoonIcon, { width: "16px" })
1658
1580
  ] });
1659
1581
  };
1660
1582
  var ThemeButton = () => {
1661
1583
  let { theme: theme2, toggleTheme } = useMuffledSettings();
1662
1584
  return /* @__PURE__ */ jsxs7(OutlineButton, { onClick: toggleTheme, children: [
1663
- theme2 === "Dark" && /* @__PURE__ */ jsx28(SunIcon, { width: "16px" }),
1664
- theme2 === "Light" && /* @__PURE__ */ jsx28(MoonIcon, { width: "16px" })
1585
+ theme2 === "Dark" && /* @__PURE__ */ jsx37(SunIcon, { width: "16px" }),
1586
+ theme2 === "Light" && /* @__PURE__ */ jsx37(MoonIcon, { width: "16px" })
1665
1587
  ] });
1666
1588
  };
1667
1589
 
1668
1590
  // src/inputs/Controls/Radio/Radio.tsx
1669
- import { jsx as jsx29 } from "react/jsx-runtime";
1591
+ import { jsx as jsx38 } from "react/jsx-runtime";
1670
1592
  var Radio = (_a) => {
1671
1593
  var rest = __objRest(_a, []);
1672
1594
  var _a2;
1673
- return /* @__PURE__ */ jsx29(
1595
+ return /* @__PURE__ */ jsx38(
1674
1596
  BaseControl,
1675
1597
  __spreadValues({
1676
- icon: /* @__PURE__ */ jsx29(RadioIcon, { width: "16", height: "16" }),
1598
+ icon: /* @__PURE__ */ jsx38(RadioIcon, { width: "16", height: "16" }),
1677
1599
  type: "radio",
1678
1600
  labelText: rest.labelText || ((_a2 = rest.value) == null ? void 0 : _a2.toString()),
1679
1601
  value: rest.value || rest.labelText,
@@ -1687,18 +1609,17 @@ import { useState as useState10 } from "react";
1687
1609
  import Picker from "react-datepicker";
1688
1610
 
1689
1611
  // src/inputs/Datepicker/Base/PopperContainer.tsx
1690
- import { jsx as jsx30 } from "react/jsx-runtime";
1691
- var PopperContainer = ({ children }) => /* @__PURE__ */ jsx30(Portal, { children });
1612
+ import { jsx as jsx39 } from "react/jsx-runtime";
1613
+ var PopperContainer = ({ children }) => /* @__PURE__ */ jsx39(Portal, { children });
1692
1614
 
1693
1615
  // src/inputs/Datepicker/Base/DateHeader.tsx
1694
1616
  import { useState as useState8 } from "react";
1695
- import styled23 from "styled-components";
1696
1617
  import { format, getYear } from "date-fns";
1697
1618
 
1698
1619
  // src/navigation/Menu/Menu.tsx
1699
1620
  import { useState as useState7 } from "react";
1700
1621
  import { usePopper } from "react-popper";
1701
- import { jsx as jsx31 } from "react/jsx-runtime";
1622
+ import { jsx as jsx40 } from "react/jsx-runtime";
1702
1623
  var Menu = (_a) => {
1703
1624
  var _b = _a, { children, isOpen, direction = "bottom-start", itemRef, handleClose, inline = false } = _b, rest = __objRest(_b, ["children", "isOpen", "direction", "itemRef", "handleClose", "inline"]);
1704
1625
  let [popperRef, setPopperRef] = useState7(null);
@@ -1713,13 +1634,13 @@ var Menu = (_a) => {
1713
1634
  }
1714
1635
  ]
1715
1636
  });
1716
- let Popper = /* @__PURE__ */ jsx31("div", __spreadValues({ ref: setPopperRef, style: styles.popper }, attributes.popper));
1717
- return isOpen ? /* @__PURE__ */ jsx31(ClickOutside, { handleClose, target: popperRef, wrapper: Popper, inline, children: /* @__PURE__ */ jsx31(Box, __spreadProps(__spreadValues({ bg: "background", borderRadius: "3", boxShadow: "base.0", border: "border.1", display: "flex", flexDirection: "column", py: "1", overflowY: "scroll" }, rest), { children })) }) : null;
1637
+ let Popper = /* @__PURE__ */ jsx40("div", __spreadValues({ ref: setPopperRef, style: styles.popper }, attributes.popper));
1638
+ return isOpen ? /* @__PURE__ */ jsx40(ClickOutside, { handleClose, target: popperRef, wrapper: Popper, inline, children: /* @__PURE__ */ jsx40(Box, __spreadProps(__spreadValues({ bg: "background", borderRadius: "3", boxShadow: "base.0", border: "border.1", display: "flex", flexDirection: "column", py: "1", overflowY: "scroll" }, rest), { children })) }) : null;
1718
1639
  };
1719
1640
 
1720
1641
  // src/navigation/Menu/MenuItem.tsx
1721
- import { jsx as jsx32 } from "react/jsx-runtime";
1722
- var MenuItem = ({ children, onClick }) => /* @__PURE__ */ jsx32(
1642
+ import { jsx as jsx41 } from "react/jsx-runtime";
1643
+ var MenuItem = ({ children, onClick }) => /* @__PURE__ */ jsx41(
1723
1644
  Button,
1724
1645
  {
1725
1646
  mx: "1",
@@ -1733,18 +1654,18 @@ var MenuItem = ({ children, onClick }) => /* @__PURE__ */ jsx32(
1733
1654
 
1734
1655
  // src/inputs/Datepicker/Base/DateNavigation.tsx
1735
1656
  import { ChevronLeftIcon as ChevronLeftIcon3, ChevronRightIcon as ChevronRightIcon4 } from "@heroicons/react/24/outline";
1736
- import { Fragment as Fragment5, jsx as jsx33, jsxs as jsxs8 } from "react/jsx-runtime";
1657
+ import { Fragment as Fragment5, jsx as jsx42, jsxs as jsxs8 } from "react/jsx-runtime";
1737
1658
  var LeftNavigation = ({ decreaseYear, decreaseMonth }) => /* @__PURE__ */ jsxs8(Fragment5, { children: [
1738
- decreaseYear && /* @__PURE__ */ jsx33(OutlineButton, { px: "5px", py: "5px", height: "inherit", onClick: decreaseYear, children: /* @__PURE__ */ jsx33(ChevronLeftIcon3, { width: 16, height: 16 }) }),
1739
- decreaseMonth && /* @__PURE__ */ jsx33(OutlineButton, { px: "5px", py: "5px", height: "inherit", onClick: decreaseMonth, children: /* @__PURE__ */ jsx33(ChevronLeftIcon3, { width: 16, height: 16 }) })
1659
+ decreaseYear && /* @__PURE__ */ jsx42(OutlineButton, { px: "5px", py: "5px", h: "inherit", onClick: decreaseYear, children: /* @__PURE__ */ jsx42(ChevronLeftIcon3, { width: 16, height: 16 }) }),
1660
+ decreaseMonth && /* @__PURE__ */ jsx42(OutlineButton, { px: "5px", py: "5px", h: "inherit", onClick: decreaseMonth, children: /* @__PURE__ */ jsx42(ChevronLeftIcon3, { width: 16, height: 16 }) })
1740
1661
  ] });
1741
1662
  var RightNavigation = ({ increaseYear, increaseMonth }) => /* @__PURE__ */ jsxs8(Fragment5, { children: [
1742
- increaseMonth && /* @__PURE__ */ jsx33(OutlineButton, { px: "5px", py: "5px", height: "inherit", onClick: increaseMonth, children: /* @__PURE__ */ jsx33(ChevronRightIcon4, { width: 16, height: 16 }) }),
1743
- increaseYear && /* @__PURE__ */ jsx33(OutlineButton, { px: "5px", py: "5px", height: "inherit", onClick: increaseYear, children: /* @__PURE__ */ jsx33(ChevronRightIcon4, { width: 16, height: 16 }) })
1663
+ increaseMonth && /* @__PURE__ */ jsx42(OutlineButton, { px: "5px", py: "5px", h: "inherit", onClick: increaseMonth, children: /* @__PURE__ */ jsx42(ChevronRightIcon4, { width: 16, height: 16 }) }),
1664
+ increaseYear && /* @__PURE__ */ jsx42(OutlineButton, { px: "5px", py: "5px", h: "inherit", onClick: increaseYear, children: /* @__PURE__ */ jsx42(ChevronRightIcon4, { width: 16, height: 16 }) })
1744
1665
  ] });
1745
1666
 
1746
1667
  // src/inputs/Datepicker/Base/DateHeader.tsx
1747
- import { jsx as jsx34, jsxs as jsxs9 } from "react/jsx-runtime";
1668
+ import { jsx as jsx43, jsxs as jsxs9 } from "react/jsx-runtime";
1748
1669
  var months = [
1749
1670
  "January",
1750
1671
  "February",
@@ -1759,9 +1680,6 @@ var months = [
1759
1680
  "November",
1760
1681
  "December"
1761
1682
  ];
1762
- var StyledMenu = styled23(Menu)`
1763
- max-height: 200px;
1764
- `;
1765
1683
  var getYearsPeriod = (date, yearItemNumber = 12) => {
1766
1684
  let endPeriod = Math.ceil(getYear(date) / yearItemNumber) * yearItemNumber;
1767
1685
  let startPeriod = endPeriod - (yearItemNumber - 1);
@@ -1814,8 +1732,8 @@ var DateHeader = ({
1814
1732
  let increaseYearFn = showYearPicker ? () => changeYear(getYear(date) + 12) : increaseYear;
1815
1733
  return /* @__PURE__ */ jsxs9("div", { children: [
1816
1734
  /* @__PURE__ */ jsxs9(Box, { display: "flex", alignItems: "center", justifyContent: "center", py: "2", children: [
1817
- showLeftNav && /* @__PURE__ */ jsx34(LeftNavigation, { decreaseMonth: canModifyMonths(decreaseMonth), decreaseYear: canModifyYear(decreaseYearFn) }),
1818
- /* @__PURE__ */ jsx34(
1735
+ showLeftNav && /* @__PURE__ */ jsx43(LeftNavigation, { decreaseMonth: canModifyMonths(decreaseMonth), decreaseYear: canModifyYear(decreaseYearFn) }),
1736
+ /* @__PURE__ */ jsx43(
1819
1737
  ClickableElement,
1820
1738
  {
1821
1739
  ref: setItemRef,
@@ -1826,35 +1744,17 @@ var DateHeader = ({
1826
1744
  children: getFriendlyString()
1827
1745
  }
1828
1746
  ),
1829
- showRightNav && /* @__PURE__ */ jsx34(RightNavigation, { increaseMonth: canModifyMonths(increaseMonth), increaseYear: canModifyYear(increaseYearFn) })
1747
+ showRightNav && /* @__PURE__ */ jsx43(RightNavigation, { increaseMonth: canModifyMonths(increaseMonth), increaseYear: canModifyYear(increaseYearFn) })
1830
1748
  ] }),
1831
- /* @__PURE__ */ jsx34(StyledMenu, { inline: true, handleClose: () => setMonthMenuOpen(false), itemRef, isOpen, children: months.map((month, idx) => /* @__PURE__ */ jsx34(MenuItem, { onClick: () => handleMonthChange(idx), children: month }, month)) })
1749
+ /* @__PURE__ */ jsx43(Menu, { inline: true, maxHeight: "200px", handleClose: () => setMonthMenuOpen(false), itemRef, isOpen, children: months.map((month, idx) => /* @__PURE__ */ jsx43(MenuItem, { onClick: () => handleMonthChange(idx), children: month }, month)) })
1832
1750
  ] });
1833
1751
  };
1834
1752
 
1835
1753
  // src/inputs/Datepicker/Base/DateInput.tsx
1836
- import { forwardRef as forwardRef8 } from "react";
1754
+ import { forwardRef as forwardRef12 } from "react";
1837
1755
  import { CalendarIcon } from "@heroicons/react/24/outline";
1838
- import styled24 from "styled-components";
1839
- import { jsx as jsx35, jsxs as jsxs10 } from "react/jsx-runtime";
1840
- var Container2 = styled24.div`
1841
- display: flex;
1842
- > :not([hidden]) ~ :not([hidden]) {
1843
- margin-left: ${({ theme: theme2 }) => theme2.space[1]};
1844
- margin-right:${({ theme: theme2 }) => theme2.space[4]};
1845
- }
1846
- `;
1847
- var Icon2 = styled24(CalendarIcon)`
1848
- color: ${({ theme: theme2 }) => theme2.colors.foreground};
1849
- margin-right: ${({ theme: theme2 }) => theme2.space[2]};
1850
- `;
1851
- var ClearBtn = styled24(ClickableElement)`
1852
- color: ${({ theme: theme2 }) => theme2.colors.foreground};
1853
- :hover {
1854
- color: ${({ theme: theme2 }) => theme2.colors.foreground};
1855
- }
1856
- `;
1857
- var DateInput = forwardRef8(({
1756
+ import { jsx as jsx44, jsxs as jsxs10 } from "react/jsx-runtime";
1757
+ var DateInput = forwardRef12(({
1858
1758
  value,
1859
1759
  placeholder,
1860
1760
  onClick,
@@ -1865,24 +1765,24 @@ var DateInput = forwardRef8(({
1865
1765
  e.stopPropagation();
1866
1766
  clear == null ? void 0 : clear();
1867
1767
  };
1868
- let displayValue = value ? /* @__PURE__ */ jsx35(Text, { as: "span", children: value }) : /* @__PURE__ */ jsx35(Text, { as: "span", color: "mutedForeground", children: placeholder });
1869
- return /* @__PURE__ */ jsxs10(OutlineButton, { bg: "background", width: "100%", fontWeight: "400", lineHeight: "inherit", justifyContent: "space-between", ref, onClick, children: [
1870
- /* @__PURE__ */ jsxs10(Container2, { children: [
1871
- /* @__PURE__ */ jsx35(Icon2, { width: 16, height: 16 }),
1768
+ let displayValue = value ? /* @__PURE__ */ jsx44(Text, { as: "span", children: value }) : /* @__PURE__ */ jsx44(Text, { as: "span", color: "mutedForeground", children: placeholder });
1769
+ return /* @__PURE__ */ jsxs10(OutlineButton, { w: "100%", fontWeight: "400", lineHeight: "inherit", justifyContent: "space-between", ref, onClick, children: [
1770
+ /* @__PURE__ */ jsxs10(Box, { display: "flex", alignContent: "center", ml: { " > :not([hidden]) ~ :not([hidden])": "1" }, mr: { " > :not([hidden]) ~ :not([hidden])": 4 }, children: [
1771
+ /* @__PURE__ */ jsx44(Box, { color: "primary", mr: "2", children: /* @__PURE__ */ jsx44(CalendarIcon, { width: 16, height: 16 }) }),
1872
1772
  displayValue
1873
1773
  ] }),
1874
- showClear && value && /* @__PURE__ */ jsx35(ClearBtn, { onClick: handleClear, as: "a", children: "Clear" })
1774
+ showClear && value && /* @__PURE__ */ jsx44(ClickableElement, { color: "foreground", opacity: { ":hover": 0.3 }, onClick: handleClear, as: "a", children: "Clear" })
1875
1775
  ] });
1876
1776
  });
1877
1777
 
1878
1778
  // src/inputs/Datepicker/Base/DateContainer.tsx
1879
- import { jsx as jsx36 } from "react/jsx-runtime";
1880
- var DateContainer = ({ children }) => /* @__PURE__ */ jsx36(Box, { display: "flex", p: "3", bg: "background", borderRadius: "2", boxShadow: "base.1", border: "border.1", fontSize: "1", lineHeight: "1", children });
1779
+ import { jsx as jsx45 } from "react/jsx-runtime";
1780
+ var DateContainer = ({ children }) => /* @__PURE__ */ jsx45(Box, { display: "flex", p: "3", bg: "background", borderRadius: "2", boxShadow: "base.1", border: "border.1", fontSize: "1", lineHeight: "1", children });
1881
1781
 
1882
1782
  // src/inputs/Datepicker/Base/DateWrapper.tsx
1883
1783
  import { useState as useState9 } from "react";
1884
1784
  import { usePopper as usePopper2 } from "react-popper";
1885
- import { jsx as jsx37 } from "react/jsx-runtime";
1785
+ import { jsx as jsx46 } from "react/jsx-runtime";
1886
1786
  var DateWrapper = ({ children, itemRef, direction = "bottom-start", handleClose, isOpen }) => {
1887
1787
  let [popperRef, setPopperRef] = useState9(null);
1888
1788
  let { styles, attributes } = usePopper2(itemRef, popperRef, {
@@ -1896,13 +1796,13 @@ var DateWrapper = ({ children, itemRef, direction = "bottom-start", handleClose,
1896
1796
  }
1897
1797
  ]
1898
1798
  });
1899
- return isOpen ? /* @__PURE__ */ jsx37(ClickOutside, { handleClose, target: popperRef, children: /* @__PURE__ */ jsx37(Box, __spreadProps(__spreadValues({ ref: setPopperRef, style: styles.popper }, attributes.popper), { children })) }) : null;
1799
+ return isOpen ? /* @__PURE__ */ jsx46(ClickOutside, { handleClose, target: popperRef, children: /* @__PURE__ */ jsx46(Box, __spreadProps(__spreadValues({ ref: setPopperRef, style: styles.popper }, attributes.popper), { children })) }) : null;
1900
1800
  };
1901
1801
 
1902
1802
  // src/inputs/Datepicker/Base/StylingBasePicker.tsx
1903
- import { darken as darken3 } from "polished";
1904
- import styled25 from "styled-components";
1905
- var Container3 = styled25.div`
1803
+ import { darken } from "polished";
1804
+ import styled4 from "@xstyled/styled-components";
1805
+ var Container2 = styled4.div`
1906
1806
  /*
1907
1807
  --------------------------
1908
1808
  Day names
@@ -2033,14 +1933,14 @@ var Container3 = styled25.div`
2033
1933
  .react-datepicker__day--in-selecting-range {
2034
1934
  :hover {
2035
1935
  border-radius: ${({ theme: theme2 }) => theme2.radii[3]};
2036
- background: ${({ theme: theme2 }) => darken3(0.1, theme2.colors.accent)};
1936
+ background: ${({ theme: theme2 }) => darken(0.1, theme2.colors.accent)};
2037
1937
  }
2038
1938
  background: ${({ theme: theme2 }) => theme2.colors.accent};
2039
1939
  }
2040
1940
 
2041
1941
  .react-datepicker__day--selecting-range-start div,
2042
1942
  .react-datepicker__day--selecting-range-end div {
2043
- background: ${({ theme: theme2 }) => darken3(0.1, theme2.colors.primary)};
1943
+ background: ${({ theme: theme2 }) => darken(0.1, theme2.colors.primary)};
2044
1944
  color: ${({ theme: theme2 }) => theme2.colors.primaryForeground};
2045
1945
  }
2046
1946
 
@@ -2097,7 +1997,7 @@ var Container3 = styled25.div`
2097
1997
  `;
2098
1998
 
2099
1999
  // src/inputs/Datepicker/Base/BasePicker.tsx
2100
- import { Fragment as Fragment6, jsx as jsx38, jsxs as jsxs11 } from "react/jsx-runtime";
2000
+ import { Fragment as Fragment6, jsx as jsx47, jsxs as jsxs11 } from "react/jsx-runtime";
2101
2001
  var BasePicker = (_a) => {
2102
2002
  var _b = _a, {
2103
2003
  placeholder,
@@ -2136,16 +2036,16 @@ var BasePicker = (_a) => {
2136
2036
  monthsShown,
2137
2037
  showPopperArrow: false,
2138
2038
  inline: true,
2139
- renderDayContents: (dayOfMonth) => /* @__PURE__ */ jsx38("div", { className: "in-month", children: dayOfMonth }),
2039
+ renderDayContents: (dayOfMonth) => /* @__PURE__ */ jsx47("div", { className: "in-month", children: dayOfMonth }),
2140
2040
  calendarContainer: DateContainer,
2141
2041
  popperContainer: PopperContainer,
2142
2042
  onChange: handleChange,
2143
2043
  showMonthYearPicker,
2144
2044
  showYearPicker,
2145
- renderCustomHeader: (props) => /* @__PURE__ */ jsx38(DateHeader, __spreadValues({ showMonthYearPicker, monthsShown, showYearPicker }, props))
2045
+ renderCustomHeader: (props) => /* @__PURE__ */ jsx47(DateHeader, __spreadValues({ showMonthYearPicker, monthsShown, showYearPicker }, props))
2146
2046
  };
2147
2047
  return /* @__PURE__ */ jsxs11(Fragment6, { children: [
2148
- /* @__PURE__ */ jsx38(
2048
+ /* @__PURE__ */ jsx47(
2149
2049
  DateInput,
2150
2050
  {
2151
2051
  ref: setWrappedRef,
@@ -2156,7 +2056,7 @@ var BasePicker = (_a) => {
2156
2056
  showClear
2157
2057
  }
2158
2058
  ),
2159
- /* @__PURE__ */ jsx38(DateWrapper, { isOpen, handleClose: () => setOpen(false), itemRef: wrappedRef, children: /* @__PURE__ */ jsx38(Container3, { children: /* @__PURE__ */ jsx38(
2059
+ /* @__PURE__ */ jsx47(DateWrapper, { isOpen, handleClose: () => setOpen(false), itemRef: wrappedRef, children: /* @__PURE__ */ jsx47(Container2, { children: /* @__PURE__ */ jsx47(
2160
2060
  Picker,
2161
2061
  __spreadValues(__spreadValues({}, defaults), rest)
2162
2062
  ) }) })
@@ -2166,7 +2066,7 @@ var BasePicker = (_a) => {
2166
2066
  // src/inputs/Datepicker/DateRangePicker.tsx
2167
2067
  import { useState as useState11 } from "react";
2168
2068
  import { format as format2 } from "date-fns";
2169
- import { jsx as jsx39 } from "react/jsx-runtime";
2069
+ import { jsx as jsx48 } from "react/jsx-runtime";
2170
2070
  var DateRangePicker = (_a) => {
2171
2071
  var _b = _a, { defaultStartDate, defaultEndDate, onChange = () => {
2172
2072
  }, inputValueFormat = "dd/MM/yyyy", monthsShown = 2 } = _b, rest = __objRest(_b, ["defaultStartDate", "defaultEndDate", "onChange", "inputValueFormat", "monthsShown"]);
@@ -2183,7 +2083,7 @@ var DateRangePicker = (_a) => {
2183
2083
  setEndDate(end);
2184
2084
  onChange == null ? void 0 : onChange(dates, event);
2185
2085
  };
2186
- return /* @__PURE__ */ jsx39(
2086
+ return /* @__PURE__ */ jsx48(
2187
2087
  BasePicker,
2188
2088
  __spreadProps(__spreadValues({}, rest), {
2189
2089
  inputValue: inputValue || void 0,
@@ -2200,7 +2100,7 @@ var DateRangePicker = (_a) => {
2200
2100
  // src/inputs/Datepicker/DatePicker.tsx
2201
2101
  import { useState as useState12 } from "react";
2202
2102
  import { format as format3 } from "date-fns";
2203
- import { jsx as jsx40 } from "react/jsx-runtime";
2103
+ import { jsx as jsx49 } from "react/jsx-runtime";
2204
2104
  var DatePicker = (_a) => {
2205
2105
  var _b = _a, {
2206
2106
  defaultDate,
@@ -2221,7 +2121,7 @@ var DatePicker = (_a) => {
2221
2121
  setSelectedDate(date);
2222
2122
  onChange == null ? void 0 : onChange(date, event);
2223
2123
  };
2224
- return /* @__PURE__ */ jsx40(
2124
+ return /* @__PURE__ */ jsx49(
2225
2125
  BasePicker,
2226
2126
  __spreadProps(__spreadValues({}, rest), {
2227
2127
  inputValue: inputValue || void 0,
@@ -2247,7 +2147,7 @@ var useSelectContext = () => {
2247
2147
  };
2248
2148
 
2249
2149
  // src/inputs/Select/Select.tsx
2250
- import { jsx as jsx41 } from "react/jsx-runtime";
2150
+ import { jsx as jsx50 } from "react/jsx-runtime";
2251
2151
  var clearInputOnSelectItem = (state, changes) => {
2252
2152
  if (changes.type === Downshift.stateChangeTypes.clickButton) {
2253
2153
  return __spreadProps(__spreadValues({}, changes), {
@@ -2258,31 +2158,15 @@ var clearInputOnSelectItem = (state, changes) => {
2258
2158
  };
2259
2159
  var Select = (_a) => {
2260
2160
  var _b = _a, { itemToString, children } = _b, rest = __objRest(_b, ["itemToString", "children"]);
2261
- return /* @__PURE__ */ jsx41(Downshift, __spreadProps(__spreadValues({ itemToString, stateReducer: clearInputOnSelectItem }, rest), { children: (_a2) => {
2161
+ return /* @__PURE__ */ jsx50(Downshift, __spreadProps(__spreadValues({ itemToString, stateReducer: clearInputOnSelectItem }, rest), { children: (_a2) => {
2262
2162
  var _b2 = _a2, { getRootProps } = _b2, downshift = __objRest(_b2, ["getRootProps"]);
2263
- return /* @__PURE__ */ jsx41(Box, __spreadProps(__spreadValues({ position: "relative", width: "100%" }, getRootProps()), { children: /* @__PURE__ */ jsx41(SelectContext.Provider, { value: __spreadValues(__spreadValues({}, downshift), getRootProps()), children }) }));
2163
+ return /* @__PURE__ */ jsx50(Box, __spreadProps(__spreadValues({ position: "relative", w: "100%" }, getRootProps()), { children: /* @__PURE__ */ jsx50(SelectContext.Provider, { value: __spreadValues(__spreadValues({}, downshift), getRootProps()), children }) }));
2264
2164
  } }));
2265
2165
  };
2266
2166
 
2267
2167
  // src/inputs/Select/SelectButton.tsx
2268
2168
  import { ChevronUpDownIcon } from "@heroicons/react/24/outline";
2269
- import styled26 from "styled-components";
2270
- import { jsx as jsx42, jsxs as jsxs12 } from "react/jsx-runtime";
2271
- var ClearBtn2 = styled26(ClickableElement)`
2272
- color: ${({ theme: theme2 }) => theme2.colors.mutedForeground};
2273
- margin-right: 3px;
2274
- :hover {
2275
- color: ${({ theme: theme2 }) => theme2.colors.foreground};
2276
- }
2277
- `;
2278
- var Container4 = styled26(Box)`
2279
- > {
2280
- margin-right: ${({ theme: theme2 }) => theme2.space[4]};
2281
- }
2282
- > :last-child {
2283
- margin-right: 0;
2284
- }
2285
- `;
2169
+ import { jsx as jsx51, jsxs as jsxs12 } from "react/jsx-runtime";
2286
2170
  var SelectButton = (_a) => {
2287
2171
  var _b = _a, {
2288
2172
  isClearable,
@@ -2303,22 +2187,23 @@ var SelectButton = (_a) => {
2303
2187
  } = useSelectContext();
2304
2188
  let buttonText = children || itemToString && itemToString(selectedItem) || selectedItem && selectedItem.value || placeholder;
2305
2189
  let isClearableActive = isClearable && selectedItem;
2306
- let clear = (e) => {
2190
+ let handleClear = (e) => {
2307
2191
  e.stopPropagation();
2308
2192
  clearSelection();
2309
2193
  };
2310
2194
  return /* @__PURE__ */ jsxs12(
2311
2195
  OutlineButton,
2312
2196
  __spreadProps(__spreadValues(__spreadValues({
2313
- width: "100%",
2197
+ w: "100%",
2314
2198
  bg: "background",
2199
+ border: { "": "border.1", "&:focus": "input.1" },
2315
2200
  justifyContent: "space-between"
2316
2201
  }, getToggleButtonProps()), rest), {
2317
2202
  children: [
2318
- /* @__PURE__ */ jsx42(Text, { fontWeight: "normal", color: !selectedItem ? "mutedForeground" : "default", children: buttonText }),
2319
- /* @__PURE__ */ jsxs12(Container4, { display: "flex", alignItems: "center", children: [
2320
- isClearableActive && /* @__PURE__ */ jsx42(ClearBtn2, { as: "a", onClick: clear, children: "Clear" }),
2321
- /* @__PURE__ */ jsx42(ChevronUpDownIcon, { height: 16, width: 16 })
2203
+ /* @__PURE__ */ jsx51(Text, { fontWeight: "normal", color: !selectedItem ? "mutedForeground" : "default", children: buttonText }),
2204
+ /* @__PURE__ */ jsxs12(Box, { display: "flex", alignItems: "center", mr: { ">": 4, "> :last-child": 0 }, children: [
2205
+ isClearableActive && /* @__PURE__ */ jsx51(ClickableElement, { color: "foreground", opacity: { ":hover": 0.3 }, onClick: handleClear, as: "a", children: "Clear" }),
2206
+ /* @__PURE__ */ jsx51(ChevronUpDownIcon, { height: 16, width: 16 })
2322
2207
  ] })
2323
2208
  ]
2324
2209
  })
@@ -2330,73 +2215,73 @@ import { useEffect as useEffect6, useRef as useRef4 } from "react";
2330
2215
  import { ChevronUpDownIcon as ChevronUpDownIcon2 } from "@heroicons/react/24/outline";
2331
2216
 
2332
2217
  // src/inputs/Input/Input.tsx
2333
- import { forwardRef as forwardRef9 } from "react";
2334
- import styled29 from "styled-components";
2218
+ import { forwardRef as forwardRef14 } from "react";
2335
2219
 
2336
2220
  // src/inputs/Input/BaseInput.tsx
2337
- import styled27 from "styled-components";
2338
- var BaseInput = styled27.input`
2339
- width: 100%;
2340
- outline: 2px solid transparent;
2341
- outline-offset: 2px;
2342
- background: transparent;
2343
- color: ${({ theme: theme2 }) => theme2.colors.foreground};
2344
- padding: ${({ theme: theme2 }) => theme2.space[1]} ${({ theme: theme2 }) => theme2.space[3]};
2345
- font-size: ${({ theme: theme2 }) => theme2.fontSizes[1]};
2346
- line-height: ${({ theme: theme2 }) => theme2.lineHeights[1]};
2347
- height: ${({ theme: theme2 }) => theme2.sizes[8]};
2348
- :placeholder {
2349
- color: ${({ theme: theme2 }) => theme2.colors.mutedForeground};
2350
- }
2351
- `;
2221
+ import { x as x15 } from "@xstyled/styled-components";
2222
+ import { forwardRef as forwardRef13 } from "react";
2223
+ import { jsx as jsx52 } from "react/jsx-runtime";
2224
+ var BaseInput = forwardRef13((_a, ref) => {
2225
+ var rest = __objRest(_a, []);
2226
+ return /* @__PURE__ */ jsx52(
2227
+ x15.input,
2228
+ __spreadValues({
2229
+ ref,
2230
+ w: "100%",
2231
+ outline: "2px solid transparent",
2232
+ outlineOffset: "2px",
2233
+ bg: "transparent",
2234
+ color: { _: "foreground", placeholder: "mutedForeground" },
2235
+ padding: "1 3",
2236
+ fontSize: 1,
2237
+ lineHeight: 1,
2238
+ h: "8"
2239
+ }, rest)
2240
+ );
2241
+ });
2352
2242
 
2353
2243
  // src/inputs/Input/AddonElement.tsx
2354
- import styled28 from "styled-components";
2355
- import { jsx as jsx43 } from "react/jsx-runtime";
2356
- var StyledBox = styled28(Box)`
2357
- &:focus {
2358
- z-index:0;
2359
- outline: none;
2360
- }
2361
-
2362
- button:focus {
2363
- outline: none;
2364
- box-shadow: none;
2365
- }
2366
-
2367
- :hover {
2368
- opacity: 0.8;
2369
- }
2370
- `;
2244
+ import { jsx as jsx53 } from "react/jsx-runtime";
2371
2245
  var AddonElement = ({
2372
2246
  addon,
2373
2247
  left,
2374
2248
  right
2375
- }) => addon ? /* @__PURE__ */ jsx43(StyledBox, { bg: "offsetBackground", borderRight: right ? "none" : "border.1", borderLeft: left ? "none" : "border.1", display: "flex", alignItems: "center", children: addon }) : null;
2376
-
2377
- // src/inputs/Input/OptionalIcon.tsx
2378
- import { jsx as jsx44 } from "react/jsx-runtime";
2379
- var OptionalIcon = ({ icon, left, right }) => icon ? /* @__PURE__ */ jsx44(
2249
+ }) => addon ? /* @__PURE__ */ jsx53(
2380
2250
  Box,
2381
2251
  {
2382
2252
  bg: "offsetBackground",
2383
- display: "flex",
2384
2253
  borderRight: right ? "none" : "border.1",
2385
2254
  borderLeft: left ? "none" : "border.1",
2255
+ display: "flex",
2386
2256
  alignItems: "center",
2387
- px: "3",
2388
- py: "2",
2389
- children: icon
2257
+ zIndex: { "&:focus": 0 },
2258
+ outline: { "&:focus": "none", "button:focus": "none" },
2259
+ boxShadow: { "button:focus": "none" },
2260
+ opacity: { "&:hover": 0.8 },
2261
+ children: addon
2390
2262
  }
2391
2263
  ) : null;
2392
2264
 
2393
- // src/inputs/Input/Input.tsx
2394
- import { jsx as jsx45, jsxs as jsxs13 } from "react/jsx-runtime";
2395
- var Container5 = styled29(Box)`
2396
- overflow: hidden;
2397
- :focus-within {
2398
- border: ${({ theme: theme2 }) => theme2.borders.primary[1]};
2265
+ // src/inputs/Input/OptionalIcon.tsx
2266
+ import { jsx as jsx54 } from "react/jsx-runtime";
2267
+ var OptionalIcon = ({ icon, left, right }) => icon ? /* @__PURE__ */ jsx54(
2268
+ Box,
2269
+ {
2270
+ bg: "offsetBackground",
2271
+ display: "flex",
2272
+ borderRight: right ? "none" : "border.1",
2273
+ borderLeft: left ? "none" : "border.1",
2274
+ alignItems: "center",
2275
+ px: "3",
2276
+ py: "2",
2277
+ children: icon
2399
2278
  }
2279
+ ) : null;
2280
+
2281
+ // src/inputs/Input/Input.tsx
2282
+ import styled5 from "@xstyled/styled-components";
2283
+ import { jsx as jsx55, jsxs as jsxs13 } from "react/jsx-runtime";
2284
+ var Container3 = styled5(Box)`
2400
2285
  ${({ disabled }) => disabled && `
2401
2286
  opacity: 0.5;
2402
2287
  cursor: not-allowed;
@@ -2405,7 +2290,7 @@ var Container5 = styled29(Box)`
2405
2290
  }
2406
2291
  `}
2407
2292
  `;
2408
- var Input2 = forwardRef9((_a, ref) => {
2293
+ var Input = forwardRef14((_a, ref) => {
2409
2294
  var _b = _a, {
2410
2295
  prefixMarkIcon: prefiXMarkIcon,
2411
2296
  suffixMarkIcon: suffiXMarkIcon,
@@ -2420,20 +2305,21 @@ var Input2 = forwardRef9((_a, ref) => {
2420
2305
  "disabled"
2421
2306
  ]);
2422
2307
  return /* @__PURE__ */ jsxs13(
2423
- Container5,
2308
+ Container3,
2424
2309
  {
2425
2310
  disabled,
2426
2311
  bg: "background",
2427
2312
  display: "flex",
2428
2313
  borderRadius: "3",
2429
- border: "border.1",
2314
+ border: { "": "border.1", "&:focus-within": "input.1" },
2315
+ overflow: "hidden",
2430
2316
  boxShadow: "base.0",
2431
2317
  children: [
2432
- /* @__PURE__ */ jsx45(OptionalIcon, { left: true, icon: prefiXMarkIcon }),
2433
- /* @__PURE__ */ jsx45(AddonElement, { left: true, addon: before }),
2434
- /* @__PURE__ */ jsx45(BaseInput, __spreadValues({ disabled, ref }, rest)),
2435
- /* @__PURE__ */ jsx45(OptionalIcon, { right: true, icon: suffiXMarkIcon }),
2436
- /* @__PURE__ */ jsx45(AddonElement, { right: true, addon: after })
2318
+ /* @__PURE__ */ jsx55(OptionalIcon, { left: true, icon: prefiXMarkIcon }),
2319
+ /* @__PURE__ */ jsx55(AddonElement, { left: true, addon: before }),
2320
+ /* @__PURE__ */ jsx55(BaseInput, __spreadValues({ disabled, ref }, rest)),
2321
+ /* @__PURE__ */ jsx55(OptionalIcon, { right: true, icon: suffiXMarkIcon }),
2322
+ /* @__PURE__ */ jsx55(AddonElement, { right: true, addon: after })
2437
2323
  ]
2438
2324
  }
2439
2325
  );
@@ -2442,33 +2328,33 @@ var Input2 = forwardRef9((_a, ref) => {
2442
2328
  // src/inputs/Input/Password.tsx
2443
2329
  import { useState as useState13 } from "react";
2444
2330
  import { EyeIcon, EyeSlashIcon } from "@heroicons/react/24/outline";
2445
- import { jsx as jsx46 } from "react/jsx-runtime";
2446
- var Btn2 = (_a) => {
2331
+ import { jsx as jsx56 } from "react/jsx-runtime";
2332
+ var Btn = (_a) => {
2447
2333
  var _b = _a, { showPassword, onClick } = _b, rest = __objRest(_b, ["showPassword", "onClick"]);
2448
- return /* @__PURE__ */ jsx46(ClickableElement, __spreadProps(__spreadValues({ px: "3", py: "2", type: "button", onClick }, rest), { children: showPassword ? /* @__PURE__ */ jsx46(EyeSlashIcon, { width: 16 }) : /* @__PURE__ */ jsx46(EyeIcon, { width: 16 }) }));
2334
+ return /* @__PURE__ */ jsx56(ClickableElement, __spreadProps(__spreadValues({ padding: "2 3", type: "button", onClick }, rest), { children: showPassword ? /* @__PURE__ */ jsx56(EyeSlashIcon, { width: 16 }) : /* @__PURE__ */ jsx56(EyeIcon, { width: 16 }) }));
2449
2335
  };
2450
2336
  var Password = (_a) => {
2451
2337
  var rest = __objRest(_a, []);
2452
2338
  let [showPassword, setToggle] = useState13(false);
2453
2339
  let onClick = () => setToggle(!showPassword);
2454
- return /* @__PURE__ */ jsx46(
2455
- Input2,
2340
+ return /* @__PURE__ */ jsx56(
2341
+ Input,
2456
2342
  __spreadProps(__spreadValues({}, rest), {
2457
- after: /* @__PURE__ */ jsx46(Btn2, { showPassword, onClick }),
2343
+ after: /* @__PURE__ */ jsx56(Btn, { showPassword, onClick }),
2458
2344
  type: showPassword ? "text" : "password"
2459
2345
  })
2460
2346
  );
2461
2347
  };
2462
2348
 
2463
2349
  // src/inputs/Input/NumberField.tsx
2464
- import { jsx as jsx47 } from "react/jsx-runtime";
2350
+ import { jsx as jsx57 } from "react/jsx-runtime";
2465
2351
  var NumberField = (_a) => {
2466
2352
  var rest = __objRest(_a, []);
2467
- return /* @__PURE__ */ jsx47(Input2, __spreadValues({ type: "number" }, rest));
2353
+ return /* @__PURE__ */ jsx57(Input, __spreadValues({ type: "number" }, rest));
2468
2354
  };
2469
2355
 
2470
2356
  // src/inputs/Select/SelectFilter.tsx
2471
- import { jsx as jsx48 } from "react/jsx-runtime";
2357
+ import { jsx as jsx58 } from "react/jsx-runtime";
2472
2358
  var SelectFilter = (_a) => {
2473
2359
  var _b = _a, { textProps } = _b, rest = __objRest(_b, ["textProps"]);
2474
2360
  let ref = useRef4(null);
@@ -2480,23 +2366,13 @@ var SelectFilter = (_a) => {
2480
2366
  }
2481
2367
  }, [isOpen]);
2482
2368
  if (!isOpen) {
2483
- return /* @__PURE__ */ jsx48(SelectButton, __spreadValues({}, rest));
2369
+ return /* @__PURE__ */ jsx58(SelectButton, __spreadValues({}, rest));
2484
2370
  }
2485
- return /* @__PURE__ */ jsx48(Input2, __spreadValues(__spreadValues({ suffixMarkIcon: /* @__PURE__ */ jsx48(ChevronUpDownIcon2, { height: 16, width: 16 }), ref }, textProps), getInputProps()));
2371
+ return /* @__PURE__ */ jsx58(Input, __spreadValues(__spreadValues({ suffixMarkIcon: /* @__PURE__ */ jsx58(ChevronUpDownIcon2, { height: 16, width: 16 }), ref }, textProps), getInputProps()));
2486
2372
  };
2487
2373
 
2488
2374
  // src/inputs/Select/SelectItem.tsx
2489
- import styled30 from "styled-components";
2490
- import { jsx as jsx49 } from "react/jsx-runtime";
2491
- var Item = styled30(ListItem)`
2492
- cursor: pointer;
2493
- padding: ${({ theme: theme2 }) => `${theme2.space[1]} ${theme2.space[4]}`};
2494
- background: ${({ changeBg, theme: theme2 }) => changeBg ? theme2.colors.muted : "inherit"};
2495
- font-size: ${({ theme: theme2 }) => theme2.fontSizes[1]};
2496
- line-height: ${({ theme: theme2 }) => theme2.lineHeights[1]};
2497
- border-radius: ${({ theme: theme2 }) => theme2.radii[3]};
2498
- margin: 0px ${({ theme: theme2 }) => theme2.space[1]};
2499
- `;
2375
+ import { jsx as jsx59 } from "react/jsx-runtime";
2500
2376
  var SelectItem = ({ children, item, index }) => {
2501
2377
  let {
2502
2378
  getItemProps,
@@ -2509,10 +2385,16 @@ var SelectItem = ({ children, item, index }) => {
2509
2385
  item,
2510
2386
  index
2511
2387
  }), { key } = _a, itemProps = __objRest(_a, ["key"]);
2512
- return /* @__PURE__ */ jsx49(
2513
- Item,
2388
+ return /* @__PURE__ */ jsx59(
2389
+ ListItem,
2514
2390
  __spreadProps(__spreadValues({
2515
- changeBg: selectedItem === item
2391
+ bg: selectedItem === item ? "muted" : "inherit",
2392
+ p: "1 4",
2393
+ cursor: "pointer",
2394
+ fontSize: "1",
2395
+ lineHeight: "1",
2396
+ borderRadius: "3",
2397
+ margin: "0px 1"
2516
2398
  }, itemProps), {
2517
2399
  children: itemText
2518
2400
  }),
@@ -2521,39 +2403,33 @@ var SelectItem = ({ children, item, index }) => {
2521
2403
  };
2522
2404
 
2523
2405
  // src/inputs/Select/SelectList.tsx
2524
- import styled31 from "styled-components";
2525
- import { jsx as jsx50 } from "react/jsx-runtime";
2526
- var StyledList = styled31(List)`
2527
- padding-top: ${({ theme: theme2 }) => theme2.space[1]};
2528
- padding-bottom: ${({ theme: theme2 }) => theme2.space[1]};
2529
- border-radius: ${({ theme: theme2 }) => theme2.radii[3]};
2530
- box-shadow: ${({ theme: theme2 }) => theme2.shadows.base[4]};
2531
- border: ${({ theme: theme2 }) => theme2.borders.border[1]};
2532
- background: ${({ theme: theme2 }) => theme2.colors.background};
2533
- margin-top: ${({ theme: theme2 }) => theme2.space[2]};
2534
- position: absolute;
2535
- min-width: 100%;
2536
- z-index:1000;
2537
-
2538
- :hover li {
2539
- background: ${({ theme: theme2 }) => theme2.colors.background};
2540
- }
2541
-
2542
- li:hover {
2543
- background: ${({ theme: theme2 }) => theme2.colors.accent};
2544
- }
2545
- `;
2406
+ import { jsx as jsx60 } from "react/jsx-runtime";
2546
2407
  var SelectList = ({ children }) => {
2547
2408
  let { isOpen } = useSelectContext();
2548
2409
  if (!isOpen) {
2549
2410
  return null;
2550
2411
  }
2551
- return /* @__PURE__ */ jsx50(StyledList, { children });
2412
+ return /* @__PURE__ */ jsx60(
2413
+ List,
2414
+ {
2415
+ pt: "1",
2416
+ pb: "1",
2417
+ borderRadius: "3",
2418
+ boxShadow: "base.4",
2419
+ border: "border.1",
2420
+ bg: { "": "background", "&:hover li": "background", "& li:hover": "accent" },
2421
+ mt: "2",
2422
+ position: "absolute",
2423
+ minWidth: "100%",
2424
+ zIndex: "1000",
2425
+ children
2426
+ }
2427
+ );
2552
2428
  };
2553
2429
 
2554
2430
  // src/inputs/Select/SimpleSelect/SimpleSelect.tsx
2555
2431
  import { useState as useState14 } from "react";
2556
- import { jsx as jsx51, jsxs as jsxs14 } from "react/jsx-runtime";
2432
+ import { jsx as jsx61, jsxs as jsxs14 } from "react/jsx-runtime";
2557
2433
  var SimpleSelect = (_a) => {
2558
2434
  var _b = _a, {
2559
2435
  values,
@@ -2581,141 +2457,109 @@ var SimpleSelect = (_a) => {
2581
2457
  setFilter(inputValue);
2582
2458
  };
2583
2459
  return /* @__PURE__ */ jsxs14(Select, __spreadProps(__spreadValues({ onInputValueChange: handleOnputValueChange, itemToString }, rest), { children: [
2584
- isFilterable ? /* @__PURE__ */ jsx51(SelectFilter, { disabled, isClearable, placeholder }) : /* @__PURE__ */ jsx51(SelectButton, { disabled, isClearable, placeholder }),
2585
- /* @__PURE__ */ jsx51(SelectList, { children: filterOptions.map((item, idx) => /* @__PURE__ */ jsx51(SelectItem, { item, index: idx }, `key_${JSON.stringify(item)}`)) })
2460
+ isFilterable ? /* @__PURE__ */ jsx61(SelectFilter, { disabled, isClearable, placeholder }) : /* @__PURE__ */ jsx61(SelectButton, { disabled, isClearable, placeholder }),
2461
+ /* @__PURE__ */ jsx61(SelectList, { children: filterOptions.map((item, idx) => /* @__PURE__ */ jsx61(SelectItem, { item, index: idx }, `key_${JSON.stringify(item)}`)) })
2586
2462
  ] }));
2587
2463
  };
2588
2464
 
2589
2465
  // src/inputs/Switch/Switch.tsx
2590
- import styled32 from "styled-components";
2591
- import { jsx as jsx52, jsxs as jsxs15 } from "react/jsx-runtime";
2592
- var Label2 = styled32.label`
2593
- position: relative;
2594
- display: inline-flex;
2595
- align-items: center;
2596
- cursor: pointer;
2597
- height: ${({ theme: theme2 }) => theme2.sizes[4]};
2598
- width: ${({ theme: theme2 }) => theme2.sizes[8]};
2599
- ${({ disabled }) => disabled && `
2600
- cursor: not-allowed;
2601
- opacity: 0.4;
2602
- `}
2603
- `;
2604
- var Button2 = styled32.div`
2605
- background: ${({ theme: theme2 }) => theme2.colors.background};
2606
- position: absolute;
2607
- border-radius: ${({ theme: theme2 }) => theme2.radii[8]};
2608
- box-shadow: ${({ theme: theme2 }) => theme2.shadows.base[1]};
2609
- right: 100%;
2610
- transform: translateX(100%);
2611
- height: ${({ theme: theme2 }) => theme2.sizes[4]};
2612
- width: ${({ theme: theme2 }) => theme2.sizes[4]};
2613
- ${({ checked }) => checked && `
2614
- right: 0%;
2615
- transform: translateX(0%);
2616
- `}
2617
- ${({ theme: theme2 }) => theme2.transition}
2618
- `;
2619
- var Input3 = styled32.input`
2620
- display: none;
2621
- `;
2622
- var Backing = styled32.div`
2623
- width: 100%;
2624
- height: ${({ theme: theme2 }) => theme2.sizes[4]};
2625
- border-radius: ${({ theme: theme2 }) => theme2.radii[8]};
2626
- position: absolute;
2627
- background: ${({ theme: theme2 }) => theme2.colors.input};
2628
- box-shadow: ${({ theme: theme2 }) => theme2.colors.input} 0 0 0 2px;
2629
- ${({ theme: theme2, checked }) => checked && `
2630
- background: ${theme2.colors.primary};
2631
- box-shadow: ${theme2.colors.primary} 0 0 0 2px;
2632
- `}
2633
- ${({ theme: theme2 }) => theme2.transition}
2634
- `;
2466
+ import { x as x16 } from "@xstyled/styled-components";
2467
+ import { jsx as jsx62, jsxs as jsxs15 } from "react/jsx-runtime";
2635
2468
  var Switch = (_a) => {
2636
2469
  var _b = _a, { disabled = false } = _b, rest = __objRest(_b, ["disabled"]);
2637
- return /* @__PURE__ */ jsxs15(Label2, { disabled, children: [
2638
- /* @__PURE__ */ jsx52(Input3, __spreadValues({ type: "checkbox", disabled }, rest)),
2639
- /* @__PURE__ */ jsx52(Backing, __spreadValues({}, rest)),
2640
- /* @__PURE__ */ jsx52(Button2, __spreadValues({}, rest))
2470
+ return /* @__PURE__ */ jsxs15(x16.label, { position: "relative", display: "inline-flex", alignItems: "center", cursor: disabled ? "not-allowed" : "pointer", h: "4", w: "8", opacity: disabled ? 0.4 : 1, children: [
2471
+ /* @__PURE__ */ jsx62(x16.input, __spreadValues({ display: "none", type: "checkbox", disabled }, rest)),
2472
+ /* @__PURE__ */ jsx62(
2473
+ Box,
2474
+ {
2475
+ w: "100%",
2476
+ h: "4",
2477
+ borderRadius: "8",
2478
+ position: "absolute",
2479
+ boxSizing: "initial",
2480
+ bg: rest.checked ? "primary" : "border",
2481
+ border: rest.checked ? "primary.1" : "border.1",
2482
+ borderWidth: "2"
2483
+ }
2484
+ ),
2485
+ /* @__PURE__ */ jsx62(
2486
+ x16.div,
2487
+ {
2488
+ bg: "background",
2489
+ position: "absolute",
2490
+ borderRadius: "8",
2491
+ boxShadow: "base.1",
2492
+ right: rest.checked ? "calc(0% - 1px)" : "calc(100% - 2px)",
2493
+ transitionProperty: "all",
2494
+ transitionTimingFunction: "cubic-bezier(0.4, 0, 0.2, 1)",
2495
+ transitionDuration: "150ms",
2496
+ transform: rest.checked ? "translateX(0%)" : "translateX(100%)",
2497
+ w: "4",
2498
+ h: "100%"
2499
+ }
2500
+ )
2641
2501
  ] });
2642
2502
  };
2643
2503
 
2644
2504
  // src/inputs/TextArea/TextArea.tsx
2645
- import styled33 from "styled-components";
2646
- var TextArea = styled33.textarea`
2647
- box-shadow: ${({ theme: theme2 }) => theme2.shadows.base[0]};
2648
- border: ${({ theme: theme2 }) => theme2.borders.border[1]};
2649
- padding: ${({ theme: theme2 }) => theme2.space[2]};
2650
- width: 100%;
2651
- min-height: ${({ theme: theme2 }) => theme2.sizes[16]};
2652
- background: ${({ theme: theme2 }) => theme2.colors.background};
2653
- font-size: ${({ theme: theme2 }) => theme2.fontSizes[1]};
2654
- line-height: ${({ theme: theme2 }) => theme2.lineHeights[1]};
2655
- border-radius: ${({ theme: theme2 }) => theme2.radii[3]};
2656
- :focus {
2657
- outline: 2px solid transparent;
2658
- outline-offset: 2px;
2659
- border-color: ${({ theme: theme2 }) => theme2.colors.primary};
2660
- z-index: 10;
2661
- }
2662
- `;
2505
+ import { x as x17 } from "@xstyled/styled-components";
2506
+ import { forwardRef as forwardRef15 } from "react";
2507
+ import { jsx as jsx63 } from "react/jsx-runtime";
2508
+ var TextArea = forwardRef15((_a, ref) => {
2509
+ var rest = __objRest(_a, []);
2510
+ return /* @__PURE__ */ jsx63(
2511
+ x17.textarea,
2512
+ __spreadValues({
2513
+ ref,
2514
+ boxShadow: "base.0",
2515
+ border: "border.1",
2516
+ padding: 2,
2517
+ w: "100%",
2518
+ minHeight: 16,
2519
+ bg: "background",
2520
+ fontSize: 1,
2521
+ lineHeight: 1,
2522
+ borderRadius: 3,
2523
+ outline: { "&:focus": "2px solid transparent" },
2524
+ outlineOffset: { "&:focus": "2px" },
2525
+ borderColor: { "&:focus": "primary" },
2526
+ zIndex: { "&:focus": 10 }
2527
+ }, rest)
2528
+ );
2529
+ });
2663
2530
 
2664
2531
  // src/inputs/InputGroup/InputGroup.tsx
2665
- import styled34 from "styled-components";
2666
- import { jsx as jsx53 } from "react/jsx-runtime";
2667
- var Group = styled34.div`
2668
- > div {
2669
- border-radius: 0;
2670
- position: relative;
2671
- }
2672
-
2673
- > div:focus-within {
2674
- z-index: 20;
2675
- }
2676
-
2677
- > :not(div:first-of-type) {
2678
- margin-top: -1px;
2679
- }
2680
-
2681
- div:first-of-type {
2682
- border-radius: ${({ theme: theme2 }) => `${theme2.radii[3]} ${theme2.radii[3]}`} 0 0 ;
2683
- }
2684
- div:last-of-type {
2685
- border-radius: ${({ theme: theme2 }) => `0 0 ${theme2.radii[3]} ${theme2.radii[3]}`};
2532
+ import { x as x18 } from "@xstyled/styled-components";
2533
+ import { jsx as jsx64 } from "react/jsx-runtime";
2534
+ var InputGroup = ({ children }) => /* @__PURE__ */ jsx64(
2535
+ x18.div,
2536
+ {
2537
+ position: { "> div": "relative" },
2538
+ borderRadius: { "> div": 0, "div:first-of-type": "3 3 0 0", "div:last-of-type": "0 0 3 3" },
2539
+ zIndex: { "div:focus-within": 20 },
2540
+ mt: { "> :not(div:first-of-type)": "-1px" },
2541
+ children
2686
2542
  }
2687
- `;
2688
- var InputGroup = ({ children }) => /* @__PURE__ */ jsx53(Group, { children });
2543
+ );
2689
2544
 
2690
2545
  // src/inputs/Upload/UploadZone.tsx
2691
- import { useCallback as useCallback2 } from "react";
2692
- import styled38 from "styled-components";
2546
+ import { useCallback as useCallback2, forwardRef as forwardRef16 } from "react";
2547
+ import { x as x20 } from "@xstyled/styled-components";
2693
2548
  import { ArrowUpTrayIcon } from "@heroicons/react/24/outline";
2694
2549
 
2695
2550
  // src/inputs/Upload/TileItem.tsx
2696
- import styled36 from "styled-components";
2697
2551
  import { PhotoIcon, TrashIcon } from "@heroicons/react/24/outline";
2698
2552
 
2699
2553
  // src/feedback/Tooltip/Tooltip.tsx
2700
2554
  import { useState as useState15 } from "react";
2701
2555
  import { usePopper as usePopper3 } from "react-popper";
2702
- import styled35 from "styled-components";
2703
- import { Fragment as Fragment7, jsx as jsx54, jsxs as jsxs16 } from "react/jsx-runtime";
2704
- var Popover = styled35.div`
2705
- border-radius: ${({ theme: theme2 }) => theme2.radii[2]};
2706
- box-shadow: ${({ theme: theme2 }) => theme2.shadows.base[0]};
2707
- border: ${({ theme: theme2 }) => theme2.borders.border[1]};
2708
- padding: ${({ theme: theme2 }) => `${theme2.space[2]} ${theme2.space[3]}`};
2709
- z-index: 10;
2710
- font-size: ${({ theme: theme2 }) => theme2.fontSizes[1]};
2711
- line-height: ${({ theme: theme2 }) => theme2.lineHeights[1]};
2712
- background: ${({ theme: theme2 }) => theme2.colors.background};
2713
- `;
2556
+ import { x as x19 } from "@xstyled/styled-components";
2557
+ import { Fragment as Fragment7, jsx as jsx65, jsxs as jsxs16 } from "react/jsx-runtime";
2714
2558
  var Tooltip = ({
2715
2559
  tooltip,
2716
2560
  children,
2717
2561
  direction = "top",
2718
- as: Component2 = "div",
2562
+ as: Component = "div",
2719
2563
  disabled
2720
2564
  }) => {
2721
2565
  let [showTooltip, setTooltip] = useState15(false);
@@ -2727,8 +2571,8 @@ var Tooltip = ({
2727
2571
  let handleMouseEnter = () => setTooltip(true);
2728
2572
  let handleMouseLeave = () => setTooltip(false);
2729
2573
  return /* @__PURE__ */ jsxs16(Fragment7, { children: [
2730
- /* @__PURE__ */ jsx54(
2731
- Component2,
2574
+ /* @__PURE__ */ jsx65(
2575
+ Component,
2732
2576
  {
2733
2577
  style: { cursor: "pointer" },
2734
2578
  ref: setWrappedRef,
@@ -2737,10 +2581,18 @@ var Tooltip = ({
2737
2581
  children
2738
2582
  }
2739
2583
  ),
2740
- !disabled && showTooltip && /* @__PURE__ */ jsx54(Portal, { children: /* @__PURE__ */ jsx54(
2741
- Popover,
2584
+ !disabled && showTooltip && /* @__PURE__ */ jsx65(Portal, { children: /* @__PURE__ */ jsx65(
2585
+ x19.div,
2742
2586
  __spreadProps(__spreadValues({
2743
2587
  ref: setPopperRef,
2588
+ borderRadius: 2,
2589
+ boxShadow: "base.0",
2590
+ border: "border.1",
2591
+ padding: "2 3",
2592
+ zIndex: 10,
2593
+ fontSize: 1,
2594
+ lineHeight: 1,
2595
+ background: "background",
2744
2596
  style: styles.popper
2745
2597
  }, attributes.popper), {
2746
2598
  children: tooltip
@@ -2750,36 +2602,21 @@ var Tooltip = ({
2750
2602
  };
2751
2603
 
2752
2604
  // src/inputs/Upload/TileItem.tsx
2753
- import { jsx as jsx55, jsxs as jsxs17 } from "react/jsx-runtime";
2754
- var fallback = /* @__PURE__ */ jsx55(
2605
+ import { jsx as jsx66, jsxs as jsxs17 } from "react/jsx-runtime";
2606
+ var fallback = /* @__PURE__ */ jsx66(
2755
2607
  Box,
2756
2608
  {
2757
- width: "12",
2758
- height: "12",
2609
+ w: "12",
2610
+ h: "12",
2759
2611
  display: "flex",
2760
2612
  alignItems: "center",
2761
2613
  justifyContent: "center",
2762
2614
  color: "baseHighlight",
2763
2615
  borderRadius: "2",
2764
2616
  bg: "background.2",
2765
- children: /* @__PURE__ */ jsx55(PhotoIcon, { width: 30, height: 30 })
2617
+ children: /* @__PURE__ */ jsx66(PhotoIcon, { width: 30, height: 30 })
2766
2618
  }
2767
2619
  );
2768
- var DeleteBtn = styled36(ClickableElement)`
2769
- opacity: ${({ hasError }) => hasError ? 1 : 0};
2770
- `;
2771
- var BoxStyled = styled36(Box)`
2772
- :hover button {
2773
- opacity: 1;
2774
- }
2775
- `;
2776
- var StyledImage = styled36(ImageComp)`
2777
- width: ${({ theme: theme2 }) => theme2.sizes[12]};
2778
- height: ${({ theme: theme2 }) => theme2.sizes[12]};
2779
- object-fit: cover;
2780
- border-radius: ${({ theme: theme2 }) => theme2.radii[2]};
2781
- background: ${({ theme: theme2 }) => theme2.colors.background};
2782
- `;
2783
2620
  var TileItem = ({ file, handleDelete }) => {
2784
2621
  var _a;
2785
2622
  let { name, bytes, type, extension } = file.meta;
@@ -2787,8 +2624,8 @@ var TileItem = ({ file, handleDelete }) => {
2787
2624
  let hasError = (((_a = file.errors) == null ? void 0 : _a.length) || 0) > 0;
2788
2625
  let errorMessage = hasError && file.errors.reduce((acc, curr) => acc += curr.message + " ", "");
2789
2626
  let meta = [bytes, type, extension].filter(Boolean).join(" - ");
2790
- return /* @__PURE__ */ jsx55(Tooltip, { disabled: !hasError, as: "li", tooltip: errorMessage, children: /* @__PURE__ */ jsxs17(
2791
- BoxStyled,
2627
+ return /* @__PURE__ */ jsx66(Tooltip, { disabled: !hasError, as: "li", tooltip: errorMessage, children: /* @__PURE__ */ jsxs17(
2628
+ Box,
2792
2629
  {
2793
2630
  display: "flex",
2794
2631
  alignItems: "center",
@@ -2797,56 +2634,45 @@ var TileItem = ({ file, handleDelete }) => {
2797
2634
  borderRadius: "3",
2798
2635
  border: hasError ? "error.1" : "background2.1",
2799
2636
  color: hasError ? "error" : "base",
2637
+ opacity: { ":hover button": 1 },
2800
2638
  children: [
2801
- /* @__PURE__ */ jsx55(StyledImage, { src: imgSrc, fallback }),
2639
+ /* @__PURE__ */ jsx66(ImageComp, { w: "12", h: "12", objectFit: "cover", borderRadius: "2", bg: "background", src: imgSrc, fallback }),
2802
2640
  /* @__PURE__ */ jsxs17(Box, { display: "flex", flexDirection: "column", ml: "2", children: [
2803
- /* @__PURE__ */ jsx55(Text, { as: "span", fontWeight: "700", children: name }),
2804
- /* @__PURE__ */ jsx55(Text, { fontSize: "0", lineHeight: "0", color: "baseHighlight", children: meta })
2641
+ /* @__PURE__ */ jsx66(Text, { as: "span", fontWeight: "700", children: name }),
2642
+ /* @__PURE__ */ jsx66(Text, { fontSize: "0", lineHeight: "0", color: "baseHighlight", children: meta })
2805
2643
  ] }),
2806
- /* @__PURE__ */ jsx55(Box, { display: "flex", flexGrow: "1", alignItems: "center", justifyContent: "end", children: /* @__PURE__ */ jsx55(DeleteBtn, { hasError, onClick: () => handleDelete(file.key), children: /* @__PURE__ */ jsx55(TrashIcon, { width: 16, height: 16 }) }) })
2644
+ /* @__PURE__ */ jsx66(Box, { display: "flex", flexGrow: "1", alignItems: "center", justifyContent: "end", children: /* @__PURE__ */ jsx66(ClickableElement, { opacity: hasError ? 1 : 0, onClick: () => handleDelete(file.key), children: /* @__PURE__ */ jsx66(TrashIcon, { width: 16, height: 16 }) }) })
2807
2645
  ]
2808
2646
  }
2809
2647
  ) });
2810
2648
  };
2811
2649
 
2812
2650
  // src/inputs/Upload/BasicItem.tsx
2813
- import styled37 from "styled-components";
2814
2651
  import { PaperClipIcon, TrashIcon as TrashIcon2 } from "@heroicons/react/24/outline";
2815
- import { jsx as jsx56, jsxs as jsxs18 } from "react/jsx-runtime";
2816
- var BoxStyled2 = styled37(Box)`
2817
- :hover button {
2818
- opacity: 1;
2819
- }
2820
- `;
2821
- var DeleteBtn2 = styled37(ClickableElement)`
2822
- opacity: ${({ hasError }) => hasError ? 1 : 0};
2823
- `;
2824
- var SpacedBox = styled37(Box)`
2825
- > :not([hidden]) ~ :not([hidden]) {
2826
- margin-left: ${({ theme: theme2 }) => theme2.space[2]};
2827
- }
2828
- `;
2652
+ import { jsx as jsx67, jsxs as jsxs18 } from "react/jsx-runtime";
2829
2653
  var BasicItem = ({ file, handleDelete }) => {
2830
2654
  var _a;
2831
2655
  let { bytes, name } = file.meta;
2832
2656
  let hasError = (((_a = file.errors) == null ? void 0 : _a.length) || 0) > 0;
2833
2657
  let errorMessage = hasError && file.errors.reduce((acc, curr) => acc += curr.message + " ", "");
2834
- return /* @__PURE__ */ jsx56(Tooltip, { disabled: !hasError, as: "li", tooltip: errorMessage, children: /* @__PURE__ */ jsxs18(
2835
- BoxStyled2,
2658
+ return /* @__PURE__ */ jsx67(Tooltip, { disabled: !hasError, as: "li", tooltip: errorMessage, children: /* @__PURE__ */ jsxs18(
2659
+ Box,
2836
2660
  {
2837
2661
  display: "flex",
2838
2662
  alignItems: "center",
2839
2663
  justifyContent: "space-between",
2664
+ gap: "2",
2840
2665
  px: "1",
2841
2666
  borderRadius: "1",
2667
+ opacity: { ":hover button": 1 },
2842
2668
  color: hasError ? "error" : "base",
2843
2669
  children: [
2844
- /* @__PURE__ */ jsxs18(SpacedBox, { display: "flex", alignItems: "center", children: [
2845
- /* @__PURE__ */ jsx56(PaperClipIcon, { widths: 16, height: 16 }),
2846
- /* @__PURE__ */ jsx56(Text, { as: "span", children: name }),
2847
- !hasError && /* @__PURE__ */ jsx56(Text, { as: "span", fontSize: 1, lineHeight: 1, children: bytes })
2670
+ /* @__PURE__ */ jsxs18(Box, { display: "flex", alignContent: "center", gap: "2", children: [
2671
+ /* @__PURE__ */ jsx67(PaperClipIcon, { widths: 16, height: 16 }),
2672
+ /* @__PURE__ */ jsx67(Text, { as: "span", children: name }),
2673
+ !hasError && /* @__PURE__ */ jsx67(Text, { as: "span", fontSize: 1, lineHeight: 1, children: bytes })
2848
2674
  ] }),
2849
- /* @__PURE__ */ jsx56(SpacedBox, { display: "flex", alignItems: "center", children: /* @__PURE__ */ jsx56(DeleteBtn2, { hasError, onClick: () => handleDelete(file.key), children: /* @__PURE__ */ jsx56(TrashIcon2, { width: 16, height: 16 }) }) })
2675
+ /* @__PURE__ */ jsx67(Box, { display: "flex", alignItems: "center", children: /* @__PURE__ */ jsx67(ClickableElement, { opacity: hasError ? 1 : 0, onClick: () => handleDelete(file.key), children: /* @__PURE__ */ jsx67(TrashIcon2, { width: 16, height: 16 }) }) })
2850
2676
  ]
2851
2677
  }
2852
2678
  ) });
@@ -2879,9 +2705,9 @@ var getMeta = (file, errors) => {
2879
2705
  };
2880
2706
 
2881
2707
  // src/inputs/Upload/BaseUploader.tsx
2882
- import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs19 } from "react/jsx-runtime";
2708
+ import { Fragment as Fragment8, jsx as jsx68, jsxs as jsxs19 } from "react/jsx-runtime";
2883
2709
  var BaseUploader = ({
2884
- container: Container13,
2710
+ container: Container7,
2885
2711
  options = {},
2886
2712
  renderUploader,
2887
2713
  filesRender,
@@ -2903,8 +2729,8 @@ var BaseUploader = ({
2903
2729
  handleFileUpdate == null ? void 0 : handleFileUpdate(files);
2904
2730
  }, [files, handleFileUpdate]);
2905
2731
  return /* @__PURE__ */ jsxs19(Fragment8, { children: [
2906
- /* @__PURE__ */ jsxs19(Container13, __spreadProps(__spreadValues({ isDragActive }, getRootProps()), { children: [
2907
- /* @__PURE__ */ jsx57("input", __spreadValues({}, getInputProps())),
2732
+ /* @__PURE__ */ jsxs19(Container7, __spreadProps(__spreadValues({ isDragActive }, getRootProps()), { children: [
2733
+ /* @__PURE__ */ jsx68("input", __spreadValues({}, getInputProps())),
2908
2734
  renderUploader == null ? void 0 : renderUploader(isDragActive, open)
2909
2735
  ] })),
2910
2736
  filesRender == null ? void 0 : filesRender(files, handleDelete)
@@ -2912,47 +2738,30 @@ var BaseUploader = ({
2912
2738
  };
2913
2739
 
2914
2740
  // src/inputs/Upload/UploadZone.tsx
2915
- import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs20 } from "react/jsx-runtime";
2916
- var Container6 = styled38.div`
2917
- width: 100%;
2918
- display: flex;
2919
- flex-direction: column;
2920
- text-align: center;
2921
- justify-content: center;
2922
- align-items: center;
2923
- cursor: pointer;
2924
- border-radius: ${({ theme: theme2 }) => theme2.radii[2]};
2925
- border-color: ${({ theme: theme2 }) => theme2.colors.border};
2926
- border-width: 4px;
2927
- border-style: dashed;
2928
- padding: ${({ theme: theme2 }) => `${theme2.space[5]} ${theme2.space[2]}`};
2929
-
2930
- > :not([hidden]) ~ :not([hidden]) {
2931
- margin: ${({ theme: theme2 }) => theme2.space[1]} 0;
2932
- }
2933
-
2934
- ${({ isDragActive, theme: theme2 }) => isDragActive && `
2935
- background: ${theme2.colors.muted};
2936
- border-color: ${theme2.colors.accent};
2937
- `}
2938
- `;
2939
- var StyledList2 = styled38(List)`
2940
- margin-top: ${({ theme: theme2 }) => theme2.space[2]};
2941
- > :not([hidden]) ~ :not([hidden]) {
2942
- margin-top: ${({ theme: theme2 }) => theme2.space[2]};
2943
- margin-bottom: ${({ theme: theme2 }) => theme2.space[2]};
2944
- }
2945
- :empty {
2946
- margin: 0px;
2947
- }
2948
- `;
2949
- var TrayIcon = styled38(ArrowUpTrayIcon)`
2950
- color: ${({ theme: theme2 }) => theme2.colors.foreground};
2951
- ${({ isDragActive, theme: theme2 }) => isDragActive && `
2952
- color: ${theme2.colors.foreground};
2953
- ${theme2.animations.bounce}
2954
- `}
2955
- `;
2741
+ import { Fragment as Fragment9, jsx as jsx69, jsxs as jsxs20 } from "react/jsx-runtime";
2742
+ var Container4 = forwardRef16((_a, ref) => {
2743
+ var _b = _a, { isDragActive } = _b, rest = __objRest(_b, ["isDragActive"]);
2744
+ return /* @__PURE__ */ jsx69(
2745
+ x20.div,
2746
+ __spreadValues({
2747
+ w: "100%",
2748
+ display: "flex",
2749
+ flexDirection: "column",
2750
+ textAlign: "center",
2751
+ justifyContent: "center",
2752
+ alignItems: "center",
2753
+ cursor: "pointer",
2754
+ borderRadius: "3",
2755
+ borderColor: isDragActive ? "accent" : "border",
2756
+ bg: isDragActive ? "muted" : "background",
2757
+ borderWidth: "4px",
2758
+ borderStyle: "dashed",
2759
+ padding: "5 2",
2760
+ margin: { "> :not([hidden]) ~ :not([hidden])": "1 0" },
2761
+ ref
2762
+ }, rest)
2763
+ );
2764
+ });
2956
2765
  var UploadZone = (_a) => {
2957
2766
  var _b = _a, {
2958
2767
  showAsTile,
@@ -2964,13 +2773,13 @@ var UploadZone = (_a) => {
2964
2773
  "bottomText"
2965
2774
  ]);
2966
2775
  let Uploader = useCallback2((isDragActive) => /* @__PURE__ */ jsxs20(Fragment9, { children: [
2967
- /* @__PURE__ */ jsx58(TrayIcon, { width: 30, height: 30, isDragActive }),
2968
- isDragActive ? /* @__PURE__ */ jsx58(Text, { fontWeight: "700", color: "base", children: "And drop your file to upload" }) : /* @__PURE__ */ jsxs20(Text, { children: [
2776
+ /* @__PURE__ */ jsx69(Box, { color: "foreground", animation: isDragActive ? "bounce" : "none", children: /* @__PURE__ */ jsx69(ArrowUpTrayIcon, { width: 30, height: 30 }) }),
2777
+ isDragActive ? /* @__PURE__ */ jsx69(Text, { fontWeight: "700", color: "base", children: "And drop your file to upload" }) : /* @__PURE__ */ jsxs20(Text, { children: [
2969
2778
  "Drag and drop, or ",
2970
- /* @__PURE__ */ jsx58(Text, { as: "span", color: "primary", children: "click to find" }),
2779
+ /* @__PURE__ */ jsx69(Text, { as: "span", color: "primary", children: "click to find" }),
2971
2780
  " a file"
2972
2781
  ] }),
2973
- /* @__PURE__ */ jsx58(
2782
+ /* @__PURE__ */ jsx69(
2974
2783
  Text,
2975
2784
  {
2976
2785
  fontSize: "1",
@@ -2980,11 +2789,11 @@ var UploadZone = (_a) => {
2980
2789
  }
2981
2790
  )
2982
2791
  ] }), [bottomText]);
2983
- let defaultRender = useCallback2((files, handleDelete) => /* @__PURE__ */ jsx58(StyledList2, { children: files.map((file) => showAsTile ? /* @__PURE__ */ jsx58(TileItem, { file, handleDelete }, file.key) : /* @__PURE__ */ jsx58(BasicItem, { file, handleDelete }, file.key)) }), [showAsTile]);
2984
- return /* @__PURE__ */ jsx58(
2792
+ let defaultRender = useCallback2((files, handleDelete) => /* @__PURE__ */ jsx69(List, { mt: { "": 2, " > :not([hidden]) ~ :not([hidden])": 2 }, mb: { " > :not([hidden]) ~ :not([hidden])": 2 }, margin: { ":empty": 0 }, children: files.map((file) => showAsTile ? /* @__PURE__ */ jsx69(TileItem, { file, handleDelete }, file.key) : /* @__PURE__ */ jsx69(BasicItem, { file, handleDelete }, file.key)) }), [showAsTile]);
2793
+ return /* @__PURE__ */ jsx69(
2985
2794
  BaseUploader,
2986
2795
  __spreadProps(__spreadValues({}, rest), {
2987
- container: Container6,
2796
+ container: Container4,
2988
2797
  renderUploader: Uploader,
2989
2798
  filesRender: filesRender || defaultRender
2990
2799
  })
@@ -2992,20 +2801,14 @@ var UploadZone = (_a) => {
2992
2801
  };
2993
2802
 
2994
2803
  // src/inputs/Upload/UploadButton.tsx
2995
- import { useCallback as useCallback3 } from "react";
2804
+ import { forwardRef as forwardRef17, useCallback as useCallback3 } from "react";
2996
2805
  import { ArrowUpTrayIcon as ArrowUpTrayIcon2 } from "@heroicons/react/24/outline";
2997
- import styled39 from "styled-components";
2998
- import { jsx as jsx59, jsxs as jsxs21 } from "react/jsx-runtime";
2999
- var StyledList3 = styled39(List)`
3000
- margin-top: ${({ theme: theme2 }) => theme2.space[2]};
3001
- > :not([hidden]) ~ :not([hidden]) {
3002
- margin-top: ${({ theme: theme2 }) => theme2.space[2]};
3003
- margin-bottom: ${({ theme: theme2 }) => theme2.space[2]};
3004
- }
3005
- :empty {
3006
- margin: 0px;
3007
- }
3008
- `;
2806
+ import { x as x21 } from "@xstyled/styled-components";
2807
+ import { jsx as jsx70, jsxs as jsxs21 } from "react/jsx-runtime";
2808
+ var Container5 = forwardRef17((_a, ref) => {
2809
+ var _b = _a, { isDragActive } = _b, rest = __objRest(_b, ["isDragActive"]);
2810
+ return /* @__PURE__ */ jsx70(x21.div, __spreadValues({ ref }, rest));
2811
+ });
3009
2812
  var UploadButton = (_a) => {
3010
2813
  var _b = _a, {
3011
2814
  buttonText = "Upload file"
@@ -3013,17 +2816,14 @@ var UploadButton = (_a) => {
3013
2816
  "buttonText"
3014
2817
  ]);
3015
2818
  let Uploader = useCallback3((_, open) => /* @__PURE__ */ jsxs21(OutlineButton, { onClick: open, children: [
3016
- /* @__PURE__ */ jsx59(ArrowUpTrayIcon2, { width: 16, height: 16 }),
3017
- /* @__PURE__ */ jsx59("span", { children: buttonText })
2819
+ /* @__PURE__ */ jsx70(ArrowUpTrayIcon2, { width: 16, height: 16 }),
2820
+ /* @__PURE__ */ jsx70("span", { children: buttonText })
3018
2821
  ] }), [buttonText]);
3019
- let defaultRender = useCallback3((files, handleDelete) => /* @__PURE__ */ jsx59(StyledList3, { children: files.map((file) => /* @__PURE__ */ jsx59(BasicItem, { file, handleDelete }, file.key)) }), []);
3020
- return /* @__PURE__ */ jsx59(
2822
+ let defaultRender = useCallback3((files, handleDelete) => /* @__PURE__ */ jsx70(List, { mt: { "": 2, " > :not([hidden]) ~ :not([hidden])": 2 }, mb: { " > :not([hidden]) ~ :not([hidden])": 2 }, margin: { ":empty": 0 }, children: files.map((file) => /* @__PURE__ */ jsx70(BasicItem, { file, handleDelete }, file.key)) }), []);
2823
+ return /* @__PURE__ */ jsx70(
3021
2824
  BaseUploader,
3022
2825
  __spreadProps(__spreadValues({
3023
- container: (_a2) => {
3024
- var params = __objRest(_a2, []);
3025
- return /* @__PURE__ */ jsx59("div", __spreadValues({}, params));
3026
- }
2826
+ container: Container5
3027
2827
  }, rest), {
3028
2828
  options: {
3029
2829
  noClick: true,
@@ -3036,40 +2836,28 @@ var UploadButton = (_a) => {
3036
2836
  };
3037
2837
 
3038
2838
  // src/inputs/WithLabel/Label.tsx
3039
- import { jsx as jsx60, jsxs as jsxs22 } from "react/jsx-runtime";
3040
- var Label3 = ({ value, children, error }) => {
2839
+ import { jsx as jsx71, jsxs as jsxs22 } from "react/jsx-runtime";
2840
+ var Label2 = ({ value, children, error }) => {
3041
2841
  let isRequired = children.props.required;
3042
2842
  return /* @__PURE__ */ jsxs22(Box, { as: "label", display: "block", children: [
3043
2843
  /* @__PURE__ */ jsxs22(Box, { color: error ? "destructive" : "inherit", display: "flex", fontSize: "1", lineHeight: "1", mt: "4", mb: "1", children: [
3044
2844
  value,
3045
2845
  " ",
3046
- isRequired && /* @__PURE__ */ jsx60(Text, { children: "*" })
2846
+ isRequired && /* @__PURE__ */ jsx71(Text, { children: "*" })
3047
2847
  ] }),
3048
2848
  children
3049
2849
  ] });
3050
2850
  };
3051
2851
 
3052
2852
  // src/data/Pagination/RowControls.tsx
3053
- import { jsx as jsx61, jsxs as jsxs23 } from "react/jsx-runtime";
3054
- var StyledText = styled40(Text)`
3055
- white-space: nowrap;
3056
- `;
3057
- var RowControls = ({ onChange }) => /* @__PURE__ */ jsxs23(Box, { display: "inline-flex", alignItems: "center", gridColumnGap: "2", children: [
3058
- /* @__PURE__ */ jsx61(StyledText, { children: "Rows per page" }),
3059
- /* @__PURE__ */ jsx61(SimpleSelect, { onChange: (i) => onChange(parseInt(i)), initialSelectedItem: "10", values: ["10", "20", "30", "40", "50"] })
2853
+ import { jsx as jsx72, jsxs as jsxs23 } from "react/jsx-runtime";
2854
+ var RowControls = ({ onChange }) => /* @__PURE__ */ jsxs23(Box, { display: "inline-flex", alignItems: "center", gap: "2", children: [
2855
+ /* @__PURE__ */ jsx72(Text, { whiteSpace: "nowrap", children: "Rows per page" }),
2856
+ /* @__PURE__ */ jsx72(SimpleSelect, { onChange: (i) => onChange(parseInt(i)), initialSelectedItem: "10", values: ["10", "20", "30", "40", "50"] })
3060
2857
  ] });
3061
2858
 
3062
2859
  // src/data/Pagination/Pagination.tsx
3063
- import { jsx as jsx62, jsxs as jsxs24 } from "react/jsx-runtime";
3064
- var Container7 = styled41.div`
3065
- width: 100%;
3066
- display: flex;
3067
- justify-content: space-between;
3068
- align-items: center;
3069
- min-height: 38px;
3070
- line-height: 1rem;
3071
- padding: ${({ theme: theme2 }) => theme2.space[3]} ${({ theme: theme2 }) => theme2.space[3]};
3072
- `;
2860
+ import { jsx as jsx73, jsxs as jsxs24 } from "react/jsx-runtime";
3073
2861
  var Pagination = ({
3074
2862
  limit,
3075
2863
  skip,
@@ -3079,155 +2867,199 @@ var Pagination = ({
3079
2867
  setSize
3080
2868
  }) => {
3081
2869
  let to = skip + limit > itemCount ? itemCount : skip + limit;
3082
- return /* @__PURE__ */ jsxs24(Container7, { children: [
3083
- /* @__PURE__ */ jsxs24(Text, { color: "mutedForeground", children: [
3084
- skip + 1,
3085
- " to ",
3086
- to,
3087
- " of ",
3088
- itemCount,
3089
- " results"
3090
- ] }),
3091
- /* @__PURE__ */ jsxs24(Box, { display: "flex", justifyContent: "space-between", gridColumnGap: "8", children: [
3092
- !hidePageSizeControls && /* @__PURE__ */ jsx62(RowControls, { onChange: setSize }),
3093
- /* @__PURE__ */ jsx62(PaginationControls, { itemCount, limit, skip, setSkip })
3094
- ] })
3095
- ] });
2870
+ return /* @__PURE__ */ jsxs24(
2871
+ x22.div,
2872
+ {
2873
+ w: "100%",
2874
+ display: "flex",
2875
+ justifyContent: "space-between",
2876
+ alignItems: "center",
2877
+ minHeight: "38px",
2878
+ lineHeight: "1rem",
2879
+ padding: "3",
2880
+ children: [
2881
+ /* @__PURE__ */ jsxs24(Text, { color: "mutedForeground", children: [
2882
+ skip + 1,
2883
+ " to ",
2884
+ to,
2885
+ " of ",
2886
+ itemCount,
2887
+ " results"
2888
+ ] }),
2889
+ /* @__PURE__ */ jsxs24(Box, { display: "flex", justifyContent: "space-between", gap: "8", children: [
2890
+ !hidePageSizeControls && /* @__PURE__ */ jsx73(RowControls, { onChange: setSize }),
2891
+ /* @__PURE__ */ jsx73(PaginationControls, { itemCount, limit, skip, setSkip })
2892
+ ] })
2893
+ ]
2894
+ }
2895
+ );
3096
2896
  };
3097
2897
 
3098
2898
  // src/data/Panel/Panel.tsx
3099
- import styled42 from "styled-components";
3100
- var Panel = styled42(Box)`
3101
- border-radius:${({ theme: theme2 }) => theme2.radii[4]};
3102
- border: ${({ theme: theme2 }) => theme2.borders.border[1]};
3103
- background: ${({ theme: theme2 }) => theme2.colors.offsetBackground};
3104
- `;
2899
+ import { forwardRef as forwardRef18 } from "react";
2900
+ import { jsx as jsx74 } from "react/jsx-runtime";
2901
+ var Panel = forwardRef18((props, ref) => /* @__PURE__ */ jsx74(
2902
+ Box,
2903
+ __spreadValues({
2904
+ ref,
2905
+ borderRadius: 4,
2906
+ border: "border.1",
2907
+ bg: "offsetBackground"
2908
+ }, props)
2909
+ ));
3105
2910
 
3106
2911
  // src/data/Table/Table.tsx
3107
- import { forwardRef as forwardRef10 } from "react";
3108
- import styled43 from "styled-components";
3109
- import { jsx as jsx63, jsxs as jsxs25 } from "react/jsx-runtime";
3110
- var Container8 = styled43.div`
3111
- background: ${({ theme: theme2 }) => theme2.colors.background};
3112
- border: 1px solid ${({ theme: theme2 }) => theme2.colors.border};
3113
- border-radius: ${({ theme: theme2 }) => theme2.radii[3]};
3114
- contain: paint;
3115
- `;
3116
- var StyledTable = styled43.table`
3117
- width: 100%;
3118
- position: relative;
3119
- border-collapse: collapse;
3120
- > :not([hidden]) ~ :not([hidden]) & :not(:last-child) {
3121
- border-top-width: 1px;
3122
- border-bottom-width: 1px;
3123
- border-color: ${({ theme: theme2 }) => theme2.colors.border}
3124
- }
3125
- `;
3126
- var Table = forwardRef10((_a, ref) => {
2912
+ import { forwardRef as forwardRef19 } from "react";
2913
+ import { x as x23 } from "@xstyled/styled-components";
2914
+ import { jsx as jsx75, jsxs as jsxs25 } from "react/jsx-runtime";
2915
+ var Table = forwardRef19((_a, ref) => {
3127
2916
  var _b = _a, { children, containerClasses, footer } = _b, rest = __objRest(_b, ["children", "containerClasses", "footer"]);
3128
2917
  return /* @__PURE__ */ jsxs25(Box, { children: [
3129
- /* @__PURE__ */ jsx63(Container8, { children: /* @__PURE__ */ jsx63(StyledTable, __spreadProps(__spreadValues({ ref }, rest), { children })) }),
2918
+ /* @__PURE__ */ jsx75(
2919
+ x23.div,
2920
+ {
2921
+ bg: "background",
2922
+ border: "1px solid",
2923
+ borderColor: "border",
2924
+ borderRadius: 3,
2925
+ style: {
2926
+ contain: "paint"
2927
+ },
2928
+ children: /* @__PURE__ */ jsx75(
2929
+ x23.table,
2930
+ __spreadProps(__spreadValues({
2931
+ ref,
2932
+ w: "100%",
2933
+ position: "relative",
2934
+ borderCollapse: "collapse",
2935
+ css: {
2936
+ "> :not([hidden]) ~ :not([hidden]) & :not(:last-child)": {
2937
+ borderTopWidth: "1px",
2938
+ borderBottomWidth: "1px",
2939
+ borderColor: "border"
2940
+ }
2941
+ }
2942
+ }, rest), {
2943
+ children
2944
+ })
2945
+ )
2946
+ }
2947
+ ),
3130
2948
  footer
3131
2949
  ] });
3132
2950
  });
3133
2951
 
3134
2952
  // src/data/Table/TableBody.tsx
3135
- import styled44 from "styled-components";
3136
- var TableBody = styled44.tbody`
3137
- background: ${({ theme: theme2 }) => theme2.colors.background};
3138
- border-top-width: 1px;
3139
- > :not([hidden]) ~ :not([hidden]) {
3140
- border-top-width: 1px;
3141
- border-color: ${({ theme: theme2 }) => theme2.colors.border}
3142
- }
3143
- `;
2953
+ import { x as x24 } from "@xstyled/styled-components";
2954
+ import { forwardRef as forwardRef20 } from "react";
2955
+ import { jsx as jsx76 } from "react/jsx-runtime";
2956
+ var TableBody = forwardRef20((props, ref) => /* @__PURE__ */ jsx76(
2957
+ x24.tbody,
2958
+ __spreadValues({
2959
+ ref,
2960
+ bg: "background",
2961
+ borderColor: { "> :not([hidden]) ~ :not([hidden])": "border" },
2962
+ borderTopWidth: { "> :not([hidden]) ~ :not([hidden])": "1px" }
2963
+ }, props)
2964
+ ));
3144
2965
 
3145
2966
  // src/data/Table/TableCell.tsx
3146
- import styled45 from "styled-components";
3147
- var TableCell = styled45.td`
3148
- padding: ${({ theme: theme2 }) => `0.625rem ${theme2.space[3]}`}
3149
- `;
2967
+ import { x as x25 } from "@xstyled/styled-components";
2968
+ import { forwardRef as forwardRef21 } from "react";
2969
+ import { jsx as jsx77 } from "react/jsx-runtime";
2970
+ var TableCell = forwardRef21((props, ref) => /* @__PURE__ */ jsx77(
2971
+ x25.td,
2972
+ __spreadValues({
2973
+ ref,
2974
+ padding: "0.625rem 3"
2975
+ }, props)
2976
+ ));
3150
2977
 
3151
2978
  // src/data/Table/TableRow.tsx
3152
- import styled46 from "styled-components";
3153
- var TableRow = styled46.tr`
3154
- ${({ onClick, theme: theme2 }) => typeof onClick === "function" && `
3155
- cursor: pointer;
3156
- :hover {
3157
- background: ${theme2.colors.accent};
3158
- }
3159
- `}
3160
- ${({ active, theme: theme2 }) => active && `
3161
- cursor: pointer;
3162
- background: ${theme2.colors.accent};
3163
- `}
3164
- `;
2979
+ import { x as x26 } from "@xstyled/styled-components";
2980
+ import { forwardRef as forwardRef22 } from "react";
2981
+ import { jsx as jsx78 } from "react/jsx-runtime";
2982
+ var TableRow = forwardRef22((_a, ref) => {
2983
+ var _b = _a, { active, onClick } = _b, props = __objRest(_b, ["active", "onClick"]);
2984
+ return /* @__PURE__ */ jsx78(
2985
+ x26.tr,
2986
+ __spreadValues({
2987
+ ref,
2988
+ cursor: typeof onClick === "function" || active ? "pointer" : void 0,
2989
+ bg: { "": active ? "accent" : void 0, "&:hover": typeof onClick === "function" ? "accent" : void 0 },
2990
+ onClick
2991
+ }, props)
2992
+ );
2993
+ });
3165
2994
 
3166
2995
  // src/data/Table/TableHead.tsx
3167
- import { forwardRef as forwardRef11 } from "react";
3168
- import styled47 from "styled-components";
3169
- import { jsx as jsx64 } from "react/jsx-runtime";
3170
- var Thead = styled47.thead`
3171
- text-align: left;
3172
- background: ${({ theme: theme2 }) => theme2.colors.offsetBackground};
3173
- border-bottom: 1px solid ${({ theme: theme2 }) => theme2.colors.border};
3174
- ${({ sticky, theme: theme2 }) => sticky && `
3175
- position: sticky;
3176
- top: 0;
3177
- box-shadow: ${theme2.shadows.base[1]};
3178
- `}
3179
- `;
3180
- var TableHeadItem = styled47.th`
3181
- padding: ${({ theme: theme2 }) => theme2.space[3]};
3182
- font-weight: 600;
3183
- letter-spacing: 0.025em;
3184
- color: ${({ theme: theme2 }) => theme2.colors.primary};
3185
- `;
3186
- var TableHead = forwardRef11((_a, ref) => {
2996
+ import { forwardRef as forwardRef23 } from "react";
2997
+ import { x as x27 } from "@xstyled/styled-components";
2998
+ import { jsx as jsx79 } from "react/jsx-runtime";
2999
+ var Thead = (_a) => {
3000
+ var _b = _a, { sticky } = _b, props = __objRest(_b, ["sticky"]);
3001
+ return /* @__PURE__ */ jsx79(
3002
+ x27.thead,
3003
+ __spreadValues({
3004
+ textAlign: "left",
3005
+ bg: "offsetBackground",
3006
+ borderBottom: "1px solid",
3007
+ borderColor: "border",
3008
+ position: sticky ? "sticky" : void 0,
3009
+ top: sticky ? 0 : void 0,
3010
+ boxShadow: sticky ? "base.1" : void 0
3011
+ }, props)
3012
+ );
3013
+ };
3014
+ var TableHeadItem = (props) => /* @__PURE__ */ jsx79(
3015
+ x27.th,
3016
+ __spreadValues({
3017
+ padding: 3,
3018
+ fontWeight: 600,
3019
+ letterSpacing: "0.025em",
3020
+ color: "primary"
3021
+ }, props)
3022
+ );
3023
+ var TableHead = forwardRef23((_a, ref) => {
3187
3024
  var _b = _a, { children, headers, sticky } = _b, rest = __objRest(_b, ["children", "headers", "sticky"]);
3188
3025
  if (!headers) {
3189
- return /* @__PURE__ */ jsx64(Thead, __spreadProps(__spreadValues({ sticky, ref }, rest), { children }));
3026
+ return /* @__PURE__ */ jsx79(Thead, __spreadProps(__spreadValues({ sticky, ref }, rest), { children }));
3190
3027
  }
3191
- return /* @__PURE__ */ jsx64(Thead, { sticky, ref, children: /* @__PURE__ */ jsx64("tr", { children: headers.map((h) => /* @__PURE__ */ jsx64(TableHeadItem, { children: h }, h)) }) });
3028
+ return /* @__PURE__ */ jsx79(Thead, { sticky, ref, children: /* @__PURE__ */ jsx79("tr", { children: headers.map((h) => /* @__PURE__ */ jsx79(TableHeadItem, { children: h }, h)) }) });
3192
3029
  });
3193
3030
 
3194
3031
  // src/feedback/Alert/Alert.tsx
3195
- import styled49 from "styled-components";
3196
3032
  import { ExclamationCircleIcon } from "@heroicons/react/24/outline";
3197
3033
 
3198
3034
  // src/feedback/Alert/CloseBtn.tsx
3199
- import styled48 from "styled-components";
3200
3035
  import { XMarkIcon } from "@heroicons/react/24/solid";
3201
- import { jsx as jsx65 } from "react/jsx-runtime";
3202
- var StyledButton7 = styled48(ClickableElement)`
3203
- float:right;
3204
- padding: ${({ theme: theme2 }) => `${theme2.sizes[1]} ${theme2.sizes[2]}`};
3205
- `;
3206
- var CloseBtn = ({ onClick }) => /* @__PURE__ */ jsx65(StyledButton7, { onClick, children: /* @__PURE__ */ jsx65(XMarkIcon, { width: 16, height: 16 }) });
3036
+ import { jsx as jsx80 } from "react/jsx-runtime";
3037
+ var CloseBtn = ({ onClick }) => /* @__PURE__ */ jsx80(
3038
+ ClickableElement,
3039
+ {
3040
+ float: "right",
3041
+ padding: "1 2",
3042
+ onClick,
3043
+ children: /* @__PURE__ */ jsx80(XMarkIcon, { width: 16, height: 16 })
3044
+ }
3045
+ );
3207
3046
 
3208
3047
  // src/feedback/Alert/Alert.tsx
3209
- import { Fragment as Fragment10, jsx as jsx66, jsxs as jsxs26 } from "react/jsx-runtime";
3210
- var Container9 = styled49(Box)`
3211
- border: 1px solid;
3212
- border-color: ${({ theme: theme2, destructive }) => destructive ? theme2.colors.destructive : theme2.colors.border};
3213
- background: ${({ theme: theme2, destructive }) => destructive ? theme2.colors.destructive : theme2.colors.background};
3214
- h1, svg, p {
3215
- color: ${({ theme: theme2, destructive }) => destructive ? theme2.colors.destructiveForeground : theme2.colors.foreground};
3216
- }
3217
- `;
3218
- var Icon3 = styled49(Box)`
3219
- float: left;
3220
- :empty {
3221
- margin: 0;
3222
- }
3223
- `;
3224
- var Content = styled49(Text)`
3225
- min-width: 100%;
3226
- margin-top: ${({ theme: theme2 }) => theme2.space[2]};
3227
- :empty {
3228
- margin-top: 0;
3229
- }
3230
- `;
3048
+ import { Fragment as Fragment10, jsx as jsx81, jsxs as jsxs26 } from "react/jsx-runtime";
3049
+ var Icon2 = (props) => /* @__PURE__ */ jsx81(
3050
+ Box,
3051
+ __spreadValues({
3052
+ float: "left",
3053
+ margin: { ":empty": 0 }
3054
+ }, props)
3055
+ );
3056
+ var Content = (props) => /* @__PURE__ */ jsx81(
3057
+ Text,
3058
+ __spreadValues({
3059
+ minWidth: "100%",
3060
+ marginTop: { "": 2, ":empty": 0 }
3061
+ }, props)
3062
+ );
3231
3063
  var Alert = (_a) => {
3232
3064
  var _b = _a, {
3233
3065
  destructive = false,
@@ -3242,119 +3074,148 @@ var Alert = (_a) => {
3242
3074
  "children",
3243
3075
  "withClose"
3244
3076
  ]);
3245
- let Icons = icon || (destructive ? /* @__PURE__ */ jsx66(ExclamationCircleIcon, { width: 20, height: 20 }) : /* @__PURE__ */ jsx66(Fragment10, {}));
3246
- return /* @__PURE__ */ jsxs26(Container9, __spreadProps(__spreadValues({ px: 3, py: 1, display: "flex", flexGrow: 1, alignItems: "center", borderRadius: "4", overflow: "hidden", position: "relative", width: 29, fontSize: 1, lineHeight: 1, flexWrap: "wrap", destructive }, rest), { boxShadow: "highlight", children: [
3247
- /* @__PURE__ */ jsxs26(Box, { minWidth: "100%", children: [
3248
- /* @__PURE__ */ jsx66(Icon3, { mr: 3, mt: "1px", lineHeight: 5, alignSelf: "center", children: Icons }),
3249
- /* @__PURE__ */ jsx66(Title, { display: "inline", fontWeight: "600", fontSize: 1, lineHeight: 2, letterSpacing: "0.025em", children: title }),
3250
- withClose && /* @__PURE__ */ jsx66(CloseBtn, { onClick: withClose })
3251
- ] }),
3252
- /* @__PURE__ */ jsx66(Content, { children })
3253
- ] }));
3077
+ let Icons = icon || (destructive ? /* @__PURE__ */ jsx81(ExclamationCircleIcon, { width: 20, height: 20 }) : /* @__PURE__ */ jsx81(Fragment10, {}));
3078
+ return /* @__PURE__ */ jsxs26(
3079
+ Box,
3080
+ __spreadProps(__spreadValues({
3081
+ px: 3,
3082
+ py: 1,
3083
+ display: "flex",
3084
+ flexGrow: 1,
3085
+ alignItems: "center",
3086
+ borderRadius: "4",
3087
+ overflow: "hidden",
3088
+ position: "relative",
3089
+ w: 29,
3090
+ fontSize: 1,
3091
+ lineHeight: 1,
3092
+ flexWrap: "wrap",
3093
+ color: destructive ? "destructiveForeground" : "foreground",
3094
+ bg: destructive ? "destructive" : "background",
3095
+ border: "1px solid",
3096
+ borderColor: destructive ? "destructive" : "border",
3097
+ boxShadow: "highlight",
3098
+ "data-test": true
3099
+ }, rest), {
3100
+ children: [
3101
+ /* @__PURE__ */ jsxs26(Box, { minWidth: "100%", children: [
3102
+ /* @__PURE__ */ jsx81(Icon2, { mr: 3, mt: "1px", lineHeight: 5, alignSelf: "center", children: Icons }),
3103
+ /* @__PURE__ */ jsx81(Title, { display: "inline", fontWeight: "600", fontSize: 1, lineHeight: 2, letterSpacing: "0.025em", color: destructive ? "destructiveForeground" : "foreground", children: title }),
3104
+ withClose && /* @__PURE__ */ jsx81(CloseBtn, { onClick: withClose })
3105
+ ] }),
3106
+ /* @__PURE__ */ jsx81(Content, { children })
3107
+ ]
3108
+ })
3109
+ );
3254
3110
  };
3255
3111
 
3256
3112
  // src/feedback/Badge/Badge.tsx
3257
- import styled50 from "styled-components";
3258
- import { jsx as jsx67, jsxs as jsxs27 } from "react/jsx-runtime";
3259
- var getPosition = (position4) => {
3260
- switch (position4) {
3113
+ import { x as x28 } from "@xstyled/styled-components";
3114
+ import { jsx as jsx82, jsxs as jsxs27 } from "react/jsx-runtime";
3115
+ var getPosition = (position) => {
3116
+ switch (position) {
3261
3117
  case "N":
3262
- return `
3263
- top: 0;
3264
- right: 50%;
3265
- transform: translateY(-50%) translateX(50%);
3266
- `;
3118
+ return {
3119
+ top: 0,
3120
+ right: "50%",
3121
+ transform: "translateY(-50%) translateX(50%)"
3122
+ };
3267
3123
  case "NE":
3268
- return `
3269
- top: 0;
3270
- right: 0;
3271
- transform: translateY(-50%) translateX(50%);
3272
- `;
3124
+ return {
3125
+ top: 0,
3126
+ right: 0,
3127
+ transform: "translateY(-50%) translateX(50%)"
3128
+ };
3273
3129
  case "E":
3274
- return `
3275
- top: 50%;
3276
- right: 0;
3277
- transform: translateY(-50%) translateX(50%);
3278
- `;
3130
+ return {
3131
+ top: "50%",
3132
+ right: 0,
3133
+ transform: "translateY(-50%) translateX(50%)"
3134
+ };
3279
3135
  case "NW":
3280
- return `
3281
- top: 0;
3282
- left: 0;
3283
- transform: translateY(-50%) translateX(-50%);
3284
- `;
3136
+ return {
3137
+ top: 0,
3138
+ left: 0,
3139
+ transform: "translateY(-50%) translateX(-50%)"
3140
+ };
3285
3141
  case "SE":
3286
- return `
3287
- right: 0;
3288
- bottom: 0;
3289
- transform: translateY(50%) translateX(50%);
3290
- `;
3142
+ return {
3143
+ right: 0,
3144
+ bottom: 0,
3145
+ transform: "translateY(50%) translateX(50%)"
3146
+ };
3291
3147
  case "S":
3292
- return `
3293
- left: 50%;
3294
- top: 50%;
3295
- transform: translateY(50%) translateX(-50%);
3296
- `;
3148
+ return {
3149
+ left: "50%",
3150
+ top: "50%",
3151
+ transform: "translateY(50%) translateX(-50%)"
3152
+ };
3297
3153
  case "SW":
3298
- return `
3299
- left: 0;
3300
- bottom: 0;
3301
- transform: translateY(50%) translateX(-50%);
3302
- `;
3154
+ return {
3155
+ left: 0,
3156
+ bottom: 0,
3157
+ transform: "translateY(50%) translateX(-50%)"
3158
+ };
3303
3159
  case "W":
3304
- return `
3305
- right: 0;
3306
- top: 0;
3307
- transform: translateY(50%) translateX(-50%);
3308
- `;
3160
+ return {
3161
+ right: 0,
3162
+ top: 0,
3163
+ transform: "translateY(50%) translateX(-50%)"
3164
+ };
3309
3165
  }
3310
3166
  };
3311
- var BadgeItem = styled50.div`
3312
- position: absolute;
3313
- border-radius: ${({ theme: theme2 }) => theme2.radii[8]};
3314
- font-size: ${({ theme: theme2 }) => theme2.fontSizes[0]};
3315
- line-height: ${({ theme: theme2 }) => theme2.lineHeights[0]};
3316
- text-align: center;
3317
- color: ${({ theme: theme2, destructive }) => destructive ? theme2.colors.destructiveForeground : theme2.colors.primaryForeground};
3318
- background: ${({ theme: theme2, destructive }) => destructive ? theme2.colors.destructive : theme2.colors.primary};
3319
- min-width: fit-content;
3320
- width: ${({ theme: theme2 }) => theme2.sizes[5]};
3321
- padding: calc(${({ theme: theme2 }) => theme2.space[1]} / 2) ${({ theme: theme2 }) => theme2.space[2]};
3322
- z-index:9999;
3323
- :empty {
3324
- width: ${({ theme: theme2 }) => theme2.sizes[1]};
3325
- height: ${({ theme: theme2 }) => theme2.sizes[2]};
3326
- }
3327
- ${({ position: position4 }) => getPosition(position4)}
3328
- `;
3329
- var Badge = ({ position: position4 = "NE", children, tag, destructive = false }) => /* @__PURE__ */ jsxs27(Box, { display: "inline-block", position: "relative", width: "fill-available", children: [
3330
- /* @__PURE__ */ jsx67(BadgeItem, { position: position4, destructive, children: tag }),
3167
+ var BadgeItem = ({ position, destructive, children }) => {
3168
+ const positionStyles = getPosition(position);
3169
+ return /* @__PURE__ */ jsx82(
3170
+ x28.div,
3171
+ __spreadProps(__spreadValues({
3172
+ position: "absolute",
3173
+ borderRadius: 8,
3174
+ fontSize: 0,
3175
+ lineHeight: 0,
3176
+ textAlign: "center",
3177
+ color: destructive ? "destructiveForeground" : "primaryForeground",
3178
+ bg: destructive ? "destructive" : "primary",
3179
+ minWidth: "fit-content",
3180
+ w: { "": 5, ":empty": 1 },
3181
+ padding: "calc(0.25rem / 2) 2",
3182
+ h: { "": "initial", ":empty": 2 },
3183
+ zIndex: 9999
3184
+ }, positionStyles), {
3185
+ children
3186
+ })
3187
+ );
3188
+ };
3189
+ var Badge = ({ position = "NE", children, tag, destructive = false }) => /* @__PURE__ */ jsxs27(Box, { display: "inline-block", position: "relative", w: "100%", children: [
3190
+ /* @__PURE__ */ jsx82(BadgeItem, { position, destructive, children: tag }),
3331
3191
  children
3332
3192
  ] });
3333
3193
 
3334
3194
  // src/feedback/Chip/Chip.tsx
3335
- import styled51 from "styled-components";
3336
- import { jsx as jsx68 } from "react/jsx-runtime";
3337
- var Container10 = styled51.div`
3338
- border-radius: ${({ theme: theme2 }) => theme2.radii[3]};
3339
- display: inline-flex;
3340
- justify-content: center;
3341
- align-items: center;
3342
- width: fit-content;
3343
- padding: calc(${({ theme: theme2 }) => theme2.space[1]} / 2) ${({ theme: theme2 }) => theme2.space[2]};
3344
- font-size: ${({ theme: theme2 }) => theme2.fontSizes[0]};
3345
- line-height: ${({ theme: theme2 }) => theme2.lineHeights[0]};
3346
- font-weight: 700;
3347
- color: ${({ theme: theme2, destructive }) => destructive ? theme2.colors.destructiveForeground : theme2.colors.primaryForeground};
3348
- background: ${({ theme: theme2, destructive }) => destructive ? theme2.colors.destructive : theme2.colors.primary};
3349
-
3350
- > :not([hidden]) ~ :not([hidden]) {
3351
- margin-left: 0.5rem;
3195
+ import { x as x29 } from "@xstyled/styled-components";
3196
+ import { jsx as jsx83 } from "react/jsx-runtime";
3197
+ var Container6 = ({ destructive, children }) => /* @__PURE__ */ jsx83(
3198
+ x29.div,
3199
+ {
3200
+ borderRadius: 3,
3201
+ display: "inline-flex",
3202
+ justifyContent: "center",
3203
+ alignItems: "center",
3204
+ w: "fit-content",
3205
+ padding: "calc(0.25rem / 2) 2",
3206
+ fontSize: 0,
3207
+ lineHeight: 0,
3208
+ fontWeight: 700,
3209
+ color: destructive ? "destructiveForeground" : "primaryForeground",
3210
+ bg: destructive ? "destructive" : "primary",
3211
+ marginLeft: { "> :not([hidden]) ~ :not([hidden])": "0.5rem" },
3212
+ children
3352
3213
  }
3353
- `;
3214
+ );
3354
3215
  var Chip = ({
3355
3216
  destructive,
3356
3217
  children
3357
- }) => /* @__PURE__ */ jsx68(Container10, { destructive, children: /* @__PURE__ */ jsx68(Text, { children }) });
3218
+ }) => /* @__PURE__ */ jsx83(Container6, { destructive, children: /* @__PURE__ */ jsx83(Text, { children }) });
3358
3219
 
3359
3220
  // src/feedback/Code/SyntaxHighlighter.tsx
3360
3221
  import { default as SH } from "react-syntax-highlighter";
@@ -3594,209 +3455,264 @@ var githubDark = {
3594
3455
  };
3595
3456
 
3596
3457
  // src/feedback/Code/Wrapper.tsx
3597
- import styled52 from "styled-components";
3598
- import { Fragment as Fragment11, jsx as jsx69 } from "react/jsx-runtime";
3599
- var StyledDiv = styled52.div`
3600
- overflow: hidden;
3601
- font-size: ${({ theme: theme2 }) => theme2.fontSizes[1]};
3602
- line-height: ${({ theme: theme2 }) => theme2.lineHeights[1]};
3603
- font-family: ${({ theme: theme2 }) => theme2.fonts.mono};
3604
- border: ${({ theme: theme2 }) => theme2.borders.border[1]};
3605
- box-shadow: ${({ theme: theme2 }) => theme2.shadows.base[1]};
3606
- border-radius: ${({ theme: theme2 }) => theme2.radii[3]};
3607
- background: ${({ theme: theme2 }) => theme2.colors.offsetBackground};
3608
- `;
3458
+ import { x as x30 } from "@xstyled/styled-components";
3459
+ import { Fragment as Fragment11, jsx as jsx84 } from "react/jsx-runtime";
3609
3460
  var Wrapper = ({
3610
3461
  children,
3611
- skip
3612
- }) => skip ? /* @__PURE__ */ jsx69(Fragment11, { children }) : /* @__PURE__ */ jsx69(StyledDiv, { children });
3462
+ skip,
3463
+ style
3464
+ }) => skip ? /* @__PURE__ */ jsx84(Fragment11, { children }) : /* @__PURE__ */ jsx84(
3465
+ x30.div,
3466
+ {
3467
+ overflow: "hidden",
3468
+ fontSize: 1,
3469
+ lineHeight: 1,
3470
+ fontFamily: "mono",
3471
+ border: "border.1",
3472
+ boxShadow: "base.1",
3473
+ borderRadius: 3,
3474
+ background: "offsetBackground",
3475
+ style,
3476
+ children
3477
+ }
3478
+ );
3613
3479
 
3614
3480
  // src/feedback/Code/SyntaxHighlighter.tsx
3615
- import { jsx as jsx70 } from "react/jsx-runtime";
3481
+ import { jsx as jsx85 } from "react/jsx-runtime";
3616
3482
  var SyntaxHighlighter = ({
3617
3483
  language,
3618
3484
  code,
3619
3485
  withWrapper = true
3620
3486
  }) => {
3621
3487
  let { theme: theme2 } = useMuffledSettings();
3622
- return /* @__PURE__ */ jsx70(Wrapper, { skip: !withWrapper, children: /* @__PURE__ */ jsx70(SH, { language, style: theme2 === "Light" ? githubLight : githubDark, children: code }) });
3488
+ return /* @__PURE__ */ jsx85(Wrapper, { skip: !withWrapper, children: /* @__PURE__ */ jsx85(SH, { language, style: theme2 === "Light" ? githubLight : githubDark, children: code }) });
3623
3489
  };
3624
3490
 
3625
3491
  // src/feedback/Loader/CircleLoader.tsx
3626
- import styled53 from "styled-components";
3627
- import { jsx as jsx71, jsxs as jsxs28 } from "react/jsx-runtime";
3628
- var Svg = styled53.svg`
3629
- ${({ theme: theme2 }) => theme2.animations.spin};
3630
- stroke: currentColor;
3631
- `;
3632
- var OuterCircle = styled53.circle`
3633
- color: ${({ theme: theme2 }) => theme2.colors.muted};
3634
- `;
3635
- var InnerCircle = styled53.circle`
3636
- color: ${({ theme: theme2, destructive }) => destructive ? theme2.colors.destructive : theme2.colors.primary};
3637
- `;
3492
+ import { x as x31 } from "@xstyled/styled-components";
3493
+ import { jsx as jsx86, jsxs as jsxs28 } from "react/jsx-runtime";
3638
3494
  var CircleLoader = (_a) => {
3639
3495
  var _b = _a, { height = 50, width = 50, destructive = false } = _b, rest = __objRest(_b, ["height", "width", "destructive"]);
3640
- return /* @__PURE__ */ jsxs28(Svg, __spreadProps(__spreadValues({ viewBox: "25 25 50 50", height, width }, rest), { children: [
3641
- /* @__PURE__ */ jsx71(OuterCircle, { cx: "50", cy: "50", r: "20", fill: "none", strokeWidth: "4" }),
3642
- /* @__PURE__ */ jsx71(InnerCircle, { destructive, cx: "50", cy: "50", r: "20", fill: "none", strokeWidth: "4", strokeDashoffset: "-50", strokeDasharray: "60", strokeLinecap: "round" })
3643
- ] }));
3496
+ return /* @__PURE__ */ jsxs28(
3497
+ x31.svg,
3498
+ __spreadProps(__spreadValues({
3499
+ viewBox: "25 25 50 50",
3500
+ height,
3501
+ width,
3502
+ animation: "spin",
3503
+ stroke: "currentColor"
3504
+ }, rest), {
3505
+ children: [
3506
+ /* @__PURE__ */ jsx86(
3507
+ x31.circle,
3508
+ {
3509
+ cx: "50",
3510
+ cy: "50",
3511
+ r: "20",
3512
+ fill: "none",
3513
+ strokeWidth: "4",
3514
+ color: destructive ? "destructiveForeground" : "primaryForeground"
3515
+ }
3516
+ ),
3517
+ /* @__PURE__ */ jsx86(
3518
+ x31.circle,
3519
+ {
3520
+ cx: "50",
3521
+ cy: "50",
3522
+ r: "20",
3523
+ fill: "none",
3524
+ strokeWidth: "4",
3525
+ strokeDashoffset: "-50",
3526
+ strokeDasharray: "60",
3527
+ strokeLinecap: "round",
3528
+ color: destructive ? "destructive" : "primary"
3529
+ }
3530
+ )
3531
+ ]
3532
+ })
3533
+ );
3644
3534
  };
3645
3535
 
3646
3536
  // src/feedback/Loader/LinearLoader.tsx
3647
- import styled54 from "styled-components";
3648
- import { jsx as jsx72, jsxs as jsxs29 } from "react/jsx-runtime";
3649
- var OuterLine = styled54.div`
3650
- border-radius: ${({ theme: theme2 }) => theme2.radii[2]};
3651
- width: 100%;
3652
- height: 100%;
3653
- position: absolute;
3654
- top: 0px;
3655
- right: 0px;
3656
- bottom: 0px;
3657
- left: 0px;
3658
- background: ${({ theme: theme2 }) => theme2.colors.muted};
3659
- `;
3660
- var InnerLine = styled54.div`
3661
- border-radius: ${({ theme: theme2 }) => theme2.radii[2]};
3662
- background: ${({ theme: theme2, destructive }) => destructive ? theme2.colors.destructive : theme2.colors.primary};
3663
- `;
3664
- var StyledLinearSlider = styled54(LinearSlide)`
3665
- width: 33.333333%;
3666
- height: 100%;
3667
- position: absolute;
3668
- top: 0px;
3669
- right: 0px;
3670
- bottom: 0px;
3671
- left: 0px;
3672
- `;
3673
- var LinearLoader = ({ height = 5, destructive = false }) => /* @__PURE__ */ jsxs29(Box, { overflow: "hidden", width: "100%", position: "relative", borderRadius: "8", style: { height }, children: [
3674
- /* @__PURE__ */ jsx72(OuterLine, {}),
3675
- /* @__PURE__ */ jsx72(StyledLinearSlider, { children: /* @__PURE__ */ jsx72(InnerLine, { destructive, style: { height } }) })
3537
+ import { x as x32 } from "@xstyled/styled-components";
3538
+ import { jsx as jsx87, jsxs as jsxs29 } from "react/jsx-runtime";
3539
+ var LinearLoader = ({ height = 5, destructive = false }) => /* @__PURE__ */ jsxs29(Box, { overflow: "hidden", w: "100%", position: "relative", borderRadius: "8", style: { height }, children: [
3540
+ /* @__PURE__ */ jsx87(
3541
+ x32.div,
3542
+ {
3543
+ borderRadius: 2,
3544
+ w: "100%",
3545
+ h: "100%",
3546
+ position: "absolute",
3547
+ top: "0px",
3548
+ right: "0px",
3549
+ bottom: "0px",
3550
+ left: "0px",
3551
+ opacity: "0.1",
3552
+ bg: destructive ? "destructive" : "primary"
3553
+ }
3554
+ ),
3555
+ /* @__PURE__ */ jsx87(
3556
+ LinearSlide,
3557
+ {
3558
+ width: "33.333333%",
3559
+ height: "100%",
3560
+ position: "absolute",
3561
+ top: "0px",
3562
+ right: "0px",
3563
+ bottom: "0px",
3564
+ left: "0px",
3565
+ children: /* @__PURE__ */ jsx87(
3566
+ x32.div,
3567
+ {
3568
+ borderRadius: 2,
3569
+ bg: destructive ? "destructive" : "primary",
3570
+ style: { height }
3571
+ }
3572
+ )
3573
+ }
3574
+ )
3676
3575
  ] });
3677
3576
 
3678
3577
  // src/feedback/Modal/Modal.tsx
3679
3578
  import { useState as useState17 } from "react";
3680
3579
  import { XMarkIcon as XMarkIcon2 } from "@heroicons/react/24/outline";
3681
- import { jsx as jsx73, jsxs as jsxs30 } from "react/jsx-runtime";
3682
- var Header = ({ children, handleClose }) => /* @__PURE__ */ jsxs30(Box, { display: "inline-flex", pr: "2", pl: "4", pt: "3", alignItems: "center", width: "100%", justifyContent: "space-between", children: [
3683
- /* @__PURE__ */ jsx73(Title, { as: "h3", children }),
3684
- /* @__PURE__ */ jsx73(ClickableElement, { px: 3, py: 2, ml: 5, onClick: handleClose, children: /* @__PURE__ */ jsx73(XMarkIcon2, { width: 20, height: 20 }) })
3580
+ import { jsx as jsx88, jsxs as jsxs30 } from "react/jsx-runtime";
3581
+ var Header = ({ children, handleClose }) => /* @__PURE__ */ jsxs30(Box, { display: "inline-flex", pr: "2", pl: "4", pt: "3", alignItems: "center", w: "100%", justifyContent: "space-between", children: [
3582
+ /* @__PURE__ */ jsx88(Title, { as: "h3", children }),
3583
+ /* @__PURE__ */ jsx88(ClickableElement, { padding: "2 3", ml: 5, onClick: handleClose, children: /* @__PURE__ */ jsx88(XMarkIcon2, { width: 20, height: 20 }) })
3685
3584
  ] });
3686
3585
  var Modal = ({ handleClose, title, children, open }) => {
3687
3586
  let [isOpen, setOpen] = useState17(false);
3688
3587
  if (!open) {
3689
3588
  return null;
3690
3589
  }
3691
- return /* @__PURE__ */ jsx73(Backdrop, { onClick: () => setOpen(!isOpen), onDestroyed: handleClose, children: /* @__PURE__ */ jsxs30(Panel, { minWidth: "200px", onClick: stopPropagation, children: [
3692
- title && /* @__PURE__ */ jsx73(Header, { handleClose, children: title }),
3590
+ return /* @__PURE__ */ jsx88(Backdrop, { onClick: () => setOpen(!isOpen), onDestroyed: handleClose, children: /* @__PURE__ */ jsxs30(Panel, { minWidth: "200px", onClick: stopPropagation, children: [
3591
+ title && /* @__PURE__ */ jsx88(Header, { handleClose, children: title }),
3693
3592
  children
3694
3593
  ] }) });
3695
3594
  };
3696
3595
 
3697
3596
  // src/feedback/Progress/CircleProgress.tsx
3698
- import styled55 from "styled-components";
3699
- import { jsx as jsx74, jsxs as jsxs31 } from "react/jsx-runtime";
3700
- var Svg2 = styled55.svg`
3701
- stroke: currentColor;
3702
- transform: rotate(-90deg);
3703
- `;
3704
- var OuterCircle2 = styled55.circle`
3705
- color: ${({ theme: theme2 }) => theme2.colors.muted};
3706
- `;
3707
- var InnerCircle2 = styled55.circle`
3708
- color: ${({ theme: theme2 }) => theme2.colors.foreground};
3709
- `;
3597
+ import { x as x33 } from "@xstyled/styled-components";
3598
+ import { jsx as jsx89, jsxs as jsxs31 } from "react/jsx-runtime";
3710
3599
  var CircleProgress = ({ height = 50, width = 50, percentage = 0 }) => {
3711
3600
  let circumference = 2 * Math.PI * ((50 - 4) / 2);
3712
3601
  let strokeDasharray = circumference.toFixed(3);
3713
3602
  let strokeDashoffset = `${((100 - percentage) / 100 * circumference).toFixed(3)}px`;
3714
- return /* @__PURE__ */ jsxs31(Svg2, { viewBox: "25 25 50 50", height, width, children: [
3715
- /* @__PURE__ */ jsx74(OuterCircle2, { cx: "50", cy: "50", r: "23", fill: "none", strokeWidth: "4" }),
3716
- /* @__PURE__ */ jsx74(
3717
- InnerCircle2,
3718
- {
3719
- cx: "50",
3720
- cy: "50",
3721
- r: "23",
3722
- fill: "none",
3723
- strokeWidth: "4",
3724
- strokeLinecap: "round",
3725
- strokeDashoffset,
3726
- strokeDasharray
3727
- }
3728
- )
3729
- ] });
3603
+ return /* @__PURE__ */ jsxs31(
3604
+ x33.svg,
3605
+ {
3606
+ viewBox: "25 25 50 50",
3607
+ height,
3608
+ width,
3609
+ stroke: "currentColor",
3610
+ transform: "rotate(-90deg)",
3611
+ children: [
3612
+ /* @__PURE__ */ jsx89(
3613
+ x33.circle,
3614
+ {
3615
+ cx: "50",
3616
+ cy: "50",
3617
+ r: "23",
3618
+ fill: "none",
3619
+ strokeWidth: "4",
3620
+ opacity: "0.1",
3621
+ color: "foreground"
3622
+ }
3623
+ ),
3624
+ /* @__PURE__ */ jsx89(
3625
+ x33.circle,
3626
+ {
3627
+ cx: "50",
3628
+ cy: "50",
3629
+ r: "23",
3630
+ fill: "none",
3631
+ strokeWidth: "4",
3632
+ strokeLinecap: "round",
3633
+ strokeDashoffset,
3634
+ strokeDasharray,
3635
+ color: "foreground"
3636
+ }
3637
+ )
3638
+ ]
3639
+ }
3640
+ );
3730
3641
  };
3731
3642
 
3732
3643
  // src/feedback/Progress/LinearProgress.tsx
3733
- import styled56 from "styled-components";
3734
- import { jsx as jsx75, jsxs as jsxs32 } from "react/jsx-runtime";
3735
- var OuterLine2 = styled56.div`
3736
- border-radius: ${({ theme: theme2 }) => theme2.radii[8]};
3737
- width: 100%;
3738
- height: 100%;
3739
- position: absolute;
3740
- top: 0px;
3741
- right: 0px;
3742
- bottom: 0px;
3743
- left: 0px;
3744
- background: ${({ theme: theme2 }) => theme2.colors.muted};
3745
- `;
3746
- var InnerLine2 = styled56.div`
3747
- border-radius: ${({ theme: theme2 }) => theme2.radii[2]};
3748
- height: 100%;
3749
- width: ${({ percentage }) => percentage}%;
3750
- position: absolute;
3751
- top: 0px;
3752
- right: 0px;
3753
- bottom: 0px;
3754
- left: 0px;
3755
- background: ${({ theme: theme2 }) => theme2.colors.foreground};
3756
- `;
3757
- var LinearProgress = ({ height = 5, percentage = 0 }) => /* @__PURE__ */ jsxs32(Box, { overflow: "hidden", width: "100%", position: "relative", borderRadius: "8", style: { height }, children: [
3758
- /* @__PURE__ */ jsx75(OuterLine2, {}),
3759
- /* @__PURE__ */ jsx75(InnerLine2, { percentage })
3644
+ import { x as x34 } from "@xstyled/styled-components";
3645
+ import { jsx as jsx90, jsxs as jsxs32 } from "react/jsx-runtime";
3646
+ var LinearProgress = ({ height = 5, percentage = 0 }) => /* @__PURE__ */ jsxs32(Box, { overflow: "hidden", w: "100%", position: "relative", borderRadius: "8", style: { height }, children: [
3647
+ /* @__PURE__ */ jsx90(
3648
+ x34.div,
3649
+ {
3650
+ borderRadius: 8,
3651
+ w: "100%",
3652
+ h: "100%",
3653
+ position: "absolute",
3654
+ top: "0px",
3655
+ right: "0px",
3656
+ bottom: "0px",
3657
+ left: "0px",
3658
+ opacity: "0.1",
3659
+ bg: "foreground"
3660
+ }
3661
+ ),
3662
+ /* @__PURE__ */ jsx90(
3663
+ x34.div,
3664
+ {
3665
+ borderRadius: 2,
3666
+ h: "100%",
3667
+ w: `${percentage}%`,
3668
+ position: "absolute",
3669
+ top: "0px",
3670
+ right: "0px",
3671
+ bottom: "0px",
3672
+ left: "0px",
3673
+ bg: "foreground"
3674
+ }
3675
+ )
3760
3676
  ] });
3761
3677
 
3762
3678
  // src/feedback/Skeleton/Skeleton.tsx
3763
- import styled57 from "styled-components";
3764
- import { rgba } from "polished";
3765
- import { layout as layout7, space as space6, variant as variant2 } from "styled-system";
3766
- import { jsx as jsx76 } from "react/jsx-runtime";
3767
- var Comp = styled57.div`
3768
- ${({ theme: theme2 }) => theme2.animations.pulse}
3769
- background: ${({ theme: theme2 }) => rgba(theme2.colors.primary, 0.1)};
3770
- ${layout7}
3771
- ${space6}
3772
- ${({ theme: theme2, height, width }) => variant2({
3773
- prop: "variant",
3774
- variants: {
3775
- circle: {
3776
- borderRadius: theme2.radii[8],
3777
- height: height + "px",
3778
- width: width + "px"
3779
- },
3780
- rectangle: {
3781
- borderRadius: theme2.radii[3],
3782
- height: height + "px",
3783
- width: width + "px"
3784
- },
3785
- text: {
3786
- display: "inline-flex",
3787
- borderRadius: theme2.radii[3]
3788
- }
3789
- }
3790
- })}
3791
- `;
3679
+ import { x as x35 } from "@xstyled/styled-components";
3680
+ import { jsx as jsx91 } from "react/jsx-runtime";
3792
3681
  var Skeleton = (_a) => {
3793
- var rest = __objRest(_a, []);
3794
- return /* @__PURE__ */ jsx76(Comp, __spreadProps(__spreadValues({}, rest), { children: "\xA0" }));
3682
+ var _b = _a, { variant = "rectangle" } = _b, rest = __objRest(_b, ["variant"]);
3683
+ const getVariantProps = () => {
3684
+ switch (variant) {
3685
+ case "circle":
3686
+ return {
3687
+ borderRadius: 8
3688
+ };
3689
+ case "rectangle":
3690
+ return {
3691
+ borderRadius: 3
3692
+ };
3693
+ case "text":
3694
+ return {
3695
+ display: "inline-flex",
3696
+ borderRadius: 3
3697
+ };
3698
+ default:
3699
+ return {};
3700
+ }
3701
+ };
3702
+ return /* @__PURE__ */ jsx91(
3703
+ x35.div,
3704
+ __spreadProps(__spreadValues(__spreadValues({
3705
+ animation: "pulse",
3706
+ bg: "modalBackdrop"
3707
+ }, getVariantProps()), rest), {
3708
+ children: "\xA0"
3709
+ })
3710
+ );
3795
3711
  };
3796
3712
 
3797
3713
  // src/feedback/Snackbar/SnackbarProvider.tsx
3798
3714
  import { useState as useState19, useEffect as useEffect9 } from "react";
3799
- import styled59 from "styled-components";
3715
+ import { x as x36 } from "@xstyled/styled-components";
3800
3716
 
3801
3717
  // src/feedback/Snackbar/SnackbarContext.tsx
3802
3718
  import { useContext as useContext3, createContext as createContext3 } from "react";
@@ -3811,11 +3727,7 @@ var useSnackbar = () => {
3811
3727
 
3812
3728
  // src/feedback/Snackbar/SnackbarItem.tsx
3813
3729
  import { useEffect as useEffect8, useState as useState18 } from "react";
3814
- import styled58 from "styled-components";
3815
- import { jsx as jsx77 } from "react/jsx-runtime";
3816
- var StyledAlert = styled58(Alert)`
3817
- margin: ${({ theme: theme2 }) => `${theme2.space[1]} ${theme2.space[4]}`};
3818
- `;
3730
+ import { jsx as jsx92 } from "react/jsx-runtime";
3819
3731
  var SnackbarItem = (_a) => {
3820
3732
  var _b = _a, {
3821
3733
  body,
@@ -3840,9 +3752,10 @@ var SnackbarItem = (_a) => {
3840
3752
  }, duration);
3841
3753
  return () => clearTimeout(timeout);
3842
3754
  }, [duration, persist]);
3843
- return /* @__PURE__ */ jsx77(Slide, { inProp: open, onDestroyed: handleClose, children: /* @__PURE__ */ jsx77(
3844
- StyledAlert,
3755
+ return /* @__PURE__ */ jsx92(Slide, { inProp: open, onDestroyed: handleClose, children: /* @__PURE__ */ jsx92(
3756
+ Alert,
3845
3757
  __spreadProps(__spreadValues({
3758
+ margin: "1 4",
3846
3759
  withClose: () => setOpen(false),
3847
3760
  title
3848
3761
  }, rest), {
@@ -3855,45 +3768,37 @@ var SnackbarItem = (_a) => {
3855
3768
  var createId = () => {
3856
3769
  return Math.random().toString(36).substr(2, 9);
3857
3770
  };
3858
- var getPosition2 = (position4) => {
3859
- switch (position4) {
3771
+ var getPosition2 = (position) => {
3772
+ switch (position) {
3860
3773
  case "NE":
3861
- return `
3862
- top: 0;
3863
- right: 0;
3864
- flex-direction: column;
3865
- `;
3774
+ return {
3775
+ top: 0,
3776
+ right: 0,
3777
+ flexDirection: "column"
3778
+ };
3866
3779
  case "NW":
3867
- return `
3868
- top: 0;
3869
- left: 0;
3870
- flex-direction: column;
3871
- `;
3780
+ return {
3781
+ top: 0,
3782
+ left: 0,
3783
+ flexDirection: "column"
3784
+ };
3872
3785
  case "SE":
3873
- return `
3874
- right: 0;
3875
- bottom: 0;
3876
- flex-direction: column-reverse;
3877
- `;
3786
+ return {
3787
+ right: 0,
3788
+ bottom: 0,
3789
+ flexDirection: "column-reverse"
3790
+ };
3878
3791
  case "SW":
3879
- return `
3880
- left: 0;
3881
- bottom: 0;
3882
- flex-direction: column-reverse;
3883
- `;
3792
+ return {
3793
+ left: 0,
3794
+ bottom: 0,
3795
+ flexDirection: "column-reverse"
3796
+ };
3884
3797
  }
3885
3798
  };
3886
3799
 
3887
3800
  // src/feedback/Snackbar/SnackbarProvider.tsx
3888
- import { jsx as jsx78, jsxs as jsxs33 } from "react/jsx-runtime";
3889
- var Container11 = styled59.div`
3890
- position: fixed;
3891
- display: flex;
3892
- z-index: 50;
3893
- margin-bottom: ${({ theme: theme2 }) => theme2.space[1]};
3894
- margin-top: ${({ theme: theme2 }) => theme2.space[1]};
3895
- ${({ anchor }) => getPosition2(anchor)}
3896
- `;
3801
+ import { jsx as jsx93, jsxs as jsxs33 } from "react/jsx-runtime";
3897
3802
  var SnackbarProvider = ({
3898
3803
  anchor = "NE",
3899
3804
  children,
@@ -3939,31 +3844,37 @@ var SnackbarProvider = ({
3939
3844
  dequeue,
3940
3845
  clearAll
3941
3846
  }, children: [
3942
- /* @__PURE__ */ jsx78(Portal, { element: portalLocation, children: /* @__PURE__ */ jsx78(Container11, { anchor, children: items.map((_a) => {
3943
- var _b = _a, { id, duration } = _b, rest = __objRest(_b, ["id", "duration"]);
3944
- return /* @__PURE__ */ jsx78(
3945
- SnackbarItem,
3946
- __spreadValues({
3947
- duration: duration || autoHideDuration,
3948
- handleClose: () => dequeue(id)
3949
- }, rest),
3950
- id
3951
- );
3952
- }) }) }),
3847
+ /* @__PURE__ */ jsx93(Portal, { element: portalLocation, children: /* @__PURE__ */ jsx93(
3848
+ x36.div,
3849
+ __spreadProps(__spreadValues({
3850
+ position: "fixed",
3851
+ display: "flex",
3852
+ zIndex: 50,
3853
+ marginBottom: 1,
3854
+ marginTop: 1
3855
+ }, getPosition2(anchor)), {
3856
+ children: items.map((_a) => {
3857
+ var _b = _a, { id, duration } = _b, rest = __objRest(_b, ["id", "duration"]);
3858
+ return /* @__PURE__ */ jsx93(
3859
+ SnackbarItem,
3860
+ __spreadValues({
3861
+ duration: duration || autoHideDuration,
3862
+ handleClose: () => dequeue(id)
3863
+ }, rest),
3864
+ id
3865
+ );
3866
+ })
3867
+ })
3868
+ ) }),
3953
3869
  children
3954
3870
  ] });
3955
3871
  };
3956
3872
 
3957
3873
  // src/layout/CenteredWidget/CenteredWidget.tsx
3958
- import styled60 from "styled-components";
3959
- import { jsx as jsx79 } from "react/jsx-runtime";
3960
- var CenteredDiv = styled60(Box)`
3961
- margin: 0 auto;
3962
- width: 36rem;
3963
- `;
3874
+ import { jsx as jsx94 } from "react/jsx-runtime";
3964
3875
  var CenteredWidget = (_a) => {
3965
3876
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
3966
- return /* @__PURE__ */ jsx79(Box, { display: "flex", alignItems: "center", justifyItems: "center", height: "100vh", children: /* @__PURE__ */ jsx79(CenteredDiv, __spreadProps(__spreadValues({}, rest), { children })) });
3877
+ return /* @__PURE__ */ jsx94(Box, { display: "flex", alignItems: "center", justifyItems: "center", h: "100vh", children: /* @__PURE__ */ jsx94(Box, __spreadProps(__spreadValues({ m: "0 auto", w: "36rem" }, rest), { children })) });
3967
3878
  };
3968
3879
 
3969
3880
  // src/layout/TwoColumns/TwoColumns.tsx
@@ -3971,7 +3882,7 @@ import { jsxs as jsxs34 } from "react/jsx-runtime";
3971
3882
  var TwoColumns = ({ children, sideNav }) => /* @__PURE__ */ jsxs34(
3972
3883
  Box,
3973
3884
  {
3974
- height: "100%",
3885
+ h: "100%",
3975
3886
  "m-width": "0",
3976
3887
  display: { md: "grid" },
3977
3888
  gridTemplateColumns: { md: "19.5rem auto" },
@@ -3984,15 +3895,15 @@ var TwoColumns = ({ children, sideNav }) => /* @__PURE__ */ jsxs34(
3984
3895
  );
3985
3896
 
3986
3897
  // src/layout/ThreeColumns/ThreeColumns.tsx
3987
- import { jsx as jsx80, jsxs as jsxs35 } from "react/jsx-runtime";
3898
+ import { jsx as jsx95, jsxs as jsxs35 } from "react/jsx-runtime";
3988
3899
  var ThreeColumns = ({
3989
3900
  children,
3990
3901
  sideNav,
3991
3902
  mainNav
3992
- }) => /* @__PURE__ */ jsx80(TwoColumns, { sideNav, children: /* @__PURE__ */ jsxs35(
3903
+ }) => /* @__PURE__ */ jsx95(TwoColumns, { sideNav, children: /* @__PURE__ */ jsxs35(
3993
3904
  Box,
3994
3905
  {
3995
- height: "100%",
3906
+ h: "100%",
3996
3907
  minWidth: "0",
3997
3908
  display: { md: "grid" },
3998
3909
  gridTemplateColumns: { md: "19.5rem auto" },
@@ -4009,61 +3920,56 @@ import { useState as useState20, Children } from "react";
4009
3920
  import { EllipsisHorizontalIcon } from "@heroicons/react/24/outline";
4010
3921
 
4011
3922
  // src/navigation/Breadcrumbs/Item.tsx
4012
- import { jsx as jsx81, jsxs as jsxs36 } from "react/jsx-runtime";
4013
- var Item2 = ({
3923
+ import { jsx as jsx96, jsxs as jsxs36 } from "react/jsx-runtime";
3924
+ var Item = ({
4014
3925
  item,
4015
3926
  isLastItem = false,
4016
3927
  dividerIcon
4017
3928
  }) => {
4018
3929
  return /* @__PURE__ */ jsxs36(Box, { display: "inline-flex", alignItems: "center", color: isLastItem ? "inherit" : "mutedForeground", children: [
4019
3930
  item,
4020
- !isLastItem && /* @__PURE__ */ jsx81(Box, { mx: "2", display: "inline-block", children: dividerIcon })
3931
+ !isLastItem && /* @__PURE__ */ jsx96(Box, { mx: "2", display: "inline-block", children: dividerIcon })
4021
3932
  ] });
4022
3933
  };
4023
3934
 
4024
3935
  // src/navigation/Breadcrumbs/Breadcrumbs.tsx
4025
- import { jsx as jsx82, jsxs as jsxs37 } from "react/jsx-runtime";
3936
+ import { jsx as jsx97, jsxs as jsxs37 } from "react/jsx-runtime";
4026
3937
  var Breadcrumbs = ({
4027
3938
  children,
4028
3939
  maxItems = 8,
4029
3940
  itemsBefore = 1,
4030
3941
  itemsAfter = 1,
4031
- dividerIcon = /* @__PURE__ */ jsx82("div", { children: "/" })
3942
+ dividerIcon = /* @__PURE__ */ jsx97("div", { children: "/" })
4032
3943
  }) => {
4033
3944
  let [showAll, setShow] = useState20(false);
4034
3945
  let items = Children.toArray(children);
4035
3946
  if (items.length <= maxItems) {
4036
- return /* @__PURE__ */ jsx82("div", { children: items.map((c, idx) => /* @__PURE__ */ jsx82(Item2, { item: c, isLastItem: idx === items.length - 1, dividerIcon }, idx)) });
3947
+ return /* @__PURE__ */ jsx97("div", { children: items.map((c, idx) => /* @__PURE__ */ jsx97(Item, { item: c, isLastItem: idx === items.length - 1, dividerIcon }, idx)) });
4037
3948
  }
4038
3949
  let beforeItems = items.slice(0, itemsBefore);
4039
3950
  let middleItems = items.slice(itemsBefore, -itemsAfter);
4040
3951
  let afterItems = items.slice(-itemsAfter);
4041
3952
  return /* @__PURE__ */ jsxs37(Box, { display: "flex", alignItems: "center", children: [
4042
- beforeItems.map((c, idx) => /* @__PURE__ */ jsx82(Item2, { item: c, dividerIcon }, idx)),
4043
- showAll ? middleItems.map((c, idx) => /* @__PURE__ */ jsx82(Item2, { item: c, dividerIcon }, idx)) : /* @__PURE__ */ jsxs37(Box, { display: "inline-flex", alignItems: "center", children: [
4044
- /* @__PURE__ */ jsx82(ClickableElement, { onClick: () => setShow(true), children: /* @__PURE__ */ jsx82(EllipsisHorizontalIcon, { height: 16, width: 16 }) }),
4045
- /* @__PURE__ */ jsx82(Box, { display: "inline-block", color: "baseHighlight", mx: "2", children: dividerIcon })
3953
+ beforeItems.map((c, idx) => /* @__PURE__ */ jsx97(Item, { item: c, dividerIcon }, idx)),
3954
+ showAll ? middleItems.map((c, idx) => /* @__PURE__ */ jsx97(Item, { item: c, dividerIcon }, idx)) : /* @__PURE__ */ jsxs37(Box, { display: "inline-flex", alignItems: "center", children: [
3955
+ /* @__PURE__ */ jsx97(ClickableElement, { onClick: () => setShow(true), children: /* @__PURE__ */ jsx97(EllipsisHorizontalIcon, { height: 16, width: 16 }) }),
3956
+ /* @__PURE__ */ jsx97(Box, { display: "inline-block", color: "baseHighlight", mx: "2", children: dividerIcon })
4046
3957
  ] }),
4047
- afterItems.map((c, idx) => /* @__PURE__ */ jsx82(Item2, { item: c, isLastItem: idx === afterItems.length - 1, dividerIcon }, idx))
3958
+ afterItems.map((c, idx) => /* @__PURE__ */ jsx97(Item, { item: c, isLastItem: idx === afterItems.length - 1, dividerIcon }, idx))
4048
3959
  ] });
4049
3960
  };
4050
3961
 
4051
3962
  // src/navigation/Drawer/Drawer.tsx
4052
3963
  import { useState as useState21 } from "react";
4053
- import styled61 from "styled-components";
4054
- import { jsx as jsx83 } from "react/jsx-runtime";
4055
- var StyledOpen = styled61(Open)`
3964
+ import { styled as styled6, x as x37 } from "@xstyled/styled-components";
3965
+ import { jsx as jsx98 } from "react/jsx-runtime";
3966
+ var StyledOpen = styled6(Open)`
4056
3967
  position: fixed;
4057
3968
  width: 33.333333%;
4058
3969
  height: 100vh;
4059
3970
  top: 0px;
4060
3971
  ${({ direction }) => direction === "left" ? "left: 0px;" : "right: 0;"}
4061
3972
  `;
4062
- var Container12 = styled61.div`
4063
- width: 100%;
4064
- height: 100%;
4065
- background: ${({ theme: theme2 }) => theme2.colors.background};
4066
- `;
4067
3973
  var Drawer = ({
4068
3974
  open,
4069
3975
  handleClose,
@@ -4074,11 +3980,11 @@ var Drawer = ({
4074
3980
  if (!open) {
4075
3981
  return null;
4076
3982
  }
4077
- return /* @__PURE__ */ jsx83(Backdrop, { config: { duration: 195 }, onClick: () => setOpen(!isOpen), onDestroyed: handleClose, children: /* @__PURE__ */ jsx83(StyledOpen, { inProp: isOpen, direction, "data-testId": "here", children: /* @__PURE__ */ jsx83(Container12, { onClick: stopPropagation, children }) }) });
3983
+ return /* @__PURE__ */ jsx98(Backdrop, { config: { duration: 195 }, onClick: () => setOpen(!isOpen), onDestroyed: handleClose, children: /* @__PURE__ */ jsx98(StyledOpen, { inProp: isOpen, direction, "data-testId": "here", children: /* @__PURE__ */ jsx98(x37.div, { w: "100%", h: "100%", bg: "background", onClick: stopPropagation, children }) }) });
4078
3984
  };
4079
3985
 
4080
3986
  // src/navigation/Stepper/Stepper.tsx
4081
- import styled62 from "styled-components";
3987
+ import { x as x38 } from "@xstyled/styled-components";
4082
3988
 
4083
3989
  // src/navigation/Stepper/StepperContext.ts
4084
3990
  import { useContext as useContext4, createContext as createContext4 } from "react";
@@ -4093,7 +3999,7 @@ var useStepperContext = () => {
4093
3999
 
4094
4000
  // src/navigation/Stepper/Stepper.tsx
4095
4001
  import { Children as Children2, isValidElement, cloneElement as cloneElement2 } from "react";
4096
- import { jsx as jsx84 } from "react/jsx-runtime";
4002
+ import { jsx as jsx99 } from "react/jsx-runtime";
4097
4003
  var parseChildren = (children, step) => {
4098
4004
  return Children2.toArray(children).map((node, idx) => {
4099
4005
  if (!isValidElement(node)) {
@@ -4109,15 +4015,19 @@ var parseChildren = (children, step) => {
4109
4015
  });
4110
4016
  });
4111
4017
  };
4112
- var StyledDiv2 = styled62.div`
4113
- display: flex;
4114
- postion: relative;
4115
- ${({ direction }) => direction === "vertical" && `
4116
- flex-direction: column;
4117
- height: 100%;
4118
- alignItems: flex-start;
4119
- `}
4120
- `;
4018
+ var StyledDiv = (_a) => {
4019
+ var _b = _a, { direction } = _b, props = __objRest(_b, ["direction"]);
4020
+ return /* @__PURE__ */ jsx99(
4021
+ x38.div,
4022
+ __spreadValues({
4023
+ display: "flex",
4024
+ position: "relative",
4025
+ flexDirection: direction === "vertical" ? "column" : void 0,
4026
+ h: direction === "vertical" ? "100%" : void 0,
4027
+ alignItems: direction === "vertical" ? "flex-start" : void 0
4028
+ }, props)
4029
+ );
4030
+ };
4121
4031
  var Stepper = (_a) => {
4122
4032
  var _b = _a, {
4123
4033
  children,
@@ -4130,44 +4040,44 @@ var Stepper = (_a) => {
4130
4040
  ]);
4131
4041
  let alternativeLabel = rest.hasOwnProperty("alternativeLabel") ? rest.alternativeLabel : false;
4132
4042
  let items = parseChildren(children, step);
4133
- return /* @__PURE__ */ jsx84(StepperContext.Provider, { value: {
4043
+ return /* @__PURE__ */ jsx99(StepperContext.Provider, { value: {
4134
4044
  noOfItems: items.length - 1,
4135
4045
  activeStep: step,
4136
4046
  direction,
4137
4047
  alternativeLabel
4138
- }, children: /* @__PURE__ */ jsx84(StyledDiv2, { direction, children: items.map((_a2) => {
4048
+ }, children: /* @__PURE__ */ jsx99(StyledDiv, { direction, children: items.map((_a2) => {
4139
4049
  var _b2 = _a2, { node } = _b2, itemRest = __objRest(_b2, ["node"]);
4140
4050
  return cloneElement2(node, __spreadValues({}, itemRest));
4141
4051
  }) }) });
4142
4052
  };
4143
4053
 
4144
4054
  // src/navigation/Stepper/StepIcon.tsx
4145
- import styled63 from "styled-components";
4055
+ import styled7 from "@xstyled/styled-components";
4146
4056
  import { CheckCircleIcon, ExclamationTriangleIcon } from "@heroicons/react/24/outline";
4147
- import { Fragment as Fragment12, jsx as jsx85, jsxs as jsxs38 } from "react/jsx-runtime";
4148
- var ErrorComp = styled63(ExclamationTriangleIcon)`
4057
+ import { Fragment as Fragment12, jsx as jsx100, jsxs as jsxs38 } from "react/jsx-runtime";
4058
+ var ErrorComp = styled7(ExclamationTriangleIcon)`
4149
4059
  width: 24px;
4150
4060
  height: 24px;
4151
- color: ${({ theme: theme2 }) => theme2.colors.destructive};
4061
+ color: destructive;
4152
4062
  `;
4153
- var DefaultSvg = styled63.svg`
4063
+ var DefaultSvg = styled7.svg`
4154
4064
  width: 30px;
4155
4065
  height: 30px;
4156
- color: ${({ theme: theme2 }) => theme2.colors.primary};
4066
+ color: primary;
4157
4067
  opacity: ${({ state }) => state === "default" ? "0.6" : "1"};
4158
4068
  `;
4159
- var DefaultText = styled63.text`
4069
+ var DefaultText = styled7.text`
4160
4070
  font-weight: 700;
4161
- font-size: ${({ theme: theme2 }) => theme2.fontSizes[0]};
4162
- line-height: ${({ theme: theme2 }) => theme2.lineHeights[0]};
4071
+ font-size: 0;
4072
+ line-height: 0;
4163
4073
  `;
4164
- var Checkmark = styled63(CheckCircleIcon)`
4165
- color: ${({ theme: theme2 }) => theme2.colors.primary};
4074
+ var Checkmark = styled7(CheckCircleIcon)`
4075
+ color: primary;
4166
4076
  width: 30px;
4167
4077
  height: 30px;
4168
4078
  `;
4169
- var InnerCirle = styled63.circle`
4170
- color: ${({ theme: theme2 }) => theme2.colors.background};
4079
+ var InnerCircle = styled7.circle`
4080
+ color: background;
4171
4081
  `;
4172
4082
  var StepIcon = ({
4173
4083
  state = "default",
@@ -4176,71 +4086,88 @@ var StepIcon = ({
4176
4086
  error
4177
4087
  }) => {
4178
4088
  if (icon) {
4179
- return /* @__PURE__ */ jsx85(Fragment12, { children: icon });
4089
+ return /* @__PURE__ */ jsx100(Fragment12, { children: icon });
4180
4090
  }
4181
4091
  if (error) {
4182
- return /* @__PURE__ */ jsx85(ErrorComp, {});
4092
+ return /* @__PURE__ */ jsx100(ErrorComp, {});
4183
4093
  }
4184
4094
  if (state === "active" || state === "default") {
4185
4095
  return /* @__PURE__ */ jsxs38(DefaultSvg, { fill: "currentColor", state, children: [
4186
- /* @__PURE__ */ jsx85("circle", { cx: "50%", cy: "50%", r: "12" }),
4187
- /* @__PURE__ */ jsx85(InnerCirle, { cx: "50%", cy: "50%", r: "10" }),
4188
- /* @__PURE__ */ jsx85(DefaultText, { x: "50%", y: "65%", textAnchor: "middle", children: number })
4096
+ /* @__PURE__ */ jsx100("circle", { cx: "50%", cy: "50%", r: "12" }),
4097
+ /* @__PURE__ */ jsx100(InnerCircle, { cx: "50%", cy: "50%", r: "10" }),
4098
+ /* @__PURE__ */ jsx100(DefaultText, { x: "50%", y: "65%", textAnchor: "middle", children: number })
4189
4099
  ] });
4190
4100
  }
4191
- return /* @__PURE__ */ jsx85(Checkmark, {});
4101
+ return /* @__PURE__ */ jsx100(Checkmark, {});
4192
4102
  };
4193
4103
 
4194
4104
  // src/navigation/Stepper/StepLabel.tsx
4195
- import styled64 from "styled-components";
4196
- import { Fragment as Fragment13, jsx as jsx86, jsxs as jsxs39 } from "react/jsx-runtime";
4197
- var Line = styled64.div`
4198
- left: calc(-50% + 30px);
4199
- right: calc(50% + 30px);
4200
- background: ${({ theme: theme2 }) => theme2.colors.primary};
4201
- opacity: 0.2;
4202
- flex: 1 1 auto;
4203
- width: 1px;
4204
- ${({ direction }) => direction === "vertical" ? "height: 100%; width: 1px;" : "height: 1px;"}
4205
- `;
4206
- var AlternativeLine = styled64.div`
4207
- left: calc(-50% + 30px);
4208
- right: calc(50% + 30px);
4209
- position: absolute;
4210
- background: ${({ theme: theme2 }) => theme2.colors.primary};
4211
- opacity: 0.2;
4212
- top: ${({ theme: theme2 }) => theme2.sizes[3]};
4213
- flex: 1 1 auto;
4214
- ${({ direction }) => direction === "vertical" ? "height: 100%;" : "height: 1px;"}
4215
- `;
4216
- var Label4 = styled64.div`
4217
- display: flex;
4218
- align-items: center;
4219
- justify-content: center;
4220
- position: relative;
4221
- font-size: ${({ theme: theme2 }) => theme2.fontSizes[0]};
4222
- line-height: ${({ theme: theme2 }) => theme2.lineHeights[0]};
4223
- ${({ alternativeLabel }) => alternativeLabel ? `
4224
- flex-direction: column;
4225
- flex: 1 1 0%;
4226
- ` : `
4227
- > :not([hidden]) ~ :not([hidden]) {
4228
- margin-left: 0.5rem;
4229
- }
4230
- `}
4231
- `;
4232
- var LineContainer = styled64.div`
4233
- flex: 1 1 auto;
4234
- display: flex;
4235
- width: 1px;
4236
- align-items: center;
4237
- margin-left: ${({ theme: theme2 }) => theme2.space[3]};
4238
- margin-right: ${({ theme: theme2 }) => theme2.space[3]};
4239
- ${({ direction, theme: theme2 }) => direction === "vertical" && `
4240
- margin-top: ${theme2.space[3]};
4241
- margin-bottom: ${theme2.space[3]};
4242
- `}
4243
- `;
4105
+ import { x as x39 } from "@xstyled/styled-components";
4106
+ import { Fragment as Fragment13, jsx as jsx101, jsxs as jsxs39 } from "react/jsx-runtime";
4107
+ var Line = (_a) => {
4108
+ var _b = _a, { direction } = _b, props = __objRest(_b, ["direction"]);
4109
+ return /* @__PURE__ */ jsx101(
4110
+ x39.div,
4111
+ __spreadValues({
4112
+ left: "calc(-50% + 30px)",
4113
+ right: "calc(50% + 30px)",
4114
+ bg: "primary",
4115
+ opacity: 0.2,
4116
+ flex: "1 1 auto",
4117
+ w: "1px",
4118
+ h: direction === "vertical" ? "100%" : "1px"
4119
+ }, props)
4120
+ );
4121
+ };
4122
+ var AlternativeLine = (_a) => {
4123
+ var _b = _a, { direction } = _b, props = __objRest(_b, ["direction"]);
4124
+ return /* @__PURE__ */ jsx101(
4125
+ x39.div,
4126
+ __spreadValues({
4127
+ left: "calc(-50% + 30px)",
4128
+ right: "calc(50% + 30px)",
4129
+ position: "absolute",
4130
+ bg: "primary",
4131
+ opacity: 0.2,
4132
+ top: 3,
4133
+ flex: "1 1 auto",
4134
+ h: direction === "vertical" ? "100%" : "1px"
4135
+ }, props)
4136
+ );
4137
+ };
4138
+ var Label3 = (_a) => {
4139
+ var _b = _a, { alternativeLabel } = _b, props = __objRest(_b, ["alternativeLabel"]);
4140
+ return /* @__PURE__ */ jsx101(
4141
+ x39.div,
4142
+ __spreadValues({
4143
+ display: "flex",
4144
+ alignItems: "center",
4145
+ justifyContent: "center",
4146
+ position: "relative",
4147
+ fontSize: 0,
4148
+ lineHeight: 0,
4149
+ flexDirection: alternativeLabel ? "column" : void 0,
4150
+ flex: alternativeLabel ? "1 1 0%" : void 0,
4151
+ marginLeft: !alternativeLabel ? { "> :not([hidden]) ~ :not([hidden])": "0.5rem" } : void 0
4152
+ }, props)
4153
+ );
4154
+ };
4155
+ var LineContainer = (_a) => {
4156
+ var _b = _a, { direction } = _b, props = __objRest(_b, ["direction"]);
4157
+ return /* @__PURE__ */ jsx101(
4158
+ x39.div,
4159
+ __spreadValues({
4160
+ flex: "1 1 auto",
4161
+ display: "flex",
4162
+ w: "1px",
4163
+ alignItems: "center",
4164
+ ml: 3,
4165
+ mr: 3,
4166
+ mt: direction === "vertical" ? 3 : void 0,
4167
+ mb: direction === "vertical" ? 3 : void 0
4168
+ }, props)
4169
+ );
4170
+ };
4244
4171
  var StepLabel = ({
4245
4172
  icon,
4246
4173
  children,
@@ -4250,18 +4177,18 @@ var StepLabel = ({
4250
4177
  }) => {
4251
4178
  let { direction, alternativeLabel, noOfItems } = useStepperContext();
4252
4179
  if (alternativeLabel) {
4253
- return /* @__PURE__ */ jsxs39(Label4, { alternativeLabel, children: [
4254
- idx !== 0 && /* @__PURE__ */ jsx86(AlternativeLine, { direction }),
4255
- /* @__PURE__ */ jsx86(StepIcon, { number: idx + 1, icon, state, error }),
4180
+ return /* @__PURE__ */ jsxs39(Label3, { alternativeLabel, children: [
4181
+ idx !== 0 && /* @__PURE__ */ jsx101(AlternativeLine, { direction }),
4182
+ /* @__PURE__ */ jsx101(StepIcon, { number: idx + 1, icon, state, error }),
4256
4183
  children
4257
4184
  ] });
4258
4185
  }
4259
4186
  return /* @__PURE__ */ jsxs39(Fragment13, { children: [
4260
- /* @__PURE__ */ jsxs39(Label4, { alternativeLabel: false, children: [
4261
- /* @__PURE__ */ jsx86(StepIcon, { number: idx + 1, icon, state, error }),
4262
- /* @__PURE__ */ jsx86(Text, { opacity: state === "default" ? "0.6" : "1", children })
4187
+ /* @__PURE__ */ jsxs39(Label3, { alternativeLabel: false, children: [
4188
+ /* @__PURE__ */ jsx101(StepIcon, { number: idx + 1, icon, state, error }),
4189
+ /* @__PURE__ */ jsx101(Text, { opacity: state === "default" ? "0.6" : "1", children })
4263
4190
  ] }),
4264
- idx !== noOfItems && /* @__PURE__ */ jsx86(LineContainer, { direction, children: /* @__PURE__ */ jsx86(Line, { direction }) })
4191
+ idx !== noOfItems && /* @__PURE__ */ jsx101(LineContainer, { direction, children: /* @__PURE__ */ jsx101(Line, { direction }) })
4265
4192
  ] });
4266
4193
  };
4267
4194
 
@@ -4269,33 +4196,24 @@ var StepLabel = ({
4269
4196
  import { useState as useState22, Children as Children3, isValidElement as isValidElement2 } from "react";
4270
4197
 
4271
4198
  // src/navigation/Tabs/TabItems.tsx
4272
- import styled65 from "styled-components";
4273
- import { jsx as jsx87 } from "react/jsx-runtime";
4274
- var StyledBtn = styled65(ClickableElement)`
4275
- scroll-snap-align: start;
4276
- border-radius: ${({ theme: theme2 }) => theme2.radii[3]};
4277
- margin-right: ${({ theme: theme2 }) => theme2.space[1]};
4278
- &:last-of-type {
4279
- margin-right: 0;
4280
- }
4281
- :focus {
4282
- outline: 0;
4283
- }
4284
- `;
4285
- var TabItem = ({ children, selected, onClick }) => /* @__PURE__ */ jsx87(
4286
- StyledBtn,
4199
+ import { jsx as jsx102 } from "react/jsx-runtime";
4200
+ var TabItem = ({ children, selected, onClick }) => /* @__PURE__ */ jsx102(
4201
+ ClickableElement,
4287
4202
  {
4288
- px: "3",
4289
- py: "1",
4203
+ padding: "1 3",
4290
4204
  position: "relative",
4291
4205
  boxShadow: selected ? "base.1" : "none",
4292
4206
  bg: selected ? "background" : "transparent",
4293
4207
  color: selected ? "foreground" : "mutedForeground",
4294
4208
  onClick,
4209
+ borderRadius: 3,
4210
+ mr: { "": 1, "&:last-of-type": 0 },
4211
+ outline: { "&:focus": "0" },
4212
+ style: { scrollSnapAlign: "start" },
4295
4213
  children
4296
4214
  }
4297
4215
  );
4298
- var TabItems = ({ tabs, selected, onChange }) => /* @__PURE__ */ jsx87(Box, { bg: "muted", borderRadius: 4, p: "3px", display: "inline-flex", border: "muted.1", children: tabs.map(({ tab, key }) => /* @__PURE__ */ jsx87(
4216
+ var TabItems = ({ tabs, selected, onChange }) => /* @__PURE__ */ jsx102(Box, { bg: "muted", borderRadius: 4, p: "3px", display: "inline-flex", border: "muted.1", children: tabs.map(({ tab, key }) => /* @__PURE__ */ jsx102(
4299
4217
  TabItem,
4300
4218
  {
4301
4219
  selected: selected === key,
@@ -4306,15 +4224,15 @@ var TabItems = ({ tabs, selected, onChange }) => /* @__PURE__ */ jsx87(Box, { bg
4306
4224
  )) });
4307
4225
 
4308
4226
  // src/navigation/Tabs/TabPane.tsx
4309
- import { jsx as jsx88 } from "react/jsx-runtime";
4227
+ import { jsx as jsx103 } from "react/jsx-runtime";
4310
4228
  var TabPane = (_a) => {
4311
4229
  var _b = _a, { children, selected } = _b, rest = __objRest(_b, ["children", "selected"]);
4312
- return selected ? /* @__PURE__ */ jsx88(Box, __spreadProps(__spreadValues({ px: "4", py: "5" }, rest), { children })) : null;
4230
+ return selected ? /* @__PURE__ */ jsx103(Box, __spreadProps(__spreadValues({ px: "4", py: "5" }, rest), { children })) : null;
4313
4231
  };
4314
4232
  var TabPaneList = ({ tabs, selected }) => {
4315
- return /* @__PURE__ */ jsx88(Box, { children: tabs.map((_a) => {
4233
+ return /* @__PURE__ */ jsx103(Box, { children: tabs.map((_a) => {
4316
4234
  var _b = _a, { key, children } = _b, rest = __objRest(_b, ["key", "children"]);
4317
- return /* @__PURE__ */ jsx88(
4235
+ return /* @__PURE__ */ jsx103(
4318
4236
  TabPane,
4319
4237
  __spreadProps(__spreadValues({
4320
4238
  selected: selected === key
@@ -4327,7 +4245,7 @@ var TabPaneList = ({ tabs, selected }) => {
4327
4245
  };
4328
4246
 
4329
4247
  // src/navigation/Tabs/Tabs.tsx
4330
- import { Fragment as Fragment14, jsx as jsx89, jsxs as jsxs40 } from "react/jsx-runtime";
4248
+ import { Fragment as Fragment14, jsx as jsx104, jsxs as jsxs40 } from "react/jsx-runtime";
4331
4249
  var parseChildrenToTabs = (children) => {
4332
4250
  return Children3.toArray(children).map((node) => {
4333
4251
  if (!isValidElement2(node)) {
@@ -4345,8 +4263,8 @@ var Tabs = ({ children: childrenProp, value }) => {
4345
4263
  let tabs = parseChildrenToTabs(childrenProp);
4346
4264
  let [selected, setSelected] = useState22(value || tabs[0].key);
4347
4265
  return /* @__PURE__ */ jsxs40(Fragment14, { children: [
4348
- /* @__PURE__ */ jsx89(TabItems, { tabs, selected, onChange: setSelected }),
4349
- /* @__PURE__ */ jsx89(TabPaneList, { tabs, selected })
4266
+ /* @__PURE__ */ jsx104(TabItems, { tabs, selected, onChange: setSelected }),
4267
+ /* @__PURE__ */ jsx104(TabPaneList, { tabs, selected })
4350
4268
  ] });
4351
4269
  };
4352
4270
 
@@ -4376,7 +4294,7 @@ export {
4376
4294
  ClickOutside,
4377
4295
  ClickableElement,
4378
4296
  Collapse,
4379
- Container10 as Container,
4297
+ Container6 as Container,
4380
4298
  DarkTheme,
4381
4299
  DatePicker,
4382
4300
  DateRangePicker,
@@ -4387,9 +4305,9 @@ export {
4387
4305
  GlobalStyles,
4388
4306
  Grow,
4389
4307
  ImageComp,
4390
- Input2 as Input,
4308
+ Input,
4391
4309
  InputGroup,
4392
- Label3 as Label,
4310
+ Label2 as Label,
4393
4311
  LightTheme,
4394
4312
  LinearLoader,
4395
4313
  LinearProgress,