oasis-editor 0.0.117 → 0.0.118
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-DijR5F-O.js → OasisEditorApp-DxTXNB8H.js} +716 -477
- package/dist/{index-Comlrue1.js → index-DxemmUXw.js} +805 -442
- package/dist/index.d.ts +2 -2
- package/dist/oasis-editor.css +1 -1
- package/dist/oasis-editor.js +56 -48
- package/dist/oasis-editor.umd.cjs +4 -4
- package/dist/ui/public/ActionRow.d.ts +7 -0
- package/dist/ui/public/FieldGroup.d.ts +7 -0
- package/dist/ui/public/FormField.d.ts +10 -0
- package/dist/ui/public/Heading.d.ts +6 -0
- package/dist/ui/public/SelectField.d.ts +2 -0
- package/dist/ui/public/StatusText.d.ts +7 -0
- package/dist/ui/public/SurfaceButton.d.ts +10 -0
- package/dist/ui/public/Text.d.ts +8 -0
- package/dist/ui/public/TextAreaField.d.ts +11 -0
- package/dist/ui/public/TextField.d.ts +2 -0
- package/dist/ui/public/index.d.ts +16 -0
- package/package.json +2 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
|
|
3
|
+
export interface FormFieldProps extends JSX.HTMLAttributes<HTMLDivElement> {
|
|
4
|
+
label?: string;
|
|
5
|
+
for?: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
error?: string;
|
|
8
|
+
labelClass?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare function FormField(props: FormFieldProps): JSX.Element;
|
|
@@ -9,6 +9,8 @@ export interface SelectFieldProps extends Omit<JSX.SelectHTMLAttributes<HTMLSele
|
|
|
9
9
|
label?: string;
|
|
10
10
|
description?: string;
|
|
11
11
|
error?: string;
|
|
12
|
+
labelClass?: string;
|
|
13
|
+
controlClass?: string;
|
|
12
14
|
options: SelectFieldOption[];
|
|
13
15
|
onChange?: (value: string) => void;
|
|
14
16
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
|
|
3
|
+
export interface SurfaceButtonProps extends JSX.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
icon?: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
variant?: "ghost" | "secondary";
|
|
7
|
+
size?: "sm" | "md";
|
|
8
|
+
active?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare function SurfaceButton(props: SurfaceButtonProps): JSX.Element;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
|
|
3
|
+
export interface TextProps extends JSX.HTMLAttributes<HTMLSpanElement> {
|
|
4
|
+
as?: "span" | "p" | "strong";
|
|
5
|
+
tone?: "default" | "muted" | "danger";
|
|
6
|
+
size?: "sm" | "md";
|
|
7
|
+
}
|
|
8
|
+
export declare function Text(props: TextProps): JSX.Element;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { JSX } from 'solid-js';
|
|
2
|
+
|
|
3
|
+
export interface TextAreaFieldProps extends Omit<JSX.TextareaHTMLAttributes<HTMLTextAreaElement>, "onChange"> {
|
|
4
|
+
label?: string;
|
|
5
|
+
description?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
labelClass?: string;
|
|
8
|
+
controlClass?: string;
|
|
9
|
+
onChange?: (value: string) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function TextAreaField(props: TextAreaFieldProps): JSX.Element;
|
|
@@ -4,6 +4,8 @@ export interface TextFieldProps extends Omit<JSX.InputHTMLAttributes<HTMLInputEl
|
|
|
4
4
|
label?: string;
|
|
5
5
|
description?: string;
|
|
6
6
|
error?: string;
|
|
7
|
+
labelClass?: string;
|
|
8
|
+
controlClass?: string;
|
|
7
9
|
onChange?: (value: string) => void;
|
|
8
10
|
}
|
|
9
11
|
export declare function TextField(props: TextFieldProps): JSX.Element;
|
|
@@ -4,10 +4,24 @@ export { Tabs } from '../components/Tabs/Tabs.js';
|
|
|
4
4
|
export type { TabsItem, TabsProps } from '../components/Tabs/Tabs.js';
|
|
5
5
|
export { Button } from './Button.js';
|
|
6
6
|
export type { ButtonProps } from './Button.js';
|
|
7
|
+
export { SurfaceButton } from './SurfaceButton.js';
|
|
8
|
+
export type { SurfaceButtonProps } from './SurfaceButton.js';
|
|
7
9
|
export { IconButton } from './IconButton.js';
|
|
8
10
|
export type { IconButtonProps } from './IconButton.js';
|
|
11
|
+
export { Text } from './Text.js';
|
|
12
|
+
export type { TextProps } from './Text.js';
|
|
13
|
+
export { Heading } from './Heading.js';
|
|
14
|
+
export type { HeadingProps } from './Heading.js';
|
|
15
|
+
export { StatusText } from './StatusText.js';
|
|
16
|
+
export type { StatusTextProps } from './StatusText.js';
|
|
17
|
+
export { ActionRow } from './ActionRow.js';
|
|
18
|
+
export type { ActionRowProps } from './ActionRow.js';
|
|
19
|
+
export { FormField } from './FormField.js';
|
|
20
|
+
export type { FormFieldProps } from './FormField.js';
|
|
9
21
|
export { TextField } from './TextField.js';
|
|
10
22
|
export type { TextFieldProps } from './TextField.js';
|
|
23
|
+
export { TextAreaField } from './TextAreaField.js';
|
|
24
|
+
export type { TextAreaFieldProps } from './TextAreaField.js';
|
|
11
25
|
export { Checkbox } from './Checkbox.js';
|
|
12
26
|
export type { CheckboxProps } from './Checkbox.js';
|
|
13
27
|
export { SelectField } from './SelectField.js';
|
|
@@ -18,6 +32,8 @@ export { Radio, RadioGroup } from './Radio.js';
|
|
|
18
32
|
export type { RadioGroupOption, RadioGroupProps, RadioProps } from './Radio.js';
|
|
19
33
|
export { FieldRow } from './FieldRow.js';
|
|
20
34
|
export type { FieldRowProps } from './FieldRow.js';
|
|
35
|
+
export { FieldGroup } from './FieldGroup.js';
|
|
36
|
+
export type { FieldGroupProps } from './FieldGroup.js';
|
|
21
37
|
export { ToggleChip } from './ToggleChip.js';
|
|
22
38
|
export type { ToggleChipProps } from './ToggleChip.js';
|
|
23
39
|
export { DialogFooter } from './DialogFooter.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oasis-editor",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.118",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
"test": "vitest run",
|
|
60
60
|
"test:word-parity": "vitest run --config vitest.word-parity.config.js",
|
|
61
61
|
"check:imports": "node ./scripts/check-import-graph.mjs",
|
|
62
|
+
"check:native-ui": "node ./scripts/check-native-ui-elements.mjs",
|
|
62
63
|
"typecheck": "tsc --noEmit",
|
|
63
64
|
"lint": "eslint src --ext .ts,.tsx",
|
|
64
65
|
"format": "prettier --write \"src/**/*.{ts,tsx}\""
|