@preply/ds-web-lib
Advanced tools
Comparing version 0.77.0 to 0.78.0
@@ -14,9 +14,17 @@ import { useStyleExtract, moduleClassNames, booleanClassNames, useVisualModeClassNames, moduleLocals } from '@preply/ds-web-core'; | ||
}; | ||
const FieldLabel = ({ id, label, hideLabel, required, requiredLabel, }) => { | ||
// We need to add a gap between label and required bullet | ||
// while giving the label "display: inline" to make it wrap | ||
const WrapLabelGap = () => { | ||
const wrapGapClassnames = moduleLocals(styles, FIELD_LABEL, ['wrapGap']); | ||
return React__default.createElement("span", { className: wrapGapClassnames.join(' ') }); | ||
}; | ||
const FieldLabel = ({ id, label, hideLabel, wrapLabel = false, required, requiredLabel, }) => { | ||
useStyleExtract(styles); | ||
const classNames = moduleClassNames(styles, FIELD_LABEL, [ | ||
booleanClassNames('hide', undefined, hideLabel), | ||
booleanClassNames('wrap', undefined, wrapLabel), | ||
]); | ||
return (React__default.createElement("label", { htmlFor: id, className: useVisualModeClassNames(classNames).join(' ') }, | ||
label, | ||
wrapLabel && React__default.createElement(WrapLabelGap, null), | ||
required && React__default.createElement(Required, { label: requiredLabel }))); | ||
@@ -26,2 +34,2 @@ }; | ||
export { FieldLabel }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmllbGRMYWJlbC5qcyIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2NvbXBvbmVudHMvcHJpdmF0ZS9GaWVsZExhYmVsL0ZpZWxkTGFiZWwudHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gICAgRmllbGRMYWJlbFByb3BzLFxuICAgIGJvb2xlYW5DbGFzc05hbWVzLFxuICAgIG1vZHVsZUNsYXNzTmFtZXMsXG4gICAgbW9kdWxlTG9jYWxzLFxuICAgIHVzZVN0eWxlRXh0cmFjdCxcbiAgICB1c2VWaXN1YWxNb2RlQ2xhc3NOYW1lcyxcbn0gZnJvbSAnQHByZXBseS9kcy13ZWItY29yZ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FDO1FBQ3ZFLEtBQUs7UUFDTCxTQUFTLElBQUlBLDZCQUFDLFlBQVksT0FBRztRQUM3QixRQUFRLElBQUlBLDZCQUFDLFFBQVEsSUFBQyxLQUFLLEVBQUUsYUFBYSxHQUFJLENBQzNDLEVBQ1Y7QUFDTjs7OzsifQ== |
import styleInject from '../../../../external/style-inject/dist/style-inject.es.js'; | ||
var css_248z = "._2Upfo1{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;color:var(--e41135);font-size:var(--8d63e4);font-size:var(--343d89);font-style:var(--0ab3be);font-weight:var(--b44390);letter-spacing:var(--b8c41f);line-height:var(--d4313c);line-height:var(--360264);max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}._2Upfo1,._3PPYgv{grid-gap:var(--6947b0);display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--6947b0)}._3PPYgv{color:var(--3d280d)}._2ZcnmE{clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}"; | ||
var styles = {__id:"/home/jenkins/workspace/design-system_main/packages/web-lib/src/components/private/FieldLabel/style/index.module.less",__css:css_248z,"FieldLabel":"_2Upfo1","FieldLabel--required":"_3PPYgv","FieldLabel--hide":"_2ZcnmE"}; | ||
var css_248z = "._2Upfo1{-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;grid-gap:var(--6947b0);color:var(--e41135);display:-webkit-box;display:-ms-flexbox;display:flex;font-size:var(--8d63e4);font-size:var(--343d89);font-style:var(--0ab3be);font-weight:var(--b44390);gap:var(--6947b0);letter-spacing:var(--b8c41f);line-height:var(--d4313c);line-height:var(--360264);max-width:-webkit-max-content;max-width:-moz-max-content;max-width:max-content}._1sPtiQ{display:inline}.jnlEwr{display:inline-block;width:var(--6947b0)}._3PPYgv{grid-gap:var(--6947b0);color:var(--3d280d);display:-webkit-box;display:-ms-flexbox;display:flex;gap:var(--6947b0)}._2ZcnmE{clip:rect(0 0 0 0);-webkit-clip-path:inset(50%);clip-path:inset(50%);height:1px;overflow:hidden;position:absolute;white-space:nowrap;width:1px}"; | ||
var styles = {__id:"/home/jenkins/workspace/design-system_main/packages/web-lib/src/components/private/FieldLabel/style/index.module.less",__css:css_248z,"FieldLabel":"_2Upfo1","FieldLabel--wrap":"_1sPtiQ","FieldLabel--wrapGap":"jnlEwr","FieldLabel--required":"_3PPYgv","FieldLabel--hide":"_2ZcnmE"}; | ||
var stylesheet=css_248z; | ||
@@ -6,0 +6,0 @@ styleInject(css_248z); |
@@ -8,3 +8,3 @@ import { useStyleExtract, moduleClassNames, useVisualModeClassNames, getDatasetProps } from '@preply/ds-web-core'; | ||
const FIELD_LAYOUT_BASE = 'FieldLayoutBase'; | ||
const FieldLayoutBase = ({ id, className, label, hideLabel, required, requiredLabel, additionalText, preserveSpace, hasError, dataset, children, }) => { | ||
const FieldLayoutBase = ({ id, className, label, hideLabel, wrapLabel = false, required, requiredLabel, additionalText, preserveSpace, hasError, dataset, children, }) => { | ||
useStyleExtract(styles); | ||
@@ -20,3 +20,3 @@ const localClassNames = moduleClassNames(styles, FIELD_LAYOUT_BASE); | ||
}; | ||
const labelProps = { id, label, hideLabel, required, requiredLabel }; | ||
const labelProps = { id, label, hideLabel, wrapLabel, required, requiredLabel }; | ||
const spacePreserver = !additionalText && preserveSpace ? React__default.createElement("span", null, "\u00A0") : undefined; | ||
@@ -32,2 +32,2 @@ const additionalTextVariant = hasError ? 'error' : 'normal'; | ||
export { FieldLayoutBase }; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiRmllbGRMYXlvdXRCYXNlLmpzIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9wcml2YXRlL0ZpZWxkTGF5b3V0QmFzZS9GaWVsZExheW91dEJhc2UudHN4Il0sInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7XG4gICAgRmllbGRBZGRpdGlv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,12 @@ "access": "public" | ||
"dependencies": { | ||
"@preply/ds-core": "0.77.0", | ||
"@preply/ds-media-icons": "0.77.0", | ||
"@preply/ds-web-core": "0.77.0", | ||
"@preply/ds-web-root": "0.77.0" | ||
"@preply/ds-core": "0.78.0", | ||
"@preply/ds-media-icons": "0.78.0", | ||
"@preply/ds-web-core": "0.78.0", | ||
"@preply/ds-web-root": "0.78.0" | ||
}, | ||
"peerDependencies": { | ||
"@preply/ds-core": "0.77.0", | ||
"@preply/ds-media-icons": "0.77.0", | ||
"@preply/ds-web-core": "0.77.0", | ||
"@preply/ds-web-root": "0.77.0", | ||
"@preply/ds-core": "0.78.0", | ||
"@preply/ds-media-icons": "0.78.0", | ||
"@preply/ds-web-core": "0.78.0", | ||
"@preply/ds-web-root": "0.78.0", | ||
"react": "^16.8.3", | ||
@@ -37,4 +37,4 @@ "react-dom": "^16.8.3" | ||
"devDependencies": { | ||
"@preply/ds-docs-toolkit": "0.77.0", | ||
"@preply/ds-theme-base-ui": "0.77.0", | ||
"@preply/ds-docs-toolkit": "0.78.0", | ||
"@preply/ds-theme-base-ui": "0.78.0", | ||
"@storybook/addon-docs": "6.4.18", | ||
@@ -45,3 +45,3 @@ "@storybook/react": "6.4.18", | ||
}, | ||
"gitHead": "de4e4ea26c0d8f58cb1ccf422ef97728571471e3" | ||
"gitHead": "b40502fcb07a404513cbbe2b9a095e18d828cc28" | ||
} |
Sorry, the diff of this file is not supported yet
503870
3689
+ Added@preply/ds-core@0.78.0(transitive)
+ Added@preply/ds-core-types@0.78.0(transitive)
+ Added@preply/ds-media-icons@0.78.0(transitive)
+ Added@preply/ds-theme-base-ui@0.78.0(transitive)
+ Added@preply/ds-theme-bold-ui@0.78.0(transitive)
+ Added@preply/ds-theme-preply-ui@0.78.0(transitive)
+ Added@preply/ds-theme-tokyo-ui@0.78.0(transitive)
+ Added@preply/ds-web-core@0.78.0(transitive)
+ Added@preply/ds-web-root@0.78.0(transitive)
- Removed@preply/ds-core@0.77.0(transitive)
- Removed@preply/ds-core-types@0.77.0(transitive)
- Removed@preply/ds-media-icons@0.77.0(transitive)
- Removed@preply/ds-theme-base-ui@0.77.0(transitive)
- Removed@preply/ds-theme-bold-ui@0.77.0(transitive)
- Removed@preply/ds-theme-preply-ui@0.77.0(transitive)
- Removed@preply/ds-theme-tokyo-ui@0.77.0(transitive)
- Removed@preply/ds-web-core@0.77.0(transitive)
- Removed@preply/ds-web-root@0.77.0(transitive)
Updated@preply/ds-core@0.78.0
Updated@preply/ds-web-core@0.78.0
Updated@preply/ds-web-root@0.78.0