@ngrok/mantle 0.22.2 → 0.23.1
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/alert.d.ts +20 -10
- package/dist/alert.js.map +1 -1
- package/dist/checkbox.d.ts +14 -1
- package/dist/checkbox.js.map +1 -1
- package/dist/{chunk-3TQR32Q5.js → chunk-7FIV4E5C.js} +2 -2
- package/dist/chunk-UXH22BMO.js +2 -0
- package/dist/chunk-UXH22BMO.js.map +1 -0
- package/dist/combobox.d.ts +5 -3
- package/dist/combobox.js +1 -1
- package/dist/dropdown-menu.d.ts +5 -2
- package/dist/dropdown-menu.js +1 -1
- package/dist/input.d.ts +2 -2
- package/dist/pagination.d.ts +1 -2
- package/dist/pagination.js +1 -1
- package/dist/popover.js +1 -1
- package/dist/popover.js.map +1 -1
- package/dist/progress.d.ts +20 -1
- package/dist/progress.js.map +1 -1
- package/dist/sandboxed-on-click.d.ts +66 -0
- package/dist/sandboxed-on-click.js +2 -0
- package/dist/sandboxed-on-click.js.map +1 -0
- package/dist/select.d.ts +6 -3
- package/dist/select.js +1 -1
- package/dist/separator.d.ts +60 -4
- package/dist/separator.js +1 -1
- package/dist/sheet.d.ts +13 -2
- package/dist/sheet.js +1 -1
- package/dist/sheet.js.map +1 -1
- package/dist/switch.d.ts +16 -2
- package/dist/switch.js +1 -1
- package/dist/switch.js.map +1 -1
- package/dist/text-area.d.ts +25 -10
- package/dist/text-area.js +1 -1
- package/dist/text-area.js.map +1 -1
- package/dist/{types-Cs5ck3Vt.d.ts → types-DehRoXC5.d.ts} +4 -18
- package/package.json +14 -10
- package/dist/chunk-R4XXPIT2.js +0 -2
- package/dist/chunk-R4XXPIT2.js.map +0 -1
- /package/dist/{chunk-3TQR32Q5.js.map → chunk-7FIV4E5C.js.map} +0 -0
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.
|
|
6
|
+
"version": "0.23.1",
|
|
7
7
|
"homepage": "https://mantle.ngrok.com",
|
|
8
8
|
"repository": {
|
|
9
9
|
"type": "git",
|
|
@@ -25,15 +25,14 @@
|
|
|
25
25
|
"node": "^22.0.0"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@ariakit/react": "0.4.
|
|
29
|
-
"@headlessui/react": "2.2.
|
|
28
|
+
"@ariakit/react": "0.4.16",
|
|
29
|
+
"@headlessui/react": "2.2.1",
|
|
30
30
|
"@radix-ui/react-accordion": "1.2.3",
|
|
31
31
|
"@radix-ui/react-dialog": "1.1.6",
|
|
32
32
|
"@radix-ui/react-dropdown-menu": "2.1.6",
|
|
33
33
|
"@radix-ui/react-hover-card": "1.1.6",
|
|
34
34
|
"@radix-ui/react-popover": "1.1.6",
|
|
35
35
|
"@radix-ui/react-select": "2.1.6",
|
|
36
|
-
"@radix-ui/react-separator": "1.1.2",
|
|
37
36
|
"@radix-ui/react-slot": "1.1.2",
|
|
38
37
|
"@radix-ui/react-switch": "1.1.3",
|
|
39
38
|
"@radix-ui/react-tabs": "1.1.3",
|
|
@@ -44,7 +43,7 @@
|
|
|
44
43
|
"clsx": "2.1.1",
|
|
45
44
|
"prismjs": "1.30.0",
|
|
46
45
|
"react-day-picker": "8.10.1",
|
|
47
|
-
"sonner": "2.0.
|
|
46
|
+
"sonner": "2.0.3",
|
|
48
47
|
"tailwind-merge": "2.6.0",
|
|
49
48
|
"tailwindcss-animate": "1.0.7",
|
|
50
49
|
"tiny-invariant": "1.3.3"
|
|
@@ -53,12 +52,12 @@
|
|
|
53
52
|
"@phosphor-icons/react": "2.1.7",
|
|
54
53
|
"@testing-library/dom": "10.4.0",
|
|
55
54
|
"@testing-library/jest-dom": "6.6.3",
|
|
56
|
-
"@testing-library/react": "16.
|
|
55
|
+
"@testing-library/react": "16.3.0",
|
|
57
56
|
"@testing-library/user-event": "14.6.1",
|
|
58
|
-
"@types/node": "22.
|
|
57
|
+
"@types/node": "22.14.0",
|
|
59
58
|
"@types/prismjs": "1.26.5",
|
|
60
59
|
"@types/react": "18.3.20",
|
|
61
|
-
"@types/react-dom": "18.3.
|
|
60
|
+
"@types/react-dom": "18.3.6",
|
|
62
61
|
"@vitejs/plugin-react": "4.3.4",
|
|
63
62
|
"autoprefixer": "10.4.21",
|
|
64
63
|
"browserslist": "4.24.4",
|
|
@@ -67,10 +66,10 @@
|
|
|
67
66
|
"postcss": "8.5.3",
|
|
68
67
|
"react": "18.3.1",
|
|
69
68
|
"react-dom": "18.3.1",
|
|
70
|
-
"react-router": "7.
|
|
69
|
+
"react-router": "7.5.0",
|
|
71
70
|
"tailwindcss": "3.4.17",
|
|
72
71
|
"tsup": "8.4.0",
|
|
73
|
-
"typescript": "5.8.
|
|
72
|
+
"typescript": "5.8.3",
|
|
74
73
|
"zod": "3.24.2",
|
|
75
74
|
"@cfg/tsconfig": "1.0.0"
|
|
76
75
|
},
|
|
@@ -238,6 +237,11 @@
|
|
|
238
237
|
"import": "./dist/radio-group.js",
|
|
239
238
|
"types": "./dist/radio-group.d.ts"
|
|
240
239
|
},
|
|
240
|
+
"./sandboxed-on-click": {
|
|
241
|
+
"@ngrok/mantle/source": "./src/components/sandboxed-on-click/index.ts",
|
|
242
|
+
"import": "./dist/sandboxed-on-click.js",
|
|
243
|
+
"types": "./dist/sandboxed-on-click.d.ts"
|
|
244
|
+
},
|
|
241
245
|
"./select": {
|
|
242
246
|
"@ngrok/mantle/source": "./src/components/select/index.ts",
|
|
243
247
|
"import": "./dist/select.js",
|
package/dist/chunk-R4XXPIT2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{a as p}from"./chunk-AZ56JGNY.js";import*as s from"@radix-ui/react-separator";import{Slot as l}from"@radix-ui/react-slot";import{createContext as h,forwardRef as f,useContext as u}from"react";import{jsx as n}from"react/jsx-runtime";var m=h({}),x=({className:o,children:r,asChild:t,...a})=>{let e=t?l:"div";return n(m.Provider,{value:{orientation:"horizontal"},children:n(e,{"data-horizontal-separator-group":!0,className:p("group flex items-center gap-2 [&_*:not([data-separator])]:shrink-0",o),...a,children:r})})},c=f(({className:o,orientation:r,decorative:t=!0,...a},e)=>{let i=u(m).orientation??r??"horizontal";return n(s.Root,{ref:e,"data-separator":!0,"aria-orientation":t?void 0:i,decorative:t,orientation:i,className:p("separator","dark-high-contrast:bg-black high-contrast:bg-black bg-gray-500/20 dark:bg-gray-600/20",i==="horizontal"?"h-px w-full group-data-[horizontal-separator-group]:flex-1":"h-full w-px",o),...a})});c.displayName="Separator";export{x as a,c as b};
|
|
2
|
-
//# sourceMappingURL=chunk-R4XXPIT2.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/components/separator/separator.tsx"],"sourcesContent":["import * as SeparatorPrimitive from \"@radix-ui/react-separator\";\nimport { Slot } from \"@radix-ui/react-slot\";\nimport { createContext, forwardRef, useContext } from \"react\";\nimport type {\n\tComponentPropsWithoutRef,\n\tComponentRef,\n\tHTMLAttributes,\n} from \"react\";\nimport type { WithAsChild } from \"../../types/as-child.js\";\nimport { cx } from \"../../utils/cx/cx.js\";\n\ntype Orientation = \"horizontal\" | \"vertical\";\n\ntype SeparatorGroupContextShape = {\n\torientation?: Orientation;\n};\n\nconst SeparatorGroupContext = createContext<SeparatorGroupContextShape>({});\n\n/**\n * A container to layout a group of horizontal separators.\n */\nconst HorizontalSeparatorGroup = ({\n\tclassName,\n\tchildren,\n\tasChild,\n\t...props\n}: HTMLAttributes<HTMLDivElement> & WithAsChild) => {\n\tconst Comp = asChild ? Slot : \"div\";\n\n\treturn (\n\t\t<SeparatorGroupContext.Provider value={{ orientation: \"horizontal\" }}>\n\t\t\t<Comp\n\t\t\t\tdata-horizontal-separator-group\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"group flex items-center gap-2 [&_*:not([data-separator])]:shrink-0\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t>\n\t\t\t\t{children}\n\t\t\t</Comp>\n\t\t</SeparatorGroupContext.Provider>\n\t);\n};\n\ntype SeparatorProps = ComponentPropsWithoutRef<typeof SeparatorPrimitive.Root>;\n\n/**\n * Visually or semantically separates content.\n */\nconst Separator = forwardRef<\n\tComponentRef<typeof SeparatorPrimitive.Root>,\n\tSeparatorProps\n>(\n\t(\n\t\t{ className, orientation: propOrientation, decorative = true, ...props },\n\t\tref,\n\t) => {\n\t\tconst ctx = useContext(SeparatorGroupContext);\n\t\t// Prefer the orientation from the context if it's set, else fallback to the prop and then to \"horizontal\".\n\t\tconst orientation = ctx.orientation ?? propOrientation ?? \"horizontal\";\n\n\t\treturn (\n\t\t\t<SeparatorPrimitive.Root\n\t\t\t\tref={ref}\n\t\t\t\tdata-separator\n\t\t\t\taria-orientation={decorative ? undefined : orientation}\n\t\t\t\tdecorative={decorative}\n\t\t\t\torientation={orientation}\n\t\t\t\tclassName={cx(\n\t\t\t\t\t\"separator\",\n\t\t\t\t\t\"dark-high-contrast:bg-black high-contrast:bg-black bg-gray-500/20 dark:bg-gray-600/20\",\n\t\t\t\t\torientation === \"horizontal\"\n\t\t\t\t\t\t? \"h-px w-full group-data-[horizontal-separator-group]:flex-1\"\n\t\t\t\t\t\t: \"h-full w-px\",\n\t\t\t\t\tclassName,\n\t\t\t\t)}\n\t\t\t\t{...props}\n\t\t\t/>\n\t\t);\n\t},\n);\nSeparator.displayName = \"Separator\";\n\nexport { HorizontalSeparatorGroup, Separator };\n"],"mappings":"wCAAA,UAAYA,MAAwB,4BACpC,OAAS,QAAAC,MAAY,uBACrB,OAAS,iBAAAC,EAAe,cAAAC,EAAY,cAAAC,MAAkB,QA8BnD,cAAAC,MAAA,oBAfH,IAAMC,EAAwBC,EAA0C,CAAC,CAAC,EAKpEC,EAA2B,CAAC,CACjC,UAAAC,EACA,SAAAC,EACA,QAAAC,EACA,GAAGC,CACJ,IAAoD,CACnD,IAAMC,EAAOF,EAAUG,EAAO,MAE9B,OACCT,EAACC,EAAsB,SAAtB,CAA+B,MAAO,CAAE,YAAa,YAAa,EAClE,SAAAD,EAACQ,EAAA,CACA,kCAA+B,GAC/B,UAAWE,EACV,qEACAN,CACD,EACC,GAAGG,EAEH,SAAAF,EACF,EACD,CAEF,EAOMM,EAAYC,EAIjB,CACC,CAAE,UAAAR,EAAW,YAAaS,EAAiB,WAAAC,EAAa,GAAM,GAAGP,CAAM,EACvEQ,IACI,CAGJ,IAAMC,EAFMC,EAAWhB,CAAqB,EAEpB,aAAeY,GAAmB,aAE1D,OACCb,EAAoB,OAAnB,CACA,IAAKe,EACL,iBAAc,GACd,mBAAkBD,EAAa,OAAYE,EAC3C,WAAYF,EACZ,YAAaE,EACb,UAAWN,EACV,YACA,wFACAM,IAAgB,aACb,6DACA,cACHZ,CACD,EACC,GAAGG,EACL,CAEF,CACD,EACAI,EAAU,YAAc","names":["SeparatorPrimitive","Slot","createContext","forwardRef","useContext","jsx","SeparatorGroupContext","createContext","HorizontalSeparatorGroup","className","children","asChild","props","Comp","Slot","cx","Separator","forwardRef","propOrientation","decorative","ref","orientation","useContext"]}
|
|
File without changes
|