@itcase/ui 1.8.30 → 1.8.32
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/{Avatar_cjs_33OrnLtt.js → Avatar_cjs_kADy_b4o.js} +1 -1
- package/dist/{Avatar_es_B3LiV8MM.js → Avatar_es_DbGpnL99.js} +1 -1
- package/dist/{Button_cjs_C05Joa8j.js → Button_cjs_CW6ENTbm.js} +1 -1
- package/dist/{Button_es_CO_dwo-N.js → Button_es_DTUagqgU.js} +1 -1
- package/dist/{ChipsGroup_cjs_DN9BoTKe.js → ChipsGroup_cjs_DdWjvr_S.js} +1 -1
- package/dist/{ChipsGroup_es_D9aK8Roh.js → ChipsGroup_es_CXS0aeon.js} +1 -1
- package/dist/{DatePicker_cjs_B_OWDm9X.js → DatePicker_cjs_BYh1Dsto.js} +9 -9
- package/dist/{DatePicker_es_BCbmUdl0.js → DatePicker_es_DEAcYDTL.js} +10 -10
- package/dist/{DropdownItem_cjs_DPoFy70W.js → DropdownItem_cjs_D-zoX7Ik.js} +1 -1
- package/dist/{DropdownItem_es_CVztMEm0.js → DropdownItem_es_BMnIhUSe.js} +1 -1
- package/dist/{Label_cjs_BefEcq6i.js → Label_cjs_CZMMdwt5.js} +63 -63
- package/dist/{Label_es_Dl_DrMOh.js → Label_es_DmDqs4Rc.js} +63 -63
- package/dist/{Tooltip_cjs_pBGCcXLZ.js → Tooltip_cjs_DinScDnC.js} +38 -7
- package/dist/{Tooltip_es_frBCZDrO.js → Tooltip_es_B0nm9irO.js} +38 -7
- package/dist/cjs/components/Accordion.js +8 -8
- package/dist/cjs/components/Avatar.js +2 -2
- package/dist/cjs/components/AvatarStack.js +2 -2
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Breadcrumbs/stories/__mock__.js +15 -7
- package/dist/cjs/components/Breadcrumbs.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell/stories/__mock__.js +4 -4
- package/dist/cjs/components/Cell.js +2 -2
- package/dist/cjs/components/Chips.js +2 -2
- package/dist/cjs/components/Choice/stories/__mock__.js +71 -0
- package/dist/cjs/components/Choice.js +75 -28
- package/dist/cjs/components/Code.js +15 -16
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/{DadataHintField.js → Dadata.js} +2 -2
- package/dist/cjs/components/DatePeriod.js +5 -5
- package/dist/cjs/components/DatePicker.js +4 -4
- package/dist/cjs/components/Drawer.js +7 -7
- package/dist/cjs/components/Dropdown/stories/__mock__.js +19 -4
- package/dist/cjs/components/Dropdown.js +2 -2
- package/dist/cjs/components/HeroTitle.js +1 -1
- package/dist/cjs/components/Icon.js +1 -1
- package/dist/cjs/components/InputPassword.js +1 -1
- package/dist/cjs/components/Label.js +2 -2
- package/dist/cjs/components/MenuItem.js +38 -68
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +5 -5
- package/dist/cjs/components/Pagination.js +5 -5
- package/dist/cjs/components/Response.js +2 -2
- package/dist/cjs/components/ScrollOnDrag/stories/__mock__.js +15 -0
- package/dist/cjs/components/Scrollbar/stories/__mock__.js +7 -0
- package/dist/cjs/components/Search.js +16 -16
- package/dist/cjs/components/Segmented.js +21 -44
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Swiper/stories/__mock__.js +16 -0
- package/dist/cjs/components/Swiper.js +1 -1
- package/dist/cjs/components/Tab/stories/__mock__.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/cjs/components/Title.js +1 -1
- package/dist/cjs/components/Tooltip.js +1 -1
- package/dist/components/Accordion.js +9 -9
- package/dist/components/Avatar.js +2 -2
- package/dist/components/AvatarStack.js +2 -2
- package/dist/components/Badge.js +1 -1
- package/dist/components/Breadcrumbs/stories/__mock__.js +15 -7
- package/dist/components/Breadcrumbs.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell/stories/__mock__.js +4 -4
- package/dist/components/Cell.js +2 -2
- package/dist/components/Chips.js +2 -2
- package/dist/components/Choice/stories/__mock__.js +68 -0
- package/dist/components/Choice.js +75 -28
- package/dist/components/Code.js +15 -16
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/{DadataHintField.js → Dadata.js} +2 -2
- package/dist/components/DatePeriod.js +5 -5
- package/dist/components/DatePicker.js +4 -4
- package/dist/components/Drawer.js +8 -8
- package/dist/components/Dropdown/stories/__mock__.js +20 -5
- package/dist/components/Dropdown.js +2 -2
- package/dist/components/HeroTitle.js +1 -1
- package/dist/components/Icon.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +38 -68
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +6 -6
- package/dist/components/Pagination.js +6 -6
- package/dist/components/Response.js +2 -2
- package/dist/components/ScrollOnDrag/stories/__mock__.js +13 -0
- package/dist/components/Scrollbar/stories/__mock__.js +5 -0
- package/dist/components/Search.js +17 -17
- package/dist/components/Segmented.js +21 -44
- package/dist/components/Select.js +1 -1
- package/dist/components/Swiper/stories/__mock__.js +14 -0
- package/dist/components/Swiper.js +1 -1
- package/dist/components/Tab/stories/__mock__.js +2 -2
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/components/Title.js +1 -1
- package/dist/components/Tooltip.js +1 -1
- package/dist/css/components/Choice/Choice.css +41 -38
- package/dist/css/components/Choice/css/__item/choice__item.css +0 -9
- package/dist/css/components/Choice/css/__item/choice__item_size.css +4 -1
- package/dist/css/components/Code/Code.css +5 -7
- package/dist/css/components/{DadataHintField/DadataHintField.css → Dadata/Dadata.css} +9 -9
- package/dist/css/components/HTMLContent/HTMLContent.css +85 -18
- package/dist/css/components/MenuItem/MenuItem.css +45 -8
- package/dist/stories/ChoiceOverview.mdx +2 -2
- package/dist/stories/ChoicePlayground.mdx +3 -3
- package/dist/stories/CookiesWarningOverview.mdx +1 -1
- package/dist/stories/CookiesWarningPlayground.mdx +1 -1
- package/dist/stories/DadataOverview.mdx +11 -0
- package/dist/stories/DadataPlaygroynd.mdx +11 -0
- package/dist/stories/HTMLContentOverview.mdx +1 -1
- package/dist/stories/HTMLContentPlayground.mdx +1 -1
- package/dist/stories/HeroTitleOverview.mdx +1 -1
- package/dist/stories/HeroTitlePlayground.mdx +1 -1
- package/dist/stories/LinkOverview.mdx +1 -1
- package/dist/stories/LinkPlayground.mdx +1 -1
- package/dist/stories/RangeSliderOverview.mdx +15 -0
- package/dist/stories/RangeSliderPlayground.mdx +10 -0
- package/dist/stories/SVGContentOverview.mdx +1 -1
- package/dist/stories/SVGContentPlayground.mdx +1 -1
- package/dist/stories/ScrollOnDragOverview.mdx +12 -0
- package/dist/stories/ScrollOnDragPlayground.mdx +10 -0
- package/dist/stories/ScrollbarOverview.mdx +15 -0
- package/dist/stories/ScrollbarPlayground.mdx +10 -0
- package/dist/stories/SwiperOverview.mdx +2 -2
- package/dist/stories/SwiperPlayground.mdx +2 -2
- package/dist/stories/TextOverview.mdx +1 -1
- package/dist/stories/TextPlayground.mdx +1 -1
- package/dist/stories/TitleOverview.mdx +1 -1
- package/dist/stories/TitlePlayground.mdx +1 -1
- package/dist/types/components/Accordion/appearance/accordionSize.d.ts +7 -7
- package/dist/types/components/Breadcrumbs/stories/__mock__/index.d.ts +0 -1
- package/dist/types/components/Cell/stories/__mock__/index.d.ts +0 -2
- package/dist/types/components/Choice/Choice.interface.d.ts +1 -0
- package/dist/types/components/Choice/appearance/choiceDefault.d.ts +10 -0
- package/dist/types/components/Choice/appearance/choiceDisabled.d.ts +10 -0
- package/dist/types/components/Choice/appearance/choiceError.d.ts +17 -0
- package/dist/types/components/Choice/appearance/choiceRequire.d.ts +11 -0
- package/dist/types/components/Choice/appearance/choiceStyle.d.ts +6 -4
- package/dist/types/components/Choice/appearance/choiceSuccess.d.ts +11 -0
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +21 -0
- package/dist/types/components/Code/appearance/codeDefault.d.ts +6 -8
- package/dist/types/components/Code/appearance/codeError.d.ts +1 -0
- package/dist/types/components/Code/appearance/codeSize.d.ts +2 -2
- package/dist/types/components/Dadata/Dadata.d.ts +3 -0
- package/dist/types/components/{DadataHintField/DadataHintField.interface.d.ts → Dadata/Dadata.interface.d.ts} +1 -1
- package/dist/types/components/Dadata/index.d.ts +1 -0
- package/dist/types/components/DatePicker/DatePicker.appearance.d.ts +6 -6
- package/dist/types/components/DatePicker/appearance/datePickerSize.d.ts +6 -6
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +6 -6
- package/dist/types/components/Icon/appearance/iconDanger.d.ts +6 -0
- package/dist/types/components/Icon/appearance/iconError.d.ts +6 -0
- package/dist/types/components/Icon/appearance/iconPrimary.d.ts +5 -0
- package/dist/types/components/Icon/appearance/iconSecondary.d.ts +5 -0
- package/dist/types/components/Icon/appearance/iconStyle.d.ts +6 -5
- package/dist/types/components/Icon/appearance/iconWarning.d.ts +6 -0
- package/dist/types/components/Label/appearance/labelAccent.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelDanger.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelError.d.ts +7 -7
- package/dist/types/components/Label/appearance/labelPrimary.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSecondary.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSuccess.d.ts +1 -1
- package/dist/types/components/Label/appearance/labelSurface.d.ts +8 -8
- package/dist/types/components/Label/appearance/labelWarning.d.ts +1 -1
- package/dist/types/components/MenuItem/MenuItem.interface.d.ts +1 -0
- package/dist/types/components/MenuItem/appearance/menuItemAccent.d.ts +5 -8
- package/dist/types/components/MenuItem/appearance/menuItemError.d.ts +3 -3
- package/dist/types/components/MenuItem/appearance/menuItemSize.d.ts +0 -15
- package/dist/types/components/MenuItem/appearance/menuItemStyle.d.ts +1 -3
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +3 -5
- package/dist/types/components/Notification/appearance/notificationDefault.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationError.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationSuccess.d.ts +1 -1
- package/dist/types/components/Notification/appearance/notificationWarning.d.ts +1 -1
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +1 -1
- package/dist/types/components/ScrollOnDrag/stories/__mock__/index.d.ts +2 -0
- package/dist/types/components/Scrollbar/stories/__mock__/index.d.ts +2 -0
- package/dist/types/components/Search/appearance/searchSize.d.ts +12 -12
- package/dist/types/components/Segmented/appearance/{segmentedSurface.d.ts → segmentedDefault.d.ts} +4 -4
- package/dist/types/components/Select/SelectLoadingIndicator.d.ts +1 -2
- package/dist/types/components/Swiper/stories/__mock__/index.d.ts +2 -0
- package/dist/types/components/Tab/stories/__mock__/index.d.ts +1 -1
- package/dist/types/hooks/useDeviceTargetClass.d.ts +5 -0
- package/package.json +12 -12
- package/dist/stories/Colors.mdx +0 -239
- package/dist/stories/DadataHintFieldOverview.mdx +0 -11
- package/dist/stories/DadataHintFieldPlaygroynd.mdx +0 -11
- package/dist/stories/Elevation.mdx +0 -80
- package/dist/stories/Settings.mdx +0 -3
- package/dist/stories/TypographyAM.mdx +0 -82
- package/dist/stories/TypographyBaikal.mdx +0 -82
- package/dist/types/components/Choice/appearance/choiceAccent.d.ts +0 -10
- package/dist/types/components/DadataHintField/DadataHintField.d.ts +0 -3
- package/dist/types/components/DadataHintField/index.d.ts +0 -1
- package/dist/types/components/Label/appearance/labelGradient.d.ts +0 -9
- package/dist/types/components/MenuItem/appearance/menuItemPrimary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +0 -21
- package/dist/types/components/Pagination/appearance/paginationDanger.d.ts +0 -7
- package/dist/types/components/Pagination/appearance/paginationError.d.ts +0 -11
- package/dist/types/components/Pagination/appearance/paginationInfo.d.ts +0 -21
- package/dist/types/components/Pagination/appearance/paginationPrimary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationSecondary.d.ts +0 -8
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +0 -48
- package/dist/types/components/Pagination/appearance/paginationStyle.d.ts +0 -16
- package/dist/types/components/Pagination/appearance/paginationSuccess.d.ts +0 -11
- package/dist/types/components/Pagination/appearance/paginationWarning.d.ts +0 -11
- package/dist/types/components/Segmented/appearance/segmentedAccent.d.ts +0 -19
- package/dist/types/components/Segmented/appearance/segmentedFalse.d.ts +0 -4
- package/dist/types/config/forms/datepicker.d.ts +0 -18
- package/dist/types/config/forms/index.d.ts +0 -3
- package/dist/types/config/forms/input.d.ts +0 -14
|
@@ -5,10 +5,10 @@ import clsx from 'clsx';
|
|
|
5
5
|
import castArray from 'lodash/castArray';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { B as Badge, I as Icon } from '../
|
|
8
|
+
import { B as Badge, I as Icon } from '../Tooltip_es_B0nm9irO.js';
|
|
9
9
|
import { D as Divider } from '../Divider_es_kY-30pft.js';
|
|
10
10
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
11
|
-
import {
|
|
11
|
+
import { icons16 } from '@itcase/icons/default';
|
|
12
12
|
import 'lodash/camelCase';
|
|
13
13
|
import 'lodash/upperFirst';
|
|
14
14
|
import '../context/Notifications.js';
|
|
@@ -29,48 +29,48 @@ var accordionAppearanceSize = {
|
|
|
29
29
|
titleTextSize: 'h3',
|
|
30
30
|
badgeAppearanceSize: 'sizeXS',
|
|
31
31
|
contentTextSize: 'xxl',
|
|
32
|
-
icon:
|
|
32
|
+
icon: icons16.Arrow.Chevron_Down,
|
|
33
33
|
},
|
|
34
34
|
sizeXL: {
|
|
35
35
|
size: 'xl',
|
|
36
36
|
titleTextSize: 'h3',
|
|
37
37
|
badgeAppearanceSize: 'sizeXS',
|
|
38
38
|
contentTextSize: 'l',
|
|
39
|
-
icon:
|
|
39
|
+
icon: icons16.Arrow.Chevron_Down,
|
|
40
40
|
},
|
|
41
41
|
sizeL: {
|
|
42
42
|
size: 'l',
|
|
43
43
|
titleTextSize: 'h4',
|
|
44
44
|
badgeAppearanceSize: 'sizeXS',
|
|
45
|
-
icon:
|
|
45
|
+
icon: icons16.Arrow.Chevron_Down,
|
|
46
46
|
},
|
|
47
47
|
sizeM: {
|
|
48
48
|
size: 'm',
|
|
49
49
|
titleTextSize: 'h5',
|
|
50
50
|
badgeAppearanceSize: 'sizeXS',
|
|
51
51
|
contentTextSize: 'm',
|
|
52
|
-
icon:
|
|
52
|
+
icon: icons16.Arrow.Chevron_Down,
|
|
53
53
|
},
|
|
54
54
|
sizeS: {
|
|
55
55
|
size: 's',
|
|
56
56
|
titleTextSize: 'h6',
|
|
57
57
|
badgeAppearanceSize: 'sizeXS',
|
|
58
58
|
contentTextSize: 's',
|
|
59
|
-
icon:
|
|
59
|
+
icon: icons16.Arrow.Chevron_Down,
|
|
60
60
|
},
|
|
61
61
|
sizeXS: {
|
|
62
62
|
size: 'xs',
|
|
63
63
|
titleTextSize: 'h6',
|
|
64
64
|
badgeAppearanceSize: 'sizeXS',
|
|
65
65
|
contentTextSize: 'xs',
|
|
66
|
-
icon:
|
|
66
|
+
icon: icons16.Arrow.Chevron_Down,
|
|
67
67
|
},
|
|
68
68
|
sizeXXS: {
|
|
69
69
|
size: 'xxs',
|
|
70
70
|
titleTextSize: 'h6',
|
|
71
71
|
badgeAppearanceSize: 'sizeXS',
|
|
72
72
|
contentTextSize: 'xs',
|
|
73
|
-
icon:
|
|
73
|
+
icon: icons16.Arrow.Chevron_Down,
|
|
74
74
|
},
|
|
75
75
|
};
|
|
76
76
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../
|
|
1
|
+
export { A as Avatar, b as avatarAppearance, a as avatarConfig } from '../Avatar_es_DbGpnL99.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -14,7 +14,7 @@ import '../context/UIContext.js';
|
|
|
14
14
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
15
15
|
import 'react-responsive';
|
|
16
16
|
import '../utils/setViewportProperty.js';
|
|
17
|
-
import '../
|
|
17
|
+
import '../Tooltip_es_B0nm9irO.js';
|
|
18
18
|
import '../hooks/useStyles/useStyles.js';
|
|
19
19
|
import 'lodash/maxBy';
|
|
20
20
|
import '../hooks/useStyles/styleAttributes.js';
|
|
@@ -3,7 +3,7 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { A as Avatar } from '../
|
|
6
|
+
import { A as Avatar } from '../Avatar_es_DbGpnL99.js';
|
|
7
7
|
import { G as Group } from '../Group_es_CYW2Hquh.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'react';
|
|
@@ -19,7 +19,7 @@ import 'react-responsive';
|
|
|
19
19
|
import '../utils/setViewportProperty.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../
|
|
22
|
+
import '../Tooltip_es_B0nm9irO.js';
|
|
23
23
|
import 'react-inlinesvg';
|
|
24
24
|
import '../Link_es_DxtZLeKY.js';
|
|
25
25
|
import '../Image_es_DZUVp0FS.js';
|
package/dist/components/Badge.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../
|
|
1
|
+
export { B as Badge, f as badgeAppearance, g as badgeConfig } from '../Tooltip_es_B0nm9irO.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { icon16 } from '@itcase/icons/default';
|
|
2
|
-
|
|
3
1
|
var breadcrumbsListMock = {
|
|
4
2
|
breadcrumbsList: [
|
|
5
3
|
{
|
|
@@ -7,35 +5,45 @@ var breadcrumbsListMock = {
|
|
|
7
5
|
key: 1,
|
|
8
6
|
text: 'Text 123',
|
|
9
7
|
href: '/',
|
|
10
|
-
|
|
8
|
+
// "Placeholder" is removed from @itcase/icons.
|
|
9
|
+
// Use url to ".storybook/assets/icons/placeholder.svg"
|
|
10
|
+
// icon: icons16.Placeholder,
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
id: '2',
|
|
14
14
|
key: 2,
|
|
15
15
|
text: 'Text 123',
|
|
16
16
|
href: '/',
|
|
17
|
-
|
|
17
|
+
// "Placeholder" is removed from @itcase/icons.
|
|
18
|
+
// Use url to ".storybook/assets/icons/placeholder.svg"
|
|
19
|
+
// icon: icons16.Placeholder,
|
|
18
20
|
},
|
|
19
21
|
{
|
|
20
22
|
id: '3',
|
|
21
23
|
key: 3,
|
|
22
24
|
text: 'Text 123',
|
|
23
25
|
href: '/',
|
|
24
|
-
|
|
26
|
+
// "Placeholder" is removed from @itcase/icons.
|
|
27
|
+
// Use url to ".storybook/assets/icons/placeholder.svg"
|
|
28
|
+
// icon: icons16.Placeholder,
|
|
25
29
|
},
|
|
26
30
|
{
|
|
27
31
|
id: '4',
|
|
28
32
|
key: 4,
|
|
29
33
|
text: 'Text 123',
|
|
30
34
|
href: '/',
|
|
31
|
-
|
|
35
|
+
// "Placeholder" is removed from @itcase/icons.
|
|
36
|
+
// Use url to ".storybook/assets/icons/placeholder.svg"
|
|
37
|
+
// icon: icons16.Placeholder,
|
|
32
38
|
},
|
|
33
39
|
{
|
|
34
40
|
id: '5',
|
|
35
41
|
key: 5,
|
|
36
42
|
text: 'Text 123',
|
|
37
43
|
href: '/',
|
|
38
|
-
|
|
44
|
+
// "Placeholder" is removed from @itcase/icons.
|
|
45
|
+
// Use url to ".storybook/assets/icons/placeholder.svg"
|
|
46
|
+
// icon: icons16.Placeholder,
|
|
39
47
|
},
|
|
40
48
|
],
|
|
41
49
|
};
|
|
@@ -4,7 +4,7 @@ import clsx from 'clsx';
|
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
6
|
import { _ as __assign } from '../tslib.es6_es_Bwu1Cn-t.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_B0nm9irO.js';
|
|
8
8
|
import { a as LinkWrapper } from '../Link_es_DxtZLeKY.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../
|
|
1
|
+
export { B as Button, a as buttonAppearance, b as buttonConfig } from '../Button_es_DTUagqgU.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
5
5
|
import 'clsx';
|
|
6
|
-
import '../
|
|
6
|
+
import '../Tooltip_es_B0nm9irO.js';
|
|
7
7
|
import '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import 'lodash/camelCase';
|
|
9
9
|
import 'lodash/castArray';
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// "Placeholder" is removed from @itcase/icons.
|
|
2
|
+
// Use url to ".storybook/assets/icons/placeholder.svg"
|
|
3
3
|
var cellMock = {
|
|
4
4
|
title: 'Title',
|
|
5
|
-
titleIcon:
|
|
5
|
+
// titleIcon: icons16.Placeholder,
|
|
6
6
|
titleLabel: 'Label',
|
|
7
7
|
value: 'Value',
|
|
8
|
-
valueIcon:
|
|
8
|
+
// valueIcon: icons16.Placeholder,
|
|
9
9
|
valueLabel: 'Label',
|
|
10
10
|
};
|
|
11
11
|
|
package/dist/components/Cell.js
CHANGED
|
@@ -3,8 +3,8 @@ import { jsxs, jsx } from 'react/jsx-runtime';
|
|
|
3
3
|
import clsx from 'clsx';
|
|
4
4
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
5
5
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
6
|
-
import { I as Icon } from '../
|
|
7
|
-
import { L as Label } from '../
|
|
6
|
+
import { I as Icon } from '../Tooltip_es_B0nm9irO.js';
|
|
7
|
+
import { L as Label } from '../Label_es_DmDqs4Rc.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'react';
|
|
10
10
|
import 'lodash/camelCase';
|
package/dist/components/Chips.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../
|
|
1
|
+
export { C as Chips, b as ChipsGroup, a as chipsAppearance, c as chipsConfig } from '../ChipsGroup_es_CXS0aeon.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -17,7 +17,7 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
import '../hooks/useStyles/useStyles.js';
|
|
18
18
|
import 'lodash/maxBy';
|
|
19
19
|
import '../hooks/useStyles/styleAttributes.js';
|
|
20
|
-
import '../
|
|
20
|
+
import '../Tooltip_es_B0nm9irO.js';
|
|
21
21
|
import '../Text_es_BfLRfj-5.js';
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DxtZLeKY.js';
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { icon24 } from '@itcase/icons/default';
|
|
2
|
+
|
|
3
|
+
var choiceListMock = {
|
|
4
|
+
active: {
|
|
5
|
+
value: 1,
|
|
6
|
+
},
|
|
7
|
+
choices: [
|
|
8
|
+
{
|
|
9
|
+
label: 'Label 1',
|
|
10
|
+
iconAfter: icon24.Placeholder,
|
|
11
|
+
iconBefore: icon24.Placeholder,
|
|
12
|
+
value: 1,
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
label: 'Label 2',
|
|
16
|
+
iconAfter: icon24.Placeholder,
|
|
17
|
+
iconBefore: icon24.Placeholder,
|
|
18
|
+
value: 2,
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
label: 'Label 3',
|
|
22
|
+
iconAfter: icon24.Placeholder,
|
|
23
|
+
iconBefore: icon24.Placeholder,
|
|
24
|
+
value: 3,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
label: 'Label 4',
|
|
28
|
+
iconAfter: icon24.Placeholder,
|
|
29
|
+
iconBefore: icon24.Placeholder,
|
|
30
|
+
value: 4,
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
label: 'Label 5',
|
|
34
|
+
iconAfter: icon24.Placeholder,
|
|
35
|
+
iconBefore: icon24.Placeholder,
|
|
36
|
+
value: 5,
|
|
37
|
+
},
|
|
38
|
+
],
|
|
39
|
+
};
|
|
40
|
+
var choiceListIconMock = {
|
|
41
|
+
active: {
|
|
42
|
+
value: 1,
|
|
43
|
+
},
|
|
44
|
+
choices: [
|
|
45
|
+
{
|
|
46
|
+
icon: icon24.Placeholder,
|
|
47
|
+
value: 1,
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
icon: icon24.Placeholder,
|
|
51
|
+
value: 2,
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
icon: icon24.Placeholder,
|
|
55
|
+
value: 3,
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
icon: icon24.Placeholder,
|
|
59
|
+
value: 4,
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
icon: icon24.Placeholder,
|
|
63
|
+
value: 5,
|
|
64
|
+
},
|
|
65
|
+
],
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export { choiceListIconMock, choiceListMock };
|
|
@@ -4,7 +4,7 @@ import React, { useRef, useMemo, createRef, useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
6
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
7
|
-
import { I as Icon } from '../
|
|
7
|
+
import { I as Icon } from '../Tooltip_es_B0nm9irO.js';
|
|
8
8
|
import { L as Loader } from '../Loader_es_B2auu_rc.js';
|
|
9
9
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
10
10
|
import 'lodash/camelCase';
|
|
@@ -22,13 +22,51 @@ import '../hooks/useStyles/styleAttributes.js';
|
|
|
22
22
|
import 'react-inlinesvg';
|
|
23
23
|
import '../Link_es_DxtZLeKY.js';
|
|
24
24
|
|
|
25
|
-
var
|
|
26
|
-
|
|
27
|
-
fill: '
|
|
28
|
-
fillItemActive: 'accentPrimary',
|
|
29
|
-
labelTextActiveColor: 'accentTextPrimary',
|
|
25
|
+
var choiceAppearanceDefault = {
|
|
26
|
+
defaultPrimary: {
|
|
27
|
+
fill: 'surfaceSecondary',
|
|
30
28
|
labelTextColor: 'surfaceTextPrimary',
|
|
31
|
-
borderColor: '
|
|
29
|
+
borderColor: 'surfaceBorderQuaternary',
|
|
30
|
+
iconAfterFill: 'surfaceItemQuaternary',
|
|
31
|
+
iconBeforeFill: 'surfaceItemQuaternary',
|
|
32
|
+
},
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
var choiceAppearanceDisabled = {
|
|
36
|
+
disabledPrimary: {
|
|
37
|
+
fill: 'surfaceDisabled',
|
|
38
|
+
labelTextColor: 'surfaceTextQuaternary',
|
|
39
|
+
borderColor: 'surfaceBorderPrimary',
|
|
40
|
+
iconAfterFill: 'surfaceItemPrimary',
|
|
41
|
+
iconBeforeFill: 'surfaceItemPrimary',
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
var choiceAppearanceError = {
|
|
46
|
+
errorPrimary: {
|
|
47
|
+
fill: 'errorTertiary',
|
|
48
|
+
fillItem: 'errorItemTertiary',
|
|
49
|
+
fillItemActive: 'errorItemSecondary',
|
|
50
|
+
fillItemHover: 'errorItemHover',
|
|
51
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
52
|
+
borderColor: 'errorBorderQuaternary',
|
|
53
|
+
iconAfterFill: 'errorItemSecondary',
|
|
54
|
+
iconAfterFillActive: 'errorItemTertiary',
|
|
55
|
+
iconBeforeFill: 'errorItemSecondary',
|
|
56
|
+
iconBeforeFillActive: 'errorItemTertiary',
|
|
57
|
+
iconFill: 'errorItemSecondary',
|
|
58
|
+
iconFillActive: 'errorItemTertiary',
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
var choiceAppearanceRequire = {
|
|
63
|
+
requirePrimary: {
|
|
64
|
+
fill: 'warningTertiary',
|
|
65
|
+
fillItemActive: 'warningTertiary',
|
|
66
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
67
|
+
borderColor: 'warningBorderSecondary',
|
|
68
|
+
iconAfterFill: 'warningItemSecondary',
|
|
69
|
+
iconBeforeFill: 'warningItemSecondary',
|
|
32
70
|
},
|
|
33
71
|
};
|
|
34
72
|
|
|
@@ -51,18 +89,29 @@ var choiceAppearanceSize = {
|
|
|
51
89
|
};
|
|
52
90
|
|
|
53
91
|
var choiceAppearanceStyle = {
|
|
54
|
-
|
|
55
|
-
borderColor: '
|
|
92
|
+
full: {
|
|
93
|
+
borderColor: '0',
|
|
94
|
+
},
|
|
95
|
+
ghost: {
|
|
96
|
+
fill: 'none',
|
|
97
|
+
borderColor: '0',
|
|
56
98
|
},
|
|
57
99
|
outlined: {
|
|
58
100
|
fill: 'none',
|
|
59
101
|
},
|
|
60
|
-
|
|
61
|
-
|
|
102
|
+
solid: {
|
|
103
|
+
borderColor: '0',
|
|
62
104
|
},
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
105
|
+
};
|
|
106
|
+
|
|
107
|
+
var choiceAppearanceSuccess = {
|
|
108
|
+
successPrimary: {
|
|
109
|
+
fill: 'successTertiary',
|
|
110
|
+
fillItemActive: 'successTertiary',
|
|
111
|
+
labelTextColor: 'surfaceTextPrimary',
|
|
112
|
+
borderColor: 'successBorderSecondary',
|
|
113
|
+
iconAfterFill: 'successItemSecondary',
|
|
114
|
+
iconBeforeFill: 'successItemSecondary',
|
|
66
115
|
},
|
|
67
116
|
};
|
|
68
117
|
|
|
@@ -91,7 +140,7 @@ var choiceAppearanceSurface = {
|
|
|
91
140
|
},
|
|
92
141
|
};
|
|
93
142
|
|
|
94
|
-
var choiceAppearance = __assign(__assign(__assign(__assign({},
|
|
143
|
+
var choiceAppearance = __assign(__assign(__assign(__assign(__assign(__assign(__assign(__assign({}, choiceAppearanceError), choiceAppearanceDisabled), choiceAppearanceDefault), choiceAppearanceSuccess), choiceAppearanceRequire), choiceAppearanceStyle), choiceAppearanceSize), choiceAppearanceSurface);
|
|
95
144
|
|
|
96
145
|
var choiceConfig = {
|
|
97
146
|
appearance: choiceAppearance,
|
|
@@ -100,7 +149,7 @@ var choiceConfig = {
|
|
|
100
149
|
},
|
|
101
150
|
};
|
|
102
151
|
function Choice(props) {
|
|
103
|
-
var id = props.id, className = props.className, name = props.name, appearance = props.appearance, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, dataTestId = props.dataTestId, dataTour = props.dataTour,
|
|
152
|
+
var id = props.id, className = props.className, name = props.name, appearance = props.appearance, _a = props.isDisabled, isDisabled = _a === void 0 ? false : _a, _b = props.active, active = _b === void 0 ? { value: undefined } : _b, dataTestId = props.dataTestId, dataTour = props.dataTour, itemAfter = props.itemAfter, itemBefore = props.itemBefore, _c = props.options, options = _c === void 0 ? [] : _c, before = props.before, after = props.after, _d = props.isCheckbox, isCheckbox = _d === void 0 ? false : _d, _e = props.isLoading, isLoading = _e === void 0 ? false : _e, isSkeleton = props.isSkeleton, setActiveSegment = props.setActiveSegment;
|
|
104
153
|
var controlRef = useRef(null);
|
|
105
154
|
var optionsRefs = useMemo(function () {
|
|
106
155
|
return new Map(options.map(function (item) { return [item.value, createRef()]; }));
|
|
@@ -114,18 +163,18 @@ function Choice(props) {
|
|
|
114
163
|
return (__assign(__assign({}, resultConfig), (_a = choiceConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
115
164
|
}, {});
|
|
116
165
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
117
|
-
var size = propsGenerator.size, fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor,
|
|
166
|
+
var size = propsGenerator.size, fillClass = propsGenerator.fillClass, fillItemActiveClass = propsGenerator.fillItemActiveClass, fillItemActiveDisabledClass = propsGenerator.fillItemActiveDisabledClass, fillItemActiveHoverClass = propsGenerator.fillItemActiveHoverClass, fillItemClass = propsGenerator.fillItemClass, fillItemDisabledClass = propsGenerator.fillItemDisabledClass, fillItemHoverClass = propsGenerator.fillItemHoverClass, labelTextActiveColor = propsGenerator.labelTextActiveColor, labelTextColor = propsGenerator.labelTextColor, labelTextSize = propsGenerator.labelTextSize, labelTextWeight = propsGenerator.labelTextWeight, labelTextWrap = propsGenerator.labelTextWrap, borderColorClass = propsGenerator.borderColorClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, iconAfterFillDisabled = propsGenerator.iconAfterFillDisabled, iconBeforeFillDisabled = propsGenerator.iconBeforeFillDisabled, iconFillDisabled = propsGenerator.iconFillDisabled, iconAfterFill = propsGenerator.iconAfterFill, iconAfterFillActive = propsGenerator.iconAfterFillActive, iconAfterSize = propsGenerator.iconAfterSize, iconBeforeFill = propsGenerator.iconBeforeFill, iconBeforeFillActive = propsGenerator.iconBeforeFillActive, iconBeforeSize = propsGenerator.iconBeforeSize, iconFill = propsGenerator.iconFill, iconFillActive = propsGenerator.iconFillActive, iconSize = propsGenerator.iconSize, shapeClass = propsGenerator.shapeClass, shapeItemClass = propsGenerator.shapeItemClass, wrapClass = propsGenerator.wrapClass;
|
|
118
167
|
var styles = useStyles(props).styles;
|
|
119
|
-
return (jsxs("div", { id: id, className: clsx(className, 'choice', size && "choice_size_".concat(size), fillClass && "fill_".concat(fillClass), wrapClass && "choice_wrap_".concat(wrapClass)), "data-testid": dataTestId && "".concat(dataTestId, "Choice"), "data-tour": dataTour, ref: controlRef, style: styles, children: [before && jsx("div", { className: "choice__before", children: before }), isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsx(React.Fragment, { children: options.map(function (item) {
|
|
168
|
+
return (jsxs("div", { id: id, className: clsx(className, 'choice', size && "choice_size_".concat(size), fillClass && "fill_".concat(fillClass), wrapClass && "choice_wrap_".concat(wrapClass), isSkeleton && "choice_skeleton"), "data-testid": dataTestId && "".concat(dataTestId, "Choice"), "data-tour": dataTour, ref: controlRef, style: styles, children: [before && jsx("div", { className: "choice__before", children: before }), isLoading ? (jsx(Loader, { width: "fill", height: "fill", fill: "surfacePrimary", itemFill: "surfaceItemAccent" })) : (jsx(React.Fragment, { children: options.map(function (item) {
|
|
120
169
|
var isActive = typeof active === 'object'
|
|
121
170
|
? String(item.value) === String(active.value)
|
|
122
171
|
: String(item.value) === String(active);
|
|
123
172
|
return (jsxs("div", { className: clsx('choice__item', size && "choice__item_size_".concat(size), shapeClass && "choice_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), !isDisabled
|
|
124
173
|
? fillItemClass && "fill_".concat(fillItemClass)
|
|
125
174
|
: fillItemDisabledClass &&
|
|
126
|
-
"fill_disabled_".concat(fillItemDisabledClass), !isDisabled
|
|
127
|
-
|
|
128
|
-
|
|
175
|
+
"fill_disabled_".concat(fillItemDisabledClass), !isDisabled &&
|
|
176
|
+
fillItemHoverClass &&
|
|
177
|
+
"fill_hover_".concat(fillItemHoverClass), isActive &&
|
|
129
178
|
fillItemActiveHoverClass &&
|
|
130
179
|
"fill_active_hover_".concat(fillItemActiveHoverClass), isActive
|
|
131
180
|
? !isDisabled
|
|
@@ -138,13 +187,11 @@ function Choice(props) {
|
|
|
138
187
|
: fillItemDisabledClass &&
|
|
139
188
|
"fill_disabled_".concat(fillItemDisabledClass), !isActive && isDisabled && 'choice__item_state_disabled', isActive &&
|
|
140
189
|
isDisabled &&
|
|
141
|
-
'choice__item_active_state_disabled', isActive && 'choice__item_active', shapeItemClass && "choice__item_shape_".concat(shapeItemClass)), ref: optionsRefs.get(item.value), children: [jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [itemBefore, (iconBefore || iconBeforeActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled:
|
|
142
|
-
?
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
:
|
|
146
|
-
? labelTextColor
|
|
147
|
-
: labelTextColorDisabled, textWeight: labelTextWeight, textWrap: labelTextWrap, children: item.label })), (icon || iconActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconFillDisabled : undefined, iconFill: isActive ? iconFillActive : iconFill, iconSize: iconSize, SvgImage: isActive ? iconActive : icon })), (iconAfter || iconAfterActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: isDisabled ? iconAfterFillDisabled : undefined, iconFill: isActive ? iconAfterFillActive : iconAfterFill, iconSize: iconAfterSize, SvgImage: isActive ? iconAfterActive : iconAfter })), itemAfter] })] }, "".concat(name, "-").concat(item.value)));
|
|
190
|
+
'choice__item_active_state_disabled', isActive && 'choice__item_active', shapeItemClass && "choice__item_shape_".concat(shapeItemClass)), ref: optionsRefs.get(item.value), children: [jsx("input", { id: "".concat(name, "-").concat(item.value), className: "choice__item-radio", type: isCheckbox ? 'checkbox' : 'radio', name: name, disabled: isDisabled, checked: isActive, value: item.value, onChange: function (event) { return onChange(event, item); } }), jsxs("label", { className: clsx('choice__item-label', isDisabled && 'choice__item-label_state_disabled'), htmlFor: "".concat(name, "-").concat(item.value), children: [itemBefore, (item.iconBefore || item.iconBeforeActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: iconBeforeFillDisabled, isDisabled: isDisabled, iconFill: iconBeforeFill, iconFillActive: iconBeforeFillActive, iconSize: iconBeforeSize, SvgImage: isActive
|
|
191
|
+
? item.iconBeforeActive || item.iconBefore
|
|
192
|
+
: item.iconBefore, isActive: isActive })), item.label && (jsx(Text, { size: labelTextSize, textColor: labelTextColor, textColorActive: labelTextActiveColor, textWeight: labelTextWeight, textWrap: labelTextWrap, isActive: isActive, children: item.label })), (item.icon || item.iconActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: iconFillDisabled, iconFill: iconFill, iconFillActive: iconFillActive, iconSize: iconSize, SvgImage: isActive ? item.iconActive || item.icon : item.icon, isActive: isActive })), (item.iconAfter || item.iconAfterActive) && (jsx(Icon, { className: "choice__item-icon", iconFillDisabled: iconAfterFillDisabled, iconFill: iconAfterFill, iconFillActive: iconAfterFillActive, iconSize: iconAfterSize, SvgImage: isActive
|
|
193
|
+
? item.iconAfterActive || item.iconAfter
|
|
194
|
+
: item.iconAfter, isActive: isActive })), itemAfter] })] }, "".concat(name, "-").concat(item.value)));
|
|
148
195
|
}) })), after && jsx("div", { className: "choice__after", children: after })] }));
|
|
149
196
|
}
|
|
150
197
|
|
package/dist/components/Code.js
CHANGED
|
@@ -17,14 +17,12 @@ import '../utils/setViewportProperty.js';
|
|
|
17
17
|
|
|
18
18
|
var codeAppearanceDefault = {
|
|
19
19
|
defaultPrimary: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
borderColor: 'surfaceBorderTertiary',
|
|
27
|
-
borderHover: 'surfaceBorderQuaternary',
|
|
20
|
+
inputBorderColor: 'surfaceBorderTertiary',
|
|
21
|
+
inputCaretColor: 'surfaceItemPrimary',
|
|
22
|
+
inputFill: 'surfaceSecondary',
|
|
23
|
+
inputFillHover: 'surfaceSecondary',
|
|
24
|
+
inputPlaceholderTextColor: 'surfaceTextQuaternary',
|
|
25
|
+
inputTextColor: 'surfaceTextPrimary',
|
|
28
26
|
},
|
|
29
27
|
};
|
|
30
28
|
|
|
@@ -47,9 +45,10 @@ var codeAppearanceDisabled = {
|
|
|
47
45
|
var codeAppearanceError = {
|
|
48
46
|
errorPrimary: {
|
|
49
47
|
inputBorderColor: 'errorBorderQuaternary',
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
48
|
+
inputBorderColorHover: 'errorBorderSecondary',
|
|
49
|
+
inputCaretColor: 'surfaceItemPrimary',
|
|
50
|
+
inputFill: 'errorTertiary',
|
|
51
|
+
inputFillHover: 'errorTertiary',
|
|
53
52
|
inputPlaceholderTextColor: 'surfaceTextQuaternary',
|
|
54
53
|
inputTextColor: 'surfaceTextPrimary',
|
|
55
54
|
},
|
|
@@ -78,13 +77,13 @@ var codeAppearanceRequire = {
|
|
|
78
77
|
var codeAppearanceSize = {
|
|
79
78
|
sizeL: {
|
|
80
79
|
size: 'l',
|
|
81
|
-
labelTextSize: 'l',
|
|
82
80
|
inputSize: 'l',
|
|
81
|
+
inputTextSize: 'xxl',
|
|
83
82
|
},
|
|
84
83
|
sizeM: {
|
|
85
84
|
size: 'm',
|
|
86
|
-
labelTextSize: 'm',
|
|
87
85
|
inputSize: 'm',
|
|
86
|
+
inputTextSize: 'xxl',
|
|
88
87
|
},
|
|
89
88
|
};
|
|
90
89
|
|
|
@@ -124,8 +123,8 @@ var codeConfig = {
|
|
|
124
123
|
},
|
|
125
124
|
};
|
|
126
125
|
function Code(props) {
|
|
127
|
-
var className = props.className, appearance = props.appearance, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === void 0 ? 6 : _a,
|
|
128
|
-
var
|
|
126
|
+
var className = props.className, appearance = props.appearance, inputAutoFocus = props.inputAutoFocus, _a = props.inputCount, inputCount = _a === void 0 ? 6 : _a, inputPlaceholder = props.inputPlaceholder, _b = props.inputType, inputType = _b === void 0 ? 'number' : _b, separatorComponent = props.separatorComponent, before = props.before, after = props.after, isSkeleton = props.isSkeleton, onBlur = props.onBlur, onChange = props.onChange, onFocus = props.onFocus;
|
|
127
|
+
var _c = useState(''), otp = _c[0], setOtp = _c[1];
|
|
129
128
|
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultConfig, appearanceKey) {
|
|
130
129
|
var _a;
|
|
131
130
|
return (__assign(__assign({}, resultConfig), (_a = codeConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearanceKey]));
|
|
@@ -137,7 +136,7 @@ function Code(props) {
|
|
|
137
136
|
return (jsx("input", __assign({}, otpInputProps, { className: clsx('code__input', inputCaretColorClass && "caret-color_".concat(inputCaretColorClass), inputFillClass && "fill_".concat(inputFillClass), inputFillHoverClass && "fill_hover_".concat(inputFillHoverClass), inputPlaceholderTextColorClass &&
|
|
138
137
|
"placeholder-text-color_".concat(inputPlaceholderTextColorClass), inputShapeClass && "code__input_shape_".concat(inputShapeClass), inputTextSizeClass && "text_size_".concat(inputTextSizeClass), inputTextColorClass && "text-color_".concat(inputTextColorClass), inputTextWeightClass && "text-weight_".concat(inputTextWeightClass), inputBorderWidthClass && "border-width_".concat(inputBorderWidthClass), inputBorderColorClass && "border-color_".concat(inputBorderColorClass), inputBorderColorHoverClass &&
|
|
139
138
|
"border-color_hover_".concat(inputBorderColorHoverClass), inputBorderFocusColorClass &&
|
|
140
|
-
"border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass), isSkeleton && "code__input_skeleton"), name: "code-".concat(index), autoComplete: "one-time-code", onBlur: function (event) {
|
|
139
|
+
"border-color_focus_".concat(inputBorderFocusColorClass), inputSizeClass && "code__input_size_".concat(inputSizeClass), widthClass && "width_".concat(widthClass), isSkeleton && "code__input_skeleton"), placeholder: inputPlaceholder, name: "code-".concat(index), autoComplete: "one-time-code", onBlur: function (event) {
|
|
141
140
|
onBlur && onBlur(event);
|
|
142
141
|
otpInputProps.onBlur(event);
|
|
143
142
|
}, onFocus: function (event) {
|
|
@@ -4,7 +4,7 @@ import { useRef, useMemo, useCallback, useEffect } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import Cookies from 'js-cookie';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
|
-
import { B as Button } from '../
|
|
7
|
+
import { B as Button } from '../Button_es_DTUagqgU.js';
|
|
8
8
|
import { T as Text } from '../Text_es_BfLRfj-5.js';
|
|
9
9
|
import 'lodash/camelCase';
|
|
10
10
|
import 'lodash/castArray';
|
|
@@ -16,7 +16,7 @@ import '../context/UIContext.js';
|
|
|
16
16
|
import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
17
17
|
import 'react-responsive';
|
|
18
18
|
import '../utils/setViewportProperty.js';
|
|
19
|
-
import '../
|
|
19
|
+
import '../Tooltip_es_B0nm9irO.js';
|
|
20
20
|
import '../hooks/useStyles/useStyles.js';
|
|
21
21
|
import 'lodash/maxBy';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
@@ -16,7 +16,7 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
16
16
|
import 'react-responsive';
|
|
17
17
|
import '../utils/setViewportProperty.js';
|
|
18
18
|
|
|
19
|
-
function
|
|
19
|
+
function Dadata(props) {
|
|
20
20
|
var delay = props.delay, input = props.input, inputProps = props.inputProps, meta = props.meta, token = props.token, setValue = props.setValue;
|
|
21
21
|
var dadataInputProps = useMemo(function () {
|
|
22
22
|
return __assign(__assign({}, inputProps), { className: clsx('react-dadata__input', meta.active && 'input_state_focus', meta.error &&
|
|
@@ -43,4 +43,4 @@ function DadataCustomInput(props) {
|
|
|
43
43
|
return jsx(Input, __assign({}, otherProps, { value: inputValue }));
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export {
|
|
46
|
+
export { Dadata };
|
|
@@ -4,9 +4,9 @@ import { useCallback } from 'react';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { DateTime } from 'luxon';
|
|
6
6
|
import { DATE_PERIOD_INTERVALS } from '@itcase/common';
|
|
7
|
-
import { D as DatePickerInput } from '../
|
|
7
|
+
import { D as DatePickerInput } from '../DatePicker_es_DEAcYDTL.js';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
|
-
import { b as ChipsGroup, C as Chips } from '../
|
|
9
|
+
import { b as ChipsGroup, C as Chips } from '../ChipsGroup_es_CXS0aeon.js';
|
|
10
10
|
import 'date-fns/locale';
|
|
11
11
|
import 'react-datepicker';
|
|
12
12
|
import '../hooks/useStyles/useStyles.js';
|
|
@@ -20,14 +20,14 @@ import '../hooks/useMediaQueries/useMediaQueries.js';
|
|
|
20
20
|
import 'react-responsive';
|
|
21
21
|
import '../utils/setViewportProperty.js';
|
|
22
22
|
import '../hooks/useStyles/styleAttributes.js';
|
|
23
|
-
import '../
|
|
24
|
-
import '../
|
|
23
|
+
import '../Button_es_DTUagqgU.js';
|
|
24
|
+
import '../Tooltip_es_B0nm9irO.js';
|
|
25
25
|
import '../Text_es_BfLRfj-5.js';
|
|
26
26
|
import 'react-inlinesvg';
|
|
27
27
|
import '../Link_es_DxtZLeKY.js';
|
|
28
28
|
import '../Loader_es_B2auu_rc.js';
|
|
29
29
|
import '../Input_es_CNduH28G.js';
|
|
30
|
-
import '../
|
|
30
|
+
import '../Label_es_DmDqs4Rc.js';
|
|
31
31
|
import '@itcase/icons/default';
|
|
32
32
|
import 'lodash/castArray';
|
|
33
33
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../
|
|
1
|
+
export { D as DatePickerInput, a as datePickerAppearance, d as datePickerConfig } from '../DatePicker_es_DEAcYDTL.js';
|
|
2
2
|
import '../tslib.es6_es_Bwu1Cn-t.js';
|
|
3
3
|
import 'react/jsx-runtime';
|
|
4
4
|
import 'react';
|
|
@@ -19,12 +19,12 @@ import '../utils/setViewportProperty.js';
|
|
|
19
19
|
import '../hooks/useStyles/useStyles.js';
|
|
20
20
|
import 'lodash/maxBy';
|
|
21
21
|
import '../hooks/useStyles/styleAttributes.js';
|
|
22
|
-
import '../
|
|
23
|
-
import '../
|
|
22
|
+
import '../Button_es_DTUagqgU.js';
|
|
23
|
+
import '../Tooltip_es_B0nm9irO.js';
|
|
24
24
|
import '../Text_es_BfLRfj-5.js';
|
|
25
25
|
import 'react-inlinesvg';
|
|
26
26
|
import '../Link_es_DxtZLeKY.js';
|
|
27
27
|
import '../Loader_es_B2auu_rc.js';
|
|
28
28
|
import '../Input_es_CNduH28G.js';
|
|
29
|
-
import '../
|
|
29
|
+
import '../Label_es_DmDqs4Rc.js';
|
|
30
30
|
import '@itcase/icons/default';
|