@synergy-design-system/react 2.7.3 → 2.8.1
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/chunks/chunk.XU36FQGG.js +30 -0
- package/dist/chunks/chunk.XU36FQGG.js.map +7 -0
- package/dist/components/combobox.d.ts +87 -0
- package/dist/components/combobox.js +7 -0
- package/dist/components/combobox.js.map +7 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +14 -10
- package/package.json +3 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// ../react/src/components/combobox.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/combobox/combobox.component.js";
|
|
5
|
+
var tagName = "syn-combobox";
|
|
6
|
+
Component.define("syn-combobox");
|
|
7
|
+
var SynCombobox = createComponent({
|
|
8
|
+
displayName: "SynCombobox",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {
|
|
11
|
+
onSynChange: "syn-change",
|
|
12
|
+
onSynClear: "syn-clear",
|
|
13
|
+
onSynInput: "syn-input",
|
|
14
|
+
onSynFocus: "syn-focus",
|
|
15
|
+
onSynBlur: "syn-blur",
|
|
16
|
+
onSynShow: "syn-show",
|
|
17
|
+
onSynAfterShow: "syn-after-show",
|
|
18
|
+
onSynHide: "syn-hide",
|
|
19
|
+
onSynAfterHide: "syn-after-hide",
|
|
20
|
+
onSynInvalid: "syn-invalid",
|
|
21
|
+
onSynError: "syn-error"
|
|
22
|
+
},
|
|
23
|
+
react: React,
|
|
24
|
+
tagName
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
export {
|
|
28
|
+
SynCombobox
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=chunk.XU36FQGG.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/combobox.ts"],
|
|
4
|
+
"sourcesContent": ["// ---------------------------------------------------------------------\n// \uD83D\uDD12 AUTOGENERATED @synergy-design-system/react wrappers for @synergy-design-system/components\n// Please do not edit this file directly!\n// It will get recreated when running pnpm build.\n// ---------------------------------------------------------------------\nimport * as React from 'react';\nimport { createComponent } from '@lit/react';\nimport Component from '@synergy-design-system/components/components/combobox/combobox.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynChangeEvent } from '@synergy-design-system/components';\nimport type { SynClearEvent } from '@synergy-design-system/components';\nimport type { SynInputEvent } from '@synergy-design-system/components';\nimport type { SynFocusEvent } from '@synergy-design-system/components';\nimport type { SynBlurEvent } from '@synergy-design-system/components';\nimport type { SynShowEvent } from '@synergy-design-system/components';\nimport type { SynAfterShowEvent } from '@synergy-design-system/components';\nimport type { SynHideEvent } from '@synergy-design-system/components';\nimport type { SynAfterHideEvent } from '@synergy-design-system/components';\nimport type { SynInvalidEvent } from '@synergy-design-system/components';\nimport type { SynErrorEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-combobox';\nComponent.define('syn-combobox');\n\n/**\n * @summary Comboboxes allow you to choose items from a menu of predefined options.\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-combobox--docs\n * @status stable\n *\n * @dependency syn-icon\n * @dependency syn-popup\n *\n * @slot - The listbox options. Must be `<syn-option>` elements.\n * You can use `<syn-optgroup>`'s to group items visually.\n * @slot label - The combobox's label. Alternatively, you can use the `label` attribute.\n * @slot prefix - Used to prepend a presentational icon or similar element to the combobox.\n * @slot suffix - Used to append a presentational icon or similar element to the combobox.\n * @slot clear-icon - An icon to use in lieu of the default clear icon.\n * @slot expand-icon - The icon to show when the control is expanded and collapsed.\n * Rotates on open and close.\n * @slot help-text - Text that describes how to use the combobox.\n * Alternatively, you can use the `help-text` attribute.\n *\n * @event syn-change - Emitted when the control's value changes.\n * @event syn-clear - Emitted when the control's value is cleared.\n * @event syn-input - Emitted when the control receives input.\n * @event syn-focus - Emitted when the control gains focus.\n * @event syn-blur - Emitted when the control loses focus.\n * @event syn-show - Emitted when the combobox's menu opens.\n * @event syn-after-show - Emitted after the combobox's menu opens and all animations are complete.\n * @event syn-hide - Emitted when the combobox's menu closes.\n * @event syn-after-hide - Emitted after the combobox's menu closes and all animations are complete.\n * @event syn-invalid - Emitted when the form control has been checked for validity\n * and its constraints aren't satisfied.\n * @event syn-error - Emitted when the combobox menu fails to open.\n *\n * @csspart form-control - The form control that wraps the label, combobox, and help text.\n * @csspart form-control-label - The label's wrapper.\n * @csspart form-control-input - The combobox's wrapper.\n * @csspart form-control-help-text - The help text's wrapper.\n * @csspart combobox - The container the wraps the prefix, combobox, clear icon, and expand button.\n * @csspart prefix - The container that wraps the prefix slot.\n * @csspart suffix - The container that wraps the suffix slot.\n * @csspart display-input - The element that displays the selected option's label,\n * an `<input>` element.\n * @csspart listbox - The listbox container where the options are slotted\n * and the filtered options list exists.\n * @csspart filtered-listbox - The container that wraps the filtered options.\n * @csspart clear-button - The clear button.\n * @csspart expand-icon - The container that wraps the expand icon.\n *\n * @animation combobox.show - The animation to use when showing the combobox.\n * @animation combobox.hide - The animation to use when hiding the combobox.\n */\nexport const SynCombobox = createComponent({\n displayName: 'SynCombobox',\n elementClass: Component,\n events: {\n onSynChange: 'syn-change' as EventName<SynChangeEvent>,\n onSynClear: 'syn-clear' as EventName<SynClearEvent>,\n onSynInput: 'syn-input' as EventName<SynInputEvent>,\n onSynFocus: 'syn-focus' as EventName<SynFocusEvent>,\n onSynBlur: 'syn-blur' as EventName<SynBlurEvent>,\n onSynShow: 'syn-show' as EventName<SynShowEvent>,\n onSynAfterShow: 'syn-after-show' as EventName<SynAfterShowEvent>,\n onSynHide: 'syn-hide' as EventName<SynHideEvent>,\n onSynAfterHide: 'syn-after-hide' as EventName<SynAfterHideEvent>,\n onSynInvalid: 'syn-invalid' as EventName<SynInvalidEvent>,\n onSynError: 'syn-error' as EventName<SynErrorEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynChangeEvent } from '@synergy-design-system/components';\nexport type { SynClearEvent } from '@synergy-design-system/components';\nexport type { SynInputEvent } from '@synergy-design-system/components';\nexport type { SynFocusEvent } from '@synergy-design-system/components';\nexport type { SynBlurEvent } from '@synergy-design-system/components';\nexport type { SynShowEvent } from '@synergy-design-system/components';\nexport type { SynAfterShowEvent } from '@synergy-design-system/components';\nexport type { SynHideEvent } from '@synergy-design-system/components';\nexport type { SynAfterHideEvent } from '@synergy-design-system/components';\nexport type { SynInvalidEvent } from '@synergy-design-system/components';\nexport type { SynErrorEvent } from '@synergy-design-system/components';\n"],
|
|
5
|
+
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAetB,IAAM,UAAU;AAChB,UAAU,OAAO,cAAc;AAoDxB,IAAM,cAAc,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,aAAa;AAAA,IACb,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,YAAY;AAAA,IACZ,WAAW;AAAA,IACX,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,cAAc;AAAA,IACd,YAAY;AAAA,EACd;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/combobox/combobox.component.js';
|
|
2
|
+
import { type EventName } from '@lit/react';
|
|
3
|
+
import type { SynChangeEvent } from '@synergy-design-system/components';
|
|
4
|
+
import type { SynClearEvent } from '@synergy-design-system/components';
|
|
5
|
+
import type { SynInputEvent } from '@synergy-design-system/components';
|
|
6
|
+
import type { SynFocusEvent } from '@synergy-design-system/components';
|
|
7
|
+
import type { SynBlurEvent } from '@synergy-design-system/components';
|
|
8
|
+
import type { SynShowEvent } from '@synergy-design-system/components';
|
|
9
|
+
import type { SynAfterShowEvent } from '@synergy-design-system/components';
|
|
10
|
+
import type { SynHideEvent } from '@synergy-design-system/components';
|
|
11
|
+
import type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
12
|
+
import type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
13
|
+
import type { SynErrorEvent } from '@synergy-design-system/components';
|
|
14
|
+
/**
|
|
15
|
+
* @summary Comboboxes allow you to choose items from a menu of predefined options.
|
|
16
|
+
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-combobox--docs
|
|
17
|
+
* @status stable
|
|
18
|
+
*
|
|
19
|
+
* @dependency syn-icon
|
|
20
|
+
* @dependency syn-popup
|
|
21
|
+
*
|
|
22
|
+
* @slot - The listbox options. Must be `<syn-option>` elements.
|
|
23
|
+
* You can use `<syn-optgroup>`'s to group items visually.
|
|
24
|
+
* @slot label - The combobox's label. Alternatively, you can use the `label` attribute.
|
|
25
|
+
* @slot prefix - Used to prepend a presentational icon or similar element to the combobox.
|
|
26
|
+
* @slot suffix - Used to append a presentational icon or similar element to the combobox.
|
|
27
|
+
* @slot clear-icon - An icon to use in lieu of the default clear icon.
|
|
28
|
+
* @slot expand-icon - The icon to show when the control is expanded and collapsed.
|
|
29
|
+
* Rotates on open and close.
|
|
30
|
+
* @slot help-text - Text that describes how to use the combobox.
|
|
31
|
+
* Alternatively, you can use the `help-text` attribute.
|
|
32
|
+
*
|
|
33
|
+
* @event syn-change - Emitted when the control's value changes.
|
|
34
|
+
* @event syn-clear - Emitted when the control's value is cleared.
|
|
35
|
+
* @event syn-input - Emitted when the control receives input.
|
|
36
|
+
* @event syn-focus - Emitted when the control gains focus.
|
|
37
|
+
* @event syn-blur - Emitted when the control loses focus.
|
|
38
|
+
* @event syn-show - Emitted when the combobox's menu opens.
|
|
39
|
+
* @event syn-after-show - Emitted after the combobox's menu opens and all animations are complete.
|
|
40
|
+
* @event syn-hide - Emitted when the combobox's menu closes.
|
|
41
|
+
* @event syn-after-hide - Emitted after the combobox's menu closes and all animations are complete.
|
|
42
|
+
* @event syn-invalid - Emitted when the form control has been checked for validity
|
|
43
|
+
* and its constraints aren't satisfied.
|
|
44
|
+
* @event syn-error - Emitted when the combobox menu fails to open.
|
|
45
|
+
*
|
|
46
|
+
* @csspart form-control - The form control that wraps the label, combobox, and help text.
|
|
47
|
+
* @csspart form-control-label - The label's wrapper.
|
|
48
|
+
* @csspart form-control-input - The combobox's wrapper.
|
|
49
|
+
* @csspart form-control-help-text - The help text's wrapper.
|
|
50
|
+
* @csspart combobox - The container the wraps the prefix, combobox, clear icon, and expand button.
|
|
51
|
+
* @csspart prefix - The container that wraps the prefix slot.
|
|
52
|
+
* @csspart suffix - The container that wraps the suffix slot.
|
|
53
|
+
* @csspart display-input - The element that displays the selected option's label,
|
|
54
|
+
* an `<input>` element.
|
|
55
|
+
* @csspart listbox - The listbox container where the options are slotted
|
|
56
|
+
* and the filtered options list exists.
|
|
57
|
+
* @csspart filtered-listbox - The container that wraps the filtered options.
|
|
58
|
+
* @csspart clear-button - The clear button.
|
|
59
|
+
* @csspart expand-icon - The container that wraps the expand icon.
|
|
60
|
+
*
|
|
61
|
+
* @animation combobox.show - The animation to use when showing the combobox.
|
|
62
|
+
* @animation combobox.hide - The animation to use when hiding the combobox.
|
|
63
|
+
*/
|
|
64
|
+
export declare const SynCombobox: import("@lit/react").ReactWebComponent<Component, {
|
|
65
|
+
onSynChange: EventName<SynChangeEvent>;
|
|
66
|
+
onSynClear: EventName<SynClearEvent>;
|
|
67
|
+
onSynInput: EventName<SynInputEvent>;
|
|
68
|
+
onSynFocus: EventName<SynFocusEvent>;
|
|
69
|
+
onSynBlur: EventName<SynBlurEvent>;
|
|
70
|
+
onSynShow: EventName<SynShowEvent>;
|
|
71
|
+
onSynAfterShow: EventName<SynAfterShowEvent>;
|
|
72
|
+
onSynHide: EventName<SynHideEvent>;
|
|
73
|
+
onSynAfterHide: EventName<SynAfterHideEvent>;
|
|
74
|
+
onSynInvalid: EventName<SynInvalidEvent>;
|
|
75
|
+
onSynError: EventName<SynErrorEvent>;
|
|
76
|
+
}>;
|
|
77
|
+
export type { SynChangeEvent } from '@synergy-design-system/components';
|
|
78
|
+
export type { SynClearEvent } from '@synergy-design-system/components';
|
|
79
|
+
export type { SynInputEvent } from '@synergy-design-system/components';
|
|
80
|
+
export type { SynFocusEvent } from '@synergy-design-system/components';
|
|
81
|
+
export type { SynBlurEvent } from '@synergy-design-system/components';
|
|
82
|
+
export type { SynShowEvent } from '@synergy-design-system/components';
|
|
83
|
+
export type { SynAfterShowEvent } from '@synergy-design-system/components';
|
|
84
|
+
export type { SynHideEvent } from '@synergy-design-system/components';
|
|
85
|
+
export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
86
|
+
export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
87
|
+
export type { SynErrorEvent } from '@synergy-design-system/components';
|
package/dist/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { SynButton } from './components/button.js';
|
|
|
7
7
|
export { SynButtonGroup } from './components/button-group.js';
|
|
8
8
|
export { SynCard } from './components/card.js';
|
|
9
9
|
export { SynCheckbox } from './components/checkbox.js';
|
|
10
|
+
export { SynCombobox } from './components/combobox.js';
|
|
10
11
|
export { SynDetails } from './components/details.js';
|
|
11
12
|
export { SynDialog } from './components/dialog.js';
|
|
12
13
|
export { SynDivider } from './components/divider.js';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynTabGroup
|
|
3
|
+
} from "./chunks/chunk.FI5WWYE4.js";
|
|
1
4
|
import {
|
|
2
5
|
SynTabPanel
|
|
3
6
|
} from "./chunks/chunk.JIXLPWP2.js";
|
|
@@ -13,6 +16,9 @@ import {
|
|
|
13
16
|
import {
|
|
14
17
|
SynTooltip
|
|
15
18
|
} from "./chunks/chunk.M5I2WKYZ.js";
|
|
19
|
+
import {
|
|
20
|
+
SynRadioGroup
|
|
21
|
+
} from "./chunks/chunk.Z3UEBLMD.js";
|
|
16
22
|
import {
|
|
17
23
|
SynRadio
|
|
18
24
|
} from "./chunks/chunk.74ENCTHD.js";
|
|
@@ -35,8 +41,8 @@ import {
|
|
|
35
41
|
SynSwitch
|
|
36
42
|
} from "./chunks/chunk.BNV6JDW2.js";
|
|
37
43
|
import {
|
|
38
|
-
|
|
39
|
-
} from "./chunks/chunk.
|
|
44
|
+
SynNavItem
|
|
45
|
+
} from "./chunks/chunk.XM6I2EPS.js";
|
|
40
46
|
import {
|
|
41
47
|
SynOptgroup
|
|
42
48
|
} from "./chunks/chunk.FVJW4PGX.js";
|
|
@@ -59,8 +65,8 @@ import {
|
|
|
59
65
|
SynRadioButton
|
|
60
66
|
} from "./chunks/chunk.CWOZWKFG.js";
|
|
61
67
|
import {
|
|
62
|
-
|
|
63
|
-
} from "./chunks/chunk.
|
|
68
|
+
SynFile
|
|
69
|
+
} from "./chunks/chunk.O4P74GGV.js";
|
|
64
70
|
import {
|
|
65
71
|
SynHeader
|
|
66
72
|
} from "./chunks/chunk.LELEFISX.js";
|
|
@@ -82,15 +88,15 @@ import {
|
|
|
82
88
|
import {
|
|
83
89
|
SynMenu
|
|
84
90
|
} from "./chunks/chunk.NSUMR2HG.js";
|
|
85
|
-
import {
|
|
86
|
-
SynNavItem
|
|
87
|
-
} from "./chunks/chunk.XM6I2EPS.js";
|
|
88
91
|
import {
|
|
89
92
|
SynCard
|
|
90
93
|
} from "./chunks/chunk.6B45LKRT.js";
|
|
91
94
|
import {
|
|
92
95
|
SynCheckbox
|
|
93
96
|
} from "./chunks/chunk.KKIDENZT.js";
|
|
97
|
+
import {
|
|
98
|
+
SynCombobox
|
|
99
|
+
} from "./chunks/chunk.XU36FQGG.js";
|
|
94
100
|
import {
|
|
95
101
|
SynDetails
|
|
96
102
|
} from "./chunks/chunk.5DPOSVQL.js";
|
|
@@ -106,9 +112,6 @@ import {
|
|
|
106
112
|
import {
|
|
107
113
|
SynDropdown
|
|
108
114
|
} from "./chunks/chunk.FWGVBHQ2.js";
|
|
109
|
-
import {
|
|
110
|
-
SynFile
|
|
111
|
-
} from "./chunks/chunk.O4P74GGV.js";
|
|
112
115
|
import {
|
|
113
116
|
SynAccordion
|
|
114
117
|
} from "./chunks/chunk.2PS5VOXM.js";
|
|
@@ -140,6 +143,7 @@ export {
|
|
|
140
143
|
SynButtonGroup,
|
|
141
144
|
SynCard,
|
|
142
145
|
SynCheckbox,
|
|
146
|
+
SynCombobox,
|
|
143
147
|
SynDetails,
|
|
144
148
|
SynDialog,
|
|
145
149
|
SynDivider,
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@lit/react": "^1.0.5",
|
|
8
|
-
"@synergy-design-system/components": "^2.
|
|
8
|
+
"@synergy-design-system/components": "^2.8.1"
|
|
9
9
|
},
|
|
10
10
|
"description": "React wrappers for the Synergy Design System",
|
|
11
11
|
"exports": {
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"directory": "packages/react"
|
|
41
41
|
},
|
|
42
42
|
"type": "module",
|
|
43
|
-
"version": "2.
|
|
43
|
+
"version": "2.8.1",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/react": "^18.3.4",
|
|
46
46
|
"react": "^18.3.1"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@synergy-design-system/tokens": "^2.
|
|
49
|
+
"@synergy-design-system/tokens": "^2.10.0"
|
|
50
50
|
}
|
|
51
51
|
}
|