@pingux/astro 2.69.0 → 2.70.0-alpha.1
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.
- package/lib/cjs/components/AccordionItem/AccordionItem.d.ts +1 -1
- package/lib/cjs/components/AccordionItem/AccordionItem.js +1 -1
- package/lib/cjs/components/Calendar/Calendar.js +4 -0
- package/lib/cjs/components/Calendar/Calendar.mdx +1 -1
- package/lib/cjs/components/Calendar/Calendar.test.js +1 -4
- package/lib/cjs/components/Calendar/CalendarCell.js +1 -1
- package/lib/cjs/components/DatePicker/DatePicker.test.js +62 -6
- package/lib/cjs/components/Grid/Grid.d.ts +4 -0
- package/lib/cjs/components/Grid/Grid.js +24 -0
- package/lib/cjs/components/Grid/Grid.mdx +13 -0
- package/lib/cjs/components/Grid/Grid.stories.d.ts +5 -0
- package/lib/cjs/components/Grid/Grid.stories.js +72 -0
- package/lib/cjs/components/Grid/Grid.styles.d.ts +2 -0
- package/lib/cjs/components/Grid/Grid.styles.js +9 -0
- package/lib/cjs/components/Grid/Grid.test.d.ts +1 -0
- package/lib/cjs/components/Grid/Grid.test.js +27 -0
- package/lib/cjs/components/Grid/index.d.ts +1 -0
- package/lib/cjs/components/Grid/index.js +14 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.d.ts +7 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.js +100 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.mdx +39 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.d.ts +103 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.stories.js +131 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.styles.d.ts +104 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.styles.js +118 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.test.d.ts +1 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendar.test.js +217 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendarCell.d.ts +4 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendarCell.js +96 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendarGrid.d.ts +4 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendarGrid.js +70 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendarHeader.d.ts +4 -0
- package/lib/cjs/components/RangeCalendar/RangeCalendarHeader.js +85 -0
- package/lib/cjs/components/RangeCalendar/index.d.ts +2 -0
- package/lib/cjs/components/RangeCalendar/index.js +33 -0
- package/lib/cjs/components/Tabs/Tabs.js +10 -5
- package/lib/cjs/components/Tabs/Tabs.stories.js +4 -2
- package/lib/cjs/index.d.ts +5 -2
- package/lib/cjs/index.js +92 -65
- package/lib/cjs/styles/theme.js +1 -0
- package/lib/cjs/styles/variants/index.js +8 -0
- package/lib/cjs/styles/variants/variants.js +2 -0
- package/lib/cjs/types/calendar.d.ts +51 -16
- package/lib/cjs/types/grid.d.ts +21 -0
- package/lib/cjs/types/grid.js +6 -0
- package/lib/cjs/types/index.d.ts +1 -0
- package/lib/cjs/types/index.js +43 -32
- package/lib/components/AccordionItem/AccordionItem.js +0 -3
- package/lib/components/Calendar/Calendar.js +4 -0
- package/lib/components/Calendar/Calendar.mdx +1 -1
- package/lib/components/Calendar/Calendar.test.js +1 -4
- package/lib/components/Calendar/CalendarCell.js +1 -1
- package/lib/components/DatePicker/DatePicker.test.js +62 -6
- package/lib/components/Grid/Grid.js +14 -0
- package/lib/components/Grid/Grid.mdx +13 -0
- package/lib/components/Grid/Grid.stories.js +62 -0
- package/lib/components/Grid/Grid.styles.js +1 -0
- package/lib/components/Grid/Grid.test.js +24 -0
- package/lib/components/Grid/index.js +1 -0
- package/lib/components/RangeCalendar/RangeCalendar.js +86 -0
- package/lib/components/RangeCalendar/RangeCalendar.mdx +39 -0
- package/lib/components/RangeCalendar/RangeCalendar.stories.js +112 -0
- package/lib/components/RangeCalendar/RangeCalendar.styles.js +110 -0
- package/lib/components/RangeCalendar/RangeCalendar.test.js +208 -0
- package/lib/components/RangeCalendar/RangeCalendarCell.js +82 -0
- package/lib/components/RangeCalendar/RangeCalendarGrid.js +61 -0
- package/lib/components/RangeCalendar/RangeCalendarHeader.js +76 -0
- package/lib/components/RangeCalendar/index.js +2 -0
- package/lib/components/Tabs/Tabs.js +10 -5
- package/lib/components/Tabs/Tabs.stories.js +4 -2
- package/lib/index.js +5 -2
- package/lib/styles/theme.js +2 -1
- package/lib/styles/variants/index.js +1 -0
- package/lib/styles/variants/variants.js +2 -0
- package/lib/types/grid.js +1 -0
- package/lib/types/index.js +1 -0
- package/package.json +13 -10
@@ -0,0 +1,82 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import _objectWithoutProperties from "@babel/runtime-corejs3/helpers/esm/objectWithoutProperties";
|
3
|
+
var _excluded = ["state", "date", "currentMonth", "className"];
|
4
|
+
import React, { forwardRef } from 'react';
|
5
|
+
import { isSameDay, isSameMonth } from '@internationalized/date';
|
6
|
+
import { useCalendarCell } from '@react-aria/calendar';
|
7
|
+
import { useFocusRing } from '@react-aria/focus';
|
8
|
+
import { useHover, usePress } from '@react-aria/interactions';
|
9
|
+
import { mergeProps } from '@react-aria/utils';
|
10
|
+
import { useLocalOrForwardRef, useStatusClasses } from '../../hooks';
|
11
|
+
import { Box, TableCell } from '../../index';
|
12
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
13
|
+
var RangeCalendarCell = /*#__PURE__*/forwardRef(function (props, ref) {
|
14
|
+
var state = props.state,
|
15
|
+
date = props.date,
|
16
|
+
currentMonth = props.currentMonth,
|
17
|
+
className = props.className,
|
18
|
+
others = _objectWithoutProperties(props, _excluded);
|
19
|
+
var cellRef = useLocalOrForwardRef(ref);
|
20
|
+
var _useCalendarCell = useCalendarCell({
|
21
|
+
date: date
|
22
|
+
}, state, cellRef),
|
23
|
+
cellProps = _useCalendarCell.cellProps,
|
24
|
+
buttonProps = _useCalendarCell.buttonProps,
|
25
|
+
isSelected = _useCalendarCell.isSelected,
|
26
|
+
isOutsideVisibleRange = _useCalendarCell.isOutsideVisibleRange,
|
27
|
+
isUnavailable = _useCalendarCell.isUnavailable,
|
28
|
+
formattedDate = _useCalendarCell.formattedDate,
|
29
|
+
isDisabled = _useCalendarCell.isDisabled;
|
30
|
+
var highlightedRange = state.highlightedRange;
|
31
|
+
var isOutsideMonth = !isSameMonth(currentMonth, date);
|
32
|
+
|
33
|
+
// The start and end date of the selected range will have
|
34
|
+
// an emphasized appearance.
|
35
|
+
var isSelectionStart = highlightedRange ? isSameDay(date, highlightedRange.start) : isSelected;
|
36
|
+
var isSelectionEnd = highlightedRange ? isSameDay(date, highlightedRange.end) : isSelected;
|
37
|
+
var _useHover = useHover({}),
|
38
|
+
hoverProps = _useHover.hoverProps,
|
39
|
+
isHovered = _useHover.isHovered;
|
40
|
+
var _usePress = usePress({
|
41
|
+
ref: cellRef
|
42
|
+
}),
|
43
|
+
pressProps = _usePress.pressProps,
|
44
|
+
isPressed = _usePress.isPressed;
|
45
|
+
var _useFocusRing = useFocusRing({
|
46
|
+
within: true
|
47
|
+
}),
|
48
|
+
focusWithinProps = _useFocusRing.focusProps,
|
49
|
+
isFocusVisible = _useFocusRing.isFocusVisible;
|
50
|
+
var mergedProps = mergeProps(cellProps, hoverProps, pressProps, focusWithinProps);
|
51
|
+
var _useStatusClasses = useStatusClasses(className, {
|
52
|
+
isSelected: isSelected,
|
53
|
+
isExtreme: isDisabled,
|
54
|
+
isUnavailable: isUnavailable,
|
55
|
+
isPressed: isPressed,
|
56
|
+
isFocused: isFocusVisible,
|
57
|
+
isHovered: isHovered,
|
58
|
+
isOutsideVisibleRange: isOutsideVisibleRange,
|
59
|
+
isCompletelyDisabled: state.isDisabled,
|
60
|
+
isRangeEnds: isSelectionStart || isSelectionEnd,
|
61
|
+
isStartAndEnd: isSelectionStart && isSelectionEnd,
|
62
|
+
isSelectionStart: isSelectionStart,
|
63
|
+
isSelectionEnd: isSelectionEnd
|
64
|
+
}),
|
65
|
+
classNames = _useStatusClasses.classNames;
|
66
|
+
return ___EmotionJSX(TableCell, _extends({}, mergedProps, {
|
67
|
+
variant: "rangeCalendar.calendarCell"
|
68
|
+
}), ___EmotionJSX(Box, {
|
69
|
+
style: {
|
70
|
+
display: isOutsideMonth ? 'none' : 'flex'
|
71
|
+
}
|
72
|
+
}, ___EmotionJSX(Box, _extends({
|
73
|
+
variant: "rangeCalendar.calendarButton",
|
74
|
+
ref: cellRef
|
75
|
+
}, mergeProps(buttonProps, others), {
|
76
|
+
isSelected: isSelected,
|
77
|
+
isDisabled: isDisabled,
|
78
|
+
isUnavailable: isUnavailable,
|
79
|
+
className: classNames
|
80
|
+
}), formattedDate)));
|
81
|
+
});
|
82
|
+
export default RangeCalendarCell;
|
@@ -0,0 +1,61 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import _concatInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/concat";
|
3
|
+
import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
|
4
|
+
import _Array$from from "@babel/runtime-corejs3/core-js-stable/array/from";
|
5
|
+
import _keysInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/keys";
|
6
|
+
import React from 'react';
|
7
|
+
import { endOfMonth, getWeeksInMonth } from '@internationalized/date';
|
8
|
+
import { useCalendarGrid } from '@react-aria/calendar';
|
9
|
+
import { useLocale } from '@react-aria/i18n';
|
10
|
+
import { Table, TableBody, TableCell, TableHead, TableRow } from '../../index';
|
11
|
+
import RangeCalendarCell from './RangeCalendarCell';
|
12
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
13
|
+
var RangeCalendarGrid = function RangeCalendarGrid(props) {
|
14
|
+
var _context2, _context3;
|
15
|
+
var state = props.state,
|
16
|
+
_props$offset = props.offset,
|
17
|
+
offset = _props$offset === void 0 ? {} : _props$offset;
|
18
|
+
var visibleRange = state.visibleRange,
|
19
|
+
getDatesInWeek = state.getDatesInWeek;
|
20
|
+
var _useLocale = useLocale(),
|
21
|
+
locale = _useLocale.locale;
|
22
|
+
var startDate = visibleRange.start.add(offset);
|
23
|
+
var endDate = endOfMonth(startDate);
|
24
|
+
var _useCalendarGrid = useCalendarGrid({
|
25
|
+
startDate: startDate,
|
26
|
+
endDate: endDate
|
27
|
+
}, state),
|
28
|
+
gridProps = _useCalendarGrid.gridProps,
|
29
|
+
headerProps = _useCalendarGrid.headerProps,
|
30
|
+
weekDays = _useCalendarGrid.weekDays;
|
31
|
+
var weeksInMonth = getWeeksInMonth(startDate, locale);
|
32
|
+
var getKey = function getKey(day, index) {
|
33
|
+
var _context;
|
34
|
+
return _concatInstanceProperty(_context = "".concat(day, "-")).call(_context, index);
|
35
|
+
};
|
36
|
+
return ___EmotionJSX(Table, _extends({}, gridProps, {
|
37
|
+
role: "grid"
|
38
|
+
}), ___EmotionJSX(TableHead, headerProps, ___EmotionJSX(TableRow, null, _mapInstanceProperty(weekDays).call(weekDays, function (day, index) {
|
39
|
+
return ___EmotionJSX(TableCell, {
|
40
|
+
isHeading: true,
|
41
|
+
variant: "rangeCalendar.columnHeader",
|
42
|
+
key: getKey(day, index),
|
43
|
+
role: "columnheader"
|
44
|
+
}, day);
|
45
|
+
}))), ___EmotionJSX(TableBody, {
|
46
|
+
variant: "rangeCalendar.calendarBody"
|
47
|
+
}, _mapInstanceProperty(_context2 = _Array$from(_keysInstanceProperty(_context3 = Array(weeksInMonth)).call(_context3))).call(_context2, function (weekIndex) {
|
48
|
+
var _context4;
|
49
|
+
return ___EmotionJSX(TableRow, {
|
50
|
+
key: weekIndex
|
51
|
+
}, _mapInstanceProperty(_context4 = getDatesInWeek(weekIndex, startDate)).call(_context4, function (date) {
|
52
|
+
return (date === null || date === void 0 ? void 0 : date.day) && ___EmotionJSX(RangeCalendarCell, {
|
53
|
+
key: date.toString(),
|
54
|
+
state: state,
|
55
|
+
date: date,
|
56
|
+
currentMonth: startDate
|
57
|
+
});
|
58
|
+
}));
|
59
|
+
})));
|
60
|
+
};
|
61
|
+
export default RangeCalendarGrid;
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
|
2
|
+
import React from 'react';
|
3
|
+
import ChevronLeftIcon from '@pingux/mdi-react/ChevronLeftIcon';
|
4
|
+
import ChevronRightIcon from '@pingux/mdi-react/ChevronRightIcon';
|
5
|
+
import { useDateFormatter } from '@react-aria/i18n';
|
6
|
+
import { VisuallyHidden } from '@react-aria/visually-hidden';
|
7
|
+
import { Box, Icon, IconButton, Text } from '../../index';
|
8
|
+
import { jsx as ___EmotionJSX } from "@emotion/react";
|
9
|
+
var RangeCalendarHeader = function RangeCalendarHeader(props) {
|
10
|
+
var state = props.state,
|
11
|
+
calendarProps = props.calendarProps,
|
12
|
+
prevButtonProps = props.prevButtonProps,
|
13
|
+
nextButtonProps = props.nextButtonProps;
|
14
|
+
var monthDateFormatter = useDateFormatter({
|
15
|
+
month: 'long',
|
16
|
+
year: 'numeric',
|
17
|
+
timeZone: state.timeZone
|
18
|
+
});
|
19
|
+
|
20
|
+
// to remove warning for unknown event handler property `onFocusChange`.
|
21
|
+
delete prevButtonProps.onFocusChange;
|
22
|
+
delete nextButtonProps.onFocusChange;
|
23
|
+
return ___EmotionJSX(Box, {
|
24
|
+
variant: "rangeCalendar.calendarHeaderContainer",
|
25
|
+
isRow: true
|
26
|
+
}, ___EmotionJSX(VisuallyHidden, {
|
27
|
+
"aria-live": "assertive"
|
28
|
+
}, ___EmotionJSX(Text, null, calendarProps['aria-label'])), ___EmotionJSX(Box, {
|
29
|
+
isRow: true,
|
30
|
+
variant: "rangeCalendar.calendarHeader"
|
31
|
+
}, ___EmotionJSX(Box, {
|
32
|
+
style: {
|
33
|
+
position: 'absolute',
|
34
|
+
left: '10px'
|
35
|
+
}
|
36
|
+
}, ___EmotionJSX(IconButton, _extends({}, prevButtonProps, {
|
37
|
+
"aria-label": "Previous month navigation"
|
38
|
+
}), ___EmotionJSX(Icon, {
|
39
|
+
icon: ChevronLeftIcon,
|
40
|
+
size: 25,
|
41
|
+
title: {
|
42
|
+
name: 'Chevron Left Icon'
|
43
|
+
}
|
44
|
+
}))), ___EmotionJSX(Text, {
|
45
|
+
"aria-hidden": true,
|
46
|
+
variant: "itemTitle",
|
47
|
+
role: "heading",
|
48
|
+
"aria-level": 3,
|
49
|
+
fontWeight: 3
|
50
|
+
}, monthDateFormatter.format(state.visibleRange.start.toDate(state.timeZone)))), ___EmotionJSX(Box, {
|
51
|
+
isRow: true,
|
52
|
+
variant: "rangeCalendar.calendarHeader"
|
53
|
+
}, ___EmotionJSX(Text, {
|
54
|
+
"aria-hidden": true,
|
55
|
+
variant: "itemTitle",
|
56
|
+
role: "heading",
|
57
|
+
"aria-level": 3,
|
58
|
+
fontWeight: 3
|
59
|
+
}, monthDateFormatter.format(state.visibleRange.start.add({
|
60
|
+
months: 1
|
61
|
+
}).toDate(state.timeZone))), ___EmotionJSX(Box, {
|
62
|
+
style: {
|
63
|
+
position: 'absolute',
|
64
|
+
right: '10px'
|
65
|
+
}
|
66
|
+
}, ___EmotionJSX(IconButton, _extends({}, nextButtonProps, {
|
67
|
+
"aria-label": "Next month navigation"
|
68
|
+
}), ___EmotionJSX(Icon, {
|
69
|
+
icon: ChevronRightIcon,
|
70
|
+
size: 25,
|
71
|
+
title: {
|
72
|
+
name: 'Chevron Right Icon'
|
73
|
+
}
|
74
|
+
})))));
|
75
|
+
};
|
76
|
+
export default RangeCalendarHeader;
|
@@ -26,6 +26,7 @@ import { CollectionTab } from '../Tab';
|
|
26
26
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
27
27
|
export var TabsContext = /*#__PURE__*/React.createContext({});
|
28
28
|
var TabPanel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
29
|
+
var _state$selectedItem;
|
29
30
|
var state = _ref.state,
|
30
31
|
props = _objectWithoutProperties(_ref, _excluded);
|
31
32
|
var children = props.children,
|
@@ -33,13 +34,18 @@ var TabPanel = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
33
34
|
var tabPanelRef = useLocalOrForwardRef(ref);
|
34
35
|
var _ref2 = useTabPanel(props, state, tabPanelRef),
|
35
36
|
raTabPanelProps = _ref2.tabPanelProps;
|
37
|
+
if (state !== null && state !== void 0 && (_state$selectedItem = state.selectedItem) !== null && _state$selectedItem !== void 0 && (_state$selectedItem = _state$selectedItem.props) !== null && _state$selectedItem !== void 0 && _state$selectedItem.isListItem) {
|
38
|
+
var _tabPanelRef$current, _state$selectedItem2;
|
39
|
+
var parentTab = (_tabPanelRef$current = tabPanelRef.current) === null || _tabPanelRef$current === void 0 || (_tabPanelRef$current = _tabPanelRef$current.previousElementSibling) === null || _tabPanelRef$current === void 0 ? void 0 : _tabPanelRef$current.querySelector("[name=\"".concat(state === null || state === void 0 || (_state$selectedItem2 = state.selectedItem) === null || _state$selectedItem2 === void 0 || (_state$selectedItem2 = _state$selectedItem2.props) === null || _state$selectedItem2 === void 0 ? void 0 : _state$selectedItem2.parentName, "\"]"));
|
40
|
+
raTabPanelProps['aria-labelledby'] = parentTab === null || parentTab === void 0 ? void 0 : parentTab.id;
|
41
|
+
}
|
36
42
|
return ___EmotionJSX(Box, _extends({}, tabPanelProps, raTabPanelProps, {
|
37
43
|
ref: tabPanelRef,
|
38
44
|
role: "tabpanel"
|
39
45
|
}), children);
|
40
46
|
});
|
41
47
|
var Tabs = /*#__PURE__*/forwardRef(function (props, ref) {
|
42
|
-
var _context4, _context5, _state$
|
48
|
+
var _context4, _context5, _state$selectedItem3, _state$selectedItem4, _state$selectedItem5;
|
43
49
|
var isDisabled = props.isDisabled,
|
44
50
|
items = props.items,
|
45
51
|
onSelectionChange = props.onSelectionChange,
|
@@ -71,8 +77,7 @@ var Tabs = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
71
77
|
items: mode === 'list' ? allItems : items
|
72
78
|
}));
|
73
79
|
var _useTabList = useTabList(props, state, tabListRef),
|
74
|
-
raTabListProps = _useTabList.tabListProps;
|
75
|
-
|
80
|
+
raTabListProps = _useTabList.tabListProps;
|
76
81
|
return ___EmotionJSX(TabsContext.Provider, {
|
77
82
|
value: state
|
78
83
|
}, ___EmotionJSX(Box, others, ___EmotionJSX(Box, _extends({
|
@@ -96,10 +101,10 @@ var Tabs = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
96
101
|
slots: item === null || item === void 0 || (_item$props2 = item.props) === null || _item$props2 === void 0 ? void 0 : _item$props2.slots
|
97
102
|
});
|
98
103
|
})), ___EmotionJSX(TabPanel, {
|
99
|
-
key: (_state$
|
104
|
+
key: (_state$selectedItem3 = state.selectedItem) === null || _state$selectedItem3 === void 0 ? void 0 : _state$selectedItem3.key,
|
100
105
|
state: state,
|
101
106
|
tabPanelProps: tabPanelProps
|
102
|
-
}, ((_state$
|
107
|
+
}, ((_state$selectedItem4 = state.selectedItem) === null || _state$selectedItem4 === void 0 ? void 0 : _state$selectedItem4.props.children) || ((_state$selectedItem5 = state.selectedItem) === null || _state$selectedItem5 === void 0 ? void 0 : _state$selectedItem5.props.content))));
|
103
108
|
});
|
104
109
|
Tabs.defaultProps = {
|
105
110
|
isDisabled: false,
|
@@ -212,12 +212,14 @@ export var WithList = function WithList() {
|
|
212
212
|
key: 'tab1list',
|
213
213
|
name: 'Tab 1 list',
|
214
214
|
children: 'Tab 1 from list',
|
215
|
-
role: 'menuitemradio'
|
215
|
+
role: 'menuitemradio',
|
216
|
+
parentName: 'Tab 4'
|
216
217
|
}, {
|
217
218
|
key: 'tab2list',
|
218
219
|
name: 'Tab 2 list',
|
219
220
|
children: 'Tab 2 from list',
|
220
|
-
role: 'menuitemradio'
|
221
|
+
role: 'menuitemradio',
|
222
|
+
parentName: 'Tab 4'
|
221
223
|
}]
|
222
224
|
}]);
|
223
225
|
return ___EmotionJSX(Tabs, {
|
package/lib/index.js
CHANGED
@@ -59,6 +59,8 @@ export * from './components/CollapsiblePanelItem';
|
|
59
59
|
export { default as ColorField } from './components/ColorField';
|
60
60
|
export { default as ComboBoxField } from './components/ComboBoxField';
|
61
61
|
export { default as CopyText } from './components/CopyText';
|
62
|
+
export { default as DataTable } from './components/DataTable';
|
63
|
+
export * from './components/DataTable';
|
62
64
|
export { default as DatePicker } from './components/DatePicker';
|
63
65
|
export { default as DateField } from './components/DatePicker/DateField';
|
64
66
|
export { default as EditButton } from './components/EditButton';
|
@@ -66,6 +68,7 @@ export { default as EnvironmentBreadcrumb } from './components/EnvironmentBreadc
|
|
66
68
|
export { default as FieldHelperText } from './components/FieldHelperText';
|
67
69
|
export * from './components/FieldHelperText';
|
68
70
|
export { default as FileInputField } from './components/FileInputField';
|
71
|
+
export { default as Grid } from './components/Grid';
|
69
72
|
export { default as HelpHint } from './components/HelpHint';
|
70
73
|
export * from './components/HelpHint';
|
71
74
|
export { default as Icon } from './components/Icon';
|
@@ -131,6 +134,8 @@ export { default as RadioField } from './components/RadioField';
|
|
131
134
|
export * from './components/RadioField';
|
132
135
|
export { default as RadioGroupField } from './components/RadioGroupField';
|
133
136
|
export * from './components/RadioGroupField';
|
137
|
+
export { default as RangeCalendar } from './components/RangeCalendar';
|
138
|
+
export * from './components/RangeCalendar';
|
134
139
|
export { default as RequirementsList } from './components/RequirementsList';
|
135
140
|
export * from './components/RequirementsList';
|
136
141
|
export { default as RockerButton } from './components/RockerButton';
|
@@ -183,8 +188,6 @@ export * from './components/TreeView';
|
|
183
188
|
|
184
189
|
/* eslint-enable import/export */
|
185
190
|
|
186
|
-
export { default as DataTable } from './components/DataTable';
|
187
|
-
export * from './components/DataTable';
|
188
191
|
export * from './types';
|
189
192
|
export { OverlayProvider, useOverlayPosition, useOverlayTrigger } from 'react-aria';
|
190
193
|
export { Item, Section, useOverlayTriggerState, useTreeData } from 'react-stately';
|
package/lib/styles/theme.js
CHANGED
@@ -14,7 +14,7 @@ import colors, { accent, focus, line, shadow } from './colors';
|
|
14
14
|
import forms from './forms';
|
15
15
|
import spacing from './spacing';
|
16
16
|
import { fontSizes, fontWeights, textColors } from './text';
|
17
|
-
import { badges, buttons, cards, images, links, text, variants } from './variants';
|
17
|
+
import { badges, buttons, cards, grids, images, links, text, variants } from './variants';
|
18
18
|
export default {
|
19
19
|
name: 'Astro',
|
20
20
|
space: spacing,
|
@@ -49,6 +49,7 @@ export default {
|
|
49
49
|
forms: forms,
|
50
50
|
text: text,
|
51
51
|
images: images,
|
52
|
+
grids: grids,
|
52
53
|
buttons: buttons,
|
53
54
|
badges: badges,
|
54
55
|
cards: cards,
|
@@ -16,6 +16,7 @@ export var buttons = _objectSpread(_objectSpread({}, defaultButtons), {}, {
|
|
16
16
|
});
|
17
17
|
export { default as badges } from '../../components/Badge/Badge.styles';
|
18
18
|
export { default as cards } from '../../components/Card/Card.styles';
|
19
|
+
export { default as grids } from '../../components/Grid/Grid.styles';
|
19
20
|
export { default as images } from '../../components/Image/Image.styles';
|
20
21
|
export { default as links } from '../../components/Link/Link.styles';
|
21
22
|
export * from '../../components/Text/Text.styles';
|
@@ -39,6 +39,7 @@ import overlayPanel from '../../components/OverlayPanel/OverlayPanel.styles';
|
|
39
39
|
import panelHeader from '../../components/PanelHeader/PanelHeader.styles';
|
40
40
|
import popoverMenu from '../../components/PopoverMenu/PopoverMenu.styles';
|
41
41
|
import progressBar from '../../components/ProgressBar/ProgressBar.styles';
|
42
|
+
import rangeCalendar from '../../components/RangeCalendar/RangeCalendar.styles';
|
42
43
|
import rockerButton from '../../components/RockerButton/RockerButton.styles';
|
43
44
|
import scrollBox from '../../components/ScrollBox/ScrollBox.styles';
|
44
45
|
import separator from '../../components/Separator/Separator.styles';
|
@@ -56,6 +57,7 @@ export default _objectSpread({
|
|
56
57
|
breadcrumb: breadcrumb,
|
57
58
|
buttonBar: buttonBar,
|
58
59
|
calendar: calendar,
|
60
|
+
rangeCalendar: rangeCalendar,
|
59
61
|
callout: callout,
|
60
62
|
codeView: codeView,
|
61
63
|
collapsiblePanel: collapsiblePanel,
|
@@ -0,0 +1 @@
|
|
1
|
+
export {};
|
package/lib/types/index.js
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@pingux/astro",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.70.0-alpha.1",
|
4
4
|
"description": "React component library for Ping Identity's design system",
|
5
5
|
"repository": {
|
6
6
|
"type": "git",
|
@@ -41,17 +41,17 @@
|
|
41
41
|
"@emotion/react": "^11.1.1",
|
42
42
|
"@emotion/styled": "^11.1.1",
|
43
43
|
"@faker-js/faker": "~7.5.0",
|
44
|
-
"@internationalized/date": "3.5.
|
44
|
+
"@internationalized/date": "^3.5.3",
|
45
45
|
"@mdx-js/react": "^1.6.22",
|
46
46
|
"@pingux/mdi-react": "^1.2.0",
|
47
47
|
"@react-aria/accordion": "~3.0.0-alpha.11",
|
48
48
|
"@react-aria/breadcrumbs": "^3.1.4",
|
49
49
|
"@react-aria/button": "^3.2.1",
|
50
|
-
"@react-aria/calendar": "^3.
|
50
|
+
"@react-aria/calendar": "^3.5.7",
|
51
51
|
"@react-aria/checkbox": "^3.2.0",
|
52
52
|
"@react-aria/color": "~3.0.0-beta.15",
|
53
53
|
"@react-aria/combobox": "^3.0.0",
|
54
|
-
"@react-aria/datepicker": "^3.
|
54
|
+
"@react-aria/datepicker": "^3.10.0",
|
55
55
|
"@react-aria/dialog": "^3.1.2",
|
56
56
|
"@react-aria/dnd": "^3.5.0",
|
57
57
|
"@react-aria/focus": "~3.8.0",
|
@@ -74,26 +74,29 @@
|
|
74
74
|
"@react-aria/virtualizer": "~3.8.0",
|
75
75
|
"@react-aria/visually-hidden": "~3.6.0",
|
76
76
|
"@react-spectrum/utils": "~3.6.1",
|
77
|
-
"@react-stately/calendar": "3.0
|
77
|
+
"@react-stately/calendar": "^3.5.0",
|
78
78
|
"@react-stately/color": "~3.1.1",
|
79
|
-
"@react-stately/datepicker": "^3.
|
79
|
+
"@react-stately/datepicker": "^3.9.3",
|
80
80
|
"@react-stately/dnd": "^3.2.6",
|
81
81
|
"@react-stately/grid": "~3.3.1",
|
82
82
|
"@react-stately/layout": "^3.13.4",
|
83
|
-
"@react-stately/list": "
|
83
|
+
"@react-stately/list": "^3.10.4",
|
84
84
|
"@react-stately/overlays": "^3.6.4",
|
85
85
|
"@react-stately/select": "^3.6.4",
|
86
|
-
"@react-stately/selection": "^3.
|
86
|
+
"@react-stately/selection": "^3.15.0",
|
87
87
|
"@react-stately/table": "^3.9.0",
|
88
88
|
"@react-stately/tabs": "^3.6.3",
|
89
89
|
"@react-stately/toggle": "^3.7.3",
|
90
90
|
"@react-stately/tree": "^3.7.4",
|
91
91
|
"@react-stately/virtualizer": "~3.6.5",
|
92
92
|
"@react-types/accordion": "^3.0.0-alpha.18",
|
93
|
+
"@react-types/button": "^3.9.3",
|
94
|
+
"@react-types/calendar": "^3.4.5",
|
93
95
|
"@react-types/checkbox": "^3.8.0",
|
96
|
+
"@react-types/datepicker": "^3.7.3",
|
94
97
|
"@react-types/grid": "^3.2.4",
|
95
98
|
"@react-types/select": "^3.9.1",
|
96
|
-
"@react-types/shared": "^3.
|
99
|
+
"@react-types/shared": "^3.23.1",
|
97
100
|
"@react-types/table": "^3.9.3",
|
98
101
|
"@storybook/addon-actions": "^7.1.0",
|
99
102
|
"@storybook/api": "^7.1.0",
|
@@ -123,7 +126,7 @@
|
|
123
126
|
"react-calendar": "^3.4.0",
|
124
127
|
"react-color": "^2.19.3",
|
125
128
|
"react-dropzone": "^11.4.2",
|
126
|
-
"react-stately": "^3.
|
129
|
+
"react-stately": "^3.31.0",
|
127
130
|
"recharts": "^2.7.0",
|
128
131
|
"regenerator-runtime": "^0.13.7",
|
129
132
|
"styled-system": "^5.1.5",
|