@vev/silke 1.0.19 → 1.0.21
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/CHANGELOG.md +20 -0
- package/dist/{chunk-FIPWO3IB.js → chunk-PP74IZDW.js} +2 -2
- package/dist/{chunk-FIPWO3IB.js.map → chunk-PP74IZDW.js.map} +2 -2
- package/dist/index.js +20 -20
- package/dist/index.js.map +4 -4
- package/dist/silke/src/components/silke-box/silke-box.d.ts +1 -2
- package/dist/silke/src/components/silke-card/silke-card.d.ts +2 -0
- package/dist/silke/src/components/silke-form-schema/fields/number-field.d.ts +3 -1
- package/dist/silke/src/components/silke-form-schema/silke-schema-field.d.ts +2 -2
- package/dist/silke/src/components/silke-tabs/silke-tab.d.ts +4 -7
- package/dist/silke/src/components/silke-tabs/silke-tabs.d.ts +4 -6
- package/dist/silke/src/components/silke-text-field/silke-text-field-outline.d.ts +1 -2
- package/dist/silke/src/components/silke-tooltip/silke-shortcuts.d.ts +1 -1
- package/dist/silke/src/components/silke-upload-field/silke-upload-field.d.ts +1 -0
- package/dist/silke/src/icons.d.ts +3 -0
- package/dist/{silke-code-editor-HB2Z4Q5W.js → silke-code-editor-4TSQ5KJ3.js} +12 -12
- package/dist/silke-code-editor-4TSQ5KJ3.js.map +7 -0
- package/dist/styles.css +330 -356
- package/dist/utils/src/interactions/get-interaction-map.d.ts +3 -0
- package/dist/utils/src/interactions/index.d.ts +2 -0
- package/dist/utils/src/interactions/interaction-map-to-array.d.ts +2 -0
- package/dist/utils/src/types/context.d.ts +1 -1
- package/dist/utils/src/types/index.d.ts +1 -0
- package/dist/utils/src/types/interaction.d.ts +15 -4
- package/dist/utils/src/types/oauth.d.ts +13 -0
- package/dist/utils/src/types/vev-plugin.d.ts +39 -8
- package/package.json +5 -4
- package/src/components/silke-autocomplete-field/autocomplete-item.tsx +1 -0
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.scss +22 -9
- package/src/components/silke-autocomplete-field/silke-autocomplete-field.tsx +12 -10
- package/src/components/silke-box/silke-box.mdx +2 -2
- package/src/components/silke-box/silke-box.scss +2 -1
- package/src/components/silke-box/silke-box.tsx +1 -2
- package/src/components/silke-button/silke-button.scss +2 -2
- package/src/components/silke-card/silke-card-grid.tsx +1 -3
- package/src/components/silke-card/silke-card.scss +28 -3
- package/src/components/silke-card/silke-card.tsx +27 -9
- package/src/components/silke-code-snippet/silke-code-snippet.tsx +2 -2
- package/src/components/silke-form-schema/fields/image-field.tsx +4 -2
- package/src/components/silke-form-schema/fields/link-field.tsx +2 -6
- package/src/components/silke-form-schema/fields/number-field.tsx +47 -43
- package/src/components/silke-form-schema/fields/object-field.tsx +1 -1
- package/src/components/silke-form-schema/fields/select-field.tsx +37 -49
- package/src/components/silke-form-schema/fields/string-field.tsx +13 -28
- package/src/components/silke-form-schema/fields/toggle-field.tsx +8 -10
- package/src/components/silke-form-schema/silke-form-schema.mdx +14 -26
- package/src/components/silke-form-schema/silke-form-schema.tsx +4 -1
- package/src/components/silke-form-schema/silke-schema-field.tsx +8 -8
- package/src/components/silke-form-schema/silke-schema-fields.tsx +2 -2
- package/src/components/silke-icon-picker/silke-icon-picker.tsx +1 -1
- package/src/components/silke-list-card/silke-list-card.tsx +0 -2
- package/src/components/silke-overflow-menu/silke-overflow-menu.tsx +1 -1
- package/src/components/silke-tabs/silke-tab.tsx +17 -50
- package/src/components/silke-tabs/silke-tabs.mdx +4 -16
- package/src/components/silke-tabs/silke-tabs.scss +24 -81
- package/src/components/silke-tabs/silke-tabs.tsx +12 -10
- package/src/components/silke-tag/silke-tag.mdx +78 -24
- package/src/components/silke-tag/silke-tag.scss +4 -1
- package/src/components/silke-text/silke-title.scss +0 -2
- package/src/components/silke-text-field/silke-text-field-outline.tsx +28 -16
- package/src/components/silke-text-field/silke-text-field.mdx +12 -0
- package/src/components/silke-text-field/silke-text-field.scss +8 -1
- package/src/components/silke-text-field/silke-text-field.tsx +2 -2
- package/src/components/silke-upload-field/silke-upload-field.tsx +5 -1
- package/src/icons.tsx +9 -19
- package/src/styles/core.scss +6 -0
- package/dist/silke-code-editor-HB2Z4Q5W.js.map +0 -7
- package/dist/utils/src/keyboard/key-list.d.ts +0 -4
- /package/dist/{chunk-FIPWO3IB.js.LEGAL.txt → chunk-PP74IZDW.js.LEGAL.txt} +0 -0
- /package/dist/{silke-code-editor-HB2Z4Q5W.js.LEGAL.txt → silke-code-editor-4TSQ5KJ3.js.LEGAL.txt} +0 -0
|
@@ -44,7 +44,7 @@ type BaseProps = {
|
|
|
44
44
|
/** Width of the box (x2 of the spaceing, example: 'm' = 32px wide) */
|
|
45
45
|
minWidth?: BoxSize;
|
|
46
46
|
/** Background color */
|
|
47
|
-
bg?: SilkeColor;
|
|
47
|
+
bg?: SilkeColor | 'blur';
|
|
48
48
|
/** Background color on hover */
|
|
49
49
|
bgHover?: SilkeColor;
|
|
50
50
|
/** Text color */
|
|
@@ -61,7 +61,6 @@ type BaseProps = {
|
|
|
61
61
|
flex?: boolean;
|
|
62
62
|
/** Wrap items */
|
|
63
63
|
wrap?: boolean;
|
|
64
|
-
/** HTML tag typeTag type */
|
|
65
64
|
/** Align content of box, use array to define separat for x and y axis */
|
|
66
65
|
align?: BoxAlign | [BoxAlign, BoxAlign];
|
|
67
66
|
vAlign?: BoxAlign;
|
|
@@ -17,6 +17,8 @@ export declare const SilkeCard: React.ForwardRefExoticComponent<{
|
|
|
17
17
|
selected?: boolean | undefined;
|
|
18
18
|
checked?: boolean | undefined;
|
|
19
19
|
onCheck?: ((checked: boolean) => void) | undefined;
|
|
20
|
+
/** Shows info icon in label */
|
|
21
|
+
onMore?: (() => void) | undefined;
|
|
20
22
|
/**
|
|
21
23
|
* Show overflow menu above menu button
|
|
22
24
|
*/
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
import { NumberField as NumberFieldType, SchemaFieldProps } from '@vev/utils';
|
|
2
2
|
import React from 'react';
|
|
3
|
-
declare const NumberField: (props: SchemaFieldProps<NumberFieldType
|
|
3
|
+
declare const NumberField: (props: SchemaFieldProps<Omit<NumberFieldType, 'format'>> & {
|
|
4
|
+
format?: string;
|
|
5
|
+
}) => React.JSX.Element;
|
|
4
6
|
export default NumberField;
|
|
@@ -4,7 +4,7 @@ type SilkeSchemaFieldProps = {
|
|
|
4
4
|
field: VevProps;
|
|
5
5
|
value?: any;
|
|
6
6
|
noPad?: boolean;
|
|
7
|
-
|
|
7
|
+
isFirst?: boolean;
|
|
8
8
|
};
|
|
9
|
-
export declare function SilkeSchemaField({ field, value: fieldValue, noPad,
|
|
9
|
+
export declare function SilkeSchemaField({ field, value: fieldValue, noPad, isFirst, }: SilkeSchemaFieldProps): React.JSX.Element | null;
|
|
10
10
|
export {};
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { BoxButtonProps } from '../silke-box';
|
|
2
3
|
export type SilkeTabProps = {
|
|
3
|
-
label:
|
|
4
|
+
label: React.ReactNode;
|
|
4
5
|
active?: boolean;
|
|
5
6
|
disabled?: boolean;
|
|
6
|
-
error?: boolean;
|
|
7
7
|
href?: string;
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
onClick?: () => void;
|
|
11
|
-
};
|
|
12
|
-
export declare function SilkeTab({ label, active, href, className, error, style, onClick, ...rest }: SilkeTabProps): React.JSX.Element;
|
|
8
|
+
} & Omit<BoxButtonProps, 'size' | 'height' | 'width' | 'rounded' | 'children'>;
|
|
9
|
+
export declare function SilkeTab({ label, active, href, className, ...rest }: SilkeTabProps): React.JSX.Element;
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { BoxProps } from '../silke-box';
|
|
2
|
+
import { BoxDivProps } from '../silke-box';
|
|
4
3
|
type TabsProps = {
|
|
5
|
-
|
|
6
|
-
bg?: SilkeColor;
|
|
4
|
+
size?: 's' | 'base';
|
|
7
5
|
children: React.ReactNode;
|
|
8
|
-
} &
|
|
9
|
-
export declare function SilkeTabs({
|
|
6
|
+
} & Omit<BoxDivProps, 'size' | 'height' | 'width'>;
|
|
7
|
+
export declare function SilkeTabs({ children, size, className, ...rest }: TabsProps): React.JSX.Element;
|
|
10
8
|
export {};
|
|
@@ -18,8 +18,6 @@ export type SilkeTextFieldOutlineProps = {
|
|
|
18
18
|
vAlign?: BoxProps['vAlign'];
|
|
19
19
|
/** Inline will add the label before the input field */
|
|
20
20
|
inline?: boolean | 'label-inside';
|
|
21
|
-
/** Width of the inline label */
|
|
22
|
-
inlineLabelWidth?: number;
|
|
23
21
|
/** Field required input (if string the string will be used as error msg) */
|
|
24
22
|
/** Helpful tip or explanation of function of the field */
|
|
25
23
|
help?: React.ReactNode;
|
|
@@ -34,6 +32,7 @@ export type SilkeTextFieldOutlineProps = {
|
|
|
34
32
|
onClick?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
35
33
|
onMouseDown?: (e: React.MouseEvent<HTMLElement>) => void;
|
|
36
34
|
disabled?: boolean;
|
|
35
|
+
tooltip?: string;
|
|
37
36
|
};
|
|
38
37
|
export declare const SilkeTextFieldOutline: React.ForwardRefExoticComponent<SilkeTextFieldOutlineProps & React.RefAttributes<HTMLDivElement>>;
|
|
39
38
|
export {};
|
|
@@ -17,7 +17,7 @@ export declare const SilkeShortcuts: ({ shortcuts, ...rest }: {
|
|
|
17
17
|
width?: import("../silke-box").BoxSize | undefined;
|
|
18
18
|
minHeight?: import("../silke-box").BoxSize | undefined;
|
|
19
19
|
minWidth?: import("../silke-box").BoxSize | undefined;
|
|
20
|
-
bg?: import("../..").SilkeColor | undefined;
|
|
20
|
+
bg?: "blur" | import("../..").SilkeColor | undefined;
|
|
21
21
|
bgHover?: import("../..").SilkeColor | undefined;
|
|
22
22
|
color?: import("../..").SilkeColor | undefined;
|
|
23
23
|
rounded?: boolean | "small" | "medium" | "tiny" | "full" | undefined;
|
|
@@ -9,6 +9,7 @@ export declare const SilkeIconDefinitions: {
|
|
|
9
9
|
'edit.pen': string;
|
|
10
10
|
error: string;
|
|
11
11
|
help: string;
|
|
12
|
+
community: string;
|
|
12
13
|
'check.circle.outline': string;
|
|
13
14
|
play: string;
|
|
14
15
|
emoji: string;
|
|
@@ -33,6 +34,7 @@ export declare const SilkeIconDefinitions: {
|
|
|
33
34
|
rollback: string;
|
|
34
35
|
settings: string;
|
|
35
36
|
search: string;
|
|
37
|
+
library: string;
|
|
36
38
|
'search.file': string;
|
|
37
39
|
filter: string;
|
|
38
40
|
copy: string;
|
|
@@ -183,6 +185,7 @@ export declare const SilkeIconDefinitions: {
|
|
|
183
185
|
'object.group': string;
|
|
184
186
|
'object.ungroup': string;
|
|
185
187
|
pin: string;
|
|
188
|
+
'component.add': string;
|
|
186
189
|
'main-component': typeof MainComponent;
|
|
187
190
|
section: typeof Section;
|
|
188
191
|
frame: string;
|