@spothero/ui 15.9.3 → 15.9.4
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/package.json +2 -2
- package/styles/v2/components/AutoSuggestSelect/AutoSuggestSelect.jsx +1 -1
- package/styles/v2/components/Skeleton/Skeleton.stories.jsx +34 -0
- package/styles/v2/components/Skeleton/Skeleton.styles.js +3 -0
- package/styles/v2/components/Skeleton/index.js +1 -0
- package/styles/v2/components/index.js +1 -0
- package/styles/v2/components/styles.js +1 -0
- package/v2/index.js +1 -1
- package/v2/index.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@spothero/ui",
|
|
3
|
-
"version": "15.9.
|
|
3
|
+
"version": "15.9.4",
|
|
4
4
|
"description": "SpotHero's React component UI library.",
|
|
5
5
|
"main": "v2/index.js",
|
|
6
6
|
"repository": "https://github.com/spothero/fe-monorepo",
|
|
@@ -164,4 +164,4 @@
|
|
|
164
164
|
"react-redux": ">=7.0.0",
|
|
165
165
|
"redux": ">=4.0.0"
|
|
166
166
|
}
|
|
167
|
-
}
|
|
167
|
+
}
|
|
@@ -168,7 +168,7 @@ AutoSuggestSelect.propTypes = {
|
|
|
168
168
|
placeholder: PropTypes.string,
|
|
169
169
|
/** Optional helper text displayed below the select */
|
|
170
170
|
helperText: PropTypes.string,
|
|
171
|
-
/** Error message that would
|
|
171
|
+
/** Error message that would display under the select */
|
|
172
172
|
errorMessage: PropTypes.string,
|
|
173
173
|
/** Boolean that sets whether the select is valid */
|
|
174
174
|
isInvalid: PropTypes.bool,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {Skeleton as Component, SkeletonCircle as CircleSkeleton, SkeletonText as TextSkeleton} from './index';
|
|
4
|
+
|
|
5
|
+
export default {
|
|
6
|
+
title: 'v2/Skeleton',
|
|
7
|
+
component: Component,
|
|
8
|
+
parameters: {
|
|
9
|
+
removeBaseHtmlClass: true,
|
|
10
|
+
chakraLink: 'https://chakra-ui.com/docs/components/skeleton/',
|
|
11
|
+
},
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const SkeletonTemplate = props => (
|
|
15
|
+
<Component {...props}>
|
|
16
|
+
Text
|
|
17
|
+
</Component>
|
|
18
|
+
);
|
|
19
|
+
|
|
20
|
+
const SkeletonCircleTemplate = props => (
|
|
21
|
+
<CircleSkeleton>
|
|
22
|
+
Text
|
|
23
|
+
</CircleSkeleton>
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
const SkeletonTextTemplate = props => (
|
|
27
|
+
<TextSkeleton>
|
|
28
|
+
Text
|
|
29
|
+
</TextSkeleton>
|
|
30
|
+
)
|
|
31
|
+
|
|
32
|
+
export const Skeleton = SkeletonTemplate.bind({});
|
|
33
|
+
export const SkeletonCircle = SkeletonCircleTemplate.bind({})
|
|
34
|
+
export const SkeletonText = SkeletonTextTemplate.bind({})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {Skeleton, SkeletonCircle, SkeletonText} from '@chakra-ui/react';
|
|
@@ -7,6 +7,7 @@ export {
|
|
|
7
7
|
} from './Accordion';
|
|
8
8
|
export * from './Button';
|
|
9
9
|
export * from './Table';
|
|
10
|
+
export * from './Skeleton';
|
|
10
11
|
export {TabList, TabPanels, Tab, TabPanel, default as Tabs} from './Tabs';
|
|
11
12
|
export {default as Select} from './Select';
|
|
12
13
|
export {default as Switch} from './Switch';
|
|
@@ -16,3 +16,4 @@ export {default as Popover} from './Popover/styles';
|
|
|
16
16
|
export {default as Input} from './Input/styles';
|
|
17
17
|
export {default as Modal} from './Modal/styles';
|
|
18
18
|
export {default as Radio} from './Radio/styles';
|
|
19
|
+
export {default as Skeleton} from './Skeleton/Skeleton.styles';
|