@rocket.chat/fuselage 0.65.0 → 0.66.1

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.
@@ -1,7 +1,8 @@
1
- import type { ComponentProps, AllHTMLAttributes } from 'react';
1
+ import type { ComponentProps, AllHTMLAttributes, ReactNode } from 'react';
2
2
  import Box from '../Box';
3
3
  type CheckBoxProps = ComponentProps<typeof Box> & {
4
4
  indeterminate?: boolean;
5
+ labelChildren?: ReactNode;
5
6
  } & AllHTMLAttributes<HTMLInputElement>;
6
7
  export declare const CheckBox: import("react").ForwardRefExoticComponent<Omit<CheckBoxProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
7
8
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"CheckBox.d.ts","sourceRoot":"","sources":["../../../src/components/CheckBox/CheckBox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAkB,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAG/E,OAAO,GAAG,MAAM,QAAQ,CAAC;AAEzB,KAAK,aAAa,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG;IAChD,aAAa,CAAC,EAAE,OAAO,CAAC;CACzB,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AAExC,eAAO,MAAM,QAAQ,yHAoCnB,CAAC"}
1
+ {"version":3,"file":"CheckBox.d.ts","sourceRoot":"","sources":["../../../src/components/CheckBox/CheckBox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EAGd,iBAAiB,EACjB,SAAS,EACV,MAAM,OAAO,CAAC;AAGf,OAAO,GAAG,MAAM,QAAQ,CAAC;AAEzB,KAAK,aAAa,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG;IAChD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,GAAG,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AAExC,eAAO,MAAM,QAAQ,yHA2CnB,CAAC"}
@@ -1,6 +1,8 @@
1
- import type { ComponentPropsWithoutRef } from 'react';
2
- import { Label } from '../Label';
3
- type FieldLabelProps = ComponentPropsWithoutRef<typeof Label>;
4
- export declare const FieldLabel: (props: FieldLabelProps) => import("react/jsx-runtime").JSX.Element;
5
- export {};
1
+ export declare const FieldLabel: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("../Box").BoxProps & import("react").RefAttributes<any>, "ref"> & {
2
+ ref?: ((instance: any) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<any> | null | undefined;
3
+ }, "is"> & {
4
+ disabled?: boolean;
5
+ required?: boolean;
6
+ is?: (import("react").ElementType<any> & string) | undefined;
7
+ }, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
6
8
  //# sourceMappingURL=FieldLabel.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FieldLabel.d.ts","sourceRoot":"","sources":["../../../src/components/Field/FieldLabel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAGtD,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAIjC,KAAK,eAAe,GAAG,wBAAwB,CAAC,OAAO,KAAK,CAAC,CAAC;AAE9D,eAAO,MAAM,UAAU,GAAI,OAAO,eAAe,4CAgBhD,CAAC"}
1
+ {"version":3,"file":"FieldLabel.d.ts","sourceRoot":"","sources":["../../../src/components/Field/FieldLabel.tsx"],"names":[],"mappings":"AAUA,eAAO,MAAM,UAAU;;;;;;4GAiBtB,CAAC"}
@@ -11,13 +11,13 @@ declare const _default: typeof Field & {
11
11
  /**
12
12
  * @deprecated Use named import `FieldLabel` instead
13
13
  */
14
- Label: (props: Omit<Omit<Omit<import("../Box").BoxProps & import("react").RefAttributes<any>, "ref"> & {
14
+ Label: import("react").ForwardRefExoticComponent<Omit<Omit<Omit<Omit<import("../Box").BoxProps & import("react").RefAttributes<any>, "ref"> & {
15
15
  ref?: ((instance: any) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<any> | null | undefined;
16
16
  }, "is"> & {
17
17
  disabled?: boolean;
18
18
  required?: boolean;
19
19
  is?: (import("react").ElementType<any> & string) | undefined;
20
- }, "ref">) => import("react/jsx-runtime").JSX.Element;
20
+ }, "ref"> & import("react").RefAttributes<HTMLElement>, "ref"> & import("react").RefAttributes<HTMLElement>>;
21
21
  /**
22
22
  * @deprecated Use named import `FieldDescription` instead
23
23
 
@@ -1,4 +1,4 @@
1
- import type { ComponentProps, ReactElement, ElementType } from 'react';
1
+ import type { ComponentProps, ElementType } from 'react';
2
2
  import Box from '../Box';
3
3
  type LabelProps = Omit<ComponentProps<typeof Box>, 'is'> & {
4
4
  disabled?: boolean;
@@ -8,6 +8,6 @@ type LabelProps = Omit<ComponentProps<typeof Box>, 'is'> & {
8
8
  /**
9
9
  * A caption for an input component.
10
10
  */
11
- export declare function Label({ disabled, is, required, children, ...props }: LabelProps): ReactElement;
11
+ export declare const Label: import("react").ForwardRefExoticComponent<Omit<LabelProps, "ref"> & import("react").RefAttributes<HTMLElement>>;
12
12
  export {};
13
13
  //# sourceMappingURL=Label.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AAGvE,OAAO,GAAG,MAAM,QAAQ,CAAC;AAIzB,KAAK,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF;;GAEG;AACH,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,EAAE,EACF,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,UAAU,GAAG,YAAY,CAgB3B"}
1
+ {"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/components/Label/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAgB,WAAW,EAAO,MAAM,OAAO,CAAC;AAG5E,OAAO,GAAG,MAAM,QAAQ,CAAC;AAIzB,KAAK,UAAU,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,EAAE,CAAC,EAAE,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,KAAK,iHAyBhB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"OptionsPaginated.d.ts","sourceRoot":"","sources":["../../../src/components/OptionsPaginated/OptionsPaginated.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,WAAW,EAAE,GAAG,EAAkB,MAAM,OAAO,CAAC;AAM9E,OAAO,GAAG,MAAM,QAAQ,CAAC;AAKzB,KAAK,qBAAqB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,UAAU,CAAC,GAAG;IAC1E,QAAQ,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C,EAAE,WAAW,CAAC;IACzB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,QAAQ,EAAE,CAAC,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC,KAAK,IAAI,CAAC;IAC9C,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACtC,CAAC;AAEF,eAAO,MAAM,KAAK,oFAAuC,CAAC;AAI1D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;EAUtB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,gBAAgB,wHAgE5B,CAAC;AAEF,eAAO,MAAM,UAAU,GAAI,qFAA6C,gFAMvE,CAAC"}
@@ -1,6 +1,8 @@
1
- import type { AllHTMLAttributes, ComponentProps } from 'react';
1
+ import type { AllHTMLAttributes, ComponentProps, ReactNode } from 'react';
2
2
  import Box from '../Box';
3
- type RadioButtonProps = ComponentProps<typeof Box> & AllHTMLAttributes<HTMLInputElement>;
3
+ type RadioButtonProps = ComponentProps<typeof Box> & AllHTMLAttributes<HTMLInputElement> & {
4
+ labelChildren?: ReactNode;
5
+ };
4
6
  export declare const RadioButton: import("react").ForwardRefExoticComponent<Omit<RadioButtonProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
5
7
  export {};
6
8
  //# sourceMappingURL=RadioButton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../src/components/RadioButton/RadioButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAO,MAAM,OAAO,CAAC;AAGpE,OAAO,GAAG,MAAM,QAAQ,CAAC;AAEzB,KAAK,gBAAgB,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GAChD,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AAEtC,eAAO,MAAM,WAAW,4HAgBtB,CAAC"}
1
+ {"version":3,"file":"RadioButton.d.ts","sourceRoot":"","sources":["../../../src/components/RadioButton/RadioButton.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AAG/E,OAAO,GAAG,MAAM,QAAQ,CAAC;AAEzB,KAAK,gBAAgB,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GAChD,iBAAiB,CAAC,gBAAgB,CAAC,GAAG;IACpC,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAC;AAEJ,eAAO,MAAM,WAAW,4HAiBtB,CAAC"}
@@ -1,11 +1,12 @@
1
- import type { AllHTMLAttributes, ReactNode } from 'react';
1
+ import type { ComponentProps, ReactNode } from 'react';
2
+ import Box from '../Box/Box';
2
3
  type TagProps = {
3
4
  medium?: boolean;
4
5
  large?: boolean;
5
- variant?: 'primary' | 'secondary' | 'danger' | 'warning' | 'secondary-danger' | 'featured';
6
+ variant?: 'primary' | 'secondary' | 'danger' | 'warning' | 'secondary-danger' | 'secondary-warning' | 'secondary-info' | 'featured';
6
7
  disabled?: boolean;
7
8
  icon?: ReactNode;
8
- } & Omit<AllHTMLAttributes<HTMLSpanElement | HTMLAnchorElement>, 'is'>;
9
+ } & Omit<ComponentProps<typeof Box>, 'is'>;
9
10
  /**
10
11
  * Used for mentions
11
12
  */
@@ -1 +1 @@
1
- {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK1D,KAAK,QAAQ,GAAG;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EACJ,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,kBAAkB,GAClB,UAAU,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,GAAG,IAAI,CAAC,iBAAiB,CAAC,eAAe,GAAG,iBAAiB,CAAC,EAAE,IAAI,CAAC,CAAC;AAEvE;;GAEG;AACH,eAAO,MAAM,GAAG,GAAI,0FAWjB,QAAQ,4CAyBV,CAAC"}
1
+ {"version":3,"file":"Tag.d.ts","sourceRoot":"","sources":["../../../src/components/Tag/Tag.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvD,OAAO,GAAG,MAAM,YAAY,CAAC;AAE7B,KAAK,QAAQ,GAAG;IACd,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,OAAO,CAAC,EACJ,SAAS,GACT,WAAW,GACX,QAAQ,GACR,SAAS,GACT,kBAAkB,GAClB,mBAAmB,GACnB,gBAAgB,GAChB,UAAU,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,SAAS,CAAC;CAClB,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;AAE3C;;GAEG;AACH,eAAO,MAAM,GAAG,GAAI,0FAWjB,QAAQ,4CAyBV,CAAC"}
@@ -1,5 +1,8 @@
1
- import type { AllHTMLAttributes } from 'react';
2
- export declare const ToggleSwitch: import("react").ForwardRefExoticComponent<Omit<Omit<import("../Box").BoxProps & import("react").RefAttributes<any>, "ref"> & {
3
- ref?: ((instance: any) => void | import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES[keyof import("react").DO_NOT_USE_OR_YOU_WILL_BE_FIRED_CALLBACK_REF_RETURN_VALUES]) | import("react").RefObject<any> | null | undefined;
4
- } & AllHTMLAttributes<HTMLInputElement>, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
1
+ import type { AllHTMLAttributes, ComponentProps, ReactNode } from 'react';
2
+ import Box from '../Box';
3
+ type ToggleSwitchProps = ComponentProps<typeof Box> & AllHTMLAttributes<HTMLInputElement> & {
4
+ labelChildren?: ReactNode;
5
+ };
6
+ export declare const ToggleSwitch: import("react").ForwardRefExoticComponent<Omit<ToggleSwitchProps, "ref"> & import("react").RefAttributes<HTMLInputElement>>;
7
+ export {};
5
8
  //# sourceMappingURL=ToggleSwitch.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleSwitch/ToggleSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAuB,MAAM,OAAO,CAAC;AAKpE,eAAO,MAAM,YAAY;;kGAmBvB,CAAC"}
1
+ {"version":3,"file":"ToggleSwitch.d.ts","sourceRoot":"","sources":["../../../src/components/ToggleSwitch/ToggleSwitch.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AAG/E,OAAO,GAAG,MAAM,QAAQ,CAAC;AAEzB,KAAK,iBAAiB,GAAG,cAAc,CAAC,OAAO,GAAG,CAAC,GACjD,iBAAiB,CAAC,gBAAgB,CAAC,GAAG;IACpC,aAAa,CAAC,EAAE,SAAS,CAAC;CAC3B,CAAC;AAEJ,eAAO,MAAM,YAAY,6HAkBvB,CAAC"}