app/lib/primer/classify/cache.rb in primer_view_components-0.0.38 vs app/lib/primer/classify/cache.rb in primer_view_components-0.0.39
- old
+ new
@@ -38,37 +38,37 @@
keys: Primer::Classify::Spacing::RESPONSIVE_MAPPINGS.keys,
values: Primer::Classify::Spacing::RESPONSIVE_OPTIONS
)
preload(
- keys: Primer::Classify::DIRECTION_KEY,
- values: [:row, :column]
+ keys: Primer::Classify::Flex::DIRECTION_KEY,
+ values: Primer::Classify::Flex::DIRECTION_VALUES
)
preload(
- keys: Primer::Classify::JUSTIFY_CONTENT_KEY,
- values: [:flex_start, :flex_end, :center, :space_between, :space_around]
+ keys: Primer::Classify::Flex::JUSTIFY_CONTENT_KEY,
+ values: Primer::Classify::Flex::JUSTIFY_CONTENT_VALUES
)
preload(
- keys: Primer::Classify::ALIGN_ITEMS_KEY,
- values: [:flex_start, :flex_end, :center, :baseline, :stretch]
+ keys: Primer::Classify::Flex::ALIGN_ITEMS_KEY,
+ values: Primer::Classify::Flex::ALIGN_ITEMS_VALUES
)
preload(
keys: Primer::Classify::DISPLAY_KEY,
values: [:flex, :block, :inline_block, :inline_flex, :none, :table, :table_cell]
)
preload(
keys: [Primer::Classify::COLOR_KEY],
- values: [*Primer::Classify::FunctionalTextColors::OPTIONS, *Primer::Classify::FunctionalTextColors::DEPRECATED_OPTIONS]
+ values: Primer::Classify::FunctionalTextColors::OPTIONS
)
preload(
keys: [Primer::Classify::BG_KEY],
- values: [*Primer::Classify::FunctionalBackgroundColors::OPTIONS, *Primer::Classify::FunctionalBackgroundColors::DEPRECATED_OPTIONS]
+ values: Primer::Classify::FunctionalBackgroundColors::OPTIONS
)
preload(
keys: Primer::Classify::VERTICAL_ALIGN_KEY,
values: [:baseline, :top, :middle, :bottom, :text_top, :text_bottom]
@@ -88,21 +88,26 @@
keys: :font_weight,
values: [:bold, :light, :normal]
)
preload(
- keys: Primer::Classify::FLEX_KEY,
- values: [1, :auto]
+ keys: Primer::Classify::Flex::FLEX_KEY,
+ values: Primer::Classify::Flex::FLEX_VALUES
)
preload(
- keys: [Primer::Classify::FLEX_GROW_KEY, Primer::Classify::FLEX_SHRINK_KEY],
- values: [0]
+ keys: Primer::Classify::Flex::GROW_KEY,
+ values: Primer::Classify::Flex::GROW_VALUES
)
preload(
- keys: [Primer::Classify::ALIGN_SELF_KEY],
- values: [:auto, :start, :end, :center, :baseline, :stretch]
+ keys: Primer::Classify::Flex::SHRINK_KEY,
+ values: Primer::Classify::Flex::SHRINK_VALUES
+ )
+
+ preload(
+ keys: Primer::Classify::Flex::ALIGN_SELF_KEY,
+ values: Primer::Classify::Flex::ALIGN_SELF_VALUES
)
preload(
keys: [Primer::Classify::WIDTH_KEY, Primer::Classify::HEIGHT_KEY],
values: [:fit, :fill]