@spothero/ui 17.1.0-beta.5 → 17.1.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.
- package/dist/components/Alert/Alert.js +29 -18
- package/dist/components/Alert/Alert.stories.js +56 -39
- package/dist/components/FormControl/FormControl.js +3 -2
- package/dist/components/Modal/Modal.js +11 -2
- package/dist/components/Toast/Toast.stories.js +102 -0
- package/dist/components/index.js +7 -16
- package/dist/components/styles.js +12 -20
- package/dist/theme/base/index.js +21 -1
- package/dist/{components/Alert/styles/index.js → theme/base/notifications.js} +79 -65
- package/package.json +6 -6
- package/dist/components/Datepicker/Range/DatepickerRange.js +0 -67
- package/dist/components/Datepicker/Range/DatepickerRange.stories.js +0 -427
- package/dist/components/Datepicker/Range/DatepickerRangeContext.js +0 -80
- package/dist/components/Datepicker/Range/components/DateRow.js +0 -261
- package/dist/components/Datepicker/Range/components/DatepickerRangeContainer.js +0 -227
- package/dist/components/Datepicker/Range/components/DatepickerRangeControls.js +0 -80
- package/dist/components/Datepicker/Range/components/index.js +0 -31
- package/dist/components/Datepicker/Range/utils/propTypes.js +0 -158
- package/dist/components/Datepicker/Single/Datepicker.stories.js +0 -314
- package/dist/components/Datepicker/Single/DatepickerContext.js +0 -65
- package/dist/components/Datepicker/Single/DatepickerSingle.js +0 -54
- package/dist/components/Datepicker/Single/components/DateRow.js +0 -146
- package/dist/components/Datepicker/Single/components/DatepickerContainer.js +0 -167
- package/dist/components/Datepicker/Single/components/DatepickerControl.js +0 -51
- package/dist/components/Datepicker/Single/components/index.js +0 -31
- package/dist/components/Datepicker/Single/utils/propTypes.js +0 -88
- package/dist/components/Datepicker/common/components/DatepickerDays.js +0 -111
- package/dist/components/Datepicker/common/components/DatepickerHeader.js +0 -118
- package/dist/components/Datepicker/common/components/DatepickerInput.js +0 -126
- package/dist/components/Datepicker/common/components/WithPopoverAnchor.js +0 -23
- package/dist/components/Datepicker/common/components/WithPortal.js +0 -26
- package/dist/components/Datepicker/common/components/index.js +0 -39
- package/dist/components/Datepicker/common/utils/constants.js +0 -43
- package/dist/components/Datepicker/common/utils/dateRowCalculations.js +0 -92
- package/dist/components/Datepicker/common/utils/generalCalculations.js +0 -71
- package/dist/components/Datepicker/common/utils/getWeeksOfMonth.js +0 -51
- package/dist/components/Datepicker/common/utils/sharedPropTypes.js +0 -147
- package/dist/components/Datepicker/index.js +0 -23
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.inputComponentOverridesProps = exports.datepickerHeaderOverridesProps = exports.datepickerDaysOverridesProps = exports.datepickerBodyOverridesProps = exports.dateRowOverridesProps = void 0;
|
|
9
|
-
|
|
10
|
-
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
|
-
var inputComponentOverridesProps = _propTypes.default.shape({
|
|
13
|
-
/**
|
|
14
|
-
* Overrides for the parent Box component that wraps the Inputs and Form control,
|
|
15
|
-
* see https://chakra-ui.com/docs/components/box/usage for more
|
|
16
|
-
*/
|
|
17
|
-
inputGroupContainer: _propTypes.default.object,
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Overrides for the parent FormControl component,
|
|
21
|
-
* see https://chakra-ui.com/docs/components/form-control/props for more
|
|
22
|
-
*/
|
|
23
|
-
formControl: _propTypes.default.object,
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Overrides for the FormLabel component,
|
|
27
|
-
* see https://chakra-ui.com/docs/components/form-control/props and/or https://chakra-ui.com/docs/components/form-control/usage for more
|
|
28
|
-
*/
|
|
29
|
-
formLabel: _propTypes.default.object,
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* Overrides for the InputGroup component,
|
|
33
|
-
* see https://chakra-ui.com/docs/components/input/usage#left-and-right-addons for more
|
|
34
|
-
*/
|
|
35
|
-
inputGroup: _propTypes.default.object,
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Overrides for the Input component,
|
|
39
|
-
* see https://chakra-ui.com/docs/components/input/props for more
|
|
40
|
-
*/
|
|
41
|
-
input: _propTypes.default.object,
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Overrides for the InputRightElement component,
|
|
45
|
-
* see https://chakra-ui.com/docs/components/input/usage#add-elements-inside-input for more
|
|
46
|
-
*/
|
|
47
|
-
inputRightElement: _propTypes.default.object,
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Overrides for the FormControl ErrorMessage component,
|
|
51
|
-
* see https://chakra-ui.com/docs/components/form-control/usage#error-message for more
|
|
52
|
-
*/
|
|
53
|
-
formErrorMessage: _propTypes.default.object
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
exports.inputComponentOverridesProps = inputComponentOverridesProps;
|
|
57
|
-
|
|
58
|
-
var datepickerHeaderOverridesProps = _propTypes.default.shape({
|
|
59
|
-
/**
|
|
60
|
-
* Overrides for the Flex component that wraps the Header Title and navigation Buttons,
|
|
61
|
-
* see https://chakra-ui.com/docs/components/flex/props for more
|
|
62
|
-
*/
|
|
63
|
-
headerContainer: _propTypes.default.object,
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Overrides for the IconButton component used as navigation for the Header,
|
|
67
|
-
* see https://chakra-ui.com/docs/components/icon-button, for more
|
|
68
|
-
*/
|
|
69
|
-
iconButton: _propTypes.default.object,
|
|
70
|
-
|
|
71
|
-
/**
|
|
72
|
-
* Overrides for the Flex component that wraps the Header Title,
|
|
73
|
-
* see https://chakra-ui.com/docs/components/flex/props for more
|
|
74
|
-
*/
|
|
75
|
-
title: _propTypes.default.object
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
exports.datepickerHeaderOverridesProps = datepickerHeaderOverridesProps;
|
|
79
|
-
|
|
80
|
-
var dateRowOverridesProps = _propTypes.default.shape({
|
|
81
|
-
/**
|
|
82
|
-
* Overrides for the Tbody component that contains the Calendar display
|
|
83
|
-
* see https://chakra-ui.com/docs/components/table/props for more
|
|
84
|
-
*/
|
|
85
|
-
tbody: _propTypes.default.object,
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* Overrides for the Tr component that contains the rows of the month within the Calendar display
|
|
89
|
-
* see https://chakra-ui.com/docs/components/table/props for more
|
|
90
|
-
*/
|
|
91
|
-
tr: _propTypes.default.object,
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Overrides for the Td component that contains the individual date within the Calendar display
|
|
95
|
-
* see https://chakra-ui.com/docs/components/table/props for more
|
|
96
|
-
*/
|
|
97
|
-
td: _propTypes.default.object,
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* Overrides for the Button component that contains the individual date within the Calendar display
|
|
101
|
-
* see https://chakra-ui.com/docs/components/button/props for more
|
|
102
|
-
*/
|
|
103
|
-
button: _propTypes.default.object
|
|
104
|
-
});
|
|
105
|
-
|
|
106
|
-
exports.dateRowOverridesProps = dateRowOverridesProps;
|
|
107
|
-
|
|
108
|
-
var datepickerDaysOverridesProps = _propTypes.default.shape({
|
|
109
|
-
/**
|
|
110
|
-
* Overrides for the Table component containing the Calendar display,
|
|
111
|
-
* see https://chakra-ui.com/docs/components/table/props#table for more
|
|
112
|
-
*/
|
|
113
|
-
table: _propTypes.default.object,
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Overrides for the Thead component containing the names of the days of the week,
|
|
117
|
-
* see https://chakra-ui.com/docs/components/table/props for more
|
|
118
|
-
*/
|
|
119
|
-
thead: _propTypes.default.object,
|
|
120
|
-
|
|
121
|
-
/**
|
|
122
|
-
* Overrides for the Th component containing the name of the single day names,
|
|
123
|
-
* see https://chakra-ui.com/docs/components/table/props for more
|
|
124
|
-
*/
|
|
125
|
-
th: _propTypes.default.object,
|
|
126
|
-
|
|
127
|
-
/** An optional Object containing style and prop overrides for the DateRow component */
|
|
128
|
-
dateRowOverrides: dateRowOverridesProps
|
|
129
|
-
});
|
|
130
|
-
|
|
131
|
-
exports.datepickerDaysOverridesProps = datepickerDaysOverridesProps;
|
|
132
|
-
|
|
133
|
-
var datepickerBodyOverridesProps = _propTypes.default.shape({
|
|
134
|
-
/**
|
|
135
|
-
* Overrides for the PopoverBody component,
|
|
136
|
-
* see https://chakra-ui.com/docs/components/popover/props#other-props for more
|
|
137
|
-
*/
|
|
138
|
-
popoverBody: _propTypes.default.object,
|
|
139
|
-
|
|
140
|
-
/** An optional Object containing style and prop overrides to be applied to the components that compose the Header section */
|
|
141
|
-
datepickerHeaderOverrides: datepickerHeaderOverridesProps,
|
|
142
|
-
|
|
143
|
-
/** An optional Object containing style and prop overrides to be applied to the components that compose the Calendar section */
|
|
144
|
-
datepickerDaysOverrides: datepickerDaysOverridesProps
|
|
145
|
-
});
|
|
146
|
-
|
|
147
|
-
exports.datepickerBodyOverridesProps = datepickerBodyOverridesProps;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
Object.defineProperty(exports, "DatepickerRange", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
get: function get() {
|
|
11
|
-
return _DatepickerRange.default;
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(exports, "DatepickerSingle", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function get() {
|
|
17
|
-
return _DatepickerSingle.default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
|
|
21
|
-
var _DatepickerRange = _interopRequireDefault(require("./Range/DatepickerRange"));
|
|
22
|
-
|
|
23
|
-
var _DatepickerSingle = _interopRequireDefault(require("./Single/DatepickerSingle"));
|