@pingux/astro 2.28.0-alpha.1 → 2.28.0-alpha.5
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/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +17 -11
- package/lib/cjs/components/ComboBox/ComboBoxInput.js +1 -0
- package/lib/cjs/components/SelectFieldBase/SelectFieldBase.js +1 -0
- package/lib/cjs/recipes/ConditionFilter.stories.js +15 -1
- package/lib/cjs/utils/designUtils/figmaLinks.js +1 -0
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +15 -9
- package/lib/components/ComboBox/ComboBoxInput.js +1 -0
- package/lib/components/SelectFieldBase/SelectFieldBase.js +1 -0
- package/lib/recipes/ConditionFilter.stories.js +15 -1
- package/lib/utils/designUtils/figmaLinks.js +1 -0
- package/package.json +1 -1
@@ -8,7 +8,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequ
|
|
8
8
|
_Object$defineProperty(exports, "__esModule", {
|
9
9
|
value: true
|
10
10
|
});
|
11
|
-
exports["default"] = exports.UncontrolledExpanded = exports.Multiple = exports.
|
11
|
+
exports["default"] = exports.UncontrolledExpanded = exports.Multiple = exports.DisabledState = exports.DifferentLevels = exports.Default = exports.CustomPresentation = exports.ControlledExpanded = void 0;
|
12
12
|
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/slicedToArray"));
|
13
13
|
var _extends2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/extends"));
|
14
14
|
var _react = _interopRequireWildcard(require("react"));
|
@@ -41,16 +41,16 @@ var itemArray = [{
|
|
41
41
|
}];
|
42
42
|
var itemArrayDisabled = [{
|
43
43
|
key: 't1',
|
44
|
-
label: 'Disabled
|
44
|
+
label: 'Accordion Disabled',
|
45
45
|
children: (0, _react2.jsx)(_index.Text, null, "Hi")
|
46
46
|
}, {
|
47
47
|
key: 't2',
|
48
|
-
label: 'Accordion',
|
49
|
-
children:
|
48
|
+
label: 'Accordion Active',
|
49
|
+
children: (0, _react2.jsx)(_index.Text, null, "Hi")
|
50
50
|
}, {
|
51
51
|
key: 't3',
|
52
|
-
label: 'Disabled
|
53
|
-
children:
|
52
|
+
label: 'Accordion Disabled',
|
53
|
+
children: (0, _react2.jsx)(_index.Text, null, "Hi")
|
54
54
|
}];
|
55
55
|
var _default = {
|
56
56
|
title: 'Components/AccordionGroup',
|
@@ -214,13 +214,13 @@ var UncontrolledExpanded = function UncontrolledExpanded() {
|
|
214
214
|
);
|
215
215
|
};
|
216
216
|
exports.UncontrolledExpanded = UncontrolledExpanded;
|
217
|
-
var
|
217
|
+
var DisabledState = function DisabledState() {
|
218
218
|
return (
|
219
219
|
/*
|
220
220
|
itemArrayDisabled = [
|
221
|
-
{ key: 't1', label: 'Disabled
|
222
|
-
{ key: 't2', label: 'Accordion', children:
|
223
|
-
{ key: 't3', label: 'Disabled
|
221
|
+
{ key: 't1', label: 'Accordion Disabled', children: <Text>Hi</Text> },
|
222
|
+
{ key: 't2', label: 'Accordion Active', children: <Text>Hi</Text> },
|
223
|
+
{ key: 't3', label: 'Accordion Disabled', children: <Text>Hi</Text> },
|
224
224
|
];
|
225
225
|
*/
|
226
226
|
(0, _react2.jsx)(_index.AccordionGroup, {
|
@@ -236,7 +236,13 @@ var DisabledItems = function DisabledItems() {
|
|
236
236
|
})
|
237
237
|
);
|
238
238
|
};
|
239
|
-
exports.
|
239
|
+
exports.DisabledState = DisabledState;
|
240
|
+
DisabledState.parameters = {
|
241
|
+
design: {
|
242
|
+
type: 'figma',
|
243
|
+
url: _figmaLinks.FIGMA_LINKS.accordionGroup.disabledState
|
244
|
+
}
|
245
|
+
};
|
240
246
|
var CustomPresentation = function CustomPresentation() {
|
241
247
|
return (
|
242
248
|
/*
|
@@ -24,7 +24,21 @@ var _react2 = require("@emotion/react");
|
|
24
24
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
25
25
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { (0, _defineProperty2["default"])(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
26
26
|
var _default = {
|
27
|
-
title: 'Recipes/Condition Filter'
|
27
|
+
title: 'Recipes/Condition Filter',
|
28
|
+
parameters: {
|
29
|
+
a11y: {
|
30
|
+
config: {
|
31
|
+
/** The "color-contrast" test ends with an "incomplete" status
|
32
|
+
* since pseudo-element applies to the same container as selected values.
|
33
|
+
* A workaround to disable "color-contrast" incomplete tests.
|
34
|
+
*/
|
35
|
+
rules: [{
|
36
|
+
id: 'color-contrast',
|
37
|
+
enabled: false
|
38
|
+
}]
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
28
42
|
};
|
29
43
|
exports["default"] = _default;
|
30
44
|
var borderBox = {
|
@@ -8,6 +8,7 @@ exports.FIGMA_LINKS = void 0;
|
|
8
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
|
+
disabledState: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=43917%3A31554&mode=dev',
|
11
12
|
differentLevels: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=446%3A1949&mode=dev'
|
12
13
|
},
|
13
14
|
attributeMappings: {
|
@@ -28,16 +28,16 @@ var itemArray = [{
|
|
28
28
|
}];
|
29
29
|
var itemArrayDisabled = [{
|
30
30
|
key: 't1',
|
31
|
-
label: 'Disabled
|
31
|
+
label: 'Accordion Disabled',
|
32
32
|
children: ___EmotionJSX(Text, null, "Hi")
|
33
33
|
}, {
|
34
34
|
key: 't2',
|
35
|
-
label: 'Accordion',
|
36
|
-
children:
|
35
|
+
label: 'Accordion Active',
|
36
|
+
children: ___EmotionJSX(Text, null, "Hi")
|
37
37
|
}, {
|
38
38
|
key: 't3',
|
39
|
-
label: 'Disabled
|
40
|
-
children:
|
39
|
+
label: 'Accordion Disabled',
|
40
|
+
children: ___EmotionJSX(Text, null, "Hi")
|
41
41
|
}];
|
42
42
|
export default {
|
43
43
|
title: 'Components/AccordionGroup',
|
@@ -195,13 +195,13 @@ export var UncontrolledExpanded = function UncontrolledExpanded() {
|
|
195
195
|
})
|
196
196
|
);
|
197
197
|
};
|
198
|
-
export var
|
198
|
+
export var DisabledState = function DisabledState() {
|
199
199
|
return (
|
200
200
|
/*
|
201
201
|
itemArrayDisabled = [
|
202
|
-
{ key: 't1', label: 'Disabled
|
203
|
-
{ key: 't2', label: 'Accordion', children:
|
204
|
-
{ key: 't3', label: 'Disabled
|
202
|
+
{ key: 't1', label: 'Accordion Disabled', children: <Text>Hi</Text> },
|
203
|
+
{ key: 't2', label: 'Accordion Active', children: <Text>Hi</Text> },
|
204
|
+
{ key: 't3', label: 'Accordion Disabled', children: <Text>Hi</Text> },
|
205
205
|
];
|
206
206
|
*/
|
207
207
|
___EmotionJSX(AccordionGroup, {
|
@@ -217,6 +217,12 @@ export var DisabledItems = function DisabledItems() {
|
|
217
217
|
})
|
218
218
|
);
|
219
219
|
};
|
220
|
+
DisabledState.parameters = {
|
221
|
+
design: {
|
222
|
+
type: 'figma',
|
223
|
+
url: FIGMA_LINKS.accordionGroup.disabledState
|
224
|
+
}
|
225
|
+
};
|
220
226
|
export var CustomPresentation = function CustomPresentation() {
|
221
227
|
return (
|
222
228
|
/*
|
@@ -17,7 +17,21 @@ import { Badge, Box, Bracket, Button, Icon, IconButton, Item, RockerButton, Rock
|
|
17
17
|
import { FIGMA_LINKS } from '../utils/designUtils/figmaLinks.js';
|
18
18
|
import { jsx as ___EmotionJSX } from "@emotion/react";
|
19
19
|
export default {
|
20
|
-
title: 'Recipes/Condition Filter'
|
20
|
+
title: 'Recipes/Condition Filter',
|
21
|
+
parameters: {
|
22
|
+
a11y: {
|
23
|
+
config: {
|
24
|
+
/** The "color-contrast" test ends with an "incomplete" status
|
25
|
+
* since pseudo-element applies to the same container as selected values.
|
26
|
+
* A workaround to disable "color-contrast" incomplete tests.
|
27
|
+
*/
|
28
|
+
rules: [{
|
29
|
+
id: 'color-contrast',
|
30
|
+
enabled: false
|
31
|
+
}]
|
32
|
+
}
|
33
|
+
}
|
34
|
+
}
|
21
35
|
};
|
22
36
|
var borderBox = {
|
23
37
|
borderColor: 'neutral.80',
|
@@ -1,6 +1,7 @@
|
|
1
1
|
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
|
+
disabledState: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=43917%3A31554&mode=dev',
|
4
5
|
differentLevels: 'https://www.figma.com/file/bpbEw54gTTcdIiZs4PKK1p/Astro-Specs?node-id=446%3A1949&mode=dev'
|
5
6
|
},
|
6
7
|
attributeMappings: {
|