@synergy-design-system/react 1.18.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,18 @@
1
+ // ../react/src/components/progress-bar.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/progress-bar/progress-bar.component.js";
5
+ var tagName = "syn-progress-bar";
6
+ Component.define("syn-progress-bar");
7
+ var SynProgressBar = createComponent({
8
+ displayName: "SynProgressBar",
9
+ elementClass: Component,
10
+ events: {},
11
+ react: React,
12
+ tagName
13
+ });
14
+
15
+ export {
16
+ SynProgressBar
17
+ };
18
+ //# sourceMappingURL=chunk.U44M2PKP.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/progress-bar.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/progress-bar/progress-bar.component.js';\n\nconst tagName = 'syn-progress-bar';\nComponent.define('syn-progress-bar');\n\n/**\n * @summary Progress bars are used to show the status of an ongoing operation.\n * @documentation https://synergy.style/components/progress-bar\n * @status stable\n * @since 2.0\n *\n * @slot - A label to show inside the progress indicator.\n *\n * @csspart base - The component's base wrapper.\n * @csspart indicator - The progress bar's indicator.\n * @csspart label - The progress bar's label.\n *\n * @cssproperty --height - The progress bar's height.\n * @cssproperty --track-color - The color of the track.\n * @cssproperty --indicator-color - The color of the indicator.\n * @cssproperty --label-color - The color of the label.\n * @cssproperty --speed - The speed of the progress bar when in indeterminate state.\n */\nexport const SynProgressBar = createComponent({\n displayName: 'SynProgressBar',\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,kBAAkB;AAoB5B,IAAM,iBAAiB,gBAAgB;AAAA,EAC5C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAER;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
+ }
@@ -0,0 +1,20 @@
1
+ import Component from '@synergy-design-system/components/components/progress-bar/progress-bar.component.js';
2
+ /**
3
+ * @summary Progress bars are used to show the status of an ongoing operation.
4
+ * @documentation https://synergy.style/components/progress-bar
5
+ * @status stable
6
+ * @since 2.0
7
+ *
8
+ * @slot - A label to show inside the progress indicator.
9
+ *
10
+ * @csspart base - The component's base wrapper.
11
+ * @csspart indicator - The progress bar's indicator.
12
+ * @csspart label - The progress bar's label.
13
+ *
14
+ * @cssproperty --height - The progress bar's height.
15
+ * @cssproperty --track-color - The color of the track.
16
+ * @cssproperty --indicator-color - The color of the indicator.
17
+ * @cssproperty --label-color - The color of the label.
18
+ * @cssproperty --speed - The speed of the progress bar when in indeterminate state.
19
+ */
20
+ export declare const SynProgressBar: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynProgressBar
3
+ } from "../chunks/chunk.U44M2PKP.js";
4
+ export {
5
+ SynProgressBar
6
+ };
7
+ //# sourceMappingURL=progress-bar.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';
@@ -17,6 +18,7 @@ export { SynOptgroup } from './components/optgroup.js';
17
18
  export { SynOption } from './components/option.js';
18
19
  export { SynPopup } from './components/popup.js';
19
20
  export { SynPrioNav } from './components/prio-nav.js';
21
+ export { SynProgressBar } from './components/progress-bar.js';
20
22
  export { SynProgressRing } from './components/progress-ring.js';
21
23
  export { SynRadio } from './components/radio.js';
22
24
  export { SynRadioButton } from './components/radio-button.js';
package/dist/index.js CHANGED
@@ -1,3 +1,9 @@
1
+ import {
2
+ SynRadioGroup
3
+ } from "./chunks/chunk.PCXGVEBP.js";
4
+ import {
5
+ SynRadio
6
+ } from "./chunks/chunk.AFCMSVBY.js";
1
7
  import {
2
8
  SynSelect
3
9
  } from "./chunks/chunk.FB24BPQZ.js";
@@ -13,6 +19,9 @@ import {
13
19
  import {
14
20
  SynTextarea
15
21
  } from "./chunks/chunk.4YY6TGIA.js";
22
+ import {
23
+ SynNavItem
24
+ } from "./chunks/chunk.Y2KBRBDX.js";
16
25
  import {
17
26
  SynOptgroup
18
27
  } from "./chunks/chunk.DLAIDGSD.js";
@@ -25,6 +34,9 @@ import {
25
34
  import {
26
35
  SynPrioNav
27
36
  } from "./chunks/chunk.7732PJEC.js";
37
+ import {
38
+ SynProgressBar
39
+ } from "./chunks/chunk.U44M2PKP.js";
28
40
  import {
29
41
  SynProgressRing
30
42
  } from "./chunks/chunk.FGMVRUPR.js";
@@ -32,11 +44,8 @@ import {
32
44
  SynRadioButton
33
45
  } from "./chunks/chunk.QBD4EIK5.js";
34
46
  import {
35
- SynRadioGroup
36
- } from "./chunks/chunk.PCXGVEBP.js";
37
- import {
38
- SynRadio
39
- } from "./chunks/chunk.AFCMSVBY.js";
47
+ SynDropdown
48
+ } from "./chunks/chunk.E3427YBK.js";
40
49
  import {
41
50
  SynHeader
42
51
  } from "./chunks/chunk.BD6VWV24.js";
@@ -59,8 +68,8 @@ import {
59
68
  SynMenu
60
69
  } from "./chunks/chunk.NSUMR2HG.js";
61
70
  import {
62
- SynNavItem
63
- } from "./chunks/chunk.Y2KBRBDX.js";
71
+ SynAlert
72
+ } from "./chunks/chunk.NCB462OR.js";
64
73
  import {
65
74
  SynBadge
66
75
  } from "./chunks/chunk.XRVA7P2R.js";
@@ -79,10 +88,8 @@ import {
79
88
  import {
80
89
  SynDrawer
81
90
  } from "./chunks/chunk.BQ62A32K.js";
82
- import {
83
- SynDropdown
84
- } from "./chunks/chunk.E3427YBK.js";
85
91
  export {
92
+ SynAlert,
86
93
  SynBadge,
87
94
  SynButton,
88
95
  SynButtonGroup,
@@ -102,6 +109,7 @@ export {
102
109
  SynOption,
103
110
  SynPopup,
104
111
  SynPrioNav,
112
+ SynProgressBar,
105
113
  SynProgressRing,
106
114
  SynRadio,
107
115
  SynRadioButton,
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.18.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.18.0",
43
+ "version": "1.20.0",
44
44
  "devDependencies": {
45
45
  "@types/react": "^18.2.79",
46
46
  "react": "^18.2.0"