playbook_ui 8.0.3 → 8.1.0.pre.alpha1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -0
  3. data/app/pb_kits/playbook/_playbook.scss +10 -7
  4. data/app/pb_kits/playbook/data/menu.yml +3 -1
  5. data/app/pb_kits/playbook/index.js +3 -0
  6. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +14 -2
  7. data/app/pb_kits/playbook/pb_avatar/avatar.html.erb +1 -1
  8. data/app/pb_kits/playbook/pb_avatar/avatar.rb +5 -2
  9. data/app/pb_kits/playbook/pb_avatar/avatar.test.js +5 -2
  10. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.html.erb +5 -0
  11. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_default.jsx +5 -0
  12. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.html.erb +4 -0
  13. data/app/pb_kits/playbook/pb_avatar/docs/_avatar_status.jsx +4 -0
  14. data/app/pb_kits/playbook/pb_avatar_action_button/_avatar_action_button.jsx +6 -0
  15. data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.html.erb +2 -1
  16. data/app/pb_kits/playbook/pb_avatar_action_button/avatar_action_button.rb +2 -0
  17. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.html.erb +4 -0
  18. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_actions.jsx +4 -0
  19. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.html.erb +2 -0
  20. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_default.jsx +2 -0
  21. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_on_click.jsx +2 -0
  22. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_onclick.html.erb +2 -0
  23. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.html.erb +8 -0
  24. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_placement.jsx +8 -0
  25. data/app/pb_kits/playbook/pb_avatar_action_button/docs/_avatar_action_button_tooltip.html.erb +2 -0
  26. data/app/pb_kits/playbook/pb_avatar_action_button/pb_avatar_action_button.test.js +31 -0
  27. data/app/pb_kits/playbook/pb_badge/_badge.jsx +26 -1
  28. data/app/pb_kits/playbook/pb_button/_button.jsx +6 -0
  29. data/app/pb_kits/playbook/pb_button/button.test.js +91 -0
  30. data/app/pb_kits/playbook/pb_button/docs/_button_default.jsx +0 -1
  31. data/app/pb_kits/playbook/pb_button_toolbar/button_toolbar.test.js +46 -0
  32. data/app/pb_kits/playbook/pb_caption/_caption.jsx +3 -2
  33. data/app/pb_kits/playbook/pb_caption/caption.rb +1 -1
  34. data/app/pb_kits/playbook/pb_card/_card.jsx +18 -3
  35. data/app/pb_kits/playbook/pb_card/card.html.erb +1 -1
  36. data/app/pb_kits/playbook/pb_card/card.rb +3 -0
  37. data/app/pb_kits/playbook/pb_card/card_header.rb +7 -7
  38. data/app/pb_kits/playbook/pb_card/docs/_card_tag.html.erb +25 -0
  39. data/app/pb_kits/playbook/pb_card/docs/_card_tag.jsx +59 -0
  40. data/app/pb_kits/playbook/pb_card/docs/example.yml +2 -0
  41. data/app/pb_kits/playbook/pb_card/docs/index.js +1 -0
  42. data/app/pb_kits/playbook/pb_circle_icon_button/circle_icon_button.test.js +17 -0
  43. data/app/pb_kits/playbook/pb_collapsible/_collapsible.jsx +84 -0
  44. data/app/pb_kits/playbook/pb_collapsible/_collapsible.scss +15 -0
  45. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleContent.jsx +40 -0
  46. data/app/pb_kits/playbook/pb_collapsible/child_kits/CollapsibleMain.jsx +59 -0
  47. data/app/pb_kits/playbook/pb_collapsible/collapsible.html.erb +7 -0
  48. data/app/pb_kits/playbook/pb_collapsible/collapsible.rb +11 -0
  49. data/app/pb_kits/playbook/pb_collapsible/collapsible.test.js +50 -0
  50. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.html.erb +7 -0
  51. data/app/pb_kits/playbook/pb_collapsible/collapsible_content.rb +17 -0
  52. data/app/pb_kits/playbook/pb_collapsible/collapsible_main.html.erb +16 -0
  53. data/app/pb_kits/playbook/pb_collapsible/collapsible_main.rb +15 -0
  54. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.html.erb +10 -0
  55. data/app/pb_kits/playbook/pb_collapsible/docs/_collapsible_default.jsx +19 -0
  56. data/app/pb_kits/playbook/pb_collapsible/docs/example.yml +9 -0
  57. data/app/pb_kits/playbook/pb_collapsible/docs/index.js +1 -0
  58. data/app/pb_kits/playbook/pb_collapsible/index.js +79 -0
  59. data/app/pb_kits/playbook/pb_dashboard/commonSettings.js +2 -2
  60. data/app/pb_kits/playbook/pb_dashboard/pbChartsLightTheme.js +2 -2
  61. data/app/pb_kits/playbook/pb_date_time_stacked/_date_time_stacked.jsx +6 -2
  62. data/app/pb_kits/playbook/pb_date_time_stacked/date_time_stacked.html.erb +1 -1
  63. data/app/pb_kits/playbook/pb_dialog/_close_icon.jsx +23 -0
  64. data/app/pb_kits/playbook/pb_dialog/_dialog.html.erb +10 -0
  65. data/app/pb_kits/playbook/pb_dialog/_dialog.jsx +142 -0
  66. data/app/pb_kits/playbook/pb_dialog/_dialog.scss +133 -0
  67. data/app/pb_kits/playbook/pb_dialog/_dialog_context.jsx +3 -0
  68. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_body.jsx +21 -0
  69. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_footer.jsx +36 -0
  70. data/app/pb_kits/playbook/pb_dialog/child_kits/_dialog_header.jsx +68 -0
  71. data/app/pb_kits/playbook/pb_dialog/dialog.rb +47 -0
  72. data/app/pb_kits/playbook/pb_dialog/dialog.test.jsx +23 -0
  73. data/app/pb_kits/playbook/pb_dialog/dialog_header.rb +31 -0
  74. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.jsx +53 -0
  75. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_compound_components.md +2 -0
  76. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_default.jsx +27 -0
  77. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_scrollable.jsx +27 -0
  78. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_scrollable.md +2 -0
  79. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_separators.jsx +119 -0
  80. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_separators.md +2 -0
  81. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_should_close_on_overlay.jsx +28 -0
  82. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_should_close_on_overlay.md +2 -0
  83. data/app/pb_kits/playbook/pb_dialog/docs/_dialog_sizes.jsx +93 -0
  84. data/app/pb_kits/playbook/pb_dialog/docs/example.yml +10 -0
  85. data/app/pb_kits/playbook/pb_dialog/docs/index.js +6 -0
  86. data/app/pb_kits/playbook/pb_docs/kit_example.rb +1 -1
  87. data/app/pb_kits/playbook/pb_inline/_inline.jsx +83 -0
  88. data/app/pb_kits/playbook/pb_inline/_inline.scss +58 -0
  89. data/app/pb_kits/playbook/pb_inline/docs/_inline_default.jsx +36 -0
  90. data/app/pb_kits/playbook/pb_inline/docs/_inline_input_options.jsx +58 -0
  91. data/app/pb_kits/playbook/pb_inline/docs/_inline_text_options.jsx +99 -0
  92. data/app/pb_kits/playbook/pb_inline/docs/example.yml +5 -0
  93. data/app/pb_kits/playbook/pb_inline/docs/index.js +3 -0
  94. data/app/pb_kits/playbook/pb_inline/inline.test.jsx +21 -0
  95. data/app/pb_kits/playbook/pb_nav/_item.jsx +2 -0
  96. data/app/pb_kits/playbook/pb_nav/_nav.jsx +2 -2
  97. data/app/pb_kits/playbook/pb_nav/item.html.erb +2 -2
  98. data/app/pb_kits/playbook/pb_nav/nav.html.erb +1 -1
  99. data/app/pb_kits/playbook/pb_online_status/_online_status.jsx +2 -0
  100. data/app/pb_kits/playbook/pb_online_status/online_status.html.erb +1 -1
  101. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.jsx +1 -1
  102. data/app/pb_kits/playbook/pb_progress_simple/_progress_simple.scss +5 -0
  103. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_variants.html.erb +5 -0
  104. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_variants.jsx +7 -0
  105. data/app/pb_kits/playbook/pb_progress_simple/docs/_progress_simple_variants.md +1 -1
  106. data/app/pb_kits/playbook/pb_progress_simple/progress_simple.rb +1 -1
  107. data/app/pb_kits/playbook/pb_rich_text_editor/_rich_text_editor.jsx +4 -3
  108. data/app/pb_kits/playbook/pb_text_input/_text_input.jsx +3 -0
  109. data/app/pb_kits/playbook/pb_textarea/_textarea.jsx +3 -0
  110. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.jsx +43 -26
  111. data/app/pb_kits/playbook/pb_time_stacked/_time_stacked.scss +18 -0
  112. data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_default.html.erb +18 -5
  113. data/app/pb_kits/playbook/pb_time_stacked/docs/_time_stacked_default.jsx +10 -5
  114. data/app/pb_kits/playbook/pb_time_stacked/time_stacked.html.erb +7 -3
  115. data/app/pb_kits/playbook/pb_time_stacked/time_stacked.rb +8 -30
  116. data/app/pb_kits/playbook/pb_time_stacked/time_stacked.test.js +33 -0
  117. data/app/pb_kits/playbook/pb_tooltip/_tooltip.scss +4 -3
  118. data/app/pb_kits/playbook/pb_typeahead/_typeahead.jsx +6 -1
  119. data/app/pb_kits/playbook/pb_typeahead/components/MultiValue.jsx +25 -2
  120. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_default.jsx +1 -0
  121. data/app/pb_kits/playbook/pb_typeahead/docs/_typeahead_with_pills.jsx +7 -3
  122. data/app/pb_kits/playbook/plugins/pb_chart.js +1 -1
  123. data/app/pb_kits/playbook/react_rails_kits.js +4 -0
  124. data/app/pb_kits/playbook/tokens/_border_radius.scss +0 -10
  125. data/app/pb_kits/playbook/tokens/_colors.scss +0 -25
  126. data/app/pb_kits/playbook/tokens/_line_height.scss +0 -9
  127. data/app/pb_kits/playbook/tokens/_opacity.scss +0 -9
  128. data/app/pb_kits/playbook/tokens/_positioning.scss +0 -9
  129. data/app/pb_kits/playbook/tokens/_screen_sizes.scss +0 -9
  130. data/app/pb_kits/playbook/tokens/_shadows.scss +0 -9
  131. data/app/pb_kits/playbook/tokens/_spacing.scss +0 -10
  132. data/app/pb_kits/playbook/tokens/_typography.scss +0 -25
  133. data/app/pb_kits/playbook/tokens/exports/_border_radius.scss +10 -0
  134. data/app/pb_kits/playbook/tokens/exports/_colors.scss +26 -0
  135. data/app/pb_kits/playbook/tokens/exports/_line_height.scss +10 -0
  136. data/app/pb_kits/playbook/tokens/exports/_opacity.scss +10 -0
  137. data/app/pb_kits/playbook/tokens/exports/_positioning.scss +10 -0
  138. data/app/pb_kits/playbook/tokens/exports/_screen_sizes.scss +10 -0
  139. data/app/pb_kits/playbook/tokens/exports/_shadows.scss +10 -0
  140. data/app/pb_kits/playbook/tokens/exports/_spacing.scss +10 -0
  141. data/app/pb_kits/playbook/tokens/exports/_typography.scss +24 -0
  142. data/app/pb_kits/playbook/utilities/test-utils.js +6 -0
  143. data/app/pb_kits/playbook/vendor.js +3 -0
  144. data/dist/reset.css +1 -0
  145. data/lib/playbook/props/base.rb +1 -1
  146. data/lib/playbook/version.rb +1 -1
  147. metadata +74 -11
@@ -0,0 +1,33 @@
1
+ import { renderKit, screen } from '../utilities/test-utils'
2
+
3
+ import TimeStacked from './_time_stacked'
4
+
5
+ /*eslint no-multiple-empty-lines: 0*/
6
+
7
+ test('returns the namespaced class', () => {
8
+ const props = {
9
+ data: { testid: 'default' },
10
+ time: new Date,
11
+ }
12
+
13
+ renderKit(TimeStacked, props)
14
+ expect(screen.getByTestId('default')).toHaveClass('pb_time_stacked_kit_left')
15
+
16
+ renderKit(TimeStacked, props, {
17
+ align: 'center',
18
+ data: { testid: 'center' },
19
+ })
20
+ expect(screen.getByTestId('center')).toHaveClass('pb_time_stacked_kit_center')
21
+
22
+ renderKit(TimeStacked, props, {
23
+ align: 'right',
24
+ data: { testid: 'right' },
25
+ })
26
+ expect(screen.getByTestId('right')).toHaveClass('pb_time_stacked_kit_right')
27
+
28
+ renderKit(TimeStacked, props, {
29
+ dark: true,
30
+ data: { testid: 'dark' },
31
+ })
32
+ expect(screen.getByTestId('dark')).toHaveClass('pb_time_stacked_kit_left dark')
33
+ })
@@ -46,7 +46,7 @@ $tooltip_shadow: rgba(60, 106, 172, 0.18);
46
46
  content: " ";
47
47
  position: absolute;
48
48
  top: 100%;
49
- left: 50%;
49
+ left: calc(50% - 10px);
50
50
  border-color: $white transparent transparent transparent;
51
51
  border-style: solid;
52
52
  border-width: 10px;
@@ -95,9 +95,10 @@ $tooltip_shadow: rgba(60, 106, 172, 0.18);
95
95
  box-shadow: -8px 0 28px 0 $tooltip_shadow;
96
96
  margin: 0 0 0 $space_sm;
97
97
  .arrow {
98
- left: -#{$space_xs};
99
- top: $arrow_vertical_offset;
98
+ left: -18px;
99
+ right: auto;
100
100
  margin-bottom: 0;
101
+ top: $arrow_vertical_offset;
101
102
  transform: rotate(90deg);
102
103
  }
103
104
  &.flipped .arrow {
@@ -3,6 +3,7 @@
3
3
  import React from 'react'
4
4
  import Select from 'react-select'
5
5
  import AsyncSelect from 'react-select/async'
6
+ import CreateableSelect from 'react-select/creatable'
6
7
  import { get } from 'lodash'
7
8
  import { globalProps } from '../utilities/globalProps.js'
8
9
 
@@ -26,6 +27,7 @@ import { noop } from '../utilities/props'
26
27
 
27
28
  type Props = {
28
29
  async?: boolean,
30
+ createable?: boolean,
29
31
  dark?: boolean,
30
32
  label?: string,
31
33
  loadOptions?: noop | string,
@@ -41,6 +43,7 @@ type Props = {
41
43
 
42
44
  const Typeahead = (props: Props) => {
43
45
  const selectProps = {
46
+ badges: false,
44
47
  cacheOptions: true,
45
48
  components: {
46
49
  Control,
@@ -58,6 +61,7 @@ const Typeahead = (props: Props) => {
58
61
  isClearable: true,
59
62
  isSearchable: true,
60
63
  name,
64
+ onCreate: () => {},
61
65
  ...props,
62
66
  }
63
67
 
@@ -65,7 +69,8 @@ const Typeahead = (props: Props) => {
65
69
  if (typeof(props.getOptionLabel) === 'string') selectProps.getOptionLabel = get(window, props.getOptionLabel)
66
70
  if (typeof(props.getOptionValue) === 'string') selectProps.getOptionValue = get(window, props.getOptionValue)
67
71
 
68
- const Tag = props.async ? AsyncSelect : Select
72
+ let Tag = props.async ? AsyncSelect : Select
73
+ if (props.createable) Tag = CreateableSelect
69
74
 
70
75
  const handleOnChange = (data, { action, option, removedValue }) => {
71
76
  if (action === 'select-option') {
@@ -3,7 +3,7 @@
3
3
  import React from 'react'
4
4
  import { components } from 'react-select'
5
5
 
6
- import { FormPill } from '../../'
6
+ import { FormPill, Badge } from '../../'
7
7
 
8
8
  type Props = {
9
9
  data: object,
@@ -28,7 +28,7 @@ const MultiValue = (props: Props) => {
28
28
  className="text_input_multivalue_container"
29
29
  {...props}
30
30
  >
31
- <If condition={imageUrl}>
31
+ {/* <If condition={imageUrl}>
32
32
  <FormPill
33
33
  avatarUrl={imageUrl}
34
34
  closeProps={removeProps}
@@ -41,6 +41,29 @@ const MultiValue = (props: Props) => {
41
41
  marginRight="xs"
42
42
  text={label}
43
43
  />
44
+ </If> */}
45
+ <If condition={props.selectProps.badges}>
46
+ <Badge
47
+ closeProps={removeProps}
48
+ removeIcon
49
+ text={label}
50
+ variant="primary"
51
+ />
52
+ <Else />
53
+ <If condition={imageUrl}>
54
+ <FormPill
55
+ avatarUrl={imageUrl}
56
+ closeProps={removeProps}
57
+ marginRight="xs"
58
+ name={label}
59
+ />
60
+ <Else />
61
+ <FormPill
62
+ closeProps={removeProps}
63
+ marginRight="xs"
64
+ text={label}
65
+ />
66
+ </If>
44
67
  </If>
45
68
  </components.MultiValueContainer>
46
69
  )
@@ -13,6 +13,7 @@ const options = [
13
13
  const TypeaheadDefault = (props) => {
14
14
  return (
15
15
  <Typeahead
16
+ // badges
16
17
  label="Colors"
17
18
  options={options}
18
19
  {...props}
@@ -1,9 +1,9 @@
1
1
  /* @flow */
2
2
 
3
- import React from 'react'
3
+ import React, { useState } from 'react'
4
4
  import { Typeahead } from '../..'
5
5
 
6
- const options = [
6
+ const initOptions = [
7
7
  { label: 'Windows', value: '#FFA500' },
8
8
  { label: 'Siding', value: '#FF0000' },
9
9
  { label: 'Doors', value: '#00FF00' },
@@ -11,12 +11,16 @@ const options = [
11
11
  ]
12
12
 
13
13
  const TypeaheadWithPills = (props) => {
14
+ const [values, setValues] = useState([])
14
15
  return (
15
16
  <>
16
17
  <Typeahead
18
+ badges
19
+ createable
17
20
  isMulti
18
21
  label="Colors"
19
- options={options}
22
+ onChange={(value) => console.log(value)}
23
+ options={initOptions}
20
24
  placeholder=""
21
25
  {...props}
22
26
  />
@@ -1,7 +1,7 @@
1
1
  import Highcharts from 'highcharts'
2
2
 
3
3
  import { highchartsTheme } from '../pb_dashboard/pbChartsLightTheme.js'
4
- import colors from '../tokens/_colors.scss'
4
+ import colors from '../tokens/exports/_colors.scss'
5
5
 
6
6
  require('highcharts/modules/variable-pie')(Highcharts)
7
7
  import highchartsMore from 'highcharts/highcharts-more.js'
@@ -5,4 +5,8 @@ export { default as Legend } from './pb_legend/_legend.jsx'
5
5
  export { default as LineGraph } from './pb_line_graph/_line_graph.jsx'
6
6
  export { default as Typeahead } from './pb_typeahead/_typeahead.jsx'
7
7
  export { default as RichTextEditor } from './pb_rich_text_editor/_rich_text_editor.jsx'
8
+ export { default as Dialog } from './pb_dialog/_dialog.jsx'
9
+ export { default as DialogHeader } from './pb_dialog/child_kits/_dialog_header.jsx'
10
+ export { default as DialogBody } from './pb_dialog/child_kits/_dialog_body.jsx'
11
+ export { default as DialogFooter } from './pb_dialog/child_kits/_dialog_footer.jsx'
8
12
  export { KitSearch, SnippetToggle, DarkModeToggle } from './docs_components'
@@ -32,13 +32,3 @@ $border_radius: (
32
32
  border_radius_none: $border_radius_none,
33
33
  border_radius_rounded: $border_radius_rounded
34
34
  );
35
-
36
-
37
- :export {
38
- @mixin export_border_radius($border_radius_list) {
39
- @each $name, $size in $border_radius_list {
40
- #{$name}: $size;
41
- }
42
- }
43
- @include export_border_radius($border_radius);
44
- }
@@ -250,28 +250,3 @@ $transparent: transparent;
250
250
  background: linear-gradient(135deg, $start 0%, $end 100%);
251
251
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$start}', endColorstr='#{$end}', GradientType=1);
252
252
  }
253
-
254
- :export {
255
- @mixin export-colors($colors-list) {
256
- @each $name, $color in $colors-list {
257
- #{$name}: $color;
258
- }
259
- }
260
- @include export-colors($product_colors);
261
- @include export-colors($status_colors);
262
- @include export-colors($data_colors);
263
- @include export-colors($shadow_colors);
264
- @include export-colors($colors);
265
- @include export-colors($interface_colors);
266
- @include export-colors($main_colors);
267
- @include export-colors($background_colors);
268
- @include export-colors($card_colors);
269
- @include export-colors($active_colors);
270
- @include export-colors($action_colors);
271
- @include export-colors($hover_colors);
272
- @include export-colors($border_colors);
273
- @include export-colors($text_colors);
274
- @include export-colors($category_colors);
275
- gradient_start: $gradient_start;
276
- gradient_end: $gradient_end;
277
- }
@@ -14,12 +14,3 @@ $line_height: (
14
14
  looser: $lh_looser,
15
15
  loosest: $lh_loosest
16
16
  );
17
-
18
- :export {
19
- @mixin export_line_height($line_height_list) {
20
- @each $name, $settings in $line_height_list {
21
- #{$name}: $settings;
22
- }
23
- }
24
- @include export_line_height($line_height);
25
- }
@@ -19,12 +19,3 @@ $opacity: (
19
19
  opacity_8: $opacity_8,
20
20
  opacity_9: $opacity_9,
21
21
  );
22
-
23
- :export {
24
- @mixin export_opacity($opacity_list) {
25
- @each $name, $settings in $opacity_list {
26
- #{$name}: $settings;
27
- }
28
- }
29
- @include export_opacity($opacity);
30
- }
@@ -34,12 +34,3 @@ $offscreen: -9999px;
34
34
  }
35
35
  @return map-get($z_layers, $layer);
36
36
  }
37
-
38
- :export {
39
- @mixin export_z_index($z_index_list) {
40
- @each $name, $settings in $z_index_list {
41
- #{$name}: $settings;
42
- }
43
- }
44
- @include export_z_index($z_index);
45
- }
@@ -28,12 +28,3 @@ $breakpoints: (
28
28
  @content;
29
29
  }
30
30
  }
31
-
32
- :export {
33
- @mixin export_breakpoints($breakpoints_list) {
34
- @each $name, $settings in $breakpoints_list {
35
- #{$name}: $settings;
36
- }
37
- }
38
- @include export_breakpoints($breakpoints);
39
- }
@@ -11,12 +11,3 @@ $box_shadows: (
11
11
  shadow_deeper: $shadow_deeper,
12
12
  shadow_deepest: $shadow_deepest
13
13
  );
14
-
15
- :export {
16
- @mixin export_shadows($shadows_list) {
17
- @each $name, $settings in $shadows_list {
18
- #{$name}: $settings;
19
- }
20
- }
21
- @include export_shadows($box_shadows);
22
- }
@@ -11,13 +11,3 @@ $spaces:(
11
11
  space_xl: $space_xl,
12
12
  none: 0
13
13
  );
14
-
15
-
16
- :export {
17
- @mixin export_spacing($spacing_list) {
18
- @each $name, $size in $spacing_list {
19
- #{$name}: $size;
20
- }
21
- }
22
- @include export_spacing($spaces);
23
- }
@@ -62,28 +62,3 @@ $boldest: 800;
62
62
  $bolder: 700;
63
63
  $light: 300;
64
64
  $lighter: 100;
65
-
66
-
67
-
68
- :export {
69
- font_family_base: $font_family_base;
70
- text_jumbo: $text_jumbo;
71
- text_largest: $text_largest;
72
- text_larger: $text_larger;
73
- text_large: $text_large;
74
- text_base: $text_base;
75
- text_default: $text_default;
76
- text_normal: $text_normal;
77
- text_medium: $text_medium;
78
- text_small: $text_small;
79
- text_smaller: $text_smaller;
80
- text_smallest: $text_smallest;
81
- heading_1: $heading_1;
82
- heading_2: $heading_2;
83
- heading_3: $heading_3;
84
- heading_4: $heading_4;
85
- lighter: $lighter;
86
- light: $light;
87
- bold: $bold;
88
- regular: $regular;
89
- }
@@ -0,0 +1,10 @@
1
+ @import "../border_radius";
2
+
3
+ :export {
4
+ @mixin export_border_radius($border_radius_list) {
5
+ @each $name, $size in $border_radius_list {
6
+ #{$name}: $size;
7
+ }
8
+ }
9
+ @include export_border_radius($border_radius);
10
+ }
@@ -0,0 +1,26 @@
1
+ @import "../colors";
2
+
3
+ :export {
4
+ @mixin export-colors($colors-list) {
5
+ @each $name, $color in $colors-list {
6
+ #{$name}: $color;
7
+ }
8
+ }
9
+ @include export-colors($product_colors);
10
+ @include export-colors($status_colors);
11
+ @include export-colors($data_colors);
12
+ @include export-colors($shadow_colors);
13
+ @include export-colors($colors);
14
+ @include export-colors($interface_colors);
15
+ @include export-colors($main_colors);
16
+ @include export-colors($background_colors);
17
+ @include export-colors($card_colors);
18
+ @include export-colors($active_colors);
19
+ @include export-colors($action_colors);
20
+ @include export-colors($hover_colors);
21
+ @include export-colors($border_colors);
22
+ @include export-colors($text_colors);
23
+ @include export-colors($category_colors);
24
+ gradient_start: $gradient_start;
25
+ gradient_end: $gradient_end;
26
+ }
@@ -0,0 +1,10 @@
1
+ @import "../line_height";
2
+
3
+ :export {
4
+ @mixin export_line_height($line_height_list) {
5
+ @each $name, $settings in $line_height_list {
6
+ #{$name}: $settings;
7
+ }
8
+ }
9
+ @include export_line_height($line_height);
10
+ }
@@ -0,0 +1,10 @@
1
+ @import "../opacity";
2
+
3
+ :export {
4
+ @mixin export_opacity($opacity_list) {
5
+ @each $name, $settings in $opacity_list {
6
+ #{$name}: $settings;
7
+ }
8
+ }
9
+ @include export_opacity($opacity);
10
+ }
@@ -0,0 +1,10 @@
1
+ @import "../positioning";
2
+
3
+ :export {
4
+ @mixin export_z_index($z_index_list) {
5
+ @each $name, $settings in $z_index_list {
6
+ #{$name}: $settings;
7
+ }
8
+ }
9
+ @include export_z_index($z_index);
10
+ }
@@ -0,0 +1,10 @@
1
+ @import "../screen_sizes";
2
+
3
+ :export {
4
+ @mixin export_breakpoints($breakpoints_list) {
5
+ @each $name, $settings in $breakpoints_list {
6
+ #{$name}: $settings;
7
+ }
8
+ }
9
+ @include export_breakpoints($breakpoints);
10
+ }