@synergy-design-system/react 1.21.0 → 1.23.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,18 @@
1
+ // ../react/src/components/spinner.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/spinner/spinner.component.js";
5
+ var tagName = "syn-spinner";
6
+ Component.define("syn-spinner");
7
+ var SynSpinner = createComponent({
8
+ displayName: "SynSpinner",
9
+ elementClass: Component,
10
+ events: {},
11
+ react: React,
12
+ tagName
13
+ });
14
+
15
+ export {
16
+ SynSpinner
17
+ };
18
+ //# sourceMappingURL=chunk.CAHU6MAK.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/spinner.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/spinner/spinner.component.js';\n\nconst tagName = 'syn-spinner';\nComponent.define('syn-spinner');\n\n/**\n * @summary Spinners are used to show the progress of an indeterminate operation.\n * @documentation https://synergy.style/components/spinner\n * @status stable\n * @since 2.0\n *\n * @csspart base - The component's base wrapper.\n *\n * @cssproperty --track-width - The width of the track.\n * @cssproperty --indicator-color - The color of the spinner's indicator.\n * @cssproperty --speed - The time it takes for the spinner to complete one animation cycle.\n */\nexport const SynSpinner = createComponent({\n displayName: 'SynSpinner',\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,aAAa;AAcvB,IAAM,aAAa,gBAAgB;AAAA,EACxC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAER;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,25 @@
1
+ // ../react/src/components/dialog.ts
2
+ import * as React from "react";
3
+ import { createComponent } from "@lit/react";
4
+ import Component from "@synergy-design-system/components/components/dialog/dialog.component.js";
5
+ var tagName = "syn-dialog";
6
+ Component.define("syn-dialog");
7
+ var SynDialog = createComponent({
8
+ displayName: "SynDialog",
9
+ elementClass: Component,
10
+ events: {
11
+ onSynShow: "syn-show",
12
+ onSynAfterShow: "syn-after-show",
13
+ onSynHide: "syn-hide",
14
+ onSynAfterHide: "syn-after-hide",
15
+ onSynInitialFocus: "syn-initial-focus",
16
+ onSynRequestClose: "syn-request-close"
17
+ },
18
+ react: React,
19
+ tagName
20
+ });
21
+
22
+ export {
23
+ SynDialog
24
+ };
25
+ //# sourceMappingURL=chunk.IRQRZGIS.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../../src/components/dialog.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/dialog/dialog.component.js';\n\nimport { type EventName } from '@lit/react';\nimport type {\n SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynInitialFocusEvent, SynRequestCloseEvent, SynShowEvent,\n} from '@synergy-design-system/components';\n\nconst tagName = 'syn-dialog';\nComponent.define('syn-dialog');\n\n/**\n * @summary Dialogs, sometimes called \"modals\", appear above the page and require the user's immediate attention.\n * @documentation https://synergy.style/components/dialog\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon-button\n *\n * @slot - The dialog's main content.\n * @slot label - The dialog's label. Alternatively, you can use the `label` attribute.\n * @slot header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n * @slot footer - The dialog's footer, usually one or more buttons representing various options.\n *\n * @event syn-show - Emitted when the dialog opens.\n * @event syn-after-show - Emitted after the dialog opens and all animations are complete.\n * @event syn-hide - Emitted when the dialog closes.\n * @event syn-after-hide - Emitted after the dialog closes and all animations are complete.\n * @event syn-initial-focus - Emitted when the dialog opens and is ready to receive focus. Calling\n * `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n * @event {{ source: 'close-button' | 'keyboard' | 'overlay' }} syn-request-close - Emitted when the user attempts to\n * close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling\n * `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in\n * destructive behavior such as data loss.\n *\n * @csspart base - The component's base wrapper.\n * @csspart overlay - The overlay that covers the screen behind the dialog.\n * @csspart panel - The dialog's panel (where the dialog and its content are rendered).\n * @csspart header - The dialog's header. This element wraps the title and header actions.\n * @csspart header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.\n * @csspart title - The dialog's title.\n * @csspart close-button - The close button, an `<syn-icon-button>`.\n * @csspart close-button__base - The close button's exported `base` part.\n * @csspart body - The dialog's body.\n * @csspart footer - The dialog's footer.\n *\n * @cssproperty --width - The preferred width of the dialog. Note that the dialog will shrink to accommodate smaller screens.\n * @cssproperty --header-spacing - The amount of padding to use for the header.\n * @cssproperty --body-spacing - The amount of padding to use for the body.\n * @cssproperty --footer-spacing - The amount of padding to use for the footer.\n *\n * @animation dialog.show - The animation to use when showing the dialog.\n * @animation dialog.hide - The animation to use when hiding the dialog.\n * @animation dialog.denyClose - The animation to use when a request to close the dialog is denied.\n * @animation dialog.overlay.show - The animation to use when showing the dialog's overlay.\n * @animation dialog.overlay.hide - The animation to use when hiding the dialog's overlay.\n *\n * @property modal - Exposes the internal modal utility that controls focus trapping. To temporarily disable focus\n * trapping and allow third-party modals spawned from an active Synergy modal, call `modal.activateExternal()` when\n * the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Synergy's focus trapping.\n */\nexport const SynDialog = createComponent({\n displayName: 'SynDialog',\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 onSynInitialFocus: 'syn-initial-focus' as EventName<SynInitialFocusEvent>,\n onSynRequestClose: 'syn-request-close' as EventName<SynRequestCloseEvent>,\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';\nexport type { SynInitialFocusEvent } from '@synergy-design-system/components';\nexport type { SynRequestCloseEvent } from '@synergy-design-system/components';\n"],
5
+ "mappings": ";AAKA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,OAAO,eAAe;AAOtB,IAAM,UAAU;AAChB,UAAU,OAAO,YAAY;AAoDtB,IAAM,YAAY,gBAAgB;AAAA,EACvC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ;AAAA,IACN,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,WAAW;AAAA,IACX,gBAAgB;AAAA,IAChB,mBAAmB;AAAA,IACnB,mBAAmB;AAAA,EACrB;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
6
+ "names": []
7
+ }
@@ -0,0 +1,67 @@
1
+ import Component from '@synergy-design-system/components/components/dialog/dialog.component.js';
2
+ import { type EventName } from '@lit/react';
3
+ import type { SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynInitialFocusEvent, SynRequestCloseEvent, SynShowEvent } from '@synergy-design-system/components';
4
+ /**
5
+ * @summary Dialogs, sometimes called "modals", appear above the page and require the user's immediate attention.
6
+ * @documentation https://synergy.style/components/dialog
7
+ * @status stable
8
+ * @since 2.0
9
+ *
10
+ * @dependency syn-icon-button
11
+ *
12
+ * @slot - The dialog's main content.
13
+ * @slot label - The dialog's label. Alternatively, you can use the `label` attribute.
14
+ * @slot header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.
15
+ * @slot footer - The dialog's footer, usually one or more buttons representing various options.
16
+ *
17
+ * @event syn-show - Emitted when the dialog opens.
18
+ * @event syn-after-show - Emitted after the dialog opens and all animations are complete.
19
+ * @event syn-hide - Emitted when the dialog closes.
20
+ * @event syn-after-hide - Emitted after the dialog closes and all animations are complete.
21
+ * @event syn-initial-focus - Emitted when the dialog opens and is ready to receive focus. Calling
22
+ * `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.
23
+ * @event {{ source: 'close-button' | 'keyboard' | 'overlay' }} syn-request-close - Emitted when the user attempts to
24
+ * close the dialog by clicking the close button, clicking the overlay, or pressing escape. Calling
25
+ * `event.preventDefault()` will keep the dialog open. Avoid using this unless closing the dialog will result in
26
+ * destructive behavior such as data loss.
27
+ *
28
+ * @csspart base - The component's base wrapper.
29
+ * @csspart overlay - The overlay that covers the screen behind the dialog.
30
+ * @csspart panel - The dialog's panel (where the dialog and its content are rendered).
31
+ * @csspart header - The dialog's header. This element wraps the title and header actions.
32
+ * @csspart header-actions - Optional actions to add to the header. Works best with `<syn-icon-button>`.
33
+ * @csspart title - The dialog's title.
34
+ * @csspart close-button - The close button, an `<syn-icon-button>`.
35
+ * @csspart close-button__base - The close button's exported `base` part.
36
+ * @csspart body - The dialog's body.
37
+ * @csspart footer - The dialog's footer.
38
+ *
39
+ * @cssproperty --width - The preferred width of the dialog. Note that the dialog will shrink to accommodate smaller screens.
40
+ * @cssproperty --header-spacing - The amount of padding to use for the header.
41
+ * @cssproperty --body-spacing - The amount of padding to use for the body.
42
+ * @cssproperty --footer-spacing - The amount of padding to use for the footer.
43
+ *
44
+ * @animation dialog.show - The animation to use when showing the dialog.
45
+ * @animation dialog.hide - The animation to use when hiding the dialog.
46
+ * @animation dialog.denyClose - The animation to use when a request to close the dialog is denied.
47
+ * @animation dialog.overlay.show - The animation to use when showing the dialog's overlay.
48
+ * @animation dialog.overlay.hide - The animation to use when hiding the dialog's overlay.
49
+ *
50
+ * @property modal - Exposes the internal modal utility that controls focus trapping. To temporarily disable focus
51
+ * trapping and allow third-party modals spawned from an active Synergy modal, call `modal.activateExternal()` when
52
+ * the third-party modal opens. Upon closing, call `modal.deactivateExternal()` to restore Synergy's focus trapping.
53
+ */
54
+ export declare const SynDialog: import("@lit/react").ReactWebComponent<Component, {
55
+ onSynShow: EventName<SynShowEvent>;
56
+ onSynAfterShow: EventName<SynAfterShowEvent>;
57
+ onSynHide: EventName<SynHideEvent>;
58
+ onSynAfterHide: EventName<SynAfterHideEvent>;
59
+ onSynInitialFocus: EventName<SynInitialFocusEvent>;
60
+ onSynRequestClose: EventName<SynRequestCloseEvent>;
61
+ }>;
62
+ export type { SynShowEvent } from '@synergy-design-system/components';
63
+ export type { SynAfterShowEvent } from '@synergy-design-system/components';
64
+ export type { SynHideEvent } from '@synergy-design-system/components';
65
+ export type { SynAfterHideEvent } from '@synergy-design-system/components';
66
+ export type { SynInitialFocusEvent } from '@synergy-design-system/components';
67
+ export type { SynRequestCloseEvent } from '@synergy-design-system/components';
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynDialog
3
+ } from "../chunks/chunk.IRQRZGIS.js";
4
+ export {
5
+ SynDialog
6
+ };
7
+ //# sourceMappingURL=dialog.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,14 @@
1
+ import Component from '@synergy-design-system/components/components/spinner/spinner.component.js';
2
+ /**
3
+ * @summary Spinners are used to show the progress of an indeterminate operation.
4
+ * @documentation https://synergy.style/components/spinner
5
+ * @status stable
6
+ * @since 2.0
7
+ *
8
+ * @csspart base - The component's base wrapper.
9
+ *
10
+ * @cssproperty --track-width - The width of the track.
11
+ * @cssproperty --indicator-color - The color of the spinner's indicator.
12
+ * @cssproperty --speed - The time it takes for the spinner to complete one animation cycle.
13
+ */
14
+ export declare const SynSpinner: import("@lit/react").ReactWebComponent<Component, {}>;
@@ -0,0 +1,7 @@
1
+ import {
2
+ SynSpinner
3
+ } from "../chunks/chunk.CAHU6MAK.js";
4
+ export {
5
+ SynSpinner
6
+ };
7
+ //# sourceMappingURL=spinner.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
@@ -3,6 +3,7 @@ export { SynBadge } from './components/badge.js';
3
3
  export { SynButton } from './components/button.js';
4
4
  export { SynButtonGroup } from './components/button-group.js';
5
5
  export { SynCheckbox } from './components/checkbox.js';
6
+ export { SynDialog } from './components/dialog.js';
6
7
  export { SynDivider } from './components/divider.js';
7
8
  export { SynDrawer } from './components/drawer.js';
8
9
  export { SynDropdown } from './components/dropdown.js';
@@ -25,6 +26,7 @@ export { SynRadioButton } from './components/radio-button.js';
25
26
  export { SynRadioGroup } from './components/radio-group.js';
26
27
  export { SynSelect } from './components/select.js';
27
28
  export { SynSideNav } from './components/side-nav.js';
29
+ export { SynSpinner } from './components/spinner.js';
28
30
  export { SynSwitch } from './components/switch.js';
29
31
  export { SynTag } from './components/tag.js';
30
32
  export { SynTextarea } from './components/textarea.js';
package/dist/index.js CHANGED
@@ -1,3 +1,12 @@
1
+ import {
2
+ SynTextarea
3
+ } from "./chunks/chunk.4YY6TGIA.js";
4
+ import {
5
+ SynTooltip
6
+ } from "./chunks/chunk.BU4SKSAF.js";
7
+ import {
8
+ SynRadioButton
9
+ } from "./chunks/chunk.QBD4EIK5.js";
1
10
  import {
2
11
  SynRadioGroup
3
12
  } from "./chunks/chunk.PCXGVEBP.js";
@@ -10,6 +19,9 @@ import {
10
19
  import {
11
20
  SynSideNav
12
21
  } from "./chunks/chunk.A3DZYM6Z.js";
22
+ import {
23
+ SynSpinner
24
+ } from "./chunks/chunk.CAHU6MAK.js";
13
25
  import {
14
26
  SynSwitch
15
27
  } from "./chunks/chunk.7IZW5FRR.js";
@@ -17,11 +29,8 @@ import {
17
29
  SynTag
18
30
  } from "./chunks/chunk.7T7PO2AE.js";
19
31
  import {
20
- SynTextarea
21
- } from "./chunks/chunk.4YY6TGIA.js";
22
- import {
23
- SynTooltip
24
- } from "./chunks/chunk.BU4SKSAF.js";
32
+ SynMenu
33
+ } from "./chunks/chunk.NSUMR2HG.js";
25
34
  import {
26
35
  SynNavItem
27
36
  } from "./chunks/chunk.Y2KBRBDX.js";
@@ -44,8 +53,8 @@ import {
44
53
  SynProgressRing
45
54
  } from "./chunks/chunk.FGMVRUPR.js";
46
55
  import {
47
- SynRadioButton
48
- } from "./chunks/chunk.QBD4EIK5.js";
56
+ SynDrawer
57
+ } from "./chunks/chunk.BQ62A32K.js";
49
58
  import {
50
59
  SynDropdown
51
60
  } from "./chunks/chunk.E3427YBK.js";
@@ -67,9 +76,6 @@ import {
67
76
  import {
68
77
  SynMenuLabel
69
78
  } from "./chunks/chunk.EOLGRN43.js";
70
- import {
71
- SynMenu
72
- } from "./chunks/chunk.NSUMR2HG.js";
73
79
  import {
74
80
  SynAlert
75
81
  } from "./chunks/chunk.NCB462OR.js";
@@ -85,18 +91,19 @@ import {
85
91
  import {
86
92
  SynCheckbox
87
93
  } from "./chunks/chunk.RU33PYCK.js";
94
+ import {
95
+ SynDialog
96
+ } from "./chunks/chunk.IRQRZGIS.js";
88
97
  import {
89
98
  SynDivider
90
99
  } from "./chunks/chunk.HKOGDFA5.js";
91
- import {
92
- SynDrawer
93
- } from "./chunks/chunk.BQ62A32K.js";
94
100
  export {
95
101
  SynAlert,
96
102
  SynBadge,
97
103
  SynButton,
98
104
  SynButtonGroup,
99
105
  SynCheckbox,
106
+ SynDialog,
100
107
  SynDivider,
101
108
  SynDrawer,
102
109
  SynDropdown,
@@ -119,6 +126,7 @@ export {
119
126
  SynRadioGroup,
120
127
  SynSelect,
121
128
  SynSideNav,
129
+ SynSpinner,
122
130
  SynSwitch,
123
131
  SynTag,
124
132
  SynTextarea,
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.21.0"
8
+ "@synergy-design-system/components": "^1.23.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.21.0",
43
+ "version": "1.23.0",
44
44
  "devDependencies": {
45
45
  "@types/react": "^18.2.79",
46
46
  "react": "^18.2.0"