@opentripplanner/building-blocks 3.0.1-alpha.1 → 3.0.2-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.
@@ -91,7 +91,8 @@ var Dropdown = function Dropdown(_ref) {
91
91
  id: "".concat(id, "-label"),
92
92
  onClick: toggleOpen,
93
93
  style: buttonStyle,
94
- title: label
94
+ title: label,
95
+ type: "button"
95
96
  }, /*#__PURE__*/React.createElement("span", null, text), /*#__PURE__*/React.createElement("span", {
96
97
  className: "caret",
97
98
  role: "presentation"
@@ -102,7 +103,7 @@ var Dropdown = function Dropdown(_ref) {
102
103
  id: id,
103
104
  onClick: toggleOpen,
104
105
  alignLeft: alignMenuLeft,
105
- role: isList && "list",
106
+ role: isList && "listbox",
106
107
  tabIndex: -1
107
108
  }, children));
108
109
  };
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useCallback","useEffect","useRef","useState","getNextSibling","getPreviousSibling","DropdownButton","DropdownMenu","DropdownWrapper","Dropdown","_ref","alignMenuLeft","children","className","id","label","listLabel","text","buttonStyle","_useState","_useState2","_slicedToArray","open","setOpen","containerRef","toggleOpen","queryId","concat","isList","Array","isArray","every","child","isValidElement","type","handleExternalAction","e","_containerRef$current","current","contains","target","document","addEventListener","removeEventListener","handleKeyDown","_getPreviousSibling","_getNextSibling","element","key","preventDefault","focus","click","createElement","onKeyDown","ref","undefined","onClick","style","title","role","as","alignLeft","tabIndex"],"sources":["../../src/dropdown/index.tsx"],"sourcesContent":["import React, {\n HTMLAttributes,\n KeyboardEvent,\n useCallback,\n useEffect,\n useRef,\n useState\n} from \"react\";\n\nimport {\n getNextSibling,\n getPreviousSibling\n} from \"../focus-trap-wrapper/dom-query\";\nimport { DropdownButton, DropdownMenu, DropdownWrapper } from \"./styled\";\n\nexport interface Props extends HTMLAttributes<HTMLElement> {\n alignMenuLeft?: boolean;\n buttonStyle?: React.CSSProperties;\n label?: string;\n listLabel?: string;\n text?: JSX.Element | string;\n nav?: boolean;\n}\n\n/**\n * Renders a dropdown menu. By default, only a passed \"text\" is rendered. If clicked,\n * a floating div is rendered below the \"text\" with list contents inside. Clicking anywhere\n * outside the floating div will close the dropdown.\n */\nconst Dropdown = ({\n alignMenuLeft,\n children,\n className,\n id,\n label,\n listLabel,\n text,\n buttonStyle\n}: Props): JSX.Element => {\n const [open, setOpen] = useState(false);\n\n const containerRef = useRef<HTMLSpanElement>(null);\n\n const toggleOpen = useCallback(() => setOpen(!open), [open, setOpen]);\n\n // Argument for document.querySelectorAll to target focusable elements.\n const queryId = `#${id} button, #${id}-label`;\n\n const isList = Array.isArray(children)\n ? children.every(\n child => React.isValidElement(child) && child.type === \"li\"\n )\n : React.isValidElement(children) && children.type === \"li\";\n\n // Adding document event listeners allows us to close the dropdown\n // when the user interacts with any part of the page that isn't the dropdown\n useEffect(() => {\n const handleExternalAction = (e: Event): void => {\n if (!containerRef?.current?.contains(e.target as HTMLElement)) {\n setOpen(false);\n }\n };\n document.addEventListener(\"mousedown\", handleExternalAction);\n document.addEventListener(\"focusin\", handleExternalAction);\n document.addEventListener(\"keydown\", handleExternalAction);\n return () => {\n document.removeEventListener(\"mousedown\", handleExternalAction);\n document.removeEventListener(\"focusin\", handleExternalAction);\n document.removeEventListener(\"keydown\", handleExternalAction);\n };\n }, [containerRef]);\n\n const handleKeyDown = useCallback(\n (e: KeyboardEvent): void => {\n const element = e.target as HTMLElement;\n switch (e.key) {\n case \"ArrowUp\":\n e.preventDefault();\n getPreviousSibling(queryId, element)?.focus();\n break;\n case \"ArrowDown\":\n e.preventDefault();\n getNextSibling(queryId, element)?.focus();\n break;\n case \"Escape\":\n setOpen(false);\n break;\n case \" \":\n case \"Enter\":\n e.preventDefault();\n element.click();\n if (element.id === `${id}-label` || element.id === `${id}-wrapper`) {\n toggleOpen();\n }\n break;\n default:\n }\n },\n [id, toggleOpen]\n );\n\n return (\n <DropdownWrapper\n className={className}\n id={`${id}-wrapper`}\n onKeyDown={handleKeyDown}\n ref={containerRef}\n >\n <DropdownButton\n // Only set aria-controls when the dropdown is open\n // (otherwise, assistive technologies may not announce the dropdown correctly).\n aria-controls={open ? id : undefined}\n aria-expanded={open}\n aria-haspopup=\"listbox\"\n aria-label={label}\n id={`${id}-label`}\n onClick={toggleOpen}\n style={buttonStyle}\n title={label}\n >\n <span>{text}</span>\n <span className=\"caret\" role=\"presentation\" />\n </DropdownButton>\n {open && (\n <DropdownMenu\n as={isList && \"ul\"}\n aria-label={listLabel}\n aria-labelledby={listLabel ? undefined : `${id}-label`}\n id={id}\n onClick={toggleOpen}\n alignLeft={alignMenuLeft}\n role={isList && \"list\"}\n tabIndex={-1}\n >\n {children}\n </DropdownMenu>\n )}\n </DropdownWrapper>\n );\n};\n\nexport default Dropdown;\n"],"mappings":";AAAA,OAAOA,KAAK,IAGVC,WAAW,EACXC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,SACEC,cAAc,EACdC,kBAAkB,QACb,iCAAiC;AACxC,SAASC,cAAc,EAAEC,YAAY,EAAEC,eAAe,QAAQ,UAAU;AAWxE;AACA;AACA;AACA;AACA;AACA,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EASY;EAAA,IARxBC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IACbC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,SAAS,GAAAH,IAAA,CAATG,SAAS;IACTC,EAAE,GAAAJ,IAAA,CAAFI,EAAE;IACFC,KAAK,GAAAL,IAAA,CAALK,KAAK;IACLC,SAAS,GAAAN,IAAA,CAATM,SAAS;IACTC,IAAI,GAAAP,IAAA,CAAJO,IAAI;IACJC,WAAW,GAAAR,IAAA,CAAXQ,WAAW;EAEX,IAAAC,SAAA,GAAwBhB,QAAQ,CAAC,KAAK,CAAC;IAAAiB,UAAA,GAAAC,cAAA,CAAAF,SAAA;IAAhCG,IAAI,GAAAF,UAAA;IAAEG,OAAO,GAAAH,UAAA;EAEpB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GAAG,EAAE9B;EAAa,gBAElBzB,KAAA,CAAAqD,aAAA,CAAC9C;EACC;EACA;EAAA;IACA,iBAAegB,IAAI,GAAGR,EAAE,GAAGyC,SAAU;IACrC,iBAAejC,IAAK;IACpB,iBAAc,SAAS;IACvB,cAAYP,KAAM;IAClBD,EAAE,KAAAa,MAAA,CAAKb,EAAE,WAAS;IAClB0C,OAAO,EAAE/B,UAAW;IACpBgC,KAAK,EAAEvC,WAAY;IACnBwC,KAAK,EAAE3C;EAAM,gBAEbhB,KAAA,CAAAqD,aAAA,eAAOnC,IAAW,CAAC,eACnBlB,KAAA,CAAAqD,aAAA;IAAMvC,SAAS,EAAC,OAAO;IAAC8C,IAAI,EAAC;EAAc,CAAE,CAC/B,CAAC,EAChBrC,IAAI,iBACHvB,KAAA,CAAAqD,aAAA,CAAC7C,YAAY;IACXqD,EAAE,EAAEhC,MAAM,IAAI,IAAK;IACnB,cAAYZ,SAAU;IACtB,mBAAiBA,SAAS,GAAGuC,SAAS,MAAA5B,MAAA,CAAMb,EAAE,WAAS;IACvDA,EAAE,EAAEA,EAAG;IACP0C,OAAO,EAAE/B,UAAW;IACpBoC,SAAS,EAAElD,aAAc;IACzBgD,IAAI,EAAE/B,MAAM,IAAI,MAAO;IACvBkC,QAAQ,EAAE,CAAC;EAAE,GAEZlD,QACW,CAED,CAAC;AAEtB,CAAC;AAED,eAAeH,QAAQ","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","useCallback","useEffect","useRef","useState","getNextSibling","getPreviousSibling","DropdownButton","DropdownMenu","DropdownWrapper","Dropdown","_ref","alignMenuLeft","children","className","id","label","listLabel","text","buttonStyle","_useState","_useState2","_slicedToArray","open","setOpen","containerRef","toggleOpen","queryId","concat","isList","Array","isArray","every","child","isValidElement","type","handleExternalAction","e","_containerRef$current","current","contains","target","document","addEventListener","removeEventListener","handleKeyDown","_getPreviousSibling","_getNextSibling","element","key","preventDefault","focus","click","createElement","onKeyDown","ref","undefined","onClick","style","title","role","as","alignLeft","tabIndex"],"sources":["../../src/dropdown/index.tsx"],"sourcesContent":["import React, {\n HTMLAttributes,\n KeyboardEvent,\n useCallback,\n useEffect,\n useRef,\n useState\n} from \"react\";\n\nimport {\n getNextSibling,\n getPreviousSibling\n} from \"../focus-trap-wrapper/dom-query\";\nimport { DropdownButton, DropdownMenu, DropdownWrapper } from \"./styled\";\n\nexport interface Props extends HTMLAttributes<HTMLElement> {\n alignMenuLeft?: boolean;\n buttonStyle?: React.CSSProperties;\n label?: string;\n listLabel?: string;\n text?: JSX.Element | string;\n nav?: boolean;\n}\n\n/**\n * Renders a dropdown menu. By default, only a passed \"text\" is rendered. If clicked,\n * a floating div is rendered below the \"text\" with list contents inside. Clicking anywhere\n * outside the floating div will close the dropdown.\n */\nconst Dropdown = ({\n alignMenuLeft,\n children,\n className,\n id,\n label,\n listLabel,\n text,\n buttonStyle\n}: Props): JSX.Element => {\n const [open, setOpen] = useState(false);\n\n const containerRef = useRef<HTMLSpanElement>(null);\n\n const toggleOpen = useCallback(() => setOpen(!open), [open, setOpen]);\n\n // Argument for document.querySelectorAll to target focusable elements.\n const queryId = `#${id} button, #${id}-label`;\n\n const isList = Array.isArray(children)\n ? children.every(\n child => React.isValidElement(child) && child.type === \"li\"\n )\n : React.isValidElement(children) && children.type === \"li\";\n\n // Adding document event listeners allows us to close the dropdown\n // when the user interacts with any part of the page that isn't the dropdown\n useEffect(() => {\n const handleExternalAction = (e: Event): void => {\n if (!containerRef?.current?.contains(e.target as HTMLElement)) {\n setOpen(false);\n }\n };\n document.addEventListener(\"mousedown\", handleExternalAction);\n document.addEventListener(\"focusin\", handleExternalAction);\n document.addEventListener(\"keydown\", handleExternalAction);\n return () => {\n document.removeEventListener(\"mousedown\", handleExternalAction);\n document.removeEventListener(\"focusin\", handleExternalAction);\n document.removeEventListener(\"keydown\", handleExternalAction);\n };\n }, [containerRef]);\n\n const handleKeyDown = useCallback(\n (e: KeyboardEvent): void => {\n const element = e.target as HTMLElement;\n switch (e.key) {\n case \"ArrowUp\":\n e.preventDefault();\n getPreviousSibling(queryId, element)?.focus();\n break;\n case \"ArrowDown\":\n e.preventDefault();\n getNextSibling(queryId, element)?.focus();\n break;\n case \"Escape\":\n setOpen(false);\n break;\n case \" \":\n case \"Enter\":\n e.preventDefault();\n element.click();\n if (element.id === `${id}-label` || element.id === `${id}-wrapper`) {\n toggleOpen();\n }\n break;\n default:\n }\n },\n [id, toggleOpen]\n );\n\n return (\n <DropdownWrapper\n className={className}\n id={`${id}-wrapper`}\n onKeyDown={handleKeyDown}\n ref={containerRef}\n >\n <DropdownButton\n // Only set aria-controls when the dropdown is open\n // (otherwise, assistive technologies may not announce the dropdown correctly).\n aria-controls={open ? id : undefined}\n aria-expanded={open}\n aria-haspopup=\"listbox\"\n aria-label={label}\n id={`${id}-label`}\n onClick={toggleOpen}\n style={buttonStyle}\n title={label}\n type=\"button\"\n >\n <span>{text}</span>\n <span className=\"caret\" role=\"presentation\" />\n </DropdownButton>\n {open && (\n <DropdownMenu\n as={isList && \"ul\"}\n aria-label={listLabel}\n aria-labelledby={listLabel ? undefined : `${id}-label`}\n id={id}\n onClick={toggleOpen}\n alignLeft={alignMenuLeft}\n role={isList && \"listbox\"}\n tabIndex={-1}\n >\n {children}\n </DropdownMenu>\n )}\n </DropdownWrapper>\n );\n};\n\nexport default Dropdown;\n"],"mappings":";AAAA,OAAOA,KAAK,IAGVC,WAAW,EACXC,SAAS,EACTC,MAAM,EACNC,QAAQ,QACH,OAAO;AAEd,SACEC,cAAc,EACdC,kBAAkB,QACb,iCAAiC;AACxC,SAASC,cAAc,EAAEC,YAAY,EAAEC,eAAe,QAAQ,UAAU;AAWxE;AACA;AACA;AACA;AACA;AACA,IAAMC,QAAQ,GAAG,SAAXA,QAAQA,CAAAC,IAAA,EASY;EAAA,IARxBC,aAAa,GAAAD,IAAA,CAAbC,aAAa;IACbC,QAAQ,GAAAF,IAAA,CAARE,QAAQ;IACRC,SAAS,GAAAH,IAAA,CAATG,SAAS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H,QAAQ","ignoreList":[]}
@@ -1,6 +1,7 @@
1
1
  import React from "react";
2
2
  import styled from "styled-components";
3
- import { getMostReadableTextColor } from "@opentripplanner/core-utils/lib/route";
3
+ import coreUtils from "@opentripplanner/core-utils";
4
+ var getMostReadableTextColor = coreUtils.route.getMostReadableTextColor;
4
5
  var ColorBlock = styled.div.withConfig({
5
6
  displayName: "ColorPalette__ColorBlock",
6
7
  componentId: "sc-fil65c-0"
@@ -1 +1 @@
1
- {"version":3,"file":"ColorPalette.js","names":["React","styled","getMostReadableTextColor","ColorBlock","div","withConfig","displayName","componentId","props","hex","ColorPalette","_ref","color","colorArray","Object","entries","createElement","Fragment","map","hue","key"],"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,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,MAAM,MAAM,mBAAmB;AACtC,SAASC,wBAAwB,QAAQ,uCAAuC;AAUhF,IAAMC,UAAU,GAAGF,MAAM,CAACG,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mSAEP,UAAAC,KAAK;EAAA,OAAIA,KAAK,CAACC,GAAG;AAAA,GAC7B,UAAAD,KAAK;EAAA,OAAIN,wBAAwB,CAACM,KAAK,CAACC,GAAG,EAAE,SAAS,CAAC;AAAA,GACjD,UAAAD,KAAK;EAAA,OAClBN,wBAAwB,CAACM,KAAK,CAACC,GAAG,EAAE,SAAS,CAAC,KAAK,SAAS,GACxD,mBAAmB,GACnB,EAAE;AAAA,EAeT;AAED,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAsC;EAAA,IAAhCC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAC3B,IAAMC,UAAsB,GAAGC,MAAM,CAACC,OAAO,CAACH,KAAK,CAAC;EAEpD,oBACEZ,KAAA,CAAAgB,aAAA,CAAAhB,KAAA,CAAAiB,QAAA,QACGJ,UAAU,CAACK,GAAG,CACb,UAACC,GAAQ,EAAkB;IACzB,oBACEnB,KAAA,CAAAgB,aAAA,CAACb,UAAU;MAACiB,GAAG,EAAED,GAAG,CAAC,CAAC,CAAE;MAACV,GAAG,EAAEU,GAAG,CAAC,CAAC;IAAE,gBACnCnB,KAAA,CAAAgB,aAAA,YAAIG,GAAG,CAAC,CAAC,CAAK,CAAC,eACfnB,KAAA,CAAAgB,aAAA,YAAIG,GAAG,CAAC,CAAC,CAAK,CACJ,CAAC;EAEjB,CACF,CACA,CAAC;AAEP,CAAC;AACD,eAAeT,YAAY","ignoreList":[]}
1
+ {"version":3,"file":"ColorPalette.js","names":["React","styled","coreUtils","getMostReadableTextColor","route","ColorBlock","div","withConfig","displayName","componentId","props","hex","ColorPalette","_ref","color","colorArray","Object","entries","createElement","Fragment","map","hue","key"],"sources":["../../src/stories/ColorPalette.tsx"],"sourcesContent":["import React from \"react\";\n\nimport styled from \"styled-components\";\nimport coreUtils from \"@opentripplanner/core-utils\";\n\nconst { getMostReadableTextColor } = coreUtils.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,OAAOA,KAAK,MAAM,OAAO;AAEzB,OAAOC,MAAM,MAAM,mBAAmB;AACtC,OAAOC,SAAS,MAAM,6BAA6B;AAEnD,IAAQC,wBAAwB,GAAKD,SAAS,CAACE,KAAK,CAA5CD,wBAAwB;AAUhC,IAAME,UAAU,GAAGJ,MAAM,CAACK,GAAG,CAAAC,UAAA;EAAAC,WAAA;EAAAC,WAAA;AAAA,mSAEP,UAAAC,KAAK;EAAA,OAAIA,KAAK,CAACC,GAAG;AAAA,GAC7B,UAAAD,KAAK;EAAA,OAAIP,wBAAwB,CAACO,KAAK,CAACC,GAAG,EAAE,SAAS,CAAC;AAAA,GACjD,UAAAD,KAAK;EAAA,OAClBP,wBAAwB,CAACO,KAAK,CAACC,GAAG,EAAE,SAAS,CAAC,KAAK,SAAS,GACxD,mBAAmB,GACnB,EAAE;AAAA,EAeT;AAED,IAAMC,YAAY,GAAG,SAAfA,YAAYA,CAAAC,IAAA,EAAsC;EAAA,IAAhCC,KAAK,GAAAD,IAAA,CAALC,KAAK;EAC3B,IAAMC,UAAsB,GAAGC,MAAM,CAACC,OAAO,CAACH,KAAK,CAAC;EAEpD,oBACEd,KAAA,CAAAkB,aAAA,CAAAlB,KAAA,CAAAmB,QAAA,QACGJ,UAAU,CAACK,GAAG,CACb,UAACC,GAAQ,EAAkB;IACzB,oBACErB,KAAA,CAAAkB,aAAA,CAACb,UAAU;MAACiB,GAAG,EAAED,GAAG,CAAC,CAAC,CAAE;MAACV,GAAG,EAAEU,GAAG,CAAC,CAAC;IAAE,gBACnCrB,KAAA,CAAAkB,aAAA,YAAIG,GAAG,CAAC,CAAC,CAAK,CAAC,eACfrB,KAAA,CAAAkB,aAAA,YAAIG,GAAG,CAAC,CAAC,CAAK,CACJ,CAAC;EAEjB,CACF,CACA,CAAC;AAEP,CAAC;AACD,eAAeT,YAAY","ignoreList":[]}
@@ -1,76 +1,107 @@
1
1
  "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
6
17
  });
7
- exports.default = void 0;
8
- var _react = _interopRequireWildcard(require("react"));
9
- var _styledComponents = _interopRequireDefault(require("styled-components"));
10
- var _reactAnimateHeight = _interopRequireDefault(require("react-animate-height"));
11
- var _ChevronUp = require("@styled-icons/bootstrap/ChevronUp");
12
- var _Bell = require("@styled-icons/bootstrap/Bell");
13
- var _reactIntl = require("react-intl");
14
- var _blue = _interopRequireDefault(require("../colors/blue"));
15
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
16
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
17
- const AlertContainer = _styledComponents.default.div.withConfig({
18
- displayName: "Alert__AlertContainer",
19
- componentId: "sc-2vlo3n-0"
20
- })(["background-color:", ";display:grid;grid-template-columns:50px auto auto;grid-template-rows:minmax(25px,auto) auto;max-width:715px;padding:1.5em 2em;svg{align-self:center;grid-column:1;grid-row:1 / span 2;justify-self:start;}button{background:transparent;border:none;width:40px;svg{transform:", ";transition:all 0.2s ease-in;}}@media (max-width:550px){grid-template-columns:40px auto auto;padding:1.25em 1.25em;}"], props => props.backgroundColor ? props.backgroundColor : _blue.default[50], props => !props.expandAlert && "rotate(180deg)");
21
- const ButtonContainer = _styledComponents.default.span.withConfig({
22
- displayName: "Alert__ButtonContainer",
23
- componentId: "sc-2vlo3n-1"
24
- })(["align-items:center;display:flex;justify-content:center;justify-self:right;"]);
25
- const AlertHeader = _styledComponents.default.span.withConfig({
26
- displayName: "Alert__AlertHeader",
27
- componentId: "sc-2vlo3n-2"
28
- })(["align-self:center;font-weight:700;grid-column:2;"]);
29
- const AlertSubheader = (0, _styledComponents.default)(AlertHeader).withConfig({
30
- displayName: "Alert__AlertSubheader",
31
- componentId: "sc-2vlo3n-3"
32
- })(["font-weight:400;margin-top:0.3em;"]);
33
- const AlertContent = _styledComponents.default.div.withConfig({
34
- displayName: "Alert__AlertContent",
35
- componentId: "sc-2vlo3n-4"
36
- })(["grid-column:2;grid-row:3;"]);
37
- const ContentPadding = _styledComponents.default.div.withConfig({
38
- displayName: "Alert__ContentPadding",
39
- componentId: "sc-2vlo3n-5"
40
- })(["margin-top:", ";"], props => props.collapsible ? "1em" : ".5em");
41
- const Alert = ({
42
- alertHeader,
43
- alertSubheader,
44
- backgroundColor,
45
- children,
46
- collapsible,
47
- Icon = _Bell.Bell
48
- }) => {
49
- const [expandAlert, setExpandAlert] = (0, _react.useState)(false);
50
- const intl = (0, _reactIntl.useIntl)();
51
- const label = intl.formatMessage({
52
- id: "otpUi.buildingBlocks.alert.expand",
53
- defaultMessage: "Expand"
54
- });
55
- return /*#__PURE__*/_react.default.createElement(AlertContainer, {
56
- backgroundColor: backgroundColor,
57
- expandAlert: expandAlert,
58
- collapsible: collapsible
59
- }, /*#__PURE__*/_react.default.createElement(Icon, {
60
- size: 24
61
- }), /*#__PURE__*/_react.default.createElement(AlertHeader, null, alertHeader), /*#__PURE__*/_react.default.createElement(ButtonContainer, null, collapsible && /*#__PURE__*/_react.default.createElement("button", {
62
- type: "button",
63
- onClick: () => setExpandAlert(!expandAlert),
64
- "aria-label": label,
65
- title: label
66
- }, /*#__PURE__*/_react.default.createElement(_ChevronUp.ChevronUp, {
67
- size: 16
68
- }))), alertSubheader && /*#__PURE__*/_react.default.createElement(AlertSubheader, null, alertSubheader), children && /*#__PURE__*/_react.default.createElement(AlertContent, null, /*#__PURE__*/_react.default.createElement(_reactAnimateHeight.default, {
69
- duration: 500,
70
- height: collapsible ? expandAlert ? "auto" : 0 : "auto"
71
- }, /*#__PURE__*/_react.default.createElement(ContentPadding, {
72
- collapsible: collapsible
73
- }, children))));
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
25
+ var __importDefault = (this && this.__importDefault) || function (mod) {
26
+ return (mod && mod.__esModule) ? mod : { "default": mod };
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ const react_1 = __importStar(require("react"));
30
+ const styled_components_1 = __importDefault(require("styled-components"));
31
+ const react_animate_height_1 = __importDefault(require("react-animate-height"));
32
+ const ChevronUp_1 = require("@styled-icons/bootstrap/ChevronUp");
33
+ const Bell_1 = require("@styled-icons/bootstrap/Bell");
34
+ const react_intl_1 = require("react-intl");
35
+ const blue_1 = __importDefault(require("../colors/blue"));
36
+ const AlertContainer = styled_components_1.default.div `
37
+ background-color: ${props => props.backgroundColor ? props.backgroundColor : blue_1.default[50]};
38
+ display: grid;
39
+ grid-template-columns: 50px auto auto;
40
+ grid-template-rows: minmax(25px, auto) auto;
41
+ max-width: 715px;
42
+ padding: 1.5em 2em;
43
+
44
+ svg {
45
+ align-self: center;
46
+ grid-column: 1;
47
+ grid-row: 1 / span 2;
48
+ justify-self: start;
49
+ }
50
+
51
+ button {
52
+ background: transparent;
53
+ border: none;
54
+ width: 40px;
55
+
56
+ svg {
57
+ transform: ${props => !props.expandAlert && "rotate(180deg)"};
58
+ transition: all 0.2s ease-in;
59
+ }
60
+ }
61
+
62
+ @media (max-width: 550px) {
63
+ grid-template-columns: 40px auto auto;
64
+ padding: 1.25em 1.25em;
65
+ }
66
+ `;
67
+ const ButtonContainer = styled_components_1.default.span `
68
+ align-items: center;
69
+ display: flex;
70
+ justify-content: center;
71
+ justify-self: right;
72
+ `;
73
+ const AlertHeader = styled_components_1.default.span `
74
+ align-self: center;
75
+ font-weight: 700;
76
+ grid-column: 2;
77
+ `;
78
+ const AlertSubheader = (0, styled_components_1.default)(AlertHeader) `
79
+ font-weight: 400;
80
+ margin-top: 0.3em;
81
+ `;
82
+ const AlertContent = styled_components_1.default.div `
83
+ grid-column: 2;
84
+ grid-row: 3;
85
+ `;
86
+ const ContentPadding = styled_components_1.default.div `
87
+ margin-top: ${props => (props.collapsible ? "1em" : ".5em")};
88
+ `;
89
+ const Alert = ({ alertHeader, alertSubheader, backgroundColor, children, collapsible, Icon = Bell_1.Bell }) => {
90
+ const [expandAlert, setExpandAlert] = (0, react_1.useState)(false);
91
+ const intl = (0, react_intl_1.useIntl)();
92
+ const label = intl.formatMessage({
93
+ id: "otpUi.buildingBlocks.alert.expand",
94
+ defaultMessage: "Expand"
95
+ });
96
+ return (react_1.default.createElement(AlertContainer, { backgroundColor: backgroundColor, expandAlert: expandAlert, collapsible: collapsible },
97
+ react_1.default.createElement(Icon, { size: 24 }),
98
+ react_1.default.createElement(AlertHeader, null, alertHeader),
99
+ react_1.default.createElement(ButtonContainer, null, collapsible && (react_1.default.createElement("button", { type: "button", onClick: () => setExpandAlert(!expandAlert), "aria-label": label, title: label },
100
+ react_1.default.createElement(ChevronUp_1.ChevronUp, { size: 16 })))),
101
+ alertSubheader && react_1.default.createElement(AlertSubheader, null, alertSubheader),
102
+ children && (react_1.default.createElement(AlertContent, null,
103
+ react_1.default.createElement(react_animate_height_1.default, { duration: 500, height: collapsible ? (expandAlert ? "auto" : 0) : "auto" },
104
+ react_1.default.createElement(ContentPadding, { collapsible: collapsible }, children))))));
74
105
  };
75
- var _default = exports.default = Alert;
106
+ exports.default = Alert;
76
107
  //# sourceMappingURL=Alert.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Alert.js","names":["_react","_interopRequireWildcard","require","_styledComponents","_interopRequireDefault","_reactAnimateHeight","_ChevronUp","_Bell","_reactIntl","_blue","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","AlertContainer","styled","div","withConfig","displayName","componentId","props","backgroundColor","blue","expandAlert","ButtonContainer","span","AlertHeader","AlertSubheader","AlertContent","ContentPadding","collapsible","Alert","alertHeader","alertSubheader","children","Icon","Bell","setExpandAlert","useState","intl","useIntl","label","formatMessage","id","defaultMessage","createElement","size","type","onClick","title","ChevronUp","duration","height","_default","exports"],"sources":["../../src/alert/Alert.tsx"],"sourcesContent":["import React, { ReactChild, useState } from \"react\";\nimport styled from \"styled-components\";\nimport AnimateHeight from \"react-animate-height\";\nimport { ChevronUp } from \"@styled-icons/bootstrap/ChevronUp\";\nimport { Bell } from \"@styled-icons/bootstrap/Bell\";\nimport { StyledIcon } from \"@styled-icons/styled-icon\";\nimport { useIntl } from \"react-intl\";\nimport blue from \"../colors/blue\";\n\ninterface Props {\n alertHeader: string;\n alertSubheader?: string;\n backgroundColor?: string;\n collapsible?: boolean;\n children?: ReactChild;\n Icon?: StyledIcon;\n}\n\nconst AlertContainer = styled.div<{\n backgroundColor: string;\n collapsible: boolean;\n expandAlert: boolean;\n}>`\n background-color: ${props =>\n props.backgroundColor ? props.backgroundColor : blue[50]};\n display: grid;\n grid-template-columns: 50px auto auto;\n grid-template-rows: minmax(25px, auto) auto;\n max-width: 715px;\n padding: 1.5em 2em;\n\n svg {\n align-self: center;\n grid-column: 1;\n grid-row: 1 / span 2;\n justify-self: start;\n }\n\n button {\n background: transparent;\n border: none;\n width: 40px;\n\n svg {\n transform: ${props => !props.expandAlert && \"rotate(180deg)\"};\n transition: all 0.2s ease-in;\n }\n }\n\n @media (max-width: 550px) {\n grid-template-columns: 40px auto auto;\n padding: 1.25em 1.25em;\n }\n`;\n\nconst ButtonContainer = styled.span`\n align-items: center;\n display: flex;\n justify-content: center;\n justify-self: right;\n`;\n\nconst AlertHeader = styled.span`\n align-self: center;\n font-weight: 700;\n grid-column: 2;\n`;\n\nconst AlertSubheader = styled(AlertHeader)`\n font-weight: 400;\n margin-top: 0.3em;\n`;\n\nconst AlertContent = styled.div`\n grid-column: 2;\n grid-row: 3;\n`;\n\nconst ContentPadding = styled.div<{\n collapsible: boolean;\n}>`\n margin-top: ${props => (props.collapsible ? \"1em\" : \".5em\")};\n`;\n\nconst Alert = ({\n alertHeader,\n alertSubheader,\n backgroundColor,\n children,\n collapsible,\n Icon = Bell\n}: Props): JSX.Element => {\n const [expandAlert, setExpandAlert] = useState(false);\n const intl = useIntl();\n const label = intl.formatMessage({\n id: \"otpUi.buildingBlocks.alert.expand\",\n defaultMessage: \"Expand\"\n });\n return (\n <AlertContainer\n backgroundColor={backgroundColor}\n expandAlert={expandAlert}\n collapsible={collapsible}\n >\n <Icon size={24} />\n <AlertHeader>{alertHeader}</AlertHeader>\n <ButtonContainer>\n {collapsible && (\n <button\n type=\"button\"\n onClick={() => setExpandAlert(!expandAlert)}\n aria-label={label}\n title={label}\n >\n <ChevronUp size={16} />\n </button>\n )}\n </ButtonContainer>\n {alertSubheader && <AlertSubheader>{alertSubheader}</AlertSubheader>}\n {children && (\n <AlertContent>\n <AnimateHeight\n duration={500}\n height={collapsible ? (expandAlert ? \"auto\" : 0) : \"auto\"}\n >\n <ContentPadding collapsible={collapsible}>\n {children}\n </ContentPadding>\n </AnimateHeight>\n </AlertContent>\n )}\n </AlertContainer>\n );\n};\n\nexport default Alert;\n"],"mappings":";;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,mBAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,UAAA,GAAAJ,OAAA;AACA,IAAAK,KAAA,GAAAL,OAAA;AAEA,IAAAM,UAAA,GAAAN,OAAA;AACA,IAAAO,KAAA,GAAAL,sBAAA,CAAAF,OAAA;AAAkC,SAAAQ,yBAA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AAC,IAAI,IAAC,IAAI,EAAE,EAAE,GAAI;QAClB,8BAAC,WAAW,QAAE,WAAW,CAAe;QACxC,8BAAC,eAAe,QACb,WAAW,IAAI,CACd,0CACE,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,GAAG,EAAE,CAAC,cAAc,CAAC,CAAC,WAAW,CAAC,gBAC/B,KAAK,EACjB,KAAK,EAAE,KAAK;YAEZ,8BAAC,qBAAS,IAAC,IAAI,EAAE,EAAE,GAAI,CAChB,CACV,CACe;QACjB,cAAc,IAAI,8BAAC,cAAc,QAAE,cAAc,CAAkB;QACnE,QAAQ,IAAI,CACX,8BAAC,YAAY;YACX,8BAAC,8BAAa,IACZ,QAAQ,EAAE,GAAG,EACb,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM;gBAEzD,8BAAC,cAAc,IAAC,WAAW,EAAE,WAAW,IACrC,QAAQ,CACM,CACH,CACH,CAChB,CACc,CAClB,CAAC;AACJ,CAAC,CAAC;AAEF,kBAAe,KAAK,CAAC"}
@@ -1,22 +1,18 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
2
+ Object.defineProperty(exports, "__esModule", { value: true });
7
3
  const blue = {
8
- 50: "#E5ECF3",
9
- 100: "#CCDAE7",
10
- 200: "#B2C7DB",
11
- 300: "#99B5CF",
12
- 400: "#7FA2C2",
13
- 500: "#6690B7",
14
- 600: "#4D7EAB",
15
- // 700 and above text is WCAG AA accessible on white backgrounds.
16
- 700: "#336B9E",
17
- // 800 and above text is WCAG AAA accessible on white backgrounds.
18
- 800: "#1A5992",
19
- 900: "#004686"
4
+ 50: "#E5ECF3",
5
+ 100: "#CCDAE7",
6
+ 200: "#B2C7DB",
7
+ 300: "#99B5CF",
8
+ 400: "#7FA2C2",
9
+ 500: "#6690B7",
10
+ 600: "#4D7EAB",
11
+ // 700 and above text is WCAG AA accessible on white backgrounds.
12
+ 700: "#336B9E",
13
+ // 800 and above text is WCAG AAA accessible on white backgrounds.
14
+ 800: "#1A5992",
15
+ 900: "#004686"
20
16
  };
21
- var _default = exports.default = blue;
17
+ exports.default = blue;
22
18
  //# sourceMappingURL=blue.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"blue.js","names":["blue","_default","exports","default"],"sources":["../../src/colors/blue.ts"],"sourcesContent":["const blue = {\n 50: \"#E5ECF3\",\n 100: \"#CCDAE7\",\n 200: \"#B2C7DB\",\n 300: \"#99B5CF\",\n 400: \"#7FA2C2\",\n 500: \"#6690B7\",\n 600: \"#4D7EAB\",\n // 700 and above text is WCAG AA accessible on white backgrounds.\n 700: \"#336B9E\",\n // 800 and above text is WCAG AAA accessible on white backgrounds.\n 800: \"#1A5992\",\n 900: \"#004686\"\n};\n\nexport default blue;\n"],"mappings":";;;;;;AAAA,MAAMA,IAAI,GAAG;EACX,EAAE,EAAE,SAAS;EACb,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd;EACA,GAAG,EAAE,SAAS;EACd;EACA,GAAG,EAAE,SAAS;EACd,GAAG,EAAE;AACP,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaH,IAAI","ignoreList":[]}
1
+ {"version":3,"file":"blue.js","sourceRoot":"","sources":["../../src/colors/blue.ts"],"names":[],"mappings":";;AAAA,MAAM,IAAI,GAAG;IACX,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,iEAAiE;IACjE,GAAG,EAAE,SAAS;IACd,kEAAkE;IAClE,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACf,CAAC;AAEF,kBAAe,IAAI,CAAC"}
@@ -1,22 +1,18 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
2
+ Object.defineProperty(exports, "__esModule", { value: true });
7
3
  const grey = {
8
- 50: "#ECECEC",
9
- 100: "#D9D9D9",
10
- 200: "#C5C5C5",
11
- 300: "#B3B3B3",
12
- 400: "#9F9F9F",
13
- 500: "#8C8C8C",
14
- 600: "#797979",
15
- // 700 and above text is WCAG AA accessible on white backgrounds.
16
- 700: "#666666",
17
- // 800 and above text is WCAG AAA accessible on white backgrounds.
18
- 800: "#535353",
19
- 900: "#404040"
4
+ 50: "#ECECEC",
5
+ 100: "#D9D9D9",
6
+ 200: "#C5C5C5",
7
+ 300: "#B3B3B3",
8
+ 400: "#9F9F9F",
9
+ 500: "#8C8C8C",
10
+ 600: "#797979",
11
+ // 700 and above text is WCAG AA accessible on white backgrounds.
12
+ 700: "#666666",
13
+ // 800 and above text is WCAG AAA accessible on white backgrounds.
14
+ 800: "#535353",
15
+ 900: "#404040"
20
16
  };
21
- var _default = exports.default = grey;
17
+ exports.default = grey;
22
18
  //# sourceMappingURL=grey.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"grey.js","names":["grey","_default","exports","default"],"sources":["../../src/colors/grey.ts"],"sourcesContent":["const grey = {\n 50: \"#ECECEC\",\n 100: \"#D9D9D9\",\n 200: \"#C5C5C5\",\n 300: \"#B3B3B3\",\n 400: \"#9F9F9F\",\n 500: \"#8C8C8C\",\n 600: \"#797979\",\n // 700 and above text is WCAG AA accessible on white backgrounds.\n 700: \"#666666\",\n // 800 and above text is WCAG AAA accessible on white backgrounds.\n 800: \"#535353\",\n 900: \"#404040\"\n};\n\nexport default grey;\n"],"mappings":";;;;;;AAAA,MAAMA,IAAI,GAAG;EACX,EAAE,EAAE,SAAS;EACb,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd;EACA,GAAG,EAAE,SAAS;EACd;EACA,GAAG,EAAE,SAAS;EACd,GAAG,EAAE;AACP,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaH,IAAI","ignoreList":[]}
1
+ {"version":3,"file":"grey.js","sourceRoot":"","sources":["../../src/colors/grey.ts"],"names":[],"mappings":";;AAAA,MAAM,IAAI,GAAG;IACX,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,iEAAiE;IACjE,GAAG,EAAE,SAAS;IACd,kEAAkE;IAClE,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;CACf,CAAC;AAEF,kBAAe,IAAI,CAAC"}
package/lib/colors/red.js CHANGED
@@ -1,22 +1,18 @@
1
1
  "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- exports.default = void 0;
2
+ Object.defineProperty(exports, "__esModule", { value: true });
7
3
  const red = {
8
- 50: "#F7E7E6",
9
- 100: "#EFCFCE",
10
- 200: "#E7B6B4",
11
- 300: "#DF9E9C",
12
- 400: "#D78683",
13
- 500: "#CF6E6B",
14
- 600: "#C75652",
15
- // 700 and above text is WCAG AA accessible on white backgrounds.
16
- 700: "#BF3E3A",
17
- 800: "#B72620",
18
- // 900 text is WCAG AAA accessible on white backgrounds.
19
- 900: "#AF0E08"
4
+ 50: "#F7E7E6",
5
+ 100: "#EFCFCE",
6
+ 200: "#E7B6B4",
7
+ 300: "#DF9E9C",
8
+ 400: "#D78683",
9
+ 500: "#CF6E6B",
10
+ 600: "#C75652",
11
+ // 700 and above text is WCAG AA accessible on white backgrounds.
12
+ 700: "#BF3E3A",
13
+ 800: "#B72620",
14
+ // 900 text is WCAG AAA accessible on white backgrounds.
15
+ 900: "#AF0E08"
20
16
  };
21
- var _default = exports.default = red;
17
+ exports.default = red;
22
18
  //# sourceMappingURL=red.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"red.js","names":["red","_default","exports","default"],"sources":["../../src/colors/red.ts"],"sourcesContent":["const red = {\n 50: \"#F7E7E6\",\n 100: \"#EFCFCE\",\n 200: \"#E7B6B4\",\n 300: \"#DF9E9C\",\n 400: \"#D78683\",\n 500: \"#CF6E6B\",\n 600: \"#C75652\",\n // 700 and above text is WCAG AA accessible on white backgrounds.\n 700: \"#BF3E3A\",\n 800: \"#B72620\",\n // 900 text is WCAG AAA accessible on white backgrounds.\n 900: \"#AF0E08\"\n};\n\nexport default red;\n"],"mappings":";;;;;;AAAA,MAAMA,GAAG,GAAG;EACV,EAAE,EAAE,SAAS;EACb,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd;EACA,GAAG,EAAE,SAAS;EACd,GAAG,EAAE,SAAS;EACd;EACA,GAAG,EAAE;AACP,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaH,GAAG","ignoreList":[]}
1
+ {"version":3,"file":"red.js","sourceRoot":"","sources":["../../src/colors/red.ts"],"names":[],"mappings":";;AAAA,MAAM,GAAG,GAAG;IACV,EAAE,EAAE,SAAS;IACb,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,iEAAiE;IACjE,GAAG,EAAE,SAAS;IACd,GAAG,EAAE,SAAS;IACd,wDAAwD;IACxD,GAAG,EAAE,SAAS;CACf,CAAC;AAEF,kBAAe,GAAG,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dropdown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,cAAc,EAMf,MAAM,OAAO,CAAC;AAQf,MAAM,WAAW,KAAM,SAAQ,cAAc,CAAC,WAAW,CAAC;IACxD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;;;GAIG;AACH,QAAA,MAAM,QAAQ,oFASX,KAAK,KAAG,WAqGV,CAAC;AAEF,eAAe,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dropdown/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACZ,cAAc,EAMf,MAAM,OAAO,CAAC;AAQf,MAAM,WAAW,KAAM,SAAQ,cAAc,CAAC,WAAW,CAAC;IACxD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAClC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,IAAI,CAAC,EAAE,GAAG,CAAC,OAAO,GAAG,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,OAAO,CAAC;CACf;AAED;;;;GAIG;AACH,QAAA,MAAM,QAAQ,oFASX,KAAK,KAAG,WAsGV,CAAC;AAEF,eAAe,QAAQ,CAAC"}