design-zystem 1.0.253 → 1.0.255
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 +9 -2
- package/dist/index.d.ts +9 -2
- package/dist/index.js +69 -31
- package/dist/index.mjs +153 -115
- package/package.json +1 -1
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;
|
|
@@ -817,8 +823,9 @@ interface PopoverProps {
|
|
|
817
823
|
children?: ReactNode;
|
|
818
824
|
anchorRef?: RefObject<HTMLElement>;
|
|
819
825
|
offsetY?: number;
|
|
826
|
+
align?: 'left' | 'right';
|
|
820
827
|
}
|
|
821
|
-
declare const Popover: ({ items, children, anchorRef, offsetY, }: PopoverProps) => react_jsx_runtime.JSX.Element;
|
|
828
|
+
declare const Popover: ({ items, children, anchorRef, offsetY, align, }: PopoverProps) => react_jsx_runtime.JSX.Element;
|
|
822
829
|
|
|
823
830
|
interface MetricCardProps {
|
|
824
831
|
icon: 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;
|
|
@@ -817,8 +823,9 @@ interface PopoverProps {
|
|
|
817
823
|
children?: ReactNode;
|
|
818
824
|
anchorRef?: RefObject<HTMLElement>;
|
|
819
825
|
offsetY?: number;
|
|
826
|
+
align?: 'left' | 'right';
|
|
820
827
|
}
|
|
821
|
-
declare const Popover: ({ items, children, anchorRef, offsetY, }: PopoverProps) => react_jsx_runtime.JSX.Element;
|
|
828
|
+
declare const Popover: ({ items, children, anchorRef, offsetY, align, }: PopoverProps) => react_jsx_runtime.JSX.Element;
|
|
822
829
|
|
|
823
830
|
interface MetricCardProps {
|
|
824
831
|
icon: 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.
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
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
|
|
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)(
|
|
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
|
|
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)(
|
|
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: [
|
|
@@ -4556,7 +4593,8 @@ var Popover = ({
|
|
|
4556
4593
|
items = [],
|
|
4557
4594
|
children,
|
|
4558
4595
|
anchorRef,
|
|
4559
|
-
offsetY = 8
|
|
4596
|
+
offsetY = 8,
|
|
4597
|
+
align = "right"
|
|
4560
4598
|
}) => {
|
|
4561
4599
|
const [open, setOpen] = (0, import_react24.useState)(false);
|
|
4562
4600
|
const ref = (0, import_react24.useRef)(null);
|
|
@@ -4591,10 +4629,10 @@ var Popover = ({
|
|
|
4591
4629
|
viewportPadding,
|
|
4592
4630
|
Math.min(top, window.innerHeight - menuHeight - viewportPadding)
|
|
4593
4631
|
),
|
|
4594
|
-
left: rect.right
|
|
4632
|
+
left: align === "left" ? rect.left : rect.right
|
|
4595
4633
|
});
|
|
4596
4634
|
}
|
|
4597
|
-
}, [items.length, anchorRef, offsetY]);
|
|
4635
|
+
}, [items.length, anchorRef, offsetY, align]);
|
|
4598
4636
|
(0, import_react24.useEffect)(() => {
|
|
4599
4637
|
const handleClickOutside = (event) => {
|
|
4600
4638
|
var _a, _b;
|
|
@@ -4626,7 +4664,7 @@ var Popover = ({
|
|
|
4626
4664
|
top: menuPosition.top,
|
|
4627
4665
|
bottom: "auto",
|
|
4628
4666
|
left: menuPosition.left,
|
|
4629
|
-
transform: "translateX(-100%)"
|
|
4667
|
+
transform: align === "left" ? "none" : "translateX(-100%)"
|
|
4630
4668
|
};
|
|
4631
4669
|
return /* @__PURE__ */ (0, import_jsx_runtime49.jsxs)(PopoverWrapper, { ref, children: [
|
|
4632
4670
|
/* @__PURE__ */ (0, import_jsx_runtime49.jsx)(PopoverTrigger, { onClick: () => setOpen((o) => !o), children }),
|
|
@@ -5390,7 +5428,7 @@ var CountBadge = import_styled_components45.default.span`
|
|
|
5390
5428
|
var import_styled_components46 = __toESM(require("styled-components"));
|
|
5391
5429
|
var import_jsx_runtime57 = require("react/jsx-runtime");
|
|
5392
5430
|
var clampPercent = (value) => Math.max(0, Math.min(100, value));
|
|
5393
|
-
var
|
|
5431
|
+
var Wrapper6 = import_styled_components46.default.div`
|
|
5394
5432
|
display: flex;
|
|
5395
5433
|
align-items: center;
|
|
5396
5434
|
gap: 8px;
|
|
@@ -5419,7 +5457,7 @@ var ProgressBar = ({
|
|
|
5419
5457
|
showLabel = false
|
|
5420
5458
|
}) => {
|
|
5421
5459
|
const percent = clampPercent(value);
|
|
5422
|
-
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
|
|
5460
|
+
return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Wrapper6, { children: [
|
|
5423
5461
|
/* @__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
5462
|
showLabel && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Text, { size: "s", weight: "600", children: [
|
|
5425
5463
|
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__ */
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
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
|
|
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__ */
|
|
2026
|
-
/* @__PURE__ */
|
|
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__ */
|
|
2032
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
2464
|
+
return /* @__PURE__ */ jsxs10(
|
|
2428
2465
|
StyledContainer2,
|
|
2429
2466
|
__spreadProps(__spreadValues({
|
|
2430
2467
|
noFlex
|
|
2431
2468
|
}, forwardProps), {
|
|
2432
2469
|
children: [
|
|
2433
|
-
label && /* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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
|
|
2661
|
-
var
|
|
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(
|
|
2749
|
-
/* @__PURE__ */
|
|
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__ */
|
|
2774
|
-
/* @__PURE__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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
|
|
3701
|
-
var
|
|
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(
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
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__ */
|
|
4219
|
-
/* @__PURE__ */
|
|
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__ */
|
|
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__ */
|
|
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__ */
|
|
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
|
|
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__ */
|
|
4407
|
-
/* @__PURE__ */
|
|
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
|
|
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;
|
|
@@ -4477,7 +4514,8 @@ var Popover = ({
|
|
|
4477
4514
|
items = [],
|
|
4478
4515
|
children,
|
|
4479
4516
|
anchorRef,
|
|
4480
|
-
offsetY = 8
|
|
4517
|
+
offsetY = 8,
|
|
4518
|
+
align = "right"
|
|
4481
4519
|
}) => {
|
|
4482
4520
|
const [open, setOpen] = useState15(false);
|
|
4483
4521
|
const ref = useRef12(null);
|
|
@@ -4512,10 +4550,10 @@ var Popover = ({
|
|
|
4512
4550
|
viewportPadding,
|
|
4513
4551
|
Math.min(top, window.innerHeight - menuHeight - viewportPadding)
|
|
4514
4552
|
),
|
|
4515
|
-
left: rect.right
|
|
4553
|
+
left: align === "left" ? rect.left : rect.right
|
|
4516
4554
|
});
|
|
4517
4555
|
}
|
|
4518
|
-
}, [items.length, anchorRef, offsetY]);
|
|
4556
|
+
}, [items.length, anchorRef, offsetY, align]);
|
|
4519
4557
|
useEffect13(() => {
|
|
4520
4558
|
const handleClickOutside = (event) => {
|
|
4521
4559
|
var _a, _b;
|
|
@@ -4547,9 +4585,9 @@ var Popover = ({
|
|
|
4547
4585
|
top: menuPosition.top,
|
|
4548
4586
|
bottom: "auto",
|
|
4549
4587
|
left: menuPosition.left,
|
|
4550
|
-
transform: "translateX(-100%)"
|
|
4588
|
+
transform: align === "left" ? "none" : "translateX(-100%)"
|
|
4551
4589
|
};
|
|
4552
|
-
return /* @__PURE__ */
|
|
4590
|
+
return /* @__PURE__ */ jsxs25(PopoverWrapper, { ref, children: [
|
|
4553
4591
|
/* @__PURE__ */ jsx49(PopoverTrigger, { onClick: () => setOpen((o) => !o), children }),
|
|
4554
4592
|
open && createPortal(
|
|
4555
4593
|
/* @__PURE__ */ jsx49(PopoverMenu, { ref: menuRef, style: menuStyle, children: items.map((item, idx) => /* @__PURE__ */ jsx49(
|
|
@@ -4571,7 +4609,7 @@ var Popover = ({
|
|
|
4571
4609
|
};
|
|
4572
4610
|
|
|
4573
4611
|
// src/Components/MetricCard/MetricCard.tsx
|
|
4574
|
-
import { jsx as jsx50, jsxs as
|
|
4612
|
+
import { jsx as jsx50, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
4575
4613
|
var MetricCard = ({
|
|
4576
4614
|
icon,
|
|
4577
4615
|
title,
|
|
@@ -4595,7 +4633,7 @@ var MetricCard = ({
|
|
|
4595
4633
|
cursor: onClick ? "pointer" : "default"
|
|
4596
4634
|
},
|
|
4597
4635
|
onClick,
|
|
4598
|
-
children: /* @__PURE__ */
|
|
4636
|
+
children: /* @__PURE__ */ jsxs26(Row, { alignItems: "center", gap: "12", fullWidth: true, children: [
|
|
4599
4637
|
/* @__PURE__ */ jsx50(
|
|
4600
4638
|
Box,
|
|
4601
4639
|
{
|
|
@@ -4610,12 +4648,12 @@ var MetricCard = ({
|
|
|
4610
4648
|
children: /* @__PURE__ */ jsx50(Icon, { name: icon, size: "m", color: iconColor, family: "regular" })
|
|
4611
4649
|
}
|
|
4612
4650
|
),
|
|
4613
|
-
contentLayout === "row" ? /* @__PURE__ */
|
|
4651
|
+
contentLayout === "row" ? /* @__PURE__ */ jsxs26(Row, { gap: "6", alignItems: "center", children: [
|
|
4614
4652
|
/* @__PURE__ */ jsx50(Text, { size: "s", weight: "bold", variant: valueColor || "grey_600", children: value }),
|
|
4615
4653
|
/* @__PURE__ */ jsx50(Text, { size: "s", variant: "grey_600", children: title })
|
|
4616
|
-
] }) : /* @__PURE__ */
|
|
4654
|
+
] }) : /* @__PURE__ */ jsxs26(Col, { gap: "4", children: [
|
|
4617
4655
|
/* @__PURE__ */ jsx50(Text, { size: "s", variant: "grey_600", children: title }),
|
|
4618
|
-
/* @__PURE__ */
|
|
4656
|
+
/* @__PURE__ */ jsxs26(Row, { gap: "6", alignItems: "baseline", children: [
|
|
4619
4657
|
/* @__PURE__ */ jsx50(Text, { size: "s", weight: "bold", variant: valueColor || "grey_600", children: value }),
|
|
4620
4658
|
subtitle && /* @__PURE__ */ jsx50(Text, { size: "xs", variant: "grey_600", children: subtitle })
|
|
4621
4659
|
] })
|
|
@@ -4628,7 +4666,7 @@ var MetricCard = ({
|
|
|
4628
4666
|
// src/Components/Tooltip/Tooltip.tsx
|
|
4629
4667
|
import { useState as useState16 } from "react";
|
|
4630
4668
|
import styled42 from "styled-components";
|
|
4631
|
-
import { jsx as jsx51, jsxs as
|
|
4669
|
+
import { jsx as jsx51, jsxs as jsxs27 } from "react/jsx-runtime";
|
|
4632
4670
|
var StyledTooltipWrapper = styled42.div`
|
|
4633
4671
|
position: relative;
|
|
4634
4672
|
display: inline-block;
|
|
@@ -4733,7 +4771,7 @@ var Tooltip = ({
|
|
|
4733
4771
|
const [isVisible, setIsVisible] = useState16(false);
|
|
4734
4772
|
const handleMouseEnter = () => setIsVisible(true);
|
|
4735
4773
|
const handleMouseLeave = () => setIsVisible(false);
|
|
4736
|
-
return /* @__PURE__ */
|
|
4774
|
+
return /* @__PURE__ */ jsxs27(
|
|
4737
4775
|
StyledTooltipWrapper,
|
|
4738
4776
|
{
|
|
4739
4777
|
onMouseEnter: handleMouseEnter,
|
|
@@ -4758,7 +4796,7 @@ var Tooltip = ({
|
|
|
4758
4796
|
|
|
4759
4797
|
// src/Components/Pagination/Pagination.tsx
|
|
4760
4798
|
import { useMemo as useMemo2 } from "react";
|
|
4761
|
-
import { jsx as jsx52, jsxs as
|
|
4799
|
+
import { jsx as jsx52, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
4762
4800
|
var getPageNumbers = (current, total) => {
|
|
4763
4801
|
if (total <= 5) {
|
|
4764
4802
|
return Array.from({ length: total }, (_, i) => i + 1);
|
|
@@ -4788,14 +4826,14 @@ var Pagination = ({
|
|
|
4788
4826
|
const startItem = (currentPage - 1) * itemsPerPage + 1;
|
|
4789
4827
|
const endItem = Math.min(currentPage * itemsPerPage, totalItems);
|
|
4790
4828
|
const summary = summaryLabel || defaultSummary(startItem, endItem, totalItems);
|
|
4791
|
-
return /* @__PURE__ */
|
|
4829
|
+
return /* @__PURE__ */ jsxs28(
|
|
4792
4830
|
Row,
|
|
4793
4831
|
{
|
|
4794
4832
|
justifyContent: showSummary ? "space-between" : "flex-end",
|
|
4795
4833
|
alignItems: "center",
|
|
4796
4834
|
children: [
|
|
4797
4835
|
showSummary && /* @__PURE__ */ jsx52(Text, { size: "s", color: colors.grey_500, children: summary }),
|
|
4798
|
-
/* @__PURE__ */
|
|
4836
|
+
/* @__PURE__ */ jsxs28(Row, { gap: "4", alignItems: "center", style: { width: "fit-content" }, children: [
|
|
4799
4837
|
/* @__PURE__ */ jsx52(
|
|
4800
4838
|
Button,
|
|
4801
4839
|
{
|
|
@@ -4837,7 +4875,7 @@ var Pagination = ({
|
|
|
4837
4875
|
// src/Components/FileUploadZone/FileUploadZone.tsx
|
|
4838
4876
|
import { useState as useState17, useRef as useRef13, useCallback as useCallback5 } from "react";
|
|
4839
4877
|
import styled43 from "styled-components";
|
|
4840
|
-
import { jsx as jsx53, jsxs as
|
|
4878
|
+
import { jsx as jsx53, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
4841
4879
|
var ACCEPT_MAP = {
|
|
4842
4880
|
png: "image/png",
|
|
4843
4881
|
jpg: "image/jpeg",
|
|
@@ -5035,7 +5073,7 @@ var FileUploadZone = ({
|
|
|
5035
5073
|
onRemove == null ? void 0 : onRemove();
|
|
5036
5074
|
};
|
|
5037
5075
|
if (previewUrl) {
|
|
5038
|
-
return /* @__PURE__ */
|
|
5076
|
+
return /* @__PURE__ */ jsxs29(StyledPreview, { $fullWidth: fullWidth, children: [
|
|
5039
5077
|
fileType && isPdf(fileType) ? /* @__PURE__ */ jsx53(StyledEmbed, { src: previewUrl, type: "application/pdf" }) : /* @__PURE__ */ jsx53(StyledImage2, { src: previewUrl, alt: "Aper\xE7u du fichier" }),
|
|
5040
5078
|
/* @__PURE__ */ jsx53(Row, { gap: "8", justifyContent: "center", children: /* @__PURE__ */ jsx53(
|
|
5041
5079
|
Button,
|
|
@@ -5051,8 +5089,8 @@ var FileUploadZone = ({
|
|
|
5051
5089
|
}
|
|
5052
5090
|
const showIcon = icon !== false;
|
|
5053
5091
|
const showBrowse = !compact && browseLabel !== false;
|
|
5054
|
-
return /* @__PURE__ */
|
|
5055
|
-
/* @__PURE__ */
|
|
5092
|
+
return /* @__PURE__ */ jsxs29(Col, { gap: "4", fullWidth, children: [
|
|
5093
|
+
/* @__PURE__ */ jsxs29(
|
|
5056
5094
|
StyledDropZone,
|
|
5057
5095
|
{
|
|
5058
5096
|
$isDragging: isDragging,
|
|
@@ -5102,7 +5140,7 @@ var FileUploadZone = ({
|
|
|
5102
5140
|
]
|
|
5103
5141
|
}
|
|
5104
5142
|
),
|
|
5105
|
-
showFileName && fileName && /* @__PURE__ */
|
|
5143
|
+
showFileName && fileName && /* @__PURE__ */ jsxs29(Row, { gap: "8", alignItems: "center", justifyContent: "center", children: [
|
|
5106
5144
|
/* @__PURE__ */ jsx53(Icon, { name: "file", size: "s", color: "green_700" }),
|
|
5107
5145
|
/* @__PURE__ */ jsx53(Text, { size: "s", color: "green_700", children: fileName })
|
|
5108
5146
|
] }),
|
|
@@ -5147,7 +5185,7 @@ var Spinner = ({ size = "m", color = "primary" }) => {
|
|
|
5147
5185
|
};
|
|
5148
5186
|
|
|
5149
5187
|
// src/Components/EmptyState/EmptyState.tsx
|
|
5150
|
-
import { jsx as jsx55, jsxs as
|
|
5188
|
+
import { jsx as jsx55, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5151
5189
|
var EmptyState = ({
|
|
5152
5190
|
icon = "inbox",
|
|
5153
5191
|
title = "Aucun r\xE9sultat",
|
|
@@ -5155,7 +5193,7 @@ var EmptyState = ({
|
|
|
5155
5193
|
actionLabel,
|
|
5156
5194
|
onAction
|
|
5157
5195
|
}) => {
|
|
5158
|
-
return /* @__PURE__ */
|
|
5196
|
+
return /* @__PURE__ */ jsxs30(
|
|
5159
5197
|
Col,
|
|
5160
5198
|
{
|
|
5161
5199
|
fullWidth: true,
|
|
@@ -5165,7 +5203,7 @@ var EmptyState = ({
|
|
|
5165
5203
|
padding: "24px 16px",
|
|
5166
5204
|
children: [
|
|
5167
5205
|
/* @__PURE__ */ jsx55(Icon, { name: icon, family: "solid", size: "xxl", color: "grey_300" }),
|
|
5168
|
-
/* @__PURE__ */
|
|
5206
|
+
/* @__PURE__ */ jsxs30(Col, { alignItems: "center", gap: "4", style: { maxWidth: "360px" }, children: [
|
|
5169
5207
|
/* @__PURE__ */ jsx55(Text, { size: "m", weight: "600", variant: "grey_600", align: "center", children: title }),
|
|
5170
5208
|
description && /* @__PURE__ */ jsx55(Text, { size: "s", variant: "grey_500", align: "center", children: description })
|
|
5171
5209
|
] }),
|
|
@@ -5177,7 +5215,7 @@ var EmptyState = ({
|
|
|
5177
5215
|
|
|
5178
5216
|
// src/Components/FloatingButton/FloatingButton.tsx
|
|
5179
5217
|
import styled45 from "styled-components";
|
|
5180
|
-
import { jsx as jsx56, jsxs as
|
|
5218
|
+
import { jsx as jsx56, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
5181
5219
|
var FloatingButton = ({
|
|
5182
5220
|
isOpen,
|
|
5183
5221
|
onToggle,
|
|
@@ -5189,10 +5227,10 @@ var FloatingButton = ({
|
|
|
5189
5227
|
variant = "blue_700"
|
|
5190
5228
|
}) => {
|
|
5191
5229
|
const accent = colors[variant];
|
|
5192
|
-
return /* @__PURE__ */
|
|
5230
|
+
return /* @__PURE__ */ jsxs31(Container6, { children: [
|
|
5193
5231
|
actions.map((action, index) => {
|
|
5194
5232
|
var _a;
|
|
5195
|
-
return /* @__PURE__ */
|
|
5233
|
+
return /* @__PURE__ */ jsxs31(
|
|
5196
5234
|
SubButton,
|
|
5197
5235
|
{
|
|
5198
5236
|
type: "button",
|
|
@@ -5208,7 +5246,7 @@ var FloatingButton = ({
|
|
|
5208
5246
|
action.id
|
|
5209
5247
|
);
|
|
5210
5248
|
}),
|
|
5211
|
-
/* @__PURE__ */
|
|
5249
|
+
/* @__PURE__ */ jsxs31(
|
|
5212
5250
|
MainButton,
|
|
5213
5251
|
{
|
|
5214
5252
|
type: "button",
|
|
@@ -5309,9 +5347,9 @@ var CountBadge = styled45.span`
|
|
|
5309
5347
|
|
|
5310
5348
|
// src/Components/ProgressBar/ProgressBar.tsx
|
|
5311
5349
|
import styled46 from "styled-components";
|
|
5312
|
-
import { jsx as jsx57, jsxs as
|
|
5350
|
+
import { jsx as jsx57, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
5313
5351
|
var clampPercent = (value) => Math.max(0, Math.min(100, value));
|
|
5314
|
-
var
|
|
5352
|
+
var Wrapper6 = styled46.div`
|
|
5315
5353
|
display: flex;
|
|
5316
5354
|
align-items: center;
|
|
5317
5355
|
gap: 8px;
|
|
@@ -5340,9 +5378,9 @@ var ProgressBar = ({
|
|
|
5340
5378
|
showLabel = false
|
|
5341
5379
|
}) => {
|
|
5342
5380
|
const percent = clampPercent(value);
|
|
5343
|
-
return /* @__PURE__ */
|
|
5381
|
+
return /* @__PURE__ */ jsxs32(Wrapper6, { children: [
|
|
5344
5382
|
/* @__PURE__ */ jsx57(Track2, { $height: height, $trackColor: trackColor, children: /* @__PURE__ */ jsx57(Fill, { $height: height, $color: color, $percent: percent }) }),
|
|
5345
|
-
showLabel && /* @__PURE__ */
|
|
5383
|
+
showLabel && /* @__PURE__ */ jsxs32(Text, { size: "s", weight: "600", children: [
|
|
5346
5384
|
Math.round(percent),
|
|
5347
5385
|
" %"
|
|
5348
5386
|
] })
|
|
@@ -5351,7 +5389,7 @@ var ProgressBar = ({
|
|
|
5351
5389
|
|
|
5352
5390
|
// src/Components/Timeline/Timeline.tsx
|
|
5353
5391
|
import styled47 from "styled-components";
|
|
5354
|
-
import { jsx as jsx58, jsxs as
|
|
5392
|
+
import { jsx as jsx58, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
5355
5393
|
var List2 = styled47.div`
|
|
5356
5394
|
display: flex;
|
|
5357
5395
|
flex-direction: column;
|
|
@@ -5399,12 +5437,12 @@ var Timeline = ({
|
|
|
5399
5437
|
var _a;
|
|
5400
5438
|
const isLast = index === items.length - 1;
|
|
5401
5439
|
const dotColor = (_a = item.color) != null ? _a : colors.blue_700;
|
|
5402
|
-
return /* @__PURE__ */
|
|
5403
|
-
/* @__PURE__ */
|
|
5440
|
+
return /* @__PURE__ */ jsxs33(Item2, { children: [
|
|
5441
|
+
/* @__PURE__ */ jsxs33(Rail, { children: [
|
|
5404
5442
|
/* @__PURE__ */ jsx58(Dot2, { $color: dotColor }),
|
|
5405
5443
|
!isLast && /* @__PURE__ */ jsx58(Line, { $color: lineColor })
|
|
5406
5444
|
] }),
|
|
5407
|
-
/* @__PURE__ */
|
|
5445
|
+
/* @__PURE__ */ jsxs33(Content, { $last: isLast, children: [
|
|
5408
5446
|
/* @__PURE__ */ jsx58(Text, { size: "s", weight: item.highlighted ? "700" : "600", children: item.title }),
|
|
5409
5447
|
item.subtitle && /* @__PURE__ */ jsx58(Text, { size: "xs", color: colors.grey_600, children: item.subtitle }),
|
|
5410
5448
|
item.description && /* @__PURE__ */ jsx58(Text, { size: "xs", fontStyle: "italic", children: item.description })
|