@sproutsocial/seeds-react-message 1.0.0 → 1.0.2

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.
@@ -1,21 +1,21 @@
1
1
  yarn run v1.22.22
2
2
  $ tsup --dts
3
- CLI Building entry: src/index.ts
4
- CLI Using tsconfig: tsconfig.json
5
- CLI tsup v8.0.2
6
- CLI Using tsup config: /home/runner/work/seeds/seeds/seeds-react/seeds-react-message/tsup.config.ts
7
- CLI Target: es2022
8
- CLI Cleaning output folder
9
- CJS Build start
10
- ESM Build start
11
- CJS dist/index.js 34.82 KB
12
- CJS dist/index.js.map 155.64 KB
13
- CJS ⚡️ Build success in 795ms
14
- ESM dist/esm/index.js 31.92 KB
15
- ESM dist/esm/index.js.map 155.56 KB
16
- ESM ⚡️ Build success in 812ms
17
- DTS Build start
18
- DTS ⚡️ Build success in 35065ms
19
- DTS dist/index.d.ts 2.34 KB
20
- DTS dist/index.d.mts 2.34 KB
21
- Done in 45.20s.
3
+ CLI Building entry: src/index.ts
4
+ CLI Using tsconfig: tsconfig.json
5
+ CLI tsup v8.5.0
6
+ CLI Using tsup config: /home/runner/work/seeds/seeds/seeds-react/seeds-react-message/tsup.config.ts
7
+ CLI Target: es2022
8
+ CLI Cleaning output folder
9
+ CJS Build start
10
+ ESM Build start
11
+ ESM dist/esm/index.js 31.58 KB
12
+ ESM dist/esm/index.js.map 155.20 KB
13
+ ESM ⚡️ Build success in 454ms
14
+ CJS dist/index.js 34.49 KB
15
+ CJS dist/index.js.map 155.28 KB
16
+ CJS ⚡️ Build success in 487ms
17
+ DTS Build start
18
+ DTS ⚡️ Build success in 27810ms
19
+ DTS dist/index.d.ts 2.34 KB
20
+ DTS dist/index.d.mts 2.34 KB
21
+ Done in 35.88s.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,27 @@
1
1
  # @sproutsocial/seeds-react-message
2
2
 
3
+ ## 1.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [22e1111]
8
+ - @sproutsocial/seeds-react-button@1.2.2
9
+ - @sproutsocial/seeds-react-checkbox@1.3.2
10
+ - @sproutsocial/seeds-react-theme@3.0.1
11
+ - @sproutsocial/seeds-react-avatar@1.0.2
12
+
13
+ ## 1.0.1
14
+
15
+ ### Patch Changes
16
+
17
+ - 9fd8bac: Update dependencies to use semantic package version instead of wildcards
18
+ - Updated dependencies [9fd8bac]
19
+ - @sproutsocial/seeds-react-system-props@3.0.2
20
+ - @sproutsocial/seeds-react-checkbox@1.3.1
21
+ - @sproutsocial/seeds-react-avatar@1.0.1
22
+ - @sproutsocial/seeds-react-button@1.2.1
23
+ - @sproutsocial/seeds-react-theme@2.2.1
24
+
3
25
  ## 1.0.0
4
26
 
5
27
  ### Major Changes
package/dist/esm/index.js CHANGED
@@ -10,58 +10,46 @@ import styled2 from "styled-components";
10
10
 
11
11
  // ../../node_modules/@babel/runtime/helpers/esm/extends.js
12
12
  function _extends() {
13
- _extends = Object.assign ? Object.assign.bind() : function(target) {
14
- for (var i = 1; i < arguments.length; i++) {
15
- var source = arguments[i];
16
- for (var key in source) {
17
- if (Object.prototype.hasOwnProperty.call(source, key)) {
18
- target[key] = source[key];
19
- }
20
- }
13
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
14
+ for (var e = 1; e < arguments.length; e++) {
15
+ var t = arguments[e];
16
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
21
17
  }
22
- return target;
23
- };
24
- return _extends.apply(this, arguments);
18
+ return n;
19
+ }, _extends.apply(null, arguments);
25
20
  }
26
21
 
27
22
  // ../../node_modules/@babel/runtime/helpers/esm/assertThisInitialized.js
28
- function _assertThisInitialized(self) {
29
- if (self === void 0) {
30
- throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
31
- }
32
- return self;
23
+ function _assertThisInitialized(e) {
24
+ if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
25
+ return e;
33
26
  }
34
27
 
35
28
  // ../../node_modules/@babel/runtime/helpers/esm/setPrototypeOf.js
36
- function _setPrototypeOf(o, p) {
37
- _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf2(o2, p2) {
38
- o2.__proto__ = p2;
39
- return o2;
40
- };
41
- return _setPrototypeOf(o, p);
29
+ function _setPrototypeOf(t, e) {
30
+ return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(t2, e2) {
31
+ return t2.__proto__ = e2, t2;
32
+ }, _setPrototypeOf(t, e);
42
33
  }
43
34
 
44
35
  // ../../node_modules/@babel/runtime/helpers/esm/inheritsLoose.js
45
- function _inheritsLoose(subClass, superClass) {
46
- subClass.prototype = Object.create(superClass.prototype);
47
- subClass.prototype.constructor = subClass;
48
- _setPrototypeOf(subClass, superClass);
36
+ function _inheritsLoose(t, o) {
37
+ t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
49
38
  }
50
39
 
51
40
  // ../../node_modules/@babel/runtime/helpers/esm/getPrototypeOf.js
52
- function _getPrototypeOf(o) {
53
- _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf2(o2) {
54
- return o2.__proto__ || Object.getPrototypeOf(o2);
55
- };
56
- return _getPrototypeOf(o);
41
+ function _getPrototypeOf(t) {
42
+ return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(t2) {
43
+ return t2.__proto__ || Object.getPrototypeOf(t2);
44
+ }, _getPrototypeOf(t);
57
45
  }
58
46
 
59
47
  // ../../node_modules/@babel/runtime/helpers/esm/isNativeFunction.js
60
- function _isNativeFunction(fn) {
48
+ function _isNativeFunction(t) {
61
49
  try {
62
- return Function.toString.call(fn).indexOf("[native code]") !== -1;
63
- } catch (e) {
64
- return typeof fn === "function";
50
+ return -1 !== Function.toString.call(t).indexOf("[native code]");
51
+ } catch (n) {
52
+ return "function" == typeof t;
65
53
  }
66
54
  }
67
55
 
@@ -79,8 +67,7 @@ function _isNativeReflectConstruct() {
79
67
 
80
68
  // ../../node_modules/@babel/runtime/helpers/esm/construct.js
81
69
  function _construct(t, e, r) {
82
- if (_isNativeReflectConstruct())
83
- return Reflect.construct.apply(null, arguments);
70
+ if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
84
71
  var o = [null];
85
72
  o.push.apply(o, e);
86
73
  var p = new (t.bind.apply(t, o))();
@@ -88,33 +75,27 @@ function _construct(t, e, r) {
88
75
  }
89
76
 
90
77
  // ../../node_modules/@babel/runtime/helpers/esm/wrapNativeSuper.js
91
- function _wrapNativeSuper(Class) {
92
- var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
93
- _wrapNativeSuper = function _wrapNativeSuper2(Class2) {
94
- if (Class2 === null || !_isNativeFunction(Class2))
95
- return Class2;
96
- if (typeof Class2 !== "function") {
97
- throw new TypeError("Super expression must either be null or a function");
98
- }
99
- if (typeof _cache !== "undefined") {
100
- if (_cache.has(Class2))
101
- return _cache.get(Class2);
102
- _cache.set(Class2, Wrapper);
78
+ function _wrapNativeSuper(t) {
79
+ var r = "function" == typeof Map ? /* @__PURE__ */ new Map() : void 0;
80
+ return _wrapNativeSuper = function _wrapNativeSuper2(t2) {
81
+ if (null === t2 || !_isNativeFunction(t2)) return t2;
82
+ if ("function" != typeof t2) throw new TypeError("Super expression must either be null or a function");
83
+ if (void 0 !== r) {
84
+ if (r.has(t2)) return r.get(t2);
85
+ r.set(t2, Wrapper);
103
86
  }
104
87
  function Wrapper() {
105
- return _construct(Class2, arguments, _getPrototypeOf(this).constructor);
88
+ return _construct(t2, arguments, _getPrototypeOf(this).constructor);
106
89
  }
107
- Wrapper.prototype = Object.create(Class2.prototype, {
90
+ return Wrapper.prototype = Object.create(t2.prototype, {
108
91
  constructor: {
109
92
  value: Wrapper,
110
93
  enumerable: false,
111
94
  writable: true,
112
95
  configurable: true
113
96
  }
114
- });
115
- return _setPrototypeOf(Wrapper, Class2);
116
- };
117
- return _wrapNativeSuper(Class);
97
+ }), _setPrototypeOf(Wrapper, t2);
98
+ }, _wrapNativeSuper(t);
118
99
  }
119
100
 
120
101
  // ../../node_modules/polished/dist/polished.esm.js
@@ -421,8 +402,7 @@ var namedColorMap = {
421
402
  yellowgreen: "9acd32"
422
403
  };
423
404
  function nameToHex(color) {
424
- if (typeof color !== "string")
425
- return color;
405
+ if (typeof color !== "string") return color;
426
406
  var normalizedColorName = color.toLowerCase();
427
407
  return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color;
428
408
  }
@@ -565,8 +545,7 @@ function guard(lowerBoundary, upperBoundary, value) {
565
545
  return Math.max(lowerBoundary, Math.min(upperBoundary, value));
566
546
  }
567
547
  function transparentize(amount, color) {
568
- if (color === "transparent")
569
- return color;
548
+ if (color === "transparent") return color;
570
549
  var parsedColor = parseToRgb(color);
571
550
  var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
572
551
  var colorWithAlpha = _extends({}, parsedColor, {
@@ -576,7 +555,7 @@ function transparentize(amount, color) {
576
555
  }
577
556
  var curriedTransparentize = /* @__PURE__ */ curry(transparentize);
578
557
 
579
- // ../seeds-react-mixins/src/index.ts
558
+ // ../seeds-react-mixins/dist/esm/index.js
580
559
  import { css } from "styled-components";
581
560
  import { theme } from "@sproutsocial/seeds-react-theme";
582
561
  var visuallyHidden = css`
@@ -648,7 +627,7 @@ var Box = React.forwardRef(
648
627
  );
649
628
  Box.displayName = "Box";
650
629
  var Box_default = Box;
651
- var src_default = Box_default;
630
+ var index_default = Box_default;
652
631
 
653
632
  // src/constants.ts
654
633
  var MESSAGE_DENSITIES = {
@@ -660,7 +639,7 @@ var MESSAGE_DENSITIES = {
660
639
  };
661
640
 
662
641
  // src/styles.ts
663
- var Container2 = styled2(src_default)`
642
+ var Container2 = styled2(index_default)`
664
643
  border-radius: ${(props) => props.theme.radii.outer};
665
644
  border-width: ${(props) => props.theme.borderWidths[500]};
666
645
  border-style: solid;
@@ -672,7 +651,7 @@ var Container2 = styled2(src_default)`
672
651
  }
673
652
  `;
674
653
  Container2.displayName = "Message.Container";
675
- var MessageHeader = memo(styled2(src_default)`
654
+ var MessageHeader = memo(styled2(index_default)`
676
655
  padding: ${(props) => props.density === MESSAGE_DENSITIES.CONDENSED ? `0 0 0 ${props.theme.space[100]}` : props.theme.space[300]};
677
656
  display: flex;
678
657
  justify-content: space-between;
@@ -715,13 +694,13 @@ var messagePadding = ({
715
694
  }
716
695
  return theme2.space[400];
717
696
  };
718
- var MessageBody = styled2(src_default)`
697
+ var MessageBody = styled2(index_default)`
719
698
  padding: ${messagePadding} ${messagePadding} ${messagePadding}
720
699
  ${(props) => getContentPadding(props)};
721
700
  font-family: ${(props) => props.theme.fontFamily};
722
701
  ${(props) => props.density === MESSAGE_DENSITIES.COMPACT || props.density === MESSAGE_DENSITIES.CONDENSED ? props.theme.typography[200] : props.theme.typography[300]};
723
702
  `;
724
- var MessageFooter = styled2(src_default)`
703
+ var MessageFooter = styled2(index_default)`
725
704
  padding-bottom: ${(props) => props.density === MESSAGE_DENSITIES.CONDENSED ? 0 : props.theme.space[300]};
726
705
  padding-left: ${(props) => getContentPadding(props)};
727
706
  padding-right: ${(props) => props.density === MESSAGE_DENSITIES.CONDENSED ? 0 : props.theme.space[300]};
@@ -732,7 +711,7 @@ var MessageFooter = styled2(src_default)`
732
711
  align-items: center;
733
712
  flex-wrap: ${(props) => props.density === MESSAGE_DENSITIES.CONDENSED ? "nowrap" : "wrap"};
734
713
  `;
735
- var MessageMeta = styled2(src_default)`
714
+ var MessageMeta = styled2(index_default)`
736
715
  background: none;
737
716
  border-width: 0;
738
717
  border-style: none;
@@ -879,10 +858,10 @@ var Message_default = Message;
879
858
  import "react";
880
859
 
881
860
  // src/index.ts
882
- var src_default2 = Message_default;
861
+ var index_default2 = Message_default;
883
862
  export {
884
863
  MESSAGE_DENSITIES,
885
864
  Message_default as Message,
886
- src_default2 as default
865
+ index_default2 as default
887
866
  };
888
867
  //# sourceMappingURL=index.js.map