boottent-design 0.1.74 → 0.1.76
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/README.md +2 -2
- package/dist/boottent-design.layout.cjs.js +1 -1
- package/dist/boottent-design.layout.es.js +5 -5
- package/dist/boottent-design.main.cjs.js +1 -1
- package/dist/boottent-design.main.es.js +8 -8
- package/dist/boottent-design.provider.cjs.js +1 -1
- package/dist/boottent-design.provider.es.js +1 -1
- package/dist/boottent-design.ui.cjs.js +1 -1
- package/dist/boottent-design.ui.es.js +2 -2
- package/dist/index-BfapRZRW.js +55 -0
- package/dist/index-BshWFt1Y.js +113 -0
- package/dist/{index-c5gYWcMr.js → index-CL21svHz.js} +23 -23
- package/dist/index-DDNLKhqC.cjs +1 -0
- package/dist/{index-_Ra1XrJP.cjs → index-KoPz-kAj.cjs} +1 -1
- package/dist/index-Ly7gJulk.cjs +1 -0
- package/dist/{portal-provider-Dre1fyyU.js → portal-provider-DQhrTkX-.js} +1 -1
- package/dist/{portal-provider-CVcvWZIe.cjs → portal-provider-HOCziFPu.cjs} +1 -1
- package/dist/{toggleButtonGroup-primitive-fPQcCbll.js → toggleButtonGroup-primitive-8daUH1wv.js} +1647 -1653
- package/dist/toggleButtonGroup-primitive-BXtN42o0.cjs +51 -0
- package/dist/types/main.d.ts +1 -2
- package/dist/types/types.d.ts +0 -1
- package/dist/types/ui.d.ts +1 -2
- package/package.json +1 -1
- package/dist/index-BXP6oKuL.js +0 -91
- package/dist/index-CZf57oSO.cjs +0 -1
- package/dist/index-D6YAvWdo.cjs +0 -1
- package/dist/index-DD8Ojcka.js +0 -77
- package/dist/toggleButtonGroup-primitive-DmpTCJ-d.cjs +0 -51
package/dist/index-BXP6oKuL.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import * as o from "react";
|
|
2
|
-
import { forwardRef as m } from "react";
|
|
3
|
-
import * as h from "react-dom";
|
|
4
|
-
import { jsx as c, Fragment as v } from "react/jsx-runtime";
|
|
5
|
-
function y(e, r) {
|
|
6
|
-
typeof e == "function" ? e(r) : e != null && (e.current = r);
|
|
7
|
-
}
|
|
8
|
-
function p(...e) {
|
|
9
|
-
return (r) => e.forEach((n) => y(n, r));
|
|
10
|
-
}
|
|
11
|
-
function P(...e) {
|
|
12
|
-
return o.useCallback(p(...e), e);
|
|
13
|
-
}
|
|
14
|
-
var d = o.forwardRef((e, r) => {
|
|
15
|
-
const { children: n, ...t } = e, i = o.Children.toArray(n), s = i.find(R);
|
|
16
|
-
if (s) {
|
|
17
|
-
const l = s.props.children, a = i.map((u) => u === s ? o.Children.count(l) > 1 ? o.Children.only(null) : o.isValidElement(l) ? l.props.children : null : u);
|
|
18
|
-
return /* @__PURE__ */ c(f, { ...t, ref: r, children: o.isValidElement(l) ? o.cloneElement(l, void 0, a) : null });
|
|
19
|
-
}
|
|
20
|
-
return /* @__PURE__ */ c(f, { ...t, ref: r, children: n });
|
|
21
|
-
});
|
|
22
|
-
d.displayName = "Slot";
|
|
23
|
-
var f = o.forwardRef((e, r) => {
|
|
24
|
-
const { children: n, ...t } = e;
|
|
25
|
-
if (o.isValidElement(n)) {
|
|
26
|
-
const i = E(n);
|
|
27
|
-
return o.cloneElement(n, {
|
|
28
|
-
...g(t, n.props),
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
ref: r ? p(r, i) : i
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
return o.Children.count(n) > 1 ? o.Children.only(null) : null;
|
|
34
|
-
});
|
|
35
|
-
f.displayName = "SlotClone";
|
|
36
|
-
var C = ({ children: e }) => /* @__PURE__ */ c(v, { children: e });
|
|
37
|
-
function R(e) {
|
|
38
|
-
return o.isValidElement(e) && e.type === C;
|
|
39
|
-
}
|
|
40
|
-
function g(e, r) {
|
|
41
|
-
const n = { ...r };
|
|
42
|
-
for (const t in r) {
|
|
43
|
-
const i = e[t], s = r[t];
|
|
44
|
-
/^on[A-Z]/.test(t) ? i && s ? n[t] = (...a) => {
|
|
45
|
-
s(...a), i(...a);
|
|
46
|
-
} : i && (n[t] = i) : t === "style" ? n[t] = { ...i, ...s } : t === "className" && (n[t] = [i, s].filter(Boolean).join(" "));
|
|
47
|
-
}
|
|
48
|
-
return { ...e, ...n };
|
|
49
|
-
}
|
|
50
|
-
function E(e) {
|
|
51
|
-
var t, i;
|
|
52
|
-
let r = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = r && "isReactWarning" in r && r.isReactWarning;
|
|
53
|
-
return n ? e.ref : (r = (i = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : i.get, n = r && "isReactWarning" in r && r.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
54
|
-
}
|
|
55
|
-
var w = [
|
|
56
|
-
"a",
|
|
57
|
-
"button",
|
|
58
|
-
"div",
|
|
59
|
-
"form",
|
|
60
|
-
"h2",
|
|
61
|
-
"h3",
|
|
62
|
-
"img",
|
|
63
|
-
"input",
|
|
64
|
-
"label",
|
|
65
|
-
"li",
|
|
66
|
-
"nav",
|
|
67
|
-
"ol",
|
|
68
|
-
"p",
|
|
69
|
-
"span",
|
|
70
|
-
"svg",
|
|
71
|
-
"ul"
|
|
72
|
-
], N = w.reduce((e, r) => {
|
|
73
|
-
const n = o.forwardRef((t, i) => {
|
|
74
|
-
const { asChild: s, ...l } = t, a = s ? d : r;
|
|
75
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c(a, { ...l, ref: i });
|
|
76
|
-
});
|
|
77
|
-
return n.displayName = `Primitive.${r}`, { ...e, [r]: n };
|
|
78
|
-
}, {});
|
|
79
|
-
function O(e, r) {
|
|
80
|
-
e && h.flushSync(() => e.dispatchEvent(r));
|
|
81
|
-
}
|
|
82
|
-
const V = m(({ ...e }, r) => /* @__PURE__ */ c("div", { ref: r, ...e }));
|
|
83
|
-
export {
|
|
84
|
-
V as B,
|
|
85
|
-
N as P,
|
|
86
|
-
d as S,
|
|
87
|
-
C as a,
|
|
88
|
-
p as c,
|
|
89
|
-
O as d,
|
|
90
|
-
P as u
|
|
91
|
-
};
|
package/dist/index-CZf57oSO.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const m=require("react"),h=require("react-dom"),a=require("react/jsx-runtime");function v(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const i=v(m),R=v(h);function g(e,t){typeof e=="function"?e(t):e!=null&&(e.current=t)}function f(...e){return t=>e.forEach(n=>g(n,t))}function b(...e){return i.useCallback(f(...e),e)}var p=i.forwardRef((e,t)=>{const{children:n,...r}=e,o=i.Children.toArray(n),s=o.find(C);if(s){const l=s.props.children,c=o.map(d=>d===s?i.Children.count(l)>1?i.Children.only(null):i.isValidElement(l)?l.props.children:null:d);return a.jsx(u,{...r,ref:t,children:i.isValidElement(l)?i.cloneElement(l,void 0,c):null})}return a.jsx(u,{...r,ref:t,children:n})});p.displayName="Slot";var u=i.forwardRef((e,t)=>{const{children:n,...r}=e;if(i.isValidElement(n)){const o=E(n);return i.cloneElement(n,{...j(r,n.props),ref:t?f(t,o):o})}return i.Children.count(n)>1?i.Children.only(null):null});u.displayName="SlotClone";var y=({children:e})=>a.jsx(a.Fragment,{children:e});function C(e){return i.isValidElement(e)&&e.type===y}function j(e,t){const n={...t};for(const r in t){const o=e[r],s=t[r];/^on[A-Z]/.test(r)?o&&s?n[r]=(...c)=>{s(...c),o(...c)}:o&&(n[r]=o):r==="style"?n[r]={...o,...s}:r==="className"&&(n[r]=[o,s].filter(Boolean).join(" "))}return{...e,...n}}function E(e){var r,o;let t=(r=Object.getOwnPropertyDescriptor(e.props,"ref"))==null?void 0:r.get,n=t&&"isReactWarning"in t&&t.isReactWarning;return n?e.ref:(t=(o=Object.getOwnPropertyDescriptor(e,"ref"))==null?void 0:o.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}var S=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","span","svg","ul"],O=S.reduce((e,t)=>{const n=i.forwardRef((r,o)=>{const{asChild:s,...l}=r,c=s?p:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),a.jsx(c,{...l,ref:o})});return n.displayName=`Primitive.${t}`,{...e,[t]:n}},{});function w(e,t){e&&R.flushSync(()=>e.dispatchEvent(t))}const P=m.forwardRef(({...e},t)=>a.jsx("div",{ref:t,...e}));exports.Box=P;exports.Primitive=O;exports.Slot=p;exports.Slottable=y;exports.composeRefs=f;exports.dispatchDiscreteCustomEvent=w;exports.useComposedRefs=b;
|
package/dist/index-D6YAvWdo.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const g=require("react"),a=require("./index-CZf57oSO.cjs"),i=require("react/jsx-runtime"),n=require("./boottent-design.utils.cjs.js");function j(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const o in t)if(o!=="default"){const s=Object.getOwnPropertyDescriptor(t,o);Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}return e.default=t,Object.freeze(e)}const m=j(g);var R="AspectRatio",d=m.forwardRef((t,e)=>{const{ratio:o=1/1,style:s,...c}=t;return i.jsx("div",{style:{position:"relative",width:"100%",paddingBottom:`${100/o}%`},"data-radix-aspect-ratio-wrapper":"",children:i.jsx(a.Primitive.div,{...c,ref:e,style:{...s,position:"absolute",top:0,right:0,bottom:0,left:0}})})});d.displayName=R;var v=d;const y=v,l=({className:t,...e})=>i.jsx(a.Box,{className:n.cn("flex",t),...e});l.Col=({className:t,...e})=>i.jsx(a.Box,{className:n.cn("flex flex-col items-start",t),...e});l.Row=({className:t,...e})=>i.jsx(a.Box,{className:n.cn("flex flex-row justify-start",t),...e});const B=({className:t,columns:e,rows:o,gap:s,style:c,...u})=>{const f=r=>r?r>=1&&r<=12?`grid-cols-${r}`:"grid-cols-auto":"",x=r=>r?r>=1&&r<=12?`grid-rows-${r} grid-flow-col`:"grid-rows-auto":"",p=s!==void 0?`${s/4}rem`:void 0;return i.jsx(a.Box,{className:n.cn("grid",f(e),x(o),t),style:{gap:p,...c},...u})};exports.AspectRatio=y;exports.FlexBox=l;exports.GridBox=B;
|
package/dist/index-DD8Ojcka.js
DELETED
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import * as x from "react";
|
|
2
|
-
import { P as g, B as s } from "./index-BXP6oKuL.js";
|
|
3
|
-
import { jsx as e } from "react/jsx-runtime";
|
|
4
|
-
import { cn as a } from "./boottent-design.utils.es.js";
|
|
5
|
-
var v = "AspectRatio", c = x.forwardRef(
|
|
6
|
-
(t, r) => {
|
|
7
|
-
const { ratio: l = 1 / 1, style: i, ...d } = t;
|
|
8
|
-
return /* @__PURE__ */ e(
|
|
9
|
-
"div",
|
|
10
|
-
{
|
|
11
|
-
style: {
|
|
12
|
-
// ensures inner element is contained
|
|
13
|
-
position: "relative",
|
|
14
|
-
// ensures padding bottom trick maths works
|
|
15
|
-
width: "100%",
|
|
16
|
-
paddingBottom: `${100 / l}%`
|
|
17
|
-
},
|
|
18
|
-
"data-radix-aspect-ratio-wrapper": "",
|
|
19
|
-
children: /* @__PURE__ */ e(
|
|
20
|
-
g.div,
|
|
21
|
-
{
|
|
22
|
-
...d,
|
|
23
|
-
ref: r,
|
|
24
|
-
style: {
|
|
25
|
-
...i,
|
|
26
|
-
// ensures children expand in ratio
|
|
27
|
-
position: "absolute",
|
|
28
|
-
top: 0,
|
|
29
|
-
right: 0,
|
|
30
|
-
bottom: 0,
|
|
31
|
-
left: 0
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
)
|
|
35
|
-
}
|
|
36
|
-
);
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
c.displayName = v;
|
|
40
|
-
var R = c;
|
|
41
|
-
const A = R, n = ({ className: t, ...r }) => /* @__PURE__ */ e(
|
|
42
|
-
s,
|
|
43
|
-
{
|
|
44
|
-
className: a("flex", t),
|
|
45
|
-
...r
|
|
46
|
-
}
|
|
47
|
-
);
|
|
48
|
-
n.Col = ({ className: t, ...r }) => /* @__PURE__ */ e(
|
|
49
|
-
s,
|
|
50
|
-
{
|
|
51
|
-
className: a("flex flex-col items-start", t),
|
|
52
|
-
...r
|
|
53
|
-
}
|
|
54
|
-
);
|
|
55
|
-
n.Row = ({ className: t, ...r }) => /* @__PURE__ */ e(
|
|
56
|
-
s,
|
|
57
|
-
{
|
|
58
|
-
className: a("flex flex-row justify-start", t),
|
|
59
|
-
...r
|
|
60
|
-
}
|
|
61
|
-
);
|
|
62
|
-
const B = ({ className: t, columns: r, rows: l, gap: i, style: d, ...f }) => {
|
|
63
|
-
const p = (o) => o ? o >= 1 && o <= 12 ? `grid-cols-${o}` : "grid-cols-auto" : "", m = (o) => o ? o >= 1 && o <= 12 ? `grid-rows-${o} grid-flow-col` : "grid-rows-auto" : "", u = i !== void 0 ? `${i / 4}rem` : void 0;
|
|
64
|
-
return /* @__PURE__ */ e(
|
|
65
|
-
s,
|
|
66
|
-
{
|
|
67
|
-
className: a("grid", p(r), m(l), t),
|
|
68
|
-
style: { gap: u, ...d },
|
|
69
|
-
...f
|
|
70
|
-
}
|
|
71
|
-
);
|
|
72
|
-
};
|
|
73
|
-
export {
|
|
74
|
-
A,
|
|
75
|
-
n as F,
|
|
76
|
-
B as G
|
|
77
|
-
};
|