@ibis-design/svelte 0.6.0 → 0.7.1
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/README.md +24 -39
- package/dist/components/buttons/Button.svelte +1 -1
- package/dist/components/buttons/Button.svelte.d.ts +1 -1
- package/dist/components/buttons/DropdownButton.svelte +1 -1
- package/dist/components/buttons/DropdownButton.svelte.d.ts +1 -1
- package/dist/components/buttons/PillTab.svelte +1 -1
- package/dist/components/buttons/PillTab.svelte.d.ts +1 -1
- package/dist/components/containers/Banner.svelte +1 -1
- package/dist/components/containers/Banner.svelte.d.ts +1 -1
- package/dist/components/containers/Card.svelte +2 -2
- package/dist/components/containers/TipIndicator.svelte +1 -1
- package/dist/components/containers/TipIndicator.svelte.d.ts +1 -1
- package/dist/components/containers/Toaster.svelte +1 -1
- package/dist/components/containers/Toaster.svelte.d.ts +1 -1
- package/dist/components/inputs/Checkbox.svelte +1 -1
- package/dist/components/inputs/Checkbox.svelte.d.ts +1 -1
- package/dist/components/inputs/Chips.svelte +1 -1
- package/dist/components/inputs/Chips.svelte.d.ts +1 -1
- package/dist/components/inputs/Dropdown.svelte +1 -1
- package/dist/components/inputs/Dropdown.svelte.d.ts +1 -1
- package/dist/components/inputs/Radio.svelte +1 -1
- package/dist/components/inputs/Radio.svelte.d.ts +1 -1
- package/dist/components/inputs/Switch.svelte +1 -1
- package/dist/components/inputs/Switch.svelte.d.ts +1 -1
- package/dist/components/inputs/TextArea.svelte +1 -1
- package/dist/components/inputs/TextArea.svelte.d.ts +1 -1
- package/dist/components/inputs/TextInput.svelte +1 -1
- package/dist/components/inputs/TextInput.svelte.d.ts +1 -1
- package/dist/components/inputs/TextLink.svelte +1 -1
- package/dist/components/inputs/TextLink.svelte.d.ts +1 -1
- package/dist/layouts/AppLayout.svelte +2 -2
- package/dist/layouts/AuthLayout.svelte +2 -2
- package/dist/layouts/DashboardLayout.svelte +2 -2
- package/package.json +49 -49
- package/dist/components/buttons/button.css +0 -193
- package/dist/components/buttons/dropdownButton.css +0 -82
- package/dist/components/buttons/pillTab.css +0 -59
- package/dist/components/containers/banner.css +0 -155
- package/dist/components/containers/tipIndicator.css +0 -79
- package/dist/components/containers/toaster.css +0 -137
- package/dist/components/containers/tooltip.css +0 -0
- package/dist/components/inputs/checkbox.css +0 -103
- package/dist/components/inputs/chips.css +0 -76
- package/dist/components/inputs/dropdown.css +0 -106
- package/dist/components/inputs/radio.css +0 -108
- package/dist/components/inputs/switch.css +0 -68
- package/dist/components/inputs/textInput.css +0 -152
- package/dist/components/inputs/textarea.css +0 -91
- package/dist/components/inputs/textlink.css +0 -163
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
.ibis-dropdown {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: inline-block;
|
|
4
|
-
width: fit-content;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.ibis-dropdown__trigger {
|
|
8
|
-
all: unset;
|
|
9
|
-
display: block;
|
|
10
|
-
width: 100%;
|
|
11
|
-
cursor: pointer;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
/* Override TextInput styles inside trigger */
|
|
15
|
-
.ibis-dropdown__trigger .ibis-input {
|
|
16
|
-
gap: 0;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.ibis-dropdown__trigger .ibis-input__label-wrapper {
|
|
20
|
-
display: none;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ibis-dropdown__trigger .ibis-input__help,
|
|
24
|
-
.ibis-dropdown__trigger .ibis-input__error {
|
|
25
|
-
display: none;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
/* Default field wrapper radius */
|
|
29
|
-
.ibis-dropdown__trigger .ibis-input__field-wrapper {
|
|
30
|
-
border-radius: var(--border-radius-lg);
|
|
31
|
-
transition: border-radius var(--transition-duration-fast) var(--transition-timing-default);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* ↓ ADDED — remove bottom radius on input when open so it connects to menu */
|
|
35
|
-
.ibis-dropdown--open .ibis-dropdown__trigger .ibis-input__field-wrapper {
|
|
36
|
-
border-bottom-left-radius: 0;
|
|
37
|
-
border-bottom-right-radius: 0;
|
|
38
|
-
border-bottom-color: transparent;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/* Menu */
|
|
42
|
-
.ibis-dropdown__menu {
|
|
43
|
-
position: absolute;
|
|
44
|
-
width: 100%;
|
|
45
|
-
background-color: var(--color-white);
|
|
46
|
-
border: 2px solid var(--color-primary-950);
|
|
47
|
-
/* ↓ CHANGED — removed top-left and top-right radius to connect with input */
|
|
48
|
-
border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
|
|
49
|
-
border-top: none; /* ↓ ADDED — removes double border between input and menu */
|
|
50
|
-
margin-top: 0; /* ↓ CHANGED — removed gap so menu connects to input */
|
|
51
|
-
z-index: 10;
|
|
52
|
-
list-style: none;
|
|
53
|
-
padding: 0;
|
|
54
|
-
overflow: hidden;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/* Dividers between items */
|
|
58
|
-
.ibis-dropdown__menu li + li {
|
|
59
|
-
border-top: 1px solid var(--color-neutral-200);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* Menu items */
|
|
63
|
-
.ibis-dropdown__item {
|
|
64
|
-
all: unset;
|
|
65
|
-
display: flex;
|
|
66
|
-
align-items: center;
|
|
67
|
-
justify-content: center;
|
|
68
|
-
width: 100%;
|
|
69
|
-
box-sizing: border-box;
|
|
70
|
-
padding: var(--spacing-3) var(--spacing-4);
|
|
71
|
-
cursor: pointer;
|
|
72
|
-
font-family: var(--font-family-sans);
|
|
73
|
-
font-size: var(--font-size-normal-text-default);
|
|
74
|
-
font-weight: var(--font-weight-medium);
|
|
75
|
-
color: var(--color-neutral-900);
|
|
76
|
-
text-align: center;
|
|
77
|
-
transition: background-color var(--transition-duration-fast) var(--transition-timing-default);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.ibis-dropdown__item:hover {
|
|
81
|
-
background-color: var(--color-primary-400);
|
|
82
|
-
color: var(--color-white);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/* ↓ CHANGED — scoped to li aria-selected for correct specificity */
|
|
86
|
-
li[aria-selected='true'] .ibis-dropdown__item {
|
|
87
|
-
background-color: var(--color-primary-500);
|
|
88
|
-
color: var(--color-white);
|
|
89
|
-
font-weight: var(--font-weight-bold);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
li[aria-selected='true'] .ibis-dropdown__item:hover {
|
|
93
|
-
background-color: var(--color-primary-700);
|
|
94
|
-
color: var(--color-white);
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
.ibis-dropdown__item:focus {
|
|
98
|
-
outline: none;
|
|
99
|
-
background-color: var(--color-neutral-200);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
/* Disabled */
|
|
103
|
-
.ibis-dropdown__trigger:disabled {
|
|
104
|
-
cursor: not-allowed;
|
|
105
|
-
opacity: 0.5;
|
|
106
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
.ibis-radio {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: var(--spacing-1);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.ibis-radio__label-wrapper {
|
|
8
|
-
display: flex;
|
|
9
|
-
flex-direction: column;
|
|
10
|
-
gap: 2px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.ibis-radio__label {
|
|
14
|
-
font-size: var(--font-size-normal-text-default);
|
|
15
|
-
color: var(--color-neutral-700);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.ibis-radio__description {
|
|
19
|
-
font-size: var(--font-size-normal-text-sm);
|
|
20
|
-
color: var(--color-neutral-500);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ibis-radio__control {
|
|
24
|
-
display: inline-flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
gap: var(--spacing-2);
|
|
27
|
-
cursor: pointer;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.ibis-radio__input {
|
|
31
|
-
display: none;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ibis-radio__circle {
|
|
35
|
-
width: 20px;
|
|
36
|
-
height: 20px;
|
|
37
|
-
border-radius: 999px;
|
|
38
|
-
border: var(--border-width-default) solid var(--color-neutral-300);
|
|
39
|
-
display: flex;
|
|
40
|
-
align-items: center;
|
|
41
|
-
justify-content: center;
|
|
42
|
-
transition:
|
|
43
|
-
box-shadow var(--transition-duration-normal) var(--transition-timing-default),
|
|
44
|
-
border-color var(--transition-duration-normal) var(--transition-timing-default),
|
|
45
|
-
background var(--transition-duration-normal) var(--transition-timing-default);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.ibis-radio__dot {
|
|
49
|
-
width: 8px;
|
|
50
|
-
height: 8px;
|
|
51
|
-
border-radius: 999px;
|
|
52
|
-
background: transparent;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.ibis-radio__dot--active {
|
|
56
|
-
background: var(--color-primary-900);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.ibis-radio__text {
|
|
60
|
-
font-size: var(--font-size-normal-text-default);
|
|
61
|
-
color: var(--color-text-default);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
.ibis-radio__help {
|
|
65
|
-
font-size: var(--font-size-normal-text-sm);
|
|
66
|
-
color: var(--color-neutral-500);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
.ibis-radio__error {
|
|
70
|
-
font-size: var(--font-size-normal-text-sm);
|
|
71
|
-
color: var(--color-status-error);
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
.ibis-radio--disabled {
|
|
75
|
-
opacity: var(--opacity-9);
|
|
76
|
-
cursor: not-allowed;
|
|
77
|
-
}
|
|
78
|
-
.ibis-radio--disabled .ibis-radio__circle {
|
|
79
|
-
border-color: var(--color-neutral-200);
|
|
80
|
-
background-color: var(--color-neutral-160);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.ibis-radio__input:checked + .ibis-radio__circle {
|
|
84
|
-
border-color: var(--color-primary-900);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.ibis-radio:not(.ibis-radio--disabled) .ibis-radio__control:hover .ibis-radio__circle {
|
|
88
|
-
box-shadow: 0 0 0 4px var(--color-neutral-200);
|
|
89
|
-
border-color: var(--color-neutral-700);
|
|
90
|
-
transform: scale(1.05);
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
.ibis-radio:not(.ibis-radio--disabled)
|
|
94
|
-
.ibis-radio__control:hover
|
|
95
|
-
.ibis-radio__input:checked
|
|
96
|
-
+ .ibis-radio__circle {
|
|
97
|
-
box-shadow: 0 0 0 4px var(--color-primary-200);
|
|
98
|
-
border-color: var(--color-primary-900);
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
.ibis-radio--invalid .ibis-radio__circle {
|
|
102
|
-
border-color: var(--color-status-error);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
.ibis-radio--invalid .ibis-radio__control:hover .ibis-radio__circle {
|
|
106
|
-
box-shadow: 0 0 0 4px #ffb3ad;
|
|
107
|
-
border-color: var(--color-status-error);
|
|
108
|
-
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
.ibis-switch {
|
|
2
|
-
display: inline-flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
.ibis-switch__control {
|
|
7
|
-
display: inline-flex;
|
|
8
|
-
align-items: center;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
gap: var(--spacing-1);
|
|
11
|
-
user-select: none;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.ibis-switch__input {
|
|
15
|
-
display: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/* Track */
|
|
19
|
-
.ibis-switch__track {
|
|
20
|
-
width: 32px;
|
|
21
|
-
height: 20px;
|
|
22
|
-
background: var(--color-neutral-200);
|
|
23
|
-
border-radius: 999px;
|
|
24
|
-
position: relative;
|
|
25
|
-
transition:
|
|
26
|
-
background var(--transition-duration-normal) var(--transition-timing-default),
|
|
27
|
-
box-shadow var(--transition-duration-normal) var(--transition-timing-default);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/* Thumb */
|
|
31
|
-
.ibis-switch__thumb {
|
|
32
|
-
width: 16px;
|
|
33
|
-
height: 16px;
|
|
34
|
-
background: var(--color-white);
|
|
35
|
-
border-radius: 999px;
|
|
36
|
-
position: absolute;
|
|
37
|
-
top: 2px;
|
|
38
|
-
left: 2px;
|
|
39
|
-
transition:
|
|
40
|
-
transform var(--transition-duration-normal) var(--transition-timing-default),
|
|
41
|
-
background var(--transition-duration-normal) var(--transition-timing-default);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ibis-switch__input:checked + .ibis-switch__track {
|
|
45
|
-
background: var(--color-primary-700);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.ibis-switch__input:checked + .ibis-switch__track .ibis-switch__thumb {
|
|
49
|
-
transform: translateX(12px);
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/* Disabled state */
|
|
53
|
-
.ibis-switch--disabled {
|
|
54
|
-
opacity: var(--opacity-7);
|
|
55
|
-
cursor: not-allowed;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.ibis-switch--disabled .ibis-switch__track {
|
|
59
|
-
background: var(--color-neutral-200);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.ibis-switch--disabled .ibis-switch__thumb {
|
|
63
|
-
background: var(--color-neutral-100);
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
.ibis-switch--disabled .ibis-switch__control {
|
|
67
|
-
cursor: not-allowed;
|
|
68
|
-
}
|
|
@@ -1,152 +0,0 @@
|
|
|
1
|
-
.ibis-input {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: var(--spacing-1);
|
|
5
|
-
width: 100%;
|
|
6
|
-
max-width: 300px;
|
|
7
|
-
max-height: 4rem;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.ibis-input__label {
|
|
11
|
-
font-size: var(--font-size-normal-text-default);
|
|
12
|
-
color: var(--color-neutral-700);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.ibis-input__label-wrapper {
|
|
16
|
-
display: flex;
|
|
17
|
-
flex-direction: column;
|
|
18
|
-
gap: 2px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.ibis-input__description {
|
|
22
|
-
font-size: var(--font-size-normal-text-sm);
|
|
23
|
-
color: var(--color-neutral-500);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
.ibis-input__wrapper {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: stretch;
|
|
29
|
-
border-radius: var(--border-radius-lg);
|
|
30
|
-
overflow: hidden;
|
|
31
|
-
background-color: var(--color-neutral-100);
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.ibis-input__prepend {
|
|
35
|
-
display: flex;
|
|
36
|
-
align-items: center;
|
|
37
|
-
padding: 0 var(--spacing-3);
|
|
38
|
-
border: var(--border-width-default) solid var(--color-neutral-200);
|
|
39
|
-
border-right: none;
|
|
40
|
-
border-radius: var(--border-radius-lg) 0 0 var(--border-radius-lg);
|
|
41
|
-
position: relative;
|
|
42
|
-
white-space: nowrap;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.ibis-input__field-wrapper {
|
|
46
|
-
display: flex;
|
|
47
|
-
align-items: center;
|
|
48
|
-
flex: 1;
|
|
49
|
-
border: var(--border-width-default) solid var(--color-neutral-200);
|
|
50
|
-
/* border-left: none; */
|
|
51
|
-
border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.ibis-input__wrapper--with-prepend .ibis-input__field-wrapper {
|
|
55
|
-
border-left: none;
|
|
56
|
-
border-radius: 0 var(--border-radius-lg) var(--border-radius-lg) 0;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
.ibis-input__wrapper:not(.ibis-input__wrapper--with-prepend) .ibis-input__field-wrapper {
|
|
60
|
-
border-radius: var(--border-radius-lg);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.ibis-input__prepend::after {
|
|
64
|
-
content: '';
|
|
65
|
-
position: absolute;
|
|
66
|
-
right: 0;
|
|
67
|
-
top: 0;
|
|
68
|
-
bottom: 0;
|
|
69
|
-
width: 2px;
|
|
70
|
-
background-color: var(--color-neutral-200);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.ibis-input__field {
|
|
74
|
-
flex: 1;
|
|
75
|
-
width: 100%;
|
|
76
|
-
min-width: 0;
|
|
77
|
-
border: none;
|
|
78
|
-
outline: none;
|
|
79
|
-
background: transparent;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
.ibis-input__prefix,
|
|
83
|
-
.ibis-input__suffix {
|
|
84
|
-
display: inline-flex;
|
|
85
|
-
align-items: center;
|
|
86
|
-
padding: 0 var(--spacing-2);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.ibis-input__help {
|
|
90
|
-
font-size: var(--font-size-normal-text-sm);
|
|
91
|
-
color: var(--color-neutral-500);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.ibis-input__error {
|
|
95
|
-
font-size: var(--font-size-normal-text-sm);
|
|
96
|
-
color: var(--color-status-error);
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/* sizes */
|
|
100
|
-
.ibis-input--sm .ibis-input__field-wrapper {
|
|
101
|
-
padding: var(--spacing-1) var(--spacing-2);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.ibis-input--md .ibis-input__field-wrapper {
|
|
105
|
-
padding: var(--spacing-2);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.ibis-input--lg .ibis-input__field-wrapper {
|
|
109
|
-
padding: var(--spacing-3) var(--spacing-4);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.ibis-input:not(.ibis-input--disabled):not(.ibis-input--invalid)
|
|
113
|
-
.ibis-input__field-wrapper:not(:focus-within):hover {
|
|
114
|
-
border-color: var(--color-neutral-300);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
.ibis-input__field-wrapper:focus-within {
|
|
118
|
-
border-color: var(--color-primary-400);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.ibis-input--invalid .ibis-input__field-wrapper {
|
|
122
|
-
border-color: var(--color-status-error);
|
|
123
|
-
border-width: var(--border-width-thin);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.ibis-input--invalid:not(.ibis-input--disabled):not(:focus-within)
|
|
127
|
-
.ibis-input__field-wrapper:hover {
|
|
128
|
-
border-width: var(--border-width-default);
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.ibis-input--invalid:not(.ibis-input--disabled) .ibis-input__field-wrapper:focus-within {
|
|
132
|
-
border-width: var(--border-width-default);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
.ibis-input__wrapper:not(:focus-within):hover .ibis-input__prepend::after {
|
|
136
|
-
background-color: var(--color-neutral-300);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
.ibis-input__wrapper:focus-within .ibis-input__prepend::after {
|
|
140
|
-
background-color: var(--color-primary-400);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
.ibis-input--invalid .ibis-input__prepend::after {
|
|
144
|
-
background-color: var(--color-status-error);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
/* disabled */
|
|
148
|
-
.ibis-input--disabled .ibis-input__prepend,
|
|
149
|
-
.ibis-input--disabled .ibis-input__field-wrapper {
|
|
150
|
-
background-color: var(--color-neutral-400);
|
|
151
|
-
opacity: 0.5;
|
|
152
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
.ibis-input {
|
|
2
|
-
display: flex;
|
|
3
|
-
flex-direction: column;
|
|
4
|
-
gap: var(--spacing-1);
|
|
5
|
-
width: 100%;
|
|
6
|
-
max-width: 400px;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.ibis-input__label {
|
|
10
|
-
font-size: var(--font-size-normal-text-default);
|
|
11
|
-
color: var(--color-neutral-700);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
.ibis-input__wrapper {
|
|
15
|
-
display: flex;
|
|
16
|
-
flex-direction: column0;
|
|
17
|
-
border-radius: var(--border-radius-lg);
|
|
18
|
-
overflow: hidden;
|
|
19
|
-
background-color: var(--color-neutral-100);
|
|
20
|
-
border: var(--border-width-default) solid var(--color-neutral-200);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ibis-input__field {
|
|
24
|
-
flex: 1;
|
|
25
|
-
width: 100%;
|
|
26
|
-
min-width: 0;
|
|
27
|
-
border: none;
|
|
28
|
-
outline: none;
|
|
29
|
-
background: transparent;
|
|
30
|
-
font-family: var(--font-family-sans);
|
|
31
|
-
font-size: inherit;
|
|
32
|
-
resize: vertical;
|
|
33
|
-
/* min-height: 80px; */
|
|
34
|
-
line-height: 1.4;
|
|
35
|
-
display: block;
|
|
36
|
-
box-sizing: border-box;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.ibis-input__help {
|
|
40
|
-
font-size: var(--font-size-normal-text-sm);
|
|
41
|
-
color: var(--color-neutral-500);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
.ibis-input__error {
|
|
45
|
-
font-size: var(--font-size-normal-text-sm);
|
|
46
|
-
color: var(--color-status-error);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* Sizes */
|
|
50
|
-
.ibis-input--sm .ibis-input__field {
|
|
51
|
-
padding: var(--spacing-1) var(--spacing-2);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.ibis-input--md .ibis-input__field {
|
|
55
|
-
padding: var(--spacing-2);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.ibis-input--lg .ibis-input__field {
|
|
59
|
-
padding: var(--spacing-3) var(--spacing-4);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
/* Hover */
|
|
63
|
-
.ibis-input:not(.ibis-input--disabled):not(.ibis-input--invalid)
|
|
64
|
-
.ibis-input__wrapper:not(:focus-within):hover {
|
|
65
|
-
border-color: var(--color-neutral-300);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/* Focus */
|
|
69
|
-
.ibis-input__wrapper:focus-within {
|
|
70
|
-
border-color: var(--color-primary-400);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/* Invalid */
|
|
74
|
-
.ibis-input--invalid .ibis-input__wrapper {
|
|
75
|
-
border-color: var(--color-status-error);
|
|
76
|
-
border-width: var(--border-width-thin);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.ibis-input--invalid:not(.ibis-input--disabled):not(:focus-within) .ibis-input__wrapper:hover {
|
|
80
|
-
border-width: var(--border-width-default);
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
.ibis-input--invalid:not(.ibis-input--disabled) .ibis-input__wrapper:focus-within {
|
|
84
|
-
border-width: var(--border-width-default);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/* Disabled */
|
|
88
|
-
.ibis-input--disabled .ibis-input__wrapper {
|
|
89
|
-
background-color: var(--color-neutral-400);
|
|
90
|
-
opacity: 0.5;
|
|
91
|
-
}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
.ibis-link {
|
|
2
|
-
position: relative;
|
|
3
|
-
display: inline-flex;
|
|
4
|
-
align-items: center;
|
|
5
|
-
gap: var(--spacing-1);
|
|
6
|
-
|
|
7
|
-
color: #522398; /*hardcoded*/
|
|
8
|
-
text-decoration: none;
|
|
9
|
-
cursor: pointer;
|
|
10
|
-
|
|
11
|
-
transition:
|
|
12
|
-
color var(--transition-duration-fast) var(--transition-timing-default),
|
|
13
|
-
opacity var(--transition-duration-fast) var(--transition-timing-default);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/* content */
|
|
17
|
-
.ibis-link__content {
|
|
18
|
-
display: inline-flex;
|
|
19
|
-
align-items: center;
|
|
20
|
-
gap: var(--spacing-1);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.ibis-link__content--hidden {
|
|
24
|
-
visibility: hidden;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
/* sizes */
|
|
28
|
-
.ibis-link--sm {
|
|
29
|
-
font-size: var(--font-size-normal-text-sm);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.ibis-link--md {
|
|
33
|
-
font-size: var(--font-size-normal-text-default);
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.ibis-link--lg {
|
|
37
|
-
font-size: var(--font-size-normal-text-lg);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/* underline */
|
|
41
|
-
.ibis-link--underline-always {
|
|
42
|
-
text-decoration: underline;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.ibis-link--underline-hover:hover {
|
|
46
|
-
text-decoration: underline;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.ibis-link--underline-none {
|
|
50
|
-
text-decoration: none;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/* states */
|
|
54
|
-
.ibis-link:hover {
|
|
55
|
-
color: #522398; /*hardcoded*/
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.ibis-link:active {
|
|
59
|
-
color: var(--color-primary-600);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.ibis-link:focus-visible {
|
|
63
|
-
outline: 2px solid #522398; /*hardcoded*/
|
|
64
|
-
outline-offset: 2px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
/* disabled */
|
|
68
|
-
.ibis-link--disabled {
|
|
69
|
-
color: #8d8d8e; /*hardcoded*/
|
|
70
|
-
cursor: not-allowed;
|
|
71
|
-
pointer-events: none;
|
|
72
|
-
text-decoration: none;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* loading */
|
|
76
|
-
.ibis-link--loading {
|
|
77
|
-
cursor: not-allowed;
|
|
78
|
-
pointer-events: none;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.ibis-link__loader {
|
|
82
|
-
position: absolute;
|
|
83
|
-
width: 1em;
|
|
84
|
-
height: 1em;
|
|
85
|
-
border: var(--border-width-default) solid currentColor;
|
|
86
|
-
border-top-color: transparent;
|
|
87
|
-
border-radius: 50%;
|
|
88
|
-
animation: ibis-spin 0.8s linear infinite;
|
|
89
|
-
top: 50%;
|
|
90
|
-
left: 50%;
|
|
91
|
-
transform: translate(-50%, -50%);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
@keyframes ibis-spin {
|
|
95
|
-
from {
|
|
96
|
-
transform: translate(-50%, -50%) rotate(0deg);
|
|
97
|
-
}
|
|
98
|
-
to {
|
|
99
|
-
transform: translate(-50%, -50%) rotate(360deg);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
/* skeleton */
|
|
104
|
-
.ibis-link--skeleton {
|
|
105
|
-
position: relative;
|
|
106
|
-
overflow: hidden;
|
|
107
|
-
color: transparent;
|
|
108
|
-
cursor: default;
|
|
109
|
-
pointer-events: none;
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.ibis-link__content--skeleton {
|
|
113
|
-
position: relative;
|
|
114
|
-
color: transparent;
|
|
115
|
-
overflow: hidden;
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
.ibis-link__content--skeleton::after {
|
|
119
|
-
content: '';
|
|
120
|
-
position: absolute;
|
|
121
|
-
inset: 0;
|
|
122
|
-
background-color: var(--color-neutral-400);
|
|
123
|
-
z-index: 1;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.ibis-link__content--skeleton::before {
|
|
127
|
-
content: '';
|
|
128
|
-
position: absolute;
|
|
129
|
-
inset: 0;
|
|
130
|
-
background: linear-gradient(
|
|
131
|
-
90deg,
|
|
132
|
-
rgba(255, 255, 255, 0.25) 0%,
|
|
133
|
-
rgba(255, 255, 255, 0.6) 50%,
|
|
134
|
-
rgba(255, 255, 255, 0.25) 100%
|
|
135
|
-
);
|
|
136
|
-
transform: translateX(-100%);
|
|
137
|
-
animation: ibis-shimmer 2s infinite;
|
|
138
|
-
z-index: 2;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
@keyframes ibis-shimmer {
|
|
142
|
-
0% {
|
|
143
|
-
transform: translateX(-100%);
|
|
144
|
-
}
|
|
145
|
-
100% {
|
|
146
|
-
transform: translateX(100%);
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/* Icons */
|
|
151
|
-
.ibis-link__icon {
|
|
152
|
-
display: inline-flex;
|
|
153
|
-
align-items: center;
|
|
154
|
-
justify-content: center;
|
|
155
|
-
|
|
156
|
-
width: 0.75em;
|
|
157
|
-
height: 0.75em;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.ibis-link__icon :global(svg) {
|
|
161
|
-
width: 100%;
|
|
162
|
-
height: 100%;
|
|
163
|
-
}
|