@kartverket/backstage-plugin-risk-scorecard 6.1.8 → 6.1.9
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/dist/components/common/Input.esm.js +34 -26
- package/dist/components/common/Input.esm.js.map +1 -1
- package/dist/components/common/Select.esm.js +15 -31
- package/dist/components/common/Select.esm.js.map +1 -1
- package/dist/components/common/Select.module.css.esm.js +8 -0
- package/dist/components/common/Select.module.css.esm.js.map +1 -0
- package/dist/components/common/formStyles.module.css.esm.js +8 -0
- package/dist/components/common/formStyles.module.css.esm.js.map +1 -0
- package/dist/components/riScInfo/changeset/components/ChangeSetAddedValue.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetAddedValue.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetBox.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetBox.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetBoxTitle.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetBoxTitle.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetChangedTitle.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetChangedTitle.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetChangedValue.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetChangedValue.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetColumn.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetColumn.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetPropertyBase.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetPropertyBase.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetRemovedProperty.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetRemovedProperty.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetRemovedValue.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetRemovedValue.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetTag.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetTag.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetTags.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetTags.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetText.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetText.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetTitle.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetTitle.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetTwoColumnSplit.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetTwoColumnSplit.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/ChangeSetValue.esm.js +1 -2
- package/dist/components/riScInfo/changeset/components/ChangeSetValue.esm.js.map +1 -1
- package/dist/components/riScInfo/changeset/components/changeSet.module.css.esm.js +8 -0
- package/dist/components/riScInfo/changeset/components/changeSet.module.css.esm.js.map +1 -0
- package/dist/utils/style.esm.js +1 -5
- package/dist/utils/style.esm.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/riScInfo/changeset/components/changeSetStyles.esm.js +0 -159
- package/dist/components/riScInfo/changeset/components/changeSetStyles.esm.js.map +0 -1
|
@@ -4,35 +4,43 @@ import FormHelperText from '@mui/material/FormHelperText';
|
|
|
4
4
|
import FormLabel from '@mui/material/FormLabel';
|
|
5
5
|
import TextField from '@mui/material/TextField';
|
|
6
6
|
import { forwardRef } from 'react';
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
7
|
+
import { commonTextColor } from '../../utils/style.esm.js';
|
|
8
|
+
import formStyles from './formStyles.module.css.esm.js';
|
|
9
9
|
|
|
10
10
|
const Input = forwardRef(
|
|
11
11
|
({ label, sublabel, error, helperText, required, ...props }, ref) => {
|
|
12
|
-
return /* @__PURE__ */ jsxs(
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
12
|
+
return /* @__PURE__ */ jsxs(
|
|
13
|
+
FormControl,
|
|
14
|
+
{
|
|
15
|
+
className: formStyles.formControl,
|
|
16
|
+
error,
|
|
17
|
+
required,
|
|
18
|
+
children: [
|
|
19
|
+
label && /* @__PURE__ */ jsx(FormLabel, { required, className: formStyles.formLabel, children: label }),
|
|
20
|
+
sublabel && /* @__PURE__ */ jsx(FormHelperText, { className: formStyles.formHelperText, children: sublabel }),
|
|
21
|
+
/* @__PURE__ */ jsx(
|
|
22
|
+
TextField,
|
|
23
|
+
{
|
|
24
|
+
id: "filled-multiline-static",
|
|
25
|
+
error,
|
|
26
|
+
multiline: true,
|
|
27
|
+
fullWidth: true,
|
|
28
|
+
variant: "outlined",
|
|
29
|
+
inputRef: ref,
|
|
30
|
+
InputProps: {
|
|
31
|
+
sx: (theme) => ({
|
|
32
|
+
"&.Mui-disabled": {
|
|
33
|
+
color: commonTextColor(theme)
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
},
|
|
37
|
+
...props
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
helperText && /* @__PURE__ */ jsx(FormHelperText, { children: helperText })
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
);
|
|
36
44
|
}
|
|
37
45
|
);
|
|
38
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.esm.js","sources":["../../../src/components/common/Input.tsx"],"sourcesContent":["import FormControl from '@mui/material/FormControl';\nimport FormHelperText from '@mui/material/FormHelperText';\nimport FormLabel from '@mui/material/FormLabel';\nimport TextField, { TextFieldProps } from '@mui/material/TextField';\nimport { forwardRef } from 'react';\nimport {
|
|
1
|
+
{"version":3,"file":"Input.esm.js","sources":["../../../src/components/common/Input.tsx"],"sourcesContent":["import FormControl from '@mui/material/FormControl';\nimport FormHelperText from '@mui/material/FormHelperText';\nimport FormLabel from '@mui/material/FormLabel';\nimport TextField, { TextFieldProps } from '@mui/material/TextField';\nimport { forwardRef } from 'react';\nimport { commonTextColor } from '../../utils/style';\nimport formStyles from './formStyles.module.css';\n\ntype Props = TextFieldProps & {\n sublabel?: string;\n};\n\nexport const Input = forwardRef<HTMLInputElement, Props>(\n ({ label, sublabel, error, helperText, required, ...props }, ref) => {\n return (\n <FormControl\n className={formStyles.formControl}\n error={error}\n required={required}\n >\n {label && (\n <FormLabel required={required} className={formStyles.formLabel}>\n {label}\n </FormLabel>\n )}\n {sublabel && (\n <FormHelperText className={formStyles.formHelperText}>\n {sublabel}\n </FormHelperText>\n )}\n <TextField\n id=\"filled-multiline-static\"\n error={error}\n multiline\n fullWidth\n variant=\"outlined\"\n inputRef={ref}\n InputProps={{\n sx: theme => ({\n '&.Mui-disabled': {\n color: commonTextColor(theme, true),\n },\n }),\n }}\n {...props}\n />\n {helperText && <FormHelperText>{helperText}</FormHelperText>}\n </FormControl>\n );\n },\n);\n"],"names":[],"mappings":";;;;;;;;;AAYO,MAAM,KAAA,GAAQ,UAAA;AAAA,EACnB,CAAC,EAAE,KAAA,EAAO,QAAA,EAAU,KAAA,EAAO,YAAY,QAAA,EAAU,GAAG,KAAA,EAAM,EAAG,GAAA,KAAQ;AACnE,IAAA,uBACE,IAAA;AAAA,MAAC,WAAA;AAAA,MAAA;AAAA,QACC,WAAW,UAAA,CAAW,WAAA;AAAA,QACtB,KAAA;AAAA,QACA,QAAA;AAAA,QAEC,QAAA,EAAA;AAAA,UAAA,KAAA,wBACE,SAAA,EAAA,EAAU,QAAA,EAAoB,SAAA,EAAW,UAAA,CAAW,WAClD,QAAA,EAAA,KAAA,EACH,CAAA;AAAA,UAED,4BACC,GAAA,CAAC,cAAA,EAAA,EAAe,SAAA,EAAW,UAAA,CAAW,gBACnC,QAAA,EAAA,QAAA,EACH,CAAA;AAAA,0BAEF,GAAA;AAAA,YAAC,SAAA;AAAA,YAAA;AAAA,cACC,EAAA,EAAG,yBAAA;AAAA,cACH,KAAA;AAAA,cACA,SAAA,EAAS,IAAA;AAAA,cACT,SAAA,EAAS,IAAA;AAAA,cACT,OAAA,EAAQ,UAAA;AAAA,cACR,QAAA,EAAU,GAAA;AAAA,cACV,UAAA,EAAY;AAAA,gBACV,IAAI,CAAA,KAAA,MAAU;AAAA,kBACZ,gBAAA,EAAkB;AAAA,oBAChB,KAAA,EAAO,eAAA,CAAgB,KAAW;AAAA;AACpC,iBACF;AAAA,eACF;AAAA,cACC,GAAG;AAAA;AAAA,WACN;AAAA,UACC,UAAA,oBAAc,GAAA,CAAC,cAAA,EAAA,EAAgB,QAAA,EAAA,UAAA,EAAW;AAAA;AAAA;AAAA,KAC7C;AAAA,EAEJ;AACF;;;;"}
|
|
@@ -11,7 +11,8 @@ import MenuItem from '@mui/material/MenuItem';
|
|
|
11
11
|
import MUISelect from '@mui/material/Select';
|
|
12
12
|
import { useController } from 'react-hook-form';
|
|
13
13
|
import { pluginRiScTranslationRef } from '../../utils/translations.esm.js';
|
|
14
|
-
import
|
|
14
|
+
import formStyles from './formStyles.module.css.esm.js';
|
|
15
|
+
import styles from './Select.module.css.esm.js';
|
|
15
16
|
|
|
16
17
|
function Select({
|
|
17
18
|
label,
|
|
@@ -37,27 +38,16 @@ function Select({
|
|
|
37
38
|
if (!multiple) {
|
|
38
39
|
return options.find((option) => option.value === values)?.renderedValue;
|
|
39
40
|
}
|
|
40
|
-
return /* @__PURE__ */ jsx(
|
|
41
|
-
|
|
41
|
+
return /* @__PURE__ */ jsx(Box, { className: styles.chips, children: values.map((value) => /* @__PURE__ */ jsx(
|
|
42
|
+
Chip,
|
|
42
43
|
{
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
Chip,
|
|
51
|
-
{
|
|
52
|
-
label: (
|
|
53
|
-
/* @ts-ignore Because ts can't typecheck strings against our keys */
|
|
54
|
-
labelTranslationKey ? t(`${labelTranslationKey}.${value}`) : value
|
|
55
|
-
)
|
|
56
|
-
},
|
|
57
|
-
value
|
|
58
|
-
))
|
|
59
|
-
}
|
|
60
|
-
);
|
|
44
|
+
label: (
|
|
45
|
+
/* @ts-ignore Because ts can't typecheck strings against our keys */
|
|
46
|
+
labelTranslationKey ? t(`${labelTranslationKey}.${value}`) : value
|
|
47
|
+
)
|
|
48
|
+
},
|
|
49
|
+
value
|
|
50
|
+
)) });
|
|
61
51
|
}
|
|
62
52
|
function handleChecked(fieldValue, optionValue) {
|
|
63
53
|
if (Array.isArray(fieldValue)) {
|
|
@@ -65,9 +55,9 @@ function Select({
|
|
|
65
55
|
}
|
|
66
56
|
return fieldValue === optionValue;
|
|
67
57
|
}
|
|
68
|
-
return /* @__PURE__ */ jsxs(FormControl, { error,
|
|
69
|
-
label && /* @__PURE__ */ jsx(FormLabel, {
|
|
70
|
-
sublabel && /* @__PURE__ */ jsx(FormHelperText, {
|
|
58
|
+
return /* @__PURE__ */ jsxs(FormControl, { error, className: formStyles.formControl, children: [
|
|
59
|
+
label && /* @__PURE__ */ jsx(FormLabel, { className: formStyles.formLabel, required, children: label }),
|
|
60
|
+
sublabel && /* @__PURE__ */ jsx(FormHelperText, { className: formStyles.formHelperText, children: sublabel }),
|
|
71
61
|
/* @__PURE__ */ jsx(
|
|
72
62
|
MUISelect,
|
|
73
63
|
{
|
|
@@ -78,13 +68,7 @@ function Select({
|
|
|
78
68
|
variant: "outlined",
|
|
79
69
|
renderValue,
|
|
80
70
|
multiple,
|
|
81
|
-
SelectDisplayProps: multiple ? {
|
|
82
|
-
style: {
|
|
83
|
-
paddingBottom: 8,
|
|
84
|
-
paddingTop: 16,
|
|
85
|
-
minHeight: 40
|
|
86
|
-
}
|
|
87
|
-
} : {},
|
|
71
|
+
SelectDisplayProps: multiple ? { className: styles.selectDisplayMultiple } : {},
|
|
88
72
|
inputRef: field.ref,
|
|
89
73
|
...field,
|
|
90
74
|
...props,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.esm.js","sources":["../../../src/components/common/Select.tsx"],"sourcesContent":["import { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport Box from '@mui/material/Box';\nimport Checkbox from '@mui/material/Checkbox';\nimport Chip from '@mui/material/Chip';\nimport FormControl from '@mui/material/FormControl';\nimport FormHelperText from '@mui/material/FormHelperText';\nimport FormLabel from '@mui/material/FormLabel';\nimport ListItemText from '@mui/material/ListItemText';\nimport MenuItem from '@mui/material/MenuItem';\nimport MUISelect, { SelectProps } from '@mui/material/Select';\nimport {\n Control,\n FieldValues,\n Path,\n RegisterOptions,\n useController,\n type UseControllerReturn,\n} from 'react-hook-form';\nimport { pluginRiScTranslationRef } from '../../utils/translations';\nimport
|
|
1
|
+
{"version":3,"file":"Select.esm.js","sources":["../../../src/components/common/Select.tsx"],"sourcesContent":["import { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport Box from '@mui/material/Box';\nimport Checkbox from '@mui/material/Checkbox';\nimport Chip from '@mui/material/Chip';\nimport FormControl from '@mui/material/FormControl';\nimport FormHelperText from '@mui/material/FormHelperText';\nimport FormLabel from '@mui/material/FormLabel';\nimport ListItemText from '@mui/material/ListItemText';\nimport MenuItem from '@mui/material/MenuItem';\nimport MUISelect, { SelectProps } from '@mui/material/Select';\nimport {\n Control,\n FieldValues,\n Path,\n RegisterOptions,\n useController,\n type UseControllerReturn,\n} from 'react-hook-form';\nimport { pluginRiScTranslationRef } from '../../utils/translations';\nimport formStyles from './formStyles.module.css';\nimport styles from './Select.module.css';\n\ntype Props<T extends FieldValues> = SelectProps & {\n sublabel?: string;\n helperText?: string;\n control?: Control<T, any>;\n name: Path<T>;\n labelTranslationKey?: string;\n options: {\n value: string | number;\n renderedValue: React.ReactNode | string | number;\n }[];\n rules?: Omit<\n RegisterOptions<T, string & Path<T>>,\n 'disabled' | 'valueAsNumber' | 'valueAsDate' | 'setValueAs'\n >;\n};\n\nexport function Select<T extends FieldValues>({\n label,\n sublabel,\n error,\n helperText,\n required,\n control,\n name,\n multiple,\n labelTranslationKey,\n options,\n rules,\n ...props\n}: Props<T>) {\n const { t } = useTranslationRef(pluginRiScTranslationRef);\n\n const { field } = useController({\n name,\n control,\n rules: { ...rules, required },\n });\n\n // values er strengt tatt unknown, men da må vi bruke mye ts-ignore for å komme i mål\n function renderValue(values: any) {\n if (!multiple) {\n return options.find(option => option.value === values)?.renderedValue;\n }\n return (\n <Box className={styles.chips}>\n {values.map((value: string) => (\n <Chip\n key={value}\n label={\n /* @ts-ignore Because ts can't typecheck strings against our keys */\n labelTranslationKey ? t(`${labelTranslationKey}.${value}`) : value\n }\n />\n ))}\n </Box>\n );\n }\n\n function handleChecked(\n fieldValue: UseControllerReturn['field']['value'],\n optionValue: Props<T>['options'][number]['value'],\n ) {\n if (Array.isArray(fieldValue)) {\n return fieldValue.includes(optionValue);\n }\n return fieldValue === optionValue;\n }\n\n return (\n <FormControl error={error} className={formStyles.formControl}>\n {label && (\n <FormLabel className={formStyles.formLabel} required={required}>\n {label}\n </FormLabel>\n )}\n {sublabel && (\n <FormHelperText className={formStyles.formHelperText}>\n {sublabel}\n </FormHelperText>\n )}\n\n <MUISelect\n MenuProps={{\n disablePortal: true,\n }}\n error={error}\n variant=\"outlined\"\n renderValue={renderValue}\n multiple={multiple}\n SelectDisplayProps={\n multiple ? { className: styles.selectDisplayMultiple } : {}\n }\n inputRef={field.ref}\n {...field}\n {...props}\n >\n {options.map(option => (\n <MenuItem key={option.value} value={option.value}>\n {multiple && (\n <Checkbox checked={handleChecked(field.value, option.value)} />\n )}\n <ListItemText primary={option.renderedValue} />\n </MenuItem>\n ))}\n </MUISelect>\n {error && <FormHelperText error>{helperText}</FormHelperText>}\n </FormControl>\n );\n}\n"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = ".Select_chips__6ce5ee3a08 {\n display: flex;\n flex-wrap: wrap;\n margin-bottom: 0;\n padding-bottom: 0;\n}\n\n/* Override MUI Select display padding for multiple mode */\n.Select_selectDisplayMultiple__6ce5ee3a08 {\n padding-bottom: 8px !important;\n padding-top: 16px !important;\n min-height: 40px !important;\n}\n";
|
|
4
|
+
var styles = {"chips":"Select_chips__6ce5ee3a08","selectDisplayMultiple":"Select_selectDisplayMultiple__6ce5ee3a08"};
|
|
5
|
+
styleInject(css_248z);
|
|
6
|
+
|
|
7
|
+
export { styles as default };
|
|
8
|
+
//# sourceMappingURL=Select.module.css.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Select.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import styleInject from '../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = ".formStyles_formControl__9dfb0e64ee {\n width: 100%;\n gap: 4px;\n}\n\n/* Override MUI FormLabel color and transform */\n.formStyles_formLabel__9dfb0e64ee {\n font-size: 0.875rem;\n font-weight: 700 !important;\n text-transform: none;\n color: inherit !important;\n}\n\n/* Override MUI FormHelperText color and margin */\n.formStyles_formHelperText__9dfb0e64ee {\n font-size: 0.875rem;\n font-weight: 400;\n color: inherit !important;\n margin: 0 !important;\n}\n";
|
|
4
|
+
var formStyles = {"formControl":"formStyles_formControl__9dfb0e64ee","formLabel":"formStyles_formLabel__9dfb0e64ee","formHelperText":"formStyles_formHelperText__9dfb0e64ee"};
|
|
5
|
+
styleInject(css_248z);
|
|
6
|
+
|
|
7
|
+
export { formStyles as default };
|
|
8
|
+
//# sourceMappingURL=formStyles.module.css.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formStyles.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetAddedValue({ newValue }) {
|
|
5
|
-
const styles = useChangeSetStyles();
|
|
6
5
|
return /* @__PURE__ */ jsx("span", { className: styles.addedValue, children: newValue });
|
|
7
6
|
}
|
|
8
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetAddedValue.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetAddedValue.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"ChangeSetAddedValue.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetAddedValue.tsx"],"sourcesContent":["import styles from './changeSet.module.css';\n\ninterface ChangeSetAddedValueProps {\n newValue: string;\n}\n\nexport function ChangeSetAddedValue({ newValue }: ChangeSetAddedValueProps) {\n return <span className={styles.addedValue}>{newValue}</span>;\n}\n"],"names":[],"mappings":";;;AAMO,SAAS,mBAAA,CAAoB,EAAE,QAAA,EAAS,EAA6B;AAC1E,EAAA,uBAAO,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAW,MAAA,CAAO,YAAa,QAAA,EAAA,QAAA,EAAS,CAAA;AACvD;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetBox({ children, type }) {
|
|
5
|
-
const styles = useChangeSetStyles();
|
|
6
5
|
return /* @__PURE__ */ jsx(
|
|
7
6
|
"div",
|
|
8
7
|
{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetBox.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetBox.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"ChangeSetBox.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetBox.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport styles from './changeSet.module.css';\n\ninterface ChangeSetBoxProps {\n type: 'primary' | 'secondary';\n children: ReactNode[] | ReactNode;\n}\n\nexport function ChangeSetBox({ children, type }: ChangeSetBoxProps) {\n return (\n <div\n className={`${styles.box} ${type === 'primary' ? styles.boxPrimary : styles.boxSecondary}`}\n >\n {children}\n </div>\n );\n}\n"],"names":[],"mappings":";;;AAQO,SAAS,YAAA,CAAa,EAAE,QAAA,EAAU,IAAA,EAAK,EAAsB;AAClE,EAAA,uBACE,GAAA;AAAA,IAAC,KAAA;AAAA,IAAA;AAAA,MACC,SAAA,EAAW,CAAA,EAAG,MAAA,CAAO,GAAG,CAAA,CAAA,EAAI,SAAS,SAAA,GAAY,MAAA,CAAO,UAAA,GAAa,MAAA,CAAO,YAAY,CAAA,CAAA;AAAA,MAEvF;AAAA;AAAA,GACH;AAEJ;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetBoxTitle({ title }) {
|
|
5
|
-
const styles = useChangeSetStyles();
|
|
6
5
|
return /* @__PURE__ */ jsx("div", { className: styles.boxTitle, children: title });
|
|
7
6
|
}
|
|
8
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetBoxTitle.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetBoxTitle.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"ChangeSetBoxTitle.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetBoxTitle.tsx"],"sourcesContent":["import styles from './changeSet.module.css';\n\ninterface ChangeSetBoxTitleProps {\n title: string;\n}\n\nexport function ChangeSetBoxTitle({ title }: ChangeSetBoxTitleProps) {\n return <div className={styles.boxTitle}>{title}</div>;\n}\n"],"names":[],"mappings":";;;AAMO,SAAS,iBAAA,CAAkB,EAAE,KAAA,EAAM,EAA2B;AACnE,EAAA,uBAAO,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,UAAW,QAAA,EAAA,KAAA,EAAM,CAAA;AACjD;;;;"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
import { ChangeSetBoxTitle } from './ChangeSetBoxTitle.esm.js';
|
|
4
4
|
import { ChangeSetChangedValue } from './ChangeSetChangedValue.esm.js';
|
|
5
5
|
|
|
6
6
|
function ChangeSetChangedTitle({ title }) {
|
|
7
|
-
const styles = useChangeSetStyles();
|
|
8
7
|
if (title.type === "UNCHANGED")
|
|
9
8
|
return /* @__PURE__ */ jsx(ChangeSetBoxTitle, { title: title.value });
|
|
10
9
|
if (title.type === "CHANGED")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetChangedTitle.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetChangedTitle.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"ChangeSetChangedTitle.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetChangedTitle.tsx"],"sourcesContent":["import styles from './changeSet.module.css';\nimport { SimpleTrackedProperty } from '../../../../utils/types.ts';\nimport { ChangeSetBoxTitle } from './ChangeSetBoxTitle.tsx';\nimport { ChangeSetChangedValue } from './ChangeSetChangedValue.tsx';\n\ninterface ChangeSetChangedTitleProps {\n title: SimpleTrackedProperty<string>;\n}\n\nexport function ChangeSetChangedTitle({ title }: ChangeSetChangedTitleProps) {\n if (title.type === 'UNCHANGED')\n return <ChangeSetBoxTitle title={title.value} />;\n\n if (title.type === 'CHANGED')\n return (\n <div className={styles.boxTitle}>\n <ChangeSetChangedValue\n oldValue={title.oldValue}\n newValue={title.newValue}\n />\n </div>\n );\n\n return <></>;\n}\n"],"names":[],"mappings":";;;;;AASO,SAAS,qBAAA,CAAsB,EAAE,KAAA,EAAM,EAA+B;AAC3E,EAAA,IAAI,MAAM,IAAA,KAAS,WAAA;AACjB,IAAA,uBAAO,GAAA,CAAC,iBAAA,EAAA,EAAkB,KAAA,EAAO,KAAA,CAAM,KAAA,EAAO,CAAA;AAEhD,EAAA,IAAI,MAAM,IAAA,KAAS,SAAA;AACjB,IAAA,uBACE,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,QAAA,EACrB,QAAA,kBAAA,GAAA;AAAA,MAAC,qBAAA;AAAA,MAAA;AAAA,QACC,UAAU,KAAA,CAAM,QAAA;AAAA,QAChB,UAAU,KAAA,CAAM;AAAA;AAAA,KAClB,EACF,CAAA;AAGJ,EAAA,uBAAO,GAAA,CAAA,QAAA,EAAA,EAAE,CAAA;AACX;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetChangedValue({
|
|
5
5
|
oldValue,
|
|
@@ -7,7 +7,6 @@ function ChangeSetChangedValue({
|
|
|
7
7
|
unit = void 0,
|
|
8
8
|
multiline = false
|
|
9
9
|
}) {
|
|
10
|
-
const styles = useChangeSetStyles();
|
|
11
10
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
12
11
|
/* @__PURE__ */ jsx("span", { className: styles.oldValue, children: oldValue }),
|
|
13
12
|
multiline ? /* @__PURE__ */ jsx("br", {}) : " ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetChangedValue.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetChangedValue.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"ChangeSetChangedValue.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetChangedValue.tsx"],"sourcesContent":["import styles from './changeSet.module.css';\nimport { ReactNode } from 'react';\n\ninterface ChangeSetChangedValueProps {\n oldValue: string | ReactNode;\n newValue: string | ReactNode;\n unit?: string;\n multiline?: boolean;\n}\n\nexport function ChangeSetChangedValue({\n oldValue,\n newValue,\n unit = undefined,\n multiline = false,\n}: ChangeSetChangedValueProps) {\n return (\n <>\n <span className={styles.oldValue}>{oldValue}</span>\n {multiline ? <br /> : ' '}\n <span className={styles.newValue}>{newValue}</span>\n {multiline ? <br /> : ' '}\n <span className={styles.text}>{unit ? unit : ''}</span>\n </>\n );\n}\n"],"names":[],"mappings":";;;AAUO,SAAS,qBAAA,CAAsB;AAAA,EACpC,QAAA;AAAA,EACA,QAAA;AAAA,EACA,IAAA,GAAO,MAAA;AAAA,EACP,SAAA,GAAY;AACd,CAAA,EAA+B;AAC7B,EAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAW,MAAA,CAAO,QAAA,EAAW,QAAA,EAAA,QAAA,EAAS,CAAA;AAAA,IAC3C,SAAA,mBAAY,GAAA,CAAC,IAAA,EAAA,EAAG,CAAA,GAAK,GAAA;AAAA,oBACtB,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAW,MAAA,CAAO,UAAW,QAAA,EAAA,QAAA,EAAS,CAAA;AAAA,IAC3C,SAAA,mBAAY,GAAA,CAAC,IAAA,EAAA,EAAG,CAAA,GAAK,GAAA;AAAA,wBACrB,MAAA,EAAA,EAAK,SAAA,EAAW,OAAO,IAAA,EAAO,QAAA,EAAA,IAAA,GAAO,OAAO,EAAA,EAAG;AAAA,GAAA,EAClD,CAAA;AAEJ;;;;"}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetColumn({
|
|
5
5
|
children,
|
|
6
6
|
column = "*"
|
|
7
7
|
}) {
|
|
8
|
-
const styles = useChangeSetStyles();
|
|
9
8
|
let columnClass = "";
|
|
10
9
|
if (column === "1") {
|
|
11
10
|
columnClass = styles.firstColumn;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetColumn.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetColumn.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"ChangeSetColumn.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetColumn.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport styles from './changeSet.module.css';\n\ninterface ChangeSetColumnProps {\n children: ReactNode | ReactNode[];\n column?: '*' | '1' | '2';\n}\n\nexport function ChangeSetColumn({\n children,\n column = '*',\n}: ChangeSetColumnProps) {\n let columnClass = '';\n if (column === '1') {\n columnClass = styles.firstColumn;\n } else if (column === '2') {\n columnClass = styles.secondColumn;\n }\n return <div className={columnClass}>{children}</div>;\n}\n"],"names":[],"mappings":";;;AAQO,SAAS,eAAA,CAAgB;AAAA,EAC9B,QAAA;AAAA,EACA,MAAA,GAAS;AACX,CAAA,EAAyB;AACvB,EAAA,IAAI,WAAA,GAAc,EAAA;AAClB,EAAA,IAAI,WAAW,GAAA,EAAK;AAClB,IAAA,WAAA,GAAc,MAAA,CAAO,WAAA;AAAA,EACvB,CAAA,MAAA,IAAW,WAAW,GAAA,EAAK;AACzB,IAAA,WAAA,GAAc,MAAA,CAAO,YAAA;AAAA,EACvB;AACA,EAAA,uBAAO,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,WAAA,EAAc,QAAA,EAAS,CAAA;AAChD;;;;"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetPropertyBase({
|
|
5
5
|
children,
|
|
6
6
|
propertyName,
|
|
7
7
|
compact = false
|
|
8
8
|
}) {
|
|
9
|
-
const styles = useChangeSetStyles();
|
|
10
9
|
if (compact) {
|
|
11
10
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
12
11
|
/* @__PURE__ */ jsxs("span", { className: styles.propertyTitle, children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetPropertyBase.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetPropertyBase.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"ChangeSetPropertyBase.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetPropertyBase.tsx"],"sourcesContent":["import styles from './changeSet.module.css';\nimport { ReactNode } from 'react';\n\ninterface ChangeSetBoxSubTitleProps {\n propertyName: string;\n children: ReactNode[] | ReactNode;\n compact?: boolean;\n}\n\nexport function ChangeSetPropertyBase({\n children,\n propertyName,\n compact = false,\n}: ChangeSetBoxSubTitleProps) {\n if (compact) {\n return (\n <div>\n <span className={styles.propertyTitle}>{propertyName}: </span>\n <span>{children}</span>\n </div>\n );\n }\n\n return (\n <div className={styles.property}>\n <div className={styles.propertyTitle}>{propertyName}</div>\n <div>{children}</div>\n </div>\n );\n}\n"],"names":[],"mappings":";;;AASO,SAAS,qBAAA,CAAsB;AAAA,EACpC,QAAA;AAAA,EACA,YAAA;AAAA,EACA,OAAA,GAAU;AACZ,CAAA,EAA8B;AAC5B,EAAA,IAAI,OAAA,EAAS;AACX,IAAA,4BACG,KAAA,EAAA,EACC,QAAA,EAAA;AAAA,sBAAA,IAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAW,MAAA,CAAO,aAAA,EAAgB,QAAA,EAAA;AAAA,QAAA,YAAA;AAAA,QAAa;AAAA,OAAA,EAAE,CAAA;AAAA,sBACvD,GAAA,CAAC,UAAM,QAAA,EAAS;AAAA,KAAA,EAClB,CAAA;AAAA,EAEJ;AAEA,EAAA,uBACE,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,QAAA,EACrB,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,aAAA,EAAgB,QAAA,EAAA,YAAA,EAAa,CAAA;AAAA,oBACpD,GAAA,CAAC,SAAK,QAAA,EAAS;AAAA,GAAA,EACjB,CAAA;AAEJ;;;;"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
import { ChangeSetRemovedValue } from './ChangeSetRemovedValue.esm.js';
|
|
4
4
|
|
|
5
5
|
function ChangeSetRemovedProperty({
|
|
6
6
|
propertyName,
|
|
7
7
|
value
|
|
8
8
|
}) {
|
|
9
|
-
const styles = useChangeSetStyles();
|
|
10
9
|
return /* @__PURE__ */ jsxs("div", { className: styles.removedPropertyContainer, children: [
|
|
11
10
|
/* @__PURE__ */ jsx("div", { className: styles.removedProperty, children: propertyName }),
|
|
12
11
|
/* @__PURE__ */ jsx("div", { children: /* @__PURE__ */ jsx(ChangeSetRemovedValue, { oldValue: value }) })
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetRemovedProperty.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetRemovedProperty.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"ChangeSetRemovedProperty.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetRemovedProperty.tsx"],"sourcesContent":["import styles from './changeSet.module.css';\nimport { ChangeSetRemovedValue } from './ChangeSetRemovedValue.tsx';\n\ninterface ChangeSetRemovedPropertyProps {\n propertyName: string;\n value: string;\n}\n\nexport function ChangeSetRemovedProperty({\n propertyName,\n value,\n}: ChangeSetRemovedPropertyProps) {\n return (\n <div className={styles.removedPropertyContainer}>\n <div className={styles.removedProperty}>{propertyName}</div>\n <div>\n <ChangeSetRemovedValue oldValue={value} />\n </div>\n </div>\n );\n}\n"],"names":[],"mappings":";;;;AAQO,SAAS,wBAAA,CAAyB;AAAA,EACvC,YAAA;AAAA,EACA;AACF,CAAA,EAAkC;AAChC,EAAA,uBACE,IAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,wBAAA,EACrB,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,eAAA,EAAkB,QAAA,EAAA,YAAA,EAAa,CAAA;AAAA,wBACrD,KAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,qBAAA,EAAA,EAAsB,QAAA,EAAU,OAAO,CAAA,EAC1C;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetRemovedValue({
|
|
5
5
|
oldValue
|
|
6
6
|
}) {
|
|
7
|
-
const styles = useChangeSetStyles();
|
|
8
7
|
return /* @__PURE__ */ jsx("span", { className: styles.removedValue, children: oldValue });
|
|
9
8
|
}
|
|
10
9
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetRemovedValue.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetRemovedValue.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"ChangeSetRemovedValue.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetRemovedValue.tsx"],"sourcesContent":["import styles from './changeSet.module.css';\n\ninterface ChangeSetRemovedValueProps {\n oldValue: string;\n}\n\nexport function ChangeSetRemovedValue({\n oldValue,\n}: ChangeSetRemovedValueProps) {\n return <span className={styles.removedValue}>{oldValue}</span>;\n}\n"],"names":[],"mappings":";;;AAMO,SAAS,qBAAA,CAAsB;AAAA,EACpC;AACF,CAAA,EAA+B;AAC7B,EAAA,uBAAO,GAAA,CAAC,MAAA,EAAA,EAAK,SAAA,EAAW,MAAA,CAAO,cAAe,QAAA,EAAA,QAAA,EAAS,CAAA;AACzD;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetTag({ text, type }) {
|
|
5
|
-
const styles = useChangeSetStyles();
|
|
6
5
|
const typeStyle = {
|
|
7
6
|
primary: styles.tagPrimary,
|
|
8
7
|
delete: styles.tagDelete,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetTag.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetTag.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"ChangeSetTag.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetTag.tsx"],"sourcesContent":["import styles from './changeSet.module.css';\n\ninterface ChangeSetTagProps {\n text: string;\n type: 'primary' | 'delete' | 'added';\n}\n\nexport function ChangeSetTag({ text, type }: ChangeSetTagProps) {\n const typeStyle = {\n primary: styles.tagPrimary,\n delete: styles.tagDelete,\n added: styles.tagAdded,\n };\n return <div className={`${styles.tag} ${typeStyle[type]}`}>{text}</div>;\n}\n"],"names":[],"mappings":";;;AAOO,SAAS,YAAA,CAAa,EAAE,IAAA,EAAM,IAAA,EAAK,EAAsB;AAC9D,EAAA,MAAM,SAAA,GAAY;AAAA,IAChB,SAAS,MAAA,CAAO,UAAA;AAAA,IAChB,QAAQ,MAAA,CAAO,SAAA;AAAA,IACf,OAAO,MAAA,CAAO;AAAA,GAChB;AACA,EAAA,uBAAO,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,CAAA,EAAG,MAAA,CAAO,GAAG,CAAA,CAAA,EAAI,SAAA,CAAU,IAAI,CAAC,CAAA,CAAA,EAAK,QAAA,EAAA,IAAA,EAAK,CAAA;AACnE;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetTags({ children }) {
|
|
5
|
-
const styles = useChangeSetStyles();
|
|
6
5
|
return /* @__PURE__ */ jsx("div", { className: styles.tags, children });
|
|
7
6
|
}
|
|
8
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetTags.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetTags.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"ChangeSetTags.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetTags.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport styles from './changeSet.module.css';\n\ninterface ChangeSetTagsProps {\n children: ReactNode[] | ReactNode;\n}\n\nexport function ChangeSetTags({ children }: ChangeSetTagsProps) {\n return <div className={styles.tags}>{children}</div>;\n}\n"],"names":[],"mappings":";;;AAOO,SAAS,aAAA,CAAc,EAAE,QAAA,EAAS,EAAuB;AAC9D,EAAA,uBAAO,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,MAAO,QAAA,EAAS,CAAA;AAChD;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetText({ text }) {
|
|
5
|
-
const styles = useChangeSetStyles();
|
|
6
5
|
return /* @__PURE__ */ jsx("p", { className: styles.text, children: text });
|
|
7
6
|
}
|
|
8
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetText.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetText.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"ChangeSetText.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetText.tsx"],"sourcesContent":["import styles from './changeSet.module.css';\n\ninterface ChangeSetTextProps {\n text: string;\n}\n\nexport function ChangeSetText({ text }: ChangeSetTextProps) {\n return <p className={styles.text}>{text}</p>;\n}\n"],"names":[],"mappings":";;;AAMO,SAAS,aAAA,CAAc,EAAE,IAAA,EAAK,EAAuB;AAC1D,EAAA,uBAAO,GAAA,CAAC,GAAA,EAAA,EAAE,SAAA,EAAW,MAAA,CAAO,MAAO,QAAA,EAAA,IAAA,EAAK,CAAA;AAC1C;;;;"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetTitle({ text }) {
|
|
5
|
-
const styles = useChangeSetStyles();
|
|
6
5
|
return /* @__PURE__ */ jsx("div", { className: styles.title, children: text });
|
|
7
6
|
}
|
|
8
7
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetTitle.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetTitle.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"ChangeSetTitle.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetTitle.tsx"],"sourcesContent":["import styles from './changeSet.module.css';\n\ninterface ChangeSetTitleProps {\n text: string;\n}\n\nexport function ChangeSetTitle({ text }: ChangeSetTitleProps) {\n return <div className={styles.title}>{text}</div>;\n}\n"],"names":[],"mappings":";;;AAMO,SAAS,cAAA,CAAe,EAAE,IAAA,EAAK,EAAwB;AAC5D,EAAA,uBAAO,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,OAAQ,QAAA,EAAA,IAAA,EAAK,CAAA;AAC7C;;;;"}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetTwoColumnSplit({
|
|
5
5
|
children
|
|
6
6
|
}) {
|
|
7
|
-
const styles = useChangeSetStyles();
|
|
8
7
|
return /* @__PURE__ */ jsx("div", { className: styles.twoColumnSplit, children });
|
|
9
8
|
}
|
|
10
9
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetTwoColumnSplit.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetTwoColumnSplit.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"ChangeSetTwoColumnSplit.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetTwoColumnSplit.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport styles from './changeSet.module.css';\n\ninterface ChangeSetTwoColumnSplitProps {\n children: ReactNode | ReactNode[];\n}\n\nexport function ChangeSetTwoColumnSplit({\n children,\n}: ChangeSetTwoColumnSplitProps) {\n return <div className={styles.twoColumnSplit}>{children}</div>;\n}\n"],"names":[],"mappings":";;;AAOO,SAAS,uBAAA,CAAwB;AAAA,EACtC;AACF,CAAA,EAAiC;AAC/B,EAAA,uBAAO,GAAA,CAAC,KAAA,EAAA,EAAI,SAAA,EAAW,MAAA,CAAO,gBAAiB,QAAA,EAAS,CAAA;AAC1D;;;;"}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import
|
|
2
|
+
import styles from './changeSet.module.css.esm.js';
|
|
3
3
|
|
|
4
4
|
function ChangeSetValue({
|
|
5
5
|
value,
|
|
6
6
|
unit,
|
|
7
7
|
emphasised
|
|
8
8
|
}) {
|
|
9
|
-
const styles = useChangeSetStyles();
|
|
10
9
|
return /* @__PURE__ */ jsxs("span", { className: emphasised ? styles.text : "", children: [
|
|
11
10
|
value,
|
|
12
11
|
" ",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ChangeSetValue.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetValue.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport
|
|
1
|
+
{"version":3,"file":"ChangeSetValue.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/ChangeSetValue.tsx"],"sourcesContent":["import { ReactNode } from 'react';\nimport styles from './changeSet.module.css';\n\ninterface ChangeSetValueProps {\n value: string | ReactNode;\n unit?: string;\n emphasised: boolean;\n}\n\nexport function ChangeSetValue({\n value,\n unit,\n emphasised,\n}: ChangeSetValueProps) {\n return (\n <span className={emphasised ? styles.text : ''}>\n {value} {unit ? unit : ''}\n </span>\n );\n}\n"],"names":[],"mappings":";;;AASO,SAAS,cAAA,CAAe;AAAA,EAC7B,KAAA;AAAA,EACA,IAAA;AAAA,EACA;AACF,CAAA,EAAwB;AACtB,EAAA,4BACG,MAAA,EAAA,EAAK,SAAA,EAAW,UAAA,GAAa,MAAA,CAAO,OAAO,EAAA,EACzC,QAAA,EAAA;AAAA,IAAA,KAAA;AAAA,IAAM,GAAA;AAAA,IAAE,OAAO,IAAA,GAAO;AAAA,GAAA,EACzB,CAAA;AAEJ;;;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import styleInject from '../../../../node_modules_dist/style-inject/dist/style-inject.es.esm.js';
|
|
2
|
+
|
|
3
|
+
var css_248z = "/* Retrieved from Kartverket's colour profile */\n\n/* ChangeSetBox */\n.changeSet_box__d765f6b35a {\n padding: 14px 18px;\n height: 100%;\n border-radius: 24px;\n color: #212121;\n font-size: 14px;\n}\n\n[data-theme-mode='dark'] .changeSet_box__d765f6b35a {\n color: #f5f2f2;\n}\n\n.changeSet_boxPrimary__d765f6b35a {\n background-color: #fcebcd;\n margin-bottom: 24px;\n}\n\n[data-theme-mode='dark'] .changeSet_boxPrimary__d765f6b35a {\n background-color: #706f6e;\n}\n\n.changeSet_boxSecondary__d765f6b35a {\n background-color: #ffffff;\n margin-bottom: 12px;\n}\n\n[data-theme-mode='dark'] .changeSet_boxSecondary__d765f6b35a {\n background-color: #4a4848;\n}\n\n/* ChangeSetBoxTitle */\n.changeSet_boxTitle__d765f6b35a {\n font-weight: 700;\n font-size: 18px;\n line-height: 26px;\n margin-bottom: 12px;\n}\n\n/* ChangeSetPropertyBase */\n.changeSet_property__d765f6b35a {\n margin-bottom: 12px;\n}\n\n.changeSet_propertyTitle__d765f6b35a {\n font-weight: 700;\n color: #212121;\n}\n\n[data-theme-mode='dark'] .changeSet_propertyTitle__d765f6b35a {\n color: #f5f2f2;\n}\n\n/* ChangeSetChangedValue */\n.changeSet_oldValue__d765f6b35a {\n font-weight: 700;\n color: #a32f00;\n text-decoration: line-through;\n}\n\n[data-theme-mode='dark'] .changeSet_oldValue__d765f6b35a {\n color: #ffe2d4;\n}\n\n.changeSet_newValue__d765f6b35a {\n font-weight: 700;\n color: #156630;\n}\n\n[data-theme-mode='dark'] .changeSet_newValue__d765f6b35a {\n color: #d0ecd6;\n}\n\n/* ChangeSetRemovedProperty */\n.changeSet_removedPropertyContainer__d765f6b35a {\n margin-bottom: 8px;\n}\n\n.changeSet_removedProperty__d765f6b35a {\n font-weight: 700;\n color: #a32f00;\n text-decoration: line-through;\n font-size: 18px;\n line-height: 26px;\n}\n\n[data-theme-mode='dark'] .changeSet_removedProperty__d765f6b35a {\n color: #ffe2d4;\n}\n\n/* ChangeSetRemovedValue */\n.changeSet_removedValue__d765f6b35a {\n font-weight: 500;\n color: #a32f00;\n text-decoration: line-through;\n font-size: 14px;\n}\n\n[data-theme-mode='dark'] .changeSet_removedValue__d765f6b35a {\n color: #ffe2d4;\n}\n\n/* ChangeSetAddedValue */\n.changeSet_addedValue__d765f6b35a {\n font-weight: 500;\n color: #156630;\n font-size: 14px;\n}\n\n[data-theme-mode='dark'] .changeSet_addedValue__d765f6b35a {\n color: #d0ecd6;\n}\n\n/* ChangeSetTag */\n.changeSet_tag__d765f6b35a {\n border-radius: 24px;\n width: fit-content;\n padding: 1px 8px;\n border: 1px solid;\n color: #212121;\n}\n\n.changeSet_tagPrimary__d765f6b35a {\n background-color: #ffdd9d;\n border-color: #cf914a;\n}\n\n.changeSet_tagDelete__d765f6b35a {\n background-color: #ebb095;\n border-color: #d04a14;\n}\n\n.changeSet_tagAdded__d765f6b35a {\n background-color: #d0ecd6;\n border-color: #66b077;\n}\n\n/* ChangeSetTags */\n.changeSet_tags__d765f6b35a {\n margin-bottom: 4px;\n display: flex;\n gap: 4px;\n}\n\n/* ChangeSetText */\n.changeSet_text__d765f6b35a {\n font-weight: 500;\n color: #212121;\n}\n\n[data-theme-mode='dark'] .changeSet_text__d765f6b35a {\n color: #f5f2f2;\n}\n\n/* ChangeSetBodyText */\n.changeSet_bodyText__d765f6b35a {\n color: #212121;\n margin-top: 0;\n margin-bottom: 4px;\n}\n\n[data-theme-mode='dark'] .changeSet_bodyText__d765f6b35a {\n color: #f5f2f2;\n}\n\n/* ChangeSetTitle */\n.changeSet_title__d765f6b35a {\n text-transform: uppercase;\n letter-spacing: 1px;\n color: #212121;\n font-weight: 700;\n font-size: 14px;\n margin-bottom: 12px;\n}\n\n[data-theme-mode='dark'] .changeSet_title__d765f6b35a {\n color: #f5f2f2;\n}\n\n/* ChangeSetTwoColumnSplit */\n.changeSet_twoColumnSplit__d765f6b35a {\n display: grid;\n grid-template-columns: 1fr 1fr;\n gap: 18px;\n margin-bottom: 12px;\n}\n\n/* ChangeSetColumn */\n.changeSet_firstColumn__d765f6b35a {\n grid-column: 1;\n}\n\n.changeSet_secondColumn__d765f6b35a {\n grid-column: 2;\n}\n";
|
|
4
|
+
var styles = {"box":"changeSet_box__d765f6b35a","boxPrimary":"changeSet_boxPrimary__d765f6b35a","boxSecondary":"changeSet_boxSecondary__d765f6b35a","boxTitle":"changeSet_boxTitle__d765f6b35a","property":"changeSet_property__d765f6b35a","propertyTitle":"changeSet_propertyTitle__d765f6b35a","oldValue":"changeSet_oldValue__d765f6b35a","newValue":"changeSet_newValue__d765f6b35a","removedPropertyContainer":"changeSet_removedPropertyContainer__d765f6b35a","removedProperty":"changeSet_removedProperty__d765f6b35a","removedValue":"changeSet_removedValue__d765f6b35a","addedValue":"changeSet_addedValue__d765f6b35a","tag":"changeSet_tag__d765f6b35a","tagPrimary":"changeSet_tagPrimary__d765f6b35a","tagDelete":"changeSet_tagDelete__d765f6b35a","tagAdded":"changeSet_tagAdded__d765f6b35a","tags":"changeSet_tags__d765f6b35a","text":"changeSet_text__d765f6b35a","title":"changeSet_title__d765f6b35a","twoColumnSplit":"changeSet_twoColumnSplit__d765f6b35a","firstColumn":"changeSet_firstColumn__d765f6b35a","secondColumn":"changeSet_secondColumn__d765f6b35a"};
|
|
5
|
+
styleInject(css_248z);
|
|
6
|
+
|
|
7
|
+
export { styles as default };
|
|
8
|
+
//# sourceMappingURL=changeSet.module.css.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"changeSet.module.css.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
package/dist/utils/style.esm.js
CHANGED
|
@@ -3,10 +3,6 @@ const commonTextColor = (theme, disabled) => {
|
|
|
3
3
|
return theme.palette.mode === "dark" ? "#FFFFFF80" : "#757575";
|
|
4
4
|
}
|
|
5
5
|
};
|
|
6
|
-
const formControlStyles = {
|
|
7
|
-
width: "100%",
|
|
8
|
-
gap: "4px"
|
|
9
|
-
};
|
|
10
6
|
|
|
11
|
-
export { commonTextColor
|
|
7
|
+
export { commonTextColor };
|
|
12
8
|
//# sourceMappingURL=style.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"style.esm.js","sources":["../../src/utils/style.ts"],"sourcesContent":["import { Theme } from '@mui/material/styles';\n\n// Common styles for Input, MarkdownInput, and Markdown components\nexport const commonTextColor = (theme: Theme, disabled: boolean) => {\n if (disabled) {\n return theme.palette.mode === 'dark' ? '#FFFFFF80' : '#757575';\n }\n return 'inherit';\n};\n
|
|
1
|
+
{"version":3,"file":"style.esm.js","sources":["../../src/utils/style.ts"],"sourcesContent":["import { Theme } from '@mui/material/styles';\n\n// Common styles for Input, MarkdownInput, and Markdown components\nexport const commonTextColor = (theme: Theme, disabled: boolean) => {\n if (disabled) {\n return theme.palette.mode === 'dark' ? '#FFFFFF80' : '#757575';\n }\n return 'inherit';\n};\n"],"names":[],"mappings":"AAGO,MAAM,eAAA,GAAkB,CAAC,KAAA,EAAc,QAAA,KAAsB;AAClE,EAAc;AACZ,IAAA,OAAO,KAAA,CAAM,OAAA,CAAQ,IAAA,KAAS,MAAA,GAAS,WAAA,GAAc,SAAA;AAAA,EACvD;AAEF;;;;"}
|
package/package.json
CHANGED
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import { makeStyles } from '@material-ui/core';
|
|
2
|
-
|
|
3
|
-
const white = "#FFFFFF";
|
|
4
|
-
const orange50 = "#FCEBCD";
|
|
5
|
-
const orange100 = "#FFDD9D";
|
|
6
|
-
const orange300 = "#CF914A";
|
|
7
|
-
const red100 = "#FFE2D4";
|
|
8
|
-
const red200 = "#EBB095";
|
|
9
|
-
const red400 = "#D04A14";
|
|
10
|
-
const red500 = "#A32F00";
|
|
11
|
-
const green100 = "#D0ECD6";
|
|
12
|
-
const green300 = "#66B077";
|
|
13
|
-
const green500 = "#156630";
|
|
14
|
-
const gray50 = "#F5F2F2";
|
|
15
|
-
const gray400 = "#706F6E";
|
|
16
|
-
const gray600 = "#4A4848";
|
|
17
|
-
const gray900 = "#212121";
|
|
18
|
-
const removedColor = (theme) => theme.palette.type === "dark" ? red100 : red500;
|
|
19
|
-
const addedColor = (theme) => theme.palette.type === "dark" ? green100 : green500;
|
|
20
|
-
const fontColorLight = gray50;
|
|
21
|
-
const fontColorDark = gray900;
|
|
22
|
-
const fontSizeTitle = "18px";
|
|
23
|
-
const lineHeightTitle = "26px";
|
|
24
|
-
const fontSizeNormal = "14px";
|
|
25
|
-
const fontWeightBold = 700;
|
|
26
|
-
const fontWeightSemiBold = 500;
|
|
27
|
-
const useChangeSetStyles = makeStyles((theme) => ({
|
|
28
|
-
// ChangeSetBox
|
|
29
|
-
box: {
|
|
30
|
-
padding: "14px 18px",
|
|
31
|
-
height: "100%",
|
|
32
|
-
borderRadius: "24px",
|
|
33
|
-
color: theme.palette.type === "dark" ? fontColorLight : fontColorDark,
|
|
34
|
-
fontSize: fontSizeNormal
|
|
35
|
-
},
|
|
36
|
-
boxPrimary: {
|
|
37
|
-
backgroundColor: theme.palette.type === "dark" ? gray400 : orange50,
|
|
38
|
-
marginBottom: "24px"
|
|
39
|
-
},
|
|
40
|
-
boxSecondary: {
|
|
41
|
-
backgroundColor: theme.palette.type === "dark" ? gray600 : white,
|
|
42
|
-
marginBottom: "12px"
|
|
43
|
-
},
|
|
44
|
-
// ChangeSetBoxTitle
|
|
45
|
-
boxTitle: {
|
|
46
|
-
fontWeight: fontWeightBold,
|
|
47
|
-
fontSize: fontSizeTitle,
|
|
48
|
-
lineHeight: "26px",
|
|
49
|
-
marginBottom: "12px"
|
|
50
|
-
},
|
|
51
|
-
// ChangeSetPropertyBase
|
|
52
|
-
property: {
|
|
53
|
-
marginBottom: "12px"
|
|
54
|
-
},
|
|
55
|
-
propertyTitle: {
|
|
56
|
-
fontWeight: fontWeightBold,
|
|
57
|
-
color: theme.palette.type === "dark" ? fontColorLight : fontColorDark
|
|
58
|
-
},
|
|
59
|
-
// ChangeSetChangedValue
|
|
60
|
-
changedProperty: {
|
|
61
|
-
fontWeight: fontWeightBold
|
|
62
|
-
},
|
|
63
|
-
oldValue: {
|
|
64
|
-
fontWeight: fontWeightBold,
|
|
65
|
-
color: removedColor(theme),
|
|
66
|
-
textDecoration: "line-through"
|
|
67
|
-
},
|
|
68
|
-
newValue: {
|
|
69
|
-
fontWeight: fontWeightBold,
|
|
70
|
-
color: addedColor(theme)
|
|
71
|
-
},
|
|
72
|
-
// ChangeSetRemovedProperty
|
|
73
|
-
removedPropertyContainer: {
|
|
74
|
-
marginBottom: "8px"
|
|
75
|
-
},
|
|
76
|
-
removedProperty: {
|
|
77
|
-
fontWeight: fontWeightBold,
|
|
78
|
-
color: removedColor(theme),
|
|
79
|
-
textDecoration: "line-through",
|
|
80
|
-
fontSize: fontSizeTitle,
|
|
81
|
-
lineHeight: lineHeightTitle
|
|
82
|
-
},
|
|
83
|
-
// ChangeSetRemovedValue
|
|
84
|
-
removedValue: {
|
|
85
|
-
fontWeight: fontWeightSemiBold,
|
|
86
|
-
color: removedColor(theme),
|
|
87
|
-
textDecoration: "line-through",
|
|
88
|
-
fontSize: fontSizeNormal
|
|
89
|
-
},
|
|
90
|
-
// ChangeSetAddedValue
|
|
91
|
-
addedValue: {
|
|
92
|
-
fontWeight: fontWeightSemiBold,
|
|
93
|
-
color: addedColor(theme),
|
|
94
|
-
fontSize: fontSizeNormal
|
|
95
|
-
},
|
|
96
|
-
// ChangeSetTag
|
|
97
|
-
tag: {
|
|
98
|
-
borderRadius: "24px",
|
|
99
|
-
width: "fit-content",
|
|
100
|
-
padding: "1px 8px",
|
|
101
|
-
border: "1px solid",
|
|
102
|
-
color: fontColorDark
|
|
103
|
-
},
|
|
104
|
-
tagPrimary: {
|
|
105
|
-
backgroundColor: orange100,
|
|
106
|
-
borderColor: orange300
|
|
107
|
-
},
|
|
108
|
-
tagDelete: {
|
|
109
|
-
backgroundColor: red200,
|
|
110
|
-
borderColor: red400
|
|
111
|
-
},
|
|
112
|
-
tagAdded: {
|
|
113
|
-
backgroundColor: green100,
|
|
114
|
-
borderColor: green300
|
|
115
|
-
},
|
|
116
|
-
// ChangeSetTags
|
|
117
|
-
tags: {
|
|
118
|
-
marginBottom: "4px",
|
|
119
|
-
display: "flex",
|
|
120
|
-
gap: "4px"
|
|
121
|
-
},
|
|
122
|
-
// ChangeSetText
|
|
123
|
-
text: {
|
|
124
|
-
fontWeight: fontWeightSemiBold,
|
|
125
|
-
color: theme.palette.type === "dark" ? fontColorLight : fontColorDark
|
|
126
|
-
},
|
|
127
|
-
// ChangeSetText
|
|
128
|
-
bodyText: {
|
|
129
|
-
color: theme.palette.type === "dark" ? fontColorLight : fontColorDark,
|
|
130
|
-
marginTop: 0,
|
|
131
|
-
marginBottom: "4px"
|
|
132
|
-
},
|
|
133
|
-
// ChangeSetTitle
|
|
134
|
-
title: {
|
|
135
|
-
textTransform: "uppercase",
|
|
136
|
-
letterSpacing: "1px",
|
|
137
|
-
color: theme.palette.type === "dark" ? fontColorLight : fontColorDark,
|
|
138
|
-
fontWeight: fontWeightBold,
|
|
139
|
-
fontSize: fontSizeNormal,
|
|
140
|
-
marginBottom: "12px"
|
|
141
|
-
},
|
|
142
|
-
// ChangeSetTwoColumnSplit
|
|
143
|
-
twoColumnSplit: {
|
|
144
|
-
display: "grid",
|
|
145
|
-
gridTemplateColumns: "1fr 1fr",
|
|
146
|
-
gap: "18px",
|
|
147
|
-
marginBottom: "12px"
|
|
148
|
-
},
|
|
149
|
-
// ChangeSetColumn
|
|
150
|
-
firstColumn: {
|
|
151
|
-
gridColumn: 1
|
|
152
|
-
},
|
|
153
|
-
secondColumn: {
|
|
154
|
-
gridColumn: 2
|
|
155
|
-
}
|
|
156
|
-
}));
|
|
157
|
-
|
|
158
|
-
export { fontWeightBold, useChangeSetStyles };
|
|
159
|
-
//# sourceMappingURL=changeSetStyles.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"changeSetStyles.esm.js","sources":["../../../../../src/components/riScInfo/changeset/components/changeSetStyles.ts"],"sourcesContent":["import { makeStyles, Theme } from '@material-ui/core';\n\n// Retrieved from Kartverket's colour profile\nconst white = '#FFFFFF';\nconst orange50 = '#FCEBCD';\nconst orange100 = '#FFDD9D';\nconst orange300 = '#CF914A';\nconst red100 = '#FFE2D4';\nconst red200 = '#EBB095';\nconst red400 = '#D04A14';\nconst red500 = '#A32F00';\nconst green100 = '#D0ECD6';\nconst green200 = '#9FD2AB';\nconst green300 = '#66B077';\nconst green500 = '#156630';\nconst gray50 = '#F5F2F2';\nconst gray400 = '#706F6E';\nconst gray600 = '#4A4848';\nconst gray900 = '#212121';\n\nconst removedColor = (theme: Theme) =>\n theme.palette.type === 'dark' ? red100 : red500;\nconst addedColor = (theme: Theme) =>\n theme.palette.type === 'dark' ? green100 : green500;\n\nexport const interactiveColor = (theme: Theme) =>\n theme.palette.type === 'dark' ? green200 : green500;\n\nconst fontColorLight = gray50;\nconst fontColorDark = gray900;\n\nconst fontSizeTitle = '18px';\nconst lineHeightTitle = '26px';\nconst fontSizeNormal = '14px';\nexport const fontWeightBold = 700;\nconst fontWeightSemiBold = 500;\n\nexport const useChangeSetStyles = makeStyles((theme: Theme) => ({\n // ChangeSetBox\n box: {\n padding: '14px 18px',\n height: '100%',\n borderRadius: '24px',\n color: theme.palette.type === 'dark' ? fontColorLight : fontColorDark,\n fontSize: fontSizeNormal,\n },\n boxPrimary: {\n backgroundColor: theme.palette.type === 'dark' ? gray400 : orange50,\n marginBottom: '24px',\n },\n boxSecondary: {\n backgroundColor: theme.palette.type === 'dark' ? gray600 : white,\n marginBottom: '12px',\n },\n\n // ChangeSetBoxTitle\n boxTitle: {\n fontWeight: fontWeightBold,\n fontSize: fontSizeTitle,\n lineHeight: '26px',\n marginBottom: '12px',\n },\n\n // ChangeSetPropertyBase\n property: {\n marginBottom: '12px',\n },\n propertyTitle: {\n fontWeight: fontWeightBold,\n color: theme.palette.type === 'dark' ? fontColorLight : fontColorDark,\n },\n\n // ChangeSetChangedValue\n changedProperty: {\n fontWeight: fontWeightBold,\n },\n oldValue: {\n fontWeight: fontWeightBold,\n color: removedColor(theme),\n textDecoration: 'line-through',\n },\n newValue: {\n fontWeight: fontWeightBold,\n color: addedColor(theme),\n },\n\n // ChangeSetRemovedProperty\n removedPropertyContainer: {\n marginBottom: '8px',\n },\n removedProperty: {\n fontWeight: fontWeightBold,\n color: removedColor(theme),\n textDecoration: 'line-through',\n fontSize: fontSizeTitle,\n lineHeight: lineHeightTitle,\n },\n\n // ChangeSetRemovedValue\n removedValue: {\n fontWeight: fontWeightSemiBold,\n color: removedColor(theme),\n textDecoration: 'line-through',\n fontSize: fontSizeNormal,\n },\n\n // ChangeSetAddedValue\n addedValue: {\n fontWeight: fontWeightSemiBold,\n color: addedColor(theme),\n fontSize: fontSizeNormal,\n },\n\n // ChangeSetTag\n tag: {\n borderRadius: '24px',\n width: 'fit-content',\n padding: '1px 8px',\n border: '1px solid',\n color: fontColorDark,\n },\n tagPrimary: {\n backgroundColor: orange100,\n borderColor: orange300,\n },\n tagDelete: {\n backgroundColor: red200,\n borderColor: red400,\n },\n tagAdded: {\n backgroundColor: green100,\n borderColor: green300,\n },\n\n // ChangeSetTags\n tags: {\n marginBottom: '4px',\n display: 'flex',\n gap: '4px',\n },\n\n // ChangeSetText\n text: {\n fontWeight: fontWeightSemiBold,\n color: theme.palette.type === 'dark' ? fontColorLight : fontColorDark,\n },\n\n // ChangeSetText\n bodyText: {\n color: theme.palette.type === 'dark' ? fontColorLight : fontColorDark,\n marginTop: 0,\n marginBottom: '4px',\n },\n\n // ChangeSetTitle\n title: {\n textTransform: 'uppercase',\n letterSpacing: '1px',\n color: theme.palette.type === 'dark' ? fontColorLight : fontColorDark,\n fontWeight: fontWeightBold,\n fontSize: fontSizeNormal,\n marginBottom: '12px',\n },\n\n // ChangeSetTwoColumnSplit\n twoColumnSplit: {\n display: 'grid',\n gridTemplateColumns: '1fr 1fr',\n gap: '18px',\n marginBottom: '12px',\n },\n\n // ChangeSetColumn\n firstColumn: {\n gridColumn: 1,\n },\n\n secondColumn: {\n gridColumn: 2,\n },\n}));\n"],"names":[],"mappings":"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"}
|