@yeverlibs/ds 1.0.0 → 1.0.2
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.js +12 -37
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -37
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +558 -19
- package/dist/styles.css.map +1 -1
- package/package.json +3 -1
package/dist/index.mjs
CHANGED
|
@@ -4,6 +4,7 @@ import * as React107 from 'react';
|
|
|
4
4
|
import React107__default, { forwardRef, createContext, useState, useEffect, memo, useCallback, useContext, useRef, Suspense } from 'react';
|
|
5
5
|
import { usePathname, useRouter, useSearchParams } from 'next/navigation';
|
|
6
6
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
7
|
+
import tw5 from 'tailwind-styled-components';
|
|
7
8
|
import Image4 from 'next/image';
|
|
8
9
|
import ReactDOM from 'react-dom';
|
|
9
10
|
import { toast } from 'sonner';
|
|
@@ -3132,29 +3133,6 @@ function Yever(props) {
|
|
|
3132
3133
|
var MemoYever = React107.memo(Yever);
|
|
3133
3134
|
var Yever_default = MemoYever;
|
|
3134
3135
|
var Spinner2 = ({ type }) => type === "loading" ? /* @__PURE__ */ jsx(LoadingSpinner_default, { className: "animate-spin" }) : /* @__PURE__ */ jsx(Spinner_default, { className: "animate-spin" });
|
|
3135
|
-
var g = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "big", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "keygen", "label", "legend", "li", "link", "main", "map", "mark", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rp", "rt", "ruby", "s", "samp", "script", "section", "select", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr", "circle", "clipPath", "defs", "ellipse", "foreignObject", "g", "image", "line", "linearGradient", "marker", "mask", "path", "pattern", "polygon", "polyline", "radialGradient", "rect", "stop", "svg", "text", "tspan"];
|
|
3136
|
-
var y = g;
|
|
3137
|
-
var P = Symbol("isTwElement?");
|
|
3138
|
-
var b = (e, n) => e.reduce((r, o, t) => r.concat(o || [], n[t] || []), []);
|
|
3139
|
-
var S = (e, n = "") => {
|
|
3140
|
-
let r = e.join(" ").trim().replace(/\n/g, " ").replace(/\s{2,}/g, " ").split(" ").filter((t) => t !== ","), o = n ? n.split(" ") : [];
|
|
3141
|
-
return twMerge(...r.concat(o).filter((t) => t !== " "));
|
|
3142
|
-
};
|
|
3143
|
-
var O = ([e]) => e.charAt(0) !== "$";
|
|
3144
|
-
var c = (e) => e[P] === true;
|
|
3145
|
-
var C = (e) => (n, ...r) => {
|
|
3146
|
-
let o = (t = []) => {
|
|
3147
|
-
let i = React107__default.forwardRef((a, u) => {
|
|
3148
|
-
let { $as: p = e, style: x = {}, ...s } = a, m = c(e) ? e : p, w = t ? t.reduce((l, d) => Object.assign(l, typeof d == "function" ? d(a) : d), {}) : {}, f = c(m) ? s : Object.fromEntries(Object.entries(s).filter(O));
|
|
3149
|
-
return React107__default.createElement(m, { ...f, style: { ...w, ...x }, ref: u, className: S(b(n, r.map((l) => l({ ...s, $as: p }))), s.className), ...c(e) ? { $as: p } : {} });
|
|
3150
|
-
});
|
|
3151
|
-
return i[P] = true, typeof e != "string" ? i.displayName = e.displayName || e.name || "tw.Component" : i.displayName = "tw." + e, i.withStyle = (a) => o(t.concat(a)), i;
|
|
3152
|
-
};
|
|
3153
|
-
return o();
|
|
3154
|
-
};
|
|
3155
|
-
var A = y.reduce((e, n) => ({ ...e, [n]: C(n) }), {});
|
|
3156
|
-
var h = Object.assign(C, A);
|
|
3157
|
-
var F = h;
|
|
3158
3136
|
|
|
3159
3137
|
// src/_design-system/button/helpers.ts
|
|
3160
3138
|
var getSizeStyles = ($size) => {
|
|
@@ -3289,7 +3267,7 @@ var getTooltipStyles = ($tooltip, $tooltipPosition = "top") => {
|
|
|
3289
3267
|
};
|
|
3290
3268
|
|
|
3291
3269
|
// src/_design-system/button/style.ts
|
|
3292
|
-
var ButtonStyled =
|
|
3270
|
+
var ButtonStyled = tw5.button`
|
|
3293
3271
|
w-full
|
|
3294
3272
|
flex
|
|
3295
3273
|
items-center
|
|
@@ -3351,9 +3329,7 @@ var Button = ({
|
|
|
3351
3329
|
}
|
|
3352
3330
|
);
|
|
3353
3331
|
};
|
|
3354
|
-
|
|
3355
|
-
// src/_design-system/alert/styles.ts
|
|
3356
|
-
var AlertContainer = F.div`
|
|
3332
|
+
var AlertContainer = tw5.div`
|
|
3357
3333
|
flex
|
|
3358
3334
|
flex-col
|
|
3359
3335
|
w-full
|
|
@@ -3430,7 +3406,7 @@ var Avatar = ({ name, src, size = "large", className }) => {
|
|
|
3430
3406
|
}
|
|
3431
3407
|
);
|
|
3432
3408
|
};
|
|
3433
|
-
var BoxBase =
|
|
3409
|
+
var BoxBase = tw5.div`
|
|
3434
3410
|
${({ className }) => cn("border border-gray-300 bg-white rounded-lg p-4 md:p-6 w-full", className)}
|
|
3435
3411
|
`;
|
|
3436
3412
|
var Box = forwardRef((props, ref) => {
|
|
@@ -3643,7 +3619,7 @@ var getCaretPosition = (position) => {
|
|
|
3643
3619
|
};
|
|
3644
3620
|
|
|
3645
3621
|
// src/_design-system/tooltip/style.ts
|
|
3646
|
-
var TooltipContainer =
|
|
3622
|
+
var TooltipContainer = tw5.span`
|
|
3647
3623
|
absolute
|
|
3648
3624
|
z-[70]
|
|
3649
3625
|
w-auto
|
|
@@ -3658,7 +3634,7 @@ var TooltipContainer = F.span`
|
|
|
3658
3634
|
${({ $position }) => getTooltipPosition($position)}
|
|
3659
3635
|
${({ $wFit }) => $wFit && "!w-fit !max-w-fit !min-w-fit"}
|
|
3660
3636
|
`;
|
|
3661
|
-
|
|
3637
|
+
tw5.span`
|
|
3662
3638
|
border-transparent
|
|
3663
3639
|
absolute
|
|
3664
3640
|
h-0
|
|
@@ -4389,12 +4365,12 @@ var getSizeStyles2 = ($size) => {
|
|
|
4389
4365
|
};
|
|
4390
4366
|
|
|
4391
4367
|
// src/_design-system/form/input/style.ts
|
|
4392
|
-
var LabelStyled =
|
|
4368
|
+
var LabelStyled = tw5.label`
|
|
4393
4369
|
block
|
|
4394
4370
|
text-gray-900
|
|
4395
4371
|
text-sm
|
|
4396
4372
|
`;
|
|
4397
|
-
var InputWrapperStyled =
|
|
4373
|
+
var InputWrapperStyled = tw5.div`
|
|
4398
4374
|
flex
|
|
4399
4375
|
flex-col
|
|
4400
4376
|
relative
|
|
@@ -4405,7 +4381,7 @@ var InputWrapperStyled = F.div`
|
|
|
4405
4381
|
[&_input]:text-[16px]
|
|
4406
4382
|
${(props) => getIconDirectionStyles(props.$iconDirection)}
|
|
4407
4383
|
`;
|
|
4408
|
-
var InputStyled =
|
|
4384
|
+
var InputStyled = tw5.input`
|
|
4409
4385
|
w-full
|
|
4410
4386
|
bg-none
|
|
4411
4387
|
text-sm
|
|
@@ -5781,7 +5757,7 @@ var getIconStyles2 = ($iconPosition, $hasIcon) => {
|
|
|
5781
5757
|
};
|
|
5782
5758
|
|
|
5783
5759
|
// src/_design-system/link/style.ts
|
|
5784
|
-
var LinkStyled =
|
|
5760
|
+
var LinkStyled = tw5(Link2)`
|
|
5785
5761
|
w-full
|
|
5786
5762
|
flex
|
|
5787
5763
|
items-center
|
|
@@ -5967,9 +5943,7 @@ var Ribbon = ({ className, value, type, ...props }) => {
|
|
|
5967
5943
|
)
|
|
5968
5944
|
] });
|
|
5969
5945
|
};
|
|
5970
|
-
|
|
5971
|
-
// src/_design-system/separator/index.ts
|
|
5972
|
-
var Separator = F.hr`
|
|
5946
|
+
var Separator = tw5.hr`
|
|
5973
5947
|
border-gray-300
|
|
5974
5948
|
`;
|
|
5975
5949
|
var StatusBadge = ({ successTyples, warningTypes, dangerTypes, type, children }) => {
|