nfx-ui 0.24.2 → 0.26.0
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/dist/animations/AnimatedIcon.d.ts +13 -0
- package/dist/animations/AnimatedIcon.d.ts.map +1 -0
- package/dist/animations/AnimatedIcon.js +25 -0
- package/dist/animations/AnimatedIcon.js.map +1 -0
- package/dist/animations/accessibility-icon.js +9 -9
- package/dist/animations/airplane-icon.js +7 -7
- package/dist/animations/alarm-clock-plus-icon.js +11 -11
- package/dist/animations/align-center-icon.js +7 -7
- package/dist/animations/align-vertical-space-around-icon.js +7 -7
- package/dist/animations/ambulance-icon.js +12 -12
- package/dist/animations/ampersand-icon.js +5 -5
- package/dist/animations/angry-icon.js +10 -10
- package/dist/animations/annoyed-icon.js +8 -8
- package/dist/animations/apple-brand-logo.js +7 -7
- package/dist/animations/arrow-back-icon.js +8 -8
- package/dist/animations/arrow-back-up-icon.js +9 -9
- package/dist/animations/arrow-big-down-dash-icon.js +6 -6
- package/dist/animations/arrow-big-down-icon.js +5 -5
- package/dist/animations/arrow-big-left-dash-icon.js +6 -6
- package/dist/animations/arrow-big-left-icon.js +5 -5
- package/dist/animations/arrow-big-right-dash-icon.js +6 -6
- package/dist/animations/arrow-big-right-icon.js +5 -5
- package/dist/animations/arrow-big-up-dash-icon.js +6 -6
- package/dist/animations/arrow-big-up-icon.js +5 -5
- package/dist/animations/arrow-down-0-1-icon.js +9 -9
- package/dist/animations/arrow-down-1-0-icon.js +9 -9
- package/dist/animations/arrow-down-a-z-icon.js +9 -9
- package/dist/animations/arrow-narrow-down-dashed-icon.js +11 -11
- package/dist/animations/arrow-narrow-down-icon.js +10 -10
- package/dist/animations/arrow-narrow-left-dashed-icon.js +10 -10
- package/dist/animations/arrow-narrow-left-icon.js +10 -10
- package/dist/animations/arrow-narrow-right-dashed-icon.js +10 -10
- package/dist/animations/arrow-narrow-right-icon.js +10 -10
- package/dist/animations/arrow-narrow-up-dashed-icon.js +10 -10
- package/dist/animations/arrow-narrow-up-icon.js +10 -10
- package/dist/animations/at-sign-icon.js +7 -7
- package/dist/animations/banana-icon.js +6 -6
- package/dist/animations/battery-charging-icon.js +11 -11
- package/dist/animations/battery-icon.js +8 -8
- package/dist/animations/battery-pause-icon.js +11 -11
- package/dist/animations/bell-off-icon.js +8 -8
- package/dist/animations/bluetooth-connected-icon.js +8 -8
- package/dist/animations/book-icon.js +10 -10
- package/dist/animations/bookmark-icon.js +6 -6
- package/dist/animations/brain-circuit-icon.js +18 -18
- package/dist/animations/brand-aistudio-icon.js +9 -9
- package/dist/animations/brand-anthropic-icon.js +9 -9
- package/dist/animations/brand-aws-icon.js +13 -13
- package/dist/animations/brand-bags-fm-icon.js +6 -6
- package/dist/animations/brand-chrome-icon.js +12 -12
- package/dist/animations/brand-cursor-icon.js +5 -5
- package/dist/animations/brand-gemini-icon.js +5 -5
- package/dist/animations/brand-google-icon.js +6 -6
- package/dist/animations/brand-grok-icon.js +7 -7
- package/dist/animations/brand-lmstudio-icon.js +11 -11
- package/dist/animations/brand-midjourney-icon.js +8 -8
- package/dist/animations/brand-nextjs-icon.js +7 -7
- package/dist/animations/brand-notion-icon.js +7 -7
- package/dist/animations/brand-ollama-icon.js +10 -10
- package/dist/animations/brand-openai-icon.js +6 -6
- package/dist/animations/brand-paypal-icon.js +7 -7
- package/dist/animations/brand-qwen-icon.js +5 -5
- package/dist/animations/brand-railway-icon.js +7 -7
- package/dist/animations/brand-react-icon.js +12 -12
- package/dist/animations/brand-react-native-icon.js +13 -13
- package/dist/animations/brand-stripe-icon.js +9 -9
- package/dist/animations/brand-telegram-icon.js +6 -6
- package/dist/animations/brand-threads-icon.js +6 -6
- package/dist/animations/brand-twitch-icon.js +7 -7
- package/dist/animations/brand-vercel-icon.js +6 -6
- package/dist/animations/brand-windows-icon.js +9 -9
- package/dist/animations/brand-wordpress-icon.js +11 -11
- package/dist/animations/brand-xai-icon.js +9 -9
- package/dist/animations/brand-zoom-icon.js +7 -7
- package/dist/animations/brightness-down-icon.js +16 -16
- package/dist/animations/bug-icon.js +14 -14
- package/dist/animations/bulb-svg.js +13 -13
- package/dist/animations/camera-icon.js +6 -6
- package/dist/animations/camera-off-icon.js +9 -9
- package/dist/animations/candy-cane-icon.js +10 -10
- package/dist/animations/cart-icon.js +10 -10
- package/dist/animations/chart-bar-icon.js +9 -9
- package/dist/animations/chart-covariate-icon.js +11 -11
- package/dist/animations/chart-histogram-icon.js +11 -11
- package/dist/animations/chart-line-icon.js +7 -7
- package/dist/animations/chart-pie-icon.js +7 -7
- package/dist/animations/checked-icon.js +8 -8
- package/dist/animations/clock-icon.js +7 -7
- package/dist/animations/cloud-1-icon.js +5 -5
- package/dist/animations/cloud-2-icon.js +8 -8
- package/dist/animations/cloud-3-icon.js +8 -8
- package/dist/animations/code-icon.js +6 -6
- package/dist/animations/code-xml-icon.js +7 -7
- package/dist/animations/coffee-icon.js +8 -8
- package/dist/animations/coin-bitcoin-icon.js +6 -6
- package/dist/animations/copy-icon.js +8 -8
- package/dist/animations/copy-off-icon.js +9 -9
- package/dist/animations/copyright-icon.js +6 -6
- package/dist/animations/cpu-icon.js +19 -19
- package/dist/animations/credit-card.js +9 -9
- package/dist/animations/currency-bitcoin-icon.js +16 -16
- package/dist/animations/currency-dollar-icon.js +9 -9
- package/dist/animations/currency-ethereum-icon.js +9 -9
- package/dist/animations/currency-euro-icon.js +10 -10
- package/dist/animations/currency-rupee-icon.js +8 -8
- package/dist/animations/device-airpods-icon.js +7 -7
- package/dist/animations/dialpad-icon.js +12 -12
- package/dist/animations/dino-icon.js +14 -14
- package/dist/animations/discord-icon.js +9 -9
- package/dist/animations/docker-icon.js +14 -14
- package/dist/animations/dots-horizontal-icon.js +8 -8
- package/dist/animations/dots-vertical-icon.js +8 -8
- package/dist/animations/double-check-icon.js +7 -7
- package/dist/animations/down-chevron.js +7 -7
- package/dist/animations/download-icon.js +7 -7
- package/dist/animations/drum-icon.js +11 -11
- package/dist/animations/expand-icon.js +12 -12
- package/dist/animations/external-link-icon.js +8 -8
- package/dist/animations/eye-icon.js +7 -7
- package/dist/animations/eye-off-icon.js +8 -8
- package/dist/animations/facebook-icon.js +7 -7
- package/dist/animations/figma-icon.js +8 -8
- package/dist/animations/file-description-icon.js +9 -9
- package/dist/animations/filled-bell-icon.js +7 -7
- package/dist/animations/filled-checked-icon.js +8 -8
- package/dist/animations/filter-icon.js +15 -15
- package/dist/animations/flame-icon.js +6 -6
- package/dist/animations/focus-icon.js +9 -9
- package/dist/animations/gamepad-icon.js +10 -10
- package/dist/animations/gauge-icon.js +5 -5
- package/dist/animations/gear-icon.js +7 -7
- package/dist/animations/ghost-icon.js +7 -7
- package/dist/animations/github-copilot-icon.js +13 -13
- package/dist/animations/github-icon.js +7 -7
- package/dist/animations/gitlab-icon.js +8 -8
- package/dist/animations/globe-icon.js +13 -13
- package/dist/animations/gmail-icon.js +9 -9
- package/dist/animations/golang-icon.js +11 -11
- package/dist/animations/hand-heart-icon.js +9 -9
- package/dist/animations/hashtag-icon.js +9 -9
- package/dist/animations/heart-icon.js +6 -6
- package/dist/animations/history-circle-icon.js +7 -7
- package/dist/animations/home-icon.js +8 -8
- package/dist/animations/hotel-icon.js +7 -7
- package/dist/animations/index.d.ts +2 -0
- package/dist/animations/index.d.ts.map +1 -1
- package/dist/animations/index.js +267 -266
- package/dist/animations/info-circle-icon.js +8 -8
- package/dist/animations/instagram-icon.js +8 -8
- package/dist/animations/javascript-icon.js +8 -8
- package/dist/animations/keyframes-icon.js +9 -9
- package/dist/animations/layers-icon.js +6 -6
- package/dist/animations/layout-bottombar-collapse-icon.js +8 -8
- package/dist/animations/layout-dashboard-icon.js +8 -8
- package/dist/animations/layout-sidebar-right-collapse-icon.js +8 -8
- package/dist/animations/layout-sidebar-right-icon.js +7 -7
- package/dist/animations/letter-a-icon.js +7 -7
- package/dist/animations/letter-b-icon.js +6 -6
- package/dist/animations/letter-c-icon.js +5 -5
- package/dist/animations/letter-d-icon.js +5 -5
- package/dist/animations/letter-e-icon.js +8 -8
- package/dist/animations/letter-f-icon.js +7 -7
- package/dist/animations/letter-g-icon.js +5 -5
- package/dist/animations/letter-h-icon.js +8 -8
- package/dist/animations/letter-i-icon.js +5 -5
- package/dist/animations/letter-j-icon.js +8 -8
- package/dist/animations/letter-k-icon.js +7 -7
- package/dist/animations/letter-l-icon.js +6 -6
- package/dist/animations/letter-m-icon.js +5 -5
- package/dist/animations/letter-n-icon.js +5 -5
- package/dist/animations/letter-o-icon.js +5 -5
- package/dist/animations/letter-p-icon.js +5 -5
- package/dist/animations/letter-q-icon.js +6 -6
- package/dist/animations/letter-r-icon.js +6 -6
- package/dist/animations/letter-s-icon.js +5 -5
- package/dist/animations/letter-t-icon.js +6 -6
- package/dist/animations/letter-u-icon.js +5 -5
- package/dist/animations/letter-v-icon.js +6 -6
- package/dist/animations/letter-w-icon.js +8 -8
- package/dist/animations/letter-x-icon.js +6 -6
- package/dist/animations/letter-y-icon.js +6 -6
- package/dist/animations/letter-z-icon.js +5 -5
- package/dist/animations/library-icon.js +8 -8
- package/dist/animations/like-icon.js +7 -7
- package/dist/animations/link-icon.js +8 -8
- package/dist/animations/linkedin-icon.js +10 -10
- package/dist/animations/locate-icon.js +11 -11
- package/dist/animations/lock-icon.js +8 -8
- package/dist/animations/logout-icon.js +8 -8
- package/dist/animations/magnifier-icon.js +6 -6
- package/dist/animations/mail-filled-icon.js +7 -7
- package/dist/animations/map-pin-icon.js +5 -5
- package/dist/animations/meh-icon.js +8 -8
- package/dist/animations/message-circle-icon.js +5 -5
- package/dist/animations/moon-icon.js +6 -6
- package/dist/animations/mouse-pointer-2-icon.js +5 -5
- package/dist/animations/mysql-icon.js +7 -7
- package/dist/animations/nodejs-icon.js +7 -7
- package/dist/animations/paint-icon.js +10 -10
- package/dist/animations/party-popper-icon.js +13 -13
- package/dist/animations/passport-icon.js +9 -9
- package/dist/animations/paw-print-icon.js +9 -9
- package/dist/animations/pen-icon.js +7 -7
- package/dist/animations/phone-volume.js +8 -8
- package/dist/animations/pinterest-icon.js +8 -8
- package/dist/animations/player-icon.js +7 -7
- package/dist/animations/plug-connected-icon.js +11 -11
- package/dist/animations/plug-connected-x-icon.js +13 -13
- package/dist/animations/python-icon.js +10 -10
- package/dist/animations/qrcode-icon.js +18 -18
- package/dist/animations/question-mark.js +8 -8
- package/dist/animations/radio-icon.js +11 -11
- package/dist/animations/rainbow-icon.js +7 -7
- package/dist/animations/refresh-icon.js +7 -7
- package/dist/animations/right-chevron.js +6 -6
- package/dist/animations/rocket-icon.js +10 -10
- package/dist/animations/rosette-discount-check-icon.js +8 -8
- package/dist/animations/rosette-discount-icon.js +10 -10
- package/dist/animations/router-icon.js +10 -10
- package/dist/animations/satellite-dish-icon.js +8 -8
- package/dist/animations/save-icon.js +7 -7
- package/dist/animations/scan-barcode-icon.js +14 -14
- package/dist/animations/scan-heart-icon.js +9 -9
- package/dist/animations/send-horizontal-icon.js +6 -6
- package/dist/animations/send-icon.js +8 -8
- package/dist/animations/shield-check.js +6 -6
- package/dist/animations/shopping-cart-icon.js +12 -12
- package/dist/animations/simple-checked-icon.js +7 -7
- package/dist/animations/skull-emoji.js +10 -10
- package/dist/animations/slack-icon.js +13 -13
- package/dist/animations/sliders-horizontal-icon.js +13 -13
- package/dist/animations/snapchat-icon.js +8 -8
- package/dist/animations/soup-icon.js +12 -12
- package/dist/animations/sparkles-icon.js +7 -7
- package/dist/animations/spotify-icon.js +9 -9
- package/dist/animations/stack-3-icon.js +8 -8
- package/dist/animations/stack-icon.js +6 -6
- package/dist/animations/star-icon.js +7 -7
- package/dist/animations/subscript-icon.js +7 -7
- package/dist/animations/target-icon.js +7 -7
- package/dist/animations/telephone-icon.js +10 -10
- package/dist/animations/terminal-icon.js +7 -7
- package/dist/animations/toggle-icon.js +6 -6
- package/dist/animations/trash-icon.js +10 -10
- package/dist/animations/travel-bag.js +11 -11
- package/dist/animations/triangle-alert-icon.js +7 -7
- package/dist/animations/trophy-icon.js +15 -15
- package/dist/animations/truck-electric-icon.js +12 -12
- package/dist/animations/twitter-icon.js +5 -5
- package/dist/animations/twitter-x-icon.js +8 -8
- package/dist/animations/typescript-icon.js +9 -9
- package/dist/animations/unlink-icon.js +11 -11
- package/dist/animations/unordered-list-icon.js +12 -12
- package/dist/animations/upload-icon.js +6 -6
- package/dist/animations/user-check-icon.js +8 -8
- package/dist/animations/user-icon.js +7 -7
- package/dist/animations/user-plus-icon.js +9 -9
- package/dist/animations/users-group-icon.js +11 -11
- package/dist/animations/users-icon.js +9 -9
- package/dist/animations/vinyl-icon.js +9 -9
- package/dist/animations/volume-2-icon.js +7 -7
- package/dist/animations/volume-x-icon.js +8 -8
- package/dist/animations/wallet-icon.js +7 -7
- package/dist/animations/washing-machine-icon.js +11 -11
- package/dist/animations/whatsapp-icon.js +7 -7
- package/dist/animations/wifi-icon.js +9 -9
- package/dist/animations/wifi-off-icon.js +11 -11
- package/dist/animations/world-icon.js +11 -11
- package/dist/animations/x-icon.js +7 -7
- package/dist/animations/youtube-icon.js +7 -7
- package/dist/apis/repositories/AssetRepository.d.ts +2 -0
- package/dist/apis/repositories/AssetRepository.d.ts.map +1 -1
- package/dist/apis/repositories/AssetRepository.js +4 -0
- package/dist/apis/repositories/AssetRepository.js.map +1 -1
- package/dist/apis/repositories/AuthRepository.d.ts +2 -0
- package/dist/apis/repositories/AuthRepository.d.ts.map +1 -1
- package/dist/apis/repositories/AuthRepository.js +4 -0
- package/dist/apis/repositories/AuthRepository.js.map +1 -1
- package/dist/providers/LanguageProvider/index.d.ts +3 -1
- package/dist/providers/LanguageProvider/index.d.ts.map +1 -1
- package/dist/providers/LanguageProvider/index.js +50 -23
- package/dist/providers/LanguageProvider/index.js.map +1 -1
- package/dist/utils/apiError.d.ts +4 -0
- package/dist/utils/apiError.d.ts.map +1 -1
- package/dist/utils/apiError.js +9 -8
- package/dist/utils/apiError.js.map +1 -1
- package/dist/utils/index.js +29 -29
- package/package.json +1 -1
- package/src/animations/AnimatedIcon.tsx +25 -0
- package/src/animations/index.ts +2 -0
- package/src/apis/repositories/AssetRepository.ts +6 -0
- package/src/apis/repositories/AuthRepository.ts +6 -0
- package/src/providers/LanguageProvider/index.tsx +39 -7
- package/src/utils/apiError.ts +8 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef as e, useCallback as t, useImperativeHandle as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { motion as a, useAnimate as o } from "motion/react";
|
|
4
4
|
//#region src/animations/snapchat-icon.tsx
|
|
5
5
|
var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, className: l = "" }, u) => {
|
|
6
|
-
let [d, f] =
|
|
6
|
+
let [d, f] = o(), p = t(async () => {
|
|
7
7
|
f(".ghost", {
|
|
8
8
|
y: [
|
|
9
9
|
0,
|
|
@@ -39,7 +39,7 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
39
39
|
return n(u, () => ({
|
|
40
40
|
startAnimation: p,
|
|
41
41
|
stopAnimation: m
|
|
42
|
-
})), /* @__PURE__ */
|
|
42
|
+
})), /* @__PURE__ */ i(a.svg, {
|
|
43
43
|
ref: d,
|
|
44
44
|
onHoverStart: p,
|
|
45
45
|
onHoverEnd: m,
|
|
@@ -54,22 +54,22 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
54
54
|
strokeLinejoin: "round",
|
|
55
55
|
className: `cursor-pointer ${l}`,
|
|
56
56
|
children: [
|
|
57
|
-
/* @__PURE__ */
|
|
57
|
+
/* @__PURE__ */ r("path", {
|
|
58
58
|
stroke: "none",
|
|
59
59
|
d: "M0 0h24v24H0z",
|
|
60
60
|
fill: "none"
|
|
61
61
|
}),
|
|
62
|
-
/* @__PURE__ */ a
|
|
62
|
+
/* @__PURE__ */ r(a.path, {
|
|
63
63
|
className: "ghost",
|
|
64
64
|
style: { transformOrigin: "center" },
|
|
65
65
|
d: "M16.882 7.842a4.882 4.882 0 0 0 -9.764 0c0 4.273 -.213 6.409 -4.118 8.118c2 .882 2 .882 3 3c3 0 4 2 6 2s3 -2 6 -2c1 -2.118 1 -2.118 3 -3c-3.906 -1.709 -4.118 -3.845 -4.118 -8.118z"
|
|
66
66
|
}),
|
|
67
|
-
/* @__PURE__ */ a
|
|
67
|
+
/* @__PURE__ */ r(a.path, {
|
|
68
68
|
className: "arms",
|
|
69
69
|
style: { transformOrigin: "center" },
|
|
70
70
|
d: "M3 16.01c4 -2.118 4 -4.118 1 -7.118"
|
|
71
71
|
}),
|
|
72
|
-
/* @__PURE__ */ a
|
|
72
|
+
/* @__PURE__ */ r(a.path, {
|
|
73
73
|
className: "arms",
|
|
74
74
|
style: { transformOrigin: "center" },
|
|
75
75
|
d: "M21 16.01c-4 -2.118 -4 -4.118 -1 -7.118"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef as e, useCallback as t, useImperativeHandle as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { motion as a, useAnimate as o } from "motion/react";
|
|
4
4
|
//#region src/animations/soup-icon.tsx
|
|
5
5
|
var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, className: l = "" }, u) => {
|
|
6
|
-
let [d, f] =
|
|
6
|
+
let [d, f] = o(), p = t(async () => {
|
|
7
7
|
f(".steam", {
|
|
8
8
|
y: [-2, -4],
|
|
9
9
|
opacity: [1, 0]
|
|
@@ -29,7 +29,7 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
29
29
|
return n(u, () => ({
|
|
30
30
|
startAnimation: p,
|
|
31
31
|
stopAnimation: m
|
|
32
|
-
})), /* @__PURE__ */
|
|
32
|
+
})), /* @__PURE__ */ i(a.svg, {
|
|
33
33
|
ref: d,
|
|
34
34
|
onHoverStart: p,
|
|
35
35
|
onHoverEnd: m,
|
|
@@ -44,20 +44,20 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
44
44
|
strokeLinejoin: "round",
|
|
45
45
|
className: `cursor-pointer ${l}`,
|
|
46
46
|
style: { overflow: "visible" },
|
|
47
|
-
children: [/* @__PURE__ */
|
|
47
|
+
children: [/* @__PURE__ */ i(a.g, {
|
|
48
48
|
className: "bowl",
|
|
49
49
|
style: { transformOrigin: "12px 16px" },
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
52
|
-
/* @__PURE__ */
|
|
53
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ r("path", { d: "M12 21a9 9 0 0 0 9-9H3a9 9 0 0 0 9 9Z" }),
|
|
52
|
+
/* @__PURE__ */ r("path", { d: "M7 21h10" }),
|
|
53
|
+
/* @__PURE__ */ r("path", { d: "M19.5 12 22 6" })
|
|
54
54
|
]
|
|
55
|
-
}), /* @__PURE__ */
|
|
55
|
+
}), /* @__PURE__ */ i(a.g, {
|
|
56
56
|
className: "steam",
|
|
57
57
|
children: [
|
|
58
|
-
/* @__PURE__ */
|
|
59
|
-
/* @__PURE__ */
|
|
60
|
-
/* @__PURE__ */
|
|
58
|
+
/* @__PURE__ */ r("path", { d: "M16.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.73 1.62" }),
|
|
59
|
+
/* @__PURE__ */ r("path", { d: "M11.25 3c.27.1.8.53.74 1.36-.05.83-.93 1.2-.98 2.02-.06.78.33 1.24.72 1.62" }),
|
|
60
|
+
/* @__PURE__ */ r("path", { d: "M6.25 3c.27.1.8.53.75 1.36-.06.83-.93 1.2-1 2.02-.05.78.34 1.24.74 1.62" })
|
|
61
61
|
]
|
|
62
62
|
})]
|
|
63
63
|
});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef as e, useCallback as t, useImperativeHandle as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { motion as a, useAnimate as o } from "motion/react";
|
|
4
4
|
//#region src/animations/sparkles-icon.tsx
|
|
5
5
|
var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, className: l = "" }, u) => {
|
|
6
|
-
let [d, f] =
|
|
6
|
+
let [d, f] = o(), p = t(async () => {
|
|
7
7
|
f(".sparkle-main", {
|
|
8
8
|
rotate: 180,
|
|
9
9
|
scale: [
|
|
@@ -64,7 +64,7 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
64
64
|
return n(u, () => ({
|
|
65
65
|
startAnimation: p,
|
|
66
66
|
stopAnimation: m
|
|
67
|
-
})), /* @__PURE__ */
|
|
67
|
+
})), /* @__PURE__ */ i(a.svg, {
|
|
68
68
|
ref: d,
|
|
69
69
|
onHoverStart: p,
|
|
70
70
|
onHoverEnd: m,
|
|
@@ -80,17 +80,17 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
80
80
|
className: `cursor-pointer ${l}`,
|
|
81
81
|
style: { overflow: "visible" },
|
|
82
82
|
children: [
|
|
83
|
-
/* @__PURE__ */ a
|
|
83
|
+
/* @__PURE__ */ r(a.path, {
|
|
84
84
|
className: "sparkle-bottom",
|
|
85
85
|
d: "M16 18a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2z",
|
|
86
86
|
style: { transformOrigin: "18px 18px" }
|
|
87
87
|
}),
|
|
88
|
-
/* @__PURE__ */ a
|
|
88
|
+
/* @__PURE__ */ r(a.path, {
|
|
89
89
|
className: "sparkle-top",
|
|
90
90
|
d: "M16 6a2 2 0 0 1 2 2a2 2 0 0 1 2 -2a2 2 0 0 1 -2 -2a2 2 0 0 1 -2 2z",
|
|
91
91
|
style: { transformOrigin: "18px 6px" }
|
|
92
92
|
}),
|
|
93
|
-
/* @__PURE__ */ a
|
|
93
|
+
/* @__PURE__ */ r(a.path, {
|
|
94
94
|
className: "sparkle-main",
|
|
95
95
|
d: "M9 18a6 6 0 0 1 6 -6a6 6 0 0 1 -6 -6a6 6 0 0 1 -6 6a6 6 0 0 1 6 6z",
|
|
96
96
|
style: { transformOrigin: "9px 12px" }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef as e, useImperativeHandle as t, useRef as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { motion as a, useAnimate as o } from "motion/react";
|
|
4
4
|
//#region src/animations/spotify-icon.tsx
|
|
5
5
|
var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, className: l = "" }, u) => {
|
|
6
|
-
let [d, f] =
|
|
6
|
+
let [d, f] = o(), p = n([]), m = async () => {
|
|
7
7
|
p.current.forEach((e) => e.stop()), p.current = [], f(".circle", { scale: [
|
|
8
8
|
1,
|
|
9
9
|
1.05,
|
|
@@ -72,7 +72,7 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
72
72
|
return t(u, () => ({
|
|
73
73
|
startAnimation: m,
|
|
74
74
|
stopAnimation: h
|
|
75
|
-
})), /* @__PURE__ */
|
|
75
|
+
})), /* @__PURE__ */ i(a.svg, {
|
|
76
76
|
ref: d,
|
|
77
77
|
onHoverStart: m,
|
|
78
78
|
onHoverEnd: h,
|
|
@@ -87,25 +87,25 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
87
87
|
strokeLinejoin: "round",
|
|
88
88
|
className: `cursor-pointer ${l}`,
|
|
89
89
|
children: [
|
|
90
|
-
/* @__PURE__ */
|
|
90
|
+
/* @__PURE__ */ r("path", {
|
|
91
91
|
stroke: "none",
|
|
92
92
|
d: "M0 0h24v24H0z",
|
|
93
93
|
fill: "none"
|
|
94
94
|
}),
|
|
95
|
-
/* @__PURE__ */ a
|
|
95
|
+
/* @__PURE__ */ r(a.path, {
|
|
96
96
|
className: "circle",
|
|
97
97
|
style: { transformOrigin: "center" },
|
|
98
98
|
d: "M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"
|
|
99
99
|
}),
|
|
100
|
-
/* @__PURE__ */ a
|
|
100
|
+
/* @__PURE__ */ r(a.path, {
|
|
101
101
|
className: "wave2",
|
|
102
102
|
d: "M8 11.973c2.5 -1.473 5.5 -.973 7.5 .527"
|
|
103
103
|
}),
|
|
104
|
-
/* @__PURE__ */ a
|
|
104
|
+
/* @__PURE__ */ r(a.path, {
|
|
105
105
|
className: "wave3",
|
|
106
106
|
d: "M9 15c1.5 -1 4 -1 5 .5"
|
|
107
107
|
}),
|
|
108
|
-
/* @__PURE__ */ a
|
|
108
|
+
/* @__PURE__ */ r(a.path, {
|
|
109
109
|
className: "wave1",
|
|
110
110
|
d: "M7 9c2 -1 6 -2 10 .5"
|
|
111
111
|
})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef as e, useCallback as t, useImperativeHandle as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { motion as a, useAnimate as o } from "motion/react";
|
|
4
4
|
//#region src/animations/stack-3-icon.tsx
|
|
5
5
|
var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, className: l = "" }, u) => {
|
|
6
|
-
let [d, f] =
|
|
6
|
+
let [d, f] = o(), p = t(async () => {
|
|
7
7
|
f(".layer-1", {
|
|
8
8
|
y: -3,
|
|
9
9
|
scale: 1.05
|
|
@@ -40,7 +40,7 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
40
40
|
return n(u, () => ({
|
|
41
41
|
startAnimation: p,
|
|
42
42
|
stopAnimation: m
|
|
43
|
-
})), /* @__PURE__ */
|
|
43
|
+
})), /* @__PURE__ */ i(a.svg, {
|
|
44
44
|
ref: d,
|
|
45
45
|
onHoverStart: p,
|
|
46
46
|
onHoverEnd: m,
|
|
@@ -56,19 +56,19 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
56
56
|
className: `cursor-pointer ${l}`,
|
|
57
57
|
style: { overflow: "visible" },
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */ a
|
|
59
|
+
/* @__PURE__ */ r(a.path, {
|
|
60
60
|
className: "layer-1",
|
|
61
61
|
d: "M12 2l-8 4l8 4l8 -4l-8 -4"
|
|
62
62
|
}),
|
|
63
|
-
/* @__PURE__ */ a
|
|
63
|
+
/* @__PURE__ */ r(a.path, {
|
|
64
64
|
className: "layer-2",
|
|
65
65
|
d: "M4 10l8 4l8 -4"
|
|
66
66
|
}),
|
|
67
|
-
/* @__PURE__ */ a
|
|
67
|
+
/* @__PURE__ */ r(a.path, {
|
|
68
68
|
className: "layer-2",
|
|
69
69
|
d: "M4 14l8 4l8 -4"
|
|
70
70
|
}),
|
|
71
|
-
/* @__PURE__ */ a
|
|
71
|
+
/* @__PURE__ */ r(a.path, {
|
|
72
72
|
className: "layer-3",
|
|
73
73
|
d: "M4 18l8 4l8 -4"
|
|
74
74
|
})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef as e, useCallback as t, useImperativeHandle as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { motion as a, useAnimate as o } from "motion/react";
|
|
4
4
|
//#region src/animations/stack-icon.tsx
|
|
5
5
|
var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, className: l = "" }, u) => {
|
|
6
|
-
let [d, f] =
|
|
6
|
+
let [d, f] = o(), p = t(() => {
|
|
7
7
|
f(".layer-top", {
|
|
8
8
|
y: -2,
|
|
9
9
|
scale: 1.05
|
|
@@ -35,7 +35,7 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
35
35
|
return n(u, () => ({
|
|
36
36
|
startAnimation: p,
|
|
37
37
|
stopAnimation: m
|
|
38
|
-
})), /* @__PURE__ */
|
|
38
|
+
})), /* @__PURE__ */ i(a.svg, {
|
|
39
39
|
ref: d,
|
|
40
40
|
onHoverStart: p,
|
|
41
41
|
onHoverEnd: m,
|
|
@@ -50,10 +50,10 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
50
50
|
strokeLinejoin: "round",
|
|
51
51
|
className: `cursor-pointer ${l}`,
|
|
52
52
|
style: { overflow: "visible" },
|
|
53
|
-
children: [/* @__PURE__ */ a
|
|
53
|
+
children: [/* @__PURE__ */ r(a.path, {
|
|
54
54
|
className: "layer-top",
|
|
55
55
|
d: "M12 6l-8 4l8 4l8 -4l-8 -4"
|
|
56
|
-
}), /* @__PURE__ */ a
|
|
56
|
+
}), /* @__PURE__ */ r(a.path, {
|
|
57
57
|
className: "layer-bottom",
|
|
58
58
|
d: "M4 14l8 4l8 -4"
|
|
59
59
|
})]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef as e, useCallback as t, useImperativeHandle as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { motion as a, useAnimate as o } from "motion/react";
|
|
4
4
|
//#region src/animations/star-icon.tsx
|
|
5
5
|
var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, className: l = "" }, u) => {
|
|
6
|
-
let [d, f] =
|
|
6
|
+
let [d, f] = o(), p = t(async () => {
|
|
7
7
|
f(".star-fill", {
|
|
8
8
|
opacity: [0, 1],
|
|
9
9
|
scale: [.8, 1]
|
|
@@ -41,7 +41,7 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
41
41
|
return n(u, () => ({
|
|
42
42
|
startAnimation: p,
|
|
43
43
|
stopAnimation: m
|
|
44
|
-
})), /* @__PURE__ */
|
|
44
|
+
})), /* @__PURE__ */ i(a.svg, {
|
|
45
45
|
ref: d,
|
|
46
46
|
onHoverStart: p,
|
|
47
47
|
onHoverEnd: m,
|
|
@@ -56,19 +56,19 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
56
56
|
strokeLinejoin: "round",
|
|
57
57
|
className: `cursor-pointer ${l}`,
|
|
58
58
|
children: [
|
|
59
|
-
/* @__PURE__ */
|
|
59
|
+
/* @__PURE__ */ r("path", {
|
|
60
60
|
stroke: "none",
|
|
61
61
|
d: "M0 0h24v24H0z",
|
|
62
62
|
fill: "none"
|
|
63
63
|
}),
|
|
64
|
-
/* @__PURE__ */ a
|
|
64
|
+
/* @__PURE__ */ r(a.path, {
|
|
65
65
|
className: "star-fill",
|
|
66
66
|
d: "M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z",
|
|
67
67
|
fill: s,
|
|
68
68
|
opacity: 0,
|
|
69
69
|
style: { transformOrigin: "center" }
|
|
70
70
|
}),
|
|
71
|
-
/* @__PURE__ */ a
|
|
71
|
+
/* @__PURE__ */ r(a.path, {
|
|
72
72
|
className: "star-outline",
|
|
73
73
|
d: "M12 17.75l-6.172 3.245l1.179 -6.873l-5 -4.867l6.9 -1l3.086 -6.253l3.086 6.253l6.9 1l-5 4.867l1.179 6.873z",
|
|
74
74
|
style: { transformOrigin: "center" }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef as e, useCallback as t, useImperativeHandle as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { motion as a, useAnimate as o } from "motion/react";
|
|
4
4
|
//#region src/animations/subscript-icon.tsx
|
|
5
5
|
var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, className: l = "" }, u) => {
|
|
6
|
-
let [d, f] =
|
|
6
|
+
let [d, f] = o(), p = t(async () => {
|
|
7
7
|
await f(".x-mark", { scale: [
|
|
8
8
|
1,
|
|
9
9
|
1.06,
|
|
@@ -44,7 +44,7 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
44
44
|
return n(u, () => ({
|
|
45
45
|
startAnimation: p,
|
|
46
46
|
stopAnimation: m
|
|
47
|
-
})), /* @__PURE__ */
|
|
47
|
+
})), /* @__PURE__ */ i(a.svg, {
|
|
48
48
|
ref: d,
|
|
49
49
|
onHoverStart: p,
|
|
50
50
|
onHoverEnd: m,
|
|
@@ -58,10 +58,10 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
58
58
|
strokeLinecap: "round",
|
|
59
59
|
strokeLinejoin: "round",
|
|
60
60
|
className: `cursor-pointer ${l}`,
|
|
61
|
-
children: [/* @__PURE__ */
|
|
61
|
+
children: [/* @__PURE__ */ i(a.g, {
|
|
62
62
|
className: "x-mark",
|
|
63
|
-
children: [/* @__PURE__ */
|
|
64
|
-
}), /* @__PURE__ */ a
|
|
63
|
+
children: [/* @__PURE__ */ r("path", { d: "m4 5 8 8" }), /* @__PURE__ */ r("path", { d: "m12 5-8 8" })]
|
|
64
|
+
}), /* @__PURE__ */ r(a.path, {
|
|
65
65
|
className: "subscript",
|
|
66
66
|
d: "M20 19h-4c0-1.5.44-2 1.5-2.5S20 15.33 20 14c0-.47-.17-.93-.48-1.29a2.11 2.11 0 0 0-2.62-.44c-.42.24-.74.62-.9 1.07"
|
|
67
67
|
})]
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef as e, useCallback as t, useImperativeHandle as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { motion as a, useAnimate as o } from "motion/react";
|
|
4
4
|
//#region src/animations/target-icon.tsx
|
|
5
5
|
var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, className: l = "" }, u) => {
|
|
6
|
-
let [d, f] =
|
|
6
|
+
let [d, f] = o(), p = t(async () => {
|
|
7
7
|
f(".circle-outer", {
|
|
8
8
|
scale: [
|
|
9
9
|
1,
|
|
@@ -61,7 +61,7 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
61
61
|
return n(u, () => ({
|
|
62
62
|
startAnimation: p,
|
|
63
63
|
stopAnimation: m
|
|
64
|
-
})), /* @__PURE__ */
|
|
64
|
+
})), /* @__PURE__ */ i(a.svg, {
|
|
65
65
|
ref: d,
|
|
66
66
|
onHoverStart: p,
|
|
67
67
|
onHoverEnd: m,
|
|
@@ -76,21 +76,21 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
76
76
|
strokeLinejoin: "round",
|
|
77
77
|
className: `cursor-pointer ${l}`,
|
|
78
78
|
children: [
|
|
79
|
-
/* @__PURE__ */ a
|
|
79
|
+
/* @__PURE__ */ r(a.circle, {
|
|
80
80
|
className: "circle-outer",
|
|
81
81
|
cx: "12",
|
|
82
82
|
cy: "12",
|
|
83
83
|
r: "10",
|
|
84
84
|
style: { transformOrigin: "12px 12px" }
|
|
85
85
|
}),
|
|
86
|
-
/* @__PURE__ */ a
|
|
86
|
+
/* @__PURE__ */ r(a.circle, {
|
|
87
87
|
className: "circle-middle",
|
|
88
88
|
cx: "12",
|
|
89
89
|
cy: "12",
|
|
90
90
|
r: "6",
|
|
91
91
|
style: { transformOrigin: "12px 12px" }
|
|
92
92
|
}),
|
|
93
|
-
/* @__PURE__ */ a
|
|
93
|
+
/* @__PURE__ */ r(a.circle, {
|
|
94
94
|
className: "circle-inner",
|
|
95
95
|
cx: "12",
|
|
96
96
|
cy: "12",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { scaledStrokeWidth as e } from "./types.js";
|
|
2
2
|
import { forwardRef as t, useCallback as n, useImperativeHandle as r } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
import { motion as o, useAnimate as s } from "motion/react";
|
|
5
5
|
//#region src/animations/telephone-icon.tsx
|
|
6
6
|
var c = t(({ size: t = 24, color: c = "currentColor", strokeWidth: l = 2, className: u = "" }, d) => {
|
|
7
|
-
let [f, p] =
|
|
7
|
+
let [f, p] = s(), m = n(async () => {
|
|
8
8
|
p(".stadium-roof", { y: -3 }, {
|
|
9
9
|
duration: .25,
|
|
10
10
|
ease: "easeOut"
|
|
@@ -43,12 +43,12 @@ var c = t(({ size: t = 24, color: c = "currentColor", strokeWidth: l = 2, classN
|
|
|
43
43
|
return r(d, () => ({
|
|
44
44
|
startAnimation: m,
|
|
45
45
|
stopAnimation: h
|
|
46
|
-
})), /* @__PURE__ */ o
|
|
46
|
+
})), /* @__PURE__ */ i(o.div, {
|
|
47
47
|
ref: f,
|
|
48
48
|
onHoverStart: m,
|
|
49
49
|
onHoverEnd: h,
|
|
50
50
|
className: `inline-flex cursor-pointer ${u}`,
|
|
51
|
-
children: /* @__PURE__ */
|
|
51
|
+
children: /* @__PURE__ */ a("svg", {
|
|
52
52
|
xmlns: "http://www.w3.org/2000/svg",
|
|
53
53
|
width: t,
|
|
54
54
|
height: t,
|
|
@@ -59,25 +59,25 @@ var c = t(({ size: t = 24, color: c = "currentColor", strokeWidth: l = 2, classN
|
|
|
59
59
|
strokeMiterlimit: "10",
|
|
60
60
|
strokeLinecap: "square",
|
|
61
61
|
children: [
|
|
62
|
-
/* @__PURE__ */ o
|
|
62
|
+
/* @__PURE__ */ i(o.path, {
|
|
63
63
|
className: "stadium-bowl",
|
|
64
64
|
style: { transformOrigin: "24px 35px" },
|
|
65
65
|
d: "M38 43H10C7.23858 43 5 40.7614 5 38V34.8496C5 33.6561 5.42696 32.5019 6.20372 31.5957L17 19H31L41.7963 31.5957C42.573 32.5019 43 33.6561 43 34.8496V38C43 40.7614 40.7614 43 38 43Z"
|
|
66
66
|
}),
|
|
67
|
-
/* @__PURE__ */ o
|
|
67
|
+
/* @__PURE__ */ i(o.path, {
|
|
68
68
|
className: "stadium-center",
|
|
69
69
|
style: { transformOrigin: "24px 32px" },
|
|
70
70
|
d: "M24 37C26.7614 37 29 34.7614 29 32C29 29.2386 26.7614 27 24 27C21.2386 27 19 29.2386 19 32C19 34.7614 21.2386 37 24 37Z"
|
|
71
71
|
}),
|
|
72
|
-
/* @__PURE__ */ o
|
|
72
|
+
/* @__PURE__ */ i(o.path, {
|
|
73
73
|
className: "stadium-roof",
|
|
74
74
|
d: "M11 18H7.5C6.11929 18 5 16.8807 5 15.5V12.263C5 10.4575 6.13996 8.83551 7.84843 8.19566C19.2334 3.93478 28.7666 3.93478 40.1516 8.19566C41.86 8.83551 43 10.4575 43 12.263V15.5C43 16.8807 41.8807 18 40.5 18H37"
|
|
75
75
|
}),
|
|
76
|
-
/* @__PURE__ */ o
|
|
76
|
+
/* @__PURE__ */ i(o.path, {
|
|
77
77
|
className: "stadium-pillar stadium-pillar-left",
|
|
78
78
|
d: "M17 19V14"
|
|
79
79
|
}),
|
|
80
|
-
/* @__PURE__ */ o
|
|
80
|
+
/* @__PURE__ */ i(o.path, {
|
|
81
81
|
className: "stadium-pillar stadium-pillar-right",
|
|
82
82
|
d: "M31 19V14"
|
|
83
83
|
})
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef as e, useCallback as t, useImperativeHandle as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { motion as a, useAnimate as o } from "motion/react";
|
|
4
4
|
//#region src/animations/terminal-icon.tsx
|
|
5
5
|
var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, className: l = "" }, u) => {
|
|
6
|
-
let [d, f] =
|
|
6
|
+
let [d, f] = o(), p = t(async () => {
|
|
7
7
|
f(".cursor-line", { opacity: [
|
|
8
8
|
1,
|
|
9
9
|
0,
|
|
@@ -33,7 +33,7 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
33
33
|
return n(u, () => ({
|
|
34
34
|
startAnimation: p,
|
|
35
35
|
stopAnimation: m
|
|
36
|
-
})), /* @__PURE__ */
|
|
36
|
+
})), /* @__PURE__ */ i(a.svg, {
|
|
37
37
|
ref: d,
|
|
38
38
|
onHoverStart: p,
|
|
39
39
|
onHoverEnd: m,
|
|
@@ -48,16 +48,16 @@ var s = e(({ size: e = 24, color: s = "currentColor", strokeWidth: c = 2, classN
|
|
|
48
48
|
strokeLinejoin: "round",
|
|
49
49
|
className: `cursor-pointer ${l}`,
|
|
50
50
|
children: [
|
|
51
|
-
/* @__PURE__ */
|
|
51
|
+
/* @__PURE__ */ r("path", {
|
|
52
52
|
stroke: "none",
|
|
53
53
|
d: "M0 0h24v24H0z",
|
|
54
54
|
fill: "none"
|
|
55
55
|
}),
|
|
56
|
-
/* @__PURE__ */ a
|
|
56
|
+
/* @__PURE__ */ r(a.path, {
|
|
57
57
|
className: "terminal-chevron",
|
|
58
58
|
d: "M5 7l5 5l-5 5"
|
|
59
59
|
}),
|
|
60
|
-
/* @__PURE__ */ a
|
|
60
|
+
/* @__PURE__ */ r(a.path, {
|
|
61
61
|
className: "cursor-line",
|
|
62
62
|
d: "M12 19l7 0"
|
|
63
63
|
})
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { scaledStrokeWidth as e } from "./types.js";
|
|
2
2
|
import { forwardRef as t, useCallback as n, useImperativeHandle as r } from "react";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
4
|
+
import { motion as o, useAnimate as s } from "motion/react";
|
|
5
5
|
//#region src/animations/toggle-icon.tsx
|
|
6
6
|
var c = t(({ size: t = 24, color: c = "currentColor", strokeWidth: l = 2, className: u = "" }, d) => {
|
|
7
|
-
let [f, p] =
|
|
7
|
+
let [f, p] = s(), m = n(async () => {
|
|
8
8
|
await p(".toggle-knob", { x: [0, 12] }, {
|
|
9
9
|
duration: .4,
|
|
10
10
|
ease: "easeInOut"
|
|
@@ -28,7 +28,7 @@ var c = t(({ size: t = 24, color: c = "currentColor", strokeWidth: l = 2, classN
|
|
|
28
28
|
return r(d, () => ({
|
|
29
29
|
startAnimation: m,
|
|
30
30
|
stopAnimation: h
|
|
31
|
-
})), /* @__PURE__ */
|
|
31
|
+
})), /* @__PURE__ */ a(o.svg, {
|
|
32
32
|
ref: f,
|
|
33
33
|
onHoverStart: m,
|
|
34
34
|
onHoverEnd: h,
|
|
@@ -42,10 +42,10 @@ var c = t(({ size: t = 24, color: c = "currentColor", strokeWidth: l = 2, classN
|
|
|
42
42
|
strokeLinecap: "square",
|
|
43
43
|
strokeMiterlimit: "10",
|
|
44
44
|
className: `cursor-pointer ${u}`,
|
|
45
|
-
children: [/* @__PURE__ */ o
|
|
45
|
+
children: [/* @__PURE__ */ i(o.path, {
|
|
46
46
|
className: "toggle-track",
|
|
47
47
|
d: "m10,7h12c4.971,0,9,4.029,9,9h0c0,4.971-4.029,9-9,9h-12c-4.971,0-9-4.029-9-9h0c0-4.971,4.029-9,9-9Z"
|
|
48
|
-
}), /* @__PURE__ */ o
|
|
48
|
+
}), /* @__PURE__ */ i(o.circle, {
|
|
49
49
|
className: "toggle-knob",
|
|
50
50
|
cx: "10",
|
|
51
51
|
cy: "16",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { forwardRef as e, useCallback as t, useImperativeHandle as n } from "react";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
import { motion as a, useAnimate as o } from "motion/react";
|
|
4
4
|
//#region src/animations/trash-icon.tsx
|
|
5
5
|
var s = e(({ shakeOnClick: e = !1, dangerHover: s = !1, keepOpenOnDelete: c = !1, size: l = 24, color: u = "currentColor", strokeWidth: d = 2, className: f = "" }, p) => {
|
|
6
|
-
let [m, h] =
|
|
6
|
+
let [m, h] = o(), g = t(async () => {
|
|
7
7
|
await Promise.all([h(".trash-lid-lower", {
|
|
8
8
|
rotate: -25,
|
|
9
9
|
y: -4
|
|
@@ -68,7 +68,7 @@ var s = e(({ shakeOnClick: e = !1, dangerHover: s = !1, keepOpenOnDelete: c = !1
|
|
|
68
68
|
return n(p, () => ({
|
|
69
69
|
startAnimation: g,
|
|
70
70
|
stopAnimation: _
|
|
71
|
-
})), /* @__PURE__ */
|
|
71
|
+
})), /* @__PURE__ */ i(a.svg, {
|
|
72
72
|
ref: m,
|
|
73
73
|
className: `cursor-pointer ${f} trash-icon`,
|
|
74
74
|
onHoverStart: b,
|
|
@@ -84,20 +84,20 @@ var s = e(({ shakeOnClick: e = !1, dangerHover: s = !1, keepOpenOnDelete: c = !1
|
|
|
84
84
|
strokeLinecap: "round",
|
|
85
85
|
strokeLinejoin: "round",
|
|
86
86
|
children: [
|
|
87
|
-
/* @__PURE__ */
|
|
87
|
+
/* @__PURE__ */ r("path", {
|
|
88
88
|
stroke: "none",
|
|
89
89
|
d: "M0 0h24v24H0z",
|
|
90
90
|
fill: "none"
|
|
91
91
|
}),
|
|
92
|
-
/* @__PURE__ */ a
|
|
92
|
+
/* @__PURE__ */ r(a.path, {
|
|
93
93
|
d: "M4 7l16 0",
|
|
94
94
|
className: "trash-lid-lower",
|
|
95
95
|
style: { transformOrigin: "50% 100%" }
|
|
96
96
|
}),
|
|
97
|
-
/* @__PURE__ */
|
|
98
|
-
/* @__PURE__ */
|
|
99
|
-
/* @__PURE__ */
|
|
100
|
-
/* @__PURE__ */ a
|
|
97
|
+
/* @__PURE__ */ r("path", { d: "M10 11l0 6" }),
|
|
98
|
+
/* @__PURE__ */ r("path", { d: "M14 11l0 6" }),
|
|
99
|
+
/* @__PURE__ */ r("path", { d: "M5 7l1 12a2 2 0 0 0 2 2h8a2 2 0 0 0 2 -2l1 -12" }),
|
|
100
|
+
/* @__PURE__ */ r(a.path, {
|
|
101
101
|
d: "M9 7v-3a1 1 0 0 1 1 -1h4a1 1 0 0 1 1 1v3",
|
|
102
102
|
className: "trash-lid-upper",
|
|
103
103
|
style: { transformOrigin: "50% 100%" }
|