@driveflux/icons 3.0.0 → 3.0.2

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,102 +1,4 @@
1
- function _define_property(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
- return obj;
13
- }
14
- function _object_spread(target) {
15
- for(var i = 1; i < arguments.length; i++){
16
- var source = arguments[i] != null ? arguments[i] : {};
17
- var ownKeys = Object.keys(source);
18
- if (typeof Object.getOwnPropertySymbols === "function") {
19
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
- }));
22
- }
23
- ownKeys.forEach(function(key) {
24
- _define_property(target, key, source[key]);
25
- });
26
- }
27
- return target;
28
- }
29
- function ownKeys(object, enumerableOnly) {
30
- var keys = Object.keys(object);
31
- if (Object.getOwnPropertySymbols) {
32
- var symbols = Object.getOwnPropertySymbols(object);
33
- if (enumerableOnly) {
34
- symbols = symbols.filter(function(sym) {
35
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
36
- });
37
- }
38
- keys.push.apply(keys, symbols);
39
- }
40
- return keys;
41
- }
42
- function _object_spread_props(target, source) {
43
- source = source != null ? source : {};
44
- if (Object.getOwnPropertyDescriptors) {
45
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
46
- } else {
47
- ownKeys(Object(source)).forEach(function(key) {
48
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
49
- });
50
- }
51
- return target;
52
- }
53
- function _object_without_properties(source, excluded) {
54
- if (source == null) return {};
55
- var target = _object_without_properties_loose(source, excluded);
56
- var key, i;
57
- if (Object.getOwnPropertySymbols) {
58
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
59
- for(i = 0; i < sourceSymbolKeys.length; i++){
60
- key = sourceSymbolKeys[i];
61
- if (excluded.indexOf(key) >= 0) continue;
62
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
63
- target[key] = source[key];
64
- }
65
- }
66
- return target;
67
- }
68
- function _object_without_properties_loose(source, excluded) {
69
- if (source == null) return {};
70
- var target = {};
71
- var sourceKeys = Object.keys(source);
72
- var key, i;
73
- for(i = 0; i < sourceKeys.length; i++){
74
- key = sourceKeys[i];
75
- if (excluded.indexOf(key) >= 0) continue;
76
- target[key] = source[key];
77
- }
78
- return target;
79
- }
80
1
  import { jsx as _jsx } from "react/jsx-runtime";
81
2
  import { Icon } from '@chakra-ui/icons';
82
- var IconWrapper = function(_param) {
83
- var size = _param.size, element = _param.element, fill = _param.fill, color = _param.color, h = _param.h, props = _object_without_properties(_param, [
84
- "size",
85
- "element",
86
- "fill",
87
- "color",
88
- "h"
89
- ]);
90
- return /*#__PURE__*/ _jsx(Icon, _object_spread_props(_object_spread({
91
- border: 0,
92
- color: fill || color,
93
- fill: fill || 'currentColor',
94
- h: h
95
- }, size && {
96
- w: size,
97
- h: size
98
- }, props), {
99
- children: element
100
- }));
101
- };
3
+ const IconWrapper = ({ size, element, fill, color, h, ...props }) => (_jsx(Icon, { border: 0, color: fill || color, fill: fill || 'currentColor', h: h, ...(size && { w: size, h: size }), ...props, children: element }));
102
4
  export default IconWrapper;
@@ -1,77 +1,8 @@
1
- function _define_property(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
- return obj;
13
- }
14
- function _object_spread(target) {
15
- for(var i = 1; i < arguments.length; i++){
16
- var source = arguments[i] != null ? arguments[i] : {};
17
- var ownKeys = Object.keys(source);
18
- if (typeof Object.getOwnPropertySymbols === "function") {
19
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
- }));
22
- }
23
- ownKeys.forEach(function(key) {
24
- _define_property(target, key, source[key]);
25
- });
26
- }
27
- return target;
28
- }
29
- function _object_without_properties(source, excluded) {
30
- if (source == null) return {};
31
- var target = _object_without_properties_loose(source, excluded);
32
- var key, i;
33
- if (Object.getOwnPropertySymbols) {
34
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
35
- for(i = 0; i < sourceSymbolKeys.length; i++){
36
- key = sourceSymbolKeys[i];
37
- if (excluded.indexOf(key) >= 0) continue;
38
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
39
- target[key] = source[key];
40
- }
41
- }
42
- return target;
43
- }
44
- function _object_without_properties_loose(source, excluded) {
45
- if (source == null) return {};
46
- var target = {};
47
- var sourceKeys = Object.keys(source);
48
- var key, i;
49
- for(i = 0; i < sourceKeys.length; i++){
50
- key = sourceKeys[i];
51
- if (excluded.indexOf(key) >= 0) continue;
52
- target[key] = source[key];
53
- }
54
- return target;
55
- }
56
1
  import { jsx as _jsx } from "react/jsx-runtime";
57
2
  import React from 'react';
58
3
  import IconWrapper from '../IconWrapper.js';
59
- var variants = {
60
- default: /*#__PURE__*/ _jsx("path", {
61
- d: "M3.60938 2.89062L2.89062 3.60938L7.28125 8L2.89062 12.3906L3.60938 13.1094L8 8.71875L12.3906 13.1094L13.1094 12.3906L8.71875 8L13.1094 3.60938L12.3906 2.89062L8 7.28125L3.60938 2.89062Z",
62
- fill: "currentColor"
63
- })
64
- };
65
- var IconClose = function(_param) {
66
- var _param_viewBox = _param.viewBox, viewBox = _param_viewBox === void 0 ? '0 0 16 16' : _param_viewBox, _param_variant = _param.variant, variant = _param_variant === void 0 ? 'default' : _param_variant, props = _object_without_properties(_param, [
67
- "viewBox",
68
- "variant"
69
- ]);
70
- return /*#__PURE__*/ _jsx(React.Fragment, {
71
- children: /*#__PURE__*/ _jsx(IconWrapper, _object_spread({
72
- viewBox: viewBox,
73
- element: variants[variant]
74
- }, props))
75
- });
4
+ const variants = {
5
+ default: (_jsx("path", { d: "M3.60938 2.89062L2.89062 3.60938L7.28125 8L2.89062 12.3906L3.60938 13.1094L8 8.71875L12.3906 13.1094L13.1094 12.3906L8.71875 8L13.1094 3.60938L12.3906 2.89062L8 7.28125L3.60938 2.89062Z", fill: "currentColor" })),
76
6
  };
7
+ const IconClose = ({ viewBox = '0 0 16 16', variant = 'default', ...props }) => (_jsx(React.Fragment, { children: _jsx(IconWrapper, { viewBox: viewBox, element: variants[variant], ...props }) }));
77
8
  export default IconClose;
@@ -1,108 +1,8 @@
1
- function _define_property(obj, key, value) {
2
- if (key in obj) {
3
- Object.defineProperty(obj, key, {
4
- value: value,
5
- enumerable: true,
6
- configurable: true,
7
- writable: true
8
- });
9
- } else {
10
- obj[key] = value;
11
- }
12
- return obj;
13
- }
14
- function _object_spread(target) {
15
- for(var i = 1; i < arguments.length; i++){
16
- var source = arguments[i] != null ? arguments[i] : {};
17
- var ownKeys = Object.keys(source);
18
- if (typeof Object.getOwnPropertySymbols === "function") {
19
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
20
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
21
- }));
22
- }
23
- ownKeys.forEach(function(key) {
24
- _define_property(target, key, source[key]);
25
- });
26
- }
27
- return target;
28
- }
29
- function _object_without_properties(source, excluded) {
30
- if (source == null) return {};
31
- var target = _object_without_properties_loose(source, excluded);
32
- var key, i;
33
- if (Object.getOwnPropertySymbols) {
34
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
35
- for(i = 0; i < sourceSymbolKeys.length; i++){
36
- key = sourceSymbolKeys[i];
37
- if (excluded.indexOf(key) >= 0) continue;
38
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
39
- target[key] = source[key];
40
- }
41
- }
42
- return target;
43
- }
44
- function _object_without_properties_loose(source, excluded) {
45
- if (source == null) return {};
46
- var target = {};
47
- var sourceKeys = Object.keys(source);
48
- var key, i;
49
- for(i = 0; i < sourceKeys.length; i++){
50
- key = sourceKeys[i];
51
- if (excluded.indexOf(key) >= 0) continue;
52
- target[key] = source[key];
53
- }
54
- return target;
55
- }
56
- import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
1
+ import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
57
2
  import IconWrapper from '../IconWrapper.js';
58
- var variants = {
59
- outline: /*#__PURE__*/ _jsxs(_Fragment, {
60
- children: [
61
- /*#__PURE__*/ _jsx("path", {
62
- d: "M6 4V28H20L25 23L26 22V4H6ZM18 26H8V6H24V21H18V26ZM20 25.2V23H22.2L20 25.2Z",
63
- fill: "currentColor"
64
- }),
65
- /*#__PURE__*/ _jsx("path", {
66
- d: "M22 9H10V11H22V9Z",
67
- fill: "currentColor"
68
- }),
69
- /*#__PURE__*/ _jsx("path", {
70
- d: "M18 13H10V15H18V13Z",
71
- fill: "currentColor"
72
- }),
73
- /*#__PURE__*/ _jsx("path", {
74
- d: "M18 17H10V19H18V17Z",
75
- fill: "currentColor"
76
- }),
77
- /*#__PURE__*/ _jsx("path", {
78
- d: "M16 21H10V23H16V21Z",
79
- fill: "currentColor"
80
- }),
81
- /*#__PURE__*/ _jsx("path", {
82
- d: "M22 13H20V15H22V13Z",
83
- fill: "currentColor"
84
- }),
85
- /*#__PURE__*/ _jsx("path", {
86
- d: "M22 17H20V19H22V17Z",
87
- fill: "currentColor"
88
- })
89
- ]
90
- }),
91
- filled: /*#__PURE__*/ _jsx(_Fragment, {
92
- children: /*#__PURE__*/ _jsx("path", {
93
- d: "M6 4V28H20L25 23L26 22V4H6ZM16 23H10V21H16V23ZM10 19V17H18V19H10ZM10 15V13H18V15H10ZM22 17V19H20V17H22ZM20 15V13H22V15H20ZM22 11H10V9H22V11ZM20 25.2V23H22.2L20 25.2Z",
94
- fill: "currentColor"
95
- })
96
- })
97
- };
98
- var IconQuotations = function(_param) {
99
- var _param_viewBox = _param.viewBox, viewBox = _param_viewBox === void 0 ? '0 0 32 32' : _param_viewBox, _param_variant = _param.variant, variant = _param_variant === void 0 ? 'outline' : _param_variant, props = _object_without_properties(_param, [
100
- "viewBox",
101
- "variant"
102
- ]);
103
- return /*#__PURE__*/ _jsx(IconWrapper, _object_spread({
104
- viewBox: viewBox,
105
- element: variants[variant]
106
- }, props));
3
+ const variants = {
4
+ outline: (_jsxs(_Fragment, { children: [_jsx("path", { d: "M6 4V28H20L25 23L26 22V4H6ZM18 26H8V6H24V21H18V26ZM20 25.2V23H22.2L20 25.2Z", fill: "currentColor" }), _jsx("path", { d: "M22 9H10V11H22V9Z", fill: "currentColor" }), _jsx("path", { d: "M18 13H10V15H18V13Z", fill: "currentColor" }), _jsx("path", { d: "M18 17H10V19H18V17Z", fill: "currentColor" }), _jsx("path", { d: "M16 21H10V23H16V21Z", fill: "currentColor" }), _jsx("path", { d: "M22 13H20V15H22V13Z", fill: "currentColor" }), _jsx("path", { d: "M22 17H20V19H22V17Z", fill: "currentColor" })] })),
5
+ filled: (_jsx(_Fragment, { children: _jsx("path", { d: "M6 4V28H20L25 23L26 22V4H6ZM16 23H10V21H16V23ZM10 19V17H18V19H10ZM10 15V13H18V15H10ZM22 17V19H20V17H22ZM20 15V13H22V15H20ZM22 11H10V9H22V11ZM20 25.2V23H22.2L20 25.2Z", fill: "currentColor" }) })),
107
6
  };
7
+ const IconQuotations = ({ viewBox = '0 0 32 32', variant = 'outline', ...props }) => _jsx(IconWrapper, { viewBox: viewBox, element: variants[variant], ...props });
108
8
  export default IconQuotations;
package/dist/types.js CHANGED
@@ -1,2 +1 @@
1
- // TODO F is no longer being used
2
- export { };
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@driveflux/icons",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": {
@@ -19,14 +19,14 @@
19
19
  "@chakra-ui/icons": "^2.2.4"
20
20
  },
21
21
  "devDependencies": {
22
- "@driveflux/fab": "4.0.0",
23
- "@driveflux/tsconfig": "3.0.0",
24
- "@swc/cli": "^0.7.8",
25
- "@swc/core": "^1.13.5",
26
- "@types/node": "^24.9.1",
27
- "@types/react": "19.2.2",
22
+ "@driveflux/fab": "4.0.2",
23
+ "@driveflux/tsconfig": "3.0.2",
24
+ "@swc/cli": "^0.8.1",
25
+ "@swc/core": "^1.15.33",
26
+ "@types/node": "^25.9.1",
27
+ "@types/react": "19.2.15",
28
28
  "del-cli": "^7.0.0",
29
- "typescript": "^5.9.3"
29
+ "typescript": "^6.0.3"
30
30
  },
31
31
  "scripts": {
32
32
  "build": "fab",