@bolttech/atoms-section-header 0.1.5 → 0.1.6
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/{index.js → index.cjs} +22 -14
- package/package.json +3 -4
package/{index.js → index.cjs}
RENAMED
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
6
|
+
var styled = require('styled-components');
|
|
7
|
+
var frontendFoundations = require('@edirect/frontend-foundations');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
10
|
+
|
|
11
|
+
var styled__default = /*#__PURE__*/_interopDefaultLegacy(styled);
|
|
4
12
|
|
|
5
13
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
6
14
|
|
|
@@ -1083,7 +1091,7 @@ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign },
|
|
|
1083
1091
|
assign: assign
|
|
1084
1092
|
});
|
|
1085
1093
|
|
|
1086
|
-
const SectionHeaderContainer = /*#__PURE__*/
|
|
1094
|
+
const SectionHeaderContainer = /*#__PURE__*/styled__default["default"](frontendFoundations.Row).withConfig({
|
|
1087
1095
|
displayName: "atoms-section-headerstyle__SectionHeaderContainer",
|
|
1088
1096
|
componentId: "xtf6u-0"
|
|
1089
1097
|
})(["justify-content:space-between;flex-wrap:nowrap;box-sizing:border-box;column-gap:0;height:150px;background-color:", ";padding:", ";"], ({
|
|
@@ -1091,7 +1099,7 @@ const SectionHeaderContainer = /*#__PURE__*/styled(Row).withConfig({
|
|
|
1091
1099
|
}) => theme.components.sectionHeader.container.color.default, ({
|
|
1092
1100
|
theme
|
|
1093
1101
|
}) => `0 ${theme.components.sectionHeader.safeZone}`);
|
|
1094
|
-
const SectionHeaderLabel = /*#__PURE__*/
|
|
1102
|
+
const SectionHeaderLabel = /*#__PURE__*/styled__default["default"](frontendFoundations.Typography).withConfig({
|
|
1095
1103
|
displayName: "atoms-section-headerstyle__SectionHeaderLabel",
|
|
1096
1104
|
componentId: "xtf6u-1"
|
|
1097
1105
|
})(["flex:1 1 66%;margin:auto 0;margin-right:", ";color:", ";@media only screen and (max-width:413px){flex:1 1 auto;margin-right:", ";}"], ({
|
|
@@ -1101,15 +1109,15 @@ const SectionHeaderLabel = /*#__PURE__*/styled(Typography).withConfig({
|
|
|
1101
1109
|
}) => theme.components.sectionHeader.text.color.default, ({
|
|
1102
1110
|
theme
|
|
1103
1111
|
}) => `calc(${theme.components.sectionHeader.gap} + 15%)`);
|
|
1104
|
-
const Background = /*#__PURE__*/
|
|
1112
|
+
const Background = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
1105
1113
|
displayName: "atoms-section-headerstyle__Background",
|
|
1106
1114
|
componentId: "xtf6u-2"
|
|
1107
1115
|
})(["display:flex;align-items:flex-end;z-index:0;"]);
|
|
1108
|
-
const Icon = /*#__PURE__*/
|
|
1116
|
+
const Icon = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
1109
1117
|
displayName: "atoms-section-headerstyle__Icon",
|
|
1110
1118
|
componentId: "xtf6u-3"
|
|
1111
1119
|
})(["position:absolute;display:flex;bottom:0;z-index:1;transform:translate(-50%);"]);
|
|
1112
|
-
const IlustrationContainer = /*#__PURE__*/
|
|
1120
|
+
const IlustrationContainer = /*#__PURE__*/styled__default["default"].div.withConfig({
|
|
1113
1121
|
displayName: "atoms-section-headerstyle__IlustrationContainer",
|
|
1114
1122
|
componentId: "xtf6u-4"
|
|
1115
1123
|
})(["display:flex;position:relative;justify-content:flex-end;align-items:flex-end;@media only screen and (max-width:1431px){width:60%;height:100%;svg{max-width:100%;max-height:100%;height:100%;}}"]);
|
|
@@ -1120,24 +1128,24 @@ function SectionHeader({
|
|
|
1120
1128
|
icon,
|
|
1121
1129
|
background
|
|
1122
1130
|
}) {
|
|
1123
|
-
return jsxs(SectionHeaderContainer, Object.assign({
|
|
1131
|
+
return jsxRuntime.jsxs(SectionHeaderContainer, Object.assign({
|
|
1124
1132
|
fullWidth: true,
|
|
1125
1133
|
"data-testid": dataTestId
|
|
1126
1134
|
}, {
|
|
1127
|
-
children: [jsx(SectionHeaderLabel, Object.assign({
|
|
1135
|
+
children: [jsxRuntime.jsx(SectionHeaderLabel, Object.assign({
|
|
1128
1136
|
variant: "h1",
|
|
1129
1137
|
type: "headings",
|
|
1130
1138
|
"data-testid": `${dataTestId}-label`
|
|
1131
1139
|
}, {
|
|
1132
1140
|
children: title
|
|
1133
|
-
})), jsxs(IlustrationContainer, {
|
|
1134
|
-
children: [icon && jsx(Icon, {
|
|
1141
|
+
})), jsxRuntime.jsxs(IlustrationContainer, {
|
|
1142
|
+
children: [icon && jsxRuntime.jsx(Icon, {
|
|
1135
1143
|
children: icon
|
|
1136
|
-
}), background && jsx(Background, {
|
|
1144
|
+
}), background && jsxRuntime.jsx(Background, {
|
|
1137
1145
|
children: background
|
|
1138
1146
|
})]
|
|
1139
1147
|
})]
|
|
1140
1148
|
}));
|
|
1141
1149
|
}
|
|
1142
1150
|
|
|
1143
|
-
|
|
1151
|
+
exports.SectionHeader = SectionHeader;
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bolttech/atoms-section-header",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"type": "module",
|
|
3
|
+
"version": "0.1.6",
|
|
4
|
+
"main": "./index.cjs",
|
|
5
|
+
"type": "commonjs",
|
|
7
6
|
"types": "./src/index.d.ts",
|
|
8
7
|
"dependencies": {},
|
|
9
8
|
"peerDependencies": {
|