@primer/view-components 0.1.1-rc.f673cd08 → 0.1.1

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.
@@ -1 +1 @@
1
- .UnderlineNav{-webkit-overflow-scrolling:auto;box-shadow:inset 0 -1px 0 var(--color-border-muted);display:flex;justify-content:space-between;min-height:var(--base-size-48,48px);overflow-x:auto;overflow-y:hidden}.UnderlineNav .Counter{background-color:var(--color-neutral-muted);color:var(--color-fg-default);margin-left:var(--primer-control-medium-gap,8px)}.UnderlineNav .Counter--primary{background-color:var(--color-neutral-emphasis);color:var(--color-fg-on-emphasis)}.UnderlineNav-body{align-items:center;display:flex;gap:var(--primer-control-medium-gap,8px);list-style:none}.UnderlineNav-item{align-items:center;background-color:initial;border:0;border-radius:var(--primer-borderRadius-medium,6px);color:var(--color-fg-default);cursor:pointer;display:flex;font-size:var(--primer-text-body-size-medium,14px);line-height:30px;padding:0 var(--primer-control-medium-paddingInline-condensed,8px);position:relative;text-align:center;white-space:nowrap}.UnderlineNav-item:focus,.UnderlineNav-item:focus-visible,.UnderlineNav-item:hover{border-bottom-color:var(--color-neutral-muted);color:var(--color-fg-default);outline-offset:-2px;text-decoration:none;transition:border-bottom-color .12s ease-out}.UnderlineNav-item [data-content]:before{content:attr(data-content);display:block;font-weight:var(--base-text-weight-semibold,600);height:0;visibility:hidden}.UnderlineNav-item:before{content:"";height:100%;left:50%;min-height:48px;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%);width:100%}@media (pointer:fine){.UnderlineNav-item:hover{background:var(--color-action-list-item-default-hover-bg);color:var(--color-fg-default);text-decoration:none;transition:background .12s ease-out}}.UnderlineNav-item.selected,.UnderlineNav-item[aria-current]:not([aria-current=false]),.UnderlineNav-item[role=tab][aria-selected=true]{border-bottom-color:var(--color-primer-border-active);color:var(--color-fg-default);font-weight:var(--base-text-weight-semibold,600)}.UnderlineNav-item.selected:after,.UnderlineNav-item[aria-current]:not([aria-current=false]):after,.UnderlineNav-item[role=tab][aria-selected=true]:after{background:var(--color-primer-border-active);border-radius:var(--primer-borderRadius-medium,6px);bottom:calc(50% - 25px);content:"";height:2px;position:absolute;right:50%;transform:translate(50%,-50%);width:100%}.UnderlineNav--right{justify-content:flex-end}.UnderlineNav--right .UnderlineNav-actions{flex:1 1 auto}.UnderlineNav-actions{align-self:center}.UnderlineNav--full{display:block}.UnderlineNav--full .UnderlineNav-body{min-height:var(--base-size-48,48px)}.UnderlineNav-octicon{fill:var(--color-fg-muted);color:var(--color-fg-muted);display:inline!important;margin-right:var(--primer-control-medium-gap,8px)}.UnderlineNav-container{display:flex;justify-content:space-between}
1
+ .UnderlineNav{-webkit-overflow-scrolling:auto;box-shadow:inset 0 -1px 0 var(--color-border-muted);display:flex;justify-content:space-between;min-height:var(--base-size-48,48px);overflow-x:auto;overflow-y:hidden}.UnderlineNav .Counter{background-color:var(--color-neutral-muted);color:var(--color-fg-default);margin-left:var(--primer-control-medium-gap,8px)}.UnderlineNav .Counter--primary{background-color:var(--color-neutral-emphasis);color:var(--color-fg-on-emphasis)}.UnderlineNav-body{align-items:center;display:flex;gap:var(--primer-control-medium-gap,8px);list-style:none}.UnderlineNav-item{align-items:center;background-color:initial;border:0;border-radius:var(--primer-borderRadius-medium,6px);color:var(--color-fg-default);cursor:pointer;display:flex;font-size:var(--primer-text-body-size-medium,14px);line-height:30px;padding:0 var(--primer-control-medium-paddingInline-condensed,8px);position:relative;text-align:center;white-space:nowrap}.UnderlineNav-item:focus,.UnderlineNav-item:focus-visible,.UnderlineNav-item:hover{border-bottom-color:var(--color-neutral-muted);color:var(--color-fg-default);outline-offset:-2px;text-decoration:none;transition:border-bottom-color .12s ease-out}.UnderlineNav-item [data-content]:before{content:attr(data-content);display:block;font-weight:var(--base-text-weight-semibold,600);height:0;visibility:hidden}.UnderlineNav-item:before{content:"";height:100%;left:50%;min-height:48px;position:absolute;top:50%;transform:translateX(-50%) translateY(-50%);width:100%}@media (pointer:fine){.UnderlineNav-item:hover{background:var(--color-action-list-item-default-hover-bg);color:var(--color-fg-default);text-decoration:none;transition:background .12s ease-out}}.UnderlineNav-item.selected,.UnderlineNav-item[aria-current]:not([aria-current=false]),.UnderlineNav-item[role=tab][aria-selected=true]{border-bottom-color:var(--color-primer-border-active);color:var(--color-fg-default);font-weight:var(--base-text-weight-semibold,600)}.UnderlineNav-item.selected:after,.UnderlineNav-item[aria-current]:not([aria-current=false]):after,.UnderlineNav-item[role=tab][aria-selected=true]:after{background:var(--color-primer-border-active);border-radius:var(--primer-borderRadius-medium,6px);bottom:calc(50% - 25px);content:"";height:2px;position:absolute;right:50%;transform:translate(50%,-50%);width:100%;z-index:1}.UnderlineNav--right{justify-content:flex-end}.UnderlineNav--right .UnderlineNav-actions{flex:1 1 auto}.UnderlineNav-actions{align-self:center}.UnderlineNav--full{display:block}.UnderlineNav--full .UnderlineNav-body{min-height:var(--base-size-48,48px)}.UnderlineNav-octicon{fill:var(--color-fg-muted);color:var(--color-fg-muted);display:inline!important;margin-right:var(--primer-control-medium-gap,8px)}.UnderlineNav-container{display:flex;justify-content:space-between}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.1.1-rc.f673cd08",
3
+ "version": "0.1.1",
4
4
  "description": "ViewComponents for the Primer Design System",
5
5
  "main": "app/assets/javascripts/primer_view_components.js",
6
6
  "module": "app/components/primer/primer.js",
@@ -53,15 +53,15 @@
53
53
  "@github/mini-throttle": "^2.1.0",
54
54
  "@github/relative-time-element": "^4.0.0",
55
55
  "@github/tab-container-element": "^3.1.2",
56
- "@oddbird/popover-polyfill": "^0.0.8",
56
+ "@oddbird/popover-polyfill": "^0.0.10",
57
57
  "@primer/behaviors": "^1.2.0"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@changesets/changelog-github": "^0.4.6",
61
61
  "@changesets/cli": "^2.24.1",
62
62
  "@github/browserslist-config": "^1.0.0",
63
- "@github/prettier-config": "0.0.4",
64
63
  "@github/markdownlint-github": "^0.2.2",
64
+ "@github/prettier-config": "0.0.4",
65
65
  "@playwright/test": "^1.27.1",
66
66
  "@primer/css": "20.4.7",
67
67
  "@primer/primitives": "^7.11.1",
@@ -355,56 +355,6 @@
355
355
  }
356
356
  ]
357
357
  },
358
- {
359
- "component": "Navigation::Tab",
360
- "status": "alpha",
361
- "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/navigation/tab.rb",
362
- "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/navigation/tab_preview/default/",
363
- "parameters": [
364
- {
365
- "name": "list",
366
- "type": "Boolean",
367
- "default": "`false`",
368
- "description": "Whether the Tab is an item in a `<ul>` list."
369
- },
370
- {
371
- "name": "selected",
372
- "type": "Boolean",
373
- "default": "`false`",
374
- "description": "Whether the Tab is selected or not."
375
- },
376
- {
377
- "name": "with_panel",
378
- "type": "Boolean",
379
- "default": "`false`",
380
- "description": "Whether the Tab has an associated panel."
381
- },
382
- {
383
- "name": "panel_id",
384
- "type": "String",
385
- "default": "`\"\"`",
386
- "description": "Only applies if `with_panel` is `true`. Unique id of panel."
387
- },
388
- {
389
- "name": "icon_classes",
390
- "type": "Boolean",
391
- "default": "`\"\"`",
392
- "description": "Classes that must always be applied to icons."
393
- },
394
- {
395
- "name": "wrapper_arguments",
396
- "type": "Hash",
397
- "default": "`{}`",
398
- "description": "[System arguments](/system-arguments) to be used in the `<li>` wrapper when the tab is an item in a list."
399
- },
400
- {
401
- "name": "system_arguments",
402
- "type": "Hash",
403
- "default": "N/A",
404
- "description": "[System arguments](/system-arguments)"
405
- }
406
- ]
407
- },
408
358
  {
409
359
  "component": "OcticonSymbols",
410
360
  "status": "alpha",
@@ -1493,6 +1443,106 @@
1493
1443
  }
1494
1444
  ]
1495
1445
  },
1446
+ {
1447
+ "component": "Navigation::Tab",
1448
+ "status": "deprecated",
1449
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/navigation/tab_component.rb",
1450
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/navigation/tab/default/",
1451
+ "parameters": [
1452
+ {
1453
+ "name": "list",
1454
+ "type": "Boolean",
1455
+ "default": "`false`",
1456
+ "description": "Whether the Tab is an item in a `<ul>` list."
1457
+ },
1458
+ {
1459
+ "name": "selected",
1460
+ "type": "Boolean",
1461
+ "default": "`false`",
1462
+ "description": "Whether the Tab is selected or not."
1463
+ },
1464
+ {
1465
+ "name": "with_panel",
1466
+ "type": "Boolean",
1467
+ "default": "`false`",
1468
+ "description": "Whether the Tab has an associated panel."
1469
+ },
1470
+ {
1471
+ "name": "panel_id",
1472
+ "type": "String",
1473
+ "default": "`\"\"`",
1474
+ "description": "Only applies if `with_panel` is `true`. Unique id of panel."
1475
+ },
1476
+ {
1477
+ "name": "icon_classes",
1478
+ "type": "Boolean",
1479
+ "default": "`\"\"`",
1480
+ "description": "Classes that must always be applied to icons."
1481
+ },
1482
+ {
1483
+ "name": "wrapper_arguments",
1484
+ "type": "Hash",
1485
+ "default": "`{}`",
1486
+ "description": "[System arguments](/system-arguments) to be used in the `<li>` wrapper when the tab is an item in a list."
1487
+ },
1488
+ {
1489
+ "name": "system_arguments",
1490
+ "type": "Hash",
1491
+ "default": "N/A",
1492
+ "description": "[System arguments](/system-arguments)"
1493
+ }
1494
+ ]
1495
+ },
1496
+ {
1497
+ "component": "Navigation::Tab",
1498
+ "status": "alpha",
1499
+ "source": "https://github.com/primer/view_components/tree/main/app/components/primer/alpha/navigation/tab.rb",
1500
+ "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/alpha/navigation/tab/default/",
1501
+ "parameters": [
1502
+ {
1503
+ "name": "list",
1504
+ "type": "Boolean",
1505
+ "default": "`false`",
1506
+ "description": "Whether the Tab is an item in a `<ul>` list."
1507
+ },
1508
+ {
1509
+ "name": "selected",
1510
+ "type": "Boolean",
1511
+ "default": "`false`",
1512
+ "description": "Whether the Tab is selected or not."
1513
+ },
1514
+ {
1515
+ "name": "with_panel",
1516
+ "type": "Boolean",
1517
+ "default": "`false`",
1518
+ "description": "Whether the Tab has an associated panel."
1519
+ },
1520
+ {
1521
+ "name": "panel_id",
1522
+ "type": "String",
1523
+ "default": "`\"\"`",
1524
+ "description": "Only applies if `with_panel` is `true`. Unique id of panel."
1525
+ },
1526
+ {
1527
+ "name": "icon_classes",
1528
+ "type": "Boolean",
1529
+ "default": "`\"\"`",
1530
+ "description": "Classes that must always be applied to icons."
1531
+ },
1532
+ {
1533
+ "name": "wrapper_arguments",
1534
+ "type": "Hash",
1535
+ "default": "`{}`",
1536
+ "description": "[System arguments](/system-arguments) to be used in the `<li>` wrapper when the tab is an item in a list."
1537
+ },
1538
+ {
1539
+ "name": "system_arguments",
1540
+ "type": "Hash",
1541
+ "default": "N/A",
1542
+ "description": "[System arguments](/system-arguments)"
1543
+ }
1544
+ ]
1545
+ },
1496
1546
  {
1497
1547
  "component": "Octicon",
1498
1548
  "status": "beta",
@@ -1557,6 +1557,11 @@
1557
1557
  "inspect_path": "/lookbook/inspect/primer/alpha/tab_nav/with_icons_and_counters",
1558
1558
  "preview_path": "/lookbook/preview/primer/alpha/tab_nav/with_icons_and_counters",
1559
1559
  "name": "with_icons_and_counters"
1560
+ },
1561
+ {
1562
+ "inspect_path": "/lookbook/inspect/primer/alpha/tab_nav/with_extra",
1563
+ "preview_path": "/lookbook/preview/primer/alpha/tab_nav/with_extra",
1564
+ "name": "with_extra"
1560
1565
  }
1561
1566
  ]
1562
1567
  },
@@ -1573,6 +1578,11 @@
1573
1578
  "inspect_path": "/lookbook/inspect/primer/alpha/tab_panels/default",
1574
1579
  "preview_path": "/lookbook/preview/primer/alpha/tab_panels/default",
1575
1580
  "name": "default"
1581
+ },
1582
+ {
1583
+ "inspect_path": "/lookbook/inspect/primer/alpha/tab_panels/with_extra",
1584
+ "preview_path": "/lookbook/preview/primer/alpha/tab_panels/with_extra",
1585
+ "name": "with_extra"
1576
1586
  }
1577
1587
  ]
1578
1588
  },