@opentripplanner/building-blocks 2.0.0 → 2.1.1-alpha.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.
Files changed (49) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +1 -0
  3. package/esm/alert/Alert.js +79 -0
  4. package/esm/alert/Alert.js.map +1 -0
  5. package/esm/colors/blue.js.map +1 -1
  6. package/esm/colors/grey.js.map +1 -1
  7. package/esm/colors/red.js.map +1 -1
  8. package/esm/dropdown/index.js +19 -30
  9. package/esm/dropdown/index.js.map +1 -1
  10. package/esm/dropdown/styled.js.map +1 -1
  11. package/esm/focus-trap-wrapper/dom-query.js +8 -13
  12. package/esm/focus-trap-wrapper/dom-query.js.map +1 -1
  13. package/esm/focus-trap-wrapper/index.js +7 -16
  14. package/esm/focus-trap-wrapper/index.js.map +1 -1
  15. package/esm/index.js +2 -1
  16. package/esm/index.js.map +1 -1
  17. package/esm/stories/ColorPalette.js +0 -2
  18. package/esm/stories/ColorPalette.js.map +1 -1
  19. package/i18n/en-US.yml +4 -0
  20. package/i18n/fr.yml +4 -0
  21. package/lib/alert/Alert.d.ts +13 -0
  22. package/lib/alert/Alert.d.ts.map +1 -0
  23. package/lib/alert/Alert.js +76 -0
  24. package/lib/alert/Alert.js.map +1 -0
  25. package/lib/colors/blue.js +1 -2
  26. package/lib/colors/blue.js.map +1 -1
  27. package/lib/colors/grey.js +1 -2
  28. package/lib/colors/grey.js.map +1 -1
  29. package/lib/colors/red.js +1 -2
  30. package/lib/colors/red.js.map +1 -1
  31. package/lib/dropdown/index.js +13 -30
  32. package/lib/dropdown/index.js.map +1 -1
  33. package/lib/dropdown/styled.js +3 -15
  34. package/lib/dropdown/styled.js.map +1 -1
  35. package/lib/focus-trap-wrapper/dom-query.js +2 -9
  36. package/lib/focus-trap-wrapper/dom-query.js.map +1 -1
  37. package/lib/focus-trap-wrapper/index.js +6 -22
  38. package/lib/focus-trap-wrapper/index.js.map +1 -1
  39. package/lib/index.js +4 -14
  40. package/lib/index.js.map +1 -1
  41. package/lib/stories/ColorPalette.js +1 -9
  42. package/lib/stories/ColorPalette.js.map +1 -1
  43. package/package.json +13 -9
  44. package/src/alert/Alert.tsx +136 -0
  45. package/src/stories/__snapshots__/alerts.story.tsx.snap +104 -0
  46. package/src/stories/__snapshots__/dropdown.story.tsx.snap +9 -9
  47. package/src/stories/__snapshots__/index.story.tsx.snap +30 -30
  48. package/src/stories/alerts.story.tsx +77 -0
  49. package/tsconfig.tsbuildinfo +1 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/stories/ColorPalette.tsx"],"names":["ColorBlock","styled","div","props","hex","ColorPalette","color","colorArray","Object","entries","map","hue"],"mappings":";;;;;;;;;AAAA;;AAEA;;AACA;;AAUA,MAAMA,UAAU,GAAGC,0BAAOC,GAAV;AAAA;AAAA;AAAA,mSAEMC,KAAK,IAAIA,KAAK,CAACC,GAFrB,EAGLD,KAAK,IAAI,qCAAyBA,KAAK,CAACC,GAA/B,EAAoC,SAApC,CAHJ,EAICD,KAAK,IAClB,qCAAyBA,KAAK,CAACC,GAA/B,EAAoC,SAApC,MAAmD,SAAnD,GACI,mBADJ,GAEI,EAPQ,CAAhB;;AAwBA,MAAMC,YAAY,GAAG,CAAC;AAAEC,EAAAA;AAAF,CAAD,KAAmC;AACtD,QAAMC,UAAsB,GAAGC,MAAM,CAACC,OAAP,CAAeH,KAAf,CAA/B;AAEA,sBACE,4DACGC,UAAU,CAACG,GAAX,CACEC,GAAD,IAA2B;AACzB,wBACE,6BAAC,UAAD;AAAY,MAAA,GAAG,EAAEA,GAAG,CAAC,CAAD,CAApB;AAAyB,MAAA,GAAG,EAAEA,GAAG,CAAC,CAAD;AAAjC,oBACE,wCAAIA,GAAG,CAAC,CAAD,CAAP,CADF,eAEE,wCAAIA,GAAG,CAAC,CAAD,CAAP,CAFF,CADF;AAMD,GARF,CADH,CADF;AAcD,CAjBD;;eAkBeN,Y","sourcesContent":["import React from \"react\";\n\nimport styled from \"styled-components\";\nimport { getMostReadableTextColor } from \"@opentripplanner/core-utils/lib/route\";\n\nexport interface Hue {\n [key: number]: string;\n}\n\ninterface Props {\n color: Hue;\n}\n\nconst ColorBlock = styled.div<{ hex: string }>`\n align-items: center;\n background-color: ${props => props.hex};\n color: ${props => getMostReadableTextColor(props.hex, \"#ffffff\")};\n text-shadow: ${props =>\n getMostReadableTextColor(props.hex, \"#ffffff\") === \"#ffffff\"\n ? \"1px 1px 2px black\"\n : \"\"};\n display: flex;\n font-family: Arial, Helvetica, sans-serif;\n height: 40px;\n justify-content: space-between;\n margin: 0;\n padding: 10px;\n width: 300px;\n\n &:first-of-type {\n border-radius: 8px 8px 0 0;\n }\n &:last-of-type {\n border-radius: 0 0 8px 8px;\n }\n`;\n\nconst ColorPalette = ({ color }: Props): JSX.Element => {\n const colorArray: Array<Hue> = Object.entries(color);\n\n return (\n <>\n {colorArray.map(\n (hue: Hue): JSX.Element => {\n return (\n <ColorBlock key={hue[0]} hex={hue[1]}>\n <p>{hue[0]}</p>\n <p>{hue[1]}</p>\n </ColorBlock>\n );\n }\n )}\n </>\n );\n};\nexport default ColorPalette;\n"],"file":"ColorPalette.js"}
1
+ {"version":3,"file":"ColorPalette.js","names":["_react","_interopRequireDefault","require","_styledComponents","_route","ColorBlock","styled","div","withConfig","displayName","componentId","props","hex","getMostReadableTextColor","ColorPalette","color","colorArray","Object","entries","default","createElement","Fragment","map","hue","key","_default","exports"],"sources":["../../src/stories/ColorPalette.tsx"],"sourcesContent":["import React from \"react\";\n\nimport styled from \"styled-components\";\nimport { getMostReadableTextColor } from \"@opentripplanner/core-utils/lib/route\";\n\nexport interface Hue {\n [key: number]: string;\n}\n\ninterface Props {\n color: Hue;\n}\n\nconst ColorBlock = styled.div<{ hex: string }>`\n align-items: center;\n background-color: ${props => props.hex};\n color: ${props => getMostReadableTextColor(props.hex, \"#ffffff\")};\n text-shadow: ${props =>\n getMostReadableTextColor(props.hex, \"#ffffff\") === \"#ffffff\"\n ? \"1px 1px 2px black\"\n : \"\"};\n display: flex;\n font-family: Arial, Helvetica, sans-serif;\n height: 40px;\n justify-content: space-between;\n margin: 0;\n padding: 10px;\n width: 300px;\n\n &:first-of-type {\n border-radius: 8px 8px 0 0;\n }\n &:last-of-type {\n border-radius: 0 0 8px 8px;\n }\n`;\n\nconst ColorPalette = ({ color }: Props): JSX.Element => {\n const colorArray: Array<Hue> = Object.entries(color);\n\n return (\n <>\n {colorArray.map(\n (hue: Hue): JSX.Element => {\n return (\n <ColorBlock key={hue[0]} hex={hue[1]}>\n <p>{hue[0]}</p>\n <p>{hue[1]}</p>\n </ColorBlock>\n );\n }\n )}\n </>\n );\n};\nexport default ColorPalette;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,iBAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,MAAA,GAAAF,OAAA;AAUA,MAAMG,UAAU,GAAGC,yBAAM,CAACC,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mSAEPC,KAAK,IAAIA,KAAK,CAACC,GAAG,EAC7BD,KAAK,IAAI,IAAAE,+BAAwB,EAACF,KAAK,CAACC,GAAG,EAAE,SAAS,CAAC,EACjDD,KAAK,IAClB,IAAAE,+BAAwB,EAACF,KAAK,CAACC,GAAG,EAAE,SAAS,CAAC,KAAK,SAAS,GACxD,mBAAmB,GACnB,EAAE,CAeT;AAED,MAAME,YAAY,GAAGA,CAAC;EAAEC;AAAa,CAAC,KAAkB;EACtD,MAAMC,UAAsB,GAAGC,MAAM,CAACC,OAAO,CAACH,KAAK,CAAC;EAEpD,oBACEf,MAAA,CAAAmB,OAAA,CAAAC,aAAA,CAAApB,MAAA,CAAAmB,OAAA,CAAAE,QAAA,QACGL,UAAU,CAACM,GAAG,CACZC,GAAQ,IAAkB;IACzB,oBACEvB,MAAA,CAAAmB,OAAA,CAAAC,aAAA,CAACf,UAAU;MAACmB,GAAG,EAAED,GAAG,CAAC,CAAC,CAAE;MAACX,GAAG,EAAEW,GAAG,CAAC,CAAC;IAAE,gBACnCvB,MAAA,CAAAmB,OAAA,CAAAC,aAAA,YAAIG,GAAG,CAAC,CAAC,CAAK,CAAC,eACfvB,MAAA,CAAAmB,OAAA,CAAAC,aAAA,YAAIG,GAAG,CAAC,CAAC,CAAK,CACJ,CAAC;EAEjB,CACF,CACA,CAAC;AAEP,CAAC;AAAC,IAAAE,QAAA,GAAAC,OAAA,CAAAP,OAAA,GACaL,YAAY","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opentripplanner/building-blocks",
3
- "version": "2.0.0",
3
+ "version": "2.1.1-alpha.1",
4
4
  "description": "Styling and UI Component Library",
5
5
  "author": "@binh-dam-ibigroup",
6
6
  "homepage": "https://github.com/opentripplanner/otp-ui/#readme",
@@ -9,23 +9,27 @@
9
9
  "module": "esm/index.js",
10
10
  "private": false,
11
11
  "devDependencies": {
12
- "@opentripplanner/types": "^6.5.2",
13
- "@opentripplanner/core-utils": "^11.4.4"
12
+ "@opentripplanner/core-utils": "13.0.0-alpha.2",
13
+ "@opentripplanner/types": "7.0.0-alpha.16"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": "^18.2.0",
17
+ "react-animate-height": "^3.0.4",
17
18
  "styled-components": "^5.3.0"
18
19
  },
19
20
  "repository": {
20
21
  "type": "git",
21
22
  "url": "git+https://github.com/opentripplanner/otp-ui.git"
22
23
  },
23
- "scripts": {
24
- "test": "echo \"Error: run tests from root\" && exit 1",
25
- "tsc": "tsc"
26
- },
27
24
  "bugs": {
28
25
  "url": "https://github.com/opentripplanner/otp-ui/issues"
29
26
  },
30
- "gitHead": "0af1b7cda60bd4252b219dcf893e01c2acb2ed5d"
31
- }
27
+ "gitHead": "0af1b7cda60bd4252b219dcf893e01c2acb2ed5d",
28
+ "dependencies": {
29
+ "@styled-icons/bootstrap": "^10.47.0"
30
+ },
31
+ "scripts": {
32
+ "test": "echo \"Error: run tests from root\" && exit 1",
33
+ "tsc": "tsc"
34
+ }
35
+ }
@@ -0,0 +1,136 @@
1
+ import React, { ReactChild, useState } from "react";
2
+ import styled from "styled-components";
3
+ import AnimateHeight from "react-animate-height";
4
+ import { ChevronUp } from "@styled-icons/bootstrap/ChevronUp";
5
+ import { Bell } from "@styled-icons/bootstrap/Bell";
6
+ import { StyledIcon } from "@styled-icons/styled-icon";
7
+ import { useIntl } from "react-intl";
8
+ import blue from "../colors/blue";
9
+
10
+ interface Props {
11
+ alertHeader: string;
12
+ alertSubheader?: string;
13
+ backgroundColor?: string;
14
+ collapsible?: boolean;
15
+ children?: ReactChild;
16
+ Icon?: StyledIcon;
17
+ }
18
+
19
+ const AlertContainer = styled.div<{
20
+ backgroundColor: string;
21
+ collapsible: boolean;
22
+ expandAlert: boolean;
23
+ }>`
24
+ background-color: ${props =>
25
+ props.backgroundColor ? props.backgroundColor : blue[50]};
26
+ display: grid;
27
+ grid-template-columns: 50px auto auto;
28
+ grid-template-rows: minmax(25px, auto) auto;
29
+ max-width: 715px;
30
+ padding: 1.5em 2em;
31
+
32
+ svg {
33
+ align-self: center;
34
+ grid-column: 1;
35
+ grid-row: 1 / span 2;
36
+ justify-self: start;
37
+ }
38
+
39
+ button {
40
+ background: transparent;
41
+ border: none;
42
+ width: 40px;
43
+
44
+ svg {
45
+ transform: ${props => !props.expandAlert && "rotate(180deg)"};
46
+ transition: all 0.2s ease-in;
47
+ }
48
+ }
49
+
50
+ @media (max-width: 550px) {
51
+ grid-template-columns: 40px auto auto;
52
+ padding: 1.25em 1.25em;
53
+ }
54
+ `;
55
+
56
+ const ButtonContainer = styled.span`
57
+ align-items: center;
58
+ display: flex;
59
+ justify-content: center;
60
+ justify-self: right;
61
+ `;
62
+
63
+ const AlertHeader = styled.span`
64
+ align-self: center;
65
+ font-weight: 700;
66
+ grid-column: 2;
67
+ `;
68
+
69
+ const AlertSubheader = styled(AlertHeader)`
70
+ font-weight: 400;
71
+ margin-top: 0.3em;
72
+ `;
73
+
74
+ const AlertContent = styled.div`
75
+ grid-column: 2;
76
+ grid-row: 3;
77
+ `;
78
+
79
+ const ContentPadding = styled.div<{
80
+ collapsible: boolean;
81
+ }>`
82
+ margin-top: ${props => (props.collapsible ? "1em" : ".5em")};
83
+ `;
84
+
85
+ const Alert = ({
86
+ alertHeader,
87
+ alertSubheader,
88
+ backgroundColor,
89
+ children,
90
+ collapsible,
91
+ Icon = Bell
92
+ }: Props): JSX.Element => {
93
+ const [expandAlert, setExpandAlert] = useState(false);
94
+ const intl = useIntl();
95
+ const label = intl.formatMessage({
96
+ id: "otpUi.buildingBlocks.alert.expand",
97
+ defaultMessage: "Expand"
98
+ });
99
+ return (
100
+ <AlertContainer
101
+ backgroundColor={backgroundColor}
102
+ expandAlert={expandAlert}
103
+ collapsible={collapsible}
104
+ >
105
+ <Icon size={24} />
106
+ <AlertHeader>{alertHeader}</AlertHeader>
107
+ <ButtonContainer>
108
+ {collapsible && (
109
+ <button
110
+ type="button"
111
+ onClick={() => setExpandAlert(!expandAlert)}
112
+ aria-label={label}
113
+ title={label}
114
+ >
115
+ <ChevronUp size={16} />
116
+ </button>
117
+ )}
118
+ </ButtonContainer>
119
+ {alertSubheader && <AlertSubheader>{alertSubheader}</AlertSubheader>}
120
+ {children && (
121
+ <AlertContent>
122
+ <AnimateHeight
123
+ duration={500}
124
+ height={collapsible ? (expandAlert ? "auto" : 0) : "auto"}
125
+ >
126
+ <ContentPadding collapsible={collapsible}>
127
+ {children}
128
+ </ContentPadding>
129
+ </AnimateHeight>
130
+ </AlertContent>
131
+ )}
132
+ </AlertContainer>
133
+ );
134
+ };
135
+
136
+ export default Alert;
@@ -0,0 +1,104 @@
1
+ // Jest Snapshot v1, https://goo.gl/fbAQLP
2
+
3
+ exports[`Building-Blocks/Alert BasicAlert smoke-test 1`] = `
4
+ <div class="Alert__AlertContainer-sc-2vlo3n-0 bVfQIo">
5
+ <svg viewbox="0 0 16 16"
6
+ height="24"
7
+ width="24"
8
+ aria-hidden="true"
9
+ focusable="false"
10
+ fill="currentColor"
11
+ xmlns="http://www.w3.org/2000/svg"
12
+ class="StyledIconBase-sc-ea9ulj-0 ebjPRL"
13
+ >
14
+ <path d="M8 16a2 2 0 0 0 2-2H6a2 2 0 0 0 2 2zM8 1.918l-.797.161A4.002 4.002 0 0 0 4 6c0 .628-.134 2.197-.459 3.742-.16.767-.376 1.566-.663 2.258h10.244c-.287-.692-.502-1.49-.663-2.258C12.134 8.197 12 6.628 12 6a4.002 4.002 0 0 0-3.203-3.92L8 1.917zM14.22 12c.223.447.481.801.78 1H1c.299-.199.557-.553.78-1C2.68 10.2 3 6.88 3 6c0-2.42 1.72-4.44 4.005-4.901a1 1 0 1 1 1.99 0A5.002 5.002 0 0 1 13 6c0 .88.32 4.2 1.22 6z">
15
+ </path>
16
+ </svg>
17
+ <span class="Alert__AlertHeader-sc-2vlo3n-2 fpauiN">
18
+ Next trip starts on Wednesday April 17th
19
+ </span>
20
+ <span class="Alert__ButtonContainer-sc-2vlo3n-1 cKzYKK">
21
+ </span>
22
+ <span class="Alert__AlertHeader-sc-2vlo3n-2 Alert__AlertSubheader-sc-2vlo3n-3 fpauiN dYdxsJ">
23
+ Trip is due to begin at 7:43 AM (Realtime monitoring will being at 7:13 AM)
24
+ </span>
25
+ <div class="Alert__AlertContent-sc-2vlo3n-4 UrwUS">
26
+ <div aria-hidden="false"
27
+ class="rah-static rah-static--height-auto "
28
+ style="height: auto; overflow: visible;"
29
+ >
30
+ <div>
31
+ <div class="Alert__ContentPadding-sc-2vlo3n-5 isIayL">
32
+ Here is more content
33
+ </div>
34
+ </div>
35
+ </div>
36
+ </div>
37
+ </div>
38
+ `;
39
+
40
+ exports[`Building-Blocks/Alert CollapsibleAlertWithTransitAlerts smoke-test 1`] = `
41
+ <div class="Alert__AlertContainer-sc-2vlo3n-0 bqBujX">
42
+ <svg viewbox="0 0 16 16"
43
+ height="24"
44
+ width="24"
45
+ aria-hidden="true"
46
+ focusable="false"
47
+ fill="currentColor"
48
+ xmlns="http://www.w3.org/2000/svg"
49
+ class="StyledIconBase-sc-ea9ulj-0 ebjPRL"
50
+ >
51
+ <path d="M7.938 2.016A.13.13 0 0 1 8.002 2a.13.13 0 0 1 .063.016.146.146 0 0 1 .054.057l6.857 11.667c.036.06.035.124.002.183a.163.163 0 0 1-.054.06.116.116 0 0 1-.066.017H1.146a.115.115 0 0 1-.066-.017.163.163 0 0 1-.054-.06.176.176 0 0 1 .002-.183L7.884 2.073a.147.147 0 0 1 .054-.057zm1.044-.45a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566z">
52
+ </path>
53
+ <path d="M7.002 12a1 1 0 1 1 2 0 1 1 0 0 1-2 0zM7.1 5.995a.905.905 0 1 1 1.8 0l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995z">
54
+ </path>
55
+ </svg>
56
+ <span class="Alert__AlertHeader-sc-2vlo3n-2 fpauiN">
57
+ Your trip has alerts
58
+ </span>
59
+ <span class="Alert__ButtonContainer-sc-2vlo3n-1 cKzYKK">
60
+ <button type="button"
61
+ aria-label="Expand"
62
+ title="Expand"
63
+ >
64
+ <svg viewbox="0 0 16 16"
65
+ height="16"
66
+ width="16"
67
+ aria-hidden="true"
68
+ focusable="false"
69
+ fill="currentColor"
70
+ xmlns="http://www.w3.org/2000/svg"
71
+ class="StyledIconBase-sc-ea9ulj-0 ebjPRL"
72
+ >
73
+ <path fill-rule="evenodd"
74
+ d="M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z"
75
+ >
76
+ </path>
77
+ </svg>
78
+ </button>
79
+ </span>
80
+ <div class="Alert__AlertContent-sc-2vlo3n-4 UrwUS">
81
+ <div aria-hidden="true"
82
+ class="rah-static rah-static--height-zero "
83
+ style="height: 0px; overflow: hidden;"
84
+ >
85
+ <div style="display: none;">
86
+ <div class="Alert__ContentPadding-sc-2vlo3n-5 esOwtt">
87
+ <div>
88
+ 1) TriMet Customer Service will be unavailable to serve text messages or Twitter responses from 9:00 p.m.- 11:30 p.m. For immediate assistance regarding safety or security concerns, please contact the police via 911.
89
+ </div>
90
+ <br>
91
+ <div>
92
+ 2) The Park and Ride garage elevator at Sunset Transit Center is closed for approximately 3 months for improvements. During this time garage users must use the stairs or find alternate parking. Visit trimet.org/parkandride for a complete list of Park and Ride garages.
93
+ </div>
94
+ <br>
95
+ <div>
96
+ 3) The west elevators at the Washington Park MAX Station are out of service. Please use east elevators to access street level and platforms.
97
+ </div>
98
+ <br>
99
+ </div>
100
+ </div>
101
+ </div>
102
+ </div>
103
+ </div>
104
+ `;
@@ -1,8 +1,8 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Building-Blocks/Dropdown DropdownAsOtprrNavItem smoke-test 1`] = `
4
- <div class="dropdownstory__NavItemWrapper-sc-giygrt-0 fXLCFd">
5
- <span class="styled__DropdownWrapper-sc-kes9ha-2 dgncpu navBarItem"
4
+ <div class="dropdownstory__NavItemWrapper-sc-giygrt-0 jFfMlb">
5
+ <span class="styled__DropdownWrapper-sc-kes9ha-2 elAsDS navBarItem"
6
6
  id="dropdown-navbar-wrapper"
7
7
  >
8
8
  <button aria-expanded="false"
@@ -10,7 +10,7 @@ exports[`Building-Blocks/Dropdown DropdownAsOtprrNavItem smoke-test 1`] = `
10
10
  aria-label="Dropdown navbar"
11
11
  id="dropdown-navbar-label"
12
12
  title="Dropdown navbar"
13
- class="styled__DropdownButton-sc-kes9ha-0 eBZyNH"
13
+ class="styled__DropdownButton-sc-kes9ha-0 eRScRa"
14
14
  >
15
15
  <span>
16
16
  Icon
@@ -25,7 +25,7 @@ exports[`Building-Blocks/Dropdown DropdownAsOtprrNavItem smoke-test 1`] = `
25
25
  `;
26
26
 
27
27
  exports[`Building-Blocks/Dropdown DropdownWithLabel smoke-test 1`] = `
28
- <span class="styled__DropdownWrapper-sc-kes9ha-2 dgncpu"
28
+ <span class="styled__DropdownWrapper-sc-kes9ha-2 elAsDS"
29
29
  id="dropdown-with-label-wrapper"
30
30
  >
31
31
  <button aria-expanded="false"
@@ -33,7 +33,7 @@ exports[`Building-Blocks/Dropdown DropdownWithLabel smoke-test 1`] = `
33
33
  aria-label="Dropdown with label"
34
34
  id="dropdown-with-label-label"
35
35
  title="Dropdown with label"
36
- class="styled__DropdownButton-sc-kes9ha-0 eBZyNH"
36
+ class="styled__DropdownButton-sc-kes9ha-0 eRScRa"
37
37
  >
38
38
  <span>
39
39
  Dropdown with label
@@ -47,7 +47,7 @@ exports[`Building-Blocks/Dropdown DropdownWithLabel smoke-test 1`] = `
47
47
  `;
48
48
 
49
49
  exports[`Building-Blocks/Dropdown DropdownWithList smoke-test 1`] = `
50
- <span class="styled__DropdownWrapper-sc-kes9ha-2 dgncpu"
50
+ <span class="styled__DropdownWrapper-sc-kes9ha-2 elAsDS"
51
51
  id="dropdown-with-ul-wrapper"
52
52
  >
53
53
  <button aria-expanded="false"
@@ -55,7 +55,7 @@ exports[`Building-Blocks/Dropdown DropdownWithList smoke-test 1`] = `
55
55
  aria-label="Dropdown with ul"
56
56
  id="dropdown-with-ul-label"
57
57
  title="Dropdown with ul"
58
- class="styled__DropdownButton-sc-kes9ha-0 eBZyNH"
58
+ class="styled__DropdownButton-sc-kes9ha-0 eRScRa"
59
59
  >
60
60
  <span>
61
61
  Dropdown with ul
@@ -69,7 +69,7 @@ exports[`Building-Blocks/Dropdown DropdownWithList smoke-test 1`] = `
69
69
  `;
70
70
 
71
71
  exports[`Building-Blocks/Dropdown DropdownWithListAlignMenuLeft smoke-test 1`] = `
72
- <span class="styled__DropdownWrapper-sc-kes9ha-2 dgncpu"
72
+ <span class="styled__DropdownWrapper-sc-kes9ha-2 elAsDS"
73
73
  id="dropdown-with-ul-wrapper"
74
74
  >
75
75
  <button aria-expanded="false"
@@ -77,7 +77,7 @@ exports[`Building-Blocks/Dropdown DropdownWithListAlignMenuLeft smoke-test 1`] =
77
77
  aria-label="Dropdown with ul"
78
78
  id="dropdown-with-ul-label"
79
79
  title="Dropdown with ul"
80
- class="styled__DropdownButton-sc-kes9ha-0 eBZyNH"
80
+ class="styled__DropdownButton-sc-kes9ha-0 eRScRa"
81
81
  >
82
82
  <span>
83
83
  Dropdown with ul
@@ -1,7 +1,7 @@
1
1
  // Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
 
3
3
  exports[`Building-Blocks/Colors Blue smoke-test 1`] = `
4
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 bFLnsf">
4
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 iEijBb">
5
5
  <p>
6
6
  50
7
7
  </p>
@@ -9,7 +9,7 @@ exports[`Building-Blocks/Colors Blue smoke-test 1`] = `
9
9
  #E5ECF3
10
10
  </p>
11
11
  </div>
12
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 fslHeP">
12
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 hBcHvL">
13
13
  <p>
14
14
  100
15
15
  </p>
@@ -17,7 +17,7 @@ exports[`Building-Blocks/Colors Blue smoke-test 1`] = `
17
17
  #CCDAE7
18
18
  </p>
19
19
  </div>
20
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 hYrXqS">
20
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 czQKTO">
21
21
  <p>
22
22
  200
23
23
  </p>
@@ -25,7 +25,7 @@ exports[`Building-Blocks/Colors Blue smoke-test 1`] = `
25
25
  #B2C7DB
26
26
  </p>
27
27
  </div>
28
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 cwDhpW">
28
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 kMwGpq">
29
29
  <p>
30
30
  300
31
31
  </p>
@@ -33,7 +33,7 @@ exports[`Building-Blocks/Colors Blue smoke-test 1`] = `
33
33
  #99B5CF
34
34
  </p>
35
35
  </div>
36
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 kpjxeq">
36
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 fbDgxu">
37
37
  <p>
38
38
  400
39
39
  </p>
@@ -41,7 +41,7 @@ exports[`Building-Blocks/Colors Blue smoke-test 1`] = `
41
41
  #7FA2C2
42
42
  </p>
43
43
  </div>
44
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 cIdVEx">
44
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 eNNofl">
45
45
  <p>
46
46
  500
47
47
  </p>
@@ -49,7 +49,7 @@ exports[`Building-Blocks/Colors Blue smoke-test 1`] = `
49
49
  #6690B7
50
50
  </p>
51
51
  </div>
52
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 YgYzo">
52
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 itcLus">
53
53
  <p>
54
54
  600
55
55
  </p>
@@ -57,7 +57,7 @@ exports[`Building-Blocks/Colors Blue smoke-test 1`] = `
57
57
  #4D7EAB
58
58
  </p>
59
59
  </div>
60
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 ixMEWR">
60
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 gwrxCB">
61
61
  <p>
62
62
  700
63
63
  </p>
@@ -65,7 +65,7 @@ exports[`Building-Blocks/Colors Blue smoke-test 1`] = `
65
65
  #336B9E
66
66
  </p>
67
67
  </div>
68
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 bwAoty">
68
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 eoKkhy">
69
69
  <p>
70
70
  800
71
71
  </p>
@@ -73,7 +73,7 @@ exports[`Building-Blocks/Colors Blue smoke-test 1`] = `
73
73
  #1A5992
74
74
  </p>
75
75
  </div>
76
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 dqaynR">
76
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 bPhKNt">
77
77
  <p>
78
78
  900
79
79
  </p>
@@ -84,7 +84,7 @@ exports[`Building-Blocks/Colors Blue smoke-test 1`] = `
84
84
  `;
85
85
 
86
86
  exports[`Building-Blocks/Colors Grey smoke-test 1`] = `
87
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 fQVZiO">
87
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 egtZLu">
88
88
  <p>
89
89
  50
90
90
  </p>
@@ -92,7 +92,7 @@ exports[`Building-Blocks/Colors Grey smoke-test 1`] = `
92
92
  #ECECEC
93
93
  </p>
94
94
  </div>
95
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 oxwmZ">
95
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 fKjlrp">
96
96
  <p>
97
97
  100
98
98
  </p>
@@ -100,7 +100,7 @@ exports[`Building-Blocks/Colors Grey smoke-test 1`] = `
100
100
  #D9D9D9
101
101
  </p>
102
102
  </div>
103
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 jueztC">
103
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 gIeutC">
104
104
  <p>
105
105
  200
106
106
  </p>
@@ -108,7 +108,7 @@ exports[`Building-Blocks/Colors Grey smoke-test 1`] = `
108
108
  #C5C5C5
109
109
  </p>
110
110
  </div>
111
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 ipjnjR">
111
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 cvzsPl">
112
112
  <p>
113
113
  300
114
114
  </p>
@@ -116,7 +116,7 @@ exports[`Building-Blocks/Colors Grey smoke-test 1`] = `
116
116
  #B3B3B3
117
117
  </p>
118
118
  </div>
119
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 KHVkK">
119
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 ivqSFG">
120
120
  <p>
121
121
  400
122
122
  </p>
@@ -124,7 +124,7 @@ exports[`Building-Blocks/Colors Grey smoke-test 1`] = `
124
124
  #9F9F9F
125
125
  </p>
126
126
  </div>
127
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 dtcMei">
127
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 eXgywq">
128
128
  <p>
129
129
  500
130
130
  </p>
@@ -132,7 +132,7 @@ exports[`Building-Blocks/Colors Grey smoke-test 1`] = `
132
132
  #8C8C8C
133
133
  </p>
134
134
  </div>
135
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 iKIpwf">
135
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 fVCSRH">
136
136
  <p>
137
137
  600
138
138
  </p>
@@ -140,7 +140,7 @@ exports[`Building-Blocks/Colors Grey smoke-test 1`] = `
140
140
  #797979
141
141
  </p>
142
142
  </div>
143
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 foMzhh">
143
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 bGGJeZ">
144
144
  <p>
145
145
  700
146
146
  </p>
@@ -148,7 +148,7 @@ exports[`Building-Blocks/Colors Grey smoke-test 1`] = `
148
148
  #666666
149
149
  </p>
150
150
  </div>
151
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 efnWWL">
151
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 hGsxDb">
152
152
  <p>
153
153
  800
154
154
  </p>
@@ -156,7 +156,7 @@ exports[`Building-Blocks/Colors Grey smoke-test 1`] = `
156
156
  #535353
157
157
  </p>
158
158
  </div>
159
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 hKGOgp">
159
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 gjOaFR">
160
160
  <p>
161
161
  900
162
162
  </p>
@@ -167,7 +167,7 @@ exports[`Building-Blocks/Colors Grey smoke-test 1`] = `
167
167
  `;
168
168
 
169
169
  exports[`Building-Blocks/Colors Red smoke-test 1`] = `
170
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 eLDsHA">
170
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 tzsZI">
171
171
  <p>
172
172
  50
173
173
  </p>
@@ -175,7 +175,7 @@ exports[`Building-Blocks/Colors Red smoke-test 1`] = `
175
175
  #F7E7E6
176
176
  </p>
177
177
  </div>
178
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 bwwaXk">
178
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 doCZXQ">
179
179
  <p>
180
180
  100
181
181
  </p>
@@ -183,7 +183,7 @@ exports[`Building-Blocks/Colors Red smoke-test 1`] = `
183
183
  #EFCFCE
184
184
  </p>
185
185
  </div>
186
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 jTuSFc">
186
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 dbJTaU">
187
187
  <p>
188
188
  200
189
189
  </p>
@@ -191,7 +191,7 @@ exports[`Building-Blocks/Colors Red smoke-test 1`] = `
191
191
  #E7B6B4
192
192
  </p>
193
193
  </div>
194
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 lnSWIY">
194
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 aMInM">
195
195
  <p>
196
196
  300
197
197
  </p>
@@ -199,7 +199,7 @@ exports[`Building-Blocks/Colors Red smoke-test 1`] = `
199
199
  #DF9E9C
200
200
  </p>
201
201
  </div>
202
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 jeVJXr">
202
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 irzJxP">
203
203
  <p>
204
204
  400
205
205
  </p>
@@ -207,7 +207,7 @@ exports[`Building-Blocks/Colors Red smoke-test 1`] = `
207
207
  #D78683
208
208
  </p>
209
209
  </div>
210
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 dDTLvn">
210
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 iIjlGH">
211
211
  <p>
212
212
  500
213
213
  </p>
@@ -215,7 +215,7 @@ exports[`Building-Blocks/Colors Red smoke-test 1`] = `
215
215
  #CF6E6B
216
216
  </p>
217
217
  </div>
218
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 jPUfgl">
218
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 cVboWd">
219
219
  <p>
220
220
  600
221
221
  </p>
@@ -223,7 +223,7 @@ exports[`Building-Blocks/Colors Red smoke-test 1`] = `
223
223
  #C75652
224
224
  </p>
225
225
  </div>
226
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 jjxBwB">
226
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 lgZefV">
227
227
  <p>
228
228
  700
229
229
  </p>
@@ -231,7 +231,7 @@ exports[`Building-Blocks/Colors Red smoke-test 1`] = `
231
231
  #BF3E3A
232
232
  </p>
233
233
  </div>
234
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 gAlgpe">
234
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 gQxjCa">
235
235
  <p>
236
236
  800
237
237
  </p>
@@ -239,7 +239,7 @@ exports[`Building-Blocks/Colors Red smoke-test 1`] = `
239
239
  #B72620
240
240
  </p>
241
241
  </div>
242
- <div class="ColorPalette__ColorBlock-sc-fil65c-0 lewmhT">
242
+ <div class="ColorPalette__ColorBlock-sc-fil65c-0 hVPMLf">
243
243
  <p>
244
244
  900
245
245
  </p>