td-stylekit 24.6.0 → 24.8.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.
@@ -0,0 +1,4 @@
1
+ #!/bin/sh
2
+ . "$(dirname "$0")/_/husky.sh"
3
+
4
+ yarn pretty-quick --staged && yarn build:icons:types && git add src/Icon/staticTypes.ts
package/CHANGELOG.md CHANGED
@@ -1,3 +1,31 @@
1
+ ## [24.8.1](https://github.com/treasure-data/td-stylekit/compare/v24.8.0...v24.8.1) (2022-01-21)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * **CON-9130:** Added dark version of the TD Logo ([#1214](https://github.com/treasure-data/td-stylekit/issues/1214)) ([4d58762](https://github.com/treasure-data/td-stylekit/commit/4d58762))
7
+
8
+ # [24.8.0](https://github.com/treasure-data/td-stylekit/compare/v24.7.0...v24.8.0) (2022-01-14)
9
+
10
+
11
+ ### Features
12
+
13
+ * **CON-9007:** Add navigation tree for Marketplace Listing ([#1216](https://github.com/treasure-data/td-stylekit/issues/1216)) ([4b4ae28](https://github.com/treasure-data/td-stylekit/commit/4b4ae28))
14
+
15
+ # [24.7.0](https://github.com/treasure-data/td-stylekit/compare/v24.6.1...v24.7.0) (2022-01-12)
16
+
17
+
18
+ ### Features
19
+
20
+ * **CON-8883:** Set StyledSelectorPopover width by variant prop ([#1206](https://github.com/treasure-data/td-stylekit/issues/1206)) ([04ff7f8](https://github.com/treasure-data/td-stylekit/commit/04ff7f8))
21
+
22
+ ## [24.6.1](https://github.com/treasure-data/td-stylekit/compare/v24.6.0...v24.6.1) (2022-01-06)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **CON-9087:** Prevent adding Toggle props as HTML attributes ([#1210](https://github.com/treasure-data/td-stylekit/issues/1210)) ([67266de](https://github.com/treasure-data/td-stylekit/commit/67266de))
28
+
1
29
  # [24.6.0](https://github.com/treasure-data/td-stylekit/compare/v24.5.0...v24.6.0) (2021-12-21)
2
30
 
3
31
 
@@ -110,14 +110,14 @@ declare const Box: import("@emotion/styled-base").StyledComponent<import("react"
110
110
  LightPrimary: string;
111
111
  LightSecondary: string;
112
112
  BorderGrey: string;
113
- Blue: string;
113
+ Blue: string; /** How to align the contents along the cross axis. */
114
114
  BlueFade: string;
115
115
  Green: string;
116
116
  GreenFade: string;
117
117
  GreenBackground: string;
118
118
  Red: string;
119
119
  RedFade: string;
120
- Yellow: string; /** How to align the contents when there is extra space in the cross axis. */
120
+ Yellow: string;
121
121
  YellowFade: string;
122
122
  YellowHighlight: string;
123
123
  Orange: string;
@@ -129,18 +129,18 @@ declare const Box: import("@emotion/styled-base").StyledComponent<import("react"
129
129
  DraggableDraggingBackground: string;
130
130
  Aquamarine: string;
131
131
  Azure: string;
132
- AzureNew: string; /** How to align the contents along the main axis. */
132
+ AzureNew: string;
133
133
  AzureFade: string;
134
134
  AzureHighlight: string;
135
135
  Silver: string;
136
136
  BlueNavy: string;
137
137
  Black: string;
138
138
  TurquoiseBlue: string;
139
- SummerSky: string;
139
+ SummerSky: string; /** Whether to reverse the order of the child components. */
140
140
  Mondo: string;
141
141
  HeavyMetal: string;
142
142
  BokaraGrey: string;
143
- Cyan: string; /** Whether to reverse the order of the child components. */
143
+ Cyan: string;
144
144
  Eucalyptus: string;
145
145
  Flamingo: string;
146
146
  Zorba: string;
@@ -51,7 +51,7 @@ declare const Grid: import("@emotion/styled-base").StyledComponent<import("react
51
51
  readonly borderWidth: string[];
52
52
  readonly grid: number[];
53
53
  readonly shadows: {
54
- small: string; /** Aligns grid along the row axis https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content */
54
+ small: string;
55
55
  big: string;
56
56
  pill: string;
57
57
  bigCentered: string;
@@ -69,7 +69,7 @@ declare const Grid: import("@emotion/styled-base").StyledComponent<import("react
69
69
  SecondaryNavActiveItem: number;
70
70
  PrimaryNav: number;
71
71
  PopOver: number;
72
- PageHeaderSearch: number; /** Passing in a number gives the specified number of rows at 1fr, and passing in a string gives a more customized value https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows */
72
+ PageHeaderSearch: number;
73
73
  Modal: number;
74
74
  Tether: number;
75
75
  GlobalNav: number;
@@ -63,6 +63,7 @@ export declare type IconTypes = {
63
63
  Edit: React.ComponentType<JSX.IntrinsicElements['svg']>;
64
64
  EditIcon: React.ComponentType<JSX.IntrinsicElements['svg']>;
65
65
  EmptyColumns: React.ComponentType<JSX.IntrinsicElements['svg']>;
66
+ EmptyColumnsIcon: React.ComponentType<JSX.IntrinsicElements['svg']>;
66
67
  Exclamation: React.ComponentType<JSX.IntrinsicElements['svg']>;
67
68
  ExclamationIcon: React.ComponentType<JSX.IntrinsicElements['svg']>;
68
69
  Exit: React.ComponentType<JSX.IntrinsicElements['svg']>;
@@ -328,6 +329,7 @@ export declare type IconTypes = {
328
329
  SystemToggle: React.ComponentType<JSX.IntrinsicElements['svg']>;
329
330
  SystemToggleIcon: React.ComponentType<JSX.IntrinsicElements['svg']>;
330
331
  Tag: React.ComponentType<JSX.IntrinsicElements['svg']>;
332
+ TagIcon: React.ComponentType<JSX.IntrinsicElements['svg']>;
331
333
  Toggle: React.ComponentType<JSX.IntrinsicElements['svg']>;
332
334
  ToggleIcon: React.ComponentType<JSX.IntrinsicElements['svg']>;
333
335
  ToolAddFile: React.ComponentType<JSX.IntrinsicElements['svg']>;
@@ -560,6 +562,8 @@ export declare type IconTypes = {
560
562
  TypeIntIcon: React.ComponentType<JSX.IntrinsicElements['svg']>;
561
563
  TypeString: React.ComponentType<JSX.IntrinsicElements['svg']>;
562
564
  TypeStringIcon: React.ComponentType<JSX.IntrinsicElements['svg']>;
565
+ Upload: React.ComponentType<JSX.IntrinsicElements['svg']>;
566
+ UploadIcon: React.ComponentType<JSX.IntrinsicElements['svg']>;
563
567
  User: React.ComponentType<JSX.IntrinsicElements['svg']>;
564
568
  UserIcon: React.ComponentType<JSX.IntrinsicElements['svg']>;
565
569
  Utilization: React.ComponentType<JSX.IntrinsicElements['svg']>;
@@ -1219,6 +1219,10 @@ React.createElement("g", null, /*#__PURE__*/React.createElement("path", {
1219
1219
  React.createElement("path", {
1220
1220
  d: "M8 6a2 2 0 00-2 2v8a2 2 0 002 2h8a2 2 0 002-2V8a2 2 0 00-2-2H8zm1 3a1 1 0 000 2h1.699a.3.3 0 01.3.298L11 11.5V15a1 1 0 102 0v-3.697a.3.3 0 01.3-.3c.687-.003.588-.003-.296-.003H15a1 1 0 100-2H9z",
1221
1221
  fillRule: "evenodd"
1222
+ }),Upload: /*#__PURE__*/
1223
+ React.createElement("path", {
1224
+ d: "M5.667 4.496A1 1 0 016.531 4H17.47a1 1 0 01.863.496l1.532 2.625a1 1 0 01.136.504v10.5C20 19.16 19.16 20 18.125 20H5.875A1.875 1.875 0 014 18.125v-10.5a1 1 0 01.136-.504l1.531-2.625zM7.106 6L6 7.895v.058h12v-.058L16.894 6H7.106zm1.929 6.134l2.4-2.4a.8.8 0 011.13 0l2.4 2.4a.8.8 0 01-.564 1.366H13v3a1 1 0 01-2 0v-3H9.6a.8.8 0 01-.566-1.366z",
1225
+ fillRule: "evenodd"
1222
1226
  }),User: /*#__PURE__*/
1223
1227
  React.createElement("path", {
1224
1228
  d: "M15.818 8.5a3.817 3.817 0 10-7.635 0v.637a3.817 3.817 0 107.635 0V8.5zm2.943 8.965c-.941-1.223-4.212-2.721-6.76-2.721-2.55 0-5.82 1.498-6.762 2.721-.581.757-.027 1.852.927 1.852h11.668c.954 0 1.508-1.095.927-1.852z"
@@ -1,14 +1,21 @@
1
1
  /// <reference types="react" />
2
- declare type LogoTDProps = {
2
+ export declare type LogoVariants = 'themed' | 'light' | 'dark' | 'v4';
3
+ export declare type LogoTDProps = {
4
+ /** CSS class to apply to the overall SVG */
3
5
  className?: string;
6
+ /** Width of the logo */
4
7
  width?: number | string;
8
+ /** Height of the logo */
5
9
  height?: number | string;
10
+ /** Variant of the logo to display */
11
+ variant?: LogoVariants;
6
12
  };
7
- declare function LogoTD({ className, width, height }: LogoTDProps): JSX.Element;
13
+ declare function LogoTD({ className, width, height, variant }: LogoTDProps): JSX.Element;
8
14
  declare namespace LogoTD {
9
15
  var defaultProps: {
10
16
  width: number;
11
17
  height: number;
18
+ variant: string;
12
19
  };
13
20
  }
14
21
  export default LogoTD;
@@ -1,254 +1,75 @@
1
1
  import { jsx as ___EmotionJSX } from "@emotion/core";
2
2
  if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
3
3
  if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
4
+
5
+ /*
6
+ Logo component
7
+ */
4
8
  import React from 'react';
5
9
  import { useTheme } from 'emotion-theming';
6
- export default function LogoTD(_ref) {
10
+ import LogoV4 from './LogoV4';
11
+ import LogoLight from './LogoLight';
12
+ import LogoDark from './LogoDark';
13
+
14
+ function LogoTD(_ref) {
7
15
  var className = _ref.className,
8
16
  width = _ref.width,
9
- height = _ref.height;
10
- var theme = useTheme();
11
- return theme.name === 'v4' ? ___EmotionJSX("svg", {
12
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg"),
13
- className: className,
14
- width: width,
15
- height: height,
16
- viewBox: "0 0 353.6 237.4"
17
- }, ___EmotionJSX("defs", {
18
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs")
19
- }, ___EmotionJSX("linearGradient", {
20
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient"),
21
- id: "SVGID_1_",
22
- gradientUnits: "userSpaceOnUse",
23
- x1: "2.362120e-03",
24
- y1: "118.8676",
25
- x2: "353.584",
26
- y2: "118.8676"
27
- }, ___EmotionJSX("stop", {
28
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
29
- offset: "0",
30
- stopColor: "#1DAEDA"
31
- }), ___EmotionJSX("stop", {
32
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
33
- offset: "1",
34
- stopColor: "#0FA0CB"
35
- })), ___EmotionJSX("linearGradient", {
36
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient"),
37
- id: "SVGID_2_",
38
- gradientUnits: "userSpaceOnUse",
39
- x1: "58.216",
40
- y1: "51.51",
41
- x2: "295.9319",
42
- y2: "51.51"
43
- }, ___EmotionJSX("stop", {
44
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
45
- offset: "0",
46
- stopColor: "#26B7E3"
47
- }), ___EmotionJSX("stop", {
48
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
49
- offset: "1",
50
- stopColor: "#18A9D4"
51
- })), ___EmotionJSX("linearGradient", {
52
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient"),
53
- id: "SVGID_3_",
54
- gradientUnits: "userSpaceOnUse",
55
- x1: "226.5078",
56
- y1: "51.9693",
57
- x2: "353.5605",
58
- y2: "51.9693"
59
- }, ___EmotionJSX("stop", {
60
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
61
- offset: "0",
62
- stopColor: "#3ECFFB"
63
- }), ___EmotionJSX("stop", {
64
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
65
- offset: "0.4669",
66
- stopColor: "#2ABBE6"
67
- }), ___EmotionJSX("stop", {
68
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
69
- offset: "0.9249",
70
- stopColor: "#12A3CE"
71
- })), ___EmotionJSX("linearGradient", {
72
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient"),
73
- id: "SVGID_4_",
74
- gradientUnits: "userSpaceOnUse",
75
- x1: "3.213214e-02",
76
- y1: "51.8688",
77
- x2: "226.5078",
78
- y2: "51.8688"
79
- }, ___EmotionJSX("stop", {
80
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
81
- offset: "0",
82
- stopColor: "#1DAEDA"
83
- }), ___EmotionJSX("stop", {
84
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
85
- offset: "1",
86
- stopColor: "#0FA0CB"
87
- })), ___EmotionJSX("linearGradient", {
88
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient"),
89
- id: "SVGID_5_",
90
- gradientUnits: "userSpaceOnUse",
91
- x1: "177.8656",
92
- y1: "149.2371",
93
- x2: "353.4923",
94
- y2: "149.2371"
95
- }, ___EmotionJSX("stop", {
96
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
97
- offset: "0",
98
- stopColor: "#10A1CD"
99
- }), ___EmotionJSX("stop", {
100
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
101
- offset: "1",
102
- stopColor: "#0798C4"
103
- })), ___EmotionJSX("linearGradient", {
104
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient"),
105
- id: "SVGID_6_",
106
- gradientUnits: "userSpaceOnUse",
107
- x1: "59.8041",
108
- y1: "165.8567",
109
- x2: "212.2605",
110
- y2: "77.8359"
111
- }, ___EmotionJSX("stop", {
112
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
113
- offset: "0",
114
- stopColor: "#0FA0CC"
115
- }), ___EmotionJSX("stop", {
116
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
117
- offset: "0.5867",
118
- stopColor: "#0686AE"
119
- }), ___EmotionJSX("stop", {
120
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
121
- offset: "0.9435",
122
- stopColor: "#027BA1"
123
- }))), ___EmotionJSX("g", {
124
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g")
125
- }, ___EmotionJSX("path", {
126
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g", "path"),
127
- fill: "url(#SVGID_1_)",
128
- d: "M53.2,4.4L2,55.5c-2.7,2.7-2.7,7.1,0,9.8l169.9,169.9c2.7,2.7,7.1,2.7,9.8,0L351.6,65.3c2.7-2.7,2.7-7.1,0-9.8L300.4,4.4c-2.5-2.5-5.8-3.8-9.3-3.8H62.4C59,0.5,55.6,1.9,53.2,4.4z"
129
- }), ___EmotionJSX("path", {
130
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g", "path"),
131
- fill: "url(#SVGID_2_)",
132
- d: "M226.5,102.5l69.4-101c-1.5-0.6-3.1-0.9-4.8-0.9H62.4c-1.5,0-2.9,0.3-4.2,0.7L226.5,102.5z"
133
- }), ___EmotionJSX("path", {
134
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g", "path"),
135
- fill: "url(#SVGID_3_)",
136
- d: "M226.5,102.5l127-41.1c0.3-2.1-0.3-4.3-1.9-5.8L300.4,4.4c-1.3-1.3-2.8-2.3-4.5-2.9L226.5,102.5z"
137
- }), ___EmotionJSX("path", {
138
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g", "path"),
139
- fill: "url(#SVGID_4_)",
140
- d: "M58.2,1.2c-1.9,0.6-3.6,1.7-5,3.1L2,55.5c-1.5,1.5-2.1,3.5-2,5.4l226.5,41.5L58.2,1.2z"
141
- }), ___EmotionJSX("path", {
142
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g", "path"),
143
- fill: "url(#SVGID_5_)",
144
- d: "M353.5,61.4l-127,41.1l-48.6,134.6c1.4-0.2,2.7-0.8,3.8-1.9L351.6,65.3C352.7,64.2,353.3,62.8,353.5,61.4z"
145
- }), ___EmotionJSX("path", {
146
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g", "path"),
147
- fill: "url(#SVGID_6_)",
148
- d: "M0,61L0,61c0.1,1.6,0.8,3.1,2,4.4l169.9,169.9c1.6,1.6,3.9,2.3,6,1.9l0,0l48.6-134.6L0,61z"
149
- }))) : ___EmotionJSX("svg", {
150
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg"),
151
- width: "31",
152
- height: "21",
153
- viewBox: "0 0 31 21",
154
- fill: "none",
155
- xmlns: "http://www.w3.org/2000/svg"
156
- }, ___EmotionJSX("g", {
157
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g"),
158
- clipPath: "url(#clip0)"
159
- }, ___EmotionJSX("path", {
160
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g", "path"),
161
- d: "M16.3172 20.5608L30.1146 6.52144C30.3912 6.23992 30.5465 5.85816 30.5465 5.4601C30.5465 5.06204 30.3912 4.68027 30.1146 4.39876L26.4913 0.710614C26.2698 0.485271 26.0068 0.306532 25.7174 0.184603C25.428 0.0626741 25.1179 -5.76524e-05 24.8046 -7.59947e-06H5.74369C5.43046 -5.76524e-05 5.12029 0.0626741 4.8309 0.184603C4.5415 0.306532 4.27853 0.485271 4.05703 0.710614L0.433732 4.39876C0.157159 4.68027 0.00179291 5.06204 0.00179291 5.4601C0.00179291 5.85816 0.157159 6.23992 0.433732 6.52144L14.2311 20.5608C14.5078 20.8422 14.883 21.0003 15.2742 21.0003C15.6654 21.0003 16.0405 20.8422 16.3172 20.5608Z",
162
- fill: "url(#paint0_linear)"
163
- }), ___EmotionJSX("path", {
164
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g", "path"),
165
- opacity: "0.4",
166
- d: "M3.95572 0.81288C4.20159 0.563066 4.5044 0.379051 4.83715 0.277248C5.16989 0.175446 5.52222 0.15902 5.86272 0.229436L29.8213 5.18411C29.928 5.2064 30.0286 5.25261 30.1155 5.31939C30.2025 5.38617 30.2738 5.47184 30.3241 5.57017C30.3745 5.6685 30.4027 5.77701 30.4066 5.88781C30.4106 5.99861 30.3902 6.10892 30.347 6.21071C30.5097 5.92473 30.5751 5.59207 30.5329 5.26442C30.4907 4.93677 30.3434 4.63246 30.1138 4.39876L26.4905 0.710614C26.269 0.485271 26.006 0.306532 25.7166 0.184603C25.4272 0.0626741 25.1171 -5.76525e-05 24.8038 -7.59947e-06H5.74289C5.42966 -5.76525e-05 5.11949 0.0626741 4.83009 0.184603C4.54069 0.306532 4.27773 0.485271 4.05622 0.710614L3.95572 0.81288Z",
167
- fill: "url(#paint1_linear)"
168
- }), ___EmotionJSX("path", {
169
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g", "path"),
170
- opacity: "0.4",
171
- d: "M25.2782 1.06978L23.8763 3.95421L29.828 5.18534C29.9347 5.20763 30.0352 5.25384 30.1222 5.32062C30.2092 5.3874 30.2804 5.47307 30.3308 5.5714C30.3811 5.66973 30.4093 5.77824 30.4133 5.88904C30.4172 5.99985 30.3969 6.11015 30.3537 6.21194C30.5164 5.92596 30.5817 5.5933 30.5396 5.26565C30.4974 4.938 30.3501 4.63369 30.1204 4.39999L26.4907 0.710534C26.2692 0.485191 26.0062 0.306452 25.7168 0.184523C25.4274 0.0625943 25.1173 -0.000137481 24.804 -8.74283e-05H24.6198C24.7442 -0.00116846 24.8668 0.0302137 24.9759 0.0910635C25.085 0.151913 25.177 0.240201 25.243 0.347499C25.3091 0.454797 25.347 0.577525 25.3531 0.70397C25.3593 0.830415 25.3335 0.956357 25.2782 1.06978Z",
172
- fill: "url(#paint2_linear)"
173
- }), ___EmotionJSX("path", {
174
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "g", "path"),
175
- d: "M30.3469 6.21076C30.3902 6.10897 30.4105 5.99866 30.4066 5.88786C30.4026 5.77706 30.3744 5.66855 30.3241 5.57022C30.2737 5.4719 30.2025 5.38622 30.1155 5.31944C30.0285 5.25266 29.928 5.20645 29.8212 5.18416L23.8696 3.95303L15.8808 20.3746C15.7778 20.5876 15.6036 20.7563 15.3894 20.8505C15.1753 20.9447 14.9352 20.9582 14.7121 20.8886C14.9815 21.0022 15.278 21.0319 15.564 20.9741C15.85 20.9162 16.1127 20.7733 16.3189 20.5634L30.1137 6.52149C30.2046 6.42886 30.2831 6.32437 30.3469 6.21076Z",
176
- fill: "url(#paint3_linear)"
177
- })), ___EmotionJSX("defs", {
178
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs")
179
- }, ___EmotionJSX("linearGradient", {
180
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient"),
181
- id: "paint0_linear",
182
- x1: "9.54538",
183
- y1: "14.7954",
184
- x2: "18.3355",
185
- y2: "1.56416",
186
- gradientUnits: "userSpaceOnUse"
187
- }, ___EmotionJSX("stop", {
188
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
189
- stopColor: "#EFECFF"
190
- }), ___EmotionJSX("stop", {
191
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
192
- offset: "1",
193
- stopColor: "#A4C9EB"
194
- })), ___EmotionJSX("linearGradient", {
195
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient"),
196
- id: "paint1_linear",
197
- x1: "18.1359",
198
- y1: "1.90908",
199
- x2: "19.2014",
200
- y2: "-4.73774",
201
- gradientUnits: "userSpaceOnUse"
202
- }, ___EmotionJSX("stop", {
203
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
204
- offset: "0.07",
205
- stopColor: "white"
206
- }), ___EmotionJSX("stop", {
207
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
208
- offset: "0.89",
209
- stopColor: "#009FFF"
210
- })), ___EmotionJSX("linearGradient", {
211
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient"),
212
- id: "paint2_linear",
213
- x1: "3743.52",
214
- y1: "1482.75",
215
- x2: "4101.12",
216
- y2: "1154.22",
217
- gradientUnits: "userSpaceOnUse"
218
- }, ___EmotionJSX("stop", {
219
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
220
- offset: "0.07",
221
- stopColor: "white"
222
- }), ___EmotionJSX("stop", {
223
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
224
- offset: "0.89",
225
- stopColor: "#009FFF"
226
- })), ___EmotionJSX("linearGradient", {
227
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient"),
228
- id: "paint3_linear",
229
- x1: "19.5678",
230
- y1: "10.4999",
231
- x2: "27.7267",
232
- y2: "14.7077",
233
- gradientUnits: "userSpaceOnUse"
234
- }, ___EmotionJSX("stop", {
235
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
236
- stopColor: "#EAF0FF"
237
- }), ___EmotionJSX("stop", {
238
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "linear-gradient", "stop"),
239
- offset: "0.98",
240
- stopColor: "#7BA2CB"
241
- })), ___EmotionJSX("clipPath", {
242
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "clip-path"),
243
- id: "clip0"
244
- }, ___EmotionJSX("rect", {
245
- "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "svg", "defs", "clip-path", "rect"),
246
- width: "30.5455",
247
- height: "21",
248
- fill: "white"
249
- }))));
17
+ height = _ref.height,
18
+ variant = _ref.variant;
19
+ var theme = useTheme(); // return the relevant logo based on the variant - if the type is 'themed'
20
+ // then return the logo matching the selected theme.
21
+
22
+ switch (variant) {
23
+ case 'dark':
24
+ return ___EmotionJSX(LogoDark, {
25
+ "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "logo-dark"),
26
+ className: className,
27
+ width: width,
28
+ height: height
29
+ });
30
+
31
+ case 'light':
32
+ return ___EmotionJSX(LogoLight, {
33
+ "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "logo-light"),
34
+ className: className,
35
+ width: width,
36
+ height: height
37
+ });
38
+
39
+ case 'v4':
40
+ return ___EmotionJSX(LogoV4, {
41
+ "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "logo-v4"),
42
+ className: className,
43
+ width: width,
44
+ height: height
45
+ });
46
+
47
+ case 'themed':
48
+ default:
49
+ // return a theme specific logo
50
+ if (theme.name === 'v4') {
51
+ return ___EmotionJSX(LogoV4, {
52
+ "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "logo-v4"),
53
+ className: className,
54
+ width: width,
55
+ height: height
56
+ });
57
+ }
58
+
59
+ return ___EmotionJSX(LogoLight, {
60
+ "data-gs": gs("src", "logo", "logo.tsx", "logo-td", "logo-light"),
61
+ className: className,
62
+ width: width,
63
+ height: height
64
+ });
65
+ }
250
66
  }
67
+
251
68
  LogoTD.defaultProps = {
252
- width: 205,
253
- height: 146
254
- };
69
+ width: 30,
70
+ height: 21,
71
+ variant: 'themed'
72
+ }; // export default is now at the bottom of the file so StoryBook could correctly
73
+ // pick out the properties so that they can be changed
74
+
75
+ export default LogoTD;
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { LogoTDProps } from './Logo';
3
+ declare function LogoDark({ className, width, height }: LogoTDProps): JSX.Element;
4
+ declare namespace LogoDark {
5
+ var defaultProps: {
6
+ width: number;
7
+ height: number;
8
+ };
9
+ }
10
+ export default LogoDark;
11
+ //# sourceMappingURL=LogoDark.d.ts.map
@@ -0,0 +1,119 @@
1
+ import { jsx as ___EmotionJSX } from "@emotion/core";
2
+ if (typeof window !== "undefined" && !window.gs) window.gs = function () {};
3
+ if (typeof window !== "undefined" && !window.gsC) window.gsC = function () {};
4
+
5
+ /*
6
+ Logo used in td-crystal - Dark version
7
+
8
+ Used in: TD Marketplace
9
+ */
10
+ import React from 'react';
11
+ export default function LogoDark(_ref) {
12
+ var className = _ref.className,
13
+ width = _ref.width,
14
+ height = _ref.height;
15
+ return ___EmotionJSX("svg", {
16
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg"),
17
+ width: width,
18
+ height: height,
19
+ className: className,
20
+ version: "1.1",
21
+ viewBox: "0 0 30 21",
22
+ xmlns: "http://www.w3.org/2000/svg"
23
+ }, ___EmotionJSX("defs", {
24
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs")
25
+ }, ___EmotionJSX("linearGradient", {
26
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs", "linear-gradient"),
27
+ id: "a-6",
28
+ x1: "489.81",
29
+ x2: "545.14",
30
+ y1: "508.1",
31
+ y2: "603.95",
32
+ gradientTransform: "matrix(1 0 0 -1 -542.85 580.46)",
33
+ gradientUnits: "userSpaceOnUse"
34
+ }, ___EmotionJSX("stop", {
35
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs", "linear-gradient", "stop"),
36
+ stopColor: "#85f",
37
+ offset: "0"
38
+ }), ___EmotionJSX("stop", {
39
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs", "linear-gradient", "stop"),
40
+ stopColor: "#00b6ff",
41
+ offset: "1"
42
+ })), ___EmotionJSX("linearGradient", {
43
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs", "linear-gradient"),
44
+ id: "linearGradient3192",
45
+ x1: "530.33",
46
+ x2: "540.4",
47
+ y1: "569.98",
48
+ y2: "611.57",
49
+ gradientTransform: "matrix(1 0 0 -1 -542.85 580.46)",
50
+ gradientUnits: "userSpaceOnUse"
51
+ }), ___EmotionJSX("linearGradient", {
52
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs", "linear-gradient"),
53
+ id: "b-8",
54
+ x1: "530.33",
55
+ x2: "540.4",
56
+ y1: "569.98",
57
+ y2: "611.57",
58
+ gradientTransform: "matrix(1,0,0,-1,0,1080)",
59
+ gradientUnits: "userSpaceOnUse"
60
+ }, ___EmotionJSX("stop", {
61
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs", "linear-gradient", "stop"),
62
+ stopColor: "#fff",
63
+ offset: ".07"
64
+ }), ___EmotionJSX("stop", {
65
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs", "linear-gradient", "stop"),
66
+ stopColor: "#009fff",
67
+ offset: ".89"
68
+ })), ___EmotionJSX("linearGradient", {
69
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs", "linear-gradient"),
70
+ id: "c-5",
71
+ x1: "569.17",
72
+ x2: "604.29",
73
+ y1: "565.3",
74
+ y2: "595.33",
75
+ gradientTransform: "translate(-542.85 -499.54)"
76
+ }), ___EmotionJSX("linearGradient", {
77
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs", "linear-gradient"),
78
+ id: "d",
79
+ x1: "523.4",
80
+ x2: "578.42",
81
+ y1: "539.16",
82
+ y2: "520.11",
83
+ gradientTransform: "matrix(1 0 0 -1 -542.85 580.46)",
84
+ gradientUnits: "userSpaceOnUse"
85
+ }, ___EmotionJSX("stop", {
86
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs", "linear-gradient", "stop"),
87
+ stopColor: "#4036c1",
88
+ offset: "0"
89
+ }), ___EmotionJSX("stop", {
90
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "defs", "linear-gradient", "stop"),
91
+ stopColor: "#539eff",
92
+ offset: ".98"
93
+ }))), ___EmotionJSX("g", {
94
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "g"),
95
+ transform: "matrix(.20552 0 0 .20552 19.308 1.8254)"
96
+ }, ___EmotionJSX("path", {
97
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "g", "path"),
98
+ d: "m-15.956 87.688 65.9-65.91a7.06 7.06 0 0 0 0-10l-17.31-17.32a11.36 11.36 0 0 0-8.05-3.34h-91a11.4 11.4 0 0 0-8.06 3.34l-17.37 17.35a7 7 0 0 0-0.1 9.9l0.1 0.1 65.9 65.91a7.06 7.06 0 0 0 10 0z",
99
+ fill: "url(#a-6)"
100
+ }), ___EmotionJSX("path", {
101
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "g", "path"),
102
+ d: "m-75.006-5.0117a10 10 0 0 1 9.11-2.74l114.44 23.21a3.51 3.51 0 0 1 2.73 4.13 3.26 3.26 0 0 1-0.22 0.69 7 7 0 0 0-1.11-8.5l-17.31-17.32a11.36 11.36 0 0 0-8.05-3.34h-91a11.4 11.4 0 0 0-8.06 3.34z",
103
+ fill: "url(#linearGradient3192)",
104
+ opacity: ".4"
105
+ }), ___EmotionJSX("path", {
106
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "g", "path"),
107
+ d: "m26.814-3.8117-6.66 13.53 28.39 5.74a3.51 3.51 0 0 1 2.73 4.13 3.26 3.26 0 0 1-0.22 0.69 7 7 0 0 0-1.11-8.5l-17.31-17.32a11.36 11.36 0 0 0-8.05-3.34h-0.88a3.48 3.48 0 0 1 3.11 5.06z",
108
+ fill: "url(#c-5)",
109
+ opacity: ".4"
110
+ }), ___EmotionJSX("path", {
111
+ "data-gs": gs("src", "logo", "logodark.tsx", "logo-dark", "svg", "g", "path"),
112
+ d: "m51.054 20.318a3.5 3.5 0 0 0-1.82-4.6 3.26 3.26 0 0 0-0.69-0.22l-28.39-5.78-38.2 77.09a4.69 4.69 0 0 1-5.59 2.4 7.06 7.06 0 0 0 7.68-1.52l65.9-65.91a6.33 6.33 0 0 0 1.11-1.46z",
113
+ fill: "url(#d)"
114
+ })));
115
+ }
116
+ LogoDark.defaultProps = {
117
+ width: 30,
118
+ height: 21
119
+ };
@@ -0,0 +1,11 @@
1
+ /// <reference types="react" />
2
+ import type { LogoTDProps } from './Logo';
3
+ declare function LogoLight({ className, width, height }: LogoTDProps): JSX.Element;
4
+ declare namespace LogoLight {
5
+ var defaultProps: {
6
+ width: number;
7
+ height: number;
8
+ };
9
+ }
10
+ export default LogoLight;
11
+ //# sourceMappingURL=LogoLight.d.ts.map