burne-ui 0.0.1
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/README.md +117 -0
- package/dist/components/composite/Accordion/Accordion.d.ts +20 -0
- package/dist/components/composite/Accordion/index.d.ts +1 -0
- package/dist/components/composite/AlertDialog/AlertDialog.d.ts +83 -0
- package/dist/components/composite/AlertDialog/index.d.ts +1 -0
- package/dist/components/composite/ButtonGroup/ButtonGroup.d.ts +42 -0
- package/dist/components/composite/ButtonGroup/index.d.ts +2 -0
- package/dist/components/composite/CheckboxGroup/CheckboxGroup.d.ts +49 -0
- package/dist/components/composite/CheckboxGroup/index.d.ts +1 -0
- package/dist/components/composite/Form/Form.d.ts +4 -0
- package/dist/components/composite/Form/index.d.ts +1 -0
- package/dist/components/core/Alert/Alert.d.ts +34 -0
- package/dist/components/core/Alert/index.d.ts +1 -0
- package/dist/components/core/Avatar/Avatar.d.ts +40 -0
- package/dist/components/core/Avatar/index.d.ts +1 -0
- package/dist/components/core/Badge/Badge.d.ts +77 -0
- package/dist/components/core/Badge/index.d.ts +1 -0
- package/dist/components/core/Breadcrumbs/Breadcrumbs.d.ts +19 -0
- package/dist/components/core/Breadcrumbs/index.d.ts +2 -0
- package/dist/components/core/Button/Button.d.ts +86 -0
- package/dist/components/core/Button/index.d.ts +1 -0
- package/dist/components/core/Card/Card.d.ts +49 -0
- package/dist/components/core/Card/index.d.ts +1 -0
- package/dist/components/core/Checkbox/Checkbox.d.ts +32 -0
- package/dist/components/core/Checkbox/index.d.ts +1 -0
- package/dist/components/core/CloseButton/CloseButton.d.ts +10 -0
- package/dist/components/core/CloseButton/index.d.ts +1 -0
- package/dist/components/core/Dialog/Dialog.d.ts +39 -0
- package/dist/components/core/Dialog/index.d.ts +1 -0
- package/dist/components/core/Dropdown/Dropdown.d.ts +147 -0
- package/dist/components/core/Dropdown/index.d.ts +1 -0
- package/dist/components/core/Expandable/Expandable.d.ts +44 -0
- package/dist/components/core/Expandable/index.d.ts +1 -0
- package/dist/components/core/GlassSurface/GlassBackdrop.d.ts +7 -0
- package/dist/components/core/GlassSurface/GlassShaderLayer.d.ts +14 -0
- package/dist/components/core/GlassSurface/GlassSurface.d.ts +16 -0
- package/dist/components/core/GlassSurface/glassLensOgl.d.ts +11 -0
- package/dist/components/core/GlassSurface/index.d.ts +3 -0
- package/dist/components/core/Input/Input.d.ts +71 -0
- package/dist/components/core/Input/index.d.ts +1 -0
- package/dist/components/core/Ripple/Ripple.d.ts +40 -0
- package/dist/components/core/Ripple/index.d.ts +1 -0
- package/dist/components/core/SearchInput/SearchInput.d.ts +54 -0
- package/dist/components/core/SearchInput/index.d.ts +1 -0
- package/dist/components/core/Selector/Selector.d.ts +48 -0
- package/dist/components/core/Selector/index.d.ts +1 -0
- package/dist/components/core/Separator/Separator.d.ts +13 -0
- package/dist/components/core/Separator/index.d.ts +1 -0
- package/dist/components/core/Text/Text.d.ts +19 -0
- package/dist/components/core/Text/index.d.ts +1 -0
- package/dist/components/core/Tooltip/Tooltip.d.ts +38 -0
- package/dist/components/core/Tooltip/index.d.ts +1 -0
- package/dist/components/core/utils/buttonGroupSegment.d.ts +10 -0
- package/dist/components/core/utils/hoverInteractiveLift.d.ts +60 -0
- package/dist/components/core/utils/motionTokens.d.ts +24 -0
- package/dist/components/core/utils/pressRipple.d.ts +19 -0
- package/dist/components/core/utils/semanticStatusIcons.d.ts +5 -0
- package/dist/components/core/utils/useConvergeRipples.d.ts +13 -0
- package/dist/index.cjs +169 -0
- package/dist/index.d.ts +31 -0
- package/dist/index.js +11863 -0
- package/dist/tokens/config.d.ts +70 -0
- package/dist/tokens/index.d.ts +12 -0
- package/dist/ui.css +3724 -0
- package/dist/utils/cn.d.ts +2 -0
- package/dist/utils/mockImages.d.ts +5 -0
- package/package.json +58 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Метаданные слоя токенов. Значения задаются в `./styles.css`,
|
|
3
|
+
* утилиты Tailwind — в `src/styles.css` (`@theme`, `@utility`).
|
|
4
|
+
*/
|
|
5
|
+
export declare const tokensConfig: {
|
|
6
|
+
/** Пространство имён для документации */
|
|
7
|
+
readonly namespace: "burne";
|
|
8
|
+
readonly tailwindBridge: {
|
|
9
|
+
readonly "font-sans": "font-family-sans";
|
|
10
|
+
readonly "font-mono": "font-family-mono";
|
|
11
|
+
readonly "spacing-xsmall": "space-xsmall";
|
|
12
|
+
readonly "spacing-small": "space-small";
|
|
13
|
+
readonly "spacing-base": "space-base";
|
|
14
|
+
readonly "spacing-plus": "space-plus";
|
|
15
|
+
readonly "spacing-mid": "space-mid";
|
|
16
|
+
readonly "spacing-large": "space-large";
|
|
17
|
+
readonly "spacing-xlarge": "space-xlarge";
|
|
18
|
+
readonly "radius-xsmall": "radius-value-xsmall";
|
|
19
|
+
readonly "radius-small": "radius-value-small";
|
|
20
|
+
readonly "radius-base": "radius-value-base";
|
|
21
|
+
readonly "radius-mid": "radius-value-mid";
|
|
22
|
+
readonly "radius-large": "radius-value-large";
|
|
23
|
+
readonly "color-background": "color-background";
|
|
24
|
+
readonly "color-foreground": "color-foreground";
|
|
25
|
+
readonly "color-muted": "color-muted";
|
|
26
|
+
readonly "color-surface": "color-surface";
|
|
27
|
+
readonly "border-base": "color-border";
|
|
28
|
+
readonly "color-accent": "color-accent";
|
|
29
|
+
readonly "color-accent-foreground": "color-accent-foreground";
|
|
30
|
+
readonly "color-accent-fill-hover": "color-accent-fill-hover";
|
|
31
|
+
readonly "color-accent-solid-hover": "color-accent-solid-hover";
|
|
32
|
+
readonly "color-secondary-fill-hover": "color-secondary-fill-hover";
|
|
33
|
+
readonly "color-converge-ripple-accent-fill": "color-converge-ripple-accent-fill";
|
|
34
|
+
readonly "color-converge-ripple-accent-soft": "color-converge-ripple-accent-soft";
|
|
35
|
+
readonly "color-converge-ripple-accent-muted": "color-converge-ripple-accent-muted";
|
|
36
|
+
readonly "color-converge-ripple-danger": "color-converge-ripple-danger";
|
|
37
|
+
readonly "color-converge-ripple-info": "color-converge-ripple-info";
|
|
38
|
+
readonly "color-converge-ripple-success": "color-converge-ripple-success";
|
|
39
|
+
readonly "color-converge-ripple-secondary": "color-converge-ripple-secondary";
|
|
40
|
+
readonly "color-converge-ripple-warning": "color-converge-ripple-warning";
|
|
41
|
+
readonly "color-danger": "color-danger";
|
|
42
|
+
readonly "color-danger-foreground": "color-danger-foreground";
|
|
43
|
+
readonly "color-danger-fill-hover": "color-danger-fill-hover";
|
|
44
|
+
readonly "color-success": "color-success";
|
|
45
|
+
readonly "color-success-foreground": "color-success-foreground";
|
|
46
|
+
readonly "color-success-fill-hover": "color-success-fill-hover";
|
|
47
|
+
readonly "color-info": "color-info";
|
|
48
|
+
readonly "color-info-foreground": "color-info-foreground";
|
|
49
|
+
readonly "color-info-fill-hover": "color-info-fill-hover";
|
|
50
|
+
readonly "color-warning": "color-warning";
|
|
51
|
+
readonly "color-warning-foreground": "color-warning-foreground";
|
|
52
|
+
readonly "color-warning-fill-hover": "color-warning-fill-hover";
|
|
53
|
+
readonly "color-surface-tint-danger": "color-surface-tint-danger";
|
|
54
|
+
readonly "color-surface-tint-success": "color-surface-tint-success";
|
|
55
|
+
readonly "color-surface-tint-info": "color-surface-tint-info";
|
|
56
|
+
readonly "color-surface-tint-warning": "color-surface-tint-warning";
|
|
57
|
+
readonly "color-surface-tint-accent": "color-surface-tint-accent";
|
|
58
|
+
readonly "color-surface-tint-danger-strong": "color-surface-tint-danger-strong";
|
|
59
|
+
readonly "color-surface-tint-success-strong": "color-surface-tint-success-strong";
|
|
60
|
+
readonly "color-surface-tint-warning-strong": "color-surface-tint-warning-strong";
|
|
61
|
+
readonly "icon-xsmall": "icon-size-xsmall";
|
|
62
|
+
readonly "icon-small": "icon-size-small";
|
|
63
|
+
readonly "icon-base": "icon-size-base";
|
|
64
|
+
readonly "icon-mid": "icon-size-mid";
|
|
65
|
+
readonly "icon-large": "icon-size-large";
|
|
66
|
+
readonly "icon-xlarge": "icon-size-xlarge";
|
|
67
|
+
readonly "icon-2xlarge": "icon-size-2xlarge";
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
export type TokensConfig = typeof tokensConfig;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export { tokensConfig, type TokensConfig } from './config';
|
|
2
|
+
/** Имена CSS-переменных для типобезопасного доступа и генераторов */
|
|
3
|
+
export declare const designTokenNames: readonly ["--color-background", "--color-surface", "--color-border", "--color-foreground", "--color-muted", "--color-accent", "--color-accent-foreground", "--color-accent-fill-hover", "--color-accent-solid-hover", "--color-secondary-fill-hover", "--color-converge-ripple-accent-fill", "--color-converge-ripple-accent-soft", "--color-converge-ripple-accent-muted", "--color-converge-ripple-danger", "--color-converge-ripple-info", "--color-converge-ripple-success", "--color-converge-ripple-secondary", "--color-converge-ripple-warning", "--color-danger", "--color-danger-fill-hover", "--color-danger-foreground", "--color-success", "--color-success-foreground", "--color-success-fill-hover", "--color-info", "--color-info-foreground", "--color-info-fill-hover", "--color-warning", "--color-warning-foreground", "--color-warning-fill-hover", "--color-surface-tint-danger", "--color-surface-tint-success", "--color-surface-tint-info", "--color-surface-tint-warning", "--color-surface-tint-accent", "--color-surface-tint-danger-strong", "--color-surface-tint-success-strong", "--color-surface-tint-warning-strong", "--font-family-sans", "--font-family-mono", "--space-xsmall", "--space-small", "--space-base", "--space-plus", "--space-mid", "--space-large", "--space-xlarge", "--radius-value-xsmall", "--radius-value-small", "--radius-value-base", "--radius-value-mid", "--radius-value-large", "--text-accent-header-size", "--text-accent-header-line-height", "--text-accent-header-weight", "--text-header-1-size", "--text-header-1-line-height", "--text-header-1-weight", "--text-header-2-size", "--text-header-2-line-height", "--text-header-2-weight", "--text-large-size", "--text-large-line-height", "--text-large-weight", "--text-base-size", "--text-base-line-height", "--text-base-weight", "--text-small-size", "--text-small-line-height", "--text-small-weight", "--text-mid-size", "--text-mid-line-height", "--text-mid-weight", "--text-tools-size", "--text-tools-line-height", "--text-tools-weight", "--max-component-small", "--max-component-base", "--max-component-mid", "--max-component-large", "--button-min-width-s", "--button-min-width-m", "--button-min-width-l", "--button-min-width-xl", "--icon-size-xsmall", "--icon-size-small", "--icon-size-base", "--icon-size-mid", "--icon-size-large", "--icon-size-xlarge", "--icon-size-2xlarge", "--ease-out", "--duration-fast", "--duration-normal", "--glass-blur", "--glass-blur-edge", "--glass-saturate", "--glass-tint", "--glass-tint-veil", "--glass-border", "--glass-highlight", "--glass-edge-falloff"];
|
|
4
|
+
export type DesignCssVar = (typeof designTokenNames)[number];
|
|
5
|
+
type ColorCssVarName = Extract<DesignCssVar, `--color-${string}`>;
|
|
6
|
+
/** Хвост имени после `--color-` (как в theme key без префикса `color-`) */
|
|
7
|
+
export type ColorTokenSuffix = ColorCssVarName extends `--color-${infer S}` ? S : never;
|
|
8
|
+
/**
|
|
9
|
+
* Ссылка на цветовой токен для `style` / ripple: без литерала `var(--...)`.
|
|
10
|
+
* @example colorToken("converge-ripple-accent-soft") // → var(--color-converge-ripple-accent-soft)
|
|
11
|
+
*/
|
|
12
|
+
export declare function colorToken<S extends ColorTokenSuffix>(suffix: S): `var(--color-${S})`;
|