@primer/view-components 0.35.2 → 0.36.0-rc.3f94e649

Sign up to get free protection for your applications and to get access to all the features.
@@ -47,13 +47,6 @@ let ActionBarElement = class ActionBarElement extends HTMLElement {
47
47
  _ActionBarElement_focusZoneAbortController.set(this, null);
48
48
  }
49
49
  connectedCallback() {
50
- // Calculate the width of all the items before hiding anything
51
- for (const item of this.items) {
52
- const width = item.getBoundingClientRect().width;
53
- const marginLeft = parseInt(window.getComputedStyle(item)?.marginLeft, 10);
54
- const marginRight = parseInt(window.getComputedStyle(item)?.marginRight, 10);
55
- item.setAttribute('data-offset-width', `${width + marginLeft + marginRight}`);
56
- }
57
50
  resizeObserver.observe(this);
58
51
  instersectionObserver.observe(this);
59
52
  requestAnimationFrame(() => {
@@ -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}:is(.Link--secondary,.Link--primary,.Link--muted):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}.Link-content{align-items:center;display:inline-flex;gap:var(--base-size-4);line-height:normal;text-decoration:inherit}
@@ -13,6 +13,7 @@
13
13
  ".Link--muted",
14
14
  ".Link--muted:hover",
15
15
  ".Link--onHover:hover",
16
- ":is(.Link--secondary,.Link--primary,.Link--muted):hover [class*=color-fg]"
16
+ ":is(.Link--secondary,.Link--primary,.Link--muted):hover [class*=color-fg]",
17
+ ".Link-content"
17
18
  ]
18
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primer/view-components",
3
- "version": "0.35.2",
3
+ "version": "0.36.0-rc.3f94e649",
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",
@@ -68,7 +68,7 @@
68
68
  "@github/markdownlint-github": "^0.6.0",
69
69
  "@github/prettier-config": "0.0.6",
70
70
  "@playwright/test": "^1.35.1",
71
- "@primer/css": "21.5.0",
71
+ "@primer/css": "21.5.1",
72
72
  "@primer/stylelint-config": "^13.1.1",
73
73
  "@rollup/plugin-node-resolve": "^15.2.3",
74
74
  "@rollup/plugin-typescript": "^8.3.3",
@@ -404,6 +404,9 @@
404
404
  "Link--underline": [
405
405
  "Primer::Beta::Link"
406
406
  ],
407
+ "Link-content": [
408
+ "Primer::Beta::Link"
409
+ ],
407
410
  "Overlay": [
408
411
  "Primer::Alpha::Dialog",
409
412
  "Primer::Alpha::Overlay"
@@ -0,0 +1,113 @@
1
+ [
2
+ {
3
+ "name": "forms",
4
+ "lookup_path": "primer/forms",
5
+ "examples": [
6
+ {
7
+ "preview_path": "primer/forms/single_text_field_form",
8
+ "name": "single_text_field_form",
9
+ "snapshot": "true"
10
+ },
11
+ {
12
+ "preview_path": "primer/forms/multi_text_field_form",
13
+ "name": "multi_text_field_form",
14
+ "snapshot": "true"
15
+ },
16
+ {
17
+ "preview_path": "primer/forms/text_field_and_checkbox_form",
18
+ "name": "text_field_and_checkbox_form",
19
+ "snapshot": "true"
20
+ },
21
+ {
22
+ "preview_path": "primer/forms/horizontal_form",
23
+ "name": "horizontal_form",
24
+ "snapshot": "true"
25
+ },
26
+ {
27
+ "preview_path": "primer/forms/composed_form",
28
+ "name": "composed_form",
29
+ "snapshot": "true"
30
+ },
31
+ {
32
+ "preview_path": "primer/forms/submit_button_form",
33
+ "name": "submit_button_form",
34
+ "snapshot": "true"
35
+ },
36
+ {
37
+ "preview_path": "primer/forms/radio_button_group_form",
38
+ "name": "radio_button_group_form",
39
+ "snapshot": "true"
40
+ },
41
+ {
42
+ "preview_path": "primer/forms/check_box_group_form",
43
+ "name": "check_box_group_form",
44
+ "snapshot": "true"
45
+ },
46
+ {
47
+ "preview_path": "primer/forms/array_check_box_group_form",
48
+ "name": "array_check_box_group_form",
49
+ "snapshot": "true"
50
+ },
51
+ {
52
+ "preview_path": "primer/forms/select_form",
53
+ "name": "select_form",
54
+ "snapshot": "true"
55
+ },
56
+ {
57
+ "preview_path": "primer/forms/action_menu_form",
58
+ "name": "action_menu_form",
59
+ "snapshot": "true"
60
+ },
61
+ {
62
+ "preview_path": "primer/forms/radio_button_with_nested_form",
63
+ "name": "radio_button_with_nested_form",
64
+ "snapshot": "true"
65
+ },
66
+ {
67
+ "preview_path": "primer/forms/check_box_with_nested_form",
68
+ "name": "check_box_with_nested_form",
69
+ "snapshot": "true"
70
+ },
71
+ {
72
+ "preview_path": "primer/forms/caption_template_form",
73
+ "name": "caption_template_form",
74
+ "snapshot": "true"
75
+ },
76
+ {
77
+ "preview_path": "primer/forms/after_content_form",
78
+ "name": "after_content_form",
79
+ "snapshot": "true"
80
+ },
81
+ {
82
+ "preview_path": "primer/forms/invalid_form",
83
+ "name": "invalid_form",
84
+ "snapshot": "true"
85
+ },
86
+ {
87
+ "preview_path": "primer/forms/multi_input_form",
88
+ "name": "multi_input_form",
89
+ "snapshot": "true"
90
+ },
91
+ {
92
+ "preview_path": "primer/forms/name_with_question_mark_form",
93
+ "name": "name_with_question_mark_form",
94
+ "snapshot": "true"
95
+ },
96
+ {
97
+ "preview_path": "primer/forms/immediate_validation_form",
98
+ "name": "immediate_validation_form",
99
+ "snapshot": "true"
100
+ },
101
+ {
102
+ "preview_path": "primer/forms/example_toggle_switch_form",
103
+ "name": "example_toggle_switch_form",
104
+ "snapshot": "true"
105
+ },
106
+ {
107
+ "preview_path": "primer/forms/auto_complete_form",
108
+ "name": "auto_complete_form",
109
+ "snapshot": "true"
110
+ }
111
+ ]
112
+ }
113
+ ]