baaz-custom-components 3.0.5 → 3.0.7
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.css +14 -45
- package/dist/index.d.mts +13 -24
- package/dist/index.d.ts +13 -24
- package/dist/index.js +138 -308
- package/dist/index.mjs +121 -290
- package/dist/sidebarIcon-XDGEVX7J.svg +5 -0
- package/dist/styles.css +1 -1
- package/dist/user-QYBMUDH7.svg +11 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -24,9 +24,15 @@
|
|
|
24
24
|
--color-black: #000;
|
|
25
25
|
--color-white: #fff;
|
|
26
26
|
--spacing: 0.25rem;
|
|
27
|
+
--container-sm: 24rem;
|
|
28
|
+
--container-lg: 32rem;
|
|
29
|
+
--text-xs: 0.75rem;
|
|
27
30
|
--text-xs--line-height: calc(1 / 0.75);
|
|
31
|
+
--text-sm: 0.875rem;
|
|
28
32
|
--text-sm--line-height: calc(1.25 / 0.875);
|
|
33
|
+
--text-base: 1rem;
|
|
29
34
|
--text-base--line-height: calc(1.5 / 1);
|
|
35
|
+
--text-lg: 1.125rem;
|
|
30
36
|
--text-lg--line-height: calc(1.75 / 1.125);
|
|
31
37
|
--font-weight-light: 300;
|
|
32
38
|
--font-weight-normal: 400;
|
|
@@ -348,9 +354,6 @@
|
|
|
348
354
|
.my-1 {
|
|
349
355
|
margin-block: calc(var(--spacing) * 1);
|
|
350
356
|
}
|
|
351
|
-
.my-2 {
|
|
352
|
-
margin-block: calc(var(--spacing) * 2);
|
|
353
|
-
}
|
|
354
357
|
.my-4 {
|
|
355
358
|
margin-block: calc(var(--spacing) * 4);
|
|
356
359
|
}
|
|
@@ -363,9 +366,6 @@
|
|
|
363
366
|
.mt-auto {
|
|
364
367
|
margin-top: auto;
|
|
365
368
|
}
|
|
366
|
-
.mb-4 {
|
|
367
|
-
margin-bottom: calc(var(--spacing) * 4);
|
|
368
|
-
}
|
|
369
369
|
.ml-1 {
|
|
370
370
|
margin-left: calc(var(--spacing) * 1);
|
|
371
371
|
}
|
|
@@ -457,9 +457,6 @@
|
|
|
457
457
|
.h-12 {
|
|
458
458
|
height: calc(var(--spacing) * 12);
|
|
459
459
|
}
|
|
460
|
-
.h-72 {
|
|
461
|
-
height: calc(var(--spacing) * 72);
|
|
462
|
-
}
|
|
463
460
|
.h-\[calc\(100dvh-3rem\)\] {
|
|
464
461
|
height: calc(100dvh - 3rem);
|
|
465
462
|
}
|
|
@@ -508,9 +505,6 @@
|
|
|
508
505
|
.w-5 {
|
|
509
506
|
width: calc(var(--spacing) * 5);
|
|
510
507
|
}
|
|
511
|
-
.w-48 {
|
|
512
|
-
width: calc(var(--spacing) * 48);
|
|
513
|
-
}
|
|
514
508
|
.w-56 {
|
|
515
509
|
width: calc(var(--spacing) * 56);
|
|
516
510
|
}
|
|
@@ -848,19 +842,19 @@
|
|
|
848
842
|
text-align: left;
|
|
849
843
|
}
|
|
850
844
|
.text-base {
|
|
851
|
-
font-size: var(--
|
|
845
|
+
font-size: var(--text-base);
|
|
852
846
|
line-height: var(--tw-leading, var(--text-base--line-height));
|
|
853
847
|
}
|
|
854
848
|
.text-lg {
|
|
855
|
-
font-size: var(--
|
|
849
|
+
font-size: var(--text-lg);
|
|
856
850
|
line-height: var(--tw-leading, var(--text-lg--line-height));
|
|
857
851
|
}
|
|
858
852
|
.text-sm {
|
|
859
|
-
font-size: var(--
|
|
853
|
+
font-size: var(--text-sm);
|
|
860
854
|
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
861
855
|
}
|
|
862
856
|
.text-xs {
|
|
863
|
-
font-size: var(--
|
|
857
|
+
font-size: var(--text-xs);
|
|
864
858
|
line-height: var(--tw-leading, var(--text-xs--line-height));
|
|
865
859
|
}
|
|
866
860
|
.leading-none {
|
|
@@ -1432,7 +1426,7 @@
|
|
|
1432
1426
|
}
|
|
1433
1427
|
.file\:text-sm {
|
|
1434
1428
|
&::file-selector-button {
|
|
1435
|
-
font-size: var(--
|
|
1429
|
+
font-size: var(--text-sm);
|
|
1436
1430
|
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
1437
1431
|
}
|
|
1438
1432
|
}
|
|
@@ -2259,12 +2253,12 @@
|
|
|
2259
2253
|
}
|
|
2260
2254
|
.sm\:max-w-lg {
|
|
2261
2255
|
@media (width >= 40rem) {
|
|
2262
|
-
max-width: var(--
|
|
2256
|
+
max-width: var(--container-lg);
|
|
2263
2257
|
}
|
|
2264
2258
|
}
|
|
2265
2259
|
.sm\:max-w-sm {
|
|
2266
2260
|
@media (width >= 40rem) {
|
|
2267
|
-
max-width: var(--
|
|
2261
|
+
max-width: var(--container-sm);
|
|
2268
2262
|
}
|
|
2269
2263
|
}
|
|
2270
2264
|
.sm\:flex-row {
|
|
@@ -2314,7 +2308,7 @@
|
|
|
2314
2308
|
}
|
|
2315
2309
|
.md\:text-sm {
|
|
2316
2310
|
@media (width >= 48rem) {
|
|
2317
|
-
font-size: var(--
|
|
2311
|
+
font-size: var(--text-sm);
|
|
2318
2312
|
line-height: var(--tw-leading, var(--text-sm--line-height));
|
|
2319
2313
|
}
|
|
2320
2314
|
}
|
|
@@ -2581,32 +2575,7 @@
|
|
|
2581
2575
|
@property --tw-exit-translate-x { syntax: "*"; inherits: false; initial-value: 0; }
|
|
2582
2576
|
@property --tw-exit-translate-y { syntax: "*"; inherits: false; initial-value: 0; }
|
|
2583
2577
|
:root {
|
|
2584
|
-
--scale: 1;
|
|
2585
2578
|
--radius: 0.625rem;
|
|
2586
|
-
--size-mini: 8px;
|
|
2587
|
-
--size-xs: 10px;
|
|
2588
|
-
--size-sm: 12px;
|
|
2589
|
-
--size-md: 14px;
|
|
2590
|
-
--size-base: 16px;
|
|
2591
|
-
--size-lg: 18px;
|
|
2592
|
-
--size-xl: 20px;
|
|
2593
|
-
--size-2xl: 24px;
|
|
2594
|
-
--size-3xl: 28px;
|
|
2595
|
-
--size-4xl: 32px;
|
|
2596
|
-
--size-huge: 36px;
|
|
2597
|
-
--size-xhuge: 40px;
|
|
2598
|
-
--size-mini-s: calc(var(--size-mini) * var(--scale));
|
|
2599
|
-
--size-xs-s: calc(var(--size-xs) * var(--scale));
|
|
2600
|
-
--size-sm-s: calc(var(--size-sm) * var(--scale));
|
|
2601
|
-
--size-md-s: calc(var(--size-md) * var(--scale));
|
|
2602
|
-
--size-base-s: calc(var(--size-base) * var(--scale));
|
|
2603
|
-
--size-lg-s: calc(var(--size-lg) * var(--scale));
|
|
2604
|
-
--size-xl-s: calc(var(--size-xl) * var(--scale));
|
|
2605
|
-
--size-2xl-s: calc(var(--size-2xl) * var(--scale));
|
|
2606
|
-
--size-3xl-s: calc(var(--size-3xl) * var(--scale));
|
|
2607
|
-
--size-4xl-s: calc(var(--size-4xl) * var(--scale));
|
|
2608
|
-
--size-huge-s: calc(var(--size-huge) * var(--scale));
|
|
2609
|
-
--size-xhuge-s: calc(var(--size-xhuge) * var(--scale));
|
|
2610
2579
|
--background: oklch(0.2758 0.0182 262.2);
|
|
2611
2580
|
--card: oklch(0.3378 0.0223 256.39);
|
|
2612
2581
|
--card-foreground: oklch(0.3906 0.033 257.09);
|
package/dist/index.d.mts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default from 'react';
|
|
3
2
|
|
|
4
|
-
interface
|
|
5
|
-
|
|
3
|
+
interface NavbarItem {
|
|
4
|
+
label: string;
|
|
5
|
+
href: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
6
7
|
}
|
|
7
8
|
interface NavbarData$1 {
|
|
8
|
-
|
|
9
|
+
items: NavbarItem[];
|
|
9
10
|
}
|
|
10
11
|
interface UserData {
|
|
11
12
|
name: string;
|
|
@@ -14,27 +15,17 @@ interface UserData {
|
|
|
14
15
|
phone: string;
|
|
15
16
|
location: string;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
18
|
interface NavbarProps {
|
|
19
|
-
|
|
20
|
-
userData
|
|
21
|
-
onLogout
|
|
19
|
+
navbarData: NavbarData$1;
|
|
20
|
+
userData: UserData;
|
|
21
|
+
onLogout: () => void;
|
|
22
22
|
}
|
|
23
|
-
declare function Navbar({ data, userData, onLogout }: NavbarProps): React$1.JSX.Element;
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
data?: NavbarData$1;
|
|
27
|
-
userData?: UserData;
|
|
28
|
-
onLogout?: () => void;
|
|
29
|
-
}
|
|
30
|
-
declare function DesktopNavbar({ data, userData, onLogout, }: MobileNavbarProps$2): React$1.JSX.Element;
|
|
24
|
+
declare function Navbar({ navbarData, userData, onLogout, }: NavbarProps): React$1.JSX.Element;
|
|
31
25
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
onLogout?: () => void;
|
|
36
|
-
}
|
|
37
|
-
declare function MobileNavbar({ data, userData, onLogout, }: MobileNavbarProps$1): React$1.JSX.Element;
|
|
26
|
+
declare function DesktopNavbar({ navbarData, userData, onLogout, }: NavbarProps): React$1.JSX.Element;
|
|
27
|
+
|
|
28
|
+
declare function MobileNavbar({ navbarData, userData, onLogout, }: NavbarProps): React$1.JSX.Element;
|
|
38
29
|
|
|
39
30
|
interface MobileNavbarProps {
|
|
40
31
|
data?: NavbarData$1;
|
|
@@ -43,8 +34,6 @@ interface MobileNavbarProps {
|
|
|
43
34
|
}
|
|
44
35
|
declare const User: ({ userData, onLogout }: MobileNavbarProps) => React$1.JSX.Element;
|
|
45
36
|
|
|
46
|
-
declare const Test: () => React__default.JSX.Element;
|
|
47
|
-
|
|
48
37
|
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<"div"> & {
|
|
49
38
|
side?: "left" | "right";
|
|
50
39
|
variant?: "sidebar" | "floating" | "inset";
|
|
@@ -63,4 +52,4 @@ declare function NavMain({ items }: {
|
|
|
63
52
|
items: NavbarData;
|
|
64
53
|
}): React$1.JSX.Element;
|
|
65
54
|
|
|
66
|
-
export { AppSidebar, DesktopNavbar, MobileNavbar, NavMain, Navbar, type NavbarData$1 as NavbarData, type
|
|
55
|
+
export { AppSidebar, DesktopNavbar, MobileNavbar, NavMain, Navbar, type NavbarData$1 as NavbarData, type NavbarProps, User, type UserData };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import * as React$1 from 'react';
|
|
2
|
-
import React__default from 'react';
|
|
3
2
|
|
|
4
|
-
interface
|
|
5
|
-
|
|
3
|
+
interface NavbarItem {
|
|
4
|
+
label: string;
|
|
5
|
+
href: string;
|
|
6
|
+
icon?: React.ReactNode;
|
|
6
7
|
}
|
|
7
8
|
interface NavbarData$1 {
|
|
8
|
-
|
|
9
|
+
items: NavbarItem[];
|
|
9
10
|
}
|
|
10
11
|
interface UserData {
|
|
11
12
|
name: string;
|
|
@@ -14,27 +15,17 @@ interface UserData {
|
|
|
14
15
|
phone: string;
|
|
15
16
|
location: string;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
18
|
interface NavbarProps {
|
|
19
|
-
|
|
20
|
-
userData
|
|
21
|
-
onLogout
|
|
19
|
+
navbarData: NavbarData$1;
|
|
20
|
+
userData: UserData;
|
|
21
|
+
onLogout: () => void;
|
|
22
22
|
}
|
|
23
|
-
declare function Navbar({ data, userData, onLogout }: NavbarProps): React$1.JSX.Element;
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
data?: NavbarData$1;
|
|
27
|
-
userData?: UserData;
|
|
28
|
-
onLogout?: () => void;
|
|
29
|
-
}
|
|
30
|
-
declare function DesktopNavbar({ data, userData, onLogout, }: MobileNavbarProps$2): React$1.JSX.Element;
|
|
24
|
+
declare function Navbar({ navbarData, userData, onLogout, }: NavbarProps): React$1.JSX.Element;
|
|
31
25
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
onLogout?: () => void;
|
|
36
|
-
}
|
|
37
|
-
declare function MobileNavbar({ data, userData, onLogout, }: MobileNavbarProps$1): React$1.JSX.Element;
|
|
26
|
+
declare function DesktopNavbar({ navbarData, userData, onLogout, }: NavbarProps): React$1.JSX.Element;
|
|
27
|
+
|
|
28
|
+
declare function MobileNavbar({ navbarData, userData, onLogout, }: NavbarProps): React$1.JSX.Element;
|
|
38
29
|
|
|
39
30
|
interface MobileNavbarProps {
|
|
40
31
|
data?: NavbarData$1;
|
|
@@ -43,8 +34,6 @@ interface MobileNavbarProps {
|
|
|
43
34
|
}
|
|
44
35
|
declare const User: ({ userData, onLogout }: MobileNavbarProps) => React$1.JSX.Element;
|
|
45
36
|
|
|
46
|
-
declare const Test: () => React__default.JSX.Element;
|
|
47
|
-
|
|
48
37
|
declare function Sidebar({ side, variant, collapsible, className, children, ...props }: React$1.ComponentProps<"div"> & {
|
|
49
38
|
side?: "left" | "right";
|
|
50
39
|
variant?: "sidebar" | "floating" | "inset";
|
|
@@ -63,4 +52,4 @@ declare function NavMain({ items }: {
|
|
|
63
52
|
items: NavbarData;
|
|
64
53
|
}): React$1.JSX.Element;
|
|
65
54
|
|
|
66
|
-
export { AppSidebar, DesktopNavbar, MobileNavbar, NavMain, Navbar, type NavbarData$1 as NavbarData, type
|
|
55
|
+
export { AppSidebar, DesktopNavbar, MobileNavbar, NavMain, Navbar, type NavbarData$1 as NavbarData, type NavbarProps, User, type UserData };
|