@crystallize/design-system 1.24.46 → 2.0.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.
- package/CHANGELOG.md +19 -0
- package/dist/{chunk-6DIAYHKQ.mjs → chunk-B2Q2EUTC.mjs} +5339 -4416
- package/dist/index.css +156 -208
- package/dist/index.d.ts +57 -204
- package/dist/index.js +8873 -8258
- package/dist/index.mjs +137 -307
- package/dist/{parser-babel-B7AMC4UT.mjs → parser-babel-D5SPHKKD.mjs} +2424 -2411
- package/dist/{parser-html-URMUOK6U.mjs → parser-html-RZQPYQ4H.mjs} +3 -3
- package/dist/{parser-postcss-AN2EJ77H.mjs → parser-postcss-D5TI5WMI.mjs} +6 -6
- package/dist/{rich-text-editor-EVN3N57G.css → rich-text-editor-4ZROYBHM.css} +98 -147
- package/dist/{rich-text-editor-QGMRYDKQ.mjs → rich-text-editor-SIZB67MA.mjs} +667 -873
- package/dist/{standalone-AR2ENVE7.mjs → standalone-COC5HE24.mjs} +8 -6
- package/package.json +26 -27
- package/src/action-menu/action-menu.tsx +1 -2
- package/src/dialog/config.tsx +6 -10
- package/src/dialog/dialog.tsx +2 -2
- package/src/dropdown-menu/dropdown-menu-root.tsx +3 -4
- package/src/iconography/Icon.stories.tsx +0 -1
- package/src/iconography/actions.tsx +1 -5
- package/src/iconography/add.tsx +1 -5
- package/src/iconography/advance.tsx +1 -5
- package/src/iconography/app.tsx +1 -5
- package/src/iconography/archive.tsx +1 -5
- package/src/iconography/arrow.tsx +1 -5
- package/src/iconography/atom.tsx +1 -5
- package/src/iconography/battery.tsx +1 -5
- package/src/iconography/bell.tsx +1 -5
- package/src/iconography/billing-payments.tsx +1 -5
- package/src/iconography/bin.tsx +1 -5
- package/src/iconography/boolean.tsx +17 -0
- package/src/iconography/cancel.tsx +1 -5
- package/src/iconography/caret.tsx +2 -6
- package/src/iconography/cart.tsx +1 -5
- package/src/iconography/catalogue.tsx +1 -4
- package/src/iconography/check-with-circle.tsx +1 -4
- package/src/iconography/check.tsx +1 -4
- package/src/iconography/checkbox.tsx +24 -0
- package/src/iconography/chevron.tsx +1 -3
- package/src/iconography/choice.tsx +1 -5
- package/src/iconography/chunk.tsx +1 -5
- package/src/iconography/clock.tsx +1 -5
- package/src/iconography/cloud-with-key-hole.tsx +1 -5
- package/src/iconography/cloud.tsx +1 -5
- package/src/iconography/compact.tsx +1 -5
- package/src/iconography/copy-with-cloud.tsx +2 -13
- package/src/iconography/copy.tsx +1 -5
- package/src/iconography/coupon.tsx +1 -5
- package/src/iconography/crystal.tsx +2 -14
- package/src/iconography/customers.tsx +1 -5
- package/src/iconography/dashboard.tsx +1 -5
- package/src/iconography/date-infinity.tsx +1 -5
- package/src/iconography/date.tsx +1 -5
- package/src/iconography/discovery.tsx +1 -5
- package/src/iconography/document-shortcut.tsx +1 -5
- package/src/iconography/document.tsx +1 -5
- package/src/iconography/dots.tsx +1 -5
- package/src/iconography/download.tsx +1 -5
- package/src/iconography/drag-handle.tsx +1 -5
- package/src/iconography/dynamic-value.tsx +1 -5
- package/src/iconography/edit.tsx +1 -5
- package/src/iconography/error-white.tsx +1 -4
- package/src/iconography/error.tsx +1 -4
- package/src/iconography/expanded.tsx +1 -5
- package/src/iconography/eye-closed.tsx +1 -5
- package/src/iconography/eye-open.tsx +1 -5
- package/src/iconography/file-upload.tsx +1 -5
- package/src/iconography/filename.tsx +1 -5
- package/src/iconography/fixed-property-table.tsx +1 -5
- package/src/iconography/fixed-value.tsx +1 -5
- package/src/iconography/flow.tsx +9 -21
- package/src/iconography/folder-shortcut.tsx +1 -5
- package/src/iconography/folder.tsx +1 -5
- package/src/iconography/frontends.tsx +1 -5
- package/src/iconography/fulfilment.tsx +1 -5
- package/src/iconography/glasses.tsx +2 -13
- package/src/iconography/graphQL.tsx +2 -13
- package/src/iconography/grid-relation.tsx +1 -5
- package/src/iconography/grid.tsx +1 -5
- package/src/iconography/hand-mirror.tsx +1 -4
- package/src/iconography/hooks.tsx +1 -5
- package/src/iconography/image.tsx +1 -5
- package/src/iconography/index.ts +16 -1
- package/src/iconography/info.tsx +1 -4
- package/src/iconography/items.tsx +1 -5
- package/src/iconography/key.tsx +1 -5
- package/src/iconography/language.tsx +2 -6
- package/src/iconography/lifebouy.tsx +2 -6
- package/src/iconography/limitations.tsx +1 -5
- package/src/iconography/location.tsx +2 -6
- package/src/iconography/lock-closed.tsx +1 -5
- package/src/iconography/lock-open.tsx +2 -6
- package/src/iconography/magnifier.tsx +22 -37
- package/src/iconography/meta-preset.tsx +36 -0
- package/src/iconography/min-quantity.tsx +2 -6
- package/src/iconography/min-value.tsx +2 -6
- package/src/iconography/multilingual.tsx +2 -6
- package/src/iconography/multiple-choice.tsx +2 -6
- package/src/iconography/mushroom.tsx +2 -6
- package/src/iconography/nail-polish.tsx +3 -14
- package/src/iconography/number.tsx +16 -0
- package/src/iconography/numeric.tsx +2 -6
- package/src/iconography/order.tsx +2 -6
- package/src/iconography/organization.tsx +2 -6
- package/src/iconography/paragraph-collection.tsx +2 -6
- package/src/iconography/particle.tsx +3 -15
- package/src/iconography/paths.tsx +2 -5
- package/src/iconography/people.tsx +2 -6
- package/src/iconography/percentage.tsx +3 -8
- package/src/iconography/piece.tsx +4 -8
- package/src/iconography/pin.tsx +2 -6
- package/src/iconography/pipeline-dashed.tsx +2 -6
- package/src/iconography/plans-and-pricing.tsx +2 -6
- package/src/iconography/plug.tsx +2 -6
- package/src/iconography/price-list.tsx +2 -6
- package/src/iconography/price-tag.tsx +2 -6
- package/src/iconography/product-shortcut.tsx +2 -6
- package/src/iconography/product.tsx +2 -6
- package/src/iconography/promotion.tsx +2 -6
- package/src/iconography/property-table.tsx +2 -6
- package/src/iconography/relation.tsx +2 -6
- package/src/iconography/remove.tsx +2 -6
- package/src/iconography/renew.tsx +2 -6
- package/src/iconography/restricted-catalogue.tsx +2 -5
- package/src/iconography/rich-text.tsx +2 -6
- package/src/iconography/rocket.tsx +2 -6
- package/src/iconography/search.tsx +2 -6
- package/src/iconography/select.tsx +20 -0
- package/src/iconography/selection.tsx +2 -6
- package/src/iconography/settings.tsx +2 -6
- package/src/iconography/shapes.tsx +2 -6
- package/src/iconography/singleline.tsx +2 -6
- package/src/iconography/special-price.tsx +2 -6
- package/src/iconography/split.tsx +2 -6
- package/src/iconography/stock-location.tsx +2 -6
- package/src/iconography/string.tsx +16 -0
- package/src/iconography/subscription-contracts.tsx +43 -49
- package/src/iconography/subscription-plans.tsx +2 -6
- package/src/iconography/subscription.tsx +2 -6
- package/src/iconography/switch.tsx +2 -6
- package/src/iconography/target.tsx +2 -6
- package/src/iconography/topics-branch.tsx +2 -6
- package/src/iconography/topics-leaf.tsx +2 -6
- package/src/iconography/topics.tsx +2 -6
- package/src/iconography/transition-in-disabled.tsx +2 -6
- package/src/iconography/transition-in.tsx +2 -6
- package/src/iconography/transition-out-disabled.tsx +13 -19
- package/src/iconography/transition-out.tsx +2 -6
- package/src/iconography/unpublish.tsx +2 -6
- package/src/iconography/usage-meter.tsx +4 -8
- package/src/iconography/usage.tsx +2 -6
- package/src/iconography/user-card.tsx +2 -6
- package/src/iconography/user.tsx +2 -6
- package/src/iconography/users.tsx +2 -6
- package/src/iconography/variant.tsx +2 -6
- package/src/iconography/video.tsx +2 -6
- package/src/iconography/wand.tsx +2 -6
- package/src/iconography/warning.tsx +2 -5
- package/src/iconography/x-for-y.tsx +2 -6
- package/src/label/label.tsx +1 -1
- package/src/popover/popover.tsx +5 -6
- package/src/rich-text-editor/tests/rich-text-editor-basic-rendering.test.tsx +8 -6
- package/src/rich-text-editor/tests/rich-text-editor-code.test.tsx +1 -1
- package/src/rich-text-editor/tests/rich-text-editor-onchange.test.tsx +4 -18
- package/src/rich-text-editor/tests/rich-text-editor-quote.test.tsx +2 -1
- package/src/rich-text-editor/tests/rich-text-editor-typing.test.tsx +6 -4
- package/src/rich-text-editor/tests/utils.ts +3 -1
- package/src/select/select-root.tsx +2 -2
- package/src/spinner/index.tsx +3 -3
- package/src/tag/tag.tsx +2 -2
- package/src/tooltip/tooltip.tsx +1 -1
|
@@ -2,9 +2,9 @@ import {
|
|
|
2
2
|
__commonJS
|
|
3
3
|
} from "./chunk-NIH5ZMPE.mjs";
|
|
4
4
|
|
|
5
|
-
// ../../node_modules/.pnpm/prettier@2.8.
|
|
5
|
+
// ../../node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/standalone.js
|
|
6
6
|
var require_standalone = __commonJS({
|
|
7
|
-
"../../node_modules/.pnpm/prettier@2.8.
|
|
7
|
+
"../../node_modules/.pnpm/prettier@2.8.8/node_modules/prettier/standalone.js"(exports, module) {
|
|
8
8
|
(function(e) {
|
|
9
9
|
if (typeof exports == "object" && typeof module == "object")
|
|
10
10
|
module.exports = e();
|
|
@@ -853,7 +853,7 @@ var require_standalone = __commonJS({
|
|
|
853
853
|
}, bD = (e, r, t) => (t = e != null ? FD(SD(e)) : {}, Pa(r || !e || !e.__esModule ? _r(t, "default", { value: e, enumerable: true }) : t, e)), ft = (e) => Pa(_r({}, "__esModule", { value: true }), e), wt, ne = ht({ "<define:process>"() {
|
|
854
854
|
wt = { env: {}, argv: [] };
|
|
855
855
|
} }), Ia = te({ "package.json"(e, r) {
|
|
856
|
-
r.exports = { version: "2.8.
|
|
856
|
+
r.exports = { version: "2.8.8" };
|
|
857
857
|
} }), TD = te({ "node_modules/diff/lib/diff/base.js"(e) {
|
|
858
858
|
"use strict";
|
|
859
859
|
ne(), Object.defineProperty(e, "__esModule", { value: true }), e.default = r;
|
|
@@ -5277,6 +5277,8 @@ ${P}`), h ? g.reset(P) : P;
|
|
|
5277
5277
|
return $(D, T) || o.type === "SequenceExpression";
|
|
5278
5278
|
case "Decorator": {
|
|
5279
5279
|
if (C === "expression") {
|
|
5280
|
+
if (f(o) && o.computed)
|
|
5281
|
+
return true;
|
|
5280
5282
|
let S = false, b = false, B = o;
|
|
5281
5283
|
for (; B; )
|
|
5282
5284
|
switch (B.type) {
|
|
@@ -5452,6 +5454,8 @@ ${P}`), h ? g.reset(P) : P;
|
|
|
5452
5454
|
return m.type === "TSArrayType" || m.type === "TSOptionalType" || m.type === "TSRestType" || C === "objectType" && m.type === "TSIndexedAccessType" || m.type === "TSTypeOperator" || m.type === "TSTypeAnnotation" && D.getParentNode(1).type.startsWith("TSJSDoc");
|
|
5453
5455
|
case "TSTypeQuery":
|
|
5454
5456
|
return C === "objectType" && m.type === "TSIndexedAccessType" || C === "elementType" && m.type === "TSArrayType";
|
|
5457
|
+
case "TypeofTypeAnnotation":
|
|
5458
|
+
return C === "objectType" && (m.type === "IndexedAccessType" || m.type === "OptionalIndexedAccessType") || C === "elementType" && m.type === "ArrayTypeAnnotation";
|
|
5455
5459
|
case "ArrayTypeAnnotation":
|
|
5456
5460
|
return m.type === "NullableTypeAnnotation";
|
|
5457
5461
|
case "IntersectionTypeAnnotation":
|
|
@@ -5465,8 +5469,6 @@ ${P}`), h ? g.reset(P) : P;
|
|
|
5465
5469
|
}
|
|
5466
5470
|
case "OptionalIndexedAccessType":
|
|
5467
5471
|
return C === "objectType" && m.type === "IndexedAccessType";
|
|
5468
|
-
case "TypeofTypeAnnotation":
|
|
5469
|
-
return C === "objectType" && (m.type === "IndexedAccessType" || m.type === "OptionalIndexedAccessType");
|
|
5470
5472
|
case "StringLiteral":
|
|
5471
5473
|
case "NumericLiteral":
|
|
5472
5474
|
case "Literal":
|
|
@@ -6617,7 +6619,7 @@ ${P}`), h ? g.reset(P) : P;
|
|
|
6617
6619
|
return o ? d : [d, n];
|
|
6618
6620
|
}
|
|
6619
6621
|
function D(T, m, C) {
|
|
6620
|
-
let o = T.getValue(), d = [], v = T.getParentNode();
|
|
6622
|
+
let o = T.getValue(), d = [o.type === "TSTypeParameter" && o.const ? "const " : ""], v = T.getParentNode();
|
|
6621
6623
|
return v.type === "TSMappedType" ? (v.readonly && d.push(w(v.readonly, "readonly"), " "), d.push("[", C("name")), o.constraint && d.push(" in ", C("constraint")), v.nameType && d.push(" as ", T.callParent(() => C("nameType"))), d.push("]"), d) : (o.variance && d.push(C("variance")), o.in && d.push("in "), o.out && d.push("out "), d.push(C("name")), o.bound && d.push(": ", C("bound")), o.constraint && d.push(" extends ", C("constraint")), o.default && d.push(" = ", C("default")), d);
|
|
6622
6624
|
}
|
|
6623
6625
|
r.exports = { printTypeParameter: D, printTypeParameters: P, getTypeParametersGroupId: I };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crystallize/design-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.1",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -8,9 +8,8 @@
|
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
11
|
+
"node": ">=24.11.0"
|
|
12
12
|
},
|
|
13
|
-
"packageManager": "pnpm@10.15.0",
|
|
14
13
|
"exports": {
|
|
15
14
|
".": {
|
|
16
15
|
"types": "./dist/index.d.ts",
|
|
@@ -41,17 +40,17 @@
|
|
|
41
40
|
"@lexical/text": "0.21.0",
|
|
42
41
|
"@lexical/utils": "0.21.0",
|
|
43
42
|
"@lexical/yjs": "0.21.0",
|
|
44
|
-
"@radix-ui/react-checkbox": "1.
|
|
45
|
-
"@radix-ui/react-collapsible": "1.
|
|
46
|
-
"@radix-ui/react-dialog": "1.
|
|
47
|
-
"@radix-ui/react-dropdown-menu": "2.
|
|
48
|
-
"@radix-ui/react-popover": "1.
|
|
49
|
-
"@radix-ui/react-progress": "
|
|
50
|
-
"@radix-ui/react-radio-group": "1.
|
|
51
|
-
"@radix-ui/react-select": "
|
|
52
|
-
"@radix-ui/react-slider": "
|
|
53
|
-
"@radix-ui/react-switch": "
|
|
54
|
-
"@radix-ui/react-tooltip": "1.
|
|
43
|
+
"@radix-ui/react-checkbox": "1.3.3",
|
|
44
|
+
"@radix-ui/react-collapsible": "1.1.12",
|
|
45
|
+
"@radix-ui/react-dialog": "1.1.15",
|
|
46
|
+
"@radix-ui/react-dropdown-menu": "2.1.16",
|
|
47
|
+
"@radix-ui/react-popover": "1.1.15",
|
|
48
|
+
"@radix-ui/react-progress": "1.1.8",
|
|
49
|
+
"@radix-ui/react-radio-group": "1.3.8",
|
|
50
|
+
"@radix-ui/react-select": "2.1.7",
|
|
51
|
+
"@radix-ui/react-slider": "1.3.6",
|
|
52
|
+
"@radix-ui/react-switch": "1.2.6",
|
|
53
|
+
"@radix-ui/react-tooltip": "1.2.8",
|
|
55
54
|
"class-variance-authority": "^0.4.0",
|
|
56
55
|
"lexical": "0.21.0",
|
|
57
56
|
"sonner": "^0.6.2",
|
|
@@ -59,12 +58,11 @@
|
|
|
59
58
|
"use-debounce": "8.0.4"
|
|
60
59
|
},
|
|
61
60
|
"peerDependencies": {
|
|
62
|
-
"react": "^
|
|
63
|
-
"react-dom": "^
|
|
61
|
+
"react": "^18.0 || ^19.0",
|
|
62
|
+
"react-dom": "^18.0 || ^19.0"
|
|
64
63
|
},
|
|
65
64
|
"devDependencies": {
|
|
66
65
|
"@faker-js/faker": "7.6.0",
|
|
67
|
-
"@ianvs/prettier-plugin-sort-imports": "^3.7.1",
|
|
68
66
|
"@mdx-js/react": "^2.2.1",
|
|
69
67
|
"@storybook/addon-actions": "8.6.11",
|
|
70
68
|
"@storybook/addon-backgrounds": "8.6.11",
|
|
@@ -82,26 +80,27 @@
|
|
|
82
80
|
"@storybook/react": "8.6.11",
|
|
83
81
|
"@storybook/react-vite": "8.6.11",
|
|
84
82
|
"@storybook/theming": "8.6.11",
|
|
85
|
-
"@testing-library/dom": "10.4.
|
|
86
|
-
"@testing-library/jest-dom": "6.
|
|
87
|
-
"@testing-library/react": "16.
|
|
88
|
-
"@testing-library/user-event": "14.
|
|
83
|
+
"@testing-library/dom": "10.4.1",
|
|
84
|
+
"@testing-library/jest-dom": "6.9.1",
|
|
85
|
+
"@testing-library/react": "16.3.0",
|
|
86
|
+
"@testing-library/user-event": "14.6.1",
|
|
89
87
|
"@types/prettier": "2.7.2",
|
|
90
|
-
"@types/react": "
|
|
91
|
-
"@types/react-dom": "
|
|
88
|
+
"@types/react": "19.2.7",
|
|
89
|
+
"@types/react-dom": "19.2.3",
|
|
92
90
|
"@vitejs/plugin-react": "4.3.4",
|
|
93
91
|
"concurrently": "^7.6.0",
|
|
94
92
|
"hex-rgb": "4.3.0",
|
|
93
|
+
"jsdom": "27.1.0",
|
|
95
94
|
"postcss": "^8.4.21",
|
|
96
95
|
"postcss-import": "^15.1.0",
|
|
97
|
-
"prettier": "2.8.
|
|
96
|
+
"prettier": "2.8.8",
|
|
98
97
|
"storybook": "8.6.11",
|
|
99
98
|
"storybook-dark-mode": "4.0.2",
|
|
100
99
|
"tailwindcss": "^3.3.5",
|
|
101
100
|
"tsup": "^6.5.0",
|
|
102
|
-
"typescript": "
|
|
103
|
-
"vite": "
|
|
104
|
-
"vitest": "2.
|
|
101
|
+
"typescript": "5.9.3",
|
|
102
|
+
"vite": "7.2.2",
|
|
103
|
+
"vitest": "3.2.4",
|
|
105
104
|
"tsconfig": "0.0.0"
|
|
106
105
|
},
|
|
107
106
|
"keywords": [
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
import { VariantProps, cva } from 'class-variance-authority';
|
|
3
2
|
|
|
4
3
|
import { DropdownMenu, Container } from '../dropdown-menu';
|
|
@@ -20,7 +19,7 @@ const buttonStyles = cva('c-action-menu', {
|
|
|
20
19
|
|
|
21
20
|
type ActionMenuProps = Omit<React.ComponentProps<typeof DropdownMenu.Root>, 'content'> &
|
|
22
21
|
ButtonStylesProps & {
|
|
23
|
-
children: ReactNode;
|
|
22
|
+
children: React.ReactNode;
|
|
24
23
|
container?: Container;
|
|
25
24
|
tabIndex?: number;
|
|
26
25
|
disabled?: boolean;
|
package/src/dialog/config.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { createRoot } from 'react-dom/client';
|
|
2
2
|
|
|
3
3
|
import { ConfirmDialog } from './confirm-dialog';
|
|
4
4
|
import { destroyFns } from './destroyFns';
|
|
@@ -6,16 +6,12 @@ import type { ConfigUpdate, DialogFuncProps } from './types';
|
|
|
6
6
|
|
|
7
7
|
export function confirm(config: DialogFuncProps) {
|
|
8
8
|
const container = document.createDocumentFragment();
|
|
9
|
+
const root = createRoot(container);
|
|
10
|
+
|
|
9
11
|
let currentConfig = { ...config, close, open: true };
|
|
10
12
|
let timeoutId: NodeJS.Timeout;
|
|
11
13
|
|
|
12
14
|
function close() {
|
|
13
|
-
currentConfig = {
|
|
14
|
-
...currentConfig,
|
|
15
|
-
open: false,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
render(currentConfig);
|
|
19
15
|
config.afterClose?.();
|
|
20
16
|
destroy();
|
|
21
17
|
}
|
|
@@ -37,20 +33,20 @@ export function confirm(config: DialogFuncProps) {
|
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
35
|
|
|
40
|
-
|
|
36
|
+
root.unmount();
|
|
41
37
|
}
|
|
42
38
|
|
|
43
39
|
function render({ okText, cancelText, ...delegated }: any) {
|
|
44
40
|
clearTimeout(timeoutId);
|
|
45
41
|
|
|
46
42
|
timeoutId = setTimeout(() => {
|
|
47
|
-
|
|
43
|
+
root.render(<ConfirmDialog {...delegated} okText={okText} cancelText={cancelText} />);
|
|
48
44
|
});
|
|
49
45
|
}
|
|
50
46
|
|
|
51
47
|
function update(configUpdate: ConfigUpdate) {
|
|
52
48
|
if (typeof configUpdate === 'function') {
|
|
53
|
-
currentConfig = configUpdate(currentConfig);
|
|
49
|
+
currentConfig = { close, open: true, ...configUpdate(currentConfig) };
|
|
54
50
|
} else {
|
|
55
51
|
currentConfig = {
|
|
56
52
|
...currentConfig,
|
package/src/dialog/dialog.tsx
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ReactNode, RefAttributes } from 'react';
|
|
1
|
+
import type { ReactNode, RefAttributes, JSX } from 'react';
|
|
2
2
|
import { cva, cx, VariantProps } from 'class-variance-authority';
|
|
3
3
|
import * as DialogPrimitive from '@radix-ui/react-dialog';
|
|
4
4
|
|
|
@@ -29,7 +29,7 @@ type DialogContentProps = DialogContentStylesProps & {
|
|
|
29
29
|
'onEscapeKeyDown' | 'onInteractOutside' | 'onPointerDownOutside' | 'closable' | 'type' | 'className'
|
|
30
30
|
> &
|
|
31
31
|
DialogPrimitive.DialogContentProps &
|
|
32
|
-
Pick<DialogPrimitive.
|
|
32
|
+
Pick<DialogPrimitive.DialogPortalProps, 'container'>;
|
|
33
33
|
|
|
34
34
|
function DialogContent({ children, closable = true, type, className, container, ...delegated }: DialogContentProps) {
|
|
35
35
|
const withIcon = typeof type !== 'undefined';
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import type { ReactNode } from 'react';
|
|
2
1
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
3
2
|
|
|
4
3
|
export type Container = HTMLElement | null | undefined;
|
|
5
4
|
|
|
6
|
-
export type DropdownMenuRootProps = DropdownMenuPrimitive.
|
|
5
|
+
export type DropdownMenuRootProps = Omit<DropdownMenuPrimitive.DropdownMenuContentProps, 'content'> &
|
|
7
6
|
Pick<DropdownMenuPrimitive.DropdownMenuProps, 'onOpenChange' | 'modal' | 'open'> & {
|
|
8
|
-
children: ReactNode;
|
|
9
|
-
content: ReactNode;
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
content: React.ReactNode;
|
|
10
9
|
alignContent?: 'start' | 'center' | 'end';
|
|
11
10
|
disabled?: boolean;
|
|
12
11
|
container?: Container;
|
|
@@ -22,7 +22,6 @@ export const AllIcons: Story = {
|
|
|
22
22
|
<div>
|
|
23
23
|
<div style={{ display: 'flex', flexWrap: 'wrap', gap: '1.5rem' }}>
|
|
24
24
|
{Object.keys(Icon).map(iconName => {
|
|
25
|
-
// @ts-expect-error
|
|
26
25
|
const Cmp = Icon[iconName];
|
|
27
26
|
const cmpString = `<Icon.${iconName} />`;
|
|
28
27
|
return (
|
|
@@ -2,11 +2,7 @@ import { forwardRef, SVGProps } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { fill, stroke } from './variables';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type ActionsRef = SVGSVGElement;
|
|
8
|
-
|
|
9
|
-
export const Actions = forwardRef<ActionsRef, ActionsProps>((delegated, ref) => {
|
|
5
|
+
export const Actions = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
10
6
|
return (
|
|
11
7
|
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="none" {...delegated}>
|
|
12
8
|
<path
|
package/src/iconography/add.tsx
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type AddRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Add = forwardRef<AddRef, AddProps>((delegated, ref) => {
|
|
3
|
+
export const Add = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="currentColor" {...delegated}>
|
|
10
6
|
<path
|
|
@@ -2,11 +2,7 @@ import { forwardRef, SVGProps } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { fill, stroke } from './variables';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type AdvanceRef = SVGSVGElement;
|
|
8
|
-
|
|
9
|
-
export const Advance = forwardRef<AdvanceRef, AdvanceProps>((delegated, ref) => {
|
|
5
|
+
export const Advance = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
10
6
|
return (
|
|
11
7
|
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="none" {...delegated}>
|
|
12
8
|
<path
|
package/src/iconography/app.tsx
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type AppRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const App = forwardRef<AppRef, AppProps>((delegated, ref) => {
|
|
3
|
+
export const App = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="23" height="22" viewBox="0 0 23 22" fill="none" {...delegated}>
|
|
10
6
|
<path
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type ArchiveRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Archive = forwardRef<ArchiveRef, ArchiveProps>((delegated, ref) => {
|
|
3
|
+
export const Archive = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="currentColor" {...delegated}>
|
|
10
6
|
<svg width="23" height="22" viewBox="0 0 22 22" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type ArrowRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Arrow = forwardRef<ArrowRef, ArrowProps>((delegated, ref) => {
|
|
3
|
+
export const Arrow = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="10" height="10" viewBox="0 0 10 10" fill="currentColor" {...delegated}>
|
|
10
6
|
<path d="M4.14995 9.85C4.24341 9.94161 4.36907 9.99293 4.49995 9.99293C4.63083 9.99293 4.75649 9.94161 4.84995 9.85L8.03995 6.67C8.09195 6.6248 8.13404 6.56934 8.16359 6.5071C8.19314 6.44486 8.20951 6.37719 8.21167 6.30832C8.21383 6.23946 8.20173 6.17089 8.17614 6.10693C8.15055 6.04296 8.11201 5.98497 8.06295 5.9366C8.01389 5.88823 7.95536 5.85052 7.89104 5.82584C7.82671 5.80116 7.75798 5.79003 7.68915 5.79317C7.62033 5.79631 7.55289 5.81363 7.49108 5.84406C7.42927 5.87449 7.37441 5.91737 7.32995 5.97L4.49995 8.78L1.66995 5.96C1.62475 5.908 1.56929 5.86591 1.50705 5.83636C1.44481 5.80681 1.37714 5.79044 1.30827 5.78828C1.23941 5.78612 1.17084 5.79822 1.10688 5.82381C1.04291 5.8494 0.98492 5.88794 0.936549 5.937C0.888179 5.98606 0.850469 6.04459 0.825787 6.10892C0.801105 6.17324 0.789983 6.24197 0.79312 6.3108C0.796256 6.37962 0.813582 6.44706 0.844012 6.50887C0.874442 6.57068 0.917318 6.62554 0.96995 6.67L4.14995 9.85ZM4.49995 -2.18557e-08C4.22381 -3.39261e-08 3.99995 0.223858 3.99995 0.5L3.99995 9.5L4.99995 9.5L4.99995 0.5C4.99995 0.223857 4.77609 -9.78527e-09 4.49995 -2.18557e-08Z" />
|
package/src/iconography/atom.tsx
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type AtomRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Atom = forwardRef<AtomRef, AtomProps>((delegated, ref) => {
|
|
3
|
+
export const Atom = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg
|
|
10
6
|
ref={ref}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import React, { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type BatteryRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Battery = forwardRef<BatteryRef, BatteryProps>((delegated, ref) => {
|
|
3
|
+
export const Battery = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="currentColor" {...delegated}>
|
|
10
6
|
<path
|
package/src/iconography/bell.tsx
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type BellRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Bell = forwardRef<BellRef, BellProps>((delegated, ref) => {
|
|
3
|
+
export const Bell = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="none" {...delegated}>
|
|
10
6
|
<path
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type BillingPaymentsRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const BillingPayments = forwardRef<BillingPaymentsRef, BillingPaymentsProps>((delegated, ref) => {
|
|
3
|
+
export const BillingPayments = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="23" height="22" viewBox="0 0 23 22" fill="none" {...delegated}>
|
|
10
6
|
<path
|
package/src/iconography/bin.tsx
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type BinRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Bin = forwardRef<BinRef, BinProps>((delegated, ref) => {
|
|
3
|
+
export const Bin = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="none" {...delegated}>
|
|
10
6
|
<path fill="#BFF6F8" d="M5.5 6h11v13h-11V6Z" />
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { forwardRef, SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
import { stroke } from './variables';
|
|
4
|
+
|
|
5
|
+
export const Boolean = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
6
|
+
return (
|
|
7
|
+
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="none" {...delegated}>
|
|
8
|
+
<path
|
|
9
|
+
fill={stroke}
|
|
10
|
+
d="M14.458 17.058V18H8v-.942h6.458ZM20.517 11a6.058 6.058 0 0 0-6.059-6.058H8a6.058 6.058 0 0 0 0 12.116V18A7 7 0 1 1 8 4h6.458l.36.01a7 7 0 0 1 0 13.98l-.36.01v-.942A6.058 6.058 0 0 0 20.517 11Z"
|
|
11
|
+
/>
|
|
12
|
+
<path fill={stroke} d="M18.74 11a4.356 4.356 0 1 1-8.712-.001 4.356 4.356 0 0 1 8.712 0Z" />
|
|
13
|
+
</svg>
|
|
14
|
+
);
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
Boolean.displayName = 'BooleanIcon';
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type CancelRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Cancel = forwardRef<CancelRef, CancelProps>((delegated, ref) => {
|
|
3
|
+
export const Cancel = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="34" height="34" viewBox="0 0 34 34" fill="none" {...delegated}>
|
|
10
6
|
<path
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type CaretRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Caret = forwardRef<CaretRef, CaretProps>((delegated, ref) => {
|
|
3
|
+
export const Caret = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
|
-
<svg ref={ref} width="8" height="8" viewBox="0 0 8 8" fill="#626778" {...delegated}>
|
|
5
|
+
<svg ref={ref} width="8" height="8" viewBox="0 0 8 8" fill="var(--c-icon-stroke, #626778)" {...delegated}>
|
|
10
6
|
<path d="M4.36763 6.81306C4.21367 7.07973 3.82877 7.07973 3.67481 6.81306L0.921902 2.04489C0.767942 1.77822 0.960391 1.44489 1.26831 1.44489L6.77412 1.44489C7.08204 1.44489 7.27449 1.77822 7.12053 2.04489L4.36763 6.81306Z" />
|
|
11
7
|
</svg>
|
|
12
8
|
);
|
package/src/iconography/cart.tsx
CHANGED
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type CartRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Cart = forwardRef<CartRef, CartProps>((delegated, ref) => {
|
|
3
|
+
export const Cart = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="22" height="23" viewBox="0 0 22 23" fill="currentColor" {...delegated}>
|
|
10
6
|
<path
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
type CatalogueRef = SVGSVGElement;
|
|
5
|
-
|
|
6
|
-
export const Catalogue = forwardRef<CatalogueRef, CatalogueProps>((delegated, ref) => {
|
|
3
|
+
export const Catalogue = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
7
4
|
return (
|
|
8
5
|
<svg ref={ref} width="22" height="23" viewBox="0 0 22 23" fill="none" {...delegated}>
|
|
9
6
|
<path
|
|
@@ -2,10 +2,7 @@ import { forwardRef, SVGProps } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { fill, stroke } from './variables';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
type CheckWithCircleRef = SVGSVGElement;
|
|
7
|
-
|
|
8
|
-
export const CheckWithCircle = forwardRef<CheckWithCircleRef, CheckWithCircleProps>((delegated, ref) => {
|
|
5
|
+
export const CheckWithCircle = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
9
6
|
return (
|
|
10
7
|
<svg ref={ref} width="22" height="22" fill="none" viewBox="0 0 22 22" {...delegated}>
|
|
11
8
|
<path fill={fill} d="M19.152 11a8.152 8.152 0 1 1-16.304 0 8.152 8.152 0 0 1 16.304 0Z" />
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
type CheckRef = SVGSVGElement;
|
|
5
|
-
|
|
6
|
-
export const Check = forwardRef<CheckRef, CheckProps>((delegated, ref) => {
|
|
3
|
+
export const Check = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
7
4
|
return (
|
|
8
5
|
<svg ref={ref} width="9" height="9" viewBox="0 0 9 9" fill="none" {...delegated}>
|
|
9
6
|
<path
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { forwardRef, SVGProps } from 'react';
|
|
2
|
+
|
|
3
|
+
import { stroke } from './variables';
|
|
4
|
+
|
|
5
|
+
export const Checkbox = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
6
|
+
return (
|
|
7
|
+
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="none" {...delegated}>
|
|
8
|
+
<path
|
|
9
|
+
fill={stroke}
|
|
10
|
+
d="M15.6 18.9V20H6.4v-1.1h9.2Zm3.3-3.3V6.4a3.3 3.3 0 0 0-3.3-3.3H6.4a3.3 3.3 0 0 0-3.3 3.3v9.2a3.3 3.3 0 0 0 3.3 3.3V20l-.227-.006a4.4 4.4 0 0 1-4.167-4.168L2 15.6V6.4a4.4 4.4 0 0 1 4.173-4.394L6.4 2h9.2l.226.006A4.4 4.4 0 0 1 20 6.4v9.2l-.006.226a4.4 4.4 0 0 1-4.168 4.168L15.6 20v-1.1a3.3 3.3 0 0 0 3.3-3.3Z"
|
|
11
|
+
/>
|
|
12
|
+
<path
|
|
13
|
+
fill={stroke}
|
|
14
|
+
d="M14.33 8.608a.463.463 0 0 1 .124.317.463.463 0 0 1-.123.316l-4.076 4.33a.41.41 0 0 1-.298.132.41.41 0 0 1-.298-.131L7.832 11.63a.465.465 0 0 1 .01-.623.41.41 0 0 1 .29-.13.409.409 0 0 1 .296.12l1.529 1.624 3.778-4.014a.41.41 0 0 1 .298-.13.41.41 0 0 1 .298.13Z"
|
|
15
|
+
/>
|
|
16
|
+
<path
|
|
17
|
+
fill={stroke}
|
|
18
|
+
d="M14.454 8.924a.463.463 0 0 0-.123-.315.415.415 0 0 0-.215-.123l-.083-.009a.411.411 0 0 0-.298.132l-3.778 4.013-1.529-1.625a.414.414 0 0 0-.214-.113l-.081-.007a.41.41 0 0 0-.29.132.463.463 0 0 0-.124.309l.006.085a.461.461 0 0 0 .107.228l1.827 1.941a.405.405 0 0 0 .532.056l.064-.056 4.076-4.33a.457.457 0 0 0 .114-.23l.01-.088Zm.33 0a.797.797 0 0 1-.164.486l-.05.057-4.074 4.331h-.001a.739.739 0 0 1-1.076 0l-1.827-1.941-.008-.009a.795.795 0 0 1 .017-1.066h.001a.735.735 0 0 1 1.002-.068l.056.05.008.007 1.289 1.369 3.537-3.758a.736.736 0 0 1 1.022-.052l.055.051v.001a.793.793 0 0 1 .213.542Z"
|
|
19
|
+
/>
|
|
20
|
+
</svg>
|
|
21
|
+
);
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
Checkbox.displayName = 'CheckboxIcon';
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { forwardRef, type SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export const Chevron = forwardRef<SVGSVGElement, ChevronIconProps>((delegated, ref) => (
|
|
3
|
+
export const Chevron = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => (
|
|
6
4
|
<svg width="22" height="22" fill="none" viewBox="0 0 22 22" ref={ref} {...delegated}>
|
|
7
5
|
<path
|
|
8
6
|
fill={delegated.fill ?? '#528693'}
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type ChoiceRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Choice = forwardRef<ChoiceRef, ChoiceProps>((delegated, ref) => {
|
|
3
|
+
export const Choice = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="none" {...delegated}>
|
|
10
6
|
<path
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type ChunkRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Chunk = forwardRef<ChunkRef, ChunkProps>((delegated, ref) => {
|
|
3
|
+
export const Chunk = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="none" {...delegated}>
|
|
10
6
|
<path
|
|
@@ -2,11 +2,7 @@ import { forwardRef, SVGProps } from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { fill, stroke } from './variables';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
type ClockRef = SVGSVGElement;
|
|
8
|
-
|
|
9
|
-
export const Clock = forwardRef<ClockRef, ClockProps>((delegated, ref) => {
|
|
5
|
+
export const Clock = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
10
6
|
return (
|
|
11
7
|
<svg ref={ref} width="34" height="34" viewBox="0 0 34 34" fill="none" {...delegated}>
|
|
12
8
|
<path
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type CloudWithKeyHoleRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const CloudWithKeyHole = forwardRef<CloudWithKeyHoleRef, CloudWithKeyHoleProps>((delegated, ref) => {
|
|
3
|
+
export const CloudWithKeyHole = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="16" height="16" viewBox="0 0 16 16" fill="none" {...delegated}>
|
|
10
6
|
<path
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type CloudRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Cloud = forwardRef<CloudRef, CloudProps>((delegated, ref) => {
|
|
3
|
+
export const Cloud = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="17" height="16" viewBox="0 0 17 16" fill="none" {...delegated}>
|
|
10
6
|
<path
|
|
@@ -1,10 +1,6 @@
|
|
|
1
1
|
import { forwardRef, SVGProps } from 'react';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type CompactRef = SVGSVGElement;
|
|
6
|
-
|
|
7
|
-
export const Compact = forwardRef<CompactRef, CompactProps>((delegated, ref) => {
|
|
3
|
+
export const Compact = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>((delegated, ref) => {
|
|
8
4
|
return (
|
|
9
5
|
<svg ref={ref} width="22" height="22" viewBox="0 0 22 22" fill="none" {...delegated}>
|
|
10
6
|
<path
|