@itcase/ui 1.8.129 → 1.8.131
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/{ChipsGroup_cjs_BMkiDYau.js → ChipsGroup_cjs_Du8WHI-Y.js} +15 -11
- package/dist/{ChipsGroup_es_Czu95rkL.js → ChipsGroup_es_CzVlqaHv.js} +15 -11
- package/dist/{Group_cjs_DmfeUcFI.js → Group_cjs_DxyobxPf.js} +2 -2
- package/dist/{Group_es_BU5k8f5S.js → Group_es_DJ6GHMrs.js} +2 -2
- package/dist/cjs/components/AvatarStack.js +1 -1
- package/dist/cjs/components/Chips.js +1 -1
- package/dist/cjs/components/DatePeriod.js +1 -1
- package/dist/cjs/components/Group.js +1 -1
- package/dist/cjs/components/MenuItem.js +11 -11
- package/dist/cjs/components/Response.js +30 -41
- package/dist/cjs/components/Segmented.js +5 -5
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/hooks/useActiveClasses/useActiveClasses.helpers.js +2 -2
- package/dist/cjs/hooks/useStyles/styleAttributes.js +5 -1
- package/dist/components/AvatarStack.js +1 -1
- package/dist/components/Chips.js +1 -1
- package/dist/components/DatePeriod.js +1 -1
- package/dist/components/Group.js +1 -1
- package/dist/components/MenuItem.js +11 -11
- package/dist/components/Response.js +30 -41
- package/dist/components/Segmented.js +5 -5
- package/dist/components/Select.js +1 -1
- package/dist/css/components/MenuItem/MenuItem.css +1 -4
- package/dist/css/components/Pagination/Pagination.css +3 -0
- package/dist/css/styles/bundle.css +104 -0
- package/dist/css/styles/easing/easing.css +104 -0
- package/dist/hooks/useActiveClasses/useActiveClasses.helpers.js +2 -2
- package/dist/hooks/useStyles/styleAttributes.js +5 -1
- package/dist/types/components/Chips/appearance/chipsDisabled.d.ts +4 -0
- package/dist/types/components/Chips/appearance/chipsSurface.d.ts +2 -2
- package/dist/types/components/Dropdown/Dropdown.interface.d.ts +1 -3
- package/dist/types/components/MenuItem/MenuItem.appearance.d.ts +232 -290
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +6 -5
- package/dist/types/components/Response/Response.constant.d.ts +6 -20
- package/dist/types/components/Segmented/Segmented.interface.d.ts +2 -2
- package/dist/types/components/Segmented/appearance/segmentedDefault.d.ts +2 -2
- package/dist/types/components/Segmented/appearance/segmentedSuccess.d.ts +1 -1
- package/package.json +1 -1
|
@@ -167,13 +167,13 @@ const menuItemAppearanceSurface = {
|
|
|
167
167
|
},
|
|
168
168
|
surfacePrimary: {
|
|
169
169
|
fill: 'surfacePrimary',
|
|
170
|
-
fillActive: '
|
|
171
|
-
fillActiveHover: '
|
|
172
|
-
fillHover: '
|
|
173
|
-
labelTextActiveColor: '
|
|
174
|
-
|
|
170
|
+
fillActive: 'surfaceSecondary',
|
|
171
|
+
fillActiveHover: 'surfaceTertiary',
|
|
172
|
+
fillHover: 'surfaceSecondary',
|
|
173
|
+
labelTextActiveColor: 'surfaceTextPrimary',
|
|
174
|
+
labelTextActiveColorHover: 'surfaceTextPrimary',
|
|
175
175
|
labelTextColor: 'surfaceTextPrimary',
|
|
176
|
-
|
|
176
|
+
labelTextColorHover: 'surfaceTextPrimary',
|
|
177
177
|
borderColor: 'surfaceBorderQuaternary',
|
|
178
178
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
179
179
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
@@ -189,7 +189,7 @@ const menuItemAppearanceSurface = {
|
|
|
189
189
|
fillActiveHover: 'surfaceHover',
|
|
190
190
|
fillHover: 'surfaceSecondary',
|
|
191
191
|
labelTextActiveColor: 'accentTextSecondary',
|
|
192
|
-
|
|
192
|
+
labelTextActiveColorHover: 'surfaceTextPrimary',
|
|
193
193
|
borderColor: 'surfaceBorderQuaternary',
|
|
194
194
|
iconAfterFillIcon: 'surfaceItemPrimary',
|
|
195
195
|
iconBeforeFillIcon: 'surfaceItemPrimary',
|
|
@@ -217,7 +217,7 @@ const menuItemConfig = {
|
|
|
217
217
|
},
|
|
218
218
|
};
|
|
219
219
|
function MenuItem(props) {
|
|
220
|
-
const { appearance, className, label, href, link, LinkComponent, rel, showTooltip, target, tooltipAppearance, underline, before, after, isActive, isDisabled, onClick, children, } = props;
|
|
220
|
+
const { appearance, className, label, href, link, LinkComponent, rel, showTooltip, target, easing, tooltipAppearance, underline, before, after, isActive, isDisabled, onClick, children, } = props;
|
|
221
221
|
const tooltipRef = useRef(null);
|
|
222
222
|
const onMouseEnter = useCallback(() => {
|
|
223
223
|
if (showTooltip) {
|
|
@@ -231,10 +231,10 @@ function MenuItem(props) {
|
|
|
231
231
|
}, [showTooltip]);
|
|
232
232
|
const appearanceConfig = useAppearanceConfig(appearance, menuItemConfig, isDisabled);
|
|
233
233
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
234
|
-
const { directionClass, justifyContentClass, alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass,
|
|
234
|
+
const { directionClass, justifyContentClass, alignClass, alignDirectionClass, fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorDisabled, labelTextColorHover, labelTextSize, labelWeight, labelWrap, borderColorClass, iconAfter, iconAfterFill, iconAfterFillIcon, iconAfterFillSize, iconAfterShape, iconAfterSize, iconAfterSrc, iconBadgeAppearance, iconBadgeShape, iconBadgeSize, iconBadgeTextColor, iconBadgeTextSize, iconBadgeValue, iconBefore, iconBeforeFill, iconBeforeFillIcon, iconBeforeFillSize, iconBeforeShape, iconBeforeSize, iconBeforeSrc, tooltipTitle, shapeClass, shapeStrengthClass, sizeClass, tooltipFill, tooltipShape, tooltipShapeStrength, tooltipSize, tooltipText, tooltipTextColor, tooltipTextSize, tooltipTitleTextColor, typeClass, widthClass, isSkeleton, } = propsGenerator;
|
|
235
235
|
// @ts-expect-error
|
|
236
236
|
const { styles: menuItem } = useStyles(props);
|
|
237
|
-
return (jsxs("div", { className: clsx('menu-item', isActive && 'menu-item_state_active', isDisabled && `menu-item_state_disabled`, directionClass && `menu-item_direction_${directionClass}`, className, (iconBefore || iconBeforeSrc || iconAfter || iconAfterSrc) &&
|
|
237
|
+
return (jsxs("div", { className: clsx('menu-item', easing && `easing_${easing}`, isActive && 'menu-item_state_active', isDisabled && `menu-item_state_disabled`, directionClass && `menu-item_direction_${directionClass}`, className, (iconBefore || iconBeforeSrc || iconAfter || iconAfterSrc) &&
|
|
238
238
|
'menu-item_label-icon', sizeClass && `menu-item_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, !isActive
|
|
239
239
|
? fillClass && `fill_${fillClass}`
|
|
240
240
|
: fillActiveClass && `fill_active_${fillActiveClass}`, !isActive
|
|
@@ -242,7 +242,7 @@ function MenuItem(props) {
|
|
|
242
242
|
: fillActiveHoverClass && `fill_active_hover_${fillActiveHoverClass}`, shapeClass && `shape_${shapeClass}`, shapeStrengthClass
|
|
243
243
|
? `shape-strength_${shapeStrengthClass}`
|
|
244
244
|
: shapeClass === 'rounded' && 'shape-strength_default', typeClass && `menu-item_type_${typeClass}`, widthClass && `width_${widthClass}`, justifyContentClass &&
|
|
245
|
-
`menu-item_justify-content_${justifyContentClass}`, isSkeleton && `menu-item_skeleton`), style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [jsxs(Link, { className: clsx('menu-item__wrapper', alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsx(Text, { className: "menu-item__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover:
|
|
245
|
+
`menu-item_justify-content_${justifyContentClass}`, isSkeleton && `menu-item_skeleton`), style: menuItem, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [jsxs(Link, { className: clsx('menu-item__wrapper', alignDirectionClass && `align_${alignDirectionClass}`, alignClass && `align_${alignClass}`), href: link || href, LinkComponent: LinkComponent, rel: rel, target: target, underline: underline, children: [before, children || (jsxs(React.Fragment, { children: [(iconBefore || iconBeforeSrc) && (jsx(Icon, { className: clsx('menu-item__icon_before', iconBadgeValue && 'menu-item__icon_before-badge'), fill: iconBeforeFill, fillSize: iconBeforeFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: 'menu-item__icon_before_badge', badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconBeforeFillIcon, iconSize: iconBeforeSize, imageSrc: iconBeforeSrc, shape: iconBeforeShape, SvgImage: iconBefore })), label && (jsx(Text, { className: "menu-item__label", size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorDisabled: labelTextColorDisabled, textColorHover: labelTextColorHover, textWeight: labelWeight, textWrap: labelWrap, isActive: isActive, isDisabled: isDisabled, children: label })), (iconAfter || iconAfterSrc) && (jsx(Icon, { className: clsx('menu-item__icon_after', iconBadgeValue && 'menu-item__icon_after-badge'), fill: iconAfterFill, fillSize: iconAfterFillSize, badgeAppearance: iconBadgeAppearance, badgeClass: "menu-item__icon_after_badge", badgeShape: iconBadgeShape, badgeSize: iconBadgeSize, badgeTextColor: iconBadgeTextColor, badgeTextSize: iconBadgeTextSize, badgeValue: iconBadgeValue, iconFill: iconAfterFillIcon, iconSize: iconAfterSize, imageSrc: iconAfterSrc, shape: iconAfterShape, SvgImage: iconAfter }))] })), after] }), showTooltip && (jsx(Tooltip, { appearance: tooltipAppearance, className: "menu-item__tooltip", ref: tooltipRef, minWidth: "auto", size: tooltipSize, fill: tooltipFill, left: "100%", zIndex: "100", title: tooltipTitle, titleColor: tooltipTitleTextColor, paddingLeft: "2m", text: tooltipText, textColor: tooltipTextColor, textSize: tooltipTextSize,
|
|
246
246
|
// centering="vertical"
|
|
247
247
|
shape: tooltipShape, shapeStrength: tooltipShapeStrength, isTooltipDisableState: true }))] }));
|
|
248
248
|
}
|
|
@@ -7,7 +7,7 @@ import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceC
|
|
|
7
7
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
9
9
|
import { B as Button } from '../Button_es_B-SYHL6T.js';
|
|
10
|
-
import { G as Group } from '../
|
|
10
|
+
import { G as Group } from '../Group_es_DJ6GHMrs.js';
|
|
11
11
|
import { T as Text } from '../Text_es_RDU9GLCV.js';
|
|
12
12
|
import '@itcase/common';
|
|
13
13
|
import '../context/UrlAssetPrefix.js';
|
|
@@ -253,79 +253,68 @@ const Response = urlWithAssetPrefix(function Response(props) {
|
|
|
253
253
|
});
|
|
254
254
|
|
|
255
255
|
const RESPONSE_MESSAGES = {
|
|
256
|
-
empty: {
|
|
257
|
-
appearance: 'refresh ghost',
|
|
258
|
-
title: ' Список пуст',
|
|
259
|
-
desc: 'Нет данных по заданным параметрам',
|
|
260
|
-
code: '500',
|
|
261
|
-
imageSrc: responseIcon.Empty,
|
|
262
|
-
primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
263
|
-
primaryButtonLabel: 'ОК',
|
|
264
|
-
},
|
|
265
256
|
error: {
|
|
266
257
|
appearance: 'error ghost',
|
|
267
258
|
title: 'Ошибка',
|
|
268
259
|
desc: 'Возникла проблема с обработкой вашего запроса. Повторите попытку позже или обратитесь в поддержку по электронной почте: support@example.com',
|
|
269
|
-
code: '500',
|
|
260
|
+
// code: '500',
|
|
270
261
|
imageSrc: responseIcon.Error,
|
|
271
262
|
primaryButtonAppearance: 'errorPrimary sizeXXL solid rounded',
|
|
272
263
|
primaryButtonLabel: 'ОК',
|
|
273
264
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
274
265
|
secondaryButtonLabel: 'Отмена',
|
|
275
266
|
},
|
|
276
|
-
|
|
277
|
-
appearance: '
|
|
278
|
-
title: '
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
},
|
|
285
|
-
success: {
|
|
286
|
-
appearance: 'refresh ghost',
|
|
287
|
-
title: 'Готово',
|
|
288
|
-
desc: 'Успешно выполнено',
|
|
289
|
-
code: '500',
|
|
290
|
-
imageSrc: responseIcon.Success,
|
|
291
|
-
primaryButtonAppearance: 'successPrimary sizeXXL solid rounded',
|
|
292
|
-
primaryButtonLabel: 'ОК',
|
|
267
|
+
errorNetwork: {
|
|
268
|
+
appearance: 'unableLoadData ghost',
|
|
269
|
+
title: 'Ошибка соединения',
|
|
270
|
+
desc: 'Не удалось подключиться. Проверьте интернет-соединение и повторите попытку',
|
|
271
|
+
// code: null,
|
|
272
|
+
imageSrc: responseIcon.UnableLoadData,
|
|
273
|
+
primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
274
|
+
primaryButtonLabel: 'Обновить',
|
|
293
275
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
294
|
-
secondaryButtonLabel: '
|
|
276
|
+
secondaryButtonLabel: 'Отмена',
|
|
295
277
|
},
|
|
296
278
|
nothingFound: {
|
|
297
279
|
appearance: 'refresh ghost',
|
|
298
280
|
title: 'Ничего не найдено',
|
|
299
281
|
desc: 'Нет данных по заданным параметрам',
|
|
300
|
-
code: '500',
|
|
282
|
+
// code: '500',
|
|
301
283
|
imageSrc: responseIcon.NothingFound,
|
|
302
284
|
primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
303
285
|
primaryButtonLabel: 'Сбросить',
|
|
304
286
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
305
287
|
secondaryButtonLabel: 'Отмена',
|
|
306
288
|
},
|
|
307
|
-
|
|
308
|
-
appearance: '
|
|
309
|
-
title: '
|
|
310
|
-
desc: '
|
|
311
|
-
code: '
|
|
312
|
-
imageSrc: responseIcon.
|
|
289
|
+
empty: {
|
|
290
|
+
appearance: 'refresh ghost',
|
|
291
|
+
title: 'Список пуст',
|
|
292
|
+
desc: 'Нет данных по заданным параметрам',
|
|
293
|
+
code: '200',
|
|
294
|
+
imageSrc: responseIcon.Empty,
|
|
313
295
|
primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
314
|
-
primaryButtonLabel: '
|
|
315
|
-
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
316
|
-
secondaryButtonLabel: 'Отмена',
|
|
296
|
+
primaryButtonLabel: 'ОК',
|
|
317
297
|
},
|
|
318
|
-
|
|
298
|
+
errorAccessDenied: {
|
|
319
299
|
appearance: 'unableLoadData ghost',
|
|
320
300
|
title: 'Доступ ограничен',
|
|
321
301
|
desc: 'Для выяснения причин и восстановления доступа обратитесь, пожалуйста, в техническую поддержку по электронной почте: support@example.com',
|
|
322
|
-
code: '403',
|
|
302
|
+
code: '401/403',
|
|
323
303
|
imageSrc: responseIcon.UnableLoadData,
|
|
324
304
|
primaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
325
305
|
primaryButtonLabel: 'Повторить',
|
|
326
306
|
secondaryButtonAppearance: 'surfaceSecondary sizeXXL solid rounded',
|
|
327
307
|
secondaryButtonLabel: 'Отмена',
|
|
328
308
|
},
|
|
309
|
+
warning: {
|
|
310
|
+
appearance: 'warning ghost',
|
|
311
|
+
title: 'Внимание',
|
|
312
|
+
imageSrc: responseIcon.Warning,
|
|
313
|
+
primaryButtonAppearance: 'warningPrimary sizeXXL solid rounded',
|
|
314
|
+
primaryButtonLabel: 'Повторить',
|
|
315
|
+
secondaryButtonAppearance: 'warningPrimary sizeXXL solid rounded',
|
|
316
|
+
secondaryButtonLabel: 'Отмена',
|
|
317
|
+
},
|
|
329
318
|
};
|
|
330
319
|
|
|
331
320
|
export { RESPONSE_MESSAGES, Response, responseAppearance, responseConfig, responseIcon };
|
|
@@ -31,7 +31,7 @@ const segmentedAppearanceDefault = {
|
|
|
31
31
|
fillActiveHover: 'accentPrimary',
|
|
32
32
|
fillHover: 'surfaceSecondary',
|
|
33
33
|
labelTextActiveColor: 'accentTextPrimary',
|
|
34
|
-
|
|
34
|
+
labelTextActiveColorHover: 'accentTextPrimary',
|
|
35
35
|
labelTextColor: 'surfaceTextPrimary',
|
|
36
36
|
borderColor: 'surfaceBorderQuaternary',
|
|
37
37
|
iconAfterFill: 'surfaceItemQuaternary',
|
|
@@ -48,7 +48,7 @@ const segmentedAppearanceDefault = {
|
|
|
48
48
|
fillActiveHover: 'accentHoverPrimary',
|
|
49
49
|
fillHover: 'surfaceTertiary',
|
|
50
50
|
labelTextActiveColor: 'accentTextPrimary',
|
|
51
|
-
|
|
51
|
+
labelTextActiveColorHover: 'accentTextPrimary',
|
|
52
52
|
labelTextColor: 'surfaceTextPrimary',
|
|
53
53
|
borderColor: 'surfaceBorderQuaternary',
|
|
54
54
|
iconAfterFill: 'surfaceItemQuaternary',
|
|
@@ -171,7 +171,7 @@ const segmentedAppearanceSuccess = {
|
|
|
171
171
|
fillHover: 'successItemSecondary',
|
|
172
172
|
labelTextActiveColor: 'successTextPrimary',
|
|
173
173
|
labelTextColor: 'successTextSecondary',
|
|
174
|
-
|
|
174
|
+
labelTextColorHover: 'successTextPrimary',
|
|
175
175
|
borderColor: 'successBorderSecondary',
|
|
176
176
|
iconAfterFill: 'successItemSecondary',
|
|
177
177
|
iconAfterFillActive: 'successTertiary',
|
|
@@ -240,7 +240,7 @@ const Segmented = (props) => {
|
|
|
240
240
|
}, [activeSegment, segmentsRefs]);
|
|
241
241
|
const appearanceConfig = useAppearanceConfig(appearance, segmentedConfig, isDisabled);
|
|
242
242
|
const propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
243
|
-
const { fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor,
|
|
243
|
+
const { fillActiveClass, fillActiveHoverClass, fillClass, fillHoverClass, labelTextActiveColor, labelTextActiveColorHover, labelTextColor, labelTextColorHover, labelTextSize, labelTextWrap, borderColorClass, borderTypeClass, borderWidthClass, iconFill, iconFillActive, iconFillDisabled, iconSize, indicatorFillClass, shapeClass, shapeStrengthClass, sizeClass, widthClass, } = propsGenerator;
|
|
244
244
|
return (jsx("div", { className: clsx(className, 'segmented', shapeClass && `shape_${shapeClass}`, shapeStrengthClass && `shape-strength_${shapeStrengthClass}`, fillClass && `fill_${fillClass}`, widthClass && `segmented_width_${widthClass}`, sizeClass && `segmented_size_${sizeClass}`, borderColorClass && `border-color_${borderColorClass}`, borderWidthClass && `border-width_${borderWidthClass}`, borderTypeClass && `border_type_${borderTypeClass}`, isSkeleton && `segmented_skeleton`), ref: controlRef, children: jsx("div", { className: "segmented__wrapper", children: jsxs("div", { className: clsx('segmented__wrapper-inner'), children: [segments?.map((item) => {
|
|
245
245
|
const isActive = String(activeSegment?.value) === String(item.value);
|
|
246
246
|
return (jsx("div", { className: clsx('segmented__item', !item.label && 'segmented__item_icon', sizeClass && `segmented__item_size_${sizeClass}`, isActive && 'segmented__item_active', !isActive && isDisabled && 'segmented__item_state_disabled', isActive &&
|
|
@@ -252,7 +252,7 @@ const Segmented = (props) => {
|
|
|
252
252
|
fillActiveClass &&
|
|
253
253
|
`fill_active_${fillActiveClass}`), ref: segmentsRefs.get(item.value), onClick: () => !isDisabled && onChangeValue(item), children: jsxs("div", { className: clsx('segmented__item-label', sizeClass && `segmented_size_${sizeClass}`), children: [item.iconBefore || item.iconBeforeActive ? (jsx(Icon, { className: "segmented__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive
|
|
254
254
|
? item.iconBeforeActive || item.iconBefore
|
|
255
|
-
: item.iconBefore, isActive: isActive, isDisabled: isDisabled })) : null, item.label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover:
|
|
255
|
+
: item.iconBefore, isActive: isActive, isDisabled: isDisabled })) : null, item.label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textColorActiveHover: labelTextActiveColorHover, textColorHover: labelTextColorHover, textWrap: labelTextWrap, isActive: isActive, children: item.label })), item.icon || item.iconActive ? (jsx(Icon, { className: "segmented__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive, isDisabled: isDisabled })) : null, item.iconAfter || item.iconAfterActive ? (jsx(Icon, { className: "segmented__item-icon", iconFill: iconFill, iconFillActive: iconFillActive, iconFillDisabled: iconFillDisabled, iconSize: iconSize, SvgImage: isActive
|
|
256
256
|
? item.iconAfterActive || item.iconAfter
|
|
257
257
|
: item.iconAfter, isActive: isActive, isDisabled: isDisabled })) : null] }) }, `${name}-${item.value}`));
|
|
258
258
|
}), jsx("div", { className: clsx('segmented__indicator', indicatorFillClass && `fill_${indicatorFillClass}`) })] }) }) }));
|
|
@@ -4,7 +4,7 @@ import { I as Icon, B as Badge } from '../Icon_es_5JUPM7bP.js';
|
|
|
4
4
|
import React, { useRef, useEffect, useMemo } from 'react';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import CreatableSelect from 'react-select/creatable';
|
|
7
|
-
import { G as Group } from '../
|
|
7
|
+
import { G as Group } from '../Group_es_DJ6GHMrs.js';
|
|
8
8
|
import { T as Text } from '../Text_es_RDU9GLCV.js';
|
|
9
9
|
import { useAppearanceConfig } from '../hooks/useAppearanceConfig/useAppearanceConfig.js';
|
|
10
10
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
flex-grow: 1;
|
|
24
24
|
}
|
|
25
25
|
&__tooltip {
|
|
26
|
+
visibility: hidden;
|
|
26
27
|
position: absolute !important;
|
|
27
28
|
animation-duration: 0.1s;
|
|
28
29
|
animation-name: menuTooltipHideAnimation;
|
|
@@ -31,22 +32,18 @@
|
|
|
31
32
|
|
|
32
33
|
@keyframes menuTooltipShowAnimation {
|
|
33
34
|
0% {
|
|
34
|
-
visibility: hidden;
|
|
35
35
|
opacity: 0%;
|
|
36
36
|
}
|
|
37
37
|
100% {
|
|
38
|
-
visibility: visible;
|
|
39
38
|
opacity: 100%;
|
|
40
39
|
}
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
@keyframes menuTooltipHideAnimation {
|
|
44
43
|
0% {
|
|
45
|
-
visibility: visible;
|
|
46
44
|
opacity: 100%;
|
|
47
45
|
}
|
|
48
46
|
100% {
|
|
49
|
-
visibility: hidden;
|
|
50
47
|
opacity: 0%;
|
|
51
48
|
}
|
|
52
49
|
}
|
|
@@ -773,6 +773,110 @@ div.alignment {
|
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
775
|
}
|
|
776
|
+
div.easing {
|
|
777
|
+
&_ease {
|
|
778
|
+
transition: all 600ms ease;
|
|
779
|
+
}
|
|
780
|
+
&_linear {
|
|
781
|
+
transition: all 600ms linear;
|
|
782
|
+
}
|
|
783
|
+
&_easeIn {
|
|
784
|
+
transition: all 600ms ease-in;
|
|
785
|
+
}
|
|
786
|
+
&_easeOut {
|
|
787
|
+
transition: all 600ms ease-out;
|
|
788
|
+
}
|
|
789
|
+
&_easeInSine {
|
|
790
|
+
transition: all 600ms easeInSine;
|
|
791
|
+
}
|
|
792
|
+
&_easeOutSine {
|
|
793
|
+
transition: all 600ms easeOutSine;
|
|
794
|
+
}
|
|
795
|
+
&_easeInOutSine {
|
|
796
|
+
transition: all 600ms easeInOutSine;
|
|
797
|
+
}
|
|
798
|
+
&_easeInQuad {
|
|
799
|
+
transition: all 600ms easeInQuad;
|
|
800
|
+
}
|
|
801
|
+
&_easeOutQuad {
|
|
802
|
+
transition: all 600ms easeOutQuad;
|
|
803
|
+
}
|
|
804
|
+
&_easeInOutQuad {
|
|
805
|
+
transition: all 600ms easeInOutQuad;
|
|
806
|
+
}
|
|
807
|
+
&_easeInCubic {
|
|
808
|
+
transition: all 600ms easeInCubic;
|
|
809
|
+
}
|
|
810
|
+
&_easeOutCubic {
|
|
811
|
+
transition: all 600ms easeOutCubic;
|
|
812
|
+
}
|
|
813
|
+
&_easeInOutCubic {
|
|
814
|
+
transition: all 600ms easeInOutCubic;
|
|
815
|
+
}
|
|
816
|
+
&_easeInQuart {
|
|
817
|
+
transition: all 600ms easeInQuart;
|
|
818
|
+
}
|
|
819
|
+
&_easeOutQuart {
|
|
820
|
+
transition: all 600ms easeOutQuart;
|
|
821
|
+
}
|
|
822
|
+
&_easeInOutQuart {
|
|
823
|
+
transition: all 600ms easeInOutQuart;
|
|
824
|
+
}
|
|
825
|
+
&_easeInQuint {
|
|
826
|
+
transition: all 600ms easeInQuint;
|
|
827
|
+
}
|
|
828
|
+
&_easeOutQuint {
|
|
829
|
+
transition: all 600ms easeOutQuint;
|
|
830
|
+
}
|
|
831
|
+
&_easeInOutQuint {
|
|
832
|
+
transition: all 600ms easeInOutQuint;
|
|
833
|
+
}
|
|
834
|
+
&_easeInExpo {
|
|
835
|
+
transition: all 600ms easeInExpo;
|
|
836
|
+
}
|
|
837
|
+
&_easeOutExpo {
|
|
838
|
+
transition: all 600ms easeOutExpo;
|
|
839
|
+
}
|
|
840
|
+
&_easeInOutExpo {
|
|
841
|
+
transition: all 600ms easeInOutExpo;
|
|
842
|
+
}
|
|
843
|
+
&_easeInCirc {
|
|
844
|
+
transition: all 600ms easeInCirc;
|
|
845
|
+
}
|
|
846
|
+
&_easeOutCirc {
|
|
847
|
+
transition: all 600ms easeOutCirc;
|
|
848
|
+
}
|
|
849
|
+
&_easeInOutCirc {
|
|
850
|
+
transition: all 600ms easeInOutCirc;
|
|
851
|
+
}
|
|
852
|
+
&_easeInBack {
|
|
853
|
+
transition: all 600ms easeInBack;
|
|
854
|
+
}
|
|
855
|
+
&_easeOutBack {
|
|
856
|
+
transition: all 600ms easeOutBack;
|
|
857
|
+
}
|
|
858
|
+
&_easeInOutBack {
|
|
859
|
+
transition: all 600ms easeInOutBack;
|
|
860
|
+
}
|
|
861
|
+
&_easeInElastic {
|
|
862
|
+
transition: all 600ms easeInElastic;
|
|
863
|
+
}
|
|
864
|
+
&_easeOutElastic {
|
|
865
|
+
transition: all 600ms easeOutElastic;
|
|
866
|
+
}
|
|
867
|
+
&_easeInOutElastic {
|
|
868
|
+
transition: all 600ms easeInOutElastic;
|
|
869
|
+
}
|
|
870
|
+
&_easeInBounce {
|
|
871
|
+
transition: all 600ms easeInBounce;
|
|
872
|
+
}
|
|
873
|
+
&_easeOutBounce {
|
|
874
|
+
transition: all 600ms easeOutBounce;
|
|
875
|
+
}
|
|
876
|
+
&_easeInOutBounce {
|
|
877
|
+
transition: all 600ms easeInOutBounce;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
776
880
|
.elevation {
|
|
777
881
|
@each $val in 1, 2, 4, 6, 8, 12, 16, 24 {
|
|
778
882
|
&_$(val) {
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
div.easing {
|
|
2
|
+
&_ease {
|
|
3
|
+
transition: all 600ms ease;
|
|
4
|
+
}
|
|
5
|
+
&_linear {
|
|
6
|
+
transition: all 600ms linear;
|
|
7
|
+
}
|
|
8
|
+
&_easeIn {
|
|
9
|
+
transition: all 600ms ease-in;
|
|
10
|
+
}
|
|
11
|
+
&_easeOut {
|
|
12
|
+
transition: all 600ms ease-out;
|
|
13
|
+
}
|
|
14
|
+
&_easeInSine {
|
|
15
|
+
transition: all 600ms easeInSine;
|
|
16
|
+
}
|
|
17
|
+
&_easeOutSine {
|
|
18
|
+
transition: all 600ms easeOutSine;
|
|
19
|
+
}
|
|
20
|
+
&_easeInOutSine {
|
|
21
|
+
transition: all 600ms easeInOutSine;
|
|
22
|
+
}
|
|
23
|
+
&_easeInQuad {
|
|
24
|
+
transition: all 600ms easeInQuad;
|
|
25
|
+
}
|
|
26
|
+
&_easeOutQuad {
|
|
27
|
+
transition: all 600ms easeOutQuad;
|
|
28
|
+
}
|
|
29
|
+
&_easeInOutQuad {
|
|
30
|
+
transition: all 600ms easeInOutQuad;
|
|
31
|
+
}
|
|
32
|
+
&_easeInCubic {
|
|
33
|
+
transition: all 600ms easeInCubic;
|
|
34
|
+
}
|
|
35
|
+
&_easeOutCubic {
|
|
36
|
+
transition: all 600ms easeOutCubic;
|
|
37
|
+
}
|
|
38
|
+
&_easeInOutCubic {
|
|
39
|
+
transition: all 600ms easeInOutCubic;
|
|
40
|
+
}
|
|
41
|
+
&_easeInQuart {
|
|
42
|
+
transition: all 600ms easeInQuart;
|
|
43
|
+
}
|
|
44
|
+
&_easeOutQuart {
|
|
45
|
+
transition: all 600ms easeOutQuart;
|
|
46
|
+
}
|
|
47
|
+
&_easeInOutQuart {
|
|
48
|
+
transition: all 600ms easeInOutQuart;
|
|
49
|
+
}
|
|
50
|
+
&_easeInQuint {
|
|
51
|
+
transition: all 600ms easeInQuint;
|
|
52
|
+
}
|
|
53
|
+
&_easeOutQuint {
|
|
54
|
+
transition: all 600ms easeOutQuint;
|
|
55
|
+
}
|
|
56
|
+
&_easeInOutQuint {
|
|
57
|
+
transition: all 600ms easeInOutQuint;
|
|
58
|
+
}
|
|
59
|
+
&_easeInExpo {
|
|
60
|
+
transition: all 600ms easeInExpo;
|
|
61
|
+
}
|
|
62
|
+
&_easeOutExpo {
|
|
63
|
+
transition: all 600ms easeOutExpo;
|
|
64
|
+
}
|
|
65
|
+
&_easeInOutExpo {
|
|
66
|
+
transition: all 600ms easeInOutExpo;
|
|
67
|
+
}
|
|
68
|
+
&_easeInCirc {
|
|
69
|
+
transition: all 600ms easeInCirc;
|
|
70
|
+
}
|
|
71
|
+
&_easeOutCirc {
|
|
72
|
+
transition: all 600ms easeOutCirc;
|
|
73
|
+
}
|
|
74
|
+
&_easeInOutCirc {
|
|
75
|
+
transition: all 600ms easeInOutCirc;
|
|
76
|
+
}
|
|
77
|
+
&_easeInBack {
|
|
78
|
+
transition: all 600ms easeInBack;
|
|
79
|
+
}
|
|
80
|
+
&_easeOutBack {
|
|
81
|
+
transition: all 600ms easeOutBack;
|
|
82
|
+
}
|
|
83
|
+
&_easeInOutBack {
|
|
84
|
+
transition: all 600ms easeInOutBack;
|
|
85
|
+
}
|
|
86
|
+
&_easeInElastic {
|
|
87
|
+
transition: all 600ms easeInElastic;
|
|
88
|
+
}
|
|
89
|
+
&_easeOutElastic {
|
|
90
|
+
transition: all 600ms easeOutElastic;
|
|
91
|
+
}
|
|
92
|
+
&_easeInOutElastic {
|
|
93
|
+
transition: all 600ms easeInOutElastic;
|
|
94
|
+
}
|
|
95
|
+
&_easeInBounce {
|
|
96
|
+
transition: all 600ms easeInBounce;
|
|
97
|
+
}
|
|
98
|
+
&_easeOutBounce {
|
|
99
|
+
transition: all 600ms easeOutBounce;
|
|
100
|
+
}
|
|
101
|
+
&_easeInOutBounce {
|
|
102
|
+
transition: all 600ms easeInOutBounce;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
@@ -47,7 +47,7 @@ const formatState = (key) => {
|
|
|
47
47
|
// - matches "ActiveHover", "Active", "Hover" or "Disabled"
|
|
48
48
|
// - case-insensitive because of the /i flag
|
|
49
49
|
// Examples of matches:
|
|
50
|
-
// "
|
|
50
|
+
// "fillActiveColorHover" -> match[0] === "ActiveHover"
|
|
51
51
|
// "borderDisabled" -> match[0] === "Disabled"
|
|
52
52
|
const stateMatch = key.match(/(ActiveHover|Active|Hover|Disabled)/i);
|
|
53
53
|
if (!stateMatch) {
|
|
@@ -61,7 +61,7 @@ const formatState = (key) => {
|
|
|
61
61
|
// Disabled -> disabled
|
|
62
62
|
// The final .toLowerCase() ensures output is lowercased regardless of input casing.
|
|
63
63
|
// Examples:
|
|
64
|
-
// "
|
|
64
|
+
// "fillActiveColorHover" -> "_active_hover"
|
|
65
65
|
// "borderDisabled" -> "disabled"
|
|
66
66
|
return ('_' +
|
|
67
67
|
stateMatch[0]
|
|
@@ -37,6 +37,10 @@ var styleAttributes = [
|
|
|
37
37
|
/**
|
|
38
38
|
* Filter
|
|
39
39
|
*/
|
|
40
|
-
'backdropFilter'
|
|
40
|
+
'backdropFilter',
|
|
41
|
+
/**
|
|
42
|
+
* transition
|
|
43
|
+
*/
|
|
44
|
+
'transition', 'transitionBehavior', 'transitionDelay', 'transitionDuration', 'transitionProperty', 'transitionTimingFunction'];
|
|
41
45
|
|
|
42
46
|
export { styleAttributes as default };
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
declare const chipsAppearanceDisabled: {
|
|
2
2
|
disabled: {
|
|
3
3
|
fill: string;
|
|
4
|
+
fillHover: string;
|
|
5
|
+
labelTextActiveColor: string;
|
|
6
|
+
labelTextActiveColorHover: string;
|
|
4
7
|
labelTextColor: string;
|
|
8
|
+
labelTextColorHover: string;
|
|
5
9
|
borderColor: string;
|
|
6
10
|
iconAfterFillIcon: string;
|
|
7
11
|
iconBeforeFillIcon: string;
|
|
@@ -13,7 +13,7 @@ declare const chipsAppearanceSurface: {
|
|
|
13
13
|
fillHover: string;
|
|
14
14
|
labelTextActiveColor: string;
|
|
15
15
|
labelTextColor: string;
|
|
16
|
-
|
|
16
|
+
labelTextColorHover: string;
|
|
17
17
|
borderColor: string;
|
|
18
18
|
activeIconItemFill: string;
|
|
19
19
|
badgeAppearance: string;
|
|
@@ -29,7 +29,7 @@ declare const chipsAppearanceSurface: {
|
|
|
29
29
|
fillHover: string;
|
|
30
30
|
labelTextActiveColor: string;
|
|
31
31
|
labelTextColor: string;
|
|
32
|
-
|
|
32
|
+
labelTextColorHover: string;
|
|
33
33
|
borderColor: string;
|
|
34
34
|
iconAfterFillActiveIcon: string;
|
|
35
35
|
iconAfterFillIcon: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
-
import { AlignDirectionProps, AlignmentProps, AlignProps, AppearanceKeysDefault, DirectionProps, ElevationProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, SizeProps, TextAlignProps, TextColorActiveProps, TextColorHoverProps, TextColorProps, TextGradientProps, TextSizeProps,
|
|
2
|
+
import { AlignDirectionProps, AlignmentProps, AlignProps, AppearanceKeysDefault, DirectionProps, ElevationProps, FillHoverProps, FillProps, JustifyContentProps, ShapeProps, SizeProps, TextAlignProps, TextColorActiveProps, TextColorHoverProps, TextColorProps, TextGradientProps, TextSizeProps, TextWeightProps, TextWrapProps, TypeProps, UnderlineProps, WidthProps } from '@itcase/types';
|
|
3
3
|
import { StyleAttributes } from 'src/hooks/useStyles/styleAttributes.interface';
|
|
4
4
|
export interface DropdownProps extends StyleAttributes {
|
|
5
5
|
[key: number | string | symbol]: any;
|
|
@@ -53,7 +53,6 @@ export interface DropdownItemProps extends DropdownItemThemeColor, StyleAttribut
|
|
|
53
53
|
desc?: string;
|
|
54
54
|
descTextColorHover?: TextColorHoverProps;
|
|
55
55
|
descTextGradient?: TextGradientProps;
|
|
56
|
-
descTextStyle?: TextStyleProps;
|
|
57
56
|
descTextWeight?: TextWeightProps;
|
|
58
57
|
descTextWrap?: TextWrapProps;
|
|
59
58
|
dividerDirection?: DirectionProps;
|
|
@@ -69,7 +68,6 @@ export interface DropdownItemProps extends DropdownItemThemeColor, StyleAttribut
|
|
|
69
68
|
labelTextColorActive?: TextColorActiveProps;
|
|
70
69
|
labelTextColorHover?: TextColorHoverProps;
|
|
71
70
|
labelTextGradient?: TextGradientProps;
|
|
72
|
-
labelTextStyle?: TextStyleProps;
|
|
73
71
|
labelTextWeight?: TextWeightProps;
|
|
74
72
|
labelTextWrap?: TextWrapProps;
|
|
75
73
|
link?: string;
|