UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com's products.

31 lines (30 loc) 1.36 kB
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default; exports.__esModule = true; exports.default = void 0; var React = _interopRequireWildcard(require("react")); var Icons = _interopRequireWildcard(require("../icons")); const IconList = () => /*#__PURE__*/React.createElement("div", { className: "rounded-150 flex flex-row flex-wrap justify-between" }, Object.keys(Icons).filter(n => n !== "__namedExportsOrder").map(icon => { const Icon = Icons[icon]; const iconName = `${icon}`; return /*#__PURE__*/React.createElement("div", { className: "gap-600 bg-white-normal mb-600 rounded-150 border-cloud-normal px-600 flex w-full flex-row content-center items-center justify-start border border-solid", style: { minHeight: "80px" }, key: icon }, /*#__PURE__*/React.createElement(Icon, { size: "large", color: "primary", ariaLabel: iconName }), /*#__PURE__*/React.createElement("div", { className: "leading-small text-ink-dark bg-cloud-light border-cloud-normal py-100 ps-200 border border-solid", style: { fontFamily: '"SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace', fontSize: "12px" } }, `import ${iconName} from "@kiwicom/orbit-components/lib/icons/${iconName}"`)); })); var _default = exports.default = IconList;