@uxf/ui 1.0.1 → 10.0.0-beta.4
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/chip/chip.d.ts +3 -1
- package/chip/chip.js +6 -5
- package/chip/chip.stories.js +27 -10
- package/chip/theme.d.ts +7 -0
- package/css/avatar-file-input.css +82 -0
- package/css/avatar.css +15 -0
- package/css/badge.css +23 -0
- package/css/button-group.css +22 -0
- package/css/button-list.css +61 -0
- package/css/button.css +335 -0
- package/css/calendar.css +215 -0
- package/css/checkbox-button.css +98 -0
- package/css/checkbox-input.css +24 -0
- package/css/checkbox.css +120 -0
- package/css/chip.css +591 -0
- package/css/color-radio-group.css +21 -0
- package/css/color-radio.css +33 -0
- package/css/component-structure-analyzer.css +31 -0
- package/css/date-picker.css +22 -0
- package/css/datetime-picker.css +11 -0
- package/css/dropdown.css +70 -0
- package/css/dropzone.css +85 -0
- package/css/error-message.css +3 -0
- package/css/file-input.css +80 -0
- package/css/flash-messages.css +28 -0
- package/css/form-component.css +7 -0
- package/css/icon.css +7 -0
- package/css/image-gallery.css +59 -0
- package/css/input-basic.css +18 -0
- package/css/input-with-popover.css +35 -0
- package/css/input.css +270 -0
- package/css/label.css +15 -0
- package/css/layout.css +47 -0
- package/css/list-item.css +29 -0
- package/css/loader.css +23 -0
- package/css/modal.css +65 -0
- package/css/multi-combobox.css +110 -0
- package/css/multi-select.css +27 -0
- package/css/pagination.css +93 -0
- package/css/paper.css +3 -0
- package/css/radio-group.css +169 -0
- package/css/radio.css +101 -0
- package/css/raster-image.css +20 -0
- package/css/select-base.css +50 -0
- package/css/tabs.css +131 -0
- package/css/text-link.css +12 -0
- package/css/textarea.css +124 -0
- package/css/time-picker.css +32 -0
- package/css/toggle.css +80 -0
- package/css/tooltip.css +7 -0
- package/css/typography.css +51 -0
- package/hooks/use-dropdown.d.ts +1 -1
- package/package.json +3 -2
- package/tooltip/use-tooltip.d.ts +1 -1
- package/utils/storybook-config.js +1 -1
package/css/dropdown.css
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.uxf-dropdown {
|
|
2
|
+
@apply absolute z-dropdown w-full overflow-y-auto rounded-md py-1 text-base shadow-lg ring-1 ring-black
|
|
3
|
+
ring-opacity-5 sm:text-sm;
|
|
4
|
+
|
|
5
|
+
outline: none;
|
|
6
|
+
|
|
7
|
+
:root .light & {
|
|
8
|
+
@apply bg-white text-gray-800;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:root .dark & {
|
|
12
|
+
@apply bg-gray-800 text-white;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&--bottom {
|
|
16
|
+
@apply mt-1;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&--top {
|
|
20
|
+
@apply -mt-1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&__item {
|
|
24
|
+
@apply relative cursor-default select-none py-2 px-4 transition-colors;
|
|
25
|
+
|
|
26
|
+
&.is-selected {
|
|
27
|
+
@apply font-bold;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:root .light & {
|
|
31
|
+
@apply text-gray-800;
|
|
32
|
+
|
|
33
|
+
&.is-selected {
|
|
34
|
+
@apply bg-primary-100 font-bold;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&.is-active {
|
|
38
|
+
@apply bg-primary text-white;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:root .dark & {
|
|
43
|
+
@apply text-white;
|
|
44
|
+
|
|
45
|
+
&.is-selected {
|
|
46
|
+
@apply bg-primary-900;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&.is-active {
|
|
50
|
+
@apply bg-primary;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__items {
|
|
56
|
+
@apply absolute flex flex-col border border-black;
|
|
57
|
+
|
|
58
|
+
:root .light & {
|
|
59
|
+
@apply bg-white;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
:root .dark & {
|
|
63
|
+
@apply bg-gray-800;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__empty-wrapper {
|
|
68
|
+
@apply py-2 px-4 text-gray-800;
|
|
69
|
+
}
|
|
70
|
+
}
|
package/css/dropzone.css
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
.uxf-dropzone {
|
|
2
|
+
@apply rounded-lg focus:outline-none;
|
|
3
|
+
|
|
4
|
+
&__input {
|
|
5
|
+
@apply sr-only;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__label {
|
|
9
|
+
@apply flex flex-col space-y-2 items-center justify-center p-4 border-2 border-lightBorder border-dashed
|
|
10
|
+
rounded-inherit cursor-pointer text-lightLow text-[14px];
|
|
11
|
+
|
|
12
|
+
&__icon {
|
|
13
|
+
@apply h-6;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&.is-invalid {
|
|
17
|
+
@apply border-error;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&.is-disabled {
|
|
21
|
+
@apply bg-lightBorder/50 cursor-not-allowed;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.uxf-dropzone-list {
|
|
27
|
+
@apply space-y-2;
|
|
28
|
+
|
|
29
|
+
&__item-wrapper {
|
|
30
|
+
@apply flex flex-col items-start justify-start space-y-1;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&__item {
|
|
34
|
+
@apply overflow-auto border px-4 py-3 shadow-sm sm:rounded-md sm:px-6 flex w-full
|
|
35
|
+
items-center justify-between space-x-6;
|
|
36
|
+
|
|
37
|
+
:root .light & {
|
|
38
|
+
@apply border-lightBorder text-lightMedium;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
:root .dark & {
|
|
42
|
+
@apply border-gray-700 bg-gray-800 text-gray-200;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&.is-invalid {
|
|
46
|
+
:root .light & {
|
|
47
|
+
@apply border-error text-error;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
:root .dark & {
|
|
51
|
+
@apply border-error text-error;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
&__block {
|
|
56
|
+
@apply flex items-center space-x-4 min-w-0;
|
|
57
|
+
|
|
58
|
+
&:nth-child(2) {
|
|
59
|
+
@apply shrink-0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&__icon {
|
|
63
|
+
@apply h-6;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
&__file-name {
|
|
67
|
+
@apply truncate;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&__file-name-link {
|
|
71
|
+
@apply truncate hover:underline hover:underline-offset-2;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&__file-size {
|
|
75
|
+
@apply whitespace-nowrap shrink-0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&__remove-button {
|
|
79
|
+
&__icon {
|
|
80
|
+
@apply h-4;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
.uxf-file-input {
|
|
2
|
+
&__input {
|
|
3
|
+
@apply sr-only;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
&__label {
|
|
7
|
+
@apply cursor-pointer flex overflow-auto;
|
|
8
|
+
|
|
9
|
+
&.is-loading {
|
|
10
|
+
@apply cursor-not-allowed;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
&.is-focused {
|
|
14
|
+
@apply ring-2 ring-offset-2;
|
|
15
|
+
|
|
16
|
+
:root .light & {
|
|
17
|
+
@apply ring-primary;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
:root .dark & {
|
|
21
|
+
@apply ring-primary;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&.is-invalid {
|
|
26
|
+
.uxf-file-input__label__button,
|
|
27
|
+
.uxf-file-input__label__wrapper {
|
|
28
|
+
:root .light & {
|
|
29
|
+
@apply border-error text-error;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
:root .dark & {
|
|
33
|
+
@apply border-error text-error;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__button {
|
|
39
|
+
@apply px-3;
|
|
40
|
+
|
|
41
|
+
:root .light & {
|
|
42
|
+
@apply border-gray-200 bg-gray-100;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
:root .dark & {
|
|
46
|
+
@apply border-gray-700 bg-gray-800;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
&:hover {
|
|
50
|
+
:root .light & {
|
|
51
|
+
@apply bg-gray-200;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
:root .dark & {
|
|
55
|
+
@apply bg-gray-700;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
&__wrapper {
|
|
61
|
+
@apply flex items-center justify-between border px-3 rounded-r-md w-full min-w-0;
|
|
62
|
+
|
|
63
|
+
:root .light & {
|
|
64
|
+
@apply border-gray-200;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
:root .dark & {
|
|
68
|
+
@apply border-gray-700;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__file-name {
|
|
72
|
+
@apply truncate;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&__file-name-link {
|
|
76
|
+
@apply truncate hover:underline hover:underline-offset-2;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
.uxf-flash-messages {
|
|
2
|
+
@apply pointer-events-none fixed inset-0 z-flashMessage flex items-end p-6;
|
|
3
|
+
|
|
4
|
+
&__list-wrapper {
|
|
5
|
+
@apply flex w-full max-w-sm flex-col items-center space-y-4 sm:items-end ml-auto;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.uxf-flash-message {
|
|
10
|
+
@apply pointer-events-auto rounded-lg transition px-5 py-4 shadow backdrop-blur text-sm min-w-[15rem]
|
|
11
|
+
is-hoverable:cursor-pointer;
|
|
12
|
+
|
|
13
|
+
&--success {
|
|
14
|
+
@apply bg-success is-hoverable:bg-success-700 text-white;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&--error {
|
|
18
|
+
@apply bg-error is-hoverable:bg-error-700 text-white;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&--warning {
|
|
22
|
+
@apply bg-warning is-hoverable:bg-warning-700 text-white;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
&--info {
|
|
26
|
+
@apply bg-gray-500 is-hoverable:bg-gray-700 text-white;
|
|
27
|
+
}
|
|
28
|
+
}
|
package/css/icon.css
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
.uxf-image-gallery {
|
|
2
|
+
@apply fixed inset-0 top-0 bottom-0 z-50 flex flex-col bg-black bg-opacity-75 transition-opacity;
|
|
3
|
+
|
|
4
|
+
&__content {
|
|
5
|
+
@apply container mx-auto flex h-full flex-1 flex-col;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
&__inner {
|
|
9
|
+
@apply relative flex flex-1 items-center justify-center;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__image {
|
|
13
|
+
@apply absolute left-0 right-0 top-0 h-full w-full object-contain;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
&__buttons {
|
|
17
|
+
@apply pointer-events-none absolute inset-0 flex items-center justify-between p-2;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
&__button {
|
|
21
|
+
@apply pointer-events-auto rounded-full bg-black bg-opacity-50 p-3;
|
|
22
|
+
|
|
23
|
+
&-icon {
|
|
24
|
+
@apply h-8 w-8 text-white;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__dots {
|
|
29
|
+
@apply mx-auto flex space-x-2 p-4;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&__dot {
|
|
33
|
+
@apply h-2 w-2 rounded-full bg-white;
|
|
34
|
+
|
|
35
|
+
&--active {
|
|
36
|
+
@apply bg-gray-500;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&__close-button-wrapper {
|
|
41
|
+
@apply flex justify-end;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&__close-button {
|
|
45
|
+
@apply bg-black bg-opacity-50 p-5;
|
|
46
|
+
|
|
47
|
+
&-icon {
|
|
48
|
+
@apply h-6 w-6 text-white;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&-text {
|
|
52
|
+
@apply sr-only;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&__custom-content {
|
|
57
|
+
@apply absolute right-0 bottom-0 bg-gray-600 text-white;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
.uxf-input {
|
|
2
|
+
@apply flex flex-row;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.uxf-input__wrapper {
|
|
6
|
+
@apply flex w-full flex-row;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.uxf-input__element {
|
|
10
|
+
@apply w-full;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.uxf-input__left-element,
|
|
14
|
+
.uxf-input__right-element,
|
|
15
|
+
.uxf-input__left-addon,
|
|
16
|
+
.uxf-input__right-addon {
|
|
17
|
+
@apply flex flex-row items-center whitespace-nowrap;
|
|
18
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
.uxf-input-with-popover {
|
|
2
|
+
&__panel {
|
|
3
|
+
@apply z-dropdown max-w-md rounded-md p-3 shadow-lg ring-1 ring-black ring-opacity-5;
|
|
4
|
+
|
|
5
|
+
overflow-y: auto;
|
|
6
|
+
|
|
7
|
+
&:focus {
|
|
8
|
+
outline: none;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
:root .light & {
|
|
12
|
+
@apply bg-white text-gray-800;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
:root .dark & {
|
|
16
|
+
@apply bg-gray-800 text-white;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&--bottom {
|
|
20
|
+
@apply mt-1;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&--top {
|
|
24
|
+
@apply -mt-1;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&__trigger-element {
|
|
29
|
+
@apply w-5 h-5 rounded-sm;
|
|
30
|
+
|
|
31
|
+
align-items: center;
|
|
32
|
+
display: inline-flex;
|
|
33
|
+
justify-content: center;
|
|
34
|
+
}
|
|
35
|
+
}
|
package/css/input.css
ADDED
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
.uxf-input {
|
|
2
|
+
@apply rounded-md bg-white shadow-sm;
|
|
3
|
+
|
|
4
|
+
:root .light & {
|
|
5
|
+
@apply bg-white text-gray-900;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:root .dark & {
|
|
9
|
+
@apply bg-gray-900 text-gray-300;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&__element {
|
|
13
|
+
@apply bg-transparent placeholder:font-light;
|
|
14
|
+
|
|
15
|
+
appearance: none;
|
|
16
|
+
outline: none;
|
|
17
|
+
|
|
18
|
+
:root .light & {
|
|
19
|
+
@apply placeholder:text-gray-400;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
:root .dark & {
|
|
23
|
+
@apply placeholder:text-gray-400;
|
|
24
|
+
|
|
25
|
+
&[type="time"]::-webkit-calendar-picker-indicator {
|
|
26
|
+
filter: invert();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&__left-element,
|
|
32
|
+
&__right-element {
|
|
33
|
+
:root .light & {
|
|
34
|
+
@apply text-lightLow;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
:root .dark & {
|
|
38
|
+
@apply text-darkLow;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&__left-element {
|
|
43
|
+
@apply mr-2;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&__right-element {
|
|
47
|
+
@apply ml-2 space-x-2;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__left-addon,
|
|
51
|
+
&__right-addon {
|
|
52
|
+
@apply border;
|
|
53
|
+
|
|
54
|
+
:root .light & {
|
|
55
|
+
@apply border-gray-200 bg-gray-100;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
:root .dark & {
|
|
59
|
+
@apply border-gray-700 bg-gray-800;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&--text {
|
|
63
|
+
@apply px-2;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
&__left-addon {
|
|
68
|
+
@apply rounded-l-md border-r-0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&__right-addon {
|
|
72
|
+
@apply rounded-r-md border-l-0;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
&__wrapper {
|
|
76
|
+
@apply rounded-md border px-3;
|
|
77
|
+
|
|
78
|
+
:root .light & {
|
|
79
|
+
@apply border-gray-200;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
:root .dark & {
|
|
83
|
+
@apply border-gray-700;
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
&__remove-button {
|
|
88
|
+
@apply rounded-sm;
|
|
89
|
+
|
|
90
|
+
align-items: center;
|
|
91
|
+
display: inline-flex;
|
|
92
|
+
flex-shrink: 0;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
|
|
95
|
+
&-inner {
|
|
96
|
+
@apply w-3.5 h-3.5 rounded-full;
|
|
97
|
+
|
|
98
|
+
align-items: center;
|
|
99
|
+
display: flex;
|
|
100
|
+
justify-content: center;
|
|
101
|
+
|
|
102
|
+
:root .light & {
|
|
103
|
+
@apply bg-gray-300;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
:root .dark & {
|
|
107
|
+
@apply bg-gray-600;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
&-icon {
|
|
112
|
+
@apply w-2 h-2;
|
|
113
|
+
|
|
114
|
+
:root .light & {
|
|
115
|
+
@apply text-white;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
:root .dark & {
|
|
119
|
+
@apply text-darkMedium;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&--size-small {
|
|
125
|
+
height: theme("inputSize.sm");
|
|
126
|
+
|
|
127
|
+
.uxf-input__wrapper {
|
|
128
|
+
@apply text-sm;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
&--size-default {
|
|
133
|
+
height: theme("inputSize.default");
|
|
134
|
+
|
|
135
|
+
.uxf-input__wrapper {
|
|
136
|
+
@apply text-base;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&--size-large {
|
|
141
|
+
height: theme("inputSize.lg");
|
|
142
|
+
|
|
143
|
+
.uxf-input__wrapper {
|
|
144
|
+
@apply text-lg;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
&--has-right-addon {
|
|
149
|
+
.uxf-input__wrapper {
|
|
150
|
+
@apply rounded-r-none;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&--has-left-addon {
|
|
155
|
+
.uxf-input__wrapper {
|
|
156
|
+
@apply rounded-l-none;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
&.is-focused {
|
|
161
|
+
.uxf-input__wrapper {
|
|
162
|
+
@apply ring-1 ring-inset ring-offset-0;
|
|
163
|
+
|
|
164
|
+
:root .light & {
|
|
165
|
+
@apply border-primary ring-primary;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
:root .dark & {
|
|
169
|
+
@apply border-primary ring-primary;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
&.is-disabled {
|
|
175
|
+
cursor: not-allowed;
|
|
176
|
+
|
|
177
|
+
:root .light & {
|
|
178
|
+
@apply bg-gray-100;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
:root .dark & {
|
|
182
|
+
@apply bg-gray-800;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
.uxf-input__element {
|
|
186
|
+
cursor: not-allowed;
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
&.is-readonly {
|
|
191
|
+
cursor: text;
|
|
192
|
+
|
|
193
|
+
.uxf-input__element {
|
|
194
|
+
cursor: text;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.uxf-input__wrapper {
|
|
198
|
+
@apply ring-0;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.uxf-input__wrapper,
|
|
202
|
+
.uxf-input__left-addon,
|
|
203
|
+
.uxf-input__right-addon {
|
|
204
|
+
:root .light & {
|
|
205
|
+
@apply border-gray-200;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
:root .dark & {
|
|
209
|
+
@apply border-gray-700;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
&.is-invalid {
|
|
215
|
+
&.is-focused {
|
|
216
|
+
.uxf-input__wrapper {
|
|
217
|
+
:root .light & {
|
|
218
|
+
@apply ring-error border-error;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
:root .dark & {
|
|
222
|
+
@apply ring-error border-error;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.uxf-input__wrapper {
|
|
228
|
+
@apply border-error placeholder:text-error-300;
|
|
229
|
+
|
|
230
|
+
.uxf-input__left-element,
|
|
231
|
+
.uxf-input__right-element {
|
|
232
|
+
@apply text-error;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.uxf-input__element {
|
|
236
|
+
:root .light & {
|
|
237
|
+
@apply border-gray-200 text-error placeholder:text-error;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
:root .dark & {
|
|
241
|
+
@apply border-gray-700 text-error placeholder:text-error;
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
input:-webkit-autofill {
|
|
248
|
+
&,
|
|
249
|
+
&:hover,
|
|
250
|
+
&:focus {
|
|
251
|
+
appearance: none;
|
|
252
|
+
margin: 1px;
|
|
253
|
+
transition: background-color 5000s ease-in-out 0s !important;
|
|
254
|
+
|
|
255
|
+
:root .dark & {
|
|
256
|
+
-webkit-text-fill-color: theme("colors.gray.300");
|
|
257
|
+
-webkit-box-shadow: inset 0 0 0 1000px theme("colors.gray.800");
|
|
258
|
+
box-shadow: inset 0 0 0 1000px theme("colors.gray.800");
|
|
259
|
+
background-color: theme("colors.gray.800");
|
|
260
|
+
caret-color: white;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
:root .light & {
|
|
264
|
+
-webkit-box-shadow: inset 0 0 0 1000px theme("colors.white");
|
|
265
|
+
box-shadow: inset 0 0 0 1000px theme("colors.white");
|
|
266
|
+
background-color: theme("colors.white");
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|