@solostylist/ui-kit 1.0.196 → 1.0.198
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/{ArrowUpward-JWPHrR6I.js → ArrowUpward-D8eqD-si.js} +1 -1
- package/dist/{Box-p3bpOtdn.js → Box-BkXoTbe8.js} +3 -3
- package/dist/{ButtonBase-PbSTzuUP.js → ButtonBase-D73M0QY5.js} +7 -7
- package/dist/{ChevronLeft-BJjuFNNQ.js → ChevronLeft-BmgmPHp9.js} +1 -1
- package/dist/{ChevronRight-5ZX3FodP.js → ChevronRight-DbWSr8yz.js} +1 -1
- package/dist/{Close-C-pCw-CD.js → Close-lHCUMitI.js} +1 -1
- package/dist/{ContentCopy-CNxsEhmq.js → ContentCopy-D4SuJd86.js} +1 -1
- package/dist/{DefaultPropsProvider-2MEHB2yv.js → DefaultPropsProvider-DPuuPIbS.js} +2 -2
- package/dist/{Download-D97XSAig.js → Download-BoRQUwCf.js} +1 -1
- package/dist/{ExpandMore-CTZrSZlF.js → ExpandMore-C7yRQv1-.js} +1 -1
- package/dist/{Favorite-Cvjg7GqN.js → Favorite-Bz_HcMgN.js} +1 -1
- package/dist/{Menu-_ZW9WiF2.js → Menu-GVFDMHCN.js} +137 -131
- package/dist/{MenuItem-DTapLhin.js → MenuItem-2wG8I2HO.js} +5 -5
- package/dist/{Paper-5nSdRRBA.js → Paper-CR019bki.js} +6 -6
- package/dist/{Select-J5gDqfEk.js → Select-80JhW337.js} +7 -7
- package/dist/{Stack-BlwLEm6H.js → Stack-Dfjnuorw.js} +5 -5
- package/dist/{Typography-Cum5_Ehu.js → Typography-PcmlIqm1.js} +4 -4
- package/dist/assets/s-overlay-scrollbar.css +1 -1
- package/dist/{createSvgIcon-DTNHY3_v.js → createSvgIcon-BkbeLOhM.js} +3 -3
- package/dist/{createTheme-CIXJrNxb.js → createTheme-DgoJyWM-.js} +874 -871
- package/dist/defaultTheme-CulFxfLR.js +5 -0
- package/dist/{extendSxProp-CyoueGTe.js → extendSxProp-BJEIxcAx.js} +1 -1
- package/dist/{index-8LcCMmwl.js → index-DtGYsHSv.js} +4 -4
- package/dist/s-accordion/s-accordion.js +89 -89
- package/dist/s-action-overlay/s-action-overlay.js +7 -7
- package/dist/s-ai-tool-bar/s-ai-tool-bar.d.ts +44 -0
- package/dist/s-ai-tool-bar/s-ai-tool-bar.js +241 -272
- package/dist/s-avatar/s-avatar.js +2 -2
- package/dist/s-breadcrumbs/s-breadcrumbs.js +1 -1
- package/dist/s-carousel/s-carousel.d.ts +4 -4
- package/dist/s-carousel/s-carousel.js +4 -4
- package/dist/s-chat-input/s-chat-input.js +4 -4
- package/dist/s-chat-message/s-chat-message.js +135 -124
- package/dist/s-chips/s-chips.js +35 -35
- package/dist/s-code-block/s-code-block.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +5 -5
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-countdown/s-count-down.d.ts +15 -10
- package/dist/s-countdown/s-count-down.js +84 -101
- package/dist/s-data-table/s-data-table.js +75 -76
- package/dist/s-date-picker/s-date-picker.js +43 -47
- package/dist/s-datetime-picker/s-datetime-picker.js +782 -782
- package/dist/s-dialog/s-dialog.js +1 -1
- package/dist/s-dialog-confirm/s-dialog-confirm.js +2 -2
- package/dist/s-dialog-message/s-dialog-message.js +2 -2
- package/dist/s-empty/s-empty.js +1 -1
- package/dist/s-file-dropzone/s-file-dropzone.js +4 -4
- package/dist/s-file-icon/s-file-icon.js +15 -15
- package/dist/s-flex-box/s-flex-box.js +1 -1
- package/dist/s-gallery/s-gallery.js +1 -1
- package/dist/s-gradient-icon/s-gradient-icon.js +5 -5
- package/dist/s-image-comparison/s-image-comparison.js +3 -3
- package/dist/s-image-modal/s-image-modal.js +7 -7
- package/dist/s-label/s-label.d.ts +1 -1
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-language-switcher/s-language-switcher.js +8 -8
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/s-moving-border/s-moving-border.d.ts +5 -5
- package/dist/s-multi-select/s-multi-select.js +3 -3
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +6 -6
- package/dist/s-pixel-reveal/s-pixel-reveal.js +76 -71
- package/dist/s-radial-pulse-animate/s-radial-pulse-animate.js +2 -2
- package/dist/s-review/s-review.d.ts +3 -2
- package/dist/s-review/s-review.js +19 -19
- package/dist/s-scroll-to-top/s-scroll-to-top.js +5 -5
- package/dist/s-scroll-velocity/scroll-velocity-container.d.ts +1 -1
- package/dist/s-scroll-velocity/scroll-velocity-row.d.ts +3 -3
- package/dist/s-scroll-velocity/scroll-velocity-row.js +2 -2
- package/dist/s-select/s-select.d.ts +3 -0
- package/dist/s-select/s-select.js +60 -72
- package/dist/s-select-list/s-select-list.js +1 -1
- package/dist/s-stripe/s-stripe-cvc.d.ts +1 -1
- package/dist/s-stripe/s-stripe-expiry.d.ts +1 -1
- package/dist/s-stripe/s-stripe-number.d.ts +1 -1
- package/dist/s-stripe/stripe-input.d.ts +1 -1
- package/dist/s-text-editor/s-text-editor-toolbar.js +64 -60
- package/dist/s-text-editor/s-text-editor.js +1 -1
- package/dist/s-text-field/s-text-field.js +1 -1
- package/dist/s-text-shimmer/s-text-shimmer.js +3 -3
- package/dist/s-theme-demo/s-theme-demo.js +2 -2
- package/dist/s-theme-provider/s-theme-provider.d.ts +1 -1
- package/dist/s-theme-switch/s-theme-switch.js +1 -1
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{styled-BR6UL29H.js → styled-8Y5KoVix.js} +2 -2
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/button.d.ts +2 -2
- package/dist/theme/components/button.js +1 -1
- package/dist/theme/components/chip.d.ts +2 -2
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/components/icon-button.d.ts +2 -2
- package/dist/theme/components/popover.js +2 -2
- package/dist/theme/components/skeleton.js +1 -1
- package/dist/theme/components/tooltip.js +5 -5
- package/dist/theme/customizations/data-display.js +12 -12
- package/dist/theme/customizations/feedback.js +2 -2
- package/dist/theme/customizations/inputs.js +12 -12
- package/dist/theme/customizations/navigation.js +28 -28
- package/dist/theme/customizations/surfaces.js +11 -11
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{useMobilePicker-C0pYjskU.js → useMobilePicker-DVnEuXv1.js} +3936 -3653
- package/dist/{useTheme-DSvhq4Np.js → useTheme-CWPkv7g3.js} +1 -1
- package/dist/{useThemeProps-C-oV4Fbz.js → useThemeProps-XYgXGzjS.js} +1 -1
- package/dist/utils/logger.d.ts +1 -1
- package/dist/utils-CHdpkEZx.js +33 -0
- package/dist/{warning-BZ61Y8gI.js → warning-Ba-7BBAN.js} +3 -3
- package/package.json +59 -59
- package/dist/defaultTheme-DLue8Fr1.js +0 -5
- package/dist/utils-DJIrqgo5.js +0 -18
package/dist/utils/logger.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare class Logger {
|
|
|
14
14
|
protected prefix: string;
|
|
15
15
|
protected level: keyof typeof LogLevel;
|
|
16
16
|
protected showLevel: boolean;
|
|
17
|
-
private levelNumber;
|
|
17
|
+
private readonly levelNumber;
|
|
18
18
|
constructor({ prefix, level, showLevel }: LoggerOptions);
|
|
19
19
|
debug: (...args: unknown[]) => void;
|
|
20
20
|
warn: (...args: unknown[]) => void;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
const m = (o) => (typeof o == "string" ? new Date(o) : o).toLocaleTimeString("en-US", {
|
|
2
|
+
hour: "2-digit",
|
|
3
|
+
minute: "2-digit",
|
|
4
|
+
hour12: !0
|
|
5
|
+
}), f = (o) => {
|
|
6
|
+
if (!o)
|
|
7
|
+
return "";
|
|
8
|
+
const t = ["Bytes", "KB", "MB", "GB"], i = Math.floor(Math.log(o) / Math.log(1024));
|
|
9
|
+
return Math.round(o / Math.pow(1024, i) * 100) / 100 + " " + t[i];
|
|
10
|
+
}, c = (o) => {
|
|
11
|
+
const t = /* @__PURE__ */ new Date(), i = typeof o == "string" ? new Date(o) : o, a = Math.floor((t.getTime() - i.getTime()) / 1e3);
|
|
12
|
+
if (a < 60)
|
|
13
|
+
return "just now";
|
|
14
|
+
const n = [
|
|
15
|
+
{ limit: 3600, divisor: 60, singular: "1 minute ago", plural: "minutes ago" },
|
|
16
|
+
{ limit: 86400, divisor: 3600, singular: "1 hour ago", plural: "hours ago" },
|
|
17
|
+
{ limit: 604800, divisor: 86400, singular: "1 day ago", plural: "days ago" },
|
|
18
|
+
{ limit: 2592e3, divisor: 604800, singular: "1 week ago", plural: "weeks ago" },
|
|
19
|
+
{ limit: 31536e3, divisor: 2592e3, singular: "1 month ago", plural: "months ago" }
|
|
20
|
+
];
|
|
21
|
+
for (const { limit: s, divisor: l, singular: g, plural: u } of n)
|
|
22
|
+
if (a < s) {
|
|
23
|
+
const e = Math.floor(a / l);
|
|
24
|
+
return e === 1 ? g : `${e} ${u}`;
|
|
25
|
+
}
|
|
26
|
+
const r = Math.floor(a / 31536e3);
|
|
27
|
+
return r === 1 ? "1 year ago" : `${r} years ago`;
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
m as a,
|
|
31
|
+
f,
|
|
32
|
+
c as g
|
|
33
|
+
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { _ as L, a as P } from "./objectWithoutPropertiesLoose-DiWPeE4c.js";
|
|
2
2
|
import * as n from "react";
|
|
3
|
-
import { P as e } from "./createTheme-
|
|
3
|
+
import { P as e } from "./createTheme-DgoJyWM-.js";
|
|
4
4
|
import { j as E } from "./jsx-runtime-tc70JA_2.js";
|
|
5
|
-
import { d as M } from "./defaultTheme-
|
|
5
|
+
import { d as M } from "./defaultTheme-CulFxfLR.js";
|
|
6
6
|
import { T as j } from "./identifier-BKLqN993.js";
|
|
7
|
-
import { u as v } from "./useThemeProps-
|
|
7
|
+
import { u as v } from "./useThemeProps-XYgXGzjS.js";
|
|
8
8
|
function w({
|
|
9
9
|
props: o,
|
|
10
10
|
name: a
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"registry": "https://registry.npmjs.org"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.0.
|
|
6
|
+
"version": "1.0.198",
|
|
7
7
|
"description": "advanced ui kit for solostylist",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"main": "dist/main.js",
|
|
@@ -126,30 +126,30 @@
|
|
|
126
126
|
"@emotion/react": "^11.14.0",
|
|
127
127
|
"@emotion/styled": "^11.14.1",
|
|
128
128
|
"@fontsource/outfit": "^5.2.8",
|
|
129
|
-
"@mui/icons-material": "^7.3.
|
|
130
|
-
"@mui/lab": "^7.0.1-beta.
|
|
131
|
-
"@mui/material": "^7.3.
|
|
132
|
-
"@mui/system": "^7.3.
|
|
133
|
-
"@mui/utils": "^7.3.
|
|
134
|
-
"@mui/x-date-pickers": "^8.
|
|
135
|
-
"@stripe/react-stripe-js": "^5.
|
|
136
|
-
"@stripe/stripe-js": "^8.
|
|
137
|
-
"@tiptap/extension-link": "^3.
|
|
138
|
-
"@tiptap/extension-placeholder": "^3.
|
|
139
|
-
"@tiptap/react": "^3.
|
|
140
|
-
"@tiptap/starter-kit": "^3.
|
|
129
|
+
"@mui/icons-material": "^7.3.9",
|
|
130
|
+
"@mui/lab": "^7.0.1-beta.23",
|
|
131
|
+
"@mui/material": "^7.3.9",
|
|
132
|
+
"@mui/system": "^7.3.9",
|
|
133
|
+
"@mui/utils": "^7.3.9",
|
|
134
|
+
"@mui/x-date-pickers": "^8.27.2",
|
|
135
|
+
"@stripe/react-stripe-js": "^5.6.1",
|
|
136
|
+
"@stripe/stripe-js": "^8.9.0",
|
|
137
|
+
"@tiptap/extension-link": "^3.20.1",
|
|
138
|
+
"@tiptap/extension-placeholder": "^3.20.1",
|
|
139
|
+
"@tiptap/react": "^3.20.1",
|
|
140
|
+
"@tiptap/starter-kit": "^3.20.1",
|
|
141
141
|
"dayjs": "^1.11.19",
|
|
142
|
-
"emoji-picker-react": "^4.
|
|
143
|
-
"framer-motion": "^12.
|
|
144
|
-
"i18next": "^25.8.
|
|
142
|
+
"emoji-picker-react": "^4.18.0",
|
|
143
|
+
"framer-motion": "^12.35.2",
|
|
144
|
+
"i18next": "^25.8.17",
|
|
145
145
|
"i18next-http-backend": "^3.0.2",
|
|
146
146
|
"overlayscrollbars-react": "^0.5.6",
|
|
147
|
-
"react": "^19.2.
|
|
147
|
+
"react": "^19.2.4",
|
|
148
148
|
"react-country-flag": "^3.1.0",
|
|
149
|
-
"react-dom": "^19.2.
|
|
150
|
-
"react-dropzone": "^
|
|
151
|
-
"react-i18next": "^16.5.
|
|
152
|
-
"react-router-dom": "^7.13.
|
|
149
|
+
"react-dom": "^19.2.4",
|
|
150
|
+
"react-dropzone": "^15.0.0",
|
|
151
|
+
"react-i18next": "^16.5.6",
|
|
152
|
+
"react-router-dom": "^7.13.1",
|
|
153
153
|
"react-slick": "^0.31.0",
|
|
154
154
|
"react-syntax-highlighter": "^16.1.0",
|
|
155
155
|
"slick-carousel": "^1.8.1",
|
|
@@ -164,60 +164,60 @@
|
|
|
164
164
|
"@emotion/cache": "^11.14.0",
|
|
165
165
|
"@emotion/react": "^11.14.0",
|
|
166
166
|
"@emotion/styled": "^11.14.1",
|
|
167
|
-
"@eslint/js": "^
|
|
167
|
+
"@eslint/js": "^10.0.1",
|
|
168
168
|
"@fontsource/outfit": "^5.2.8",
|
|
169
|
-
"@ianvs/prettier-plugin-sort-imports": "^4.7.
|
|
170
|
-
"@mui/icons-material": "^7.3.
|
|
171
|
-
"@mui/lab": "^7.0.1-beta.
|
|
172
|
-
"@mui/material": "^7.3.
|
|
173
|
-
"@mui/system": "^7.3.
|
|
174
|
-
"@mui/utils": "^7.3.
|
|
175
|
-
"@mui/x-date-pickers": "^8.
|
|
176
|
-
"@stripe/react-stripe-js": "^5.
|
|
177
|
-
"@stripe/stripe-js": "^8.
|
|
178
|
-
"@tiptap/core": "^3.
|
|
179
|
-
"@tiptap/extension-link": "^3.
|
|
180
|
-
"@tiptap/extension-placeholder": "^3.
|
|
181
|
-
"@tiptap/pm": "^3.
|
|
182
|
-
"@tiptap/react": "^3.
|
|
183
|
-
"@tiptap/starter-kit": "^3.
|
|
184
|
-
"@types/node": "^25.0
|
|
185
|
-
"@types/react": "^19.2.
|
|
169
|
+
"@ianvs/prettier-plugin-sort-imports": "^4.7.1",
|
|
170
|
+
"@mui/icons-material": "^7.3.9",
|
|
171
|
+
"@mui/lab": "^7.0.1-beta.23",
|
|
172
|
+
"@mui/material": "^7.3.9",
|
|
173
|
+
"@mui/system": "^7.3.9",
|
|
174
|
+
"@mui/utils": "^7.3.9",
|
|
175
|
+
"@mui/x-date-pickers": "^8.27.2",
|
|
176
|
+
"@stripe/react-stripe-js": "^5.6.1",
|
|
177
|
+
"@stripe/stripe-js": "^8.9.0",
|
|
178
|
+
"@tiptap/core": "^3.20.1",
|
|
179
|
+
"@tiptap/extension-link": "^3.20.1",
|
|
180
|
+
"@tiptap/extension-placeholder": "^3.20.1",
|
|
181
|
+
"@tiptap/pm": "^3.20.1",
|
|
182
|
+
"@tiptap/react": "^3.20.1",
|
|
183
|
+
"@tiptap/starter-kit": "^3.20.1",
|
|
184
|
+
"@types/node": "^25.4.0",
|
|
185
|
+
"@types/react": "^19.2.14",
|
|
186
186
|
"@types/react-dom": "^19.2.3",
|
|
187
187
|
"@types/uuid": "^11.0.0",
|
|
188
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
189
|
-
"@typescript-eslint/parser": "^8.
|
|
190
|
-
"@vercel/node": "^5.
|
|
191
|
-
"@vitejs/plugin-react": "^5.1.
|
|
192
|
-
"baseline-browser-mapping": "^2.
|
|
188
|
+
"@typescript-eslint/eslint-plugin": "^8.57.0",
|
|
189
|
+
"@typescript-eslint/parser": "^8.57.0",
|
|
190
|
+
"@vercel/node": "^5.6.12",
|
|
191
|
+
"@vitejs/plugin-react": "^5.1.4",
|
|
192
|
+
"baseline-browser-mapping": "^2.10.0",
|
|
193
193
|
"dayjs": "^1.11.19",
|
|
194
|
-
"emoji-picker-react": "^4.
|
|
195
|
-
"eslint": "^
|
|
194
|
+
"emoji-picker-react": "^4.18.0",
|
|
195
|
+
"eslint": "^10.0.3",
|
|
196
196
|
"eslint-plugin-react-hooks": "^7.0.1",
|
|
197
|
-
"eslint-plugin-react-refresh": "^0.
|
|
198
|
-
"framer-motion": "^12.
|
|
199
|
-
"globals": "^17.
|
|
197
|
+
"eslint-plugin-react-refresh": "^0.5.2",
|
|
198
|
+
"framer-motion": "^12.35.2",
|
|
199
|
+
"globals": "^17.4.0",
|
|
200
200
|
"husky": "^9.1.7",
|
|
201
|
-
"i18next": "^25.8.
|
|
201
|
+
"i18next": "^25.8.17",
|
|
202
202
|
"i18next-http-backend": "^3.0.2",
|
|
203
|
-
"lint-staged": "^16.
|
|
204
|
-
"overlayscrollbars": "^2.
|
|
203
|
+
"lint-staged": "^16.3.3",
|
|
204
|
+
"overlayscrollbars": "^2.14.0",
|
|
205
205
|
"overlayscrollbars-react": "^0.5.6",
|
|
206
206
|
"prettier": "^3.8.1",
|
|
207
|
-
"react": "^19.2.
|
|
207
|
+
"react": "^19.2.4",
|
|
208
208
|
"react-country-flag": "^3.1.0",
|
|
209
|
-
"react-dom": "^19.2.
|
|
210
|
-
"react-dropzone": "^
|
|
211
|
-
"react-i18next": "^16.5.
|
|
212
|
-
"react-router-dom": "^7.13.
|
|
213
|
-
"rimraf": "^6.1.
|
|
209
|
+
"react-dom": "^19.2.4",
|
|
210
|
+
"react-dropzone": "^15.0.0",
|
|
211
|
+
"react-i18next": "^16.5.6",
|
|
212
|
+
"react-router-dom": "^7.13.1",
|
|
213
|
+
"rimraf": "^6.1.3",
|
|
214
214
|
"ts-node": "^10.9.2",
|
|
215
215
|
"typescript": "^5.9.3",
|
|
216
216
|
"uuid": "^13.0.0",
|
|
217
217
|
"vite": "^7.3.1",
|
|
218
218
|
"vite-plugin-dts": "^4.5.4",
|
|
219
219
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
220
|
-
"vite-plugin-static-copy": "^3.
|
|
220
|
+
"vite-plugin-static-copy": "^3.2.0"
|
|
221
221
|
},
|
|
222
222
|
"lint-staged": {
|
|
223
223
|
"*.{js,jsx,ts,tsx}": [
|
package/dist/utils-DJIrqgo5.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
const l = (o) => (typeof o == "string" ? new Date(o) : o).toLocaleTimeString("en-US", {
|
|
2
|
-
hour: "2-digit",
|
|
3
|
-
minute: "2-digit",
|
|
4
|
-
hour12: !0
|
|
5
|
-
}), c = (o) => {
|
|
6
|
-
if (!o)
|
|
7
|
-
return "";
|
|
8
|
-
const e = ["Bytes", "KB", "MB", "GB"], n = Math.floor(Math.log(o) / Math.log(1024));
|
|
9
|
-
return Math.round(o / Math.pow(1024, n) * 100) / 100 + " " + e[n];
|
|
10
|
-
}, h = (o) => {
|
|
11
|
-
const e = /* @__PURE__ */ new Date(), n = typeof o == "string" ? new Date(o) : o, u = e.getTime() - n.getTime(), f = Math.floor(u / 1e3), r = Math.floor(f / 60), a = Math.floor(r / 60), t = Math.floor(a / 24), s = Math.floor(t / 7), i = Math.floor(t / 30), g = Math.floor(t / 365);
|
|
12
|
-
return f < 60 ? "just now" : r < 60 ? r === 1 ? "1 minute ago" : `${r} minutes ago` : a < 24 ? a === 1 ? "1 hour ago" : `${a} hours ago` : t < 7 ? t === 1 ? "1 day ago" : `${t} days ago` : s < 4 ? s === 1 ? "1 week ago" : `${s} weeks ago` : i < 12 ? i === 1 ? "1 month ago" : `${i} months ago` : g === 1 ? "1 year ago" : `${g} years ago`;
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
l as a,
|
|
16
|
-
c as f,
|
|
17
|
-
h as g
|
|
18
|
-
};
|