@zendeskgarden/react-datepickers 9.12.3 → 9.12.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,19 +7,17 @@
7
7
  import styled, { css } from 'styled-components';
8
8
  import { componentStyles, getColor } from '@zendeskgarden/react-theming';
9
9
 
10
- const sizeStyles = _ref => {
11
- let {
12
- $isCompact,
13
- theme
14
- } = _ref;
10
+ const sizeStyles$3 = ({
11
+ $isCompact,
12
+ theme
13
+ }) => {
15
14
  const iconSize = theme.iconSizes.md;
16
15
  const size = theme.space.base * ($isCompact ? 8 : 10);
17
16
  return css(["width:", "px;height:", "px;svg{width:", ";height:", ";}"], size, size, iconSize, iconSize);
18
17
  };
19
- const colorStyles = _ref2 => {
20
- let {
21
- theme
22
- } = _ref2;
18
+ const colorStyles$2 = ({
19
+ theme
20
+ }) => {
23
21
  const foreground = getColor({
24
22
  variable: 'foreground.subtle',
25
23
  theme
@@ -56,13 +54,13 @@ const colorStyles = _ref2 => {
56
54
  });
57
55
  return css(["color:", ";&:hover{background-color:", ";color:", ";}&:active{background-color:", ";color:", ";}"], foreground, backgroundHover, foregroundHover, backgroundActive, foregroundActive);
58
56
  };
59
- const COMPONENT_ID = 'datepickers.header_paddle';
57
+ const COMPONENT_ID$6 = 'datepickers.header_paddle';
60
58
  const StyledHeaderPaddle = styled.div.attrs({
61
- 'data-garden-id': COMPONENT_ID,
62
- 'data-garden-version': '9.12.3'
59
+ 'data-garden-id': COMPONENT_ID$6,
60
+ 'data-garden-version': '9.12.5'
63
61
  }).withConfig({
64
62
  displayName: "StyledHeaderPaddle",
65
63
  componentId: "sc-2oqh0g-0"
66
- })(["display:flex;align-items:center;justify-content:center;transform:", ";border-radius:50%;cursor:pointer;&[aria-hidden]{visibility:hidden;}", " ", " ", ";"], props => props.theme.rtl && 'rotate(180deg)', sizeStyles, colorStyles, componentStyles);
64
+ })(["display:flex;align-items:center;justify-content:center;transform:", ";border-radius:50%;cursor:pointer;&[aria-hidden]{visibility:hidden;}", " ", " ", ";"], props => props.theme.rtl && 'rotate(180deg)', sizeStyles$3, colorStyles$2, componentStyles);
67
65
 
68
66
  export { StyledHeaderPaddle };
@@ -7,13 +7,12 @@
7
7
  import styled, { css } from 'styled-components';
8
8
  import { componentStyles, getColor } from '@zendeskgarden/react-theming';
9
9
 
10
- const COMPONENT_ID = 'datepickers.highlight';
11
- const sizeStyles = _ref => {
12
- let {
13
- theme,
14
- $isEnd,
15
- $isStart
16
- } = _ref;
10
+ const COMPONENT_ID$1 = 'datepickers.highlight';
11
+ const sizeStyles$1 = ({
12
+ theme,
13
+ $isEnd,
14
+ $isStart
15
+ }) => {
17
16
  let borderRadius;
18
17
  const startValue = '0 50% 50% 0;';
19
18
  const endValue = '50% 0 0 50%;';
@@ -31,11 +30,10 @@ const sizeStyles = _ref => {
31
30
  }
32
31
  return css(["border-radius:", ";width:100%;height:100%;"], borderRadius);
33
32
  };
34
- const colorStyles = _ref2 => {
35
- let {
36
- $isHighlighted,
37
- theme
38
- } = _ref2;
33
+ const colorStyles$1 = ({
34
+ $isHighlighted,
35
+ theme
36
+ }) => {
39
37
  return css(["background-color:", ";"], $isHighlighted && getColor({
40
38
  variable: 'background.primaryEmphasis',
41
39
  transparency: theme.opacity[100],
@@ -43,11 +41,11 @@ const colorStyles = _ref2 => {
43
41
  }));
44
42
  };
45
43
  const StyledHighlight = styled.div.attrs({
46
- 'data-garden-id': COMPONENT_ID,
47
- 'data-garden-version': '9.12.3'
44
+ 'data-garden-id': COMPONENT_ID$1,
45
+ 'data-garden-version': '9.12.5'
48
46
  }).withConfig({
49
47
  displayName: "StyledHighlight",
50
48
  componentId: "sc-16vr32x-0"
51
- })(["position:absolute;top:0;left:0;", " ", " ", ";"], sizeStyles, colorStyles, componentStyles);
49
+ })(["position:absolute;top:0;left:0;", " ", " ", ";"], sizeStyles$1, colorStyles$1, componentStyles);
52
50
 
53
51
  export { StyledHighlight };
@@ -7,10 +7,10 @@
7
7
  import styled from 'styled-components';
8
8
  import { componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
- const COMPONENT_ID = 'datepickers.menu';
10
+ const COMPONENT_ID$b = 'datepickers.menu';
11
11
  const StyledMenu = styled.div.attrs({
12
- 'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.12.3'
12
+ 'data-garden-id': COMPONENT_ID$b,
13
+ 'data-garden-version': '9.12.5'
14
14
  }).withConfig({
15
15
  displayName: "StyledMenu",
16
16
  componentId: "sc-1npbkk0-0"
@@ -7,10 +7,10 @@
7
7
  import styled from 'styled-components';
8
8
  import { menuStyles, getMenuPosition, componentStyles } from '@zendeskgarden/react-theming';
9
9
 
10
- const COMPONENT_ID = 'datepickers.menu_wrapper';
10
+ const COMPONENT_ID$a = 'datepickers.menu_wrapper';
11
11
  const StyledMenuWrapper = styled.div.attrs(props => ({
12
- 'data-garden-id': COMPONENT_ID,
13
- 'data-garden-version': '9.12.3',
12
+ 'data-garden-id': COMPONENT_ID$a,
13
+ 'data-garden-version': '9.12.5',
14
14
  className: props.$isAnimated ? 'is-animated' : undefined
15
15
  })).withConfig({
16
16
  displayName: "StyledMenuWrapper",
@@ -8,10 +8,10 @@ import styled from 'styled-components';
8
8
  import { StyledDatePicker } from './StyledDatePicker.js';
9
9
  import { componentStyles } from '@zendeskgarden/react-theming';
10
10
 
11
- const COMPONENT_ID = 'datepickers.range_calendar';
11
+ const COMPONENT_ID$8 = 'datepickers.range_calendar';
12
12
  const StyledRangeCalendar = styled.div.attrs({
13
- 'data-garden-id': COMPONENT_ID,
14
- 'data-garden-version': '9.12.3'
13
+ 'data-garden-id': COMPONENT_ID$8,
14
+ 'data-garden-version': '9.12.5'
15
15
  }).withConfig({
16
16
  displayName: "StyledRangeCalendar",
17
17
  componentId: "sc-1og46sy-0"