playbook_ui 10.19.0.pre.popover.alpha1 → 10.21.0.pre.alpha.na1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/app/pb_kits/playbook/pb_avatar/_avatar.jsx +1 -1
  3. data/app/pb_kits/playbook/pb_avatar/_avatar.scss +2 -2
  4. data/app/pb_kits/playbook/pb_avatar/avatar.rb +1 -1
  5. data/app/pb_kits/playbook/pb_avatar/avatar.test.js +1 -1
  6. data/app/pb_kits/playbook/pb_body/_body.jsx +3 -1
  7. data/app/pb_kits/playbook/pb_button/_button.jsx +3 -3
  8. data/app/pb_kits/playbook/pb_button/_button.scss +0 -17
  9. data/app/pb_kits/playbook/pb_button/button.rb +3 -6
  10. data/app/pb_kits/playbook/pb_button/button.test.js +0 -13
  11. data/app/pb_kits/playbook/pb_button/docs/example.yml +0 -2
  12. data/app/pb_kits/playbook/pb_button/docs/index.js +0 -1
  13. data/app/pb_kits/playbook/pb_caption/_caption.jsx +2 -1
  14. data/app/pb_kits/playbook/pb_caption/_caption.scss +7 -0
  15. data/app/pb_kits/playbook/pb_caption/caption.rb +5 -2
  16. data/app/pb_kits/playbook/pb_date/_date.jsx +1 -1
  17. data/app/pb_kits/playbook/pb_date/date.html.erb +1 -1
  18. data/app/pb_kits/playbook/pb_date_picker/_date_picker.jsx +3 -0
  19. data/app/pb_kits/playbook/pb_date_picker/_date_picker.scss +1 -0
  20. data/app/pb_kits/playbook/pb_date_picker/date_picker.rb +3 -0
  21. data/app/pb_kits/playbook/pb_date_picker/date_picker_helper.js +10 -1
  22. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_month_and_year.html.erb +5 -0
  23. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_month_and_year.jsx +18 -0
  24. data/app/pb_kits/playbook/pb_date_picker/docs/_date_picker_month_and_year.md +1 -0
  25. data/app/pb_kits/playbook/pb_date_picker/docs/example.yml +2 -0
  26. data/app/pb_kits/playbook/pb_date_picker/docs/index.js +1 -0
  27. data/app/pb_kits/playbook/pb_date_picker/sass_partials/_month_and_year_styles.scss +127 -0
  28. data/app/pb_kits/playbook/pb_image/_image.jsx +12 -14
  29. data/app/pb_kits/playbook/pb_image/docs/_custom_error_image.html.erb +1 -0
  30. data/app/pb_kits/playbook/pb_image/docs/_default_image.jsx +48 -35
  31. data/app/pb_kits/playbook/pb_image/docs/_rounded_image.jsx +46 -35
  32. data/app/pb_kits/playbook/pb_legend/_legend.jsx +1 -7
  33. data/app/pb_kits/playbook/pb_legend/_legend.scss +6 -2
  34. data/app/pb_kits/playbook/pb_legend/docs/_legend_colors.html.erb +4 -0
  35. data/app/pb_kits/playbook/pb_legend/docs/_legend_colors.jsx +29 -0
  36. data/app/pb_kits/playbook/pb_legend/docs/_legend_colors.md +2 -0
  37. data/app/pb_kits/playbook/pb_legend/docs/_legend_default.html.erb +2 -2
  38. data/app/pb_kits/playbook/pb_legend/docs/_legend_default.jsx +1 -1
  39. data/app/pb_kits/playbook/pb_legend/docs/example.yml +4 -4
  40. data/app/pb_kits/playbook/pb_legend/docs/index.js +1 -0
  41. data/app/pb_kits/playbook/pb_legend/legend.rb +1 -2
  42. data/app/pb_kits/playbook/pb_legend/legend.test.js +29 -0
  43. data/app/pb_kits/playbook/pb_popover/_popover.jsx +4 -2
  44. data/app/pb_kits/playbook/pb_popover/docs/_popover_close.html.erb +7 -7
  45. data/app/pb_kits/playbook/pb_popover/index.js +9 -4
  46. data/app/pb_kits/playbook/pb_popover/popover.html.erb +1 -1
  47. data/app/pb_kits/playbook/pb_section_separator/_section_separator.scss +6 -2
  48. data/app/pb_kits/playbook/pb_section_separator/_section_separator_mixin.scss +0 -2
  49. data/app/pb_kits/playbook/pb_text_input/_text_input.scss +3 -3
  50. data/app/pb_kits/playbook/pb_title/_title.jsx +2 -1
  51. data/app/pb_kits/playbook/pb_title/title.html.erb +2 -3
  52. data/app/pb_kits/playbook/pb_title/title.rb +5 -2
  53. data/lib/playbook/version.rb +2 -2
  54. metadata +10 -5
  55. data/app/pb_kits/playbook/pb_button/docs/_button_size.html.erb +0 -3
  56. data/app/pb_kits/playbook/pb_button/docs/_button_size.jsx +0 -26
  57. data/app/pb_kits/playbook/pb_button/docs/_button_size.md +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '090e97cafaabff3f06f58cca0ce4a1416d09f6baea9f828e51c93059f279f292'
4
- data.tar.gz: 580359a862a8567240f9759e2ab80b708688d528ddc054789e6f658352cc21e1
3
+ metadata.gz: c91379a8ff1fbd4421f2d351cfd11cd08cf5dac3b00d275e2b8312b64ab983a9
4
+ data.tar.gz: 80f1bcd2b434b6213116668028aadbce11ef28b54d5ab758aea3d87c00eee109
5
5
  SHA512:
6
- metadata.gz: 85c349d66339b000e6d7cb9077621b9e8d40852538d6e9eb7111947fabd0df9e11b3d2448a67609727c9fb915393ddf903140f43375be0947d5d749ffb6fb85a
7
- data.tar.gz: b3774dfcbf0315c3b2fde5e145e7e0e33c3ceb23e5371aa01120ccca6f7294e7883e1f19c89dc73cdc3af2664d7b3484f0d9de5835119e862424902ee153bbc9
6
+ metadata.gz: 10bd2dc160d0cc7ad0cfc921b20b0429611bb628b6203cfa75528bfa32c4a3bf2a57506f4922dbb8fdfc2e75df4e0698759d21312a9a78dac41b3c044a5eea6e
7
+ data.tar.gz: c372e8a2490809b8345cb99230a49cb3c2420bdeec256a05cad5d10688a16ca447b44cbc582ab5cebd1af8517f7a3fc0ed63fdc7f22c54316461930baff3161f
@@ -44,7 +44,7 @@ const Avatar = (props: AvatarProps) => {
44
44
  const dataProps = buildDataProps(data)
45
45
  const ariaProps = buildAriaProps(aria)
46
46
  const classes = classnames(
47
- buildCss('pb_avatar_kit', size),
47
+ buildCss('pb_avatar_kit', `size_${size}`),
48
48
  globalProps(props),
49
49
  className
50
50
  )
@@ -16,8 +16,8 @@ $avatar-sizes: (
16
16
  position: relative;
17
17
 
18
18
  @each $name, $size in $avatar-sizes {
19
- &[class*=_#{$name}],
20
- &[class*=_#{$name}_thumb] {
19
+ &[class*=_size_#{$name}],
20
+ &[class*=_size_#{$name}_thumb] {
21
21
  width: $size;
22
22
  height: $size;
23
23
  object-fit: cover;
@@ -18,7 +18,7 @@ module Playbook
18
18
  end
19
19
 
20
20
  def classname
21
- generate_classname("pb_avatar_kit", size)
21
+ generate_classname("pb_avatar_kit", "size_#{size}")
22
22
  end
23
23
 
24
24
  def online_status_props
@@ -22,7 +22,7 @@ test('loads the given image url and name', () => {
22
22
  const image = screen.getByAltText(imageAlt)
23
23
  const initials = name.split(/\s/)[0].substr(0, 1) + name.split(/\s/)[1].substr(0, 1)
24
24
 
25
- expect(kit).toHaveClass('pb_avatar_kit_md')
25
+ expect(kit).toHaveClass('pb_avatar_kit_size_md')
26
26
  expect(kit).toHaveAttribute('data-initials', initials)
27
27
  expect(image).toHaveAttribute('data-src', imageUrl)
28
28
  expect(image).toHaveAttribute('src', imageUrl)
@@ -21,6 +21,7 @@ type BodyProps = {
21
21
  status?: 'negative' | 'neutral' | 'positive',
22
22
  tag?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'p' | 'span' | 'div',
23
23
  text?: string,
24
+ variant: null | 'link',
24
25
  }
25
26
 
26
27
  const Body = (props: BodyProps) => {
@@ -36,12 +37,13 @@ const Body = (props: BodyProps) => {
36
37
  status,
37
38
  tag = 'div',
38
39
  text,
40
+ variant = null,
39
41
  } = props
40
42
 
41
43
  const ariaProps = buildAriaProps(aria)
42
44
  const dataProps = buildDataProps(data)
43
45
  const classes = classnames(
44
- buildCss('pb_body_kit', color, status),
46
+ buildCss('pb_body_kit', color, variant, status),
45
47
  globalProps(props),
46
48
  className
47
49
  )
@@ -22,7 +22,7 @@ type ButtonPropTypes = {
22
22
  loading?: boolean,
23
23
  newWindow?: boolean,
24
24
  onClick?: EventHandler,
25
- size?: 'sm' | 'md' | 'lg',
25
+ size: 'large' | 'medium' | 'small',
26
26
  text?: string,
27
27
  type: 'inline' | null,
28
28
  htmlType: string | 'button',
@@ -36,16 +36,16 @@ const buttonClassName = (props: ButtonPropTypes) => {
36
36
  disabled = false,
37
37
  fullWidth = false,
38
38
  loading = false,
39
+ size = null,
39
40
  type = 'inline',
40
41
  variant = 'primary',
41
- size = null,
42
42
  } = props
43
43
 
44
44
  let className = 'pb_button_kit'
45
45
 
46
- className += `${size !== null ? `_${size}` : ''}`
47
46
  className += `${variant !== null ? `_${variant}` : ''}`
48
47
  className += `${type !== null ? `_${type}` : ''}`
48
+ className += `${size !== null ? `_${size}` : ''}`
49
49
  className += `${fullWidth ? '_block' : ''}`
50
50
  className += disabled ? '_disabled' : '_enabled'
51
51
  className += loading ? '_loading' : ''
@@ -1,24 +1,7 @@
1
1
  @import "./button_mixins";
2
2
 
3
- $pb_button_sizes: (
4
- "sm": 0.75rem,
5
- "md": 0.875rem,
6
- "lg": 1.125rem,
7
- );
8
-
9
3
  [class^=pb_button_kit]{
10
4
  @include pb_button;
11
- // Size =================
12
- @each $name, $size in $pb_button_sizes {
13
- &[class*=_#{$name}] {
14
- font-size: $size;
15
- padding: calc(#{$size} / 2) calc(#{$size} * 2.42) !important;
16
- }
17
- }
18
- &[class*=_sm] {
19
- min-height: 0;
20
- }
21
-
22
5
  // Variants =================
23
6
  &[class*=_primary] {
24
7
  @include pb_button_primary;
@@ -18,9 +18,6 @@ module Playbook
18
18
  prop :text
19
19
  prop :type
20
20
  prop :value
21
- prop :size, type: Playbook::Props::Enum,
22
- values: ["sm", "md", "lg", nil],
23
- default: nil
24
21
 
25
22
  def options
26
23
  {
@@ -47,12 +44,12 @@ module Playbook
47
44
  link ? "a" : "button"
48
45
  end
49
46
 
47
+ private
48
+
50
49
  def classname
51
- generate_classname("pb_button_kit", size, variant, full_width_class, disabled_class, loading_class)
50
+ generate_classname("pb_button_kit", variant, full_width_class, disabled_class, loading_class)
52
51
  end
53
52
 
54
- private
55
-
56
53
  def disabled_class
57
54
  disabled ? "disabled" : "enabled"
58
55
  end
@@ -89,16 +89,3 @@ test('click event', async () => {
89
89
 
90
90
  expect(screen.getByText('clicked button!')).toBeInTheDocument()
91
91
  })
92
-
93
- test('size prop', () => {
94
- render(
95
- <Button
96
- data={{ testid: 'size-test' }}
97
- size="sm"
98
- />
99
- )
100
-
101
- const kit = screen.getByTestId('size-test')
102
-
103
- expect(kit).toHaveClass('pb_button_kit_sm_primary_inline_enabled')
104
- })
@@ -7,7 +7,6 @@ examples:
7
7
  - button_block_content: Button Block Content
8
8
  - button_accessibility: Button Accessibility Options
9
9
  - button_options: Button Additional Options
10
- - button_size: Button Size
11
10
  react:
12
11
  - button_default: Button Variants
13
12
  - button_full_width: Button Full Width
@@ -16,4 +15,3 @@ examples:
16
15
  - button_block_content: Button Block Content
17
16
  - button_accessibility: Button Accessibility Options
18
17
  - button_options: Button Additional Options (onClick)
19
- - button_size: Button Size
@@ -5,4 +5,3 @@ export { default as ButtonLoading } from './_button_loading.jsx'
5
5
  export { default as ButtonBlockContent } from './_button_block_content.jsx'
6
6
  export { default as ButtonAccessibility } from './_button_accessibility.jsx'
7
7
  export { default as ButtonOptions } from './_button_options.jsx'
8
- export { default as ButtonSize } from './_button_size.jsx'
@@ -30,6 +30,7 @@ const Caption = (props: CaptionProps) => {
30
30
  size = 'md',
31
31
  tag = 'div',
32
32
  text,
33
+ variant = null,
33
34
  } = props
34
35
  const tagOptions = [
35
36
  'h1',
@@ -48,7 +49,7 @@ const Caption = (props: CaptionProps) => {
48
49
  const ariaProps = buildAriaProps(aria)
49
50
  const dataProps = buildDataProps(data)
50
51
  const css = classnames(
51
- buildCss('pb_caption_kit', size, color),
52
+ buildCss('pb_caption_kit', size, variant, color),
52
53
  globalProps(props),
53
54
  className,
54
55
  )
@@ -3,6 +3,9 @@
3
3
 
4
4
  [class^="pb_caption_kit"] {
5
5
  @include caption;
6
+ &[class*="_link"] {
7
+ color: $primary;
8
+ }
6
9
 
7
10
  &[class^="pb_caption_kit_lg"] {
8
11
  @include caption_lg;
@@ -11,6 +14,10 @@
11
14
  &[class^="pb_caption_kit_xs"] {
12
15
  @include caption_xs;
13
16
  }
17
+
18
+ &[class*="link"] {
19
+ color: $primary;
20
+ }
14
21
 
15
22
  @include pb_caption_kit_colors;
16
23
 
@@ -10,14 +10,17 @@ module Playbook
10
10
  values: %w[h1 h2 h3 h4 h5 h6 p span div caption],
11
11
  default: "div"
12
12
  prop :text
13
- prop :variant, deprecated: true
13
+ prop :variant, type: Playbook::Props::Enum,
14
+ values: [nil, "link"],
15
+ default: nil,
16
+ deprecated: true
14
17
 
15
18
  prop :color, type: Playbook::Props::Enum,
16
19
  values: [nil, "default", "light", "lighter", "success", "error", "link"],
17
20
  default: nil
18
21
 
19
22
  def classname
20
- generate_classname("pb_caption_kit", size, color)
23
+ generate_classname("pb_caption_kit", size, variant, color)
21
24
  end
22
25
  end
23
26
  end
@@ -107,7 +107,7 @@ const PbDate = (props: PbDateProps) => {
107
107
  <Icon
108
108
  fixedWidth
109
109
  icon="calendar-alt"
110
- size="xs"
110
+ size="sm"
111
111
  />
112
112
  </Caption>
113
113
  </If>
@@ -42,7 +42,7 @@
42
42
  <%= pb_rails("caption", props: {
43
43
  tag: "div",
44
44
  }) do %>
45
- <%= pb_rails("icon", props: { icon: "calendar-alt", fixed_width: true, size: 'xs' }) %>
45
+ <%= pb_rails("icon", props: { icon: "calendar-alt", fixed_width: true, size: "sm" }) %>
46
46
  <% end %>
47
47
  <% end %>
48
48
 
@@ -40,6 +40,7 @@ type DatePickerProps = {
40
40
  onChange: (String) => void,
41
41
  pickerId?: String,
42
42
  placeholder?: String,
43
+ plugins?: Boolean,
43
44
  type?: String,
44
45
  yearRange?: Array,
45
46
  }
@@ -73,6 +74,7 @@ const DatePicker = (props: DatePickerProps) => {
73
74
  onChange = () => {},
74
75
  pickerId,
75
76
  placeholder = 'Select Date',
77
+ plugins = false,
76
78
  yearRange = [ 1900, 2100 ],
77
79
  } = props
78
80
 
@@ -100,6 +102,7 @@ const DatePicker = (props: DatePickerProps) => {
100
102
  mode: mode,
101
103
  onChange: onChange,
102
104
  pickerId: pickerId,
105
+ plugins: plugins,
103
106
  yearRange: yearRange,
104
107
  })
105
108
  }, [])
@@ -3,6 +3,7 @@
3
3
  @import "../tokens/colors";
4
4
  @import "./sass_partials/flatpickr_styles";
5
5
  @import "./sass_partials/inline_styles";
6
+ @import "./sass_partials/month_and_year_styles";
6
7
 
7
8
  [class^=pb_date_picker_kit] {
8
9
  .input_wrapper {
@@ -41,6 +41,8 @@ module Playbook
41
41
  required: true
42
42
  prop :placeholder, type: Playbook::Props::String,
43
43
  default: "Select Date"
44
+ prop :plugins, type: Playbook::Props::Boolean,
45
+ default: false
44
46
  prop :required, type: Playbook::Props::Boolean,
45
47
  default: false
46
48
  prop :year_range, type: Playbook::Props::Array,
@@ -64,6 +66,7 @@ module Playbook
64
66
  minDate: min_date,
65
67
  mode: mode,
66
68
  pickerId: picker_id,
69
+ plugins: plugins,
67
70
  required: required,
68
71
  yearRange: year_range,
69
72
  }.to_json.html_safe
@@ -1,4 +1,5 @@
1
1
  import flatpickr from 'flatpickr'
2
+ import monthSelectPlugin from 'flatpickr/dist/plugins/monthSelect'
2
3
 
3
4
  const datePickerHelper = (config) => {
4
5
  const {
@@ -13,6 +14,7 @@ const datePickerHelper = (config) => {
13
14
  mode,
14
15
  onChange = () => {},
15
16
  pickerId,
17
+ plugins,
16
18
  required,
17
19
  yearRange,
18
20
  } = config
@@ -50,6 +52,10 @@ const datePickerHelper = (config) => {
50
52
  }
51
53
  }
52
54
 
55
+ const setMonthAndYearPlugin = () => (
56
+ plugins ? [ monthSelectPlugin({ shorthand: true, dateFormat: 'F Y', altFormat: 'F Y' }) ] : []
57
+ )
58
+
53
59
  // ===========================================================
54
60
  // | Flatpickr initializer w/ config |
55
61
  // ===========================================================
@@ -97,6 +103,7 @@ const datePickerHelper = (config) => {
97
103
  onYearChange: [() => {
98
104
  yearChangeHook()
99
105
  }],
106
+ plugins: setMonthAndYearPlugin(),
100
107
  prevArrow: '<i class="far fa-angle-left"></i>',
101
108
  static: true,
102
109
  })
@@ -153,8 +160,10 @@ const datePickerHelper = (config) => {
153
160
  }
154
161
 
155
162
  // Adding dropdown icons to year and month selects
156
- picker.monthElements[0].insertAdjacentHTML('afterend', '<i class="far fa-angle-down month-dropdown-icon"></i>')
157
163
  dropdown.insertAdjacentHTML('afterend', '<i class="far fa-angle-down year-dropdown-icon" id="test-id"></i>')
164
+ if (picker.monthElements[0].parentElement) {
165
+ return picker.monthElements[0].insertAdjacentHTML('afterend', '<i class="far fa-angle-down month-dropdown-icon"></i>')
166
+ }
158
167
 
159
168
  // Remove readonly attribute for validation and or text input
160
169
  if (allowInput){
@@ -0,0 +1,5 @@
1
+ <%= pb_rails("date_picker", props: {
2
+ label: "Date Picker",
3
+ plugins: true,
4
+ picker_id: "disabled_date"
5
+ }) %>
@@ -0,0 +1,18 @@
1
+ import React from 'react'
2
+
3
+ import DatePicker from '../_date_picker'
4
+
5
+ const DatePickerMonthAndYear = (props) => {
6
+ return (
7
+ <div>
8
+ <DatePicker
9
+ label="Date Picker"
10
+ pickerId="disabled-date"
11
+ plugins
12
+ {...props}
13
+ />
14
+ </div>
15
+ )
16
+ }
17
+
18
+ export default DatePickerMonthAndYear
@@ -0,0 +1 @@
1
+ By default month&year plugin is disabled. To activate it set `plugins` prop to `true`. If you're using React just pass a `plugins` prop to the kit.
@@ -16,6 +16,7 @@ examples:
16
16
  - date_picker_year_range: Year Range
17
17
  - date_picker_anti_patterns: Anti-Patterns
18
18
  - date_picker_inline: Inline
19
+ - date_picker_month_and_year: Month & Year Only
19
20
 
20
21
 
21
22
  react:
@@ -34,3 +35,4 @@ examples:
34
35
  - date_picker_hooks: Hooks
35
36
  - date_picker_year_range: Year Range
36
37
  - date_picker_inline: Inline
38
+ - date_picker_month_and_year: Month & Year Only
@@ -13,3 +13,4 @@ export { default as DatePickerHooks } from './_date_picker_hooks.jsx'
13
13
  export { default as DatePickerFlatpickrMethods } from './_date_picker_flatpickr_methods.jsx'
14
14
  export { default as DatePickerYearRange } from './_date_picker_year_range.jsx'
15
15
  export { default as DatePickerInline } from './_date_picker_inline.jsx'
16
+ export { default as DatePickerMonthAndYear } from './_date_picker_month_and_year.jsx'
@@ -0,0 +1,127 @@
1
+ @import "../../tokens/colors";
2
+
3
+
4
+ .numInput {
5
+ border-left: none !important;
6
+ }
7
+
8
+ // Manual Import
9
+ .flatpickr-monthSelect-months {
10
+ margin: 10px 1px 3px 1px;
11
+ flex-wrap: wrap;
12
+ }
13
+
14
+ .flatpickr-monthSelect-month {
15
+ background: none;
16
+ border: 1px solid transparent;
17
+ border-radius: 4px;
18
+ -webkit-box-sizing: border-box;
19
+ box-sizing: border-box;
20
+ color: $text_lt_default;
21
+ cursor: pointer;
22
+ display: inline-block;
23
+ font-weight: 400;
24
+ margin: 0.5px;
25
+ justify-content: center;
26
+ padding: 10px;
27
+ position: relative;
28
+ -webkit-box-pack: center;
29
+ -webkit-justify-content: center;
30
+ -ms-flex-pack: center;
31
+ text-align: center;
32
+ width: 33%;
33
+ }
34
+
35
+ .flatpickr-monthSelect-month.flatpickr-disabled {
36
+ color: #eee;
37
+ }
38
+
39
+ .flatpickr-monthSelect-month.flatpickr-disabled:hover,
40
+ .flatpickr-monthSelect-month.flatpickr-disabled:focus {
41
+ cursor: not-allowed;
42
+ background: none !important;
43
+ }
44
+
45
+ .flatpickr-monthSelect-theme-dark {
46
+ background: #3f4458;
47
+ }
48
+
49
+ .flatpickr-monthSelect-theme-dark .flatpickr-current-month input.cur-year {
50
+ color: #fff;
51
+ }
52
+
53
+ .flatpickr-monthSelect-theme-dark .flatpickr-months .flatpickr-prev-month,
54
+ .flatpickr-monthSelect-theme-dark .flatpickr-months .flatpickr-next-month {
55
+ color: #fff;
56
+ fill: #fff;
57
+ }
58
+
59
+ .flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month {
60
+ color: rgba(255, 255, 255, 0.95);
61
+ }
62
+
63
+ .flatpickr-monthSelect-month.today {
64
+ border-color: #959ea9;
65
+ }
66
+
67
+ .flatpickr-monthSelect-month.inRange,
68
+ .flatpickr-monthSelect-month.inRange.today,
69
+ .flatpickr-monthSelect-month:hover,
70
+ .flatpickr-monthSelect-month:focus {
71
+ background: $active_light;
72
+ font-weight: $bold;
73
+ color: $text_lt_default;
74
+ cursor: pointer;
75
+ outline: 0;
76
+ }
77
+
78
+ .flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.inRange,
79
+ .flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month:hover,
80
+ .flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month:focus {
81
+ background: #646c8c;
82
+ border-color: #646c8c;
83
+ }
84
+
85
+ .flatpickr-monthSelect-month.today:hover,
86
+ .flatpickr-monthSelect-month.today:focus {
87
+ background: #959ea9;
88
+ border-color: #959ea9;
89
+ color: #fff;
90
+ }
91
+
92
+ .flatpickr-monthSelect-month.selected,
93
+ .flatpickr-monthSelect-month.startRange,
94
+ .flatpickr-monthSelect-month.endRange {
95
+ background-color: $primary;
96
+ font-weight: $bold;
97
+ box-shadow: none;
98
+ color: #fff;
99
+ border-color: $primary;
100
+ }
101
+
102
+ .flatpickr-monthSelect-month.startRange {
103
+ border-radius: 50px 0 0 50px;
104
+ }
105
+
106
+ .flatpickr-monthSelect-month.endRange {
107
+ border-radius: 0 50px 50px 0;
108
+ }
109
+
110
+ .flatpickr-monthSelect-month.startRange.endRange {
111
+ border-radius: 50px;
112
+ }
113
+
114
+ .flatpickr-monthSelect-month.inRange {
115
+ border-radius: 0;
116
+ box-shadow: -5px 0 0 #e6e6e6, 5px 0 0 #e6e6e6;
117
+ }
118
+
119
+ .flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.selected,
120
+ .flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.startRange,
121
+ .flatpickr-monthSelect-theme-dark .flatpickr-monthSelect-month.endRange {
122
+ background: #80cbc4;
123
+ -webkit-box-shadow: none;
124
+ box-shadow: none;
125
+ color: #fff;
126
+ border-color: #80cbc4;
127
+ }
@@ -44,20 +44,18 @@ const Image = (props: ImageProps) => {
44
44
  const dataProps = buildDataProps(data)
45
45
 
46
46
  return (
47
- <div>
48
- <img
49
- {...ariaProps}
50
- {...dataProps}
51
- alt={alt}
52
- className={classes}
53
- data-src={url}
54
- id={id}
55
- onError={onError}
56
- rounded={+rounded}
57
- src={url}
58
- transition={transition}
59
- />
60
- </div>
47
+ <img
48
+ {...ariaProps}
49
+ {...dataProps}
50
+ alt={alt}
51
+ className={classes}
52
+ data-src={url}
53
+ id={id}
54
+ onError={onError}
55
+ rounded={+rounded}
56
+ src={url}
57
+ transition={transition}
58
+ />
61
59
  )
62
60
  }
63
61
 
@@ -49,6 +49,7 @@
49
49
  props: {
50
50
  alt: "This is the alt text!",
51
51
  on_error: "this.classList.add('image-error')",
52
+ padding_x: "none",
52
53
  rounded: true,
53
54
  size: "xs",
54
55
  url: "not_a_picture"