@dimasbaguspm/versaur 0.0.10 → 0.0.11
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/{calendar-DwRERSxq.js → js/calendar-De5dCVnE.js} +149 -137
- package/dist/{enforce-subpath-import.js → js/enforce-subpath-import.js} +29 -13
- package/dist/{feedbacks → js/feedbacks}/index.js +1 -1
- package/dist/{form-layout-COQbtyW5.js → js/form-layout-BRqZZe8s.js} +55 -55
- package/dist/{forms → js/forms}/index.js +1 -1
- package/dist/{index.js → js/index.js} +7 -7
- package/dist/{layouts → js/layouts}/index.js +1 -1
- package/dist/{menu--hEHXVZf.js → js/menu-Du409VIG.js} +15 -15
- package/dist/js/navigation/index.js +5 -0
- package/dist/{overlays → js/overlays}/index.js +1 -1
- package/dist/{primitive → js/primitive}/index.js +2 -2
- package/dist/{skeleton-DwqjRsF-.js → js/skeleton-BNZyaRjo.js} +19 -19
- package/dist/{styles.css → js/styles.css} +62 -37
- package/dist/{switch-input-DRNFMsqC.js → js/switch-input-B-pwBWbi.js} +266 -262
- package/dist/{tabs-KyFmo5cA.js → js/tabs-BbOkYchB.js} +53 -53
- package/dist/{tile-BinjKW_i.js → js/tile-6SeBYc08.js} +162 -162
- package/dist/types/primitive/anchor/anchor.d.ts +7 -0
- package/dist/types/primitive/anchor/index.d.ts +2 -0
- package/dist/types/primitive/anchor/types.d.ts +19 -0
- package/dist/{primitive → types/primitive}/icon/types.d.ts +1 -1
- package/dist/{primitive → types/primitive}/text/types.d.ts +1 -1
- package/package.json +17 -17
- package/dist/navigation/index.js +0 -5
- /package/dist/{drawer-Cn7sreJG.js → js/drawer-Cn7sreJG.js} +0 -0
- /package/dist/{index-DOdDlCoL.js → js/index-DOdDlCoL.js} +0 -0
- /package/dist/{feedbacks → types/feedbacks}/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/loading-indicator.atoms.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/loading-indicator.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/loading-indicator/types.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/progress-indicator/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/progress-indicator/progress-indicator.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/progress-indicator/types.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/skeleton/index.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/skeleton/skeleton.d.ts +0 -0
- /package/dist/{feedbacks → types/feedbacks}/skeleton/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/calculator-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/calculator-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/calculator-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/checkbox-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/checkbox-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/checkbox-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/chip-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/chip-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/chip-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.docked.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/date-single-picker-input.modal.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/date-single-picker-input/use-date-single-picker.d.ts +0 -0
- /package/dist/{forms → types/forms}/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/radio-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/radio-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/radio-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/segment-multiple-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/segment-multiple-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-multiple-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/segment-single-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/segment-single-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/segment-single-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/select-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/select-input/select-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/select-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/switch-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/switch-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/switch-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/text-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/text-input/text-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/text-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/textarea-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/textarea-input/textarea-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/textarea-input/types.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/index.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/time-picker-input.atoms.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/time-picker-input.d.ts +0 -0
- /package/dist/{forms → types/forms}/time-picker-input/types.d.ts +0 -0
- /package/dist/{index.d.ts → types/index.d.ts} +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/app-bar.atoms.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/app-bar.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/app-bar/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/bottom-bar.atoms.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/bottom-bar.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/bottom-bar/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/form-layout/form-layout.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/form-layout/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/form-layout/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/page-layout/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/page-layout/page-layout.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/page-layout/types.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/index.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/top-bar.atoms.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/top-bar.d.ts +0 -0
- /package/dist/{layouts → types/layouts}/top-bar/types.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/breadcrumbs.atoms.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/breadcrumbs.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/index.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/breadcrumbs/types.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/index.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/index.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/tabs.atoms.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/tabs.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/types.d.ts +0 -0
- /package/dist/{navigation → types/navigation}/tabs/use-tab-indicator.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/drawer.atoms.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/drawer.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/drawer/types.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/menu.atoms.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/menu.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/types.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/menu/use-menu.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/index.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/modal.atoms.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/modal.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/types.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/use-escape-close.d.ts +0 -0
- /package/dist/{overlays → types/overlays}/modal/use-focus-trap.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/alert.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/alert.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/alert/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/avatar.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/avatar.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/avatar/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/badge/badge.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/badge/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/badge/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/brand.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/brand.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/brand/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button/button.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/button-float.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-float/use-floating-position.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-icon/button-icon.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-icon/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/button-icon/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/calculator.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/calculator.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calculator/use-calculator.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calendar/calendar.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calendar/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/calendar/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/icon/icon.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/icon/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/snackbar.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/snackbar.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/snackbar/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/table.atoms.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/table.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/table/types.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/text/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/text/text.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/tile/index.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/tile/tile.d.ts +0 -0
- /package/dist/{primitive → types/primitive}/tile/types.d.ts +0 -0
|
@@ -7,6 +7,7 @@ const symbolToSubpath = {
|
|
|
7
7
|
Button: 'primitive',
|
|
8
8
|
ButtonFloat: 'primitive',
|
|
9
9
|
ButtonIcon: 'primitive',
|
|
10
|
+
Anchor: 'primitive',
|
|
10
11
|
Avatar: 'primitive',
|
|
11
12
|
Badge: 'primitive',
|
|
12
13
|
Brand: 'primitive',
|
|
@@ -65,28 +66,43 @@ const rules = {
|
|
|
65
66
|
return {
|
|
66
67
|
ImportDeclaration(node) {
|
|
67
68
|
if (node.source.value === '@dimasbaguspm/versaur') {
|
|
68
|
-
const importSpecifiers = node.specifiers
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const
|
|
69
|
+
const importSpecifiers = node.specifiers.filter(
|
|
70
|
+
s => s.type === 'ImportSpecifier'
|
|
71
|
+
)
|
|
72
|
+
// Group symbols by subpath
|
|
73
|
+
const subpathGroups = {}
|
|
74
|
+
importSpecifiers.forEach(s => {
|
|
75
|
+
const name = s.imported.name
|
|
76
|
+
const subpath = symbolToSubpath[name]
|
|
77
|
+
if (subpath) {
|
|
78
|
+
if (!subpathGroups[subpath]) subpathGroups[subpath] = []
|
|
79
|
+
subpathGroups[subpath].push(name)
|
|
80
|
+
}
|
|
81
|
+
})
|
|
82
|
+
// If no known symbol, fallback to generic message
|
|
83
|
+
const allKnown = Object.keys(subpathGroups).length > 0
|
|
73
84
|
let message =
|
|
74
85
|
'Use sub-path import for better tree-shaking (e.g., @dimasbaguspm/versaur/primitive)'
|
|
75
|
-
if (
|
|
76
|
-
message =
|
|
86
|
+
if (allKnown) {
|
|
87
|
+
message =
|
|
88
|
+
'Split imports by sub-path for optimal tree-shaking (e.g., import {A} from .../primitive, {B} from .../overlays)'
|
|
77
89
|
}
|
|
78
90
|
context.report({
|
|
79
91
|
node,
|
|
80
92
|
message,
|
|
81
|
-
suggest:
|
|
93
|
+
suggest: allKnown
|
|
82
94
|
? [
|
|
83
95
|
{
|
|
84
|
-
desc:
|
|
96
|
+
desc: 'Split imports by sub-path for all symbols',
|
|
85
97
|
fix(fixer) {
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
98
|
+
// Build new import statements
|
|
99
|
+
const newImports = Object.entries(subpathGroups)
|
|
100
|
+
.map(
|
|
101
|
+
([subpath, names]) =>
|
|
102
|
+
`import { ${names.join(', ')} } from '@dimasbaguspm/versaur/${subpath}';`
|
|
103
|
+
)
|
|
104
|
+
.join('\n')
|
|
105
|
+
return fixer.replaceText(node, newImports)
|
|
90
106
|
},
|
|
91
107
|
},
|
|
92
108
|
]
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as i, j as o, a as l } from "./index-DOdDlCoL.js";
|
|
2
|
-
import * as
|
|
2
|
+
import * as p from "react";
|
|
3
3
|
import { forwardRef as n } from "react";
|
|
4
4
|
const u = i(
|
|
5
5
|
"w-full flex flex-wrap items-center px-4 py-3 gap-2 bg-white [&>[data-versaur-appbar-bottom]]:basis-full [&>[data-versaur-appbar-bottom]]:w-full",
|
|
@@ -32,61 +32,61 @@ const u = i(
|
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
), d = n(
|
|
35
|
-
({ children: e, className:
|
|
35
|
+
({ children: e, className: t }, a) => /* @__PURE__ */ o.jsx(
|
|
36
36
|
"div",
|
|
37
37
|
{
|
|
38
|
-
ref:
|
|
38
|
+
ref: a,
|
|
39
39
|
"data-versaur-appbar-bottom": !0,
|
|
40
|
-
className: l("w-full flex items-center min-h-[2.5rem] mt-2",
|
|
40
|
+
className: l("w-full flex items-center min-h-[2.5rem] mt-2", t),
|
|
41
41
|
children: e
|
|
42
42
|
}
|
|
43
43
|
)
|
|
44
44
|
), f = n(
|
|
45
|
-
({ children: e, className:
|
|
45
|
+
({ children: e, className: t }, a) => /* @__PURE__ */ o.jsx("div", { ref: a, className: l("flex items-center", t), children: e })
|
|
46
46
|
), v = n(
|
|
47
|
-
({ children: e, className:
|
|
47
|
+
({ children: e, className: t }, a) => /* @__PURE__ */ o.jsx(
|
|
48
48
|
"div",
|
|
49
49
|
{
|
|
50
|
-
ref:
|
|
51
|
-
className: l("font-semibold text-lg truncate min-w-0",
|
|
50
|
+
ref: a,
|
|
51
|
+
className: l("font-semibold text-lg truncate min-w-0", t),
|
|
52
52
|
children: e
|
|
53
53
|
}
|
|
54
54
|
)
|
|
55
55
|
), g = n(
|
|
56
|
-
({ children: e, className:
|
|
56
|
+
({ children: e, className: t }, a) => /* @__PURE__ */ o.jsx(
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
59
|
-
ref:
|
|
60
|
-
className: l("text-xs text-
|
|
59
|
+
ref: a,
|
|
60
|
+
className: l("text-xs text-ghost-400 truncate min-w-0", t),
|
|
61
61
|
children: e
|
|
62
62
|
}
|
|
63
63
|
)
|
|
64
64
|
), y = n(
|
|
65
|
-
({ children: e, className:
|
|
65
|
+
({ children: e, className: t }, a) => /* @__PURE__ */ o.jsx(
|
|
66
66
|
"div",
|
|
67
67
|
{
|
|
68
|
-
ref:
|
|
69
|
-
className: l("flex items-center justify-end gap-2",
|
|
68
|
+
ref: a,
|
|
69
|
+
className: l("flex items-center justify-end gap-2", t),
|
|
70
70
|
children: e
|
|
71
71
|
}
|
|
72
72
|
)
|
|
73
73
|
), B = n(
|
|
74
|
-
({ children: e, className:
|
|
74
|
+
({ children: e, className: t, placement: a }, s) => /* @__PURE__ */ o.jsx(
|
|
75
75
|
"div",
|
|
76
76
|
{
|
|
77
77
|
ref: s,
|
|
78
|
-
className: l(x({ placement:
|
|
78
|
+
className: l(x({ placement: a }), t),
|
|
79
79
|
children: e
|
|
80
80
|
}
|
|
81
81
|
)
|
|
82
82
|
), b = ({
|
|
83
83
|
children: e,
|
|
84
|
-
className:
|
|
85
|
-
variant:
|
|
84
|
+
className: t,
|
|
85
|
+
variant: a = "primary"
|
|
86
86
|
}) => /* @__PURE__ */ o.jsx(
|
|
87
87
|
"header",
|
|
88
88
|
{
|
|
89
|
-
className: l(u({ variant:
|
|
89
|
+
className: l(u({ variant: a }), t),
|
|
90
90
|
role: "banner",
|
|
91
91
|
children: e
|
|
92
92
|
}
|
|
@@ -124,8 +124,8 @@ const u = i(
|
|
|
124
124
|
{
|
|
125
125
|
variants: {
|
|
126
126
|
active: {
|
|
127
|
-
true: "font-semibold text-
|
|
128
|
-
false: "text-
|
|
127
|
+
true: "font-semibold text-primary",
|
|
128
|
+
false: "text-ghost"
|
|
129
129
|
}
|
|
130
130
|
},
|
|
131
131
|
defaultVariants: {
|
|
@@ -133,23 +133,23 @@ const u = i(
|
|
|
133
133
|
}
|
|
134
134
|
}
|
|
135
135
|
), w = n(
|
|
136
|
-
({ icon: e, label:
|
|
136
|
+
({ icon: e, label: t, active: a = !1, className: s, ...r }, c) => /* @__PURE__ */ o.jsxs(
|
|
137
137
|
"div",
|
|
138
138
|
{
|
|
139
139
|
ref: c,
|
|
140
|
-
"aria-current":
|
|
141
|
-
className: N({ active:
|
|
140
|
+
"aria-current": a ? "page" : void 0,
|
|
141
|
+
className: N({ active: a, className: s }),
|
|
142
142
|
...r,
|
|
143
143
|
children: [
|
|
144
144
|
e,
|
|
145
|
-
|
|
145
|
+
t && /* @__PURE__ */ o.jsx("span", { className: "text-xs mt-0.5", children: t })
|
|
146
146
|
]
|
|
147
147
|
}
|
|
148
148
|
)
|
|
149
149
|
), h = ({
|
|
150
150
|
children: e,
|
|
151
|
-
variant:
|
|
152
|
-
size:
|
|
151
|
+
variant: t = "primary",
|
|
152
|
+
size: a = "md",
|
|
153
153
|
className: s,
|
|
154
154
|
...r
|
|
155
155
|
}) => /* @__PURE__ */ o.jsx(
|
|
@@ -157,7 +157,7 @@ const u = i(
|
|
|
157
157
|
{
|
|
158
158
|
role: "navigation",
|
|
159
159
|
"aria-label": "Bottom navigation",
|
|
160
|
-
className: j({ variant:
|
|
160
|
+
className: j({ variant: t, size: a, className: s }),
|
|
161
161
|
...r,
|
|
162
162
|
children: e
|
|
163
163
|
}
|
|
@@ -174,8 +174,8 @@ const u = i(
|
|
|
174
174
|
{
|
|
175
175
|
variants: {
|
|
176
176
|
active: {
|
|
177
|
-
true: "bg-
|
|
178
|
-
false: "hover:text-
|
|
177
|
+
true: "bg-primary/10 text-primary",
|
|
178
|
+
false: "hover:text-primary text-ghost"
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
defaultVariants: {
|
|
@@ -183,60 +183,60 @@ const u = i(
|
|
|
183
183
|
}
|
|
184
184
|
}
|
|
185
185
|
), R = i("flex items-center gap-2 ml-4"), S = i("flex items-center gap-2 mr-4"), C = n(
|
|
186
|
-
function({ children:
|
|
187
|
-
return /* @__PURE__ */ o.jsx("nav", { ref: r, className: R({ className:
|
|
186
|
+
function({ children: t, className: a, ...s }, r) {
|
|
187
|
+
return /* @__PURE__ */ o.jsx("nav", { ref: r, className: R({ className: a }), ...s, children: t });
|
|
188
188
|
}
|
|
189
189
|
), I = n(
|
|
190
|
-
function({ children:
|
|
191
|
-
return /* @__PURE__ */ o.jsx("div", { ref: r, className: S({ className:
|
|
190
|
+
function({ children: t, className: a, ...s }, r) {
|
|
191
|
+
return /* @__PURE__ */ o.jsx("div", { ref: r, className: S({ className: a }), ...s, children: t });
|
|
192
192
|
}
|
|
193
193
|
), F = n(
|
|
194
|
-
function({ children:
|
|
195
|
-
return /* @__PURE__ */ o.jsx("div", { ref: r, className: L({ className:
|
|
194
|
+
function({ children: t, className: a, ...s }, r) {
|
|
195
|
+
return /* @__PURE__ */ o.jsx("div", { ref: r, className: L({ className: a }), ...s, children: t });
|
|
196
196
|
}
|
|
197
197
|
), k = n(
|
|
198
|
-
function({ children:
|
|
199
|
-
return /* @__PURE__ */ o.jsx("div", { ref: r, className: V({ className:
|
|
198
|
+
function({ children: t, className: a, ...s }, r) {
|
|
199
|
+
return /* @__PURE__ */ o.jsx("div", { ref: r, className: V({ className: a }), ...s, children: t });
|
|
200
200
|
}
|
|
201
201
|
), O = n(
|
|
202
|
-
function({ children:
|
|
202
|
+
function({ children: t, className: a, active: s, ...r }, c) {
|
|
203
203
|
return /* @__PURE__ */ o.jsx(
|
|
204
204
|
"div",
|
|
205
205
|
{
|
|
206
206
|
ref: c,
|
|
207
|
-
className: A({ active: s, className:
|
|
207
|
+
className: A({ active: s, className: a }),
|
|
208
208
|
"aria-current": s ? "page" : void 0,
|
|
209
209
|
...r,
|
|
210
|
-
children:
|
|
210
|
+
children: t
|
|
211
211
|
}
|
|
212
212
|
);
|
|
213
213
|
}
|
|
214
214
|
), z = n(
|
|
215
|
-
({ children: e, className:
|
|
215
|
+
({ children: e, className: t, ...a }, s) => /* @__PURE__ */ o.jsx("header", { ref: s, className: T({ className: t }), ...a, children: e })
|
|
216
216
|
), K = Object.assign(z, {
|
|
217
217
|
Leading: F,
|
|
218
218
|
Trailing: k,
|
|
219
219
|
NavItem: O,
|
|
220
220
|
Nav: C,
|
|
221
221
|
Actions: I
|
|
222
|
-
}), P = i("w-full bg-white mx-
|
|
222
|
+
}), P = i("w-full bg-white mx-auto relative", {
|
|
223
223
|
variants: {
|
|
224
224
|
type: {
|
|
225
225
|
desktop: "max-w-7xl px-6 py-10",
|
|
226
|
-
tablet: "max-w-3xl
|
|
227
|
-
mobile: "w-full
|
|
226
|
+
tablet: "max-w-3xl",
|
|
227
|
+
mobile: "w-full"
|
|
228
228
|
}
|
|
229
229
|
},
|
|
230
230
|
defaultVariants: {
|
|
231
231
|
type: "desktop"
|
|
232
232
|
}
|
|
233
|
-
}), Q =
|
|
234
|
-
function({ type:
|
|
233
|
+
}), Q = p.forwardRef(
|
|
234
|
+
function({ type: t = "desktop", className: a, children: s, ...r }, c) {
|
|
235
235
|
return /* @__PURE__ */ o.jsx(
|
|
236
236
|
"div",
|
|
237
237
|
{
|
|
238
238
|
ref: c,
|
|
239
|
-
className: l(P({ type:
|
|
239
|
+
className: l(P({ type: t }), a),
|
|
240
240
|
...r,
|
|
241
241
|
children: s
|
|
242
242
|
}
|
|
@@ -263,27 +263,27 @@ const u = i(
|
|
|
263
263
|
span: "4"
|
|
264
264
|
}
|
|
265
265
|
}), E = n(
|
|
266
|
-
function({ className:
|
|
266
|
+
function({ className: t, children: a, ...s }, r) {
|
|
267
267
|
return /* @__PURE__ */ o.jsx(
|
|
268
268
|
"div",
|
|
269
269
|
{
|
|
270
270
|
ref: r,
|
|
271
|
-
className: l(H(),
|
|
271
|
+
className: l(H(), t),
|
|
272
272
|
...s,
|
|
273
|
-
children:
|
|
273
|
+
children: a
|
|
274
274
|
}
|
|
275
275
|
);
|
|
276
276
|
}
|
|
277
277
|
), $ = n(
|
|
278
|
-
function({ span:
|
|
279
|
-
const
|
|
278
|
+
function({ span: t = 4, className: a, children: s, ...r }, c) {
|
|
279
|
+
const m = Math.min(12, Math.max(1, t));
|
|
280
280
|
return /* @__PURE__ */ o.jsx(
|
|
281
281
|
"div",
|
|
282
282
|
{
|
|
283
283
|
ref: c,
|
|
284
284
|
className: l(
|
|
285
|
-
M({ span: `${
|
|
286
|
-
|
|
285
|
+
M({ span: `${m}` }),
|
|
286
|
+
a
|
|
287
287
|
),
|
|
288
288
|
...r,
|
|
289
289
|
children: s
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as e, a as n, b as p, D as s, R as u, c as i, S as I, d as c, g as S, j as h, i as l, h as r, e as T, T as g, f as m } from "../switch-input-
|
|
1
|
+
import { C as e, a as n, b as p, D as s, R as u, c as i, S as I, d as c, g as S, j as h, i as l, h as r, e as T, T as g, f as m } from "../switch-input-B-pwBWbi.js";
|
|
2
2
|
export {
|
|
3
3
|
e as CalculatorInput,
|
|
4
4
|
n as CheckboxInput,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { L as s, P as e, S as r } from "./skeleton-
|
|
2
|
-
import { A as n, B as p, F as u, P as c, T as i } from "./form-layout-
|
|
3
|
-
import { C as I, a as m, b as T, D as B, R as S, c as x, S as d, d as b, g as f, j as g, i as h, h as C, e as k, T as A, f as P } from "./switch-input-
|
|
1
|
+
import { L as s, P as e, S as r } from "./skeleton-BNZyaRjo.js";
|
|
2
|
+
import { A as n, B as p, F as u, P as c, T as i } from "./form-layout-BRqZZe8s.js";
|
|
3
|
+
import { C as I, a as m, b as T, D as B, R as S, c as x, S as d, d as b, g as f, j as g, i as h, h as C, e as k, T as A, f as P } from "./switch-input-B-pwBWbi.js";
|
|
4
4
|
import { D as L } from "./drawer-Cn7sreJG.js";
|
|
5
|
-
import { M, a as F } from "./menu
|
|
6
|
-
import { A as R, a as j, B as v, b as q, c as z, S as E, T as G, d as H } from "./tile-
|
|
7
|
-
import { B as K, a as N, C as O, b as Q, I as U, T as V } from "./calendar-
|
|
8
|
-
import { B as X, T as Y } from "./tabs-
|
|
5
|
+
import { M, a as F } from "./menu-Du409VIG.js";
|
|
6
|
+
import { A as R, a as j, B as v, b as q, c as z, S as E, T as G, d as H } from "./tile-6SeBYc08.js";
|
|
7
|
+
import { B as K, a as N, C as O, b as Q, I as U, T as V } from "./calendar-De5dCVnE.js";
|
|
8
|
+
import { B as X, T as Y } from "./tabs-BbOkYchB.js";
|
|
9
9
|
export {
|
|
10
10
|
R as Alert,
|
|
11
11
|
n as AppBar,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { j as u, a as x, c as y } from "./index-DOdDlCoL.js";
|
|
2
|
-
import { forwardRef as
|
|
3
|
-
const z =
|
|
2
|
+
import { forwardRef as m, useEffect as f, useRef as v, useState as M, createContext as j, useContext as k, useId as I } from "react";
|
|
3
|
+
const z = m(
|
|
4
4
|
({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
5
5
|
"div",
|
|
6
6
|
{
|
|
@@ -9,7 +9,7 @@ const z = f(
|
|
|
9
9
|
...t
|
|
10
10
|
}
|
|
11
11
|
)
|
|
12
|
-
), D =
|
|
12
|
+
), D = m(
|
|
13
13
|
({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
14
14
|
"div",
|
|
15
15
|
{
|
|
@@ -18,9 +18,9 @@ const z = f(
|
|
|
18
18
|
...t
|
|
19
19
|
}
|
|
20
20
|
)
|
|
21
|
-
), V =
|
|
21
|
+
), V = m(
|
|
22
22
|
({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx("div", { ref: n, className: x("px-6 py-2", e), ...t })
|
|
23
|
-
), A =
|
|
23
|
+
), A = m(
|
|
24
24
|
({ onOverlayClick: e, ...t }, n) => /* @__PURE__ */ u.jsx(
|
|
25
25
|
"div",
|
|
26
26
|
{
|
|
@@ -75,7 +75,7 @@ const z = f(
|
|
|
75
75
|
}
|
|
76
76
|
);
|
|
77
77
|
function R(e, t) {
|
|
78
|
-
|
|
78
|
+
f(() => {
|
|
79
79
|
if (t && e.current) {
|
|
80
80
|
const n = e.current.querySelectorAll(
|
|
81
81
|
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
@@ -85,7 +85,7 @@ function R(e, t) {
|
|
|
85
85
|
}, [t, e]);
|
|
86
86
|
}
|
|
87
87
|
function F(e, t) {
|
|
88
|
-
|
|
88
|
+
f(() => {
|
|
89
89
|
if (!e) return;
|
|
90
90
|
const n = (o) => {
|
|
91
91
|
o.key === "Escape" && t();
|
|
@@ -104,7 +104,7 @@ const L = 200, T = ({
|
|
|
104
104
|
...s
|
|
105
105
|
}) => {
|
|
106
106
|
const d = v(null), c = v(null), [p, l] = M(e), [h, b] = M(!1);
|
|
107
|
-
return
|
|
107
|
+
return f(() => {
|
|
108
108
|
if (e)
|
|
109
109
|
l(!0), b(!1), d.current = document.activeElement;
|
|
110
110
|
else if (p) {
|
|
@@ -167,7 +167,7 @@ const L = 200, T = ({
|
|
|
167
167
|
}
|
|
168
168
|
}
|
|
169
169
|
), q = y(
|
|
170
|
-
"w-full text-left px-4 rounded-md cursor-pointer transition-colors duration-150 font-medium select-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-
|
|
170
|
+
"w-full text-left px-4 rounded-md cursor-pointer transition-colors duration-150 font-medium select-none focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary/70 hover:bg-ghost-100 active:bg-ghost-200 disabled:opacity-50 disabled:cursor-not-allowed",
|
|
171
171
|
{
|
|
172
172
|
variants: {
|
|
173
173
|
variant: {
|
|
@@ -184,7 +184,7 @@ const L = 200, T = ({
|
|
|
184
184
|
size: "md"
|
|
185
185
|
}
|
|
186
186
|
}
|
|
187
|
-
), B =
|
|
187
|
+
), B = m(
|
|
188
188
|
({ children: e, ...t }, n) => {
|
|
189
189
|
const { open: o, triggerRef: r } = w();
|
|
190
190
|
return /* @__PURE__ */ u.jsx(
|
|
@@ -201,7 +201,7 @@ const L = 200, T = ({
|
|
|
201
201
|
}
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
|
-
), H =
|
|
204
|
+
), H = m(
|
|
205
205
|
({ children: e, className: t, ...n }, o) => {
|
|
206
206
|
const { open: r, contentRef: a, triggerRef: i, size: s } = w(), d = I();
|
|
207
207
|
let c = 0, p = 0;
|
|
@@ -237,7 +237,7 @@ const L = 200, T = ({
|
|
|
237
237
|
}
|
|
238
238
|
);
|
|
239
239
|
}
|
|
240
|
-
), K =
|
|
240
|
+
), K = m(
|
|
241
241
|
({ children: e, disabled: t, className: n, ...o }, r) => {
|
|
242
242
|
const { size: a } = w();
|
|
243
243
|
return /* @__PURE__ */ u.jsx(
|
|
@@ -261,7 +261,7 @@ const L = 200, T = ({
|
|
|
261
261
|
}
|
|
262
262
|
);
|
|
263
263
|
function $(e, t, n, o) {
|
|
264
|
-
|
|
264
|
+
f(() => {
|
|
265
265
|
if (!e) return;
|
|
266
266
|
function r(a) {
|
|
267
267
|
!t.current?.contains(a.target) && !n.current?.contains(a.target) && o();
|
|
@@ -270,7 +270,7 @@ function $(e, t, n, o) {
|
|
|
270
270
|
}, [e, o, t, n]);
|
|
271
271
|
}
|
|
272
272
|
function U(e, t) {
|
|
273
|
-
|
|
273
|
+
f(() => {
|
|
274
274
|
if (e && t.current) {
|
|
275
275
|
const n = t.current.querySelectorAll('[role="menuitem"]');
|
|
276
276
|
n.length && n[0].focus();
|
|
@@ -278,7 +278,7 @@ function U(e, t) {
|
|
|
278
278
|
}, [e, t]);
|
|
279
279
|
}
|
|
280
280
|
function W(e, t, n, o) {
|
|
281
|
-
|
|
281
|
+
f(() => {
|
|
282
282
|
if (!e || !t.current) return;
|
|
283
283
|
const r = t.current;
|
|
284
284
|
function a(i) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { A as t, a as o, B as r, b as e, c as n, S as l, T as B, d as c } from "../tile-
|
|
2
|
-
import { B as b, a as d, C as u, b as x, I as A, T as C } from "../calendar-
|
|
1
|
+
import { A as t, a as o, B as r, b as e, c as n, S as l, T as B, d as c } from "../tile-6SeBYc08.js";
|
|
2
|
+
import { B as b, a as d, C as u, b as x, I as A, T as C } from "../calendar-De5dCVnE.js";
|
|
3
3
|
export {
|
|
4
4
|
t as Alert,
|
|
5
5
|
o as Avatar,
|
|
@@ -11,10 +11,10 @@ const p = l(
|
|
|
11
11
|
lg: "w-8 h-8 border-4"
|
|
12
12
|
},
|
|
13
13
|
color: {
|
|
14
|
-
primary: "border-
|
|
15
|
-
secondary: "border-
|
|
16
|
-
tertiary: "border-
|
|
17
|
-
ghost: "border-
|
|
14
|
+
primary: "border-primary border-t-transparent ",
|
|
15
|
+
secondary: "border-secondary border-t-transparent",
|
|
16
|
+
tertiary: "border-tertiary border-t-transparent",
|
|
17
|
+
ghost: "border-ghost border-t-transparent",
|
|
18
18
|
neutral: "border-neutral border-t-transparent",
|
|
19
19
|
success: "border-success border-t-transparent",
|
|
20
20
|
info: "border-info border-t-transparent",
|
|
@@ -30,10 +30,10 @@ const p = l(
|
|
|
30
30
|
), h = l("relative w-full h-1 overflow-hidden rounded", {
|
|
31
31
|
variants: {
|
|
32
32
|
color: {
|
|
33
|
-
primary: "bg-
|
|
34
|
-
secondary: "bg-
|
|
35
|
-
tertiary: "bg-
|
|
36
|
-
ghost: "bg-
|
|
33
|
+
primary: "bg-primary",
|
|
34
|
+
secondary: "bg-secondary",
|
|
35
|
+
tertiary: "bg-tertiary",
|
|
36
|
+
ghost: "bg-ghost",
|
|
37
37
|
neutral: "bg-neutral",
|
|
38
38
|
success: "bg-success",
|
|
39
39
|
info: "bg-info",
|
|
@@ -50,16 +50,16 @@ const p = l(
|
|
|
50
50
|
color: "primary",
|
|
51
51
|
size: "md"
|
|
52
52
|
}
|
|
53
|
-
}),
|
|
53
|
+
}), y = (a) => {
|
|
54
54
|
switch (a) {
|
|
55
55
|
case "primary":
|
|
56
|
-
return "bg-
|
|
56
|
+
return "bg-primary";
|
|
57
57
|
case "secondary":
|
|
58
|
-
return "bg-
|
|
58
|
+
return "bg-secondary";
|
|
59
59
|
case "tertiary":
|
|
60
|
-
return "bg-
|
|
60
|
+
return "bg-tertiary";
|
|
61
61
|
case "ghost":
|
|
62
|
-
return "bg-
|
|
62
|
+
return "bg-ghost";
|
|
63
63
|
case "neutral":
|
|
64
64
|
return "bg-neutral";
|
|
65
65
|
case "success":
|
|
@@ -71,9 +71,9 @@ const p = l(
|
|
|
71
71
|
case "danger":
|
|
72
72
|
return "bg-danger";
|
|
73
73
|
default:
|
|
74
|
-
return "bg-
|
|
74
|
+
return "bg-primary";
|
|
75
75
|
}
|
|
76
|
-
},
|
|
76
|
+
}, w = u.forwardRef(
|
|
77
77
|
({
|
|
78
78
|
color: a = "primary",
|
|
79
79
|
size: e = "md",
|
|
@@ -90,7 +90,7 @@ const p = l(
|
|
|
90
90
|
...s
|
|
91
91
|
}
|
|
92
92
|
)
|
|
93
|
-
),
|
|
93
|
+
), v = u.forwardRef(
|
|
94
94
|
({
|
|
95
95
|
color: a = "primary",
|
|
96
96
|
size: e = "md",
|
|
@@ -124,7 +124,7 @@ const p = l(
|
|
|
124
124
|
{
|
|
125
125
|
className: d(
|
|
126
126
|
"absolute left-0 top-0 h-full w-1/3 animate-loading-bar rounded-full",
|
|
127
|
-
|
|
127
|
+
y(a)
|
|
128
128
|
),
|
|
129
129
|
"aria-hidden": "true"
|
|
130
130
|
}
|
|
@@ -141,7 +141,7 @@ const p = l(
|
|
|
141
141
|
className: s,
|
|
142
142
|
...t
|
|
143
143
|
}, i) => a === "bar" ? /* @__PURE__ */ o.jsx(
|
|
144
|
-
|
|
144
|
+
v,
|
|
145
145
|
{
|
|
146
146
|
ref: i,
|
|
147
147
|
color: n,
|
|
@@ -151,7 +151,7 @@ const p = l(
|
|
|
151
151
|
...t
|
|
152
152
|
}
|
|
153
153
|
) : /* @__PURE__ */ o.jsx(
|
|
154
|
-
|
|
154
|
+
w,
|
|
155
155
|
{
|
|
156
156
|
ref: i,
|
|
157
157
|
color: n,
|