@telia/teddy 0.1.17 → 0.1.19

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 (63) hide show
  1. package/dist/components/card/card-illustration.d.ts +1 -1
  2. package/dist/components/card/index.d.ts +1 -1
  3. package/dist/components/checkbox/checkbox-group.d.ts +2 -2
  4. package/dist/components/checkbox/index.d.ts +2 -2
  5. package/dist/components/chip/chip-indicator.d.ts +1 -1
  6. package/dist/components/chip/index.d.ts +1 -1
  7. package/dist/components/expandable-card/expandable-card-button.d.ts +2 -2
  8. package/dist/components/expandable-card/index.d.ts +2 -2
  9. package/dist/components/icon/utils.d.ts +1 -1
  10. package/dist/components/index.cjs +2 -0
  11. package/dist/components/index.d.ts +1 -0
  12. package/dist/components/index.js +2 -0
  13. package/dist/components/meter-bar/index.cjs +9 -0
  14. package/dist/components/meter-bar/index.d.ts +29 -0
  15. package/dist/components/meter-bar/index.js +9 -0
  16. package/dist/components/meter-bar/meter-bar-indicator.cjs +65 -0
  17. package/dist/components/meter-bar/meter-bar-indicator.d.ts +19 -0
  18. package/dist/components/meter-bar/meter-bar-indicator.js +65 -0
  19. package/dist/components/meter-bar/meter-bar-root.cjs +9 -0
  20. package/dist/components/meter-bar/meter-bar-root.d.ts +22 -0
  21. package/dist/components/meter-bar/meter-bar-root.js +9 -0
  22. package/dist/components/meter-bar/utils.cjs +24 -0
  23. package/dist/components/meter-bar/utils.d.ts +6 -0
  24. package/dist/components/meter-bar/utils.js +24 -0
  25. package/dist/components/modal/modal.cjs +1 -0
  26. package/dist/components/modal/modal.js +1 -0
  27. package/dist/components/navigation-menu/global-navigation/global-navigation-desktop.cjs +2 -0
  28. package/dist/components/navigation-menu/global-navigation/global-navigation-desktop.js +2 -0
  29. package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.cjs +2 -3
  30. package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.d.ts +8 -1
  31. package/dist/components/navigation-menu/global-navigation/global-navigation-mobile.js +3 -4
  32. package/dist/components/navigation-menu/global-navigation/utils.cjs +276 -16
  33. package/dist/components/navigation-menu/global-navigation/utils.d.ts +415 -10
  34. package/dist/components/navigation-menu/global-navigation/utils.js +276 -16
  35. package/dist/components/navigation-menu/navigation-menu.cjs +1 -0
  36. package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
  37. package/dist/components/navigation-menu/navigation-menu.js +1 -0
  38. package/dist/components/notabene/notabene-icon.d.ts +1 -1
  39. package/dist/components/notification/notification.d.ts +4 -4
  40. package/dist/components/progress-bar/progress-bar.cjs +4 -4
  41. package/dist/components/progress-bar/progress-bar.js +4 -4
  42. package/dist/components/radio-card-group/radio-card-group-content.cjs +1 -0
  43. package/dist/components/radio-card-group/radio-card-group-content.js +1 -0
  44. package/dist/components/radio-card-group/radio-card-group-item-title.cjs +215 -199
  45. package/dist/components/radio-card-group/radio-card-group-item-title.js +215 -199
  46. package/dist/components/radio-card-group/radio-card-group-item.cjs +1 -0
  47. package/dist/components/radio-card-group/radio-card-group-item.js +1 -0
  48. package/dist/components/scroll-area/index.d.ts +2 -2
  49. package/dist/components/scroll-area/scroll-area-button.d.ts +2 -2
  50. package/dist/components/tabs/index.d.ts +3 -3
  51. package/dist/components/tabs/tabs-root.d.ts +1 -1
  52. package/dist/components/tabs/tabs-scroll-button.d.ts +2 -2
  53. package/dist/components/text-field/index.d.ts +2 -2
  54. package/dist/components/text-field/text-field-button.d.ts +2 -2
  55. package/dist/components/toggle/toggle.d.ts +1 -1
  56. package/dist/components/tooltip/index.d.ts +3 -3
  57. package/dist/main.cjs +2 -0
  58. package/dist/main.js +2 -0
  59. package/dist/style.css +188 -114
  60. package/dist/utils/generate-styling/grid.d.ts +24 -24
  61. package/dist/utils/generate-styling/index.d.ts +16 -16
  62. package/dist/utils/generate-styling/util.d.ts +2 -2
  63. package/package.json +1 -1
@@ -1,7 +1,14 @@
1
- import { default as React } from 'react';
1
+ import { default as React, MutableRefObject } from 'react';
2
+ import { Link as LinkProps } from './utils';
2
3
 
3
4
  export type MobileProps = React.ComponentPropsWithoutRef<'div'>;
4
5
  export declare function Mobile(props: MobileProps): import("react/jsx-runtime").JSX.Element | null;
5
6
  export declare namespace Mobile {
6
7
  var displayName: string;
7
8
  }
9
+ export declare const HighlightedLinks: ({ listTitle, links, item, drawerRef }: {
10
+ listTitle: string;
11
+ links: LinkProps[];
12
+ item: LinkProps;
13
+ drawerRef?: MutableRefObject<HTMLButtonElement | null>;
14
+ }) => import("react/jsx-runtime").JSX.Element | null;
@@ -1,6 +1,6 @@
1
1
  import "react/jsx-runtime";
2
2
  import "react";
3
- import { f } from "../../radio-card-group/radio-card-group-item-title.js";
3
+ import { H, f } from "../../radio-card-group/radio-card-group-item-title.js";
4
4
  import "clsx";
5
5
  import "../../flex/flex.js";
6
6
  import "../../box/box.js";
@@ -10,10 +10,9 @@ import "../../../assets/sprite.269ba410-teddy.svg";
10
10
  import "../../icon/icon.js";
11
11
  import "../../tabs/index.js";
12
12
  import "./utils.js";
13
- import "../../accordion/index.js";
14
- import "../../visually-hidden/visually-hidden.js";
15
- import "../../link/link.js";
16
13
  import "../../list/index.js";
14
+ import "../../heading/heading.js";
17
15
  export {
16
+ H as HighlightedLinks,
18
17
  f as Mobile
19
18
  };
@@ -71,17 +71,92 @@ const PRIVATE_LINKS = {
71
71
  name: "Privat",
72
72
  link: "/",
73
73
  appKey: APP_KEYS["open-pages"],
74
+ highlightedLinks: [
75
+ {
76
+ name: "Mobilabonnement",
77
+ link: "/mobil/mobilabonnement/priser/",
78
+ appKey: APP_KEYS["web-shop"]
79
+ },
80
+ {
81
+ name: "Mobiltelefoner",
82
+ link: "/mobil/mobiltelefoner/",
83
+ appKey: APP_KEYS["web-shop"]
84
+ },
85
+ {
86
+ name: "Varemerker ",
87
+ link: "/varemerker/",
88
+ appKey: APP_KEYS["web-shop"]
89
+ },
90
+ {
91
+ name: "Kampanjer",
92
+ link: "/kampanje/",
93
+ appKey: APP_KEYS["open-pages"]
94
+ },
95
+ {
96
+ name: "Faktura",
97
+ link: "/hjelp/faktura/",
98
+ appKey: APP_KEYS["open-pages"]
99
+ },
100
+ {
101
+ name: "Se Telia Play",
102
+ link: "https://www.teliaplay.no",
103
+ appKey: APP_KEYS["open-pages"]
104
+ }
105
+ ],
74
106
  links: [
75
107
  {
76
108
  name: "Logo",
77
109
  link: "/",
78
110
  appKey: APP_KEYS["open-pages"],
79
- links: []
111
+ links: [],
112
+ highlightedLinks: []
80
113
  },
81
114
  {
82
115
  name: "Mobil",
83
116
  link: "/mobil/",
84
117
  appKey: APP_KEYS["open-pages"],
118
+ highlightedLinks: [
119
+ {
120
+ name: "Telia X",
121
+ link: "/mobil/mobilabonnement/ubegrenset-data/",
122
+ appKey: APP_KEYS["web-shop"]
123
+ },
124
+ {
125
+ name: "Pakketilbud",
126
+ link: "/mobil/mobilabonnement/pakketilbud/",
127
+ appKey: APP_KEYS["web-shop"]
128
+ },
129
+ {
130
+ name: "iPhone",
131
+ link: "/varemerker/apple/iphone/",
132
+ appKey: APP_KEYS["web-shop"]
133
+ },
134
+ {
135
+ name: "Airpods",
136
+ link: "/varemerker/apple/airpods/",
137
+ appKey: APP_KEYS["web-shop"]
138
+ },
139
+ {
140
+ name: "Kampanjer",
141
+ link: "/kampanje",
142
+ appKey: APP_KEYS["open-pages"]
143
+ },
144
+ {
145
+ name: "SIM, PIN og PUK",
146
+ link: "/mobil/mobilabonnement/sim-kort/",
147
+ appKey: APP_KEYS["open-pages"]
148
+ },
149
+ {
150
+ name: "Utland",
151
+ link: "/mobil/mobilabonnement/utland/",
152
+ appKey: APP_KEYS["open-pages"]
153
+ },
154
+ {
155
+ name: "Eierskifte",
156
+ link: "/mobil/hjelp/bytte-eier/",
157
+ appKey: APP_KEYS["open-pages"]
158
+ }
159
+ ],
85
160
  links: [
86
161
  {
87
162
  name: "Mobilabonnement",
@@ -108,11 +183,11 @@ const PRIVATE_LINKS = {
108
183
  link: "/mobil/tilbehor/",
109
184
  appKey: APP_KEYS["web-shop"]
110
185
  },
111
- {
112
- name: "Pakketilbud",
113
- link: "/mobil/mobilabonnement/pakketilbud/",
114
- appKey: APP_KEYS["web-shop"]
115
- },
186
+ // {
187
+ // name: 'Pakketilbud',
188
+ // link: '/mobil/mobilabonnement/pakketilbud/',
189
+ // appKey: APP_KEYS['web-shop'],
190
+ // },
116
191
  {
117
192
  name: "Påfyll kontantkort",
118
193
  link: "/mobil/mobilabonnement/kontantkort/lade/",
@@ -122,6 +197,11 @@ const PRIVATE_LINKS = {
122
197
  name: "Hjelp Mobil",
123
198
  link: "/mobil/hjelp/",
124
199
  appKey: APP_KEYS["open-pages"]
200
+ },
201
+ {
202
+ name: "Alt om mobil",
203
+ link: "/mobil/",
204
+ appKey: APP_KEYS["open-pages"]
125
205
  }
126
206
  ]
127
207
  },
@@ -129,11 +209,48 @@ const PRIVATE_LINKS = {
129
209
  name: "TV",
130
210
  link: "/tv/",
131
211
  appKey: APP_KEYS["open-pages"],
212
+ highlightedLinks: [
213
+ {
214
+ name: "Valgmenyen i Telia Play",
215
+ link: "https://account.teliaplay.no/subscription/selection-menu",
216
+ appKey: APP_KEYS["open-pages"]
217
+ },
218
+ {
219
+ name: "Aktivere strømmetjenester",
220
+ link: "/tv/innholdsoversikt/strommetjenester/#registrere",
221
+ appKey: APP_KEYS["open-pages"]
222
+ },
223
+ {
224
+ name: "Premier League",
225
+ link: "/tv/innholdsoversikt/premiumtjenester/premier-league-v-premium/",
226
+ appKey: APP_KEYS["open-pages"]
227
+ },
228
+ {
229
+ name: "Kampanjer",
230
+ link: "/kampanje",
231
+ appKey: APP_KEYS["open-pages"]
232
+ },
233
+ {
234
+ name: "Kom i gang med Telia Play",
235
+ link: "/tv/hjelp/kom-i-gang/",
236
+ appKey: APP_KEYS["open-pages"]
237
+ },
238
+ {
239
+ name: "Slik bruker du Telia Play",
240
+ link: "/tv/hjelp/daglig-bruk/",
241
+ appKey: APP_KEYS["open-pages"]
242
+ },
243
+ {
244
+ name: "Driftsmeldinger og feilsøk",
245
+ link: "/tv/hjelp/tv-feilsok/tv-hjelp-utstyr/",
246
+ appKey: APP_KEYS["open-pages"]
247
+ }
248
+ ],
132
249
  links: [
133
250
  {
134
251
  name: "Se Telia Play",
135
252
  link: "https://www.teliaplay.no",
136
- icon: "external",
253
+ // icon: 'external',
137
254
  appKey: APP_KEYS["open-pages"]
138
255
  },
139
256
  {
@@ -170,6 +287,11 @@ const PRIVATE_LINKS = {
170
287
  name: "Hjelp TV",
171
288
  link: "/tv/hjelp/",
172
289
  appKey: APP_KEYS["open-pages"]
290
+ },
291
+ {
292
+ name: "Alt om TV",
293
+ link: "/tv",
294
+ appKey: APP_KEYS["open-pages"]
173
295
  }
174
296
  ]
175
297
  },
@@ -177,6 +299,38 @@ const PRIVATE_LINKS = {
177
299
  name: "Internett",
178
300
  link: "/internett/",
179
301
  appKey: APP_KEYS["open-pages"],
302
+ highlightedLinks: [
303
+ {
304
+ name: "Søk på adresse",
305
+ link: "/internett/sok-adresse",
306
+ appKey: APP_KEYS["open-pages"]
307
+ },
308
+ {
309
+ name: "Bredbånd på hytta",
310
+ link: "/internett/tradlost-bredband-hytte/",
311
+ appKey: APP_KEYS["open-pages"]
312
+ },
313
+ {
314
+ name: "Kampanjer",
315
+ link: "/kampanje",
316
+ appKey: APP_KEYS["open-pages"]
317
+ },
318
+ {
319
+ name: "Problemer med internett",
320
+ link: "/internett/internett-problemer/",
321
+ appKey: APP_KEYS["open-pages"]
322
+ },
323
+ {
324
+ name: "Ruterer og innstillinger",
325
+ link: "/internett/wifi/rutere/",
326
+ appKey: APP_KEYS["open-pages"]
327
+ },
328
+ {
329
+ name: "WiFi-tips",
330
+ link: "/internett/wifi/wifi-tips/",
331
+ appKey: APP_KEYS["open-pages"]
332
+ }
333
+ ],
180
334
  links: [
181
335
  {
182
336
  name: "Fast bredbånd",
@@ -212,6 +366,11 @@ const PRIVATE_LINKS = {
212
366
  name: "Hjelp Internett",
213
367
  link: "/internett/hjelp/",
214
368
  appKey: APP_KEYS["open-pages"]
369
+ },
370
+ {
371
+ name: "Alt om internett",
372
+ link: "/internett",
373
+ appKey: APP_KEYS["open-pages"]
215
374
  }
216
375
  ]
217
376
  },
@@ -219,6 +378,48 @@ const PRIVATE_LINKS = {
219
378
  name: "Trygghet",
220
379
  link: "/trygghet/",
221
380
  appKey: APP_KEYS["open-pages"],
381
+ highlightedLinks: [
382
+ {
383
+ name: "Telia Trygg",
384
+ link: "/trygghet/tjenester/telia-trygg/",
385
+ appKey: APP_KEYS["open-pages"]
386
+ },
387
+ {
388
+ name: "Mobilforsikring",
389
+ link: "/trygghet/tjenester/mobilforsikring/",
390
+ appKey: APP_KEYS["open-pages"]
391
+ },
392
+ {
393
+ name: "Telia Sky",
394
+ link: "/trygghet/tjenester/telia-sky/",
395
+ appKey: APP_KEYS["open-pages"]
396
+ },
397
+ {
398
+ name: "Trygg mobil for barn",
399
+ link: "/trygghet/trygg-pa-skjerm/trygg-mobil-til-barn/",
400
+ appKey: APP_KEYS["open-pages"]
401
+ },
402
+ {
403
+ name: "Ta styring over skjermtiden",
404
+ link: "/trygghet/skjermhelse/skjermtid/",
405
+ appKey: APP_KEYS["open-pages"]
406
+ },
407
+ {
408
+ name: "Falske nettbutikker",
409
+ link: "/trygghet/svindel/falske-nettbutikker/",
410
+ appKey: APP_KEYS["open-pages"]
411
+ },
412
+ {
413
+ name: "ID-tyveri",
414
+ link: "/trygghet/svindel/id-tyveri/",
415
+ appKey: APP_KEYS["open-pages"]
416
+ },
417
+ {
418
+ name: "Lynkurs - trygg på skjerm",
419
+ link: "/trygghet/trygg-pa-skjerm/lynkurs/",
420
+ appKey: APP_KEYS["open-pages"]
421
+ }
422
+ ],
222
423
  links: [
223
424
  {
224
425
  name: "Tjenester",
@@ -235,6 +436,11 @@ const PRIVATE_LINKS = {
235
436
  link: "/trygghet/skjermhelse/",
236
437
  appKey: APP_KEYS["open-pages"]
237
438
  },
439
+ {
440
+ name: "Trygg på skjerm",
441
+ link: "/trygghet/trygg-pa-skjerm/",
442
+ appKey: APP_KEYS["open-pages"]
443
+ },
238
444
  {
239
445
  name: "Aktuelt",
240
446
  link: "/trygghet/aktuelt/",
@@ -244,6 +450,11 @@ const PRIVATE_LINKS = {
244
450
  name: "Hjelp Trygghet",
245
451
  link: "/trygghet/hjelp/",
246
452
  appKey: APP_KEYS["open-pages"]
453
+ },
454
+ {
455
+ name: "Alt om trygghet",
456
+ link: "/trygghet",
457
+ appKey: APP_KEYS["open-pages"]
247
458
  }
248
459
  ]
249
460
  },
@@ -251,6 +462,38 @@ const PRIVATE_LINKS = {
251
462
  name: "Hjelp",
252
463
  link: "/hjelp/",
253
464
  appKey: APP_KEYS["open-pages"],
465
+ highlightedLinks: [
466
+ {
467
+ name: "SIM, PIN og PUK",
468
+ link: "/mobil/mobilabonnement/sim-kort/",
469
+ appKey: APP_KEYS["open-pages"]
470
+ },
471
+ {
472
+ name: "Driftsmeldinger",
473
+ link: "/hjelp/driftsmeldinger/",
474
+ appKey: APP_KEYS["open-pages"]
475
+ },
476
+ {
477
+ name: "Dekningskart",
478
+ link: "/nett/dekning/",
479
+ appKey: APP_KEYS["open-pages"]
480
+ },
481
+ {
482
+ name: "Returnere rutere og TV-bokser",
483
+ link: "/hjelp/retur-av-utstyr/",
484
+ appKey: APP_KEYS["open-pages"]
485
+ },
486
+ {
487
+ name: "Last ned apper",
488
+ link: "/hjelp/apper/",
489
+ appKey: APP_KEYS["open-pages"]
490
+ },
491
+ {
492
+ name: "Se din faktura",
493
+ link: "/minside/faktura",
494
+ appKey: APP_KEYS["my-pages"]
495
+ }
496
+ ],
254
497
  links: [
255
498
  {
256
499
  name: "Hjelp Mobil",
@@ -286,6 +529,11 @@ const PRIVATE_LINKS = {
286
529
  name: "Finn butikk",
287
530
  link: "/hjelp/butikker-og-forhandlere/",
288
531
  appKey: APP_KEYS["open-pages"]
532
+ },
533
+ {
534
+ name: "Hjelp til alt",
535
+ link: "/hjelp",
536
+ appKey: APP_KEYS["open-pages"]
289
537
  }
290
538
  // {
291
539
  // name: 'Kontakt oss',
@@ -300,35 +548,41 @@ const BUSINESS_LINKS = {
300
548
  name: "Bedrift",
301
549
  link: "/bedrift/",
302
550
  appKey: APP_KEYS["open-pages"],
551
+ highlightedLinks: [],
303
552
  links: [
304
553
  {
305
554
  name: "Logo",
306
555
  link: "/bedrift/",
307
556
  appKey: APP_KEYS["open-pages"],
308
- links: []
557
+ links: [],
558
+ highlightedLinks: []
309
559
  },
310
560
  {
311
561
  name: "Produkter og tjenester",
312
562
  link: "/bedrift/produkter-og-tjenester/",
313
563
  appKey: APP_KEYS["open-pages"],
314
- links: []
564
+ links: [],
565
+ highlightedLinks: []
315
566
  },
316
567
  {
317
568
  name: "Sikkerhet",
318
569
  link: "/bedrift/sikkerhet/",
319
570
  appKey: APP_KEYS["open-pages"],
320
- links: []
571
+ links: [],
572
+ highlightedLinks: []
321
573
  },
322
574
  {
323
575
  name: "Innovasjon",
324
576
  link: "/bedrift/innovasjon-og-startup/",
325
577
  appKey: APP_KEYS["open-pages"],
326
- links: []
578
+ links: [],
579
+ highlightedLinks: []
327
580
  },
328
581
  {
329
582
  name: "Nettbutikk",
330
583
  link: "/bedrift/mobilabonnement/",
331
584
  appKey: APP_KEYS["open-pages"],
585
+ highlightedLinks: [],
332
586
  links: [
333
587
  {
334
588
  name: "Mobilabonnement",
@@ -351,7 +605,8 @@ const BUSINESS_LINKS = {
351
605
  name: "Hjelp",
352
606
  link: "/bedrift/kundeservice/",
353
607
  appKey: APP_KEYS["open-pages"],
354
- links: []
608
+ links: [],
609
+ highlightedLinks: []
355
610
  }
356
611
  ]
357
612
  };
@@ -359,30 +614,35 @@ const MDU_LINKS = {
359
614
  name: "Borettslag",
360
615
  link: "/borettslag/",
361
616
  appKey: APP_KEYS["open-pages"],
617
+ highlightedLinks: [],
362
618
  links: [
363
619
  {
364
620
  name: "Logo",
365
621
  link: "/borettslag/",
366
622
  appKey: APP_KEYS["open-pages"],
367
- links: []
623
+ links: [],
624
+ highlightedLinks: []
368
625
  },
369
626
  {
370
627
  name: "Beboer",
371
628
  link: "/borettslag/beboer/",
372
629
  appKey: APP_KEYS["open-pages"],
373
- links: []
630
+ links: [],
631
+ highlightedLinks: []
374
632
  },
375
633
  {
376
634
  name: "Styre",
377
635
  link: "/borettslag/styre/",
378
636
  appKey: APP_KEYS["open-pages"],
379
- links: []
637
+ links: [],
638
+ highlightedLinks: []
380
639
  },
381
640
  {
382
641
  name: "Utbygger",
383
642
  link: "/borettslag/utbygger/",
384
643
  appKey: APP_KEYS["open-pages"],
385
- links: []
644
+ links: [],
645
+ highlightedLinks: []
386
646
  }
387
647
  ]
388
648
  };