UNPKG

onecart-ui

Version:

OneCart UI: Cross-platform design tokens + React & React Native components

11 lines (10 loc) 2.79 kB
import React from 'react'; import { Svg, Path } from 'react-native-svg'; export const VisibilityOff = ({ size = 'md', color = 'currentColor', style, }) => { const sizeMap = { xs: 16, sm: 20, md: 24, lg: 32, xl: 40 }; const iconSize = typeof size === 'number' ? size : sizeMap[size]; return (React.createElement(Svg, { width: iconSize, height: iconSize, viewBox: "0 0 24 24", fill: "none", style: style }, React.createElement(Path, { d: "M12.000 5.227C15.445 5.227 18.518 7.164 20.018 10.227C19.482 11.336 18.727 12.291 17.827 13.064L19.109 14.345C20.373 13.227 21.373 11.827 22.000 10.227C20.427 6.236 16.545 3.409 12.000 3.409C10.845 3.409 9.736 3.591 8.691 3.927L10.191 5.427C10.782 5.309 11.382 5.227 12.000 5.227ZM11.027 6.264L12.909 8.145C13.427 8.373 13.845 8.791 14.073 9.309L15.955 11.191C16.027 10.882 16.082 10.555 16.082 10.218C16.091 7.964 14.255 6.136 12.000 6.136C11.664 6.136 11.345 6.182 11.027 6.264ZM2.918 3.291L5.355 5.727C3.873 6.891 2.700 8.436 2.000 10.227C3.573 14.218 7.455 17.045 12.000 17.045C13.382 17.045 14.709 16.782 15.927 16.300L19.036 19.409L20.318 18.127L4.200 2.000L2.918 3.291ZM9.736 10.109L12.109 12.482C12.073 12.491 12.036 12.500 12.000 12.500C10.745 12.500 9.727 11.482 9.727 10.227C9.727 10.182 9.736 10.155 9.736 10.109ZM6.645 7.018L8.236 8.609C8.027 9.109 7.909 9.655 7.909 10.227C7.909 12.482 9.745 14.318 12.000 14.318C12.573 14.318 13.118 14.200 13.609 13.991L14.500 14.882C13.700 15.100 12.864 15.227 12.000 15.227C8.555 15.227 5.482 13.291 3.982 10.227C4.618 8.927 5.545 7.855 6.645 7.018Z", fill: color }), React.createElement(Path, { d: "M12.000 5.227C15.445 5.227 18.518 7.164 20.018 10.227C19.482 11.336 18.727 12.291 17.827 13.064L19.109 14.345C20.373 13.227 21.373 11.827 22.000 10.227C20.427 6.236 16.545 3.409 12.000 3.409C10.845 3.409 9.736 3.591 8.691 3.927L10.191 5.427C10.782 5.309 11.382 5.227 12.000 5.227ZM11.027 6.264L12.909 8.145C13.427 8.373 13.845 8.791 14.073 9.309L15.955 11.191C16.027 10.882 16.082 10.555 16.082 10.218C16.091 7.964 14.255 6.136 12.000 6.136C11.664 6.136 11.345 6.182 11.027 6.264ZM2.918 3.291L5.355 5.727C3.873 6.891 2.700 8.436 2.000 10.227C3.573 14.218 7.455 17.045 12.000 17.045C13.382 17.045 14.709 16.782 15.927 16.300L19.036 19.409L20.318 18.127L4.200 2.000L2.918 3.291ZM9.736 10.109L12.109 12.482C12.073 12.491 12.036 12.500 12.000 12.500C10.745 12.500 9.727 11.482 9.727 10.227C9.727 10.182 9.736 10.155 9.736 10.109ZM6.645 7.018L8.236 8.609C8.027 9.109 7.909 9.655 7.909 10.227C7.909 12.482 9.745 14.318 12.000 14.318C12.573 14.318 13.118 14.200 13.609 13.991L14.500 14.882C13.700 15.100 12.864 15.227 12.000 15.227C8.555 15.227 5.482 13.291 3.982 10.227C4.618 8.927 5.545 7.855 6.645 7.018Z", fill: color }))); }; VisibilityOff.displayName = 'VisibilityOff';