@sebgroup/green-core 1.4.1 → 1.4.2
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/components/context-menu/context-menu.d.ts +4 -3
- package/components/datepicker/datepicker.d.ts +1 -0
- package/components/dropdown/dropdown.d.ts +3 -1
- package/components/form-control.d.ts +2 -2
- package/gds-element.d.ts +8 -0
- package/index.js +301 -158
- package/package.json +1 -1
- package/primitives/calendar/calendar.d.ts +3 -2
- package/primitives/listbox/listbox.d.ts +3 -2
- package/primitives/listbox/option.d.ts +3 -1
- package/primitives/menu/menu-item.d.ts +3 -1
- package/primitives/menu/menu.d.ts +3 -2
- package/primitives/popover/popover.d.ts +3 -2
- package/transitional-styles.js +1178 -4695
- package/utils/helpers/transitional-styles.d.ts +3 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { LitElement } from 'lit';
|
|
2
|
-
import '../../primitives/menu/menu';
|
|
3
1
|
import { Placement } from '@floating-ui/dom';
|
|
2
|
+
import { GdsElement } from '../../gds-element';
|
|
3
|
+
import '../../primitives/menu/menu';
|
|
4
4
|
/**
|
|
5
5
|
* @element gds-context-menu
|
|
6
6
|
* @status beta
|
|
@@ -14,7 +14,7 @@ import { Placement } from '@floating-ui/dom';
|
|
|
14
14
|
*
|
|
15
15
|
* @slot - The default slot. Only `gds-menu-item` elements are accepted here.
|
|
16
16
|
*/
|
|
17
|
-
export declare class GdsContextMenu extends
|
|
17
|
+
export declare class GdsContextMenu extends GdsElement {
|
|
18
18
|
#private;
|
|
19
19
|
static shadowRootOptions: ShadowRootInit;
|
|
20
20
|
/**
|
|
@@ -33,6 +33,7 @@ export declare class GdsContextMenu extends LitElement {
|
|
|
33
33
|
* The placement of the popover relative to the trigger.
|
|
34
34
|
*/
|
|
35
35
|
placement: Placement;
|
|
36
|
+
private _tStyles?;
|
|
36
37
|
private elTriggerBtn;
|
|
37
38
|
constructor();
|
|
38
39
|
connectedCallback(): void;
|
|
@@ -3,6 +3,7 @@ import '../../primitives/listbox';
|
|
|
3
3
|
import type { GdsOption, OptionsContainer } from '../../primitives/listbox';
|
|
4
4
|
import '../../primitives/popover';
|
|
5
5
|
import { GdsFormControlElement } from '../form-control';
|
|
6
|
+
import { CSSResult } from 'lit';
|
|
6
7
|
/**
|
|
7
8
|
* @element gds-dropdown
|
|
8
9
|
* A dropdown consist of a trigger button and a list of selectable options. It is used to select a single value from a list of options.
|
|
@@ -19,7 +20,7 @@ import { GdsFormControlElement } from '../form-control';
|
|
|
19
20
|
*/
|
|
20
21
|
export declare class GdsDropdown<ValueT = any> extends GdsFormControlElement<ValueT | ValueT[]> implements OptionsContainer {
|
|
21
22
|
#private;
|
|
22
|
-
static styles:
|
|
23
|
+
static styles: CSSResult;
|
|
23
24
|
static shadowRootOptions: ShadowRootInit;
|
|
24
25
|
/**
|
|
25
26
|
* The label of the dropdown.
|
|
@@ -76,6 +77,7 @@ export declare class GdsDropdown<ValueT = any> extends GdsFormControlElement<Val
|
|
|
76
77
|
* are still readable and apply appropriate custom layout or truncation if neccecary.
|
|
77
78
|
*/
|
|
78
79
|
syncPopoverWidth: boolean;
|
|
80
|
+
private _tStyles?;
|
|
79
81
|
private elTriggerBtn;
|
|
80
82
|
private elTriggerBtnAsync;
|
|
81
83
|
private elListbox;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GdsElement } from '../gds-element';
|
|
2
2
|
/**
|
|
3
3
|
* Abstract base class for Green Core form controls.
|
|
4
4
|
*
|
|
@@ -7,7 +7,7 @@ import { LitElement } from 'lit';
|
|
|
7
7
|
*
|
|
8
8
|
* @internal
|
|
9
9
|
*/
|
|
10
|
-
export declare abstract class GdsFormControlElement<ValueT = any> extends
|
|
10
|
+
export declare abstract class GdsFormControlElement<ValueT = any> extends GdsElement implements Partial<Omit<HTMLInputElement, 'value'>> {
|
|
11
11
|
#private;
|
|
12
12
|
static formAssociated: boolean;
|
|
13
13
|
constructor();
|