@bouko/react 2.7.8 → 2.7.9
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/components/progress.d.ts +6 -0
- package/dist/components/progress.js +8 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "@bouko/style";
|
|
3
|
+
const ProgressBar = ({ style, progress }) => (_jsx("div", { className: cn(styles.container, style), children: _jsx("div", { className: styles.filled, style: { width: (progress * 100) + "%" } }) }));
|
|
4
|
+
const styles = {
|
|
5
|
+
container: "flex grow h-1 rounded-full bg-gray-800/70 overflow-hidden",
|
|
6
|
+
filled: "h-full bg-accent"
|
|
7
|
+
};
|
|
8
|
+
export default ProgressBar;
|
package/dist/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { default as MultipleChoice } from "./components/multiple-choice";
|
|
|
5
5
|
export { default as Attachment } from "./components/attachment";
|
|
6
6
|
export { default as CheckBox } from "./components/checkbox";
|
|
7
7
|
export { default as FadeCarousel } from "./components/fade-carousel";
|
|
8
|
+
export { default as ProgressBar } from "./components/progress";
|
|
8
9
|
export * from "./components";
|
|
9
10
|
export * from "./components/search-bar";
|
|
10
11
|
export * from "./core/types";
|
package/dist/index.js
CHANGED
|
@@ -5,6 +5,7 @@ export { default as MultipleChoice } from "./components/multiple-choice";
|
|
|
5
5
|
export { default as Attachment } from "./components/attachment";
|
|
6
6
|
export { default as CheckBox } from "./components/checkbox";
|
|
7
7
|
export { default as FadeCarousel } from "./components/fade-carousel";
|
|
8
|
+
export { default as ProgressBar } from "./components/progress";
|
|
8
9
|
export * from "./components";
|
|
9
10
|
export * from "./components/search-bar";
|
|
10
11
|
export * from "./core/types";
|