design-zystem 1.0.253 → 1.0.254

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.d.mts CHANGED
@@ -249,6 +249,7 @@ interface IconProps {
249
249
  height?: string;
250
250
  backgroundColor?: string;
251
251
  isRound?: boolean;
252
+ shadow?: string;
252
253
  onClick?: () => void;
253
254
  className?: string;
254
255
  style?: CSSProperties;
@@ -296,6 +297,10 @@ interface LinkProps {
296
297
  }
297
298
  declare const Link: ({ children, url, newTab, download, size, variant, ...rest }: LinkProps) => react_jsx_runtime.JSX.Element;
298
299
 
300
+ interface AvatarBadge {
301
+ name: string;
302
+ family?: 'solid' | 'regular' | 'light' | 'brands';
303
+ }
299
304
  interface AvatarProps {
300
305
  name: string;
301
306
  src?: string | null;
@@ -303,8 +308,9 @@ interface AvatarProps {
303
308
  textColor?: string;
304
309
  size?: number;
305
310
  shape?: 'circle' | 'square';
311
+ badge?: AvatarBadge | null;
306
312
  }
307
- declare const Avatar: ({ name, src, backgroundColor, textColor, size, shape, }: AvatarProps) => react_jsx_runtime.JSX.Element;
313
+ declare const Avatar: ({ name, src, backgroundColor, textColor, size, shape, badge, }: AvatarProps) => react_jsx_runtime.JSX.Element;
308
314
 
309
315
  interface ButtonProps extends HTMLAttributes<HTMLButtonElement> {
310
316
  label?: string;
package/dist/index.d.ts CHANGED
@@ -249,6 +249,7 @@ interface IconProps {
249
249
  height?: string;
250
250
  backgroundColor?: string;
251
251
  isRound?: boolean;
252
+ shadow?: string;
252
253
  onClick?: () => void;
253
254
  className?: string;
254
255
  style?: CSSProperties;
@@ -296,6 +297,10 @@ interface LinkProps {
296
297
  }
297
298
  declare const Link: ({ children, url, newTab, download, size, variant, ...rest }: LinkProps) => react_jsx_runtime.JSX.Element;
298
299
 
300
+ interface AvatarBadge {
301
+ name: string;
302
+ family?: 'solid' | 'regular' | 'light' | 'brands';
303
+ }
299
304
  interface AvatarProps {
300
305
  name: string;
301
306
  src?: string | null;
@@ -303,8 +308,9 @@ interface AvatarProps {
303
308
  textColor?: string;
304
309
  size?: number;
305
310
  shape?: 'circle' | 'square';
311
+ badge?: AvatarBadge | null;
306
312
  }
307
- declare const Avatar: ({ name, src, backgroundColor, textColor, size, shape, }: AvatarProps) => react_jsx_runtime.JSX.Element;
313
+ declare const Avatar: ({ name, src, backgroundColor, textColor, size, shape, badge, }: AvatarProps) => react_jsx_runtime.JSX.Element;
308
314
 
309
315
  interface ButtonProps extends HTMLAttributes<HTMLButtonElement> {
310
316
  label?: string;
package/dist/index.js CHANGED
@@ -591,7 +591,8 @@ var shouldForwardProp3 = (prop) => ![
591
591
  "width",
592
592
  "height",
593
593
  "backgroundColor",
594
- "isRound"
594
+ "isRound",
595
+ "shadow"
595
596
  ].includes(prop);
596
597
  var StyledIcon = import_styled_components6.default.i.withConfig({ shouldForwardProp: shouldForwardProp3 })`
597
598
  font-size: ${(props) => textSizes2[props.size] || props.size || "1em"};
@@ -609,6 +610,7 @@ var StyledIcon = import_styled_components6.default.i.withConfig({ shouldForwardP
609
610
  cursor: ${(props) => props.onClick ? "pointer" : "inherit"};
610
611
  background-color: ${(props) => colors[props.backgroundColor] || props.backgroundColor || "transparent"};
611
612
  border-radius: ${(props) => props.isRound ? "50%" : "0"};
613
+ text-shadow: ${(props) => props.shadow ? `0 0 6px ${colors[props.shadow] || props.shadow}` : "none"};
612
614
  `;
613
615
  var Icon = (props) => {
614
616
  const _a = props, {
@@ -1858,6 +1860,11 @@ var Image2 = (_a) => {
1858
1860
 
1859
1861
  // src/Components/Avatar/Avatar.tsx
1860
1862
  var import_jsx_runtime20 = require("react/jsx-runtime");
1863
+ var Wrapper3 = import_styled_components16.default.div`
1864
+ position: relative;
1865
+ display: inline-flex;
1866
+ flex-shrink: 0;
1867
+ `;
1861
1868
  var Container = import_styled_components16.default.div`
1862
1869
  width: ${(props) => props.$size}px;
1863
1870
  height: ${(props) => props.$size}px;
@@ -1869,6 +1876,25 @@ var Container = import_styled_components16.default.div`
1869
1876
  flex-shrink: 0;
1870
1877
  overflow: hidden;
1871
1878
  `;
1879
+ var BadgeSlot = import_styled_components16.default.div`
1880
+ position: absolute;
1881
+ right: 0;
1882
+ bottom: 0;
1883
+ width: ${(props) => Math.round(props.$size * 0.4)}px;
1884
+ height: ${(props) => Math.round(props.$size * 0.4)}px;
1885
+ display: flex;
1886
+ align-items: center;
1887
+ justify-content: center;
1888
+ background-color: ${colors.white};
1889
+ border-radius: 50%;
1890
+ box-shadow: 0 2px 6px ${colors.blue_950}66;
1891
+ line-height: 0;
1892
+ `;
1893
+ var BadgeIcon = import_styled_components16.default.i`
1894
+ color: ${colors.blue_950};
1895
+ font-size: ${(props) => Math.round(props.$size * 0.2)}px;
1896
+ line-height: 2;
1897
+ `;
1872
1898
  var Initials = import_styled_components16.default.span`
1873
1899
  color: ${(props) => props.$textColor};
1874
1900
  font-weight: 600;
@@ -1887,33 +1913,44 @@ var Avatar = ({
1887
1913
  backgroundColor,
1888
1914
  textColor,
1889
1915
  size = 56,
1890
- shape = "circle"
1916
+ shape = "circle",
1917
+ badge
1891
1918
  }) => {
1919
+ var _a;
1892
1920
  const [hasImageError, setHasImageError] = (0, import_react7.useState)(false);
1893
1921
  const resolvedBackground = resolveColor(backgroundColor, colors.grey_300);
1894
1922
  const resolvedText = resolveColor(textColor, colors.dark);
1895
1923
  const initials = getInitials(name);
1896
1924
  const sizePx = `${size}px`;
1897
1925
  const borderRadius = shape === "circle" ? "50%" : "4px";
1898
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1899
- Container,
1900
- {
1901
- $size: size,
1902
- $shape: shape,
1903
- $backgroundColor: resolvedBackground,
1904
- children: src && !hasImageError ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1905
- Image2,
1906
- {
1907
- src,
1908
- alt: name,
1909
- width: sizePx,
1910
- height: sizePx,
1911
- borderRadius,
1912
- onError: () => setHasImageError(true)
1913
- }
1914
- ) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Initials, { $textColor: resolvedText, $size: size, children: initials })
1915
- }
1916
- );
1926
+ return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(Wrapper3, { children: [
1927
+ /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1928
+ Container,
1929
+ {
1930
+ $size: size,
1931
+ $shape: shape,
1932
+ $backgroundColor: resolvedBackground,
1933
+ children: src && !hasImageError ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1934
+ Image2,
1935
+ {
1936
+ src,
1937
+ alt: name,
1938
+ width: sizePx,
1939
+ height: sizePx,
1940
+ borderRadius,
1941
+ onError: () => setHasImageError(true)
1942
+ }
1943
+ ) : /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(Initials, { $textColor: resolvedText, $size: size, children: initials })
1944
+ }
1945
+ ),
1946
+ badge && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(BadgeSlot, { $size: size, children: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
1947
+ BadgeIcon,
1948
+ {
1949
+ $size: size,
1950
+ className: `fa-${(_a = badge.family) != null ? _a : "regular"} fa-${badge.name}`
1951
+ }
1952
+ ) })
1953
+ ] });
1917
1954
  };
1918
1955
 
1919
1956
  // src/Components/Select/Select.tsx
@@ -2751,7 +2788,7 @@ var Radio = ({
2751
2788
  var import_react11 = require("react");
2752
2789
  var import_styled_components21 = __toESM(require("styled-components"));
2753
2790
  var import_jsx_runtime25 = require("react/jsx-runtime");
2754
- var Wrapper3 = import_styled_components21.default.div`
2791
+ var Wrapper4 = import_styled_components21.default.div`
2755
2792
  width: 100%;
2756
2793
  border-radius: 8px;
2757
2794
  overflow: hidden;
@@ -2838,7 +2875,7 @@ var Accordion = ({
2838
2875
  [disabled, activeItemId, isMultiControlled, onItemToggle]
2839
2876
  );
2840
2877
  if (items) {
2841
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Wrapper3, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(ItemWrapper, { $bordered: bordered, children: [
2878
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(Wrapper4, { children: items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(ItemWrapper, { $bordered: bordered, children: [
2842
2879
  /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
2843
2880
  Header,
2844
2881
  {
@@ -3791,7 +3828,7 @@ var Options = ({
3791
3828
  var import_react19 = require("react");
3792
3829
  var import_styled_components37 = __toESM(require("styled-components"));
3793
3830
  var import_jsx_runtime44 = require("react/jsx-runtime");
3794
- var Wrapper4 = import_styled_components37.default.nav`
3831
+ var Wrapper5 = import_styled_components37.default.nav`
3795
3832
  width: 100%;
3796
3833
  display: flex;
3797
3834
  align-items: center;
@@ -3824,7 +3861,7 @@ var Stepper = ({
3824
3861
  size = 28,
3825
3862
  className
3826
3863
  }) => {
3827
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Wrapper4, { "aria-label": "progression", className, children: Array.from({ length: numberOfSteps }, (_, i) => {
3864
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(Wrapper5, { "aria-label": "progression", className, children: Array.from({ length: numberOfSteps }, (_, i) => {
3828
3865
  const isActive = i === current;
3829
3866
  const isCompleted = i < current;
3830
3867
  return /* @__PURE__ */ (0, import_jsx_runtime44.jsxs)(import_react19.Fragment, { children: [
@@ -5390,7 +5427,7 @@ var CountBadge = import_styled_components45.default.span`
5390
5427
  var import_styled_components46 = __toESM(require("styled-components"));
5391
5428
  var import_jsx_runtime57 = require("react/jsx-runtime");
5392
5429
  var clampPercent = (value) => Math.max(0, Math.min(100, value));
5393
- var Wrapper5 = import_styled_components46.default.div`
5430
+ var Wrapper6 = import_styled_components46.default.div`
5394
5431
  display: flex;
5395
5432
  align-items: center;
5396
5433
  gap: 8px;
@@ -5419,7 +5456,7 @@ var ProgressBar = ({
5419
5456
  showLabel = false
5420
5457
  }) => {
5421
5458
  const percent = clampPercent(value);
5422
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Wrapper5, { children: [
5459
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Wrapper6, { children: [
5423
5460
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Track2, { $height: height, $trackColor: trackColor, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Fill, { $height: height, $color: color, $percent: percent }) }),
5424
5461
  showLabel && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Text, { size: "s", weight: "600", children: [
5425
5462
  Math.round(percent),
package/dist/index.mjs CHANGED
@@ -492,7 +492,8 @@ var shouldForwardProp3 = (prop) => ![
492
492
  "width",
493
493
  "height",
494
494
  "backgroundColor",
495
- "isRound"
495
+ "isRound",
496
+ "shadow"
496
497
  ].includes(prop);
497
498
  var StyledIcon = styled6.i.withConfig({ shouldForwardProp: shouldForwardProp3 })`
498
499
  font-size: ${(props) => textSizes2[props.size] || props.size || "1em"};
@@ -510,6 +511,7 @@ var StyledIcon = styled6.i.withConfig({ shouldForwardProp: shouldForwardProp3 })
510
511
  cursor: ${(props) => props.onClick ? "pointer" : "inherit"};
511
512
  background-color: ${(props) => colors[props.backgroundColor] || props.backgroundColor || "transparent"};
512
513
  border-radius: ${(props) => props.isRound ? "50%" : "0"};
514
+ text-shadow: ${(props) => props.shadow ? `0 0 6px ${colors[props.shadow] || props.shadow}` : "none"};
513
515
  `;
514
516
  var Icon = (props) => {
515
517
  const _a = props, {
@@ -1758,7 +1760,12 @@ var Image2 = (_a) => {
1758
1760
  };
1759
1761
 
1760
1762
  // src/Components/Avatar/Avatar.tsx
1761
- import { jsx as jsx20 } from "react/jsx-runtime";
1763
+ import { jsx as jsx20, jsxs as jsxs8 } from "react/jsx-runtime";
1764
+ var Wrapper3 = styled16.div`
1765
+ position: relative;
1766
+ display: inline-flex;
1767
+ flex-shrink: 0;
1768
+ `;
1762
1769
  var Container = styled16.div`
1763
1770
  width: ${(props) => props.$size}px;
1764
1771
  height: ${(props) => props.$size}px;
@@ -1770,6 +1777,25 @@ var Container = styled16.div`
1770
1777
  flex-shrink: 0;
1771
1778
  overflow: hidden;
1772
1779
  `;
1780
+ var BadgeSlot = styled16.div`
1781
+ position: absolute;
1782
+ right: 0;
1783
+ bottom: 0;
1784
+ width: ${(props) => Math.round(props.$size * 0.4)}px;
1785
+ height: ${(props) => Math.round(props.$size * 0.4)}px;
1786
+ display: flex;
1787
+ align-items: center;
1788
+ justify-content: center;
1789
+ background-color: ${colors.white};
1790
+ border-radius: 50%;
1791
+ box-shadow: 0 2px 6px ${colors.blue_950}66;
1792
+ line-height: 0;
1793
+ `;
1794
+ var BadgeIcon = styled16.i`
1795
+ color: ${colors.blue_950};
1796
+ font-size: ${(props) => Math.round(props.$size * 0.2)}px;
1797
+ line-height: 2;
1798
+ `;
1773
1799
  var Initials = styled16.span`
1774
1800
  color: ${(props) => props.$textColor};
1775
1801
  font-weight: 600;
@@ -1788,40 +1814,51 @@ var Avatar = ({
1788
1814
  backgroundColor,
1789
1815
  textColor,
1790
1816
  size = 56,
1791
- shape = "circle"
1817
+ shape = "circle",
1818
+ badge
1792
1819
  }) => {
1820
+ var _a;
1793
1821
  const [hasImageError, setHasImageError] = useState4(false);
1794
1822
  const resolvedBackground = resolveColor(backgroundColor, colors.grey_300);
1795
1823
  const resolvedText = resolveColor(textColor, colors.dark);
1796
1824
  const initials = getInitials(name);
1797
1825
  const sizePx = `${size}px`;
1798
1826
  const borderRadius = shape === "circle" ? "50%" : "4px";
1799
- return /* @__PURE__ */ jsx20(
1800
- Container,
1801
- {
1802
- $size: size,
1803
- $shape: shape,
1804
- $backgroundColor: resolvedBackground,
1805
- children: src && !hasImageError ? /* @__PURE__ */ jsx20(
1806
- Image2,
1807
- {
1808
- src,
1809
- alt: name,
1810
- width: sizePx,
1811
- height: sizePx,
1812
- borderRadius,
1813
- onError: () => setHasImageError(true)
1814
- }
1815
- ) : /* @__PURE__ */ jsx20(Initials, { $textColor: resolvedText, $size: size, children: initials })
1816
- }
1817
- );
1827
+ return /* @__PURE__ */ jsxs8(Wrapper3, { children: [
1828
+ /* @__PURE__ */ jsx20(
1829
+ Container,
1830
+ {
1831
+ $size: size,
1832
+ $shape: shape,
1833
+ $backgroundColor: resolvedBackground,
1834
+ children: src && !hasImageError ? /* @__PURE__ */ jsx20(
1835
+ Image2,
1836
+ {
1837
+ src,
1838
+ alt: name,
1839
+ width: sizePx,
1840
+ height: sizePx,
1841
+ borderRadius,
1842
+ onError: () => setHasImageError(true)
1843
+ }
1844
+ ) : /* @__PURE__ */ jsx20(Initials, { $textColor: resolvedText, $size: size, children: initials })
1845
+ }
1846
+ ),
1847
+ badge && /* @__PURE__ */ jsx20(BadgeSlot, { $size: size, children: /* @__PURE__ */ jsx20(
1848
+ BadgeIcon,
1849
+ {
1850
+ $size: size,
1851
+ className: `fa-${(_a = badge.family) != null ? _a : "regular"} fa-${badge.name}`
1852
+ }
1853
+ ) })
1854
+ ] });
1818
1855
  };
1819
1856
 
1820
1857
  // src/Components/Select/Select.tsx
1821
1858
  import { useState as useState5, useRef as useRef5, useEffect as useEffect5 } from "react";
1822
1859
  import ReactDOM from "react-dom";
1823
1860
  import styled17 from "styled-components";
1824
- import { jsx as jsx21, jsxs as jsxs8 } from "react/jsx-runtime";
1861
+ import { jsx as jsx21, jsxs as jsxs9 } from "react/jsx-runtime";
1825
1862
  var StyledContainer = styled17.div.withConfig({
1826
1863
  shouldForwardProp: (prop) => !["width", "noFlex", "label"].includes(prop)
1827
1864
  })`
@@ -2022,14 +2059,14 @@ var Select = ({
2022
2059
  document.removeEventListener("mousedown", handleClickOutside);
2023
2060
  };
2024
2061
  }, [isOpen]);
2025
- return /* @__PURE__ */ jsxs8(StyledContainer, { width, noFlex, label, children: [
2026
- /* @__PURE__ */ jsxs8(Text, { size: "xs", children: [
2062
+ return /* @__PURE__ */ jsxs9(StyledContainer, { width, noFlex, label, children: [
2063
+ /* @__PURE__ */ jsxs9(Text, { size: "xs", children: [
2027
2064
  label,
2028
2065
  " ",
2029
2066
  required && /* @__PURE__ */ jsx21(Text, { style: { color: "red" }, children: "*" })
2030
2067
  ] }),
2031
- /* @__PURE__ */ jsxs8(SelectWrapper, { ref: containerRef, onKeyDown: handleKeyDown, tabIndex: 0, children: [
2032
- /* @__PURE__ */ jsxs8(
2068
+ /* @__PURE__ */ jsxs9(SelectWrapper, { ref: containerRef, onKeyDown: handleKeyDown, tabIndex: 0, children: [
2069
+ /* @__PURE__ */ jsxs9(
2033
2070
  SelectInput,
2034
2071
  {
2035
2072
  height,
@@ -2044,7 +2081,7 @@ var Select = ({
2044
2081
  }
2045
2082
  ),
2046
2083
  isOpen && ReactDOM.createPortal(
2047
- /* @__PURE__ */ jsxs8(
2084
+ /* @__PURE__ */ jsxs9(
2048
2085
  Dropdown,
2049
2086
  {
2050
2087
  ref: dropdownRef,
@@ -2093,7 +2130,7 @@ import {
2093
2130
  useState as useState6
2094
2131
  } from "react";
2095
2132
  import styled18 from "styled-components";
2096
- import { Fragment as Fragment3, jsx as jsx22, jsxs as jsxs9 } from "react/jsx-runtime";
2133
+ import { Fragment as Fragment3, jsx as jsx22, jsxs as jsxs10 } from "react/jsx-runtime";
2097
2134
  var shouldForwardProp8 = (prop) => ![
2098
2135
  "width",
2099
2136
  "fullWidth",
@@ -2424,20 +2461,20 @@ var Input = forwardRef2((props, ref) => {
2424
2461
  }
2425
2462
  }
2426
2463
  };
2427
- return /* @__PURE__ */ jsxs9(
2464
+ return /* @__PURE__ */ jsxs10(
2428
2465
  StyledContainer2,
2429
2466
  __spreadProps(__spreadValues({
2430
2467
  noFlex
2431
2468
  }, forwardProps), {
2432
2469
  children: [
2433
- label && /* @__PURE__ */ jsxs9(Text_default, { size: "xs", children: [
2470
+ label && /* @__PURE__ */ jsxs10(Text_default, { size: "xs", children: [
2434
2471
  label,
2435
2472
  " ",
2436
2473
  required && /* @__PURE__ */ jsx22("span", { style: { color: "red" }, children: "*" })
2437
2474
  ] }),
2438
- /* @__PURE__ */ jsxs9(InputWrapper, { children: [
2475
+ /* @__PURE__ */ jsxs10(InputWrapper, { children: [
2439
2476
  isSearch && /* @__PURE__ */ jsx22(SearchIconLeft, { children: /* @__PURE__ */ jsx22(Icon_default, { name: "magnifying-glass", size: "s", color: "grey_500" }) }),
2440
- isDate ? /* @__PURE__ */ jsxs9(Fragment3, { children: [
2477
+ isDate ? /* @__PURE__ */ jsxs10(Fragment3, { children: [
2441
2478
  /* @__PURE__ */ jsx22(
2442
2479
  StyledInput,
2443
2480
  __spreadProps(__spreadValues({
@@ -2535,7 +2572,7 @@ Input.displayName = "Input";
2535
2572
 
2536
2573
  // src/Components/Checkbox/Checkbox.tsx
2537
2574
  import styled19 from "styled-components";
2538
- import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
2575
+ import { jsx as jsx23, jsxs as jsxs11 } from "react/jsx-runtime";
2539
2576
  var CheckboxContainer = styled19.div`
2540
2577
  display: flex;
2541
2578
  flex-direction: row;
@@ -2562,7 +2599,7 @@ var Checkbox = ({
2562
2599
  variant = "blue_700"
2563
2600
  }) => {
2564
2601
  const uniqueId = `checkbox-${Math.random().toString(36).substr(2, 9)}`;
2565
- return /* @__PURE__ */ jsxs10(CheckboxContainer, { children: [
2602
+ return /* @__PURE__ */ jsxs11(CheckboxContainer, { children: [
2566
2603
  /* @__PURE__ */ jsx23(
2567
2604
  StyledCheckbox,
2568
2605
  {
@@ -2580,7 +2617,7 @@ var Checkbox = ({
2580
2617
  // src/Components/Radio/Radio.tsx
2581
2618
  import { useId } from "react";
2582
2619
  import styled20 from "styled-components";
2583
- import { jsx as jsx24, jsxs as jsxs11 } from "react/jsx-runtime";
2620
+ import { jsx as jsx24, jsxs as jsxs12 } from "react/jsx-runtime";
2584
2621
  var RadioContainer = styled20.div`
2585
2622
  display: flex;
2586
2623
  flex-direction: row;
@@ -2637,7 +2674,7 @@ var Radio = ({
2637
2674
  const color = colors[variant] || colors.blue_950;
2638
2675
  const generatedId = useId();
2639
2676
  const uniqueId = `radio-${generatedId}`;
2640
- return /* @__PURE__ */ jsx24(RadioContainer, { children: /* @__PURE__ */ jsxs11(StyledLabel2, { htmlFor: uniqueId, disabled, children: [
2677
+ return /* @__PURE__ */ jsx24(RadioContainer, { children: /* @__PURE__ */ jsxs12(StyledLabel2, { htmlFor: uniqueId, disabled, children: [
2641
2678
  /* @__PURE__ */ jsx24(
2642
2679
  HiddenRadio,
2643
2680
  {
@@ -2657,8 +2694,8 @@ var Radio = ({
2657
2694
  // src/Components/Accordion/Accordion.tsx
2658
2695
  import { useState as useState7, useCallback as useCallback2 } from "react";
2659
2696
  import styled21 from "styled-components";
2660
- import { jsx as jsx25, jsxs as jsxs12 } from "react/jsx-runtime";
2661
- var Wrapper3 = styled21.div`
2697
+ import { jsx as jsx25, jsxs as jsxs13 } from "react/jsx-runtime";
2698
+ var Wrapper4 = styled21.div`
2662
2699
  width: 100%;
2663
2700
  border-radius: 8px;
2664
2701
  overflow: hidden;
@@ -2745,8 +2782,8 @@ var Accordion = ({
2745
2782
  [disabled, activeItemId, isMultiControlled, onItemToggle]
2746
2783
  );
2747
2784
  if (items) {
2748
- return /* @__PURE__ */ jsx25(Wrapper3, { children: items.map((item) => /* @__PURE__ */ jsxs12(ItemWrapper, { $bordered: bordered, children: [
2749
- /* @__PURE__ */ jsxs12(
2785
+ return /* @__PURE__ */ jsx25(Wrapper4, { children: items.map((item) => /* @__PURE__ */ jsxs13(ItemWrapper, { $bordered: bordered, children: [
2786
+ /* @__PURE__ */ jsxs13(
2750
2787
  Header,
2751
2788
  {
2752
2789
  $disabled: disabled,
@@ -2770,8 +2807,8 @@ var Accordion = ({
2770
2807
  /* @__PURE__ */ jsx25(Collapse, { open: activeItemId === item.id, maxHeight, children: /* @__PURE__ */ jsx25(ContentPadding, { children: item.content }) })
2771
2808
  ] }, item.id)) });
2772
2809
  }
2773
- return /* @__PURE__ */ jsxs12(ItemWrapper, { $bordered: bordered, children: [
2774
- /* @__PURE__ */ jsxs12(
2810
+ return /* @__PURE__ */ jsxs13(ItemWrapper, { $bordered: bordered, children: [
2811
+ /* @__PURE__ */ jsxs13(
2775
2812
  Header,
2776
2813
  {
2777
2814
  $disabled: disabled,
@@ -2801,7 +2838,7 @@ var Accordion = ({
2801
2838
  // src/Components/ColorPicker/ColorPicker.tsx
2802
2839
  import { forwardRef as forwardRef3, useState as useState8, useRef as useRef7, useEffect as useEffect7 } from "react";
2803
2840
  import styled22 from "styled-components";
2804
- import { jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
2841
+ import { jsx as jsx26, jsxs as jsxs14 } from "react/jsx-runtime";
2805
2842
  var SIZES = {
2806
2843
  s: { swatch: 28, fontSize: 12, inputPadding: "6px 10px" },
2807
2844
  m: { swatch: 36, fontSize: 14, inputPadding: "8px 12px" },
@@ -2904,9 +2941,9 @@ var ColorPicker = forwardRef3(
2904
2941
  }
2905
2942
  onChange == null ? void 0 : onChange(newColor);
2906
2943
  };
2907
- return /* @__PURE__ */ jsxs13(Container2, { $disabled: disabled, children: [
2944
+ return /* @__PURE__ */ jsxs14(Container2, { $disabled: disabled, children: [
2908
2945
  label && /* @__PURE__ */ jsx26(Text, { size: TEXT_SIZE_MAP[size], weight: "600", children: label }),
2909
- /* @__PURE__ */ jsxs13(InputRow, { children: [
2946
+ /* @__PURE__ */ jsxs14(InputRow, { children: [
2910
2947
  /* @__PURE__ */ jsx26(SwatchLabel, { $disabled: disabled, $size: dims.swatch, children: /* @__PURE__ */ jsx26(Swatch, { $color: currentColor, children: /* @__PURE__ */ jsx26(
2911
2948
  HiddenInput,
2912
2949
  {
@@ -2937,7 +2974,7 @@ ColorPicker.displayName = "ColorPicker";
2937
2974
  // src/Components/SliderInput/SliderInput.tsx
2938
2975
  import { forwardRef as forwardRef4 } from "react";
2939
2976
  import styled23 from "styled-components";
2940
- import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
2977
+ import { jsx as jsx27, jsxs as jsxs15 } from "react/jsx-runtime";
2941
2978
  var Container3 = styled23.label`
2942
2979
  display: flex;
2943
2980
  flex-direction: column;
@@ -3036,9 +3073,9 @@ var SliderInput = forwardRef4(
3036
3073
  const handleChange = (e) => {
3037
3074
  onChange == null ? void 0 : onChange(Number(e.target.value), e);
3038
3075
  };
3039
- return /* @__PURE__ */ jsxs14(Container3, { $disabled: disabled, htmlFor: id, children: [
3076
+ return /* @__PURE__ */ jsxs15(Container3, { $disabled: disabled, htmlFor: id, children: [
3040
3077
  label && /* @__PURE__ */ jsx27(Text, { size: "xs", color: "grey_600", children: label }),
3041
- /* @__PURE__ */ jsxs14(TrackWrapper, { children: [
3078
+ /* @__PURE__ */ jsxs15(TrackWrapper, { children: [
3042
3079
  showValue && /* @__PURE__ */ jsx27(ValueBubble, { $left: progress, children: /* @__PURE__ */ jsx27(Text, { size: "xs", weight: "600", children: display(current) }) }),
3043
3080
  /* @__PURE__ */ jsx27(
3044
3081
  TrackInput,
@@ -3056,7 +3093,7 @@ var SliderInput = forwardRef4(
3056
3093
  }
3057
3094
  )
3058
3095
  ] }),
3059
- showValue && /* @__PURE__ */ jsxs14(MinMaxRow, { children: [
3096
+ showValue && /* @__PURE__ */ jsxs15(MinMaxRow, { children: [
3060
3097
  /* @__PURE__ */ jsx27(Text, { size: "xs", color: "grey_600", children: display(min) }),
3061
3098
  /* @__PURE__ */ jsx27(Text, { size: "xs", color: "grey_600", children: display(max) })
3062
3099
  ] })
@@ -3307,7 +3344,7 @@ var TableCell = (props) => {
3307
3344
  // src/Components/Table/TableHeaderCell/TableHeaderCell.tsx
3308
3345
  import { useState as useState9 } from "react";
3309
3346
  import styled31 from "styled-components";
3310
- import { jsx as jsx35, jsxs as jsxs15 } from "react/jsx-runtime";
3347
+ import { jsx as jsx35, jsxs as jsxs16 } from "react/jsx-runtime";
3311
3348
  var shouldForwardPropTableHeaderCell = (prop) => !["useSort", "isSort", "flexGrow", "flexShrink", "width"].includes(prop);
3312
3349
  var StyledTableHeaderCell = styled31.div.withConfig({
3313
3350
  shouldForwardProp: shouldForwardPropTableHeaderCell
@@ -3360,7 +3397,7 @@ var TableHeaderCell = (props) => {
3360
3397
  if (useSort) setHovered(false);
3361
3398
  (_a2 = otherProps.onMouseLeave) == null ? void 0 : _a2.call(otherProps, e);
3362
3399
  },
3363
- children: useSort ? /* @__PURE__ */ jsxs15(SortingButton, { children: [
3400
+ children: useSort ? /* @__PURE__ */ jsxs16(SortingButton, { children: [
3364
3401
  children,
3365
3402
  showArrow && /* @__PURE__ */ jsx35(SortArrow, { $opacity: arrowOpacity, children: arrowChar })
3366
3403
  ] }) : children
@@ -3464,7 +3501,7 @@ var TableFooterCell = (props) => {
3464
3501
  };
3465
3502
 
3466
3503
  // src/Components/Table/SkeletonRow/SkeletonRow.tsx
3467
- import { Fragment as Fragment4, jsx as jsx40, jsxs as jsxs16 } from "react/jsx-runtime";
3504
+ import { Fragment as Fragment4, jsx as jsx40, jsxs as jsxs17 } from "react/jsx-runtime";
3468
3505
  var style = `
3469
3506
  .skeleton-loader {
3470
3507
  width: 100%;
@@ -3483,7 +3520,7 @@ var style = `
3483
3520
  }
3484
3521
  }
3485
3522
  `;
3486
- var SkeletonRow = ({ columns = 9 }) => /* @__PURE__ */ jsxs16(Fragment4, { children: [
3523
+ var SkeletonRow = ({ columns = 9 }) => /* @__PURE__ */ jsxs17(Fragment4, { children: [
3487
3524
  /* @__PURE__ */ jsx40("style", { children: style }),
3488
3525
  /* @__PURE__ */ jsx40(TableRow, { children: Array.from({ length: columns }).map((_, index) => /* @__PURE__ */ jsx40(TableCell, { children: /* @__PURE__ */ jsx40("div", { className: "skeleton-loader" }) }, index)) })
3489
3526
  ] });
@@ -3491,7 +3528,7 @@ var SkeletonRow = ({ columns = 9 }) => /* @__PURE__ */ jsxs16(Fragment4, { child
3491
3528
  // src/Components/Switch/Switch.tsx
3492
3529
  import { forwardRef as forwardRef7 } from "react";
3493
3530
  import styled36, { css } from "styled-components";
3494
- import { jsx as jsx41, jsxs as jsxs17 } from "react/jsx-runtime";
3531
+ import { jsx as jsx41, jsxs as jsxs18 } from "react/jsx-runtime";
3495
3532
  var BASE = {
3496
3533
  s: { w: 36, h: 20, knob: 16, pad: 2 },
3497
3534
  m: { w: 48, h: 28, knob: 24, pad: 2 },
@@ -3592,7 +3629,7 @@ var Switch = forwardRef7(
3592
3629
  if (disabled) return;
3593
3630
  onChange == null ? void 0 : onChange(!!e.target.checked, e);
3594
3631
  };
3595
- return /* @__PURE__ */ jsxs17(Container4, { $disabled: disabled, htmlFor: id, children: [
3632
+ return /* @__PURE__ */ jsxs18(Container4, { $disabled: disabled, htmlFor: id, children: [
3596
3633
  /* @__PURE__ */ jsx41(
3597
3634
  HiddenCheckbox,
3598
3635
  __spreadValues({
@@ -3627,7 +3664,7 @@ var CardSkeleton = () => {
3627
3664
 
3628
3665
  // src/Components/Options/Options.tsx
3629
3666
  import { useState as useState10, useEffect as useEffect8 } from "react";
3630
- import { jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
3667
+ import { jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
3631
3668
  var Options = ({
3632
3669
  icon,
3633
3670
  options,
@@ -3686,7 +3723,7 @@ var Options = ({
3686
3723
  e.currentTarget.style.transform = "translateY(0px)";
3687
3724
  }
3688
3725
  },
3689
- children: /* @__PURE__ */ jsxs18(Row_default, { gap: "8", alignItems: "center", justifyContent: "center", children: [
3726
+ children: /* @__PURE__ */ jsxs19(Row_default, { gap: "8", alignItems: "center", justifyContent: "center", children: [
3690
3727
  /* @__PURE__ */ jsx43(Col_default, { children: /* @__PURE__ */ jsx43(Icon_default, { name: icon, type: "regular", color: "#414652" }) }),
3691
3728
  /* @__PURE__ */ jsx43(Col_default, { children: label })
3692
3729
  ] })
@@ -3697,8 +3734,8 @@ var Options = ({
3697
3734
  // src/Components/Stepper/Stepper.tsx
3698
3735
  import { Fragment as Fragment5 } from "react";
3699
3736
  import styled37 from "styled-components";
3700
- import { jsx as jsx44, jsxs as jsxs19 } from "react/jsx-runtime";
3701
- var Wrapper4 = styled37.nav`
3737
+ import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
3738
+ var Wrapper5 = styled37.nav`
3702
3739
  width: 100%;
3703
3740
  display: flex;
3704
3741
  align-items: center;
@@ -3731,10 +3768,10 @@ var Stepper = ({
3731
3768
  size = 28,
3732
3769
  className
3733
3770
  }) => {
3734
- return /* @__PURE__ */ jsx44(Wrapper4, { "aria-label": "progression", className, children: Array.from({ length: numberOfSteps }, (_, i) => {
3771
+ return /* @__PURE__ */ jsx44(Wrapper5, { "aria-label": "progression", className, children: Array.from({ length: numberOfSteps }, (_, i) => {
3735
3772
  const isActive = i === current;
3736
3773
  const isCompleted = i < current;
3737
- return /* @__PURE__ */ jsxs19(Fragment5, { children: [
3774
+ return /* @__PURE__ */ jsxs20(Fragment5, { children: [
3738
3775
  /* @__PURE__ */ jsx44(
3739
3776
  Circle,
3740
3777
  {
@@ -3762,7 +3799,7 @@ import {
3762
3799
  cloneElement
3763
3800
  } from "react";
3764
3801
  import styled38 from "styled-components";
3765
- import { jsx as jsx45, jsxs as jsxs20 } from "react/jsx-runtime";
3802
+ import { jsx as jsx45, jsxs as jsxs21 } from "react/jsx-runtime";
3766
3803
  var TOKENS = {
3767
3804
  fontFamily: '"Open Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif'
3768
3805
  };
@@ -3953,7 +3990,7 @@ var Tabs = (_a) => {
3953
3990
  const isPillsFullWidth = variant === "pills" && align === "start";
3954
3991
  const rendered = useMemo(() => {
3955
3992
  if (items && items.length) {
3956
- return items.map((it) => /* @__PURE__ */ jsxs20(
3993
+ return items.map((it) => /* @__PURE__ */ jsxs21(
3957
3994
  Tab,
3958
3995
  {
3959
3996
  id: it.id,
@@ -3985,7 +4022,7 @@ var Tabs = (_a) => {
3985
4022
  });
3986
4023
  });
3987
4024
  }, [items, children, value, variant, isPillsFullWidth, handleSelect]);
3988
- return /* @__PURE__ */ jsxs20(
4025
+ return /* @__PURE__ */ jsxs21(
3989
4026
  TabsRoot,
3990
4027
  __spreadProps(__spreadValues({
3991
4028
  ref: rootRef,
@@ -4006,7 +4043,7 @@ var Tabs = (_a) => {
4006
4043
  // src/Components/MultiSelect/MultiSelect.tsx
4007
4044
  import { useState as useState12, useRef as useRef9, useEffect as useEffect10 } from "react";
4008
4045
  import styled39 from "styled-components";
4009
- import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
4046
+ import { jsx as jsx46, jsxs as jsxs22 } from "react/jsx-runtime";
4010
4047
  var Container5 = styled39.div`
4011
4048
  position: relative;
4012
4049
  display: inline-block;
@@ -4067,7 +4104,7 @@ var MultiSelect = ({
4067
4104
  document.addEventListener("mousedown", handleClickOutside);
4068
4105
  return () => document.removeEventListener("mousedown", handleClickOutside);
4069
4106
  }, []);
4070
- return /* @__PURE__ */ jsxs21(Container5, { ref: dropdownRef, children: [
4107
+ return /* @__PURE__ */ jsxs22(Container5, { ref: dropdownRef, children: [
4071
4108
  /* @__PURE__ */ jsx46(
4072
4109
  Button,
4073
4110
  {
@@ -4078,10 +4115,10 @@ var MultiSelect = ({
4078
4115
  disabled
4079
4116
  }
4080
4117
  ),
4081
- isOpen && /* @__PURE__ */ jsxs21(Dropdown2, { $width: width, $align: align, children: [
4118
+ isOpen && /* @__PURE__ */ jsxs22(Dropdown2, { $width: width, $align: align, children: [
4082
4119
  options.map(({ label: optLabel, value }) => {
4083
4120
  const active = selectedValues.includes(value);
4084
- return /* @__PURE__ */ jsxs21(Item, { onClick: () => toggleOption(value), children: [
4121
+ return /* @__PURE__ */ jsxs22(Item, { onClick: () => toggleOption(value), children: [
4085
4122
  /* @__PURE__ */ jsx46(
4086
4123
  Icon,
4087
4124
  {
@@ -4101,7 +4138,7 @@ var MultiSelect = ({
4101
4138
 
4102
4139
  // src/Components/DatePicker/DatePicker.tsx
4103
4140
  import { useState as useState13, useRef as useRef10, useEffect as useEffect11 } from "react";
4104
- import { jsx as jsx47, jsxs as jsxs22 } from "react/jsx-runtime";
4141
+ import { jsx as jsx47, jsxs as jsxs23 } from "react/jsx-runtime";
4105
4142
  var DatePicker = ({ onChange, size = "s" }) => {
4106
4143
  const [isOpen, setIsOpen] = useState13(false);
4107
4144
  const [startDate, setStartDate] = useState13(null);
@@ -4192,7 +4229,7 @@ var DatePicker = ({ onChange, size = "s" }) => {
4192
4229
  "D\xE9cembre"
4193
4230
  ];
4194
4231
  const dayNames = ["Lun", "Mar", "Mer", "Jeu", "Ven", "Sam", "Dim"];
4195
- return /* @__PURE__ */ jsxs22("div", { className: "date-picker-container", ref, children: [
4232
+ return /* @__PURE__ */ jsxs23("div", { className: "date-picker-container", ref, children: [
4196
4233
  /* @__PURE__ */ jsx47(Button, { onClick: toggleCalendar, size, iconLeft: "calendar" }),
4197
4234
  isFiltered && /* @__PURE__ */ jsx47(
4198
4235
  "span",
@@ -4215,8 +4252,8 @@ var DatePicker = ({ onChange, size = "s" }) => {
4215
4252
  children: /* @__PURE__ */ jsx47(Icon, { name: "xmark", size: "s", color: colors.white })
4216
4253
  }
4217
4254
  ),
4218
- isOpen && /* @__PURE__ */ jsx47("div", { className: "date-picker-popup", children: /* @__PURE__ */ jsx47("div", { className: "date-picker-content", children: /* @__PURE__ */ jsxs22("div", { className: "calendar-container", children: [
4219
- /* @__PURE__ */ jsxs22("div", { className: "calendar-header", children: [
4255
+ isOpen && /* @__PURE__ */ jsx47("div", { className: "date-picker-popup", children: /* @__PURE__ */ jsx47("div", { className: "date-picker-content", children: /* @__PURE__ */ jsxs23("div", { className: "calendar-container", children: [
4256
+ /* @__PURE__ */ jsxs23("div", { className: "calendar-header", children: [
4220
4257
  /* @__PURE__ */ jsx47(
4221
4258
  "button",
4222
4259
  {
@@ -4243,7 +4280,7 @@ var DatePicker = ({ onChange, size = "s" }) => {
4243
4280
  )
4244
4281
  }
4245
4282
  ),
4246
- /* @__PURE__ */ jsxs22("h3", { className: "calendar-month-title", children: [
4283
+ /* @__PURE__ */ jsxs23("h3", { className: "calendar-month-title", children: [
4247
4284
  monthNames[currentMonth.getMonth()],
4248
4285
  " ",
4249
4286
  currentMonth.getFullYear()
@@ -4298,7 +4335,7 @@ var DatePicker = ({ onChange, size = "s" }) => {
4298
4335
  index
4299
4336
  );
4300
4337
  }) }),
4301
- startDate && /* @__PURE__ */ jsx47("div", { className: "selected-dates-display", children: /* @__PURE__ */ jsx47("div", { className: "selected-dates-text", children: endDate ? /* @__PURE__ */ jsxs22("span", { children: [
4338
+ startDate && /* @__PURE__ */ jsx47("div", { className: "selected-dates-display", children: /* @__PURE__ */ jsx47("div", { className: "selected-dates-text", children: endDate ? /* @__PURE__ */ jsxs23("span", { children: [
4302
4339
  /* @__PURE__ */ jsx47("strong", { children: "Du:" }),
4303
4340
  " ",
4304
4341
  formatDate(startDate, "weekday", "fr"),
@@ -4306,7 +4343,7 @@ var DatePicker = ({ onChange, size = "s" }) => {
4306
4343
  /* @__PURE__ */ jsx47("strong", { children: "Au:" }),
4307
4344
  " ",
4308
4345
  formatDate(endDate, "weekday", "fr")
4309
- ] }) : /* @__PURE__ */ jsxs22("span", { children: [
4346
+ ] }) : /* @__PURE__ */ jsxs23("span", { children: [
4310
4347
  /* @__PURE__ */ jsx47("strong", { children: "D\xE9but:" }),
4311
4348
  " ",
4312
4349
  formatDate(startDate, "weekday", "fr"),
@@ -4320,7 +4357,7 @@ var DatePicker = ({ onChange, size = "s" }) => {
4320
4357
  // src/Components/IconTabs/IconTabs.tsx
4321
4358
  import { useState as useState14, useEffect as useEffect12, useRef as useRef11 } from "react";
4322
4359
  import styled40, { css as css2 } from "styled-components";
4323
- import { jsx as jsx48, jsxs as jsxs23 } from "react/jsx-runtime";
4360
+ import { jsx as jsx48, jsxs as jsxs24 } from "react/jsx-runtime";
4324
4361
  var TabsContainer = styled40.div`
4325
4362
  display: flex;
4326
4363
  flex-direction: column;
@@ -4403,8 +4440,8 @@ var IconTabs = ({
4403
4440
  sliderRef.current.style.backgroundColor = colors[selectedColor];
4404
4441
  }
4405
4442
  }, [selectedTab, selectedColor]);
4406
- return /* @__PURE__ */ jsxs23(TabsContainer, { children: [
4407
- /* @__PURE__ */ jsxs23(IconsRow, { children: [
4443
+ return /* @__PURE__ */ jsxs24(TabsContainer, { children: [
4444
+ /* @__PURE__ */ jsxs24(IconsRow, { children: [
4408
4445
  items.map((item, index) => /* @__PURE__ */ jsx48(
4409
4446
  Tab2,
4410
4447
  {
@@ -4441,7 +4478,7 @@ import {
4441
4478
  } from "react";
4442
4479
  import { createPortal } from "react-dom";
4443
4480
  import styled41 from "styled-components";
4444
- import { jsx as jsx49, jsxs as jsxs24 } from "react/jsx-runtime";
4481
+ import { jsx as jsx49, jsxs as jsxs25 } from "react/jsx-runtime";
4445
4482
  var PopoverWrapper = styled41.div`
4446
4483
  position: relative;
4447
4484
  display: inline-block;
@@ -4549,7 +4586,7 @@ var Popover = ({
4549
4586
  left: menuPosition.left,
4550
4587
  transform: "translateX(-100%)"
4551
4588
  };
4552
- return /* @__PURE__ */ jsxs24(PopoverWrapper, { ref, children: [
4589
+ return /* @__PURE__ */ jsxs25(PopoverWrapper, { ref, children: [
4553
4590
  /* @__PURE__ */ jsx49(PopoverTrigger, { onClick: () => setOpen((o) => !o), children }),
4554
4591
  open && createPortal(
4555
4592
  /* @__PURE__ */ jsx49(PopoverMenu, { ref: menuRef, style: menuStyle, children: items.map((item, idx) => /* @__PURE__ */ jsx49(
@@ -4571,7 +4608,7 @@ var Popover = ({
4571
4608
  };
4572
4609
 
4573
4610
  // src/Components/MetricCard/MetricCard.tsx
4574
- import { jsx as jsx50, jsxs as jsxs25 } from "react/jsx-runtime";
4611
+ import { jsx as jsx50, jsxs as jsxs26 } from "react/jsx-runtime";
4575
4612
  var MetricCard = ({
4576
4613
  icon,
4577
4614
  title,
@@ -4595,7 +4632,7 @@ var MetricCard = ({
4595
4632
  cursor: onClick ? "pointer" : "default"
4596
4633
  },
4597
4634
  onClick,
4598
- children: /* @__PURE__ */ jsxs25(Row, { alignItems: "center", gap: "12", fullWidth: true, children: [
4635
+ children: /* @__PURE__ */ jsxs26(Row, { alignItems: "center", gap: "12", fullWidth: true, children: [
4599
4636
  /* @__PURE__ */ jsx50(
4600
4637
  Box,
4601
4638
  {
@@ -4610,12 +4647,12 @@ var MetricCard = ({
4610
4647
  children: /* @__PURE__ */ jsx50(Icon, { name: icon, size: "m", color: iconColor, family: "regular" })
4611
4648
  }
4612
4649
  ),
4613
- contentLayout === "row" ? /* @__PURE__ */ jsxs25(Row, { gap: "6", alignItems: "center", children: [
4650
+ contentLayout === "row" ? /* @__PURE__ */ jsxs26(Row, { gap: "6", alignItems: "center", children: [
4614
4651
  /* @__PURE__ */ jsx50(Text, { size: "s", weight: "bold", variant: valueColor || "grey_600", children: value }),
4615
4652
  /* @__PURE__ */ jsx50(Text, { size: "s", variant: "grey_600", children: title })
4616
- ] }) : /* @__PURE__ */ jsxs25(Col, { gap: "4", children: [
4653
+ ] }) : /* @__PURE__ */ jsxs26(Col, { gap: "4", children: [
4617
4654
  /* @__PURE__ */ jsx50(Text, { size: "s", variant: "grey_600", children: title }),
4618
- /* @__PURE__ */ jsxs25(Row, { gap: "6", alignItems: "baseline", children: [
4655
+ /* @__PURE__ */ jsxs26(Row, { gap: "6", alignItems: "baseline", children: [
4619
4656
  /* @__PURE__ */ jsx50(Text, { size: "s", weight: "bold", variant: valueColor || "grey_600", children: value }),
4620
4657
  subtitle && /* @__PURE__ */ jsx50(Text, { size: "xs", variant: "grey_600", children: subtitle })
4621
4658
  ] })
@@ -4628,7 +4665,7 @@ var MetricCard = ({
4628
4665
  // src/Components/Tooltip/Tooltip.tsx
4629
4666
  import { useState as useState16 } from "react";
4630
4667
  import styled42 from "styled-components";
4631
- import { jsx as jsx51, jsxs as jsxs26 } from "react/jsx-runtime";
4668
+ import { jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
4632
4669
  var StyledTooltipWrapper = styled42.div`
4633
4670
  position: relative;
4634
4671
  display: inline-block;
@@ -4733,7 +4770,7 @@ var Tooltip = ({
4733
4770
  const [isVisible, setIsVisible] = useState16(false);
4734
4771
  const handleMouseEnter = () => setIsVisible(true);
4735
4772
  const handleMouseLeave = () => setIsVisible(false);
4736
- return /* @__PURE__ */ jsxs26(
4773
+ return /* @__PURE__ */ jsxs27(
4737
4774
  StyledTooltipWrapper,
4738
4775
  {
4739
4776
  onMouseEnter: handleMouseEnter,
@@ -4758,7 +4795,7 @@ var Tooltip = ({
4758
4795
 
4759
4796
  // src/Components/Pagination/Pagination.tsx
4760
4797
  import { useMemo as useMemo2 } from "react";
4761
- import { jsx as jsx52, jsxs as jsxs27 } from "react/jsx-runtime";
4798
+ import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
4762
4799
  var getPageNumbers = (current, total) => {
4763
4800
  if (total <= 5) {
4764
4801
  return Array.from({ length: total }, (_, i) => i + 1);
@@ -4788,14 +4825,14 @@ var Pagination = ({
4788
4825
  const startItem = (currentPage - 1) * itemsPerPage + 1;
4789
4826
  const endItem = Math.min(currentPage * itemsPerPage, totalItems);
4790
4827
  const summary = summaryLabel || defaultSummary(startItem, endItem, totalItems);
4791
- return /* @__PURE__ */ jsxs27(
4828
+ return /* @__PURE__ */ jsxs28(
4792
4829
  Row,
4793
4830
  {
4794
4831
  justifyContent: showSummary ? "space-between" : "flex-end",
4795
4832
  alignItems: "center",
4796
4833
  children: [
4797
4834
  showSummary && /* @__PURE__ */ jsx52(Text, { size: "s", color: colors.grey_500, children: summary }),
4798
- /* @__PURE__ */ jsxs27(Row, { gap: "4", alignItems: "center", style: { width: "fit-content" }, children: [
4835
+ /* @__PURE__ */ jsxs28(Row, { gap: "4", alignItems: "center", style: { width: "fit-content" }, children: [
4799
4836
  /* @__PURE__ */ jsx52(
4800
4837
  Button,
4801
4838
  {
@@ -4837,7 +4874,7 @@ var Pagination = ({
4837
4874
  // src/Components/FileUploadZone/FileUploadZone.tsx
4838
4875
  import { useState as useState17, useRef as useRef13, useCallback as useCallback5 } from "react";
4839
4876
  import styled43 from "styled-components";
4840
- import { jsx as jsx53, jsxs as jsxs28 } from "react/jsx-runtime";
4877
+ import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
4841
4878
  var ACCEPT_MAP = {
4842
4879
  png: "image/png",
4843
4880
  jpg: "image/jpeg",
@@ -5035,7 +5072,7 @@ var FileUploadZone = ({
5035
5072
  onRemove == null ? void 0 : onRemove();
5036
5073
  };
5037
5074
  if (previewUrl) {
5038
- return /* @__PURE__ */ jsxs28(StyledPreview, { $fullWidth: fullWidth, children: [
5075
+ return /* @__PURE__ */ jsxs29(StyledPreview, { $fullWidth: fullWidth, children: [
5039
5076
  fileType && isPdf(fileType) ? /* @__PURE__ */ jsx53(StyledEmbed, { src: previewUrl, type: "application/pdf" }) : /* @__PURE__ */ jsx53(StyledImage2, { src: previewUrl, alt: "Aper\xE7u du fichier" }),
5040
5077
  /* @__PURE__ */ jsx53(Row, { gap: "8", justifyContent: "center", children: /* @__PURE__ */ jsx53(
5041
5078
  Button,
@@ -5051,8 +5088,8 @@ var FileUploadZone = ({
5051
5088
  }
5052
5089
  const showIcon = icon !== false;
5053
5090
  const showBrowse = !compact && browseLabel !== false;
5054
- return /* @__PURE__ */ jsxs28(Col, { gap: "4", fullWidth, children: [
5055
- /* @__PURE__ */ jsxs28(
5091
+ return /* @__PURE__ */ jsxs29(Col, { gap: "4", fullWidth, children: [
5092
+ /* @__PURE__ */ jsxs29(
5056
5093
  StyledDropZone,
5057
5094
  {
5058
5095
  $isDragging: isDragging,
@@ -5102,7 +5139,7 @@ var FileUploadZone = ({
5102
5139
  ]
5103
5140
  }
5104
5141
  ),
5105
- showFileName && fileName && /* @__PURE__ */ jsxs28(Row, { gap: "8", alignItems: "center", justifyContent: "center", children: [
5142
+ showFileName && fileName && /* @__PURE__ */ jsxs29(Row, { gap: "8", alignItems: "center", justifyContent: "center", children: [
5106
5143
  /* @__PURE__ */ jsx53(Icon, { name: "file", size: "s", color: "green_700" }),
5107
5144
  /* @__PURE__ */ jsx53(Text, { size: "s", color: "green_700", children: fileName })
5108
5145
  ] }),
@@ -5147,7 +5184,7 @@ var Spinner = ({ size = "m", color = "primary" }) => {
5147
5184
  };
5148
5185
 
5149
5186
  // src/Components/EmptyState/EmptyState.tsx
5150
- import { jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
5187
+ import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
5151
5188
  var EmptyState = ({
5152
5189
  icon = "inbox",
5153
5190
  title = "Aucun r\xE9sultat",
@@ -5155,7 +5192,7 @@ var EmptyState = ({
5155
5192
  actionLabel,
5156
5193
  onAction
5157
5194
  }) => {
5158
- return /* @__PURE__ */ jsxs29(
5195
+ return /* @__PURE__ */ jsxs30(
5159
5196
  Col,
5160
5197
  {
5161
5198
  fullWidth: true,
@@ -5165,7 +5202,7 @@ var EmptyState = ({
5165
5202
  padding: "24px 16px",
5166
5203
  children: [
5167
5204
  /* @__PURE__ */ jsx55(Icon, { name: icon, family: "solid", size: "xxl", color: "grey_300" }),
5168
- /* @__PURE__ */ jsxs29(Col, { alignItems: "center", gap: "4", style: { maxWidth: "360px" }, children: [
5205
+ /* @__PURE__ */ jsxs30(Col, { alignItems: "center", gap: "4", style: { maxWidth: "360px" }, children: [
5169
5206
  /* @__PURE__ */ jsx55(Text, { size: "m", weight: "600", variant: "grey_600", align: "center", children: title }),
5170
5207
  description && /* @__PURE__ */ jsx55(Text, { size: "s", variant: "grey_500", align: "center", children: description })
5171
5208
  ] }),
@@ -5177,7 +5214,7 @@ var EmptyState = ({
5177
5214
 
5178
5215
  // src/Components/FloatingButton/FloatingButton.tsx
5179
5216
  import styled45 from "styled-components";
5180
- import { jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
5217
+ import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
5181
5218
  var FloatingButton = ({
5182
5219
  isOpen,
5183
5220
  onToggle,
@@ -5189,10 +5226,10 @@ var FloatingButton = ({
5189
5226
  variant = "blue_700"
5190
5227
  }) => {
5191
5228
  const accent = colors[variant];
5192
- return /* @__PURE__ */ jsxs30(Container6, { children: [
5229
+ return /* @__PURE__ */ jsxs31(Container6, { children: [
5193
5230
  actions.map((action, index) => {
5194
5231
  var _a;
5195
- return /* @__PURE__ */ jsxs30(
5232
+ return /* @__PURE__ */ jsxs31(
5196
5233
  SubButton,
5197
5234
  {
5198
5235
  type: "button",
@@ -5208,7 +5245,7 @@ var FloatingButton = ({
5208
5245
  action.id
5209
5246
  );
5210
5247
  }),
5211
- /* @__PURE__ */ jsxs30(
5248
+ /* @__PURE__ */ jsxs31(
5212
5249
  MainButton,
5213
5250
  {
5214
5251
  type: "button",
@@ -5309,9 +5346,9 @@ var CountBadge = styled45.span`
5309
5346
 
5310
5347
  // src/Components/ProgressBar/ProgressBar.tsx
5311
5348
  import styled46 from "styled-components";
5312
- import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
5349
+ import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
5313
5350
  var clampPercent = (value) => Math.max(0, Math.min(100, value));
5314
- var Wrapper5 = styled46.div`
5351
+ var Wrapper6 = styled46.div`
5315
5352
  display: flex;
5316
5353
  align-items: center;
5317
5354
  gap: 8px;
@@ -5340,9 +5377,9 @@ var ProgressBar = ({
5340
5377
  showLabel = false
5341
5378
  }) => {
5342
5379
  const percent = clampPercent(value);
5343
- return /* @__PURE__ */ jsxs31(Wrapper5, { children: [
5380
+ return /* @__PURE__ */ jsxs32(Wrapper6, { children: [
5344
5381
  /* @__PURE__ */ jsx57(Track2, { $height: height, $trackColor: trackColor, children: /* @__PURE__ */ jsx57(Fill, { $height: height, $color: color, $percent: percent }) }),
5345
- showLabel && /* @__PURE__ */ jsxs31(Text, { size: "s", weight: "600", children: [
5382
+ showLabel && /* @__PURE__ */ jsxs32(Text, { size: "s", weight: "600", children: [
5346
5383
  Math.round(percent),
5347
5384
  " %"
5348
5385
  ] })
@@ -5351,7 +5388,7 @@ var ProgressBar = ({
5351
5388
 
5352
5389
  // src/Components/Timeline/Timeline.tsx
5353
5390
  import styled47 from "styled-components";
5354
- import { jsx as jsx58, jsxs as jsxs32 } from "react/jsx-runtime";
5391
+ import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
5355
5392
  var List2 = styled47.div`
5356
5393
  display: flex;
5357
5394
  flex-direction: column;
@@ -5399,12 +5436,12 @@ var Timeline = ({
5399
5436
  var _a;
5400
5437
  const isLast = index === items.length - 1;
5401
5438
  const dotColor = (_a = item.color) != null ? _a : colors.blue_700;
5402
- return /* @__PURE__ */ jsxs32(Item2, { children: [
5403
- /* @__PURE__ */ jsxs32(Rail, { children: [
5439
+ return /* @__PURE__ */ jsxs33(Item2, { children: [
5440
+ /* @__PURE__ */ jsxs33(Rail, { children: [
5404
5441
  /* @__PURE__ */ jsx58(Dot2, { $color: dotColor }),
5405
5442
  !isLast && /* @__PURE__ */ jsx58(Line, { $color: lineColor })
5406
5443
  ] }),
5407
- /* @__PURE__ */ jsxs32(Content, { $last: isLast, children: [
5444
+ /* @__PURE__ */ jsxs33(Content, { $last: isLast, children: [
5408
5445
  /* @__PURE__ */ jsx58(Text, { size: "s", weight: item.highlighted ? "700" : "600", children: item.title }),
5409
5446
  item.subtitle && /* @__PURE__ */ jsx58(Text, { size: "xs", color: colors.grey_600, children: item.subtitle }),
5410
5447
  item.description && /* @__PURE__ */ jsx58(Text, { size: "xs", fontStyle: "italic", children: item.description })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "design-zystem",
3
- "version": "1.0.253",
3
+ "version": "1.0.254",
4
4
  "description": "A React design system of importable components",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",