@loomhq/lens 12.7.0 → 12.8.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.
- package/dist/cjs/index.js +227 -170
- package/dist/cjs/index.js.map +4 -4
- package/dist/esm/index.js +208 -151
- package/dist/esm/index.js.map +4 -4
- package/dist/types/components/dropdown/dropdown.d.ts.map +1 -1
- package/dist/types/components/select/select.d.ts +7 -1
- package/dist/types/components/select/select.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/dropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuC,MAAM,OAAO,CAAC;AA6C5D,QAAA,MAAM,QAAQ,GAAI,2NAiBf,aAAa,
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/dropdown.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAuC,MAAM,OAAO,CAAC;AA6C5D,QAAA,MAAM,QAAQ,GAAI,2NAiBf,aAAa,sBAkKf,CAAC;AAEF,KAAK,aAAa,GAAG;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACxB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;CACxC,CAAC;AAEF,KAAK,YAAY,GACb;IACE,sGAAsG;IACtG,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,eAAe,CAAC,EAAE,KAAK,CAAC;CACzB,GACD;IACE,OAAO,CAAC,EAAE,KAAK,CAAC;IAChB,eAAe,EAAE,CAAC,WAAW,KAAA,KAAK,KAAK,CAAC,SAAS,CAAC;CACnD,CAAC;AAEN,KAAK,aAAa,GAAG,YAAY,GAAG;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,YAAY,CAAC,EACT,MAAM,GACN,OAAO,GACP,UAAU,GACV,SAAS,GACT,UAAU,GACV,WAAW,CAAC;IAChB,OAAO,CAAC,EAAE,aAAa,EAAE,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC/B,aAAa,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAChC,SAAS,CAAC,EAAE,WAAW,GAAG,CAAC,MAAM,WAAW,CAAC,GAAG,MAAM,CAAC;IACvD,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,CAAC,MAAM,EAAE,OAAO,KAAK,IAAI,CAAC;IACzC,MAAM,CAAC,EAAE,WAAW,CAAC;CACtB,CAAC;AAEF,eAAe,QAAQ,CAAC"}
|
|
@@ -4,7 +4,7 @@ declare const SelectWrapper: import("@emotion/styled").StyledComponent<{
|
|
|
4
4
|
theme?: import("@emotion/react").Theme;
|
|
5
5
|
as?: React.ElementType;
|
|
6
6
|
}, React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
7
|
-
declare const Select: ({ container, onChange, menuZIndex, menuMaxWidth, menuMaxHeight, menuMinWidth, ariaMenuName, selectedOptionValue, onOuterClick, options, placeholder, menuPosition, isDisabled, onOpenChange, trigger, hasError, errorMessage, ...props }: SelectProps & Omit<React.ComponentProps<typeof SelectWrapper>, keyof SelectProps> & Omit<LensDivProps, keyof SelectProps & React.ComponentProps<typeof SelectWrapper>>) => React.JSX.Element;
|
|
7
|
+
declare const Select: ({ container, onChange, menuZIndex, menuMaxWidth, menuMaxHeight, menuMinWidth, triggerOffset, ariaMenuName, selectedOptionValue, onOuterClick, options, placeholder, menuPosition, isDisabled, onOpenChange, trigger, hasError, errorMessage, search, ...props }: SelectProps & Omit<React.ComponentProps<typeof SelectWrapper>, keyof SelectProps> & Omit<LensDivProps, keyof SelectProps & React.ComponentProps<typeof SelectWrapper>>) => React.JSX.Element;
|
|
8
8
|
export type OptionsObject = {
|
|
9
9
|
value: string;
|
|
10
10
|
title: React.ReactNode;
|
|
@@ -17,6 +17,10 @@ export type GroupedOptionsObject = {
|
|
|
17
17
|
group: string;
|
|
18
18
|
items: OptionsObject[];
|
|
19
19
|
};
|
|
20
|
+
type SearchProps = {
|
|
21
|
+
searchPlaceholder: string;
|
|
22
|
+
searchType?: 'contains' | 'startsWith';
|
|
23
|
+
};
|
|
20
24
|
type SelectProps = {
|
|
21
25
|
onChange?: (selectedOption: OptionsObject) => void;
|
|
22
26
|
isDisabled?: boolean;
|
|
@@ -27,6 +31,7 @@ type SelectProps = {
|
|
|
27
31
|
menuMaxHeight?: string | number;
|
|
28
32
|
menuMinWidth?: string | number;
|
|
29
33
|
menuPosition?: 'left' | 'right' | 'topRight' | 'topLeft';
|
|
34
|
+
triggerOffset?: number;
|
|
30
35
|
ariaMenuName?: string;
|
|
31
36
|
options?: OptionsObject[] | GroupedOptionsObject[];
|
|
32
37
|
container?: HTMLElement;
|
|
@@ -35,6 +40,7 @@ type SelectProps = {
|
|
|
35
40
|
trigger?: (triggerContent: any, buttonProps: any) => void;
|
|
36
41
|
hasError?: boolean;
|
|
37
42
|
errorMessage?: string;
|
|
43
|
+
search?: SearchProps;
|
|
38
44
|
};
|
|
39
45
|
export default Select;
|
|
40
46
|
//# sourceMappingURL=select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/components/select/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"select.d.ts","sourceRoot":"","sources":["../../../../src/components/select/select.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,EAAE,cAAc,EAAgC,MAAM,OAAO,CAAC;AAK5E,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAc3C,QAAA,MAAM,aAAa;;;qFAElB,CAAC;AAoXF,QAAA,MAAM,MAAM,GAAI,iQAqBb,WAAW,GACZ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,EAAE,MAAM,WAAW,CAAC,GACnE,IAAI,CACF,YAAY,EACZ,MAAM,WAAW,GAAG,KAAK,CAAC,cAAc,CAAC,OAAO,aAAa,CAAC,CAC/D,sBAiOF,CAAC;AAEF,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,GAAG,MAAM,CAAC;IAChC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,CAAC,EAAE,cAAc,CAAC,iBAAiB,CAAC,CAAC,QAAQ,CAAC,CAAC;CACtD,CAAC;AAEF,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,UAAU,CAAC,EAAE,UAAU,GAAG,YAAY,CAAC;CACxC,CAAC;AAEF,KAAK,WAAW,GAAG;IACjB,QAAQ,CAAC,EAAE,CAAC,cAAc,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