@1money/component-ui 0.0.95-alpha.1 → 0.0.95-alpha.3
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/es/business/Dialog/BaseDialog/BaseDialog.d.ts +0 -1
- package/es/business/Dialog/BaseDialog/BaseDialog.js +43 -66
- package/es/business/Dialog/BaseDialog/constants.d.ts +7 -8
- package/es/business/Dialog/BaseDialog/constants.js +8 -9
- package/es/business/Dialog/variants/LoadingDialog.js +3 -3
- package/es/business/{PageForm → Form/PageForm}/PageForm.d.ts +1 -1
- package/es/business/Form/PageForm/PageForm.js +97 -0
- package/es/business/Form/PageForm/index.js +5 -0
- package/es/business/{PageForm → Form/PageForm}/interface.d.ts +5 -5
- package/es/business/Form/PageForm/interface.js +2 -0
- package/es/business/Form/ResultForm/ResultForm.d.ts +2 -0
- package/es/business/Form/ResultForm/ResultForm.js +38 -0
- package/es/business/Form/ResultForm/index.d.ts +4 -0
- package/es/business/Form/ResultForm/index.js +5 -0
- package/es/business/Form/ResultForm/interface.d.ts +10 -0
- package/es/business/Form/ResultForm/interface.js +2 -0
- package/es/business/Form/index.d.ts +3 -0
- package/es/business/Form/index.js +15 -0
- package/es/business/Form/variants/ExpiredForm.d.ts +3 -0
- package/es/business/Form/variants/ExpiredForm.js +21 -0
- package/es/business/Form/variants/FailureForm.d.ts +3 -0
- package/es/business/Form/variants/FailureForm.js +20 -0
- package/es/business/Form/variants/PendingForm.d.ts +3 -0
- package/es/business/Form/variants/PendingForm.js +20 -0
- package/es/business/Form/variants/SuccessForm.d.ts +3 -0
- package/es/business/Form/variants/SuccessForm.js +20 -0
- package/es/business/Form/variants/index.d.ts +8 -0
- package/es/business/Form/variants/index.js +12 -0
- package/es/business/index.d.ts +1 -1
- package/es/business/index.js +2 -2
- package/es/components/ActionBar/ActionBar.js +3 -4
- package/es/components/ActionBar/interface.d.ts +7 -2
- package/es/components/Dialog/interface.d.ts +10 -4
- package/es/components/FormLayout/interface.d.ts +6 -1
- package/es/components/PanelLayout/PanelLayout.d.ts +3 -0
- package/es/components/PanelLayout/PanelLayout.js +162 -0
- package/es/components/PanelLayout/constants.d.ts +60 -0
- package/es/components/PanelLayout/constants.js +48 -0
- package/es/components/PanelLayout/index.d.ts +6 -0
- package/es/components/PanelLayout/index.js +6 -0
- package/es/components/PanelLayout/interface.d.ts +73 -0
- package/es/components/PanelLayout/interface.js +2 -0
- package/es/components/PanelLayout/style/PanelLayout.css +50 -0
- package/es/components/PanelLayout/style/css.js +2 -0
- package/es/components/PanelLayout/style/index.d.ts +1 -0
- package/es/components/PanelLayout/style/index.js +2 -0
- package/es/index.css +1 -1
- package/es/index.d.ts +2 -0
- package/es/index.js +2 -1
- package/lib/business/Dialog/BaseDialog/BaseDialog.d.ts +0 -1
- package/lib/business/Dialog/BaseDialog/BaseDialog.js +42 -65
- package/lib/business/Dialog/BaseDialog/constants.d.ts +7 -8
- package/lib/business/Dialog/BaseDialog/constants.js +9 -10
- package/lib/business/Dialog/variants/LoadingDialog.js +3 -3
- package/lib/business/{PageForm → Form/PageForm}/PageForm.d.ts +1 -1
- package/lib/business/Form/PageForm/PageForm.js +103 -0
- package/lib/business/Form/PageForm/index.js +30 -0
- package/lib/business/{PageForm → Form/PageForm}/interface.d.ts +5 -5
- package/lib/business/Form/PageForm/interface.js +6 -0
- package/lib/business/Form/ResultForm/ResultForm.d.ts +2 -0
- package/lib/business/Form/ResultForm/ResultForm.js +44 -0
- package/lib/business/Form/ResultForm/index.d.ts +4 -0
- package/lib/business/Form/ResultForm/index.js +30 -0
- package/lib/business/Form/ResultForm/interface.d.ts +10 -0
- package/lib/business/Form/ResultForm/interface.js +6 -0
- package/lib/business/Form/index.d.ts +3 -0
- package/lib/business/Form/index.js +39 -0
- package/lib/business/Form/variants/ExpiredForm.d.ts +3 -0
- package/lib/business/Form/variants/ExpiredForm.js +27 -0
- package/lib/business/Form/variants/FailureForm.d.ts +3 -0
- package/lib/business/Form/variants/FailureForm.js +26 -0
- package/lib/business/Form/variants/PendingForm.d.ts +3 -0
- package/lib/business/Form/variants/PendingForm.js +26 -0
- package/lib/business/Form/variants/SuccessForm.d.ts +3 -0
- package/lib/business/Form/variants/SuccessForm.js +26 -0
- package/lib/business/Form/variants/index.d.ts +8 -0
- package/lib/business/Form/variants/index.js +34 -0
- package/lib/business/index.d.ts +1 -1
- package/lib/business/index.js +5 -5
- package/lib/components/ActionBar/ActionBar.js +3 -4
- package/lib/components/ActionBar/interface.d.ts +7 -2
- package/lib/components/Dialog/interface.d.ts +10 -4
- package/lib/components/FormLayout/interface.d.ts +6 -1
- package/lib/components/PanelLayout/PanelLayout.d.ts +3 -0
- package/lib/components/PanelLayout/PanelLayout.js +171 -0
- package/lib/components/PanelLayout/constants.d.ts +60 -0
- package/lib/components/PanelLayout/constants.js +54 -0
- package/lib/components/PanelLayout/index.d.ts +6 -0
- package/lib/components/PanelLayout/index.js +52 -0
- package/lib/components/PanelLayout/interface.d.ts +73 -0
- package/lib/components/PanelLayout/interface.js +6 -0
- package/lib/components/PanelLayout/style/PanelLayout.css +50 -0
- package/lib/components/PanelLayout/style/css.js +4 -0
- package/lib/components/PanelLayout/style/index.d.ts +1 -0
- package/lib/components/PanelLayout/style/index.js +4 -0
- package/lib/index.css +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +14 -1
- package/package.json +29 -4
- package/scripts/mcp-server/examples.generated.json +42 -0
- package/scripts/mcp-server/index.generated.json +236 -3
- package/es/business/Dialog/BaseDialog/style/BaseDialog.css +0 -72
- package/es/business/Dialog/BaseDialog/style/css.js +0 -2
- package/es/business/Dialog/BaseDialog/style/index.d.ts +0 -1
- package/es/business/Dialog/BaseDialog/style/index.js +0 -2
- package/es/business/PageForm/PageForm.js +0 -97
- package/es/business/PageForm/index.js +0 -5
- package/es/business/PageForm/interface.js +0 -2
- package/lib/business/Dialog/BaseDialog/style/BaseDialog.css +0 -72
- package/lib/business/Dialog/BaseDialog/style/css.js +0 -4
- package/lib/business/Dialog/BaseDialog/style/index.d.ts +0 -1
- package/lib/business/Dialog/BaseDialog/style/index.js +0 -4
- package/lib/business/PageForm/PageForm.js +0 -103
- package/lib/business/PageForm/index.js +0 -30
- package/lib/business/PageForm/interface.js +0 -6
- /package/es/business/{PageForm → Form/PageForm}/index.d.ts +0 -0
- /package/lib/business/{PageForm → Form/PageForm}/index.d.ts +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
export var PANEL_LAYOUT_PREFIX = 'panel-layout';
|
|
2
|
+
/** Back-arrow control: 24px icon, and its accessible name. */
|
|
3
|
+
export var PANEL_LAYOUT_BACK_ICON_SIZE = 24;
|
|
4
|
+
export var PANEL_LAYOUT_BACK_LABEL = 'Go back';
|
|
5
|
+
/**
|
|
6
|
+
* THE density table for content panels — the single thing to edit when the
|
|
7
|
+
* design changes. Same shape as `FORM_LAYOUT_CONFIG`: one entry per host, so
|
|
8
|
+
* a divergence between the two is a value change, never a structural one.
|
|
9
|
+
*
|
|
10
|
+
* The two entries are currently IDENTICAL, and that is the design: a panel
|
|
11
|
+
* renders the same on a page and in a dialog, the only difference being
|
|
12
|
+
* whether a `Dialog(bare)` is wrapped around it. They are still spelled out
|
|
13
|
+
* separately so that (a) the sameness reads as deliberate rather than as an
|
|
14
|
+
* oversight, and (b) a divergence later is a value change here and nothing
|
|
15
|
+
* else — no consumer passes these numbers, they only pass `variant`.
|
|
16
|
+
*
|
|
17
|
+
* `width` is the panel width used in BOTH hosts (380). It is NOT inherited
|
|
18
|
+
* from FormLayout's `page/small` density — that entry is 448, the app's
|
|
19
|
+
* sign-in card, a different surface. Only the padding (24) and the region gap
|
|
20
|
+
* (16) come from that density, and those already match. Inside a dialog the
|
|
21
|
+
* value goes on the Dialog panel and the layout fills at 100%: sizing a bare
|
|
22
|
+
* panel from its child hits the shrink-to-fit percentage circularity (the
|
|
23
|
+
* same reason FormDialog gives).
|
|
24
|
+
*/
|
|
25
|
+
export var PANEL_LAYOUT_CONFIG = {
|
|
26
|
+
/** Standalone on a page. */
|
|
27
|
+
page: {
|
|
28
|
+
/** Panel width (px). */
|
|
29
|
+
width: 380,
|
|
30
|
+
/** Illustration above the header copy (px). */
|
|
31
|
+
illustrationSize: 52,
|
|
32
|
+
/** Footer action button size. */
|
|
33
|
+
buttonSize: 'medium',
|
|
34
|
+
/** Gap between footer action buttons (px); ActionBar reads it via var. */
|
|
35
|
+
actionGap: 8
|
|
36
|
+
},
|
|
37
|
+
/** Inside a dialog, wrapped by `BaseDialog` in a `Dialog(bare)`. */
|
|
38
|
+
modal: {
|
|
39
|
+
width: 380,
|
|
40
|
+
illustrationSize: 52,
|
|
41
|
+
buttonSize: 'medium',
|
|
42
|
+
actionGap: 8
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
export var resolvePanelLayoutConfig = function resolvePanelLayoutConfig(variant) {
|
|
46
|
+
return PANEL_LAYOUT_CONFIG[variant];
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvc3JjL2NvbXBvbmVudHMvUGFuZWxMYXlvdXQvY29uc3RhbnRzLnRzIiwiY29tcG9uZW50cy9QYW5lbExheW91dC9jb25zdGFudHMuanMiXSwibmFtZXMiOlsiUEFORUxfTEFZT1VUX1BSRUZJWCIsIlBBTkVMX0xBWU9VVF9CQUNLX0lDT05fU0laRSIsIlBBTkVMX0xBWU9VVF9CQUNLX0xBQkVMIiwiUEFORUxfTEFZT1VUX0NPTkZJRyIsInBhZ2UiLCJ3aWR0aCIsImlsbHVzdHJhdGlvblNpemUiLCJidXR0b25TaXplIiwiYWN0aW9uR2FwIiwibW9kYWwiLCJyZXNvbHZlUGFuZWxMYXlvdXRDb25maWciLCJ2YXJpYW50Il0sIm1hcHBpbmdzIjoiQUFFQSxPQUFPLElBQU1BLG1CQUFtQixHQUFHLGNBQWM7QUFFakQ7QUFDQSxPQUFPLElBQU1DLDJCQUEyQixH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BY3Rpb25CYXIgcmVhZHMgaXQgdmlhIHZhci4gKi9cbiAgICAgICAgYWN0aW9uR2FwOiA4LFxuICAgIH0sXG4gICAgLyoqIEluc2lkZSBhIGRpYWxvZywgd3JhcHBlZCBieSBgQmFzZURpYWxvZ2AgaW4gYSBgRGlhbG9nKGJhcmUpYC4gKi9cbiAgICBtb2RhbDoge1xuICAgICAgICB3aWR0aDogMzgwLFxuICAgICAgICBpbGx1c3RyYXRpb25TaXplOiA1MixcbiAgICAgICAgYnV0dG9uU2l6ZTogJ21lZGl1bScsXG4gICAgICAgIGFjdGlvbkdhcDogOCxcbiAgICB9LFxufTtcbmV4cG9ydCBjb25zdCByZXNvbHZlUGFuZWxMYXlvdXRDb25maWcgPSAodmFyaWFudCkgPT4gUEFORUxfTEFZT1VUX0NPTkZJR1t2YXJpYW50XTsiXSwic291cmNlUm9vdCI6Ii4uLy4uLy4uLy4uLy4uLy4uLy4uLy4uL3NyYyJ9
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PanelLayout } from './PanelLayout';
|
|
2
|
+
export { PanelLayout } from './PanelLayout';
|
|
3
|
+
export default PanelLayout;
|
|
4
|
+
export * from './interface';
|
|
5
|
+
export { PANEL_LAYOUT_CONFIG, PANEL_LAYOUT_PREFIX, resolvePanelLayoutConfig, } from './constants';
|
|
6
|
+
export type { PanelLayoutVariant } from './constants';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { PanelLayout } from './PanelLayout';
|
|
2
|
+
export { PanelLayout } from './PanelLayout';
|
|
3
|
+
export default PanelLayout;
|
|
4
|
+
export * from './interface';
|
|
5
|
+
export { PANEL_LAYOUT_CONFIG, PANEL_LAYOUT_PREFIX, resolvePanelLayoutConfig } from './constants';
|
|
6
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvc3JjL2NvbXBvbmVudHMvUGFuZWxMYXlvdXQvaW5kZXgudHMiXSwibmFtZXMiOlsiUGFuZWxMYXlvdXQiLCJQQU5FTF9MQVlPVVRfQ09ORklHIiwiUEFORUxfTEFZT1VUX1BSRUZJWCIsInJlc29sdmVQYW5lbExheW91dENvbmZpZyJdLCJtYXBwaW5ncyI6IkFBQUEsU0FBU0EsV0FBVyxRQUFRLGVBQWU7QUFFM0MsU0FBU0EsV0FBVyxRQUFRLGVBQWU7QUFFM0MsZUFBZUEsV0FBVztBQUUxQixjQUFjLGFBQWE7QUFDM0IsU0FDRUMsbUJBQW1CLEVBQ25CQyxtQkFBbUIsRUFDbkJDLHdCQUF3QixRQUNuQixhQUFhIiwiZmlsZSI6ImNvbXBvbmVudHMvUGFuZWxMYXlvdXQvaW5kZXguanMiLCJzb3VyY2VzQ29udGVudCI6W251bGxdLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjIn0=
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { ActionBarAction, ActionBarDirection, ActionBarFootnote } from "../ActionBar";
|
|
3
|
+
import type { FormLayoutProps } from "../FormLayout";
|
|
4
|
+
import type { IconName } from "../Icons";
|
|
5
|
+
import type { PanelLayoutVariant } from './constants';
|
|
6
|
+
export interface PanelLayoutProps extends Pick<FormLayoutProps, 'width' | 'className'> {
|
|
7
|
+
/**
|
|
8
|
+
* Which host this panel renders in. Selects the entry in
|
|
9
|
+
* `PANEL_LAYOUT_CONFIG` and the underlying FormLayout density / scroll
|
|
10
|
+
* policy. `page` (default) is the standalone card; `modal` is the panel
|
|
11
|
+
* `BaseDialog` wraps in a `Dialog(bare)`.
|
|
12
|
+
*
|
|
13
|
+
* There is deliberately no `size`: a result has ONE shape. `PageForm`
|
|
14
|
+
* exposes a size axis because a form's density varies with its field count.
|
|
15
|
+
*/
|
|
16
|
+
variant?: PanelLayoutVariant;
|
|
17
|
+
/**
|
|
18
|
+
* Override the host's scroll policy. `page` never scrolls internally;
|
|
19
|
+
* `modal` pins header/footer and scrolls the content region when
|
|
20
|
+
* height-constrained. `BaseDialog` maps its `fixed` prop onto this — the
|
|
21
|
+
* two defaults are opposites, so that mapping must stay explicit.
|
|
22
|
+
*/
|
|
23
|
+
scroll?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Show the back arrow at the TOP of the header block, on the same 8px seam
|
|
26
|
+
* as everything else in it.
|
|
27
|
+
*
|
|
28
|
+
* The panel owns this control in BOTH hosts — stepped page flows (2FA setup)
|
|
29
|
+
* carry it just like dialog flows do. It belongs to the content flow, unlike
|
|
30
|
+
* the dialog's close icon, which is absolutely positioned overlay chrome and
|
|
31
|
+
* stays with Dialog. That is also why `Dialog(bare)` does not render it.
|
|
32
|
+
*/
|
|
33
|
+
showBackIcon?: boolean;
|
|
34
|
+
/** Fires when the back arrow is activated. */
|
|
35
|
+
onBack?: () => void;
|
|
36
|
+
/** Replace the default back arrow node (keeps its slot and seam). */
|
|
37
|
+
backIcon?: ReactNode;
|
|
38
|
+
/**
|
|
39
|
+
* Small label row above the title ("Step 2 of 3"). Same contract as
|
|
40
|
+
* `title`: a plain string is rendered in the family style, a node passes
|
|
41
|
+
* through (e.g. a Tag). An empty string counts as absent, so a value held
|
|
42
|
+
* in state needs no guard at the call site.
|
|
43
|
+
*/
|
|
44
|
+
eyebrow?: ReactNode;
|
|
45
|
+
/** Heading. A plain string renders as `Headline sm`. */
|
|
46
|
+
title?: ReactNode;
|
|
47
|
+
/** Supporting copy under the title. */
|
|
48
|
+
description?: ReactNode;
|
|
49
|
+
/**
|
|
50
|
+
* Render the description in the strong (medium) weight — the family spec.
|
|
51
|
+
* Defaults to `true`. Pass `false` for plain body copy, e.g. when the copy
|
|
52
|
+
* embeds an email (or other span) that should be the emphasized part.
|
|
53
|
+
*/
|
|
54
|
+
descriptionStrong?: boolean;
|
|
55
|
+
/** Illustration above the title, `IconName` or node. */
|
|
56
|
+
illustration?: ReactNode | IconName;
|
|
57
|
+
/**
|
|
58
|
+
* Primary action. With only one action the button spans the full row; with
|
|
59
|
+
* both, secondary sits left and they split the row evenly.
|
|
60
|
+
*/
|
|
61
|
+
primary?: ActionBarAction;
|
|
62
|
+
/** Optional secondary (left) action. */
|
|
63
|
+
secondary?: ActionBarAction;
|
|
64
|
+
/**
|
|
65
|
+
* Action arrangement, forwarded to ActionBar: `horizontal` (default,
|
|
66
|
+
* row-splitting) or `vertical` (stacked full-width).
|
|
67
|
+
*/
|
|
68
|
+
direction?: ActionBarDirection;
|
|
69
|
+
/** Optional centered footnote row below the actions. */
|
|
70
|
+
footnote?: ActionBarFootnote;
|
|
71
|
+
/** Extra content between the header block and the actions (e.g. bricks). */
|
|
72
|
+
children?: ReactNode;
|
|
73
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export {};
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tcG9uZW50cy9QYW5lbExheW91dC9pbnRlcmZhY2UuanMiLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMiLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvUGFuZWxMYXlvdXQvaW50ZXJmYWNlLmpzIl0sInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCB7fTsiXSwibWFwcGluZ3MiOiJBQUFBIiwiaWdub3JlTGlzdCI6W119
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Retrieves the spacing value for a given token key.
|
|
3
|
+
*
|
|
4
|
+
* @param {string} $key - The spacing token key (e.g., '100', '200').
|
|
5
|
+
* @return {length|null} The computed spacing value or null if the key is invalid.
|
|
6
|
+
* @example
|
|
7
|
+
* .element {
|
|
8
|
+
* padding: om-spacing-token('200'); // Returns 8px if $om-sys-spacing-unit is 4px
|
|
9
|
+
* }
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Computes the spacing value based on a token key or a direct length value.
|
|
13
|
+
*
|
|
14
|
+
* @param {string|length} $value - The spacing token key (e.g., '100') or a direct length value (e.g., '16px').
|
|
15
|
+
* @return {length} The computed spacing value.
|
|
16
|
+
* @example
|
|
17
|
+
* .element {
|
|
18
|
+
* margin: om-spacing-value('300'); // Returns 12px if $om-sys-spacing-unit is 4px
|
|
19
|
+
* padding: om-spacing-value(16px); // Returns 16px
|
|
20
|
+
* gap: om-spacing-value(2); // Returns 8px if $om-sys-spacing-unit is 4px
|
|
21
|
+
* }
|
|
22
|
+
*/
|
|
23
|
+
.om-component-ui-panel-layout .om-component-ui-panel-layout-header {
|
|
24
|
+
display: flex;
|
|
25
|
+
flex-direction: column;
|
|
26
|
+
gap: var(--om-spacing-200, 8px);
|
|
27
|
+
align-items: flex-start;
|
|
28
|
+
width: 100%;
|
|
29
|
+
}
|
|
30
|
+
.om-component-ui-panel-layout .om-component-ui-panel-layout-illustration {
|
|
31
|
+
display: flex;
|
|
32
|
+
align-items: center;
|
|
33
|
+
justify-content: flex-start;
|
|
34
|
+
line-height: 0;
|
|
35
|
+
}
|
|
36
|
+
.om-component-ui-panel-layout .om-component-ui-panel-layout-back {
|
|
37
|
+
display: inline-flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: center;
|
|
40
|
+
width: 24px;
|
|
41
|
+
height: 24px;
|
|
42
|
+
padding: 0;
|
|
43
|
+
color: var(--om-icon-default, #131313);
|
|
44
|
+
background: transparent;
|
|
45
|
+
border: none;
|
|
46
|
+
cursor: pointer;
|
|
47
|
+
}
|
|
48
|
+
.om-component-ui-panel-layout .om-component-ui-panel-layout-back .om-component-ui-icons-wrapper {
|
|
49
|
+
--icon-color: currentcolor;
|
|
50
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import './PanelLayout.css';
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvUGFuZWxMYXlvdXQvc3JjL2NvbXBvbmVudHMvUGFuZWxMYXlvdXQvc3R5bGUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxvQkFBb0IiLCJmaWxlIjoiY29tcG9uZW50cy9QYW5lbExheW91dC9zdHlsZS9jc3MuanMiLCJzb3VyY2VzQ29udGVudCI6W251bGxdLCJzb3VyY2VSb290IjoiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vc3JjIn0=
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import './PanelLayout.css';
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import './PanelLayout.css';
|
|
2
|
+
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImNvbXBvbmVudHMvUGFuZWxMYXlvdXQvc3JjL2NvbXBvbmVudHMvUGFuZWxMYXlvdXQvc3R5bGUvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxvQkFBb0IiLCJmaWxlIjoiY29tcG9uZW50cy9QYW5lbExheW91dC9zdHlsZS9pbmRleC5qcyIsInNvdXJjZXNDb250ZW50IjpbbnVsbF0sInNvdXJjZVJvb3QiOiIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9zcmMifQ==
|