@ngrok/mantle 0.81.0 → 0.82.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 +6 -6
- package/dist/accordion.js +1 -1
- package/dist/agent.json +4 -1
- package/dist/alert-BWwNPOMI.d.ts +391 -0
- package/dist/alert-QMs0PqMq.js +1 -0
- package/dist/alert-center.d.ts +449 -0
- package/dist/alert-center.js +1 -0
- package/dist/alert-dialog.js +1 -1
- package/dist/alert.d.ts +1 -288
- package/dist/alert.js +1 -1
- package/dist/{anchor-DfeXTpKW.js → anchor-DvbNsphX.js} +1 -1
- package/dist/anchor.js +1 -1
- package/dist/app-layout.d.ts +483 -0
- package/dist/app-layout.js +1 -0
- package/dist/area-chart.d.ts +4 -3
- package/dist/area-chart.js +1 -1
- package/dist/badge.js +1 -1
- package/dist/bar-chart.d.ts +4 -3
- package/dist/bar-chart.js +1 -1
- package/dist/breadcrumb.d.ts +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/browser-only-CmEEzfU3.js +1 -0
- package/dist/browser-only.js +1 -1
- package/dist/{button-D9n09xUg.js → button-BO2CKsz6.js} +1 -1
- package/dist/{button-DjpEKt2X.js → button-BUospUB3.js} +1 -1
- package/dist/{button-BAno7KIU.js → button-C0S8RbaJ.js} +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.d.ts +1 -1
- package/dist/calendar.js +1 -1
- package/dist/card.js +1 -1
- package/dist/centered-layout.d.ts +9 -9
- package/dist/centered-layout.js +1 -1
- package/dist/{chart-BcOC6Qj0.d.ts → chart-1cVjAcj8.d.ts} +81 -22
- package/dist/chart-DdBQ3xwx.js +2 -0
- package/dist/checkbox.d.ts +12 -0
- package/dist/{choice-BHwFSSyv.js → choice-C9gLKECf.js} +1 -1
- package/dist/choice.js +1 -1
- package/dist/code-block.d.ts +46 -0
- package/dist/code-block.js +1 -1
- package/dist/code.js +1 -1
- package/dist/combobox.js +1 -1
- package/dist/command.d.ts +67 -9
- package/dist/command.js +1 -1
- package/dist/{copy-to-clipboard-BsCQ9m6K.js → copy-to-clipboard-B4UB6pts.js} +1 -1
- package/dist/data-slot-EM6s2WEU.js +1 -0
- package/dist/data-table.d.ts +1 -1
- package/dist/data-table.js +1 -1
- package/dist/description-list.d.ts +36 -16
- package/dist/description-list.js +1 -1
- package/dist/{dialog-DWZWd5Jt.js → dialog-Bsj_dX6r.js} +1 -1
- package/dist/dialog.d.ts +1 -1
- package/dist/dialog.js +1 -1
- package/dist/dropdown-menu-BbbQuae2.d.ts +1 -0
- package/dist/{dropdown-menu-DZg-Cd69.d.ts → dropdown-menu-D6pMAY7I.d.ts} +138 -0
- package/dist/dropdown-menu-fUMqjRC0.js +1 -0
- package/dist/dropdown-menu.d.ts +2 -2
- package/dist/dropdown-menu.js +1 -1
- package/dist/empty.js +1 -1
- package/dist/field.d.ts +12 -9
- package/dist/field.js +1 -1
- package/dist/flag.d.ts +1 -1
- package/dist/hooks.js +1 -1
- package/dist/{icons-DLCs1hLP.js → icons-CPbOq7cF.js} +1 -1
- package/dist/icons.d.ts +52 -1
- package/dist/icons.js +1 -1
- package/dist/input.js +1 -1
- package/dist/line-chart.d.ts +4 -3
- package/dist/line-chart.js +1 -1
- package/dist/{list-51KQvENW.js → list-CQFWx6Z8.js} +1 -1
- package/dist/list.js +1 -1
- package/dist/llms.txt +4 -1
- package/dist/main.d.ts +4 -1
- package/dist/main.js +1 -1
- package/dist/mantle.css +21 -1
- package/dist/media-object.d.ts +42 -0
- package/dist/media-object.js +1 -1
- package/dist/multi-select.d.ts +10 -2
- package/dist/multi-select.js +1 -1
- package/dist/otp-input.js +1 -1
- package/dist/pagination.d.ts +6 -7
- package/dist/pagination.js +1 -1
- package/dist/{primitive-trJDqIXJ.js → primitive-Dv-3snU3.js} +1 -1
- package/dist/progress.d.ts +8 -8
- package/dist/qr-code.js +1 -1
- package/dist/radio-group.d.ts +129 -0
- 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 +4 -3
- package/dist/scatter-plot.js +1 -1
- package/dist/{select-BCHWvmyC.js → select-B-9yWrif.js} +1 -1
- package/dist/select.js +1 -1
- package/dist/selectable-list.js +1 -1
- package/dist/{separator-bpE_kooz.js → separator-BepAcFFy.js} +1 -1
- package/dist/separator.js +1 -1
- package/dist/sheet-_fXLjiq2.js +1 -0
- package/dist/sheet.d.ts +11 -11
- package/dist/sheet.js +1 -1
- package/dist/sidebar.d.ts +2084 -0
- package/dist/sidebar.js +1 -0
- package/dist/{skeleton-CsbUHbBA.js → skeleton-DsHXIa9j.js} +1 -1
- package/dist/skeleton.js +1 -1
- package/dist/skip-to-main-link.js +1 -1
- package/dist/slot-Dpsqz16D.js +1 -0
- package/dist/slot.js +1 -1
- package/dist/split-button.d.ts +147 -8
- package/dist/split-button.js +1 -1
- package/dist/{table-Bo0vNxIJ.d.ts → table-CZBYEmyK.d.ts} +2 -2
- package/dist/table.d.ts +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text-area.d.ts +1 -1
- package/dist/{theme-CYNpplwN.d.ts → theme-FbfjYiD3.d.ts} +16 -0
- package/dist/{theme-C26-Xolp.js → theme-IAnQ35bd.js} +1 -1
- package/dist/theme-switcher.d.ts +2 -2
- package/dist/theme-switcher.js +1 -1
- package/dist/theme.d.ts +42 -2
- package/dist/theme.js +1 -1
- package/dist/toast.d.ts +4 -0
- package/dist/toast.js +1 -1
- package/dist/types.js +1 -1
- package/dist/use-breakpoint-Wd7_5-Mu.js +1 -0
- package/dist/use-copy-to-clipboard-CSyp4Zk0.js +1 -0
- package/dist/use-is-hydrated-DDCqXmju.js +1 -0
- package/dist/{use-prefers-reduced-motion-CagaNRgm.js → use-prefers-reduced-motion-Bk5zAfHY.js} +1 -1
- package/dist/utils.js +1 -1
- package/dist/well.js +1 -1
- package/package.json +18 -15
- package/dist/browser-only-CPH56Xw_.js +0 -1
- package/dist/chart-BROa2gqt.js +0 -2
- package/dist/dropdown-menu-Dw-OtXPm.d.ts +0 -1
- package/dist/dropdown-menu-RyDWoKHx.js +0 -1
- package/dist/slot-CDk0Bb9z.js +0 -1
- package/dist/use-copy-to-clipboard-DqQ0_N3E.js +0 -1
package/dist/pagination.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { n as WithAsChild } from "./as-child-D23mGo4f.js";
|
|
2
1
|
import { t as ButtonGroup } from "./button-C-gMbPso.js";
|
|
3
2
|
import { t as Select } from "./select-0z7HVS6r.js";
|
|
4
3
|
import { ComponentProps } from "react";
|
|
@@ -22,7 +21,7 @@ type CursorPaginationProps = ComponentProps<"div"> & {
|
|
|
22
21
|
*
|
|
23
22
|
* @example
|
|
24
23
|
* ```tsx
|
|
25
|
-
* <CursorPagination defaultPageSize={10}>
|
|
24
|
+
* <CursorPagination.Root defaultPageSize={10}>
|
|
26
25
|
* <CursorPagination.Buttons
|
|
27
26
|
* hasNextPage={hasNext}
|
|
28
27
|
* hasPreviousPage={hasPrevious}
|
|
@@ -30,7 +29,7 @@ type CursorPaginationProps = ComponentProps<"div"> & {
|
|
|
30
29
|
* onPreviousPage={handlePrevious}
|
|
31
30
|
* />
|
|
32
31
|
* <CursorPagination.PageSizeSelect />
|
|
33
|
-
* </CursorPagination>
|
|
32
|
+
* </CursorPagination.Root>
|
|
34
33
|
* ```
|
|
35
34
|
*/
|
|
36
35
|
declare const Root: ({ className, children, defaultPageSize, ref, ...props }: CursorPaginationProps) => import("react").JSX.Element;
|
|
@@ -93,7 +92,7 @@ type CursorPageSizeSelectProps = Omit<ComponentProps<typeof Select.Trigger>, "ch
|
|
|
93
92
|
* ```
|
|
94
93
|
*/
|
|
95
94
|
declare const PageSizeSelect: ({ className, pageSizes, onChangePageSize, ref, ...rest }: CursorPageSizeSelectProps) => import("react").JSX.Element;
|
|
96
|
-
type CursorPageSizeValueProps = Omit<ComponentProps<"span">, "children"
|
|
95
|
+
type CursorPageSizeValueProps = Omit<ComponentProps<"span">, "children">;
|
|
97
96
|
/**
|
|
98
97
|
* Displays the current page size when using cursor-based pagination as a read-only value.
|
|
99
98
|
*
|
|
@@ -107,7 +106,7 @@ type CursorPageSizeValueProps = Omit<ComponentProps<"span">, "children"> & WithA
|
|
|
107
106
|
* </div>
|
|
108
107
|
* ```
|
|
109
108
|
*/
|
|
110
|
-
declare function PageSizeValue({
|
|
109
|
+
declare function PageSizeValue({ className, ...props }: CursorPageSizeValueProps): import("react").JSX.Element;
|
|
111
110
|
/**
|
|
112
111
|
* A pagination component for use with cursor-based pagination.
|
|
113
112
|
*
|
|
@@ -130,7 +129,7 @@ declare function PageSizeValue({ asChild, className, ...props }: CursorPageSizeV
|
|
|
130
129
|
*
|
|
131
130
|
* @example
|
|
132
131
|
* ```tsx
|
|
133
|
-
* <CursorPagination defaultPageSize={10}>
|
|
132
|
+
* <CursorPagination.Root defaultPageSize={10}>
|
|
134
133
|
* <CursorPagination.Buttons
|
|
135
134
|
* hasNextPage={hasNext}
|
|
136
135
|
* hasPreviousPage={hasPrevious}
|
|
@@ -138,7 +137,7 @@ declare function PageSizeValue({ asChild, className, ...props }: CursorPageSizeV
|
|
|
138
137
|
* onPreviousPage={handlePrevious}
|
|
139
138
|
* />
|
|
140
139
|
* <CursorPagination.PageSizeSelect />
|
|
141
|
-
* </CursorPagination>
|
|
140
|
+
* </CursorPagination.Root>
|
|
142
141
|
* ```
|
|
143
142
|
*/
|
|
144
143
|
declare const CursorPagination: {
|
package/dist/pagination.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./button-C0S8RbaJ.js";import{t as n}from"./button-BO2CKsz6.js";import{n as r}from"./separator-BepAcFFy.js";import{t as i}from"./select-B-9yWrif.js";import{createContext as a,useContext as o,useEffect as s,useMemo as c,useState as l}from"react";import u from"tiny-invariant";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{CaretRightIcon as p}from"@phosphor-icons/react/CaretRight";import{CaretLeftIcon as m}from"@phosphor-icons/react/CaretLeft";const h=a(void 0),g=({className:t,children:n,defaultPageSize:r,ref:i,...a})=>{let[o,s]=l(r),u=c(()=>({defaultPageSize:r,pageSize:o,setPageSize:s}),[r,o]);return d(h.Provider,{value:u,children:d(`div`,{"data-slot":`cursor-pagination`,className:e(`inline-flex items-center justify-between gap-2`,t),ref:i,...a,children:n})})},_=({hasNextPage:e,hasPreviousPage:i,onNextPage:a,onPreviousPage:o,ref:s,...c})=>f(n,{"data-slot":`cursor-pagination-buttons`,appearance:`panel`,ref:s,...c,children:[d(t,{"data-slot":`cursor-pagination-previous`,appearance:`ghost`,disabled:!i,icon:d(m,{}),intent:`neutral`,label:`Previous page`,onClick:o,size:`sm`,type:`button`}),d(r,{"data-slot":`cursor-pagination-separator`,orientation:`vertical`,className:`min-h-5`}),d(t,{"data-slot":`cursor-pagination-next`,appearance:`ghost`,disabled:!e,icon:d(p,{}),intent:`neutral`,label:`Next page`,onClick:a,size:`sm`,type:`button`})]}),v=[5,10,20,50,100],y=({className:t,pageSizes:n=v,onChangePageSize:r,ref:a,...s})=>{let c=o(h);return u(c,`CursorPageSizeSelect must be used as a child of a CursorPagination component`),u(n.includes(c.defaultPageSize),`CursorPagination.defaultPageSize must be included in CursorPageSizeSelect.pageSizes`),u(n.includes(c.pageSize),`CursorPagination.pageSize must be included in CursorPageSizeSelect.pageSizes`),f(i.Root,{defaultValue:`${c.pageSize}`,onValueChange:e=>{let t=Number.parseInt(e,10);Number.isNaN(t)&&(t=c.defaultPageSize),c.setPageSize(t),r?.(t)},children:[d(i.Trigger,{ref:a,"data-slot":`cursor-pagination-page-size-select`,className:e(`w-auto min-w-36`,t),value:c.pageSize,...s,children:d(i.Value,{})}),d(i.Content,{width:`trigger`,children:n.map(e=>f(i.Item,{value:`${e}`,children:[e,` per page`]},e))})]})};function b({className:t,...n}){let r=o(h);return u(r,`CursorPageSizeValue must be used as a child of a CursorPagination component`),f(`span`,{"data-slot":`cursor-pagination-page-size-value`,className:e(`text-muted text-sm font-normal`,t),...n,children:[r.pageSize,` per page`]})}const x={Root:g,Buttons:_,PageSizeSelect:y,PageSizeValue:b};function S({listSize:e,pageSize:t}){let[n,r]=l(1),[i,a]=l(t);s(()=>{a(t),r(1)},[t]),s(()=>{r(1)},[e]);let o=Math.ceil(e/i),c=(n-1)*i,u=n>1,d=n<o;function f(e){r(Math.max(1,Math.min(e,o)))}function p(){d&&r(e=>Math.min(e+1,o))}function m(){u&&r(e=>Math.max(e-1,1))}function h(e){a(e),r(1)}function g(){r(o)}function _(){r(1)}return{currentPage:n,goToFirstPage:_,goToLastPage:g,goToPage:f,hasNextPage:d,hasPreviousPage:u,nextPage:p,offset:c,pageSize:i,previousPage:m,setPageSize:h,totalPages:o}}function C(e,t){return e.slice(t.offset,t.offset+t.pageSize)}export{x as CursorPagination,C as getOffsetPaginatedSlice,S as useOffsetPagination};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./slot-
|
|
1
|
+
import{t as e}from"./slot-Dpsqz16D.js";import{t}from"./booleanish-BfvnW6vy.js";import{createContext as n,useContext as r,useEffect as i,useMemo as a,useState as o}from"react";import{jsx as s}from"react/jsx-runtime";import*as c from"@radix-ui/react-dialog";function l(e){e.target instanceof Element&&e.target.closest(`.overlay-prompt`)&&e.preventDefault()}const u=n({hasDescription:!1,setHasDescription:()=>{}});function d(e){let[t,n]=o(!1),r=a(()=>({hasDescription:t,setHasDescription:n}),[t]);return s(u.Provider,{value:r,children:s(c.Root,{...e})})}const f=c.Trigger,p=c.Portal,m=c.Close,h=e=>s(c.Overlay,{"data-overlay":!0,...e}),g=({onEscapeKeyDown:e,onInteractOutside:t,onPointerDownOutside:n,ref:i,...a})=>{let o=r(u);return s(c.Content,{ref:i,onEscapeKeyDown:t=>{b(t),e?.(t)},onInteractOutside:e=>{l(e),t?.(e)},onPointerDownOutside:e=>{l(e),n?.(e)},...o.hasDescription?{}:{"aria-describedby":void 0},...a})},_=c.Title,v=({asChild:t,children:n,ref:a,...o})=>{let l=r(u);i(()=>(l.setHasDescription(!0),()=>l.setHasDescription(!1)),[l]);let d=t?e:`div`;return s(c.Description,{ref:a,asChild:!0,children:s(d,{...o,children:n})})};function y(e){return e instanceof HTMLElement&&e.hasAttribute(`data-overlay`)}function b(e){if(!w(e.currentTarget))return;let n=e.currentTarget,r=n instanceof Document?n.activeElement:n.ownerDocument?.activeElement??null,i=x(e.target)??x(r),a=i?S(i):null;i!=null&&t(i.getAttribute(`aria-expanded`))&&a!=null&&n.contains(i)&&n.contains(a)&&(a.getAttribute(`data-open`)===`true`||a.getAttribute(`data-state`)===`open`)&&e.preventDefault()}function x(e){return C(e)?e.closest(`[aria-expanded='true'][aria-controls]`):null}function S(e){let t=e.getAttribute(`aria-controls`);if(!t)return null;let n=e.ownerDocument.getElementById(t);return n instanceof HTMLElement?n:null}function C(e){return e instanceof HTMLElement}function w(e){return e instanceof Node&&`querySelector`in e}export{p as a,f as c,h as i,y as l,g as n,d as o,v as r,_ as s,m as t};
|
package/dist/progress.d.ts
CHANGED
|
@@ -49,7 +49,7 @@ type Props = SvgAttributes & {
|
|
|
49
49
|
* The indicator color is inherited via `currentColor`. Override the default
|
|
50
50
|
* (`accent-600`) by setting the `ProgressDonut.Indicator`'s text color.
|
|
51
51
|
*
|
|
52
|
-
* @see https://mantle.ngrok.com/components/feedback/progress-donut#
|
|
52
|
+
* @see https://mantle.ngrok.com/components/feedback/progress-donut#progressdonutroot
|
|
53
53
|
*
|
|
54
54
|
* @example
|
|
55
55
|
* ```tsx
|
|
@@ -67,7 +67,7 @@ type ProgressDonutIndicatorProps = Omit<ComponentProps<"g">, "children">;
|
|
|
67
67
|
/**
|
|
68
68
|
* The indicator for the circular progress bar.
|
|
69
69
|
*
|
|
70
|
-
* @see https://mantle.ngrok.com/components/feedback/progress-donut#
|
|
70
|
+
* @see https://mantle.ngrok.com/components/feedback/progress-donut#progressdonutindicator
|
|
71
71
|
*
|
|
72
72
|
* @example
|
|
73
73
|
* ```tsx
|
|
@@ -114,7 +114,7 @@ declare const ProgressDonut: {
|
|
|
114
114
|
* The indicator color is inherited via `currentColor`. Override the default
|
|
115
115
|
* (`accent-600`) by setting the `ProgressDonut.Indicator`'s text color.
|
|
116
116
|
*
|
|
117
|
-
* @see https://mantle.ngrok.com/components/feedback/progress-donut#
|
|
117
|
+
* @see https://mantle.ngrok.com/components/feedback/progress-donut#progressdonutroot
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
120
120
|
* ```tsx
|
|
@@ -131,7 +131,7 @@ declare const ProgressDonut: {
|
|
|
131
131
|
/**
|
|
132
132
|
* The indicator for the circular progress bar.
|
|
133
133
|
*
|
|
134
|
-
* @see https://mantle.ngrok.com/components/feedback/progress-donut#
|
|
134
|
+
* @see https://mantle.ngrok.com/components/feedback/progress-donut#progressdonutindicator
|
|
135
135
|
*
|
|
136
136
|
* @example
|
|
137
137
|
* ```tsx
|
|
@@ -173,7 +173,7 @@ type RootProps = ComponentProps<"div"> & {
|
|
|
173
173
|
* A horizontal progress bar that shows the completion progress of a task.
|
|
174
174
|
* Use this component for linear progress indication.
|
|
175
175
|
*
|
|
176
|
-
* @see https://mantle.ngrok.com/components/feedback/progress-bar#
|
|
176
|
+
* @see https://mantle.ngrok.com/components/feedback/progress-bar#progressbarroot
|
|
177
177
|
*
|
|
178
178
|
* @example
|
|
179
179
|
* ```tsx
|
|
@@ -199,7 +199,7 @@ type IndicatorProps = ComponentProps<typeof ProgressPrimitive.Indicator>;
|
|
|
199
199
|
* The visual indicator that shows the actual progress within the progress bar.
|
|
200
200
|
* This component should be used inside a ProgressBar.Root component.
|
|
201
201
|
*
|
|
202
|
-
* @see https://mantle.ngrok.com/components/feedback/progress-bar#
|
|
202
|
+
* @see https://mantle.ngrok.com/components/feedback/progress-bar#progressbarindicator
|
|
203
203
|
*
|
|
204
204
|
* @example
|
|
205
205
|
* ```tsx
|
|
@@ -252,7 +252,7 @@ declare const ProgressBar: {
|
|
|
252
252
|
* A horizontal progress bar that shows the completion progress of a task.
|
|
253
253
|
* Use this component for linear progress indication.
|
|
254
254
|
*
|
|
255
|
-
* @see https://mantle.ngrok.com/components/feedback/progress-bar#
|
|
255
|
+
* @see https://mantle.ngrok.com/components/feedback/progress-bar#progressbarroot
|
|
256
256
|
*
|
|
257
257
|
* @example
|
|
258
258
|
* ```tsx
|
|
@@ -277,7 +277,7 @@ declare const ProgressBar: {
|
|
|
277
277
|
* The visual indicator that shows the actual progress within the progress bar.
|
|
278
278
|
* This component should be used inside a ProgressBar.Root component.
|
|
279
279
|
*
|
|
280
|
-
* @see https://mantle.ngrok.com/components/feedback/progress-bar#
|
|
280
|
+
* @see https://mantle.ngrok.com/components/feedback/progress-bar#progressbarindicator
|
|
281
281
|
*
|
|
282
282
|
* @example
|
|
283
283
|
* ```tsx
|
package/dist/qr-code.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./slot-
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./slot-Dpsqz16D.js";import{createContext as n,useContext as r,useMemo as i}from"react";import a from"tiny-invariant";import{jsx as o}from"react/jsx-runtime";import{encode as s}from"uqr";const c=n(null);function l(e,t){a(Number.isFinite(e)&&e>0,"`QrCode.Root` pixelSize must be a finite number greater than 0."),a(Number.isInteger(t)&&t>=0,"`QrCode.Root` quietZone must be a non-negative integer.")}function u(){let e=r(c);return a(e,"`QrCode.Frame` and `QrCode.Pattern` must be rendered inside a `QrCode.Root`."),e}function d(e,t){let n=[];return e.forEach((e,r)=>{e.forEach((e,i)=>{if(e){let e=i*t,a=r*t;n.push(`M${e},${a}h${t}v${t}h-${t}z`)}})}),n.join(``)}const f={Root:({value:n,ecc:r=`L`,pixelSize:a=10,quietZone:u=4,asChild:f,className:p,children:m,ref:h,...g})=>{l(a,u);let _=i(()=>s(n,{ecc:r,border:u}),[n,r,u]),v=i(()=>d(_.data,a),[_,a]),y=i(()=>({path:v,dimension:_.size*a}),[v,_.size,a]),b=f?t:`div`;return o(c.Provider,{value:y,children:o(b,{ref:h,...g,"data-slot":`qr-code`,className:e(`relative inline-flex bg-static-white text-static-black`,p),children:m})})},Frame:({className:t,children:n,ref:r,...i})=>{let{dimension:a}=u();return o(`svg`,{ref:r,...i,"data-slot":`qr-code-frame`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 ${a} ${a}`,shapeRendering:`crispEdges`,className:e(`block size-48`,t),children:n})},Pattern:({className:t,ref:n,...r})=>{let{path:i}=u();return o(`path`,{ref:n,...r,"data-slot":`qr-code-pattern`,d:i,className:e(`fill-static-black`,t)})},Overlay:({asChild:n,className:r,ref:i,...a})=>o(n?t:`div`,{ref:i,...a,"data-slot":`qr-code-overlay`,className:e(`absolute left-1/2 top-1/2 flex -translate-x-1/2 -translate-y-1/2 items-center justify-center rounded-md bg-static-white text-static-black p-1.5`,r)})};export{f as QrCode};
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -93,6 +93,26 @@ type RadioIndicatorProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
|
93
93
|
declare const Indicator: ({ children, className, ...props }: RadioIndicatorProps) => import("react").JSX.Element;
|
|
94
94
|
/**
|
|
95
95
|
* A group of radio list items. Use RadioGroup.ListItem as direct children.
|
|
96
|
+
*
|
|
97
|
+
* @see https://mantle.ngrok.com/components/forms/radio-group#radiogrouplist
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```tsx
|
|
101
|
+
* <RadioGroup.Root defaultValue="option1">
|
|
102
|
+
* <RadioGroup.List>
|
|
103
|
+
* <RadioGroup.ListItem value="option1">
|
|
104
|
+
* <RadioGroup.ItemContent>
|
|
105
|
+
* <Text>Option 1</Text>
|
|
106
|
+
* </RadioGroup.ItemContent>
|
|
107
|
+
* </RadioGroup.ListItem>
|
|
108
|
+
* <RadioGroup.ListItem value="option2">
|
|
109
|
+
* <RadioGroup.ItemContent>
|
|
110
|
+
* <Text>Option 2</Text>
|
|
111
|
+
* </RadioGroup.ItemContent>
|
|
112
|
+
* </RadioGroup.ListItem>
|
|
113
|
+
* </RadioGroup.List>
|
|
114
|
+
* </RadioGroup.Root>
|
|
115
|
+
* ```
|
|
96
116
|
*/
|
|
97
117
|
declare const List: ({ className, ref, ...props }: RadioGroupProps$1) => import("react").JSX.Element;
|
|
98
118
|
type RadioListItemProps = RadioItemProps;
|
|
@@ -103,6 +123,28 @@ type RadioListItemProps = RadioItemProps;
|
|
|
103
123
|
* `Field.Set` / `Field.Legend` composition), picks up `aria-invalid` and
|
|
104
124
|
* `aria-errormessage` from `FieldControlContext`. `aria-describedby` is owned
|
|
105
125
|
* by Headless UI's Radio primitive and does not propagate.
|
|
126
|
+
*
|
|
127
|
+
* @see https://mantle.ngrok.com/components/forms/radio-group#radiogrouplistitem
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```tsx
|
|
131
|
+
* <RadioGroup.Root defaultValue="item1">
|
|
132
|
+
* <RadioGroup.List>
|
|
133
|
+
* <RadioGroup.ListItem value="item1">
|
|
134
|
+
* <RadioGroup.ItemContent>
|
|
135
|
+
* <Text>List Item 1</Text>
|
|
136
|
+
* <Text size="sm" className="text-muted">First option</Text>
|
|
137
|
+
* </RadioGroup.ItemContent>
|
|
138
|
+
* </RadioGroup.ListItem>
|
|
139
|
+
* <RadioGroup.ListItem value="item2">
|
|
140
|
+
* <RadioGroup.ItemContent>
|
|
141
|
+
* <Text>List Item 2</Text>
|
|
142
|
+
* <Text size="sm" className="text-muted">Second option</Text>
|
|
143
|
+
* </RadioGroup.ItemContent>
|
|
144
|
+
* </RadioGroup.ListItem>
|
|
145
|
+
* </RadioGroup.List>
|
|
146
|
+
* </RadioGroup.Root>
|
|
147
|
+
* ```
|
|
106
148
|
*/
|
|
107
149
|
declare const ListItem: ({ children, className, ref, ...props }: RadioListItemProps) => import("react").JSX.Element;
|
|
108
150
|
type RadioItemContentProps = HTMLAttributes<HTMLDivElement> & WithAsChild;
|
|
@@ -114,11 +156,48 @@ type RadioCardProps = RadioItemProps;
|
|
|
114
156
|
* `Field.Set` / `Field.Legend` composition), picks up `aria-invalid` and
|
|
115
157
|
* `aria-errormessage` from `FieldControlContext`. `aria-describedby` is owned
|
|
116
158
|
* by Headless UI's Radio primitive and does not propagate.
|
|
159
|
+
*
|
|
160
|
+
* @see https://mantle.ngrok.com/components/forms/radio-group#radiogroupcard
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* ```tsx
|
|
164
|
+
* <RadioGroup.Root defaultValue="basic">
|
|
165
|
+
* <div className="space-y-3">
|
|
166
|
+
* <RadioGroup.Card value="basic">
|
|
167
|
+
* <RadioGroup.ItemContent>
|
|
168
|
+
* <Text weight="strong">Basic Plan</Text>
|
|
169
|
+
* <Text>$10/month</Text>
|
|
170
|
+
* </RadioGroup.ItemContent>
|
|
171
|
+
* </RadioGroup.Card>
|
|
172
|
+
* <RadioGroup.Card value="pro">
|
|
173
|
+
* <RadioGroup.ItemContent>
|
|
174
|
+
* <Text weight="strong">Pro Plan</Text>
|
|
175
|
+
* <Text>$25/month</Text>
|
|
176
|
+
* </RadioGroup.ItemContent>
|
|
177
|
+
* </RadioGroup.Card>
|
|
178
|
+
* </div>
|
|
179
|
+
* </RadioGroup.Root>
|
|
180
|
+
* ```
|
|
117
181
|
*/
|
|
118
182
|
declare const Card: ({ children, className, ref, ...props }: RadioCardProps) => import("react").JSX.Element;
|
|
119
183
|
/**
|
|
120
184
|
* The content of any radio item. Use it to wrap any labels, descriptions, or content of a radio item.
|
|
121
185
|
* Use it as a child of `RadioGroup.Item`, `RadioGroup.ListItem`, or `RadioGroup.Card`.
|
|
186
|
+
*
|
|
187
|
+
* @see https://mantle.ngrok.com/components/forms/radio-group#radiogroupitemcontent
|
|
188
|
+
*
|
|
189
|
+
* @example
|
|
190
|
+
* ```tsx
|
|
191
|
+
* <RadioGroup.Root defaultValue="option1">
|
|
192
|
+
* <RadioGroup.Item value="option1">
|
|
193
|
+
* <RadioGroup.Indicator />
|
|
194
|
+
* <RadioGroup.ItemContent>
|
|
195
|
+
* <Text weight="strong">Option 1</Text>
|
|
196
|
+
* <Text size="sm">Description for option 1</Text>
|
|
197
|
+
* </RadioGroup.ItemContent>
|
|
198
|
+
* </RadioGroup.Item>
|
|
199
|
+
* </RadioGroup.Root>
|
|
200
|
+
* ```
|
|
122
201
|
*/
|
|
123
202
|
declare const ItemContent: ({ asChild, children, className, ...props }: RadioItemContentProps) => import("react").JSX.Element;
|
|
124
203
|
/**
|
|
@@ -126,6 +205,18 @@ declare const ItemContent: ({ asChild, children, className, ...props }: RadioIte
|
|
|
126
205
|
* Renders the radio group itself (it wraps `Root`) — use it *in place of*
|
|
127
206
|
* `RadioGroup.Root`, never nested inside one, or the buttons bind to an
|
|
128
207
|
* inner, uncontrolled group and outer `value`/`onChange` props are ignored.
|
|
208
|
+
*
|
|
209
|
+
* @see https://mantle.ngrok.com/components/forms/radio-group#radiogroupbuttongroup
|
|
210
|
+
*
|
|
211
|
+
* @example
|
|
212
|
+
* ```tsx
|
|
213
|
+
* <Label id="size-label">Size</Label>
|
|
214
|
+
* <RadioGroup.ButtonGroup aria-labelledby="size-label" defaultValue="small">
|
|
215
|
+
* <RadioGroup.Button value="small">Small</RadioGroup.Button>
|
|
216
|
+
* <RadioGroup.Button value="medium">Medium</RadioGroup.Button>
|
|
217
|
+
* <RadioGroup.Button value="large">Large</RadioGroup.Button>
|
|
218
|
+
* </RadioGroup.ButtonGroup>
|
|
219
|
+
* ```
|
|
129
220
|
*/
|
|
130
221
|
declare const ButtonGroup: ({ className, ref, ...props }: RadioGroupProps$1) => import("react").JSX.Element;
|
|
131
222
|
type RadioButtonProps = RadioItemProps;
|
|
@@ -136,12 +227,40 @@ type RadioButtonProps = RadioItemProps;
|
|
|
136
227
|
* `Field.Set` / `Field.Legend` composition), picks up `aria-invalid` and
|
|
137
228
|
* `aria-errormessage` from `FieldControlContext`. `aria-describedby` is owned
|
|
138
229
|
* by Headless UI's Radio primitive and does not propagate.
|
|
230
|
+
*
|
|
231
|
+
* @see https://mantle.ngrok.com/components/forms/radio-group#radiogroupbutton
|
|
232
|
+
*
|
|
233
|
+
* @example
|
|
234
|
+
* ```tsx
|
|
235
|
+
* <RadioGroup.ButtonGroup defaultValue="option1">
|
|
236
|
+
* <RadioGroup.Button value="option1">Option 1</RadioGroup.Button>
|
|
237
|
+
* <RadioGroup.Button value="option2">Option 2</RadioGroup.Button>
|
|
238
|
+
* <RadioGroup.Button value="option3">Option 3</RadioGroup.Button>
|
|
239
|
+
* </RadioGroup.ButtonGroup>
|
|
240
|
+
* ```
|
|
139
241
|
*/
|
|
140
242
|
declare const Button: ({ children, className, ref, ...props }: RadioButtonProps) => import("react").JSX.Element;
|
|
141
243
|
type RadioInputSandboxProps = HTMLAttributes<HTMLDivElement>;
|
|
142
244
|
/**
|
|
143
245
|
* A sandbox container for input elements composed within radio group items.
|
|
144
246
|
* It prevents the default behavior of the radio group when clicking on the input element or accepting keyboard input.
|
|
247
|
+
*
|
|
248
|
+
* @see https://mantle.ngrok.com/components/forms/radio-group#radiogroupinputsandbox
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* ```tsx
|
|
252
|
+
* <RadioGroup.Root defaultValue="custom">
|
|
253
|
+
* <RadioGroup.Item value="custom">
|
|
254
|
+
* <RadioGroup.Indicator />
|
|
255
|
+
* <RadioGroup.ItemContent>
|
|
256
|
+
* <Text>Custom amount</Text>
|
|
257
|
+
* <RadioGroup.InputSandbox>
|
|
258
|
+
* <Input type="number" placeholder="Enter amount" />
|
|
259
|
+
* </RadioGroup.InputSandbox>
|
|
260
|
+
* </RadioGroup.ItemContent>
|
|
261
|
+
* </RadioGroup.Item>
|
|
262
|
+
* </RadioGroup.Root>
|
|
263
|
+
* ```
|
|
145
264
|
*/
|
|
146
265
|
declare const InputSandbox: ({ children, onClick, onKeyDown, ...props }: RadioInputSandboxProps) => import("react").JSX.Element;
|
|
147
266
|
/**
|
|
@@ -172,6 +291,16 @@ declare const InputSandbox: ({ children, onClick, onKeyDown, ...props }: RadioIn
|
|
|
172
291
|
* RadioGroup.Root
|
|
173
292
|
* └── RadioGroup.Card
|
|
174
293
|
* └── RadioGroup.Indicator
|
|
294
|
+
*
|
|
295
|
+
* # Rich option layout (Choice)
|
|
296
|
+
* RadioGroup.Root
|
|
297
|
+
* └── RadioGroup.Item
|
|
298
|
+
* └── Choice.Root
|
|
299
|
+
* ├── Choice.Indicator
|
|
300
|
+
* │ └── RadioGroup.Indicator
|
|
301
|
+
* └── Choice.Content
|
|
302
|
+
* ├── Choice.Title
|
|
303
|
+
* └── Choice.Description
|
|
175
304
|
* ```
|
|
176
305
|
*
|
|
177
306
|
* @example
|
package/dist/radio-group.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./slot-
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./slot-Dpsqz16D.js";import{t as n}from"./clsx-DUGZgXfJ.js";import{t as r}from"./field-B1wqeZr4.js";import{t as i}from"./input-CXmS0OFN.js";import{Children as a,cloneElement as o,createContext as s,isValidElement as c,useContext as l,useRef as u}from"react";import{jsx as d}from"react/jsx-runtime";import{Radio as f,RadioGroup as p}from"@headlessui/react";const m=({ref:e,...t})=>d(p,{"data-slot":`radio-group`,...t,ref:e}),h=s({autofocus:!1,checked:!1,disabled:!1,focus:!1,hover:!1}),g=({children:t,className:n,ref:i,...a})=>{let o=l(r);return d(f,{"data-slot":`radio-group-item`,className:e(`group/radio cursor-pointer aria-disabled:cursor-default [&_label]:cursor-inherit flex gap-2 py-1 text-sm focus:outline-hidden`,n),as:`div`,...a,...o?{"aria-describedby":o[`aria-describedby`],"aria-errormessage":o[`aria-errormessage`],"aria-invalid":o[`aria-invalid`]}:void 0,ref:i,children:e=>d(h.Provider,{value:e,children:t})})},_=({checked:t,disabled:n,focus:r,hover:i})=>d(`span`,{className:e(`border-form flex size-4 items-center justify-center rounded-full border shrink-0`,n&&`cursor-default opacity-50`,t&&`border-accent-600 bg-accent-600`,r&&!n&&`border-accent-600 ring-focus-accent ring-4`,i&&`border-accent-600`),children:t&&d(`span`,{className:`size-2 rounded-full bg-white shrink-0`})}),v={Button:({children:t,className:n,ref:i,...a})=>{let o=l(r);return d(f,{as:`div`,"data-slot":`radio-group-button`,className:e(`group/radio border-form [&_label]:cursor-inherit relative flex flex-1 select-none items-center justify-center gap-2 border px-3 text-sm`,`h-9`,`focus-visible:ring-focus-accent not-aria-disabled:focus-visible:border-accent-600 focus-visible:ring-4`,`cursor-pointer aria-disabled:cursor-default focus:outline-hidden`,`first-of-type:rounded-bl-md first-of-type:rounded-tl-md last-of-type:rounded-br-md last-of-type:rounded-tr-md`,`not-aria-disabled:hover:z-1 not-aria-disabled:hover:border-accent-600 aria-disabled:opacity-50`,`aria-checked:z-1 aria-checked:border-accent-600/40 aria-checked:bg-accent-500/10 not-aria-disabled:hover:aria-checked:border-accent-600`,`has-[.radio-indicator:first-child]:pl-2 has-[.radio-indicator:last-child]:pr-2`,n),ref:i,...a,...o?{"aria-describedby":o[`aria-describedby`],"aria-errormessage":o[`aria-errormessage`],"aria-invalid":o[`aria-invalid`]}:void 0,children:e=>d(h.Provider,{value:e,children:t})})},ButtonGroup:({className:e,ref:t,...r})=>d(m,{"data-slot":`radio-group-button-group`,className:n(`flex flex-row flex-nowrap -space-x-px`,e),...r,ref:t}),Card:({children:e,className:t,ref:i,...a})=>{let o=l(r);return d(f,{as:`div`,"data-slot":`radio-group-card`,className:n(`group/radio border-card bg-card [&_label]:cursor-inherit relative rounded-md border p-4 text-sm`,`cursor-pointer aria-disabled:cursor-default focus:outline-hidden`,`focus-visible:ring-focus-accent not-aria-disabled:focus-visible:border-accent-600 focus-visible:ring-4`,`first-of-type:rounded-tl-md first-of-type:rounded-tr-md last-of-type:rounded-bl-md last-of-type:rounded-br-md`,`aria-disabled:border-form/50 not-aria-disabled:hover:z-1 not-aria-disabled:hover:border-accent-600`,`aria-checked:z-1 aria-checked:border-accent-600/50 aria-checked:bg-accent-500/10 not-aria-disabled:hover:aria-checked:border-accent-600 dark-high-contrast:aria-checked:border-accent-600 high-contrast:aria-checked:border-accent-600`,t),...a,...o?{"aria-describedby":o[`aria-describedby`],"aria-errormessage":o[`aria-errormessage`],"aria-invalid":o[`aria-invalid`]}:void 0,ref:i,children:t=>d(h.Provider,{value:t,children:e})})},Indicator:({children:t,className:n,...r})=>{let i=l(h);return d(`div`,{"data-slot":`radio-group-indicator`,className:e(`radio-indicator inline-flex size-5 select-none items-center justify-center shrink-0`,n),...r,children:t==null?d(_,{...i}):typeof t==`function`?t(i):t})},InputSandbox:({children:e,onClick:t,onKeyDown:n,...r})=>{let s=u(null),f=l(h),p=a.only(e),m=f.disabled||!f.checked;return d(`div`,{role:`none`,"data-slot":`radio-group-input-sandbox`,ref:s,onKeyDown:e=>{if(f.disabled){e.stopPropagation(),e.preventDefault();return}switch(e.key){case`Enter`:case`Tab`:break;default:e.stopPropagation()}n?.(e)},onClick:e=>{if(f.disabled){e.stopPropagation(),e.preventDefault();return}let n=e.target;i(n)&&window.requestAnimationFrame(()=>{n.focus()}),t?.(e)},...r,children:c(p)?o(p,{disabled:f.disabled||p.props.disabled,tabIndex:m?-1:p.props.tabIndex}):null})},Item:g,ItemContent:({asChild:e=!1,children:r,className:i,...a})=>{let o=l(h);return d(e?t:`div`,{"data-slot":`radio-group-item-content`,className:n(`min-w-0 flex-1`,o.disabled&&`opacity-50`,i),...a,children:r})},List:({className:e,ref:t,...r})=>d(m,{"data-slot":`radio-group-list`,className:n(`-space-y-px`,e),...r,ref:t}),ListItem:({children:t,className:n,ref:i,...a})=>{let o=l(r);return d(f,{as:`div`,"data-slot":`radio-group-list-item`,className:e(`group/radio border-form [&_label]:cursor-inherit relative flex select-none gap-2 border px-3 py-2 text-sm`,`cursor-pointer aria-disabled:cursor-default focus:outline-hidden`,`focus-visible:ring-focus-accent not-aria-disabled:focus-visible:border-accent-600 focus-visible:ring-4`,`first-of-type:rounded-tl-md first-of-type:rounded-tr-md last-of-type:rounded-bl-md last-of-type:rounded-br-md`,`aria-disabled:border-form/50 not-aria-disabled:hover:z-1 not-aria-disabled:hover:border-accent-600`,`aria-checked:z-1 aria-checked:border-accent-500/40 aria-checked:bg-accent-500/10 dark-high-contrast:aria-checked:border-accent-400 high-contrast:aria-checked:border-accent-400 not-aria-disabled:hover:aria-checked:border-accent-600`,`has-[.radio-indicator:first-child]:pl-2 has-[.radio-indicator:last-child]:pr-2`,n),ref:i,...a,...o?{"aria-describedby":o[`aria-describedby`],"aria-errormessage":o[`aria-errormessage`],"aria-invalid":o[`aria-invalid`]}:void 0,children:e=>d(h.Provider,{value:e,children:t})})},Root:m};export{v as RadioGroup};
|
|
@@ -25,7 +25,7 @@ type EventProps = BaseProps & {
|
|
|
25
25
|
* Props for the sandboxed onClick container. Spread this on the element you want
|
|
26
26
|
* to prevent the click event from bubbling out of.
|
|
27
27
|
*
|
|
28
|
-
* @see https://mantle.ngrok.com/components/primitives/sandboxed-on-click
|
|
28
|
+
* @see https://mantle.ngrok.com/components/primitives/sandboxed-on-click
|
|
29
29
|
*/
|
|
30
30
|
declare const sandboxedOnClickProps: ({ allowClickEventDefault, onClick }?: EventProps) => {
|
|
31
31
|
/**
|
|
@@ -43,7 +43,7 @@ type Props = ComponentProps<"div"> & WithAsChild & BaseProps;
|
|
|
43
43
|
/**
|
|
44
44
|
* A container that prevents the click event from bubbling out of it.
|
|
45
45
|
*
|
|
46
|
-
* @see https://mantle.ngrok.com/components/primitives/sandboxed-on-click
|
|
46
|
+
* @see https://mantle.ngrok.com/components/primitives/sandboxed-on-click
|
|
47
47
|
*
|
|
48
48
|
* @example
|
|
49
49
|
* ```tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./slot-
|
|
1
|
+
import{t as e}from"./slot-Dpsqz16D.js";import{jsx as t}from"react/jsx-runtime";const n=({allowClickEventDefault:e=!1,onClick:t}={})=>({role:`presentation`,onClick:n=>{n.stopPropagation(),e||n.preventDefault(),t?.(n)}}),r=({allowClickEventDefault:r=!1,asChild:i=!1,children:a,onClick:o,ref:s,...c})=>t(i?e:`div`,{ref:s,...c,...n({allowClickEventDefault:r,onClick:o}),children:a});export{r as SandboxedOnClick,n as sandboxedOnClickProps};
|
package/dist/scatter-plot.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as SeriesColor, a as LegendPrimitiveProps, c as XAxisPrimitiveProps, f as ChartDatum, g as PointShape, i as GridPrimitiveProps, l as YAxisPrimitiveProps, n as ChartRootBaseProps, o as ReferenceLinePrimitiveProps, p as ChartDatumEvent, r as CopyButtonPrimitiveProps, s as TooltipPrimitiveProps, t as
|
|
1
|
+
import { _ as SeriesColor, a as LegendPrimitiveProps, c as XAxisPrimitiveProps, f as ChartDatum, g as PointShape, i as GridPrimitiveProps, l as YAxisPrimitiveProps, n as ChartRootBaseProps, o as ReferenceLinePrimitiveProps, p as ChartDatumEvent, r as CopyButtonPrimitiveProps, s as TooltipPrimitiveProps, t as ChartAccessibilityProps } from "./chart-1cVjAcj8.js";
|
|
2
2
|
//#region src/components/scatter-plot/scatter-plot.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* Props for {@link ScatterPlot.Root}. Scatter x values must be continuous
|
|
@@ -10,7 +10,7 @@ import { _ as SeriesColor, a as LegendPrimitiveProps, c as XAxisPrimitiveProps,
|
|
|
10
10
|
* so with the default chart tokens keep it to FOUR series or fewer; beyond
|
|
11
11
|
* that, fold into an "Other" series or facet into small multiples.
|
|
12
12
|
*/
|
|
13
|
-
type ScatterPlotRootProps<TDatum extends ChartDatum = ChartDatum> = Omit<ChartRootBaseProps, "stacked"> &
|
|
13
|
+
type ScatterPlotRootProps<TDatum extends ChartDatum = ChartDatum> = Omit<ChartRootBaseProps, "stacked"> & ChartAccessibilityProps & {
|
|
14
14
|
/** Rows of data; each row is one point per composed `ScatterPlot.Point` series. */
|
|
15
15
|
data: readonly TDatum[];
|
|
16
16
|
/** The key of each row's x value (number or `Date`). */
|
|
@@ -300,7 +300,8 @@ declare const CopyButton: (props: ScatterPlotCopyButtonProps) => import("react")
|
|
|
300
300
|
* ├── ScatterPlot.Point (one per series)
|
|
301
301
|
* ├── ScatterPlot.ReferenceLine
|
|
302
302
|
* ├── ScatterPlot.Tooltip
|
|
303
|
-
*
|
|
303
|
+
* ├── ScatterPlot.Legend
|
|
304
|
+
* └── ScatterPlot.CopyButton
|
|
304
305
|
* ```
|
|
305
306
|
*
|
|
306
307
|
* @example
|
package/dist/scatter-plot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./chart-
|
|
1
|
+
import{a as e,c as t,i as n,l as r,n as i,o as a,r as o,s,t as c}from"./chart-DdBQ3xwx.js";import{jsx as l}from"react/jsx-runtime";const u={Root:e=>l(o,{kind:`scatter`,componentName:`ScatterPlot`,slotName:`scatter-plot`,...e}),Point:e=>a(`ScatterPlot.Point`,`scatter`,e),Grid:e=>n(`ScatterPlot.Grid`,e),XAxis:e=>t(`ScatterPlot.XAxis`,e),YAxis:e=>r(`ScatterPlot.YAxis`,e),ReferenceLine:t=>e(`ScatterPlot.ReferenceLine`,t),Tooltip:e=>s(`ScatterPlot.Tooltip`,e),Legend:e=>l(i,{partName:`ScatterPlot.Legend`,slotName:`scatter-plot`,...e}),CopyButton:e=>l(c,{partName:`ScatterPlot.CopyButton`,slotName:`scatter-plot`,...e})};export{u as ScatterPlot};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./compose-refs-BdBMM9ga.js";import{t}from"./cx-IiQEAKf5.js";import{t as n}from"./icon-lZ48P8Nn.js";import{a as r,r as i}from"./field-Bpptk_9t.js";import{t as a}from"./field-B1wqeZr4.js";import{n as o}from"./separator-
|
|
1
|
+
import{t as e}from"./compose-refs-BdBMM9ga.js";import{t}from"./cx-IiQEAKf5.js";import{t as n}from"./icon-lZ48P8Nn.js";import{a as r,r as i}from"./field-Bpptk_9t.js";import{t as a}from"./field-B1wqeZr4.js";import{n as o}from"./separator-BepAcFFy.js";import{CaretDownIcon as s}from"@phosphor-icons/react/CaretDown";import{createContext as c,useContext as l,useMemo as u}from"react";import{jsx as d,jsxs as f}from"react/jsx-runtime";import{CheckIcon as p}from"@phosphor-icons/react/Check";import{CaretUpIcon as m}from"@phosphor-icons/react/CaretUp";import*as h from"@radix-ui/react-select";const g=c({}),_=({"aria-invalid":e,children:t,id:n,validation:r,onBlur:i,onValueChange:a,onChange:o,ref:s,...c})=>{let l=u(()=>({"aria-invalid":e,id:n,validation:r,onBlur:i,ref:s}),[e,n,r,i,s]);return d(h.Root,{...c,onValueChange:e=>{o?.(e),a?.(e)},children:d(g.Provider,{value:l,children:t})})},v=({className:e,ref:n,...r})=>d(h.Group,{ref:n,"data-slot":`select-group`,className:t(`space-y-px`,e),...r}),y=h.Value,b=({"aria-invalid":o,className:c,children:u,id:p,ref:m,validation:_,...v})=>{let y=l(g),b=l(a),x=r(),{ariaInvalid:S,validation:C}=i({"aria-invalid":b?b[`aria-invalid`]:y[`aria-invalid`]??o,validation:y.validation??_??x}),w=b?b.id:y.id??p;return f(h.Trigger,{"data-slot":`select-trigger`,className:t(`h-9 text-sm`,`border-form bg-form text-strong font-sans placeholder:text-placeholder hover:bg-form-hover hover:text-strong flex w-full items-center justify-between gap-1.5 rounded-md border px-3 py-2 disabled:pointer-events-none disabled:opacity-50 [&>span]:line-clamp-1 [&>span]:text-left`,`hover:border-neutral-400`,`focus:outline-hidden focus:ring-4 aria-expanded:ring-4`,`focus:border-accent-600 focus:ring-focus-accent aria-expanded:border-accent-600 aria-expanded:ring-focus-accent`,`data-validation-success:border-success-600 data-validation-success:focus:border-success-600 data-validation-success:focus:ring-focus-success data-validation-success:aria-expanded:border-success-600 data-validation-success:aria-expanded:ring-focus-success`,`data-validation-warning:border-warning-600 data-validation-warning:focus:border-warning-600 data-validation-warning:focus:ring-focus-warning data-validation-warning:aria-expanded:border-warning-600 data-validation-warning:aria-expanded:ring-focus-warning`,`data-validation-error:border-danger-600 data-validation-error:focus:border-danger-600 data-validation-error:focus:ring-focus-danger data-validation-error:aria-expanded:border-danger-600 data-validation-error:aria-expanded:ring-focus-danger`,c),"data-validation":C||void 0,id:w,ref:e(m,y.ref),...v,...b?{"aria-describedby":b[`aria-describedby`],"aria-errormessage":b[`aria-errormessage`]}:void 0,"aria-invalid":S,children:[u,d(h.Icon,{asChild:!0,children:d(n,{svg:d(s,{weight:`bold`}),className:`size-4`})})]})},x=({className:e,ref:r,...i})=>d(h.ScrollUpButton,{ref:r,className:t(`flex cursor-default items-center justify-center py-1`,e),...i,children:d(n,{svg:d(m,{weight:`bold`}),className:`size-4`})}),S=({className:e,ref:r,...i})=>d(h.ScrollDownButton,{ref:r,className:t(`flex cursor-default items-center justify-center py-1`,e),...i,children:d(n,{svg:d(s,{weight:`bold`}),className:`size-4`})}),C={Root:_,Content:({className:e,children:n,position:r=`popper`,ref:i,width:a=`trigger`,...o})=>d(h.Portal,{children:f(h.Content,{ref:i,"data-slot":`select-content`,className:t(`border-popover data-side-bottom:slide-in-from-top-2 data-side-left:slide-in-from-right-2 data-side-right:slide-in-from-left-2 data-side-top:slide-in-from-bottom-2 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95 data-state-open:animate-in data-state-open:fade-in-0 data-state-open:zoom-in-95 relative z-50 max-h-96 min-w-32 overflow-hidden rounded-md border shadow-md`,`bg-popover font-sans`,r===`popper`&&`data-side-bottom:translate-y-2 data-side-left:-translate-x-2 data-side-right:translate-x-2 data-side-top:-translate-y-2 max-h-(--radix-select-content-available-height)`,a===`trigger`&&`w-(--radix-select-trigger-width)`,e),position:r,...o,children:[d(x,{}),d(h.Viewport,{className:t(`p-1 space-y-px`,r===`popper`&&`h-(--radix-select-trigger-height) w-full`),children:n}),d(S,{})]})}),Group:v,Item:({className:e,children:r,icon:i,ref:a,...o})=>f(h.Item,{ref:a,"data-slot":`select-item`,className:t(`relative flex gap-2 w-full cursor-pointer select-none items-center rounded-md py-1.5 pl-2 pr-8 text-strong text-sm outline-hidden`,`focus:bg-active-menu-item`,`data-disabled:pointer-events-none data-disabled:opacity-50`,`data-state-checked:bg-selected-menu-item`,`focus:data-state-checked:bg-active-selected-menu-item`,e),...o,children:[i&&d(n,{svg:i}),d(h.ItemText,{children:r}),d(h.ItemIndicator,{className:`absolute right-2 flex h-3.5 w-3.5 items-center justify-center`,children:d(n,{svg:d(p,{weight:`bold`}),className:`size-4 text-accent-600`})})]}),Label:({className:e,ref:n,...r})=>d(h.Label,{ref:n,"data-slot":`select-label`,className:t(`px-2 py-1.5 text-sm font-medium`,e),...r}),Separator:({className:e,ref:n,...r})=>d(o,{ref:n,"data-slot":`select-separator`,className:t(`-mx-1 my-1 h-px w-auto`,e),...r}),Trigger:b,Value:y};export{C as t};
|
package/dist/select.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./select-
|
|
1
|
+
import{t as e}from"./select-B-9yWrif.js";export{e as Select};
|
package/dist/selectable-list.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-IiQEAKf5.js";import{n as t,t as n}from"./checkbox-0EoxOyMA.js";import{t as r}from"./choice-
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{n as t,t as n}from"./checkbox-0EoxOyMA.js";import{t as r}from"./choice-C9gLKECf.js";import{n as i,t as a}from"./input-BnlpQF0c.js";import{n as o,r as s,t as c}from"./list-CQFWx6Z8.js";import{cloneElement as l,createContext as u,isValidElement as d,useCallback as f,useContext as p,useId as m,useMemo as h,useState as g}from"react";import _ from"tiny-invariant";import{jsx as v,jsxs as y}from"react/jsx-runtime";import{MagnifyingGlassIcon as b}from"@phosphor-icons/react/MagnifyingGlass";function x(e){return e.labelText==null?typeof e.label==`string`?e.label:``:e.labelText}function S(e,t){let n=t.trim().toLowerCase();return n===``?e:e.filter(e=>x(e).toLowerCase().includes(n))}function C(e,t){return e.includes(t)?e.filter(e=>e!==t):[...e,t]}function w(e,t){let n=0,r=0;for(let i of e)i.disabled||(n+=1,t.has(i.value)&&(r+=1));return n===0?{allSelected:!1,someSelected:!1}:{allSelected:r===n,someSelected:r>0}}const T=u(null);function E(e){let t=p(T);return _(t,`SelectableList.${e} must be rendered inside SelectableList.Root.`),t}const D=[],O=({className:t,defaultQuery:n,defaultValue:r,filter:i,onQueryChange:a,onValueChange:o,options:s,query:c,ref:l,value:u,...d})=>{let p=m(),_=u!=null,[y,b]=g(r??D),x=_?u:y,w=c!=null,[E,O]=g(n??``),k=w?c:E,A=f(e=>{_||b(e),o?.(e)},[_,o]),j=f(e=>{w||O(e),a?.(e)},[w,a]),M=h(()=>new Set(x),[x]),N=h(()=>new Set(s.filter(e=>e.disabled).map(e=>e.value)),[s]),P=h(()=>i==null?S(s,k):s.filter(e=>i(e,k)),[s,k,i]),F=h(()=>({listId:p,filteredOptions:P,query:k,setQuery:j,selectedValues:x,selectedSet:M,disabledSet:N,toggle:e=>{N.has(e)||A(C(x,e))},setSelection:A}),[p,P,k,j,x,M,N,A]);return v(T.Provider,{value:F,children:v(`div`,{ref:l,"data-slot":`selectable-list`,className:e(`flex w-full flex-col gap-3`,t),...d})})},k=({"aria-label":e=`Filter`,ref:t,...n})=>{let{query:r,setQuery:o}=E(`Filter`);return y(a,{ref:t,type:`text`,"data-slot":`selectable-list-filter`,"aria-label":e,value:r,onChange:e=>o(e.target.value),...n,children:[v(b,{}),v(i,{})]})},A=({children:r,className:i,ref:a,...o})=>{let{filteredOptions:s,selectedValues:c,selectedSet:l,setSelection:u}=E(`SelectAll`),d=m(),{allSelected:f,someSelected:p}=w(s,l),h=t({allSelected:f,someSelected:p}),g=s.some(e=>!e.disabled),_=()=>{let e=s.filter(e=>!e.disabled).map(e=>e.value);if(f){let t=new Set(e);u(c.filter(e=>!t.has(e)));return}u([...new Set([...c,...e])])};return y(`label`,{ref:a,htmlFor:d,"data-slot":`selectable-list-select-all`,className:e(`text-strong flex cursor-pointer items-center gap-2 text-sm font-medium font-sans`,i),...o,children:[v(n,{id:d,checked:h,onChange:_,disabled:!g}),r]})};function j(e,t){return`${e}-control-${encodeURIComponent(t)}`}const M=({children:t,className:i,ref:a,value:s,...c})=>{let{listId:l,selectedSet:u,disabledSet:d,toggle:f}=E(`Item`),p=j(l,s),m=u.has(s),h=d.has(s);return v(o,{ref:a,asChild:!0,selected:m,disabled:h,className:e(`px-2 py-1.5 text-sm`,`cursor-pointer aria-disabled:cursor-default`,i),...c,"data-slot":`selectable-list-item`,"data-value":s,children:y(r.Root,{id:p,disabled:h,children:[v(r.Indicator,{role:`gridcell`,children:v(n,{checked:m,onChange:()=>f(s),tabIndex:-1})}),v(r.Content,{role:`gridcell`,children:t})]})})},N=e=>v(r.Label,{"data-slot":`selectable-list-item-title`,...e}),P=e=>v(r.Description,{"data-slot":`selectable-list-item-description`,...e});function F(e){return y(M,{value:e.value,children:[v(N,{children:e.label}),e.description!=null&&v(P,{children:e.description})]})}function I(e,t){let n=[],r=[];for(let i of e){let e=t(i);d(e)&&(n.push(l(e,{key:i.value})),r.push(i))}return{items:n,options:r}}function L(e,t){let{filteredOptions:n,listId:r,toggle:i}=E(e),a=t??F,{items:o,options:s}=h(()=>I(n,a),[n,a]),c=f(e=>{let t=s[e];t!=null&&i(t.value)},[s,i]),l=f(e=>{let t=s[e];return t==null?``:j(r,t.value)},[s,r]),u=f(e=>s[e]?.disabled===!0,[s]);return{isEmpty:o.length===0,isItemDisabled:u,onActivate:c,itemId:l,items:o}}const R={Root:O,Filter:k,SelectAll:A,Viewport:({children:e,ref:t,...n})=>{let{isEmpty:r,isItemDisabled:i,onActivate:a,itemId:o,items:c}=L(`Viewport`,e);return r?null:v(s,{ref:t,"data-slot":`selectable-list-viewport`,semantics:`grid`,...n,"aria-multiselectable":!0,isItemDisabled:i,onActivate:a,itemId:o,children:c})},VirtualViewport:({children:e,ref:t,...n})=>{let{isEmpty:r,isItemDisabled:i,onActivate:a,itemId:o,items:s}=L(`VirtualViewport`,e);return r?null:v(c,{ref:t,"data-slot":`selectable-list-viewport`,semantics:`grid`,...n,"aria-multiselectable":!0,isItemDisabled:i,onActivate:a,itemId:o,children:s})},Item:M,ItemTitle:N,ItemDescription:P,Empty:({children:t,className:n,ref:r,...i})=>{let{filteredOptions:a}=E(`Empty`),o=a.length===0;return v(`div`,{ref:r,"data-slot":`selectable-list-empty`,role:`status`,className:e(!o&&`sr-only`,o&&`text-muted border-popover bg-popover flex items-center justify-center rounded-md border px-3 py-8 text-center text-sm`,n),...i,children:o?t:null})}};export{R as SelectableList,S as filterSelectableOptions,x as optionLabelText,w as summarizeSelection,C as toggleSelectionValue};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./slot-
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./slot-Dpsqz16D.js";import{createContext as n,useContext as r}from"react";import{jsx as i}from"react/jsx-runtime";const a=[`horizontal`,`vertical`],o=n({}),s={orientation:`horizontal`},c=({className:n,children:r,asChild:a,...c})=>{let l=a?t:`div`;return i(o.Provider,{value:s,children:i(l,{"data-slot":`horizontal-separator-group`,"data-horizontal-separator-group":!0,className:e(`group flex items-center gap-2 [&>*:not([data-separator])]:shrink-0`,n),...c,children:r})})},l=({asChild:n=!1,children:a,className:s,orientation:c,ref:l,semantic:d=!1,...f})=>{let p=n?t:`div`,m=r(o).orientation??(u(c)?c:`horizontal`),h=d?{"aria-orientation":m===`vertical`?m:void 0,role:`separator`}:{role:`none`};return i(p,{"data-slot":`separator`,className:e(`separator`,`bg-separator`,m===`horizontal`?`h-px w-full group-data-horizontal-separator-group:flex-1`:`h-full w-px`,s),"data-orientation":m,"data-separator":!0,...h,ref:l,...n?{children:a}:{},...f})};function u(e){return typeof e==`string`&&a.includes(e)}export{l as n,c as t};
|
package/dist/separator.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as e,t}from"./separator-
|
|
1
|
+
import{n as e,t}from"./separator-BepAcFFy.js";export{t as HorizontalSeparatorGroup,e as Separator};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./cx-IiQEAKf5.js";import{t}from"./button-C0S8RbaJ.js";import{a as n,c as r,i,n as a,o,r as s,s as c,t as l}from"./primitive-Dv-3snU3.js";import{jsx as u,jsxs as d}from"react/jsx-runtime";import{XIcon as f}from"@phosphor-icons/react/X";import{cva as p}from"class-variance-authority";const m=o,h=r,g=l,_=n,v=({className:t,ref:n,...r})=>u(i,{"data-slot":`sheet-overlay`,className:e(`bg-overlay data-state-closed:animate-out data-state-closed:fade-out-0 data-state-open:animate-in data-state-open:fade-in-0 fixed inset-0 z-50 backdrop-blur-xs`,t),...r,ref:n}),y=p(`bg-dialog border-dialog inset-y-0 h-full w-full fixed z-50 flex flex-col shadow-lg outline-hidden transition ease-in-out focus-within:outline-hidden data-state-closed:duration-100 data-state-closed:animate-out data-state-open:duration-100 data-state-open:animate-in`,{variants:{side:{left:`data-state-closed:slide-out-to-left data-state-open:slide-in-from-left left-0 border-r`,right:`data-state-closed:slide-out-to-right data-state-open:slide-in-from-right right-0 border-l`}},defaultVariants:{side:`right`}}),b={Root:m,Actions:({children:t,className:n,ref:r,...i})=>u(`div`,{"data-slot":`sheet-actions`,className:e(`flex h-full items-center gap-2`,n),...i,ref:r,children:t}),Body:({className:t,...n})=>u(`div`,{"data-slot":`sheet-body`,className:e(`scrollbar scrollbar-gutter-stable text-body flex-1 overflow-y-auto p-6`,t),...n}),Close:g,CloseIconButton:({size:e=`md`,type:n=`button`,label:r=`Close Sheet`,appearance:i=`ghost`,intent:a=`neutral`,...o})=>u(l,{asChild:!0,children:u(t,{"data-slot":`sheet-close-icon-button`,appearance:i,icon:u(f,{}),intent:a,label:r,size:e,type:n,...o})}),Content:({children:t,className:n,preferredWidth:r=`sm:max-w-[30rem]`,side:i=`right`,ref:o,...s})=>d(_,{children:[u(v,{}),u(a,{"data-slot":`sheet-content`,"data-mantle-modal-content":!0,className:e(y({side:i}),r,n),ref:o,...s,children:t})]}),Description:({className:t,ref:n,...r})=>u(s,{"data-slot":`sheet-description`,ref:n,className:e(`text-body text-sm`,t),...r}),Footer:({className:t,...n})=>u(`div`,{"data-slot":`sheet-footer`,className:e(`border-dialog-muted flex shrink-0 justify-end gap-2 border-t px-6 py-2.5`,t),...n}),Header:({className:t,...n})=>u(`div`,{"data-slot":`sheet-header`,className:e(`border-dialog-muted flex shrink-0 flex-col gap-2 border-b py-4 pl-6 pr-4`,`has-[.icon-button]:pr-4`,t),...n}),Title:({className:t,ref:n,...r})=>u(c,{"data-slot":`sheet-title`,ref:n,className:e(`text-strong flex-1 truncate text-lg font-medium`,t),...r}),TitleGroup:({children:t,className:n,ref:r,...i})=>u(`div`,{"data-slot":`sheet-title-group`,className:e(`flex items-center justify-between gap-2`,n),...i,ref:r,children:t}),Trigger:h};export{b as t};
|
package/dist/sheet.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as ButtonIntent } from "./button-DdSKSj1c.js";
|
|
2
|
-
import { a as Root, n as Content$1, o as Title$1, r as Description$1 } from "./dialog-BM4wPCft.js";
|
|
3
2
|
import { n as IconButtonProps, r as IconButtonAppearance } from "./button-C7vAl6lS.js";
|
|
3
|
+
import { a as Root, n as Content$1, o as Title$1, r as Description$1 } from "./dialog-BM4wPCft.js";
|
|
4
4
|
import { ComponentProps, HTMLAttributes } from "react";
|
|
5
5
|
import { VariantProps } from "class-variance-authority";
|
|
6
6
|
//#region src/components/sheet/sheet.d.ts
|
|
@@ -33,7 +33,7 @@ type SheetContentProps = ComponentProps<typeof Content$1> & VariantProps<typeof
|
|
|
33
33
|
* @example
|
|
34
34
|
* ```tsx
|
|
35
35
|
* // Sheet without a trigger (e.g. router controlled)
|
|
36
|
-
* <Sheet open onOpenChange={() => onClose()}>
|
|
36
|
+
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
37
37
|
* <Sheet.Content>
|
|
38
38
|
* <Sheet.Header>
|
|
39
39
|
* <Sheet.TitleGroup>
|
|
@@ -104,7 +104,7 @@ type SheetCloseIconButtonProps = Partial<Omit<IconButtonProps, "icon" | "appeara
|
|
|
104
104
|
* @example
|
|
105
105
|
* ```tsx
|
|
106
106
|
* // Sheet without a trigger (e.g. router controlled)
|
|
107
|
-
* <Sheet open onOpenChange={() => onClose()}>
|
|
107
|
+
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
108
108
|
* <Sheet.Content>
|
|
109
109
|
* <Sheet.Header>
|
|
110
110
|
* <Sheet.TitleGroup>
|
|
@@ -155,7 +155,7 @@ declare const CloseIconButton: ({ size, type, label, appearance, intent, ...prop
|
|
|
155
155
|
* @example
|
|
156
156
|
* ```tsx
|
|
157
157
|
* // Sheet without a trigger (e.g. router controlled)
|
|
158
|
-
* <Sheet open onOpenChange={() => onClose()}>
|
|
158
|
+
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
159
159
|
* <Sheet.Content>
|
|
160
160
|
* <Sheet.Header>
|
|
161
161
|
* <Sheet.TitleGroup>
|
|
@@ -206,7 +206,7 @@ declare const Body: ({ className, ...props }: HTMLAttributes<HTMLDivElement>) =>
|
|
|
206
206
|
* @example
|
|
207
207
|
* ```tsx
|
|
208
208
|
* // Sheet without a trigger (e.g. router controlled)
|
|
209
|
-
* <Sheet open onOpenChange={() => onClose()}>
|
|
209
|
+
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
210
210
|
* <Sheet.Content>
|
|
211
211
|
* <Sheet.Header>
|
|
212
212
|
* <Sheet.TitleGroup>
|
|
@@ -257,7 +257,7 @@ declare const Header: ({ className, ...props }: HTMLAttributes<HTMLDivElement>)
|
|
|
257
257
|
* @example
|
|
258
258
|
* ```tsx
|
|
259
259
|
* // Sheet without a trigger (e.g. router controlled)
|
|
260
|
-
* <Sheet open onOpenChange={() => onClose()}>
|
|
260
|
+
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
261
261
|
* <Sheet.Content>
|
|
262
262
|
* <Sheet.Header>
|
|
263
263
|
* <Sheet.TitleGroup>
|
|
@@ -308,7 +308,7 @@ declare const Footer: ({ className, ...props }: HTMLAttributes<HTMLDivElement>)
|
|
|
308
308
|
* @example
|
|
309
309
|
* ```tsx
|
|
310
310
|
* // Sheet without a trigger (e.g. router controlled)
|
|
311
|
-
* <Sheet open onOpenChange={() => onClose()}>
|
|
311
|
+
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
312
312
|
* <Sheet.Content>
|
|
313
313
|
* <Sheet.Header>
|
|
314
314
|
* <Sheet.TitleGroup>
|
|
@@ -358,7 +358,7 @@ declare const Title: ({ className, ref, ...props }: ComponentProps<typeof Title$
|
|
|
358
358
|
* @example
|
|
359
359
|
* ```tsx
|
|
360
360
|
* // Sheet without a trigger (e.g. router controlled)
|
|
361
|
-
* <Sheet open onOpenChange={() => onClose()}>
|
|
361
|
+
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
362
362
|
* <Sheet.Content>
|
|
363
363
|
* <Sheet.Header>
|
|
364
364
|
* <Sheet.TitleGroup>
|
|
@@ -408,7 +408,7 @@ declare const TitleGroup: ({ children, className, ref, ...props }: ComponentProp
|
|
|
408
408
|
* @example
|
|
409
409
|
* ```tsx
|
|
410
410
|
* // Sheet without a trigger (e.g. router controlled)
|
|
411
|
-
* <Sheet open onOpenChange={() => onClose()}>
|
|
411
|
+
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
412
412
|
* <Sheet.Content>
|
|
413
413
|
* <Sheet.Header>
|
|
414
414
|
* <Sheet.TitleGroup>
|
|
@@ -458,7 +458,7 @@ declare const Description: ({ className, ref, ...props }: ComponentProps<typeof
|
|
|
458
458
|
* @example
|
|
459
459
|
* ```tsx
|
|
460
460
|
* // Sheet without a trigger (e.g. router controlled)
|
|
461
|
-
* <Sheet open onOpenChange={() => onClose()}>
|
|
461
|
+
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
462
462
|
* <Sheet.Content>
|
|
463
463
|
* <Sheet.Header>
|
|
464
464
|
* <Sheet.TitleGroup>
|
|
@@ -583,7 +583,7 @@ declare const Actions: ({ children, className, ref, ...props }: ComponentProps<"
|
|
|
583
583
|
* @example
|
|
584
584
|
* ```tsx
|
|
585
585
|
* // Sheet without a trigger (e.g. router controlled)
|
|
586
|
-
* <Sheet open onOpenChange={() => onClose()}>
|
|
586
|
+
* <Sheet.Root open onOpenChange={() => onClose()}>
|
|
587
587
|
* <Sheet.Content>
|
|
588
588
|
* <Sheet.Header>
|
|
589
589
|
* <Sheet.TitleGroup>
|
package/dist/sheet.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{t as e}from"./
|
|
1
|
+
import{t as e}from"./sheet-_fXLjiq2.js";export{e as Sheet};
|