@bosonprotocol/react-kit 0.34.0-alpha.28 → 0.34.0-alpha.29

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 (66) hide show
  1. package/dist/cjs/components/buttons/BaseButton.d.ts +0 -2
  2. package/dist/cjs/components/buttons/BaseButton.d.ts.map +1 -1
  3. package/dist/cjs/components/buttons/BaseButton.js +2 -19
  4. package/dist/cjs/components/buttons/BaseButton.js.map +1 -1
  5. package/dist/cjs/components/buttons/Button.d.ts +1 -1
  6. package/dist/cjs/components/cta/common/CtaButton.d.ts.map +1 -1
  7. package/dist/cjs/components/cta/common/CtaButton.js +1 -1
  8. package/dist/cjs/components/cta/common/CtaButton.js.map +1 -1
  9. package/dist/cjs/components/cta/common/styles.d.ts.map +1 -1
  10. package/dist/cjs/components/cta/common/styles.js +10 -8
  11. package/dist/cjs/components/cta/common/styles.js.map +1 -1
  12. package/dist/cjs/components/form/BaseCheckbox.d.ts +1 -1
  13. package/dist/cjs/components/form/BaseCheckbox.d.ts.map +1 -1
  14. package/dist/cjs/components/form/BaseCheckbox.js +8 -4
  15. package/dist/cjs/components/form/BaseCheckbox.js.map +1 -1
  16. package/dist/cjs/components/form/Field.styles.d.ts +22 -22
  17. package/dist/cjs/components/form/Field.styles.js +1 -1
  18. package/dist/cjs/components/form/Field.styles.js.map +1 -1
  19. package/dist/cjs/components/form/types.d.ts +5 -2
  20. package/dist/cjs/components/form/types.d.ts.map +1 -1
  21. package/dist/cjs/components/modal/components/SellerFinance/FinancesStyles.d.ts +22 -22
  22. package/dist/cjs/components/modal/components/common/detail/Detail.style.d.ts +51 -51
  23. package/dist/cjs/components/productCard/ProductCard.styles.d.ts +33 -33
  24. package/dist/cjs/components/ui/ThemedButton.d.ts +1 -1
  25. package/dist/cjs/components/ui/column/index.d.ts +1 -1
  26. package/dist/cjs/components/ui/styles.d.ts +1 -1
  27. package/dist/cjs/components/ui/styles.d.ts.map +1 -1
  28. package/dist/cjs/components/ui/styles.js +18 -27
  29. package/dist/cjs/components/ui/styles.js.map +1 -1
  30. package/dist/esm/components/buttons/BaseButton.d.ts +0 -2
  31. package/dist/esm/components/buttons/BaseButton.d.ts.map +1 -1
  32. package/dist/esm/components/buttons/BaseButton.js +2 -19
  33. package/dist/esm/components/buttons/BaseButton.js.map +1 -1
  34. package/dist/esm/components/buttons/Button.d.ts +1 -1
  35. package/dist/esm/components/cta/common/CtaButton.d.ts.map +1 -1
  36. package/dist/esm/components/cta/common/CtaButton.js +1 -1
  37. package/dist/esm/components/cta/common/CtaButton.js.map +1 -1
  38. package/dist/esm/components/cta/common/styles.d.ts.map +1 -1
  39. package/dist/esm/components/cta/common/styles.js +10 -8
  40. package/dist/esm/components/cta/common/styles.js.map +1 -1
  41. package/dist/esm/components/form/BaseCheckbox.d.ts +1 -1
  42. package/dist/esm/components/form/BaseCheckbox.d.ts.map +1 -1
  43. package/dist/esm/components/form/BaseCheckbox.js +7 -4
  44. package/dist/esm/components/form/BaseCheckbox.js.map +1 -1
  45. package/dist/esm/components/form/Field.styles.d.ts +22 -22
  46. package/dist/esm/components/form/Field.styles.js +1 -1
  47. package/dist/esm/components/form/Field.styles.js.map +1 -1
  48. package/dist/esm/components/form/types.d.ts +5 -2
  49. package/dist/esm/components/form/types.d.ts.map +1 -1
  50. package/dist/esm/components/modal/components/SellerFinance/FinancesStyles.d.ts +22 -22
  51. package/dist/esm/components/modal/components/common/detail/Detail.style.d.ts +51 -51
  52. package/dist/esm/components/productCard/ProductCard.styles.d.ts +33 -33
  53. package/dist/esm/components/ui/ThemedButton.d.ts +1 -1
  54. package/dist/esm/components/ui/column/index.d.ts +1 -1
  55. package/dist/esm/components/ui/styles.d.ts +1 -1
  56. package/dist/esm/components/ui/styles.d.ts.map +1 -1
  57. package/dist/esm/components/ui/styles.js +17 -26
  58. package/dist/esm/components/ui/styles.js.map +1 -1
  59. package/package.json +5 -5
  60. package/src/components/buttons/BaseButton.tsx +1 -27
  61. package/src/components/cta/common/CtaButton.tsx +1 -1
  62. package/src/components/cta/common/styles.ts +10 -8
  63. package/src/components/form/BaseCheckbox.tsx +13 -2
  64. package/src/components/form/Field.styles.ts +1 -1
  65. package/src/components/form/types.ts +12 -4
  66. package/src/components/ui/styles.ts +18 -27
@@ -13,26 +13,26 @@ export declare const ProductCardTitle: import("styled-components").IStyledCompon
13
13
  fontWeight?: import("csstype").Property.FontWeight | undefined;
14
14
  letterSpacing?: import("csstype").Property.LetterSpacing<number | (string & {})> | undefined;
15
15
  opacity?: import("csstype").Property.Opacity | undefined;
16
+ flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
17
+ padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
18
+ background?: import("csstype").Property.Background<number | (string & {})> | undefined;
19
+ gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
16
20
  alignItems?: import("csstype").Property.AlignItems | undefined;
21
+ columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
17
22
  flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
18
23
  flexDirection?: import("csstype").Property.FlexDirection | undefined;
19
24
  flexGrow?: import("csstype").Property.FlexGrow | undefined;
20
25
  flexShrink?: import("csstype").Property.FlexShrink | undefined;
21
- justifyContent?: import("csstype").Property.JustifyContent | undefined;
22
26
  flexWrap?: import("csstype").Property.FlexWrap | undefined;
23
- rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
24
- columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
25
- gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
26
- flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
27
- padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
28
- margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
29
- marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
30
- marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
27
+ justifyContent?: import("csstype").Property.JustifyContent | undefined;
28
+ lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
31
29
  marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
32
30
  marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
33
- lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
34
- background?: import("csstype").Property.Background<number | (string & {})> | undefined;
31
+ marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
32
+ marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
33
+ rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
35
34
  textAlign?: import("csstype").Property.TextAlign | undefined;
35
+ margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
36
36
  } & import("react").HTMLAttributes<unknown> & {
37
37
  children?: import("react").ReactNode;
38
38
  tag?: keyof JSX.IntrinsicElements | undefined;
@@ -48,26 +48,26 @@ export declare const ProductCardTitle: import("styled-components").IStyledCompon
48
48
  fontWeight?: import("csstype").Property.FontWeight | undefined;
49
49
  letterSpacing?: import("csstype").Property.LetterSpacing<number | (string & {})> | undefined;
50
50
  opacity?: import("csstype").Property.Opacity | undefined;
51
+ flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
52
+ padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
53
+ background?: import("csstype").Property.Background<number | (string & {})> | undefined;
54
+ gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
51
55
  alignItems?: import("csstype").Property.AlignItems | undefined;
56
+ columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
52
57
  flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
53
58
  flexDirection?: import("csstype").Property.FlexDirection | undefined;
54
59
  flexGrow?: import("csstype").Property.FlexGrow | undefined;
55
60
  flexShrink?: import("csstype").Property.FlexShrink | undefined;
56
- justifyContent?: import("csstype").Property.JustifyContent | undefined;
57
61
  flexWrap?: import("csstype").Property.FlexWrap | undefined;
58
- rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
59
- columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
60
- gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
61
- flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
62
- padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
63
- margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
64
- marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
65
- marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
62
+ justifyContent?: import("csstype").Property.JustifyContent | undefined;
63
+ lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
66
64
  marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
67
65
  marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
68
- lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
69
- background?: import("csstype").Property.Background<number | (string & {})> | undefined;
66
+ marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
67
+ marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
68
+ rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
70
69
  textAlign?: import("csstype").Property.TextAlign | undefined;
70
+ margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
71
71
  } & import("react").HTMLAttributes<unknown> & {
72
72
  children?: import("react").ReactNode;
73
73
  tag?: keyof JSX.IntrinsicElements | undefined;
@@ -83,26 +83,26 @@ export declare const ProductCardTitle: import("styled-components").IStyledCompon
83
83
  fontWeight?: import("csstype").Property.FontWeight | undefined;
84
84
  letterSpacing?: import("csstype").Property.LetterSpacing<number | (string & {})> | undefined;
85
85
  opacity?: import("csstype").Property.Opacity | undefined;
86
+ flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
87
+ padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
88
+ background?: import("csstype").Property.Background<number | (string & {})> | undefined;
89
+ gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
86
90
  alignItems?: import("csstype").Property.AlignItems | undefined;
91
+ columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
87
92
  flexBasis?: import("csstype").Property.FlexBasis<number | (string & {})> | undefined;
88
93
  flexDirection?: import("csstype").Property.FlexDirection | undefined;
89
94
  flexGrow?: import("csstype").Property.FlexGrow | undefined;
90
95
  flexShrink?: import("csstype").Property.FlexShrink | undefined;
91
- justifyContent?: import("csstype").Property.JustifyContent | undefined;
92
96
  flexWrap?: import("csstype").Property.FlexWrap | undefined;
93
- rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
94
- columnGap?: import("csstype").Property.ColumnGap<number | (string & {})> | undefined;
95
- gap?: import("csstype").Property.Gap<number | (string & {})> | undefined;
96
- flex?: import("csstype").Property.Flex<number | (string & {})> | undefined;
97
- padding?: import("csstype").Property.Padding<number | (string & {})> | undefined;
98
- margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
99
- marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
100
- marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
97
+ justifyContent?: import("csstype").Property.JustifyContent | undefined;
98
+ lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
101
99
  marginBottom?: import("csstype").Property.MarginBottom<number | (string & {})> | undefined;
102
100
  marginLeft?: import("csstype").Property.MarginLeft<number | (string & {})> | undefined;
103
- lineHeight?: import("csstype").Property.LineHeight<number | (string & {})> | undefined;
104
- background?: import("csstype").Property.Background<number | (string & {})> | undefined;
101
+ marginRight?: import("csstype").Property.MarginRight<number | (string & {})> | undefined;
102
+ marginTop?: import("csstype").Property.MarginTop<number | (string & {})> | undefined;
103
+ rowGap?: import("csstype").Property.RowGap<number | (string & {})> | undefined;
105
104
  textAlign?: import("csstype").Property.TextAlign | undefined;
105
+ margin?: import("csstype").Property.Margin<number | (string & {})> | undefined;
106
106
  } & import("react").HTMLAttributes<unknown> & {
107
107
  children?: import("react").ReactNode;
108
108
  tag?: keyof JSX.IntrinsicElements | undefined;
@@ -219,7 +219,7 @@ declare const ThemedButton: React.ForwardRefExoticComponent<React.ButtonHTMLAttr
219
219
  children?: string | React.ReactNode;
220
220
  onClick?: React.MouseEventHandler<HTMLButtonElement> | undefined;
221
221
  size?: "regular" | "small" | "large" | ButtonSize | undefined;
222
- themeVal?: "warning" | "outline" | "black" | "orange" | "white" | "primary" | "bosonPrimary" | "secondary" | "bosonSecondary" | "secondaryInverted" | "accentInvertedNoBorder" | "accentInverted" | "orangeInverse" | "bosonSecondaryInverse" | "ghostSecondary" | "blank" | "blankSecondary" | "blankSecondaryOutline" | "blankOutline" | "escalate" | "accentFill" | undefined;
222
+ themeVal?: "warning" | "black" | "orange" | "white" | "primary" | "bosonPrimary" | "secondary" | "bosonSecondary" | "secondaryInverted" | "accentInvertedNoBorder" | "accentInverted" | "orangeInverse" | "bosonSecondaryInverse" | "outline" | "ghostSecondary" | "blank" | "blankSecondary" | "blankSecondaryOutline" | "blankOutline" | "escalate" | "accentFill" | undefined;
223
223
  type?: "button" | "submit" | "reset" | undefined;
224
224
  fill?: boolean | undefined;
225
225
  step?: number | undefined;
@@ -11,7 +11,7 @@ export declare const ColumnCenter: import("styled-components").IStyledComponent<
11
11
  }>>, keyof import("react").Component<any, {}, any>>;
12
12
  export declare const AutoColumn: import("styled-components").IStyledComponent<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {
13
13
  $gap?: string | undefined;
14
- $justify?: "start" | "end" | "center" | "flex-end" | "flex-start" | "stretch" | "space-between" | undefined;
14
+ $justify?: "start" | "end" | "space-between" | "stretch" | "center" | "flex-end" | "flex-start" | undefined;
15
15
  $grow?: true | undefined;
16
16
  }>>;
17
17
  //# sourceMappingURL=index.d.ts.map
@@ -1,9 +1,9 @@
1
1
  export declare const transition: import("styled-components").RuleSet<object>;
2
+ export declare const buttonText: import("styled-components").RuleSet<object>;
2
3
  export declare const button: import("styled-components").RuleSet<object>;
3
4
  export declare const clamp: import("styled-components").RuleSet<object>;
4
5
  export declare const boxShadow: import("styled-components").RuleSet<object>;
5
6
  export declare const text: import("styled-components").RuleSet<object>;
6
- export declare const buttonText: import("styled-components").RuleSet<object>;
7
7
  export declare const small: import("styled-components").RuleSet<object>;
8
8
  export declare const regular: import("styled-components").RuleSet<object>;
9
9
  export declare const large: import("styled-components").RuleSet<object>;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,6CAEtB,CAAC;AAEF,eAAO,MAAM,MAAM,6CAkBlB,CAAC;AACF,eAAO,MAAM,KAAK,6CAOjB,CAAC;AACF,eAAO,MAAM,SAAS,6CAMrB,CAAC;AAEF,eAAO,MAAM,IAAI,6CAKhB,CAAC;AAEF,eAAO,MAAM,UAAU,6CAMtB,CAAC;AAEF,eAAO,MAAM,KAAK,6CASjB,CAAC;AACF,eAAO,MAAM,OAAO,6CAcnB,CAAC;AACF,eAAO,MAAM,KAAK,6CAcjB,CAAC"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/components/ui/styles.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,UAAU,6CAEtB,CAAC;AAEF,eAAO,MAAM,UAAU,6CAMtB,CAAC;AAEF,eAAO,MAAM,MAAM,6CAkBlB,CAAC;AACF,eAAO,MAAM,KAAK,6CAOjB,CAAC;AACF,eAAO,MAAM,SAAS,6CAMrB,CAAC;AAEF,eAAO,MAAM,IAAI,6CAKhB,CAAC;AAEF,eAAO,MAAM,KAAK,6CAMjB,CAAC;AACF,eAAO,MAAM,OAAO,6CAWnB,CAAC;AACF,eAAO,MAAM,KAAK,6CAWjB,CAAC"}
@@ -3,6 +3,13 @@ import { breakpoint } from "../../lib/ui/breakpoint";
3
3
  export const transition = css `
4
4
  transition: all 150ms ease-in-out;
5
5
  `;
6
+ export const buttonText = css `
7
+ letter-spacing: 0.5px;
8
+ font-style: normal;
9
+ font-size: 1rem;
10
+ font-weight: 500;
11
+ line-height: 24px;
12
+ `;
6
13
  export const button = css `
7
14
  box-sizing: border-box;
8
15
  cursor: pointer;
@@ -16,7 +23,7 @@ export const button = css `
16
23
  position: relative;
17
24
  overflow: hidden;
18
25
  box-shadow: 0px 0px 0px #000000;
19
-
26
+ ${buttonText}
20
27
  ${transition}
21
28
  svg {
22
29
  ${transition}
@@ -43,51 +50,35 @@ export const text = css `
43
50
  font-size: 0.875rem;
44
51
  line-height: 24px;
45
52
  `;
46
- export const buttonText = css `
47
- letter-spacing: 0.5px;
48
- font-style: normal;
49
- font-size: 1rem;
50
- font-weight: 500;
51
- line-height: 24px;
52
- `;
53
53
  export const small = css `
54
54
  min-height: 2.125rem;
55
55
  padding: 0.5rem 1rem;
56
- > * {
57
- font-size: 0.75rem !important;
58
- }
59
- #buttonText {
56
+ * {
60
57
  font-size: 0.75rem;
61
58
  }
62
59
  `;
63
60
  export const regular = css `
64
61
  min-height: 2.813rem;
65
62
  padding: 0.75rem 1.5rem;
66
- > * {
67
- font-size: 1rem !important;
63
+ * {
64
+ font-size: 1rem;
68
65
  }
69
66
  ${breakpoint.xxs} {
70
- > * {
71
- font-size: 0.875rem !important;
67
+ * {
68
+ font-size: 0.875rem;
72
69
  }
73
70
  }
74
- #buttonText {
75
- font-size: 0.875rem;
76
- }
77
71
  `;
78
72
  export const large = css `
79
73
  min-height: 3.5rem;
80
74
  padding: 1rem 2rem;
81
- > * {
82
- font-size: 1.125rem !important;
75
+ * {
76
+ font-size: 1.125rem;
83
77
  }
84
78
  ${breakpoint.xxs} {
85
- > * {
86
- font-size: 1rem !important;
79
+ * {
80
+ font-size: 1rem;
87
81
  }
88
82
  }
89
- #buttonText {
90
- font-size: 1rem;
91
- }
92
83
  `;
93
84
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/ui/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;CAE5B,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;IAcrB,UAAU;;MAER,UAAU;;CAEf,CAAC;AACF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;;CAOvB,CAAC;AACF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;CAM3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAA;;;;;CAKtB,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;CAM5B,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;;;;CASvB,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAA;;;;;;IAMtB,UAAU,CAAC,GAAG;;;;;;;;CAQjB,CAAC;AACF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;IAMpB,UAAU,CAAC,GAAG;;;;;;;;CAQjB,CAAC"}
1
+ {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../../../src/components/ui/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAErD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;CAE5B,CAAC;AAEF,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAA;;;;;;CAM5B,CAAC;AAEF,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;IAarB,UAAU;IACV,UAAU;;MAER,UAAU;;CAEf,CAAC;AACF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;;CAOvB,CAAC;AACF,MAAM,CAAC,MAAM,SAAS,GAAG,GAAG,CAAA;;;;;;CAM3B,CAAC;AAEF,MAAM,CAAC,MAAM,IAAI,GAAG,GAAG,CAAA;;;;;CAKtB,CAAC;AAEF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;CAMvB,CAAC;AACF,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,CAAA;;;;;;IAMtB,UAAU,CAAC,GAAG;;;;;CAKjB,CAAC;AACF,MAAM,CAAC,MAAM,KAAK,GAAG,GAAG,CAAA;;;;;;IAMpB,UAAU,CAAC,GAAG;;;;;CAKjB,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bosonprotocol/react-kit",
3
3
  "description": "React toolkit with smart components and hooks for building on top of the Boson Protocol.",
4
- "version": "0.34.0-alpha.28",
4
+ "version": "0.34.0-alpha.29",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.js",
7
7
  "types": "./dist/cjs/index.d.ts",
@@ -15,9 +15,9 @@
15
15
  "license": "Apache-2.0",
16
16
  "dependencies": {
17
17
  "@bosonprotocol/chat-sdk": "^1.3.1-alpha.9",
18
- "@bosonprotocol/core-sdk": "^1.41.0-alpha.30",
19
- "@bosonprotocol/ethers-sdk": "^1.15.0-alpha.16",
20
- "@bosonprotocol/ipfs-storage": "^1.12.0-alpha.28",
18
+ "@bosonprotocol/core-sdk": "^1.41.0-alpha.31",
19
+ "@bosonprotocol/ethers-sdk": "^1.15.0-alpha.17",
20
+ "@bosonprotocol/ipfs-storage": "^1.12.0-alpha.29",
21
21
  "@davatar/react": "1.11.1",
22
22
  "@ethersproject/units": "5.6.0",
23
23
  "@glidejs/glide": "3.6.0",
@@ -188,5 +188,5 @@
188
188
  "overrides": {
189
189
  "typescript": "^5.1.6"
190
190
  },
191
- "gitHead": "123558ec1030fdcf978eb83fead111943417d189"
191
+ "gitHead": "e5b74ec91225b29bd63df9c979b7d4964aa00b55"
192
192
  }
@@ -6,10 +6,8 @@ import React, {
6
6
  } from "react";
7
7
  import styled, { css, CSSProperties } from "styled-components";
8
8
 
9
- import { zIndex } from "../ui/zIndex";
10
9
  import { Tooltip } from "../tooltip/Tooltip";
11
10
  import * as Styles from "../ui/styles";
12
- import { Typography } from "../ui/Typography";
13
11
  import { theme } from "../../theme";
14
12
  import { Loading } from "../ui/loading/Loading";
15
13
  import { ButtonSize } from "../ui/buttonSize";
@@ -98,17 +96,6 @@ const ButtonWithThemeProps = styled.button<
98
96
  `};
99
97
  `;
100
98
 
101
- const ChildWrapperButton = styled.div`
102
- display: flex;
103
- align-items: center;
104
- justify-content: center;
105
- gap: ${(props) => props.theme?.gap || "12px"};
106
- position: relative;
107
- z-index: ${zIndex.Button};
108
-
109
- ${() => Styles.buttonText};
110
- `;
111
-
112
99
  export type BaseButtonTheme = {
113
100
  background?: CSSProperties["backgroundColor"];
114
101
  borderColor?: CSSProperties["borderColor"];
@@ -136,7 +123,6 @@ export type BaseButtonProps = ButtonHTMLAttributes<HTMLButtonElement> & {
136
123
  size?: ButtonSizeProp;
137
124
  theme: BaseButtonTheme;
138
125
  fill?: boolean;
139
- step?: number;
140
126
  isLoading?: boolean;
141
127
  tooltip?: string;
142
128
  };
@@ -149,7 +135,6 @@ export const BaseButton = forwardRef<HTMLButtonElement, BaseButtonProps>(
149
135
  size = "regular",
150
136
  theme,
151
137
  type = "button",
152
- step = 0,
153
138
  fill = false,
154
139
  isLoading = false,
155
140
  tooltip = "",
@@ -182,18 +167,7 @@ export const BaseButton = forwardRef<HTMLButtonElement, BaseButtonProps>(
182
167
  {...rest}
183
168
  ref={ref}
184
169
  >
185
- {isLoading ? (
186
- <Loading />
187
- ) : (
188
- <ChildWrapperButton data-child-wrapper-button theme={theme}>
189
- {children}
190
- {step !== 0 && (
191
- <Typography>
192
- <small>Step {step}</small>
193
- </Typography>
194
- )}
195
- </ChildWrapperButton>
196
- )}
170
+ {isLoading ? <Loading /> : children}
197
171
  </ButtonWithThemeProps>
198
172
  </Wrapper>
199
173
  </>
@@ -29,7 +29,7 @@ export function CtaButton<T>({
29
29
  successPayload,
30
30
  waitBlocks = 1,
31
31
  children,
32
- size = ButtonSize.Large,
32
+ size = ButtonSize.Medium,
33
33
  variant = "secondaryFill",
34
34
  buttonRef,
35
35
  coreSdkConfig,
@@ -1,14 +1,16 @@
1
1
  import styled from "styled-components";
2
2
 
3
3
  export const ExtraInfo = styled.span`
4
- display: flex;
5
- justify-content: center;
6
- align-items: center;
7
- font-style: normal;
8
- font-weight: 600;
9
- font-size: 0.75rem;
10
- line-height: 150%;
11
- opacity: 0.5;
4
+ &&& {
5
+ display: flex;
6
+ justify-content: center;
7
+ align-items: center;
8
+ font-style: normal;
9
+ font-weight: 600;
10
+ font-size: 0.75rem;
11
+ line-height: 150%;
12
+ opacity: 0.5;
13
+ }
12
14
  `;
13
15
 
14
16
  export const ButtonTextWrapper = styled.div`
@@ -12,6 +12,8 @@ export function BaseCheckbox({
12
12
  text,
13
13
  theme,
14
14
  hideError,
15
+ className,
16
+ iconProps,
15
17
  ...props
16
18
  }: BaseCheckboxProps) {
17
19
  const [field, meta, helpers] = useField(name);
@@ -30,17 +32,26 @@ export function BaseCheckbox({
30
32
 
31
33
  return (
32
34
  <>
33
- <CheckboxWrapper htmlFor={checkboxId} $error={errorMessage} theme={theme}>
35
+ <CheckboxWrapper
36
+ htmlFor={checkboxId}
37
+ $error={errorMessage}
38
+ theme={theme}
39
+ className={className}
40
+ >
34
41
  <input
35
42
  hidden
36
43
  id={checkboxId}
37
44
  type="checkbox"
38
45
  {...props}
39
46
  {...field}
47
+ onChange={(event) => {
48
+ field.onChange(event);
49
+ props.onChange?.(event);
50
+ }}
40
51
  checked={field.value}
41
52
  />
42
53
  <div>
43
- <Check size={16} />
54
+ <Check size={16} width="100%" height="100%" {...iconProps} />
44
55
  </div>
45
56
  <b>{text}</b>
46
57
  </CheckboxWrapper>
@@ -370,6 +370,7 @@ export const CheckboxWrapper = styled.label<{
370
370
  align-items: center;
371
371
  justify-content: flex-start;
372
372
  cursor: pointer;
373
+ gap: 0.5rem;
373
374
 
374
375
  > input {
375
376
  &:disabled {
@@ -426,7 +427,6 @@ export const CheckboxWrapper = styled.label<{
426
427
  css`
427
428
  border-radius: ${theme?.borderRadius};
428
429
  `};
429
- margin-right: 0.5rem;
430
430
  }
431
431
 
432
432
  > input {
@@ -14,6 +14,7 @@ import type {
14
14
  } from "./Field.styles";
15
15
  import type { GridProps } from "../ui/Grid";
16
16
  import { StateManagerProps } from "react-select/dist/declarations/src/useStateManager";
17
+ import { IconProps } from "phosphor-react";
17
18
 
18
19
  export interface BaseProps {
19
20
  name: string;
@@ -29,10 +30,17 @@ export interface DatepickerProps extends BaseProps {
29
30
  setIsFormValid?: (isValid: boolean) => void;
30
31
  }
31
32
 
32
- export interface CheckboxProps extends BaseProps {
33
- text?: string;
34
- theme?: CheckboxTheme;
35
- }
33
+ export type CheckboxProps = BaseProps &
34
+ Omit<React.InputHTMLAttributes<HTMLInputElement>, "checked"> & {
35
+ text?: string;
36
+ className?: string;
37
+ theme?: CheckboxTheme;
38
+ iconProps?: Parameters<
39
+ React.ForwardRefExoticComponent<
40
+ IconProps & React.RefAttributes<SVGSVGElement>
41
+ >
42
+ >[0];
43
+ };
36
44
 
37
45
  export type TextareaProps = BaseProps &
38
46
  React.TextareaHTMLAttributes<HTMLTextAreaElement> & { theme?: TextAreaTheme };
@@ -5,6 +5,14 @@ export const transition = css`
5
5
  transition: all 150ms ease-in-out;
6
6
  `;
7
7
 
8
+ export const buttonText = css`
9
+ letter-spacing: 0.5px;
10
+ font-style: normal;
11
+ font-size: 1rem;
12
+ font-weight: 500;
13
+ line-height: 24px;
14
+ `;
15
+
8
16
  export const button = css`
9
17
  box-sizing: border-box;
10
18
  cursor: pointer;
@@ -18,7 +26,7 @@ export const button = css`
18
26
  position: relative;
19
27
  overflow: hidden;
20
28
  box-shadow: 0px 0px 0px #000000;
21
-
29
+ ${buttonText}
22
30
  ${transition}
23
31
  svg {
24
32
  ${transition}
@@ -47,51 +55,34 @@ export const text = css`
47
55
  line-height: 24px;
48
56
  `;
49
57
 
50
- export const buttonText = css`
51
- letter-spacing: 0.5px;
52
- font-style: normal;
53
- font-size: 1rem;
54
- font-weight: 500;
55
- line-height: 24px;
56
- `;
57
-
58
58
  export const small = css`
59
59
  min-height: 2.125rem;
60
60
  padding: 0.5rem 1rem;
61
- > * {
62
- font-size: 0.75rem !important;
63
- }
64
- #buttonText {
61
+ * {
65
62
  font-size: 0.75rem;
66
63
  }
67
64
  `;
68
65
  export const regular = css`
69
66
  min-height: 2.813rem;
70
67
  padding: 0.75rem 1.5rem;
71
- > * {
72
- font-size: 1rem !important;
68
+ * {
69
+ font-size: 1rem;
73
70
  }
74
71
  ${breakpoint.xxs} {
75
- > * {
76
- font-size: 0.875rem !important;
72
+ * {
73
+ font-size: 0.875rem;
77
74
  }
78
75
  }
79
- #buttonText {
80
- font-size: 0.875rem;
81
- }
82
76
  `;
83
77
  export const large = css`
84
78
  min-height: 3.5rem;
85
79
  padding: 1rem 2rem;
86
- > * {
87
- font-size: 1.125rem !important;
80
+ * {
81
+ font-size: 1.125rem;
88
82
  }
89
83
  ${breakpoint.xxs} {
90
- > * {
91
- font-size: 1rem !important;
84
+ * {
85
+ font-size: 1rem;
92
86
  }
93
87
  }
94
- #buttonText {
95
- font-size: 1rem;
96
- }
97
88
  `;