@faststore/ui 3.95.1-dev.0 → 3.96.0-dev.4

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.
@@ -0,0 +1,11 @@
1
+ import { HTMLAttributes, default as React } from 'react';
2
+ export interface IncentiveProps extends HTMLAttributes<HTMLDivElement> {
3
+ /**
4
+ * ID to find this component in testing tools (e.g.: cypress,
5
+ * testing-library, and jest).
6
+ */
7
+ testId?: string;
8
+ }
9
+ declare const Incentive: React.ForwardRefExoticComponent<IncentiveProps & React.RefAttributes<HTMLDivElement>>;
10
+ export default Incentive;
11
+ //# sourceMappingURL=Incentive.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Incentive.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Incentive/Incentive.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC3C,OAAO,KAAqB,MAAM,OAAO,CAAA;AAEzC,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,cAAc,CAAC;IACpE;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,QAAA,MAAM,SAAS,uFASb,CAAA;AAEF,eAAe,SAAS,CAAA"}
@@ -0,0 +1,3 @@
1
+ export { default } from './Incentive';
2
+ export type { IncentiveProps } from './Incentive';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/Incentive/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AACrC,YAAY,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { default as React, HTMLAttributes } from 'react';
2
+ export interface TileProps extends HTMLAttributes<HTMLLIElement> {
3
+ /**
4
+ * ID to find this component in testing tools (e.g.: Cypress,
5
+ * Testing Library, and Jest).
6
+ */
7
+ testId?: string;
8
+ }
9
+ declare const Tile: React.ForwardRefExoticComponent<TileProps & React.RefAttributes<HTMLLIElement>>;
10
+ export default Tile;
11
+ //# sourceMappingURL=Tile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tile.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Tiles/Tile.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAE3C,MAAM,WAAW,SAAU,SAAQ,cAAc,CAAC,aAAa,CAAC;IAC9D;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,QAAA,MAAM,IAAI,iFAeR,CAAA;AAEF,eAAe,IAAI,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { default as React, HTMLAttributes } from 'react';
2
+ export interface TilesProps extends HTMLAttributes<HTMLUListElement> {
3
+ /**
4
+ * ID to find this component in testing tools (e.g.: Cypress,
5
+ * Testing Library, and Jest).
6
+ */
7
+ testId?: string;
8
+ }
9
+ declare const Tiles: React.ForwardRefExoticComponent<TilesProps & React.RefAttributes<HTMLUListElement>>;
10
+ export default Tiles;
11
+ //# sourceMappingURL=Tiles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Tiles.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Tiles/Tiles.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA+B,MAAM,OAAO,CAAA;AACnD,OAAO,KAAK,EAAE,cAAc,EAAgB,MAAM,OAAO,CAAA;AAIzD,MAAM,WAAW,UAAW,SAAQ,cAAc,CAAC,gBAAgB,CAAC;IAClE;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAOD,QAAA,MAAM,KAAK,qFA6CT,CAAA;AAEF,eAAe,KAAK,CAAA"}
@@ -0,0 +1,5 @@
1
+ export { default as Tiles } from './Tiles';
2
+ export type { TilesProps } from './Tiles';
3
+ export { default as Tile } from './Tile';
4
+ export type { TileProps } from './Tile';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/components/organisms/Tiles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAA;AAC1C,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,EAAE,OAAO,IAAI,IAAI,EAAE,MAAM,QAAQ,CAAA;AACxC,YAAY,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAA"}
@@ -0,0 +1,46 @@
1
+ export * from "@faststore/components";
2
+ import r, { forwardRef as i, Children as l } from "react";
3
+ const m = i(function({ testId: t = "store-incentive", children: e, ...n }, s) {
4
+ return /* @__PURE__ */ r.createElement("section", { ref: s, "data-fs-incentive": !0, "data-testid": t, ...n }, e);
5
+ }), d = 2, f = 4, u = 2, T = 3, N = i(function({ testId: t = "store-tiles", children: e, ...n }, s) {
6
+ const o = l.count(e);
7
+ if (process.env.NODE_ENV === "development" && (o < d || o > f))
8
+ throw new Error(
9
+ `Tiles cannot receive less than ${d} or more than ${f} children.`
10
+ );
11
+ process.env.NODE_ENV === "development" && l.forEach(e, (c) => {
12
+ if (c.type !== _)
13
+ throw new Error("Only Tile components allowed as children.");
14
+ });
15
+ const E = o === T ? "expanded-first" : o === u ? "expanded-first-two" : "";
16
+ return /* @__PURE__ */ r.createElement(
17
+ "ul",
18
+ {
19
+ ref: s,
20
+ role: "list",
21
+ "data-fs-tiles": !0,
22
+ "data-fs-tiles-variant": E,
23
+ "data-fs-content": "tiles",
24
+ "data-testid": t,
25
+ ...n
26
+ },
27
+ e
28
+ );
29
+ }), _ = i(function({ testId: t = "store-tile", children: e, ...n }, s) {
30
+ return /* @__PURE__ */ r.createElement(
31
+ "li",
32
+ {
33
+ ref: s,
34
+ role: "listitem",
35
+ "data-fs-tile": !0,
36
+ "data-testid": t,
37
+ ...n
38
+ },
39
+ e
40
+ );
41
+ });
42
+ export {
43
+ m as Incentive,
44
+ _ as Tile,
45
+ N as Tiles
46
+ };
@@ -0,0 +1,6 @@
1
+ export * from '@faststore/components';
2
+ export { default as Incentive } from './components/atoms/Incentive';
3
+ export type { IncentiveProps } from './components/atoms/Incentive';
4
+ export { Tile, Tiles } from './components/organisms/Tiles';
5
+ export type { TilesProps, TileProps } from './components/organisms/Tiles';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AAErC,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,8BAA8B,CAAA;AACnE,YAAY,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAGlE,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,8BAA8B,CAAA;AAC1D,YAAY,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAA"}
@@ -0,0 +1,23 @@
1
+ import { ComponentPropsWithoutRef, ComponentPropsWithRef, ElementType } from 'react';
2
+ type AsProp<C extends ElementType> = {
3
+ as?: C;
4
+ };
5
+ /**
6
+ * Allows for extending a set of props (`ExtendedProps`) by an overriding set of props
7
+ * (`OverrideProps`), ensuring that any duplicates are overridden by the overriding
8
+ * set of props.
9
+ */
10
+ type ExtendableProps<ExtendedProps = Record<string, never>, OverrideProps = Record<string, never>> = OverrideProps & Omit<ExtendedProps, keyof OverrideProps>;
11
+ /**
12
+ * Allows for inheriting the props from the specified element type so that
13
+ * props like children, className & style work, as well as element-specific
14
+ * attributes like aria roles. The component (`C`) must be passed in.
15
+ */
16
+ type InheritableElementProps<C extends ElementType, Props = Record<string, never>> = ExtendableProps<ComponentPropsWithoutRef<C>, Props>;
17
+ export type PolymorphicComponentProps<C extends ElementType, Props = Record<string, never>> = InheritableElementProps<C, Props & AsProp<C>>;
18
+ export type PolymorphicComponentPropsWithRef<C extends ElementType, P = Record<string, never>> = PolymorphicComponentProps<C, P> & {
19
+ ref?: ComponentPropsWithRef<C>['ref'];
20
+ };
21
+ export type PolymorphicRef<C extends ElementType> = PolymorphicComponentPropsWithRef<C>['ref'];
22
+ export {};
23
+ //# sourceMappingURL=PolymorphicGenerics.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"PolymorphicGenerics.d.ts","sourceRoot":"","sources":["../../src/typings/PolymorphicGenerics.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,wBAAwB,EACxB,qBAAqB,EACrB,WAAW,EACZ,MAAM,OAAO,CAAA;AAEd,KAAK,MAAM,CAAC,CAAC,SAAS,WAAW,IAAI;IACnC,EAAE,CAAC,EAAE,CAAC,CAAA;CACP,CAAA;AAED;;;;GAIG;AACH,KAAK,eAAe,CAClB,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,EACrC,aAAa,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IACnC,aAAa,GAAG,IAAI,CAAC,aAAa,EAAE,MAAM,aAAa,CAAC,CAAA;AAE5D;;;;GAIG;AACH,KAAK,uBAAuB,CAC1B,CAAC,SAAS,WAAW,EACrB,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAC3B,eAAe,CAAC,wBAAwB,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,CAAA;AAEvD,MAAM,MAAM,yBAAyB,CACnC,CAAC,SAAS,WAAW,EACrB,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IAC3B,uBAAuB,CAAC,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;AAEjD,MAAM,MAAM,gCAAgC,CAC1C,CAAC,SAAS,WAAW,EACrB,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,IACvB,yBAAyB,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;IAAE,GAAG,CAAC,EAAE,qBAAqB,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA;CAAE,CAAA;AAG/E,MAAM,MAAM,cAAc,CAAC,CAAC,SAAS,WAAW,IAC9C,gCAAgC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export type { PolymorphicComponentProps, PolymorphicComponentPropsWithRef, PolymorphicRef, } from './PolymorphicGenerics';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/typings/index.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,yBAAyB,EACzB,gCAAgC,EAChC,cAAc,GACf,MAAM,uBAAuB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/ui",
3
- "version": "3.95.1-dev.0",
3
+ "version": "3.96.0-dev.4",
4
4
  "description": "A lightweight, framework agnostic component library for React",
5
5
  "author": "emersonlaurentino",
6
6
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  }
48
48
  ],
49
49
  "dependencies": {
50
- "@faststore/components": "^3.95.1-dev.0",
50
+ "@faststore/components": "^3.96.0-dev.4",
51
51
  "include-media": "^1.4.10",
52
52
  "modern-normalize": "^1.1.0",
53
53
  "react-swipeable": "^7.0.0",
@@ -70,5 +70,5 @@
70
70
  "volta": {
71
71
  "extends": "../../package.json"
72
72
  },
73
- "gitHead": "4088c3db2a97323b70823dee221cc299663eb275"
73
+ "gitHead": "28b6ec0489080be0a3431ec2ead7bfce0da75a34"
74
74
  }