@mezzanine-ui/core 0.13.10 → 0.13.12
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/_internal/input-check/index.d.ts +2 -2
- package/_internal/input-check/inputCheck.d.ts +12 -12
- package/_internal/input-check/inputCheck.js +9 -9
- package/_internal/input-check/inputCheckGroup.d.ts +7 -7
- package/_internal/input-check/inputCheckGroup.js +4 -4
- package/_internal/input-trigger-popper/index.d.ts +1 -1
- package/_internal/input-trigger-popper/inputTriggerPopper.d.ts +4 -4
- package/_internal/input-trigger-popper/inputTriggerPopper.js +3 -3
- package/_internal/overlay-with-slide-fade/index.d.ts +1 -1
- package/_internal/overlay-with-slide-fade/overlayWithSlideFade.d.ts +4 -4
- package/_internal/overlay-with-slide-fade/overlayWithSlideFade.js +3 -3
- package/accordion/accordion.d.ts +13 -13
- package/accordion/accordion.js +12 -12
- package/accordion/index.d.ts +1 -1
- package/alert/alert.d.ts +15 -15
- package/alert/alert.js +12 -12
- package/alert/index.d.ts +1 -1
- package/app-bar/appBar.d.ts +8 -8
- package/app-bar/appBar.js +5 -5
- package/app-bar/appBarBrand.d.ts +4 -4
- package/app-bar/appBarBrand.js +3 -3
- package/app-bar/appBarMain.d.ts +4 -4
- package/app-bar/appBarMain.js +3 -3
- package/app-bar/appBarSupport.d.ts +4 -4
- package/app-bar/appBarSupport.js +3 -3
- package/app-bar/index.d.ts +4 -4
- package/badge/badge.d.ts +7 -7
- package/badge/badge.js +6 -6
- package/badge/index.d.ts +1 -1
- package/button/button.d.ts +17 -17
- package/button/button.js +11 -11
- package/button/buttonGroup.d.ts +18 -18
- package/button/buttonGroup.js +15 -15
- package/button/index.d.ts +2 -2
- package/calendar/calendar.d.ts +47 -47
- package/calendar/calendar.js +61 -61
- package/calendar/index.d.ts +2 -2
- package/calendar/typings.d.ts +43 -43
- package/calendarMethodsDayjs/index.d.ts +3 -3
- package/calendarMethodsDayjs/index.js +97 -97
- package/calendarMethodsLuxon/index.d.ts +3 -3
- package/calendarMethodsLuxon/index.js +100 -100
- package/calendarMethodsMoment/index.d.ts +3 -3
- package/calendarMethodsMoment/index.js +112 -112
- package/card/card.d.ts +7 -7
- package/card/card.js +6 -6
- package/card/cardActions.d.ts +4 -4
- package/card/cardActions.js +3 -3
- package/card/index.d.ts +2 -2
- package/checkbox/checkbox.d.ts +15 -15
- package/checkbox/checkbox.js +6 -6
- package/checkbox/index.d.ts +1 -1
- package/date-range-picker/dateRangePicker.d.ts +11 -11
- package/date-range-picker/dateRangePicker.js +10 -10
- package/date-range-picker/index.d.ts +1 -1
- package/date-time-picker/dateTimePicker.d.ts +9 -9
- package/date-time-picker/dateTimePicker.js +8 -8
- package/date-time-picker/index.d.ts +1 -1
- package/drawer/drawer.d.ts +10 -10
- package/drawer/drawer.js +8 -8
- package/drawer/index.d.ts +1 -1
- package/empty/empty.d.ts +8 -8
- package/empty/empty.js +7 -7
- package/empty/index.d.ts +1 -1
- package/form/form.d.ts +1 -1
- package/form/formField.d.ts +18 -18
- package/form/formField.js +16 -16
- package/form/index.d.ts +2 -2
- package/icon/icon.d.ts +15 -15
- package/icon/icon.js +38 -38
- package/icon/index.d.ts +1 -1
- package/input/index.d.ts +1 -1
- package/input/input.d.ts +8 -8
- package/input/input.js +5 -5
- package/loading/index.d.ts +1 -1
- package/loading/loading.d.ts +8 -8
- package/loading/loading.js +7 -7
- package/menu/index.d.ts +4 -4
- package/menu/menu.d.ts +13 -13
- package/menu/menu.js +13 -13
- package/menu/menuDivider.d.ts +4 -4
- package/menu/menuDivider.js +3 -3
- package/menu/menuItem.d.ts +8 -8
- package/menu/menuItem.js +7 -7
- package/menu/menuItemGroup.d.ts +6 -6
- package/menu/menuItemGroup.js +5 -5
- package/message/index.d.ts +1 -1
- package/message/message.d.ts +16 -16
- package/message/message.js +13 -13
- package/modal/index.d.ts +1 -1
- package/modal/modal.d.ts +30 -30
- package/modal/modal.js +25 -25
- package/navigation/index.d.ts +3 -3
- package/navigation/navigation.d.ts +8 -8
- package/navigation/navigation.js +5 -5
- package/navigation/navigationItem.d.ts +6 -6
- package/navigation/navigationItem.js +5 -5
- package/navigation/navigationSubMenu.d.ts +11 -11
- package/navigation/navigationSubMenu.js +10 -10
- package/notification/index.d.ts +1 -1
- package/notification/notification.d.ts +25 -25
- package/notification/notification.js +22 -22
- package/overlay/index.d.ts +1 -1
- package/overlay/overlay.d.ts +10 -10
- package/overlay/overlay.js +9 -9
- package/package.json +3 -3
- package/page-footer/index.d.ts +1 -1
- package/page-footer/pageFooter.d.ts +4 -4
- package/page-footer/pageFooter.js +3 -3
- package/pagination/index.d.ts +4 -4
- package/pagination/pagination.d.ts +8 -8
- package/pagination/pagination.js +7 -7
- package/pagination/paginationItem.d.ts +9 -9
- package/pagination/paginationItem.js +7 -7
- package/pagination/paginationJumper.d.ts +5 -5
- package/pagination/paginationJumper.js +4 -4
- package/pagination/paginationPageSize.d.ts +5 -5
- package/pagination/paginationPageSize.js +4 -4
- package/picker/index.d.ts +1 -1
- package/picker/picker.d.ts +10 -10
- package/picker/picker.js +5 -5
- package/popconfirm/index.d.ts +1 -1
- package/popconfirm/popconfirm.d.ts +5 -5
- package/popconfirm/popconfirm.js +4 -4
- package/popover/index.d.ts +1 -1
- package/popover/popover.d.ts +6 -6
- package/popover/popover.js +5 -5
- package/progress/index.d.ts +1 -1
- package/progress/progress.d.ts +27 -27
- package/progress/progress.js +25 -25
- package/radio/index.d.ts +1 -1
- package/radio/radio.d.ts +13 -13
- package/radio/radio.js +4 -4
- package/select/index.d.ts +1 -1
- package/select/select.d.ts +30 -30
- package/select/select.js +26 -26
- package/skeleton/index.d.ts +1 -1
- package/skeleton/skeleton.d.ts +5 -5
- package/skeleton/skeleton.js +4 -4
- package/slider/index.d.ts +1 -1
- package/slider/slider.d.ts +60 -60
- package/slider/slider.js +122 -122
- package/stepper/index.d.ts +2 -2
- package/stepper/step.d.ts +9 -9
- package/stepper/step.js +8 -8
- package/stepper/stepper.d.ts +4 -4
- package/stepper/stepper.js +3 -3
- package/switch/index.d.ts +1 -1
- package/switch/switch.d.ts +13 -13
- package/switch/switch.js +21 -21
- package/table/index.d.ts +1 -1
- package/table/table.d.ts +150 -150
- package/table/table.js +65 -65
- package/tabs/index.d.ts +1 -1
- package/tabs/tabs.d.ts +11 -11
- package/tabs/tabs.js +10 -10
- package/tag/index.d.ts +1 -1
- package/tag/tag.d.ts +10 -10
- package/tag/tag.js +7 -7
- package/text-field/index.d.ts +1 -1
- package/text-field/textField.d.ts +19 -19
- package/text-field/textField.js +16 -16
- package/textarea/index.d.ts +1 -1
- package/textarea/textarea.d.ts +9 -9
- package/textarea/textarea.js +6 -6
- package/time-panel/index.d.ts +1 -1
- package/time-panel/timePanel.d.ts +33 -33
- package/time-panel/timePanel.js +45 -45
- package/tooltip/index.d.ts +1 -1
- package/tooltip/tooltip.d.ts +4 -4
- package/tooltip/tooltip.js +3 -3
- package/tree/index.d.ts +1 -1
- package/tree/tree.d.ts +49 -49
- package/tree/tree.js +20 -20
- package/typography/index.d.ts +2 -2
- package/typography/typography.d.ts +22 -22
- package/typography/typography.js +17 -17
- package/upload/UploadPictureBlock.d.ts +51 -51
- package/upload/UploadPictureBlock.js +105 -105
- package/upload/UploadPictureWall.d.ts +5 -5
- package/upload/UploadPictureWall.js +4 -4
- package/upload/index.d.ts +5 -5
- package/upload/uploadInput.d.ts +4 -4
- package/upload/uploadInput.js +3 -3
- package/upload/uploadPicture.d.ts +4 -4
- package/upload/uploadPicture.js +3 -3
- package/upload/uploadResult.d.ts +17 -17
- package/upload/uploadResult.js +14 -14
package/slider/slider.js
CHANGED
|
@@ -1,125 +1,125 @@
|
|
|
1
|
-
/** Classes */
|
|
2
|
-
const sliderPrefix = 'mzn-slider';
|
|
3
|
-
const sliderHandlerPrefix = `${sliderPrefix}__handler`;
|
|
4
|
-
const sliderClasses = {
|
|
5
|
-
/**
|
|
6
|
-
* Base
|
|
7
|
-
*/
|
|
8
|
-
host: sliderPrefix,
|
|
9
|
-
disabled: `${sliderPrefix}--disabled`,
|
|
10
|
-
/**
|
|
11
|
-
* Input
|
|
12
|
-
*/
|
|
13
|
-
input: `${sliderPrefix}__input`,
|
|
14
|
-
/**
|
|
15
|
-
* Controls
|
|
16
|
-
*/
|
|
17
|
-
controls: `${sliderPrefix}__controls`,
|
|
18
|
-
/**
|
|
19
|
-
* Rail
|
|
20
|
-
*/
|
|
21
|
-
rail: `${sliderPrefix}__rail`,
|
|
22
|
-
/**
|
|
23
|
-
* Track
|
|
24
|
-
*/
|
|
25
|
-
track: `${sliderPrefix}__track`,
|
|
26
|
-
/**
|
|
27
|
-
* Handler
|
|
28
|
-
*/
|
|
29
|
-
handler: sliderHandlerPrefix,
|
|
30
|
-
handlerActive: `${sliderHandlerPrefix}--active`,
|
|
31
|
-
handlerPosition: `${sliderHandlerPrefix}__position`,
|
|
32
|
-
handlerStartPosition: `${sliderHandlerPrefix}__position--start`,
|
|
33
|
-
handlerEndPosition: `${sliderHandlerPrefix}__position--end`,
|
|
34
|
-
};
|
|
35
|
-
/** Methods */
|
|
36
|
-
function toSliderCssVars(variables) {
|
|
37
|
-
const { trackWidth, trackPosition, handlerPosition, handlerStartPosition, handlerEndPosition, } = variables;
|
|
38
|
-
return {
|
|
39
|
-
[`--${sliderPrefix}-track-width`]: `${trackWidth}%`,
|
|
40
|
-
[`--${sliderPrefix}-track-position`]: `${trackPosition}%`,
|
|
41
|
-
[`--${sliderPrefix}-handler-position`]: `${handlerPosition}%`,
|
|
42
|
-
[`--${sliderPrefix}-handler-start-position`]: `${handlerStartPosition}%`,
|
|
43
|
-
[`--${sliderPrefix}-handler-end-position`]: `${handlerEndPosition}%`,
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
function isRangeSlider(value) {
|
|
47
|
-
return Array.isArray(value);
|
|
48
|
-
}
|
|
49
|
-
function sortSliderValue(value) {
|
|
50
|
-
if (typeof value !== 'object') {
|
|
51
|
-
throw Error('should provide `RangeSliderValue` to `sortSliderValue` method');
|
|
52
|
-
}
|
|
53
|
-
return value[1] > value[0] ? [value[0], value[1]] : [value[1], value[0]];
|
|
54
|
-
}
|
|
55
|
-
// methods for computing handle and track position
|
|
56
|
-
function getSliderRect(element) {
|
|
57
|
-
const rect = element.getBoundingClientRect();
|
|
58
|
-
return {
|
|
59
|
-
left: Math.ceil(rect.left),
|
|
60
|
-
width: Math.ceil(rect.width),
|
|
61
|
-
};
|
|
62
|
-
}
|
|
63
|
-
function getValueFromClientX(clientX, trackDims, min, max) {
|
|
64
|
-
const { left, width } = trackDims;
|
|
65
|
-
const percentageValue = (clientX - left) / width;
|
|
66
|
-
const value = (max - min) * percentageValue;
|
|
67
|
-
return value + min;
|
|
68
|
-
}
|
|
69
|
-
function getPercentage(value, min, max) {
|
|
70
|
-
if (min > max)
|
|
71
|
-
return 0;
|
|
72
|
-
return Math.max(0, Math.min(100, (value / Math.abs(max - min)) * 100));
|
|
73
|
-
}
|
|
74
|
-
function getPrecision(step) {
|
|
75
|
-
const stepString = step.toString();
|
|
76
|
-
let precision = 0;
|
|
77
|
-
if (stepString.indexOf('.') >= 0) {
|
|
78
|
-
precision = stepString.length - stepString.indexOf('.') - 1;
|
|
79
|
-
}
|
|
80
|
-
return precision;
|
|
81
|
-
}
|
|
82
|
-
function fixSingleSliderValue(value, min, max) {
|
|
83
|
-
if (value < min) {
|
|
84
|
-
return min;
|
|
85
|
-
}
|
|
86
|
-
if (value > max) {
|
|
87
|
-
return max;
|
|
88
|
-
}
|
|
89
|
-
return value;
|
|
90
|
-
}
|
|
91
|
-
function fixRangeSliderValue(value, min, max) {
|
|
92
|
-
if (value[0] > max && value[1] > max) {
|
|
93
|
-
return [max, max];
|
|
94
|
-
}
|
|
95
|
-
if (value[0] < min && value[1] < min) {
|
|
96
|
-
return [min, min];
|
|
97
|
-
}
|
|
98
|
-
if (value[0] < min) {
|
|
99
|
-
return [min, value[1]];
|
|
100
|
-
}
|
|
101
|
-
if (value[1] > max) {
|
|
102
|
-
return [value[0], max];
|
|
103
|
-
}
|
|
104
|
-
return value;
|
|
105
|
-
}
|
|
106
|
-
function roundToStep(value, step, min, max) {
|
|
107
|
-
let left = min;
|
|
108
|
-
let right = max;
|
|
109
|
-
while (left < value && left + step < value) {
|
|
110
|
-
left += step;
|
|
111
|
-
}
|
|
112
|
-
right = Math.min(left + step, max);
|
|
113
|
-
if (value - left < right - value) {
|
|
114
|
-
return parseFloat(left.toFixed(getPrecision(step)));
|
|
115
|
-
}
|
|
116
|
-
return parseFloat(right.toFixed(getPrecision(step)));
|
|
117
|
-
}
|
|
118
|
-
function findClosetValueIndex(value, newValue) {
|
|
119
|
-
if (!isRangeSlider(value))
|
|
120
|
-
return -1;
|
|
121
|
-
const [closetValue] = [...value].sort((a, b) => Math.abs(newValue - a) - Math.abs(newValue - b));
|
|
122
|
-
return value.findIndex((element) => element === closetValue);
|
|
1
|
+
/** Classes */
|
|
2
|
+
const sliderPrefix = 'mzn-slider';
|
|
3
|
+
const sliderHandlerPrefix = `${sliderPrefix}__handler`;
|
|
4
|
+
const sliderClasses = {
|
|
5
|
+
/**
|
|
6
|
+
* Base
|
|
7
|
+
*/
|
|
8
|
+
host: sliderPrefix,
|
|
9
|
+
disabled: `${sliderPrefix}--disabled`,
|
|
10
|
+
/**
|
|
11
|
+
* Input
|
|
12
|
+
*/
|
|
13
|
+
input: `${sliderPrefix}__input`,
|
|
14
|
+
/**
|
|
15
|
+
* Controls
|
|
16
|
+
*/
|
|
17
|
+
controls: `${sliderPrefix}__controls`,
|
|
18
|
+
/**
|
|
19
|
+
* Rail
|
|
20
|
+
*/
|
|
21
|
+
rail: `${sliderPrefix}__rail`,
|
|
22
|
+
/**
|
|
23
|
+
* Track
|
|
24
|
+
*/
|
|
25
|
+
track: `${sliderPrefix}__track`,
|
|
26
|
+
/**
|
|
27
|
+
* Handler
|
|
28
|
+
*/
|
|
29
|
+
handler: sliderHandlerPrefix,
|
|
30
|
+
handlerActive: `${sliderHandlerPrefix}--active`,
|
|
31
|
+
handlerPosition: `${sliderHandlerPrefix}__position`,
|
|
32
|
+
handlerStartPosition: `${sliderHandlerPrefix}__position--start`,
|
|
33
|
+
handlerEndPosition: `${sliderHandlerPrefix}__position--end`,
|
|
34
|
+
};
|
|
35
|
+
/** Methods */
|
|
36
|
+
function toSliderCssVars(variables) {
|
|
37
|
+
const { trackWidth, trackPosition, handlerPosition, handlerStartPosition, handlerEndPosition, } = variables;
|
|
38
|
+
return {
|
|
39
|
+
[`--${sliderPrefix}-track-width`]: `${trackWidth}%`,
|
|
40
|
+
[`--${sliderPrefix}-track-position`]: `${trackPosition}%`,
|
|
41
|
+
[`--${sliderPrefix}-handler-position`]: `${handlerPosition}%`,
|
|
42
|
+
[`--${sliderPrefix}-handler-start-position`]: `${handlerStartPosition}%`,
|
|
43
|
+
[`--${sliderPrefix}-handler-end-position`]: `${handlerEndPosition}%`,
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
function isRangeSlider(value) {
|
|
47
|
+
return Array.isArray(value);
|
|
48
|
+
}
|
|
49
|
+
function sortSliderValue(value) {
|
|
50
|
+
if (typeof value !== 'object') {
|
|
51
|
+
throw Error('should provide `RangeSliderValue` to `sortSliderValue` method');
|
|
52
|
+
}
|
|
53
|
+
return value[1] > value[0] ? [value[0], value[1]] : [value[1], value[0]];
|
|
54
|
+
}
|
|
55
|
+
// methods for computing handle and track position
|
|
56
|
+
function getSliderRect(element) {
|
|
57
|
+
const rect = element.getBoundingClientRect();
|
|
58
|
+
return {
|
|
59
|
+
left: Math.ceil(rect.left),
|
|
60
|
+
width: Math.ceil(rect.width),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function getValueFromClientX(clientX, trackDims, min, max) {
|
|
64
|
+
const { left, width } = trackDims;
|
|
65
|
+
const percentageValue = (clientX - left) / width;
|
|
66
|
+
const value = (max - min) * percentageValue;
|
|
67
|
+
return value + min;
|
|
68
|
+
}
|
|
69
|
+
function getPercentage(value, min, max) {
|
|
70
|
+
if (min > max)
|
|
71
|
+
return 0;
|
|
72
|
+
return Math.max(0, Math.min(100, (value / Math.abs(max - min)) * 100));
|
|
73
|
+
}
|
|
74
|
+
function getPrecision(step) {
|
|
75
|
+
const stepString = step.toString();
|
|
76
|
+
let precision = 0;
|
|
77
|
+
if (stepString.indexOf('.') >= 0) {
|
|
78
|
+
precision = stepString.length - stepString.indexOf('.') - 1;
|
|
79
|
+
}
|
|
80
|
+
return precision;
|
|
81
|
+
}
|
|
82
|
+
function fixSingleSliderValue(value, min, max) {
|
|
83
|
+
if (value < min) {
|
|
84
|
+
return min;
|
|
85
|
+
}
|
|
86
|
+
if (value > max) {
|
|
87
|
+
return max;
|
|
88
|
+
}
|
|
89
|
+
return value;
|
|
90
|
+
}
|
|
91
|
+
function fixRangeSliderValue(value, min, max) {
|
|
92
|
+
if (value[0] > max && value[1] > max) {
|
|
93
|
+
return [max, max];
|
|
94
|
+
}
|
|
95
|
+
if (value[0] < min && value[1] < min) {
|
|
96
|
+
return [min, min];
|
|
97
|
+
}
|
|
98
|
+
if (value[0] < min) {
|
|
99
|
+
return [min, value[1]];
|
|
100
|
+
}
|
|
101
|
+
if (value[1] > max) {
|
|
102
|
+
return [value[0], max];
|
|
103
|
+
}
|
|
104
|
+
return value;
|
|
105
|
+
}
|
|
106
|
+
function roundToStep(value, step, min, max) {
|
|
107
|
+
let left = min;
|
|
108
|
+
let right = max;
|
|
109
|
+
while (left < value && left + step < value) {
|
|
110
|
+
left += step;
|
|
111
|
+
}
|
|
112
|
+
right = Math.min(left + step, max);
|
|
113
|
+
if (value - left < right - value) {
|
|
114
|
+
return parseFloat(left.toFixed(getPrecision(step)));
|
|
115
|
+
}
|
|
116
|
+
return parseFloat(right.toFixed(getPrecision(step)));
|
|
117
|
+
}
|
|
118
|
+
function findClosetValueIndex(value, newValue) {
|
|
119
|
+
if (!isRangeSlider(value))
|
|
120
|
+
return -1;
|
|
121
|
+
const [closetValue] = [...value].sort((a, b) => Math.abs(newValue - a) - Math.abs(newValue - b));
|
|
122
|
+
return value.findIndex((element) => element === closetValue);
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
export { findClosetValueIndex, fixRangeSliderValue, fixSingleSliderValue, getPercentage, getPrecision, getSliderRect, getValueFromClientX, isRangeSlider, roundToStep, sliderClasses, sliderHandlerPrefix, sliderPrefix, sortSliderValue, toSliderCssVars };
|
package/stepper/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './stepper';
|
|
2
|
-
export * from './step';
|
|
1
|
+
export * from './stepper';
|
|
2
|
+
export * from './step';
|
package/stepper/step.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export declare const stepPrefix
|
|
2
|
-
export declare const stepClasses: {
|
|
3
|
-
readonly host:
|
|
4
|
-
readonly completedIcon:
|
|
5
|
-
readonly iconBackground:
|
|
6
|
-
readonly title:
|
|
7
|
-
readonly disabled:
|
|
8
|
-
readonly tail:
|
|
9
|
-
};
|
|
1
|
+
export declare const stepPrefix = "mzn-stepper-step";
|
|
2
|
+
export declare const stepClasses: {
|
|
3
|
+
readonly host: "mzn-stepper-step";
|
|
4
|
+
readonly completedIcon: "mzn-stepper-step__completed-icon";
|
|
5
|
+
readonly iconBackground: "mzn-stepper-step__icon-background";
|
|
6
|
+
readonly title: "mzn-stepper-step__title";
|
|
7
|
+
readonly disabled: "mzn-stepper-step--disabled";
|
|
8
|
+
readonly tail: "mzn-stepper-step__tail";
|
|
9
|
+
};
|
package/stepper/step.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { stepperPrefix } from './stepper.js';
|
|
2
2
|
|
|
3
|
-
const stepPrefix = `${stepperPrefix}-step`;
|
|
4
|
-
const stepClasses = {
|
|
5
|
-
host: stepPrefix,
|
|
6
|
-
completedIcon: `${stepPrefix}__completed-icon`,
|
|
7
|
-
iconBackground: `${stepPrefix}__icon-background`,
|
|
8
|
-
title: `${stepPrefix}__title`,
|
|
9
|
-
disabled: `${stepPrefix}--disabled`,
|
|
10
|
-
tail: `${stepPrefix}__tail`,
|
|
3
|
+
const stepPrefix = `${stepperPrefix}-step`;
|
|
4
|
+
const stepClasses = {
|
|
5
|
+
host: stepPrefix,
|
|
6
|
+
completedIcon: `${stepPrefix}__completed-icon`,
|
|
7
|
+
iconBackground: `${stepPrefix}__icon-background`,
|
|
8
|
+
title: `${stepPrefix}__title`,
|
|
9
|
+
disabled: `${stepPrefix}--disabled`,
|
|
10
|
+
tail: `${stepPrefix}__tail`,
|
|
11
11
|
};
|
|
12
12
|
|
|
13
13
|
export { stepClasses, stepPrefix };
|
package/stepper/stepper.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const stepperPrefix = "mzn-stepper";
|
|
2
|
-
export declare const stepperClasses: {
|
|
3
|
-
readonly host: "mzn-stepper";
|
|
4
|
-
};
|
|
1
|
+
export declare const stepperPrefix = "mzn-stepper";
|
|
2
|
+
export declare const stepperClasses: {
|
|
3
|
+
readonly host: "mzn-stepper";
|
|
4
|
+
};
|
package/stepper/stepper.js
CHANGED
package/switch/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './switch';
|
|
1
|
+
export * from './switch';
|
package/switch/switch.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { IconDefinition } from '@mezzanine-ui/icons';
|
|
2
|
-
import { Size } from '@mezzanine-ui/system/size';
|
|
3
|
-
export
|
|
4
|
-
export declare const switchPrefix = "mzn-switch";
|
|
5
|
-
export declare const SwitchSpinnerIcon: IconDefinition;
|
|
6
|
-
export declare const switchClasses: {
|
|
7
|
-
readonly host: "mzn-switch";
|
|
8
|
-
readonly checked: "mzn-switch--checked";
|
|
9
|
-
readonly disabled: "mzn-switch--disabled";
|
|
10
|
-
readonly large: "mzn-switch--large";
|
|
11
|
-
readonly control: "mzn-switch__control";
|
|
12
|
-
readonly input: "mzn-switch__input";
|
|
13
|
-
};
|
|
1
|
+
import type { IconDefinition } from '@mezzanine-ui/icons';
|
|
2
|
+
import { Size } from '@mezzanine-ui/system/size';
|
|
3
|
+
export type SwitchSize = Extract<Size, 'medium' | 'large'>;
|
|
4
|
+
export declare const switchPrefix = "mzn-switch";
|
|
5
|
+
export declare const SwitchSpinnerIcon: IconDefinition;
|
|
6
|
+
export declare const switchClasses: {
|
|
7
|
+
readonly host: "mzn-switch";
|
|
8
|
+
readonly checked: "mzn-switch--checked";
|
|
9
|
+
readonly disabled: "mzn-switch--disabled";
|
|
10
|
+
readonly large: "mzn-switch--large";
|
|
11
|
+
readonly control: "mzn-switch__control";
|
|
12
|
+
readonly input: "mzn-switch__input";
|
|
13
|
+
};
|
package/switch/switch.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
const switchPrefix = 'mzn-switch';
|
|
2
|
-
const SwitchSpinnerIcon = {
|
|
3
|
-
name: 'switch-spinner-icon',
|
|
4
|
-
definition: {
|
|
5
|
-
svg: {
|
|
6
|
-
viewBox: '0 0 24 24',
|
|
7
|
-
},
|
|
8
|
-
path: {
|
|
9
|
-
fill: 'currentColor',
|
|
10
|
-
fillRule: 'evenodd',
|
|
11
|
-
d: 'M 12 3 L12 2 A10 10, 0 0 1 22 12 L21 12 A10 10, 0 0 0 12 3Z',
|
|
12
|
-
},
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
const switchClasses = {
|
|
16
|
-
host: switchPrefix,
|
|
17
|
-
checked: `${switchPrefix}--checked`,
|
|
18
|
-
disabled: `${switchPrefix}--disabled`,
|
|
19
|
-
large: `${switchPrefix}--large`,
|
|
20
|
-
control: `${switchPrefix}__control`,
|
|
21
|
-
input: `${switchPrefix}__input`,
|
|
1
|
+
const switchPrefix = 'mzn-switch';
|
|
2
|
+
const SwitchSpinnerIcon = {
|
|
3
|
+
name: 'switch-spinner-icon',
|
|
4
|
+
definition: {
|
|
5
|
+
svg: {
|
|
6
|
+
viewBox: '0 0 24 24',
|
|
7
|
+
},
|
|
8
|
+
path: {
|
|
9
|
+
fill: 'currentColor',
|
|
10
|
+
fillRule: 'evenodd',
|
|
11
|
+
d: 'M 12 3 L12 2 A10 10, 0 0 1 22 12 L21 12 A10 10, 0 0 0 12 3Z',
|
|
12
|
+
},
|
|
13
|
+
},
|
|
14
|
+
};
|
|
15
|
+
const switchClasses = {
|
|
16
|
+
host: switchPrefix,
|
|
17
|
+
checked: `${switchPrefix}--checked`,
|
|
18
|
+
disabled: `${switchPrefix}--disabled`,
|
|
19
|
+
large: `${switchPrefix}--large`,
|
|
20
|
+
control: `${switchPrefix}__control`,
|
|
21
|
+
input: `${switchPrefix}__input`,
|
|
22
22
|
};
|
|
23
23
|
|
|
24
24
|
export { SwitchSpinnerIcon, switchClasses, switchPrefix };
|
package/table/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './table';
|
|
1
|
+
export * from './table';
|