@ngrok/mantle 0.1.30 → 0.1.32
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/README.md +24 -1
- package/dist/checkbox.d.ts +2 -2
- package/dist/code-block.d.ts +35 -30
- package/dist/color.d.ts +3 -3
- package/dist/dropdown-menu.d.ts +11 -6
- package/dist/dropdown-menu.js +1 -1
- package/dist/dropdown-menu.js.map +1 -1
- package/dist/input.d.ts +4 -4
- package/dist/label.d.ts +1 -1
- package/dist/radio-group.d.ts +7 -7
- package/dist/select.d.ts +3 -3
- package/dist/switch.d.ts +1 -1
- package/dist/tailwind-preset.d.cts +1 -1
- package/dist/tailwind-preset.d.ts +1 -1
- package/dist/text-area.d.ts +1 -1
- package/dist/theme-provider.d.ts +1 -1
- package/package.json +21 -29
package/README.md
CHANGED
|
@@ -31,7 +31,30 @@ Next, check out the [Overview & Setup](https://mantle.ngrok.com/) and [Theme Pro
|
|
|
31
31
|
|
|
32
32
|
### Installation
|
|
33
33
|
|
|
34
|
-
Mantle uses [bun](https://bun.sh/) as its package manager.
|
|
34
|
+
Mantle uses [bun](https://bun.sh/) as its package manager and [direnv](https://direnv.net/) to assist you with managing the bun version.
|
|
35
|
+
|
|
36
|
+
First, install `direnv`:
|
|
37
|
+
|
|
38
|
+
| OS | command |
|
|
39
|
+
| ------ | ----------------------- |
|
|
40
|
+
| macOS | brew install direnv |
|
|
41
|
+
| ubuntu | sudo apt install direnv |
|
|
42
|
+
|
|
43
|
+
For all other OSes, see the [direnv installation guide](https://direnv.net/docs/installation.html).
|
|
44
|
+
|
|
45
|
+
Next, run
|
|
46
|
+
|
|
47
|
+
```sh
|
|
48
|
+
direnv allow
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
This will install `bun` if it's not already installed and then update to the latest version.
|
|
52
|
+
|
|
53
|
+
Finally, install all of node module dependencies in the repo’s directory:
|
|
54
|
+
|
|
55
|
+
```sh
|
|
56
|
+
bun install
|
|
57
|
+
```
|
|
35
58
|
|
|
36
59
|
### Local Development
|
|
37
60
|
|
package/dist/checkbox.d.ts
CHANGED
|
@@ -10,11 +10,11 @@ declare const Checkbox: react.ForwardRefExoticComponent<Omit<Omit<react.Detailed
|
|
|
10
10
|
/**
|
|
11
11
|
* The controlled checked state of the checkbox. Must be used in conjunction with onChange.
|
|
12
12
|
*/
|
|
13
|
-
checked?: CheckedState
|
|
13
|
+
checked?: CheckedState;
|
|
14
14
|
/**
|
|
15
15
|
* The checked state of the checkbox when it is initially rendered. Use when you do not need to control its checked state.
|
|
16
16
|
*/
|
|
17
|
-
defaultChecked?: CheckedState
|
|
17
|
+
defaultChecked?: CheckedState;
|
|
18
18
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
19
19
|
|
|
20
20
|
type Options = {
|
package/dist/code-block.d.ts
CHANGED
|
@@ -3,6 +3,35 @@ import { HTMLAttributes } from 'react';
|
|
|
3
3
|
import { W as WithStyleProps } from './with-style-props-VnLWm0Yd.js';
|
|
4
4
|
import { z } from 'zod';
|
|
5
5
|
|
|
6
|
+
/**
|
|
7
|
+
* A line range is a string in the format of `start-end` where `start` and `end` are line numbers.
|
|
8
|
+
*/
|
|
9
|
+
type LineRange = `${number}-${number}`;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* List of supported languages for syntax highlighting.
|
|
13
|
+
* @private
|
|
14
|
+
*/
|
|
15
|
+
declare const supportedLanguages: readonly ["bash", "cs", "csharp", "css", "dotnet", "go", "html", "java", "javascript", "js", "json", "jsx", "markup", "plain", "plaintext", "py", "python", "rb", "ruby", "rust", "sh", "shell", "text", "ts", "tsx", "txt", "typescript", "xml", "yaml", "yml"];
|
|
16
|
+
/**
|
|
17
|
+
* Supported languages for syntax highlighting.
|
|
18
|
+
*/
|
|
19
|
+
type SupportedLanguage = (typeof supportedLanguages)[number];
|
|
20
|
+
/**
|
|
21
|
+
* Parses a markdown code block (```) language class into a SupportedLanguage.
|
|
22
|
+
* Defaults to "sh" if no supported language is found.
|
|
23
|
+
*/
|
|
24
|
+
declare function parseLanguage(value: `language-${string}` | `lang-${string}` | (string & {}) | undefined): SupportedLanguage;
|
|
25
|
+
/**
|
|
26
|
+
* Type Predicate: checks if an arbitrary value is a supported syntax highlighting language.
|
|
27
|
+
*/
|
|
28
|
+
declare const isSupportedLanguage: (value: unknown) => value is SupportedLanguage;
|
|
29
|
+
/**
|
|
30
|
+
* Formats a language name into a class name that Prism.js can understand.
|
|
31
|
+
* @default "language-sh"
|
|
32
|
+
*/
|
|
33
|
+
declare function formatLanguageClassName(language?: SupportedLanguage | undefined): "language-bash" | "language-cs" | "language-csharp" | "language-css" | "language-dotnet" | "language-go" | "language-html" | "language-java" | "language-javascript" | "language-js" | "language-json" | "language-jsx" | "language-markup" | "language-plain" | "language-plaintext" | "language-py" | "language-python" | "language-rb" | "language-ruby" | "language-rust" | "language-sh" | "language-shell" | "language-text" | "language-ts" | "language-tsx" | "language-txt" | "language-typescript" | "language-xml" | "language-yaml" | "language-yml";
|
|
34
|
+
|
|
6
35
|
declare const CodeBlock: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
7
36
|
declare const CodeBlockBody: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
8
37
|
declare const CodeBlockCode: react.ForwardRefExoticComponent<WithStyleProps & {
|
|
@@ -13,29 +42,29 @@ declare const CodeBlockCode: react.ForwardRefExoticComponent<WithStyleProps & {
|
|
|
13
42
|
/**
|
|
14
43
|
* @todo not implemented yet
|
|
15
44
|
*/
|
|
16
|
-
highlightLines?: (
|
|
45
|
+
highlightLines?: (LineRange | number)[];
|
|
17
46
|
/**
|
|
18
47
|
* The language of the code block. This will be used to determine how to syntax highlight the code. @default `"text"`.
|
|
19
48
|
*/
|
|
20
|
-
language?:
|
|
49
|
+
language?: SupportedLanguage;
|
|
21
50
|
/**
|
|
22
51
|
* @todo not implemented yet
|
|
23
52
|
*/
|
|
24
|
-
showLineNumbers?: boolean
|
|
53
|
+
showLineNumbers?: boolean;
|
|
25
54
|
} & react.RefAttributes<HTMLPreElement>>;
|
|
26
55
|
declare const CodeBlockHeader: react.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & react.RefAttributes<HTMLDivElement>>;
|
|
27
56
|
declare const CodeBlockTitle: react.ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & {
|
|
28
|
-
asChild?: boolean
|
|
57
|
+
asChild?: boolean;
|
|
29
58
|
} & react.RefAttributes<HTMLHeadingElement>>;
|
|
30
59
|
declare const CodeBlockCopyButton: react.ForwardRefExoticComponent<WithStyleProps & {
|
|
31
60
|
/**
|
|
32
61
|
* Callback fired when the copy button is clicked, passes the copied text as an argument.
|
|
33
62
|
*/
|
|
34
|
-
onCopy?: (
|
|
63
|
+
onCopy?: (value: string) => void;
|
|
35
64
|
/**
|
|
36
65
|
* Callback fired when an error occurs during copying.
|
|
37
66
|
*/
|
|
38
|
-
onCopyError?: (
|
|
67
|
+
onCopyError?: (error: unknown) => void;
|
|
39
68
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
40
69
|
type CodeBlockExpanderButtonProps = Omit<HTMLAttributes<HTMLButtonElement>, "children" | "aria-controls" | "aria-expanded">;
|
|
41
70
|
declare const CodeBlockExpanderButton: react.ForwardRefExoticComponent<CodeBlockExpanderButtonProps & react.RefAttributes<HTMLButtonElement>>;
|
|
@@ -81,28 +110,4 @@ type DefaultMeta = typeof defaultMeta;
|
|
|
81
110
|
*/
|
|
82
111
|
declare function parseMetastring(value: string | undefined): Meta;
|
|
83
112
|
|
|
84
|
-
/**
|
|
85
|
-
* List of supported languages for syntax highlighting.
|
|
86
|
-
* @private
|
|
87
|
-
*/
|
|
88
|
-
declare const supportedLanguages: readonly ["bash", "cs", "csharp", "css", "dotnet", "go", "html", "java", "javascript", "js", "json", "jsx", "markup", "plain", "plaintext", "py", "python", "rb", "ruby", "rust", "sh", "shell", "text", "ts", "tsx", "txt", "typescript", "xml", "yaml", "yml"];
|
|
89
|
-
/**
|
|
90
|
-
* Supported languages for syntax highlighting.
|
|
91
|
-
*/
|
|
92
|
-
type SupportedLanguage = (typeof supportedLanguages)[number];
|
|
93
|
-
/**
|
|
94
|
-
* Parses a markdown code block (```) language class into a SupportedLanguage.
|
|
95
|
-
* Defaults to "sh" if no supported language is found.
|
|
96
|
-
*/
|
|
97
|
-
declare function parseLanguage(value: `language-${string}` | `lang-${string}` | (string & {}) | undefined): SupportedLanguage;
|
|
98
|
-
/**
|
|
99
|
-
* Type Predicate: checks if an arbitrary value is a supported syntax highlighting language.
|
|
100
|
-
*/
|
|
101
|
-
declare const isSupportedLanguage: (value: unknown) => value is "bash" | "cs" | "csharp" | "css" | "dotnet" | "go" | "html" | "java" | "javascript" | "js" | "json" | "jsx" | "markup" | "plain" | "plaintext" | "py" | "python" | "rb" | "ruby" | "rust" | "sh" | "shell" | "text" | "ts" | "tsx" | "txt" | "typescript" | "xml" | "yaml" | "yml";
|
|
102
|
-
/**
|
|
103
|
-
* Formats a language name into a class name that Prism.js can understand.
|
|
104
|
-
* @default "language-sh"
|
|
105
|
-
*/
|
|
106
|
-
declare function formatLanguageClassName(language?: SupportedLanguage | undefined): "language-bash" | "language-cs" | "language-csharp" | "language-css" | "language-dotnet" | "language-go" | "language-html" | "language-java" | "language-javascript" | "language-js" | "language-json" | "language-jsx" | "language-markup" | "language-plain" | "language-plaintext" | "language-py" | "language-python" | "language-rb" | "language-ruby" | "language-rust" | "language-sh" | "language-shell" | "language-text" | "language-ts" | "language-tsx" | "language-txt" | "language-typescript" | "language-xml" | "language-yaml" | "language-yml";
|
|
107
|
-
|
|
108
113
|
export { CodeBlock, CodeBlockBody, CodeBlockCode, CodeBlockCopyButton, CodeBlockExpanderButton, CodeBlockHeader, CodeBlockTitle, type DefaultMeta, type Meta, type MetaInput, type Mode, type SupportedLanguage, defaultMeta, fmtCode, formatLanguageClassName, isSupportedLanguage, parseLanguage, parseMetastring, supportedLanguages };
|
package/dist/color.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ type NamedColor = (typeof namedColors)[number];
|
|
|
9
9
|
/**
|
|
10
10
|
* Check if a value is a color from the color palette
|
|
11
11
|
*/
|
|
12
|
-
declare const isNamedColor: (value: unknown) => value is
|
|
12
|
+
declare const isNamedColor: (value: unknown) => value is NamedColor;
|
|
13
13
|
/**
|
|
14
14
|
* Functional named colors
|
|
15
15
|
*/
|
|
@@ -21,7 +21,7 @@ type FunctionalColor = (typeof functionalColors)[number];
|
|
|
21
21
|
/**
|
|
22
22
|
* Check if a value is a color from the functional colors
|
|
23
23
|
*/
|
|
24
|
-
declare const isFunctionalColor: (value: unknown) => value is
|
|
24
|
+
declare const isFunctionalColor: (value: unknown) => value is FunctionalColor;
|
|
25
25
|
/**
|
|
26
26
|
* All named mantle colors
|
|
27
27
|
*/
|
|
@@ -33,6 +33,6 @@ type Color = (typeof colors)[number];
|
|
|
33
33
|
/**
|
|
34
34
|
* Check if a value is a named mantle color
|
|
35
35
|
*/
|
|
36
|
-
declare const isColor: (value: unknown) => value is
|
|
36
|
+
declare const isColor: (value: unknown) => value is Color;
|
|
37
37
|
|
|
38
38
|
export { type Color, type FunctionalColor, type NamedColor, colors, functionalColors, isColor, isFunctionalColor, isNamedColor, namedColors };
|
package/dist/dropdown-menu.d.ts
CHANGED
|
@@ -10,20 +10,25 @@ declare const DropdownMenuPortal: react.FC<DropdownMenuPrimitive.DropdownMenuPor
|
|
|
10
10
|
declare const DropdownMenuSub: react.FC<DropdownMenuPrimitive.DropdownMenuSubProps>;
|
|
11
11
|
declare const DropdownMenuRadioGroup: react.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuRadioGroupProps & react.RefAttributes<HTMLDivElement>>;
|
|
12
12
|
declare const DropdownMenuSubTrigger: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubTriggerProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
13
|
-
inset?: boolean
|
|
13
|
+
inset?: boolean;
|
|
14
14
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
15
15
|
declare const DropdownMenuSubContent: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSubContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
16
|
-
declare const DropdownMenuContent: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & react.RefAttributes<HTMLDivElement>, "ref"> &
|
|
16
|
+
declare const DropdownMenuContent: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
17
|
+
/**
|
|
18
|
+
* Whether the DropdownMenuContent should match the width of the trigger or use the intrinsic content width.
|
|
19
|
+
*/
|
|
20
|
+
width?: "trigger" | "content";
|
|
21
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
17
22
|
declare const DropdownMenuItem: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
18
|
-
inset?: boolean
|
|
23
|
+
inset?: boolean;
|
|
19
24
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
20
25
|
declare const DropdownMenuCheckboxItem: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuCheckboxItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
21
26
|
declare const DropdownMenuRadioItem: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuRadioItemProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
22
|
-
name?: string
|
|
23
|
-
id?: string
|
|
27
|
+
name?: string;
|
|
28
|
+
id?: string;
|
|
24
29
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
25
30
|
declare const DropdownMenuLabel: react.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
26
|
-
inset?: boolean
|
|
31
|
+
inset?: boolean;
|
|
27
32
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
28
33
|
declare const DropdownMenuSeparator: react.ForwardRefExoticComponent<Omit<Omit<_radix_ui_react_separator.SeparatorProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
|
|
29
34
|
declare const DropdownMenuShortcut: {
|
package/dist/dropdown-menu.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{b as u}from"./chunk-R3JOSY7M.js";import{a}from"./chunk-A5H52ODC.js";import{CaretRight as P}from"@phosphor-icons/react/CaretRight";import{Check as l}from"@phosphor-icons/react/Check";import*as e from"@radix-ui/react-dropdown-menu";import{forwardRef as d}from"react";import{jsx as n,jsxs as m}from"react/jsx-runtime";var x=e.Root,y=e.Trigger,R=e.Group,s=e.Portal,C=e.Sub,I=e.RadioGroup,c=d(({className:o,inset:t,children:r,...i},p)=>m(e.SubTrigger,{className:a("focus:bg-accent data-state-open:bg-accent relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-9 text-base outline-none sm:text-sm","data-highlighted:bg-popover-hover data-state-open:bg-popover-hover","[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0",t&&"pl-8",o),ref:p,...i,children:[r,n("span",{className:"absolute right-2 flex items-center",children:n(P,{className:"size-5 shrink-0 sm:size-4",weight:"bold"})})]}));c.displayName="DropdownMenuSubTrigger";var
|
|
1
|
+
import{b as u}from"./chunk-R3JOSY7M.js";import{a}from"./chunk-A5H52ODC.js";import{CaretRight as P}from"@phosphor-icons/react/CaretRight";import{Check as l}from"@phosphor-icons/react/Check";import*as e from"@radix-ui/react-dropdown-menu";import{forwardRef as d}from"react";import{jsx as n,jsxs as m}from"react/jsx-runtime";var x=e.Root,y=e.Trigger,R=e.Group,s=e.Portal,C=e.Sub,I=e.RadioGroup,c=d(({className:o,inset:t,children:r,...i},p)=>m(e.SubTrigger,{className:a("focus:bg-accent data-state-open:bg-accent relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-9 text-base outline-none sm:text-sm","data-highlighted:bg-popover-hover data-state-open:bg-popover-hover","[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0",t&&"pl-8",o),ref:p,...i,children:[r,n("span",{className:"absolute right-2 flex items-center",children:n(P,{className:"size-5 shrink-0 sm:size-4",weight:"bold"})})]}));c.displayName="DropdownMenuSubTrigger";var w=d(({className:o,loop:t=!0,...r},i)=>n(s,{children:n(e.SubContent,{className:a("scrollbar","text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded border border-popover bg-popover p-1.25 shadow-xl 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 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","my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)_-_16px)] overflow-auto",o),loop:t,ref:i,...r})}));w.displayName="DropdownMenuSubContent";var f=d(({className:o,loop:t=!0,width:r,...i},p)=>n(s,{children:n(e.Content,{ref:p,className:a("scrollbar","text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded border border-popover bg-popover p-1.25 shadow-xl outline-none","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","my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)_-_16px)] overflow-auto",r==="trigger"&&"w-[var(--radix-dropdown-menu-trigger-width)]",o),loop:t,...i})}));f.displayName="DropdownMenuContent";var g=d(({className:o,inset:t,...r},i)=>n(e.Item,{ref:i,className:a("focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded px-2 py-1.5 text-base font-normal outline-none transition-colors data-disabled:pointer-events-none data-disabled:opacity-50 data-highlighted:bg-popover-hover data-active-item:dark:bg-popover-hover sm:text-sm","[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0",t&&"pl-8",o),...r}));g.displayName="DropdownMenuItem";var v=d(({className:o,children:t,checked:r,...i},p)=>m(e.CheckboxItem,{ref:p,className:a("relative flex cursor-pointer select-none items-center gap-2 rounded py-1.5 pl-2 pr-9 text-base font-normal text-strong outline-none data-disabled:pointer-events-none data-disabled:opacity-50 sm:text-sm","data-highlighted:bg-popover-hover data-highlighted:dark:bg-popover-hover","aria-checked:!bg-filled-accent aria-checked:font-medium aria-checked:text-on-filled","[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0",o),checked:r,...i,children:[n("span",{className:"absolute right-2 flex items-center",children:n(e.ItemIndicator,{children:n(l,{className:"size-5 shrink-0 sm:size-4",weight:"bold"})})}),t]}));v.displayName="DropdownMenuCheckboxItem";var h=d(({className:o,children:t,...r},i)=>m(e.RadioItem,{className:a("relative flex cursor-pointer select-none items-center gap-2 rounded py-1.5 pl-2 pr-9 text-base font-normal text-strong outline-none data-disabled:pointer-events-none data-disabled:opacity-50 sm:text-sm","data-highlighted:bg-popover-hover data-highlighted:dark:bg-popover-hover","aria-checked:!bg-filled-accent aria-checked:font-medium aria-checked:text-on-filled","[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0",o),ref:i,...r,children:[n("span",{className:"absolute right-2 flex items-center",children:n(e.ItemIndicator,{children:n(l,{className:"size-5 shrink-0 sm:size-4",weight:"bold"})})}),t]}));h.displayName="DropdownMenuRadioItem";var M=d(({className:o,inset:t,...r},i)=>n(e.Label,{ref:i,className:a("px-2 py-1.5 text-sm font-semibold",t&&"pl-8",o),...r}));M.displayName="DropdownMenuLabel";var D=d(({className:o,...t},r)=>n(u,{ref:r,className:a("-mx-1.25 my-1 w-auto",o),...t}));D.displayName="DropdownMenuSeparator";var b=({className:o,...t})=>n("span",{className:a("ml-auto text-xs tracking-widest opacity-60",o),...t});b.displayName="DropdownMenuShortcut";export{x as DropdownMenu,v as DropdownMenuCheckboxItem,f as DropdownMenuContent,R as DropdownMenuGroup,g as DropdownMenuItem,M as DropdownMenuLabel,s as DropdownMenuPortal,I as DropdownMenuRadioGroup,h as DropdownMenuRadioItem,D as DropdownMenuSeparator,b as DropdownMenuShortcut,C as DropdownMenuSub,w as DropdownMenuSubContent,c as DropdownMenuSubTrigger,y as DropdownMenuTrigger};
|
|
2
2
|
//# sourceMappingURL=dropdown-menu.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../packages/dropdown-menu/src/dropdown-menu.tsx"],"sourcesContent":["import { CaretRight } from \"@phosphor-icons/react/CaretRight\";\nimport { Check } from \"@phosphor-icons/react/Check\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\";\nimport { forwardRef } from \"react\";\nimport { cx } from \"../../cx\";\nimport { Separator } from \"../../separator\";\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, children, ...props }, ref) => (\n\t<DropdownMenuPrimitive.SubTrigger\n\t\tclassName={cx(\n\t\t\t\"focus:bg-accent data-state-open:bg-accent relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-9 text-base outline-none sm:text-sm\",\n\t\t\t\"data-highlighted:bg-popover-hover data-state-open:bg-popover-hover\",\n\t\t\t\"[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0\",\n\t\t\tinset && \"pl-8\",\n\t\t\tclassName,\n\t\t)}\n\t\tref={ref}\n\t\t{...props}\n\t>\n\t\t{children}\n\t\t<span className=\"absolute right-2 flex items-center\">\n\t\t\t<CaretRight className=\"size-5 shrink-0 sm:size-4\" weight=\"bold\" />\n\t\t</span>\n\t</DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = \"DropdownMenuSubTrigger\";\n\nconst DropdownMenuSubContent = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.SubContent>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, loop = true, ...props }, ref) => (\n\t<DropdownMenuPortal>\n\t\t<DropdownMenuPrimitive.SubContent\n\t\t\tclassName={cx(\n\t\t\t\t\"scrollbar\",\n\t\t\t\t\"text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded border border-popover bg-popover p-1.25 shadow-xl 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 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\",\n\t\t\t\t\"my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)_-_16px)] overflow-auto\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tloop={loop}\n\t\t\tref={ref}\n\t\t\t{...props}\n\t\t/>\n\t</DropdownMenuPortal>\n));\nDropdownMenuSubContent.displayName = \"DropdownMenuSubContent\";\n\nconst DropdownMenuContent = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.Content>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content>\n>(({ className, loop = true, ...props }, ref) => (\n\t<DropdownMenuPortal>\n\t\t<DropdownMenuPrimitive.Content\n\t\t\tref={ref}\n\t\t\tclassName={cx(\n\t\t\t\t\"scrollbar\",\n\t\t\t\t\"text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded border border-popover bg-popover p-1.25 shadow-xl outline-none\",\n\t\t\t\t\"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\",\n\t\t\t\t\"my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)_-_16px)] overflow-auto\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tloop={loop}\n\t\t\t{...props}\n\t\t/>\n\t</DropdownMenuPortal>\n));\nDropdownMenuContent.displayName = \"DropdownMenuContent\";\n\nconst DropdownMenuItem = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.Item>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded px-2 py-1.5 text-base font-normal outline-none transition-colors data-disabled:pointer-events-none data-disabled:opacity-50 data-highlighted:bg-popover-hover data-active-item:dark:bg-popover-hover sm:text-sm\",\n\t\t\t\"[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0\",\n\t\t\tinset && \"pl-8\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nDropdownMenuItem.displayName = \"DropdownMenuItem\";\n\nconst DropdownMenuCheckboxItem = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n\t<DropdownMenuPrimitive.CheckboxItem\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"relative flex cursor-pointer select-none items-center gap-2 rounded py-1.5 pl-2 pr-9 text-base font-normal text-strong outline-none data-disabled:pointer-events-none data-disabled:opacity-50 sm:text-sm\",\n\t\t\t\"data-highlighted:bg-popover-hover data-highlighted:dark:bg-popover-hover\",\n\t\t\t\"aria-checked:!bg-filled-accent aria-checked:font-medium aria-checked:text-on-filled\",\n\t\t\t\"[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0\",\n\t\t\tclassName,\n\t\t)}\n\t\tchecked={checked}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute right-2 flex items-center\">\n\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t<Check className=\"size-5 shrink-0 sm:size-4\" weight=\"bold\" />\n\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t</span>\n\t\t{children}\n\t</DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = \"DropdownMenuCheckboxItem\";\n\ntype DropdownMenuRadioItemProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & {\n\tname?: string;\n\tid?: string;\n};\n\nconst DropdownMenuRadioItem = forwardRef<ElementRef<\"input\">, DropdownMenuRadioItemProps>(\n\t({ className, children, ...props }, ref) => (\n\t\t<DropdownMenuPrimitive.RadioItem\n\t\t\tclassName={cx(\n\t\t\t\t\"relative flex cursor-pointer select-none items-center gap-2 rounded py-1.5 pl-2 pr-9 text-base font-normal text-strong outline-none data-disabled:pointer-events-none data-disabled:opacity-50 sm:text-sm\",\n\t\t\t\t\"data-highlighted:bg-popover-hover data-highlighted:dark:bg-popover-hover\",\n\t\t\t\t\"aria-checked:!bg-filled-accent aria-checked:font-medium aria-checked:text-on-filled\",\n\t\t\t\t\"[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tref={ref}\n\t\t\t{...props}\n\t\t>\n\t\t\t<span className=\"absolute right-2 flex items-center\">\n\t\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t\t<Check className=\"size-5 shrink-0 sm:size-4\" weight=\"bold\" />\n\t\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t\t</span>\n\t\t\t{children}\n\t\t</DropdownMenuPrimitive.RadioItem>\n\t),\n);\nDropdownMenuRadioItem.displayName = \"DropdownMenuRadioItem\";\n\nconst DropdownMenuLabel = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.Label>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Label\n\t\tref={ref}\n\t\tclassName={cx(\"px-2 py-1.5 text-sm font-semibold\", inset && \"pl-8\", className)}\n\t\t{...props}\n\t/>\n));\nDropdownMenuLabel.displayName = \"DropdownMenuLabel\";\n\nconst DropdownMenuSeparator = forwardRef<ElementRef<typeof Separator>, ComponentPropsWithoutRef<typeof Separator>>(\n\t({ className, ...props }, ref) => (\n\t\t<Separator ref={ref} className={cx(\"-mx-1.25 my-1 w-auto\", className)} {...props} />\n\t),\n);\nDropdownMenuSeparator.displayName = \"DropdownMenuSeparator\";\n\nconst DropdownMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n\treturn <span className={cx(\"ml-auto text-xs tracking-widest opacity-60\", className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\nexport {\n\tDropdownMenu,\n\tDropdownMenuCheckboxItem,\n\tDropdownMenuContent,\n\tDropdownMenuGroup,\n\tDropdownMenuItem,\n\tDropdownMenuLabel,\n\tDropdownMenuPortal,\n\tDropdownMenuRadioGroup,\n\tDropdownMenuRadioItem,\n\tDropdownMenuSeparator,\n\tDropdownMenuShortcut,\n\tDropdownMenuSub,\n\tDropdownMenuSubContent,\n\tDropdownMenuSubTrigger,\n\tDropdownMenuTrigger,\n};\n"],"mappings":"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","names":["CaretRight","Check","DropdownMenuPrimitive","forwardRef","jsx","jsxs","DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","forwardRef","className","inset","children","props","ref","cx","CaretRight","DropdownMenuSubContent","loop","DropdownMenuContent","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","Separator","DropdownMenuShortcut"]}
|
|
1
|
+
{"version":3,"sources":["../packages/dropdown-menu/src/dropdown-menu.tsx"],"sourcesContent":["import { CaretRight } from \"@phosphor-icons/react/CaretRight\";\nimport { Check } from \"@phosphor-icons/react/Check\";\nimport * as DropdownMenuPrimitive from \"@radix-ui/react-dropdown-menu\";\nimport type { ComponentPropsWithoutRef, ElementRef } from \"react\";\nimport { forwardRef } from \"react\";\nimport { cx } from \"../../cx\";\nimport { Separator } from \"../../separator\";\n\nconst DropdownMenu = DropdownMenuPrimitive.Root;\n\nconst DropdownMenuTrigger = DropdownMenuPrimitive.Trigger;\n\nconst DropdownMenuGroup = DropdownMenuPrimitive.Group;\n\nconst DropdownMenuPortal = DropdownMenuPrimitive.Portal;\n\nconst DropdownMenuSub = DropdownMenuPrimitive.Sub;\n\nconst DropdownMenuRadioGroup = DropdownMenuPrimitive.RadioGroup;\n\nconst DropdownMenuSubTrigger = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.SubTrigger>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubTrigger> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, children, ...props }, ref) => (\n\t<DropdownMenuPrimitive.SubTrigger\n\t\tclassName={cx(\n\t\t\t\"focus:bg-accent data-state-open:bg-accent relative flex cursor-pointer select-none items-center rounded-sm py-1.5 pl-2 pr-9 text-base outline-none sm:text-sm\",\n\t\t\t\"data-highlighted:bg-popover-hover data-state-open:bg-popover-hover\",\n\t\t\t\"[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0\",\n\t\t\tinset && \"pl-8\",\n\t\t\tclassName,\n\t\t)}\n\t\tref={ref}\n\t\t{...props}\n\t>\n\t\t{children}\n\t\t<span className=\"absolute right-2 flex items-center\">\n\t\t\t<CaretRight className=\"size-5 shrink-0 sm:size-4\" weight=\"bold\" />\n\t\t</span>\n\t</DropdownMenuPrimitive.SubTrigger>\n));\nDropdownMenuSubTrigger.displayName = \"DropdownMenuSubTrigger\";\n\nconst DropdownMenuSubContent = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.SubContent>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.SubContent>\n>(({ className, loop = true, ...props }, ref) => (\n\t<DropdownMenuPortal>\n\t\t<DropdownMenuPrimitive.SubContent\n\t\t\tclassName={cx(\n\t\t\t\t\"scrollbar\",\n\t\t\t\t\"text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded border border-popover bg-popover p-1.25 shadow-xl 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 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\",\n\t\t\t\t\"my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)_-_16px)] overflow-auto\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tloop={loop}\n\t\t\tref={ref}\n\t\t\t{...props}\n\t\t/>\n\t</DropdownMenuPortal>\n));\nDropdownMenuSubContent.displayName = \"DropdownMenuSubContent\";\n\ntype DropdownMenuContentProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Content> & {\n\t/**\n\t * Whether the DropdownMenuContent should match the width of the trigger or use the intrinsic content width.\n\t */\n\twidth?: \"trigger\" | \"content\";\n};\n\nconst DropdownMenuContent = forwardRef<ElementRef<typeof DropdownMenuPrimitive.Content>, DropdownMenuContentProps>(\n\t({ className, loop = true, width, ...props }, ref) => (\n\t\t<DropdownMenuPortal>\n\t\t\t<DropdownMenuPrimitive.Content\n\t\t\t\tref={ref}\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"scrollbar\",\n\t\t\t\t\t\"text-popover-foreground z-50 min-w-[8rem] overflow-hidden rounded border border-popover bg-popover p-1.25 shadow-xl outline-none\",\n\t\t\t\t\t\"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\",\n\t\t\t\t\t\"my-2 max-h-[calc(var(--radix-dropdown-menu-content-available-height)_-_16px)] overflow-auto\",\n\t\t\t\t\twidth === \"trigger\" && \"w-[var(--radix-dropdown-menu-trigger-width)]\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\tloop={loop}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t</DropdownMenuPortal>\n\t),\n);\nDropdownMenuContent.displayName = \"DropdownMenuContent\";\n\nconst DropdownMenuItem = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.Item>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Item\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"focus:bg-accent focus:text-accent-foreground relative flex cursor-pointer select-none items-center rounded px-2 py-1.5 text-base font-normal outline-none transition-colors data-disabled:pointer-events-none data-disabled:opacity-50 data-highlighted:bg-popover-hover data-active-item:dark:bg-popover-hover sm:text-sm\",\n\t\t\t\"[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0\",\n\t\t\tinset && \"pl-8\",\n\t\t\tclassName,\n\t\t)}\n\t\t{...props}\n\t/>\n));\nDropdownMenuItem.displayName = \"DropdownMenuItem\";\n\nconst DropdownMenuCheckboxItem = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.CheckboxItem>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.CheckboxItem>\n>(({ className, children, checked, ...props }, ref) => (\n\t<DropdownMenuPrimitive.CheckboxItem\n\t\tref={ref}\n\t\tclassName={cx(\n\t\t\t\"relative flex cursor-pointer select-none items-center gap-2 rounded py-1.5 pl-2 pr-9 text-base font-normal text-strong outline-none data-disabled:pointer-events-none data-disabled:opacity-50 sm:text-sm\",\n\t\t\t\"data-highlighted:bg-popover-hover data-highlighted:dark:bg-popover-hover\",\n\t\t\t\"aria-checked:!bg-filled-accent aria-checked:font-medium aria-checked:text-on-filled\",\n\t\t\t\"[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0\",\n\t\t\tclassName,\n\t\t)}\n\t\tchecked={checked}\n\t\t{...props}\n\t>\n\t\t<span className=\"absolute right-2 flex items-center\">\n\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t<Check className=\"size-5 shrink-0 sm:size-4\" weight=\"bold\" />\n\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t</span>\n\t\t{children}\n\t</DropdownMenuPrimitive.CheckboxItem>\n));\nDropdownMenuCheckboxItem.displayName = \"DropdownMenuCheckboxItem\";\n\ntype DropdownMenuRadioItemProps = ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.RadioItem> & {\n\tname?: string;\n\tid?: string;\n};\n\nconst DropdownMenuRadioItem = forwardRef<ElementRef<\"input\">, DropdownMenuRadioItemProps>(\n\t({ className, children, ...props }, ref) => (\n\t\t<DropdownMenuPrimitive.RadioItem\n\t\t\tclassName={cx(\n\t\t\t\t\"relative flex cursor-pointer select-none items-center gap-2 rounded py-1.5 pl-2 pr-9 text-base font-normal text-strong outline-none data-disabled:pointer-events-none data-disabled:opacity-50 sm:text-sm\",\n\t\t\t\t\"data-highlighted:bg-popover-hover data-highlighted:dark:bg-popover-hover\",\n\t\t\t\t\"aria-checked:!bg-filled-accent aria-checked:font-medium aria-checked:text-on-filled\",\n\t\t\t\t\"[&>svg]:size-6 [&>svg]:sm:size-5 [&_svg]:shrink-0\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\tref={ref}\n\t\t\t{...props}\n\t\t>\n\t\t\t<span className=\"absolute right-2 flex items-center\">\n\t\t\t\t<DropdownMenuPrimitive.ItemIndicator>\n\t\t\t\t\t<Check className=\"size-5 shrink-0 sm:size-4\" weight=\"bold\" />\n\t\t\t\t</DropdownMenuPrimitive.ItemIndicator>\n\t\t\t</span>\n\t\t\t{children}\n\t\t</DropdownMenuPrimitive.RadioItem>\n\t),\n);\nDropdownMenuRadioItem.displayName = \"DropdownMenuRadioItem\";\n\nconst DropdownMenuLabel = forwardRef<\n\tElementRef<typeof DropdownMenuPrimitive.Label>,\n\tComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Label> & {\n\t\tinset?: boolean;\n\t}\n>(({ className, inset, ...props }, ref) => (\n\t<DropdownMenuPrimitive.Label\n\t\tref={ref}\n\t\tclassName={cx(\"px-2 py-1.5 text-sm font-semibold\", inset && \"pl-8\", className)}\n\t\t{...props}\n\t/>\n));\nDropdownMenuLabel.displayName = \"DropdownMenuLabel\";\n\nconst DropdownMenuSeparator = forwardRef<ElementRef<typeof Separator>, ComponentPropsWithoutRef<typeof Separator>>(\n\t({ className, ...props }, ref) => (\n\t\t<Separator ref={ref} className={cx(\"-mx-1.25 my-1 w-auto\", className)} {...props} />\n\t),\n);\nDropdownMenuSeparator.displayName = \"DropdownMenuSeparator\";\n\nconst DropdownMenuShortcut = ({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>) => {\n\treturn <span className={cx(\"ml-auto text-xs tracking-widest opacity-60\", className)} {...props} />;\n};\nDropdownMenuShortcut.displayName = \"DropdownMenuShortcut\";\n\nexport {\n\tDropdownMenu,\n\tDropdownMenuCheckboxItem,\n\tDropdownMenuContent,\n\tDropdownMenuGroup,\n\tDropdownMenuItem,\n\tDropdownMenuLabel,\n\tDropdownMenuPortal,\n\tDropdownMenuRadioGroup,\n\tDropdownMenuRadioItem,\n\tDropdownMenuSeparator,\n\tDropdownMenuShortcut,\n\tDropdownMenuSub,\n\tDropdownMenuSubContent,\n\tDropdownMenuSubTrigger,\n\tDropdownMenuTrigger,\n};\n"],"mappings":"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","names":["CaretRight","Check","DropdownMenuPrimitive","forwardRef","jsx","jsxs","DropdownMenu","DropdownMenuTrigger","DropdownMenuGroup","DropdownMenuPortal","DropdownMenuSub","DropdownMenuRadioGroup","DropdownMenuSubTrigger","forwardRef","className","inset","children","props","ref","cx","CaretRight","DropdownMenuSubContent","loop","DropdownMenuContent","width","DropdownMenuItem","DropdownMenuCheckboxItem","checked","Check","DropdownMenuRadioItem","DropdownMenuLabel","DropdownMenuSeparator","Separator","DropdownMenuShortcut"]}
|
package/dist/input.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ type InputProps = Omit<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "
|
|
|
12
12
|
* Used to create interactive controls for web-based forms in order to accept data from the user
|
|
13
13
|
*/
|
|
14
14
|
declare const Input: react.ForwardRefExoticComponent<Omit<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "type"> & WithAutoComplete & WithInputType & WithValidation & {
|
|
15
|
-
children?: react.ReactNode;
|
|
15
|
+
children?: react.ReactNode | undefined;
|
|
16
16
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
17
17
|
type InputCaptureProps = Omit<InputHTMLAttributes<HTMLInputElement>, "autoComplete" | "type"> & BaseProps;
|
|
18
18
|
/**
|
|
@@ -41,16 +41,16 @@ declare const PasswordInput: react.ForwardRefExoticComponent<Omit<InputHTMLAttri
|
|
|
41
41
|
* Mask the true length of the password input with a fixed width when the value is hidden and the input is not focused.
|
|
42
42
|
* @default false
|
|
43
43
|
*/
|
|
44
|
-
maskHiddenValue?: boolean
|
|
44
|
+
maskHiddenValue?: boolean;
|
|
45
45
|
/**
|
|
46
46
|
* Callback for when the visibility of the password value changes.
|
|
47
47
|
*/
|
|
48
|
-
onValueVisibilityChange?: (
|
|
48
|
+
onValueVisibilityChange?: (visible: boolean) => void;
|
|
49
49
|
/**
|
|
50
50
|
* Show/hide the password value as a controlled state.
|
|
51
51
|
* @default false
|
|
52
52
|
*/
|
|
53
|
-
showValue?: boolean
|
|
53
|
+
showValue?: boolean;
|
|
54
54
|
} & react.RefAttributes<HTMLInputElement>>;
|
|
55
55
|
|
|
56
56
|
/**
|
package/dist/label.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
|
|
3
3
|
declare const Label: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement>, "ref"> & {
|
|
4
|
-
disabled?: boolean
|
|
4
|
+
disabled?: boolean;
|
|
5
5
|
} & react.RefAttributes<HTMLLabelElement>>;
|
|
6
6
|
|
|
7
7
|
export { Label };
|
package/dist/radio-group.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { W as WithAsChild } from './as-child-Cvu56SuO.js';
|
|
|
8
8
|
* A group of radio items. It manages the state of the children radios. Unstyled and simple.
|
|
9
9
|
*/
|
|
10
10
|
declare const RadioGroup: react.ForwardRefExoticComponent<Omit<RadioGroupProps, "children" | "as"> & {
|
|
11
|
-
children?: ReactNode;
|
|
11
|
+
children?: ReactNode | undefined;
|
|
12
12
|
} & react.RefAttributes<HTMLElement>>;
|
|
13
13
|
/**
|
|
14
14
|
* The shape of the radio state context.
|
|
@@ -25,7 +25,7 @@ type RadioStateContextValue = {
|
|
|
25
25
|
* Must be a child of `RadioGroup`.
|
|
26
26
|
*/
|
|
27
27
|
declare const RadioItem: react.ForwardRefExoticComponent<Omit<RadioProps, "children"> & {
|
|
28
|
-
children?: ReactNode;
|
|
28
|
+
children?: ReactNode | undefined;
|
|
29
29
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
30
30
|
type RadioIndicatorProps = Omit<HTMLAttributes<HTMLDivElement>, "children"> & {
|
|
31
31
|
children?: ReactNode | ((context: RadioStateContextValue) => ReactNode);
|
|
@@ -43,20 +43,20 @@ declare const RadioIndicator: ({ children, className, ...props }: RadioIndicator
|
|
|
43
43
|
* A group of radio list items. Use RadioListItem as direct children.
|
|
44
44
|
*/
|
|
45
45
|
declare const RadioGroupList: react.ForwardRefExoticComponent<Omit<RadioGroupProps, "children" | "as"> & {
|
|
46
|
-
children?: ReactNode;
|
|
46
|
+
children?: ReactNode | undefined;
|
|
47
47
|
} & react.RefAttributes<HTMLElement>>;
|
|
48
48
|
/**
|
|
49
49
|
* A radio list item that is used inside a `RadioGroupList`.
|
|
50
50
|
*/
|
|
51
51
|
declare const RadioListItem: react.ForwardRefExoticComponent<Omit<RadioProps, "children"> & {
|
|
52
|
-
children?: ReactNode;
|
|
52
|
+
children?: ReactNode | undefined;
|
|
53
53
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
54
54
|
type RadioItemContentProps = HTMLAttributes<HTMLDivElement> & WithAsChild;
|
|
55
55
|
/**
|
|
56
56
|
* A radio card item. Use it as a child of `RadioGroup`
|
|
57
57
|
*/
|
|
58
58
|
declare const RadioCard: react.ForwardRefExoticComponent<Omit<RadioProps, "children"> & {
|
|
59
|
-
children?: ReactNode;
|
|
59
|
+
children?: ReactNode | undefined;
|
|
60
60
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
61
61
|
/**
|
|
62
62
|
* The content of any radio item. Use it to wrap any labels, descriptions, or content of a radio item.
|
|
@@ -67,13 +67,13 @@ declare const RadioItemContent: ({ asChild, children, className, ...props }: Rad
|
|
|
67
67
|
* An inline group of radio buttons. Use RadioButton as direct children.
|
|
68
68
|
*/
|
|
69
69
|
declare const RadioButtonGroup: react.ForwardRefExoticComponent<Omit<RadioGroupProps, "children" | "as"> & {
|
|
70
|
-
children?: ReactNode;
|
|
70
|
+
children?: ReactNode | undefined;
|
|
71
71
|
} & react.RefAttributes<HTMLElement>>;
|
|
72
72
|
/**
|
|
73
73
|
* A radio button that is used inside a `RadioButtonGroup`.
|
|
74
74
|
*/
|
|
75
75
|
declare const RadioButton: react.ForwardRefExoticComponent<Omit<RadioProps, "children"> & {
|
|
76
|
-
children?: ReactNode;
|
|
76
|
+
children?: ReactNode | undefined;
|
|
77
77
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
78
78
|
type RadioInputSandboxProps = HTMLAttributes<HTMLDivElement>;
|
|
79
79
|
/**
|
package/dist/select.d.ts
CHANGED
|
@@ -12,12 +12,12 @@ declare const Select: react.ForwardRefExoticComponent<Omit<SelectPrimitive.Selec
|
|
|
12
12
|
/**
|
|
13
13
|
* Event handler called when the value changes.
|
|
14
14
|
*/
|
|
15
|
-
onChange?: (
|
|
15
|
+
onChange?: (value: string) => void;
|
|
16
16
|
/**
|
|
17
17
|
* Event handler called when Select blurs.
|
|
18
18
|
* @note this is a no-op for now until we can guarantee that it works identically to a native select onBlur
|
|
19
19
|
*/
|
|
20
|
-
onBlur?: (
|
|
20
|
+
onBlur?: (event: FocusEvent<HTMLButtonElement>) => void;
|
|
21
21
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
22
22
|
/**
|
|
23
23
|
* A group of related options within a select menu. Similar to an html `<optgroup>` element.
|
|
@@ -37,7 +37,7 @@ declare const SelectTrigger: react.ForwardRefExoticComponent<Omit<SelectPrimitiv
|
|
|
37
37
|
* It contains a scrolling viewport of the select items.
|
|
38
38
|
*/
|
|
39
39
|
declare const SelectContent: react.ForwardRefExoticComponent<Omit<SelectPrimitive.SelectContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
40
|
-
width?: "
|
|
40
|
+
width?: "trigger" | "content";
|
|
41
41
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
42
42
|
/**
|
|
43
43
|
* Used to render the label of a group. It won't be focusable using arrow keys.
|
package/dist/switch.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ declare const Switch: react.ForwardRefExoticComponent<Omit<_radix_ui_react_switc
|
|
|
6
6
|
* Makes the element not mutable, meaning the user can not edit the control
|
|
7
7
|
* @note This is buggy and doesn't actually stop the switch from toggling
|
|
8
8
|
*/
|
|
9
|
-
readOnly?: boolean
|
|
9
|
+
readOnly?: boolean;
|
|
10
10
|
} & react.RefAttributes<HTMLButtonElement>>;
|
|
11
11
|
|
|
12
12
|
export { Switch };
|
|
@@ -474,7 +474,7 @@ declare const mantlePreset: {
|
|
|
474
474
|
};
|
|
475
475
|
plugins: ({
|
|
476
476
|
handler: tailwindcss_types_config_js.PluginCreator;
|
|
477
|
-
config?: Partial<tailwindcss_types_config_js.Config
|
|
477
|
+
config?: Partial<tailwindcss_types_config_js.Config>;
|
|
478
478
|
} | {
|
|
479
479
|
handler: () => void;
|
|
480
480
|
})[];
|
|
@@ -474,7 +474,7 @@ declare const mantlePreset: {
|
|
|
474
474
|
};
|
|
475
475
|
plugins: ({
|
|
476
476
|
handler: tailwindcss_types_config_js.PluginCreator;
|
|
477
|
-
config?: Partial<tailwindcss_types_config_js.Config
|
|
477
|
+
config?: Partial<tailwindcss_types_config_js.Config>;
|
|
478
478
|
} | {
|
|
479
479
|
handler: () => void;
|
|
480
480
|
})[];
|
package/dist/text-area.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ declare const TextArea: react.ForwardRefExoticComponent<TextareaHTMLAttributes<H
|
|
|
12
12
|
/**
|
|
13
13
|
* The visual style of the textarea.
|
|
14
14
|
*/
|
|
15
|
-
appearance?: "monospaced"
|
|
15
|
+
appearance?: "monospaced";
|
|
16
16
|
} & react.RefAttributes<HTMLTextAreaElement>>;
|
|
17
17
|
|
|
18
18
|
export { TextArea, type TextAreaProps };
|
package/dist/theme-provider.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ type Theme = (typeof themes)[number];
|
|
|
12
12
|
/**
|
|
13
13
|
* theme is a helper which translates the Theme type into a string literal type.
|
|
14
14
|
*/
|
|
15
|
-
declare const theme: <T extends
|
|
15
|
+
declare const theme: <T extends Theme>(value: T) => T;
|
|
16
16
|
/**
|
|
17
17
|
* Type predicate that checks if a value is a valid theme.
|
|
18
18
|
*/
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "mantle is ngrok's UI library and design system.",
|
|
4
4
|
"author": "ngrok",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"version": "0.1.
|
|
6
|
+
"version": "0.1.32",
|
|
7
7
|
"homepage": "https://mantle.ngrok.com",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -24,16 +24,16 @@
|
|
|
24
24
|
"node": ">=20.0.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@headlessui/react": "2.0
|
|
28
|
-
"@radix-ui/react-dialog": "1.
|
|
29
|
-
"@radix-ui/react-dropdown-menu": "2.
|
|
30
|
-
"@radix-ui/react-popover": "1.
|
|
31
|
-
"@radix-ui/react-select": "2.
|
|
32
|
-
"@radix-ui/react-separator": "1.0
|
|
33
|
-
"@radix-ui/react-slot": "1.0
|
|
34
|
-
"@radix-ui/react-switch": "1.0
|
|
35
|
-
"@radix-ui/react-tabs": "1.0
|
|
36
|
-
"@radix-ui/react-tooltip": "1.
|
|
27
|
+
"@headlessui/react": "2.1.0",
|
|
28
|
+
"@radix-ui/react-dialog": "1.1.1",
|
|
29
|
+
"@radix-ui/react-dropdown-menu": "2.1.1",
|
|
30
|
+
"@radix-ui/react-popover": "1.1.1",
|
|
31
|
+
"@radix-ui/react-select": "2.1.1",
|
|
32
|
+
"@radix-ui/react-separator": "1.1.0",
|
|
33
|
+
"@radix-ui/react-slot": "1.1.0",
|
|
34
|
+
"@radix-ui/react-switch": "1.1.0",
|
|
35
|
+
"@radix-ui/react-tabs": "1.1.0",
|
|
36
|
+
"@radix-ui/react-tooltip": "1.1.1",
|
|
37
37
|
"@remix-run/css-bundle": "2.9.2",
|
|
38
38
|
"@remix-run/node": "2.9.2",
|
|
39
39
|
"@remix-run/react": "2.9.2",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"@uidotdev/usehooks": "2.4.1",
|
|
42
42
|
"class-variance-authority": "0.7.0",
|
|
43
43
|
"clsx": "2.1.1",
|
|
44
|
-
"isbot": "5.1.
|
|
44
|
+
"isbot": "5.1.10",
|
|
45
45
|
"prismjs": "1.29.0",
|
|
46
46
|
"react-day-picker": "8.10.1",
|
|
47
47
|
"tailwind-merge": "2.3.0",
|
|
@@ -51,19 +51,16 @@
|
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@commander-js/extra-typings": "12.1.0",
|
|
53
53
|
"@ianvs/prettier-plugin-sort-imports": "4.2.1",
|
|
54
|
-
"@phosphor-icons/react": "2.1.
|
|
54
|
+
"@phosphor-icons/react": "2.1.6",
|
|
55
55
|
"@remix-run/dev": "2.9.2",
|
|
56
|
-
"@
|
|
57
|
-
"@testing-library/dom": "10.1.0",
|
|
56
|
+
"@testing-library/dom": "10.2.0",
|
|
58
57
|
"@testing-library/react": "16.0.0",
|
|
59
58
|
"@testing-library/user-event": "14.5.2",
|
|
60
59
|
"@types/bun": "latest",
|
|
61
|
-
"@types/node": "20.14.
|
|
60
|
+
"@types/node": "20.14.8",
|
|
62
61
|
"@types/prismjs": "1.26.4",
|
|
63
62
|
"@types/react": "18.3.3",
|
|
64
63
|
"@types/react-dom": "18.3.0",
|
|
65
|
-
"@typescript-eslint/eslint-plugin": "7.13.0",
|
|
66
|
-
"@typescript-eslint/parser": "7.13.0",
|
|
67
64
|
"@vitejs/plugin-react": "4.3.1",
|
|
68
65
|
"@vitest/ui": "1.6.0",
|
|
69
66
|
"autoprefixer": "10.4.19",
|
|
@@ -71,21 +68,17 @@
|
|
|
71
68
|
"commander": "12.1.0",
|
|
72
69
|
"copyfiles": "2.4.1",
|
|
73
70
|
"date-fns": "3.6.0",
|
|
74
|
-
"eslint": "8.57.0",
|
|
75
|
-
"eslint-config-prettier": "9.1.0",
|
|
76
|
-
"eslint-plugin-react": "7.34.2",
|
|
77
|
-
"eslint-plugin-react-hooks": "4.6.2",
|
|
78
71
|
"jsdom": "24.1.0",
|
|
79
72
|
"mini-svg-data-uri": "1.4.4",
|
|
80
73
|
"postcss": "8.4.38",
|
|
81
74
|
"prettier": "3.3.2",
|
|
82
|
-
"prettier-plugin-tailwindcss": "0.6.
|
|
75
|
+
"prettier-plugin-tailwindcss": "0.6.5",
|
|
83
76
|
"react": "18.3.1",
|
|
84
77
|
"react-dom": "18.3.1",
|
|
85
|
-
"react-router-dom": "6.
|
|
78
|
+
"react-router-dom": "6.24.0",
|
|
86
79
|
"tailwindcss": "3.4.4",
|
|
87
80
|
"tsup": "8.1.0",
|
|
88
|
-
"typescript": "5.
|
|
81
|
+
"typescript": "5.5.2",
|
|
89
82
|
"vite": "5.3.1",
|
|
90
83
|
"vite-tsconfig-paths": "4.3.2",
|
|
91
84
|
"vitest": "1.6.0",
|
|
@@ -93,7 +86,7 @@
|
|
|
93
86
|
"zod": "3.23.8"
|
|
94
87
|
},
|
|
95
88
|
"peerDependencies": {
|
|
96
|
-
"@phosphor-icons/react": "2.1.
|
|
89
|
+
"@phosphor-icons/react": "2.1.6",
|
|
97
90
|
"@types/react": "^18.3.3",
|
|
98
91
|
"@types/react-dom": "^18.3.0",
|
|
99
92
|
"date-fns": "^3.6.0",
|
|
@@ -239,15 +232,14 @@
|
|
|
239
232
|
}
|
|
240
233
|
},
|
|
241
234
|
"scripts": {
|
|
242
|
-
"build": "rm -rf dist && tsup",
|
|
235
|
+
"build": "rm -rf dist && NODE_OPTIONS='--max-old-space-size=16384' tsup",
|
|
243
236
|
"docs:build": "remix build",
|
|
244
237
|
"docs:dev": "remix dev --manual",
|
|
245
238
|
"docs:serve": "remix-serve ./build/index.js",
|
|
246
239
|
"fmt:check": "prettier --check .",
|
|
247
240
|
"fmt": "prettier --write .",
|
|
248
241
|
"gen:docs-routes": "bun ./scripts/gen-docs-routes",
|
|
249
|
-
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
|
|
250
242
|
"test": "TZ=UTC vitest",
|
|
251
|
-
"typecheck": "tsc --incremental --noEmit --skipLibCheck"
|
|
243
|
+
"typecheck": "tsc --incremental --noEmit --skipLibCheck -P ./tsconfig.json"
|
|
252
244
|
}
|
|
253
245
|
}
|