@itcase/ui 1.8.33 → 1.8.34
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_cjs_CJl9V32f.js → DatePicker_cjs_C-VbK2J4.js} +1 -1
- package/dist/{DatePicker_es_C2Pi6aB-.js → DatePicker_es_CIEHQyHC.js} +1 -1
- package/dist/{Label_cjs_CZMMdwt5.js → Label_cjs_BWbVsB-u.js} +3 -3
- package/dist/{Label_es_DmDqs4Rc.js → Label_es_ouC2i_iI.js} +3 -3
- package/dist/cjs/components/Cell.js +1 -1
- package/dist/cjs/components/Choice/stories/__mock__.js +15 -15
- package/dist/cjs/components/Choice.js +33 -28
- package/dist/cjs/components/DatePeriod.js +2 -2
- package/dist/cjs/components/DatePicker.js +2 -2
- package/dist/cjs/components/Dropdown/stories/__mock__.js +2 -2
- package/dist/cjs/components/Label.js +1 -1
- package/dist/cjs/components/MenuItem.js +11 -6
- package/dist/cjs/components/Notification/stories/__mock__.js +4 -0
- package/dist/cjs/components/Notification.js +27 -9
- package/dist/cjs/components/Pagination.js +18 -9
- package/dist/cjs/components/Segmented/stories/__mock__.js +38 -0
- package/dist/cjs/components/Segmented.js +12 -9
- package/dist/components/Cell.js +1 -1
- package/dist/components/Choice/stories/__mock__.js +16 -16
- package/dist/components/Choice.js +33 -28
- package/dist/components/DatePeriod.js +2 -2
- package/dist/components/DatePicker.js +2 -2
- package/dist/components/Dropdown/stories/__mock__.js +2 -2
- package/dist/components/Label.js +1 -1
- package/dist/components/MenuItem.js +11 -6
- package/dist/components/Notification/stories/__mock__.js +4 -0
- package/dist/components/Notification.js +27 -9
- package/dist/components/Pagination.js +19 -10
- package/dist/components/Segmented/stories/__mock__.js +36 -0
- package/dist/components/Segmented.js +12 -9
- package/dist/css/components/Notification/Notification.css +23 -0
- package/dist/css/components/Pagination/Pagination.css +19 -6
- package/dist/css/components/Segmented/Segmented.css +24 -0
- package/dist/stories/CellOverview.mdx +3 -2
- package/dist/stories/DatePeriodPlayground.mdx +2 -2
- package/dist/stories/RangeSliderOverview.mdx +0 -3
- package/dist/stories/VideoOverview.mdx +2 -10
- package/dist/stories/VideoPlayground.mdx +2 -2
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +7 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +7 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +6 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +4 -0
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +6 -0
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +9 -3
- package/dist/types/components/Label/appearance/labelInfo.d.ts +1 -1
- package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +6 -4
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +1 -0
- package/dist/types/components/Notification/appearance/notificationInfo.d.ts +17 -0
- package/dist/types/components/Notification/appearance/notificationStyle.d.ts +4 -4
- package/dist/types/components/Notification/stories/__mock__/index.d.ts +1 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +12 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +0 -5
- package/dist/types/components/Segmented/Segmented.interface.d.ts +1 -0
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +1 -1
- package/dist/types/components/Segmented/stories/__mock__/index.d.ts +17 -0
- package/package.json +5 -5
- package/dist/types/components/Choice/appearance/choiceSurface.d.ts +0 -25
|
@@ -27,7 +27,7 @@ var notificationAppearanceDefault = {
|
|
|
27
27
|
fill: 'surfacePrimary',
|
|
28
28
|
fillHover: 'surfacePrimaryHover',
|
|
29
29
|
titleTextColor: 'surfaceTextPrimary',
|
|
30
|
-
titleTextSize: '
|
|
30
|
+
titleTextSize: 'l',
|
|
31
31
|
descTextColor: 'surfaceTextPrimary',
|
|
32
32
|
descTextSize: 'm',
|
|
33
33
|
borderColor: 'surfaceBorderPrimary',
|
|
@@ -44,7 +44,7 @@ var notificationAppearanceError = {
|
|
|
44
44
|
fill: 'errorPrimary',
|
|
45
45
|
fillHover: 'errorPrimaryHover',
|
|
46
46
|
titleTextColor: 'errorTextPrimary',
|
|
47
|
-
titleTextSize: '
|
|
47
|
+
titleTextSize: 'l',
|
|
48
48
|
descTextColor: 'errorTextPrimary',
|
|
49
49
|
descTextSize: 'm',
|
|
50
50
|
borderColor: 'errorBorderPrimary',
|
|
@@ -56,18 +56,35 @@ var notificationAppearanceError = {
|
|
|
56
56
|
},
|
|
57
57
|
};
|
|
58
58
|
|
|
59
|
+
var notificationAppearanceInfo = {
|
|
60
|
+
infoPrimary: {
|
|
61
|
+
fill: 'infoPrimary',
|
|
62
|
+
fillHover: 'infoPrimaryHover',
|
|
63
|
+
titleTextColor: 'infoTextPrimary',
|
|
64
|
+
titleTextSize: 'l',
|
|
65
|
+
descTextColor: 'infoTextPrimary',
|
|
66
|
+
descTextSize: 'm',
|
|
67
|
+
borderColor: 'infoBorderPrimary',
|
|
68
|
+
elevation: 8,
|
|
69
|
+
textColor: 'infoTextPrimary',
|
|
70
|
+
iconSize: 20,
|
|
71
|
+
closeIcon: icons20.Action.Close,
|
|
72
|
+
closeIconFillIcon: 'infoItemPrimary',
|
|
73
|
+
},
|
|
74
|
+
};
|
|
75
|
+
|
|
59
76
|
var notificationAppearanceSize = {};
|
|
60
77
|
|
|
61
78
|
var notificationAppearanceStyle = {
|
|
62
|
-
|
|
63
|
-
ghost: {
|
|
64
|
-
fill: 'none',
|
|
79
|
+
solid: {
|
|
65
80
|
borderColor: 'none',
|
|
66
81
|
},
|
|
67
82
|
outlined: {
|
|
68
83
|
fill: 'none',
|
|
69
84
|
},
|
|
70
|
-
|
|
85
|
+
full: {},
|
|
86
|
+
ghost: {
|
|
87
|
+
fill: 'none',
|
|
71
88
|
borderColor: 'none',
|
|
72
89
|
},
|
|
73
90
|
};
|
|
@@ -77,7 +94,7 @@ var notificationAppearanceSuccess = {
|
|
|
77
94
|
fill: 'successPrimary',
|
|
78
95
|
fillHover: 'successPrimaryHover',
|
|
79
96
|
titleTextColor: 'successTextPrimary',
|
|
80
|
-
titleTextSize: '
|
|
97
|
+
titleTextSize: 'l',
|
|
81
98
|
descTextColor: 'successTextPrimary',
|
|
82
99
|
descTextSize: 'm',
|
|
83
100
|
borderColor: 'successBorderPrimary',
|
|
@@ -94,7 +111,7 @@ var notificationAppearanceWarning = {
|
|
|
94
111
|
fill: 'warningPrimary',
|
|
95
112
|
fillHover: 'warningPrimaryHover',
|
|
96
113
|
titleTextColor: 'warningTextPrimary',
|
|
97
|
-
titleTextSize: '
|
|
114
|
+
titleTextSize: 'l',
|
|
98
115
|
descTextColor: 'warningTextPrimary',
|
|
99
116
|
descTextSize: 'm',
|
|
100
117
|
borderColor: 'surfaceBorderPrimary',
|
|
@@ -106,7 +123,7 @@ var notificationAppearanceWarning = {
|
|
|
106
123
|
},
|
|
107
124
|
};
|
|
108
125
|
|
|
109
|
-
var notificationAppearance = __assign(__assign(__assign(__assign(__assign(__assign({}, notificationAppearanceDefault), notificationAppearanceSize), notificationAppearanceStyle), notificationAppearanceError), notificationAppearanceSuccess), notificationAppearanceWarning);
|
|
126
|
+
var notificationAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign({}, notificationAppearanceDefault), notificationAppearanceSize), notificationAppearanceStyle), notificationAppearanceError), notificationAppearanceInfo), notificationAppearanceSuccess), notificationAppearanceWarning);
|
|
110
127
|
|
|
111
128
|
var notificationConfig = {
|
|
112
129
|
appearance: notificationAppearance,
|
|
@@ -131,6 +148,7 @@ function NotificationWrapper(props) {
|
|
|
131
148
|
var notifications = useNotifications();
|
|
132
149
|
var hideNotifications = useNotificationsAPI().hideNotifications;
|
|
133
150
|
var className = props.className, close = props.close;
|
|
151
|
+
console.log(notifications);
|
|
134
152
|
return (jsx("div", { className: clsx('notification', className), children: jsx("div", { className: "notification__wrapper", children: notifications.map(function (notification, i) { return (jsx(Notification, { id: notification.id, appearance: notification.appearance, title: notification.title, status: notification.status, text: notification.text, close: close, onClickClose: hideNotifications }, i)); }) }) }));
|
|
135
153
|
}
|
|
136
154
|
|
|
@@ -9,7 +9,7 @@ import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
|
9
9
|
import { D as Dropdown, a as DropdownItem } from '../DropdownItem_es_BMnIhUSe.js';
|
|
10
10
|
import { I as Icon } from '../Tooltip_es_B0nm9irO.js';
|
|
11
11
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
12
|
-
import { icons32, icons24 } from '@itcase/icons/default';
|
|
12
|
+
import { icons32, icons14, icons24 } from '@itcase/icons/default';
|
|
13
13
|
import 'lodash/camelCase';
|
|
14
14
|
import 'lodash/castArray';
|
|
15
15
|
import 'lodash/upperFirst';
|
|
@@ -55,12 +55,17 @@ var paginationAppearanceSize = {
|
|
|
55
55
|
iconAfterSize: '24',
|
|
56
56
|
iconBeforeFillSize: '24',
|
|
57
57
|
iconBeforeSize: '24',
|
|
58
|
+
nextIcon: icons32.Arrow.ChevronRightSmall,
|
|
58
59
|
pageCountDescTextSize: 'l',
|
|
59
60
|
pageCountDropdownItemDividerSize: 'xxs',
|
|
60
61
|
pageCountDropdownItemLabelSize: 'm',
|
|
61
62
|
pageCountDropdownItemSize: 'l',
|
|
63
|
+
pageCountInputIcon: icons32.Arrow.ChevronDownSmall,
|
|
64
|
+
pageCountInputIcon: icons24.Arrow.ChevronDownSmall,
|
|
65
|
+
pageCountInputIcon: icons32.Arrow.ChevronDownSmall,
|
|
62
66
|
pageCountInputIconFillSize: '24',
|
|
63
67
|
pageCountInputTextSize: 'm',
|
|
68
|
+
previousIcon: icons32.Arrow.ChevronLeftSmall,
|
|
64
69
|
},
|
|
65
70
|
sizeM: {
|
|
66
71
|
size: 'm',
|
|
@@ -69,12 +74,16 @@ var paginationAppearanceSize = {
|
|
|
69
74
|
iconAfterSize: '24',
|
|
70
75
|
iconBeforeFillSize: '24',
|
|
71
76
|
iconBeforeSize: '24',
|
|
77
|
+
nextIcon: icons32.Arrow.ChevronRightSmall,
|
|
72
78
|
pageCountDescTextSize: 'm',
|
|
73
79
|
pageCountDropdownItemDividerSize: 'xxs',
|
|
74
80
|
pageCountDropdownItemLabelSize: 'm',
|
|
75
81
|
pageCountDropdownItemSize: 'l',
|
|
76
|
-
|
|
82
|
+
pageCountDropdownItemWidth: '64',
|
|
83
|
+
pageCountInputIcon: icons14.Arrow.ChevronDownSmall,
|
|
84
|
+
pageCountInputIconFillSize: '14',
|
|
77
85
|
pageCountInputTextSize: 'm',
|
|
86
|
+
previousIcon: icons32.Arrow.ChevronLeftSmall,
|
|
78
87
|
},
|
|
79
88
|
sizeS: {
|
|
80
89
|
size: 's',
|
|
@@ -83,12 +92,17 @@ var paginationAppearanceSize = {
|
|
|
83
92
|
iconAfterSize: '20',
|
|
84
93
|
iconBeforeFillSize: '20',
|
|
85
94
|
iconBeforeSize: '20',
|
|
95
|
+
nextIcon: icons32.Arrow.ChevronRightSmall,
|
|
96
|
+
previousIcon: icons32.Arrow.ChevronLeftSmall,
|
|
86
97
|
},
|
|
87
98
|
sizeXS: {
|
|
88
99
|
size: 'xs',
|
|
89
100
|
labelTextSize: 'xs',
|
|
90
101
|
beforeSize: '16',
|
|
91
102
|
iconAfterFillSize: '16',
|
|
103
|
+
nextIcon: icons32.Arrow.ChevronRightSmall,
|
|
104
|
+
pageCountInputIcon: icons32.Arrow.ChevronDownSmall,
|
|
105
|
+
previousIcon: icons32.Arrow.ChevronLeftSmall,
|
|
92
106
|
},
|
|
93
107
|
};
|
|
94
108
|
|
|
@@ -110,9 +124,7 @@ var paginationAppearanceSurface = {
|
|
|
110
124
|
surfacePrimary: {
|
|
111
125
|
fill: 'surfacePrimary',
|
|
112
126
|
fillHover: 'surfaceSecondary',
|
|
113
|
-
nextIcon: icons32.Arrow.ChevronRightSmall,
|
|
114
127
|
nextIconFillIcon: 'surfaceItemPrimary',
|
|
115
|
-
pageCountDesc: 'кол-во строк',
|
|
116
128
|
pageCountDescTextColor: 'surfaceTextPrimary',
|
|
117
129
|
pageCountDropdownAlignment: 'topCenter',
|
|
118
130
|
pageCountDropdownElevation: 8,
|
|
@@ -127,12 +139,9 @@ var paginationAppearanceSurface = {
|
|
|
127
139
|
pageCountDropdownItemLabelColorActive: 'accentTextPrimary',
|
|
128
140
|
pageCountDropdownItemLabelColorActiveHover: 'accentTextPrimary',
|
|
129
141
|
pageCountDropdownItemLabelColorHover: 'surfaceTextPrimary',
|
|
130
|
-
pageCountDropdownItemWidth: 'hug',
|
|
131
142
|
pageCountDropdownShape: 'rounded',
|
|
132
|
-
pageCountInputIcon: icons24.Arrow.ChevronDownSmall,
|
|
133
143
|
pageCountInputIconColor: 'surfaceItemPrimary',
|
|
134
144
|
pageCountInputTextColor: 'surfaceTextPrimary',
|
|
135
|
-
previousIcon: icons32.Arrow.ChevronLeftSmall,
|
|
136
145
|
previousIconFillIcon: 'surfaceItemPrimary',
|
|
137
146
|
},
|
|
138
147
|
};
|
|
@@ -208,14 +217,14 @@ function Pagination(props) {
|
|
|
208
217
|
return (__assign(__assign({}, resultConfig), (_a = paginationConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
209
218
|
}, {});
|
|
210
219
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
211
|
-
var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, marginPagesDisplayed = propsGenerator.marginPagesDisplayed, nextIcon = propsGenerator.nextIcon, nextIconFill = propsGenerator.nextIconFill, nextIconFillIcon = propsGenerator.nextIconFillIcon, nextIconFillSize = propsGenerator.nextIconFillSize, nextIconSize = propsGenerator.nextIconSize, pageCountDescTextColor = propsGenerator.pageCountDescTextColor, pageCountDescTextSize = propsGenerator.pageCountDescTextSize, pageCountDropdownAlignment = propsGenerator.pageCountDropdownAlignment, pageCountDropdownElevation = propsGenerator.pageCountDropdownElevation, pageCountDropdownFill = propsGenerator.pageCountDropdownFill, pageCountDropdownItemDividerFill = propsGenerator.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = propsGenerator.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = propsGenerator.pageCountDropdownItemFill, pageCountDropdownItemFillActive = propsGenerator.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = propsGenerator.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = propsGenerator.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = propsGenerator.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = propsGenerator.pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive = propsGenerator.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActiveHover = propsGenerator.pageCountDropdownItemLabelColorActiveHover, pageCountDropdownItemLabelColorHover = propsGenerator.pageCountDropdownItemLabelColorHover, pageCountDropdownItemLabelSize = propsGenerator.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = propsGenerator.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = propsGenerator.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = propsGenerator.pageCountDropdownItemSize, pageCountDropdownItemWidth = propsGenerator.pageCountDropdownItemWidth, pageCountDropdownShape = propsGenerator.pageCountDropdownShape, pageCountInputIcon = propsGenerator.pageCountInputIcon, pageCountInputIconColor = propsGenerator.pageCountInputIconColor, pageCountInputIconFillSize = propsGenerator.pageCountInputIconFillSize, pageCountInputIconSrc = propsGenerator.pageCountInputIconSrc, pageCountInputTextColor = propsGenerator.pageCountInputTextColor, pageCountInputTextSize = propsGenerator.pageCountInputTextSize, pageRangeDisplayed = propsGenerator.pageRangeDisplayed, previousIcon = propsGenerator.previousIcon, previousIconFill = propsGenerator.previousIconFill, previousIconFillIcon = propsGenerator.previousIconFillIcon, previousIconFillSize = propsGenerator.previousIconFillSize, previousIconSize = propsGenerator.previousIconSize;
|
|
220
|
+
var justifyContentClass = propsGenerator.justifyContentClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, marginPagesDisplayed = propsGenerator.marginPagesDisplayed, nextIcon = propsGenerator.nextIcon, nextIconFill = propsGenerator.nextIconFill, nextIconFillIcon = propsGenerator.nextIconFillIcon, nextIconFillSize = propsGenerator.nextIconFillSize, nextIconSize = propsGenerator.nextIconSize, pageCountDescTextColor = propsGenerator.pageCountDescTextColor, pageCountDescTextSize = propsGenerator.pageCountDescTextSize, pageCountDropdownAlignment = propsGenerator.pageCountDropdownAlignment, pageCountDropdownElevation = propsGenerator.pageCountDropdownElevation, pageCountDropdownFill = propsGenerator.pageCountDropdownFill, pageCountDropdownItemDividerFill = propsGenerator.pageCountDropdownItemDividerFill, pageCountDropdownItemDividerSize = propsGenerator.pageCountDropdownItemDividerSize, pageCountDropdownItemFill = propsGenerator.pageCountDropdownItemFill, pageCountDropdownItemFillActive = propsGenerator.pageCountDropdownItemFillActive, pageCountDropdownItemFillActiveHover = propsGenerator.pageCountDropdownItemFillActiveHover, pageCountDropdownItemFillHover = propsGenerator.pageCountDropdownItemFillHover, pageCountDropdownItemLabelAlign = propsGenerator.pageCountDropdownItemLabelAlign, pageCountDropdownItemLabelColor = propsGenerator.pageCountDropdownItemLabelColor, pageCountDropdownItemLabelColorActive = propsGenerator.pageCountDropdownItemLabelColorActive, pageCountDropdownItemLabelColorActiveHover = propsGenerator.pageCountDropdownItemLabelColorActiveHover, pageCountDropdownItemLabelColorHover = propsGenerator.pageCountDropdownItemLabelColorHover, pageCountDropdownItemLabelSize = propsGenerator.pageCountDropdownItemLabelSize, pageCountDropdownItemLabelWrap = propsGenerator.pageCountDropdownItemLabelWrap, pageCountDropdownItemShowDivider = propsGenerator.pageCountDropdownItemShowDivider, pageCountDropdownItemSize = propsGenerator.pageCountDropdownItemSize, pageCountDropdownItemWidth = propsGenerator.pageCountDropdownItemWidth, pageCountDropdownShape = propsGenerator.pageCountDropdownShape, pageCountInputIcon = propsGenerator.pageCountInputIcon, pageCountInputIconColor = propsGenerator.pageCountInputIconColor, pageCountInputIconFillSize = propsGenerator.pageCountInputIconFillSize, pageCountInputIconSrc = propsGenerator.pageCountInputIconSrc, pageCountInputTextColor = propsGenerator.pageCountInputTextColor, pageCountInputTextSize = propsGenerator.pageCountInputTextSize, pageRangeDisplayed = propsGenerator.pageRangeDisplayed, previousIcon = propsGenerator.previousIcon, previousIconFill = propsGenerator.previousIconFill, previousIconFillIcon = propsGenerator.previousIconFillIcon, previousIconFillSize = propsGenerator.previousIconFillSize, previousIconSize = propsGenerator.previousIconSize, sizeClass = propsGenerator.sizeClass;
|
|
212
221
|
var paginationStyles = useStyles(props).styles;
|
|
213
|
-
return (jsxs("div", { className:
|
|
222
|
+
return (jsxs("div", { className: clsx('pagination', sizeClass && "pagination_size_".concat(sizeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: paginationStyles, children: [jsx(ReactPaginate, { disabledClassName: "pagination__item_state_disabled cursor_type_default", disabledLinkClassName: "pagination__item_state_disabled", activeClassName: "pagination__item_state_active cursor_type_default", activeLinkClassName: "pagination__item-link_state_active", breakClassName: "pagination__item pagination__item_break", breakLabel: "...", breakLinkClassName: "pagination__item-link", containerClassName: clsx(className, 'pagination__container', justifyContentClass &&
|
|
214
223
|
"pagination_justify-content_".concat(justifyContentClass)),
|
|
215
224
|
// pages settings
|
|
216
225
|
forcePage: paginationPageIndex, marginPagesDisplayed: marginPagesDisplayed, nextClassName: "pagination__item pagination__item_next",
|
|
217
226
|
// next button
|
|
218
|
-
nextLabel: jsx(Icon, { fill: nextIconFill, fillSize: nextIconFillSize, iconFill: nextIconFillIcon, iconSize: nextIconSize, shape: "circular", SvgImage: nextIcon }), nextLinkClassName: "pagination__item-link", pageClassName: "pagination__item", pageCount: paginationPagesCount, pageLinkClassName: "pagination__item-link", pageRangeDisplayed: pageRangeDisplayed, previousClassName: "pagination__item pagination__item_previous", previousLabel: jsx(Icon, { fill: previousIconFill, fillSize: previousIconFillSize, iconFill: previousIconFillIcon, iconSize: previousIconSize, shape: "circular", SvgImage: previousIcon }), previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxs("div", { className: clsx(className, 'pagination__count'), children: [jsx(Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsx(Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsx(Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsx(Dropdown, { alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
|
|
227
|
+
nextLabel: jsx(Icon, { fill: nextIconFill, fillSize: nextIconFillSize, iconFill: nextIconFillIcon, iconSize: nextIconSize, shape: "circular", SvgImage: nextIcon }), nextLinkClassName: "pagination__item-link", pageClassName: "pagination__item", pageCount: paginationPagesCount, pageLinkClassName: "pagination__item-link", pageRangeDisplayed: pageRangeDisplayed, previousClassName: "pagination__item pagination__item_previous", previousLabel: jsx(Icon, { fill: previousIconFill, fillSize: previousIconFillSize, iconFill: previousIconFillIcon, iconSize: previousIconSize, shape: "circular", SvgImage: previousIcon }), previousLinkClassName: "pagination__item-link", onPageChange: _onChangePage }), isPageCount && (jsxs("div", { className: clsx(className, 'pagination__count'), children: [jsx(Text, { className: "pagination__count-text", size: pageCountDescTextSize, textColor: pageCountDescTextColor, children: pageCountDesc }), jsxs("div", { className: clsx('pagination__input', 'cursor_type_pointer', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass)), onClick: onClickCommandMenuButton, children: [jsx(Text, { size: pageCountInputTextSize, textColor: pageCountInputTextColor, children: activeDropdownItem }), jsx(Icon, { fillSize: pageCountInputIconFillSize, iconFill: pageCountInputIconColor, imageSrc: pageCountInputIconSrc, SvgImage: pageCountInputIcon }), jsx(Dropdown, { className: "pagination__dropdown", alignment: pageCountDropdownAlignment, fill: pageCountDropdownFill, elevation: pageCountDropdownElevation, shape: pageCountDropdownShape, isOpen: isOpenDropdown, setIsOpen: setIsOpenDropdown, children: pageCountDropdownArray.map(function (item, index) {
|
|
219
228
|
return activeDropdownItem === item ? (jsx(DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillActive: pageCountDropdownItemFillActive, fillActiveHover: pageCountDropdownItemFillActiveHover, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorActive: pageCountDropdownItemLabelColorActive, labelTextColorActiveHover: pageCountDropdownItemLabelColorActiveHover, labelTextColorHover: pageCountDropdownItemLabelColorHover, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountArray.length - 1 &&
|
|
220
229
|
pageCountDropdownItemShowDivider, isActive: true, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item)) : (jsx(DropdownItem, { width: pageCountDropdownItemWidth, size: pageCountDropdownItemSize, fill: pageCountDropdownItemFill, fillHover: pageCountDropdownItemFillHover, label: item.toString(), labelTextAlign: pageCountDropdownItemLabelAlign, labelTextColor: pageCountDropdownItemLabelColor, labelTextColorHover: pageCountDropdownItemLabelColorHover, labelTextSize: pageCountDropdownItemLabelSize, labelTextWrap: pageCountDropdownItemLabelWrap, dividerDirection: pageCountDropdownItemDividerDirection, dividerFill: pageCountDropdownItemDividerFill, dividerSize: pageCountDropdownItemDividerSize, showDivider: index < pageCountArray.length - 1 &&
|
|
221
230
|
pageCountDropdownItemShowDivider, isActive: false, onClick: function (event) { return handleDropdownItemClick(event, item); } }, item));
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { icons24 } from '@itcase/icons/default';
|
|
2
|
+
|
|
3
|
+
var segmentedArgsMock = {
|
|
4
|
+
activeSegment: {
|
|
5
|
+
value: 1,
|
|
6
|
+
},
|
|
7
|
+
segments: [
|
|
8
|
+
{
|
|
9
|
+
label: 'Label 1',
|
|
10
|
+
iconAfter: icons24.Placeholder,
|
|
11
|
+
iconBefore: icons24.Placeholder,
|
|
12
|
+
value: 1,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: 'Label 2',
|
|
16
|
+
iconAfter: icons24.Placeholder,
|
|
17
|
+
iconBefore: icons24.Placeholder,
|
|
18
|
+
value: 2,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: 'Label 3',
|
|
22
|
+
iconAfter: icons24.Placeholder,
|
|
23
|
+
iconBefore: icons24.Placeholder,
|
|
24
|
+
value: 3,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: 'Label 4',
|
|
28
|
+
iconAfter: icons24.Placeholder,
|
|
29
|
+
iconBefore: icons24.Placeholder,
|
|
30
|
+
value: 4,
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
shape: 'rounded',
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export { segmentedArgsMock };
|
|
@@ -2,10 +2,12 @@ import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import React, { useRef, useMemo, createRef, useCallback, useEffect } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
+
import { I as Icon } from '../Tooltip_es_B0nm9irO.js';
|
|
5
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
7
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
8
|
+
import '../hooks/useStyles/useStyles.js';
|
|
7
9
|
import 'lodash/camelCase';
|
|
8
|
-
import 'lodash/
|
|
10
|
+
import 'lodash/maxBy';
|
|
9
11
|
import 'lodash/upperFirst';
|
|
10
12
|
import '../context/Notifications.js';
|
|
11
13
|
import 'uuid';
|
|
@@ -14,9 +16,10 @@ import '../context/UIContext.js';
|
|
|
14
16
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
15
17
|
import 'react-responsive';
|
|
16
18
|
import '../utils/setViewportProperty.js';
|
|
17
|
-
import '../hooks/useStyles/useStyles.js';
|
|
18
|
-
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
+
import 'react-inlinesvg';
|
|
21
|
+
import '../Link_es_DxtZLeKY.js';
|
|
22
|
+
import 'lodash/castArray';
|
|
20
23
|
|
|
21
24
|
var segmentedAppearanceDefault = {
|
|
22
25
|
defaultPrimary: {
|
|
@@ -108,7 +111,7 @@ var segmentedAppearanceStyle = {
|
|
|
108
111
|
};
|
|
109
112
|
|
|
110
113
|
var segmentedAppearanceSuccess = {
|
|
111
|
-
|
|
114
|
+
successPrimary: {
|
|
112
115
|
fill: 'successPrimary',
|
|
113
116
|
fillHover: 'successPrimaryHover',
|
|
114
117
|
labelTextColor: 'successTextSecondary',
|
|
@@ -134,7 +137,7 @@ var segmentedConfig = {
|
|
|
134
137
|
},
|
|
135
138
|
};
|
|
136
139
|
var Segmented = React.forwardRef(function (props) {
|
|
137
|
-
var className = props.className, name = props.name, appearance = props.appearance, isDisabled = props.isDisabled, _a = props.activeSegment, activeSegment = _a === void 0 ? {} : _a, segments = props.segments, setActiveSegment = props.setActiveSegment, onChange = props.onChange;
|
|
140
|
+
var className = props.className, name = props.name, appearance = props.appearance, isDisabled = props.isDisabled, _a = props.activeSegment, activeSegment = _a === void 0 ? {} : _a, segments = props.segments, isSkeleton = props.isSkeleton, setActiveSegment = props.setActiveSegment, onChange = props.onChange;
|
|
138
141
|
var controlRef = useRef(null);
|
|
139
142
|
var segmentsRefs = useMemo(function () {
|
|
140
143
|
return new Map(segments.map(function (item) { return [item.value, createRef()]; }));
|
|
@@ -161,17 +164,17 @@ var Segmented = React.forwardRef(function (props) {
|
|
|
161
164
|
return (__assign(__assign({}, resultConfig), (_a = segmentedConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
162
165
|
}, {});
|
|
163
166
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
164
|
-
var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, indicatorFillClass = propsGenerator.indicatorFillClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
165
|
-
return (jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) { return (jsxs("div", { className: clsx('segmented__item', item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
|
|
167
|
+
var fillActiveClass = propsGenerator.fillActiveClass, fillActiveHoverClass = propsGenerator.fillActiveHoverClass, fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextActiveHoverColor = propsGenerator.labelTextActiveHoverColor, labelTextColor = propsGenerator.labelTextColor, labelTextHoverColor = propsGenerator.labelTextHoverColor, labelTextSize = propsGenerator.labelTextSize, labelTextWrap = propsGenerator.labelTextWrap, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, icon = propsGenerator.icon, iconAppearance = propsGenerator.iconAppearance, iconFill = propsGenerator.iconFill, iconFillIcon = propsGenerator.iconFillIcon, iconFillSize = propsGenerator.iconFillSize, iconShape = propsGenerator.iconShape, iconSize = propsGenerator.iconSize, iconSrc = propsGenerator.iconSrc, indicatorFillClass = propsGenerator.indicatorFillClass, inputBorderColorClass = propsGenerator.inputBorderColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
168
|
+
return (jsx("div", { className: clsx(className, 'segmented', shapeClass && "segmented_shape_".concat(shapeClass), fillClass && "fill_".concat(fillClass), widthClass && "segmented_width_".concat(widthClass), sizeClass && "segmented_size_".concat(sizeClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), isSkeleton && "segmented_skeleton"), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments === null || segments === void 0 ? void 0 : segments.map(function (item) { return (jsxs("div", { className: clsx('segmented__item', item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
|
|
166
169
|
? fillActiveHoverClass &&
|
|
167
170
|
"fill_active_hover_".concat(fillActiveHoverClass)
|
|
168
171
|
: fillHoverClass && "fill_hover_".concat(fillHoverClass), item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
|
|
169
172
|
? fillActiveClass && "fill_active_".concat(fillActiveClass)
|
|
170
|
-
: fillClass && "fill_".concat(fillClass), item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value) && 'segmented__item_active', onChange && 'cursor_type_pointer', isDisabled && 'cursor_type_default'), ref: segmentsRefs.get(item.value), children: [jsx("input", { id: item.label, className: "segmented__item-radio", type: "radio", name: name, checked: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value), value: item.value, onChange: function () { return onChangeValue(item); } }), jsx("label", { className: clsx('segmented__item-label'), htmlFor: item.label, children: jsx(Text, { className: clsx('segmented__item-label-text', labelTextWrap && "word-wrap_".concat(labelTextWrap)), size: labelTextSize, textColor: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
|
|
173
|
+
: fillClass && "fill_".concat(fillClass), item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value) && 'segmented__item_active', onChange && 'cursor_type_pointer', isDisabled && 'cursor_type_default'), ref: segmentsRefs.get(item.value), children: [(icon || iconSrc) && (jsx(Icon, { className: clsx('tile__icon'), appearance: iconAppearance, fill: iconFill, fillSize: iconFillSize, iconFill: iconFillIcon, iconSize: iconSize, imageSrc: iconSrc, shape: iconShape, SvgImage: icon })), jsx("input", { id: item.label, className: "segmented__item-radio", type: "radio", name: name, checked: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value), value: item.value, onChange: function () { return onChangeValue(item); } }), jsx("label", { className: clsx('segmented__item-label'), htmlFor: item.label, children: jsx(Text, { className: clsx('segmented__item-label-text', labelTextWrap && "word-wrap_".concat(labelTextWrap)), size: labelTextSize, textColor: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
|
|
171
174
|
? labelTextActiveColor
|
|
172
175
|
: labelTextColor, textColorHover: item.value === (activeSegment === null || activeSegment === void 0 ? void 0 : activeSegment.value)
|
|
173
176
|
? labelTextActiveHoverColor
|
|
174
|
-
: labelTextHoverColor, children: item.label }) })] }, item.value)); }), jsx("div", { className: clsx('segmented__indicator', indicatorFillClass && "fill_".concat(indicatorFillClass))
|
|
177
|
+
: labelTextHoverColor, children: item.label }) })] }, item.value)); }), jsx("div", { className: clsx('segmented__indicator', indicatorFillClass && "fill_".concat(indicatorFillClass)) })] }) }) }));
|
|
175
178
|
});
|
|
176
179
|
|
|
177
180
|
export { Segmented, segmentedAppearance, segmentedConfig };
|
|
@@ -23,6 +23,29 @@
|
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
+
.notification {
|
|
27
|
+
&&_float {
|
|
28
|
+
background: none;
|
|
29
|
+
padding: 0;
|
|
30
|
+
position: fixed;
|
|
31
|
+
top: 0;
|
|
32
|
+
right: 0;
|
|
33
|
+
z-index: 1000;
|
|
34
|
+
^&__wrapper {
|
|
35
|
+
width: 100%;
|
|
36
|
+
position: relative;
|
|
37
|
+
display: flex;
|
|
38
|
+
flex-flow: column nowrap;
|
|
39
|
+
align-items: flex-end;
|
|
40
|
+
top: 20px;
|
|
41
|
+
right: 40px;
|
|
42
|
+
gap: 20px;
|
|
43
|
+
^^&__item {
|
|
44
|
+
width: 320px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
26
49
|
.notification__item {
|
|
27
50
|
&_float {
|
|
28
51
|
width: 100%;
|
|
@@ -14,20 +14,28 @@
|
|
|
14
14
|
align-items: center;
|
|
15
15
|
gap: 8px;
|
|
16
16
|
&-text {
|
|
17
|
-
color: var(--surface-text-primary);
|
|
18
17
|
display: block;
|
|
19
18
|
}
|
|
20
19
|
}
|
|
21
20
|
&__input {
|
|
22
|
-
background: var(--color-surface-fill-primary);
|
|
23
|
-
border: solid 1px
|
|
24
|
-
var(--pagination-input-color, --color-surface-border-tertiary);
|
|
25
|
-
border-radius: 8px;
|
|
26
21
|
position: relative;
|
|
27
22
|
display: flex;
|
|
28
23
|
justify-content: center;
|
|
29
24
|
align-items: center;
|
|
30
|
-
|
|
25
|
+
}
|
|
26
|
+
&__dropdown {
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
.pagination {
|
|
30
|
+
@each $size in xxl, xl, l, m, s, xs, xxs {
|
|
31
|
+
&_size_$(size) {
|
|
32
|
+
^&__input {
|
|
33
|
+
min-width: var(--pagination-input-size-$(size)-min-width);
|
|
34
|
+
min-height: var(--pagination-input-size-$(size)-min-height);
|
|
35
|
+
padding: var(--pagination-input-size-$(size)-padding);
|
|
36
|
+
gap: var(--pagination-input-size-$(size)-gap);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
31
39
|
}
|
|
32
40
|
}
|
|
33
41
|
.pagination {
|
|
@@ -142,4 +150,9 @@
|
|
|
142
150
|
--paginator-item-disabled-fill-hover: none;
|
|
143
151
|
--paginator-item-disabled-text: var(--color-surface-text-primary);
|
|
144
152
|
--paginator-item-disabled-icon: var(--color-surface-item-disabled);
|
|
153
|
+
|
|
154
|
+
--pagination-input-size-m-padding: 0 12px;
|
|
155
|
+
--pagination-input-size-m-gap: 4px;
|
|
156
|
+
--pagination-input-size-m-min-height: 32px;
|
|
157
|
+
--pagination-input-size-m-min-width: 64px;
|
|
145
158
|
}
|
|
@@ -114,6 +114,30 @@
|
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
+
.segmented {
|
|
118
|
+
&&_skeleton {
|
|
119
|
+
background-size: 200% !important;
|
|
120
|
+
border: none;
|
|
121
|
+
animation: segmentedSkeleton 3s infinite linear !important;
|
|
122
|
+
background-image: linear-gradient(
|
|
123
|
+
90deg,
|
|
124
|
+
var(--color-surface-fill-secondary),
|
|
125
|
+
var(--color-surface-fill-tertiary),
|
|
126
|
+
var(--color-surface-fill-secondary)
|
|
127
|
+
) !important;
|
|
128
|
+
& * {
|
|
129
|
+
opacity: 0%;
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
@keyframes segmentedSkeleton {
|
|
134
|
+
0% {
|
|
135
|
+
background-position: 200%;
|
|
136
|
+
}
|
|
137
|
+
100% {
|
|
138
|
+
background-position: -200%;
|
|
139
|
+
}
|
|
140
|
+
}
|
|
117
141
|
:root {
|
|
118
142
|
--segmented-item-size-l-padding: 14px 16px;
|
|
119
143
|
--segmented-item-size-m-padding: 12px 16px;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/blocks'
|
|
2
2
|
|
|
3
3
|
import * as CellStories from '../stories/CellDemo.stories'
|
|
4
|
+
import * as CellStoriesDirection from '../stories/CellDirection.stories'
|
|
4
5
|
|
|
5
6
|
<Meta title="Molecules / Cell / Overview" />
|
|
6
7
|
|
|
@@ -12,10 +13,10 @@ import * as CellStories from '../stories/CellDemo.stories'
|
|
|
12
13
|
|
|
13
14
|
## Vertical
|
|
14
15
|
|
|
15
|
-
<Story of={
|
|
16
|
+
<Story of={CellStoriesDirection.Vertical} />
|
|
16
17
|
|
|
17
18
|
## Horizontal
|
|
18
19
|
|
|
19
|
-
<Story of={
|
|
20
|
+
<Story of={CellStoriesDirection.Horizontal} />
|
|
20
21
|
|
|
21
22
|
|
|
@@ -6,5 +6,5 @@ import * as DatePeriodStories from '../stories/DatePeriodDemo.stories'
|
|
|
6
6
|
|
|
7
7
|
# Playground
|
|
8
8
|
|
|
9
|
-
<Canvas sourceState="shown" of={DatePeriodStories.
|
|
10
|
-
<Controls of={DatePeriodStories.
|
|
9
|
+
<Canvas sourceState="shown" of={DatePeriodStories.Demo} />
|
|
10
|
+
<Controls of={DatePeriodStories.Demo} />
|
|
@@ -8,14 +8,6 @@ import * as VideoStories from '../stories/VideoDemo.stories'
|
|
|
8
8
|
|
|
9
9
|
`Video` - используется для встраивания видео в разных форматах в веб-приложения
|
|
10
10
|
|
|
11
|
-
##
|
|
12
|
-
<Story of={VideoStories.
|
|
11
|
+
## Demo
|
|
12
|
+
<Story of={VideoStories.Demo}/>
|
|
13
13
|
|
|
14
|
-
## Mp4
|
|
15
|
-
<Story of={VideoStories.Mp4}/>
|
|
16
|
-
|
|
17
|
-
## Webm
|
|
18
|
-
<Story of={VideoStories.Webm}/>
|
|
19
|
-
|
|
20
|
-
## Ogv
|
|
21
|
-
<Story of={VideoStories.Ogv}/>
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
declare const choiceAppearanceDefault: {
|
|
2
2
|
defaultPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillItem: string;
|
|
5
|
+
fillItemActive: string;
|
|
6
|
+
fillItemHover: string;
|
|
4
7
|
labelTextColor: string;
|
|
5
8
|
borderColor: string;
|
|
6
9
|
iconAfterFill: string;
|
|
10
|
+
iconAfterFillActive: string;
|
|
7
11
|
iconBeforeFill: string;
|
|
12
|
+
iconBeforeFillActive: string;
|
|
13
|
+
iconFill: string;
|
|
14
|
+
iconFillActive: string;
|
|
8
15
|
};
|
|
9
16
|
};
|
|
10
17
|
export { choiceAppearanceDefault };
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
declare const choiceAppearanceDisabled: {
|
|
2
2
|
disabledPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillItem: string;
|
|
5
|
+
fillItemActive: string;
|
|
6
|
+
fillItemHover: string;
|
|
4
7
|
labelTextColor: string;
|
|
5
8
|
borderColor: string;
|
|
6
9
|
iconAfterFill: string;
|
|
10
|
+
iconAfterFillActive: string;
|
|
7
11
|
iconBeforeFill: string;
|
|
12
|
+
iconBeforeFillActive: string;
|
|
13
|
+
iconFill: string;
|
|
14
|
+
iconFillActive: string;
|
|
8
15
|
};
|
|
9
16
|
};
|
|
10
17
|
export { choiceAppearanceDisabled };
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
declare const choiceAppearanceRequire: {
|
|
2
2
|
requirePrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillItem: string;
|
|
4
5
|
fillItemActive: string;
|
|
6
|
+
fillItemHover: string;
|
|
5
7
|
labelTextColor: string;
|
|
6
8
|
borderColor: string;
|
|
7
9
|
iconAfterFill: string;
|
|
10
|
+
iconAfterFillActive: string;
|
|
8
11
|
iconBeforeFill: string;
|
|
12
|
+
iconBeforeFillActive: string;
|
|
13
|
+
iconFill: string;
|
|
14
|
+
iconFillActive: string;
|
|
9
15
|
};
|
|
10
16
|
};
|
|
11
17
|
export { choiceAppearanceRequire };
|
|
@@ -4,10 +4,14 @@ declare const choiceAppearanceStyle: {
|
|
|
4
4
|
};
|
|
5
5
|
ghost: {
|
|
6
6
|
fill: string;
|
|
7
|
+
fillItem: string;
|
|
8
|
+
fillItemActive: string;
|
|
7
9
|
borderColor: string;
|
|
8
10
|
};
|
|
9
11
|
outlined: {
|
|
10
12
|
fill: string;
|
|
13
|
+
fillItem: string;
|
|
14
|
+
fillItemActive: string;
|
|
11
15
|
};
|
|
12
16
|
solid: {
|
|
13
17
|
borderColor: string;
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
declare const choiceAppearanceSuccess: {
|
|
2
2
|
successPrimary: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillItem: string;
|
|
4
5
|
fillItemActive: string;
|
|
6
|
+
fillItemHover: string;
|
|
5
7
|
labelTextColor: string;
|
|
6
8
|
borderColor: string;
|
|
7
9
|
iconAfterFill: string;
|
|
10
|
+
iconAfterFillActive: string;
|
|
8
11
|
iconBeforeFill: string;
|
|
12
|
+
iconBeforeFillActive: string;
|
|
13
|
+
iconFill: string;
|
|
14
|
+
iconFillActive: string;
|
|
9
15
|
};
|
|
10
16
|
};
|
|
11
17
|
export { choiceAppearanceSuccess };
|
|
@@ -4,8 +4,12 @@ declare const choiceListMock: {
|
|
|
4
4
|
};
|
|
5
5
|
choices: {
|
|
6
6
|
label: string;
|
|
7
|
-
iconAfter:
|
|
8
|
-
|
|
7
|
+
iconAfter: {
|
|
8
|
+
Default: any;
|
|
9
|
+
};
|
|
10
|
+
iconBefore: {
|
|
11
|
+
Default: any;
|
|
12
|
+
};
|
|
9
13
|
value: number;
|
|
10
14
|
}[];
|
|
11
15
|
};
|
|
@@ -14,7 +18,9 @@ declare const choiceListIconMock: {
|
|
|
14
18
|
value: number;
|
|
15
19
|
};
|
|
16
20
|
choices: {
|
|
17
|
-
icon:
|
|
21
|
+
icon: {
|
|
22
|
+
Default: any;
|
|
23
|
+
};
|
|
18
24
|
value: number;
|
|
19
25
|
}[];
|
|
20
26
|
};
|