1mpacto-react-ui 2.0.20 → 2.0.22
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/assets/_mixins.scss +72 -72
- package/dist/assets/icons/arrow-narrow-down.svg +3 -3
- package/dist/assets/style.css +1 -1
- package/dist/components/Alert/index.cjs +1 -1
- package/dist/components/Alert/index.mjs +40 -40
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +3 -3
- package/dist/components/Breadcrumbs/Breadcrumbs.mjs +43 -43
- package/dist/components/Button/Button.cjs +12 -12
- package/dist/components/Button/Button.config.cjs +1 -1
- package/dist/components/Button/Button.config.mjs +3 -1
- package/dist/components/Button/Button.mjs +24 -24
- package/dist/components/Button/style.module.scss.cjs +1 -1
- package/dist/components/Button/style.module.scss.mjs +57 -55
- package/dist/components/ButtonIcon/ButtonIcon.cjs +12 -12
- package/dist/components/ButtonIcon/ButtonIcon.mjs +20 -20
- package/dist/components/ButtonPopover/ButtonPopover.cjs +1 -1
- package/dist/components/ButtonPopover/ButtonPopover.mjs +28 -31
- package/dist/components/Calendar/Calendar.cjs +1 -1
- package/dist/components/Calendar/Calendar.mjs +98 -100
- package/dist/components/Calendar/CalendarMonth.cjs +1 -1
- package/dist/components/Calendar/CalendarMonth.mjs +41 -42
- package/dist/components/Calendar/CalendarRange.cjs +1 -1
- package/dist/components/Calendar/CalendarRange.mjs +59 -61
- package/dist/components/Calendar/CalendarYear.cjs +3 -3
- package/dist/components/Calendar/CalendarYear.mjs +39 -40
- package/dist/components/Chart/DoughnutChart.cjs +1 -1
- package/dist/components/Chart/DoughnutChart.mjs +93 -96
- package/dist/components/Chart/GradientBarChart.cjs +1 -1
- package/dist/components/Chart/GradientBarChart.mjs +80 -81
- package/dist/components/Chart/GradientLineChart.cjs +1 -1
- package/dist/components/Chart/GradientLineChart.mjs +50 -51
- package/dist/components/Chart/LineChart.cjs +1 -1
- package/dist/components/Chart/LineChart.mjs +23 -23
- package/dist/components/Chart/PieChart.cjs +1 -1
- package/dist/components/Chart/PieChart.mjs +45 -48
- package/dist/components/Collapse/Collapse.cjs +1 -1
- package/dist/components/Collapse/Collapse.mjs +23 -24
- package/dist/components/DatePicker/DatePicker.cjs +1 -1
- package/dist/components/DatePicker/DatePicker.mjs +86 -89
- package/dist/components/DatePicker/DateRangePicker.cjs +1 -1
- package/dist/components/DatePicker/DateRangePicker.mjs +91 -92
- package/dist/components/DatePicker/FilterDate.cjs +1 -1
- package/dist/components/DatePicker/FilterDate.mjs +107 -110
- package/dist/components/DatePicker/MonthYearPicker.cjs +1 -1
- package/dist/components/DatePicker/MonthYearPicker.mjs +51 -53
- package/dist/components/FilterContainer/FilterContainer.cjs +1 -1
- package/dist/components/FilterContainer/FilterContainer.mjs +27 -27
- package/dist/components/Input/InputFloatingInner.cjs +5 -5
- package/dist/components/Input/InputFloatingInner.mjs +24 -25
- package/dist/components/NumberFormat/NumberFormat.cjs +1 -1
- package/dist/components/NumberFormat/NumberFormat.mjs +12 -13
- package/dist/components/Pagination/Pagination.cjs +2 -2
- package/dist/components/Pagination/Pagination.mjs +76 -80
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.cjs +1 -1
- package/dist/components/SelectDropdownContainer/SelectDropdownContainer.mjs +98 -102
- package/dist/components/Sidebar/ItemSidebar.cjs +8 -8
- package/dist/components/Sidebar/ItemSidebar.mjs +71 -72
- package/dist/components/Sidebar/Sidebar.cjs +1 -1
- package/dist/components/Sidebar/Sidebar.mjs +65 -68
- package/dist/components/Slider/Slider.cjs +1 -0
- package/dist/components/Slider/Slider.mjs +61 -0
- package/dist/components/Slider/style.module.scss.cjs +1 -0
- package/dist/components/Slider/style.module.scss.mjs +14 -0
- package/dist/components/Step/Step.cjs +5 -5
- package/dist/components/Step/Step.mjs +52 -52
- package/dist/components/Table/Table.cjs +3 -3
- package/dist/components/Table/Table.mjs +275 -298
- package/dist/components/Table/TableSubMobile.cjs +1 -1
- package/dist/components/Table/TableSubMobile.mjs +32 -35
- package/dist/components/Tabs/Tabs.cjs +8 -8
- package/dist/components/Tabs/Tabs.mjs +66 -70
- package/dist/components/Textarea/Textarea.cjs +7 -7
- package/dist/components/Textarea/Textarea.mjs +47 -50
- package/dist/components/Textarea/TextareaFloatingInner.cjs +6 -6
- package/dist/components/Textarea/TextareaFloatingInner.mjs +56 -61
- package/dist/components/Textarea/TextareaInnerLabel.cjs +6 -6
- package/dist/components/Textarea/TextareaInnerLabel.mjs +47 -50
- package/dist/components/TimeRange/TimeRange.cjs +1 -1
- package/dist/components/TimeRange/TimeRange.mjs +88 -91
- package/dist/components/Tooltip/Tooltip.cjs +1 -1
- package/dist/components/Tooltip/Tooltip.mjs +44 -46
- package/dist/components/Upload/UploadFile.cjs +1 -1
- package/dist/components/Upload/UploadFile.mjs +50 -54
- package/dist/components/Upload/UploadImage.cjs +12 -12
- package/dist/components/Upload/UploadImage.mjs +73 -79
- package/dist/components/Upload/UploadMultipleFile.cjs +1 -1
- package/dist/components/Upload/UploadMultipleFile.mjs +61 -62
- package/dist/components/Virtualization/ListVirtualization.cjs +1 -1
- package/dist/components/Virtualization/ListVirtualization.mjs +52 -55
- package/dist/components/Virtualization/TableVirtualization.cjs +1 -1
- package/dist/components/Virtualization/TableVirtualization.mjs +56 -59
- package/dist/config/components/tinymce.cjs +2 -2
- package/dist/config/components/tinymce.mjs +3 -3
- package/dist/hooks/useCountdown.cjs +1 -1
- package/dist/hooks/useCountdown.mjs +15 -15
- package/dist/hooks/useDebounce.cjs +1 -1
- package/dist/hooks/useDebounce.mjs +19 -19
- package/dist/hooks/useOtpInput.cjs +1 -1
- package/dist/hooks/useOtpInput.mjs +47 -51
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +48 -46
- package/dist/package.json.cjs +1 -1
- package/dist/package.json.d.ts +129 -128
- package/dist/package.json.mjs +1 -1
- package/dist/src/components/Button/Button.config.d.ts +2 -0
- package/dist/src/components/Slider/Slider.d.ts +3 -0
- package/dist/src/components/Slider/Slider.stories.d.ts +6 -0
- package/dist/src/components/index.d.ts +4 -2
- package/dist/src/interfaces/components/Button/index.d.ts +1 -1
- package/dist/src/interfaces/components/Slider/index.d.ts +51 -0
- package/dist/types-external/table.d.ts +15 -15
- package/dist/utils/common.cjs +1 -1
- package/dist/utils/common.mjs +172 -173
- package/package.json +128 -128
package/dist/assets/_mixins.scss
CHANGED
|
@@ -1,73 +1,73 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
|
-
@use 'sass:list';
|
|
3
|
-
|
|
4
|
-
@mixin ring($width: 1px, $color: 'transparent', $inset: 0, $important: 0) {
|
|
5
|
-
$ring-style: 0 0 0 $width $color;
|
|
6
|
-
$shadow: if($inset==1, inset $ring-style, $ring-style);
|
|
7
|
-
|
|
8
|
-
box-shadow: if($important==1, $shadow !important, $shadow);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
@mixin ring-left($width: 1px, $color: 'currentColor', $inset: 0, $important: 0) {
|
|
12
|
-
$ring-style: (-$width) 0 0 $color;
|
|
13
|
-
$shadow: if($inset==1, inset $ring-style, $ring-style);
|
|
14
|
-
|
|
15
|
-
box-shadow: if($important==1, $shadow !important, $shadow);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
@mixin ring-top($width: 1px, $color: 'currentColor', $inset: 0, $important: 0) {
|
|
19
|
-
$ring-style: 0 (-$width) 0 $color;
|
|
20
|
-
$shadow: if($inset==1, inset $ring-style, $ring-style);
|
|
21
|
-
|
|
22
|
-
box-shadow: if($important==1, $shadow !important, $shadow);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
@mixin ring-right($width: 1px, $color: 'currentColor', $inset: 0, $important: 0) {
|
|
26
|
-
$ring-style: $width 0 0 $color;
|
|
27
|
-
$shadow: if($inset==1, inset $ring-style, $ring-style);
|
|
28
|
-
|
|
29
|
-
box-shadow: if($important==1, $shadow !important, $shadow);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
@mixin ring-bottom($width: 1px, $color: 'currentColor', $inset: 0, $important: 0) {
|
|
33
|
-
$ring-style: 0 $width 0 $color;
|
|
34
|
-
$shadow: if($inset==1, inset $ring-style, $ring-style);
|
|
35
|
-
|
|
36
|
-
box-shadow: if($important==1, $shadow !important, $shadow);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
@function getColor($color-map, $color) {
|
|
40
|
-
@if map.has-key($color-map, $color) {
|
|
41
|
-
@return map.get($color-map, $color);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
@return $color;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
@mixin getTypography($typo-map, $name, $important: false) {
|
|
48
|
-
@if map.has-key($typo-map, $name) {
|
|
49
|
-
& {
|
|
50
|
-
$values: map.get($typo-map, $name);
|
|
51
|
-
$font-size: list.nth($values, 1);
|
|
52
|
-
$props: list.nth($values, 2);
|
|
53
|
-
$line-height: map.get($props, 'line-height');
|
|
54
|
-
$font-weight: map.get($props, 'font-weight');
|
|
55
|
-
|
|
56
|
-
@if $important {
|
|
57
|
-
font-size: $font-size !important;
|
|
58
|
-
line-height: $line-height !important;
|
|
59
|
-
font-weight: $font-weight !important;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
@else {
|
|
63
|
-
font-size: $font-size;
|
|
64
|
-
line-height: $line-height;
|
|
65
|
-
font-weight: $font-weight;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
@else {
|
|
71
|
-
@warn 'Typography "#{$name}" not found in the typography map.';
|
|
72
|
-
}
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:list';
|
|
3
|
+
|
|
4
|
+
@mixin ring($width: 1px, $color: 'transparent', $inset: 0, $important: 0) {
|
|
5
|
+
$ring-style: 0 0 0 $width $color;
|
|
6
|
+
$shadow: if($inset==1, inset $ring-style, $ring-style);
|
|
7
|
+
|
|
8
|
+
box-shadow: if($important==1, $shadow !important, $shadow);
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@mixin ring-left($width: 1px, $color: 'currentColor', $inset: 0, $important: 0) {
|
|
12
|
+
$ring-style: (-$width) 0 0 $color;
|
|
13
|
+
$shadow: if($inset==1, inset $ring-style, $ring-style);
|
|
14
|
+
|
|
15
|
+
box-shadow: if($important==1, $shadow !important, $shadow);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin ring-top($width: 1px, $color: 'currentColor', $inset: 0, $important: 0) {
|
|
19
|
+
$ring-style: 0 (-$width) 0 $color;
|
|
20
|
+
$shadow: if($inset==1, inset $ring-style, $ring-style);
|
|
21
|
+
|
|
22
|
+
box-shadow: if($important==1, $shadow !important, $shadow);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@mixin ring-right($width: 1px, $color: 'currentColor', $inset: 0, $important: 0) {
|
|
26
|
+
$ring-style: $width 0 0 $color;
|
|
27
|
+
$shadow: if($inset==1, inset $ring-style, $ring-style);
|
|
28
|
+
|
|
29
|
+
box-shadow: if($important==1, $shadow !important, $shadow);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
@mixin ring-bottom($width: 1px, $color: 'currentColor', $inset: 0, $important: 0) {
|
|
33
|
+
$ring-style: 0 $width 0 $color;
|
|
34
|
+
$shadow: if($inset==1, inset $ring-style, $ring-style);
|
|
35
|
+
|
|
36
|
+
box-shadow: if($important==1, $shadow !important, $shadow);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
@function getColor($color-map, $color) {
|
|
40
|
+
@if map.has-key($color-map, $color) {
|
|
41
|
+
@return map.get($color-map, $color);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
@return $color;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@mixin getTypography($typo-map, $name, $important: false) {
|
|
48
|
+
@if map.has-key($typo-map, $name) {
|
|
49
|
+
& {
|
|
50
|
+
$values: map.get($typo-map, $name);
|
|
51
|
+
$font-size: list.nth($values, 1);
|
|
52
|
+
$props: list.nth($values, 2);
|
|
53
|
+
$line-height: map.get($props, 'line-height');
|
|
54
|
+
$font-weight: map.get($props, 'font-weight');
|
|
55
|
+
|
|
56
|
+
@if $important {
|
|
57
|
+
font-size: $font-size !important;
|
|
58
|
+
line-height: $line-height !important;
|
|
59
|
+
font-weight: $font-weight !important;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
@else {
|
|
63
|
+
font-size: $font-size;
|
|
64
|
+
line-height: $line-height;
|
|
65
|
+
font-weight: $font-weight;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
@else {
|
|
71
|
+
@warn 'Typography "#{$name}" not found in the typography map.';
|
|
72
|
+
}
|
|
73
73
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M10.6673 11.3333L8.00065 14M8.00065 14L5.33398 11.3333M8.00065 14V2" stroke="#CFD8DC" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
-
</svg>
|
|
1
|
+
<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M10.6673 11.3333L8.00065 14M8.00065 14L5.33398 11.3333M8.00065 14V2" stroke="#CFD8DC" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
|
|
3
|
+
</svg>
|