tfy-web-components 0.0.45 → 0.0.46
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/{CompositeItem-GNejxLcK.js → CompositeItem-ClTKQQ4f.js} +2 -2
- package/dist/{CompositeItem-GNejxLcK.js.map → CompositeItem-ClTKQQ4f.js.map} +1 -1
- package/dist/{CompositeRoot-7_u1HqDT.js → CompositeRoot-CR4V84Em.js} +6 -6
- package/dist/{CompositeRoot-7_u1HqDT.js.map → CompositeRoot-CR4V84Em.js.map} +1 -1
- package/dist/{DropdownMenu-Crlf-J4E.js → DropdownMenu-B_tIHJUl.js} +14 -14
- package/dist/{DropdownMenu-Crlf-J4E.js.map → DropdownMenu-B_tIHJUl.js.map} +1 -1
- package/dist/{Modal-DaHG8mjy.js → Modal-CJj8wP0E.js} +7 -7
- package/dist/{Modal-DaHG8mjy.js.map → Modal-CJj8wP0E.js.map} +1 -1
- package/dist/{Popover-A8IyEt2w.js → Popover-DOpJ7QW-.js} +5 -5
- package/dist/{Popover-A8IyEt2w.js.map → Popover-DOpJ7QW-.js.map} +1 -1
- package/dist/{PopoverPopup-teGm7D5T.js → PopoverPopup-Dd6Z5rv7.js} +8 -8
- package/dist/{PopoverPopup-teGm7D5T.js.map → PopoverPopup-Dd6Z5rv7.js.map} +1 -1
- package/dist/{PrehydrationScript-B3u_PP2W.js → PrehydrationScript-BfRb7l5u.js} +2 -2
- package/dist/{PrehydrationScript-B3u_PP2W.js.map → PrehydrationScript-BfRb7l5u.js.map} +1 -1
- package/dist/{Select-BtX40h2K.js → Select-OlnvlAXg.js} +14 -14
- package/dist/{Select-BtX40h2K.js.map → Select-OlnvlAXg.js.map} +1 -1
- package/dist/components/atoms/Accordion.d.ts +11 -4
- package/dist/components/atoms/Accordion.es.js +108 -52
- package/dist/components/atoms/Accordion.es.js.map +1 -1
- package/dist/components/atoms/Combobox.es.js +12 -12
- package/dist/components/atoms/ContextMenu.es.js +6 -6
- package/dist/components/atoms/DropdownMenu.es.js +1 -1
- package/dist/components/atoms/Modal.es.js +1 -1
- package/dist/components/atoms/Popover.es.js +1 -1
- package/dist/components/atoms/Select.es.js +2 -2
- package/dist/components/atoms/Switch.es.js +4 -4
- package/dist/components/atoms/TabButton.es.js +8 -8
- package/dist/components/atoms/Tooltip.es.js +7 -7
- package/dist/components/molecules/Alert.es.js +1 -1
- package/dist/components/molecules/CustomDrawer.es.js +1 -1
- package/dist/components/molecules/Dialog.es.js +1 -1
- package/dist/components/molecules/ImagesPreview.es.js +1 -1
- package/dist/components/molecules/Pagination.es.js +18 -23
- package/dist/components/molecules/Pagination.es.js.map +1 -1
- package/dist/{composite-IA--dSel.js → composite-CH__oBQH.js} +2 -2
- package/dist/{composite-IA--dSel.js.map → composite-CH__oBQH.js.map} +1 -1
- package/dist/{composite-DnShFmi7.js → composite-Dzn8P1fl.js} +11 -11
- package/dist/{composite-DnShFmi7.js.map → composite-Dzn8P1fl.js.map} +1 -1
- package/dist/{constants-BaUKmVF_.js → constants-BzjgA7aT.js} +2 -2
- package/dist/{constants-BaUKmVF_.js.map → constants-BzjgA7aT.js.map} +1 -1
- package/dist/{element-B1vbc-LG.js → element-BI1c88Lp.js} +3 -3
- package/dist/{element-B1vbc-LG.js.map → element-BI1c88Lp.js.map} +1 -1
- package/dist/index.es.js +3 -3
- package/dist/{isElementDisabled-lq1fKien.js → isElementDisabled-CcmHYLra.js} +2 -2
- package/dist/{isElementDisabled-lq1fKien.js.map → isElementDisabled-CcmHYLra.js.map} +1 -1
- package/dist/new-components/atoms/Checkbox.es.js +4 -4
- package/dist/new-components/atoms/Popover.es.js +2 -2
- package/dist/new-components/atoms/Radio.es.js +8 -8
- package/dist/new-components/atoms/SegmentedControl.es.js +4 -4
- package/dist/new-components/atoms/Slider.es.js +6 -6
- package/dist/new-components/atoms/Toast.d.ts +1 -2
- package/dist/new-components/atoms/Toast.es.js +70 -98
- package/dist/new-components/atoms/Toast.es.js.map +1 -1
- package/dist/new-components/atoms/Toggletip.es.js +2 -2
- package/dist/style.css +1 -1
- package/dist/theme.css +1 -2
- package/dist/{useAriaLabelledBy-CP4wKTYs.js → useAriaLabelledBy-C_Zzl94S.js} +2 -2
- package/dist/{useAriaLabelledBy-CP4wKTYs.js.map → useAriaLabelledBy-C_Zzl94S.js.map} +1 -1
- package/dist/{useBaseUiId-CYT1vFMG.js → useBaseUiId-DCE1GVlg.js} +6 -6
- package/dist/{useBaseUiId-CYT1vFMG.js.map → useBaseUiId-DCE1GVlg.js.map} +1 -1
- package/dist/{useButton-BlHadUfM.js → useButton-CtXDdeoI.js} +2 -2
- package/dist/{useButton-BlHadUfM.js.map → useButton-CtXDdeoI.js.map} +1 -1
- package/dist/{useFocus-C__7iwl1.js → useFocus-BGyXJhul.js} +6 -6
- package/dist/{useFocus-C__7iwl1.js.map → useFocus-BGyXJhul.js.map} +1 -1
- package/dist/{usePopupHandleStore-C_Vw7xcw.js → usePopupHandleStore-9hGUXtn5.js} +30 -30
- package/dist/{usePopupHandleStore-C_Vw7xcw.js.map → usePopupHandleStore-9hGUXtn5.js.map} +1 -1
- package/dist/{usePositioner-BmYVsMO_.js → usePositioner-CAWMEP8L.js} +6 -6
- package/dist/{usePositioner-BmYVsMO_.js.map → usePositioner-CAWMEP8L.js.map} +1 -1
- package/dist/{useScrollLock-By-42HSc.js → useScrollLock-QpeWQmdB.js} +6 -6
- package/dist/{useScrollLock-By-42HSc.js.map → useScrollLock-QpeWQmdB.js.map} +1 -1
- package/dist/{useSetFieldFocused-CcdG6FNp.js → useSetFieldFocused-BO2Y66f_.js} +2 -2
- package/dist/{useSetFieldFocused-CcdG6FNp.js.map → useSetFieldFocused-BO2Y66f_.js.map} +1 -1
- package/dist/{useTriggerFocusGuards-CXAhW8P6.js → useTriggerFocusGuards-Ss68N7Fe.js} +5 -5
- package/dist/{useTriggerFocusGuards-CXAhW8P6.js.map → useTriggerFocusGuards-Ss68N7Fe.js.map} +1 -1
- package/dist/utilities.css +38 -0
- package/package.json +2 -1
|
@@ -2,7 +2,7 @@ import React from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { Accordion as AccordionPrimitive } from '@base-ui/react/accordion';
|
|
4
4
|
declare const accordionItemsVariants: (props?: ({
|
|
5
|
-
variant?: "default" | "bordered" | null | undefined;
|
|
5
|
+
variant?: "default" | "card" | "bordered" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type AccordionProps = Omit<AccordionPrimitive.Root.Props, 'children'> & VariantProps<typeof accordionItemsVariants> & {
|
|
8
8
|
children?: React.ReactNode;
|
|
@@ -12,13 +12,19 @@ export type AccordionProps = Omit<AccordionPrimitive.Root.Props, 'children'> & V
|
|
|
12
12
|
declare function Accordion({ className, children, variant, type, typeHint, multiple, ...props }: AccordionProps): React.JSX.Element;
|
|
13
13
|
export type AccordionItemProps = AccordionPrimitive.Item.Props & {
|
|
14
14
|
divider?: boolean;
|
|
15
|
+
actions?: React.ReactNode;
|
|
16
|
+
focused?: boolean;
|
|
15
17
|
};
|
|
16
|
-
declare function AccordionItem({ className, divider, ...props }: AccordionItemProps): React.JSX.Element;
|
|
18
|
+
declare function AccordionItem({ className, children, divider, actions, focused, ...props }: AccordionItemProps): React.JSX.Element;
|
|
17
19
|
export type AccordionTriggerProps = AccordionPrimitive.Trigger.Props & {
|
|
18
20
|
leadingIcon?: React.ReactNode;
|
|
19
21
|
trailing?: React.ReactNode;
|
|
22
|
+
actions?: React.ReactNode;
|
|
23
|
+
actionsToLeft?: boolean;
|
|
24
|
+
hideChevron?: boolean;
|
|
25
|
+
chevronPosition?: 'left' | 'right';
|
|
20
26
|
};
|
|
21
|
-
declare function AccordionTrigger({ className, children, leadingIcon, trailing, ...props }: AccordionTriggerProps): React.JSX.Element;
|
|
27
|
+
declare function AccordionTrigger({ className, children, leadingIcon, trailing, actions, actionsToLeft, hideChevron, chevronPosition, ...props }: AccordionTriggerProps): React.JSX.Element;
|
|
22
28
|
declare function AccordionContent({ className, children, ...props }: AccordionPrimitive.Panel.Props): React.JSX.Element;
|
|
23
29
|
/**
|
|
24
30
|
* atoms/Accordion — thin adapter over Base UI accordion.
|
|
@@ -30,8 +36,9 @@ export interface CustomizedAccordionsProps {
|
|
|
30
36
|
btn: React.ReactNode;
|
|
31
37
|
id: string;
|
|
32
38
|
discription?: string;
|
|
39
|
+
chevronPosition?: AccordionTriggerProps['chevronPosition'];
|
|
33
40
|
/** Tools shown on the right when expanded */
|
|
34
41
|
tools?: React.ReactNode;
|
|
35
42
|
className?: string;
|
|
36
43
|
}
|
|
37
|
-
export default function CustomizedAccordions({ children, btn, id, discription, tools, className, }: CustomizedAccordionsProps): React.JSX.Element;
|
|
44
|
+
export default function CustomizedAccordions({ children, btn, id, discription, chevronPosition, tools, className, }: CustomizedAccordionsProps): React.JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
1
|
+
import { jsx, jsxs, Fragment } from "react/jsx-runtime";
|
|
2
2
|
import * as React from "react";
|
|
3
|
-
import { useState } from "react";
|
|
3
|
+
import { createContext, useState, useContext } from "react";
|
|
4
4
|
import { c as cva } from "../../index-DSVg79g-.js";
|
|
5
5
|
import IconProvider from "./IconProvider.es.js";
|
|
6
6
|
import { c as classNames } from "../../classNames-B1XpQHle.js";
|
|
@@ -10,9 +10,9 @@ import { C as CompositeList, u as useCompositeListItem } from "../../useComposit
|
|
|
10
10
|
import { u as useValueAsRef, a as addEventListener } from "../../addEventListener-D-i9O6BG.js";
|
|
11
11
|
import { A as AnimationFrame } from "../../useAnimationFrame-DqvuRtgK.js";
|
|
12
12
|
import { T as Timeout } from "../../useTimeout-D1vYJgq4.js";
|
|
13
|
-
import { u as useBaseUiId, c as createChangeEventDetails, t as triggerPress, b as getWindow, n as none } from "../../useBaseUiId-
|
|
13
|
+
import { u as useBaseUiId, c as createChangeEventDetails, t as triggerPress, b as getWindow, n as none } from "../../useBaseUiId-DCE1GVlg.js";
|
|
14
14
|
import { u as useTransitionStatus, s as startingStyle$1, t as transitionStatusMapping, b as useAnimationsFinished, a as useOpenChangeComplete } from "../../useTransitionStatus-CHrs3i5F.js";
|
|
15
|
-
import { a as useButton } from "../../useButton-
|
|
15
|
+
import { a as useButton } from "../../useButton-CtXDdeoI.js";
|
|
16
16
|
const AccordionRootContext = /* @__PURE__ */ React.createContext(void 0);
|
|
17
17
|
if (process.env.NODE_ENV !== "production") AccordionRootContext.displayName = "AccordionRootContext";
|
|
18
18
|
function useAccordionRootContext() {
|
|
@@ -786,13 +786,15 @@ const accordionItemsVariants = cva("flex flex-col", {
|
|
|
786
786
|
variants: {
|
|
787
787
|
variant: {
|
|
788
788
|
default: "",
|
|
789
|
-
bordered: "rounded-container border border-border-subtle bg-background-raised p-space-4"
|
|
789
|
+
bordered: "rounded-container border border-border-subtle bg-background-raised p-space-4",
|
|
790
|
+
card: "gap-space-8"
|
|
790
791
|
}
|
|
791
792
|
},
|
|
792
793
|
defaultVariants: {
|
|
793
794
|
variant: "default"
|
|
794
795
|
}
|
|
795
796
|
});
|
|
797
|
+
const AccordionVariantContext = createContext("default");
|
|
796
798
|
function Accordion({
|
|
797
799
|
className,
|
|
798
800
|
children,
|
|
@@ -803,8 +805,9 @@ function Accordion({
|
|
|
803
805
|
...props
|
|
804
806
|
}) {
|
|
805
807
|
const isMultiple = multiple ?? type === "multiple";
|
|
808
|
+
const resolvedVariant = variant ?? "default";
|
|
806
809
|
const hint = typeHint === true ? isMultiple ? "Items stay open until you close them." : "Opening an item closes the others." : typeHint;
|
|
807
|
-
return /* @__PURE__ */ jsxs(
|
|
810
|
+
return /* @__PURE__ */ jsx(AccordionVariantContext.Provider, { value: resolvedVariant, children: /* @__PURE__ */ jsxs(
|
|
808
811
|
AccordionRoot,
|
|
809
812
|
{
|
|
810
813
|
"data-slot": "accordion",
|
|
@@ -812,69 +815,124 @@ function Accordion({
|
|
|
812
815
|
multiple: isMultiple,
|
|
813
816
|
...props,
|
|
814
817
|
children: [
|
|
815
|
-
/* @__PURE__ */ jsx(
|
|
818
|
+
/* @__PURE__ */ jsx(
|
|
819
|
+
"div",
|
|
820
|
+
{
|
|
821
|
+
"data-slot": "accordion-items",
|
|
822
|
+
"data-variant": resolvedVariant,
|
|
823
|
+
className: accordionItemsVariants({ variant: resolvedVariant }),
|
|
824
|
+
children
|
|
825
|
+
}
|
|
826
|
+
),
|
|
816
827
|
hint ? /* @__PURE__ */ jsx("p", { "data-slot": "accordion-hint", className: "text-body-sm text-text-secondary", children: hint }) : null
|
|
817
828
|
]
|
|
818
829
|
}
|
|
819
|
-
);
|
|
830
|
+
) });
|
|
820
831
|
}
|
|
821
|
-
function AccordionItem2({
|
|
832
|
+
function AccordionItem2({
|
|
833
|
+
className,
|
|
834
|
+
children,
|
|
835
|
+
divider = false,
|
|
836
|
+
actions,
|
|
837
|
+
focused = false,
|
|
838
|
+
...props
|
|
839
|
+
}) {
|
|
840
|
+
const variant = useContext(AccordionVariantContext);
|
|
841
|
+
const isCard = variant === "card";
|
|
822
842
|
return /* @__PURE__ */ jsx(
|
|
823
843
|
AccordionItem$1,
|
|
824
844
|
{
|
|
825
845
|
"data-slot": "accordion-item",
|
|
826
846
|
className: classNames(
|
|
827
|
-
"not-last:border-b not-last:border-border-subtle",
|
|
828
|
-
divider && "border-b border-border-subtle",
|
|
847
|
+
isCard ? "flex items-start gap-space-8" : "not-last:border-b not-last:border-border-subtle",
|
|
848
|
+
!isCard && divider && "border-b border-border-subtle",
|
|
829
849
|
className
|
|
830
850
|
),
|
|
831
|
-
...props
|
|
851
|
+
...props,
|
|
852
|
+
children: isCard ? /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
853
|
+
/* @__PURE__ */ jsx(
|
|
854
|
+
"div",
|
|
855
|
+
{
|
|
856
|
+
"data-slot": "accordion-card",
|
|
857
|
+
"data-focused": focused ? "true" : void 0,
|
|
858
|
+
className: "relative min-w-0 flex-1 rounded-container bg-background-raised after:pointer-events-none after:absolute after:inset-0 after:rounded-container after:border after:border-border-subtle after:content-[''] data-[focused=true]:outline-2 data-[focused=true]:outline-offset-2 data-[focused=true]:outline-border-focus has-[[data-slot=accordion-trigger]:focus-visible]:outline-2 has-[[data-slot=accordion-trigger]:focus-visible]:outline-offset-2 has-[[data-slot=accordion-trigger]:focus-visible]:outline-border-focus",
|
|
859
|
+
children
|
|
860
|
+
}
|
|
861
|
+
),
|
|
862
|
+
actions ? /* @__PURE__ */ jsx("span", { "data-slot": "accordion-item-actions", className: "inline-flex shrink-0 items-start", children: actions }) : null
|
|
863
|
+
] }) : children
|
|
832
864
|
}
|
|
833
865
|
);
|
|
834
866
|
}
|
|
835
|
-
function AccordionTrigger2({
|
|
836
|
-
|
|
837
|
-
|
|
867
|
+
function AccordionTrigger2({
|
|
868
|
+
className,
|
|
869
|
+
children,
|
|
870
|
+
leadingIcon,
|
|
871
|
+
trailing,
|
|
872
|
+
actions,
|
|
873
|
+
actionsToLeft = false,
|
|
874
|
+
hideChevron = false,
|
|
875
|
+
chevronPosition = "right",
|
|
876
|
+
...props
|
|
877
|
+
}) {
|
|
878
|
+
const variant = useContext(AccordionVariantContext);
|
|
879
|
+
const isCard = variant === "card";
|
|
880
|
+
const actionsSlot = actions ? /* @__PURE__ */ jsx("span", { "data-slot": "accordion-actions", className: "inline-flex shrink-0 items-center gap-space-4", children: actions }) : null;
|
|
881
|
+
const chevron = hideChevron ? null : /* @__PURE__ */ jsx(
|
|
882
|
+
"span",
|
|
838
883
|
{
|
|
839
|
-
"data-slot": "accordion-
|
|
884
|
+
"data-slot": "accordion-chevron",
|
|
885
|
+
"data-position": chevronPosition,
|
|
886
|
+
"aria-hidden": true,
|
|
840
887
|
className: classNames(
|
|
841
|
-
"
|
|
842
|
-
|
|
888
|
+
"inline-flex size-4 shrink-0 items-center justify-center text-icon-secondary transition-transform duration-150 motion-reduce:transition-none",
|
|
889
|
+
chevronPosition === "left" ? "-rotate-90 group-data-[panel-open]:rotate-0" : "group-data-[panel-open]:rotate-180"
|
|
843
890
|
),
|
|
844
|
-
|
|
845
|
-
children: [
|
|
846
|
-
leadingIcon ? /* @__PURE__ */ jsx(
|
|
847
|
-
"span",
|
|
848
|
-
{
|
|
849
|
-
"data-slot": "accordion-leading-icon",
|
|
850
|
-
"aria-hidden": true,
|
|
851
|
-
className: "inline-flex size-4 shrink-0 items-center justify-center text-icon-secondary",
|
|
852
|
-
children: leadingIcon
|
|
853
|
-
}
|
|
854
|
-
) : null,
|
|
855
|
-
/* @__PURE__ */ jsx("span", { "data-slot": "accordion-title", className: "min-w-0 flex-1", children }),
|
|
856
|
-
trailing ? /* @__PURE__ */ jsx("span", { "data-slot": "accordion-trailing", className: "inline-flex shrink-0 items-center", children: trailing }) : null,
|
|
857
|
-
/* @__PURE__ */ jsx(
|
|
858
|
-
"span",
|
|
859
|
-
{
|
|
860
|
-
"data-slot": "accordion-chevron",
|
|
861
|
-
"aria-hidden": true,
|
|
862
|
-
className: "inline-flex size-4 shrink-0 items-center justify-center text-icon-secondary transition-transform duration-150 group-data-[panel-open]:rotate-180 motion-reduce:transition-none",
|
|
863
|
-
children: /* @__PURE__ */ jsx(IconProvider, { icon: "chevron-down", size: "16" })
|
|
864
|
-
}
|
|
865
|
-
)
|
|
866
|
-
]
|
|
891
|
+
children: /* @__PURE__ */ jsx(IconProvider, { icon: "chevron-down", size: "16" })
|
|
867
892
|
}
|
|
868
|
-
)
|
|
893
|
+
);
|
|
894
|
+
return /* @__PURE__ */ jsxs(AccordionHeader, { "data-slot": "accordion-header", className: "flex w-full items-center", children: [
|
|
895
|
+
actionsToLeft ? actionsSlot : null,
|
|
896
|
+
/* @__PURE__ */ jsxs(
|
|
897
|
+
AccordionTrigger$1,
|
|
898
|
+
{
|
|
899
|
+
"data-slot": "accordion-trigger",
|
|
900
|
+
className: classNames(
|
|
901
|
+
"group flex w-full cursor-pointer items-center gap-space-8 px-space-12 text-left text-label-md text-text-primary transition-colors data-disabled:pointer-events-none data-disabled:opacity-50",
|
|
902
|
+
isCard ? "min-h-8 rounded-container bg-background-page py-space-8 focus-visible:outline-none data-[panel-open]:rounded-b-none data-[panel-open]:bg-background-input" : "focus-ring min-h-10 rounded-control py-space-10",
|
|
903
|
+
className
|
|
904
|
+
),
|
|
905
|
+
...props,
|
|
906
|
+
children: [
|
|
907
|
+
chevronPosition === "left" ? chevron : null,
|
|
908
|
+
leadingIcon ? /* @__PURE__ */ jsx(
|
|
909
|
+
"span",
|
|
910
|
+
{
|
|
911
|
+
"data-slot": "accordion-leading-icon",
|
|
912
|
+
"aria-hidden": true,
|
|
913
|
+
className: "inline-flex size-4 shrink-0 items-center justify-center text-icon-secondary",
|
|
914
|
+
children: leadingIcon
|
|
915
|
+
}
|
|
916
|
+
) : null,
|
|
917
|
+
/* @__PURE__ */ jsx("span", { "data-slot": "accordion-title", className: "min-w-0 flex-1 truncate", children }),
|
|
918
|
+
trailing ? /* @__PURE__ */ jsx("span", { "data-slot": "accordion-trailing", className: "inline-flex shrink-0 items-center", children: trailing }) : null,
|
|
919
|
+
chevronPosition === "right" ? chevron : null
|
|
920
|
+
]
|
|
921
|
+
}
|
|
922
|
+
),
|
|
923
|
+
actionsToLeft ? null : actionsSlot
|
|
924
|
+
] });
|
|
869
925
|
}
|
|
870
926
|
function AccordionContent({ className, children, ...props }) {
|
|
927
|
+
const variant = useContext(AccordionVariantContext);
|
|
928
|
+
const isCard = variant === "card";
|
|
871
929
|
return /* @__PURE__ */ jsx(
|
|
872
930
|
AccordionPanel,
|
|
873
931
|
{
|
|
874
932
|
"data-slot": "accordion-content",
|
|
875
|
-
className: "h-
|
|
933
|
+
className: "h-(--accordion-panel-height) overflow-hidden text-body-md text-text-secondary transition-[height] duration-150 ease-out data-ending-style:h-0 data-starting-style:h-0 motion-reduce:transition-none",
|
|
876
934
|
...props,
|
|
877
|
-
children: /* @__PURE__ */ jsx("div", { className: classNames("px-space-12 pb-space-12", className), children })
|
|
935
|
+
children: /* @__PURE__ */ jsx("div", { className: classNames("px-space-12 pb-space-12", isCard && "border-t border-border-subtle pt-space-8", className), children })
|
|
878
936
|
}
|
|
879
937
|
);
|
|
880
938
|
}
|
|
@@ -883,6 +941,7 @@ function CustomizedAccordions({
|
|
|
883
941
|
btn,
|
|
884
942
|
id,
|
|
885
943
|
discription,
|
|
944
|
+
chevronPosition,
|
|
886
945
|
tools,
|
|
887
946
|
className
|
|
888
947
|
}) {
|
|
@@ -895,14 +954,11 @@ function CustomizedAccordions({
|
|
|
895
954
|
variant: "bordered",
|
|
896
955
|
className: classNames("mb-3", className),
|
|
897
956
|
children: /* @__PURE__ */ jsxs(AccordionItem2, { value: id, children: [
|
|
898
|
-
/* @__PURE__ */ jsx(
|
|
899
|
-
/* @__PURE__ */
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
expanded && tools ? /* @__PURE__ */ jsx("div", { className: "flex items-center gap-space-8", onClick: (event) => event.stopPropagation(), children: tools }) : null
|
|
904
|
-
] }) }) }),
|
|
905
|
-
/* @__PURE__ */ jsx(AccordionContent, { children })
|
|
957
|
+
/* @__PURE__ */ jsx(AccordionTrigger2, { actions: expanded ? tools : void 0, chevronPosition, children: /* @__PURE__ */ jsxs("span", { className: "flex flex-col", children: [
|
|
958
|
+
/* @__PURE__ */ jsx("span", { children: btn }),
|
|
959
|
+
discription ? /* @__PURE__ */ jsx("span", { className: "text-body-sm text-text-secondary", children: discription }) : null
|
|
960
|
+
] }) }),
|
|
961
|
+
/* @__PURE__ */ jsx(AccordionContent, { keepMounted: true, children })
|
|
906
962
|
] })
|
|
907
963
|
}
|
|
908
964
|
);
|