react-miui 0.23.5 → 0.23.7-beta.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/.storybook/preview.tsx +1 -0
- package/CHANGELOG.md +14 -0
- package/dist/components/icons/Icon.d.ts +1 -0
- package/dist/components/icons/Icon.d.ts.map +1 -1
- package/dist/components/layout/header/Header.d.ts +1 -1
- package/dist/components/layout/header/Header.d.ts.map +1 -1
- package/dist/components/layout/header/Header.js +7 -14
- package/dist/components/layout/header/Header.js.map +1 -1
- package/dist/components/layout/header/Header.stories.d.ts +11 -0
- package/dist/components/layout/header/Header.stories.d.ts.map +1 -0
- package/dist/components/layout/header/Header.stories.js +65 -0
- package/dist/components/layout/header/Header.stories.js.map +1 -0
- package/dist/components/layout/header/Header.styled.d.ts +326 -0
- package/dist/components/layout/header/Header.styled.d.ts.map +1 -0
- package/dist/components/layout/header/Header.styled.js +98 -0
- package/dist/components/layout/header/Header.styled.js.map +1 -0
- package/dist/components/layout/header/HeaderIconAction.d.ts +1 -2
- package/dist/components/layout/header/HeaderIconAction.d.ts.map +1 -1
- package/dist/components/layout/header/HeaderIconAction.js +6 -11
- package/dist/components/layout/header/HeaderIconAction.js.map +1 -1
- package/dist/components/layout/header/HeaderIconAction.stories.d.ts +9 -0
- package/dist/components/layout/header/HeaderIconAction.stories.d.ts.map +1 -0
- package/dist/components/layout/header/HeaderIconAction.stories.js +43 -0
- package/dist/components/layout/header/HeaderIconAction.stories.js.map +1 -0
- package/dist/components/layout/header/HeaderIconAction.styled.d.ts +243 -0
- package/dist/components/layout/header/HeaderIconAction.styled.d.ts.map +1 -0
- package/dist/components/layout/header/HeaderIconAction.styled.js +35 -0
- package/dist/components/layout/header/HeaderIconAction.styled.js.map +1 -0
- package/dist/components/layout/header/StickyHeader.d.ts +2 -2
- package/dist/components/layout/header/StickyHeader.d.ts.map +1 -1
- package/dist/components/layout/header/StickyHeader.js +17 -8
- package/dist/components/layout/header/StickyHeader.js.map +1 -1
- package/dist/components/layout/header/StickyHeader.stories.d.ts +8 -0
- package/dist/components/layout/header/StickyHeader.stories.d.ts.map +1 -0
- package/dist/components/layout/header/StickyHeader.stories.js +30 -0
- package/dist/components/layout/header/StickyHeader.stories.js.map +1 -0
- package/dist/components/layout/header/StickyHeader.styled.d.ts +166 -0
- package/dist/components/layout/header/StickyHeader.styled.d.ts.map +1 -0
- package/dist/components/layout/header/StickyHeader.styled.js +40 -0
- package/dist/components/layout/header/StickyHeader.styled.js.map +1 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/Drawer.html +14 -14
- package/docs/classes/Pop.html +14 -14
- package/docs/classes/ToasterProvider.html +10 -10
- package/docs/enums/ICON.html +14 -14
- package/docs/functions/Action.html +12 -5
- package/docs/functions/Button.html +9 -5
- package/docs/functions/Card.html +9 -5
- package/docs/functions/Checkbox.html +9 -5
- package/docs/functions/Choice.html +12 -8
- package/docs/functions/CoveringLoader.html +9 -5
- package/docs/functions/DirectionPad.html +9 -5
- package/docs/functions/EqualActions.html +9 -5
- package/docs/functions/FullLoader.html +9 -5
- package/docs/functions/HandleEsc.html +9 -5
- package/docs/functions/Header.html +11 -7
- package/docs/functions/HeaderIconAction.html +12 -5
- package/docs/functions/Icon-1.html +11 -7
- package/docs/functions/If.html +9 -5
- package/docs/functions/Input.html +12 -8
- package/docs/functions/KeyValue.html +9 -5
- package/docs/functions/Label.html +9 -5
- package/docs/functions/List-1.html +9 -5
- package/docs/functions/Loader.html +9 -5
- package/docs/functions/Loading.html +9 -5
- package/docs/functions/Message.html +9 -5
- package/docs/functions/Modal-1.html +9 -5
- package/docs/functions/ModalButtons.html +9 -5
- package/docs/functions/PopLoader.html +9 -5
- package/docs/functions/PopOption.html +9 -5
- package/docs/functions/SearchContainer.html +9 -5
- package/docs/functions/Section.html +9 -5
- package/docs/functions/Select.html +9 -5
- package/docs/functions/Selector.html +10 -6
- package/docs/functions/Spacer.html +9 -5
- package/docs/functions/Stats.html +9 -5
- package/docs/functions/StickyHeader-1.html +9 -5
- package/docs/functions/StickyHeader.Content.html +5 -5
- package/docs/functions/Table.html +9 -5
- package/docs/functions/TextArea.html +9 -5
- package/docs/functions/Toggle.html +9 -5
- package/docs/functions/getCssText.html +9 -5
- package/docs/functions/styled.html +9 -5
- package/docs/functions/useToaster.html +10 -6
- package/docs/index.html +9 -5
- package/docs/interfaces/ActionProps.html +41 -18
- package/docs/interfaces/ChoiceProps.html +125 -0
- package/docs/interfaces/IconProps.html +79 -0
- package/docs/interfaces/InputCustomProps.html +120 -0
- package/docs/modules/List.html +7 -7
- package/docs/modules/Modal.html +6 -6
- package/docs/modules/StickyHeader.html +6 -6
- package/docs/modules.html +13 -5
- package/docs/pages/tutorials/Test.html +9 -5
- package/docs/types/InputProps.html +105 -0
- package/docs/types/ThemeCSS.html +10 -6
- package/docs/variables/List.Header.html +5 -5
- package/docs/variables/List.Item.html +5 -5
- package/docs/variables/Modal.RemovePadding.html +5 -5
- package/docs/variables/cssReset.html +10 -6
- package/docs/variables/miuiScrollbars.html +10 -6
- package/esm/components/icons/Icon.d.ts +1 -0
- package/esm/components/icons/Icon.d.ts.map +1 -1
- package/esm/components/layout/header/Header.d.ts +1 -1
- package/esm/components/layout/header/Header.d.ts.map +1 -1
- package/esm/components/layout/header/Header.js +7 -14
- package/esm/components/layout/header/Header.js.map +1 -1
- package/esm/components/layout/header/Header.stories.d.ts +11 -0
- package/esm/components/layout/header/Header.stories.d.ts.map +1 -0
- package/esm/components/layout/header/Header.stories.js +56 -0
- package/esm/components/layout/header/Header.stories.js.map +1 -0
- package/esm/components/layout/header/Header.styled.d.ts +326 -0
- package/esm/components/layout/header/Header.styled.d.ts.map +1 -0
- package/esm/components/layout/header/Header.styled.js +112 -0
- package/esm/components/layout/header/Header.styled.js.map +1 -0
- package/esm/components/layout/header/HeaderIconAction.d.ts +1 -2
- package/esm/components/layout/header/HeaderIconAction.d.ts.map +1 -1
- package/esm/components/layout/header/HeaderIconAction.js +6 -11
- package/esm/components/layout/header/HeaderIconAction.js.map +1 -1
- package/esm/components/layout/header/HeaderIconAction.stories.d.ts +9 -0
- package/esm/components/layout/header/HeaderIconAction.stories.d.ts.map +1 -0
- package/esm/components/layout/header/HeaderIconAction.stories.js +24 -0
- package/esm/components/layout/header/HeaderIconAction.stories.js.map +1 -0
- package/esm/components/layout/header/HeaderIconAction.styled.d.ts +243 -0
- package/esm/components/layout/header/HeaderIconAction.styled.d.ts.map +1 -0
- package/esm/components/layout/header/HeaderIconAction.styled.js +30 -0
- package/esm/components/layout/header/HeaderIconAction.styled.js.map +1 -0
- package/esm/components/layout/header/StickyHeader.d.ts +2 -2
- package/esm/components/layout/header/StickyHeader.d.ts.map +1 -1
- package/esm/components/layout/header/StickyHeader.js +6 -8
- package/esm/components/layout/header/StickyHeader.js.map +1 -1
- package/esm/components/layout/header/StickyHeader.stories.d.ts +8 -0
- package/esm/components/layout/header/StickyHeader.stories.d.ts.map +1 -0
- package/esm/components/layout/header/StickyHeader.stories.js +24 -0
- package/esm/components/layout/header/StickyHeader.stories.js.map +1 -0
- package/esm/components/layout/header/StickyHeader.styled.d.ts +166 -0
- package/esm/components/layout/header/StickyHeader.styled.d.ts.map +1 -0
- package/esm/components/layout/header/StickyHeader.styled.js +36 -0
- package/esm/components/layout/header/StickyHeader.styled.js.map +1 -0
- package/package.json +8 -8
- package/src/components/icons/Icon.tsx +4 -0
- package/src/components/layout/header/Header.stories.tsx +86 -0
- package/src/components/layout/header/Header.styled.ts +134 -0
- package/src/components/layout/header/Header.tsx +27 -17
- package/src/components/layout/header/HeaderIconAction.stories.tsx +47 -0
- package/src/components/layout/header/HeaderIconAction.styled.ts +40 -0
- package/src/components/layout/header/HeaderIconAction.tsx +30 -16
- package/src/components/layout/header/StickyHeader.stories.tsx +34 -0
- package/src/components/layout/header/StickyHeader.styled.ts +43 -0
- package/src/components/layout/header/StickyHeader.tsx +10 -19
- package/src/demo/componentsMap.ts +1 -67
- package/dist/components/layout/header/Header.module.scss +0 -108
- package/dist/components/layout/header/HeaderIconAction.module.scss +0 -26
- package/dist/components/layout/header/StickyHeader.module.scss +0 -18
- package/esm/components/layout/header/Header.module.scss +0 -108
- package/esm/components/layout/header/HeaderIconAction.module.scss +0 -26
- package/esm/components/layout/header/StickyHeader.module.scss +0 -18
- package/src/components/layout/header/Header.module.scss +0 -108
- package/src/components/layout/header/HeaderIconAction.module.scss +0 -26
- package/src/components/layout/header/StickyHeader.module.scss +0 -18
- package/src/demo/components/layout/header/Header.tsx +0 -118
- package/src/demo/components/layout/header/StickyHeader.module.scss +0 -14
- package/src/demo/components/layout/header/StickyHeader.tsx +0 -112
|
@@ -16,29 +16,24 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
exports.HeaderIconAction = void 0;
|
|
18
18
|
const react_1 = __importDefault(require("react"));
|
|
19
|
-
const
|
|
20
|
-
const Icon_1 = require("../../icons/Icon");
|
|
21
|
-
const HeaderIconAction_module_scss_1 = __importDefault(require("./HeaderIconAction.module.scss"));
|
|
19
|
+
const HeaderIconAction_styled_1 = require("./HeaderIconAction.styled");
|
|
22
20
|
const HeaderIconAction = (props) => {
|
|
23
|
-
const { icon,
|
|
21
|
+
const { icon, href, to, Link, className } = props, restProps = __rest(props, ["icon", "href", "to", "Link", "className"]);
|
|
24
22
|
let content = icon;
|
|
25
23
|
if (typeof icon === "string") {
|
|
26
|
-
content = react_1.default.createElement(
|
|
24
|
+
content = react_1.default.createElement(HeaderIconAction_styled_1.StyledIcon, { name: icon });
|
|
27
25
|
}
|
|
28
26
|
if (to) {
|
|
29
27
|
if (!Link) {
|
|
30
28
|
throw new TypeError("`to` prop given without `Link` component");
|
|
31
29
|
}
|
|
32
|
-
const aCls = (0, classnames_1.default)(props.className, HeaderIconAction_module_scss_1.default.a);
|
|
33
30
|
return react_1.default.createElement(Link, Object.assign({ href: to }, restProps),
|
|
34
|
-
react_1.default.createElement(
|
|
31
|
+
react_1.default.createElement(HeaderIconAction_styled_1.A, { className: props.className }, content));
|
|
35
32
|
}
|
|
36
33
|
if (href) {
|
|
37
|
-
|
|
38
|
-
return react_1.default.createElement("a", Object.assign({ href: href, className: aCls }, restProps), content);
|
|
34
|
+
return react_1.default.createElement(HeaderIconAction_styled_1.A, Object.assign({ href: href, className: props.className }, restProps), content);
|
|
39
35
|
}
|
|
40
|
-
|
|
41
|
-
return (react_1.default.createElement("button", { className: btnCls, onClick: props.onClick }, content));
|
|
36
|
+
return (react_1.default.createElement(HeaderIconAction_styled_1.Btn, { className: props.className, onClick: props.onClick }, content));
|
|
42
37
|
};
|
|
43
38
|
exports.HeaderIconAction = HeaderIconAction;
|
|
44
39
|
//# sourceMappingURL=HeaderIconAction.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderIconAction.js","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;
|
|
1
|
+
{"version":3,"file":"HeaderIconAction.js","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAK1B,uEAA+D;AAsC/D,MAAM,gBAAgB,GAAoB,CAAC,KAAK,EAAE,EAAE;IAChD,MAAM,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,SAAS,KAAmB,KAAK,EAAnB,SAAS,UAAK,KAAK,EAAzD,2CAAiD,CAAQ,CAAC;IAEhE,IAAI,OAAO,GAAc,IAAI,CAAC;IAC9B,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE,CAAC;QAC3B,OAAO,GAAG,8BAAC,oCAAU,IAAC,IAAI,EAAE,IAAY,GAAI,CAAC;IACjD,CAAC;IAED,IAAI,EAAE,EAAE,CAAC;QACL,IAAI,CAAC,IAAI,EAAE,CAAC;YACR,MAAM,IAAI,SAAS,CAAC,0CAA0C,CAAC,CAAC;QACpE,CAAC;QAED,OAAO,8BAAC,IAAI,kBAAC,IAAI,EAAE,EAAE,IAAM,SAAS;YAAE,8BAAC,2BAAC,IAAC,SAAS,EAAE,KAAK,CAAC,SAAS,IAAG,OAAO,CAAK,CAAO,CAAC;IAC9F,CAAC;IAED,IAAI,IAAI,EAAE,CAAC;QACP,OAAO,8BAAC,2BAAC,kBAAC,IAAI,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,IAAM,SAAS,GAAG,OAAO,CAAK,CAAC;IACnF,CAAC;IAED,OAAO,CACH,8BAAC,6BAAG,IAAC,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,OAAO,EAAE,KAAK,CAAC,OAAO,IAClD,OAAO,CACN,CACT,CAAC;AACN,CAAC,CAAC;AAEO,4CAAgB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
import { Header } from "./Header";
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
type Story = StoryObj<typeof Header>;
|
|
5
|
+
declare const Primary: Story;
|
|
6
|
+
declare const MultipleIcons: Story;
|
|
7
|
+
export { Primary, MultipleIcons, };
|
|
8
|
+
export default meta;
|
|
9
|
+
//# sourceMappingURL=HeaderIconAction.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderIconAction.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,QAAA,MAAM,IAAI,EAAE,IAWX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,MAAM,CAAC,CAAC;AAErC,QAAA,MAAM,OAAO,EAAE,KAAU,CAAC;AAE1B,QAAA,MAAM,aAAa,EAAE,KAepB,CAAC;AAEF,OAAO,EACH,OAAO,EACP,aAAa,GAChB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.MultipleIcons = exports.Primary = void 0;
|
|
18
|
+
const react_1 = __importDefault(require("react"));
|
|
19
|
+
const Header_1 = require("./Header");
|
|
20
|
+
const HeaderIconAction_1 = require("./HeaderIconAction");
|
|
21
|
+
const meta = {
|
|
22
|
+
title: "Components/Layout/Header/HeaderIconAction",
|
|
23
|
+
component: HeaderIconAction_1.HeaderIconAction,
|
|
24
|
+
tags: ["autodocs", "layout"],
|
|
25
|
+
render: (args) => {
|
|
26
|
+
return (react_1.default.createElement(Header_1.Header, { before: react_1.default.createElement(HeaderIconAction_1.HeaderIconAction, Object.assign({}, args, { icon: react_1.default.createElement(react_1.default.Fragment, null, "i") })) }, "On the left you can see the icon"));
|
|
27
|
+
},
|
|
28
|
+
};
|
|
29
|
+
const Primary = {};
|
|
30
|
+
exports.Primary = Primary;
|
|
31
|
+
const MultipleIcons = {
|
|
32
|
+
render: (_a) => {
|
|
33
|
+
var { onClick: _onClick } = _a, args = __rest(_a, ["onClick"]);
|
|
34
|
+
const after = (react_1.default.createElement(react_1.default.Fragment, null,
|
|
35
|
+
react_1.default.createElement("div", null, "some text"),
|
|
36
|
+
react_1.default.createElement(HeaderIconAction_1.HeaderIconAction, Object.assign({}, args, { icon: react_1.default.createElement(react_1.default.Fragment, null, "i") })),
|
|
37
|
+
react_1.default.createElement(HeaderIconAction_1.HeaderIconAction, Object.assign({}, args, { icon: react_1.default.createElement(react_1.default.Fragment, null, "i") }))));
|
|
38
|
+
return (react_1.default.createElement(Header_1.Header, { after: after }, "On the left you can see the icon"));
|
|
39
|
+
},
|
|
40
|
+
};
|
|
41
|
+
exports.MultipleIcons = MultipleIcons;
|
|
42
|
+
exports.default = meta;
|
|
43
|
+
//# sourceMappingURL=HeaderIconAction.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderIconAction.stories.js","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.stories.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAI1B,qCAAkC;AAClC,yDAAsD;AAEtD,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,2CAA2C;IAClD,SAAS,EAAE,mCAAgB;IAC3B,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;IAC5B,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QACb,OAAO,CACH,8BAAC,eAAM,IAAC,MAAM,EAAE,8BAAC,mCAAgB,oBAAK,IAAI,IAAE,IAAI,EAAE,kEAAM,IAAI,uCAEnD,CACZ,CAAC;IACN,CAAC;CACJ,CAAC;AAIF,MAAM,OAAO,GAAU,EAAE,CAAC;AAoBtB,0BAAO;AAlBX,MAAM,aAAa,GAAU;IACzB,MAAM,EAAE,CAAC,EAA8B,EAAE,EAAE;YAAlC,EAAE,OAAO,EAAE,QAAQ,OAAW,EAAN,IAAI,cAA5B,WAA8B,CAAF;QACjC,MAAM,KAAK,GAAG,CACV;YACI,uDAAoB;YACpB,8BAAC,mCAAgB,oBAAK,IAAI,IAAE,IAAI,EAAE,kEAAM,IAAI;YAC5C,8BAAC,mCAAgB,oBAAK,IAAI,IAAE,IAAI,EAAE,kEAAM,IAAI,CAC7C,CACN,CAAC;QACF,OAAO,CACH,8BAAC,eAAM,IAAC,KAAK,EAAE,KAAK,uCAEX,CACZ,CAAC;IACN,CAAC;CACJ,CAAC;AAIE,sCAAa;AAGjB,kBAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const Btn: import("@stitches/react/types/styled-component").StyledComponent<"button", {}, {}, import("@stitches/react/types/css-util").CSS<{}, {
|
|
3
|
+
colors: {
|
|
4
|
+
background: string;
|
|
5
|
+
mainColor: string;
|
|
6
|
+
mainColorAlt: string;
|
|
7
|
+
activeBg: string;
|
|
8
|
+
inactiveBg: string;
|
|
9
|
+
inactiveDarkBg: string;
|
|
10
|
+
toggleHandleBg: string;
|
|
11
|
+
toggleHandleBorder: string;
|
|
12
|
+
toggleBgDisabled: string;
|
|
13
|
+
toggleHandleBorderDisabled: string;
|
|
14
|
+
toggleHandleBgDisabled: string;
|
|
15
|
+
icon: string;
|
|
16
|
+
border: string;
|
|
17
|
+
buttonBorder: string;
|
|
18
|
+
headerBorder: string;
|
|
19
|
+
headerBg: string;
|
|
20
|
+
headerText: string;
|
|
21
|
+
text: string;
|
|
22
|
+
sub: string;
|
|
23
|
+
popText: string;
|
|
24
|
+
toolbarBorder: string;
|
|
25
|
+
toolbarBg: string;
|
|
26
|
+
modalBg: string;
|
|
27
|
+
modalButtonBg: string;
|
|
28
|
+
modalButtonBorder: string;
|
|
29
|
+
inputDisabledBg: string;
|
|
30
|
+
inputDisabledText: string;
|
|
31
|
+
choiceBg: string;
|
|
32
|
+
choiceText: string;
|
|
33
|
+
choiceActiveBg: string;
|
|
34
|
+
choiceActiveText: string;
|
|
35
|
+
choiceBorder: string;
|
|
36
|
+
selectorText: string;
|
|
37
|
+
selectorActive: string;
|
|
38
|
+
blue1: string;
|
|
39
|
+
blue2: string;
|
|
40
|
+
blue3: string;
|
|
41
|
+
orange1: string;
|
|
42
|
+
orange1Darker: string;
|
|
43
|
+
purple1: string;
|
|
44
|
+
green1: string;
|
|
45
|
+
green1Darker: string;
|
|
46
|
+
pink1: string;
|
|
47
|
+
red1: string;
|
|
48
|
+
yellow1: string;
|
|
49
|
+
yellow2: string;
|
|
50
|
+
yellow3: string;
|
|
51
|
+
pinky1: string;
|
|
52
|
+
pinky2: string;
|
|
53
|
+
pinky3: string;
|
|
54
|
+
grey1: string;
|
|
55
|
+
focusColor: string;
|
|
56
|
+
scrollbarsThumb: string;
|
|
57
|
+
scrollbarsBg: string;
|
|
58
|
+
tableStripedBg: string;
|
|
59
|
+
};
|
|
60
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
61
|
+
mx: (value: string | number) => {
|
|
62
|
+
marginLeft: string | number;
|
|
63
|
+
marginRight: string | number;
|
|
64
|
+
};
|
|
65
|
+
my: (value: string | number) => {
|
|
66
|
+
marginTop: string | number;
|
|
67
|
+
marginBottom: string | number;
|
|
68
|
+
};
|
|
69
|
+
px: (value: string | number) => {
|
|
70
|
+
paddingLeft: string | number;
|
|
71
|
+
paddingRight: string | number;
|
|
72
|
+
};
|
|
73
|
+
py: (value: string | number) => {
|
|
74
|
+
paddingTop: string | number;
|
|
75
|
+
paddingBottom: string | number;
|
|
76
|
+
};
|
|
77
|
+
size: (value: string | number) => {
|
|
78
|
+
width: string | number;
|
|
79
|
+
height: string | number;
|
|
80
|
+
};
|
|
81
|
+
}>>;
|
|
82
|
+
declare const A: import("@stitches/react/types/styled-component").StyledComponent<"a", {}, {}, import("@stitches/react/types/css-util").CSS<{}, {
|
|
83
|
+
colors: {
|
|
84
|
+
background: string;
|
|
85
|
+
mainColor: string;
|
|
86
|
+
mainColorAlt: string;
|
|
87
|
+
activeBg: string;
|
|
88
|
+
inactiveBg: string;
|
|
89
|
+
inactiveDarkBg: string;
|
|
90
|
+
toggleHandleBg: string;
|
|
91
|
+
toggleHandleBorder: string;
|
|
92
|
+
toggleBgDisabled: string;
|
|
93
|
+
toggleHandleBorderDisabled: string;
|
|
94
|
+
toggleHandleBgDisabled: string;
|
|
95
|
+
icon: string;
|
|
96
|
+
border: string;
|
|
97
|
+
buttonBorder: string;
|
|
98
|
+
headerBorder: string;
|
|
99
|
+
headerBg: string;
|
|
100
|
+
headerText: string;
|
|
101
|
+
text: string;
|
|
102
|
+
sub: string;
|
|
103
|
+
popText: string;
|
|
104
|
+
toolbarBorder: string;
|
|
105
|
+
toolbarBg: string;
|
|
106
|
+
modalBg: string;
|
|
107
|
+
modalButtonBg: string;
|
|
108
|
+
modalButtonBorder: string;
|
|
109
|
+
inputDisabledBg: string;
|
|
110
|
+
inputDisabledText: string;
|
|
111
|
+
choiceBg: string;
|
|
112
|
+
choiceText: string;
|
|
113
|
+
choiceActiveBg: string;
|
|
114
|
+
choiceActiveText: string;
|
|
115
|
+
choiceBorder: string;
|
|
116
|
+
selectorText: string;
|
|
117
|
+
selectorActive: string;
|
|
118
|
+
blue1: string;
|
|
119
|
+
blue2: string;
|
|
120
|
+
blue3: string;
|
|
121
|
+
orange1: string;
|
|
122
|
+
orange1Darker: string;
|
|
123
|
+
purple1: string;
|
|
124
|
+
green1: string;
|
|
125
|
+
green1Darker: string;
|
|
126
|
+
pink1: string;
|
|
127
|
+
red1: string;
|
|
128
|
+
yellow1: string;
|
|
129
|
+
yellow2: string;
|
|
130
|
+
yellow3: string;
|
|
131
|
+
pinky1: string;
|
|
132
|
+
pinky2: string;
|
|
133
|
+
pinky3: string;
|
|
134
|
+
grey1: string;
|
|
135
|
+
focusColor: string;
|
|
136
|
+
scrollbarsThumb: string;
|
|
137
|
+
scrollbarsBg: string;
|
|
138
|
+
tableStripedBg: string;
|
|
139
|
+
};
|
|
140
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
141
|
+
mx: (value: string | number) => {
|
|
142
|
+
marginLeft: string | number;
|
|
143
|
+
marginRight: string | number;
|
|
144
|
+
};
|
|
145
|
+
my: (value: string | number) => {
|
|
146
|
+
marginTop: string | number;
|
|
147
|
+
marginBottom: string | number;
|
|
148
|
+
};
|
|
149
|
+
px: (value: string | number) => {
|
|
150
|
+
paddingLeft: string | number;
|
|
151
|
+
paddingRight: string | number;
|
|
152
|
+
};
|
|
153
|
+
py: (value: string | number) => {
|
|
154
|
+
paddingTop: string | number;
|
|
155
|
+
paddingBottom: string | number;
|
|
156
|
+
};
|
|
157
|
+
size: (value: string | number) => {
|
|
158
|
+
width: string | number;
|
|
159
|
+
height: string | number;
|
|
160
|
+
};
|
|
161
|
+
}>>;
|
|
162
|
+
declare const StyledIcon: import("@stitches/react/types/styled-component").StyledComponent<import("react").FC<import("../../icons/Icon").IconProps>, {}, {}, import("@stitches/react/types/css-util").CSS<{}, {
|
|
163
|
+
colors: {
|
|
164
|
+
background: string;
|
|
165
|
+
mainColor: string;
|
|
166
|
+
mainColorAlt: string;
|
|
167
|
+
activeBg: string;
|
|
168
|
+
inactiveBg: string;
|
|
169
|
+
inactiveDarkBg: string;
|
|
170
|
+
toggleHandleBg: string;
|
|
171
|
+
toggleHandleBorder: string;
|
|
172
|
+
toggleBgDisabled: string;
|
|
173
|
+
toggleHandleBorderDisabled: string;
|
|
174
|
+
toggleHandleBgDisabled: string;
|
|
175
|
+
icon: string;
|
|
176
|
+
border: string;
|
|
177
|
+
buttonBorder: string;
|
|
178
|
+
headerBorder: string;
|
|
179
|
+
headerBg: string;
|
|
180
|
+
headerText: string;
|
|
181
|
+
text: string;
|
|
182
|
+
sub: string;
|
|
183
|
+
popText: string;
|
|
184
|
+
toolbarBorder: string;
|
|
185
|
+
toolbarBg: string;
|
|
186
|
+
modalBg: string;
|
|
187
|
+
modalButtonBg: string;
|
|
188
|
+
modalButtonBorder: string;
|
|
189
|
+
inputDisabledBg: string;
|
|
190
|
+
inputDisabledText: string;
|
|
191
|
+
choiceBg: string;
|
|
192
|
+
choiceText: string;
|
|
193
|
+
choiceActiveBg: string;
|
|
194
|
+
choiceActiveText: string;
|
|
195
|
+
choiceBorder: string;
|
|
196
|
+
selectorText: string;
|
|
197
|
+
selectorActive: string;
|
|
198
|
+
blue1: string;
|
|
199
|
+
blue2: string;
|
|
200
|
+
blue3: string;
|
|
201
|
+
orange1: string;
|
|
202
|
+
orange1Darker: string;
|
|
203
|
+
purple1: string;
|
|
204
|
+
green1: string;
|
|
205
|
+
green1Darker: string;
|
|
206
|
+
pink1: string;
|
|
207
|
+
red1: string;
|
|
208
|
+
yellow1: string;
|
|
209
|
+
yellow2: string;
|
|
210
|
+
yellow3: string;
|
|
211
|
+
pinky1: string;
|
|
212
|
+
pinky2: string;
|
|
213
|
+
pinky3: string;
|
|
214
|
+
grey1: string;
|
|
215
|
+
focusColor: string;
|
|
216
|
+
scrollbarsThumb: string;
|
|
217
|
+
scrollbarsBg: string;
|
|
218
|
+
tableStripedBg: string;
|
|
219
|
+
};
|
|
220
|
+
}, import("@stitches/react/types/config").DefaultThemeMap, {
|
|
221
|
+
mx: (value: string | number) => {
|
|
222
|
+
marginLeft: string | number;
|
|
223
|
+
marginRight: string | number;
|
|
224
|
+
};
|
|
225
|
+
my: (value: string | number) => {
|
|
226
|
+
marginTop: string | number;
|
|
227
|
+
marginBottom: string | number;
|
|
228
|
+
};
|
|
229
|
+
px: (value: string | number) => {
|
|
230
|
+
paddingLeft: string | number;
|
|
231
|
+
paddingRight: string | number;
|
|
232
|
+
};
|
|
233
|
+
py: (value: string | number) => {
|
|
234
|
+
paddingTop: string | number;
|
|
235
|
+
paddingBottom: string | number;
|
|
236
|
+
};
|
|
237
|
+
size: (value: string | number) => {
|
|
238
|
+
width: string | number;
|
|
239
|
+
height: string | number;
|
|
240
|
+
};
|
|
241
|
+
}>>;
|
|
242
|
+
export { Btn, A, StyledIcon, };
|
|
243
|
+
//# sourceMappingURL=HeaderIconAction.styled.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderIconAction.styled.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.styled.ts"],"names":[],"mappings":";AAyBA,QAAA,MAAM,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAAiC,CAAC;AAC3C,QAAA,MAAM,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAA4B,CAAC;AAEpC,QAAA,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAKd,CAAC;AAEH,OAAO,EACH,GAAG,EACH,CAAC,EACD,UAAU,GACb,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.StyledIcon = exports.A = exports.Btn = void 0;
|
|
4
|
+
const theme_1 = require("../../../theme");
|
|
5
|
+
const Icon_1 = require("../../icons/Icon");
|
|
6
|
+
const sharedStyles = {
|
|
7
|
+
"blockSize": "100%",
|
|
8
|
+
"aspectRatio": "1",
|
|
9
|
+
"background": "none",
|
|
10
|
+
"borderRadius": "666px",
|
|
11
|
+
"display": "inline-flex",
|
|
12
|
+
"alignItems": "center",
|
|
13
|
+
"justifyContent": "center",
|
|
14
|
+
"border": "calc(2px / var(--ratio-border)) solid transparent",
|
|
15
|
+
"color": "currentColor",
|
|
16
|
+
"&:hover": {
|
|
17
|
+
background: "#00000022",
|
|
18
|
+
},
|
|
19
|
+
"&:active": {
|
|
20
|
+
background: "#00000011",
|
|
21
|
+
color: "currentColor",
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
const Btn = (0, theme_1.styled)("button", sharedStyles);
|
|
25
|
+
exports.Btn = Btn;
|
|
26
|
+
const A = (0, theme_1.styled)("a", sharedStyles);
|
|
27
|
+
exports.A = A;
|
|
28
|
+
const StyledIcon = (0, theme_1.styled)(Icon_1.Icon, {
|
|
29
|
+
width: "16px",
|
|
30
|
+
height: "16px",
|
|
31
|
+
display: "block",
|
|
32
|
+
fill: "currentColor",
|
|
33
|
+
});
|
|
34
|
+
exports.StyledIcon = StyledIcon;
|
|
35
|
+
//# sourceMappingURL=HeaderIconAction.styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HeaderIconAction.styled.js","sourceRoot":"","sources":["../../../../src/components/layout/header/HeaderIconAction.styled.ts"],"names":[],"mappings":";;;AAEA,0CAAwC;AACxC,2CAAwC;AAExC,MAAM,YAAY,GAAa;IAC3B,WAAW,EAAE,MAAM;IACnB,aAAa,EAAE,GAAG;IAClB,YAAY,EAAE,MAAM;IACpB,cAAc,EAAE,OAAO;IACvB,SAAS,EAAE,aAAa;IACxB,YAAY,EAAE,QAAQ;IACtB,gBAAgB,EAAE,QAAQ;IAC1B,QAAQ,EAAE,mDAAmD;IAC7D,OAAO,EAAE,cAAc;IAEvB,SAAS,EAAE;QACP,UAAU,EAAE,WAAW;KAC1B;IACD,UAAU,EAAE;QACR,UAAU,EAAE,WAAW;QACvB,KAAK,EAAE,cAAc;KACxB;CACJ,CAAC;AAEF,MAAM,GAAG,GAAG,IAAA,cAAM,EAAC,QAAQ,EAAE,YAAY,CAAC,CAAC;AAWvC,kBAAG;AAVP,MAAM,CAAC,GAAG,IAAA,cAAM,EAAC,GAAG,EAAE,YAAY,CAAC,CAAC;AAWhC,cAAC;AATL,MAAM,UAAU,GAAG,IAAA,cAAM,EAAC,WAAI,EAAE;IAC5B,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,OAAO,EAAE,OAAO;IAChB,IAAI,EAAE,cAAc;CACvB,CAAC,CAAC;AAKC,gCAAU"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
interface
|
|
2
|
+
interface ContentComponent {
|
|
3
3
|
Content: React.FC<ContentProps>;
|
|
4
4
|
}
|
|
5
5
|
interface ContentProps {
|
|
@@ -11,6 +11,6 @@ interface Props {
|
|
|
11
11
|
className?: string;
|
|
12
12
|
children: React.ReactNode;
|
|
13
13
|
}
|
|
14
|
-
declare const StickyHeader: React.FC<Props> &
|
|
14
|
+
declare const StickyHeader: React.FC<Props> & ContentComponent;
|
|
15
15
|
export { StickyHeader };
|
|
16
16
|
//# sourceMappingURL=StickyHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickyHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/header/StickyHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"StickyHeader.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/header/StickyHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAO1B,UAAU,gBAAgB;IAEtB,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAAC,CAAC;CACnC;AAED,UAAU,YAAY;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,UAAU,KAAK;IACX,QAAQ,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC/C,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC7B;AAED,QAAA,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,CAAC,GAAG,gBA8BrC,CAAC;AAMF,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -1,17 +1,27 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
2
13
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
14
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
15
|
};
|
|
5
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
17
|
exports.StickyHeader = void 0;
|
|
7
18
|
const react_1 = __importDefault(require("react"));
|
|
8
|
-
const classnames_1 = __importDefault(require("classnames"));
|
|
9
19
|
const Header_1 = require("./Header");
|
|
10
|
-
const
|
|
20
|
+
const StickyHeader_styled_1 = require("./StickyHeader.styled");
|
|
11
21
|
const err = new TypeError("StickyHeader needs two children - Header and StickyHeader.Content");
|
|
12
22
|
const StickyHeader = (props) => {
|
|
13
|
-
const position = props
|
|
14
|
-
const children = react_1.default.Children.toArray(
|
|
23
|
+
const { children: _children, position = "top" } = props, rest = __rest(props, ["children", "position"]);
|
|
24
|
+
const children = react_1.default.Children.toArray(_children);
|
|
15
25
|
if (children.length !== 2) {
|
|
16
26
|
throw err;
|
|
17
27
|
}
|
|
@@ -21,11 +31,10 @@ const StickyHeader = (props) => {
|
|
|
21
31
|
}
|
|
22
32
|
header = header;
|
|
23
33
|
content = content;
|
|
24
|
-
const
|
|
25
|
-
|
|
26
|
-
return (react_1.default.createElement("div", { className: cls },
|
|
34
|
+
const contentCls = content.props.className;
|
|
35
|
+
return (react_1.default.createElement(StickyHeader_styled_1.StyledStickyHeader, Object.assign({}, rest, { position: position }),
|
|
27
36
|
react_1.default.cloneElement(header, { position }),
|
|
28
|
-
react_1.default.createElement(
|
|
37
|
+
react_1.default.createElement(StickyHeader_styled_1.Content, { className: contentCls, position: position }, content)));
|
|
29
38
|
};
|
|
30
39
|
exports.StickyHeader = StickyHeader;
|
|
31
40
|
StickyHeader.Content = ({ children }) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StickyHeader.js","sourceRoot":"","sources":["../../../../src/components/layout/header/StickyHeader.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StickyHeader.js","sourceRoot":"","sources":["../../../../src/components/layout/header/StickyHeader.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,kDAA0B;AAE1B,qCAAkC;AAClC,+DAAoE;AAEpE,MAAM,GAAG,GAAG,IAAI,SAAS,CAAC,mEAAmE,CAAC,CAAC;AAkB/F,MAAM,YAAY,GAAuC,CAAC,KAAK,EAAE,EAAE;IAC/D,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,GAAG,KAAK,KAAc,KAAK,EAAd,IAAI,UAAK,KAAK,EAA1D,wBAAkD,CAAQ,CAAC;IAEjE,MAAM,QAAQ,GAAG,eAAK,CAAC,QAAQ,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IAGnD,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,MAAM,GAAG,CAAC;IACd,CAAC;IAED,IAAI,MAAM,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,eAAM,CAAC,EACtF,OAAO,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,MAAM,IAAI,CAAC,IAAI,CAAC,CAAC,IAAI,KAAK,YAAY,CAAC,OAAO,CAAC,CAAC;IAE1G,IAAI,CAAC,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;QACtB,MAAM,GAAG,CAAC;IACd,CAAC;IAED,MAAM,GAAG,MAAe,CAAC;IACzB,OAAO,GAAG,OAAgB,CAAC;IAE3B,MAAM,UAAU,GAAI,OAAmC,CAAC,KAAK,CAAC,SAAS,CAAC;IAExE,OAAO,CACH,8BAAC,wCAAkB,oBAAK,IAAI,IAAE,QAAQ,EAAE,QAAQ;QAC3C,eAAK,CAAC,YAAY,CAAC,MAAM,EAAE,EAAE,QAAQ,EAAE,CAAC;QACzC,8BAAC,6BAAO,IAAC,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,QAAQ,IAC7C,OAAO,CACF,CACO,CACxB,CAAC;AACN,CAAC,CAAC;AAMO,oCAAY;AAJrB,YAAY,CAAC,OAAO,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,EAAE;IACpC,OAAO,8DAAG,QAAQ,CAAI,CAAC;AAC3B,CAAC,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { StoryObj, Meta } from "@storybook/react";
|
|
2
|
+
import { StickyHeader } from "./StickyHeader";
|
|
3
|
+
declare const meta: Meta;
|
|
4
|
+
type Story = StoryObj<typeof StickyHeader>;
|
|
5
|
+
declare const Primary: Story;
|
|
6
|
+
export { Primary, };
|
|
7
|
+
export default meta;
|
|
8
|
+
//# sourceMappingURL=StickyHeader.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickyHeader.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/header/StickyHeader.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAG9C,QAAA,MAAM,IAAI,EAAE,IAIX,CAAC;AAEF,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,YAAY,CAAC,CAAC;AAE3C,QAAA,MAAM,OAAO,EAAE,KAYd,CAAC;AAEF,OAAO,EACH,OAAO,GACV,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.Primary = void 0;
|
|
7
|
+
const react_1 = __importDefault(require("react"));
|
|
8
|
+
const StickyHeader_1 = require("./StickyHeader");
|
|
9
|
+
const Header_1 = require("./Header");
|
|
10
|
+
const meta = {
|
|
11
|
+
title: "Components/Layout/Header/StickyHeader",
|
|
12
|
+
component: StickyHeader_1.StickyHeader,
|
|
13
|
+
tags: ["autodocs", "layout"],
|
|
14
|
+
};
|
|
15
|
+
const Primary = {
|
|
16
|
+
render: (args) => {
|
|
17
|
+
const longContent = new Array(1000).fill(null).map((_, key) => react_1.default.createElement("div", { key: key }, "content"));
|
|
18
|
+
return (react_1.default.createElement(StickyHeader_1.StickyHeader, Object.assign({}, args),
|
|
19
|
+
react_1.default.createElement(Header_1.Header, null,
|
|
20
|
+
"x",
|
|
21
|
+
react_1.default.createElement("br", null),
|
|
22
|
+
"x",
|
|
23
|
+
react_1.default.createElement("br", null),
|
|
24
|
+
"x"),
|
|
25
|
+
react_1.default.createElement(StickyHeader_1.StickyHeader.Content, null, longContent)));
|
|
26
|
+
},
|
|
27
|
+
};
|
|
28
|
+
exports.Primary = Primary;
|
|
29
|
+
exports.default = meta;
|
|
30
|
+
//# sourceMappingURL=StickyHeader.stories.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StickyHeader.stories.js","sourceRoot":"","sources":["../../../../src/components/layout/header/StickyHeader.stories.tsx"],"names":[],"mappings":";;;;;;AAAA,kDAA0B;AAI1B,iDAA8C;AAC9C,qCAAkC;AAElC,MAAM,IAAI,GAAS;IACf,KAAK,EAAE,uCAAuC;IAC9C,SAAS,EAAE,2BAAY;IACvB,IAAI,EAAE,CAAC,UAAU,EAAE,QAAQ,CAAC;CAC/B,CAAC;AAIF,MAAM,OAAO,GAAU;IACnB,MAAM,EAAE,CAAC,IAAI,EAAE,EAAE;QAEb,MAAM,WAAW,GAAG,IAAI,KAAK,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,EAAE,CAAC,uCAAK,GAAG,EAAE,GAAG,cAAe,CAAC,CAAC;QAE7F,OAAO,CACH,8BAAC,2BAAY,oBAAK,IAAI;YAClB,8BAAC,eAAM;;gBAAE,yCAAM;;gBAAC,yCAAM;oBAAU;YAChC,8BAAC,2BAAY,CAAC,OAAO,QAAE,WAAW,CAAwB,CAC/C,CAClB,CAAC;IACN,CAAC;CACJ,CAAC;AAGE,0BAAO;AAGX,kBAAe,IAAI,CAAC"}
|