@ngrdt/gov 0.0.78 → 0.0.80
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/fesm2022/ngrdt-gov.mjs +122 -7
- package/fesm2022/ngrdt-gov.mjs.map +1 -1
- package/index.d.ts +82 -4
- package/package.json +7 -7
- package/rdt-gov-menu.css +88 -0
- package/rdt-gov-table.css +73 -0
- package/styles.css +7 -0
- package/lib/gov/ui/button/rdt-gov-button.component.scss +0 -0
- package/lib/gov/ui/checkbox/rdt-gov-checkbox.component.scss +0 -11
- package/lib/gov/ui/gov-shared-styles.scss +0 -23
- package/lib/gov/ui/icon/rdt-gov-icon.component.scss +0 -13
- package/lib/gov/ui/select/rdt-gov-select.component.scss +0 -288
package/index.d.ts
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import * as _ngrdt_loading from '@ngrdt/loading';
|
|
2
|
+
import { RdtSpinnerComponent } from '@ngrdt/loading';
|
|
3
|
+
import * as _ngrdt_gov from '@ngrdt/gov';
|
|
1
4
|
import * as _ngrdt_button from '@ngrdt/button';
|
|
2
5
|
import { RdtButtonBase } from '@ngrdt/button';
|
|
3
6
|
import * as _ngrdt_forms from '@ngrdt/forms';
|
|
@@ -5,7 +8,7 @@ import { RdtCheckboxComponent, RdtDateComponent, RdtNumericInputComponent, RdtSe
|
|
|
5
8
|
import * as _ngrdt_icon from '@ngrdt/icon';
|
|
6
9
|
import { RdtIcon, RdtIconComponent } from '@ngrdt/icon';
|
|
7
10
|
import * as _angular_core from '@angular/core';
|
|
8
|
-
import { Injector, ElementRef, OnDestroy } from '@angular/core';
|
|
11
|
+
import { Injector, ElementRef, InjectionToken, OnDestroy } from '@angular/core';
|
|
9
12
|
import { RdtBooleanResult } from '@ngrdt/core';
|
|
10
13
|
import { Nullable } from '@ngrdt/utils';
|
|
11
14
|
import { GovFormInput } from '@gov-design-system-ce/angular';
|
|
@@ -65,6 +68,19 @@ declare class RdtGovIconComponent extends RdtIconComponent<string> {
|
|
|
65
68
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovIconComponent, "rdt-gov-icon", never, {}, {}, never, never, true, never>;
|
|
66
69
|
}
|
|
67
70
|
|
|
71
|
+
declare class RdtGovSpinnerComponent extends RdtSpinnerComponent {
|
|
72
|
+
readonly message: _angular_core.WritableSignal<string>;
|
|
73
|
+
readonly messageInput: _angular_core.InputSignal<string>;
|
|
74
|
+
readonly size: _angular_core.WritableSignal<"s" | "m" | "l">;
|
|
75
|
+
readonly sizeInput: _angular_core.InputSignal<"s" | "m" | "l">;
|
|
76
|
+
readonly mode: _angular_core.WritableSignal<"overlay" | "local">;
|
|
77
|
+
readonly modeInput: _angular_core.InputSignal<"overlay" | "local">;
|
|
78
|
+
readonly messagePositionInput: _angular_core.InputSignal<"left" | "right" | "below" | "above">;
|
|
79
|
+
readonly messagePosition: _angular_core.WritableSignal<"left" | "right" | "below" | "above">;
|
|
80
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovSpinnerComponent, never>;
|
|
81
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovSpinnerComponent, "rdt-gov-spinner", never, { "messageInput": { "alias": "message"; "required": false; "isSignal": true; }; "sizeInput": { "alias": "size"; "required": false; "isSignal": true; }; "modeInput": { "alias": "mode"; "required": false; "isSignal": true; }; "messagePositionInput": { "alias": "messagePosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
82
|
+
}
|
|
83
|
+
|
|
68
84
|
declare function provideNgrdtGov(options?: {}): (_angular_core.EnvironmentProviders | {
|
|
69
85
|
provide: _angular_core.InjectionToken<_angular_core.Type<_ngrdt_icon.RdtIconBaseInt>>;
|
|
70
86
|
useValue: typeof RdtGovIconComponent;
|
|
@@ -85,8 +101,36 @@ declare function provideNgrdtGov(options?: {}): (_angular_core.EnvironmentProvid
|
|
|
85
101
|
"chevron-right": string;
|
|
86
102
|
"sort-down": string;
|
|
87
103
|
"sort-up": string;
|
|
88
|
-
|
|
104
|
+
filter: string;
|
|
105
|
+
duration?: undefined;
|
|
106
|
+
positionVert?: undefined;
|
|
107
|
+
positionHoriz?: undefined;
|
|
108
|
+
successMsg?: undefined;
|
|
109
|
+
warningMsg?: undefined;
|
|
110
|
+
errorMsg?: undefined;
|
|
111
|
+
};
|
|
112
|
+
} | {
|
|
113
|
+
provide: _angular_core.InjectionToken<_ngrdt_gov.RdtGovNotificationDefaultConfig>;
|
|
114
|
+
useValue: {
|
|
115
|
+
duration: number;
|
|
116
|
+
positionVert: string;
|
|
117
|
+
positionHoriz: string;
|
|
118
|
+
successMsg: string;
|
|
119
|
+
warningMsg: string;
|
|
120
|
+
errorMsg: string;
|
|
121
|
+
"arrow-right"?: undefined;
|
|
122
|
+
"arrow-down"?: undefined;
|
|
123
|
+
"chevron-double-left"?: undefined;
|
|
124
|
+
"chevron-double-right"?: undefined;
|
|
125
|
+
"chevron-left"?: undefined;
|
|
126
|
+
"chevron-right"?: undefined;
|
|
127
|
+
"sort-down"?: undefined;
|
|
128
|
+
"sort-up"?: undefined;
|
|
129
|
+
filter?: undefined;
|
|
89
130
|
};
|
|
131
|
+
} | {
|
|
132
|
+
provide: _angular_core.InjectionToken<_angular_core.Type<_ngrdt_loading.RdtSpinnerComponent>>;
|
|
133
|
+
useValue: typeof RdtGovSpinnerComponent;
|
|
90
134
|
})[];
|
|
91
135
|
|
|
92
136
|
interface RdtGovConfig {
|
|
@@ -127,6 +171,40 @@ declare class RdtGovDateComponent extends RdtDateComponent {
|
|
|
127
171
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovDateComponent, "rdt-gov-date", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "outputMode": { "alias": "outputMode"; "required": false; "isSignal": true; }; "labelPositionInput": { "alias": "labelPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
128
172
|
}
|
|
129
173
|
|
|
174
|
+
interface RdtGovNotificationBase {
|
|
175
|
+
duration: number;
|
|
176
|
+
positionVert: 'top' | 'bottom';
|
|
177
|
+
positionHoriz: 'left' | 'center' | 'right';
|
|
178
|
+
}
|
|
179
|
+
interface RdtGovNotificationDefaultConfig extends RdtGovNotificationBase {
|
|
180
|
+
successMsg: string;
|
|
181
|
+
errorMsg: string;
|
|
182
|
+
warningMsg: string;
|
|
183
|
+
}
|
|
184
|
+
interface RdtGovNotificationCustomConfig extends RdtGovNotificationBase {
|
|
185
|
+
icon?: RdtIcon;
|
|
186
|
+
message: string;
|
|
187
|
+
color: 'success' | 'warning' | 'error' | 'primary' | 'neutral';
|
|
188
|
+
closeLabel?: string;
|
|
189
|
+
type: 'bold' | 'subtle';
|
|
190
|
+
}
|
|
191
|
+
declare class RdtGovNotificationService {
|
|
192
|
+
private overlay;
|
|
193
|
+
private injector;
|
|
194
|
+
private govDefaults;
|
|
195
|
+
show(cfg: RdtGovNotificationCustomConfig): void;
|
|
196
|
+
success(customMsg?: string): void;
|
|
197
|
+
warning(customMsg?: string): void;
|
|
198
|
+
error(customMsg?: string): void;
|
|
199
|
+
private openDefault;
|
|
200
|
+
private open;
|
|
201
|
+
private close;
|
|
202
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovNotificationService, never>;
|
|
203
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<RdtGovNotificationService>;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
declare const RDT_BASE_NOTIFICATION_PROVIDER: InjectionToken<RdtGovNotificationDefaultConfig>;
|
|
207
|
+
|
|
130
208
|
declare class RdtGovNumberInputComponent extends RdtNumericInputComponent {
|
|
131
209
|
private readonly renderer;
|
|
132
210
|
protected readonly govInput: _angular_core.Signal<ElementRef<GovFormInput> | undefined>;
|
|
@@ -232,5 +310,5 @@ declare class RdtGovThemeService {
|
|
|
232
310
|
|
|
233
311
|
declare function forceFocus(input: HTMLInputElement): void;
|
|
234
312
|
|
|
235
|
-
export { DEFAULT_GOV_BUTTON_COLOR, DEFAULT_GOV_BUTTON_SIZE, DEFAULT_GOV_BUTTON_TYPE, RDT_DATE_MIN_YEAR, RdtGovButtonComponent, RdtGovCheckboxComponent, RdtGovDateComponent, RdtGovIconComponent, RdtGovNumberInputComponent, RdtGovSelectComponent, RdtGovSelectOfflineProviderDirective, RdtGovTextInputComponent, RdtGovThemeService, forceFocus, initRdtGov, provideNgrdtGov };
|
|
236
|
-
export type { GovButtonType, GovColor, GovLabelPosition, GovMessageVariant, GovSize, RdtGovConfig };
|
|
313
|
+
export { DEFAULT_GOV_BUTTON_COLOR, DEFAULT_GOV_BUTTON_SIZE, DEFAULT_GOV_BUTTON_TYPE, RDT_BASE_NOTIFICATION_PROVIDER, RDT_DATE_MIN_YEAR, RdtGovButtonComponent, RdtGovCheckboxComponent, RdtGovDateComponent, RdtGovIconComponent, RdtGovNotificationService, RdtGovNumberInputComponent, RdtGovSelectComponent, RdtGovSelectOfflineProviderDirective, RdtGovSpinnerComponent, RdtGovTextInputComponent, RdtGovThemeService, forceFocus, initRdtGov, provideNgrdtGov };
|
|
314
|
+
export type { GovButtonType, GovColor, GovLabelPosition, GovMessageVariant, GovSize, RdtGovConfig, RdtGovNotificationCustomConfig, RdtGovNotificationDefaultConfig };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrdt/gov",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.80",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": "^20.0.0",
|
|
6
6
|
"@angular/forms": "^20.0.0",
|
|
@@ -9,13 +9,13 @@
|
|
|
9
9
|
"@gov-design-system-ce/angular": "^1.3.1",
|
|
10
10
|
"@gov-design-system-ce/components": "^4.2.0",
|
|
11
11
|
"rxjs": "~7.8.0",
|
|
12
|
-
"@ngrdt/core": "^0.0.
|
|
13
|
-
"@ngrdt/forms": "^0.0.
|
|
14
|
-
"@ngrdt/icon": "^0.0.
|
|
15
|
-
"@ngrdt/utils": "^0.0.
|
|
12
|
+
"@ngrdt/core": "^0.0.80",
|
|
13
|
+
"@ngrdt/forms": "^0.0.80",
|
|
14
|
+
"@ngrdt/icon": "^0.0.80",
|
|
15
|
+
"@ngrdt/utils": "^0.0.80",
|
|
16
16
|
"@angular/cdk": "^20.2.0",
|
|
17
|
-
"@ngrdt/button": "^0.0.
|
|
18
|
-
"@ngrdt/router": "^0.0.
|
|
17
|
+
"@ngrdt/button": "^0.0.80",
|
|
18
|
+
"@ngrdt/router": "^0.0.80"
|
|
19
19
|
},
|
|
20
20
|
"sideEffects": false,
|
|
21
21
|
"exports": {
|
package/rdt-gov-menu.css
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
:root {
|
|
2
|
+
--rdt-menu-background: var(--background-block-primary);
|
|
3
|
+
--rdt-menu-border-radius: 0 0 var(--corner-radius-m) var(--corner-radius-m);
|
|
4
|
+
--rdt-menu-bar-item-background: transparent;
|
|
5
|
+
--rdt-menu-bar-item-text-color: var(--text-primary-color);
|
|
6
|
+
--rdt-menu-bar-item-padding: var(--spacing-s) var(--spacing-m) !important;
|
|
7
|
+
--rdt-menu-bar-item-border-radius: var(
|
|
8
|
+
--outline-border-radius,
|
|
9
|
+
var(--corner-radius-xs-nudge)
|
|
10
|
+
);
|
|
11
|
+
--rdt-menu-bar-item-border: none;
|
|
12
|
+
--rdt-menu-bar-item-outline: none;
|
|
13
|
+
--rdt-menu-bar-item-margin: 0;
|
|
14
|
+
--rdt-menu-bar-item-font-size: var(--font-size-body-m);
|
|
15
|
+
--rdt-menu-bar-item-font-weight: 500;
|
|
16
|
+
--rdt-menu-item-font-size: var(--font-size-body-s);
|
|
17
|
+
--rdt-menu-item-padding: var(--spacing-xs) 0 var(--spacing-xs)
|
|
18
|
+
var(--spacing-xs);
|
|
19
|
+
--rdt-menu-bar-item-hover-background: var(--button-outlined-primary-hover);
|
|
20
|
+
--rdt-menu-bar-item-hover-text-color: var(--text-primary-color);
|
|
21
|
+
--rdt-menu-bar-item-hover-border: none;
|
|
22
|
+
--rdt-menu-bar-item-hover-outline: none;
|
|
23
|
+
--rdt-menu-bar-item-expanded-background: var(--button-outlined-primary-hover);
|
|
24
|
+
--rdt-menu-bar-item-expanded-text-color: var(--text-primary-color);
|
|
25
|
+
--rdt-menu-bar-item-expanded-border: none;
|
|
26
|
+
--rdt-menu-bar-item-expanded-outline: none;
|
|
27
|
+
--rdt-menu-bar-item-focus-background: transparent;
|
|
28
|
+
--rdt-menu-bar-item-focus-text-color: var(--text-primary-color);
|
|
29
|
+
--rdt-menu-bar-item-focus-border: none;
|
|
30
|
+
--rdt-menu-bar-item-focus-outline: var(--outline-width, 0.125rem) solid
|
|
31
|
+
var(--status-focus);
|
|
32
|
+
--rdt-menu-bar-item-route-active-background: var(
|
|
33
|
+
--button-outlined-primary-active
|
|
34
|
+
);
|
|
35
|
+
--rdt-menu-bar-item-route-active-text-color: var(--text-primary-color);
|
|
36
|
+
--rdt-menu-bar-item-route-active-border: none;
|
|
37
|
+
--rdt-menu-bar-item-route-active-outline: none;
|
|
38
|
+
--rdt-menu-bar-item-disabled-background: var(
|
|
39
|
+
--disabled-background,
|
|
40
|
+
var(--button-solid-disabled)
|
|
41
|
+
);
|
|
42
|
+
--rdt-menu-bar-item-disabled-text-color: var(
|
|
43
|
+
--disabled-color,
|
|
44
|
+
var(--text-disabled)
|
|
45
|
+
);
|
|
46
|
+
--rdt-menu-bar-item-disabled-border: none;
|
|
47
|
+
--rdt-menu-bar-item-disabled-outline: none;
|
|
48
|
+
}
|
|
49
|
+
:root ul {
|
|
50
|
+
justify-content: space-between;
|
|
51
|
+
}
|
|
52
|
+
:root ul li:before {
|
|
53
|
+
content: none;
|
|
54
|
+
}
|
|
55
|
+
:root .menu-item:hover {
|
|
56
|
+
text-decoration: underline;
|
|
57
|
+
}
|
|
58
|
+
:root ul.menu-item-container {
|
|
59
|
+
min-width: 280px;
|
|
60
|
+
padding: var(--spacing-s) var(--spacing-m) !important;
|
|
61
|
+
}
|
|
62
|
+
:root .menu-bar-item-content {
|
|
63
|
+
gap: var(--spacing-m);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
@media only screen and (max-width: 767px) {
|
|
67
|
+
:root {
|
|
68
|
+
--rdt-menu-background: transparent;
|
|
69
|
+
}
|
|
70
|
+
:root .menu-bar-item {
|
|
71
|
+
flex-direction: column;
|
|
72
|
+
}
|
|
73
|
+
:root .menu-bar-item-container {
|
|
74
|
+
flex-direction: column;
|
|
75
|
+
}
|
|
76
|
+
:root .menu-bar-item-content {
|
|
77
|
+
width: 100%;
|
|
78
|
+
background-color: var(--background-block-primary);
|
|
79
|
+
}
|
|
80
|
+
:root rdt-menu-overlay {
|
|
81
|
+
height: 0px;
|
|
82
|
+
width: 100%;
|
|
83
|
+
position: unset;
|
|
84
|
+
}
|
|
85
|
+
:root rdt-menu-overlay.expanded {
|
|
86
|
+
height: unset;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
.action-btn {
|
|
2
|
+
background-color: transparent !important;
|
|
3
|
+
color: var(--text-primary-color);
|
|
4
|
+
font-size: var(--font-size-body-s);
|
|
5
|
+
line-height: 150%;
|
|
6
|
+
font-weight: 700;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
select.action-btn {
|
|
10
|
+
background-color: var(--background-block-primary) !important;
|
|
11
|
+
border: 1px solid var(--border-subtle) !important;
|
|
12
|
+
color: var(--text-primary);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.action-btn:hover {
|
|
16
|
+
background-color: var(
|
|
17
|
+
--hover-background,
|
|
18
|
+
var(--button-outlined-primary-hover)
|
|
19
|
+
) !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.action-btn.selected {
|
|
23
|
+
background-color: var(
|
|
24
|
+
--hover-background,
|
|
25
|
+
var(--button-outlined-primary-hover)
|
|
26
|
+
) !important;
|
|
27
|
+
color: var(--text-primary-color) !important;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
rdt-table {
|
|
31
|
+
table {
|
|
32
|
+
border-radius: var(--border-radius, var(--corner-radius-s));
|
|
33
|
+
border-spacing: 0px;
|
|
34
|
+
thead {
|
|
35
|
+
tr {
|
|
36
|
+
th {
|
|
37
|
+
padding: 0.25rem 0.5rem;
|
|
38
|
+
border-bottom: 1px solid var(--border-subtlest);
|
|
39
|
+
background-color: var(
|
|
40
|
+
--form-bg-color,
|
|
41
|
+
var(--background-block-primary)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
tbody {
|
|
47
|
+
background-color: var(--form-bg-color, var(--background-block-primary));
|
|
48
|
+
border: 1px solid var(--border-subtle) !important;
|
|
49
|
+
tr {
|
|
50
|
+
td {
|
|
51
|
+
border-bottom: 1px solid var(--border-subtlest);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
tr.row-selected {
|
|
55
|
+
td {
|
|
56
|
+
background-color: var(--background-primary-subtle) !important;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
.rdt-select-column-cell {
|
|
60
|
+
border-right: 1px solid var(--border-subtlest);
|
|
61
|
+
background-color: var(
|
|
62
|
+
--form-bg-color,
|
|
63
|
+
var(--background-block-primary)
|
|
64
|
+
) !important;
|
|
65
|
+
.rdt-select-column-cell-wrapper {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: center;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}
|
package/styles.css
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
@import '@gov-design-system-ce/styles/tokens.css';
|
|
2
|
+
@import '@gov-design-system-ce/styles/styles.css';
|
|
3
|
+
@import '@gov-design-system-ce/styles/layout.css';
|
|
4
|
+
@import '@gov-design-system-ce/styles/components.css';
|
|
5
|
+
|
|
6
|
+
@import '@ngrdt/gov/rdt-gov-menu.css';
|
|
7
|
+
@import '@ngrdt/gov/rdt-gov-table.css';
|
|
File without changes
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
.warning-color {
|
|
2
|
-
&-icon {
|
|
3
|
-
color: var(--icon-error) !important;
|
|
4
|
-
}
|
|
5
|
-
&-text {
|
|
6
|
-
color: var(--text-status-error) !important;
|
|
7
|
-
}
|
|
8
|
-
&-gov-label {
|
|
9
|
-
.gov-form-label__label {
|
|
10
|
-
color: var(--form-state-label-error, var(--text-status-error)) !important;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.s_label {
|
|
16
|
-
font-size: var(--font-size-body-s);
|
|
17
|
-
line-height: 150%;
|
|
18
|
-
font-weight: 400;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
gov-form-message {
|
|
22
|
-
font-size: var(--font-size-body-s);
|
|
23
|
-
}
|
|
@@ -1,288 +0,0 @@
|
|
|
1
|
-
.rdt-option-selected {
|
|
2
|
-
background: var(
|
|
3
|
-
--gov-autocomplete-item-hover,
|
|
4
|
-
var(--color-neutral-600)
|
|
5
|
-
) !important;
|
|
6
|
-
color: var(--color-primary-50) !important;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
$icon-sizes: (
|
|
10
|
-
xs: 12px,
|
|
11
|
-
s: 14px,
|
|
12
|
-
m: 16px,
|
|
13
|
-
l: 18px,
|
|
14
|
-
xl: 20px,
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
.icon-warning {
|
|
18
|
-
width: var(--icon-size) !important;
|
|
19
|
-
height: var(--icon-size) !important;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
@each $name, $size in $icon-sizes {
|
|
23
|
-
.icon-#{$name} {
|
|
24
|
-
--icon-size: #{$size};
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
rdt-gov-select {
|
|
29
|
-
display: inline-block;
|
|
30
|
-
width: 100%;
|
|
31
|
-
max-width: 100%;
|
|
32
|
-
.gov-form-select {
|
|
33
|
-
width: 100%;
|
|
34
|
-
&.has-clear .select {
|
|
35
|
-
padding-right: calc(1.5rem + var(--spacing-s)) !important;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.gov-form-input {
|
|
40
|
-
border: none !important;
|
|
41
|
-
background-color: transparent !important
|
|
42
|
-
;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.select {
|
|
46
|
-
display: flex;
|
|
47
|
-
|
|
48
|
-
rdt-spinner {
|
|
49
|
-
position: absolute;
|
|
50
|
-
right: 0.5rem;
|
|
51
|
-
width: 1rem;
|
|
52
|
-
height: 1rem;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
$select-sizes: (
|
|
57
|
-
xs: xs,
|
|
58
|
-
s: s,
|
|
59
|
-
m: m,
|
|
60
|
-
l: l,
|
|
61
|
-
xl: xl,
|
|
62
|
-
);
|
|
63
|
-
|
|
64
|
-
@each $key, $token in $select-sizes {
|
|
65
|
-
[size='#{$key}'].gov-form-select .select {
|
|
66
|
-
min-height: var(--height-component-#{$token});
|
|
67
|
-
font-size: var(--font-size-body-#{$token});
|
|
68
|
-
&:hover {
|
|
69
|
-
background-color: var(--button-outlined-primary-hover);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
[size='xs'].gov-form-select .select {
|
|
75
|
-
padding: var(--spacing-multiline-vertical-padding-xs)
|
|
76
|
-
var(--spacing-xs-nudge);
|
|
77
|
-
}
|
|
78
|
-
[size='s'].gov-form-select .select {
|
|
79
|
-
padding: var(--spacing-multiline-vertical-padding-s) var(--spacing-s);
|
|
80
|
-
}
|
|
81
|
-
[size='m'].gov-form-select .select {
|
|
82
|
-
padding: var(--spacing-multiline-vertical-padding-m) var(--spacing-s-nudge);
|
|
83
|
-
}
|
|
84
|
-
[size='l'].gov-form-select .select {
|
|
85
|
-
padding: var(--spacing-multiline-vertical-padding-l) var(--spacing-m);
|
|
86
|
-
}
|
|
87
|
-
[size='xl'].gov-form-select .select {
|
|
88
|
-
padding: var(--spacing-multiline-vertical-padding-xl) var(--spacing-m-nudge);
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.gov-form-select .select {
|
|
92
|
-
position: relative;
|
|
93
|
-
border: none;
|
|
94
|
-
width: 100%;
|
|
95
|
-
border-radius: var(--corner-radius-s);
|
|
96
|
-
background-color: var(--background-block-primary);
|
|
97
|
-
font-family: var(--font-family);
|
|
98
|
-
text-align: left;
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
[invalid='true'].gov-form-input {
|
|
102
|
-
.select {
|
|
103
|
-
border-color: var(--background-status-error);
|
|
104
|
-
color: var(--background-status-error);
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
.icon-arrow {
|
|
109
|
-
color: var(--text-primary);
|
|
110
|
-
position: absolute;
|
|
111
|
-
top: 50%;
|
|
112
|
-
display: flex;
|
|
113
|
-
justify-content: center;
|
|
114
|
-
transform: translateY(-50%);
|
|
115
|
-
pointer-events: none;
|
|
116
|
-
right: 0.75rem;
|
|
117
|
-
width: 0.75rem;
|
|
118
|
-
height: 0.75rem;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.icon-warning {
|
|
122
|
-
color: var(--icon-error);
|
|
123
|
-
position: absolute;
|
|
124
|
-
top: 50%;
|
|
125
|
-
display: flex;
|
|
126
|
-
justify-content: center;
|
|
127
|
-
transform: translateY(-50%);
|
|
128
|
-
pointer-events: none;
|
|
129
|
-
right: 1.85rem;
|
|
130
|
-
width: 0.75rem;
|
|
131
|
-
height: 0.75rem;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
.scroll-content {
|
|
135
|
-
display: flex;
|
|
136
|
-
align-items: center;
|
|
137
|
-
color: var(--text-primary);
|
|
138
|
-
width: 100%;
|
|
139
|
-
white-space: nowrap;
|
|
140
|
-
overflow: hidden;
|
|
141
|
-
text-overflow: ellipsis;
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
.clear-button {
|
|
145
|
-
display: flex;
|
|
146
|
-
position: absolute;
|
|
147
|
-
right: 2rem;
|
|
148
|
-
top: 50%;
|
|
149
|
-
transform: translateY(-50%);
|
|
150
|
-
|
|
151
|
-
button {
|
|
152
|
-
padding: 0 !important;
|
|
153
|
-
min-height: auto !important;
|
|
154
|
-
|
|
155
|
-
--icon-size-xs: 1rem;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
gov-icon[slot='left-icon'] {
|
|
159
|
-
left: 0 !important;
|
|
160
|
-
position: inherit !important;
|
|
161
|
-
top: 0 !important;
|
|
162
|
-
display: inline !important;
|
|
163
|
-
transform: none !important;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
.element {
|
|
168
|
-
max-width: 100%;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
.rdt-gov-select-container {
|
|
173
|
-
width: 100%;
|
|
174
|
-
margin-top: 0.5rem;
|
|
175
|
-
margin-bottom: 0.5rem;
|
|
176
|
-
overflow: hidden;
|
|
177
|
-
border: 1px solid var(--color-neutral-600);
|
|
178
|
-
border-radius: 0px;
|
|
179
|
-
background-color: var(--background-block-primary);
|
|
180
|
-
|
|
181
|
-
ul {
|
|
182
|
-
padding-left: 0;
|
|
183
|
-
margin-top: 0;
|
|
184
|
-
margin-bottom: 0;
|
|
185
|
-
list-style: none;
|
|
186
|
-
max-height: 14.0625rem;
|
|
187
|
-
overflow-x: hidden;
|
|
188
|
-
overflow-y: auto;
|
|
189
|
-
overscroll-behavior: none;
|
|
190
|
-
|
|
191
|
-
.option {
|
|
192
|
-
font-family: var(--font-family);
|
|
193
|
-
color: var(--text-primary);
|
|
194
|
-
border: none;
|
|
195
|
-
display: flex;
|
|
196
|
-
align-items: center;
|
|
197
|
-
padding: 0.75rem 0.5rem;
|
|
198
|
-
width: 100%;
|
|
199
|
-
margin: 0;
|
|
200
|
-
background: none;
|
|
201
|
-
text-align: left;
|
|
202
|
-
gov-icon {
|
|
203
|
-
padding-right: var(--spacing-s);
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
gov-icon.invisible {
|
|
207
|
-
display: none;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
&:hover {
|
|
211
|
-
color: var(--color-primary-50);
|
|
212
|
-
background: var(--color-neutral-600);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
li {
|
|
218
|
-
margin-bottom: 0px;
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
.picked {
|
|
222
|
-
color: var(--icon-success);
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
.search-spinner {
|
|
226
|
-
--spinner-size: 1.2rem;
|
|
227
|
-
position: absolute;
|
|
228
|
-
right: 1rem;
|
|
229
|
-
top: 100%;
|
|
230
|
-
transform: translateY(calc(var(--spinner-size) / -2));
|
|
231
|
-
|
|
232
|
-
.sis-icon-32-fix {
|
|
233
|
-
height: var(--spinner-size);
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.search-container {
|
|
238
|
-
width: 100%;
|
|
239
|
-
position: relative;
|
|
240
|
-
|
|
241
|
-
input {
|
|
242
|
-
font-family: var(--font-family);
|
|
243
|
-
border-radius: 0px;
|
|
244
|
-
border-top: 1px;
|
|
245
|
-
border-left: 1px;
|
|
246
|
-
border-right: 1px;
|
|
247
|
-
padding: 0.75rem 0.5rem;
|
|
248
|
-
width: 100%;
|
|
249
|
-
background-color: var(--background-block-primary);
|
|
250
|
-
color: var(--text-primary);
|
|
251
|
-
|
|
252
|
-
&:focus-visible {
|
|
253
|
-
outline: var(0.125rem) solid var(--status-focus);
|
|
254
|
-
outline-offset: 0;
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
&.loading input::-webkit-search-cancel-button {
|
|
259
|
-
position: relative;
|
|
260
|
-
right: 1rem;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
$select-sizes: (
|
|
266
|
-
xs: xs,
|
|
267
|
-
s: s,
|
|
268
|
-
m: m,
|
|
269
|
-
l: l,
|
|
270
|
-
xl: xl,
|
|
271
|
-
);
|
|
272
|
-
|
|
273
|
-
@each $key, $token in $select-sizes {
|
|
274
|
-
[data-size='#{$key}'].rdt-gov-select-container ul li button {
|
|
275
|
-
font-size: var(--font-size-body-#{$token}) !important;
|
|
276
|
-
line-height: var(--height-line-#{$token});
|
|
277
|
-
padding: var(--spacing-multiline-vertical-padding-#{$token});
|
|
278
|
-
}
|
|
279
|
-
[data-size='#{$key}'].rdt-gov-select-container input {
|
|
280
|
-
font-size: var(--font-size-body-#{$token}) !important;
|
|
281
|
-
padding: var(--spacing-multiline-vertical-padding-#{$token});
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
.rdt-gov-select-overlay-panel-top .rdt-gov-select-container {
|
|
286
|
-
display: flex;
|
|
287
|
-
flex-direction: column-reverse;
|
|
288
|
-
}
|