@bosonprotocol/react-kit 0.34.0-alpha.37 → 0.34.0-alpha.38

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.
@@ -316,11 +316,11 @@ exports.CheckboxWrapper = styled_components_1.default.label `
316
316
  }
317
317
  }
318
318
 
319
- > div,
320
- > div svg {
319
+ > div:first-of-type,
320
+ > div:first-of-type svg {
321
321
  ${styles_1.transition}
322
322
  }
323
- > div {
323
+ > div:first-of-type {
324
324
  display: flex;
325
325
  align-items: center;
326
326
  justify-content: center;
@@ -379,7 +379,7 @@ exports.CheckboxWrapper = styled_components_1.default.label `
379
379
  var _a, _b, _c, _d, _e;
380
380
  return !(0, checkIfValueIsEmpty_1.checkIfValueIsEmpty)($error) &&
381
381
  (0, styled_components_1.css) `
382
- > div {
382
+ > div:first-of-type {
383
383
  border: 1px solid ${((_a = theme === null || theme === void 0 ? void 0 : theme.error) === null || _a === void 0 ? void 0 : _a.borderColor) || colors.orange}};
384
384
  ${((_b = theme === null || theme === void 0 ? void 0 : theme.error) === null || _b === void 0 ? void 0 : _b.backgroundColor) &&
385
385
  (0, styled_components_1.css) `
@@ -281,11 +281,11 @@ export const CheckboxWrapper = styled.label `
281
281
  }
282
282
  }
283
283
 
284
- > div,
285
- > div svg {
284
+ > div:first-of-type,
285
+ > div:first-of-type svg {
286
286
  ${transition}
287
287
  }
288
- > div {
288
+ > div:first-of-type {
289
289
  display: flex;
290
290
  align-items: center;
291
291
  justify-content: center;
@@ -333,7 +333,7 @@ export const CheckboxWrapper = styled.label `
333
333
 
334
334
  ${({ $error, theme }) => !checkIfValueIsEmpty($error) &&
335
335
  css `
336
- > div {
336
+ > div:first-of-type {
337
337
  border: 1px solid ${theme?.error?.borderColor || colors.orange}};
338
338
  ${theme?.error?.backgroundColor &&
339
339
  css `
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.37",
4
+ "version": "0.34.0-alpha.38",
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.39",
19
- "@bosonprotocol/ethers-sdk": "^1.15.0-alpha.25",
20
- "@bosonprotocol/ipfs-storage": "^1.12.0-alpha.37",
18
+ "@bosonprotocol/core-sdk": "^1.41.0-alpha.40",
19
+ "@bosonprotocol/ethers-sdk": "^1.15.0-alpha.26",
20
+ "@bosonprotocol/ipfs-storage": "^1.12.0-alpha.38",
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": "eaa27ca3e775734f7e7f876602550d1571039dae"
191
+ "gitHead": "2413ff8a32d8859211df0b09234871ae39e73ec8"
192
192
  }
@@ -403,11 +403,11 @@ export const CheckboxWrapper = styled.label<{
403
403
  }
404
404
  }
405
405
 
406
- > div,
407
- > div svg {
406
+ > div:first-of-type,
407
+ > div:first-of-type svg {
408
408
  ${transition}
409
409
  }
410
- > div {
410
+ > div:first-of-type {
411
411
  display: flex;
412
412
  align-items: center;
413
413
  justify-content: center;
@@ -462,7 +462,7 @@ export const CheckboxWrapper = styled.label<{
462
462
  ${({ $error, theme }) =>
463
463
  !checkIfValueIsEmpty($error) &&
464
464
  css`
465
- > div {
465
+ > div:first-of-type {
466
466
  border: 1px solid ${theme?.error?.borderColor || colors.orange}};
467
467
  ${
468
468
  theme?.error?.backgroundColor &&
@@ -113,8 +113,9 @@ export const CustomThemeWithError = {
113
113
  };
114
114
 
115
115
  export const SimpleWithChildren = {
116
+ name: "With error with children",
116
117
  args: {
117
118
  ...BASE_ARGS,
118
- children: <p>text in paragraph</p>
119
+ children: <div>text in paragraph</div>
119
120
  }
120
121
  };