techsbcn-storybook 0.22.7 → 0.23.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/components/wrappers/CardComponent/CardComponent.d.ts +12 -0
- package/dist/index.d.ts +1 -0
- package/dist/stories/Wrappers/Card.stories.d.ts +4 -0
- package/dist/techsbcn-storybook.cjs.development.js +3 -0
- package/dist/techsbcn-storybook.cjs.development.js.map +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js +1 -1
- package/dist/techsbcn-storybook.cjs.production.min.js.map +1 -1
- package/dist/techsbcn-storybook.esm.js +3 -0
- package/dist/techsbcn-storybook.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/wrappers/CardComponent/CardComponent.scss +23 -0
- package/src/components/wrappers/CardComponent/CardComponent.tsx +38 -0
- package/src/index.tsx +1 -0
- package/src/stories/Wrappers/Card.stories.tsx +85 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import './CardComponent.scss';
|
|
3
|
+
declare type BackgroundType = 'gradiant-green' | 'gradiant-violet' | 'main-background-color' | 'white' | 'grey';
|
|
4
|
+
interface CardComponentProps {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
height?: string;
|
|
7
|
+
backgroundType?: BackgroundType;
|
|
8
|
+
className?: string;
|
|
9
|
+
loading?: boolean;
|
|
10
|
+
}
|
|
11
|
+
declare const CardComponent: React.FC<CardComponentProps>;
|
|
12
|
+
export default CardComponent;
|
package/dist/index.d.ts
CHANGED
|
@@ -21,3 +21,4 @@ export * from './components/modals/ModalComponent';
|
|
|
21
21
|
export * from './components/wrappers/TabsComponent/TabsComponent';
|
|
22
22
|
export * from './components/wrappers/LinearProgressComponent/LinearProgressComponent';
|
|
23
23
|
export * from './components/fields/DatePickerComponent/DatePickerComponent';
|
|
24
|
+
export * from './components/wrappers/CardComponent/CardComponent';
|
|
@@ -3231,6 +3231,9 @@ DatePickerComponent.defaultProps = {
|
|
|
3231
3231
|
fullWidth: true
|
|
3232
3232
|
};
|
|
3233
3233
|
|
|
3234
|
+
var css_248z$i = ".card-component {\n box-shadow: 0 1px 20px 0 rgba(69, 90, 100, 0.08);\n background-color: white;\n}\n.card-component.gradiant-green {\n background: linear-gradient(-135deg, #1de9b6, #1dc4e9);\n color: white;\n}\n.card-component.gradiant-violet {\n background: linear-gradient(-135deg, #899fd4, #a389d4);\n color: white;\n}\n.card-component.grey {\n background: #A9A9A9;\n color: white;\n}\n.card-component.main-background-color {\n color: white;\n}\n.card-component .MuiCircularProgress-root {\n color: white;\n}";
|
|
3235
|
+
styleInject(css_248z$i);
|
|
3236
|
+
|
|
3234
3237
|
exports.AppHeader = AppHeader;
|
|
3235
3238
|
exports.AppSidebar = AppSidebar;
|
|
3236
3239
|
exports.ButtonComponent = ButtonComponent;
|