zuii 1.1.0 → 1.2.0
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/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +4 -0
- package/dist/components/Button/react/index.d.ts +36 -3
- package/dist/components/Button/react/index.js +27 -12
- package/dist/components/Button/style/button.css +1 -1
- package/dist/components/Icon/react/index.d.ts +26 -0
- package/dist/components/Icon/react/index.js +13 -0
- package/dist/components/Icon/style/icon.css +1 -0
- package/dist/core/styles/main.css +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -2
- package/dist/node_modules/.pnpm/@restart_ui@1.9.4_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@restart/ui/esm/Button.js +78 -0
- package/dist/node_modules/.pnpm/classnames@2.5.1/node_modules/classnames/index.js +37 -0
- package/dist/node_modules/.pnpm/react-bootstrap@2.10.10_@types_react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-bootstrap/esm/Button.js +34 -0
- package/dist/node_modules/.pnpm/react-bootstrap@2.10.10_@types_react@19.2.10_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-bootstrap/esm/ThemeProvider.js +23 -0
- package/package.json +7 -3
- package/dist/components/Button/js/Button.d.ts +0 -6
- package/dist/components/Button/js/Button.js +0 -7
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { __module as s } from "../../../../../_virtual/index2.js";
|
|
2
|
+
var u;
|
|
3
|
+
function c() {
|
|
4
|
+
return u ? s.exports : (u = 1, (function(i) {
|
|
5
|
+
(function() {
|
|
6
|
+
var f = {}.hasOwnProperty;
|
|
7
|
+
function n() {
|
|
8
|
+
for (var r = "", t = 0; t < arguments.length; t++) {
|
|
9
|
+
var e = arguments[t];
|
|
10
|
+
e && (r = o(r, a(e)));
|
|
11
|
+
}
|
|
12
|
+
return r;
|
|
13
|
+
}
|
|
14
|
+
function a(r) {
|
|
15
|
+
if (typeof r == "string" || typeof r == "number")
|
|
16
|
+
return r;
|
|
17
|
+
if (typeof r != "object")
|
|
18
|
+
return "";
|
|
19
|
+
if (Array.isArray(r))
|
|
20
|
+
return n.apply(null, r);
|
|
21
|
+
if (r.toString !== Object.prototype.toString && !r.toString.toString().includes("[native code]"))
|
|
22
|
+
return r.toString();
|
|
23
|
+
var t = "";
|
|
24
|
+
for (var e in r)
|
|
25
|
+
f.call(r, e) && r[e] && (t = o(t, e));
|
|
26
|
+
return t;
|
|
27
|
+
}
|
|
28
|
+
function o(r, t) {
|
|
29
|
+
return t ? r ? r + " " + t : r + t : r;
|
|
30
|
+
}
|
|
31
|
+
i.exports ? (n.default = n, i.exports = n) : window.classNames = n;
|
|
32
|
+
})();
|
|
33
|
+
})(s), s.exports);
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
c as __require
|
|
37
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import u from "../../../../../../_virtual/index.js";
|
|
2
|
+
import * as l from "react";
|
|
3
|
+
import { useButtonProps as N } from "../../../../@restart_ui@1.9.4_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/@restart/ui/esm/Button.js";
|
|
4
|
+
import { useBootstrapPrefix as x } from "./ThemeProvider.js";
|
|
5
|
+
import { jsx as B } from "react/jsx-runtime";
|
|
6
|
+
const $ = /* @__PURE__ */ l.forwardRef(({
|
|
7
|
+
as: m,
|
|
8
|
+
bsPrefix: s,
|
|
9
|
+
variant: e = "primary",
|
|
10
|
+
size: a,
|
|
11
|
+
active: f = !1,
|
|
12
|
+
disabled: t = !1,
|
|
13
|
+
className: n,
|
|
14
|
+
...o
|
|
15
|
+
}, p) => {
|
|
16
|
+
const r = x(s, "btn"), [c, {
|
|
17
|
+
tagName: i
|
|
18
|
+
}] = N({
|
|
19
|
+
tagName: m,
|
|
20
|
+
disabled: t,
|
|
21
|
+
...o
|
|
22
|
+
});
|
|
23
|
+
return /* @__PURE__ */ B(i, {
|
|
24
|
+
...c,
|
|
25
|
+
...o,
|
|
26
|
+
ref: p,
|
|
27
|
+
disabled: t,
|
|
28
|
+
className: u(n, r, f && "active", e && `${r}-${e}`, a && `${r}-${a}`, o.href && t && "disabled")
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
$.displayName = "Button";
|
|
32
|
+
export {
|
|
33
|
+
$ as default
|
|
34
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import * as s from "react";
|
|
2
|
+
import { useContext as n } from "react";
|
|
3
|
+
import "react/jsx-runtime";
|
|
4
|
+
const m = ["xxl", "xl", "lg", "md", "sm", "xs"], x = "xs", o = /* @__PURE__ */ s.createContext({
|
|
5
|
+
prefixes: {},
|
|
6
|
+
breakpoints: m,
|
|
7
|
+
minBreakpoint: x
|
|
8
|
+
}), {
|
|
9
|
+
Consumer: c,
|
|
10
|
+
Provider: a
|
|
11
|
+
} = o;
|
|
12
|
+
function T(t, e) {
|
|
13
|
+
const {
|
|
14
|
+
prefixes: r
|
|
15
|
+
} = n(o);
|
|
16
|
+
return t || r[e] || e;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
m as DEFAULT_BREAKPOINTS,
|
|
20
|
+
x as DEFAULT_MIN_BREAKPOINT,
|
|
21
|
+
c as ThemeConsumer,
|
|
22
|
+
T as useBootstrapPrefix
|
|
23
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zuii",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Bibliothèque de composants UI légère, intuitive et modulaire pour les interfaces web modernes.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -20,7 +20,8 @@
|
|
|
20
20
|
"license": "MIT",
|
|
21
21
|
"peerDependencies": {
|
|
22
22
|
"react": ">=16.8.0",
|
|
23
|
-
"react-dom": ">=16.8.0"
|
|
23
|
+
"react-dom": ">=16.8.0",
|
|
24
|
+
"react-bootstrap": ">=2.10.10"
|
|
24
25
|
},
|
|
25
26
|
"devDependencies": {
|
|
26
27
|
"@semantic-release/changelog": "^6.0.3",
|
|
@@ -32,12 +33,15 @@
|
|
|
32
33
|
"@types/react-dom": "^19.2.3",
|
|
33
34
|
"@vitejs/plugin-react": "^5.1.2",
|
|
34
35
|
"react": "^19.2.4",
|
|
36
|
+
"react-bootstrap": "^2.10.10",
|
|
35
37
|
"react-dom": "^19.2.4",
|
|
36
38
|
"sass": "^1.97.3",
|
|
37
39
|
"semantic-release": "^25.0.2",
|
|
38
40
|
"typescript": "^5.9.3",
|
|
39
41
|
"vite": "^7.3.1",
|
|
40
42
|
"vite-plugin-dts": "^4.5.4",
|
|
41
|
-
"vite-plugin-lib-inject-css": "^2.2.2"
|
|
43
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
44
|
+
"bootstrap": "^5.3.8",
|
|
45
|
+
"lucide-static": "^0.563.0"
|
|
42
46
|
}
|
|
43
47
|
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
const n = (t) => {
|
|
2
|
-
const e = document.createElement("button");
|
|
3
|
-
return e.innerText = t.label, e.classList.add("z-btn"), t.variant && e.classList.add(`is-${t.variant}`), t.onClick && e.addEventListener("click", t.onClick), e;
|
|
4
|
-
};
|
|
5
|
-
export {
|
|
6
|
-
n as renderButton
|
|
7
|
-
};
|