@synergy-design-system/react 1.11.0 → 1.13.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/dist/chunks/chunk.E3427YBK.js +23 -0
- package/dist/chunks/chunk.E3427YBK.js.map +7 -0
- package/dist/chunks/chunk.EOLGRN43.js +18 -0
- package/dist/chunks/chunk.EOLGRN43.js.map +7 -0
- package/dist/chunks/chunk.KLI3DNUO.js +18 -0
- package/dist/chunks/chunk.KLI3DNUO.js.map +7 -0
- package/dist/chunks/chunk.NSUMR2HG.js +20 -0
- package/dist/chunks/chunk.NSUMR2HG.js.map +7 -0
- package/dist/chunks/chunk.UJGZNEKT.js +20 -0
- package/dist/chunks/chunk.UJGZNEKT.js.map +7 -0
- package/dist/components/dropdown.d.ts +36 -0
- package/dist/components/dropdown.js +7 -0
- package/dist/components/dropdown.js.map +7 -0
- package/dist/components/menu-item.d.ts +28 -0
- package/dist/components/menu-item.js +7 -0
- package/dist/components/menu-item.js.map +7 -0
- package/dist/components/menu-label.d.ts +18 -0
- package/dist/components/menu-label.js +7 -0
- package/dist/components/menu-label.js.map +7 -0
- package/dist/components/menu.d.ts +17 -0
- package/dist/components/menu.js +7 -0
- package/dist/components/menu.js.map +7 -0
- package/dist/components/popup.d.ts +36 -0
- package/dist/components/popup.js +7 -0
- package/dist/components/popup.js.map +7 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +35 -15
- package/package.json +2 -2
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// ../react/src/components/dropdown.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/dropdown/dropdown.component.js";
|
|
5
|
+
var tagName = "syn-dropdown";
|
|
6
|
+
Component.define("syn-dropdown");
|
|
7
|
+
var SynDropdown = createComponent({
|
|
8
|
+
displayName: "SynDropdown",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {
|
|
11
|
+
onSynShow: "syn-show",
|
|
12
|
+
onSynAfterShow: "syn-after-show",
|
|
13
|
+
onSynHide: "syn-hide",
|
|
14
|
+
onSynAfterHide: "syn-after-hide"
|
|
15
|
+
},
|
|
16
|
+
react: React,
|
|
17
|
+
tagName
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
SynDropdown
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=chunk.E3427YBK.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/dropdown.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/dropdown/dropdown.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type {\n SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent,\n} from '@synergy-design-system/components';\n\nconst tagName = 'syn-dropdown';\nComponent.define('syn-dropdown');\n\n/**\n * @summary Dropdowns expose additional content that \"drops down\" in a panel.\n * @documentation https://synergy.style/components/dropdown\n * @status stable\n * @since 2.0\n *\n * @dependency syn-popup\n *\n * @slot - The dropdown's main content.\n * @slot trigger - The dropdown's trigger, usually a `<syn-button>` element.\n *\n * @event syn-show - Emitted when the dropdown opens.\n * @event syn-after-show - Emitted after the dropdown opens and all animations are complete.\n * @event syn-hide - Emitted when the dropdown closes.\n * @event syn-after-hide - Emitted after the dropdown closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart trigger - The container that wraps the trigger.\n * @csspart panel - The panel that gets shown when the dropdown is open.\n *\n * @animation dropdown.show - The animation to use when showing the dropdown.\n * @animation dropdown.hide - The animation to use when hiding the dropdown.\n */\nexport const SynDropdown = createComponent({\n displayName: 'SynDropdown',\n elementClass: Component,\n events: {\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 },\n react: React,\n tagName,\n});\n\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';\n"],
|
|
5
|
+
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAOtB,IAAM,UAAU;AAChB,UAAU,OAAO,cAAc;AAyBxB,IAAM,cAAc,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,EAClB;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// ../react/src/components/menu-label.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/menu-label/menu-label.component.js";
|
|
5
|
+
var tagName = "syn-menu-label";
|
|
6
|
+
Component.define("syn-menu-label");
|
|
7
|
+
var SynMenuLabel = createComponent({
|
|
8
|
+
displayName: "SynMenuLabel",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {},
|
|
11
|
+
react: React,
|
|
12
|
+
tagName
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
SynMenuLabel
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=chunk.EOLGRN43.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/menu-label.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/menu-label/menu-label.component.js';\n\nconst tagName = 'syn-menu-label';\nComponent.define('syn-menu-label');\n\n/**\n * @summary Menu labels are used to describe a group of menu items.\n * @documentation https://synergy.style/components/menu-label\n * @status stable\n * @since 2.0\n *\n * @dependency syn-divider\n *\n * @slot - The menu label's content.\n *\n * @csspart base - The component's base wrapper.\n * @csspart divider - The divider that is displayed above the content\n * @csspart label - The label that is displayed below the divider\n *\n * @cssproperty --display-divider - Display property of the divider. Defaults to \"block\"\n */\nexport const SynMenuLabel = createComponent({\n displayName: 'SynMenuLabel',\n elementClass: Component,\n events: {\n\n },\n react: React,\n tagName,\n});\n"],
|
|
5
|
+
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAEtB,IAAM,UAAU;AAChB,UAAU,OAAO,gBAAgB;AAkB1B,IAAM,eAAe,gBAAgB;AAAA,EAC1C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAER;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// ../react/src/components/menu-item.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/menu-item/menu-item.component.js";
|
|
5
|
+
var tagName = "syn-menu-item";
|
|
6
|
+
Component.define("syn-menu-item");
|
|
7
|
+
var SynMenuItem = createComponent({
|
|
8
|
+
displayName: "SynMenuItem",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {},
|
|
11
|
+
react: React,
|
|
12
|
+
tagName
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
SynMenuItem
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=chunk.KLI3DNUO.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/menu-item.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/menu-item/menu-item.component.js';\n\nconst tagName = 'syn-menu-item';\nComponent.define('syn-menu-item');\n\n/**\n * @summary Menu items provide options for the user to pick from in a menu.\n * @documentation https://synergy.style/components/menu-item\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n * @dependency syn-popup\n * @dependency syn-spinner\n *\n * @slot - The menu item's label.\n * @slot prefix - Used to prepend an icon or similar element to the menu item.\n * @slot suffix - Used to append an icon or similar element to the menu item.\n * @slot submenu - Used to denote a nested menu.\n *\n * @csspart base - The component's base wrapper.\n * @csspart checked-icon - The checked icon, which is only visible when the menu item is checked.\n * @csspart prefix - The prefix container.\n * @csspart label - The menu item label.\n * @csspart suffix - The suffix container.\n * @csspart spinner - The spinner that shows when the menu item is in the loading state.\n * @csspart spinner__base - The spinner's base part.\n * @csspart submenu-icon - The submenu icon, visible only when the menu item has a submenu (not yet implemented).\n *\n * @cssproperty [--submenu-offset=-2px] - The distance submenus shift to overlap the parent menu.\n */\nexport const SynMenuItem = createComponent({\n displayName: 'SynMenuItem',\n elementClass: Component,\n events: {\n\n },\n react: React,\n tagName,\n});\n"],
|
|
5
|
+
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAEtB,IAAM,UAAU;AAChB,UAAU,OAAO,eAAe;AA4BzB,IAAM,cAAc,gBAAgB;AAAA,EACzC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAER;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// ../react/src/components/menu.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/menu/menu.component.js";
|
|
5
|
+
var tagName = "syn-menu";
|
|
6
|
+
Component.define("syn-menu");
|
|
7
|
+
var SynMenu = createComponent({
|
|
8
|
+
displayName: "SynMenu",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {
|
|
11
|
+
onSynSelect: "syn-select"
|
|
12
|
+
},
|
|
13
|
+
react: React,
|
|
14
|
+
tagName
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
SynMenu
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=chunk.NSUMR2HG.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/menu.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/menu/menu.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynSelectEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-menu';\nComponent.define('syn-menu');\n\n/**\n * @summary Menus provide a list of options for the user to choose from.\n * @documentation https://synergy.style/components/menu\n * @status stable\n * @since 2.0\n *\n * @slot - The menu's content, including menu items, menu labels, and dividers.\n *\n * @event {{ item: SynMenuItem }} syn-select - Emitted when a menu item is selected.\n */\nexport const SynMenu = createComponent({\n displayName: 'SynMenu',\n elementClass: Component,\n events: {\n onSynSelect: 'syn-select' as EventName<SynSelectEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynSelectEvent } from '@synergy-design-system/components';\n"],
|
|
5
|
+
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAKtB,IAAM,UAAU;AAChB,UAAU,OAAO,UAAU;AAYpB,IAAM,UAAU,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,aAAa;AAAA,EACf;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// ../react/src/components/popup.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/popup/popup.component.js";
|
|
5
|
+
var tagName = "syn-popup";
|
|
6
|
+
Component.define("syn-popup");
|
|
7
|
+
var SynPopup = createComponent({
|
|
8
|
+
displayName: "SynPopup",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {
|
|
11
|
+
onSynReposition: "syn-reposition"
|
|
12
|
+
},
|
|
13
|
+
react: React,
|
|
14
|
+
tagName
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
export {
|
|
18
|
+
SynPopup
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=chunk.UJGZNEKT.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/popup.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/popup/popup.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynRepositionEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-popup';\nComponent.define('syn-popup');\n\n/**\n * @summary Popup is a utility that lets you declaratively anchor \"popup\" containers to another element.\n * @documentation https://synergy.style/components/popup\n * @status stable\n * @since 2.0\n *\n * @event syn-reposition - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive\n * operations in your listener or consider debouncing it.\n *\n * @slot - The popup's content.\n * @slot anchor - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the\n * `anchor` attribute or property instead.\n *\n * @csspart arrow - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are\n * assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and\n * maybe a border or box shadow.\n * @csspart popup - The popup's container. Useful for setting a background color, box shadow, etc.\n * @csspart hover-bridge - The hover bridge element. Only available when the `hover-bridge` option is enabled.\n *\n * @cssproperty [--arrow-size=6px] - The size of the arrow. Note that an arrow won't be shown unless the `arrow`\n * attribute is used.\n * @cssproperty [--arrow-color=var(--syn-color-neutral-0)] - The color of the arrow.\n * @cssproperty [--auto-size-available-width] - A read-only custom property that determines the amount of width the\n * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only\n * available when using `auto-size`.\n * @cssproperty [--auto-size-available-height] - A read-only custom property that determines the amount of height the\n * popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only\n * available when using `auto-size`.\n */\nexport const SynPopup = createComponent({\n displayName: 'SynPopup',\n elementClass: Component,\n events: {\n onSynReposition: 'syn-reposition' as EventName<SynRepositionEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynRepositionEvent } from '@synergy-design-system/components';\n"],
|
|
5
|
+
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAKtB,IAAM,UAAU;AAChB,UAAU,OAAO,WAAW;AA+BrB,IAAM,WAAW,gBAAgB;AAAA,EACtC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,iBAAiB;AAAA,EACnB;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/dropdown/dropdown.component.js';
|
|
2
|
+
import { type EventName } from '@lit/react';
|
|
3
|
+
import type { SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent } from '@synergy-design-system/components';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Dropdowns expose additional content that "drops down" in a panel.
|
|
6
|
+
* @documentation https://synergy.style/components/dropdown
|
|
7
|
+
* @status stable
|
|
8
|
+
* @since 2.0
|
|
9
|
+
*
|
|
10
|
+
* @dependency syn-popup
|
|
11
|
+
*
|
|
12
|
+
* @slot - The dropdown's main content.
|
|
13
|
+
* @slot trigger - The dropdown's trigger, usually a `<syn-button>` element.
|
|
14
|
+
*
|
|
15
|
+
* @event syn-show - Emitted when the dropdown opens.
|
|
16
|
+
* @event syn-after-show - Emitted after the dropdown opens and all animations are complete.
|
|
17
|
+
* @event syn-hide - Emitted when the dropdown closes.
|
|
18
|
+
* @event syn-after-hide - Emitted after the dropdown closes and all animations are complete.
|
|
19
|
+
*
|
|
20
|
+
* @csspart base - The component's base wrapper.
|
|
21
|
+
* @csspart trigger - The container that wraps the trigger.
|
|
22
|
+
* @csspart panel - The panel that gets shown when the dropdown is open.
|
|
23
|
+
*
|
|
24
|
+
* @animation dropdown.show - The animation to use when showing the dropdown.
|
|
25
|
+
* @animation dropdown.hide - The animation to use when hiding the dropdown.
|
|
26
|
+
*/
|
|
27
|
+
export declare const SynDropdown: import("@lit/react").ReactWebComponent<Component, {
|
|
28
|
+
onSynShow: EventName<SynShowEvent>;
|
|
29
|
+
onSynAfterShow: EventName<SynAfterShowEvent>;
|
|
30
|
+
onSynHide: EventName<SynHideEvent>;
|
|
31
|
+
onSynAfterHide: EventName<SynAfterHideEvent>;
|
|
32
|
+
}>;
|
|
33
|
+
export type { SynShowEvent } from '@synergy-design-system/components';
|
|
34
|
+
export type { SynAfterShowEvent } from '@synergy-design-system/components';
|
|
35
|
+
export type { SynHideEvent } from '@synergy-design-system/components';
|
|
36
|
+
export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/menu-item/menu-item.component.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Menu items provide options for the user to pick from in a menu.
|
|
4
|
+
* @documentation https://synergy.style/components/menu-item
|
|
5
|
+
* @status stable
|
|
6
|
+
* @since 2.0
|
|
7
|
+
*
|
|
8
|
+
* @dependency syn-icon
|
|
9
|
+
* @dependency syn-popup
|
|
10
|
+
* @dependency syn-spinner
|
|
11
|
+
*
|
|
12
|
+
* @slot - The menu item's label.
|
|
13
|
+
* @slot prefix - Used to prepend an icon or similar element to the menu item.
|
|
14
|
+
* @slot suffix - Used to append an icon or similar element to the menu item.
|
|
15
|
+
* @slot submenu - Used to denote a nested menu.
|
|
16
|
+
*
|
|
17
|
+
* @csspart base - The component's base wrapper.
|
|
18
|
+
* @csspart checked-icon - The checked icon, which is only visible when the menu item is checked.
|
|
19
|
+
* @csspart prefix - The prefix container.
|
|
20
|
+
* @csspart label - The menu item label.
|
|
21
|
+
* @csspart suffix - The suffix container.
|
|
22
|
+
* @csspart spinner - The spinner that shows when the menu item is in the loading state.
|
|
23
|
+
* @csspart spinner__base - The spinner's base part.
|
|
24
|
+
* @csspart submenu-icon - The submenu icon, visible only when the menu item has a submenu (not yet implemented).
|
|
25
|
+
*
|
|
26
|
+
* @cssproperty [--submenu-offset=-2px] - The distance submenus shift to overlap the parent menu.
|
|
27
|
+
*/
|
|
28
|
+
export declare const SynMenuItem: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/menu-label/menu-label.component.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Menu labels are used to describe a group of menu items.
|
|
4
|
+
* @documentation https://synergy.style/components/menu-label
|
|
5
|
+
* @status stable
|
|
6
|
+
* @since 2.0
|
|
7
|
+
*
|
|
8
|
+
* @dependency syn-divider
|
|
9
|
+
*
|
|
10
|
+
* @slot - The menu label's content.
|
|
11
|
+
*
|
|
12
|
+
* @csspart base - The component's base wrapper.
|
|
13
|
+
* @csspart divider - The divider that is displayed above the content
|
|
14
|
+
* @csspart label - The label that is displayed below the divider
|
|
15
|
+
*
|
|
16
|
+
* @cssproperty --display-divider - Display property of the divider. Defaults to "block"
|
|
17
|
+
*/
|
|
18
|
+
export declare const SynMenuLabel: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/menu/menu.component.js';
|
|
2
|
+
import { type EventName } from '@lit/react';
|
|
3
|
+
import type { SynSelectEvent } from '@synergy-design-system/components';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Menus provide a list of options for the user to choose from.
|
|
6
|
+
* @documentation https://synergy.style/components/menu
|
|
7
|
+
* @status stable
|
|
8
|
+
* @since 2.0
|
|
9
|
+
*
|
|
10
|
+
* @slot - The menu's content, including menu items, menu labels, and dividers.
|
|
11
|
+
*
|
|
12
|
+
* @event {{ item: SynMenuItem }} syn-select - Emitted when a menu item is selected.
|
|
13
|
+
*/
|
|
14
|
+
export declare const SynMenu: import("@lit/react").ReactWebComponent<Component, {
|
|
15
|
+
onSynSelect: EventName<SynSelectEvent>;
|
|
16
|
+
}>;
|
|
17
|
+
export type { SynSelectEvent } from '@synergy-design-system/components';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/popup/popup.component.js';
|
|
2
|
+
import { type EventName } from '@lit/react';
|
|
3
|
+
import type { SynRepositionEvent } from '@synergy-design-system/components';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Popup is a utility that lets you declaratively anchor "popup" containers to another element.
|
|
6
|
+
* @documentation https://synergy.style/components/popup
|
|
7
|
+
* @status stable
|
|
8
|
+
* @since 2.0
|
|
9
|
+
*
|
|
10
|
+
* @event syn-reposition - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive
|
|
11
|
+
* operations in your listener or consider debouncing it.
|
|
12
|
+
*
|
|
13
|
+
* @slot - The popup's content.
|
|
14
|
+
* @slot anchor - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the
|
|
15
|
+
* `anchor` attribute or property instead.
|
|
16
|
+
*
|
|
17
|
+
* @csspart arrow - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are
|
|
18
|
+
* assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and
|
|
19
|
+
* maybe a border or box shadow.
|
|
20
|
+
* @csspart popup - The popup's container. Useful for setting a background color, box shadow, etc.
|
|
21
|
+
* @csspart hover-bridge - The hover bridge element. Only available when the `hover-bridge` option is enabled.
|
|
22
|
+
*
|
|
23
|
+
* @cssproperty [--arrow-size=6px] - The size of the arrow. Note that an arrow won't be shown unless the `arrow`
|
|
24
|
+
* attribute is used.
|
|
25
|
+
* @cssproperty [--arrow-color=var(--syn-color-neutral-0)] - The color of the arrow.
|
|
26
|
+
* @cssproperty [--auto-size-available-width] - A read-only custom property that determines the amount of width the
|
|
27
|
+
* popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only
|
|
28
|
+
* available when using `auto-size`.
|
|
29
|
+
* @cssproperty [--auto-size-available-height] - A read-only custom property that determines the amount of height the
|
|
30
|
+
* popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only
|
|
31
|
+
* available when using `auto-size`.
|
|
32
|
+
*/
|
|
33
|
+
export declare const SynPopup: import("@lit/react").ReactWebComponent<Component, {
|
|
34
|
+
onSynReposition: EventName<SynRepositionEvent>;
|
|
35
|
+
}>;
|
|
36
|
+
export type { SynRepositionEvent } from '@synergy-design-system/components';
|
package/dist/index.d.ts
CHANGED
|
@@ -3,12 +3,17 @@ export { SynButtonGroup } from './components/button-group.js';
|
|
|
3
3
|
export { SynCheckbox } from './components/checkbox.js';
|
|
4
4
|
export { SynDivider } from './components/divider.js';
|
|
5
5
|
export { SynDrawer } from './components/drawer.js';
|
|
6
|
+
export { SynDropdown } from './components/dropdown.js';
|
|
6
7
|
export { SynHeader } from './components/header.js';
|
|
7
8
|
export { SynIcon } from './components/icon.js';
|
|
8
9
|
export { SynIconButton } from './components/icon-button.js';
|
|
9
10
|
export { SynInput } from './components/input.js';
|
|
11
|
+
export { SynMenu } from './components/menu.js';
|
|
12
|
+
export { SynMenuItem } from './components/menu-item.js';
|
|
13
|
+
export { SynMenuLabel } from './components/menu-label.js';
|
|
10
14
|
export { SynOptgroup } from './components/optgroup.js';
|
|
11
15
|
export { SynOption } from './components/option.js';
|
|
16
|
+
export { SynPopup } from './components/popup.js';
|
|
12
17
|
export { SynRadio } from './components/radio.js';
|
|
13
18
|
export { SynRadioButton } from './components/radio-button.js';
|
|
14
19
|
export { SynRadioGroup } from './components/radio-group.js';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynPopup
|
|
3
|
+
} from "./chunks/chunk.UJGZNEKT.js";
|
|
4
|
+
import {
|
|
5
|
+
SynRadioButton
|
|
6
|
+
} from "./chunks/chunk.QBD4EIK5.js";
|
|
7
|
+
import {
|
|
8
|
+
SynRadioGroup
|
|
9
|
+
} from "./chunks/chunk.PCXGVEBP.js";
|
|
10
|
+
import {
|
|
11
|
+
SynRadio
|
|
12
|
+
} from "./chunks/chunk.AFCMSVBY.js";
|
|
13
|
+
import {
|
|
14
|
+
SynSelect
|
|
15
|
+
} from "./chunks/chunk.FB24BPQZ.js";
|
|
1
16
|
import {
|
|
2
17
|
SynSwitch
|
|
3
18
|
} from "./chunks/chunk.7IZW5FRR.js";
|
|
@@ -7,30 +22,30 @@ import {
|
|
|
7
22
|
import {
|
|
8
23
|
SynTextarea
|
|
9
24
|
} from "./chunks/chunk.4YY6TGIA.js";
|
|
25
|
+
import {
|
|
26
|
+
SynIconButton
|
|
27
|
+
} from "./chunks/chunk.W4YO4ERO.js";
|
|
10
28
|
import {
|
|
11
29
|
SynIcon
|
|
12
30
|
} from "./chunks/chunk.6CO3KAZG.js";
|
|
13
31
|
import {
|
|
14
32
|
SynInput
|
|
15
33
|
} from "./chunks/chunk.N6QQSQTB.js";
|
|
34
|
+
import {
|
|
35
|
+
SynMenuItem
|
|
36
|
+
} from "./chunks/chunk.KLI3DNUO.js";
|
|
37
|
+
import {
|
|
38
|
+
SynMenuLabel
|
|
39
|
+
} from "./chunks/chunk.EOLGRN43.js";
|
|
40
|
+
import {
|
|
41
|
+
SynMenu
|
|
42
|
+
} from "./chunks/chunk.NSUMR2HG.js";
|
|
16
43
|
import {
|
|
17
44
|
SynOptgroup
|
|
18
45
|
} from "./chunks/chunk.DLAIDGSD.js";
|
|
19
46
|
import {
|
|
20
47
|
SynOption
|
|
21
48
|
} from "./chunks/chunk.CJKK63W2.js";
|
|
22
|
-
import {
|
|
23
|
-
SynRadioButton
|
|
24
|
-
} from "./chunks/chunk.QBD4EIK5.js";
|
|
25
|
-
import {
|
|
26
|
-
SynRadioGroup
|
|
27
|
-
} from "./chunks/chunk.PCXGVEBP.js";
|
|
28
|
-
import {
|
|
29
|
-
SynRadio
|
|
30
|
-
} from "./chunks/chunk.AFCMSVBY.js";
|
|
31
|
-
import {
|
|
32
|
-
SynSelect
|
|
33
|
-
} from "./chunks/chunk.FB24BPQZ.js";
|
|
34
49
|
import {
|
|
35
50
|
SynButtonGroup
|
|
36
51
|
} from "./chunks/chunk.6OTEQXZW.js";
|
|
@@ -46,24 +61,29 @@ import {
|
|
|
46
61
|
import {
|
|
47
62
|
SynDrawer
|
|
48
63
|
} from "./chunks/chunk.BQ62A32K.js";
|
|
64
|
+
import {
|
|
65
|
+
SynDropdown
|
|
66
|
+
} from "./chunks/chunk.E3427YBK.js";
|
|
49
67
|
import {
|
|
50
68
|
SynHeader
|
|
51
69
|
} from "./chunks/chunk.ODUBD6GC.js";
|
|
52
|
-
import {
|
|
53
|
-
SynIconButton
|
|
54
|
-
} from "./chunks/chunk.W4YO4ERO.js";
|
|
55
70
|
export {
|
|
56
71
|
SynButton,
|
|
57
72
|
SynButtonGroup,
|
|
58
73
|
SynCheckbox,
|
|
59
74
|
SynDivider,
|
|
60
75
|
SynDrawer,
|
|
76
|
+
SynDropdown,
|
|
61
77
|
SynHeader,
|
|
62
78
|
SynIcon,
|
|
63
79
|
SynIconButton,
|
|
64
80
|
SynInput,
|
|
81
|
+
SynMenu,
|
|
82
|
+
SynMenuItem,
|
|
83
|
+
SynMenuLabel,
|
|
65
84
|
SynOptgroup,
|
|
66
85
|
SynOption,
|
|
86
|
+
SynPopup,
|
|
67
87
|
SynRadio,
|
|
68
88
|
SynRadioButton,
|
|
69
89
|
SynRadioGroup,
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@lit/react": "^1.0.3",
|
|
8
|
-
"@synergy-design-system/components": "^1.
|
|
8
|
+
"@synergy-design-system/components": "^1.13.0"
|
|
9
9
|
},
|
|
10
10
|
"description": "React wrappers for the Synergy Design System",
|
|
11
11
|
"exports": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"directory": "packages/react"
|
|
41
41
|
},
|
|
42
42
|
"type": "module",
|
|
43
|
-
"version": "1.
|
|
43
|
+
"version": "1.13.0",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/react": "^18.2.55",
|
|
46
46
|
"react": "^18.2.0"
|