@synergy-design-system/react 2.2.1 → 2.3.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.
- package/dist/chunks/chunk.TNN2STQH.js +23 -0
- package/dist/chunks/chunk.TNN2STQH.js.map +7 -0
- package/dist/chunks/chunk.W6NG3JOO.js +18 -0
- package/dist/chunks/chunk.W6NG3JOO.js.map +7 -0
- package/dist/components/accordion.d.ts +13 -0
- package/dist/components/accordion.js +7 -0
- package/dist/components/accordion.js.map +7 -0
- package/dist/components/details.d.ts +40 -0
- package/dist/components/details.js +7 -0
- package/dist/components/details.js.map +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +29 -21
- package/package.json +3 -3
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
// ../react/src/components/details.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/details/details.component.js";
|
|
5
|
+
var tagName = "syn-details";
|
|
6
|
+
Component.define("syn-details");
|
|
7
|
+
var SynDetails = createComponent({
|
|
8
|
+
displayName: "SynDetails",
|
|
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
|
+
SynDetails
|
|
22
|
+
};
|
|
23
|
+
//# sourceMappingURL=chunk.TNN2STQH.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/details.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/details/details.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-details';\nComponent.define('syn-details');\n\n/**\n * @summary Details show a brief summary and expand to show additional content.\n * @documentation https://synergy.style/components/details\n * @status stable\n * @since 2.0\n *\n * @dependency syn-icon\n *\n * @slot - The details' main content.\n * @slot summary - The details' summary. Alternatively, you can use the `summary` attribute.\n * @slot expand-icon - Optional expand icon to use instead of the default. Works best with `<syn-icon>`.\n * @slot collapse-icon - Optional collapse icon to use instead of the default. Works best with `<syn-icon>`.\n *\n * @event syn-show - Emitted when the details opens.\n * @event syn-after-show - Emitted after the details opens and all animations are complete.\n * @event syn-hide - Emitted when the details closes.\n * @event syn-after-hide - Emitted after the details closes and all animations are complete.\n *\n * @csspart base - The component's base wrapper.\n * @csspart header - The header that wraps both the summary and the expand/collapse icon.\n * @csspart summary - The container that wraps the summary.\n * @csspart summary-icon - The container that wraps the expand/collapse icons.\n * @csspart content - The details content.\n *\n * @animation details.show - The animation to use when showing details. You can use `height: auto` with this animation.\n * @animation details.hide - The animation to use when hiding details. You can use `height: auto` with this animation.\n */\nexport const SynDetails = createComponent({\n displayName: 'SynDetails',\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,aAAa;AA6BvB,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
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// ../react/src/components/accordion.ts
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { createComponent } from "@lit/react";
|
|
4
|
+
import Component from "@synergy-design-system/components/components/accordion/accordion.component.js";
|
|
5
|
+
var tagName = "syn-accordion";
|
|
6
|
+
Component.define("syn-accordion");
|
|
7
|
+
var SynAccordion = createComponent({
|
|
8
|
+
displayName: "SynAccordion",
|
|
9
|
+
elementClass: Component,
|
|
10
|
+
events: {},
|
|
11
|
+
react: React,
|
|
12
|
+
tagName
|
|
13
|
+
});
|
|
14
|
+
|
|
15
|
+
export {
|
|
16
|
+
SynAccordion
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=chunk.W6NG3JOO.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../src/components/accordion.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/accordion/accordion.component.js';\n\nconst tagName = 'syn-accordion';\nComponent.define('syn-accordion');\n\n/**\n * @summary Accordions provide the ability to group a list of `<syn-details>`.\n *\n * @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-accordion--docs\n * @status stable\n * @since 1.23.0\n *\n * @slot - The accordion's main content. Must be `<syn-details />` elements.\n *\n * @csspart base - The component's base wrapper.\n */\nexport const SynAccordion = createComponent({\n displayName: 'SynAccordion',\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,eAAe;AAazB,IAAM,eAAe,gBAAgB;AAAA,EAC1C,aAAa;AAAA,EACb,cAAc;AAAA,EACd,QAAQ,CAER;AAAA,EACA,OAAO;AAAA,EACP;AACF,CAAC;",
|
|
6
|
+
"names": []
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/accordion/accordion.component.js';
|
|
2
|
+
/**
|
|
3
|
+
* @summary Accordions provide the ability to group a list of `<syn-details>`.
|
|
4
|
+
*
|
|
5
|
+
* @documentation https://synergy-design-system.github.io/?path=/docs/components-syn-accordion--docs
|
|
6
|
+
* @status stable
|
|
7
|
+
* @since 1.23.0
|
|
8
|
+
*
|
|
9
|
+
* @slot - The accordion's main content. Must be `<syn-details />` elements.
|
|
10
|
+
*
|
|
11
|
+
* @csspart base - The component's base wrapper.
|
|
12
|
+
*/
|
|
13
|
+
export declare const SynAccordion: import("@lit/react").ReactWebComponent<Component, {}>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import Component from '@synergy-design-system/components/components/details/details.component.js';
|
|
2
|
+
import { type EventName } from '@lit/react';
|
|
3
|
+
import type { SynAfterHideEvent, SynAfterShowEvent, SynHideEvent, SynShowEvent } from '@synergy-design-system/components';
|
|
4
|
+
/**
|
|
5
|
+
* @summary Details show a brief summary and expand to show additional content.
|
|
6
|
+
* @documentation https://synergy.style/components/details
|
|
7
|
+
* @status stable
|
|
8
|
+
* @since 2.0
|
|
9
|
+
*
|
|
10
|
+
* @dependency syn-icon
|
|
11
|
+
*
|
|
12
|
+
* @slot - The details' main content.
|
|
13
|
+
* @slot summary - The details' summary. Alternatively, you can use the `summary` attribute.
|
|
14
|
+
* @slot expand-icon - Optional expand icon to use instead of the default. Works best with `<syn-icon>`.
|
|
15
|
+
* @slot collapse-icon - Optional collapse icon to use instead of the default. Works best with `<syn-icon>`.
|
|
16
|
+
*
|
|
17
|
+
* @event syn-show - Emitted when the details opens.
|
|
18
|
+
* @event syn-after-show - Emitted after the details opens and all animations are complete.
|
|
19
|
+
* @event syn-hide - Emitted when the details closes.
|
|
20
|
+
* @event syn-after-hide - Emitted after the details closes and all animations are complete.
|
|
21
|
+
*
|
|
22
|
+
* @csspart base - The component's base wrapper.
|
|
23
|
+
* @csspart header - The header that wraps both the summary and the expand/collapse icon.
|
|
24
|
+
* @csspart summary - The container that wraps the summary.
|
|
25
|
+
* @csspart summary-icon - The container that wraps the expand/collapse icons.
|
|
26
|
+
* @csspart content - The details content.
|
|
27
|
+
*
|
|
28
|
+
* @animation details.show - The animation to use when showing details. You can use `height: auto` with this animation.
|
|
29
|
+
* @animation details.hide - The animation to use when hiding details. You can use `height: auto` with this animation.
|
|
30
|
+
*/
|
|
31
|
+
export declare const SynDetails: import("@lit/react").ReactWebComponent<Component, {
|
|
32
|
+
onSynShow: EventName<SynShowEvent>;
|
|
33
|
+
onSynAfterShow: EventName<SynAfterShowEvent>;
|
|
34
|
+
onSynHide: EventName<SynHideEvent>;
|
|
35
|
+
onSynAfterHide: EventName<SynAfterHideEvent>;
|
|
36
|
+
}>;
|
|
37
|
+
export type { SynShowEvent } from '@synergy-design-system/components';
|
|
38
|
+
export type { SynAfterShowEvent } from '@synergy-design-system/components';
|
|
39
|
+
export type { SynHideEvent } from '@synergy-design-system/components';
|
|
40
|
+
export type { SynAfterHideEvent } from '@synergy-design-system/components';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
export { SynAccordion } from './components/accordion.js';
|
|
1
2
|
export { SynAlert } from './components/alert.js';
|
|
2
3
|
export { SynBadge } from './components/badge.js';
|
|
3
4
|
export { SynBreadcrumb } from './components/breadcrumb.js';
|
|
@@ -6,6 +7,7 @@ export { SynButton } from './components/button.js';
|
|
|
6
7
|
export { SynButtonGroup } from './components/button-group.js';
|
|
7
8
|
export { SynCard } from './components/card.js';
|
|
8
9
|
export { SynCheckbox } from './components/checkbox.js';
|
|
10
|
+
export { SynDetails } from './components/details.js';
|
|
9
11
|
export { SynDialog } from './components/dialog.js';
|
|
10
12
|
export { SynDivider } from './components/divider.js';
|
|
11
13
|
export { SynDrawer } from './components/drawer.js';
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,15 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SynTextarea
|
|
3
|
+
} from "./chunks/chunk.4YY6TGIA.js";
|
|
4
|
+
import {
|
|
5
|
+
SynTooltip
|
|
6
|
+
} from "./chunks/chunk.BU4SKSAF.js";
|
|
7
|
+
import {
|
|
8
|
+
SynSelect
|
|
9
|
+
} from "./chunks/chunk.FB24BPQZ.js";
|
|
10
|
+
import {
|
|
11
|
+
SynSideNav
|
|
12
|
+
} from "./chunks/chunk.A3DZYM6Z.js";
|
|
1
13
|
import {
|
|
2
14
|
SynSpinner
|
|
3
15
|
} from "./chunks/chunk.CAHU6MAK.js";
|
|
@@ -17,11 +29,11 @@ import {
|
|
|
17
29
|
SynTag
|
|
18
30
|
} from "./chunks/chunk.7T7PO2AE.js";
|
|
19
31
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./chunks/chunk.
|
|
32
|
+
SynOption
|
|
33
|
+
} from "./chunks/chunk.CJKK63W2.js";
|
|
22
34
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./chunks/chunk.
|
|
35
|
+
SynPopup
|
|
36
|
+
} from "./chunks/chunk.UJGZNEKT.js";
|
|
25
37
|
import {
|
|
26
38
|
SynPrioNav
|
|
27
39
|
} from "./chunks/chunk.7732PJEC.js";
|
|
@@ -41,11 +53,11 @@ import {
|
|
|
41
53
|
SynRadio
|
|
42
54
|
} from "./chunks/chunk.AFCMSVBY.js";
|
|
43
55
|
import {
|
|
44
|
-
|
|
45
|
-
} from "./chunks/chunk.
|
|
56
|
+
SynIconButton
|
|
57
|
+
} from "./chunks/chunk.W4YO4ERO.js";
|
|
46
58
|
import {
|
|
47
|
-
|
|
48
|
-
} from "./chunks/chunk.
|
|
59
|
+
SynIcon
|
|
60
|
+
} from "./chunks/chunk.6CO3KAZG.js";
|
|
49
61
|
import {
|
|
50
62
|
SynInput
|
|
51
63
|
} from "./chunks/chunk.N6QQSQTB.js";
|
|
@@ -65,14 +77,14 @@ import {
|
|
|
65
77
|
SynOptgroup
|
|
66
78
|
} from "./chunks/chunk.DLAIDGSD.js";
|
|
67
79
|
import {
|
|
68
|
-
|
|
69
|
-
} from "./chunks/chunk.
|
|
70
|
-
import {
|
|
71
|
-
SynPopup
|
|
72
|
-
} from "./chunks/chunk.UJGZNEKT.js";
|
|
80
|
+
SynCard
|
|
81
|
+
} from "./chunks/chunk.JTJSVPDC.js";
|
|
73
82
|
import {
|
|
74
83
|
SynCheckbox
|
|
75
84
|
} from "./chunks/chunk.RU33PYCK.js";
|
|
85
|
+
import {
|
|
86
|
+
SynDetails
|
|
87
|
+
} from "./chunks/chunk.TNN2STQH.js";
|
|
76
88
|
import {
|
|
77
89
|
SynDialog
|
|
78
90
|
} from "./chunks/chunk.IRQRZGIS.js";
|
|
@@ -89,11 +101,8 @@ import {
|
|
|
89
101
|
SynHeader
|
|
90
102
|
} from "./chunks/chunk.RY2WG25R.js";
|
|
91
103
|
import {
|
|
92
|
-
|
|
93
|
-
} from "./chunks/chunk.
|
|
94
|
-
import {
|
|
95
|
-
SynIcon
|
|
96
|
-
} from "./chunks/chunk.6CO3KAZG.js";
|
|
104
|
+
SynAccordion
|
|
105
|
+
} from "./chunks/chunk.W6NG3JOO.js";
|
|
97
106
|
import {
|
|
98
107
|
SynAlert
|
|
99
108
|
} from "./chunks/chunk.NCB462OR.js";
|
|
@@ -112,10 +121,8 @@ import {
|
|
|
112
121
|
import {
|
|
113
122
|
SynButton
|
|
114
123
|
} from "./chunks/chunk.TTUPZLN7.js";
|
|
115
|
-
import {
|
|
116
|
-
SynCard
|
|
117
|
-
} from "./chunks/chunk.JTJSVPDC.js";
|
|
118
124
|
export {
|
|
125
|
+
SynAccordion,
|
|
119
126
|
SynAlert,
|
|
120
127
|
SynBadge,
|
|
121
128
|
SynBreadcrumb,
|
|
@@ -124,6 +131,7 @@ export {
|
|
|
124
131
|
SynButtonGroup,
|
|
125
132
|
SynCard,
|
|
126
133
|
SynCheckbox,
|
|
134
|
+
SynDetails,
|
|
127
135
|
SynDialog,
|
|
128
136
|
SynDivider,
|
|
129
137
|
SynDrawer,
|
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": "^2.
|
|
8
|
+
"@synergy-design-system/components": "^2.3.0"
|
|
9
9
|
},
|
|
10
10
|
"description": "React wrappers for the Synergy Design System",
|
|
11
11
|
"exports": {
|
|
@@ -40,12 +40,12 @@
|
|
|
40
40
|
"directory": "packages/react"
|
|
41
41
|
},
|
|
42
42
|
"type": "module",
|
|
43
|
-
"version": "2.
|
|
43
|
+
"version": "2.3.0",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@types/react": "^18.2.79",
|
|
46
46
|
"react": "^18.2.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"@synergy-design-system/tokens": "^2.
|
|
49
|
+
"@synergy-design-system/tokens": "^2.3.0"
|
|
50
50
|
}
|
|
51
51
|
}
|