@emeraldemperaur/vector-sigma 1.3.1 → 1.4.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.
Files changed (30) hide show
  1. package/README.md +1 -2
  2. package/lib/index.cjs +313 -299
  3. package/lib/index.esm.js +312 -298
  4. package/lib/types/components/avatar/avatar.d.ts +2 -1
  5. package/lib/types/components/button/button.d.ts +4 -4
  6. package/lib/types/components/checkbox/checkbox.d.ts +3 -3
  7. package/lib/types/components/conditional/conditional.d.ts +2 -1
  8. package/lib/types/components/datepicker/datepicker.d.ts +3 -3
  9. package/lib/types/components/daterangepicker/daterangepicker.d.ts +3 -3
  10. package/lib/types/components/datetimepicker/datetimepicker.d.ts +3 -3
  11. package/lib/types/components/dropdown/dropdown.d.ts +3 -3
  12. package/lib/types/components/file/file.d.ts +5 -5
  13. package/lib/types/components/file/filemultiple.d.ts +4 -3
  14. package/lib/types/components/icons/flagicon.d.ts +1 -1
  15. package/lib/types/components/input/input.d.ts +25 -1
  16. package/lib/types/components/input/passwordInput.d.ts +3 -2
  17. package/lib/types/components/input/phoneInput.d.ts +2 -1
  18. package/lib/types/components/input/uuidInput.d.ts +20 -2
  19. package/lib/types/components/input/xCreditCardInput.d.ts +2 -1
  20. package/lib/types/components/inputcurrency/inputcurrency.d.ts +19 -1
  21. package/lib/types/components/inputcurrency/stockInput.d.ts +19 -2
  22. package/lib/types/components/radio/radio.d.ts +2 -1
  23. package/lib/types/components/select/select.d.ts +2 -1
  24. package/lib/types/components/selectmultiple/selectmultiple.d.ts +2 -1
  25. package/lib/types/components/slider/range.d.ts +2 -1
  26. package/lib/types/components/slider/slider.d.ts +2 -1
  27. package/lib/types/components/toggle/toggle.d.ts +1 -0
  28. package/lib/types/components/xtitle/xtitle.d.ts +13 -1
  29. package/package.json +2 -4
  30. package/lib/styles.css +0 -1
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ 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 {
@@ -17,6 +17,7 @@ export interface AvatarProps {
17
17
  hintText?: string;
18
18
  hintUrl?: string;
19
19
  shape?: AvatarShape;
20
+ errorText?: ReactNode | string | null;
20
21
  size?: number;
21
22
  className?: string;
22
23
  style?: React.CSSProperties;
@@ -1,16 +1,17 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  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
- interface DesignButtonProps extends ButtonProps {
5
+ export interface DesignButtonProps extends ButtonProps {
6
6
  inputtype?: ButtonDesign;
7
7
  alias: string;
8
8
  inputLabel?: string;
9
9
  icon?: React.ReactNode;
10
10
  width: number;
11
11
  defaultValue?: string;
12
- value: string;
12
+ value?: string;
13
13
  newRow?: boolean;
14
+ errorText?: ReactNode | string | null;
14
15
  placeholder?: string;
15
16
  readOnly?: boolean;
16
17
  isHinted?: boolean;
@@ -19,4 +20,3 @@ interface DesignButtonProps extends ButtonProps {
19
20
  onClick?: (event: React.MouseEvent<HTMLButtonElement>) => void;
20
21
  }
21
22
  export declare const xButton: ({ inputtype, alias, readOnly, style, width, children, ...props }: DesignButtonProps) => React.JSX.Element;
22
- export {};
@@ -1,8 +1,8 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { InputOption } from 'utils/vinci';
3
3
  import '../../styles/main.scss';
4
4
  export type CheckBoxDesign = 'checkbox' | 'checkbox-material' | 'checkbox-outline' | 'checkbox-neumorphic';
5
- interface CheckboxGroup {
5
+ export interface CheckboxGroup {
6
6
  inputtype?: CheckBoxDesign;
7
7
  alias: string;
8
8
  inputLabel?: string;
@@ -18,10 +18,10 @@ interface CheckboxGroup {
18
18
  hintText?: string;
19
19
  hintUrl?: string;
20
20
  inputoptions: InputOption[];
21
+ errorText?: ReactNode | string | null;
21
22
  direction?: 'row' | 'column';
22
23
  columns?: string;
23
24
  className?: string;
24
25
  style?: React.CSSProperties;
25
26
  }
26
27
  export declare const CheckboxGroup: ({ inputtype, alias, readOnly, width, placeholder, style, value, inputoptions, direction, columns, className, ...props }: CheckboxGroup) => React.JSX.Element;
27
- export {};
@@ -1,4 +1,4 @@
1
- import React from "react";
1
+ import React, { ReactNode } from "react";
2
2
  import { InputOption } from "utils/vinci";
3
3
  import '../../styles/main.scss';
4
4
  export type ToggleTriggerDesign = 'conditionaltoggle' | 'conditionaltoggle-outline' | 'conditionaltoggle-material' | 'conditionaltoggle-neumorphic';
@@ -23,6 +23,7 @@ export interface ConditionalProps {
23
23
  toggledinputtype?: ToggleTriggerDesign | CheckboxTriggerDesign | SelectTriggerDesign;
24
24
  triggerValue?: any;
25
25
  inputoptions?: InputOption[];
26
+ errorText?: ReactNode | string | null;
26
27
  children: React.ReactNode;
27
28
  className?: string;
28
29
  style?: React.CSSProperties;
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import '../../styles/main.scss';
3
3
  export type DatePickerDesign = 'datepicker' | 'datepicker-material' | 'datepicker-outline' | 'datepicker-neumorphic';
4
- interface DatePickerProps {
4
+ export interface DatePickerProps {
5
5
  inputtype?: DatePickerDesign;
6
6
  alias: string;
7
7
  inputLabel?: string;
@@ -17,8 +17,8 @@ interface DatePickerProps {
17
17
  hintUrl?: string;
18
18
  minvalue?: Date | string;
19
19
  maxvalue?: Date | string;
20
+ errorText?: ReactNode | string | null;
20
21
  className?: string;
21
22
  style?: React.CSSProperties;
22
23
  }
23
24
  export declare const DatePicker: ({ inputtype, alias, readOnly, width, placeholder, value, minvalue, maxvalue, className, style, ...props }: DatePickerProps) => React.JSX.Element;
24
- export {};
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import '../../styles/main.scss';
3
3
  export type DateRangePickerDesign = 'daterangepicker' | 'daterangepicker-material' | 'daterangepicker-outline' | 'daterangepicker-neumorphic';
4
- interface DateRangePickerProps {
4
+ export interface DateRangePickerProps {
5
5
  inputtype?: DateRangePickerDesign;
6
6
  alias: string;
7
7
  inputLabel?: string;
@@ -17,8 +17,8 @@ interface DateRangePickerProps {
17
17
  hintUrl?: string;
18
18
  minvalue?: Date | string;
19
19
  maxvalue?: Date | string;
20
+ errorText?: ReactNode | string | null;
20
21
  className?: string;
21
22
  style?: React.CSSProperties;
22
23
  }
23
24
  export declare const DateRangePicker: ({ inputtype, alias, readOnly, width, placeholder, value, minvalue, maxvalue, className, style, ...props }: DateRangePickerProps) => React.JSX.Element;
24
- export {};
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import '../../styles/main.scss';
3
3
  export type DateTimePickerDesign = 'datetimepicker' | 'datetimepicker-material' | 'datetimepicker-outline' | 'datetimepicker-neumorphic';
4
- interface DateTimePickerProps {
4
+ export interface DateTimePickerProps {
5
5
  inputtype?: DateTimePickerDesign;
6
6
  alias: string;
7
7
  inputLabel?: string;
@@ -17,8 +17,8 @@ interface DateTimePickerProps {
17
17
  hintUrl?: string;
18
18
  minvalue?: Date | string;
19
19
  maxvalue?: Date | string;
20
+ errorText?: ReactNode | string | null;
20
21
  className?: string;
21
22
  style?: React.CSSProperties;
22
23
  }
23
24
  export declare const DateTimePicker: ({ inputtype, alias, readOnly, width, placeholder, value, minvalue, maxvalue, className, style, ...props }: DateTimePickerProps) => React.JSX.Element;
24
- export {};
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import '../../styles/main.scss';
3
3
  export type DropDownDesign = 'dropdown' | 'dropdown-material' | 'dropdown-outline' | 'dropdown-neumorphic';
4
- interface DropDownProps {
4
+ export interface DropDownProps {
5
5
  inputtype?: DropDownDesign;
6
6
  alias: string;
7
7
  inputLabel?: string;
@@ -16,6 +16,7 @@ interface DropDownProps {
16
16
  hintText?: string;
17
17
  hintUrl?: string;
18
18
  onValueChange?: (value: string) => void;
19
+ errorText?: ReactNode | string | null;
19
20
  inputoptions: {
20
21
  optionid: number | string;
21
22
  text: string;
@@ -29,4 +30,3 @@ interface DropDownProps {
29
30
  style?: React.CSSProperties;
30
31
  }
31
32
  export declare const Dropdown: ({ inputtype, alias, readOnly, width, placeholder, value, inputoptions, style, ...props }: DropDownProps) => React.JSX.Element;
32
- export {};
@@ -1,14 +1,14 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import '../../styles/main.scss';
3
3
  export type FileInputDesign = 'fileinput' | 'fileinput-material' | 'fileinput-outline' | 'fileinput-neumorphic';
4
- interface FileInputProps {
4
+ export interface FileInputProps {
5
5
  inputtype?: FileInputDesign;
6
6
  alias: string;
7
7
  inputLabel?: string;
8
8
  icon?: React.ReactNode;
9
9
  width: number;
10
- defaultValue?: any[];
11
- value: any[];
10
+ defaultValue?: any;
11
+ value?: any;
12
12
  newRow?: boolean;
13
13
  isEdit?: boolean;
14
14
  placeholder?: string;
@@ -18,7 +18,7 @@ interface FileInputProps {
18
18
  hintUrl?: string;
19
19
  preview?: boolean;
20
20
  className?: string;
21
+ errorText?: ReactNode | string | null;
21
22
  style?: React.CSSProperties;
22
23
  }
23
24
  export declare const File: ({ inputtype, alias, readOnly, width, placeholder, value, preview, className, style, ...props }: FileInputProps) => React.JSX.Element;
24
- export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ 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 {
@@ -7,8 +7,8 @@ export interface FileMultipleInputProps {
7
7
  inputLabel?: string;
8
8
  icon?: React.ReactNode;
9
9
  width: number;
10
- defaultValue?: any[];
11
- value: any[];
10
+ defaultValue?: any;
11
+ value?: any;
12
12
  newRow?: boolean;
13
13
  isEdit?: boolean;
14
14
  placeholder?: string;
@@ -17,6 +17,7 @@ export interface FileMultipleInputProps {
17
17
  hintText?: string;
18
18
  hintUrl?: string;
19
19
  preview?: boolean;
20
+ errorText?: ReactNode | string | null;
20
21
  className?: string;
21
22
  style?: React.CSSProperties;
22
23
  }
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  import * as Flags from "country-flag-icons/react/3x2";
3
3
  type CountryCode = keyof typeof Flags;
4
- interface FlagIconProps {
4
+ export interface FlagIconProps {
5
5
  country: CountryCode | 'EU';
6
6
  }
7
7
  export declare const FlagIcon: ({ country }: FlagIconProps) => React.JSX.Element;
@@ -1,3 +1,27 @@
1
1
  import React, { ReactNode } from "react";
2
+ import { TextField } from '@radix-ui/themes';
2
3
  import '../../styles/main.scss';
3
- export declare const Input: (alias: string, inputtype: "date" | "datetime-local" | "email" | "hidden" | "month" | "number" | "password" | "search" | "tel" | "text" | "time" | "url" | "week", onChange: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement>, touched: object, errorText: ReactNode | string | null, inputLabel: string, width: number, defaultValue: string, value: string, newRow?: boolean, placeholder?: string, readOnly?: boolean, isHinted?: boolean, hintText?: string, hintUrl?: string) => React.JSX.Element;
4
+ export type InputType = 'date' | 'datetime-local' | 'email' | 'hidden' | 'month' | 'number' | 'password' | 'search' | 'tel' | 'text' | 'time' | 'url' | 'week';
5
+ export type InputDesign = "input" | "input-material" | "input-outline" | "input-neumorphic";
6
+ export type xInputFieldProps = React.ComponentProps<typeof TextField.Root> & {
7
+ alias: string;
8
+ inputtype?: InputType;
9
+ inputLabel?: string;
10
+ width: number;
11
+ newRow?: boolean;
12
+ placeholder?: string;
13
+ readOnly?: boolean;
14
+ isHinted?: boolean;
15
+ hintText?: string;
16
+ hintUrl?: string;
17
+ icon?: React.ReactNode;
18
+ defaultValue?: string;
19
+ value: string;
20
+ errorText?: ReactNode | string | null;
21
+ className?: string;
22
+ style?: React.CSSProperties;
23
+ inputVariant?: InputDesign;
24
+ delimiter?: string;
25
+ format?: number[];
26
+ };
27
+ export declare const Input: ({ alias, inputtype, width, inputLabel, readOnly, placeholder, className, size, style, inputVariant, ...props }: xInputFieldProps) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
- import React, { ReactNode } from "react";
1
+ import React from "react";
2
+ import { xInputFieldProps } from "./input";
2
3
  import '../../styles/main.scss';
3
- export declare const PasswordInput: (alias: string, onChange: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement>, touched: object, errorText: ReactNode | string | null, inputLabel: string, width: number, defaultValue: string, value: string, newRow?: boolean, placeholder?: string, readOnly?: boolean, isHinted?: boolean, hintText?: string, hintUrl?: string) => React.JSX.Element;
4
+ export declare const PasswordInput: ({ alias, inputLabel, width, readOnly, placeholder, inputVariant, size, className, ...props }: xInputFieldProps) => React.JSX.Element;
@@ -1,3 +1,4 @@
1
1
  import React from "react";
2
+ import { xInputFieldProps } from "./input";
2
3
  import '../../styles/main.scss';
3
- export declare const PhoneInput: (alias: string, inputLabel: string, width: number, newRow?: boolean, defaultValue?: string, value?: string, placeholder?: string, readOnly?: boolean, isHinted?: boolean, hintText?: string, hintUrl?: string) => React.JSX.Element;
4
+ export declare const PhoneInput: ({ alias, inputLabel, width, placeholder, readOnly, inputVariant, size, className, ...props }: xInputFieldProps) => React.JSX.Element;
@@ -1,5 +1,23 @@
1
- import React from "react";
1
+ import React, { ReactNode } from "react";
2
+ import { TextField } from '@radix-ui/themes';
3
+ import { InputDesign } from "./input";
2
4
  import '../../styles/main.scss';
3
5
  type startsWithUuid = `uuid${string}`;
4
- export declare const UUIDInput: (alias: string, type: startsWithUuid, inputLabel: string, width: number, defaultValue: string, delimiter?: string, format?: number[], newRow?: boolean, placeholder?: string, readOnly?: boolean, isHinted?: boolean, hintText?: string, hintUrl?: string) => React.JSX.Element;
6
+ type UUIDInputProps = Omit<React.ComponentProps<typeof TextField.Root>, 'type' | 'onChange' | 'value' | 'defaultValue'> & {
7
+ alias: string;
8
+ type: startsWithUuid;
9
+ inputLabel: string;
10
+ width: number;
11
+ newRow?: boolean;
12
+ delimiter?: string;
13
+ format?: number[];
14
+ isHinted?: boolean;
15
+ hintText?: string;
16
+ hintUrl?: string;
17
+ placeholder?: string;
18
+ errorText?: ReactNode | string | null;
19
+ className?: string;
20
+ inputVariant?: InputDesign;
21
+ };
22
+ export declare const UUIDInput: ({ alias, type, inputLabel, width, delimiter, format, placeholder, readOnly, inputVariant, size, className, ...props }: UUIDInputProps) => React.JSX.Element;
5
23
  export {};
@@ -1,3 +1,4 @@
1
1
  import React from "react";
2
+ import { xInputFieldProps } from "./input";
2
3
  import '../../styles/main.scss';
3
- export declare const xCreditCardInput: (alias: string, inputLabel: string, width: number, defaultValue: string, newRow?: boolean, placeholder?: string, readOnly?: boolean, isHinted?: boolean, hintText?: string, hintUrl?: string) => React.JSX.Element;
4
+ export declare const CreditCardInput: ({ alias, inputLabel, width, placeholder, readOnly, inputVariant, className, ...props }: xInputFieldProps) => React.JSX.Element;
@@ -1,4 +1,22 @@
1
1
  import React, { ReactNode } from "react";
2
2
  import { SupportedCurrency } from '../../utils/currencyconfig';
3
+ import { InputDesign } from "components/input/input";
3
4
  import '../../styles/main.scss';
4
- export declare const CurrencyInput: (alias: string, inputtype: SupportedCurrency | "currency", onChange: React.ChangeEventHandler<HTMLInputElement, HTMLInputElement>, touched: object, errorText: ReactNode | string | null, inputLabel: string, width: number, defaultValue: string, value: string, newRow?: boolean, placeholder?: string, readOnly?: boolean, isHinted?: boolean, hintText?: string, hintUrl?: string) => React.JSX.Element;
5
+ type CurrencyInputProps = {
6
+ alias: string;
7
+ inputtype?: SupportedCurrency | "currency";
8
+ inputLabel: string;
9
+ width: number;
10
+ newRow?: boolean;
11
+ defaultValue?: string;
12
+ placeholder?: string;
13
+ readOnly?: boolean;
14
+ isHinted?: boolean;
15
+ hintText?: string;
16
+ errorText?: ReactNode | string | null;
17
+ hintUrl?: string;
18
+ inputVariant?: InputDesign;
19
+ className?: string;
20
+ };
21
+ export declare const CurrencyInput: ({ alias, inputtype, inputLabel, width, defaultValue, placeholder, readOnly, inputVariant, className, ...props }: CurrencyInputProps) => React.JSX.Element;
22
+ export {};
@@ -1,3 +1,20 @@
1
- import React from "react";
1
+ import React, { ReactNode } from "react";
2
+ import { InputDesign } from "components/input/input";
2
3
  import '../../styles/main.scss';
3
- export declare const StockInput: (alias: string, inputLabel: string, width: number, defaultValue: string, value: string, newRow?: boolean, placeholder?: string, readOnly?: boolean, isHinted?: boolean, hintText?: string, hintUrl?: string) => React.JSX.Element;
4
+ type StockInputProps = {
5
+ alias: string;
6
+ inputLabel: string;
7
+ width: number;
8
+ defaultValue: string;
9
+ newRow?: boolean;
10
+ placeholder?: string;
11
+ readOnly?: boolean;
12
+ isHinted?: boolean;
13
+ hintText?: string;
14
+ hintUrl?: string;
15
+ errorText?: ReactNode | string | null;
16
+ inputVariant?: InputDesign;
17
+ className?: string;
18
+ };
19
+ export declare const StockInput: ({ alias, inputLabel, width, defaultValue, placeholder, readOnly, inputVariant, className, ...props }: StockInputProps) => React.JSX.Element;
20
+ export {};
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { InputOption } from 'utils/vinci';
3
3
  import '../../styles/main.scss';
4
4
  export type RadioDesign = 'radio' | 'radio-material' | 'radio-outline' | 'radio-neumorphic';
@@ -21,6 +21,7 @@ interface RadioGroupProps {
21
21
  direction?: 'row' | 'column';
22
22
  columns?: string;
23
23
  className?: string;
24
+ errorText?: ReactNode | string | null;
24
25
  style?: React.CSSProperties;
25
26
  }
26
27
  export declare const xRadioGroup: ({ inputtype, alias, readOnly, width, placeholder, style, value, inputoptions, direction, columns, className, ...props }: RadioGroupProps) => React.JSX.Element;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { InputOption } from "utils/vinci";
3
3
  import '../../styles/main.scss';
4
4
  export type OptionSelectDesign = 'select' | 'select-material' | 'select-outline' | 'select-neumorphic';
@@ -18,6 +18,7 @@ interface OptionSelectProps {
18
18
  hintUrl?: string;
19
19
  onValueChange?: (value: string) => void;
20
20
  inputoptions: InputOption[];
21
+ errorText?: ReactNode | string | null;
21
22
  className?: string;
22
23
  style?: React.CSSProperties;
23
24
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ import React, { ReactNode } from 'react';
2
2
  import { InputOption } from "utils/vinci";
3
3
  import '../../styles/main.scss';
4
4
  export type MultipleSelectDesign = 'multiselect' | 'multiselect-material' | 'multiselect-outline' | 'multiselect-neumorphic';
@@ -18,6 +18,7 @@ interface MultipleSelectProps {
18
18
  hintText?: string;
19
19
  hintUrl?: string;
20
20
  inputoptions: InputOption[];
21
+ errorText?: ReactNode | string | null;
21
22
  className?: string;
22
23
  style?: React.CSSProperties;
23
24
  }
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ 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 {
@@ -10,6 +10,7 @@ interface RangeProps {
10
10
  defaultValue?: string;
11
11
  value: string;
12
12
  newRow?: boolean;
13
+ errorText?: ReactNode | string | null;
13
14
  placeholder?: string;
14
15
  readOnly?: boolean;
15
16
  isHinted?: boolean;
@@ -1,4 +1,4 @@
1
- import React from 'react';
1
+ 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 {
@@ -10,6 +10,7 @@ interface SliderProps {
10
10
  defaultValue?: string;
11
11
  value: string;
12
12
  newRow?: boolean;
13
+ errorText?: ReactNode | string | null;
13
14
  placeholder?: string;
14
15
  readOnly?: boolean;
15
16
  isHinted?: boolean;
@@ -1,5 +1,6 @@
1
1
  import React from "react";
2
2
  import type { ButtonProps } from '@radix-ui/themes';
3
+ import '../../styles/main.scss';
3
4
  export type ToggleDesign = 'toggle' | 'toggle-material' | 'toggle-outline' | 'toggle-neumorphic';
4
5
  interface ToggleProps extends ButtonProps {
5
6
  inputtype?: ToggleDesign;
@@ -1,3 +1,15 @@
1
1
  import React from "react";
2
+ import type { TextProps } from '@radix-ui/themes';
2
3
  import '../../styles/main.scss';
3
- export declare const xTitle: (alias: string, title: string, iconname: string, textColor: string | undefined, backgroundColor: string | undefined, fontFamily: string) => React.JSX.Element;
4
+ type xTitleProps = TextProps & {
5
+ title: string;
6
+ iconname?: string;
7
+ width: number;
8
+ textColor?: string;
9
+ backgroundColor: string;
10
+ newRow?: boolean;
11
+ fontFamily?: string;
12
+ subTitle?: string;
13
+ };
14
+ export declare const xTitle: ({ title, iconname, textColor, backgroundColor, fontFamily, ...props }: xTitleProps) => React.JSX.Element;
15
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emeraldemperaur/vector-sigma",
3
- "version": "1.3.1",
3
+ "version": "1.4.0",
4
4
  "description": "Dynamic Form Orchestrator: NPM Package",
5
5
  "repository": {
6
6
  "type": "git",
@@ -18,9 +18,7 @@
18
18
  "import": "./lib/index.esm.js",
19
19
  "require": "./lib/index.cjs",
20
20
  "types": "./lib/types/index.d.ts"
21
- },
22
- "./lib/styles.css": "./lib/styles.css",
23
- "./styles.css": "./lib/styles.css"
21
+ }
24
22
  },
25
23
  "files": [
26
24
  "lib"
package/lib/styles.css DELETED
@@ -1 +0,0 @@
1
- @import "@radix-ui/themes/styles.css" layer(radix);@layer radix, custom;@layer custom{:root{--text-main-color:#333}.core-input-label{text-align:start}.core-input-label-error{color:#800020;font-family:Montserrat;font-size:.8rem;font-weight:500;letter-spacing:.13em;margin-bottom:13px}.core-input-section-ribbon{border-radius:0;margin-bottom:33px;margin-top:33px}.core-input-section-text{font-family:Montserrat!important;font-weight:400;letter-spacing:.33em;margin-left:13px;padding-bottom:3px;padding-top:3px;text-align:left}}