@primer/view-components 0.31.1-rc.db5fbdfb → 0.32.0-rc.a8a5433b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/app/assets/javascripts/app/components/primer/shared_events.d.ts +2 -0
  2. package/app/assets/javascripts/primer_view_components.js +1 -1
  3. package/app/assets/javascripts/primer_view_components.js.map +1 -1
  4. package/app/assets/styles/primer_view_components.css +1 -1
  5. package/app/assets/styles/primer_view_components.css.map +1 -1
  6. package/app/components/primer/alpha/action_list.css +1 -1
  7. package/app/components/primer/alpha/action_list.css.json +33 -50
  8. package/app/components/primer/alpha/action_menu/action_menu_element.js +20 -7
  9. package/app/components/primer/alpha/auto_complete.css +1 -1
  10. package/app/components/primer/alpha/auto_complete.css.json +3 -5
  11. package/app/components/primer/alpha/banner.css +1 -1
  12. package/app/components/primer/alpha/banner.css.json +5 -5
  13. package/app/components/primer/alpha/button_marketing.css +1 -1
  14. package/app/components/primer/alpha/button_marketing.css.json +1 -4
  15. package/app/components/primer/alpha/dialog.css +1 -1
  16. package/app/components/primer/alpha/dialog.css.json +7 -7
  17. package/app/components/primer/alpha/layout.css +1 -1
  18. package/app/components/primer/alpha/layout.css.json +9 -15
  19. package/app/components/primer/alpha/menu.css +1 -1
  20. package/app/components/primer/alpha/menu.css.json +1 -3
  21. package/app/components/primer/alpha/segmented_control.css +1 -1
  22. package/app/components/primer/alpha/segmented_control.css.json +5 -5
  23. package/app/components/primer/alpha/select_panel_element.js +24 -15
  24. package/app/components/primer/alpha/tab_nav.css +1 -1
  25. package/app/components/primer/alpha/tab_nav.css.json +1 -3
  26. package/app/components/primer/alpha/text_field.css +1 -1
  27. package/app/components/primer/alpha/text_field.css.json +37 -78
  28. package/app/components/primer/alpha/toggle_switch.css +1 -1
  29. package/app/components/primer/alpha/toggle_switch.css.json +1 -1
  30. package/app/components/primer/alpha/underline_nav.css +1 -1
  31. package/app/components/primer/alpha/underline_nav.css.json +2 -4
  32. package/app/components/primer/beta/avatar_stack.css +1 -1
  33. package/app/components/primer/beta/avatar_stack.css.json +8 -8
  34. package/app/components/primer/beta/border_box.css +1 -1
  35. package/app/components/primer/beta/border_box.css.json +4 -4
  36. package/app/components/primer/beta/breadcrumbs.css +1 -1
  37. package/app/components/primer/beta/breadcrumbs.css.json +1 -2
  38. package/app/components/primer/beta/button.css +1 -1
  39. package/app/components/primer/beta/button.css.json +6 -8
  40. package/app/components/primer/beta/button_group.css +1 -1
  41. package/app/components/primer/beta/button_group.css.json +3 -3
  42. package/app/components/primer/beta/label.css +1 -1
  43. package/app/components/primer/beta/label.css.json +1 -2
  44. package/app/components/primer/beta/link.css +1 -1
  45. package/app/components/primer/beta/link.css.json +1 -3
  46. package/app/components/primer/beta/popover.css +1 -1
  47. package/app/components/primer/beta/popover.css.json +16 -22
  48. package/app/components/primer/beta/truncate.css +1 -1
  49. package/app/components/primer/beta/truncate.css.json +5 -5
  50. package/app/components/primer/shared_events.d.ts +2 -0
  51. package/package.json +2 -2
  52. package/static/classes.json +39 -21
  53. package/static/info_arch.json +13 -0
  54. package/static/previews.json +13 -0
@@ -3,14 +3,13 @@
3
3
  "selectors": [
4
4
  ":root",
5
5
  ".Button",
6
- ".Button:before",
6
+ ":is(.Button:before)",
7
7
  ".Button:hover",
8
8
  ".Button:active",
9
9
  ".Button:disabled",
10
10
  ".Button[aria-disabled=true]",
11
11
  ".Button.Button--iconOnly",
12
- "a.Button:hover",
13
- "summary.Button:hover",
12
+ ":is(a.Button,summary.Button):hover",
14
13
  ".Button-content",
15
14
  ".Button-content>:not(:last-child)",
16
15
  ".Button-content--alignStart",
@@ -23,10 +22,10 @@
23
22
  ".Button-trailingAction",
24
23
  ".Button--small",
25
24
  ".Button--small .Button-label",
26
- ".Button--small .Button-content>:not(:last-child)",
25
+ ":is(.Button--small .Button-content)>:not(:last-child)",
27
26
  ".Button--large",
28
27
  ".Button--large .Button-label",
29
- ".Button--large .Button-content>:not(:last-child)",
28
+ ":is(.Button--large .Button-content)>:not(:last-child)",
30
29
  ".Button--fullWidth",
31
30
  ".Button--labelWrap",
32
31
  ".Button--labelWrap .Button-content",
@@ -61,7 +60,7 @@
61
60
  ".Button--invisible[aria-disabled=true]",
62
61
  ".Button--invisible.Button--invisible-noVisuals .Button-label",
63
62
  ".Button--invisible .Button-visual",
64
- ".Button--invisible .Button-visual .Counter",
63
+ ":is(.Button--invisible .Button-visual) .Counter",
65
64
  ".Button--link",
66
65
  ".Button--link:hover:not(:disabled,.Button--inactive)",
67
66
  ".Button--link:focus",
@@ -77,8 +76,7 @@
77
76
  ".Button--danger[aria-pressed=true]",
78
77
  ".Button--danger:disabled",
79
78
  ".Button--danger[aria-disabled=true]",
80
- ".Button--danger:disabled .Counter",
81
- ".Button--danger[aria-disabled=true] .Counter",
79
+ ":is(.Button--danger:disabled,.Button--danger[aria-disabled=true]) .Counter",
82
80
  ".Button--danger .Counter",
83
81
  ".Button--iconOnly",
84
82
  ".Button--iconOnly.Button--small",
@@ -1 +1 @@
1
- .ButtonGroup{display:inline-flex}.ButtonGroup .Button{border-radius:0;margin-inline-end:-1px;position:relative}.ButtonGroup .Button:active,.ButtonGroup .Button:focus,.ButtonGroup .Button:hover{z-index:1}.ButtonGroup>:first-child .Button{border-bottom-left-radius:var(--borderRadius-medium);border-top-left-radius:var(--borderRadius-medium)}.ButtonGroup>:last-child .Button{border-bottom-right-radius:var(--borderRadius-medium);border-top-right-radius:var(--borderRadius-medium)}
1
+ .ButtonGroup{display:inline-flex}.ButtonGroup .Button{border-radius:0;margin-inline-end:-1px;position:relative}:is(.ButtonGroup .Button):active,:is(.ButtonGroup .Button):focus,:is(.ButtonGroup .Button):hover{z-index:1}.ButtonGroup>:first-child .Button{border-bottom-left-radius:var(--borderRadius-medium);border-top-left-radius:var(--borderRadius-medium)}.ButtonGroup>:last-child .Button{border-bottom-right-radius:var(--borderRadius-medium);border-top-right-radius:var(--borderRadius-medium)}
@@ -3,9 +3,9 @@
3
3
  "selectors": [
4
4
  ".ButtonGroup",
5
5
  ".ButtonGroup .Button",
6
- ".ButtonGroup .Button:active",
7
- ".ButtonGroup .Button:focus",
8
- ".ButtonGroup .Button:hover",
6
+ ":is(.ButtonGroup .Button):active",
7
+ ":is(.ButtonGroup .Button):focus",
8
+ ":is(.ButtonGroup .Button):hover",
9
9
  ".ButtonGroup>:first-child .Button",
10
10
  ".ButtonGroup>:last-child .Button"
11
11
  ]
@@ -1 +1 @@
1
- .labels{position:relative}.Label,.label{border:var(--borderWidth-thin) solid var(--borderColor-default);border-radius:2em;display:inline-block;font-size:var(--text-body-size-small);font-weight:var(--base-text-weight-medium);line-height:18px;padding:0 7px;white-space:nowrap}.Label:hover,.label:hover{-webkit-text-decoration:none;text-decoration:none}.Label--large{line-height:22px;padding-left:10px;padding-right:10px}.Label--inline{display:inline;font-size:85%;padding:.12em .5em}.Label--primary{border-color:var(--borderColor-neutral-emphasis);color:var(--fgColor-default)}.Label--secondary{border-color:var(--borderColor-default);color:var(--fgColor-muted)}.Label--accent,.Label--info{border-color:var(--borderColor-accent-emphasis);color:var(--fgColor-accent)}.Label--success{border-color:var(--borderColor-success-emphasis);color:var(--fgColor-success)}.Label--attention,.Label--warning{border-color:var(--borderColor-attention-emphasis);color:var(--fgColor-attention)}.Label--severe{border-color:var(--borderColor-severe-emphasis);color:var(--fgColor-severe)}.Label--danger{border-color:var(--borderColor-danger-emphasis);color:var(--fgColor-danger)}.Label--open{border-color:var(--borderColor-open-emphasis);color:var(--fgColor-open)}.Label--closed{border-color:var(--borderColor-closed-emphasis);color:var(--fgColor-closed)}.Label--done{border-color:var(--borderColor-done-emphasis);color:var(--fgColor-done)}.Label--sponsors{border-color:var(--borderColor-sponsors-emphasis);color:var(--fgColor-sponsors)}
1
+ .labels{position:relative}.Label,.label{border:var(--borderWidth-thin) solid var(--borderColor-default);border-radius:2em;display:inline-block;font-size:var(--text-body-size-small);font-weight:var(--base-text-weight-medium);line-height:18px;padding:0 7px;white-space:nowrap}:is(.label,.Label):hover{-webkit-text-decoration:none;text-decoration:none}.Label--large{line-height:22px;padding-left:10px;padding-right:10px}.Label--inline{display:inline;font-size:85%;padding:.12em .5em}.Label--primary{border-color:var(--borderColor-neutral-emphasis);color:var(--fgColor-default)}.Label--secondary{border-color:var(--borderColor-default);color:var(--fgColor-muted)}.Label--accent,.Label--info{border-color:var(--borderColor-accent-emphasis);color:var(--fgColor-accent)}.Label--success{border-color:var(--borderColor-success-emphasis);color:var(--fgColor-success)}.Label--attention,.Label--warning{border-color:var(--borderColor-attention-emphasis);color:var(--fgColor-attention)}.Label--severe{border-color:var(--borderColor-severe-emphasis);color:var(--fgColor-severe)}.Label--danger{border-color:var(--borderColor-danger-emphasis);color:var(--fgColor-danger)}.Label--open{border-color:var(--borderColor-open-emphasis);color:var(--fgColor-open)}.Label--closed{border-color:var(--borderColor-closed-emphasis);color:var(--fgColor-closed)}.Label--done{border-color:var(--borderColor-done-emphasis);color:var(--fgColor-done)}.Label--sponsors{border-color:var(--borderColor-sponsors-emphasis);color:var(--fgColor-sponsors)}
@@ -4,8 +4,7 @@
4
4
  ".labels",
5
5
  ".Label",
6
6
  ".label",
7
- ".Label:hover",
8
- ".label:hover",
7
+ ":is(.label,.Label):hover",
9
8
  ".Label--large",
10
9
  ".Label--inline",
11
10
  ".Label--primary",
@@ -1 +1 @@
1
- .Link{color:var(--fgColor-accent);-webkit-text-decoration:none;text-decoration:none}.Link:hover{cursor:pointer}.Link:focus,.Link:hover{-webkit-text-decoration:underline;text-decoration:underline}.Link:focus,.Link:focus-visible{outline-offset:0}.Link--underline{-webkit-text-decoration:underline;text-decoration:underline}.Link--primary{color:var(--fgColor-default)!important}.Link--primary:hover{color:var(--fgColor-accent)!important}.Link--secondary{color:var(--fgColor-muted)!important}.Link--secondary:hover{color:var(--fgColor-accent)!important}.Link--muted{color:var(--fgColor-muted)!important}.Link--muted:hover{color:var(--fgColor-accent)!important;-webkit-text-decoration:none;text-decoration:none}.Link--onHover:hover{color:var(--fgColor-accent)!important;cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}.Link--muted:hover [class*=color-fg],.Link--primary:hover [class*=color-fg],.Link--secondary:hover [class*=color-fg]{color:inherit!important}
1
+ .Link{color:var(--fgColor-accent);-webkit-text-decoration:none;text-decoration:none}.Link:hover{cursor:pointer}.Link:focus,.Link:hover{-webkit-text-decoration:underline;text-decoration:underline}.Link:focus,.Link:focus-visible{outline-offset:0}.Link--underline{-webkit-text-decoration:underline;text-decoration:underline}.Link--primary{color:var(--fgColor-default)!important}.Link--primary:hover{color:var(--fgColor-accent)!important}.Link--secondary{color:var(--fgColor-muted)!important}.Link--secondary:hover{color:var(--fgColor-accent)!important}.Link--muted{color:var(--fgColor-muted)!important}.Link--muted:hover{color:var(--fgColor-accent)!important;-webkit-text-decoration:none;text-decoration:none}.Link--onHover:hover{color:var(--fgColor-accent)!important;cursor:pointer;-webkit-text-decoration:underline;text-decoration:underline}:is(.Link--secondary,.Link--primary,.Link--muted):hover [class*=color-fg]{color:inherit!important}
@@ -13,8 +13,6 @@
13
13
  ".Link--muted",
14
14
  ".Link--muted:hover",
15
15
  ".Link--onHover:hover",
16
- ".Link--muted:hover [class*=color-fg]",
17
- ".Link--primary:hover [class*=color-fg]",
18
- ".Link--secondary:hover [class*=color-fg]"
16
+ ":is(.Link--secondary,.Link--primary,.Link--muted):hover [class*=color-fg]"
19
17
  ]
20
18
  }
@@ -1 +1 @@
1
- .Popover{position:absolute;z-index:100}.Popover-message{background-color:var(--overlay-bgColor);border:var(--borderWidth-thin) solid var(--borderColor-default);border-radius:var(--borderRadius-medium);box-shadow:var(--shadow-floating-legacy,var(--color-shadow-large))!important;margin-left:auto;margin-right:auto;position:relative;width:232px}.Popover-message:after,.Popover-message:before{content:"";display:inline-block;left:50%;position:absolute}.Popover-message:before{border:8px solid #0000;border-bottom:8px solid var(--borderColor-default);margin-left:-9px;top:-16px}.Popover-message:after{border:7px solid #0000;border-bottom:7px solid var(--overlay-bgColor);margin-left:-8px;top:-14px}.Popover-message--no-caret:after,.Popover-message--no-caret:before{display:none}.Popover-message--bottom-left:after,.Popover-message--bottom-left:before,.Popover-message--bottom-right:after,.Popover-message--bottom-right:before,.Popover-message--bottom:after,.Popover-message--bottom:before{border-bottom-color:#0000;top:auto}.Popover-message--bottom-left:before,.Popover-message--bottom-right:before,.Popover-message--bottom:before{border-top-color:var(--borderColor-default);bottom:-16px}.Popover-message--bottom-left:after,.Popover-message--bottom-right:after,.Popover-message--bottom:after{border-top-color:var(--overlay-bgColor);bottom:-14px}.Popover-message--bottom-right,.Popover-message--top-right{margin-right:0;right:-9px}.Popover-message--bottom-right:after,.Popover-message--bottom-right:before,.Popover-message--top-right:after,.Popover-message--top-right:before{left:auto;margin-left:0}.Popover-message--bottom-right:before,.Popover-message--top-right:before{right:20px}.Popover-message--bottom-right:after,.Popover-message--top-right:after{right:21px}.Popover-message--bottom-left,.Popover-message--top-left{left:-9px;margin-left:0}.Popover-message--bottom-left:after,.Popover-message--bottom-left:before,.Popover-message--top-left:after,.Popover-message--top-left:before{left:24px;margin-left:0}.Popover-message--bottom-left:after,.Popover-message--top-left:after{left:25px}.Popover-message--left-bottom:after,.Popover-message--left-bottom:before,.Popover-message--left-top:after,.Popover-message--left-top:before,.Popover-message--left:after,.Popover-message--left:before,.Popover-message--right-bottom:after,.Popover-message--right-bottom:before,.Popover-message--right-top:after,.Popover-message--right-top:before,.Popover-message--right:after,.Popover-message--right:before{border-bottom-color:#0000;left:auto;margin-left:0;top:50%}.Popover-message--left-bottom:before,.Popover-message--left-top:before,.Popover-message--left:before,.Popover-message--right-bottom:before,.Popover-message--right-top:before,.Popover-message--right:before{margin-top:-9px}.Popover-message--left-bottom:after,.Popover-message--left-top:after,.Popover-message--left:after,.Popover-message--right-bottom:after,.Popover-message--right-top:after,.Popover-message--right:after{margin-top:-8px}.Popover-message--right-bottom:before,.Popover-message--right-top:before,.Popover-message--right:before{border-left-color:var(--borderColor-default);right:-16px}.Popover-message--right-bottom:after,.Popover-message--right-top:after,.Popover-message--right:after{border-left-color:var(--overlay-bgColor);right:-14px}.Popover-message--left-bottom:before,.Popover-message--left-top:before,.Popover-message--left:before{border-right-color:var(--borderColor-default);left:-16px}.Popover-message--left-bottom:after,.Popover-message--left-top:after,.Popover-message--left:after{border-right-color:var(--overlay-bgColor);left:-14px}.Popover-message--left-top:after,.Popover-message--left-top:before,.Popover-message--right-top:after,.Popover-message--right-top:before{top:24px}.Popover-message--left-bottom:after,.Popover-message--left-bottom:before,.Popover-message--right-bottom:after,.Popover-message--right-bottom:before{top:auto}.Popover-message--left-bottom:before,.Popover-message--right-bottom:before{bottom:16px}.Popover-message--left-bottom:after,.Popover-message--right-bottom:after{bottom:17px}@media (min-width:544px){.Popover-message--large{min-width:320px}}@media (max-width:767.98px){.Popover{bottom:0!important;left:0!important;position:fixed;right:0!important;top:auto!important}.Popover-message{bottom:auto;left:auto;margin:var(--stack-gap-condensed);right:auto;top:auto;width:auto!important}.Popover-message>.btn-octicon{padding:var(--control-medium-paddingInline-normal)!important}.Popover-message:after,.Popover-message:before{display:none}}
1
+ .Popover{position:absolute;z-index:100}.Popover-message{background-color:var(--overlay-bgColor);border:var(--borderWidth-thin) solid var(--borderColor-default);border-radius:var(--borderRadius-medium);box-shadow:var(--shadow-floating-legacy,var(--color-shadow-large))!important;margin-left:auto;margin-right:auto;position:relative;width:232px}.Popover-message:after,.Popover-message:before{content:"";display:inline-block;left:50%;position:absolute}.Popover-message:before{border:8px solid #0000;border-bottom:8px solid var(--borderColor-default);margin-left:-9px;top:-16px}.Popover-message:after{border:7px solid #0000;border-bottom:7px solid var(--overlay-bgColor);margin-left:-8px;top:-14px}.Popover-message--no-caret:after,.Popover-message--no-caret:before{display:none}:is(.Popover-message--bottom,.Popover-message--bottom-right,.Popover-message--bottom-left):after,:is(.Popover-message--bottom,.Popover-message--bottom-right,.Popover-message--bottom-left):before{border-bottom-color:#0000;top:auto}:is(.Popover-message--bottom,.Popover-message--bottom-right,.Popover-message--bottom-left):before{border-top-color:var(--borderColor-default);bottom:-16px}:is(.Popover-message--bottom,.Popover-message--bottom-right,.Popover-message--bottom-left):after{border-top-color:var(--overlay-bgColor);bottom:-14px}.Popover-message--bottom-right,.Popover-message--top-right{margin-right:0;right:-9px}:is(.Popover-message--top-right,.Popover-message--bottom-right):after,:is(.Popover-message--top-right,.Popover-message--bottom-right):before{left:auto;margin-left:0}:is(.Popover-message--top-right,.Popover-message--bottom-right):before{right:20px}:is(.Popover-message--top-right,.Popover-message--bottom-right):after{right:21px}.Popover-message--bottom-left,.Popover-message--top-left{left:-9px;margin-left:0}:is(.Popover-message--top-left,.Popover-message--bottom-left):after,:is(.Popover-message--top-left,.Popover-message--bottom-left):before{left:24px;margin-left:0}:is(.Popover-message--top-left,.Popover-message--bottom-left):after{left:25px}:is(.Popover-message--right,.Popover-message--right-top,.Popover-message--right-bottom,.Popover-message--left,.Popover-message--left-top,.Popover-message--left-bottom):after,:is(.Popover-message--right,.Popover-message--right-top,.Popover-message--right-bottom,.Popover-message--left,.Popover-message--left-top,.Popover-message--left-bottom):before{border-bottom-color:#0000;left:auto;margin-left:0;top:50%}:is(.Popover-message--right,.Popover-message--right-top,.Popover-message--right-bottom,.Popover-message--left,.Popover-message--left-top,.Popover-message--left-bottom):before{margin-top:-9px}:is(.Popover-message--right,.Popover-message--right-top,.Popover-message--right-bottom,.Popover-message--left,.Popover-message--left-top,.Popover-message--left-bottom):after{margin-top:-8px}:is(.Popover-message--right,.Popover-message--right-top,.Popover-message--right-bottom):before{border-left-color:var(--borderColor-default);right:-16px}:is(.Popover-message--right,.Popover-message--right-top,.Popover-message--right-bottom):after{border-left-color:var(--overlay-bgColor);right:-14px}:is(.Popover-message--left,.Popover-message--left-top,.Popover-message--left-bottom):before{border-right-color:var(--borderColor-default);left:-16px}:is(.Popover-message--left,.Popover-message--left-top,.Popover-message--left-bottom):after{border-right-color:var(--overlay-bgColor);left:-14px}:is(.Popover-message--right-top,.Popover-message--left-top):after,:is(.Popover-message--right-top,.Popover-message--left-top):before{top:24px}:is(.Popover-message--right-bottom,.Popover-message--left-bottom):after,:is(.Popover-message--right-bottom,.Popover-message--left-bottom):before{top:auto}:is(.Popover-message--right-bottom,.Popover-message--left-bottom):before{bottom:16px}:is(.Popover-message--right-bottom,.Popover-message--left-bottom):after{bottom:17px}@media (min-width:544px){.Popover-message--large{min-width:320px}}@media (max-width:767.98px){.Popover{bottom:0!important;left:0!important;position:fixed;right:0!important;top:auto!important}.Popover-message{bottom:auto;left:auto;margin:var(--stack-gap-condensed);right:auto;top:auto;width:auto!important}.Popover-message>.btn-octicon{padding:var(--control-medium-paddingInline-normal)!important}.Popover-message:after,.Popover-message:before{display:none}}
@@ -7,32 +7,26 @@
7
7
  ".Popover-message:before",
8
8
  ".Popover-message--no-caret:after",
9
9
  ".Popover-message--no-caret:before",
10
- ".Popover-message--bottom-left:after",
11
- ".Popover-message--bottom-left:before",
12
- ".Popover-message--bottom-right:after",
13
- ".Popover-message--bottom-right:before",
14
- ".Popover-message--bottom:after",
15
- ".Popover-message--bottom:before",
10
+ ":is(.Popover-message--bottom,.Popover-message--bottom-right,.Popover-message--bottom-left):after",
11
+ ":is(.Popover-message--bottom,.Popover-message--bottom-right,.Popover-message--bottom-left):before",
16
12
  ".Popover-message--bottom-right",
17
13
  ".Popover-message--top-right",
18
- ".Popover-message--top-right:after",
19
- ".Popover-message--top-right:before",
14
+ ":is(.Popover-message--top-right,.Popover-message--bottom-right):after",
15
+ ":is(.Popover-message--top-right,.Popover-message--bottom-right):before",
20
16
  ".Popover-message--bottom-left",
21
17
  ".Popover-message--top-left",
22
- ".Popover-message--top-left:after",
23
- ".Popover-message--top-left:before",
24
- ".Popover-message--left-bottom:after",
25
- ".Popover-message--left-bottom:before",
26
- ".Popover-message--left-top:after",
27
- ".Popover-message--left-top:before",
28
- ".Popover-message--left:after",
29
- ".Popover-message--left:before",
30
- ".Popover-message--right-bottom:after",
31
- ".Popover-message--right-bottom:before",
32
- ".Popover-message--right-top:after",
33
- ".Popover-message--right-top:before",
34
- ".Popover-message--right:after",
35
- ".Popover-message--right:before",
18
+ ":is(.Popover-message--top-left,.Popover-message--bottom-left):after",
19
+ ":is(.Popover-message--top-left,.Popover-message--bottom-left):before",
20
+ ":is(.Popover-message--right,.Popover-message--right-top,.Popover-message--right-bottom,.Popover-message--left,.Popover-message--left-top,.Popover-message--left-bottom):after",
21
+ ":is(.Popover-message--right,.Popover-message--right-top,.Popover-message--right-bottom,.Popover-message--left,.Popover-message--left-top,.Popover-message--left-bottom):before",
22
+ ":is(.Popover-message--right,.Popover-message--right-top,.Popover-message--right-bottom):before",
23
+ ":is(.Popover-message--right,.Popover-message--right-top,.Popover-message--right-bottom):after",
24
+ ":is(.Popover-message--left,.Popover-message--left-top,.Popover-message--left-bottom):before",
25
+ ":is(.Popover-message--left,.Popover-message--left-top,.Popover-message--left-bottom):after",
26
+ ":is(.Popover-message--right-top,.Popover-message--left-top):after",
27
+ ":is(.Popover-message--right-top,.Popover-message--left-top):before",
28
+ ":is(.Popover-message--right-bottom,.Popover-message--left-bottom):after",
29
+ ":is(.Popover-message--right-bottom,.Popover-message--left-bottom):before",
36
30
  ".Popover-message--large",
37
31
  ".Popover-message>.btn-octicon"
38
32
  ]
@@ -1 +1 @@
1
- .Truncate{display:inline-flex;max-width:100%;min-width:0}.Truncate>.Truncate-text{max-width:-moz-fit-content;max-width:fit-content;min-width:1ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.Truncate>.Truncate-text+.Truncate-text{margin-left:var(--control-small-gap)}.Truncate>.Truncate-text.Truncate-text--primary{flex-basis:200%}.Truncate>.Truncate-text.Truncate-text--expandable:active,.Truncate>.Truncate-text.Truncate-text--expandable:focus,.Truncate>.Truncate-text.Truncate-text--expandable:hover{cursor:pointer;flex-shrink:0;max-width:100%!important}
1
+ .Truncate{display:inline-flex;max-width:100%;min-width:0}.Truncate>.Truncate-text{max-width:-moz-fit-content;max-width:fit-content;min-width:1ch;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:is(.Truncate>.Truncate-text)+.Truncate-text{margin-left:var(--control-small-gap)}.Truncate-text--primary:is(.Truncate>.Truncate-text){flex-basis:200%}.Truncate-text--expandable:is(.Truncate>.Truncate-text):active,.Truncate-text--expandable:is(.Truncate>.Truncate-text):focus,.Truncate-text--expandable:is(.Truncate>.Truncate-text):hover{cursor:pointer;flex-shrink:0;max-width:100%!important}
@@ -3,10 +3,10 @@
3
3
  "selectors": [
4
4
  ".Truncate",
5
5
  ".Truncate>.Truncate-text",
6
- ".Truncate>.Truncate-text+.Truncate-text",
7
- ".Truncate>.Truncate-text.Truncate-text--primary",
8
- ".Truncate>.Truncate-text.Truncate-text--expandable:active",
9
- ".Truncate>.Truncate-text.Truncate-text--expandable:focus",
10
- ".Truncate>.Truncate-text.Truncate-text--expandable:hover"
6
+ ":is(.Truncate>.Truncate-text)+.Truncate-text",
7
+ ".Truncate-text--primary:is(.Truncate>.Truncate-text)",
8
+ ".Truncate-text--expandable:is(.Truncate>.Truncate-text):active",
9
+ ".Truncate-text--expandable:is(.Truncate>.Truncate-text):focus",
10
+ ".Truncate-text--expandable:is(.Truncate>.Truncate-text):hover"
11
11
  ]
12
12
  }
@@ -1,9 +1,11 @@
1
1
  export type ItemActivatedEvent = {
2
2
  item: Element;
3
3
  checked: boolean;
4
+ value: string | null;
4
5
  };
5
6
  declare global {
6
7
  interface HTMLElementEventMap {
7
8
  itemActivated: CustomEvent<ItemActivatedEvent>;
9
+ beforeItemActivated: CustomEvent<ItemActivatedEvent>;
8
10
  }
9
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.31.1-rc.db5fbdfb",
3
+ "version": "0.32.0-rc.a8a5433b",
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",
@@ -85,7 +85,7 @@
85
85
  "postcss-cli": "^11.0.0",
86
86
  "postcss-import": "^16.0.0",
87
87
  "postcss-mixins": "^10.0.0",
88
- "postcss-preset-env": "^9.3.0",
88
+ "postcss-preset-env": "^10.0.2",
89
89
  "prettier": "^3.3.2",
90
90
  "rollup": "^2.79.1",
91
91
  "rollup-plugin-terser": "^7.0.2",
@@ -251,6 +251,9 @@
251
251
  "FormControl-checkbox-wrap": [
252
252
  "Primer::Alpha::TextField"
253
253
  ],
254
+ "FormControl-error": [
255
+ "Primer::Alpha::TextField"
256
+ ],
254
257
  "FormControl-horizontalGroup": [
255
258
  "Primer::Alpha::TextField"
256
259
  ],
@@ -266,12 +269,27 @@
266
269
  "FormControl-input": [
267
270
  "Primer::Alpha::TextField"
268
271
  ],
272
+ "FormControl-input-trailingAction--divider": [
273
+ "Primer::Alpha::TextField"
274
+ ],
269
275
  "FormControl-input-wrap": [
270
276
  "Primer::Alpha::TextField"
271
277
  ],
278
+ "FormControl-inset": [
279
+ "Primer::Alpha::TextField"
280
+ ],
272
281
  "FormControl-label": [
273
282
  "Primer::Alpha::TextField"
274
283
  ],
284
+ "FormControl-large": [
285
+ "Primer::Alpha::TextField"
286
+ ],
287
+ "FormControl-medium": [
288
+ "Primer::Alpha::TextField"
289
+ ],
290
+ "FormControl-monospace": [
291
+ "Primer::Alpha::TextField"
292
+ ],
275
293
  "FormControl-radio-group-wrap": [
276
294
  "Primer::Alpha::TextField"
277
295
  ],
@@ -284,15 +302,24 @@
284
302
  "FormControl-select-wrap": [
285
303
  "Primer::Alpha::TextField"
286
304
  ],
305
+ "FormControl-small": [
306
+ "Primer::Alpha::TextField"
307
+ ],
287
308
  "FormControl-spacingWrapper": [
288
309
  "Primer::Alpha::TextField"
289
310
  ],
311
+ "FormControl-success": [
312
+ "Primer::Alpha::TextField"
313
+ ],
290
314
  "FormControl-textarea": [
291
315
  "Primer::Alpha::TextField"
292
316
  ],
293
317
  "FormControl-toggleSwitchInput": [
294
318
  "Primer::Alpha::TextField"
295
319
  ],
320
+ "FormControl-warning": [
321
+ "Primer::Alpha::TextField"
322
+ ],
296
323
  "Label": [
297
324
  "Primer::Beta::Label"
298
325
  ],
@@ -347,6 +374,12 @@
347
374
  "Layout-divider": [
348
375
  "Primer::Alpha::Layout"
349
376
  ],
377
+ "Layout-divider--flowRow-hidden": [
378
+ "Primer::Alpha::Layout"
379
+ ],
380
+ "Layout-divider--flowRow-shallow": [
381
+ "Primer::Alpha::Layout"
382
+ ],
350
383
  "Layout-main": [
351
384
  "Primer::Alpha::Layout"
352
385
  ],
@@ -414,9 +447,6 @@
414
447
  "Popover-message": [
415
448
  "Primer::Beta::Popover"
416
449
  ],
417
- "Popover-message--bottom": [
418
- "Primer::Beta::Popover"
419
- ],
420
450
  "Popover-message--bottom-left": [
421
451
  "Primer::Beta::Popover"
422
452
  ],
@@ -426,27 +456,9 @@
426
456
  "Popover-message--large": [
427
457
  "Primer::Beta::Popover"
428
458
  ],
429
- "Popover-message--left": [
430
- "Primer::Beta::Popover"
431
- ],
432
- "Popover-message--left-bottom": [
433
- "Primer::Beta::Popover"
434
- ],
435
- "Popover-message--left-top": [
436
- "Primer::Beta::Popover"
437
- ],
438
459
  "Popover-message--no-caret": [
439
460
  "Primer::Beta::Popover"
440
461
  ],
441
- "Popover-message--right": [
442
- "Primer::Beta::Popover"
443
- ],
444
- "Popover-message--right-bottom": [
445
- "Primer::Beta::Popover"
446
- ],
447
- "Popover-message--right-top": [
448
- "Primer::Beta::Popover"
449
- ],
450
462
  "Popover-message--top-left": [
451
463
  "Primer::Beta::Popover"
452
464
  ],
@@ -591,6 +603,12 @@
591
603
  "Truncate": [
592
604
  "Primer::Beta::Truncate"
593
605
  ],
606
+ "Truncate-text--expandable": [
607
+ "Primer::Beta::Truncate"
608
+ ],
609
+ "Truncate-text--primary": [
610
+ "Primer::Beta::Truncate"
611
+ ],
594
612
  "UnderlineNav": [
595
613
  "Primer::Alpha::UnderlineNav"
596
614
  ],
@@ -8118,6 +8118,19 @@
8118
8118
  "color-contrast"
8119
8119
  ]
8120
8120
  }
8121
+ },
8122
+ {
8123
+ "preview_path": "primer/alpha/select_panel/no_values",
8124
+ "name": "no_values",
8125
+ "snapshot": "interactive",
8126
+ "skip_rules": {
8127
+ "wont_fix": [
8128
+ "region"
8129
+ ],
8130
+ "will_fix": [
8131
+ "color-contrast"
8132
+ ]
8133
+ }
8121
8134
  }
8122
8135
  ],
8123
8136
  "subcomponents": [
@@ -6173,6 +6173,19 @@
6173
6173
  "color-contrast"
6174
6174
  ]
6175
6175
  }
6176
+ },
6177
+ {
6178
+ "preview_path": "primer/alpha/select_panel/no_values",
6179
+ "name": "no_values",
6180
+ "snapshot": "interactive",
6181
+ "skip_rules": {
6182
+ "wont_fix": [
6183
+ "region"
6184
+ ],
6185
+ "will_fix": [
6186
+ "color-contrast"
6187
+ ]
6188
+ }
6176
6189
  }
6177
6190
  ]
6178
6191
  },