@faststore/ui 1.8.34 → 1.8.37
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 +33 -0
- package/dist/index.d.ts +2 -0
- package/dist/organisms/OutOfStock/OutOfStock.d.ts +21 -0
- package/dist/organisms/OutOfStock/OutOfStockMessage.d.ts +9 -0
- package/dist/organisms/OutOfStock/OutOfStockTitle.d.ts +9 -0
- package/dist/organisms/OutOfStock/index.d.ts +6 -0
- package/dist/organisms/OutOfStock/stories/OutOfStock.stories.d.ts +10 -0
- package/dist/ui.cjs.development.js +39 -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 +37 -1
- package/dist/ui.esm.js.map +1 -1
- package/package.json +3 -3
- package/src/index.ts +10 -0
- package/src/organisms/OutOfStock/OutOfStock.test.tsx +122 -0
- package/src/organisms/OutOfStock/OutOfStock.tsx +39 -0
- package/src/organisms/OutOfStock/OutOfStockMessage.tsx +22 -0
- package/src/organisms/OutOfStock/OutOfStockTitle.tsx +22 -0
- package/src/organisms/OutOfStock/index.tsx +6 -0
- package/src/organisms/OutOfStock/stories/OutOfStock.mdx +37 -0
- package/src/organisms/OutOfStock/stories/OutOfStock.stories.tsx +73 -0
package/dist/ui.esm.js
CHANGED
|
@@ -1959,5 +1959,41 @@ const DropdownMenu = ({
|
|
|
1959
1959
|
}, otherProps), children)), document.body) : clearChildrenReferences();
|
|
1960
1960
|
};
|
|
1961
1961
|
|
|
1962
|
-
|
|
1962
|
+
const OutOfStock = ({
|
|
1963
|
+
testId = 'store-out-of-stock',
|
|
1964
|
+
children,
|
|
1965
|
+
...otherProps
|
|
1966
|
+
}) => {
|
|
1967
|
+
return React.createElement("section", {
|
|
1968
|
+
"data-store-out-of-stock": true,
|
|
1969
|
+
"data-testid": testId
|
|
1970
|
+
}, React.createElement(Form, Object.assign({
|
|
1971
|
+
"data-out-of-stock-form": true,
|
|
1972
|
+
testId: `${testId}-form`
|
|
1973
|
+
}, otherProps), children));
|
|
1974
|
+
};
|
|
1975
|
+
|
|
1976
|
+
const OutOfStockMessage = ({
|
|
1977
|
+
as: MessageComponent = 'p',
|
|
1978
|
+
testId = 'store-out-of-stock-message',
|
|
1979
|
+
children
|
|
1980
|
+
}) => {
|
|
1981
|
+
return React.createElement(MessageComponent, {
|
|
1982
|
+
"data-out-of-stock-message": true,
|
|
1983
|
+
"data-testid": testId
|
|
1984
|
+
}, children);
|
|
1985
|
+
};
|
|
1986
|
+
|
|
1987
|
+
const OutOfStockTitle = ({
|
|
1988
|
+
as: TitleComponent = 'h2',
|
|
1989
|
+
testId = 'store-out-of-stock-title',
|
|
1990
|
+
children
|
|
1991
|
+
}) => {
|
|
1992
|
+
return React.createElement(TitleComponent, {
|
|
1993
|
+
"data-out-of-stock-title": true,
|
|
1994
|
+
"data-testid": testId
|
|
1995
|
+
}, children);
|
|
1996
|
+
};
|
|
1997
|
+
|
|
1998
|
+
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, 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 };
|
|
1963
1999
|
//# sourceMappingURL=ui.esm.js.map
|