primer_view_components 0.0.108 → 0.0.110

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +38 -0
  3. data/app/assets/javascripts/primer_view_components.js +1 -1
  4. data/app/assets/javascripts/primer_view_components.js.map +1 -1
  5. data/app/assets/styles/primer_view_components.css +1 -1
  6. data/app/assets/styles/primer_view_components.css.map +1 -1
  7. data/app/components/primer/alpha/action_list.css.json +1 -1
  8. data/app/components/primer/{beta → alpha}/banner.css +0 -0
  9. data/app/components/primer/alpha/banner.css.json +1 -0
  10. data/app/components/primer/{beta → alpha}/banner.css.map +1 -1
  11. data/app/components/primer/{beta → alpha}/banner.html.erb +2 -2
  12. data/app/components/primer/{beta → alpha}/banner.pcss +1 -0
  13. data/app/components/primer/{beta → alpha}/banner.rb +14 -15
  14. data/app/components/primer/alpha/dialog.rb +0 -1
  15. data/app/components/primer/alpha/segmented_control/item.rb +1 -1
  16. data/app/components/primer/alpha/segmented_control.css.json +1 -1
  17. data/app/components/primer/alpha/segmented_control.css.map +1 -1
  18. data/app/components/primer/alpha/segmented_control.pcss +1 -0
  19. data/app/components/primer/alpha/toggle_switch.css +1 -0
  20. data/app/components/primer/alpha/toggle_switch.css.json +1 -0
  21. data/app/components/primer/alpha/toggle_switch.css.map +1 -0
  22. data/app/components/primer/alpha/toggle_switch.pcss +244 -0
  23. data/app/components/primer/{beta → alpha}/x_banner.d.ts +1 -3
  24. data/app/components/primer/{beta → alpha}/x_banner.js +2 -4
  25. data/app/components/primer/{beta → alpha}/x_banner.ts +2 -3
  26. data/app/components/primer/beta/blankslate.css +1 -0
  27. data/app/components/primer/beta/blankslate.css.json +1 -0
  28. data/app/components/primer/beta/blankslate.css.map +1 -0
  29. data/app/components/primer/beta/blankslate.pcss +90 -0
  30. data/app/components/primer/beta/breadcrumbs.css +1 -0
  31. data/app/components/primer/beta/breadcrumbs.css.json +1 -0
  32. data/app/components/primer/beta/breadcrumbs.css.map +1 -0
  33. data/app/components/primer/beta/breadcrumbs.pcss +30 -0
  34. data/app/components/primer/beta/button.css.json +1 -1
  35. data/app/components/primer/beta/button.css.map +1 -1
  36. data/app/components/primer/beta/button.pcss +0 -4
  37. data/app/components/primer/beta/counter.css +1 -0
  38. data/app/components/primer/beta/counter.css.json +1 -0
  39. data/app/components/primer/beta/counter.css.map +1 -0
  40. data/app/components/primer/beta/counter.pcss +35 -0
  41. data/app/components/primer/beta/label.css +1 -0
  42. data/app/components/primer/beta/label.css.json +1 -0
  43. data/app/components/primer/beta/label.css.map +1 -0
  44. data/app/components/primer/beta/label.pcss +103 -0
  45. data/app/components/primer/beta/progress_bar.css +1 -0
  46. data/app/components/primer/beta/progress_bar.css.json +1 -0
  47. data/app/components/primer/beta/progress_bar.css.map +1 -0
  48. data/app/components/primer/{progress_bar_component.html.erb → beta/progress_bar.html.erb} +0 -0
  49. data/app/components/primer/beta/progress_bar.pcss +26 -0
  50. data/app/components/primer/beta/progress_bar.rb +72 -0
  51. data/app/components/primer/beta/truncate.css +1 -0
  52. data/app/components/primer/beta/truncate.css.json +1 -0
  53. data/app/components/primer/beta/truncate.css.map +1 -0
  54. data/app/components/primer/beta/truncate.pcss +31 -0
  55. data/app/components/primer/primer.d.ts +1 -1
  56. data/app/components/primer/primer.js +1 -1
  57. data/app/components/primer/primer.pcss +12 -2
  58. data/app/components/primer/primer.ts +1 -1
  59. data/app/components/primer/progress_bar_component.rb +2 -65
  60. data/app/components/primer/state_component.css +1 -0
  61. data/app/components/primer/state_component.css.json +1 -0
  62. data/app/components/primer/state_component.css.map +1 -0
  63. data/app/components/primer/state_component.pcss +50 -0
  64. data/app/components/primer/subhead_component.css +1 -0
  65. data/app/components/primer/subhead_component.css.json +1 -0
  66. data/app/components/primer/subhead_component.css.map +1 -0
  67. data/app/components/primer/subhead_component.pcss +49 -0
  68. data/app/components/primer/truncate.css +1 -0
  69. data/app/components/primer/truncate.css.json +1 -0
  70. data/app/components/primer/truncate.css.map +1 -0
  71. data/app/components/primer/truncate.pcss +30 -0
  72. data/app/forms/name_with_question_mark_form/enabled_caption.html.erb +1 -0
  73. data/app/forms/name_with_question_mark_form.rb +11 -0
  74. data/app/lib/primer/css/layout.css +1918 -0
  75. data/app/lib/primer/css/layout.css.json +1 -0
  76. data/app/lib/primer/css/utilities.css +7304 -0
  77. data/app/lib/primer/css/utilities.css.json +1 -0
  78. data/lib/primer/classify/utilities.rb +1 -1
  79. data/lib/primer/deprecations.rb +2 -1
  80. data/lib/primer/forms/base.rb +7 -3
  81. data/lib/primer/view_components/version.rb +1 -1
  82. data/lib/tasks/docs.rake +3 -3
  83. data/lib/tasks/test.rake +8 -0
  84. data/lib/tasks/utilities.rake +3 -18
  85. data/previews/primer/alpha/banner_preview/with_action_button.html.erb +4 -0
  86. data/previews/primer/{beta → alpha}/banner_preview/with_action_content.html.erb +1 -1
  87. data/previews/primer/alpha/banner_preview.rb +97 -0
  88. data/previews/primer/alpha/segmented_control_preview.rb +106 -20
  89. data/previews/primer/beta/counter_preview.rb +55 -8
  90. data/previews/primer/beta/progress_bar_preview.rb +60 -0
  91. data/previews/primer/forms/forms_preview/name_with_question_mark_form.html.erb +3 -0
  92. data/previews/primer/forms/forms_preview.rb +2 -0
  93. data/static/arguments.json +76 -76
  94. data/static/audited_at.json +2 -1
  95. data/static/constants.json +34 -26
  96. data/static/statuses.json +3 -2
  97. metadata +64 -16
  98. data/app/components/primer/beta/banner.css.json +0 -1
  99. data/previews/primer/beta/banner_preview/with_action_button.html.erb +0 -4
  100. data/previews/primer/beta/banner_preview.rb +0 -54
  101. data/previews/primer/progress_bar_component_preview.rb +0 -28
@@ -0,0 +1 @@
1
+ {"name":"layout","selectors":[".AppFrame .AppFrame-a11yNav",".AppFrame .AppFrame-a11yNav:not(:focus-within)",".AppFrame .AppFrame-a11yNav:focus-within",".AppFrame .AppFrame-a11yLink",".AppFrame .AppFrame-a11yLink:not(:focus)",".AppFrame .AppFrame-a11yLink:focus",".AppFrame .AppFrame-a11yLink:focus::after","0%","50%","55%","100%",".AppFrame .AppFrame-main",".AppFrame .AppFrame-header-wrapper",".AppFrame .AppFrame-header-wrapper .AppFrame-header",".AppFrame .AppFrame-header",".AppFrame .AppFrame-subheader",".AppFrame .AppFrame-body",".AppFrame .AppFrame-footer",".container-sm",".container-md",".container-lg",".container-xl",".col-1",".col-2",".col-3",".col-4",".col-5",".col-6",".col-7",".col-8",".col-9",".col-10",".col-11",".col-12",".col-sm-1",".col-sm-2",".col-sm-3",".col-sm-4",".col-sm-5",".col-sm-6",".col-sm-7",".col-sm-8",".col-sm-9",".col-sm-10",".col-sm-11",".col-sm-12",".col-md-1",".col-md-2",".col-md-3",".col-md-4",".col-md-5",".col-md-6",".col-md-7",".col-md-8",".col-md-9",".col-md-10",".col-md-11",".col-md-12",".col-lg-1",".col-lg-2",".col-lg-3",".col-lg-4",".col-lg-5",".col-lg-6",".col-lg-7",".col-lg-8",".col-lg-9",".col-lg-10",".col-lg-11",".col-lg-12",".col-xl-1",".col-xl-2",".col-xl-3",".col-xl-4",".col-xl-5",".col-xl-6",".col-xl-7",".col-xl-8",".col-xl-9",".col-xl-10",".col-xl-11",".col-xl-12",".gutter",".gutter>[class*=col-]",".gutter-condensed",".gutter-condensed>[class*=col-]",".gutter-spacious",".gutter-spacious>[class*=col-]",".gutter-sm",".gutter-sm>[class*=col-]",".gutter-sm-condensed",".gutter-sm-condensed>[class*=col-]",".gutter-sm-spacious",".gutter-sm-spacious>[class*=col-]",".gutter-md",".gutter-md>[class*=col-]",".gutter-md-condensed",".gutter-md-condensed>[class*=col-]",".gutter-md-spacious",".gutter-md-spacious>[class*=col-]",".gutter-lg",".gutter-lg>[class*=col-]",".gutter-lg-condensed",".gutter-lg-condensed>[class*=col-]",".gutter-lg-spacious",".gutter-lg-spacious>[class*=col-]",".gutter-xl",".gutter-xl>[class*=col-]",".gutter-xl-condensed",".gutter-xl-condensed>[class*=col-]",".gutter-xl-spacious",".gutter-xl-spacious>[class*=col-]",".offset-1",".offset-2",".offset-3",".offset-4",".offset-5",".offset-6",".offset-7",".offset-8",".offset-9",".offset-10",".offset-11",".offset-sm-1",".offset-sm-2",".offset-sm-3",".offset-sm-4",".offset-sm-5",".offset-sm-6",".offset-sm-7",".offset-sm-8",".offset-sm-9",".offset-sm-10",".offset-sm-11",".offset-md-1",".offset-md-2",".offset-md-3",".offset-md-4",".offset-md-5",".offset-md-6",".offset-md-7",".offset-md-8",".offset-md-9",".offset-md-10",".offset-md-11",".offset-lg-1",".offset-lg-2",".offset-lg-3",".offset-lg-4",".offset-lg-5",".offset-lg-6",".offset-lg-7",".offset-lg-8",".offset-lg-9",".offset-lg-10",".offset-lg-11",".offset-xl-1",".offset-xl-2",".offset-xl-3",".offset-xl-4",".offset-xl-5",".offset-xl-6",".offset-xl-7",".offset-xl-8",".offset-xl-9",".offset-xl-10",".offset-xl-11",".Layout",".Layout .Layout-sidebar",".Layout .Layout-divider",".Layout .Layout-main",".Layout.Layout--sidebarPosition-flowRow-start .Layout-sidebar",".Layout.Layout--sidebarPosition-flowRow-start .Layout-main",".Layout.Layout--sidebarPosition-flowRow-end .Layout-sidebar",".Layout.Layout--sidebarPosition-flowRow-end .Layout-main",".Layout.Layout--sidebarPosition-flowRow-none .Layout-sidebar",".Layout.Layout--divided",".Layout.Layout--divided .Layout-divider",".Layout.Layout--divided .Layout-divider.Layout-divider--flowRow-hidden",".Layout.Layout--divided .Layout-divider.Layout-divider--flowRow-shallow",".Layout.Layout--divided .Layout-main",".Layout.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar",".Layout.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main",".Layout.Layout--flowRow-until-md",".Layout.Layout--flowRow-until-md .Layout-sidebar",".Layout.Layout--flowRow-until-md .Layout-divider",".Layout.Layout--flowRow-until-md .Layout-main",".Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-start .Layout-sidebar",".Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-start .Layout-main",".Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-end .Layout-sidebar",".Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-end .Layout-main",".Layout.Layout--flowRow-until-md.Layout--sidebarPosition-flowRow-none .Layout-sidebar",".Layout.Layout--flowRow-until-md.Layout--divided",".Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider",".Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider.Layout-divider--flowRow-hidden",".Layout.Layout--flowRow-until-md.Layout--divided .Layout-divider.Layout-divider--flowRow-shallow",".Layout.Layout--flowRow-until-md.Layout--divided .Layout-main",".Layout.Layout--flowRow-until-md.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar",".Layout.Layout--flowRow-until-md.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main",".Layout.Layout--flowRow-until-lg",".Layout.Layout--flowRow-until-lg .Layout-sidebar",".Layout.Layout--flowRow-until-lg .Layout-divider",".Layout.Layout--flowRow-until-lg .Layout-main",".Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-start .Layout-sidebar",".Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-start .Layout-main",".Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-end .Layout-sidebar",".Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-end .Layout-main",".Layout.Layout--flowRow-until-lg.Layout--sidebarPosition-flowRow-none .Layout-sidebar",".Layout.Layout--flowRow-until-lg.Layout--divided",".Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider",".Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider.Layout-divider--flowRow-hidden",".Layout.Layout--flowRow-until-lg.Layout--divided .Layout-divider.Layout-divider--flowRow-shallow",".Layout.Layout--flowRow-until-lg.Layout--divided .Layout-main",".Layout.Layout--flowRow-until-lg.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-sidebar",".Layout.Layout--flowRow-until-lg.Layout--divided.Layout--sidebarPosition-flowRow-end .Layout-main",".Layout.Layout--gutter-none",".Layout.Layout--gutter-condensed",".Layout.Layout--gutter-spacious",".Layout.Layout--sidebar-narrow",".Layout.Layout--sidebar-wide",".Layout.Layout--sidebarPosition-start .Layout-sidebar",".Layout.Layout--sidebarPosition-start .Layout-main",".Layout.Layout--sidebarPosition-end",".Layout.Layout--sidebarPosition-end .Layout-main",".Layout.Layout--sidebarPosition-end .Layout-sidebar",".Layout.Layout--divided.Layout--sidebarPosition-end .Layout-sidebar",".Layout.Layout--divided.Layout--sidebarPosition-end .Layout-main",".Layout-divider",".Layout-sidebar",".Layout-main",".Layout-main .Layout-main-centered-md",".Layout-main .Layout-main-centered-lg",".Layout-main .Layout-main-centered-xl",".Layout-main .Layout-main-centered-md>.container-md",".Layout-main .Layout-main-centered-md>.container-lg",".Layout-main .Layout-main-centered-md>.container-xl",".Layout-main .Layout-main-centered-lg>.container-md",".Layout-main .Layout-main-centered-lg>.container-lg",".Layout-main .Layout-main-centered-lg>.container-xl",".Layout-main .Layout-main-centered-xl>.container-md",".Layout-main .Layout-main-centered-xl>.container-lg",".Layout-main .Layout-main-centered-xl>.container-xl",":root",".PageLayout",".PageLayout.PageLayout--panePos-start",".PageLayout.PageLayout--panePos-end",".PageLayout .PageLayout-header--hasDivider",".PageLayout .PageLayout-footer--hasDivider",".PageLayout.PageLayout--hasPaneDivider.PageLayout--panePos-start .PageLayout-pane",".PageLayout.PageLayout--hasPaneDivider.PageLayout--panePos-start:not(.PageLayout--columnGap-none) .PageLayout-pane",".PageLayout.PageLayout--hasPaneDivider.PageLayout--panePos-start:not(.PageLayout--columnGap-none) .PageLayout-content",".PageLayout.PageLayout--hasPaneDivider.PageLayout--panePos-end .PageLayout-pane",".PageLayout.PageLayout--hasPaneDivider.PageLayout--panePos-end:not(.PageLayout--columnGap-none) .PageLayout-pane",".PageLayout.PageLayout--hasPaneDivider.PageLayout--panePos-end:not(.PageLayout--columnGap-none) .PageLayout-content",".PageLayout .PageLayout-pane--sticky",".PageLayout [class^=PageLayout-content-centered-]",".PageLayout.PageLayout--hasPaneDivider [class^=PageLayout-content-centered-]",".PageLayout.PageLayout--panePos-start [class^=PageLayout-content-centered-]>[class^=container-]",".PageLayout.PageLayout--panePos-end [class^=PageLayout-content-centered-]>[class^=container-]",".PageLayout .PageLayout-content-centered-sm",".PageLayout .PageLayout-content-centered-md",".PageLayout .PageLayout-content-centered-lg",".PageLayout .PageLayout-content-centered-xl",".PageLayout.PageLayout--paneWidth-narrow",".PageLayout.PageLayout--paneWidth-wide",".PageLayout.PageLayout--responsive-stackRegions",".PageLayout.PageLayout--responsive-stackRegions.PageLayout--responsive-panePos-start",".PageLayout.PageLayout--responsive-separateRegions",".PageLayout.PageLayout--responsive-separateRegions.PageLayout--responsive-primary-content",".PageLayout.PageLayout--responsive-separateRegions.PageLayout--responsive-primary-content .PageLayout-pane",".PageLayout.PageLayout--responsive-separateRegions.PageLayout--responsive-primary-pane",".PageLayout.PageLayout--responsive-separateRegions.PageLayout--responsive-primary-pane .PageLayout-content",".PageLayout .PageLayout-region--dividerNarrow-line-before",".PageLayout .PageLayout-region--dividerNarrow-line-before::before",".PageLayout .PageLayout-region--dividerNarrow-line-after",".PageLayout .PageLayout-region--dividerNarrow-line-after::after",".PageLayout .PageLayout-region--dividerNarrow-filled-before",".PageLayout .PageLayout-region--dividerNarrow-filled-before::after",".PageLayout .PageLayout-region--dividerNarrow-filled-after",".PageLayout .PageLayout-region--dividerNarrow-filled-after::before",".PageLayout-wrapper",".PageLayout-columns",".PageLayout-columns .PageLayout-content",".PageLayout-columns .PageLayout-pane",".PageLayout--outerSpacing-normal",".PageLayout--outerSpacing-condensed",".PageLayout--innerSpacing-normal",".PageLayout--innerSpacing-condensed",".PageLayout--columnGap-normal",".PageLayout--columnGap-condensed",".PageLayout--columnGap-none",".PageLayout--rowGap-normal",".PageLayout--rowGap-none",".PageLayout--rowGap-condensed",".PageLayout-header",".PageLayout-content",".PageLayout-pane",".PageLayout-footer",".Stack",".Stack-divider",".Stack-item",".Stack--dir-inline-whenNarrow",".Stack--dir-block-whenNarrow",".Stack--gap-none-whenNarrow",".Stack--gap-condensed-whenNarrow",".Stack--gap-normal-whenNarrow",".Stack--align-start-whenNarrow",".Stack--align-center-whenNarrow",".Stack--align-end-whenNarrow",".Stack--align-baseline-whenNarrow",".Stack--alignWrap-start-whenNarrow",".Stack--alignWrap-center-whenNarrow",".Stack--alignWrap-end-whenNarrow",".Stack--alignWrap-distribute-whenNarrow",".Stack--alignWrap-distributeEvenly-whenNarrow",".Stack--spread-start-whenNarrow",".Stack--spread-center-whenNarrow",".Stack--spread-end-whenNarrow",".Stack--spread-distribute-whenNarrow",".Stack--spread-distributeEvenly-whenNarrow",".Stack--wrap-whenNarrow",".Stack--nowrap-whenNarrow",".Stack--showDividers-whenNarrow>.Stack-divider",".Stack--showDividers-whenNarrow>.Stack-item>.Stack-divider",":not(.Stack--dir-inline-whenNarrow)>.Stack-divider",":not(.Stack--dir-inline-whenNarrow)>.Stack-item>.Stack-divider",".Stack--dir-inline-whenNarrow>.Stack-divider",".Stack--dir-inline-whenNarrow>.Stack-item>.Stack-divider",".Stack-item--expand-whenNarrow",".Stack-item--keepSize-whenNarrow",".Stack--dir-inline-whenRegular",".Stack--dir-block-whenRegular",".Stack--gap-none-whenRegular",".Stack--gap-condensed-whenRegular",".Stack--gap-normal-whenRegular",".Stack--gap-spacious-whenRegular",".Stack--align-start-whenRegular",".Stack--align-center-whenRegular",".Stack--align-end-whenRegular",".Stack--align-baseline-whenRegular",".Stack--alignWrap-start-whenRegular",".Stack--alignWrap-center-whenRegular",".Stack--alignWrap-end-whenRegular",".Stack--alignWrap-distribute-whenRegular",".Stack--alignWrap-distributeEvenly-whenRegular",".Stack--spread-start-whenRegular",".Stack--spread-center-whenRegular",".Stack--spread-end-whenRegular",".Stack--spread-distribute-whenRegular",".Stack--spread-distributeEvenly-whenRegular",".Stack--wrap-whenRegular",".Stack--nowrap-whenRegular",".Stack--showDividers-whenRegular>.Stack-divider",".Stack--showDividers-whenRegular>.Stack-item>.Stack-divider",":not(.Stack--dir-inline-whenRegular)>.Stack-divider",":not(.Stack--dir-inline-whenRegular)>.Stack-item>.Stack-divider",".Stack--dir-inline-whenRegular>.Stack-divider",".Stack--dir-inline-whenRegular>.Stack-item>.Stack-divider",".Stack-item--expand-whenRegular",".Stack-item--keepSize-whenRegular",".Stack--dir-inline-whenWide",".Stack--dir-block-whenWide",".Stack--gap-none-whenWide",".Stack--gap-condensed-whenWide",".Stack--gap-normal-whenWide",".Stack--gap-spacious-whenWide",".Stack--align-start-whenWide",".Stack--align-center-whenWide",".Stack--align-end-whenWide",".Stack--align-baseline-whenWide",".Stack--alignWrap-start-whenWide",".Stack--alignWrap-center-whenWide",".Stack--alignWrap-end-whenWide",".Stack--alignWrap-distribute-whenWide",".Stack--alignWrap-distributeEvenly-whenWide",".Stack--spread-start-whenWide",".Stack--spread-center-whenWide",".Stack--spread-end-whenWide",".Stack--spread-distribute-whenWide",".Stack--spread-distributeEvenly-whenWide",".Stack--wrap-whenWide",".Stack--nowrap-whenWide",".Stack--showDividers-whenWide>.Stack-divider",".Stack--showDividers-whenWide>.Stack-item>.Stack-divider",":not(.Stack--dir-inline-whenWide)>.Stack-divider",":not(.Stack--dir-inline-whenWide)>.Stack-item>.Stack-divider",".Stack--dir-inline-whenWide>.Stack-divider",".Stack--dir-inline-whenWide>.Stack-item>.Stack-divider",".Stack-item--expand-whenWide",".Stack-item--keepSize-whenWide"]}