@pollinations/ui 0.1.0-alpha.10 → 0.1.0-alpha.11
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.browser.min.js +1 -1
- package/dist/index.browser.min.js.map +1 -1
- package/dist/index.cjs +28 -25
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +5 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.js +28 -25
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -787,13 +787,17 @@ declare const toneClasses: {
|
|
|
787
787
|
readonly neutral: "polli:bg-theme-bg-subtle polli:text-theme-text-strong";
|
|
788
788
|
readonly paid: "polli-wallet-chip-paid";
|
|
789
789
|
readonly tier: "polli-wallet-chip-tier";
|
|
790
|
+
readonly info: "polli:bg-intent-info-bg-light polli:text-intent-info-text";
|
|
790
791
|
};
|
|
791
792
|
type IconTileProps = {
|
|
792
793
|
icon: ComponentType<IconProps>;
|
|
793
794
|
tone?: keyof typeof toneClasses;
|
|
795
|
+
/** Any colour (e.g. a modality colour): the icon takes it and the tile a
|
|
796
|
+
* pale wash of it. Overrides `tone`. */
|
|
797
|
+
color?: string;
|
|
794
798
|
};
|
|
795
799
|
/** A 44px rounded square holding one icon, leading a feature or info row. */
|
|
796
|
-
declare function IconTile({ icon: Icon, tone }: IconTileProps): react_jsx_runtime.JSX.Element;
|
|
800
|
+
declare function IconTile({ icon: Icon, tone, color, }: IconTileProps): react_jsx_runtime.JSX.Element;
|
|
797
801
|
|
|
798
802
|
type BaseInlineLinkProps = {
|
|
799
803
|
/** Set explicitly for non-http external links, or false for custom routing components. */
|
package/dist/index.d.ts
CHANGED
|
@@ -787,13 +787,17 @@ declare const toneClasses: {
|
|
|
787
787
|
readonly neutral: "polli:bg-theme-bg-subtle polli:text-theme-text-strong";
|
|
788
788
|
readonly paid: "polli-wallet-chip-paid";
|
|
789
789
|
readonly tier: "polli-wallet-chip-tier";
|
|
790
|
+
readonly info: "polli:bg-intent-info-bg-light polli:text-intent-info-text";
|
|
790
791
|
};
|
|
791
792
|
type IconTileProps = {
|
|
792
793
|
icon: ComponentType<IconProps>;
|
|
793
794
|
tone?: keyof typeof toneClasses;
|
|
795
|
+
/** Any colour (e.g. a modality colour): the icon takes it and the tile a
|
|
796
|
+
* pale wash of it. Overrides `tone`. */
|
|
797
|
+
color?: string;
|
|
794
798
|
};
|
|
795
799
|
/** A 44px rounded square holding one icon, leading a feature or info row. */
|
|
796
|
-
declare function IconTile({ icon: Icon, tone }: IconTileProps): react_jsx_runtime.JSX.Element;
|
|
800
|
+
declare function IconTile({ icon: Icon, tone, color, }: IconTileProps): react_jsx_runtime.JSX.Element;
|
|
797
801
|
|
|
798
802
|
type BaseInlineLinkProps = {
|
|
799
803
|
/** Set explicitly for non-http external links, or false for custom routing components. */
|
package/dist/index.js
CHANGED
|
@@ -4110,28 +4110,22 @@ var StatCard = ({
|
|
|
4110
4110
|
labelClassName,
|
|
4111
4111
|
valueClassName,
|
|
4112
4112
|
detailClassName
|
|
4113
|
-
}) => variant === "display" ? /* @__PURE__ */ jsxs32(
|
|
4114
|
-
"div",
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
children: label
|
|
4130
|
-
}
|
|
4131
|
-
)
|
|
4132
|
-
]
|
|
4133
|
-
}
|
|
4134
|
-
) : /* @__PURE__ */ jsxs32("div", { className: cn("polli:text-sm", className), children: [
|
|
4113
|
+
}) => variant === "display" ? /* @__PURE__ */ jsxs32("div", { className: cn("polli:flex polli:flex-col polli:gap-1", className), children: [
|
|
4114
|
+
/* @__PURE__ */ jsx45("div", { className: cn(valueVariantClasses.display, valueClassName), children: value }),
|
|
4115
|
+
/* @__PURE__ */ jsx45(
|
|
4116
|
+
Text,
|
|
4117
|
+
{
|
|
4118
|
+
as: "div",
|
|
4119
|
+
size: "sm",
|
|
4120
|
+
tone: "soft",
|
|
4121
|
+
className: cn(
|
|
4122
|
+
"polli:flex polli:items-center polli:gap-2 polli:leading-tight",
|
|
4123
|
+
labelClassName
|
|
4124
|
+
),
|
|
4125
|
+
children: label
|
|
4126
|
+
}
|
|
4127
|
+
)
|
|
4128
|
+
] }) : /* @__PURE__ */ jsxs32("div", { className: cn("polli:text-sm", className), children: [
|
|
4135
4129
|
/* @__PURE__ */ jsx45(
|
|
4136
4130
|
Text,
|
|
4137
4131
|
{
|
|
@@ -4676,16 +4670,25 @@ var toneClasses = {
|
|
|
4676
4670
|
neutral: "polli:bg-theme-bg-subtle polli:text-theme-text-strong",
|
|
4677
4671
|
// The wallet's Paid and Quest Pollen colours, for rows about money.
|
|
4678
4672
|
paid: "polli-wallet-chip-paid",
|
|
4679
|
-
tier: "polli-wallet-chip-tier"
|
|
4673
|
+
tier: "polli-wallet-chip-tier",
|
|
4674
|
+
info: "polli:bg-intent-info-bg-light polli:text-intent-info-text"
|
|
4680
4675
|
};
|
|
4681
|
-
function IconTile({
|
|
4676
|
+
function IconTile({
|
|
4677
|
+
icon: Icon,
|
|
4678
|
+
tone = "neutral",
|
|
4679
|
+
color
|
|
4680
|
+
}) {
|
|
4682
4681
|
return /* @__PURE__ */ jsx53(
|
|
4683
4682
|
"span",
|
|
4684
4683
|
{
|
|
4685
4684
|
className: cn(
|
|
4686
4685
|
"polli:flex polli:size-11 polli:shrink-0 polli:items-center polli:justify-center polli:rounded-xl",
|
|
4687
|
-
toneClasses[tone]
|
|
4686
|
+
!color && toneClasses[tone]
|
|
4688
4687
|
),
|
|
4688
|
+
style: color ? {
|
|
4689
|
+
color,
|
|
4690
|
+
backgroundColor: `color-mix(in oklab, ${color} 14%, transparent)`
|
|
4691
|
+
} : void 0,
|
|
4689
4692
|
children: /* @__PURE__ */ jsx53(Icon, { "aria-hidden": "true", className: "polli:size-6" })
|
|
4690
4693
|
}
|
|
4691
4694
|
);
|