@neo4j-ndl/react 4.21.0 → 4.21.1-alpha.b78fc61

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 (71) hide show
  1. package/lib/cjs/ai/reasoning/Reasoning.js +1 -1
  2. package/lib/cjs/ai/reasoning/Reasoning.js.map +1 -1
  3. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  4. package/lib/cjs/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  5. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  6. package/lib/cjs/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  7. package/lib/cjs/date-picker/stories/date-picker-with-timezone-both-mode.story.js +1 -1
  8. package/lib/cjs/date-picker/stories/date-picker-with-timezone-both-mode.story.js.map +1 -1
  9. package/lib/cjs/dropzone/stories/dropzone-full.story.js +6 -6
  10. package/lib/cjs/dropzone/stories/dropzone-full.story.js.map +1 -1
  11. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js +1 -1
  12. package/lib/cjs/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  13. package/lib/cjs/icon-button/stories/icon-button-tone.story.js +1 -1
  14. package/lib/cjs/icon-button/stories/icon-button-tone.story.js.map +1 -1
  15. package/lib/cjs/radio/stories/radio-custom-label.story.js +1 -1
  16. package/lib/cjs/radio/stories/radio-custom-label.story.js.map +1 -1
  17. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  18. package/lib/cjs/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  19. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  20. package/lib/cjs/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  21. package/lib/cjs/side-navigation/SideNavigation.js +1 -1
  22. package/lib/cjs/side-navigation/SideNavigation.js.map +1 -1
  23. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js +1 -1
  24. package/lib/cjs/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  25. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js +1 -1
  26. package/lib/cjs/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  27. package/lib/cjs/tabs/stories/tabs-sizes.story.js +1 -1
  28. package/lib/cjs/tabs/stories/tabs-sizes.story.js.map +1 -1
  29. package/lib/cjs/typography/Typography.js.map +1 -1
  30. package/lib/esm/ai/reasoning/Reasoning.js +1 -1
  31. package/lib/esm/ai/reasoning/Reasoning.js.map +1 -1
  32. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js +1 -1
  33. package/lib/esm/clean-icon-button/stories/clean-icon-button-sizes.story.js.map +1 -1
  34. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js +1 -1
  35. package/lib/esm/clean-icon-button/stories/clean-icon-button-tone.story.js.map +1 -1
  36. package/lib/esm/date-picker/stories/date-picker-with-timezone-both-mode.story.js +1 -1
  37. package/lib/esm/date-picker/stories/date-picker-with-timezone-both-mode.story.js.map +1 -1
  38. package/lib/esm/dropzone/stories/dropzone-full.story.js +6 -6
  39. package/lib/esm/dropzone/stories/dropzone-full.story.js.map +1 -1
  40. package/lib/esm/icon-button/stories/icon-button-sizes.story.js +1 -1
  41. package/lib/esm/icon-button/stories/icon-button-sizes.story.js.map +1 -1
  42. package/lib/esm/icon-button/stories/icon-button-tone.story.js +1 -1
  43. package/lib/esm/icon-button/stories/icon-button-tone.story.js.map +1 -1
  44. package/lib/esm/radio/stories/radio-custom-label.story.js +1 -1
  45. package/lib/esm/radio/stories/radio-custom-label.story.js.map +1 -1
  46. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js +1 -1
  47. package/lib/esm/select-icon-button/stories/select-icon-button-sizes.story.js.map +1 -1
  48. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js +1 -1
  49. package/lib/esm/select-icon-button/stories/select-icon-button-states.story.js.map +1 -1
  50. package/lib/esm/side-navigation/SideNavigation.js +1 -1
  51. package/lib/esm/side-navigation/SideNavigation.js.map +1 -1
  52. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js +1 -1
  53. package/lib/esm/status-indicator/stories/status-indicator-variants.story.js.map +1 -1
  54. package/lib/esm/tabs/stories/tabs-fill-variants.story.js +1 -1
  55. package/lib/esm/tabs/stories/tabs-fill-variants.story.js.map +1 -1
  56. package/lib/esm/tabs/stories/tabs-sizes.story.js +1 -1
  57. package/lib/esm/tabs/stories/tabs-sizes.story.js.map +1 -1
  58. package/lib/esm/typography/Typography.js.map +1 -1
  59. package/lib/types/typography/Typography.d.ts +6 -1
  60. package/lib/types/typography/Typography.d.ts.map +1 -1
  61. package/package.json +4 -3
  62. package/skills/ndl-react/components/clean-icon-button.md +5 -5
  63. package/skills/ndl-react/components/color-picker.md +32 -32
  64. package/skills/ndl-react/components/date-picker.md +1 -1
  65. package/skills/ndl-react/components/dropzone.md +6 -6
  66. package/skills/ndl-react/components/icon-button.md +5 -5
  67. package/skills/ndl-react/components/radio.md +1 -1
  68. package/skills/ndl-react/components/select-icon-button.md +6 -6
  69. package/skills/ndl-react/components/status-indicator.md +5 -5
  70. package/skills/ndl-react/components/tabs.md +4 -4
  71. package/skills/ndl-react/components/typography.md +1 -1
@@ -22,7 +22,12 @@ import { type tokens } from '@neo4j-ndl/base';
22
22
  import { type PolymorphicCommonProps } from '../_common/types';
23
23
  export type TypographyVariants = keyof typeof tokens.typography;
24
24
  type TypographyProps = {
25
- /** The typography variant to use for the text. */
25
+ /**
26
+ * The typography variant to use for the text.
27
+ *
28
+ * `label` is deprecated: it is identical to `title-4`, which should be used
29
+ * instead.
30
+ */
26
31
  variant: TypographyVariants;
27
32
  /** Content displayed inside the component */
28
33
  children?: React.ReactNode;
@@ -1 +1 @@
1
- {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/typography/Typography.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,MAAM,CAAC,UAAU,CAAC;AAEhE,KAAK,eAAe,GAAG;IACrB,kDAAkD;IAClD,OAAO,EAAE,kBAAkB,CAAC;IAC5B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAC7D,OAAO,sBAAsB,CAAC,CAAC,EAAE,eAAe,CAAC,KAChD,KAAK,CAAC,YAAY,GAAG,IAmBvB,CAAC"}
1
+ {"version":3,"file":"Typography.d.ts","sourceRoot":"","sources":["../../../src/typography/Typography.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AACH,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAAE,KAAK,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAE/D,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,MAAM,CAAC,UAAU,CAAC;AAEhE,KAAK,eAAe,GAAG;IACrB;;;;;OAKG;IACH,OAAO,EAAE,kBAAkB,CAAC;IAC5B,6CAA6C;IAC7C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,CAAC,SAAS,KAAK,CAAC,WAAW,GAAG,MAAM,EAC7D,OAAO,sBAAsB,CAAC,CAAC,EAAE,eAAe,CAAC,KAChD,KAAK,CAAC,YAAY,GAAG,IAmBvB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@neo4j-ndl/react",
3
- "version": "4.21.0",
3
+ "version": "4.21.1-alpha.b78fc61",
4
4
  "sideEffects": false,
5
5
  "description": "React implementation of Neo4j Design System",
6
6
  "keywords": [
@@ -404,7 +404,7 @@
404
404
  "@tanstack/react-table": "8.21.3",
405
405
  "react": ">=19.0.0",
406
406
  "react-dom": ">=19.0.0",
407
- "@neo4j-ndl/base": "^4.20.0"
407
+ "@neo4j-ndl/base": "^4.20.1-alpha.b78fc61"
408
408
  },
409
409
  "dependencies": {
410
410
  "@dnd-kit/core": "6.3.1",
@@ -432,7 +432,8 @@
432
432
  "temporal-polyfill": "1.0.1",
433
433
  "tinycolor2": "1.6.0",
434
434
  "usehooks-ts": "3.1.1",
435
- "zod": "4.3.6"
435
+ "zod": "4.3.6",
436
+ "@neo4j-ndl/base": "4.20.1-alpha.b78fc61"
436
437
  },
437
438
  "scripts": {
438
439
  "generate-component": "node ./scripts/component-generator.js",
@@ -242,19 +242,19 @@ const Component = () => {
242
242
  <CleanIconButton description="Search" size="small">
243
243
  <MagnifyingGlassIconOutline />
244
244
  </CleanIconButton>
245
- <Typography variant="label"> Small</Typography>
245
+ <Typography variant="title-4"> Small</Typography>
246
246
  </div>
247
247
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
248
248
  <CleanIconButton description="Search" size="medium">
249
249
  <MagnifyingGlassIconOutline />
250
250
  </CleanIconButton>
251
- <Typography variant="label"> Medium</Typography>
251
+ <Typography variant="title-4"> Medium</Typography>
252
252
  </div>
253
253
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
254
254
  <CleanIconButton description="Search" size="large">
255
255
  <MagnifyingGlassIconOutline />
256
256
  </CleanIconButton>
257
- <Typography variant="label"> Large</Typography>
257
+ <Typography variant="title-4"> Large</Typography>
258
258
  </div>
259
259
  </div>
260
260
  );
@@ -278,13 +278,13 @@ const Component = () => {
278
278
  <CleanIconButton description="Search" variant="neutral">
279
279
  <MagnifyingGlassIconOutline />
280
280
  </CleanIconButton>
281
- <Typography variant="label">Default</Typography>
281
+ <Typography variant="title-4">Default</Typography>
282
282
  </div>
283
283
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
284
284
  <CleanIconButton description="Search" variant="danger">
285
285
  <MagnifyingGlassIconOutline />
286
286
  </CleanIconButton>
287
- <Typography variant="label">Danger</Typography>
287
+ <Typography variant="title-4">Danger</Typography>
288
288
  </div>
289
289
  </div>
290
290
  );
@@ -36,10 +36,10 @@ import { ColorPicker } from '../ColorPicker';
36
36
 
37
37
  const Component = () => {
38
38
  const [color, setColor] = useState({
39
- a: 1,
40
- b: 0,
41
- g: 0,
42
- r: 0,
39
+ a: 1, // oxlint-disable-line id-length
40
+ b: 0, // oxlint-disable-line id-length
41
+ g: 0, // oxlint-disable-line id-length
42
+ r: 0, // oxlint-disable-line id-length
43
43
  });
44
44
 
45
45
  return (
@@ -62,10 +62,10 @@ import { ColorPicker } from '../ColorPicker';
62
62
 
63
63
  const Component = () => {
64
64
  const [color, setColor] = useState({
65
- a: 1,
66
- b: 0,
67
- g: 0,
68
- r: 0,
65
+ a: 1, // oxlint-disable-line id-length
66
+ b: 0, // oxlint-disable-line id-length
67
+ g: 0, // oxlint-disable-line id-length
68
+ r: 0, // oxlint-disable-line id-length
69
69
  });
70
70
 
71
71
  return (
@@ -74,28 +74,28 @@ const Component = () => {
74
74
  onChange={(newColor) => setColor(newColor.rgb)}
75
75
  swatches={[
76
76
  {
77
- a: 1,
78
- b: 0,
79
- g: 0,
80
- r: 0,
77
+ a: 1, // oxlint-disable-line id-length
78
+ b: 0, // oxlint-disable-line id-length
79
+ g: 0, // oxlint-disable-line id-length
80
+ r: 0, // oxlint-disable-line id-length
81
81
  },
82
82
  {
83
- a: 1,
84
- b: 255,
85
- g: 0,
86
- r: 0,
83
+ a: 1, // oxlint-disable-line id-length
84
+ b: 255, // oxlint-disable-line id-length
85
+ g: 0, // oxlint-disable-line id-length
86
+ r: 0, // oxlint-disable-line id-length
87
87
  },
88
88
  {
89
- a: 1,
90
- b: 0,
91
- g: 255,
92
- r: 0,
89
+ a: 1, // oxlint-disable-line id-length
90
+ b: 0, // oxlint-disable-line id-length
91
+ g: 255, // oxlint-disable-line id-length
92
+ r: 0, // oxlint-disable-line id-length
93
93
  },
94
94
  {
95
- a: 1,
96
- b: 0,
97
- g: 0,
98
- r: 255,
95
+ a: 1, // oxlint-disable-line id-length
96
+ b: 0, // oxlint-disable-line id-length
97
+ g: 0, // oxlint-disable-line id-length
98
+ r: 255, // oxlint-disable-line id-length
99
99
  },
100
100
  ]}
101
101
  />
@@ -119,10 +119,10 @@ const Component = () => {
119
119
  const handleClose = () => setIsOpen(false);
120
120
 
121
121
  const [color, setColor] = useState({
122
- a: 1,
123
- b: 0,
124
- g: 0,
125
- r: 0,
122
+ a: 1, // oxlint-disable-line id-length
123
+ b: 0, // oxlint-disable-line id-length
124
+ g: 0, // oxlint-disable-line id-length
125
+ r: 0, // oxlint-disable-line id-length
126
126
  });
127
127
 
128
128
  return (
@@ -190,10 +190,10 @@ import { ColorPicker } from '../ColorPicker';
190
190
 
191
191
  const Component = () => {
192
192
  const [color, setColor] = useState({
193
- a: 1,
194
- b: 0,
195
- g: 0,
196
- r: 0,
193
+ a: 1, // oxlint-disable-line id-length
194
+ b: 0, // oxlint-disable-line id-length
195
+ g: 0, // oxlint-disable-line id-length
196
+ r: 0, // oxlint-disable-line id-length
197
197
  });
198
198
 
199
199
  return (
@@ -689,7 +689,7 @@ export const DatePickerWithTimeZoneBothMode = () => {
689
689
  padding: '16px',
690
690
  }}
691
691
  >
692
- <Typography variant="label">Selected Values:</Typography>
692
+ <Typography variant="title-4">Selected Values:</Typography>
693
693
  <Typography variant="body-small">
694
694
  <strong>Date: </strong>
695
695
  {selectedDate?.toISOString() ?? 'None'}
@@ -157,11 +157,11 @@ import {
157
157
 
158
158
  // Configuration constants
159
159
  const CONFIG = {
160
- MAX_FILES: 3,
160
+ ACCEPTED_EXTENSIONS: ['.txt', '.json'] as string[],
161
161
  MAX_FILE_SIZE: 5 * 1024 * 1024, // 5MB
162
+ MAX_FILES: 3,
162
163
  PROGRESS_INCREMENT: 5,
163
164
  UPDATE_INTERVAL: 100,
164
- ACCEPTED_EXTENSIONS: ['.txt', '.json'] as string[],
165
165
  } as const;
166
166
 
167
167
  enum UploadState {
@@ -198,9 +198,9 @@ const Component = () => {
198
198
  const simulateUpload = useCallback((files: File[]) => {
199
199
  setUploadData((prev) => ({
200
200
  ...prev,
201
- state: UploadState.Uploading,
202
201
  files,
203
202
  progress: 0,
203
+ state: UploadState.Uploading,
204
204
  }));
205
205
 
206
206
  const interval = setInterval(() => {
@@ -244,7 +244,7 @@ const Component = () => {
244
244
  (file) =>
245
245
  `${file.file.name}: ${file.errors.map((error) => error.message).join(', ')}`,
246
246
  );
247
- setUploadData((prev) => ({ ...prev, state: UploadState.Error, errors }));
247
+ setUploadData((prev) => ({ ...prev, errors, state: UploadState.Error }));
248
248
  },
249
249
  [],
250
250
  );
@@ -253,8 +253,8 @@ const Component = () => {
253
253
  console.error('Dropzone error:', error);
254
254
  setUploadData((prev) => ({
255
255
  ...prev,
256
- state: UploadState.Error,
257
256
  errors: [error.message],
257
+ state: UploadState.Error,
258
258
  }));
259
259
  }, []);
260
260
 
@@ -296,7 +296,7 @@ const Component = () => {
296
296
  {errors.map((message, index) => (
297
297
  <Typography
298
298
  key={index}
299
- variant="label"
299
+ variant="title-4"
300
300
  className="n-text-danger-text n-font-semibold"
301
301
  htmlAttributes={{ role: 'alert' }}
302
302
  >
@@ -141,19 +141,19 @@ const Component = () => {
141
141
  <IconButton description="Search" size="small">
142
142
  <MagnifyingGlassIconOutline />
143
143
  </IconButton>
144
- <Typography variant="label"> Small</Typography>
144
+ <Typography variant="title-4"> Small</Typography>
145
145
  </div>
146
146
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
147
147
  <IconButton description="Search" size="medium">
148
148
  <MagnifyingGlassIconOutline />
149
149
  </IconButton>
150
- <Typography variant="label"> Medium</Typography>
150
+ <Typography variant="title-4"> Medium</Typography>
151
151
  </div>
152
152
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
153
153
  <IconButton description="Search" size="large">
154
154
  <MagnifyingGlassIconOutline />
155
155
  </IconButton>
156
- <Typography variant="label"> Large</Typography>
156
+ <Typography variant="title-4"> Large</Typography>
157
157
  </div>
158
158
  </div>
159
159
  );
@@ -177,13 +177,13 @@ const Component = () => {
177
177
  <IconButton description="Search" variant="neutral">
178
178
  <MagnifyingGlassIconOutline />
179
179
  </IconButton>
180
- <Typography variant="label">Default</Typography>
180
+ <Typography variant="title-4">Default</Typography>
181
181
  </div>
182
182
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
183
183
  <IconButton description="Search" variant="danger">
184
184
  <MagnifyingGlassIconOutline />
185
185
  </IconButton>
186
- <Typography variant="label">Danger</Typography>
186
+ <Typography variant="title-4">Danger</Typography>
187
187
  </div>
188
188
  </div>
189
189
  );
@@ -75,7 +75,7 @@ import { Radio, Typography } from '@neo4j-ndl/react';
75
75
  const Component = () => {
76
76
  return (
77
77
  <Radio
78
- label={<Typography variant="label">Custom label</Typography>}
78
+ label={<Typography variant="title-4">Custom label</Typography>}
79
79
  ariaLabel="example aria label"
80
80
  />
81
81
  );
@@ -55,19 +55,19 @@ const Component = () => {
55
55
  <SelectIconButton description="Select" size="small" isOpen={false}>
56
56
  <SelectIcon />
57
57
  </SelectIconButton>
58
- <Typography variant="label"> Small</Typography>
58
+ <Typography variant="title-4"> Small</Typography>
59
59
  </div>
60
60
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
61
61
  <SelectIconButton description="Select" size="medium" isOpen={false}>
62
62
  <SelectIcon />
63
63
  </SelectIconButton>
64
- <Typography variant="label"> Medium</Typography>
64
+ <Typography variant="title-4"> Medium</Typography>
65
65
  </div>
66
66
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
67
67
  <SelectIconButton description="Select" size="large" isOpen={false}>
68
68
  <SelectIcon />
69
69
  </SelectIconButton>
70
- <Typography variant="label"> Large</Typography>
70
+ <Typography variant="title-4"> Large</Typography>
71
71
  </div>
72
72
  </div>
73
73
  );
@@ -96,13 +96,13 @@ const Component = () => {
96
96
  >
97
97
  <SelectIcon />
98
98
  </SelectIconButton>
99
- <Typography variant="label"> Disabled</Typography>
99
+ <Typography variant="title-4"> Disabled</Typography>
100
100
  </div>
101
101
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
102
102
  <SelectIconButton description="Select" size="small" isOpen={true}>
103
103
  <SelectIcon />
104
104
  </SelectIconButton>
105
- <Typography variant="label"> Active</Typography>
105
+ <Typography variant="title-4"> Active</Typography>
106
106
  </div>
107
107
  <div className="n-flex n-flex-row n-gap-token-16 n-items-center">
108
108
  <SelectIconButton
@@ -114,7 +114,7 @@ const Component = () => {
114
114
  >
115
115
  <SelectIcon />
116
116
  </SelectIconButton>
117
- <Typography variant="label"> Loading</Typography>
117
+ <Typography variant="title-4"> Loading</Typography>
118
118
  </div>
119
119
  </div>
120
120
  );
@@ -31,23 +31,23 @@ const Component = () => {
31
31
  <div className="n-flex n-gap-token-16">
32
32
  <div className="n-flex n-flex-col n-items-center n-gap-token-8">
33
33
  <StatusIndicator variant="unknown" />
34
- <Typography variant="label">Unknown</Typography>
34
+ <Typography variant="title-4">Unknown</Typography>
35
35
  </div>
36
36
  <div className="n-flex n-flex-col n-items-center n-gap-token-8">
37
37
  <StatusIndicator variant="success" />
38
- <Typography variant="label">Success</Typography>
38
+ <Typography variant="title-4">Success</Typography>
39
39
  </div>
40
40
  <div className="n-flex n-flex-col n-items-center n-gap-token-8">
41
41
  <StatusIndicator variant="info" />
42
- <Typography variant="label">Info</Typography>
42
+ <Typography variant="title-4">Info</Typography>
43
43
  </div>
44
44
  <div className="n-flex n-flex-col n-items-center n-gap-token-8">
45
45
  <StatusIndicator variant="warning" />
46
- <Typography variant="label">Warning</Typography>
46
+ <Typography variant="title-4">Warning</Typography>
47
47
  </div>
48
48
  <div className="n-flex n-flex-col n-items-center n-gap-token-8">
49
49
  <StatusIndicator variant="danger" />
50
- <Typography variant="label">Danger</Typography>
50
+ <Typography variant="title-4">Danger</Typography>
51
51
  </div>
52
52
  </div>
53
53
  );
@@ -185,7 +185,7 @@ const Component = () => {
185
185
  return (
186
186
  <div className="n-flex n-gap-token-8">
187
187
  <div className="n-flex n-flex-col n-gap-token-32">
188
- <Typography variant="label">Underline (Default)</Typography>
188
+ <Typography variant="title-4">Underline (Default)</Typography>
189
189
  <div>
190
190
  <Tabs
191
191
  value={underlineValue}
@@ -209,7 +209,7 @@ const Component = () => {
209
209
  </div>
210
210
 
211
211
  <div className="n-flex n-flex-col n-gap-token-8">
212
- <Typography variant="label">Filled</Typography>
212
+ <Typography variant="title-4">Filled</Typography>
213
213
  <div>
214
214
  <Tabs
215
215
  value={filledValue}
@@ -320,7 +320,7 @@ const Component = () => {
320
320
  return (
321
321
  <div className="n-flex n-gap-token-8">
322
322
  <div className="n-flex n-flex-col n-gap-token-8">
323
- <Typography variant="label">Small Size</Typography>
323
+ <Typography variant="title-4">Small Size</Typography>
324
324
  <div className="n-w-fit">
325
325
  <Tabs
326
326
  value={smallValue}
@@ -351,7 +351,7 @@ const Component = () => {
351
351
  </div>
352
352
 
353
353
  <div className="n-flex n-flex-col n-gap-token-8">
354
- <Typography variant="label">Large Size (Default)</Typography>
354
+ <Typography variant="title-4">Large Size (Default)</Typography>
355
355
  <Tabs
356
356
  value={largeValue}
357
357
  onChange={setLargeValue}
@@ -11,7 +11,7 @@ Import: `import { Typography } from '@neo4j-ndl/react'`
11
11
  | `as` | `ElementType<any, keyof IntrinsicElements>` | | | An override of the default HTML tag of the root of the component. Can also be another React component. |
12
12
  | `children` | `ReactNode` | | | Content displayed inside the component |
13
13
  | `ref` | `any` | | | A ref to apply to the root element. |
14
- | `variant` | `'body-large' \| 'body-medium' \| 'body-small' \| 'code' \| 'display' \| 'label' \| 'subheading-large' \| 'subheading-medium' \| 'subheading-small' \| 'title-1' \| 'title-2' \| 'title-3' \| 'title-4'` | ✅ | | The typography variant to use for the text. |
14
+ | `variant` | `'body-large' \| 'body-medium' \| 'body-small' \| 'code' \| 'display' \| 'label' \| 'subheading-large' \| 'subheading-medium' \| 'subheading-small' \| 'title-1' \| 'title-2' \| 'title-3' \| 'title-4'` | ✅ | | The typography variant to use for the text. `label` is deprecated: it is identical to `title-4`, which should be used instead. |
15
15
 
16
16
  ## Examples
17
17