@babylonjs/shared-ui-components 5.28.0 → 5.29.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/colorPicker/colorComponentEntry.d.ts +18 -18
- package/colorPicker/colorComponentEntry.js +36 -36
- package/colorPicker/colorPicker.d.ts +43 -43
- package/colorPicker/colorPicker.js +136 -136
- package/colorPicker/hexColor.d.ts +20 -20
- package/colorPicker/hexColor.js +42 -42
- package/components/Button.d.ts +10 -10
- package/components/Button.js +6 -6
- package/components/Icon.d.ts +6 -6
- package/components/Icon.js +6 -6
- package/components/Label.d.ts +7 -7
- package/components/Label.js +6 -6
- package/components/MessageDialog.d.ts +7 -7
- package/components/MessageDialog.js +22 -22
- package/components/Toggle.d.ts +8 -8
- package/components/Toggle.js +15 -15
- package/components/bars/CommandBarComponent.d.ts +16 -16
- package/components/bars/CommandBarComponent.js +68 -68
- package/components/bars/CommandButtonComponent.d.ts +11 -11
- package/components/bars/CommandButtonComponent.js +6 -6
- package/components/bars/CommandDropdownComponent.d.ts +26 -26
- package/components/bars/CommandDropdownComponent.js +48 -48
- package/components/classNames.d.ts +2 -2
- package/components/classNames.js +18 -18
- package/components/colorPicker/ColorComponentEntry.d.ts +18 -18
- package/components/colorPicker/ColorComponentEntry.js +37 -37
- package/components/colorPicker/ColorPicker.d.ts +43 -43
- package/components/colorPicker/ColorPicker.js +137 -137
- package/components/colorPicker/HexColor.d.ts +20 -20
- package/components/colorPicker/HexColor.js +45 -45
- package/components/layout/DraggableIcon.d.ts +23 -0
- package/components/layout/DraggableIcon.js +18 -0
- package/components/layout/DraggableIcon.js.map +1 -0
- package/components/layout/FlexibleColumn.d.ts +17 -0
- package/components/layout/FlexibleColumn.js +12 -0
- package/components/layout/FlexibleColumn.js.map +1 -0
- package/components/layout/FlexibleDragHandler.d.ts +18 -0
- package/components/layout/FlexibleDragHandler.js +88 -0
- package/components/layout/FlexibleDragHandler.js.map +1 -0
- package/components/layout/FlexibleDropZone.d.ts +19 -0
- package/components/layout/FlexibleDropZone.js +12 -0
- package/components/layout/FlexibleDropZone.js.map +1 -0
- package/components/layout/FlexibleGridContainer.d.ts +10 -0
- package/components/layout/FlexibleGridContainer.js +23 -0
- package/components/layout/FlexibleGridContainer.js.map +1 -0
- package/components/layout/FlexibleGridLayout.d.ts +16 -0
- package/components/layout/FlexibleGridLayout.js +24 -0
- package/components/layout/FlexibleGridLayout.js.map +1 -0
- package/components/layout/FlexibleResizeBar.d.ts +40 -0
- package/components/layout/FlexibleResizeBar.js +21 -0
- package/components/layout/FlexibleResizeBar.js.map +1 -0
- package/components/layout/FlexibleTab.d.ts +34 -0
- package/components/layout/FlexibleTab.js +36 -0
- package/components/layout/FlexibleTab.js.map +1 -0
- package/components/layout/FlexibleTabsContainer.d.ts +28 -0
- package/components/layout/FlexibleTabsContainer.js +54 -0
- package/components/layout/FlexibleTabsContainer.js.map +1 -0
- package/components/layout/LayoutContext.d.ts +12 -0
- package/components/layout/LayoutContext.js +3 -0
- package/components/layout/LayoutContext.js.map +1 -0
- package/components/layout/types.d.ts +78 -0
- package/components/layout/types.js +13 -0
- package/components/layout/types.js.map +1 -0
- package/components/layout/utils.d.ts +25 -0
- package/components/layout/utils.js +68 -0
- package/components/layout/utils.js.map +1 -0
- package/components/lines/ColorLineComponent.d.ts +40 -40
- package/components/lines/ColorLineComponent.js +145 -145
- package/components/lines/ColorPickerLineComponent.d.ts +33 -33
- package/components/lines/ColorPickerLineComponent.js +61 -61
- package/components/lines/FileButtonLineComponent.d.ts +16 -16
- package/components/lines/FileButtonLineComponent.js +21 -21
- package/components/lines/NumericInputComponent.d.ts +31 -31
- package/components/lines/NumericInputComponent.js +86 -86
- package/lines/booleanLineComponent.d.ts +11 -11
- package/lines/booleanLineComponent.js +14 -14
- package/lines/buttonLineComponent.d.ts +12 -12
- package/lines/buttonLineComponent.js +10 -10
- package/lines/checkBoxLineComponent.d.ts +36 -36
- package/lines/checkBoxLineComponent.js +88 -88
- package/lines/color3LineComponent.d.ts +18 -18
- package/lines/color3LineComponent.js +9 -9
- package/lines/color4LineComponent.d.ts +18 -18
- package/lines/color4LineComponent.js +9 -9
- package/lines/colorLineComponent.d.ts +40 -40
- package/lines/colorLineComponent.js +144 -144
- package/lines/colorPickerComponent.d.ts +31 -31
- package/lines/colorPickerComponent.js +60 -60
- package/lines/draggableLineComponent.d.ts +9 -9
- package/lines/draggableLineComponent.js +12 -12
- package/lines/fileButtonLineComponent.d.ts +17 -17
- package/lines/fileButtonLineComponent.js +20 -20
- package/lines/fileMultipleButtonLineComponent.d.ts +17 -17
- package/lines/fileMultipleButtonLineComponent.js +20 -20
- package/lines/floatLineComponent.d.ts +50 -50
- package/lines/floatLineComponent.js +175 -175
- package/lines/hexLineComponent.d.ts +40 -40
- package/lines/hexLineComponent.js +121 -121
- package/lines/iSelectedLineContainer.d.ts +4 -4
- package/lines/iSelectedLineContainer.js +1 -1
- package/lines/iconButtonLineComponent.d.ts +11 -11
- package/lines/iconButtonLineComponent.js +10 -10
- package/lines/iconComponent.d.ts +9 -9
- package/lines/iconComponent.js +7 -7
- package/lines/indentedTextLineComponent.d.ts +16 -16
- package/lines/indentedTextLineComponent.js +26 -26
- package/lines/inputArrowsComponent.d.ts +13 -13
- package/lines/inputArrowsComponent.js +37 -37
- package/lines/lineContainerComponent.d.ts +19 -19
- package/lines/lineContainerComponent.js +49 -49
- package/lines/linkButtonComponent.d.ts +16 -16
- package/lines/linkButtonComponent.js +20 -20
- package/lines/matrixLineComponent.d.ts +36 -36
- package/lines/matrixLineComponent.js +102 -102
- package/lines/messageLineComponent.d.ts +12 -12
- package/lines/messageLineComponent.js +14 -14
- package/lines/numericInputComponent.d.ts +31 -31
- package/lines/numericInputComponent.js +85 -85
- package/lines/optionsLineComponent.d.ts +48 -48
- package/lines/optionsLineComponent.js +118 -118
- package/lines/popup.d.ts +4 -4
- package/lines/popup.js +67 -67
- package/lines/radioLineComponent.d.ts +21 -21
- package/lines/radioLineComponent.js +26 -26
- package/lines/sliderLineComponent.d.ts +37 -37
- package/lines/sliderLineComponent.js +89 -89
- package/lines/targetsProxy.d.ts +11 -11
- package/lines/targetsProxy.js +42 -42
- package/lines/textInputLineComponent.d.ts +47 -47
- package/lines/textInputLineComponent.js +154 -154
- package/lines/textLineComponent.d.ts +21 -21
- package/lines/textLineComponent.js +30 -30
- package/lines/unitButton.d.ts +8 -8
- package/lines/unitButton.js +7 -7
- package/lines/valueLineComponent.d.ts +15 -15
- package/lines/valueLineComponent.js +12 -12
- package/lines/vector2LineComponent.d.ts +36 -36
- package/lines/vector2LineComponent.js +63 -63
- package/lines/vector3LineComponent.d.ts +41 -41
- package/lines/vector3LineComponent.js +74 -74
- package/lines/vector4LineComponent.d.ts +42 -42
- package/lines/vector4LineComponent.js +81 -81
- package/nodeGraphSystem/displayLedger.d.ts +5 -5
- package/nodeGraphSystem/displayLedger.js +3 -3
- package/nodeGraphSystem/frameNodePort.d.ts +25 -25
- package/nodeGraphSystem/frameNodePort.js +59 -59
- package/nodeGraphSystem/graphCanvas.d.ts +111 -111
- package/nodeGraphSystem/graphCanvas.js +1131 -1131
- package/nodeGraphSystem/graphFrame.d.ts +153 -153
- package/nodeGraphSystem/graphFrame.js +1328 -1328
- package/nodeGraphSystem/graphNode.d.ts +79 -79
- package/nodeGraphSystem/graphNode.js +459 -459
- package/nodeGraphSystem/interfaces/displayManager.d.ts +13 -13
- package/nodeGraphSystem/interfaces/displayManager.js +1 -1
- package/nodeGraphSystem/interfaces/nodeContainer.d.ts +6 -6
- package/nodeGraphSystem/interfaces/nodeContainer.js +1 -1
- package/nodeGraphSystem/interfaces/nodeData.d.ts +15 -15
- package/nodeGraphSystem/interfaces/nodeData.js +1 -1
- package/nodeGraphSystem/interfaces/nodeLocationInfo.d.ts +26 -26
- package/nodeGraphSystem/interfaces/nodeLocationInfo.js +1 -1
- package/nodeGraphSystem/interfaces/portData.d.ts +28 -28
- package/nodeGraphSystem/interfaces/portData.js +7 -7
- package/nodeGraphSystem/interfaces/propertyComponentProps.d.ts +6 -6
- package/nodeGraphSystem/interfaces/propertyComponentProps.js +1 -1
- package/nodeGraphSystem/interfaces/selectionChangedOptions.d.ts +11 -11
- package/nodeGraphSystem/interfaces/selectionChangedOptions.js +1 -1
- package/nodeGraphSystem/nodeLink.d.ts +31 -31
- package/nodeGraphSystem/nodeLink.js +182 -182
- package/nodeGraphSystem/nodePort.d.ts +35 -35
- package/nodeGraphSystem/nodePort.js +128 -128
- package/nodeGraphSystem/propertyLedger.d.ts +8 -8
- package/nodeGraphSystem/propertyLedger.js +3 -3
- package/nodeGraphSystem/stateManager.d.ts +45 -45
- package/nodeGraphSystem/stateManager.js +18 -18
- package/nodeGraphSystem/tools.d.ts +5 -5
- package/nodeGraphSystem/tools.js +36 -36
- package/nodeGraphSystem/typeLedger.d.ts +8 -8
- package/nodeGraphSystem/typeLedger.js +2 -2
- package/nodeGraphSystem/types/framePortData.d.ts +7 -7
- package/nodeGraphSystem/types/framePortData.js +1 -1
- package/package.json +4 -3
- package/propertyChangedEvent.d.ts +7 -7
- package/propertyChangedEvent.js +2 -2
- package/stories/Button.stories.d.ts +10 -10
- package/stories/Button.stories.js +19 -19
- package/stories/Icon.stories.d.ts +9 -9
- package/stories/Icon.stories.js +16 -16
- package/stories/Label.stories.d.ts +8 -8
- package/stories/Label.stories.js +10 -10
- package/stories/MessageDialog.stories.d.ts +9 -9
- package/stories/MessageDialog.stories.js +19 -19
- package/stories/Toggle.stories.d.ts +9 -9
- package/stories/Toggle.stories.js +17 -17
- package/stories/bars/CommandBarComponent.stories.d.ts +11 -11
- package/stories/bars/CommandBarComponent.stories.js +12 -12
- package/stories/bars/CommandButtonComponent.stories.d.ts +6 -6
- package/stories/bars/CommandButtonComponent.stories.js +6 -6
- package/stories/colorPicker/ColorPicker.stories.d.ts +11 -11
- package/stories/colorPicker/ColorPicker.stories.js +4 -4
- package/stories/layout/FlexibleGridLayout.stories.d.ts +46 -0
- package/stories/layout/FlexibleGridLayout.stories.js +48 -0
- package/stories/layout/FlexibleGridLayout.stories.js.map +1 -0
- package/stories/lines/ColorLineComponent.stories.d.ts +21 -21
- package/stories/lines/ColorLineComponent.stories.js +9 -9
- package/stories/lines/ColorPickerLineComponent.stories.d.ts +14 -14
- package/stories/lines/ColorPickerLineComponent.stories.js +10 -10
- package/stories/lines/FileButtonLineComponent.stories.d.ts +6 -6
- package/stories/lines/FileButtonLineComponent.stories.js +5 -5
- package/stories/lines/NumericInputComponent.stories.d.ts +11 -11
- package/stories/lines/NumericInputComponent.stories.js +5 -5
- package/stringTools.d.ts +11 -11
- package/stringTools.js +88 -88
- package/tabs/propertyGrids/gui/checkboxPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/checkboxPropertyGridComponent.js +15 -15
- package/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/colorPickerPropertyGridComponent.js +14 -14
- package/tabs/propertyGrids/gui/commonControlPropertyGridComponent.d.ts +17 -17
- package/tabs/propertyGrids/gui/commonControlPropertyGridComponent.js +55 -55
- package/tabs/propertyGrids/gui/controlPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/controlPropertyGridComponent.js +12 -12
- package/tabs/propertyGrids/gui/ellipsePropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/ellipsePropertyGridComponent.js +15 -15
- package/tabs/propertyGrids/gui/gridPropertyGridComponent.d.ts +17 -17
- package/tabs/propertyGrids/gui/gridPropertyGridComponent.js +38 -38
- package/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/imageBasedSliderPropertyGridComponent.js +16 -16
- package/tabs/propertyGrids/gui/imagePropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/imagePropertyGridComponent.js +25 -25
- package/tabs/propertyGrids/gui/inputTextPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/inputTextPropertyGridComponent.js +17 -17
- package/tabs/propertyGrids/gui/linePropertyGridComponent.d.ts +16 -16
- package/tabs/propertyGrids/gui/linePropertyGridComponent.js +27 -27
- package/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/radioButtonPropertyGridComponent.js +17 -17
- package/tabs/propertyGrids/gui/rectanglePropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/rectanglePropertyGridComponent.js +15 -15
- package/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/scrollViewerPropertyGridComponent.js +15 -15
- package/tabs/propertyGrids/gui/sliderPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/sliderPropertyGridComponent.js +16 -16
- package/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/stackPanelPropertyGridComponent.js +14 -14
- package/tabs/propertyGrids/gui/textBlockPropertyGridComponent.d.ts +15 -15
- package/tabs/propertyGrids/gui/textBlockPropertyGridComponent.js +34 -34
- package/tabs/propertyGrids/lockObject.d.ts +9 -9
- package/tabs/propertyGrids/lockObject.js +11 -11
@@ -1,20 +1,20 @@
|
|
1
|
-
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
-
import { Button } from "../components/Button.js";
|
3
|
-
import { Icon } from "../components/Icon.js";
|
4
|
-
import resizeToFitIcon from "../imgs/resizeToFitIcon.svg";
|
5
|
-
export default {
|
6
|
-
title: "Inputs/Button",
|
7
|
-
component: Button,
|
8
|
-
};
|
9
|
-
const Template = (args) => (_jsxs(_Fragment, { children: [_jsxs("div", { children: [_jsx("h1", { children: "Icons" }), _jsx(Button, { ...args, color: "light", title: "Foo", children: _jsx(Icon, { icon: resizeToFitIcon, color: "dark" }) }), _jsx(Button, { ...args, color: "dark", title: "Bar", children: _jsx(Icon, { icon: resizeToFitIcon, color: "light" }) })] }), _jsxs("div", { children: [_jsx("h1", { children: "Text" }), _jsx(Button, { ...args, color: "light", title: "Foo", children: "HELLO" }), _jsx(Button, { ...args, color: "dark", title: "Bar", children: "WORLD" })] })] }));
|
10
|
-
export const Default = Template.bind({});
|
11
|
-
Default.args = {};
|
12
|
-
export const Wide = Template.bind({});
|
13
|
-
Wide.args = {
|
14
|
-
size: "wide",
|
15
|
-
};
|
16
|
-
export const Small = Template.bind({});
|
17
|
-
Small.args = {
|
18
|
-
size: "small",
|
19
|
-
};
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
2
|
+
import { Button } from "../components/Button.js";
|
3
|
+
import { Icon } from "../components/Icon.js";
|
4
|
+
import resizeToFitIcon from "../imgs/resizeToFitIcon.svg";
|
5
|
+
export default {
|
6
|
+
title: "Inputs/Button",
|
7
|
+
component: Button,
|
8
|
+
};
|
9
|
+
const Template = (args) => (_jsxs(_Fragment, { children: [_jsxs("div", { children: [_jsx("h1", { children: "Icons" }), _jsx(Button, { ...args, color: "light", title: "Foo", children: _jsx(Icon, { icon: resizeToFitIcon, color: "dark" }) }), _jsx(Button, { ...args, color: "dark", title: "Bar", children: _jsx(Icon, { icon: resizeToFitIcon, color: "light" }) })] }), _jsxs("div", { children: [_jsx("h1", { children: "Text" }), _jsx(Button, { ...args, color: "light", title: "Foo", children: "HELLO" }), _jsx(Button, { ...args, color: "dark", title: "Bar", children: "WORLD" })] })] }));
|
10
|
+
export const Default = Template.bind({});
|
11
|
+
Default.args = {};
|
12
|
+
export const Wide = Template.bind({});
|
13
|
+
Wide.args = {
|
14
|
+
size: "wide",
|
15
|
+
};
|
16
|
+
export const Small = Template.bind({});
|
17
|
+
Small.args = {
|
18
|
+
size: "small",
|
19
|
+
};
|
20
20
|
//# sourceMappingURL=Button.stories.js.map
|
@@ -1,9 +1,9 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { IconProps } from "../components/Icon";
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: import("react").FC<IconProps>;
|
6
|
-
};
|
7
|
-
export default _default;
|
8
|
-
export declare const Light: any;
|
9
|
-
export declare const Dark: any;
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { IconProps } from "../components/Icon";
|
3
|
+
declare const _default: {
|
4
|
+
title: string;
|
5
|
+
component: import("react").FC<IconProps>;
|
6
|
+
};
|
7
|
+
export default _default;
|
8
|
+
export declare const Light: any;
|
9
|
+
export declare const Dark: any;
|
package/stories/Icon.stories.js
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { Icon } from "../components/Icon.js";
|
3
|
-
import resizeToFitIcon from "../imgs/resizeToFitIcon.svg";
|
4
|
-
export default {
|
5
|
-
title: "Layout/Icon",
|
6
|
-
component: Icon,
|
7
|
-
};
|
8
|
-
const Template = (args) => _jsx(Icon, { ...args, icon: resizeToFitIcon });
|
9
|
-
export const Light = Template.bind({});
|
10
|
-
Light.args = {
|
11
|
-
color: "light",
|
12
|
-
};
|
13
|
-
export const Dark = Template.bind({});
|
14
|
-
Dark.args = {
|
15
|
-
color: "dark",
|
16
|
-
};
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Icon } from "../components/Icon.js";
|
3
|
+
import resizeToFitIcon from "../imgs/resizeToFitIcon.svg";
|
4
|
+
export default {
|
5
|
+
title: "Layout/Icon",
|
6
|
+
component: Icon,
|
7
|
+
};
|
8
|
+
const Template = (args) => _jsx(Icon, { ...args, icon: resizeToFitIcon });
|
9
|
+
export const Light = Template.bind({});
|
10
|
+
Light.args = {
|
11
|
+
color: "light",
|
12
|
+
};
|
13
|
+
export const Dark = Template.bind({});
|
14
|
+
Dark.args = {
|
15
|
+
color: "dark",
|
16
|
+
};
|
17
17
|
//# sourceMappingURL=Icon.stories.js.map
|
@@ -1,8 +1,8 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { LabelProps } from "../components/Label";
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: import("react").FC<LabelProps>;
|
6
|
-
};
|
7
|
-
export default _default;
|
8
|
-
export declare const Default: any;
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { LabelProps } from "../components/Label";
|
3
|
+
declare const _default: {
|
4
|
+
title: string;
|
5
|
+
component: import("react").FC<LabelProps>;
|
6
|
+
};
|
7
|
+
export default _default;
|
8
|
+
export declare const Default: any;
|
package/stories/Label.stories.js
CHANGED
@@ -1,11 +1,11 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { Label } from "../components/Label.js";
|
3
|
-
import { Toggle } from "../components/Toggle.js";
|
4
|
-
export default {
|
5
|
-
title: "Layout/Label",
|
6
|
-
component: Label,
|
7
|
-
};
|
8
|
-
const Template = (args) => (_jsx(Label, { ...args, text: "Responsive:", children: _jsx(Toggle, { toggled: "off", color: args.color }) }));
|
9
|
-
export const Default = Template.bind({});
|
10
|
-
Default.args = {};
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Label } from "../components/Label.js";
|
3
|
+
import { Toggle } from "../components/Toggle.js";
|
4
|
+
export default {
|
5
|
+
title: "Layout/Label",
|
6
|
+
component: Label,
|
7
|
+
};
|
8
|
+
const Template = (args) => (_jsx(Label, { ...args, text: "Responsive:", children: _jsx(Toggle, { toggled: "off", color: args.color }) }));
|
9
|
+
export const Default = Template.bind({});
|
10
|
+
Default.args = {};
|
11
11
|
//# sourceMappingURL=Label.stories.js.map
|
@@ -1,9 +1,9 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { MessageDialogProps } from "../components/MessageDialog";
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: import("react").FC<MessageDialogProps>;
|
6
|
-
};
|
7
|
-
export default _default;
|
8
|
-
export declare const NoError: any;
|
9
|
-
export declare const Error: any;
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { MessageDialogProps } from "../components/MessageDialog";
|
3
|
+
declare const _default: {
|
4
|
+
title: string;
|
5
|
+
component: import("react").FC<MessageDialogProps>;
|
6
|
+
};
|
7
|
+
export default _default;
|
8
|
+
export declare const NoError: any;
|
9
|
+
export declare const Error: any;
|
@@ -1,20 +1,20 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { MessageDialog } from "../components/MessageDialog.js";
|
3
|
-
export default {
|
4
|
-
title: "Layout/MessageDialog",
|
5
|
-
component: MessageDialog,
|
6
|
-
};
|
7
|
-
const Template = (args) => {
|
8
|
-
return _jsx(MessageDialog, { ...args });
|
9
|
-
};
|
10
|
-
export const NoError = Template.bind({});
|
11
|
-
NoError.args = {
|
12
|
-
message: "No error",
|
13
|
-
isError: false,
|
14
|
-
};
|
15
|
-
export const Error = Template.bind({});
|
16
|
-
Error.args = {
|
17
|
-
message: "Error",
|
18
|
-
isError: true,
|
19
|
-
};
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { MessageDialog } from "../components/MessageDialog.js";
|
3
|
+
export default {
|
4
|
+
title: "Layout/MessageDialog",
|
5
|
+
component: MessageDialog,
|
6
|
+
};
|
7
|
+
const Template = (args) => {
|
8
|
+
return _jsx(MessageDialog, { ...args });
|
9
|
+
};
|
10
|
+
export const NoError = Template.bind({});
|
11
|
+
NoError.args = {
|
12
|
+
message: "No error",
|
13
|
+
isError: false,
|
14
|
+
};
|
15
|
+
export const Error = Template.bind({});
|
16
|
+
Error.args = {
|
17
|
+
message: "Error",
|
18
|
+
isError: true,
|
19
|
+
};
|
20
20
|
//# sourceMappingURL=MessageDialog.stories.js.map
|
@@ -1,9 +1,9 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import type { ToggleProps } from "../components/Toggle";
|
3
|
-
declare const _default: {
|
4
|
-
title: string;
|
5
|
-
component: import("react").FC<ToggleProps>;
|
6
|
-
};
|
7
|
-
export default _default;
|
8
|
-
export declare const Default: any;
|
9
|
-
export declare const Padded: any;
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { ToggleProps } from "../components/Toggle";
|
3
|
+
declare const _default: {
|
4
|
+
title: string;
|
5
|
+
component: import("react").FC<ToggleProps>;
|
6
|
+
};
|
7
|
+
export default _default;
|
8
|
+
export declare const Default: any;
|
9
|
+
export declare const Padded: any;
|
@@ -1,18 +1,18 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { Toggle } from "../components/Toggle.js";
|
3
|
-
export default {
|
4
|
-
title: "Inputs/Toggle",
|
5
|
-
component: Toggle,
|
6
|
-
};
|
7
|
-
const Template = (args) => _jsx(Toggle, { ...args, onToggle: () => { } });
|
8
|
-
export const Default = Template.bind({});
|
9
|
-
Default.args = {
|
10
|
-
toggled: "off",
|
11
|
-
padded: false,
|
12
|
-
};
|
13
|
-
export const Padded = Template.bind({});
|
14
|
-
Padded.args = {
|
15
|
-
toggled: "off",
|
16
|
-
padded: true,
|
17
|
-
};
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Toggle } from "../components/Toggle.js";
|
3
|
+
export default {
|
4
|
+
title: "Inputs/Toggle",
|
5
|
+
component: Toggle,
|
6
|
+
};
|
7
|
+
const Template = (args) => _jsx(Toggle, { ...args, onToggle: () => { } });
|
8
|
+
export const Default = Template.bind({});
|
9
|
+
Default.args = {
|
10
|
+
toggled: "off",
|
11
|
+
padded: false,
|
12
|
+
};
|
13
|
+
export const Padded = Template.bind({});
|
14
|
+
Padded.args = {
|
15
|
+
toggled: "off",
|
16
|
+
padded: true,
|
17
|
+
};
|
18
18
|
//# sourceMappingURL=Toggle.stories.js.map
|
@@ -1,11 +1,11 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare const _default: {
|
3
|
-
component: import("react").FC<import("../../components/bars/CommandBarComponent").ICommandBarComponentProps>;
|
4
|
-
};
|
5
|
-
export default _default;
|
6
|
-
export declare const Default: {};
|
7
|
-
export declare const WithArtboardColor: {
|
8
|
-
parameters: {
|
9
|
-
onArtboardColorChanged: (color: string) => void;
|
10
|
-
};
|
11
|
-
};
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const _default: {
|
3
|
+
component: import("react").FC<import("../../components/bars/CommandBarComponent").ICommandBarComponentProps>;
|
4
|
+
};
|
5
|
+
export default _default;
|
6
|
+
export declare const Default: {};
|
7
|
+
export declare const WithArtboardColor: {
|
8
|
+
parameters: {
|
9
|
+
onArtboardColorChanged: (color: string) => void;
|
10
|
+
};
|
11
|
+
};
|
@@ -1,13 +1,13 @@
|
|
1
|
-
import { CommandBarComponent } from "../../components/bars/CommandBarComponent.js";
|
2
|
-
export default { component: CommandBarComponent };
|
3
|
-
// Default rendering function.
|
4
|
-
export const Default = {};
|
5
|
-
const artBoardColorChange = (color) => {
|
6
|
-
console.log("new color", color);
|
7
|
-
};
|
8
|
-
// With Artboard color
|
9
|
-
export const WithArtboardColor = {
|
10
|
-
...Default,
|
11
|
-
parameters: { onArtboardColorChanged: artBoardColorChange },
|
12
|
-
};
|
1
|
+
import { CommandBarComponent } from "../../components/bars/CommandBarComponent.js";
|
2
|
+
export default { component: CommandBarComponent };
|
3
|
+
// Default rendering function.
|
4
|
+
export const Default = {};
|
5
|
+
const artBoardColorChange = (color) => {
|
6
|
+
console.log("new color", color);
|
7
|
+
};
|
8
|
+
// With Artboard color
|
9
|
+
export const WithArtboardColor = {
|
10
|
+
...Default,
|
11
|
+
parameters: { onArtboardColorChanged: artBoardColorChange },
|
12
|
+
};
|
13
13
|
//# sourceMappingURL=CommandBarComponent.stories.js.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
declare const _default: {
|
3
|
-
component: import("react").FC<import("../../components/bars/CommandButtonComponent").ICommandButtonComponentProps>;
|
4
|
-
};
|
5
|
-
export default _default;
|
6
|
-
export declare const Default: {};
|
1
|
+
/// <reference types="react" />
|
2
|
+
declare const _default: {
|
3
|
+
component: import("react").FC<import("../../components/bars/CommandButtonComponent").ICommandButtonComponentProps>;
|
4
|
+
};
|
5
|
+
export default _default;
|
6
|
+
export declare const Default: {};
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { CommandButtonComponent } from "../../components/bars/CommandButtonComponent.js";
|
2
|
-
export default {
|
3
|
-
component: CommandButtonComponent,
|
4
|
-
};
|
5
|
-
// Default rendering function
|
6
|
-
export const Default = {};
|
1
|
+
import { CommandButtonComponent } from "../../components/bars/CommandButtonComponent.js";
|
2
|
+
export default {
|
3
|
+
component: CommandButtonComponent,
|
4
|
+
};
|
5
|
+
// Default rendering function
|
6
|
+
export const Default = {};
|
7
7
|
//# sourceMappingURL=CommandButtonComponent.stories.js.map
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
2
|
-
import { ColorPicker } from "../../components/colorPicker/ColorPicker";
|
3
|
-
declare const _default: {
|
4
|
-
component: typeof ColorPicker;
|
5
|
-
};
|
6
|
-
export default _default;
|
7
|
-
export declare const Default: {
|
8
|
-
args: {
|
9
|
-
color: Color3;
|
10
|
-
};
|
11
|
-
};
|
1
|
+
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
2
|
+
import { ColorPicker } from "../../components/colorPicker/ColorPicker";
|
3
|
+
declare const _default: {
|
4
|
+
component: typeof ColorPicker;
|
5
|
+
};
|
6
|
+
export default _default;
|
7
|
+
export declare const Default: {
|
8
|
+
args: {
|
9
|
+
color: Color3;
|
10
|
+
};
|
11
|
+
};
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
2
|
-
import { ColorPicker } from "../../components/colorPicker/ColorPicker.js";
|
3
|
-
export default { component: ColorPicker };
|
4
|
-
export const Default = { args: { color: new Color3(1, 0, 0) } };
|
1
|
+
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
2
|
+
import { ColorPicker } from "../../components/colorPicker/ColorPicker.js";
|
3
|
+
export default { component: ColorPicker };
|
4
|
+
export const Default = { args: { color: new Color3(1, 0, 0) } };
|
5
5
|
//# sourceMappingURL=ColorPicker.stories.js.map
|
@@ -0,0 +1,46 @@
|
|
1
|
+
/// <reference types="react" />
|
2
|
+
import type { IFlexibleGridLayoutProps } from "../../components/layout/FlexibleGridLayout";
|
3
|
+
declare const _default: {
|
4
|
+
component: import("react").FC<IFlexibleGridLayoutProps>;
|
5
|
+
};
|
6
|
+
export default _default;
|
7
|
+
export declare const Default: {
|
8
|
+
render: (props: IFlexibleGridLayoutProps) => JSX.Element;
|
9
|
+
args: {
|
10
|
+
layoutDefinition: {
|
11
|
+
columns: {
|
12
|
+
id: string;
|
13
|
+
width: string;
|
14
|
+
rows: {
|
15
|
+
id: string;
|
16
|
+
height: string;
|
17
|
+
selectedTab: string;
|
18
|
+
tabs: {
|
19
|
+
id: string;
|
20
|
+
component: JSX.Element;
|
21
|
+
}[];
|
22
|
+
}[];
|
23
|
+
}[];
|
24
|
+
};
|
25
|
+
};
|
26
|
+
};
|
27
|
+
export declare const TwoColumn: {
|
28
|
+
render: (props: IFlexibleGridLayoutProps) => JSX.Element;
|
29
|
+
args: {
|
30
|
+
layoutDefinition: {
|
31
|
+
columns: {
|
32
|
+
id: string;
|
33
|
+
width: string;
|
34
|
+
rows: {
|
35
|
+
id: string;
|
36
|
+
height: string;
|
37
|
+
selectedTab: string;
|
38
|
+
tabs: {
|
39
|
+
id: string;
|
40
|
+
component: JSX.Element;
|
41
|
+
}[];
|
42
|
+
}[];
|
43
|
+
}[];
|
44
|
+
};
|
45
|
+
};
|
46
|
+
};
|
@@ -0,0 +1,48 @@
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { FlexibleGridLayout } from "../../components/layout/FlexibleGridLayout.js";
|
3
|
+
export default { component: FlexibleGridLayout };
|
4
|
+
export const Default = {
|
5
|
+
render: (props) => {
|
6
|
+
return (_jsx("div", { style: { width: "100%", height: "500px" }, children: _jsx(FlexibleGridLayout, { ...props }) }));
|
7
|
+
},
|
8
|
+
args: {
|
9
|
+
layoutDefinition: {
|
10
|
+
columns: [
|
11
|
+
{
|
12
|
+
id: "column1",
|
13
|
+
width: "100%",
|
14
|
+
rows: [
|
15
|
+
{ id: "row1", height: "50%", selectedTab: "tab1", tabs: [{ id: "tab1", component: _jsx("div", { children: "Test tab 1" }) }] },
|
16
|
+
{ id: "row2", height: "50%", selectedTab: "tab2", tabs: [{ id: "tab2", component: _jsx("div", { children: "Test tab 2" }) }] },
|
17
|
+
],
|
18
|
+
},
|
19
|
+
],
|
20
|
+
},
|
21
|
+
},
|
22
|
+
};
|
23
|
+
export const TwoColumn = {
|
24
|
+
render: Default.render,
|
25
|
+
args: {
|
26
|
+
layoutDefinition: {
|
27
|
+
columns: [
|
28
|
+
{
|
29
|
+
id: "column1",
|
30
|
+
width: "50%",
|
31
|
+
rows: [
|
32
|
+
{ id: "row1", height: "50%", selectedTab: "tab1", tabs: [{ id: "tab1", component: _jsx("div", { children: "Test tab 1" }) }] },
|
33
|
+
{ id: "row2", height: "50%", selectedTab: "tab2", tabs: [{ id: "tab2", component: _jsx("div", { children: "Test tab 2" }) }] },
|
34
|
+
],
|
35
|
+
},
|
36
|
+
{
|
37
|
+
id: "column2",
|
38
|
+
width: "50%",
|
39
|
+
rows: [
|
40
|
+
{ id: "row1", height: "50%", selectedTab: "tab1", tabs: [{ id: "tab1", component: _jsx("div", { children: "Test tab 1" }) }] },
|
41
|
+
{ id: "row2", height: "50%", selectedTab: "tab2", tabs: [{ id: "tab2", component: _jsx("div", { children: "Test tab 2" }) }] },
|
42
|
+
],
|
43
|
+
},
|
44
|
+
],
|
45
|
+
},
|
46
|
+
},
|
47
|
+
};
|
48
|
+
//# sourceMappingURL=FlexibleGridLayout.stories.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"FlexibleGridLayout.stories.js","sourceRoot":"","sources":["../../../../../../dev/sharedUiComponents/src/stories/layout/FlexibleGridLayout.stories.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAEhF,eAAe,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;AAEjD,MAAM,CAAC,MAAM,OAAO,GAAG;IACnB,MAAM,EAAE,CAAC,KAA+B,EAAE,EAAE;QACxC,OAAO,CACH,cAAK,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,YAC1C,KAAC,kBAAkB,OAAK,KAAK,GAAI,GAC/B,CACT,CAAC;IACN,CAAC;IACD,IAAI,EAAE;QACF,gBAAgB,EAAE;YACd,OAAO,EAAE;gBACL;oBACI,EAAE,EAAE,SAAS;oBACb,KAAK,EAAE,MAAM;oBACb,IAAI,EAAE;wBACF,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,uCAAqB,EAAE,CAAC,EAAE;wBAC5G,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,uCAAqB,EAAE,CAAC,EAAE;qBAC/G;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC;AAEF,MAAM,CAAC,MAAM,SAAS,GAAG;IACrB,MAAM,EAAE,OAAO,CAAC,MAAM;IACtB,IAAI,EAAE;QACF,gBAAgB,EAAE;YACd,OAAO,EAAE;gBACL;oBACI,EAAE,EAAE,SAAS;oBACb,KAAK,EAAE,KAAK;oBACZ,IAAI,EAAE;wBACF,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,uCAAqB,EAAE,CAAC,EAAE;wBAC5G,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,uCAAqB,EAAE,CAAC,EAAE;qBAC/G;iBACJ;gBACD;oBACI,EAAE,EAAE,SAAS;oBACb,KAAK,EAAE,KAAK;oBACZ,IAAI,EAAE;wBACF,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,uCAAqB,EAAE,CAAC,EAAE;wBAC5G,EAAE,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,uCAAqB,EAAE,CAAC,EAAE;qBAC/G;iBACJ;aACJ;SACJ;KACJ;CACJ,CAAC","sourcesContent":["import type { IFlexibleGridLayoutProps } from \"../../components/layout/FlexibleGridLayout\";\r\nimport { FlexibleGridLayout } from \"../../components/layout/FlexibleGridLayout\";\r\n\r\nexport default { component: FlexibleGridLayout };\r\n\r\nexport const Default = {\r\n render: (props: IFlexibleGridLayoutProps) => {\r\n return (\r\n <div style={{ width: \"100%\", height: \"500px\" }}>\r\n <FlexibleGridLayout {...props} />\r\n </div>\r\n );\r\n },\r\n args: {\r\n layoutDefinition: {\r\n columns: [\r\n {\r\n id: \"column1\",\r\n width: \"100%\",\r\n rows: [\r\n { id: \"row1\", height: \"50%\", selectedTab: \"tab1\", tabs: [{ id: \"tab1\", component: <div>Test tab 1</div> }] },\r\n { id: \"row2\", height: \"50%\", selectedTab: \"tab2\", tabs: [{ id: \"tab2\", component: <div>Test tab 2</div> }] },\r\n ],\r\n },\r\n ],\r\n },\r\n },\r\n};\r\n\r\nexport const TwoColumn = {\r\n render: Default.render,\r\n args: {\r\n layoutDefinition: {\r\n columns: [\r\n {\r\n id: \"column1\",\r\n width: \"50%\",\r\n rows: [\r\n { id: \"row1\", height: \"50%\", selectedTab: \"tab1\", tabs: [{ id: \"tab1\", component: <div>Test tab 1</div> }] },\r\n { id: \"row2\", height: \"50%\", selectedTab: \"tab2\", tabs: [{ id: \"tab2\", component: <div>Test tab 2</div> }] },\r\n ],\r\n },\r\n {\r\n id: \"column2\",\r\n width: \"50%\",\r\n rows: [\r\n { id: \"row1\", height: \"50%\", selectedTab: \"tab1\", tabs: [{ id: \"tab1\", component: <div>Test tab 1</div> }] },\r\n { id: \"row2\", height: \"50%\", selectedTab: \"tab2\", tabs: [{ id: \"tab2\", component: <div>Test tab 2</div> }] },\r\n ],\r\n },\r\n ],\r\n },\r\n },\r\n};\r\n"]}
|
@@ -1,21 +1,21 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
3
|
-
import type { PropertyChangedEvent } from "../../propertyChangedEvent";
|
4
|
-
import type { IColorLineComponentProps } from "../../components/lines/ColorLineComponent";
|
5
|
-
import { ColorLineComponent } from "../../components/lines/ColorLineComponent";
|
6
|
-
declare const _default: {
|
7
|
-
component: typeof ColorLineComponent;
|
8
|
-
};
|
9
|
-
export default _default;
|
10
|
-
export declare const Default: {
|
11
|
-
render: (args: IColorLineComponentProps) => JSX.Element;
|
12
|
-
args: {
|
13
|
-
target: {};
|
14
|
-
label: string;
|
15
|
-
propertyName: string;
|
16
|
-
lockObject: {
|
17
|
-
lock: boolean;
|
18
|
-
};
|
19
|
-
onPropertyChangedObservable: Observable<PropertyChangedEvent>;
|
20
|
-
};
|
21
|
-
};
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
3
|
+
import type { PropertyChangedEvent } from "../../propertyChangedEvent";
|
4
|
+
import type { IColorLineComponentProps } from "../../components/lines/ColorLineComponent";
|
5
|
+
import { ColorLineComponent } from "../../components/lines/ColorLineComponent";
|
6
|
+
declare const _default: {
|
7
|
+
component: typeof ColorLineComponent;
|
8
|
+
};
|
9
|
+
export default _default;
|
10
|
+
export declare const Default: {
|
11
|
+
render: (args: IColorLineComponentProps) => JSX.Element;
|
12
|
+
args: {
|
13
|
+
target: {};
|
14
|
+
label: string;
|
15
|
+
propertyName: string;
|
16
|
+
lockObject: {
|
17
|
+
lock: boolean;
|
18
|
+
};
|
19
|
+
onPropertyChangedObservable: Observable<PropertyChangedEvent>;
|
20
|
+
};
|
21
|
+
};
|
@@ -1,10 +1,10 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
3
|
-
import { ColorLineComponent } from "../../components/lines/ColorLineComponent.js";
|
4
|
-
export default { component: ColorLineComponent };
|
5
|
-
const propertyChangedObservable = new Observable();
|
6
|
-
export const Default = {
|
7
|
-
render: (args) => (_jsx("div", { style: { width: "100%", display: "flex", justifyContent: "center" }, children: _jsx(ColorLineComponent, { ...args }) })),
|
8
|
-
args: { target: {}, label: "test", propertyName: "test", lockObject: { lock: false }, onPropertyChangedObservable: propertyChangedObservable },
|
9
|
-
};
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Observable } from "@babylonjs/core/Misc/observable.js";
|
3
|
+
import { ColorLineComponent } from "../../components/lines/ColorLineComponent.js";
|
4
|
+
export default { component: ColorLineComponent };
|
5
|
+
const propertyChangedObservable = new Observable();
|
6
|
+
export const Default = {
|
7
|
+
render: (args) => (_jsx("div", { style: { width: "100%", display: "flex", justifyContent: "center" }, children: _jsx(ColorLineComponent, { ...args }) })),
|
8
|
+
args: { target: {}, label: "test", propertyName: "test", lockObject: { lock: false }, onPropertyChangedObservable: propertyChangedObservable },
|
9
|
+
};
|
10
10
|
//# sourceMappingURL=ColorLineComponent.stories.js.map
|
@@ -1,14 +1,14 @@
|
|
1
|
-
/// <reference types="react" />
|
2
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
3
|
-
import type { IColorPickerComponentProps } from "../../components/lines/ColorPickerLineComponent";
|
4
|
-
import { ColorPickerLineComponent } from "../../components/lines/ColorPickerLineComponent";
|
5
|
-
declare const _default: {
|
6
|
-
component: typeof ColorPickerLineComponent;
|
7
|
-
};
|
8
|
-
export default _default;
|
9
|
-
export declare const Default: {
|
10
|
-
render: (args: IColorPickerComponentProps) => JSX.Element;
|
11
|
-
args: {
|
12
|
-
value: Color3;
|
13
|
-
};
|
14
|
-
};
|
1
|
+
/// <reference types="react" />
|
2
|
+
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
3
|
+
import type { IColorPickerComponentProps } from "../../components/lines/ColorPickerLineComponent";
|
4
|
+
import { ColorPickerLineComponent } from "../../components/lines/ColorPickerLineComponent";
|
5
|
+
declare const _default: {
|
6
|
+
component: typeof ColorPickerLineComponent;
|
7
|
+
};
|
8
|
+
export default _default;
|
9
|
+
export declare const Default: {
|
10
|
+
render: (args: IColorPickerComponentProps) => JSX.Element;
|
11
|
+
args: {
|
12
|
+
value: Color3;
|
13
|
+
};
|
14
|
+
};
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
-
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
3
|
-
import { ColorPickerLineComponent } from "../../components/lines/ColorPickerLineComponent.js";
|
4
|
-
export default {
|
5
|
-
component: ColorPickerLineComponent,
|
6
|
-
};
|
7
|
-
export const Default = {
|
8
|
-
render: (args) => (_jsx("div", { style: { width: "100%", display: "flex", justifyContent: "center" }, children: _jsx(ColorPickerLineComponent, { ...args }) })),
|
9
|
-
args: { value: new Color3(1, 0, 0) },
|
10
|
-
};
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
2
|
+
import { Color3 } from "@babylonjs/core/Maths/math.color.js";
|
3
|
+
import { ColorPickerLineComponent } from "../../components/lines/ColorPickerLineComponent.js";
|
4
|
+
export default {
|
5
|
+
component: ColorPickerLineComponent,
|
6
|
+
};
|
7
|
+
export const Default = {
|
8
|
+
render: (args) => (_jsx("div", { style: { width: "100%", display: "flex", justifyContent: "center" }, children: _jsx(ColorPickerLineComponent, { ...args }) })),
|
9
|
+
args: { value: new Color3(1, 0, 0) },
|
10
|
+
};
|
11
11
|
//# sourceMappingURL=ColorPickerLineComponent.stories.js.map
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { FileButtonLineComponent } from "../../components/lines/FileButtonLineComponent";
|
2
|
-
declare const _default: {
|
3
|
-
component: typeof FileButtonLineComponent;
|
4
|
-
};
|
5
|
-
export default _default;
|
6
|
-
export declare const Default: {};
|
1
|
+
import { FileButtonLineComponent } from "../../components/lines/FileButtonLineComponent";
|
2
|
+
declare const _default: {
|
3
|
+
component: typeof FileButtonLineComponent;
|
4
|
+
};
|
5
|
+
export default _default;
|
6
|
+
export declare const Default: {};
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { FileButtonLineComponent } from "../../components/lines/FileButtonLineComponent.js";
|
2
|
-
export default {
|
3
|
-
component: FileButtonLineComponent,
|
4
|
-
};
|
5
|
-
export const Default = {};
|
1
|
+
import { FileButtonLineComponent } from "../../components/lines/FileButtonLineComponent.js";
|
2
|
+
export default {
|
3
|
+
component: FileButtonLineComponent,
|
4
|
+
};
|
5
|
+
export const Default = {};
|
6
6
|
//# sourceMappingURL=FileButtonLineComponent.stories.js.map
|