@bonprix-ds/react-checkbox-group 1.0.5 → 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.d.ts
CHANGED
|
@@ -18,8 +18,8 @@ declare interface CheckboxGroupBaseProps extends Omit<SelectionControlGroupProps
|
|
|
18
18
|
name: string;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
|
-
declare interface CheckboxGroupItemProps {
|
|
22
|
-
/** Value of the checkbox group item, which will be submitted.
|
|
21
|
+
export declare interface CheckboxGroupItemProps {
|
|
22
|
+
/** Value of the checkbox group item, which will be submitted. */
|
|
23
23
|
value?: string;
|
|
24
24
|
/** The label for the checkbox group item. */
|
|
25
25
|
label: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CheckboxGroupItem.js","names":[],"sources":["../../../src/CheckboxGroupItem/CheckboxGroupItem.tsx"],"sourcesContent":["\"use client\";\n\nimport { CheckboxBase } from \"@bonprix-ds/internal-components\";\nimport React, { useContext } from \"react\";\n\nimport CheckboxGroupContext from \"../CheckboxGroupContext\";\n\nexport interface CheckboxGroupItemProps {\n /** Value of the checkbox group item, which will be submitted.
|
|
1
|
+
{"version":3,"file":"CheckboxGroupItem.js","names":[],"sources":["../../../src/CheckboxGroupItem/CheckboxGroupItem.tsx"],"sourcesContent":["\"use client\";\n\nimport { CheckboxBase } from \"@bonprix-ds/internal-components\";\nimport React, { useContext } from \"react\";\n\nimport CheckboxGroupContext from \"../CheckboxGroupContext\";\n\nexport interface CheckboxGroupItemProps {\n /** Value of the checkbox group item, which will be submitted. */\n value?: string;\n /** The label for the checkbox group item. */\n label: string;\n}\n\nconst CheckboxGroupItem = ({ label, value = label }: CheckboxGroupItemProps) => {\n const { values, onChange, ...rest } = useContext(CheckboxGroupContext);\n const checked = values.includes(value);\n\n const handleChange = () => {\n const newValues = checked ? values.filter((v) => v !== value) : [...values, value];\n onChange?.(newValues);\n };\n\n return <CheckboxBase {...rest} checked={checked} onChange={handleChange} label={label} value={value} />;\n};\n\nCheckboxGroupItem.displayName = \"CheckboxGroup.Item\";\n\nexport default CheckboxGroupItem;\n"],"mappings":";;;;;;AAcA,IAAM,KAAqB,EAAE,UAAO,WAAQ,QAAoC;CAC9E,IAAM,EAAE,WAAQ,aAAU,GAAG,MAAS,EAAW,CAAoB,GAC/D,IAAU,EAAO,SAAS,CAAK,GAE/B,UAAqB;EACzB,IAAM,IAAY,IAAU,EAAO,QAAQ,MAAM,MAAM,CAAK,IAAI,CAAC,GAAG,GAAQ,CAAK;EACjF,IAAW,CAAS;CACtB;CAEA,OAAO,kBAAC,GAAD;EAAc,GAAI;EAAe;EAAS,UAAU;EAAqB;EAAc;CAAQ,CAAA;AACxG;AAEA,EAAkB,cAAc"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bonprix-ds/react-checkbox-group",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "CheckboxGroup component, implemented in React, for the Bonprix Design System.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -22,15 +22,15 @@
|
|
|
22
22
|
],
|
|
23
23
|
"keywords": [],
|
|
24
24
|
"author": "",
|
|
25
|
-
"license": "
|
|
25
|
+
"license": "UNLICENSED",
|
|
26
26
|
"repository": {
|
|
27
27
|
"type": "git",
|
|
28
28
|
"url": "git+https://github.com/bonprix/design-system.git",
|
|
29
29
|
"directory": "packages/react/checkbox-group"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@bonprix-ds/internal-components": "0.
|
|
33
|
-
"@bonprix-ds/utils": "0.2.
|
|
32
|
+
"@bonprix-ds/internal-components": "0.2.0",
|
|
33
|
+
"@bonprix-ds/utils": "0.2.2"
|
|
34
34
|
},
|
|
35
35
|
"peerDependencies": {
|
|
36
36
|
"react": "^19.0.0",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
"tailwind-variants": "0.3.1"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
|
-
"vite": "8.2.
|
|
41
|
+
"vite": "8.2.2",
|
|
42
42
|
"@types/react": "19.2.18",
|
|
43
|
-
"@vitejs/plugin-react": "6.
|
|
43
|
+
"@vitejs/plugin-react": "6.1.1",
|
|
44
44
|
"rollup-preserve-directives": "1.1.3",
|
|
45
|
-
"unplugin-dts": "1.0
|
|
46
|
-
"@microsoft/api-extractor": "7.
|
|
45
|
+
"unplugin-dts": "1.1.0",
|
|
46
|
+
"@microsoft/api-extractor": "7.59.1"
|
|
47
47
|
},
|
|
48
48
|
"scripts": {
|
|
49
49
|
"build": "vite build"
|