@pingux/astro 2.160.1-alpha.3 → 2.161.0

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.
Files changed (42) hide show
  1. package/lib/cjs/components/Modal/Modal.styles.js +2 -2
  2. package/lib/cjs/components/RangeCalendar/RangeCalendar.styles.d.ts +6 -0
  3. package/lib/cjs/components/RangeCalendar/RangeCalendar.styles.js +8 -1
  4. package/lib/cjs/components/RangeCalendar/RangeCalendarGrid.js +2 -1
  5. package/lib/cjs/components/RangeCalendar/RangeCalendarHeader.js +9 -4
  6. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +2 -0
  7. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +5 -5
  8. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +1 -0
  9. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +3 -3
  10. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/rangeCalendar.d.ts +42 -0
  11. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/rangeCalendar.js +50 -0
  12. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +41 -0
  13. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +2 -0
  14. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +1 -0
  15. package/lib/cjs/styles/themes/astro/customProperties/index.js +2 -0
  16. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
  17. package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +1 -0
  18. package/lib/cjs/styles/themes/next-gen/customProperties/index.js +2 -0
  19. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +85 -0
  20. package/lib/cjs/styles/themes/next-gen/variants/button.js +3 -3
  21. package/lib/cjs/styles/themes/next-gen/variants/rangeCalendar.d.ts +86 -0
  22. package/lib/cjs/styles/themes/next-gen/variants/rangeCalendar.js +98 -0
  23. package/lib/cjs/styles/themes/next-gen/variants/switch.js +1 -1
  24. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +85 -0
  25. package/lib/cjs/styles/themes/next-gen/variants/variants.js +2 -0
  26. package/lib/components/Modal/Modal.styles.js +2 -2
  27. package/lib/components/RangeCalendar/RangeCalendar.styles.js +8 -1
  28. package/lib/components/RangeCalendar/RangeCalendarGrid.js +2 -1
  29. package/lib/components/RangeCalendar/RangeCalendarHeader.js +9 -4
  30. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +5 -5
  31. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +3 -3
  32. package/lib/styles/themeOverrides/nextGenDarkMode/variants/rangeCalendar.js +43 -0
  33. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +2 -0
  34. package/lib/styles/themes/astro/customProperties/index.js +2 -0
  35. package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
  36. package/lib/styles/themes/next-gen/customProperties/index.js +2 -0
  37. package/lib/styles/themes/next-gen/variants/button.js +3 -3
  38. package/lib/styles/themes/next-gen/variants/rangeCalendar.js +91 -0
  39. package/lib/styles/themes/next-gen/variants/switch.js +1 -1
  40. package/lib/styles/themes/next-gen/variants/variants.js +2 -0
  41. package/lib/tsconfig.lib.tsbuildinfo +1 -1
  42. package/package.json +1 -1
@@ -0,0 +1,98 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports["default"] = void 0;
8
+ var calendarBody = {
9
+ py: 'sm',
10
+ borderTop: '1px solid',
11
+ borderTopColor: 'border.base',
12
+ backgroundColor: 'backgroundBase',
13
+ '& > tr:nth-of-type(odd) ': {
14
+ backgroundColor: 'backgroundBase'
15
+ }
16
+ };
17
+ var calendarButton = {
18
+ height: '31px',
19
+ width: '31px',
20
+ fontWeight: '2',
21
+ borderRadius: '50%',
22
+ color: 'text.primary',
23
+ '&.is-hovered': {
24
+ bg: 'active',
25
+ color: 'white',
26
+ cursor: 'pointer'
27
+ },
28
+ '&.is-selected': {
29
+ bg: 'lightteal',
30
+ '&.is-hovered': {
31
+ bg: 'active',
32
+ color: 'white'
33
+ }
34
+ },
35
+ '&.is-range-ends': {
36
+ bg: 'active',
37
+ color: 'white',
38
+ outline: 'none',
39
+ boxShadow: 'none'
40
+ },
41
+ '&.is-selection-start': {
42
+ borderRadius: '50%'
43
+ },
44
+ '&.is-selection-end': {
45
+ borderRadius: '50%'
46
+ },
47
+ '&.is-start-and-end': {
48
+ borderRadius: '50%'
49
+ },
50
+ '&.is-focused': {
51
+ outline: '2px',
52
+ outlineStyle: 'solid',
53
+ outlineColor: 'focus',
54
+ outlineOffset: '2px'
55
+ },
56
+ '&.is-unavailable': {
57
+ backgroundColor: 'gray-300',
58
+ color: 'text.primary'
59
+ },
60
+ '&:not(.is-outside-visible-range)&.is-extreme&:not(.is-completely-disabled)': {
61
+ backgroundColor: 'gray-300',
62
+ color: 'text.primary',
63
+ opacity: 1
64
+ },
65
+ '&.is-disabled': {
66
+ '&.is-hovered': {
67
+ color: 'gray-900',
68
+ backgroundColor: 'unset'
69
+ }
70
+ }
71
+ };
72
+ var calendarCell = {
73
+ height: '36px'
74
+ };
75
+ var columnHeader = {
76
+ color: 'text.primary'
77
+ };
78
+ var calendarContainer = {
79
+ width: '611px',
80
+ textAlign: 'center',
81
+ color: 'backgroundBase',
82
+ border: '1px solid',
83
+ borderColor: 'border.base',
84
+ boxShadow: 'standard',
85
+ borderRadius: '16px',
86
+ p: 'sm'
87
+ };
88
+ var calendarRow = {
89
+ bg: 'backgroundBase'
90
+ };
91
+ var _default = exports["default"] = {
92
+ calendarBody: calendarBody,
93
+ calendarButton: calendarButton,
94
+ calendarCell: calendarCell,
95
+ calendarContainer: calendarContainer,
96
+ columnHeader: columnHeader,
97
+ calendarRow: calendarRow
98
+ };
@@ -9,7 +9,7 @@ var switchable = exports.switchable = {
9
9
  container: {
10
10
  minWidth: '32px',
11
11
  color: 'neutral.80',
12
- bg: 'background.base',
12
+ bg: 'backgroundBase',
13
13
  border: '1px solid',
14
14
  borderColor: 'neutral.80',
15
15
  borderRadius: 9999,
@@ -1327,6 +1327,91 @@ declare const _default: {
1327
1327
  marginLeft: string;
1328
1328
  };
1329
1329
  };
1330
+ rangeCalendar: {
1331
+ calendarBody: {
1332
+ py: string;
1333
+ borderTop: string;
1334
+ borderTopColor: string;
1335
+ backgroundColor: string;
1336
+ '& > tr:nth-of-type(odd) ': {
1337
+ backgroundColor: string;
1338
+ };
1339
+ };
1340
+ calendarButton: {
1341
+ height: string;
1342
+ width: string;
1343
+ fontWeight: string;
1344
+ borderRadius: string;
1345
+ color: string;
1346
+ '&.is-hovered': {
1347
+ bg: string;
1348
+ color: string;
1349
+ cursor: string;
1350
+ };
1351
+ '&.is-selected': {
1352
+ bg: string;
1353
+ '&.is-hovered': {
1354
+ bg: string;
1355
+ color: string;
1356
+ };
1357
+ };
1358
+ '&.is-range-ends': {
1359
+ bg: string;
1360
+ color: string;
1361
+ outline: string;
1362
+ boxShadow: string;
1363
+ };
1364
+ '&.is-selection-start': {
1365
+ borderRadius: string;
1366
+ };
1367
+ '&.is-selection-end': {
1368
+ borderRadius: string;
1369
+ };
1370
+ '&.is-start-and-end': {
1371
+ borderRadius: string;
1372
+ };
1373
+ '&.is-focused': {
1374
+ outline: string;
1375
+ outlineStyle: string;
1376
+ outlineColor: string;
1377
+ outlineOffset: string;
1378
+ };
1379
+ '&.is-unavailable': {
1380
+ backgroundColor: string;
1381
+ color: string;
1382
+ };
1383
+ '&:not(.is-outside-visible-range)&.is-extreme&:not(.is-completely-disabled)': {
1384
+ backgroundColor: string;
1385
+ color: string;
1386
+ opacity: number;
1387
+ };
1388
+ '&.is-disabled': {
1389
+ '&.is-hovered': {
1390
+ color: string;
1391
+ backgroundColor: string;
1392
+ };
1393
+ };
1394
+ };
1395
+ calendarCell: {
1396
+ height: string;
1397
+ };
1398
+ calendarContainer: {
1399
+ width: string;
1400
+ textAlign: string;
1401
+ color: string;
1402
+ border: string;
1403
+ borderColor: string;
1404
+ boxShadow: string;
1405
+ borderRadius: string;
1406
+ p: string;
1407
+ };
1408
+ columnHeader: {
1409
+ color: string;
1410
+ };
1411
+ calendarRow: {
1412
+ bg: string;
1413
+ };
1414
+ };
1330
1415
  response: {
1331
1416
  iconWrapper: {
1332
1417
  border: string;
@@ -34,6 +34,7 @@ var _navbar = require("./navbar");
34
34
  var _panelHeader = _interopRequireDefault(require("./panelHeader"));
35
35
  var _popoverMenu = _interopRequireDefault(require("./popoverMenu"));
36
36
  var _prompt = _interopRequireDefault(require("./prompt"));
37
+ var _rangeCalendar = _interopRequireDefault(require("./rangeCalendar"));
37
38
  var _response = _interopRequireDefault(require("./response"));
38
39
  var _searchNav = _interopRequireDefault(require("./searchNav"));
39
40
  var _stepper = _interopRequireDefault(require("./stepper"));
@@ -427,6 +428,7 @@ var _default = exports["default"] = {
427
428
  popoverMenu: _popoverMenu["default"],
428
429
  progressBar: progressBar,
429
430
  prompt: _prompt["default"],
431
+ rangeCalendar: _rangeCalendar["default"],
430
432
  response: _response["default"],
431
433
  rockerButton: rockerButton,
432
434
  searchNav: _searchNav["default"],
@@ -55,13 +55,13 @@ var content = {
55
55
  };
56
56
  var headingContainer = {
57
57
  position: 'relative',
58
- backgroundColor: 'background.base',
58
+ backgroundColor: 'backgroundBase',
59
59
  px: 'lg',
60
60
  py: 'md'
61
61
  };
62
62
  var header = {
63
63
  position: 'relative',
64
- backgroundColor: 'background.base',
64
+ backgroundColor: 'backgroundBase',
65
65
  pb: 'md'
66
66
  };
67
67
  var body = {};
@@ -63,6 +63,8 @@ var calendarButton = {
63
63
  }
64
64
  };
65
65
  var calendarCell = {
66
+ alignItems: 'center',
67
+ justifyContent: 'center',
66
68
  cursor: 'default',
67
69
  textAlign: 'center',
68
70
  position: 'relative',
@@ -81,6 +83,10 @@ var columnHeader = {
81
83
  width: '40px',
82
84
  height: '40px'
83
85
  };
86
+ var calendarRow = {
87
+ width: '100%',
88
+ flexDirection: 'row !important'
89
+ };
84
90
  var calendarHeaderContainer = {
85
91
  justifyContent: 'space-between',
86
92
  mt: 'sm',
@@ -106,5 +112,6 @@ export default {
106
112
  calendarContainer: calendarContainer,
107
113
  calendarHeader: calendarHeader,
108
114
  calendarHeaderContainer: calendarHeaderContainer,
109
- columnHeader: columnHeader
115
+ columnHeader: columnHeader,
116
+ calendarRow: calendarRow
110
117
  };
@@ -44,7 +44,8 @@ var RangeCalendarGrid = function RangeCalendarGrid(props) {
44
44
  }, _mapInstanceProperty(_context2 = _Array$from(_keysInstanceProperty(_context3 = Array(weeksInMonth)).call(_context3))).call(_context2, function (weekIndex) {
45
45
  var _context4;
46
46
  return ___EmotionJSX(TableRow, {
47
- key: weekIndex
47
+ key: weekIndex,
48
+ variant: "rangeCalendar.calendarRow"
48
49
  }, _mapInstanceProperty(_context4 = getDatesInWeek(weekIndex, startDate)).call(_context4, function (date) {
49
50
  return (date === null || date === void 0 ? void 0 : date.day) && ___EmotionJSX(RangeCalendarCell, {
50
51
  key: date.toString(),
@@ -6,6 +6,7 @@ import ChevronLeftIcon from '@pingux/mdi-react/ChevronLeftIcon';
6
6
  import ChevronRightIcon from '@pingux/mdi-react/ChevronRightIcon';
7
7
  import { useDateFormatter } from '@react-aria/i18n';
8
8
  import { VisuallyHidden } from '@react-aria/visually-hidden';
9
+ import { useGetTheme } from '../../hooks';
9
10
  import { Box, Icon, IconButton, Text } from '../../index';
10
11
  import { jsx as ___EmotionJSX } from "@emotion/react";
11
12
  var RangeCalendarHeader = function RangeCalendarHeader(props) {
@@ -34,6 +35,8 @@ var RangeCalendarHeader = function RangeCalendarHeader(props) {
34
35
  return onFocusChange === null || onFocusChange === void 0 ? void 0 : onFocusChange(false);
35
36
  }
36
37
  };
38
+ var _useGetTheme = useGetTheme(),
39
+ calendarIconSize = _useGetTheme.calendarIconSize;
37
40
  return ___EmotionJSX(Box, {
38
41
  variant: "rangeCalendar.calendarHeaderContainer",
39
42
  isRow: true
@@ -41,17 +44,19 @@ var RangeCalendarHeader = function RangeCalendarHeader(props) {
41
44
  "aria-live": "assertive"
42
45
  }, ___EmotionJSX(Text, null, calendarProps['aria-label'])), ___EmotionJSX(Box, {
43
46
  isRow: true,
44
- variant: "rangeCalendar.calendarHeader"
47
+ variant: "rangeCalendar.calendarHeader",
48
+ color: "magenta"
45
49
  }, ___EmotionJSX(Box, {
46
50
  style: {
47
51
  position: 'absolute',
48
52
  left: '10px'
49
53
  }
50
54
  }, ___EmotionJSX(IconButton, _extends({}, prevButtonProps, {
51
- "aria-label": "Previous month navigation"
55
+ "aria-label": "Previous month navigation",
56
+ color: "pink"
52
57
  }), ___EmotionJSX(Icon, {
53
58
  icon: ChevronLeftIcon,
54
- size: 25,
59
+ size: calendarIconSize,
55
60
  title: {
56
61
  name: 'Chevron Left Icon'
57
62
  }
@@ -81,7 +86,7 @@ var RangeCalendarHeader = function RangeCalendarHeader(props) {
81
86
  "aria-label": "Next month navigation"
82
87
  }), ___EmotionJSX(Icon, {
83
88
  icon: ChevronRightIcon,
84
- size: 25,
89
+ size: calendarIconSize,
85
90
  title: {
86
91
  name: 'Chevron Right Icon'
87
92
  }
@@ -26,7 +26,7 @@ var font = {
26
26
  var hoverDark = chroma.mix('#23282e', 'white', 0.04, 'rgb').hex();
27
27
  var border = {
28
28
  base: chroma.mix('#23282e', 'white', 0.15, 'rgb').hex(),
29
- dark: chroma.mix('#23282e', 'white', 0.25, 'rgb').hex(),
29
+ dark: '#46505C',
30
30
  input: nextGenColors['gray-500'],
31
31
  separator: chroma.mix('#23282e', 'white', 0.15, 'rgb').hex(),
32
32
  attachment: '#39414b',
@@ -42,10 +42,6 @@ var background = {
42
42
  card: '#1a1e22',
43
43
  hover: hoverDark
44
44
  };
45
- var codeEditor = {
46
- backgroundColor: background.secondary,
47
- headerColor: nextGenColors['gray-900']
48
- };
49
45
  var twoTone = {
50
46
  bg: {
51
47
  orange: nextGenColors['orange-500'],
@@ -108,6 +104,10 @@ var backgroundSecondary = nextGenColors['gray-900'];
108
104
  var backgroundCard = '#1a1e22';
109
105
  var backgroundSuggestion = '#ecf0f5';
110
106
  var backgroundHover = hoverDark;
107
+ var codeEditor = {
108
+ backgroundColor: backgroundSecondary,
109
+ headerColor: nextGenColors['gray-900']
110
+ };
111
111
  export var colors = _objectSpread(_objectSpread({
112
112
  border: border,
113
113
  iconWrapper: iconWrapper
@@ -19,7 +19,7 @@ var baseIconButton = {
19
19
  path: {
20
20
  fill: 'gray-400'
21
21
  },
22
- backgroundColor: 'background.secondary'
22
+ backgroundColor: 'backgroundSecondary'
23
23
  },
24
24
  '&.is-pressed': {
25
25
  backgroundColor: 'gray-800',
@@ -46,10 +46,10 @@ var iconButtons = {
46
46
  },
47
47
  searchClearButton: {
48
48
  '&.is-hovered': {
49
- backgroundColor: 'background.secondary'
49
+ backgroundColor: 'backgroundSecondary'
50
50
  },
51
51
  '&.is-pressed': {
52
- backgroundColor: 'background.secondary'
52
+ backgroundColor: 'backgroundSecondary'
53
53
  }
54
54
  },
55
55
  hintButton: hintButton,
@@ -0,0 +1,43 @@
1
+ var calendarButton = {
2
+ color: 'text.secondary',
3
+ '&.is-hovered': {
4
+ bg: 'active',
5
+ color: 'black',
6
+ cursor: 'pointer'
7
+ },
8
+ '&.is-selected': {
9
+ color: 'text.secondary',
10
+ '&.is-hovered': {
11
+ bg: 'active',
12
+ color: 'black'
13
+ }
14
+ },
15
+ '&.is-range-ends': {
16
+ bg: 'active',
17
+ color: 'black',
18
+ outline: 'none',
19
+ boxShadow: 'none'
20
+ },
21
+ '&.is-unavailable': {
22
+ color: 'text.secondary',
23
+ bg: 'border.dark'
24
+ },
25
+ '&:not(.is-outside-visible-range)&.is-extreme&:not(.is-completely-disabled)': {
26
+ color: 'text.secondary',
27
+ bg: 'border.dark',
28
+ opacity: 1
29
+ },
30
+ '&.is-disabled': {
31
+ '&.is-hovered': {
32
+ backgroundColor: 'unset',
33
+ color: 'gray-100'
34
+ }
35
+ }
36
+ };
37
+ var columnHeader = {
38
+ color: 'text.secondary'
39
+ };
40
+ export default {
41
+ calendarButton: calendarButton,
42
+ columnHeader: columnHeader
43
+ };
@@ -7,6 +7,7 @@ import { listView, listViewItem, lisViewItemChart } from './listview';
7
7
  import { menu, menuItem } from './menu';
8
8
  import { message } from './message';
9
9
  import { navBar } from './navbar';
10
+ import rangeCalendar from './rangeCalendar';
10
11
  import skeleton from './skeleton';
11
12
  var listBox = {
12
13
  container: {
@@ -166,6 +167,7 @@ var statusIcon = {
166
167
  };
167
168
  export default {
168
169
  rockerButton: rockerButton,
170
+ rangeCalendar: rangeCalendar,
169
171
  attachment: attachment,
170
172
  avatar: avatar,
171
173
  message: message,
@@ -16,6 +16,7 @@ var buttonLoaderSize = '0.5em';
16
16
  var iFrameContentDivBackgroundColor = '#F7F8FD';
17
17
  var defaultIconColor = 'currentColor';
18
18
  var defaultIconSize = 'sm';
19
+ var calendarIconSize = 25;
19
20
  export var astroThemeValues = {
20
21
  accordionItemDefaultLabelTag: accordionItemDefaultLabelTag,
21
22
  activeColor: activeColor,
@@ -35,5 +36,6 @@ export var astroThemeValues = {
35
36
  defaultLoaderSize: defaultLoaderSize,
36
37
  defaultIconColor: defaultIconColor,
37
38
  defaultIconSize: defaultIconSize,
39
+ calendarIconSize: calendarIconSize,
38
40
  buttonLoaderSize: buttonLoaderSize
39
41
  };
@@ -1,4 +1,4 @@
1
- var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SearchNav', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box'];
1
+ var nextGenConvertedComponents = ['AccordionGridGroup', 'AccordionGroup', 'ArrayField', 'AstroProvider', 'Avatar', 'Badge', 'Base Components', 'Breadcrumbs', 'Button', 'ButtonBar', 'Callout', 'Card', 'CheckboxField', 'CodeView', 'ColorField', 'ComboBoxField', 'CopyText', 'DataTable', 'EnvironmentBreadcrumb', 'GridList', 'HelpHint', 'Icon', 'IconBadge', 'IconButton', 'IconWrapper', 'ImageUploadField', 'Loader', 'Link', 'LinkSelectField', 'ListView', 'ListViewItem', 'Message', 'Messages', 'Modal', 'MultiValuesField', 'MultivaluesField', 'NavBar', 'NavigationHeader', 'NextGen ListViewItem', 'NumberField', 'OverlayPanel', 'PageHeader', 'Pagination', 'PanelHeader', 'PasswordField', 'PopoverMenu', 'ProgressBar', 'RadioField', 'RadioGroupField', 'RangeCalendar', 'RequirementsList', 'RockerButtonGroup', 'SearchField', 'SearchNav', 'SelectField', 'Skeleton', 'SliderField', 'Stepper', 'Sticker Sheet', 'SwitchField', 'StatusIcon', 'Table', 'TableBase', 'Tabs', 'Text', 'TextAreaField', 'TextField', 'TooltipTrigger', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField', 'ServerErrorBoundary', 'Avatar', 'Box'];
2
2
  export var componentSpecificNextGenBlacklist = {
3
3
  AstroProvider: ['Default', 'With Custom Theme Override'],
4
4
  Messages: ['Customization'],
@@ -21,6 +21,7 @@ var iFrameContentDivBackgroundColor = backgroundBaseColor;
21
21
  var defaultIconColor = 'gray-800';
22
22
  var defaultIconSize = 'md';
23
23
  var buttonLoaderSize = 'sm';
24
+ var calendarIconSize = 'sm';
24
25
  export var nextGenThemeValues = _objectSpread({
25
26
  activeColor: activeColor,
26
27
  backgroundBaseColor: backgroundBaseColor,
@@ -34,5 +35,6 @@ export var nextGenThemeValues = _objectSpread({
34
35
  iFrameContentDivBackgroundColor: iFrameContentDivBackgroundColor,
35
36
  rockerButtonGap: '0px',
36
37
  defaultIconSize: defaultIconSize,
38
+ calendarIconSize: calendarIconSize,
37
39
  buttonLoaderSize: buttonLoaderSize
38
40
  }, customSizes);
@@ -122,14 +122,14 @@ var tertiary = _objectSpread(_objectSpread({}, buttonBase), {}, {
122
122
  color: 'font.base',
123
123
  '&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
124
124
  outlineColor: 'gray-700',
125
- backgroundColor: 'background.secondary'
125
+ backgroundColor: 'backgroundSecondary'
126
126
  }),
127
127
  '&.is-pressed': {
128
- backgroundColor: 'background.secondary',
128
+ backgroundColor: 'backgroundSecondary',
129
129
  color: 'font.base'
130
130
  },
131
131
  '&.is-hovered': _objectSpread({
132
- backgroundColor: 'background.secondary',
132
+ backgroundColor: 'backgroundSecondary',
133
133
  color: 'font.base'
134
134
  }, boxShadowNone)
135
135
  });
@@ -0,0 +1,91 @@
1
+ var calendarBody = {
2
+ py: 'sm',
3
+ borderTop: '1px solid',
4
+ borderTopColor: 'border.base',
5
+ backgroundColor: 'backgroundBase',
6
+ '& > tr:nth-of-type(odd) ': {
7
+ backgroundColor: 'backgroundBase'
8
+ }
9
+ };
10
+ var calendarButton = {
11
+ height: '31px',
12
+ width: '31px',
13
+ fontWeight: '2',
14
+ borderRadius: '50%',
15
+ color: 'text.primary',
16
+ '&.is-hovered': {
17
+ bg: 'active',
18
+ color: 'white',
19
+ cursor: 'pointer'
20
+ },
21
+ '&.is-selected': {
22
+ bg: 'lightteal',
23
+ '&.is-hovered': {
24
+ bg: 'active',
25
+ color: 'white'
26
+ }
27
+ },
28
+ '&.is-range-ends': {
29
+ bg: 'active',
30
+ color: 'white',
31
+ outline: 'none',
32
+ boxShadow: 'none'
33
+ },
34
+ '&.is-selection-start': {
35
+ borderRadius: '50%'
36
+ },
37
+ '&.is-selection-end': {
38
+ borderRadius: '50%'
39
+ },
40
+ '&.is-start-and-end': {
41
+ borderRadius: '50%'
42
+ },
43
+ '&.is-focused': {
44
+ outline: '2px',
45
+ outlineStyle: 'solid',
46
+ outlineColor: 'focus',
47
+ outlineOffset: '2px'
48
+ },
49
+ '&.is-unavailable': {
50
+ backgroundColor: 'gray-300',
51
+ color: 'text.primary'
52
+ },
53
+ '&:not(.is-outside-visible-range)&.is-extreme&:not(.is-completely-disabled)': {
54
+ backgroundColor: 'gray-300',
55
+ color: 'text.primary',
56
+ opacity: 1
57
+ },
58
+ '&.is-disabled': {
59
+ '&.is-hovered': {
60
+ color: 'gray-900',
61
+ backgroundColor: 'unset'
62
+ }
63
+ }
64
+ };
65
+ var calendarCell = {
66
+ height: '36px'
67
+ };
68
+ var columnHeader = {
69
+ color: 'text.primary'
70
+ };
71
+ var calendarContainer = {
72
+ width: '611px',
73
+ textAlign: 'center',
74
+ color: 'backgroundBase',
75
+ border: '1px solid',
76
+ borderColor: 'border.base',
77
+ boxShadow: 'standard',
78
+ borderRadius: '16px',
79
+ p: 'sm'
80
+ };
81
+ var calendarRow = {
82
+ bg: 'backgroundBase'
83
+ };
84
+ export default {
85
+ calendarBody: calendarBody,
86
+ calendarButton: calendarButton,
87
+ calendarCell: calendarCell,
88
+ calendarContainer: calendarContainer,
89
+ columnHeader: columnHeader,
90
+ calendarRow: calendarRow
91
+ };
@@ -2,7 +2,7 @@ export var switchable = {
2
2
  container: {
3
3
  minWidth: '32px',
4
4
  color: 'neutral.80',
5
- bg: 'background.base',
5
+ bg: 'backgroundBase',
6
6
  border: '1px solid',
7
7
  borderColor: 'neutral.80',
8
8
  borderRadius: 9999,
@@ -27,6 +27,7 @@ import { navBar } from './navbar';
27
27
  import panelHeader from './panelHeader';
28
28
  import popoverMenu from './popoverMenu';
29
29
  import prompt from './prompt';
30
+ import rangeCalendar from './rangeCalendar';
30
31
  import response from './response';
31
32
  import searchNav from './searchNav';
32
33
  import stepper from './stepper';
@@ -417,6 +418,7 @@ export default {
417
418
  popoverMenu: popoverMenu,
418
419
  progressBar: progressBar,
419
420
  prompt: prompt,
421
+ rangeCalendar: rangeCalendar,
420
422
  response: response,
421
423
  rockerButton: rockerButton,
422
424
  searchNav: searchNav,