@itcase/ui 1.4.2 → 1.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Badge-CGHosmYx.js → Badge-C68XnlcL.js} +3 -4
- package/dist/{Badge-BX4N91_C.js → Badge-C6SNRExV.js} +3 -4
- package/dist/{Button-BtAUGGPc.js → Button-Bsrw4D7p.js} +3 -3
- package/dist/{Button-HKkjJ38v.js → Button-WZZpsxTk.js} +3 -3
- package/dist/{Label-XTFwl1aq.js → Label-DF2a2Mlx.js} +2 -2
- package/dist/{Label-Dpeq55TV.js → Label-I9WNpCXa.js} +2 -2
- package/dist/{Loader-CsPvc-9g.js → Loader-D4_r7LML.js} +6 -6
- package/dist/{Loader-CBEbIRnd.js → Loader-DpYaDhe9.js} +6 -6
- package/dist/cjs/components/Badge.js +1 -1
- package/dist/cjs/components/Button.js +2 -2
- package/dist/cjs/components/Cell.js +1 -1
- package/dist/cjs/components/Checkbox.js +12 -10
- package/dist/cjs/components/Checkmark.js +36 -9
- package/dist/cjs/components/Chips.js +3 -3
- package/dist/cjs/components/Choice.js +19 -11
- package/dist/cjs/components/CookiesWarning.js +2 -2
- package/dist/cjs/components/DatePicker.js +3 -3
- package/dist/cjs/components/Label.js +1 -1
- package/dist/cjs/components/Loader.js +1 -1
- package/dist/cjs/components/MenuItem.js +39 -11
- package/dist/cjs/components/Modal.js +1 -1
- package/dist/cjs/components/Response.js +89 -104
- package/dist/cjs/components/Select.js +1 -1
- package/dist/cjs/components/Tab.js +1 -1
- package/dist/cjs/components/Tile.js +1 -1
- package/dist/components/Badge.js +1 -1
- package/dist/components/Button.js +2 -2
- package/dist/components/Cell.js +1 -1
- package/dist/components/Checkbox.js +12 -10
- package/dist/components/Checkmark.js +36 -9
- package/dist/components/Chips.js +3 -3
- package/dist/components/Choice.js +19 -11
- package/dist/components/CookiesWarning.js +2 -2
- package/dist/components/DatePicker.js +3 -3
- package/dist/components/Label.js +1 -1
- package/dist/components/Loader.js +1 -1
- package/dist/components/MenuItem.js +40 -8
- package/dist/components/Modal.js +1 -1
- package/dist/components/Response.js +89 -104
- package/dist/components/Select.js +1 -1
- package/dist/components/Tab.js +1 -1
- package/dist/components/Tile.js +1 -1
- package/dist/css/components/Badge/Badge.css +50 -0
- package/dist/css/components/Button/Button.css +24 -0
- package/dist/css/components/Checkbox/Checkbox.css +25 -2
- package/dist/css/components/Checkmark/Checkmark.css +6 -8
- package/dist/css/components/Label/Label.css +11 -13
- package/dist/css/components/Loader/Loader.css +40 -3
- package/dist/css/components/Response/Response.css +5 -12
- package/dist/css/components/Video/Video.css +0 -14
- package/dist/css/styles/svg-color/svg_path_fill.css +1 -2
- package/dist/stories/Cell.mdx +1 -17
- package/dist/types/components/Checkmark/appearance/checkmarkAccent.d.ts +9 -0
- package/dist/types/components/Checkmark/appearance/checkmarkDisabled.d.ts +9 -0
- package/dist/types/components/Checkmark/appearance/checkmarkStyle.d.ts +16 -0
- package/dist/types/components/Checkmark/appearance/checkmarkSurface.d.ts +11 -0
- package/dist/types/components/Flex/stories/args.d.ts +8 -8
- package/dist/types/components/Grid/stories/args.d.ts +5 -5
- package/dist/types/components/Group/stories/args.d.ts +5 -5
- package/dist/types/components/Loader/appearance/loaderAccent.d.ts +1 -1
- package/dist/types/components/Loader/appearance/loaderPrimary.d.ts +1 -1
- package/dist/types/components/Loader/appearance/loaderSecondary.d.ts +1 -1
- package/dist/types/components/Response/Response.interface.d.ts +12 -10
- package/dist/types/components/Tab/stories/args.d.ts +13 -13
- package/dist/types/types/componentProps/align.d.ts +1 -1
- package/dist/types/types/componentProps/alignDirection.d.ts +1 -1
- package/dist/types/types/componentProps/alignment.d.ts +1 -1
- package/dist/types/types/componentProps/appearanceKeys.d.ts +1 -1
- package/dist/types/types/componentProps/borderColor.d.ts +1 -1
- package/dist/types/types/componentProps/borderColorHover.d.ts +1 -1
- package/dist/types/types/componentProps/borderType.d.ts +1 -1
- package/dist/types/types/componentProps/borderWidth.d.ts +1 -1
- package/dist/types/types/componentProps/elevation.d.ts +1 -1
- package/dist/types/types/componentProps/fill.d.ts +1 -1
- package/dist/types/types/componentProps/fillGradient.d.ts +1 -1
- package/dist/types/types/componentProps/fillHover.d.ts +1 -1
- package/dist/types/types/componentProps/fillType.d.ts +1 -1
- package/dist/types/types/componentProps/flexAlign.d.ts +1 -1
- package/dist/types/types/componentProps/flexGrow.d.ts +1 -1
- package/dist/types/types/componentProps/flexJustifyContent.d.ts +1 -1
- package/dist/types/types/componentProps/flexWrap.d.ts +1 -1
- package/dist/types/types/componentProps/gridAlign.d.ts +1 -1
- package/dist/types/types/componentProps/gridAlignSelf.d.ts +1 -1
- package/dist/types/types/componentProps/gridJustifyItems.d.ts +1 -1
- package/dist/types/types/componentProps/gridJustifySelf.d.ts +1 -1
- package/dist/types/types/componentProps/height.d.ts +1 -1
- package/dist/types/types/componentProps/horizontalContentAlign.d.ts +1 -1
- package/dist/types/types/componentProps/horizontalResizeMode.d.ts +1 -1
- package/dist/types/types/componentProps/iconFillSize.d.ts +1 -1
- package/dist/types/types/componentProps/iconSize.d.ts +1 -1
- package/dist/types/types/componentProps/itemColor.d.ts +1 -1
- package/dist/types/types/componentProps/justifyContent.d.ts +1 -1
- package/dist/types/types/componentProps/overflow.d.ts +1 -1
- package/dist/types/types/componentProps/position.d.ts +1 -1
- package/dist/types/types/componentProps/resizeMode.d.ts +1 -1
- package/dist/types/types/componentProps/shape.d.ts +1 -1
- package/dist/types/types/componentProps/size.d.ts +1 -1
- package/dist/types/types/componentProps/sizeOption.d.ts +1 -1
- package/dist/types/types/componentProps/sizePX.d.ts +1 -1
- package/dist/types/types/componentProps/stacking.d.ts +1 -1
- package/dist/types/types/componentProps/state.d.ts +1 -1
- package/dist/types/types/componentProps/svgFill.d.ts +1 -1
- package/dist/types/types/componentProps/textAlign.d.ts +1 -1
- package/dist/types/types/componentProps/textGradient.d.ts +1 -1
- package/dist/types/types/componentProps/textSize.d.ts +1 -1
- package/dist/types/types/componentProps/textStyle.d.ts +1 -1
- package/dist/types/types/componentProps/textTag.d.ts +1 -1
- package/dist/types/types/componentProps/textWeight.d.ts +1 -1
- package/dist/types/types/componentProps/textWrap.d.ts +1 -1
- package/dist/types/types/componentProps/titleSize.d.ts +4 -2
- package/dist/types/types/componentProps/type.d.ts +1 -1
- package/dist/types/types/componentProps/underline.d.ts +1 -1
- package/dist/types/types/componentProps/verticalContentAlign.d.ts +1 -1
- package/dist/types/types/componentProps/verticalResizeMode.d.ts +1 -1
- package/dist/types/types/componentProps/width.d.ts +1 -1
- package/dist/types/types/componentProps/wrap.d.ts +1 -1
- package/dist/types/types/index.d.ts +0 -2
- package/package.json +12 -12
- package/dist/MenuItem-Cjlnmfwh.js +0 -40
- package/dist/MenuItem-PJkuGghn.js +0 -44
- package/dist/cjs/components/Menu.js +0 -45
- package/dist/components/Menu.js +0 -41
- package/dist/css/components/Menu/Menu.css +0 -65
- package/dist/stories/Checkbox.mdx +0 -23
- package/dist/stories/Checkmark.mdx +0 -15
- package/dist/stories/Chips.mdx +0 -31
- package/dist/stories/DevMode.mdx +0 -9
- package/dist/stories/Label.mdx +0 -31
- package/dist/stories/Loader.mdx +0 -31
- package/dist/stories/Message.mdx +0 -15
- package/dist/stories/Response.mdx +0 -23
- package/dist/stories/WithTooltip.mdx +0 -9
- package/dist/types/components/Button/stories/args.d.ts +0 -200
- package/dist/types/components/Chips/stories/args.d.ts +0 -45
- package/dist/types/components/Menu/Menu.appearance.d.ts +0 -2
- package/dist/types/components/Menu/Menu.d.ts +0 -4
- package/dist/types/components/Menu/Menu.interface.d.ts +0 -35
- package/dist/types/components/Menu/index.d.ts +0 -2
- package/dist/types/components/Response/stories/args.d.ts +0 -174
- package/dist/types/types/componentProps/captionPosition.d.ts +0 -3
- package/dist/types/types/componentProps/emojiSize.d.ts +0 -3
|
@@ -5,7 +5,7 @@ import clsx from 'clsx';
|
|
|
5
5
|
import SVG from 'react-inlinesvg';
|
|
6
6
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
7
7
|
import { useStyles } from '../hooks/useStyles/useStyles.js';
|
|
8
|
-
import { B as Button } from '../Button-
|
|
8
|
+
import { B as Button } from '../Button-Bsrw4D7p.js';
|
|
9
9
|
import { G as Group } from '../Group-DiMnEfge.js';
|
|
10
10
|
import { T as Text } from '../Text-C6NSmetx.js';
|
|
11
11
|
import 'lodash/camelCase';
|
|
@@ -21,49 +21,30 @@ import '../Icon-htF_V35Y.js';
|
|
|
21
21
|
import '../Link-BhJ5BdyS.js';
|
|
22
22
|
import '../Tooltip-BYgzNVYI.js';
|
|
23
23
|
import '../Title-Dck3eHNM.js';
|
|
24
|
-
import '../Loader-
|
|
24
|
+
import '../Loader-D4_r7LML.js';
|
|
25
25
|
|
|
26
|
-
var img$
|
|
26
|
+
var img$6 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M93.2275 101.842H84.0659C83.8263 99.1898 83.976 96.839 84.515 94.7895C85.1138 92.74 86.2216 90.8111 87.8383 89.0027C89.515 87.1341 91.7904 85.2051 94.6647 83.2159C96.5808 81.8898 97.9581 80.5637 98.7964 79.2375C99.6946 77.9114 100.144 76.4345 100.144 74.807C100.144 72.2753 99.2156 70.1957 97.3593 68.5682C95.503 66.9406 93.0778 66.1269 90.0838 66.1269C87.3892 66.1269 84.7246 66.9105 82.0898 68.4777C79.4551 69.9847 77.0299 72.3959 74.8144 75.7112L67 67.9352C70.0539 64.0774 73.5868 61.1237 77.5988 59.0742C81.6707 57.0247 85.9521 56 90.4431 56C94.5749 56 98.2575 56.8439 101.491 58.5317C104.725 60.1592 107.269 62.3896 109.126 65.2227C111.042 67.9955 112 71.1601 112 74.7166C112 78.0922 111.042 81.1062 109.126 83.7584C107.269 86.4107 104.455 88.8821 100.683 91.1727C97.7485 92.8605 95.7725 94.4881 94.7545 96.0553C93.7365 97.6226 93.2275 99.5515 93.2275 101.842ZM96.1916 115.767C96.1916 117.756 95.4731 119.474 94.0359 120.92C92.5988 122.307 90.8323 123 88.7365 123C86.6407 123 84.8743 122.307 83.4371 120.92C82 119.474 81.2814 117.756 81.2814 115.767C81.2814 113.717 82 111.999 83.4371 110.613C84.8743 109.166 86.6407 108.443 88.7365 108.443C90.8323 108.443 92.5988 109.166 94.0359 110.613C95.4731 111.999 96.1916 113.717 96.1916 115.767Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
27
27
|
|
|
28
|
-
var img$
|
|
28
|
+
var img$5 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23E00000'/%3e%3cpath d='M90.5027 104.581V45.2513' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M90.5027 134.749V129.721' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
29
29
|
|
|
30
|
-
var img$
|
|
30
|
+
var img$4 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M116.144 71.2426C118.487 68.8995 118.487 65.1005 116.144 62.7574C113.801 60.4142 110.002 60.4142 107.659 62.7574L89.4506 80.9654L71.2426 62.7574C68.8995 60.4142 65.1005 60.4142 62.7574 62.7574C60.4142 65.1005 60.4142 68.8995 62.7574 71.2426L80.9654 89.4506L62.7574 107.659C60.4142 110.002 60.4142 113.801 62.7574 116.144C65.1005 118.487 68.8995 118.487 71.2426 116.144L89.4506 97.9359L107.659 116.144C110.002 118.487 113.801 118.487 116.144 116.144C118.487 113.801 118.487 110.002 116.144 107.659L97.9359 89.4506L116.144 71.2426Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
31
31
|
|
|
32
|
-
var img$
|
|
32
|
+
var img$3 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath d='M128.811 123.436L110.56 105.386C115.694 99.2993 118.754 91.5088 118.754 82.9879C118.754 63.6507 102.929 48.0001 83.3768 48.0001C63.8246 47.9653 48 63.6159 48 82.9531C48 102.29 63.8246 117.941 83.3768 117.941C88.933 117.941 94.1727 116.689 98.8497 114.428C99.131 114.846 99.4475 115.263 99.8343 115.611L118.261 133.835C121.18 136.722 125.892 136.722 128.811 133.835C131.73 130.983 131.73 126.323 128.811 123.436ZM55.4551 82.9531C55.4551 67.6851 67.9742 55.3385 83.3768 55.3385C98.8145 55.3385 111.298 67.7198 111.298 82.9531C111.298 98.2211 98.7794 110.568 83.3768 110.568C67.9742 110.603 55.4551 98.2211 55.4551 82.9531Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
33
33
|
|
|
34
|
-
var img$
|
|
34
|
+
var img$2 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%2374B43D'/%3e%3cpath d='M61.3408 97.5419L82.9609 118.659L127.71 65.3632' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
35
35
|
|
|
36
|
-
var img$
|
|
37
|
-
|
|
38
|
-
var img$1 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%2374B43D'/%3e%3cpath d='M61.3408 97.5419L82.9609 118.659L127.71 65.3632' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
36
|
+
var img$1 = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23D9D9D9'/%3e%3cpath fill-rule='evenodd' clip-rule='evenodd' d='M85.7155 56.9042L54.1865 115.911C53.0219 118.09 54.5678 121.43 58.4708 121.43H121.529C125.432 121.43 126.978 118.09 125.814 115.911L94.2845 56.9043C93.5012 55.4392 91.8762 54.57 89.9998 54.57C88.1237 54.57 86.4986 55.439 85.7155 56.9042ZM89.9998 48C93.9317 48 98.1142 49.8644 100.253 53.8659L131.782 112.873C135.732 120.266 129.482 128 121.529 128H58.4708C50.5181 128 44.2675 120.266 48.2181 112.873L79.7471 53.866C81.8855 49.8645 86.0683 48 89.9998 48ZM90.0002 74.0886C91.8588 74.0886 93.3658 75.5593 93.3658 77.3736V92.8756C93.3658 94.6897 91.8588 96.1606 90.0002 96.1606C88.1411 96.1606 86.6345 94.6897 86.6345 92.8756V77.3736C86.6345 75.5593 88.1411 74.0886 90.0002 74.0886ZM93.3658 108.377C93.3658 106.563 91.8588 105.092 90.0002 105.092C88.1411 105.092 86.6345 106.563 86.6345 108.377V108.457C86.6345 110.271 88.1411 111.742 90.0002 111.742C91.8588 111.742 93.3658 110.271 93.3658 108.457V108.377Z' fill='%23747474'/%3e%3c/svg%3e";
|
|
39
37
|
|
|
40
38
|
var img = "data:image/svg+xml,%3csvg width='180' height='180' viewBox='0 0 180 180' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3ccircle cx='90' cy='90' r='90' fill='%23DE8806'/%3e%3cpath d='M90.5028 104.581V45.2513' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3cpath d='M90.5028 134.749V129.721' stroke='white' stroke-width='12' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e";
|
|
41
39
|
|
|
42
|
-
/* eslint-disable perfectionist/sort-objects */
|
|
43
40
|
var responseAppearance = {
|
|
44
|
-
|
|
45
|
-
messageTextColor: 'surfaceTextPrimary',
|
|
46
|
-
messageTextSize: 'm',
|
|
47
|
-
messageTextWeight: 400,
|
|
48
|
-
primaryButtonAppearance: 'surfaceTertiary',
|
|
49
|
-
primaryButtonLabelTextSize: 'l',
|
|
50
|
-
primaryButtonShape: 'rounded',
|
|
51
|
-
primaryButtonSize: 'xxl',
|
|
52
|
-
primaryButtonWidth: 'fill',
|
|
53
|
-
secondaryButtonAppearance: 'surfaceSecondary',
|
|
54
|
-
secondaryButtonLabelTextSize: 'l',
|
|
55
|
-
secondaryButtonShape: 'rounded',
|
|
56
|
-
secondaryButtonSize: 'xxl',
|
|
57
|
-
secondaryButtonWidth: 'fill',
|
|
58
|
-
svgSrc: img$7,
|
|
41
|
+
custom: {
|
|
59
42
|
titleTextColor: 'surfaceTextPrimary',
|
|
60
43
|
titleTextSize: 'xxl',
|
|
61
44
|
titleTextWeight: 400,
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
messageTextSize: 'm',
|
|
66
|
-
messageTextWeight: 400,
|
|
45
|
+
descTextColor: 'surfaceTextPrimary',
|
|
46
|
+
descTextSize: 'm',
|
|
47
|
+
descTextWeight: 400,
|
|
67
48
|
primaryButtonAppearance: 'accent',
|
|
68
49
|
primaryButtonLabelTextSize: 'l',
|
|
69
50
|
primaryButtonShape: 'rounded',
|
|
@@ -74,16 +55,15 @@ var responseAppearance = {
|
|
|
74
55
|
secondaryButtonShape: 'rounded',
|
|
75
56
|
secondaryButtonSize: 'xxl',
|
|
76
57
|
secondaryButtonWidth: 'fill',
|
|
58
|
+
},
|
|
59
|
+
error: {
|
|
77
60
|
titleTextColor: 'surfaceTextPrimary',
|
|
78
61
|
titleTextSize: 'xxl',
|
|
79
62
|
titleTextWeight: 400,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
messageTextSize: 'm',
|
|
85
|
-
messageTextWeight: 400,
|
|
86
|
-
primaryButtonAppearance: 'surfaceTertiary',
|
|
63
|
+
descTextColor: 'surfaceTextPrimary',
|
|
64
|
+
descTextSize: 'm',
|
|
65
|
+
descTextWeight: 400,
|
|
66
|
+
primaryButtonAppearance: 'secondary',
|
|
87
67
|
primaryButtonLabelTextSize: 'l',
|
|
88
68
|
primaryButtonShape: 'rounded',
|
|
89
69
|
primaryButtonSize: 'xxl',
|
|
@@ -93,15 +73,17 @@ var responseAppearance = {
|
|
|
93
73
|
secondaryButtonShape: 'rounded',
|
|
94
74
|
secondaryButtonSize: 'xxl',
|
|
95
75
|
secondaryButtonWidth: 'fill',
|
|
76
|
+
svgFill: 'surfacePrimary',
|
|
77
|
+
SvgImage: img$5,
|
|
78
|
+
},
|
|
79
|
+
success: {
|
|
96
80
|
titleTextColor: 'surfaceTextPrimary',
|
|
97
81
|
titleTextSize: 'xxl',
|
|
98
82
|
titleTextWeight: 400,
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
messageTextWeight: 400,
|
|
104
|
-
primaryButtonAppearance: 'secondary',
|
|
83
|
+
descTextColor: 'surfaceTextPrimary',
|
|
84
|
+
descTextSize: 'm',
|
|
85
|
+
descTextWeight: 400,
|
|
86
|
+
primaryButtonAppearance: 'accent',
|
|
105
87
|
primaryButtonLabelTextSize: 'l',
|
|
106
88
|
primaryButtonShape: 'rounded',
|
|
107
89
|
primaryButtonSize: 'xxl',
|
|
@@ -111,16 +93,17 @@ var responseAppearance = {
|
|
|
111
93
|
secondaryButtonShape: 'rounded',
|
|
112
94
|
secondaryButtonSize: 'xxl',
|
|
113
95
|
secondaryButtonWidth: 'fill',
|
|
114
|
-
|
|
96
|
+
svgFill: 'successPrimary',
|
|
97
|
+
SvgImage: img$2,
|
|
98
|
+
},
|
|
99
|
+
warning: {
|
|
115
100
|
titleTextColor: 'surfaceTextPrimary',
|
|
116
101
|
titleTextSize: 'xxl',
|
|
117
102
|
titleTextWeight: 400,
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
messageTextWeight: 400,
|
|
123
|
-
primaryButtonAppearance: 'surfaceTertiary',
|
|
103
|
+
descTextColor: 'surfaceTextPrimary',
|
|
104
|
+
descTextSize: 'm',
|
|
105
|
+
descTextWeight: 400,
|
|
106
|
+
primaryButtonAppearance: 'primary',
|
|
124
107
|
primaryButtonLabelTextSize: 'l',
|
|
125
108
|
primaryButtonShape: 'rounded',
|
|
126
109
|
primaryButtonSize: 'xxl',
|
|
@@ -130,15 +113,16 @@ var responseAppearance = {
|
|
|
130
113
|
secondaryButtonShape: 'rounded',
|
|
131
114
|
secondaryButtonSize: 'xxl',
|
|
132
115
|
secondaryButtonWidth: 'fill',
|
|
133
|
-
|
|
116
|
+
svgFill: 'warningPrimary',
|
|
117
|
+
SvgImage: img,
|
|
118
|
+
},
|
|
119
|
+
fail: {
|
|
134
120
|
titleTextColor: 'surfaceTextPrimary',
|
|
135
121
|
titleTextSize: 'xxl',
|
|
136
122
|
titleTextWeight: 400,
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
messageTextSize: 'm',
|
|
141
|
-
messageTextWeight: 400,
|
|
123
|
+
descTextColor: 'surfaceTextPrimary',
|
|
124
|
+
descTextSize: 'm',
|
|
125
|
+
descTextWeight: 400,
|
|
142
126
|
primaryButtonAppearance: 'surfaceTertiary',
|
|
143
127
|
primaryButtonLabelTextSize: 'l',
|
|
144
128
|
primaryButtonShape: 'rounded',
|
|
@@ -149,36 +133,36 @@ var responseAppearance = {
|
|
|
149
133
|
secondaryButtonShape: 'rounded',
|
|
150
134
|
secondaryButtonSize: 'xxl',
|
|
151
135
|
secondaryButtonWidth: 'fill',
|
|
152
|
-
|
|
136
|
+
svgFill: 'surfacePrimary',
|
|
137
|
+
SvgImage: img$4,
|
|
138
|
+
},
|
|
139
|
+
nothingFound: {
|
|
153
140
|
titleTextColor: 'surfaceTextPrimary',
|
|
154
141
|
titleTextSize: 'xxl',
|
|
155
142
|
titleTextWeight: 400,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
messageTextWeight: 400,
|
|
161
|
-
primaryButtonAppearance: 'success',
|
|
143
|
+
descTextColor: 'surfaceTextPrimary',
|
|
144
|
+
descTextSize: 'm',
|
|
145
|
+
descTextWeight: 400,
|
|
146
|
+
primaryButtonAppearance: 'surfaceTertiary',
|
|
162
147
|
primaryButtonLabelTextSize: 'l',
|
|
163
148
|
primaryButtonShape: 'rounded',
|
|
164
149
|
primaryButtonSize: 'xxl',
|
|
165
150
|
primaryButtonWidth: 'fill',
|
|
166
|
-
secondaryButtonAppearance: '
|
|
151
|
+
secondaryButtonAppearance: 'surfaceSecondary',
|
|
167
152
|
secondaryButtonLabelTextSize: 'l',
|
|
168
153
|
secondaryButtonShape: 'rounded',
|
|
169
154
|
secondaryButtonSize: 'xxl',
|
|
170
155
|
secondaryButtonWidth: 'fill',
|
|
171
|
-
svgFill: '
|
|
172
|
-
|
|
173
|
-
|
|
156
|
+
svgFill: 'surfacePrimary',
|
|
157
|
+
SvgImage: img$3,
|
|
158
|
+
},
|
|
159
|
+
unableLoadData: {
|
|
174
160
|
titleTextColor: 'surfaceTextPrimary',
|
|
175
161
|
titleTextSize: 'xxl',
|
|
176
162
|
titleTextWeight: 400,
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
messageTextSize: 'm',
|
|
181
|
-
messageTextWeight: 400,
|
|
163
|
+
descTextColor: 'surfaceTextPrimary',
|
|
164
|
+
descTextSize: 'm',
|
|
165
|
+
descTextWeight: 400,
|
|
182
166
|
primaryButtonAppearance: 'surfaceTertiary',
|
|
183
167
|
primaryButtonLabelTextSize: 'l',
|
|
184
168
|
primaryButtonShape: 'rounded',
|
|
@@ -189,18 +173,17 @@ var responseAppearance = {
|
|
|
189
173
|
secondaryButtonShape: 'rounded',
|
|
190
174
|
secondaryButtonSize: 'xxl',
|
|
191
175
|
secondaryButtonWidth: 'fill',
|
|
192
|
-
svgFill: '
|
|
193
|
-
|
|
194
|
-
|
|
176
|
+
svgFill: 'surfacePrimary',
|
|
177
|
+
SvgImage: img$1,
|
|
178
|
+
},
|
|
179
|
+
refresh: {
|
|
195
180
|
titleTextColor: 'surfaceTextPrimary',
|
|
196
181
|
titleTextSize: 'xxl',
|
|
197
182
|
titleTextWeight: 400,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
messageTextWeight: 400,
|
|
203
|
-
primaryButtonAppearance: 'accent',
|
|
183
|
+
descTextColor: 'surfaceTextPrimary',
|
|
184
|
+
descTextSize: 'm',
|
|
185
|
+
descTextWeight: 400,
|
|
186
|
+
primaryButtonAppearance: 'surfaceTertiary',
|
|
204
187
|
primaryButtonLabelTextSize: 'l',
|
|
205
188
|
primaryButtonShape: 'rounded',
|
|
206
189
|
primaryButtonSize: 'xxl',
|
|
@@ -210,16 +193,17 @@ var responseAppearance = {
|
|
|
210
193
|
secondaryButtonShape: 'rounded',
|
|
211
194
|
secondaryButtonSize: 'xxl',
|
|
212
195
|
secondaryButtonWidth: 'fill',
|
|
213
|
-
|
|
196
|
+
svgFill: 'surfacePrimary',
|
|
197
|
+
SvgImage: img$3,
|
|
198
|
+
},
|
|
199
|
+
confirm: {
|
|
214
200
|
titleTextColor: 'surfaceTextPrimary',
|
|
215
201
|
titleTextSize: 'xxl',
|
|
216
202
|
titleTextWeight: 400,
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
messageTextWeight: 400,
|
|
222
|
-
primaryButtonAppearance: 'primary',
|
|
203
|
+
descTextColor: 'surfaceTextPrimary',
|
|
204
|
+
descTextSize: 'm',
|
|
205
|
+
descTextWeight: 400,
|
|
206
|
+
primaryButtonAppearance: 'secondary',
|
|
223
207
|
primaryButtonLabelTextSize: 'l',
|
|
224
208
|
primaryButtonShape: 'rounded',
|
|
225
209
|
primaryButtonSize: 'xxl',
|
|
@@ -229,28 +213,29 @@ var responseAppearance = {
|
|
|
229
213
|
secondaryButtonShape: 'rounded',
|
|
230
214
|
secondaryButtonSize: 'xxl',
|
|
231
215
|
secondaryButtonWidth: 'fill',
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
titleTextSize: 'xxl',
|
|
235
|
-
titleTextWeight: 400,
|
|
216
|
+
svgFill: 'surfacePrimary',
|
|
217
|
+
SvgImage: img$6,
|
|
236
218
|
},
|
|
237
219
|
};
|
|
238
220
|
|
|
239
221
|
var responseConfig = {
|
|
240
222
|
appearance: responseAppearance,
|
|
241
|
-
setAppearance: function (
|
|
242
|
-
responseConfig.appearance =
|
|
223
|
+
setAppearance: function (appearanceConfig) {
|
|
224
|
+
responseConfig.appearance = appearanceConfig;
|
|
243
225
|
},
|
|
244
226
|
};
|
|
245
227
|
function Response(props) {
|
|
246
|
-
var
|
|
247
|
-
|
|
248
|
-
|
|
228
|
+
var className = props.className, appearance = props.appearance, width = props.width, height = props.height, title = props.title, desc = props.desc, primaryButton = props.primaryButton, secondaryButton = props.secondaryButton, before = props.before, after = props.after, onClickSecondaryButton = props.onClickSecondaryButton;
|
|
229
|
+
var appearanceConfig = appearance === null || appearance === void 0 ? void 0 : appearance.split(' ').reduce(function (resultAppearance, appearance) {
|
|
230
|
+
var _a;
|
|
231
|
+
return (__assign(__assign({}, resultAppearance), (_a = responseConfig.appearance) === null || _a === void 0 ? void 0 : _a[appearance]));
|
|
232
|
+
}, {});
|
|
249
233
|
var propsGenerator = useDevicePropsGenerator(props, appearanceConfig);
|
|
250
|
-
var borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass,
|
|
234
|
+
var fillClass = propsGenerator.fillClass, fillHoverClass = propsGenerator.fillHoverClass, titleTextColor = propsGenerator.titleTextColor, titleTextSize = propsGenerator.titleTextSize, titleTextWeight = propsGenerator.titleTextWeight, descTextColor = propsGenerator.descTextColor, descTextSize = propsGenerator.descTextSize, descTextWeight = propsGenerator.descTextWeight, borderColorClass = propsGenerator.borderColorClass, borderColorHoverClass = propsGenerator.borderColorHoverClass, borderTypeClass = propsGenerator.borderTypeClass, borderWidthClass = propsGenerator.borderWidthClass, textAlignClass = propsGenerator.textAlignClass, primaryButtonAfter = propsGenerator.primaryButtonAfter, primaryButtonAppearance = propsGenerator.primaryButtonAppearance, primaryButtonBefore = propsGenerator.primaryButtonBefore, primaryButtonFill = propsGenerator.primaryButtonFill, primaryButtonFillHover = propsGenerator.primaryButtonFillHover, primaryButtonLabel = propsGenerator.primaryButtonLabel, primaryButtonLabelTextColor = propsGenerator.primaryButtonLabelTextColor, primaryButtonLabelTextSize = propsGenerator.primaryButtonLabelTextSize, primaryButtonShape = propsGenerator.primaryButtonShape, primaryButtonSize = propsGenerator.primaryButtonSize, primaryButtonWidth = propsGenerator.primaryButtonWidth, secondaryButtonAfter = propsGenerator.secondaryButtonAfter, secondaryButtonAppearance = propsGenerator.secondaryButtonAppearance, secondaryButtonBefore = propsGenerator.secondaryButtonBefore, secondaryButtonFill = propsGenerator.secondaryButtonFill, secondaryButtonFillHover = propsGenerator.secondaryButtonFillHover, secondaryButtonLabel = propsGenerator.secondaryButtonLabel, secondaryButtonLabelTextColor = propsGenerator.secondaryButtonLabelTextColor, secondaryButtonLabelTextSize = propsGenerator.secondaryButtonLabelTextSize, secondaryButtonShape = propsGenerator.secondaryButtonShape, secondaryButtonSize = propsGenerator.secondaryButtonSize, secondaryButtonWidth = propsGenerator.secondaryButtonWidth, dataTestId = propsGenerator.dataTestId, dataTour = propsGenerator.dataTour, imageSrc = propsGenerator.imageSrc, shapeClass = propsGenerator.shapeClass, svgFillClass = propsGenerator.svgFillClass, SvgImage = propsGenerator.SvgImage, svgPathFillClass = propsGenerator.svgPathFillClass, svgSrc = propsGenerator.svgSrc, onClickPrimaryButton = propsGenerator.onClickPrimaryButton;
|
|
251
235
|
var ImageComponent = useMemo(function () {
|
|
252
|
-
var src = imageSrc ||
|
|
253
|
-
var Image = SvgImage
|
|
236
|
+
var src = imageSrc || svgSrc;
|
|
237
|
+
var Image = SvgImage;
|
|
238
|
+
console.log(src);
|
|
254
239
|
if (Image) {
|
|
255
240
|
var sizes = {};
|
|
256
241
|
if (width) {
|
|
@@ -263,7 +248,7 @@ function Response(props) {
|
|
|
263
248
|
}
|
|
264
249
|
if (src) {
|
|
265
250
|
if (src.endsWith('.svg') || src.startsWith('data:image/svg')) {
|
|
266
|
-
if (svgFillClass
|
|
251
|
+
if (svgFillClass) {
|
|
267
252
|
return jsx(SVG, { preProcessor: removeFillStroke, src: src });
|
|
268
253
|
}
|
|
269
254
|
else {
|
|
@@ -276,11 +261,11 @@ function Response(props) {
|
|
|
276
261
|
}, [imageSrc, appearanceConfig, SvgImage, width, height, svgFillClass]);
|
|
277
262
|
// @ts-expect-error
|
|
278
263
|
var _a = useStyles(props), responseStyles = _a.styles, wrapperStyles = _a.wrapper;
|
|
279
|
-
return (jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)
|
|
264
|
+
return (jsxs("div", { className: clsx(className, 'response', fillClass && "fill_".concat(fillClass), fillHoverClass && "fill_hover_".concat(fillHoverClass), shapeClass && "response_shape_".concat(shapeClass), borderColorClass && "border-color_".concat(borderColorClass), borderColorHoverClass && "border-color_hover_".concat(borderColorHoverClass), borderWidthClass && "border-width_".concat(borderWidthClass), borderTypeClass && "border_type_".concat(borderTypeClass)), "data-testid": dataTestId, "data-tour": dataTour, style: responseStyles, children: [before, jsxs("div", { className: "response__wrapper", style: wrapperStyles, children: [jsx("div", { className: clsx('response__image', svgFillClass && "svg_fill_".concat(svgFillClass), svgPathFillClass && "svg_path_fill_".concat(svgPathFillClass)), children: ImageComponent }), jsxs(Group, { className: clsx('response__desc', textAlignClass && "text-align_".concat(textAlignClass)), width: "fill", children: [title && (jsx(Text, { className: "response__title", size: titleTextSize || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextSize) || 'xxl', textColor: titleTextColor || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextColor), textWeight: titleTextWeight || (appearanceConfig === null || appearanceConfig === void 0 ? void 0 : appearanceConfig.titleTextWeight) || '400', children: title })), desc && (jsx(Text, { className: "response__desc", size: descTextSize, textColor: descTextColor, textWeight: descTextWeight, children: desc }))] })] }), (primaryButtonLabel ||
|
|
280
265
|
primaryButton ||
|
|
281
266
|
secondaryButtonLabel ||
|
|
282
267
|
secondaryButton ||
|
|
283
|
-
appearanceConfig) && (jsxs(Group, { className: "response__button", width: "fill", children: [primaryButtonLabel
|
|
268
|
+
appearanceConfig) && (jsxs(Group, { className: "response__button", width: "fill", children: [primaryButtonLabel ? (jsx(Button, { className: "response__button-item", appearance: primaryButtonAppearance, width: primaryButtonWidth || 'fill', size: primaryButtonSize, fill: primaryButtonFill, fillHover: primaryButtonFillHover, label: primaryButtonLabel, labelTextColor: primaryButtonLabelTextColor, labelTextSize: primaryButtonLabelTextSize, shape: primaryButtonShape, before: primaryButtonBefore, after: primaryButtonAfter, onClick: onClickPrimaryButton })) : (primaryButton), secondaryButtonLabel ? (jsx(Button, { className: "response__button-item", appearance: secondaryButtonAppearance, width: secondaryButtonWidth || 'fill', size: secondaryButtonSize, fill: secondaryButtonFill, fillHover: secondaryButtonFillHover, label: secondaryButtonLabel, labelTextColor: secondaryButtonLabelTextColor, labelTextSize: secondaryButtonLabelTextSize, shape: secondaryButtonShape, before: secondaryButtonBefore, after: secondaryButtonAfter, onClick: onClickSecondaryButton })) : (secondaryButton)] })), after] }));
|
|
284
269
|
}
|
|
285
270
|
var removeFillStroke = function (code) {
|
|
286
271
|
return code
|
|
@@ -7,7 +7,7 @@ import clsx from 'clsx';
|
|
|
7
7
|
import CreatableSelect from 'react-select/creatable';
|
|
8
8
|
import { useDevicePropsGenerator } from '../hooks/useDevicePropsGenerator/useDevicePropsGenerator.js';
|
|
9
9
|
import { T as Text } from '../Text-C6NSmetx.js';
|
|
10
|
-
import { B as Badge } from '../Badge-
|
|
10
|
+
import { B as Badge } from '../Badge-C68XnlcL.js';
|
|
11
11
|
import { G as Group } from '../Group-DiMnEfge.js';
|
|
12
12
|
import { D as Divider } from '../Divider-BQcBkzt1.js';
|
|
13
13
|
import 'react-inlinesvg';
|
package/dist/components/Tab.js
CHANGED
|
@@ -4,7 +4,7 @@ import React 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 { B as Badge } from '../Badge-
|
|
7
|
+
import { B as Badge } from '../Badge-C68XnlcL.js';
|
|
8
8
|
import { D as Divider } from '../Divider-BQcBkzt1.js';
|
|
9
9
|
import { a as Link } from '../Link-BhJ5BdyS.js';
|
|
10
10
|
import { T as Text } from '../Text-C6NSmetx.js';
|
package/dist/components/Tile.js
CHANGED
|
@@ -3,7 +3,7 @@ import { jsx, jsxs } 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 { B as Badge } from '../Badge-
|
|
6
|
+
import { B as Badge } from '../Badge-C68XnlcL.js';
|
|
7
7
|
import { T as Text } from '../Text-C6NSmetx.js';
|
|
8
8
|
import { T as Title } from '../Title-Dck3eHNM.js';
|
|
9
9
|
import 'react';
|
|
@@ -86,3 +86,53 @@
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
+
:root {
|
|
90
|
+
--badge-size-xxl-padding: 1m 1.5m;
|
|
91
|
+
--badge-size-xxl-min-width: 40px;
|
|
92
|
+
--badge-size-xxl-min-height: 40px;
|
|
93
|
+
--badge-size-xxl-gap: 5px;
|
|
94
|
+
--badge-type-icon-size-xxl-max-width: 40px;
|
|
95
|
+
--badge-type-icon-size-xxl-max-height: 40px;
|
|
96
|
+
|
|
97
|
+
--badge-size-xl-padding: 0.5m 1.25m;
|
|
98
|
+
--badge-size-xl-min-width: 32px;
|
|
99
|
+
--badge-size-xl-min-height: 32px;
|
|
100
|
+
--badge-size-xl-gap: 6px;
|
|
101
|
+
--badge-type-icon-size-xl-max-width: 32px;
|
|
102
|
+
--badge-type-icon-size-xl-max-height: 32px;
|
|
103
|
+
|
|
104
|
+
--badge-size-l-padding: 0.5m 1m;
|
|
105
|
+
--badge-size-l-min-width: 28px;
|
|
106
|
+
--badge-size-l-min-height: 28px;
|
|
107
|
+
--badge-size-l-gap: 4px;
|
|
108
|
+
--badge-type-icon-size-l-max-width: 28px;
|
|
109
|
+
--badge-type-icon-size-l-max-height: 28px;
|
|
110
|
+
|
|
111
|
+
--badge-size-m-padding: 0 0.75m;
|
|
112
|
+
--badge-size-m-min-width: 24px;
|
|
113
|
+
--badge-size-m-min-height: 24px;
|
|
114
|
+
--badge-size-m-gap: 2px;
|
|
115
|
+
--badge-type-icon-size-m-max-width: 24px;
|
|
116
|
+
--badge-type-icon-size-m-max-height: 24px;
|
|
117
|
+
|
|
118
|
+
--badge-size-s-padding: 0 0.5m;
|
|
119
|
+
--badge-size-s-min-width: 20px;
|
|
120
|
+
--badge-size-s-min-height: 20px;
|
|
121
|
+
--badge-size-s-gap: 0px;
|
|
122
|
+
--badge-type-icon-size-s-max-width: 20px;
|
|
123
|
+
--badge-type-icon-size-s-max-height: 20px;
|
|
124
|
+
|
|
125
|
+
--badge-size-xs-padding: 0 0.25m;
|
|
126
|
+
--badge-size-xs-min-width: 16px;
|
|
127
|
+
--badge-size-xs-min-height: 16px;
|
|
128
|
+
--badge-size-xs-gap: 2px;
|
|
129
|
+
--badge-type-icon-size-xs-max-width: 16px;
|
|
130
|
+
--badge-type-icon-size-xs-max-height: 16px;
|
|
131
|
+
|
|
132
|
+
--badge-size-xxs-padding: 0 0.5m;
|
|
133
|
+
--badge-size-xxs-min-width: 12px;
|
|
134
|
+
--badge-size-xxs-min-height: 12px;
|
|
135
|
+
--badge-size-xxs-gap: 0px;
|
|
136
|
+
--badge-type-icon-size-xxs-max-width: 12px;
|
|
137
|
+
--badge-type-icon-size-xxs-max-height: 12px;
|
|
138
|
+
}
|
|
@@ -63,6 +63,30 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
|
+
.button {
|
|
67
|
+
&&_skeleton {
|
|
68
|
+
background-size: 200% !important;
|
|
69
|
+
border: none;
|
|
70
|
+
animation: buttonSkeleton 3s infinite linear !important;
|
|
71
|
+
background-image: linear-gradient(
|
|
72
|
+
90deg,
|
|
73
|
+
var(--color-surface-secondary),
|
|
74
|
+
var(--color-surface-tertiary),
|
|
75
|
+
var(--color-surface-secondary)
|
|
76
|
+
) !important;
|
|
77
|
+
& * {
|
|
78
|
+
opacity: 0%;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
@keyframes buttonSkeleton {
|
|
83
|
+
0% {
|
|
84
|
+
background-position: 200%;
|
|
85
|
+
}
|
|
86
|
+
100% {
|
|
87
|
+
background-position: -200%;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
66
90
|
.button {
|
|
67
91
|
@each $size in xxs, xs, s, m, l, xl, xxl {
|
|
68
92
|
&_size_$(size) {
|
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
display: grid;
|
|
3
3
|
grid-template-columns: auto 1fr;
|
|
4
4
|
grid-template-rows: auto auto;
|
|
5
|
-
|
|
6
|
-
row-gap: var(--checkbox-row-gap, 0);
|
|
5
|
+
gap: var(--checkbox-row-gap, 0) var(--checkbox-column-gap, 4px);
|
|
7
6
|
&__item {
|
|
8
7
|
min-width: 16px;
|
|
9
8
|
min-height: 16px;
|
|
@@ -58,6 +57,30 @@
|
|
|
58
57
|
}
|
|
59
58
|
}
|
|
60
59
|
}
|
|
60
|
+
.checkbox {
|
|
61
|
+
&&_skeleton {
|
|
62
|
+
background-size: 200% !important;
|
|
63
|
+
border: none;
|
|
64
|
+
animation: checkboxSkeleton 3s infinite linear !important;
|
|
65
|
+
background-image: linear-gradient(
|
|
66
|
+
90deg,
|
|
67
|
+
var(--color-surface-secondary),
|
|
68
|
+
var(--color-surface-tertiary),
|
|
69
|
+
var(--color-surface-secondary)
|
|
70
|
+
) !important;
|
|
71
|
+
& * {
|
|
72
|
+
opacity: 0%;
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
@keyframes checkboxSkeleton {
|
|
77
|
+
0% {
|
|
78
|
+
background-position: 200%;
|
|
79
|
+
}
|
|
80
|
+
100% {
|
|
81
|
+
background-position: -200%;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
61
84
|
.checkbox {
|
|
62
85
|
&_shape {
|
|
63
86
|
&_rounded {
|
|
@@ -10,19 +10,17 @@
|
|
|
10
10
|
display: flex;
|
|
11
11
|
justify-content: center;
|
|
12
12
|
align-items: center;
|
|
13
|
-
& svg {
|
|
14
|
-
transform: scale(0.65);
|
|
15
|
-
}
|
|
16
13
|
}
|
|
17
14
|
}
|
|
18
15
|
.checkmark {
|
|
19
16
|
&_size {
|
|
20
|
-
@each $size in
|
|
17
|
+
@each $size, $scale in (xxl, xl, l, m, s, xs, xxs), (1.2, 1, 0.8, 0.7, 0.7, 0.7, 0.8) {
|
|
21
18
|
&_$(size) {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
19
|
+
width: var(--checkmark-$(size)-width);
|
|
20
|
+
height: var(--checkmark-$(size)-height);
|
|
21
|
+
& svg {
|
|
22
|
+
transform: scale($(scale));
|
|
23
|
+
}
|
|
26
24
|
}
|
|
27
25
|
}
|
|
28
26
|
}
|
|
@@ -12,19 +12,17 @@
|
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
.label {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
color: transparent;
|
|
27
|
-
}
|
|
15
|
+
&_skeleton {
|
|
16
|
+
background-image: linear-gradient(
|
|
17
|
+
90deg,
|
|
18
|
+
var(--color-surface-secondary),
|
|
19
|
+
var(--color-surface-tertiary),
|
|
20
|
+
var(--color-surface-secondary)
|
|
21
|
+
);
|
|
22
|
+
background-size: 200%;
|
|
23
|
+
animation: labelSkeleton 3s infinite linear;
|
|
24
|
+
^&__label {
|
|
25
|
+
color: transparent;
|
|
28
26
|
}
|
|
29
27
|
}
|
|
30
28
|
}
|