@rocket.chat/fuselage 0.32.0-dev.152 → 0.32.0-dev.153
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/components/Slider/Slider.d.ts +40 -0
- package/dist/components/Slider/Slider.d.ts.map +1 -0
- package/dist/components/Slider/SliderHead.d.ts +13 -0
- package/dist/components/Slider/SliderHead.d.ts.map +1 -0
- package/dist/components/Slider/SliderThumb.d.ts +2 -0
- package/dist/components/Slider/SliderThumb.d.ts.map +1 -0
- package/dist/components/Slider/SliderTrack.d.ts +12 -0
- package/dist/components/Slider/SliderTrack.d.ts.map +1 -0
- package/dist/components/Slider/index.d.ts +2 -0
- package/dist/components/Slider/index.d.ts.map +1 -0
- package/dist/fuselage.development.js +150 -468
- package/dist/fuselage.development.js.map +1 -1
- package/dist/fuselage.production.js +1 -1
- package/package.json +17 -12
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { AriaAttributes, ReactElement } from 'react';
|
|
2
|
+
declare type SliderProps<T extends number | number[]> = AriaAttributes & {
|
|
3
|
+
/**
|
|
4
|
+
* The display format of the value output.
|
|
5
|
+
*/
|
|
6
|
+
formatOptions?: Intl.NumberFormatOptions;
|
|
7
|
+
label?: string;
|
|
8
|
+
showOutput?: boolean;
|
|
9
|
+
/**
|
|
10
|
+
* Slider with multiple thumbs.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
multiThumb?: T extends number[] ? true : false;
|
|
14
|
+
step?: number;
|
|
15
|
+
/**
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
minValue?: number;
|
|
19
|
+
/**
|
|
20
|
+
* @default 100
|
|
21
|
+
*/
|
|
22
|
+
maxValue?: number;
|
|
23
|
+
orientation?: 'horizontal' | 'vertical';
|
|
24
|
+
disabled?: boolean;
|
|
25
|
+
defaultValue?: T;
|
|
26
|
+
small?: boolean;
|
|
27
|
+
/**
|
|
28
|
+
* 100% of parent's dimention
|
|
29
|
+
*/
|
|
30
|
+
large?: boolean;
|
|
31
|
+
} & ({
|
|
32
|
+
value: T;
|
|
33
|
+
onChange: (value: T) => void;
|
|
34
|
+
} | {
|
|
35
|
+
value?: never;
|
|
36
|
+
onChange?: never;
|
|
37
|
+
});
|
|
38
|
+
export declare function Slider<T extends number | [min: number, max: number]>(props: SliderProps<T>): ReactElement;
|
|
39
|
+
export {};
|
|
40
|
+
//# sourceMappingURL=Slider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAW1D,aAAK,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,cAAc,GAAG;IAC/D;;OAEG;IACH,aAAa,CAAC,EAAE,IAAI,CAAC,mBAAmB,CAAC;IACzC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;;OAGG;IACH,UAAU,CAAC,EAAE,CAAC,SAAS,MAAM,EAAE,GAAG,IAAI,GAAG,KAAK,CAAC;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB,GAAG,CACE;IACE,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;CAC9B,GACD;IACE,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,QAAQ,CAAC,EAAE,KAAK,CAAC;CAClB,CACJ,CAAC;AAEJ,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,CAAC,EAClE,KAAK,EAAE,WAAW,CAAC,CAAC,CAAC,GACpB,YAAY,CAkGd"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { LabelHTMLAttributes, OutputHTMLAttributes } from 'react';
|
|
2
|
+
import type { SliderState } from 'react-stately';
|
|
3
|
+
declare type SliderHeadProps = {
|
|
4
|
+
state: SliderState;
|
|
5
|
+
labelProps: Omit<LabelHTMLAttributes<HTMLLabelElement>, 'is'>;
|
|
6
|
+
outputProps: Omit<OutputHTMLAttributes<HTMLOutputElement>, 'is'>;
|
|
7
|
+
label?: string;
|
|
8
|
+
showOutput?: boolean;
|
|
9
|
+
multiThumb?: boolean;
|
|
10
|
+
};
|
|
11
|
+
export declare const SliderHead: ({ state, labelProps, outputProps, label, showOutput, multiThumb, }: SliderHeadProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=SliderHead.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderHead.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/SliderHead.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAKjD,aAAK,eAAe,GAAG;IACrB,KAAK,EAAE,WAAW,CAAC;IACnB,UAAU,EAAE,IAAI,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,IAAI,CAAC,CAAC;IAC9D,WAAW,EAAE,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,IAAI,CAAC,CAAC;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AACF,eAAO,MAAM,UAAU,uEAOpB,eAAe,gBAqCjB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderThumb.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/SliderThumb.tsx"],"names":[],"mappings":"AAWA,eAAO,MAAM,WAAW,UAAW,GAAG,gBAwCrC,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DOMAttributes, MutableRefObject, ReactNode } from 'react';
|
|
2
|
+
import type { SliderState } from 'react-stately';
|
|
3
|
+
declare type SliderTrackProps = {
|
|
4
|
+
trackProps: DOMAttributes<Element>;
|
|
5
|
+
trackRef: MutableRefObject<null>;
|
|
6
|
+
state: SliderState;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
multiThumb?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export declare const SliderTrack: ({ trackProps, trackRef, state, multiThumb, children, }: SliderTrackProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=SliderTrack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SliderTrack.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/SliderTrack.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAExE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAIjD,aAAK,gBAAgB,GAAG;IACtB,UAAU,EAAE,aAAa,CAAC,OAAO,CAAC,CAAC;IACnC,QAAQ,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACjC,KAAK,EAAE,WAAW,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,eAAO,MAAM,WAAW,2DAMrB,gBAAgB,gBA2FlB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/index.tsx"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC"}
|