@emeraldemperaur/vector-sigma 1.4.0 → 1.4.2
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/README.md +60 -6
- package/lib/index.cjs +332 -122
- package/lib/index.esm.js +324 -117
- package/lib/types/components/avatar/avatar.d.ts +3 -3
- package/lib/types/components/button/button.d.ts +2 -2
- package/lib/types/components/checkbox/checkbox.d.ts +3 -3
- package/lib/types/components/conditional/conditional.d.ts +3 -3
- package/lib/types/components/datepicker/datepicker.d.ts +2 -2
- package/lib/types/components/daterangepicker/daterangepicker.d.ts +2 -2
- package/lib/types/components/datetimepicker/datetimepicker.d.ts +2 -2
- package/lib/types/components/dropdown/dropdown.d.ts +2 -2
- package/lib/types/components/file/file.d.ts +1 -1
- package/lib/types/components/file/filemultiple.d.ts +1 -1
- package/lib/types/components/image/image.d.ts +2 -2
- package/lib/types/components/input/input.d.ts +2 -2
- package/lib/types/components/input/uuidInput.d.ts +1 -1
- package/lib/types/components/inputcurrency/inputcurrency.d.ts +2 -2
- package/lib/types/components/inputcurrency/stockInput.d.ts +1 -1
- package/lib/types/components/radio/radio.d.ts +2 -2
- package/lib/types/components/select/select.d.ts +1 -1
- package/lib/types/components/selectmultiple/selectmultiple.d.ts +1 -1
- package/lib/types/components/slider/range.d.ts +1 -1
- package/lib/types/components/slider/slider.d.ts +2 -2
- package/lib/types/components/toggle/toggle.d.ts +1 -1
- package/lib/types/components/xtitle/xtitle.d.ts +1 -1
- package/lib/types/index.d.ts +2 -0
- package/package.json +1 -1
|
@@ -2,13 +2,13 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
export type AvatarDesign = 'avatar' | 'avatar-outline' | 'avatar-material' | 'avatar-neumorphic';
|
|
3
3
|
export type AvatarShape = 'circle' | 'square' | 'rounded';
|
|
4
4
|
export interface AvatarProps {
|
|
5
|
-
inputtype?: AvatarDesign;
|
|
5
|
+
inputtype?: AvatarDesign & {};
|
|
6
6
|
alias: string;
|
|
7
7
|
inputLabel?: string;
|
|
8
8
|
icon?: React.ReactNode;
|
|
9
9
|
width: number;
|
|
10
10
|
defaultValue?: any[];
|
|
11
|
-
value
|
|
11
|
+
value?: any[];
|
|
12
12
|
newRow?: boolean;
|
|
13
13
|
isEdit?: boolean;
|
|
14
14
|
placeholder?: string;
|
|
@@ -23,4 +23,4 @@ export interface AvatarProps {
|
|
|
23
23
|
style?: React.CSSProperties;
|
|
24
24
|
accept?: string;
|
|
25
25
|
}
|
|
26
|
-
export declare const
|
|
26
|
+
export declare const AvatarInput: ({ inputtype, alias, readOnly, width, placeholder, value, shape, size, style, accept, ...props }: AvatarProps) => React.JSX.Element;
|
|
@@ -3,7 +3,7 @@ import type { ButtonProps } from '@radix-ui/themes';
|
|
|
3
3
|
export type ButtonDesign = 'button' | 'button-material' | 'button-outline' | 'button-neumorphic';
|
|
4
4
|
import '../../styles/main.scss';
|
|
5
5
|
export interface DesignButtonProps extends ButtonProps {
|
|
6
|
-
inputtype?: ButtonDesign;
|
|
6
|
+
inputtype?: ButtonDesign & {};
|
|
7
7
|
alias: string;
|
|
8
8
|
inputLabel?: string;
|
|
9
9
|
icon?: React.ReactNode;
|
|
@@ -19,4 +19,4 @@ export interface DesignButtonProps extends ButtonProps {
|
|
|
19
19
|
hintUrl?: string;
|
|
20
20
|
onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
|
|
21
21
|
}
|
|
22
|
-
export declare const
|
|
22
|
+
export declare const ButtonInput: ({ inputtype, alias, readOnly, style, width, children, ...props }: DesignButtonProps) => React.JSX.Element;
|
|
@@ -3,13 +3,13 @@ import { InputOption } from 'utils/vinci';
|
|
|
3
3
|
import '../../styles/main.scss';
|
|
4
4
|
export type CheckBoxDesign = 'checkbox' | 'checkbox-material' | 'checkbox-outline' | 'checkbox-neumorphic';
|
|
5
5
|
export interface CheckboxGroup {
|
|
6
|
-
inputtype?: CheckBoxDesign;
|
|
6
|
+
inputtype?: CheckBoxDesign & {};
|
|
7
7
|
alias: string;
|
|
8
8
|
inputLabel?: string;
|
|
9
9
|
icon?: React.ReactNode;
|
|
10
10
|
width: number;
|
|
11
11
|
defaultValue?: any[];
|
|
12
|
-
value
|
|
12
|
+
value?: any[];
|
|
13
13
|
newRow?: boolean;
|
|
14
14
|
isEdit?: boolean;
|
|
15
15
|
placeholder?: string;
|
|
@@ -24,4 +24,4 @@ export interface CheckboxGroup {
|
|
|
24
24
|
className?: string;
|
|
25
25
|
style?: React.CSSProperties;
|
|
26
26
|
}
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const CheckboxGroupInput: ({ inputtype, alias, readOnly, width, placeholder, style, value, inputoptions, direction, columns, className, ...props }: CheckboxGroup) => React.JSX.Element;
|
|
@@ -11,7 +11,7 @@ export interface ConditionalProps {
|
|
|
11
11
|
icon?: React.ReactNode;
|
|
12
12
|
width: number;
|
|
13
13
|
defaultValue?: any[];
|
|
14
|
-
value
|
|
14
|
+
value?: any;
|
|
15
15
|
newRow?: boolean;
|
|
16
16
|
isEdit?: boolean;
|
|
17
17
|
placeholder?: string;
|
|
@@ -19,8 +19,8 @@ export interface ConditionalProps {
|
|
|
19
19
|
isHinted?: boolean;
|
|
20
20
|
hintText?: string;
|
|
21
21
|
hintUrl?: string;
|
|
22
|
-
inputtype?: ToggleTriggerDesign | CheckboxTriggerDesign | SelectTriggerDesign;
|
|
23
|
-
toggledinputtype?: ToggleTriggerDesign | CheckboxTriggerDesign | SelectTriggerDesign;
|
|
22
|
+
inputtype?: ToggleTriggerDesign & {} | CheckboxTriggerDesign & {} | SelectTriggerDesign & {};
|
|
23
|
+
toggledinputtype?: ToggleTriggerDesign & {} | CheckboxTriggerDesign & {} | SelectTriggerDesign & {};
|
|
24
24
|
triggerValue?: any;
|
|
25
25
|
inputoptions?: InputOption[];
|
|
26
26
|
errorText?: ReactNode | string | null;
|
|
@@ -2,13 +2,13 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import '../../styles/main.scss';
|
|
3
3
|
export type DatePickerDesign = 'datepicker' | 'datepicker-material' | 'datepicker-outline' | 'datepicker-neumorphic';
|
|
4
4
|
export interface DatePickerProps {
|
|
5
|
-
inputtype?: DatePickerDesign;
|
|
5
|
+
inputtype?: DatePickerDesign & {};
|
|
6
6
|
alias: string;
|
|
7
7
|
inputLabel?: string;
|
|
8
8
|
icon?: React.ReactNode;
|
|
9
9
|
width: number;
|
|
10
10
|
defaultValue?: string;
|
|
11
|
-
value
|
|
11
|
+
value?: string;
|
|
12
12
|
newRow?: boolean;
|
|
13
13
|
placeholder?: string;
|
|
14
14
|
readOnly?: boolean;
|
|
@@ -2,13 +2,13 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import '../../styles/main.scss';
|
|
3
3
|
export type DateRangePickerDesign = 'daterangepicker' | 'daterangepicker-material' | 'daterangepicker-outline' | 'daterangepicker-neumorphic';
|
|
4
4
|
export interface DateRangePickerProps {
|
|
5
|
-
inputtype?: DateRangePickerDesign;
|
|
5
|
+
inputtype?: DateRangePickerDesign & {};
|
|
6
6
|
alias: string;
|
|
7
7
|
inputLabel?: string;
|
|
8
8
|
icon?: React.ReactNode;
|
|
9
9
|
width: number;
|
|
10
10
|
defaultValue?: string;
|
|
11
|
-
value
|
|
11
|
+
value?: string;
|
|
12
12
|
newRow?: boolean;
|
|
13
13
|
placeholder?: string;
|
|
14
14
|
readOnly?: boolean;
|
|
@@ -2,13 +2,13 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import '../../styles/main.scss';
|
|
3
3
|
export type DateTimePickerDesign = 'datetimepicker' | 'datetimepicker-material' | 'datetimepicker-outline' | 'datetimepicker-neumorphic';
|
|
4
4
|
export interface DateTimePickerProps {
|
|
5
|
-
inputtype?: DateTimePickerDesign;
|
|
5
|
+
inputtype?: DateTimePickerDesign & {};
|
|
6
6
|
alias: string;
|
|
7
7
|
inputLabel?: string;
|
|
8
8
|
icon?: React.ReactNode;
|
|
9
9
|
width: number;
|
|
10
10
|
defaultValue?: string;
|
|
11
|
-
value
|
|
11
|
+
value?: string;
|
|
12
12
|
newRow?: boolean;
|
|
13
13
|
placeholder?: string;
|
|
14
14
|
readOnly?: boolean;
|
|
@@ -2,13 +2,13 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import '../../styles/main.scss';
|
|
3
3
|
export type DropDownDesign = 'dropdown' | 'dropdown-material' | 'dropdown-outline' | 'dropdown-neumorphic';
|
|
4
4
|
export interface DropDownProps {
|
|
5
|
-
inputtype?: DropDownDesign;
|
|
5
|
+
inputtype?: DropDownDesign & {};
|
|
6
6
|
alias: string;
|
|
7
7
|
inputLabel?: string;
|
|
8
8
|
icon?: React.ReactNode;
|
|
9
9
|
width: number;
|
|
10
10
|
defaultValue?: string;
|
|
11
|
-
value
|
|
11
|
+
value?: string;
|
|
12
12
|
newRow?: boolean;
|
|
13
13
|
placeholder?: string;
|
|
14
14
|
readOnly?: boolean;
|
|
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import '../../styles/main.scss';
|
|
3
3
|
export type FileInputDesign = 'fileinput' | 'fileinput-material' | 'fileinput-outline' | 'fileinput-neumorphic';
|
|
4
4
|
export interface FileInputProps {
|
|
5
|
-
inputtype?: FileInputDesign;
|
|
5
|
+
inputtype?: FileInputDesign & {};
|
|
6
6
|
alias: string;
|
|
7
7
|
inputLabel?: string;
|
|
8
8
|
icon?: React.ReactNode;
|
|
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import '../../styles/main.scss';
|
|
3
3
|
export type FileMultipleInputDesign = 'filemultiple' | 'filemultiple-material' | 'filemultiple-outline' | 'filemultiple-neumorphic';
|
|
4
4
|
export interface FileMultipleInputProps {
|
|
5
|
-
inputtype?: FileMultipleInputDesign;
|
|
5
|
+
inputtype?: FileMultipleInputDesign & {};
|
|
6
6
|
alias: string;
|
|
7
7
|
inputLabel?: string;
|
|
8
8
|
icon?: React.ReactNode;
|
|
@@ -5,8 +5,8 @@ export interface ImageDisplayProps {
|
|
|
5
5
|
id: string | number;
|
|
6
6
|
src: string;
|
|
7
7
|
alt?: string;
|
|
8
|
-
design?: ImageDesign;
|
|
9
|
-
layout?: ImageLayout;
|
|
8
|
+
design?: ImageDesign & {};
|
|
9
|
+
layout?: ImageLayout & {};
|
|
10
10
|
aspectRatio?: number;
|
|
11
11
|
height?: string | number;
|
|
12
12
|
width?: string | number;
|
|
@@ -5,7 +5,7 @@ export type InputType = 'date' | 'datetime-local' | 'email' | 'hidden' | 'month'
|
|
|
5
5
|
export type InputDesign = "input" | "input-material" | "input-outline" | "input-neumorphic";
|
|
6
6
|
export type xInputFieldProps = React.ComponentProps<typeof TextField.Root> & {
|
|
7
7
|
alias: string;
|
|
8
|
-
inputtype?: InputType;
|
|
8
|
+
inputtype?: InputType & {};
|
|
9
9
|
inputLabel?: string;
|
|
10
10
|
width: number;
|
|
11
11
|
newRow?: boolean;
|
|
@@ -20,7 +20,7 @@ export type xInputFieldProps = React.ComponentProps<typeof TextField.Root> & {
|
|
|
20
20
|
errorText?: ReactNode | string | null;
|
|
21
21
|
className?: string;
|
|
22
22
|
style?: React.CSSProperties;
|
|
23
|
-
inputVariant?: InputDesign;
|
|
23
|
+
inputVariant?: InputDesign & {};
|
|
24
24
|
delimiter?: string;
|
|
25
25
|
format?: number[];
|
|
26
26
|
};
|
|
@@ -17,7 +17,7 @@ type UUIDInputProps = Omit<React.ComponentProps<typeof TextField.Root>, 'type' |
|
|
|
17
17
|
placeholder?: string;
|
|
18
18
|
errorText?: ReactNode | string | null;
|
|
19
19
|
className?: string;
|
|
20
|
-
inputVariant?: InputDesign;
|
|
20
|
+
inputVariant?: InputDesign & {};
|
|
21
21
|
};
|
|
22
22
|
export declare const UUIDInput: ({ alias, type, inputLabel, width, delimiter, format, placeholder, readOnly, inputVariant, size, className, ...props }: UUIDInputProps) => React.JSX.Element;
|
|
23
23
|
export {};
|
|
@@ -4,7 +4,7 @@ import { InputDesign } from "components/input/input";
|
|
|
4
4
|
import '../../styles/main.scss';
|
|
5
5
|
type CurrencyInputProps = {
|
|
6
6
|
alias: string;
|
|
7
|
-
inputtype?: SupportedCurrency | "currency";
|
|
7
|
+
inputtype?: SupportedCurrency & {} | "currency";
|
|
8
8
|
inputLabel: string;
|
|
9
9
|
width: number;
|
|
10
10
|
newRow?: boolean;
|
|
@@ -15,7 +15,7 @@ type CurrencyInputProps = {
|
|
|
15
15
|
hintText?: string;
|
|
16
16
|
errorText?: ReactNode | string | null;
|
|
17
17
|
hintUrl?: string;
|
|
18
|
-
inputVariant?: InputDesign;
|
|
18
|
+
inputVariant?: InputDesign & {};
|
|
19
19
|
className?: string;
|
|
20
20
|
};
|
|
21
21
|
export declare const CurrencyInput: ({ alias, inputtype, inputLabel, width, defaultValue, placeholder, readOnly, inputVariant, className, ...props }: CurrencyInputProps) => React.JSX.Element;
|
|
@@ -13,7 +13,7 @@ type StockInputProps = {
|
|
|
13
13
|
hintText?: string;
|
|
14
14
|
hintUrl?: string;
|
|
15
15
|
errorText?: ReactNode | string | null;
|
|
16
|
-
inputVariant?: InputDesign;
|
|
16
|
+
inputVariant?: InputDesign & {};
|
|
17
17
|
className?: string;
|
|
18
18
|
};
|
|
19
19
|
export declare const StockInput: ({ alias, inputLabel, width, defaultValue, placeholder, readOnly, inputVariant, className, ...props }: StockInputProps) => React.JSX.Element;
|
|
@@ -3,7 +3,7 @@ import { InputOption } from 'utils/vinci';
|
|
|
3
3
|
import '../../styles/main.scss';
|
|
4
4
|
export type RadioDesign = 'radio' | 'radio-material' | 'radio-outline' | 'radio-neumorphic';
|
|
5
5
|
interface RadioGroupProps {
|
|
6
|
-
inputtype?: RadioDesign;
|
|
6
|
+
inputtype?: RadioDesign & {};
|
|
7
7
|
alias: string;
|
|
8
8
|
inputLabel?: string;
|
|
9
9
|
icon?: React.ReactNode;
|
|
@@ -24,5 +24,5 @@ interface RadioGroupProps {
|
|
|
24
24
|
errorText?: ReactNode | string | null;
|
|
25
25
|
style?: React.CSSProperties;
|
|
26
26
|
}
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const RadioGroupInput: ({ inputtype, alias, readOnly, width, placeholder, style, value, inputoptions, direction, columns, className, ...props }: RadioGroupProps) => React.JSX.Element;
|
|
28
28
|
export {};
|
|
@@ -3,7 +3,7 @@ import { InputOption } from "utils/vinci";
|
|
|
3
3
|
import '../../styles/main.scss';
|
|
4
4
|
export type OptionSelectDesign = 'select' | 'select-material' | 'select-outline' | 'select-neumorphic';
|
|
5
5
|
interface OptionSelectProps {
|
|
6
|
-
inputtype?: OptionSelectDesign;
|
|
6
|
+
inputtype?: OptionSelectDesign & {};
|
|
7
7
|
alias: string;
|
|
8
8
|
inputLabel?: string;
|
|
9
9
|
icon?: React.ReactNode;
|
|
@@ -3,7 +3,7 @@ import { InputOption } from "utils/vinci";
|
|
|
3
3
|
import '../../styles/main.scss';
|
|
4
4
|
export type MultipleSelectDesign = 'multiselect' | 'multiselect-material' | 'multiselect-outline' | 'multiselect-neumorphic';
|
|
5
5
|
interface MultipleSelectProps {
|
|
6
|
-
inputtype?: MultipleSelectDesign;
|
|
6
|
+
inputtype?: MultipleSelectDesign & {};
|
|
7
7
|
alias: string;
|
|
8
8
|
inputLabel?: string;
|
|
9
9
|
icon?: React.ReactNode;
|
|
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import '../../styles/main.scss';
|
|
3
3
|
export type RangeDesign = 'range' | 'range-material' | 'range-outline' | 'range-neumorphic';
|
|
4
4
|
interface RangeProps {
|
|
5
|
-
inputtype?: RangeDesign;
|
|
5
|
+
inputtype?: RangeDesign & {};
|
|
6
6
|
alias: string;
|
|
7
7
|
inputLabel?: string;
|
|
8
8
|
icon?: React.ReactNode;
|
|
@@ -2,7 +2,7 @@ import React, { ReactNode } from 'react';
|
|
|
2
2
|
import '../../styles/main.scss';
|
|
3
3
|
export type SliderDesign = 'slider' | 'slider-material' | 'slider-outline' | 'slider-neumorphic';
|
|
4
4
|
interface SliderProps {
|
|
5
|
-
inputtype?: SliderDesign;
|
|
5
|
+
inputtype?: SliderDesign & {};
|
|
6
6
|
alias: string;
|
|
7
7
|
inputLabel?: string;
|
|
8
8
|
icon?: React.ReactNode;
|
|
@@ -22,5 +22,5 @@ interface SliderProps {
|
|
|
22
22
|
className?: string;
|
|
23
23
|
style?: React.CSSProperties;
|
|
24
24
|
}
|
|
25
|
-
export declare const
|
|
25
|
+
export declare const SliderInput: ({ inputtype, alias, readOnly, width, placeholder, value, minvalue, maxvalue, stepvalue, className, style, ...props }: SliderProps) => React.JSX.Element;
|
|
26
26
|
export {};
|
|
@@ -3,7 +3,7 @@ import type { ButtonProps } from '@radix-ui/themes';
|
|
|
3
3
|
import '../../styles/main.scss';
|
|
4
4
|
export type ToggleDesign = 'toggle' | 'toggle-material' | 'toggle-outline' | 'toggle-neumorphic';
|
|
5
5
|
interface ToggleProps extends ButtonProps {
|
|
6
|
-
inputtype?: ToggleDesign;
|
|
6
|
+
inputtype?: ToggleDesign & {};
|
|
7
7
|
pressed?: boolean;
|
|
8
8
|
defaultPressed?: boolean;
|
|
9
9
|
onPressedChange?: (pressed: boolean) => void;
|
|
@@ -11,5 +11,5 @@ type xTitleProps = TextProps & {
|
|
|
11
11
|
fontFamily?: string;
|
|
12
12
|
subTitle?: string;
|
|
13
13
|
};
|
|
14
|
-
export declare const
|
|
14
|
+
export declare const SectionTitle: ({ title, iconname, textColor, backgroundColor, fontFamily, ...props }: xTitleProps) => React.JSX.Element;
|
|
15
15
|
export {};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { primeMatrix } from './primeMatrix';
|
|
2
2
|
export { vectorSigma } from './vectorSigma';
|
|
3
|
+
export { Theme, ThemePanel } from '@radix-ui/themes';
|
|
3
4
|
export * from './components/avatar/avatar';
|
|
4
5
|
export * from './components/button/button';
|
|
5
6
|
export * from './components/checkbox/checkbox';
|
|
@@ -9,6 +10,7 @@ export * from './components/daterangepicker/daterangepicker';
|
|
|
9
10
|
export * from './components/datetimepicker/datetimepicker';
|
|
10
11
|
export * from './components/dropdown/dropdown';
|
|
11
12
|
export * from './components/file/file';
|
|
13
|
+
export * from './components/file/filemultiple';
|
|
12
14
|
export * from './components/icons/icons';
|
|
13
15
|
export * from './components/icons/flagicon';
|
|
14
16
|
export * from './components/image/image';
|