@ngrdt/gov 0.0.61 → 0.0.68
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 +342 -36
- package/fesm2022/ngrdt-gov.mjs.map +1 -1
- package/index.d.ts +79 -14
- package/lib/gov/ui/select/rdt-gov-select.component.scss +27 -0
- package/package.json +9 -7
- package/lib/gov/ui/menu/rdt-gov-menu.scss +0 -102
- package/lib/gov/ui/table/rdt-gov-table.component.scss +0 -0
- package/styles.scss +0 -6
package/index.d.ts
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import * as _ngrdt_button from '@ngrdt/button';
|
|
2
2
|
import { RdtButtonBase } from '@ngrdt/button';
|
|
3
|
+
import * as _ngrdt_forms from '@ngrdt/forms';
|
|
4
|
+
import { RdtCheckboxComponent, RdtDateComponent, RdtNumericInputComponent, RdtSelectOfflineDatasourceProviderDirective, RdtBaseSelectCommonComponent, RdtTextInputComponent } from '@ngrdt/forms';
|
|
3
5
|
import * as _ngrdt_icon from '@ngrdt/icon';
|
|
4
6
|
import { RdtIcon, RdtIconComponent } from '@ngrdt/icon';
|
|
5
7
|
import * as _angular_core from '@angular/core';
|
|
6
8
|
import { Injector, ElementRef, OnDestroy } from '@angular/core';
|
|
7
9
|
import { RdtBooleanResult } from '@ngrdt/core';
|
|
8
10
|
import { Nullable } from '@ngrdt/utils';
|
|
9
|
-
import { RdtCheckboxComponent, RdtNumericInputComponent, RdtSelectOfflineDatasourceProviderDirective, RdtBaseSelectCommonComponent, RdtTextInputComponent } from '@ngrdt/forms';
|
|
10
11
|
import { GovFormInput } from '@gov-design-system-ce/angular';
|
|
12
|
+
import { GovFormInputCustomEvent, FormInputEvent } from '@gov-design-system-ce/components';
|
|
11
13
|
|
|
12
14
|
type GovSize = 'xs' | 's' | 'm' | 'l' | 'xl';
|
|
13
15
|
type GovColor = 'primary' | 'secondary' | 'neutral' | 'success' | 'warning' | 'error';
|
|
@@ -42,7 +44,23 @@ declare class RdtGovButtonComponent extends RdtButtonBase<RdtIcon> {
|
|
|
42
44
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovButtonComponent, "rdt-gov-button", never, { "appearanceInput": { "alias": "appearance"; "required": false; "isSignal": true; }; "colorInput": { "alias": "color"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "iconStartInput": { "alias": "iconStart"; "required": false; "isSignal": true; }; "expandedInput": { "alias": "expanded"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
43
45
|
}
|
|
44
46
|
|
|
47
|
+
declare class RdtGovCheckboxComponent extends RdtCheckboxComponent {
|
|
48
|
+
readonly labelPosition: _angular_core.WritableSignal<GovLabelPosition>;
|
|
49
|
+
readonly labelPositionInput: _angular_core.InputSignal<GovLabelPosition>;
|
|
50
|
+
readonly size: _angular_core.WritableSignal<"xs" | "s" | "m" | "l" | "xl">;
|
|
51
|
+
readonly sizeInput: _angular_core.InputSignal<"xs" | "s" | "m" | "l" | "xl">;
|
|
52
|
+
onInput(event: Event): void;
|
|
53
|
+
focus(): void;
|
|
54
|
+
canFocus(): RdtBooleanResult;
|
|
55
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovCheckboxComponent, never>;
|
|
56
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovCheckboxComponent, "rdt-gov-checkbox", never, { "labelPositionInput": { "alias": "labelPosition"; "required": false; "isSignal": true; }; "sizeInput": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
57
|
+
}
|
|
58
|
+
|
|
45
59
|
declare class RdtGovIconComponent extends RdtIconComponent<string> {
|
|
60
|
+
parsedName: _angular_core.Signal<{
|
|
61
|
+
type: string;
|
|
62
|
+
name: string;
|
|
63
|
+
}>;
|
|
46
64
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovIconComponent, never>;
|
|
47
65
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovIconComponent, "rdt-gov-icon", never, {}, {}, never, never, true, never>;
|
|
48
66
|
}
|
|
@@ -50,14 +68,24 @@ declare class RdtGovIconComponent extends RdtIconComponent<string> {
|
|
|
50
68
|
declare function provideNgrdtGov(options?: {}): (_angular_core.EnvironmentProviders | {
|
|
51
69
|
provide: _angular_core.InjectionToken<_angular_core.Type<_ngrdt_icon.RdtIconBaseInt>>;
|
|
52
70
|
useValue: typeof RdtGovIconComponent;
|
|
71
|
+
} | {
|
|
72
|
+
provide: _angular_core.InjectionToken<_angular_core.Type<_ngrdt_forms.RdtCheckboxComponent<any, any>>>;
|
|
73
|
+
useValue: typeof RdtGovCheckboxComponent;
|
|
53
74
|
} | {
|
|
54
75
|
provide: _angular_core.InjectionToken<_angular_core.Type<_ngrdt_button.RdtButtonBaseInt<string>>>;
|
|
55
76
|
useValue: typeof RdtGovButtonComponent;
|
|
56
77
|
} | {
|
|
57
78
|
provide: _angular_core.InjectionToken<Record<RdtIcon, string>>;
|
|
58
79
|
useValue: {
|
|
80
|
+
"arrow-right": string;
|
|
81
|
+
"arrow-down": string;
|
|
82
|
+
"chevron-double-left": string;
|
|
83
|
+
"chevron-double-right": string;
|
|
84
|
+
"chevron-left": string;
|
|
59
85
|
"chevron-right": string;
|
|
60
|
-
"
|
|
86
|
+
"sort-down": string;
|
|
87
|
+
"sort-up": string;
|
|
88
|
+
funnel: string;
|
|
61
89
|
};
|
|
62
90
|
})[];
|
|
63
91
|
|
|
@@ -67,16 +95,36 @@ interface RdtGovConfig {
|
|
|
67
95
|
}
|
|
68
96
|
declare function initRdtGov(config?: RdtGovConfig): void;
|
|
69
97
|
|
|
70
|
-
declare
|
|
71
|
-
|
|
98
|
+
declare const RDT_DATE_MIN_YEAR = 1900;
|
|
99
|
+
declare class RdtGovDateComponent extends RdtDateComponent {
|
|
100
|
+
protected readonly govInput: _angular_core.Signal<ElementRef<GovFormInput> | undefined>;
|
|
101
|
+
readonly size: _angular_core.InputSignal<GovSize>;
|
|
102
|
+
readonly mode: _angular_core.InputSignal<"date" | "datetime" | "time">;
|
|
103
|
+
readonly outputMode: _angular_core.InputSignal<"date" | "datetime" | "time">;
|
|
72
104
|
readonly labelPositionInput: _angular_core.InputSignal<GovLabelPosition>;
|
|
73
|
-
readonly
|
|
74
|
-
readonly
|
|
75
|
-
|
|
76
|
-
|
|
105
|
+
readonly labelPosition: _angular_core.WritableSignal<GovLabelPosition>;
|
|
106
|
+
private readonly inputElement;
|
|
107
|
+
hasErrors: boolean;
|
|
108
|
+
protected isEmpty(value: string | null): boolean;
|
|
109
|
+
onDateInput(dateInput: string): void;
|
|
110
|
+
setValueFromEvent(event: GovFormInputCustomEvent<FormInputEvent>): void;
|
|
111
|
+
protected toInternalValue(value: string | null): string | null;
|
|
112
|
+
protected toExternalValue(internalValue: string | null): string | null;
|
|
113
|
+
protected toExternalDateTime(internalValue: string): string | null;
|
|
114
|
+
protected toExternalTime(internalValue: string): string | null;
|
|
115
|
+
protected toInternalDate(value: string): string;
|
|
116
|
+
protected toInternalDateTime(value: string): string;
|
|
117
|
+
protected toInternalTime(value: string): string;
|
|
118
|
+
protected parseValue(value: string): string;
|
|
119
|
+
protected parseTime(value: string): string;
|
|
120
|
+
protected parseDate(value: string): string;
|
|
121
|
+
protected parseDateTime(value: string): string;
|
|
122
|
+
private readonly inputElementEffect;
|
|
123
|
+
private readonly errorFixEffect;
|
|
124
|
+
focus(): Promise<void>;
|
|
77
125
|
canFocus(): RdtBooleanResult;
|
|
78
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<
|
|
79
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<
|
|
126
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovDateComponent, never>;
|
|
127
|
+
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>;
|
|
80
128
|
}
|
|
81
129
|
|
|
82
130
|
declare class RdtGovNumberInputComponent extends RdtNumericInputComponent {
|
|
@@ -112,23 +160,29 @@ declare class RdtGovSelectComponent<TItem, TId> extends RdtBaseSelectCommonCompo
|
|
|
112
160
|
private readonly selectButton;
|
|
113
161
|
private readonly overlayTemplate;
|
|
114
162
|
private readonly optionEls;
|
|
163
|
+
readonly hideErrors: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
115
164
|
readonly multi: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
116
165
|
readonly size: _angular_core.InputSignal<GovSize>;
|
|
117
|
-
readonly placeholder: _angular_core.InputSignal<string>;
|
|
118
166
|
readonly showClear: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
119
167
|
readonly showSearchInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
120
168
|
readonly showSearch: _angular_core.WritableSignal<boolean>;
|
|
121
169
|
readonly labelPositionInput: _angular_core.InputSignal<GovLabelPosition>;
|
|
122
170
|
readonly labelPosition: _angular_core.WritableSignal<GovLabelPosition>;
|
|
123
171
|
private readonly keyManager;
|
|
172
|
+
/** Sets up a key manager to listen to keyboard events on the overlay panel. */
|
|
173
|
+
private getKeyManager;
|
|
174
|
+
private visibleOptionsEffect;
|
|
124
175
|
private resizeEffect;
|
|
125
176
|
private overlayRef;
|
|
126
177
|
protected isEmpty(value: TId | TId[] | null): boolean;
|
|
127
178
|
readonly selectedLabel: _angular_core.Signal<string | null>;
|
|
128
179
|
onClearClick(event: MouseEvent): void;
|
|
129
180
|
openOverlay(): void;
|
|
130
|
-
protected handleButtonKeydown(
|
|
181
|
+
protected handleButtonKeydown(event: KeyboardEvent): void;
|
|
182
|
+
protected handleVisibleDropdown(event: KeyboardEvent): void;
|
|
183
|
+
protected handleHiddenDropdown(event: KeyboardEvent): void;
|
|
131
184
|
protected handleButtonBlur(): void;
|
|
185
|
+
close(): void;
|
|
132
186
|
protected handleInput(query: string | null): void;
|
|
133
187
|
handleInputKeydown($event: KeyboardEvent): void;
|
|
134
188
|
protected toExternalValue(internalValue: TId | TId[] | null): TId | TId[] | null;
|
|
@@ -142,7 +196,7 @@ declare class RdtGovSelectComponent<TItem, TId> extends RdtBaseSelectCommonCompo
|
|
|
142
196
|
canFocus(): RdtBooleanResult;
|
|
143
197
|
ngOnDestroy(): void;
|
|
144
198
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovSelectComponent<any, any>, never>;
|
|
145
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovSelectComponent<any, any>, "rdt-gov-select", never, { "
|
|
199
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovSelectComponent<any, any>, "rdt-gov-select", never, { "hideErrors": { "alias": "hideErrors"; "required": false; "isSignal": true; }; "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "showClear": { "alias": "showClear"; "required": false; "isSignal": true; }; "showSearchInput": { "alias": "showSearch"; "required": false; "isSignal": true; }; "labelPositionInput": { "alias": "labelPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
146
200
|
}
|
|
147
201
|
|
|
148
202
|
declare class RdtGovTextInputComponent extends RdtTextInputComponent {
|
|
@@ -165,7 +219,18 @@ declare class RdtGovTextInputComponent extends RdtTextInputComponent {
|
|
|
165
219
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdtGovTextInputComponent, "rdt-gov-text-input", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconStart": { "alias": "iconStart"; "required": false; "isSignal": true; }; "labelPositionInput": { "alias": "labelPosition"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
166
220
|
}
|
|
167
221
|
|
|
222
|
+
declare class RdtGovThemeService {
|
|
223
|
+
private readonly attribute;
|
|
224
|
+
constructor();
|
|
225
|
+
private init;
|
|
226
|
+
swapTheme(): void;
|
|
227
|
+
setTheme(theme: 'light' | 'dark'): void;
|
|
228
|
+
getTheme(): string | null;
|
|
229
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdtGovThemeService, never>;
|
|
230
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<RdtGovThemeService>;
|
|
231
|
+
}
|
|
232
|
+
|
|
168
233
|
declare function forceFocus(input: HTMLInputElement): void;
|
|
169
234
|
|
|
170
|
-
export { DEFAULT_GOV_BUTTON_COLOR, DEFAULT_GOV_BUTTON_SIZE, DEFAULT_GOV_BUTTON_TYPE, RdtGovButtonComponent, RdtGovCheckboxComponent, RdtGovIconComponent, RdtGovNumberInputComponent, RdtGovSelectComponent, RdtGovSelectOfflineProviderDirective, RdtGovTextInputComponent, forceFocus, initRdtGov, provideNgrdtGov };
|
|
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 };
|
|
171
236
|
export type { GovButtonType, GovColor, GovLabelPosition, GovMessageVariant, GovSize, RdtGovConfig };
|
|
@@ -1,3 +1,30 @@
|
|
|
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
|
+
|
|
1
28
|
rdt-gov-select {
|
|
2
29
|
display: inline-block;
|
|
3
30
|
width: 100%;
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ngrdt/gov",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.68",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/core": "^20.0.0",
|
|
6
6
|
"@angular/forms": "^20.0.0",
|
|
7
7
|
"@gov-design-system-ce/angular": "^1.3.1",
|
|
8
8
|
"rxjs": "~7.8.0",
|
|
9
|
-
"@ngrdt/core": "^0.0.
|
|
10
|
-
"@ngrdt/forms": "^0.0.
|
|
11
|
-
"@ngrdt/icon": "^0.0.
|
|
12
|
-
"@ngrdt/utils": "^0.0.
|
|
9
|
+
"@ngrdt/core": "^0.0.68",
|
|
10
|
+
"@ngrdt/forms": "^0.0.68",
|
|
11
|
+
"@ngrdt/icon": "^0.0.68",
|
|
12
|
+
"@ngrdt/utils": "^0.0.68",
|
|
13
13
|
"@angular/cdk": "^20.2.0"
|
|
14
14
|
},
|
|
15
15
|
"sideEffects": false,
|
|
16
|
-
"module": "fesm2022/ngrdt-gov.mjs",
|
|
17
|
-
"typings": "index.d.ts",
|
|
18
16
|
"exports": {
|
|
17
|
+
"./rdt-gov-menu.css": "./src/lib/gov/ui/menu/rdt-gov-menu.css",
|
|
18
|
+
"./rdt-gov-table.css": "./src/lib/gov/ui/table/rdt-gov-table.css",
|
|
19
19
|
"./package.json": {
|
|
20
20
|
"default": "./package.json"
|
|
21
21
|
},
|
|
@@ -24,6 +24,8 @@
|
|
|
24
24
|
"default": "./fesm2022/ngrdt-gov.mjs"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
+
"module": "fesm2022/ngrdt-gov.mjs",
|
|
28
|
+
"typings": "index.d.ts",
|
|
27
29
|
"dependencies": {
|
|
28
30
|
"tslib": "^2.3.0"
|
|
29
31
|
}
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
ul {
|
|
3
|
-
li:before {
|
|
4
|
-
content: none;
|
|
5
|
-
}
|
|
6
|
-
justify-content: space-between;
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
.menu-item {
|
|
10
|
-
&:hover {
|
|
11
|
-
text-decoration: underline;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
ul.menu-item-container {
|
|
16
|
-
min-width: 280px;
|
|
17
|
-
padding: var(--spacing-s) var(--spacing-m) !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
--rdt-menu-background: var(--background-block-primary);
|
|
21
|
-
--rdt-menu-border-radius: 0 0 var(--corner-radius-m) var(--corner-radius-m);
|
|
22
|
-
|
|
23
|
-
// GOV menu bar item style
|
|
24
|
-
--rdt-menu-bar-item-background: transparent;
|
|
25
|
-
--rdt-menu-bar-item-text-color: var(--text-primary-color);
|
|
26
|
-
--rdt-menu-bar-item-padding: var(--spacing-s) var(--spacing-m) !important;
|
|
27
|
-
--rdt-menu-bar-item-border-radius: var(
|
|
28
|
-
--outline-border-radius,
|
|
29
|
-
var(--corner-radius-xs-nudge)
|
|
30
|
-
);
|
|
31
|
-
--rdt-menu-bar-item-border: none;
|
|
32
|
-
--rdt-menu-bar-item-outline: none;
|
|
33
|
-
--rdt-menu-bar-item-margin: 0;
|
|
34
|
-
--rdt-menu-bar-item-font-size: var(--font-size-body-m);
|
|
35
|
-
--rdt-menu-bar-item-font-weight: 500;
|
|
36
|
-
|
|
37
|
-
//GOV MENU ITEM
|
|
38
|
-
--rdt-menu-item-font-size: var(--font-size-body-s);
|
|
39
|
-
--rdt-menu-item-padding: var(--spacing-xs) 0 var(--spacing-xs)
|
|
40
|
-
var(--spacing-xs);
|
|
41
|
-
|
|
42
|
-
//GOV Hover styles
|
|
43
|
-
--rdt-menu-bar-item-hover-background: var(--button-outlined-primary-hover);
|
|
44
|
-
--rdt-menu-bar-item-hover-text-color: var(--text-primary-color);
|
|
45
|
-
--rdt-menu-bar-item-hover-border: none;
|
|
46
|
-
--rdt-menu-bar-item-hover-outline: none;
|
|
47
|
-
|
|
48
|
-
//GOV Expanded styles
|
|
49
|
-
--rdt-menu-bar-item-expanded-background: var(--button-outlined-primary-hover);
|
|
50
|
-
--rdt-menu-bar-item-expanded-text-color: var(--text-primary-color);
|
|
51
|
-
--rdt-menu-bar-item-expanded-border: none;
|
|
52
|
-
--rdt-menu-bar-item-expanded-outline: none;
|
|
53
|
-
|
|
54
|
-
//GOV Focus styles
|
|
55
|
-
--rdt-menu-bar-item-focus-background: transparent;
|
|
56
|
-
--rdt-menu-bar-item-focus-text-color: var(--text-primary-color);
|
|
57
|
-
--rdt-menu-bar-item-focus-border: none;
|
|
58
|
-
--rdt-menu-bar-item-focus-outline: var(--outline-width, 0.125rem) solid
|
|
59
|
-
var(--status-focus);
|
|
60
|
-
|
|
61
|
-
//GOV Route active styles
|
|
62
|
-
--rdt-menu-bar-item-route-active-background: var(
|
|
63
|
-
--button-outlined-primary-active
|
|
64
|
-
);
|
|
65
|
-
--rdt-menu-bar-item-route-active-text-color: var(--text-primary-color);
|
|
66
|
-
--rdt-menu-bar-item-route-active-border: none;
|
|
67
|
-
--rdt-menu-bar-item-route-active-outline: none;
|
|
68
|
-
|
|
69
|
-
//GOV Disabled styles
|
|
70
|
-
--rdt-menu-bar-item-disabled-background: var(
|
|
71
|
-
--disabled-background,
|
|
72
|
-
var(--button-solid-disabled)
|
|
73
|
-
);
|
|
74
|
-
--rdt-menu-bar-item-disabled-text-color: var(
|
|
75
|
-
--disabled-color,
|
|
76
|
-
var(--text-disabled)
|
|
77
|
-
);
|
|
78
|
-
--rdt-menu-bar-item-disabled-border: none;
|
|
79
|
-
--rdt-menu-bar-item-disabled-outline: none;
|
|
80
|
-
|
|
81
|
-
@media only screen and (max-width: 767px) {
|
|
82
|
-
--rdt-menu-background: transparent;
|
|
83
|
-
.menu-bar-item {
|
|
84
|
-
flex-direction: column;
|
|
85
|
-
&-container {
|
|
86
|
-
flex-direction: column;
|
|
87
|
-
}
|
|
88
|
-
&-content {
|
|
89
|
-
width: 100%;
|
|
90
|
-
background-color: var(--background-block-primary);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
rdt-menu-overlay {
|
|
94
|
-
height: 0px;
|
|
95
|
-
width: 100%;
|
|
96
|
-
position: unset;
|
|
97
|
-
}
|
|
98
|
-
rdt-menu-overlay.expanded {
|
|
99
|
-
height: unset;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
File without changes
|
package/styles.scss
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
@use '@gov-design-system-ce/styles/lib/tokens' as *;
|
|
2
|
-
@use '@gov-design-system-ce/styles/lib/styles' as *;
|
|
3
|
-
@use '@gov-design-system-ce/styles/lib/layout' as *;
|
|
4
|
-
@use '@gov-design-system-ce/styles/lib/components' as *;
|
|
5
|
-
// OUR CUSTOMIZATION
|
|
6
|
-
@use '../src/lib/gov/ui/menu/rdt-gov-menu' as *;
|