@nice2dev/ui-core 1.0.10
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/CHANGELOG.md +63 -0
- package/README.md +62 -0
- package/dist/core/NiceInlineHelp.d.ts +69 -0
- package/dist/core/NiceInlineHelp.d.ts.map +1 -0
- package/dist/core/NiceThemeProvider.d.ts +31 -0
- package/dist/core/NiceThemeProvider.d.ts.map +1 -0
- package/dist/core/NiceThemeVariants.d.ts +55 -0
- package/dist/core/NiceThemeVariants.d.ts.map +1 -0
- package/dist/core/NiceUserPreferences.d.ts +304 -0
- package/dist/core/NiceUserPreferences.d.ts.map +1 -0
- package/dist/core/a11y-advanced.d.ts +157 -0
- package/dist/core/a11y-advanced.d.ts.map +1 -0
- package/dist/core/a11y.d.ts +299 -0
- package/dist/core/a11y.d.ts.map +1 -0
- package/dist/core/access-control.d.ts +59 -0
- package/dist/core/access-control.d.ts.map +1 -0
- package/dist/core/adapters.d.ts +178 -0
- package/dist/core/adapters.d.ts.map +1 -0
- package/dist/core/ai.d.ts +191 -0
- package/dist/core/ai.d.ts.map +1 -0
- package/dist/core/animations.d.ts +48 -0
- package/dist/core/animations.d.ts.map +1 -0
- package/dist/core/colorBlind.d.ts +22 -0
- package/dist/core/colorBlind.d.ts.map +1 -0
- package/dist/core/datasource-advanced.d.ts +261 -0
- package/dist/core/datasource-advanced.d.ts.map +1 -0
- package/dist/core/datasource-aggregation.d.ts +221 -0
- package/dist/core/datasource-aggregation.d.ts.map +1 -0
- package/dist/core/datasource-hooks.d.ts +93 -0
- package/dist/core/datasource-hooks.d.ts.map +1 -0
- package/dist/core/datasource-offline.d.ts +201 -0
- package/dist/core/datasource-offline.d.ts.map +1 -0
- package/dist/core/datasource.d.ts +181 -0
- package/dist/core/datasource.d.ts.map +1 -0
- package/dist/core/displayMode.d.ts +46 -0
- package/dist/core/displayMode.d.ts.map +1 -0
- package/dist/core/displayStyle.d.ts +79 -0
- package/dist/core/displayStyle.d.ts.map +1 -0
- package/dist/core/helpContext.d.ts +97 -0
- package/dist/core/helpContext.d.ts.map +1 -0
- package/dist/core/hooks.d.ts +149 -0
- package/dist/core/hooks.d.ts.map +1 -0
- package/dist/core/i18n.d.ts +10 -0
- package/dist/core/i18n.d.ts.map +1 -0
- package/dist/core/i18nDictionaries.d.ts +4 -0
- package/dist/core/i18nDictionaries.d.ts.map +1 -0
- package/dist/core/icons.d.ts +45 -0
- package/dist/core/icons.d.ts.map +1 -0
- package/dist/core/icuMessageFormat.d.ts +10 -0
- package/dist/core/icuMessageFormat.d.ts.map +1 -0
- package/dist/core/leak-detector.d.ts +263 -0
- package/dist/core/leak-detector.d.ts.map +1 -0
- package/dist/core/omniverkTypes.d.ts +164 -0
- package/dist/core/omniverkTypes.d.ts.map +1 -0
- package/dist/core/pluginSystem.d.ts +97 -0
- package/dist/core/pluginSystem.d.ts.map +1 -0
- package/dist/core/profiling.d.ts +276 -0
- package/dist/core/profiling.d.ts.map +1 -0
- package/dist/core/responsive.d.ts +107 -0
- package/dist/core/responsive.d.ts.map +1 -0
- package/dist/core/rtl.d.ts +47 -0
- package/dist/core/rtl.d.ts.map +1 -0
- package/dist/core/sanitizeHtml.d.ts +16 -0
- package/dist/core/sanitizeHtml.d.ts.map +1 -0
- package/dist/core/testing.d.ts +107 -0
- package/dist/core/testing.d.ts.map +1 -0
- package/dist/core/theme.d.ts +213 -0
- package/dist/core/theme.d.ts.map +1 -0
- package/dist/core/themeGallery.d.ts +104 -0
- package/dist/core/themeGallery.d.ts.map +1 -0
- package/dist/core/themePacks.d.ts +53 -0
- package/dist/core/themePacks.d.ts.map +1 -0
- package/dist/core/themePacksExtended.d.ts +59 -0
- package/dist/core/themePacksExtended.d.ts.map +1 -0
- package/dist/core/themePresets.d.ts +10 -0
- package/dist/core/themePresets.d.ts.map +1 -0
- package/dist/core/themeVariants.d.ts +204 -0
- package/dist/core/themeVariants.d.ts.map +1 -0
- package/dist/core/touch.d.ts +208 -0
- package/dist/core/touch.d.ts.map +1 -0
- package/dist/core/traceless.d.ts +461 -0
- package/dist/core/traceless.d.ts.map +1 -0
- package/dist/core/types.d.ts +105 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/useThemeIsDark.d.ts +15 -0
- package/dist/core/useThemeIsDark.d.ts.map +1 -0
- package/dist/index.cjs +128 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +49 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.mjs +16881 -0
- package/dist/index.mjs.map +1 -0
- package/dist/performance/concurrent.d.ts +190 -0
- package/dist/performance/concurrent.d.ts.map +1 -0
- package/dist/performance/images.d.ts +189 -0
- package/dist/performance/images.d.ts.map +1 -0
- package/dist/performance/index.d.ts +17 -0
- package/dist/performance/index.d.ts.map +1 -0
- package/dist/performance/memory.d.ts +223 -0
- package/dist/performance/memory.d.ts.map +1 -0
- package/dist/performance/virtualization.d.ts +166 -0
- package/dist/performance/virtualization.d.ts.map +1 -0
- package/dist/performance/workers.d.ts +125 -0
- package/dist/performance/workers.d.ts.map +1 -0
- package/dist/viewSchema.d.ts +81 -0
- package/dist/viewSchema.d.ts.map +1 -0
- package/package.json +61 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Generate consistent data-testid attributes.
|
|
4
|
+
*
|
|
5
|
+
* @example
|
|
6
|
+
* testId('nice-button', 'submit') // 'nice-button-submit'
|
|
7
|
+
* testId('nice-datagrid', 'row', 3) // 'nice-datagrid-row-3'
|
|
8
|
+
*/
|
|
9
|
+
export declare function testId(...parts: (string | number)[]): string;
|
|
10
|
+
/**
|
|
11
|
+
* Selectors for querying Nice2Dev components in tests.
|
|
12
|
+
* Every nice component renders a data-testid by convention.
|
|
13
|
+
*
|
|
14
|
+
* @example
|
|
15
|
+
* import { niceSelectors } from '@nice2dev/ui/testing';
|
|
16
|
+
* const btn = screen.getByTestId(niceSelectors.button('submit'));
|
|
17
|
+
* const grid = screen.getByTestId(niceSelectors.dataGrid());
|
|
18
|
+
*/
|
|
19
|
+
export declare const niceSelectors: {
|
|
20
|
+
button: (id?: string) => string;
|
|
21
|
+
textInput: (id?: string) => string;
|
|
22
|
+
numberInput: (id?: string) => string;
|
|
23
|
+
select: (id?: string) => string;
|
|
24
|
+
checkbox: (id?: string) => string;
|
|
25
|
+
toggle: (id?: string) => string;
|
|
26
|
+
datePicker: (id?: string) => string;
|
|
27
|
+
dataGrid: (id?: string) => string;
|
|
28
|
+
table: (id?: string) => string;
|
|
29
|
+
list: (id?: string) => string;
|
|
30
|
+
treeView: (id?: string) => string;
|
|
31
|
+
modal: (id?: string) => string;
|
|
32
|
+
drawer: (id?: string) => string;
|
|
33
|
+
form: (id?: string) => string;
|
|
34
|
+
tabs: (id?: string) => string;
|
|
35
|
+
menu: (id?: string) => string;
|
|
36
|
+
chart: (id?: string) => string;
|
|
37
|
+
scheduler: (id?: string) => string;
|
|
38
|
+
};
|
|
39
|
+
export interface NiceTestWrapperProps {
|
|
40
|
+
children: React.ReactNode;
|
|
41
|
+
/** Optional theme to apply */
|
|
42
|
+
theme?: Record<string, unknown>;
|
|
43
|
+
/** Direction for RTL testing */
|
|
44
|
+
direction?: 'ltr' | 'rtl';
|
|
45
|
+
/** Custom translation function */
|
|
46
|
+
t?: (key: string, defaultValue: string) => string;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Wraps components with all necessary providers for testing.
|
|
50
|
+
* Creates a clean environment with i18n, theme, and a11y contexts.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* render(<NiceButton>Click</NiceButton>, { wrapper: NiceTestWrapper });
|
|
54
|
+
*
|
|
55
|
+
* // Or with options:
|
|
56
|
+
* const Wrapper = ({ children }) => (
|
|
57
|
+
* <NiceTestWrapper direction="rtl">{children}</NiceTestWrapper>
|
|
58
|
+
* );
|
|
59
|
+
* render(<NiceButton>Click</NiceButton>, { wrapper: Wrapper });
|
|
60
|
+
*/
|
|
61
|
+
export declare const NiceTestWrapper: React.FC<NiceTestWrapperProps>;
|
|
62
|
+
/**
|
|
63
|
+
* Simulate keyboard events for testing keyboard navigation.
|
|
64
|
+
*
|
|
65
|
+
* @example
|
|
66
|
+
* const el = screen.getByTestId('nice-select');
|
|
67
|
+
* simulateKeyboard(el, 'ArrowDown');
|
|
68
|
+
* simulateKeyboard(el, 'Enter');
|
|
69
|
+
*/
|
|
70
|
+
export declare function simulateKeyboard(element: HTMLElement, key: string, options?: Partial<KeyboardEventInit>): void;
|
|
71
|
+
/**
|
|
72
|
+
* Simulate typing into an input element.
|
|
73
|
+
* Dispatches input and change events as @testing-library would.
|
|
74
|
+
*/
|
|
75
|
+
export declare function simulateType(element: HTMLInputElement | HTMLTextAreaElement, text: string): void;
|
|
76
|
+
export interface MockDataSourceOptions<T> {
|
|
77
|
+
data: T[];
|
|
78
|
+
delay?: number;
|
|
79
|
+
keyField?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* Create a mock data source for testing data-bound components.
|
|
83
|
+
*
|
|
84
|
+
* @example
|
|
85
|
+
* const ds = createMockDataSource({
|
|
86
|
+
* data: [{ id: 1, name: 'Alice' }, { id: 2, name: 'Bob' }],
|
|
87
|
+
* });
|
|
88
|
+
* render(<NiceDataGrid dataSource={ds} columns={[...]} />);
|
|
89
|
+
*/
|
|
90
|
+
export declare function createMockDataSource<T extends Record<string, unknown>>(options: MockDataSourceOptions<T>): {
|
|
91
|
+
key: string;
|
|
92
|
+
load: () => Promise<{
|
|
93
|
+
data: T[];
|
|
94
|
+
totalCount: number;
|
|
95
|
+
}>;
|
|
96
|
+
insert: (item: T) => Promise<T>;
|
|
97
|
+
update: (key: unknown, values: Partial<T>) => Promise<void>;
|
|
98
|
+
remove: (key: unknown) => Promise<void>;
|
|
99
|
+
getData: () => T[];
|
|
100
|
+
reset: () => void;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* Check if element has proper ARIA attributes for a11y compliance.
|
|
104
|
+
* Returns an array of violations (empty = passed).
|
|
105
|
+
*/
|
|
106
|
+
export declare function checkAriaCompliance(element: HTMLElement): string[];
|
|
107
|
+
//# sourceMappingURL=testing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../src/core/testing.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B;;;;;;GAMG;AACH,wBAAgB,MAAM,CAAC,GAAG,KAAK,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,GAAG,MAAM,CAE5D;AAID;;;;;;;;GAQG;AACH,eAAO,MAAM,aAAa;kBACV,MAAM;qBACH,MAAM;uBACJ,MAAM;kBACX,MAAM;oBACJ,MAAM;kBACR,MAAM;sBACF,MAAM;oBACR,MAAM;iBACT,MAAM;gBACP,MAAM;oBACF,MAAM;iBACT,MAAM;kBACL,MAAM;gBACR,MAAM;gBACN,MAAM;gBACN,MAAM;iBACL,MAAM;qBACF,MAAM;CACxB,CAAC;AAIF,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,gCAAgC;IAChC,SAAS,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC;IAC1B,kCAAkC;IAClC,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,KAAK,MAAM,CAAC;CACnD;AAED;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CASxD,CAAC;AAMJ;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,WAAW,EACpB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,GACnC,IAAI,CAQN;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,gBAAgB,GAAG,mBAAmB,EAAE,IAAI,EAAE,MAAM,GAAG,IAAI,CAUhG;AAID,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACtC,IAAI,EAAE,CAAC,EAAE,CAAC;IACV,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpE,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC;;;;;;mBAaV,CAAC;kBAIF,OAAO,UAAU,OAAO,CAAC,CAAC,CAAC;kBAM3B,OAAO;;;EAQ9B;AAID;;;GAGG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,WAAW,GAAG,MAAM,EAAE,CA6ClE"}
|
|
@@ -0,0 +1,213 @@
|
|
|
1
|
+
/** Brand / semantic color palette. */
|
|
2
|
+
export interface NiceThemeColors {
|
|
3
|
+
primary: string;
|
|
4
|
+
primaryHover?: string;
|
|
5
|
+
success: string;
|
|
6
|
+
warning?: string;
|
|
7
|
+
error: string;
|
|
8
|
+
info?: string;
|
|
9
|
+
/** Accent / secondary brand color */
|
|
10
|
+
accent?: string;
|
|
11
|
+
accentHover?: string;
|
|
12
|
+
/** Alias for `accent`. */
|
|
13
|
+
secondary?: string;
|
|
14
|
+
/** Link colors */
|
|
15
|
+
link?: string;
|
|
16
|
+
linkHover?: string;
|
|
17
|
+
/** Focus ring color */
|
|
18
|
+
focus?: string;
|
|
19
|
+
/** Overlay / backdrop color (e.g. 'rgba(0,0,0,0.5)') */
|
|
20
|
+
overlay?: string;
|
|
21
|
+
/** Surface variant for panels / cards */
|
|
22
|
+
surface?: string;
|
|
23
|
+
surfaceHover?: string;
|
|
24
|
+
/** Disabled state color */
|
|
25
|
+
disabled?: string;
|
|
26
|
+
disabledText?: string;
|
|
27
|
+
}
|
|
28
|
+
/** Surface background colours. */
|
|
29
|
+
export interface NiceThemeBackgrounds {
|
|
30
|
+
primary: string;
|
|
31
|
+
secondary: string;
|
|
32
|
+
tertiary: string;
|
|
33
|
+
hover: string;
|
|
34
|
+
/** Elevated surface (modals, popovers) */
|
|
35
|
+
elevated?: string;
|
|
36
|
+
/** Inset surface (wells, code blocks) */
|
|
37
|
+
inset?: string;
|
|
38
|
+
/** Canvas / root-level body background */
|
|
39
|
+
canvas?: string;
|
|
40
|
+
}
|
|
41
|
+
/** Extended background image / pattern options. */
|
|
42
|
+
export interface NiceThemeBackgroundImage {
|
|
43
|
+
/** Background type */
|
|
44
|
+
type?: 'none' | 'solid' | 'gradient' | 'image' | 'pattern';
|
|
45
|
+
/** CSS gradient string (e.g. 'linear-gradient(135deg, #667eea 0%, #764ba2 100%)') */
|
|
46
|
+
gradient?: string;
|
|
47
|
+
/** Image URL */
|
|
48
|
+
imageUrl?: string;
|
|
49
|
+
/** CSS background-size */
|
|
50
|
+
imageSize?: 'cover' | 'contain' | 'auto' | string;
|
|
51
|
+
/** CSS background-position */
|
|
52
|
+
imagePosition?: string;
|
|
53
|
+
/** CSS background-attachment */
|
|
54
|
+
imageAttachment?: 'scroll' | 'fixed' | 'local';
|
|
55
|
+
/** CSS background-repeat */
|
|
56
|
+
imageRepeat?: 'repeat' | 'no-repeat' | 'repeat-x' | 'repeat-y';
|
|
57
|
+
/** Named SVG pattern (dots, grid, diagonal, cross-hatch, waves, hexagons, triangles, circles, zigzag, noise) */
|
|
58
|
+
pattern?: string;
|
|
59
|
+
/** Pattern / overlay opacity (0-1) */
|
|
60
|
+
opacity?: number;
|
|
61
|
+
/** CSS background-blend-mode */
|
|
62
|
+
blendMode?: string;
|
|
63
|
+
}
|
|
64
|
+
/** Text colour levels. */
|
|
65
|
+
export interface NiceThemeText {
|
|
66
|
+
primary: string;
|
|
67
|
+
secondary: string;
|
|
68
|
+
muted: string;
|
|
69
|
+
/** Inverse text for dark-on-light / light-on-dark */
|
|
70
|
+
inverse?: string;
|
|
71
|
+
/** Text on primary-colored backgrounds */
|
|
72
|
+
onPrimary?: string;
|
|
73
|
+
/** Text on accent-colored backgrounds */
|
|
74
|
+
onAccent?: string;
|
|
75
|
+
}
|
|
76
|
+
/** Border colour and radius presets. */
|
|
77
|
+
export interface NiceThemeBorders {
|
|
78
|
+
color: string;
|
|
79
|
+
radiusSm: string;
|
|
80
|
+
radiusMd: string;
|
|
81
|
+
radiusLg: string;
|
|
82
|
+
radiusXl: string;
|
|
83
|
+
radiusFull: string;
|
|
84
|
+
/** Border width for inputs, cards etc. */
|
|
85
|
+
width?: string;
|
|
86
|
+
/** Focus border color */
|
|
87
|
+
focusColor?: string;
|
|
88
|
+
/** Divider / separator color */
|
|
89
|
+
divider?: string;
|
|
90
|
+
}
|
|
91
|
+
/** Elevation shadow presets. */
|
|
92
|
+
export interface NiceThemeShadows {
|
|
93
|
+
sm: string;
|
|
94
|
+
md: string;
|
|
95
|
+
lg: string;
|
|
96
|
+
xl: string;
|
|
97
|
+
/** Inner / inset shadow */
|
|
98
|
+
inner?: string;
|
|
99
|
+
/** Colored glow shadow using primary color */
|
|
100
|
+
glow?: string;
|
|
101
|
+
}
|
|
102
|
+
/** Spacing scale values. */
|
|
103
|
+
export interface NiceThemeSpacing {
|
|
104
|
+
space1?: string;
|
|
105
|
+
space2?: string;
|
|
106
|
+
space3?: string;
|
|
107
|
+
space4?: string;
|
|
108
|
+
space5?: string;
|
|
109
|
+
space6?: string;
|
|
110
|
+
space8?: string;
|
|
111
|
+
/** Extra spacing levels */
|
|
112
|
+
space10?: string;
|
|
113
|
+
space12?: string;
|
|
114
|
+
space16?: string;
|
|
115
|
+
/** Convenience t-shirt aliases. */
|
|
116
|
+
xs?: string | number;
|
|
117
|
+
sm?: string | number;
|
|
118
|
+
md?: string | number;
|
|
119
|
+
lg?: string | number;
|
|
120
|
+
xl?: string | number;
|
|
121
|
+
}
|
|
122
|
+
/** Typography settings: font family, sizes, weights, line height. */
|
|
123
|
+
export interface NiceThemeTypography {
|
|
124
|
+
fontFamily: string;
|
|
125
|
+
fontSizeXs: string;
|
|
126
|
+
fontSizeSm: string;
|
|
127
|
+
fontSizeMd: string;
|
|
128
|
+
fontSizeLg: string;
|
|
129
|
+
fontSizeXl: string;
|
|
130
|
+
fontWeightNormal: number;
|
|
131
|
+
fontWeightMedium: number;
|
|
132
|
+
fontWeightSemibold: number;
|
|
133
|
+
fontWeightBold: number;
|
|
134
|
+
lineHeight: number;
|
|
135
|
+
/** Secondary / heading font family */
|
|
136
|
+
headingFontFamily?: string;
|
|
137
|
+
/** Monospace font family */
|
|
138
|
+
monoFontFamily?: string;
|
|
139
|
+
/** Font size for 2xl headings */
|
|
140
|
+
fontSize2xl?: string;
|
|
141
|
+
/** Font size for 3xl headings */
|
|
142
|
+
fontSize3xl?: string;
|
|
143
|
+
/** Letter spacing */
|
|
144
|
+
letterSpacing?: string;
|
|
145
|
+
/** Heading letter spacing (often tighter) */
|
|
146
|
+
headingLetterSpacing?: string;
|
|
147
|
+
}
|
|
148
|
+
/** CSS transition duration presets. */
|
|
149
|
+
export interface NiceThemeTransitions {
|
|
150
|
+
fast: string;
|
|
151
|
+
normal: string;
|
|
152
|
+
slow: string;
|
|
153
|
+
}
|
|
154
|
+
/** Dark mode preference. */
|
|
155
|
+
export type NiceThemeDarkMode = 'light' | 'dark' | 'auto';
|
|
156
|
+
/**
|
|
157
|
+
* Complete theme definition — a JSON-serializable object that controls all visual styling
|
|
158
|
+
* via CSS custom properties. Can be created, stored, and loaded at runtime.
|
|
159
|
+
*/
|
|
160
|
+
export interface NiceTheme {
|
|
161
|
+
name: string;
|
|
162
|
+
colors: NiceThemeColors;
|
|
163
|
+
backgrounds: NiceThemeBackgrounds;
|
|
164
|
+
text: NiceThemeText;
|
|
165
|
+
borders: NiceThemeBorders;
|
|
166
|
+
shadows: NiceThemeShadows;
|
|
167
|
+
spacing: NiceThemeSpacing;
|
|
168
|
+
typography: NiceThemeTypography;
|
|
169
|
+
/** Convenience alias for {@link typography} (accepts a free-form font map). */
|
|
170
|
+
fonts?: Record<string, string> | NiceThemeTypography;
|
|
171
|
+
transitions: NiceThemeTransitions;
|
|
172
|
+
/** Extended background image / pattern options */
|
|
173
|
+
backgroundImage?: NiceThemeBackgroundImage;
|
|
174
|
+
/** Dark mode preference for this theme */
|
|
175
|
+
darkMode?: NiceThemeDarkMode;
|
|
176
|
+
/** Paired dark companion theme name (for auto switching) */
|
|
177
|
+
darkThemeName?: string;
|
|
178
|
+
/**
|
|
179
|
+
* Display style the theme was designed around. When set, a
|
|
180
|
+
* NiceThemeProvider that receives this theme but no explicit
|
|
181
|
+
* `displayStyle` prop will fall back to this value instead of 'default'.
|
|
182
|
+
*/
|
|
183
|
+
recommendedDisplayStyle?: import('./displayStyle').NiceDisplayStyle;
|
|
184
|
+
}
|
|
185
|
+
/** Converts a {@link NiceTheme} to a flat `Record<string, string>` of CSS custom properties. */
|
|
186
|
+
export declare function themeToCssVars(theme: NiceTheme): Record<string, string>;
|
|
187
|
+
/** Applies a theme to the DOM by setting CSS custom properties on the target element (defaults to `:root`). */
|
|
188
|
+
export declare function applyTheme(theme: NiceTheme, element?: HTMLElement): void;
|
|
189
|
+
/** Removes all theme CSS custom properties from the target element. */
|
|
190
|
+
export declare function removeTheme(element?: HTMLElement): void;
|
|
191
|
+
/** Reads the currently computed theme values from the DOM. */
|
|
192
|
+
export declare function getComputedTheme(element?: HTMLElement): NiceTheme;
|
|
193
|
+
/** Serializes a theme to a JSON string (pretty-printed). */
|
|
194
|
+
export declare function serializeTheme(theme: NiceTheme): string;
|
|
195
|
+
/** Parses a JSON string back into a {@link NiceTheme}. Throws on invalid format. */
|
|
196
|
+
export declare function deserializeTheme(json: string): NiceTheme;
|
|
197
|
+
export interface NiceThemeContextValue {
|
|
198
|
+
theme: NiceTheme;
|
|
199
|
+
setTheme: (theme: NiceTheme) => void;
|
|
200
|
+
/**
|
|
201
|
+
* DOM node that lives directly inside `document.body` but carries the same
|
|
202
|
+
* CSS variables as the provider's scoped subtree. Use this as the portal
|
|
203
|
+
* target for overlay-style components (modal, drawer, toast, popover) so the
|
|
204
|
+
* portaled content (a) escapes ancestor containing blocks created by
|
|
205
|
+
* `transform`, `filter`, `contain`, etc., AND (b) still inherits the active
|
|
206
|
+
* theme variables. Falls back to `document.body` if the provider hasn't
|
|
207
|
+
* mounted (SSR / pre-hydration).
|
|
208
|
+
*/
|
|
209
|
+
portalTarget?: HTMLElement | null;
|
|
210
|
+
}
|
|
211
|
+
export declare const NiceThemeContext: import("react").Context<NiceThemeContextValue | null>;
|
|
212
|
+
export declare function useNiceTheme(): NiceThemeContextValue;
|
|
213
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../src/core/theme.ts"],"names":[],"mappings":"AAQA,sCAAsC;AACtC,MAAM,WAAW,eAAe;IAC9B,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,kBAAkB;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,uBAAuB;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB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EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,IAAI,CAAC;IACrC;;;;;;;;OAQG;IACH,YAAY,CAAC,EAAE,WAAW,GAAG,IAAI,CAAC;CACnC;AAED,eAAO,MAAM,gBAAgB,uDAAoD,CAAC;AAElF,wBAAgB,YAAY,IAAI,qBAAqB,CAMpD"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import type { NiceTheme } from './theme';
|
|
2
|
+
export declare const themeSlate: NiceTheme;
|
|
3
|
+
export declare const themeZinc: NiceTheme;
|
|
4
|
+
export declare const themeStone: NiceTheme;
|
|
5
|
+
export declare const themeCoolGray: NiceTheme;
|
|
6
|
+
export declare const themeWarmGray: NiceTheme;
|
|
7
|
+
export declare const themeSilver: NiceTheme;
|
|
8
|
+
export declare const themeCharcoal: NiceTheme;
|
|
9
|
+
export declare const themeIvory: NiceTheme;
|
|
10
|
+
export declare const themeRose: NiceTheme;
|
|
11
|
+
export declare const themeEmerald: NiceTheme;
|
|
12
|
+
export declare const themeAmber: NiceTheme;
|
|
13
|
+
export declare const themeViolet: NiceTheme;
|
|
14
|
+
export declare const themeTeal: NiceTheme;
|
|
15
|
+
export declare const themeIndigo: NiceTheme;
|
|
16
|
+
export declare const themeCyan: NiceTheme;
|
|
17
|
+
export declare const themeLime: NiceTheme;
|
|
18
|
+
export declare const themePink: NiceTheme;
|
|
19
|
+
export declare const themeOrange: NiceTheme;
|
|
20
|
+
export declare const themeFuchsia: NiceTheme;
|
|
21
|
+
export declare const themeSky: NiceTheme;
|
|
22
|
+
export declare const themeRuby: NiceTheme;
|
|
23
|
+
export declare const themeCoral: NiceTheme;
|
|
24
|
+
export declare const themeMidnight: NiceTheme;
|
|
25
|
+
export declare const themeObsidian: NiceTheme;
|
|
26
|
+
export declare const themeEclipse: NiceTheme;
|
|
27
|
+
export declare const themeOnyx: NiceTheme;
|
|
28
|
+
export declare const themeCarbon: NiceTheme;
|
|
29
|
+
export declare const themeCosmos: NiceTheme;
|
|
30
|
+
export declare const themeNebula: NiceTheme;
|
|
31
|
+
export declare const themeAbyss: NiceTheme;
|
|
32
|
+
export declare const themeShadow: NiceTheme;
|
|
33
|
+
export declare const themeEmeraldDark: NiceTheme;
|
|
34
|
+
export declare const themeForest: NiceTheme;
|
|
35
|
+
export declare const themeOcean: NiceTheme;
|
|
36
|
+
export declare const themeDesert: NiceTheme;
|
|
37
|
+
export declare const themeSunset: NiceTheme;
|
|
38
|
+
export declare const themeAurora: NiceTheme;
|
|
39
|
+
export declare const themeLavender: NiceTheme;
|
|
40
|
+
export declare const themeAutumn: NiceTheme;
|
|
41
|
+
export declare const themeSpring: NiceTheme;
|
|
42
|
+
export declare const themeArctic: NiceTheme;
|
|
43
|
+
export declare const themeTropical: NiceTheme;
|
|
44
|
+
export declare const themePastelRose: NiceTheme;
|
|
45
|
+
export declare const themePastelSky: NiceTheme;
|
|
46
|
+
export declare const themePastelMint: NiceTheme;
|
|
47
|
+
export declare const themePastelPeach: NiceTheme;
|
|
48
|
+
export declare const themePastelLavender: NiceTheme;
|
|
49
|
+
export declare const themePastelLemon: NiceTheme;
|
|
50
|
+
export declare const themePastelSage: NiceTheme;
|
|
51
|
+
export declare const themePastelCoral: NiceTheme;
|
|
52
|
+
export declare const themeBanking: NiceTheme;
|
|
53
|
+
export declare const themeHealthcare: NiceTheme;
|
|
54
|
+
export declare const themeLegal: NiceTheme;
|
|
55
|
+
export declare const themeTechStartup: NiceTheme;
|
|
56
|
+
export declare const themeEnterprise: NiceTheme;
|
|
57
|
+
export declare const themeGovernment: NiceTheme;
|
|
58
|
+
export declare const themeEducation: NiceTheme;
|
|
59
|
+
export declare const themeRealEstate: NiceTheme;
|
|
60
|
+
export declare const themeNord: NiceTheme;
|
|
61
|
+
export declare const themeDracula: NiceTheme;
|
|
62
|
+
export declare const themeSolarizedLight: NiceTheme;
|
|
63
|
+
export declare const themeSolarizedDark: NiceTheme;
|
|
64
|
+
export declare const themeMonokai: NiceTheme;
|
|
65
|
+
export declare const themeOneDark: NiceTheme;
|
|
66
|
+
export declare const themeSynthwave: NiceTheme;
|
|
67
|
+
export declare const themeVaporwave: NiceTheme;
|
|
68
|
+
export declare const themeTerminalGreen: NiceTheme;
|
|
69
|
+
export declare const themeSepia: NiceTheme;
|
|
70
|
+
export declare const themeVintage: NiceTheme;
|
|
71
|
+
export declare const themeCyberpunk: NiceTheme;
|
|
72
|
+
export declare const themeNeon: NiceTheme;
|
|
73
|
+
export declare const themeRetrowave: NiceTheme;
|
|
74
|
+
export declare const themeChristmas: NiceTheme;
|
|
75
|
+
export declare const themeHalloween: NiceTheme;
|
|
76
|
+
export declare const themeValentine: NiceTheme;
|
|
77
|
+
export declare const themeEaster: NiceTheme;
|
|
78
|
+
export declare const themeSummerBeach: NiceTheme;
|
|
79
|
+
export declare const themeWinterFrost: NiceTheme;
|
|
80
|
+
export declare const themeCherryBlossom: NiceTheme;
|
|
81
|
+
export declare const themeHarvest: NiceTheme;
|
|
82
|
+
export declare const themeJapaneseZen: NiceTheme;
|
|
83
|
+
export declare const themeMoroccan: NiceTheme;
|
|
84
|
+
export declare const themeScandinavian: NiceTheme;
|
|
85
|
+
export declare const themeMediterranean: NiceTheme;
|
|
86
|
+
export declare const themeChineseNewYear: NiceTheme;
|
|
87
|
+
export declare const themeIndianFestive: NiceTheme;
|
|
88
|
+
export declare const themeBrazilianCarnival: NiceTheme;
|
|
89
|
+
export declare const themeAfricanEarth: NiceTheme;
|
|
90
|
+
export declare const themeHighContrastDark: NiceTheme;
|
|
91
|
+
export declare const themeMonochrome: NiceTheme;
|
|
92
|
+
export declare const themeEnhancedContrast: NiceTheme;
|
|
93
|
+
export declare const themeLargeText: NiceTheme;
|
|
94
|
+
export declare const themeGlassmorphism: NiceTheme;
|
|
95
|
+
export declare const themeNeumorphismLight: NiceTheme;
|
|
96
|
+
export declare const themeNeumorphismDark: NiceTheme;
|
|
97
|
+
export declare const themeMinimalist: NiceTheme;
|
|
98
|
+
export declare const themeWarmDark: NiceTheme;
|
|
99
|
+
export declare const themeSoftDark: NiceTheme;
|
|
100
|
+
export declare const themeCoffee: NiceTheme;
|
|
101
|
+
export declare const themeWine: NiceTheme;
|
|
102
|
+
/** All 100 gallery themes in a single array. */
|
|
103
|
+
export declare const NICE_THEME_GALLERY: NiceTheme[];
|
|
104
|
+
//# sourceMappingURL=themeGallery.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themeGallery.d.ts","sourceRoot":"","sources":["../../src/core/themeGallery.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EACV,SAAS,EAUV,MAAM,SAAS,CAAC;AAuHjB,eAAO,MAAM,UAAU,WAatB,CAAC;AAEF,eAAO,MAAM,SAAS,WAarB,CAAC;AAEF,eAAO,MAAM,UAAU,WAatB,CAAC;AAEF,eAAO,MAAM,aAAa,WAazB,CAAC;AAEF,eAAO,MAAM,aAAa,WAazB,CAAC;AAEF,eAAO,MAAM,WAAW,WAavB,CAAC;AAEF,eAAO,MAAM,aAAa,WAazB,CAAC;AAEF,eAAO,MAAM,UAAU,WAatB,CAAC;AAMF,eAAO,MAAM,SAAS,WAarB,CAAC;AAEF,eAAO,MAAM,YAAY,WAaxB,CAAC;AAEF,eAAO,MAAM,UAAU,WAatB,CAAC;AAEF,eAAO,MAAM,WAAW,WAavB,CAAC;AAEF,eAAO,MAAM,SAAS,WAarB,CAAC;AAEF,eAAO,MAAM,WAAW,WAavB,CAAC;AAEF,eAAO,MAAM,SAAS,WAarB,CAAC;AAEF,eAAO,MAAM,SAAS,WAarB,CAAC;AAEF,eAAO,MAAM,SAAS,WAarB,CAAC;AAEF,eAAO,MAAM,WAAW,WAavB,CAAC;AAEF,eAAO,MAAM,YAAY,WAaxB,CAAC;AAEF,eAAO,MAAM,QAAQ,WAapB,CAAC;AAEF,eAAO,MAAM,SAAS,WAarB,CAAC;AAEF,eAAO,MAAM,UAAU,WAatB,CAAC;AAMF,eAAO,MAAM,aAAa,WAazB,CAAC;AAEF,eAAO,MAAM,aAAa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AAO,MAAM,eAAe,WAa3B,CAAC;AAEF,eAAO,MAAM,qBAAqB,WAajC,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,SAgD5B,CAAC;AAMF,eAAO,MAAM,kBAAkB,EAAE,SAwChC,CAAC;AAEF,eAAO,MAAM,qBAAqB,EAAE,SAwCnC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,SAwClC,CAAC;AAEF,eAAO,MAAM,eAAe,WAa3B,CAAC;AAEF,eAAO,MAAM,aAAa,WAazB,CAAC;AAEF,eAAO,MAAM,aAAa,WAazB,CAAC;AAEF,eAAO,MAAM,WAAW,WAavB,CAAC;AAEF,eAAO,MAAM,SAAS,WAarB,CAAC;AAMF,gDAAgD;AAChD,eAAO,MAAM,kBAAkB,EAAE,SAAS,EAiHzC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import type { NiceDisplayStyle } from './displayStyle';
|
|
2
|
+
import type { NiceTheme } from './theme';
|
|
3
|
+
import type { ThemeVariantConfig } from './themeVariants';
|
|
4
|
+
export interface NiceThemePackMeta {
|
|
5
|
+
/** Short slug id (camelCase). */
|
|
6
|
+
id: string;
|
|
7
|
+
/** Display name shown in pickers. */
|
|
8
|
+
name: string;
|
|
9
|
+
/** One-sentence tagline. */
|
|
10
|
+
tagline: string;
|
|
11
|
+
/** Tags for filtering (e.g. 'dark', 'editorial', 'retro'). */
|
|
12
|
+
tags: string[];
|
|
13
|
+
}
|
|
14
|
+
export interface NiceThemePack {
|
|
15
|
+
meta: NiceThemePackMeta;
|
|
16
|
+
theme: NiceTheme;
|
|
17
|
+
displayStyle: NiceDisplayStyle;
|
|
18
|
+
variantConfig?: Partial<ThemeVariantConfig>;
|
|
19
|
+
}
|
|
20
|
+
export declare const NICE_THEME_PACK_FONT_LINKS: string[];
|
|
21
|
+
export declare const obsidianEditorial: NiceThemePack;
|
|
22
|
+
export declare const neonArcade: NiceThemePack;
|
|
23
|
+
export declare const hyggeScandinavian: NiceThemePack;
|
|
24
|
+
export declare const brutalistRaw: NiceThemePack;
|
|
25
|
+
export declare const glassAurora: NiceThemePack;
|
|
26
|
+
export declare const candyPop: NiceThemePack;
|
|
27
|
+
export declare const newspaperBroadsheet: NiceThemePack;
|
|
28
|
+
export declare const synthwave84: NiceThemePack;
|
|
29
|
+
export declare const zenMinimal: NiceThemePack;
|
|
30
|
+
export declare const claymorphism: NiceThemePack;
|
|
31
|
+
export declare const bauhaus: NiceThemePack;
|
|
32
|
+
export declare const bankVault: NiceThemePack;
|
|
33
|
+
export declare const NICE_THEME_PACKS: {
|
|
34
|
+
readonly obsidianEditorial: NiceThemePack;
|
|
35
|
+
readonly neonArcade: NiceThemePack;
|
|
36
|
+
readonly hyggeScandinavian: NiceThemePack;
|
|
37
|
+
readonly brutalistRaw: NiceThemePack;
|
|
38
|
+
readonly glassAurora: NiceThemePack;
|
|
39
|
+
readonly candyPop: NiceThemePack;
|
|
40
|
+
readonly newspaperBroadsheet: NiceThemePack;
|
|
41
|
+
readonly synthwave84: NiceThemePack;
|
|
42
|
+
readonly zenMinimal: NiceThemePack;
|
|
43
|
+
readonly claymorphism: NiceThemePack;
|
|
44
|
+
readonly bauhaus: NiceThemePack;
|
|
45
|
+
readonly bankVault: NiceThemePack;
|
|
46
|
+
};
|
|
47
|
+
export declare const NICE_THEME_PACK_LIST: NiceThemePack[];
|
|
48
|
+
export type NiceThemePackId = keyof typeof NICE_THEME_PACKS;
|
|
49
|
+
/** Lookup a pack by its id. Returns undefined if no match. */
|
|
50
|
+
export declare function getNiceThemePack(id: string): NiceThemePack | undefined;
|
|
51
|
+
/** Filter packs by tag (e.g. 'dark', 'serif', 'retro'). */
|
|
52
|
+
export declare function filterNiceThemePacksByTag(tag: string): NiceThemePack[];
|
|
53
|
+
//# sourceMappingURL=themePacks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themePacks.d.ts","sourceRoot":"","sources":["../../src/core/themePacks.ts"],"names":[],"mappings":"AA4B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AAM,oBAAoB,EAAE,aAAa,EAAoC,CAAC;AAErF,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,gBAAgB,CAAC;AAE5D,8DAA8D;AAC9D,wBAAgB,gBAAgB,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAEtE;AAED,2DAA2D;AAC3D,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,EAAE,CAEtE"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { NiceThemePack } from './themePacks';
|
|
2
|
+
export declare const NICE_THEME_PACK_FONT_LINKS_EXTENDED: string[];
|
|
3
|
+
export declare const forestCanopy: NiceThemePack;
|
|
4
|
+
export declare const desertDune: NiceThemePack;
|
|
5
|
+
export declare const arcticCrystal: NiceThemePack;
|
|
6
|
+
export declare const autumnFoliage: NiceThemePack;
|
|
7
|
+
export declare const japaneseWashi: NiceThemePack;
|
|
8
|
+
export declare const moroccanMosaic: NiceThemePack;
|
|
9
|
+
export declare const artDecoGatsby: NiceThemePack;
|
|
10
|
+
export declare const sovietConstructivist: NiceThemePack;
|
|
11
|
+
export declare const blueprint: NiceThemePack;
|
|
12
|
+
export declare const hologramUI: NiceThemePack;
|
|
13
|
+
export declare const deepSea: NiceThemePack;
|
|
14
|
+
export declare const analog70s: NiceThemePack;
|
|
15
|
+
export declare const vhsTracking: NiceThemePack;
|
|
16
|
+
export declare const typewriterPress: NiceThemePack;
|
|
17
|
+
export declare const y2kAqua: NiceThemePack;
|
|
18
|
+
export declare const vogueDidone: NiceThemePack;
|
|
19
|
+
export declare const comicHalftone: NiceThemePack;
|
|
20
|
+
export declare const zinePunk: NiceThemePack;
|
|
21
|
+
export declare const watercolorWash: NiceThemePack;
|
|
22
|
+
export declare const memphis80s: NiceThemePack;
|
|
23
|
+
export declare const inkSumie: NiceThemePack;
|
|
24
|
+
export declare const dieterRams: NiceThemePack;
|
|
25
|
+
export declare const blackTieGala: NiceThemePack;
|
|
26
|
+
export declare const swissGrid: NiceThemePack;
|
|
27
|
+
export declare const NICE_THEME_PACKS_EXTENDED: {
|
|
28
|
+
readonly forestCanopy: NiceThemePack;
|
|
29
|
+
readonly desertDune: NiceThemePack;
|
|
30
|
+
readonly arcticCrystal: NiceThemePack;
|
|
31
|
+
readonly autumnFoliage: NiceThemePack;
|
|
32
|
+
readonly japaneseWashi: NiceThemePack;
|
|
33
|
+
readonly moroccanMosaic: NiceThemePack;
|
|
34
|
+
readonly artDecoGatsby: NiceThemePack;
|
|
35
|
+
readonly sovietConstructivist: NiceThemePack;
|
|
36
|
+
readonly blueprint: NiceThemePack;
|
|
37
|
+
readonly hologramUI: NiceThemePack;
|
|
38
|
+
readonly deepSea: NiceThemePack;
|
|
39
|
+
readonly analog70s: NiceThemePack;
|
|
40
|
+
readonly vhsTracking: NiceThemePack;
|
|
41
|
+
readonly typewriterPress: NiceThemePack;
|
|
42
|
+
readonly y2kAqua: NiceThemePack;
|
|
43
|
+
readonly vogueDidone: NiceThemePack;
|
|
44
|
+
readonly comicHalftone: NiceThemePack;
|
|
45
|
+
readonly zinePunk: NiceThemePack;
|
|
46
|
+
readonly watercolorWash: NiceThemePack;
|
|
47
|
+
readonly memphis80s: NiceThemePack;
|
|
48
|
+
readonly inkSumie: NiceThemePack;
|
|
49
|
+
readonly dieterRams: NiceThemePack;
|
|
50
|
+
readonly blackTieGala: NiceThemePack;
|
|
51
|
+
readonly swissGrid: NiceThemePack;
|
|
52
|
+
};
|
|
53
|
+
export declare const NICE_THEME_PACK_LIST_EXTENDED: NiceThemePack[];
|
|
54
|
+
export type NiceThemePackIdExtended = keyof typeof NICE_THEME_PACKS_EXTENDED;
|
|
55
|
+
/** Lookup a pack by id (extended registry only). */
|
|
56
|
+
export declare function getNiceThemePackExtended(id: string): NiceThemePack | undefined;
|
|
57
|
+
/** Filter extended packs by tag. */
|
|
58
|
+
export declare function filterNiceThemePacksExtendedByTag(tag: string): NiceThemePack[];
|
|
59
|
+
//# sourceMappingURL=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,eAAO,MAAM,YAAY,EAAE,aAkF1B,CAAC;AAQF,eAAO,MAAM,SAAS,EAAE,aA4EvB,CAAC;AAIF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;CAgC5B,CAAC;AAEX,eAAO,MAAM,6BAA6B,EAAE,aAAa,EACf,CAAC;AAE3C,MAAM,MAAM,uBAAuB,GAAG,MAAM,OAAO,yBAAyB,CAAC;AAE7E,oDAAoD;AACpD,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,MAAM,GAAG,aAAa,GAAG,SAAS,CAE9E;AAED,oCAAoC;AACpC,wBAAgB,iCAAiC,CAAC,GAAG,EAAE,MAAM,GAAG,aAAa,EAAE,CAE9E"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { NiceTheme } from './theme';
|
|
2
|
+
export declare const niceThemeLight: NiceTheme;
|
|
3
|
+
export declare const niceThemeDark: NiceTheme;
|
|
4
|
+
export declare const niceThemeBlue: NiceTheme;
|
|
5
|
+
export declare const niceThemeHighContrast: NiceTheme;
|
|
6
|
+
export declare const niceThemeMaterial: NiceTheme;
|
|
7
|
+
export declare const niceThemeBootstrap: NiceTheme;
|
|
8
|
+
export declare const niceThemeFluent: NiceTheme;
|
|
9
|
+
export declare const NICE_THEME_PRESETS: NiceTheme[];
|
|
10
|
+
//# sourceMappingURL=themePresets.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themePresets.d.ts","sourceRoot":"","sources":["../../src/core/themePresets.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AAwCzC,eAAO,MAAM,cAAc,EAAE,SAiC5B,CAAC;AAIF,eAAO,MAAM,aAAa,EAAE,SAiC3B,CAAC;AAIF,eAAO,MAAM,aAAa,EAAE,SAgC3B,CAAC;AAIF,eAAO,MAAM,qBAAqB,EAAE,SAgCnC,CAAC;AAIF,eAAO,MAAM,iBAAiB,EAAE,SAwD/B,CAAC;AAIF,eAAO,MAAM,kBAAkB,EAAE,SAoDhC,CAAC;AAIF,eAAO,MAAM,eAAe,EAAE,SAwD7B,CAAC;AAIF,eAAO,MAAM,kBAAkB,EAAE,SAAS,EASzC,CAAC"}
|