@dimasbaguspm/versaur 0.0.59 → 0.0.60

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.
Files changed (22) hide show
  1. package/dist/js/helpers/index.js +28 -10
  2. package/dist/js/index.js +84 -66
  3. package/dist/js/layouts/index.js +1 -1
  4. package/dist/js/tablet-landscape-breakpoint-DUeRFxIA.js +113 -0
  5. package/dist/js/{top-bar-B2nzldfs.js → top-bar-DMBbEIlR.js} +9 -5
  6. package/dist/types/helpers/match-media/built-in/components/index.d.ts +6 -0
  7. package/dist/types/helpers/match-media/built-in/components/mobile-and-tablet-breakpoint.d.ts +18 -0
  8. package/dist/types/helpers/match-media/built-in/components/mobile-landscape-breakpoint.d.ts +18 -0
  9. package/dist/types/helpers/match-media/built-in/components/mobile-portrait-breakpoint.d.ts +18 -0
  10. package/dist/types/helpers/match-media/built-in/components/tablet-and-desktop-breakpoint.d.ts +18 -0
  11. package/dist/types/helpers/match-media/built-in/components/tablet-landscape-breakpoint.d.ts +18 -0
  12. package/dist/types/helpers/match-media/built-in/components/tablet-portrait-breakpoint.d.ts +18 -0
  13. package/dist/types/helpers/match-media/built-in/hooks/index.d.ts +6 -0
  14. package/dist/types/helpers/match-media/built-in/hooks/use-mobile-and-tablet-breakpoint.d.ts +11 -0
  15. package/dist/types/helpers/match-media/built-in/hooks/use-mobile-landscape-breakpoint.d.ts +11 -0
  16. package/dist/types/helpers/match-media/built-in/hooks/use-mobile-portrait-breakpoint.d.ts +11 -0
  17. package/dist/types/helpers/match-media/built-in/hooks/use-tablet-and-desktop-breakpoint.d.ts +11 -0
  18. package/dist/types/helpers/match-media/built-in/hooks/use-tablet-landscape-breakpoint.d.ts +11 -0
  19. package/dist/types/helpers/match-media/built-in/hooks/use-tablet-portrait-breakpoint.d.ts +11 -0
  20. package/dist/types/helpers/match-media/constants.d.ts +12 -0
  21. package/package.json +1 -1
  22. package/dist/js/desktop-breakpoint-CuSom-sN.js +0 -47
@@ -1,14 +1,32 @@
1
- import { b as s, B as t, a as o, D as B, M as i, f as p, T, e as k, u as r, c as M, d as n } from "../desktop-breakpoint-CuSom-sN.js";
1
+ import { b as s, B as t, c as o, f as B, e as T, a as i, d as r, h as p, g as n, D as A, M as k, s as E, r as b, w as l, v as P, t as M, T as O, y as _, x as I, k as L, u as N, l as R, i as d, o as u, n as D, m as K, j as c, q as S, p as h } from "../tablet-landscape-breakpoint-DUeRFxIA.js";
2
2
  export {
3
3
  s as BREAKPOINT_DESKTOP,
4
4
  t as BREAKPOINT_MOBILE,
5
- o as BREAKPOINT_TABLET,
6
- B as DesktopBreakpoint,
7
- i as MatchMedia,
8
- p as MobileBreakpoint,
9
- T as TabletBreakpoint,
10
- k as useDesktopBreakpoint,
11
- r as useMatchMedia,
12
- M as useMobileBreakpoint,
13
- n as useTabletBreakpoint
5
+ o as BREAKPOINT_MOBILE_AND_TABLET,
6
+ B as BREAKPOINT_MOBILE_LANDSCAPE,
7
+ T as BREAKPOINT_MOBILE_PORTRAIT,
8
+ i as BREAKPOINT_TABLET,
9
+ r as BREAKPOINT_TABLET_AND_DESKTOP,
10
+ p as BREAKPOINT_TABLET_LANDSCAPE,
11
+ n as BREAKPOINT_TABLET_PORTRAIT,
12
+ A as DesktopBreakpoint,
13
+ k as MatchMedia,
14
+ E as MobileAndTabletBreakpoint,
15
+ b as MobileBreakpoint,
16
+ l as MobileLandscapeBreakpoint,
17
+ P as MobilePortraitBreakpoint,
18
+ M as TabletAndDesktopBreakpoint,
19
+ O as TabletBreakpoint,
20
+ _ as TabletLandscapeBreakpoint,
21
+ I as TabletPortraitBreakpoint,
22
+ L as useDesktopBreakpoint,
23
+ N as useMatchMedia,
24
+ R as useMobileAndTabletBreakpoint,
25
+ d as useMobileBreakpoint,
26
+ u as useMobileLandscapeBreakpoint,
27
+ D as useMobilePortraitBreakpoint,
28
+ K as useTabletAndDesktopBreakpoint,
29
+ c as useTabletBreakpoint,
30
+ S as useTabletLandscapeBreakpoint,
31
+ h as useTabletPortraitBreakpoint
14
32
  };
package/dist/js/index.js CHANGED
@@ -1,91 +1,109 @@
1
- import { L as e, P as t, S as o } from "./skeleton-BRwIW26B.js";
2
- import { A as n, a as p, B as i, b as u, F as B, f as c, c as l, P as I, d, e as T, S, T as m } from "./top-bar-B2nzldfs.js";
3
- import { C as g, b as A, a as P, D as k, E as M, P as h, c as x, R as f, S as C, d as L, f as D, e as E, g as R, i as F, T as N, h as O, j as H } from "./time-picker-input-Disd231b.js";
4
- import { B as y, D as G, M as _, T as j } from "./tooltip-Dpx3TpR6.js";
5
- import { A as v, a as w, b as z, c as J, d as Q, e as U, f as V, B as W, s as X, g as Y, h as Z, i as $, l as aa, j as sa, k as ea, C as ta, F as oa, H as ra, m as na, I as pa, p as ia, r as ua, q as Ba, M as ca, N as la, T as Ia, n as da, o as Ta } from "./image-rectangle-CCvXv24a.js";
6
- import { S as ma } from "./snackbar-CTq4MLir.js";
7
- import { B as ga, T as Aa } from "./tabs-BQs53hHL.js";
8
- import { S as ka, u as Ma } from "./use-snackbars-B6lnVjrX.js";
9
- import { b as xa, B as fa, a as Ca, D as La, M as Da, f as Ea, T as Ra, e as Fa, u as Na, c as Oa, d as Ha } from "./desktop-breakpoint-CuSom-sN.js";
1
+ import { L as s, P as t, S as o } from "./skeleton-BRwIW26B.js";
2
+ import { A as n, a as i, B as p, b as B, F as u, f as T, c as l, P as I, d as A, e as c, S as b, T as d } from "./top-bar-DMBbEIlR.js";
3
+ import { C as k, b as M, a as E, D as S, E as L, P as m, c as g, R as O, S as R, d as _, f as h, e as x, g as D, i as N, T as f, h as C, j as K } from "./time-picker-input-Disd231b.js";
4
+ import { B as y, D as H, M as j, T as q } from "./tooltip-Dpx3TpR6.js";
5
+ import { A as w, a as G, b as z, c as J, d as Q, e as U, f as V, B as W, s as X, g as Y, h as Z, i as $, l as aa, j as ea, k as sa, C as ta, F as oa, H as ra, m as na, I as ia, p as pa, r as Ba, q as ua, M as Ta, N as la, T as Ia, n as Aa, o as ca } from "./image-rectangle-CCvXv24a.js";
6
+ import { S as da } from "./snackbar-CTq4MLir.js";
7
+ import { B as ka, T as Ma } from "./tabs-BQs53hHL.js";
8
+ import { S as Sa, u as La } from "./use-snackbars-B6lnVjrX.js";
9
+ import { b as ga, B as Oa, c as Ra, f as _a, e as ha, a as xa, d as Da, h as Na, g as fa, D as Ca, M as Ka, s as Fa, r as ya, w as Ha, v as ja, t as qa, T as va, y as wa, x as Ga, k as za, u as Ja, l as Qa, i as Ua, o as Va, n as Wa, m as Xa, j as Ya, q as Za, p as $a } from "./tablet-landscape-breakpoint-DUeRFxIA.js";
10
10
  export {
11
- v as Accordion,
12
- w as ActionCard,
11
+ w as Accordion,
12
+ G as ActionCard,
13
13
  z as Alert,
14
14
  J as Anchor,
15
15
  n as AppLayout,
16
16
  Q as Attribute,
17
17
  U as AttributeList,
18
18
  V as Avatar,
19
- xa as BREAKPOINT_DESKTOP,
20
- fa as BREAKPOINT_MOBILE,
21
- Ca as BREAKPOINT_TABLET,
19
+ ga as BREAKPOINT_DESKTOP,
20
+ Oa as BREAKPOINT_MOBILE,
21
+ Ra as BREAKPOINT_MOBILE_AND_TABLET,
22
+ _a as BREAKPOINT_MOBILE_LANDSCAPE,
23
+ ha as BREAKPOINT_MOBILE_PORTRAIT,
24
+ xa as BREAKPOINT_TABLET,
25
+ Da as BREAKPOINT_TABLET_AND_DESKTOP,
26
+ Na as BREAKPOINT_TABLET_LANDSCAPE,
27
+ fa as BREAKPOINT_TABLET_PORTRAIT,
22
28
  W as Badge,
23
- p as BadgeGroup,
29
+ i as BadgeGroup,
24
30
  X as BaseImage,
25
- i as BottomBar,
31
+ p as BottomBar,
26
32
  y as BottomSheet,
27
33
  Y as Brand,
28
- ga as Breadcrumbs,
34
+ ka as Breadcrumbs,
29
35
  Z as Button,
30
36
  $ as ButtonAnchor,
31
- u as ButtonGroup,
37
+ B as ButtonGroup,
32
38
  aa as ButtonIcon,
33
- sa as ButtonMenu,
34
- ea as ButtonMenuIcon,
39
+ ea as ButtonMenu,
40
+ sa as ButtonMenuIcon,
35
41
  ta as Card,
36
- g as CheckboxInput,
37
- A as ChipMultipleInput,
38
- P as ChipSingleInput,
39
- k as DateSinglePickerInput,
40
- La as DesktopBreakpoint,
41
- G as Drawer,
42
- M as EmailInput,
42
+ k as CheckboxInput,
43
+ M as ChipMultipleInput,
44
+ E as ChipSingleInput,
45
+ S as DateSinglePickerInput,
46
+ Ca as DesktopBreakpoint,
47
+ H as Drawer,
48
+ L as EmailInput,
43
49
  oa as FilterChip,
44
- B as FilterChipGroup,
45
- c as FormLayout,
50
+ u as FilterChipGroup,
51
+ T as FormLayout,
46
52
  ra as Heading,
47
53
  na as Hr,
48
- pa as Icon,
49
- ia as ImageCircle,
50
- ua as ImageRectangle,
51
- Ba as ImageSquare,
52
- e as LoadingIndicator,
53
- Da as MatchMedia,
54
- ca as Menu,
55
- Ea as MobileBreakpoint,
56
- _ as Modal,
54
+ ia as Icon,
55
+ pa as ImageCircle,
56
+ Ba as ImageRectangle,
57
+ ua as ImageSquare,
58
+ s as LoadingIndicator,
59
+ Ka as MatchMedia,
60
+ Ta as Menu,
61
+ Fa as MobileAndTabletBreakpoint,
62
+ ya as MobileBreakpoint,
63
+ Ha as MobileLandscapeBreakpoint,
64
+ ja as MobilePortraitBreakpoint,
65
+ j as Modal,
57
66
  la as NoResults,
58
67
  l as PageContent,
59
68
  I as PageHeader,
60
- d as PageLayout,
61
- T as PageLoader,
62
- h as PinField,
63
- x as PriceInput,
69
+ A as PageLayout,
70
+ c as PageLoader,
71
+ m as PinField,
72
+ g as PriceInput,
64
73
  t as ProgressIndicator,
65
- f as RadioInput,
66
- C as SearchInput,
67
- L as SelectInput,
68
- D as SelectableMultipleInput,
69
- E as SelectableSingleInput,
70
- S as SideBar,
74
+ O as RadioInput,
75
+ R as SearchInput,
76
+ _ as SelectInput,
77
+ h as SelectableMultipleInput,
78
+ x as SelectableSingleInput,
79
+ b as SideBar,
71
80
  o as Skeleton,
72
- ma as Snackbar,
73
- ka as SnackbarsProvider,
74
- R as SwitchInput,
81
+ da as Snackbar,
82
+ Sa as SnackbarsProvider,
83
+ D as SwitchInput,
75
84
  Ia as Table,
76
- Ra as TabletBreakpoint,
77
- Aa as Tabs,
78
- da as Text,
79
- F as TextAreaInput,
80
- N as TextInput,
81
- O as TextInputAsButton,
82
- Ta as Tile,
83
- H as TimePickerInput,
84
- j as Tooltip,
85
- m as TopBar,
86
- Fa as useDesktopBreakpoint,
87
- Na as useMatchMedia,
88
- Oa as useMobileBreakpoint,
89
- Ma as useSnackbars,
90
- Ha as useTabletBreakpoint
85
+ qa as TabletAndDesktopBreakpoint,
86
+ va as TabletBreakpoint,
87
+ wa as TabletLandscapeBreakpoint,
88
+ Ga as TabletPortraitBreakpoint,
89
+ Ma as Tabs,
90
+ Aa as Text,
91
+ N as TextAreaInput,
92
+ f as TextInput,
93
+ C as TextInputAsButton,
94
+ ca as Tile,
95
+ K as TimePickerInput,
96
+ q as Tooltip,
97
+ d as TopBar,
98
+ za as useDesktopBreakpoint,
99
+ Ja as useMatchMedia,
100
+ Qa as useMobileAndTabletBreakpoint,
101
+ Ua as useMobileBreakpoint,
102
+ Va as useMobileLandscapeBreakpoint,
103
+ Wa as useMobilePortraitBreakpoint,
104
+ La as useSnackbars,
105
+ Xa as useTabletAndDesktopBreakpoint,
106
+ Ya as useTabletBreakpoint,
107
+ Za as useTabletLandscapeBreakpoint,
108
+ $a as useTabletPortraitBreakpoint
91
109
  };
@@ -1,4 +1,4 @@
1
- import { A as e, a as r, B as s, b as t, F as p, f as u, c as B, P as d, d as g, e as P, S as L, T as i } from "../top-bar-B2nzldfs.js";
1
+ import { A as e, a as r, B as s, b as t, F as p, f as u, c as B, P as d, d as g, e as P, S as L, T as i } from "../top-bar-DMBbEIlR.js";
2
2
  export {
3
3
  e as AppLayout,
4
4
  r as BadgeGroup,
@@ -0,0 +1,113 @@
1
+ import { j as n } from "./jsx-runtime-C5mzlN2N.js";
2
+ import { useState as A, useEffect as E } from "react";
3
+ const u = "(max-width: 767px)", c = "(min-width: 768px) and (max-width: 1023px)", p = "(min-width: 1024px)", d = "(max-width: 1023px)", B = "(min-width: 768px)", T = "(max-width: 767px) and (orientation: portrait)", x = "(max-width: 767px) and (orientation: landscape)", f = "(min-width: 768px) and (max-width: 1023px) and (orientation: portrait)", m = "(min-width: 768px) and (max-width: 1023px) and (orientation: landscape)";
4
+ function e(t) {
5
+ const [r, i] = A(() => typeof window > "u" ? !1 : window.matchMedia(t).matches);
6
+ return E(() => {
7
+ if (typeof window > "u") return;
8
+ const o = window.matchMedia(t), s = (h) => i(h.matches);
9
+ return i(o.matches), o.addEventListener("change", s), () => {
10
+ o.removeEventListener("change", s);
11
+ };
12
+ }, [t]), r;
13
+ }
14
+ function a({ query: t, children: r }) {
15
+ return e(t) ? /* @__PURE__ */ n.jsx(n.Fragment, { children: r }) : null;
16
+ }
17
+ function w() {
18
+ return e(u);
19
+ }
20
+ function M() {
21
+ return e(c);
22
+ }
23
+ function b() {
24
+ return e(p);
25
+ }
26
+ function P() {
27
+ return e(d);
28
+ }
29
+ function L() {
30
+ return e(B);
31
+ }
32
+ function O() {
33
+ return e(T);
34
+ }
35
+ function _() {
36
+ return e(x);
37
+ }
38
+ function I() {
39
+ return e(f);
40
+ }
41
+ function R() {
42
+ return e(m);
43
+ }
44
+ function j({ children: t }) {
45
+ return /* @__PURE__ */ n.jsx(a, { query: u, children: t });
46
+ }
47
+ function N({ children: t }) {
48
+ return /* @__PURE__ */ n.jsx(a, { query: c, children: t });
49
+ }
50
+ function y({ children: t }) {
51
+ return /* @__PURE__ */ n.jsx(a, { query: p, children: t });
52
+ }
53
+ function D({
54
+ children: t
55
+ }) {
56
+ return /* @__PURE__ */ n.jsx(a, { query: d, children: t });
57
+ }
58
+ function K({
59
+ children: t
60
+ }) {
61
+ return /* @__PURE__ */ n.jsx(a, { query: B, children: t });
62
+ }
63
+ function q({
64
+ children: t
65
+ }) {
66
+ return /* @__PURE__ */ n.jsx(a, { query: T, children: t });
67
+ }
68
+ function S({
69
+ children: t
70
+ }) {
71
+ return /* @__PURE__ */ n.jsx(a, { query: x, children: t });
72
+ }
73
+ function g({
74
+ children: t
75
+ }) {
76
+ return /* @__PURE__ */ n.jsx(a, { query: f, children: t });
77
+ }
78
+ function v({
79
+ children: t
80
+ }) {
81
+ return /* @__PURE__ */ n.jsx(a, { query: m, children: t });
82
+ }
83
+ export {
84
+ u as B,
85
+ y as D,
86
+ a as M,
87
+ N as T,
88
+ c as a,
89
+ p as b,
90
+ d as c,
91
+ B as d,
92
+ T as e,
93
+ x as f,
94
+ f as g,
95
+ m as h,
96
+ w as i,
97
+ M as j,
98
+ b as k,
99
+ P as l,
100
+ L as m,
101
+ O as n,
102
+ _ as o,
103
+ I as p,
104
+ R as q,
105
+ j as r,
106
+ D as s,
107
+ K as t,
108
+ e as u,
109
+ q as v,
110
+ S as w,
111
+ g as x,
112
+ v as y
113
+ };
@@ -17,14 +17,16 @@ const T = n(
17
17
  variants: {},
18
18
  defaultVariants: {}
19
19
  }
20
- ), P = n("[grid-area:top] z-30 sticky top-0"), A = n(
20
+ ), P = n(
21
+ "[grid-area:top] z-30 sticky top-0 border-b border-border"
22
+ ), A = n(
21
23
  "[grid-area:left] z-20 border-r border-border bg-white"
22
24
  ), _ = n(
23
25
  "[grid-area:right] z-20 border-l border-border bg-white"
24
26
  ), I = n(
25
27
  "[grid-area:bottom] z-30 border-t border-border bg-white"
26
28
  ), k = n(
27
- "[grid-area:main] overflow-y-auto min-h-0"
29
+ "[grid-area:main] overflow-y-auto min-h-0 [scrollbar-gutter:stable]"
28
30
  ), G = l(function({ children: t, className: e, ...a }, o) {
29
31
  return /* @__PURE__ */ s.jsx(
30
32
  "div",
@@ -84,7 +86,7 @@ const T = n(
84
86
  BottomRegion: O,
85
87
  MainRegion: E
86
88
  }), D = n(
87
- "sticky bottom-0 w-full flex justify-around items-center bg-white border-t border-border shadow-xs z-40 safe-bottom gap-4 select-none px-8",
89
+ "sticky bottom-0 w-full flex justify-around items-center bg-white z-40 safe-bottom gap-4 select-none px-8",
88
90
  {
89
91
  variants: {
90
92
  variant: {
@@ -582,6 +584,8 @@ const T = n(
582
584
  ), ve = n(
583
585
  [
584
586
  "grid",
587
+ "h-full",
588
+ "min-h-0",
585
589
  "grid-rows-[auto_1fr]",
586
590
  '[grid-template-areas:"header"_"content"]'
587
591
  ].join(" "),
@@ -607,7 +611,7 @@ const T = n(
607
611
  backgroundColor: "white"
608
612
  }
609
613
  }), be = n(
610
- "[grid-area:content] overflow-y-auto min-h-0",
614
+ "[grid-area:content] min-h-0",
611
615
  {
612
616
  variants: {
613
617
  backgroundColor: {
@@ -1002,7 +1006,7 @@ const T = n(
1002
1006
  Item: Ae,
1003
1007
  Group: _e
1004
1008
  }), ke = n(
1005
- "w-full flex items-center px-6 py-4 border-b border-border shadow-xs bg-white",
1009
+ "w-full flex items-center px-6 py-4 bg-white",
1006
1010
  {
1007
1011
  variants: {},
1008
1012
  defaultVariants: {}
@@ -1,3 +1,9 @@
1
1
  export * from './mobile-breakpoint';
2
2
  export * from './tablet-breakpoint';
3
3
  export * from './desktop-breakpoint';
4
+ export * from './mobile-and-tablet-breakpoint';
5
+ export * from './tablet-and-desktop-breakpoint';
6
+ export * from './mobile-portrait-breakpoint';
7
+ export * from './mobile-landscape-breakpoint';
8
+ export * from './tablet-portrait-breakpoint';
9
+ export * from './tablet-landscape-breakpoint';
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Props for breakpoint components
3
+ */
4
+ interface BreakpointComponentProps {
5
+ children: React.ReactNode;
6
+ }
7
+ /**
8
+ * Component that only renders children on mobile and tablet viewports
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <MobileAndTabletBreakpoint>
13
+ * <MobileAndTabletContent />
14
+ * </MobileAndTabletBreakpoint>
15
+ * ```
16
+ */
17
+ export declare function MobileAndTabletBreakpoint({ children, }: BreakpointComponentProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Props for breakpoint components
3
+ */
4
+ interface BreakpointComponentProps {
5
+ children: React.ReactNode;
6
+ }
7
+ /**
8
+ * Component that only renders children on mobile landscape viewports
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <MobileLandscapeBreakpoint>
13
+ * <MobileLandscapeContent />
14
+ * </MobileLandscapeBreakpoint>
15
+ * ```
16
+ */
17
+ export declare function MobileLandscapeBreakpoint({ children, }: BreakpointComponentProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Props for breakpoint components
3
+ */
4
+ interface BreakpointComponentProps {
5
+ children: React.ReactNode;
6
+ }
7
+ /**
8
+ * Component that only renders children on mobile portrait viewports
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <MobilePortraitBreakpoint>
13
+ * <MobilePortraitContent />
14
+ * </MobilePortraitBreakpoint>
15
+ * ```
16
+ */
17
+ export declare function MobilePortraitBreakpoint({ children, }: BreakpointComponentProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Props for breakpoint components
3
+ */
4
+ interface BreakpointComponentProps {
5
+ children: React.ReactNode;
6
+ }
7
+ /**
8
+ * Component that only renders children on tablet and desktop viewports
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <TabletAndDesktopBreakpoint>
13
+ * <TabletAndDesktopContent />
14
+ * </TabletAndDesktopBreakpoint>
15
+ * ```
16
+ */
17
+ export declare function TabletAndDesktopBreakpoint({ children, }: BreakpointComponentProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Props for breakpoint components
3
+ */
4
+ interface BreakpointComponentProps {
5
+ children: React.ReactNode;
6
+ }
7
+ /**
8
+ * Component that only renders children on tablet landscape viewports
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <TabletLandscapeBreakpoint>
13
+ * <TabletLandscapeContent />
14
+ * </TabletLandscapeBreakpoint>
15
+ * ```
16
+ */
17
+ export declare function TabletLandscapeBreakpoint({ children, }: BreakpointComponentProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Props for breakpoint components
3
+ */
4
+ interface BreakpointComponentProps {
5
+ children: React.ReactNode;
6
+ }
7
+ /**
8
+ * Component that only renders children on tablet portrait viewports
9
+ *
10
+ * @example
11
+ * ```tsx
12
+ * <TabletPortraitBreakpoint>
13
+ * <TabletPortraitContent />
14
+ * </TabletPortraitBreakpoint>
15
+ * ```
16
+ */
17
+ export declare function TabletPortraitBreakpoint({ children, }: BreakpointComponentProps): import("react/jsx-runtime").JSX.Element;
18
+ export {};
@@ -1,3 +1,9 @@
1
1
  export * from './use-mobile-breakpoint';
2
2
  export * from './use-tablet-breakpoint';
3
3
  export * from './use-desktop-breakpoint';
4
+ export * from './use-mobile-and-tablet-breakpoint';
5
+ export * from './use-tablet-and-desktop-breakpoint';
6
+ export * from './use-mobile-portrait-breakpoint';
7
+ export * from './use-mobile-landscape-breakpoint';
8
+ export * from './use-tablet-portrait-breakpoint';
9
+ export * from './use-tablet-landscape-breakpoint';
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Hook to detect if the current viewport is mobile or tablet
3
+ *
4
+ * @returns boolean indicating if viewport is mobile or tablet (max-width: 1023px)
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const isMobileOrTablet = useMobileAndTabletBreakpoint()
9
+ * ```
10
+ */
11
+ export declare function useMobileAndTabletBreakpoint(): boolean;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Hook to detect if the current viewport is mobile in landscape orientation
3
+ *
4
+ * @returns boolean indicating if viewport is mobile landscape
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const isMobileLandscape = useMobileLandscapeBreakpoint()
9
+ * ```
10
+ */
11
+ export declare function useMobileLandscapeBreakpoint(): boolean;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Hook to detect if the current viewport is mobile in portrait orientation
3
+ *
4
+ * @returns boolean indicating if viewport is mobile portrait
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const isMobilePortrait = useMobilePortraitBreakpoint()
9
+ * ```
10
+ */
11
+ export declare function useMobilePortraitBreakpoint(): boolean;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Hook to detect if the current viewport is tablet or desktop
3
+ *
4
+ * @returns boolean indicating if viewport is tablet or desktop (min-width: 768px)
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const isTabletOrDesktop = useTabletAndDesktopBreakpoint()
9
+ * ```
10
+ */
11
+ export declare function useTabletAndDesktopBreakpoint(): boolean;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Hook to detect if the current viewport is tablet in landscape orientation
3
+ *
4
+ * @returns boolean indicating if viewport is tablet landscape
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const isTabletLandscape = useTabletLandscapeBreakpoint()
9
+ * ```
10
+ */
11
+ export declare function useTabletLandscapeBreakpoint(): boolean;
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Hook to detect if the current viewport is tablet in portrait orientation
3
+ *
4
+ * @returns boolean indicating if viewport is tablet portrait
5
+ *
6
+ * @example
7
+ * ```tsx
8
+ * const isTabletPortrait = useTabletPortraitBreakpoint()
9
+ * ```
10
+ */
11
+ export declare function useTabletPortraitBreakpoint(): boolean;
@@ -5,3 +5,15 @@
5
5
  export declare const BREAKPOINT_MOBILE = "(max-width: 767px)";
6
6
  export declare const BREAKPOINT_TABLET = "(min-width: 768px) and (max-width: 1023px)";
7
7
  export declare const BREAKPOINT_DESKTOP = "(min-width: 1024px)";
8
+ /**
9
+ * Combined breakpoint definitions
10
+ */
11
+ export declare const BREAKPOINT_MOBILE_AND_TABLET = "(max-width: 1023px)";
12
+ export declare const BREAKPOINT_TABLET_AND_DESKTOP = "(min-width: 768px)";
13
+ /**
14
+ * Orientation-specific breakpoint definitions
15
+ */
16
+ export declare const BREAKPOINT_MOBILE_PORTRAIT = "(max-width: 767px) and (orientation: portrait)";
17
+ export declare const BREAKPOINT_MOBILE_LANDSCAPE = "(max-width: 767px) and (orientation: landscape)";
18
+ export declare const BREAKPOINT_TABLET_PORTRAIT = "(min-width: 768px) and (max-width: 1023px) and (orientation: portrait)";
19
+ export declare const BREAKPOINT_TABLET_LANDSCAPE = "(min-width: 768px) and (max-width: 1023px) and (orientation: landscape)";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dimasbaguspm/versaur",
3
- "version": "0.0.59",
3
+ "version": "0.0.60",
4
4
  "description": "React UI library with Tailwind CSS",
5
5
  "author": "Dimas Bagus Prayogo Mukti<dimas.bagus.pm@gmail.com>",
6
6
  "license": "MIT",
@@ -1,47 +0,0 @@
1
- import { j as t } from "./jsx-runtime-C5mzlN2N.js";
2
- import { useState as m, useEffect as h } from "react";
3
- const u = "(max-width: 767px)", c = "(min-width: 768px) and (max-width: 1023px)", d = "(min-width: 1024px)";
4
- function n(e) {
5
- const [a, s] = m(() => typeof window > "u" ? !1 : window.matchMedia(e).matches);
6
- return h(() => {
7
- if (typeof window > "u") return;
8
- const r = window.matchMedia(e), o = (f) => s(f.matches);
9
- return s(r.matches), r.addEventListener("change", o), () => {
10
- r.removeEventListener("change", o);
11
- };
12
- }, [e]), a;
13
- }
14
- function i({ query: e, children: a }) {
15
- return n(e) ? /* @__PURE__ */ t.jsx(t.Fragment, { children: a }) : null;
16
- }
17
- function w() {
18
- return n(u);
19
- }
20
- function B() {
21
- return n(c);
22
- }
23
- function M() {
24
- return n(d);
25
- }
26
- function E({ children: e }) {
27
- return /* @__PURE__ */ t.jsx(i, { query: u, children: e });
28
- }
29
- function T({ children: e }) {
30
- return /* @__PURE__ */ t.jsx(i, { query: c, children: e });
31
- }
32
- function k({ children: e }) {
33
- return /* @__PURE__ */ t.jsx(i, { query: d, children: e });
34
- }
35
- export {
36
- u as B,
37
- k as D,
38
- i as M,
39
- T,
40
- c as a,
41
- d as b,
42
- w as c,
43
- B as d,
44
- M as e,
45
- E as f,
46
- n as u
47
- };