react-science 0.19.2 → 0.20.0
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/lib/app/about/AboutDialogToolbarButton.js +10 -10
- package/lib/app/explorer/MeasurementExplorer.js +36 -43
- package/lib/app/helpers/react-plot.js +16 -13
- package/lib/app/kinds/iv/plot-view/IvPlotView.js +14 -13
- package/lib/app/panels/measurements/MeasurementCheckbox.js +10 -8
- package/lib/app/panels/measurements/MeasurementColorPreview.js +9 -7
- package/lib/app/panels/measurements/MeasurementsTable.js +81 -94
- package/lib/components/button/ButtonGroup.js +31 -43
- package/lib/components/color-picker/color-picker-dropdown/ColorPickerDropdown.js +18 -21
- package/lib/components/drop-zone/DropZone.js +48 -48
- package/lib/components/dropdown-menu/DropdownMenu.js +4 -4
- package/lib/components/forms/Input.js +150 -0
- package/lib/components/forms/context/FieldsContext.js +54 -0
- package/lib/components/forms/context/index.js +17 -0
- package/lib/components/forms/index.js +18 -0
- package/lib/components/index.js +1 -0
- package/lib/components/modal/ConfirmModal.js +40 -29
- package/lib/components/modal/Modal.js +45 -34
- package/lib/components/root-layout/RootLayout.js +1 -1
- package/lib/components/root-layout/css-reset/customPreflight.js +10 -3
- package/lib/components/spinner/FullSpinner.js +10 -7
- package/lib-esm/app/about/AboutDialogToolbarButton.d.ts +1 -1
- package/lib-esm/app/about/AboutDialogToolbarButton.d.ts.map +1 -1
- package/lib-esm/app/about/AboutDialogToolbarButton.js +7 -10
- package/lib-esm/app/about/AboutDialogToolbarButton.js.map +1 -1
- package/lib-esm/app/explorer/MeasurementExplorer.d.ts +2 -1
- package/lib-esm/app/explorer/MeasurementExplorer.d.ts.map +1 -1
- package/lib-esm/app/explorer/MeasurementExplorer.js +31 -41
- package/lib-esm/app/explorer/MeasurementExplorer.js.map +1 -1
- package/lib-esm/app/helpers/MeasurementPlot.js.map +1 -1
- package/lib-esm/app/helpers/react-plot.d.ts +4 -2
- package/lib-esm/app/helpers/react-plot.d.ts.map +1 -1
- package/lib-esm/app/helpers/react-plot.js +11 -11
- package/lib-esm/app/helpers/react-plot.js.map +1 -1
- package/lib-esm/app/kinds/iv/plot-view/IvPlotView.d.ts +2 -1
- package/lib-esm/app/kinds/iv/plot-view/IvPlotView.d.ts.map +1 -1
- package/lib-esm/app/kinds/iv/plot-view/IvPlotView.js +14 -13
- package/lib-esm/app/kinds/iv/plot-view/IvPlotView.js.map +1 -1
- package/lib-esm/app/panels/measurements/MeasurementCheckbox.d.ts +2 -1
- package/lib-esm/app/panels/measurements/MeasurementCheckbox.d.ts.map +1 -1
- package/lib-esm/app/panels/measurements/MeasurementCheckbox.js +4 -5
- package/lib-esm/app/panels/measurements/MeasurementCheckbox.js.map +1 -1
- package/lib-esm/app/panels/measurements/MeasurementColorPreview.d.ts +2 -1
- package/lib-esm/app/panels/measurements/MeasurementColorPreview.d.ts.map +1 -1
- package/lib-esm/app/panels/measurements/MeasurementColorPreview.js +4 -5
- package/lib-esm/app/panels/measurements/MeasurementColorPreview.js.map +1 -1
- package/lib-esm/app/panels/measurements/MeasurementsTable.d.ts +2 -1
- package/lib-esm/app/panels/measurements/MeasurementsTable.d.ts.map +1 -1
- package/lib-esm/app/panels/measurements/MeasurementsTable.js +81 -94
- package/lib-esm/app/panels/measurements/MeasurementsTable.js.map +1 -1
- package/lib-esm/components/button/ButtonGroup.d.ts +2 -2
- package/lib-esm/components/button/ButtonGroup.d.ts.map +1 -1
- package/lib-esm/components/button/ButtonGroup.js +28 -43
- package/lib-esm/components/button/ButtonGroup.js.map +1 -1
- package/lib-esm/components/color-picker/color-picker-dropdown/ColorPickerDropdown.d.ts +2 -1
- package/lib-esm/components/color-picker/color-picker-dropdown/ColorPickerDropdown.d.ts.map +1 -1
- package/lib-esm/components/color-picker/color-picker-dropdown/ColorPickerDropdown.js +16 -19
- package/lib-esm/components/color-picker/color-picker-dropdown/ColorPickerDropdown.js.map +1 -1
- package/lib-esm/components/drop-zone/DropZone.d.ts +2 -2
- package/lib-esm/components/drop-zone/DropZone.d.ts.map +1 -1
- package/lib-esm/components/drop-zone/DropZone.js +42 -45
- package/lib-esm/components/drop-zone/DropZone.js.map +1 -1
- package/lib-esm/components/dropdown-menu/DropdownMenu.js +4 -4
- package/lib-esm/components/dropdown-menu/DropdownMenu.js.map +1 -1
- package/lib-esm/components/forms/Input.d.ts +17 -0
- package/lib-esm/components/forms/Input.d.ts.map +1 -0
- package/lib-esm/components/forms/Input.js +144 -0
- package/lib-esm/components/forms/Input.js.map +1 -0
- package/lib-esm/components/forms/context/FieldsContext.d.ts +16 -0
- package/lib-esm/components/forms/context/FieldsContext.d.ts.map +1 -0
- package/lib-esm/components/forms/context/FieldsContext.js +47 -0
- package/lib-esm/components/forms/context/FieldsContext.js.map +1 -0
- package/lib-esm/components/forms/context/index.d.ts +2 -0
- package/lib-esm/components/forms/context/index.d.ts.map +1 -0
- package/lib-esm/components/forms/context/index.js +2 -0
- package/lib-esm/components/forms/context/index.js.map +1 -0
- package/lib-esm/components/forms/index.d.ts +3 -0
- package/lib-esm/components/forms/index.d.ts.map +1 -0
- package/lib-esm/components/forms/index.js +3 -0
- package/lib-esm/components/forms/index.js.map +1 -0
- package/lib-esm/components/index.d.ts +1 -0
- package/lib-esm/components/index.d.ts.map +1 -1
- package/lib-esm/components/index.js +1 -0
- package/lib-esm/components/index.js.map +1 -1
- package/lib-esm/components/modal/ConfirmModal.d.ts +1 -1
- package/lib-esm/components/modal/ConfirmModal.d.ts.map +1 -1
- package/lib-esm/components/modal/ConfirmModal.js +37 -29
- package/lib-esm/components/modal/ConfirmModal.js.map +1 -1
- package/lib-esm/components/modal/Modal.d.ts +4 -4
- package/lib-esm/components/modal/Modal.d.ts.map +1 -1
- package/lib-esm/components/modal/Modal.js +45 -34
- package/lib-esm/components/modal/Modal.js.map +1 -1
- package/lib-esm/components/root-layout/RootLayout.d.ts.map +1 -1
- package/lib-esm/components/root-layout/RootLayout.js +2 -2
- package/lib-esm/components/root-layout/RootLayout.js.map +1 -1
- package/lib-esm/components/root-layout/css-reset/customPreflight.d.ts +5 -1
- package/lib-esm/components/root-layout/css-reset/customPreflight.d.ts.map +1 -1
- package/lib-esm/components/root-layout/css-reset/customPreflight.js +6 -2
- package/lib-esm/components/root-layout/css-reset/customPreflight.js.map +1 -1
- package/lib-esm/components/spinner/FullSpinner.d.ts +7 -1
- package/lib-esm/components/spinner/FullSpinner.d.ts.map +1 -1
- package/lib-esm/components/spinner/FullSpinner.js +8 -8
- package/lib-esm/components/spinner/FullSpinner.js.map +1 -1
- package/package.json +1 -1
- package/src/app/about/AboutDialogToolbarButton.tsx +6 -9
- package/src/app/explorer/MeasurementExplorer.tsx +47 -59
- package/src/app/helpers/MeasurementPlot.tsx +1 -0
- package/src/app/helpers/react-plot.tsx +24 -19
- package/src/app/kinds/iv/plot-view/IvPlotView.tsx +18 -19
- package/src/app/panels/measurements/MeasurementCheckbox.tsx +3 -5
- package/src/app/panels/measurements/MeasurementColorPreview.tsx +4 -6
- package/src/app/panels/measurements/MeasurementsTable.tsx +112 -115
- package/src/components/button/ButtonGroup.tsx +30 -44
- package/src/components/color-picker/color-picker-dropdown/ColorPickerDropdown.tsx +19 -26
- package/src/components/drop-zone/DropZone.tsx +54 -56
- package/src/components/dropdown-menu/DropdownMenu.tsx +19 -17
- package/src/components/forms/Input.tsx +255 -0
- package/src/components/forms/context/FieldsContext.tsx +82 -0
- package/src/components/forms/context/index.ts +1 -0
- package/src/components/forms/index.ts +2 -0
- package/src/components/index.ts +1 -0
- package/src/components/modal/ConfirmModal.tsx +49 -44
- package/src/components/modal/Modal.tsx +54 -58
- package/src/components/root-layout/RootLayout.tsx +3 -7
- package/src/components/root-layout/css-reset/customPreflight.ts +6 -2
- package/src/components/spinner/FullSpinner.tsx +14 -9
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { FullSpinner } from '../index';
|
|
4
|
+
import { useFieldsContext } from './context/FieldsContext';
|
|
5
|
+
const LabelStyled = styled.label `
|
|
6
|
+
padding: ${(props) => props.variant === 'default'
|
|
7
|
+
? props.hasTrailing
|
|
8
|
+
? '2px 9px 4px 9px'
|
|
9
|
+
: '2px 9px'
|
|
10
|
+
: props.hasTrailing
|
|
11
|
+
? '1px 7px 1px 7px'
|
|
12
|
+
: '1px 7px'};
|
|
13
|
+
|
|
14
|
+
font-size: ${(props) => (props.variant === 'small' ? '1em' : '1.125em')};
|
|
15
|
+
line-height: '17px';
|
|
16
|
+
|
|
17
|
+
background-color: white;
|
|
18
|
+
border-width: 1px;
|
|
19
|
+
align-items: center;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
flex: 1 1 0%;
|
|
22
|
+
display: flex;
|
|
23
|
+
position: relative;
|
|
24
|
+
|
|
25
|
+
border-top-right-radius: ${(props) => props.hasLeading && !props.hasTrailing && '0.375rem'};
|
|
26
|
+
|
|
27
|
+
border-bottom-right-radius: ${(props) => props.hasLeading && !props.hasTrailing && '0.375rem'};
|
|
28
|
+
|
|
29
|
+
border-top-left-radius: ${(props) => props.hasTrailing && !props.hasLeading && '0.375rem'};
|
|
30
|
+
|
|
31
|
+
border-bottom-left-radius: ${(props) => props.hasTrailing && !props.hasLeading && '0.375rem'};
|
|
32
|
+
|
|
33
|
+
border-radius: ${(props) => !props.hasLeading && !props.hasTrailing && '0.375rem'};
|
|
34
|
+
|
|
35
|
+
border-color: var(--custom-border-color);
|
|
36
|
+
`;
|
|
37
|
+
function getStyleColor(hasError, hasValid) {
|
|
38
|
+
if (hasError) {
|
|
39
|
+
return {
|
|
40
|
+
default: '#ffa39e',
|
|
41
|
+
hover: '#f95d55',
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
if (hasValid) {
|
|
45
|
+
return {
|
|
46
|
+
default: '#6adc24',
|
|
47
|
+
hover: '#62cb21',
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
default: 'rgb(217, 217, 217)',
|
|
52
|
+
hover: '#4096ff',
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
const GroupStyled = styled.div `
|
|
56
|
+
display: flex;
|
|
57
|
+
border-radius: 0.375rem;
|
|
58
|
+
margin-top: 0.25rem;
|
|
59
|
+
|
|
60
|
+
.addon {
|
|
61
|
+
color: ${({ hasError }) => hasError && '#f95d55'};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
--custom-border-color: ${({ hasError, hasValid }) => getStyleColor(hasError, hasValid).default};
|
|
65
|
+
|
|
66
|
+
:hover,
|
|
67
|
+
:focus-within {
|
|
68
|
+
--custom-border-color: ${({ hasError, hasValid }) => getStyleColor(hasError, hasValid).hover};
|
|
69
|
+
}
|
|
70
|
+
`;
|
|
71
|
+
const InputStyled = styled.input `
|
|
72
|
+
padding: 0;
|
|
73
|
+
flex: 1 1 0%;
|
|
74
|
+
border: none;
|
|
75
|
+
position: relative;
|
|
76
|
+
outline: none;
|
|
77
|
+
`;
|
|
78
|
+
const LeadingAddonStyled = styled.div `
|
|
79
|
+
padding-left: 0.75rem;
|
|
80
|
+
padding-right: 0.75rem;
|
|
81
|
+
border-right-width: 0px;
|
|
82
|
+
border-width: 1px;
|
|
83
|
+
border-top-left-radius: 0.375rem;
|
|
84
|
+
border-bottom-left-radius: 0.375rem;
|
|
85
|
+
align-items: center;
|
|
86
|
+
display: inline-flex;
|
|
87
|
+
|
|
88
|
+
border-right: none;
|
|
89
|
+
|
|
90
|
+
border-color: var(--custom-border-color);
|
|
91
|
+
`;
|
|
92
|
+
const TrailingAddonStyled = styled.div `
|
|
93
|
+
padding-left: 0.75rem;
|
|
94
|
+
padding-right: 0.75rem;
|
|
95
|
+
border-left-width: 0px;
|
|
96
|
+
border-width: 1px;
|
|
97
|
+
border-top-right-radius: 0.375rem;
|
|
98
|
+
border-bottom-right-radius: 0.375rem;
|
|
99
|
+
align-items: center;
|
|
100
|
+
display: inline-flex;
|
|
101
|
+
|
|
102
|
+
border-left: none;
|
|
103
|
+
|
|
104
|
+
border-color: var(--custom-border-color);
|
|
105
|
+
`;
|
|
106
|
+
const LeadingInlineAddonStyled = styled.div `
|
|
107
|
+
display: flex;
|
|
108
|
+
align-items: center;
|
|
109
|
+
padding-right: 0.5rem;
|
|
110
|
+
`;
|
|
111
|
+
const TrailingInlineAddonStyled = styled.div `
|
|
112
|
+
display: flex;
|
|
113
|
+
align-items: center;
|
|
114
|
+
padding-left: 0.5rem;
|
|
115
|
+
`;
|
|
116
|
+
const RootInput = styled.div `
|
|
117
|
+
display: flex;
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
gap: 2px;
|
|
120
|
+
`;
|
|
121
|
+
export function Input(props) {
|
|
122
|
+
const { variant: variantProps, trailingAddon, leadingAddon, help, error, valid, loading, ...otherProps } = props;
|
|
123
|
+
const { name, variant: contextVariant } = useFieldsContext();
|
|
124
|
+
const hasLeading = (leadingAddon && !leadingAddon.inline) || false;
|
|
125
|
+
const hasTrailing = (trailingAddon && !trailingAddon.inline) || false;
|
|
126
|
+
const variant = variantProps || contextVariant;
|
|
127
|
+
return (_jsxs(RootInput, { children: [_jsxs(GroupStyled, { hasError: !!error, hasValid: !!valid, children: [leadingAddon && !leadingAddon.inline && (_jsx(LeadingAddonStyled, { children: leadingAddon.addon })), _jsxs(LabelStyled, { variant: variant, hasLeading: hasLeading, hasTrailing: hasTrailing, children: [leadingAddon?.inline && (_jsx(LeadingInlineAddonStyled, { className: "addon", children: leadingAddon.addon })), _jsx(InputStyled, { id: name, name: name, ...otherProps }), trailingAddon?.inline && (_jsx(TrailingInlineAddonStyled, { className: "addon", children: trailingAddon.addon })), loading && (_jsx(TrailingInlineAddonStyled, { style: { height: variant === 'default' ? 20 : 10 }, children: _jsx(FullSpinner, { height: variant === 'default' ? 20 : 10, width: variant === 'default' ? 20 : 10 }) }))] }), trailingAddon && !trailingAddon.inline && (_jsx(TrailingAddonStyled, { children: trailingAddon.addon }))] }), _jsx(SubText, { error: error, help: help, valid: valid })] }));
|
|
128
|
+
}
|
|
129
|
+
function SubText(props) {
|
|
130
|
+
const { error, help, valid: validProps } = props;
|
|
131
|
+
const valid = typeof validProps === 'string' ? validProps : undefined;
|
|
132
|
+
const text = error || valid || help;
|
|
133
|
+
return _jsx("p", { style: { color: getColor(error, validProps) }, children: text });
|
|
134
|
+
}
|
|
135
|
+
function getColor(error, valid) {
|
|
136
|
+
if (error) {
|
|
137
|
+
return '#f95d55';
|
|
138
|
+
}
|
|
139
|
+
if (valid && typeof valid !== 'boolean') {
|
|
140
|
+
return '#62cb21';
|
|
141
|
+
}
|
|
142
|
+
return 'gray';
|
|
143
|
+
}
|
|
144
|
+
//# sourceMappingURL=Input.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.js","sourceRoot":"","sources":["../../../src/components/forms/Input.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAU3D,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAa;aAChC,CAAC,KAAK,EAAE,EAAE,CACnB,KAAK,CAAC,OAAO,KAAK,SAAS;IACzB,CAAC,CAAC,KAAK,CAAC,WAAW;QACjB,CAAC,CAAC,iBAAiB;QACnB,CAAC,CAAC,SAAS;IACb,CAAC,CAAC,KAAK,CAAC,WAAW;QACnB,CAAC,CAAC,iBAAiB;QACnB,CAAC,CAAC,SAAS;;eAEF,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;;;;;;;;;;;6BAW5C,CAAC,KAAK,EAAE,EAAE,CACnC,KAAK,CAAC,UAAU,IAAI,CAAC,KAAK,CAAC,WAAW,IAAI,UAAU;;gCAExB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AErB,IAAI,KAAK,EAAE;QACT,OAAO,SAAS,CAAC;KAClB;IAED,IAAI,KAAK,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;QACvC,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
interface FieldContext {
|
|
3
|
+
name?: string;
|
|
4
|
+
variant: 'default' | 'small';
|
|
5
|
+
}
|
|
6
|
+
interface FieldProps {
|
|
7
|
+
name: string;
|
|
8
|
+
label: string;
|
|
9
|
+
children: ReactNode;
|
|
10
|
+
variant?: 'default' | 'small';
|
|
11
|
+
required?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function useFieldsContext(): FieldContext;
|
|
14
|
+
export declare function Field(props: FieldProps): JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=FieldsContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldsContext.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/context/FieldsContext.tsx"],"names":[],"mappings":"AACA,OAAO,EAAiB,SAAS,EAAuB,MAAM,OAAO,CAAC;AAEtE,UAAU,YAAY;IACpB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,SAAS,GAAG,OAAO,CAAC;CAC9B;AAED,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,CAAC;IACpB,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAoCD,wBAAgB,gBAAgB,IAAI,YAAY,CAQ/C;AAED,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,eAqBtC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled from '@emotion/styled';
|
|
3
|
+
import { createContext, useContext, useMemo } from 'react';
|
|
4
|
+
const context = createContext(null);
|
|
5
|
+
const FieldContextRoot = styled.div `
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-flow: row;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
margin: 0;
|
|
10
|
+
padding: 0;
|
|
11
|
+
gap: 5px;
|
|
12
|
+
`;
|
|
13
|
+
const Label = styled.label `
|
|
14
|
+
position: relative;
|
|
15
|
+
display: inline-flex;
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
line-height: ${(props) => (props.variant === 'small' ? '28px' : '32px')};
|
|
18
|
+
font-size: ${(props) => (props.variant === 'small' ? '1em' : '1.125em')};
|
|
19
|
+
white-space: nowrap;
|
|
20
|
+
text-align: end;
|
|
21
|
+
`;
|
|
22
|
+
const LabelContainer = styled.div `
|
|
23
|
+
flex-grow: 0;
|
|
24
|
+
display: inline-block;
|
|
25
|
+
overflow: hidden;
|
|
26
|
+
text-align: end;
|
|
27
|
+
vertical-align: middle;
|
|
28
|
+
white-space: nowrap;
|
|
29
|
+
`;
|
|
30
|
+
const FieldContextRequired = styled.span `
|
|
31
|
+
color: red;
|
|
32
|
+
`;
|
|
33
|
+
export function useFieldsContext() {
|
|
34
|
+
const ctx = useContext(context);
|
|
35
|
+
if (!ctx) {
|
|
36
|
+
return { name: undefined, variant: 'default' };
|
|
37
|
+
}
|
|
38
|
+
return ctx;
|
|
39
|
+
}
|
|
40
|
+
export function Field(props) {
|
|
41
|
+
const { label, name, children, required, variant } = props;
|
|
42
|
+
const memoized = useMemo(() => {
|
|
43
|
+
return { name, variant: variant || 'default' };
|
|
44
|
+
}, [name, variant]);
|
|
45
|
+
return (_jsx(context.Provider, { value: memoized, children: _jsxs(FieldContextRoot, { children: [_jsx(LabelContainer, { children: _jsxs(Label, { htmlFor: name, variant: memoized.variant, children: [label, " ", required && _jsx(FieldContextRequired, { children: "*" }), ":", ' '] }) }), children] }) }));
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=FieldsContext.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FieldsContext.js","sourceRoot":"","sources":["../../../../src/components/forms/context/FieldsContext.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,EAAE,aAAa,EAAa,UAAU,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAetE,MAAM,OAAO,GAAG,aAAa,CAAsB,IAAI,CAAC,CAAC;AAEzD,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAOlC,CAAC;AAEF,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAoC;;;;iBAI7C,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC;eAC1D,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;;;CAGxE,CAAC;AAEF,MAAM,cAAc,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;CAOhC,CAAC;AAEF,MAAM,oBAAoB,GAAG,MAAM,CAAC,IAAI,CAAA;;CAEvC,CAAC;AAEF,MAAM,UAAU,gBAAgB;IAC9B,MAAM,GAAG,GAAG,UAAU,CAAC,OAAO,CAAC,CAAC;IAEhC,IAAI,CAAC,GAAG,EAAE;QACR,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;KAChD;IAED,OAAO,GAAG,CAAC;AACb,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,KAAiB;IACrC,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,KAAK,CAAC;IAE3D,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,EAAE;QAC5B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,CAAC;IACjD,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC;IAEpB,OAAO,CACL,KAAC,OAAO,CAAC,QAAQ,IAAC,KAAK,EAAE,QAAQ,YAC/B,MAAC,gBAAgB,eACf,KAAC,cAAc,cACb,MAAC,KAAK,IAAC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,QAAQ,CAAC,OAAO,aAC5C,KAAK,OAAG,QAAQ,IAAI,KAAC,oBAAoB,oBAAyB,OACjE,GAAG,IACC,GACO,EAEhB,QAAQ,IACQ,GACF,CACpB,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/forms/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/forms/context/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/forms/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
|
|
@@ -3,6 +3,7 @@ export * from './button/index';
|
|
|
3
3
|
export * from './color-picker/index';
|
|
4
4
|
export * from './drop-zone/index';
|
|
5
5
|
export * from './dropdown-menu/index';
|
|
6
|
+
export * from './forms/index';
|
|
6
7
|
export * from './fullscreen/index';
|
|
7
8
|
export * from './header/index';
|
|
8
9
|
export * from './hooks/index';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC"}
|
|
@@ -3,6 +3,7 @@ export * from './button/index';
|
|
|
3
3
|
export * from './color-picker/index';
|
|
4
4
|
export * from './drop-zone/index';
|
|
5
5
|
export * from './dropdown-menu/index';
|
|
6
|
+
export * from './forms/index';
|
|
6
7
|
export * from './fullscreen/index';
|
|
7
8
|
export * from './header/index';
|
|
8
9
|
export * from './hooks/index';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,wBAAwB,CAAC;AACvC,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,OAAO,KAAK,cAAc,MAAM,yBAAyB,CAAC"}
|
|
@@ -12,6 +12,6 @@ interface ConfirmModalProps {
|
|
|
12
12
|
headerColor: string;
|
|
13
13
|
maxWidth?: number;
|
|
14
14
|
}
|
|
15
|
-
export declare function ConfirmModal(props: ConfirmModalProps):
|
|
15
|
+
export declare function ConfirmModal(props: ConfirmModalProps): JSX.Element;
|
|
16
16
|
export {};
|
|
17
17
|
//# sourceMappingURL=ConfirmModal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/ConfirmModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ConfirmModal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/ConfirmModal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,UAAU,iBAAiB;IACzB,QAAQ,EAAE,SAAS,CAAC;IACpB,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AA0CD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,eAwDpD"}
|
|
@@ -1,8 +1,41 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
2
|
-
|
|
3
|
-
import { css } from '@emotion/react';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled from '@emotion/styled';
|
|
4
3
|
import { Button } from '..';
|
|
5
4
|
import { useDialog } from './useDialog';
|
|
5
|
+
const ConfirmModalDialog = styled.dialog `
|
|
6
|
+
display: flex;
|
|
7
|
+
position: fixed;
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
|
|
10
|
+
::backdrop {
|
|
11
|
+
background-color: rgba(113, 113, 122, 0.75);
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
const ConfirmModalOpened = styled.div `
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
background-color: white;
|
|
19
|
+
max-height: 90%;
|
|
20
|
+
width: 100%;
|
|
21
|
+
border-width: 1px;
|
|
22
|
+
border-color: transparent;
|
|
23
|
+
border-radius: 0.5rem;
|
|
24
|
+
box-shadow: 0 0 0 0, 0 8px 16px rgba(0, 0, 0, 0.3);
|
|
25
|
+
border-top: 10px solid ${({ headerColor }) => headerColor};
|
|
26
|
+
`;
|
|
27
|
+
const ConfirmModalChildrenRoot = styled.div `
|
|
28
|
+
color: ${({ headerColor }) => headerColor};
|
|
29
|
+
display: flex;
|
|
30
|
+
flex: 1 1 0%;
|
|
31
|
+
`;
|
|
32
|
+
const ConfirmModalFooter = styled.div `
|
|
33
|
+
border-top: 2px solid rgb(247, 247, 247);
|
|
34
|
+
padding: 10px 20px 10px 20px;
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: row-reverse;
|
|
37
|
+
gap: 10px;
|
|
38
|
+
`;
|
|
6
39
|
export function ConfirmModal(props) {
|
|
7
40
|
const { isOpen, saveText = 'Save', cancelText = 'Cancel', headerColor, maxWidth, onRequestClose, onCancel = onRequestClose, onConfirm, requestCloseOnBackdrop = true, requestCloseOnEsc = true, children, } = props;
|
|
8
41
|
const { ref, onClick } = useDialog({
|
|
@@ -11,32 +44,7 @@ export function ConfirmModal(props) {
|
|
|
11
44
|
requestCloseOnBackdrop,
|
|
12
45
|
onRequestClose,
|
|
13
46
|
});
|
|
14
|
-
return (_jsx(
|
|
15
|
-
display: 'flex',
|
|
16
|
-
position: 'fixed',
|
|
17
|
-
backgroundColor: 'transparent',
|
|
18
|
-
}, css: css `
|
|
19
|
-
::backdrop: rgba(113, 113, 122, 0.75);
|
|
20
|
-
`, onClick: onClick, children: isOpen ? (_jsxs("div", { style: {
|
|
21
|
-
position: 'relative',
|
|
22
|
-
display: 'flex',
|
|
23
|
-
flexDirection: 'column',
|
|
24
|
-
backgroundColor: 'white',
|
|
25
|
-
maxHeight: '90%',
|
|
26
|
-
width: '100%',
|
|
27
|
-
maxWidth: maxWidth || undefined,
|
|
28
|
-
borderWidth: 1,
|
|
29
|
-
borderColor: 'transparent',
|
|
30
|
-
borderRadius: '0.5rem',
|
|
31
|
-
boxShadow: '0 0 0 0,0 8px 16px rgba(0, 0, 0, 0.3)',
|
|
32
|
-
borderTop: `10px solid ${headerColor}`,
|
|
33
|
-
}, children: [_jsx("div", { style: { color: headerColor, display: 'flex', flex: '1 1 0%' }, children: children }), _jsxs("div", { style: {
|
|
34
|
-
borderTop: '2px solid rgb(247, 247, 247)',
|
|
35
|
-
padding: '10px 20px 10px 20px',
|
|
36
|
-
display: 'flex',
|
|
37
|
-
flexDirection: 'row-reverse',
|
|
38
|
-
gap: 10,
|
|
39
|
-
}, children: [_jsx(Button, { onClick: onConfirm, backgroundColor: {
|
|
47
|
+
return (_jsx(ConfirmModalDialog, { ref: ref, onClick: onClick, children: isOpen ? (_jsxs(ConfirmModalOpened, { headerColor: headerColor, style: { maxWidth }, children: [_jsx(ConfirmModalChildrenRoot, { headerColor: headerColor, children: children }), _jsxs(ConfirmModalFooter, { children: [_jsx(Button, { onClick: onConfirm, backgroundColor: {
|
|
40
48
|
basic: 'hsla(243deg, 75%, 58%, 1)',
|
|
41
49
|
hover: 'hsla(245deg, 58%, 50%, 1)',
|
|
42
50
|
}, color: { basic: 'white' }, children: saveText }), _jsx(Button, { onClick: onCancel, backgroundColor: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmModal.js","sourceRoot":"","sources":["../../../src/components/modal/ConfirmModal.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"ConfirmModal.js","sourceRoot":"","sources":["../../../src/components/modal/ConfirmModal.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,OAAO,EAAE,MAAM,EAAE,MAAM,IAAI,CAAC;AAE5B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAgBxC,MAAM,kBAAkB,GAAG,MAAM,CAAC,MAAM,CAAA;;;;;;;;CAQvC,CAAC;AAEF,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAEnC;;;;;;;;;;;2BAWyB,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,WAAW;CAC1D,CAAC;AAEF,MAAM,wBAAwB,GAAG,MAAM,CAAC,GAAG,CAAyB;WACzD,CAAC,EAAE,WAAW,EAAE,EAAE,EAAE,CAAC,WAAW;;;CAG1C,CAAC;AAEF,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMpC,CAAC;AAEF,MAAM,UAAU,YAAY,CAAC,KAAwB;IACnD,MAAM,EACJ,MAAM,EACN,QAAQ,GAAG,MAAM,EACjB,UAAU,GAAG,QAAQ,EACrB,WAAW,EACX,QAAQ,EACR,cAAc,EACd,QAAQ,GAAG,cAAc,EACzB,SAAS,EACT,sBAAsB,GAAG,IAAI,EAC7B,iBAAiB,GAAG,IAAI,EACxB,QAAQ,GACT,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;QACjC,MAAM;QACN,iBAAiB;QACjB,sBAAsB;QACtB,cAAc;KACf,CAAC,CAAC;IAEH,OAAO,CACL,KAAC,kBAAkB,IAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,YAC3C,MAAM,CAAC,CAAC,CAAC,CACR,MAAC,kBAAkB,IAAC,WAAW,EAAE,WAAW,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,aAC/D,KAAC,wBAAwB,IAAC,WAAW,EAAE,WAAW,YAC/C,QAAQ,GACgB,EAE3B,MAAC,kBAAkB,eACjB,KAAC,MAAM,IACL,OAAO,EAAE,SAAS,EAClB,eAAe,EAAE;gCACf,KAAK,EAAE,2BAA2B;gCAClC,KAAK,EAAE,2BAA2B;6BACnC,EACD,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,YAExB,QAAQ,GACF,EACT,KAAC,MAAM,IACL,OAAO,EAAE,QAAQ,EACjB,eAAe,EAAE;gCACf,KAAK,EAAE,yBAAyB;gCAChC,KAAK,EAAE,yBAAyB;6BACjC,EACD,KAAK,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,YAExB,UAAU,GACJ,IACU,IACF,CACtB,CAAC,CAAC,CAAC,IAAI,GACW,CACtB,CAAC;AACJ,CAAC"}
|
|
@@ -10,16 +10,16 @@ export interface ModalProps {
|
|
|
10
10
|
width?: number;
|
|
11
11
|
height?: number;
|
|
12
12
|
}
|
|
13
|
-
export declare function Modal(props: ModalProps):
|
|
13
|
+
export declare function Modal(props: ModalProps): JSX.Element;
|
|
14
14
|
export declare namespace Modal {
|
|
15
15
|
var Header: (props: {
|
|
16
16
|
children: ReactNode;
|
|
17
|
-
}) =>
|
|
17
|
+
}) => JSX.Element;
|
|
18
18
|
var Body: (props: {
|
|
19
19
|
children: ReactNode;
|
|
20
|
-
}) =>
|
|
20
|
+
}) => JSX.Element;
|
|
21
21
|
var Footer: (props: {
|
|
22
22
|
children: ReactNode;
|
|
23
|
-
}) =>
|
|
23
|
+
}) => JSX.Element;
|
|
24
24
|
}
|
|
25
25
|
//# sourceMappingURL=Modal.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/Modal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/components/modal/Modal.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKrD,MAAM,WAAW,UAAU;IACzB,QAAQ,EAAE,YAAY,GAAG,KAAK,CAAC,YAAY,CAAC,CAAC;IAC7C,MAAM,EAAE,OAAO,CAAC;IAChB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,sBAAsB,CAAC,EAAE,OAAO,CAAC;IACjC,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AA2CD,wBAAgB,KAAK,CAAC,KAAK,EAAE,UAAU,eAoCtC;yBApCe,KAAK"}
|
|
@@ -1,53 +1,64 @@
|
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs } from "
|
|
2
|
-
|
|
3
|
-
import { css } from '@emotion/react';
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import styled from '@emotion/styled';
|
|
4
3
|
import ModalCloseButton from './ModalCloseButton';
|
|
5
4
|
import { useDialog } from './useDialog';
|
|
5
|
+
const DialogRoot = styled.dialog `
|
|
6
|
+
display: flex;
|
|
7
|
+
position: fixed;
|
|
8
|
+
background-color: transparent;
|
|
9
|
+
|
|
10
|
+
::backdrop {
|
|
11
|
+
background-color: rgba(113, 113, 122, 0.75);
|
|
12
|
+
}
|
|
13
|
+
`;
|
|
14
|
+
const DialogOpened = styled.div `
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
background-color: white;
|
|
19
|
+
max-height: 90%;
|
|
20
|
+
border-width: 1px;
|
|
21
|
+
border-color: transparent;
|
|
22
|
+
border-radius: 0.5rem;
|
|
23
|
+
box-shadow: 0 0 0 0, 0 8px 16px rgba(0, 0, 0, 0.3);
|
|
24
|
+
`;
|
|
25
|
+
const ModalHeaderStyled = styled.div `
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
padding: 10px 20px 10px 20px;
|
|
30
|
+
border-bottom: 2px solid rgb(247, 247, 247);
|
|
31
|
+
`;
|
|
32
|
+
const ModalBodyStyled = styled.div `
|
|
33
|
+
display: flex;
|
|
34
|
+
flex: 1 1 0%;
|
|
35
|
+
overflow-y: auto;
|
|
36
|
+
`;
|
|
37
|
+
const ModalFooterStyled = styled.div `
|
|
38
|
+
border-top: 2px solid rgb(247, 247, 247);
|
|
39
|
+
padding: 10px 20px 10px 20px;
|
|
40
|
+
`;
|
|
6
41
|
export function Modal(props) {
|
|
7
|
-
const { isOpen, onRequestClose, hasCloseButton = true, requestCloseOnBackdrop = true, requestCloseOnEsc = true,
|
|
42
|
+
const { isOpen, onRequestClose, hasCloseButton = true, requestCloseOnBackdrop = true, requestCloseOnEsc = true, children, width, maxWidth, height, } = props;
|
|
8
43
|
const { ref, onClick } = useDialog({
|
|
9
44
|
isOpen,
|
|
10
45
|
requestCloseOnEsc,
|
|
11
46
|
requestCloseOnBackdrop,
|
|
12
47
|
onRequestClose,
|
|
13
48
|
});
|
|
14
|
-
return (_jsx(
|
|
15
|
-
|
|
16
|
-
position: 'fixed',
|
|
17
|
-
backgroundColor: 'transparent',
|
|
18
|
-
}, css: css `
|
|
19
|
-
::backdrop: rgba(113, 113, 122, 0.75);
|
|
20
|
-
`, onClick: onClick, children: isOpen ? (_jsxs("div", { style: {
|
|
21
|
-
position: 'relative',
|
|
22
|
-
display: 'flex',
|
|
23
|
-
flexDirection: 'column',
|
|
24
|
-
backgroundColor: 'white',
|
|
25
|
-
maxHeight: '90%',
|
|
26
|
-
width: width || '100%',
|
|
27
|
-
maxWidth: maxWidth || undefined,
|
|
49
|
+
return (_jsx(DialogRoot, { ref: ref, onClick: onClick, children: isOpen ? (_jsxs(DialogOpened, { style: {
|
|
50
|
+
maxWidth,
|
|
28
51
|
height: height || 'max-content',
|
|
29
|
-
|
|
30
|
-
borderColor: 'transparent',
|
|
31
|
-
borderRadius: '0.5rem',
|
|
32
|
-
boxShadow: '0 0 0 0,0 8px 16px rgba(0, 0, 0, 0.3)',
|
|
52
|
+
width: width || '100%',
|
|
33
53
|
}, children: [children, hasCloseButton && _jsx(ModalCloseButton, { onClick: onRequestClose })] })) : null }));
|
|
34
54
|
}
|
|
35
55
|
Modal.Header = function ModalHeader(props) {
|
|
36
|
-
return
|
|
37
|
-
display: 'flex',
|
|
38
|
-
alignItems: 'center',
|
|
39
|
-
justifyContent: 'space-between',
|
|
40
|
-
padding: '10px 20px 10px 20px',
|
|
41
|
-
borderBottom: '2px solid rgb(247, 247, 247)',
|
|
42
|
-
}, children: props.children }));
|
|
56
|
+
return _jsx(ModalHeaderStyled, { children: props.children });
|
|
43
57
|
};
|
|
44
58
|
Modal.Body = function ModalBody(props) {
|
|
45
|
-
return
|
|
59
|
+
return _jsx(ModalBodyStyled, { children: props.children });
|
|
46
60
|
};
|
|
47
61
|
Modal.Footer = function ModalFooter(props) {
|
|
48
|
-
return
|
|
49
|
-
borderTop: '2px solid rgb(247, 247, 247)',
|
|
50
|
-
padding: '10px 20px 10px 20px',
|
|
51
|
-
}, children: props.children }));
|
|
62
|
+
return _jsx(ModalFooterStyled, { children: props.children });
|
|
52
63
|
};
|
|
53
64
|
//# sourceMappingURL=Modal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../src/components/modal/Modal.tsx"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"Modal.js","sourceRoot":"","sources":["../../../src/components/modal/Modal.tsx"],"names":[],"mappings":";AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAGrC,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAcxC,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAA;;;;;;;;CAQ/B,CAAC;AAEF,MAAM,YAAY,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;CAU9B,CAAC;AAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;CAMnC,CAAC;AAEF,MAAM,eAAe,GAAG,MAAM,CAAC,GAAG,CAAA;;;;CAIjC,CAAC;AAEF,MAAM,iBAAiB,GAAG,MAAM,CAAC,GAAG,CAAA;;;CAGnC,CAAC;AAEF,MAAM,UAAU,KAAK,CAAC,KAAiB;IACrC,MAAM,EACJ,MAAM,EACN,cAAc,EACd,cAAc,GAAG,IAAI,EACrB,sBAAsB,GAAG,IAAI,EAC7B,iBAAiB,GAAG,IAAI,EACxB,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,MAAM,GACP,GAAG,KAAK,CAAC;IAEV,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,SAAS,CAAC;QACjC,MAAM;QACN,iBAAiB;QACjB,sBAAsB;QACtB,cAAc;KACf,CAAC,CAAC;IAEH,OAAO,CACL,KAAC,UAAU,IAAC,GAAG,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,YACnC,MAAM,CAAC,CAAC,CAAC,CACR,MAAC,YAAY,IACX,KAAK,EAAE;gBACL,QAAQ;gBACR,MAAM,EAAE,MAAM,IAAI,aAAa;gBAC/B,KAAK,EAAE,KAAK,IAAI,MAAM;aACvB,aAEA,QAAQ,EACR,cAAc,IAAI,KAAC,gBAAgB,IAAC,OAAO,EAAE,cAAc,GAAI,IACnD,CAChB,CAAC,CAAC,CAAC,IAAI,GACG,CACd,CAAC;AACJ,CAAC;AAED,KAAK,CAAC,MAAM,GAAG,SAAS,WAAW,CAAC,KAA8B;IAChE,OAAO,KAAC,iBAAiB,cAAE,KAAK,CAAC,QAAQ,GAAqB,CAAC;AACjE,CAAC,CAAC;AAEF,KAAK,CAAC,IAAI,GAAG,SAAS,SAAS,CAAC,KAA8B;IAC5D,OAAO,KAAC,eAAe,cAAE,KAAK,CAAC,QAAQ,GAAmB,CAAC;AAC7D,CAAC,CAAC;AAEF,KAAK,CAAC,MAAM,GAAG,SAAS,WAAW,CAAC,KAA8B;IAChE,OAAO,KAAC,iBAAiB,cAAE,KAAK,CAAC,QAAQ,GAAqB,CAAC;AACjE,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootLayout.d.ts","sourceRoot":"","sources":["../../../src/components/root-layout/RootLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAyB,MAAM,OAAO,CAAC;AAWxE,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAQD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"RootLayout.d.ts","sourceRoot":"","sources":["../../../src/components/root-layout/RootLayout.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,aAAa,EAAyB,MAAM,OAAO,CAAC;AAWxE,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAQD,wBAAgB,UAAU,CAAC,KAAK,EAAE,eAAe,oDAuBhD"}
|
|
@@ -7,7 +7,7 @@ import { useState, useCallback } from 'react';
|
|
|
7
7
|
import root from 'react-shadow/emotion.esm';
|
|
8
8
|
import { AccordionProvider } from '../accordion/AccordionContext';
|
|
9
9
|
import { RootLayoutProvider } from './RootLayoutContext';
|
|
10
|
-
import {
|
|
10
|
+
import { CustomDivPreflight } from './css-reset/customPreflight';
|
|
11
11
|
import { preflight } from './css-reset/preflight';
|
|
12
12
|
import { queryClient } from './queryClient';
|
|
13
13
|
const style = {
|
|
@@ -22,6 +22,6 @@ export function RootLayout(props) {
|
|
|
22
22
|
setRootRef(node);
|
|
23
23
|
}
|
|
24
24
|
}, []);
|
|
25
|
-
return (_jsxs(root.div, { style: { ...style, ...props.style }, children: [_jsx(Global, { styles: preflight }), _jsx(
|
|
25
|
+
return (_jsxs(root.div, { style: { ...style, ...props.style }, children: [_jsx(Global, { styles: preflight }), _jsx(CustomDivPreflight, { ref: ref, children: _jsx(RootLayoutProvider, { innerRef: rootRef, children: _jsx(QueryClientProvider, { client: queryClient, children: _jsx(AccordionProvider, { children: props.children }) }) }) })] }));
|
|
26
26
|
}
|
|
27
27
|
//# sourceMappingURL=RootLayout.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RootLayout.js","sourceRoot":"","sources":["../../../src/components/root-layout/RootLayout.tsx"],"names":[],"mappings":";AAAA,sCAAsC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAA4B,QAAQ,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACxE,wFAAwF;AACxF,OAAO,IAAI,MAAM,0BAA0B,CAAC;AAE5C,OAAO,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAElE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;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,CAAC;AAO5C,MAAM,KAAK,GAAkB;IAC3B,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,MAAM;IACd,QAAQ,EAAE,MAAM;CACjB,CAAC;AAEF,MAAM,UAAU,UAAU,CAAC,KAAsB;IAC/C,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,GAAG,QAAQ,CACpC,OAAO,QAAQ,KAAK,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,CACvD,CAAC;IAEF,MAAM,GAAG,GAAG,WAAW,CAAC,CAAC,IAAoB,EAAE,EAAE;QAC/C,IAAI,IAAI,KAAK,IAAI,EAAE;YACjB,UAAU,CAAC,IAAI,CAAC,CAAC;SAClB;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACL,MAAC,IAAI,CAAC,GAAG,IAAC,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,KAAK,CAAC,KAAK,EAAE,aAC3C,KAAC,MAAM,IAAC,MAAM,EAAE,SAAS,GAAI,EAC7B,KAAC,kBAAkB,IAAC,GAAG,EAAE,GAAG,YAC1B,KAAC,kBAAkB,IAAC,QAAQ,EAAE,OAAO,YACnC,KAAC,mBAAmB,IAAC,MAAM,EAAE,WAAW,YACtC,KAAC,iBAAiB,cAAE,KAAK,CAAC,QAAQ,GAAqB,GACnC,GACH,GACF,IACZ,CACZ,CAAC;AACJ,CAAC"}
|
|
@@ -1,2 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const CustomDivPreflight: import("@emotion/styled").StyledComponent<{
|
|
3
|
+
theme?: import("@emotion/react").Theme | undefined;
|
|
4
|
+
as?: import("react").ElementType<any> | undefined;
|
|
5
|
+
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
2
6
|
//# sourceMappingURL=customPreflight.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customPreflight.d.ts","sourceRoot":"","sources":["../../../../src/components/root-layout/css-reset/customPreflight.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,kBAAkB,
|
|
1
|
+
{"version":3,"file":"customPreflight.d.ts","sourceRoot":"","sources":["../../../../src/components/root-layout/css-reset/customPreflight.ts"],"names":[],"mappings":";AAGA,eAAO,MAAM,kBAAkB;;;yGAY9B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import styled from '@emotion/styled';
|
|
2
2
|
// Applying global styles that apply to elements that are not part of the shadow DOM.
|
|
3
|
-
export const
|
|
3
|
+
export const CustomDivPreflight = styled.div `
|
|
4
4
|
/* html */
|
|
5
5
|
line-height: 1.5;
|
|
6
6
|
-webkit-text-size-adjust: 100%;
|
|
@@ -8,5 +8,9 @@ export const customDivPreflight = css `
|
|
|
8
8
|
font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
|
|
9
9
|
'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif,
|
|
10
10
|
'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
|
|
11
|
+
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
position: relative;
|
|
11
15
|
`;
|
|
12
16
|
//# sourceMappingURL=customPreflight.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customPreflight.js","sourceRoot":"","sources":["../../../../src/components/root-layout/css-reset/customPreflight.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"customPreflight.js","sourceRoot":"","sources":["../../../../src/components/root-layout/css-reset/customPreflight.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAErC,qFAAqF;AACrF,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;;;;;;;;CAY3C,CAAC"}
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface FullSpinnerProps {
|
|
3
|
+
width?: number;
|
|
4
|
+
height?: number;
|
|
5
|
+
}
|
|
6
|
+
export declare function FullSpinner(props: FullSpinnerProps): JSX.Element;
|
|
7
|
+
export {};
|
|
2
8
|
//# sourceMappingURL=FullSpinner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FullSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/FullSpinner.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FullSpinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/FullSpinner.tsx"],"names":[],"mappings":";AASA,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAQD,wBAAgB,WAAW,CAAC,KAAK,EAAE,gBAAgB,eAoClD"}
|