@synergy-design-system/react 1.14.0 → 1.16.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.6BJ6XSFN.js +23 -0
- package/dist/chunks/chunk.6BJ6XSFN.js.map +7 -0
- package/dist/chunks/chunk.7732PJEC.js +18 -0
- package/dist/chunks/chunk.7732PJEC.js.map +7 -0
- package/dist/chunks/{chunk.ODUBD6GC.js → chunk.BD6VWV24.js} +5 -2
- package/dist/chunks/chunk.BD6VWV24.js.map +7 -0
- package/dist/chunks/chunk.Y2KBRBDX.js +23 -0
- package/dist/chunks/chunk.Y2KBRBDX.js.map +7 -0
- package/dist/components/header.d.ts +14 -1
- package/dist/components/header.js +1 -1
- package/dist/components/nav-item.d.ts +58 -0
- package/dist/components/nav-item.js +7 -0
- package/dist/components/nav-item.js.map +7 -0
- package/dist/components/prio-nav.d.ts +36 -0
- package/dist/components/prio-nav.js +7 -0
- package/dist/components/prio-nav.js.map +7 -0
- package/dist/components/side-nav.d.ts +58 -0
- package/dist/components/side-nav.js +7 -0
- package/dist/components/side-nav.js.map +7 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -9
- package/package.json +2 -2
- package/dist/chunks/chunk.ODUBD6GC.js.map +0 -7
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// ../react/src/components/side-nav.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/side-nav/side-nav.component.js";
|
|
5
|
+
var tagName = "syn-side-nav";
|
|
6
|
+
Component.define("syn-side-nav");
|
|
7
|
+
var SynSideNav = createComponent({
|
|
8
|
+
displayName: "SynSideNav",
|
|
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
|
+
SynSideNav
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=chunk.6BJ6XSFN.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/side-nav.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/side-nav/side-nav.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-side-nav';\nComponent.define('syn-side-nav');\n\n/**\n * @summary The <syn-side-nav /> element contains secondary navigation and fits below the header.\n * It can be used to group multiple navigation items (<syn-nav-item />s) together.\n *\n * @example\n * <syn-side-nav open>\n * <syn-nav-item >Item 1</syn-nav-item>\n * <syn-nav-item divider>Item 2</syn-nav-item>\n * </syn-side-nav>\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-side-nav--docs\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-divider\n * @dependency syn-drawer\n *\n * @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.\n * @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.\n * Please avoid having to many nav-items as it can massively influence the user experience.\n *\n * @event syn-show - Emitted when the side-nav opens.\n * @event syn-after-show - Emitted after the side-nav opens and all animations are complete.\n * @event syn-hide - Emitted when the side-nav closes.\n * @event syn-after-hide - Emitted after the side-nav closes and all animations are complete.\n *\n * @csspart base - The components base wrapper\n * @csspart drawer - The drawer that is used under the hood for creating the side-nav\n * @csspart content-container - The components main content container\n * @csspart content - The components main content\n * @csspart footer-container - The components footer content container\n * @csspart footer-divider - The components footer divider\n * @csspart footer - The components footer content\n * @csspart overlay - The overlay that covers the screen behind the side-nav.\n *\n * @cssproperty --side-nav-open-width - The width of the side-nav if in open state\n * @cssproperty --side-nav-rail-width - The width of the side-nav if in rail mode without open\n *\n * @animation sideNav.showNonRail - The animation to use when showing the side-nav in non-rail mode.\n * @animation sideNav.showRail - The animation to use when showing the side-nav in rail mode.\n * @animation sideNav.hideNonRail - The animation to use when hiding the side-nav in non-rail mode.\n * @animation sideNav.hideRail - The animation to use when hiding the side-nav in rail mode.\n * @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.\n * @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.\n */\nexport const SynSideNav = createComponent({\n displayName: 'SynSideNav',\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;AA+CxB,IAAM,aAAa,gBAAgB;AAAA,EACxC,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/prio-nav.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/prio-nav/prio-nav.component.js";
|
|
5
|
+
var tagName = "syn-prio-nav";
|
|
6
|
+
Component.define("syn-prio-nav");
|
|
7
|
+
var SynPrioNav = createComponent({
|
|
8
|
+
displayName: "SynPrioNav",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {},
|
|
11
|
+
react: React,
|
|
12
|
+
tagName
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
SynPrioNav
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=chunk.7732PJEC.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/prio-nav.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/prio-nav/prio-nav.component.js';\n\nconst tagName = 'syn-prio-nav';\nComponent.define('syn-prio-nav');\n\n/**\n * @summary The `<syn-prio-nav />` element provides a generic navigation bar\n * that can be used to group multiple navigation items (usually horizontal `<syn-nav-item />`s)\n * together. It will automatically group all items not visible in the viewport into a custom\n * priority menu.\n *\n * @example\n * <syn-prio-nav>\n * <syn-nav-item current horizontal>Item 1</syn-nav-item>\n * <button role=\"menuitem\">Item 2 (custom)</button>\n * <syn-nav-item horizontal>Item 3</syn-nav-item>\n * </syn-prio-nav>\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-prio-nav--docs\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-dropdown\n * @dependency syn-icon\n * @dependency syn-menu\n * @dependency syn-nav-item\n *\n * @slot - The given navigation items. Must be horizontal `<syn-nav-item>`s\n * or have a role of \"menuitem\"\n *\n * @csspart base - The component's base wrapper.\n * @csspart priority-menu - The wrapper around the priority menu\n * @csspart priority-menu-nav-item - The navigation item for the priority menu\n * @csspart priority-menu-label - The label for the priority menu\n * @csspart priority-menu-icon - The icon for the priority menu\n * @csspart priority-menu-container - The container for the shifted navigation items,\n * if there is not enough space.\n *\n */\nexport const SynPrioNav = createComponent({\n displayName: 'SynPrioNav',\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,cAAc;AAoCxB,IAAM,aAAa,gBAAgB;AAAA,EACxC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAER;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -7,7 +7,10 @@ Component.define("syn-header");
|
|
|
7
7
|
var SynHeader = createComponent({
|
|
8
8
|
displayName: "SynHeader",
|
|
9
9
|
elementClass: Component,
|
|
10
|
-
events: {
|
|
10
|
+
events: {
|
|
11
|
+
onSynBurgerMenuShow: "syn-burger-menu-show",
|
|
12
|
+
onSynBurgerMenuHide: "syn-burger-menu-hide"
|
|
13
|
+
},
|
|
11
14
|
react: React,
|
|
12
15
|
tagName
|
|
13
16
|
});
|
|
@@ -15,4 +18,4 @@ var SynHeader = createComponent({
|
|
|
15
18
|
export {
|
|
16
19
|
SynHeader
|
|
17
20
|
};
|
|
18
|
-
//# sourceMappingURL=chunk.
|
|
21
|
+
//# sourceMappingURL=chunk.BD6VWV24.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/header.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/header/header.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type { SynBurgerMenuHideEvent, SynBurgerMenuShowEvent } from '@synergy-design-system/components';\n\nconst tagName = 'syn-header';\nComponent.define('syn-header');\n\n/**\n * @summary The <syn-header /> element provides a generic application header\n * that can be used to add applications name, toolbar and primary navigation.\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-header--docs\n * @status stable\n * @since 1.10.0\n *\n * @slot - The label for the header.\n * @slot logo - The logo that should be displayed. Will fall back to the SICK logo if not provided.\n * @slot meta-navigation - The meta-navigation is used to add various application toolbar icons.\n * Best used with `<syn-icon-button />` and `<syn-drop-down />`\n * @slot navigation - This slot can be used to add an optional horizontal navigation\n * @slot show-burger-menu - An icon to use in lieu of the default show burger menu icon\n * @slot hide-burger-menu - An icon to use in lieu of the default hide burger menu icon\n *\n * @event syn-burger-menu-show - Emitted when the burger menu button is toggled to visible\n * @event syn-burger-menu-hide - Emitted when the burger menu button is toggled to not visible\n *\n * @csspart base - The component's base wrapper.\n * @csspart content - The wrapper most content items reside\n * @csspart logo - The wrapper the application logo resides in\n * @csspart label - The element wrapping the application name\n * @csspart meta-navigation - The Item wrapping the optional application menu\n * @csspart navigation - The wrapper that is holding the optional top navigation section\n * @csspart burger-menu-toggle-button - The button that toggles the burger menu\n */\nexport const SynHeader = createComponent({\n displayName: 'SynHeader',\n elementClass: Component,\n events: {\n onSynBurgerMenuShow: 'syn-burger-menu-show' as EventName<SynBurgerMenuShowEvent>,\n onSynBurgerMenuHide: 'syn-burger-menu-hide' as EventName<SynBurgerMenuHideEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynBurgerMenuShowEvent } from '@synergy-design-system/components';\nexport type { SynBurgerMenuHideEvent } from '@synergy-design-system/components';\n"],
|
|
5
|
+
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAKtB,IAAM,UAAU;AAChB,UAAU,OAAO,YAAY;AA6BtB,IAAM,YAAY,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,qBAAqB;AAAA,IACrB,qBAAqB;AAAA,EACvB;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// ../react/src/components/nav-item.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/nav-item/nav-item.component.js";
|
|
5
|
+
var tagName = "syn-nav-item";
|
|
6
|
+
Component.define("syn-nav-item");
|
|
7
|
+
var SynNavItem = createComponent({
|
|
8
|
+
displayName: "SynNavItem",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {
|
|
11
|
+
onSynShow: "syn-show",
|
|
12
|
+
onSynHide: "syn-hide",
|
|
13
|
+
onSynBlur: "syn-blur",
|
|
14
|
+
onSynFocus: "syn-focus"
|
|
15
|
+
},
|
|
16
|
+
react: React,
|
|
17
|
+
tagName
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export {
|
|
21
|
+
SynNavItem
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=chunk.Y2KBRBDX.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/nav-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/nav-item/nav-item.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type {\n SynBlurEvent, SynFocusEvent, SynHideEvent, SynShowEvent,\n} from '@synergy-design-system/components';\n\nconst tagName = 'syn-nav-item';\nComponent.define('syn-nav-item');\n\n/**\n * @summary Flexible button / link component that can be used to quickly build navigations.\n * Takes one of 3 forms:\n * - button (default),\n * - link (overrides button if a 'href' is provided),\n * - or accordion (overrides all other if 'children' slot is defined).\n *\n * @status stable\n * @since 1.14.0\n *\n * @dependency syn-divider\n *\n * @event syn-show - Emitted when the navigation item:\n * - has children,\n * - and is clicked while HTML details are hidden.\n *\n * @event syn-hide - Emitted when the navigation item:\n * - has children,\n * - and is clicked while HTML details are shown.\n *\n * @event syn-blur - Emitted when the button loses focus.\n * @event syn-focus - Emitted when the button gains focus.\n *\n * @slot - The navigation item's label.\n * @slot prefix - A presentational prefix icon or similar element.\n * @slot suffix - A presentational suffix icon or similar element.\n * @slot children - Slot used to provide nested child navigation elements.\n * If provided, details and summary elements will be used.\n * A chevron will be shown on the right side regardless of the chevron property.\n *\n * @csspart base - The component's base wrapper including children.\n * @csspart children - The wrapper that holds the children\n * @csspart content-wrapper - The component's content wrapper.\n * @csspart content - The component's content excluding children.\n * @csspart current-indicator - The indicator used when current is set to true\n * @csspart chevron - The container that wraps the chevron.\n * @csspart details - The details element rendered when there are children available\n * @csspart divider - The components optional top divider.\n * @csspart prefix - The container that wraps the prefix.\n * @csspart suffix - The container that wraps the suffix.\n *\n * @cssproperty --indentation - Numeric value, indicating the level the item is placed at.\n * @cssproperty --indentation-stepping - The amount of pixels each level will indent.\n * @cssproperty --display-children - Display property of the children. Defaults to \"contents\"\n */\nexport const SynNavItem = createComponent({\n displayName: 'SynNavItem',\n elementClass: Component,\n events: {\n onSynShow: 'syn-show' as EventName<SynShowEvent>,\n onSynHide: 'syn-hide' as EventName<SynHideEvent>,\n onSynBlur: 'syn-blur' as EventName<SynBlurEvent>,\n onSynFocus: 'syn-focus' as EventName<SynFocusEvent>,\n },\n react: React,\n tagName,\n});\n\nexport type { SynShowEvent } from '@synergy-design-system/components';\nexport type { SynHideEvent } from '@synergy-design-system/components';\nexport type { SynBlurEvent } from '@synergy-design-system/components';\nexport type { SynFocusEvent } from '@synergy-design-system/components';\n"],
|
|
5
|
+
"mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAOtB,IAAM,UAAU;AAChB,UAAU,OAAO,cAAc;AA+CxB,IAAM,aAAa,gBAAgB;AAAA,EACxC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,WAAW;AAAA,IACX,WAAW;AAAA,IACX,YAAY;AAAA,EACd;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import Component from '@synergy-design-system/components/components/header/header.component.js';
|
|
2
|
+
import { type EventName } from '@lit/react';
|
|
3
|
+
import type { SynBurgerMenuHideEvent, SynBurgerMenuShowEvent } from '@synergy-design-system/components';
|
|
2
4
|
/**
|
|
3
5
|
* @summary The <syn-header /> element provides a generic application header
|
|
4
6
|
* that can be used to add applications name, toolbar and primary navigation.
|
|
@@ -12,6 +14,11 @@ import Component from '@synergy-design-system/components/components/header/heade
|
|
|
12
14
|
* @slot meta-navigation - The meta-navigation is used to add various application toolbar icons.
|
|
13
15
|
* Best used with `<syn-icon-button />` and `<syn-drop-down />`
|
|
14
16
|
* @slot navigation - This slot can be used to add an optional horizontal navigation
|
|
17
|
+
* @slot show-burger-menu - An icon to use in lieu of the default show burger menu icon
|
|
18
|
+
* @slot hide-burger-menu - An icon to use in lieu of the default hide burger menu icon
|
|
19
|
+
*
|
|
20
|
+
* @event syn-burger-menu-show - Emitted when the burger menu button is toggled to visible
|
|
21
|
+
* @event syn-burger-menu-hide - Emitted when the burger menu button is toggled to not visible
|
|
15
22
|
*
|
|
16
23
|
* @csspart base - The component's base wrapper.
|
|
17
24
|
* @csspart content - The wrapper most content items reside
|
|
@@ -19,5 +26,11 @@ import Component from '@synergy-design-system/components/components/header/heade
|
|
|
19
26
|
* @csspart label - The element wrapping the application name
|
|
20
27
|
* @csspart meta-navigation - The Item wrapping the optional application menu
|
|
21
28
|
* @csspart navigation - The wrapper that is holding the optional top navigation section
|
|
29
|
+
* @csspart burger-menu-toggle-button - The button that toggles the burger menu
|
|
22
30
|
*/
|
|
23
|
-
export declare const SynHeader: import("@lit/react").ReactWebComponent<Component, {
|
|
31
|
+
export declare const SynHeader: import("@lit/react").ReactWebComponent<Component, {
|
|
32
|
+
onSynBurgerMenuShow: EventName<SynBurgerMenuShowEvent>;
|
|
33
|
+
onSynBurgerMenuHide: EventName<SynBurgerMenuHideEvent>;
|
|
34
|
+
}>;
|
|
35
|
+
export type { SynBurgerMenuShowEvent } from '@synergy-design-system/components';
|
|
36
|
+
export type { SynBurgerMenuHideEvent } from '@synergy-design-system/components';
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/nav-item/nav-item.component.js';
|
|
2
|
+
import { type EventName } from '@lit/react';
|
|
3
|
+
import type { SynBlurEvent, SynFocusEvent, SynHideEvent, SynShowEvent } from '@synergy-design-system/components';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Flexible button / link component that can be used to quickly build navigations.
|
|
6
|
+
* Takes one of 3 forms:
|
|
7
|
+
* - button (default),
|
|
8
|
+
* - link (overrides button if a 'href' is provided),
|
|
9
|
+
* - or accordion (overrides all other if 'children' slot is defined).
|
|
10
|
+
*
|
|
11
|
+
* @status stable
|
|
12
|
+
* @since 1.14.0
|
|
13
|
+
*
|
|
14
|
+
* @dependency syn-divider
|
|
15
|
+
*
|
|
16
|
+
* @event syn-show - Emitted when the navigation item:
|
|
17
|
+
* - has children,
|
|
18
|
+
* - and is clicked while HTML details are hidden.
|
|
19
|
+
*
|
|
20
|
+
* @event syn-hide - Emitted when the navigation item:
|
|
21
|
+
* - has children,
|
|
22
|
+
* - and is clicked while HTML details are shown.
|
|
23
|
+
*
|
|
24
|
+
* @event syn-blur - Emitted when the button loses focus.
|
|
25
|
+
* @event syn-focus - Emitted when the button gains focus.
|
|
26
|
+
*
|
|
27
|
+
* @slot - The navigation item's label.
|
|
28
|
+
* @slot prefix - A presentational prefix icon or similar element.
|
|
29
|
+
* @slot suffix - A presentational suffix icon or similar element.
|
|
30
|
+
* @slot children - Slot used to provide nested child navigation elements.
|
|
31
|
+
* If provided, details and summary elements will be used.
|
|
32
|
+
* A chevron will be shown on the right side regardless of the chevron property.
|
|
33
|
+
*
|
|
34
|
+
* @csspart base - The component's base wrapper including children.
|
|
35
|
+
* @csspart children - The wrapper that holds the children
|
|
36
|
+
* @csspart content-wrapper - The component's content wrapper.
|
|
37
|
+
* @csspart content - The component's content excluding children.
|
|
38
|
+
* @csspart current-indicator - The indicator used when current is set to true
|
|
39
|
+
* @csspart chevron - The container that wraps the chevron.
|
|
40
|
+
* @csspart details - The details element rendered when there are children available
|
|
41
|
+
* @csspart divider - The components optional top divider.
|
|
42
|
+
* @csspart prefix - The container that wraps the prefix.
|
|
43
|
+
* @csspart suffix - The container that wraps the suffix.
|
|
44
|
+
*
|
|
45
|
+
* @cssproperty --indentation - Numeric value, indicating the level the item is placed at.
|
|
46
|
+
* @cssproperty --indentation-stepping - The amount of pixels each level will indent.
|
|
47
|
+
* @cssproperty --display-children - Display property of the children. Defaults to "contents"
|
|
48
|
+
*/
|
|
49
|
+
export declare const SynNavItem: import("@lit/react").ReactWebComponent<Component, {
|
|
50
|
+
onSynShow: EventName<SynShowEvent>;
|
|
51
|
+
onSynHide: EventName<SynHideEvent>;
|
|
52
|
+
onSynBlur: EventName<SynBlurEvent>;
|
|
53
|
+
onSynFocus: EventName<SynFocusEvent>;
|
|
54
|
+
}>;
|
|
55
|
+
export type { SynShowEvent } from '@synergy-design-system/components';
|
|
56
|
+
export type { SynHideEvent } from '@synergy-design-system/components';
|
|
57
|
+
export type { SynBlurEvent } from '@synergy-design-system/components';
|
|
58
|
+
export type { SynFocusEvent } from '@synergy-design-system/components';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/prio-nav/prio-nav.component.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary The `<syn-prio-nav />` element provides a generic navigation bar
|
|
4
|
+
* that can be used to group multiple navigation items (usually horizontal `<syn-nav-item />`s)
|
|
5
|
+
* together. It will automatically group all items not visible in the viewport into a custom
|
|
6
|
+
* priority menu.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <syn-prio-nav>
|
|
10
|
+
* <syn-nav-item current horizontal>Item 1</syn-nav-item>
|
|
11
|
+
* <button role="menuitem">Item 2 (custom)</button>
|
|
12
|
+
* <syn-nav-item horizontal>Item 3</syn-nav-item>
|
|
13
|
+
* </syn-prio-nav>
|
|
14
|
+
*
|
|
15
|
+
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-prio-nav--docs
|
|
16
|
+
* @status stable
|
|
17
|
+
* @since 1.14.0
|
|
18
|
+
*
|
|
19
|
+
* @dependency syn-dropdown
|
|
20
|
+
* @dependency syn-icon
|
|
21
|
+
* @dependency syn-menu
|
|
22
|
+
* @dependency syn-nav-item
|
|
23
|
+
*
|
|
24
|
+
* @slot - The given navigation items. Must be horizontal `<syn-nav-item>`s
|
|
25
|
+
* or have a role of "menuitem"
|
|
26
|
+
*
|
|
27
|
+
* @csspart base - The component's base wrapper.
|
|
28
|
+
* @csspart priority-menu - The wrapper around the priority menu
|
|
29
|
+
* @csspart priority-menu-nav-item - The navigation item for the priority menu
|
|
30
|
+
* @csspart priority-menu-label - The label for the priority menu
|
|
31
|
+
* @csspart priority-menu-icon - The icon for the priority menu
|
|
32
|
+
* @csspart priority-menu-container - The container for the shifted navigation items,
|
|
33
|
+
* if there is not enough space.
|
|
34
|
+
*
|
|
35
|
+
*/
|
|
36
|
+
export declare const SynPrioNav: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/side-nav/side-nav.component.js';
|
|
2
|
+
import { type EventName } from '@lit/react';
|
|
3
|
+
import type { SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent } from '@synergy-design-system/components';
|
|
4
|
+
/**
|
|
5
|
+
* @summary The <syn-side-nav /> element contains secondary navigation and fits below the header.
|
|
6
|
+
* It can be used to group multiple navigation items (<syn-nav-item />s) together.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* <syn-side-nav open>
|
|
10
|
+
* <syn-nav-item >Item 1</syn-nav-item>
|
|
11
|
+
* <syn-nav-item divider>Item 2</syn-nav-item>
|
|
12
|
+
* </syn-side-nav>
|
|
13
|
+
*
|
|
14
|
+
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-side-nav--docs
|
|
15
|
+
* @status stable
|
|
16
|
+
* @since 1.14.0
|
|
17
|
+
*
|
|
18
|
+
* @dependency syn-divider
|
|
19
|
+
* @dependency syn-drawer
|
|
20
|
+
*
|
|
21
|
+
* @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.
|
|
22
|
+
* @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.
|
|
23
|
+
* Please avoid having to many nav-items as it can massively influence the user experience.
|
|
24
|
+
*
|
|
25
|
+
* @event syn-show - Emitted when the side-nav opens.
|
|
26
|
+
* @event syn-after-show - Emitted after the side-nav opens and all animations are complete.
|
|
27
|
+
* @event syn-hide - Emitted when the side-nav closes.
|
|
28
|
+
* @event syn-after-hide - Emitted after the side-nav closes and all animations are complete.
|
|
29
|
+
*
|
|
30
|
+
* @csspart base - The components base wrapper
|
|
31
|
+
* @csspart drawer - The drawer that is used under the hood for creating the side-nav
|
|
32
|
+
* @csspart content-container - The components main content container
|
|
33
|
+
* @csspart content - The components main content
|
|
34
|
+
* @csspart footer-container - The components footer content container
|
|
35
|
+
* @csspart footer-divider - The components footer divider
|
|
36
|
+
* @csspart footer - The components footer content
|
|
37
|
+
* @csspart overlay - The overlay that covers the screen behind the side-nav.
|
|
38
|
+
*
|
|
39
|
+
* @cssproperty --side-nav-open-width - The width of the side-nav if in open state
|
|
40
|
+
* @cssproperty --side-nav-rail-width - The width of the side-nav if in rail mode without open
|
|
41
|
+
*
|
|
42
|
+
* @animation sideNav.showNonRail - The animation to use when showing the side-nav in non-rail mode.
|
|
43
|
+
* @animation sideNav.showRail - The animation to use when showing the side-nav in rail mode.
|
|
44
|
+
* @animation sideNav.hideNonRail - The animation to use when hiding the side-nav in non-rail mode.
|
|
45
|
+
* @animation sideNav.hideRail - The animation to use when hiding the side-nav in rail mode.
|
|
46
|
+
* @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.
|
|
47
|
+
* @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.
|
|
48
|
+
*/
|
|
49
|
+
export declare const SynSideNav: import("@lit/react").ReactWebComponent<Component, {
|
|
50
|
+
onSynShow: EventName<SynShowEvent>;
|
|
51
|
+
onSynAfterShow: EventName<SynAfterShowEvent>;
|
|
52
|
+
onSynHide: EventName<SynHideEvent>;
|
|
53
|
+
onSynAfterHide: EventName<SynAfterHideEvent>;
|
|
54
|
+
}>;
|
|
55
|
+
export type { SynShowEvent } from '@synergy-design-system/components';
|
|
56
|
+
export type { SynAfterShowEvent } from '@synergy-design-system/components';
|
|
57
|
+
export type { SynHideEvent } from '@synergy-design-system/components';
|
|
58
|
+
export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
package/dist/index.d.ts
CHANGED
|
@@ -12,13 +12,16 @@ export { SynInput } from './components/input.js';
|
|
|
12
12
|
export { SynMenu } from './components/menu.js';
|
|
13
13
|
export { SynMenuItem } from './components/menu-item.js';
|
|
14
14
|
export { SynMenuLabel } from './components/menu-label.js';
|
|
15
|
+
export { SynNavItem } from './components/nav-item.js';
|
|
15
16
|
export { SynOptgroup } from './components/optgroup.js';
|
|
16
17
|
export { SynOption } from './components/option.js';
|
|
17
18
|
export { SynPopup } from './components/popup.js';
|
|
19
|
+
export { SynPrioNav } from './components/prio-nav.js';
|
|
18
20
|
export { SynRadio } from './components/radio.js';
|
|
19
21
|
export { SynRadioButton } from './components/radio-button.js';
|
|
20
22
|
export { SynRadioGroup } from './components/radio-group.js';
|
|
21
23
|
export { SynSelect } from './components/select.js';
|
|
24
|
+
export { SynSideNav } from './components/side-nav.js';
|
|
22
25
|
export { SynSwitch } from './components/switch.js';
|
|
23
26
|
export { SynTag } from './components/tag.js';
|
|
24
27
|
export { SynTextarea } from './components/textarea.js';
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,27 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynSideNav
|
|
3
|
+
} from "./chunks/chunk.6BJ6XSFN.js";
|
|
4
|
+
import {
|
|
5
|
+
SynSwitch
|
|
6
|
+
} from "./chunks/chunk.7IZW5FRR.js";
|
|
7
|
+
import {
|
|
8
|
+
SynTag
|
|
9
|
+
} from "./chunks/chunk.7T7PO2AE.js";
|
|
1
10
|
import {
|
|
2
11
|
SynTextarea
|
|
3
12
|
} from "./chunks/chunk.4YY6TGIA.js";
|
|
13
|
+
import {
|
|
14
|
+
SynOptgroup
|
|
15
|
+
} from "./chunks/chunk.DLAIDGSD.js";
|
|
4
16
|
import {
|
|
5
17
|
SynOption
|
|
6
18
|
} from "./chunks/chunk.CJKK63W2.js";
|
|
7
19
|
import {
|
|
8
20
|
SynPopup
|
|
9
21
|
} from "./chunks/chunk.UJGZNEKT.js";
|
|
22
|
+
import {
|
|
23
|
+
SynPrioNav
|
|
24
|
+
} from "./chunks/chunk.7732PJEC.js";
|
|
10
25
|
import {
|
|
11
26
|
SynRadioButton
|
|
12
27
|
} from "./chunks/chunk.QBD4EIK5.js";
|
|
@@ -19,15 +34,9 @@ import {
|
|
|
19
34
|
import {
|
|
20
35
|
SynSelect
|
|
21
36
|
} from "./chunks/chunk.FB24BPQZ.js";
|
|
22
|
-
import {
|
|
23
|
-
SynSwitch
|
|
24
|
-
} from "./chunks/chunk.7IZW5FRR.js";
|
|
25
|
-
import {
|
|
26
|
-
SynTag
|
|
27
|
-
} from "./chunks/chunk.7T7PO2AE.js";
|
|
28
37
|
import {
|
|
29
38
|
SynHeader
|
|
30
|
-
} from "./chunks/chunk.
|
|
39
|
+
} from "./chunks/chunk.BD6VWV24.js";
|
|
31
40
|
import {
|
|
32
41
|
SynIconButton
|
|
33
42
|
} from "./chunks/chunk.W4YO4ERO.js";
|
|
@@ -47,8 +56,8 @@ import {
|
|
|
47
56
|
SynMenu
|
|
48
57
|
} from "./chunks/chunk.NSUMR2HG.js";
|
|
49
58
|
import {
|
|
50
|
-
|
|
51
|
-
} from "./chunks/chunk.
|
|
59
|
+
SynNavItem
|
|
60
|
+
} from "./chunks/chunk.Y2KBRBDX.js";
|
|
52
61
|
import {
|
|
53
62
|
SynBadge
|
|
54
63
|
} from "./chunks/chunk.XRVA7P2R.js";
|
|
@@ -85,13 +94,16 @@ export {
|
|
|
85
94
|
SynMenu,
|
|
86
95
|
SynMenuItem,
|
|
87
96
|
SynMenuLabel,
|
|
97
|
+
SynNavItem,
|
|
88
98
|
SynOptgroup,
|
|
89
99
|
SynOption,
|
|
90
100
|
SynPopup,
|
|
101
|
+
SynPrioNav,
|
|
91
102
|
SynRadio,
|
|
92
103
|
SynRadioButton,
|
|
93
104
|
SynRadioGroup,
|
|
94
105
|
SynSelect,
|
|
106
|
+
SynSideNav,
|
|
95
107
|
SynSwitch,
|
|
96
108
|
SynTag,
|
|
97
109
|
SynTextarea
|
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.16.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.16.0",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/react": "^18.2.55",
|
|
46
46
|
"react": "^18.2.0"
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/components/header.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/header/header.component.js';\n\nconst tagName = 'syn-header';\nComponent.define('syn-header');\n\n/**\n * @summary The <syn-header /> element provides a generic application header\n * that can be used to add applications name, toolbar and primary navigation.\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-header--docs\n * @status stable\n * @since 1.10.0\n *\n * @slot - The label for the header.\n * @slot logo - The logo that should be displayed. Will fall back to the SICK logo if not provided.\n * @slot meta-navigation - The meta-navigation is used to add various application toolbar icons.\n * Best used with `<syn-icon-button />` and `<syn-drop-down />`\n * @slot navigation - This slot can be used to add an optional horizontal navigation\n *\n * @csspart base - The component's base wrapper.\n * @csspart content - The wrapper most content items reside\n * @csspart logo - The wrapper the application logo resides in\n * @csspart label - The element wrapping the application name\n * @csspart meta-navigation - The Item wrapping the optional application menu\n * @csspart navigation - The wrapper that is holding the optional top navigation section\n */\nexport const SynHeader = createComponent({\n displayName: 'SynHeader',\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,YAAY;AAuBtB,IAAM,YAAY,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAER;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|