@itcase/ui 1.3.24 → 1.3.26
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/{Badge-Bcj5H3vs.js → Badge-CcaG-4ly.js} +49 -8
- package/dist/{Badge-DxHwStfq.js → Badge-CoHPvO35.js} +49 -8
- package/dist/{Button-BSygAkO5.js → Button-BFX_EEum.js} +6 -6
- package/dist/{Button-Bn8Mjoeh.js → Button-BSzqA8CB.js} +6 -6
- package/dist/{DropdownItem-CExjlJjQ.js → DropdownItem-Bq-oPnWX.js} +4 -4
- package/dist/{DropdownItem-DFE1HsyX.js → DropdownItem-FNOztnTT.js} +4 -4
- package/dist/{Group-CIIZoSm5.js → Group-B9L2NTgM.js} +1 -1
- package/dist/{Group-pMTTxQH4.js → Group-D6CXN4hS.js} +1 -1
- package/dist/{Icon-DotE-03d.js → Icon-BZa8B7te.js} +3 -3
- package/dist/{Icon-ByLHEhHL.js → Icon-B_bS-o4g.js} +2 -2
- package/dist/{Input-Ck5IbuH6.js → Input-BrV5_NoV.js} +1 -1
- package/dist/{Input-zkYoZhQk.js → Input-ffioh1sj.js} +1 -1
- package/dist/{Label-9O3dQlUa.js → Label-DQyB2ThM.js} +6 -6
- package/dist/{Label-GEBQXoVJ.js → Label-HKRKV3mn.js} +6 -6
- package/dist/{Link-CoAhRbFg.js → Link-CxWmYMyL.js} +1 -1
- package/dist/{Link-C53o3P6_.js → Link-DN2LhPjD.js} +4 -4
- package/dist/{Loader-D_53c71f.js → Loader-Dn036JwE.js} +2 -2
- package/dist/{Loader-Cm98w6lJ.js → Loader-K_DJmah6.js} +2 -2
- package/dist/{MenuItem-Cu6wlj-X.js → MenuItem-CLDNk2l8.js} +3 -3
- package/dist/{MenuItem-Ybh5Mpoi.js → MenuItem-amqx61Y0.js} +3 -3
- package/dist/{Scrollbar-DkJr3S-w.js → Scrollbar-Bo7z7ELm.js} +1 -1
- package/dist/{Scrollbar-CL9V8d1X.js → Scrollbar-CKbA0jQU.js} +1 -1
- package/dist/{Text-COHpLTYr.js → Text-Beslj4Ns.js} +1 -1
- package/dist/{Text-D9sEeRE4.js → Text-JayJa3hj.js} +1 -1
- package/dist/{Title-Cl95USIn.js → Title-CHgrIarR.js} +1 -1
- package/dist/{Title-BduD-TXE.js → Title-DBaHcpvB.js} +1 -1
- package/dist/{Tooltip-BsbXMzGd.js → Tooltip-1Jbub0K6.js} +4 -4
- package/dist/{Tooltip-CyZCVyba.js → Tooltip-CNua1g76.js} +4 -4
- package/dist/cjs/components/Accordion.js +8 -7
- package/dist/cjs/components/Avatar.js +10 -9
- package/dist/cjs/components/Badge.js +4 -3
- package/dist/cjs/components/Breadcrumbs.js +7 -6
- package/dist/cjs/components/Button.js +8 -7
- package/dist/cjs/components/Caption.js +1 -0
- package/dist/cjs/components/Card.js +3 -2
- package/dist/cjs/components/Cell.js +10 -9
- package/dist/cjs/components/Checkbox.js +4 -3
- package/dist/cjs/components/Checkmark.js +65 -0
- package/dist/cjs/components/Chips.js +5 -4
- package/dist/cjs/components/Choice.js +11 -10
- package/dist/cjs/components/Code.js +4 -3
- package/dist/cjs/components/CookiesWarning.js +11 -10
- package/dist/cjs/components/DadataHintField.js +2 -1
- package/dist/cjs/components/DatePicker.js +17 -16
- package/dist/cjs/components/Divider.js +1 -0
- package/dist/cjs/components/Dot.js +1 -0
- package/dist/cjs/components/Dropdown.js +4 -3
- package/dist/cjs/components/Flex.js +3 -2
- package/dist/cjs/components/Grid.js +3 -2
- package/dist/cjs/components/Group.js +2 -1
- package/dist/cjs/components/HTMLContent.js +1 -0
- package/dist/cjs/components/HeroTitle.js +2 -1
- package/dist/cjs/components/Icon.js +6 -5
- package/dist/cjs/components/Image.js +1 -0
- package/dist/cjs/components/Input.js +2 -1
- package/dist/cjs/components/InputMask.js +2 -1
- package/dist/cjs/components/InputPassword.js +6 -5
- package/dist/cjs/components/Label.js +5 -4
- package/dist/cjs/components/Link.js +2 -1
- package/dist/cjs/components/List.js +2 -1
- package/dist/cjs/components/Loader.js +3 -2
- package/dist/cjs/components/Logo.js +3 -2
- package/dist/cjs/components/Menu.js +5 -4
- package/dist/cjs/components/MenuItem.js +4 -3
- package/dist/cjs/components/Modal.js +6 -5
- package/dist/cjs/components/ModalSheetBottom.js +1 -0
- package/dist/cjs/components/Notification.js +4 -5
- package/dist/cjs/components/Overlay.js +1 -0
- package/dist/cjs/components/Pagination.js +29 -28
- package/dist/cjs/components/Panel.js +3 -2
- package/dist/cjs/components/Radio.js +4 -3
- package/dist/cjs/components/RangeSlider.js +1 -0
- package/dist/cjs/components/Response.js +82 -57
- package/dist/cjs/components/SVGContent.js +1 -0
- package/dist/cjs/components/ScrollOnDrag.js +1 -0
- package/dist/cjs/components/ScrollToView.js +2 -1
- package/dist/cjs/components/Scrollbar.js +1 -1
- package/dist/cjs/components/Search.js +10 -9
- package/dist/cjs/components/Segmented.js +14 -13
- package/dist/cjs/components/Select.js +28 -12
- package/dist/cjs/components/SiteMenu.js +7 -6
- package/dist/cjs/components/Swiper.js +9 -8
- package/dist/cjs/components/Tab.js +10 -9
- package/dist/cjs/components/Text.js +2 -1
- package/dist/cjs/components/Textarea.js +1 -0
- package/dist/cjs/components/Tile.js +5 -4
- package/dist/cjs/components/Title.js +2 -1
- package/dist/cjs/components/Tooltip.js +4 -3
- package/dist/cjs/components/Video.js +1 -0
- package/dist/cjs/components/Wrapper.js +2 -1
- package/dist/cjs/context/Notifications.js +6 -6
- package/dist/cjs/context/UIContext.js +6 -1
- package/dist/cjs/hooks/useDeviceTargetClass.js +1 -0
- package/dist/cjs/hooks/useDeviceTargetClassGenerator.interface.js +1 -0
- package/dist/cjs/hooks/useDeviceTargetClassGenerator.js +5 -4
- package/dist/cjs/hooks/useMediaQueries.js +0 -12
- package/dist/cjs/hooks/useStyles.js +1 -0
- package/dist/cjs/hooks.js +0 -1
- package/dist/cjs/utils/setViewportProperty.js +8 -0
- package/dist/cjs/utils.js +7 -0
- package/dist/components/Accordion.js +9 -8
- package/dist/components/Avatar.js +11 -10
- package/dist/components/Badge.js +4 -3
- package/dist/components/Breadcrumbs.js +8 -7
- package/dist/components/Button.js +9 -8
- package/dist/components/Caption.js +2 -1
- package/dist/components/Card.js +4 -3
- package/dist/components/Cell.js +11 -10
- package/dist/components/Checkbox.js +5 -4
- package/dist/components/Checkmark.js +61 -0
- package/dist/components/Chips.js +6 -5
- package/dist/components/Choice.js +12 -11
- package/dist/components/Code.js +5 -4
- package/dist/components/CookiesWarning.js +12 -11
- package/dist/components/DadataHintField.js +3 -2
- package/dist/components/DatePicker.js +18 -17
- package/dist/components/Divider.js +2 -1
- package/dist/components/Dot.js +2 -1
- package/dist/components/Dropdown.js +5 -4
- package/dist/components/Flex.js +4 -3
- package/dist/components/Grid.js +4 -3
- package/dist/components/Group.js +3 -2
- package/dist/components/HTMLContent.js +2 -1
- package/dist/components/HeroTitle.js +3 -2
- package/dist/components/Icon.js +7 -6
- package/dist/components/Image.js +2 -1
- package/dist/components/Input.js +3 -2
- package/dist/components/InputMask.js +3 -2
- package/dist/components/InputPassword.js +7 -6
- package/dist/components/Label.js +6 -5
- package/dist/components/Link.js +3 -2
- package/dist/components/List.js +3 -2
- package/dist/components/Loader.js +4 -3
- package/dist/components/Logo.js +4 -3
- package/dist/components/Menu.js +6 -5
- package/dist/components/MenuItem.js +5 -4
- package/dist/components/Modal.js +7 -6
- package/dist/components/ModalSheetBottom.js +2 -1
- package/dist/components/Notification.js +5 -6
- package/dist/components/Overlay.js +2 -1
- package/dist/components/Pagination.js +30 -29
- package/dist/components/Panel.js +4 -3
- package/dist/components/Radio.js +5 -4
- package/dist/components/RangeSlider.js +2 -1
- package/dist/components/Response.js +83 -58
- package/dist/components/SVGContent.js +2 -1
- package/dist/components/ScrollOnDrag.js +2 -1
- package/dist/components/ScrollToView.js +3 -2
- package/dist/components/Scrollbar.js +1 -1
- package/dist/components/Search.js +11 -10
- package/dist/components/Segmented.js +15 -14
- package/dist/components/Select.js +29 -13
- package/dist/components/SiteMenu.js +8 -7
- package/dist/components/Swiper.js +10 -9
- package/dist/components/Tab.js +11 -10
- package/dist/components/Text.js +3 -2
- package/dist/components/Textarea.js +2 -1
- package/dist/components/Tile.js +6 -5
- package/dist/components/Title.js +3 -2
- package/dist/components/Tooltip.js +5 -4
- package/dist/components/Video.js +1 -0
- package/dist/components/Wrapper.js +3 -2
- package/dist/context/Notifications.js +7 -7
- package/dist/context/UIContext.js +7 -2
- package/dist/css/components/Checkmark/Checkmark.css +30 -0
- package/dist/css/components/Checkmark/Checkmark.tokens.css +16 -0
- package/dist/css/components/Code/Code.css +2 -1
- package/dist/css/components/Dropdown/Dropdown.css +1 -1
- package/dist/css/components/Notification/Notification.css +6 -2
- package/dist/css/components/Notification/css/__item/notification__item_set_form.css +6 -2
- package/dist/css/components/Pagination/Pagination.css +4 -4
- package/dist/css/components/Pagination/css/__item/pagination__item_state_active.css +4 -4
- package/dist/css/components/Response/Response.css +10 -2
- package/dist/css/components/Swiper/Swiper.css +2 -2
- package/dist/css/components/Switch/Switch.css +1 -1
- package/dist/css/components/Tile/Tile.css +1 -1
- package/dist/css/tokens/colors.css +9 -0
- package/dist/hooks/useDeviceTargetClass.js +1 -0
- package/dist/hooks/useDeviceTargetClassGenerator.interface.js +1 -1
- package/dist/hooks/useDeviceTargetClassGenerator.js +6 -5
- package/dist/hooks/useMediaQueries.js +0 -12
- package/dist/hooks/useStyles.js +1 -0
- package/dist/hooks.js +1 -1
- package/dist/stories/Checkmark.mdx +11 -0
- package/dist/stories/Overview.mdx +5 -5
- package/dist/stories/Playground.mdx +4 -4
- package/dist/{tslib.es6-5FtW-kfi.js → tslib.es6-Bwu1Cn-t.js} +1 -1
- package/dist/types/components/Badge/stories/args.d.ts +69 -0
- package/dist/types/components/Checkmark/Checkmark.appearance.d.ts +2 -0
- package/dist/types/components/Checkmark/Checkmark.d.ts +4 -0
- package/dist/types/components/Checkmark/Checkmark.interface.d.ts +29 -0
- package/dist/types/components/Checkmark/index.d.ts +2 -0
- package/dist/types/components/Notification/Notification.interface.d.ts +3 -3
- package/dist/types/components/Select/index.d.ts +15 -15
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/setViewportProperty.d.ts +2 -0
- package/dist/utils/setViewportProperty.js +6 -0
- package/dist/utils.js +1 -0
- package/package.json +29 -53
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
border: solid 1px var(--paginator-item-active-border);
|
|
76
76
|
&&_state {
|
|
77
77
|
&_active {
|
|
78
|
-
|
|
79
|
-
color: var(--paginator-item-active-text);
|
|
80
|
-
}
|
|
81
|
-
background: var(--color-accent-primary);
|
|
78
|
+
background: var(--paginator-item-active-background, var(--color-accent-primary));
|
|
82
79
|
&:hover {
|
|
83
80
|
background: var(--paginator-item-active-fill-hover);
|
|
84
81
|
}
|
|
82
|
+
^^&-link {
|
|
83
|
+
color: var(--paginator-item-active-text);
|
|
84
|
+
}
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
87
|
}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
border: solid 1px var(--paginator-item-active-border);
|
|
4
4
|
&&_state {
|
|
5
5
|
&_active {
|
|
6
|
-
|
|
7
|
-
color: var(--paginator-item-active-text);
|
|
8
|
-
}
|
|
9
|
-
background: var(--color-accent-primary);
|
|
6
|
+
background: var(--paginator-item-active-background, var(--color-accent-primary));
|
|
10
7
|
&:hover {
|
|
11
8
|
background: var(--paginator-item-active-fill-hover);
|
|
12
9
|
}
|
|
10
|
+
^^&-link {
|
|
11
|
+
color: var(--paginator-item-active-text);
|
|
12
|
+
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
}
|
|
@@ -3,13 +3,21 @@
|
|
|
3
3
|
flex-flow: column nowrap;
|
|
4
4
|
justify-content: center;
|
|
5
5
|
align-items: center;
|
|
6
|
-
|
|
6
|
+
&__wrapper {
|
|
7
|
+
width: 100%;
|
|
8
|
+
padding: 24px;
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: column;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: 24px;
|
|
14
|
+
}
|
|
7
15
|
&__desc {
|
|
8
16
|
display: flex;
|
|
9
17
|
flex-direction: column;
|
|
10
18
|
justify-content: center;
|
|
11
19
|
align-items: center;
|
|
12
|
-
gap:
|
|
20
|
+
gap: 8px;
|
|
13
21
|
}
|
|
14
22
|
&__button {
|
|
15
23
|
display: flex;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Swiper 11.2.
|
|
2
|
+
* Swiper 11.2.4
|
|
3
3
|
* Most modern mobile touch slider and framework with hardware accelerated transitions
|
|
4
4
|
* https://swiperjs.com
|
|
5
5
|
*
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* Released under the MIT License
|
|
9
9
|
*
|
|
10
|
-
* Released on:
|
|
10
|
+
* Released on: February 14, 2025
|
|
11
11
|
*/
|
|
12
12
|
|
|
13
13
|
/* FONT_START */
|
|
@@ -88,11 +88,20 @@
|
|
|
88
88
|
|
|
89
89
|
--color-success-item-primary: hsla(0, 0%, 100%, 1);
|
|
90
90
|
|
|
91
|
+
--color-success-primary: hsla(107, 100%, 34%, 1);
|
|
91
92
|
--color-success-text-primary: hsla(107, 100%, 34%, 1);
|
|
92
93
|
--color-success-text-secondary: hsla(0, 0%, 100%, 1);
|
|
93
94
|
|
|
94
95
|
--color-success-border-primary: hsla(107, 100%, 34%, 1);
|
|
95
96
|
|
|
97
|
+
--color-warning-primary: hsla(43, 68%, 50%, 1);
|
|
98
|
+
--color-warning-text-primary: hsla(43, 68%, 50%, 1);
|
|
99
|
+
--color-warning-text-secondary: hsla(0, 0%, 100%, 1);
|
|
100
|
+
|
|
101
|
+
--color-danger-primary: hsla(349, 96%, 44%, 1);
|
|
102
|
+
--color-danger-text-primary: hsla(349, 96%, 44%, 1);
|
|
103
|
+
--color-danger-text-secondary: hsla(0, 0%, 100%, 1);
|
|
104
|
+
|
|
96
105
|
--color-error-primary: hsla(6, 99%, 57%, 1);
|
|
97
106
|
--color-error-text-primary: hsla(0, 0%, 100%, 1);
|
|
98
107
|
--color-error-text-secondary: hsla(6, 99%, 57%, 1);
|
|
@@ -5,6 +5,7 @@ import { useUserDeviceContext } from '../context/UIContext.js';
|
|
|
5
5
|
import 'react/jsx-runtime';
|
|
6
6
|
import './useMediaQueries.js';
|
|
7
7
|
import 'react-responsive';
|
|
8
|
+
import '../utils/setViewportProperty.js';
|
|
8
9
|
|
|
9
10
|
function useDeviceTargetClass(componentProps, hookProps) {
|
|
10
11
|
/** Generate a class depending on the user's device.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
'use strict';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { a as __spreadArray } from '../tslib.es6-Bwu1Cn-t.js';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
3
|
import camelCase from 'lodash/camelCase';
|
|
4
4
|
import castArray from 'lodash/castArray';
|
|
@@ -6,6 +6,7 @@ import { useUserDeviceContext } from '../context/UIContext.js';
|
|
|
6
6
|
import 'react/jsx-runtime';
|
|
7
7
|
import './useMediaQueries.js';
|
|
8
8
|
import 'react-responsive';
|
|
9
|
+
import '../utils/setViewportProperty.js';
|
|
9
10
|
|
|
10
11
|
function useDeviceTargetClassGenerator(componentProps, appearanceConfig) {
|
|
11
12
|
/** Generate a class depending on the user's device.
|
|
@@ -35,8 +36,8 @@ function useDeviceTargetClassGenerator(componentProps, appearanceConfig) {
|
|
|
35
36
|
var deviceTargetClassGenerator = useMemo(function () {
|
|
36
37
|
var classGenerator = {
|
|
37
38
|
getClass: function (propsKey, params) {
|
|
38
|
-
if (params ===
|
|
39
|
-
var _a = params.prefix, prefix = _a ===
|
|
39
|
+
if (params === void 0) { params = {}; }
|
|
40
|
+
var _a = params.prefix, prefix = _a === void 0 ? '' : _a, _b = params.replace, replace = _b === void 0 ? [/([A-Z])/g, '-$1'] : _b;
|
|
40
41
|
// prettier-ignore
|
|
41
42
|
var deviceBasePart = ((isMobile && 'Mobile') ||
|
|
42
43
|
(isTablet && 'Tablet') ||
|
|
@@ -44,8 +45,8 @@ function useDeviceTargetClassGenerator(componentProps, appearanceConfig) {
|
|
|
44
45
|
'');
|
|
45
46
|
var valueForDevice = componentProps["".concat(propsKey).concat(deviceBasePart)];
|
|
46
47
|
var valueDefault = componentProps[propsKey];
|
|
47
|
-
var appearanceForDevice = appearanceConfig === null || appearanceConfig ===
|
|
48
|
-
var appearanceDefault = appearanceConfig === null || appearanceConfig ===
|
|
48
|
+
var appearanceForDevice = appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig["".concat(propsKey).concat(deviceBasePart)];
|
|
49
|
+
var appearanceDefault = appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig[propsKey];
|
|
49
50
|
// prettier-ignore
|
|
50
51
|
var targetClassValue = (
|
|
51
52
|
// Value for device from props is first priority
|
|
@@ -3,21 +3,9 @@ import { useMediaQuery } from 'react-responsive';
|
|
|
3
3
|
var tablet = "48em";
|
|
4
4
|
var mediaQueries = {
|
|
5
5
|
"mobile-tiny": "15em",
|
|
6
|
-
"mobile-small": "20em",
|
|
7
|
-
"mobile-medium": "23.435em",
|
|
8
|
-
"mobile-normal": "24.375em",
|
|
9
|
-
"mobile-large": "26.75em",
|
|
10
|
-
"mobile-extra-large": "30em",
|
|
11
6
|
"mobile-super-extra-large": "40em",
|
|
12
7
|
tablet: tablet,
|
|
13
|
-
"tablet-small": "40em",
|
|
14
|
-
"tablet-large": "60em",
|
|
15
8
|
"desktop-small": "60em",
|
|
16
|
-
"desktop-medium": "64em",
|
|
17
|
-
"desktop-normal": "72.5em",
|
|
18
|
-
"desktop-large": "80em",
|
|
19
|
-
"desktop-extra-large": "90em",
|
|
20
|
-
"desktop-super-extra-large": "120em",
|
|
21
9
|
"desktop-huge": "160em"
|
|
22
10
|
};
|
|
23
11
|
|
package/dist/hooks/useStyles.js
CHANGED
package/dist/hooks.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/blocks'
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as TitleStories from './Title.stories.tsx'
|
|
4
4
|
|
|
5
|
-
<Meta title="Atoms /
|
|
5
|
+
<Meta title="Atoms / Title / Overview" />
|
|
6
6
|
|
|
7
|
-
#
|
|
7
|
+
# Title
|
|
8
8
|
|
|
9
|
-
`
|
|
9
|
+
`Title` отображает заголовки.
|
|
10
10
|
|
|
11
|
-
<Story of={
|
|
11
|
+
<Story of={TitleStories.SizeH3} />
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Canvas, Controls, Meta } from '@storybook/blocks'
|
|
2
2
|
|
|
3
|
-
import * as
|
|
3
|
+
import * as TitleStories from './Title.stories.tsx'
|
|
4
4
|
|
|
5
|
-
<Meta title="Atoms /
|
|
5
|
+
<Meta title="Atoms / Title / Playground" />
|
|
6
6
|
|
|
7
7
|
# Playground
|
|
8
8
|
|
|
9
|
-
<Canvas sourceState="shown" of={
|
|
10
|
-
<Controls of={
|
|
9
|
+
<Canvas sourceState="shown" of={TitleStories.SizeH4} />
|
|
10
|
+
<Controls of={TitleStories.SizeH4} />
|
|
@@ -53,4 +53,4 @@ typeof SuppressedError === "function" ? SuppressedError : function (error, suppr
|
|
|
53
53
|
return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
|
|
54
54
|
};
|
|
55
55
|
|
|
56
|
-
export { __assign as _,
|
|
56
|
+
export { __assign as _, __spreadArray as a, __rest as b };
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
export declare const argTypes: {
|
|
2
|
+
children: {
|
|
3
|
+
if: {
|
|
4
|
+
arg: string;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
borderWidth: {
|
|
8
|
+
control: string;
|
|
9
|
+
options: readonly [undefined, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, "1", "2", "3", "4", "5", "6", "7", "8", "9", "10"];
|
|
10
|
+
};
|
|
11
|
+
borderColor: {
|
|
12
|
+
control: string;
|
|
13
|
+
options: readonly [undefined, "accentBorderPrimary", "accentBorderSecondary", "accentBorderTertiary", "accentBorderQuaternary", "accentBorderDisabled", "primaryBorderPrimary", "primaryBorderSecondary", "primaryBorderTertiary", "primaryBorderQuaternary", "primaryBorderDisabled", "secondaryBorderPrimary", "secondaryBorderSecondary", "secondaryBorderTertiary", "secondaryBorderQuaternary", "secondaryBorderDisabled", "tertiaryBorderPrimary", "tertiaryBorderSecondary", "tertiaryBorderTertiary", "tertiaryBorderQuaternary", "tertiaryBorderDisabled", "surfaceBorderPrimary", "surfaceBorderSecondary", "surfaceBorderTertiary", "surfaceBorderQuaternary", "surfaceBorderDisabled", "surfaceBorderInverse", "errorBorderPrimary", "errorBorderSecondary", "errorBorderDisabled", "successBorderPrimary", "successBorderSecondary", "successBorderDisabled"];
|
|
14
|
+
};
|
|
15
|
+
advancedProps: {
|
|
16
|
+
control: string;
|
|
17
|
+
};
|
|
18
|
+
after: {
|
|
19
|
+
if: {
|
|
20
|
+
arg: string;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
appearance: {
|
|
24
|
+
control: string;
|
|
25
|
+
options: (string | null)[];
|
|
26
|
+
};
|
|
27
|
+
borderColorHover: {
|
|
28
|
+
control: string;
|
|
29
|
+
options: readonly [undefined, "accentBorderPrimary", "accentBorderPrimaryHover", "primaryBorderPrimary", "secondaryBorderPrimary", "tertiaryBorderPrimary", "surfaceBorderPrimary", "surfaceBorderSecondary", "surfaceBorderTertiary", "errorBorderPrimary", "errorBorderPrimaryHover", "successBorderPrimary", "surfaceBorderQuaternary"];
|
|
30
|
+
};
|
|
31
|
+
borderType: {
|
|
32
|
+
control: string;
|
|
33
|
+
options: readonly [undefined, "outline", "solid", "none"];
|
|
34
|
+
};
|
|
35
|
+
className: {
|
|
36
|
+
if: {
|
|
37
|
+
arg: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
fill: {
|
|
41
|
+
control: string;
|
|
42
|
+
options: readonly [undefined, "accentPrimary", "accentSecondary", "accentTertiary", "primaryPrimary", "primarySecondary", "primaryTertiary", "secondaryPrimary", "secondarySecondary", "secondaryTertiary", "tertiaryPrimary", "tertiarySecondary", "tertiaryTertiary", "surfaceAccent", "surfaceItemPrimary", "surfacePrimary", "surfaceQuaternary", "surfaceQuinary", "surfaceSecondary", "surfaceTertiary", "errorPrimary", "errorSecondary", "successPrimary", "successSecondary", "gradientPrimary"];
|
|
43
|
+
};
|
|
44
|
+
mode: {
|
|
45
|
+
control: string;
|
|
46
|
+
options: (string | null)[];
|
|
47
|
+
};
|
|
48
|
+
shape: {
|
|
49
|
+
control: string;
|
|
50
|
+
options: readonly [undefined, "geometric", "rounded", "circular"];
|
|
51
|
+
};
|
|
52
|
+
size: {
|
|
53
|
+
control: string;
|
|
54
|
+
options: readonly [undefined, "xxs", "xs", "s", "m", "l", "xl", "xxl"];
|
|
55
|
+
};
|
|
56
|
+
textColor: {
|
|
57
|
+
control: string;
|
|
58
|
+
options: readonly [undefined, false, "accentTextPrimary", "accentTextSecondary", "accentTextTertiary", "primaryTextPrimary", "primaryTextSecondary", "primaryTextTertiary", "secondaryTextPrimary", "secondaryTextSecondary", "secondaryTextTertiary", "tertiaryTextPrimary", "tertiaryTextSecondary", "surfaceTextAccent", "surfaceTextActive", "surfaceTextDisabled", "surfaceTextFocus", "surfaceTextHover", "surfaceTextInverse", "surfaceTextPrimary", "surfaceTextQuaternary", "surfaceTextSecondary", "surfaceTextTertiary", "errorTextPrimary", "errorTextSecondary", "successTextPrimary", "successTextSecondary", "dangerTextPrimary", "dangerTextSecondary"];
|
|
59
|
+
};
|
|
60
|
+
textSize: {
|
|
61
|
+
control: string;
|
|
62
|
+
options: readonly [undefined, "xxs", "xs", "s", "m", "l", "xl", "xxl"];
|
|
63
|
+
};
|
|
64
|
+
type: {
|
|
65
|
+
if: {
|
|
66
|
+
arg: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import 'types';
|
|
2
|
+
import { ElementType } from 'react';
|
|
3
|
+
import { tBorderColorProps, tBorderWidthProps, tFillProps, tSizeProps } from 'types';
|
|
4
|
+
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
5
|
+
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
6
|
+
export interface iCheckmarkThemeColor {
|
|
7
|
+
[key: number | string | symbol]: any;
|
|
8
|
+
borderColor?: tBorderColorProps;
|
|
9
|
+
borderWidth?: tBorderWidthProps;
|
|
10
|
+
fill?: tFillProps;
|
|
11
|
+
size?: tSizeProps;
|
|
12
|
+
}
|
|
13
|
+
type tAppearanceKeys = tAppearanceKeysDefault & {};
|
|
14
|
+
export type tCheckmarkAppearance = {
|
|
15
|
+
[key in tAppearanceKeysDefault]?: iCheckmarkThemeColor;
|
|
16
|
+
};
|
|
17
|
+
export interface iCheckmarkConfig {
|
|
18
|
+
[key: number | string | symbol]: any;
|
|
19
|
+
appearance: tCheckmarkAppearance | undefined;
|
|
20
|
+
setAppearance: (newComponent: tCheckmarkAppearance) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface iCheckmarkProps extends iCheckmarkThemeColor, iStyleAttributes {
|
|
23
|
+
[key: number | string | symbol]: any;
|
|
24
|
+
appearance?: tAppearanceKeys;
|
|
25
|
+
className?: string;
|
|
26
|
+
iconChecked: ElementType;
|
|
27
|
+
isDisabled?: boolean;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { CSSProperties, ReactNode } from 'react';
|
|
2
|
-
import { tFillProps, tSizeProps, tTextColorProps, tTextSizeProps,
|
|
2
|
+
import { tFillProps, tSizeProps, tTextColorProps, tTextSizeProps, tWidthProps } from 'types';
|
|
3
3
|
import { tAppearanceKeysDefault } from 'types/componentProps/appearanceKeys';
|
|
4
4
|
import { iStyleAttributes } from '../../hooks/styleAttributes.interface';
|
|
5
5
|
export interface iNotificationItemThemeColor {
|
|
@@ -9,7 +9,7 @@ export interface iNotificationItemThemeColor {
|
|
|
9
9
|
textColor?: tTextColorProps;
|
|
10
10
|
textSize?: tTextSizeProps;
|
|
11
11
|
titleTextColor?: tTextColorProps;
|
|
12
|
-
titleTextSize?:
|
|
12
|
+
titleTextSize?: tTextSizeProps;
|
|
13
13
|
width?: tWidthProps;
|
|
14
14
|
}
|
|
15
15
|
type tAppearanceKeys = tAppearanceKeysDefault & {};
|
|
@@ -39,7 +39,7 @@ export interface iNotificationItemProps extends iStyleAttributes {
|
|
|
39
39
|
textSize?: tTextSizeProps;
|
|
40
40
|
title?: string;
|
|
41
41
|
titleTextColor?: tTextColorProps;
|
|
42
|
-
titleTextSize?:
|
|
42
|
+
titleTextSize?: tTextSizeProps;
|
|
43
43
|
type?: string;
|
|
44
44
|
onClickClose?: (id?: number | string) => void;
|
|
45
45
|
set?: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { SelectClearIndicator } from './SelectClearIndicator.
|
|
2
|
-
import { selectConfig, SelectContainer } from './SelectContainer.
|
|
3
|
-
import { SelectControl } from './SelectControl.
|
|
4
|
-
import { SelectDropdownIndicator } from './SelectDropdownIndicator.
|
|
5
|
-
import { SelectGroupHeading } from './SelectGroupHeading.
|
|
6
|
-
import { SelectIndicatorsContainer } from './SelectIndicatorsContainer.
|
|
7
|
-
import { SelectInput } from './SelectInput.
|
|
8
|
-
import { SelectMenu } from './SelectMenu.
|
|
9
|
-
import { SelectMultiValueContainer } from './SelectMultiValueContainer.
|
|
10
|
-
import { SelectMultiValueLabel } from './SelectMultiValueLabel.
|
|
11
|
-
import { SelectMultiValueRemove } from './SelectMultiValueRemove.
|
|
12
|
-
import { SelectOption } from './SelectOption.
|
|
13
|
-
import { SelectPlaceholder } from './SelectPlaceholder.
|
|
14
|
-
import { SelectSingleValue } from './SelectSingleValue.
|
|
15
|
-
import { SelectValueContainer } from './SelectValueContainer.
|
|
1
|
+
import { SelectClearIndicator } from './SelectClearIndicator.tsx';
|
|
2
|
+
import { selectConfig, SelectContainer } from './SelectContainer.tsx';
|
|
3
|
+
import { SelectControl } from './SelectControl.tsx';
|
|
4
|
+
import { SelectDropdownIndicator } from './SelectDropdownIndicator.tsx';
|
|
5
|
+
import { SelectGroupHeading } from './SelectGroupHeading.tsx';
|
|
6
|
+
import { SelectIndicatorsContainer } from './SelectIndicatorsContainer.tsx';
|
|
7
|
+
import { SelectInput } from './SelectInput.tsx';
|
|
8
|
+
import { SelectMenu } from './SelectMenu.tsx';
|
|
9
|
+
import { SelectMultiValueContainer } from './SelectMultiValueContainer.tsx';
|
|
10
|
+
import { SelectMultiValueLabel } from './SelectMultiValueLabel.tsx';
|
|
11
|
+
import { SelectMultiValueRemove } from './SelectMultiValueRemove.tsx';
|
|
12
|
+
import { SelectOption } from './SelectOption.tsx';
|
|
13
|
+
import { SelectPlaceholder } from './SelectPlaceholder.tsx';
|
|
14
|
+
import { SelectSingleValue } from './SelectSingleValue.tsx';
|
|
15
|
+
import { SelectValueContainer } from './SelectValueContainer.tsx';
|
|
16
16
|
export { SelectClearIndicator, SelectContainer as Select, SelectControl, SelectDropdownIndicator, SelectGroupHeading, SelectIndicatorsContainer, SelectInput, SelectMenu, SelectMultiValueContainer, SelectMultiValueLabel, SelectMultiValueRemove, SelectOption, SelectPlaceholder, SelectSingleValue, SelectValueContainer, selectConfig, };
|
package/dist/utils.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { setViewportProperty } from './utils/setViewportProperty.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itcase/ui",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.26",
|
|
4
4
|
"description": "UI components (Modal, Loader, Popup, etc)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Modal",
|
|
@@ -49,6 +49,11 @@
|
|
|
49
49
|
"import": "./dist/hooks/*.js",
|
|
50
50
|
"require": "./dist/cjs/hooks/*.js"
|
|
51
51
|
},
|
|
52
|
+
"./utils/*": {
|
|
53
|
+
"types": "./dist/types/utils/*.d.ts",
|
|
54
|
+
"import": "./dist/utils/*.js",
|
|
55
|
+
"require": "./dist/cjs/utils/*.js"
|
|
56
|
+
},
|
|
52
57
|
"./types": {
|
|
53
58
|
"import": "./dist/types/types/index.d.ts",
|
|
54
59
|
"types": "./dist/types/types/index.d.ts"
|
|
@@ -86,44 +91,43 @@
|
|
|
86
91
|
},
|
|
87
92
|
"dependencies": {
|
|
88
93
|
"@emotion/is-prop-valid": "^1.3.1",
|
|
89
|
-
"@itcase/
|
|
90
|
-
"@itcase/
|
|
91
|
-
"@itcase/
|
|
94
|
+
"@itcase/storybook-config": "^1.0.38",
|
|
95
|
+
"@itcase/common": "^1.2.18",
|
|
96
|
+
"@itcase/config": "^1.0.16",
|
|
97
|
+
"@itcase/icons": "^1.0.21",
|
|
92
98
|
"clsx": "^2.1.1",
|
|
93
99
|
"date-fns": "^4.1.0",
|
|
94
|
-
"framer-motion": "^12.
|
|
100
|
+
"framer-motion": "^12.4.7",
|
|
95
101
|
"js-cookie": "^3.0.5",
|
|
96
102
|
"lodash": "^4.17.21",
|
|
97
|
-
"motion": "^12.
|
|
103
|
+
"motion": "^12.4.7",
|
|
98
104
|
"rc-slider": "^11.1.8",
|
|
99
105
|
"react": "^18.3.1",
|
|
100
106
|
"react-dadata": "^2.27.4",
|
|
101
|
-
"react-datepicker": "^
|
|
107
|
+
"react-datepicker": "^8.1.0",
|
|
102
108
|
"react-dom": "^18.3.1",
|
|
103
109
|
"react-indiana-drag-scroll": "^3.0.3-alpha",
|
|
104
|
-
"react-inlinesvg": "^4.
|
|
110
|
+
"react-inlinesvg": "^4.2.0",
|
|
105
111
|
"react-modal-sheet": "^4.0.1",
|
|
106
112
|
"react-modern-drawer": "^1.4.0",
|
|
107
113
|
"react-otp-input": "^3.1.1",
|
|
108
114
|
"react-paginate": "^8.3.0",
|
|
109
115
|
"react-responsive": "^10.0.0",
|
|
110
|
-
"react-scroll": "^1.9.
|
|
116
|
+
"react-scroll": "^1.9.3",
|
|
111
117
|
"react-scrollbars-custom": "^4.1.1",
|
|
112
118
|
"react-select": "^5.10.0",
|
|
113
|
-
"swiper": "^11.2.
|
|
114
|
-
"uuid": "^11.0
|
|
119
|
+
"swiper": "^11.2.4",
|
|
120
|
+
"uuid": "^11.1.0"
|
|
115
121
|
},
|
|
116
122
|
"devDependencies": {
|
|
117
|
-
"@babel/core": "^7.26.
|
|
118
|
-
"@babel/eslint-parser": "^7.26.
|
|
123
|
+
"@babel/core": "^7.26.9",
|
|
124
|
+
"@babel/eslint-parser": "^7.26.8",
|
|
119
125
|
"@babel/eslint-plugin": "^7.25.9",
|
|
120
|
-
"@babel/preset-env": "^7.26.
|
|
126
|
+
"@babel/preset-env": "^7.26.9",
|
|
121
127
|
"@babel/preset-react": "^7.26.3",
|
|
122
|
-
"@commitlint/cli": "^19.
|
|
123
|
-
"@commitlint/config-conventional": "^19.
|
|
124
|
-
"@itcase/
|
|
125
|
-
"@itcase/lint": "^1.0.36",
|
|
126
|
-
"@lehoczky/postcss-fluid": "^1.0.3",
|
|
128
|
+
"@commitlint/cli": "^19.7.1",
|
|
129
|
+
"@commitlint/config-conventional": "^19.7.1",
|
|
130
|
+
"@itcase/lint": "^1.0.41",
|
|
127
131
|
"@rollup/plugin-babel": "^6.0.4",
|
|
128
132
|
"@rollup/plugin-commonjs": "^28.0.2",
|
|
129
133
|
"@rollup/plugin-image": "^3.0.3",
|
|
@@ -134,14 +138,6 @@
|
|
|
134
138
|
"@semantic-release/changelog": "^6.0.3",
|
|
135
139
|
"@semantic-release/git": "^10.0.1",
|
|
136
140
|
"@semantic-release/release-notes-generator": "14.0.3",
|
|
137
|
-
"@storybook/addon-essentials": "^8.5.2",
|
|
138
|
-
"@storybook/addon-interactions": "^8.5.2",
|
|
139
|
-
"@storybook/addon-styling-webpack": "^1.0.1",
|
|
140
|
-
"@storybook/addon-themes": "^8.5.2",
|
|
141
|
-
"@storybook/addon-webpack5-compiler-swc": "^2.0.0",
|
|
142
|
-
"@storybook/blocks": "^8.5.2",
|
|
143
|
-
"@storybook/react": "^8.5.2",
|
|
144
|
-
"@storybook/react-webpack5": "^8.5.2",
|
|
145
141
|
"@types/js-cookie": "^3.0.6",
|
|
146
142
|
"@types/lodash": "^4.17.15",
|
|
147
143
|
"@types/react": "^19",
|
|
@@ -154,39 +150,19 @@
|
|
|
154
150
|
"babel-plugin-react-docgen": "^4.2.1",
|
|
155
151
|
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
|
|
156
152
|
"conventional-changelog-conventionalcommits": "^8.0.0",
|
|
157
|
-
"eslint": "9.
|
|
153
|
+
"eslint": "9.21.0",
|
|
158
154
|
"husky": "^9.1.7",
|
|
159
155
|
"lint-staged": "^15.4.3",
|
|
160
156
|
"npm": "^11.1.0",
|
|
161
|
-
"postcss": "^8.5.
|
|
162
|
-
"
|
|
163
|
-
"
|
|
164
|
-
"postcss-combine-duplicated-selectors": "^10.0.3",
|
|
165
|
-
"postcss-dark-theme-class": "^1.3.0",
|
|
166
|
-
"postcss-discard-duplicates": "^7.0.1",
|
|
167
|
-
"postcss-each": "^1.1.0",
|
|
168
|
-
"postcss-easings": "^4.0.0",
|
|
169
|
-
"postcss-flexbugs-fixes": "^5.0.2",
|
|
170
|
-
"postcss-hexrgba": "^2.1.0",
|
|
171
|
-
"postcss-import": "^16.1.0",
|
|
172
|
-
"postcss-import-ext-glob": "^2.1.1",
|
|
173
|
-
"postcss-loader": "^8.1.1",
|
|
174
|
-
"postcss-mixins": "^11.0.3",
|
|
175
|
-
"postcss-nested": "^7.0.2",
|
|
176
|
-
"postcss-nested-ancestors": "^3.0.0",
|
|
177
|
-
"postcss-normalize": "^13.0.1",
|
|
178
|
-
"postcss-prepend-imports": "^1.0.1",
|
|
179
|
-
"postcss-preset-env": "^10.1.3",
|
|
180
|
-
"postcss-pxtorem": "^6.1.0",
|
|
181
|
-
"postcss-sort-media-queries": "^5.2.0",
|
|
182
|
-
"prettier": "^3.4.2",
|
|
183
|
-
"rollup": "^4.32.1",
|
|
157
|
+
"postcss": "^8.5.3",
|
|
158
|
+
"prettier": "^3.5.2",
|
|
159
|
+
"rollup": "^4.34.8",
|
|
184
160
|
"rollup-plugin-copy": "^3.5.0",
|
|
185
161
|
"rollup-plugin-dts": "^6.1.1",
|
|
186
162
|
"rollup-plugin-peer-deps-external": "^2.2.4",
|
|
187
163
|
"rollup-preserve-directives": "^1.1.3",
|
|
188
|
-
"semantic-release": "^24.2.
|
|
189
|
-
"storybook": "^8.5.
|
|
164
|
+
"semantic-release": "^24.2.3",
|
|
165
|
+
"storybook": "^8.5.8",
|
|
190
166
|
"stylelint": "^16.14.1",
|
|
191
167
|
"typescript": "^5.7.3"
|
|
192
168
|
}
|