@pop-ui/foundation 2.2.2 → 2.2.4

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.
@@ -1,9 +1,13 @@
1
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
2
  // This file is auto-generated by scripts/generate-native.ts
3
3
  // DO NOT EDIT MANUALLY — changes will be overwritten on the next build
4
4
  // To update: modify the source in src/icons/*.tsx, src/illustrations/*.tsx, or src/brand/*.tsx, then run `yarn build`
5
- import { Path, Rect, Svg } from 'react-native-svg';
5
+ import { useId } from 'react';
6
+ import { G, Mask, Path, Rect, Svg } from 'react-native-svg';
6
7
  import { ColorGray900 } from '../../tokens/colors';
7
- export default function IconSmartphone({ size = 24, color = ColorGray900, variant: _variant = 'line', ...props }) {
8
- return (_jsxs(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", ...props, children: [_jsx(Rect, { x: "6.5", y: "2.75", width: "11", height: "18.5", rx: "2", stroke: color, strokeWidth: "1.5" }), _jsx(Path, { d: "M10.25 5.25H13.75", stroke: color, strokeWidth: "1.5", strokeLinecap: "round" })] }));
8
+ const SPEAKER_PATH = 'M10.25 5.25H13.75';
9
+ export default function IconSmartphone({ size = 24, color = ColorGray900, variant = 'line', ...props }) {
10
+ const isFilled = variant === 'filled';
11
+ const maskId = useId();
12
+ return (_jsx(Svg, { width: size, height: size, viewBox: "0 0 24 24", fill: "none", ...props, children: isFilled ? (_jsxs(_Fragment, { children: [_jsxs(Mask, { id: maskId, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "24", children: [_jsx(Rect, { width: "24", height: "24", fill: "white" }), _jsx(Path, { d: SPEAKER_PATH, stroke: "black", strokeWidth: "1.5", strokeLinecap: "round" })] }), _jsx(G, { mask: `url(#${maskId})`, children: _jsx(Rect, { x: "6.5", y: "2.75", width: "11", height: "18.5", rx: "2", fill: color, stroke: color, strokeWidth: "1.5" }) })] })) : (_jsxs(_Fragment, { children: [_jsx(Rect, { x: "6.5", y: "2.75", width: "11", height: "18.5", rx: "2", stroke: color, strokeWidth: "1.5" }), _jsx(Path, { d: SPEAKER_PATH, stroke: color, strokeWidth: "1.5", strokeLinecap: "round" })] })) }));
9
13
  }
@@ -500,7 +500,7 @@ declare function IconShop({ size, color, variant, ...props }: IIconProps): JSX.E
500
500
  export { IconShop }
501
501
  export { IconShop as IconStore }
502
502
 
503
- export declare function IconSmartphone({ size, color, variant: _variant, ...props }: IIconLineOnlyProps): JSX.Element;
503
+ export declare function IconSmartphone({ size, color, variant, ...props }: IIconProps): JSX.Element;
504
504
 
505
505
  export declare function IconSound({ size, color, variant, ...props }: IIconProps): JSX.Element;
506
506
 
@@ -1,2 +1,2 @@
1
- import type { IIconLineOnlyProps } from '../../types/icon.native';
2
- export default function IconSmartphone({ size, color, variant: _variant, ...props }: IIconLineOnlyProps): import("react/jsx-runtime").JSX.Element;
1
+ import type { IIconProps } from '../../types/icon.native';
2
+ export default function IconSmartphone({ size, color, variant, ...props }: IIconProps): import("react/jsx-runtime").JSX.Element;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@pop-ui/foundation",
3
3
  "type": "module",
4
- "version": "2.2.2",
4
+ "version": "2.2.4",
5
5
  "main": "./dist/foundation.umd.cjs",
6
6
  "module": "./dist/foundation.js",
7
7
  "types": "./dist/types/index.d.ts",