@websolutespa/bom-mixer-ui 1.9.2 → 1.9.4
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 +16 -0
- package/dist/cjs/index.js +21 -38
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/text/text.js +21 -40
- package/dist/esm/components/text/text.js.map +1 -1
- package/dist/esm/forms/form-tester/form-tester.js.map +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/types/components/text/text.d.ts +7 -0
- package/dist/types/components/text/text.d.ts.map +1 -1
- package/dist/types/forms/form-tester/form-tester.d.ts +11 -6
- package/dist/types/forms/form-tester/form-tester.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/text/text.tsx +22 -46
- package/src/forms/form-tester/form-tester.tsx +18 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# @websolutespa/bom-mixer-ui
|
|
2
2
|
|
|
3
|
+
## 1.9.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Added: Text.Html
|
|
8
|
+
- Updated dependencies
|
|
9
|
+
- Updated dependencies
|
|
10
|
+
- @websolutespa/bom-mixer-store@1.8.4
|
|
11
|
+
- @websolutespa/bom-core@1.8.11
|
|
12
|
+
|
|
13
|
+
## 1.9.3
|
|
14
|
+
|
|
15
|
+
### Patch Changes
|
|
16
|
+
|
|
17
|
+
- Fixing: FormTesterComponent
|
|
18
|
+
|
|
3
19
|
## 1.9.2
|
|
4
20
|
|
|
5
21
|
### Patch Changes
|
package/dist/cjs/index.js
CHANGED
|
@@ -4079,36 +4079,6 @@ function hasBackground(props) {
|
|
|
4079
4079
|
return hasChildOfType(props.children, Background);
|
|
4080
4080
|
}
|
|
4081
4081
|
|
|
4082
|
-
styled.css`
|
|
4083
|
-
h1, h2, h3, h4, h5, h6 {
|
|
4084
|
-
// color: var(--color-neutral-500);
|
|
4085
|
-
margin-bottom: 3rem;
|
|
4086
|
-
}
|
|
4087
|
-
h4 {
|
|
4088
|
-
font-size: 1.2em;
|
|
4089
|
-
}
|
|
4090
|
-
`;
|
|
4091
|
-
styled.css`
|
|
4092
|
-
a[href] {
|
|
4093
|
-
${CssDefault}
|
|
4094
|
-
${CssButtonNavInverted}
|
|
4095
|
-
}
|
|
4096
|
-
`;
|
|
4097
|
-
styled.css`
|
|
4098
|
-
p:not(:last-child) {
|
|
4099
|
-
margin-bottom: 1.25em;
|
|
4100
|
-
}
|
|
4101
|
-
`;
|
|
4102
|
-
styled.css`
|
|
4103
|
-
ul {
|
|
4104
|
-
list-style: initial;
|
|
4105
|
-
margin: 0 0 2em 1.1em;
|
|
4106
|
-
|
|
4107
|
-
&>li {
|
|
4108
|
-
padding: 0.3em 0;
|
|
4109
|
-
}
|
|
4110
|
-
}
|
|
4111
|
-
`;
|
|
4112
4082
|
const StyledText$1 = styled__default.default.div`
|
|
4113
4083
|
${props => getFontVariantResponsive(props, (variant, font) => styled.css`
|
|
4114
4084
|
${font.family ? styled.css`font-family: var(--font-${variant}-family, var(--base-font-family));` : ''}
|
|
@@ -4125,13 +4095,7 @@ const StyledText$1 = styled__default.default.div`
|
|
|
4125
4095
|
` : ''}
|
|
4126
4096
|
${props => getCssResponsive(props)}
|
|
4127
4097
|
`;
|
|
4128
|
-
|
|
4129
|
-
${CssH}
|
|
4130
|
-
${CssA}
|
|
4131
|
-
${CssP}
|
|
4132
|
-
${CssUl}
|
|
4133
|
-
*/
|
|
4134
|
-
const TextBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
4098
|
+
const TextBase = /*#__PURE__*/React.forwardRef(function Text(_a, ref) {
|
|
4135
4099
|
var {
|
|
4136
4100
|
children,
|
|
4137
4101
|
className,
|
|
@@ -4147,7 +4111,24 @@ const TextBase = /*#__PURE__*/React.forwardRef((_a, ref) => {
|
|
|
4147
4111
|
children: children
|
|
4148
4112
|
}));
|
|
4149
4113
|
});
|
|
4150
|
-
|
|
4114
|
+
const TextHtml = /*#__PURE__*/React.forwardRef(function TextHtml(_a, ref) {
|
|
4115
|
+
var {
|
|
4116
|
+
children,
|
|
4117
|
+
className,
|
|
4118
|
+
as = 'div'
|
|
4119
|
+
} = _a,
|
|
4120
|
+
props = __rest(_a, ["children", "className", "as"]);
|
|
4121
|
+
const classNames = bomCore.getClassNames('text', 'wysiwyg', className, props.variant);
|
|
4122
|
+
return jsxRuntime.jsx(StyledText$1, Object.assign({
|
|
4123
|
+
className: classNames,
|
|
4124
|
+
ref: ref,
|
|
4125
|
+
as: as
|
|
4126
|
+
}, props, {
|
|
4127
|
+
dangerouslySetInnerHTML: {
|
|
4128
|
+
__html: children
|
|
4129
|
+
}
|
|
4130
|
+
}));
|
|
4131
|
+
});
|
|
4151
4132
|
const TextSROnly = styled__default.default.div`
|
|
4152
4133
|
position: absolute;
|
|
4153
4134
|
width: 1px;
|
|
@@ -4160,6 +4141,7 @@ const TextSROnly = styled__default.default.div`
|
|
|
4160
4141
|
border-width: 0;
|
|
4161
4142
|
`;
|
|
4162
4143
|
const Text = bomCore.withSchema(TextBase, {
|
|
4144
|
+
Html: TextHtml,
|
|
4163
4145
|
SROnly: TextSROnly
|
|
4164
4146
|
});
|
|
4165
4147
|
|
|
@@ -13846,6 +13828,7 @@ exports.TextArea = TextArea;
|
|
|
13846
13828
|
exports.TextBase = TextBase;
|
|
13847
13829
|
exports.TextDescription = TextDescription;
|
|
13848
13830
|
exports.TextHighlight = TextHighlight;
|
|
13831
|
+
exports.TextHtml = TextHtml;
|
|
13849
13832
|
exports.Tooltip = Tooltip;
|
|
13850
13833
|
exports.Transition = Transition;
|
|
13851
13834
|
exports.Typography = Typography;
|