@photoroom/ui 0.1.625 → 0.1.626

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.
@@ -27,13 +27,17 @@ export type TextInputProps = {
27
27
  * Render a clear button when input has some content
28
28
  */
29
29
  onClear?: () => void;
30
+ /**
31
+ * Accessible name of the clear button
32
+ */
33
+ clearLabel?: string;
30
34
  /**
31
35
  * Leading icon
32
36
  */
33
37
  leadingIcon?: React.ComponentType<React.ComponentPropsWithoutRef<"svg">>;
34
38
  wrapperClassName?: string;
35
39
  } & React.ComponentPropsWithRef<"input">;
36
- export declare function TextInput({ invalid, type, autoSelect, borderLess, density, leadingIcon: LeadingIcon, onClear, wrapperClassName, ref, ...rest }: TextInputProps): import("react").JSX.Element;
40
+ export declare function TextInput({ invalid, type, autoSelect, borderLess, density, leadingIcon: LeadingIcon, onClear, clearLabel, wrapperClassName, ref, ...rest }: TextInputProps): import("react").JSX.Element;
37
41
  export declare namespace TextInput {
38
42
  var displayName: string;
39
43
  }
@@ -1 +1 @@
1
- {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/TextInput/TextInput.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC3E;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GAAG,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;kCAqDf,EACxB,OAAe,EACf,IAAa,EACb,UAAkB,EAClB,UAAkB,EAClB,OAAmB,EACnB,WAAW,EAAE,WAAW,EACxB,OAAO,EACP,gBAAgB,EAChB,GAAG,EACH,GAAG,IAAI,EACR,EAAE,cAAc"}
1
+ {"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/input/TextInput/TextInput.tsx"],"names":[],"mappings":"AAMA,MAAM,MAAM,cAAc,GAAG;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,UAAU,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;IAC3E;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;IAC1C;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC,CAAC;IACzE,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,GAAG,KAAK,CAAC,qBAAqB,CAAC,OAAO,CAAC,CAAC;kCAqDf,EACxB,OAAe,EACf,IAAa,EACb,UAAkB,EAClB,UAAkB,EAClB,OAAmB,EACnB,WAAW,EAAE,WAAW,EACxB,OAAO,EACP,UAAU,EACV,gBAAgB,EAChB,GAAG,EACH,GAAG,IAAI,EACR,EAAE,cAAc"}
@@ -1,6 +1,16 @@
1
+ export type CardsHeroBlockItem = Readonly<{
2
+ label: string;
3
+ node: React.ReactNode;
4
+ }>;
1
5
  export type CardsHeroBlockProps = Readonly<{
2
- items: React.ReactNode;
6
+ items: CardsHeroBlockItem[];
3
7
  titleBlock?: React.ReactNode;
8
+ search?: Readonly<{
9
+ placeholder: string;
10
+ clearLabel: string;
11
+ noResultsLabel: string;
12
+ formatResultCount: (count: number) => string;
13
+ }>;
4
14
  }>;
5
- export declare const CardsHeroBlock: ({ items, titleBlock, ...rest }: CardsHeroBlockProps) => import("react").JSX.Element;
15
+ export declare const CardsHeroBlock: ({ items, titleBlock, search, ...rest }: CardsHeroBlockProps) => import("react").JSX.Element;
6
16
  //# sourceMappingURL=CardsHeroBlock.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"CardsHeroBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/website/CardsHeroBlock/CardsHeroBlock.tsx"],"names":[],"mappings":"AAEA,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC9B,CAAC,CAAC;AAEH,eAAO,MAAM,cAAc,mCAAoC,mBAAmB,gCAsBjF,CAAC"}
1
+ {"version":3,"file":"CardsHeroBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/website/CardsHeroBlock/CardsHeroBlock.tsx"],"names":[],"mappings":"AAKA,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC;CACvB,CAAC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,QAAQ,CAAC;IACzC,KAAK,EAAE,kBAAkB,EAAE,CAAC;IAC5B,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC7B,MAAM,CAAC,EAAE,QAAQ,CAAC;QAChB,WAAW,EAAE,MAAM,CAAC;QACpB,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,EAAE,MAAM,CAAC;QACvB,iBAAiB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;KAC9C,CAAC,CAAC;CACJ,CAAC,CAAC;AAWH,eAAO,MAAM,cAAc,2CAA4C,mBAAmB,gCAoDzF,CAAC"}