@clickhouse/click-ui 0.0.190 → 0.0.192
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/click-ui.es.js +1443 -775
- package/dist/click-ui.umd.js +1444 -777
- package/dist/components/Badge/Badge.d.ts +2 -1
- package/dist/components/CardPrimary/CardPrimaryTopBadge.d.ts +1 -1
- package/dist/components/DateDetails/DateDetails.d.ts +7 -0
- package/dist/components/Grid/Header.d.ts +1 -1
- package/dist/components/Grid/RowNumberColumn.d.ts +2 -1
- package/dist/components/Grid/StyledCell.d.ts +1 -0
- package/dist/components/Grid/types.d.ts +4 -0
- package/dist/components/Icon/IconCommon.d.ts +7 -0
- package/dist/components/Icon/types.d.ts +1 -1
- package/dist/components/IconWrapper/IconWrapper.d.ts +5 -3
- package/dist/components/icons/ChartArea.d.ts +4 -0
- package/dist/components/icons/ChartBarHorizontal.d.ts +4 -0
- package/dist/components/icons/ChartDonut.d.ts +4 -0
- package/dist/components/icons/ChartHeatmap.d.ts +4 -0
- package/dist/components/icons/ChartScatter.d.ts +4 -0
- package/dist/components/icons/ChartStackedHorizontal.d.ts +4 -0
- package/dist/components/icons/ChartStackedVertical.d.ts +4 -0
- package/dist/components/index.d.ts +5 -4
- package/package.json +2 -1
package/dist/click-ui.es.js
CHANGED
|
@@ -10,6 +10,7 @@ import * as React from "react";
|
|
|
10
10
|
import React__default, { forwardRef, useCallback, createContext, useMemo, createElement as createElement$1, useContext, useRef, useEffect, useState, Children, isValidElement, cloneElement, Fragment, useLayoutEffect, useReducer, useId, PureComponent, Component, memo } from "react";
|
|
11
11
|
import * as ReactDOM from "react-dom";
|
|
12
12
|
import ReactDOM__default, { flushSync, createPortal } from "react-dom";
|
|
13
|
+
import dayjs from "dayjs";
|
|
13
14
|
const UsersIcon = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "25", viewBox: "0 0 24 25", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
14
15
|
/* @__PURE__ */ jsx("path", { d: "M15.2158 11.2407C17.0021 11.1757 18.42 9.71476 18.4314 7.92732C18.4038 6.17864 16.9645 4.78308 15.2158 4.80945", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
15
16
|
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.42753 11.2407C11.2138 11.1757 12.6317 9.71476 12.6432 7.92732C12.6156 6.17864 11.1762 4.78308 9.42753 4.80945C7.67884 4.78308 6.23952 6.17864 6.21191 7.92732C6.22292 9.71494 7.64104 11.1762 9.42753 11.2407V11.2407Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -66,6 +67,38 @@ const InfoInCircleIcon = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", h
|
|
|
66
67
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M12 12v5" })
|
|
67
68
|
] });
|
|
68
69
|
const CheckIcon$3 = (props) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M20 6.5L9 17.5L4 12.5", stroke: "#161517", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
70
|
+
const ChartArea = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
71
|
+
/* @__PURE__ */ jsx("path", { d: "M21.5 19.75C21.5 19.9489 21.421 20.1397 21.2803 20.2803C21.1397 20.421 20.9489 20.5 20.75 20.5H2.75C2.55109 20.5 2.36032 20.421 2.21967 20.2803C2.07902 20.1397 2 19.9489 2 19.75V4.75C2 4.55109 2.07902 4.36032 2.21967 4.21967C2.36032 4.07902 2.55109 4 2.75 4C2.94891 4 3.13968 4.07902 3.28033 4.21967C3.42098 4.36032 3.5 4.55109 3.5 4.75V13.5972L8.25594 9.4375C8.38536 9.32421 8.54978 9.25885 8.72165 9.25236C8.89353 9.24587 9.06241 9.29866 9.2 9.40188L14.7134 13.5372L20.2559 8.6875C20.3286 8.61556 20.4152 8.55925 20.5105 8.52201C20.6057 8.48478 20.7075 8.46741 20.8097 8.47097C20.9119 8.47454 21.0123 8.49896 21.1047 8.54275C21.1971 8.58653 21.2796 8.64875 21.3471 8.72557C21.4146 8.8024 21.4656 8.89222 21.4971 8.9895C21.5286 9.08678 21.5399 9.18948 21.5302 9.29128C21.5206 9.39307 21.4902 9.49182 21.441 9.58146C21.3918 9.67109 21.3248 9.74972 21.2441 9.8125L15.2441 15.0625C15.1146 15.1758 14.9502 15.2412 14.7783 15.2476C14.6065 15.2541 14.4376 15.2013 14.3 15.0981L8.78656 10.9647L3.5 15.5903V19H20.75C20.9489 19 21.1397 19.079 21.2803 19.2197C21.421 19.3603 21.5 19.5511 21.5 19.75Z", fill: "white" }),
|
|
72
|
+
/* @__PURE__ */ jsx("path", { d: "M8.75 6.75L8.9319 6.02239L8.78057 5.98456L8.6267 6.0102L8.75 6.75ZM14.75 8.25L14.5681 8.97761L14.8373 9.0449L15.0854 8.92082L14.75 8.25ZM21.0854 5.92082C21.4559 5.73558 21.6061 5.28507 21.4208 4.91459C21.2356 4.54411 20.7851 4.39394 20.4146 4.57918L21.0854 5.92082ZM2.8733 8.4898L8.8733 7.4898L8.6267 6.0102L2.6267 7.0102L2.8733 8.4898ZM8.5681 7.47761L14.5681 8.97761L14.9319 7.52239L8.9319 6.02239L8.5681 7.47761ZM15.0854 8.92082L21.0854 5.92082L20.4146 4.57918L14.4146 7.57918L15.0854 8.92082Z", fill: "white" })
|
|
73
|
+
] });
|
|
74
|
+
const ChartBarHorizontal = (props) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M20.25 9H16.5V5.25C16.5 5.05109 16.421 4.86032 16.2803 4.71967C16.1397 4.57902 15.9489 4.5 15.75 4.5H4.5V3.75C4.5 3.55109 4.42098 3.36032 4.28033 3.21967C4.13968 3.07902 3.94891 3 3.75 3C3.55109 3 3.36032 3.07902 3.21967 3.21967C3.07902 3.36032 3 3.55109 3 3.75V20.25C3 20.4489 3.07902 20.6397 3.21967 20.7803C3.36032 20.921 3.55109 21 3.75 21C3.94891 21 4.13968 20.921 4.28033 20.7803C4.42098 20.6397 4.5 20.4489 4.5 20.25V19.5H12.75C12.9489 19.5 13.1397 19.421 13.2803 19.2803C13.421 19.1397 13.5 18.9489 13.5 18.75V15H20.25C20.4489 15 20.6397 14.921 20.7803 14.7803C20.921 14.6397 21 14.4489 21 14.25V9.75C21 9.55109 20.921 9.36032 20.7803 9.21967C20.6397 9.07902 20.4489 9 20.25 9ZM15 6V9H4.5V6H15ZM12 18H4.5V15H12V18ZM19.5 13.5H4.5V10.5H19.5V13.5Z", fill: "white" }) });
|
|
75
|
+
const ChartDonut = (props) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M12.0003 2.25C11.8014 2.25 11.6106 2.32902 11.47 2.46967C11.3293 2.61032 11.2503 2.80109 11.2503 3V8.25C11.2503 8.44891 11.3293 8.63968 11.47 8.78033C11.6106 8.92098 11.8014 9 12.0003 9C12.6607 9.00015 13.3025 9.21819 13.8264 9.6203C14.3502 10.0224 14.7267 10.5861 14.8975 11.224C15.0683 11.8619 15.0239 12.5384 14.7711 13.1484C14.5183 13.7585 14.0713 14.2681 13.4993 14.5982C12.9274 14.9284 12.2625 15.0606 11.6078 14.9743C10.9531 14.888 10.3451 14.5882 9.87818 14.1212C9.41125 13.6542 9.11145 13.0462 9.02527 12.3915C8.93909 11.7368 9.07135 11.0719 9.40154 10.5C9.4508 10.4147 9.48278 10.3205 9.49564 10.2228C9.50849 10.1252 9.50198 10.0259 9.47647 9.93075C9.45097 9.83559 9.40696 9.7464 9.34697 9.66825C9.28698 9.59011 9.21218 9.52454 9.12685 9.47531L4.57998 6.85031C4.49466 6.80105 4.40048 6.76907 4.30281 6.75622C4.20513 6.74336 4.10588 6.74987 4.01073 6.77538C3.91557 6.80089 3.82637 6.84489 3.74823 6.90488C3.67008 6.96487 3.60452 7.03967 3.55529 7.125C2.48216 8.98371 2.05232 11.1446 2.33243 13.2725C2.61254 15.4004 3.58694 17.3764 5.10452 18.8941C6.62211 20.4117 8.59806 21.3863 10.7259 21.6665C12.8538 21.9468 15.0147 21.5171 16.8735 20.4441C18.7323 19.3711 20.1851 17.7147 21.0066 15.7319C21.8281 13.7491 21.9723 11.5506 21.4171 9.47742C20.8618 7.40424 19.6379 5.57222 17.9353 4.26547C16.2327 2.95872 14.1465 2.25028 12.0003 2.25ZM4.50873 8.54062L7.78154 10.4306C7.5953 10.9329 7.50006 11.4643 7.50029 12C7.50029 12.1434 7.50779 12.2812 7.52091 12.4237L3.87029 13.4062C3.5856 11.7571 3.80823 10.0605 4.50873 8.54062ZM4.25841 14.8509L7.91466 13.8722C8.22035 14.5385 8.68389 15.1203 9.26512 15.5671C9.84635 16.0139 10.5278 16.3122 11.2503 16.4363V20.2153C9.69763 20.0714 8.2173 19.4914 6.98016 18.5422C5.74301 17.593 4.79946 16.3134 4.25841 14.8509ZM12.7503 20.2153V16.4363C13.7984 16.2586 14.7498 15.7156 15.4359 14.9035C16.1219 14.0914 16.4983 13.0626 16.4983 11.9995C16.4983 10.9364 16.1219 9.90768 15.4359 9.09557C14.7498 8.28347 13.7984 7.74047 12.7503 7.56281V3.78375C14.7998 3.97101 16.7054 4.91756 18.0929 6.43761C19.4804 7.95767 20.2497 9.94144 20.2497 11.9995C20.2497 14.0576 19.4804 16.0414 18.0929 17.5614C16.7054 19.0815 14.7998 20.0281 12.7503 20.2153Z", fill: "white" }) });
|
|
76
|
+
const ChartHeatmap = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
77
|
+
/* @__PURE__ */ jsx("path", { d: "M21.5 19.75C21.5 19.9489 21.421 20.1397 21.2803 20.2803C21.1397 20.421 20.9489 20.5 20.75 20.5H2.75C2.55109 20.5 2.36032 20.421 2.21967 20.2803C2.07902 20.1397 2 19.9489 2 19.75V4.75C2 4.55109 2.07902 4.36032 2.21967 4.21967C2.36032 4.07902 2.55109 4 2.75 4C2.94891 4 3.13968 4.07902 3.28033 4.21967C3.42098 4.36032 3.5 4.55109 3.5 4.75V19H20.75C20.9489 19 21.1397 19.079 21.2803 19.2197C21.421 19.3603 21.5 19.5511 21.5 19.75Z", fill: "white" }),
|
|
78
|
+
/* @__PURE__ */ jsx("circle", { cx: "10.5", cy: "11.5", r: "2.5", fill: "white" }),
|
|
79
|
+
/* @__PURE__ */ jsx("circle", { cx: "16", cy: "15", r: "2", fill: "white" }),
|
|
80
|
+
/* @__PURE__ */ jsx("circle", { cx: "7", cy: "7", r: "1", fill: "white" }),
|
|
81
|
+
/* @__PURE__ */ jsx("circle", { cx: "14", cy: "8", r: "4", fill: "white" })
|
|
82
|
+
] });
|
|
83
|
+
const ChartScatter = (props) => /* @__PURE__ */ jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsx("path", { d: "M21.5 19.75C21.5 19.9489 21.421 20.1397 21.2803 20.2803C21.1397 20.421 20.9489 20.5 20.75 20.5H2.75C2.55109 20.5 2.36032 20.421 2.21967 20.2803C2.07902 20.1397 2 19.9489 2 19.75V4.75C2 4.55109 2.07902 4.36032 2.21967 4.21967C2.36032 4.07902 2.55109 4 2.75 4C2.94891 4 3.13968 4.07902 3.28033 4.21967C3.42098 4.36032 3.5 4.55109 3.5 4.75V19H20.75C20.9489 19 21.1397 19.079 21.2803 19.2197C21.421 19.3603 21.5 19.5511 21.5 19.75ZM12.125 15.25C12.3475 15.25 12.565 15.184 12.75 15.0604C12.935 14.9368 13.0792 14.7611 13.1644 14.5555C13.2495 14.35 13.2718 14.1238 13.2284 13.9055C13.185 13.6873 13.0778 13.4868 12.9205 13.3295C12.7632 13.1722 12.5627 13.065 12.3445 13.0216C12.1262 12.9782 11.9 13.0005 11.6945 13.0856C11.4889 13.1708 11.3132 13.315 11.1896 13.5C11.066 13.685 11 13.9025 11 14.125C11 14.4234 11.1185 14.7095 11.3295 14.9205C11.5405 15.1315 11.8266 15.25 12.125 15.25ZM9.875 10C10.0975 10 10.315 9.93402 10.5 9.8104C10.685 9.68679 10.8292 9.51109 10.9144 9.30552C10.9995 9.09995 11.0218 8.87375 10.9784 8.65552C10.935 8.43729 10.8278 8.23684 10.6705 8.0795C10.5132 7.92217 10.3127 7.81502 10.0945 7.77162C9.87625 7.72821 9.65005 7.75049 9.44448 7.83564C9.23891 7.92078 9.06321 8.06498 8.9396 8.24998C8.81598 8.43499 8.75 8.6525 8.75 8.875C8.75 9.17337 8.86853 9.45952 9.0795 9.6705C9.29048 9.88147 9.57663 10 9.875 10ZM6.875 16.75C7.0975 16.75 7.31501 16.684 7.50002 16.5604C7.68502 16.4368 7.82922 16.2611 7.91436 16.0555C7.99951 15.85 8.02179 15.6238 7.97838 15.4055C7.93498 15.1873 7.82783 14.9868 7.6705 14.8295C7.51316 14.6722 7.31271 14.565 7.09448 14.5216C6.87625 14.4782 6.65005 14.5005 6.44448 14.5856C6.23891 14.6708 6.06321 14.815 5.9396 15C5.81598 15.185 5.75 15.4025 5.75 15.625C5.75 15.9234 5.86853 16.2095 6.0795 16.4205C6.29048 16.6315 6.57663 16.75 6.875 16.75ZM15.875 12.25C16.0975 12.25 16.315 12.184 16.5 12.0604C16.685 11.9368 16.8292 11.7611 16.9144 11.5555C16.9995 11.35 17.0218 11.1238 16.9784 10.9055C16.935 10.6873 16.8278 10.4868 16.6705 10.3295C16.5132 10.1722 16.3127 10.065 16.0945 10.0216C15.8762 9.97821 15.65 10.0005 15.4445 10.0856C15.2389 10.1708 15.0632 10.315 14.9396 10.5C14.816 10.685 14.75 10.9025 14.75 11.125C14.75 11.4234 14.8685 11.7095 15.0795 11.9205C15.2905 12.1315 15.5766 12.25 15.875 12.25ZM18.125 8.5C18.3475 8.5 18.565 8.43402 18.75 8.3104C18.935 8.18679 19.0792 8.01109 19.1644 7.80552C19.2495 7.59995 19.2718 7.37375 19.2284 7.15552C19.185 6.93729 19.0778 6.73684 18.9205 6.5795C18.7632 6.42217 18.5627 6.31502 18.3445 6.27162C18.1262 6.22821 17.9 6.25049 17.6945 6.33564C17.4889 6.42078 17.3132 6.56498 17.1896 6.74998C17.066 6.93499 17 7.1525 17 7.375C17 7.67337 17.1185 7.95952 17.3295 8.1705C17.5405 8.38147 17.8266 8.5 18.125 8.5ZM16.25 15.625C16.25 15.8475 16.316 16.065 16.4396 16.25C16.5632 16.435 16.7389 16.5792 16.9445 16.6644C17.15 16.7495 17.3762 16.7718 17.5945 16.7284C17.8127 16.685 18.0132 16.5778 18.1705 16.4205C18.3278 16.2632 18.435 16.0627 18.4784 15.8445C18.5218 15.6262 18.4995 15.4 18.4144 15.1945C18.3292 14.9889 18.185 14.8132 18 14.6896C17.815 14.566 17.5975 14.5 17.375 14.5C17.0766 14.5 16.7905 14.6185 16.5795 14.8295C16.3685 15.0405 16.25 15.3266 16.25 15.625Z", fill: "white" }) });
|
|
84
|
+
const ChartStackedHorizontal = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
85
|
+
/* @__PURE__ */ jsx("path", { d: "M3.5 3L3.5 21", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
86
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 14.333L15.5 14.333V18C15.5 18.552 15.052 19 14.5 19H3.5L3.5 14.333Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
87
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 14.3301H10.5V17.9994C10.5 18.5518 10.2387 19.0001 9.91667 19.0001H3.5L3.5 14.3301Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
88
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 9.66699L20.5 9.66699C21.052 9.66699 21.5 10.115 21.5 10.667V13.334C21.5 13.886 21.052 14.334 20.5 14.334H3.5L3.5 9.66699Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
89
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 9.66992H12C12.276 9.66992 12.5 10.1182 12.5 10.6706V13.3393C12.5 13.8916 12.276 14.3399 12 14.3399H3.5L3.5 9.66992Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
90
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 5L17.5 5C18.052 5 18.5 5.448 18.5 6V9.667H3.5L3.5 5Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
91
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M3.5 5L10.0333 5C10.2909 5 10.5 5.44829 10.5 6.00064V9.67H3.5L3.5 5Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
92
|
+
] });
|
|
93
|
+
const ChartStackedVertical = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
94
|
+
/* @__PURE__ */ jsx("path", { d: "M3 21H21", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
95
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.333 21V9H18C18.552 9 19 9.448 19 10V21H14.333Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
96
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M14.3301 21V14H17.9994C18.5518 14 19.0001 14.2613 19.0001 14.5833V21H14.3301Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
97
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.66699 21L9.66699 4C9.66699 3.448 10.115 3 10.667 3H13.334C13.886 3 14.334 3.448 14.334 4V21H9.66699Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
98
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M9.66992 21V12.5C9.66992 12.224 10.1182 12 10.6706 12H13.3393C13.8916 12 14.3399 12.224 14.3399 12.5V21H9.66992Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
99
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 21L5 7C5 6.448 5.448 6 6 6H9.667V21H5Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
100
|
+
/* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M5 21V14.4667C5 14.2091 5.44829 14 6.00064 14H9.67V21H5Z", stroke: "white", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
101
|
+
] });
|
|
69
102
|
const InformationIcon = (props) => /* @__PURE__ */ jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
70
103
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", d: "M10.854 11.877h1.15v4.252M10.845 16.128h2.31" }),
|
|
71
104
|
/* @__PURE__ */ jsx("path", { stroke: "#161517", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5, d: "M11.946 7.872a.25.25 0 1 1-.25-.25" }),
|
|
@@ -718,6 +751,13 @@ const ICONS_MAP = {
|
|
|
718
751
|
cards: Cards,
|
|
719
752
|
"cell-tower": CellTower,
|
|
720
753
|
chat: ChatIcon,
|
|
754
|
+
"chart-area": ChartArea,
|
|
755
|
+
"chart-bar-horizontal": ChartBarHorizontal,
|
|
756
|
+
"chart-donut": ChartDonut,
|
|
757
|
+
"chart-heatmap": ChartHeatmap,
|
|
758
|
+
"chart-scatter": ChartScatter,
|
|
759
|
+
"chart-stacked-horizontal": ChartStackedHorizontal,
|
|
760
|
+
"chart-stacked-vertical": ChartStackedVertical,
|
|
721
761
|
check: CheckIcon$3,
|
|
722
762
|
"check-in-circle": CheckInCircle,
|
|
723
763
|
"chevron-down": ChevronDown,
|
|
@@ -7870,18 +7910,20 @@ const IconWrapper$3 = ({
|
|
|
7870
7910
|
width,
|
|
7871
7911
|
height,
|
|
7872
7912
|
children,
|
|
7913
|
+
ellipsisContent = true,
|
|
7873
7914
|
...props
|
|
7874
7915
|
}) => {
|
|
7916
|
+
const TextWrapper2 = ellipsisContent ? EllipsisContent : "div";
|
|
7875
7917
|
return /* @__PURE__ */ jsxs(LabelContainer$1, { $hasIcon: typeof icon === "string", $iconDir: iconDir, ...props, children: [
|
|
7876
7918
|
icon && iconDir === "start" && /* @__PURE__ */ jsx(SvgImage, { name: icon, size: size2, width, height }),
|
|
7877
|
-
/* @__PURE__ */ jsx(
|
|
7919
|
+
/* @__PURE__ */ jsx(TextWrapper2, { "data-testid": `${ellipsisContent ? "ellipsed" : "normal"}-icon-wrapper-text`, children }),
|
|
7878
7920
|
icon && iconDir === "end" && /* @__PURE__ */ jsx(SvgImage, { name: icon, size: size2, width, height })
|
|
7879
7921
|
] });
|
|
7880
7922
|
};
|
|
7881
7923
|
const Dropdown = (props) => /* @__PURE__ */ jsx($d08ef79370b62062$export$be92b6f5f03c0fe9, { ...props });
|
|
7882
7924
|
const DropdownMenuItem = styled(GenericMenuItem).withConfig({
|
|
7883
7925
|
componentId: "sc-18bhwbw-0"
|
|
7884
|
-
})(['position:relative;display:flex;&[data-state="open"]{', "}"], ({
|
|
7926
|
+
})(['position:relative;display:flex;min-height:32px;&[data-state="open"]{', "}"], ({
|
|
7885
7927
|
theme: theme2
|
|
7886
7928
|
}) => `
|
|
7887
7929
|
font: ${theme2.click.genericMenu.item.typography.label.hover};
|
|
@@ -7914,9 +7956,11 @@ DropdownTrigger.displayName = "DropdownTrigger";
|
|
|
7914
7956
|
Dropdown.Trigger = DropdownTrigger;
|
|
7915
7957
|
const DropdownMenuContent = styled(GenericMenuPanel).withConfig({
|
|
7916
7958
|
componentId: "sc-18bhwbw-2"
|
|
7917
|
-
})(["min-width:", ";flex-direction:column;z-index:1;"], ({
|
|
7959
|
+
})(["min-width:", ";flex-direction:column;z-index:1;overflow-y:scroll;max-height:calc( (var(--radix-", "-content-available-height) - 100px) );"], ({
|
|
7918
7960
|
theme: theme2
|
|
7919
|
-
}) => theme2.click.genericMenu.item.size.minWidth
|
|
7961
|
+
}) => theme2.click.genericMenu.item.size.minWidth, ({
|
|
7962
|
+
$type
|
|
7963
|
+
}) => $type);
|
|
7920
7964
|
const DropdownContent$1 = ({
|
|
7921
7965
|
sub,
|
|
7922
7966
|
children,
|
|
@@ -9373,9 +9417,10 @@ const Badge = ({
|
|
|
9373
9417
|
type,
|
|
9374
9418
|
dismissible,
|
|
9375
9419
|
onClose,
|
|
9420
|
+
ellipsisContent = true,
|
|
9376
9421
|
...props
|
|
9377
|
-
}) => /* @__PURE__ */ jsx(Wrapper$c, { $state: state, $size: size2, $type: type, ...props, children: /* @__PURE__ */ jsxs(Content$4, { children: [
|
|
9378
|
-
/* @__PURE__ */ jsx(BadgeContent, { as: IconWrapper$3, icon, iconDir, size: size2, $state: state, children: text2 }),
|
|
9422
|
+
}) => /* @__PURE__ */ jsx(Wrapper$c, { $state: state, $size: size2, $type: type, ...props, children: /* @__PURE__ */ jsxs(Content$4, { "data-testid": `${ellipsisContent ? "ellipsed" : "normal"}-badge-content`, children: [
|
|
9423
|
+
/* @__PURE__ */ jsx(BadgeContent, { as: IconWrapper$3, icon, iconDir, size: size2, $state: state, ellipsisContent, children: text2 }),
|
|
9379
9424
|
dismissible && /* @__PURE__ */ jsx(SvgContainer, { name: "cross", $state: state, as: SvgImage, onClick: onClose, "aria-label": "close" })
|
|
9380
9425
|
] }) });
|
|
9381
9426
|
const BigStat = ({
|
|
@@ -9612,6 +9657,110 @@ const ButtonIcon = styled(SvgImage).withConfig({
|
|
|
9612
9657
|
}) => theme2.click.button.basic.size.icon.all, ({
|
|
9613
9658
|
theme: theme2
|
|
9614
9659
|
}) => theme2.click.button.basic.size.icon.all);
|
|
9660
|
+
const Header$4 = styled.div.withConfig({
|
|
9661
|
+
componentId: "sc-1qnbjoa-0"
|
|
9662
|
+
})(["max-width:100%;gap:inherit;"]);
|
|
9663
|
+
const Description = styled.div.withConfig({
|
|
9664
|
+
componentId: "sc-1qnbjoa-1"
|
|
9665
|
+
})(["display:flex;flex-direction:column;align-self:start;gap:", ";flex:1;width:100%;"], ({
|
|
9666
|
+
theme: theme2
|
|
9667
|
+
}) => theme2.click.card.horizontal.space.gap);
|
|
9668
|
+
const Wrapper$a = styled.div.withConfig({
|
|
9669
|
+
componentId: "sc-1qnbjoa-2"
|
|
9670
|
+
})(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
|
|
9671
|
+
theme: theme2,
|
|
9672
|
+
$color,
|
|
9673
|
+
$isSelected,
|
|
9674
|
+
$disabled
|
|
9675
|
+
}) => `
|
|
9676
|
+
background: ${theme2.click.card.horizontal[$color].color.background.default};
|
|
9677
|
+
color: ${theme2.click.card.horizontal[$color].color.title.default};
|
|
9678
|
+
border-radius: ${theme2.click.card.horizontal.radii.all};
|
|
9679
|
+
border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "default"]};
|
|
9680
|
+
padding: ${theme2.click.card.horizontal.space.y} ${theme2.click.card.horizontal.space.x};
|
|
9681
|
+
gap: ${theme2.click.card.horizontal.space.gap};
|
|
9682
|
+
font: ${theme2.click.card.horizontal.typography.title.default};
|
|
9683
|
+
${Description} {
|
|
9684
|
+
color: ${theme2.click.card.horizontal[$color].color.description.default};
|
|
9685
|
+
font: ${theme2.click.card.horizontal.typography.description.default};
|
|
9686
|
+
}
|
|
9687
|
+
&:hover{
|
|
9688
|
+
background-color: ${theme2.click.card.horizontal[$color].color.background.hover};
|
|
9689
|
+
color: ${theme2.click.card.horizontal[$color].color.title.hover};
|
|
9690
|
+
border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "hover"]};
|
|
9691
|
+
cursor: pointer;
|
|
9692
|
+
font: ${theme2.click.card.horizontal.typography.title.hover};
|
|
9693
|
+
${Description} {
|
|
9694
|
+
color: ${theme2.click.card.horizontal[$color].color.description.hover};
|
|
9695
|
+
font: ${theme2.click.card.horizontal.typography.description.hover};
|
|
9696
|
+
}
|
|
9697
|
+
}
|
|
9698
|
+
|
|
9699
|
+
&:active, &:focus, &:focus-within {
|
|
9700
|
+
background-color: ${theme2.click.card.horizontal[$color].color.background.active};
|
|
9701
|
+
color: ${theme2.click.card.horizontal[$color].color.title.active};
|
|
9702
|
+
border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
|
|
9703
|
+
${Description} {
|
|
9704
|
+
color: ${theme2.click.card.horizontal[$color].color.description.active};
|
|
9705
|
+
font: ${theme2.click.card.horizontal.typography.description.active};
|
|
9706
|
+
}
|
|
9707
|
+
}
|
|
9708
|
+
${$disabled ? `
|
|
9709
|
+
pointer-events: none;
|
|
9710
|
+
&,
|
|
9711
|
+
&:hover,
|
|
9712
|
+
&:active, &:focus, &:focus-within {
|
|
9713
|
+
background-color: ${theme2.click.card.horizontal[$color].color.background.disabled};
|
|
9714
|
+
color: ${theme2.click.card.horizontal[$color].color.title.disabled};
|
|
9715
|
+
border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "disabled"]};
|
|
9716
|
+
cursor: not-allowed;
|
|
9717
|
+
${Description} {
|
|
9718
|
+
color: ${theme2.click.card.horizontal[$color].color.description.disabled};
|
|
9719
|
+
font: ${theme2.click.card.horizontal.typography.description.disabled};
|
|
9720
|
+
}
|
|
9721
|
+
},
|
|
9722
|
+
&:active, &:focus, &:focus-within {
|
|
9723
|
+
border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
|
|
9724
|
+
}
|
|
9725
|
+
` : ""}
|
|
9726
|
+
`);
|
|
9727
|
+
const CardIcon$1 = styled(SvgImage).withConfig({
|
|
9728
|
+
componentId: "sc-1qnbjoa-3"
|
|
9729
|
+
})(["", ""], ({
|
|
9730
|
+
theme: theme2
|
|
9731
|
+
}) => `
|
|
9732
|
+
height: ${theme2.click.card.horizontal.icon.size.all};
|
|
9733
|
+
width: ${theme2.click.card.horizontal.icon.size.all};
|
|
9734
|
+
`);
|
|
9735
|
+
const ContentWrapper = styled.div.withConfig({
|
|
9736
|
+
componentId: "sc-1qnbjoa-4"
|
|
9737
|
+
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
9738
|
+
const CardHorizontal = ({
|
|
9739
|
+
title,
|
|
9740
|
+
icon,
|
|
9741
|
+
description,
|
|
9742
|
+
disabled = false,
|
|
9743
|
+
isSelected,
|
|
9744
|
+
children,
|
|
9745
|
+
color = "default",
|
|
9746
|
+
badgeText,
|
|
9747
|
+
badgeState,
|
|
9748
|
+
badgeIcon,
|
|
9749
|
+
badgeIconDir,
|
|
9750
|
+
...props
|
|
9751
|
+
}) => {
|
|
9752
|
+
return /* @__PURE__ */ jsxs(Wrapper$a, { $disabled: disabled, $isSelected: isSelected, $color: color, tabIndex: 0, ...props, children: [
|
|
9753
|
+
icon && /* @__PURE__ */ jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
|
|
9754
|
+
/* @__PURE__ */ jsxs(ContentWrapper, { children: [
|
|
9755
|
+
title && /* @__PURE__ */ jsxs(Header$4, { as: Container, isResponsive: false, gap: "xs", justifyContent: "space-between", fillWidth: true, children: [
|
|
9756
|
+
/* @__PURE__ */ jsx(Container, { orientation: "horizontal", gap: "xs", isResponsive: false, fillWidth: false, grow: "1", children: title }),
|
|
9757
|
+
badgeText && /* @__PURE__ */ jsx(Container, { isResponsive: false, justifyContent: "end", fillWidth: false, "data-testid": "horizontal-card-badge", children: /* @__PURE__ */ jsx(Badge, { text: badgeText, size: "md", state: badgeState, icon: badgeIcon, iconDir: badgeIconDir }) })
|
|
9758
|
+
] }),
|
|
9759
|
+
description && /* @__PURE__ */ jsx(Description, { children: description }),
|
|
9760
|
+
children && /* @__PURE__ */ jsx(Description, { children })
|
|
9761
|
+
] })
|
|
9762
|
+
] });
|
|
9763
|
+
};
|
|
9615
9764
|
const Title$2 = forwardRef(({
|
|
9616
9765
|
align,
|
|
9617
9766
|
size: size2,
|
|
@@ -9665,111 +9814,6 @@ const CuiText = styled.p.withConfig({
|
|
|
9665
9814
|
}) => $fillWidth && "width: 100%");
|
|
9666
9815
|
_Text.displayName = "Text";
|
|
9667
9816
|
const Text = forwardRef(_Text);
|
|
9668
|
-
const Header$4 = styled.div.withConfig({
|
|
9669
|
-
componentId: "sc-1drx130-0"
|
|
9670
|
-
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
9671
|
-
const HeaderLeft = styled.div.withConfig({
|
|
9672
|
-
componentId: "sc-1drx130-1"
|
|
9673
|
-
})(["display:flex;align-items:center;gap:", ";h3,svg{color:", ";}"], ({
|
|
9674
|
-
theme: theme2
|
|
9675
|
-
}) => theme2.click.card.secondary.space.gap, ({
|
|
9676
|
-
$disabled,
|
|
9677
|
-
theme: theme2
|
|
9678
|
-
}) => $disabled == true ? theme2.click.global.color.text.muted : theme2.click.global.color.text.default);
|
|
9679
|
-
const Content$3 = styled.div.withConfig({
|
|
9680
|
-
componentId: "sc-1drx130-2"
|
|
9681
|
-
})(["display:flex;flex-direction:column;flex:1;"]);
|
|
9682
|
-
const CustomIcon$1 = styled.img.withConfig({
|
|
9683
|
-
componentId: "sc-1drx130-3"
|
|
9684
|
-
})(["height:", ";width:", ";"], ({
|
|
9685
|
-
theme: theme2
|
|
9686
|
-
}) => theme2.click.image.lg.size.height, ({
|
|
9687
|
-
theme: theme2
|
|
9688
|
-
}) => theme2.click.image.lg.size.width);
|
|
9689
|
-
const InfoLink = styled.a.withConfig({
|
|
9690
|
-
componentId: "sc-1drx130-4"
|
|
9691
|
-
})(["display:flex;align-items:center;color:", ";gap:", ";text-decoration:none;"], ({
|
|
9692
|
-
theme: theme2
|
|
9693
|
-
}) => theme2.click.card.secondary.color.link.default, ({
|
|
9694
|
-
theme: theme2
|
|
9695
|
-
}) => theme2.click.card.secondary.space.link.gap);
|
|
9696
|
-
const LinkIconContainer = styled(SvgImage).withConfig({
|
|
9697
|
-
componentId: "sc-1drx130-5"
|
|
9698
|
-
})(["color:", ";height:", ";width:", ";"], ({
|
|
9699
|
-
theme: theme2
|
|
9700
|
-
}) => theme2.click.card.secondary.color.link.default, ({
|
|
9701
|
-
theme: theme2
|
|
9702
|
-
}) => theme2.click.image.md.size.height, ({
|
|
9703
|
-
theme: theme2
|
|
9704
|
-
}) => theme2.click.image.md.size.width);
|
|
9705
|
-
const LinkText = styled(Text).withConfig({
|
|
9706
|
-
componentId: "sc-1drx130-6"
|
|
9707
|
-
})([""]);
|
|
9708
|
-
const LinkIcon = styled(LinkIconContainer).withConfig({
|
|
9709
|
-
componentId: "sc-1drx130-7"
|
|
9710
|
-
})([""]);
|
|
9711
|
-
const Wrapper$a = styled.div.withConfig({
|
|
9712
|
-
componentId: "sc-1drx130-8"
|
|
9713
|
-
})(["background-color:", ";border-radius:", ";border:", ";max-width:420px;min-width:320px;display:flex;flex-direction:column;padding:", ";gap:", ";box-shadow:", ";&:hover,:focus{background-color:", ";cursor:pointer;", ",", "{color:", ';}}&[aria-disabled="true"],&[aria-disabled="true"]:hover,&[aria-disabled="true"]:focus,&[aria-disabled="true"]:active{pointer-events:none;', "}"], ({
|
|
9714
|
-
theme: theme2
|
|
9715
|
-
}) => theme2.click.card.secondary.color.background.default, ({
|
|
9716
|
-
theme: theme2
|
|
9717
|
-
}) => theme2.click.card.secondary.radii.all, ({
|
|
9718
|
-
theme: theme2
|
|
9719
|
-
}) => `1px solid ${theme2.click.card.secondary.color.stroke.default}`, ({
|
|
9720
|
-
theme: theme2
|
|
9721
|
-
}) => theme2.click.card.secondary.space.all, ({
|
|
9722
|
-
theme: theme2
|
|
9723
|
-
}) => theme2.click.card.secondary.space.gap, ({
|
|
9724
|
-
$hasShadow,
|
|
9725
|
-
theme: theme2
|
|
9726
|
-
}) => $hasShadow ? theme2.shadow[1] : "none", ({
|
|
9727
|
-
theme: theme2
|
|
9728
|
-
}) => theme2.click.card.secondary.color.background.hover, LinkText, LinkIcon, ({
|
|
9729
|
-
theme: theme2
|
|
9730
|
-
}) => theme2.click.card.secondary.color.link.hover, ({
|
|
9731
|
-
theme: theme2
|
|
9732
|
-
}) => `
|
|
9733
|
-
background-color: ${theme2.click.card.secondary.color.background.disabled};
|
|
9734
|
-
color: ${theme2.click.card.secondary.color.title.disabled};
|
|
9735
|
-
border: 1px solid ${theme2.click.card.secondary.color.stroke.disabled};
|
|
9736
|
-
cursor: not-allowed;
|
|
9737
|
-
|
|
9738
|
-
${LinkText},
|
|
9739
|
-
${LinkIcon} {
|
|
9740
|
-
color: ${theme2.click.card.secondary.color.link.disabled};
|
|
9741
|
-
}
|
|
9742
|
-
`);
|
|
9743
|
-
const CardSecondary = ({
|
|
9744
|
-
title,
|
|
9745
|
-
icon,
|
|
9746
|
-
iconUrl,
|
|
9747
|
-
badgeState,
|
|
9748
|
-
badgeText = "",
|
|
9749
|
-
hasShadow = false,
|
|
9750
|
-
disabled = false,
|
|
9751
|
-
description,
|
|
9752
|
-
infoUrl,
|
|
9753
|
-
infoText,
|
|
9754
|
-
infoIcon = "chevron-right",
|
|
9755
|
-
infoIconSize = "md",
|
|
9756
|
-
...props
|
|
9757
|
-
}) => {
|
|
9758
|
-
return /* @__PURE__ */ jsxs(Wrapper$a, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
|
|
9759
|
-
/* @__PURE__ */ jsxs(Header$4, { children: [
|
|
9760
|
-
/* @__PURE__ */ jsxs(HeaderLeft, { $disabled: disabled, children: [
|
|
9761
|
-
iconUrl ? /* @__PURE__ */ jsx(CustomIcon$1, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
|
|
9762
|
-
/* @__PURE__ */ jsx(Title$2, { type: "h3", children: title })
|
|
9763
|
-
] }),
|
|
9764
|
-
badgeText && /* @__PURE__ */ jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
|
|
9765
|
-
] }),
|
|
9766
|
-
/* @__PURE__ */ jsx(Content$3, { children: /* @__PURE__ */ jsx(Text, { color: "muted", children: description }) }),
|
|
9767
|
-
(infoUrl || infoText) && /* @__PURE__ */ jsxs(InfoLink, { href: disabled ? void 0 : infoUrl, as: disabled || !infoUrl || infoUrl.length === 0 ? "div" : "a", children: [
|
|
9768
|
-
/* @__PURE__ */ jsx(LinkText, { children: infoText }),
|
|
9769
|
-
/* @__PURE__ */ jsx(LinkIcon, { size: infoIconSize, name: infoIcon })
|
|
9770
|
-
] })
|
|
9771
|
-
] });
|
|
9772
|
-
};
|
|
9773
9817
|
const _Container = ({
|
|
9774
9818
|
component,
|
|
9775
9819
|
alignItems,
|
|
@@ -9931,7 +9975,7 @@ const Header$3 = styled.div.withConfig({
|
|
|
9931
9975
|
$size = "md",
|
|
9932
9976
|
theme: theme2
|
|
9933
9977
|
}) => theme2.click.card.primary.size.icon[$size].all);
|
|
9934
|
-
const Content$
|
|
9978
|
+
const Content$3 = styled.div.withConfig({
|
|
9935
9979
|
componentId: "sc-2dguvi-2"
|
|
9936
9980
|
})(["width:100%;display:flex;flex-direction:column;align-self:", ";gap:", ";flex:1;"], ({
|
|
9937
9981
|
$alignContent = "center"
|
|
@@ -9975,7 +10019,7 @@ const Card = ({
|
|
|
9975
10019
|
iconUrl ? /* @__PURE__ */ jsx("img", { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsx(SvgImage, { name: icon, "aria-hidden": true }),
|
|
9976
10020
|
title && /* @__PURE__ */ jsx(Title$2, { type: "h3", children: title })
|
|
9977
10021
|
] }),
|
|
9978
|
-
(description || children) && /* @__PURE__ */ jsxs(Content$
|
|
10022
|
+
(description || children) && /* @__PURE__ */ jsxs(Content$3, { $size: size2, $alignContent: alignContent, children: [
|
|
9979
10023
|
description && /* @__PURE__ */ jsx(Text, { color: "muted", align: convertCardAlignToTextAlign(alignContent ?? "start"), children: description }),
|
|
9980
10024
|
children
|
|
9981
10025
|
] }),
|
|
@@ -9984,110 +10028,6 @@ const Card = ({
|
|
|
9984
10028
|
] });
|
|
9985
10029
|
};
|
|
9986
10030
|
const CardPrimary = withTopBadge(Card);
|
|
9987
|
-
const Header$2 = styled.div.withConfig({
|
|
9988
|
-
componentId: "sc-1qnbjoa-0"
|
|
9989
|
-
})(["max-width:100%;gap:inherit;"]);
|
|
9990
|
-
const Description = styled.div.withConfig({
|
|
9991
|
-
componentId: "sc-1qnbjoa-1"
|
|
9992
|
-
})(["display:flex;flex-direction:column;align-self:start;gap:", ";flex:1;width:100%;"], ({
|
|
9993
|
-
theme: theme2
|
|
9994
|
-
}) => theme2.click.card.horizontal.space.gap);
|
|
9995
|
-
const Wrapper$7 = styled.div.withConfig({
|
|
9996
|
-
componentId: "sc-1qnbjoa-2"
|
|
9997
|
-
})(["display:inline-flex;width:100%;max-width:100%;align-items:center;justify-content:flex-start;", ""], ({
|
|
9998
|
-
theme: theme2,
|
|
9999
|
-
$color,
|
|
10000
|
-
$isSelected,
|
|
10001
|
-
$disabled
|
|
10002
|
-
}) => `
|
|
10003
|
-
background: ${theme2.click.card.horizontal[$color].color.background.default};
|
|
10004
|
-
color: ${theme2.click.card.horizontal[$color].color.title.default};
|
|
10005
|
-
border-radius: ${theme2.click.card.horizontal.radii.all};
|
|
10006
|
-
border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "default"]};
|
|
10007
|
-
padding: ${theme2.click.card.horizontal.space.y} ${theme2.click.card.horizontal.space.x};
|
|
10008
|
-
gap: ${theme2.click.card.horizontal.space.gap};
|
|
10009
|
-
font: ${theme2.click.card.horizontal.typography.title.default};
|
|
10010
|
-
${Description} {
|
|
10011
|
-
color: ${theme2.click.card.horizontal[$color].color.description.default};
|
|
10012
|
-
font: ${theme2.click.card.horizontal.typography.description.default};
|
|
10013
|
-
}
|
|
10014
|
-
&:hover{
|
|
10015
|
-
background-color: ${theme2.click.card.horizontal[$color].color.background.hover};
|
|
10016
|
-
color: ${theme2.click.card.horizontal[$color].color.title.hover};
|
|
10017
|
-
border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "hover"]};
|
|
10018
|
-
cursor: pointer;
|
|
10019
|
-
font: ${theme2.click.card.horizontal.typography.title.hover};
|
|
10020
|
-
${Description} {
|
|
10021
|
-
color: ${theme2.click.card.horizontal[$color].color.description.hover};
|
|
10022
|
-
font: ${theme2.click.card.horizontal.typography.description.hover};
|
|
10023
|
-
}
|
|
10024
|
-
}
|
|
10025
|
-
|
|
10026
|
-
&:active, &:focus, &:focus-within {
|
|
10027
|
-
background-color: ${theme2.click.card.horizontal[$color].color.background.active};
|
|
10028
|
-
color: ${theme2.click.card.horizontal[$color].color.title.active};
|
|
10029
|
-
border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
|
|
10030
|
-
${Description} {
|
|
10031
|
-
color: ${theme2.click.card.horizontal[$color].color.description.active};
|
|
10032
|
-
font: ${theme2.click.card.horizontal.typography.description.active};
|
|
10033
|
-
}
|
|
10034
|
-
}
|
|
10035
|
-
${$disabled ? `
|
|
10036
|
-
pointer-events: none;
|
|
10037
|
-
&,
|
|
10038
|
-
&:hover,
|
|
10039
|
-
&:active, &:focus, &:focus-within {
|
|
10040
|
-
background-color: ${theme2.click.card.horizontal[$color].color.background.disabled};
|
|
10041
|
-
color: ${theme2.click.card.horizontal[$color].color.title.disabled};
|
|
10042
|
-
border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke[$isSelected ? "active" : "disabled"]};
|
|
10043
|
-
cursor: not-allowed;
|
|
10044
|
-
${Description} {
|
|
10045
|
-
color: ${theme2.click.card.horizontal[$color].color.description.disabled};
|
|
10046
|
-
font: ${theme2.click.card.horizontal.typography.description.disabled};
|
|
10047
|
-
}
|
|
10048
|
-
},
|
|
10049
|
-
&:active, &:focus, &:focus-within {
|
|
10050
|
-
border: 1px solid ${theme2.click.card.horizontal[$color].color.stroke.active};
|
|
10051
|
-
}
|
|
10052
|
-
` : ""}
|
|
10053
|
-
`);
|
|
10054
|
-
const CardIcon$1 = styled(SvgImage).withConfig({
|
|
10055
|
-
componentId: "sc-1qnbjoa-3"
|
|
10056
|
-
})(["", ""], ({
|
|
10057
|
-
theme: theme2
|
|
10058
|
-
}) => `
|
|
10059
|
-
height: ${theme2.click.card.horizontal.icon.size.all};
|
|
10060
|
-
width: ${theme2.click.card.horizontal.icon.size.all};
|
|
10061
|
-
`);
|
|
10062
|
-
const ContentWrapper = styled.div.withConfig({
|
|
10063
|
-
componentId: "sc-1qnbjoa-4"
|
|
10064
|
-
})(["display:flex;flex-direction:column;width:100%;"]);
|
|
10065
|
-
const CardHorizontal = ({
|
|
10066
|
-
title,
|
|
10067
|
-
icon,
|
|
10068
|
-
description,
|
|
10069
|
-
disabled = false,
|
|
10070
|
-
isSelected,
|
|
10071
|
-
children,
|
|
10072
|
-
color = "default",
|
|
10073
|
-
badgeText,
|
|
10074
|
-
badgeState,
|
|
10075
|
-
badgeIcon,
|
|
10076
|
-
badgeIconDir,
|
|
10077
|
-
...props
|
|
10078
|
-
}) => {
|
|
10079
|
-
return /* @__PURE__ */ jsxs(Wrapper$7, { $disabled: disabled, $isSelected: isSelected, $color: color, tabIndex: 0, ...props, children: [
|
|
10080
|
-
icon && /* @__PURE__ */ jsx(CardIcon$1, { name: icon, "aria-hidden": true }),
|
|
10081
|
-
/* @__PURE__ */ jsxs(ContentWrapper, { children: [
|
|
10082
|
-
title && /* @__PURE__ */ jsxs(Header$2, { as: Container, isResponsive: false, gap: "xs", justifyContent: "space-between", fillWidth: true, children: [
|
|
10083
|
-
/* @__PURE__ */ jsx(Container, { orientation: "horizontal", gap: "xs", isResponsive: false, fillWidth: false, grow: "1", children: title }),
|
|
10084
|
-
badgeText && /* @__PURE__ */ jsx(Container, { isResponsive: false, justifyContent: "end", fillWidth: false, "data-testid": "horizontal-card-badge", children: /* @__PURE__ */ jsx(Badge, { text: badgeText, size: "md", state: badgeState, icon: badgeIcon, iconDir: badgeIconDir }) })
|
|
10085
|
-
] }),
|
|
10086
|
-
description && /* @__PURE__ */ jsx(Description, { children: description }),
|
|
10087
|
-
children && /* @__PURE__ */ jsx(Description, { children })
|
|
10088
|
-
] })
|
|
10089
|
-
] });
|
|
10090
|
-
};
|
|
10091
10031
|
const Background = styled.div.withConfig({
|
|
10092
10032
|
componentId: "sc-6jamj6-0"
|
|
10093
10033
|
})(["", ""], ({
|
|
@@ -10103,7 +10043,7 @@ const Background = styled.div.withConfig({
|
|
|
10103
10043
|
background: ${theme2.click.card.promotion.color.stroke.focus};
|
|
10104
10044
|
}
|
|
10105
10045
|
`);
|
|
10106
|
-
const Wrapper$
|
|
10046
|
+
const Wrapper$7 = styled.div.withConfig({
|
|
10107
10047
|
componentId: "sc-6jamj6-1"
|
|
10108
10048
|
})(["display:flex;width:100%;align-items:center;justify-content:flex-start;cursor:pointer;", ""], ({
|
|
10109
10049
|
theme: theme2
|
|
@@ -10144,12 +10084,117 @@ const CardPromotion = ({
|
|
|
10144
10084
|
...props
|
|
10145
10085
|
}) => {
|
|
10146
10086
|
const [isVisible, setIsVisible] = useState(true);
|
|
10147
|
-
return isVisible ? /* @__PURE__ */ jsx(Background, { children: /* @__PURE__ */ jsxs(Wrapper$
|
|
10087
|
+
return isVisible ? /* @__PURE__ */ jsx(Background, { children: /* @__PURE__ */ jsxs(Wrapper$7, { $dismissible: dismissible, ...props, children: [
|
|
10148
10088
|
/* @__PURE__ */ jsx(CardIcon, { name: icon, "aria-hidden": true }),
|
|
10149
10089
|
/* @__PURE__ */ jsx(Text, { children: label }),
|
|
10150
10090
|
dismissible && /* @__PURE__ */ jsx(DismissWrapper, { "data-testid": "click-alert-dismiss-button", onClick: () => setIsVisible(false), children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", "aria-label": "close" }) })
|
|
10151
10091
|
] }) }) : null;
|
|
10152
10092
|
};
|
|
10093
|
+
const Header$2 = styled.div.withConfig({
|
|
10094
|
+
componentId: "sc-1drx130-0"
|
|
10095
|
+
})(["display:flex;justify-content:space-between;align-items:center;"]);
|
|
10096
|
+
const HeaderLeft = styled.div.withConfig({
|
|
10097
|
+
componentId: "sc-1drx130-1"
|
|
10098
|
+
})(["display:flex;align-items:center;gap:", ";h3,svg{color:", ";}"], ({
|
|
10099
|
+
theme: theme2
|
|
10100
|
+
}) => theme2.click.card.secondary.space.gap, ({
|
|
10101
|
+
$disabled,
|
|
10102
|
+
theme: theme2
|
|
10103
|
+
}) => $disabled == true ? theme2.click.global.color.text.muted : theme2.click.global.color.text.default);
|
|
10104
|
+
const Content$2 = styled.div.withConfig({
|
|
10105
|
+
componentId: "sc-1drx130-2"
|
|
10106
|
+
})(["display:flex;flex-direction:column;flex:1;"]);
|
|
10107
|
+
const CustomIcon$1 = styled.img.withConfig({
|
|
10108
|
+
componentId: "sc-1drx130-3"
|
|
10109
|
+
})(["height:", ";width:", ";"], ({
|
|
10110
|
+
theme: theme2
|
|
10111
|
+
}) => theme2.click.image.lg.size.height, ({
|
|
10112
|
+
theme: theme2
|
|
10113
|
+
}) => theme2.click.image.lg.size.width);
|
|
10114
|
+
const InfoLink = styled.a.withConfig({
|
|
10115
|
+
componentId: "sc-1drx130-4"
|
|
10116
|
+
})(["display:flex;align-items:center;color:", ";gap:", ";text-decoration:none;"], ({
|
|
10117
|
+
theme: theme2
|
|
10118
|
+
}) => theme2.click.card.secondary.color.link.default, ({
|
|
10119
|
+
theme: theme2
|
|
10120
|
+
}) => theme2.click.card.secondary.space.link.gap);
|
|
10121
|
+
const LinkIconContainer = styled(SvgImage).withConfig({
|
|
10122
|
+
componentId: "sc-1drx130-5"
|
|
10123
|
+
})(["color:", ";height:", ";width:", ";"], ({
|
|
10124
|
+
theme: theme2
|
|
10125
|
+
}) => theme2.click.card.secondary.color.link.default, ({
|
|
10126
|
+
theme: theme2
|
|
10127
|
+
}) => theme2.click.image.md.size.height, ({
|
|
10128
|
+
theme: theme2
|
|
10129
|
+
}) => theme2.click.image.md.size.width);
|
|
10130
|
+
const LinkText = styled(Text).withConfig({
|
|
10131
|
+
componentId: "sc-1drx130-6"
|
|
10132
|
+
})([""]);
|
|
10133
|
+
const LinkIcon = styled(LinkIconContainer).withConfig({
|
|
10134
|
+
componentId: "sc-1drx130-7"
|
|
10135
|
+
})([""]);
|
|
10136
|
+
const Wrapper$6 = styled.div.withConfig({
|
|
10137
|
+
componentId: "sc-1drx130-8"
|
|
10138
|
+
})(["background-color:", ";border-radius:", ";border:", ";max-width:420px;min-width:320px;display:flex;flex-direction:column;padding:", ";gap:", ";box-shadow:", ";&:hover,:focus{background-color:", ";cursor:pointer;", ",", "{color:", ';}}&[aria-disabled="true"],&[aria-disabled="true"]:hover,&[aria-disabled="true"]:focus,&[aria-disabled="true"]:active{pointer-events:none;', "}"], ({
|
|
10139
|
+
theme: theme2
|
|
10140
|
+
}) => theme2.click.card.secondary.color.background.default, ({
|
|
10141
|
+
theme: theme2
|
|
10142
|
+
}) => theme2.click.card.secondary.radii.all, ({
|
|
10143
|
+
theme: theme2
|
|
10144
|
+
}) => `1px solid ${theme2.click.card.secondary.color.stroke.default}`, ({
|
|
10145
|
+
theme: theme2
|
|
10146
|
+
}) => theme2.click.card.secondary.space.all, ({
|
|
10147
|
+
theme: theme2
|
|
10148
|
+
}) => theme2.click.card.secondary.space.gap, ({
|
|
10149
|
+
$hasShadow,
|
|
10150
|
+
theme: theme2
|
|
10151
|
+
}) => $hasShadow ? theme2.shadow[1] : "none", ({
|
|
10152
|
+
theme: theme2
|
|
10153
|
+
}) => theme2.click.card.secondary.color.background.hover, LinkText, LinkIcon, ({
|
|
10154
|
+
theme: theme2
|
|
10155
|
+
}) => theme2.click.card.secondary.color.link.hover, ({
|
|
10156
|
+
theme: theme2
|
|
10157
|
+
}) => `
|
|
10158
|
+
background-color: ${theme2.click.card.secondary.color.background.disabled};
|
|
10159
|
+
color: ${theme2.click.card.secondary.color.title.disabled};
|
|
10160
|
+
border: 1px solid ${theme2.click.card.secondary.color.stroke.disabled};
|
|
10161
|
+
cursor: not-allowed;
|
|
10162
|
+
|
|
10163
|
+
${LinkText},
|
|
10164
|
+
${LinkIcon} {
|
|
10165
|
+
color: ${theme2.click.card.secondary.color.link.disabled};
|
|
10166
|
+
}
|
|
10167
|
+
`);
|
|
10168
|
+
const CardSecondary = ({
|
|
10169
|
+
title,
|
|
10170
|
+
icon,
|
|
10171
|
+
iconUrl,
|
|
10172
|
+
badgeState,
|
|
10173
|
+
badgeText = "",
|
|
10174
|
+
hasShadow = false,
|
|
10175
|
+
disabled = false,
|
|
10176
|
+
description,
|
|
10177
|
+
infoUrl,
|
|
10178
|
+
infoText,
|
|
10179
|
+
infoIcon = "chevron-right",
|
|
10180
|
+
infoIconSize = "md",
|
|
10181
|
+
...props
|
|
10182
|
+
}) => {
|
|
10183
|
+
return /* @__PURE__ */ jsxs(Wrapper$6, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
|
|
10184
|
+
/* @__PURE__ */ jsxs(Header$2, { children: [
|
|
10185
|
+
/* @__PURE__ */ jsxs(HeaderLeft, { $disabled: disabled, children: [
|
|
10186
|
+
iconUrl ? /* @__PURE__ */ jsx(CustomIcon$1, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
|
|
10187
|
+
/* @__PURE__ */ jsx(Title$2, { type: "h3", children: title })
|
|
10188
|
+
] }),
|
|
10189
|
+
badgeText && /* @__PURE__ */ jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
|
|
10190
|
+
] }),
|
|
10191
|
+
/* @__PURE__ */ jsx(Content$2, { children: /* @__PURE__ */ jsx(Text, { color: "muted", children: description }) }),
|
|
10192
|
+
(infoUrl || infoText) && /* @__PURE__ */ jsxs(InfoLink, { href: disabled ? void 0 : infoUrl, as: disabled || !infoUrl || infoUrl.length === 0 ? "div" : "a", children: [
|
|
10193
|
+
/* @__PURE__ */ jsx(LinkText, { children: infoText }),
|
|
10194
|
+
/* @__PURE__ */ jsx(LinkIcon, { size: infoIconSize, name: infoIcon })
|
|
10195
|
+
] })
|
|
10196
|
+
] });
|
|
10197
|
+
};
|
|
10153
10198
|
function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
|
|
10154
10199
|
const ref = useRef({
|
|
10155
10200
|
value,
|
|
@@ -14534,6 +14579,1088 @@ const CodeBlock = ({
|
|
|
14534
14579
|
}, showLineNumbers, wrapLines: wrap || wrapLines, wrapLongLines: wrap || wrapLines, children })
|
|
14535
14580
|
] });
|
|
14536
14581
|
};
|
|
14582
|
+
const ActionsWrapper = styled.div.withConfig({
|
|
14583
|
+
componentId: "sc-6eozxy-0"
|
|
14584
|
+
})(["display:flex;justify-content:flex-end;gap:", ";"], (props) => props.theme.click.dialog.space.gap);
|
|
14585
|
+
const DialogContent$1 = styled.div.withConfig({
|
|
14586
|
+
componentId: "sc-6eozxy-1"
|
|
14587
|
+
})(["overflow:hidden;display:flex;flex-direction:column;"]);
|
|
14588
|
+
const ConfirmationDialog = ({
|
|
14589
|
+
children,
|
|
14590
|
+
disabled,
|
|
14591
|
+
loading,
|
|
14592
|
+
message,
|
|
14593
|
+
onCancel,
|
|
14594
|
+
onConfirm,
|
|
14595
|
+
open: open2,
|
|
14596
|
+
primaryActionLabel = "Confirm",
|
|
14597
|
+
primaryActionType = "primary",
|
|
14598
|
+
secondaryActionLabel = "Cancel",
|
|
14599
|
+
showClose,
|
|
14600
|
+
title,
|
|
14601
|
+
...props
|
|
14602
|
+
}) => {
|
|
14603
|
+
if (children && message) {
|
|
14604
|
+
throw new Error("You can't pass children and message props at the same time");
|
|
14605
|
+
}
|
|
14606
|
+
return /* @__PURE__ */ jsx(Dialog, { open: open2, onOpenChange: (open22) => {
|
|
14607
|
+
!open22 && onCancel && onCancel();
|
|
14608
|
+
}, children: /* @__PURE__ */ jsxs(DialogContent$1, { as: Dialog.Content, title, showClose, ...props, children: [
|
|
14609
|
+
/* @__PURE__ */ jsx(Container, { overflow: "auto", grow: "1", orientation: "vertical", children: children ? children : /* @__PURE__ */ jsx(Text, { children: message }) }),
|
|
14610
|
+
/* @__PURE__ */ jsx(Separator, { size: "xl" }),
|
|
14611
|
+
/* @__PURE__ */ jsxs(ActionsWrapper, { children: [
|
|
14612
|
+
/* @__PURE__ */ jsx(Dialog.Close, { label: secondaryActionLabel, "data-testid": "cancel-action-button" }),
|
|
14613
|
+
/* @__PURE__ */ jsx(Dialog.Close, { loading: !!loading, disabled: !!disabled || !!loading, type: primaryActionType, label: primaryActionLabel, onClick: () => {
|
|
14614
|
+
if (onConfirm) {
|
|
14615
|
+
onConfirm();
|
|
14616
|
+
}
|
|
14617
|
+
}, "data-testid": "confirm-action-button" })
|
|
14618
|
+
] })
|
|
14619
|
+
] }) });
|
|
14620
|
+
};
|
|
14621
|
+
const $1b0217ee4a91d156$var$CONTEXT_MENU_NAME = "ContextMenu";
|
|
14622
|
+
const [$1b0217ee4a91d156$var$createContextMenuContext, $1b0217ee4a91d156$export$1059331f43ddcc82] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($1b0217ee4a91d156$var$CONTEXT_MENU_NAME, [
|
|
14623
|
+
$6cc32821e9371a1c$export$4027731b685e72eb
|
|
14624
|
+
]);
|
|
14625
|
+
const $1b0217ee4a91d156$var$useMenuScope = $6cc32821e9371a1c$export$4027731b685e72eb();
|
|
14626
|
+
const [$1b0217ee4a91d156$var$ContextMenuProvider, $1b0217ee4a91d156$var$useContextMenuContext] = $1b0217ee4a91d156$var$createContextMenuContext($1b0217ee4a91d156$var$CONTEXT_MENU_NAME);
|
|
14627
|
+
const $1b0217ee4a91d156$export$8dc6765e8be191c7 = (props) => {
|
|
14628
|
+
const { __scopeContextMenu, children, onOpenChange, dir, modal = true } = props;
|
|
14629
|
+
const [open1, setOpen] = useState(false);
|
|
14630
|
+
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
14631
|
+
const handleOpenChangeProp = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onOpenChange);
|
|
14632
|
+
const handleOpenChange = useCallback((open2) => {
|
|
14633
|
+
setOpen(open2);
|
|
14634
|
+
handleOpenChangeProp(open2);
|
|
14635
|
+
}, [
|
|
14636
|
+
handleOpenChangeProp
|
|
14637
|
+
]);
|
|
14638
|
+
return /* @__PURE__ */ createElement$1($1b0217ee4a91d156$var$ContextMenuProvider, {
|
|
14639
|
+
scope: __scopeContextMenu,
|
|
14640
|
+
open: open1,
|
|
14641
|
+
onOpenChange: handleOpenChange,
|
|
14642
|
+
modal
|
|
14643
|
+
}, /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$1({}, menuScope, {
|
|
14644
|
+
dir,
|
|
14645
|
+
open: open1,
|
|
14646
|
+
onOpenChange: handleOpenChange,
|
|
14647
|
+
modal
|
|
14648
|
+
}), children));
|
|
14649
|
+
};
|
|
14650
|
+
const $1b0217ee4a91d156$var$TRIGGER_NAME = "ContextMenuTrigger";
|
|
14651
|
+
const $1b0217ee4a91d156$export$be6fc7b1d5b0beb9 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
14652
|
+
const { __scopeContextMenu, disabled = false, ...triggerProps } = props;
|
|
14653
|
+
const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$TRIGGER_NAME, __scopeContextMenu);
|
|
14654
|
+
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
14655
|
+
const pointRef = useRef({
|
|
14656
|
+
x: 0,
|
|
14657
|
+
y: 0
|
|
14658
|
+
});
|
|
14659
|
+
const virtualRef = useRef({
|
|
14660
|
+
getBoundingClientRect: () => DOMRect.fromRect({
|
|
14661
|
+
width: 0,
|
|
14662
|
+
height: 0,
|
|
14663
|
+
...pointRef.current
|
|
14664
|
+
})
|
|
14665
|
+
});
|
|
14666
|
+
const longPressTimerRef = useRef(0);
|
|
14667
|
+
const clearLongPress = useCallback(
|
|
14668
|
+
() => window.clearTimeout(longPressTimerRef.current),
|
|
14669
|
+
[]
|
|
14670
|
+
);
|
|
14671
|
+
const handleOpen = (event) => {
|
|
14672
|
+
pointRef.current = {
|
|
14673
|
+
x: event.clientX,
|
|
14674
|
+
y: event.clientY
|
|
14675
|
+
};
|
|
14676
|
+
context.onOpenChange(true);
|
|
14677
|
+
};
|
|
14678
|
+
useEffect(
|
|
14679
|
+
() => clearLongPress,
|
|
14680
|
+
[
|
|
14681
|
+
clearLongPress
|
|
14682
|
+
]
|
|
14683
|
+
);
|
|
14684
|
+
useEffect(
|
|
14685
|
+
() => void (disabled && clearLongPress()),
|
|
14686
|
+
[
|
|
14687
|
+
disabled,
|
|
14688
|
+
clearLongPress
|
|
14689
|
+
]
|
|
14690
|
+
);
|
|
14691
|
+
return /* @__PURE__ */ createElement$1(Fragment, null, /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$1({}, menuScope, {
|
|
14692
|
+
virtualRef
|
|
14693
|
+
})), /* @__PURE__ */ createElement$1($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
14694
|
+
"data-state": context.open ? "open" : "closed",
|
|
14695
|
+
"data-disabled": disabled ? "" : void 0
|
|
14696
|
+
}, triggerProps, {
|
|
14697
|
+
ref: forwardedRef,
|
|
14698
|
+
style: {
|
|
14699
|
+
WebkitTouchCallout: "none",
|
|
14700
|
+
...props.style
|
|
14701
|
+
},
|
|
14702
|
+
onContextMenu: disabled ? props.onContextMenu : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onContextMenu, (event) => {
|
|
14703
|
+
clearLongPress();
|
|
14704
|
+
handleOpen(event);
|
|
14705
|
+
event.preventDefault();
|
|
14706
|
+
}),
|
|
14707
|
+
onPointerDown: disabled ? props.onPointerDown : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown, $1b0217ee4a91d156$var$whenTouchOrPen((event) => {
|
|
14708
|
+
clearLongPress();
|
|
14709
|
+
longPressTimerRef.current = window.setTimeout(
|
|
14710
|
+
() => handleOpen(event),
|
|
14711
|
+
700
|
|
14712
|
+
);
|
|
14713
|
+
})),
|
|
14714
|
+
onPointerMove: disabled ? props.onPointerMove : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
|
|
14715
|
+
onPointerCancel: disabled ? props.onPointerCancel : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerCancel, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
|
|
14716
|
+
onPointerUp: disabled ? props.onPointerUp : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress))
|
|
14717
|
+
})));
|
|
14718
|
+
});
|
|
14719
|
+
const $1b0217ee4a91d156$export$14afd0be83e45060 = (props) => {
|
|
14720
|
+
const { __scopeContextMenu, ...portalProps } = props;
|
|
14721
|
+
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
14722
|
+
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$602eac185826482c, _extends$1({}, menuScope, portalProps));
|
|
14723
|
+
};
|
|
14724
|
+
const $1b0217ee4a91d156$var$CONTENT_NAME = "ContextMenuContent";
|
|
14725
|
+
const $1b0217ee4a91d156$export$572205900c9369e = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
14726
|
+
const { __scopeContextMenu, ...contentProps } = props;
|
|
14727
|
+
const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$CONTENT_NAME, __scopeContextMenu);
|
|
14728
|
+
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
14729
|
+
const hasInteractedOutsideRef = useRef(false);
|
|
14730
|
+
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$1({}, menuScope, contentProps, {
|
|
14731
|
+
ref: forwardedRef,
|
|
14732
|
+
side: "right",
|
|
14733
|
+
sideOffset: 2,
|
|
14734
|
+
align: "start",
|
|
14735
|
+
onCloseAutoFocus: (event) => {
|
|
14736
|
+
var _props$onCloseAutoFoc;
|
|
14737
|
+
(_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
|
|
14738
|
+
if (!event.defaultPrevented && hasInteractedOutsideRef.current)
|
|
14739
|
+
event.preventDefault();
|
|
14740
|
+
hasInteractedOutsideRef.current = false;
|
|
14741
|
+
},
|
|
14742
|
+
onInteractOutside: (event) => {
|
|
14743
|
+
var _props$onInteractOuts;
|
|
14744
|
+
(_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
|
|
14745
|
+
if (!event.defaultPrevented && !context.modal)
|
|
14746
|
+
hasInteractedOutsideRef.current = true;
|
|
14747
|
+
},
|
|
14748
|
+
style: {
|
|
14749
|
+
...props.style,
|
|
14750
|
+
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
14751
|
+
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
14752
|
+
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
14753
|
+
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
14754
|
+
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
14755
|
+
}
|
|
14756
|
+
}));
|
|
14757
|
+
});
|
|
14758
|
+
const $1b0217ee4a91d156$export$9860523b0fcdd664 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
14759
|
+
const { __scopeContextMenu, ...groupProps } = props;
|
|
14760
|
+
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
14761
|
+
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$eb2fcfdbd7ba97d4, _extends$1({}, menuScope, groupProps, {
|
|
14762
|
+
ref: forwardedRef
|
|
14763
|
+
}));
|
|
14764
|
+
});
|
|
14765
|
+
const $1b0217ee4a91d156$export$16a26dc176a49100 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
14766
|
+
const { __scopeContextMenu, ...itemProps } = props;
|
|
14767
|
+
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
14768
|
+
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$1({}, menuScope, itemProps, {
|
|
14769
|
+
ref: forwardedRef
|
|
14770
|
+
}));
|
|
14771
|
+
});
|
|
14772
|
+
const $1b0217ee4a91d156$export$f47d0a58228a61e2 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
14773
|
+
const { __scopeContextMenu, ...arrowProps } = props;
|
|
14774
|
+
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
14775
|
+
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$21b07c8f274aebd5, _extends$1({}, menuScope, arrowProps, {
|
|
14776
|
+
ref: forwardedRef
|
|
14777
|
+
}));
|
|
14778
|
+
});
|
|
14779
|
+
const $1b0217ee4a91d156$export$5bc21d1c00c4b201 = (props) => {
|
|
14780
|
+
const { __scopeContextMenu, children, onOpenChange, open: openProp, defaultOpen } = props;
|
|
14781
|
+
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
14782
|
+
const [open2, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
14783
|
+
prop: openProp,
|
|
14784
|
+
defaultProp: defaultOpen,
|
|
14785
|
+
onChange: onOpenChange
|
|
14786
|
+
});
|
|
14787
|
+
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$d7a01e11500dfb6f, _extends$1({}, menuScope, {
|
|
14788
|
+
open: open2,
|
|
14789
|
+
onOpenChange: setOpen
|
|
14790
|
+
}), children);
|
|
14791
|
+
};
|
|
14792
|
+
const $1b0217ee4a91d156$export$30b2b5c64556d316 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
14793
|
+
const { __scopeContextMenu, ...triggerItemProps } = props;
|
|
14794
|
+
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
14795
|
+
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$2ea8a7a591ac5eac, _extends$1({}, menuScope, triggerItemProps, {
|
|
14796
|
+
ref: forwardedRef
|
|
14797
|
+
}));
|
|
14798
|
+
});
|
|
14799
|
+
const $1b0217ee4a91d156$export$2c967063bd2dc512 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
14800
|
+
const { __scopeContextMenu, ...subContentProps } = props;
|
|
14801
|
+
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
14802
|
+
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$6d4de93b380beddf, _extends$1({}, menuScope, subContentProps, {
|
|
14803
|
+
ref: forwardedRef,
|
|
14804
|
+
style: {
|
|
14805
|
+
...props.style,
|
|
14806
|
+
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
14807
|
+
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
14808
|
+
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
14809
|
+
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
14810
|
+
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
14811
|
+
}
|
|
14812
|
+
}));
|
|
14813
|
+
});
|
|
14814
|
+
function $1b0217ee4a91d156$var$whenTouchOrPen(handler) {
|
|
14815
|
+
return (event) => event.pointerType !== "mouse" ? handler(event) : void 0;
|
|
14816
|
+
}
|
|
14817
|
+
const $1b0217ee4a91d156$export$be92b6f5f03c0fe9 = $1b0217ee4a91d156$export$8dc6765e8be191c7;
|
|
14818
|
+
const $1b0217ee4a91d156$export$41fb9f06171c75f4 = $1b0217ee4a91d156$export$be6fc7b1d5b0beb9;
|
|
14819
|
+
const $1b0217ee4a91d156$export$602eac185826482c = $1b0217ee4a91d156$export$14afd0be83e45060;
|
|
14820
|
+
const $1b0217ee4a91d156$export$7c6e2c02157bb7d2 = $1b0217ee4a91d156$export$572205900c9369e;
|
|
14821
|
+
const $1b0217ee4a91d156$export$eb2fcfdbd7ba97d4 = $1b0217ee4a91d156$export$9860523b0fcdd664;
|
|
14822
|
+
const $1b0217ee4a91d156$export$6d08773d2e66f8f2 = $1b0217ee4a91d156$export$16a26dc176a49100;
|
|
14823
|
+
const $1b0217ee4a91d156$export$21b07c8f274aebd5 = $1b0217ee4a91d156$export$f47d0a58228a61e2;
|
|
14824
|
+
const $1b0217ee4a91d156$export$d7a01e11500dfb6f = $1b0217ee4a91d156$export$5bc21d1c00c4b201;
|
|
14825
|
+
const $1b0217ee4a91d156$export$2ea8a7a591ac5eac = $1b0217ee4a91d156$export$30b2b5c64556d316;
|
|
14826
|
+
const $1b0217ee4a91d156$export$6d4de93b380beddf = $1b0217ee4a91d156$export$2c967063bd2dc512;
|
|
14827
|
+
const ContextMenu = (props) => /* @__PURE__ */ jsx($1b0217ee4a91d156$export$be92b6f5f03c0fe9, { ...props });
|
|
14828
|
+
const ContextMenuTrigger$1 = forwardRef(({
|
|
14829
|
+
disabled,
|
|
14830
|
+
...props
|
|
14831
|
+
}, ref) => {
|
|
14832
|
+
return /* @__PURE__ */ jsx($1b0217ee4a91d156$export$41fb9f06171c75f4, { asChild: true, disabled, children: /* @__PURE__ */ jsx("div", { ref, ...props }) });
|
|
14833
|
+
});
|
|
14834
|
+
ContextMenuTrigger$1.displayName = "ContextMenuTrigger";
|
|
14835
|
+
ContextMenu.Trigger = ContextMenuTrigger$1;
|
|
14836
|
+
const ContextMenuSubTrigger = ({
|
|
14837
|
+
icon,
|
|
14838
|
+
iconDir,
|
|
14839
|
+
children,
|
|
14840
|
+
...props
|
|
14841
|
+
}) => {
|
|
14842
|
+
return /* @__PURE__ */ jsxs(GenericMenuItem, { as: $1b0217ee4a91d156$export$2ea8a7a591ac5eac, ...props, children: [
|
|
14843
|
+
/* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children }),
|
|
14844
|
+
/* @__PURE__ */ jsx("div", { className: "dropdown-arrow", children: /* @__PURE__ */ jsx(SvgImage, { name: "chevron-right" }) })
|
|
14845
|
+
] });
|
|
14846
|
+
};
|
|
14847
|
+
ContextMenuSubTrigger.displayName = "ContextMenuSubTrigger";
|
|
14848
|
+
ContextMenu.SubTrigger = ContextMenuSubTrigger;
|
|
14849
|
+
const RightMenuContent = styled(GenericMenuPanel).withConfig({
|
|
14850
|
+
componentId: "sc-8z6kye-0"
|
|
14851
|
+
})(["flex-direction:column;z-index:1;", ";"], ({
|
|
14852
|
+
$showArrow
|
|
14853
|
+
}) => $showArrow ? `
|
|
14854
|
+
&[data-side="bottom"] {
|
|
14855
|
+
margin-top: -1px;
|
|
14856
|
+
}
|
|
14857
|
+
&[data-side="top"] {
|
|
14858
|
+
margin-bottom: -1px;
|
|
14859
|
+
}
|
|
14860
|
+
&[data-side="left"] {
|
|
14861
|
+
margin-right: -1px;
|
|
14862
|
+
.popover-arrow {
|
|
14863
|
+
margin-right: 1rem;
|
|
14864
|
+
}
|
|
14865
|
+
}
|
|
14866
|
+
}
|
|
14867
|
+
&[data-side="right"] {
|
|
14868
|
+
margin-left: -1px;
|
|
14869
|
+
.popover-arrow {
|
|
14870
|
+
margin-left: 1rem;
|
|
14871
|
+
}
|
|
14872
|
+
}
|
|
14873
|
+
` : "");
|
|
14874
|
+
const ContextMenuContent = ({
|
|
14875
|
+
sub,
|
|
14876
|
+
children,
|
|
14877
|
+
showArrow,
|
|
14878
|
+
...props
|
|
14879
|
+
}) => {
|
|
14880
|
+
const ContentElement = sub ? $1b0217ee4a91d156$export$6d4de93b380beddf : $1b0217ee4a91d156$export$7c6e2c02157bb7d2;
|
|
14881
|
+
return /* @__PURE__ */ jsx($1b0217ee4a91d156$export$602eac185826482c, { children: /* @__PURE__ */ jsxs(RightMenuContent, { $type: "context-menu", $showArrow: showArrow, as: ContentElement, ...props, children: [
|
|
14882
|
+
showArrow && /* @__PURE__ */ jsx(Arrow$1, { asChild: true, as: $1b0217ee4a91d156$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsx(PopoverArrow, { className: "popover-arrow" }) }),
|
|
14883
|
+
children
|
|
14884
|
+
] }) });
|
|
14885
|
+
};
|
|
14886
|
+
ContextMenuContent.displayName = "ContextMenuContent";
|
|
14887
|
+
ContextMenu.Content = ContextMenuContent;
|
|
14888
|
+
const RightMenuGroup = styled($1b0217ee4a91d156$export$eb2fcfdbd7ba97d4).withConfig({
|
|
14889
|
+
componentId: "sc-8z6kye-1"
|
|
14890
|
+
})(["width:100%;border-bottom:1px solid ", ";"], ({
|
|
14891
|
+
theme: theme2
|
|
14892
|
+
}) => theme2.click.genericMenu.item.color.stroke.default);
|
|
14893
|
+
const ContextMenuGroup = (props) => {
|
|
14894
|
+
return /* @__PURE__ */ jsx(RightMenuGroup, { ...props });
|
|
14895
|
+
};
|
|
14896
|
+
ContextMenuGroup.displayName = "ContextMenuGroup";
|
|
14897
|
+
ContextMenu.Group = ContextMenuGroup;
|
|
14898
|
+
const RightMenuSub = styled($1b0217ee4a91d156$export$d7a01e11500dfb6f).withConfig({
|
|
14899
|
+
componentId: "sc-8z6kye-2"
|
|
14900
|
+
})(["border-bottom:1px solid ", ";"], ({
|
|
14901
|
+
theme: theme2
|
|
14902
|
+
}) => theme2.click.genericMenu.item.color.stroke.default);
|
|
14903
|
+
const ContextMenuSub = ({
|
|
14904
|
+
...props
|
|
14905
|
+
}) => {
|
|
14906
|
+
return /* @__PURE__ */ jsx(RightMenuSub, { ...props });
|
|
14907
|
+
};
|
|
14908
|
+
ContextMenuSub.displayName = "ContextMenuSub";
|
|
14909
|
+
ContextMenu.Sub = ContextMenuSub;
|
|
14910
|
+
const ContextMenuItem = ({
|
|
14911
|
+
icon,
|
|
14912
|
+
iconDir,
|
|
14913
|
+
children,
|
|
14914
|
+
...props
|
|
14915
|
+
}) => {
|
|
14916
|
+
return /* @__PURE__ */ jsx(GenericMenuItem, { as: $1b0217ee4a91d156$export$6d08773d2e66f8f2, ...props, children: /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children }) });
|
|
14917
|
+
};
|
|
14918
|
+
ContextMenuItem.displayName = "ContextMenuItem";
|
|
14919
|
+
ContextMenu.Item = ContextMenuItem;
|
|
14920
|
+
var advancedFormat$1 = { exports: {} };
|
|
14921
|
+
(function(module, exports) {
|
|
14922
|
+
!function(e, t) {
|
|
14923
|
+
module.exports = t();
|
|
14924
|
+
}(commonjsGlobal, function() {
|
|
14925
|
+
return function(e, t) {
|
|
14926
|
+
var r = t.prototype, n = r.format;
|
|
14927
|
+
r.format = function(e2) {
|
|
14928
|
+
var t2 = this, r2 = this.$locale();
|
|
14929
|
+
if (!this.isValid())
|
|
14930
|
+
return n.bind(this)(e2);
|
|
14931
|
+
var s2 = this.$utils(), a = (e2 || "YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g, function(e3) {
|
|
14932
|
+
switch (e3) {
|
|
14933
|
+
case "Q":
|
|
14934
|
+
return Math.ceil((t2.$M + 1) / 3);
|
|
14935
|
+
case "Do":
|
|
14936
|
+
return r2.ordinal(t2.$D);
|
|
14937
|
+
case "gggg":
|
|
14938
|
+
return t2.weekYear();
|
|
14939
|
+
case "GGGG":
|
|
14940
|
+
return t2.isoWeekYear();
|
|
14941
|
+
case "wo":
|
|
14942
|
+
return r2.ordinal(t2.week(), "W");
|
|
14943
|
+
case "w":
|
|
14944
|
+
case "ww":
|
|
14945
|
+
return s2.s(t2.week(), "w" === e3 ? 1 : 2, "0");
|
|
14946
|
+
case "W":
|
|
14947
|
+
case "WW":
|
|
14948
|
+
return s2.s(t2.isoWeek(), "W" === e3 ? 1 : 2, "0");
|
|
14949
|
+
case "k":
|
|
14950
|
+
case "kk":
|
|
14951
|
+
return s2.s(String(0 === t2.$H ? 24 : t2.$H), "k" === e3 ? 1 : 2, "0");
|
|
14952
|
+
case "X":
|
|
14953
|
+
return Math.floor(t2.$d.getTime() / 1e3);
|
|
14954
|
+
case "x":
|
|
14955
|
+
return t2.$d.getTime();
|
|
14956
|
+
case "z":
|
|
14957
|
+
return "[" + t2.offsetName() + "]";
|
|
14958
|
+
case "zzz":
|
|
14959
|
+
return "[" + t2.offsetName("long") + "]";
|
|
14960
|
+
default:
|
|
14961
|
+
return e3;
|
|
14962
|
+
}
|
|
14963
|
+
});
|
|
14964
|
+
return n.bind(this)(a);
|
|
14965
|
+
};
|
|
14966
|
+
};
|
|
14967
|
+
});
|
|
14968
|
+
})(advancedFormat$1);
|
|
14969
|
+
var advancedFormatExports = advancedFormat$1.exports;
|
|
14970
|
+
const advancedFormat = /* @__PURE__ */ getDefaultExportFromCjs(advancedFormatExports);
|
|
14971
|
+
var duration$1 = { exports: {} };
|
|
14972
|
+
(function(module, exports) {
|
|
14973
|
+
!function(t, s2) {
|
|
14974
|
+
module.exports = s2();
|
|
14975
|
+
}(commonjsGlobal, function() {
|
|
14976
|
+
var t, s2, n = 1e3, i = 6e4, e = 36e5, r = 864e5, o = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, u = 31536e6, d = 2628e6, a = /^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/, h = { years: u, months: d, days: r, hours: e, minutes: i, seconds: n, milliseconds: 1, weeks: 6048e5 }, c = function(t2) {
|
|
14977
|
+
return t2 instanceof g;
|
|
14978
|
+
}, f = function(t2, s3, n2) {
|
|
14979
|
+
return new g(t2, n2, s3.$l);
|
|
14980
|
+
}, m = function(t2) {
|
|
14981
|
+
return s2.p(t2) + "s";
|
|
14982
|
+
}, l2 = function(t2) {
|
|
14983
|
+
return t2 < 0;
|
|
14984
|
+
}, $ = function(t2) {
|
|
14985
|
+
return l2(t2) ? Math.ceil(t2) : Math.floor(t2);
|
|
14986
|
+
}, y = function(t2) {
|
|
14987
|
+
return Math.abs(t2);
|
|
14988
|
+
}, v = function(t2, s3) {
|
|
14989
|
+
return t2 ? l2(t2) ? { negative: true, format: "" + y(t2) + s3 } : { negative: false, format: "" + t2 + s3 } : { negative: false, format: "" };
|
|
14990
|
+
}, g = function() {
|
|
14991
|
+
function l3(t2, s3, n2) {
|
|
14992
|
+
var i2 = this;
|
|
14993
|
+
if (this.$d = {}, this.$l = n2, void 0 === t2 && (this.$ms = 0, this.parseFromMilliseconds()), s3)
|
|
14994
|
+
return f(t2 * h[m(s3)], this);
|
|
14995
|
+
if ("number" == typeof t2)
|
|
14996
|
+
return this.$ms = t2, this.parseFromMilliseconds(), this;
|
|
14997
|
+
if ("object" == typeof t2)
|
|
14998
|
+
return Object.keys(t2).forEach(function(s4) {
|
|
14999
|
+
i2.$d[m(s4)] = t2[s4];
|
|
15000
|
+
}), this.calMilliseconds(), this;
|
|
15001
|
+
if ("string" == typeof t2) {
|
|
15002
|
+
var e2 = t2.match(a);
|
|
15003
|
+
if (e2) {
|
|
15004
|
+
var r2 = e2.slice(2).map(function(t3) {
|
|
15005
|
+
return null != t3 ? Number(t3) : 0;
|
|
15006
|
+
});
|
|
15007
|
+
return this.$d.years = r2[0], this.$d.months = r2[1], this.$d.weeks = r2[2], this.$d.days = r2[3], this.$d.hours = r2[4], this.$d.minutes = r2[5], this.$d.seconds = r2[6], this.calMilliseconds(), this;
|
|
15008
|
+
}
|
|
15009
|
+
}
|
|
15010
|
+
return this;
|
|
15011
|
+
}
|
|
15012
|
+
var y2 = l3.prototype;
|
|
15013
|
+
return y2.calMilliseconds = function() {
|
|
15014
|
+
var t2 = this;
|
|
15015
|
+
this.$ms = Object.keys(this.$d).reduce(function(s3, n2) {
|
|
15016
|
+
return s3 + (t2.$d[n2] || 0) * h[n2];
|
|
15017
|
+
}, 0);
|
|
15018
|
+
}, y2.parseFromMilliseconds = function() {
|
|
15019
|
+
var t2 = this.$ms;
|
|
15020
|
+
this.$d.years = $(t2 / u), t2 %= u, this.$d.months = $(t2 / d), t2 %= d, this.$d.days = $(t2 / r), t2 %= r, this.$d.hours = $(t2 / e), t2 %= e, this.$d.minutes = $(t2 / i), t2 %= i, this.$d.seconds = $(t2 / n), t2 %= n, this.$d.milliseconds = t2;
|
|
15021
|
+
}, y2.toISOString = function() {
|
|
15022
|
+
var t2 = v(this.$d.years, "Y"), s3 = v(this.$d.months, "M"), n2 = +this.$d.days || 0;
|
|
15023
|
+
this.$d.weeks && (n2 += 7 * this.$d.weeks);
|
|
15024
|
+
var i2 = v(n2, "D"), e2 = v(this.$d.hours, "H"), r2 = v(this.$d.minutes, "M"), o2 = this.$d.seconds || 0;
|
|
15025
|
+
this.$d.milliseconds && (o2 += this.$d.milliseconds / 1e3, o2 = Math.round(1e3 * o2) / 1e3);
|
|
15026
|
+
var u2 = v(o2, "S"), d2 = t2.negative || s3.negative || i2.negative || e2.negative || r2.negative || u2.negative, a2 = e2.format || r2.format || u2.format ? "T" : "", h2 = (d2 ? "-" : "") + "P" + t2.format + s3.format + i2.format + a2 + e2.format + r2.format + u2.format;
|
|
15027
|
+
return "P" === h2 || "-P" === h2 ? "P0D" : h2;
|
|
15028
|
+
}, y2.toJSON = function() {
|
|
15029
|
+
return this.toISOString();
|
|
15030
|
+
}, y2.format = function(t2) {
|
|
15031
|
+
var n2 = t2 || "YYYY-MM-DDTHH:mm:ss", i2 = { Y: this.$d.years, YY: s2.s(this.$d.years, 2, "0"), YYYY: s2.s(this.$d.years, 4, "0"), M: this.$d.months, MM: s2.s(this.$d.months, 2, "0"), D: this.$d.days, DD: s2.s(this.$d.days, 2, "0"), H: this.$d.hours, HH: s2.s(this.$d.hours, 2, "0"), m: this.$d.minutes, mm: s2.s(this.$d.minutes, 2, "0"), s: this.$d.seconds, ss: s2.s(this.$d.seconds, 2, "0"), SSS: s2.s(this.$d.milliseconds, 3, "0") };
|
|
15032
|
+
return n2.replace(o, function(t3, s3) {
|
|
15033
|
+
return s3 || String(i2[t3]);
|
|
15034
|
+
});
|
|
15035
|
+
}, y2.as = function(t2) {
|
|
15036
|
+
return this.$ms / h[m(t2)];
|
|
15037
|
+
}, y2.get = function(t2) {
|
|
15038
|
+
var s3 = this.$ms, n2 = m(t2);
|
|
15039
|
+
return "milliseconds" === n2 ? s3 %= 1e3 : s3 = "weeks" === n2 ? $(s3 / h[n2]) : this.$d[n2], s3 || 0;
|
|
15040
|
+
}, y2.add = function(t2, s3, n2) {
|
|
15041
|
+
var i2;
|
|
15042
|
+
return i2 = s3 ? t2 * h[m(s3)] : c(t2) ? t2.$ms : f(t2, this).$ms, f(this.$ms + i2 * (n2 ? -1 : 1), this);
|
|
15043
|
+
}, y2.subtract = function(t2, s3) {
|
|
15044
|
+
return this.add(t2, s3, true);
|
|
15045
|
+
}, y2.locale = function(t2) {
|
|
15046
|
+
var s3 = this.clone();
|
|
15047
|
+
return s3.$l = t2, s3;
|
|
15048
|
+
}, y2.clone = function() {
|
|
15049
|
+
return f(this.$ms, this);
|
|
15050
|
+
}, y2.humanize = function(s3) {
|
|
15051
|
+
return t().add(this.$ms, "ms").locale(this.$l).fromNow(!s3);
|
|
15052
|
+
}, y2.valueOf = function() {
|
|
15053
|
+
return this.asMilliseconds();
|
|
15054
|
+
}, y2.milliseconds = function() {
|
|
15055
|
+
return this.get("milliseconds");
|
|
15056
|
+
}, y2.asMilliseconds = function() {
|
|
15057
|
+
return this.as("milliseconds");
|
|
15058
|
+
}, y2.seconds = function() {
|
|
15059
|
+
return this.get("seconds");
|
|
15060
|
+
}, y2.asSeconds = function() {
|
|
15061
|
+
return this.as("seconds");
|
|
15062
|
+
}, y2.minutes = function() {
|
|
15063
|
+
return this.get("minutes");
|
|
15064
|
+
}, y2.asMinutes = function() {
|
|
15065
|
+
return this.as("minutes");
|
|
15066
|
+
}, y2.hours = function() {
|
|
15067
|
+
return this.get("hours");
|
|
15068
|
+
}, y2.asHours = function() {
|
|
15069
|
+
return this.as("hours");
|
|
15070
|
+
}, y2.days = function() {
|
|
15071
|
+
return this.get("days");
|
|
15072
|
+
}, y2.asDays = function() {
|
|
15073
|
+
return this.as("days");
|
|
15074
|
+
}, y2.weeks = function() {
|
|
15075
|
+
return this.get("weeks");
|
|
15076
|
+
}, y2.asWeeks = function() {
|
|
15077
|
+
return this.as("weeks");
|
|
15078
|
+
}, y2.months = function() {
|
|
15079
|
+
return this.get("months");
|
|
15080
|
+
}, y2.asMonths = function() {
|
|
15081
|
+
return this.as("months");
|
|
15082
|
+
}, y2.years = function() {
|
|
15083
|
+
return this.get("years");
|
|
15084
|
+
}, y2.asYears = function() {
|
|
15085
|
+
return this.as("years");
|
|
15086
|
+
}, l3;
|
|
15087
|
+
}(), p = function(t2, s3, n2) {
|
|
15088
|
+
return t2.add(s3.years() * n2, "y").add(s3.months() * n2, "M").add(s3.days() * n2, "d").add(s3.hours() * n2, "h").add(s3.minutes() * n2, "m").add(s3.seconds() * n2, "s").add(s3.milliseconds() * n2, "ms");
|
|
15089
|
+
};
|
|
15090
|
+
return function(n2, i2, e2) {
|
|
15091
|
+
t = e2, s2 = e2().$utils(), e2.duration = function(t2, s3) {
|
|
15092
|
+
var n3 = e2.locale();
|
|
15093
|
+
return f(t2, { $l: n3 }, s3);
|
|
15094
|
+
}, e2.isDuration = c;
|
|
15095
|
+
var r2 = i2.prototype.add, o2 = i2.prototype.subtract;
|
|
15096
|
+
i2.prototype.add = function(t2, s3) {
|
|
15097
|
+
return c(t2) ? p(this, t2, 1) : r2.bind(this)(t2, s3);
|
|
15098
|
+
}, i2.prototype.subtract = function(t2, s3) {
|
|
15099
|
+
return c(t2) ? p(this, t2, -1) : o2.bind(this)(t2, s3);
|
|
15100
|
+
};
|
|
15101
|
+
};
|
|
15102
|
+
});
|
|
15103
|
+
})(duration$1);
|
|
15104
|
+
var durationExports = duration$1.exports;
|
|
15105
|
+
const duration = /* @__PURE__ */ getDefaultExportFromCjs(durationExports);
|
|
15106
|
+
var localizedFormat$1 = { exports: {} };
|
|
15107
|
+
(function(module, exports) {
|
|
15108
|
+
!function(e, t) {
|
|
15109
|
+
module.exports = t();
|
|
15110
|
+
}(commonjsGlobal, function() {
|
|
15111
|
+
var e = { LTS: "h:mm:ss A", LT: "h:mm A", L: "MM/DD/YYYY", LL: "MMMM D, YYYY", LLL: "MMMM D, YYYY h:mm A", LLLL: "dddd, MMMM D, YYYY h:mm A" };
|
|
15112
|
+
return function(t, o, n) {
|
|
15113
|
+
var r = o.prototype, i = r.format;
|
|
15114
|
+
n.en.formats = e, r.format = function(t2) {
|
|
15115
|
+
void 0 === t2 && (t2 = "YYYY-MM-DDTHH:mm:ssZ");
|
|
15116
|
+
var o2 = this.$locale().formats, n2 = function(t3, o3) {
|
|
15117
|
+
return t3.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, function(t4, n3, r2) {
|
|
15118
|
+
var i2 = r2 && r2.toUpperCase();
|
|
15119
|
+
return n3 || o3[r2] || e[r2] || o3[i2].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function(e2, t5, o4) {
|
|
15120
|
+
return t5 || o4.slice(1);
|
|
15121
|
+
});
|
|
15122
|
+
});
|
|
15123
|
+
}(t2, void 0 === o2 ? {} : o2);
|
|
15124
|
+
return i.call(this, n2);
|
|
15125
|
+
};
|
|
15126
|
+
};
|
|
15127
|
+
});
|
|
15128
|
+
})(localizedFormat$1);
|
|
15129
|
+
var localizedFormatExports = localizedFormat$1.exports;
|
|
15130
|
+
const localizedFormat = /* @__PURE__ */ getDefaultExportFromCjs(localizedFormatExports);
|
|
15131
|
+
var relativeTime$1 = { exports: {} };
|
|
15132
|
+
(function(module, exports) {
|
|
15133
|
+
!function(r, e) {
|
|
15134
|
+
module.exports = e();
|
|
15135
|
+
}(commonjsGlobal, function() {
|
|
15136
|
+
return function(r, e, t) {
|
|
15137
|
+
r = r || {};
|
|
15138
|
+
var n = e.prototype, o = { future: "in %s", past: "%s ago", s: "a few seconds", m: "a minute", mm: "%d minutes", h: "an hour", hh: "%d hours", d: "a day", dd: "%d days", M: "a month", MM: "%d months", y: "a year", yy: "%d years" };
|
|
15139
|
+
function i(r2, e2, t2, o2) {
|
|
15140
|
+
return n.fromToBase(r2, e2, t2, o2);
|
|
15141
|
+
}
|
|
15142
|
+
t.en.relativeTime = o, n.fromToBase = function(e2, n2, i2, d2, u) {
|
|
15143
|
+
for (var f, a, s2, l2 = i2.$locale().relativeTime || o, h = r.thresholds || [{ l: "s", r: 44, d: "second" }, { l: "m", r: 89 }, { l: "mm", r: 44, d: "minute" }, { l: "h", r: 89 }, { l: "hh", r: 21, d: "hour" }, { l: "d", r: 35 }, { l: "dd", r: 25, d: "day" }, { l: "M", r: 45 }, { l: "MM", r: 10, d: "month" }, { l: "y", r: 17 }, { l: "yy", d: "year" }], m = h.length, c = 0; c < m; c += 1) {
|
|
15144
|
+
var y = h[c];
|
|
15145
|
+
y.d && (f = d2 ? t(e2).diff(i2, y.d, true) : i2.diff(e2, y.d, true));
|
|
15146
|
+
var p = (r.rounding || Math.round)(Math.abs(f));
|
|
15147
|
+
if (s2 = f > 0, p <= y.r || !y.r) {
|
|
15148
|
+
p <= 1 && c > 0 && (y = h[c - 1]);
|
|
15149
|
+
var v = l2[y.l];
|
|
15150
|
+
u && (p = u("" + p)), a = "string" == typeof v ? v.replace("%d", p) : v(p, n2, y.l, s2);
|
|
15151
|
+
break;
|
|
15152
|
+
}
|
|
15153
|
+
}
|
|
15154
|
+
if (n2)
|
|
15155
|
+
return a;
|
|
15156
|
+
var M = s2 ? l2.future : l2.past;
|
|
15157
|
+
return "function" == typeof M ? M(a) : M.replace("%s", a);
|
|
15158
|
+
}, n.to = function(r2, e2) {
|
|
15159
|
+
return i(r2, e2, this, true);
|
|
15160
|
+
}, n.from = function(r2, e2) {
|
|
15161
|
+
return i(r2, e2, this);
|
|
15162
|
+
};
|
|
15163
|
+
var d = function(r2) {
|
|
15164
|
+
return r2.$u ? t.utc() : t();
|
|
15165
|
+
};
|
|
15166
|
+
n.toNow = function(r2) {
|
|
15167
|
+
return this.to(d(this), r2);
|
|
15168
|
+
}, n.fromNow = function(r2) {
|
|
15169
|
+
return this.from(d(this), r2);
|
|
15170
|
+
};
|
|
15171
|
+
};
|
|
15172
|
+
});
|
|
15173
|
+
})(relativeTime$1);
|
|
15174
|
+
var relativeTimeExports = relativeTime$1.exports;
|
|
15175
|
+
const relativeTime = /* @__PURE__ */ getDefaultExportFromCjs(relativeTimeExports);
|
|
15176
|
+
var timezone$1 = { exports: {} };
|
|
15177
|
+
(function(module, exports) {
|
|
15178
|
+
!function(t, e) {
|
|
15179
|
+
module.exports = e();
|
|
15180
|
+
}(commonjsGlobal, function() {
|
|
15181
|
+
var t = { year: 0, month: 1, day: 2, hour: 3, minute: 4, second: 5 }, e = {};
|
|
15182
|
+
return function(n, i, o) {
|
|
15183
|
+
var r, a = function(t2, n2, i2) {
|
|
15184
|
+
void 0 === i2 && (i2 = {});
|
|
15185
|
+
var o2 = new Date(t2), r2 = function(t3, n3) {
|
|
15186
|
+
void 0 === n3 && (n3 = {});
|
|
15187
|
+
var i3 = n3.timeZoneName || "short", o3 = t3 + "|" + i3, r3 = e[o3];
|
|
15188
|
+
return r3 || (r3 = new Intl.DateTimeFormat("en-US", { hour12: false, timeZone: t3, year: "numeric", month: "2-digit", day: "2-digit", hour: "2-digit", minute: "2-digit", second: "2-digit", timeZoneName: i3 }), e[o3] = r3), r3;
|
|
15189
|
+
}(n2, i2);
|
|
15190
|
+
return r2.formatToParts(o2);
|
|
15191
|
+
}, u = function(e2, n2) {
|
|
15192
|
+
for (var i2 = a(e2, n2), r2 = [], u2 = 0; u2 < i2.length; u2 += 1) {
|
|
15193
|
+
var f2 = i2[u2], s3 = f2.type, m = f2.value, c = t[s3];
|
|
15194
|
+
c >= 0 && (r2[c] = parseInt(m, 10));
|
|
15195
|
+
}
|
|
15196
|
+
var d = r2[3], l2 = 24 === d ? 0 : d, h = r2[0] + "-" + r2[1] + "-" + r2[2] + " " + l2 + ":" + r2[4] + ":" + r2[5] + ":000", v = +e2;
|
|
15197
|
+
return (o.utc(h).valueOf() - (v -= v % 1e3)) / 6e4;
|
|
15198
|
+
}, f = i.prototype;
|
|
15199
|
+
f.tz = function(t2, e2) {
|
|
15200
|
+
void 0 === t2 && (t2 = r);
|
|
15201
|
+
var n2, i2 = this.utcOffset(), a2 = this.toDate(), u2 = a2.toLocaleString("en-US", { timeZone: t2 }), f2 = Math.round((a2 - new Date(u2)) / 1e3 / 60), s3 = 15 * -Math.round(a2.getTimezoneOffset() / 15) - f2;
|
|
15202
|
+
if (!Number(s3))
|
|
15203
|
+
n2 = this.utcOffset(0, e2);
|
|
15204
|
+
else if (n2 = o(u2, { locale: this.$L }).$set("millisecond", this.$ms).utcOffset(s3, true), e2) {
|
|
15205
|
+
var m = n2.utcOffset();
|
|
15206
|
+
n2 = n2.add(i2 - m, "minute");
|
|
15207
|
+
}
|
|
15208
|
+
return n2.$x.$timezone = t2, n2;
|
|
15209
|
+
}, f.offsetName = function(t2) {
|
|
15210
|
+
var e2 = this.$x.$timezone || o.tz.guess(), n2 = a(this.valueOf(), e2, { timeZoneName: t2 }).find(function(t3) {
|
|
15211
|
+
return "timezonename" === t3.type.toLowerCase();
|
|
15212
|
+
});
|
|
15213
|
+
return n2 && n2.value;
|
|
15214
|
+
};
|
|
15215
|
+
var s2 = f.startOf;
|
|
15216
|
+
f.startOf = function(t2, e2) {
|
|
15217
|
+
if (!this.$x || !this.$x.$timezone)
|
|
15218
|
+
return s2.call(this, t2, e2);
|
|
15219
|
+
var n2 = o(this.format("YYYY-MM-DD HH:mm:ss:SSS"), { locale: this.$L });
|
|
15220
|
+
return s2.call(n2, t2, e2).tz(this.$x.$timezone, true);
|
|
15221
|
+
}, o.tz = function(t2, e2, n2) {
|
|
15222
|
+
var i2 = n2 && e2, a2 = n2 || e2 || r, f2 = u(+o(), a2);
|
|
15223
|
+
if ("string" != typeof t2)
|
|
15224
|
+
return o(t2).tz(a2);
|
|
15225
|
+
var s3 = function(t3, e3, n3) {
|
|
15226
|
+
var i3 = t3 - 60 * e3 * 1e3, o2 = u(i3, n3);
|
|
15227
|
+
if (e3 === o2)
|
|
15228
|
+
return [i3, e3];
|
|
15229
|
+
var r2 = u(i3 -= 60 * (o2 - e3) * 1e3, n3);
|
|
15230
|
+
return o2 === r2 ? [i3, o2] : [t3 - 60 * Math.min(o2, r2) * 1e3, Math.max(o2, r2)];
|
|
15231
|
+
}(o.utc(t2, i2).valueOf(), f2, a2), m = s3[0], c = s3[1], d = o(m).utcOffset(c);
|
|
15232
|
+
return d.$x.$timezone = a2, d;
|
|
15233
|
+
}, o.tz.guess = function() {
|
|
15234
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
15235
|
+
}, o.tz.setDefault = function(t2) {
|
|
15236
|
+
r = t2;
|
|
15237
|
+
};
|
|
15238
|
+
};
|
|
15239
|
+
});
|
|
15240
|
+
})(timezone$1);
|
|
15241
|
+
var timezoneExports = timezone$1.exports;
|
|
15242
|
+
const timezone = /* @__PURE__ */ getDefaultExportFromCjs(timezoneExports);
|
|
15243
|
+
var updateLocale$1 = { exports: {} };
|
|
15244
|
+
(function(module, exports) {
|
|
15245
|
+
!function(e, n) {
|
|
15246
|
+
module.exports = n();
|
|
15247
|
+
}(commonjsGlobal, function() {
|
|
15248
|
+
return function(e, n, t) {
|
|
15249
|
+
t.updateLocale = function(e2, n2) {
|
|
15250
|
+
var o = t.Ls[e2];
|
|
15251
|
+
if (o)
|
|
15252
|
+
return (n2 ? Object.keys(n2) : []).forEach(function(e3) {
|
|
15253
|
+
o[e3] = n2[e3];
|
|
15254
|
+
}), o;
|
|
15255
|
+
};
|
|
15256
|
+
};
|
|
15257
|
+
});
|
|
15258
|
+
})(updateLocale$1);
|
|
15259
|
+
var updateLocaleExports = updateLocale$1.exports;
|
|
15260
|
+
const updateLocale = /* @__PURE__ */ getDefaultExportFromCjs(updateLocaleExports);
|
|
15261
|
+
var utc$1 = { exports: {} };
|
|
15262
|
+
(function(module, exports) {
|
|
15263
|
+
!function(t, i) {
|
|
15264
|
+
module.exports = i();
|
|
15265
|
+
}(commonjsGlobal, function() {
|
|
15266
|
+
var t = "minute", i = /[+-]\d\d(?::?\d\d)?/g, e = /([+-]|\d\d)/g;
|
|
15267
|
+
return function(s2, f, n) {
|
|
15268
|
+
var u = f.prototype;
|
|
15269
|
+
n.utc = function(t2) {
|
|
15270
|
+
var i2 = { date: t2, utc: true, args: arguments };
|
|
15271
|
+
return new f(i2);
|
|
15272
|
+
}, u.utc = function(i2) {
|
|
15273
|
+
var e2 = n(this.toDate(), { locale: this.$L, utc: true });
|
|
15274
|
+
return i2 ? e2.add(this.utcOffset(), t) : e2;
|
|
15275
|
+
}, u.local = function() {
|
|
15276
|
+
return n(this.toDate(), { locale: this.$L, utc: false });
|
|
15277
|
+
};
|
|
15278
|
+
var o = u.parse;
|
|
15279
|
+
u.parse = function(t2) {
|
|
15280
|
+
t2.utc && (this.$u = true), this.$utils().u(t2.$offset) || (this.$offset = t2.$offset), o.call(this, t2);
|
|
15281
|
+
};
|
|
15282
|
+
var r = u.init;
|
|
15283
|
+
u.init = function() {
|
|
15284
|
+
if (this.$u) {
|
|
15285
|
+
var t2 = this.$d;
|
|
15286
|
+
this.$y = t2.getUTCFullYear(), this.$M = t2.getUTCMonth(), this.$D = t2.getUTCDate(), this.$W = t2.getUTCDay(), this.$H = t2.getUTCHours(), this.$m = t2.getUTCMinutes(), this.$s = t2.getUTCSeconds(), this.$ms = t2.getUTCMilliseconds();
|
|
15287
|
+
} else
|
|
15288
|
+
r.call(this);
|
|
15289
|
+
};
|
|
15290
|
+
var a = u.utcOffset;
|
|
15291
|
+
u.utcOffset = function(s3, f2) {
|
|
15292
|
+
var n2 = this.$utils().u;
|
|
15293
|
+
if (n2(s3))
|
|
15294
|
+
return this.$u ? 0 : n2(this.$offset) ? a.call(this) : this.$offset;
|
|
15295
|
+
if ("string" == typeof s3 && (s3 = function(t2) {
|
|
15296
|
+
void 0 === t2 && (t2 = "");
|
|
15297
|
+
var s4 = t2.match(i);
|
|
15298
|
+
if (!s4)
|
|
15299
|
+
return null;
|
|
15300
|
+
var f3 = ("" + s4[0]).match(e) || ["-", 0, 0], n3 = f3[0], u3 = 60 * +f3[1] + +f3[2];
|
|
15301
|
+
return 0 === u3 ? 0 : "+" === n3 ? u3 : -u3;
|
|
15302
|
+
}(s3), null === s3))
|
|
15303
|
+
return this;
|
|
15304
|
+
var u2 = Math.abs(s3) <= 16 ? 60 * s3 : s3, o2 = this;
|
|
15305
|
+
if (f2)
|
|
15306
|
+
return o2.$offset = u2, o2.$u = 0 === s3, o2;
|
|
15307
|
+
if (0 !== s3) {
|
|
15308
|
+
var r2 = this.$u ? this.toDate().getTimezoneOffset() : -1 * this.utcOffset();
|
|
15309
|
+
(o2 = this.local().add(u2 + r2, t)).$offset = u2, o2.$x.$localOffset = r2;
|
|
15310
|
+
} else
|
|
15311
|
+
o2 = this.utc();
|
|
15312
|
+
return o2;
|
|
15313
|
+
};
|
|
15314
|
+
var h = u.format;
|
|
15315
|
+
u.format = function(t2) {
|
|
15316
|
+
var i2 = t2 || (this.$u ? "YYYY-MM-DDTHH:mm:ss[Z]" : "");
|
|
15317
|
+
return h.call(this, i2);
|
|
15318
|
+
}, u.valueOf = function() {
|
|
15319
|
+
var t2 = this.$utils().u(this.$offset) ? 0 : this.$offset + (this.$x.$localOffset || this.$d.getTimezoneOffset());
|
|
15320
|
+
return this.$d.valueOf() - 6e4 * t2;
|
|
15321
|
+
}, u.isUTC = function() {
|
|
15322
|
+
return !!this.$u;
|
|
15323
|
+
}, u.toISOString = function() {
|
|
15324
|
+
return this.toDate().toISOString();
|
|
15325
|
+
}, u.toString = function() {
|
|
15326
|
+
return this.toDate().toUTCString();
|
|
15327
|
+
};
|
|
15328
|
+
var l2 = u.toDate;
|
|
15329
|
+
u.toDate = function(t2) {
|
|
15330
|
+
return "s" === t2 && this.$offset ? n(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate() : l2.call(this);
|
|
15331
|
+
};
|
|
15332
|
+
var c = u.diff;
|
|
15333
|
+
u.diff = function(t2, i2, e2) {
|
|
15334
|
+
if (t2 && this.$u === t2.$u)
|
|
15335
|
+
return c.call(this, t2, i2, e2);
|
|
15336
|
+
var s3 = this.local(), f2 = n(t2).local();
|
|
15337
|
+
return c.call(s3, f2, i2, e2);
|
|
15338
|
+
};
|
|
15339
|
+
};
|
|
15340
|
+
});
|
|
15341
|
+
})(utc$1);
|
|
15342
|
+
var utcExports = utc$1.exports;
|
|
15343
|
+
const utc = /* @__PURE__ */ getDefaultExportFromCjs(utcExports);
|
|
15344
|
+
const Popover = ({
|
|
15345
|
+
children,
|
|
15346
|
+
...props
|
|
15347
|
+
}) => {
|
|
15348
|
+
return /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, { ...props, children });
|
|
15349
|
+
};
|
|
15350
|
+
const Trigger$4 = styled($cb5cc270b50c6fcd$export$41fb9f06171c75f4).withConfig({
|
|
15351
|
+
componentId: "sc-1dii14g-0"
|
|
15352
|
+
})(["background:inherit;border:none;color:inherit;cursor:pointer;font:inherit;width:fit-content;"]);
|
|
15353
|
+
const PopoverTrigger = ({
|
|
15354
|
+
anchor,
|
|
15355
|
+
children,
|
|
15356
|
+
...props
|
|
15357
|
+
}) => {
|
|
15358
|
+
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
15359
|
+
/* @__PURE__ */ jsx(Trigger$4, { asChild: true, ...props, children: /* @__PURE__ */ jsx("div", { children }) }),
|
|
15360
|
+
anchor && /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$b688253958b8dfe7, { asChild: true, children: anchor })
|
|
15361
|
+
] });
|
|
15362
|
+
};
|
|
15363
|
+
PopoverTrigger.displayName = "PopoverTrigger";
|
|
15364
|
+
Popover.Trigger = PopoverTrigger;
|
|
15365
|
+
const MenuPanel = styled(GenericMenuPanel).withConfig({
|
|
15366
|
+
componentId: "sc-1dii14g-1"
|
|
15367
|
+
})(["display:block;padding:", " ", ";background-color:", ";border:1px solid ", ";border-radius:", ";box-shadow:", ";", ";"], ({
|
|
15368
|
+
theme: theme2
|
|
15369
|
+
}) => theme2.click.popover.space.y, ({
|
|
15370
|
+
theme: theme2
|
|
15371
|
+
}) => theme2.click.popover.space.x, ({
|
|
15372
|
+
theme: theme2
|
|
15373
|
+
}) => theme2.click.popover.color.panel.background.default, ({
|
|
15374
|
+
theme: theme2
|
|
15375
|
+
}) => theme2.click.popover.color.panel.stroke.default, ({
|
|
15376
|
+
theme: theme2
|
|
15377
|
+
}) => theme2.click.popover.radii.all, ({
|
|
15378
|
+
theme: theme2
|
|
15379
|
+
}) => theme2.click.popover.shadow.default, ({
|
|
15380
|
+
$showClose
|
|
15381
|
+
}) => $showClose ? "padding-top: 1rem;" : "");
|
|
15382
|
+
const CloseButton$1 = styled(EmptyButton$1).withConfig({
|
|
15383
|
+
componentId: "sc-1dii14g-2"
|
|
15384
|
+
})(["position:absolute;top:", ";right:", ";width:", ";height:", ";"], ({
|
|
15385
|
+
theme: theme2
|
|
15386
|
+
}) => theme2.click.popover.space.y, ({
|
|
15387
|
+
theme: theme2
|
|
15388
|
+
}) => theme2.click.popover.space.x, ({
|
|
15389
|
+
theme: theme2
|
|
15390
|
+
}) => theme2.click.popover.icon.size.width, ({
|
|
15391
|
+
theme: theme2
|
|
15392
|
+
}) => theme2.click.popover.icon.size.height);
|
|
15393
|
+
const PopoverContent = ({
|
|
15394
|
+
children,
|
|
15395
|
+
showArrow,
|
|
15396
|
+
showClose,
|
|
15397
|
+
forceMount,
|
|
15398
|
+
container,
|
|
15399
|
+
...props
|
|
15400
|
+
}) => {
|
|
15401
|
+
return /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$602eac185826482c, { forceMount, container, children: /* @__PURE__ */ jsxs(MenuPanel, { as: $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, $type: "popover", $showClose: showClose, $showArrow: showArrow, sideOffset: 4, ...props, children: [
|
|
15402
|
+
showClose && /* @__PURE__ */ jsx(CloseButton$1, { as: $cb5cc270b50c6fcd$export$f39c2d165cd861fe, asChild: true, children: /* @__PURE__ */ jsx(SvgImage, { name: "cross" }) }),
|
|
15403
|
+
showArrow && /* @__PURE__ */ jsx(Arrow$1, { asChild: true, as: $cb5cc270b50c6fcd$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsx(PopoverArrow, {}) }),
|
|
15404
|
+
children
|
|
15405
|
+
] }) });
|
|
15406
|
+
};
|
|
15407
|
+
PopoverContent.displayName = "PopoverContent";
|
|
15408
|
+
Popover.Content = PopoverContent;
|
|
15409
|
+
const linkStyles = css$1(["font:", ";color:", ";margin:0;text-decoration:none;display:inline-flex;gap:", ";margin-right:", ";align-items:center;&:hover,&:focus{color:", ";transition:", ";text-decoration:underline;cursor:pointer;}&:visited{color:", ";}"], ({
|
|
15410
|
+
$size,
|
|
15411
|
+
$weight = "normal",
|
|
15412
|
+
theme: theme2
|
|
15413
|
+
}) => theme2.typography.styles.product.text[$weight][$size], ({
|
|
15414
|
+
theme: theme2
|
|
15415
|
+
}) => theme2.click.global.color.text.link.default, ({
|
|
15416
|
+
$size,
|
|
15417
|
+
theme: theme2
|
|
15418
|
+
}) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
|
|
15419
|
+
$size,
|
|
15420
|
+
theme: theme2
|
|
15421
|
+
}) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
|
|
15422
|
+
theme: theme2
|
|
15423
|
+
}) => theme2.click.global.color.text.link.hover, ({
|
|
15424
|
+
theme: theme2
|
|
15425
|
+
}) => theme2.transition.default, ({
|
|
15426
|
+
theme: theme2
|
|
15427
|
+
}) => theme2.click.global.color.text.link.default);
|
|
15428
|
+
const GridContainer$1 = ({
|
|
15429
|
+
alignItems = "stretch",
|
|
15430
|
+
alignContent = "stretch",
|
|
15431
|
+
children,
|
|
15432
|
+
columnGap,
|
|
15433
|
+
gap,
|
|
15434
|
+
gridAutoColumns,
|
|
15435
|
+
gridAutoFlow,
|
|
15436
|
+
gridAutoRows,
|
|
15437
|
+
gridTemplateAreas,
|
|
15438
|
+
gridTemplateColumns,
|
|
15439
|
+
gridTemplateRows,
|
|
15440
|
+
gridTemplate,
|
|
15441
|
+
inline = false,
|
|
15442
|
+
isResponsive = true,
|
|
15443
|
+
justifyContent = "stretch",
|
|
15444
|
+
justifyItems = "stretch",
|
|
15445
|
+
rowGap,
|
|
15446
|
+
height,
|
|
15447
|
+
maxHeight,
|
|
15448
|
+
minHeight,
|
|
15449
|
+
fillWidth = true,
|
|
15450
|
+
maxWidth,
|
|
15451
|
+
minWidth,
|
|
15452
|
+
overflow,
|
|
15453
|
+
...props
|
|
15454
|
+
}) => {
|
|
15455
|
+
return /* @__PURE__ */ jsx(Wrapper$4, { $alignItems: alignItems, $alignContent: alignContent, $columnGap: columnGap, $gap: gap, $gridAutoColumns: gridAutoColumns, $gridAutoFlow: gridAutoFlow, $gridAutoRows: gridAutoRows, $gridTemplateAreas: gridTemplateAreas, $gridTemplateColumns: gridTemplateColumns, $gridTemplateRows: gridTemplateRows, $gridTemplate: gridTemplate, $inline: inline, $isResponsive: isResponsive, $justifyContent: justifyContent, $justifyItems: justifyItems, $rowGap: rowGap, $height: height, $maxHeight: maxHeight, $minHeight: minHeight, $fillWidth: fillWidth, $maxWidth: maxWidth, $minWidth: minWidth, $overflow: overflow, "data-testid": "grid-container", ...props, children });
|
|
15456
|
+
};
|
|
15457
|
+
const Wrapper$4 = styled.div.withConfig({
|
|
15458
|
+
componentId: "sc-r57kdn-0"
|
|
15459
|
+
})(["align-items:", ";align-content:", ";display:", ";", ";", ";", ";", ";", ";", ";", ";justify-content:", ";justify-items:", ";", " ", " ", " ", " @media (max-width:", "){grid-template-columns:", ";}"], ({
|
|
15460
|
+
$alignItems = "stretch"
|
|
15461
|
+
}) => $alignItems, ({
|
|
15462
|
+
$alignContent = "stretch"
|
|
15463
|
+
}) => $alignContent, ({
|
|
15464
|
+
$inline
|
|
15465
|
+
}) => $inline === true ? "inline-grid" : "grid", ({
|
|
15466
|
+
$gridAutoColumns
|
|
15467
|
+
}) => $gridAutoColumns && `grid-auto-columns: ${$gridAutoColumns}`, ({
|
|
15468
|
+
$gridAutoFlow
|
|
15469
|
+
}) => $gridAutoFlow && `grid-auto-flow: ${$gridAutoFlow}`, ({
|
|
15470
|
+
$gridAutoRows
|
|
15471
|
+
}) => $gridAutoRows && `grid-auto-rows: ${$gridAutoRows}`, ({
|
|
15472
|
+
$gridTemplateAreas
|
|
15473
|
+
}) => $gridTemplateAreas && `grid-template-area: ${$gridTemplateAreas}`, ({
|
|
15474
|
+
$gridTemplateColumns
|
|
15475
|
+
}) => $gridTemplateColumns && `grid-template-columns: ${$gridTemplateColumns}`, ({
|
|
15476
|
+
$gridTemplateRows
|
|
15477
|
+
}) => $gridTemplateRows && `grid-template-rows: ${$gridTemplateRows}`, ({
|
|
15478
|
+
$gridTemplate
|
|
15479
|
+
}) => $gridTemplate && `grid-template: ${$gridTemplate}`, ({
|
|
15480
|
+
$justifyContent = "stretch"
|
|
15481
|
+
}) => $justifyContent, ({
|
|
15482
|
+
$justifyItems = "stretch"
|
|
15483
|
+
}) => $justifyItems, ({
|
|
15484
|
+
theme: theme2,
|
|
15485
|
+
$gap,
|
|
15486
|
+
$columnGap,
|
|
15487
|
+
$rowGap
|
|
15488
|
+
}) => `
|
|
15489
|
+
gap: ${$gap ? theme2.click.gridContainer.gap[$gap] : "inherit"};
|
|
15490
|
+
${$columnGap && `column-gap: ${theme2.click.gridContainer.gap[$columnGap]}`};
|
|
15491
|
+
${$rowGap && `row-gap: ${theme2.click.gridContainer.gap[$rowGap]}`};
|
|
15492
|
+
`, ({
|
|
15493
|
+
$fillWidth,
|
|
15494
|
+
$maxWidth,
|
|
15495
|
+
$minWidth
|
|
15496
|
+
}) => `
|
|
15497
|
+
width: ${$fillWidth ? "100%" : "auto"};
|
|
15498
|
+
${typeof $maxWidth === "string" && `max-width: ${$maxWidth}`};
|
|
15499
|
+
${typeof $minWidth === "string" && `min-width: ${$minWidth}`};
|
|
15500
|
+
`, ({
|
|
15501
|
+
$height,
|
|
15502
|
+
$maxHeight,
|
|
15503
|
+
$minHeight
|
|
15504
|
+
}) => `
|
|
15505
|
+
${typeof $height === "string" && `height: ${$height}`};
|
|
15506
|
+
${typeof $maxHeight === "string" && `max-height: ${$maxHeight}`};
|
|
15507
|
+
${typeof $minHeight === "string" && `min-height: ${$minHeight}`};
|
|
15508
|
+
`, ({
|
|
15509
|
+
$overflow
|
|
15510
|
+
}) => `
|
|
15511
|
+
${typeof $overflow === "string" && `overflow: ${$overflow}`};
|
|
15512
|
+
`, ({
|
|
15513
|
+
theme: theme2
|
|
15514
|
+
}) => theme2.breakpoint.sizes.md, ({
|
|
15515
|
+
$isResponsive = true
|
|
15516
|
+
}) => $isResponsive === true ? "1fr" : ({
|
|
15517
|
+
$gridTemplateColumns
|
|
15518
|
+
}) => $gridTemplateColumns || "auto");
|
|
15519
|
+
dayjs.extend(advancedFormat);
|
|
15520
|
+
dayjs.extend(duration);
|
|
15521
|
+
dayjs.extend(localizedFormat);
|
|
15522
|
+
dayjs.extend(updateLocale);
|
|
15523
|
+
dayjs.extend(utc);
|
|
15524
|
+
const thresholds = [{
|
|
15525
|
+
l: "s",
|
|
15526
|
+
r: 1,
|
|
15527
|
+
d: "second"
|
|
15528
|
+
}, {
|
|
15529
|
+
l: "ss",
|
|
15530
|
+
r: 56,
|
|
15531
|
+
d: "second"
|
|
15532
|
+
}, {
|
|
15533
|
+
l: "m",
|
|
15534
|
+
r: 90,
|
|
15535
|
+
d: "second"
|
|
15536
|
+
}, {
|
|
15537
|
+
l: "mm",
|
|
15538
|
+
r: 55,
|
|
15539
|
+
d: "minute"
|
|
15540
|
+
}, {
|
|
15541
|
+
l: "h",
|
|
15542
|
+
r: 90,
|
|
15543
|
+
d: "minute"
|
|
15544
|
+
}, {
|
|
15545
|
+
l: "hh",
|
|
15546
|
+
r: 22,
|
|
15547
|
+
d: "hour"
|
|
15548
|
+
}, {
|
|
15549
|
+
l: "d",
|
|
15550
|
+
r: 40,
|
|
15551
|
+
d: "hour"
|
|
15552
|
+
}, {
|
|
15553
|
+
l: "dd",
|
|
15554
|
+
r: 31,
|
|
15555
|
+
d: "day"
|
|
15556
|
+
}, {
|
|
15557
|
+
l: "M",
|
|
15558
|
+
r: 45,
|
|
15559
|
+
d: "day"
|
|
15560
|
+
}, {
|
|
15561
|
+
l: "MM",
|
|
15562
|
+
r: 11,
|
|
15563
|
+
d: "month"
|
|
15564
|
+
}, {
|
|
15565
|
+
l: "y",
|
|
15566
|
+
r: 17,
|
|
15567
|
+
d: "month"
|
|
15568
|
+
}, {
|
|
15569
|
+
l: "yy",
|
|
15570
|
+
r: 2,
|
|
15571
|
+
d: "year"
|
|
15572
|
+
}];
|
|
15573
|
+
dayjs.extend(relativeTime, {
|
|
15574
|
+
thresholds
|
|
15575
|
+
});
|
|
15576
|
+
dayjs.updateLocale("en", {
|
|
15577
|
+
relativeTime: {
|
|
15578
|
+
future: "In %s",
|
|
15579
|
+
past: "%s ago",
|
|
15580
|
+
s: "a few seconds",
|
|
15581
|
+
ss: "%d seconds",
|
|
15582
|
+
m: "1 minute",
|
|
15583
|
+
mm: "%d minutes",
|
|
15584
|
+
h: "1 hour",
|
|
15585
|
+
hh: "%d hours",
|
|
15586
|
+
d: "1 day",
|
|
15587
|
+
dd: "%d days",
|
|
15588
|
+
w: "1 week",
|
|
15589
|
+
ww: "%d weeks",
|
|
15590
|
+
M: "1 month",
|
|
15591
|
+
MM: "%d months",
|
|
15592
|
+
y: "1 year",
|
|
15593
|
+
yy: "%d years"
|
|
15594
|
+
}
|
|
15595
|
+
});
|
|
15596
|
+
const UnderlinedTrigger = styled(Popover.Trigger).withConfig({
|
|
15597
|
+
componentId: "sc-17qquw8-0"
|
|
15598
|
+
})(["", ""], linkStyles);
|
|
15599
|
+
const formatDateDetails = (date, timezone2) => {
|
|
15600
|
+
const isCurrentYear = dayjs().year() === date.year();
|
|
15601
|
+
const formatForCurrentYear = "MMM D, h:mm a";
|
|
15602
|
+
const formatForPastYear = "MMM D, YYYY, h:mm a";
|
|
15603
|
+
if (isCurrentYear) {
|
|
15604
|
+
if (timezone2) {
|
|
15605
|
+
const dateWithTimezone = date.tz(timezone2);
|
|
15606
|
+
return dateWithTimezone.format(formatForCurrentYear).replace("am", "a.m.").replace("pm", "p.m.");
|
|
15607
|
+
}
|
|
15608
|
+
return date.format(formatForCurrentYear).replace("am", "a.m.").replace("pm", "p.m.");
|
|
15609
|
+
}
|
|
15610
|
+
if (timezone2) {
|
|
15611
|
+
const dateWithTimezone = date.tz(timezone2);
|
|
15612
|
+
return dateWithTimezone.format(formatForPastYear).replace("am", "a.m.").replace("pm", "p.m.");
|
|
15613
|
+
}
|
|
15614
|
+
return date.format(formatForPastYear).replace("am", "a.m.").replace("pm", "p.m.");
|
|
15615
|
+
};
|
|
15616
|
+
const formatTimezone = (date, timezone2) => {
|
|
15617
|
+
var _a;
|
|
15618
|
+
return ((_a = new Intl.DateTimeFormat(void 0, {
|
|
15619
|
+
timeZone: timezone2,
|
|
15620
|
+
timeZoneName: "short"
|
|
15621
|
+
}).formatToParts(date.toDate()).find((part) => part.type === "timeZoneName")) == null ? void 0 : _a.value) ?? date.format("z");
|
|
15622
|
+
};
|
|
15623
|
+
const DateDetails = ({
|
|
15624
|
+
date,
|
|
15625
|
+
side = "top",
|
|
15626
|
+
systemTimeZone = "America/New_York"
|
|
15627
|
+
}) => {
|
|
15628
|
+
const dayjsDate = dayjs(date);
|
|
15629
|
+
let systemTime;
|
|
15630
|
+
if (systemTimeZone) {
|
|
15631
|
+
dayjs.extend(timezone);
|
|
15632
|
+
try {
|
|
15633
|
+
systemTime = dayjsDate.tz(systemTimeZone);
|
|
15634
|
+
} catch {
|
|
15635
|
+
systemTime = dayjsDate.tz("America/New_York");
|
|
15636
|
+
}
|
|
15637
|
+
}
|
|
15638
|
+
return /* @__PURE__ */ jsxs(Popover, { children: [
|
|
15639
|
+
/* @__PURE__ */ jsx(UnderlinedTrigger, { $size: "sm", $weight: "medium", children: /* @__PURE__ */ jsx(Text, { size: "sm", children: dayjs.utc(date).fromNow() }) }),
|
|
15640
|
+
/* @__PURE__ */ jsx(Popover.Content, { side, showArrow: true, children: /* @__PURE__ */ jsxs(GridContainer$1, { columnGap: "xl", gridTemplateColumns: "repeat(2, auto)", gap: "sm", children: [
|
|
15641
|
+
/* @__PURE__ */ jsx(Text, { color: "muted", size: "sm", children: "Local" }),
|
|
15642
|
+
/* @__PURE__ */ jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
15643
|
+
formatDateDetails(dayjsDate),
|
|
15644
|
+
" (",
|
|
15645
|
+
formatTimezone(dayjsDate, dayjs.tz.guess()),
|
|
15646
|
+
")"
|
|
15647
|
+
] }) }),
|
|
15648
|
+
systemTime && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
15649
|
+
/* @__PURE__ */ jsx(Text, { color: "muted", size: "sm", children: "System" }),
|
|
15650
|
+
/* @__PURE__ */ jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsxs(Text, { size: "sm", children: [
|
|
15651
|
+
formatDateDetails(systemTime, systemTimeZone),
|
|
15652
|
+
" (",
|
|
15653
|
+
formatTimezone(systemTime, systemTimeZone),
|
|
15654
|
+
")"
|
|
15655
|
+
] }) })
|
|
15656
|
+
] }),
|
|
15657
|
+
/* @__PURE__ */ jsx(Text, { color: "muted", size: "sm", children: "UTC" }),
|
|
15658
|
+
/* @__PURE__ */ jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsx(Text, { size: "sm", children: formatDateDetails(dayjsDate.utc(), "UTC") }) }),
|
|
15659
|
+
/* @__PURE__ */ jsx(Text, { color: "muted", size: "sm", children: "Unix" }),
|
|
15660
|
+
/* @__PURE__ */ jsx(Container, { justifyContent: "end", children: /* @__PURE__ */ jsx(Text, { size: "sm", children: Math.round(date.getTime() / 1e3) }) })
|
|
15661
|
+
] }) })
|
|
15662
|
+
] });
|
|
15663
|
+
};
|
|
14537
15664
|
const constructFromSymbol = Symbol.for("constructDateFrom");
|
|
14538
15665
|
function constructFrom(date, value) {
|
|
14539
15666
|
if (typeof date === "function")
|
|
@@ -14937,7 +16064,7 @@ function useCalendar({
|
|
|
14937
16064
|
[calendar, getBody, getHeaders, setNext, setPrev, viewType]
|
|
14938
16065
|
);
|
|
14939
16066
|
}
|
|
14940
|
-
const Wrapper$
|
|
16067
|
+
const Wrapper$3 = styled.div.withConfig({
|
|
14941
16068
|
componentId: "sc-1pvd2nj-0"
|
|
14942
16069
|
})(["width:inherit;display:flex;align-items:center;justify-content:space-between;align-items:center;span:first-of-type{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;}", ""], ({
|
|
14943
16070
|
theme: theme2,
|
|
@@ -15049,7 +16176,7 @@ const InputWrapper = ({
|
|
|
15049
16176
|
}) => {
|
|
15050
16177
|
return /* @__PURE__ */ jsxs(FormRoot, { $orientation: orientation, $dir: dir, $addLabelPadding: true, children: [
|
|
15051
16178
|
/* @__PURE__ */ jsxs(FormElementContainer, { children: [
|
|
15052
|
-
/* @__PURE__ */ jsx(Wrapper$
|
|
16179
|
+
/* @__PURE__ */ jsx(Wrapper$3, { $error: !!error2, $resize: resize, "data-resize": resize, className: disabled ? `disabled ${className}` : className, children }),
|
|
15053
16180
|
!!error2 && error2 !== true && /* @__PURE__ */ jsx(Error$1, { children: error2 })
|
|
15054
16181
|
] }),
|
|
15055
16182
|
label && /* @__PURE__ */ jsx(StyledLabel, { htmlFor: id, disabled, error: !!error2, $labelColor: labelColor, children: label })
|
|
@@ -15573,14 +16700,14 @@ const Dialog = ({
|
|
|
15573
16700
|
}) => {
|
|
15574
16701
|
return /* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, { ...props, children });
|
|
15575
16702
|
};
|
|
15576
|
-
const Trigger$
|
|
16703
|
+
const Trigger$3 = styled($5d3850c4d0b4e6c7$export$41fb9f06171c75f4).withConfig({
|
|
15577
16704
|
componentId: "sc-1wr6otn-0"
|
|
15578
16705
|
})(["width:fit-content;background:transparent;border:none;cursor:pointer;"]);
|
|
15579
16706
|
const DialogTrigger = ({
|
|
15580
16707
|
children,
|
|
15581
16708
|
...props
|
|
15582
16709
|
}) => {
|
|
15583
|
-
return /* @__PURE__ */ jsx(Trigger$
|
|
16710
|
+
return /* @__PURE__ */ jsx(Trigger$3, { ...props, children });
|
|
15584
16711
|
};
|
|
15585
16712
|
DialogTrigger.displayName = "DialogTrigger";
|
|
15586
16713
|
Dialog.Trigger = DialogTrigger;
|
|
@@ -15639,10 +16766,10 @@ const Title$1 = styled.h2.withConfig({
|
|
|
15639
16766
|
})(["font:", ";padding:0;margin:0;"], ({
|
|
15640
16767
|
theme: theme2
|
|
15641
16768
|
}) => theme2.click.dialog.typography.title.default);
|
|
15642
|
-
const CloseButton
|
|
16769
|
+
const CloseButton = ({
|
|
15643
16770
|
onClose
|
|
15644
16771
|
}) => /* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, { asChild: true, children: /* @__PURE__ */ jsx(CrossButton, { onClick: onClose, children: /* @__PURE__ */ jsx(SvgImage, { name: "cross", size: "lg" }) }) });
|
|
15645
|
-
const DialogContent
|
|
16772
|
+
const DialogContent = ({
|
|
15646
16773
|
title,
|
|
15647
16774
|
children,
|
|
15648
16775
|
showClose,
|
|
@@ -15657,68 +16784,29 @@ const DialogContent$1 = ({
|
|
|
15657
16784
|
/* @__PURE__ */ jsxs(ContentArea, { ...props, children: [
|
|
15658
16785
|
/* @__PURE__ */ jsxs(TitleArea, { children: [
|
|
15659
16786
|
/* @__PURE__ */ jsx(Title$1, { children: title }),
|
|
15660
|
-
showClose && /* @__PURE__ */ jsx(CloseButton
|
|
16787
|
+
showClose && /* @__PURE__ */ jsx(CloseButton, { onClose })
|
|
15661
16788
|
] }),
|
|
15662
16789
|
/* @__PURE__ */ jsx(Spacer, { size: "sm" }),
|
|
15663
16790
|
children
|
|
15664
16791
|
] })
|
|
15665
16792
|
] });
|
|
15666
16793
|
};
|
|
15667
|
-
DialogContent
|
|
15668
|
-
Dialog.Content = DialogContent
|
|
15669
|
-
const ActionsWrapper = styled.div.withConfig({
|
|
15670
|
-
componentId: "sc-6eozxy-0"
|
|
15671
|
-
})(["display:flex;justify-content:flex-end;gap:", ";"], (props) => props.theme.click.dialog.space.gap);
|
|
15672
|
-
const DialogContent = styled.div.withConfig({
|
|
15673
|
-
componentId: "sc-6eozxy-1"
|
|
15674
|
-
})(["overflow:hidden;display:flex;flex-direction:column;"]);
|
|
15675
|
-
const ConfirmationDialog = ({
|
|
15676
|
-
children,
|
|
15677
|
-
disabled,
|
|
15678
|
-
loading,
|
|
15679
|
-
message,
|
|
15680
|
-
onCancel,
|
|
15681
|
-
onConfirm,
|
|
15682
|
-
open: open2,
|
|
15683
|
-
primaryActionLabel = "Confirm",
|
|
15684
|
-
primaryActionType = "primary",
|
|
15685
|
-
secondaryActionLabel = "Cancel",
|
|
15686
|
-
showClose,
|
|
15687
|
-
title,
|
|
15688
|
-
...props
|
|
15689
|
-
}) => {
|
|
15690
|
-
if (children && message) {
|
|
15691
|
-
throw new Error("You can't pass children and message props at the same time");
|
|
15692
|
-
}
|
|
15693
|
-
return /* @__PURE__ */ jsx(Dialog, { open: open2, onOpenChange: (open22) => {
|
|
15694
|
-
!open22 && onCancel && onCancel();
|
|
15695
|
-
}, children: /* @__PURE__ */ jsxs(DialogContent, { as: Dialog.Content, title, showClose, ...props, children: [
|
|
15696
|
-
/* @__PURE__ */ jsx(Container, { overflow: "auto", grow: "1", orientation: "vertical", children: children ? children : /* @__PURE__ */ jsx(Text, { children: message }) }),
|
|
15697
|
-
/* @__PURE__ */ jsx(Separator, { size: "xl" }),
|
|
15698
|
-
/* @__PURE__ */ jsxs(ActionsWrapper, { children: [
|
|
15699
|
-
/* @__PURE__ */ jsx(Dialog.Close, { label: secondaryActionLabel, "data-testid": "cancel-action-button" }),
|
|
15700
|
-
/* @__PURE__ */ jsx(Dialog.Close, { loading: !!loading, disabled: !!disabled || !!loading, type: primaryActionType, label: primaryActionLabel, onClick: () => {
|
|
15701
|
-
if (onConfirm) {
|
|
15702
|
-
onConfirm();
|
|
15703
|
-
}
|
|
15704
|
-
}, "data-testid": "confirm-action-button" })
|
|
15705
|
-
] })
|
|
15706
|
-
] }) });
|
|
15707
|
-
};
|
|
16794
|
+
DialogContent.displayName = "DialogContent";
|
|
16795
|
+
Dialog.Content = DialogContent;
|
|
15708
16796
|
const Flyout = ({
|
|
15709
16797
|
modal = false,
|
|
15710
16798
|
...props
|
|
15711
16799
|
}) => {
|
|
15712
16800
|
return /* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$3ddf2d174ce01153, { modal, ...props });
|
|
15713
16801
|
};
|
|
15714
|
-
const Trigger$
|
|
16802
|
+
const Trigger$2 = ({
|
|
15715
16803
|
children,
|
|
15716
16804
|
...props
|
|
15717
16805
|
}) => {
|
|
15718
16806
|
return /* @__PURE__ */ jsx($5d3850c4d0b4e6c7$export$2e1e1122cf0cba88, { asChild: true, ...props, children: /* @__PURE__ */ jsx("div", { children }) });
|
|
15719
16807
|
};
|
|
15720
|
-
Trigger$
|
|
15721
|
-
Flyout.Trigger = Trigger$
|
|
16808
|
+
Trigger$2.displayName = "Flyout.Trigger";
|
|
16809
|
+
Flyout.Trigger = Trigger$2;
|
|
15722
16810
|
const animationWidth = () => keyframes({
|
|
15723
16811
|
from: {
|
|
15724
16812
|
width: 0
|
|
@@ -15946,97 +17034,6 @@ const FormContainer = ({
|
|
|
15946
17034
|
] }),
|
|
15947
17035
|
label && /* @__PURE__ */ jsx(Label$1, { htmlFor: id, error: !!error2, children: label })
|
|
15948
17036
|
] });
|
|
15949
|
-
const GridContainer$1 = ({
|
|
15950
|
-
alignItems = "stretch",
|
|
15951
|
-
alignContent = "stretch",
|
|
15952
|
-
children,
|
|
15953
|
-
columnGap,
|
|
15954
|
-
gap,
|
|
15955
|
-
gridAutoColumns,
|
|
15956
|
-
gridAutoFlow,
|
|
15957
|
-
gridAutoRows,
|
|
15958
|
-
gridTemplateAreas,
|
|
15959
|
-
gridTemplateColumns,
|
|
15960
|
-
gridTemplateRows,
|
|
15961
|
-
gridTemplate,
|
|
15962
|
-
inline = false,
|
|
15963
|
-
isResponsive = true,
|
|
15964
|
-
justifyContent = "stretch",
|
|
15965
|
-
justifyItems = "stretch",
|
|
15966
|
-
rowGap,
|
|
15967
|
-
height,
|
|
15968
|
-
maxHeight,
|
|
15969
|
-
minHeight,
|
|
15970
|
-
fillWidth = true,
|
|
15971
|
-
maxWidth,
|
|
15972
|
-
minWidth,
|
|
15973
|
-
overflow,
|
|
15974
|
-
...props
|
|
15975
|
-
}) => {
|
|
15976
|
-
return /* @__PURE__ */ jsx(Wrapper$3, { $alignItems: alignItems, $alignContent: alignContent, $columnGap: columnGap, $gap: gap, $gridAutoColumns: gridAutoColumns, $gridAutoFlow: gridAutoFlow, $gridAutoRows: gridAutoRows, $gridTemplateAreas: gridTemplateAreas, $gridTemplateColumns: gridTemplateColumns, $gridTemplateRows: gridTemplateRows, $gridTemplate: gridTemplate, $inline: inline, $isResponsive: isResponsive, $justifyContent: justifyContent, $justifyItems: justifyItems, $rowGap: rowGap, $height: height, $maxHeight: maxHeight, $minHeight: minHeight, $fillWidth: fillWidth, $maxWidth: maxWidth, $minWidth: minWidth, $overflow: overflow, "data-testid": "grid-container", ...props, children });
|
|
15977
|
-
};
|
|
15978
|
-
const Wrapper$3 = styled.div.withConfig({
|
|
15979
|
-
componentId: "sc-r57kdn-0"
|
|
15980
|
-
})(["align-items:", ";align-content:", ";display:", ";", ";", ";", ";", ";", ";", ";", ";justify-content:", ";justify-items:", ";", " ", " ", " ", " @media (max-width:", "){grid-template-columns:", ";}"], ({
|
|
15981
|
-
$alignItems = "stretch"
|
|
15982
|
-
}) => $alignItems, ({
|
|
15983
|
-
$alignContent = "stretch"
|
|
15984
|
-
}) => $alignContent, ({
|
|
15985
|
-
$inline
|
|
15986
|
-
}) => $inline === true ? "inline-grid" : "grid", ({
|
|
15987
|
-
$gridAutoColumns
|
|
15988
|
-
}) => $gridAutoColumns && `grid-auto-columns: ${$gridAutoColumns}`, ({
|
|
15989
|
-
$gridAutoFlow
|
|
15990
|
-
}) => $gridAutoFlow && `grid-auto-flow: ${$gridAutoFlow}`, ({
|
|
15991
|
-
$gridAutoRows
|
|
15992
|
-
}) => $gridAutoRows && `grid-auto-rows: ${$gridAutoRows}`, ({
|
|
15993
|
-
$gridTemplateAreas
|
|
15994
|
-
}) => $gridTemplateAreas && `grid-template-area: ${$gridTemplateAreas}`, ({
|
|
15995
|
-
$gridTemplateColumns
|
|
15996
|
-
}) => $gridTemplateColumns && `grid-template-columns: ${$gridTemplateColumns}`, ({
|
|
15997
|
-
$gridTemplateRows
|
|
15998
|
-
}) => $gridTemplateRows && `grid-template-rows: ${$gridTemplateRows}`, ({
|
|
15999
|
-
$gridTemplate
|
|
16000
|
-
}) => $gridTemplate && `grid-template: ${$gridTemplate}`, ({
|
|
16001
|
-
$justifyContent = "stretch"
|
|
16002
|
-
}) => $justifyContent, ({
|
|
16003
|
-
$justifyItems = "stretch"
|
|
16004
|
-
}) => $justifyItems, ({
|
|
16005
|
-
theme: theme2,
|
|
16006
|
-
$gap,
|
|
16007
|
-
$columnGap,
|
|
16008
|
-
$rowGap
|
|
16009
|
-
}) => `
|
|
16010
|
-
gap: ${$gap ? theme2.click.gridContainer.gap[$gap] : "inherit"};
|
|
16011
|
-
${$columnGap && `column-gap: ${theme2.click.gridContainer.gap[$columnGap]}`};
|
|
16012
|
-
${$rowGap && `row-gap: ${theme2.click.gridContainer.gap[$rowGap]}`};
|
|
16013
|
-
`, ({
|
|
16014
|
-
$fillWidth,
|
|
16015
|
-
$maxWidth,
|
|
16016
|
-
$minWidth
|
|
16017
|
-
}) => `
|
|
16018
|
-
width: ${$fillWidth ? "100%" : "auto"};
|
|
16019
|
-
${typeof $maxWidth === "string" && `max-width: ${$maxWidth}`};
|
|
16020
|
-
${typeof $minWidth === "string" && `min-width: ${$minWidth}`};
|
|
16021
|
-
`, ({
|
|
16022
|
-
$height,
|
|
16023
|
-
$maxHeight,
|
|
16024
|
-
$minHeight
|
|
16025
|
-
}) => `
|
|
16026
|
-
${typeof $height === "string" && `height: ${$height}`};
|
|
16027
|
-
${typeof $maxHeight === "string" && `max-height: ${$maxHeight}`};
|
|
16028
|
-
${typeof $minHeight === "string" && `min-height: ${$minHeight}`};
|
|
16029
|
-
`, ({
|
|
16030
|
-
$overflow
|
|
16031
|
-
}) => `
|
|
16032
|
-
${typeof $overflow === "string" && `overflow: ${$overflow}`};
|
|
16033
|
-
`, ({
|
|
16034
|
-
theme: theme2
|
|
16035
|
-
}) => theme2.breakpoint.sizes.md, ({
|
|
16036
|
-
$isResponsive = true
|
|
16037
|
-
}) => $isResponsive === true ? "1fr" : ({
|
|
16038
|
-
$gridTemplateColumns
|
|
16039
|
-
}) => $gridTemplateColumns || "auto");
|
|
16040
17037
|
const InlineContainer = styled.span.withConfig({
|
|
16041
17038
|
componentId: "sc-ugg5k0-0"
|
|
16042
17039
|
})(["", ""], ({
|
|
@@ -16050,305 +17047,6 @@ const InlineContainer = styled.span.withConfig({
|
|
|
16050
17047
|
padding: 0 ${theme2.click.codeInline.space.x};
|
|
16051
17048
|
`);
|
|
16052
17049
|
const InlineCodeBlock = (props) => /* @__PURE__ */ jsx(InlineContainer, { ...props });
|
|
16053
|
-
const $1b0217ee4a91d156$var$CONTEXT_MENU_NAME = "ContextMenu";
|
|
16054
|
-
const [$1b0217ee4a91d156$var$createContextMenuContext, $1b0217ee4a91d156$export$1059331f43ddcc82] = $c512c27ab02ef895$export$50c7b4e9d9f19c1($1b0217ee4a91d156$var$CONTEXT_MENU_NAME, [
|
|
16055
|
-
$6cc32821e9371a1c$export$4027731b685e72eb
|
|
16056
|
-
]);
|
|
16057
|
-
const $1b0217ee4a91d156$var$useMenuScope = $6cc32821e9371a1c$export$4027731b685e72eb();
|
|
16058
|
-
const [$1b0217ee4a91d156$var$ContextMenuProvider, $1b0217ee4a91d156$var$useContextMenuContext] = $1b0217ee4a91d156$var$createContextMenuContext($1b0217ee4a91d156$var$CONTEXT_MENU_NAME);
|
|
16059
|
-
const $1b0217ee4a91d156$export$8dc6765e8be191c7 = (props) => {
|
|
16060
|
-
const { __scopeContextMenu, children, onOpenChange, dir, modal = true } = props;
|
|
16061
|
-
const [open1, setOpen] = useState(false);
|
|
16062
|
-
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
16063
|
-
const handleOpenChangeProp = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a(onOpenChange);
|
|
16064
|
-
const handleOpenChange = useCallback((open2) => {
|
|
16065
|
-
setOpen(open2);
|
|
16066
|
-
handleOpenChangeProp(open2);
|
|
16067
|
-
}, [
|
|
16068
|
-
handleOpenChangeProp
|
|
16069
|
-
]);
|
|
16070
|
-
return /* @__PURE__ */ createElement$1($1b0217ee4a91d156$var$ContextMenuProvider, {
|
|
16071
|
-
scope: __scopeContextMenu,
|
|
16072
|
-
open: open1,
|
|
16073
|
-
onOpenChange: handleOpenChange,
|
|
16074
|
-
modal
|
|
16075
|
-
}, /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$be92b6f5f03c0fe9, _extends$1({}, menuScope, {
|
|
16076
|
-
dir,
|
|
16077
|
-
open: open1,
|
|
16078
|
-
onOpenChange: handleOpenChange,
|
|
16079
|
-
modal
|
|
16080
|
-
}), children));
|
|
16081
|
-
};
|
|
16082
|
-
const $1b0217ee4a91d156$var$TRIGGER_NAME = "ContextMenuTrigger";
|
|
16083
|
-
const $1b0217ee4a91d156$export$be6fc7b1d5b0beb9 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
16084
|
-
const { __scopeContextMenu, disabled = false, ...triggerProps } = props;
|
|
16085
|
-
const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$TRIGGER_NAME, __scopeContextMenu);
|
|
16086
|
-
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
16087
|
-
const pointRef = useRef({
|
|
16088
|
-
x: 0,
|
|
16089
|
-
y: 0
|
|
16090
|
-
});
|
|
16091
|
-
const virtualRef = useRef({
|
|
16092
|
-
getBoundingClientRect: () => DOMRect.fromRect({
|
|
16093
|
-
width: 0,
|
|
16094
|
-
height: 0,
|
|
16095
|
-
...pointRef.current
|
|
16096
|
-
})
|
|
16097
|
-
});
|
|
16098
|
-
const longPressTimerRef = useRef(0);
|
|
16099
|
-
const clearLongPress = useCallback(
|
|
16100
|
-
() => window.clearTimeout(longPressTimerRef.current),
|
|
16101
|
-
[]
|
|
16102
|
-
);
|
|
16103
|
-
const handleOpen = (event) => {
|
|
16104
|
-
pointRef.current = {
|
|
16105
|
-
x: event.clientX,
|
|
16106
|
-
y: event.clientY
|
|
16107
|
-
};
|
|
16108
|
-
context.onOpenChange(true);
|
|
16109
|
-
};
|
|
16110
|
-
useEffect(
|
|
16111
|
-
() => clearLongPress,
|
|
16112
|
-
[
|
|
16113
|
-
clearLongPress
|
|
16114
|
-
]
|
|
16115
|
-
);
|
|
16116
|
-
useEffect(
|
|
16117
|
-
() => void (disabled && clearLongPress()),
|
|
16118
|
-
[
|
|
16119
|
-
disabled,
|
|
16120
|
-
clearLongPress
|
|
16121
|
-
]
|
|
16122
|
-
);
|
|
16123
|
-
return /* @__PURE__ */ createElement$1(Fragment, null, /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$b688253958b8dfe7, _extends$1({}, menuScope, {
|
|
16124
|
-
virtualRef
|
|
16125
|
-
})), /* @__PURE__ */ createElement$1($8927f6f2acc4f386$export$250ffa63cdc0d034.span, _extends$1({
|
|
16126
|
-
"data-state": context.open ? "open" : "closed",
|
|
16127
|
-
"data-disabled": disabled ? "" : void 0
|
|
16128
|
-
}, triggerProps, {
|
|
16129
|
-
ref: forwardedRef,
|
|
16130
|
-
style: {
|
|
16131
|
-
WebkitTouchCallout: "none",
|
|
16132
|
-
...props.style
|
|
16133
|
-
},
|
|
16134
|
-
onContextMenu: disabled ? props.onContextMenu : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onContextMenu, (event) => {
|
|
16135
|
-
clearLongPress();
|
|
16136
|
-
handleOpen(event);
|
|
16137
|
-
event.preventDefault();
|
|
16138
|
-
}),
|
|
16139
|
-
onPointerDown: disabled ? props.onPointerDown : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerDown, $1b0217ee4a91d156$var$whenTouchOrPen((event) => {
|
|
16140
|
-
clearLongPress();
|
|
16141
|
-
longPressTimerRef.current = window.setTimeout(
|
|
16142
|
-
() => handleOpen(event),
|
|
16143
|
-
700
|
|
16144
|
-
);
|
|
16145
|
-
})),
|
|
16146
|
-
onPointerMove: disabled ? props.onPointerMove : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerMove, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
|
|
16147
|
-
onPointerCancel: disabled ? props.onPointerCancel : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerCancel, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress)),
|
|
16148
|
-
onPointerUp: disabled ? props.onPointerUp : $e42e1063c40fb3ef$export$b9ecd428b558ff10(props.onPointerUp, $1b0217ee4a91d156$var$whenTouchOrPen(clearLongPress))
|
|
16149
|
-
})));
|
|
16150
|
-
});
|
|
16151
|
-
const $1b0217ee4a91d156$export$14afd0be83e45060 = (props) => {
|
|
16152
|
-
const { __scopeContextMenu, ...portalProps } = props;
|
|
16153
|
-
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
16154
|
-
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$602eac185826482c, _extends$1({}, menuScope, portalProps));
|
|
16155
|
-
};
|
|
16156
|
-
const $1b0217ee4a91d156$var$CONTENT_NAME = "ContextMenuContent";
|
|
16157
|
-
const $1b0217ee4a91d156$export$572205900c9369e = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
16158
|
-
const { __scopeContextMenu, ...contentProps } = props;
|
|
16159
|
-
const context = $1b0217ee4a91d156$var$useContextMenuContext($1b0217ee4a91d156$var$CONTENT_NAME, __scopeContextMenu);
|
|
16160
|
-
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
16161
|
-
const hasInteractedOutsideRef = useRef(false);
|
|
16162
|
-
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$7c6e2c02157bb7d2, _extends$1({}, menuScope, contentProps, {
|
|
16163
|
-
ref: forwardedRef,
|
|
16164
|
-
side: "right",
|
|
16165
|
-
sideOffset: 2,
|
|
16166
|
-
align: "start",
|
|
16167
|
-
onCloseAutoFocus: (event) => {
|
|
16168
|
-
var _props$onCloseAutoFoc;
|
|
16169
|
-
(_props$onCloseAutoFoc = props.onCloseAutoFocus) === null || _props$onCloseAutoFoc === void 0 || _props$onCloseAutoFoc.call(props, event);
|
|
16170
|
-
if (!event.defaultPrevented && hasInteractedOutsideRef.current)
|
|
16171
|
-
event.preventDefault();
|
|
16172
|
-
hasInteractedOutsideRef.current = false;
|
|
16173
|
-
},
|
|
16174
|
-
onInteractOutside: (event) => {
|
|
16175
|
-
var _props$onInteractOuts;
|
|
16176
|
-
(_props$onInteractOuts = props.onInteractOutside) === null || _props$onInteractOuts === void 0 || _props$onInteractOuts.call(props, event);
|
|
16177
|
-
if (!event.defaultPrevented && !context.modal)
|
|
16178
|
-
hasInteractedOutsideRef.current = true;
|
|
16179
|
-
},
|
|
16180
|
-
style: {
|
|
16181
|
-
...props.style,
|
|
16182
|
-
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
16183
|
-
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
16184
|
-
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
16185
|
-
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
16186
|
-
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
16187
|
-
}
|
|
16188
|
-
}));
|
|
16189
|
-
});
|
|
16190
|
-
const $1b0217ee4a91d156$export$9860523b0fcdd664 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
16191
|
-
const { __scopeContextMenu, ...groupProps } = props;
|
|
16192
|
-
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
16193
|
-
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$eb2fcfdbd7ba97d4, _extends$1({}, menuScope, groupProps, {
|
|
16194
|
-
ref: forwardedRef
|
|
16195
|
-
}));
|
|
16196
|
-
});
|
|
16197
|
-
const $1b0217ee4a91d156$export$16a26dc176a49100 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
16198
|
-
const { __scopeContextMenu, ...itemProps } = props;
|
|
16199
|
-
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
16200
|
-
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$6d08773d2e66f8f2, _extends$1({}, menuScope, itemProps, {
|
|
16201
|
-
ref: forwardedRef
|
|
16202
|
-
}));
|
|
16203
|
-
});
|
|
16204
|
-
const $1b0217ee4a91d156$export$f47d0a58228a61e2 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
16205
|
-
const { __scopeContextMenu, ...arrowProps } = props;
|
|
16206
|
-
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
16207
|
-
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$21b07c8f274aebd5, _extends$1({}, menuScope, arrowProps, {
|
|
16208
|
-
ref: forwardedRef
|
|
16209
|
-
}));
|
|
16210
|
-
});
|
|
16211
|
-
const $1b0217ee4a91d156$export$5bc21d1c00c4b201 = (props) => {
|
|
16212
|
-
const { __scopeContextMenu, children, onOpenChange, open: openProp, defaultOpen } = props;
|
|
16213
|
-
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
16214
|
-
const [open2, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3({
|
|
16215
|
-
prop: openProp,
|
|
16216
|
-
defaultProp: defaultOpen,
|
|
16217
|
-
onChange: onOpenChange
|
|
16218
|
-
});
|
|
16219
|
-
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$d7a01e11500dfb6f, _extends$1({}, menuScope, {
|
|
16220
|
-
open: open2,
|
|
16221
|
-
onOpenChange: setOpen
|
|
16222
|
-
}), children);
|
|
16223
|
-
};
|
|
16224
|
-
const $1b0217ee4a91d156$export$30b2b5c64556d316 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
16225
|
-
const { __scopeContextMenu, ...triggerItemProps } = props;
|
|
16226
|
-
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
16227
|
-
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$2ea8a7a591ac5eac, _extends$1({}, menuScope, triggerItemProps, {
|
|
16228
|
-
ref: forwardedRef
|
|
16229
|
-
}));
|
|
16230
|
-
});
|
|
16231
|
-
const $1b0217ee4a91d156$export$2c967063bd2dc512 = /* @__PURE__ */ forwardRef((props, forwardedRef) => {
|
|
16232
|
-
const { __scopeContextMenu, ...subContentProps } = props;
|
|
16233
|
-
const menuScope = $1b0217ee4a91d156$var$useMenuScope(__scopeContextMenu);
|
|
16234
|
-
return /* @__PURE__ */ createElement$1($6cc32821e9371a1c$export$6d4de93b380beddf, _extends$1({}, menuScope, subContentProps, {
|
|
16235
|
-
ref: forwardedRef,
|
|
16236
|
-
style: {
|
|
16237
|
-
...props.style,
|
|
16238
|
-
"--radix-context-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
16239
|
-
"--radix-context-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
16240
|
-
"--radix-context-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
16241
|
-
"--radix-context-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
16242
|
-
"--radix-context-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
16243
|
-
}
|
|
16244
|
-
}));
|
|
16245
|
-
});
|
|
16246
|
-
function $1b0217ee4a91d156$var$whenTouchOrPen(handler) {
|
|
16247
|
-
return (event) => event.pointerType !== "mouse" ? handler(event) : void 0;
|
|
16248
|
-
}
|
|
16249
|
-
const $1b0217ee4a91d156$export$be92b6f5f03c0fe9 = $1b0217ee4a91d156$export$8dc6765e8be191c7;
|
|
16250
|
-
const $1b0217ee4a91d156$export$41fb9f06171c75f4 = $1b0217ee4a91d156$export$be6fc7b1d5b0beb9;
|
|
16251
|
-
const $1b0217ee4a91d156$export$602eac185826482c = $1b0217ee4a91d156$export$14afd0be83e45060;
|
|
16252
|
-
const $1b0217ee4a91d156$export$7c6e2c02157bb7d2 = $1b0217ee4a91d156$export$572205900c9369e;
|
|
16253
|
-
const $1b0217ee4a91d156$export$eb2fcfdbd7ba97d4 = $1b0217ee4a91d156$export$9860523b0fcdd664;
|
|
16254
|
-
const $1b0217ee4a91d156$export$6d08773d2e66f8f2 = $1b0217ee4a91d156$export$16a26dc176a49100;
|
|
16255
|
-
const $1b0217ee4a91d156$export$21b07c8f274aebd5 = $1b0217ee4a91d156$export$f47d0a58228a61e2;
|
|
16256
|
-
const $1b0217ee4a91d156$export$d7a01e11500dfb6f = $1b0217ee4a91d156$export$5bc21d1c00c4b201;
|
|
16257
|
-
const $1b0217ee4a91d156$export$2ea8a7a591ac5eac = $1b0217ee4a91d156$export$30b2b5c64556d316;
|
|
16258
|
-
const $1b0217ee4a91d156$export$6d4de93b380beddf = $1b0217ee4a91d156$export$2c967063bd2dc512;
|
|
16259
|
-
const ContextMenu = (props) => /* @__PURE__ */ jsx($1b0217ee4a91d156$export$be92b6f5f03c0fe9, { ...props });
|
|
16260
|
-
const ContextMenuTrigger$1 = forwardRef(({
|
|
16261
|
-
disabled,
|
|
16262
|
-
...props
|
|
16263
|
-
}, ref) => {
|
|
16264
|
-
return /* @__PURE__ */ jsx($1b0217ee4a91d156$export$41fb9f06171c75f4, { asChild: true, disabled, children: /* @__PURE__ */ jsx("div", { ref, ...props }) });
|
|
16265
|
-
});
|
|
16266
|
-
ContextMenuTrigger$1.displayName = "ContextMenuTrigger";
|
|
16267
|
-
ContextMenu.Trigger = ContextMenuTrigger$1;
|
|
16268
|
-
const ContextMenuSubTrigger = ({
|
|
16269
|
-
icon,
|
|
16270
|
-
iconDir,
|
|
16271
|
-
children,
|
|
16272
|
-
...props
|
|
16273
|
-
}) => {
|
|
16274
|
-
return /* @__PURE__ */ jsxs(GenericMenuItem, { as: $1b0217ee4a91d156$export$2ea8a7a591ac5eac, ...props, children: [
|
|
16275
|
-
/* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children }),
|
|
16276
|
-
/* @__PURE__ */ jsx("div", { className: "dropdown-arrow", children: /* @__PURE__ */ jsx(SvgImage, { name: "chevron-right" }) })
|
|
16277
|
-
] });
|
|
16278
|
-
};
|
|
16279
|
-
ContextMenuSubTrigger.displayName = "ContextMenuSubTrigger";
|
|
16280
|
-
ContextMenu.SubTrigger = ContextMenuSubTrigger;
|
|
16281
|
-
const RightMenuContent = styled(GenericMenuPanel).withConfig({
|
|
16282
|
-
componentId: "sc-8z6kye-0"
|
|
16283
|
-
})(["flex-direction:column;z-index:1;", ";"], ({
|
|
16284
|
-
$showArrow
|
|
16285
|
-
}) => $showArrow ? `
|
|
16286
|
-
&[data-side="bottom"] {
|
|
16287
|
-
margin-top: -1px;
|
|
16288
|
-
}
|
|
16289
|
-
&[data-side="top"] {
|
|
16290
|
-
margin-bottom: -1px;
|
|
16291
|
-
}
|
|
16292
|
-
&[data-side="left"] {
|
|
16293
|
-
margin-right: -1px;
|
|
16294
|
-
.popover-arrow {
|
|
16295
|
-
margin-right: 1rem;
|
|
16296
|
-
}
|
|
16297
|
-
}
|
|
16298
|
-
}
|
|
16299
|
-
&[data-side="right"] {
|
|
16300
|
-
margin-left: -1px;
|
|
16301
|
-
.popover-arrow {
|
|
16302
|
-
margin-left: 1rem;
|
|
16303
|
-
}
|
|
16304
|
-
}
|
|
16305
|
-
` : "");
|
|
16306
|
-
const ContextMenuContent = ({
|
|
16307
|
-
sub,
|
|
16308
|
-
children,
|
|
16309
|
-
showArrow,
|
|
16310
|
-
...props
|
|
16311
|
-
}) => {
|
|
16312
|
-
const ContentElement = sub ? $1b0217ee4a91d156$export$6d4de93b380beddf : $1b0217ee4a91d156$export$7c6e2c02157bb7d2;
|
|
16313
|
-
return /* @__PURE__ */ jsx($1b0217ee4a91d156$export$602eac185826482c, { children: /* @__PURE__ */ jsxs(RightMenuContent, { $type: "context-menu", $showArrow: showArrow, as: ContentElement, ...props, children: [
|
|
16314
|
-
showArrow && /* @__PURE__ */ jsx(Arrow$1, { asChild: true, as: $1b0217ee4a91d156$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsx(PopoverArrow, { className: "popover-arrow" }) }),
|
|
16315
|
-
children
|
|
16316
|
-
] }) });
|
|
16317
|
-
};
|
|
16318
|
-
ContextMenuContent.displayName = "ContextMenuContent";
|
|
16319
|
-
ContextMenu.Content = ContextMenuContent;
|
|
16320
|
-
const RightMenuGroup = styled($1b0217ee4a91d156$export$eb2fcfdbd7ba97d4).withConfig({
|
|
16321
|
-
componentId: "sc-8z6kye-1"
|
|
16322
|
-
})(["width:100%;border-bottom:1px solid ", ";"], ({
|
|
16323
|
-
theme: theme2
|
|
16324
|
-
}) => theme2.click.genericMenu.item.color.stroke.default);
|
|
16325
|
-
const ContextMenuGroup = (props) => {
|
|
16326
|
-
return /* @__PURE__ */ jsx(RightMenuGroup, { ...props });
|
|
16327
|
-
};
|
|
16328
|
-
ContextMenuGroup.displayName = "ContextMenuGroup";
|
|
16329
|
-
ContextMenu.Group = ContextMenuGroup;
|
|
16330
|
-
const RightMenuSub = styled($1b0217ee4a91d156$export$d7a01e11500dfb6f).withConfig({
|
|
16331
|
-
componentId: "sc-8z6kye-2"
|
|
16332
|
-
})(["border-bottom:1px solid ", ";"], ({
|
|
16333
|
-
theme: theme2
|
|
16334
|
-
}) => theme2.click.genericMenu.item.color.stroke.default);
|
|
16335
|
-
const ContextMenuSub = ({
|
|
16336
|
-
...props
|
|
16337
|
-
}) => {
|
|
16338
|
-
return /* @__PURE__ */ jsx(RightMenuSub, { ...props });
|
|
16339
|
-
};
|
|
16340
|
-
ContextMenuSub.displayName = "ContextMenuSub";
|
|
16341
|
-
ContextMenu.Sub = ContextMenuSub;
|
|
16342
|
-
const ContextMenuItem = ({
|
|
16343
|
-
icon,
|
|
16344
|
-
iconDir,
|
|
16345
|
-
children,
|
|
16346
|
-
...props
|
|
16347
|
-
}) => {
|
|
16348
|
-
return /* @__PURE__ */ jsx(GenericMenuItem, { as: $1b0217ee4a91d156$export$6d08773d2e66f8f2, ...props, children: /* @__PURE__ */ jsx(IconWrapper$3, { icon, iconDir, children }) });
|
|
16349
|
-
};
|
|
16350
|
-
ContextMenuItem.displayName = "ContextMenuItem";
|
|
16351
|
-
ContextMenu.Item = ContextMenuItem;
|
|
16352
17050
|
function _inheritsLoose(subClass, superClass) {
|
|
16353
17051
|
subClass.prototype = Object.create(superClass.prototype);
|
|
16354
17052
|
subClass.prototype.constructor = subClass;
|
|
@@ -17445,9 +18143,12 @@ const StyledCell = styled.div.withConfig({
|
|
|
17445
18143
|
$selectionType,
|
|
17446
18144
|
$height,
|
|
17447
18145
|
$type = "body",
|
|
17448
|
-
$showBorder
|
|
18146
|
+
$showBorder,
|
|
18147
|
+
$rowAutoHeight
|
|
17449
18148
|
}) => `
|
|
17450
|
-
height: ${$height}px;
|
|
18149
|
+
height: ${$rowAutoHeight ? "100%" : `${$height}px`};
|
|
18150
|
+
min-height: ${$rowAutoHeight ? "auto" : ""};
|
|
18151
|
+
overflow-y: ${$rowAutoHeight ? "auto" : ""};
|
|
17451
18152
|
background: ${theme2.click.grid[$type].cell.color.background[$selectionType]};
|
|
17452
18153
|
color: ${$type === "header" ? theme2.click.grid.header.cell.color.title[$selectionType] : theme2.click.grid.body.cell.color.text[$selectionType]};
|
|
17453
18154
|
font: ${theme2.click.grid.cell.text.default};
|
|
@@ -17468,6 +18169,7 @@ const StyledCell = styled.div.withConfig({
|
|
|
17468
18169
|
${$isLastColumn ? `
|
|
17469
18170
|
border-right-color: ${theme2.click.grid[$type].cell.color.stroke[$isFocused ? "selectDirect" : $selectionType]};
|
|
17470
18171
|
` : "border-right: none;"}
|
|
18172
|
+
${$rowAutoHeight && "border: none;"}
|
|
17471
18173
|
`, ({
|
|
17472
18174
|
theme: theme2,
|
|
17473
18175
|
$isLastRow,
|
|
@@ -17475,8 +18177,9 @@ const StyledCell = styled.div.withConfig({
|
|
|
17475
18177
|
$selectionType,
|
|
17476
18178
|
$type = "body",
|
|
17477
18179
|
$isSelectedTop,
|
|
17478
|
-
$isSelectedLeft
|
|
17479
|
-
|
|
18180
|
+
$isSelectedLeft,
|
|
18181
|
+
$rowAutoHeight
|
|
18182
|
+
}) => $isSelectedTop || $isSelectedLeft || $selectionType === "selectDirect" && ($isLastRow || $isLastColumn) || $rowAutoHeight ? `
|
|
17480
18183
|
&::before {
|
|
17481
18184
|
content: "";
|
|
17482
18185
|
position: absolute;
|
|
@@ -17488,6 +18191,7 @@ const StyledCell = styled.div.withConfig({
|
|
|
17488
18191
|
${$isSelectedLeft ? `border-left: 1px solid ${theme2.click.grid[$type].cell.color.stroke.selectDirect};` : ""}
|
|
17489
18192
|
${$selectionType === "selectDirect" && $isLastRow ? `border-bottom: 1px solid ${theme2.click.grid[$type].cell.color.stroke.selectDirect};` : ""}
|
|
17490
18193
|
${$selectionType === "selectDirect" && $isLastColumn ? `border-right: 1px solid ${theme2.click.grid[$type].cell.color.stroke.selectDirect};` : ""}
|
|
18194
|
+
${$rowAutoHeight && "border: none;"}
|
|
17491
18195
|
}
|
|
17492
18196
|
` : "");
|
|
17493
18197
|
const RowNumberColumnContainer = styled.div.withConfig({
|
|
@@ -17498,7 +18202,7 @@ const RowNumberColumnContainer = styled.div.withConfig({
|
|
|
17498
18202
|
}) => `
|
|
17499
18203
|
top: ${$height}px;
|
|
17500
18204
|
width: ${$width}px;
|
|
17501
|
-
height: 100
|
|
18205
|
+
height: 100%
|
|
17502
18206
|
`, ({
|
|
17503
18207
|
$scrolledHorizontal,
|
|
17504
18208
|
theme: theme2
|
|
@@ -17507,10 +18211,11 @@ const RowNumberCell = styled.div.withConfig({
|
|
|
17507
18211
|
componentId: "sc-7gbi4d-1"
|
|
17508
18212
|
})(["position:absolute;left:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%;", ""], ({
|
|
17509
18213
|
$height,
|
|
17510
|
-
$rowNumber
|
|
18214
|
+
$rowNumber,
|
|
18215
|
+
$rowAutoHeight
|
|
17511
18216
|
}) => `
|
|
17512
18217
|
top: ${$height * $rowNumber}px;
|
|
17513
|
-
height: ${$height}px;
|
|
18218
|
+
height: ${$rowAutoHeight ? "100%" : `${$height}px`};
|
|
17514
18219
|
`);
|
|
17515
18220
|
const RowNumber = ({
|
|
17516
18221
|
rowIndex,
|
|
@@ -17519,7 +18224,8 @@ const RowNumber = ({
|
|
|
17519
18224
|
isLastRow,
|
|
17520
18225
|
isFirstRow,
|
|
17521
18226
|
showBorder,
|
|
17522
|
-
rowStart
|
|
18227
|
+
rowStart,
|
|
18228
|
+
rowAutoHeight
|
|
17523
18229
|
}) => {
|
|
17524
18230
|
const currentRowIndex = rowIndex + rowStart;
|
|
17525
18231
|
const selectionType = getSelectionType({
|
|
@@ -17532,7 +18238,7 @@ const RowNumber = ({
|
|
|
17532
18238
|
type: "row"
|
|
17533
18239
|
});
|
|
17534
18240
|
const isSelectedTop = (topSelectionType === "selectDirect" || isSelected) && topSelectionType !== selectionType;
|
|
17535
|
-
return /* @__PURE__ */ jsx(RowNumberCell, { $rowNumber: rowIndex, $height: rowHeight, children: /* @__PURE__ */ jsx(StyledCell, { $height: rowHeight, $isLastColumn: false, $selectionType: selectionType, $isFirstColumn: true, $type: "header", $isFirstRow: isFirstRow, $isFocused: false, $isLastRow: isLastRow, $isSelectedLeft: isSelected, $isSelectedTop: isSelectedTop, "data-selected": isSelected, "data-grid-row": currentRowIndex, "data-grid-column": -1, "data-testid": `header-cell-${currentRowIndex}-x`, $showBorder: showBorder, "data-align": "right", children: currentRowIndex }) });
|
|
18241
|
+
return /* @__PURE__ */ jsx(RowNumberCell, { $rowNumber: rowIndex, $height: rowHeight, $rowAutoHeight: rowAutoHeight, children: /* @__PURE__ */ jsx(StyledCell, { $height: rowHeight, $isLastColumn: false, $selectionType: selectionType, $isFirstColumn: true, $type: "header", $isFirstRow: isFirstRow, $isFocused: false, $isLastRow: isLastRow, $isSelectedLeft: isSelected, $isSelectedTop: isSelectedTop, $rowAutoHeight: rowAutoHeight, "data-selected": isSelected, "data-grid-row": currentRowIndex, "data-grid-column": -1, "data-testid": `header-cell-${currentRowIndex}-x`, $showBorder: showBorder, "data-align": "right", children: currentRowIndex }) });
|
|
17536
18242
|
};
|
|
17537
18243
|
const RowNumberColumn = ({
|
|
17538
18244
|
minRow,
|
|
@@ -17545,11 +18251,12 @@ const RowNumberColumn = ({
|
|
|
17545
18251
|
showHeader,
|
|
17546
18252
|
scrolledHorizontal,
|
|
17547
18253
|
rowStart = 0,
|
|
17548
|
-
showBorder
|
|
18254
|
+
showBorder,
|
|
18255
|
+
rowAutoHeight
|
|
17549
18256
|
}) => {
|
|
17550
|
-
return /* @__PURE__ */ jsx(RowNumberColumnContainer, { $height: headerHeight, $width: rowWidth, $scrolledHorizontal: scrolledHorizontal, children: Array.from({
|
|
18257
|
+
return /* @__PURE__ */ jsx(RowNumberColumnContainer, { $height: headerHeight, $width: rowWidth, $scrolledHorizontal: scrolledHorizontal, $rowAutoHeight: rowAutoHeight, children: Array.from({
|
|
17551
18258
|
length: maxRow - minRow + 1
|
|
17552
|
-
}, (_, index2) => minRow + index2).map((rowIndex) => /* @__PURE__ */ jsx(RowNumber, { getSelectionType, rowHeight, rowIndex, isLastRow: rowIndex === rowCount, isFirstRow: !showHeader && rowIndex === 0, showBorder, rowStart }, `row-number-${rowIndex}`)) });
|
|
18259
|
+
}, (_, index2) => minRow + index2).map((rowIndex) => /* @__PURE__ */ jsx(RowNumber, { getSelectionType, rowHeight, rowIndex, isLastRow: rowIndex === rowCount, isFirstRow: !showHeader && rowIndex === 0, showBorder, rowStart, rowAutoHeight }, `row-number-${rowIndex}`)) });
|
|
17553
18260
|
};
|
|
17554
18261
|
function isObject$a(value) {
|
|
17555
18262
|
var type = typeof value;
|
|
@@ -17931,7 +18638,7 @@ const RowColumnContainer = styled(HeaderCellContainer).withConfig({
|
|
|
17931
18638
|
}) => $scrolledHorizontal ? `box-shadow: 0px 0 0px 1px ${theme2.click.grid.header.cell.color.stroke.default};` : "");
|
|
17932
18639
|
const RowColumn = styled(StyledCell).withConfig({
|
|
17933
18640
|
componentId: "sc-1oadqc8-4"
|
|
17934
|
-
})(["width:100%;text-align:right;"]);
|
|
18641
|
+
})(["width:100%;text-align:right;overflow:hidden;"]);
|
|
17935
18642
|
const Column = ({
|
|
17936
18643
|
columnIndex,
|
|
17937
18644
|
cell,
|
|
@@ -18360,7 +19067,9 @@ const Cell = memo(({
|
|
|
18360
19067
|
showRowNumber,
|
|
18361
19068
|
showHeader,
|
|
18362
19069
|
rowHeight,
|
|
18363
|
-
rowStart
|
|
19070
|
+
rowStart,
|
|
19071
|
+
rowAutoHeight,
|
|
19072
|
+
updateRowHeight
|
|
18364
19073
|
} = data;
|
|
18365
19074
|
const currentRowIndex = rowIndex + rowStart;
|
|
18366
19075
|
const {
|
|
@@ -18389,7 +19098,21 @@ const Cell = memo(({
|
|
|
18389
19098
|
const belowSelectionBorder = (selectionType === "selectDirect" || belowSelection === "selectDirect") && selectionType !== belowSelection;
|
|
18390
19099
|
const selectionBorderLeft = rightOfSelectionBorder || rightOfFocus || isFocused;
|
|
18391
19100
|
const selectionBorderTop = belowSelectionBorder || belowFocus || isFocused;
|
|
18392
|
-
|
|
19101
|
+
const cellRef = useRef(null);
|
|
19102
|
+
useEffect(() => {
|
|
19103
|
+
if (!rowAutoHeight) {
|
|
19104
|
+
return;
|
|
19105
|
+
}
|
|
19106
|
+
if (cellRef.current) {
|
|
19107
|
+
const height = cellRef.current.getBoundingClientRect().height;
|
|
19108
|
+
updateRowHeight(rowIndex, height);
|
|
19109
|
+
}
|
|
19110
|
+
}, [updateRowHeight, rowIndex, rowAutoHeight]);
|
|
19111
|
+
const styleWithHeight = {
|
|
19112
|
+
...style,
|
|
19113
|
+
height: "auto"
|
|
19114
|
+
};
|
|
19115
|
+
return /* @__PURE__ */ jsx("div", { style: styleWithHeight, "data-row": currentRowIndex, "data-column": columnIndex, ref: cellRef, children: /* @__PURE__ */ jsx(StyledCell, { as: CellData, rowIndex: currentRowIndex, columnIndex, type: "row-cell", "data-selected": isFocused || selectionType === "selectDirect", "data-focused": isFocused, $isSelectedTop: selectionBorderTop, $isSelectedLeft: selectionBorderLeft, $isFocused: isFocused, $isLastRow: rowCount - 1 === rowIndex, $isLastColumn: columnCount - 1 === columnIndex, $isFirstColumn: columnIndex === 0 && !showRowNumber, $isFirstRow: rowIndex === 0 && !showHeader, $selectionType: selectionType, $height: rowHeight, "data-grid-row": currentRowIndex, "data-grid-column": columnIndex, $showBorder: true, $rowAutoHeight: rowAutoHeight, ...props }) });
|
|
18393
19116
|
}, areEqual);
|
|
18394
19117
|
var reactDomServerLegacy_browser_production_min = {};
|
|
18395
19118
|
/**
|
|
@@ -32599,6 +33322,7 @@ const Grid = forwardRef(({
|
|
|
32599
33322
|
onContextMenu: onContextMenuProp,
|
|
32600
33323
|
forwardedGridRef,
|
|
32601
33324
|
onItemsRendered: onItemsRenderedProp,
|
|
33325
|
+
rowAutoHeight,
|
|
32602
33326
|
...props
|
|
32603
33327
|
}, forwardedRef) => {
|
|
32604
33328
|
const [focus, setFocus] = useState(focusProp ?? {
|
|
@@ -32642,6 +33366,25 @@ const Grid = forwardRef(({
|
|
|
32642
33366
|
}
|
|
32643
33367
|
}
|
|
32644
33368
|
}, [cell, columnCount, focus, focusProp, rowCount, selection, showToast, onCopyCallback]);
|
|
33369
|
+
const rowHeightsRef = useRef(/* @__PURE__ */ new Map());
|
|
33370
|
+
const getRowHeight2 = useCallback((index2) => {
|
|
33371
|
+
if (rowAutoHeight && rowHeightsRef.current.get(index2)) {
|
|
33372
|
+
return rowHeightsRef.current.get(index2) + rowHeight;
|
|
33373
|
+
}
|
|
33374
|
+
return rowHeight;
|
|
33375
|
+
}, [rowHeight, rowAutoHeight]);
|
|
33376
|
+
const updateRowHeight = useCallback((rowIndex, height) => {
|
|
33377
|
+
if (!rowAutoHeight) {
|
|
33378
|
+
return;
|
|
33379
|
+
}
|
|
33380
|
+
const prevHeight = rowHeightsRef.current.get(rowIndex) ?? 0;
|
|
33381
|
+
if (height > prevHeight) {
|
|
33382
|
+
rowHeightsRef.current.set(rowIndex, height);
|
|
33383
|
+
if (gridRef.current) {
|
|
33384
|
+
gridRef.current.resetAfterRowIndex(rowIndex);
|
|
33385
|
+
}
|
|
33386
|
+
}
|
|
33387
|
+
}, [rowAutoHeight]);
|
|
32645
33388
|
const customOnCopy = useMemo(() => {
|
|
32646
33389
|
const result = async () => {
|
|
32647
33390
|
if (onCopyProp) {
|
|
@@ -32805,7 +33548,10 @@ const Grid = forwardRef(({
|
|
|
32805
33548
|
rowHeight,
|
|
32806
33549
|
headerHeight,
|
|
32807
33550
|
rowNumberWidth,
|
|
32808
|
-
rowStart
|
|
33551
|
+
rowStart,
|
|
33552
|
+
rowAutoHeight,
|
|
33553
|
+
updateRowHeight,
|
|
33554
|
+
getRowHeight: getRowHeight2
|
|
32809
33555
|
};
|
|
32810
33556
|
const InnerElementType = forwardRef(({
|
|
32811
33557
|
children,
|
|
@@ -32814,7 +33560,7 @@ const Grid = forwardRef(({
|
|
|
32814
33560
|
const [minRow, maxRow, minColumn, maxColumn] = getRenderedCursor(children);
|
|
32815
33561
|
return /* @__PURE__ */ jsxs(GridContainer, { ...containerProps, className: `sticky-grid__container grid-outer ${props.className ?? ""}`, children: [
|
|
32816
33562
|
/* @__PURE__ */ jsx(GridDataContainer, { $top: showHeader ? headerHeight : 0, $left: showRowNumber ? rowNumberWidth : 0, ref, children }),
|
|
32817
|
-
showRowNumber && /* @__PURE__ */ jsx(RowNumberColumn, { scrolledHorizontal, minRow, maxRow, rowHeight, headerHeight, rowWidth: rowNumberWidth, rowCount, getSelectionType, showHeader, rowStart, showBorder }),
|
|
33563
|
+
showRowNumber && /* @__PURE__ */ jsx(RowNumberColumn, { scrolledHorizontal, minRow, maxRow, rowHeight, headerHeight, rowWidth: rowNumberWidth, rowCount, getSelectionType, showHeader, rowStart, showBorder, rowAutoHeight }),
|
|
32818
33564
|
showHeader && /* @__PURE__ */ jsx(Header, { scrolledVertical, scrolledHorizontal, showRowNumber, minColumn, maxColumn, height: headerHeight, getColumnWidth: columnWidth, cell, rowNumberWidth, getSelectionType, columnCount, onColumnResize, getColumnHorizontalPosition, getResizerPosition, showBorder, resizingState })
|
|
32819
33565
|
] });
|
|
32820
33566
|
});
|
|
@@ -33067,11 +33813,16 @@ const Grid = forwardRef(({
|
|
|
33067
33813
|
const width = columnWidth(args.columnIndex);
|
|
33068
33814
|
return /* @__PURE__ */ jsx(Cell, { ...args, width });
|
|
33069
33815
|
};
|
|
33816
|
+
useEffect(() => {
|
|
33817
|
+
if (gridRef.current) {
|
|
33818
|
+
gridRef.current.resetAfterRowIndex(0);
|
|
33819
|
+
}
|
|
33820
|
+
}, [rowCount, columnCount]);
|
|
33070
33821
|
return /* @__PURE__ */ jsxs(ContextMenu, { modal: false, onOpenChange: setContextMenuOpen, children: [
|
|
33071
33822
|
/* @__PURE__ */ jsx(ContextMenuTrigger, { as: ContextMenu.Trigger, ref: mergeRefs([forwardedRef, containerRef]), tabIndex: 0, onMouseDown, onMouseMove, onKeyDown, onPointerDown, onPointerUp, onPointerLeave: setPointerCapture, onPointerEnter: setPointerCapture, onContextMenu, $rounded: rounded, $height: autoHeight ? rowCount * rowHeight + (showHeader ? headerHeight : 0) + elementBorderRef.current.scrollBarHeight : void 0, $showBorder: showBorder, children: /* @__PURE__ */ jsx(AutoSizer, { onResize, children: ({
|
|
33072
33823
|
height,
|
|
33073
33824
|
width
|
|
33074
|
-
}) => /* @__PURE__ */ jsx(VariableSizeGrid, { ref: forwardedGridRef ? mergeRefs([forwardedGridRef, gridRef]) : gridRef, height, width, columnCount, rowHeight:
|
|
33825
|
+
}) => /* @__PURE__ */ jsx(VariableSizeGrid, { ref: forwardedGridRef ? mergeRefs([forwardedGridRef, gridRef]) : gridRef, height, width, columnCount, rowHeight: getRowHeight2, useIsScrolling, innerElementType: InnerElementType, itemData: data, initialScrollTop: focus.row < rowStart ? focus.row * rowHeight : (focus.row - rowStart) * rowHeight, initialScrollLeft: getColumnHorizontalPosition(focus.column), columnWidth, rowCount, onScroll, outerRef, outerElementType: OuterElementType, onItemsRendered, ...props, children: CellWithWidth }) }) }),
|
|
33075
33826
|
/* @__PURE__ */ jsx(ContextMenu.Content, { children: menuOptions.map((option2, index2) => /* @__PURE__ */ jsx(ContextMenu.Item, { onSelect: option2.onSelect, children: option2.label }, `grid-${index2}`)) })
|
|
33076
33827
|
] });
|
|
33077
33828
|
});
|
|
@@ -33306,14 +34057,14 @@ const HoverCard = ({
|
|
|
33306
34057
|
}) => {
|
|
33307
34058
|
return /* @__PURE__ */ jsx($cef8881cdc69808e$export$be92b6f5f03c0fe9, { ...props, children });
|
|
33308
34059
|
};
|
|
33309
|
-
const Trigger$
|
|
34060
|
+
const Trigger$1 = styled($cef8881cdc69808e$export$41fb9f06171c75f4).withConfig({
|
|
33310
34061
|
componentId: "sc-1ect7b6-0"
|
|
33311
34062
|
})(["width:fit-content;"]);
|
|
33312
34063
|
const HoverCardTrigger = ({
|
|
33313
34064
|
children,
|
|
33314
34065
|
...props
|
|
33315
34066
|
}) => {
|
|
33316
|
-
return /* @__PURE__ */ jsx(Trigger$
|
|
34067
|
+
return /* @__PURE__ */ jsx(Trigger$1, { ...props, children });
|
|
33317
34068
|
};
|
|
33318
34069
|
HoverCardTrigger.displayName = "HoverCardTrigger";
|
|
33319
34070
|
HoverCard.Trigger = HoverCardTrigger;
|
|
@@ -33331,25 +34082,6 @@ const HoverCardContent = ({
|
|
|
33331
34082
|
};
|
|
33332
34083
|
HoverCardContent.displayName = "HoverCardContent";
|
|
33333
34084
|
HoverCard.Content = HoverCardContent;
|
|
33334
|
-
const linkStyles = css$1(["font:", ";color:", ";margin:0;text-decoration:none;display:inline-flex;gap:", ";margin-right:", ";align-items:center;&:hover,&:focus{color:", ";transition:", ";text-decoration:underline;cursor:pointer;}&:visited{color:", ";}"], ({
|
|
33335
|
-
$size,
|
|
33336
|
-
$weight = "normal",
|
|
33337
|
-
theme: theme2
|
|
33338
|
-
}) => theme2.typography.styles.product.text[$weight][$size], ({
|
|
33339
|
-
theme: theme2
|
|
33340
|
-
}) => theme2.click.global.color.text.link.default, ({
|
|
33341
|
-
$size,
|
|
33342
|
-
theme: theme2
|
|
33343
|
-
}) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
|
|
33344
|
-
$size,
|
|
33345
|
-
theme: theme2
|
|
33346
|
-
}) => $size === "xs" || $size === "sm" ? theme2.click.link.space.sm.gap : theme2.click.link.space.md.gap, ({
|
|
33347
|
-
theme: theme2
|
|
33348
|
-
}) => theme2.click.global.color.text.link.hover, ({
|
|
33349
|
-
theme: theme2
|
|
33350
|
-
}) => theme2.transition.default, ({
|
|
33351
|
-
theme: theme2
|
|
33352
|
-
}) => theme2.click.global.color.text.link.default);
|
|
33353
34085
|
const CuiLink = styled.a.withConfig({
|
|
33354
34086
|
componentId: "sc-1bwz77u-0"
|
|
33355
34087
|
})(["", ""], linkStyles);
|
|
@@ -33420,71 +34152,6 @@ const PasswordField = forwardRef(({
|
|
|
33420
34152
|
/* @__PURE__ */ jsx(IconButton, { disabled, onClick: togglePasswordViewer, $show: value.length > 0, children: /* @__PURE__ */ jsx(SvgImage, { name: viewPassword ? "eye-closed" : "eye", size: "md" }) })
|
|
33421
34153
|
] });
|
|
33422
34154
|
});
|
|
33423
|
-
const Popover = ({
|
|
33424
|
-
children,
|
|
33425
|
-
...props
|
|
33426
|
-
}) => {
|
|
33427
|
-
return /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, { ...props, children });
|
|
33428
|
-
};
|
|
33429
|
-
const Trigger$1 = styled($cb5cc270b50c6fcd$export$41fb9f06171c75f4).withConfig({
|
|
33430
|
-
componentId: "sc-1dii14g-0"
|
|
33431
|
-
})(["width:fit-content;font:inherit;color:inherit;background:inherit;border:none;"]);
|
|
33432
|
-
const PopoverTrigger = ({
|
|
33433
|
-
anchor,
|
|
33434
|
-
children,
|
|
33435
|
-
...props
|
|
33436
|
-
}) => {
|
|
33437
|
-
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
33438
|
-
/* @__PURE__ */ jsx(Trigger$1, { asChild: true, ...props, children: /* @__PURE__ */ jsx("div", { children }) }),
|
|
33439
|
-
anchor && /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$b688253958b8dfe7, { asChild: true, children: anchor })
|
|
33440
|
-
] });
|
|
33441
|
-
};
|
|
33442
|
-
PopoverTrigger.displayName = "PopoverTrigger";
|
|
33443
|
-
Popover.Trigger = PopoverTrigger;
|
|
33444
|
-
const MenuPanel = styled(GenericMenuPanel).withConfig({
|
|
33445
|
-
componentId: "sc-1dii14g-1"
|
|
33446
|
-
})(["display:block;padding:", " ", ";background-color:", ";border:1px solid ", ";border-radius:", ";box-shadow:", ";", ";"], ({
|
|
33447
|
-
theme: theme2
|
|
33448
|
-
}) => theme2.click.popover.space.y, ({
|
|
33449
|
-
theme: theme2
|
|
33450
|
-
}) => theme2.click.popover.space.x, ({
|
|
33451
|
-
theme: theme2
|
|
33452
|
-
}) => theme2.click.popover.color.panel.background.default, ({
|
|
33453
|
-
theme: theme2
|
|
33454
|
-
}) => theme2.click.popover.color.panel.stroke.default, ({
|
|
33455
|
-
theme: theme2
|
|
33456
|
-
}) => theme2.click.popover.radii.all, ({
|
|
33457
|
-
theme: theme2
|
|
33458
|
-
}) => theme2.click.popover.shadow.default, ({
|
|
33459
|
-
$showClose
|
|
33460
|
-
}) => $showClose ? "padding-top: 1rem;" : "");
|
|
33461
|
-
const CloseButton = styled(EmptyButton$1).withConfig({
|
|
33462
|
-
componentId: "sc-1dii14g-2"
|
|
33463
|
-
})(["position:absolute;top:", ";right:", ";width:", ";height:", ";"], ({
|
|
33464
|
-
theme: theme2
|
|
33465
|
-
}) => theme2.click.popover.space.y, ({
|
|
33466
|
-
theme: theme2
|
|
33467
|
-
}) => theme2.click.popover.space.x, ({
|
|
33468
|
-
theme: theme2
|
|
33469
|
-
}) => theme2.click.popover.icon.size.width, ({
|
|
33470
|
-
theme: theme2
|
|
33471
|
-
}) => theme2.click.popover.icon.size.height);
|
|
33472
|
-
const PopoverContent = ({
|
|
33473
|
-
children,
|
|
33474
|
-
showArrow,
|
|
33475
|
-
showClose,
|
|
33476
|
-
forceMount,
|
|
33477
|
-
container,
|
|
33478
|
-
...props
|
|
33479
|
-
}) => {
|
|
33480
|
-
return /* @__PURE__ */ jsx($cb5cc270b50c6fcd$export$602eac185826482c, { forceMount, container, children: /* @__PURE__ */ jsxs(MenuPanel, { as: $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, $type: "popover", $showClose: showClose, $showArrow: showArrow, sideOffset: 4, ...props, children: [
|
|
33481
|
-
showClose && /* @__PURE__ */ jsx(CloseButton, { as: $cb5cc270b50c6fcd$export$f39c2d165cd861fe, asChild: true, children: /* @__PURE__ */ jsx(SvgImage, { name: "cross" }) }),
|
|
33482
|
-
showArrow && /* @__PURE__ */ jsx(Arrow$1, { asChild: true, as: $cb5cc270b50c6fcd$export$21b07c8f274aebd5, width: 20, height: 10, children: /* @__PURE__ */ jsx(PopoverArrow, {}) }),
|
|
33483
|
-
children
|
|
33484
|
-
] }) });
|
|
33485
|
-
};
|
|
33486
|
-
PopoverContent.displayName = "PopoverContent";
|
|
33487
|
-
Popover.Content = PopoverContent;
|
|
33488
34155
|
const CustomSelect = styled.div.withConfig({
|
|
33489
34156
|
componentId: "sc-dicnqe-0"
|
|
33490
34157
|
})(["width:150px;"]);
|
|
@@ -34783,8 +35450,8 @@ function AnimationStateManager() {
|
|
|
34783
35450
|
}
|
|
34784
35451
|
animationStates = [];
|
|
34785
35452
|
},
|
|
34786
|
-
animate: function animate(target, currentRect, toRect,
|
|
34787
|
-
if (
|
|
35453
|
+
animate: function animate(target, currentRect, toRect, duration2) {
|
|
35454
|
+
if (duration2) {
|
|
34788
35455
|
css(target, "transition", "");
|
|
34789
35456
|
css(target, "transform", "");
|
|
34790
35457
|
var elMatrix = matrix(this.el), scaleX = elMatrix && elMatrix.a, scaleY = elMatrix && elMatrix.d, translateX = (currentRect.left - toRect.left) / (scaleX || 1), translateY = (currentRect.top - toRect.top) / (scaleY || 1);
|
|
@@ -34792,7 +35459,7 @@ function AnimationStateManager() {
|
|
|
34792
35459
|
target.animatingY = !!translateY;
|
|
34793
35460
|
css(target, "transform", "translate3d(" + translateX + "px," + translateY + "px,0)");
|
|
34794
35461
|
this.forRepaintDummy = repaint(target);
|
|
34795
|
-
css(target, "transition", "transform " +
|
|
35462
|
+
css(target, "transition", "transform " + duration2 + "ms" + (this.options.easing ? " " + this.options.easing : ""));
|
|
34796
35463
|
css(target, "transform", "translate3d(0,0,0)");
|
|
34797
35464
|
typeof target.animated === "number" && clearTimeout(target.animated);
|
|
34798
35465
|
target.animated = setTimeout(function() {
|
|
@@ -34801,7 +35468,7 @@ function AnimationStateManager() {
|
|
|
34801
35468
|
target.animated = false;
|
|
34802
35469
|
target.animatingX = false;
|
|
34803
35470
|
target.animatingY = false;
|
|
34804
|
-
},
|
|
35471
|
+
}, duration2);
|
|
34805
35472
|
}
|
|
34806
35473
|
}
|
|
34807
35474
|
};
|
|
@@ -40169,7 +40836,7 @@ const [$054eb8030ebde76e$var$createToastContext, $054eb8030ebde76e$export$8a359d
|
|
|
40169
40836
|
]);
|
|
40170
40837
|
const [$054eb8030ebde76e$var$ToastProviderProvider, $054eb8030ebde76e$var$useToastProviderContext] = $054eb8030ebde76e$var$createToastContext($054eb8030ebde76e$var$PROVIDER_NAME);
|
|
40171
40838
|
const $054eb8030ebde76e$export$f5d03d415824e0e = (props) => {
|
|
40172
|
-
const { __scopeToast, label = "Notification", duration = 5e3, swipeDirection = "right", swipeThreshold = 50, children } = props;
|
|
40839
|
+
const { __scopeToast, label = "Notification", duration: duration2 = 5e3, swipeDirection = "right", swipeThreshold = 50, children } = props;
|
|
40173
40840
|
const [viewport, setViewport] = useState(null);
|
|
40174
40841
|
const [toastCount, setToastCount] = useState(0);
|
|
40175
40842
|
const isFocusedToastEscapeKeyDownRef = useRef(false);
|
|
@@ -40179,7 +40846,7 @@ const $054eb8030ebde76e$export$f5d03d415824e0e = (props) => {
|
|
|
40179
40846
|
}, /* @__PURE__ */ createElement$1($054eb8030ebde76e$var$ToastProviderProvider, {
|
|
40180
40847
|
scope: __scopeToast,
|
|
40181
40848
|
label,
|
|
40182
|
-
duration,
|
|
40849
|
+
duration: duration2,
|
|
40183
40850
|
swipeDirection,
|
|
40184
40851
|
swipeThreshold,
|
|
40185
40852
|
toastCount,
|
|
@@ -40466,12 +41133,12 @@ const $054eb8030ebde76e$var$ToastImpl = /* @__PURE__ */ forwardRef((props, forwa
|
|
|
40466
41133
|
(_context$viewport2 = context.viewport) === null || _context$viewport2 === void 0 || _context$viewport2.focus();
|
|
40467
41134
|
onClose();
|
|
40468
41135
|
});
|
|
40469
|
-
const startTimer = useCallback((
|
|
40470
|
-
if (!
|
|
41136
|
+
const startTimer = useCallback((duration2) => {
|
|
41137
|
+
if (!duration2 || duration2 === Infinity)
|
|
40471
41138
|
return;
|
|
40472
41139
|
window.clearTimeout(closeTimerRef.current);
|
|
40473
41140
|
closeTimerStartTimeRef.current = (/* @__PURE__ */ new Date()).getTime();
|
|
40474
|
-
closeTimerRef.current = window.setTimeout(handleClose,
|
|
41141
|
+
closeTimerRef.current = window.setTimeout(handleClose, duration2);
|
|
40475
41142
|
}, [
|
|
40476
41143
|
handleClose
|
|
40477
41144
|
]);
|
|
@@ -40930,7 +41597,7 @@ const Toast = ({
|
|
|
40930
41597
|
title,
|
|
40931
41598
|
description,
|
|
40932
41599
|
actions = [],
|
|
40933
|
-
duration,
|
|
41600
|
+
duration: duration2,
|
|
40934
41601
|
onClose
|
|
40935
41602
|
}) => {
|
|
40936
41603
|
let iconName = "";
|
|
@@ -40941,7 +41608,7 @@ const Toast = ({
|
|
|
40941
41608
|
} else if (type && ["danger", "warning"].includes(type)) {
|
|
40942
41609
|
iconName = "warning";
|
|
40943
41610
|
}
|
|
40944
|
-
return /* @__PURE__ */ jsxs(ToastRoot, { onOpenChange: onClose, duration, children: [
|
|
41611
|
+
return /* @__PURE__ */ jsxs(ToastRoot, { onOpenChange: onClose, duration: duration2, children: [
|
|
40945
41612
|
/* @__PURE__ */ jsxs(ToastHeader, { children: [
|
|
40946
41613
|
iconName.length > 0 && /* @__PURE__ */ jsx(ToastIcon, { name: iconName, $type: type }),
|
|
40947
41614
|
/* @__PURE__ */ jsx(Title, { children: title }),
|
|
@@ -50303,6 +50970,7 @@ export {
|
|
|
50303
50970
|
Container,
|
|
50304
50971
|
ContextMenu,
|
|
50305
50972
|
DangerAlert,
|
|
50973
|
+
DateDetails,
|
|
50306
50974
|
DatePicker,
|
|
50307
50975
|
Dialog,
|
|
50308
50976
|
Dropdown,
|