@ceebee/ui 1.4.1 → 1.5.0
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/client.d.ts +39 -13
- package/dist/client.js +699 -5
- package/dist/index.d.ts +25 -1
- package/dist/index.js +684 -1
- package/dist/styles.css +111 -9
- package/package.json +7 -6
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ThemeConfig } from 'antd';
|
|
1
2
|
import * as react from 'react';
|
|
2
3
|
import { ReactNode } from 'react';
|
|
3
4
|
|
|
@@ -8,6 +9,29 @@ type Tone = 'neutral' | 'brand' | 'info' | 'success' | 'warning' | 'danger';
|
|
|
8
9
|
type Size = 'sm' | 'md' | 'lg';
|
|
9
10
|
type DecorHue = 'violet' | 'blue' | 'teal' | 'green' | 'amber' | 'rose';
|
|
10
11
|
|
|
12
|
+
type CeebeeSkin = 'ceebee' | 'astra' | 'clarity' | 'moodboard';
|
|
13
|
+
type ThemeMode = 'light' | 'dark';
|
|
14
|
+
type ThemeContrast = 'normal' | 'more';
|
|
15
|
+
interface CeebeeAntThemeSeed {
|
|
16
|
+
token: NonNullable<ThemeConfig['token']>;
|
|
17
|
+
components: NonNullable<ThemeConfig['components']>;
|
|
18
|
+
}
|
|
19
|
+
interface CeebeeAntThemeSeedOptions {
|
|
20
|
+
skin?: CeebeeSkin;
|
|
21
|
+
mode: ThemeMode;
|
|
22
|
+
contrast?: ThemeContrast;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns the DOM-free Ant seed generated from the same CSS Tokens as the selected Skin.
|
|
26
|
+
* Consumers use this only to tell ThemeProvider what the server knew; raw values remain owned here.
|
|
27
|
+
*/
|
|
28
|
+
declare function getCeebeeAntThemeSeed({ skin, mode, contrast, }: CeebeeAntThemeSeedOptions): CeebeeAntThemeSeed;
|
|
29
|
+
declare const THEME_MODE_COOKIE = "cb-theme-mode";
|
|
30
|
+
/** Reads the resolved light/dark mode from a Cookie header without depending on a web framework. */
|
|
31
|
+
declare function readThemeModeCookie(cookieHeader: string | null | undefined): ThemeMode | undefined;
|
|
32
|
+
/** Serializes the non-sensitive resolved mode that lets the next server render use the right seed. */
|
|
33
|
+
declare function serializeThemeModeCookie(mode: ThemeMode): string;
|
|
34
|
+
|
|
11
35
|
type SurfaceVariant = 'plain' | 'tinted' | 'glass' | 'gradient' | 'paper';
|
|
12
36
|
type GlassStyle = 'regular' | 'clear';
|
|
13
37
|
type PaperTilt = 'left' | 'none' | 'right';
|
|
@@ -214,4 +238,4 @@ interface LeaderboardProps {
|
|
|
214
238
|
declare function LeaderboardRoot({ entries, label, medals, className }: LeaderboardProps): react.JSX.Element;
|
|
215
239
|
declare const Leaderboard: typeof LeaderboardRoot;
|
|
216
240
|
|
|
217
|
-
export { BarMini, type BarMiniProps, Container, type ContainerProps, type DecorHue, Donut, type DonutArc, type DonutProps, type DonutSlice, Flex, type GlassStyle, Grid, type GridProps, Heading, type HeadingProps, Leaderboard, type LeaderboardEntry, type LeaderboardProps, PageContainer, type PageContainerProps, PageContainerSkeleton, type PageContainerSkeletonProps, type PaperTilt, type Size, Sparkline, type SparklineGeometry, type SparklineProps, type StackProps, Surface, type SurfaceProps, type SurfaceVariant, Text, type TextProps, type Tone, cn, donutArcs, sparklineGeometry };
|
|
241
|
+
export { BarMini, type BarMiniProps, type CeebeeAntThemeSeed, type CeebeeAntThemeSeedOptions, type CeebeeSkin, Container, type ContainerProps, type DecorHue, Donut, type DonutArc, type DonutProps, type DonutSlice, Flex, type GlassStyle, Grid, type GridProps, Heading, type HeadingProps, Leaderboard, type LeaderboardEntry, type LeaderboardProps, PageContainer, type PageContainerProps, PageContainerSkeleton, type PageContainerSkeletonProps, type PaperTilt, type Size, Sparkline, type SparklineGeometry, type SparklineProps, type StackProps, Surface, type SurfaceProps, type SurfaceVariant, THEME_MODE_COOKIE, Text, type TextProps, type ThemeContrast, type ThemeMode, type Tone, cn, donutArcs, getCeebeeAntThemeSeed, readThemeModeCookie, serializeThemeModeCookie, sparklineGeometry };
|