techsbcn-storybook 0.22.1 → 0.22.3
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/layouts/Standard/AppHeader/AppHeader.d.ts +2 -0
- package/dist/components/tables/SearchComponent/SearchComponent.d.ts +1 -0
- package/dist/stories/Fields/TextFieldComponent.stories.d.ts +4 -0
- package/dist/stories/Layouts/MainLayoutSimple.stories.d.ts +3 -4
- package/dist/techsbcn-storybook.cjs.development.js +12 -6
- 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 +12 -6
- package/dist/techsbcn-storybook.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/layouts/Standard/AppHeader/AppHeader.tsx +8 -2
- package/src/components/tables/SearchComponent/SearchComponent.tsx +14 -8
- package/src/interfaces/search/SearchFilters.tsx +1 -1
- package/src/stories/Fields/TextFieldComponent.stories.tsx +42 -0
- package/src/stories/Layouts/MainLayoutSimple.stories.tsx +166 -31
- package/src/stories/Tables/TableComponent.stories.tsx +8 -11
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Meta, Story } from '@storybook/react';
|
|
2
2
|
declare const meta: Meta;
|
|
3
3
|
export default meta;
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
7
|
-
export declare const DrawerSidebarAndHeaderLayout: Story;
|
|
4
|
+
export declare const SideBarLayoutProps: Story<import("@storybook/react").Args>;
|
|
5
|
+
export declare const SidebarAndHeaderProps: Story<import("@storybook/react").Args>;
|
|
6
|
+
export declare const DrawerSidebarAndHeaderLayoutProps: Story<import("@storybook/react").Args>;
|
|
@@ -115,7 +115,7 @@ var DoubleFilter = function DoubleFilter(filters) {
|
|
|
115
115
|
};
|
|
116
116
|
|
|
117
117
|
var SearchComponent = function SearchComponent(props) {
|
|
118
|
-
var _useState = React.useState(!props.searchBar && !!props.filters),
|
|
118
|
+
var _useState = React.useState(!props.searchBar && !!props.filters || props.fixedOpen),
|
|
119
119
|
isOpen = _useState[0],
|
|
120
120
|
setIsOpen = _useState[1];
|
|
121
121
|
|
|
@@ -142,7 +142,7 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
142
142
|
}, React__default.createElement(material.Grid, {
|
|
143
143
|
item: true,
|
|
144
144
|
xs: props.actions ? 8 : 12,
|
|
145
|
-
md: props.searchBar ? 4 : props.actions ? 6 : 12
|
|
145
|
+
md: props.actions && props.searchBar ? 4 : props.searchBar ? 7 : props.actions ? 6 : 12
|
|
146
146
|
}, React__default.createElement(material.Box, {
|
|
147
147
|
px: 1,
|
|
148
148
|
className: (props.enableAfter ? 'main-background-color-after' : '') + " title"
|
|
@@ -200,7 +200,7 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
200
200
|
}, ActionsList(props.actions)))), (props.searchBar || props.filters || props.actions) && React__default.createElement(material.Grid, {
|
|
201
201
|
item: true,
|
|
202
202
|
xs: 12,
|
|
203
|
-
md: props.actions && props.searchBar ? 8 : props.actions ? 6 :
|
|
203
|
+
md: props.actions && props.searchBar ? 8 : props.actions ? 6 : 5
|
|
204
204
|
}, React__default.createElement(material.Box, {
|
|
205
205
|
display: "flex",
|
|
206
206
|
alignItems: "center"
|
|
@@ -214,7 +214,7 @@ var SearchComponent = function SearchComponent(props) {
|
|
|
214
214
|
},
|
|
215
215
|
display: "flex",
|
|
216
216
|
width: "100%"
|
|
217
|
-
}, props.searchBar, props.filters && props.searchBar && React__default.createElement(material.Box, {
|
|
217
|
+
}, props.searchBar, !!props.fixedOpen || props.filters && props.searchBar && React__default.createElement(material.Box, {
|
|
218
218
|
onClick: function onClick() {
|
|
219
219
|
return setIsOpen(!isOpen);
|
|
220
220
|
},
|
|
@@ -1571,14 +1571,20 @@ var AppHeader = function AppHeader(props) {
|
|
|
1571
1571
|
|
|
1572
1572
|
return React__default.createElement(material.AppBar, {
|
|
1573
1573
|
position: "sticky",
|
|
1574
|
+
sx: {
|
|
1575
|
+
display: {
|
|
1576
|
+
xs: "block",
|
|
1577
|
+
lg: props.appBarResponsiveShow ? "none" : "block"
|
|
1578
|
+
}
|
|
1579
|
+
},
|
|
1574
1580
|
className: "app-bar main-background-body " + ((_props$className = props.className) != null ? _props$className : '')
|
|
1575
1581
|
}, React__default.createElement(material.Toolbar, {
|
|
1576
1582
|
className: "app-toolbar"
|
|
1577
1583
|
}, props.handleDrawerOpen && React__default.createElement(material.IconButton, {
|
|
1578
1584
|
sx: {
|
|
1579
1585
|
display: {
|
|
1580
|
-
xs:
|
|
1581
|
-
lg:
|
|
1586
|
+
xs: "inline-flex",
|
|
1587
|
+
lg: props.drawerVisible ? "inline-flex" : "none"
|
|
1582
1588
|
}
|
|
1583
1589
|
},
|
|
1584
1590
|
edge: "start",
|