@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.cjs
CHANGED
|
@@ -654,7 +654,7 @@ var componentColorTokens = {
|
|
|
654
654
|
},
|
|
655
655
|
chip: {
|
|
656
656
|
default: {
|
|
657
|
-
background: semanticToken("
|
|
657
|
+
background: semanticToken("backgroundSurfaceSelected"),
|
|
658
658
|
foreground: semanticToken("foregroundBrand"),
|
|
659
659
|
hoverBackground: semanticToken("backgroundPrimaryHover"),
|
|
660
660
|
activeBackground: semanticToken("backgroundPrimaryActive"),
|
|
@@ -684,7 +684,7 @@ var componentColorTokens = {
|
|
|
684
684
|
},
|
|
685
685
|
tag: {
|
|
686
686
|
default: {
|
|
687
|
-
background: semanticToken("
|
|
687
|
+
background: semanticToken("backgroundSurfaceSelected"),
|
|
688
688
|
foreground: semanticToken("foregroundBrand")
|
|
689
689
|
},
|
|
690
690
|
outline: {
|
|
@@ -982,6 +982,7 @@ var componentColorTokens = {
|
|
|
982
982
|
},
|
|
983
983
|
/** Cell fill only — Global tint per MCP `Color`. Glyph/initials ink: `avatar.icon`. */
|
|
984
984
|
shell: {
|
|
985
|
+
border: semanticToken("borderSubtle"),
|
|
985
986
|
background: {
|
|
986
987
|
neutral: paletteToken("neutral300"),
|
|
987
988
|
blue: paletteToken("blue100"),
|
|
@@ -2317,7 +2318,7 @@ var import_clsx11 = require("clsx");
|
|
|
2317
2318
|
var import_clsx10 = require("clsx");
|
|
2318
2319
|
var badgeVariantClass = {
|
|
2319
2320
|
default: "bg-refineui-alias-background-brand text-refineui-alias-foreground-inversed",
|
|
2320
|
-
neutral: "bg-refineui-alias-background-
|
|
2321
|
+
neutral: "bg-refineui-alias-background-brand-subtle text-refineui-alias-foreground-brand-strong",
|
|
2321
2322
|
outline: "border-refineui-thin border-refineui-alias-border-default border bg-transparent text-refineui-alias-foreground-primary box-border",
|
|
2322
2323
|
success: "bg-refineui-alias-background-success text-refineui-alias-foreground-inversed",
|
|
2323
2324
|
warning: "bg-refineui-alias-background-warning text-refineui-alias-foreground-inversed",
|
|
@@ -4126,13 +4127,13 @@ var import_clsx30 = require("clsx");
|
|
|
4126
4127
|
// src/recipes/chip.recipe.ts
|
|
4127
4128
|
var import_tokens9 = require("@refineui/tokens");
|
|
4128
4129
|
var chipVariantClass = {
|
|
4129
|
-
default: "border-none bg-refineui-alias-background-surface text-refineui-alias-foreground-brand",
|
|
4130
|
-
outline: "border-refineui-thin border-refineui-alias-border-default box-border bg-transparent text-refineui-alias-foreground-brand",
|
|
4130
|
+
default: "border-none bg-refineui-alias-background-surface-selected text-refineui-alias-foreground-brand",
|
|
4131
|
+
outline: "border border-refineui-thin border-refineui-alias-border-default box-border bg-transparent text-refineui-alias-foreground-brand",
|
|
4131
4132
|
filled: "border-none bg-refineui-alias-background-brand text-refineui-alias-foreground-inversed"
|
|
4132
4133
|
};
|
|
4133
4134
|
var chipDisabledVariantClass = {
|
|
4134
4135
|
default: "border-none bg-refineui-alias-background-surface-disabled text-refineui-alias-foreground-disabled",
|
|
4135
|
-
outline: "border-refineui-thin border-refineui-alias-border-disabled box-border bg-transparent text-refineui-alias-foreground-disabled",
|
|
4136
|
+
outline: "border border-refineui-thin border-refineui-alias-border-disabled box-border bg-transparent text-refineui-alias-foreground-disabled",
|
|
4136
4137
|
filled: "border-none bg-refineui-alias-background-surface-disabled text-refineui-alias-foreground-disabled"
|
|
4137
4138
|
};
|
|
4138
4139
|
var chipSizeClass = {
|
|
@@ -5245,15 +5246,18 @@ var avatarShellInitialsForegroundColor = {
|
|
|
5245
5246
|
yellow: (0, import_color4.resolveColorTokenValue)(componentColorTokens.avatar.icon.yellow)
|
|
5246
5247
|
};
|
|
5247
5248
|
var avatarNeutralForegroundColor = (0, import_color4.resolveColorTokenValue)(componentColorTokens.avatar.icon.neutral);
|
|
5249
|
+
var avatarShellBorderColor = (0, import_color4.resolveColorTokenValue)(componentColorTokens.avatar.shell.border);
|
|
5248
5250
|
function resolveAvatarShellStyle(color, layout) {
|
|
5249
5251
|
if (layout === "initials") {
|
|
5250
5252
|
return {
|
|
5251
5253
|
backgroundColor: avatarShellBackgroundColor[color],
|
|
5252
|
-
color: avatarShellInitialsForegroundColor[color]
|
|
5254
|
+
color: avatarShellInitialsForegroundColor[color],
|
|
5255
|
+
borderColor: avatarShellInitialsForegroundColor[color]
|
|
5253
5256
|
};
|
|
5254
5257
|
}
|
|
5255
5258
|
return {
|
|
5256
|
-
backgroundColor: avatarShellBackgroundColor[color]
|
|
5259
|
+
backgroundColor: avatarShellBackgroundColor[color],
|
|
5260
|
+
borderColor: avatarShellBorderColor
|
|
5257
5261
|
};
|
|
5258
5262
|
}
|
|
5259
5263
|
function resolveAvatarShellColorLayer(_color, size, layout) {
|
|
@@ -5498,6 +5502,7 @@ function Avatar({
|
|
|
5498
5502
|
className: (0, import_clsx36.clsx)(
|
|
5499
5503
|
AVATAR_INNER_MASK,
|
|
5500
5504
|
resolveAvatarShellColorLayer(effectiveColor, normalizedSize, resolvedLayout),
|
|
5505
|
+
"box-border border border-refineui-thin",
|
|
5501
5506
|
useNeutralShellTypo && avatarTypoNeutral[normalizedSize],
|
|
5502
5507
|
innerClassName
|
|
5503
5508
|
),
|