@synergy-design-system/react 1.19.0 → 1.20.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.
@@ -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
+ }
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";
@@ -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.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.19.0",
43
+ "version": "1.20.0",
44
44
  "devDependencies": {
45
45
  "@types/react": "^18.2.79",
46
46
  "react": "^18.2.0"