@solostylist/ui-kit 1.0.115 → 1.0.117
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/{Box-D0kAx4PT.js → Box-DqmXop3Z.js} +3 -3
- package/dist/{ButtonBase-QnP537_L.js → ButtonBase-DVlCHVDw.js} +4 -4
- package/dist/{ChevronRight-SimL9kDt.js → ChevronRight-DQD188LX.js} +1 -1
- package/dist/{Close-BmQG3xZp.js → Close-DlTC3goO.js} +1 -1
- package/dist/{ExpandMore-CM0JYSoz.js → ExpandMore-D5dA_4ky.js} +1 -1
- package/dist/{Favorite-BEKdrIQq.js → Favorite-DkdOa-QT.js} +1 -1
- package/dist/{Menu-ClZKHyC1.js → Menu-CgxtGUFu.js} +322 -309
- package/dist/{MenuItem-DxJh8UvK.js → MenuItem-FlDSyi1I.js} +5 -5
- package/dist/{Paper-CpSojup3.js → Paper-DTI6p5rh.js} +7 -7
- package/dist/{Select-CmJydrV_.js → Select-awnAAkKz.js} +387 -370
- package/dist/{Stack-DKN2SxRo.js → Stack-CO3ed3qL.js} +5 -5
- package/dist/{TransitionGroup-iVQWCEuB.js → TransitionGroup-BK0MDPKM.js} +1 -1
- package/dist/{Typography-N0Mzi70r.js → Typography-y4bVBfDI.js} +4 -4
- package/dist/{createSvgIcon-L9c3q_HV.js → createSvgIcon-By5UWB4_.js} +130 -104
- package/dist/{createTheme-CSzTQZIR.js → createTheme-3Wd3hHrj.js} +0 -1
- package/dist/defaultTheme-fEi1x1Gb.js +5 -0
- package/dist/{extendSxProp-BDhPgeA-.js → extendSxProp-BKWjdW12.js} +1 -1
- package/dist/index-VB-2NIdQ.js +95 -0
- package/dist/main.d.ts +3 -3
- package/dist/main.js +72 -74
- package/dist/{mergeSlotProps-BqZn7QoU.js → mergeSlotProps-C7ui6BxO.js} +1 -1
- package/dist/s-accordion/s-accordion.js +8 -8
- package/dist/s-carousel/s-carousel.js +1 -1
- package/dist/s-chat-input/s-chat-input.js +2 -2
- package/dist/s-chat-message/s-chat-message.js +1 -1
- package/dist/s-comment-message/s-comment-message.js +3 -3
- package/dist/s-copyable-text/s-copyable-text.js +1 -1
- package/dist/s-data-table/s-data-table.js +5 -5
- package/dist/s-date-picker/s-date-picker.js +7 -7
- package/dist/s-datetime-picker/s-datetime-picker.js +14 -15
- 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-file-dropzone/s-file-dropzone.js +4 -4
- package/dist/s-file-icon/s-file-icon.js +1 -1
- package/dist/s-flex-box/s-flex-box.js +1 -1
- package/dist/s-image-comparison/s-image-comparison.js +53 -51
- package/dist/s-image-modal/s-image-modal.js +2 -2
- package/dist/s-label/s-label.js +1 -1
- package/dist/s-localization-provider/s-localization-provider.js +1 -1
- package/dist/s-multi-select/s-multi-select.js +3 -3
- package/dist/s-overlay-scrollbar/s-overlay-scrollbar.js +1 -1
- package/dist/s-review/s-review.js +1 -1
- package/dist/s-smart-text-field/s-smart-text-field.js +2 -2
- package/dist/s-text-editor/s-text-editor-toolbar.js +4 -4
- 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 +1 -1
- package/dist/s-theme-demo/s-theme-demo.js +2 -2
- package/dist/s-theme-provider/index.d.ts +0 -2
- package/dist/s-theme-provider/index.js +2 -5
- package/dist/s-theme-switch/index.d.ts +1 -1
- package/dist/s-theme-switch/s-theme-switch.d.ts +4 -1
- package/dist/s-theme-switch/s-theme-switch.js +21 -23
- package/dist/s-tip/s-tip.js +3 -3
- package/dist/{styled-B6SqfqyN.js → styled-BD_erj7E.js} +2 -2
- package/dist/theme/components/avatar.js +1 -1
- package/dist/theme/components/chip.js +1 -1
- package/dist/theme/customizations/inputs.js +2 -1
- package/dist/theme/customizations/navigation.js +1 -1
- package/dist/theme/theme-primitives.js +1 -1
- package/dist/{useMobilePicker-BKb9wDk9.js → useMobilePicker-BV-ABj4C.js} +75 -77
- package/dist/{useTheme-DQFlX-BU.js → useTheme-B5czKfC4.js} +1 -1
- package/dist/{useThemeProps-DI2LSvKR.js → useThemeProps-DqA5BinV.js} +1 -1
- package/dist/{warning-DRu3W3_g.js → warning-BCwEnWrE.js} +3 -3
- package/package.json +1 -1
- package/dist/DefaultPropsProvider-CoEfFcSh.js +0 -56
- package/dist/GlobalStyles-CpyAg53D.js +0 -59
- package/dist/defaultTheme-QdH8_nrP.js +0 -5
- package/dist/index-C8hHiHry.js +0 -33
- package/dist/index-bBtpkEYO.js +0 -44
- package/dist/s-theme-provider/use-theme.d.ts +0 -51
- package/dist/s-theme-provider/use-theme.js +0 -670
- package/dist/useId-CK6Kn3Tn.js +0 -21
package/dist/index-bBtpkEYO.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import "react";
|
|
2
|
-
import { j as e } from "./jsx-runtime-OVHDjVDe.js";
|
|
3
|
-
import { e as s } from "./extendSxProp-BDhPgeA-.js";
|
|
4
|
-
import { P as o } from "./createTheme-CSzTQZIR.js";
|
|
5
|
-
import { d as a } from "./defaultTheme-QdH8_nrP.js";
|
|
6
|
-
import { T as i } from "./identifier-BKLqN993.js";
|
|
7
|
-
import { G as m } from "./GlobalStyles-CpyAg53D.js";
|
|
8
|
-
function t(r) {
|
|
9
|
-
return /* @__PURE__ */ e.jsx(m, {
|
|
10
|
-
...r,
|
|
11
|
-
defaultTheme: a,
|
|
12
|
-
themeId: i
|
|
13
|
-
});
|
|
14
|
-
}
|
|
15
|
-
process.env.NODE_ENV !== "production" && (t.propTypes = {
|
|
16
|
-
// ┌────────────────────────────── Warning ──────────────────────────────┐
|
|
17
|
-
// │ These PropTypes are generated from the TypeScript type definitions. │
|
|
18
|
-
// │ To update them, edit the d.ts file and run `pnpm proptypes`. │
|
|
19
|
-
// └─────────────────────────────────────────────────────────────────────┘
|
|
20
|
-
/**
|
|
21
|
-
* The styles you want to apply globally.
|
|
22
|
-
*/
|
|
23
|
-
styles: o.oneOfType([o.array, o.func, o.number, o.object, o.string, o.bool])
|
|
24
|
-
});
|
|
25
|
-
function T(r) {
|
|
26
|
-
return function(n) {
|
|
27
|
-
return (
|
|
28
|
-
// Pigment CSS `globalCss` support callback with theme inside an object but `GlobalStyles` support theme as a callback value.
|
|
29
|
-
/* @__PURE__ */ e.jsx(t, {
|
|
30
|
-
styles: typeof r == "function" ? (p) => r({
|
|
31
|
-
theme: p,
|
|
32
|
-
...n
|
|
33
|
-
}) : r
|
|
34
|
-
})
|
|
35
|
-
);
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
function E() {
|
|
39
|
-
return s;
|
|
40
|
-
}
|
|
41
|
-
export {
|
|
42
|
-
T as g,
|
|
43
|
-
E as i
|
|
44
|
-
};
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Type definition for theme modes
|
|
3
|
-
*/
|
|
4
|
-
export type SThemeMode = 'light' | 'dark' | 'system';
|
|
5
|
-
/**
|
|
6
|
-
* Custom hook for theme management in SoloStylist UI Kit
|
|
7
|
-
*
|
|
8
|
-
* This hook provides easy access to the current theme mode and methods
|
|
9
|
-
* to change the theme throughout the entire application.
|
|
10
|
-
*
|
|
11
|
-
* @returns Object containing theme mode, setter, and utility methods
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* ```tsx
|
|
15
|
-
* import { useSTheme } from '@solostylist/ui-kit/s-theme-provider';
|
|
16
|
-
*
|
|
17
|
-
* function MyComponent() {
|
|
18
|
-
* const { mode, setMode, isDark, isLight, toggleMode } = useSTheme();
|
|
19
|
-
*
|
|
20
|
-
* return (
|
|
21
|
-
* <div>
|
|
22
|
-
* <p>Current mode: {mode}</p>
|
|
23
|
-
* <button onClick={() => setMode('dark')}>Dark Mode</button>
|
|
24
|
-
* <button onClick={() => setMode('light')}>Light Mode</button>
|
|
25
|
-
* <button onClick={toggleMode}>Toggle Theme</button>
|
|
26
|
-
* </div>
|
|
27
|
-
* );
|
|
28
|
-
* }
|
|
29
|
-
* ```
|
|
30
|
-
*/
|
|
31
|
-
export declare const useSTheme: () => {
|
|
32
|
-
/** Current theme mode (includes 'system') */
|
|
33
|
-
mode: SThemeMode;
|
|
34
|
-
/** Resolved theme mode (system resolves to light/dark) */
|
|
35
|
-
resolvedMode: "light" | "dark";
|
|
36
|
-
/** System preference mode */
|
|
37
|
-
systemMode: "light" | "dark";
|
|
38
|
-
/** Set theme mode */
|
|
39
|
-
setMode: (newMode: SThemeMode) => void;
|
|
40
|
-
/** Is current theme dark? */
|
|
41
|
-
isDark: boolean;
|
|
42
|
-
/** Is current theme light? */
|
|
43
|
-
isLight: boolean;
|
|
44
|
-
/** Is using system preference? */
|
|
45
|
-
isSystem: boolean;
|
|
46
|
-
/** Toggle between light and dark (skips system) */
|
|
47
|
-
toggleMode: () => void;
|
|
48
|
-
/** Cycle through all modes: light → dark → system → light */
|
|
49
|
-
cycleMode: () => void;
|
|
50
|
-
};
|
|
51
|
-
export default useSTheme;
|