@clickhouse/click-ui 0.0.163 → 0.0.165
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 +292 -29
- package/dist/click-ui.umd.js +292 -29
- package/dist/components/Container/Container.d.ts +2 -2
- package/dist/components/Icon/types.d.ts +2 -0
- 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 +1 -0
- package/dist/styles/types.d.ts +49 -0
- package/dist/styles/variables.dark.json.d.ts +28 -0
- package/dist/styles/variables.json.d.ts +50 -1
- package/dist/styles/variables.light.json.d.ts +29 -1
- package/package.json +1 -1
package/dist/click-ui.umd.js
CHANGED
|
@@ -1563,7 +1563,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1563
1563
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M6.74728 17.4532C6.7342 17.4529 6.72157 17.458 6.71232 17.4672C6.70306 17.4765 6.69799 17.4891 6.69826 17.5022C6.69827 17.5221 6.71032 17.54 6.72876 17.5475C6.7472 17.5551 6.76836 17.5507 6.7823 17.5365C6.79624 17.5222 6.80018 17.501 6.79228 17.4827C6.78438 17.4644 6.7662 17.4527 6.74628 17.4532", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })
|
|
1564
1564
|
] });
|
|
1565
1565
|
const Cpu = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1566
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", {
|
|
1566
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_7971_4934)", children: [
|
|
1567
1567
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M14.25 9.75H9.75V14.25H14.25V9.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1568
1568
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.75 4.5H5.25C4.83579 4.5 4.5 4.83579 4.5 5.25V18.75C4.5 19.1642 4.83579 19.5 5.25 19.5H18.75C19.1642 19.5 19.5 19.1642 19.5 18.75V5.25C19.5 4.83579 19.1642 4.5 18.75 4.5Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1569
1569
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M19.5 9.75H21.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1579,7 +1579,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1579
1579
|
] });
|
|
1580
1580
|
const Minus = (props) => /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: /* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18.5 11.5H5.5", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }) });
|
|
1581
1581
|
const Pipe = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1582
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", {
|
|
1582
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_8130_6058)", children: [
|
|
1583
1583
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M10.5 15.75V13.5C10.5 12.7044 10.8161 11.9413 11.3787 11.3787C11.9413 10.8161 12.7044 10.5 13.5 10.5H15.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1584
1584
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M15.75 4.5H13.5C11.1131 4.5 8.82387 5.44821 7.13604 7.13604C5.44821 8.82387 4.5 11.1131 4.5 13.5V15.75", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1585
1585
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M18 3.75H16.5C16.0858 3.75 15.75 4.08579 15.75 4.5V10.5C15.75 10.9142 16.0858 11.25 16.5 11.25H18C18.4142 11.25 18.75 10.9142 18.75 10.5V4.5C18.75 4.08579 18.4142 3.75 18 3.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -1592,7 +1592,7 @@ var __publicField = (obj, key, value) => {
|
|
|
1592
1592
|
/* @__PURE__ */ jsxRuntimeExports.jsx("defs", { children: /* @__PURE__ */ jsxRuntimeExports.jsx("clipPath", { id: "clip0_8130_6058", children: /* @__PURE__ */ jsxRuntimeExports.jsx("rect", { width: "24", height: "24", fill: "white" }) }) })
|
|
1593
1593
|
] });
|
|
1594
1594
|
const TreeStructure = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
1595
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", {
|
|
1595
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_7969_2214)", children: [
|
|
1596
1596
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M6 9.75H3C2.58579 9.75 2.25 10.0858 2.25 10.5V13.5C2.25 13.9142 2.58579 14.25 3 14.25H6C6.41421 14.25 6.75 13.9142 6.75 13.5V10.5C6.75 10.0858 6.41421 9.75 6 9.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1597
1597
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M20.25 3.75H15.75C15.3358 3.75 15 4.08579 15 4.5V9C15 9.41421 15.3358 9.75 15.75 9.75H20.25C20.6642 9.75 21 9.41421 21 9V4.5C21 4.08579 20.6642 3.75 20.25 3.75Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
1598
1598
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M20.25 14.25H15.75C15.3358 14.25 15 14.5858 15 15V19.5C15 19.9142 15.3358 20.25 15.75 20.25H20.25C20.6642 20.25 21 19.9142 21 19.5V15C21 14.5858 20.6642 14.25 20.25 14.25Z", stroke: "#161517", strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
|
|
@@ -2400,7 +2400,7 @@ var __publicField = (obj, key, value) => {
|
|
|
2400
2400
|
componentId: "sc-1sddmxu-8"
|
|
2401
2401
|
})(["display:flex;white-space:nowrap;overflow:hidden;justify-content:flex-end;gap:inherit;& > *:not(button){overflow:hidden;text-overflow:ellipsis;}"]);
|
|
2402
2402
|
const Switzerland = (props) => /* @__PURE__ */ jsxRuntimeExports.jsxs("svg", { width: "30", height: "20", viewBox: "0 0 30 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [
|
|
2403
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", {
|
|
2403
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs("g", { clipPath: "url(#clip0_8668_6183)", children: [
|
|
2404
2404
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M30 0H0V20H30V0Z", fill: "#D52B1E" }),
|
|
2405
2405
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M21.6663 7.77783H8.33301V12.2223H21.6663V7.77783Z", fill: "white" }),
|
|
2406
2406
|
/* @__PURE__ */ jsxRuntimeExports.jsx("path", { d: "M17.2218 3.3335H12.7773V16.6668H17.2218V3.3335Z", fill: "white" })
|
|
@@ -3223,6 +3223,7 @@ var __publicField = (obj, key, value) => {
|
|
|
3223
3223
|
color,
|
|
3224
3224
|
width,
|
|
3225
3225
|
height,
|
|
3226
|
+
state,
|
|
3226
3227
|
className,
|
|
3227
3228
|
size: size2,
|
|
3228
3229
|
...props
|
|
@@ -3231,11 +3232,11 @@ var __publicField = (obj, key, value) => {
|
|
|
3231
3232
|
if (!Component) {
|
|
3232
3233
|
return null;
|
|
3233
3234
|
}
|
|
3234
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgWrapper, { $color: color, $width: width, $height: height, $size: size2, className, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...props }) });
|
|
3235
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(SvgWrapper, { $color: color, $width: width, $height: height, $size: size2, className, state, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Component, { ...props }) });
|
|
3235
3236
|
};
|
|
3236
3237
|
const SvgWrapper = styled.div.withConfig({
|
|
3237
3238
|
componentId: "sc-29ieut-0"
|
|
3238
|
-
})(["display:flex;align-items:center;", ""], ({
|
|
3239
|
+
})(["display:flex;align-items:center;", " ", ""], ({
|
|
3239
3240
|
theme: theme2,
|
|
3240
3241
|
$color = "currentColor",
|
|
3241
3242
|
$width,
|
|
@@ -3254,6 +3255,16 @@ var __publicField = (obj, key, value) => {
|
|
|
3254
3255
|
width: ${$width || theme2.click.image[$size || "md"].size.width || "24px"};
|
|
3255
3256
|
height: ${$height || theme2.click.image[$size || "md"].size.height || "24px"};
|
|
3256
3257
|
}
|
|
3258
|
+
`, ({
|
|
3259
|
+
theme: theme2,
|
|
3260
|
+
$color = "currentColor",
|
|
3261
|
+
state = "default",
|
|
3262
|
+
$size = "md"
|
|
3263
|
+
}) => `
|
|
3264
|
+
background: ${theme2.click.icon.color.background[state]};
|
|
3265
|
+
border-radius: ${theme2.border.radii.full};
|
|
3266
|
+
padding: ${state === "default" ? "none" : theme2.click.icon.space[$size].all};
|
|
3267
|
+
color: ${state === "default" ? $color : theme2.click.icon.color.text[state]};
|
|
3257
3268
|
`);
|
|
3258
3269
|
const SvgImage = ({
|
|
3259
3270
|
name: name2,
|
|
@@ -4283,14 +4294,13 @@ var __publicField = (obj, key, value) => {
|
|
|
4283
4294
|
function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
|
|
4284
4295
|
const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId());
|
|
4285
4296
|
$9f79659886946c16$export$e5c5a5f917a5871c(() => {
|
|
4286
|
-
|
|
4287
|
-
|
|
4288
|
-
|
|
4289
|
-
);
|
|
4297
|
+
setId(
|
|
4298
|
+
(reactId) => reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
|
|
4299
|
+
);
|
|
4290
4300
|
}, [
|
|
4291
4301
|
deterministicId
|
|
4292
4302
|
]);
|
|
4293
|
-
return
|
|
4303
|
+
return id ? `radix-${id}` : "";
|
|
4294
4304
|
}
|
|
4295
4305
|
const sides = ["top", "right", "bottom", "left"];
|
|
4296
4306
|
const min = Math.min;
|
|
@@ -9092,25 +9102,25 @@ var __publicField = (obj, key, value) => {
|
|
|
9092
9102
|
children,
|
|
9093
9103
|
fillWidth = false,
|
|
9094
9104
|
...delegated
|
|
9095
|
-
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionRoot, { type: "single", collapsible: true, $fillWidth: fillWidth, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsxs($1bf158f521e1b1b4$export$6d08773d2e66f8f2, { value: "item", children: [
|
|
9096
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionTrigger, { $size: size2, color, $fillWidth: fillWidth, children: [
|
|
9097
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionIconsWrapper, { children: [
|
|
9098
|
-
/* @__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" }) }),
|
|
9099
9109
|
icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: iconSize || size2 }) : null
|
|
9100
9110
|
] }),
|
|
9101
9111
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { component: "div", size: size2, fillWidth, children: title })
|
|
9102
9112
|
] }),
|
|
9103
|
-
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionContent, { children: [
|
|
9113
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionContent$1, { children: [
|
|
9104
9114
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: gap }),
|
|
9105
9115
|
children
|
|
9106
9116
|
] })
|
|
9107
9117
|
] }) });
|
|
9108
|
-
const AccordionRoot = styled($1bf158f521e1b1b4$export$be92b6f5f03c0fe9).withConfig({
|
|
9118
|
+
const AccordionRoot$1 = styled($1bf158f521e1b1b4$export$be92b6f5f03c0fe9).withConfig({
|
|
9109
9119
|
componentId: "sc-1ysh219-0"
|
|
9110
9120
|
})(["", ";"], ({
|
|
9111
9121
|
$fillWidth
|
|
9112
9122
|
}) => $fillWidth && "width: 100%");
|
|
9113
|
-
const AccordionTrigger = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withConfig({
|
|
9123
|
+
const AccordionTrigger$1 = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withConfig({
|
|
9114
9124
|
componentId: "sc-1ysh219-1"
|
|
9115
9125
|
})(["border:none;padding:0;background-color:transparent;display:flex;align-items:center;", " ", ";"], ({
|
|
9116
9126
|
theme: theme2,
|
|
@@ -9134,20 +9144,20 @@ var __publicField = (obj, key, value) => {
|
|
|
9134
9144
|
`, ({
|
|
9135
9145
|
$fillWidth
|
|
9136
9146
|
}) => $fillWidth && "width: 100%");
|
|
9137
|
-
const AccordionIconWrapper = styled.div.withConfig({
|
|
9147
|
+
const AccordionIconWrapper$1 = styled.div.withConfig({
|
|
9138
9148
|
componentId: "sc-1ysh219-2"
|
|
9139
|
-
})(["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);
|
|
9140
|
-
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({
|
|
9141
9151
|
componentId: "sc-1ysh219-3"
|
|
9142
9152
|
})(["display:flex;align-items:center;justify-content:center;"]);
|
|
9143
|
-
const AccordionContent = styled($1bf158f521e1b1b4$export$7c6e2c02157bb7d2).withConfig({
|
|
9153
|
+
const AccordionContent$1 = styled($1bf158f521e1b1b4$export$7c6e2c02157bb7d2).withConfig({
|
|
9144
9154
|
componentId: "sc-1ysh219-4"
|
|
9145
9155
|
})([""]);
|
|
9146
9156
|
styled(Accordion).withConfig({
|
|
9147
9157
|
componentId: "sc-1ysh219-5"
|
|
9148
|
-
})(["", "{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, ({
|
|
9149
9159
|
theme: theme2
|
|
9150
|
-
}) => 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);
|
|
9151
9161
|
const AccordionToExport = styled(Accordion).withConfig({
|
|
9152
9162
|
componentId: "sc-1ysh219-6"
|
|
9153
9163
|
})([""]);
|
|
@@ -10399,7 +10409,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10399
10409
|
const Content$3 = styled.div.withConfig({
|
|
10400
10410
|
componentId: "sc-1drx130-2"
|
|
10401
10411
|
})(["display:flex;flex-direction:column;flex:1;"]);
|
|
10402
|
-
const CustomIcon = styled.img.withConfig({
|
|
10412
|
+
const CustomIcon$1 = styled.img.withConfig({
|
|
10403
10413
|
componentId: "sc-1drx130-3"
|
|
10404
10414
|
})(["height:", ";width:", ";"], ({
|
|
10405
10415
|
theme: theme2
|
|
@@ -10478,7 +10488,7 @@ var __publicField = (obj, key, value) => {
|
|
|
10478
10488
|
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Wrapper$a, { "aria-disabled": disabled, tabIndex: 0, $hasShadow: hasShadow, ...props, children: [
|
|
10479
10489
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(Header$4, { children: [
|
|
10480
10490
|
/* @__PURE__ */ jsxRuntimeExports.jsxs(HeaderLeft, { $disabled: disabled, children: [
|
|
10481
|
-
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" }),
|
|
10482
10492
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Title$2, { type: "h3", children: title })
|
|
10483
10493
|
] }),
|
|
10484
10494
|
badgeText && /* @__PURE__ */ jsxRuntimeExports.jsx(Badge, { text: badgeText, state: disabled == true ? "disabled" : badgeState })
|
|
@@ -33518,7 +33528,7 @@ var __publicField = (obj, key, value) => {
|
|
|
33518
33528
|
})(["display:flex;flex-direction:column;width:inherit;max-height:calc(var(--radix-popover-content-available-height) - 1rem);"]);
|
|
33519
33529
|
const SelectListContent = styled.div.withConfig({
|
|
33520
33530
|
componentId: "sc-oudbwg-8"
|
|
33521
|
-
})(["width:inherit;overflow:
|
|
33531
|
+
})(["width:inherit;overflow:auto;flex:1;"]);
|
|
33522
33532
|
const HiddenSelectElement = styled.select.withConfig({
|
|
33523
33533
|
componentId: "sc-oudbwg-9"
|
|
33524
33534
|
})(["visibility:hidden;position:absolute;z-index:-1;height:0;"]);
|
|
@@ -43384,6 +43394,34 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
43384
43394
|
}
|
|
43385
43395
|
}
|
|
43386
43396
|
},
|
|
43397
|
+
icon: {
|
|
43398
|
+
color: {
|
|
43399
|
+
background: {
|
|
43400
|
+
"default": "rgba(0,0,0,0)",
|
|
43401
|
+
success: "rgb(20% 100% 26.7% / 0.2)",
|
|
43402
|
+
neutral: "rgb(62.7% 62.7% 62.7% / 0.2)",
|
|
43403
|
+
danger: "rgb(100% 13.7% 13.7% / 0.2)",
|
|
43404
|
+
info: "rgb(7.45% 35.7% 90.2% / 0.2)",
|
|
43405
|
+
warning: "rgb(100% 58% 8.63% / 0.2)"
|
|
43406
|
+
},
|
|
43407
|
+
text: {
|
|
43408
|
+
"default": "rgba(0,0,0,0)",
|
|
43409
|
+
success: "#CCFFD0",
|
|
43410
|
+
neutral: "#c0c0c0",
|
|
43411
|
+
danger: "#ffbaba",
|
|
43412
|
+
info: "#b5cdf9",
|
|
43413
|
+
warning: "#ffca8b"
|
|
43414
|
+
},
|
|
43415
|
+
stroke: {
|
|
43416
|
+
"default": "rgba(0,0,0,0)",
|
|
43417
|
+
success: "rgb(20% 100% 26.7% / 0.05)",
|
|
43418
|
+
neutral: "rgb(62.7% 62.7% 62.7% / 0.2)",
|
|
43419
|
+
danger: "rgb(100% 13.7% 13.7% / 0.05)",
|
|
43420
|
+
info: "rgb(7.45% 35.7% 90.2% / 0.05)",
|
|
43421
|
+
warning: "rgb(100% 58% 8.63% / 0.05)"
|
|
43422
|
+
}
|
|
43423
|
+
}
|
|
43424
|
+
},
|
|
43387
43425
|
global: {
|
|
43388
43426
|
color: {
|
|
43389
43427
|
background: {
|
|
@@ -44225,7 +44263,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
44225
44263
|
field: {
|
|
44226
44264
|
color: {
|
|
44227
44265
|
background: {
|
|
44228
|
-
"default": "rgb(
|
|
44266
|
+
"default": "rgb(98.5% 98.9% 100%)",
|
|
44229
44267
|
hover: "rgb(96.6% 96.9% 98.1%)",
|
|
44230
44268
|
active: "#ffffff",
|
|
44231
44269
|
disabled: "#dfdfdf",
|
|
@@ -44851,6 +44889,34 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
44851
44889
|
}
|
|
44852
44890
|
}
|
|
44853
44891
|
},
|
|
44892
|
+
icon: {
|
|
44893
|
+
color: {
|
|
44894
|
+
background: {
|
|
44895
|
+
"default": "rgba(0,0,0,0)",
|
|
44896
|
+
success: "rgb(20% 100% 26.7% / 0.1)",
|
|
44897
|
+
neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
|
|
44898
|
+
danger: "rgb(100% 13.7% 13.7% / 0.1)",
|
|
44899
|
+
info: "rgb(7.45% 35.7% 90.2% / 0.1)",
|
|
44900
|
+
warning: "rgb(100% 58% 8.63% / 0.1)"
|
|
44901
|
+
},
|
|
44902
|
+
text: {
|
|
44903
|
+
"default": "rgba(0,0,0,0)",
|
|
44904
|
+
success: "#00990D",
|
|
44905
|
+
neutral: "#53575f",
|
|
44906
|
+
danger: "#c10000",
|
|
44907
|
+
info: "#135be6",
|
|
44908
|
+
warning: "#9e5600"
|
|
44909
|
+
},
|
|
44910
|
+
stroke: {
|
|
44911
|
+
"default": "rgba(0,0,0,0)",
|
|
44912
|
+
success: "rgb(20% 100% 26.7% / 0.05)",
|
|
44913
|
+
neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
|
|
44914
|
+
danger: "rgb(100% 13.7% 13.7% / 0.05)",
|
|
44915
|
+
info: "rgb(7.45% 35.7% 90.2% / 0.05)",
|
|
44916
|
+
warning: "rgb(100% 58% 8.63% / 0.05)"
|
|
44917
|
+
}
|
|
44918
|
+
}
|
|
44919
|
+
},
|
|
44854
44920
|
global: {
|
|
44855
44921
|
color: {
|
|
44856
44922
|
background: {
|
|
@@ -46285,7 +46351,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
46285
46351
|
},
|
|
46286
46352
|
color: {
|
|
46287
46353
|
background: {
|
|
46288
|
-
"default": "rgb(
|
|
46354
|
+
"default": "rgb(98.5% 98.9% 100%)",
|
|
46289
46355
|
hover: "rgb(96.6% 96.9% 98.1%)",
|
|
46290
46356
|
active: "#ffffff",
|
|
46291
46357
|
disabled: "#dfdfdf",
|
|
@@ -47666,6 +47732,54 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
47666
47732
|
unset: ""
|
|
47667
47733
|
}
|
|
47668
47734
|
},
|
|
47735
|
+
icon: {
|
|
47736
|
+
space: {
|
|
47737
|
+
xs: {
|
|
47738
|
+
all: "0.25rem"
|
|
47739
|
+
},
|
|
47740
|
+
sm: {
|
|
47741
|
+
all: "0.25rem"
|
|
47742
|
+
},
|
|
47743
|
+
md: {
|
|
47744
|
+
all: "0.365rem"
|
|
47745
|
+
},
|
|
47746
|
+
lg: {
|
|
47747
|
+
all: "0.5rem"
|
|
47748
|
+
},
|
|
47749
|
+
xl: {
|
|
47750
|
+
all: "0.75rem"
|
|
47751
|
+
},
|
|
47752
|
+
xxl: {
|
|
47753
|
+
all: "1rem"
|
|
47754
|
+
}
|
|
47755
|
+
},
|
|
47756
|
+
color: {
|
|
47757
|
+
background: {
|
|
47758
|
+
"default": "rgba(0,0,0,0)",
|
|
47759
|
+
success: "rgb(20% 100% 26.7% / 0.1)",
|
|
47760
|
+
neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
|
|
47761
|
+
danger: "rgb(100% 13.7% 13.7% / 0.1)",
|
|
47762
|
+
info: "rgb(7.45% 35.7% 90.2% / 0.1)",
|
|
47763
|
+
warning: "rgb(100% 58% 8.63% / 0.1)"
|
|
47764
|
+
},
|
|
47765
|
+
text: {
|
|
47766
|
+
"default": "rgba(0,0,0,0)",
|
|
47767
|
+
success: "#00990D",
|
|
47768
|
+
neutral: "#53575f",
|
|
47769
|
+
danger: "#c10000",
|
|
47770
|
+
info: "#135be6",
|
|
47771
|
+
warning: "#9e5600"
|
|
47772
|
+
},
|
|
47773
|
+
stroke: {
|
|
47774
|
+
"default": "rgba(0,0,0,0)",
|
|
47775
|
+
success: "rgb(20% 100% 26.7% / 0.05)",
|
|
47776
|
+
neutral: "rgb(41.2% 43.1% 47.5% / 0.1)",
|
|
47777
|
+
danger: "rgb(100% 13.7% 13.7% / 0.05)",
|
|
47778
|
+
info: "rgb(7.45% 35.7% 90.2% / 0.05)",
|
|
47779
|
+
warning: "rgb(100% 58% 8.63% / 0.05)"
|
|
47780
|
+
}
|
|
47781
|
+
}
|
|
47782
|
+
},
|
|
47669
47783
|
global: {
|
|
47670
47784
|
color: {
|
|
47671
47785
|
background: {
|
|
@@ -47886,6 +48000,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
47886
48000
|
base: "#212121"
|
|
47887
48001
|
},
|
|
47888
48002
|
slate: {
|
|
48003
|
+
"25": "#FBFCFF",
|
|
47889
48004
|
"50": "#f6f7fa",
|
|
47890
48005
|
"100": "#e6e7e9",
|
|
47891
48006
|
"200": "#cccfd3",
|
|
@@ -48361,6 +48476,153 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
48361
48476
|
};
|
|
48362
48477
|
VerticalStep.displayName = "VerticalStepper.Step";
|
|
48363
48478
|
VerticalStepper.Step = VerticalStep;
|
|
48479
|
+
const MultiAccordionContext = React.createContext({
|
|
48480
|
+
size: "md",
|
|
48481
|
+
fillWidth: true,
|
|
48482
|
+
showBorder: true,
|
|
48483
|
+
showCheck: false
|
|
48484
|
+
});
|
|
48485
|
+
const MultiAccordion = ({
|
|
48486
|
+
size: size2 = "md",
|
|
48487
|
+
children,
|
|
48488
|
+
fillWidth = true,
|
|
48489
|
+
showCheck = false,
|
|
48490
|
+
showBorder = true,
|
|
48491
|
+
gap = "md",
|
|
48492
|
+
markAsCompleted,
|
|
48493
|
+
...delegated
|
|
48494
|
+
}) => {
|
|
48495
|
+
const contextValue = {
|
|
48496
|
+
size: size2,
|
|
48497
|
+
fillWidth,
|
|
48498
|
+
showBorder,
|
|
48499
|
+
showCheck,
|
|
48500
|
+
markAsCompleted
|
|
48501
|
+
};
|
|
48502
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(AccordionRoot, { $fillWidth: fillWidth, $gap: gap, ...delegated, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MultiAccordionContext.Provider, { value: contextValue, children }) });
|
|
48503
|
+
};
|
|
48504
|
+
const MultiAccordionItem = ({
|
|
48505
|
+
value,
|
|
48506
|
+
title,
|
|
48507
|
+
color,
|
|
48508
|
+
icon,
|
|
48509
|
+
iconSize,
|
|
48510
|
+
gap,
|
|
48511
|
+
children,
|
|
48512
|
+
isCompleted = false,
|
|
48513
|
+
...props
|
|
48514
|
+
}) => {
|
|
48515
|
+
const {
|
|
48516
|
+
fillWidth,
|
|
48517
|
+
size: size2,
|
|
48518
|
+
showBorder,
|
|
48519
|
+
showCheck,
|
|
48520
|
+
markAsCompleted
|
|
48521
|
+
} = React.useContext(MultiAccordionContext);
|
|
48522
|
+
const onClickStatus = (e) => {
|
|
48523
|
+
e.preventDefault();
|
|
48524
|
+
if (typeof markAsCompleted === "function") {
|
|
48525
|
+
markAsCompleted(value);
|
|
48526
|
+
}
|
|
48527
|
+
};
|
|
48528
|
+
const customSize = size2 === "none" ? "sm" : size2;
|
|
48529
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionItem, { value, $showBorder: showBorder, $fillWidth: fillWidth, ...props, children: [
|
|
48530
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionTrigger, { $size: size2, color, children: [
|
|
48531
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionIconsWrapper, { children: [
|
|
48532
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(AccordionIconWrapper, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: "chevron-right", size: iconSize ?? customSize, "aria-label": "accordion icon" }) }),
|
|
48533
|
+
icon ? /* @__PURE__ */ jsxRuntimeExports.jsx(SvgImage, { name: icon, size: iconSize ?? customSize }) : null
|
|
48534
|
+
] }),
|
|
48535
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(Container, { isResponsive: false, gap: "sm", alignItems: "center", fillWidth: true, justifyContent: "space-between", component: "span", children: [
|
|
48536
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Text, { component: "span", size: customSize, fillWidth, children: title }),
|
|
48537
|
+
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" })
|
|
48538
|
+
] })
|
|
48539
|
+
] }),
|
|
48540
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(AccordionContent, { $padding: size2, children: [
|
|
48541
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Spacer, { size: gap }),
|
|
48542
|
+
children
|
|
48543
|
+
] })
|
|
48544
|
+
] });
|
|
48545
|
+
};
|
|
48546
|
+
MultiAccordionItem.displayName = "MultiAccordion.Item";
|
|
48547
|
+
MultiAccordion.Item = MultiAccordionItem;
|
|
48548
|
+
const AccordionRoot = styled($1bf158f521e1b1b4$export$be92b6f5f03c0fe9).withConfig({
|
|
48549
|
+
componentId: "sc-1lb3204-0"
|
|
48550
|
+
})(["display:flex;flex-direction:column;justify-content:start;align-items:start;gap:", ";", ";"], ({
|
|
48551
|
+
theme: theme2,
|
|
48552
|
+
$gap
|
|
48553
|
+
}) => theme2.click.container.gap[$gap], ({
|
|
48554
|
+
$fillWidth
|
|
48555
|
+
}) => $fillWidth && "width: 100%");
|
|
48556
|
+
const AccordionItem = styled($1bf158f521e1b1b4$export$6d08773d2e66f8f2).withConfig({
|
|
48557
|
+
componentId: "sc-1lb3204-1"
|
|
48558
|
+
})(["", ";", ";"], ({
|
|
48559
|
+
theme: theme2,
|
|
48560
|
+
$showBorder
|
|
48561
|
+
}) => `
|
|
48562
|
+
border: ${$showBorder ? `1px solid ${theme2.click.global.color.stroke.default}` : "none"};
|
|
48563
|
+
border-radius: ${theme2.border.radii[1]};
|
|
48564
|
+
`, ({
|
|
48565
|
+
$fillWidth
|
|
48566
|
+
}) => $fillWidth && "width: 100%");
|
|
48567
|
+
const AccordionTrigger = styled($1bf158f521e1b1b4$export$41fb9f06171c75f4).withConfig({
|
|
48568
|
+
componentId: "sc-1lb3204-2"
|
|
48569
|
+
})(["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:', ";}}"], ({
|
|
48570
|
+
theme: theme2,
|
|
48571
|
+
$size = "md",
|
|
48572
|
+
color = "default"
|
|
48573
|
+
}) => {
|
|
48574
|
+
const size2 = $size === "none" ? "sm" : $size;
|
|
48575
|
+
return `
|
|
48576
|
+
padding: ${theme2.click.container.space[$size]};
|
|
48577
|
+
gap: ${theme2.click.accordion[size2].space.gap};
|
|
48578
|
+
color: ${theme2.click.accordion.color[color].label.default};
|
|
48579
|
+
font: ${theme2.click.accordion[size2].typography.label.default};
|
|
48580
|
+
|
|
48581
|
+
&:active {
|
|
48582
|
+
color: ${theme2.click.accordion.color[color].label.active};
|
|
48583
|
+
font: ${theme2.click.accordion[size2].typography.label.active};
|
|
48584
|
+
}
|
|
48585
|
+
|
|
48586
|
+
&:hover {
|
|
48587
|
+
color: ${theme2.click.accordion.color[color].label.hover};
|
|
48588
|
+
background: ${theme2.click.global.color.stroke.default};
|
|
48589
|
+
font: ${theme2.click.accordion[size2].typography.label.hover};
|
|
48590
|
+
cursor: pointer;
|
|
48591
|
+
}
|
|
48592
|
+
|
|
48593
|
+
[data-icon="accordion-status"] {
|
|
48594
|
+
color: ${theme2.global.color.stroke.intense};
|
|
48595
|
+
}
|
|
48596
|
+
`;
|
|
48597
|
+
}, ({
|
|
48598
|
+
theme: theme2
|
|
48599
|
+
}) => theme2.global.color.accent.default);
|
|
48600
|
+
const AccordionIconWrapper = styled.div.withConfig({
|
|
48601
|
+
componentId: "sc-1lb3204-3"
|
|
48602
|
+
})(["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);
|
|
48603
|
+
const AccordionIconsWrapper = styled.div.withConfig({
|
|
48604
|
+
componentId: "sc-1lb3204-4"
|
|
48605
|
+
})(["display:flex;align-items:center;justify-content:center;"]);
|
|
48606
|
+
const CustomIcon = styled(SvgImage).withConfig({
|
|
48607
|
+
componentId: "sc-1lb3204-5"
|
|
48608
|
+
})(["", ""], ({
|
|
48609
|
+
$isCompleted,
|
|
48610
|
+
theme: theme2
|
|
48611
|
+
}) => $isCompleted && `
|
|
48612
|
+
svg path {
|
|
48613
|
+
stroke: ${theme2.global.color.background.default} !important;
|
|
48614
|
+
&:first-of-type {
|
|
48615
|
+
stroke: ${theme2.global.color.accent.default} !important;
|
|
48616
|
+
}
|
|
48617
|
+
fill: ${theme2.global.color.accent.default} !important;;
|
|
48618
|
+
}
|
|
48619
|
+
`);
|
|
48620
|
+
const AccordionContent = styled($1bf158f521e1b1b4$export$7c6e2c02157bb7d2).withConfig({
|
|
48621
|
+
componentId: "sc-1lb3204-6"
|
|
48622
|
+
})(["padding:", ";padding-top:0;"], ({
|
|
48623
|
+
theme: theme2,
|
|
48624
|
+
$padding
|
|
48625
|
+
}) => theme2.click.container.space[$padding]);
|
|
48364
48626
|
exports2.Accordion = AccordionToExport;
|
|
48365
48627
|
exports2.Alert = Alert;
|
|
48366
48628
|
exports2.AutoComplete = AutoComplete;
|
|
@@ -48401,6 +48663,7 @@ Defaulting to \`${$89eedd556c436f6a$var$DEFAULT_ORIENTATION}\`.`;
|
|
|
48401
48663
|
exports2.Label = Label$1;
|
|
48402
48664
|
exports2.Link = Link;
|
|
48403
48665
|
exports2.Logo = Logo;
|
|
48666
|
+
exports2.MultiAccordion = MultiAccordion;
|
|
48404
48667
|
exports2.MultiSelect = MultiSelect;
|
|
48405
48668
|
exports2.NumberField = NumberField;
|
|
48406
48669
|
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;
|
|
@@ -5,12 +5,14 @@ import { LogoName } from '../Logos/types';
|
|
|
5
5
|
import { PaymentName, PaymentProps } from '../icons/Payments';
|
|
6
6
|
|
|
7
7
|
export type IconSize = "xs" | "sm" | "md" | "lg" | "xl" | "xxl";
|
|
8
|
+
export type IconState = "default" | "success" | "warning" | "danger" | "info";
|
|
8
9
|
export declare const ICON_NAMES: readonly ["activity", "alarm", "arrow-down", "arrow-left", "arrow-right", "arrow-triangle", "arrow-directions", "arrow-up", "auth-app", "auth-sms", "backups", "bar-chart", "bell", "beta", "blog", "book", "brackets", "briefcase", "building", "burger-menu", "calendar", "calendar-with-time", "cards", "cell-tower", "chat", "check", "check-in-circle", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle", "clock", "cloud", "cloud-keys", "code", "code-in-square", "connect", "connect-alt", "console", "copy", "cpu", "cross", "credit-card", "data", "database", "disk", "display", "document", "dot", "dots-horizontal", "dots-triangle", "dots-vertical", "dots-vertical-double", "double-check", "download", "download-in-circle", "email", "empty", "enter", "eye", "eye-closed", "filter", "fire", "flag", "flask", "folder-closed", "folder-open", "gear", "gift", "git-merge", "history", "horizontal-loading", "home", "http", "http-monitoring", "info-in-circle", "information", "insert-row", "integrations", "key", "keys", "lifebuoy", "light-bulb", "lightening", "line-in-circle", "loading", "loading-animated", "lock", "metrics", "metrics-alt", "minus", "no-cloud", "pause", "payment", "pencil", "pie-chart", "pipe", "play", "play-in-circle", "plus", "popout", "puzzle-piece", "query", "question", "refresh", "rocket", "sandglass", "search", "secure", "server", "services", "settings", "share", "share-arrow", "share-network", "slide-in", "slide-out", "sort-alt", "sort", "sparkle", "speaker", "speed", "star", "stop", "support", "table", "taxi", "trash", "tree-structure", "upload", "url", "user", "users", "warning", "waves"];
|
|
9
10
|
export type IconName = (typeof ICON_NAMES)[number];
|
|
10
11
|
export interface IconProps extends SVGAttributes<HTMLOrSVGElement> {
|
|
11
12
|
name: IconName;
|
|
12
13
|
color?: string;
|
|
13
14
|
size?: IconSize;
|
|
15
|
+
state?: IconState;
|
|
14
16
|
}
|
|
15
17
|
type NoThemeType = {
|
|
16
18
|
theme?: never;
|
|
@@ -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';
|
|
@@ -56,6 +56,7 @@ 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 };
|
package/dist/styles/types.d.ts
CHANGED
|
@@ -2651,6 +2651,54 @@ export interface Theme {
|
|
|
2651
2651
|
"unset": string;
|
|
2652
2652
|
};
|
|
2653
2653
|
};
|
|
2654
|
+
"icon": {
|
|
2655
|
+
"space": {
|
|
2656
|
+
"xs": {
|
|
2657
|
+
"all": string;
|
|
2658
|
+
};
|
|
2659
|
+
"sm": {
|
|
2660
|
+
"all": string;
|
|
2661
|
+
};
|
|
2662
|
+
"md": {
|
|
2663
|
+
"all": string;
|
|
2664
|
+
};
|
|
2665
|
+
"lg": {
|
|
2666
|
+
"all": string;
|
|
2667
|
+
};
|
|
2668
|
+
"xl": {
|
|
2669
|
+
"all": string;
|
|
2670
|
+
};
|
|
2671
|
+
"xxl": {
|
|
2672
|
+
"all": string;
|
|
2673
|
+
};
|
|
2674
|
+
};
|
|
2675
|
+
"color": {
|
|
2676
|
+
"background": {
|
|
2677
|
+
"default": string;
|
|
2678
|
+
"success": string;
|
|
2679
|
+
"neutral": string;
|
|
2680
|
+
"danger": string;
|
|
2681
|
+
"info": string;
|
|
2682
|
+
"warning": string;
|
|
2683
|
+
};
|
|
2684
|
+
"text": {
|
|
2685
|
+
"default": string;
|
|
2686
|
+
"success": string;
|
|
2687
|
+
"neutral": string;
|
|
2688
|
+
"danger": string;
|
|
2689
|
+
"info": string;
|
|
2690
|
+
"warning": string;
|
|
2691
|
+
};
|
|
2692
|
+
"stroke": {
|
|
2693
|
+
"default": string;
|
|
2694
|
+
"success": string;
|
|
2695
|
+
"neutral": string;
|
|
2696
|
+
"danger": string;
|
|
2697
|
+
"info": string;
|
|
2698
|
+
"warning": string;
|
|
2699
|
+
};
|
|
2700
|
+
};
|
|
2701
|
+
};
|
|
2654
2702
|
"global": {
|
|
2655
2703
|
"color": {
|
|
2656
2704
|
"background": {
|
|
@@ -2871,6 +2919,7 @@ export interface Theme {
|
|
|
2871
2919
|
"base": string;
|
|
2872
2920
|
};
|
|
2873
2921
|
"slate": {
|
|
2922
|
+
"25": string;
|
|
2874
2923
|
"50": string;
|
|
2875
2924
|
"100": string;
|
|
2876
2925
|
"200": string;
|