@uxf/ui 11.105.0 → 11.106.0
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/css/avatar.css +19 -3
- package/css/badge.css +15 -6
- package/css/button-list.css +3 -1
- package/css/button.css +3 -1
- package/css/checkbox-button.css +79 -25
- package/css/checkbox-input.css +2 -3
- package/css/checkbox.css +49 -24
- package/css/color-radio-group.css +7 -3
- package/css/color-radio.css +29 -6
- package/css/date-picker.css +5 -2
- package/css/dropzone.css +9 -3
- package/css/error-message.css +4 -1
- package/css/file-input.css +30 -11
- package/css/flash-messages.css +2 -2
- package/css/form-component.css +5 -2
- package/css/image-gallery.css +65 -15
- package/css/input-basic.css +10 -4
- package/css/input-with-popover.css +15 -6
- package/css/input.css +69 -40
- package/css/label.css +7 -2
- package/css/list-item.css +14 -5
- package/css/loader.css +17 -6
- package/css/lozenge.css +2 -2
- package/css/menu.css +2 -2
- package/css/multi-combobox.css +0 -8
- package/css/multi-select.css +0 -10
- package/css/pagination.css +27 -16
- package/css/paper.css +3 -1
- package/css/radio-group.css +39 -13
- package/css/radio.css +45 -23
- package/css/raster-image.css +14 -5
- package/css/text-link.css +5 -1
- package/css/typography.css +30 -10
- package/date-picker/date-picker-decade.js +4 -2
- package/date-picker/date-picker.stories.js +1 -1
- package/date-range-picker/date-range-picker-decade.js +4 -2
- package/label/label.js +2 -1
- package/package.json +5 -5
package/css/pagination.css
CHANGED
|
@@ -1,8 +1,20 @@
|
|
|
1
1
|
.uxf-pagination {
|
|
2
|
-
@apply
|
|
2
|
+
@apply -space-x-px;
|
|
3
|
+
|
|
4
|
+
border-radius: theme("borderRadius.md");
|
|
5
|
+
display: inline-flex;
|
|
6
|
+
isolation: isolate;
|
|
3
7
|
|
|
4
8
|
&__button {
|
|
5
|
-
@apply
|
|
9
|
+
@apply border border-gray-300 text-sm hover:bg-gray-50 focus:z-10;
|
|
10
|
+
|
|
11
|
+
align-items: center;
|
|
12
|
+
background-color: theme("colors.white");
|
|
13
|
+
color: theme("colors.gray.500");
|
|
14
|
+
cursor: pointer;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
font-weight: 500;
|
|
17
|
+
position: relative;
|
|
6
18
|
|
|
7
19
|
:root .dark & {
|
|
8
20
|
@apply border-gray-600 bg-gray-900 text-gray-200 hover:bg-gray-800;
|
|
@@ -17,15 +29,17 @@
|
|
|
17
29
|
}
|
|
18
30
|
|
|
19
31
|
&:first-child {
|
|
20
|
-
|
|
32
|
+
border-radius: theme("borderRadius.md") 0 0 theme("borderRadius.md");
|
|
21
33
|
}
|
|
22
34
|
|
|
23
35
|
&:last-child {
|
|
24
|
-
|
|
36
|
+
border-radius: 0 theme("borderRadius.md") theme("borderRadius.md") 0;
|
|
25
37
|
}
|
|
26
38
|
|
|
27
39
|
&.is-disabled {
|
|
28
|
-
@apply
|
|
40
|
+
@apply text-neutral-300 hover:bg-white;
|
|
41
|
+
|
|
42
|
+
cursor: not-allowed;
|
|
29
43
|
|
|
30
44
|
:root .dark & {
|
|
31
45
|
@apply text-neutral-500 hover:bg-gray-800;
|
|
@@ -33,7 +47,9 @@
|
|
|
33
47
|
}
|
|
34
48
|
|
|
35
49
|
&.is-ellipsis {
|
|
36
|
-
@apply
|
|
50
|
+
@apply text-neutral-300 hover:bg-white;
|
|
51
|
+
|
|
52
|
+
pointer-events: none;
|
|
37
53
|
|
|
38
54
|
:root .dark & {
|
|
39
55
|
@apply text-neutral-500 hover:bg-gray-800;
|
|
@@ -46,32 +62,27 @@
|
|
|
46
62
|
}
|
|
47
63
|
|
|
48
64
|
&--size-xs .uxf-pagination__button {
|
|
49
|
-
@apply px-2;
|
|
50
|
-
|
|
51
65
|
height: theme("inputSize.xs");
|
|
66
|
+
padding-inline: theme("spacing.2");
|
|
52
67
|
}
|
|
53
68
|
|
|
54
69
|
&--size-sm .uxf-pagination__button {
|
|
55
|
-
@apply px-3;
|
|
56
|
-
|
|
57
70
|
height: theme("inputSize.sm");
|
|
71
|
+
padding-inline: theme("spacing.3");
|
|
58
72
|
}
|
|
59
73
|
|
|
60
74
|
&--size-default .uxf-pagination__button {
|
|
61
|
-
@apply px-4;
|
|
62
|
-
|
|
63
75
|
height: theme("inputSize.default");
|
|
76
|
+
padding-inline: theme("spacing.4");
|
|
64
77
|
}
|
|
65
78
|
|
|
66
79
|
&--size-lg .uxf-pagination__button {
|
|
67
|
-
@apply px-5;
|
|
68
|
-
|
|
69
80
|
height: theme("inputSize.lg");
|
|
81
|
+
padding-inline: theme("spacing.5");
|
|
70
82
|
}
|
|
71
83
|
|
|
72
84
|
&--size-xl .uxf-pagination__button {
|
|
73
|
-
@apply px-6;
|
|
74
|
-
|
|
75
85
|
height: theme("inputSize.xl");
|
|
86
|
+
padding-inline: theme("spacing.6");
|
|
76
87
|
}
|
|
77
88
|
}
|
package/css/paper.css
CHANGED
package/css/radio-group.css
CHANGED
|
@@ -13,20 +13,22 @@
|
|
|
13
13
|
|
|
14
14
|
&.is-selected {
|
|
15
15
|
.uxf-radio-group__option-label {
|
|
16
|
-
|
|
16
|
+
color: theme("colors.gray.900");
|
|
17
17
|
|
|
18
18
|
:root .dark & {
|
|
19
|
-
|
|
19
|
+
color: theme("colors.white");
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
&__option-label {
|
|
26
|
-
@apply line-clamp-2
|
|
26
|
+
@apply line-clamp-2;
|
|
27
|
+
|
|
28
|
+
color: theme("colors.gray.600");
|
|
27
29
|
|
|
28
30
|
:root .dark & {
|
|
29
|
-
|
|
31
|
+
color: rgb(255 255 255 / 80%);
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
|
|
@@ -45,15 +47,21 @@
|
|
|
45
47
|
}
|
|
46
48
|
|
|
47
49
|
.uxf-radio-group__options-wrapper {
|
|
48
|
-
|
|
50
|
+
& > * + * {
|
|
51
|
+
border-color: theme("colors.gray.200");
|
|
52
|
+
border-top-width: 1px;
|
|
53
|
+
}
|
|
49
54
|
|
|
50
55
|
:root .dark & {
|
|
51
|
-
|
|
56
|
+
& > * + * {
|
|
57
|
+
border-color: theme("colors.gray.800");
|
|
58
|
+
}
|
|
52
59
|
}
|
|
53
60
|
}
|
|
54
61
|
|
|
55
62
|
.uxf-radio-group__option-wrapper {
|
|
56
|
-
|
|
63
|
+
align-items: center;
|
|
64
|
+
padding-block: theme("spacing.4");
|
|
57
65
|
}
|
|
58
66
|
|
|
59
67
|
.uxf-radio-group__option-label {
|
|
@@ -77,17 +85,36 @@
|
|
|
77
85
|
}
|
|
78
86
|
|
|
79
87
|
.uxf-radio-group__option-wrapper {
|
|
80
|
-
|
|
88
|
+
flex-direction: column-reverse;
|
|
89
|
+
min-width: 112px;
|
|
90
|
+
padding: theme("spacing.3");
|
|
91
|
+
position: relative;
|
|
92
|
+
|
|
93
|
+
&::before {
|
|
94
|
+
border: 1px solid theme("colors.gray.400");
|
|
95
|
+
border-radius: theme("borderRadius.lg");
|
|
96
|
+
content: "";
|
|
97
|
+
inset: 0;
|
|
98
|
+
pointer-events: none;
|
|
99
|
+
position: absolute;
|
|
100
|
+
}
|
|
81
101
|
|
|
82
102
|
:root .dark & {
|
|
83
|
-
|
|
103
|
+
&::before {
|
|
104
|
+
border-color: theme("colors.gray.400");
|
|
105
|
+
}
|
|
84
106
|
}
|
|
85
107
|
|
|
86
108
|
&.is-selected {
|
|
87
|
-
|
|
109
|
+
&::before {
|
|
110
|
+
border-color: theme("colors.primary.DEFAULT");
|
|
111
|
+
border-width: 2px;
|
|
112
|
+
}
|
|
88
113
|
|
|
89
114
|
:root .dark & {
|
|
90
|
-
|
|
115
|
+
&::before {
|
|
116
|
+
border-color: theme("colors.primary.DEFAULT");
|
|
117
|
+
}
|
|
91
118
|
}
|
|
92
119
|
}
|
|
93
120
|
}
|
|
@@ -110,9 +137,8 @@
|
|
|
110
137
|
}
|
|
111
138
|
|
|
112
139
|
.uxf-radio-group__option-wrapper {
|
|
113
|
-
@apply flex-row-reverse;
|
|
114
|
-
|
|
115
140
|
align-items: center;
|
|
141
|
+
flex-direction: row-reverse;
|
|
116
142
|
}
|
|
117
143
|
|
|
118
144
|
.uxf-radio-group__option-label {
|
package/css/radio.css
CHANGED
|
@@ -1,91 +1,113 @@
|
|
|
1
1
|
.uxf-radio {
|
|
2
|
-
@apply focus-visible:ring-primary
|
|
2
|
+
@apply focus-visible:ring-primary transition focus-visible:ring-2;
|
|
3
|
+
|
|
4
|
+
align-items: center;
|
|
5
|
+
border: 1px solid theme("colors.gray.400");
|
|
6
|
+
border-radius: 9999px;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-shrink: 0;
|
|
9
|
+
justify-content: center;
|
|
3
10
|
|
|
4
11
|
:root .dark & {
|
|
5
|
-
@apply focus-visible:ring-primary
|
|
12
|
+
@apply focus-visible:ring-primary focus-visible:ring-offset-gray-900;
|
|
13
|
+
|
|
14
|
+
border-color: theme("colors.gray.400");
|
|
6
15
|
}
|
|
7
16
|
|
|
8
17
|
&__inner {
|
|
9
|
-
@apply
|
|
18
|
+
@apply transition;
|
|
19
|
+
|
|
20
|
+
border-radius: 9999px;
|
|
21
|
+
display: block;
|
|
22
|
+
opacity: 0;
|
|
10
23
|
}
|
|
11
24
|
|
|
12
25
|
&.is-selected {
|
|
13
|
-
|
|
26
|
+
background-color: theme("colors.primary.DEFAULT");
|
|
27
|
+
border: none;
|
|
14
28
|
|
|
15
29
|
:root .dark & {
|
|
16
|
-
|
|
30
|
+
background-color: theme("colors.primary.DEFAULT");
|
|
31
|
+
border: none;
|
|
17
32
|
}
|
|
18
33
|
|
|
19
34
|
.uxf-radio__inner {
|
|
20
|
-
|
|
35
|
+
background-color: theme("colors.white");
|
|
36
|
+
opacity: 1;
|
|
21
37
|
|
|
22
38
|
:root .dark & {
|
|
23
|
-
|
|
39
|
+
background-color: theme("colors.white");
|
|
24
40
|
}
|
|
25
41
|
}
|
|
26
42
|
}
|
|
27
43
|
|
|
28
44
|
&.is-disabled {
|
|
29
|
-
|
|
45
|
+
border-color: theme("colors.gray.200");
|
|
46
|
+
pointer-events: none;
|
|
30
47
|
|
|
31
48
|
:root .dark & {
|
|
32
|
-
|
|
49
|
+
border-color: theme("colors.gray.600");
|
|
50
|
+
pointer-events: none;
|
|
33
51
|
}
|
|
34
52
|
|
|
35
53
|
&.is-selected {
|
|
36
|
-
|
|
54
|
+
background-color: theme("colors.gray.200");
|
|
37
55
|
|
|
38
56
|
:root .dark & {
|
|
39
|
-
|
|
57
|
+
background-color: theme("colors.gray.600");
|
|
40
58
|
}
|
|
41
59
|
}
|
|
42
60
|
|
|
43
61
|
.uxf-radio__inner {
|
|
44
|
-
|
|
62
|
+
background-color: theme("colors.gray.400");
|
|
45
63
|
|
|
46
64
|
:root .dark & {
|
|
47
|
-
|
|
65
|
+
background-color: theme("colors.gray.800");
|
|
48
66
|
}
|
|
49
67
|
}
|
|
50
68
|
}
|
|
51
69
|
|
|
52
70
|
&.is-invalid {
|
|
53
|
-
|
|
71
|
+
border-color: theme("colors.error.DEFAULT");
|
|
54
72
|
|
|
55
73
|
:root .dark & {
|
|
56
|
-
|
|
74
|
+
border-color: theme("colors.error.DEFAULT");
|
|
57
75
|
}
|
|
58
76
|
|
|
59
77
|
&.is-selected {
|
|
60
|
-
|
|
78
|
+
background-color: theme("colors.error.DEFAULT");
|
|
61
79
|
|
|
62
80
|
:root .dark & {
|
|
63
|
-
|
|
81
|
+
background-color: theme("colors.error.DEFAULT");
|
|
64
82
|
}
|
|
65
83
|
}
|
|
66
84
|
|
|
67
85
|
.uxf-radio__inner {
|
|
68
|
-
|
|
86
|
+
background-color: theme("colors.white");
|
|
69
87
|
|
|
70
88
|
:root .dark & {
|
|
71
|
-
|
|
89
|
+
background-color: theme("colors.white");
|
|
72
90
|
}
|
|
73
91
|
}
|
|
74
92
|
}
|
|
75
93
|
|
|
76
94
|
&--size-default {
|
|
77
|
-
|
|
95
|
+
height: theme("spacing.4");
|
|
96
|
+
width: theme("spacing.4");
|
|
78
97
|
|
|
79
98
|
.uxf-radio__inner {
|
|
80
|
-
|
|
99
|
+
height: theme("spacing[1.5]");
|
|
100
|
+
width: theme("spacing[1.5]");
|
|
81
101
|
}
|
|
82
102
|
}
|
|
83
103
|
|
|
84
104
|
&--size-lg {
|
|
85
|
-
|
|
105
|
+
height: theme("spacing.6");
|
|
106
|
+
width: theme("spacing.6");
|
|
86
107
|
|
|
87
108
|
.uxf-radio__inner {
|
|
88
|
-
|
|
109
|
+
height: theme("spacing[2.5]");
|
|
110
|
+
width: theme("spacing[2.5]");
|
|
89
111
|
}
|
|
90
112
|
}
|
|
91
113
|
}
|
package/css/raster-image.css
CHANGED
|
@@ -1,20 +1,29 @@
|
|
|
1
1
|
.uxf-raster-image {
|
|
2
|
-
|
|
2
|
+
display: block;
|
|
3
|
+
width: 100%;
|
|
3
4
|
|
|
4
5
|
&--contain,
|
|
5
6
|
&--cover {
|
|
6
|
-
|
|
7
|
+
position: relative;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
&__img {
|
|
10
|
-
|
|
11
|
+
display: block;
|
|
12
|
+
height: auto;
|
|
13
|
+
width: 100%;
|
|
11
14
|
|
|
12
15
|
&--contain {
|
|
13
|
-
|
|
16
|
+
height: 100%;
|
|
17
|
+
inset: 0;
|
|
18
|
+
object-fit: contain;
|
|
19
|
+
position: absolute;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
&--cover {
|
|
17
|
-
|
|
23
|
+
height: 100%;
|
|
24
|
+
inset: 0;
|
|
25
|
+
object-fit: cover;
|
|
26
|
+
position: absolute;
|
|
18
27
|
}
|
|
19
28
|
}
|
|
20
29
|
}
|
package/css/text-link.css
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
.uxf-text-link {
|
|
2
|
-
@apply
|
|
2
|
+
@apply transition before:absolute before:-inset-1 focus-visible:before:rounded-lg focus-visible:before:border-2;
|
|
3
|
+
|
|
4
|
+
outline: none;
|
|
5
|
+
position: relative;
|
|
6
|
+
text-decoration-line: underline;
|
|
3
7
|
|
|
4
8
|
&--variant-default {
|
|
5
9
|
color: theme("colors.brand_surface_default");
|
package/css/typography.css
CHANGED
|
@@ -1,25 +1,37 @@
|
|
|
1
1
|
.uxf-typo-h1 {
|
|
2
|
-
@apply text-desktopH1
|
|
2
|
+
@apply text-desktopH1;
|
|
3
|
+
|
|
4
|
+
font-weight: 700;
|
|
3
5
|
}
|
|
4
6
|
|
|
5
7
|
.uxf-typo-h2 {
|
|
6
|
-
@apply text-desktopH2
|
|
8
|
+
@apply text-desktopH2;
|
|
9
|
+
|
|
10
|
+
font-weight: 700;
|
|
7
11
|
}
|
|
8
12
|
|
|
9
13
|
.uxf-typo-h3 {
|
|
10
|
-
@apply text-desktopH3
|
|
14
|
+
@apply text-desktopH3;
|
|
15
|
+
|
|
16
|
+
font-weight: 700;
|
|
11
17
|
}
|
|
12
18
|
|
|
13
19
|
.uxf-typo-h4 {
|
|
14
|
-
@apply text-desktopH4
|
|
20
|
+
@apply text-desktopH4;
|
|
21
|
+
|
|
22
|
+
font-weight: 700;
|
|
15
23
|
}
|
|
16
24
|
|
|
17
25
|
.uxf-typo-h5 {
|
|
18
|
-
@apply text-desktopH5
|
|
26
|
+
@apply text-desktopH5;
|
|
27
|
+
|
|
28
|
+
font-weight: 700;
|
|
19
29
|
}
|
|
20
30
|
|
|
21
31
|
.uxf-typo-h6 {
|
|
22
|
-
@apply text-desktopH6
|
|
32
|
+
@apply text-desktopH6;
|
|
33
|
+
|
|
34
|
+
font-weight: 700;
|
|
23
35
|
}
|
|
24
36
|
|
|
25
37
|
.uxf-typo-body {
|
|
@@ -31,7 +43,9 @@
|
|
|
31
43
|
}
|
|
32
44
|
|
|
33
45
|
.uxf-typo-button {
|
|
34
|
-
@apply text-body
|
|
46
|
+
@apply text-body;
|
|
47
|
+
|
|
48
|
+
font-weight: 700;
|
|
35
49
|
}
|
|
36
50
|
|
|
37
51
|
.uxf-typo-caption {
|
|
@@ -39,13 +53,19 @@
|
|
|
39
53
|
}
|
|
40
54
|
|
|
41
55
|
.uxf-typo-medium {
|
|
42
|
-
@apply text-medium
|
|
56
|
+
@apply text-medium;
|
|
57
|
+
|
|
58
|
+
font-weight: 500;
|
|
43
59
|
}
|
|
44
60
|
|
|
45
61
|
.uxf-typo-medium2 {
|
|
46
|
-
@apply text-medium2
|
|
62
|
+
@apply text-medium2;
|
|
63
|
+
|
|
64
|
+
font-weight: 500;
|
|
47
65
|
}
|
|
48
66
|
|
|
49
67
|
.uxf-typo-overline {
|
|
50
|
-
@apply text-overline
|
|
68
|
+
@apply text-overline;
|
|
69
|
+
|
|
70
|
+
font-weight: 700;
|
|
51
71
|
}
|
|
@@ -84,10 +84,12 @@ exports.DatePickerDecade = (0, react_1.memo)((props) => {
|
|
|
84
84
|
onClick: handleSetMonthViewMode,
|
|
85
85
|
title: (_f = (_e = props.customButtonTitles) === null || _e === void 0 ? void 0 : _e.selectMonth) !== null && _f !== void 0 ? _f : t("uxf-ui-date-picker:select-month"),
|
|
86
86
|
}, nextButtonProps: {
|
|
87
|
-
|
|
87
|
+
isDisabled: !canGoToNextDecade,
|
|
88
|
+
onClick: canGoToNextDecade ? handleGoToNextDecadeClick : undefined,
|
|
88
89
|
title: (_h = (_g = props.customButtonTitles) === null || _g === void 0 ? void 0 : _g.nextDecade) !== null && _h !== void 0 ? _h : t("uxf-ui-date-picker:next-decade"),
|
|
89
90
|
}, prevButtonProps: {
|
|
90
|
-
|
|
91
|
+
isDisabled: !canGoToPrevDecade,
|
|
92
|
+
onClick: canGoToPrevDecade ? handleGoToPrevDecadeClick : undefined,
|
|
91
93
|
title: (_k = (_j = props.customButtonTitles) === null || _j === void 0 ? void 0 : _j.prevDecade) !== null && _k !== void 0 ? _k : t("uxf-ui-date-picker:prev-decade"),
|
|
92
94
|
}, yearButtonProps: {
|
|
93
95
|
children: currentYear,
|
|
@@ -38,7 +38,7 @@ const date_1 = require("@uxf/localize/src/date");
|
|
|
38
38
|
const react_1 = __importStar(require("react"));
|
|
39
39
|
const action_1 = require("../utils/action");
|
|
40
40
|
const date_picker_1 = require("./date-picker");
|
|
41
|
-
const today = (0, date_1.dayjsTz)();
|
|
41
|
+
const today = (0, date_1.dayjsTz)().startOf("day");
|
|
42
42
|
const minDate = today.subtract(10, "day").toDate();
|
|
43
43
|
const maxDate = today.add(20, "days").toDate();
|
|
44
44
|
const unavailableDates = [
|
|
@@ -91,10 +91,12 @@ exports.DateRangePickerDecade = (0, react_1.memo)((props) => {
|
|
|
91
91
|
onClick: handleSetMonthViewMode,
|
|
92
92
|
title: (_f = (_e = props.customButtonTitles) === null || _e === void 0 ? void 0 : _e.selectMonth) !== null && _f !== void 0 ? _f : t("uxf-ui-date-range-picker:select-month"),
|
|
93
93
|
}, nextButtonProps: {
|
|
94
|
-
|
|
94
|
+
isDisabled: !canGoToNextDecade,
|
|
95
|
+
onClick: canGoToNextDecade ? handleGoToNextDecadeClick : undefined,
|
|
95
96
|
title: (_h = (_g = props.customButtonTitles) === null || _g === void 0 ? void 0 : _g.nextDecade) !== null && _h !== void 0 ? _h : t("uxf-ui-date-range-picker:next-decade"),
|
|
96
97
|
}, prevButtonProps: {
|
|
97
|
-
|
|
98
|
+
isDisabled: !canGoToPrevDecade,
|
|
99
|
+
onClick: canGoToPrevDecade ? handleGoToPrevDecadeClick : undefined,
|
|
98
100
|
title: (_k = (_j = props.customButtonTitles) === null || _j === void 0 ? void 0 : _j.prevDecade) !== null && _k !== void 0 ? _k : t("uxf-ui-date-range-picker:prev-decade"),
|
|
99
101
|
}, yearButtonProps: {
|
|
100
102
|
children: yearLabel,
|
package/label/label.js
CHANGED
|
@@ -37,11 +37,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.Label = void 0;
|
|
38
38
|
const classes_1 = require("@uxf/core/constants/classes");
|
|
39
39
|
const cx_1 = require("@uxf/core/utils/cx");
|
|
40
|
+
const is_not_nil_1 = require("@uxf/core/utils/is-not-nil");
|
|
40
41
|
const react_1 = __importStar(require("react"));
|
|
41
42
|
exports.Label = (0, react_1.forwardRef)((props, ref) => {
|
|
42
43
|
const className = (0, cx_1.cx)("uxf-label", props.isHidden && "uxf-label--hidden", props.isRequired && classes_1.CLASSES.IS_REQUIRED, props.className);
|
|
43
44
|
return (
|
|
44
45
|
// eslint-disable-next-line jsx-a11y/click-events-have-key-events,jsx-a11y/no-noninteractive-element-interactions
|
|
45
|
-
react_1.default.createElement("label", { className: className, form: props.form, htmlFor: props.htmlFor, id: props.id, onClick: props.onClick, ref: ref }, props.children));
|
|
46
|
+
react_1.default.createElement("label", { className: className, form: props.form, htmlFor: props.htmlFor, id: props.id, onClick: props.onClick, ref: ref, tabIndex: (0, is_not_nil_1.isNotNil)(ref) ? 0 : undefined }, props.children));
|
|
46
47
|
});
|
|
47
48
|
exports.Label.displayName = "UxfUiLabel";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uxf/ui",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.106.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
"dependencies": {
|
|
24
24
|
"@floating-ui/react": "0.27.17",
|
|
25
25
|
"@headlessui/react": "1.7.19",
|
|
26
|
-
"@uxf/core": "11.
|
|
27
|
-
"@uxf/core-react": "11.
|
|
28
|
-
"@uxf/datepicker": "11.
|
|
26
|
+
"@uxf/core": "11.106.0",
|
|
27
|
+
"@uxf/core-react": "11.106.0",
|
|
28
|
+
"@uxf/datepicker": "11.106.0",
|
|
29
29
|
"@uxf/localize": "11.92.1",
|
|
30
|
-
"@uxf/styles": "11.
|
|
30
|
+
"@uxf/styles": "11.106.0",
|
|
31
31
|
"color2k": "2.0.3",
|
|
32
32
|
"dayjs": "1.11.19",
|
|
33
33
|
"react-dropzone": "14.4.0"
|