@codecademy/brand 1.45.0-alpha.153906300b.0 → 1.45.0-alpha.4c788a771d.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,18 +39,11 @@ const TimeUnit = /*#__PURE__*/React.memo(({
39
39
  md: 26
40
40
  },
41
41
  as: "span",
42
+ mr: 4,
42
43
  color: "inherit",
43
44
  children: label
44
45
  })]
45
46
  }));
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
- }));
54
47
  export const CountdownTimer = ({
55
48
  targetDate,
56
49
  onExpire
@@ -88,21 +81,50 @@ export const CountdownTimer = ({
88
81
  py: 8,
89
82
  px: 16,
90
83
  bg: "yellow-0",
91
- borderRadius: 6,
84
+ borderRadius: "md",
92
85
  color: "navy",
93
86
  "data-testid": "branded-countdown-timer",
94
87
  boxShadow: "minimal",
95
- gap: 2,
96
88
  children: [/*#__PURE__*/_jsx(TimeUnit, {
97
89
  value: days,
98
90
  label: "d"
99
- }), /*#__PURE__*/_jsx(Separator, {}), /*#__PURE__*/_jsx(TimeUnit, {
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, {
100
102
  value: hours,
101
103
  label: "h"
102
- }), /*#__PURE__*/_jsx(Separator, {}), /*#__PURE__*/_jsx(TimeUnit, {
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, {
103
115
  value: minutes,
104
116
  label: "m"
105
- }), /*#__PURE__*/_jsx(Separator, {}), /*#__PURE__*/_jsx(TimeUnit, {
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, {
106
128
  value: seconds,
107
129
  label: "s"
108
130
  })]
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.153906300b.0",
4
+ "version": "1.45.0-alpha.4c788a771d.0",
5
5
  "author": "Codecademy Engineering <dev@codecademy.com>",
6
6
  "dependencies": {
7
7
  "@emotion/is-prop-valid": "^1.2.1",