@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.
- package/.turbo/turbo-build.log +19 -19
- package/CHANGELOG.md +22 -0
- package/dist/esm/index.js +47 -68
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +50 -71
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
- package/tsconfig.json +7 -1
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
yarn run v1.22.22
|
|
2
2
|
$ tsup --dts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
Done in
|
|
3
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
4
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
5
|
+
[34mCLI[39m tsup v8.5.0
|
|
6
|
+
[34mCLI[39m Using tsup config: /home/runner/work/seeds/seeds/seeds-react/seeds-react-message/tsup.config.ts
|
|
7
|
+
[34mCLI[39m Target: es2022
|
|
8
|
+
[34mCLI[39m Cleaning output folder
|
|
9
|
+
[34mCJS[39m Build start
|
|
10
|
+
[34mESM[39m Build start
|
|
11
|
+
[32mESM[39m [1mdist/esm/index.js [22m[32m31.58 KB[39m
|
|
12
|
+
[32mESM[39m [1mdist/esm/index.js.map [22m[32m155.20 KB[39m
|
|
13
|
+
[32mESM[39m ⚡️ Build success in 454ms
|
|
14
|
+
[32mCJS[39m [1mdist/index.js [22m[32m34.49 KB[39m
|
|
15
|
+
[32mCJS[39m [1mdist/index.js.map [22m[32m155.28 KB[39m
|
|
16
|
+
[32mCJS[39m ⚡️ Build success in 487ms
|
|
17
|
+
[34mDTS[39m Build start
|
|
18
|
+
[32mDTS[39m ⚡️ Build success in 27810ms
|
|
19
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.34 KB[39m
|
|
20
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m2.34 KB[39m
|
|
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(
|
|
14
|
-
for (var
|
|
15
|
-
var
|
|
16
|
-
for (var
|
|
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
|
|
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(
|
|
29
|
-
if (
|
|
30
|
-
|
|
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(
|
|
37
|
-
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function
|
|
38
|
-
|
|
39
|
-
|
|
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(
|
|
46
|
-
|
|
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(
|
|
53
|
-
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function
|
|
54
|
-
return
|
|
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(
|
|
48
|
+
function _isNativeFunction(t) {
|
|
61
49
|
try {
|
|
62
|
-
return Function.toString.call(
|
|
63
|
-
} catch (
|
|
64
|
-
return
|
|
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(
|
|
92
|
-
var
|
|
93
|
-
_wrapNativeSuper = function _wrapNativeSuper2(
|
|
94
|
-
if (
|
|
95
|
-
|
|
96
|
-
if (
|
|
97
|
-
|
|
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(
|
|
88
|
+
return _construct(t2, arguments, _getPrototypeOf(this).constructor);
|
|
106
89
|
}
|
|
107
|
-
Wrapper.prototype = Object.create(
|
|
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
|
-
|
|
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/
|
|
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
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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(
|
|
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
|
|
861
|
+
var index_default2 = Message_default;
|
|
883
862
|
export {
|
|
884
863
|
MESSAGE_DENSITIES,
|
|
885
864
|
Message_default as Message,
|
|
886
|
-
|
|
865
|
+
index_default2 as default
|
|
887
866
|
};
|
|
888
867
|
//# sourceMappingURL=index.js.map
|