primer_view_components 0.0.92 → 0.0.93

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +12 -0
  3. data/README.md +2 -2
  4. data/app/assets/javascripts/primer_view_components.js +1 -1
  5. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  6. data/app/assets/styles/primer_view_components.css +1 -0
  7. data/app/assets/styles/primer_view_components.css.map +1 -1
  8. data/app/components/primer/alpha/dialog/body.rb +25 -0
  9. data/app/components/primer/alpha/dialog/footer.rb +31 -0
  10. data/app/components/primer/alpha/dialog/header.html.erb +15 -0
  11. data/app/components/primer/alpha/dialog/header.rb +37 -0
  12. data/app/components/primer/alpha/dialog.html.erb +12 -0
  13. data/app/components/primer/alpha/dialog.rb +160 -0
  14. data/app/components/primer/alpha/modal-dialog-element.d.ts +1 -1
  15. data/app/components/primer/alpha/modal-dialog-element.js +2 -3
  16. data/app/components/primer/alpha/modal-dialog-element.ts +148 -0
  17. data/app/components/primer/alpha/toggle-switch-element.js +2 -0
  18. data/app/components/primer/alpha/toggle-switch-element.ts +2 -1
  19. data/app/components/primer/alpha/tool-tip-element.ts +0 -1
  20. data/app/components/primer/beta/button.html.erb +23 -0
  21. data/app/components/primer/beta/button.pcss +332 -0
  22. data/app/components/primer/beta/button.rb +189 -0
  23. data/app/components/primer/beta/icon_button.html.erb +6 -0
  24. data/app/components/primer/beta/icon_button.rb +104 -0
  25. data/app/components/primer/clipboard_copy_component.ts +1 -1
  26. data/app/components/primer/experimental/action-bar-element.d.ts +14 -0
  27. data/app/components/primer/experimental/action-bar-element.js +139 -0
  28. data/app/components/primer/experimental/action-menu-element.d.ts +31 -0
  29. data/app/components/primer/experimental/action-menu-element.js +334 -0
  30. data/app/components/primer/experimental/overflow-menu-element.d.ts +13 -0
  31. data/app/components/primer/experimental/overflow-menu-element.js +113 -0
  32. data/app/components/primer/primer.d.ts +1 -0
  33. data/app/components/primer/primer.js +1 -0
  34. data/app/components/primer/primer.pcss +1 -0
  35. data/app/components/primer/primer.ts +1 -0
  36. data/lib/postcss_mixins/focusBoxShadowInset.pcss +6 -0
  37. data/lib/postcss_mixins/focusOutline.pcss +5 -0
  38. data/lib/postcss_mixins/focusOutlineOnEmphasis.pcss +6 -0
  39. data/lib/postcss_mixins/minTouchTarget.js +20 -0
  40. data/lib/postcss_mixins/targetBoxShadow.pcss +6 -0
  41. data/lib/primer/view_components/linters/argument_mappers/base.rb +1 -1
  42. data/lib/primer/view_components/version.rb +1 -1
  43. data/lib/tasks/docs.rake +3 -8
  44. data/static/arguments.yml +113 -0
  45. data/static/audited_at.json +6 -0
  46. data/static/constants.json +107 -0
  47. data/static/statuses.json +6 -0
  48. metadata +25 -5
  49. data/app/components/primer/alpha/segmented-control-element.d.ts +0 -8
  50. data/app/components/primer/alpha/segmented-control-element.js +0 -28
  51. data/static/classes.yml +0 -230
data/static/classes.yml DELETED
@@ -1,230 +0,0 @@
1
- ---
2
- - ".ActionList"
3
- - ".ActionList-content"
4
- - ".ActionList-item"
5
- - ".ActionList-item-label"
6
- - ".AvatarStack"
7
- - ".AvatarStack--right"
8
- - ".AvatarStack--three-plus"
9
- - ".AvatarStack-body"
10
- - ".Box"
11
- - ".Box--condensed"
12
- - ".Box-body"
13
- - ".Box-btn-octicon"
14
- - ".Box-footer"
15
- - ".Box-header"
16
- - ".Box-row"
17
- - ".Box-row--blue"
18
- - ".Box-row--gray"
19
- - ".Box-row--yellow"
20
- - ".Box-title"
21
- - ".BtnGroup"
22
- - ".BtnGroup-item"
23
- - ".Counter"
24
- - ".Counter--primary"
25
- - ".Counter--secondary"
26
- - ".FormControl"
27
- - ".FormControl--fullWidth"
28
- - ".FormControl-caption"
29
- - ".FormControl-inlineValidation"
30
- - ".FormControl-input"
31
- - ".FormControl-input-leadingVisual"
32
- - ".FormControl-input-leadingVisualWrap"
33
- - ".FormControl-input-trailingAction"
34
- - ".FormControl-input-wrap"
35
- - ".FormControl-input-wrap--leadingVisual"
36
- - ".FormControl-input-wrap--trailingAction"
37
- - ".FormControl-inset"
38
- - ".FormControl-label"
39
- - ".FormControl-medium"
40
- - ".FormControl-monospace"
41
- - ".Label"
42
- - ".Label--accent"
43
- - ".Label--attention"
44
- - ".Label--danger"
45
- - ".Label--done"
46
- - ".Label--inline"
47
- - ".Label--large"
48
- - ".Label--primary"
49
- - ".Label--secondary"
50
- - ".Label--severe"
51
- - ".Label--sponsors"
52
- - ".Label--success"
53
- - ".Layout"
54
- - ".Layout--flowRow-until-lg"
55
- - ".Layout--flowRow-until-md"
56
- - ".Layout--sidebar-narrow"
57
- - ".Layout--sidebar-wide"
58
- - ".Layout--sidebarPosition-end"
59
- - ".Layout--sidebarPosition-flowRow-end"
60
- - ".Layout--sidebarPosition-flowRow-none"
61
- - ".Layout--sidebarPosition-flowRow-start"
62
- - ".Layout--sidebarPosition-start"
63
- - ".Layout-main"
64
- - ".Layout-main-centered-lg"
65
- - ".Layout-main-centered-md"
66
- - ".Layout-main-centered-xl"
67
- - ".Layout-sidebar"
68
- - ".Link--muted"
69
- - ".Link--primary"
70
- - ".Link--secondary"
71
- - ".Overlay"
72
- - ".Overlay--height-auto"
73
- - ".Overlay--width-auto"
74
- - ".Overlay-backdrop--anchor"
75
- - ".Overlay-body"
76
- - ".Overlay-body--paddingNone"
77
- - ".Popover"
78
- - ".Popover-message"
79
- - ".Popover-message--large"
80
- - ".Popover-message--left"
81
- - ".Progress"
82
- - ".Progress--large"
83
- - ".Progress--small"
84
- - ".Progress-item"
85
- - ".State"
86
- - ".State--closed"
87
- - ".State--merged"
88
- - ".State--open"
89
- - ".State--small"
90
- - ".Subhead"
91
- - ".Subhead-actions"
92
- - ".Subhead-description"
93
- - ".Subhead-heading"
94
- - ".Subhead-heading--danger"
95
- - ".TimelineItem"
96
- - ".TimelineItem-avatar"
97
- - ".TimelineItem-badge"
98
- - ".TimelineItem-body"
99
- - ".Truncate"
100
- - ".Truncate-text"
101
- - ".Truncate-text--expandable"
102
- - ".Truncate-text--primary"
103
- - ".UnderlineNav"
104
- - ".UnderlineNav--right"
105
- - ".UnderlineNav-actions"
106
- - ".UnderlineNav-body"
107
- - ".UnderlineNav-item"
108
- - ".UnderlineNav-octicon"
109
- - ".anim-rotate"
110
- - ".avatar"
111
- - ".avatar-more"
112
- - ".avatar-small"
113
- - ".blankslate"
114
- - ".blankslate-action"
115
- - ".blankslate-heading"
116
- - ".blankslate-icon"
117
- - ".blankslate-image"
118
- - ".blankslate-narrow"
119
- - ".blankslate-spacious"
120
- - ".border"
121
- - ".border-bottom-0"
122
- - ".breadcrumb-item"
123
- - ".breadcrumb-item-selected"
124
- - ".btn"
125
- - ".btn-block"
126
- - ".btn-danger"
127
- - ".btn-invisible"
128
- - ".btn-large-mktg"
129
- - ".btn-link"
130
- - ".btn-mktg"
131
- - ".btn-muted-mktg"
132
- - ".btn-octicon"
133
- - ".btn-octicon-danger"
134
- - ".btn-outline"
135
- - ".btn-primary"
136
- - ".btn-signup-mktg"
137
- - ".btn-sm"
138
- - ".btn-subtle-mktg"
139
- - ".circle"
140
- - ".close-button"
141
- - ".col-2"
142
- - ".col-3"
143
- - ".col-9"
144
- - ".color-bg-accent-emphasis"
145
- - ".color-bg-danger-emphasis"
146
- - ".color-bg-emphasis"
147
- - ".color-bg-subtle"
148
- - ".color-bg-success-emphasis"
149
- - ".color-border-accent-emphasis"
150
- - ".color-fg-danger"
151
- - ".color-fg-on-emphasis"
152
- - ".color-fg-success"
153
- - ".color-shadow-large"
154
- - ".container-lg"
155
- - ".container-md"
156
- - ".container-xl"
157
- - ".css-truncate"
158
- - ".css-truncate-overflow"
159
- - ".css-truncate-target"
160
- - ".custom-class"
161
- - ".d-flex"
162
- - ".d-inline-block"
163
- - ".d-inline-flex"
164
- - ".details-overlay"
165
- - ".details-reset"
166
- - ".dropdown"
167
- - ".dropdown-divider"
168
- - ".dropdown-header"
169
- - ".dropdown-item"
170
- - ".dropdown-menu"
171
- - ".dropdown-menu-s"
172
- - ".dropdown-menu-se"
173
- - ".ellipsis-expander"
174
- - ".expandable"
175
- - ".flash"
176
- - ".flash-action"
177
- - ".flash-close"
178
- - ".flash-error"
179
- - ".flash-full"
180
- - ".flash-success"
181
- - ".flash-warn"
182
- - ".flex-1"
183
- - ".flex-auto"
184
- - ".flex-column"
185
- - ".flex-items-end"
186
- - ".flex-justify-center"
187
- - ".flex-shrink-0"
188
- - ".float-right"
189
- - ".gutter-condensed"
190
- - ".gutter-lg"
191
- - ".hidden-text-expander"
192
- - ".inline"
193
- - ".left-0"
194
- - ".lh-0"
195
- - ".list-style-none"
196
- - ".m-2"
197
- - ".markdown-body"
198
- - ".mb-0"
199
- - ".mb-2"
200
- - ".menu"
201
- - ".menu-heading"
202
- - ".menu-item"
203
- - ".ml-2"
204
- - ".mr-2"
205
- - ".mr-n1"
206
- - ".mt-2"
207
- - ".mt-5"
208
- - ".mx-auto"
209
- - ".no-underline"
210
- - ".no-wrap"
211
- - ".p-1"
212
- - ".p-3"
213
- - ".p-4"
214
- - ".p-5"
215
- - ".position-absolute"
216
- - ".position-relative"
217
- - ".pr-2"
218
- - ".pt-5"
219
- - ".right-0"
220
- - ".sr-only"
221
- - ".tabnav"
222
- - ".tabnav-tab"
223
- - ".tabnav-tabs"
224
- - ".text-bold"
225
- - ".text-left"
226
- - ".text-normal"
227
- - ".tooltipped"
228
- - ".tooltipped-n"
229
- - ".tooltipped-no-delay"
230
- - ".tooltipped-s"