@faststore/ui 1.3.23 → 1.3.27
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 +38 -0
- package/README.md +49 -2
- package/dist/index.d.ts +2 -2
- package/dist/typings/index.d.ts +1 -1
- package/dist/ui.cjs.development.js +40 -0
- package/dist/ui.cjs.development.js.map +1 -1
- package/dist/ui.cjs.production.min.js +1 -1
- package/dist/ui.cjs.production.min.js.map +1 -1
- package/dist/ui.esm.js +38 -1
- package/dist/ui.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +12 -2
- package/src/molecules/RadioGroup/stories/RadioGroup.stories.tsx +2 -1
- package/src/typings/index.ts +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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.27 (2021-12-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* Add Banner Components exportation ([#1072](https://github.com/vtex/faststore/issues/1072)) ([4024104](https://github.com/vtex/faststore/commit/4024104f9804c8762037f03d986a4334af819b3c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## 1.3.26 (2021-12-09)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @faststore/ui
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 1.3.25 (2021-12-09)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @faststore/ui
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
## 1.3.24 (2021-12-09)
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
### Bug Fixes
|
|
37
|
+
|
|
38
|
+
* fix UI storybook imports ([#1069](https://github.com/vtex/faststore/issues/1069)) ([e4a2402](https://github.com/vtex/faststore/commit/e4a2402235c60488fde7021bf3200d967af3cb83))
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
6
44
|
## 1.3.23 (2021-12-09)
|
|
7
45
|
|
|
8
46
|
**Note:** Version bump only for package @faststore/ui
|
package/README.md
CHANGED
|
@@ -1,3 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://faststore.dev">
|
|
3
|
+
<img alt="Faststore" src="./static/logo.png" width="60" />
|
|
4
|
+
</a>
|
|
5
|
+
</p>
|
|
6
|
+
<h1 align="center">
|
|
7
|
+
FastStore UI
|
|
8
|
+
</h1>
|
|
9
|
+
<p align="center">
|
|
10
|
+
<strong>
|
|
11
|
+
Lightweight ecommerce component library
|
|
12
|
+
</strong>
|
|
13
|
+
</p>
|
|
2
14
|
|
|
3
|
-
|
|
15
|
+
<div style="display: flex; justify-content: center; width: 100%">
|
|
16
|
+
<a href="https://www.npmjs.com/package/@faststore/ui" style="padding: 0px 2px 0px 0px">
|
|
17
|
+
<img src="https://badge.fury.io/js/%40faststore%2Fui.svg" />
|
|
18
|
+
</a>
|
|
19
|
+
<a href="https://bundlephobia.com/package/@faststore/ui" style="padding: 0px 2px 0px 2px">
|
|
20
|
+
<img src="https://badgen.net/bundlephobia/minzip/@faststore/ui" />
|
|
21
|
+
</a>
|
|
22
|
+
<a href="https://bundlephobia.com/package/@faststore/ui" style="padding: 0px 2px 0px 2px">
|
|
23
|
+
<img src="https://badgen.net/bundlephobia/tree-shaking/@faststore/ui" />
|
|
24
|
+
</a>
|
|
25
|
+
<a href="https://bundlephobia.com/package/@faststore/ui" style="padding: 0px 0px 0px 2px">
|
|
26
|
+
<img src="https://badgen.net/bundlephobia/dependency-count/@faststore/ui" />
|
|
27
|
+
</a>
|
|
28
|
+
</div>
|
|
29
|
+
|
|
30
|
+
## Installation
|
|
31
|
+
|
|
32
|
+
From the command line in your project directory, run yarn add `@faststore/ui`.
|
|
33
|
+
|
|
34
|
+
```cmd
|
|
35
|
+
yarn add @faststore/ui
|
|
36
|
+
```
|
|
37
|
+
## Usage
|
|
38
|
+
|
|
39
|
+
```tsx
|
|
40
|
+
import React, { Component } from 'react'
|
|
41
|
+
|
|
42
|
+
import { Button } from '@faststore/ui'
|
|
43
|
+
|
|
44
|
+
function MyComponent {
|
|
45
|
+
return <Button>Click Me</Button>
|
|
46
|
+
}
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Docs
|
|
50
|
+
For more information, please refer to our documentation: https://faststore.dev/reference/ui/overview
|
package/dist/index.d.ts
CHANGED
|
@@ -40,8 +40,8 @@ export { default as IconButton } from './molecules/IconButton';
|
|
|
40
40
|
export type { IconButtonProps } from './molecules/IconButton';
|
|
41
41
|
export { default as Modal } from './molecules/Modal';
|
|
42
42
|
export type { ModalProps } from './molecules/Modal';
|
|
43
|
-
export { default as Banner } from './molecules/Banner';
|
|
44
|
-
export type { BannerProps } from './molecules/Banner';
|
|
43
|
+
export { default as Banner, BannerContent, BannerImage, BannerLink, } from './molecules/Banner';
|
|
44
|
+
export type { BannerProps, BannerContentProps, BannerImageProps, BannerLinkProps, } from './molecules/Banner';
|
|
45
45
|
export { default as PaymentMethods } from './molecules/PaymentMethods';
|
|
46
46
|
export type { PaymentMethodsProps } from './molecules/PaymentMethods';
|
|
47
47
|
export { default as Breadcrumb } from './molecules/Breadcrumb';
|
package/dist/typings/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export type {
|
|
1
|
+
export type { PolymorphicComponentProps, PolymorphicComponentPropsWithRef, } from './PolymorphicGenerics';
|
|
@@ -1021,6 +1021,43 @@ const Banner = ({
|
|
|
1021
1021
|
}, children);
|
|
1022
1022
|
};
|
|
1023
1023
|
|
|
1024
|
+
const BannerImage = /*#__PURE__*/React.forwardRef(function BannerImage({
|
|
1025
|
+
testId = 'store-banner-image',
|
|
1026
|
+
children,
|
|
1027
|
+
...otherProps
|
|
1028
|
+
}, ref) {
|
|
1029
|
+
return React__default.createElement("div", Object.assign({
|
|
1030
|
+
ref: ref,
|
|
1031
|
+
"data-store-banner-image": true,
|
|
1032
|
+
"data-testid": testId
|
|
1033
|
+
}, otherProps), children);
|
|
1034
|
+
});
|
|
1035
|
+
|
|
1036
|
+
const BannerContent = /*#__PURE__*/React.forwardRef(function BannerContent({
|
|
1037
|
+
testId = 'store-banner-content',
|
|
1038
|
+
children,
|
|
1039
|
+
...otherProps
|
|
1040
|
+
}, ref) {
|
|
1041
|
+
return React__default.createElement("div", Object.assign({
|
|
1042
|
+
ref: ref,
|
|
1043
|
+
role: "region",
|
|
1044
|
+
"data-store-banner-content": true,
|
|
1045
|
+
"data-testid": testId
|
|
1046
|
+
}, otherProps), children);
|
|
1047
|
+
});
|
|
1048
|
+
|
|
1049
|
+
const BannerLink = /*#__PURE__*/React.forwardRef(function BannerLink({
|
|
1050
|
+
testId = 'store-banner-link',
|
|
1051
|
+
children,
|
|
1052
|
+
...otherProps
|
|
1053
|
+
}, ref) {
|
|
1054
|
+
return React__default.createElement("div", Object.assign({
|
|
1055
|
+
ref: ref,
|
|
1056
|
+
"data-store-banner-link": true,
|
|
1057
|
+
"data-testid": testId
|
|
1058
|
+
}, otherProps), children);
|
|
1059
|
+
});
|
|
1060
|
+
|
|
1024
1061
|
const PaymentMethods = /*#__PURE__*/React.forwardRef(function PaymentMethods({
|
|
1025
1062
|
testId = 'store-payment-methods',
|
|
1026
1063
|
title,
|
|
@@ -1472,6 +1509,9 @@ exports.AccordionPanel = AccordionPanel;
|
|
|
1472
1509
|
exports.Alert = Alert;
|
|
1473
1510
|
exports.Badge = Badge;
|
|
1474
1511
|
exports.Banner = Banner;
|
|
1512
|
+
exports.BannerContent = BannerContent;
|
|
1513
|
+
exports.BannerImage = BannerImage;
|
|
1514
|
+
exports.BannerLink = BannerLink;
|
|
1475
1515
|
exports.Breadcrumb = Breadcrumb;
|
|
1476
1516
|
exports.Bullets = Bullets;
|
|
1477
1517
|
exports.Button = Button;
|