@refineui/react 0.0.11 → 0.0.12
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.cjs +13 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +8 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +13 -8
- package/dist/index.js.map +1 -1
- package/dist/spec/contract-index.json +1 -1
- package/dist/spec/token-graph.json +28 -14
- package/dist/spec/token-trace-v2.json +26 -11
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1758,6 +1758,10 @@ declare const componentColorTokens: {
|
|
|
1758
1758
|
};
|
|
1759
1759
|
/** Cell fill only — Global tint per MCP `Color`. Glyph/initials ink: `avatar.icon`. */
|
|
1760
1760
|
readonly shell: {
|
|
1761
|
+
readonly border: Readonly<{
|
|
1762
|
+
type: "semantic";
|
|
1763
|
+
name: SemanticColorName;
|
|
1764
|
+
}>;
|
|
1761
1765
|
readonly background: {
|
|
1762
1766
|
readonly neutral: Readonly<{
|
|
1763
1767
|
type: "palette";
|
|
@@ -4181,6 +4185,10 @@ declare const componentTokens: {
|
|
|
4181
4185
|
}>;
|
|
4182
4186
|
};
|
|
4183
4187
|
readonly shell: {
|
|
4188
|
+
readonly border: Readonly<{
|
|
4189
|
+
type: "semantic";
|
|
4190
|
+
name: _refineui_tokens.SemanticColorName;
|
|
4191
|
+
}>;
|
|
4184
4192
|
readonly background: {
|
|
4185
4193
|
readonly neutral: Readonly<{
|
|
4186
4194
|
type: "palette";
|
package/dist/index.d.ts
CHANGED
|
@@ -1758,6 +1758,10 @@ declare const componentColorTokens: {
|
|
|
1758
1758
|
};
|
|
1759
1759
|
/** Cell fill only — Global tint per MCP `Color`. Glyph/initials ink: `avatar.icon`. */
|
|
1760
1760
|
readonly shell: {
|
|
1761
|
+
readonly border: Readonly<{
|
|
1762
|
+
type: "semantic";
|
|
1763
|
+
name: SemanticColorName;
|
|
1764
|
+
}>;
|
|
1761
1765
|
readonly background: {
|
|
1762
1766
|
readonly neutral: Readonly<{
|
|
1763
1767
|
type: "palette";
|
|
@@ -4181,6 +4185,10 @@ declare const componentTokens: {
|
|
|
4181
4185
|
}>;
|
|
4182
4186
|
};
|
|
4183
4187
|
readonly shell: {
|
|
4188
|
+
readonly border: Readonly<{
|
|
4189
|
+
type: "semantic";
|
|
4190
|
+
name: _refineui_tokens.SemanticColorName;
|
|
4191
|
+
}>;
|
|
4184
4192
|
readonly background: {
|
|
4185
4193
|
readonly neutral: Readonly<{
|
|
4186
4194
|
type: "palette";
|
package/dist/index.js
CHANGED
|
@@ -338,7 +338,7 @@ var componentColorTokens = {
|
|
|
338
338
|
},
|
|
339
339
|
chip: {
|
|
340
340
|
default: {
|
|
341
|
-
background: semanticToken("
|
|
341
|
+
background: semanticToken("backgroundSurfaceSelected"),
|
|
342
342
|
foreground: semanticToken("foregroundBrand"),
|
|
343
343
|
hoverBackground: semanticToken("backgroundPrimaryHover"),
|
|
344
344
|
activeBackground: semanticToken("backgroundPrimaryActive"),
|
|
@@ -368,7 +368,7 @@ var componentColorTokens = {
|
|
|
368
368
|
},
|
|
369
369
|
tag: {
|
|
370
370
|
default: {
|
|
371
|
-
background: semanticToken("
|
|
371
|
+
background: semanticToken("backgroundSurfaceSelected"),
|
|
372
372
|
foreground: semanticToken("foregroundBrand")
|
|
373
373
|
},
|
|
374
374
|
outline: {
|
|
@@ -666,6 +666,7 @@ var componentColorTokens = {
|
|
|
666
666
|
},
|
|
667
667
|
/** Cell fill only — Global tint per MCP `Color`. Glyph/initials ink: `avatar.icon`. */
|
|
668
668
|
shell: {
|
|
669
|
+
border: semanticToken("borderSubtle"),
|
|
669
670
|
background: {
|
|
670
671
|
neutral: paletteToken("neutral300"),
|
|
671
672
|
blue: paletteToken("blue100"),
|
|
@@ -2025,7 +2026,7 @@ import { clsx as clsx11 } from "clsx";
|
|
|
2025
2026
|
import { clsx as clsx10 } from "clsx";
|
|
2026
2027
|
var badgeVariantClass = {
|
|
2027
2028
|
default: "bg-refineui-alias-background-brand text-refineui-alias-foreground-inversed",
|
|
2028
|
-
neutral: "bg-refineui-alias-background-
|
|
2029
|
+
neutral: "bg-refineui-alias-background-brand-subtle text-refineui-alias-foreground-brand-strong",
|
|
2029
2030
|
outline: "border-refineui-thin border-refineui-alias-border-default border bg-transparent text-refineui-alias-foreground-primary box-border",
|
|
2030
2031
|
success: "bg-refineui-alias-background-success text-refineui-alias-foreground-inversed",
|
|
2031
2032
|
warning: "bg-refineui-alias-background-warning text-refineui-alias-foreground-inversed",
|
|
@@ -3856,13 +3857,13 @@ import { clsx as clsx30 } from "clsx";
|
|
|
3856
3857
|
// src/recipes/chip.recipe.ts
|
|
3857
3858
|
import { iconSizes as iconSizes5 } from "@refineui/tokens";
|
|
3858
3859
|
var chipVariantClass = {
|
|
3859
|
-
default: "border-none bg-refineui-alias-background-surface text-refineui-alias-foreground-brand",
|
|
3860
|
-
outline: "border-refineui-thin border-refineui-alias-border-default box-border bg-transparent text-refineui-alias-foreground-brand",
|
|
3860
|
+
default: "border-none bg-refineui-alias-background-surface-selected text-refineui-alias-foreground-brand",
|
|
3861
|
+
outline: "border border-refineui-thin border-refineui-alias-border-default box-border bg-transparent text-refineui-alias-foreground-brand",
|
|
3861
3862
|
filled: "border-none bg-refineui-alias-background-brand text-refineui-alias-foreground-inversed"
|
|
3862
3863
|
};
|
|
3863
3864
|
var chipDisabledVariantClass = {
|
|
3864
3865
|
default: "border-none bg-refineui-alias-background-surface-disabled text-refineui-alias-foreground-disabled",
|
|
3865
|
-
outline: "border-refineui-thin border-refineui-alias-border-disabled box-border bg-transparent text-refineui-alias-foreground-disabled",
|
|
3866
|
+
outline: "border border-refineui-thin border-refineui-alias-border-disabled box-border bg-transparent text-refineui-alias-foreground-disabled",
|
|
3866
3867
|
filled: "border-none bg-refineui-alias-background-surface-disabled text-refineui-alias-foreground-disabled"
|
|
3867
3868
|
};
|
|
3868
3869
|
var chipSizeClass = {
|
|
@@ -4998,15 +4999,18 @@ var avatarShellInitialsForegroundColor = {
|
|
|
4998
4999
|
yellow: resolveColorTokenValue3(componentColorTokens.avatar.icon.yellow)
|
|
4999
5000
|
};
|
|
5000
5001
|
var avatarNeutralForegroundColor = resolveColorTokenValue3(componentColorTokens.avatar.icon.neutral);
|
|
5002
|
+
var avatarShellBorderColor = resolveColorTokenValue3(componentColorTokens.avatar.shell.border);
|
|
5001
5003
|
function resolveAvatarShellStyle(color, layout) {
|
|
5002
5004
|
if (layout === "initials") {
|
|
5003
5005
|
return {
|
|
5004
5006
|
backgroundColor: avatarShellBackgroundColor[color],
|
|
5005
|
-
color: avatarShellInitialsForegroundColor[color]
|
|
5007
|
+
color: avatarShellInitialsForegroundColor[color],
|
|
5008
|
+
borderColor: avatarShellInitialsForegroundColor[color]
|
|
5006
5009
|
};
|
|
5007
5010
|
}
|
|
5008
5011
|
return {
|
|
5009
|
-
backgroundColor: avatarShellBackgroundColor[color]
|
|
5012
|
+
backgroundColor: avatarShellBackgroundColor[color],
|
|
5013
|
+
borderColor: avatarShellBorderColor
|
|
5010
5014
|
};
|
|
5011
5015
|
}
|
|
5012
5016
|
function resolveAvatarShellColorLayer(_color, size, layout) {
|
|
@@ -5251,6 +5255,7 @@ function Avatar({
|
|
|
5251
5255
|
className: clsx36(
|
|
5252
5256
|
AVATAR_INNER_MASK,
|
|
5253
5257
|
resolveAvatarShellColorLayer(effectiveColor, normalizedSize, resolvedLayout),
|
|
5258
|
+
"box-border border border-refineui-thin",
|
|
5254
5259
|
useNeutralShellTypo && avatarTypoNeutral[normalizedSize],
|
|
5255
5260
|
innerClassName
|
|
5256
5261
|
),
|