@faststore/ui 2.0.33-alpha.0 → 2.0.34-alpha.0

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.
Files changed (100) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/components/molecules/Accordion/AccordionItem.d.ts +1 -7
  3. package/dist/components/molecules/Accordion/AccordionItem.js +1 -7
  4. package/dist/components/molecules/Accordion/AccordionItem.js.map +1 -1
  5. package/package.json +6 -19
  6. package/src/components/molecules/Accordion/AccordionItem.tsx +42 -42
  7. package/dist/components/atoms/Incentive/stories/assets/Icons.d.ts +0 -2
  8. package/dist/components/atoms/Incentive/stories/assets/Icons.js +0 -6
  9. package/dist/components/atoms/Incentive/stories/assets/Icons.js.map +0 -1
  10. package/dist/components/molecules/Dropdown/stories/assets/Caret.d.ts +0 -2
  11. package/dist/components/molecules/Dropdown/stories/assets/Caret.js +0 -4
  12. package/dist/components/molecules/Dropdown/stories/assets/Caret.js.map +0 -1
  13. package/dist/components/molecules/PaymentMethods/stories/assets/Icons.d.ts +0 -9
  14. package/dist/components/molecules/PaymentMethods/stories/assets/Icons.js +0 -26
  15. package/dist/components/molecules/PaymentMethods/stories/assets/Icons.js.map +0 -1
  16. package/dist/components/molecules/QuantitySelector/stories/assets/Icons.d.ts +0 -7
  17. package/dist/components/molecules/QuantitySelector/stories/assets/Icons.js +0 -11
  18. package/dist/components/molecules/QuantitySelector/stories/assets/Icons.js.map +0 -1
  19. package/dist/components/molecules/SearchInput/stories/assets/CustomIcon.d.ts +0 -3
  20. package/dist/components/molecules/SearchInput/stories/assets/CustomIcon.js +0 -7
  21. package/dist/components/molecules/SearchInput/stories/assets/CustomIcon.js.map +0 -1
  22. package/src/components/atoms/Badge/Badge.stories.mdx +0 -156
  23. package/src/components/atoms/Incentive/stories/Incentive.mdx +0 -24
  24. package/src/components/atoms/Incentive/stories/Incentive.stories.tsx +0 -26
  25. package/src/components/atoms/Incentive/stories/assets/Icons.tsx +0 -14
  26. package/src/components/atoms/Input/Input.stories.mdx +0 -34
  27. package/src/components/atoms/Label/Label.stories.mdx +0 -65
  28. package/src/components/atoms/Link/Link.stories.mdx +0 -134
  29. package/src/components/atoms/Popover/stories/Popover.mdx +0 -18
  30. package/src/components/atoms/Popover/stories/Popover.stories.tsx +0 -50
  31. package/src/components/atoms/Radio/Radio.stories.mdx +0 -101
  32. package/src/components/atoms/Skeleton/stories/Skeleton.mdx +0 -18
  33. package/src/components/atoms/Skeleton/stories/Skeleton.stories.tsx +0 -21
  34. package/src/components/atoms/Slider/stories/Slider.mdx +0 -29
  35. package/src/components/atoms/Slider/stories/Slider.stories.tsx +0 -32
  36. package/src/components/atoms/Spinner/stories/Spinner.mdx +0 -18
  37. package/src/components/atoms/Spinner/stories/Spinner.stories.tsx +0 -21
  38. package/src/components/atoms/TextArea/stories/TextArea.mdx +0 -22
  39. package/src/components/atoms/TextArea/stories/TextArea.stories.tsx +0 -49
  40. package/src/components/molecules/Accordion/stories/Accordion.mdx +0 -62
  41. package/src/components/molecules/Accordion/stories/Accordion.stories.tsx +0 -160
  42. package/src/components/molecules/AggregateRating/stories/AggregateRating.mdx +0 -33
  43. package/src/components/molecules/AggregateRating/stories/AggregateRating.stories.tsx +0 -111
  44. package/src/components/molecules/Alert/stories/Alert.mdx +0 -26
  45. package/src/components/molecules/Alert/stories/Alert.stories.tsx +0 -36
  46. package/src/components/molecules/Banner/stories/Banner.mdx +0 -63
  47. package/src/components/molecules/Banner/stories/Banner.stories.tsx +0 -66
  48. package/src/components/molecules/Breadcrumb/stories/Breadcrumb.mdx +0 -27
  49. package/src/components/molecules/Breadcrumb/stories/Breadcrumb.stories.tsx +0 -55
  50. package/src/components/molecules/Bullets/stories/Bullets.mdx +0 -25
  51. package/src/components/molecules/Bullets/stories/Bullets.stories.tsx +0 -64
  52. package/src/components/molecules/Card/stories/Card.mdx +0 -54
  53. package/src/components/molecules/Card/stories/Card.stories.tsx +0 -63
  54. package/src/components/molecules/Carousel/stories/Carousel.mdx +0 -35
  55. package/src/components/molecules/Carousel/stories/Carousel.stories.tsx +0 -56
  56. package/src/components/molecules/CartItem/stories/CartItem.mdx +0 -79
  57. package/src/components/molecules/CartItem/stories/CartItem.stories.tsx +0 -70
  58. package/src/components/molecules/CheckboxField/CheckboxField.stories.mdx +0 -38
  59. package/src/components/molecules/DiscountBadge/DiscountBadge.stories.mdx +0 -38
  60. package/src/components/molecules/Dropdown/stories/Dropdown.mdx +0 -63
  61. package/src/components/molecules/Dropdown/stories/Dropdown.stories.tsx +0 -94
  62. package/src/components/molecules/Dropdown/stories/assets/Caret.tsx +0 -19
  63. package/src/components/molecules/Form/stories/Form.mdx +0 -23
  64. package/src/components/molecules/Form/stories/Form.stories.tsx +0 -65
  65. package/src/components/molecules/Gift/stories/Gift.mdx +0 -40
  66. package/src/components/molecules/Gift/stories/Gift.stories.tsx +0 -66
  67. package/src/components/molecules/IconButton/IconButton.stories.mdx +0 -46
  68. package/src/components/molecules/InputField/InputField.stories.mdx +0 -116
  69. package/src/components/molecules/LoadingButton/stories/LoadingButton.mdx +0 -20
  70. package/src/components/molecules/LoadingButton/stories/LoadingButton.stories.tsx +0 -36
  71. package/src/components/molecules/Modal/stories/Modal.mdx +0 -18
  72. package/src/components/molecules/Modal/stories/Modal.stories.tsx +0 -45
  73. package/src/components/molecules/OrderSummary/stories/OrderSummary.mdx +0 -29
  74. package/src/components/molecules/OrderSummary/stories/OrderSummary.stories.tsx +0 -29
  75. package/src/components/molecules/PaymentMethods/stories/PaymentMethods.mdx +0 -19
  76. package/src/components/molecules/PaymentMethods/stories/PaymentMethods.stories.tsx +0 -41
  77. package/src/components/molecules/PaymentMethods/stories/assets/Icons.tsx +0 -89
  78. package/src/components/molecules/PriceRange/stories/PriceRange.mdx +0 -28
  79. package/src/components/molecules/PriceRange/stories/PriceRange.stories.tsx +0 -45
  80. package/src/components/molecules/ProductCard/stories/ProductCard.mdx +0 -55
  81. package/src/components/molecules/ProductCard/stories/ProductCard.stories.tsx +0 -60
  82. package/src/components/molecules/ProductTitle/stories/ProductTitle.mdx +0 -26
  83. package/src/components/molecules/ProductTitle/stories/ProductTitle.stories.tsx +0 -27
  84. package/src/components/molecules/QuantitySelector/stories/QuantitySelector.mdx +0 -26
  85. package/src/components/molecules/QuantitySelector/stories/QuantitySelector.stories.tsx +0 -77
  86. package/src/components/molecules/QuantitySelector/stories/assets/Icons.tsx +0 -52
  87. package/src/components/molecules/RadioField/RadioField.stories.mdx +0 -38
  88. package/src/components/molecules/RadioGroup/stories/RadioGroup.mdx +0 -39
  89. package/src/components/molecules/RadioGroup/stories/RadioGroup.stories.tsx +0 -108
  90. package/src/components/molecules/SearchInput/stories/SearchInput.mdx +0 -28
  91. package/src/components/molecules/SearchInput/stories/SearchInput.stories.tsx +0 -45
  92. package/src/components/molecules/SearchInput/stories/assets/CustomIcon.tsx +0 -22
  93. package/src/components/molecules/SkuSelector/stories/SkuSelector.mdx +0 -24
  94. package/src/components/molecules/SkuSelector/stories/SkuSelector.stories.tsx +0 -52
  95. package/src/components/molecules/Tag/Tag.stories.mdx +0 -31
  96. package/src/components/organisms/OutOfStock/stories/OutOfStock.mdx +0 -37
  97. package/src/components/organisms/OutOfStock/stories/OutOfStock.stories.tsx +0 -71
  98. package/src/components/organisms/Tiles/stories/Tiles.mdx +0 -39
  99. package/src/components/organisms/Tiles/stories/Tiles.stories.tsx +0 -38
  100. package/src/typings/utils.d.ts +0 -5
package/CHANGELOG.md CHANGED
@@ -3,6 +3,15 @@
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
+ ## 2.0.34-alpha.0 (2023-01-04)
7
+
8
+
9
+ ### Chores
10
+
11
+ * remove storybook ([#1586](https://github.com/vtex/faststore/issues/1586)) ([82dbfb3](https://github.com/vtex/faststore/commit/82dbfb3102850bfa1115547773f84a293a055c6b))
12
+
13
+
14
+
6
15
  ## 2.0.33-alpha.0 (2023-01-04)
7
16
 
8
17
 
@@ -1,5 +1,5 @@
1
- import React from 'react';
2
1
  import type { ElementType, HTMLAttributes, ReactElement } from 'react';
2
+ import React from 'react';
3
3
  import type { PolymorphicComponentPropsWithRef } from '../../../typings';
4
4
  interface AccordionItemContext {
5
5
  index: number;
@@ -28,10 +28,4 @@ export type AccordionItemProps<C extends ElementType> = PolymorphicComponentProp
28
28
  type AccordionItemComponent = <C extends ElementType = 'div'>(props: AccordionItemProps<C>) => ReactElement | null;
29
29
  declare const AccordionItem: AccordionItemComponent;
30
30
  export declare function useAccordionItem(): AccordionItemContext;
31
- /**
32
- * This is only being exported to make it easier to use in Storybook.
33
- * **DON'T** import this directly to use this component, use the default export
34
- * instead.
35
- */
36
- export declare const StorybookAccordionItem: React.FC<Props>;
37
31
  export default AccordionItem;
@@ -1,4 +1,4 @@
1
- import React, { useContext, forwardRef, createContext } from 'react';
1
+ import React, { createContext, forwardRef, useContext } from 'react';
2
2
  const AccordionItemContext = createContext(undefined);
3
3
  const AccordionItem = forwardRef(function AccordionItem({ testId = 'store-accordion-item', children, prefixId = '', index = 0, as: MaybeComponent, ...otherProps }, ref) {
4
4
  const Component = MaybeComponent ?? 'div';
@@ -18,11 +18,5 @@ export function useAccordionItem() {
18
18
  }
19
19
  return context;
20
20
  }
21
- /**
22
- * This is only being exported to make it easier to use in Storybook.
23
- * **DON'T** import this directly to use this component, use the default export
24
- * instead.
25
- */
26
- export const StorybookAccordionItem = AccordionItem;
27
21
  export default AccordionItem;
28
22
  //# sourceMappingURL=AccordionItem.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../../src/components/molecules/Accordion/AccordionItem.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,UAAU,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAWpE,MAAM,oBAAoB,GAAG,aAAa,CACxC,SAAS,CACV,CAAA;AA4BD,MAAM,aAAa,GAA2B,UAAU,CACtD,SAAS,aAAa,CACpB,EACE,MAAM,GAAG,sBAAsB,EAC/B,QAAQ,EACR,QAAQ,GAAG,EAAE,EACb,KAAK,GAAG,CAAC,EACT,EAAE,EAAE,cAAc,EAClB,GAAG,UAAU,EACS,EACxB,GAAsB;IAEtB,MAAM,SAAS,GAAG,cAAc,IAAI,KAAK,CAAA;IAEzC,MAAM,OAAO,GAAG;QACd,KAAK;QACL,QAAQ;QACR,KAAK,EAAE,GAAG,QAAQ,IAAI,GAAG,QAAQ,GAAG,UAAU,KAAK,EAAE;QACrD,MAAM,EAAE,GAAG,QAAQ,IAAI,GAAG,QAAQ,GAAG,WAAW,KAAK,EAAE;KACxD,CAAA;IAED,OAAO,CACL,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QAC3C,oBAAC,SAAS,IAAC,GAAG,EAAE,GAAG,8CAAmC,MAAM,KAAM,UAAU,IACzE,QAAQ,CACC,CACkB,CACjC,CAAA;AACH,CAAC,CACF,CAAA;AAED,MAAM,UAAU,gBAAgB;IAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAA;IAEhD,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAA;KACF;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,sBAAsB,GAAG,aAA0B,CAAA;AAEhE,eAAe,aAAa,CAAA"}
1
+ {"version":3,"file":"AccordionItem.js","sourceRoot":"","sources":["../../../../src/components/molecules/Accordion/AccordionItem.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,OAAO,CAAA;AAapE,MAAM,oBAAoB,GAAG,aAAa,CACxC,SAAS,CACV,CAAA;AA2BD,MAAM,aAAa,GAA2B,UAAU,CAAC,SAAS,aAAa,CAG7E,EACE,MAAM,GAAG,sBAAsB,EAC/B,QAAQ,EACR,QAAQ,GAAG,EAAE,EACb,KAAK,GAAG,CAAC,EACT,EAAE,EAAE,cAAc,EAClB,GAAG,UAAU,EACS,EACxB,GAAsB;IAEtB,MAAM,SAAS,GAAG,cAAc,IAAI,KAAK,CAAA;IAEzC,MAAM,OAAO,GAAG;QACd,KAAK;QACL,QAAQ;QACR,KAAK,EAAE,GAAG,QAAQ,IAAI,GAAG,QAAQ,GAAG,UAAU,KAAK,EAAE;QACrD,MAAM,EAAE,GAAG,QAAQ,IAAI,GAAG,QAAQ,GAAG,WAAW,KAAK,EAAE;KACxD,CAAA;IAED,OAAO,CACL,oBAAC,oBAAoB,CAAC,QAAQ,IAAC,KAAK,EAAE,OAAO;QAC3C,oBAAC,SAAS,IACR,GAAG,EAAE,GAAG,8CAEK,MAAM,KACf,UAAU,IAEb,QAAQ,CACC,CACkB,CACjC,CAAA;AACH,CAAC,CAAC,CAAA;AAEF,MAAM,UAAU,gBAAgB;IAC9B,MAAM,OAAO,GAAG,UAAU,CAAC,oBAAoB,CAAC,CAAA;IAEhD,IAAI,OAAO,KAAK,SAAS,EAAE;QACzB,MAAM,IAAI,KAAK,CACb,wEAAwE,CACzE,CAAA;KACF;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAED,eAAe,aAAa,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/ui",
3
- "version": "2.0.33-alpha.0",
3
+ "version": "2.0.34-alpha.0",
4
4
  "description": "A lightweight, framework agnostic component library for React",
5
5
  "author": "emersonlaurentino",
6
6
  "license": "MIT",
@@ -24,10 +24,8 @@
24
24
  "develop": "tsc --watch",
25
25
  "build": "tsc",
26
26
  "lint": "eslint src/**/*.{ts,tsx}",
27
- "storybook": "start-storybook -p 6006",
28
27
  "size": "size-limit",
29
- "analyze": "size-limit --why",
30
- "build-storybook": "build-storybook"
28
+ "analyze": "size-limit --why"
31
29
  },
32
30
  "size-limit": [
33
31
  {
@@ -49,20 +47,10 @@
49
47
  },
50
48
  "devDependencies": {
51
49
  "@babel/core": "^7.19.6",
52
- "@faststore/eslint-config": "^2.0.33-alpha.0",
53
- "@faststore/shared": "^2.0.33-alpha.0",
54
- "@faststore/styles": "^2.0.33-alpha.0",
50
+ "@faststore/eslint-config": "^2.0.34-alpha.0",
51
+ "@faststore/shared": "^2.0.34-alpha.0",
52
+ "@faststore/styles": "^2.0.34-alpha.0",
55
53
  "@size-limit/preset-small-lib": "^7.0.8",
56
- "@storybook/addon-a11y": "^6.5.13",
57
- "@storybook/addon-actions": "^6.5.13",
58
- "@storybook/addon-essentials": "^6.5.13",
59
- "@storybook/addon-interactions": "^6.5.13",
60
- "@storybook/addon-links": "^6.5.13",
61
- "@storybook/builder-webpack5": "^6.5.13",
62
- "@storybook/manager-webpack5": "^6.5.13",
63
- "@storybook/preset-scss": "^1.0.3",
64
- "@storybook/react": "^6.5.13",
65
- "@storybook/testing-library": "^0.0.13",
66
54
  "@types/tabbable": "^3.1.1",
67
55
  "babel-loader": "^8.2.5",
68
56
  "css-loader": "^6.7.1",
@@ -72,7 +60,6 @@
72
60
  "sass": "^1.55.0",
73
61
  "sass-loader": "^13.1.0",
74
62
  "size-limit": "^7.0.8",
75
- "storybook-addon-themes": "^6.1.0",
76
63
  "style-loader": "^3.3.1",
77
64
  "typescript": "^4.2.4"
78
65
  },
@@ -80,5 +67,5 @@
80
67
  "node": "16.18.0",
81
68
  "yarn": "1.19.1"
82
69
  },
83
- "gitHead": "64b82f07ceaa1f7b1f374cd0588dbc82e39d1fc6"
70
+ "gitHead": "4386f1c780f536219f7b170f956055af35522564"
84
71
  }
@@ -1,6 +1,9 @@
1
- import React, { useContext, forwardRef, createContext } from 'react'
2
- import type { ElementType, FC, HTMLAttributes, ReactElement } from 'react'
3
- import type { PolymorphicComponentPropsWithRef, PolymorphicRef } from '../../../typings'
1
+ import type { ElementType, HTMLAttributes, ReactElement } from 'react'
2
+ import React, { createContext, forwardRef, useContext } from 'react'
3
+ import type {
4
+ PolymorphicComponentPropsWithRef,
5
+ PolymorphicRef,
6
+ } from '../../../typings'
4
7
 
5
8
  interface AccordionItemContext {
6
9
  index: number
@@ -30,45 +33,49 @@ interface Props extends HTMLAttributes<HTMLDivElement> {
30
33
  prefixId?: string
31
34
  }
32
35
 
33
- export type AccordionItemProps<C extends ElementType> = PolymorphicComponentPropsWithRef<
34
- C,
35
- Props
36
- >
36
+ export type AccordionItemProps<
37
+ C extends ElementType
38
+ > = PolymorphicComponentPropsWithRef<C, Props>
37
39
 
38
40
  type AccordionItemComponent = <C extends ElementType = 'div'>(
39
41
  props: AccordionItemProps<C>
40
42
  ) => ReactElement | null
41
43
 
42
- const AccordionItem: AccordionItemComponent = forwardRef(
43
- function AccordionItem<C extends ElementType = 'div'>(
44
- {
45
- testId = 'store-accordion-item',
46
- children,
47
- prefixId = '',
48
- index = 0,
49
- as: MaybeComponent,
50
- ...otherProps
51
- }: AccordionItemProps<C>,
52
- ref: PolymorphicRef<C>
53
- ) {
54
- const Component = MaybeComponent ?? 'div'
44
+ const AccordionItem: AccordionItemComponent = forwardRef(function AccordionItem<
45
+ C extends ElementType = 'div'
46
+ >(
47
+ {
48
+ testId = 'store-accordion-item',
49
+ children,
50
+ prefixId = '',
51
+ index = 0,
52
+ as: MaybeComponent,
53
+ ...otherProps
54
+ }: AccordionItemProps<C>,
55
+ ref: PolymorphicRef<C>
56
+ ) {
57
+ const Component = MaybeComponent ?? 'div'
55
58
 
56
- const context = {
57
- index,
58
- prefixId,
59
- panel: `${prefixId && `${prefixId}-`}panel--${index}`,
60
- button: `${prefixId && `${prefixId}-`}button--${index}`,
61
- }
62
-
63
- return (
64
- <AccordionItemContext.Provider value={context}>
65
- <Component ref={ref} data-accordion-item data-testid={testId} {...otherProps}>
66
- {children}
67
- </Component>
68
- </AccordionItemContext.Provider>
69
- )
59
+ const context = {
60
+ index,
61
+ prefixId,
62
+ panel: `${prefixId && `${prefixId}-`}panel--${index}`,
63
+ button: `${prefixId && `${prefixId}-`}button--${index}`,
70
64
  }
71
- )
65
+
66
+ return (
67
+ <AccordionItemContext.Provider value={context}>
68
+ <Component
69
+ ref={ref}
70
+ data-accordion-item
71
+ data-testid={testId}
72
+ {...otherProps}
73
+ >
74
+ {children}
75
+ </Component>
76
+ </AccordionItemContext.Provider>
77
+ )
78
+ })
72
79
 
73
80
  export function useAccordionItem() {
74
81
  const context = useContext(AccordionItemContext)
@@ -82,11 +89,4 @@ export function useAccordionItem() {
82
89
  return context
83
90
  }
84
91
 
85
- /**
86
- * This is only being exported to make it easier to use in Storybook.
87
- * **DON'T** import this directly to use this component, use the default export
88
- * instead.
89
- */
90
- export const StorybookAccordionItem = AccordionItem as FC<Props>
91
-
92
92
  export default AccordionItem
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function SafetyIcon(): JSX.Element;
@@ -1,6 +0,0 @@
1
- import React from 'react';
2
- export function SafetyIcon() {
3
- return (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "35", height: "35", fill: "none" },
4
- React.createElement("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M6 7h20v7c0 10-8 14-10 14S6 24 6 14V7Zm0-2a2 2 0 0 0-2 2v7c0 11 10 15 11 16h2c1-1 11-5 11-16V7a2 2 0 0 0-2-2H6Zm16 9a1 1 0 0 0-1-2l-7 7-3-3a1 1 0 0 0-1 1l4 4h1l7-7Z", fill: "#323845" })));
5
- }
6
- //# sourceMappingURL=Icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icons.js","sourceRoot":"","sources":["../../../../../../src/components/atoms/Incentive/stories/assets/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,6BAAK,KAAK,EAAC,4BAA4B,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,MAAM;QACxE,8BACE,QAAQ,EAAC,SAAS,EAClB,QAAQ,EAAC,SAAS,EAClB,CAAC,EAAC,sKAAsK,EACxK,IAAI,EAAC,SAAS,GACd,CACE,CACP,CAAA;AACH,CAAC"}
@@ -1,2 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const Caret: () => JSX.Element;
@@ -1,4 +0,0 @@
1
- import React from 'react';
2
- export const Caret = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "24", height: "24", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round", className: "feather feather-chevron-down", style: { display: 'inline' } },
3
- React.createElement("polyline", { points: "6 9 12 15 18 9" })));
4
- //# sourceMappingURL=Caret.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Caret.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/Dropdown/stories/assets/Caret.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,EAAE,CAAC,CACzB,6BACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,SAAS,EAAC,8BAA8B,EACxC,KAAK,EAAE,EAAE,OAAO,EAAE,QAAQ,EAAE;IAE5B,kCAAU,MAAM,EAAC,gBAAgB,GAAG,CAChC,CACP,CAAA"}
@@ -1,9 +0,0 @@
1
- /// <reference types="react" />
2
- export declare function VisaCard(): JSX.Element;
3
- export declare function MasterCard(): JSX.Element;
4
- export declare function AmericanExpressCard(): JSX.Element;
5
- export declare function MaestroCard(): JSX.Element;
6
- export declare function EloCard(): JSX.Element;
7
- export declare function HiperCard(): JSX.Element;
8
- export declare function PayPal(): JSX.Element;
9
- export declare function DinersClub(): JSX.Element;
@@ -1,26 +0,0 @@
1
- import React from 'react';
2
- export function VisaCard() {
3
- return (React.createElement("img", { alt: "Visa logo", width: 50, height: 50, src: "https://seeklogo.com/images/V/visa-logo-BDDD51C62D-seeklogo.com.png" }));
4
- }
5
- export function MasterCard() {
6
- return (React.createElement("img", { alt: "Mastercard logo", width: 50, height: 50, src: "https://upload.wikimedia.org/wikipedia/commons/thumb/2/2a/Mastercard-logo.svg/1544px-Mastercard-logo.svg.png" }));
7
- }
8
- export function AmericanExpressCard() {
9
- return (React.createElement("img", { alt: "American express logo", width: 50, height: 50, src: "https://seeklogo.com/images/A/american-express-logo-EDF87C04A0-seeklogo.com.png" }));
10
- }
11
- export function MaestroCard() {
12
- return (React.createElement("img", { alt: "American express logo", width: 50, height: 50, src: "https://seeklogo.com/images/M/Maestro-logo-BF4E5E7686-seeklogo.com.png" }));
13
- }
14
- export function EloCard() {
15
- return (React.createElement("img", { alt: "Elo logo", width: 50, height: 50, src: "https://seeklogo.com/images/E/elo-logo-9F0CF48D54-seeklogo.com.png" }));
16
- }
17
- export function HiperCard() {
18
- return (React.createElement("img", { alt: "Hipercard logo", width: 50, height: 50, src: "https://seeklogo.com/images/H/Hipercard-logo-139D91D263-seeklogo.com.png" }));
19
- }
20
- export function PayPal() {
21
- return (React.createElement("img", { alt: "PayPal brand", width: 50, height: 50, src: "https://seeklogo.com/images/P/paypal-logo-484B6FE744-seeklogo.com.png" }));
22
- }
23
- export function DinersClub() {
24
- return (React.createElement("img", { alt: "Diners club logo", width: 50, height: 50, src: "https://seeklogo.com/images/D/Diners_Club_International-logo-EF50D35BE8-seeklogo.com.png" }));
25
- }
26
- //# sourceMappingURL=Icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icons.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/PaymentMethods/stories/assets/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,MAAM,UAAU,QAAQ;IACtB,OAAO,CACL,6BACE,GAAG,EAAC,WAAW,EACf,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,qEAAqE,GACzE,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,6BACE,GAAG,EAAC,iBAAiB,EACrB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,8GAA8G,GAClH,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,mBAAmB;IACjC,OAAO,CACL,6BACE,GAAG,EAAC,uBAAuB,EAC3B,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,iFAAiF,GACrF,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,WAAW;IACzB,OAAO,CACL,6BACE,GAAG,EAAC,uBAAuB,EAC3B,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,wEAAwE,GAC5E,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,OAAO;IACrB,OAAO,CACL,6BACE,GAAG,EAAC,UAAU,EACd,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,oEAAoE,GACxE,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,CACL,6BACE,GAAG,EAAC,gBAAgB,EACpB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,0EAA0E,GAC9E,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,MAAM;IACpB,OAAO,CACL,6BACE,GAAG,EAAC,cAAc,EAClB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,uEAAuE,GAC3E,CACH,CAAA;AACH,CAAC;AAED,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,6BACE,GAAG,EAAC,kBAAkB,EACtB,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,GAAG,EAAC,0FAA0F,GAC9F,CACH,CAAA;AACH,CAAC"}
@@ -1,7 +0,0 @@
1
- /// <reference types="react" />
2
- type QuantitySelectorIconProps = {
3
- color: string;
4
- };
5
- export declare function PlusIcon(props: QuantitySelectorIconProps): JSX.Element;
6
- export declare function MinusIcon(props: QuantitySelectorIconProps): JSX.Element;
7
- export {};
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- export function PlusIcon(props) {
3
- return (React.createElement("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
4
- React.createElement("path", { d: "M11 16H21", stroke: props.color, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" }),
5
- React.createElement("path", { d: "M16 11V21", stroke: props.color, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })));
6
- }
7
- export function MinusIcon(props) {
8
- return (React.createElement("svg", { width: "32", height: "32", viewBox: "0 0 32 32", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
9
- React.createElement("path", { d: "M11 16H21", stroke: props.color, strokeWidth: "1.5", strokeLinecap: "round", strokeLinejoin: "round" })));
10
- }
11
- //# sourceMappingURL=Icons.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Icons.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/QuantitySelector/stories/assets/Icons.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAMzB,MAAM,UAAU,QAAQ,CAAC,KAAgC;IACvD,OAAO,CACL,6BACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;QAElC,8BACE,CAAC,EAAC,WAAW,EACb,MAAM,EAAE,KAAK,CAAC,KAAK,EACnB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB;QACF,8BACE,CAAC,EAAC,WAAW,EACb,MAAM,EAAE,KAAK,CAAC,KAAK,EACnB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,CACE,CACP,CAAA;AACH,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,KAAgC;IACxD,OAAO,CACL,6BACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,KAAK,EAAC,4BAA4B;QAElC,8BACE,CAAC,EAAC,WAAW,EACb,MAAM,EAAE,KAAK,CAAC,KAAK,EACnB,WAAW,EAAC,KAAK,EACjB,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,CACE,CACP,CAAA;AACH,CAAC"}
@@ -1,3 +0,0 @@
1
- import type { FC } from 'react';
2
- declare const CustomIcon: FC;
3
- export default CustomIcon;
@@ -1,7 +0,0 @@
1
- import React from 'react';
2
- const CustomIcon = () => (React.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: "1em", height: "1em", viewBox: "0 0 24 24", fill: "none", stroke: "currentColor", strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" },
3
- React.createElement("circle", { cx: "12", cy: "12", r: "10" }),
4
- React.createElement("line", { x1: "15", y1: "9", x2: "9", y2: "15" }),
5
- React.createElement("line", { x1: "9", y1: "9", x2: "15", y2: "15" })));
6
- export default CustomIcon;
7
- //# sourceMappingURL=CustomIcon.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CustomIcon.js","sourceRoot":"","sources":["../../../../../../src/components/molecules/SearchInput/stories/assets/CustomIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,UAAU,GAAO,GAAG,EAAE,CAAC,CAC3B,6BACE,KAAK,EAAC,4BAA4B,EAClC,KAAK,EAAC,KAAK,EACX,MAAM,EAAC,KAAK,EACZ,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,MAAM,EAAC,cAAc,EACrB,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO;IAEtB,gCAAQ,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,EAAC,CAAC,EAAC,IAAI,GAAG;IACjC,8BAAM,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,GAAG;IACtC,8BAAM,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,GAAG,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,IAAI,GAAG,CAClC,CACP,CAAA;AAED,eAAe,UAAU,CAAA"}
@@ -1,156 +0,0 @@
1
- import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs'
2
-
3
- import { Badge } from '@faststore/components'
4
-
5
- <Meta
6
- title="Atoms/Badge/Default"
7
- component={Badge}
8
- argTypes={{
9
- children: {
10
- name: 'content',
11
- },
12
- variant: {
13
- options: [
14
- 'info',
15
- 'highlighted',
16
- 'success',
17
- 'neutral',
18
- 'warning',
19
- 'danger',
20
- '',
21
- ],
22
- control: { type: 'select' },
23
- },
24
- size: {
25
- options: ['small', 'big'],
26
- control: { type: 'radio' },
27
- },
28
- counter: {
29
- options: ['true', 'false'],
30
- control: { type: 'radio' },
31
- },
32
- }}
33
- />
34
-
35
- export const Template = ({ children, ...args }) => (
36
- <Badge {...args}>{children}</Badge>
37
- )
38
-
39
- <header>
40
-
41
- # Badge
42
-
43
- Badges are status descriptors used to emphasize an item's state.
44
-
45
- </header>
46
-
47
- ## Overview
48
-
49
- <Canvas>
50
- <Story
51
- name="overview-neutral"
52
- args={{
53
- children: 'Neutral',
54
- size: 'small',
55
- variant: 'neutral',
56
- }}
57
- >
58
- {Template.bind({})}
59
- </Story>
60
- <Story
61
- name="overview-info"
62
- args={{
63
- children: 'Info',
64
- size: 'small',
65
- variant: 'info',
66
- }}
67
- >
68
- {Template.bind({})}
69
- </Story>
70
- <Story
71
- name="overview-highlighted"
72
- args={{
73
- children: 'Highlighted',
74
- size: 'small',
75
- variant: 'highlighted',
76
- }}
77
- >
78
- {Template.bind({})}
79
- </Story>
80
- <Story
81
- name="overview-success"
82
- args={{
83
- children: 'Success',
84
- size: 'small',
85
- variant: 'success',
86
- }}
87
- >
88
- {Template.bind({})}
89
- </Story>
90
- <Story
91
- name="overview-warning"
92
- args={{
93
- children: 'Warning',
94
- size: 'small',
95
- variant: 'warning',
96
- }}
97
- >
98
- {Template.bind({})}
99
- </Story>
100
- <Story
101
- name="overview-danger"
102
- args={{
103
- children: 'Danger',
104
- size: 'small',
105
- variant: 'danger',
106
- }}
107
- >
108
- {Template.bind({})}
109
- </Story>
110
- <Story
111
- name="overview-big"
112
- args={{
113
- children: 'Big',
114
- size: 'big',
115
- variant: 'success',
116
- }}
117
- >
118
- {Template.bind({})}
119
- </Story>
120
- <Story
121
- name="overview-counter"
122
- args={{
123
- children: '3',
124
- size: 'false',
125
- counter: 'true',
126
- }}
127
- >
128
- {Template.bind({})}
129
- </Story>
130
- </Canvas>
131
-
132
- ---
133
-
134
- ## Usage
135
-
136
- ```jsx
137
- import Badge from '@faststore/ui'
138
-
139
- // Styles
140
- import @faststore/ui/src/components/atoms/Badge/styles.scss
141
- ```
142
-
143
- <Canvas>
144
- <Story
145
- name="default"
146
- args={{
147
- children: 'New arrival',
148
- size: 'small',
149
- variant: 'info',
150
- }}
151
- >
152
- {Template.bind({})}
153
- </Story>
154
- </Canvas>
155
-
156
- <ArgsTable story="default" />
@@ -1,24 +0,0 @@
1
- import { Canvas, Props, Story, ArgsTable } from '@storybook/addon-docs'
2
-
3
- import Incentive from '../Incentive'
4
-
5
- # Incentive
6
-
7
- <Canvas>
8
- <Story id="atoms-incentive--incentive" />
9
- </Canvas>
10
-
11
- ## Props
12
-
13
- `Incentive` component support all attributes also supported by the `<div>` tag.
14
-
15
- Besides those attributes, the following props are also supported:
16
-
17
- <ArgsTable of={Incentive} />
18
-
19
- ## CSS Selectors
20
-
21
- ```css
22
- [data-fs-incentive] {
23
- }
24
- ```
@@ -1,26 +0,0 @@
1
- import type { Story, Meta } from '@storybook/react'
2
- import React from 'react'
3
-
4
- import { SafetyIcon } from './assets/Icons'
5
- import type { IncentiveProps } from '../Incentive'
6
- import Component from '../Incentive'
7
- import mdx from './Incentive.mdx'
8
-
9
- const IncentiveTemplate: Story<IncentiveProps> = ({ testId }) => (
10
- <Component testId={testId}>
11
- <SafetyIcon />
12
- <span>Trusted by SafeCompany</span>
13
- </Component>
14
- )
15
-
16
- export const Incentive = IncentiveTemplate.bind({})
17
- Incentive.storyName = 'Incentive'
18
-
19
- export default {
20
- title: 'Atoms/Incentive',
21
- parameters: {
22
- docs: {
23
- page: mdx,
24
- },
25
- },
26
- } as Meta
@@ -1,14 +0,0 @@
1
- import React from 'react'
2
-
3
- export function SafetyIcon() {
4
- return (
5
- <svg xmlns="http://www.w3.org/2000/svg" width="35" height="35" fill="none">
6
- <path
7
- fillRule="evenodd"
8
- clipRule="evenodd"
9
- d="M6 7h20v7c0 10-8 14-10 14S6 24 6 14V7Zm0-2a2 2 0 0 0-2 2v7c0 11 10 15 11 16h2c1-1 11-5 11-16V7a2 2 0 0 0-2-2H6Zm16 9a1 1 0 0 0-1-2l-7 7-3-3a1 1 0 0 0-1 1l4 4h1l7-7Z"
10
- fill="#323845"
11
- />
12
- </svg>
13
- )
14
- }
@@ -1,34 +0,0 @@
1
- import { Meta, Canvas, Story, ArgsTable } from '@storybook/addon-docs'
2
-
3
- import { Input } from '@faststore/components'
4
-
5
- <Meta title="Atoms/Input" component={Input} argTypes={{}} />
6
-
7
- export const Template = ({ args }) => <Input {...args} />
8
-
9
- <header>
10
-
11
- # Input
12
-
13
- Inputs are text fields used to get user inputs. // Update this!!!!!
14
-
15
- </header>
16
-
17
- ## Overview
18
-
19
- <Canvas>
20
- <Story name="default">{Template.bind({})}</Story>
21
- </Canvas>
22
-
23
- ---
24
-
25
- ## Usage
26
-
27
- ```jsx
28
- import { Input } from '@faststore/ui'
29
-
30
- // Styles
31
- import @faststore/ui/src/components/atoms/Input/styles.scss
32
- ```
33
-
34
- <ArgsTable story="default" />