@uva-glass/component-library 3.50.12 → 3.50.13
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
._editor-
|
|
1
|
+
._editor-header__container_1y1mc_1{align-items:flex-start;display:flex;flex:1;flex-direction:column;justify-content:flex-start;max-width:calc(100% - 5rem)}._editor-header__info_1y1mc_10{color:var(--color-grey-700);font-size:var(--font-size-text-non-essential)}
|
|
@@ -28,16 +28,16 @@ import "../../Sortable/components/SortableItem.js";
|
|
|
28
28
|
import "../../../SortableProvider-BbwlEPIr.js";
|
|
29
29
|
import "../../WeekSelector/components/WeekSelectorOptionContainer.js";
|
|
30
30
|
import '../../../assets/EditorHeader.css';const t = {
|
|
31
|
-
"editor-header__container": "_editor-
|
|
32
|
-
"editor-header__info": "_editor-
|
|
33
|
-
},
|
|
31
|
+
"editor-header__container": "_editor-header__container_1y1mc_1",
|
|
32
|
+
"editor-header__info": "_editor-header__info_1y1mc_10"
|
|
33
|
+
}, B = ({ label: o, info: i = "", required: m = !1 }) => {
|
|
34
34
|
const e = `info_${d()}`;
|
|
35
35
|
return /* @__PURE__ */ p("div", { className: t["editor-header__container"], children: [
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
o !== "" && /* @__PURE__ */ r("div", { children: /* @__PURE__ */ r(_, { htmlFor: e, required: m, children: o }) }),
|
|
37
|
+
i !== "" && /* @__PURE__ */ r("div", { className: t["editor-header__info"], dangerouslySetInnerHTML: { __html: i } })
|
|
38
38
|
] });
|
|
39
39
|
};
|
|
40
40
|
export {
|
|
41
|
-
|
|
41
|
+
B as EditorHeader
|
|
42
42
|
};
|
|
43
43
|
//# sourceMappingURL=EditorHeader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorHeader.js","sources":["../../../../src/components/RteEditor/EditorHeader/EditorHeader.tsx"],"sourcesContent":["import { useId } from 'react';\n\nimport styles from './EditorHeader.module.css';\n\nimport { Label } from 'components';\n\ninterface EditorHeaderProps {\n label: string;\n info?: string;\n required?: boolean;\n}\n\nexport const EditorHeader = ({ label, info = '', required = false }: EditorHeaderProps) => {\n const infoId = `info_${useId()}`;\n\n return (\n <div className={styles['editor-header__container']}>\n {label !== '' && (\n <div>\n <Label htmlFor={infoId} required={required}>\n {label}\n </Label>\n </div>\n )}\n {info !== '' && <div className={styles['editor-header__info']}
|
|
1
|
+
{"version":3,"file":"EditorHeader.js","sources":["../../../../src/components/RteEditor/EditorHeader/EditorHeader.tsx"],"sourcesContent":["import { useId } from 'react';\n\nimport styles from './EditorHeader.module.css';\n\nimport { Label } from 'components';\n\ninterface EditorHeaderProps {\n label: string;\n info?: string;\n required?: boolean;\n}\n\nexport const EditorHeader = ({ label, info = '', required = false }: EditorHeaderProps) => {\n const infoId = `info_${useId()}`;\n\n return (\n <div className={styles['editor-header__container']}>\n {label !== '' && (\n <div>\n <Label htmlFor={infoId} required={required}>\n {label}\n </Label>\n </div>\n )}\n {info !== '' && <div className={styles['editor-header__info']} dangerouslySetInnerHTML={{ __html: info }} />}\n </div>\n );\n};\n"],"names":["EditorHeader","label","info","required","infoId","useId","jsxs","styles","jsx","Label"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAYaA,IAAe,CAAC,EAAE,OAAAC,GAAO,MAAAC,IAAO,IAAI,UAAAC,IAAW,SAA+B;AACzF,QAAMC,IAAS,QAAQC,EAAA,CAAO;AAE9B,SACE,gBAAAC,EAAC,OAAA,EAAI,WAAWC,EAAO,0BAA0B,GAC9C,UAAA;AAAA,IAAAN,MAAU,wBACR,OAAA,EACC,UAAA,gBAAAO,EAACC,KAAM,SAASL,GAAQ,UAAAD,GACrB,UAAAF,EAAA,CACH,EAAA,CACF;AAAA,IAEDC,MAAS,MAAM,gBAAAM,EAAC,OAAA,EAAI,WAAWD,EAAO,qBAAqB,GAAG,yBAAyB,EAAE,QAAQL,EAAA,EAAK,CAAG;AAAA,EAAA,GAC5G;AAEJ;"}
|