@ngrok/mantle 0.79.3 → 0.81.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 +158 -19
- package/dist/accordion.js +1 -1
- package/dist/agent.json +5 -1
- package/dist/alert-dialog.d.ts +465 -32
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +116 -14
- package/dist/alert.js +1 -1
- package/dist/anchor-DfeXTpKW.js +1 -0
- package/dist/anchor.d.ts +2 -2
- package/dist/anchor.js +1 -1
- package/dist/area-chart.d.ts +504 -0
- package/dist/area-chart.js +1 -0
- package/dist/as-child-D23mGo4f.d.ts +49 -0
- package/dist/badge.d.ts +44 -5
- package/dist/badge.js +1 -1
- package/dist/bar-chart.d.ts +491 -0
- package/dist/bar-chart.js +1 -0
- package/dist/breadcrumb.d.ts +196 -14
- package/dist/breadcrumb.js +1 -1
- package/dist/button-BAno7KIU.js +1 -0
- package/dist/{index-BSAizFod.d.ts → button-C-gMbPso.d.ts} +5 -5
- package/dist/{icon-button-BvQvT790.d.ts → button-C7vAl6lS.d.ts} +22 -63
- package/dist/button-D9n09xUg.js +1 -0
- package/dist/{button-DcXOWUYo.d.ts → button-DARFK2KJ.d.ts} +4 -4
- package/dist/button-DjpEKt2X.js +1 -0
- package/dist/button-DvHMWAPl.js +1 -0
- package/dist/button.d.ts +5 -5
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +0 -3
- package/dist/calendar.js +1 -1
- package/dist/card.d.ts +131 -9
- package/dist/card.js +1 -1
- package/dist/centered-layout.d.ts +209 -8
- package/dist/centered-layout.js +1 -1
- package/dist/chart-BROa2gqt.js +2 -0
- package/dist/chart-BcOC6Qj0.d.ts +275 -0
- package/dist/checkbox-0EoxOyMA.js +1 -0
- package/dist/checkbox.d.ts +13 -11
- package/dist/checkbox.js +1 -1
- package/dist/choice-BHwFSSyv.js +1 -0
- package/dist/choice-BNRQXszu.d.ts +254 -0
- package/dist/choice.d.ts +1 -252
- package/dist/choice.js +1 -1
- package/dist/code-block.d.ts +242 -52
- package/dist/code-block.js +6 -6
- package/dist/code-block_highlight-utils.d.ts +1 -1
- package/dist/code-block_highlight-utils.js +1 -1
- package/dist/code.d.ts +3 -2
- package/dist/code.js +1 -1
- package/dist/combobox.d.ts +171 -16
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +279 -81
- package/dist/command.js +1 -1
- package/dist/compose-refs-BdBMM9ga.js +1 -0
- package/dist/data-table.d.ts +28 -6
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +67 -6
- package/dist/description-list.js +1 -1
- package/dist/dialog-BM4wPCft.d.ts +24 -0
- package/dist/dialog-DWZWd5Jt.js +1 -0
- package/dist/dialog.d.ts +226 -35
- package/dist/dialog.js +1 -1
- package/dist/{dropdown-menu-DP_Ne9Mr.d.ts → dropdown-menu-DZg-Cd69.d.ts} +137 -32
- package/dist/dropdown-menu-Dw-OtXPm.d.ts +1 -0
- package/dist/dropdown-menu-RyDWoKHx.js +1 -0
- package/dist/dropdown-menu.d.ts +2 -2
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.d.ts +7 -22
- package/dist/empty.js +1 -1
- package/dist/field-B1wqeZr4.js +1 -0
- package/dist/field.d.ts +568 -47
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +0 -3
- package/dist/flag.js +1 -1
- package/dist/hooks.d.ts +3 -4
- package/dist/hooks.js +1 -1
- package/dist/hover-card.d.ts +48 -7
- package/dist/hover-card.js +1 -1
- package/dist/{svg-only-BFeFS1aa.d.ts → icon-CX_gj6sW.d.ts} +2 -2
- package/dist/icon-d-nMCfAI.js +1 -0
- package/dist/{icon-Cevjo93X.d.ts → icon-k4E9yNWD.d.ts} +2 -2
- package/dist/icon-lZ48P8Nn.js +1 -0
- package/dist/icon.d.ts +3 -3
- package/dist/icon.js +1 -1
- package/dist/{sort-BPX2Fk9t.js → icons-B_DDQcVD.js} +1 -1
- package/dist/{traffic-policy-file-0g5RXFqu.js → icons-CF1lbWtp.js} +1 -1
- package/dist/icons-DLCs1hLP.js +1 -0
- package/dist/icons.d.ts +7 -15
- package/dist/icons.js +1 -1
- package/dist/{in-view-nkSOdED2.d.ts → in-view-DDEGUKDR.d.ts} +17 -9
- package/dist/{index-D47aqlpz.d.ts → index-DA4ig3gj.d.ts} +1 -1
- package/dist/input-BnlpQF0c.js +1 -0
- package/dist/{types-C19IR7jf.d.ts → input-BuYDU6CF.d.ts} +42 -2
- package/dist/input.d.ts +5 -56
- package/dist/input.js +1 -1
- package/dist/{label-v2-bv98k.d.ts → label-C6YH9skg.d.ts} +8 -6
- package/dist/label-D-D11mlp.js +1 -0
- package/dist/label.d.ts +1 -1
- package/dist/label.js +1 -1
- package/dist/line-chart.d.ts +490 -0
- package/dist/line-chart.js +1 -0
- package/dist/list-51KQvENW.js +1 -0
- package/dist/list.d.ts +135 -6
- package/dist/list.js +1 -1
- package/dist/llms.txt +5 -1
- package/dist/main.d.ts +20 -4
- package/dist/main.js +1 -1
- package/dist/mantle-dark-high-contrast.css +17 -0
- package/dist/mantle-dark.css +13 -0
- package/dist/mantle-light-high-contrast.css +15 -0
- package/dist/mantle.css +29 -0
- package/dist/media-object.d.ts +18 -4
- package/dist/media-object.js +1 -1
- package/dist/multi-select.d.ts +282 -24
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.d.ts +118 -6
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +61 -6
- package/dist/pagination.js +1 -1
- package/dist/popover-CE4OlWkd.d.ts +208 -0
- package/dist/popover-CQ9s7jG5.js +1 -0
- package/dist/popover.d.ts +1 -181
- package/dist/popover.js +1 -1
- package/dist/primitive-trJDqIXJ.js +1 -0
- package/dist/progress.d.ts +2 -8
- package/dist/progress.js +1 -1
- package/dist/qr-code.d.ts +101 -5
- package/dist/qr-code.js +1 -1
- package/dist/radio-group.d.ts +110 -35
- package/dist/radio-group.js +1 -1
- package/dist/sandboxed-on-click.d.ts +2 -2
- package/dist/sandboxed-on-click.js +1 -1
- package/dist/scatter-plot.d.ts +495 -0
- package/dist/scatter-plot.js +1 -0
- package/dist/select-0z7HVS6r.d.ts +579 -0
- package/dist/select-BCHWvmyC.js +1 -0
- package/dist/select.d.ts +1 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.d.ts +225 -298
- package/dist/selectable-list.js +1 -1
- package/dist/separator-B5UmkVRL.d.ts +75 -0
- package/dist/separator-bpE_kooz.js +1 -0
- package/dist/separator.d.ts +1 -52
- package/dist/separator.js +1 -1
- package/dist/sheet.d.ts +285 -38
- package/dist/sheet.js +1 -1
- package/dist/skeleton-CsbUHbBA.js +1 -0
- package/dist/skeleton.d.ts +4 -7
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link.d.ts +24 -4
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slider.js +1 -1
- package/dist/{index-Rv8RL7xy.d.ts → slot-BtwKJTLq.d.ts} +1 -1
- package/dist/slot-CDk0Bb9z.js +1 -0
- package/dist/slot.d.ts +1 -1
- package/dist/slot.js +1 -1
- package/dist/split-button.d.ts +14 -14
- package/dist/split-button.js +1 -1
- package/dist/switch.d.ts +10 -7
- package/dist/switch.js +1 -1
- package/dist/table-Bo0vNxIJ.d.ts +848 -0
- package/dist/table-CGxJwtbL.js +1 -0
- package/dist/table.d.ts +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +124 -25
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +2 -2
- package/dist/text-area.js +1 -1
- package/dist/theme-C26-Xolp.js +1 -0
- package/dist/theme-switcher.d.ts +105 -33
- package/dist/theme-switcher.js +1 -1
- package/dist/theme.d.ts +54 -15
- package/dist/theme.js +1 -1
- package/dist/toast.d.ts +86 -10
- package/dist/toast.js +1 -1
- package/dist/tooltip.d.ts +50 -5
- package/dist/tooltip.js +1 -1
- package/dist/types.d.ts +2 -2
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +1 -1
- package/dist/well.d.ts +3 -3
- package/dist/well.js +1 -1
- package/package.json +9 -3
- package/dist/anchor-C_tjSVy6.js +0 -1
- package/dist/as-child-CYEVu1WY.d.ts +0 -23
- package/dist/button-5t6-JS_I.js +0 -1
- package/dist/button-ClC60Nzg.js +0 -1
- package/dist/checkbox-DJ2xl7Rc.js +0 -1
- package/dist/choice-DOdyNzFC.js +0 -1
- package/dist/compose-refs-Cjf2gfB8.js +0 -1
- package/dist/dialog-vxLIvB8M.js +0 -1
- package/dist/dropdown-menu-Bt1aKF1g.js +0 -1
- package/dist/field-context-BR01g789.js +0 -1
- package/dist/icon-CDtYjF_H.js +0 -1
- package/dist/icon-button-DV2-GZHf.js +0 -1
- package/dist/index-g2rfwNCH.d.ts +0 -1
- package/dist/input-Ct1YOqSy.js +0 -1
- package/dist/label-BMlHW_2D.js +0 -1
- package/dist/popover-D5WxxnBY.js +0 -1
- package/dist/primitive-C64-m48O.d.ts +0 -13
- package/dist/primitive-IKruV2iB.js +0 -1
- package/dist/select-Bwt2YduR.d.ts +0 -345
- package/dist/select-D-5u0Blc.js +0 -1
- package/dist/separator-kBnnv3Cw.js +0 -1
- package/dist/skeleton-Bu3tgNcW.js +0 -1
- package/dist/slot-DmPrjM7N.js +0 -1
- package/dist/svg-only-DDx6FtJd.js +0 -1
- package/dist/table-CPH2md2-.js +0 -1
- package/dist/table-CwFHXC-G.d.ts +0 -414
- package/dist/theme-D3MDng6U.js +0 -1
- package/dist/theme-provider-C9zpDyJW.js +0 -1
- package/dist/toast-BsCjaMVS.js +0 -1
- package/dist/virtual-DZMBu7Ch.js +0 -1
- /package/dist/{sizes-BCoI4bhP.d.ts → button-BCoI4bhP.d.ts} +0 -0
- /package/dist/{intents-DdSKSj1c.d.ts → button-DdSKSj1c.d.ts} +0 -0
- /package/dist/{resolve-pre-rendered-props-B6OlZrSI.d.ts → code-block-B6OlZrSI.d.ts} +0 -0
- /package/dist/{resolve-pre-rendered-props-C9uaM9-V.js → code-block-C9uaM9-V.js} +0 -0
- /package/dist/{validation-7QeiTFwl.d.ts → field-7QeiTFwl.d.ts} +0 -0
- /package/dist/{validation-Bpptk_9t.js → field-Bpptk_9t.js} +0 -0
- /package/dist/{types-D1RY5Tcj.d.ts → icon-D1RY5Tcj.d.ts} +0 -0
- /package/dist/{is-input-CXmS0OFN.js → input-CXmS0OFN.js} +0 -0
- /package/dist/{themes-CYNpplwN.d.ts → theme-CYNpplwN.d.ts} +0 -0
package/dist/breadcrumb.d.ts
CHANGED
|
@@ -1,7 +1,195 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as WithAsChild } from "./as-child-D23mGo4f.js";
|
|
2
2
|
import { t as WithDataSlot } from "./data-slot-CChfb_cv.js";
|
|
3
|
-
import { ReactNode } from "react";
|
|
3
|
+
import { ComponentProps, ReactNode } from "react";
|
|
4
4
|
//#region src/components/breadcrumb/breadcrumb.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* The breadcrumb landmark. Renders a `<nav>` with a default
|
|
7
|
+
* `aria-label="Breadcrumb"` per the WAI-ARIA breadcrumb pattern — pass your
|
|
8
|
+
* own `aria-label` to override it (e.g. for localization or when a page has
|
|
9
|
+
* multiple breadcrumb trails). Carries no visual styling of its own.
|
|
10
|
+
*
|
|
11
|
+
* @see https://mantle.ngrok.com/components/navigation/breadcrumb
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* ```tsx
|
|
15
|
+
* <Breadcrumb.Root>
|
|
16
|
+
* <Breadcrumb.List>
|
|
17
|
+
* <Breadcrumb.Item>
|
|
18
|
+
* <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
|
|
19
|
+
* </Breadcrumb.Item>
|
|
20
|
+
* <Breadcrumb.Separator />
|
|
21
|
+
* <Breadcrumb.Item>
|
|
22
|
+
* <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
|
|
23
|
+
* </Breadcrumb.Item>
|
|
24
|
+
* <Breadcrumb.Separator />
|
|
25
|
+
* <Breadcrumb.Item>
|
|
26
|
+
* <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
|
|
27
|
+
* </Breadcrumb.Item>
|
|
28
|
+
* </Breadcrumb.List>
|
|
29
|
+
* </Breadcrumb.Root>
|
|
30
|
+
* ```
|
|
31
|
+
*/
|
|
32
|
+
declare const Root: ({ asChild, children, "data-slot": dataSlot, ref, ...props }: ComponentProps<"nav"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
33
|
+
/**
|
|
34
|
+
* The ordered list of crumbs. Renders an `<ol>` — an **ordered** list, because
|
|
35
|
+
* the order of the items is the hierarchy, from the root to the current page.
|
|
36
|
+
* Lays crumbs out inline with wrapping and muted, small text.
|
|
37
|
+
*
|
|
38
|
+
* @see https://mantle.ngrok.com/components/navigation/breadcrumb
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```tsx
|
|
42
|
+
* <Breadcrumb.Root>
|
|
43
|
+
* <Breadcrumb.List>
|
|
44
|
+
* <Breadcrumb.Item>
|
|
45
|
+
* <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
|
|
46
|
+
* </Breadcrumb.Item>
|
|
47
|
+
* <Breadcrumb.Separator />
|
|
48
|
+
* <Breadcrumb.Item>
|
|
49
|
+
* <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
|
|
50
|
+
* </Breadcrumb.Item>
|
|
51
|
+
* <Breadcrumb.Separator />
|
|
52
|
+
* <Breadcrumb.Item>
|
|
53
|
+
* <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
|
|
54
|
+
* </Breadcrumb.Item>
|
|
55
|
+
* </Breadcrumb.List>
|
|
56
|
+
* </Breadcrumb.Root>
|
|
57
|
+
* ```
|
|
58
|
+
*/
|
|
59
|
+
declare const List: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"ol"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
60
|
+
/**
|
|
61
|
+
* A single crumb. Renders an `<li>` (`role="listitem"`) that lays out its
|
|
62
|
+
* content — a `Breadcrumb.Link` or `Breadcrumb.Page` — inline.
|
|
63
|
+
*
|
|
64
|
+
* @see https://mantle.ngrok.com/components/navigation/breadcrumb
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```tsx
|
|
68
|
+
* <Breadcrumb.Root>
|
|
69
|
+
* <Breadcrumb.List>
|
|
70
|
+
* <Breadcrumb.Item>
|
|
71
|
+
* <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
|
|
72
|
+
* </Breadcrumb.Item>
|
|
73
|
+
* <Breadcrumb.Separator />
|
|
74
|
+
* <Breadcrumb.Item>
|
|
75
|
+
* <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
|
|
76
|
+
* </Breadcrumb.Item>
|
|
77
|
+
* <Breadcrumb.Separator />
|
|
78
|
+
* <Breadcrumb.Item>
|
|
79
|
+
* <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
|
|
80
|
+
* </Breadcrumb.Item>
|
|
81
|
+
* </Breadcrumb.List>
|
|
82
|
+
* </Breadcrumb.Root>
|
|
83
|
+
* ```
|
|
84
|
+
*/
|
|
85
|
+
declare const Item: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"li"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
86
|
+
/**
|
|
87
|
+
* A link to an ancestor page in the hierarchy. Renders an `<a>` by default;
|
|
88
|
+
* the component is router-agnostic — use `asChild` to compose the styling
|
|
89
|
+
* onto your app router's link (e.g. react-router's `<Link>`) so client-side
|
|
90
|
+
* navigation kicks in.
|
|
91
|
+
*
|
|
92
|
+
* @see https://mantle.ngrok.com/components/navigation/breadcrumb
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```tsx
|
|
96
|
+
* <Breadcrumb.Root>
|
|
97
|
+
* <Breadcrumb.List>
|
|
98
|
+
* <Breadcrumb.Item>
|
|
99
|
+
* <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
|
|
100
|
+
* </Breadcrumb.Item>
|
|
101
|
+
* <Breadcrumb.Separator />
|
|
102
|
+
* <Breadcrumb.Item>
|
|
103
|
+
* <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
|
|
104
|
+
* </Breadcrumb.Item>
|
|
105
|
+
* <Breadcrumb.Separator />
|
|
106
|
+
* <Breadcrumb.Item>
|
|
107
|
+
* <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
|
|
108
|
+
* </Breadcrumb.Item>
|
|
109
|
+
* </Breadcrumb.List>
|
|
110
|
+
* </Breadcrumb.Root>
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
113
|
+
* @example
|
|
114
|
+
* ```tsx
|
|
115
|
+
* <Breadcrumb.Link asChild>
|
|
116
|
+
* <Link to={href("/endpoints")}>Endpoints</Link>
|
|
117
|
+
* </Breadcrumb.Link>
|
|
118
|
+
* ```
|
|
119
|
+
*/
|
|
120
|
+
declare const Link: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"a"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
121
|
+
/**
|
|
122
|
+
* The current page — the last crumb in the trail. Renders a `<span>` (not a
|
|
123
|
+
* link; the user is already here) with `aria-current="page"`. The ARIA is the
|
|
124
|
+
* part's whole contract, so `aria-current` is always emitted and is not
|
|
125
|
+
* overridable via props.
|
|
126
|
+
*
|
|
127
|
+
* @see https://mantle.ngrok.com/components/navigation/breadcrumb
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```tsx
|
|
131
|
+
* <Breadcrumb.Root>
|
|
132
|
+
* <Breadcrumb.List>
|
|
133
|
+
* <Breadcrumb.Item>
|
|
134
|
+
* <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
|
|
135
|
+
* </Breadcrumb.Item>
|
|
136
|
+
* <Breadcrumb.Separator />
|
|
137
|
+
* <Breadcrumb.Item>
|
|
138
|
+
* <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
|
|
139
|
+
* </Breadcrumb.Item>
|
|
140
|
+
* <Breadcrumb.Separator />
|
|
141
|
+
* <Breadcrumb.Item>
|
|
142
|
+
* <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
|
|
143
|
+
* </Breadcrumb.Item>
|
|
144
|
+
* </Breadcrumb.List>
|
|
145
|
+
* </Breadcrumb.Root>
|
|
146
|
+
* ```
|
|
147
|
+
*/
|
|
148
|
+
declare const Page: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: ComponentProps<"span"> & WithAsChild & WithDataSlot) => import("react").JSX.Element;
|
|
149
|
+
/**
|
|
150
|
+
* The props for `Breadcrumb.Separator`. When `asChild` is set, `children` is
|
|
151
|
+
* required: the child element is what gets rendered, so an `asChild` separator
|
|
152
|
+
* without children would clone the default caret icon into the list — invalid
|
|
153
|
+
* `<ol>` content. The union makes that misuse a compile error.
|
|
154
|
+
*/
|
|
155
|
+
type BreadcrumbSeparatorProps = Omit<ComponentProps<"li">, "children"> & ({
|
|
156
|
+
asChild: true;
|
|
157
|
+
children: ReactNode;
|
|
158
|
+
} | {
|
|
159
|
+
asChild?: false | undefined;
|
|
160
|
+
children?: ReactNode;
|
|
161
|
+
});
|
|
162
|
+
/**
|
|
163
|
+
* A purely visual divider between crumbs, hidden from assistive technology.
|
|
164
|
+
* Renders an `<li>` with `role="presentation"` and `aria-hidden="true"` — a
|
|
165
|
+
* listitem sibling of `Breadcrumb.Item` elements per the APG breadcrumb
|
|
166
|
+
* pattern, so it never counts as a crumb. Children default to a size-3.5
|
|
167
|
+
* caret icon (`<Icon svg={<CaretRightIcon />} className="size-3.5" />`); pass
|
|
168
|
+
* your own children (e.g. a slash) to replace it. With `asChild`, children
|
|
169
|
+
* are required — the child element is what renders.
|
|
170
|
+
*
|
|
171
|
+
* @see https://mantle.ngrok.com/components/navigation/breadcrumb
|
|
172
|
+
*
|
|
173
|
+
* @example
|
|
174
|
+
* ```tsx
|
|
175
|
+
* <Breadcrumb.Root>
|
|
176
|
+
* <Breadcrumb.List>
|
|
177
|
+
* <Breadcrumb.Item>
|
|
178
|
+
* <Breadcrumb.Link href="/">Home</Breadcrumb.Link>
|
|
179
|
+
* </Breadcrumb.Item>
|
|
180
|
+
* <Breadcrumb.Separator />
|
|
181
|
+
* <Breadcrumb.Item>
|
|
182
|
+
* <Breadcrumb.Link href="/endpoints">Endpoints</Breadcrumb.Link>
|
|
183
|
+
* </Breadcrumb.Item>
|
|
184
|
+
* <Breadcrumb.Separator />
|
|
185
|
+
* <Breadcrumb.Item>
|
|
186
|
+
* <Breadcrumb.Page>ep_2h8…</Breadcrumb.Page>
|
|
187
|
+
* </Breadcrumb.Item>
|
|
188
|
+
* </Breadcrumb.List>
|
|
189
|
+
* </Breadcrumb.Root>
|
|
190
|
+
* ```
|
|
191
|
+
*/
|
|
192
|
+
declare const Separator: ({ asChild, children, className, "data-slot": dataSlot, ref, ...props }: BreadcrumbSeparatorProps & WithDataSlot) => import("react").JSX.Element;
|
|
5
193
|
/**
|
|
6
194
|
* Compound component for WAI-ARIA breadcrumb navigation — the path from a
|
|
7
195
|
* root to the current page as an ordered list of links inside a labeled
|
|
@@ -68,7 +256,7 @@ declare const Breadcrumb: {
|
|
|
68
256
|
* </Breadcrumb.Root>
|
|
69
257
|
* ```
|
|
70
258
|
*/
|
|
71
|
-
readonly Root:
|
|
259
|
+
readonly Root: typeof Root;
|
|
72
260
|
/**
|
|
73
261
|
* The ordered list of crumbs. Renders an `<ol>` — the order of the items
|
|
74
262
|
* is the hierarchy, from the root to the current page.
|
|
@@ -94,7 +282,7 @@ declare const Breadcrumb: {
|
|
|
94
282
|
* </Breadcrumb.Root>
|
|
95
283
|
* ```
|
|
96
284
|
*/
|
|
97
|
-
readonly List:
|
|
285
|
+
readonly List: typeof List;
|
|
98
286
|
/**
|
|
99
287
|
* A single crumb. Renders an `<li>` containing a `Breadcrumb.Link` or
|
|
100
288
|
* `Breadcrumb.Page`.
|
|
@@ -120,7 +308,7 @@ declare const Breadcrumb: {
|
|
|
120
308
|
* </Breadcrumb.Root>
|
|
121
309
|
* ```
|
|
122
310
|
*/
|
|
123
|
-
readonly Item:
|
|
311
|
+
readonly Item: typeof Item;
|
|
124
312
|
/**
|
|
125
313
|
* A link to an ancestor page. Renders an `<a>` by default; use `asChild`
|
|
126
314
|
* to compose onto your app router's link (e.g. react-router's `<Link>`).
|
|
@@ -146,7 +334,7 @@ declare const Breadcrumb: {
|
|
|
146
334
|
* </Breadcrumb.Root>
|
|
147
335
|
* ```
|
|
148
336
|
*/
|
|
149
|
-
readonly Link:
|
|
337
|
+
readonly Link: typeof Link;
|
|
150
338
|
/**
|
|
151
339
|
* The current page — the last crumb. Renders a `<span>` (not a link) with
|
|
152
340
|
* `aria-current="page"`; the ARIA is the part's whole contract and is not
|
|
@@ -173,7 +361,7 @@ declare const Breadcrumb: {
|
|
|
173
361
|
* </Breadcrumb.Root>
|
|
174
362
|
* ```
|
|
175
363
|
*/
|
|
176
|
-
readonly Page:
|
|
364
|
+
readonly Page: typeof Page;
|
|
177
365
|
/**
|
|
178
366
|
* A purely visual divider between crumbs, hidden from assistive
|
|
179
367
|
* technology (`role="presentation"` + `aria-hidden`). Children default to
|
|
@@ -200,13 +388,7 @@ declare const Breadcrumb: {
|
|
|
200
388
|
* </Breadcrumb.Root>
|
|
201
389
|
* ```
|
|
202
390
|
*/
|
|
203
|
-
readonly Separator:
|
|
204
|
-
asChild: true;
|
|
205
|
-
children: ReactNode;
|
|
206
|
-
} & WithDataSlot, "ref"> | Omit<Omit<import("react").DetailedHTMLProps<import("react").LiHTMLAttributes<HTMLLIElement>, HTMLLIElement>, "children"> & {
|
|
207
|
-
asChild?: false | undefined;
|
|
208
|
-
children?: ReactNode;
|
|
209
|
-
} & WithDataSlot, "ref">) & import("react").RefAttributes<HTMLLIElement>>;
|
|
391
|
+
readonly Separator: typeof Separator;
|
|
210
392
|
};
|
|
211
393
|
//#endregion
|
|
212
394
|
export { Breadcrumb };
|
package/dist/breadcrumb.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-lZ48P8Nn.js";import{n,t as r}from"./slot-CDk0Bb9z.js";import{cloneElement as i,isValidElement as a}from"react";import{jsx as o}from"react/jsx-runtime";import{CaretRightIcon as s}from"@phosphor-icons/react/CaretRight";const c={Root:({asChild:e,children:t,"data-slot":i,ref:a,...s})=>o(e?r:`nav`,{ref:a,"data-slot":n(i,`breadcrumb`),"aria-label":`Breadcrumb`,...s,children:t}),List:({asChild:t,children:i,className:a,"data-slot":s,ref:c,...l})=>o(t?r:`ol`,{ref:c,"data-slot":n(s,`breadcrumb-list`),className:e(`text-muted flex flex-wrap items-center gap-1.5 text-sm`,a),...l,children:i}),Item:({asChild:t,children:i,className:a,"data-slot":s,ref:c,...l})=>o(t?r:`li`,{ref:c,"data-slot":n(s,`breadcrumb-item`),className:e(`inline-flex items-center gap-1.5`,a),...l,children:i}),Link:({asChild:t,children:i,className:a,"data-slot":s,ref:c,...l})=>o(t?r:`a`,{ref:c,"data-slot":n(s,`breadcrumb-link`),className:e(`hover:text-strong transition-colors`,a),...l,children:i}),Page:({asChild:t,children:s,className:c,"data-slot":l,ref:u,...d})=>{let f=t?r:`span`,p=t&&a(s)?i(s,{"aria-current":`page`}):s;return o(f,{ref:u,"data-slot":n(l,`breadcrumb-page`),className:e(`text-strong`,c),...d,"aria-current":`page`,children:p})},Separator:({asChild:e,children:c,className:l,"data-slot":u,ref:d,...f})=>{let p=e?r:`li`,m=e&&a(c)?i(c,{role:`presentation`,"aria-hidden":`true`}):c??o(t,{svg:o(s,{}),className:`size-3.5`});return o(p,{ref:d,"data-slot":n(u,`breadcrumb-separator`),className:l,...f,role:`presentation`,"aria-hidden":`true`,children:m})}};export{c as Breadcrumb};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-lZ48P8Nn.js";import{t as n}from"./slot-CDk0Bb9z.js";import{t as r}from"./booleanish-BfvnW6vy.js";import{t as i}from"./button-DvHMWAPl.js";import{Children as a,cloneElement as o,isValidElement as s}from"react";import c from"tiny-invariant";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import{CircleNotchIcon as f}from"@phosphor-icons/react/CircleNotch";const p=({"aria-disabled":p,appearance:m,asChild:h=!1,children:g,className:_,disabled:v,icon:y,intent:b,isLoading:x=!1,label:S,ref:C,size:w=`md`,type:T,...E})=>{let D=r(p??v??x),O=x?u(f,{className:`animate-spin`}):y,k={"aria-disabled":D,"data-slot":`icon-button`,className:e(i({appearance:m,intent:b,isLoading:x,size:w}),_),"data-appearance":m,"data-disabled":D,"data-icon-button":!0,"data-intent":b,"data-loading":x,"data-size":w,disabled:D,ref:C,...E},A=d(l,{children:[u(`span`,{className:`sr-only`,children:S}),u(t,{svg:O})]});return h?(c(s(g)&&a.only(g),"When using `asChild`, IconButton must be passed a single child as a JSX tag."),u(n,{...k,children:o(g,{},A)})):u(`button`,{...k,type:T??`button`,children:A})};export{p as t};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as VariantProps } from "./index-
|
|
3
|
-
import "./button-
|
|
4
|
-
import "./
|
|
1
|
+
import { n as WithAsChild } from "./as-child-D23mGo4f.js";
|
|
2
|
+
import { r as VariantProps } from "./index-DA4ig3gj.js";
|
|
3
|
+
import "./button-DARFK2KJ.js";
|
|
4
|
+
import "./button-C7vAl6lS.js";
|
|
5
5
|
import { ComponentProps } from "react";
|
|
6
6
|
//#region src/components/button/button-group.d.ts
|
|
7
7
|
declare const buttonGroupVariants: (props?: ({
|
|
@@ -26,6 +26,6 @@ type ButtonGroupProps = ComponentProps<"div"> & ButtonGroupVariants & WithAsChil
|
|
|
26
26
|
* </ButtonGroup>
|
|
27
27
|
* ```
|
|
28
28
|
*/
|
|
29
|
-
declare const ButtonGroup:
|
|
29
|
+
declare const ButtonGroup: ({ appearance, asChild, className, children, ref, ...props }: ButtonGroupProps) => import("react").JSX.Element;
|
|
30
30
|
//#endregion
|
|
31
31
|
export { ButtonGroupProps as n, ButtonGroup as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as ButtonIntent } from "./
|
|
4
|
-
import {
|
|
5
|
-
//#region src/components/button/icon-button.d.ts
|
|
1
|
+
import { n as WithAsChild } from "./as-child-D23mGo4f.js";
|
|
2
|
+
import { r as VariantProps } from "./index-DA4ig3gj.js";
|
|
3
|
+
import { t as ButtonIntent } from "./button-DdSKSj1c.js";
|
|
4
|
+
import { ComponentProps, ReactNode } from "react";
|
|
5
|
+
//#region src/components/button/icon-button-variants.d.ts
|
|
6
6
|
/**
|
|
7
7
|
* The visual style of an `IconButton`: how much visual weight it carries,
|
|
8
8
|
* independent of its tone (`intent`). IconButton has no `filled` or `link`
|
|
@@ -10,6 +10,17 @@ import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
|
10
10
|
* link has no text to read as a link.
|
|
11
11
|
*/
|
|
12
12
|
type IconButtonAppearance = "ghost" | "outlined";
|
|
13
|
+
/**
|
|
14
|
+
* Composes the className for an `IconButton` from its variant props. Lives in
|
|
15
|
+
* its own module (rather than `icon-button.tsx`) so that components which only
|
|
16
|
+
* need the classes (e.g. `Calendar`'s nav buttons) can import them without
|
|
17
|
+
* pulling the `IconButton` implementation into their module graph.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* const navButtonClasses = iconButtonVariants({ appearance: "ghost", intent: "neutral", size: "sm" });
|
|
22
|
+
* ```
|
|
23
|
+
*/
|
|
13
24
|
declare const iconButtonVariants: (props?: ({
|
|
14
25
|
appearance?: "ghost" | "outlined" | null | undefined;
|
|
15
26
|
intent?: "accent" | "danger" | "neutral" | null | undefined;
|
|
@@ -17,10 +28,12 @@ declare const iconButtonVariants: (props?: ({
|
|
|
17
28
|
size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
|
|
18
29
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
30
|
type IconButtonVariants = VariantProps<typeof iconButtonVariants>;
|
|
31
|
+
//#endregion
|
|
32
|
+
//#region src/components/button/icon-button.d.ts
|
|
20
33
|
/**
|
|
21
34
|
* The props for the `IconButton` component.
|
|
22
35
|
*/
|
|
23
|
-
type IconButtonProps =
|
|
36
|
+
type IconButtonProps = ComponentProps<"button"> & WithAsChild & Omit<IconButtonVariants, "appearance" | "intent"> & {
|
|
24
37
|
/**
|
|
25
38
|
* The visual style of the IconButton. Required — there is no default,
|
|
26
39
|
* so every call site states the weight it means.
|
|
@@ -68,7 +81,7 @@ type IconButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & WithAsChild & O
|
|
|
68
81
|
*
|
|
69
82
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type
|
|
70
83
|
*/
|
|
71
|
-
type?:
|
|
84
|
+
type?: ComponentProps<"button">["type"];
|
|
72
85
|
};
|
|
73
86
|
/**
|
|
74
87
|
* Renders a button or a component that looks like a button, an interactive
|
|
@@ -112,60 +125,6 @@ type IconButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & WithAsChild & O
|
|
|
112
125
|
* />
|
|
113
126
|
* ```
|
|
114
127
|
*/
|
|
115
|
-
declare const IconButton:
|
|
116
|
-
appearance?: "ghost" | "outlined" | null | undefined;
|
|
117
|
-
intent?: "accent" | "danger" | "neutral" | null | undefined;
|
|
118
|
-
isLoading?: boolean | null | undefined;
|
|
119
|
-
size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
|
|
120
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string>>>, "appearance" | "intent"> & {
|
|
121
|
-
/**
|
|
122
|
-
* The visual style of the IconButton. Required — there is no default,
|
|
123
|
-
* so every call site states the weight it means.
|
|
124
|
-
*
|
|
125
|
-
* @enum
|
|
126
|
-
* - `"ghost"`: no border or fill until hovered
|
|
127
|
-
* - `"outlined"`: bordered on the form background
|
|
128
|
-
*/
|
|
129
|
-
appearance: IconButtonAppearance;
|
|
130
|
-
/**
|
|
131
|
-
* The tone of the IconButton — the purpose its color communicates to
|
|
132
|
-
* the user. Required — there is no default, so every call site states
|
|
133
|
-
* the tone it means. `"neutral"` is the workhorse tone (and matches
|
|
134
|
-
* how IconButton rendered before it had an intent axis).
|
|
135
|
-
*
|
|
136
|
-
* @enum
|
|
137
|
-
* - `"neutral"`: the workhorse tone — routine and secondary actions
|
|
138
|
-
* - `"accent"`: deliberate brand emphasis; reach for it when an action should carry the brand color
|
|
139
|
-
* - `"danger"`: a destructive or irreversible action
|
|
140
|
-
*/
|
|
141
|
-
intent: ButtonIntent;
|
|
142
|
-
/**
|
|
143
|
-
* The accessible label for the icon. This label will be visually hidden but announced to screen reader users, similar to alt text for img tags.
|
|
144
|
-
*/
|
|
145
|
-
label: string;
|
|
146
|
-
/**
|
|
147
|
-
* An icon to render inside the button. If the `state` is `"pending"`, then
|
|
148
|
-
* the icon will automatically be replaced with a spinner.
|
|
149
|
-
*/
|
|
150
|
-
icon: ReactNode;
|
|
151
|
-
/**
|
|
152
|
-
* The behavior of the button when activated. Defaults to `"button"`, so the
|
|
153
|
-
* button does not accidentally submit a surrounding `<form>` — pass
|
|
154
|
-
* `type="submit"` to submit a form, or `type="reset"` to reset it.
|
|
155
|
-
*
|
|
156
|
-
* When `asChild` is used, `type` has no effect and is not forwarded to the
|
|
157
|
-
* child, so a wrapped anchor never inherits a `button` `type`. See:
|
|
158
|
-
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a#type
|
|
159
|
-
*
|
|
160
|
-
* @default "button"
|
|
161
|
-
* @enum
|
|
162
|
-
* - `"button"`: The button has no default behavior, and does nothing when pressed by default. It can have client-side scripts listen to the element's events, which are triggered when the events occur.
|
|
163
|
-
* - `"reset"`: The button resets all the controls to their initial values.
|
|
164
|
-
* - `"submit"`: The button submits the form data to the server.
|
|
165
|
-
*
|
|
166
|
-
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#type
|
|
167
|
-
*/
|
|
168
|
-
type?: ButtonHTMLAttributes<HTMLButtonElement>["type"];
|
|
169
|
-
} & import("react").RefAttributes<HTMLButtonElement>>;
|
|
128
|
+
declare const IconButton: ({ "aria-disabled": _ariaDisabled, appearance, asChild, children, className, disabled: _disabled, icon: propIcon, intent, isLoading, label, ref, size, type, ...props }: IconButtonProps) => import("react").JSX.Element;
|
|
170
129
|
//#endregion
|
|
171
|
-
export {
|
|
130
|
+
export { IconButtonProps as n, IconButtonAppearance as r, IconButton as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./slot-CDk0Bb9z.js";import{jsx as n}from"react/jsx-runtime";import{cva as r}from"class-variance-authority";const i=r(`border-form inline-flex items-center rounded-md`,{variants:{appearance:{panel:`bg-form gap-0.5 border p-0.75 [--icon-button-border-radius:0.125rem] [&>.separator]:mx-px`,ghost:`gap-0.5`,outlined:``}}}),a=({appearance:r,asChild:a,className:o,children:s,ref:c,...l})=>n(a?t:`div`,{"data-slot":`button-group`,className:e(i({appearance:r}),o),ref:c,...l,children:s});export{a as t};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { r as VariantProps } from "./index-
|
|
3
|
-
import { t as ButtonIntent } from "./
|
|
1
|
+
import { n as WithAsChild } from "./as-child-D23mGo4f.js";
|
|
2
|
+
import { r as VariantProps } from "./index-DA4ig3gj.js";
|
|
3
|
+
import { t as ButtonIntent } from "./button-DdSKSj1c.js";
|
|
4
4
|
import { ComponentProps, ReactNode } from "react";
|
|
5
5
|
//#region src/components/button/button.d.ts
|
|
6
6
|
/**
|
|
@@ -126,6 +126,6 @@ type ButtonProps = ComponentProps<"button"> & Omit<ButtonVariants, "appearance"
|
|
|
126
126
|
* <IconButton appearance="outlined" intent="neutral" icon={<CopyIcon />} label="Copy page" onClick={copyPage} />
|
|
127
127
|
* ```
|
|
128
128
|
*/
|
|
129
|
-
declare const Button:
|
|
129
|
+
declare const Button: ({ "aria-disabled": _ariaDisabled, appearance, asChild, children, className, disabled: _disabled, icon: propIcon, iconPlacement, intent, isLoading, ref, size, type, ...props }: ButtonProps) => import("react").JSX.Element;
|
|
130
130
|
//#endregion
|
|
131
131
|
export { ButtonAppearance as n, ButtonProps as r, Button as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-lZ48P8Nn.js";import{t as n}from"./slot-CDk0Bb9z.js";import{t as r}from"./booleanish-BfvnW6vy.js";import{t as i}from"./clsx-DUGZgXfJ.js";import{Children as a,cloneElement as o,isValidElement as s}from"react";import c from"tiny-invariant";import{Fragment as l,jsx as u,jsxs as d}from"react/jsx-runtime";import{cva as f}from"class-variance-authority";import{CircleNotchIcon as p}from"@phosphor-icons/react/CircleNotch";const m=f(``,{variants:{appearance:{filled:`bg-filled-accent text-white focus-visible:ring-focus-accent not-disabled:hover:bg-filled-accent-hover border border-transparent text-sm font-medium`,ghost:`text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:bg-accent-500/10 not-disabled:hover:text-accent-700 border border-transparent text-sm font-medium`,outlined:`border-accent-600 bg-form text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:border-accent-700 not-disabled:hover:bg-accent-500/10 not-disabled:hover:text-accent-700 border text-sm font-medium`,link:`text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:underline group/button-link border-transparent`},isLoading:{false:``,true:`opacity-50`},intent:{accent:``,danger:``,neutral:``},size:{xs:``,sm:``,md:``,lg:``,xl:``}},defaultVariants:{isLoading:!1,size:`md`},compoundVariants:[{appearance:[`filled`,`ghost`,`outlined`],size:`xs`,class:`h-6 px-2`},{appearance:[`filled`,`ghost`,`outlined`],size:`sm`,class:`h-7 px-2.5`},{appearance:[`filled`,`ghost`,`outlined`],size:`md`,class:`h-9 px-3`},{appearance:[`filled`,`ghost`,`outlined`],size:`lg`,class:`h-10 px-3.5`},{appearance:[`filled`,`ghost`,`outlined`],size:`xl`,class:`h-12 px-4`},{appearance:`ghost`,intent:`danger`,class:`text-danger-600 focus-visible:ring-focus-danger not-disabled:hover:bg-danger-500/10 not-disabled:hover:text-danger-700 border-transparent`},{appearance:`outlined`,intent:`danger`,class:`border-danger-600 bg-form text-danger-600 focus-visible:ring-focus-danger not-disabled:hover:border-danger-700 not-disabled:hover:bg-danger-500/10 not-disabled:hover:text-danger-700`},{appearance:`filled`,intent:`danger`,class:`bg-filled-danger focus-visible:ring-focus-danger not-disabled:hover:bg-filled-danger-hover border-transparent`},{appearance:`link`,intent:`danger`,class:`text-danger-600 focus-visible:ring-focus-danger`},{appearance:`ghost`,intent:`neutral`,class:`text-strong focus-visible:ring-focus-accent not-disabled:hover:bg-neutral-500/10 not-disabled:hover:text-strong border-transparent`},{appearance:`outlined`,intent:`neutral`,class:`border-form bg-form text-strong focus-visible:border-accent-600 focus-visible:ring-focus-accent not-disabled:hover:border-neutral-400 not-disabled:hover:bg-form-hover not-disabled:hover:text-strong focus-visible:not-disabled:hover:border-accent-600`},{appearance:`filled`,intent:`neutral`,class:`bg-filled-neutral not-disabled:hover:bg-filled-neutral-hover border-transparent focus-visible:border-transparent text-neutral-50`},{appearance:`link`,intent:`neutral`,class:`text-strong focus-visible:ring-focus-accent`}]}),h={xs:`ps-1.5`,sm:`ps-2`,md:`ps-2.5`,lg:`ps-3`,xl:`ps-3.5`},g={xs:`pe-1.5`,sm:`pe-2`,md:`pe-2.5`,lg:`pe-3`,xl:`pe-3.5`},_=({"aria-disabled":f,appearance:_,asChild:v,children:y,className:b,disabled:x,icon:S,iconPlacement:C=`start`,intent:w,isLoading:T=!1,ref:E,size:D=`md`,type:O,...k})=>{let A=r(f??x??T),j=T?u(p,{className:`animate-spin`}):S,M=j&&_!==`link`,N={"aria-disabled":A,"data-slot":`button`,className:e(`inline-flex items-center justify-center gap-1.5 whitespace-nowrap rounded-md`,`focus:outline-hidden focus-visible:ring-4`,`disabled:cursor-default disabled:opacity-50`,`not-disabled:active:scale-97 ease-out transition-transform duration-150`,m({appearance:_,intent:w,isLoading:T,size:D}),_!==`link`&&`font-sans`,M&&C===`start`&&h[D],M&&C===`end`&&g[D],b),"data-appearance":_,"data-disabled":A,"data-intent":w,"data-loading":T,"data-size":_===`link`?void 0:D,disabled:A,ref:E,...k};return v?(c(s(y)&&a.only(y),"When using `asChild`, Button must be passed a single child as a JSX tag."),u(n,{...N,children:o(y,{},d(l,{children:[j&&u(t,{svg:j,className:i(C===`end`&&`order-last`)}),y.props.children]}))})):d(`button`,{...N,type:O??`button`,children:[j&&u(t,{svg:j,className:i(C===`end`&&`order-last`)}),y]})};export{_ as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{cva as t}from"class-variance-authority";const n=t(e(`icon-button`,`inline-flex shrink-0 items-center justify-center rounded-[var(--icon-button-border-radius,0.375rem)] border`,`focus:outline-hidden focus-visible:ring-4`,`disabled:cursor-default disabled:opacity-50`,`not-disabled:active:scale-97 ease-out transition-transform duration-150`),{variants:{appearance:{ghost:`text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:bg-accent-500/10 not-disabled:hover:text-accent-700 border-transparent`,outlined:`border-accent-600 bg-form text-accent-600 focus-visible:ring-focus-accent not-disabled:hover:border-accent-700 not-disabled:hover:bg-accent-500/10 not-disabled:hover:text-accent-700`},intent:{accent:``,danger:``,neutral:``},isLoading:{false:``,true:`opacity-50`},size:{xs:`size-6`,sm:`size-7`,md:`size-9`,lg:`size-10`,xl:`size-12`}},defaultVariants:{intent:`neutral`,size:`md`},compoundVariants:[{appearance:`ghost`,intent:`danger`,class:`text-danger-600 focus-visible:ring-focus-danger not-disabled:hover:bg-danger-500/10 not-disabled:hover:text-danger-700 border-transparent`},{appearance:`outlined`,intent:`danger`,class:`border-danger-600 bg-form text-danger-600 focus-visible:ring-focus-danger not-disabled:hover:border-danger-700 not-disabled:hover:bg-danger-500/10 not-disabled:hover:text-danger-700`},{appearance:`ghost`,intent:`neutral`,class:`text-strong focus-visible:ring-focus-accent not-disabled:hover:bg-neutral-500/10 not-disabled:hover:text-strong border-transparent`},{appearance:`outlined`,intent:`neutral`,class:`border-form bg-form text-strong focus-visible:border-accent-600 focus-visible:ring-focus-accent not-disabled:hover:border-neutral-400 not-disabled:hover:bg-form-hover not-disabled:hover:text-strong focus-visible:not-disabled:hover:border-accent-600 focus-visible:not-disabled:active:border-accent-600`}]});export{n as t};
|
package/dist/button.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as ButtonIntent } from "./
|
|
2
|
-
import { n as ButtonAppearance, r as ButtonProps, t as Button } from "./button-
|
|
3
|
-
import { n as
|
|
4
|
-
import { n as ButtonGroupProps, t as ButtonGroup } from "./
|
|
5
|
-
import { t as ButtonSize } from "./
|
|
1
|
+
import { t as ButtonIntent } from "./button-DdSKSj1c.js";
|
|
2
|
+
import { n as ButtonAppearance, r as ButtonProps, t as Button } from "./button-DARFK2KJ.js";
|
|
3
|
+
import { n as IconButtonProps, r as IconButtonAppearance, t as IconButton } from "./button-C7vAl6lS.js";
|
|
4
|
+
import { n as ButtonGroupProps, t as ButtonGroup } from "./button-C-gMbPso.js";
|
|
5
|
+
import { t as ButtonSize } from "./button-BCoI4bhP.js";
|
|
6
6
|
export { Button, type ButtonAppearance, ButtonGroup, type ButtonGroupProps, type ButtonIntent, type ButtonProps, type ButtonSize, IconButton, type IconButtonAppearance, type IconButtonProps };
|
package/dist/button.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./
|
|
1
|
+
import{t as e}from"./button-BAno7KIU.js";import{t}from"./button-DjpEKt2X.js";import{t as n}from"./button-D9n09xUg.js";export{t as Button,n as ButtonGroup,e as IconButton};
|
package/dist/calendar.d.ts
CHANGED
|
@@ -28,8 +28,5 @@ type CalendarProps = ComponentProps<typeof DayPicker>;
|
|
|
28
28
|
* https://github.com/ngrok/mantle/issues
|
|
29
29
|
*/
|
|
30
30
|
declare function Calendar({ className, classNames, showOutsideDays, ...props }: CalendarProps): import("react").JSX.Element;
|
|
31
|
-
declare namespace Calendar {
|
|
32
|
-
var displayName: string;
|
|
33
|
-
}
|
|
34
31
|
//#endregion
|
|
35
32
|
export { Calendar, type CalendarProps, type DateRange };
|
package/dist/calendar.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./icon-lZ48P8Nn.js";import{t as n}from"./button-DvHMWAPl.js";import{jsx as r}from"react/jsx-runtime";import{CaretRightIcon as i}from"@phosphor-icons/react/CaretRight";import{CaretLeftIcon as a}from"@phosphor-icons/react/CaretLeft";import{DayPicker as o}from"react-day-picker";const s=n({appearance:`ghost`,intent:`neutral`,size:`sm`});function c({className:n,classNames:c,showOutsideDays:l=!1,...u}){return r(o,{"data-slot":`calendar`,animate:!1,components:{Chevron:e=>r(t,{svg:e.orientation===`left`?r(a,{}):r(i,{}),className:`size-4`})},classNames:{root:e(`isolate`,n),button_next:e(s,`absolute right-0`),button_previous:e(s,`absolute left-0`),caption_label:`text-sm font-medium`,day:e(`overflow-hidden text-center text-sm p-0 relative focus-within:relative focus-within:z-20 size-7 rounded-md`,u.mode===`range`?`first:has-aria-selected:rounded-l-md last:has-aria-selected:rounded-r-md`:``),day_button:`day size-full rounded-md not-aria-selected:not-disabled:hover:bg-filled-accent/15`,disabled:`text-muted opacity-50`,hidden:`invisible`,month:`space-y-4`,month_caption:`flex justify-center pt-1 relative items-center`,month_grid:`w-full border-collapse space-y-1`,months:`flex flex-col sm:flex-row gap-y-4 sm:gap-x-4 sm:gap-y-0 relative max-w-min`,nav:`flex items-center absolute inset-x-0 top-1 h-5 justify-between z-10`,outside:`day-outside aria-selected:text-on-filled opacity-50 text-muted`,range_end:`day-range-end [&:not(.day-range-start)]:rounded-l-none`,range_middle:`day-range-middle not-disabled:aria-selected:bg-filled-accent/15 aria-selected:text-strong rounded-none not-disabled:aria-selected:hover:bg-filled-accent/25`,range_start:`day-range-start [&:not(.day-range-end)]:rounded-r-none`,selected:`not-disabled:bg-filled-accent text-on-filled not-disabled:hover:bg-filled-accent`,today:`not-aria-selected:not-disabled:text-accent-600 font-medium not-aria-selected:not-disabled:bg-filled-accent/10 rounded-md`,week:`flex w-full mt-1`,weekday:`text-body w-7 text-[0.8rem] text-center font-normal`,weekdays:`flex`,...c},showOutsideDays:l,...u})}export{c as Calendar};
|