@atls-ui-parts/datepicker 0.1.1 → 1.0.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/dist/datepicker.component.d.ts +4 -3
- package/dist/datepicker.component.d.ts.map +1 -0
- package/dist/datepicker.component.js +19 -21
- package/dist/datepicker.component.js.map +1 -0
- package/dist/datepicker.interface.d.ts +5 -4
- package/dist/datepicker.interface.d.ts.map +1 -0
- package/dist/datepicker.interface.js +2 -2
- package/dist/datepicker.interface.js.map +1 -0
- package/dist/datepicker.stories.d.ts +11 -462
- package/dist/datepicker.stories.d.ts.map +1 -0
- package/dist/datepicker.stories.js +476 -475
- package/dist/datepicker.stories.js.map +1 -0
- package/dist/index.d.ts +4 -4
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +4 -20
- package/dist/index.js.map +1 -0
- package/dist/utils/create-appearance-styles/create-appearance-styles.interfaces.d.ts +25 -0
- package/dist/utils/create-appearance-styles/create-appearance-styles.interfaces.d.ts.map +1 -0
- package/dist/utils/create-appearance-styles/create-appearance-styles.interfaces.js +2 -0
- package/dist/utils/create-appearance-styles/create-appearance-styles.interfaces.js.map +1 -0
- package/dist/utils/create-appearance-styles/create-appearance-styles.util.d.ts +115 -0
- package/dist/utils/create-appearance-styles/create-appearance-styles.util.d.ts.map +1 -0
- package/dist/utils/create-appearance-styles/create-appearance-styles.util.js +68 -0
- package/dist/utils/create-appearance-styles/create-appearance-styles.util.js.map +1 -0
- package/dist/utils/create-appearance-styles/index.d.ts +3 -0
- package/dist/utils/create-appearance-styles/index.d.ts.map +1 -0
- package/dist/utils/create-appearance-styles/index.js +3 -0
- package/dist/utils/create-appearance-styles/index.js.map +1 -0
- package/dist/{styles/shape/shape.interfaces.d.ts → utils/create-shape-styles/create-shape-styles.interfaces.d.ts} +5 -3
- package/dist/utils/create-shape-styles/create-shape-styles.interfaces.d.ts.map +1 -0
- package/dist/utils/create-shape-styles/create-shape-styles.interfaces.js +2 -0
- package/dist/utils/create-shape-styles/create-shape-styles.interfaces.js.map +1 -0
- package/dist/{styles/shape/shape.styles.d.ts → utils/create-shape-styles/create-shape-styles.util.d.ts} +15 -19
- package/dist/utils/create-shape-styles/create-shape-styles.util.d.ts.map +1 -0
- package/dist/utils/create-shape-styles/create-shape-styles.util.js +69 -0
- package/dist/utils/create-shape-styles/create-shape-styles.util.js.map +1 -0
- package/dist/utils/create-shape-styles/index.d.ts +3 -0
- package/dist/utils/create-shape-styles/index.d.ts.map +1 -0
- package/dist/utils/create-shape-styles/index.js +3 -0
- package/dist/utils/create-shape-styles/index.js.map +1 -0
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +4 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/register-locales/index.d.ts +2 -0
- package/dist/utils/register-locales/index.d.ts.map +1 -0
- package/dist/utils/register-locales/index.js +2 -0
- package/dist/utils/register-locales/index.js.map +1 -0
- package/dist/utils/register-locales/register-locales.util.d.ts +2 -0
- package/dist/utils/register-locales/register-locales.util.d.ts.map +1 -0
- package/dist/utils/register-locales/register-locales.util.js +8 -0
- package/dist/utils/register-locales/register-locales.util.js.map +1 -0
- package/package.json +36 -19
- package/dist/locales/index.d.ts +0 -2
- package/dist/locales/index.js +0 -18
- package/dist/locales/locales.d.ts +0 -3
- package/dist/locales/locales.js +0 -10
- package/dist/locales/register-locales.d.ts +0 -2
- package/dist/locales/register-locales.js +0 -11
- package/dist/styles/appearance/appearance.interfaces.d.ts +0 -22
- package/dist/styles/appearance/appearance.interfaces.js +0 -2
- package/dist/styles/appearance/appearance.styles.d.ts +0 -113
- package/dist/styles/appearance/appearance.styles.js +0 -76
- package/dist/styles/appearance/index.d.ts +0 -2
- package/dist/styles/appearance/index.js +0 -18
- package/dist/styles/base/base.styles.d.ts +0 -1
- package/dist/styles/base/base.styles.js +0 -905
- package/dist/styles/base/index.d.ts +0 -1
- package/dist/styles/base/index.js +0 -17
- package/dist/styles/datepicker-styles.interfaces.d.ts +0 -4
- package/dist/styles/datepicker-styles.interfaces.js +0 -2
- package/dist/styles/datepicker.styles.d.ts +0 -3
- package/dist/styles/datepicker.styles.js +0 -57
- package/dist/styles/index.d.ts +0 -5
- package/dist/styles/index.js +0 -21
- package/dist/styles/shape/index.d.ts +0 -2
- package/dist/styles/shape/index.js +0 -18
- package/dist/styles/shape/shape.interfaces.js +0 -2
- package/dist/styles/shape/shape.styles.js +0 -79
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './base.styles';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./base.styles"), exports);
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { DatepickerStyles } from './datepicker-styles.interfaces';
|
|
2
|
-
export declare const injectBaseStyles: () => void;
|
|
3
|
-
export declare const createAndInjectDatepickerStyles: ({ arrowColor, arrowHoverColor, cellColor, cellFontColor, cellActiveFontColor, cellActiveColor, cellHoverColor, cellHoverFontColor, cellInRangeColor, cellInRangeFontColor, cellInRangeHoverColor, cellInRangeHoverFontColor, cellInRangeBorderRadius, cellMargin, cellPadding, cellBorderRadius, dividerPosition, dividerWidth, dividerColor, fontSize, fontFamily, fontStyle, fontWeight, headerBackgroundColor, inputBackgroundColor, inputBorderColor, inputBorderRadius, inputActiveBorderColor, inputSize, inputBorderWidth, inputPadding, currentMonthPadding, currentMonthFontFamily, currentMonthFontSize, currentMonthFontStyle, currentMonthFontWeight, currentMonthFontColor, dayNameFontFamily, dayNameFontWeight, dayNameFontStyle, dayNameFontColor, }: DatepickerStyles) => void;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createAndInjectDatepickerStyles = exports.injectBaseStyles = void 0;
|
|
4
|
-
const css_1 = require("@emotion/css");
|
|
5
|
-
const appearance_1 = require("./appearance");
|
|
6
|
-
const base_1 = require("./base");
|
|
7
|
-
const shape_1 = require("./shape");
|
|
8
|
-
exports.injectBaseStyles = (0, base_1.createInjectableBaseStyles)();
|
|
9
|
-
const createAndInjectDatepickerStyles = ({ arrowColor, arrowHoverColor, cellColor, cellFontColor, cellActiveFontColor, cellActiveColor, cellHoverColor, cellHoverFontColor, cellInRangeColor, cellInRangeFontColor, cellInRangeHoverColor, cellInRangeHoverFontColor, cellInRangeBorderRadius, cellMargin, cellPadding, cellBorderRadius, dividerPosition, dividerWidth, dividerColor, fontSize, fontFamily, fontStyle, fontWeight, headerBackgroundColor, inputBackgroundColor, inputBorderColor, inputBorderRadius, inputActiveBorderColor, inputSize, inputBorderWidth, inputPadding, currentMonthPadding, currentMonthFontFamily, currentMonthFontSize, currentMonthFontStyle, currentMonthFontWeight, currentMonthFontColor, dayNameFontFamily, dayNameFontWeight, dayNameFontStyle, dayNameFontColor, }) => {
|
|
10
|
-
(0, exports.injectBaseStyles)();
|
|
11
|
-
(0, css_1.injectGlobal)((0, appearance_1.createAppearanceStyles)({
|
|
12
|
-
arrowColor,
|
|
13
|
-
arrowHoverColor,
|
|
14
|
-
cellColor,
|
|
15
|
-
cellFontColor,
|
|
16
|
-
cellActiveColor,
|
|
17
|
-
cellActiveFontColor,
|
|
18
|
-
cellHoverColor,
|
|
19
|
-
cellHoverFontColor,
|
|
20
|
-
cellInRangeColor,
|
|
21
|
-
cellInRangeFontColor,
|
|
22
|
-
cellInRangeHoverColor,
|
|
23
|
-
cellInRangeHoverFontColor,
|
|
24
|
-
dividerColor,
|
|
25
|
-
headerBackgroundColor,
|
|
26
|
-
inputBackgroundColor,
|
|
27
|
-
inputBorderColor,
|
|
28
|
-
inputActiveBorderColor,
|
|
29
|
-
dayNameFontColor,
|
|
30
|
-
currentMonthFontColor,
|
|
31
|
-
}));
|
|
32
|
-
(0, css_1.injectGlobal)((0, shape_1.createShapeStyles)({
|
|
33
|
-
cellMargin,
|
|
34
|
-
cellPadding,
|
|
35
|
-
cellBorderRadius,
|
|
36
|
-
fontSize,
|
|
37
|
-
fontFamily,
|
|
38
|
-
fontStyle,
|
|
39
|
-
fontWeight,
|
|
40
|
-
dividerPosition,
|
|
41
|
-
dividerWidth,
|
|
42
|
-
cellInRangeBorderRadius,
|
|
43
|
-
inputSize,
|
|
44
|
-
inputBorderWidth,
|
|
45
|
-
inputBorderRadius,
|
|
46
|
-
inputPadding,
|
|
47
|
-
currentMonthPadding,
|
|
48
|
-
currentMonthFontFamily,
|
|
49
|
-
currentMonthFontSize,
|
|
50
|
-
currentMonthFontStyle,
|
|
51
|
-
currentMonthFontWeight,
|
|
52
|
-
dayNameFontFamily,
|
|
53
|
-
dayNameFontWeight,
|
|
54
|
-
dayNameFontStyle,
|
|
55
|
-
}));
|
|
56
|
-
};
|
|
57
|
-
exports.createAndInjectDatepickerStyles = createAndInjectDatepickerStyles;
|
package/dist/styles/index.d.ts
DELETED
package/dist/styles/index.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./datepicker.styles"), exports);
|
|
18
|
-
__exportStar(require("./datepicker-styles.interfaces"), exports);
|
|
19
|
-
__exportStar(require("./appearance"), exports);
|
|
20
|
-
__exportStar(require("./base"), exports);
|
|
21
|
-
__exportStar(require("./shape"), exports);
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./shape.styles"), exports);
|
|
18
|
-
__exportStar(require("./shape.interfaces"), exports);
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createShapeStyles = exports.createInputShapeStyles = exports.createDividerShapeStyles = exports.createCellShapeStyles = exports.createHeaderShapeStyles = void 0;
|
|
4
|
-
const createHeaderShapeStyles = (padding, fontFamily, fontWeight, fontStyle, fontSize) => ({
|
|
5
|
-
'.react-datepicker__current-month': {
|
|
6
|
-
paddingTop: padding,
|
|
7
|
-
paddingBottom: padding,
|
|
8
|
-
fontFamily,
|
|
9
|
-
fontWeight,
|
|
10
|
-
fontSize,
|
|
11
|
-
fontStyle,
|
|
12
|
-
},
|
|
13
|
-
});
|
|
14
|
-
exports.createHeaderShapeStyles = createHeaderShapeStyles;
|
|
15
|
-
const createCellShapeStyles = (margin, padding, borderRadius, inRangeBorderRadius, fontSize, fontFamily, fontStyle, fontWeight, dayNameFontFamily, dayNameFontStyle, dayNameFontWeight, dayNameFontSize) => ({
|
|
16
|
-
'.react-datepicker__day-name': {
|
|
17
|
-
margin,
|
|
18
|
-
padding,
|
|
19
|
-
fontFamily: dayNameFontFamily,
|
|
20
|
-
fontStyle: dayNameFontStyle,
|
|
21
|
-
fontWeight: dayNameFontWeight,
|
|
22
|
-
fontSize: dayNameFontSize || fontSize,
|
|
23
|
-
},
|
|
24
|
-
'.react-datepicker__day, .react-datepicker__time-name': {
|
|
25
|
-
margin,
|
|
26
|
-
padding,
|
|
27
|
-
borderRadius,
|
|
28
|
-
fontFamily,
|
|
29
|
-
fontStyle,
|
|
30
|
-
fontWeight,
|
|
31
|
-
fontSize,
|
|
32
|
-
},
|
|
33
|
-
'.react-datepicker__day--in-range': {
|
|
34
|
-
borderRadius: inRangeBorderRadius,
|
|
35
|
-
},
|
|
36
|
-
'.react-datepicker__day-name:hover, .react-datepicker__day:hover, .react-datepicker__time-name:hover, .react-datepicker__day--range-start, .react-datepicker__day--range-end': {
|
|
37
|
-
borderRadius,
|
|
38
|
-
},
|
|
39
|
-
'.react-datepicker__current-month': {
|
|
40
|
-
paddingTop: padding,
|
|
41
|
-
paddingBottom: padding,
|
|
42
|
-
},
|
|
43
|
-
'.react-datepicker__navigation': {
|
|
44
|
-
marginTop: padding,
|
|
45
|
-
},
|
|
46
|
-
});
|
|
47
|
-
exports.createCellShapeStyles = createCellShapeStyles;
|
|
48
|
-
const createDividerShapeStyles = (position, borderWidth) => ({
|
|
49
|
-
'.react-datepicker__header': {
|
|
50
|
-
borderStyle: 'solid',
|
|
51
|
-
borderWidth: 0,
|
|
52
|
-
borderBottomWidth: position === 'bottom' ? borderWidth : 0,
|
|
53
|
-
},
|
|
54
|
-
'.react-datepicker__day-names': {
|
|
55
|
-
borderStyle: 'solid',
|
|
56
|
-
borderWidth: 0,
|
|
57
|
-
borderTopWidth: position === 'middle' ? borderWidth : 0,
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
exports.createDividerShapeStyles = createDividerShapeStyles;
|
|
61
|
-
const createInputShapeStyles = (size, borderWidth, padding, fontSize, fontWeight, fontFamily, borderRadius) => ({
|
|
62
|
-
'.react-datepicker__input-container>input': {
|
|
63
|
-
height: size,
|
|
64
|
-
borderWidth,
|
|
65
|
-
fontSize,
|
|
66
|
-
fontWeight,
|
|
67
|
-
fontFamily,
|
|
68
|
-
padding,
|
|
69
|
-
borderRadius,
|
|
70
|
-
},
|
|
71
|
-
});
|
|
72
|
-
exports.createInputShapeStyles = createInputShapeStyles;
|
|
73
|
-
const createShapeStyles = ({ dividerPosition, dividerWidth, cellMargin, cellPadding, cellBorderRadius, cellInRangeBorderRadius, inputSize, inputBorderWidth, inputBorderRadius, inputPadding, fontSize, fontFamily, fontStyle, fontWeight, dayNameFontFamily, dayNameFontStyle, dayNameFontWeight, dayNameFontSize, currentMonthFontFamily, currentMonthFontStyle, currentMonthFontWeight, currentMonthFontSize, currentMonthPadding, }) => ({
|
|
74
|
-
...(0, exports.createCellShapeStyles)(cellMargin, cellPadding, cellBorderRadius, cellInRangeBorderRadius, fontSize, fontFamily, fontStyle, fontWeight, dayNameFontFamily, dayNameFontStyle, dayNameFontWeight, dayNameFontSize),
|
|
75
|
-
...(0, exports.createDividerShapeStyles)(dividerPosition, dividerWidth),
|
|
76
|
-
...(0, exports.createInputShapeStyles)(inputSize, inputBorderWidth, inputPadding, fontSize, fontWeight, fontFamily, inputBorderRadius),
|
|
77
|
-
...(0, exports.createHeaderShapeStyles)(currentMonthPadding, currentMonthFontFamily, currentMonthFontWeight, currentMonthFontStyle, currentMonthFontSize),
|
|
78
|
-
});
|
|
79
|
-
exports.createShapeStyles = createShapeStyles;
|