@utrecht/component-library-react 7.3.5 → 7.3.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/package.json CHANGED
@@ -1,25 +1,91 @@
1
1
  {
2
- "version": "7.3.5",
3
- "author": "Community for NL Design System",
4
- "description": "React component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
5
- "license": "EUPL-1.2",
6
2
  "name": "@utrecht/component-library-react",
3
+ "version": "7.3.7",
4
+ "private": false,
5
+ "description": "React component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
7
6
  "keywords": [
8
7
  "nl-design-system"
9
8
  ],
10
- "private": false,
11
- "publishConfig": {
12
- "access": "public"
9
+ "homepage": "https://github.com/nl-design-system/utrecht/tree/main/packages/component-library-react#readme",
10
+ "bugs": {
11
+ "url": "https://github.com/nl-design-system/utrecht/issues"
13
12
  },
14
13
  "repository": {
15
14
  "type": "git+ssh",
16
- "url": "git@github.com:nl-design-system/utrecht.git",
15
+ "url": "git+https://github.com/nl-design-system/utrecht.git",
17
16
  "directory": "packages/component-library-react"
18
17
  },
19
- "sideEffects": false,
20
- "main": "./dist/index.cjs",
21
- "module": "./dist/index.mjs",
22
- "types": "./dist/index.d.ts",
18
+ "license": "EUPL-1.2",
19
+ "author": "Community for NL Design System",
20
+ "type": "module",
21
+ "exports": {
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.mjs"
25
+ },
26
+ "./dist/.jest-test-results.json": "./dist/.jest-test-results.json",
27
+ "./CONTRIBUTING.md": "./CONTRIBUTING.md",
28
+ "./CHANGELOG.md": "./CHANGELOG.md",
29
+ "./README.md": "./README.md",
30
+ "./README.nl.md": "./README.nl.md",
31
+ "./TESTING.md": "./TESTING.md",
32
+ "./dist": {
33
+ "types": "./dist/index.d.ts",
34
+ "import": "./dist/index.mjs"
35
+ },
36
+ "./dist/index": {
37
+ "types": "./dist/index.d.ts",
38
+ "import": "./dist/index.mjs"
39
+ },
40
+ "./dist/index.mjs": {
41
+ "types": "./dist/index.d.ts",
42
+ "import": "./dist/index.mjs"
43
+ },
44
+ "./dist/VegaVisualization": {
45
+ "types": "./dist/VegaVisualization.d.ts",
46
+ "import": "./dist/VegaVisualization.mjs"
47
+ },
48
+ "./dist/VegaVisualization.mjs": {
49
+ "types": "./dist/VegaVisualization.d.ts",
50
+ "import": "./dist/VegaVisualization.mjs"
51
+ },
52
+ "./dist/Calendar": {
53
+ "types": "./dist/Calendar.d.ts",
54
+ "import": "./dist/Calendar.mjs"
55
+ },
56
+ "./dist/Calendar.mjs": {
57
+ "types": "./dist/Calendar.d.ts",
58
+ "import": "./dist/Calendar.mjs"
59
+ },
60
+ "./dist/css-module": {
61
+ "types": "./dist/css-module/index.d.ts",
62
+ "import": "./dist/css-module/index.mjs"
63
+ },
64
+ "./dist/css-module/index": {
65
+ "types": "./dist/css-module/index.d.ts",
66
+ "import": "./dist/css-module/index.mjs"
67
+ },
68
+ "./dist/css-module/index.mjs": {
69
+ "types": "./dist/css-module/index.d.ts",
70
+ "import": "./dist/css-module/index.mjs"
71
+ },
72
+ "./dist/css-module/VegaVisualization": {
73
+ "types": "./dist/css-module/VegaVisualization.d.ts",
74
+ "import": "./dist/css-module/VegaVisualization.mjs"
75
+ },
76
+ "./dist/css-module/VegaVisualization.mjs": {
77
+ "types": "./dist/css-module/VegaVisualization.d.ts",
78
+ "import": "./dist/css-module/VegaVisualization.mjs"
79
+ },
80
+ "./dist/css-module/Calendar": {
81
+ "types": "./dist/css-module/Calendar.d.ts",
82
+ "import": "./dist/css-module/Calendar.mjs"
83
+ },
84
+ "./dist/css-module/Calendar.mjs": {
85
+ "types": "./dist/css-module/Calendar.d.ts",
86
+ "import": "./dist/css-module/Calendar.mjs"
87
+ }
88
+ },
23
89
  "files": [
24
90
  "dist/",
25
91
  "*.md"
@@ -27,20 +93,20 @@
27
93
  "dependencies": {
28
94
  "clsx": "2.1.1",
29
95
  "lodash.chunk": "4.2.0",
30
- "@utrecht/button-react": "2.0.2",
31
- "@utrecht/calendar-react": "1.0.5",
32
- "@utrecht/checkbox-react": "1.0.2",
33
- "@utrecht/combobox-react": "0.0.3",
34
- "@utrecht/fieldset-react": "1.0.2",
35
- "@utrecht/form-field-checkbox-react": "1.0.4",
36
- "@utrecht/form-field-description-react": "1.0.2",
37
- "@utrecht/form-field-error-message-react": "1.0.2",
38
- "@utrecht/form-field-react": "1.0.2",
39
- "@utrecht/form-label-react": "1.0.2",
40
- "@utrecht/link-react": "1.0.2",
41
- "@utrecht/listbox-react": "1.0.3",
42
- "@utrecht/radio-button-react": "1.0.2",
43
- "@utrecht/textbox-react": "1.0.2"
96
+ "@utrecht/button-react": "2.0.4",
97
+ "@utrecht/calendar-react": "1.0.7",
98
+ "@utrecht/checkbox-react": "1.0.4",
99
+ "@utrecht/combobox-react": "0.0.5",
100
+ "@utrecht/fieldset-react": "1.0.4",
101
+ "@utrecht/form-field-checkbox-react": "1.0.6",
102
+ "@utrecht/form-field-description-react": "1.0.4",
103
+ "@utrecht/form-field-error-message-react": "1.0.4",
104
+ "@utrecht/form-field-react": "1.0.4",
105
+ "@utrecht/form-label-react": "1.0.4",
106
+ "@utrecht/link-react": "1.0.4",
107
+ "@utrecht/listbox-react": "1.0.5",
108
+ "@utrecht/radio-button-react": "1.0.4",
109
+ "@utrecht/textbox-react": "1.0.4"
44
110
  },
45
111
  "devDependencies": {
46
112
  "@babel/core": "7.24.7",
@@ -53,6 +119,7 @@
53
119
  "@rollup/plugin-commonjs": "26.0.1",
54
120
  "@rollup/plugin-json": "6.1.0",
55
121
  "@rollup/plugin-node-resolve": "15.2.3",
122
+ "@rollup/plugin-typescript": "12.1.0",
56
123
  "@testing-library/dom": "8.20.1",
57
124
  "@testing-library/jest-dom": "5.17.0",
58
125
  "@testing-library/react": "13.4.0",
@@ -69,7 +136,7 @@
69
136
  "react-dom": "18.3.1",
70
137
  "react-vega": "7.6.0",
71
138
  "rimraf": "5.0.7",
72
- "rollup": "4.18.0",
139
+ "rollup": "4.23.0",
73
140
  "rollup-plugin-delete": "2.0.0",
74
141
  "rollup-plugin-filesize": "10.0.0",
75
142
  "rollup-plugin-node-externals": "7.1.2",
@@ -78,6 +145,7 @@
78
145
  "rollup-plugin-postcss": "4.0.2",
79
146
  "rollup-plugin-typescript2": "0.36.0",
80
147
  "sass": "1.69.5",
148
+ "sort-package-json": "2.11.0",
81
149
  "tslib": "2.6.2",
82
150
  "typescript": "5.6.2",
83
151
  "vega": "5.26.1",
@@ -95,6 +163,7 @@
95
163
  "@utrecht/badge-status-css": "1.3.0",
96
164
  "@utrecht/blockquote-css": "1.4.0",
97
165
  "@utrecht/breadcrumb-nav-css": "1.3.0",
166
+ "@utrecht/build-utils-react": "0.0.1",
98
167
  "@utrecht/button-group-css": "1.3.1",
99
168
  "@utrecht/button-link-css": "1.2.0",
100
169
  "@utrecht/code-block-css": "1.3.0",
@@ -185,12 +254,16 @@
185
254
  "optional": true
186
255
  }
187
256
  },
257
+ "publishConfig": {
258
+ "access": "public"
259
+ },
188
260
  "scripts": {
189
261
  "build": "pnpm run '/^build:.*/'",
190
262
  "build:rollup": "rollup --config rollup.config.mjs",
191
263
  "build:rollup-components": "rollup --config rollup-components.config.mjs",
192
264
  "build:test-results": "mkdir -p dist pages && jest --json --outputFile=dist/.jest-test-results.json --silent",
193
265
  "clean": "rimraf dist/ pages/ .rollup.cache/ .swc",
266
+ "init": "init-react-package",
194
267
  "lint-build": "tsc --project ./tsconfig.json --noEmit && tsc --project ./tsconfig.test.json",
195
268
  "test": "mkdir -p pages && jest --coverage --verbose",
196
269
  "watch:build": "rollup -c --watch",
package/dist/Calendar.js DELETED
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var calendarReact = require('@utrecht/calendar-react');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Calendar", {
8
- enumerable: true,
9
- get: function () { return calendarReact.Calendar; }
10
- });
11
- //# sourceMappingURL=Calendar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Calendar.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1,105 +0,0 @@
1
- 'use strict';
2
-
3
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
- var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
5
- var jsxRuntime = require('react/jsx-runtime');
6
- var clsx = require('clsx');
7
- var reactVega = require('react-vega');
8
-
9
- var _excluded = ["actions", "className", "config", "label"];
10
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
11
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
12
- var defaultConfig = {
13
- font: 'var(--utrecht-vega-visualization-font-family, var(--utrecht-document-font-family))',
14
- title: {
15
- fontSize: 20,
16
- anchor: 'start',
17
- offset: 32,
18
- subtitleFontSize: 16
19
- },
20
- range: {
21
- category: {
22
- scheme: 'set1'
23
- }
24
- },
25
- axis: {
26
- labelFontSize: 16,
27
- titleFontSize: 16,
28
- labelFontWeight: 'bold',
29
- titleFontWeight: 'normal',
30
- labelAngle: 0,
31
- ticks: false,
32
- labelPadding: 12,
33
- domainColor: 'var(--utrecht-vega-visualization-axis-domain-color, black)',
34
- gridColor: 'var(--utrecht-vega-visualization-axis-grid-color, gray)',
35
- tickColor: 'var(--utrecht-vega-visualization-axis-tick-color, black)'
36
- },
37
- axisY: {
38
- titleAngle: 0,
39
- titleX: 0,
40
- titleY: 7,
41
- titleAlign: 'left',
42
- titleFontWeight: 'bold',
43
- domain: false
44
- },
45
- legend: {
46
- labelFontSize: 16,
47
- titleFontSize: 16
48
- },
49
- bar: {
50
- width: {
51
- band: 0.85
52
- }
53
- },
54
- view: {
55
- stroke: null
56
- },
57
- padding: {
58
- left: 20,
59
- top: 20,
60
- right: 25,
61
- bottom: 20
62
- },
63
- locale: {
64
- number: {
65
- decimal: ',',
66
- thousands: '.',
67
- grouping: [3],
68
- currency: ['', "\xA0\u20AC"]
69
- },
70
- time: {
71
- dateTime: '%a %e %B %Y %X',
72
- date: '%d-%m-%Y',
73
- time: '%H:%M:%S',
74
- periods: ['AM', 'PM'],
75
- days: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
76
- shortDays: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
77
- months: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
78
- shortMonths: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec']
79
- }
80
- }
81
- };
82
- var VegaVisualization = function VegaVisualization(_ref) {
83
- var _ref$actions = _ref.actions,
84
- actions = _ref$actions === void 0 ? false : _ref$actions,
85
- className = _ref.className,
86
- config = _ref.config,
87
- label = _ref.label,
88
- restProps = _objectWithoutProperties(_ref, _excluded);
89
- return jsxRuntime.jsx("div", {
90
- className: clsx('utrecht-vega-visualization', className),
91
- role: "image",
92
- "aria-label": label,
93
- children: jsxRuntime.jsx("div", {
94
- "aria-hidden": true,
95
- children: jsxRuntime.jsx(reactVega.Vega, _objectSpread(_objectSpread({}, restProps), {}, {
96
- actions: actions,
97
- renderer: 'svg',
98
- config: _objectSpread(_objectSpread({}, defaultConfig), config)
99
- }))
100
- })
101
- });
102
- };
103
-
104
- exports.VegaVisualization = VegaVisualization;
105
- //# sourceMappingURL=VegaVisualization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,11 +0,0 @@
1
- 'use strict';
2
-
3
- var css = require('@utrecht/calendar-react/dist/css');
4
-
5
-
6
-
7
- Object.defineProperty(exports, "Calendar", {
8
- enumerable: true,
9
- get: function () { return css.Calendar; }
10
- });
11
- //# sourceMappingURL=Calendar.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Calendar.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
@@ -1,123 +0,0 @@
1
- 'use strict';
2
-
3
- var _defineProperty = require('@babel/runtime/helpers/defineProperty');
4
- var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProperties');
5
- var jsxRuntime = require('react/jsx-runtime');
6
- var clsx = require('clsx');
7
- var reactVega = require('react-vega');
8
-
9
- var css = ".utrecht-vega-visualization{display:inline-block}";
10
-
11
- var insertStyle = function insertStyle(css) {
12
- if (typeof document !== 'undefined') {
13
- var head = document.head || document.getElementsByTagName('head')[0];
14
- var style = document.createElement('style');
15
- style.appendChild(document.createTextNode(css));
16
- head.appendChild(style);
17
- }
18
- };
19
-
20
- var _excluded = ["actions", "className", "config", "label"];
21
- function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
22
- function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
23
- var defaultConfig = {
24
- font: 'var(--utrecht-vega-visualization-font-family, var(--utrecht-document-font-family))',
25
- title: {
26
- fontSize: 20,
27
- anchor: 'start',
28
- offset: 32,
29
- subtitleFontSize: 16
30
- },
31
- range: {
32
- category: {
33
- scheme: 'set1'
34
- }
35
- },
36
- axis: {
37
- labelFontSize: 16,
38
- titleFontSize: 16,
39
- labelFontWeight: 'bold',
40
- titleFontWeight: 'normal',
41
- labelAngle: 0,
42
- ticks: false,
43
- labelPadding: 12,
44
- domainColor: 'var(--utrecht-vega-visualization-axis-domain-color, black)',
45
- gridColor: 'var(--utrecht-vega-visualization-axis-grid-color, gray)',
46
- tickColor: 'var(--utrecht-vega-visualization-axis-tick-color, black)'
47
- },
48
- axisY: {
49
- titleAngle: 0,
50
- titleX: 0,
51
- titleY: 7,
52
- titleAlign: 'left',
53
- titleFontWeight: 'bold',
54
- domain: false
55
- },
56
- legend: {
57
- labelFontSize: 16,
58
- titleFontSize: 16
59
- },
60
- bar: {
61
- width: {
62
- band: 0.85
63
- }
64
- },
65
- view: {
66
- stroke: null
67
- },
68
- padding: {
69
- left: 20,
70
- top: 20,
71
- right: 25,
72
- bottom: 20
73
- },
74
- locale: {
75
- number: {
76
- decimal: ',',
77
- thousands: '.',
78
- grouping: [3],
79
- currency: ['', "\xA0\u20AC"]
80
- },
81
- time: {
82
- dateTime: '%a %e %B %Y %X',
83
- date: '%d-%m-%Y',
84
- time: '%H:%M:%S',
85
- periods: ['AM', 'PM'],
86
- days: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
87
- shortDays: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
88
- months: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
89
- shortMonths: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec']
90
- }
91
- }
92
- };
93
- var VegaVisualization = function VegaVisualization(_ref) {
94
- var _ref$actions = _ref.actions,
95
- actions = _ref$actions === void 0 ? false : _ref$actions,
96
- className = _ref.className,
97
- config = _ref.config,
98
- label = _ref.label,
99
- restProps = _objectWithoutProperties(_ref, _excluded);
100
- return jsxRuntime.jsx("div", {
101
- className: clsx('utrecht-vega-visualization', className),
102
- role: "image",
103
- "aria-label": label,
104
- children: jsxRuntime.jsx("div", {
105
- "aria-hidden": true,
106
- children: jsxRuntime.jsx(reactVega.Vega, _objectSpread(_objectSpread({}, restProps), {}, {
107
- actions: actions,
108
- renderer: 'svg',
109
- config: _objectSpread(_objectSpread({}, defaultConfig), config)
110
- }))
111
- })
112
- });
113
- };
114
-
115
- /**
116
- * @license EUPL-1.2
117
- * Copyright (c) 2020-2024 Frameless B.V.
118
- * Copyright (c) 2021-2024 Gemeente Utrecht
119
- */
120
- insertStyle(css);
121
-
122
- exports.VegaVisualization = VegaVisualization;
123
- //# sourceMappingURL=VegaVisualization.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.js","sources":["../../../../components/vega-visualization/dist/index.mjs"],"sourcesContent":["export default \".utrecht-vega-visualization{display:inline-block}\";\n"],"names":[],"mappings":";;;;;;;;AAAA,UAAe,mDAAmD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}