@pingux/astro 2.175.0 → 2.176.0-alpha.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/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +3 -1
- package/lib/cjs/components/SearchNav/SearchNav.chromatic.stories.js +30 -4
- package/lib/cjs/components/TextAreaField/TextAreaField.stories.js +3 -3
- package/lib/cjs/libs/astro/src/components/SearchNav/SearchNav.chromatic.stories.d.ts +2 -0
- package/lib/cjs/libs/astro/src/components/TextAreaField/TextAreaField.stories.d.ts +1 -1
- package/lib/cjs/libs/astro/tsconfig.lib.tsbuildinfo +1 -1
- package/lib/cjs/recipes/ListAndPanel.stories.js +4 -3
- package/lib/cjs/recipes/ScrollableListView.stories.js +1 -0
- package/lib/cjs/styles/themeOverrides/stories/SearchField.chromatic.stories.js +1 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +1 -1
- package/lib/components/AccordionGroup/AccordionGroup.stories.js +3 -1
- package/lib/components/SearchNav/SearchNav.chromatic.stories.js +29 -3
- package/lib/components/TextAreaField/TextAreaField.stories.js +3 -3
- package/lib/recipes/ListAndPanel.stories.js +4 -3
- package/lib/recipes/ScrollableListView.stories.js +1 -0
- package/lib/styles/themeOverrides/stories/SearchField.chromatic.stories.js +1 -0
- package/lib/styles/themes/next-gen/variants/variants.js +1 -1
- package/package.json +1 -1
|
@@ -122,12 +122,13 @@ var title = (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.Box, {
|
|
|
122
122
|
}, (0, _react2.jsx)(_index.Icon, {
|
|
123
123
|
icon: _PlusIcon["default"],
|
|
124
124
|
size: "sm"
|
|
125
|
-
}))), (0, _react2.jsx)(_index.Text, {
|
|
125
|
+
}))), (0, _react2.jsx)(_index.Text, null, (0, _react2.jsx)(_index.Text, {
|
|
126
126
|
fontSize: "sm",
|
|
127
127
|
color: "text.secondary",
|
|
128
128
|
fontWeight: 0,
|
|
129
|
-
width: "800px"
|
|
130
|
-
|
|
129
|
+
width: "800px",
|
|
130
|
+
display: "contents"
|
|
131
|
+
}, description), (0, _react2.jsx)(_index.Link, {
|
|
131
132
|
href: "https://uilibrary.ping-eng.com/",
|
|
132
133
|
sx: {
|
|
133
134
|
fontSize: '13px'
|
|
@@ -75,6 +75,7 @@ var ScrollableListView = exports.ScrollableListView = function ScrollableListVie
|
|
|
75
75
|
filterItems(input);
|
|
76
76
|
};
|
|
77
77
|
return (0, _react2.jsx)(_index.Box, null, (0, _react2.jsx)(_index.SearchField, {
|
|
78
|
+
label: "Search",
|
|
78
79
|
value: value,
|
|
79
80
|
onChange: onChangeInput
|
|
80
81
|
}), (0, _react2.jsx)(_index.ScrollBox, {
|
|
@@ -18,6 +18,7 @@ var _default = exports["default"] = {
|
|
|
18
18
|
};
|
|
19
19
|
var Default = exports.Default = function Default() {
|
|
20
20
|
return (0, _react2.jsx)(_index.SearchField, {
|
|
21
|
+
label: "Example",
|
|
21
22
|
icon: _SearchIcon["default"],
|
|
22
23
|
onSubmit: function onSubmit(text) {
|
|
23
24
|
return alert(text);
|
|
@@ -36,7 +36,7 @@ var items = [{
|
|
|
36
36
|
children: ___EmotionJSX(Text, null, "Integration")
|
|
37
37
|
}];
|
|
38
38
|
export var Default = function Default() {
|
|
39
|
-
var _items$find
|
|
39
|
+
var _items$find;
|
|
40
40
|
var _useState = useState('Access'),
|
|
41
41
|
_useState2 = _slicedToArray(_useState, 2),
|
|
42
42
|
selectedKey = _useState2[0],
|
|
@@ -58,7 +58,20 @@ export var Default = function Default() {
|
|
|
58
58
|
p: "sm"
|
|
59
59
|
}, (_items$find = _findInstanceProperty(items).call(items, function (item) {
|
|
60
60
|
return item.key === selectedKey;
|
|
61
|
-
})) === null || _items$find === void 0 ? void 0 : _items$find.children))
|
|
61
|
+
})) === null || _items$find === void 0 ? void 0 : _items$find.children)));
|
|
62
|
+
};
|
|
63
|
+
export var MediumWidth = function MediumWidth() {
|
|
64
|
+
var _items$find2;
|
|
65
|
+
var _useState3 = useState('Access'),
|
|
66
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
67
|
+
selectedKey = _useState4[0],
|
|
68
|
+
setSelectedKey = _useState4[1];
|
|
69
|
+
var setSelectedKeyCallback = function setSelectedKeyCallback(e) {
|
|
70
|
+
setSelectedKey(e);
|
|
71
|
+
};
|
|
72
|
+
return ___EmotionJSX(Box, {
|
|
73
|
+
gap: "md"
|
|
74
|
+
}, ___EmotionJSX(Box, {
|
|
62
75
|
maxWidth: "400px"
|
|
63
76
|
}, ___EmotionJSX(SearchNav, {
|
|
64
77
|
items: items,
|
|
@@ -70,7 +83,20 @@ export var Default = function Default() {
|
|
|
70
83
|
p: "sm"
|
|
71
84
|
}, (_items$find2 = _findInstanceProperty(items).call(items, function (item) {
|
|
72
85
|
return item.key === selectedKey;
|
|
73
|
-
})) === null || _items$find2 === void 0 ? void 0 : _items$find2.children))
|
|
86
|
+
})) === null || _items$find2 === void 0 ? void 0 : _items$find2.children)));
|
|
87
|
+
};
|
|
88
|
+
export var SmallWidth = function SmallWidth() {
|
|
89
|
+
var _items$find3;
|
|
90
|
+
var _useState5 = useState('Access'),
|
|
91
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
92
|
+
selectedKey = _useState6[0],
|
|
93
|
+
setSelectedKey = _useState6[1];
|
|
94
|
+
var setSelectedKeyCallback = function setSelectedKeyCallback(e) {
|
|
95
|
+
setSelectedKey(e);
|
|
96
|
+
};
|
|
97
|
+
return ___EmotionJSX(Box, {
|
|
98
|
+
gap: "md"
|
|
99
|
+
}, ___EmotionJSX(Box, {
|
|
74
100
|
maxWidth: "200px"
|
|
75
101
|
}, ___EmotionJSX(SearchNav, {
|
|
76
102
|
items: items,
|
|
@@ -96,7 +96,7 @@ var IconSlot = ___EmotionJSX(Box, {
|
|
|
96
96
|
export var Default = function Default(args) {
|
|
97
97
|
return ___EmotionJSX(TextAreaField, args);
|
|
98
98
|
};
|
|
99
|
-
export var WithSlots = function WithSlots() {
|
|
99
|
+
export var WithSlots = function WithSlots(args) {
|
|
100
100
|
return (
|
|
101
101
|
// This is an example of a slot that can be passed into the component
|
|
102
102
|
// const IconSlot = (
|
|
@@ -106,11 +106,11 @@ export var WithSlots = function WithSlots() {
|
|
|
106
106
|
// />
|
|
107
107
|
// </Box>
|
|
108
108
|
// );
|
|
109
|
-
___EmotionJSX(TextAreaField, {
|
|
109
|
+
___EmotionJSX(TextAreaField, _extends({}, args, {
|
|
110
110
|
slots: {
|
|
111
111
|
inContainer: IconSlot
|
|
112
112
|
}
|
|
113
|
-
})
|
|
113
|
+
}))
|
|
114
114
|
);
|
|
115
115
|
};
|
|
116
116
|
export var FloatLabel = function FloatLabel(args) {
|
|
@@ -110,12 +110,13 @@ var title = ___EmotionJSX(Box, null, ___EmotionJSX(Box, {
|
|
|
110
110
|
}, ___EmotionJSX(Icon, {
|
|
111
111
|
icon: PlusIcon,
|
|
112
112
|
size: "sm"
|
|
113
|
-
}))), ___EmotionJSX(Text, {
|
|
113
|
+
}))), ___EmotionJSX(Text, null, ___EmotionJSX(Text, {
|
|
114
114
|
fontSize: "sm",
|
|
115
115
|
color: "text.secondary",
|
|
116
116
|
fontWeight: 0,
|
|
117
|
-
width: "800px"
|
|
118
|
-
|
|
117
|
+
width: "800px",
|
|
118
|
+
display: "contents"
|
|
119
|
+
}, description), ___EmotionJSX(Link, {
|
|
119
120
|
href: "https://uilibrary.ping-eng.com/",
|
|
120
121
|
sx: {
|
|
121
122
|
fontSize: '13px'
|