@utrecht/component-library-react 13.3.0 → 14.0.0

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@utrecht/component-library-react",
3
- "version": "13.3.0",
3
+ "version": "14.0.0",
4
4
  "private": false,
5
5
  "description": "React component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
6
6
  "keywords": [
@@ -23,10 +23,6 @@
23
23
  "types": "./dist/index.d.ts",
24
24
  "import": "./dist/index.mjs"
25
25
  },
26
- "./VegaVisualization": {
27
- "types": "./dist/VegaVisualization.d.ts",
28
- "import": "./dist/VegaVisualization.mjs"
29
- },
30
26
  "./Calendar": {
31
27
  "types": "./dist/Calendar.d.ts",
32
28
  "import": "./dist/Calendar.mjs"
@@ -35,10 +31,6 @@
35
31
  "types": "./dist/css-module/index.d.ts",
36
32
  "import": "./dist/css-module/index.mjs"
37
33
  },
38
- "./css-module/VegaVisualization": {
39
- "types": "./dist/css-module/VegaVisualization.d.ts",
40
- "import": "./dist/css-module/VegaVisualization.mjs"
41
- },
42
34
  "./css-module/Calendar": {
43
35
  "types": "./dist/css-module/Calendar.d.ts",
44
36
  "import": "./dist/css-module/Calendar.mjs"
@@ -62,14 +54,6 @@
62
54
  "types": "./dist/index.d.ts",
63
55
  "import": "./dist/index.mjs"
64
56
  },
65
- "./dist/VegaVisualization": {
66
- "types": "./dist/VegaVisualization.d.ts",
67
- "import": "./dist/VegaVisualization.mjs"
68
- },
69
- "./dist/VegaVisualization.mjs": {
70
- "types": "./dist/VegaVisualization.d.ts",
71
- "import": "./dist/VegaVisualization.mjs"
72
- },
73
57
  "./dist/Calendar": {
74
58
  "types": "./dist/Calendar.d.ts",
75
59
  "import": "./dist/Calendar.mjs"
@@ -90,14 +74,6 @@
90
74
  "types": "./dist/css-module/index.d.ts",
91
75
  "import": "./dist/css-module/index.mjs"
92
76
  },
93
- "./dist/css-module/VegaVisualization": {
94
- "types": "./dist/css-module/VegaVisualization.d.ts",
95
- "import": "./dist/css-module/VegaVisualization.mjs"
96
- },
97
- "./dist/css-module/VegaVisualization.mjs": {
98
- "types": "./dist/css-module/VegaVisualization.d.ts",
99
- "import": "./dist/css-module/VegaVisualization.mjs"
100
- },
101
77
  "./dist/css-module/Calendar": {
102
78
  "types": "./dist/css-module/Calendar.d.ts",
103
79
  "import": "./dist/css-module/Calendar.mjs"
@@ -181,7 +157,7 @@
181
157
  "@utrecht/map-marker-css": "3.0.0",
182
158
  "@utrecht/mark-css": "3.0.0",
183
159
  "@utrecht/multiline-data-css": "3.0.0",
184
- "@utrecht/nav-bar-css": "3.1.0",
160
+ "@utrecht/nav-bar-css": "3.2.0",
185
161
  "@utrecht/nav-list-css": "2.0.0",
186
162
  "@utrecht/number-badge-css": "4.0.0",
187
163
  "@utrecht/number-data-css": "3.0.0",
@@ -190,8 +166,8 @@
190
166
  "@utrecht/ordered-list-css": "4.0.0",
191
167
  "@utrecht/page-content-css": "3.0.0",
192
168
  "@utrecht/page-css": "3.0.0",
193
- "@utrecht/page-footer-css": "4.0.0",
194
- "@utrecht/page-header-css": "3.0.0",
169
+ "@utrecht/page-footer-css": "4.0.1",
170
+ "@utrecht/page-header-css": "3.0.1",
195
171
  "@utrecht/pagination-css": "3.0.0",
196
172
  "@utrecht/paragraph-css": "4.0.0",
197
173
  "@utrecht/pre-heading-css": "3.0.0",
@@ -214,8 +190,7 @@
214
190
  "@utrecht/top-task-link-css": "3.0.0",
215
191
  "@utrecht/top-task-nav-css": "2.0.0",
216
192
  "@utrecht/unordered-list-css": "3.1.0",
217
- "@utrecht/url-data-css": "3.0.0",
218
- "@utrecht/vega-visualization-css": "2.0.0"
193
+ "@utrecht/url-data-css": "3.0.0"
219
194
  },
220
195
  "devDependencies": {
221
196
  "@babel/core": "7.24.9",
@@ -243,7 +218,6 @@
243
218
  "next": "13.5.11",
244
219
  "react": "19.2.4",
245
220
  "react-dom": "19.2.4",
246
- "react-vega": "8.0.0",
247
221
  "rimraf": "5.0.10",
248
222
  "rollup": "4.23.0",
249
223
  "rollup-plugin-delete": "2.0.0",
@@ -257,25 +231,12 @@
257
231
  "sort-package-json": "2.11.0",
258
232
  "tslib": "2.6.3",
259
233
  "typescript": "5.9.3",
260
- "vega": "6.2.0",
261
- "vega-embed": "7.1.0",
262
- "vega-lite": "6.4.2",
263
234
  "@utrecht/build-utils-react": "0.1.1"
264
235
  },
265
236
  "peerDependencies": {
266
237
  "@babel/runtime": "^7.23.6",
267
238
  "react": "^18.0.0 || ^19.0.0",
268
- "react-dom": "^18.0.0 || ^19.0.0",
269
- "react-vega": "^7.6.0",
270
- "vega": "^5.25.0"
271
- },
272
- "peerDependenciesMeta": {
273
- "react-vega": {
274
- "optional": true
275
- },
276
- "vega": {
277
- "optional": true
278
- }
239
+ "react-dom": "^18.0.0 || ^19.0.0"
279
240
  },
280
241
  "publishConfig": {
281
242
  "access": "public"
@@ -1,20 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2020-2024 Frameless B.V.
4
- * Copyright (c) 2021-2024 Gemeente Utrecht
5
- */
6
- import { VegaEmbedProps } from 'react-vega';
7
- import { Config } from 'vega';
8
- export interface VegaVisualizationProps extends Omit<VegaEmbedProps, 'options'> {
9
- label?: string;
10
- config?: Config;
11
- /**
12
- * Whether to show the export/source/editor actions. Passed into embed options.
13
- *
14
- * @deprecated Use options.actions instead.
15
- */
16
- actions?: boolean;
17
- options?: VegaEmbedProps['options'];
18
- }
19
- export declare const VegaVisualization: ({ actions, className, config, label, options, ...restProps }: VegaVisualizationProps) => import("react/jsx-runtime").JSX.Element;
20
- //# sourceMappingURL=VegaVisualization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.d.ts","sourceRoot":"","sources":["../src/VegaVisualization.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAa,cAAc,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;CACrC;AAsED,eAAO,MAAM,iBAAiB,GAAI,8DAO/B,sBAAsB,4CAexB,CAAC"}
@@ -1,107 +0,0 @@
1
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
2
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
3
- import { jsx } from 'react/jsx-runtime';
4
- import clsx from 'clsx';
5
- import { VegaEmbed } from 'react-vega';
6
-
7
- var _excluded = ["actions", "className", "config", "label", "options"];
8
- 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; }
9
- 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; }
10
- var defaultConfig = {
11
- font: 'var(--utrecht-vega-visualization-font-family, var(--utrecht-document-font-family))',
12
- title: {
13
- fontSize: 20,
14
- anchor: 'start',
15
- offset: 32,
16
- subtitleFontSize: 16
17
- },
18
- range: {
19
- category: {
20
- scheme: 'set1'
21
- }
22
- },
23
- axis: {
24
- labelFontSize: 16,
25
- titleFontSize: 16,
26
- labelFontWeight: 'bold',
27
- titleFontWeight: 'normal',
28
- labelAngle: 0,
29
- ticks: false,
30
- labelPadding: 12,
31
- domainColor: 'var(--utrecht-vega-visualization-axis-domain-color, black)',
32
- gridColor: 'var(--utrecht-vega-visualization-axis-grid-color, gray)',
33
- tickColor: 'var(--utrecht-vega-visualization-axis-tick-color, black)'
34
- },
35
- axisY: {
36
- titleAngle: 0,
37
- titleX: 0,
38
- titleY: 7,
39
- titleAlign: 'left',
40
- titleFontWeight: 'bold',
41
- domain: false
42
- },
43
- legend: {
44
- labelFontSize: 16,
45
- titleFontSize: 16
46
- },
47
- bar: {
48
- width: {
49
- band: 0.85
50
- }
51
- },
52
- view: {
53
- stroke: null
54
- },
55
- padding: {
56
- left: 20,
57
- top: 20,
58
- right: 25,
59
- bottom: 20
60
- },
61
- locale: {
62
- number: {
63
- decimal: ',',
64
- thousands: '.',
65
- grouping: [3],
66
- currency: ['', "\xA0\u20AC"]
67
- },
68
- time: {
69
- dateTime: '%a %e %B %Y %X',
70
- date: '%d-%m-%Y',
71
- time: '%H:%M:%S',
72
- periods: ['AM', 'PM'],
73
- days: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
74
- shortDays: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
75
- months: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
76
- shortMonths: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec']
77
- }
78
- }
79
- };
80
- var VegaVisualization = function VegaVisualization(_ref) {
81
- var _ref$actions = _ref.actions,
82
- actions = _ref$actions === void 0 ? false : _ref$actions,
83
- className = _ref.className,
84
- config = _ref.config,
85
- label = _ref.label,
86
- options = _ref.options,
87
- restProps = _objectWithoutProperties(_ref, _excluded);
88
- var embedOptions = _objectSpread(_objectSpread({}, options), {}, {
89
- actions: actions,
90
- renderer: 'svg',
91
- config: _objectSpread(_objectSpread({}, defaultConfig), config)
92
- });
93
- return jsx("div", {
94
- className: clsx('utrecht-vega-visualization', className),
95
- role: "img",
96
- "aria-label": label,
97
- children: jsx("div", {
98
- "aria-hidden": true,
99
- children: jsx(VegaEmbed, _objectSpread(_objectSpread({}, restProps), {}, {
100
- options: embedOptions
101
- }))
102
- })
103
- });
104
- };
105
-
106
- export { VegaVisualization };
107
- //# sourceMappingURL=VegaVisualization.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,20 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2020-2024 Frameless B.V.
4
- * Copyright (c) 2021-2024 Gemeente Utrecht
5
- */
6
- import { VegaEmbedProps } from 'react-vega';
7
- import { Config } from 'vega';
8
- export interface VegaVisualizationProps extends Omit<VegaEmbedProps, 'options'> {
9
- label?: string;
10
- config?: Config;
11
- /**
12
- * Whether to show the export/source/editor actions. Passed into embed options.
13
- *
14
- * @deprecated Use options.actions instead.
15
- */
16
- actions?: boolean;
17
- options?: VegaEmbedProps['options'];
18
- }
19
- export declare const VegaVisualization: ({ actions, className, config, label, options, ...restProps }: VegaVisualizationProps) => import("react/jsx-runtime").JSX.Element;
20
- //# sourceMappingURL=VegaVisualization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.d.ts","sourceRoot":"","sources":["../../src/VegaVisualization.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAa,cAAc,EAAE,MAAM,YAAY,CAAC;AACvD,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAC;AAE9B,MAAM,WAAW,sBAAuB,SAAQ,IAAI,CAAC,cAAc,EAAE,SAAS,CAAC;IAC7E,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,cAAc,CAAC,SAAS,CAAC,CAAC;CACrC;AAsED,eAAO,MAAM,iBAAiB,GAAI,8DAO/B,sBAAsB,4CAexB,CAAC"}
@@ -1,124 +0,0 @@
1
- import css from '@utrecht/vega-visualization-css/dist/index.mjs';
2
- import _defineProperty from '@babel/runtime/helpers/defineProperty';
3
- import _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';
4
- import { jsx } from 'react/jsx-runtime';
5
- import clsx from 'clsx';
6
- import { VegaEmbed } from 'react-vega';
7
-
8
- var insertStyle = function insertStyle(css) {
9
- if (typeof document !== 'undefined') {
10
- var head = document.head || document.getElementsByTagName('head')[0];
11
- var style = document.createElement('style');
12
- style.appendChild(document.createTextNode(css));
13
- head.appendChild(style);
14
- }
15
- };
16
-
17
- var _excluded = ["actions", "className", "config", "label", "options"];
18
- 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; }
19
- 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; }
20
- var defaultConfig = {
21
- font: 'var(--utrecht-vega-visualization-font-family, var(--utrecht-document-font-family))',
22
- title: {
23
- fontSize: 20,
24
- anchor: 'start',
25
- offset: 32,
26
- subtitleFontSize: 16
27
- },
28
- range: {
29
- category: {
30
- scheme: 'set1'
31
- }
32
- },
33
- axis: {
34
- labelFontSize: 16,
35
- titleFontSize: 16,
36
- labelFontWeight: 'bold',
37
- titleFontWeight: 'normal',
38
- labelAngle: 0,
39
- ticks: false,
40
- labelPadding: 12,
41
- domainColor: 'var(--utrecht-vega-visualization-axis-domain-color, black)',
42
- gridColor: 'var(--utrecht-vega-visualization-axis-grid-color, gray)',
43
- tickColor: 'var(--utrecht-vega-visualization-axis-tick-color, black)'
44
- },
45
- axisY: {
46
- titleAngle: 0,
47
- titleX: 0,
48
- titleY: 7,
49
- titleAlign: 'left',
50
- titleFontWeight: 'bold',
51
- domain: false
52
- },
53
- legend: {
54
- labelFontSize: 16,
55
- titleFontSize: 16
56
- },
57
- bar: {
58
- width: {
59
- band: 0.85
60
- }
61
- },
62
- view: {
63
- stroke: null
64
- },
65
- padding: {
66
- left: 20,
67
- top: 20,
68
- right: 25,
69
- bottom: 20
70
- },
71
- locale: {
72
- number: {
73
- decimal: ',',
74
- thousands: '.',
75
- grouping: [3],
76
- currency: ['', "\xA0\u20AC"]
77
- },
78
- time: {
79
- dateTime: '%a %e %B %Y %X',
80
- date: '%d-%m-%Y',
81
- time: '%H:%M:%S',
82
- periods: ['AM', 'PM'],
83
- days: ['zondag', 'maandag', 'dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'],
84
- shortDays: ['zo', 'ma', 'di', 'wo', 'do', 'vr', 'za'],
85
- months: ['januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'],
86
- shortMonths: ['jan', 'feb', 'mrt', 'apr', 'mei', 'jun', 'jul', 'aug', 'sep', 'okt', 'nov', 'dec']
87
- }
88
- }
89
- };
90
- var VegaVisualization = function VegaVisualization(_ref) {
91
- var _ref$actions = _ref.actions,
92
- actions = _ref$actions === void 0 ? false : _ref$actions,
93
- className = _ref.className,
94
- config = _ref.config,
95
- label = _ref.label,
96
- options = _ref.options,
97
- restProps = _objectWithoutProperties(_ref, _excluded);
98
- var embedOptions = _objectSpread(_objectSpread({}, options), {}, {
99
- actions: actions,
100
- renderer: 'svg',
101
- config: _objectSpread(_objectSpread({}, defaultConfig), config)
102
- });
103
- return jsx("div", {
104
- className: clsx('utrecht-vega-visualization', className),
105
- role: "img",
106
- "aria-label": label,
107
- children: jsx("div", {
108
- "aria-hidden": true,
109
- children: jsx(VegaEmbed, _objectSpread(_objectSpread({}, restProps), {}, {
110
- options: embedOptions
111
- }))
112
- })
113
- });
114
- };
115
-
116
- /**
117
- * @license EUPL-1.2
118
- * Copyright (c) 2020-2024 Frameless B.V.
119
- * Copyright (c) 2021-2024 Gemeente Utrecht
120
- */
121
- insertStyle(css);
122
-
123
- export { VegaVisualization };
124
- //# sourceMappingURL=VegaVisualization.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,7 +0,0 @@
1
- /**
2
- * @license EUPL-1.2
3
- * Copyright (c) 2020-2024 Frameless B.V.
4
- * Copyright (c) 2021-2024 Gemeente Utrecht
5
- */
6
- export * from '../VegaVisualization';
7
- //# sourceMappingURL=VegaVisualization.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"VegaVisualization.d.ts","sourceRoot":"","sources":["../../../src/css-module/VegaVisualization.tsx"],"names":[],"mappings":"AAAA;;;;GAIG;AAMH,cAAc,sBAAsB,CAAC"}