@bonprix-ds/react-radio-group 1.0.6 → 1.0.7
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 +1 -1
- package/dist/src/RadioGroup.css +14 -0
- package/dist/src/{RadioGroup2.js → RadioGroup.js} +1 -1
- package/dist/src/RadioGroup.js.map +1 -0
- package/dist/src/RadioGroupRoot.js +1 -1
- package/package.json +7 -6
- package/dist/react-radio-group.css +0 -2
- package/dist/src/RadioGroup2.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import e from "./src/
|
|
1
|
+
import e from "./src/RadioGroup.js";
|
|
2
2
|
export { e as default };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
[data-bpds-has-divider="true"] {
|
|
2
|
+
[role="radiogroup"] [data-bpds-radio-group-item]:not(:last-child)::after {
|
|
3
|
+
background-color: var(--color-bg-main-light);
|
|
4
|
+
block-size: var(--spacing-0-25);
|
|
5
|
+
content: "";
|
|
6
|
+
display: block;
|
|
7
|
+
margin-block: var(--spacing-0-5);
|
|
8
|
+
margin-inline: var(--divider-margin-inline, 0);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
&[data-bpds-has-horizontal-padding="true"] {
|
|
12
|
+
--divider-margin-inline: calc(var(--spacing-3) * -1);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.js","names":[],"sources":["../../src/RadioGroup.tsx"],"sourcesContent":["import React from \"react\";\n\nimport RadioGroupItem from \"./RadioGroupItem\";\nimport RadioGroupRoot, { type Props } from \"./RadioGroupRoot\";\n\nexport type { Props };\n\nconst RadioGroup = (props: Props) => <RadioGroupRoot {...props} />;\n\nRadioGroup.displayName = \"RadioGroup\";\n\nRadioGroup.Item = RadioGroupItem;\n\nexport default RadioGroup;\n"],"mappings":";;;;;AAOA,IAAM,KAAc,MAAiB,kBAAC,GAAD,EAAgB,GAAI,EAAQ,CAAA;AAEjE,EAAW,cAAc,cAEzB,EAAW,OAAO"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import e from "./RadioGroupContext.js";
|
|
3
3
|
import t from "./RadioGroupItem.js";
|
|
4
|
-
/* empty css */
|
|
5
4
|
import { useState as n } from "react";
|
|
6
5
|
import * as r from "@radix-ui/react-radio-group";
|
|
7
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
8
7
|
import { SelectionControlGroup as o } from "@bonprix-ds/internal-components";
|
|
8
|
+
import "./RadioGroup.css";
|
|
9
9
|
//#region 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;
|
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.7",
|
|
4
4
|
"description": "RadioGroup component, implemented in React, for the Bonprix Design System.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@radix-ui/react-radio-group": "1.4.7",
|
|
35
|
-
"@bonprix-ds/internal-components": "0.
|
|
36
|
-
"@bonprix-ds/utils": "0.2.
|
|
35
|
+
"@bonprix-ds/internal-components": "0.2.0",
|
|
36
|
+
"@bonprix-ds/utils": "0.2.2"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"react": "^19.0.0",
|
|
@@ -43,10 +43,11 @@
|
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"vite": "8.2.2",
|
|
45
45
|
"@types/react": "19.2.18",
|
|
46
|
-
"@vitejs/plugin-react": "6.1.
|
|
46
|
+
"@vitejs/plugin-react": "6.1.1",
|
|
47
47
|
"rollup-preserve-directives": "1.1.3",
|
|
48
|
-
"unplugin-dts": "1.0
|
|
49
|
-
"@microsoft/api-extractor": "7.59.
|
|
48
|
+
"unplugin-dts": "1.1.0",
|
|
49
|
+
"@microsoft/api-extractor": "7.59.1",
|
|
50
|
+
"@bonprix-ds/vite-config": "0.0.0"
|
|
50
51
|
},
|
|
51
52
|
"scripts": {
|
|
52
53
|
"build": "vite build"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
[data-bpds-has-divider=true] [role=radiogroup] [data-bpds-radio-group-item]:not(:last-child):after{background-color:var(--color-bg-main-light);block-size:var(--spacing-0-25);content:"";margin-block:var(--spacing-0-5);margin-inline:var(--divider-margin-inline,0);display:block}[data-bpds-has-divider=true][data-bpds-has-horizontal-padding=true]{--divider-margin-inline:calc(var(--spacing-3) * -1)}
|
|
2
|
-
/*$vite$:1*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup2.js","names":[],"sources":["../../src/RadioGroup.tsx"],"sourcesContent":["import React from \"react\";\n\nimport RadioGroupItem from \"./RadioGroupItem\";\nimport RadioGroupRoot, { type Props } from \"./RadioGroupRoot\";\n\nexport type { Props };\n\nconst RadioGroup = (props: Props) => <RadioGroupRoot {...props} />;\n\nRadioGroup.displayName = \"RadioGroup\";\n\nRadioGroup.Item = RadioGroupItem;\n\nexport default RadioGroup;\n"],"mappings":";;;;;AAOA,IAAM,KAAc,MAAiB,kBAAC,GAAD,EAAgB,GAAI,EAAQ,CAAA;AAEjE,EAAW,cAAc,cAEzB,EAAW,OAAO"}
|