@adamosuiteservices/ui 2.9.15 → 2.10.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/accordion-rounded.cjs +12 -17
- package/dist/accordion-rounded.js +37 -46
- package/dist/accordion.cjs +8 -7
- package/dist/accordion.js +19 -17
- package/dist/alert.cjs +7 -3
- package/dist/alert.js +14 -10
- package/dist/avatar.cjs +2 -0
- package/dist/avatar.js +42 -40
- package/dist/badge.cjs +9 -2
- package/dist/badge.js +19 -12
- package/dist/breadcrumb.cjs +7 -3
- package/dist/breadcrumb.js +30 -24
- package/dist/{button-B7ZP4LZN.js → button-CUNnLccZ.js} +11 -6
- package/dist/{button-D-qFRXiM.cjs → button-CxGyLoeN.cjs} +7 -2
- package/dist/button-group.cjs +2 -0
- package/dist/button-group.js +15 -13
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/calendar.cjs +8 -6
- package/dist/calendar.js +507 -492
- package/dist/card.cjs +9 -4
- package/dist/card.js +8 -3
- package/dist/checkbox-CFGlO5wt.cjs +22 -0
- package/dist/{checkbox-DhBcmKze.js → checkbox-DsN1IQGA.js} +70 -68
- package/dist/checkbox.cjs +1 -1
- package/dist/checkbox.js +1 -1
- package/dist/combobox.cjs +10 -13
- package/dist/combobox.js +90 -99
- package/dist/components/ui/icon/icon.d.ts +1 -3
- package/dist/components/ui/icon/icon.stories.d.ts +0 -5
- package/dist/components/ui/spinner/spinner.d.ts +1 -1
- package/dist/components/ui/tooltip/tooltip.stories.d.ts +0 -1
- package/dist/context-menu.cjs +10 -8
- package/dist/context-menu.js +126 -120
- package/dist/custom-layered-styles.css +1 -1
- package/dist/dialog.cjs +10 -7
- package/dist/dialog.js +43 -40
- package/dist/dropdown-menu.cjs +25 -10
- package/dist/dropdown-menu.js +179 -166
- package/dist/icon-D0vVkV-A.js +35 -0
- package/dist/icon-SWksUOv5.cjs +6 -0
- package/dist/icon.cjs +1 -1
- package/dist/icon.js +1 -1
- package/dist/icons.css +1 -1
- package/dist/input-group.cjs +14 -6
- package/dist/input-group.js +25 -17
- package/dist/kbd.cjs +3 -3
- package/dist/kbd.js +1 -0
- package/dist/pagination.cjs +4 -4
- package/dist/pagination.js +41 -43
- package/dist/radio-group.cjs +5 -5
- package/dist/radio-group.js +44 -42
- package/dist/radius.css +1 -1
- package/dist/select.cjs +12 -13
- package/dist/select.js +182 -187
- package/dist/{sheet-Q3dBOQG-.js → sheet-DM7b3ckK.js} +18 -18
- package/dist/{sheet-CGahUP7F.cjs → sheet-DfRu4ByS.cjs} +4 -4
- package/dist/sheet.cjs +1 -1
- package/dist/sheet.js +1 -1
- package/dist/sidebar.cjs +6 -11
- package/dist/sidebar.js +38 -49
- package/dist/spinner.cjs +1 -6
- package/dist/spinner.js +10 -16
- package/dist/styles.css +1 -1
- package/dist/tabs-underline.cjs +6 -3
- package/dist/tabs-underline.js +8 -5
- package/dist/tabs.cjs +6 -3
- package/dist/tabs.js +8 -5
- package/dist/toggle.cjs +5 -2
- package/dist/toggle.js +14 -11
- package/docs/components/layout/sidebar.md +18 -23
- package/docs/components/ui/accordion-rounded.md +584 -583
- package/docs/components/ui/accordion.md +3 -1
- package/docs/components/ui/alert.md +650 -671
- package/docs/components/ui/avatar.md +587 -588
- package/docs/components/ui/badge.md +1019 -1024
- package/docs/components/ui/breadcrumb.md +14 -14
- package/docs/components/ui/button-group.md +69 -87
- package/docs/components/ui/button.md +17 -17
- package/docs/components/ui/calendar.md +6 -6
- package/docs/components/ui/card.md +21 -27
- package/docs/components/ui/collapsible.md +16 -13
- package/docs/components/ui/combobox.md +14 -14
- package/docs/components/ui/command.md +6 -6
- package/docs/components/ui/context-menu.md +23 -23
- package/docs/components/ui/dialog.md +16 -16
- package/docs/components/ui/dropdown-menu.md +44 -66
- package/docs/components/ui/hover-card.md +5 -5
- package/docs/components/ui/icon.md +87 -88
- package/docs/components/ui/input-group.md +523 -509
- package/docs/components/ui/kbd.md +8 -8
- package/docs/components/ui/label.md +5 -5
- package/docs/components/ui/pagination.md +5 -5
- package/docs/components/ui/popover.md +14 -14
- package/docs/components/ui/progress.md +2 -2
- package/docs/components/ui/radio-group.md +2 -2
- package/docs/components/ui/select.md +6 -6
- package/docs/components/ui/spinner.md +15 -15
- package/docs/components/ui/switch.md +15 -9
- package/docs/components/ui/tabs-underline.md +4 -4
- package/docs/components/ui/tabs.md +5 -5
- package/docs/components/ui/toggle.md +17 -23
- package/docs/components/ui/tooltip.md +7 -10
- package/package.json +1 -1
- package/dist/check-CLxNVljQ.cjs +0 -6
- package/dist/check-Ci0GjV-B.js +0 -11
- package/dist/checkbox-CdnZ8VFJ.cjs +0 -21
- package/dist/chevron-down-BqEHzml5.cjs +0 -6
- package/dist/chevron-down-CpVS2Z7w.js +0 -11
- package/dist/chevron-left-B8QsBNvc.cjs +0 -6
- package/dist/chevron-left-Eal-WYLp.js +0 -11
- package/dist/chevron-right-BpzggHsr.cjs +0 -6
- package/dist/chevron-right-Cnc2tB4-.js +0 -11
- package/dist/circle-CX7JIirj.cjs +0 -6
- package/dist/circle-DYv-7Qb9.js +0 -11
- package/dist/createLucideIcon-B_8CJpcQ.js +0 -94
- package/dist/createLucideIcon-CAtnV-yz.cjs +0 -21
- package/dist/ellipsis-CryjZKZn.js +0 -15
- package/dist/ellipsis-Ct9VTDOG.cjs +0 -6
- package/dist/icon-DTx6Y_mx.cjs +0 -6
- package/dist/icon-DmU_SEHC.js +0 -36
- package/dist/minus-C0pHPx21.cjs +0 -6
- package/dist/minus-DE-onYs2.js +0 -11
- package/dist/x-CBKgg4YL.cjs +0 -6
- package/dist/x-Dl66o_vF.js +0 -14
package/dist/tabs-underline.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("./index-DmGzwG2z.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),s=require("./index-DmGzwG2z.cjs"),n=require("./index-DoxiiusW.cjs");require("react");function d({className:t,...a}){return e.jsxRuntimeExports.jsx(s.Root2,{"data-slot":"tabs",className:n.cn("adm:flex adm:flex-col adm:gap-2",t),...a})}function i({className:t,...a}){return e.jsxRuntimeExports.jsx(s.List,{"data-slot":"tabs-list",className:n.cn(`
|
|
2
2
|
adm:inline-flex adm:h-9 adm:w-fit adm:items-center adm:justify-center
|
|
3
3
|
adm:p-[1px] adm:text-muted-foreground
|
|
4
|
-
`,
|
|
4
|
+
`,t),...a})}function r({className:t,...a}){return e.jsxRuntimeExports.jsx(s.Trigger,{"data-slot":"tabs-trigger",className:n.cn(`
|
|
5
5
|
adm:inline-flex adm:h-[calc(100%-1px)] adm:flex-1 adm:items-center
|
|
6
6
|
adm:justify-center adm:gap-1.5 adm:border-b-2 adm:border-b-transparent
|
|
7
7
|
adm:px-2 adm:py-1 adm:text-sm adm:font-semibold adm:whitespace-nowrap
|
|
@@ -16,6 +16,9 @@
|
|
|
16
16
|
adm:dark:data-[state=active]:border-input
|
|
17
17
|
adm:dark:data-[state=active]:bg-input/30
|
|
18
18
|
adm:dark:data-[state=active]:text-foreground
|
|
19
|
+
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
20
|
+
adm:[&_[data-slot=icon]]:shrink-0
|
|
21
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
19
22
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
20
23
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
21
|
-
`,
|
|
24
|
+
`,t),...a})}function o({className:t,...a}){return e.jsxRuntimeExports.jsx(s.Content,{"data-slot":"tabs-content",className:n.cn("adm:flex-1 adm:outline-none",t),...a})}exports.Tabs=d;exports.TabsContent=o;exports.TabsList=i;exports.TabsTrigger=r;
|
package/dist/tabs-underline.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { R as s, L as
|
|
2
|
+
import { R as s, L as n, T as i, C as r } from "./index-yWvyIlmA.js";
|
|
3
3
|
import { c as d } from "./index-CRiPKpXj.js";
|
|
4
4
|
import "react";
|
|
5
5
|
function u({
|
|
@@ -20,7 +20,7 @@ function b({
|
|
|
20
20
|
...t
|
|
21
21
|
}) {
|
|
22
22
|
return /* @__PURE__ */ e.jsx(
|
|
23
|
-
|
|
23
|
+
n,
|
|
24
24
|
{
|
|
25
25
|
"data-slot": "tabs-list",
|
|
26
26
|
className: d(
|
|
@@ -58,6 +58,9 @@ function f({
|
|
|
58
58
|
adm:dark:data-[state=active]:border-input
|
|
59
59
|
adm:dark:data-[state=active]:bg-input/30
|
|
60
60
|
adm:dark:data-[state=active]:text-foreground
|
|
61
|
+
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
62
|
+
adm:[&_[data-slot=icon]]:shrink-0
|
|
63
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
61
64
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
62
65
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
63
66
|
`,
|
|
@@ -67,12 +70,12 @@ function f({
|
|
|
67
70
|
}
|
|
68
71
|
);
|
|
69
72
|
}
|
|
70
|
-
function
|
|
73
|
+
function x({
|
|
71
74
|
className: a,
|
|
72
75
|
...t
|
|
73
76
|
}) {
|
|
74
77
|
return /* @__PURE__ */ e.jsx(
|
|
75
|
-
|
|
78
|
+
r,
|
|
76
79
|
{
|
|
77
80
|
"data-slot": "tabs-content",
|
|
78
81
|
className: d("adm:flex-1 adm:outline-none", a),
|
|
@@ -82,7 +85,7 @@ function p({
|
|
|
82
85
|
}
|
|
83
86
|
export {
|
|
84
87
|
u as Tabs,
|
|
85
|
-
|
|
88
|
+
x as TabsContent,
|
|
86
89
|
b as TabsList,
|
|
87
90
|
f as TabsTrigger
|
|
88
91
|
};
|
package/dist/tabs.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-DmGzwG2z.cjs"),s=require("./index-DoxiiusW.cjs");require("react");function n({className:a,...t}){return e.jsxRuntimeExports.jsx(d.Root2,{"data-slot":"tabs",className:s.cn("adm:flex adm:flex-col adm:gap-2",a),...t})}function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./jsx-runtime-BB_1_6y_.cjs"),d=require("./index-DmGzwG2z.cjs"),s=require("./index-DoxiiusW.cjs");require("react");function n({className:a,...t}){return e.jsxRuntimeExports.jsx(d.Root2,{"data-slot":"tabs",className:s.cn("adm:flex adm:flex-col adm:gap-2",a),...t})}function i({className:a,...t}){return e.jsxRuntimeExports.jsx(d.List,{"data-slot":"tabs-list",className:s.cn(`
|
|
2
2
|
adm:inline-flex adm:h-9 adm:w-fit adm:items-center adm:justify-center
|
|
3
3
|
adm:rounded-lg adm:bg-muted adm:p-[1px] adm:text-muted-foreground
|
|
4
|
-
`,a),...t})}function
|
|
4
|
+
`,a),...t})}function r({className:a,...t}){return e.jsxRuntimeExports.jsx(d.Trigger,{"data-slot":"tabs-trigger",className:s.cn(`
|
|
5
5
|
adm:inline-flex adm:h-[calc(100%-1px)] adm:flex-1 adm:items-center
|
|
6
6
|
adm:justify-center adm:gap-1.5 adm:rounded-md adm:border
|
|
7
7
|
adm:border-transparent adm:px-2 adm:py-1 adm:text-sm adm:font-semibold
|
|
@@ -17,6 +17,9 @@
|
|
|
17
17
|
adm:dark:data-[state=active]:border-input
|
|
18
18
|
adm:dark:data-[state=active]:bg-input/30
|
|
19
19
|
adm:dark:data-[state=active]:text-foreground
|
|
20
|
+
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
21
|
+
adm:[&_[data-slot=icon]]:shrink-0
|
|
22
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
20
23
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
21
24
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
22
|
-
`,a),...t})}function
|
|
25
|
+
`,a),...t})}function o({className:a,...t}){return e.jsxRuntimeExports.jsx(d.Content,{"data-slot":"tabs-content",className:s.cn("adm:flex-1 adm:outline-none",a),...t})}exports.Tabs=n;exports.TabsContent=o;exports.TabsList=i;exports.TabsTrigger=r;
|
package/dist/tabs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { j as e } from "./jsx-runtime-BzflLqGi.js";
|
|
2
|
-
import { R as s, L as m, T as
|
|
2
|
+
import { R as s, L as m, T as n, C as o } from "./index-yWvyIlmA.js";
|
|
3
3
|
import { c as d } from "./index-CRiPKpXj.js";
|
|
4
4
|
import "react";
|
|
5
5
|
function u({
|
|
@@ -39,7 +39,7 @@ function g({
|
|
|
39
39
|
...t
|
|
40
40
|
}) {
|
|
41
41
|
return /* @__PURE__ */ e.jsx(
|
|
42
|
-
|
|
42
|
+
n,
|
|
43
43
|
{
|
|
44
44
|
"data-slot": "tabs-trigger",
|
|
45
45
|
className: d(
|
|
@@ -59,6 +59,9 @@ function g({
|
|
|
59
59
|
adm:dark:data-[state=active]:border-input
|
|
60
60
|
adm:dark:data-[state=active]:bg-input/30
|
|
61
61
|
adm:dark:data-[state=active]:text-foreground
|
|
62
|
+
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
63
|
+
adm:[&_[data-slot=icon]]:shrink-0
|
|
64
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
62
65
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
63
66
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
64
67
|
`,
|
|
@@ -68,12 +71,12 @@ function g({
|
|
|
68
71
|
}
|
|
69
72
|
);
|
|
70
73
|
}
|
|
71
|
-
function
|
|
74
|
+
function x({
|
|
72
75
|
className: a,
|
|
73
76
|
...t
|
|
74
77
|
}) {
|
|
75
78
|
return /* @__PURE__ */ e.jsx(
|
|
76
|
-
|
|
79
|
+
o,
|
|
77
80
|
{
|
|
78
81
|
"data-slot": "tabs-content",
|
|
79
82
|
className: d("adm:flex-1 adm:outline-none", a),
|
|
@@ -83,7 +86,7 @@ function b({
|
|
|
83
86
|
}
|
|
84
87
|
export {
|
|
85
88
|
u as Tabs,
|
|
86
|
-
|
|
89
|
+
x as TabsContent,
|
|
87
90
|
f as TabsList,
|
|
88
91
|
g as TabsTrigger
|
|
89
92
|
};
|
package/dist/toggle.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-BB_1_6y_.cjs"),g=require("react"),r=require("./index-BWaO7kQK.cjs"),f=require("./index-CocSS1YK.cjs"),b=require("./index-DoxiiusW.cjs"),v=require("./index-BTzZJcis.cjs");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./jsx-runtime-BB_1_6y_.cjs"),g=require("react"),r=require("./index-BWaO7kQK.cjs"),f=require("./index-CocSS1YK.cjs"),b=require("./index-DoxiiusW.cjs"),v=require("./index-BTzZJcis.cjs");function p(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const a in e)if(a!=="default"){const n=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,n.get?n:{enumerable:!0,get:()=>e[a]})}}return t.default=e,Object.freeze(t)}const x=p(g);var s="Toggle",i=x.forwardRef((e,t)=>{const{pressed:a,defaultPressed:n,onPressedChange:l,...c}=e,[d,u]=r.useControllableState({prop:a,onChange:l,defaultProp:n??!1,caller:s});return o.jsxRuntimeExports.jsx(f.Primitive.button,{type:"button","aria-pressed":d,"data-state":d?"on":"off","data-disabled":e.disabled?"":void 0,...c,ref:t,onClick:r.composeEventHandlers(e.onClick,()=>{e.disabled||u(!d)})})});i.displayName=s;var h=i;const m=v.cva(`
|
|
2
2
|
adm:inline-flex adm:items-center adm:justify-center adm:gap-2 adm:rounded-md
|
|
3
3
|
adm:text-sm adm:font-medium adm:whitespace-nowrap
|
|
4
4
|
adm:transition-[color,box-shadow] adm:outline-none
|
|
@@ -9,9 +9,12 @@
|
|
|
9
9
|
adm:aria-invalid:border-destructive adm:aria-invalid:ring-destructive/20
|
|
10
10
|
adm:data-[state=on]:bg-accent adm:data-[state=on]:text-accent-foreground
|
|
11
11
|
adm:dark:aria-invalid:ring-destructive/40
|
|
12
|
+
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
13
|
+
adm:[&_[data-slot=icon]]:shrink-0
|
|
14
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
12
15
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
13
16
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
14
17
|
`,{variants:{variant:{default:"adm:bg-transparent",outline:`
|
|
15
18
|
adm:border adm:border-input adm:bg-transparent adm:shadow-xs
|
|
16
19
|
adm:hover:bg-accent adm:hover:text-accent-foreground
|
|
17
|
-
`},size:{default:"adm:h-9 adm:min-w-9 adm:px-2",sm:"adm:h-8 adm:min-w-8 adm:px-1.5",lg:"adm:h-10 adm:min-w-10 adm:px-2.5"}},defaultVariants:{variant:"default",size:"default"}});function j({className:e,variant:t,size:a,...
|
|
20
|
+
`},size:{default:"adm:h-9 adm:min-w-9 adm:px-2",sm:"adm:h-8 adm:min-w-8 adm:px-1.5",lg:"adm:h-10 adm:min-w-10 adm:px-2.5"}},defaultVariants:{variant:"default",size:"default"}});function j({className:e,variant:t,size:a,...n}){return o.jsxRuntimeExports.jsx(h,{"data-slot":"toggle",className:b.cn(m({variant:t,size:a,className:e})),...n})}exports.Toggle=j;exports.toggleVariants=m;
|
package/dist/toggle.js
CHANGED
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import { j as
|
|
1
|
+
import { j as r } from "./jsx-runtime-BzflLqGi.js";
|
|
2
2
|
import * as c from "react";
|
|
3
3
|
import { u, c as g } from "./index-C0UREtMP.js";
|
|
4
4
|
import { P as f } from "./index-BMWt1NBG.js";
|
|
5
5
|
import { c as v } from "./index-CRiPKpXj.js";
|
|
6
6
|
import { c as p } from "./index-BqtVL8d-.js";
|
|
7
|
-
var
|
|
8
|
-
const { pressed: t, defaultPressed: d, onPressedChange: i, ...m } = a, [
|
|
7
|
+
var n = "Toggle", s = c.forwardRef((a, e) => {
|
|
8
|
+
const { pressed: t, defaultPressed: d, onPressedChange: i, ...m } = a, [o, l] = u({
|
|
9
9
|
prop: t,
|
|
10
10
|
onChange: i,
|
|
11
11
|
defaultProp: d ?? !1,
|
|
12
|
-
caller:
|
|
12
|
+
caller: n
|
|
13
13
|
});
|
|
14
|
-
return /* @__PURE__ */
|
|
14
|
+
return /* @__PURE__ */ r.jsx(
|
|
15
15
|
f.button,
|
|
16
16
|
{
|
|
17
17
|
type: "button",
|
|
18
|
-
"aria-pressed":
|
|
19
|
-
"data-state":
|
|
18
|
+
"aria-pressed": o,
|
|
19
|
+
"data-state": o ? "on" : "off",
|
|
20
20
|
"data-disabled": a.disabled ? "" : void 0,
|
|
21
21
|
...m,
|
|
22
22
|
ref: e,
|
|
23
23
|
onClick: g(a.onClick, () => {
|
|
24
|
-
a.disabled || l(!
|
|
24
|
+
a.disabled || l(!o);
|
|
25
25
|
})
|
|
26
26
|
}
|
|
27
27
|
);
|
|
28
28
|
});
|
|
29
|
-
|
|
30
|
-
var b =
|
|
29
|
+
s.displayName = n;
|
|
30
|
+
var b = s;
|
|
31
31
|
const x = p(
|
|
32
32
|
`
|
|
33
33
|
adm:inline-flex adm:items-center adm:justify-center adm:gap-2 adm:rounded-md
|
|
@@ -40,6 +40,9 @@ const x = p(
|
|
|
40
40
|
adm:aria-invalid:border-destructive adm:aria-invalid:ring-destructive/20
|
|
41
41
|
adm:data-[state=on]:bg-accent adm:data-[state=on]:text-accent-foreground
|
|
42
42
|
adm:dark:aria-invalid:ring-destructive/40
|
|
43
|
+
adm:[&_[data-slot=icon]]:pointer-events-none
|
|
44
|
+
adm:[&_[data-slot=icon]]:shrink-0
|
|
45
|
+
adm:[&_[data-slot=icon]:not([class*=text-])]:text-lg
|
|
43
46
|
adm:[&_svg]:pointer-events-none adm:[&_svg]:shrink-0
|
|
44
47
|
adm:[&_svg:not([class*=size-])]:size-4
|
|
45
48
|
`,
|
|
@@ -70,7 +73,7 @@ function k({
|
|
|
70
73
|
size: t,
|
|
71
74
|
...d
|
|
72
75
|
}) {
|
|
73
|
-
return /* @__PURE__ */
|
|
76
|
+
return /* @__PURE__ */ r.jsx(
|
|
74
77
|
b,
|
|
75
78
|
{
|
|
76
79
|
"data-slot": "toggle",
|
|
@@ -37,19 +37,19 @@ import { Link } from "react-router-dom"; // o Next.js Link
|
|
|
37
37
|
|
|
38
38
|
<SidebarMenu>
|
|
39
39
|
<SidebarMenuItem>
|
|
40
|
-
<
|
|
40
|
+
<Icon symbol="home" /> Dashboard
|
|
41
41
|
</SidebarMenuItem>
|
|
42
42
|
<SidebarMenuItem>
|
|
43
|
-
<
|
|
43
|
+
<Icon symbol="folder" /> Projects
|
|
44
44
|
</SidebarMenuItem>
|
|
45
45
|
<SidebarMenuItem>
|
|
46
|
-
<
|
|
46
|
+
<Icon symbol="settings" /> Settings
|
|
47
47
|
</SidebarMenuItem>
|
|
48
48
|
</SidebarMenu>
|
|
49
49
|
|
|
50
50
|
<SidebarFooter>
|
|
51
51
|
<SidebarMenuItem>
|
|
52
|
-
<
|
|
52
|
+
<Icon symbol="account_circle" /> Profile
|
|
53
53
|
</SidebarMenuItem>
|
|
54
54
|
</SidebarFooter>
|
|
55
55
|
</SidebarContent>
|
|
@@ -149,7 +149,7 @@ Item individual del menú con hover effects.
|
|
|
149
149
|
| className | `string` | Clases adicionales |
|
|
150
150
|
| ...props | `ComponentProps<"button">` | Props nativas de button |
|
|
151
151
|
|
|
152
|
-
**Comportamiento**: Oculto automáticamente en desktop (xl:hidden). Incluye icono
|
|
152
|
+
**Comportamiento**: Oculto automáticamente en desktop (xl:hidden). Incluye icono menu de Material Symbols.
|
|
153
153
|
|
|
154
154
|
### SidebarHeader
|
|
155
155
|
|
|
@@ -207,12 +207,7 @@ import {
|
|
|
207
207
|
SidebarTopBar,
|
|
208
208
|
SidebarTrigger,
|
|
209
209
|
} from "@adamosuiteservices/ui/sidebar";
|
|
210
|
-
import {
|
|
211
|
-
CircleUserRoundIcon,
|
|
212
|
-
HomeIcon,
|
|
213
|
-
SettingsIcon,
|
|
214
|
-
FolderIcon,
|
|
215
|
-
} from "lucide-react";
|
|
210
|
+
import { Icon } from "@adamosuiteservices/ui/icon";
|
|
216
211
|
|
|
217
212
|
export default function AppLayout() {
|
|
218
213
|
return (
|
|
@@ -224,19 +219,19 @@ export default function AppLayout() {
|
|
|
224
219
|
|
|
225
220
|
<SidebarMenu>
|
|
226
221
|
<SidebarMenuItem>
|
|
227
|
-
<
|
|
222
|
+
<Icon symbol="home" /> Dashboard
|
|
228
223
|
</SidebarMenuItem>
|
|
229
224
|
<SidebarMenuItem>
|
|
230
|
-
<
|
|
225
|
+
<Icon symbol="folder" /> Projects
|
|
231
226
|
</SidebarMenuItem>
|
|
232
227
|
<SidebarMenuItem>
|
|
233
|
-
<
|
|
228
|
+
<Icon symbol="settings" /> Settings
|
|
234
229
|
</SidebarMenuItem>
|
|
235
230
|
</SidebarMenu>
|
|
236
231
|
|
|
237
232
|
<SidebarFooter>
|
|
238
233
|
<SidebarMenuItem>
|
|
239
|
-
<
|
|
234
|
+
<Icon symbol="account_circle" /> Profile
|
|
240
235
|
</SidebarMenuItem>
|
|
241
236
|
</SidebarFooter>
|
|
242
237
|
</SidebarContent>
|
|
@@ -295,13 +290,13 @@ El ejemplo principal muestra el uso más simple - items como buttons con iconos:
|
|
|
295
290
|
```tsx
|
|
296
291
|
<SidebarMenu>
|
|
297
292
|
<SidebarMenuItem>
|
|
298
|
-
<
|
|
293
|
+
<Icon symbol="home" /> Dashboard
|
|
299
294
|
</SidebarMenuItem>
|
|
300
295
|
<SidebarMenuItem>
|
|
301
|
-
<
|
|
296
|
+
<Icon symbol="folder" /> Projects
|
|
302
297
|
</SidebarMenuItem>
|
|
303
298
|
<SidebarMenuItem>
|
|
304
|
-
<
|
|
299
|
+
<Icon symbol="settings" /> Settings
|
|
305
300
|
</SidebarMenuItem>
|
|
306
301
|
</SidebarMenu>
|
|
307
302
|
```
|
|
@@ -314,12 +309,12 @@ import { Link } from "react-router-dom";
|
|
|
314
309
|
<SidebarMenu>
|
|
315
310
|
<SidebarMenuItem asChild>
|
|
316
311
|
<Link to="/dashboard">
|
|
317
|
-
<
|
|
312
|
+
<Icon symbol="home" /> Dashboard
|
|
318
313
|
</Link>
|
|
319
314
|
</SidebarMenuItem>
|
|
320
315
|
<SidebarMenuItem asChild>
|
|
321
316
|
<Link to="/settings">
|
|
322
|
-
<
|
|
317
|
+
<Icon symbol="settings" /> Settings
|
|
323
318
|
</Link>
|
|
324
319
|
</SidebarMenuItem>
|
|
325
320
|
</SidebarMenu>;
|
|
@@ -333,7 +328,7 @@ import Link from "next/link";
|
|
|
333
328
|
<SidebarMenu>
|
|
334
329
|
<SidebarMenuItem asChild>
|
|
335
330
|
<Link href="/dashboard">
|
|
336
|
-
<
|
|
331
|
+
<Icon symbol="home" /> Dashboard
|
|
337
332
|
</Link>
|
|
338
333
|
</SidebarMenuItem>
|
|
339
334
|
</SidebarMenu>;
|
|
@@ -348,12 +343,12 @@ const pathname = usePathname(); // Next.js o similar
|
|
|
348
343
|
<SidebarMenuItem
|
|
349
344
|
className={pathname === "/dashboard" ? "adm:bg-white/20" : ""}
|
|
350
345
|
>
|
|
351
|
-
<
|
|
346
|
+
<Icon symbol="home" /> Dashboard
|
|
352
347
|
</SidebarMenuItem>
|
|
353
348
|
<SidebarMenuItem
|
|
354
349
|
className={pathname === "/settings" ? "adm:bg-white/20" : ""}
|
|
355
350
|
>
|
|
356
|
-
<
|
|
351
|
+
<Icon symbol="settings" /> Settings
|
|
357
352
|
</SidebarMenuItem>
|
|
358
353
|
</SidebarMenu>;
|
|
359
354
|
```
|