@tydavidson/design-system 1.1.16 → 1.1.17
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/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -10
- package/dist/index.mjs.map +1 -1
- package/dist/themes/index.d.mts +12 -53
- package/dist/themes/index.d.ts +12 -53
- package/dist/themes/index.js +3 -12
- package/dist/themes/index.js.map +1 -1
- package/dist/themes/index.mjs +4 -10
- package/dist/themes/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
3
3
|
import React__default from 'react';
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
5
5
|
import { ThemeColor } from './themes/index.mjs';
|
6
|
-
export { ClientThemeProvider, ClientThemeToggle, ComponentVariant,
|
6
|
+
export { ClientThemeProvider, ClientThemeToggle, ComponentVariant, ThemeProvider, ThemeProviderNoSSR, getColorVariantClasses, isDarkTheme, mapColorToShadcnVariant, mapVariantToShadcnVariant, useThemeServer } from './themes/index.mjs';
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
8
8
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
9
9
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
package/dist/index.d.ts
CHANGED
@@ -3,7 +3,7 @@ import * as React from 'react';
|
|
3
3
|
import React__default from 'react';
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
5
5
|
import { ThemeColor } from './themes/index.js';
|
6
|
-
export { ClientThemeProvider, ClientThemeToggle, ComponentVariant,
|
6
|
+
export { ClientThemeProvider, ClientThemeToggle, ComponentVariant, ThemeProvider, ThemeProviderNoSSR, getColorVariantClasses, isDarkTheme, mapColorToShadcnVariant, mapVariantToShadcnVariant, useThemeServer } from './themes/index.js';
|
7
7
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
8
8
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
9
9
|
import * as TogglePrimitive from '@radix-ui/react-toggle';
|
package/dist/index.js
CHANGED
@@ -84,11 +84,6 @@ function useThemeServer() {
|
|
84
84
|
isDark: false
|
85
85
|
};
|
86
86
|
}
|
87
|
-
function ThemeContextProvider({
|
88
|
-
children
|
89
|
-
}) {
|
90
|
-
return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children });
|
91
|
-
}
|
92
87
|
function useTheme() {
|
93
88
|
const [themeData, setThemeData] = React2__namespace.useState({
|
94
89
|
theme: "system",
|
@@ -1930,10 +1925,6 @@ function ThemeProviderNoSSR({
|
|
1930
1925
|
}
|
1931
1926
|
return /* @__PURE__ */ jsxRuntime.jsx(ThemeProvider, { ...props, children });
|
1932
1927
|
}
|
1933
|
-
|
1934
|
-
// src/themes/index.ts
|
1935
|
-
init_theme_context();
|
1936
|
-
init_theme_toggle2();
|
1937
1928
|
function ClientThemeProvider({
|
1938
1929
|
children,
|
1939
1930
|
...props
|
@@ -1994,6 +1985,9 @@ function ClientThemeToggle(props) {
|
|
1994
1985
|
return /* @__PURE__ */ jsxRuntime.jsx(ThemeToggleComponent, { ...props });
|
1995
1986
|
}
|
1996
1987
|
|
1988
|
+
// src/themes/index.ts
|
1989
|
+
init_theme_context();
|
1990
|
+
|
1997
1991
|
// src/lib/theme-utils.ts
|
1998
1992
|
var mapColorToShadcnVariant = (color) => {
|
1999
1993
|
switch (color) {
|
@@ -2128,10 +2122,8 @@ exports.SheetTitle = SheetTitle;
|
|
2128
2122
|
exports.SheetTrigger = SheetTrigger;
|
2129
2123
|
exports.Slider = Slider;
|
2130
2124
|
exports.Text = Text;
|
2131
|
-
exports.ThemeContextProvider = ThemeContextProvider;
|
2132
2125
|
exports.ThemeProvider = ThemeProvider;
|
2133
2126
|
exports.ThemeProviderNoSSR = ThemeProviderNoSSR;
|
2134
|
-
exports.ThemeToggle = ThemeToggle;
|
2135
2127
|
exports.Toggle = Toggle;
|
2136
2128
|
exports.ToggleGroup = ToggleGroup;
|
2137
2129
|
exports.ToggleGroupItem = ToggleGroupItem;
|
@@ -2150,7 +2142,6 @@ exports.shadows = shadows;
|
|
2150
2142
|
exports.spacing = spacing;
|
2151
2143
|
exports.tokens = tokens;
|
2152
2144
|
exports.typography = typography;
|
2153
|
-
exports.useTheme = useTheme;
|
2154
2145
|
exports.useThemeServer = useThemeServer;
|
2155
2146
|
//# sourceMappingURL=index.js.map
|
2156
2147
|
//# sourceMappingURL=index.js.map
|