@codecademy/brand 1.45.0-alpha.0e8e6e8ba4.0 → 1.45.0-alpha.153906300b.0

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.
@@ -39,11 +39,18 @@ const TimeUnit = /*#__PURE__*/React.memo(({
39
39
  md: 26
40
40
  },
41
41
  as: "span",
42
- mr: 4,
43
42
  color: "inherit",
44
43
  children: label
45
44
  })]
46
45
  }));
46
+ const Separator = /*#__PURE__*/React.memo(() => /*#__PURE__*/_jsx(Text, {
47
+ fontFamily: "accent",
48
+ variant: "title-md",
49
+ fontSize: 16,
50
+ color: "inherit",
51
+ fontWeight: "bold",
52
+ children: ":"
53
+ }));
47
54
  export const CountdownTimer = ({
48
55
  targetDate,
49
56
  onExpire
@@ -81,50 +88,21 @@ export const CountdownTimer = ({
81
88
  py: 8,
82
89
  px: 16,
83
90
  bg: "yellow-0",
84
- borderRadius: "md",
91
+ borderRadius: 6,
85
92
  color: "navy",
86
93
  "data-testid": "branded-countdown-timer",
87
94
  boxShadow: "minimal",
95
+ gap: 2,
88
96
  children: [/*#__PURE__*/_jsx(TimeUnit, {
89
97
  value: days,
90
98
  label: "d"
91
- }), /*#__PURE__*/_jsx(Text, {
92
- fontFamily: "accent",
93
- variant: "title-md",
94
- fontSize: {
95
- _: 20,
96
- md: 26
97
- },
98
- color: "inherit",
99
- fontWeight: "bold",
100
- children: ":"
101
- }), /*#__PURE__*/_jsx(TimeUnit, {
99
+ }), /*#__PURE__*/_jsx(Separator, {}), /*#__PURE__*/_jsx(TimeUnit, {
102
100
  value: hours,
103
101
  label: "h"
104
- }), /*#__PURE__*/_jsx(Text, {
105
- fontFamily: "accent",
106
- variant: "title-md",
107
- fontSize: {
108
- _: 20,
109
- md: 26
110
- },
111
- color: "inherit",
112
- fontWeight: "bold",
113
- children: ":"
114
- }), /*#__PURE__*/_jsx(TimeUnit, {
102
+ }), /*#__PURE__*/_jsx(Separator, {}), /*#__PURE__*/_jsx(TimeUnit, {
115
103
  value: minutes,
116
104
  label: "m"
117
- }), /*#__PURE__*/_jsx(Text, {
118
- fontFamily: "accent",
119
- fontSize: {
120
- _: 20,
121
- md: 26
122
- },
123
- color: "inherit",
124
- fontWeight: "bold",
125
- variant: "title-md",
126
- children: ":"
127
- }), /*#__PURE__*/_jsx(TimeUnit, {
105
+ }), /*#__PURE__*/_jsx(Separator, {}), /*#__PURE__*/_jsx(TimeUnit, {
128
106
  value: seconds,
129
107
  label: "s"
130
108
  })]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@codecademy/brand",
3
3
  "description": "Brand component library for Codecademy",
4
- "version": "1.45.0-alpha.0e8e6e8ba4.0",
4
+ "version": "1.45.0-alpha.153906300b.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@emotion/is-prop-valid": "^1.2.1",