primer_view_components 0.0.24 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2d303c670170b949f527384987b3a08d968a4ecfe53b4f1ac508d3f1d423424f
|
4
|
+
data.tar.gz: 3c00f64dcaaaf2b0cc85e892fed1e22633020c68ce95b4049c1d33303fa21001
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2fef39b6fa55cc0c8092f0e616c498bea4db90ad186ba4fec4ed74dd39ba953af20a765410b51020aa2172c8c90d8dc83b646e39d9c693917d0db8e9e5623ed
|
7
|
+
data.tar.gz: 8ec90b74e4f1bc7c357bfeae55d954632848ae1d150ef91e00703e460d48f6ea726984d4b7d1af27e6907363dd4d027fd76a75ccdb1c20928e7f7f9023956eb1
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,17 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
3
|
## main
|
4
|
-
|
4
|
+
|
5
|
+
## 0.0.25
|
6
|
+
|
7
|
+
* Promote `SubheadComponent` to beta.
|
8
|
+
|
9
|
+
*Simon Taranto*
|
10
|
+
|
11
|
+
* Add deprecated `orange` and `purple` schemes to `LabelComponent`.
|
12
|
+
|
13
|
+
*Manuel Puyol*
|
14
|
+
|
5
15
|
## 0.0.24
|
6
16
|
|
7
17
|
* Fix zeitwerk autoload integration.
|
@@ -10,7 +20,7 @@
|
|
10
20
|
|
11
21
|
* **Breaking change**: Upgrade `ProgressBarComponent` to use Slots V2.
|
12
22
|
|
13
|
-
|
23
|
+
*Simon Taranto*
|
14
24
|
|
15
25
|
* **Breaking change**: Upgrade `BreadcrumbComponent` to use Slots V2.
|
16
26
|
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Primer
|
4
4
|
# All Primer ViewComponents accept a standard set of options called system arguments, mimicking the [styled-system API](https://styled-system.com/table) used by [Primer React](https://primer.style/components/system-props).
|
5
5
|
#
|
6
|
-
# Under the hood, system arguments are [mapped](https://github.com/primer/view_components/blob/main/lib/primer/classify.rb) to Primer CSS classes, with any remaining options passed to Rails' [`content_tag`](https://api.rubyonrails.org/classes/ActionView/Helpers/TagHelper.html#method-i-content_tag).
|
6
|
+
# Under the hood, system arguments are [mapped](https://github.com/primer/view_components/blob/main/app/lib/primer/classify.rb) to Primer CSS classes, with any remaining options passed to Rails' [`content_tag`](https://api.rubyonrails.org/classes/ActionView/Helpers/TagHelper.html#method-i-content_tag).
|
7
7
|
#
|
8
8
|
# ## Responsive values
|
9
9
|
#
|
@@ -9,9 +9,11 @@ module Primer
|
|
9
9
|
info: "Label--info",
|
10
10
|
success: "Label--success",
|
11
11
|
warning: "Label--warning",
|
12
|
-
danger: "Label--danger"
|
12
|
+
danger: "Label--danger",
|
13
|
+
# deprecated
|
14
|
+
orange: "Label--orange",
|
15
|
+
purple: "Label--purple"
|
13
16
|
}.freeze
|
14
|
-
|
15
17
|
SCHEME_OPTIONS = SCHEME_MAPPINGS.keys << nil
|
16
18
|
|
17
19
|
VARIANT_MAPPINGS = {
|
@@ -33,6 +35,10 @@ module Primer
|
|
33
35
|
# <%= render(Primer::LabelComponent.new(title: "Label: Label")) { "Default" } %>
|
34
36
|
# <%= render(Primer::LabelComponent.new(title: "Label: Label", variant: :large)) { "Large" } %>
|
35
37
|
#
|
38
|
+
# @example Deprecated schemes
|
39
|
+
# <%= render(Primer::LabelComponent.new(title: "Label: Label", scheme: :orange)) { "Orange" } %>
|
40
|
+
# <%= render(Primer::LabelComponent.new(title: "Label: Label", scheme: :purple)) { "Purple" } %>
|
41
|
+
#
|
36
42
|
# @param title [String] `title` attribute for the component element.
|
37
43
|
# @param scheme [Symbol] <%= one_of(Primer::LabelComponent::SCHEME_MAPPINGS.keys) %>
|
38
44
|
# @param variant [Symbol] <%= one_of(Primer::LabelComponent::VARIANT_OPTIONS) %>
|
data/static/statuses.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"Primer::AvatarComponent":"beta","Primer::AvatarStackComponent":"alpha","Primer::BaseComponent":"alpha","Primer::BlankslateComponent":"alpha","Primer::BorderBoxComponent":"beta","Primer::BoxComponent":"stable","Primer::BreadcrumbComponent":"alpha","Primer::BreadcrumbComponent::ItemComponent":"alpha","Primer::ButtonComponent":"alpha","Primer::ButtonGroupComponent":"alpha","Primer::ButtonMarketingComponent":"alpha","Primer::CounterComponent":"beta","Primer::DetailsComponent":"alpha","Primer::Dropdown::MenuComponent":"alpha","Primer::DropdownComponent":"alpha","Primer::DropdownMenuComponent":"deprecated","Primer::FlashComponent":"beta","Primer::FlexComponent":"alpha","Primer::FlexItemComponent":"alpha","Primer::HeadingComponent":"alpha","Primer::LabelComponent":"beta","Primer::LayoutComponent":"alpha","Primer::LinkComponent":"beta","Primer::MarkdownComponent":"alpha","Primer::MenuComponent":"alpha","Primer::OcticonComponent":"beta","Primer::PopoverComponent":"alpha","Primer::ProgressBarComponent":"alpha","Primer::SpinnerComponent":"beta","Primer::StateComponent":"beta","Primer::SubheadComponent":"
|
1
|
+
{"Primer::AvatarComponent":"beta","Primer::AvatarStackComponent":"alpha","Primer::BaseComponent":"alpha","Primer::BlankslateComponent":"alpha","Primer::BorderBoxComponent":"beta","Primer::BoxComponent":"stable","Primer::BreadcrumbComponent":"alpha","Primer::BreadcrumbComponent::ItemComponent":"alpha","Primer::ButtonComponent":"alpha","Primer::ButtonGroupComponent":"alpha","Primer::ButtonMarketingComponent":"alpha","Primer::CounterComponent":"beta","Primer::DetailsComponent":"alpha","Primer::Dropdown::MenuComponent":"alpha","Primer::DropdownComponent":"alpha","Primer::DropdownMenuComponent":"deprecated","Primer::FlashComponent":"beta","Primer::FlexComponent":"alpha","Primer::FlexItemComponent":"alpha","Primer::HeadingComponent":"alpha","Primer::LabelComponent":"beta","Primer::LayoutComponent":"alpha","Primer::LinkComponent":"beta","Primer::MarkdownComponent":"alpha","Primer::MenuComponent":"alpha","Primer::OcticonComponent":"beta","Primer::PopoverComponent":"alpha","Primer::ProgressBarComponent":"alpha","Primer::SpinnerComponent":"beta","Primer::StateComponent":"beta","Primer::SubheadComponent":"beta","Primer::TabContainerComponent":"alpha","Primer::TabNavComponent":"alpha","Primer::TabNavComponent::TabComponent":"alpha","Primer::TextComponent":"alpha","Primer::TimelineItemComponent":"alpha","Primer::TimelineItemComponent::BadgeComponent":"alpha","Primer::TooltipComponent":"alpha","Primer::TruncateComponent":"alpha","Primer::UnderlineNavComponent":"alpha"}
|