@ngrok/mantle 0.1.2 → 0.1.4

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.
Files changed (90) hide show
  1. package/dist/alert.cjs +2 -0
  2. package/dist/alert.cjs.map +1 -0
  3. package/dist/alert.d.cts +26 -0
  4. package/dist/anchor.cjs +2 -0
  5. package/dist/anchor.cjs.map +1 -0
  6. package/dist/anchor.d.cts +17 -0
  7. package/dist/as-child-BjnPZ1DU.d.cts +22 -0
  8. package/dist/button.cjs +2 -0
  9. package/dist/button.cjs.map +1 -0
  10. package/dist/button.d.cts +92 -0
  11. package/dist/card.cjs +2 -0
  12. package/dist/card.cjs.map +1 -0
  13. package/dist/card.d.cts +29 -0
  14. package/dist/checkbox.cjs +2 -0
  15. package/dist/checkbox.cjs.map +1 -0
  16. package/dist/checkbox.d.cts +6 -0
  17. package/dist/chunk-D3F6KERE.cjs +2 -0
  18. package/dist/chunk-D3F6KERE.cjs.map +1 -0
  19. package/dist/chunk-IN6SIXF2.cjs +2 -0
  20. package/dist/chunk-IN6SIXF2.cjs.map +1 -0
  21. package/dist/chunk-JGNAMNKZ.cjs +2 -0
  22. package/dist/chunk-JGNAMNKZ.cjs.map +1 -0
  23. package/dist/chunk-K4UKFOMI.cjs +2 -0
  24. package/dist/chunk-K4UKFOMI.cjs.map +1 -0
  25. package/dist/chunk-ROHPZJ5N.cjs +2 -0
  26. package/dist/chunk-ROHPZJ5N.cjs.map +1 -0
  27. package/dist/code-block.cjs +4 -0
  28. package/dist/code-block.cjs.map +1 -0
  29. package/dist/code-block.d.cts +108 -0
  30. package/dist/cx.cjs +2 -0
  31. package/dist/cx.cjs.map +1 -0
  32. package/dist/cx.d.cts +10 -0
  33. package/dist/deep-non-nullable-SmpSvoSd.d.cts +8 -0
  34. package/dist/dialog.cjs +2 -0
  35. package/dist/dialog.cjs.map +1 -0
  36. package/dist/dialog.d.cts +26 -0
  37. package/dist/dropdown-menu.cjs +2 -0
  38. package/dist/dropdown-menu.cjs.map +1 -0
  39. package/dist/dropdown-menu.d.cts +37 -0
  40. package/dist/hooks.cjs +2 -0
  41. package/dist/hooks.cjs.map +1 -0
  42. package/dist/hooks.d.cts +15 -0
  43. package/dist/icon.cjs +2 -0
  44. package/dist/icon.cjs.map +1 -0
  45. package/dist/icon.d.cts +23 -0
  46. package/dist/inline-code.cjs +2 -0
  47. package/dist/inline-code.cjs.map +1 -0
  48. package/dist/inline-code.d.cts +9 -0
  49. package/dist/input.cjs +2 -0
  50. package/dist/input.cjs.map +1 -0
  51. package/dist/input.d.cts +75 -0
  52. package/dist/media-object.cjs +2 -0
  53. package/dist/media-object.cjs.map +1 -0
  54. package/dist/media-object.d.cts +26 -0
  55. package/dist/popover.cjs +2 -0
  56. package/dist/popover.cjs.map +1 -0
  57. package/dist/popover.d.cts +8 -0
  58. package/dist/select.cjs +2 -0
  59. package/dist/select.cjs.map +1 -0
  60. package/dist/select.d.cts +19 -0
  61. package/dist/separator.cjs +2 -0
  62. package/dist/separator.cjs.map +1 -0
  63. package/dist/separator.d.cts +9 -0
  64. package/dist/sheet.cjs +2 -0
  65. package/dist/sheet.cjs.map +1 -0
  66. package/dist/sheet.d.cts +22 -0
  67. package/dist/skeleton.cjs +2 -0
  68. package/dist/skeleton.cjs.map +1 -0
  69. package/dist/skeleton.d.cts +14 -0
  70. package/dist/table.cjs +2 -0
  71. package/dist/table.cjs.map +1 -0
  72. package/dist/table.d.cts +13 -0
  73. package/dist/tailwind-preset.cjs +2 -0
  74. package/dist/tailwind-preset.cjs.map +1 -0
  75. package/dist/tailwind-preset.d.cts +475 -0
  76. package/dist/text-area.cjs +2 -0
  77. package/dist/text-area.cjs.map +1 -0
  78. package/dist/text-area.d.cts +19 -0
  79. package/dist/theme-provider.cjs +29 -0
  80. package/dist/theme-provider.cjs.map +1 -0
  81. package/dist/theme-provider.d.cts +75 -0
  82. package/dist/tooltip.cjs +2 -0
  83. package/dist/tooltip.cjs.map +1 -0
  84. package/dist/tooltip.d.cts +15 -0
  85. package/dist/types.cjs +1 -0
  86. package/dist/types.cjs.map +1 -0
  87. package/dist/types.d.cts +6 -0
  88. package/dist/variant-props-DnYnbC7s.d.cts +11 -0
  89. package/dist/with-style-props-VnLWm0Yd.d.cts +27 -0
  90. package/package.json +25 -1
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../packages/tooltip/src/tooltip.tsx"],"names":["Content","Provider","Root","Trigger","forwardRef","jsx","TooltipProvider","delayDuration","props","Tooltip","TooltipTrigger","TooltipContent","children","className","sideOffset","ref","cx"],"mappings":"yCAAA,OAAS,WAAAA,EAAS,YAAAC,EAAU,QAAAC,EAAM,WAAAC,MAAe,0BACjD,OAA+C,cAAAC,MAAkB,QAOhE,cAAAC,MAAA,oBADD,IAAMC,EAAkB,CAAC,CAAE,cAAAC,EAAgB,EAAG,GAAGC,CAAM,IACtDH,EAACJ,EAAA,CAAS,cAAeM,GAAiB,EAAI,GAAGC,EAAO,EAGnDC,EAAUP,EAEVQ,EAAiBP,EAEjBQ,EAAiBP,EACtB,CAAC,CAAE,SAAAQ,EAAU,UAAAC,EAAW,WAAAC,EAAa,EAAG,GAAGN,CAAM,EAAGO,IACnDV,EAACL,EAAA,CACA,IAAKe,EACL,WAAYD,EACZ,UAAWE,EACV,kWACAH,CACD,EACC,GAAGL,EAEH,SAAAI,EACF,CAEF,EACAD,EAAe,YAAc","sourcesContent":["import { Content, Provider, Root, Trigger } from \"@radix-ui/react-tooltip\";\nimport { ComponentPropsWithoutRef, ElementRef, forwardRef } from \"react\";\nimport { cx } from \"../../cx\";\n\n/**\n * Wraps your app to provide global functionality to your tooltips.\n */\nconst TooltipProvider = ({ delayDuration = 0, ...props }: ComponentPropsWithoutRef<typeof Provider>) => (\n\t<Provider delayDuration={delayDuration ?? 0} {...props} />\n);\n\nconst Tooltip = Root;\n\nconst TooltipTrigger = Trigger;\n\nconst TooltipContent = forwardRef<ElementRef<typeof Content>, ComponentPropsWithoutRef<typeof Content>>(\n\t({ children, className, sideOffset = 4, ...props }, ref) => (\n\t\t<Content\n\t\t\tref={ref}\n\t\t\tsideOffset={sideOffset}\n\t\t\tclassName={cx(\n\t\t\t\t\"z-50 overflow-hidden rounded-md bg-tooltip px-3 py-1.5 text-sm text-tooltip shadow animate-in fade-in-0 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 data-state-closed:animate-out data-state-closed:fade-out-0 data-state-closed:zoom-out-95\",\n\t\t\t\tclassName,\n\t\t\t)}\n\t\t\t{...props}\n\t\t>\n\t\t\t{children}\n\t\t</Content>\n\t),\n);\nTooltipContent.displayName = \"TooltipContent\";\n\nexport { Tooltip, TooltipTrigger, TooltipContent, TooltipProvider };\n"]}
@@ -0,0 +1,15 @@
1
+ import * as react from 'react';
2
+ import { ComponentPropsWithoutRef } from 'react';
3
+ import * as _radix_ui_react_tooltip from '@radix-ui/react-tooltip';
4
+ import { Provider } from '@radix-ui/react-tooltip';
5
+ import * as react_jsx_runtime from 'react/jsx-runtime';
6
+
7
+ /**
8
+ * Wraps your app to provide global functionality to your tooltips.
9
+ */
10
+ declare const TooltipProvider: ({ delayDuration, ...props }: ComponentPropsWithoutRef<typeof Provider>) => react_jsx_runtime.JSX.Element;
11
+ declare const Tooltip: react.FC<_radix_ui_react_tooltip.TooltipProps>;
12
+ declare const TooltipTrigger: react.ForwardRefExoticComponent<_radix_ui_react_tooltip.TooltipTriggerProps & react.RefAttributes<HTMLButtonElement>>;
13
+ declare const TooltipContent: react.ForwardRefExoticComponent<Omit<_radix_ui_react_tooltip.TooltipContentProps & react.RefAttributes<HTMLDivElement>, "ref"> & react.RefAttributes<HTMLDivElement>>;
14
+
15
+ export { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger };
package/dist/types.cjs ADDED
@@ -0,0 +1 @@
1
+ "use strict";//# sourceMappingURL=types.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export { W as WithAsChild } from './as-child-BjnPZ1DU.cjs';
2
+ export { W as WithStyleProps } from './with-style-props-VnLWm0Yd.cjs';
3
+ export { V as VariantProps } from './variant-props-DnYnbC7s.cjs';
4
+ export { D as DeepNonNullable } from './deep-non-nullable-SmpSvoSd.cjs';
5
+ import 'react';
6
+ import 'class-variance-authority';
@@ -0,0 +1,11 @@
1
+ import { VariantProps as VariantProps$1 } from 'class-variance-authority';
2
+ import { D as DeepNonNullable } from './deep-non-nullable-SmpSvoSd.cjs';
3
+
4
+ /**
5
+ * Variant props that are optional and cannot be `null`.
6
+ *
7
+ * Using VariantProps directly from CVA produces that can be `null`, which is not what we want.
8
+ */
9
+ type VariantProps<Variants extends (props?: Record<PropertyKey, unknown> | undefined) => string> = Partial<DeepNonNullable<VariantProps$1<Variants>>>;
10
+
11
+ export type { VariantProps as V };
@@ -0,0 +1,27 @@
1
+ import { CSSProperties } from 'react';
2
+
3
+ /**
4
+ * Helper type that includes an optional className and style prop for react
5
+ * components.
6
+ */
7
+ type WithStyleProps = {
8
+ /**
9
+ * A string. Specifies the element’s CSS class name.
10
+ *
11
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/Element/className
12
+ */
13
+ className?: string;
14
+ /**
15
+ * An object with CSS styles, for example `{ fontWeight: 'bold', margin: 20 }`.
16
+ * Similarly to the DOM style property, the CSS property names need to be
17
+ * written as camelCase, for example fontWeight instead of font-weight.
18
+ * You can pass strings or numbers as values. If you pass a number, like
19
+ * `width: 100`, React will automatically append px (“pixels”) to the value
20
+ * unless it’s a unitless property.
21
+ *
22
+ * @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/style
23
+ */
24
+ style?: CSSProperties;
25
+ };
26
+
27
+ export type { WithStyleProps as W };
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.2",
6
+ "version": "0.1.4",
7
7
  "homepage": "https://mantle.ngrok.com",
8
8
  "repository": {
9
9
  "type": "git",
@@ -101,98 +101,122 @@
101
101
  "exports": {
102
102
  "./mantle.css": "./assets/mantle.css",
103
103
  "./tailwind-preset": {
104
+ "require": "./dist/tailwind-preset.cjs",
104
105
  "import": "./dist/tailwind-preset.js",
105
106
  "types": "./dist/tailwind-preset.d.ts"
106
107
  },
107
108
  "./alert": {
109
+ "require": "./dist/alert.cjs",
108
110
  "import": "./dist/alert.js",
109
111
  "types": "./dist/alert.d.ts"
110
112
  },
111
113
  "./anchor": {
114
+ "require": "./dist/anchor.cjs",
112
115
  "import": "./dist/anchor.js",
113
116
  "types": "./dist/anchor.d.ts"
114
117
  },
115
118
  "./button": {
119
+ "require": "./dist/button.cjs",
116
120
  "import": "./dist/button.js",
117
121
  "types": "./dist/button.d.ts"
118
122
  },
119
123
  "./card": {
124
+ "require": "./dist/card.cjs",
120
125
  "import": "./dist/card.js",
121
126
  "types": "./dist/card.d.ts"
122
127
  },
123
128
  "./checkbox": {
129
+ "require": "./dist/checkbox.cjs",
124
130
  "import": "./dist/checkbox.js",
125
131
  "types": "./dist/checkbox.d.ts"
126
132
  },
127
133
  "./code-block": {
134
+ "require": "./dist/code-block.cjs",
128
135
  "import": "./dist/code-block.js",
129
136
  "types": "./dist/code-block.d.ts"
130
137
  },
131
138
  "./cx": {
139
+ "require": "./dist/cx.cjs",
132
140
  "import": "./dist/cx.js",
133
141
  "types": "./dist/cx.d.ts"
134
142
  },
135
143
  "./dialog": {
144
+ "require": "./dist/dialog.cjs",
136
145
  "import": "./dist/dialog.js",
137
146
  "types": "./dist/dialog.d.ts"
138
147
  },
139
148
  "./dropdown-menu": {
149
+ "require": "./dist/dropdown-menu.cjs",
140
150
  "import": "./dist/dropdown-menu.js",
141
151
  "types": "./dist/dropdown-menu.d.ts"
142
152
  },
143
153
  "./hooks": {
154
+ "require": "./dist/hooks.cjs",
144
155
  "import": "./dist/hooks.js",
145
156
  "types": "./dist/hooks.d.ts"
146
157
  },
147
158
  "./icon": {
159
+ "require": "./dist/icon.cjs",
148
160
  "import": "./dist/icon.js",
149
161
  "types": "./dist/icon.d.ts"
150
162
  },
151
163
  "./inline-code": {
164
+ "require": "./dist/inline-code.cjs",
152
165
  "import": "./dist/inline-code.js",
153
166
  "types": "./dist/inline-code.d.ts"
154
167
  },
155
168
  "./input": {
169
+ "require": "./dist/input.cjs",
156
170
  "import": "./dist/input.js",
157
171
  "types": "./dist/input.d.ts"
158
172
  },
159
173
  "./media-object": {
174
+ "require": "./dist/media-object.cjs",
160
175
  "import": "./dist/media-object.js",
161
176
  "types": "./dist/media-object.d.ts"
162
177
  },
163
178
  "./popover": {
179
+ "require": "./dist/popover.cjs",
164
180
  "import": "./dist/popover.js",
165
181
  "types": "./dist/popover.d.ts"
166
182
  },
167
183
  "./select": {
184
+ "require": "./dist/select.cjs",
168
185
  "import": "./dist/select.js",
169
186
  "types": "./dist/select.d.ts"
170
187
  },
171
188
  "./separator": {
189
+ "require": "./dist/separator.cjs",
172
190
  "import": "./dist/separator.js",
173
191
  "types": "./dist/separator.d.ts"
174
192
  },
175
193
  "./sheet": {
194
+ "require": "./dist/sheet.cjs",
176
195
  "import": "./dist/sheet.js",
177
196
  "types": "./dist/sheet.d.ts"
178
197
  },
179
198
  "./skeleton": {
199
+ "require": "./dist/skeleton.cjs",
180
200
  "import": "./dist/skeleton.js",
181
201
  "types": "./dist/skeleton.d.ts"
182
202
  },
183
203
  "./table": {
204
+ "require": "./dist/table.cjs",
184
205
  "import": "./dist/table.js",
185
206
  "types": "./dist/table.d.ts"
186
207
  },
187
208
  "./text-area": {
209
+ "require": "./dist/text-area.cjs",
188
210
  "import": "./dist/text-area.js",
189
211
  "types": "./dist/text-area.d.ts"
190
212
  },
191
213
  "./theme-provider": {
214
+ "require": "./dist/theme-provider.cjs",
192
215
  "import": "./dist/theme-provider.js",
193
216
  "types": "./dist/theme-provider.d.ts"
194
217
  },
195
218
  "./tooltip": {
219
+ "require": "./dist/tooltip.cjs",
196
220
  "import": "./dist/tooltip.js",
197
221
  "types": "./dist/tooltip.d.ts"
198
222
  },