@primer/view-components 0.46.0-rc.edb4d943 → 0.47.0-rc.08c77154
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.
- package/app/assets/styles/primer_view_components.css +1 -1
- package/app/assets/styles/primer_view_components.css.map +1 -1
- package/app/components/primer/beta/avatar_stack.css +1 -1
- package/app/components/primer/beta/avatar_stack.css.json +5 -4
- package/package.json +1 -1
- package/static/arguments.json +6 -0
- package/static/info_arch.json +27 -2
- package/static/previews.json +26 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
.AvatarStack{height:20px;min-width:26px;position:relative}.AvatarStack .AvatarStack-body{position:absolute}.AvatarStack.AvatarStack--two{min-width:36px}.AvatarStack.AvatarStack--three-plus{min-width:46px}.AvatarStack-body{background:var(--bgColor-default);border-radius:100px;display:flex}.AvatarStack-body .avatar{background-color:var(--bgColor-default);border-radius:var(--borderRadius-small);box-sizing:initial;display:flex;height:20px;margin-right:-11px;position:relative;transition:margin .1s ease-in-out;width:20px;z-index:2}:is(.AvatarStack-body .avatar):first-child{z-index:3}:is(.AvatarStack-body .avatar):last-child{z-index:1}:is(.AvatarStack-body .avatar) img{border-radius:var(--borderRadius-small)}:is(.AvatarStack-body .avatar):nth-child(n+4){display:none;opacity:0}.AvatarStack-body:hover .avatar{margin-right:var(--base-size-4)}.AvatarStack-body:hover .avatar:nth-child(n+4){display:flex;opacity:1}.AvatarStack-body:hover .avatar-more{display:none!important}.avatar.avatar-more{background:var(--bgColor-muted);margin-right:0;z-index:1}.avatar.avatar-more:after,.avatar.avatar-more:before{border-radius:2px;content:"";display:block;height:20px;outline:var(--borderWidth-thin) solid var(--bgColor-default);position:absolute}.avatar.avatar-more:before{background:var(--avatarStack-fade-bgColor-muted);width:17px}.avatar.avatar-more:after{background:var(--avatarStack-fade-bgColor-default);width:14px}.AvatarStack--right .AvatarStack-body{flex-direction:row-reverse;right:0}:is(.AvatarStack--right .AvatarStack-body):hover .avatar{margin-left:var(--base-size-4);margin-right:0}.AvatarStack--right .avatar.avatar-more{background:var(--avatarStack-fade-bgColor-default)}:is(.AvatarStack--right .avatar.avatar-more):before{width:5px}:is(.AvatarStack--right .avatar.avatar-more):after{background:var(--bgColor-muted);width:2px}.AvatarStack--right .avatar{margin-left:-11px;margin-right:0}
|
|
1
|
+
.AvatarStack{height:20px;min-width:26px;position:relative}.AvatarStack .AvatarStack-body{position:absolute}.AvatarStack.AvatarStack--two{min-width:36px}.AvatarStack.AvatarStack--three-plus{min-width:46px}.AvatarStack-body{background:var(--bgColor-default);border-radius:100px;display:flex}.AvatarStack-body .avatar{background-color:var(--bgColor-default);border-radius:var(--borderRadius-small);box-sizing:initial;display:flex;height:20px;margin-right:-11px;position:relative;transition:margin .1s ease-in-out;width:20px;z-index:2}:is(.AvatarStack-body .avatar):first-child{z-index:3}:is(.AvatarStack-body .avatar):last-child{z-index:1}:is(.AvatarStack-body .avatar) img{border-radius:var(--borderRadius-small)}:is(.AvatarStack-body .avatar):nth-child(n+4){display:none;opacity:0}.AvatarStack-body:hover:not([data-disable-expand]) .avatar{margin-right:var(--base-size-4)}.AvatarStack-body:hover:not([data-disable-expand]) .avatar:nth-child(n+4){display:flex;opacity:1}.AvatarStack-body:hover:not([data-disable-expand]) .avatar-more{display:none!important}.AvatarStack-body[data-disable-expand]{position:relative}.avatar.avatar-more{background:var(--bgColor-muted);margin-right:0;z-index:1}.avatar.avatar-more:after,.avatar.avatar-more:before{border-radius:2px;content:"";display:block;height:20px;outline:var(--borderWidth-thin) solid var(--bgColor-default);position:absolute}.avatar.avatar-more:before{background:var(--avatarStack-fade-bgColor-muted);width:17px}.avatar.avatar-more:after{background:var(--avatarStack-fade-bgColor-default);width:14px}.AvatarStack--right .AvatarStack-body{flex-direction:row-reverse;right:0}:is(.AvatarStack--right .AvatarStack-body):hover:not([data-disable-expand]) .avatar{margin-left:var(--base-size-4);margin-right:0}.AvatarStack--right .avatar.avatar-more{background:var(--avatarStack-fade-bgColor-default)}:is(.AvatarStack--right .avatar.avatar-more):before{width:5px}:is(.AvatarStack--right .avatar.avatar-more):after{background:var(--bgColor-muted);width:2px}.AvatarStack--right .avatar{margin-left:-11px;margin-right:0}
|
|
@@ -11,14 +11,15 @@
|
|
|
11
11
|
":is(.AvatarStack-body .avatar):last-child",
|
|
12
12
|
":is(.AvatarStack-body .avatar) img",
|
|
13
13
|
":is(.AvatarStack-body .avatar):nth-child(n+4)",
|
|
14
|
-
".AvatarStack-body:hover .avatar",
|
|
15
|
-
".AvatarStack-body:hover .avatar:nth-child(n+4)",
|
|
16
|
-
".AvatarStack-body:hover .avatar-more",
|
|
14
|
+
".AvatarStack-body:hover:not([data-disable-expand]) .avatar",
|
|
15
|
+
".AvatarStack-body:hover:not([data-disable-expand]) .avatar:nth-child(n+4)",
|
|
16
|
+
".AvatarStack-body:hover:not([data-disable-expand]) .avatar-more",
|
|
17
|
+
".AvatarStack-body[data-disable-expand]",
|
|
17
18
|
".avatar.avatar-more",
|
|
18
19
|
".avatar.avatar-more:after",
|
|
19
20
|
".avatar.avatar-more:before",
|
|
20
21
|
".AvatarStack--right .AvatarStack-body",
|
|
21
|
-
":is(.AvatarStack--right .AvatarStack-body):hover .avatar",
|
|
22
|
+
":is(.AvatarStack--right .AvatarStack-body):hover:not([data-disable-expand]) .avatar",
|
|
22
23
|
".AvatarStack--right .avatar.avatar-more",
|
|
23
24
|
":is(.AvatarStack--right .avatar.avatar-more):before",
|
|
24
25
|
":is(.AvatarStack--right .avatar.avatar-more):after",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@primer/view-components",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.47.0-rc.08c77154",
|
|
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",
|
package/static/arguments.json
CHANGED
|
@@ -3948,6 +3948,12 @@
|
|
|
3948
3948
|
"default": "`false`",
|
|
3949
3949
|
"description": "Whether to add a tooltip to the stack or not."
|
|
3950
3950
|
},
|
|
3951
|
+
{
|
|
3952
|
+
"name": "disable_expand",
|
|
3953
|
+
"type": "Boolean",
|
|
3954
|
+
"default": "`false`",
|
|
3955
|
+
"description": "Whether to disable the expand behavior on hover. If true, avatars will not expand."
|
|
3956
|
+
},
|
|
3951
3957
|
{
|
|
3952
3958
|
"name": "body_arguments",
|
|
3953
3959
|
"type": "Hash",
|
package/static/info_arch.json
CHANGED
|
@@ -7438,6 +7438,12 @@
|
|
|
7438
7438
|
"name": "show_button",
|
|
7439
7439
|
"description": "Adds a show button (i.e. a button) that will open the panel when clicked.",
|
|
7440
7440
|
"parameters": [
|
|
7441
|
+
{
|
|
7442
|
+
"name": "icon",
|
|
7443
|
+
"type": "String",
|
|
7444
|
+
"default": "N/A",
|
|
7445
|
+
"description": "Name of {{link_to_octicons}} to use instead of text. If an [icon](https://primer.style/octicons/usage-guidelines/) is provided, a {{#link_to_component}}Primer::Beta::IconButton{{/link_to_component}} will be rendered. Otherwise a {{#link_to_component}}Primer::Beta::Button{{/link_to_component}} will be rendered."
|
|
7446
|
+
},
|
|
7441
7447
|
{
|
|
7442
7448
|
"name": "system_arguments",
|
|
7443
7449
|
"type": "Hash",
|
|
@@ -7762,8 +7768,8 @@
|
|
|
7762
7768
|
}
|
|
7763
7769
|
},
|
|
7764
7770
|
{
|
|
7765
|
-
"preview_path": "primer/alpha/select_panel/
|
|
7766
|
-
"name": "
|
|
7771
|
+
"preview_path": "primer/alpha/select_panel/select_panel_with_icon_button",
|
|
7772
|
+
"name": "select_panel_with_icon_button",
|
|
7767
7773
|
"snapshot": "interactive",
|
|
7768
7774
|
"skip_rules": {
|
|
7769
7775
|
"wont_fix": [
|
|
@@ -12160,6 +12166,12 @@
|
|
|
12160
12166
|
"default": "`false`",
|
|
12161
12167
|
"description": "Whether to add a tooltip to the stack or not."
|
|
12162
12168
|
},
|
|
12169
|
+
{
|
|
12170
|
+
"name": "disable_expand",
|
|
12171
|
+
"type": "Boolean",
|
|
12172
|
+
"default": "`false`",
|
|
12173
|
+
"description": "Whether to disable the expand behavior on hover. If true, avatars will not expand."
|
|
12174
|
+
},
|
|
12163
12175
|
{
|
|
12164
12176
|
"name": "body_arguments",
|
|
12165
12177
|
"type": "Hash",
|
|
@@ -12305,6 +12317,19 @@
|
|
|
12305
12317
|
"color-contrast"
|
|
12306
12318
|
]
|
|
12307
12319
|
}
|
|
12320
|
+
},
|
|
12321
|
+
{
|
|
12322
|
+
"preview_path": "primer/beta/avatar_stack/with_disabled_expand",
|
|
12323
|
+
"name": "with_disabled_expand",
|
|
12324
|
+
"snapshot": "false",
|
|
12325
|
+
"skip_rules": {
|
|
12326
|
+
"wont_fix": [
|
|
12327
|
+
"region"
|
|
12328
|
+
],
|
|
12329
|
+
"will_fix": [
|
|
12330
|
+
"color-contrast"
|
|
12331
|
+
]
|
|
12332
|
+
}
|
|
12308
12333
|
}
|
|
12309
12334
|
],
|
|
12310
12335
|
"subcomponents": []
|
package/static/previews.json
CHANGED
|
@@ -1469,6 +1469,19 @@
|
|
|
1469
1469
|
"color-contrast"
|
|
1470
1470
|
]
|
|
1471
1471
|
}
|
|
1472
|
+
},
|
|
1473
|
+
{
|
|
1474
|
+
"preview_path": "primer/beta/avatar_stack/with_disabled_expand",
|
|
1475
|
+
"name": "with_disabled_expand",
|
|
1476
|
+
"snapshot": "false",
|
|
1477
|
+
"skip_rules": {
|
|
1478
|
+
"wont_fix": [
|
|
1479
|
+
"region"
|
|
1480
|
+
],
|
|
1481
|
+
"will_fix": [
|
|
1482
|
+
"color-contrast"
|
|
1483
|
+
]
|
|
1484
|
+
}
|
|
1472
1485
|
}
|
|
1473
1486
|
]
|
|
1474
1487
|
},
|
|
@@ -6156,6 +6169,19 @@
|
|
|
6156
6169
|
]
|
|
6157
6170
|
}
|
|
6158
6171
|
},
|
|
6172
|
+
{
|
|
6173
|
+
"preview_path": "primer/alpha/select_panel/select_panel_with_icon_button",
|
|
6174
|
+
"name": "select_panel_with_icon_button",
|
|
6175
|
+
"snapshot": "interactive",
|
|
6176
|
+
"skip_rules": {
|
|
6177
|
+
"wont_fix": [
|
|
6178
|
+
"region"
|
|
6179
|
+
],
|
|
6180
|
+
"will_fix": [
|
|
6181
|
+
"color-contrast"
|
|
6182
|
+
]
|
|
6183
|
+
}
|
|
6184
|
+
},
|
|
6159
6185
|
{
|
|
6160
6186
|
"preview_path": "primer/alpha/select_panel/with_leading_icons",
|
|
6161
6187
|
"name": "with_leading_icons",
|