@adamosuiteservices/ui 2.13.4 → 2.14.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/{button-Bn4LFAa9.js → button-B0lWuG-D.js} +27 -18
- package/dist/{button-Day6_fbu.cjs → button-DVrteFz9.cjs} +2 -2
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/{calendar-B1_ybTg0.js → calendar-CfqtuOWv.js} +1 -1
- package/dist/{calendar-CZkzHgYi.cjs → calendar-CpUN6BGK.cjs} +1 -1
- package/dist/calendar.cjs +1 -1
- package/dist/calendar.js +1 -1
- package/dist/{combobox-BOi7QzmO.js → combobox-B8HMlZy6.js} +1 -1
- package/dist/{combobox-0ndFo07_.cjs → combobox-Btj-hiBy.cjs} +1 -1
- package/dist/combobox.cjs +1 -1
- package/dist/combobox.js +1 -1
- package/dist/components/ui/alert/alert.d.ts +1 -1
- package/dist/components/ui/button/button.d.ts +3 -2
- package/dist/components/ui/card/card.d.ts +2 -2
- package/dist/date-picker-selector.cjs +1 -1
- package/dist/date-picker-selector.js +3 -3
- package/dist/file-upload.cjs +1 -1
- package/dist/file-upload.js +1 -1
- package/dist/full-screen-loader.cjs +1 -1
- package/dist/full-screen-loader.js +1 -1
- package/dist/input-group.cjs +1 -1
- package/dist/input-group.js +1 -1
- package/dist/pagination.cjs +1 -1
- package/dist/pagination.js +1 -1
- package/dist/sidebar.cjs +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/styles.css +1 -1
- package/dist/tabs.cjs +14 -16
- package/dist/tabs.js +17 -19
- package/docs/AI-GUIDE.md +321 -321
- package/docs/components/layout/full-screen-loader.md +2 -2
- package/docs/components/layout/sidebar.md +399 -399
- package/docs/components/layout/toaster.md +436 -436
- package/docs/components/ui/accordion-rounded.md +584 -584
- package/docs/components/ui/accordion.md +269 -269
- package/docs/components/ui/button.md +35 -23
- package/docs/components/ui/calendar.md +1159 -1159
- package/docs/components/ui/card.md +1455 -1455
- package/docs/components/ui/checkbox.md +292 -292
- package/docs/components/ui/collapsible.md +323 -323
- package/docs/components/ui/dialog.md +628 -628
- package/docs/components/ui/field.md +706 -706
- package/docs/components/ui/hover-card.md +446 -446
- package/docs/components/ui/kbd.md +434 -434
- package/docs/components/ui/label.md +359 -359
- package/docs/components/ui/pagination.md +650 -650
- package/docs/components/ui/popover.md +536 -536
- package/docs/components/ui/progress.md +182 -182
- package/docs/components/ui/radio-group.md +311 -311
- package/docs/components/ui/separator.md +214 -214
- package/docs/components/ui/sheet.md +174 -174
- package/docs/components/ui/skeleton.md +140 -140
- package/docs/components/ui/spinner.md +170 -170
- package/docs/components/ui/switch.md +408 -408
- package/docs/components/ui/tabs-underline.md +106 -106
- package/docs/components/ui/tabs.md +125 -122
- package/docs/components/ui/textarea.md +243 -243
- package/docs/components/ui/toggle.md +237 -237
- package/docs/components/ui/tooltip.md +317 -317
- package/docs/components/ui/typography.md +320 -320
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),x=require("./button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),x=require("./button-DVrteFz9.cjs"),m=require("./calendar-CpUN6BGK.cjs"),R=require("./combobox-Btj-hiBy.cjs"),v=require("./input-Bz5k4w94.cjs"),i=require("./popover-cGp_rNLg.cjs"),u=require("react");function d(n,o,l){return m.addDays(n,-o,l)}function g({dateRange:n,onDateRangeChange:o,labels:l,combobox:y,calendar:j}){const[f,b]=u.useState(void 0),[h,r]=u.useState(!1),[c,p]=u.useState(n),a={...{last30Days:"Last 30 days",last7Days:"Last 7 days",last90Days:"Last 90 days",custom:"Custom",placeholder:"Date",cancel:"Cancel",apply:"Apply"},...l},D=s=>{const t=m.startOfDay(new Date);switch(s){case"7_days":return{from:d(t,7),to:t};case"30_days":return{from:d(t,30),to:t};case"90_days":return{from:d(t,90),to:t};default:return{from:void 0,to:void 0}}};return e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsx(R.Combobox,{alwaysShowPlaceholder:!0,selectedFeedback:"check",icon:"calendar_today",options:[{label:a.last7Days,value:"7_days"},{label:a.last30Days,value:"30_days"},{label:a.last90Days,value:"90_days"},{label:a.custom,value:"custom"}],value:f,onValueChange:s=>{if(typeof s=="string")if(s==="custom")r(!0);else{const t=D(s);o(t),p(void 0)}b(s)},labels:{placeholder:a.placeholder},...y}),e.jsxRuntimeExports.jsxs(i.Popover,{open:h,onOpenChange:r,children:[e.jsxRuntimeExports.jsx(i.PopoverAnchor,{asChild:!0,children:e.jsxRuntimeExports.jsx(v.Input,{className:"adm:sr-only adm:w-0"})}),e.jsxRuntimeExports.jsxs(i.PopoverContent,{align:"start",children:[e.jsxRuntimeExports.jsx(m.Calendar,{required:!0,mode:"range",selected:c,onSelect:p,captionLayout:"dropdown",classNames:{root:"adm:p-0!"},...j}),e.jsxRuntimeExports.jsxs("div",{className:"adm:mt-2 adm:flex adm:justify-end adm:gap-2",children:[e.jsxRuntimeExports.jsx(x.Button,{variant:"link",onClick:()=>{r(!1)},children:a.cancel}),e.jsxRuntimeExports.jsx(x.Button,{variant:"link",onClick:()=>{c&&o(c),r(!1)},children:a.apply})]})]})]})]})}exports.DatePickerSelector=g;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { j as a } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { B as u } from "./button-
|
|
3
|
-
import { b, C as j, s as v } from "./calendar-
|
|
4
|
-
import { C } from "./combobox-
|
|
2
|
+
import { B as u } from "./button-B0lWuG-D.js";
|
|
3
|
+
import { b, C as j, s as v } from "./calendar-CfqtuOWv.js";
|
|
4
|
+
import { C } from "./combobox-B8HMlZy6.js";
|
|
5
5
|
import { I as g } from "./input-BCiOr4Fy.js";
|
|
6
6
|
import { P as k, c as P, b as w } from "./popover-DcQ18EVl.js";
|
|
7
7
|
import { useState as d } from "react";
|
package/dist/file-upload.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),T=require("./button-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),T=require("./button-DVrteFz9.cjs"),w=require("./icon-DPMQJBkA.cjs"),h=require("./typography-Bj8oEDuE.cjs"),g=require("./index-DoxiiusW.cjs"),O=require("react");function U({isDragging:r,isMultiple:a,invalid:s,accept:o,acceptedExtensions:n,maxSizeInMB:x,maxFiles:c,labels:i,onDragOver:j,onDragLeave:b,onDrop:R,onFileChange:u}){return e.jsxRuntimeExports.jsxs("div",{onDragOver:j,onDragLeave:b,onDrop:R,className:g.cn(`
|
|
2
2
|
adm:flex adm:flex-col adm:items-center adm:gap-6 adm:rounded-2xl
|
|
3
3
|
adm:border-2
|
|
4
4
|
`,"adm:border-dashed adm:bg-background adm:p-6 adm:transition-colors",{"adm:border-primary":r&&!s,"adm:border-destructive":s,"adm:border-input":!r&&!s}),children:[e.jsxRuntimeExports.jsx("div",{className:g.cn("adm:flex adm:items-center adm:justify-center adm:rounded-xl adm:p-2.5",s?"adm:bg-destructive/10":"adm:bg-primary-50"),children:e.jsxRuntimeExports.jsx(w.Icon,{symbol:"text_snippet",className:s?"adm:text-destructive":"adm:text-primary"})}),e.jsxRuntimeExports.jsxs("div",{className:"adm:flex adm:flex-col adm:items-center adm:gap-2",children:[e.jsxRuntimeExports.jsx(h.Typography,{color:s?"destructive":void 0,children:i?.dragDrop||(a?"Drag and drop your files here or":"Drag and drop your file here or")}),e.jsxRuntimeExports.jsxs("label",{htmlFor:"file-upload",children:[e.jsxRuntimeExports.jsx("input",{id:"file-upload",type:"file",accept:o,multiple:a,onChange:u,className:"adm:hidden"}),e.jsxRuntimeExports.jsx(T.Button,{asChild:!0,type:"button",variant:"link",className:"adm:cursor-pointer",children:e.jsxRuntimeExports.jsx("span",{children:i?.selectFile||(a?"Select files":"Select the file")})})]})]}),e.jsxRuntimeExports.jsx(h.Typography,{className:"adm:text-center",color:s?"destructive":"muted",children:i?.fileRequirements||`Allowed files: ${n.join(", ")}. Maximum size ${x} MB${a?`. Up to ${c} files`:""}.`})]})}function V({file:r,invalid:a,onRemove:s}){return e.jsxRuntimeExports.jsxs("div",{className:g.cn("adm:flex adm:items-center adm:gap-4 adm:rounded-2xl adm:border adm:p-6",a?"adm:border-destructive adm:bg-destructive/5":"adm:border-input adm:bg-muted"),children:[e.jsxRuntimeExports.jsx("div",{className:g.cn("adm:flex adm:items-center adm:justify-center adm:rounded-xl adm:p-2.5",a?"adm:bg-destructive/10":"adm:bg-primary-50"),children:e.jsxRuntimeExports.jsx(w.Icon,{symbol:"text_snippet",className:a?"adm:text-destructive":"adm:text-primary"})}),e.jsxRuntimeExports.jsxs("div",{className:`
|
package/dist/file-upload.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { B as z } from "./button-
|
|
2
|
+
import { B as z } from "./button-B0lWuG-D.js";
|
|
3
3
|
import { I as R } from "./icon-DKAhvlX_.js";
|
|
4
4
|
import { T as g } from "./typography-MnY0LQoZ.js";
|
|
5
5
|
import { c as j } from "./index-CRiPKpXj.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./jsx-runtime-BB_1_6y_.cjs"),i=require("./spinner-B-sC3DVC.cjs"),a=require("react");class l{subscribers=[];subscribe(e){return this.subscribers.push(e),()=>{this.subscribers=this.subscribers.filter(r=>r!==e)}}emit(e){this.subscribers.forEach(r=>r(e))}}const s=new l;function c(){const[t,e]=a.useState(!1);return a.useEffect(()=>{const r=s.subscribe(({open:u})=>{e(u)});return()=>{r()}},[]),t?n.jsxRuntimeExports.jsx("div",{"data-slot":"full-screen-loader",className:`
|
|
2
2
|
adm:fixed adm:inset-0 adm:z-100 adm:flex adm:items-center
|
|
3
|
-
adm:justify-center adm:bg-black/
|
|
3
|
+
adm:justify-center adm:bg-black/20
|
|
4
4
|
`,children:n.jsxRuntimeExports.jsx(i.Spinner,{className:"adm:text-4xl adm:text-primary"})}):null}class o{show(){s.emit({open:!0})}hide(){s.emit({open:!1})}}const b=new o;exports.FullScreenLoader=c;exports.FullScreenLoaderManager=b;exports.FullScreenLoaderObservable=s;
|
|
@@ -28,7 +28,7 @@ function f() {
|
|
|
28
28
|
"data-slot": "full-screen-loader",
|
|
29
29
|
className: `
|
|
30
30
|
adm:fixed adm:inset-0 adm:z-100 adm:flex adm:items-center
|
|
31
|
-
adm:justify-center adm:bg-black/
|
|
31
|
+
adm:justify-center adm:bg-black/20
|
|
32
32
|
`,
|
|
33
33
|
children: /* @__PURE__ */ a.jsx(i, { className: "adm:text-4xl adm:text-primary" })
|
|
34
34
|
}
|
package/dist/input-group.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("./button-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("./button-DVrteFz9.cjs"),i=require("./input-Bz5k4w94.cjs"),u=require("./textarea-DkFUS_oS.cjs"),n=require("./index-DoxiiusW.cjs"),s=require("./index-BTzZJcis.cjs");require("react");function p({className:t,...a}){return d.jsxRuntimeExports.jsx("div",{"data-slot":"input-group",role:"group",className:n.cn(`
|
|
2
2
|
adm:group/input-group adm:relative adm:flex adm:w-full
|
|
3
3
|
adm:items-center adm:rounded-md adm:border adm:border-input
|
|
4
4
|
adm:shadow-xs adm:transition-[color,box-shadow] adm:outline-none
|
package/dist/input-group.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as d } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
-
import { B as m } from "./button-
|
|
3
|
+
import { B as m } from "./button-B0lWuG-D.js";
|
|
4
4
|
import { I as i } from "./input-BCiOr4Fy.js";
|
|
5
5
|
import { T as u } from "./textarea-BRCnIxdB.js";
|
|
6
6
|
import { c as n } from "./index-CRiPKpXj.js";
|
package/dist/pagination.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("./button-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./jsx-runtime-BB_1_6y_.cjs"),m=require("./button-DVrteFz9.cjs"),s=require("./icon-DPMQJBkA.cjs"),i=require("./index-DoxiiusW.cjs");require("react");function l({className:a,...n}){return t.jsxRuntimeExports.jsx("nav",{role:"navigation","aria-label":"pagination","data-slot":"pagination",className:i.cn("adm:mx-auto adm:flex adm:w-full adm:justify-center",a),...n})}function u({className:a,...n}){return t.jsxRuntimeExports.jsx("ul",{"data-slot":"pagination-content",className:i.cn("adm:flex adm:flex-row adm:items-center adm:gap-1",a),...n})}function x({...a}){return t.jsxRuntimeExports.jsx("li",{"data-slot":"pagination-item",...a})}function o({className:a,isActive:n,size:e="icon",...r}){return t.jsxRuntimeExports.jsx("a",{"aria-current":n?"page":void 0,"data-slot":"pagination-link","data-active":n,className:i.cn(m.buttonVariants({variant:"ghost-neutral",size:e}),{"adm:bg-input/50":n},a),...r})}function c({className:a,children:n,...e}){return t.jsxRuntimeExports.jsxs(o,{"aria-label":"Go to previous page",size:"default",className:i.cn(`
|
|
2
2
|
adm:gap-1 adm:px-2.5
|
|
3
3
|
adm:sm:pl-2.5
|
|
4
4
|
`,a),...e,children:[t.jsxRuntimeExports.jsx(s.Icon,{symbol:"chevron_left",className:"adm:text-lg"}),t.jsxRuntimeExports.jsx("span",{className:`
|
package/dist/pagination.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { j as t } from "./jsx-runtime-BzflLqGi.js";
|
|
3
|
-
import { b as r } from "./button-
|
|
3
|
+
import { b as r } from "./button-B0lWuG-D.js";
|
|
4
4
|
import { I as i } from "./icon-DKAhvlX_.js";
|
|
5
5
|
import { c as e } from "./index-CRiPKpXj.js";
|
|
6
6
|
import "react";
|
package/dist/sidebar.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),S=require("./index-CBuLZ39k.cjs"),l=require("./index-CjyiloO7.cjs"),h=require("./index-BDs8lUfq.cjs"),f=require("./button-
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./jsx-runtime-BB_1_6y_.cjs"),S=require("./index-CBuLZ39k.cjs"),l=require("./index-CjyiloO7.cjs"),h=require("./index-BDs8lUfq.cjs"),f=require("./button-DVrteFz9.cjs"),j=require("./icon-DPMQJBkA.cjs"),d=require("./sheet-CvcCaGSl.cjs"),s=require("./index-DoxiiusW.cjs"),m=require("react");function g(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const x=g(m);function E(e){const t=x.useCallback(i=>{const o=window.matchMedia(e);return o.addEventListener("change",i),()=>{o.removeEventListener("change",i)}},[e]),r=()=>window.matchMedia(e).matches,n=()=>{throw Error("useMediaQuery is a client-only hook")};return x.useSyncExternalStore(t,r,n)}const b=m.createContext({});function R({children:e}){const[t,r]=m.useState(!1),[n,i]=m.useState("auto"),o=E("(min-width: 1280px)");return a.jsxRuntimeExports.jsx(b.Provider,{value:{isXl:o,sidebarHeight:n,setSidebarHeight:i,sheetOpen:t,setSheetOpen:r},children:a.jsxRuntimeExports.jsx("nav",{"data-slot":"sidebar",children:e})})}function y({className:e,children:t,...r}){const{isXl:n,setSidebarHeight:i,sheetOpen:o,setSheetOpen:p}=c();return a.jsxRuntimeExports.jsx(S.Portal,{children:a.jsxRuntimeExports.jsxs("div",{ref:u=>{u&&i(n?"auto":`${u.clientHeight}px`)},"data-slot":"sidebar-content",className:s.cn(`
|
|
2
2
|
adm:fixed adm:bg-sidebar-primary adm:text-sidebar-primary-foreground
|
|
3
3
|
adm:xl:flex adm:xl:flex-col
|
|
4
4
|
`,"adm:top-0 adm:right-0 adm:left-0",`
|
package/dist/sidebar.js
CHANGED
|
@@ -3,7 +3,7 @@ import { j as r } from "./jsx-runtime-BzflLqGi.js";
|
|
|
3
3
|
import { P as f } from "./index-CZWDxvEo.js";
|
|
4
4
|
import { S as c } from "./index-BvLQnI56.js";
|
|
5
5
|
import { V as h } from "./index-PYkEXTqJ.js";
|
|
6
|
-
import { B as p } from "./button-
|
|
6
|
+
import { B as p } from "./button-B0lWuG-D.js";
|
|
7
7
|
import { I as S } from "./icon-DKAhvlX_.js";
|
|
8
8
|
import { S as g, c as j, d as w, f as y, g as v } from "./sheet-IRIc3TJ1.js";
|
|
9
9
|
import { c as d } from "./index-CRiPKpXj.js";
|