@universal-material/web 3.0.78 → 3.0.79

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.
@@ -334,255 +334,6 @@
334
334
  }
335
335
  ]
336
336
  },
337
- {
338
- "kind": "javascript-module",
339
- "path": "src/app-bar/top-app-bar.styles.ts",
340
- "declarations": [
341
- {
342
- "kind": "variable",
343
- "name": "styles",
344
- "default": "css `\n :host {\n display: block;\n background-color: var(--u-top-app-bar-bg-color, var(--u-color-body, var(--u-color-surface, rgb(254, 247, 255))));\n color: var(--u-top-app-bar-text-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n transition: background-color 100ms, inset 375ms cubic-bezier(0.19, 1, 0.22, 1);\n }\n\n :host([container-scrolled]) {\n background-color: var(--u-top-app-bar-elevated-bg-color, var(--u-color-surface-container, rgb(243, 237, 247)));\n }\n\n :host(:not([has-leading-icon])) .leading-icon {\n display: none;\n }\n\n :host(:not([has-trailing-icon])) .trailing-icon {\n display: none;\n }\n\n slot[name=leading-icon],\n slot[name=trailing-icon] {\n display: inline-flex;\n align-items: center;\n gap: var(--u-top-app-bar-icons-gap, 8px);\n }\n\n slot[name=leading-icon]::slotted(u-icon-button) {\n color: inherit;\n }\n\n :host([position=absolute]) .content {\n position: absolute;\n }\n\n :host([position=fixed]) .content {\n position: fixed;\n inset-inline: 0;\n inset-block-start: 0;\n inset-inline-start: var(--u-app-bar-offset, 0);\n }\n\n :host([position=absolute]),\n :host([position=fixed]) {\n padding-top: var(--_content-height);\n }\n :host([position=absolute]) .content,\n :host([position=fixed]) .content {\n z-index: var(--u-fixed-app-bar-z-index, 1010);\n }\n\n .content {\n display: flex;\n align-items: center;\n background-color: inherit;\n transition: inherit;\n min-height: var(--u-top-app-bar-min-height, 56px);\n }\n @media (min-width: 840px) {\n .content {\n min-height: var(--u-top-app-bar-extended-min-height, 64px);\n }\n }\n\n .headline {\n font-family: var(--u-font-family, var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"));\n line-height: var(--u-top-app-bar-headline-line-height, var(--u-title-l-line-height, 1.75rem));\n font-size: var(--u-top-app-bar-headline-font-size, var(--u-title-l-font-size, 1.375rem));\n letter-spacing: var(--u-top-app-bar-headline-letter-spacing, var(--u-title-l-letter-spacing, 0rem));\n font-weight: var(--u-top-app-bar-headline-font-weight, var(--u-title-l-font-weight, var(--u-font-weight-regular, 400)));\n margin-inline: var(--u-headline-margin, 16px);\n }\n\n .leading-icon {\n margin-inline: var(--u-leading-icon-margin, 8px);\n }\n .leading-icon + .headline {\n margin-inline-start: 0;\n }\n\n .trailing-icon {\n padding-inline: var(--u-trailing-icon-margin, 8px);\n margin-inline-start: auto;\n }\n`"
345
- }
346
- ],
347
- "exports": [
348
- {
349
- "kind": "js",
350
- "name": "styles",
351
- "declaration": {
352
- "name": "styles",
353
- "module": "src/app-bar/top-app-bar.styles.ts"
354
- }
355
- }
356
- ]
357
- },
358
- {
359
- "kind": "javascript-module",
360
- "path": "src/app-bar/top-app-bar.ts",
361
- "declarations": [
362
- {
363
- "kind": "class",
364
- "description": "",
365
- "name": "UmTopAppBar",
366
- "members": [
367
- {
368
- "kind": "field",
369
- "name": "hasLeadingIcon",
370
- "type": {
371
- "text": "boolean"
372
- },
373
- "default": "false",
374
- "description": "Whether the app bar has leading icon or not\n\n_Note:_ Readonly",
375
- "attribute": "has-leading-icon",
376
- "reflects": true
377
- },
378
- {
379
- "kind": "field",
380
- "name": "hasTrailingIcon",
381
- "type": {
382
- "text": "boolean"
383
- },
384
- "default": "false",
385
- "description": "Whether the app bar has trailing icon or not\n\n_Note:_ Readonly",
386
- "attribute": "has-trailing-icon",
387
- "reflects": true
388
- },
389
- {
390
- "kind": "field",
391
- "name": "position",
392
- "type": {
393
- "text": "'fixed' | 'absolute' | 'static'"
394
- },
395
- "default": "'fixed'",
396
- "attribute": "position",
397
- "reflects": true
398
- },
399
- {
400
- "kind": "field",
401
- "name": "scrollContainer",
402
- "type": {
403
- "text": "'none' | 'window' | string | undefined"
404
- },
405
- "attribute": "scrollContainer",
406
- "reflects": true
407
- },
408
- {
409
- "kind": "field",
410
- "name": "containerScrolled",
411
- "type": {
412
- "text": "boolean"
413
- },
414
- "default": "false",
415
- "attribute": "container-scrolled",
416
- "reflects": true
417
- },
418
- {
419
- "kind": "field",
420
- "name": "assignedLeadingIcons",
421
- "type": {
422
- "text": "HTMLElement[]"
423
- },
424
- "privacy": "private"
425
- },
426
- {
427
- "kind": "field",
428
- "name": "assignedTrailingIcons",
429
- "type": {
430
- "text": "HTMLElement[]"
431
- },
432
- "privacy": "private"
433
- },
434
- {
435
- "kind": "field",
436
- "name": "content",
437
- "type": {
438
- "text": "HTMLElement"
439
- }
440
- },
441
- {
442
- "kind": "field",
443
- "name": "contentSizeObserver",
444
- "type": {
445
- "text": "ResizeObserver | null"
446
- },
447
- "privacy": "private",
448
- "default": "null"
449
- },
450
- {
451
- "kind": "field",
452
- "name": "scrollContainerElement",
453
- "type": {
454
- "text": "{\n addEventListener: typeof window.addEventListener;\n removeEventListener: typeof window.removeEventListener;\n } | null"
455
- },
456
- "privacy": "private",
457
- "default": "null"
458
- },
459
- {
460
- "kind": "method",
461
- "name": "getScrollContainer",
462
- "privacy": "private",
463
- "return": {
464
- "type": {
465
- "text": "{\n addEventListener: typeof window.addEventListener;\n removeEventListener: typeof window.removeEventListener;\n } | undefined"
466
- }
467
- },
468
- "parameters": [
469
- {
470
- "name": "idOrElement",
471
- "type": {
472
- "text": "string | HTMLElement | undefined"
473
- }
474
- }
475
- ]
476
- },
477
- {
478
- "kind": "method",
479
- "name": "handleLeadingIconSlotChange",
480
- "privacy": "private"
481
- },
482
- {
483
- "kind": "method",
484
- "name": "handleTrailingIconSlotChange",
485
- "privacy": "private"
486
- },
487
- {
488
- "kind": "field",
489
- "name": "onContainerScroll"
490
- },
491
- {
492
- "kind": "method",
493
- "name": "getScrollTop",
494
- "privacy": "private",
495
- "static": true,
496
- "return": {
497
- "type": {
498
- "text": "number | null"
499
- }
500
- },
501
- "parameters": [
502
- {
503
- "name": "container",
504
- "type": {
505
- "text": "HTMLElement & Window"
506
- }
507
- }
508
- ]
509
- },
510
- {
511
- "kind": "method",
512
- "name": "setContentHeightProperty",
513
- "privacy": "private"
514
- }
515
- ],
516
- "attributes": [
517
- {
518
- "name": "has-leading-icon",
519
- "type": {
520
- "text": "boolean"
521
- },
522
- "default": "false",
523
- "description": "Whether the app bar has leading icon or not\n\n_Note:_ Readonly",
524
- "fieldName": "hasLeadingIcon"
525
- },
526
- {
527
- "name": "has-trailing-icon",
528
- "type": {
529
- "text": "boolean"
530
- },
531
- "default": "false",
532
- "description": "Whether the app bar has trailing icon or not\n\n_Note:_ Readonly",
533
- "fieldName": "hasTrailingIcon"
534
- },
535
- {
536
- "name": "position",
537
- "type": {
538
- "text": "'fixed' | 'absolute' | 'static'"
539
- },
540
- "default": "'fixed'",
541
- "fieldName": "position"
542
- },
543
- {
544
- "name": "scrollContainer",
545
- "type": {
546
- "text": "'none' | 'window' | string | undefined"
547
- },
548
- "fieldName": "scrollContainer"
549
- },
550
- {
551
- "name": "container-scrolled",
552
- "type": {
553
- "text": "boolean"
554
- },
555
- "default": "false",
556
- "fieldName": "containerScrolled"
557
- }
558
- ],
559
- "superclass": {
560
- "name": "LitElement",
561
- "package": "lit"
562
- },
563
- "tagName": "u-top-app-bar",
564
- "customElement": true
565
- }
566
- ],
567
- "exports": [
568
- {
569
- "kind": "js",
570
- "name": "UmTopAppBar",
571
- "declaration": {
572
- "name": "UmTopAppBar",
573
- "module": "src/app-bar/top-app-bar.ts"
574
- }
575
- },
576
- {
577
- "kind": "custom-element-definition",
578
- "name": "u-top-app-bar",
579
- "declaration": {
580
- "name": "UmTopAppBar",
581
- "module": "src/app-bar/top-app-bar.ts"
582
- }
583
- }
584
- ]
585
- },
586
337
  {
587
338
  "kind": "javascript-module",
588
339
  "path": "src/button/button-base.styles.ts",
@@ -2523,136 +2274,385 @@
2523
2274
  "fieldName": "variant"
2524
2275
  },
2525
2276
  {
2526
- "name": "toggle",
2527
- "type": {
2528
- "text": "boolean"
2529
- },
2530
- "default": "false",
2531
- "description": "When true, the button will toggle between selected and unselected\nstates",
2532
- "fieldName": "toggle"
2277
+ "name": "toggle",
2278
+ "type": {
2279
+ "text": "boolean"
2280
+ },
2281
+ "default": "false",
2282
+ "description": "When true, the button will toggle between selected and unselected\nstates",
2283
+ "fieldName": "toggle"
2284
+ },
2285
+ {
2286
+ "name": "has-selection-icon",
2287
+ "type": {
2288
+ "text": "boolean"
2289
+ },
2290
+ "default": "false",
2291
+ "fieldName": "hasSelectionIcon"
2292
+ },
2293
+ {
2294
+ "name": "selected",
2295
+ "type": {
2296
+ "text": "boolean"
2297
+ },
2298
+ "default": "false",
2299
+ "description": "Sets the selected state. When false, displays the default icon. When true,\ndisplays the selected icon, or the default icon If no `slot=\"selected\"`\nicon is provided.",
2300
+ "fieldName": "selected"
2301
+ },
2302
+ {
2303
+ "name": "aria-label-selected",
2304
+ "type": {
2305
+ "text": "string"
2306
+ },
2307
+ "default": "''",
2308
+ "description": "The `aria-label` of the button when the button is toggleable and selected.",
2309
+ "fieldName": "ariaLabelSelected"
2310
+ },
2311
+ {
2312
+ "name": "type",
2313
+ "type": {
2314
+ "text": "string"
2315
+ },
2316
+ "default": "'submit'",
2317
+ "fieldName": "type",
2318
+ "inheritedFrom": {
2319
+ "name": "UmButtonBase",
2320
+ "module": "src/button/button-base.ts"
2321
+ }
2322
+ },
2323
+ {
2324
+ "name": "value",
2325
+ "type": {
2326
+ "text": "string"
2327
+ },
2328
+ "default": "''",
2329
+ "fieldName": "value",
2330
+ "inheritedFrom": {
2331
+ "name": "UmButtonBase",
2332
+ "module": "src/button/button-base.ts"
2333
+ }
2334
+ },
2335
+ {
2336
+ "name": "disabled",
2337
+ "type": {
2338
+ "text": "boolean"
2339
+ },
2340
+ "default": "false",
2341
+ "description": "Whether the button is disabled or not.",
2342
+ "fieldName": "disabled",
2343
+ "inheritedFrom": {
2344
+ "name": "UmButtonWrapper",
2345
+ "module": "src/shared/button-wrapper.ts"
2346
+ }
2347
+ },
2348
+ {
2349
+ "name": "href",
2350
+ "type": {
2351
+ "text": "string | undefined"
2352
+ },
2353
+ "description": "The URL that the link button points to.",
2354
+ "fieldName": "href",
2355
+ "inheritedFrom": {
2356
+ "name": "UmButtonWrapper",
2357
+ "module": "src/shared/button-wrapper.ts"
2358
+ }
2359
+ },
2360
+ {
2361
+ "name": "target",
2362
+ "type": {
2363
+ "text": "string | undefined"
2364
+ },
2365
+ "description": "Where to display the linked `href` URL for a link button. Common options\ninclude `_blank` to open in a new tab.",
2366
+ "fieldName": "target",
2367
+ "inheritedFrom": {
2368
+ "name": "UmButtonWrapper",
2369
+ "module": "src/shared/button-wrapper.ts"
2370
+ }
2371
+ },
2372
+ {
2373
+ "name": "name",
2374
+ "type": {
2375
+ "text": "string | undefined"
2376
+ },
2377
+ "fieldName": "name",
2378
+ "inheritedFrom": {
2379
+ "name": "UmButtonWrapper",
2380
+ "module": "src/shared/button-wrapper.ts"
2381
+ }
2382
+ }
2383
+ ],
2384
+ "superclass": {
2385
+ "name": "UmButtonBase",
2386
+ "module": "/src/button/button-base.js"
2387
+ },
2388
+ "tagName": "u-icon-button",
2389
+ "customElement": true
2390
+ }
2391
+ ],
2392
+ "exports": [
2393
+ {
2394
+ "kind": "js",
2395
+ "name": "UmIconButton",
2396
+ "declaration": {
2397
+ "name": "UmIconButton",
2398
+ "module": "src/button/icon-button.ts"
2399
+ }
2400
+ },
2401
+ {
2402
+ "kind": "custom-element-definition",
2403
+ "name": "u-icon-button",
2404
+ "declaration": {
2405
+ "name": "UmIconButton",
2406
+ "module": "src/button/icon-button.ts"
2407
+ }
2408
+ }
2409
+ ]
2410
+ },
2411
+ {
2412
+ "kind": "javascript-module",
2413
+ "path": "src/app-bar/top-app-bar.styles.ts",
2414
+ "declarations": [
2415
+ {
2416
+ "kind": "variable",
2417
+ "name": "styles",
2418
+ "default": "css `\n :host {\n display: block;\n background-color: var(--u-top-app-bar-bg-color, var(--u-color-body, var(--u-color-surface, rgb(254, 247, 255))));\n color: var(--u-top-app-bar-text-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n transition: background-color 100ms, inset 375ms cubic-bezier(0.19, 1, 0.22, 1);\n }\n\n :host([container-scrolled]) {\n background-color: var(--u-top-app-bar-elevated-bg-color, var(--u-color-surface-container, rgb(243, 237, 247)));\n }\n\n :host(:not([has-leading-icon])) .leading-icon {\n display: none;\n }\n\n :host(:not([has-trailing-icon])) .trailing-icon {\n display: none;\n }\n\n slot[name=leading-icon],\n slot[name=trailing-icon] {\n display: inline-flex;\n align-items: center;\n gap: var(--u-top-app-bar-icons-gap, 8px);\n }\n\n slot[name=leading-icon]::slotted(u-icon-button) {\n color: inherit;\n }\n\n :host([position=absolute]) .content {\n position: absolute;\n }\n\n :host([position=fixed]) .content {\n position: fixed;\n inset-inline: 0;\n inset-block-start: 0;\n inset-inline-start: var(--u-app-bar-offset, 0);\n }\n\n :host([position=absolute]),\n :host([position=fixed]) {\n padding-top: var(--_content-height);\n }\n :host([position=absolute]) .content,\n :host([position=fixed]) .content {\n z-index: var(--u-fixed-app-bar-z-index, 1010);\n }\n\n .content {\n display: flex;\n align-items: center;\n background-color: inherit;\n transition: inherit;\n min-height: var(--u-top-app-bar-min-height, 56px);\n }\n @media (min-width: 840px) {\n .content {\n min-height: var(--u-top-app-bar-extended-min-height, 64px);\n }\n }\n\n .headline {\n font-family: var(--u-font-family, var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"));\n line-height: var(--u-top-app-bar-headline-line-height, var(--u-title-l-line-height, 1.75rem));\n font-size: var(--u-top-app-bar-headline-font-size, var(--u-title-l-font-size, 1.375rem));\n letter-spacing: var(--u-top-app-bar-headline-letter-spacing, var(--u-title-l-letter-spacing, 0rem));\n font-weight: var(--u-top-app-bar-headline-font-weight, var(--u-title-l-font-weight, var(--u-font-weight-regular, 400)));\n margin-inline: var(--u-headline-margin, 16px);\n }\n\n .leading-icon {\n margin-inline: var(--u-leading-icon-margin, 8px);\n }\n .leading-icon + .headline {\n margin-inline-start: 0;\n }\n\n .trailing-icon {\n padding-inline: var(--u-trailing-icon-margin, 8px);\n margin-inline-start: auto;\n }\n`"
2419
+ }
2420
+ ],
2421
+ "exports": [
2422
+ {
2423
+ "kind": "js",
2424
+ "name": "styles",
2425
+ "declaration": {
2426
+ "name": "styles",
2427
+ "module": "src/app-bar/top-app-bar.styles.ts"
2428
+ }
2429
+ }
2430
+ ]
2431
+ },
2432
+ {
2433
+ "kind": "javascript-module",
2434
+ "path": "src/app-bar/top-app-bar.ts",
2435
+ "declarations": [
2436
+ {
2437
+ "kind": "class",
2438
+ "description": "",
2439
+ "name": "UmTopAppBar",
2440
+ "members": [
2441
+ {
2442
+ "kind": "field",
2443
+ "name": "hasLeadingIcon",
2444
+ "type": {
2445
+ "text": "boolean"
2446
+ },
2447
+ "default": "false",
2448
+ "description": "Whether the app bar has leading icon or not\n\n_Note:_ Readonly",
2449
+ "attribute": "has-leading-icon",
2450
+ "reflects": true
2451
+ },
2452
+ {
2453
+ "kind": "field",
2454
+ "name": "hasTrailingIcon",
2455
+ "type": {
2456
+ "text": "boolean"
2457
+ },
2458
+ "default": "false",
2459
+ "description": "Whether the app bar has trailing icon or not\n\n_Note:_ Readonly",
2460
+ "attribute": "has-trailing-icon",
2461
+ "reflects": true
2462
+ },
2463
+ {
2464
+ "kind": "field",
2465
+ "name": "position",
2466
+ "type": {
2467
+ "text": "'fixed' | 'absolute' | 'static'"
2468
+ },
2469
+ "default": "'fixed'",
2470
+ "attribute": "position",
2471
+ "reflects": true
2472
+ },
2473
+ {
2474
+ "kind": "field",
2475
+ "name": "scrollContainer",
2476
+ "type": {
2477
+ "text": "'none' | 'window' | string | undefined"
2478
+ },
2479
+ "attribute": "scrollContainer",
2480
+ "reflects": true
2481
+ },
2482
+ {
2483
+ "kind": "field",
2484
+ "name": "containerScrolled",
2485
+ "type": {
2486
+ "text": "boolean"
2487
+ },
2488
+ "default": "false",
2489
+ "attribute": "container-scrolled",
2490
+ "reflects": true
2491
+ },
2492
+ {
2493
+ "kind": "field",
2494
+ "name": "assignedLeadingIcons",
2495
+ "type": {
2496
+ "text": "HTMLElement[]"
2497
+ },
2498
+ "privacy": "private"
2499
+ },
2500
+ {
2501
+ "kind": "field",
2502
+ "name": "assignedTrailingIcons",
2503
+ "type": {
2504
+ "text": "HTMLElement[]"
2505
+ },
2506
+ "privacy": "private"
2507
+ },
2508
+ {
2509
+ "kind": "field",
2510
+ "name": "content",
2511
+ "type": {
2512
+ "text": "HTMLElement"
2513
+ }
2514
+ },
2515
+ {
2516
+ "kind": "field",
2517
+ "name": "contentSizeObserver",
2518
+ "type": {
2519
+ "text": "ResizeObserver | null"
2520
+ },
2521
+ "privacy": "private",
2522
+ "default": "null"
2523
+ },
2524
+ {
2525
+ "kind": "field",
2526
+ "name": "scrollContainerElement",
2527
+ "type": {
2528
+ "text": "{\n addEventListener: typeof window.addEventListener;\n removeEventListener: typeof window.removeEventListener;\n } | null"
2529
+ },
2530
+ "privacy": "private",
2531
+ "default": "null"
2532
+ },
2533
+ {
2534
+ "kind": "method",
2535
+ "name": "getScrollContainer",
2536
+ "privacy": "private",
2537
+ "return": {
2538
+ "type": {
2539
+ "text": "{\n addEventListener: typeof window.addEventListener;\n removeEventListener: typeof window.removeEventListener;\n } | undefined"
2540
+ }
2541
+ },
2542
+ "parameters": [
2543
+ {
2544
+ "name": "idOrElement",
2545
+ "type": {
2546
+ "text": "string | HTMLElement | undefined"
2547
+ }
2548
+ }
2549
+ ]
2550
+ },
2551
+ {
2552
+ "kind": "method",
2553
+ "name": "handleLeadingIconSlotChange",
2554
+ "privacy": "private"
2533
2555
  },
2534
2556
  {
2535
- "name": "has-selection-icon",
2536
- "type": {
2537
- "text": "boolean"
2538
- },
2539
- "default": "false",
2540
- "fieldName": "hasSelectionIcon"
2557
+ "kind": "method",
2558
+ "name": "handleTrailingIconSlotChange",
2559
+ "privacy": "private"
2541
2560
  },
2542
2561
  {
2543
- "name": "selected",
2544
- "type": {
2545
- "text": "boolean"
2546
- },
2547
- "default": "false",
2548
- "description": "Sets the selected state. When false, displays the default icon. When true,\ndisplays the selected icon, or the default icon If no `slot=\"selected\"`\nicon is provided.",
2549
- "fieldName": "selected"
2562
+ "kind": "field",
2563
+ "name": "onContainerScroll"
2550
2564
  },
2551
2565
  {
2552
- "name": "aria-label-selected",
2553
- "type": {
2554
- "text": "string"
2566
+ "kind": "method",
2567
+ "name": "getScrollTop",
2568
+ "privacy": "private",
2569
+ "static": true,
2570
+ "return": {
2571
+ "type": {
2572
+ "text": "number | null"
2573
+ }
2555
2574
  },
2556
- "default": "''",
2557
- "description": "The `aria-label` of the button when the button is toggleable and selected.",
2558
- "fieldName": "ariaLabelSelected"
2575
+ "parameters": [
2576
+ {
2577
+ "name": "container",
2578
+ "type": {
2579
+ "text": "HTMLElement & Window"
2580
+ }
2581
+ }
2582
+ ]
2559
2583
  },
2560
2584
  {
2561
- "name": "type",
2562
- "type": {
2563
- "text": "string"
2564
- },
2565
- "default": "'submit'",
2566
- "fieldName": "type",
2567
- "inheritedFrom": {
2568
- "name": "UmButtonBase",
2569
- "module": "src/button/button-base.ts"
2570
- }
2571
- },
2585
+ "kind": "method",
2586
+ "name": "setContentHeightProperty",
2587
+ "privacy": "private"
2588
+ }
2589
+ ],
2590
+ "attributes": [
2572
2591
  {
2573
- "name": "value",
2592
+ "name": "has-leading-icon",
2574
2593
  "type": {
2575
- "text": "string"
2594
+ "text": "boolean"
2576
2595
  },
2577
- "default": "''",
2578
- "fieldName": "value",
2579
- "inheritedFrom": {
2580
- "name": "UmButtonBase",
2581
- "module": "src/button/button-base.ts"
2582
- }
2596
+ "default": "false",
2597
+ "description": "Whether the app bar has leading icon or not\n\n_Note:_ Readonly",
2598
+ "fieldName": "hasLeadingIcon"
2583
2599
  },
2584
2600
  {
2585
- "name": "disabled",
2601
+ "name": "has-trailing-icon",
2586
2602
  "type": {
2587
2603
  "text": "boolean"
2588
2604
  },
2589
2605
  "default": "false",
2590
- "description": "Whether the button is disabled or not.",
2591
- "fieldName": "disabled",
2592
- "inheritedFrom": {
2593
- "name": "UmButtonWrapper",
2594
- "module": "src/shared/button-wrapper.ts"
2595
- }
2606
+ "description": "Whether the app bar has trailing icon or not\n\n_Note:_ Readonly",
2607
+ "fieldName": "hasTrailingIcon"
2596
2608
  },
2597
2609
  {
2598
- "name": "href",
2610
+ "name": "position",
2599
2611
  "type": {
2600
- "text": "string | undefined"
2612
+ "text": "'fixed' | 'absolute' | 'static'"
2601
2613
  },
2602
- "description": "The URL that the link button points to.",
2603
- "fieldName": "href",
2604
- "inheritedFrom": {
2605
- "name": "UmButtonWrapper",
2606
- "module": "src/shared/button-wrapper.ts"
2607
- }
2614
+ "default": "'fixed'",
2615
+ "fieldName": "position"
2608
2616
  },
2609
2617
  {
2610
- "name": "target",
2618
+ "name": "scrollContainer",
2611
2619
  "type": {
2612
- "text": "string | undefined"
2620
+ "text": "'none' | 'window' | string | undefined"
2613
2621
  },
2614
- "description": "Where to display the linked `href` URL for a link button. Common options\ninclude `_blank` to open in a new tab.",
2615
- "fieldName": "target",
2616
- "inheritedFrom": {
2617
- "name": "UmButtonWrapper",
2618
- "module": "src/shared/button-wrapper.ts"
2619
- }
2622
+ "fieldName": "scrollContainer"
2620
2623
  },
2621
2624
  {
2622
- "name": "name",
2625
+ "name": "container-scrolled",
2623
2626
  "type": {
2624
- "text": "string | undefined"
2627
+ "text": "boolean"
2625
2628
  },
2626
- "fieldName": "name",
2627
- "inheritedFrom": {
2628
- "name": "UmButtonWrapper",
2629
- "module": "src/shared/button-wrapper.ts"
2630
- }
2629
+ "default": "false",
2630
+ "fieldName": "containerScrolled"
2631
2631
  }
2632
2632
  ],
2633
2633
  "superclass": {
2634
- "name": "UmButtonBase",
2635
- "module": "/src/button/button-base.js"
2634
+ "name": "LitElement",
2635
+ "package": "lit"
2636
2636
  },
2637
- "tagName": "u-icon-button",
2637
+ "tagName": "u-top-app-bar",
2638
2638
  "customElement": true
2639
2639
  }
2640
2640
  ],
2641
2641
  "exports": [
2642
2642
  {
2643
2643
  "kind": "js",
2644
- "name": "UmIconButton",
2644
+ "name": "UmTopAppBar",
2645
2645
  "declaration": {
2646
- "name": "UmIconButton",
2647
- "module": "src/button/icon-button.ts"
2646
+ "name": "UmTopAppBar",
2647
+ "module": "src/app-bar/top-app-bar.ts"
2648
2648
  }
2649
2649
  },
2650
2650
  {
2651
2651
  "kind": "custom-element-definition",
2652
- "name": "u-icon-button",
2652
+ "name": "u-top-app-bar",
2653
2653
  "declaration": {
2654
- "name": "UmIconButton",
2655
- "module": "src/button/icon-button.ts"
2654
+ "name": "UmTopAppBar",
2655
+ "module": "src/app-bar/top-app-bar.ts"
2656
2656
  }
2657
2657
  }
2658
2658
  ]
@@ -5126,63 +5126,6 @@
5126
5126
  }
5127
5127
  ]
5128
5128
  },
5129
- {
5130
- "kind": "javascript-module",
5131
- "path": "src/elevation/elevation.styles.ts",
5132
- "declarations": [
5133
- {
5134
- "kind": "variable",
5135
- "name": "styles",
5136
- "default": "css `\n :host {\n --_level: var(--u-elevation-level, 0);\n --_shadow-color: var(--u-color-shadow, rgb(0, 0, 0));\n -webkit-tap-highlight-color: transparent;\n position: absolute;\n inset: 0;\n border-radius: inherit;\n pointer-events: none;\n }\n :host::before, :host::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: inherit;\n transition: box-shadow 150ms ease-in-out;\n }\n :host::before {\n box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 3, 1) + 2 * clamp(0, var(--_level) - 4, 1))) calc(1px * (2 * clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 2, 1) + clamp(0, var(--_level) - 4, 1))) 0 var(--_shadow-color);\n opacity: 0.3;\n }\n :host::after {\n box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 1, 1) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (3 * clamp(0, var(--_level), 2) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (clamp(0, var(--_level), 4) + 2 * clamp(0, var(--_level) - 4, 1))) var(--_shadow-color);\n opacity: 0.15;\n }\n`"
5137
- }
5138
- ],
5139
- "exports": [
5140
- {
5141
- "kind": "js",
5142
- "name": "styles",
5143
- "declaration": {
5144
- "name": "styles",
5145
- "module": "src/elevation/elevation.styles.ts"
5146
- }
5147
- }
5148
- ]
5149
- },
5150
- {
5151
- "kind": "javascript-module",
5152
- "path": "src/elevation/elevation.ts",
5153
- "declarations": [
5154
- {
5155
- "kind": "class",
5156
- "description": "",
5157
- "name": "UmElevation",
5158
- "members": [],
5159
- "superclass": {
5160
- "name": "LitElement",
5161
- "package": "lit"
5162
- },
5163
- "tagName": "u-elevation",
5164
- "customElement": true
5165
- }
5166
- ],
5167
- "exports": [
5168
- {
5169
- "kind": "js",
5170
- "name": "UmElevation",
5171
- "declaration": {
5172
- "name": "UmElevation",
5173
- "module": "src/elevation/elevation.ts"
5174
- }
5175
- },
5176
- {
5177
- "kind": "custom-element-definition",
5178
- "name": "u-elevation",
5179
- "declaration": {
5180
- "name": "UmElevation",
5181
- "module": "src/elevation/elevation.ts"
5182
- }
5183
- }
5184
- ]
5185
- },
5186
5129
  {
5187
5130
  "kind": "javascript-module",
5188
5131
  "path": "src/dialog/confirm-dialog-builder.ts",
@@ -6055,6 +5998,63 @@
6055
5998
  }
6056
5999
  ]
6057
6000
  },
6001
+ {
6002
+ "kind": "javascript-module",
6003
+ "path": "src/elevation/elevation.styles.ts",
6004
+ "declarations": [
6005
+ {
6006
+ "kind": "variable",
6007
+ "name": "styles",
6008
+ "default": "css `\n :host {\n --_level: var(--u-elevation-level, 0);\n --_shadow-color: var(--u-color-shadow, rgb(0, 0, 0));\n -webkit-tap-highlight-color: transparent;\n position: absolute;\n inset: 0;\n border-radius: inherit;\n pointer-events: none;\n }\n :host::before, :host::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: inherit;\n transition: box-shadow 150ms ease-in-out;\n }\n :host::before {\n box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 3, 1) + 2 * clamp(0, var(--_level) - 4, 1))) calc(1px * (2 * clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 2, 1) + clamp(0, var(--_level) - 4, 1))) 0 var(--_shadow-color);\n opacity: 0.3;\n }\n :host::after {\n box-shadow: 0 calc(1px * (clamp(0, var(--_level), 1) + clamp(0, var(--_level) - 1, 1) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (3 * clamp(0, var(--_level), 2) + 2 * clamp(0, var(--_level) - 2, 3))) calc(1px * (clamp(0, var(--_level), 4) + 2 * clamp(0, var(--_level) - 4, 1))) var(--_shadow-color);\n opacity: 0.15;\n }\n`"
6009
+ }
6010
+ ],
6011
+ "exports": [
6012
+ {
6013
+ "kind": "js",
6014
+ "name": "styles",
6015
+ "declaration": {
6016
+ "name": "styles",
6017
+ "module": "src/elevation/elevation.styles.ts"
6018
+ }
6019
+ }
6020
+ ]
6021
+ },
6022
+ {
6023
+ "kind": "javascript-module",
6024
+ "path": "src/elevation/elevation.ts",
6025
+ "declarations": [
6026
+ {
6027
+ "kind": "class",
6028
+ "description": "",
6029
+ "name": "UmElevation",
6030
+ "members": [],
6031
+ "superclass": {
6032
+ "name": "LitElement",
6033
+ "package": "lit"
6034
+ },
6035
+ "tagName": "u-elevation",
6036
+ "customElement": true
6037
+ }
6038
+ ],
6039
+ "exports": [
6040
+ {
6041
+ "kind": "js",
6042
+ "name": "UmElevation",
6043
+ "declaration": {
6044
+ "name": "UmElevation",
6045
+ "module": "src/elevation/elevation.ts"
6046
+ }
6047
+ },
6048
+ {
6049
+ "kind": "custom-element-definition",
6050
+ "name": "u-elevation",
6051
+ "declaration": {
6052
+ "name": "UmElevation",
6053
+ "module": "src/elevation/elevation.ts"
6054
+ }
6055
+ }
6056
+ ]
6057
+ },
6058
6058
  {
6059
6059
  "kind": "javascript-module",
6060
6060
  "path": "src/field/field-base.styles.ts",
@@ -7190,7 +7190,7 @@
7190
7190
  {
7191
7191
  "kind": "variable",
7192
7192
  "name": "styles",
7193
- "default": "css `\n :host {\n display: block;\n --_menu-item-icon-size: var(--u-menu-item-icon-size, 1.5rem);\n --_menu-item-padding: var(--u-menu-item-padding, 12px);\n --u-focus-ring-outline-offset: -4px;\n height: var(--u-menu-item-height, 56px);\n padding-inline: var(--_menu-item-padding);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n font-family: var(--u-font-family, var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"));\n line-height: var(--u-menu-item-label-line-height, var(--u-label-l-line-height, 1.25rem));\n font-size: var(--u-menu-item-label-font-size, var(--u-label-l-font-size, 0.875rem));\n letter-spacing: var(--u-menu-item-label-letter-spacing, var(--u-label-l-letter-spacing, 0.0071428571rem));\n font-weight: var(--u-menu-item-label-font-weight, var(--u-label-l-font-weight, var(--u-font-weight-medium, 500)));\n }\n\n :host(:not([has-leading-icon])) .leading {\n display: none;\n }\n\n :host(:not([has-trailing-icon])) .trailing:has(slot[name=trailing-icon] span:empty) {\n display: none;\n }\n\n .icon {\n font-size: var(--_menu-item-icon-size);\n line-height: var(--_menu-item-icon-size);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));\n }\n\n .content {\n justify-content: flex-start;\n gap: var(--u-menu-item-icon-margin, 12px);\n }\n\n :host(.force-focus-ring) .button,\n .button:focus-visible {\n border-radius: var(--u-spacing-small, 8px);\n }\n\n .label {\n flex: 1;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n`"
7193
+ "default": "css `\n :host {\n display: block;\n --_menu-item-icon-size: var(--u-menu-item-icon-size, 1.5rem);\n --_menu-item-padding: var(--u-menu-item-padding, 12px);\n --u-focus-ring-outline-offset: -4px;\n height: var(--u-menu-item-height, 56px);\n padding-inline: var(--_menu-item-padding);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n font-family: var(--u-font-family, var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"));\n line-height: var(--u-menu-item-label-line-height, var(--u-label-l-line-height, 1.25rem));\n font-size: var(--u-menu-item-label-font-size, var(--u-label-l-font-size, 0.875rem));\n letter-spacing: var(--u-menu-item-label-letter-spacing, var(--u-label-l-letter-spacing, 0.0071428571rem));\n font-weight: var(--u-menu-item-label-font-weight, var(--u-label-l-font-weight, var(--u-font-weight-medium, 500)));\n }\n\n :host(:not([has-leading-icon])) .leading {\n display: none;\n }\n\n :host(:not([has-trailing-icon])) .trailing:has(slot[name=trailing-icon] span:empty) {\n display: none;\n }\n\n .icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: var(--_menu-item-icon-size);\n height: var(--_menu-item-icon-size);\n font-size: var(--_menu-item-icon-size);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));\n }\n\n .content {\n justify-content: flex-start;\n gap: var(--u-menu-item-icon-margin, 12px);\n }\n\n :host(.force-focus-ring) .button,\n .button:focus-visible {\n border-radius: var(--u-spacing-small, 8px);\n }\n\n .label {\n flex: 1;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n`"
7194
7194
  }
7195
7195
  ],
7196
7196
  "exports": [
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.styles.d.ts","sourceRoot":"","sources":["../../src/menu/menu-item.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBA+ClB,CAAC"}
1
+ {"version":3,"file":"menu-item.styles.d.ts","sourceRoot":"","sources":["../../src/menu/menu-item.styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,MAAM,yBAmDlB,CAAC"}
@@ -24,8 +24,12 @@ export const styles = css `
24
24
  }
25
25
 
26
26
  .icon {
27
+ display: flex;
28
+ align-items: center;
29
+ justify-content: center;
30
+ width: var(--_menu-item-icon-size);
31
+ height: var(--_menu-item-icon-size);
27
32
  font-size: var(--_menu-item-icon-size);
28
- line-height: var(--_menu-item-icon-size);
29
33
  color: var(--u-menu-item-label-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));
30
34
  }
31
35
 
@@ -1 +1 @@
1
- {"version":3,"file":"menu-item.styles.js","sourceRoot":"","sources":["../../src/menu/menu-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+CzB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css `\n :host {\n display: block;\n --_menu-item-icon-size: var(--u-menu-item-icon-size, 1.5rem);\n --_menu-item-padding: var(--u-menu-item-padding, 12px);\n --u-focus-ring-outline-offset: -4px;\n height: var(--u-menu-item-height, 56px);\n padding-inline: var(--_menu-item-padding);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n font-family: var(--u-font-family, var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"));\n line-height: var(--u-menu-item-label-line-height, var(--u-label-l-line-height, 1.25rem));\n font-size: var(--u-menu-item-label-font-size, var(--u-label-l-font-size, 0.875rem));\n letter-spacing: var(--u-menu-item-label-letter-spacing, var(--u-label-l-letter-spacing, 0.0071428571rem));\n font-weight: var(--u-menu-item-label-font-weight, var(--u-label-l-font-weight, var(--u-font-weight-medium, 500)));\n }\n\n :host(:not([has-leading-icon])) .leading {\n display: none;\n }\n\n :host(:not([has-trailing-icon])) .trailing:has(slot[name=trailing-icon] span:empty) {\n display: none;\n }\n\n .icon {\n font-size: var(--_menu-item-icon-size);\n line-height: var(--_menu-item-icon-size);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));\n }\n\n .content {\n justify-content: flex-start;\n gap: var(--u-menu-item-icon-margin, 12px);\n }\n\n :host(.force-focus-ring) .button,\n .button:focus-visible {\n border-radius: var(--u-spacing-small, 8px);\n }\n\n .label {\n flex: 1;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n`;\n"]}
1
+ {"version":3,"file":"menu-item.styles.js","sourceRoot":"","sources":["../../src/menu/menu-item.styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDzB,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css `\n :host {\n display: block;\n --_menu-item-icon-size: var(--u-menu-item-icon-size, 1.5rem);\n --_menu-item-padding: var(--u-menu-item-padding, 12px);\n --u-focus-ring-outline-offset: -4px;\n height: var(--u-menu-item-height, 56px);\n padding-inline: var(--_menu-item-padding);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface, rgb(29, 27, 32)));\n font-family: var(--u-font-family, var(--u-font-family, system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", \"Noto Sans\", \"Liberation Sans\", Arial, sans-serif, \"Apple Color Emoji\", \"Segoe UI Emoji\", \"Segoe UI Symbol\", \"Noto Color Emoji\"));\n line-height: var(--u-menu-item-label-line-height, var(--u-label-l-line-height, 1.25rem));\n font-size: var(--u-menu-item-label-font-size, var(--u-label-l-font-size, 0.875rem));\n letter-spacing: var(--u-menu-item-label-letter-spacing, var(--u-label-l-letter-spacing, 0.0071428571rem));\n font-weight: var(--u-menu-item-label-font-weight, var(--u-label-l-font-weight, var(--u-font-weight-medium, 500)));\n }\n\n :host(:not([has-leading-icon])) .leading {\n display: none;\n }\n\n :host(:not([has-trailing-icon])) .trailing:has(slot[name=trailing-icon] span:empty) {\n display: none;\n }\n\n .icon {\n display: flex;\n align-items: center;\n justify-content: center;\n width: var(--_menu-item-icon-size);\n height: var(--_menu-item-icon-size);\n font-size: var(--_menu-item-icon-size);\n color: var(--u-menu-item-label-color, var(--u-color-on-surface-variant, rgb(73, 69, 79)));\n }\n\n .content {\n justify-content: flex-start;\n gap: var(--u-menu-item-icon-margin, 12px);\n }\n\n :host(.force-focus-ring) .button,\n .button:focus-visible {\n border-radius: var(--u-spacing-small, 8px);\n }\n\n .label {\n flex: 1;\n max-width: 100%;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n }\n`;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@universal-material/web",
3
- "version": "3.0.78",
3
+ "version": "3.0.79",
4
4
  "description": "Material web components",
5
5
  "type": "module",
6
6
  "keywords": [