@gelabs/ovr 0.1.1 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/chunk-3KIDW4LT.js +13 -0
- package/dist/chunk-4SZXBT56.js +26 -0
- package/dist/chunk-55FQP2DO.js +46 -0
- package/dist/{chunk-JV7QQ22Q.js → chunk-5YYR37CF.js} +10 -1
- package/dist/chunk-5Z2IAD5I.js +72 -0
- package/dist/chunk-BBQBKQA4.js +31 -0
- package/dist/chunk-BIQ2J75Y.js +54 -0
- package/dist/chunk-E2D7QT6N.js +92 -0
- package/dist/chunk-EGKFELO3.js +15 -0
- package/dist/chunk-EYFZWQ4J.js +74 -0
- package/dist/chunk-GDOCD7LT.js +46 -0
- package/dist/chunk-IF5UAVIE.js +25 -0
- package/dist/chunk-JEYT63LE.js +25 -0
- package/dist/chunk-K3KIBHJF.js +20 -0
- package/dist/chunk-M35R6JLA.js +142 -0
- package/dist/chunk-MDTRBOPQ.js +22 -0
- package/dist/chunk-NSCIBSCW.js +24 -0
- package/dist/chunk-OE525ZER.js +31 -0
- package/dist/chunk-OWCGEEAZ.js +107 -0
- package/dist/chunk-QCRVT2SS.js +18 -0
- package/dist/chunk-SETIN6XP.js +95 -0
- package/dist/chunk-WOPU6DI7.js +77 -0
- package/dist/chunk-XQTVSNHC.js +18 -0
- package/dist/core-i18n.d.ts +2 -2
- package/dist/core-i18n.js +1 -1
- package/dist/data-db.d.ts +1 -4
- package/dist/data-mock-store.js +53 -1
- package/dist/data-prisma-store.d.ts +3 -1
- package/dist/data-prisma-store.js +84 -1
- package/dist/data-seed-runner.d.ts +2 -1
- package/dist/data.d.ts +13 -1
- package/dist/offline.d.ts +126 -0
- package/dist/offline.js +376 -0
- package/dist/{types-DrrNO_Ak.d.ts → types-CtBC5-TW.d.ts} +8 -0
- package/dist/ui-components-admin/admin-nav.d.ts +7 -0
- package/dist/ui-components-admin/admin-nav.js +83 -0
- package/dist/ui-components-admin/issuance-form.d.ts +15 -0
- package/dist/ui-components-admin/issuance-form.js +367 -0
- package/dist/ui-components-admin/stat-card.d.ts +10 -0
- package/dist/ui-components-admin/stat-card.js +29 -0
- package/dist/ui-components-admin/ticket-preview.d.ts +9 -0
- package/dist/ui-components-admin/ticket-preview.js +13 -0
- package/dist/ui-components-admin/tickets-table.d.ts +8 -0
- package/dist/ui-components-admin/tickets-table.js +50 -0
- package/dist/ui-components-citizen/citizen-nav.d.ts +5 -0
- package/dist/ui-components-citizen/citizen-nav.js +33 -0
- package/dist/ui-components-citizen/payment-form.d.ts +14 -0
- package/dist/ui-components-citizen/payment-form.js +168 -0
- package/dist/ui-components-citizen/payment-qr-dialog.d.ts +30 -0
- package/dist/ui-components-citizen/payment-qr-dialog.js +9 -0
- package/dist/ui-components-citizen/ticket-not-found.d.ts +5 -0
- package/dist/ui-components-citizen/ticket-not-found.js +21 -0
- package/dist/ui-components-citizen/violation-history-table.d.ts +16 -0
- package/dist/ui-components-citizen/violation-history-table.js +77 -0
- package/dist/ui-components-shared/amount-summary.d.ts +8 -0
- package/dist/ui-components-shared/amount-summary.js +7 -0
- package/dist/ui-components-shared/money.d.ts +9 -0
- package/dist/ui-components-shared/money.js +5 -0
- package/dist/ui-components-shared/municipal-seal.d.ts +11 -0
- package/dist/ui-components-shared/municipal-seal.js +6 -0
- package/dist/ui-components-shared/official-header.d.ts +5 -0
- package/dist/ui-components-shared/official-header.js +7 -0
- package/dist/ui-components-shared/print-button.d.ts +8 -0
- package/dist/ui-components-shared/print-button.js +17 -0
- package/dist/ui-components-shared/seal.d.ts +12 -0
- package/dist/ui-components-shared/seal.js +2 -0
- package/dist/ui-components-shared/site-header.d.ts +13 -0
- package/dist/ui-components-shared/site-header.js +40 -0
- package/dist/ui-components-shared/sonner.d.ts +6 -0
- package/dist/ui-components-shared/sonner.js +38 -0
- package/dist/ui-components-shared/status-badge.d.ts +9 -0
- package/dist/ui-components-shared/status-badge.js +3 -0
- package/dist/ui-components-shared/theme-toggle.d.ts +7 -0
- package/dist/ui-components-shared/theme-toggle.js +6 -0
- package/dist/ui-components-shared/ticket-receipt.d.ts +12 -0
- package/dist/ui-components-shared/ticket-receipt.js +158 -0
- package/dist/ui-components-shared/violations-table.d.ts +8 -0
- package/dist/ui-components-shared/violations-table.js +7 -0
- package/dist/ui-components-ui/alert.js +2 -74
- package/dist/ui-components-ui/badge.d.ts +1 -1
- package/dist/ui-components-ui/badge.js +2 -46
- package/dist/ui-components-ui/button.d.ts +2 -2
- package/dist/ui-components-ui/card.js +2 -95
- package/dist/ui-components-ui/checkbox.js +2 -31
- package/dist/ui-components-ui/dialog.js +3 -142
- package/dist/ui-components-ui/input.js +2 -20
- package/dist/ui-components-ui/label.js +2 -18
- package/dist/ui-components-ui/separator.js +2 -24
- package/dist/ui-components-ui/skeleton.js +2 -15
- package/dist/ui-components-ui/table.js +2 -107
- package/dist/ui-components-ui/textarea.js +2 -18
- package/dist/ui-config.d.ts +19 -2
- package/dist/ui-config.js +2 -36
- package/dist/ui-server.d.ts +1 -1
- package/dist/ui-server.js +1 -1
- package/package.json +24 -4
|
@@ -1,25 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
function Separator({
|
|
7
|
-
className,
|
|
8
|
-
orientation = "horizontal",
|
|
9
|
-
...props
|
|
10
|
-
}) {
|
|
11
|
-
return /* @__PURE__ */ jsx(
|
|
12
|
-
Separator$1,
|
|
13
|
-
{
|
|
14
|
-
"data-slot": "separator",
|
|
15
|
-
orientation,
|
|
16
|
-
className: cn(
|
|
17
|
-
"shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch",
|
|
18
|
-
className
|
|
19
|
-
),
|
|
20
|
-
...props
|
|
21
|
-
}
|
|
22
|
-
);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export { Separator };
|
|
2
|
+
export { Separator } from '../chunk-NSCIBSCW.js';
|
|
3
|
+
import '../chunk-77QBZC7J.js';
|
|
@@ -1,15 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
function Skeleton({ className, ...props }) {
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
-
"div",
|
|
7
|
-
{
|
|
8
|
-
"data-slot": "skeleton",
|
|
9
|
-
className: cn("animate-pulse rounded-md bg-muted", className),
|
|
10
|
-
...props
|
|
11
|
-
}
|
|
12
|
-
);
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { Skeleton };
|
|
1
|
+
export { Skeleton } from '../chunk-EGKFELO3.js';
|
|
2
|
+
import '../chunk-77QBZC7J.js';
|
|
@@ -1,108 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
function Table({ className, ...props }) {
|
|
6
|
-
return /* @__PURE__ */ jsx(
|
|
7
|
-
"div",
|
|
8
|
-
{
|
|
9
|
-
"data-slot": "table-container",
|
|
10
|
-
className: "relative w-full overflow-x-auto",
|
|
11
|
-
children: /* @__PURE__ */ jsx(
|
|
12
|
-
"table",
|
|
13
|
-
{
|
|
14
|
-
"data-slot": "table",
|
|
15
|
-
className: cn("w-full caption-bottom text-sm", className),
|
|
16
|
-
...props
|
|
17
|
-
}
|
|
18
|
-
)
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
}
|
|
22
|
-
function TableHeader({ className, ...props }) {
|
|
23
|
-
return /* @__PURE__ */ jsx(
|
|
24
|
-
"thead",
|
|
25
|
-
{
|
|
26
|
-
"data-slot": "table-header",
|
|
27
|
-
className: cn("[&_tr]:border-b", className),
|
|
28
|
-
...props
|
|
29
|
-
}
|
|
30
|
-
);
|
|
31
|
-
}
|
|
32
|
-
function TableBody({ className, ...props }) {
|
|
33
|
-
return /* @__PURE__ */ jsx(
|
|
34
|
-
"tbody",
|
|
35
|
-
{
|
|
36
|
-
"data-slot": "table-body",
|
|
37
|
-
className: cn("[&_tr:last-child]:border-0", className),
|
|
38
|
-
...props
|
|
39
|
-
}
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
function TableFooter({ className, ...props }) {
|
|
43
|
-
return /* @__PURE__ */ jsx(
|
|
44
|
-
"tfoot",
|
|
45
|
-
{
|
|
46
|
-
"data-slot": "table-footer",
|
|
47
|
-
className: cn(
|
|
48
|
-
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
49
|
-
className
|
|
50
|
-
),
|
|
51
|
-
...props
|
|
52
|
-
}
|
|
53
|
-
);
|
|
54
|
-
}
|
|
55
|
-
function TableRow({ className, ...props }) {
|
|
56
|
-
return /* @__PURE__ */ jsx(
|
|
57
|
-
"tr",
|
|
58
|
-
{
|
|
59
|
-
"data-slot": "table-row",
|
|
60
|
-
className: cn(
|
|
61
|
-
"border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted",
|
|
62
|
-
className
|
|
63
|
-
),
|
|
64
|
-
...props
|
|
65
|
-
}
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
function TableHead({ className, ...props }) {
|
|
69
|
-
return /* @__PURE__ */ jsx(
|
|
70
|
-
"th",
|
|
71
|
-
{
|
|
72
|
-
"data-slot": "table-head",
|
|
73
|
-
className: cn(
|
|
74
|
-
"h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0",
|
|
75
|
-
className
|
|
76
|
-
),
|
|
77
|
-
...props
|
|
78
|
-
}
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
function TableCell({ className, ...props }) {
|
|
82
|
-
return /* @__PURE__ */ jsx(
|
|
83
|
-
"td",
|
|
84
|
-
{
|
|
85
|
-
"data-slot": "table-cell",
|
|
86
|
-
className: cn(
|
|
87
|
-
"p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",
|
|
88
|
-
className
|
|
89
|
-
),
|
|
90
|
-
...props
|
|
91
|
-
}
|
|
92
|
-
);
|
|
93
|
-
}
|
|
94
|
-
function TableCaption({
|
|
95
|
-
className,
|
|
96
|
-
...props
|
|
97
|
-
}) {
|
|
98
|
-
return /* @__PURE__ */ jsx(
|
|
99
|
-
"caption",
|
|
100
|
-
{
|
|
101
|
-
"data-slot": "table-caption",
|
|
102
|
-
className: cn("mt-4 text-sm text-muted-foreground", className),
|
|
103
|
-
...props
|
|
104
|
-
}
|
|
105
|
-
);
|
|
106
|
-
}
|
|
107
|
-
|
|
108
|
-
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow };
|
|
2
|
+
export { Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow } from '../chunk-OWCGEEAZ.js';
|
|
3
|
+
import '../chunk-77QBZC7J.js';
|
|
@@ -1,18 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
function Textarea({ className, ...props }) {
|
|
5
|
-
return /* @__PURE__ */ jsx(
|
|
6
|
-
"textarea",
|
|
7
|
-
{
|
|
8
|
-
"data-slot": "textarea",
|
|
9
|
-
className: cn(
|
|
10
|
-
"flex field-sizing-content min-h-16 w-full rounded-lg border border-input bg-transparent px-2.5 py-2 text-base transition-colors outline-none placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40",
|
|
11
|
-
className
|
|
12
|
-
),
|
|
13
|
-
...props
|
|
14
|
-
}
|
|
15
|
-
);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export { Textarea };
|
|
1
|
+
export { Textarea } from '../chunk-QCRVT2SS.js';
|
|
2
|
+
import '../chunk-77QBZC7J.js';
|
package/dist/ui-config.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { b as OvrConfig } from './schema-CdsFQxIg.js';
|
|
3
3
|
import { a as Formatters } from './format-C7MSwUHK.js';
|
|
4
|
-
import { D as Dictionary } from './types-
|
|
4
|
+
import { D as Dictionary } from './types-CtBC5-TW.js';
|
|
5
5
|
import 'zod';
|
|
6
6
|
import './types.js';
|
|
7
7
|
|
|
@@ -20,4 +20,21 @@ declare function useOvrConfig(): OvrConfig;
|
|
|
20
20
|
declare function useCopy(): Dictionary;
|
|
21
21
|
declare function useFormatters(): Formatters;
|
|
22
22
|
|
|
23
|
-
|
|
23
|
+
type Theme = "light" | "dark" | "system";
|
|
24
|
+
type Resolved = "light" | "dark";
|
|
25
|
+
interface ThemeContextValue {
|
|
26
|
+
theme: Theme;
|
|
27
|
+
resolvedTheme: Resolved;
|
|
28
|
+
setTheme: (theme: Theme) => void;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Minimal theme provider (light/dark/system). It renders NO client-side `<script>`
|
|
32
|
+
* — the no-flash script lives in the server-rendered root layout — so React 19
|
|
33
|
+
* never warns about a script rendered inside a client component.
|
|
34
|
+
*/
|
|
35
|
+
declare function ThemeProvider({ children }: {
|
|
36
|
+
children: React.ReactNode;
|
|
37
|
+
}): React.JSX.Element;
|
|
38
|
+
declare function useTheme(): ThemeContextValue;
|
|
39
|
+
|
|
40
|
+
export { OvrConfigProvider, ThemeProvider, useCopy, useFormatters, useOvrConfig, useTheme };
|
package/dist/ui-config.js
CHANGED
|
@@ -1,37 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
|
|
3
|
-
import
|
|
4
|
-
import { jsx } from 'react/jsx-runtime';
|
|
5
|
-
|
|
6
|
-
var OvrConfigContext = React.createContext(null);
|
|
7
|
-
function OvrConfigProvider({
|
|
8
|
-
config,
|
|
9
|
-
copy,
|
|
10
|
-
children
|
|
11
|
-
}) {
|
|
12
|
-
const value = React.useMemo(
|
|
13
|
-
() => ({ config, copy, formatters: createFormatters(config.rules) }),
|
|
14
|
-
[config, copy]
|
|
15
|
-
);
|
|
16
|
-
return /* @__PURE__ */ jsx(OvrConfigContext.Provider, { value, children });
|
|
17
|
-
}
|
|
18
|
-
function useCtx() {
|
|
19
|
-
const ctx = React.useContext(OvrConfigContext);
|
|
20
|
-
if (!ctx) {
|
|
21
|
-
throw new Error(
|
|
22
|
-
"[@gelabs/ovr-ui] hook used outside <OvrConfigProvider> \u2014 mount it in your root layout."
|
|
23
|
-
);
|
|
24
|
-
}
|
|
25
|
-
return ctx;
|
|
26
|
-
}
|
|
27
|
-
function useOvrConfig() {
|
|
28
|
-
return useCtx().config;
|
|
29
|
-
}
|
|
30
|
-
function useCopy() {
|
|
31
|
-
return useCtx().copy;
|
|
32
|
-
}
|
|
33
|
-
function useFormatters() {
|
|
34
|
-
return useCtx().formatters;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export { OvrConfigProvider, useCopy, useFormatters, useOvrConfig };
|
|
2
|
+
export { OvrConfigProvider, ThemeProvider, useCopy, useFormatters, useOvrConfig, useTheme } from './chunk-E2D7QT6N.js';
|
|
3
|
+
import './chunk-B634JHKZ.js';
|
package/dist/ui-server.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { b as OvrConfig } from './schema-CdsFQxIg.js';
|
|
2
2
|
import { a as Formatters } from './format-C7MSwUHK.js';
|
|
3
|
-
import { D as Dictionary, C as CopyOverrides } from './types-
|
|
3
|
+
import { D as Dictionary, C as CopyOverrides } from './types-CtBC5-TW.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import './types.js';
|
|
6
6
|
|
package/dist/ui-server.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gelabs/ovr",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "The @gelabs/ovr SDK — one self-contained package over the OVR (Online Ordinance Violation Receipt) platform. A standalone per-LGU app installs ONLY this package and imports from @gelabs/ovr/{config,core,data,runtime,auth,ui,...}; the seven @gelabs/ovr-* implementation packages are bundled in at build time.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -98,6 +98,22 @@
|
|
|
98
98
|
"types": "./dist/ui-components-ui/*.d.ts",
|
|
99
99
|
"default": "./dist/ui-components-ui/*.js"
|
|
100
100
|
},
|
|
101
|
+
"./ui/components/shared/*": {
|
|
102
|
+
"types": "./dist/ui-components-shared/*.d.ts",
|
|
103
|
+
"default": "./dist/ui-components-shared/*.js"
|
|
104
|
+
},
|
|
105
|
+
"./ui/components/admin/*": {
|
|
106
|
+
"types": "./dist/ui-components-admin/*.d.ts",
|
|
107
|
+
"default": "./dist/ui-components-admin/*.js"
|
|
108
|
+
},
|
|
109
|
+
"./ui/components/citizen/*": {
|
|
110
|
+
"types": "./dist/ui-components-citizen/*.d.ts",
|
|
111
|
+
"default": "./dist/ui-components-citizen/*.js"
|
|
112
|
+
},
|
|
113
|
+
"./offline": {
|
|
114
|
+
"types": "./dist/offline.d.ts",
|
|
115
|
+
"default": "./dist/offline.js"
|
|
116
|
+
},
|
|
101
117
|
"./generated/client": "./dist/generated/client/index.js",
|
|
102
118
|
"./prisma/schema.prisma": "./prisma/schema.prisma",
|
|
103
119
|
"./styles.css": "./dist/styles.css",
|
|
@@ -117,10 +133,13 @@
|
|
|
117
133
|
"@prisma/client": "^6.19.3",
|
|
118
134
|
"class-variance-authority": "^0.7.1",
|
|
119
135
|
"clsx": "^2.1.1",
|
|
136
|
+
"dexie": "^4.4.3",
|
|
137
|
+
"dexie-react-hooks": "^4.4.0",
|
|
120
138
|
"ioredis": "^5.11.1",
|
|
121
139
|
"lucide-react": "^1.17.0",
|
|
122
140
|
"server-only": "^0.0.1",
|
|
123
141
|
"shadcn": "^4.10.0",
|
|
142
|
+
"sonner": "^2.0.7",
|
|
124
143
|
"tailwind-merge": "^3.6.0",
|
|
125
144
|
"tw-animate-css": "^1.4.0",
|
|
126
145
|
"zod": "^3"
|
|
@@ -139,13 +158,14 @@
|
|
|
139
158
|
"react-dom": "19.2.4",
|
|
140
159
|
"tsup": "^8.4.0",
|
|
141
160
|
"typescript": "^5",
|
|
142
|
-
"@gelabs/ovr-config": "0.0.0",
|
|
143
161
|
"@gelabs/ovr-types": "0.0.0",
|
|
144
162
|
"@gelabs/ovr-runtime": "0.0.0",
|
|
145
163
|
"@gelabs/ovr-data": "0.0.0",
|
|
146
164
|
"@gelabs/ovr-core": "0.0.0",
|
|
147
|
-
"@gelabs/ovr-
|
|
148
|
-
"@gelabs/ovr-
|
|
165
|
+
"@gelabs/ovr-ui": "0.0.0",
|
|
166
|
+
"@gelabs/ovr-config": "0.0.0",
|
|
167
|
+
"@gelabs/ovr-offline": "0.0.0",
|
|
168
|
+
"@gelabs/ovr-auth": "0.0.0"
|
|
149
169
|
},
|
|
150
170
|
"scripts": {
|
|
151
171
|
"build": "tsup && node scripts/copy-assets.mjs",
|