@utrecht/component-library-react 6.2.1 → 7.1.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.
Files changed (74) hide show
  1. package/CHANGELOG.md +200 -0
  2. package/CONTRIBUTING.md +169 -0
  3. package/README.md +65 -76
  4. package/README.nl.md +82 -0
  5. package/TESTING.md +203 -0
  6. package/dist/.jest-test-results.json +1 -1
  7. package/dist/Accordion.d.ts +2 -2
  8. package/dist/Accordion.d.ts.map +1 -1
  9. package/dist/Blockquote.d.ts +4 -0
  10. package/dist/Blockquote.d.ts.map +1 -1
  11. package/dist/Calendar.js +8 -3
  12. package/dist/Calendar.js.map +1 -1
  13. package/dist/Calendar.mjs +9 -4
  14. package/dist/Calendar.mjs.map +1 -1
  15. package/dist/Checkbox.d.ts +1 -0
  16. package/dist/Checkbox.d.ts.map +1 -1
  17. package/dist/ColumnLayout.d.ts.map +1 -1
  18. package/dist/Fieldset.d.ts +1 -0
  19. package/dist/Fieldset.d.ts.map +1 -1
  20. package/dist/FormFieldCheckbox.d.ts +14 -0
  21. package/dist/FormFieldCheckbox.d.ts.map +1 -0
  22. package/dist/FormFieldTextarea.d.ts +14 -0
  23. package/dist/FormFieldTextarea.d.ts.map +1 -0
  24. package/dist/Icon.d.ts.map +1 -1
  25. package/dist/Logo.d.ts +5 -3
  26. package/dist/Logo.d.ts.map +1 -1
  27. package/dist/Textarea.d.ts +1 -0
  28. package/dist/Textarea.d.ts.map +1 -1
  29. package/dist/css-module/Accordion.d.ts +2 -2
  30. package/dist/css-module/Accordion.d.ts.map +1 -1
  31. package/dist/css-module/Blockquote.d.ts +4 -0
  32. package/dist/css-module/Blockquote.d.ts.map +1 -1
  33. package/dist/css-module/Calendar.js +8 -3
  34. package/dist/css-module/Calendar.js.map +1 -1
  35. package/dist/css-module/Calendar.mjs +9 -4
  36. package/dist/css-module/Calendar.mjs.map +1 -1
  37. package/dist/css-module/Checkbox.d.ts +1 -0
  38. package/dist/css-module/Checkbox.d.ts.map +1 -1
  39. package/dist/css-module/ColumnLayout.d.ts.map +1 -1
  40. package/dist/css-module/Fieldset.d.ts +1 -0
  41. package/dist/css-module/Fieldset.d.ts.map +1 -1
  42. package/dist/css-module/FormFieldCheckbox.d.ts +14 -0
  43. package/dist/css-module/FormFieldCheckbox.d.ts.map +1 -0
  44. package/dist/css-module/FormFieldTextarea.d.ts +14 -0
  45. package/dist/css-module/FormFieldTextarea.d.ts.map +1 -0
  46. package/dist/css-module/Icon.d.ts.map +1 -1
  47. package/dist/css-module/Logo.d.ts +5 -3
  48. package/dist/css-module/Logo.d.ts.map +1 -1
  49. package/dist/css-module/Textarea.d.ts +1 -0
  50. package/dist/css-module/Textarea.d.ts.map +1 -1
  51. package/dist/css-module/css-module/Accordion.d.ts +1 -0
  52. package/dist/css-module/css-module/Accordion.d.ts.map +1 -1
  53. package/dist/css-module/css-module/Button.d.ts +1 -1
  54. package/dist/css-module/css-module/Button.d.ts.map +1 -1
  55. package/dist/css-module/css-module/FormFieldCheckbox.d.ts +10 -0
  56. package/dist/css-module/css-module/FormFieldCheckbox.d.ts.map +1 -0
  57. package/dist/css-module/css-module/FormFieldTextarea.d.ts +10 -0
  58. package/dist/css-module/css-module/FormFieldTextarea.d.ts.map +1 -0
  59. package/dist/css-module/css-module/index.d.ts +6 -2
  60. package/dist/css-module/css-module/index.d.ts.map +1 -1
  61. package/dist/css-module/index.d.ts +4 -0
  62. package/dist/css-module/index.d.ts.map +1 -1
  63. package/dist/css-module/index.js +1012 -713
  64. package/dist/css-module/index.js.map +1 -1
  65. package/dist/css-module/index.mjs +1011 -714
  66. package/dist/css-module/index.mjs.map +1 -1
  67. package/dist/index.cjs.js +794 -556
  68. package/dist/index.cjs.js.map +1 -1
  69. package/dist/index.d.ts +4 -0
  70. package/dist/index.d.ts.map +1 -1
  71. package/dist/index.esm.js +794 -558
  72. package/dist/index.esm.js.map +1 -1
  73. package/package.json +24 -23
  74. package/tsconfig.md +51 -0
@@ -1 +1 @@
1
- {"version":3,"file":"index.esm.js","sources":["../../components-react/button-react/dist/index.esm.js"],"sourcesContent":["import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';\nimport _extends from '@babel/runtime/helpers/extends';\nimport _defineProperty from '@babel/runtime/helpers/defineProperty';\nimport _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';\nimport { jsx } from 'react/jsx-runtime';\nimport clsx from 'clsx';\nimport { forwardRef } from 'react';\n\nvar _excluded = [\"appearance\", \"busy\", \"disabled\", \"children\", \"className\", \"hint\", \"pressed\", \"type\"];\nfunction 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; }\nfunction _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; }\nvar Button = /*#__PURE__*/forwardRef(function (_ref, ref) {\n var appearance = _ref.appearance,\n busy = _ref.busy,\n disabled = _ref.disabled,\n children = _ref.children,\n className = _ref.className,\n hint = _ref.hint,\n pressed = _ref.pressed,\n type = _ref.type,\n restProps = _objectWithoutProperties(_ref, _excluded);\n return jsx(\"button\", _objectSpread(_objectSpread({\n ref: ref,\n className: clsx('utrecht-button', busy && 'utrecht-button--busy', disabled && 'utrecht-button--disabled', type === 'submit' && 'utrecht-button--submit', appearance === 'primary-action-button' && 'utrecht-button--primary-action', appearance === 'secondary-action-button' && 'utrecht-button--secondary-action', appearance === 'subtle-button' && 'utrecht-button--subtle', hint === 'danger' && 'utrecht-button--danger', hint === 'warning' && 'utrecht-button--warning', hint === 'ready' && 'utrecht-button--ready', pressed === true && 'utrecht-button--pressed', className),\n \"aria-busy\": busy || undefined,\n \"aria-pressed\": typeof pressed === 'boolean' ? pressed : undefined,\n disabled: disabled,\n type: type || 'button'\n }, restProps), {}, {\n children: children\n }));\n});\nButton.displayName = 'Button';\nvar PrimaryActionButton = function PrimaryActionButton(_ref2) {\n var args = _extends({}, (_objectDestructuringEmpty(_ref2), _ref2));\n return jsx(Button, _objectSpread(_objectSpread({}, args), {}, {\n appearance: \"primary-action-button\"\n }));\n};\nPrimaryActionButton.displayName = 'PrimaryActionButton';\nvar SecondaryActionButton = function SecondaryActionButton(_ref3) {\n var args = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));\n return jsx(Button, _objectSpread(_objectSpread({}, args), {}, {\n appearance: \"secondary-action-button\"\n }));\n};\nSecondaryActionButton.displayName = 'SecondaryActionButton';\nvar SubtleButton = function SubtleButton(_ref4) {\n var args = _extends({}, (_objectDestructuringEmpty(_ref4), _ref4));\n return jsx(Button, _objectSpread(_objectSpread({}, args), {}, {\n appearance: \"subtle-button\"\n }));\n};\nSubtleButton.displayName = 'SubtleButton';\n\nexport { Button, PrimaryActionButton, SecondaryActionButton, SubtleButton };\n//# sourceMappingURL=index.esm.js.map\n"],"names":["_excluded","ownKeys","_objectSpread"],"mappings":";;;;;;;;;AAQA,IAAIA,YAAS,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;AACvG,SAASC,UAAO,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,qBAAqB,EAAE,EAAE,IAAI,CAAC,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.esm.js","sources":["../../components-react/button-react/dist/index.esm.js"],"sourcesContent":["import _objectDestructuringEmpty from '@babel/runtime/helpers/objectDestructuringEmpty';\nimport _extends from '@babel/runtime/helpers/extends';\nimport _defineProperty from '@babel/runtime/helpers/defineProperty';\nimport _objectWithoutProperties from '@babel/runtime/helpers/objectWithoutProperties';\nimport { jsxs, jsx } from 'react/jsx-runtime';\nimport clsx from 'clsx';\nimport { forwardRef } from 'react';\n\nvar _excluded = [\"appearance\", \"busy\", \"disabled\", \"children\", \"className\", \"hint\", \"icon\", \"label\", \"pressed\", \"type\"];\nfunction 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; }\nfunction _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; }\nvar Button = /*#__PURE__*/forwardRef(function (_ref, ref) {\n var appearance = _ref.appearance,\n busy = _ref.busy,\n disabled = _ref.disabled,\n children = _ref.children,\n className = _ref.className,\n hint = _ref.hint,\n icon = _ref.icon,\n label = _ref.label,\n pressed = _ref.pressed,\n type = _ref.type,\n restProps = _objectWithoutProperties(_ref, _excluded);\n return jsxs(\"button\", _objectSpread(_objectSpread({\n ref: ref,\n className: clsx('utrecht-button', busy && 'utrecht-button--busy', disabled && 'utrecht-button--disabled', type === 'submit' && 'utrecht-button--submit', appearance === 'primary-action-button' && 'utrecht-button--primary-action', appearance === 'secondary-action-button' && 'utrecht-button--secondary-action', appearance === 'subtle-button' && 'utrecht-button--subtle', hint === 'danger' && 'utrecht-button--danger', hint === 'warning' && 'utrecht-button--warning', hint === 'ready' && 'utrecht-button--ready', pressed === true && 'utrecht-button--pressed', className),\n \"aria-busy\": busy || undefined,\n \"aria-pressed\": typeof pressed === 'boolean' ? pressed : undefined,\n disabled: disabled,\n type: type || 'button'\n }, restProps), {}, {\n children: [icon, label && jsx(\"span\", {\n className: \"utrecht-button__label\",\n children: label\n }), children]\n }));\n});\nButton.displayName = 'Button';\nvar PrimaryActionButton = function PrimaryActionButton(_ref2) {\n var args = _extends({}, (_objectDestructuringEmpty(_ref2), _ref2));\n return jsx(Button, _objectSpread(_objectSpread({}, args), {}, {\n appearance: \"primary-action-button\"\n }));\n};\nPrimaryActionButton.displayName = 'PrimaryActionButton';\nvar SecondaryActionButton = function SecondaryActionButton(_ref3) {\n var args = _extends({}, (_objectDestructuringEmpty(_ref3), _ref3));\n return jsx(Button, _objectSpread(_objectSpread({}, args), {}, {\n appearance: \"secondary-action-button\"\n }));\n};\nSecondaryActionButton.displayName = 'SecondaryActionButton';\nvar SubtleButton = function SubtleButton(_ref4) {\n var args = _extends({}, (_objectDestructuringEmpty(_ref4), _ref4));\n return jsx(Button, _objectSpread(_objectSpread({}, args), {}, {\n appearance: \"subtle-button\"\n }));\n};\nSubtleButton.displayName = 'SubtleButton';\n\nexport { Button, PrimaryActionButton, SecondaryActionButton, SubtleButton };\n//# sourceMappingURL=index.esm.js.map\n"],"names":["_excluded","ownKeys","_objectSpread"],"mappings":";;;;;;;;;AAQA,IAAIA,YAAS,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,CAAC,CAAC;AACxH,SAASC,UAAO,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,qBAAqB,EAAE,EAAE,IAAI,CAAC,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,EAAE,OAAO,MAAM,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE;AAC/P,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",
4
4
  "description": "React component library bundle for the Municipality of Utrecht based on the NL Design System architecture",
5
5
  "license": "EUPL-1.2",
@@ -21,7 +21,8 @@
21
21
  "module": "./dist/index.esm.js",
22
22
  "types": "./dist/index.d.ts",
23
23
  "files": [
24
- "dist/"
24
+ "dist/",
25
+ "*.md"
25
26
  ],
26
27
  "dependencies": {
27
28
  "clsx": "2.1.1",
@@ -73,22 +74,22 @@
73
74
  "@utrecht/alert-dialog-css": "1.2.0",
74
75
  "@utrecht/alternate-lang-nav-css": "1.1.0",
75
76
  "@utrecht/article-css": "1.2.0",
76
- "@utrecht/badge-counter-css": "1.2.1",
77
77
  "@utrecht/backdrop-css": "1.2.0",
78
+ "@utrecht/badge-counter-css": "1.2.1",
78
79
  "@utrecht/badge-data-css": "1.2.0",
79
80
  "@utrecht/badge-list-css": "2.0.0",
80
81
  "@utrecht/badge-status-css": "1.2.0",
81
- "@utrecht/blockquote-css": "1.2.1",
82
+ "@utrecht/blockquote-css": "1.3.0",
82
83
  "@utrecht/breadcrumb-nav-css": "1.2.0",
83
84
  "@utrecht/button-group-css": "1.2.0",
84
- "@utrecht/button-react": "1.0.1",
85
85
  "@utrecht/button-link-css": "1.1.0",
86
- "@utrecht/calendar-react": "1.0.1",
86
+ "@utrecht/button-react": "2.0.0",
87
+ "@utrecht/calendar-react": "1.0.2",
87
88
  "@utrecht/checkbox-css": "1.3.0",
88
89
  "@utrecht/code-block-css": "1.2.2",
89
90
  "@utrecht/code-css": "1.2.2",
90
91
  "@utrecht/color-sample-css": "1.2.2",
91
- "@utrecht/column-layout-css": "1.2.0",
92
+ "@utrecht/column-layout-css": "1.3.0",
92
93
  "@utrecht/combobox-css": "1.2.0",
93
94
  "@utrecht/currency-data-css": "1.1.0",
94
95
  "@utrecht/custom-checkbox-css": "1.1.1",
@@ -99,8 +100,8 @@
99
100
  "@utrecht/drawer-css": "1.2.2",
100
101
  "@utrecht/emphasis-css": "1.2.0",
101
102
  "@utrecht/figure-css": "1.2.0",
102
- "@utrecht/focus-ring-css": "1.2.0",
103
- "@utrecht/form-field-css": "1.2.0",
103
+ "@utrecht/focus-ring-css": "2.0.0",
104
+ "@utrecht/form-field-css": "1.3.0",
104
105
  "@utrecht/form-field-description-css": "1.3.0",
105
106
  "@utrecht/form-field-error-message-css": "1.3.1",
106
107
  "@utrecht/form-fieldset-css": "1.2.0",
@@ -119,46 +120,46 @@
119
120
  "@utrecht/img-css": "1.1.0",
120
121
  "@utrecht/index-char-nav-css": "1.2.0",
121
122
  "@utrecht/link-button-css": "1.1.0",
123
+ "@utrecht/link-css": "1.3.0",
122
124
  "@utrecht/link-list-css": "2.1.0",
123
- "@utrecht/link-css": "1.2.1",
124
125
  "@utrecht/link-social-css": "1.2.0",
125
126
  "@utrecht/list-social-css": "1.2.0",
126
127
  "@utrecht/listbox-css": "1.2.0",
127
128
  "@utrecht/logo-button-css": "1.2.0",
128
129
  "@utrecht/logo-css": "1.2.0",
129
130
  "@utrecht/logo-image-css": "1.2.0",
130
- "@utrecht/map-control-button-css": "2.0.1",
131
+ "@utrecht/map-control-button-css": "2.0.2",
131
132
  "@utrecht/map-marker-css": "1.2.0",
132
- "@utrecht/mark-css": "1.2.1",
133
+ "@utrecht/mark-css": "1.2.2",
133
134
  "@utrecht/multiline-data-css": "1.1.0",
134
135
  "@utrecht/nav-bar-css": "1.2.0",
135
136
  "@utrecht/nav-list-css": "1.1.0",
136
- "@utrecht/number-badge-css": "2.0.0",
137
+ "@utrecht/number-badge-css": "2.1.0",
137
138
  "@utrecht/number-data-css": "1.2.0",
138
139
  "@utrecht/ordered-list-css": "1.2.0",
139
140
  "@utrecht/page-content-css": "1.2.0",
140
141
  "@utrecht/page-css": "1.2.0",
141
142
  "@utrecht/page-footer-css": "1.2.0",
142
- "@utrecht/pagination-css": "1.2.0",
143
- "@utrecht/paragraph-css": "1.2.0",
143
+ "@utrecht/page-header-css": "1.2.0",
144
+ "@utrecht/pagination-css": "1.2.1",
145
+ "@utrecht/paragraph-css": "2.0.0",
144
146
  "@utrecht/pre-heading-css": "1.2.2",
145
147
  "@utrecht/preserve-data-css": "1.1.0",
146
- "@utrecht/radio-button-css": "1.3.0",
148
+ "@utrecht/radio-button-css": "1.3.1",
147
149
  "@utrecht/rich-text-css": "1.1.0",
148
150
  "@utrecht/search-bar-css": "2.0.0",
149
- "@utrecht/select-css": "1.3.0",
151
+ "@utrecht/select-css": "1.4.0",
150
152
  "@utrecht/separator-css": "1.2.0",
151
- "@utrecht/skip-link-css": "1.2.0",
153
+ "@utrecht/skip-link-css": "1.3.0",
152
154
  "@utrecht/spotlight-section-css": "1.3.0",
153
155
  "@utrecht/subscript-css": "1.0.0",
154
- "@utrecht/page-header-css": "1.2.0",
155
156
  "@utrecht/superscript-css": "1.0.0",
156
157
  "@utrecht/surface-css": "1.2.0",
157
- "@utrecht/table-of-contents-css": "0.1.0",
158
- "@utrecht/textarea-css": "2.0.0",
159
- "@utrecht/textbox-css": "1.3.0",
160
158
  "@utrecht/table-css": "1.2.0",
161
- "@utrecht/top-task-link-css": "1.2.0",
159
+ "@utrecht/table-of-contents-css": "0.1.0",
160
+ "@utrecht/textarea-css": "2.0.1",
161
+ "@utrecht/textbox-css": "1.3.1",
162
+ "@utrecht/top-task-link-css": "1.2.1",
162
163
  "@utrecht/top-task-nav-css": "1.1.0",
163
164
  "@utrecht/unordered-list-css": "1.2.0",
164
165
  "@utrecht/url-data-css": "1.1.0",
package/tsconfig.md ADDED
@@ -0,0 +1,51 @@
1
+ # Configuration
2
+
3
+ ## `package.json`
4
+
5
+ ### `files`
6
+
7
+ - Include `dist/` for the compiled JavaScript.
8
+ - Include `dist/` to allow _Go to definition_ and see the original TypeScript.
9
+
10
+ ### `"sideEffects": false`
11
+
12
+ Allow build tools to exclude code from this package when no imports appear to be used ("treeshaking"). Some code does include sideEffects, CSS injection in particular, but the side effects are only needed when the component is actually used.
13
+
14
+ ## `tsconfig.json`
15
+
16
+ ### `compilerOptions`
17
+
18
+ - [`composite`](https://www.typescriptlang.org/tsconfig/#composite): `true` because we include TypeScript projects for each React component npm package in this workspace.
19
+ - [`declaration`](https://www.typescriptlang.org/tsconfig/#declaration) and [`declarationMap`](https://www.typescriptlang.org/tsconfig/#declarationMap): allow jumping to the original `.ts` file when using _Go to definition_.
20
+ - `forceConsistentCasingInFileNames`: ensure we get the same errors as developers using a case-sensitive file system.
21
+ - `isolatedModules`: be prepared for [future build improvements](https://github.com/microsoft/TypeScript/issues/58944).
22
+ - `jsx: "react"`: do not require `import React from 'react';` in each `.tsx` file.
23
+ - `lib`: build for client-side scripts with access to the `"DOM"`. [`"ES2022"` on Can I Use](https://caniuse.com/?search=es2022) seems to have good browser support.
24
+ - `resolveJsonModule`: not needed for many projects, but it is harmless to make it consitently available.
25
+ - [`strict`](https://www.typescriptlang.org/tsconfig/#strict): automatically enable the following options, so we don't need to enable them explicitly:
26
+ - `alwaysStrict`
27
+ - `allowUnreachableCode`
28
+ - `noImplicitAny`
29
+ - `noImplicitThis`
30
+ - `strictBindCallApply`
31
+ - `strictFunctionTypes`
32
+ - `strictNullChecks`
33
+ - `strictPropertyInitialization`
34
+ - `useUnknownInCatchVariables`
35
+ - Enable the following too, because they are not part of the _strict mode family_:
36
+ - `noFallthroughCasesInSwitch`
37
+ - `noImplicitOverride`
38
+ - `noImplicitReturns`
39
+ - `noPropertyAccessFromIndexSignature`
40
+ - `noUncheckedIndexedAccess`
41
+ - `noUnusedLocals`
42
+ - `noUnusedParameters`
43
+
44
+ ### `include`
45
+
46
+ - include component library files file from `src/`
47
+ - include component npm packages from `packages/`
48
+
49
+ ## `tsconfig.test.json`
50
+
51
+ - `noEmit`: avoid creating `.js` new files based on unit tests.