@synergy-design-system/react 2.18.0 → 2.18.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunks/{chunk.CYZ6F7G6.js → chunk.2JXRC7UA.js} +1 -1
- package/dist/chunks/{chunk.CYZ6F7G6.js.map → chunk.2JXRC7UA.js.map} +2 -2
- package/dist/components/side-nav.d.ts +4 -0
- package/dist/components/side-nav.js +1 -1
- package/dist/index.js +1 -1
- package/dist/types/syn-jsx-elements.d.ts +51 -43
- package/package.json +2 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
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 { 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';\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 *\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;AAQtB,IAAM,UAAU;AAChB,UAAU,OAAO,cAAc;
|
|
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 { 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';\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 (where the footer slot content is rendered)\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 * @csspart panel - The side-nav's panel (where the whole content is rendered).\n * @csspart body - The side-nav's body (where the default slot content is rendered)\n * @csspart drawer__base - The drawer's base wrapper\n *\n * @cssproperty --side-nav-open-width - The width of the side-nav if in open state\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;AAQtB,IAAM,UAAU;AAChB,UAAU,OAAO,cAAc;AAkDxB,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
6
|
"names": []
|
|
7
7
|
}
|
|
@@ -35,9 +35,13 @@ import type { SynAfterHideEvent } from '@synergy-design-system/components';
|
|
|
35
35
|
* @csspart content-container - The components main content container
|
|
36
36
|
* @csspart content - The components main content
|
|
37
37
|
* @csspart footer-container - The components footer content container
|
|
38
|
+
(where the footer slot content is rendered)
|
|
38
39
|
* @csspart footer-divider - The components footer divider
|
|
39
40
|
* @csspart footer - The components footer content
|
|
40
41
|
* @csspart overlay - The overlay that covers the screen behind the side-nav.
|
|
42
|
+
* @csspart panel - The side-nav's panel (where the whole content is rendered).
|
|
43
|
+
* @csspart body - The side-nav's body (where the default slot content is rendered)
|
|
44
|
+
* @csspart drawer__base - The drawer's base wrapper
|
|
41
45
|
*
|
|
42
46
|
* @cssproperty --side-nav-open-width - The width of the side-nav if in open state
|
|
43
47
|
*
|
package/dist/index.js
CHANGED
|
@@ -1330,9 +1330,13 @@ export type SynCustomElement<SynElement extends HTMLElement, Events extends SynE
|
|
|
1330
1330
|
* @csspart content-container - The components main content container
|
|
1331
1331
|
* @csspart content - The components main content
|
|
1332
1332
|
* @csspart footer-container - The components footer content container
|
|
1333
|
+
(where the footer slot content is rendered)
|
|
1333
1334
|
* @csspart footer-divider - The components footer divider
|
|
1334
1335
|
* @csspart footer - The components footer content
|
|
1335
1336
|
* @csspart overlay - The overlay that covers the screen behind the side-nav.
|
|
1337
|
+
* @csspart panel - The side-nav's panel (where the whole content is rendered).
|
|
1338
|
+
* @csspart body - The side-nav's body (where the default slot content is rendered)
|
|
1339
|
+
* @csspart drawer__base - The drawer's base wrapper
|
|
1336
1340
|
*
|
|
1337
1341
|
* @cssproperty --side-nav-open-width - The width of the side-nav if in open state
|
|
1338
1342
|
*
|
|
@@ -2538,49 +2542,53 @@ declare module 'react' {
|
|
|
2538
2542
|
* @csspart expand-icon - The container that wraps the expand icon.
|
|
2539
2543
|
*/ 'syn-select': SynSelectJSXElement;
|
|
2540
2544
|
/**
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2545
|
+
* @summary The <syn-side-nav /> element contains secondary navigation and fits below the header.
|
|
2546
|
+
* It can be used to group multiple navigation items (<syn-nav-item />s) together.
|
|
2547
|
+
*
|
|
2548
|
+
* @example
|
|
2549
|
+
* <syn-side-nav open>
|
|
2550
|
+
* <syn-nav-item >Item 1</syn-nav-item>
|
|
2551
|
+
* <syn-nav-item divider>Item 2</syn-nav-item>
|
|
2552
|
+
* </syn-side-nav>
|
|
2553
|
+
*
|
|
2554
|
+
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-side-nav--docs
|
|
2555
|
+
* @status stable
|
|
2556
|
+
* @since 1.14.0
|
|
2557
|
+
*
|
|
2558
|
+
* @dependency syn-divider
|
|
2559
|
+
* @dependency syn-drawer
|
|
2560
|
+
*
|
|
2561
|
+
* @slot - The main content of the side-nav. Used for <syn-nav-item /> elements.
|
|
2562
|
+
* @slot footer - The footer content of the side-nav. Used for <syn-nav-item /> elements.
|
|
2563
|
+
* Please avoid having to many nav-items as it can massively influence the user experience.
|
|
2564
|
+
*
|
|
2565
|
+
* @event syn-show - Emitted when the side-nav opens.
|
|
2566
|
+
* @event syn-after-show - Emitted after the side-nav opens and all animations are complete.
|
|
2567
|
+
* @event syn-hide - Emitted when the side-nav closes.
|
|
2568
|
+
* @event syn-after-hide - Emitted after the side-nav closes and all animations are complete.
|
|
2569
|
+
*
|
|
2570
|
+
* @csspart base - The components base wrapper
|
|
2571
|
+
* @csspart drawer - The drawer that is used under the hood for creating the side-nav
|
|
2572
|
+
* @csspart content-container - The components main content container
|
|
2573
|
+
* @csspart content - The components main content
|
|
2574
|
+
* @csspart footer-container - The components footer content container
|
|
2575
|
+
(where the footer slot content is rendered)
|
|
2576
|
+
* @csspart footer-divider - The components footer divider
|
|
2577
|
+
* @csspart footer - The components footer content
|
|
2578
|
+
* @csspart overlay - The overlay that covers the screen behind the side-nav.
|
|
2579
|
+
* @csspart panel - The side-nav's panel (where the whole content is rendered).
|
|
2580
|
+
* @csspart body - The side-nav's body (where the default slot content is rendered)
|
|
2581
|
+
* @csspart drawer__base - The drawer's base wrapper
|
|
2582
|
+
*
|
|
2583
|
+
* @cssproperty --side-nav-open-width - The width of the side-nav if in open state
|
|
2584
|
+
*
|
|
2585
|
+
* @animation sideNav.showNonRail - The animation to use when showing the side-nav in non-rail mode.
|
|
2586
|
+
* @animation sideNav.showRail - The animation to use when showing the side-nav in rail mode.
|
|
2587
|
+
* @animation sideNav.hideNonRail - The animation to use when hiding the side-nav in non-rail mode.
|
|
2588
|
+
* @animation sideNav.hideRail - The animation to use when hiding the side-nav in rail mode.
|
|
2589
|
+
* @animation sideNav.overlay.show - The animation to use when showing the side-nav's overlay.
|
|
2590
|
+
* @animation sideNav.overlay.hide - The animation to use when hiding the side-nav's overlay.
|
|
2591
|
+
*/ 'syn-side-nav': SynSideNavJSXElement;
|
|
2584
2592
|
/**
|
|
2585
2593
|
* @summary Spinners are used to show the progress of an indeterminate operation.
|
|
2586
2594
|
* @documentation https://synergy.style/components/spinner
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@lit/react": "^1.0.7",
|
|
8
|
-
"@synergy-design-system/components": "^2.18.
|
|
8
|
+
"@synergy-design-system/components": "^2.18.2"
|
|
9
9
|
},
|
|
10
10
|
"description": "React wrappers for the Synergy Design System",
|
|
11
11
|
"exports": {
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"directory": "packages/react"
|
|
44
44
|
},
|
|
45
45
|
"type": "module",
|
|
46
|
-
"version": "2.18.
|
|
46
|
+
"version": "2.18.2",
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/react": "^19.0.7",
|
|
49
49
|
"react": "^19.0.0"
|