oasis-editor 0.0.118 → 0.0.119
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{OasisEditorApp-DxTXNB8H.js → OasisEditorApp-1pwk-3zw.js} +1780 -1345
- package/dist/adapters/ui.d.ts +2 -2
- package/dist/{index-DxemmUXw.js → index-rlmjHSGT.js} +801 -447
- package/dist/index.d.ts +2 -2
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +34 -26
- package/dist/oasis-editor.umd.cjs +3 -3
- package/dist/ui/public/ColorField.d.ts +7 -0
- package/dist/ui/public/Grid.d.ts +18 -0
- package/dist/ui/public/Stack.d.ts +13 -0
- package/dist/ui/public/index.d.ts +7 -0
- package/dist/ui/public/layoutTypes.d.ts +17 -0
- package/dist/ui.d.ts +2 -2
- package/dist/ui.js +39 -18
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
import { TextFieldProps } from './TextField.js';
|
|
3
|
+
|
|
4
|
+
export interface ColorFieldProps extends Omit<TextFieldProps, "type" | "onChange"> {
|
|
5
|
+
onChange?: (value: string) => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function ColorField(props: ColorFieldProps): JSX.Element;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { JSX, ParentProps } from 'solid-js';
|
|
2
|
+
import { FlexAlign, FlexJustify, FlexWrap, GridOffset, GridSize, ResponsiveValue, SpacingValue, StackDirection } from './layoutTypes.js';
|
|
3
|
+
|
|
4
|
+
export interface GridProps extends ParentProps<JSX.HTMLAttributes<HTMLElement>> {
|
|
5
|
+
container?: boolean;
|
|
6
|
+
size?: ResponsiveValue<GridSize>;
|
|
7
|
+
columns?: ResponsiveValue<number>;
|
|
8
|
+
spacing?: ResponsiveValue<SpacingValue>;
|
|
9
|
+
rowSpacing?: ResponsiveValue<SpacingValue>;
|
|
10
|
+
columnSpacing?: ResponsiveValue<SpacingValue>;
|
|
11
|
+
direction?: ResponsiveValue<StackDirection>;
|
|
12
|
+
offset?: ResponsiveValue<GridOffset>;
|
|
13
|
+
wrap?: ResponsiveValue<FlexWrap>;
|
|
14
|
+
alignItems?: ResponsiveValue<FlexAlign>;
|
|
15
|
+
justifyContent?: ResponsiveValue<FlexJustify>;
|
|
16
|
+
component?: keyof JSX.IntrinsicElements;
|
|
17
|
+
}
|
|
18
|
+
export declare function Grid(props: GridProps): JSX.Element;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { JSX, ParentProps } from 'solid-js';
|
|
2
|
+
import { FlexAlign, FlexJustify, ResponsiveValue, SpacingValue, StackDirection } from './layoutTypes.js';
|
|
3
|
+
|
|
4
|
+
export interface StackProps extends ParentProps<JSX.HTMLAttributes<HTMLElement>> {
|
|
5
|
+
direction?: ResponsiveValue<StackDirection>;
|
|
6
|
+
spacing?: ResponsiveValue<SpacingValue>;
|
|
7
|
+
divider?: JSX.Element | ((index: number) => JSX.Element);
|
|
8
|
+
useFlexGap?: boolean;
|
|
9
|
+
alignItems?: ResponsiveValue<FlexAlign>;
|
|
10
|
+
justifyContent?: ResponsiveValue<FlexJustify>;
|
|
11
|
+
component?: keyof JSX.IntrinsicElements;
|
|
12
|
+
}
|
|
13
|
+
export declare function Stack(props: StackProps): JSX.Element;
|
|
@@ -16,12 +16,19 @@ export { StatusText } from './StatusText.js';
|
|
|
16
16
|
export type { StatusTextProps } from './StatusText.js';
|
|
17
17
|
export { ActionRow } from './ActionRow.js';
|
|
18
18
|
export type { ActionRowProps } from './ActionRow.js';
|
|
19
|
+
export { Stack } from './Stack.js';
|
|
20
|
+
export type { StackProps } from './Stack.js';
|
|
21
|
+
export { Grid } from './Grid.js';
|
|
22
|
+
export type { GridProps } from './Grid.js';
|
|
23
|
+
export type { GridOffset, GridSize, ResponsiveValue } from './layoutTypes.js';
|
|
19
24
|
export { FormField } from './FormField.js';
|
|
20
25
|
export type { FormFieldProps } from './FormField.js';
|
|
21
26
|
export { TextField } from './TextField.js';
|
|
22
27
|
export type { TextFieldProps } from './TextField.js';
|
|
23
28
|
export { TextAreaField } from './TextAreaField.js';
|
|
24
29
|
export type { TextAreaFieldProps } from './TextAreaField.js';
|
|
30
|
+
export { ColorField } from './ColorField.js';
|
|
31
|
+
export type { ColorFieldProps } from './ColorField.js';
|
|
25
32
|
export { Checkbox } from './Checkbox.js';
|
|
26
33
|
export type { CheckboxProps } from './Checkbox.js';
|
|
27
34
|
export { SelectField } from './SelectField.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
|
|
3
|
+
export type Breakpoint = "xs" | "sm" | "md" | "lg" | "xl";
|
|
4
|
+
export type ResponsiveValue<T> = T | Partial<Record<Breakpoint, T>>;
|
|
5
|
+
export type SpacingValue = number | string;
|
|
6
|
+
export type StackDirection = "row" | "row-reverse" | "column" | "column-reverse";
|
|
7
|
+
export type FlexWrap = "nowrap" | "wrap" | "wrap-reverse";
|
|
8
|
+
export type FlexAlign = "flex-start" | "center" | "flex-end" | "stretch" | "baseline";
|
|
9
|
+
export type FlexJustify = "flex-start" | "center" | "flex-end" | "space-between" | "space-around" | "space-evenly";
|
|
10
|
+
export type GridSize = number | "auto" | "grow" | false;
|
|
11
|
+
export type GridOffset = number | "auto";
|
|
12
|
+
export declare const BREAKPOINTS: Breakpoint[];
|
|
13
|
+
export declare function isResponsiveObject<T>(value: ResponsiveValue<T> | undefined): value is Partial<Record<Breakpoint, T>>;
|
|
14
|
+
export declare function toResponsiveRecord<T>(value: ResponsiveValue<T> | undefined): Partial<Record<Breakpoint, T>>;
|
|
15
|
+
export declare function spacingToCss(value: SpacingValue): string;
|
|
16
|
+
export declare function responsiveCssVars<T>(prefix: string, value: ResponsiveValue<T> | undefined, transform: (value: T) => string): JSX.CSSProperties;
|
|
17
|
+
export declare function mergeStyles(...styles: Array<JSX.CSSProperties | string | undefined>): JSX.CSSProperties | string | undefined;
|
package/dist/ui.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { Button, Checkbox, ColorPicker, ColorPicker as ToolbarColorPicker, Dialog, DialogFooter, GridPicker, IconButton, Menu, Popover, Select, SelectField, Separator, SplitButton, Tabs, TextField, ToolbarButton, } from '../index.ts';
|
|
2
|
-
export type { ButtonProps, CheckboxProps, ColorPickerKind, ColorPickerProps, DialogFooterProps, DialogProps, GridPickerProps, IconButtonProps, MenuProps, PopoverProps, PopoverTriggerApi, SelectFieldOption, SelectFieldProps, SeparatorProps, SplitButtonProps, TabsItem, TabsProps, TextFieldProps, ToolbarButtonProps, ToolbarSelectProps, } from '../index.ts';
|
|
1
|
+
export { ActionRow, Button, Checkbox, ColorField, ColorPicker, ColorPicker as ToolbarColorPicker, Dialog, DialogFooter, FieldGroup, FieldRow, FloatingActionButton, FormField, Grid, GridPicker, Heading, IconButton, Menu, NumberField, Popover, Radio, RadioGroup, Select, SelectField, Separator, SidePanel, SidePanelBody, SidePanelFooter, SidePanelHeader, SplitButton, Stack, StatusText, SurfaceButton, Tabs, Text, TextAreaField, TextField, ToolbarButton, ToggleChip, } from '../index.ts';
|
|
2
|
+
export type { ActionRowProps, ButtonProps, CheckboxProps, ColorFieldProps, ColorPickerKind, ColorPickerProps, DialogFooterProps, DialogProps, FieldGroupProps, FieldRowProps, FloatingActionButtonProps, FormFieldProps, GridOffset, GridPickerProps, GridProps, GridSize, HeadingProps, IconButtonProps, MenuProps, NumberFieldProps, PopoverProps, PopoverTriggerApi, RadioGroupOption, RadioGroupProps, RadioProps, ResponsiveValue, SelectFieldOption, SelectFieldProps, SeparatorProps, SidePanelProps, SidePanelSectionProps, SplitButtonProps, StackProps, StatusTextProps, SurfaceButtonProps, TabsItem, TabsProps, TextAreaFieldProps, TextProps, TextFieldProps, ToolbarButtonProps, ToolbarSelectProps, ToggleChipProps, } from '../index.ts';
|
package/dist/ui.js
CHANGED
|
@@ -1,20 +1,41 @@
|
|
|
1
|
-
import { Button as
|
|
1
|
+
import { ActionRow as t, Button as i, Checkbox as r, ColorField as l, ColorPicker as a, Dialog as d, DialogFooter as n, FieldGroup as c, FieldRow as u, FloatingActionButton as F, FormField as S, Grid as P, GridPicker as T, Heading as p, IconButton as B, Menu as g, NumberField as k, Popover as x, Radio as C, RadioGroup as b, Select as G, SelectField as R, Separator as m, SidePanel as s, SidePanelBody as A, SidePanelFooter as f, SidePanelHeader as h, SplitButton as w, Stack as D, StatusText as H, SurfaceButton as v, Tabs as y, Text as I, TextAreaField as M, TextField as N, ToggleChip as j, ToolbarButton as q, ColorPicker as z } from "oasis-editor";
|
|
2
2
|
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
a as
|
|
8
|
-
|
|
9
|
-
n as
|
|
10
|
-
|
|
11
|
-
u as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
3
|
+
t as ActionRow,
|
|
4
|
+
i as Button,
|
|
5
|
+
r as Checkbox,
|
|
6
|
+
l as ColorField,
|
|
7
|
+
a as ColorPicker,
|
|
8
|
+
d as Dialog,
|
|
9
|
+
n as DialogFooter,
|
|
10
|
+
c as FieldGroup,
|
|
11
|
+
u as FieldRow,
|
|
12
|
+
F as FloatingActionButton,
|
|
13
|
+
S as FormField,
|
|
14
|
+
P as Grid,
|
|
15
|
+
T as GridPicker,
|
|
16
|
+
p as Heading,
|
|
17
|
+
B as IconButton,
|
|
18
|
+
g as Menu,
|
|
19
|
+
k as NumberField,
|
|
20
|
+
x as Popover,
|
|
21
|
+
C as Radio,
|
|
22
|
+
b as RadioGroup,
|
|
23
|
+
G as Select,
|
|
24
|
+
R as SelectField,
|
|
25
|
+
m as Separator,
|
|
26
|
+
s as SidePanel,
|
|
27
|
+
A as SidePanelBody,
|
|
28
|
+
f as SidePanelFooter,
|
|
29
|
+
h as SidePanelHeader,
|
|
30
|
+
w as SplitButton,
|
|
31
|
+
D as Stack,
|
|
32
|
+
H as StatusText,
|
|
33
|
+
v as SurfaceButton,
|
|
34
|
+
y as Tabs,
|
|
35
|
+
I as Text,
|
|
36
|
+
M as TextAreaField,
|
|
37
|
+
N as TextField,
|
|
38
|
+
j as ToggleChip,
|
|
39
|
+
q as ToolbarButton,
|
|
40
|
+
z as ToolbarColorPicker
|
|
20
41
|
};
|