design-zystem 1.0.310 → 1.0.311
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.css +2 -1
- package/dist/index.d.mts +55 -56
- package/dist/index.d.ts +55 -56
- package/dist/index.js +93 -85
- package/dist/index.mjs +93 -85
- package/dist/ui/index.d.mts +1177 -0
- package/dist/ui/index.d.ts +1177 -0
- package/dist/ui/index.js +5734 -0
- package/dist/ui/index.mjs +5597 -0
- package/dist/ui/style.css +1 -0
- package/package.json +57 -3
package/dist/index.mjs
CHANGED
|
@@ -30,7 +30,7 @@ var __objRest = (source, exclude) => {
|
|
|
30
30
|
return target;
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
// src/Components/PageContainer/PageContainer.tsx
|
|
33
|
+
// src/ui-legacy/Components/PageContainer/PageContainer.tsx
|
|
34
34
|
import styled from "styled-components";
|
|
35
35
|
import { jsx } from "react/jsx-runtime";
|
|
36
36
|
var shouldForwardProp = (prop) => ![
|
|
@@ -94,10 +94,10 @@ var PageContainer = (_a) => {
|
|
|
94
94
|
);
|
|
95
95
|
};
|
|
96
96
|
|
|
97
|
-
// src/Components/Box/Box.tsx
|
|
97
|
+
// src/ui-legacy/Components/Box/Box.tsx
|
|
98
98
|
import styled2 from "styled-components";
|
|
99
99
|
|
|
100
|
-
// src/data/colors.ts
|
|
100
|
+
// src/ui-legacy/data/colors.ts
|
|
101
101
|
var colors = {
|
|
102
102
|
primary: "#52bdc4",
|
|
103
103
|
secondary: "#f8af2d",
|
|
@@ -221,7 +221,7 @@ var colors = {
|
|
|
221
221
|
light_blue: "#F1F5F9"
|
|
222
222
|
};
|
|
223
223
|
|
|
224
|
-
// src/Components/Box/Box.tsx
|
|
224
|
+
// src/ui-legacy/Components/Box/Box.tsx
|
|
225
225
|
import { jsx as jsx2 } from "react/jsx-runtime";
|
|
226
226
|
var shouldForwardProp2 = (prop) => ![
|
|
227
227
|
"fullWidth",
|
|
@@ -291,7 +291,7 @@ var Box = (_a) => {
|
|
|
291
291
|
return /* @__PURE__ */ jsx2(StyledBox, __spreadProps(__spreadValues({ hasShadow }, rest), { children }));
|
|
292
292
|
};
|
|
293
293
|
|
|
294
|
-
// src/Components/Grid/Grid.tsx
|
|
294
|
+
// src/ui-legacy/Components/Grid/Grid.tsx
|
|
295
295
|
import styled3 from "styled-components";
|
|
296
296
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
297
297
|
var shouldForwardPropGrid = (prop) => ![
|
|
@@ -335,7 +335,7 @@ var Grid = (props) => {
|
|
|
335
335
|
);
|
|
336
336
|
};
|
|
337
337
|
|
|
338
|
-
// src/Components/Row/Row.tsx
|
|
338
|
+
// src/ui-legacy/Components/Row/Row.tsx
|
|
339
339
|
import { forwardRef } from "react";
|
|
340
340
|
import styled4 from "styled-components";
|
|
341
341
|
import { jsx as jsx4 } from "react/jsx-runtime";
|
|
@@ -389,7 +389,7 @@ var Row = forwardRef((props, ref) => {
|
|
|
389
389
|
Row.displayName = "Row";
|
|
390
390
|
var Row_default = Row;
|
|
391
391
|
|
|
392
|
-
// src/Components/Col/Col.tsx
|
|
392
|
+
// src/ui-legacy/Components/Col/Col.tsx
|
|
393
393
|
import { forwardRef as forwardRef2 } from "react";
|
|
394
394
|
import styled5 from "styled-components";
|
|
395
395
|
import { jsx as jsx5 } from "react/jsx-runtime";
|
|
@@ -465,7 +465,7 @@ var Col = forwardRef2((props, ref) => {
|
|
|
465
465
|
Col.displayName = "Col";
|
|
466
466
|
var Col_default = Col;
|
|
467
467
|
|
|
468
|
-
// src/Components/Text/Text.tsx
|
|
468
|
+
// src/ui-legacy/Components/Text/Text.tsx
|
|
469
469
|
import { jsx as jsx6 } from "react/jsx-runtime";
|
|
470
470
|
var textSizes = {
|
|
471
471
|
xxs: "10px",
|
|
@@ -549,7 +549,7 @@ var Text = (props) => {
|
|
|
549
549
|
};
|
|
550
550
|
var Text_default = Text;
|
|
551
551
|
|
|
552
|
-
// src/Components/Icon/Icon.tsx
|
|
552
|
+
// src/ui-legacy/Components/Icon/Icon.tsx
|
|
553
553
|
import styled6 from "styled-components";
|
|
554
554
|
import { jsx as jsx7 } from "react/jsx-runtime";
|
|
555
555
|
var textSizes2 = {
|
|
@@ -622,7 +622,7 @@ var Icon = (props) => {
|
|
|
622
622
|
};
|
|
623
623
|
var Icon_default = Icon;
|
|
624
624
|
|
|
625
|
-
// src/Components/Divider/Divider.tsx
|
|
625
|
+
// src/ui-legacy/Components/Divider/Divider.tsx
|
|
626
626
|
import styled7 from "styled-components";
|
|
627
627
|
import { jsx as jsx8 } from "react/jsx-runtime";
|
|
628
628
|
var isColorToken = (value) => Object.prototype.hasOwnProperty.call(colors, value);
|
|
@@ -672,7 +672,7 @@ var Divider = (_a) => {
|
|
|
672
672
|
);
|
|
673
673
|
};
|
|
674
674
|
|
|
675
|
-
// src/Components/Bulk/Bulk.tsx
|
|
675
|
+
// src/ui-legacy/Components/Bulk/Bulk.tsx
|
|
676
676
|
import { jsx as jsx9, jsxs } from "react/jsx-runtime";
|
|
677
677
|
var Bulk = ({
|
|
678
678
|
onClose,
|
|
@@ -767,7 +767,7 @@ var Bulk = ({
|
|
|
767
767
|
);
|
|
768
768
|
};
|
|
769
769
|
|
|
770
|
-
// src/Components/Collapse/Collapse.tsx
|
|
770
|
+
// src/ui-legacy/Components/Collapse/Collapse.tsx
|
|
771
771
|
import { useState, useRef, useEffect, useCallback } from "react";
|
|
772
772
|
import styled8 from "styled-components";
|
|
773
773
|
import { jsx as jsx10 } from "react/jsx-runtime";
|
|
@@ -801,7 +801,7 @@ var Collapse = ({ open, children, maxHeight }) => {
|
|
|
801
801
|
return /* @__PURE__ */ jsx10(Wrapper, { $height: height, children: /* @__PURE__ */ jsx10(Inner, { ref: innerRef, $maxHeight: maxHeight, children }) });
|
|
802
802
|
};
|
|
803
803
|
|
|
804
|
-
// src/Components/Button/Button.tsx
|
|
804
|
+
// src/ui-legacy/Components/Button/Button.tsx
|
|
805
805
|
import { useRef as useRef2 } from "react";
|
|
806
806
|
import styled9 from "styled-components";
|
|
807
807
|
import { jsx as jsx11, jsxs as jsxs2 } from "react/jsx-runtime";
|
|
@@ -1025,7 +1025,7 @@ var Button = (_a) => {
|
|
|
1025
1025
|
);
|
|
1026
1026
|
};
|
|
1027
1027
|
|
|
1028
|
-
// src/Components/Modal/Modal.tsx
|
|
1028
|
+
// src/ui-legacy/Components/Modal/Modal.tsx
|
|
1029
1029
|
import { useEffect as useEffect2 } from "react";
|
|
1030
1030
|
import styled10 from "styled-components";
|
|
1031
1031
|
import { Fragment, jsx as jsx12, jsxs as jsxs3 } from "react/jsx-runtime";
|
|
@@ -1134,7 +1134,7 @@ var Modal = (props) => {
|
|
|
1134
1134
|
] });
|
|
1135
1135
|
};
|
|
1136
1136
|
|
|
1137
|
-
// src/Components/ModalConfirmation/ModalConfirmation.tsx
|
|
1137
|
+
// src/ui-legacy/Components/ModalConfirmation/ModalConfirmation.tsx
|
|
1138
1138
|
import { jsx as jsx13, jsxs as jsxs4 } from "react/jsx-runtime";
|
|
1139
1139
|
var ModalConfirmation = (props) => {
|
|
1140
1140
|
const { isOpen, onConfirm, onCancel, isLoading, width } = props;
|
|
@@ -1148,10 +1148,10 @@ var ModalConfirmation = (props) => {
|
|
|
1148
1148
|
] }) });
|
|
1149
1149
|
};
|
|
1150
1150
|
|
|
1151
|
-
// src/Components/NewModal/NewModal.tsx
|
|
1151
|
+
// src/ui-legacy/Components/NewModal/NewModal.tsx
|
|
1152
1152
|
import { useEffect as useEffect3, useRef as useRef3, useState as useState3 } from "react";
|
|
1153
1153
|
|
|
1154
|
-
// src/Components/Bubble/Bubble.tsx
|
|
1154
|
+
// src/ui-legacy/Components/Bubble/Bubble.tsx
|
|
1155
1155
|
import styled11, { css, keyframes } from "styled-components";
|
|
1156
1156
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1157
1157
|
var textSizes3 = {
|
|
@@ -1236,7 +1236,7 @@ var Bubble = (_a) => {
|
|
|
1236
1236
|
return /* @__PURE__ */ jsx14(StyledBubble, __spreadProps(__spreadValues({}, otherProps), { children }));
|
|
1237
1237
|
};
|
|
1238
1238
|
|
|
1239
|
-
// src/Components/Tooltip/Tooltip.tsx
|
|
1239
|
+
// src/ui-legacy/Components/Tooltip/Tooltip.tsx
|
|
1240
1240
|
import { useState as useState2 } from "react";
|
|
1241
1241
|
import styled12 from "styled-components";
|
|
1242
1242
|
import { jsx as jsx15, jsxs as jsxs5 } from "react/jsx-runtime";
|
|
@@ -1367,7 +1367,7 @@ var Tooltip = ({
|
|
|
1367
1367
|
);
|
|
1368
1368
|
};
|
|
1369
1369
|
|
|
1370
|
-
// src/Components/NewModal/NewModal.tsx
|
|
1370
|
+
// src/ui-legacy/Components/NewModal/NewModal.tsx
|
|
1371
1371
|
import { Fragment as Fragment2, jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
|
|
1372
1372
|
var NewModal = ({
|
|
1373
1373
|
showModal,
|
|
@@ -1631,7 +1631,7 @@ var NewModal = ({
|
|
|
1631
1631
|
);
|
|
1632
1632
|
};
|
|
1633
1633
|
|
|
1634
|
-
// src/Components/Drawer/Drawer.tsx
|
|
1634
|
+
// src/ui-legacy/Components/Drawer/Drawer.tsx
|
|
1635
1635
|
import { useEffect as useEffect4, useRef as useRef4, useState as useState4 } from "react";
|
|
1636
1636
|
import styled13 from "styled-components";
|
|
1637
1637
|
import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
@@ -1762,16 +1762,16 @@ var Drawer = ({
|
|
|
1762
1762
|
) });
|
|
1763
1763
|
};
|
|
1764
1764
|
|
|
1765
|
-
// src/Components/Toast/Toaster.tsx
|
|
1765
|
+
// src/ui-legacy/Components/Toast/Toaster.tsx
|
|
1766
1766
|
import { useSyncExternalStore } from "react";
|
|
1767
1767
|
import { createPortal } from "react-dom";
|
|
1768
1768
|
import styled15 from "styled-components";
|
|
1769
1769
|
|
|
1770
|
-
// src/Components/Toast/ToastCard.tsx
|
|
1770
|
+
// src/ui-legacy/Components/Toast/ToastCard.tsx
|
|
1771
1771
|
import { useCallback as useCallback2, useEffect as useEffect5, useState as useState5 } from "react";
|
|
1772
1772
|
import styled14, { keyframes as keyframes2 } from "styled-components";
|
|
1773
1773
|
|
|
1774
|
-
// src/Components/Toast/toastStore.ts
|
|
1774
|
+
// src/ui-legacy/Components/Toast/toastStore.ts
|
|
1775
1775
|
var DEFAULT_TIMEOUT_BY_TYPE = {
|
|
1776
1776
|
success: 2e3,
|
|
1777
1777
|
info: 2e3,
|
|
@@ -1813,7 +1813,7 @@ var dismissToast = (id) => {
|
|
|
1813
1813
|
emitChange();
|
|
1814
1814
|
};
|
|
1815
1815
|
|
|
1816
|
-
// src/Components/Toast/ToastCard.tsx
|
|
1816
|
+
// src/ui-legacy/Components/Toast/ToastCard.tsx
|
|
1817
1817
|
import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1818
1818
|
var EXIT_DURATION = 180;
|
|
1819
1819
|
var ToastCard = ({ toastItem }) => {
|
|
@@ -1960,7 +1960,7 @@ var ProgressBar = styled14.div`
|
|
|
1960
1960
|
animation-play-state: ${({ $isExiting }) => $isExiting ? "paused" : "running"};
|
|
1961
1961
|
`;
|
|
1962
1962
|
|
|
1963
|
-
// src/Components/Toast/Toaster.tsx
|
|
1963
|
+
// src/ui-legacy/Components/Toast/Toaster.tsx
|
|
1964
1964
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1965
1965
|
var Toaster = () => {
|
|
1966
1966
|
const toasts2 = useSyncExternalStore(subscribeToasts, getToastsSnapshot);
|
|
@@ -1981,7 +1981,7 @@ var Stack = styled15.div`
|
|
|
1981
1981
|
pointer-events: none;
|
|
1982
1982
|
`;
|
|
1983
1983
|
|
|
1984
|
-
// src/Components/Toast/toast.ts
|
|
1984
|
+
// src/ui-legacy/Components/Toast/toast.ts
|
|
1985
1985
|
var toast = {
|
|
1986
1986
|
success: (message, options) => pushToast("success", message, options),
|
|
1987
1987
|
error: (message, options) => pushToast("error", message, options),
|
|
@@ -1989,7 +1989,7 @@ var toast = {
|
|
|
1989
1989
|
info: (message, options) => pushToast("info", message, options)
|
|
1990
1990
|
};
|
|
1991
1991
|
|
|
1992
|
-
// src/Components/TagBubble/TagBubble.tsx
|
|
1992
|
+
// src/ui-legacy/Components/TagBubble/TagBubble.tsx
|
|
1993
1993
|
import styled16 from "styled-components";
|
|
1994
1994
|
import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
|
|
1995
1995
|
var sizeToPx = {
|
|
@@ -2132,7 +2132,7 @@ var TagBubble = (_a) => {
|
|
|
2132
2132
|
);
|
|
2133
2133
|
};
|
|
2134
2134
|
|
|
2135
|
-
// src/Components/Link/Link.tsx
|
|
2135
|
+
// src/ui-legacy/Components/Link/Link.tsx
|
|
2136
2136
|
import styled17 from "styled-components";
|
|
2137
2137
|
import { jsx as jsx21 } from "react/jsx-runtime";
|
|
2138
2138
|
var textSizes4 = {
|
|
@@ -2199,11 +2199,11 @@ var Link = (_a) => {
|
|
|
2199
2199
|
);
|
|
2200
2200
|
};
|
|
2201
2201
|
|
|
2202
|
-
// src/Components/Avatar/Avatar.tsx
|
|
2202
|
+
// src/ui-legacy/Components/Avatar/Avatar.tsx
|
|
2203
2203
|
import { useState as useState6 } from "react";
|
|
2204
2204
|
import styled19 from "styled-components";
|
|
2205
2205
|
|
|
2206
|
-
// src/Components/Image/Image.tsx
|
|
2206
|
+
// src/ui-legacy/Components/Image/Image.tsx
|
|
2207
2207
|
import styled18 from "styled-components";
|
|
2208
2208
|
import { jsx as jsx22 } from "react/jsx-runtime";
|
|
2209
2209
|
var StyledImage = styled18.img`
|
|
@@ -2249,7 +2249,7 @@ var Image2 = (_a) => {
|
|
|
2249
2249
|
);
|
|
2250
2250
|
};
|
|
2251
2251
|
|
|
2252
|
-
// src/Components/Avatar/Avatar.tsx
|
|
2252
|
+
// src/ui-legacy/Components/Avatar/Avatar.tsx
|
|
2253
2253
|
import { jsx as jsx23, jsxs as jsxs10 } from "react/jsx-runtime";
|
|
2254
2254
|
var Wrapper3 = styled19.div`
|
|
2255
2255
|
position: relative;
|
|
@@ -2391,7 +2391,7 @@ var Avatar = ({
|
|
|
2391
2391
|
] });
|
|
2392
2392
|
};
|
|
2393
2393
|
|
|
2394
|
-
// src/Components/Select/Select.tsx
|
|
2394
|
+
// src/ui-legacy/Components/Select/Select.tsx
|
|
2395
2395
|
import { useState as useState7, useRef as useRef5, useEffect as useEffect6 } from "react";
|
|
2396
2396
|
import ReactDOM from "react-dom";
|
|
2397
2397
|
import styled20 from "styled-components";
|
|
@@ -2658,7 +2658,7 @@ var Select = ({
|
|
|
2658
2658
|
] });
|
|
2659
2659
|
};
|
|
2660
2660
|
|
|
2661
|
-
// src/Components/Input/Input.tsx
|
|
2661
|
+
// src/ui-legacy/Components/Input/Input.tsx
|
|
2662
2662
|
import {
|
|
2663
2663
|
forwardRef as forwardRef3,
|
|
2664
2664
|
useEffect as useEffect7,
|
|
@@ -3100,7 +3100,7 @@ var Input = forwardRef3((props, ref) => {
|
|
|
3100
3100
|
});
|
|
3101
3101
|
Input.displayName = "Input";
|
|
3102
3102
|
|
|
3103
|
-
// src/Components/Checkbox/Checkbox.tsx
|
|
3103
|
+
// src/ui-legacy/Components/Checkbox/Checkbox.tsx
|
|
3104
3104
|
import { useId } from "react";
|
|
3105
3105
|
import styled22 from "styled-components";
|
|
3106
3106
|
import { jsx as jsx26, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
@@ -3146,7 +3146,7 @@ var Checkbox = ({
|
|
|
3146
3146
|
] });
|
|
3147
3147
|
};
|
|
3148
3148
|
|
|
3149
|
-
// src/Components/Radio/Radio.tsx
|
|
3149
|
+
// src/ui-legacy/Components/Radio/Radio.tsx
|
|
3150
3150
|
import { useId as useId2 } from "react";
|
|
3151
3151
|
import styled23 from "styled-components";
|
|
3152
3152
|
import { jsx as jsx27, jsxs as jsxs14 } from "react/jsx-runtime";
|
|
@@ -3223,7 +3223,7 @@ var Radio = ({
|
|
|
3223
3223
|
] }) });
|
|
3224
3224
|
};
|
|
3225
3225
|
|
|
3226
|
-
// src/Components/Accordion/Accordion.tsx
|
|
3226
|
+
// src/ui-legacy/Components/Accordion/Accordion.tsx
|
|
3227
3227
|
import { useState as useState9, useCallback as useCallback3 } from "react";
|
|
3228
3228
|
import styled24 from "styled-components";
|
|
3229
3229
|
import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
@@ -3367,7 +3367,7 @@ var Accordion = ({
|
|
|
3367
3367
|
] });
|
|
3368
3368
|
};
|
|
3369
3369
|
|
|
3370
|
-
// src/Components/ColorPicker/ColorPicker.tsx
|
|
3370
|
+
// src/ui-legacy/Components/ColorPicker/ColorPicker.tsx
|
|
3371
3371
|
import { forwardRef as forwardRef4, useState as useState10, useRef as useRef7, useEffect as useEffect8 } from "react";
|
|
3372
3372
|
import styled25 from "styled-components";
|
|
3373
3373
|
import { jsx as jsx29, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
@@ -3503,7 +3503,7 @@ var ColorPicker = forwardRef4(
|
|
|
3503
3503
|
);
|
|
3504
3504
|
ColorPicker.displayName = "ColorPicker";
|
|
3505
3505
|
|
|
3506
|
-
// src/Components/SliderInput/SliderInput.tsx
|
|
3506
|
+
// src/ui-legacy/Components/SliderInput/SliderInput.tsx
|
|
3507
3507
|
import { forwardRef as forwardRef5 } from "react";
|
|
3508
3508
|
import styled26 from "styled-components";
|
|
3509
3509
|
import { jsx as jsx30, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
@@ -3634,7 +3634,7 @@ var SliderInput = forwardRef5(
|
|
|
3634
3634
|
);
|
|
3635
3635
|
SliderInput.displayName = "SliderInput";
|
|
3636
3636
|
|
|
3637
|
-
// src/Components/List/List.tsx
|
|
3637
|
+
// src/ui-legacy/Components/List/List.tsx
|
|
3638
3638
|
import styled27 from "styled-components";
|
|
3639
3639
|
import { jsx as jsx31 } from "react/jsx-runtime";
|
|
3640
3640
|
var shouldForwardProp9 = (prop) => ![
|
|
@@ -3675,7 +3675,7 @@ var List = (props) => {
|
|
|
3675
3675
|
);
|
|
3676
3676
|
};
|
|
3677
3677
|
|
|
3678
|
-
// src/Components/List/ListItem/ListItem.tsx
|
|
3678
|
+
// src/ui-legacy/Components/List/ListItem/ListItem.tsx
|
|
3679
3679
|
import styled28 from "styled-components";
|
|
3680
3680
|
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
3681
3681
|
var shouldForwardProp10 = (prop) => ![
|
|
@@ -3720,7 +3720,7 @@ var ListItem = (props) => {
|
|
|
3720
3720
|
);
|
|
3721
3721
|
};
|
|
3722
3722
|
|
|
3723
|
-
// src/Components/Table/Table.tsx
|
|
3723
|
+
// src/ui-legacy/Components/Table/Table.tsx
|
|
3724
3724
|
import { forwardRef as forwardRef6 } from "react";
|
|
3725
3725
|
import styled29 from "styled-components";
|
|
3726
3726
|
import { jsx as jsx33 } from "react/jsx-runtime";
|
|
@@ -3764,7 +3764,7 @@ var Table = forwardRef6((props, ref) => {
|
|
|
3764
3764
|
});
|
|
3765
3765
|
Table.displayName = "Table";
|
|
3766
3766
|
|
|
3767
|
-
// src/Components/Table/TableHeader/TableHeader.tsx
|
|
3767
|
+
// src/ui-legacy/Components/Table/TableHeader/TableHeader.tsx
|
|
3768
3768
|
import styled30 from "styled-components";
|
|
3769
3769
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
3770
3770
|
var shouldForwardPropTableHeader = (prop) => !["backgroundColor"].includes(prop);
|
|
@@ -3786,7 +3786,7 @@ var TableHeader = (props) => {
|
|
|
3786
3786
|
return /* @__PURE__ */ jsx34(StyledTableHeader, __spreadProps(__spreadValues({}, otherProps), { children }));
|
|
3787
3787
|
};
|
|
3788
3788
|
|
|
3789
|
-
// src/Components/Table/TableBody/TableBody.tsx
|
|
3789
|
+
// src/ui-legacy/Components/Table/TableBody/TableBody.tsx
|
|
3790
3790
|
import { forwardRef as forwardRef7 } from "react";
|
|
3791
3791
|
import styled31 from "styled-components";
|
|
3792
3792
|
import { jsx as jsx35 } from "react/jsx-runtime";
|
|
@@ -3815,7 +3815,7 @@ var TableBody = forwardRef7(
|
|
|
3815
3815
|
);
|
|
3816
3816
|
TableBody.displayName = "TableBody";
|
|
3817
3817
|
|
|
3818
|
-
// src/Components/Table/TableRow/TableRow.tsx
|
|
3818
|
+
// src/ui-legacy/Components/Table/TableRow/TableRow.tsx
|
|
3819
3819
|
import styled32 from "styled-components";
|
|
3820
3820
|
import { jsx as jsx36 } from "react/jsx-runtime";
|
|
3821
3821
|
var shouldForwardPropTableRow = (prop) => ![
|
|
@@ -3846,7 +3846,7 @@ var TableRow = (props) => {
|
|
|
3846
3846
|
return /* @__PURE__ */ jsx36(StyledTableRow, __spreadProps(__spreadValues({}, otherProps), { children }));
|
|
3847
3847
|
};
|
|
3848
3848
|
|
|
3849
|
-
// src/Components/Table/TableCell/TableCell.tsx
|
|
3849
|
+
// src/ui-legacy/Components/Table/TableCell/TableCell.tsx
|
|
3850
3850
|
import styled33 from "styled-components";
|
|
3851
3851
|
import { jsx as jsx37 } from "react/jsx-runtime";
|
|
3852
3852
|
var shouldForwardPropTableCell = (prop) => ![
|
|
@@ -3880,7 +3880,7 @@ var TableCell = (props) => {
|
|
|
3880
3880
|
return /* @__PURE__ */ jsx37(StyledTableCell, __spreadProps(__spreadValues({}, otherProps), { children: centerContent ? /* @__PURE__ */ jsx37("div", { style: { display: "flex", justifyContent: "center" }, children }) : children }));
|
|
3881
3881
|
};
|
|
3882
3882
|
|
|
3883
|
-
// src/Components/Table/TableHeaderCell/TableHeaderCell.tsx
|
|
3883
|
+
// src/ui-legacy/Components/Table/TableHeaderCell/TableHeaderCell.tsx
|
|
3884
3884
|
import { useState as useState11 } from "react";
|
|
3885
3885
|
import styled34 from "styled-components";
|
|
3886
3886
|
import { jsx as jsx38, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
@@ -3952,7 +3952,7 @@ var TableHeaderCell = (props) => {
|
|
|
3952
3952
|
);
|
|
3953
3953
|
};
|
|
3954
3954
|
|
|
3955
|
-
// src/Components/Table/TableHeaderRow/TableHeaderRow.tsx
|
|
3955
|
+
// src/ui-legacy/Components/Table/TableHeaderRow/TableHeaderRow.tsx
|
|
3956
3956
|
import styled35 from "styled-components";
|
|
3957
3957
|
import { jsx as jsx39 } from "react/jsx-runtime";
|
|
3958
3958
|
var shouldForwardPropTableHeaderRow = (prop) => !["backgroundColor"].includes(prop);
|
|
@@ -3969,7 +3969,7 @@ var TableHeaderRow = (props) => {
|
|
|
3969
3969
|
return /* @__PURE__ */ jsx39(StyledTableHeaderRow, __spreadProps(__spreadValues({}, otherProps), { children }));
|
|
3970
3970
|
};
|
|
3971
3971
|
|
|
3972
|
-
// src/Components/Table/TableFooter/TableFooter.tsx
|
|
3972
|
+
// src/ui-legacy/Components/Table/TableFooter/TableFooter.tsx
|
|
3973
3973
|
import styled36 from "styled-components";
|
|
3974
3974
|
import { jsx as jsx40 } from "react/jsx-runtime";
|
|
3975
3975
|
var shouldForwardPropTableFooter = (prop) => !["backgroundColor"].includes(prop);
|
|
@@ -3991,7 +3991,7 @@ var TableFooter = (props) => {
|
|
|
3991
3991
|
return /* @__PURE__ */ jsx40(StyledTableFooter, __spreadProps(__spreadValues({}, otherProps), { children }));
|
|
3992
3992
|
};
|
|
3993
3993
|
|
|
3994
|
-
// src/Components/Table/TableFooterRow/TableFooterRow.tsx
|
|
3994
|
+
// src/ui-legacy/Components/Table/TableFooterRow/TableFooterRow.tsx
|
|
3995
3995
|
import styled37 from "styled-components";
|
|
3996
3996
|
import { jsx as jsx41 } from "react/jsx-runtime";
|
|
3997
3997
|
var shouldForwardPropTableFooterRow = (prop) => !["backgroundColor"].includes(prop);
|
|
@@ -4008,7 +4008,7 @@ var TableFooterRow = (props) => {
|
|
|
4008
4008
|
return /* @__PURE__ */ jsx41(StyledTableFooterRow, __spreadProps(__spreadValues({}, otherProps), { children }));
|
|
4009
4009
|
};
|
|
4010
4010
|
|
|
4011
|
-
// src/Components/Table/TableFooterCell/TableFooterCell.tsx
|
|
4011
|
+
// src/ui-legacy/Components/Table/TableFooterCell/TableFooterCell.tsx
|
|
4012
4012
|
import styled38 from "styled-components";
|
|
4013
4013
|
import { jsx as jsx42 } from "react/jsx-runtime";
|
|
4014
4014
|
var shouldForwardPropTableFooterCell = (prop) => !["useSort", "flexGrow", "flexShrink", "width"].includes(prop);
|
|
@@ -4047,7 +4047,7 @@ var TableFooterCell = (props) => {
|
|
|
4047
4047
|
);
|
|
4048
4048
|
};
|
|
4049
4049
|
|
|
4050
|
-
// src/Components/Table/SkeletonRow/SkeletonRow.tsx
|
|
4050
|
+
// src/ui-legacy/Components/Table/SkeletonRow/SkeletonRow.tsx
|
|
4051
4051
|
import { Fragment as Fragment4, jsx as jsx43, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
4052
4052
|
var style = `
|
|
4053
4053
|
.skeleton-loader {
|
|
@@ -4072,7 +4072,7 @@ var SkeletonRow = ({ columns = 9 }) => /* @__PURE__ */ jsxs19(Fragment4, { child
|
|
|
4072
4072
|
/* @__PURE__ */ jsx43(TableRow, { children: Array.from({ length: columns }).map((_, index) => /* @__PURE__ */ jsx43(TableCell, { children: /* @__PURE__ */ jsx43("div", { className: "skeleton-loader" }) }, index)) })
|
|
4073
4073
|
] });
|
|
4074
4074
|
|
|
4075
|
-
// src/Components/Switch/Switch.tsx
|
|
4075
|
+
// src/ui-legacy/Components/Switch/Switch.tsx
|
|
4076
4076
|
import { forwardRef as forwardRef8 } from "react";
|
|
4077
4077
|
import styled39, { css as css2 } from "styled-components";
|
|
4078
4078
|
import { jsx as jsx44, jsxs as jsxs20 } from "react/jsx-runtime";
|
|
@@ -4196,7 +4196,7 @@ var Switch = forwardRef8(
|
|
|
4196
4196
|
);
|
|
4197
4197
|
Switch.displayName = "Switch";
|
|
4198
4198
|
|
|
4199
|
-
// src/Components/CardSkeleton/CardSkeleton.tsx
|
|
4199
|
+
// src/ui-legacy/Components/CardSkeleton/CardSkeleton.tsx
|
|
4200
4200
|
import { jsx as jsx45 } from "react/jsx-runtime";
|
|
4201
4201
|
var CardSkeleton = () => {
|
|
4202
4202
|
return /* @__PURE__ */ jsx45(
|
|
@@ -4209,7 +4209,7 @@ var CardSkeleton = () => {
|
|
|
4209
4209
|
);
|
|
4210
4210
|
};
|
|
4211
4211
|
|
|
4212
|
-
// src/Components/Options/Options.tsx
|
|
4212
|
+
// src/ui-legacy/Components/Options/Options.tsx
|
|
4213
4213
|
import { useState as useState12, useEffect as useEffect9 } from "react";
|
|
4214
4214
|
import { jsx as jsx46, jsxs as jsxs21 } from "react/jsx-runtime";
|
|
4215
4215
|
var Options = ({
|
|
@@ -4278,7 +4278,7 @@ var Options = ({
|
|
|
4278
4278
|
);
|
|
4279
4279
|
};
|
|
4280
4280
|
|
|
4281
|
-
// src/Components/Stepper/Stepper.tsx
|
|
4281
|
+
// src/ui-legacy/Components/Stepper/Stepper.tsx
|
|
4282
4282
|
import { Fragment as Fragment5 } from "react";
|
|
4283
4283
|
import styled40 from "styled-components";
|
|
4284
4284
|
import { jsx as jsx47, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
@@ -4334,7 +4334,7 @@ var Stepper = ({
|
|
|
4334
4334
|
}) });
|
|
4335
4335
|
};
|
|
4336
4336
|
|
|
4337
|
-
// src/Components/Tabs/Tabs.tsx
|
|
4337
|
+
// src/ui-legacy/Components/Tabs/Tabs.tsx
|
|
4338
4338
|
import {
|
|
4339
4339
|
useCallback as useCallback4,
|
|
4340
4340
|
useEffect as useEffect10,
|
|
@@ -4673,7 +4673,7 @@ var Tabs = (_a) => {
|
|
|
4673
4673
|
);
|
|
4674
4674
|
};
|
|
4675
4675
|
|
|
4676
|
-
// src/Components/MultiSelect/MultiSelect.tsx
|
|
4676
|
+
// src/ui-legacy/Components/MultiSelect/MultiSelect.tsx
|
|
4677
4677
|
import { useState as useState14, useRef as useRef9, useEffect as useEffect11 } from "react";
|
|
4678
4678
|
import styled42 from "styled-components";
|
|
4679
4679
|
import { jsx as jsx49, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
@@ -4769,7 +4769,7 @@ var MultiSelect = ({
|
|
|
4769
4769
|
] });
|
|
4770
4770
|
};
|
|
4771
4771
|
|
|
4772
|
-
// src/Components/DatePicker/DatePicker.tsx
|
|
4772
|
+
// src/ui-legacy/Components/DatePicker/DatePicker.tsx
|
|
4773
4773
|
import { useState as useState15, useRef as useRef10, useEffect as useEffect12 } from "react";
|
|
4774
4774
|
import { Fragment as Fragment6, jsx as jsx50, jsxs as jsxs25 } from "react/jsx-runtime";
|
|
4775
4775
|
var LOCALE_MAP = {
|
|
@@ -5153,7 +5153,7 @@ var DatePicker = (props) => {
|
|
|
5153
5153
|
);
|
|
5154
5154
|
};
|
|
5155
5155
|
|
|
5156
|
-
// src/Components/IconTabs/IconTabs.tsx
|
|
5156
|
+
// src/ui-legacy/Components/IconTabs/IconTabs.tsx
|
|
5157
5157
|
import { useState as useState16, useEffect as useEffect13, useRef as useRef11 } from "react";
|
|
5158
5158
|
import styled43, { css as css3 } from "styled-components";
|
|
5159
5159
|
import { jsx as jsx51, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
@@ -5269,7 +5269,7 @@ var IconTabs = ({
|
|
|
5269
5269
|
] });
|
|
5270
5270
|
};
|
|
5271
5271
|
|
|
5272
|
-
// src/Components/Popover/Popover.tsx
|
|
5272
|
+
// src/ui-legacy/Components/Popover/Popover.tsx
|
|
5273
5273
|
import {
|
|
5274
5274
|
useState as useState17,
|
|
5275
5275
|
useRef as useRef12,
|
|
@@ -5402,26 +5402,34 @@ var Popover = ({
|
|
|
5402
5402
|
return /* @__PURE__ */ jsxs27(PopoverWrapper, { ref, $fullWidth: fullWidth, children: [
|
|
5403
5403
|
/* @__PURE__ */ jsx52(PopoverTrigger, { $fullWidth: fullWidth, onClick: () => setOpen((o) => !o), children }),
|
|
5404
5404
|
open && createPortal2(
|
|
5405
|
-
/* @__PURE__ */ jsx52(
|
|
5406
|
-
|
|
5405
|
+
/* @__PURE__ */ jsx52(
|
|
5406
|
+
PopoverMenu,
|
|
5407
5407
|
{
|
|
5408
|
-
|
|
5408
|
+
ref: menuRef,
|
|
5409
|
+
style: menuStyle,
|
|
5409
5410
|
$horizontal: isHorizontal,
|
|
5410
|
-
|
|
5411
|
-
|
|
5412
|
-
|
|
5413
|
-
|
|
5414
|
-
|
|
5415
|
-
|
|
5416
|
-
|
|
5417
|
-
|
|
5418
|
-
|
|
5411
|
+
children: items.map((item, idx) => /* @__PURE__ */ jsx52(
|
|
5412
|
+
PopoverItem,
|
|
5413
|
+
{
|
|
5414
|
+
isLast: idx === items.length - 1,
|
|
5415
|
+
$horizontal: isHorizontal,
|
|
5416
|
+
onClick: () => {
|
|
5417
|
+
setOpen(false);
|
|
5418
|
+
item.action();
|
|
5419
|
+
},
|
|
5420
|
+
onMouseDown: (e) => e.preventDefault(),
|
|
5421
|
+
children: item.label
|
|
5422
|
+
},
|
|
5423
|
+
typeof item.label === "string" ? item.label : idx
|
|
5424
|
+
))
|
|
5425
|
+
}
|
|
5426
|
+
),
|
|
5419
5427
|
document.body
|
|
5420
5428
|
)
|
|
5421
5429
|
] });
|
|
5422
5430
|
};
|
|
5423
5431
|
|
|
5424
|
-
// src/Components/MetricCard/MetricCard.tsx
|
|
5432
|
+
// src/ui-legacy/Components/MetricCard/MetricCard.tsx
|
|
5425
5433
|
import { jsx as jsx53, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
5426
5434
|
var MetricCard = ({
|
|
5427
5435
|
icon,
|
|
@@ -5480,7 +5488,7 @@ var MetricCard = ({
|
|
|
5480
5488
|
);
|
|
5481
5489
|
};
|
|
5482
5490
|
|
|
5483
|
-
// src/Components/Card/Card.tsx
|
|
5491
|
+
// src/ui-legacy/Components/Card/Card.tsx
|
|
5484
5492
|
import styled45 from "styled-components";
|
|
5485
5493
|
import { jsx as jsx54 } from "react/jsx-runtime";
|
|
5486
5494
|
var StyledCard = styled45.div`
|
|
@@ -5518,7 +5526,7 @@ var Card2 = ({
|
|
|
5518
5526
|
}
|
|
5519
5527
|
);
|
|
5520
5528
|
|
|
5521
|
-
// src/Components/Banner/Banner.tsx
|
|
5529
|
+
// src/ui-legacy/Components/Banner/Banner.tsx
|
|
5522
5530
|
import styled46, { css as css4, keyframes as keyframes3 } from "styled-components";
|
|
5523
5531
|
import { Fragment as Fragment7, jsx as jsx55, jsxs as jsxs29 } from "react/jsx-runtime";
|
|
5524
5532
|
var PRESET_STYLES = {
|
|
@@ -5704,7 +5712,7 @@ var Banner = ({
|
|
|
5704
5712
|
);
|
|
5705
5713
|
};
|
|
5706
5714
|
|
|
5707
|
-
// src/Components/Pagination/Pagination.tsx
|
|
5715
|
+
// src/ui-legacy/Components/Pagination/Pagination.tsx
|
|
5708
5716
|
import { useMemo as useMemo2 } from "react";
|
|
5709
5717
|
import { jsx as jsx56, jsxs as jsxs30 } from "react/jsx-runtime";
|
|
5710
5718
|
var getPageNumbers = (current, total) => {
|
|
@@ -5782,7 +5790,7 @@ var Pagination = ({
|
|
|
5782
5790
|
);
|
|
5783
5791
|
};
|
|
5784
5792
|
|
|
5785
|
-
// src/Components/FileUploadZone/FileUploadZone.tsx
|
|
5793
|
+
// src/ui-legacy/Components/FileUploadZone/FileUploadZone.tsx
|
|
5786
5794
|
import { useState as useState18, useRef as useRef13, useCallback as useCallback6 } from "react";
|
|
5787
5795
|
import styled47 from "styled-components";
|
|
5788
5796
|
import { jsx as jsx57, jsxs as jsxs31 } from "react/jsx-runtime";
|
|
@@ -6058,7 +6066,7 @@ var FileUploadZone = ({
|
|
|
6058
6066
|
] });
|
|
6059
6067
|
};
|
|
6060
6068
|
|
|
6061
|
-
// src/Components/Spinner/Spinner.tsx
|
|
6069
|
+
// src/ui-legacy/Components/Spinner/Spinner.tsx
|
|
6062
6070
|
import styled48, { keyframes as keyframes4 } from "styled-components";
|
|
6063
6071
|
import { jsx as jsx58 } from "react/jsx-runtime";
|
|
6064
6072
|
var SIZES3 = {
|
|
@@ -6094,7 +6102,7 @@ var Spinner = ({ size = "m", color = "primary" }) => {
|
|
|
6094
6102
|
);
|
|
6095
6103
|
};
|
|
6096
6104
|
|
|
6097
|
-
// src/Components/EmptyState/EmptyState.tsx
|
|
6105
|
+
// src/ui-legacy/Components/EmptyState/EmptyState.tsx
|
|
6098
6106
|
import { jsx as jsx59, jsxs as jsxs32 } from "react/jsx-runtime";
|
|
6099
6107
|
var EmptyState = ({
|
|
6100
6108
|
icon = "inbox",
|
|
@@ -6123,7 +6131,7 @@ var EmptyState = ({
|
|
|
6123
6131
|
);
|
|
6124
6132
|
};
|
|
6125
6133
|
|
|
6126
|
-
// src/Components/FloatingButton/FloatingButton.tsx
|
|
6134
|
+
// src/ui-legacy/Components/FloatingButton/FloatingButton.tsx
|
|
6127
6135
|
import styled49 from "styled-components";
|
|
6128
6136
|
import { jsx as jsx60, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
6129
6137
|
var FloatingButton = ({
|
|
@@ -6255,7 +6263,7 @@ var CountBadge = styled49.span`
|
|
|
6255
6263
|
font-weight: 700;
|
|
6256
6264
|
`;
|
|
6257
6265
|
|
|
6258
|
-
// src/Components/ProgressBar/ProgressBar.tsx
|
|
6266
|
+
// src/ui-legacy/Components/ProgressBar/ProgressBar.tsx
|
|
6259
6267
|
import styled50 from "styled-components";
|
|
6260
6268
|
import { jsx as jsx61, jsxs as jsxs34 } from "react/jsx-runtime";
|
|
6261
6269
|
var clampPercent = (value) => Math.max(0, Math.min(100, value));
|
|
@@ -6322,7 +6330,7 @@ var ProgressBar2 = ({
|
|
|
6322
6330
|
] });
|
|
6323
6331
|
};
|
|
6324
6332
|
|
|
6325
|
-
// src/Components/Timeline/Timeline.tsx
|
|
6333
|
+
// src/ui-legacy/Components/Timeline/Timeline.tsx
|
|
6326
6334
|
import styled51 from "styled-components";
|
|
6327
6335
|
import { jsx as jsx62, jsxs as jsxs35 } from "react/jsx-runtime";
|
|
6328
6336
|
var List2 = styled51.div`
|
|
@@ -6386,7 +6394,7 @@ var Timeline = ({
|
|
|
6386
6394
|
}) });
|
|
6387
6395
|
};
|
|
6388
6396
|
|
|
6389
|
-
// src/Components/Gantt/Gantt.tsx
|
|
6397
|
+
// src/ui-legacy/Components/Gantt/Gantt.tsx
|
|
6390
6398
|
import styled52 from "styled-components";
|
|
6391
6399
|
import { jsx as jsx63, jsxs as jsxs36 } from "react/jsx-runtime";
|
|
6392
6400
|
var Root = styled52.div`
|
|
@@ -6641,7 +6649,7 @@ var GanttSwatch = ({
|
|
|
6641
6649
|
filled = true
|
|
6642
6650
|
}) => /* @__PURE__ */ jsx63(Swatch2, { $color: color, $filled: filled });
|
|
6643
6651
|
|
|
6644
|
-
// src/data/globalMethods.ts
|
|
6652
|
+
// src/ui-legacy/data/globalMethods.ts
|
|
6645
6653
|
var formatDate = (dateString, type = "date", language = "en") => {
|
|
6646
6654
|
if (!dateString) return "";
|
|
6647
6655
|
const date = new Date(dateString);
|
|
@@ -6783,7 +6791,7 @@ var formatName = (person, fallback = "") => {
|
|
|
6783
6791
|
return person ? `${(_a = person.firstname) != null ? _a : ""} ${(_b = person.lastname) != null ? _b : ""}`.trim() || fallback : fallback;
|
|
6784
6792
|
};
|
|
6785
6793
|
|
|
6786
|
-
// src/services/optimizeImage/optimizeImage.ts
|
|
6794
|
+
// src/ui-legacy/services/optimizeImage/optimizeImage.ts
|
|
6787
6795
|
var hasDocument = () => typeof document !== "undefined";
|
|
6788
6796
|
var hasObjectURL = () => typeof URL !== "undefined" && typeof URL.createObjectURL === "function" && typeof URL.revokeObjectURL === "function";
|
|
6789
6797
|
var readArrayBuffer = (file) => {
|