@rijkshuisstijl-community/checkbox-react 1.0.0 → 1.1.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # @rijkshuisstijl-community/checkbox-react
2
2
 
3
+ ## 1.1.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 89b2604: Fix security vulnerabilities identified by pnpm audit by upgrading vitest and @vitest/coverage-v8 from 4.1.8 to 4.1.10.
8
+
9
+ ## 1.1.1
10
+
11
+ ### Patch Changes
12
+
13
+ - e41c59f: update dependencies
14
+
15
+ ## 1.1.0
16
+
17
+ ### Minor Changes
18
+
19
+ - c9e30de: Added an option to import the components separate from the css.
20
+
21
+ ### Patch Changes
22
+
23
+ - c414601: Ensure package is published with provenance
24
+ - 02786d9: security patch
25
+ - Updated dependencies [c414601]
26
+ - @rijkshuisstijl-community/checkbox-css@1.0.1
27
+
3
28
  ## 1.0.0
4
29
 
5
30
  ### Major Changes
@@ -4,4 +4,4 @@
4
4
  */
5
5
  import { type CheckboxProps } from '@utrecht/component-library-react';
6
6
  export type { CheckboxProps } from '@utrecht/component-library-react';
7
- export declare const Checkbox: (props: CheckboxProps) => import("react/jsx-runtime").JSX.Element;
7
+ export declare const Checkbox: (props: CheckboxProps) => import("react").JSX.Element;
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
1
  import '@rijkshuisstijl-community/checkbox-css';
2
- export { Checkbox, type CheckboxProps } from './Checkbox';
2
+ export * from './Checkbox';
@@ -1,4 +1,3 @@
1
- 'use client';
2
1
  import '@rijkshuisstijl-community/checkbox-css';
3
2
  import { jsx } from 'react/jsx-runtime';
4
3
  import { Checkbox as Checkbox$1 } from '@utrecht/component-library-react';
@@ -13,4 +12,4 @@ const Checkbox = props => {
13
12
  };
14
13
 
15
14
  export { Checkbox };
16
- //# sourceMappingURL=index.esm.js.map
15
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","sources":["../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../src/Checkbox.tsx"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * @license EUPL-1.2\n * Copyright (c) 2026 Community for NL Design System\n */\n\nimport { type CheckboxProps, Checkbox as UtrechtCheckbox } from '@utrecht/component-library-react';\nimport clsx from 'clsx';\n\nexport type { CheckboxProps } from '@utrecht/component-library-react';\n\nexport const Checkbox = (props: CheckboxProps) => {\n return <UtrechtCheckbox {...props} className={clsx('rhc-checkbox', props['className'])} />;\n};\n"],"names":["Checkbox","props","_jsx","UtrechtCheckbox","className","clsx"],"mappings":";;;;AAAA,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,QAAQ,EAAE,OAAO,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAC,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAQ,SAAS,IAAI,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;ACUxW,MAAMA,QAAQ,GAAIC,KAAoB,IAAI;EAC/C,OAAOC,IAACC,UAAe,EAAA;AAAA,IAAA,GAAKF,KAAK;IAAEG,SAAS,EAAEC,IAAI,CAAC,cAAc,EAAEJ,KAAK,CAAC,WAAW,CAAC;IAAK;AAC5F;;;;","x_google_ignoreList":[0]}
@@ -0,0 +1 @@
1
+ export * from './Checkbox';
@@ -0,0 +1,14 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { Checkbox as Checkbox$1 } from '@utrecht/component-library-react';
3
+
4
+ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);}else for(f in e)e[f]&&(n&&(n+=" "),n+=f);return n}function clsx(){for(var e,t,f=0,n="",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
5
+
6
+ const Checkbox = props => {
7
+ return jsx(Checkbox$1, {
8
+ ...props,
9
+ className: clsx('rhc-checkbox', props['className'])
10
+ });
11
+ };
12
+
13
+ export { Checkbox };
14
+ //# sourceMappingURL=noSideEffects.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"noSideEffects.mjs","sources":["../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../src/Checkbox.tsx"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * @license EUPL-1.2\n * Copyright (c) 2026 Community for NL Design System\n */\n\nimport { type CheckboxProps, Checkbox as UtrechtCheckbox } from '@utrecht/component-library-react';\nimport clsx from 'clsx';\n\nexport type { CheckboxProps } from '@utrecht/component-library-react';\n\nexport const Checkbox = (props: CheckboxProps) => {\n return <UtrechtCheckbox {...props} className={clsx('rhc-checkbox', props['className'])} />;\n};\n"],"names":["Checkbox","props","_jsx","UtrechtCheckbox","className","clsx"],"mappings":";;;AAAA,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,QAAQ,EAAE,OAAO,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAC,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAQ,SAAS,IAAI,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;ACUxW,MAAMA,QAAQ,GAAIC,KAAoB,IAAI;EAC/C,OAAOC,IAACC,UAAe,EAAA;AAAA,IAAA,GAAKF,KAAK;IAAEG,SAAS,EAAEC,IAAI,CAAC,cAAc,EAAEJ,KAAK,CAAC,WAAW,CAAC;IAAK;AAC5F;;;;","x_google_ignoreList":[0]}
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.1.2",
3
3
  "author": "Community for Rijkshuisstijl-Community Design System",
4
4
  "description": "Checkbox Component",
5
5
  "license": "EUPL-1.2",
@@ -11,22 +11,26 @@
11
11
  "src/",
12
12
  "*.md"
13
13
  ],
14
- "module": "./dist/index.esm.js",
14
+ "module": "./dist/index.mjs",
15
15
  "types": "./dist/index.d.ts",
16
16
  "exports": {
17
17
  ".": {
18
18
  "rhc:source": "./src/index.ts",
19
- "default": {
20
- "types": "./dist/index.d.ts",
21
- "import": "./dist/index.esm.js"
22
- }
19
+ "types": "./dist/index.d.ts",
20
+ "import": "./dist/index.mjs"
21
+ },
22
+ "./no-side-effects": {
23
+ "rhc:source": "./src/noSideEffects.ts",
24
+ "types": "./dist/noSideEffects.d.ts",
25
+ "import": "./dist/noSideEffects.mjs"
23
26
  }
24
27
  },
25
28
  "keywords": [
26
29
  "rijkshuisstijl-community-design-system"
27
30
  ],
28
31
  "publishConfig": {
29
- "access": "public"
32
+ "access": "public",
33
+ "provenance": true
30
34
  },
31
35
  "repository": {
32
36
  "type": "git+ssh",
@@ -34,44 +38,44 @@
34
38
  "directory": "packages/components-react/checkbox-react"
35
39
  },
36
40
  "devDependencies": {
37
- "@babel/core": "7.29.0",
38
- "@babel/plugin-transform-runtime": "7.29.0",
39
- "@babel/preset-env": "7.29.0",
40
- "@babel/preset-react": "7.28.5",
41
- "@babel/preset-typescript": "7.28.5",
42
- "@babel/runtime": "7.28.6",
41
+ "@babel/core": "7.29.7",
42
+ "@babel/plugin-transform-runtime": "7.29.7",
43
+ "@babel/preset-env": "7.29.7",
44
+ "@babel/preset-react": "7.29.7",
45
+ "@babel/preset-typescript": "7.29.7",
46
+ "@babel/runtime": "7.29.7",
43
47
  "@rollup/plugin-babel": "6.1.0",
44
- "@rollup/plugin-commonjs": "29.0.0",
48
+ "@rollup/plugin-commonjs": "29.0.3",
45
49
  "@rollup/plugin-node-resolve": "16.0.3",
46
50
  "@testing-library/dom": "10.4.1",
47
51
  "@testing-library/jest-dom": "6.9.1",
48
52
  "@testing-library/react": "16.3.2",
49
53
  "@testing-library/user-event": "14.6.1",
50
54
  "@types/lodash.chunk": "4.2.9",
51
- "@types/react": "19.2.14",
55
+ "@types/react": "19.2.17",
52
56
  "@vitejs/plugin-react": "4.7.0",
53
- "@vitest/coverage-v8": "3.2.4",
57
+ "@vitest/coverage-v8": "4.1.10",
54
58
  "clsx": "2.1.1",
55
- "react": "19.2.4",
56
- "react-dom": "19.2.4",
57
- "rollup": "4.59.0",
59
+ "react": "19.2.7",
60
+ "react-dom": "19.2.7",
61
+ "rollup": "4.61.1",
58
62
  "rollup-plugin-filesize": "10.0.0",
59
63
  "rollup-plugin-node-externals": "8.1.2",
60
64
  "rollup-plugin-node-polyfills": "0.2.1",
61
65
  "rollup-plugin-peer-deps-external": "2.2.4",
62
66
  "rollup-plugin-postcss": "4.0.2",
63
- "rollup-plugin-typescript2": "0.36.0",
67
+ "rollup-plugin-typescript2": "0.37.0",
64
68
  "typescript": "5.9.3",
65
- "vite": "7.3.1",
66
- "vitest": "3.2.4"
69
+ "vite": "7.3.5",
70
+ "vitest": "4.1.10"
67
71
  },
68
72
  "peerDependencies": {
69
73
  "react": ">=18.2.0",
70
74
  "react-dom": ">=18.2.0"
71
75
  },
72
76
  "dependencies": {
73
- "@utrecht/component-library-react": "13.0.1",
74
- "@rijkshuisstijl-community/checkbox-css": "1.0.0"
77
+ "@utrecht/component-library-react": "13.3.1",
78
+ "@rijkshuisstijl-community/checkbox-css": "1.0.1"
75
79
  },
76
80
  "scripts": {
77
81
  "build": "rollup --config rollup.config.mjs",
package/src/index.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import '@rijkshuisstijl-community/checkbox-css';
2
2
 
3
- export { Checkbox, type CheckboxProps } from './Checkbox';
3
+ export * from './Checkbox';
@@ -0,0 +1 @@
1
+ export * from './Checkbox';
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../../../node_modules/.pnpm/clsx@2.1.1/node_modules/clsx/dist/clsx.mjs","../src/Checkbox.tsx"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f)}else for(f in e)e[f]&&(n&&(n+=\" \"),n+=f);return n}export function clsx(){for(var e,t,f=0,n=\"\",o=arguments.length;f<o;f++)(e=arguments[f])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","/**\n * @license EUPL-1.2\n * Copyright (c) 2026 Community for NL Design System\n */\n\nimport { type CheckboxProps, Checkbox as UtrechtCheckbox } from '@utrecht/component-library-react';\nimport clsx from 'clsx';\n\nexport type { CheckboxProps } from '@utrecht/component-library-react';\n\nexport const Checkbox = (props: CheckboxProps) => {\n return <UtrechtCheckbox {...props} className={clsx('rhc-checkbox', props['className'])} />;\n};\n"],"names":["Checkbox","props","_jsx","UtrechtCheckbox","className","clsx"],"mappings":";;;;;AAAA,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,GAAG,QAAQ,EAAE,OAAO,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAC,CAAC,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAQ,SAAS,IAAI,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC;;ACUxW,MAAMA,QAAQ,GAAIC,KAAoB,IAAI;EAC/C,OAAOC,IAACC,UAAe,EAAA;AAAA,IAAA,GAAKF,KAAK;IAAEG,SAAS,EAAEC,IAAI,CAAC,cAAc,EAAEJ,KAAK,CAAC,WAAW,CAAC;IAAK;AAC5F;;;;","x_google_ignoreList":[0]}