@sproutsocial/seeds-react-message 1.0.0 → 1.0.1
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 +8 -8
- package/CHANGELOG.md +12 -0
- package/dist/esm/index.js +14 -19
- package/dist/esm/index.js.map +1 -1
- package/dist/index.js +17 -22
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/.turbo/turbo-build.log
CHANGED
|
@@ -8,14 +8,14 @@ CLI Target: es2022
|
|
|
8
8
|
CLI Cleaning output folder
|
|
9
9
|
CJS Build start
|
|
10
10
|
ESM Build start
|
|
11
|
-
CJS dist/index.js 34.
|
|
12
|
-
CJS dist/index.js.map 155.
|
|
13
|
-
CJS ⚡️ Build success in
|
|
14
|
-
ESM dist/esm/index.js 31.
|
|
15
|
-
ESM dist/esm/index.js.map 155.
|
|
16
|
-
ESM ⚡️ Build success in
|
|
11
|
+
CJS dist/index.js 34.83 KB
|
|
12
|
+
CJS dist/index.js.map 155.54 KB
|
|
13
|
+
CJS ⚡️ Build success in 657ms
|
|
14
|
+
ESM dist/esm/index.js 31.91 KB
|
|
15
|
+
ESM dist/esm/index.js.map 155.45 KB
|
|
16
|
+
ESM ⚡️ Build success in 686ms
|
|
17
17
|
DTS Build start
|
|
18
|
-
DTS ⚡️ Build success in
|
|
18
|
+
DTS ⚡️ Build success in 35838ms
|
|
19
19
|
DTS dist/index.d.ts 2.34 KB
|
|
20
20
|
DTS dist/index.d.mts 2.34 KB
|
|
21
|
-
Done in
|
|
21
|
+
Done in 46.11s.
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @sproutsocial/seeds-react-message
|
|
2
2
|
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9fd8bac: Update dependencies to use semantic package version instead of wildcards
|
|
8
|
+
- Updated dependencies [9fd8bac]
|
|
9
|
+
- @sproutsocial/seeds-react-system-props@3.0.2
|
|
10
|
+
- @sproutsocial/seeds-react-checkbox@1.3.1
|
|
11
|
+
- @sproutsocial/seeds-react-avatar@1.0.1
|
|
12
|
+
- @sproutsocial/seeds-react-button@1.2.1
|
|
13
|
+
- @sproutsocial/seeds-react-theme@2.2.1
|
|
14
|
+
|
|
3
15
|
## 1.0.0
|
|
4
16
|
|
|
5
17
|
### Major Changes
|
package/dist/esm/index.js
CHANGED
|
@@ -79,8 +79,7 @@ function _isNativeReflectConstruct() {
|
|
|
79
79
|
|
|
80
80
|
// ../../node_modules/@babel/runtime/helpers/esm/construct.js
|
|
81
81
|
function _construct(t, e, r) {
|
|
82
|
-
if (_isNativeReflectConstruct())
|
|
83
|
-
return Reflect.construct.apply(null, arguments);
|
|
82
|
+
if (_isNativeReflectConstruct()) return Reflect.construct.apply(null, arguments);
|
|
84
83
|
var o = [null];
|
|
85
84
|
o.push.apply(o, e);
|
|
86
85
|
var p = new (t.bind.apply(t, o))();
|
|
@@ -91,14 +90,12 @@ function _construct(t, e, r) {
|
|
|
91
90
|
function _wrapNativeSuper(Class) {
|
|
92
91
|
var _cache = typeof Map === "function" ? /* @__PURE__ */ new Map() : void 0;
|
|
93
92
|
_wrapNativeSuper = function _wrapNativeSuper2(Class2) {
|
|
94
|
-
if (Class2 === null || !_isNativeFunction(Class2))
|
|
95
|
-
return Class2;
|
|
93
|
+
if (Class2 === null || !_isNativeFunction(Class2)) return Class2;
|
|
96
94
|
if (typeof Class2 !== "function") {
|
|
97
95
|
throw new TypeError("Super expression must either be null or a function");
|
|
98
96
|
}
|
|
99
97
|
if (typeof _cache !== "undefined") {
|
|
100
|
-
if (_cache.has(Class2))
|
|
101
|
-
return _cache.get(Class2);
|
|
98
|
+
if (_cache.has(Class2)) return _cache.get(Class2);
|
|
102
99
|
_cache.set(Class2, Wrapper);
|
|
103
100
|
}
|
|
104
101
|
function Wrapper() {
|
|
@@ -421,8 +418,7 @@ var namedColorMap = {
|
|
|
421
418
|
yellowgreen: "9acd32"
|
|
422
419
|
};
|
|
423
420
|
function nameToHex(color) {
|
|
424
|
-
if (typeof color !== "string")
|
|
425
|
-
return color;
|
|
421
|
+
if (typeof color !== "string") return color;
|
|
426
422
|
var normalizedColorName = color.toLowerCase();
|
|
427
423
|
return namedColorMap[normalizedColorName] ? "#" + namedColorMap[normalizedColorName] : color;
|
|
428
424
|
}
|
|
@@ -565,8 +561,7 @@ function guard(lowerBoundary, upperBoundary, value) {
|
|
|
565
561
|
return Math.max(lowerBoundary, Math.min(upperBoundary, value));
|
|
566
562
|
}
|
|
567
563
|
function transparentize(amount, color) {
|
|
568
|
-
if (color === "transparent")
|
|
569
|
-
return color;
|
|
564
|
+
if (color === "transparent") return color;
|
|
570
565
|
var parsedColor = parseToRgb(color);
|
|
571
566
|
var alpha = typeof parsedColor.alpha === "number" ? parsedColor.alpha : 1;
|
|
572
567
|
var colorWithAlpha = _extends({}, parsedColor, {
|
|
@@ -576,7 +571,7 @@ function transparentize(amount, color) {
|
|
|
576
571
|
}
|
|
577
572
|
var curriedTransparentize = /* @__PURE__ */ curry(transparentize);
|
|
578
573
|
|
|
579
|
-
// ../seeds-react-mixins/
|
|
574
|
+
// ../seeds-react-mixins/dist/esm/index.js
|
|
580
575
|
import { css } from "styled-components";
|
|
581
576
|
import { theme } from "@sproutsocial/seeds-react-theme";
|
|
582
577
|
var visuallyHidden = css`
|
|
@@ -648,7 +643,7 @@ var Box = React.forwardRef(
|
|
|
648
643
|
);
|
|
649
644
|
Box.displayName = "Box";
|
|
650
645
|
var Box_default = Box;
|
|
651
|
-
var
|
|
646
|
+
var index_default = Box_default;
|
|
652
647
|
|
|
653
648
|
// src/constants.ts
|
|
654
649
|
var MESSAGE_DENSITIES = {
|
|
@@ -660,7 +655,7 @@ var MESSAGE_DENSITIES = {
|
|
|
660
655
|
};
|
|
661
656
|
|
|
662
657
|
// src/styles.ts
|
|
663
|
-
var Container2 = styled2(
|
|
658
|
+
var Container2 = styled2(index_default)`
|
|
664
659
|
border-radius: ${(props) => props.theme.radii.outer};
|
|
665
660
|
border-width: ${(props) => props.theme.borderWidths[500]};
|
|
666
661
|
border-style: solid;
|
|
@@ -672,7 +667,7 @@ var Container2 = styled2(src_default)`
|
|
|
672
667
|
}
|
|
673
668
|
`;
|
|
674
669
|
Container2.displayName = "Message.Container";
|
|
675
|
-
var MessageHeader = memo(styled2(
|
|
670
|
+
var MessageHeader = memo(styled2(index_default)`
|
|
676
671
|
padding: ${(props) => props.density === MESSAGE_DENSITIES.CONDENSED ? `0 0 0 ${props.theme.space[100]}` : props.theme.space[300]};
|
|
677
672
|
display: flex;
|
|
678
673
|
justify-content: space-between;
|
|
@@ -715,13 +710,13 @@ var messagePadding = ({
|
|
|
715
710
|
}
|
|
716
711
|
return theme2.space[400];
|
|
717
712
|
};
|
|
718
|
-
var MessageBody = styled2(
|
|
713
|
+
var MessageBody = styled2(index_default)`
|
|
719
714
|
padding: ${messagePadding} ${messagePadding} ${messagePadding}
|
|
720
715
|
${(props) => getContentPadding(props)};
|
|
721
716
|
font-family: ${(props) => props.theme.fontFamily};
|
|
722
717
|
${(props) => props.density === MESSAGE_DENSITIES.COMPACT || props.density === MESSAGE_DENSITIES.CONDENSED ? props.theme.typography[200] : props.theme.typography[300]};
|
|
723
718
|
`;
|
|
724
|
-
var MessageFooter = styled2(
|
|
719
|
+
var MessageFooter = styled2(index_default)`
|
|
725
720
|
padding-bottom: ${(props) => props.density === MESSAGE_DENSITIES.CONDENSED ? 0 : props.theme.space[300]};
|
|
726
721
|
padding-left: ${(props) => getContentPadding(props)};
|
|
727
722
|
padding-right: ${(props) => props.density === MESSAGE_DENSITIES.CONDENSED ? 0 : props.theme.space[300]};
|
|
@@ -732,7 +727,7 @@ var MessageFooter = styled2(src_default)`
|
|
|
732
727
|
align-items: center;
|
|
733
728
|
flex-wrap: ${(props) => props.density === MESSAGE_DENSITIES.CONDENSED ? "nowrap" : "wrap"};
|
|
734
729
|
`;
|
|
735
|
-
var MessageMeta = styled2(
|
|
730
|
+
var MessageMeta = styled2(index_default)`
|
|
736
731
|
background: none;
|
|
737
732
|
border-width: 0;
|
|
738
733
|
border-style: none;
|
|
@@ -879,10 +874,10 @@ var Message_default = Message;
|
|
|
879
874
|
import "react";
|
|
880
875
|
|
|
881
876
|
// src/index.ts
|
|
882
|
-
var
|
|
877
|
+
var index_default2 = Message_default;
|
|
883
878
|
export {
|
|
884
879
|
MESSAGE_DENSITIES,
|
|
885
880
|
Message_default as Message,
|
|
886
|
-
|
|
881
|
+
index_default2 as default
|
|
887
882
|
};
|
|
888
883
|
//# sourceMappingURL=index.js.map
|