@koide-labs/ui 0.0.10 → 0.0.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.
|
@@ -14,4 +14,4 @@ export interface StatusBannerProps extends Omit<useRender.ComponentProps<"div">,
|
|
|
14
14
|
/** Size, defaults to lg */
|
|
15
15
|
size?: Extract<Size, "md" | "lg">;
|
|
16
16
|
}
|
|
17
|
-
export declare function StatusBanner({ color, icon, title, description, size, render, ...props }: StatusBannerProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare function StatusBanner({ color, icon, title, description, size, render, className, ...props }: StatusBannerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as _, jsx as s } from "react/jsx-runtime";
|
|
3
|
-
import { c as
|
|
4
|
-
import { Heading as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { Text as
|
|
3
|
+
import { c as b } from "../../clsx-OuTLNxxd.js";
|
|
4
|
+
import { Heading as d } from "../heading/index.js";
|
|
5
|
+
import { Icon as g } from "../icon/index.js";
|
|
6
|
+
import { Text as p } from "../text/index.js";
|
|
7
7
|
import { View as i } from "../view/index.js";
|
|
8
8
|
import '../../index3.css';const t = {
|
|
9
9
|
"status-banner": "_status-banner_zygt6_1",
|
|
@@ -26,32 +26,34 @@ import '../../index3.css';const t = {
|
|
|
26
26
|
description: "md"
|
|
27
27
|
}
|
|
28
28
|
};
|
|
29
|
-
function
|
|
29
|
+
function w({
|
|
30
30
|
color: e,
|
|
31
31
|
icon: r,
|
|
32
32
|
title: o,
|
|
33
33
|
description: l,
|
|
34
34
|
size: n = "lg",
|
|
35
35
|
render: u,
|
|
36
|
-
|
|
36
|
+
className: c,
|
|
37
|
+
...m
|
|
37
38
|
}) {
|
|
38
39
|
return /* @__PURE__ */ _(
|
|
39
40
|
i,
|
|
40
41
|
{
|
|
41
42
|
render: u,
|
|
42
|
-
...
|
|
43
|
+
...m,
|
|
43
44
|
color: e,
|
|
44
|
-
className:
|
|
45
|
+
className: b(
|
|
45
46
|
t["status-banner"],
|
|
46
47
|
t[`status-banner_size_${n}`],
|
|
47
|
-
e ? t["status-banner_variant_colorway"] : t["status-banner_variant_neutral"]
|
|
48
|
+
e ? t["status-banner_variant_colorway"] : t["status-banner_variant_neutral"],
|
|
49
|
+
c
|
|
48
50
|
),
|
|
49
51
|
children: [
|
|
50
|
-
r ? /* @__PURE__ */ s(
|
|
52
|
+
r ? /* @__PURE__ */ s(g, { name: r, size: a[n].icon }) : null,
|
|
51
53
|
/* @__PURE__ */ _(i, { className: t["status-banner__content"], children: [
|
|
52
|
-
/* @__PURE__ */ s(
|
|
54
|
+
/* @__PURE__ */ s(d, { level: 1, size: a[n].title, color: "inherit", children: o }),
|
|
53
55
|
/* @__PURE__ */ s(
|
|
54
|
-
|
|
56
|
+
p,
|
|
55
57
|
{
|
|
56
58
|
className: t["status-banner__description"],
|
|
57
59
|
multiline: !0,
|
|
@@ -66,5 +68,5 @@ function x({
|
|
|
66
68
|
);
|
|
67
69
|
}
|
|
68
70
|
export {
|
|
69
|
-
|
|
71
|
+
w as StatusBanner
|
|
70
72
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@koide-labs/ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"exports": {
|
|
@@ -29,23 +29,6 @@
|
|
|
29
29
|
"sideEffects": [
|
|
30
30
|
"**/*.css"
|
|
31
31
|
],
|
|
32
|
-
"packageManager": "pnpm@10.19.0",
|
|
33
|
-
"scripts": {
|
|
34
|
-
"dev": "vite",
|
|
35
|
-
"build": "npm-run-all build:icons build:vite",
|
|
36
|
-
"build:icons": "tsx ./scripts/build-icon-types.ts",
|
|
37
|
-
"build:vite": "tsc -b && vite build",
|
|
38
|
-
"preview": "vite preview",
|
|
39
|
-
"prepare": "husky",
|
|
40
|
-
"typecheck": "tsc -b --noEmit",
|
|
41
|
-
"lint": "npm-run-all --parallel lint:*",
|
|
42
|
-
"lint:ts": "eslint .",
|
|
43
|
-
"lint:style": "stylelint src/**/*.module.css",
|
|
44
|
-
"format": "prettier --write .",
|
|
45
|
-
"storybook": "storybook dev -p 6006",
|
|
46
|
-
"build-storybook": "storybook build",
|
|
47
|
-
"prepublishOnly": "pnpm run build"
|
|
48
|
-
},
|
|
49
32
|
"dependencies": {
|
|
50
33
|
"@base-ui/react": "^1.0.0",
|
|
51
34
|
"@radix-ui/react-visually-hidden": "^1.2.4",
|
|
@@ -116,5 +99,19 @@
|
|
|
116
99
|
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
117
100
|
"vite-tsconfig-paths": "^6.0.3",
|
|
118
101
|
"vitest": "^4.0.16"
|
|
102
|
+
},
|
|
103
|
+
"scripts": {
|
|
104
|
+
"dev": "vite",
|
|
105
|
+
"build": "npm-run-all build:icons build:vite",
|
|
106
|
+
"build:icons": "tsx ./scripts/build-icon-types.ts",
|
|
107
|
+
"build:vite": "tsc -b && vite build",
|
|
108
|
+
"preview": "vite preview",
|
|
109
|
+
"typecheck": "tsc -b --noEmit",
|
|
110
|
+
"lint": "npm-run-all --parallel lint:*",
|
|
111
|
+
"lint:ts": "eslint .",
|
|
112
|
+
"lint:style": "stylelint src/**/*.module.css",
|
|
113
|
+
"format": "prettier --write .",
|
|
114
|
+
"storybook": "storybook dev -p 6006",
|
|
115
|
+
"build-storybook": "storybook build"
|
|
119
116
|
}
|
|
120
|
-
}
|
|
117
|
+
}
|