mautourco-components 0.2.38 → 0.2.40
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/components/atoms/Inputs/DropdownInput/DropdownInput.js +9 -9
- package/dist/components/organisms/QuoteHeader/QuoteHeader.js +17 -2
- package/dist/styles/components/dropdown.css +22 -22
- package/package.json +1 -1
- package/src/components/atoms/Inputs/DropdownInput/DropdownInput.tsx +13 -13
- package/src/components/organisms/QuoteHeader/QuoteHeader.tsx +7 -3
- package/src/styles/components/dropdown.css +22 -22
|
@@ -17,25 +17,25 @@ var DropdownInput = function (_a) {
|
|
|
17
17
|
setIsOpen(false);
|
|
18
18
|
};
|
|
19
19
|
var getStateClasses = function () {
|
|
20
|
-
var baseClasses = isOpen ? 'dropdown-input--open' : '';
|
|
20
|
+
var baseClasses = isOpen ? 'mtc-dropdown-input--open' : '';
|
|
21
21
|
switch (state) {
|
|
22
22
|
case 'loading':
|
|
23
|
-
return "".concat(baseClasses, " dropdown-input--loading");
|
|
23
|
+
return "".concat(baseClasses, " mtc-dropdown-input--loading");
|
|
24
24
|
case 'selected':
|
|
25
|
-
return "".concat(baseClasses, " dropdown-input--selected");
|
|
25
|
+
return "".concat(baseClasses, " mtc-dropdown-input--selected");
|
|
26
26
|
case 'error':
|
|
27
|
-
return "".concat(baseClasses, " dropdown-input--error");
|
|
27
|
+
return "".concat(baseClasses, " mtc-dropdown-input--error");
|
|
28
28
|
case 'disabled':
|
|
29
|
-
return "".concat(baseClasses, " dropdown-input--disabled");
|
|
29
|
+
return "".concat(baseClasses, " mtc-dropdown-input--disabled");
|
|
30
30
|
default:
|
|
31
|
-
return "".concat(baseClasses, " dropdown-input--default");
|
|
31
|
+
return "".concat(baseClasses, " mtc-dropdown-input--default");
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
34
|
var getIcon = function () {
|
|
35
35
|
if (state === 'loading') {
|
|
36
|
-
return _jsx(Spinner, { size: "sm", className: "dropdown-input__icon" });
|
|
36
|
+
return _jsx(Spinner, { size: "sm", className: "mtc-dropdown-input__icon" });
|
|
37
37
|
}
|
|
38
|
-
return (_jsx(Icon, { name: isOpen ? 'chevron-up' : 'chevron-down', size: "sm", className: "dropdown-input__icon dropdown-input__icon--chevron" }));
|
|
38
|
+
return (_jsx(Icon, { name: isOpen ? 'chevron-up' : 'chevron-down', size: "sm", className: "mtc-dropdown-input__icon mtc-dropdown-input__icon--chevron" }));
|
|
39
39
|
};
|
|
40
40
|
var displayText = state === 'loading' ? 'Loading...' : value || placeholder;
|
|
41
41
|
useEffect(function () {
|
|
@@ -49,6 +49,6 @@ var DropdownInput = function (_a) {
|
|
|
49
49
|
document.removeEventListener('mousedown', handleClickOutside);
|
|
50
50
|
};
|
|
51
51
|
}, []);
|
|
52
|
-
return (_jsxs("div", { ref: dropdownRef, className: "dropdown-container ".concat(className), children: [_jsxs("div", { className: "dropdown-input ".concat(getStateClasses()), onClick: handleClick, children: [_jsx("span", { className: "dropdown-input__text", children: displayText }), getIcon()] }), isOpen && options.length > 0 && (_jsx("div", { className: "dropdown-menu", children: options.map(function (option, index) { return (_jsx("div", { className: "dropdown-option", onClick: function () { return handleOptionSelect(option); }, children: option }, index)); }) }))] }));
|
|
52
|
+
return (_jsxs("div", { ref: dropdownRef, className: "mtc-dropdown-container ".concat(className), children: [_jsxs("div", { className: "mtc-dropdown-input ".concat(getStateClasses()), onClick: handleClick, children: [_jsx("span", { className: "mtc-dropdown-input__text", children: displayText }), getIcon()] }), isOpen && options.length > 0 && (_jsx("div", { className: "mtc-dropdown-menu", children: options.map(function (option, index) { return (_jsx("div", { className: "mtc-dropdown-option", onClick: function () { return handleOptionSelect(option); }, children: option }, index)); }) }))] }));
|
|
53
53
|
};
|
|
54
54
|
export default DropdownInput;
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
13
|
+
import { useState } from 'react';
|
|
2
14
|
import Button from '../../atoms/Button/Button';
|
|
3
15
|
import DropdownInput from '../../atoms/Inputs/DropdownInput/DropdownInput';
|
|
4
16
|
import Input from '../../atoms/Inputs/Input/Input';
|
|
@@ -21,10 +33,13 @@ var filterConfig = {
|
|
|
21
33
|
};
|
|
22
34
|
export function QuoteHeader(props) {
|
|
23
35
|
var _a = props.current, current = _a === void 0 ? 'quotation' : _a, onNavigate = props.onNavigate, onNewQuote = props.onNewQuote, onFilterChange = props.onFilterChange;
|
|
36
|
+
var _b = useState({}), currentValue = _b[0], setCurrentValue = _b[1];
|
|
24
37
|
return (_jsxs("div", { className: "quote-header", children: [_jsx(Heading, { level: 4, as: "h1", className: "quote-header__title", color: "accent", children: "Quotation & Booking" }), _jsxs("div", { className: "flex gap-4", children: [_jsx(Button, { variant: current === 'quotation' ? 'primary' : 'outline-primary', className: "quote-header__button", onClick: function () { return onNavigate('quotation'); }, children: "Quotation" }), _jsx(Button, { variant: current === 'booking' ? 'primary' : 'outline-primary', className: "quote-header__button", onClick: function () { return onNavigate('booking'); }, children: "Booking" })] }), _jsxs("div", { className: "quote-header__search-container", children: [_jsx(Input, { placeholder: "Search", icon: "search", iconPosition: "leading", className: "quote-header__search" }), _jsx(Button, { variant: "primary", leadingIcon: "plus-circle", iconSize: "md", size: "sm", onClick: onNewQuote, children: "New quote" })] }), _jsx("div", { className: "quote-header__filters", children: Object.entries(filterConfig).map(function (_a) {
|
|
25
38
|
var key = _a[0], value = _a[1];
|
|
26
|
-
return (_jsx(DropdownInput, { placeholder: value.placeholder, options: value.options, onSelect: function (value) {
|
|
27
|
-
|
|
39
|
+
return (_jsx(DropdownInput, { placeholder: value.placeholder, options: value.options, value: currentValue[key], onSelect: function (value) {
|
|
40
|
+
var _a;
|
|
41
|
+
onFilterChange === null || onFilterChange === void 0 ? void 0 : onFilterChange(key, value);
|
|
42
|
+
setCurrentValue(__assign(__assign({}, currentValue), (_a = {}, _a[key] = value, _a)));
|
|
28
43
|
} }, key));
|
|
29
44
|
}) })] }));
|
|
30
45
|
}
|
|
@@ -2076,13 +2076,13 @@
|
|
|
2076
2076
|
|
|
2077
2077
|
/* DropdownInput Component Styles */
|
|
2078
2078
|
|
|
2079
|
-
.dropdown-container {
|
|
2079
|
+
.mtc-dropdown-container {
|
|
2080
2080
|
position: relative;
|
|
2081
2081
|
display: block;
|
|
2082
2082
|
width: 100%;
|
|
2083
2083
|
}
|
|
2084
2084
|
|
|
2085
|
-
.dropdown-input {
|
|
2085
|
+
.mtc-dropdown-input {
|
|
2086
2086
|
display: flex;
|
|
2087
2087
|
align-items: center;
|
|
2088
2088
|
justify-content: space-between;
|
|
@@ -2097,12 +2097,12 @@
|
|
|
2097
2097
|
box-sizing: border-box;
|
|
2098
2098
|
}
|
|
2099
2099
|
|
|
2100
|
-
.dropdown-input:hover:not(.dropdown-input--disabled) {
|
|
2100
|
+
.mtc-dropdown-input:hover:not(.mtc-dropdown-input--disabled) {
|
|
2101
2101
|
border-color: var(--color-slate-600);
|
|
2102
2102
|
background-color: var(--color-slate-50);
|
|
2103
2103
|
}
|
|
2104
2104
|
|
|
2105
|
-
.dropdown-input__text {
|
|
2105
|
+
.mtc-dropdown-input__text {
|
|
2106
2106
|
flex: 1;
|
|
2107
2107
|
font-family: var(--typography-font-family-sans, 'Inter', sans-serif);
|
|
2108
2108
|
font-size: 1rem;
|
|
@@ -2113,69 +2113,69 @@
|
|
|
2113
2113
|
text-overflow: ellipsis;
|
|
2114
2114
|
}
|
|
2115
2115
|
|
|
2116
|
-
.dropdown-input__icon {
|
|
2116
|
+
.mtc-dropdown-input__icon {
|
|
2117
2117
|
flex-shrink: 0;
|
|
2118
2118
|
margin-left: 8px;
|
|
2119
2119
|
color: var(--color-slate-600);
|
|
2120
2120
|
transition: transform 0.2s ease-in-out;
|
|
2121
2121
|
}
|
|
2122
2122
|
|
|
2123
|
-
.dropdown-input__icon--loading {
|
|
2123
|
+
.mtc-dropdown-input__icon--loading {
|
|
2124
2124
|
animation: spin 1s linear infinite;
|
|
2125
2125
|
}
|
|
2126
2126
|
|
|
2127
|
-
.dropdown-input__icon--chevron {
|
|
2127
|
+
.mtc-dropdown-input__icon--chevron {
|
|
2128
2128
|
transition: transform 0.2s ease-in-out;
|
|
2129
2129
|
}
|
|
2130
2130
|
|
|
2131
|
-
.dropdown-input--open .dropdown-input__icon--chevron {
|
|
2131
|
+
.mtc-dropdown-input--open .mtc-dropdown-input__icon--chevron {
|
|
2132
2132
|
transform: rotate(180deg);
|
|
2133
2133
|
}
|
|
2134
2134
|
|
|
2135
2135
|
/* States */
|
|
2136
2136
|
|
|
2137
|
-
.dropdown-input--default .dropdown-input__text {
|
|
2137
|
+
.mtc-dropdown-input--default .mtc-dropdown-input__text {
|
|
2138
2138
|
color: var(--color-slate-500);
|
|
2139
2139
|
}
|
|
2140
2140
|
|
|
2141
|
-
.dropdown-input--loading .dropdown-input__text {
|
|
2141
|
+
.mtc-dropdown-input--loading .mtc-dropdown-input__text {
|
|
2142
2142
|
color: var(--color-slate-500);
|
|
2143
2143
|
}
|
|
2144
2144
|
|
|
2145
|
-
.dropdown-input--selected .dropdown-input__text {
|
|
2145
|
+
.mtc-dropdown-input--selected .mtc-dropdown-input__text {
|
|
2146
2146
|
color: var(--color-slate-900);
|
|
2147
2147
|
}
|
|
2148
2148
|
|
|
2149
|
-
.dropdown-input--error {
|
|
2149
|
+
.mtc-dropdown-input--error {
|
|
2150
2150
|
background-color: var(--color-red-50);
|
|
2151
2151
|
border-color: var(--color-red-500);
|
|
2152
2152
|
}
|
|
2153
2153
|
|
|
2154
|
-
.dropdown-input--error .dropdown-input__text {
|
|
2154
|
+
.mtc-dropdown-input--error .mtc-dropdown-input__text {
|
|
2155
2155
|
color: var(--color-red-600);
|
|
2156
2156
|
}
|
|
2157
2157
|
|
|
2158
|
-
.dropdown-input--error .dropdown-input__icon {
|
|
2158
|
+
.mtc-dropdown-input--error .mtc-dropdown-input__icon {
|
|
2159
2159
|
color: var(--color-red-600);
|
|
2160
2160
|
}
|
|
2161
2161
|
|
|
2162
|
-
.dropdown-input--disabled {
|
|
2162
|
+
.mtc-dropdown-input--disabled {
|
|
2163
2163
|
background-color: var(--color-slate-100);
|
|
2164
2164
|
border-color: var(--color-slate-300, #d1d5db);
|
|
2165
2165
|
cursor: not-allowed;
|
|
2166
2166
|
}
|
|
2167
2167
|
|
|
2168
|
-
.dropdown-input--disabled .dropdown-input__text {
|
|
2168
|
+
.mtc-dropdown-input--disabled .mtc-dropdown-input__text {
|
|
2169
2169
|
color: var(--color-slate-400);
|
|
2170
2170
|
}
|
|
2171
2171
|
|
|
2172
|
-
.dropdown-input--disabled .dropdown-input__icon {
|
|
2172
|
+
.mtc-dropdown-input--disabled .mtc-dropdown-input__icon {
|
|
2173
2173
|
color: var(--color-slate-400);
|
|
2174
2174
|
}
|
|
2175
2175
|
|
|
2176
2176
|
/* Dropdown Menu */
|
|
2177
2177
|
|
|
2178
|
-
.dropdown-menu {
|
|
2178
|
+
.mtc-dropdown-menu {
|
|
2179
2179
|
position: absolute;
|
|
2180
2180
|
top: calc(100% + var(--multiselect-spacing-menu-gap, 0.75rem));
|
|
2181
2181
|
left: 0;
|
|
@@ -2197,7 +2197,7 @@
|
|
|
2197
2197
|
animation: dropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
2198
2198
|
}
|
|
2199
2199
|
|
|
2200
|
-
.dropdown-option {
|
|
2200
|
+
.mtc-dropdown-option {
|
|
2201
2201
|
padding: var(--multiselect-spacing-option-padding, 0.5rem 0.8125rem);
|
|
2202
2202
|
font-family: var(--typography-font-family-sans, 'Inter', sans-serif);
|
|
2203
2203
|
font-size: var(--input-font-size-default, 0.875rem);
|
|
@@ -2211,17 +2211,17 @@
|
|
|
2211
2211
|
gap: var(--multiselect-spacing-option-gap, 0.5rem);
|
|
2212
2212
|
}
|
|
2213
2213
|
|
|
2214
|
-
.dropdown-option:hover {
|
|
2214
|
+
.mtc-dropdown-option:hover {
|
|
2215
2215
|
background-color: var(--color-slate-50);
|
|
2216
2216
|
}
|
|
2217
2217
|
|
|
2218
|
-
.dropdown-option:active {
|
|
2218
|
+
.mtc-dropdown-option:active {
|
|
2219
2219
|
background-color: var(--color-slate-100);
|
|
2220
2220
|
}
|
|
2221
2221
|
|
|
2222
2222
|
/* Dropdown Footer */
|
|
2223
2223
|
|
|
2224
|
-
.dropdown-footer {
|
|
2224
|
+
.mtc-dropdown-footer {
|
|
2225
2225
|
padding: var(--multiselect-spacing-footer-padding, 0.5rem 1.25rem);
|
|
2226
2226
|
font-family: var(--typography-font-family-sans, 'Inter', sans-serif);
|
|
2227
2227
|
font-size: var(--input-font-size-default, 1rem);
|
package/package.json
CHANGED
|
@@ -37,31 +37,31 @@ const DropdownInput: React.FC<DropdownInputProps> = ({
|
|
|
37
37
|
};
|
|
38
38
|
|
|
39
39
|
const getStateClasses = () => {
|
|
40
|
-
const baseClasses = isOpen ? 'dropdown-input--open' : '';
|
|
40
|
+
const baseClasses = isOpen ? 'mtc-dropdown-input--open' : '';
|
|
41
41
|
switch (state) {
|
|
42
42
|
case 'loading':
|
|
43
|
-
return `${baseClasses} dropdown-input--loading`;
|
|
43
|
+
return `${baseClasses} mtc-dropdown-input--loading`;
|
|
44
44
|
case 'selected':
|
|
45
|
-
return `${baseClasses} dropdown-input--selected`;
|
|
45
|
+
return `${baseClasses} mtc-dropdown-input--selected`;
|
|
46
46
|
case 'error':
|
|
47
|
-
return `${baseClasses} dropdown-input--error`;
|
|
47
|
+
return `${baseClasses} mtc-dropdown-input--error`;
|
|
48
48
|
case 'disabled':
|
|
49
|
-
return `${baseClasses} dropdown-input--disabled`;
|
|
49
|
+
return `${baseClasses} mtc-dropdown-input--disabled`;
|
|
50
50
|
default:
|
|
51
|
-
return `${baseClasses} dropdown-input--default`;
|
|
51
|
+
return `${baseClasses} mtc-dropdown-input--default`;
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
const getIcon = () => {
|
|
56
56
|
if (state === 'loading') {
|
|
57
|
-
return <Spinner size="sm" className="dropdown-input__icon" />;
|
|
57
|
+
return <Spinner size="sm" className="mtc-dropdown-input__icon" />;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
return (
|
|
61
61
|
<Icon
|
|
62
62
|
name={isOpen ? 'chevron-up' : 'chevron-down'}
|
|
63
63
|
size="sm"
|
|
64
|
-
className="dropdown-input__icon dropdown-input__icon--chevron"
|
|
64
|
+
className="mtc-dropdown-input__icon mtc-dropdown-input__icon--chevron"
|
|
65
65
|
/>
|
|
66
66
|
);
|
|
67
67
|
};
|
|
@@ -83,18 +83,18 @@ const DropdownInput: React.FC<DropdownInputProps> = ({
|
|
|
83
83
|
}, []);
|
|
84
84
|
|
|
85
85
|
return (
|
|
86
|
-
<div ref={dropdownRef} className={`dropdown-container ${className}`}>
|
|
87
|
-
<div className={`dropdown-input ${getStateClasses()}`} onClick={handleClick}>
|
|
88
|
-
<span className="dropdown-input__text">{displayText}</span>
|
|
86
|
+
<div ref={dropdownRef} className={`mtc-dropdown-container ${className}`}>
|
|
87
|
+
<div className={`mtc-dropdown-input ${getStateClasses()}`} onClick={handleClick}>
|
|
88
|
+
<span className="mtc-dropdown-input__text">{displayText}</span>
|
|
89
89
|
{getIcon()}
|
|
90
90
|
</div>
|
|
91
91
|
|
|
92
92
|
{isOpen && options.length > 0 && (
|
|
93
|
-
<div className="dropdown-menu">
|
|
93
|
+
<div className="mtc-dropdown-menu">
|
|
94
94
|
{options.map((option, index) => (
|
|
95
95
|
<div
|
|
96
96
|
key={index}
|
|
97
|
-
className="dropdown-option"
|
|
97
|
+
className="mtc-dropdown-option"
|
|
98
98
|
onClick={() => handleOptionSelect(option)}>
|
|
99
99
|
{option}
|
|
100
100
|
</div>
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { useState } from 'react';
|
|
1
2
|
import Button from '../../atoms/Button/Button';
|
|
2
3
|
import DropdownInput from '../../atoms/Inputs/DropdownInput/DropdownInput';
|
|
3
4
|
import Input from '../../atoms/Inputs/Input/Input';
|
|
@@ -39,6 +40,7 @@ const filterConfig = {
|
|
|
39
40
|
|
|
40
41
|
export function QuoteHeader(props: QuoteHeaderProps) {
|
|
41
42
|
const { current = 'quotation', onNavigate, onNewQuote, onFilterChange } = props;
|
|
43
|
+
const [currentValue, setCurrentValue] = useState<Record<string, string>>({});
|
|
42
44
|
|
|
43
45
|
return (
|
|
44
46
|
<div className="quote-header">
|
|
@@ -81,9 +83,11 @@ export function QuoteHeader(props: QuoteHeaderProps) {
|
|
|
81
83
|
key={key}
|
|
82
84
|
placeholder={value.placeholder}
|
|
83
85
|
options={value.options}
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
value={currentValue[key]}
|
|
87
|
+
onSelect={(value) => {
|
|
88
|
+
onFilterChange?.(key as 'date' | 'clientType' | 'fileStatus', value);
|
|
89
|
+
setCurrentValue({ ...currentValue, [key]: value });
|
|
90
|
+
}}
|
|
87
91
|
/>
|
|
88
92
|
))}
|
|
89
93
|
</div>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/* DropdownInput Component Styles */
|
|
2
|
-
.dropdown-container {
|
|
2
|
+
.mtc-dropdown-container {
|
|
3
3
|
position: relative;
|
|
4
4
|
display: block;
|
|
5
5
|
width: 100%;
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
.dropdown-input {
|
|
8
|
+
.mtc-dropdown-input {
|
|
9
9
|
display: flex;
|
|
10
10
|
align-items: center;
|
|
11
11
|
justify-content: space-between;
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
box-sizing: border-box;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
.dropdown-input:hover:not(.dropdown-input--disabled) {
|
|
23
|
+
.mtc-dropdown-input:hover:not(.mtc-dropdown-input--disabled) {
|
|
24
24
|
border-color: var(--color-slate-600);
|
|
25
25
|
background-color: var(--color-slate-50);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
.dropdown-input__text {
|
|
28
|
+
.mtc-dropdown-input__text {
|
|
29
29
|
flex: 1;
|
|
30
30
|
font-family: var(--typography-font-family-sans, 'Inter', sans-serif);
|
|
31
31
|
font-size: 1rem;
|
|
@@ -36,67 +36,67 @@
|
|
|
36
36
|
text-overflow: ellipsis;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
.dropdown-input__icon {
|
|
39
|
+
.mtc-dropdown-input__icon {
|
|
40
40
|
flex-shrink: 0;
|
|
41
41
|
margin-left: 8px;
|
|
42
42
|
color: var(--color-slate-600);
|
|
43
43
|
transition: transform 0.2s ease-in-out;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.dropdown-input__icon--loading {
|
|
46
|
+
.mtc-dropdown-input__icon--loading {
|
|
47
47
|
animation: spin 1s linear infinite;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
.dropdown-input__icon--chevron {
|
|
50
|
+
.mtc-dropdown-input__icon--chevron {
|
|
51
51
|
transition: transform 0.2s ease-in-out;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
.dropdown-input--open .dropdown-input__icon--chevron {
|
|
54
|
+
.mtc-dropdown-input--open .mtc-dropdown-input__icon--chevron {
|
|
55
55
|
transform: rotate(180deg);
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
/* States */
|
|
59
|
-
.dropdown-input--default .dropdown-input__text {
|
|
59
|
+
.mtc-dropdown-input--default .mtc-dropdown-input__text {
|
|
60
60
|
color: var(--color-slate-500);
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
.dropdown-input--loading .dropdown-input__text {
|
|
63
|
+
.mtc-dropdown-input--loading .mtc-dropdown-input__text {
|
|
64
64
|
color: var(--color-slate-500);
|
|
65
65
|
}
|
|
66
66
|
|
|
67
|
-
.dropdown-input--selected .dropdown-input__text {
|
|
67
|
+
.mtc-dropdown-input--selected .mtc-dropdown-input__text {
|
|
68
68
|
color: var(--color-slate-900);
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
.dropdown-input--error {
|
|
71
|
+
.mtc-dropdown-input--error {
|
|
72
72
|
background-color: var(--color-red-50);
|
|
73
73
|
border-color: var(--color-red-500);
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
.dropdown-input--error .dropdown-input__text {
|
|
76
|
+
.mtc-dropdown-input--error .mtc-dropdown-input__text {
|
|
77
77
|
color: var(--color-red-600);
|
|
78
78
|
}
|
|
79
79
|
|
|
80
|
-
.dropdown-input--error .dropdown-input__icon {
|
|
80
|
+
.mtc-dropdown-input--error .mtc-dropdown-input__icon {
|
|
81
81
|
color: var(--color-red-600);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
.dropdown-input--disabled {
|
|
84
|
+
.mtc-dropdown-input--disabled {
|
|
85
85
|
background-color: var(--color-slate-100);
|
|
86
86
|
border-color: var(--color-slate-300, #d1d5db);
|
|
87
87
|
cursor: not-allowed;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
.dropdown-input--disabled .dropdown-input__text {
|
|
90
|
+
.mtc-dropdown-input--disabled .mtc-dropdown-input__text {
|
|
91
91
|
color: var(--color-slate-400);
|
|
92
92
|
}
|
|
93
93
|
|
|
94
|
-
.dropdown-input--disabled .dropdown-input__icon {
|
|
94
|
+
.mtc-dropdown-input--disabled .mtc-dropdown-input__icon {
|
|
95
95
|
color: var(--color-slate-400);
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
/* Dropdown Menu */
|
|
99
|
-
.dropdown-menu {
|
|
99
|
+
.mtc-dropdown-menu {
|
|
100
100
|
position: absolute;
|
|
101
101
|
top: calc(100% + var(--multiselect-spacing-menu-gap, 0.75rem));
|
|
102
102
|
left: 0;
|
|
@@ -118,7 +118,7 @@
|
|
|
118
118
|
animation: dropdownFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
.dropdown-option {
|
|
121
|
+
.mtc-dropdown-option {
|
|
122
122
|
padding: var(--multiselect-spacing-option-padding, 0.5rem 0.8125rem);
|
|
123
123
|
font-family: var(--typography-font-family-sans, 'Inter', sans-serif);
|
|
124
124
|
font-size: var(--input-font-size-default, 0.875rem);
|
|
@@ -132,16 +132,16 @@
|
|
|
132
132
|
gap: var(--multiselect-spacing-option-gap, 0.5rem);
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
.dropdown-option:hover {
|
|
135
|
+
.mtc-dropdown-option:hover {
|
|
136
136
|
background-color: var(--color-slate-50);
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
.dropdown-option:active {
|
|
139
|
+
.mtc-dropdown-option:active {
|
|
140
140
|
background-color: var(--color-slate-100);
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
/* Dropdown Footer */
|
|
144
|
-
.dropdown-footer {
|
|
144
|
+
.mtc-dropdown-footer {
|
|
145
145
|
padding: var(--multiselect-spacing-footer-padding, 0.5rem 1.25rem);
|
|
146
146
|
font-family: var(--typography-font-family-sans, 'Inter', sans-serif);
|
|
147
147
|
font-size: var(--input-font-size-default, 1rem);
|