@bonprix-ds/react-radio-group 1.0.12 → 1.0.13
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/index.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
export { e as default };
|
|
1
|
+
export { default } from "./src/RadioGroup.js";
|
package/dist/src/RadioGroup.js
CHANGED
|
@@ -2,10 +2,9 @@ import e from "./RadioGroupItem.js";
|
|
|
2
2
|
import t from "./RadioGroupRoot.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
-
|
|
5
|
+
// src/RadioGroup.tsx
|
|
6
6
|
var r = (e) => /* @__PURE__ */ n(t, { ...e });
|
|
7
7
|
r.displayName = "RadioGroup", r.Item = e;
|
|
8
|
-
//#endregion
|
|
9
8
|
export { r as default };
|
|
10
9
|
|
|
11
10
|
//# sourceMappingURL=RadioGroup.js.map
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { createContext as e } from "react";
|
|
3
|
-
|
|
3
|
+
// src/RadioGroupContext.ts
|
|
4
4
|
var t = e({
|
|
5
5
|
disabled: !1,
|
|
6
6
|
error: !1,
|
|
7
7
|
checkedValue: ""
|
|
8
8
|
});
|
|
9
|
-
//#endregion
|
|
10
9
|
export { t as default };
|
|
11
10
|
|
|
12
11
|
//# sourceMappingURL=RadioGroupContext.js.map
|
|
@@ -4,7 +4,7 @@ import "react";
|
|
|
4
4
|
import * as t from "@radix-ui/react-radio-group";
|
|
5
5
|
import { tv as n } from "tailwind-variants";
|
|
6
6
|
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
7
|
-
|
|
7
|
+
// src/RadioGroupItem.tsx
|
|
8
8
|
var a = n({
|
|
9
9
|
base: "preflight typography-input-text flex justify-between gap-2 text-clr-primary",
|
|
10
10
|
slots: {
|
|
@@ -59,7 +59,6 @@ var a = n({
|
|
|
59
59
|
});
|
|
60
60
|
};
|
|
61
61
|
o.displayName = "RadioGroup.Item";
|
|
62
|
-
//#endregion
|
|
63
62
|
export { o as default };
|
|
64
63
|
|
|
65
64
|
//# sourceMappingURL=RadioGroupItem.js.map
|
|
@@ -6,7 +6,7 @@ import * as r from "@radix-ui/react-radio-group";
|
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
7
7
|
import { SelectionControlGroup as o } from "@bonprix-ds/internal-components";
|
|
8
8
|
import "#styles";
|
|
9
|
-
|
|
9
|
+
// src/RadioGroupRoot.tsx
|
|
10
10
|
var s = ({ value: s, onChange: c, label: l, "aria-label": u, "aria-labelledby": d, children: f, name: p, disabled: m = !1, error: h = !1, errorText: g = "", helperText: _, required: v = !1, divider: y = !1, horizontalPadding: b = !1, ...x }) => {
|
|
11
11
|
let S = "defaultValue" in x ? x.defaultValue : void 0, [C, w] = n(S ?? ""), T = s !== void 0, E = T ? s : C;
|
|
12
12
|
return /* @__PURE__ */ i(o, {
|
|
@@ -47,7 +47,6 @@ var s = ({ value: s, onChange: c, label: l, "aria-label": u, "aria-labelledby":
|
|
|
47
47
|
});
|
|
48
48
|
};
|
|
49
49
|
s.displayName = "RadioGroup";
|
|
50
|
-
//#endregion
|
|
51
50
|
export { s as default };
|
|
52
51
|
|
|
53
52
|
//# sourceMappingURL=RadioGroupRoot.js.map
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import e from "./RadioGroupContext.js";
|
|
2
2
|
import { useContext as t } from "react";
|
|
3
|
-
|
|
3
|
+
// src/useConsumeRadioGroup.ts
|
|
4
4
|
var n = () => t(e);
|
|
5
|
-
//#endregion
|
|
6
5
|
export { n as default };
|
|
7
6
|
|
|
8
7
|
//# sourceMappingURL=useConsumeRadioGroup.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonprix-ds/react-radio-group",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.13",
|
|
4
4
|
"description": "RadioGroup component, implemented in React, for the Bonprix Design System.",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -41,14 +41,14 @@
|
|
|
41
41
|
"provenance": true
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@
|
|
45
|
-
"@bonprix-ds/
|
|
46
|
-
"@
|
|
44
|
+
"@bonprix-ds/internal-components": "0.2.6",
|
|
45
|
+
"@bonprix-ds/utils": "0.6.0",
|
|
46
|
+
"@radix-ui/react-radio-group": "1.5.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
+
"@bonprix-ds/vite-config": "0.0.0",
|
|
49
50
|
"@types/react": "19.3.0",
|
|
50
|
-
"vite": "8.3.
|
|
51
|
-
"@bonprix-ds/vite-config": "0.0.0"
|
|
51
|
+
"vite": "8.3.5"
|
|
52
52
|
},
|
|
53
53
|
"peerDependencies": {
|
|
54
54
|
"react": "^19",
|