@norges-domstoler/dds-components 0.0.0-dev-20240123145357 → 0.0.0-dev-20240123150829
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/dist/index.d.mts +184 -0
- package/dist/index.d.ts +184 -0
- package/package.json +5 -7
package/dist/index.d.mts
CHANGED
|
@@ -206,6 +206,190 @@ declare const getFontStyling: (type: StaticTypographyType, withColor?: boolean)
|
|
|
206
206
|
fontWeight: number;
|
|
207
207
|
fontStyle: string;
|
|
208
208
|
color: string | undefined;
|
|
209
|
+
} | {
|
|
210
|
+
lineHeight: string;
|
|
211
|
+
fontSize: string;
|
|
212
|
+
letterSpacing: string;
|
|
213
|
+
fontFamily: string;
|
|
214
|
+
fontWeight: number;
|
|
215
|
+
fontStyle: string;
|
|
216
|
+
color: string | undefined;
|
|
217
|
+
} | {
|
|
218
|
+
lineHeight: string;
|
|
219
|
+
fontSize: string;
|
|
220
|
+
letterSpacing: string;
|
|
221
|
+
fontFamily: string;
|
|
222
|
+
fontWeight: number;
|
|
223
|
+
fontStyle: string;
|
|
224
|
+
color: string | undefined;
|
|
225
|
+
} | {
|
|
226
|
+
lineHeight: string;
|
|
227
|
+
fontSize: string;
|
|
228
|
+
letterSpacing: string;
|
|
229
|
+
fontFamily: string;
|
|
230
|
+
fontWeight: number;
|
|
231
|
+
fontStyle: string;
|
|
232
|
+
color: string | undefined;
|
|
233
|
+
} | {
|
|
234
|
+
lineHeight: string;
|
|
235
|
+
fontSize: string;
|
|
236
|
+
letterSpacing: string;
|
|
237
|
+
fontFamily: string;
|
|
238
|
+
fontWeight: number;
|
|
239
|
+
fontStyle: string;
|
|
240
|
+
color: string | undefined;
|
|
241
|
+
} | {
|
|
242
|
+
lineHeight: string;
|
|
243
|
+
fontSize: string;
|
|
244
|
+
letterSpacing: string;
|
|
245
|
+
fontFamily: string;
|
|
246
|
+
fontWeight: number;
|
|
247
|
+
fontStyle: string;
|
|
248
|
+
color: string | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
lineHeight: string;
|
|
251
|
+
fontSize: string;
|
|
252
|
+
letterSpacing: string;
|
|
253
|
+
fontFamily: string;
|
|
254
|
+
fontWeight: number;
|
|
255
|
+
fontStyle: string;
|
|
256
|
+
color: string | undefined;
|
|
257
|
+
} | {
|
|
258
|
+
lineHeight: string;
|
|
259
|
+
fontSize: string;
|
|
260
|
+
letterSpacing: string;
|
|
261
|
+
fontFamily: string;
|
|
262
|
+
fontWeight: number;
|
|
263
|
+
fontStyle: string;
|
|
264
|
+
color: string | undefined;
|
|
265
|
+
} | {
|
|
266
|
+
lineHeight: string;
|
|
267
|
+
fontSize: string;
|
|
268
|
+
letterSpacing: string;
|
|
269
|
+
fontFamily: string;
|
|
270
|
+
fontWeight: number;
|
|
271
|
+
fontStyle: string;
|
|
272
|
+
color: string | undefined;
|
|
273
|
+
} | {
|
|
274
|
+
lineHeight: string;
|
|
275
|
+
fontSize: string;
|
|
276
|
+
letterSpacing: string;
|
|
277
|
+
fontFamily: string;
|
|
278
|
+
fontWeight: number;
|
|
279
|
+
fontStyle: string;
|
|
280
|
+
color: string | undefined;
|
|
281
|
+
} | {
|
|
282
|
+
lineHeight: string;
|
|
283
|
+
fontSize: string;
|
|
284
|
+
letterSpacing: string;
|
|
285
|
+
fontFamily: string;
|
|
286
|
+
fontWeight: number;
|
|
287
|
+
fontStyle: string;
|
|
288
|
+
color: string | undefined;
|
|
289
|
+
} | {
|
|
290
|
+
lineHeight: string;
|
|
291
|
+
fontSize: string;
|
|
292
|
+
letterSpacing: string;
|
|
293
|
+
fontFamily: string;
|
|
294
|
+
fontWeight: number;
|
|
295
|
+
fontStyle: string;
|
|
296
|
+
color: string | undefined;
|
|
297
|
+
} | {
|
|
298
|
+
lineHeight: string;
|
|
299
|
+
fontSize: string;
|
|
300
|
+
letterSpacing: string;
|
|
301
|
+
fontFamily: string;
|
|
302
|
+
fontWeight: number;
|
|
303
|
+
fontStyle: string;
|
|
304
|
+
color: string | undefined;
|
|
305
|
+
} | {
|
|
306
|
+
lineHeight: string;
|
|
307
|
+
fontSize: string;
|
|
308
|
+
letterSpacing: string;
|
|
309
|
+
fontFamily: string;
|
|
310
|
+
fontWeight: number;
|
|
311
|
+
fontStyle: string;
|
|
312
|
+
color: string | undefined;
|
|
313
|
+
} | {
|
|
314
|
+
lineHeight: string;
|
|
315
|
+
fontSize: string;
|
|
316
|
+
letterSpacing: string;
|
|
317
|
+
fontFamily: string;
|
|
318
|
+
fontWeight: number;
|
|
319
|
+
fontStyle: string;
|
|
320
|
+
color: string | undefined;
|
|
321
|
+
} | {
|
|
322
|
+
lineHeight: string;
|
|
323
|
+
fontSize: string;
|
|
324
|
+
letterSpacing: string;
|
|
325
|
+
fontFamily: string;
|
|
326
|
+
fontWeight: number;
|
|
327
|
+
fontStyle: string;
|
|
328
|
+
color: string | undefined;
|
|
329
|
+
} | {
|
|
330
|
+
lineHeight: string;
|
|
331
|
+
fontSize: string;
|
|
332
|
+
letterSpacing: string;
|
|
333
|
+
fontFamily: string;
|
|
334
|
+
fontWeight: number;
|
|
335
|
+
fontStyle: string;
|
|
336
|
+
color: string | undefined;
|
|
337
|
+
} | {
|
|
338
|
+
lineHeight: string;
|
|
339
|
+
fontSize: string;
|
|
340
|
+
letterSpacing: string;
|
|
341
|
+
fontFamily: string;
|
|
342
|
+
fontWeight: number;
|
|
343
|
+
fontStyle: string;
|
|
344
|
+
color: string | undefined;
|
|
345
|
+
} | {
|
|
346
|
+
lineHeight: string;
|
|
347
|
+
fontSize: string;
|
|
348
|
+
letterSpacing: string;
|
|
349
|
+
fontFamily: string;
|
|
350
|
+
fontWeight: number;
|
|
351
|
+
fontStyle: string;
|
|
352
|
+
color: string | undefined;
|
|
353
|
+
} | {
|
|
354
|
+
lineHeight: string;
|
|
355
|
+
fontSize: string;
|
|
356
|
+
letterSpacing: string;
|
|
357
|
+
fontFamily: string;
|
|
358
|
+
fontWeight: number;
|
|
359
|
+
fontStyle: string;
|
|
360
|
+
color: string | undefined;
|
|
361
|
+
} | {
|
|
362
|
+
lineHeight: string;
|
|
363
|
+
fontSize: string;
|
|
364
|
+
letterSpacing: string;
|
|
365
|
+
fontFamily: string;
|
|
366
|
+
fontWeight: number;
|
|
367
|
+
fontStyle: string;
|
|
368
|
+
color: string | undefined;
|
|
369
|
+
} | {
|
|
370
|
+
lineHeight: string;
|
|
371
|
+
fontSize: string;
|
|
372
|
+
letterSpacing: string;
|
|
373
|
+
fontFamily: string;
|
|
374
|
+
fontWeight: number;
|
|
375
|
+
fontStyle: string;
|
|
376
|
+
color: string | undefined;
|
|
377
|
+
} | {
|
|
378
|
+
lineHeight: string;
|
|
379
|
+
fontSize: string;
|
|
380
|
+
letterSpacing: string;
|
|
381
|
+
fontFamily: string;
|
|
382
|
+
fontWeight: number;
|
|
383
|
+
fontStyle: string;
|
|
384
|
+
color: string | undefined;
|
|
385
|
+
} | {
|
|
386
|
+
lineHeight: string;
|
|
387
|
+
fontSize: string;
|
|
388
|
+
letterSpacing: string;
|
|
389
|
+
fontFamily: string;
|
|
390
|
+
fontWeight: number;
|
|
391
|
+
fontStyle: string;
|
|
392
|
+
color: string | undefined;
|
|
209
393
|
};
|
|
210
394
|
|
|
211
395
|
type CaptionProps = BaseComponentPropsWithChildren<HTMLTableCaptionElement, BaseTypographyProps>;
|
package/dist/index.d.ts
CHANGED
|
@@ -206,6 +206,190 @@ declare const getFontStyling: (type: StaticTypographyType, withColor?: boolean)
|
|
|
206
206
|
fontWeight: number;
|
|
207
207
|
fontStyle: string;
|
|
208
208
|
color: string | undefined;
|
|
209
|
+
} | {
|
|
210
|
+
lineHeight: string;
|
|
211
|
+
fontSize: string;
|
|
212
|
+
letterSpacing: string;
|
|
213
|
+
fontFamily: string;
|
|
214
|
+
fontWeight: number;
|
|
215
|
+
fontStyle: string;
|
|
216
|
+
color: string | undefined;
|
|
217
|
+
} | {
|
|
218
|
+
lineHeight: string;
|
|
219
|
+
fontSize: string;
|
|
220
|
+
letterSpacing: string;
|
|
221
|
+
fontFamily: string;
|
|
222
|
+
fontWeight: number;
|
|
223
|
+
fontStyle: string;
|
|
224
|
+
color: string | undefined;
|
|
225
|
+
} | {
|
|
226
|
+
lineHeight: string;
|
|
227
|
+
fontSize: string;
|
|
228
|
+
letterSpacing: string;
|
|
229
|
+
fontFamily: string;
|
|
230
|
+
fontWeight: number;
|
|
231
|
+
fontStyle: string;
|
|
232
|
+
color: string | undefined;
|
|
233
|
+
} | {
|
|
234
|
+
lineHeight: string;
|
|
235
|
+
fontSize: string;
|
|
236
|
+
letterSpacing: string;
|
|
237
|
+
fontFamily: string;
|
|
238
|
+
fontWeight: number;
|
|
239
|
+
fontStyle: string;
|
|
240
|
+
color: string | undefined;
|
|
241
|
+
} | {
|
|
242
|
+
lineHeight: string;
|
|
243
|
+
fontSize: string;
|
|
244
|
+
letterSpacing: string;
|
|
245
|
+
fontFamily: string;
|
|
246
|
+
fontWeight: number;
|
|
247
|
+
fontStyle: string;
|
|
248
|
+
color: string | undefined;
|
|
249
|
+
} | {
|
|
250
|
+
lineHeight: string;
|
|
251
|
+
fontSize: string;
|
|
252
|
+
letterSpacing: string;
|
|
253
|
+
fontFamily: string;
|
|
254
|
+
fontWeight: number;
|
|
255
|
+
fontStyle: string;
|
|
256
|
+
color: string | undefined;
|
|
257
|
+
} | {
|
|
258
|
+
lineHeight: string;
|
|
259
|
+
fontSize: string;
|
|
260
|
+
letterSpacing: string;
|
|
261
|
+
fontFamily: string;
|
|
262
|
+
fontWeight: number;
|
|
263
|
+
fontStyle: string;
|
|
264
|
+
color: string | undefined;
|
|
265
|
+
} | {
|
|
266
|
+
lineHeight: string;
|
|
267
|
+
fontSize: string;
|
|
268
|
+
letterSpacing: string;
|
|
269
|
+
fontFamily: string;
|
|
270
|
+
fontWeight: number;
|
|
271
|
+
fontStyle: string;
|
|
272
|
+
color: string | undefined;
|
|
273
|
+
} | {
|
|
274
|
+
lineHeight: string;
|
|
275
|
+
fontSize: string;
|
|
276
|
+
letterSpacing: string;
|
|
277
|
+
fontFamily: string;
|
|
278
|
+
fontWeight: number;
|
|
279
|
+
fontStyle: string;
|
|
280
|
+
color: string | undefined;
|
|
281
|
+
} | {
|
|
282
|
+
lineHeight: string;
|
|
283
|
+
fontSize: string;
|
|
284
|
+
letterSpacing: string;
|
|
285
|
+
fontFamily: string;
|
|
286
|
+
fontWeight: number;
|
|
287
|
+
fontStyle: string;
|
|
288
|
+
color: string | undefined;
|
|
289
|
+
} | {
|
|
290
|
+
lineHeight: string;
|
|
291
|
+
fontSize: string;
|
|
292
|
+
letterSpacing: string;
|
|
293
|
+
fontFamily: string;
|
|
294
|
+
fontWeight: number;
|
|
295
|
+
fontStyle: string;
|
|
296
|
+
color: string | undefined;
|
|
297
|
+
} | {
|
|
298
|
+
lineHeight: string;
|
|
299
|
+
fontSize: string;
|
|
300
|
+
letterSpacing: string;
|
|
301
|
+
fontFamily: string;
|
|
302
|
+
fontWeight: number;
|
|
303
|
+
fontStyle: string;
|
|
304
|
+
color: string | undefined;
|
|
305
|
+
} | {
|
|
306
|
+
lineHeight: string;
|
|
307
|
+
fontSize: string;
|
|
308
|
+
letterSpacing: string;
|
|
309
|
+
fontFamily: string;
|
|
310
|
+
fontWeight: number;
|
|
311
|
+
fontStyle: string;
|
|
312
|
+
color: string | undefined;
|
|
313
|
+
} | {
|
|
314
|
+
lineHeight: string;
|
|
315
|
+
fontSize: string;
|
|
316
|
+
letterSpacing: string;
|
|
317
|
+
fontFamily: string;
|
|
318
|
+
fontWeight: number;
|
|
319
|
+
fontStyle: string;
|
|
320
|
+
color: string | undefined;
|
|
321
|
+
} | {
|
|
322
|
+
lineHeight: string;
|
|
323
|
+
fontSize: string;
|
|
324
|
+
letterSpacing: string;
|
|
325
|
+
fontFamily: string;
|
|
326
|
+
fontWeight: number;
|
|
327
|
+
fontStyle: string;
|
|
328
|
+
color: string | undefined;
|
|
329
|
+
} | {
|
|
330
|
+
lineHeight: string;
|
|
331
|
+
fontSize: string;
|
|
332
|
+
letterSpacing: string;
|
|
333
|
+
fontFamily: string;
|
|
334
|
+
fontWeight: number;
|
|
335
|
+
fontStyle: string;
|
|
336
|
+
color: string | undefined;
|
|
337
|
+
} | {
|
|
338
|
+
lineHeight: string;
|
|
339
|
+
fontSize: string;
|
|
340
|
+
letterSpacing: string;
|
|
341
|
+
fontFamily: string;
|
|
342
|
+
fontWeight: number;
|
|
343
|
+
fontStyle: string;
|
|
344
|
+
color: string | undefined;
|
|
345
|
+
} | {
|
|
346
|
+
lineHeight: string;
|
|
347
|
+
fontSize: string;
|
|
348
|
+
letterSpacing: string;
|
|
349
|
+
fontFamily: string;
|
|
350
|
+
fontWeight: number;
|
|
351
|
+
fontStyle: string;
|
|
352
|
+
color: string | undefined;
|
|
353
|
+
} | {
|
|
354
|
+
lineHeight: string;
|
|
355
|
+
fontSize: string;
|
|
356
|
+
letterSpacing: string;
|
|
357
|
+
fontFamily: string;
|
|
358
|
+
fontWeight: number;
|
|
359
|
+
fontStyle: string;
|
|
360
|
+
color: string | undefined;
|
|
361
|
+
} | {
|
|
362
|
+
lineHeight: string;
|
|
363
|
+
fontSize: string;
|
|
364
|
+
letterSpacing: string;
|
|
365
|
+
fontFamily: string;
|
|
366
|
+
fontWeight: number;
|
|
367
|
+
fontStyle: string;
|
|
368
|
+
color: string | undefined;
|
|
369
|
+
} | {
|
|
370
|
+
lineHeight: string;
|
|
371
|
+
fontSize: string;
|
|
372
|
+
letterSpacing: string;
|
|
373
|
+
fontFamily: string;
|
|
374
|
+
fontWeight: number;
|
|
375
|
+
fontStyle: string;
|
|
376
|
+
color: string | undefined;
|
|
377
|
+
} | {
|
|
378
|
+
lineHeight: string;
|
|
379
|
+
fontSize: string;
|
|
380
|
+
letterSpacing: string;
|
|
381
|
+
fontFamily: string;
|
|
382
|
+
fontWeight: number;
|
|
383
|
+
fontStyle: string;
|
|
384
|
+
color: string | undefined;
|
|
385
|
+
} | {
|
|
386
|
+
lineHeight: string;
|
|
387
|
+
fontSize: string;
|
|
388
|
+
letterSpacing: string;
|
|
389
|
+
fontFamily: string;
|
|
390
|
+
fontWeight: number;
|
|
391
|
+
fontStyle: string;
|
|
392
|
+
color: string | undefined;
|
|
209
393
|
};
|
|
210
394
|
|
|
211
395
|
type CaptionProps = BaseComponentPropsWithChildren<HTMLTableCaptionElement, BaseTypographyProps>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@norges-domstoler/dds-components",
|
|
3
|
-
"version": "0.0.0-dev-
|
|
3
|
+
"version": "0.0.0-dev-20240123150829",
|
|
4
4
|
"description": "React components used in Elsa - domstolenes designsystem",
|
|
5
5
|
"author": "Elsa team",
|
|
6
6
|
"license": "MIT",
|
|
@@ -15,6 +15,8 @@
|
|
|
15
15
|
"dist"
|
|
16
16
|
],
|
|
17
17
|
"main": "dist/index.js",
|
|
18
|
+
"module": "dist/index.mjs",
|
|
19
|
+
"types": "dist/index.d.ts",
|
|
18
20
|
"homepage": "https://design.domstol.no",
|
|
19
21
|
"keywords": [
|
|
20
22
|
"dds",
|
|
@@ -35,7 +37,6 @@
|
|
|
35
37
|
"@testing-library/user-event": "^14.5.2",
|
|
36
38
|
"@types/react": "^18.2.48",
|
|
37
39
|
"@types/react-dom": "^18.2.18",
|
|
38
|
-
"clean-package": "2.2.0",
|
|
39
40
|
"csstype": "3.1.2",
|
|
40
41
|
"jsdom": "^23.2.0",
|
|
41
42
|
"react": "^18.2.0",
|
|
@@ -45,11 +46,11 @@
|
|
|
45
46
|
"typescript": "^5.3.3",
|
|
46
47
|
"vite": "^5.0.11",
|
|
47
48
|
"vitest": "^1.2.0",
|
|
48
|
-
"@norges-domstoler/storybook-components": "0.0.0-dev-
|
|
49
|
+
"@norges-domstoler/storybook-components": "0.0.0-dev-20240123150829"
|
|
49
50
|
},
|
|
50
51
|
"peerDependencies": {
|
|
51
52
|
"@internationalized/date": "^3",
|
|
52
|
-
"@norges-domstoler/dds-design-tokens": "0.0.0-dev-
|
|
53
|
+
"@norges-domstoler/dds-design-tokens": "0.0.0-dev-20240123150829",
|
|
53
54
|
"react": "^16 || ^17 || ^18",
|
|
54
55
|
"react-dom": "^16 || ^17 || ^18",
|
|
55
56
|
"styled-components": "^5 || ^6"
|
|
@@ -70,9 +71,6 @@
|
|
|
70
71
|
"publishConfig": {
|
|
71
72
|
"provenance": true
|
|
72
73
|
},
|
|
73
|
-
"clean-package": "../../clean-package.config.json",
|
|
74
|
-
"module": "dist/index.mjs",
|
|
75
|
-
"types": "dist/index.d.ts",
|
|
76
74
|
"scripts": {
|
|
77
75
|
"test": "vitest run",
|
|
78
76
|
"test:watch": "vitest watch",
|