@pingux/astro 2.31.0-alpha.0 → 2.31.0-alpha.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.
@@ -33,7 +33,10 @@ var itemArray = [{
|
|
33
33
|
}, {
|
34
34
|
key: 't2',
|
35
35
|
label: 'Second Accordion',
|
36
|
-
children:
|
36
|
+
children: (0, _react2.jsx)(_index.Text, {
|
37
|
+
variant: "base",
|
38
|
+
lineHeight: 1.2
|
39
|
+
}, "Content for the second section. Content for the second section. Content for the second section. Content for the second section. Content for the second section. Content for the second section. Content for the second section. Content for the second section.")
|
37
40
|
}, {
|
38
41
|
key: 't3',
|
39
42
|
label: 'Third Accordion',
|
@@ -147,6 +150,7 @@ var Multiple = function Multiple() {
|
|
147
150
|
* ];
|
148
151
|
*/
|
149
152
|
(0, _react2.jsx)(_index.AccordionGroup, {
|
153
|
+
defaultExpandedKeys: ['t2'],
|
150
154
|
items: itemArray,
|
151
155
|
labelHeadingTag: "h3"
|
152
156
|
}, function (item) {
|
@@ -159,6 +163,12 @@ var Multiple = function Multiple() {
|
|
159
163
|
);
|
160
164
|
};
|
161
165
|
exports.Multiple = Multiple;
|
166
|
+
Multiple.parameters = {
|
167
|
+
design: {
|
168
|
+
type: 'figma',
|
169
|
+
url: _figmaLinks.FIGMA_LINKS.accordionGroup.multiple
|
170
|
+
}
|
171
|
+
};
|
162
172
|
var ControlledExpanded = function ControlledExpanded() {
|
163
173
|
var _useState = (0, _react.useState)(['t3']),
|
164
174
|
_useState2 = (0, _slicedToArray2["default"])(_useState, 2),
|
@@ -9,7 +9,8 @@ var FIGMA_LINKS = {
|
|
9
9
|
accordionGroup: {
|
10
10
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=446-1808&t=8Wwd3tIBh3GEjCJB-0',
|
11
11
|
disabledState: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=43917%3A31554&mode=dev',
|
12
|
-
differentLevels: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=446%3A1949&mode=dev'
|
12
|
+
differentLevels: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=446%3A1949&mode=dev',
|
13
|
+
multiple: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=4549%3A12455&mode=dev'
|
13
14
|
},
|
14
15
|
attributeMappings: {
|
15
16
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=15076%3A33905&mode=dev',
|
@@ -20,7 +20,10 @@ var itemArray = [{
|
|
20
20
|
}, {
|
21
21
|
key: 't2',
|
22
22
|
label: 'Second Accordion',
|
23
|
-
children:
|
23
|
+
children: ___EmotionJSX(Text, {
|
24
|
+
variant: "base",
|
25
|
+
lineHeight: 1.2
|
26
|
+
}, "Content for the second section. Content for the second section. Content for the second section. Content for the second section. Content for the second section. Content for the second section. Content for the second section. Content for the second section.")
|
24
27
|
}, {
|
25
28
|
key: 't3',
|
26
29
|
label: 'Third Accordion',
|
@@ -131,6 +134,7 @@ export var Multiple = function Multiple() {
|
|
131
134
|
* ];
|
132
135
|
*/
|
133
136
|
___EmotionJSX(AccordionGroup, {
|
137
|
+
defaultExpandedKeys: ['t2'],
|
134
138
|
items: itemArray,
|
135
139
|
labelHeadingTag: "h3"
|
136
140
|
}, function (item) {
|
@@ -142,6 +146,12 @@ export var Multiple = function Multiple() {
|
|
142
146
|
})
|
143
147
|
);
|
144
148
|
};
|
149
|
+
Multiple.parameters = {
|
150
|
+
design: {
|
151
|
+
type: 'figma',
|
152
|
+
url: FIGMA_LINKS.accordionGroup.multiple
|
153
|
+
}
|
154
|
+
};
|
145
155
|
export var ControlledExpanded = function ControlledExpanded() {
|
146
156
|
var _useState = useState(['t3']),
|
147
157
|
_useState2 = _slicedToArray(_useState, 2),
|
@@ -2,7 +2,8 @@ export var FIGMA_LINKS = {
|
|
2
2
|
accordionGroup: {
|
3
3
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=446-1808&t=8Wwd3tIBh3GEjCJB-0',
|
4
4
|
disabledState: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=43917%3A31554&mode=dev',
|
5
|
-
differentLevels: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=446%3A1949&mode=dev'
|
5
|
+
differentLevels: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=446%3A1949&mode=dev',
|
6
|
+
multiple: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?type=design&node-id=4549%3A12455&mode=dev'
|
6
7
|
},
|
7
8
|
attributeMappings: {
|
8
9
|
"default": 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=15076%3A33905&mode=dev',
|