@ngrok/mantle 0.74.0 → 0.75.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/agent.json +3 -2
- package/dist/alert-dialog.d.ts +4 -4
- package/dist/alert.d.ts +1 -1
- package/dist/{button-BXZ_JTu_.d.ts → button-BYZOBUgj.d.ts} +4 -4
- package/dist/button.d.ts +2 -2
- package/dist/checkbox.d.ts +1 -1
- package/dist/command.d.ts +7 -7
- package/dist/data-table.d.ts +1 -1
- package/dist/dialog.d.ts +1 -1
- package/dist/field.d.ts +1 -1
- package/dist/{icon-button-ntupABbM.d.ts → icon-button-Ct3A7aoj.d.ts} +2 -2
- package/dist/input.d.ts +3 -3
- package/dist/llms.txt +2 -1
- package/dist/sheet.d.ts +1 -1
- package/dist/split-button.d.ts +2 -2
- package/dist/well.d.ts +34 -0
- package/dist/well.js +2 -0
- package/dist/well.js.map +1 -0
- package/package.json +6 -1
package/dist/agent.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrok/mantle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.0",
|
|
4
4
|
"origin": "https://mantle.ngrok.com",
|
|
5
5
|
"endpoints": {
|
|
6
6
|
"docs": "https://mantle.ngrok.com/",
|
|
@@ -73,6 +73,7 @@
|
|
|
73
73
|
"@ngrok/mantle/toast",
|
|
74
74
|
"@ngrok/mantle/tooltip",
|
|
75
75
|
"@ngrok/mantle/types",
|
|
76
|
-
"@ngrok/mantle/utils"
|
|
76
|
+
"@ngrok/mantle/utils",
|
|
77
|
+
"@ngrok/mantle/well"
|
|
77
78
|
]
|
|
78
79
|
}
|
package/dist/alert-dialog.d.ts
CHANGED
|
@@ -198,7 +198,7 @@ declare const AlertDialog: {
|
|
|
198
198
|
* ```
|
|
199
199
|
*/
|
|
200
200
|
readonly Action: import("react").ForwardRefExoticComponent<(Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<import("class-variance-authority").VariantProps<(props?: ({
|
|
201
|
-
appearance?: "link" | "
|
|
201
|
+
appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
|
|
202
202
|
isLoading?: boolean | null | undefined;
|
|
203
203
|
priority?: "danger" | "neutral" | "default" | null | undefined;
|
|
204
204
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>>> & {
|
|
@@ -208,7 +208,7 @@ declare const AlertDialog: {
|
|
|
208
208
|
asChild: true;
|
|
209
209
|
type?: ComponentProps<"button">["type"];
|
|
210
210
|
}, "ref"> | Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<import("class-variance-authority").VariantProps<(props?: ({
|
|
211
|
-
appearance?: "link" | "
|
|
211
|
+
appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
|
|
212
212
|
isLoading?: boolean | null | undefined;
|
|
213
213
|
priority?: "danger" | "neutral" | "default" | null | undefined;
|
|
214
214
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>>> & {
|
|
@@ -293,7 +293,7 @@ declare const AlertDialog: {
|
|
|
293
293
|
* ```
|
|
294
294
|
*/
|
|
295
295
|
readonly Cancel: import("react").ForwardRefExoticComponent<(Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<import("class-variance-authority").VariantProps<(props?: ({
|
|
296
|
-
appearance?: "link" | "
|
|
296
|
+
appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
|
|
297
297
|
isLoading?: boolean | null | undefined;
|
|
298
298
|
priority?: "danger" | "neutral" | "default" | null | undefined;
|
|
299
299
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>>> & {
|
|
@@ -303,7 +303,7 @@ declare const AlertDialog: {
|
|
|
303
303
|
asChild: true;
|
|
304
304
|
type?: ComponentProps<"button">["type"];
|
|
305
305
|
}, "ref"> | Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<import("class-variance-authority").VariantProps<(props?: ({
|
|
306
|
-
appearance?: "link" | "
|
|
306
|
+
appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
|
|
307
307
|
isLoading?: boolean | null | undefined;
|
|
308
308
|
priority?: "danger" | "neutral" | "default" | null | undefined;
|
|
309
309
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>>> & {
|
package/dist/alert.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as SvgAttributes } from "./types-BvUzforF.js";
|
|
2
2
|
import { t as WithAsChild } from "./as-child-uN_018tj.js";
|
|
3
|
-
import { n as IconButtonProps } from "./icon-button-
|
|
3
|
+
import { n as IconButtonProps } from "./icon-button-Ct3A7aoj.js";
|
|
4
4
|
import { ComponentProps, HTMLAttributes, ReactNode } from "react";
|
|
5
5
|
|
|
6
6
|
//#region src/components/alert/alert.d.ts
|
|
@@ -4,7 +4,7 @@ import { ComponentProps, ReactNode } from "react";
|
|
|
4
4
|
|
|
5
5
|
//#region src/components/button/button.d.ts
|
|
6
6
|
declare const buttonVariants: (props?: ({
|
|
7
|
-
appearance?: "link" | "
|
|
7
|
+
appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
|
|
8
8
|
isLoading?: boolean | null | undefined;
|
|
9
9
|
priority?: "danger" | "neutral" | "default" | null | undefined;
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -88,7 +88,7 @@ type ButtonProps = ComponentProps<"button"> & ButtonVariants & {
|
|
|
88
88
|
* ```
|
|
89
89
|
*/
|
|
90
90
|
declare const Button: import("react").ForwardRefExoticComponent<(Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<import("class-variance-authority").VariantProps<(props?: ({
|
|
91
|
-
appearance?: "link" | "
|
|
91
|
+
appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
|
|
92
92
|
isLoading?: boolean | null | undefined;
|
|
93
93
|
priority?: "danger" | "neutral" | "default" | null | undefined;
|
|
94
94
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>>> & {
|
|
@@ -134,7 +134,7 @@ declare const Button: import("react").ForwardRefExoticComponent<(Omit<import("re
|
|
|
134
134
|
*/
|
|
135
135
|
type?: ComponentProps<"button">["type"];
|
|
136
136
|
}, "ref"> | Omit<import("react").ClassAttributes<HTMLButtonElement> & import("react").ButtonHTMLAttributes<HTMLButtonElement> & Partial<DeepNonNullable<import("class-variance-authority").VariantProps<(props?: ({
|
|
137
|
-
appearance?: "link" | "
|
|
137
|
+
appearance?: "link" | "filled" | "ghost" | "outlined" | null | undefined;
|
|
138
138
|
isLoading?: boolean | null | undefined;
|
|
139
139
|
priority?: "danger" | "neutral" | "default" | null | undefined;
|
|
140
140
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string>>> & {
|
|
@@ -169,4 +169,4 @@ declare const Button: import("react").ForwardRefExoticComponent<(Omit<import("re
|
|
|
169
169
|
}, "ref">) & import("react").RefAttributes<HTMLButtonElement>>;
|
|
170
170
|
//#endregion
|
|
171
171
|
export { ButtonProps as n, Button as t };
|
|
172
|
-
//# sourceMappingURL=button-
|
|
172
|
+
//# sourceMappingURL=button-BYZOBUgj.d.ts.map
|
package/dist/button.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { n as IconButtonProps, t as IconButton } from "./icon-button-
|
|
2
|
-
import { n as ButtonProps, t as Button } from "./button-
|
|
1
|
+
import { n as IconButtonProps, t as IconButton } from "./icon-button-Ct3A7aoj.js";
|
|
2
|
+
import { n as ButtonProps, t as Button } from "./button-BYZOBUgj.js";
|
|
3
3
|
import { n as ButtonGroupProps, t as ButtonGroup } from "./index-DBZ3eRsl.js";
|
|
4
4
|
export { Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, IconButton, type IconButtonProps };
|
package/dist/checkbox.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ type CheckedState = boolean | "indeterminate";
|
|
|
18
18
|
* </form>
|
|
19
19
|
* ```
|
|
20
20
|
*/
|
|
21
|
-
declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "
|
|
21
|
+
declare const Checkbox: import("react").ForwardRefExoticComponent<Omit<Omit<import("react").DetailedHTMLProps<import("react").InputHTMLAttributes<HTMLInputElement>, HTMLInputElement>, "ref">, "type" | "defaultChecked" | "checked"> & WithValidation & {
|
|
22
22
|
/**
|
|
23
23
|
* The controlled checked state of the checkbox. Must be used in conjunction with onChange.
|
|
24
24
|
*/
|
package/dist/command.d.ts
CHANGED
|
@@ -135,7 +135,7 @@ declare const Command: {
|
|
|
135
135
|
ref?: React.Ref<HTMLDivElement>;
|
|
136
136
|
} & {
|
|
137
137
|
asChild?: boolean;
|
|
138
|
-
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement
|
|
138
|
+
}, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
139
139
|
label?: string;
|
|
140
140
|
shouldFilter?: boolean;
|
|
141
141
|
filter?: (value: string, search: string, keywords?: string[]) => number;
|
|
@@ -243,7 +243,7 @@ declare const Command: {
|
|
|
243
243
|
ref?: React.Ref<HTMLInputElement>;
|
|
244
244
|
} & {
|
|
245
245
|
asChild?: boolean;
|
|
246
|
-
}, "key" | keyof import("react").InputHTMLAttributes<HTMLInputElement
|
|
246
|
+
}, "key" | "asChild" | keyof import("react").InputHTMLAttributes<HTMLInputElement>>, "type" | "value" | "onChange"> & {
|
|
247
247
|
value?: string;
|
|
248
248
|
onValueChange?: (search: string) => void;
|
|
249
249
|
} & import("react").RefAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
@@ -285,7 +285,7 @@ declare const Command: {
|
|
|
285
285
|
ref?: React.Ref<HTMLDivElement>;
|
|
286
286
|
} & {
|
|
287
287
|
asChild?: boolean;
|
|
288
|
-
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement
|
|
288
|
+
}, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
289
289
|
label?: string;
|
|
290
290
|
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
291
291
|
/**
|
|
@@ -326,7 +326,7 @@ declare const Command: {
|
|
|
326
326
|
ref?: React.Ref<HTMLDivElement>;
|
|
327
327
|
} & {
|
|
328
328
|
asChild?: boolean;
|
|
329
|
-
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement
|
|
329
|
+
}, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>> & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
330
330
|
/**
|
|
331
331
|
* The group component for the Command component.
|
|
332
332
|
*
|
|
@@ -365,7 +365,7 @@ declare const Command: {
|
|
|
365
365
|
ref?: React.Ref<HTMLDivElement>;
|
|
366
366
|
} & {
|
|
367
367
|
asChild?: boolean;
|
|
368
|
-
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement
|
|
368
|
+
}, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "value" | "heading"> & {
|
|
369
369
|
heading?: React.ReactNode;
|
|
370
370
|
value?: string;
|
|
371
371
|
forceMount?: boolean;
|
|
@@ -408,7 +408,7 @@ declare const Command: {
|
|
|
408
408
|
ref?: React.Ref<HTMLDivElement>;
|
|
409
409
|
} & {
|
|
410
410
|
asChild?: boolean;
|
|
411
|
-
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement
|
|
411
|
+
}, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>>, "disabled" | "value" | "onSelect"> & {
|
|
412
412
|
disabled?: boolean;
|
|
413
413
|
onSelect?: (value: string) => void;
|
|
414
414
|
value?: string;
|
|
@@ -484,7 +484,7 @@ declare const Command: {
|
|
|
484
484
|
ref?: React.Ref<HTMLDivElement>;
|
|
485
485
|
} & {
|
|
486
486
|
asChild?: boolean;
|
|
487
|
-
}, "key" | keyof import("react").HTMLAttributes<HTMLDivElement
|
|
487
|
+
}, "key" | "asChild" | keyof import("react").HTMLAttributes<HTMLDivElement>> & {
|
|
488
488
|
alwaysRender?: boolean;
|
|
489
489
|
} & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
490
490
|
};
|
package/dist/data-table.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as Button } from "./button-
|
|
1
|
+
import { t as Button } from "./button-BYZOBUgj.js";
|
|
2
2
|
import { s as SortingMode } from "./direction-CcTY0FmA.js";
|
|
3
3
|
import { t as Table$1 } from "./table-BWD9IlIN.js";
|
|
4
4
|
import { ComponentProps, ReactNode } from "react";
|
package/dist/dialog.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { n as isDialogOverlayTarget, t as Root } from "./primitive-FoWela9a.js";
|
|
2
|
-
import { n as IconButtonProps } from "./icon-button-
|
|
2
|
+
import { n as IconButtonProps } from "./icon-button-Ct3A7aoj.js";
|
|
3
3
|
import { ComponentProps } from "react";
|
|
4
4
|
|
|
5
5
|
//#region src/components/dialog/dialog.d.ts
|
package/dist/field.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as WithAsChild } from "./as-child-uN_018tj.js";
|
|
2
|
-
import { n as IconButtonProps } from "./icon-button-
|
|
2
|
+
import { n as IconButtonProps } from "./icon-button-Ct3A7aoj.js";
|
|
3
3
|
import { a as ValidationState, c as parseValidation, i as ValidationProp, l as resolveValidation, n as ParsedValidation, o as WithValidation, r as Validation, s as isAriaInvalid, t as AriaInvalid } from "./validation-xyX_6kph.js";
|
|
4
4
|
import { t as Slot } from "./index-BL5WVva_.js";
|
|
5
5
|
import { ComponentProps, ReactElement, ReactNode } from "react";
|
|
@@ -6,7 +6,7 @@ import { ButtonHTMLAttributes, ReactNode } from "react";
|
|
|
6
6
|
declare const iconButtonVariants: (props?: ({
|
|
7
7
|
appearance?: "ghost" | "outlined" | null | undefined;
|
|
8
8
|
isLoading?: boolean | null | undefined;
|
|
9
|
-
size?: "
|
|
9
|
+
size?: "md" | "xs" | "sm" | null | undefined;
|
|
10
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
11
11
|
type IconButtonVariants = VariantProps<typeof iconButtonVariants>;
|
|
12
12
|
/**
|
|
@@ -93,4 +93,4 @@ type IconButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & WithAsChild & I
|
|
|
93
93
|
declare const IconButton: import("react").ForwardRefExoticComponent<IconButtonProps & import("react").RefAttributes<HTMLButtonElement>>;
|
|
94
94
|
//#endregion
|
|
95
95
|
export { IconButtonProps as n, IconButton as t };
|
|
96
|
-
//# sourceMappingURL=icon-button-
|
|
96
|
+
//# sourceMappingURL=icon-button-Ct3A7aoj.d.ts.map
|
package/dist/input.d.ts
CHANGED
|
@@ -68,7 +68,7 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "
|
|
|
68
68
|
* />
|
|
69
69
|
* ```
|
|
70
70
|
*/
|
|
71
|
-
declare const Input: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
71
|
+
declare const Input: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "autoComplete"> & WithAutoComplete & WithInputType & WithValidation & {
|
|
72
72
|
children?: import("react").ReactNode | undefined;
|
|
73
73
|
} & import("react").RefAttributes<HTMLInputElement>>;
|
|
74
74
|
type InputCaptureProps = Omit<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "type"> & BaseProps;
|
|
@@ -86,7 +86,7 @@ type InputCaptureProps = Omit<InputHTMLAttributes<HTMLInputElement>, "autoComple
|
|
|
86
86
|
* </Input>
|
|
87
87
|
* ```
|
|
88
88
|
*/
|
|
89
|
-
declare const InputCapture: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
89
|
+
declare const InputCapture: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "autoComplete"> & WithAutoComplete & WithInputType & WithValidation & import("react").RefAttributes<HTMLInputElement>>;
|
|
90
90
|
//#endregion
|
|
91
91
|
//#region src/components/input/password-input.d.ts
|
|
92
92
|
type PasswordInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "type"> & WithValidation & WithAutoComplete & {
|
|
@@ -158,7 +158,7 @@ type PasswordInputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "autoCompl
|
|
|
158
158
|
* }
|
|
159
159
|
* ```
|
|
160
160
|
*/
|
|
161
|
-
declare const PasswordInput: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "
|
|
161
|
+
declare const PasswordInput: import("react").ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "type" | "autoComplete"> & WithValidation & WithAutoComplete & {
|
|
162
162
|
/**
|
|
163
163
|
* Callback for when the visibility of the password value changes.
|
|
164
164
|
*/
|
package/dist/llms.txt
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @ngrok/mantle (0.
|
|
1
|
+
# @ngrok/mantle (0.75.0)
|
|
2
2
|
|
|
3
3
|
> Offline discovery hint shipped inside the @ngrok/mantle npm package. Authoritative metadata lives at https://mantle.ngrok.com/for-ai-agents.
|
|
4
4
|
|
|
@@ -77,3 +77,4 @@ Full text: https://mantle.ngrok.com/llms-full.txt
|
|
|
77
77
|
- `@ngrok/mantle/tooltip`
|
|
78
78
|
- `@ngrok/mantle/types`
|
|
79
79
|
- `@ngrok/mantle/utils`
|
|
80
|
+
- `@ngrok/mantle/well`
|
package/dist/sheet.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as Root } from "./primitive-FoWela9a.js";
|
|
2
|
-
import { n as IconButtonProps } from "./icon-button-
|
|
2
|
+
import { n as IconButtonProps } from "./icon-button-Ct3A7aoj.js";
|
|
3
3
|
import { HTMLAttributes } from "react";
|
|
4
4
|
import { VariantProps } from "class-variance-authority";
|
|
5
5
|
|
package/dist/split-button.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as IconButton } from "./icon-button-
|
|
2
|
-
import { t as Button } from "./button-
|
|
1
|
+
import { t as IconButton } from "./icon-button-Ct3A7aoj.js";
|
|
2
|
+
import { t as Button } from "./button-BYZOBUgj.js";
|
|
3
3
|
import { t as DropdownMenu } from "./dropdown-menu-BqdyTFLu.js";
|
|
4
4
|
import { ComponentProps, ReactNode } from "react";
|
|
5
5
|
|
package/dist/well.d.ts
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { t as WithAsChild } from "./as-child-uN_018tj.js";
|
|
2
|
+
import { ComponentProps } from "react";
|
|
3
|
+
|
|
4
|
+
//#region src/components/well/well.d.ts
|
|
5
|
+
type WellProps = ComponentProps<"div"> & WithAsChild;
|
|
6
|
+
/**
|
|
7
|
+
* A recessed, inset container used to visually group and de-emphasize content
|
|
8
|
+
* relative to the surrounding surface, such as code samples, supplementary
|
|
9
|
+
* notes, or read-only summaries.
|
|
10
|
+
*
|
|
11
|
+
* Renders a `<div>` by default. Pass `asChild` to render as a different element
|
|
12
|
+
* or your own component, forwarding all class names, `data-*` attributes, and
|
|
13
|
+
* the ref onto that child.
|
|
14
|
+
*
|
|
15
|
+
* @see https://mantle.ngrok.com/components/well
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* <Well>
|
|
20
|
+
* <p>Eu ad sint laborum nostrud ullamco esse.</p>
|
|
21
|
+
* </Well>
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* <Well asChild>
|
|
27
|
+
* <section aria-label="Summary">…</section>
|
|
28
|
+
* </Well>
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
declare const Well: import("react").ForwardRefExoticComponent<Omit<WellProps, "ref"> & import("react").RefAttributes<HTMLDivElement>>;
|
|
32
|
+
//#endregion
|
|
33
|
+
export { Well };
|
|
34
|
+
//# sourceMappingURL=well.d.ts.map
|
package/dist/well.js
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./cx-CBSnSC36.js";import{t}from"./slot-CV5fmqFr.js";import{forwardRef as n}from"react";import{jsx as r}from"react/jsx-runtime";const i=n(({asChild:n=!1,className:i,...a},o)=>r(n?t:`div`,{ref:o,"data-slot":`well`,className:e(`border-card bg-base relative rounded-md border shadow-inner`,i),...a}));i.displayName=`Well`;export{i as Well};
|
|
2
|
+
//# sourceMappingURL=well.js.map
|
package/dist/well.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"well.js","names":[],"sources":["../src/components/well/well.tsx"],"sourcesContent":["import type { ComponentProps, ComponentRef } from \"react\";\nimport { forwardRef } from \"react\";\nimport type { WithAsChild } from \"../../types/index.js\";\nimport { cx } from \"../../utils/cx/cx.js\";\nimport { Slot } from \"../slot/index.js\";\n\ntype WellProps = ComponentProps<\"div\"> & WithAsChild;\n\n/**\n * A recessed, inset container used to visually group and de-emphasize content\n * relative to the surrounding surface, such as code samples, supplementary\n * notes, or read-only summaries.\n *\n * Renders a `<div>` by default. Pass `asChild` to render as a different element\n * or your own component, forwarding all class names, `data-*` attributes, and\n * the ref onto that child.\n *\n * @see https://mantle.ngrok.com/components/well\n *\n * @example\n * ```tsx\n * <Well>\n * <p>Eu ad sint laborum nostrud ullamco esse.</p>\n * </Well>\n * ```\n *\n * @example\n * ```tsx\n * <Well asChild>\n * <section aria-label=\"Summary\">…</section>\n * </Well>\n * ```\n */\nconst Well = forwardRef<ComponentRef<\"div\">, WellProps>(\n\t({ asChild = false, className, ...props }, ref) => {\n\t\tconst Comp = asChild ? Slot : \"div\";\n\n\t\treturn (\n\t\t\t<Comp\n\t\t\t\tref={ref}\n\t\t\t\tdata-slot=\"well\"\n\t\t\t\tclassName={cx(\"border-card bg-base relative rounded-md border shadow-inner\", className)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nWell.displayName = \"Well\";\n\nexport {\n\t//,\n\tWell,\n};\n"],"mappings":"kJAiCA,MAAM,EAAO,GACX,CAAE,UAAU,GAAO,YAAW,GAAG,GAAS,IAIzC,EAHY,EAAU,EAAO,MAG7B,CACM,MACL,YAAU,OACV,UAAW,EAAG,8DAA+D,CAAS,EACtF,GAAI,CACJ,CAAA,CAGJ,EACA,EAAK,YAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrok/mantle",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.0",
|
|
4
4
|
"description": "mantle is ngrok's UI library and design system.",
|
|
5
5
|
"homepage": "https://mantle.ngrok.com",
|
|
6
6
|
"license": "MIT",
|
|
@@ -339,6 +339,11 @@
|
|
|
339
339
|
"@ngrok/src-live-types": "./src/utils/index.ts",
|
|
340
340
|
"types": "./dist/utils.d.ts",
|
|
341
341
|
"import": "./dist/utils.js"
|
|
342
|
+
},
|
|
343
|
+
"./well": {
|
|
344
|
+
"@ngrok/src-live-types": "./src/components/well/index.ts",
|
|
345
|
+
"types": "./dist/well.d.ts",
|
|
346
|
+
"import": "./dist/well.js"
|
|
342
347
|
}
|
|
343
348
|
},
|
|
344
349
|
"dependencies": {
|