@pihanga2/shadcn 0.2.18 → 0.2.19
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 +4 -1
- package/cards/button/button.types.d.ts +2 -2
- package/cards/checkbox/checkbox.types.d.ts +2 -2
- package/cards/codeMirror/codeMirror.types.d.ts +1 -1
- package/cards/collapsibleCard/collapsibleCard.types.d.ts +1 -1
- package/cards/dataTable/dataTable.types.d.ts +5 -5
- package/cards/dialog/dialog.types.d.ts +3 -3
- package/cards/drawer/drawer.types.d.ts +3 -3
- package/cards/dropDownMenu/drop-down.types.d.ts +1 -1
- package/cards/emptyCard/emptyCard.component.js +25 -0
- package/cards/emptyCard/emptyCard.component.js.map +1 -0
- package/cards/emptyCard/emptyCard.types.js +7 -0
- package/cards/emptyCard/emptyCard.types.js.map +1 -0
- package/cards/emptyCard/index.js +12 -0
- package/cards/emptyCard/index.js.map +1 -0
- package/cards/fileDrop/fileDrop.types.d.ts +2 -2
- package/cards/form/form.types.d.ts +2 -2
- package/cards/graphin/graphin.types.d.ts +9 -9
- package/cards/input/input.component.js +28 -23
- package/cards/input/input.component.js.map +1 -1
- package/cards/input/input.types.d.ts +10 -4
- package/cards/input/input.types.js.map +1 -1
- package/cards/jsonViewer/jsonViewer.types.d.ts +2 -2
- package/cards/keyboardOverlay/keyboardOverlay.component.js +1 -0
- package/cards/keyboardOverlay/keyboardOverlay.component.js.map +1 -1
- package/cards/keyboardOverlay/keyboardOverlay.types.d.ts +1 -1
- package/cards/list/list.types.d.ts +1 -1
- package/cards/menu/menu.types.d.ts +1 -1
- package/cards/modeToggle/mode-toggle.types.d.ts +1 -1
- package/cards/navbarSearch/navbarSearch.type.d.ts +3 -3
- package/cards/observable/index.d.ts +1 -0
- package/cards/observable/index.js +13 -0
- package/cards/observable/index.js.map +1 -0
- package/cards/observable/observable.component.d.ts +4 -0
- package/cards/observable/observable.component.js +74 -0
- package/cards/observable/observable.component.js.map +1 -0
- package/cards/observable/observable.types.d.ts +253 -0
- package/cards/observable/observable.types.js +21 -0
- package/cards/observable/observable.types.js.map +1 -0
- package/cards/pageWithNavbar/pageWithNavbar.type.d.ts +1 -1
- package/cards/pageWithNavbarMeta/pageWithNavbarMeta.types.d.ts +1 -1
- package/cards/pasteTarget/pasteTarget.types.d.ts +2 -2
- package/cards/scrollbarWithAnnotations/scrollbarWithAnnotations.types.d.ts +2 -2
- package/cards/select/select.types.d.ts +6 -6
- package/cards/sheetCard/sheetCard.types.d.ts +3 -3
- package/cards/slider/slider.types.d.ts +4 -4
- package/cards/stack/stack.component.js +51 -38
- package/cards/stack/stack.component.js.map +1 -1
- package/cards/stepper/stepper.types.d.ts +1 -1
- package/cards/switch/switch.types.d.ts +2 -2
- package/cards/tabs/tabs.types.d.ts +1 -1
- package/cards/textArea/index.d.ts +1 -0
- package/cards/textArea/index.js +13 -0
- package/cards/textArea/index.js.map +1 -0
- package/cards/textArea/textArea.component.d.ts +4 -0
- package/cards/textArea/textArea.component.js +83 -0
- package/cards/textArea/textArea.component.js.map +1 -0
- package/cards/textArea/textArea.types.d.ts +147 -0
- package/cards/textArea/textArea.types.js +7 -0
- package/cards/textArea/textArea.types.js.map +1 -0
- package/cards/textField/textField.types.d.ts +2 -2
- package/cards/toast/toast.types.d.ts +3 -3
- package/cards/toggleGroup/toggleGroup.types.d.ts +2 -2
- package/components/ui/empty.js +40 -0
- package/components/ui/empty.js.map +1 -0
- package/components/ui/input.js +11 -11
- package/components/ui/input.js.map +1 -1
- package/components/ui/textarea.js +15 -0
- package/components/ui/textarea.js.map +1 -0
- package/package.json +18 -2
package/components/ui/input.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { cn as e } from "../lib/utils.js";
|
|
2
|
-
import "react";
|
|
3
|
-
import { jsx as
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
4
|
//#region src/components/ui/input.tsx
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
var r = t.forwardRef(({ className: t, type: r, ...i }, a) => /* @__PURE__ */ n("input", {
|
|
6
|
+
ref: a,
|
|
7
|
+
type: r,
|
|
8
|
+
"data-slot": "input",
|
|
9
|
+
className: e("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm", "focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]", "aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive", t),
|
|
10
|
+
...i
|
|
11
|
+
}));
|
|
12
|
+
r.displayName = "Input";
|
|
13
13
|
//#endregion
|
|
14
|
-
export {
|
|
14
|
+
export { r as Input };
|
|
15
15
|
|
|
16
16
|
//# sourceMappingURL=input.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","names":[],"sources":["../../../src/components/ui/input.tsx"],"sourcesContent":["import * as React from \"react\"
|
|
1
|
+
{"version":3,"file":"input.js","names":[],"sources":["../../../src/components/ui/input.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport {cn} from \"@/components/lib/utils\";\n\nconst Input = React.forwardRef<HTMLInputElement, React.ComponentProps<\"input\">>(\n ({className, type, ...props}, ref) => {\n return (\n <input\n ref={ref}\n type={type}\n data-slot=\"input\"\n className={cn(\n \"file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm\",\n \"focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]\",\n \"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive\",\n className,\n )}\n {...props}\n />\n );\n },\n);\nInput.displayName = \"Input\";\n\nexport {Input};\n"],"mappings":";;;;AAIA,IAAM,IAAQ,EAAM,YACjB,EAAC,cAAW,SAAM,GAAG,KAAQ,MAE1B,kBAAC,SAAD;CACO;CACC;CACN,aAAU;CACV,WAAW,EACT,8bACA,iFACA,0GACA,CACF;CACA,GAAI;AACL,CAAA,CAGP;AACA,EAAM,cAAc"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { cn as e } from "../../lib/utils.js";
|
|
2
|
+
import * as t from "react";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region src/components/ui/textarea.tsx
|
|
5
|
+
var r = t.forwardRef(({ className: t, ...r }, i) => /* @__PURE__ */ n("textarea", {
|
|
6
|
+
ref: i,
|
|
7
|
+
"data-slot": "textarea",
|
|
8
|
+
className: e("flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40", t),
|
|
9
|
+
...r
|
|
10
|
+
}));
|
|
11
|
+
r.displayName = "Textarea";
|
|
12
|
+
//#endregion
|
|
13
|
+
export { r as Textarea };
|
|
14
|
+
|
|
15
|
+
//# sourceMappingURL=textarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"textarea.js","names":[],"sources":["../../../src/components/ui/textarea.tsx"],"sourcesContent":["import * as React from \"react\";\n\nimport {cn} from \"@/lib/utils\";\n\nconst Textarea = React.forwardRef<\n HTMLTextAreaElement,\n React.ComponentProps<\"textarea\">\n>(({className, ...props}, ref) => {\n return (\n <textarea\n ref={ref}\n data-slot=\"textarea\"\n className={cn(\n \"flex field-sizing-content min-h-16 w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:ring-destructive/40\",\n className,\n )}\n {...props}\n />\n );\n});\nTextarea.displayName = \"Textarea\";\n\nexport {Textarea};\n"],"mappings":";;;;AAIA,IAAM,IAAW,EAAM,YAGpB,EAAC,cAAW,GAAG,KAAQ,MAEtB,kBAAC,YAAD;CACO;CACL,aAAU;CACV,WAAW,EACT,ucACA,CACF;CACA,GAAI;AACL,CAAA,CAEJ;AACD,EAAS,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pihanga2/shadcn",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.19",
|
|
4
4
|
"description": "Pihanga core card components built on shadcn/ui and Radix UI — the npm distribution of pihanga-shadcn.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -48,6 +48,10 @@
|
|
|
48
48
|
"import": "./cards/dropDownMenu/index.js",
|
|
49
49
|
"types": "./cards/dropDownMenu/index.d.ts"
|
|
50
50
|
},
|
|
51
|
+
"./cards/emptyCard": {
|
|
52
|
+
"import": "./cards/emptyCard/index.js",
|
|
53
|
+
"types": "./cards/emptyCard/index.d.ts"
|
|
54
|
+
},
|
|
51
55
|
"./cards/field": {
|
|
52
56
|
"import": "./cards/field/index.js",
|
|
53
57
|
"types": "./cards/field/index.d.ts"
|
|
@@ -112,6 +116,10 @@
|
|
|
112
116
|
"import": "./cards/navbarSearch/index.js",
|
|
113
117
|
"types": "./cards/navbarSearch/index.d.ts"
|
|
114
118
|
},
|
|
119
|
+
"./cards/observable": {
|
|
120
|
+
"import": "./cards/observable/index.js",
|
|
121
|
+
"types": "./cards/observable/index.d.ts"
|
|
122
|
+
},
|
|
115
123
|
"./cards/pageWithNavbar": {
|
|
116
124
|
"import": "./cards/pageWithNavbar/index.js",
|
|
117
125
|
"types": "./cards/pageWithNavbar/index.d.ts"
|
|
@@ -176,6 +184,10 @@
|
|
|
176
184
|
"import": "./cards/tabs/index.js",
|
|
177
185
|
"types": "./cards/tabs/index.d.ts"
|
|
178
186
|
},
|
|
187
|
+
"./cards/textArea": {
|
|
188
|
+
"import": "./cards/textArea/index.js",
|
|
189
|
+
"types": "./cards/textArea/index.d.ts"
|
|
190
|
+
},
|
|
179
191
|
"./cards/textField": {
|
|
180
192
|
"import": "./cards/textField/index.js",
|
|
181
193
|
"types": "./cards/textField/index.d.ts"
|
|
@@ -225,6 +237,7 @@
|
|
|
225
237
|
"./cards/dialog/index.js",
|
|
226
238
|
"./cards/drawer/index.js",
|
|
227
239
|
"./cards/dropDownMenu/index.js",
|
|
240
|
+
"./cards/emptyCard/index.js",
|
|
228
241
|
"./cards/field/index.js",
|
|
229
242
|
"./cards/fileDrop/index.js",
|
|
230
243
|
"./cards/flexGrid/index.js",
|
|
@@ -241,6 +254,7 @@
|
|
|
241
254
|
"./cards/menu/index.js",
|
|
242
255
|
"./cards/modeToggle/index.js",
|
|
243
256
|
"./cards/navbarSearch/index.js",
|
|
257
|
+
"./cards/observable/index.js",
|
|
244
258
|
"./cards/pageWithNavbar/index.js",
|
|
245
259
|
"./cards/pageWithNavbarMeta/index.js",
|
|
246
260
|
"./cards/pasteTarget/index.js",
|
|
@@ -257,6 +271,7 @@
|
|
|
257
271
|
"./cards/suspense/index.js",
|
|
258
272
|
"./cards/switch/index.js",
|
|
259
273
|
"./cards/tabs/index.js",
|
|
274
|
+
"./cards/textArea/index.js",
|
|
260
275
|
"./cards/textField/index.js",
|
|
261
276
|
"./cards/toast/index.js",
|
|
262
277
|
"./cards/toggleGroup/index.js",
|
|
@@ -280,10 +295,11 @@
|
|
|
280
295
|
"peerDependencies": {
|
|
281
296
|
"react": "^19.1.0",
|
|
282
297
|
"react-dom": "^19.1.0",
|
|
283
|
-
"@pihanga2/core": "
|
|
298
|
+
"@pihanga2/core": "0.3.38",
|
|
284
299
|
"@pihanga2/cards": "*"
|
|
285
300
|
},
|
|
286
301
|
"dependencies": {
|
|
302
|
+
"@pihanga2/shadcn": "UNKNOWN - add to root package.json",
|
|
287
303
|
"@radix-ui/react-collapsible": "^1.1.20",
|
|
288
304
|
"@radix-ui/react-dialog": "^1.1.15",
|
|
289
305
|
"@radix-ui/react-dropdown-menu": "^2.1.16",
|