@telia/teddy 0.1.18 → 0.1.20

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 (64) 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 +3 -0
  28. package/dist/components/navigation-menu/global-navigation/global-navigation-desktop.js +3 -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/global-navigation-root.d.ts +2 -0
  33. package/dist/components/navigation-menu/global-navigation/utils.cjs +276 -21
  34. package/dist/components/navigation-menu/global-navigation/utils.d.ts +417 -20
  35. package/dist/components/navigation-menu/global-navigation/utils.js +276 -21
  36. package/dist/components/navigation-menu/navigation-menu.cjs +1 -0
  37. package/dist/components/navigation-menu/navigation-menu.d.ts +1 -1
  38. package/dist/components/navigation-menu/navigation-menu.js +1 -0
  39. package/dist/components/notabene/notabene-icon.d.ts +1 -1
  40. package/dist/components/notification/notification.d.ts +4 -4
  41. package/dist/components/progress-bar/progress-bar.cjs +4 -4
  42. package/dist/components/progress-bar/progress-bar.js +4 -4
  43. package/dist/components/radio-card-group/radio-card-group-content.cjs +1 -0
  44. package/dist/components/radio-card-group/radio-card-group-content.js +1 -0
  45. package/dist/components/radio-card-group/radio-card-group-item-title.cjs +220 -201
  46. package/dist/components/radio-card-group/radio-card-group-item-title.js +221 -202
  47. package/dist/components/radio-card-group/radio-card-group-item.cjs +1 -0
  48. package/dist/components/radio-card-group/radio-card-group-item.js +1 -0
  49. package/dist/components/scroll-area/index.d.ts +2 -2
  50. package/dist/components/scroll-area/scroll-area-button.d.ts +2 -2
  51. package/dist/components/tabs/index.d.ts +3 -3
  52. package/dist/components/tabs/tabs-root.d.ts +1 -1
  53. package/dist/components/tabs/tabs-scroll-button.d.ts +2 -2
  54. package/dist/components/text-field/index.d.ts +2 -2
  55. package/dist/components/text-field/text-field-button.d.ts +2 -2
  56. package/dist/components/toggle/toggle.d.ts +1 -1
  57. package/dist/components/tooltip/index.d.ts +3 -3
  58. package/dist/main.cjs +2 -0
  59. package/dist/main.js +2 -0
  60. package/dist/style.css +194 -114
  61. package/dist/utils/generate-styling/grid.d.ts +24 -24
  62. package/dist/utils/generate-styling/index.d.ts +16 -16
  63. package/dist/utils/generate-styling/util.d.ts +2 -2
  64. 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
  };
@@ -26,6 +26,8 @@ type RootContext = {
26
26
  setSelectedDomainItem: (v: string, onlyStateChange?: boolean) => void;
27
27
  pathname: string;
28
28
  setPathname: (v: string) => void;
29
+ specifiedLink: string;
30
+ setSpecifiedLink: (v: string) => void;
29
31
  } & Pick<RootProps, 'onSearchSubmit' | 'shoppingCart' | 'shoppingCartNumberOfItems' | 'loggedInUser' | 'appKey' | 'onLogoutClick' | 'linkComponent' | 'isCartOpen' | 'onCartOpenChange' | 'drawerSize'>;
30
32
  export declare const RootContext: React.Context<RootContext | null>;
31
33
  export declare function Root({ className, appKey, loggedInUser, linkComponent, onLogoutClick, shoppingCart, shoppingCartNumberOfItems, onSearchSubmit, isCartOpen, onCartOpenChange, drawerSize, isSimplified, currentPath, ...props }: RootProps): import("react/jsx-runtime").JSX.Element;
@@ -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
- link: "/mobil/",
116
+ link: "",
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,18 +197,60 @@ 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
  },
128
208
  {
129
209
  name: "TV",
130
- link: "/tv/",
210
+ link: "",
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,13 +287,50 @@ 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
  },
176
298
  {
177
299
  name: "Internett",
178
- link: "/internett/",
300
+ link: "",
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,13 +366,60 @@ 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
  },
218
377
  {
219
378
  name: "Trygghet",
220
- link: "/trygghet/",
379
+ link: "",
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",
@@ -249,13 +450,50 @@ const PRIVATE_LINKS = {
249
450
  name: "Hjelp Trygghet",
250
451
  link: "/trygghet/hjelp/",
251
452
  appKey: APP_KEYS["open-pages"]
453
+ },
454
+ {
455
+ name: "Alt om trygghet",
456
+ link: "/trygghet",
457
+ appKey: APP_KEYS["open-pages"]
252
458
  }
253
459
  ]
254
460
  },
255
461
  {
256
462
  name: "Hjelp",
257
- link: "/hjelp/",
463
+ link: "",
258
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
+ ],
259
497
  links: [
260
498
  {
261
499
  name: "Hjelp Mobil",
@@ -291,6 +529,11 @@ const PRIVATE_LINKS = {
291
529
  name: "Finn butikk",
292
530
  link: "/hjelp/butikker-og-forhandlere/",
293
531
  appKey: APP_KEYS["open-pages"]
532
+ },
533
+ {
534
+ name: "Hjelp til alt",
535
+ link: "/hjelp",
536
+ appKey: APP_KEYS["open-pages"]
294
537
  }
295
538
  // {
296
539
  // name: 'Kontakt oss',
@@ -305,35 +548,41 @@ const BUSINESS_LINKS = {
305
548
  name: "Bedrift",
306
549
  link: "/bedrift/",
307
550
  appKey: APP_KEYS["open-pages"],
551
+ highlightedLinks: [],
308
552
  links: [
309
553
  {
310
554
  name: "Logo",
311
555
  link: "/bedrift/",
312
556
  appKey: APP_KEYS["open-pages"],
313
- links: []
557
+ links: [],
558
+ highlightedLinks: []
314
559
  },
315
560
  {
316
561
  name: "Produkter og tjenester",
317
562
  link: "/bedrift/produkter-og-tjenester/",
318
563
  appKey: APP_KEYS["open-pages"],
319
- links: []
564
+ links: [],
565
+ highlightedLinks: []
320
566
  },
321
567
  {
322
568
  name: "Sikkerhet",
323
569
  link: "/bedrift/sikkerhet/",
324
570
  appKey: APP_KEYS["open-pages"],
325
- links: []
571
+ links: [],
572
+ highlightedLinks: []
326
573
  },
327
574
  {
328
575
  name: "Innovasjon",
329
576
  link: "/bedrift/innovasjon-og-startup/",
330
577
  appKey: APP_KEYS["open-pages"],
331
- links: []
578
+ links: [],
579
+ highlightedLinks: []
332
580
  },
333
581
  {
334
582
  name: "Nettbutikk",
335
583
  link: "/bedrift/mobilabonnement/",
336
584
  appKey: APP_KEYS["open-pages"],
585
+ highlightedLinks: [],
337
586
  links: [
338
587
  {
339
588
  name: "Mobilabonnement",
@@ -356,7 +605,8 @@ const BUSINESS_LINKS = {
356
605
  name: "Hjelp",
357
606
  link: "/bedrift/kundeservice/",
358
607
  appKey: APP_KEYS["open-pages"],
359
- links: []
608
+ links: [],
609
+ highlightedLinks: []
360
610
  }
361
611
  ]
362
612
  };
@@ -364,30 +614,35 @@ const MDU_LINKS = {
364
614
  name: "Borettslag",
365
615
  link: "/borettslag/",
366
616
  appKey: APP_KEYS["open-pages"],
617
+ highlightedLinks: [],
367
618
  links: [
368
619
  {
369
620
  name: "Logo",
370
621
  link: "/borettslag/",
371
622
  appKey: APP_KEYS["open-pages"],
372
- links: []
623
+ links: [],
624
+ highlightedLinks: []
373
625
  },
374
626
  {
375
627
  name: "Beboer",
376
628
  link: "/borettslag/beboer/",
377
629
  appKey: APP_KEYS["open-pages"],
378
- links: []
630
+ links: [],
631
+ highlightedLinks: []
379
632
  },
380
633
  {
381
634
  name: "Styre",
382
635
  link: "/borettslag/styre/",
383
636
  appKey: APP_KEYS["open-pages"],
384
- links: []
637
+ links: [],
638
+ highlightedLinks: []
385
639
  },
386
640
  {
387
641
  name: "Utbygger",
388
642
  link: "/borettslag/utbygger/",
389
643
  appKey: APP_KEYS["open-pages"],
390
- links: []
644
+ links: [],
645
+ highlightedLinks: []
391
646
  }
392
647
  ]
393
648
  };