@itcase/ui 1.8.31 → 1.8.33
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_DRaNGlad.js → Avatar_cjs_kADy_b4o.js} +1 -1
- package/dist/{Avatar_es_Ck1RiTgB.js → Avatar_es_DbGpnL99.js} +1 -1
- package/dist/{Button_cjs_CnBP4mKv.js → Button_cjs_CW6ENTbm.js} +1 -1
- package/dist/{Button_es_WG0yV-rp.js → Button_es_DTUagqgU.js} +1 -1
- package/dist/{ChipsGroup_cjs_BCnPa9xv.js → ChipsGroup_cjs_DdWjvr_S.js} +1 -1
- package/dist/{ChipsGroup_es_1854brF_.js → ChipsGroup_es_CXS0aeon.js} +1 -1
- package/dist/{DatePicker_cjs_Cbv3ffoB.js → DatePicker_cjs_CJl9V32f.js} +11 -11
- package/dist/{DatePicker_es_DGck2HRu.js → DatePicker_es_C2Pi6aB-.js} +12 -12
- package/dist/{DropdownItem_cjs_C3BV7axh.js → DropdownItem_cjs_D-zoX7Ik.js} +1 -1
- package/dist/{DropdownItem_es_VDp5tKZr.js → DropdownItem_es_BMnIhUSe.js} +1 -1
- package/dist/{Input_cjs_BAVggtkk.js → Input_cjs_arr_wxD2.js} +21 -20
- package/dist/{Input_es_CNduH28G.js → Input_es_BW6cZThr.js} +21 -20
- package/dist/{Label_cjs_CqSZcFNk.js → Label_cjs_CZMMdwt5.js} +1 -1
- package/dist/{Label_es_s3M2-dON.js → Label_es_DmDqs4Rc.js} +1 -1
- package/dist/{Tooltip_cjs_BE4fABOp.js → Tooltip_cjs_DinScDnC.js} +4 -2
- package/dist/{Tooltip_es_BPMRrd2L.js → Tooltip_es_B0nm9irO.js} +4 -2
- 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 +5 -5
- 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 +68 -8
- package/dist/cjs/components/Choice.js +20 -15
- package/dist/cjs/components/Code.js +46 -58
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/{DadataHintField.js → Dadata.js} +3 -3
- package/dist/cjs/components/DatePeriod.js +6 -6
- package/dist/cjs/components/DatePicker.js +5 -5
- 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/Input.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 +4 -2
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Notification.js +5 -5
- package/dist/cjs/components/Pagination.js +91 -19
- 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 +28 -27
- package/dist/cjs/components/Segmented.js +1 -1
- 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 +6 -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/cjs/context/Notifications.js +6 -6
- 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 +6 -6
- 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 +67 -8
- package/dist/components/Choice.js +20 -15
- package/dist/components/Code.js +46 -58
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/{DadataHintField.js → Dadata.js} +3 -3
- package/dist/components/DatePeriod.js +6 -6
- package/dist/components/DatePicker.js +5 -5
- 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/Input.js +1 -1
- package/dist/components/InputPassword.js +1 -1
- package/dist/components/Label.js +2 -2
- package/dist/components/MenuItem.js +4 -2
- package/dist/components/Modal.js +1 -1
- package/dist/components/Notification.js +6 -6
- package/dist/components/Pagination.js +93 -21
- 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 +29 -28
- package/dist/components/Segmented.js +1 -1
- 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 +7 -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/context/Notifications.js +6 -6
- package/dist/css/components/Choice/Choice.css +16 -21
- 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/Input/Input.css +6 -0
- package/dist/css/components/Search/Search.css +0 -1
- package/dist/css/components/Search/css/search-input/search-input.css +0 -1
- package/dist/css/components/Tab/Tab.css +4 -0
- package/dist/css/styles/border-color/border-color_hover.css +3 -0
- 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/Cell/stories/__mock__/index.d.ts +0 -2
- package/dist/types/components/Choice/appearance/choiceError.d.ts +7 -0
- package/dist/types/components/Choice/stories/__mock__/index.d.ts +21 -4
- package/dist/types/components/Code/appearance/codeDefault.d.ts +6 -8
- package/dist/types/components/Code/appearance/codeDisabled.d.ts +7 -11
- package/dist/types/components/Code/appearance/codeError.d.ts +1 -0
- package/dist/types/components/Code/appearance/codeRequire.d.ts +7 -15
- package/dist/types/components/Code/appearance/codeSize.d.ts +2 -2
- package/dist/types/components/Code/appearance/codeStyle.d.ts +9 -9
- package/dist/types/components/Code/appearance/codeSuccess.d.ts +8 -7
- 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 +1 -1
- package/dist/types/components/DatePicker/appearance/datePickerStyle.d.ts +1 -1
- package/dist/types/components/Drawer/appearance/drawerSurface.d.ts +5 -5
- package/dist/types/components/Input/appearance/inputDefault.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputDisabled.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputError.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputRequire.d.ts +2 -2
- package/dist/types/components/Input/appearance/inputStyle.d.ts +7 -6
- package/dist/types/components/Input/appearance/inputSuccess.d.ts +2 -2
- package/dist/types/components/MenuItem/appearance/menuItemSurface.d.ts +2 -0
- package/dist/types/components/Pagination/appearance/paginationAccent.d.ts +21 -0
- package/dist/types/components/Pagination/appearance/paginationSize.d.ts +45 -0
- package/dist/types/components/Pagination/appearance/paginationStyle.d.ts +14 -0
- package/dist/types/components/Pagination/appearance/paginationSurface.d.ts +4 -12
- 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/searchDefault.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchDisabled.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchError.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchRequire.d.ts +1 -1
- package/dist/types/components/Search/appearance/searchStyle.d.ts +8 -7
- package/dist/types/components/Search/appearance/searchSuccess.d.ts +1 -1
- package/dist/types/components/Swiper/stories/__mock__/index.d.ts +2 -0
- package/package.json +2 -2
- 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/DadataHintField/DadataHintField.d.ts +0 -3
- package/dist/types/components/DadataHintField/index.d.ts +0 -1
|
@@ -5,7 +5,7 @@ var jsxRuntime = require('react/jsx-runtime');
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
|
-
var Tooltip = require('./
|
|
8
|
+
var Tooltip = require('./Tooltip_cjs_DinScDnC.js');
|
|
9
9
|
var Image = require('./Image_cjs_CCWqbNn4.js');
|
|
10
10
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
11
11
|
|
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } from 'react/jsx-runtime';
|
|
|
3
3
|
import { useMemo } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
6
|
-
import { I as Icon, B as Badge } from './
|
|
6
|
+
import { I as Icon, B as Badge } from './Tooltip_es_B0nm9irO.js';
|
|
7
7
|
import { I as Image } from './Image_es_DZUVp0FS.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
9
9
|
|
|
@@ -4,7 +4,7 @@ var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
|
4
4
|
var jsxRuntime = require('react/jsx-runtime');
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var clsx = require('clsx');
|
|
7
|
-
var Tooltip = require('./
|
|
7
|
+
var Tooltip = require('./Tooltip_cjs_DinScDnC.js');
|
|
8
8
|
var Link = require('./Link_cjs_DbRGq2Yk.js');
|
|
9
9
|
var Loader = require('./Loader_cjs_CCrbD8Em.js');
|
|
10
10
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
@@ -2,7 +2,7 @@ import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
|
2
2
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
|
-
import { I as Icon } from './
|
|
5
|
+
import { I as Icon } from './Tooltip_es_B0nm9irO.js';
|
|
6
6
|
import { a as LinkWrapper } from './Link_es_DxtZLeKY.js';
|
|
7
7
|
import { L as Loader } from './Loader_es_B2auu_rc.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Tooltip = require('./
|
|
9
|
+
var Tooltip = require('./Tooltip_cjs_DinScDnC.js');
|
|
10
10
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
11
11
|
|
|
12
12
|
var chipsAppearanceAccent = {
|
|
@@ -4,7 +4,7 @@ import { useMemo } 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, B as Badge } from './
|
|
7
|
+
import { I as Icon, B as Badge } from './Tooltip_es_B0nm9irO.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
9
9
|
|
|
10
10
|
var chipsAppearanceAccent = {
|
|
@@ -8,10 +8,10 @@ var locale = require('date-fns/locale');
|
|
|
8
8
|
var DatePicker = require('react-datepicker');
|
|
9
9
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
10
10
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
11
|
-
var Button = require('./
|
|
12
|
-
var Tooltip = require('./
|
|
13
|
-
var Input = require('./
|
|
14
|
-
var Label = require('./
|
|
11
|
+
var Button = require('./Button_cjs_CW6ENTbm.js');
|
|
12
|
+
var Tooltip = require('./Tooltip_cjs_DinScDnC.js');
|
|
13
|
+
var Input = require('./Input_cjs_arr_wxD2.js');
|
|
14
|
+
var Label = require('./Label_cjs_CZMMdwt5.js');
|
|
15
15
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
16
16
|
var _default = require('@itcase/icons/default');
|
|
17
17
|
|
|
@@ -21,16 +21,16 @@ var datePickerSize = {
|
|
|
21
21
|
daySize: 'xs',
|
|
22
22
|
dayTextSize: 'm',
|
|
23
23
|
iconFillSize: 24,
|
|
24
|
-
iconLeft: _default.
|
|
25
|
-
iconRight: _default.
|
|
24
|
+
iconLeft: _default.icons14.Arrow.ChevronLeft,
|
|
25
|
+
iconRight: _default.icons14.Arrow.ChevronRight,
|
|
26
26
|
},
|
|
27
27
|
sizeM: {
|
|
28
28
|
size: 'm',
|
|
29
29
|
daySize: 'xxl',
|
|
30
30
|
dayTextSize: 'm',
|
|
31
31
|
iconFillSize: 24,
|
|
32
|
-
iconLeft: _default.
|
|
33
|
-
iconRight: _default.
|
|
32
|
+
iconLeft: _default.icons14.Arrow.ChevronLeft,
|
|
33
|
+
iconRight: _default.icons14.Arrow.ChevronRight,
|
|
34
34
|
iconSize: 14,
|
|
35
35
|
monthTextSize: 'm',
|
|
36
36
|
yearTextSize: 'm',
|
|
@@ -40,8 +40,8 @@ var datePickerSize = {
|
|
|
40
40
|
daySize: 'xs',
|
|
41
41
|
dayTextSize: 'm',
|
|
42
42
|
iconFillSize: 24,
|
|
43
|
-
iconLeft: _default.
|
|
44
|
-
iconRight: _default.
|
|
43
|
+
iconLeft: _default.icons14.Arrow.ChevronLeft,
|
|
44
|
+
iconRight: _default.icons14.Arrow.ChevronRight,
|
|
45
45
|
},
|
|
46
46
|
};
|
|
47
47
|
|
|
@@ -56,13 +56,13 @@ var datePickerStyle = {
|
|
|
56
56
|
fill: 'none',
|
|
57
57
|
},
|
|
58
58
|
},
|
|
59
|
+
full: {},
|
|
59
60
|
ghost: {
|
|
60
61
|
inputProps: {
|
|
61
62
|
fill: 'none',
|
|
62
63
|
borderColor: 'none',
|
|
63
64
|
},
|
|
64
65
|
},
|
|
65
|
-
full: {},
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
var datePickerAppearanceSurface = {
|
|
@@ -6,12 +6,12 @@ import { ru } from 'date-fns/locale';
|
|
|
6
6
|
import DatePicker from 'react-datepicker';
|
|
7
7
|
import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
8
8
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
9
|
-
import { B as Button } from './
|
|
10
|
-
import { I as Icon } from './
|
|
11
|
-
import { I as Input } from './
|
|
12
|
-
import { L as Label } from './
|
|
9
|
+
import { B as Button } from './Button_es_DTUagqgU.js';
|
|
10
|
+
import { I as Icon } from './Tooltip_es_B0nm9irO.js';
|
|
11
|
+
import { I as Input } from './Input_es_BW6cZThr.js';
|
|
12
|
+
import { L as Label } from './Label_es_DmDqs4Rc.js';
|
|
13
13
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
14
|
-
import {
|
|
14
|
+
import { icons14 } from '@itcase/icons/default';
|
|
15
15
|
|
|
16
16
|
var datePickerSize = {
|
|
17
17
|
sizeL: {
|
|
@@ -19,16 +19,16 @@ var datePickerSize = {
|
|
|
19
19
|
daySize: 'xs',
|
|
20
20
|
dayTextSize: 'm',
|
|
21
21
|
iconFillSize: 24,
|
|
22
|
-
iconLeft:
|
|
23
|
-
iconRight:
|
|
22
|
+
iconLeft: icons14.Arrow.ChevronLeft,
|
|
23
|
+
iconRight: icons14.Arrow.ChevronRight,
|
|
24
24
|
},
|
|
25
25
|
sizeM: {
|
|
26
26
|
size: 'm',
|
|
27
27
|
daySize: 'xxl',
|
|
28
28
|
dayTextSize: 'm',
|
|
29
29
|
iconFillSize: 24,
|
|
30
|
-
iconLeft:
|
|
31
|
-
iconRight:
|
|
30
|
+
iconLeft: icons14.Arrow.ChevronLeft,
|
|
31
|
+
iconRight: icons14.Arrow.ChevronRight,
|
|
32
32
|
iconSize: 14,
|
|
33
33
|
monthTextSize: 'm',
|
|
34
34
|
yearTextSize: 'm',
|
|
@@ -38,8 +38,8 @@ var datePickerSize = {
|
|
|
38
38
|
daySize: 'xs',
|
|
39
39
|
dayTextSize: 'm',
|
|
40
40
|
iconFillSize: 24,
|
|
41
|
-
iconLeft:
|
|
42
|
-
iconRight:
|
|
41
|
+
iconLeft: icons14.Arrow.ChevronLeft,
|
|
42
|
+
iconRight: icons14.Arrow.ChevronRight,
|
|
43
43
|
},
|
|
44
44
|
};
|
|
45
45
|
|
|
@@ -54,13 +54,13 @@ var datePickerStyle = {
|
|
|
54
54
|
fill: 'none',
|
|
55
55
|
},
|
|
56
56
|
},
|
|
57
|
+
full: {},
|
|
57
58
|
ghost: {
|
|
58
59
|
inputProps: {
|
|
59
60
|
fill: 'none',
|
|
60
61
|
borderColor: 'none',
|
|
61
62
|
},
|
|
62
63
|
},
|
|
63
|
-
full: {},
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
var datePickerAppearanceSurface = {
|
|
@@ -7,7 +7,7 @@ var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDe
|
|
|
7
7
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
8
8
|
var tslib_es6 = require('./tslib.es6_cjs_CCZ3TN_7.js');
|
|
9
9
|
var Divider = require('./Divider_cjs_BmCJj3TN.js');
|
|
10
|
-
var Tooltip = require('./
|
|
10
|
+
var Tooltip = require('./Tooltip_cjs_DinScDnC.js');
|
|
11
11
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
12
12
|
|
|
13
13
|
function Dropdown(props) {
|
|
@@ -5,7 +5,7 @@ import { useDevicePropsGenerator } from './hooks/useDevicePropsGenerator/useDevi
|
|
|
5
5
|
import { useStyles } from './hooks/useStyles/useStyles.js';
|
|
6
6
|
import { _ as __assign } from './tslib.es6_es_Bwu1Cn-t.js';
|
|
7
7
|
import { D as Divider } from './Divider_es_kY-30pft.js';
|
|
8
|
-
import { I as Icon } from './
|
|
8
|
+
import { I as Icon } from './Tooltip_es_B0nm9irO.js';
|
|
9
9
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
10
10
|
|
|
11
11
|
function Dropdown(props) {
|
|
@@ -10,7 +10,7 @@ var inputAppearanceDefault = {
|
|
|
10
10
|
defaultPrimary: {
|
|
11
11
|
fill: 'surfaceSecondary',
|
|
12
12
|
borderColor: 'surfaceBorderTertiary',
|
|
13
|
-
|
|
13
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
14
14
|
textColor: 'surfaceTextPrimary',
|
|
15
15
|
textColorDisabled: 'surfaceTextDisabled',
|
|
16
16
|
caret: 'secondaryItemSecondary',
|
|
@@ -20,7 +20,7 @@ var inputAppearanceDefault = {
|
|
|
20
20
|
defaultSecondary: {
|
|
21
21
|
fill: 'surfacePrimary',
|
|
22
22
|
borderColor: 'surfaceBorderTertiary',
|
|
23
|
-
|
|
23
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
24
24
|
textColor: 'surfaceTextPrimary',
|
|
25
25
|
textColorDisabled: 'surfaceTextDisabled',
|
|
26
26
|
caret: 'secondaryItemSecondary',
|
|
@@ -34,7 +34,7 @@ var inputAppearanceDisabled = {
|
|
|
34
34
|
disabledPrimary: {
|
|
35
35
|
fill: 'surfaceFillDisabled',
|
|
36
36
|
borderColor: 'errorBorderQuaternary',
|
|
37
|
-
|
|
37
|
+
borderColorHover: 'errorBorderQuaternary',
|
|
38
38
|
textColor: 'surfaceTextQuaternary',
|
|
39
39
|
iconBeforeFill: 'errorItemQuaternary',
|
|
40
40
|
iconClearFill: 'errorItemPrimary',
|
|
@@ -43,7 +43,7 @@ var inputAppearanceDisabled = {
|
|
|
43
43
|
disabledSecondary: {
|
|
44
44
|
fill: 'surfaceSecondary',
|
|
45
45
|
borderColor: 'surfaceBorderTertiary',
|
|
46
|
-
|
|
46
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
47
47
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
48
48
|
iconClearFill: 'surfaceItemPrimary',
|
|
49
49
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
@@ -54,7 +54,7 @@ var inputAppearanceError = {
|
|
|
54
54
|
errorPrimary: {
|
|
55
55
|
fill: 'errorTertiary',
|
|
56
56
|
borderColor: 'errorBorderQuaternary',
|
|
57
|
-
|
|
57
|
+
borderColorHover: 'errorBorderQuaternary',
|
|
58
58
|
textColor: 'surfaceTextPrimary',
|
|
59
59
|
iconBeforeFill: 'errorItemQuaternary',
|
|
60
60
|
iconClearFill: 'errorItemPrimary',
|
|
@@ -63,7 +63,7 @@ var inputAppearanceError = {
|
|
|
63
63
|
errorSecondary: {
|
|
64
64
|
fill: 'errorSecondary',
|
|
65
65
|
borderColor: 'errorBorderTertiary',
|
|
66
|
-
|
|
66
|
+
borderColorHover: 'errorBorderQuaternary',
|
|
67
67
|
iconBeforeFill: 'errorItemQuaternary',
|
|
68
68
|
iconClearFill: 'errorItemPrimary',
|
|
69
69
|
placeholderTextColor: 'errorTextSecondary',
|
|
@@ -74,7 +74,7 @@ var inputAppearanceRequire = {
|
|
|
74
74
|
requirePrimary: {
|
|
75
75
|
fill: 'warningTertiary',
|
|
76
76
|
borderColor: 'warningBorderQuaternary',
|
|
77
|
-
|
|
77
|
+
borderColorHover: 'warningBorderQuaternary',
|
|
78
78
|
textColor: 'surfaceTextPrimary',
|
|
79
79
|
iconBeforeFill: 'warningItemQuaternary',
|
|
80
80
|
iconClearFill: 'warningItemPrimary',
|
|
@@ -83,7 +83,7 @@ var inputAppearanceRequire = {
|
|
|
83
83
|
requireSecondary: {
|
|
84
84
|
fill: 'surfaceSecondary',
|
|
85
85
|
borderColor: 'surfaceBorderTertiary',
|
|
86
|
-
|
|
86
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
87
87
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
88
88
|
iconClearFill: 'surfaceItemPrimary',
|
|
89
89
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
@@ -122,18 +122,17 @@ var inputAppearanceSize = {
|
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
var inputAppearanceStyle = {
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
},
|
|
128
|
-
ghost: {
|
|
129
|
-
fill: 'none',
|
|
130
|
-
borderWidth: '0',
|
|
125
|
+
solid: {
|
|
126
|
+
borderColor: 'none',
|
|
131
127
|
},
|
|
132
128
|
outlined: {
|
|
133
129
|
fill: 'none',
|
|
134
130
|
},
|
|
135
|
-
|
|
136
|
-
|
|
131
|
+
full: {},
|
|
132
|
+
ghost: {
|
|
133
|
+
fill: 'none',
|
|
134
|
+
borderColor: 'none',
|
|
135
|
+
borderColorHover: 'none',
|
|
137
136
|
},
|
|
138
137
|
};
|
|
139
138
|
|
|
@@ -141,7 +140,7 @@ var inputAppearanceSuccess = {
|
|
|
141
140
|
successPrimary: {
|
|
142
141
|
fill: 'successTertiary',
|
|
143
142
|
borderColor: 'successBorderQuaternary',
|
|
144
|
-
|
|
143
|
+
borderColorHover: 'successBorderQuaternary',
|
|
145
144
|
textColor: 'surfaceTextPrimary',
|
|
146
145
|
iconBeforeFill: 'successItemQuaternary',
|
|
147
146
|
iconClearFill: 'successItemPrimary',
|
|
@@ -150,7 +149,7 @@ var inputAppearanceSuccess = {
|
|
|
150
149
|
successSecondary: {
|
|
151
150
|
fill: 'surfaceSecondary',
|
|
152
151
|
borderColor: 'surfaceBorderTertiary',
|
|
153
|
-
|
|
152
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
154
153
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
155
154
|
iconClearFill: 'surfaceItemPrimary',
|
|
156
155
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
@@ -176,13 +175,15 @@ var Input = React.forwardRef(function Input(props, ref) {
|
|
|
176
175
|
}, {});
|
|
177
176
|
// const stateConfig = state && inputConfig.state && inputConfig.state[state]
|
|
178
177
|
var propsGenerator = useDevicePropsGenerator.useDevicePropsGenerator(props, appearanceConfig);
|
|
179
|
-
var fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorDisabledClass = propsGenerator.borderColorDisabledClass, borderWidthClass = propsGenerator.borderWidthClass, borderWidthDisabledClass = propsGenerator.borderWidthDisabledClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, placeholderTextColorDisabledClass = propsGenerator.placeholderTextColorDisabledClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
178
|
+
var fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorDisabledClass = propsGenerator.borderColorDisabledClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, borderWidthDisabledClass = propsGenerator.borderWidthDisabledClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, placeholderTextColorDisabledClass = propsGenerator.placeholderTextColorDisabledClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
180
179
|
return (jsxRuntime.jsx("input", { id: String(id), className: clsx(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), shapeClass && "input_shape_".concat(shapeClass), textColorClass && "text-color_".concat(textColorClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), sizeClass && "input_size_".concat(sizeClass), !isDisabled
|
|
181
180
|
? fillClass && "fill_".concat(fillClass)
|
|
182
181
|
: fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled
|
|
183
182
|
? borderWidthClass && "border-width_".concat(borderWidthClass)
|
|
184
183
|
: borderWidthDisabledClass &&
|
|
185
|
-
"border-width_disabled_".concat(borderWidthDisabledClass), !isDisabled
|
|
184
|
+
"border-width_disabled_".concat(borderWidthDisabledClass), !isDisabled && fillHoverClass ? "fill_hover_".concat(fillHoverClass) : null, !isDisabled && borderColorHoverClass
|
|
185
|
+
? "border-color_hover_".concat(borderColorHoverClass)
|
|
186
|
+
: null, !isDisabled
|
|
186
187
|
? borderColorClass && "border-color_".concat(borderColorClass)
|
|
187
188
|
: borderColorDisabledClass &&
|
|
188
189
|
"border-color_disabled_".concat(borderColorDisabledClass), !isDisabled
|
|
@@ -8,7 +8,7 @@ var inputAppearanceDefault = {
|
|
|
8
8
|
defaultPrimary: {
|
|
9
9
|
fill: 'surfaceSecondary',
|
|
10
10
|
borderColor: 'surfaceBorderTertiary',
|
|
11
|
-
|
|
11
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
12
12
|
textColor: 'surfaceTextPrimary',
|
|
13
13
|
textColorDisabled: 'surfaceTextDisabled',
|
|
14
14
|
caret: 'secondaryItemSecondary',
|
|
@@ -18,7 +18,7 @@ var inputAppearanceDefault = {
|
|
|
18
18
|
defaultSecondary: {
|
|
19
19
|
fill: 'surfacePrimary',
|
|
20
20
|
borderColor: 'surfaceBorderTertiary',
|
|
21
|
-
|
|
21
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
22
22
|
textColor: 'surfaceTextPrimary',
|
|
23
23
|
textColorDisabled: 'surfaceTextDisabled',
|
|
24
24
|
caret: 'secondaryItemSecondary',
|
|
@@ -32,7 +32,7 @@ var inputAppearanceDisabled = {
|
|
|
32
32
|
disabledPrimary: {
|
|
33
33
|
fill: 'surfaceFillDisabled',
|
|
34
34
|
borderColor: 'errorBorderQuaternary',
|
|
35
|
-
|
|
35
|
+
borderColorHover: 'errorBorderQuaternary',
|
|
36
36
|
textColor: 'surfaceTextQuaternary',
|
|
37
37
|
iconBeforeFill: 'errorItemQuaternary',
|
|
38
38
|
iconClearFill: 'errorItemPrimary',
|
|
@@ -41,7 +41,7 @@ var inputAppearanceDisabled = {
|
|
|
41
41
|
disabledSecondary: {
|
|
42
42
|
fill: 'surfaceSecondary',
|
|
43
43
|
borderColor: 'surfaceBorderTertiary',
|
|
44
|
-
|
|
44
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
45
45
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
46
46
|
iconClearFill: 'surfaceItemPrimary',
|
|
47
47
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
@@ -52,7 +52,7 @@ var inputAppearanceError = {
|
|
|
52
52
|
errorPrimary: {
|
|
53
53
|
fill: 'errorTertiary',
|
|
54
54
|
borderColor: 'errorBorderQuaternary',
|
|
55
|
-
|
|
55
|
+
borderColorHover: 'errorBorderQuaternary',
|
|
56
56
|
textColor: 'surfaceTextPrimary',
|
|
57
57
|
iconBeforeFill: 'errorItemQuaternary',
|
|
58
58
|
iconClearFill: 'errorItemPrimary',
|
|
@@ -61,7 +61,7 @@ var inputAppearanceError = {
|
|
|
61
61
|
errorSecondary: {
|
|
62
62
|
fill: 'errorSecondary',
|
|
63
63
|
borderColor: 'errorBorderTertiary',
|
|
64
|
-
|
|
64
|
+
borderColorHover: 'errorBorderQuaternary',
|
|
65
65
|
iconBeforeFill: 'errorItemQuaternary',
|
|
66
66
|
iconClearFill: 'errorItemPrimary',
|
|
67
67
|
placeholderTextColor: 'errorTextSecondary',
|
|
@@ -72,7 +72,7 @@ var inputAppearanceRequire = {
|
|
|
72
72
|
requirePrimary: {
|
|
73
73
|
fill: 'warningTertiary',
|
|
74
74
|
borderColor: 'warningBorderQuaternary',
|
|
75
|
-
|
|
75
|
+
borderColorHover: 'warningBorderQuaternary',
|
|
76
76
|
textColor: 'surfaceTextPrimary',
|
|
77
77
|
iconBeforeFill: 'warningItemQuaternary',
|
|
78
78
|
iconClearFill: 'warningItemPrimary',
|
|
@@ -81,7 +81,7 @@ var inputAppearanceRequire = {
|
|
|
81
81
|
requireSecondary: {
|
|
82
82
|
fill: 'surfaceSecondary',
|
|
83
83
|
borderColor: 'surfaceBorderTertiary',
|
|
84
|
-
|
|
84
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
85
85
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
86
86
|
iconClearFill: 'surfaceItemPrimary',
|
|
87
87
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
@@ -120,18 +120,17 @@ var inputAppearanceSize = {
|
|
|
120
120
|
};
|
|
121
121
|
|
|
122
122
|
var inputAppearanceStyle = {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
},
|
|
126
|
-
ghost: {
|
|
127
|
-
fill: 'none',
|
|
128
|
-
borderWidth: '0',
|
|
123
|
+
solid: {
|
|
124
|
+
borderColor: 'none',
|
|
129
125
|
},
|
|
130
126
|
outlined: {
|
|
131
127
|
fill: 'none',
|
|
132
128
|
},
|
|
133
|
-
|
|
134
|
-
|
|
129
|
+
full: {},
|
|
130
|
+
ghost: {
|
|
131
|
+
fill: 'none',
|
|
132
|
+
borderColor: 'none',
|
|
133
|
+
borderColorHover: 'none',
|
|
135
134
|
},
|
|
136
135
|
};
|
|
137
136
|
|
|
@@ -139,7 +138,7 @@ var inputAppearanceSuccess = {
|
|
|
139
138
|
successPrimary: {
|
|
140
139
|
fill: 'successTertiary',
|
|
141
140
|
borderColor: 'successBorderQuaternary',
|
|
142
|
-
|
|
141
|
+
borderColorHover: 'successBorderQuaternary',
|
|
143
142
|
textColor: 'surfaceTextPrimary',
|
|
144
143
|
iconBeforeFill: 'successItemQuaternary',
|
|
145
144
|
iconClearFill: 'successItemPrimary',
|
|
@@ -148,7 +147,7 @@ var inputAppearanceSuccess = {
|
|
|
148
147
|
successSecondary: {
|
|
149
148
|
fill: 'surfaceSecondary',
|
|
150
149
|
borderColor: 'surfaceBorderTertiary',
|
|
151
|
-
|
|
150
|
+
borderColorHover: 'surfaceBorderQuaternary',
|
|
152
151
|
iconBeforeFill: 'surfaceItemQuaternary',
|
|
153
152
|
iconClearFill: 'surfaceItemPrimary',
|
|
154
153
|
placeholderTextColor: 'surfaceTextSecondary',
|
|
@@ -174,13 +173,15 @@ var Input = React.forwardRef(function Input(props, ref) {
|
|
|
174
173
|
}, {});
|
|
175
174
|
// const stateConfig = state && inputConfig.state && inputConfig.state[state]
|
|
176
175
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
177
|
-
var fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorDisabledClass = propsGenerator.borderColorDisabledClass, borderWidthClass = propsGenerator.borderWidthClass, borderWidthDisabledClass = propsGenerator.borderWidthDisabledClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, placeholderTextColorDisabledClass = propsGenerator.placeholderTextColorDisabledClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
176
|
+
var fillClass = propsGenerator.fillClass, fillDisabledClass = propsGenerator.fillDisabledClass, fillHoverClass = propsGenerator.fillHoverClass, borderColorClass = propsGenerator.borderColorClass, borderColorDisabledClass = propsGenerator.borderColorDisabledClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderWidthClass = propsGenerator.borderWidthClass, borderWidthDisabledClass = propsGenerator.borderWidthDisabledClass, textColorClass = propsGenerator.textColorClass, textColorDisabledClass = propsGenerator.textColorDisabledClass, textSizeClass = propsGenerator.textSizeClass, textWeightClass = propsGenerator.textWeightClass, placeholderTextColorDisabledClass = propsGenerator.placeholderTextColorDisabledClass, caretClass = propsGenerator.caretClass, placeholderTextColorClass = propsGenerator.placeholderTextColorClass, shapeClass = propsGenerator.shapeClass, sizeClass = propsGenerator.sizeClass, widthClass = propsGenerator.widthClass;
|
|
178
177
|
return (jsx("input", { id: String(id), className: clsx(className, 'input', type === 'number' && 'input_type_number', (textSizeClass || textColorClass || textWeightClass) && 'text', caretClass && "caret-color_".concat(caretClass), shapeClass && "input_shape_".concat(shapeClass), textColorClass && "text-color_".concat(textColorClass), textSizeClass && "text_size_".concat(textSizeClass), textWeightClass && "text-weight_".concat(textWeightClass), widthClass && "width_".concat(widthClass), sizeClass && "input_size_".concat(sizeClass), !isDisabled
|
|
179
178
|
? fillClass && "fill_".concat(fillClass)
|
|
180
179
|
: fillDisabledClass && "fill_disabled_".concat(fillDisabledClass), !isDisabled
|
|
181
180
|
? borderWidthClass && "border-width_".concat(borderWidthClass)
|
|
182
181
|
: borderWidthDisabledClass &&
|
|
183
|
-
"border-width_disabled_".concat(borderWidthDisabledClass), !isDisabled
|
|
182
|
+
"border-width_disabled_".concat(borderWidthDisabledClass), !isDisabled && fillHoverClass ? "fill_hover_".concat(fillHoverClass) : null, !isDisabled && borderColorHoverClass
|
|
183
|
+
? "border-color_hover_".concat(borderColorHoverClass)
|
|
184
|
+
: null, !isDisabled
|
|
184
185
|
? borderColorClass && "border-color_".concat(borderColorClass)
|
|
185
186
|
: borderColorDisabledClass &&
|
|
186
187
|
"border-color_disabled_".concat(borderColorDisabledClass), !isDisabled
|
|
@@ -6,7 +6,7 @@ var React = require('react');
|
|
|
6
6
|
var clsx = require('clsx');
|
|
7
7
|
var useDevicePropsGenerator = require('./cjs/hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
8
8
|
var useStyles = require('./cjs/hooks/useStyles/useStyles.js');
|
|
9
|
-
var Tooltip = require('./
|
|
9
|
+
var Tooltip = require('./Tooltip_cjs_DinScDnC.js');
|
|
10
10
|
var Text = require('./Text_cjs_C9fOm0nd.js');
|
|
11
11
|
|
|
12
12
|
var labelAppearanceAccent = {
|
|
@@ -4,7 +4,7 @@ import { useRef, 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, T as Tooltip } from './
|
|
7
|
+
import { I as Icon, T as Tooltip } from './Tooltip_es_B0nm9irO.js';
|
|
8
8
|
import { T as Text } from './Text_es_BfLRfj-5.js';
|
|
9
9
|
|
|
10
10
|
var labelAppearanceAccent = {
|
|
@@ -615,7 +615,7 @@ var iconConfig = {
|
|
|
615
615
|
var Icon = React.forwardRef(function Icon(props, ref) {
|
|
616
616
|
// TODO: Tooltip doesn't work that anymore
|
|
617
617
|
// const [isTooltipVisible, setIsTooltipVisible] = useState(false)
|
|
618
|
-
var id = props.id, className = props.className, appearance = props.appearance, width = props.width, height = props.height, badgeClass = props.badgeClass, dataTour = props.dataTour, href = props.href, imageSrc = props.imageSrc, link = props.link, linkRel = props.linkRel, linkTarget = props.linkTarget, showTooltip = props.showTooltip, SvgImage = props.SvgImage, before = props.before, after = props.after, isActive = props.isActive, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave;
|
|
618
|
+
var id = props.id, className = props.className, appearance = props.appearance, width = props.width, height = props.height, isDisabled = props.isDisabled, badgeClass = props.badgeClass, dataTour = props.dataTour, href = props.href, imageSrc = props.imageSrc, link = props.link, linkRel = props.linkRel, linkTarget = props.linkTarget, showTooltip = props.showTooltip, SvgImage = props.SvgImage, before = props.before, after = props.after, isActive = props.isActive, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave;
|
|
619
619
|
var ImageComponent = React.useMemo(function () {
|
|
620
620
|
if (SvgImage) {
|
|
621
621
|
var sizes = {};
|
|
@@ -651,7 +651,9 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
651
651
|
: iconFillActiveClass && "icon_fill_active_".concat(iconFillActiveClass), !isActive
|
|
652
652
|
? iconFillHoverClass && "icon_fill_hover_".concat(iconFillHoverClass)
|
|
653
653
|
: iconFillActiveHoverClass &&
|
|
654
|
-
"icon_fill_active_hover_".concat(iconFillActiveHoverClass),
|
|
654
|
+
"icon_fill_active_hover_".concat(iconFillActiveHoverClass), isDisabled &&
|
|
655
|
+
iconFillDisabledClass &&
|
|
656
|
+
"icon_fill_disabled_".concat(iconFillDisabledClass), shapeClass && "icon_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), badgeValue && 'icon_with-badge', onClick && cursorClass && "cursor_".concat(cursorClass)), "data-tour": dataTour, ref: ref, style: iconStyles, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [before, jsxRuntime.jsxs(Link.LinkWrapper, { className: clsx((link || href || onClick) && 'cursor_type_pointer', link || href ? 'icon__link' : 'icon__item', iconSizeClass && "icon_size_".concat(iconSizeClass)), href: link || href, LinkComponent: "div", rel: linkRel, target: linkTarget, children: [ImageComponent, badgeValue && (jsxRuntime.jsx(Badge, { className: clsx(badgeClass, 'icon__badge'), appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), showTooltip && (jsxRuntime.jsx(Tooltip, { className: clsx(className, 'icon__tooltip', alignmentClass && "alignment_".concat(alignmentClass)), appearance: tooltipAppearance, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize }))] }), after] }));
|
|
655
657
|
});
|
|
656
658
|
var removeFillStroke = function (code) {
|
|
657
659
|
return code
|
|
@@ -613,7 +613,7 @@ var iconConfig = {
|
|
|
613
613
|
var Icon = React.forwardRef(function Icon(props, ref) {
|
|
614
614
|
// TODO: Tooltip doesn't work that anymore
|
|
615
615
|
// const [isTooltipVisible, setIsTooltipVisible] = useState(false)
|
|
616
|
-
var id = props.id, className = props.className, appearance = props.appearance, width = props.width, height = props.height, badgeClass = props.badgeClass, dataTour = props.dataTour, href = props.href, imageSrc = props.imageSrc, link = props.link, linkRel = props.linkRel, linkTarget = props.linkTarget, showTooltip = props.showTooltip, SvgImage = props.SvgImage, before = props.before, after = props.after, isActive = props.isActive, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave;
|
|
616
|
+
var id = props.id, className = props.className, appearance = props.appearance, width = props.width, height = props.height, isDisabled = props.isDisabled, badgeClass = props.badgeClass, dataTour = props.dataTour, href = props.href, imageSrc = props.imageSrc, link = props.link, linkRel = props.linkRel, linkTarget = props.linkTarget, showTooltip = props.showTooltip, SvgImage = props.SvgImage, before = props.before, after = props.after, isActive = props.isActive, onClick = props.onClick, onMouseEnter = props.onMouseEnter, onMouseLeave = props.onMouseLeave;
|
|
617
617
|
var ImageComponent = useMemo(function () {
|
|
618
618
|
if (SvgImage) {
|
|
619
619
|
var sizes = {};
|
|
@@ -649,7 +649,9 @@ var Icon = React.forwardRef(function Icon(props, ref) {
|
|
|
649
649
|
: iconFillActiveClass && "icon_fill_active_".concat(iconFillActiveClass), !isActive
|
|
650
650
|
? iconFillHoverClass && "icon_fill_hover_".concat(iconFillHoverClass)
|
|
651
651
|
: iconFillActiveHoverClass &&
|
|
652
|
-
"icon_fill_active_hover_".concat(iconFillActiveHoverClass),
|
|
652
|
+
"icon_fill_active_hover_".concat(iconFillActiveHoverClass), isDisabled &&
|
|
653
|
+
iconFillDisabledClass &&
|
|
654
|
+
"icon_fill_disabled_".concat(iconFillDisabledClass), shapeClass && "icon_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass), badgeValue && 'icon_with-badge', onClick && cursorClass && "cursor_".concat(cursorClass)), "data-tour": dataTour, ref: ref, style: iconStyles, onClick: onClick, onMouseEnter: onMouseEnter, onMouseLeave: onMouseLeave, children: [before, jsxs(LinkWrapper, { className: clsx((link || href || onClick) && 'cursor_type_pointer', link || href ? 'icon__link' : 'icon__item', iconSizeClass && "icon_size_".concat(iconSizeClass)), href: link || href, LinkComponent: "div", rel: linkRel, target: linkTarget, children: [ImageComponent, badgeValue && (jsx(Badge, { className: clsx(badgeClass, 'icon__badge'), appearance: "".concat(badgeAppearance, " ").concat(badgeAppearanceSize), size: badgeSize, textColor: badgeTextColor, textSize: badgeTextSize, shape: badgeShape, value: badgeValue })), showTooltip && (jsx(Tooltip, { className: clsx(className, 'icon__tooltip', alignmentClass && "alignment_".concat(alignmentClass)), appearance: tooltipAppearance, title: tooltipTitle, titleSize: tooltipTitleSize, text: tooltipText, textSize: tooltipTextSize }))] }), after] }));
|
|
653
655
|
});
|
|
654
656
|
var removeFillStroke = function (code) {
|
|
655
657
|
return code
|
|
@@ -7,7 +7,7 @@ var clsx = require('clsx');
|
|
|
7
7
|
var castArray = require('lodash/castArray');
|
|
8
8
|
var useDevicePropsGenerator = require('../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js');
|
|
9
9
|
var useStyles = require('../hooks/useStyles/useStyles.js');
|
|
10
|
-
var Tooltip = require('../../
|
|
10
|
+
var Tooltip = require('../../Tooltip_cjs_DinScDnC.js');
|
|
11
11
|
var Divider = require('../../Divider_cjs_BmCJj3TN.js');
|
|
12
12
|
var Text = require('../../Text_cjs_C9fOm0nd.js');
|
|
13
13
|
var _default = require('@itcase/icons/default');
|
|
@@ -31,48 +31,48 @@ var accordionAppearanceSize = {
|
|
|
31
31
|
titleTextSize: 'h3',
|
|
32
32
|
badgeAppearanceSize: 'sizeXS',
|
|
33
33
|
contentTextSize: 'xxl',
|
|
34
|
-
icon: _default.
|
|
34
|
+
icon: _default.icons16.Arrow.Chevron_Down,
|
|
35
35
|
},
|
|
36
36
|
sizeXL: {
|
|
37
37
|
size: 'xl',
|
|
38
38
|
titleTextSize: 'h3',
|
|
39
39
|
badgeAppearanceSize: 'sizeXS',
|
|
40
40
|
contentTextSize: 'l',
|
|
41
|
-
icon: _default.
|
|
41
|
+
icon: _default.icons16.Arrow.Chevron_Down,
|
|
42
42
|
},
|
|
43
43
|
sizeL: {
|
|
44
44
|
size: 'l',
|
|
45
45
|
titleTextSize: 'h4',
|
|
46
46
|
badgeAppearanceSize: 'sizeXS',
|
|
47
|
-
icon: _default.
|
|
47
|
+
icon: _default.icons16.Arrow.Chevron_Down,
|
|
48
48
|
},
|
|
49
49
|
sizeM: {
|
|
50
50
|
size: 'm',
|
|
51
51
|
titleTextSize: 'h5',
|
|
52
52
|
badgeAppearanceSize: 'sizeXS',
|
|
53
53
|
contentTextSize: 'm',
|
|
54
|
-
icon: _default.
|
|
54
|
+
icon: _default.icons16.Arrow.Chevron_Down,
|
|
55
55
|
},
|
|
56
56
|
sizeS: {
|
|
57
57
|
size: 's',
|
|
58
58
|
titleTextSize: 'h6',
|
|
59
59
|
badgeAppearanceSize: 'sizeXS',
|
|
60
60
|
contentTextSize: 's',
|
|
61
|
-
icon: _default.
|
|
61
|
+
icon: _default.icons16.Arrow.Chevron_Down,
|
|
62
62
|
},
|
|
63
63
|
sizeXS: {
|
|
64
64
|
size: 'xs',
|
|
65
65
|
titleTextSize: 'h6',
|
|
66
66
|
badgeAppearanceSize: 'sizeXS',
|
|
67
67
|
contentTextSize: 'xs',
|
|
68
|
-
icon: _default.
|
|
68
|
+
icon: _default.icons16.Arrow.Chevron_Down,
|
|
69
69
|
},
|
|
70
70
|
sizeXXS: {
|
|
71
71
|
size: 'xxs',
|
|
72
72
|
titleTextSize: 'h6',
|
|
73
73
|
badgeAppearanceSize: 'sizeXS',
|
|
74
74
|
contentTextSize: 'xs',
|
|
75
|
-
icon: _default.
|
|
75
|
+
icon: _default.icons16.Arrow.Chevron_Down,
|
|
76
76
|
},
|
|
77
77
|
};
|
|
78
78
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var Avatar = require('../../
|
|
3
|
+
var Avatar = require('../../Avatar_cjs_kADy_b4o.js');
|
|
4
4
|
require('../../tslib.es6_cjs_CCZ3TN_7.js');
|
|
5
5
|
require('react/jsx-runtime');
|
|
6
6
|
require('react');
|
|
@@ -16,7 +16,7 @@ require('../context/UIContext.js');
|
|
|
16
16
|
require('../hooks/useMediaQueries/useMediaQueries.js');
|
|
17
17
|
require('react-responsive');
|
|
18
18
|
require('../utils/setViewportProperty.js');
|
|
19
|
-
require('../../
|
|
19
|
+
require('../../Tooltip_cjs_DinScDnC.js');
|
|
20
20
|
require('../hooks/useStyles/useStyles.js');
|
|
21
21
|
require('lodash/maxBy');
|
|
22
22
|
require('../hooks/useStyles/styleAttributes.js');
|