@ctlyst.id/voila-ui 11.0.4 → 11.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -33,6 +33,7 @@ declare const AccordionItem: react.ForwardRefExoticComponent<AccordionItemProps
|
|
|
33
33
|
declare const AccordionTrigger: react.ForwardRefExoticComponent<AccordionTriggerProps & {
|
|
34
34
|
description?: string;
|
|
35
35
|
isNew?: boolean;
|
|
36
|
+
alignItems?: "center" | "flex-start" | "flex-end";
|
|
36
37
|
} & {
|
|
37
38
|
children?: react.ReactNode | undefined;
|
|
38
39
|
} & react.RefAttributes<HTMLButtonElement>>;
|
package/dist/index.d.ts
CHANGED
|
@@ -33,6 +33,7 @@ declare const AccordionItem: react.ForwardRefExoticComponent<AccordionItemProps
|
|
|
33
33
|
declare const AccordionTrigger: react.ForwardRefExoticComponent<AccordionTriggerProps & {
|
|
34
34
|
description?: string;
|
|
35
35
|
isNew?: boolean;
|
|
36
|
+
alignItems?: "center" | "flex-start" | "flex-end";
|
|
36
37
|
} & {
|
|
37
38
|
children?: react.ReactNode | undefined;
|
|
38
39
|
} & react.RefAttributes<HTMLButtonElement>>;
|
package/dist/index.js
CHANGED
|
@@ -453,13 +453,13 @@ var import_react_accordion4 = require("@radix-ui/react-accordion");
|
|
|
453
453
|
var import_clsx9 = __toESM(require("clsx"));
|
|
454
454
|
var import_react9 = require("react");
|
|
455
455
|
var import_jsx_runtime11 = require("react/jsx-runtime");
|
|
456
|
-
var AccordionTrigger = (0, import_react9.forwardRef)(({ children, className, description, isNew, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_accordion4.Header, { className: (0, import_clsx9.default)("accordion-header"), id: "vds-accordion-header", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_accordion4.Trigger, { id: "vds-accordion-trigger", className: (0, import_clsx9.default)(accordionTrigger, className), ...props, ref, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(flex_default, { gap: "$4", flexDirection: "column", width: "100%", children: [
|
|
457
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(flex_default, { justifyContent: "space-between", children: [
|
|
456
|
+
var AccordionTrigger = (0, import_react9.forwardRef)(({ children, className, description, isNew, alignItems = "flex-start", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_accordion4.Header, { className: (0, import_clsx9.default)("accordion-header"), id: "vds-accordion-header", children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react_accordion4.Trigger, { id: "vds-accordion-trigger", className: (0, import_clsx9.default)(accordionTrigger, className), ...props, ref, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(flex_default, { gap: "$4", flexDirection: "column", width: "100%", children: [
|
|
457
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(flex_default, { justifyContent: "space-between", alignItems, children: [
|
|
458
458
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(flex_default, { alignItems: "center", gap: "$4", children: [
|
|
459
459
|
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(box_default, { className: accordionTriggerText, children }),
|
|
460
460
|
isNew && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(box_default, { className: accordionTriggerLabelNew, children: "New" })
|
|
461
461
|
] }),
|
|
462
|
-
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_v2.
|
|
462
|
+
/* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_v2.ChevronDownLarge, { className: accordionChevron, size: 24, color: import_voila_ui_core5.theme.colors.black })
|
|
463
463
|
] }),
|
|
464
464
|
description && /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(box_default, { className: accordionTriggerDescText, children: description })
|
|
465
465
|
] }) }) }));
|