@appquality/unguess-design-system 2.12.10 → 2.12.11
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/CHANGELOG.md +14 -0
- package/build/index.js +29 -19
- package/build/stories/forms/input-toggle/_types.d.ts +2 -1
- package/build/stories/navigation/page-header/index.d.ts +4 -0
- package/build/stories/navigation/page-header/index.stories.d.ts +5 -0
- package/build/stories/navigation/page-header/styled/main.d.ts +4 -0
- package/build/stories/theme/index.d.ts +9 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# v2.12.11 (Wed Sep 21 2022)
|
|
2
|
+
|
|
3
|
+
#### ⚠️ Pushed to `master`
|
|
4
|
+
|
|
5
|
+
- Merge branch 'master' of github.com:AppQuality/unguess-design-system ([@cannarocks](https://github.com/cannarocks))
|
|
6
|
+
- feat(page-header): allow complex child on main sub-component ([@cannarocks](https://github.com/cannarocks))
|
|
7
|
+
- feat(inputToggle): keep ratio between textSize and lineHeight costant ([@cannarocks](https://github.com/cannarocks))
|
|
8
|
+
|
|
9
|
+
#### Authors: 1
|
|
10
|
+
|
|
11
|
+
- Luca Cannarozzo ([@cannarocks](https://github.com/cannarocks))
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
1
15
|
# v2.12.10 (Tue Sep 20 2022)
|
|
2
16
|
|
|
3
17
|
#### ⚠️ Pushed to `master`
|
package/build/index.js
CHANGED
|
@@ -265,7 +265,8 @@ var components = __assign(__assign({}, reactTheming.DEFAULT_THEME.components), {
|
|
|
265
265
|
thumbSize: "60px",
|
|
266
266
|
} });
|
|
267
267
|
|
|
268
|
-
var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { breakpoints: __assign(__assign({}, reactTheming.DEFAULT_THEME.breakpoints), { xxl: "1440px" }), colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: palette.blue[600], warningHue: palette.yellow[600], successHue: palette.teal["M600"], dangerHue: palette.red[600], accentHue: palette.water[600] }), palette: palette, fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), fontWeights: __assign(__assign({}, reactTheming.DEFAULT_THEME.fontWeights), { semibold: 500 }), gradients: gradients, borderRadii: __assign(__assign({}, reactTheming.DEFAULT_THEME.borderRadii), { lg: "8px", xl: "16px", xxl: "32px" }),
|
|
268
|
+
var theme = __assign(__assign({}, reactTheming.DEFAULT_THEME), { breakpoints: __assign(__assign({}, reactTheming.DEFAULT_THEME.breakpoints), { xxl: "1440px" }), colors: __assign(__assign({}, reactTheming.DEFAULT_THEME.colors), { primaryHue: palette.blue[600], warningHue: palette.yellow[600], successHue: palette.teal["M600"], dangerHue: palette.red[600], accentHue: palette.water[600] }), palette: palette, fonts: __assign(__assign({}, reactTheming.DEFAULT_THEME.fonts), { system: '"Poppins",sans-serif,Helvetica,Arial,sans-serif' }), fontWeights: __assign(__assign({}, reactTheming.DEFAULT_THEME.fontWeights), { semibold: 500 }), gradients: gradients, borderRadii: __assign(__assign({}, reactTheming.DEFAULT_THEME.borderRadii), { lg: "8px", xl: "16px", xxl: "32px" }), lineHeights: __assign(__assign({}, reactTheming.DEFAULT_THEME.lineHeights), { xs: '16px' // same as sm
|
|
269
|
+
}), components: components, shadows: __assign(__assign({}, reactTheming.DEFAULT_THEME.shadows), { boxShadow: boxShadow }) });
|
|
269
270
|
|
|
270
271
|
var GlobalStyle = styled.createGlobalStyle(templateObject_1$1i || (templateObject_1$1i = __makeTemplateObject(["\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n\n html {\n overflow-y: auto;\n }\n\n body {\n font-family: ", ";\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"], ["\n ::-webkit-scrollbar-track:hover {\n border-left: solid 1px ", ";\n border-right: solid 1px ", ";\n }\n\n ::-webkit-scrollbar {\n width: 10px;\n }\n\n ::-webkit-scrollbar-track {\n border: solid 2px transparent;\n }\n\n ::-webkit-scrollbar-thumb {\n box-shadow: inset 0 0 10px 10px ", ";\n border: solid 2px transparent;\n border-radius: 25px;\n }\n\n /* This stuff is for Firefox */\n * {\n scrollbar-color: ", " #FFFFFF;\n scrollbar-width: thin;\n }\n\n html {\n overflow-y: auto;\n }\n\n body {\n font-family: ", ";\n margin: 0;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n \n svg {\n max-height: 100%;\n }\n\n"])), theme.palette.grey["200"], theme.palette.grey["200"], theme.palette.blue["200"], theme.palette.blue["200"], theme.fonts.system);
|
|
271
272
|
var templateObject_1$1i;
|
|
@@ -713,7 +714,7 @@ var Label$2 = styled__default["default"](SM)(templateObject_1$1a || (templateObj
|
|
|
713
714
|
var theme = _a.theme;
|
|
714
715
|
return theme.palette.grey[500];
|
|
715
716
|
});
|
|
716
|
-
var Title$
|
|
717
|
+
var Title$2 = styled__default["default"](LG)(templateObject_2$v || (templateObject_2$v = __makeTemplateObject(["\n color: ", ";\n font-weight: ", ";\n margin-top: ", ";\n"], ["\n color: ", ";\n font-weight: ", ";\n margin-top: ", ";\n"])), function (_a) {
|
|
717
718
|
var theme = _a.theme;
|
|
718
719
|
return theme.colors.primaryHue;
|
|
719
720
|
}, function (_a) {
|
|
@@ -723,7 +724,7 @@ var Title$3 = styled__default["default"](LG)(templateObject_2$v || (templateObje
|
|
|
723
724
|
var theme = _a.theme;
|
|
724
725
|
return theme.space.xxs;
|
|
725
726
|
});
|
|
726
|
-
var Description$
|
|
727
|
+
var Description$2 = styled__default["default"](MD)(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n color: ", ";\n margin-top: ", ";\n"], ["\n color: ", ";\n margin-top: ", ";\n"])), function (_a) {
|
|
727
728
|
var theme = _a.theme;
|
|
728
729
|
return theme.palette.grey[700];
|
|
729
730
|
}, function (_a) {
|
|
@@ -736,8 +737,8 @@ var Container$2 = styled__default["default"].div(templateObject_4$f || (template
|
|
|
736
737
|
});
|
|
737
738
|
var CardHeader = function (props) { return jsxRuntime.jsx(Container$2, __assign({}, props)); };
|
|
738
739
|
CardHeader.Label = Label$2;
|
|
739
|
-
CardHeader.Title = Title$
|
|
740
|
-
CardHeader.Text = Description$
|
|
740
|
+
CardHeader.Title = Title$2;
|
|
741
|
+
CardHeader.Text = Description$2;
|
|
741
742
|
var templateObject_1$1a, templateObject_2$v, templateObject_3$k, templateObject_4$f;
|
|
742
743
|
|
|
743
744
|
var Divider = styled__default["default"].div(templateObject_1$19 || (templateObject_1$19 = __makeTemplateObject(["\n width: 100%;\n height: 1px;\n margin-top: ", "px;\n margin-bottom: ", ";\n background-color: ", ";\n"], ["\n width: 100%;\n height: 1px;\n margin-top: ", "px;\n margin-bottom: ", ";\n background-color: ", ";\n"])), function (_a) {
|
|
@@ -1067,7 +1068,7 @@ var Label$1 = styled__default["default"](MD)(templateObject_4$d || (templateObje
|
|
|
1067
1068
|
var theme = _a.theme;
|
|
1068
1069
|
return theme.palette.grey[800];
|
|
1069
1070
|
});
|
|
1070
|
-
var Description$
|
|
1071
|
+
var Description$1 = styled__default["default"](SM)(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\n color: ", ";\n"], ["\n color: ", ";\n"])), function (_a) {
|
|
1071
1072
|
var theme = _a.theme;
|
|
1072
1073
|
return theme.palette.grey[600];
|
|
1073
1074
|
});
|
|
@@ -1077,7 +1078,7 @@ var Image$1 = React.memo(function (_a) {
|
|
|
1077
1078
|
});
|
|
1078
1079
|
var ItemContent = function (props) {
|
|
1079
1080
|
var thumbSrc = props.thumbSrc, description = props.description, label = props.label;
|
|
1080
|
-
return (jsxRuntime.jsxs(Container, { children: [thumbSrc && (jsxRuntime.jsx(ThumbContainer, { children: jsxRuntime.jsx(Image$1, { src: thumbSrc }) })), jsxRuntime.jsxs(MetaContainer$1, { children: [label && jsxRuntime.jsx(Label$1, __assign({ isBold: true }, { children: label })), description && jsxRuntime.jsx(Description$
|
|
1081
|
+
return (jsxRuntime.jsxs(Container, { children: [thumbSrc && (jsxRuntime.jsx(ThumbContainer, { children: jsxRuntime.jsx(Image$1, { src: thumbSrc }) })), jsxRuntime.jsxs(MetaContainer$1, { children: [label && jsxRuntime.jsx(Label$1, __assign({ isBold: true }, { children: label })), description && jsxRuntime.jsx(Description$1, { children: description })] })] }));
|
|
1081
1082
|
};
|
|
1082
1083
|
var templateObject_1$_, templateObject_2$q, templateObject_3$g, templateObject_4$d, templateObject_5$5;
|
|
1083
1084
|
|
|
@@ -1336,7 +1337,7 @@ var Header$1 = styled__default["default"].div(templateObject_1$W || (templateObj
|
|
|
1336
1337
|
var theme = _a.theme;
|
|
1337
1338
|
return theme.palette.grey[300];
|
|
1338
1339
|
});
|
|
1339
|
-
var Title$
|
|
1340
|
+
var Title$1 = styled__default["default"](MD)(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n ", "\n"], ["\n ", "\n"])), function (_a) {
|
|
1340
1341
|
var validation = _a.validation, theme = _a.theme;
|
|
1341
1342
|
if (validation === "success") {
|
|
1342
1343
|
return "color: ".concat(theme.colors.successHue, ";");
|
|
@@ -1353,7 +1354,7 @@ var Title$2 = styled__default["default"](MD)(templateObject_2$o || (templateObje
|
|
|
1353
1354
|
});
|
|
1354
1355
|
var EditorHeader = function (props) {
|
|
1355
1356
|
var title = props.title, validation = props.validation;
|
|
1356
|
-
return (jsxRuntime.jsx(Header$1, { children: jsxRuntime.jsx(Title$
|
|
1357
|
+
return (jsxRuntime.jsx(Header$1, { children: jsxRuntime.jsx(Title$1, __assign({ isBold: true, validation: validation }, { children: title || "Write" })) }));
|
|
1357
1358
|
};
|
|
1358
1359
|
var templateObject_1$W, templateObject_2$o;
|
|
1359
1360
|
|
|
@@ -1583,16 +1584,21 @@ var InputToggle = function (_a) {
|
|
|
1583
1584
|
}, []);
|
|
1584
1585
|
return (jsxRuntime.jsx(ToggleContext.Provider, __assign({ value: context }, { children: jsxRuntime.jsx(Wrapper, __assign({ ref: container, onClick: handleClick, onBlur: function () { return setIsEditing(false); } }, props)) })));
|
|
1585
1586
|
};
|
|
1587
|
+
var getInputSize = function (textSize) { return ({
|
|
1588
|
+
fontSize: textSize in theme.fontSizes ? theme.fontSizes[textSize] : "22px",
|
|
1589
|
+
lineHeight: textSize in theme.lineHeights ? theme.lineHeights[textSize] : "28px",
|
|
1590
|
+
}); };
|
|
1586
1591
|
var InputItem = function (props) {
|
|
1587
|
-
var _a = props.placeholder, placeholder = _a === void 0 ? "Insert a value" : _a, value = props.value, style = props.style, _b = props.textSize, textSize = _b === void 0 ?
|
|
1592
|
+
var _a = props.placeholder, placeholder = _a === void 0 ? "Insert a value" : _a, value = props.value, style = props.style, _b = props.textSize, textSize = _b === void 0 ? "xl" : _b;
|
|
1588
1593
|
var _c = React.useState(), input = _c[0], setInput = _c[1];
|
|
1589
1594
|
var isEditing = React.useContext(ToggleContext).isEditing;
|
|
1595
|
+
var size = getInputSize(textSize);
|
|
1590
1596
|
React.useEffect(function () {
|
|
1591
1597
|
if (isEditing && input) {
|
|
1592
1598
|
input.focus();
|
|
1593
1599
|
}
|
|
1594
1600
|
}, [isEditing, input]);
|
|
1595
|
-
return isEditing ? (jsxRuntime.jsx(StyledInput, __assign({ ref: setInput }, props, { style: __assign({
|
|
1601
|
+
return isEditing ? (jsxRuntime.jsx(StyledInput, __assign({ ref: setInput }, props, { style: __assign(__assign({ fontWeight: 500 }, size), style) }))) : (jsxRuntime.jsxs(StyledText$1, __assign({ isBold: true, style: __assign(__assign({ fontWeight: 500 }, size), style) }, { children: [!value ? placeholder : value, " ", jsxRuntime.jsx(SvgNotesStroke, {})] })));
|
|
1596
1602
|
};
|
|
1597
1603
|
InputToggle.Item = InputItem;
|
|
1598
1604
|
InputToggle.Label = StyledLabel;
|
|
@@ -2382,7 +2388,7 @@ var templateObject_1$n;
|
|
|
2382
2388
|
/**
|
|
2383
2389
|
* Title is a basic component used to display a title. Often used in card headers.
|
|
2384
2390
|
*/
|
|
2385
|
-
var Title
|
|
2391
|
+
var Title = function (props) { return jsxRuntime.jsx(reactNotifications.Title, __assign({}, props)); };
|
|
2386
2392
|
|
|
2387
2393
|
var StyledCard = styled__default["default"](ContainerCard)(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n @media screen and (max-width: ", ") {\n border: 0;\n }\n"], ["\n @media screen and (max-width: ", ") {\n border: 0;\n }\n"])), theme.breakpoints.sm);
|
|
2388
2394
|
/**
|
|
@@ -2394,7 +2400,7 @@ var StyledCard = styled__default["default"](ContainerCard)(templateObject_1$m ||
|
|
|
2394
2400
|
var LoginForm = function (props) {
|
|
2395
2401
|
var width = useWindowSize().width;
|
|
2396
2402
|
var breakpointMd = parseInt(theme.breakpoints.md, 10);
|
|
2397
|
-
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(StyledCard, __assign({}, (width > breakpointMd && { isFloating: true }), props.card, { children: [jsxRuntime.jsx(Title
|
|
2403
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsxs(StyledCard, __assign({}, (width > breakpointMd && { isFloating: true }), props.card, { children: [jsxRuntime.jsx(Title, __assign({ style: {
|
|
2398
2404
|
textAlign: "center",
|
|
2399
2405
|
marginTop: theme.space.sm,
|
|
2400
2406
|
marginBottom: theme.space.lg,
|
|
@@ -2511,7 +2517,7 @@ var MetaContainer = styled__default["default"].div(templateObject_3$a || (templa
|
|
|
2511
2517
|
var theme = _a.theme;
|
|
2512
2518
|
return theme.breakpoints.sm;
|
|
2513
2519
|
});
|
|
2514
|
-
var
|
|
2520
|
+
var MainOverline = styled__default["default"](MD)(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\n color: ", ";\n margin-bottom: ", ";\n font-weight: ", ";\n line-height: ", ";\n"], ["\n color: ", ";\n margin-bottom: ", ";\n font-weight: ", ";\n line-height: ", ";\n"])), function (_a) {
|
|
2515
2521
|
var theme = _a.theme;
|
|
2516
2522
|
return theme.palette.grey[600];
|
|
2517
2523
|
}, function (_a) {
|
|
@@ -2524,7 +2530,7 @@ var Overline = styled__default["default"](MD)(templateObject_4$7 || (templateObj
|
|
|
2524
2530
|
var theme = _a.theme;
|
|
2525
2531
|
return theme.lineHeights.md;
|
|
2526
2532
|
});
|
|
2527
|
-
var
|
|
2533
|
+
var MainTitle = styled__default["default"].h1(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n width: 100%;\n"], ["\n color: ", ";\n font-size: ", ";\n font-weight: ", ";\n line-height: ", ";\n width: 100%;\n"])), function (_a) {
|
|
2528
2534
|
var theme = _a.theme;
|
|
2529
2535
|
return theme.colors.primaryHue;
|
|
2530
2536
|
}, function (_a) {
|
|
@@ -2537,7 +2543,7 @@ var Title = styled__default["default"].h1(templateObject_5$3 || (templateObject_
|
|
|
2537
2543
|
var theme = _a.theme;
|
|
2538
2544
|
return theme.lineHeights.xxxl;
|
|
2539
2545
|
});
|
|
2540
|
-
var
|
|
2546
|
+
var MainDescription = styled__default["default"](LG)(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n color: ", ";\n margin: ", " 0;\n line-height: ", ";\n"], ["\n color: ", ";\n margin: ", " 0;\n line-height: ", ";\n"])), function (_a) {
|
|
2541
2547
|
var theme = _a.theme;
|
|
2542
2548
|
return theme.palette.grey[600];
|
|
2543
2549
|
}, function (_a) {
|
|
@@ -2547,7 +2553,7 @@ var Description$1 = styled__default["default"](LG)(templateObject_6$1 || (templa
|
|
|
2547
2553
|
var theme = _a.theme;
|
|
2548
2554
|
return theme.lineHeights.lg;
|
|
2549
2555
|
});
|
|
2550
|
-
var
|
|
2556
|
+
var MainCounters = styled__default["default"].div(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-direction: row;\n flex-wrap: wrap;\n margin-top: ", ";\n\n > div {\n padding: 0;\n margin-right: ", ";\n }\n"], ["\n display: flex;\n align-items: center;\n justify-content: flex-start;\n flex-direction: row;\n flex-wrap: wrap;\n margin-top: ", ";\n\n > div {\n padding: 0;\n margin-right: ", ";\n }\n"])), function (_a) {
|
|
2551
2557
|
var theme = _a.theme;
|
|
2552
2558
|
return theme.space.md;
|
|
2553
2559
|
}, function (_a) {
|
|
@@ -2560,7 +2566,7 @@ var Image = styled__default["default"].img(templateObject_9 || (templateObject_9
|
|
|
2560
2566
|
return theme.components.pageHeader.imgMaxHeight;
|
|
2561
2567
|
});
|
|
2562
2568
|
var Main = function (props) {
|
|
2563
|
-
return (jsxRuntime.jsx(MainContainer, { children: jsxRuntime.jsxs(Row$1, { children: [jsxRuntime.jsx(StyledCol, __assign({ xs: 12, sm: props.metaImage ? 6 : 12 }, { children: jsxRuntime.
|
|
2569
|
+
return (jsxRuntime.jsx(MainContainer, { children: jsxRuntime.jsxs(Row$1, { children: [jsxRuntime.jsx(StyledCol, __assign({ xs: 12, sm: props.metaImage ? 6 : 12 }, { children: jsxRuntime.jsx(InformationContainer, { children: props.children }) })), props.metaImage && (jsxRuntime.jsx(StyledCol, __assign({ xs: 12, sm: props.metaImage ? 6 : 12 }, { children: jsxRuntime.jsx(MetaContainer, { children: jsxRuntime.jsx(Image, { src: props.metaImage, title: props.infoTitle, alt: props.infoTitle }) }) })))] }) }));
|
|
2564
2570
|
};
|
|
2565
2571
|
var templateObject_1$i, templateObject_2$c, templateObject_3$a, templateObject_4$7, templateObject_5$3, templateObject_6$1, templateObject_7, templateObject_8, templateObject_9;
|
|
2566
2572
|
|
|
@@ -2615,6 +2621,10 @@ var PageHeader = function (props) {
|
|
|
2615
2621
|
PageHeader.Breadcrumb = StyledBreadcrumb;
|
|
2616
2622
|
PageHeader.Main = Main;
|
|
2617
2623
|
PageHeader.Buttons = Buttons;
|
|
2624
|
+
PageHeader.Overline = MainOverline;
|
|
2625
|
+
PageHeader.Title = MainTitle;
|
|
2626
|
+
PageHeader.Description = MainDescription;
|
|
2627
|
+
PageHeader.Counters = MainCounters;
|
|
2618
2628
|
var templateObject_1$h, templateObject_2$b, templateObject_3$9, templateObject_4$6;
|
|
2619
2629
|
|
|
2620
2630
|
var _path$5;
|
|
@@ -3247,7 +3257,7 @@ exports.Tag = Tag;
|
|
|
3247
3257
|
exports.Textarea = Textarea;
|
|
3248
3258
|
exports.Tiles = Tiles;
|
|
3249
3259
|
exports.Timeline = Timeline;
|
|
3250
|
-
exports.Title = Title
|
|
3260
|
+
exports.Title = Title;
|
|
3251
3261
|
exports.ToastProvider = ToastProvider;
|
|
3252
3262
|
exports.Toggle = Toggle;
|
|
3253
3263
|
exports.TooltipModal = TooltipModal;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { IInputProps } from "@zendeskgarden/react-forms";
|
|
2
|
+
export declare type textSizes = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'xxl' | 'xxxl';
|
|
2
3
|
export interface InputToggleArgs extends IInputProps {
|
|
3
4
|
/** Removes borders and padding */
|
|
4
5
|
isBare?: boolean;
|
|
5
6
|
/** Applies validation state styling */
|
|
6
7
|
validation?: 'success' | 'warning' | 'error';
|
|
7
8
|
/** Sets input size */
|
|
8
|
-
textSize?:
|
|
9
|
+
textSize?: textSizes;
|
|
9
10
|
/** Sets the initial focus */
|
|
10
11
|
isFocused?: boolean;
|
|
11
12
|
}
|
|
@@ -13,5 +13,9 @@ declare const PageHeader: {
|
|
|
13
13
|
Breadcrumb: (props: BreadcrumbArgs) => JSX.Element;
|
|
14
14
|
Main: (props: import("./_types").PageHeaderMainProps) => JSX.Element;
|
|
15
15
|
Buttons: (props: PropsWithChildren<{}>) => JSX.Element;
|
|
16
|
+
Overline: import("styled-components").StyledComponent<(props: import("../../typography/typescale/_types").MDArgs) => JSX.Element, any, {}, never>;
|
|
17
|
+
Title: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
18
|
+
Description: import("styled-components").StyledComponent<(props: import("../../typography/typescale/_types").LGArgs) => JSX.Element, any, {}, never>;
|
|
19
|
+
Counters: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
20
|
};
|
|
17
21
|
export { PageHeader };
|
|
@@ -8,6 +8,7 @@ interface PageHeaderStoryProps {
|
|
|
8
8
|
pageHeaderMainArgs: PageHeaderMainProps;
|
|
9
9
|
}
|
|
10
10
|
export declare const Default: Story<PageHeaderStoryProps>;
|
|
11
|
+
export declare const Editable: Story<PageHeaderStoryProps>;
|
|
11
12
|
declare const _default: ComponentMeta<{
|
|
12
13
|
(props: import("./_types").PageHeaderProps): JSX.Element;
|
|
13
14
|
Breadcrumb: (props: import("../../breadcrumbs/_types").BreadcrumbArgs) => JSX.Element;
|
|
@@ -15,5 +16,9 @@ declare const _default: ComponentMeta<{
|
|
|
15
16
|
Buttons: (props: {
|
|
16
17
|
children?: React.ReactNode;
|
|
17
18
|
}) => JSX.Element;
|
|
19
|
+
Overline: import("styled-components").StyledComponent<(props: import("../../typography/typescale/_types").MDArgs) => JSX.Element, any, {}, never>;
|
|
20
|
+
Title: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
21
|
+
Description: import("styled-components").StyledComponent<(props: import("../../typography/typescale/_types").LGArgs) => JSX.Element, any, {}, never>;
|
|
22
|
+
Counters: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
18
23
|
}>;
|
|
19
24
|
export default _default;
|
|
@@ -1,2 +1,6 @@
|
|
|
1
1
|
import { PageHeaderMainProps } from "../_types";
|
|
2
|
+
export declare const MainOverline: import("styled-components").StyledComponent<(props: import("../../../typography/typescale/_types").MDArgs) => JSX.Element, any, {}, never>;
|
|
3
|
+
export declare const MainTitle: import("styled-components").StyledComponent<"h1", any, {}, never>;
|
|
4
|
+
export declare const MainDescription: import("styled-components").StyledComponent<(props: import("../../../typography/typescale/_types").LGArgs) => JSX.Element, any, {}, never>;
|
|
5
|
+
export declare const MainCounters: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
2
6
|
export declare const Main: (props: PageHeaderMainProps) => JSX.Element;
|
|
@@ -194,6 +194,15 @@ declare const theme: {
|
|
|
194
194
|
sm: string;
|
|
195
195
|
md: string;
|
|
196
196
|
};
|
|
197
|
+
lineHeights: {
|
|
198
|
+
xs: string;
|
|
199
|
+
sm: string;
|
|
200
|
+
md: string;
|
|
201
|
+
lg: string;
|
|
202
|
+
xl: string;
|
|
203
|
+
xxl: string;
|
|
204
|
+
xxxl: string;
|
|
205
|
+
};
|
|
197
206
|
components: {
|
|
198
207
|
chrome: any;
|
|
199
208
|
notification: any;
|
|
@@ -237,14 +246,6 @@ declare const theme: {
|
|
|
237
246
|
md: string;
|
|
238
247
|
lg: string;
|
|
239
248
|
};
|
|
240
|
-
lineHeights: {
|
|
241
|
-
sm: string;
|
|
242
|
-
md: string;
|
|
243
|
-
lg: string;
|
|
244
|
-
xl: string;
|
|
245
|
-
xxl: string;
|
|
246
|
-
xxxl: string;
|
|
247
|
-
};
|
|
248
249
|
shadowWidths: {
|
|
249
250
|
sm: string;
|
|
250
251
|
md: string;
|