@ngrok/mantle 0.88.0 → 0.90.0
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/accordion.d.ts +10 -9
- package/dist/accordion.js +1 -1
- package/dist/agent.json +1530 -1
- package/dist/{alert-DCVfviBx.d.ts → alert-BzPDUaU7.d.ts} +16 -15
- package/dist/alert-DO00UiQe.js +1 -0
- package/dist/alert-ZaUBtgno.js +1 -0
- package/dist/alert-center.d.ts +7 -7
- package/dist/alert-center.js +1 -1
- package/dist/alert-dialog.d.ts +17 -16
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +1 -1
- package/dist/alert.js +1 -1
- package/dist/anchor-CgcbWEUs.js +1 -0
- package/dist/anchor.js +1 -1
- package/dist/app-layout.d.ts +1183 -45
- package/dist/app-layout.js +1 -1
- package/dist/area-chart.d.ts +41 -18
- package/dist/area-chart.js +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge.d.ts +3 -2
- package/dist/badge.js +1 -1
- package/dist/bar-chart.d.ts +37 -13
- package/dist/bar-chart.js +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/browser-only.js +1 -1
- package/dist/button-69InNC_m.js +1 -0
- package/dist/button-BMfUxs_j.js +1 -0
- package/dist/{button-DO53OA70.d.ts → button-CHoYpOzx.d.ts} +5 -4
- package/dist/{button-B52_vczK.js → button-D8rr-1AB.js} +1 -1
- package/dist/{button-crUf0hbR.d.ts → button-DL7V4bzW.d.ts} +5 -4
- package/dist/button-b2HKEIE2.js +1 -0
- package/dist/{button-B5i9n7Qp.d.ts → button-mzUR1U0Y.d.ts} +5 -4
- package/dist/button.d.ts +3 -3
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +3 -2
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +15 -7
- package/dist/card.js +1 -1
- package/dist/centered-layout.js +1 -1
- package/dist/{chart-DgaWVBqi.d.ts → chart-23KQ1ZNO.d.ts} +128 -62
- package/dist/chart-BRkJfptA.js +2 -0
- package/dist/checkbox-C3N2afhB.js +1 -0
- package/dist/checkbox.d.ts +3 -2
- package/dist/checkbox.js +1 -1
- package/dist/{choice-PESu-9s8.d.ts → choice-BCiyqLgO.d.ts} +12 -11
- package/dist/choice-DQmecLfy.js +1 -0
- package/dist/choice.d.ts +1 -1
- package/dist/choice.js +1 -1
- package/dist/code-block-4Esx_gV-.js +12 -0
- package/dist/code-block.d.ts +17 -16
- package/dist/code-block.js +6 -6
- package/dist/code-block_highlight-utils.js +1 -1
- package/dist/code.d.ts +2 -1
- package/dist/code.js +1 -1
- package/dist/combobox.d.ts +15 -14
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +13 -13
- package/dist/command.js +1 -1
- package/dist/cx-CK7o_rVv.js +1 -0
- package/dist/cx.js +1 -1
- package/dist/data-table.d.ts +32 -31
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +6 -6
- package/dist/description-list.js +1 -1
- package/dist/dialog-CaGJD02w.js +1 -0
- package/dist/{dialog-DXpqpdJj.d.ts → dialog-DQdeqvq-.d.ts} +28 -15
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +1 -1
- package/dist/{dropdown-menu-BloQKE_y.d.ts → dropdown-menu-Cef0Cz2B.d.ts} +17 -17
- package/dist/dropdown-menu-CutWQ0bl.js +1 -0
- package/dist/dropdown-menu-DMA8dGxZ.d.ts +1 -0
- package/dist/dropdown-menu.d.ts +2 -2
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +14 -6
- package/dist/empty.js +1 -1
- package/dist/field.d.ts +16 -15
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +4 -3
- package/dist/flag.js +1 -1
- package/dist/hooks.d.ts +251 -1
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +5 -4
- package/dist/hover-card.js +1 -1
- package/dist/icon-BudQMD2S.js +1 -0
- package/dist/icon-kK0c-POG.js +1 -0
- package/dist/{icon-w0HUe7tr.d.ts → icon-r2NvfTWW.d.ts} +3 -2
- package/dist/{icon-BmJ57Tgh.d.ts → icon-ucVgZeXn.d.ts} +3 -2
- package/dist/icon.d.ts +2 -2
- package/dist/icon.js +1 -1
- package/dist/icons-CAtjMNti.js +1 -0
- package/dist/{icons-Bu-2boul.js → icons-CH3tD_wq.js} +1 -1
- package/dist/icons-CSwTVV2m.js +1 -0
- package/dist/icons.js +1 -1
- package/dist/in-view-Dxv_GrUU.js +1 -0
- package/dist/input-D_DjD9lT.js +1 -0
- package/dist/{input-DpnC3Xgj.d.ts → input-bbB1tC0h.d.ts} +3 -2
- package/dist/input.d.ts +5 -4
- package/dist/input.js +1 -1
- package/dist/kbd-CLHsJ99p.js +1 -0
- package/dist/kbd.d.ts +2 -1
- package/dist/kbd.js +1 -1
- package/dist/label-5T8i7I4X.js +1 -0
- package/dist/{label-Bnfe9YJ6.d.ts → label-C-KbNls8.d.ts} +3 -2
- package/dist/label.d.ts +1 -1
- package/dist/label.js +1 -1
- package/dist/{layer-container-R7aux3n8.js → layer-container-DLf-6eBz.js} +1 -1
- package/dist/layer-container.js +1 -1
- package/dist/line-chart.d.ts +40 -15
- package/dist/line-chart.js +1 -1
- package/dist/list-DOVZoz9t.js +1 -0
- package/dist/list.d.ts +3 -2
- package/dist/list.js +1 -1
- package/dist/live-region-DQ1QLv3L.js +1 -0
- package/dist/live-region.d.ts +3 -2
- package/dist/live-region.js +1 -1
- package/dist/llms.txt +118 -2
- package/dist/{main-Dv2zuT_b.js → main-CC1L9IsH.js} +1 -1
- package/dist/main.js +1 -1
- package/dist/mantle.css +12 -0
- package/dist/media-object.js +1 -1
- package/dist/migrations/0002-data-table-action-header.yml +526 -0
- package/dist/migrations/0003-dialog-footer-dom-order.yml +271 -0
- package/dist/migrations/0004-priority-to-intent.yml +1728 -0
- package/dist/migrations/0005-field-item-owns-control-id.yml +234 -0
- package/dist/migrations/0006-data-table-tanstack-v9.yml +423 -0
- package/dist/migrations/0008-tabs-separator.yml +1212 -0
- package/dist/migrations/0009-chart-root-mode.yml +871 -0
- package/dist/multi-select.d.ts +23 -22
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +9 -8
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +9 -8
- package/dist/pagination.js +1 -1
- package/dist/{popover-Cco1nw8I.d.ts → popover-Dvls7-j4.d.ts} +5 -4
- package/dist/popover-oQDUvcZ2.js +1 -0
- package/dist/popover.d.ts +1 -1
- package/dist/popover.js +1 -1
- package/dist/primitive-AGoxSJBI.js +1 -0
- package/dist/progress.d.ts +9 -8
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +9 -8
- package/dist/qr-code.js +1 -1
- package/dist/radio-group.d.ts +19 -18
- package/dist/radio-group.js +1 -1
- package/dist/sandbar.d.ts +7 -7
- package/dist/sandbar.js +1 -1
- package/dist/{sandboxed-on-click-BLvvSqOP.js → sandboxed-on-click-C7pPu-2M.js} +1 -1
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/scatter-plot.d.ts +39 -14
- package/dist/scatter-plot.js +1 -1
- package/dist/select-DcL0-duV.js +1 -0
- package/dist/{select-BITJP7I5.d.ts → select-DlohFa54.d.ts} +3 -3
- package/dist/select.d.ts +1 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +16 -15
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-Bo4nY_3M.d.ts → separator-BWGjCIl7.d.ts} +11 -3
- package/dist/separator-DvPe27fH.js +1 -0
- package/dist/separator.d.ts +1 -1
- package/dist/separator.js +1 -1
- package/dist/sheet-H8zvhSuA.js +1 -0
- package/dist/sheet.d.ts +13 -12
- package/dist/sheet.js +1 -1
- package/dist/sidebar.d.ts +163 -102
- package/dist/sidebar.js +1 -1
- package/dist/skeleton-zfqoDAxT.js +1 -0
- package/dist/skeleton.d.ts +3 -2
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider.d.ts +3 -2
- package/dist/slider.js +1 -1
- package/dist/{slot-BsvE2ntj.js → slot-DdYN1L1C.js} +1 -1
- package/dist/{slot-DdgxmuI5.d.ts → slot-Q996Hqk9.d.ts} +1 -1
- package/dist/slot.d.ts +1 -1
- package/dist/slot.js +1 -1
- package/dist/split-button.d.ts +6 -5
- package/dist/split-button.js +1 -1
- package/dist/strata.d.ts +544 -0
- package/dist/strata.js +1 -0
- package/dist/switch.d.ts +3 -2
- package/dist/switch.js +1 -1
- package/dist/{table-DEI-qvSC.d.ts → table-BhzITa19.d.ts} +10 -9
- package/dist/table-DBbKqOVq.js +1 -0
- package/dist/table.d.ts +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +2 -2
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +3 -2
- package/dist/text-area.js +1 -1
- package/dist/theme-6Q65C1Rx.js +1 -0
- package/dist/theme-switcher.d.ts +3 -3
- package/dist/theme-switcher.js +1 -1
- package/dist/theme.js +1 -1
- package/dist/toast.d.ts +10 -9
- package/dist/toast.js +1 -1
- package/dist/{tooltip-nuUCoqq8.d.ts → tooltip-CngH7Kl6.d.ts} +7 -6
- package/dist/tooltip-NhYXqStK.js +1 -0
- package/dist/tooltip.d.ts +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/truncated-text.d.ts +138 -0
- package/dist/truncated-text.js +1 -0
- package/dist/types.js +1 -1
- package/dist/use-breakpoint--mo7kr9d.js +1 -0
- package/dist/use-is-hydrated-after-paint-r9Cl2mGp.js +1 -0
- package/dist/use-prefers-reduced-motion-DimzRx-M.js +1 -0
- package/dist/use-swipe-to-dismiss-Cj-AayFd.js +1 -0
- package/dist/utils.js +1 -1
- package/dist/visually-hidden.d.ts +2 -1
- package/dist/visually-hidden.js +1 -1
- package/dist/well.d.ts +10 -2
- package/dist/well.js +1 -1
- package/package.json +17 -15
- package/dist/alert-OP_-aGJD.js +0 -1
- package/dist/anchor-BnMhJYS4.js +0 -1
- package/dist/button-BFpCB99R.js +0 -1
- package/dist/button-Dij5vCQG.js +0 -1
- package/dist/button-pwkdtR3U.js +0 -1
- package/dist/chart-aZLMj4xx.js +0 -2
- package/dist/checkbox-DbJSqSNN.js +0 -1
- package/dist/choice-SRyLguqU.js +0 -1
- package/dist/code-block-BE3Q0iAo.js +0 -12
- package/dist/cx-0HCjnNv1.js +0 -1
- package/dist/dialog-HIdb5d3I.js +0 -1
- package/dist/dropdown-menu-BR_AQNMj.js +0 -1
- package/dist/dropdown-menu-Dlpb7600.d.ts +0 -1
- package/dist/icon-BT8FnkkJ.js +0 -1
- package/dist/icon-U24NfYv7.js +0 -1
- package/dist/icons-BQRcOU6J.js +0 -1
- package/dist/icons-C3rVfpx9.js +0 -1
- package/dist/in-view-T_AAYaaF.js +0 -1
- package/dist/input-yq0jLE4e.js +0 -1
- package/dist/kbd-CJ8hNZfS.js +0 -1
- package/dist/label-BAy0Mg59.js +0 -1
- package/dist/list-BleZ-43e.js +0 -1
- package/dist/live-region-B2vJRvPH.js +0 -1
- package/dist/popover-BJ5XNwzD.js +0 -1
- package/dist/primitive-w3wFk2La.js +0 -1
- package/dist/select-CUWLEeuf.js +0 -1
- package/dist/separator-D98be0gY.js +0 -1
- package/dist/sheet-B5x8EO9Y.js +0 -1
- package/dist/skeleton-bVDP8BzY.js +0 -1
- package/dist/table-D2jh52KA.js +0 -1
- package/dist/theme-C1kFFdIk.js +0 -1
- package/dist/tooltip-H03l7E4Y.js +0 -1
- package/dist/use-is-hydrated-after-paint-Drj0lNi4.js +0 -1
- package/dist/use-prefers-reduced-motion-Cj9tJ181.js +0 -1
- /package/dist/{types-D85fCNV3.js → css-properties-D85fCNV3.js} +0 -0
package/dist/accordion.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { n as WithAsChild } from "./as-child-D23mGo4f.js";
|
|
2
|
-
import {
|
|
2
|
+
import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
|
|
3
|
+
import { n as IconProps } from "./icon-ucVgZeXn.js";
|
|
3
4
|
import { ComponentProps } from "react";
|
|
4
5
|
//#region src/components/accordion/accordion.d.ts
|
|
5
6
|
/**
|
|
@@ -56,7 +57,7 @@ type AccordionMultipleProps = {
|
|
|
56
57
|
* accordion that keeps at most one section open at a time. Also accepts all
|
|
57
58
|
* standard `<div>` props (forwarded to the container) plus `asChild`.
|
|
58
59
|
*/
|
|
59
|
-
type AccordionRootProps = (AccordionSingleProps | AccordionMultipleProps) & Omit<ComponentProps<"div">, "defaultValue"> & WithAsChild;
|
|
60
|
+
type AccordionRootProps = (AccordionSingleProps | AccordionMultipleProps) & Omit<ComponentProps<"div">, "defaultValue"> & WithAsChild & WithDataSlot;
|
|
60
61
|
/**
|
|
61
62
|
* A vertically stacked set of disclosure sections. The root owns the open/closed
|
|
62
63
|
* state and passes it to its items.
|
|
@@ -117,10 +118,10 @@ declare const Root: (props: AccordionRootProps) => import("react").JSX.Element;
|
|
|
117
118
|
* </Accordion.Item>
|
|
118
119
|
* </Accordion.Root>
|
|
119
120
|
*/
|
|
120
|
-
declare const Item: ({ children, value, ref, ...props }: ComponentProps<"div"> & {
|
|
121
|
+
declare const Item: ({ "data-slot": dataSlot, children, value, ref, ...props }: ComponentProps<"div"> & {
|
|
121
122
|
/** The unique value identifying this item within its accordion. */
|
|
122
123
|
value: string;
|
|
123
|
-
}) => import("react").JSX.Element;
|
|
124
|
+
} & WithDataSlot) => import("react").JSX.Element;
|
|
124
125
|
/**
|
|
125
126
|
* The interactive header that toggles its section, rendered as a `<button>` with
|
|
126
127
|
* `aria-expanded` — the disclosure semantics a native `<summary>` carries, but
|
|
@@ -144,7 +145,7 @@ declare const Item: ({ children, value, ref, ...props }: ComponentProps<"div"> &
|
|
|
144
145
|
* </Accordion.Item>
|
|
145
146
|
* </Accordion.Root>
|
|
146
147
|
*/
|
|
147
|
-
declare const Trigger: ({ className, children, onClick, ref, ...props }: Omit<ComponentProps<"button">, "type">) => import("react").JSX.Element;
|
|
148
|
+
declare const Trigger: ({ "data-slot": dataSlot, className, children, onClick, ref, ...props }: Omit<ComponentProps<"button">, "type"> & WithDataSlot) => import("react").JSX.Element;
|
|
148
149
|
/**
|
|
149
150
|
* The icon that indicates the open/closed state of its {@link Trigger}. Defaults
|
|
150
151
|
* to a downward caret that rotates 180° when the section is open. Pass `svg` to
|
|
@@ -183,10 +184,10 @@ declare const Trigger: ({ className, children, onClick, ref, ...props }: Omit<Co
|
|
|
183
184
|
* </Accordion.Item>
|
|
184
185
|
* </Accordion.Root>
|
|
185
186
|
*/
|
|
186
|
-
declare const TriggerIcon: ({ className, svg, ...props }: Omit<IconProps, "svg"> & {
|
|
187
|
+
declare const TriggerIcon: ({ "data-slot": dataSlot, className, svg, ...props }: Omit<IconProps, "svg"> & {
|
|
187
188
|
/** The icon to render. Defaults to a downward caret that rotates open. */
|
|
188
189
|
svg?: IconProps["svg"];
|
|
189
|
-
}) => import("react").JSX.Element;
|
|
190
|
+
} & WithDataSlot) => import("react").JSX.Element;
|
|
190
191
|
/**
|
|
191
192
|
* The collapsible region of an {@link Item} — the zero-padding viewport that
|
|
192
193
|
* slides open and closed. Wrap its children in {@link Body} for the standard
|
|
@@ -216,7 +217,7 @@ declare const TriggerIcon: ({ className, svg, ...props }: Omit<IconProps, "svg">
|
|
|
216
217
|
* </Accordion.Item>
|
|
217
218
|
* </Accordion.Root>
|
|
218
219
|
*/
|
|
219
|
-
declare const Content: ({ className, children, ref, ...props }: Omit<ComponentProps<"div">, "id">) => import("react").JSX.Element;
|
|
220
|
+
declare const Content: ({ "data-slot": dataSlot, className, children, ref, ...props }: Omit<ComponentProps<"div">, "id"> & WithDataSlot) => import("react").JSX.Element;
|
|
220
221
|
/**
|
|
221
222
|
* The padded inner region of an {@link Item}'s {@link Content} — where the
|
|
222
223
|
* section's body content lives. Owns the body's padding so {@link Content} can
|
|
@@ -247,7 +248,7 @@ declare const Content: ({ className, children, ref, ...props }: Omit<ComponentPr
|
|
|
247
248
|
* </Accordion.Item>
|
|
248
249
|
* </Accordion.Root>
|
|
249
250
|
*/
|
|
250
|
-
declare const Body: ({ className, ref, ...props }: ComponentProps<"div">) => import("react").JSX.Element;
|
|
251
|
+
declare const Body: ({ "data-slot": dataSlot, className, ref, ...props }: ComponentProps<"div"> & WithDataSlot) => import("react").JSX.Element;
|
|
251
252
|
/**
|
|
252
253
|
* A vertically stacked set of disclosure sections styled after the shadcn /
|
|
253
254
|
* ngrok.com accordion.
|
package/dist/accordion.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./use-isomorphic-layout-effect-DdTRtMY-.js";import{n as t}from"./compose-refs-sFdxsL7k.js";import{t as n}from"./cx-
|
|
1
|
+
import{t as e}from"./use-isomorphic-layout-effect-DdTRtMY-.js";import{n as t}from"./compose-refs-sFdxsL7k.js";import{t as n}from"./cx-CK7o_rVv.js";import{t as r}from"./data-slot-EM6s2WEU.js";import{t as i}from"./icon-kK0c-POG.js";import{t as a}from"./slot-DdYN1L1C.js";import{c as o}from"react/compiler-runtime";import{CaretDownIcon as s}from"@phosphor-icons/react/CaretDown";import{createContext as c,useContext as l,useEffect as u,useId as d,useRef as f,useState as p}from"react";import m from"tiny-invariant";import{jsx as h}from"react/jsx-runtime";function g(e,t){return e.includes(t)}function _(e,t,n,r){let i=e.includes(t);return n?r===`single`?i&&e.length===1?e:[t]:i?e:[...e,t]:i?e.filter(e=>e!==t):e}function v(e){return e==null?[]:typeof e==`string`?e===``?[]:[e]:e}function y(e,t){e.type===`single`?e.onValueChange?.(t[0]??``):e.onValueChange?.([...t])}function b(){return typeof document<`u`&&document.body!=null&&`onbeforematch`in document.body}const x=c(null);function S(e){let t=l(x);return m(t,`\`${e}\` must be rendered within \`Accordion.Root\`.`),t}const C=c(null);function w(e){let t=l(C);return m(t,`\`${e}\` must be rendered within \`Accordion.Item\`.`),t}const T=t=>{let i=o(42),s,c,l,u,d,m,g,b,S;if(i[0]!==t){let{type:e,value:n,defaultValue:r,onValueChange:a,"data-slot":o,asChild:f,children:p,className:h,ref:_,...v}=t;b=e,S=n,d=r,u=o,s=f,c=p,l=h,g=_,m=v,i[0]=t,i[1]=s,i[2]=c,i[3]=l,i[4]=u,i[5]=d,i[6]=m,i[7]=g,i[8]=b,i[9]=S}else s=i[1],c=i[2],l=i[3],u=i[4],d=i[5],m=i[6],g=i[7],b=i[8],S=i[9];let C=b===void 0?`multiple`:b,w=S!=null,T;i[10]===d?T=i[11]:(T=()=>v(d),i[10]=d,i[11]=T);let[E,D]=p(T),O;i[12]!==E||i[13]!==w||i[14]!==S?(O=w?v(S):E,i[12]=E,i[13]=w,i[14]=S,i[15]=O):O=i[15];let k=O,A=f(t),j;i[16]===t?j=i[17]:(j=()=>{A.current=t},i[16]=t,i[17]=j),e(j);let M;i[18]!==w||i[19]!==k||i[20]!==C?(M=(e,t)=>{let n=_(k,e,t,C);n!==k&&(w||D(n),y(A.current,n))},i[18]=w,i[19]=k,i[20]=C,i[21]=M):M=i[21];let N=M,P;i[22]!==k||i[23]!==N||i[24]!==C?(P={type:C,openValues:k,setItemOpen:N},i[22]=k,i[23]=N,i[24]=C,i[25]=P):P=i[25];let F=P,I;i[26]===u?I=i[27]:(I=r(u,`accordion`),i[26]=u,i[27]=I);let L;i[28]===l?L=i[29]:(L=n(`w-full divide-y divide-separator`,l),i[28]=l,i[29]=L);let R;i[30]!==m||i[31]!==I||i[32]!==L?(R={...m,"data-slot":I,className:L},i[30]=m,i[31]=I,i[32]=L,i[33]=R):R=i[33];let z=R,B;i[34]!==s||i[35]!==c||i[36]!==z||i[37]!==g?(B=h(s?a:`div`,{ref:g,...z,children:c}),i[34]=s,i[35]=c,i[36]=z,i[37]=g,i[38]=B):B=i[38];let V;return i[39]!==F||i[40]!==B?(V=/* @__PURE__ */ h(x.Provider,{value:F,children:B}),i[39]=F,i[40]=B,i[41]=V):V=i[41],V},E=e=>{let t=o(27),n,i,a,s,c;t[0]===e?(n=t[1],i=t[2],a=t[3],s=t[4],c=t[5]):({"data-slot":i,children:n,value:c,ref:s,...a}=e,t[0]=e,t[1]=n,t[2]=i,t[3]=a,t[4]=s,t[5]=c);let{openValues:l,setItemOpen:u}=S(`Accordion.Item`),f;t[6]!==l||t[7]!==c?(f=g(l,c),t[6]=l,t[7]=c,t[8]=f):f=t[8];let p=f,m=d(),_;t[9]!==u||t[10]!==c?(_=e=>{u(c,e)},t[9]=u,t[10]=c,t[11]=_):_=t[11];let v=_,y;t[12]!==m||t[13]!==p||t[14]!==v?(y={open:p,setOpen:v,contentId:m},t[12]=m,t[13]=p,t[14]=v,t[15]=y):y=t[15];let b=y,x;t[16]===i?x=t[17]:(x=r(i,`accordion-item`),t[16]=i,t[17]=x);let w=p?`open`:`closed`,T;t[18]!==n||t[19]!==a||t[20]!==s||t[21]!==x||t[22]!==w?(T=/* @__PURE__ */ h(`div`,{ref:s,...a,role:`group`,"data-slot":x,"data-state":w,children:n}),t[18]=n,t[19]=a,t[20]=s,t[21]=x,t[22]=w,t[23]=T):T=t[23];let E;return t[24]!==b||t[25]!==T?(E=/* @__PURE__ */ h(C.Provider,{value:b,children:T}),t[24]=b,t[25]=T,t[26]=E):E=t[26],E},D=e=>{let t=o(25),i,a,s,c,l,u;t[0]===e?(i=t[1],a=t[2],s=t[3],c=t[4],l=t[5],u=t[6]):({"data-slot":s,className:a,children:i,onClick:c,ref:u,...l}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=s,t[4]=c,t[5]=l,t[6]=u);let{open:d,setOpen:f,contentId:p}=w(`Accordion.Trigger`),m;t[7]===s?m=t[8]:(m=r(s,`accordion-trigger`),t[7]=s,t[8]=m);let g=d?`open`:`closed`,_;t[9]===a?_=t[10]:(_=n(`group flex w-full cursor-pointer items-center justify-between gap-4 py-4 text-left font-medium outline-none`,`-mx-2 rounded-md px-2`,`transition-[padding] duration-200 ease-out data-state-open:pb-2 motion-reduce:transition-none`,`focus:outline-hidden focus-visible:ring-4 focus-visible:ring-focus-accent`,a),t[9]=a,t[10]=_);let v;t[11]!==c||t[12]!==d||t[13]!==f?(v=e=>{c?.(e),f(!d)},t[11]=c,t[12]=d,t[13]=f,t[14]=v):v=t[14];let y;return t[15]!==i||t[16]!==p||t[17]!==d||t[18]!==l||t[19]!==u||t[20]!==m||t[21]!==g||t[22]!==_||t[23]!==v?(y=/* @__PURE__ */ h(`button`,{ref:u,type:`button`,...l,"data-slot":m,"data-state":g,"aria-expanded":d,"aria-controls":p,className:_,onClick:v,children:i}),t[15]=i,t[16]=p,t[17]=d,t[18]=l,t[19]=u,t[20]=m,t[21]=g,t[22]=_,t[23]=v,t[24]=y):y=t[24],y},O=/* @__PURE__ */ h(s,{weight:`bold`}),k={Root:T,Item:E,Trigger:D,TriggerIcon:e=>{let t=o(14),a,s,c,l;t[0]===e?(a=t[1],s=t[2],c=t[3],l=t[4]):({"data-slot":s,className:a,svg:l,...c}=e,t[0]=e,t[1]=a,t[2]=s,t[3]=c,t[4]=l);let u=l===void 0?O:l,d;t[5]===s?d=t[6]:(d=r(s,`accordion-trigger-icon`),t[5]=s,t[6]=d);let f;t[7]===a?f=t[8]:(f=n(`size-4 shrink-0 text-muted transition-transform duration-200 group-data-state-open:rotate-180`,a),t[7]=a,t[8]=f);let p;return t[9]!==c||t[10]!==u||t[11]!==d||t[12]!==f?(p=/* @__PURE__ */ h(i,{...c,"data-slot":d,svg:u,className:f}),t[9]=c,t[10]=u,t[11]=d,t[12]=f,t[13]=p):p=t[13],p},Content:i=>{let a=o(25),s,c,l,d,p;a[0]===i?(s=a[1],c=a[2],l=a[3],d=a[4],p=a[5]):({"data-slot":l,className:c,children:s,ref:p,...d}=i,a[0]=i,a[1]=s,a[2]=c,a[3]=l,a[4]=d,a[5]=p);let{open:m,setOpen:g,contentId:_}=w(`Accordion.Content`),v=f(null),y=t(v,p),x,S;a[6]===g?(x=a[7],S=a[8]):(x=()=>{let e=v.current;if(!e||!b())return;let t=()=>{e.removeAttribute(`hidden`),e.style.height=`auto`,g(!0)};return e.addEventListener(`beforematch`,t),()=>{e.removeEventListener(`beforematch`,t)}},S=[g],a[6]=g,a[7]=x,a[8]=S),u(x,S);let C,T;a[9]===m?(C=a[10],T=a[11]):(C=()=>{let e=v.current;e&&b()&&(e.removeAttribute(`inert`),m?e.removeAttribute(`hidden`):(e.setAttribute(`hidden`,`until-found`),e.style.height=``))},T=[m],a[9]=m,a[10]=C,a[11]=T),e(C,T);let E=!m,D;a[12]===l?D=a[13]:(D=r(l,`accordion-content`),a[12]=l,a[13]=D);let O=m?`open`:`closed`,k;a[14]===c?k=a[15]:(k=n(`h-0 overflow-hidden transition-[height,content-visibility] duration-200 ease-out [interpolate-size:allow-keywords] transition-discrete data-state-open:h-auto motion-reduce:transition-none`,c),a[14]=c,a[15]=k);let A;return a[16]!==s||a[17]!==y||a[18]!==_||a[19]!==d||a[20]!==E||a[21]!==D||a[22]!==O||a[23]!==k?(A=/* @__PURE__ */ h(`div`,{ref:y,...d,id:_,inert:E,"data-slot":D,"data-state":O,className:k,children:s}),a[16]=s,a[17]=y,a[18]=_,a[19]=d,a[20]=E,a[21]=D,a[22]=O,a[23]=k,a[24]=A):A=a[24],A},Body:e=>{let t=o(14),i,a,s,c;t[0]===e?(i=t[1],a=t[2],s=t[3],c=t[4]):({"data-slot":a,className:i,ref:c,...s}=e,t[0]=e,t[1]=i,t[2]=a,t[3]=s,t[4]=c);let l;t[5]===a?l=t[6]:(l=r(a,`accordion-body`),t[5]=a,t[6]=l);let u;t[7]===i?u=t[8]:(u=n(`pt-2 pb-4`,i),t[7]=i,t[8]=u);let d;return t[9]!==s||t[10]!==c||t[11]!==l||t[12]!==u?(d=/* @__PURE__ */ h(`div`,{ref:c,...s,"data-slot":l,className:u}),t[9]=s,t[10]=c,t[11]=l,t[12]=u,t[13]=d):d=t[13],d}};export{k as Accordion};
|