@epfl-sti/poesis 0.3.1 → 0.3.3
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/ui/Select.d.ts +3 -1
- package/dist/components/ui/Select.d.ts.map +1 -1
- package/dist/poesis.js +194 -168
- package/dist/poesis.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,10 +6,12 @@ export interface SelectProps<Option = unknown, IsMulti extends boolean = false,
|
|
|
6
6
|
helperText?: string;
|
|
7
7
|
/** Error message — replaces helper text and triggers error styling. */
|
|
8
8
|
error?: string;
|
|
9
|
+
/** Select size variant. */
|
|
10
|
+
selectSize?: "sm" | "md" | "lg";
|
|
9
11
|
}
|
|
10
12
|
/**
|
|
11
13
|
* Wrapper around react-select pre-configured with the EPFL design system theme.
|
|
12
14
|
* Accepts all react-select props plus label, helperText, and error.
|
|
13
15
|
*/
|
|
14
|
-
export declare function Select<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ label, helperText, error, className, ...rest }: SelectProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function Select<Option = unknown, IsMulti extends boolean = false, Group extends GroupBase<Option> = GroupBase<Option>>({ label, helperText, error, selectSize, className, ...rest }: SelectProps<Option, IsMulti, Group>): import("react/jsx-runtime").JSX.Element;
|
|
15
17
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Select.tsx"],"names":[],"mappings":"AACA,OAAoB,EAAyB,KAAK,SAAS,EAAE,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../src/components/ui/Select.tsx"],"names":[],"mappings":"AACA,OAAoB,EAAyB,KAAK,SAAS,EAAE,KAAK,KAAK,EAAE,MAAM,cAAc,CAAC;AAe9F,MAAM,WAAW,WAAW,CACxB,MAAM,GAAG,OAAO,EAChB,OAAO,SAAS,OAAO,GAAG,KAAK,EAC/B,KAAK,SAAS,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,CACrD,SAAQ,KAAK,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC;IACnC,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,0CAA0C;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,UAAU,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACnC;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAClB,MAAM,GAAG,OAAO,EAChB,OAAO,SAAS,OAAO,GAAG,KAAK,EAC/B,KAAK,SAAS,SAAS,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC,MAAM,CAAC,EACrD,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,UAAiB,EAAE,SAAc,EAAE,GAAG,IAAI,EAAE,EAAE,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,KAAK,CAAC,2CAuE9G"}
|