@ghostly-solutions/ui 0.3.1 → 0.3.2
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/{chunk-rd0k3j0c.js → chunk-5pcmmk0e.js} +2 -2
- package/dist/components/accordion/accordion.d.ts +2 -2
- package/dist/components/alert/alert.d.ts +1 -1
- package/dist/components/alert-dialog/alert-dialog.d.ts +1 -1
- package/dist/components/avatar/avatar.d.ts +1 -1
- package/dist/components/badge/badge.d.ts +2 -2
- package/dist/components/breadcrumb/breadcrumb.d.ts +3 -3
- package/dist/components/button/button.d.ts +3 -3
- package/dist/components/calendar/calendar.d.ts +8 -8
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/code-block/code-block.d.ts +8 -8
- package/dist/components/command/command.d.ts +1 -1
- package/dist/components/context-menu/context-menu.d.ts +5 -5
- package/dist/components/dialog/dialog.d.ts +1 -1
- package/dist/components/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/components/empty-state/empty-state.d.ts +4 -4
- package/dist/components/error-boundary/error-boundary.d.ts +7 -7
- package/dist/components/file-upload/file-upload.d.ts +5 -5
- package/dist/components/form-field/form-field.d.ts +1 -1
- package/dist/components/hover-card/hover-card.d.ts +1 -1
- package/dist/components/kbd/kbd.d.ts +1 -1
- package/dist/components/label/label.d.ts +1 -1
- package/dist/components/loader/index.d.ts +2 -0
- package/dist/components/loader/index.d.ts.map +1 -0
- package/dist/components/loader/loader.d.ts +5 -0
- package/dist/components/loader/loader.d.ts.map +1 -0
- package/dist/components/multiselect/multiselect.d.ts +1 -1
- package/dist/components/navbar/navbar.d.ts +10 -10
- package/dist/components/navigation-menu/navigation-menu.d.ts +2 -2
- package/dist/components/otp-input/otp-input.d.ts +6 -6
- package/dist/components/pagination/pagination.d.ts +2 -2
- package/dist/components/popover/popover.d.ts +1 -1
- package/dist/components/progress/progress.d.ts +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/segmented-control/segmented-control.d.ts +3 -3
- package/dist/components/sidebar/sidebar.d.ts +12 -12
- package/dist/components/skeleton/skeleton.d.ts +3 -3
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/spotlight/spotlight.d.ts +1 -1
- package/dist/components/stat-card/stat-card.d.ts +1 -1
- package/dist/components/stepper/stepper.d.ts +4 -4
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/table/table.d.ts +3 -3
- package/dist/components/tabs/tabs.d.ts +2 -2
- package/dist/components/textarea/textarea.d.ts +1 -1
- package/dist/components/theme-script/index.d.ts +2 -0
- package/dist/components/theme-script/index.d.ts.map +1 -0
- package/dist/components/theme-script/theme-script.d.ts +17 -0
- package/dist/components/theme-script/theme-script.d.ts.map +1 -0
- package/dist/components/timeline/timeline.d.ts +7 -7
- package/dist/components/toast/toast.d.ts +2 -2
- package/dist/components/toggle/toggle.d.ts +1 -1
- package/dist/components/toolbar/toolbar.d.ts +2 -2
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/ui-provider/index.d.ts +2 -0
- package/dist/components/ui-provider/index.d.ts.map +1 -0
- package/dist/components/ui-provider/ui-provider.d.ts +18 -0
- package/dist/components/ui-provider/ui-provider.d.ts.map +1 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -3
- package/dist/lib/density.d.ts +6 -8
- package/dist/lib/density.d.ts.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/theme-constants.d.ts +4 -1
- package/dist/lib/theme-constants.d.ts.map +1 -1
- package/dist/server.d.ts +2 -1
- package/dist/server.d.ts.map +1 -1
- package/dist/server.js +1 -1
- package/package.json +1 -1
package/dist/lib/density.d.ts
CHANGED
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { type ReactNode } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
type DensityValue = (typeof Density)[keyof typeof Density];
|
|
7
|
-
declare const DensityContext: import("react").Context<DensityValue>;
|
|
2
|
+
import type { Size } from "./types";
|
|
3
|
+
type DensityValue = Size;
|
|
4
|
+
declare const DENSITY_DEFAULT: DensityValue;
|
|
5
|
+
declare const DensityContext: import("react").Context<Size>;
|
|
8
6
|
interface DensityProviderProps {
|
|
9
7
|
density: DensityValue;
|
|
10
8
|
children: ReactNode;
|
|
@@ -15,6 +13,6 @@ declare const DensityProvider: {
|
|
|
15
13
|
};
|
|
16
14
|
declare const useDensity: () => DensityValue;
|
|
17
15
|
declare function useDensitySize<T extends string>(size: T): T;
|
|
18
|
-
declare function useDensitySize<T extends string>(size: T | undefined): T
|
|
19
|
-
export {
|
|
16
|
+
declare function useDensitySize<T extends string>(size: T | undefined): T;
|
|
17
|
+
export { DENSITY_DEFAULT, DensityContext, DensityProvider, type DensityProviderProps, type DensityValue, useDensity, useDensitySize, };
|
|
20
18
|
//# sourceMappingURL=density.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"density.d.ts","sourceRoot":"","sources":["../../src/lib/density.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuC,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"density.d.ts","sourceRoot":"","sources":["../../src/lib/density.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAuC,KAAK,SAAS,EAAc,MAAM,OAAO,CAAC;AACxF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAEpC,KAAK,YAAY,GAAG,IAAI,CAAC;AAEzB,QAAA,MAAM,eAAe,EAAE,YAAmB,CAAC;AAE3C,QAAA,MAAM,cAAc,+BAAoD,CAAC;AAEzE,UAAU,oBAAoB;IAC7B,OAAO,EAAE,YAAY,CAAC;IACtB,QAAQ,EAAE,SAAS,CAAC;CACpB;AAED,QAAA,MAAM,eAAe;4BAA2B,oBAAoB;;CAEnE,CAAC;AAIF,QAAA,MAAM,UAAU,QAAO,YAEtB,CAAC;AAEF,iBAAS,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;AACtD,iBAAS,cAAc,CAAC,CAAC,SAAS,MAAM,EAAE,IAAI,EAAE,CAAC,GAAG,SAAS,GAAG,CAAC,CAAC;AAOlE,OAAO,EACN,eAAe,EACf,cAAc,EACd,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,UAAU,EACV,cAAc,GACd,CAAC"}
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -3,6 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export { type ClassValue, cn } from "./cn";
|
|
5
5
|
export { composeRefs, createContext, createOptionalContext, useComposedRefs } from "./compose";
|
|
6
|
-
export {
|
|
6
|
+
export { DENSITY_DEFAULT, DensityProvider, type DensityProviderProps, type DensityValue, useDensity, useDensitySize, } from "./density";
|
|
7
7
|
export * from "./types";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/lib/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,UAAU,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC/F,OAAO,EACN,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,KAAK,UAAU,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAC/F,OAAO,EACN,eAAe,EACf,eAAe,EACf,KAAK,oBAAoB,EACzB,KAAK,YAAY,EACjB,UAAU,EACV,cAAc,GACd,MAAM,WAAW,CAAC;AACnB,cAAc,SAAS,CAAC"}
|
|
@@ -7,7 +7,10 @@ type ColorSchemeValue = (typeof ColorScheme)[keyof typeof ColorScheme];
|
|
|
7
7
|
type ResolvedColorScheme = "light" | "dark";
|
|
8
8
|
declare const THEME_ATTR = "data-gs-theme";
|
|
9
9
|
declare const DARK_CLASS = "dark";
|
|
10
|
+
declare const STORAGE_VERSION = 1;
|
|
11
|
+
declare const STORAGE_PREFIX = "gs";
|
|
10
12
|
declare const STORAGE_THEME_KEY = "gs-theme";
|
|
11
13
|
declare const STORAGE_COLOR_SCHEME_KEY = "gs-color-scheme";
|
|
12
|
-
|
|
14
|
+
declare const STORAGE_DENSITY_KEY = "gs-density";
|
|
15
|
+
export { ColorScheme, DARK_CLASS, STORAGE_COLOR_SCHEME_KEY, STORAGE_DENSITY_KEY, STORAGE_PREFIX, STORAGE_THEME_KEY, STORAGE_VERSION, THEME_ATTR, type ColorSchemeValue, type ResolvedColorScheme, };
|
|
13
16
|
//# sourceMappingURL=theme-constants.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-constants.d.ts","sourceRoot":"","sources":["../../src/lib/theme-constants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;CAIP,CAAC;AAEX,KAAK,gBAAgB,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AACvE,KAAK,mBAAmB,GAAG,OAAO,GAAG,MAAM,CAAC;AAE5C,QAAA,MAAM,UAAU,kBAAkB,CAAC;AACnC,QAAA,MAAM,UAAU,SAAS,CAAC;AAC1B,QAAA,MAAM,iBAAiB,
|
|
1
|
+
{"version":3,"file":"theme-constants.d.ts","sourceRoot":"","sources":["../../src/lib/theme-constants.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,WAAW;;;;CAIP,CAAC;AAEX,KAAK,gBAAgB,GAAG,CAAC,OAAO,WAAW,CAAC,CAAC,MAAM,OAAO,WAAW,CAAC,CAAC;AACvE,KAAK,mBAAmB,GAAG,OAAO,GAAG,MAAM,CAAC;AAE5C,QAAA,MAAM,UAAU,kBAAkB,CAAC;AACnC,QAAA,MAAM,UAAU,SAAS,CAAC;AAE1B,QAAA,MAAM,eAAe,IAAI,CAAC;AAC1B,QAAA,MAAM,cAAc,OAAO,CAAC;AAC5B,QAAA,MAAM,iBAAiB,aAA4B,CAAC;AACpD,QAAA,MAAM,wBAAwB,oBAAmC,CAAC;AAClE,QAAA,MAAM,mBAAmB,eAA8B,CAAC;AAExD,OAAO,EACN,WAAW,EACX,UAAU,EACV,wBAAwB,EACxB,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,UAAU,EACV,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,GACxB,CAAC"}
|
package/dist/server.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ export { type ClassValue, cn } from "./lib/cn";
|
|
|
3
3
|
export { composeRefs, createContext, createOptionalContext } from "./lib/compose";
|
|
4
4
|
export { formatHotkey, formatHotkeyTokens, type HotkeyDefinition, matchHotkey, parseHotkey, } from "./lib/hotkey";
|
|
5
5
|
export { detectPlatform, type PlatformInfo, type PlatformOS } from "./lib/platform";
|
|
6
|
-
export { ColorScheme, type ColorSchemeValue, type ResolvedColorScheme, } from "./lib/theme-constants";
|
|
6
|
+
export { ColorScheme, type ColorSchemeValue, DARK_CLASS, type ResolvedColorScheme, STORAGE_COLOR_SCHEME_KEY, STORAGE_DENSITY_KEY, STORAGE_PREFIX, STORAGE_THEME_KEY, STORAGE_VERSION, THEME_ATTR, } from "./lib/theme-constants";
|
|
7
7
|
export { getThemeInitScript, type ThemeScriptOptions } from "./lib/theme-script";
|
|
8
|
+
export { ThemeScript, type ThemeScriptProps } from "./components/theme-script";
|
|
8
9
|
export type { Align, BaseProps, ControlSize, ControlStatus, ControlVariant, DisableableProps, EmphasisLevel, LoadableProps, MotionLevel, Orientation, PolymorphicComponentProps, PolymorphicComponentPropsWithRef, Side, Size, SlotProps, Status, SurfaceStyle, Variant, } from "./lib/types";
|
|
9
10
|
//# sourceMappingURL=server.d.ts.map
|
package/dist/server.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,KAAK,UAAU,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EACN,YAAY,EACZ,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,WAAW,EACX,WAAW,GACX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACpF,OAAO,EACN,WAAW,EACX,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,
|
|
1
|
+
{"version":3,"file":"server.d.ts","sourceRoot":"","sources":["../src/server.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,KAAK,UAAU,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAC/C,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAClF,OAAO,EACN,YAAY,EACZ,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,WAAW,EACX,WAAW,GACX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACpF,OAAO,EACN,WAAW,EACX,KAAK,gBAAgB,EACrB,UAAU,EACV,KAAK,mBAAmB,EACxB,wBAAwB,EACxB,mBAAmB,EACnB,cAAc,EACd,iBAAiB,EACjB,eAAe,EACf,UAAU,GACV,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,KAAK,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,EAAE,WAAW,EAAE,KAAK,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC/E,YAAY,EACX,KAAK,EACL,SAAS,EACT,WAAW,EACX,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,aAAa,EACb,aAAa,EACb,WAAW,EACX,WAAW,EACX,yBAAyB,EACzB,gCAAgC,EAChC,IAAI,EACJ,IAAI,EACJ,SAAS,EACT,MAAM,EACN,YAAY,EACZ,OAAO,GACP,MAAM,aAAa,CAAC"}
|
package/dist/server.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as E,b as C,d,e as g,f as u,g as O,h as _,i as P,j as R,k as s,l as a,m as n,n as x,o as A,p as c,q as l,r as H}from"./chunk-5pcmmk0e.js";import{cva as $}from"class-variance-authority";function S(t={}){let{defaultTheme:o="ghostly-solutions",defaultColorScheme:r=s.system,storageThemeKey:i=c,storageColorSchemeKey:p=l,attribute:m=a,darkClass:e=n}=t;return`(function(){try{var d=document.documentElement;var t=localStorage.getItem("${i}")||"${o}";var c=localStorage.getItem("${p}")||"${r}";var r=c;if(c==="system"){r=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}d.setAttribute("${m}",t);if(r==="dark"){d.classList.add("${e}")}else{d.classList.remove("${e}")}}catch(e){}})()`}import{createElement as y}from"react";function h({id:t="gs-theme-init",nonce:o,defaultTheme:r,defaultColorScheme:i,storageThemeKey:p,storageColorSchemeKey:m,attribute:e,darkClass:T}){let f=S({defaultTheme:r,defaultColorScheme:i,storageThemeKey:p,storageColorSchemeKey:m,attribute:e,darkClass:T});return y("script",{id:t,nonce:o,dangerouslySetInnerHTML:{__html:f}})}h.displayName="ThemeScript";export{O as parseHotkey,_ as matchHotkey,S as getThemeInitScript,R as formatHotkeyTokens,P as formatHotkey,u as detectPlatform,$ as cva,g as createOptionalContext,d as createContext,C as composeRefs,E as cn,h as ThemeScript,a as THEME_ATTR,x as STORAGE_VERSION,c as STORAGE_THEME_KEY,A as STORAGE_PREFIX,H as STORAGE_DENSITY_KEY,l as STORAGE_COLOR_SCHEME_KEY,n as DARK_CLASS,s as ColorScheme};
|