@dimasbaguspm/versaur 0.0.10 → 0.0.12
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-BBDs1Y8m.js} +12 -12
- 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",
|
|
@@ -57,7 +57,7 @@ const u = i(
|
|
|
57
57
|
"div",
|
|
58
58
|
{
|
|
59
59
|
ref: t,
|
|
60
|
-
className: l("text-xs text-
|
|
60
|
+
className: l("text-xs text-ghost-400 truncate min-w-0", a),
|
|
61
61
|
children: e
|
|
62
62
|
}
|
|
63
63
|
)
|
|
@@ -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: {
|
|
@@ -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: {
|
|
@@ -219,18 +219,18 @@ const u = i(
|
|
|
219
219
|
NavItem: O,
|
|
220
220
|
Nav: C,
|
|
221
221
|
Actions: I
|
|
222
|
-
}), P = i("w-full
|
|
222
|
+
}), P = i("w-full 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 =
|
|
233
|
+
}), Q = p.forwardRef(
|
|
234
234
|
function({ type: a = "desktop", className: t, children: s, ...r }, c) {
|
|
235
235
|
return /* @__PURE__ */ o.jsx(
|
|
236
236
|
"div",
|
|
@@ -276,13 +276,13 @@ const u = i(
|
|
|
276
276
|
}
|
|
277
277
|
), $ = n(
|
|
278
278
|
function({ span: a = 4, className: t, children: s, ...r }, c) {
|
|
279
|
-
const
|
|
279
|
+
const m = Math.min(12, Math.max(1, a));
|
|
280
280
|
return /* @__PURE__ */ o.jsx(
|
|
281
281
|
"div",
|
|
282
282
|
{
|
|
283
283
|
ref: c,
|
|
284
284
|
className: l(
|
|
285
|
-
M({ span: `${
|
|
285
|
+
M({ span: `${m}` }),
|
|
286
286
|
t
|
|
287
287
|
),
|
|
288
288
|
...r,
|
|
@@ -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-BBDs1Y8m.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,
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,100..900&display=swap');
|
|
3
2
|
@import 'tailwindcss';
|
|
4
3
|
|
|
@@ -16,51 +15,79 @@
|
|
|
16
15
|
}
|
|
17
16
|
|
|
18
17
|
/* Versaur Design System - Spenicle Color Palette */
|
|
18
|
+
|
|
19
19
|
@theme {
|
|
20
|
-
/* Font Families */
|
|
21
20
|
--font-sans: 'Inter', ui-sans-serif, system-ui, sans-serif;
|
|
22
21
|
|
|
23
|
-
/*
|
|
24
|
-
--color-
|
|
25
|
-
--color-
|
|
26
|
-
--color-
|
|
27
|
-
--color-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
--color-
|
|
31
|
-
--color-
|
|
32
|
-
--color-
|
|
33
|
-
--color-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
22
|
+
/* Primary (Coral) */
|
|
23
|
+
--color-primary: #e07a5f;
|
|
24
|
+
--color-primary-light: #ffd9cb;
|
|
25
|
+
--color-primary-bold: #a95a3a;
|
|
26
|
+
--color-primary-soft: #fff8f6;
|
|
27
|
+
|
|
28
|
+
/* Secondary (Sage) */
|
|
29
|
+
--color-secondary: #81b29a;
|
|
30
|
+
--color-secondary-light: #d9ffe6;
|
|
31
|
+
--color-secondary-bold: #56806b;
|
|
32
|
+
--color-secondary-soft: #f6fffa;
|
|
33
|
+
|
|
34
|
+
/* Tertiary (Mist) */
|
|
35
|
+
--color-tertiary: #84a5c0;
|
|
36
|
+
--color-tertiary-light: #d8ebff;
|
|
37
|
+
--color-tertiary-bold: #5a7a99;
|
|
38
|
+
--color-tertiary-soft: #f5faff;
|
|
39
|
+
|
|
40
|
+
/* Ghost (Slate) */
|
|
41
|
+
--color-ghost: #3d405b;
|
|
42
|
+
--color-ghost-light: #b6b8db;
|
|
43
|
+
--color-ghost-bold: #23243a;
|
|
44
|
+
--color-ghost-soft: #e3e4ea;
|
|
45
|
+
|
|
46
|
+
/* Neutral (Light Gray) */
|
|
47
|
+
--color-neutral: #e9ecef;
|
|
48
|
+
--color-neutral-light: #f4f6f8;
|
|
49
|
+
--color-neutral-bold: #b0b3b8;
|
|
50
|
+
--color-neutral-soft: #f8f9fa;
|
|
51
|
+
|
|
52
|
+
/* Success */
|
|
38
53
|
--color-success: #6db285;
|
|
54
|
+
--color-success-light: #c8ffdd;
|
|
55
|
+
--color-success-bold: #417a5a;
|
|
39
56
|
--color-success-soft: #f4fff9;
|
|
57
|
+
|
|
58
|
+
/* Info */
|
|
40
59
|
--color-info: #6b8fad;
|
|
60
|
+
--color-info-light: #b9e1ff;
|
|
61
|
+
--color-info-bold: #3c5a7a;
|
|
41
62
|
--color-info-soft: #f0f8ff;
|
|
63
|
+
|
|
64
|
+
/* Warning */
|
|
42
65
|
--color-warning: #e08a47;
|
|
43
|
-
--color-warning-
|
|
66
|
+
--color-warning-light: #ffdab5;
|
|
67
|
+
--color-warning-bold: #b86a2c;
|
|
68
|
+
--color-warning-soft: #fff1e4;
|
|
69
|
+
|
|
70
|
+
/* Danger */
|
|
44
71
|
--color-danger: #e06650;
|
|
45
|
-
--color-danger-
|
|
72
|
+
--color-danger-light: #ffbfb3;
|
|
73
|
+
--color-danger-bold: #b83c2a;
|
|
74
|
+
--color-danger-soft: #ffeeeb;
|
|
46
75
|
|
|
47
76
|
/* Background and Foreground */
|
|
48
|
-
--color-background: #ffffff;
|
|
49
|
-
--color-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
--color-
|
|
53
|
-
--color-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
--color-
|
|
57
|
-
--color-
|
|
58
|
-
--color-
|
|
59
|
-
--color-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
/* Utility Colors */
|
|
77
|
+
--color-background: #ffffff;
|
|
78
|
+
--color-background-light: #f8f9fa;
|
|
79
|
+
--color-background-bold: #e9ecef;
|
|
80
|
+
--color-foreground: #2d3748;
|
|
81
|
+
--color-foreground-light: #6b7280;
|
|
82
|
+
--color-foreground-bold: #1a202c;
|
|
83
|
+
|
|
84
|
+
/* Cream */
|
|
85
|
+
--color-cream: #f4f1de;
|
|
86
|
+
--color-cream-light: #f9f7f3;
|
|
87
|
+
--color-cream-bold: #e2d9b8;
|
|
88
|
+
--color-cream-soft: #f9f7f3;
|
|
89
|
+
|
|
90
|
+
/* Border and Accent */
|
|
64
91
|
--color-border: #e0e0e0;
|
|
65
92
|
--color-accent: #84a5c0;
|
|
66
93
|
}
|
|
@@ -108,7 +135,6 @@ Our palette follows these harmonious relationships:
|
|
|
108
135
|
animation: loading-bar 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
|
|
109
136
|
}
|
|
110
137
|
|
|
111
|
-
|
|
112
138
|
@keyframes spin-perfect {
|
|
113
139
|
100% {
|
|
114
140
|
transform: rotate(360deg);
|
|
@@ -131,4 +157,3 @@ Our palette follows these harmonious relationships:
|
|
|
131
157
|
.animate-fab-in {
|
|
132
158
|
animation: fab-in 0.32s cubic-bezier(0.4, 0, 0.2, 1);
|
|
133
159
|
}
|
|
134
|
-
|