@faststore/ui 1.8.49 → 1.9.1
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 +30 -0
- package/dist/index.d.ts +2 -0
- package/dist/organisms/Hero/Hero.d.ts +11 -0
- package/dist/organisms/Hero/HeroHeading.d.ts +10 -0
- package/dist/organisms/Hero/HeroImage.d.ts +10 -0
- package/dist/organisms/Hero/index.d.ts +6 -0
- package/dist/organisms/Hero/stories/Hero.stories.d.ts +4 -0
- package/dist/organisms/OutOfStock/OutOfStockMessage.d.ts +1 -1
- package/dist/organisms/OutOfStock/OutOfStockTitle.d.ts +1 -1
- package/dist/ui.cjs.development.js +47 -6
- 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 +45 -7
- package/dist/ui.esm.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +7 -0
- package/src/organisms/Hero/Hero.test.tsx +60 -0
- package/src/organisms/Hero/Hero.tsx +23 -0
- package/src/organisms/Hero/HeroHeading.tsx +24 -0
- package/src/organisms/Hero/HeroImage.tsx +22 -0
- package/src/organisms/Hero/index.tsx +8 -0
- package/src/organisms/Hero/stories/Hero.mdx +48 -0
- package/src/organisms/Hero/stories/Hero.stories.tsx +56 -0
- package/src/organisms/OutOfStock/OutOfStockMessage.tsx +6 -1
- package/src/organisms/OutOfStock/OutOfStockTitle.tsx +6 -1
package/dist/ui.esm.js
CHANGED
|
@@ -1976,24 +1976,62 @@ const OutOfStock = ({
|
|
|
1976
1976
|
const OutOfStockMessage = ({
|
|
1977
1977
|
as: MessageComponent = 'p',
|
|
1978
1978
|
testId = 'store-out-of-stock-message',
|
|
1979
|
-
children
|
|
1979
|
+
children,
|
|
1980
|
+
...otherProps
|
|
1980
1981
|
}) => {
|
|
1981
|
-
return React.createElement(MessageComponent, {
|
|
1982
|
+
return React.createElement(MessageComponent, Object.assign({
|
|
1982
1983
|
"data-out-of-stock-message": true,
|
|
1983
1984
|
"data-testid": testId
|
|
1984
|
-
}, children);
|
|
1985
|
+
}, otherProps), children);
|
|
1985
1986
|
};
|
|
1986
1987
|
|
|
1987
1988
|
const OutOfStockTitle = ({
|
|
1988
1989
|
as: TitleComponent = 'h2',
|
|
1989
1990
|
testId = 'store-out-of-stock-title',
|
|
1990
|
-
children
|
|
1991
|
+
children,
|
|
1992
|
+
...otherProps
|
|
1991
1993
|
}) => {
|
|
1992
|
-
return React.createElement(TitleComponent, {
|
|
1994
|
+
return React.createElement(TitleComponent, Object.assign({
|
|
1993
1995
|
"data-out-of-stock-title": true,
|
|
1994
1996
|
"data-testid": testId
|
|
1995
|
-
}, children);
|
|
1997
|
+
}, otherProps), children);
|
|
1996
1998
|
};
|
|
1997
1999
|
|
|
1998
|
-
|
|
2000
|
+
const Hero = /*#__PURE__*/forwardRef(function Hero({
|
|
2001
|
+
testId = 'store-hero',
|
|
2002
|
+
children,
|
|
2003
|
+
...otherProps
|
|
2004
|
+
}, ref) {
|
|
2005
|
+
return React.createElement("article", Object.assign({
|
|
2006
|
+
ref: ref,
|
|
2007
|
+
"data-store-hero": true,
|
|
2008
|
+
"data-testid": testId
|
|
2009
|
+
}, otherProps), children);
|
|
2010
|
+
});
|
|
2011
|
+
|
|
2012
|
+
const HeroImage = /*#__PURE__*/forwardRef(function HeroImage({
|
|
2013
|
+
testId = 'store-hero-image',
|
|
2014
|
+
children,
|
|
2015
|
+
...otherProps
|
|
2016
|
+
}, ref) {
|
|
2017
|
+
return React.createElement("div", Object.assign({
|
|
2018
|
+
ref: ref,
|
|
2019
|
+
"data-hero-image": true,
|
|
2020
|
+
"data-testid": testId
|
|
2021
|
+
}, otherProps), children);
|
|
2022
|
+
});
|
|
2023
|
+
|
|
2024
|
+
const HeroHeading = /*#__PURE__*/forwardRef(function HeroHeading({
|
|
2025
|
+
testId = 'store-hero-heading',
|
|
2026
|
+
children,
|
|
2027
|
+
...otherProps
|
|
2028
|
+
}, ref) {
|
|
2029
|
+
return React.createElement("header", Object.assign({
|
|
2030
|
+
ref: ref,
|
|
2031
|
+
"data-hero-heading": true,
|
|
2032
|
+
"data-testid": testId
|
|
2033
|
+
}, otherProps), children);
|
|
2034
|
+
});
|
|
2035
|
+
|
|
2036
|
+
export { Accordion, AccordionButton, AccordionItem, AccordionPanel, Alert, Badge, Banner, BannerContent, BannerImage, BannerLink, Breadcrumb, Bullets, Button, Card, CardActions, CardContent, CardImage, Carousel, Checkbox, Dropdown, DropdownButton, DropdownItem, DropdownMenu, Form, Hero, HeroHeading, HeroImage, Icon, IconButton, Incentive, Input, Label, Link, List, LoadingButton, Modal, OutOfStock, OutOfStockMessage, OutOfStockTitle, Overlay, PaymentMethods, Popover, Price, PriceRange, ProductCard, ProductCardActions, ProductCardContent, ProductCardImage, QuantitySelector, Radio, RadioGroup, RadioOption, SearchInput, Select, Skeleton, Slider, Spinner, Table, TableBody, TableCell, TableFooter, TableHead, TableRow, TextArea, useSlider };
|
|
1999
2037
|
//# sourceMappingURL=ui.esm.js.map
|