@dt-dds/react-breadcrumb 1.0.0-beta.51

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 ADDED
@@ -0,0 +1,508 @@
1
+ # @dt-ui/react-breadcrumb
2
+
3
+ ## 1.0.0-beta.51
4
+
5
+ ### Major Changes
6
+
7
+ - refactor!: rename pkg and publish to npmjs
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies
12
+ - @dt-dds/react-core@1.0.0-beta.41
13
+ - @dt-dds/react-icon@1.0.0-beta.42
14
+ - @dt-dds/react-tooltip@1.0.0-beta.49
15
+
16
+ ## 0.1.0-beta.50
17
+
18
+ ### Patch Changes
19
+
20
+ - refactor: drop icon funcional state
21
+ - Updated dependencies
22
+ - @dt-ui/react-icon@0.1.0-beta.41
23
+
24
+ ## 0.1.0-beta.49
25
+
26
+ ### Patch Changes
27
+
28
+ - refactor: theme typography values
29
+ - Updated dependencies
30
+ - @dt-ui/react-core@0.1.0-beta.40
31
+ - @dt-ui/react-icon@0.1.0-beta.40
32
+ - @dt-ui/react-tooltip@0.1.0-beta.48
33
+
34
+ ## 0.1.0-beta.48
35
+
36
+ ### Minor Changes
37
+
38
+ - feat: update shadow theme values
39
+
40
+ ### Patch Changes
41
+
42
+ - Updated dependencies
43
+ - @dt-ui/react-core@0.1.0-beta.39
44
+ - @dt-ui/react-tooltip@0.1.0-beta.47
45
+ - @dt-ui/react-icon@0.1.0-beta.39
46
+
47
+ ## 0.1.0-beta.47
48
+
49
+ ### Minor Changes
50
+
51
+ - feat: add new icon font sizes
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies
56
+ - @dt-ui/react-icon@0.1.0-beta.38
57
+
58
+ ## 0.1.0-beta.46
59
+
60
+ ### Patch Changes
61
+
62
+ - chore: update theme font-styles
63
+ - Updated dependencies
64
+ - @dt-ui/react-core@0.1.0-beta.38
65
+ - @dt-ui/react-icon@0.1.0-beta.37
66
+ - @dt-ui/react-tooltip@0.1.0-beta.46
67
+
68
+ ## 0.1.0-beta.45
69
+
70
+ ### Patch Changes
71
+
72
+ - chore: review OSS files
73
+ - Updated dependencies
74
+ - @dt-ui/react-core@0.1.0-beta.37
75
+ - @dt-ui/react-icon@0.1.0-beta.36
76
+ - @dt-ui/react-tooltip@0.1.0-beta.45
77
+
78
+ ## 0.1.0-beta.44
79
+
80
+ ### Patch Changes
81
+
82
+ - chore: update contextual colors
83
+ - Updated dependencies
84
+ - @dt-ui/react-core@0.1.0-beta.36
85
+ - @dt-ui/react-icon@0.1.0-beta.35
86
+ - @dt-ui/react-tooltip@0.1.0-beta.44
87
+
88
+ ## 0.1.0-beta.43
89
+
90
+ ### Minor Changes
91
+
92
+ - feat: implement IconButton contrast and size
93
+
94
+ ### Patch Changes
95
+
96
+ - Updated dependencies
97
+ - @dt-ui/react-icon@0.1.0-beta.34
98
+ - @dt-ui/react-tooltip@0.1.0-beta.43
99
+
100
+ ## 0.1.0-beta.42
101
+
102
+ ### Patch Changes
103
+
104
+ - fix: broadcrumb color
105
+
106
+ ## 0.1.0-beta.41
107
+
108
+ ### Patch Changes
109
+
110
+ - fix: circular dependencies
111
+ - Updated dependencies
112
+ - @dt-ui/react-tooltip@0.1.0-beta.42
113
+
114
+ ## 0.1.0-beta.40
115
+
116
+ ### Patch Changes
117
+
118
+ - fix: change content.light contextual color
119
+ - Updated dependencies
120
+ - @dt-ui/react-core@0.1.0-beta.35
121
+ - @dt-ui/react-tooltip@0.1.0-beta.41
122
+
123
+ ## 0.1.0-beta.39
124
+
125
+ ### Minor Changes
126
+
127
+ - feat: move icon-button to independent
128
+
129
+ ### Patch Changes
130
+
131
+ - Updated dependencies
132
+ - @dt-ui/react-tooltip@0.1.0-beta.40
133
+
134
+ ## 0.1.0-beta.38
135
+
136
+ ### Patch Changes
137
+
138
+ - fix: add accent to colors type
139
+ - Updated dependencies
140
+ - @dt-ui/react-core@0.1.0-beta.34
141
+ - @dt-ui/react-tooltip@0.1.0-beta.39
142
+
143
+ ## 0.1.0-beta.37
144
+
145
+ ### Patch Changes
146
+
147
+ - fix: change button text according to ux
148
+ - Updated dependencies
149
+ - @dt-ui/react-core@0.1.0-beta.33
150
+ - @dt-ui/react-tooltip@0.1.0-beta.38
151
+
152
+ ## 0.1.0-beta.36
153
+
154
+ ### Patch Changes
155
+
156
+ - chore: update contexual colors
157
+ - Updated dependencies
158
+ - @dt-ui/react-core@0.1.0-beta.32
159
+ - @dt-ui/react-tooltip@0.1.0-beta.37
160
+
161
+ ## 0.1.0-beta.35
162
+
163
+ ### Patch Changes
164
+
165
+ - style: update responsive font styles
166
+ - Updated dependencies
167
+ - @dt-ui/react-core@0.1.0-beta.31
168
+ - @dt-ui/react-tooltip@0.1.0-beta.36
169
+
170
+ ## 0.1.0-beta.34
171
+
172
+ ### Minor Changes
173
+
174
+ - feat: add spinner size 'extra-small' & update specs
175
+
176
+ ### Patch Changes
177
+
178
+ - Updated dependencies
179
+ - @dt-ui/react-core@0.1.0-beta.30
180
+ - @dt-ui/react-tooltip@0.1.0-beta.35
181
+
182
+ ## 0.1.0-beta.33
183
+
184
+ ### Patch Changes
185
+
186
+ - chore: add theme breakpoints
187
+ - Updated dependencies
188
+ - @dt-ui/react-core@0.1.0-beta.29
189
+ - @dt-ui/react-tooltip@0.1.0-beta.34
190
+
191
+ ## 0.1.0-beta.32
192
+
193
+ ### Patch Changes
194
+
195
+ - fix(DOMRect API): prevent breaking consumers CI/CD pipeline
196
+ - Updated dependencies
197
+ - @dt-ui/react-tooltip@0.1.0-beta.33
198
+
199
+ ## 0.1.0-beta.31
200
+
201
+ ### Patch Changes
202
+
203
+ - fix(tooltip): avoid browser window crop
204
+ - Updated dependencies
205
+ - @dt-ui/react-tooltip@0.1.0-beta.32
206
+
207
+ ## 0.1.0-beta.30
208
+
209
+ ### Minor Changes
210
+
211
+ - feat: add id to base props
212
+
213
+ ### Patch Changes
214
+
215
+ - Updated dependencies
216
+ - @dt-ui/react-core@0.1.0-beta.28
217
+ - @dt-ui/react-tooltip@0.1.0-beta.31
218
+
219
+ ## 0.1.0-beta.29
220
+
221
+ ### Minor Changes
222
+
223
+ - feat: change breakpoints values
224
+
225
+ ### Patch Changes
226
+
227
+ - Updated dependencies
228
+ - @dt-ui/react-core@0.1.0-beta.27
229
+ - @dt-ui/react-tooltip@0.1.0-beta.30
230
+
231
+ ## 0.1.0-beta.28
232
+
233
+ ### Patch Changes
234
+
235
+ - fix: replace body to correct one
236
+ - Updated dependencies
237
+ - @dt-ui/react-core@0.1.0-beta.26
238
+ - @dt-ui/react-tooltip@0.1.0-beta.29
239
+
240
+ ## 0.1.0-beta.27
241
+
242
+ ### Patch Changes
243
+
244
+ - chore: add theme colors missing types
245
+ - Updated dependencies
246
+ - @dt-ui/react-core@0.1.0-beta.25
247
+ - @dt-ui/react-tooltip@0.1.0-beta.28
248
+
249
+ ## 0.1.0-beta.26
250
+
251
+ ### Patch Changes
252
+
253
+ - refactor: drop truckapi theme
254
+ - Updated dependencies
255
+ - @dt-ui/react-core@0.1.0-beta.24
256
+ - @dt-ui/react-tooltip@0.1.0-beta.27
257
+
258
+ ## 0.1.0-beta.25
259
+
260
+ ### Patch Changes
261
+
262
+ - refactor: remove margin from breadcrumb
263
+
264
+ ## 0.1.0-beta.24
265
+
266
+ ### Minor Changes
267
+
268
+ - feat: update core and semantic colors
269
+ - feat: remove greenlane theme
270
+
271
+ ### Patch Changes
272
+
273
+ - Updated dependencies
274
+ - Updated dependencies
275
+ - @dt-ui/react-core@0.1.0-beta.23
276
+ - @dt-ui/react-tooltip@0.1.0-beta.26
277
+
278
+ ## 0.1.0-beta.23
279
+
280
+ ### Minor Changes
281
+
282
+ - feat: add icon option for truckapi theme
283
+
284
+ ### Patch Changes
285
+
286
+ - Updated dependencies
287
+ - @dt-ui/react-core@0.1.0-beta.22
288
+ - @dt-ui/react-tooltip@0.1.0-beta.25
289
+
290
+ ## 0.1.0-beta.22
291
+
292
+ ### Patch Changes
293
+
294
+ - fix: tooltip z index
295
+ - Updated dependencies
296
+ - @dt-ui/react-core@0.1.0-beta.21
297
+ - @dt-ui/react-tooltip@0.1.0-beta.24
298
+
299
+ ## 0.1.0-beta.21
300
+
301
+ ### Minor Changes
302
+
303
+ - feat: add segmented control component
304
+
305
+ ### Patch Changes
306
+
307
+ - Updated dependencies
308
+ - @dt-ui/react-core@0.1.0-beta.20
309
+ - @dt-ui/react-tooltip@0.1.0-beta.23
310
+
311
+ ## 0.1.0-beta.20
312
+
313
+ ### Patch Changes
314
+
315
+ - fix: add shape for tooltip on truckapi theme
316
+ - Updated dependencies
317
+ - @dt-ui/react-core@0.1.0-beta.19
318
+ - @dt-ui/react-tooltip@0.1.0-beta.22
319
+
320
+ ## 0.1.0-beta.19
321
+
322
+ ### Patch Changes
323
+
324
+ - fix: remove devDependecy export
325
+ - Updated dependencies
326
+ - @dt-ui/react-core@0.1.0-beta.18
327
+ - @dt-ui/react-tooltip@0.1.0-beta.21
328
+
329
+ ## 0.1.0-beta.18
330
+
331
+ ### Patch Changes
332
+
333
+ - test: add test custom render
334
+ - Updated dependencies
335
+ - @dt-ui/react-core@0.1.0-beta.17
336
+ - @dt-ui/react-tooltip@0.1.0-beta.20
337
+
338
+ ## 0.1.0-beta.17
339
+
340
+ ### Minor Changes
341
+
342
+ - feat: create select
343
+
344
+ ### Patch Changes
345
+
346
+ - Updated dependencies
347
+ - @dt-ui/react-core@0.1.0-beta.16
348
+ - @dt-ui/react-tooltip@0.1.0-beta.19
349
+
350
+ ## 0.1.0-beta.16
351
+
352
+ ### Patch Changes
353
+
354
+ - fix: show shadows only when scroll is visible
355
+ - Updated dependencies
356
+ - @dt-ui/react-core@0.1.0-beta.15
357
+ - @dt-ui/react-tooltip@0.1.0-beta.18
358
+
359
+ ## 0.1.0-beta.15
360
+
361
+ ### Patch Changes
362
+
363
+ - fix: update border radius theme specifications
364
+ - Updated dependencies
365
+ - @dt-ui/react-core@0.1.0-beta.14
366
+ - @dt-ui/react-tooltip@0.1.0-beta.17
367
+
368
+ ## 0.1.0-beta.14
369
+
370
+ ### Patch Changes
371
+
372
+ - fix: match accordion design
373
+ - Updated dependencies
374
+ - @dt-ui/react-core@0.1.0-beta.13
375
+ - @dt-ui/react-tooltip@0.1.0-beta.16
376
+
377
+ ## 0.1.0-beta.13
378
+
379
+ ### Patch Changes
380
+
381
+ - fix: make icons an optional property in theme
382
+ - Updated dependencies
383
+ - @dt-ui/react-core@0.1.0-beta.12
384
+ - @dt-ui/react-tooltip@0.1.0-beta.15
385
+
386
+ ## 0.1.0-beta.12
387
+
388
+ ### Patch Changes
389
+
390
+ - refactor: extract text-field to new package with greenlane theme
391
+ - Updated dependencies
392
+ - @dt-ui/react-core@0.1.0-beta.11
393
+ - @dt-ui/react-tooltip@0.1.0-beta.14
394
+
395
+ ## 0.1.0-beta.11
396
+
397
+ ### Patch Changes
398
+
399
+ - refactor: move and refactor checkbox refactor checkbox according to design
400
+ - Updated dependencies
401
+ - @dt-ui/react-core@0.1.0-beta.10
402
+ - @dt-ui/react-tooltip@0.1.0-beta.13
403
+
404
+ ## 0.1.0-beta.10
405
+
406
+ ### Patch Changes
407
+
408
+ - fix(icons): export css and update imports on deps
409
+ - Updated dependencies
410
+ - @dt-ui/react-core@0.1.0-beta.9
411
+ - @dt-ui/react-tooltip@0.1.0-beta.12
412
+
413
+ ## 0.1.0-beta.9
414
+
415
+ ### Patch Changes
416
+
417
+ - chore: update component generator and lint fixes
418
+ - Updated dependencies
419
+ - @dt-ui/react-tooltip@0.1.0-beta.11
420
+
421
+ ## 0.1.0-beta.8
422
+
423
+ ### Patch Changes
424
+
425
+ - chore: move util functions to the core
426
+ - Updated dependencies
427
+ - @dt-ui/react-core@0.1.0-beta.8
428
+ - @dt-ui/react-tooltip@0.1.0-beta.10
429
+
430
+ ## 0.1.0-beta.7
431
+
432
+ ### Minor Changes
433
+
434
+ - feat: add contextual color add content tertiary to palette
435
+
436
+ ### Patch Changes
437
+
438
+ - Updated dependencies
439
+ - @dt-ui/react-core@0.1.0-beta.7
440
+ - @dt-ui/react-tooltip@0.1.0-beta.9
441
+
442
+ ## 0.1.0-beta.6
443
+
444
+ ### Minor Changes
445
+
446
+ - feat: create Icons package
447
+ - feat: add icons to theme Provider
448
+
449
+ ### Patch Changes
450
+
451
+ - Updated dependencies
452
+ - Updated dependencies
453
+ - @dt-ui/react-core@0.1.0-beta.6
454
+ - @dt-ui/react-tooltip@0.1.0-beta.8
455
+
456
+ ## 0.1.0-beta.5
457
+
458
+ ### Minor Changes
459
+
460
+ - feat: create TruckAPI theme and update default
461
+
462
+ ### Patch Changes
463
+
464
+ - Updated dependencies
465
+ - @dt-ui/react-core@0.1.0-beta.5
466
+ - @dt-ui/react-tooltip@0.1.0-beta.7
467
+
468
+ ## 0.1.0-beta.4
469
+
470
+ ### Minor Changes
471
+
472
+ - feat: update contextual color to follow figma spec
473
+
474
+ ### Patch Changes
475
+
476
+ - Updated dependencies
477
+ - @dt-ui/react-core@0.1.0-beta.4
478
+ - @dt-ui/react-tooltip@0.1.0-beta.6
479
+
480
+ ## 0.1.0-beta.3
481
+
482
+ ### Minor Changes
483
+
484
+ - feat: review Message designs based on designs
485
+
486
+ ### Patch Changes
487
+
488
+ - fix: move react-core to main dependencies
489
+ - Updated dependencies
490
+ - Updated dependencies
491
+ - @dt-ui/react-tooltip@0.1.0-beta.5
492
+ - @dt-ui/react-core@0.1.0-beta.3
493
+
494
+ ## 0.1.0-beta.2
495
+
496
+ ### Patch Changes
497
+
498
+ - chore: migrate jest setup file to jest package
499
+ - chore: migrate jest configuration to typescript
500
+ - Updated dependencies
501
+ - Updated dependencies
502
+ - @dt-ui/react-tooltip@0.1.0-beta.4
503
+
504
+ ## 0.1.0-beta.1
505
+
506
+ ### Patch Changes
507
+
508
+ - chore: make breadcrumb component independent package
package/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2025 Daimler Truck AG.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,97 @@
1
+ # Breadcrumb Package
2
+
3
+ This component allows the user to configure its history navigation using breadcrumbs
4
+
5
+ ## Usage
6
+
7
+ ```jsx
8
+ import { Breadcrumb } from '@dt-dds/react';
9
+
10
+ export const App = () => {
11
+ const breadcrumbs = [
12
+ { name: 'Name 1', showIcon: true },
13
+ { name: 'Name 2' },
14
+ { disabled: true, name: 'Name 3' },
15
+ { name: 'Name 4' },
16
+ ];
17
+
18
+ return (
19
+ <Breadcrumb separator='slash'>
20
+ {breadcrumbs.map((breadcrumb, i) => (
21
+ <Breadcrumb.Item
22
+ key={`${i}-${breadcrumb.name}`}
23
+ disabled={breadcrumb.disabled}
24
+ >
25
+ {breadcrumb.showIcon && <ViewAgendaIcon />}
26
+ <a href='/'>{breadcrumb.name}</a>
27
+ </Breadcrumb.Item>
28
+ ))}
29
+ </Breadcrumb>
30
+ );
31
+ };
32
+ ```
33
+
34
+ ## API
35
+
36
+ ### Breadcrumb
37
+
38
+ #### Props
39
+
40
+ | Property | Type | Default | Description |
41
+ | ----------- | --------------------- | ------- | ------------------------------------------------------------------ |
42
+ | `children` | `ReactNode` | - | To achieve the desired behaviour use the Breadcrumb.Item as child. |
43
+ | `separator` | `BreadcrumbSeparator` | `slash` | Defines the breadcrumbs separator |
44
+
45
+ ### Breadcrumb.Item
46
+
47
+ #### Props
48
+
49
+ | Property | Type | Default | Description |
50
+ | ---------- | ----------- | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
51
+ | `children` | `ReactNode` | - | Child components to be rendered, the breadcrumb doesn't provide a anchor, if you want navigation you need to provide your own navigation component, as well as icons as follows in the example. |
52
+ | `disabled` | `boolean` | `false` | Disables the breadcrumb |
53
+
54
+ ## Stack
55
+
56
+ - [TypeScript](https://www.typescriptlang.org/) for static type checking
57
+ - [React](https://reactjs.org/) — JavaScript library for user interfaces
58
+ - [Emotion](https://emotion.sh/docs/introduction) — for writing css styles with JavaScript
59
+ - [Storybook](https://storybook.js.org/) — UI component environment powered by Vite
60
+ - [Jest](https://jestjs.io/) - JavaScript Testing Framework
61
+ - [React Testing Library](https://testing-library.com/) - to test UI components in a user-centric way
62
+ - [ESLint](https://eslint.org/) for code linting
63
+ - [Prettier](https://prettier.io) for code formatting
64
+ - [Tsup](https://github.com/egoist/tsup) — TypeScript bundler powered by esbuild
65
+ - [Yarn](https://yarnpkg.com/) from managing packages
66
+
67
+ ## Commands
68
+
69
+ - `yarn build` - Build the package
70
+ - `yarn dev` - Run the package locally
71
+ - `yarn lint` - Lint all files within this package
72
+ - `yarn test` - Run all unit tests
73
+ - `yarn test:report` - Open the test coverage report
74
+ - `yarn test:update:snapshot` - Run all unit tests and update the snapshot
75
+
76
+ ## Compilation
77
+
78
+ Running `yarn build` from the root of the package will use [tsup](https://tsup.egoist.dev/) to compile the raw TypeScript and React code to plain JavaScript.
79
+
80
+ The `/dist` folder contains the compiled output.
81
+
82
+ ```bash
83
+ breadcrumb
84
+ └── dist
85
+ ├── index.d.ts <-- Types
86
+ ├── index.js <-- CommonJS version
87
+ └── index.mjs <-- ES Modules version
88
+ ...
89
+ ```
90
+
91
+ ## Versioning
92
+
93
+ Follows [semantic versioning](https://semver.org/)
94
+
95
+ ## &copy; License
96
+
97
+ Licensed under [MIT License](LICENSE.md)
@@ -0,0 +1,18 @@
1
+ import { BaseProps, Theme } from '@dt-dds/react-core';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+
4
+ type BreadcrumbSeparator = 'slash' | 'arrow';
5
+ interface BreadcrumbProps extends BaseProps {
6
+ separator?: BreadcrumbSeparator;
7
+ }
8
+ declare const Breadcrumb: {
9
+ ({ children, separator, }: BreadcrumbProps): react_jsx_runtime.JSX.Element;
10
+ Item: ({ children, style }: BaseProps) => react_jsx_runtime.JSX.Element;
11
+ };
12
+
13
+ declare module '@emotion/react' {
14
+ interface Theme extends Theme {
15
+ }
16
+ }
17
+
18
+ export { Breadcrumb, BreadcrumbProps };