@sebgroup/green-core 2.8.2 → 2.9.0
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/divider/divider.component.d.ts +3 -1
- package/components/divider/divider.component.js +2 -1
- package/components/dropdown/dropdown.component.d.ts +23 -19
- package/components/dropdown/dropdown.component.js +44 -35
- package/components/grid/grid.styles.js +1 -0
- package/components/img/img.component.d.ts +1 -1
- package/components/img/img.component.js +7 -2
- package/gds-element.js +1 -1
- package/generated/react/divider/index.d.ts +6 -0
- package/generated/react/dropdown/index.d.ts +17 -1
- package/generated/react/img/index.d.ts +3 -0
- package/generated/react/index.d.ts +6 -6
- package/generated/react/index.js +6 -6
- package/package.json +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { GdsElement } from '../../gds-element';
|
|
2
|
+
declare const GdsDivider_base: (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").SizeXProps) & typeof GdsElement;
|
|
2
3
|
/**
|
|
3
4
|
* @element gds-divider
|
|
4
5
|
*
|
|
5
6
|
* The `gds-divider` component is a horizontal rule that separates content in a layout. It is equivalent to the `<hr>` element in HTML, and provides the same semantic meaning.
|
|
6
7
|
*/
|
|
7
|
-
export declare class GdsDivider extends
|
|
8
|
+
export declare class GdsDivider extends GdsDivider_base {
|
|
8
9
|
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
9
10
|
/**
|
|
10
11
|
* Controls the color property of the divider.
|
|
@@ -55,3 +56,4 @@ export declare class GdsDivider extends GdsElement {
|
|
|
55
56
|
role: string | null;
|
|
56
57
|
render(): any;
|
|
57
58
|
}
|
|
59
|
+
export {};
|
|
@@ -11,8 +11,9 @@ import {
|
|
|
11
11
|
gdsCustomElement,
|
|
12
12
|
html
|
|
13
13
|
} from "../../utils/helpers/custom-element-scoping.js";
|
|
14
|
+
import { withSizeXProps } from "../../utils/mixins/declarative-layout-mixins.js";
|
|
14
15
|
import DividerStyles from "./divider.styles.js";
|
|
15
|
-
let GdsDivider = class extends GdsElement {
|
|
16
|
+
let GdsDivider = class extends withSizeXProps(GdsElement) {
|
|
16
17
|
constructor() {
|
|
17
18
|
super(...arguments);
|
|
18
19
|
this.role = null;
|
|
@@ -1,24 +1,7 @@
|
|
|
1
1
|
import { GdsFormControlElement } from '../form/form-control';
|
|
2
2
|
import type { GdsOption, OptionsContainer } from '../../primitives/listbox/option.component';
|
|
3
3
|
export * from '../../primitives/listbox/option.component';
|
|
4
|
-
|
|
5
|
-
* @element gds-dropdown
|
|
6
|
-
* 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.
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @slot - Options for the dropdown. Accepts `gds-option` and `gds-menu-heading` elements.
|
|
10
|
-
* @slot trigger - Custom content for the trigger button can be assigned through this slot.
|
|
11
|
-
* @slot extended-supporting-text - A longer supporting text can be placed here. It will be displayed in a panel when the user clicks the info button.
|
|
12
|
-
* @slot message - ***(deprecated - use `errorMessage` property instead)*** Error message to show below the input field whem there is a validation error.
|
|
13
|
-
* @slot sub-label - ***(deprecated - use `supporting-text` property instead)*** Renders between the label and the trigger button.
|
|
14
|
-
*
|
|
15
|
-
* @event change - Fired when the value of the dropdown is changed through user interaction (not when value prop is set programatically).
|
|
16
|
-
* @event input - Fired when the value of the dropdown is changed through user interaction.
|
|
17
|
-
* @event gds-ui-state - Fired when the dropdown is opened or closed by the user. Can be cancelled to prevent the dropdown from opening or closing.
|
|
18
|
-
* @event gds-filter-input - Fired when the user types in the search field. The event is cancellable, and the consumer is expected to handle filtering and updating the options list if the event is cancelled.
|
|
19
|
-
* @event gds-input-cleared - Fired when the user clears the input using the clear button.
|
|
20
|
-
*/
|
|
21
|
-
export declare class GdsDropdown<ValueT = any> extends GdsFormControlElement<ValueT | ValueT[]> implements OptionsContainer {
|
|
4
|
+
declare class Dropdown extends GdsFormControlElement implements OptionsContainer {
|
|
22
5
|
#private;
|
|
23
6
|
static styles: (import("lit").CSSResult | import("lit").CSSResult[])[];
|
|
24
7
|
get type(): string;
|
|
@@ -62,7 +45,7 @@ export declare class GdsDropdown<ValueT = any> extends GdsFormControlElement<Val
|
|
|
62
45
|
* dropdown.compareWith = (a, b) => a.id === b.id
|
|
63
46
|
* ```
|
|
64
47
|
*/
|
|
65
|
-
compareWith: (a:
|
|
48
|
+
compareWith: (a: unknown, b: unknown) => boolean;
|
|
66
49
|
/**
|
|
67
50
|
* Delegate function for customizing the search filtering.
|
|
68
51
|
* By default, the search filter will just check if the option label
|
|
@@ -155,3 +138,24 @@ export declare class GdsDropdown<ValueT = any> extends GdsFormControlElement<Val
|
|
|
155
138
|
*/
|
|
156
139
|
private _handleOpenChange;
|
|
157
140
|
}
|
|
141
|
+
declare const GdsDropdown_base: (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").SizeXProps) & (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").MarginProps) & (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").LayoutChildProps) & typeof Dropdown;
|
|
142
|
+
/**
|
|
143
|
+
* @element gds-dropdown
|
|
144
|
+
* 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.
|
|
145
|
+
*
|
|
146
|
+
* The type parameter `ValueT` is deprecated and no longer used.
|
|
147
|
+
*
|
|
148
|
+
* @slot - Options for the dropdown. Accepts `gds-option` and `gds-menu-heading` elements.
|
|
149
|
+
* @slot trigger - Custom content for the trigger button can be assigned through this slot.
|
|
150
|
+
* @slot extended-supporting-text - A longer supporting text can be placed here. It will be displayed in a panel when the user clicks the info button.
|
|
151
|
+
* @slot message - ***(deprecated - use `errorMessage` property instead)*** Error message to show below the input field whem there is a validation error.
|
|
152
|
+
* @slot sub-label - ***(deprecated - use `supporting-text` property instead)*** Renders between the label and the trigger button.
|
|
153
|
+
*
|
|
154
|
+
* @event change - Fired when the value of the dropdown is changed through user interaction (not when value prop is set programatically).
|
|
155
|
+
* @event input - Fired when the value of the dropdown is changed through user interaction.
|
|
156
|
+
* @event gds-ui-state - Fired when the dropdown is opened or closed by the user. Can be cancelled to prevent the dropdown from opening or closing.
|
|
157
|
+
* @event gds-filter-input - Fired when the user types in the search field. The event is cancellable, and the consumer is expected to handle filtering and updating the options list if the event is cancelled.
|
|
158
|
+
* @event gds-input-cleared - Fired when the user clears the input using the clear button.
|
|
159
|
+
*/
|
|
160
|
+
export declare class GdsDropdown<ValueT = any> extends GdsDropdown_base {
|
|
161
|
+
}
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__privateMethod,
|
|
6
6
|
__privateSet
|
|
7
7
|
} from "../../chunks/chunk.QU3DSPNU.js";
|
|
8
|
-
var _optionElements,
|
|
8
|
+
var _optionElements, _Dropdown_instances, shouldShowFooter_fn, _renderCombobox, _renderTriggerButton, _calcMaxHeight, _dispatchUISateEvent, _handlePopoverStateChange, _handleClearButton, _handleSearchFieldInput, _handleSearchFieldKeyDown, _handleListboxKeyDown, _handleOptionFocusChange, handleSelectionChange_fn, _dispatchInputEvent, _dispatchChangeEvent, registerAutoCloseListener_fn, unregisterAutoCloseListener_fn, _blurCloseListener, _tabCloseListener;
|
|
9
9
|
import { localized, msg, str } from "@lit/localize";
|
|
10
10
|
import { nothing } from "lit";
|
|
11
11
|
import { property, query, queryAsync } from "lit/decorators.js";
|
|
@@ -22,6 +22,11 @@ import formControlHostStyle from "../../shared-styles/form-control-host.style.js
|
|
|
22
22
|
import { tokens } from "../../tokens.style.js";
|
|
23
23
|
import { observeLightDOM } from "../../utils/decorators/observe-light-dom.js";
|
|
24
24
|
import { watch } from "../../utils/decorators/watch.js";
|
|
25
|
+
import {
|
|
26
|
+
withLayoutChildProps,
|
|
27
|
+
withMarginProps,
|
|
28
|
+
withSizeXProps
|
|
29
|
+
} from "../../utils/mixins/declarative-layout-mixins.js";
|
|
25
30
|
import { GdsFormControlElement } from "../form/form-control.js";
|
|
26
31
|
import { IconCheckmark } from "../icon/icons/checkmark.component.js";
|
|
27
32
|
import { IconChevronBottom } from "../icon/icons/chevron-bottom.component.js";
|
|
@@ -29,10 +34,10 @@ import { IconCrossSmall } from "../icon/icons/cross-small.component.js";
|
|
|
29
34
|
import { GdsPopover } from "../popover/popover.component.js";
|
|
30
35
|
import DropdownStyles from "./dropdown.styles.js";
|
|
31
36
|
export * from "../../primitives/listbox/option.component.js";
|
|
32
|
-
let
|
|
37
|
+
let Dropdown = class extends GdsFormControlElement {
|
|
33
38
|
constructor() {
|
|
34
39
|
super(...arguments);
|
|
35
|
-
__privateAdd(this,
|
|
40
|
+
__privateAdd(this, _Dropdown_instances);
|
|
36
41
|
this.supportingText = "";
|
|
37
42
|
this.open = false;
|
|
38
43
|
this.searchable = false;
|
|
@@ -380,7 +385,7 @@ let GdsDropdown = class extends GdsFormControlElement {
|
|
|
380
385
|
id="listbox"
|
|
381
386
|
.multiple="${ifDefined(this.multiple)}"
|
|
382
387
|
.compareWith="${this.compareWith}"
|
|
383
|
-
@change="${__privateMethod(this,
|
|
388
|
+
@change="${__privateMethod(this, _Dropdown_instances, handleSelectionChange_fn)}"
|
|
384
389
|
@gds-focus="${__privateGet(this, _handleOptionFocusChange)}"
|
|
385
390
|
@keydown=${__privateGet(this, _handleListboxKeyDown)}
|
|
386
391
|
>
|
|
@@ -389,7 +394,7 @@ let GdsDropdown = class extends GdsFormControlElement {
|
|
|
389
394
|
</gds-popover>
|
|
390
395
|
|
|
391
396
|
${when(
|
|
392
|
-
__privateMethod(this,
|
|
397
|
+
__privateMethod(this, _Dropdown_instances, shouldShowFooter_fn).call(this),
|
|
393
398
|
() => html`
|
|
394
399
|
<gds-form-control-footer
|
|
395
400
|
class="size-${this.size}"
|
|
@@ -420,9 +425,7 @@ let GdsDropdown = class extends GdsFormControlElement {
|
|
|
420
425
|
if (this.value === void 0) {
|
|
421
426
|
if (this.placeholder) this.value = this.placeholder.value;
|
|
422
427
|
else this.value = this.options[0]?.value;
|
|
423
|
-
} else if (!this.combobox && !this.placeholder && this.options.find(
|
|
424
|
-
(o) => this.compareWith(o.value, this.value)
|
|
425
|
-
) === void 0) {
|
|
428
|
+
} else if (!this.combobox && !this.placeholder && this.options.find((o) => this.compareWith(o.value, this.value)) === void 0) {
|
|
426
429
|
this.options[0] && (this.options[0].selected = true);
|
|
427
430
|
this.value = this.options[0]?.value;
|
|
428
431
|
}
|
|
@@ -438,9 +441,9 @@ let GdsDropdown = class extends GdsFormControlElement {
|
|
|
438
441
|
_handleOpenChange() {
|
|
439
442
|
const open = this.open;
|
|
440
443
|
this.options.forEach((o) => o.hidden = !open);
|
|
441
|
-
if (open) __privateMethod(this,
|
|
444
|
+
if (open) __privateMethod(this, _Dropdown_instances, registerAutoCloseListener_fn).call(this);
|
|
442
445
|
else {
|
|
443
|
-
__privateMethod(this,
|
|
446
|
+
__privateMethod(this, _Dropdown_instances, unregisterAutoCloseListener_fn).call(this);
|
|
444
447
|
this._elSearchInput && (this._elSearchInput.value = "");
|
|
445
448
|
}
|
|
446
449
|
const selectedOption = this.options.find((option) => option.selected);
|
|
@@ -453,7 +456,7 @@ let GdsDropdown = class extends GdsFormControlElement {
|
|
|
453
456
|
}
|
|
454
457
|
};
|
|
455
458
|
_optionElements = new WeakMap();
|
|
456
|
-
|
|
459
|
+
_Dropdown_instances = new WeakSet();
|
|
457
460
|
shouldShowFooter_fn = function() {
|
|
458
461
|
return !this.plain;
|
|
459
462
|
};
|
|
@@ -495,65 +498,65 @@ unregisterAutoCloseListener_fn = function() {
|
|
|
495
498
|
};
|
|
496
499
|
_blurCloseListener = new WeakMap();
|
|
497
500
|
_tabCloseListener = new WeakMap();
|
|
498
|
-
|
|
501
|
+
Dropdown.styles = [tokens, formControlHostStyle, DropdownStyles];
|
|
499
502
|
__decorateClass([
|
|
500
503
|
property({ attribute: "supporting-text" })
|
|
501
|
-
],
|
|
504
|
+
], Dropdown.prototype, "supportingText", 2);
|
|
502
505
|
__decorateClass([
|
|
503
506
|
property({ type: Boolean, reflect: true })
|
|
504
|
-
],
|
|
507
|
+
], Dropdown.prototype, "open", 2);
|
|
505
508
|
__decorateClass([
|
|
506
509
|
property({ type: Boolean, reflect: true })
|
|
507
|
-
],
|
|
510
|
+
], Dropdown.prototype, "searchable", 2);
|
|
508
511
|
__decorateClass([
|
|
509
512
|
property({ type: Boolean, reflect: true })
|
|
510
|
-
],
|
|
513
|
+
], Dropdown.prototype, "multiple", 2);
|
|
511
514
|
__decorateClass([
|
|
512
515
|
property({ type: Boolean, reflect: true })
|
|
513
|
-
],
|
|
516
|
+
], Dropdown.prototype, "clearable", 2);
|
|
514
517
|
__decorateClass([
|
|
515
518
|
property({ type: Boolean, reflect: true })
|
|
516
|
-
],
|
|
519
|
+
], Dropdown.prototype, "combobox", 2);
|
|
517
520
|
__decorateClass([
|
|
518
521
|
property()
|
|
519
|
-
],
|
|
522
|
+
], Dropdown.prototype, "compareWith", 2);
|
|
520
523
|
__decorateClass([
|
|
521
524
|
property()
|
|
522
|
-
],
|
|
525
|
+
], Dropdown.prototype, "searchFilter", 2);
|
|
523
526
|
__decorateClass([
|
|
524
527
|
property({ type: Boolean, attribute: "sync-popover-width" })
|
|
525
|
-
],
|
|
528
|
+
], Dropdown.prototype, "syncPopoverWidth", 2);
|
|
526
529
|
__decorateClass([
|
|
527
530
|
property({ type: Number, attribute: "max-height" })
|
|
528
|
-
],
|
|
531
|
+
], Dropdown.prototype, "maxHeight", 2);
|
|
529
532
|
__decorateClass([
|
|
530
533
|
property({ reflect: true })
|
|
531
|
-
],
|
|
534
|
+
], Dropdown.prototype, "size", 2);
|
|
532
535
|
__decorateClass([
|
|
533
536
|
property({ type: Boolean, attribute: "hide-label" })
|
|
534
|
-
],
|
|
537
|
+
], Dropdown.prototype, "hideLabel", 2);
|
|
535
538
|
__decorateClass([
|
|
536
539
|
property({ type: Boolean })
|
|
537
|
-
],
|
|
540
|
+
], Dropdown.prototype, "plain", 2);
|
|
538
541
|
__decorateClass([
|
|
539
542
|
property({ type: Boolean })
|
|
540
|
-
],
|
|
543
|
+
], Dropdown.prototype, "disableMobileStyles", 2);
|
|
541
544
|
__decorateClass([
|
|
542
545
|
property({
|
|
543
546
|
attribute: "show-extended-supporting-text",
|
|
544
547
|
type: Boolean,
|
|
545
548
|
reflect: true
|
|
546
549
|
})
|
|
547
|
-
],
|
|
550
|
+
], Dropdown.prototype, "showExtendedSupportingText", 2);
|
|
548
551
|
__decorateClass([
|
|
549
552
|
query("#trigger")
|
|
550
|
-
],
|
|
553
|
+
], Dropdown.prototype, "_elTriggerBtn", 2);
|
|
551
554
|
__decorateClass([
|
|
552
555
|
queryAsync("#listbox")
|
|
553
|
-
],
|
|
556
|
+
], Dropdown.prototype, "_elListbox", 2);
|
|
554
557
|
__decorateClass([
|
|
555
558
|
query("#searchinput")
|
|
556
|
-
],
|
|
559
|
+
], Dropdown.prototype, "_elSearchInput", 2);
|
|
557
560
|
__decorateClass([
|
|
558
561
|
observeLightDOM({
|
|
559
562
|
attributes: true,
|
|
@@ -561,13 +564,20 @@ __decorateClass([
|
|
|
561
564
|
subtree: true,
|
|
562
565
|
characterData: true
|
|
563
566
|
})
|
|
564
|
-
],
|
|
567
|
+
], Dropdown.prototype, "_handleLightDOMChange", 1);
|
|
565
568
|
__decorateClass([
|
|
566
569
|
watch("value")
|
|
567
|
-
],
|
|
570
|
+
], Dropdown.prototype, "_handleValueChange", 1);
|
|
568
571
|
__decorateClass([
|
|
569
572
|
watch("open")
|
|
570
|
-
],
|
|
573
|
+
], Dropdown.prototype, "_handleOpenChange", 1);
|
|
574
|
+
Dropdown = __decorateClass([
|
|
575
|
+
localized()
|
|
576
|
+
], Dropdown);
|
|
577
|
+
let GdsDropdown = class extends withSizeXProps(
|
|
578
|
+
withMarginProps(withLayoutChildProps(Dropdown))
|
|
579
|
+
) {
|
|
580
|
+
};
|
|
571
581
|
GdsDropdown = __decorateClass([
|
|
572
582
|
gdsCustomElement("gds-dropdown", {
|
|
573
583
|
dependsOn: [
|
|
@@ -580,8 +590,7 @@ GdsDropdown = __decorateClass([
|
|
|
580
590
|
IconChevronBottom,
|
|
581
591
|
IconCrossSmall
|
|
582
592
|
]
|
|
583
|
-
})
|
|
584
|
-
localized()
|
|
593
|
+
})
|
|
585
594
|
], GdsDropdown);
|
|
586
595
|
export {
|
|
587
596
|
GdsDropdown
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GdsElement } from '../../gds-element';
|
|
2
|
-
declare const GdsImg_base: (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").PositioningProps) & (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").SizeXProps) & (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").SizeYProps) & typeof GdsElement;
|
|
2
|
+
declare const GdsImg_base: (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").PositioningProps) & (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").MarginProps) & (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").SizeXProps) & (new (...args: any[]) => import("../../utils/mixins/declarative-layout-mixins").SizeYProps) & typeof GdsElement;
|
|
3
3
|
/**
|
|
4
4
|
* @element gds-img
|
|
5
5
|
*
|
|
@@ -2,6 +2,7 @@ import {
|
|
|
2
2
|
__decorateClass
|
|
3
3
|
} from "../../chunks/chunk.QU3DSPNU.js";
|
|
4
4
|
import { property } from "lit/decorators.js";
|
|
5
|
+
import { ifDefined } from "lit/directives/if-defined.js";
|
|
5
6
|
import { GdsElement } from "../../gds-element.js";
|
|
6
7
|
import { tokens } from "../../tokens.style.js";
|
|
7
8
|
import { styleExpressionProperty } from "../../utils/decorators/style-expression-property.js";
|
|
@@ -10,16 +11,20 @@ import {
|
|
|
10
11
|
html
|
|
11
12
|
} from "../../utils/helpers/custom-element-scoping.js";
|
|
12
13
|
import {
|
|
14
|
+
withMarginProps,
|
|
13
15
|
withPositioningProps,
|
|
14
16
|
withSizeXProps,
|
|
15
17
|
withSizeYProps
|
|
16
18
|
} from "../../utils/mixins/declarative-layout-mixins.js";
|
|
17
19
|
import IMGStyles from "./img.styles.js";
|
|
18
20
|
let GdsImg = class extends withPositioningProps(
|
|
19
|
-
withSizeXProps(withSizeYProps(GdsElement))
|
|
21
|
+
withMarginProps(withSizeXProps(withSizeYProps(GdsElement)))
|
|
20
22
|
) {
|
|
21
23
|
render() {
|
|
22
|
-
return html`<img
|
|
24
|
+
return html`<img
|
|
25
|
+
src="${ifDefined(this.src)}"
|
|
26
|
+
alt="${ifDefined(this.alt)}"
|
|
27
|
+
/>`;
|
|
23
28
|
}
|
|
24
29
|
};
|
|
25
30
|
GdsImg.styles = [tokens, IMGStyles];
|
package/gds-element.js
CHANGED
|
@@ -14,7 +14,7 @@ class GdsElement extends LitElement {
|
|
|
14
14
|
/**
|
|
15
15
|
* The semantic version of this element. Can be used for troubleshooting to verify the version being used.
|
|
16
16
|
*/
|
|
17
|
-
this.semanticVersion = "2.
|
|
17
|
+
this.semanticVersion = "2.9.0";
|
|
18
18
|
this._isUsingTransitionalStyles = false;
|
|
19
19
|
this._dynamicStylesController = new DynamicStylesController(this);
|
|
20
20
|
}
|
|
@@ -6,6 +6,12 @@ export declare const GdsDivider: (props: React.ComponentProps<ReturnType<typeof
|
|
|
6
6
|
opacity?: string | undefined;
|
|
7
7
|
role?: string | null | undefined;
|
|
8
8
|
render?: (() => any) | undefined;
|
|
9
|
+
width?: string | undefined;
|
|
10
|
+
'min-width'?: string | undefined;
|
|
11
|
+
'max-width'?: string | undefined;
|
|
12
|
+
'inline-size'?: string | undefined;
|
|
13
|
+
'min-inline-size'?: string | undefined;
|
|
14
|
+
'max-inline-size'?: string | undefined;
|
|
9
15
|
readonly semanticVersion?: "__GDS_SEM_VER__" | undefined;
|
|
10
16
|
gdsElementName?: string | undefined;
|
|
11
17
|
_isUsingTransitionalStyles?: boolean | undefined;
|
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
import { getReactComponent } from "../../../utils/react";
|
|
2
2
|
import { GdsDropdown as GdsDropdownClass } from "../../../components/dropdown/dropdown.component";
|
|
3
3
|
export declare const GdsDropdown: (props: React.ComponentProps<ReturnType<typeof getReactComponent<GdsDropdownClass>>>) => import("react").ReactElement<Omit<{
|
|
4
|
+
width?: string | undefined;
|
|
5
|
+
'min-width'?: string | undefined;
|
|
6
|
+
'max-width'?: string | undefined;
|
|
7
|
+
'inline-size'?: string | undefined;
|
|
8
|
+
'min-inline-size'?: string | undefined;
|
|
9
|
+
'max-inline-size'?: string | undefined;
|
|
10
|
+
margin?: string | undefined;
|
|
11
|
+
'margin-inline'?: string | undefined;
|
|
12
|
+
'margin-block'?: string | undefined;
|
|
13
|
+
'align-self'?: string | undefined;
|
|
14
|
+
'justify-self'?: string | undefined;
|
|
15
|
+
'place-self'?: string | undefined;
|
|
16
|
+
'grid-column'?: string | undefined;
|
|
17
|
+
'grid-row'?: string | undefined;
|
|
18
|
+
'grid-area'?: string | undefined;
|
|
19
|
+
flex?: string | undefined;
|
|
4
20
|
readonly type?: string | undefined;
|
|
5
21
|
supportingText?: string | undefined;
|
|
6
22
|
open?: boolean | undefined;
|
|
@@ -8,7 +24,7 @@ export declare const GdsDropdown: (props: React.ComponentProps<ReturnType<typeof
|
|
|
8
24
|
multiple?: boolean | undefined;
|
|
9
25
|
clearable?: boolean | undefined;
|
|
10
26
|
combobox?: boolean | undefined;
|
|
11
|
-
compareWith?: ((a:
|
|
27
|
+
compareWith?: ((a: unknown, b: unknown) => boolean) | undefined;
|
|
12
28
|
searchFilter?: ((q: string, o: import("../../../primitives/listbox/option.component").GdsOption) => boolean) | undefined;
|
|
13
29
|
syncPopoverWidth?: boolean | undefined;
|
|
14
30
|
maxHeight?: number | undefined;
|
|
@@ -11,6 +11,9 @@ export declare const GdsImg: (props: React.ComponentProps<ReturnType<typeof getR
|
|
|
11
11
|
position?: string | undefined;
|
|
12
12
|
transform?: string | undefined;
|
|
13
13
|
inset?: string | undefined;
|
|
14
|
+
margin?: string | undefined;
|
|
15
|
+
'margin-inline'?: string | undefined;
|
|
16
|
+
'margin-block'?: string | undefined;
|
|
14
17
|
width?: string | undefined;
|
|
15
18
|
'min-width'?: string | undefined;
|
|
16
19
|
'max-width'?: string | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from './alert/index.js';
|
|
2
|
+
export * from './badge/index.js';
|
|
2
3
|
export * from './blur/index.js';
|
|
3
4
|
export * from './breadcrumbs/index.js';
|
|
4
|
-
export * from './badge/index.js';
|
|
5
5
|
export * from './button/index.js';
|
|
6
6
|
export * from './calendar/index.js';
|
|
7
7
|
export * from './card/index.js';
|
|
@@ -50,6 +50,11 @@ export * from './filter-chip/index.js';
|
|
|
50
50
|
export * from './formatted-account/index.js';
|
|
51
51
|
export * from './formatted-date/index.js';
|
|
52
52
|
export * from './formatted-number/index.js';
|
|
53
|
+
export * from './radio-group/index.js';
|
|
54
|
+
export * from './segment/index.js';
|
|
55
|
+
export * from './sensitive-account/index.js';
|
|
56
|
+
export * from './sensitive-date/index.js';
|
|
57
|
+
export * from './sensitive-number/index.js';
|
|
53
58
|
export * from './icons/icon-ai/index.js';
|
|
54
59
|
export * from './icons/icon-airplane-up/index.js';
|
|
55
60
|
export * from './icons/icon-archive/index.js';
|
|
@@ -375,8 +380,3 @@ export * from './icons/icon-youtube/index.js';
|
|
|
375
380
|
export * from './icons/icon-zap/index.js';
|
|
376
381
|
export * from './icons/icon-zoom-in/index.js';
|
|
377
382
|
export * from './icons/icon-zoom-out/index.js';
|
|
378
|
-
export * from './radio-group/index.js';
|
|
379
|
-
export * from './segment/index.js';
|
|
380
|
-
export * from './sensitive-account/index.js';
|
|
381
|
-
export * from './sensitive-date/index.js';
|
|
382
|
-
export * from './sensitive-number/index.js';
|
package/generated/react/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export * from "./alert/index.js";
|
|
2
|
+
export * from "./badge/index.js";
|
|
2
3
|
export * from "./blur/index.js";
|
|
3
4
|
export * from "./breadcrumbs/index.js";
|
|
4
|
-
export * from "./badge/index.js";
|
|
5
5
|
export * from "./button/index.js";
|
|
6
6
|
export * from "./calendar/index.js";
|
|
7
7
|
export * from "./card/index.js";
|
|
@@ -50,6 +50,11 @@ export * from "./filter-chip/index.js";
|
|
|
50
50
|
export * from "./formatted-account/index.js";
|
|
51
51
|
export * from "./formatted-date/index.js";
|
|
52
52
|
export * from "./formatted-number/index.js";
|
|
53
|
+
export * from "./radio-group/index.js";
|
|
54
|
+
export * from "./segment/index.js";
|
|
55
|
+
export * from "./sensitive-account/index.js";
|
|
56
|
+
export * from "./sensitive-date/index.js";
|
|
57
|
+
export * from "./sensitive-number/index.js";
|
|
53
58
|
export * from "./icons/icon-ai/index.js";
|
|
54
59
|
export * from "./icons/icon-airplane-up/index.js";
|
|
55
60
|
export * from "./icons/icon-archive/index.js";
|
|
@@ -375,8 +380,3 @@ export * from "./icons/icon-youtube/index.js";
|
|
|
375
380
|
export * from "./icons/icon-zap/index.js";
|
|
376
381
|
export * from "./icons/icon-zoom-in/index.js";
|
|
377
382
|
export * from "./icons/icon-zoom-out/index.js";
|
|
378
|
-
export * from "./radio-group/index.js";
|
|
379
|
-
export * from "./segment/index.js";
|
|
380
|
-
export * from "./sensitive-account/index.js";
|
|
381
|
-
export * from "./sensitive-date/index.js";
|
|
382
|
-
export * from "./sensitive-number/index.js";
|
package/package.json
CHANGED