@plyaz/ui 0.6.10 → 0.7.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/client.cjs.js +1 -1
- package/dist/client.es.js +3 -3
- package/dist/index.cjs.js +6 -6
- package/dist/index.es.js +100 -100
- package/dist/types/components/AlertDialog/AlertDialog.stories.d.ts +3 -2
- package/dist/types/components/AlertDialog/AlertDialog.stories.d.ts.map +1 -1
- package/dist/types/components/AuroraText/AuroraText.d.ts.map +1 -1
- package/dist/types/components/Box/Box.d.ts +3 -3
- package/dist/types/components/Box/Box.d.ts.map +1 -1
- package/dist/types/components/Box/Box.stories.d.ts.map +1 -1
- package/dist/types/components/Container/Container.stories.d.ts.map +1 -1
- package/dist/types/components/Form/LoginForm.d.ts.map +1 -1
- package/dist/types/components/Form/SignupForm.d.ts.map +1 -1
- package/dist/types/components/FormattedDate/FormattedDate.stories.d.ts.map +1 -1
- package/dist/types/components/FormattedNumber/FormattedNumber.stories.d.ts.map +1 -1
- package/dist/types/components/Grid/Grid.stories.d.ts.map +1 -1
- package/dist/types/components/Heading/Heading.stories.d.ts.map +1 -1
- package/dist/types/components/MenuBar/Menubar.stories.d.ts.map +1 -1
- package/dist/types/components/Paragraph/Paragraph.stories.d.ts.map +1 -1
- package/dist/types/components/Section/Section.stories.d.ts.map +1 -1
- package/dist/types/components/Stack/Stack.stories.d.ts.map +1 -1
- package/dist/types/components/Text/Text.d.ts +2 -2
- package/dist/types/components/Text/Text.d.ts.map +1 -1
- package/dist/types/components/Text/Text.stories.d.ts.map +1 -1
- package/dist/types/components/TranslatedHtml/TranslatedHtml.stories.d.ts.map +1 -1
- package/dist/types/components/TranslatedText/TranslatedText.stories.d.ts.map +1 -1
- package/dist/ui.css +1 -1
- package/package.json +2 -2
- package/styles/animations.css +46 -0
- package/styles/blog.css +191 -0
- package/styles/main.css +155 -0
package/dist/client.es.js
CHANGED
|
@@ -3692,12 +3692,12 @@ class kf {
|
|
|
3692
3692
|
Mt(c) && c.current && (this.constraints = this.resolveRefConstraints());
|
|
3693
3693
|
}, { projection: s } = this.visualElement, o = s.addEventListener("measure", i);
|
|
3694
3694
|
s && !s.layout && (s.root && s.root.updateScroll(), s.updateLayout()), D.read(i);
|
|
3695
|
-
const r = ne(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", ({ delta: c, hasLayoutChanged: l }) => {
|
|
3695
|
+
const r = ne(window, "resize", () => this.scalePositionWithinConstraints()), a = s.addEventListener("didUpdate", (({ delta: c, hasLayoutChanged: l }) => {
|
|
3696
3696
|
this.isDragging && l && (K((u) => {
|
|
3697
3697
|
const f = this.getAxisMotionValue(u);
|
|
3698
3698
|
f && (this.originPoint[u] += c[u].translate, f.set(f.get() + c[u].translate));
|
|
3699
3699
|
}), this.visualElement.render());
|
|
3700
|
-
});
|
|
3700
|
+
}));
|
|
3701
3701
|
return () => {
|
|
3702
3702
|
r(), n(), o(), a && a();
|
|
3703
3703
|
};
|
|
@@ -5541,7 +5541,7 @@ function Nh(t) {
|
|
|
5541
5541
|
if (e) {
|
|
5542
5542
|
let l;
|
|
5543
5543
|
const u = e.ownerDocument.defaultView ?? window, f = (h) => {
|
|
5544
|
-
const m = me(i.current).includes(h.animationName);
|
|
5544
|
+
const m = me(i.current).includes(CSS.escape(h.animationName));
|
|
5545
5545
|
if (h.target === e && m && (c("ANIMATION_END"), !s.current)) {
|
|
5546
5546
|
const y = e.style.animationFillMode;
|
|
5547
5547
|
e.style.animationFillMode = "forwards", l = u.setTimeout(() => {
|
package/dist/index.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var V=Object.defineProperty;var K=(t,e,a)=>e in t?V(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var h=(t,e,a)=>K(t,typeof e!="symbol"?e+"":e,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("./constant-B-tpIxtm.cjs");require("clsx");const H=require("@radix-ui/react-slot"),k=require("react"),W=require("@radix-ui/react-select"),j=require("lucide-react"),I=require("next-intl");function J(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const u=J(W),x=({children:t,element:e="div",className:a="",...r})=>{const n=e;return s.jsx(n,{className:a,...r,"data-testid":"box",children:t})},Q=({className:t="",children:e,element:a,...r})=>s.jsx(x,{element:a,className:o.cn("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",t),...r,children:e}),
|
|
1
|
+
"use strict";var V=Object.defineProperty;var K=(t,e,a)=>e in t?V(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a;var h=(t,e,a)=>K(t,typeof e!="symbol"?e+"":e,a);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),o=require("./constant-B-tpIxtm.cjs");require("clsx");const H=require("@radix-ui/react-slot"),k=require("react"),W=require("@radix-ui/react-select"),j=require("lucide-react"),I=require("next-intl");function J(t){const e=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const a in t)if(a!=="default"){const r=Object.getOwnPropertyDescriptor(t,a);Object.defineProperty(e,a,r.get?r:{enumerable:!0,get:()=>t[a]})}}return e.default=t,Object.freeze(e)}const u=J(W),x=({children:t,element:e="div",className:a="",...r})=>{const n=e;return s.jsx(n,{className:a,...r,"data-testid":"box",children:t})},Q=({className:t="",children:e,element:a,...r})=>s.jsx(x,{element:a,className:o.cn("mx-auto px-4 sm:px-6 lg:px-8 max-w-7xl",t),...r,children:e}),Y={row:"flex-row",col:"flex-col",row_reverse:"flex-row-reverse",col_reverse:"flex-col-reverse"},Z={wrap:"flex-wrap",nowrap:"flex-nowrap",wrap_reverse:"flex-wrap-reverse"},X=({children:t,gap:e,direction:a,justify:r,align:n,wrap:l,className:c="",element:d,...m})=>s.jsx(x,{element:d,className:o.cn("flex",a&&Y[a],r&&o.JUASTIFY_MAPPER[r],n&&o.ALIGN_MAPPER[n],l&&Z[l],e&&o.GAP[e],c),...m,children:t}),ee=({children:t,className:e,cols:a,rows:r,gap:n,justify:l,align:c,element:d,...m})=>s.jsx(x,{element:d,className:o.cn("grid",a&&o.COLUMN_NUMBER[a],r&&o.ROW_NUMBER[r],n&&o.GAP[n],l&&o.JUASTIFY_MAPPER[l],c&&o.ALIGN_MAPPER[c],e),...m,children:t}),te={xs:"xs",sm:"sm",base:"base",lg:"lg",xl:"xl","2xl":"2xl","3xl":"3xl","4xl":"4xl"},ae=({children:t,element:e,className:a,size:r,...n})=>s.jsx(b,{className:a,element:e,size:te[r],variant:"heading",weight:"medium",...n,children:t}),re=({children:t,className:e,href:a,...r})=>s.jsx("a",{"data-testid":"link",href:a,rel:"noopener noreferrer",target:"_blank",className:o.cn("focus:outline-none text-blue-600 active:text-blue-900 visited:text-purple-600 hover:underline",e),...r,children:t}),ne={xs:"xs",sm:"sm",base:"base",lg:"lg"},se=({children:t,className:e,size:a,...r})=>s.jsx(b,{className:e,element:"p",size:ne[a],variant:"body",weight:"normal",...r,children:t}),le=({className:t="",children:e,...a})=>s.jsx(x,{element:"section",className:t,...a,children:e}),oe=({children:t,direction:e="horizontal",spacing:a="space-x-2",element:r,className:n,...l})=>{const c=e==="vertical"?"flex-col":"flex-row";return s.jsx(x,{className:o.cn("flex",c,a,n),element:r,...l,children:t})},b=({className:t,children:e,element:a,weight:r,variant:n,size:l,...c})=>{const d=a;return s.jsx(d,{"data-testid":"text",className:o.cn("font-normal text-base",l&&o.SIZES_MAPPER[l],r&&o.TEXT_WEIGHT_MAPPER[r],n&&o.VARIANT_MAPPER[n],t),...c,children:e})};function ce({className:t,variant:e,size:a,asChild:r=!1,...n}){const l=r?H.Slot:"button";return s.jsx(l,{"data-slot":"button",className:o.cn(o.buttonVariants({variant:e,size:a,className:t})),...n,"data-testid":"button"})}function ie({className:t,type:e,...a}){return s.jsx("input",{type:e,"data-slot":"input",className:o.cn(`
|
|
2
2
|
flex h-9 w-full min-w-0 rounded-md border border-input bg-transparent
|
|
3
3
|
px-3 py-1 text-base shadow-xs transition-[color,box-shadow]
|
|
4
4
|
outline-none
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
`,`
|
|
17
17
|
aria-invalid:border-destructive aria-invalid:ring-destructive/20
|
|
18
18
|
dark:aria-invalid:ring-destructive/40
|
|
19
|
-
`,t),...a,"data-testid":"input"})}const T=k.memo(({children:t,className:e="",colors:a=["#FF0080","#7928CA","#0070F3","#38bdf8"],speed:r=1})=>{const n={backgroundImage:`linear-gradient(135deg, ${a.join(", ")}, ${a[0]})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animationDuration:`${
|
|
19
|
+
`,t),...a,"data-testid":"input"})}const ue=10,T=k.memo(({children:t,className:e="",colors:a=["#FF0080","#7928CA","#0070F3","#38bdf8"],speed:r=1})=>{const n={backgroundImage:`linear-gradient(135deg, ${a.join(", ")}, ${a[0]})`,WebkitBackgroundClip:"text",WebkitTextFillColor:"transparent",animationDuration:`${ue/r}s`};return s.jsxs("span",{className:`
|
|
20
20
|
relative inline-block
|
|
21
21
|
${e}
|
|
22
22
|
`,"data-testid":"auroraText",children:[s.jsx("span",{className:"sr-only",children:t}),s.jsx("span",{className:`
|
|
23
23
|
relative animate-aurora bg-clip-text text-transparent
|
|
24
24
|
bg-[length:200%_auto]
|
|
25
|
-
`,style:n,"aria-hidden":"true",children:t})]})});T.displayName="AuroraText";function
|
|
25
|
+
`,style:n,"aria-hidden":"true",children:t})]})});T.displayName="AuroraText";function A({...t}){return s.jsx(u.Root,{"data-slot":"select",...t})}function de({...t}){return s.jsx(u.Group,{"data-slot":"select-group",...t})}function _({...t}){return s.jsx(u.Value,{"data-slot":"select-value",...t})}function R({className:t,size:e="default",children:a,...r}){return s.jsxs(u.Trigger,{"data-slot":"select-trigger","data-size":e,className:o.cn(`
|
|
26
26
|
flex w-fit items-center justify-between gap-2 rounded-md border
|
|
27
27
|
border-input bg-transparent px-3 py-2 text-sm whitespace-nowrap
|
|
28
28
|
shadow-xs transition-[color,box-shadow] outline-none
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
data-[side=left]:-translate-x-1
|
|
61
61
|
data-[side=right]:translate-x-1
|
|
62
62
|
data-[side=top]:-translate-y-1
|
|
63
|
-
`,t),position:a,...r,children:[s.jsx(
|
|
63
|
+
`,t),position:a,...r,children:[s.jsx(D,{}),s.jsx(u.Viewport,{className:o.cn("p-1",a==="popper"&&`
|
|
64
64
|
h-[var(--radix-select-trigger-height)] w-full
|
|
65
65
|
min-w-[var(--radix-select-trigger-width)] scroll-my-1
|
|
66
|
-
`),children:e}),s.jsx(
|
|
66
|
+
`),children:e}),s.jsx(F,{})]})})}function pe({className:t,...e}){return s.jsx(u.Label,{"data-slot":"select-label",className:o.cn("px-2 py-1.5 text-xs text-muted-foreground",t),...e})}function M({className:t,children:e,...a}){return s.jsxs(u.Item,{"data-slot":"select-item",className:o.cn(`
|
|
67
67
|
relative flex w-full cursor-default items-center gap-2 rounded-sm
|
|
68
68
|
py-1.5 pr-8 pl-2 text-sm outline-hidden select-none
|
|
69
69
|
focus:bg-accent focus:text-accent-foreground
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
[&_svg:not([class*='size-'])]:size-4
|
|
73
73
|
[&_svg:not([class*='text-'])]:text-muted-foreground
|
|
74
74
|
*:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2
|
|
75
|
-
`,t),...a,children:[s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:s.jsx(u.ItemIndicator,{children:s.jsx(j.CheckIcon,{className:"size-4"})})}),s.jsx(u.ItemText,{children:e})]})}function
|
|
75
|
+
`,t),...a,children:[s.jsx("span",{className:"absolute right-2 flex size-3.5 items-center justify-center",children:s.jsx(u.ItemIndicator,{children:s.jsx(j.CheckIcon,{className:"size-4"})})}),s.jsx(u.ItemText,{children:e})]})}function fe({className:t,...e}){return s.jsx(u.Separator,{"data-slot":"select-separator",className:o.cn("pointer-events-none -mx-1 my-1 h-px bg-border",t),...e})}function D({className:t,...e}){return s.jsx(u.ScrollUpButton,{"data-slot":"select-scroll-up-button",className:o.cn("flex cursor-default items-center justify-center py-1",t),...e,children:s.jsx(j.ChevronUpIcon,{className:"size-4"})})}function F({className:t,...e}){return s.jsx(u.ScrollDownButton,{"data-slot":"select-scroll-down-button",className:o.cn("flex cursor-default items-center justify-center py-1",t),...e,children:s.jsx(j.ChevronDownIcon,{className:"size-4"})})}const me=({translationKey:t,translationOptions:e,namespace:a,...r})=>{const l=I.useTranslations(a)(t,e==null?void 0:e.args);return s.jsx(b,{...r,children:l})},ge=({translationKey:t,translationOptions:e,namespace:a,className:r,tag:n="div"})=>{const c=I.useTranslations(a)(t,e==null?void 0:e.args);return k.createElement(n,{className:r,"data-testid":"translated-html"},c)};var xe=Object.defineProperty,i=(t,e)=>xe(t,"name",{value:e,configurable:!0}),N=new Map,S=new Map;function P(t,e){return`${t}:${JSON.stringify(e??{})}`}i(P,"getFormatterKey");function z(t){const e=typeof t=="string"||typeof t=="number"?new Date(t):t;return e instanceof Date&&!Number.isNaN(e.getTime())?e:null}i(z,"parseDate");function C(t,e="en",a){var l;const r=z(t);if(!r)return"";const n=P(e,a);return N.has(n)||N.set(n,new Intl.DateTimeFormat(e,a)),((l=N.get(n))==null?void 0:l.format(r))??""}i(C,"formatDate");function q(t,e="en",a){var n;if(typeof t!="number"||Number.isNaN(t))return"";const r=P(e,a);return S.has(r)||S.set(r,new Intl.NumberFormat(e,a)),((n=S.get(r))==null?void 0:n.format(t))??""}i(q,"formatNumber");var w={defaultLocale:"en",supportedLocales:["en","es","fr","it","pt-BR","pt-PT"],fallbackLocale:"en"};function be(){return w.supportedLocales}i(be,"getSupportedLanguages");function he(){return w.defaultLocale}i(he,"getDefaultLanguage");function ve(){return w.fallbackLocale}i(ve,"getFallbackLanguage");function je(t){return w.supportedLocales.includes(t)}i(je,"isSupportedLanguage");var f=new Map;function we({value:t,forms:e,lang:a,type:r="cardinal"}){if(!G(t,e))return"";if(t===0&&e.zero)return y(e.zero,t);const l=O(a,r).select(t),c=B(e,l)??e.other??Object.values(e)[0];return c?y(c,t):""}i(we,"pluralize");function L(t,e){return`${t}:${e}`}i(L,"getPluralRulesKey");var Ne=/{count}|#/g;function B(t,e){switch(e){case"zero":return t.zero;case"one":return t.one;case"two":return t.two;case"few":return t.few;case"many":return t.many;case"other":return t.other;default:return}}i(B,"selectTemplate");function G(t,e){return typeof t=="number"&&e&&typeof e=="object"}i(G,"isValidInput");function y(t,e){return t.replaceAll(Ne,e.toString())}i(y,"replacePlaceholders");function O(t,e){const a=L(t,e);if(!f.has(a))try{f.set(a,new Intl.PluralRules(t,{type:e}))}catch{return v(a,e)}return f.get(a)??v(a,e)}i(O,"getPluralRules");function v(t,e){const a=L("en",e);f.has(a)||f.set(a,new Intl.PluralRules("en",{type:e}));const r=f.get(a)??v(a,e);return f.set(t,r),r}i(v,"getFallbackPluralRules");var p;p=class{constructor(){h(this,"fallbackLocale");this.fallbackLocale="en"}static getInstance(){return p.instance||(p.instance=new p),p.instance}detectLocale(e){return e?this.detectFromRequest(e):this.fallbackLocale}detectFromRequest(e){var l,c,d;const a=(l=e.url.split("?")[1])==null?void 0:l.split("=")[1],r=e.headers.get("accept-language"),n=(d=(c=e.headers.get("cookie"))==null?void 0:c.split("; ").find(m=>m.startsWith("locale=")))==null?void 0:d.split("=")[1];return a??n??this.parseAcceptLanguage(r??"")??this.fallbackLocale}parseAcceptLanguage(e){if(!e)return null;let a=null,r=0;for(const n of e.split(",")){const{lang:l,q:c}=this.parseLangAndQ(n.trim());if(c>r&&(r=c,a=l,c===1))break}return a}parseLangAndQ(e){const a=e.indexOf(";"),r=a===-1?e:e.slice(0,Math.max(0,a));let n=1;if(a!==-1){const l=/q=(?<q>[\d.]+)/.exec(e.slice(a+1));n=l!=null&&l.groups?Number.parseFloat(l.groups.q)||0:1}return{lang:r,q:n}}setFallbackLocale(e){this.fallbackLocale=e}},i(p,"LocaleDetector"),h(p,"instance");var g;g=class{constructor(e){h(this,"namespaces");this.namespaces=e?new Map(e):new Map}addNamespace(e,a){if(!$(e))throw new Error("Invalid namespace name");this.namespaces.set(e,a)}getNamespace(e){return this.namespaces.get(e)}getAllNamespaces(){return[...this.namespaces.keys()]}mergeNamespaces(e,a){const r=this.namespaces.get(e)??{},n=this.namespaces.get(a)??{};this.namespaces.set(e,{...r,...n})}validateNamespace(e,a){const r=this.namespaces.get(e);return r?a?Object.entries(a).every(([n,l])=>{var d;const c=(d=Object.getOwnPropertyDescriptor(r,n))==null?void 0:d.value;return c!==void 0&&typeof c===l}):!0:!1}},i(g,"NamespaceManager");function $(t){return/^\w+$/.test(t)}i($,"isSafeKey");const Se=({date:t,formatOptions:e,locale:a,...r})=>{const n=C(t,a,e);return s.jsx(b,{...r,children:n})},ye=({value:t,formatOptions:e,locale:a,...r})=>{const n=q(t,a,e);return s.jsx(b,{...r,children:n})};function Pe({locale:t,locales:e,onChange:a,getLabel:r,disabled:n}){return s.jsxs(A,{value:t,onValueChange:a,disabled:n,children:[s.jsx(R,{children:s.jsx(_,{placeholder:r(t)})}),s.jsx(E,{children:e.map(l=>s.jsx(M,{value:l,children:r(l)},l))})]})}function Le({className:t,reverse:e=!1,pauseOnHover:a=!1,paused:r=!1,children:n,vertical:l=!1,repeat:c=4,...d}){return s.jsx("div",{...d,className:o.cn("group flex overflow-hidden p-2 [--duration:40s] [--gap:1rem] [gap:var(--gap)]",{"flex-row":!l,"flex-col":l},t),children:Array(c).fill(0).map((m,U)=>s.jsx("div",{className:o.cn("flex shrink-0 justify-around [gap:var(--gap)]",{"animate-marquee flex-row":!l,"animate-marquee-vertical flex-col":l,"group-hover:[animation-play-state:paused]":a,"[animation-direction:reverse]":e,"[animation-play-state:paused]":r}),children:n},U))})}exports.AuroraText=T;exports.Box=x;exports.Button=ce;exports.Container=Q;exports.ExternalLink=re;exports.Flex=X;exports.FormattedDate=Se;exports.FormattedNumber=ye;exports.Grid=ee;exports.Heading=ae;exports.Input=ie;exports.LanguageSelector=Pe;exports.Marquee=Le;exports.Paragraph=se;exports.Section=le;exports.Select=A;exports.SelectContent=E;exports.SelectGroup=de;exports.SelectItem=M;exports.SelectLabel=pe;exports.SelectScrollDownButton=F;exports.SelectScrollUpButton=D;exports.SelectSeparator=fe;exports.SelectTrigger=R;exports.SelectValue=_;exports.Stack=oe;exports.Text=b;exports.TranslatedHtml=ge;exports.TranslatedText=me;
|
package/dist/index.es.js
CHANGED
|
@@ -2,14 +2,14 @@ var $ = Object.defineProperty;
|
|
|
2
2
|
var V = (t, e, a) => e in t ? $(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
|
|
3
3
|
var v = (t, e, a) => V(t, typeof e != "symbol" ? e + "" : e, a);
|
|
4
4
|
import { jsx as s, jsxs as x } from "react/jsx-runtime";
|
|
5
|
-
import { c as i, G as E, A as _, J as
|
|
5
|
+
import { c as i, G as E, A as _, J as I, R as G, C as K, V as U, T as q, S as W, b as H } from "./constant-BgZiatEy.js";
|
|
6
6
|
import "clsx";
|
|
7
|
-
import { Slot as
|
|
8
|
-
import
|
|
7
|
+
import { Slot as O } from "@radix-ui/react-slot";
|
|
8
|
+
import J, { memo as Q } from "react";
|
|
9
9
|
import * as u from "@radix-ui/react-select";
|
|
10
|
-
import { CheckIcon as Z, ChevronDownIcon as
|
|
11
|
-
import { useTranslations as
|
|
12
|
-
const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @__PURE__ */ s(e, { className: a, ...r, "data-testid": "box", children: t }),
|
|
10
|
+
import { CheckIcon as Z, ChevronDownIcon as A, ChevronUpIcon as X } from "lucide-react";
|
|
11
|
+
import { useTranslations as R } from "next-intl";
|
|
12
|
+
const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @__PURE__ */ s(e, { className: a, ...r, "data-testid": "box", children: t }), Ee = ({ className: t = "", children: e, element: a, ...r }) => /* @__PURE__ */ s(
|
|
13
13
|
b,
|
|
14
14
|
{
|
|
15
15
|
element: a,
|
|
@@ -26,7 +26,7 @@ const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
26
26
|
wrap: "flex-wrap",
|
|
27
27
|
nowrap: "flex-nowrap",
|
|
28
28
|
wrap_reverse: "flex-wrap-reverse"
|
|
29
|
-
},
|
|
29
|
+
}, _e = ({
|
|
30
30
|
children: t,
|
|
31
31
|
gap: e,
|
|
32
32
|
direction: a,
|
|
@@ -43,7 +43,7 @@ const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
43
43
|
className: i(
|
|
44
44
|
"flex",
|
|
45
45
|
a && Y[a],
|
|
46
|
-
r &&
|
|
46
|
+
r && I[r],
|
|
47
47
|
n && _[n],
|
|
48
48
|
l && ee[l],
|
|
49
49
|
e && E[e],
|
|
@@ -52,7 +52,7 @@ const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
52
52
|
...m,
|
|
53
53
|
children: t
|
|
54
54
|
}
|
|
55
|
-
),
|
|
55
|
+
), Ie = ({
|
|
56
56
|
children: t,
|
|
57
57
|
className: e,
|
|
58
58
|
cols: a,
|
|
@@ -71,7 +71,7 @@ const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
71
71
|
a && K[a],
|
|
72
72
|
r && G[r],
|
|
73
73
|
n && E[n],
|
|
74
|
-
l &&
|
|
74
|
+
l && I[l],
|
|
75
75
|
o && _[o],
|
|
76
76
|
e
|
|
77
77
|
),
|
|
@@ -87,7 +87,7 @@ const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
87
87
|
"2xl": "2xl",
|
|
88
88
|
"3xl": "3xl",
|
|
89
89
|
"4xl": "4xl"
|
|
90
|
-
},
|
|
90
|
+
}, Ae = ({ children: t, element: e, className: a, size: r, ...n }) => /* @__PURE__ */ s(
|
|
91
91
|
h,
|
|
92
92
|
{
|
|
93
93
|
className: a,
|
|
@@ -98,7 +98,7 @@ const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
98
98
|
...n,
|
|
99
99
|
children: t
|
|
100
100
|
}
|
|
101
|
-
),
|
|
101
|
+
), Re = ({ children: t, className: e, href: a, ...r }) => /* @__PURE__ */ s(
|
|
102
102
|
"a",
|
|
103
103
|
{
|
|
104
104
|
"data-testid": "link",
|
|
@@ -128,7 +128,7 @@ const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
128
128
|
...r,
|
|
129
129
|
children: t
|
|
130
130
|
}
|
|
131
|
-
),
|
|
131
|
+
), ze = ({ className: t = "", children: e, ...a }) => /* @__PURE__ */ s(b, { element: "section", className: t, ...a, children: e }), Me = ({
|
|
132
132
|
children: t,
|
|
133
133
|
direction: e = "horizontal",
|
|
134
134
|
spacing: a = "space-x-2",
|
|
@@ -158,7 +158,7 @@ const b = ({ children: t, element: e = "div", className: a = "", ...r }) => /* @
|
|
|
158
158
|
children: e
|
|
159
159
|
}
|
|
160
160
|
);
|
|
161
|
-
function
|
|
161
|
+
function De({
|
|
162
162
|
className: t,
|
|
163
163
|
variant: e,
|
|
164
164
|
size: a,
|
|
@@ -166,7 +166,7 @@ function Me({
|
|
|
166
166
|
...n
|
|
167
167
|
}) {
|
|
168
168
|
return /* @__PURE__ */ s(
|
|
169
|
-
r ?
|
|
169
|
+
r ? O : "button",
|
|
170
170
|
{
|
|
171
171
|
"data-slot": "button",
|
|
172
172
|
className: i(H({ variant: e, size: a, className: t })),
|
|
@@ -210,7 +210,7 @@ function Fe({ className: t, type: e, ...a }) {
|
|
|
210
210
|
}
|
|
211
211
|
);
|
|
212
212
|
}
|
|
213
|
-
const re = Q(
|
|
213
|
+
const re = 10, ne = Q(
|
|
214
214
|
({
|
|
215
215
|
children: t,
|
|
216
216
|
className: e = "",
|
|
@@ -221,7 +221,7 @@ const re = Q(
|
|
|
221
221
|
backgroundImage: `linear-gradient(135deg, ${a.join(", ")}, ${a[0]})`,
|
|
222
222
|
WebkitBackgroundClip: "text",
|
|
223
223
|
WebkitTextFillColor: "transparent",
|
|
224
|
-
animationDuration: `${
|
|
224
|
+
animationDuration: `${re / r}s`
|
|
225
225
|
};
|
|
226
226
|
return /* @__PURE__ */ x(
|
|
227
227
|
"span",
|
|
@@ -250,17 +250,17 @@ const re = Q(
|
|
|
250
250
|
);
|
|
251
251
|
}
|
|
252
252
|
);
|
|
253
|
-
|
|
254
|
-
function
|
|
253
|
+
ne.displayName = "AuroraText";
|
|
254
|
+
function se({ ...t }) {
|
|
255
255
|
return /* @__PURE__ */ s(u.Root, { "data-slot": "select", ...t });
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Ce({ ...t }) {
|
|
258
258
|
return /* @__PURE__ */ s(u.Group, { "data-slot": "select-group", ...t });
|
|
259
259
|
}
|
|
260
|
-
function
|
|
260
|
+
function le({ ...t }) {
|
|
261
261
|
return /* @__PURE__ */ s(u.Value, { "data-slot": "select-value", ...t });
|
|
262
262
|
}
|
|
263
|
-
function
|
|
263
|
+
function oe({
|
|
264
264
|
className: t,
|
|
265
265
|
size: e = "default",
|
|
266
266
|
children: a,
|
|
@@ -298,12 +298,12 @@ function le({
|
|
|
298
298
|
...r,
|
|
299
299
|
children: [
|
|
300
300
|
a,
|
|
301
|
-
/* @__PURE__ */ s(u.Icon, { asChild: !0, children: /* @__PURE__ */ s(
|
|
301
|
+
/* @__PURE__ */ s(u.Icon, { asChild: !0, children: /* @__PURE__ */ s(A, { className: "size-4 opacity-50" }) })
|
|
302
302
|
]
|
|
303
303
|
}
|
|
304
304
|
);
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function ie({
|
|
307
307
|
className: t,
|
|
308
308
|
children: e,
|
|
309
309
|
position: a = "popper",
|
|
@@ -339,7 +339,7 @@ function oe({
|
|
|
339
339
|
position: a,
|
|
340
340
|
...r,
|
|
341
341
|
children: [
|
|
342
|
-
/* @__PURE__ */ s(
|
|
342
|
+
/* @__PURE__ */ s(ue, {}),
|
|
343
343
|
/* @__PURE__ */ s(
|
|
344
344
|
u.Viewport,
|
|
345
345
|
{
|
|
@@ -353,12 +353,12 @@ function oe({
|
|
|
353
353
|
children: e
|
|
354
354
|
}
|
|
355
355
|
),
|
|
356
|
-
/* @__PURE__ */ s(
|
|
356
|
+
/* @__PURE__ */ s(de, {})
|
|
357
357
|
]
|
|
358
358
|
}
|
|
359
359
|
) });
|
|
360
360
|
}
|
|
361
|
-
function
|
|
361
|
+
function je({ className: t, ...e }) {
|
|
362
362
|
return /* @__PURE__ */ s(
|
|
363
363
|
u.Label,
|
|
364
364
|
{
|
|
@@ -368,7 +368,7 @@ function Ce({ className: t, ...e }) {
|
|
|
368
368
|
}
|
|
369
369
|
);
|
|
370
370
|
}
|
|
371
|
-
function
|
|
371
|
+
function ce({
|
|
372
372
|
className: t,
|
|
373
373
|
children: e,
|
|
374
374
|
...a
|
|
@@ -398,7 +398,7 @@ function ie({
|
|
|
398
398
|
}
|
|
399
399
|
);
|
|
400
400
|
}
|
|
401
|
-
function
|
|
401
|
+
function Be({
|
|
402
402
|
className: t,
|
|
403
403
|
...e
|
|
404
404
|
}) {
|
|
@@ -411,7 +411,7 @@ function je({
|
|
|
411
411
|
}
|
|
412
412
|
);
|
|
413
413
|
}
|
|
414
|
-
function
|
|
414
|
+
function ue({
|
|
415
415
|
className: t,
|
|
416
416
|
...e
|
|
417
417
|
}) {
|
|
@@ -425,7 +425,7 @@ function ce({
|
|
|
425
425
|
}
|
|
426
426
|
);
|
|
427
427
|
}
|
|
428
|
-
function
|
|
428
|
+
function de({
|
|
429
429
|
className: t,
|
|
430
430
|
...e
|
|
431
431
|
}) {
|
|
@@ -435,47 +435,47 @@ function ue({
|
|
|
435
435
|
"data-slot": "select-scroll-down-button",
|
|
436
436
|
className: i("flex cursor-default items-center justify-center py-1", t),
|
|
437
437
|
...e,
|
|
438
|
-
children: /* @__PURE__ */ s(
|
|
438
|
+
children: /* @__PURE__ */ s(A, { className: "size-4" })
|
|
439
439
|
}
|
|
440
440
|
);
|
|
441
441
|
}
|
|
442
|
-
const
|
|
442
|
+
const $e = ({
|
|
443
443
|
translationKey: t,
|
|
444
444
|
translationOptions: e,
|
|
445
445
|
namespace: a,
|
|
446
446
|
...r
|
|
447
447
|
}) => {
|
|
448
|
-
const l =
|
|
448
|
+
const l = R(a)(
|
|
449
449
|
t,
|
|
450
450
|
e == null ? void 0 : e.args
|
|
451
451
|
);
|
|
452
452
|
return /* @__PURE__ */ s(h, { ...r, children: l });
|
|
453
|
-
},
|
|
453
|
+
}, Ve = ({
|
|
454
454
|
translationKey: t,
|
|
455
455
|
translationOptions: e,
|
|
456
456
|
namespace: a,
|
|
457
457
|
className: r,
|
|
458
458
|
tag: n = "div"
|
|
459
459
|
}) => {
|
|
460
|
-
const o =
|
|
460
|
+
const o = R(a)(
|
|
461
461
|
t,
|
|
462
462
|
e == null ? void 0 : e.args
|
|
463
463
|
);
|
|
464
|
-
return
|
|
464
|
+
return J.createElement(n, { className: r, "data-testid": "translated-html" }, o);
|
|
465
465
|
};
|
|
466
|
-
var
|
|
466
|
+
var pe = Object.defineProperty, c = (t, e) => pe(t, "name", { value: e, configurable: !0 }), y = /* @__PURE__ */ new Map(), L = /* @__PURE__ */ new Map();
|
|
467
467
|
function P(t, e) {
|
|
468
468
|
return `${t}:${JSON.stringify(e ?? {})}`;
|
|
469
469
|
}
|
|
470
470
|
c(P, "getFormatterKey");
|
|
471
|
-
function
|
|
471
|
+
function T(t) {
|
|
472
472
|
const e = typeof t == "string" || typeof t == "number" ? new Date(t) : t;
|
|
473
473
|
return e instanceof Date && !Number.isNaN(e.getTime()) ? e : null;
|
|
474
474
|
}
|
|
475
|
-
c(
|
|
475
|
+
c(T, "parseDate");
|
|
476
476
|
function z(t, e = "en", a) {
|
|
477
477
|
var l;
|
|
478
|
-
const r =
|
|
478
|
+
const r = T(t);
|
|
479
479
|
if (!r)
|
|
480
480
|
return "";
|
|
481
481
|
const n = P(e, a);
|
|
@@ -490,48 +490,48 @@ function M(t, e = "en", a) {
|
|
|
490
490
|
return L.has(r) || L.set(r, new Intl.NumberFormat(e, a)), ((n = L.get(r)) == null ? void 0 : n.format(t)) ?? "";
|
|
491
491
|
}
|
|
492
492
|
c(M, "formatNumber");
|
|
493
|
-
var
|
|
493
|
+
var w = {
|
|
494
494
|
defaultLocale: "en",
|
|
495
495
|
supportedLocales: ["en", "es", "fr", "it", "pt-BR", "pt-PT"],
|
|
496
496
|
fallbackLocale: "en"
|
|
497
497
|
};
|
|
498
|
-
function pe() {
|
|
499
|
-
return N.supportedLocales;
|
|
500
|
-
}
|
|
501
|
-
c(pe, "getSupportedLanguages");
|
|
502
498
|
function fe() {
|
|
503
|
-
return
|
|
499
|
+
return w.supportedLocales;
|
|
504
500
|
}
|
|
505
|
-
c(fe, "
|
|
501
|
+
c(fe, "getSupportedLanguages");
|
|
506
502
|
function me() {
|
|
507
|
-
return
|
|
503
|
+
return w.defaultLocale;
|
|
504
|
+
}
|
|
505
|
+
c(me, "getDefaultLanguage");
|
|
506
|
+
function ge() {
|
|
507
|
+
return w.fallbackLocale;
|
|
508
508
|
}
|
|
509
|
-
c(
|
|
510
|
-
function
|
|
511
|
-
return
|
|
509
|
+
c(ge, "getFallbackLanguage");
|
|
510
|
+
function xe(t) {
|
|
511
|
+
return w.supportedLocales.includes(t);
|
|
512
512
|
}
|
|
513
|
-
c(
|
|
513
|
+
c(xe, "isSupportedLanguage");
|
|
514
514
|
var f = /* @__PURE__ */ new Map();
|
|
515
|
-
function
|
|
515
|
+
function be({
|
|
516
516
|
value: t,
|
|
517
517
|
forms: e,
|
|
518
518
|
lang: a,
|
|
519
519
|
type: r = "cardinal"
|
|
520
520
|
}) {
|
|
521
|
-
if (!
|
|
521
|
+
if (!F(t, e))
|
|
522
522
|
return "";
|
|
523
523
|
if (t === 0 && e.zero)
|
|
524
524
|
return k(e.zero, t);
|
|
525
|
-
const l = C(a, r).select(t), o =
|
|
525
|
+
const l = C(a, r).select(t), o = D(e, l) ?? e.other ?? Object.values(e)[0];
|
|
526
526
|
return o ? k(o, t) : "";
|
|
527
527
|
}
|
|
528
|
-
c(
|
|
528
|
+
c(be, "pluralize");
|
|
529
529
|
function S(t, e) {
|
|
530
530
|
return `${t}:${e}`;
|
|
531
531
|
}
|
|
532
532
|
c(S, "getPluralRulesKey");
|
|
533
|
-
var
|
|
534
|
-
function
|
|
533
|
+
var he = /{count}|#/g;
|
|
534
|
+
function D(t, e) {
|
|
535
535
|
switch (e) {
|
|
536
536
|
case "zero":
|
|
537
537
|
return t.zero;
|
|
@@ -549,13 +549,13 @@ function F(t, e) {
|
|
|
549
549
|
return;
|
|
550
550
|
}
|
|
551
551
|
}
|
|
552
|
-
c(
|
|
553
|
-
function
|
|
552
|
+
c(D, "selectTemplate");
|
|
553
|
+
function F(t, e) {
|
|
554
554
|
return typeof t == "number" && e && typeof e == "object";
|
|
555
555
|
}
|
|
556
|
-
c(
|
|
556
|
+
c(F, "isValidInput");
|
|
557
557
|
function k(t, e) {
|
|
558
|
-
return t.replaceAll(
|
|
558
|
+
return t.replaceAll(he, e.toString());
|
|
559
559
|
}
|
|
560
560
|
c(k, "replacePlaceholders");
|
|
561
561
|
function C(t, e) {
|
|
@@ -564,18 +564,18 @@ function C(t, e) {
|
|
|
564
564
|
try {
|
|
565
565
|
f.set(a, new Intl.PluralRules(t, { type: e }));
|
|
566
566
|
} catch {
|
|
567
|
-
return
|
|
567
|
+
return N(a, e);
|
|
568
568
|
}
|
|
569
|
-
return f.get(a) ??
|
|
569
|
+
return f.get(a) ?? N(a, e);
|
|
570
570
|
}
|
|
571
571
|
c(C, "getPluralRules");
|
|
572
|
-
function
|
|
572
|
+
function N(t, e) {
|
|
573
573
|
const a = S("en", e);
|
|
574
574
|
f.has(a) || f.set(a, new Intl.PluralRules("en", { type: e }));
|
|
575
|
-
const r = f.get(a) ??
|
|
575
|
+
const r = f.get(a) ?? N(a, e);
|
|
576
576
|
return f.set(t, r), r;
|
|
577
577
|
}
|
|
578
|
-
c(
|
|
578
|
+
c(N, "getFallbackPluralRules");
|
|
579
579
|
var p;
|
|
580
580
|
p = class {
|
|
581
581
|
constructor() {
|
|
@@ -703,7 +703,7 @@ function j(t) {
|
|
|
703
703
|
return /^\w+$/.test(t);
|
|
704
704
|
}
|
|
705
705
|
c(j, "isSafeKey");
|
|
706
|
-
const
|
|
706
|
+
const Ge = ({
|
|
707
707
|
date: t,
|
|
708
708
|
formatOptions: e,
|
|
709
709
|
locale: a,
|
|
@@ -711,7 +711,7 @@ const Ve = ({
|
|
|
711
711
|
}) => {
|
|
712
712
|
const n = z(t, a, e);
|
|
713
713
|
return /* @__PURE__ */ s(h, { ...r, children: n });
|
|
714
|
-
},
|
|
714
|
+
}, Ke = ({
|
|
715
715
|
value: t,
|
|
716
716
|
formatOptions: e,
|
|
717
717
|
locale: a,
|
|
@@ -720,19 +720,19 @@ const Ve = ({
|
|
|
720
720
|
const n = M(t, a, e);
|
|
721
721
|
return /* @__PURE__ */ s(h, { ...r, children: n });
|
|
722
722
|
};
|
|
723
|
-
function
|
|
723
|
+
function Ue({
|
|
724
724
|
locale: t,
|
|
725
725
|
locales: e,
|
|
726
726
|
onChange: a,
|
|
727
727
|
getLabel: r,
|
|
728
728
|
disabled: n
|
|
729
729
|
}) {
|
|
730
|
-
return /* @__PURE__ */ x(
|
|
731
|
-
/* @__PURE__ */ s(
|
|
732
|
-
/* @__PURE__ */ s(
|
|
730
|
+
return /* @__PURE__ */ x(se, { value: t, onValueChange: a, disabled: n, children: [
|
|
731
|
+
/* @__PURE__ */ s(oe, { children: /* @__PURE__ */ s(le, { placeholder: r(t) }) }),
|
|
732
|
+
/* @__PURE__ */ s(ie, { children: e.map((l) => /* @__PURE__ */ s(ce, { value: l, children: r(l) }, l)) })
|
|
733
733
|
] });
|
|
734
734
|
}
|
|
735
|
-
function
|
|
735
|
+
function qe({
|
|
736
736
|
className: t,
|
|
737
737
|
reverse: e = !1,
|
|
738
738
|
pauseOnHover: a = !1,
|
|
@@ -772,33 +772,33 @@ function Ue({
|
|
|
772
772
|
);
|
|
773
773
|
}
|
|
774
774
|
export {
|
|
775
|
-
|
|
775
|
+
ne as AuroraText,
|
|
776
776
|
b as Box,
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
777
|
+
De as Button,
|
|
778
|
+
Ee as Container,
|
|
779
|
+
Re as ExternalLink,
|
|
780
|
+
_e as Flex,
|
|
781
|
+
Ge as FormattedDate,
|
|
782
|
+
Ke as FormattedNumber,
|
|
783
|
+
Ie as Grid,
|
|
784
|
+
Ae as Heading,
|
|
785
785
|
Fe as Input,
|
|
786
|
-
|
|
787
|
-
|
|
786
|
+
Ue as LanguageSelector,
|
|
787
|
+
qe as Marquee,
|
|
788
788
|
Te as Paragraph,
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
789
|
+
ze as Section,
|
|
790
|
+
se as Select,
|
|
791
|
+
ie as SelectContent,
|
|
792
|
+
Ce as SelectGroup,
|
|
793
|
+
ce as SelectItem,
|
|
794
|
+
je as SelectLabel,
|
|
795
|
+
de as SelectScrollDownButton,
|
|
796
|
+
ue as SelectScrollUpButton,
|
|
797
|
+
Be as SelectSeparator,
|
|
798
|
+
oe as SelectTrigger,
|
|
799
|
+
le as SelectValue,
|
|
800
|
+
Me as Stack,
|
|
801
801
|
h as Text,
|
|
802
|
-
|
|
803
|
-
|
|
802
|
+
Ve as TranslatedHtml,
|
|
803
|
+
$e as TranslatedText
|
|
804
804
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { StoryObj } from '@storybook/react';
|
|
2
|
+
import { AlertDialog } from '../client';
|
|
2
3
|
/**
|
|
3
4
|
* A modal dialog that interrupts the user with important content and expects
|
|
4
5
|
* a response.
|
|
5
6
|
*/
|
|
6
7
|
declare const meta: {
|
|
7
8
|
title: string;
|
|
8
|
-
component:
|
|
9
|
+
component: typeof AlertDialog;
|
|
9
10
|
tags: string[];
|
|
10
11
|
argTypes: {};
|
|
11
|
-
render: (args:
|
|
12
|
+
render: (args: import('@radix-ui/react-alert-dialog').AlertDialogProps) => import("react").JSX.Element;
|
|
12
13
|
parameters: {
|
|
13
14
|
layout: string;
|
|
14
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertDialog.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertDialog/AlertDialog.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertDialog.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/AlertDialog/AlertDialog.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAQ,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EACL,WAAW,EASZ,MAAM,qBAAqB,CAAC;AAE7B;;;GAGG;AACH,QAAA,MAAM,IAAI;;;;;;;;;CA0B0B,CAAC;AAErC,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC;AAEjC,eAAO,MAAM,eAAe,EAAE,KAuB7B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuroraText.d.ts","sourceRoot":"","sources":["../../../../src/components/AuroraText/AuroraText.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAe,MAAM,OAAO,CAAC;AAEpC,UAAU,eAAe;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;
|
|
1
|
+
{"version":3,"file":"AuroraText.d.ts","sourceRoot":"","sources":["../../../../src/components/AuroraText/AuroraText.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAe,MAAM,OAAO,CAAC;AAEpC,UAAU,eAAe;IACvB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAGD,eAAO,MAAM,UAAU,sEAMlB,eAAe,uBA8BnB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { ElementType } from '../../types/type';
|
|
3
|
-
export
|
|
4
|
-
children
|
|
3
|
+
export type BoxProps<T extends ElementType = 'div'> = {
|
|
4
|
+
children?: React.ReactNode;
|
|
5
5
|
element?: ElementType;
|
|
6
6
|
className?: string;
|
|
7
|
-
}
|
|
7
|
+
} & React.ComponentProps<T>;
|
|
8
8
|
export declare const Box: ({ children, element, className, ...props }: BoxProps) => React.JSX.Element;
|
|
9
9
|
export default Box;
|
|
10
10
|
//# sourceMappingURL=Box.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../src/components/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAEhD,MAAM,MAAM,QAAQ,CAAC,CAAC,SAAS,WAAW,GAAG,KAAK,IAAI;IACpD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,GAAG,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;AAE5B,eAAO,MAAM,GAAG,GAAI,4CAAyD,QAAQ,sBAOpF,CAAC;AAEF,eAAe,GAAG,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Box/Box.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,GAAG,CA+B1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AACF,eAAO,MAAM,GAAG,EAAE,KAMjB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,
|
|
1
|
+
{"version":3,"file":"Box.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Box/Box.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGvD,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,GAAG,CAAC,CAAC;AAElC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,OAAO,GAAG,CA+B1B,CAAC;AAEF,eAAe,IAAI,CAAC;AAEpB,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,OAAO,EAAE,KAMrB,CAAC;AACF,eAAO,MAAM,KAAK,EAAE,KAMnB,CAAC;AACF,eAAO,MAAM,GAAG,EAAE,KAMjB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AACF,eAAO,MAAM,MAAM,EAAE,KAMpB,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,KAkB7B,CAAC"}
|