@synergy-design-system/react 1.19.0 → 1.20.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.
@@ -20,4 +20,4 @@ var SynSideNav = createComponent({
20
20
  export {
21
21
  SynSideNav
22
22
  };
23
- //# sourceMappingURL=chunk.6BJ6XSFN.js.map
23
+ //# sourceMappingURL=chunk.A3DZYM6Z.js.map
@@ -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 {\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;",
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 *\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;AA8CxB,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
  }
@@ -0,0 +1,23 @@
1
+ // ../react/src/components/alert.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/alert/alert.component.js";
5
+ var tagName = "syn-alert";
6
+ Component.define("syn-alert");
7
+ var SynAlert = createComponent({
8
+ displayName: "SynAlert",
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
+ SynAlert
22
+ };
23
+ //# sourceMappingURL=chunk.NCB462OR.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/alert.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/alert/alert.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-alert';\nComponent.define('syn-alert');\n\n/**\n * @summary Alerts are used to display important messages inline or as toast notifications.\n * @documentation https://synergy.style/components/alert\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The alert's main content.\n * @slot icon - An icon to show in the alert. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the alert opens.\n * @event syn-after-show - Emitted after the alert opens and all animations are complete.\n * @event syn-hide - Emitted when the alert closes.\n * @event syn-after-hide - Emitted after the alert closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart icon - The container that wraps the optional icon.\n * @csspart message - The container that wraps the alert's main content.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n *\n * @animation alert.show - The animation to use when showing the alert.\n * @animation alert.hide - The animation to use when hiding the alert.\n */\nexport const SynAlert = createComponent({\n displayName: 'SynAlert',\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,WAAW;AA2BrB,IAAM,WAAW,gBAAgB;AAAA,EACtC,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,38 @@
1
+ import Component from '@synergy-design-system/components/components/alert/alert.component.js';
2
+ import { type EventName } from '@lit/react';
3
+ import type { SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent } from '@synergy-design-system/components';
4
+ /**
5
+ * @summary Alerts are used to display important messages inline or as toast notifications.
6
+ * @documentation https://synergy.style/components/alert
7
+ * @status stable
8
+ * @since 2.0
9
+ *
10
+ * @dependency syn-icon-button
11
+ *
12
+ * @slot - The alert's main content.
13
+ * @slot icon - An icon to show in the alert. Works best with `<syn-icon>`.
14
+ *
15
+ * @event syn-show - Emitted when the alert opens.
16
+ * @event syn-after-show - Emitted after the alert opens and all animations are complete.
17
+ * @event syn-hide - Emitted when the alert closes.
18
+ * @event syn-after-hide - Emitted after the alert closes and all animations are complete.
19
+ *
20
+ * @csspart base - The component's base wrapper.
21
+ * @csspart icon - The container that wraps the optional icon.
22
+ * @csspart message - The container that wraps the alert's main content.
23
+ * @csspart close-button - The close button, an `<syn-icon-button>`.
24
+ * @csspart close-button__base - The close button's exported `base` part.
25
+ *
26
+ * @animation alert.show - The animation to use when showing the alert.
27
+ * @animation alert.hide - The animation to use when hiding the alert.
28
+ */
29
+ export declare const SynAlert: import("@lit/react").ReactWebComponent<Component, {
30
+ onSynShow: EventName<SynShowEvent>;
31
+ onSynAfterShow: EventName<SynAfterShowEvent>;
32
+ onSynHide: EventName<SynHideEvent>;
33
+ onSynAfterHide: EventName<SynAfterHideEvent>;
34
+ }>;
35
+ export type { SynShowEvent } from '@synergy-design-system/components';
36
+ export type { SynAfterShowEvent } from '@synergy-design-system/components';
37
+ export type { SynHideEvent } from '@synergy-design-system/components';
38
+ export type { SynAfterHideEvent } from '@synergy-design-system/components';
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynAlert
3
+ } from "../chunks/chunk.NCB462OR.js";
4
+ export {
5
+ SynAlert
6
+ };
7
+ //# sourceMappingURL=alert.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -37,7 +37,6 @@ import type { SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent }
37
37
  * @csspart overlay - The overlay that covers the screen behind the side-nav.
38
38
  *
39
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
40
  *
42
41
  * @animation sideNav.showNonRail - The animation to use when showing the side-nav in non-rail mode.
43
42
  * @animation sideNav.showRail - The animation to use when showing the side-nav in rail mode.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  SynSideNav
3
- } from "../chunks/chunk.6BJ6XSFN.js";
3
+ } from "../chunks/chunk.A3DZYM6Z.js";
4
4
  export {
5
5
  SynSideNav
6
6
  };
package/dist/index.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { SynAlert } from './components/alert.js';
1
2
  export { SynBadge } from './components/badge.js';
2
3
  export { SynButton } from './components/button.js';
3
4
  export { SynButtonGroup } from './components/button-group.js';
package/dist/index.js CHANGED
@@ -1,3 +1,6 @@
1
+ import {
2
+ SynRadioGroup
3
+ } from "./chunks/chunk.PCXGVEBP.js";
1
4
  import {
2
5
  SynRadio
3
6
  } from "./chunks/chunk.AFCMSVBY.js";
@@ -6,7 +9,7 @@ import {
6
9
  } from "./chunks/chunk.FB24BPQZ.js";
7
10
  import {
8
11
  SynSideNav
9
- } from "./chunks/chunk.6BJ6XSFN.js";
12
+ } from "./chunks/chunk.A3DZYM6Z.js";
10
13
  import {
11
14
  SynSwitch
12
15
  } from "./chunks/chunk.7IZW5FRR.js";
@@ -16,6 +19,9 @@ import {
16
19
  import {
17
20
  SynTextarea
18
21
  } from "./chunks/chunk.4YY6TGIA.js";
22
+ import {
23
+ SynNavItem
24
+ } from "./chunks/chunk.Y2KBRBDX.js";
19
25
  import {
20
26
  SynOptgroup
21
27
  } from "./chunks/chunk.DLAIDGSD.js";
@@ -38,8 +44,8 @@ import {
38
44
  SynRadioButton
39
45
  } from "./chunks/chunk.QBD4EIK5.js";
40
46
  import {
41
- SynRadioGroup
42
- } from "./chunks/chunk.PCXGVEBP.js";
47
+ SynDropdown
48
+ } from "./chunks/chunk.E3427YBK.js";
43
49
  import {
44
50
  SynHeader
45
51
  } from "./chunks/chunk.BD6VWV24.js";
@@ -62,8 +68,8 @@ import {
62
68
  SynMenu
63
69
  } from "./chunks/chunk.NSUMR2HG.js";
64
70
  import {
65
- SynNavItem
66
- } from "./chunks/chunk.Y2KBRBDX.js";
71
+ SynAlert
72
+ } from "./chunks/chunk.NCB462OR.js";
67
73
  import {
68
74
  SynBadge
69
75
  } from "./chunks/chunk.XRVA7P2R.js";
@@ -82,10 +88,8 @@ import {
82
88
  import {
83
89
  SynDrawer
84
90
  } from "./chunks/chunk.BQ62A32K.js";
85
- import {
86
- SynDropdown
87
- } from "./chunks/chunk.E3427YBK.js";
88
91
  export {
92
+ SynAlert,
89
93
  SynBadge,
90
94
  SynButton,
91
95
  SynButtonGroup,
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "dependencies": {
7
7
  "@lit/react": "^1.0.4",
8
- "@synergy-design-system/components": "^1.19.0"
8
+ "@synergy-design-system/components": "^1.20.1"
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.19.0",
43
+ "version": "1.20.1",
44
44
  "devDependencies": {
45
45
  "@types/react": "^18.2.79",
46
46
  "react": "^18.2.0"