primer_view_components 0.0.123 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/app/assets/javascripts/primer_view_components.js +1 -1
- data/app/assets/javascripts/primer_view_components.js.map +1 -1
- data/app/assets/styles/primer_view_components.css +2 -2
- data/app/assets/styles/primer_view_components.css.map +1 -1
- data/app/components/primer/alpha/action_list/item.rb +4 -0
- data/app/components/primer/alpha/action_list.css.json +41 -0
- data/app/components/primer/alpha/auto_complete.css.json +11 -0
- data/app/components/primer/alpha/banner.css.json +14 -0
- data/app/components/primer/alpha/button_marketing.css.json +10 -0
- data/app/components/primer/alpha/dialog.css.json +63 -0
- data/app/components/primer/alpha/dropdown.css.json +21 -0
- data/app/components/primer/alpha/layout.css.json +27 -0
- data/app/components/primer/alpha/menu.css.json +11 -0
- data/app/components/primer/alpha/nav_list/item.rb +3 -1
- data/app/components/primer/alpha/nav_list/section.rb +4 -4
- data/app/components/primer/alpha/nav_list.js +3 -0
- data/app/components/primer/alpha/nav_list.rb +2 -2
- data/app/components/primer/alpha/nav_list.ts +4 -0
- data/app/components/primer/alpha/overlay/body.rb +26 -0
- data/app/components/primer/alpha/overlay/footer.rb +41 -0
- data/app/components/primer/alpha/overlay/header.html.erb +15 -0
- data/app/components/primer/alpha/overlay/header.rb +47 -0
- data/app/components/primer/alpha/overlay.css +1 -0
- data/app/components/primer/alpha/overlay.css.json +11 -0
- data/app/components/primer/alpha/overlay.css.map +1 -0
- data/app/components/primer/alpha/overlay.html.erb +11 -0
- data/app/components/primer/alpha/overlay.pcss +14 -0
- data/app/components/primer/alpha/overlay.rb +194 -0
- data/app/components/primer/alpha/segmented_control.css.json +15 -0
- data/app/components/primer/alpha/tab_nav.css.json +10 -0
- data/app/components/primer/alpha/text_field.css.json +38 -0
- data/app/components/primer/alpha/toggle_switch.css.json +16 -0
- data/app/components/primer/alpha/underline_nav.css.json +13 -0
- data/app/components/primer/anchored_position.d.ts +27 -0
- data/app/components/primer/anchored_position.js +149 -0
- data/app/components/primer/anchored_position.ts +167 -0
- data/app/components/primer/beta/avatar.css.json +14 -0
- data/app/components/primer/beta/avatar_stack.css.json +9 -0
- data/app/components/primer/beta/blankslate.css.json +12 -0
- data/app/components/primer/beta/border_box.css.json +32 -0
- data/app/components/primer/beta/breadcrumbs.css.json +4 -0
- data/app/components/primer/beta/button.css.json +22 -0
- data/app/components/primer/beta/counter.css.json +6 -0
- data/app/components/primer/beta/flash.css.json +15 -0
- data/app/components/primer/beta/flash.html.erb +1 -2
- data/app/components/primer/beta/label.css.json +20 -0
- data/app/components/primer/beta/link.css.json +8 -0
- data/app/components/primer/beta/popover.css.json +18 -0
- data/app/components/primer/beta/progress_bar.css.json +6 -0
- data/app/components/primer/beta/state.css.json +10 -0
- data/app/components/primer/beta/subhead.css.json +8 -0
- data/app/components/primer/beta/timeline_item.css.json +9 -0
- data/app/components/primer/beta/truncate.css.json +6 -0
- data/app/components/primer/primer.d.ts +2 -0
- data/app/components/primer/primer.js +2 -0
- data/app/components/primer/primer.pcss +3 -0
- data/app/components/primer/primer.ts +2 -0
- data/app/components/primer/truncate.css.json +7 -0
- data/app/lib/primer/css/layout.css.json +263 -0
- data/app/lib/primer/css/utilities.css.json +1636 -0
- data/lib/primer/view_components/linters/base_linter.rb +1 -1
- data/lib/primer/view_components/linters/disallow_component_css_counter.rb +30 -0
- data/lib/primer/view_components/version.rb +2 -2
- data/lib/primer/yard/component_manifest.rb +1 -0
- data/previews/primer/alpha/overlay_preview/middle_of_page.html.erb +17 -0
- data/previews/primer/alpha/overlay_preview.rb +107 -0
- data/static/arguments.json +104 -0
- data/static/audited_at.json +4 -0
- data/static/classes.json +311 -0
- data/static/constants.json +102 -0
- data/static/previews.json +21 -0
- data/static/statuses.json +4 -0
- metadata +19 -2
data/static/constants.json
CHANGED
@@ -335,6 +335,108 @@
|
|
335
335
|
},
|
336
336
|
"Primer::Alpha::OcticonSymbols": {
|
337
337
|
},
|
338
|
+
"Primer::Alpha::Overlay": {
|
339
|
+
"ALIGN_CONTENT_MAPPINGS": {
|
340
|
+
"start": "Overlay-footer--alignStart",
|
341
|
+
"center": "Overlay-footer--alignCenter",
|
342
|
+
"end": "Overlay-footer--alignEnd"
|
343
|
+
},
|
344
|
+
"ALIGN_CONTENT_OPTIONS": [
|
345
|
+
"start",
|
346
|
+
"center",
|
347
|
+
"end"
|
348
|
+
],
|
349
|
+
"ANCHOR_ALIGN_OPTIONS": [
|
350
|
+
"start",
|
351
|
+
"center",
|
352
|
+
"end"
|
353
|
+
],
|
354
|
+
"ANCHOR_OFFSET_OPTIONS": [
|
355
|
+
"normal",
|
356
|
+
"spacious"
|
357
|
+
],
|
358
|
+
"ANCHOR_SIDE_MAPPINGS": {
|
359
|
+
"inside_top": "inside-top",
|
360
|
+
"inside_bottom": "inside-bottom",
|
361
|
+
"inside_left": "inside-left",
|
362
|
+
"inside_right": "inside-right",
|
363
|
+
"inside_center": "inside-center",
|
364
|
+
"outside_top": "outside-top",
|
365
|
+
"outside_bottom": "outside-bottom",
|
366
|
+
"outside_left": "outside-left",
|
367
|
+
"outside_right": "outside-right"
|
368
|
+
},
|
369
|
+
"ANCHOR_SIDE_OPTIONS": [
|
370
|
+
"inside_top",
|
371
|
+
"inside_bottom",
|
372
|
+
"inside_left",
|
373
|
+
"inside_right",
|
374
|
+
"inside_center",
|
375
|
+
"outside_top",
|
376
|
+
"outside_bottom",
|
377
|
+
"outside_left",
|
378
|
+
"outside_right"
|
379
|
+
],
|
380
|
+
"Body": "Primer::Alpha::Overlay::Body",
|
381
|
+
"DEFAULT_ALIGN_CONTENT": "end",
|
382
|
+
"DEFAULT_ANCHOR_ALIGN": "start",
|
383
|
+
"DEFAULT_ANCHOR_OFFSET": "normal",
|
384
|
+
"DEFAULT_ANCHOR_SIDE": "outside_bottom",
|
385
|
+
"DEFAULT_PADDING": "normal",
|
386
|
+
"DEFAULT_POPOVER": "auto",
|
387
|
+
"DEFAULT_SIZE": "auto",
|
388
|
+
"Footer": "Primer::Alpha::Overlay::Footer",
|
389
|
+
"Header": "Primer::Alpha::Overlay::Header",
|
390
|
+
"PADDING_MAPPINGS": {
|
391
|
+
"normal": null,
|
392
|
+
"condensed": "Overlay-body--paddingCondensed",
|
393
|
+
"none": "Overlay-body--paddingNone"
|
394
|
+
},
|
395
|
+
"PADDING_OPTIONS": [
|
396
|
+
"normal",
|
397
|
+
"condensed",
|
398
|
+
"none"
|
399
|
+
],
|
400
|
+
"POPOVER_OPTIONS": [
|
401
|
+
"auto",
|
402
|
+
"manual"
|
403
|
+
],
|
404
|
+
"ROLE_OPTIONS": [
|
405
|
+
"dialog",
|
406
|
+
"menu"
|
407
|
+
],
|
408
|
+
"SIZE_MAPPINGS": {
|
409
|
+
"auto": "Overlay--size-auto",
|
410
|
+
"small": "Overlay--size-small",
|
411
|
+
"medium": "Overlay--size-medium",
|
412
|
+
"medium_portrait": "Overlay--size-medium-portrait",
|
413
|
+
"large": "Overlay--size-large",
|
414
|
+
"xlarge": "Overlay--size-xlarge"
|
415
|
+
},
|
416
|
+
"SIZE_OPTIONS": [
|
417
|
+
"auto",
|
418
|
+
"small",
|
419
|
+
"medium",
|
420
|
+
"medium_portrait",
|
421
|
+
"large",
|
422
|
+
"xlarge"
|
423
|
+
]
|
424
|
+
},
|
425
|
+
"Primer::Alpha::Overlay::Body": {
|
426
|
+
},
|
427
|
+
"Primer::Alpha::Overlay::Footer": {
|
428
|
+
},
|
429
|
+
"Primer::Alpha::Overlay::Header": {
|
430
|
+
"DEFAULT_SIZE": "medium",
|
431
|
+
"SIZE_MAPPINGS": {
|
432
|
+
"medium": null,
|
433
|
+
"large": "Overlay-header--large"
|
434
|
+
},
|
435
|
+
"SIZE_OPTIONS": [
|
436
|
+
"medium",
|
437
|
+
"large"
|
438
|
+
]
|
439
|
+
},
|
338
440
|
"Primer::Alpha::RadioButton": {
|
339
441
|
},
|
340
442
|
"Primer::Alpha::RadioButtonGroup": {
|
data/static/previews.json
CHANGED
@@ -1263,6 +1263,27 @@
|
|
1263
1263
|
}
|
1264
1264
|
]
|
1265
1265
|
},
|
1266
|
+
{
|
1267
|
+
"name": "overlay",
|
1268
|
+
"lookup_path": "primer/alpha/overlay",
|
1269
|
+
"examples": [
|
1270
|
+
{
|
1271
|
+
"inspect_path": "/lookbook/inspect/primer/alpha/overlay/playground",
|
1272
|
+
"preview_path": "/lookbook/preview/primer/alpha/overlay/playground",
|
1273
|
+
"name": "playground"
|
1274
|
+
},
|
1275
|
+
{
|
1276
|
+
"inspect_path": "/lookbook/inspect/primer/alpha/overlay/default",
|
1277
|
+
"preview_path": "/lookbook/preview/primer/alpha/overlay/default",
|
1278
|
+
"name": "default"
|
1279
|
+
},
|
1280
|
+
{
|
1281
|
+
"inspect_path": "/lookbook/inspect/primer/alpha/overlay/middle_of_page",
|
1282
|
+
"preview_path": "/lookbook/preview/primer/alpha/overlay/middle_of_page",
|
1283
|
+
"name": "middle_of_page"
|
1284
|
+
}
|
1285
|
+
]
|
1286
|
+
},
|
1266
1287
|
{
|
1267
1288
|
"name": "popover",
|
1268
1289
|
"lookup_path": "primer/beta/popover",
|
data/static/statuses.json
CHANGED
@@ -31,6 +31,10 @@
|
|
31
31
|
"Primer::Alpha::NavList::Item": "alpha",
|
32
32
|
"Primer::Alpha::NavList::Section": "alpha",
|
33
33
|
"Primer::Alpha::OcticonSymbols": "alpha",
|
34
|
+
"Primer::Alpha::Overlay": "alpha",
|
35
|
+
"Primer::Alpha::Overlay::Body": "alpha",
|
36
|
+
"Primer::Alpha::Overlay::Footer": "alpha",
|
37
|
+
"Primer::Alpha::Overlay::Header": "alpha",
|
34
38
|
"Primer::Alpha::RadioButton": "alpha",
|
35
39
|
"Primer::Alpha::RadioButtonGroup": "alpha",
|
36
40
|
"Primer::Alpha::SegmentedControl": "alpha",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: primer_view_components
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GitHub Open Source
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: actionview
|
@@ -487,6 +487,16 @@ files:
|
|
487
487
|
- app/components/primer/alpha/nav_list/section.rb
|
488
488
|
- app/components/primer/alpha/octicon_symbols.html.erb
|
489
489
|
- app/components/primer/alpha/octicon_symbols.rb
|
490
|
+
- app/components/primer/alpha/overlay.css
|
491
|
+
- app/components/primer/alpha/overlay.css.json
|
492
|
+
- app/components/primer/alpha/overlay.css.map
|
493
|
+
- app/components/primer/alpha/overlay.html.erb
|
494
|
+
- app/components/primer/alpha/overlay.pcss
|
495
|
+
- app/components/primer/alpha/overlay.rb
|
496
|
+
- app/components/primer/alpha/overlay/body.rb
|
497
|
+
- app/components/primer/alpha/overlay/footer.rb
|
498
|
+
- app/components/primer/alpha/overlay/header.html.erb
|
499
|
+
- app/components/primer/alpha/overlay/header.rb
|
490
500
|
- app/components/primer/alpha/radio_button.rb
|
491
501
|
- app/components/primer/alpha/radio_button_group.rb
|
492
502
|
- app/components/primer/alpha/segmented_control.css
|
@@ -544,6 +554,9 @@ files:
|
|
544
554
|
- app/components/primer/alpha/x_banner.d.ts
|
545
555
|
- app/components/primer/alpha/x_banner.js
|
546
556
|
- app/components/primer/alpha/x_banner.ts
|
557
|
+
- app/components/primer/anchored_position.d.ts
|
558
|
+
- app/components/primer/anchored_position.js
|
559
|
+
- app/components/primer/anchored_position.ts
|
547
560
|
- app/components/primer/base_component.rb
|
548
561
|
- app/components/primer/beta/auto_complete.rb
|
549
562
|
- app/components/primer/beta/auto_complete/auto_complete.d.ts
|
@@ -852,6 +865,7 @@ files:
|
|
852
865
|
- lib/primer/view_components/linters/close_button_component_migration_counter.rb
|
853
866
|
- lib/primer/view_components/linters/deprecated_components_counter.rb
|
854
867
|
- lib/primer/view_components/linters/disallow_action_list.rb
|
868
|
+
- lib/primer/view_components/linters/disallow_component_css_counter.rb
|
855
869
|
- lib/primer/view_components/linters/flash_migration_counter.rb
|
856
870
|
- lib/primer/view_components/linters/helpers/deprecated_components_helpers.rb
|
857
871
|
- lib/primer/view_components/linters/helpers/rubocop_helpers.rb
|
@@ -936,6 +950,8 @@ files:
|
|
936
950
|
- previews/primer/alpha/multi_input_preview.rb
|
937
951
|
- previews/primer/alpha/multi_input_preview/playground.html.erb
|
938
952
|
- previews/primer/alpha/nav_list_preview.rb
|
953
|
+
- previews/primer/alpha/overlay_preview.rb
|
954
|
+
- previews/primer/alpha/overlay_preview/middle_of_page.html.erb
|
939
955
|
- previews/primer/alpha/radio_button_group_preview.rb
|
940
956
|
- previews/primer/alpha/radio_button_preview.rb
|
941
957
|
- previews/primer/alpha/segmented_control_preview.rb
|
@@ -1021,6 +1037,7 @@ files:
|
|
1021
1037
|
- static/arguments.json
|
1022
1038
|
- static/assets/view-components.svg
|
1023
1039
|
- static/audited_at.json
|
1040
|
+
- static/classes.json
|
1024
1041
|
- static/constants.json
|
1025
1042
|
- static/previews.json
|
1026
1043
|
- static/statuses.json
|