Skip to content

Commit f4ffb45

Browse files
committed
changed seperator node type from div to span in IndicatorIcons component; update storybook code block color scheme
1 parent 30b1de1 commit f4ffb45

File tree

13 files changed

+101
-98
lines changed

13 files changed

+101
-98
lines changed

.storybook/manager-head.html

Lines changed: 27 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<style lang="css">
22
#panel-tab-content {
3-
background: #282c34 !important;
3+
background: #292d3e !important;
44
}
55

66
#storybook-panel-root .os-content > pre {
@@ -11,7 +11,6 @@
1111
tab-size: 4;
1212
hyphens: none;
1313
text-align: left;
14-
text-shadow: black 0px -0.1em 0.2em;
1514
overflow-wrap: normal;
1615
font-size: 14px;
1716
line-height: 20px;
@@ -31,7 +30,7 @@
3130
#storybook-panel-root .os-content > pre > div > span > a,
3231
#storybook-panel-root .os-content > pre > div:last-of-type .token.script,
3332
#storybook-panel-root .os-content > pre > div:last-of-type .token.parameter {
34-
color: #fff;
33+
color: #A6ACCD;
3534
}
3635

3736
#storybook-panel-root .os-content > pre > div,
@@ -40,46 +39,38 @@
4039
font-family: Consolas, Monaco, "Andale Mono", "Ubuntu Mono", monospace;
4140
}
4241

42+
#storybook-panel-root .os-content > pre > div:last-of-type .token.comment,
4343
#storybook-panel-root .os-content > pre > div:last-of-type .comment.linenumber {
44-
color: #c4c4c6;
45-
}
46-
47-
#storybook-panel-root .os-content > pre > div:last-of-type .token.comment {
48-
color: #b2b2b2;
49-
}
50-
51-
#storybook-panel-root .os-content > pre > div:last-of-type .token.keyword,
52-
#storybook-panel-root .os-content > pre > div:last-of-type .token.selector,
53-
#storybook-panel-root .os-content > pre > div:last-of-type .token.builtin,
54-
#storybook-panel-root .os-content > pre > div:last-of-type .token.keyword.nil,
55-
#storybook-panel-root .os-content > pre > div:last-of-type .token.keyword.null,
56-
#storybook-panel-root .os-content > pre > div:last-of-type .token.important,
57-
#storybook-panel-root .os-content > pre > div:last-of-type .token.atrule,
58-
#storybook-panel-root .os-content > pre > div:last-of-type .token.attr-name,
59-
#storybook-panel-root .os-content > pre > div:last-of-type .token.tag.attr-name {
60-
color: #c5a5c5;
44+
color: #676E95;
6145
}
6246

6347
#storybook-panel-root .os-content > pre > div:last-of-type .token.tag {
64-
color:#fc929e;
48+
color:#F07178;
6549
}
6650

51+
#storybook-panel-root .os-content > pre > div:last-of-type .token.keyword.module,
6752
#storybook-panel-root .os-content > pre > div:last-of-type .token.entity,
6853
#storybook-panel-root .os-content > pre > div:last-of-type .token.url,
6954
#storybook-panel-root .os-content > pre > div:last-of-type .token.operator,
7055
#storybook-panel-root .os-content > pre > div:last-of-type .token.variable,
71-
#storybook-panel-root .os-content > pre > div:last-of-type .token.script.operator {
72-
color: #C7C7C7;
73-
}
74-
56+
#storybook-panel-root .os-content > pre > div:last-of-type .token.script.operator,
7557
#storybook-panel-root .os-content > pre > div:last-of-type .token.punctuation,
7658
#storybook-panel-root .os-content > pre > div:last-of-type .token.attr-value.punctuation,
7759
#storybook-panel-root .os-content > pre > div:last-of-type .token.script.punctuation {
78-
color: #88c6be;
60+
color: #89DDFF;
7961
}
8062

81-
#storybook-panel-root .os-content > pre > div:last-of-type .token.function {
82-
color: #79b6f2;
63+
#storybook-panel-root .os-content > pre > div:last-of-type .token.arrow.operator,
64+
#storybook-panel-root .os-content > pre > div:last-of-type .token.keyword,
65+
#storybook-panel-root .os-content > pre > div:last-of-type .token.selector,
66+
#storybook-panel-root .os-content > pre > div:last-of-type .token.builtin,
67+
#storybook-panel-root .os-content > pre > div:last-of-type .token.keyword.nil,
68+
#storybook-panel-root .os-content > pre > div:last-of-type .token.keyword.null,
69+
#storybook-panel-root .os-content > pre > div:last-of-type .token.important,
70+
#storybook-panel-root .os-content > pre > div:last-of-type .token.atrule,
71+
#storybook-panel-root .os-content > pre > div:last-of-type .token.attr-name,
72+
#storybook-panel-root .os-content > pre > div:last-of-type .token.tag.attr-name {
73+
color: #c792ea;
8374
}
8475

8576
#storybook-panel-root .os-content > pre > div:last-of-type .token.property,
@@ -88,11 +79,11 @@
8879
#storybook-panel-root .os-content > pre > div:last-of-type .token.number,
8980
#storybook-panel-root .os-content > pre > div:last-of-type .token.constant,
9081
#storybook-panel-root .os-content > pre > div:last-of-type .token.symbol {
91-
color: #5a9bcf;
82+
color: #F78C6C;
9283
}
9384

9485
#storybook-panel-root .os-content > pre > div:last-of-type .token.boolean {
95-
color: #ff8b50;
86+
color: #FF9CAC;
9687
}
9788

9889
#storybook-panel-root .os-content > pre > div:last-of-type .token.class-name,
@@ -101,14 +92,18 @@
10192
#storybook-panel-root .os-content > pre > div:last-of-type .token.maybe-class-name,
10293
#storybook-panel-root .os-content > pre > div:last-of-type .token.known-class-name,
10394
#storybook-panel-root .os-content > pre > div:last-of-type .token.hexdiv {
104-
color: #fac863;
95+
color: #FFCB6B;
96+
}
97+
98+
#storybook-panel-root .os-content > pre > div:last-of-type .token.function {
99+
color: #82AAFF;
105100
}
106101

107102
#storybook-panel-root .os-content > pre > div:last-of-type .token.string,
108103
#storybook-panel-root .os-content > pre > div:last-of-type .token.char,
109104
#storybook-panel-root .os-content > pre > div:last-of-type .token.regex,
110105
#storybook-panel-root .os-content > pre > div:last-of-type .token.attr-value,
111106
#storybook-panel-root .os-content > pre > div:last-of-type .token.unit {
112-
color: #8dc891;
107+
color: #C3E88D;
113108
}
114109
</style>

__stories__/helpers/components/CodeMarkup.tsx

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,22 @@ const CodeMarkupContainer = styled.div`
2222
overflow: hidden;
2323
border-radius: 5px;
2424
margin: 1rem 1.5rem;
25-
background: #282c34;
25+
background: #292d3e;
2626
2727
${MEDIA_QUERY_IS_MOBILE} {
2828
margin: 1rem 0;
2929
}
3030
`;
3131

3232
const Header = styled.div`
33-
color: #999;
3433
font-size: 14px;
3534
padding: 0 .9rem;
3635
font-weight: 700;
3736
line-height: 2.95;
3837
letter-spacing: 0.05em;
3938
text-transform: uppercase;
40-
background-color: #20232a;
39+
color: rgba(235, 235, 235, 0.45);
40+
background-color: rgba(0, 0, 0, 0.2);
4141
`;
4242

4343
const PreContainer = styled.div`
@@ -54,38 +54,46 @@ const PreContainer = styled.div`
5454
5555
> code {
5656
padding: 0;
57+
color: #A6ACCD !important;
5758
font-size: 14px !important;
5859
font-weight: 400 !important;
5960
line-height: 20px !important;
60-
text-shadow: black 0px -0.1em 0.2em !important;
61+
text-shadow: none !important;
6162
6263
.boolean {
63-
color: #ff8b50;
64+
color: #FF9CAC;
65+
}
66+
67+
.number {
68+
color: #F78C6C;
6469
}
6570
66-
.number,
6771
.function {
68-
color: #79b6f2;
72+
color: #82AAFF;
6973
}
7074
7175
.tag {
72-
color: #fc929e;
76+
color: #F07178;
7377
}
7478
7579
.attr-name {
76-
color: #c5a5c5;
80+
color: #c792ea;
7781
}
7882
7983
.string,
8084
.tag.attr-value {
81-
color: #8dc891;
85+
color: #C3E88D;
86+
}
87+
88+
.property {
89+
color: #F07178;
8290
}
8391
8492
.operator,
8593
.token.punctuation,
8694
.tag.punctuation,
8795
.tag.attr-value.punctuation {
88-
color: #88c6be;
96+
color: #89DDFF;
8997
}
9098
}
9199
}

__stories__/helpers/constants/markup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export const CLASS_NAME_HTML =
3939
/>
4040
</svg>
4141
</div>
42-
<div />
42+
<span />
4343
<div>
4444
<div
4545
aria-hidden="true"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
export const STYLED_COMPONENTS_PACKAGE = {
22
name: 'styled-components',
33
href: 'https://www.styled-components.com'
4-
};
4+
} as const;
55

66
export const REACT_WINDOW_PACKAGE = {
77
name: 'react-window',
88
href: 'https://github.com/bvaughn/react-window'
9-
};
9+
} as const;

__stories__/helpers/constants/svg-props.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,23 +3,23 @@ import type { SVGProps } from 'react';
33
export const CHEVRON_SVG_PROPS = {
44
'aria-hidden': true,
55
viewBox: '0 0 448 512'
6-
};
6+
} as const;
77

88
export const CHEVRON_DOWN_PATH_PROPS: SVGProps<SVGPathElement> = {
99
d: 'M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z'
10-
};
10+
} as const;
1111

1212
export const REACT_SVG_PROPS = {
1313
'aria-hidden': true,
1414
viewBox: '0 0 841.9 595.3'
15-
};
15+
} as const;
1616

1717
export const REACT_SVG_PATH_PROPS: SVGProps<SVGPathElement> = {
1818
d: 'M666.3 296.5c0-32.5-40.7-63.3-103.1-82.4 14.4-63.6 8-114.2-20.2-130.4-6.5-3.8-14.1-5.6-22.4-5.6v22.3c4.6 0 8.3.9 11.4 2.6 13.6 7.8 19.5 37.5 14.9 75.7-1.1 9.4-2.9 19.3-5.1 29.4-19.6-4.8-41-8.5-63.5-10.9-13.5-18.5-27.5-35.3-41.6-50 32.6-30.3 63.2-46.9 84-46.9V78c-27.5 0-63.5 19.6-99.9 53.6-36.4-33.8-72.4-53.2-99.9-53.2v22.3c20.7 0 51.4 16.5 84 46.6-14 14.7-28 31.4-41.3 49.9-22.6 2.4-44 6.1-63.6 11-2.3-10-4-19.7-5.2-29-4.7-38.2 1.1-67.9 14.6-75.8 3-1.8 6.9-2.6 11.5-2.6V78.5c-8.4 0-16 1.8-22.6 5.6-28.1 16.2-34.4 66.7-19.9 130.1-62.2 19.2-102.7 49.9-102.7 82.3 0 32.5 40.7 63.3 103.1 82.4-14.4 63.6-8 114.2 20.2 130.4 6.5 3.8 14.1 5.6 22.5 5.6 27.5 0 63.5-19.6 99.9-53.6 36.4 33.8 72.4 53.2 99.9 53.2 8.4 0 16-1.8 22.6-5.6 28.1-16.2 34.4-66.7 19.9-130.1 62-19.1 102.5-49.9 102.5-82.3zm-130.2-66.7c-3.7 12.9-8.3 26.2-13.5 39.5-4.1-8-8.4-16-13.1-24-4.6-8-9.5-15.8-14.4-23.4 14.2 2.1 27.9 4.7 41 7.9zm-45.8 106.5c-7.8 13.5-15.8 26.3-24.1 38.2-14.9 1.3-30 2-45.2 2-15.1 0-30.2-.7-45-1.9-8.3-11.9-16.4-24.6-24.2-38-7.6-13.1-14.5-26.4-20.8-39.8 6.2-13.4 13.2-26.8 20.7-39.9 7.8-13.5 15.8-26.3 24.1-38.2 14.9-1.3 30-2 45.2-2 15.1 0 30.2.7 45 1.9 8.3 11.9 16.4 24.6 24.2 38 7.6 13.1 14.5 26.4 20.8 39.8-6.3 13.4-13.2 26.8-20.7 39.9zm32.3-13c5.4 13.4 10 26.8 13.8 39.8-13.1 3.2-26.9 5.9-41.2 8 4.9-7.7 9.8-15.6 14.4-23.7 4.6-8 8.9-16.1 13-24.1zM421.2 430c-9.3-9.6-18.6-20.3-27.8-32 9 .4 18.2.7 27.5.7 9.4 0 18.7-.2 27.8-.7-9 11.7-18.3 22.4-27.5 32zm-74.4-58.9c-14.2-2.1-27.9-4.7-41-7.9 3.7-12.9 8.3-26.2 13.5-39.5 4.1 8 8.4 16 13.1 24 4.7 8 9.5 15.8 14.4 23.4zM420.7 163c9.3 9.6 18.6 20.3 27.8 32-9-.4-18.2-.7-27.5-.7-9.4 0-18.7.2-27.8.7 9-11.7 18.3-22.4 27.5-32zm-74 58.9c-4.9 7.7-9.8 15.6-14.4 23.7-4.6 8-8.9 16-13 24-5.4-13.4-10-26.8-13.8-39.8 13.1-3.1 26.9-5.8 41.2-7.9zm-90.5 125.2c-35.4-15.1-58.3-34.9-58.3-50.6 0-15.7 22.9-35.6 58.3-50.6 8.6-3.7 18-7 27.7-10.1 5.7 19.6 13.2 40 22.5 60.9-9.2 20.8-16.6 41.1-22.2 60.6-9.9-3.1-19.3-6.5-28-10.2zM310 490c-13.6-7.8-19.5-37.5-14.9-75.7 1.1-9.4 2.9-19.3 5.1-29.4 19.6 4.8 41 8.5 63.5 10.9 13.5 18.5 27.5 35.3 41.6 50-32.6 30.3-63.2 46.9-84 46.9-4.5-.1-8.3-1-11.3-2.7zm237.2-76.2c4.7 38.2-1.1 67.9-14.6 75.8-3 1.8-6.9 2.6-11.5 2.6-20.7 0-51.4-16.5-84-46.6 14-14.7 28-31.4 41.3-49.9 22.6-2.4 44-6.1 63.6-11 2.3 10.1 4.1 19.8 5.2 29.1zm38.5-66.7c-8.6 3.7-18 7-27.7 10.1-5.7-19.6-13.2-40-22.5-60.9 9.2-20.8 16.6-41.1 22.2-60.6 9.9 3.1 19.3 6.5 28.1 10.2 35.4 15.1 58.3 34.9 58.3 50.6-.1 15.7-23 35.6-58.4 50.6zM320.8 78.4z'
19-
};
19+
} as const;
2020

2121
export const REACT_SVG_CIRCLE_PROPS: SVGProps<SVGCircleElement> = {
2222
r: '45.7',
2323
cx: '420.9',
2424
cy: '296.5'
25-
};
25+
} as const;

__stories__/helpers/constants/theme.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ const THEME_ANIMATIONS: Theme = {
2222
animation: FADE_IN_KEYFRAMES_STR
2323
}
2424
},
25-
};
25+
} as const;
2626

2727
export const ThemeEnum = {
2828
DEFAULT: 'Default',
2929
LARGE_TEXT: 'Large text',
3030
DARK_COLORS: 'Dark colors',
3131
ZERO_BORDER_RADIUS: 'No border-radius'
32-
};
32+
} as const;
3333

3434
export const ThemeConfigMap: Theme = {
3535
[ThemeEnum.DEFAULT]: undefined as any,
@@ -69,7 +69,7 @@ export const ThemeConfigMap: Theme = {
6969
borderRadius: '0'
7070
}
7171
}
72-
};
72+
} as const;
7373

7474
export const THEME_OPTIONS = createThemeOptions(ThemeEnum);
7575
export const THEME_DEFAULTS = mergeDeep(DEFAULT_THEME, THEME_ANIMATIONS);
@@ -82,4 +82,4 @@ export const THEME_CONFIG: Theme = {
8282
selectedBgColor: '#F5F5F5'
8383
}
8484
}
85-
};
85+
} as const;

0 commit comments

Comments
 (0)