@faststore/ui 1.3.40 → 1.3.41

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/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 1.3.41 (2021-12-20)
7
+
8
+
9
+ ### Features
10
+
11
+ * **ui:** Incentive atom ([#1064](https://github.com/vtex/faststore/issues/1064)) ([1b136c7](https://github.com/vtex/faststore/commit/1b136c7d7fc8f2b99259ef1908286713697e03da))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 1.3.40 (2021-12-18)
7
18
 
8
19
 
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import type { HTMLAttributes } from 'react';
3
+ export interface IncentiveProps extends HTMLAttributes<HTMLDivElement> {
4
+ /**
5
+ * ID to find this component in testing tools (e.g.: cypress,
6
+ * testing-library, and jest).
7
+ */
8
+ testId?: string;
9
+ }
10
+ declare const Incentive: React.ForwardRefExoticComponent<IncentiveProps & React.RefAttributes<HTMLDivElement>>;
11
+ export default Incentive;
@@ -0,0 +1,2 @@
1
+ export { default } from './Incentive';
2
+ export type { IncentiveProps } from './Incentive';
@@ -0,0 +1,4 @@
1
+ import type { IncentiveProps } from '../Incentive';
2
+ export declare const Incentive: import("@storybook/csf").AnnotatedStoryFn<import("@storybook/react").ReactFramework, IncentiveProps>;
3
+ declare const _default: import("@storybook/csf").ComponentAnnotations<import("@storybook/react").ReactFramework, import("@storybook/react").Args>;
4
+ export default _default;
@@ -0,0 +1,2 @@
1
+ /// <reference types="react" />
2
+ export declare function SafetyIcon(): JSX.Element;
package/dist/index.d.ts CHANGED
@@ -32,6 +32,8 @@ export { default as Spinner } from './atoms/Spinner';
32
32
  export type { SpinnerProps } from './atoms/Spinner';
33
33
  export { default as Label } from './atoms/Label';
34
34
  export type { LabelProps } from './atoms/Label';
35
+ export { default as Incentive } from './atoms/Incentive';
36
+ export type { IncentiveProps } from './atoms/Incentive';
35
37
  export { default as Bullets } from './molecules/Bullets';
36
38
  export type { BulletsProps } from './molecules/Bullets';
37
39
  export { default as SearchInput } from './molecules/SearchInput';
@@ -317,6 +317,18 @@ const Label = /*#__PURE__*/React.forwardRef(function Label({
317
317
  }, otherProps), children);
318
318
  });
319
319
 
320
+ const Incentive = /*#__PURE__*/React.forwardRef(function Incentive({
321
+ testId = 'store-incentive',
322
+ children,
323
+ ...otherProps
324
+ }, ref) {
325
+ return React__default.createElement("div", Object.assign({
326
+ ref: ref,
327
+ "data-store-incentive": true,
328
+ "data-testid": testId
329
+ }, otherProps), children);
330
+ });
331
+
320
332
  const defaultAriaLabel = (idx, isActive) => isActive ? 'Current page' : `Go to page ${idx + 1}`;
321
333
 
322
334
  const Bullets = /*#__PURE__*/React.forwardRef(function Bullets({
@@ -1581,6 +1593,7 @@ exports.Checkbox = Checkbox;
1581
1593
  exports.Form = Form;
1582
1594
  exports.Icon = Icon;
1583
1595
  exports.IconButton = IconButton;
1596
+ exports.Incentive = Incentive;
1584
1597
  exports.Input = Input;
1585
1598
  exports.Label = Label;
1586
1599
  exports.Link = Link;