@scouterna/ui-react 0.0.5 → 0.1.3
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 +1 -1
- package/dist/components/button/button.d.ts +5 -13
- package/dist/components/button/button.js +41 -16
- package/dist/components/button/button.js.map +1 -1
- package/dist/components/callout/callout.d.ts +10 -0
- package/dist/components/callout/callout.js +54 -0
- package/dist/components/callout/callout.js.map +1 -0
- package/dist/components/card/card.d.ts +8 -0
- package/dist/components/card/card.js +32 -0
- package/dist/components/card/card.js.map +1 -0
- package/dist/components/checkbox/checkbox.d.ts +3 -3
- package/dist/components/checkbox/checkbox.js +7 -10
- package/dist/components/checkbox/checkbox.js.map +1 -1
- package/dist/components/field/field.d.ts +13 -0
- package/dist/components/field/field.js +17 -0
- package/dist/components/field/field.js.map +1 -0
- package/dist/components/input/input.d.ts +3 -7
- package/dist/components/input/input.js +18 -20
- package/dist/components/input/input.js.map +1 -1
- package/dist/components/menu/menu.d.ts +13 -0
- package/dist/components/menu/menu.js +79 -0
- package/dist/components/menu/menu.js.map +1 -0
- package/dist/components/select/select.d.ts +7 -18
- package/dist/components/select/select.js +11 -22
- package/dist/components/select/select.js.map +1 -1
- package/dist/components/table/table-test.d.ts +2 -0
- package/dist/components/table/table-test.js +46 -0
- package/dist/components/table/table-test.js.map +1 -0
- package/dist/components/table/table.d.ts +11 -0
- package/dist/components/table/table.js +75 -0
- package/dist/components/table/table.js.map +1 -0
- package/dist/index.d.ts +5 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/style.css +382 -26
- package/package.json +15 -16
- package/dist/components/form-field/form-field.d.ts +0 -16
- package/dist/components/form-field/form-field.js +0 -16
- package/dist/components/form-field/form-field.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@scouterna/ui-react",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.1.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
|
-
"url": "git+https://github.com/Scouterna/
|
|
7
|
+
"url": "git+https://github.com/Scouterna/j26-components.git",
|
|
8
8
|
"directory": "packages/ui-react"
|
|
9
9
|
},
|
|
10
10
|
"type": "module",
|
|
@@ -30,18 +30,16 @@
|
|
|
30
30
|
"author": "",
|
|
31
31
|
"license": "MIT",
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@
|
|
34
|
-
"@
|
|
35
|
-
"@
|
|
36
|
-
"@radix-ui/react-slot": "^1.2.2",
|
|
37
|
-
"@tailwindcss/vite": "^4.1.7",
|
|
33
|
+
"@base-ui-components/react": "1.0.0-beta.1",
|
|
34
|
+
"@tailwindcss/vite": "^4.1.11",
|
|
35
|
+
"@tanstack/react-table": "^8.21.3",
|
|
38
36
|
"class-variance-authority": "^0.7.1",
|
|
39
37
|
"clsx": "^2.1.1",
|
|
40
|
-
"lucide-react": "^0.
|
|
38
|
+
"lucide-react": "^0.525.0",
|
|
41
39
|
"react": "^19.1.0",
|
|
42
|
-
"sonner": "^2.0.
|
|
43
|
-
"tailwind-merge": "^3.3.
|
|
44
|
-
"tailwindcss": "^4.1.
|
|
40
|
+
"sonner": "^2.0.6",
|
|
41
|
+
"tailwind-merge": "^3.3.1",
|
|
42
|
+
"tailwindcss": "^4.1.11"
|
|
45
43
|
},
|
|
46
44
|
"devDependencies": {
|
|
47
45
|
"@storybook/addon-a11y": "^8.6.14",
|
|
@@ -52,15 +50,16 @@
|
|
|
52
50
|
"@storybook/react": "8.6.14",
|
|
53
51
|
"@storybook/react-vite": "8.6.14",
|
|
54
52
|
"@storybook/test": "8.6.14",
|
|
55
|
-
"@
|
|
56
|
-
"@
|
|
57
|
-
"@vitest/
|
|
53
|
+
"@tailwindcss/cli": "^4.1.11",
|
|
54
|
+
"@types/react": "^19.1.8",
|
|
55
|
+
"@vitest/browser": "^3.2.4",
|
|
56
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
58
57
|
"copyfiles": "^2.4.1",
|
|
59
|
-
"playwright": "^1.
|
|
58
|
+
"playwright": "^1.53.2",
|
|
60
59
|
"prop-types": "15.8.1",
|
|
61
60
|
"storybook": "8.6.14",
|
|
62
61
|
"typescript": "^5.8.3",
|
|
63
62
|
"vite": "^6.3.5",
|
|
64
|
-
"vitest": "^3.
|
|
63
|
+
"vitest": "^3.2.4"
|
|
65
64
|
}
|
|
66
65
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
2
|
-
export type FieldProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
-
asChild?: boolean;
|
|
4
|
-
label: string;
|
|
5
|
-
labelFor: string;
|
|
6
|
-
};
|
|
7
|
-
declare const Field: import("react").ForwardRefExoticComponent<import("react").HTMLAttributes<HTMLDivElement> & {
|
|
8
|
-
asChild?: boolean;
|
|
9
|
-
label: string;
|
|
10
|
-
labelFor: string;
|
|
11
|
-
} & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
|
-
export type LabelProps = React.LabelHTMLAttributes<HTMLLabelElement> & {
|
|
13
|
-
htmlFor: string;
|
|
14
|
-
};
|
|
15
|
-
declare const Label: import("react").ForwardRefExoticComponent<Omit<LabelPrimitive.LabelProps & import("react").RefAttributes<HTMLLabelElement>, "ref"> & import("react").RefAttributes<HTMLLabelElement>>;
|
|
16
|
-
export { Field, Label };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import * as LabelPrimitive from "@radix-ui/react-label";
|
|
3
|
-
import { Slot } from "@radix-ui/react-slot";
|
|
4
|
-
import { forwardRef } from "react";
|
|
5
|
-
import { cn } from "../../lib/utils.js";
|
|
6
|
-
const Field = forwardRef(({ className, asChild = false, label, labelFor, children, ...props }, ref) => {
|
|
7
|
-
const Comp = asChild ? Slot : "div";
|
|
8
|
-
return (_jsx(Comp, { className: cn(""), ref: ref, ...props, children: children }));
|
|
9
|
-
});
|
|
10
|
-
Field.displayName = "Field";
|
|
11
|
-
const Label = forwardRef(({ className, ...props }, ref) => {
|
|
12
|
-
return (_jsx(LabelPrimitive.Root, { className: cn("font-bold text-sm text-gray-dark"), ref: ref, ...props }));
|
|
13
|
-
});
|
|
14
|
-
Label.displayName = LabelPrimitive.Root.displayName;
|
|
15
|
-
export { Field, Label };
|
|
16
|
-
//# sourceMappingURL=form-field.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-field.js","sourceRoot":"","sources":["../../../src/components/form-field/form-field.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,cAAc,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AACnC,OAAO,EAAE,EAAE,EAAE,MAAM,oBAAoB,CAAC;AAQxC,MAAM,KAAK,GAAG,UAAU,CACtB,CACE,EAAE,SAAS,EAAE,OAAO,GAAG,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EACnE,GAAG,EACH,EAAE;IACF,MAAM,IAAI,GAAG,OAAO,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC;IAEpC,OAAO,CACL,KAAC,IAAI,IAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,GAAG,KAAM,KAAK,YACzC,QAAQ,GACJ,CACR,CAAC;AACJ,CAAC,CACF,CAAC;AACF,KAAK,CAAC,WAAW,GAAG,OAAO,CAAC;AAO5B,MAAM,KAAK,GAAG,UAAU,CAGtB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,EAAE,EAAE;IACjC,OAAO,CACL,KAAC,cAAc,CAAC,IAAI,IAClB,SAAS,EAAE,EAAE,CAAC,kCAAkC,CAAC,EACjD,GAAG,EAAE,GAAG,KACJ,KAAK,GACT,CACH,CAAC;AACJ,CAAC,CAAC,CAAC;AACH,KAAK,CAAC,WAAW,GAAG,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC;AAEpD,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC"}
|