@clickhouse/click-ui 0.0.164 → 0.0.166
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 +189 -27
- package/dist/click-ui.umd.js +189 -27
- package/dist/components/Container/Container.d.ts +2 -2
- package/dist/components/MultiAccordion/MultiAccordion.d.ts +35 -0
- package/dist/components/MultiAccordion/MultiAccordionDemo.d.ts +4 -0
- package/dist/components/Spacer/Spacer.d.ts +1 -2
- package/dist/components/index.d.ts +1 -0
- package/dist/components/types.d.ts +3 -2
- package/dist/styles/types.d.ts +8 -0
- package/dist/styles/variables.dark.json.d.ts +3 -0
- package/dist/styles/variables.json.d.ts +12 -4
- package/dist/styles/variables.light.json.d.ts +7 -3
- package/package.json +1 -1
package/dist/click-ui.es.js
CHANGED
|
@@ -4277,14 +4277,13 @@ let $1746a345f3d73bb7$var$count = 0;
|
|
|
4277
4277
|
function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
4278
4278
|
const [id, setId] = React.useState($1746a345f3d73bb7$var$useReactId());
|
|
4279
4279
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
4280
|
-
|
|
4281
|
-
|
|
4282
|
-
|
|
4283
|
-
);
|
|
4280
|
+
setId(
|
|
4281
|
+
(reactId) => reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
|
|
4282
|
+
);
|
|
4284
4283
|
}, [
|
|
4285
4284
|
deterministicId
|
|
4286
4285
|
]);
|
|
4287
|
-
return
|
|
4286
|
+
return id ? `radix-${id}` : "";
|
|
4288
4287
|
}
|
|
4289
4288
|
const sides = ["top", "right", "bottom", "left"];
|
|
4290
4289
|
const min = Math.min;
|
|
@@ -9086,25 +9085,25 @@ const Accordion = ({
|
|
|
9086
9085
|
children,
|
|
9087
9086
|
fillWidth = false,
|
|
9088
9087
|
...delegated
|
|
9089
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionRoot, { type: "single", collapsible: true, $fillWidth: fillWidth, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsxs($1bf158f521e1b1b4$export$6d08773d2e66f8f2, { value: "item", children: [
|
|
9090
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionTrigger, { $size: size2, color, $fillWidth: fillWidth, children: [
|
|
9091
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionIconsWrapper, { children: [
|
|
9092
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "chevron-right", size: iconSize || size2, "aria-label": "accordion icon" }) }),
|
|
9088
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionRoot$1, { type: "single", collapsible: true, $fillWidth: fillWidth, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsxs($1bf158f521e1b1b4$export$6d08773d2e66f8f2, { value: "item", children: [
|
|
9089
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionTrigger$1, { $size: size2, color, $fillWidth: fillWidth, children: [
|
|
9090
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionIconsWrapper$1, { children: [
|
|
9091
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionIconWrapper$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "chevron-right", size: iconSize || size2, "aria-label": "accordion icon" }) }),
|
|
9093
9092
|
icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: iconSize || size2 }) : null
|
|
9094
9093
|
] }),
|
|
9095
9094
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { component: "div", size: size2, fillWidth, children: title })
|
|
9096
9095
|
] }),
|
|
9097
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionContent, { children: [
|
|
9096
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionContent$1, { children: [
|
|
9098
9097
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: gap }),
|
|
9099
9098
|
children
|
|
9100
9099
|
] })
|
|
9101
9100
|
] }) });
|
|
9102
|
-
const AccordionRoot = styled($1bf158f521e1b1b4$export$be92b6f5f03c0fe9).withConfig({
|
|
9101
|
+
const AccordionRoot$1 = styled($1bf158f521e1b1b4$export$be92b6f5f03c0fe9).withConfig({
|
|
9103
9102
|
componentId: "sc-1ysh219-0"
|
|
9104
9103
|
})(["", ";"], ({
|
|
9105
9104
|
$fillWidth
|
|
9106
9105
|
}) => $fillWidth && "width: 100%");
|
|
9107
|
-
const AccordionTrigger = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withConfig({
|
|
9106
|
+
const AccordionTrigger$1 = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withConfig({
|
|
9108
9107
|
componentId: "sc-1ysh219-1"
|
|
9109
9108
|
})(["border:none;padding:0;background-color:transparent;display:flex;align-items:center;", " ", ";"], ({
|
|
9110
9109
|
theme: theme2,
|
|
@@ -9128,20 +9127,20 @@ const AccordionTrigger = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withC
|
|
|
9128
9127
|
`, ({
|
|
9129
9128
|
$fillWidth
|
|
9130
9129
|
}) => $fillWidth && "width: 100%");
|
|
9131
|
-
const AccordionIconWrapper = styled.div.withConfig({
|
|
9130
|
+
const AccordionIconWrapper$1 = styled.div.withConfig({
|
|
9132
9131
|
componentId: "sc-1ysh219-2"
|
|
9133
|
-
})(["display:flex;align-items:center;justify-content:center;transition:transform 200ms cubic-bezier(0.87,0,0.13,1);", "[data-state='open'] &{transform:rotate(90deg);}"], AccordionTrigger);
|
|
9134
|
-
const AccordionIconsWrapper = styled.div.withConfig({
|
|
9132
|
+
})(["display:flex;align-items:center;justify-content:center;transition:transform 200ms cubic-bezier(0.87,0,0.13,1);", "[data-state='open'] &{transform:rotate(90deg);}"], AccordionTrigger$1);
|
|
9133
|
+
const AccordionIconsWrapper$1 = styled.div.withConfig({
|
|
9135
9134
|
componentId: "sc-1ysh219-3"
|
|
9136
9135
|
})(["display:flex;align-items:center;justify-content:center;"]);
|
|
9137
|
-
const AccordionContent = styled($1bf158f521e1b1b4$export$7c6e2c02157bb7d2).withConfig({
|
|
9136
|
+
const AccordionContent$1 = styled($1bf158f521e1b1b4$export$7c6e2c02157bb7d2).withConfig({
|
|
9138
9137
|
componentId: "sc-1ysh219-4"
|
|
9139
9138
|
})([""]);
|
|
9140
9139
|
styled(Accordion).withConfig({
|
|
9141
9140
|
componentId: "sc-1ysh219-5"
|
|
9142
|
-
})(["", "{gap:", ";}p{margin:0;}", "{visibility:hidden;}&:hover ", "{visibility:revert;}&:active ", "{visibility:revert;}", "[data-state='open'] ", "{visibility:revert;}"], AccordionTrigger, ({
|
|
9141
|
+
})(["", "{gap:", ";}p{margin:0;}", "{visibility:hidden;}&:hover ", "{visibility:revert;}&:active ", "{visibility:revert;}", "[data-state='open'] ", "{visibility:revert;}"], AccordionTrigger$1, ({
|
|
9143
9142
|
theme: theme2
|
|
9144
|
-
}) => theme2.click.sidebar.navigation.item.default.space.gap, AccordionIconWrapper, AccordionIconWrapper, AccordionIconWrapper, AccordionTrigger, AccordionIconWrapper);
|
|
9143
|
+
}) => theme2.click.sidebar.navigation.item.default.space.gap, AccordionIconWrapper$1, AccordionIconWrapper$1, AccordionIconWrapper$1, AccordionTrigger$1, AccordionIconWrapper$1);
|
|
9145
9144
|
const AccordionToExport = styled(Accordion).withConfig({
|
|
9146
9145
|
componentId: "sc-1ysh219-6"
|
|
9147
9146
|
})([""]);
|
|
@@ -10393,7 +10392,7 @@ const HeaderLeft = styled.div.withConfig({
|
|
|
10393
10392
|
const Content$3 = styled.div.withConfig({
|
|
10394
10393
|
componentId: "sc-1drx130-2"
|
|
10395
10394
|
})(["display:flex;flex-direction:column;flex:1;"]);
|
|
10396
|
-
const CustomIcon = styled.img.withConfig({
|
|
10395
|
+
const CustomIcon$1 = styled.img.withConfig({
|
|
10397
10396
|
componentId: "sc-1drx130-3"
|
|
10398
10397
|
})(["height:", ";width:", ";"], ({
|
|
10399
10398
|
theme: theme2
|
|
@@ -10472,7 +10471,7 @@ const CardSecondary = ({
|
|
|
10472
10471
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$a, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
|
|
10473
10472
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Header$4, { children: [
|
|
10474
10473
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(HeaderLeft, { $disabled: disabled, children: [
|
|
10475
|
-
iconUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(CustomIcon, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
|
|
10474
|
+
iconUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(CustomIcon$1, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
|
|
10476
10475
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Title$2, { type: "h3", children: title })
|
|
10477
10476
|
] }),
|
|
10478
10477
|
badgeText && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
|
|
@@ -43554,6 +43553,9 @@ const global$3 = {
|
|
|
43554
43553
|
foreground: "#1d1d1d",
|
|
43555
43554
|
background: "#FAFF69"
|
|
43556
43555
|
}
|
|
43556
|
+
},
|
|
43557
|
+
icon: {
|
|
43558
|
+
background: "linear-gradient(132deg, #FAFF69 7.59%, #292929 30.01%);"
|
|
43557
43559
|
}
|
|
43558
43560
|
}
|
|
43559
43561
|
};
|
|
@@ -44073,7 +44075,7 @@ const click$1 = {
|
|
|
44073
44075
|
background: {
|
|
44074
44076
|
"default": "#ffffff",
|
|
44075
44077
|
hover: "#f6f7fa",
|
|
44076
|
-
active: "#
|
|
44078
|
+
active: "#ffffff",
|
|
44077
44079
|
disabled: "#dfdfdf"
|
|
44078
44080
|
},
|
|
44079
44081
|
title: {
|
|
@@ -44247,7 +44249,7 @@ const click$1 = {
|
|
|
44247
44249
|
field: {
|
|
44248
44250
|
color: {
|
|
44249
44251
|
background: {
|
|
44250
|
-
"default": "rgb(
|
|
44252
|
+
"default": "rgb(98.5% 98.9% 100%)",
|
|
44251
44253
|
hover: "rgb(96.6% 96.9% 98.1%)",
|
|
44252
44254
|
active: "#ffffff",
|
|
44253
44255
|
disabled: "#dfdfdf",
|
|
@@ -44986,7 +44988,8 @@ const global$2 = {
|
|
|
44986
44988
|
"default": "#ffffff",
|
|
44987
44989
|
muted: "#f6f7fa",
|
|
44988
44990
|
sidebar: "#ffffff",
|
|
44989
|
-
split: "#f6f7fa"
|
|
44991
|
+
split: "#f6f7fa",
|
|
44992
|
+
muted_a: "lch(49.8 30.5 277 / 0.06)"
|
|
44990
44993
|
},
|
|
44991
44994
|
text: {
|
|
44992
44995
|
"default": "#161517",
|
|
@@ -45049,6 +45052,9 @@ const global$2 = {
|
|
|
45049
45052
|
foreground: "#135be6",
|
|
45050
45053
|
background: "#dae6fc"
|
|
45051
45054
|
}
|
|
45055
|
+
},
|
|
45056
|
+
icon: {
|
|
45057
|
+
background: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
|
|
45052
45058
|
}
|
|
45053
45059
|
}
|
|
45054
45060
|
};
|
|
@@ -46005,7 +46011,7 @@ const click = {
|
|
|
46005
46011
|
background: {
|
|
46006
46012
|
"default": "#ffffff",
|
|
46007
46013
|
hover: "#f6f7fa",
|
|
46008
|
-
active: "#
|
|
46014
|
+
active: "#ffffff",
|
|
46009
46015
|
disabled: "#dfdfdf"
|
|
46010
46016
|
},
|
|
46011
46017
|
title: {
|
|
@@ -46335,7 +46341,7 @@ const click = {
|
|
|
46335
46341
|
},
|
|
46336
46342
|
color: {
|
|
46337
46343
|
background: {
|
|
46338
|
-
"default": "rgb(
|
|
46344
|
+
"default": "rgb(98.5% 98.9% 100%)",
|
|
46339
46345
|
hover: "rgb(96.6% 96.9% 98.1%)",
|
|
46340
46346
|
active: "#ffffff",
|
|
46341
46347
|
disabled: "#dfdfdf",
|
|
@@ -47887,7 +47893,8 @@ const global$1 = {
|
|
|
47887
47893
|
"default": "#ffffff",
|
|
47888
47894
|
muted: "#f6f7fa",
|
|
47889
47895
|
sidebar: "#ffffff",
|
|
47890
|
-
split: "#f6f7fa"
|
|
47896
|
+
split: "#f6f7fa",
|
|
47897
|
+
muted_a: "lch(49.8 30.5 277 / 0.06)"
|
|
47891
47898
|
},
|
|
47892
47899
|
text: {
|
|
47893
47900
|
"default": "#161517",
|
|
@@ -47950,6 +47957,9 @@ const global$1 = {
|
|
|
47950
47957
|
foreground: "#135be6",
|
|
47951
47958
|
background: "#dae6fc"
|
|
47952
47959
|
}
|
|
47960
|
+
},
|
|
47961
|
+
icon: {
|
|
47962
|
+
background: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
|
|
47953
47963
|
}
|
|
47954
47964
|
}
|
|
47955
47965
|
};
|
|
@@ -47984,6 +47994,7 @@ const palette = {
|
|
|
47984
47994
|
base: "#212121"
|
|
47985
47995
|
},
|
|
47986
47996
|
slate: {
|
|
47997
|
+
"25": "#FBFCFF",
|
|
47987
47998
|
"50": "#f6f7fa",
|
|
47988
47999
|
"100": "#e6e7e9",
|
|
47989
48000
|
"200": "#cccfd3",
|
|
@@ -47994,7 +48005,8 @@ const palette = {
|
|
|
47994
48005
|
"700": "#53575f",
|
|
47995
48006
|
"800": "#302e32",
|
|
47996
48007
|
"900": "#161517",
|
|
47997
|
-
base: "#373439"
|
|
48008
|
+
base: "#373439",
|
|
48009
|
+
"50a": "lch(49.8 30.5 277 / 0.06)"
|
|
47998
48010
|
},
|
|
47999
48011
|
indigo: {
|
|
48000
48012
|
"50": "#f4f1fc",
|
|
@@ -48065,6 +48077,8 @@ const palette = {
|
|
|
48065
48077
|
},
|
|
48066
48078
|
gradients: {
|
|
48067
48079
|
base: "linear-gradient(229.65deg, #292924 15.78%, #0F0F0F 88.39%)",
|
|
48080
|
+
yellowToblack: "linear-gradient(132deg, #FAFF69 7.59%, #292929 30.01%);",
|
|
48081
|
+
whiteToblack: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);",
|
|
48068
48082
|
transparent: "rgba(0,0,0,0)"
|
|
48069
48083
|
},
|
|
48070
48084
|
utility: {
|
|
@@ -48459,6 +48473,153 @@ const VerticalStep = ({
|
|
|
48459
48473
|
};
|
|
48460
48474
|
VerticalStep.displayName = "VerticalStepper.Step";
|
|
48461
48475
|
VerticalStepper.Step = VerticalStep;
|
|
48476
|
+
const MultiAccordionContext = createContext({
|
|
48477
|
+
size: "md",
|
|
48478
|
+
fillWidth: true,
|
|
48479
|
+
showBorder: true,
|
|
48480
|
+
showCheck: false
|
|
48481
|
+
});
|
|
48482
|
+
const MultiAccordion = ({
|
|
48483
|
+
size: size2 = "md",
|
|
48484
|
+
children,
|
|
48485
|
+
fillWidth = true,
|
|
48486
|
+
showCheck = false,
|
|
48487
|
+
showBorder = true,
|
|
48488
|
+
gap = "md",
|
|
48489
|
+
markAsCompleted,
|
|
48490
|
+
...delegated
|
|
48491
|
+
}) => {
|
|
48492
|
+
const contextValue = {
|
|
48493
|
+
size: size2,
|
|
48494
|
+
fillWidth,
|
|
48495
|
+
showBorder,
|
|
48496
|
+
showCheck,
|
|
48497
|
+
markAsCompleted
|
|
48498
|
+
};
|
|
48499
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionRoot, { $fillWidth: fillWidth, $gap: gap, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MultiAccordionContext.Provider, { value: contextValue, children }) });
|
|
48500
|
+
};
|
|
48501
|
+
const MultiAccordionItem = ({
|
|
48502
|
+
value,
|
|
48503
|
+
title,
|
|
48504
|
+
color,
|
|
48505
|
+
icon,
|
|
48506
|
+
iconSize,
|
|
48507
|
+
gap,
|
|
48508
|
+
children,
|
|
48509
|
+
isCompleted = false,
|
|
48510
|
+
...props
|
|
48511
|
+
}) => {
|
|
48512
|
+
const {
|
|
48513
|
+
fillWidth,
|
|
48514
|
+
size: size2,
|
|
48515
|
+
showBorder,
|
|
48516
|
+
showCheck,
|
|
48517
|
+
markAsCompleted
|
|
48518
|
+
} = useContext(MultiAccordionContext);
|
|
48519
|
+
const onClickStatus = (e) => {
|
|
48520
|
+
e.preventDefault();
|
|
48521
|
+
if (typeof markAsCompleted === "function") {
|
|
48522
|
+
markAsCompleted(value);
|
|
48523
|
+
}
|
|
48524
|
+
};
|
|
48525
|
+
const customSize = size2 === "none" ? "sm" : size2;
|
|
48526
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionItem, { value, $showBorder: showBorder, $fillWidth: fillWidth, ...props, children: [
|
|
48527
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionTrigger, { $size: size2, color, children: [
|
|
48528
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionIconsWrapper, { children: [
|
|
48529
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "chevron-right", size: iconSize ?? customSize, "aria-label": "accordion icon" }) }),
|
|
48530
|
+
icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: iconSize ?? customSize }) : null
|
|
48531
|
+
] }),
|
|
48532
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { isResponsive: false, gap: "sm", alignItems: "center", fillWidth: true, justifyContent: "space-between", component: "span", children: [
|
|
48533
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { component: "span", size: customSize, fillWidth, children: title }),
|
|
48534
|
+
showCheck && /* @__PURE__ */ jsxRuntimeExports.jsx(CustomIcon, { name: isCompleted ? "check-in-circle" : "circle", $isCompleted: isCompleted, size: iconSize ?? customSize, "aria-label": "accordion icon status", onClick: onClickStatus, "data-icon": "accordion-status", "data-testid": "accordion-status-icon" })
|
|
48535
|
+
] })
|
|
48536
|
+
] }),
|
|
48537
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionContent, { $padding: size2, children: [
|
|
48538
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: gap }),
|
|
48539
|
+
children
|
|
48540
|
+
] })
|
|
48541
|
+
] });
|
|
48542
|
+
};
|
|
48543
|
+
MultiAccordionItem.displayName = "MultiAccordion.Item";
|
|
48544
|
+
MultiAccordion.Item = MultiAccordionItem;
|
|
48545
|
+
const AccordionRoot = styled($1bf158f521e1b1b4$export$be92b6f5f03c0fe9).withConfig({
|
|
48546
|
+
componentId: "sc-1lb3204-0"
|
|
48547
|
+
})(["display:flex;flex-direction:column;justify-content:start;align-items:start;gap:", ";", ";"], ({
|
|
48548
|
+
theme: theme2,
|
|
48549
|
+
$gap
|
|
48550
|
+
}) => theme2.click.container.gap[$gap], ({
|
|
48551
|
+
$fillWidth
|
|
48552
|
+
}) => $fillWidth && "width: 100%");
|
|
48553
|
+
const AccordionItem = styled($1bf158f521e1b1b4$export$6d08773d2e66f8f2).withConfig({
|
|
48554
|
+
componentId: "sc-1lb3204-1"
|
|
48555
|
+
})(["", ";", ";"], ({
|
|
48556
|
+
theme: theme2,
|
|
48557
|
+
$showBorder
|
|
48558
|
+
}) => `
|
|
48559
|
+
border: ${$showBorder ? `1px solid ${theme2.click.global.color.stroke.default}` : "none"};
|
|
48560
|
+
border-radius: ${theme2.border.radii[1]};
|
|
48561
|
+
`, ({
|
|
48562
|
+
$fillWidth
|
|
48563
|
+
}) => $fillWidth && "width: 100%");
|
|
48564
|
+
const AccordionTrigger = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withConfig({
|
|
48565
|
+
componentId: "sc-1lb3204-2"
|
|
48566
|
+
})(["width:100%;border:none;padding:0;background-color:transparent;display:flex;align-items:center;", ';border-radius:inherit;&[data-state="open"]{border-bottom-left-radius:0px;border-bottom-right-radius:0px;[data-icon="accordion-status"]{color:', ";}}"], ({
|
|
48567
|
+
theme: theme2,
|
|
48568
|
+
$size = "md",
|
|
48569
|
+
color = "default"
|
|
48570
|
+
}) => {
|
|
48571
|
+
const size2 = $size === "none" ? "sm" : $size;
|
|
48572
|
+
return `
|
|
48573
|
+
padding: ${theme2.click.container.space[$size]};
|
|
48574
|
+
gap: ${theme2.click.accordion[size2].space.gap};
|
|
48575
|
+
color: ${theme2.click.accordion.color[color].label.default};
|
|
48576
|
+
font: ${theme2.click.accordion[size2].typography.label.default};
|
|
48577
|
+
|
|
48578
|
+
&:active {
|
|
48579
|
+
color: ${theme2.click.accordion.color[color].label.active};
|
|
48580
|
+
font: ${theme2.click.accordion[size2].typography.label.active};
|
|
48581
|
+
}
|
|
48582
|
+
|
|
48583
|
+
&:hover {
|
|
48584
|
+
color: ${theme2.click.accordion.color[color].label.hover};
|
|
48585
|
+
background: ${theme2.click.global.color.stroke.default};
|
|
48586
|
+
font: ${theme2.click.accordion[size2].typography.label.hover};
|
|
48587
|
+
cursor: pointer;
|
|
48588
|
+
}
|
|
48589
|
+
|
|
48590
|
+
[data-icon="accordion-status"] {
|
|
48591
|
+
color: ${theme2.global.color.stroke.intense};
|
|
48592
|
+
}
|
|
48593
|
+
`;
|
|
48594
|
+
}, ({
|
|
48595
|
+
theme: theme2
|
|
48596
|
+
}) => theme2.global.color.accent.default);
|
|
48597
|
+
const AccordionIconWrapper = styled.div.withConfig({
|
|
48598
|
+
componentId: "sc-1lb3204-3"
|
|
48599
|
+
})(["display:flex;align-items:center;justify-content:center;transition:transform 200ms cubic-bezier(0.87,0,0.13,1);", "[data-state='open'] &{transform:rotate(90deg);}"], AccordionTrigger);
|
|
48600
|
+
const AccordionIconsWrapper = styled.div.withConfig({
|
|
48601
|
+
componentId: "sc-1lb3204-4"
|
|
48602
|
+
})(["display:flex;align-items:center;justify-content:center;"]);
|
|
48603
|
+
const CustomIcon = styled(SvgImage).withConfig({
|
|
48604
|
+
componentId: "sc-1lb3204-5"
|
|
48605
|
+
})(["", ""], ({
|
|
48606
|
+
$isCompleted,
|
|
48607
|
+
theme: theme2
|
|
48608
|
+
}) => $isCompleted && `
|
|
48609
|
+
svg path {
|
|
48610
|
+
stroke: ${theme2.global.color.background.default} !important;
|
|
48611
|
+
&:first-of-type {
|
|
48612
|
+
stroke: ${theme2.global.color.accent.default} !important;
|
|
48613
|
+
}
|
|
48614
|
+
fill: ${theme2.global.color.accent.default} !important;;
|
|
48615
|
+
}
|
|
48616
|
+
`);
|
|
48617
|
+
const AccordionContent = styled($1bf158f521e1b1b4$export$7c6e2c02157bb7d2).withConfig({
|
|
48618
|
+
componentId: "sc-1lb3204-6"
|
|
48619
|
+
})(["padding:", ";padding-top:0;"], ({
|
|
48620
|
+
theme: theme2,
|
|
48621
|
+
$padding
|
|
48622
|
+
}) => theme2.click.container.space[$padding]);
|
|
48462
48623
|
export {
|
|
48463
48624
|
AccordionToExport as Accordion,
|
|
48464
48625
|
Alert,
|
|
@@ -48500,6 +48661,7 @@ export {
|
|
|
48500
48661
|
Label$1 as Label,
|
|
48501
48662
|
Link,
|
|
48502
48663
|
Logo,
|
|
48664
|
+
MultiAccordion,
|
|
48503
48665
|
MultiSelect,
|
|
48504
48666
|
NumberField,
|
|
48505
48667
|
Pagination,
|
package/dist/click-ui.umd.js
CHANGED
|
@@ -4294,14 +4294,13 @@ var __publicField = (obj, key, value) => {
|
|
|
4294
4294
|
function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
4295
4295
|
const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId());
|
|
4296
4296
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
);
|
|
4297
|
+
setId(
|
|
4298
|
+
(reactId) => reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
|
|
4299
|
+
);
|
|
4301
4300
|
}, [
|
|
4302
4301
|
deterministicId
|
|
4303
4302
|
]);
|
|
4304
|
-
return
|
|
4303
|
+
return id ? `radix-${id}` : "";
|
|
4305
4304
|
}
|
|
4306
4305
|
const sides = ["top", "right", "bottom", "left"];
|
|
4307
4306
|
const min = Math.min;
|
|
@@ -9103,25 +9102,25 @@ var __publicField = (obj, key, value) => {
|
|
|
9103
9102
|
children,
|
|
9104
9103
|
fillWidth = false,
|
|
9105
9104
|
...delegated
|
|
9106
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionRoot, { type: "single", collapsible: true, $fillWidth: fillWidth, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsxs($1bf158f521e1b1b4$export$6d08773d2e66f8f2, { value: "item", children: [
|
|
9107
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionTrigger, { $size: size2, color, $fillWidth: fillWidth, children: [
|
|
9108
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionIconsWrapper, { children: [
|
|
9109
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "chevron-right", size: iconSize || size2, "aria-label": "accordion icon" }) }),
|
|
9105
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionRoot$1, { type: "single", collapsible: true, $fillWidth: fillWidth, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsxs($1bf158f521e1b1b4$export$6d08773d2e66f8f2, { value: "item", children: [
|
|
9106
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionTrigger$1, { $size: size2, color, $fillWidth: fillWidth, children: [
|
|
9107
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionIconsWrapper$1, { children: [
|
|
9108
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionIconWrapper$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "chevron-right", size: iconSize || size2, "aria-label": "accordion icon" }) }),
|
|
9110
9109
|
icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: iconSize || size2 }) : null
|
|
9111
9110
|
] }),
|
|
9112
9111
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { component: "div", size: size2, fillWidth, children: title })
|
|
9113
9112
|
] }),
|
|
9114
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionContent, { children: [
|
|
9113
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionContent$1, { children: [
|
|
9115
9114
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: gap }),
|
|
9116
9115
|
children
|
|
9117
9116
|
] })
|
|
9118
9117
|
] }) });
|
|
9119
|
-
const AccordionRoot = styled($1bf158f521e1b1b4$export$be92b6f5f03c0fe9).withConfig({
|
|
9118
|
+
const AccordionRoot$1 = styled($1bf158f521e1b1b4$export$be92b6f5f03c0fe9).withConfig({
|
|
9120
9119
|
componentId: "sc-1ysh219-0"
|
|
9121
9120
|
})(["", ";"], ({
|
|
9122
9121
|
$fillWidth
|
|
9123
9122
|
}) => $fillWidth && "width: 100%");
|
|
9124
|
-
const AccordionTrigger = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withConfig({
|
|
9123
|
+
const AccordionTrigger$1 = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withConfig({
|
|
9125
9124
|
componentId: "sc-1ysh219-1"
|
|
9126
9125
|
})(["border:none;padding:0;background-color:transparent;display:flex;align-items:center;", " ", ";"], ({
|
|
9127
9126
|
theme: theme2,
|
|
@@ -9145,20 +9144,20 @@ var __publicField = (obj, key, value) => {
|
|
|
9145
9144
|
`, ({
|
|
9146
9145
|
$fillWidth
|
|
9147
9146
|
}) => $fillWidth && "width: 100%");
|
|
9148
|
-
const AccordionIconWrapper = styled.div.withConfig({
|
|
9147
|
+
const AccordionIconWrapper$1 = styled.div.withConfig({
|
|
9149
9148
|
componentId: "sc-1ysh219-2"
|
|
9150
|
-
})(["display:flex;align-items:center;justify-content:center;transition:transform 200ms cubic-bezier(0.87,0,0.13,1);", "[data-state='open'] &{transform:rotate(90deg);}"], AccordionTrigger);
|
|
9151
|
-
const AccordionIconsWrapper = styled.div.withConfig({
|
|
9149
|
+
})(["display:flex;align-items:center;justify-content:center;transition:transform 200ms cubic-bezier(0.87,0,0.13,1);", "[data-state='open'] &{transform:rotate(90deg);}"], AccordionTrigger$1);
|
|
9150
|
+
const AccordionIconsWrapper$1 = styled.div.withConfig({
|
|
9152
9151
|
componentId: "sc-1ysh219-3"
|
|
9153
9152
|
})(["display:flex;align-items:center;justify-content:center;"]);
|
|
9154
|
-
const AccordionContent = styled($1bf158f521e1b1b4$export$7c6e2c02157bb7d2).withConfig({
|
|
9153
|
+
const AccordionContent$1 = styled($1bf158f521e1b1b4$export$7c6e2c02157bb7d2).withConfig({
|
|
9155
9154
|
componentId: "sc-1ysh219-4"
|
|
9156
9155
|
})([""]);
|
|
9157
9156
|
styled(Accordion).withConfig({
|
|
9158
9157
|
componentId: "sc-1ysh219-5"
|
|
9159
|
-
})(["", "{gap:", ";}p{margin:0;}", "{visibility:hidden;}&:hover ", "{visibility:revert;}&:active ", "{visibility:revert;}", "[data-state='open'] ", "{visibility:revert;}"], AccordionTrigger, ({
|
|
9158
|
+
})(["", "{gap:", ";}p{margin:0;}", "{visibility:hidden;}&:hover ", "{visibility:revert;}&:active ", "{visibility:revert;}", "[data-state='open'] ", "{visibility:revert;}"], AccordionTrigger$1, ({
|
|
9160
9159
|
theme: theme2
|
|
9161
|
-
}) => theme2.click.sidebar.navigation.item.default.space.gap, AccordionIconWrapper, AccordionIconWrapper, AccordionIconWrapper, AccordionTrigger, AccordionIconWrapper);
|
|
9160
|
+
}) => theme2.click.sidebar.navigation.item.default.space.gap, AccordionIconWrapper$1, AccordionIconWrapper$1, AccordionIconWrapper$1, AccordionTrigger$1, AccordionIconWrapper$1);
|
|
9162
9161
|
const AccordionToExport = styled(Accordion).withConfig({
|
|
9163
9162
|
componentId: "sc-1ysh219-6"
|
|
9164
9163
|
})([""]);
|
|
@@ -10410,7 +10409,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10410
10409
|
const Content$3 = styled.div.withConfig({
|
|
10411
10410
|
componentId: "sc-1drx130-2"
|
|
10412
10411
|
})(["display:flex;flex-direction:column;flex:1;"]);
|
|
10413
|
-
const CustomIcon = styled.img.withConfig({
|
|
10412
|
+
const CustomIcon$1 = styled.img.withConfig({
|
|
10414
10413
|
componentId: "sc-1drx130-3"
|
|
10415
10414
|
})(["height:", ";width:", ";"], ({
|
|
10416
10415
|
theme: theme2
|
|
@@ -10489,7 +10488,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10489
10488
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$a, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
|
|
10490
10489
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Header$4, { children: [
|
|
10491
10490
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(HeaderLeft, { $disabled: disabled, children: [
|
|
10492
|
-
iconUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(CustomIcon, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
|
|
10491
|
+
iconUrl ? /* @__PURE__ */ jsxRuntimeExports.jsx(CustomIcon$1, { src: iconUrl, alt: "card icon", "aria-hidden": true }) : icon && /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, "aria-hidden": true, size: "lg" }),
|
|
10493
10492
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Title$2, { type: "h3", children: title })
|
|
10494
10493
|
] }),
|
|
10495
10494
|
badgeText && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
|
|
@@ -43571,6 +43570,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
43571
43570
|
foreground: "#1d1d1d",
|
|
43572
43571
|
background: "#FAFF69"
|
|
43573
43572
|
}
|
|
43573
|
+
},
|
|
43574
|
+
icon: {
|
|
43575
|
+
background: "linear-gradient(132deg, #FAFF69 7.59%, #292929 30.01%);"
|
|
43574
43576
|
}
|
|
43575
43577
|
}
|
|
43576
43578
|
};
|
|
@@ -44090,7 +44092,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
44090
44092
|
background: {
|
|
44091
44093
|
"default": "#ffffff",
|
|
44092
44094
|
hover: "#f6f7fa",
|
|
44093
|
-
active: "#
|
|
44095
|
+
active: "#ffffff",
|
|
44094
44096
|
disabled: "#dfdfdf"
|
|
44095
44097
|
},
|
|
44096
44098
|
title: {
|
|
@@ -44264,7 +44266,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
44264
44266
|
field: {
|
|
44265
44267
|
color: {
|
|
44266
44268
|
background: {
|
|
44267
|
-
"default": "rgb(
|
|
44269
|
+
"default": "rgb(98.5% 98.9% 100%)",
|
|
44268
44270
|
hover: "rgb(96.6% 96.9% 98.1%)",
|
|
44269
44271
|
active: "#ffffff",
|
|
44270
44272
|
disabled: "#dfdfdf",
|
|
@@ -45003,7 +45005,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
45003
45005
|
"default": "#ffffff",
|
|
45004
45006
|
muted: "#f6f7fa",
|
|
45005
45007
|
sidebar: "#ffffff",
|
|
45006
|
-
split: "#f6f7fa"
|
|
45008
|
+
split: "#f6f7fa",
|
|
45009
|
+
muted_a: "lch(49.8 30.5 277 / 0.06)"
|
|
45007
45010
|
},
|
|
45008
45011
|
text: {
|
|
45009
45012
|
"default": "#161517",
|
|
@@ -45066,6 +45069,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
45066
45069
|
foreground: "#135be6",
|
|
45067
45070
|
background: "#dae6fc"
|
|
45068
45071
|
}
|
|
45072
|
+
},
|
|
45073
|
+
icon: {
|
|
45074
|
+
background: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
|
|
45069
45075
|
}
|
|
45070
45076
|
}
|
|
45071
45077
|
};
|
|
@@ -46022,7 +46028,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
46022
46028
|
background: {
|
|
46023
46029
|
"default": "#ffffff",
|
|
46024
46030
|
hover: "#f6f7fa",
|
|
46025
|
-
active: "#
|
|
46031
|
+
active: "#ffffff",
|
|
46026
46032
|
disabled: "#dfdfdf"
|
|
46027
46033
|
},
|
|
46028
46034
|
title: {
|
|
@@ -46352,7 +46358,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
46352
46358
|
},
|
|
46353
46359
|
color: {
|
|
46354
46360
|
background: {
|
|
46355
|
-
"default": "rgb(
|
|
46361
|
+
"default": "rgb(98.5% 98.9% 100%)",
|
|
46356
46362
|
hover: "rgb(96.6% 96.9% 98.1%)",
|
|
46357
46363
|
active: "#ffffff",
|
|
46358
46364
|
disabled: "#dfdfdf",
|
|
@@ -47904,7 +47910,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
47904
47910
|
"default": "#ffffff",
|
|
47905
47911
|
muted: "#f6f7fa",
|
|
47906
47912
|
sidebar: "#ffffff",
|
|
47907
|
-
split: "#f6f7fa"
|
|
47913
|
+
split: "#f6f7fa",
|
|
47914
|
+
muted_a: "lch(49.8 30.5 277 / 0.06)"
|
|
47908
47915
|
},
|
|
47909
47916
|
text: {
|
|
47910
47917
|
"default": "#161517",
|
|
@@ -47967,6 +47974,9 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
47967
47974
|
foreground: "#135be6",
|
|
47968
47975
|
background: "#dae6fc"
|
|
47969
47976
|
}
|
|
47977
|
+
},
|
|
47978
|
+
icon: {
|
|
47979
|
+
background: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
|
|
47970
47980
|
}
|
|
47971
47981
|
}
|
|
47972
47982
|
};
|
|
@@ -48001,6 +48011,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
48001
48011
|
base: "#212121"
|
|
48002
48012
|
},
|
|
48003
48013
|
slate: {
|
|
48014
|
+
"25": "#FBFCFF",
|
|
48004
48015
|
"50": "#f6f7fa",
|
|
48005
48016
|
"100": "#e6e7e9",
|
|
48006
48017
|
"200": "#cccfd3",
|
|
@@ -48011,7 +48022,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
48011
48022
|
"700": "#53575f",
|
|
48012
48023
|
"800": "#302e32",
|
|
48013
48024
|
"900": "#161517",
|
|
48014
|
-
base: "#373439"
|
|
48025
|
+
base: "#373439",
|
|
48026
|
+
"50a": "lch(49.8 30.5 277 / 0.06)"
|
|
48015
48027
|
},
|
|
48016
48028
|
indigo: {
|
|
48017
48029
|
"50": "#f4f1fc",
|
|
@@ -48082,6 +48094,8 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
48082
48094
|
},
|
|
48083
48095
|
gradients: {
|
|
48084
48096
|
base: "linear-gradient(229.65deg, #292924 15.78%, #0F0F0F 88.39%)",
|
|
48097
|
+
yellowToblack: "linear-gradient(132deg, #FAFF69 7.59%, #292929 30.01%);",
|
|
48098
|
+
whiteToblack: "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);",
|
|
48085
48099
|
transparent: "rgba(0,0,0,0)"
|
|
48086
48100
|
},
|
|
48087
48101
|
utility: {
|
|
@@ -48476,6 +48490,153 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
48476
48490
|
};
|
|
48477
48491
|
VerticalStep.displayName = "VerticalStepper.Step";
|
|
48478
48492
|
VerticalStepper.Step = VerticalStep;
|
|
48493
|
+
const MultiAccordionContext = React.createContext({
|
|
48494
|
+
size: "md",
|
|
48495
|
+
fillWidth: true,
|
|
48496
|
+
showBorder: true,
|
|
48497
|
+
showCheck: false
|
|
48498
|
+
});
|
|
48499
|
+
const MultiAccordion = ({
|
|
48500
|
+
size: size2 = "md",
|
|
48501
|
+
children,
|
|
48502
|
+
fillWidth = true,
|
|
48503
|
+
showCheck = false,
|
|
48504
|
+
showBorder = true,
|
|
48505
|
+
gap = "md",
|
|
48506
|
+
markAsCompleted,
|
|
48507
|
+
...delegated
|
|
48508
|
+
}) => {
|
|
48509
|
+
const contextValue = {
|
|
48510
|
+
size: size2,
|
|
48511
|
+
fillWidth,
|
|
48512
|
+
showBorder,
|
|
48513
|
+
showCheck,
|
|
48514
|
+
markAsCompleted
|
|
48515
|
+
};
|
|
48516
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionRoot, { $fillWidth: fillWidth, $gap: gap, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MultiAccordionContext.Provider, { value: contextValue, children }) });
|
|
48517
|
+
};
|
|
48518
|
+
const MultiAccordionItem = ({
|
|
48519
|
+
value,
|
|
48520
|
+
title,
|
|
48521
|
+
color,
|
|
48522
|
+
icon,
|
|
48523
|
+
iconSize,
|
|
48524
|
+
gap,
|
|
48525
|
+
children,
|
|
48526
|
+
isCompleted = false,
|
|
48527
|
+
...props
|
|
48528
|
+
}) => {
|
|
48529
|
+
const {
|
|
48530
|
+
fillWidth,
|
|
48531
|
+
size: size2,
|
|
48532
|
+
showBorder,
|
|
48533
|
+
showCheck,
|
|
48534
|
+
markAsCompleted
|
|
48535
|
+
} = React.useContext(MultiAccordionContext);
|
|
48536
|
+
const onClickStatus = (e) => {
|
|
48537
|
+
e.preventDefault();
|
|
48538
|
+
if (typeof markAsCompleted === "function") {
|
|
48539
|
+
markAsCompleted(value);
|
|
48540
|
+
}
|
|
48541
|
+
};
|
|
48542
|
+
const customSize = size2 === "none" ? "sm" : size2;
|
|
48543
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionItem, { value, $showBorder: showBorder, $fillWidth: fillWidth, ...props, children: [
|
|
48544
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionTrigger, { $size: size2, color, children: [
|
|
48545
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionIconsWrapper, { children: [
|
|
48546
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "chevron-right", size: iconSize ?? customSize, "aria-label": "accordion icon" }) }),
|
|
48547
|
+
icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: iconSize ?? customSize }) : null
|
|
48548
|
+
] }),
|
|
48549
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { isResponsive: false, gap: "sm", alignItems: "center", fillWidth: true, justifyContent: "space-between", component: "span", children: [
|
|
48550
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { component: "span", size: customSize, fillWidth, children: title }),
|
|
48551
|
+
showCheck && /* @__PURE__ */ jsxRuntimeExports.jsx(CustomIcon, { name: isCompleted ? "check-in-circle" : "circle", $isCompleted: isCompleted, size: iconSize ?? customSize, "aria-label": "accordion icon status", onClick: onClickStatus, "data-icon": "accordion-status", "data-testid": "accordion-status-icon" })
|
|
48552
|
+
] })
|
|
48553
|
+
] }),
|
|
48554
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionContent, { $padding: size2, children: [
|
|
48555
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: gap }),
|
|
48556
|
+
children
|
|
48557
|
+
] })
|
|
48558
|
+
] });
|
|
48559
|
+
};
|
|
48560
|
+
MultiAccordionItem.displayName = "MultiAccordion.Item";
|
|
48561
|
+
MultiAccordion.Item = MultiAccordionItem;
|
|
48562
|
+
const AccordionRoot = styled($1bf158f521e1b1b4$export$be92b6f5f03c0fe9).withConfig({
|
|
48563
|
+
componentId: "sc-1lb3204-0"
|
|
48564
|
+
})(["display:flex;flex-direction:column;justify-content:start;align-items:start;gap:", ";", ";"], ({
|
|
48565
|
+
theme: theme2,
|
|
48566
|
+
$gap
|
|
48567
|
+
}) => theme2.click.container.gap[$gap], ({
|
|
48568
|
+
$fillWidth
|
|
48569
|
+
}) => $fillWidth && "width: 100%");
|
|
48570
|
+
const AccordionItem = styled($1bf158f521e1b1b4$export$6d08773d2e66f8f2).withConfig({
|
|
48571
|
+
componentId: "sc-1lb3204-1"
|
|
48572
|
+
})(["", ";", ";"], ({
|
|
48573
|
+
theme: theme2,
|
|
48574
|
+
$showBorder
|
|
48575
|
+
}) => `
|
|
48576
|
+
border: ${$showBorder ? `1px solid ${theme2.click.global.color.stroke.default}` : "none"};
|
|
48577
|
+
border-radius: ${theme2.border.radii[1]};
|
|
48578
|
+
`, ({
|
|
48579
|
+
$fillWidth
|
|
48580
|
+
}) => $fillWidth && "width: 100%");
|
|
48581
|
+
const AccordionTrigger = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withConfig({
|
|
48582
|
+
componentId: "sc-1lb3204-2"
|
|
48583
|
+
})(["width:100%;border:none;padding:0;background-color:transparent;display:flex;align-items:center;", ';border-radius:inherit;&[data-state="open"]{border-bottom-left-radius:0px;border-bottom-right-radius:0px;[data-icon="accordion-status"]{color:', ";}}"], ({
|
|
48584
|
+
theme: theme2,
|
|
48585
|
+
$size = "md",
|
|
48586
|
+
color = "default"
|
|
48587
|
+
}) => {
|
|
48588
|
+
const size2 = $size === "none" ? "sm" : $size;
|
|
48589
|
+
return `
|
|
48590
|
+
padding: ${theme2.click.container.space[$size]};
|
|
48591
|
+
gap: ${theme2.click.accordion[size2].space.gap};
|
|
48592
|
+
color: ${theme2.click.accordion.color[color].label.default};
|
|
48593
|
+
font: ${theme2.click.accordion[size2].typography.label.default};
|
|
48594
|
+
|
|
48595
|
+
&:active {
|
|
48596
|
+
color: ${theme2.click.accordion.color[color].label.active};
|
|
48597
|
+
font: ${theme2.click.accordion[size2].typography.label.active};
|
|
48598
|
+
}
|
|
48599
|
+
|
|
48600
|
+
&:hover {
|
|
48601
|
+
color: ${theme2.click.accordion.color[color].label.hover};
|
|
48602
|
+
background: ${theme2.click.global.color.stroke.default};
|
|
48603
|
+
font: ${theme2.click.accordion[size2].typography.label.hover};
|
|
48604
|
+
cursor: pointer;
|
|
48605
|
+
}
|
|
48606
|
+
|
|
48607
|
+
[data-icon="accordion-status"] {
|
|
48608
|
+
color: ${theme2.global.color.stroke.intense};
|
|
48609
|
+
}
|
|
48610
|
+
`;
|
|
48611
|
+
}, ({
|
|
48612
|
+
theme: theme2
|
|
48613
|
+
}) => theme2.global.color.accent.default);
|
|
48614
|
+
const AccordionIconWrapper = styled.div.withConfig({
|
|
48615
|
+
componentId: "sc-1lb3204-3"
|
|
48616
|
+
})(["display:flex;align-items:center;justify-content:center;transition:transform 200ms cubic-bezier(0.87,0,0.13,1);", "[data-state='open'] &{transform:rotate(90deg);}"], AccordionTrigger);
|
|
48617
|
+
const AccordionIconsWrapper = styled.div.withConfig({
|
|
48618
|
+
componentId: "sc-1lb3204-4"
|
|
48619
|
+
})(["display:flex;align-items:center;justify-content:center;"]);
|
|
48620
|
+
const CustomIcon = styled(SvgImage).withConfig({
|
|
48621
|
+
componentId: "sc-1lb3204-5"
|
|
48622
|
+
})(["", ""], ({
|
|
48623
|
+
$isCompleted,
|
|
48624
|
+
theme: theme2
|
|
48625
|
+
}) => $isCompleted && `
|
|
48626
|
+
svg path {
|
|
48627
|
+
stroke: ${theme2.global.color.background.default} !important;
|
|
48628
|
+
&:first-of-type {
|
|
48629
|
+
stroke: ${theme2.global.color.accent.default} !important;
|
|
48630
|
+
}
|
|
48631
|
+
fill: ${theme2.global.color.accent.default} !important;;
|
|
48632
|
+
}
|
|
48633
|
+
`);
|
|
48634
|
+
const AccordionContent = styled($1bf158f521e1b1b4$export$7c6e2c02157bb7d2).withConfig({
|
|
48635
|
+
componentId: "sc-1lb3204-6"
|
|
48636
|
+
})(["padding:", ";padding-top:0;"], ({
|
|
48637
|
+
theme: theme2,
|
|
48638
|
+
$padding
|
|
48639
|
+
}) => theme2.click.container.space[$padding]);
|
|
48479
48640
|
exports2.Accordion = AccordionToExport;
|
|
48480
48641
|
exports2.Alert = Alert;
|
|
48481
48642
|
exports2.AutoComplete = AutoComplete;
|
|
@@ -48516,6 +48677,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
48516
48677
|
exports2.Label = Label$1;
|
|
48517
48678
|
exports2.Link = Link;
|
|
48518
48679
|
exports2.Logo = Logo;
|
|
48680
|
+
exports2.MultiAccordion = MultiAccordion;
|
|
48519
48681
|
exports2.MultiSelect = MultiSelect;
|
|
48520
48682
|
exports2.NumberField = NumberField;
|
|
48521
48683
|
exports2.Pagination = Pagination;
|
|
@@ -2,10 +2,10 @@ import { ComponentProps, ElementType, ReactNode } from 'react';
|
|
|
2
2
|
import { Orientation } from '..';
|
|
3
3
|
|
|
4
4
|
type AlignItemsOptions = "start" | "center" | "end" | "stretch";
|
|
5
|
-
type GapOptions = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
5
|
+
export type GapOptions = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
6
6
|
type GrowShrinkOptions = "0" | "1" | "2" | "3" | "4" | "5" | "6";
|
|
7
7
|
type JustifyContentOptions = "center" | "space-between" | "space-around" | "space-evenly" | "start" | "end" | "left" | "right";
|
|
8
|
-
type PaddingOptions = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
8
|
+
export type PaddingOptions = "none" | "xxs" | "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
9
9
|
type WrapOptions = "nowrap" | "wrap" | "wrap-reverse";
|
|
10
10
|
export interface ContainerProps<T extends ElementType = "div"> {
|
|
11
11
|
component?: T;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { IconSize } from '../Icon/types';
|
|
2
|
+
import { IconName } from '..';
|
|
3
|
+
import { ReactElement, ReactNode } from 'react';
|
|
4
|
+
import { GapOptions } from '../Container/Container';
|
|
5
|
+
import { SizeType as SpacerSizeType } from '../Spacer/Spacer';
|
|
6
|
+
import * as RadixAccordion from "@radix-ui/react-accordion";
|
|
7
|
+
type Size = "none" | "sm" | "md" | "lg";
|
|
8
|
+
type Color = "default" | "link";
|
|
9
|
+
type MarkAsCompletedFunctionType = (value: string) => void | Promise<void>;
|
|
10
|
+
interface MultiAccordionCommonProps {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
size?: Size;
|
|
13
|
+
fillWidth?: boolean;
|
|
14
|
+
gap?: GapOptions;
|
|
15
|
+
showBorder?: boolean;
|
|
16
|
+
showCheck?: boolean;
|
|
17
|
+
markAsCompleted?: MarkAsCompletedFunctionType;
|
|
18
|
+
}
|
|
19
|
+
export type MultiAccordionProps = MultiAccordionCommonProps & (Omit<RadixAccordion.AccordionMultipleProps, "children"> | Omit<RadixAccordion.AccordionSingleProps, "children">);
|
|
20
|
+
export declare const MultiAccordion: {
|
|
21
|
+
({ size, children, fillWidth, showCheck, showBorder, gap, markAsCompleted, ...delegated }: MultiAccordionProps): import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
Item: {
|
|
23
|
+
({ value, title, color, icon, iconSize, gap, children, isCompleted, ...props }: MultiAccordionItemProps): ReactElement;
|
|
24
|
+
displayName: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
interface MultiAccordionItemProps extends Omit<RadixAccordion.AccordionItemProps, "title"> {
|
|
28
|
+
title: ReactNode;
|
|
29
|
+
color?: Color;
|
|
30
|
+
icon?: IconName;
|
|
31
|
+
iconSize?: IconSize;
|
|
32
|
+
gap?: SpacerSizeType;
|
|
33
|
+
isCompleted?: boolean;
|
|
34
|
+
}
|
|
35
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
type SizeType = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
1
|
+
export type SizeType = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
2
2
|
export interface SpacerProps {
|
|
3
3
|
size?: SizeType;
|
|
4
4
|
}
|
|
5
5
|
export declare const Spacer: ({ size }: SpacerProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
-
export {};
|
|
@@ -64,3 +64,4 @@ export { useToast } from './Toast/useToast';
|
|
|
64
64
|
export { createToast } from './Toast/toastEmitter';
|
|
65
65
|
export { UserIcon as ProfileIcon } from './icons/UserIcon';
|
|
66
66
|
export { default as VerticalStepper } from './VerticalStepper/VerticalStepper';
|
|
67
|
+
export { MultiAccordion } from './MultiAccordion/MultiAccordion';
|
|
@@ -18,7 +18,7 @@ import { ContextMenuProps } from '@radix-ui/react-context-menu';
|
|
|
18
18
|
import { CheckboxProps } from './Checkbox/Checkbox';
|
|
19
19
|
import { CardPrimaryProps } from './CardPrimary/CardPrimary';
|
|
20
20
|
import { CardSecondaryProps, BadgeState } from './CardSecondary/CardSecondary';
|
|
21
|
-
import { ButtonProps } from './Button/Button';
|
|
21
|
+
import { ButtonProps, ButtonType } from './Button/Button';
|
|
22
22
|
import { ButtonGroupProps } from './ButtonGroup/ButtonGroup';
|
|
23
23
|
import { BadgeProps } from './Badge/Badge';
|
|
24
24
|
import { AvatarProps } from './Avatar/Avatar';
|
|
@@ -56,12 +56,13 @@ export type { AutoCompleteProps, AutoCompleteOptionListItem, } from './AutoCompl
|
|
|
56
56
|
export type { PaginationProps } from './Pagination/Pagination';
|
|
57
57
|
export type { ContextMenuItemProps } from './ContextMenu/ContextMenu';
|
|
58
58
|
export type { GenericLabelProps } from './GenericLabel/GenericLabel';
|
|
59
|
+
export type { MultiAccordionProps } from './MultiAccordion/MultiAccordion';
|
|
59
60
|
export type { IconButtonProps };
|
|
60
61
|
export type { AlertProps };
|
|
61
62
|
export type { AvatarProps };
|
|
62
63
|
export type { BadgeProps };
|
|
63
64
|
export type { ButtonGroupProps };
|
|
64
|
-
export type { ButtonProps };
|
|
65
|
+
export type { ButtonProps, ButtonType };
|
|
65
66
|
export type { CardSecondaryProps, BadgeState };
|
|
66
67
|
export type { CardPrimaryProps };
|
|
67
68
|
export type { CheckboxProps };
|
package/dist/styles/types.d.ts
CHANGED
|
@@ -2823,6 +2823,7 @@ export interface Theme {
|
|
|
2823
2823
|
"muted": string;
|
|
2824
2824
|
"sidebar": string;
|
|
2825
2825
|
"split": string;
|
|
2826
|
+
"muted_a": string;
|
|
2826
2827
|
};
|
|
2827
2828
|
"text": {
|
|
2828
2829
|
"default": string;
|
|
@@ -2886,6 +2887,9 @@ export interface Theme {
|
|
|
2886
2887
|
"background": string;
|
|
2887
2888
|
};
|
|
2888
2889
|
};
|
|
2890
|
+
"icon": {
|
|
2891
|
+
"background": string;
|
|
2892
|
+
};
|
|
2889
2893
|
};
|
|
2890
2894
|
};
|
|
2891
2895
|
"palette": {
|
|
@@ -2919,6 +2923,7 @@ export interface Theme {
|
|
|
2919
2923
|
"base": string;
|
|
2920
2924
|
};
|
|
2921
2925
|
"slate": {
|
|
2926
|
+
"25": string;
|
|
2922
2927
|
"50": string;
|
|
2923
2928
|
"100": string;
|
|
2924
2929
|
"200": string;
|
|
@@ -2930,6 +2935,7 @@ export interface Theme {
|
|
|
2930
2935
|
"800": string;
|
|
2931
2936
|
"900": string;
|
|
2932
2937
|
"base": string;
|
|
2938
|
+
"50a": string;
|
|
2933
2939
|
};
|
|
2934
2940
|
"indigo": {
|
|
2935
2941
|
"50": string;
|
|
@@ -3000,6 +3006,8 @@ export interface Theme {
|
|
|
3000
3006
|
};
|
|
3001
3007
|
"gradients": {
|
|
3002
3008
|
"base": string;
|
|
3009
|
+
"yellowToblack": string;
|
|
3010
|
+
"whiteToblack": string;
|
|
3003
3011
|
"transparent": string;
|
|
3004
3012
|
};
|
|
3005
3013
|
"utility": {
|
|
@@ -940,7 +940,7 @@ declare const _default: {
|
|
|
940
940
|
"background": {
|
|
941
941
|
"default": "#ffffff",
|
|
942
942
|
"hover": "#f6f7fa",
|
|
943
|
-
"active": "#
|
|
943
|
+
"active": "#ffffff",
|
|
944
944
|
"disabled": "#dfdfdf"
|
|
945
945
|
},
|
|
946
946
|
"title": {
|
|
@@ -1270,7 +1270,7 @@ declare const _default: {
|
|
|
1270
1270
|
},
|
|
1271
1271
|
"color": {
|
|
1272
1272
|
"background": {
|
|
1273
|
-
"default": "rgb(
|
|
1273
|
+
"default": "rgb(98.5% 98.9% 100%)",
|
|
1274
1274
|
"hover": "rgb(96.6% 96.9% 98.1%)",
|
|
1275
1275
|
"active": "#ffffff",
|
|
1276
1276
|
"disabled": "#dfdfdf",
|
|
@@ -2822,7 +2822,8 @@ declare const _default: {
|
|
|
2822
2822
|
"default": "#ffffff",
|
|
2823
2823
|
"muted": "#f6f7fa",
|
|
2824
2824
|
"sidebar": "#ffffff",
|
|
2825
|
-
"split": "#f6f7fa"
|
|
2825
|
+
"split": "#f6f7fa",
|
|
2826
|
+
"muted_a": "lch(49.8 30.5 277 / 0.06)"
|
|
2826
2827
|
},
|
|
2827
2828
|
"text": {
|
|
2828
2829
|
"default": "#161517",
|
|
@@ -2885,6 +2886,9 @@ declare const _default: {
|
|
|
2885
2886
|
"foreground": "#135be6",
|
|
2886
2887
|
"background": "#dae6fc"
|
|
2887
2888
|
}
|
|
2889
|
+
},
|
|
2890
|
+
"icon": {
|
|
2891
|
+
"background": "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
|
|
2888
2892
|
}
|
|
2889
2893
|
}
|
|
2890
2894
|
},
|
|
@@ -2919,6 +2923,7 @@ declare const _default: {
|
|
|
2919
2923
|
"base": "#212121"
|
|
2920
2924
|
},
|
|
2921
2925
|
"slate": {
|
|
2926
|
+
"25": "#FBFCFF",
|
|
2922
2927
|
"50": "#f6f7fa",
|
|
2923
2928
|
"100": "#e6e7e9",
|
|
2924
2929
|
"200": "#cccfd3",
|
|
@@ -2929,7 +2934,8 @@ declare const _default: {
|
|
|
2929
2934
|
"700": "#53575f",
|
|
2930
2935
|
"800": "#302e32",
|
|
2931
2936
|
"900": "#161517",
|
|
2932
|
-
"base": "#373439"
|
|
2937
|
+
"base": "#373439",
|
|
2938
|
+
"50a": "lch(49.8 30.5 277 / 0.06)"
|
|
2933
2939
|
},
|
|
2934
2940
|
"indigo": {
|
|
2935
2941
|
"50": "#f4f1fc",
|
|
@@ -3000,6 +3006,8 @@ declare const _default: {
|
|
|
3000
3006
|
},
|
|
3001
3007
|
"gradients": {
|
|
3002
3008
|
"base": "linear-gradient(229.65deg, #292924 15.78%, #0F0F0F 88.39%)",
|
|
3009
|
+
"yellowToblack": "linear-gradient(132deg, #FAFF69 7.59%, #292929 30.01%);",
|
|
3010
|
+
"whiteToblack": "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);",
|
|
3003
3011
|
"transparent": "rgba(0,0,0,0)"
|
|
3004
3012
|
},
|
|
3005
3013
|
"utility": {
|
|
@@ -503,7 +503,7 @@ declare const _default: {
|
|
|
503
503
|
"background": {
|
|
504
504
|
"default": "#ffffff",
|
|
505
505
|
"hover": "#f6f7fa",
|
|
506
|
-
"active": "#
|
|
506
|
+
"active": "#ffffff",
|
|
507
507
|
"disabled": "#dfdfdf"
|
|
508
508
|
},
|
|
509
509
|
"title": {
|
|
@@ -677,7 +677,7 @@ declare const _default: {
|
|
|
677
677
|
"field": {
|
|
678
678
|
"color": {
|
|
679
679
|
"background": {
|
|
680
|
-
"default": "rgb(
|
|
680
|
+
"default": "rgb(98.5% 98.9% 100%)",
|
|
681
681
|
"hover": "rgb(96.6% 96.9% 98.1%)",
|
|
682
682
|
"active": "#ffffff",
|
|
683
683
|
"disabled": "#dfdfdf",
|
|
@@ -1416,7 +1416,8 @@ declare const _default: {
|
|
|
1416
1416
|
"default": "#ffffff",
|
|
1417
1417
|
"muted": "#f6f7fa",
|
|
1418
1418
|
"sidebar": "#ffffff",
|
|
1419
|
-
"split": "#f6f7fa"
|
|
1419
|
+
"split": "#f6f7fa",
|
|
1420
|
+
"muted_a": "lch(49.8 30.5 277 / 0.06)"
|
|
1420
1421
|
},
|
|
1421
1422
|
"text": {
|
|
1422
1423
|
"default": "#161517",
|
|
@@ -1479,6 +1480,9 @@ declare const _default: {
|
|
|
1479
1480
|
"foreground": "#135be6",
|
|
1480
1481
|
"background": "#dae6fc"
|
|
1481
1482
|
}
|
|
1483
|
+
},
|
|
1484
|
+
"icon": {
|
|
1485
|
+
"background": "linear-gradient(132deg, #FFFFFF 7.59%, #292929 30.01%);"
|
|
1482
1486
|
}
|
|
1483
1487
|
}
|
|
1484
1488
|
}
|