@sudobility/government-components 1.0.9
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/census-form.d.ts +18 -0
- package/dist/census-form.d.ts.map +1 -0
- package/dist/grant-application.d.ts +18 -0
- package/dist/grant-application.d.ts.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.esm.js +345 -0
- package/dist/index.umd.js +6 -0
- package/dist/permit-application.d.ts +18 -0
- package/dist/permit-application.d.ts.map +1 -0
- package/dist/public-notice.d.ts +18 -0
- package/dist/public-notice.d.ts.map +1 -0
- package/package.json +55 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CensusForm Component
|
|
3
|
+
*
|
|
4
|
+
* Government component with full dark mode support.
|
|
5
|
+
*
|
|
6
|
+
* @component
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <CensusForm className="custom-class" />
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export interface CensusFormProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const CensusForm: ({ className, children, disabled, }: CensusFormProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=census-form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"census-form.d.ts","sourceRoot":"","sources":["../src/census-form.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,eAAe;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,GAAI,oCAIxB,eAAe,4CAiBjB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GrantApplication Component
|
|
3
|
+
*
|
|
4
|
+
* Non-profit component with full dark mode support.
|
|
5
|
+
*
|
|
6
|
+
* @component
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <GrantApplication className="custom-class" />
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export interface GrantApplicationProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const GrantApplication: ({ className, children, disabled, }: GrantApplicationProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=grant-application.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"grant-application.d.ts","sourceRoot":"","sources":["../src/grant-application.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,qBAAqB;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,gBAAgB,GAAI,oCAI9B,qBAAqB,4CAiBvB,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* government-components
|
|
3
|
+
*
|
|
4
|
+
* Specialized components for the government domain
|
|
5
|
+
*
|
|
6
|
+
* @package @sudobility/government-components
|
|
7
|
+
*/
|
|
8
|
+
export * from './census-form';
|
|
9
|
+
export * from './grant-application';
|
|
10
|
+
export * from './permit-application';
|
|
11
|
+
export * from './public-notice';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,345 @@
|
|
|
1
|
+
import re from "react";
|
|
2
|
+
import { cn as R } from "@sudobility/components";
|
|
3
|
+
var v = { exports: {} }, b = {};
|
|
4
|
+
var I;
|
|
5
|
+
function te() {
|
|
6
|
+
if (I) return b;
|
|
7
|
+
I = 1;
|
|
8
|
+
var n = Symbol.for("react.transitional.element"), s = Symbol.for("react.fragment");
|
|
9
|
+
function l(f, i, c) {
|
|
10
|
+
var d = null;
|
|
11
|
+
if (c !== void 0 && (d = "" + c), i.key !== void 0 && (d = "" + i.key), "key" in i) {
|
|
12
|
+
c = {};
|
|
13
|
+
for (var m in i)
|
|
14
|
+
m !== "key" && (c[m] = i[m]);
|
|
15
|
+
} else c = i;
|
|
16
|
+
return i = c.ref, {
|
|
17
|
+
$$typeof: n,
|
|
18
|
+
type: f,
|
|
19
|
+
key: d,
|
|
20
|
+
ref: i !== void 0 ? i : null,
|
|
21
|
+
props: c
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
return b.Fragment = s, b.jsx = l, b.jsxs = l, b;
|
|
25
|
+
}
|
|
26
|
+
var p = {};
|
|
27
|
+
var D;
|
|
28
|
+
function ae() {
|
|
29
|
+
return D || (D = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
30
|
+
function n(e) {
|
|
31
|
+
if (e == null) return null;
|
|
32
|
+
if (typeof e == "function")
|
|
33
|
+
return e.$$typeof === Q ? null : e.displayName || e.name || null;
|
|
34
|
+
if (typeof e == "string") return e;
|
|
35
|
+
switch (e) {
|
|
36
|
+
case k:
|
|
37
|
+
return "Fragment";
|
|
38
|
+
case q:
|
|
39
|
+
return "Profiler";
|
|
40
|
+
case G:
|
|
41
|
+
return "StrictMode";
|
|
42
|
+
case X:
|
|
43
|
+
return "Suspense";
|
|
44
|
+
case B:
|
|
45
|
+
return "SuspenseList";
|
|
46
|
+
case Z:
|
|
47
|
+
return "Activity";
|
|
48
|
+
}
|
|
49
|
+
if (typeof e == "object")
|
|
50
|
+
switch (typeof e.tag == "number" && console.error(
|
|
51
|
+
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
52
|
+
), e.$$typeof) {
|
|
53
|
+
case U:
|
|
54
|
+
return "Portal";
|
|
55
|
+
case V:
|
|
56
|
+
return e.displayName || "Context";
|
|
57
|
+
case J:
|
|
58
|
+
return (e._context.displayName || "Context") + ".Consumer";
|
|
59
|
+
case z:
|
|
60
|
+
var r = e.render;
|
|
61
|
+
return e = e.displayName, e || (e = r.displayName || r.name || "", e = e !== "" ? "ForwardRef(" + e + ")" : "ForwardRef"), e;
|
|
62
|
+
case H:
|
|
63
|
+
return r = e.displayName || null, r !== null ? r : n(e.type) || "Memo";
|
|
64
|
+
case T:
|
|
65
|
+
r = e._payload, e = e._init;
|
|
66
|
+
try {
|
|
67
|
+
return n(e(r));
|
|
68
|
+
} catch {
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
return null;
|
|
72
|
+
}
|
|
73
|
+
function s(e) {
|
|
74
|
+
return "" + e;
|
|
75
|
+
}
|
|
76
|
+
function l(e) {
|
|
77
|
+
try {
|
|
78
|
+
s(e);
|
|
79
|
+
var r = !1;
|
|
80
|
+
} catch {
|
|
81
|
+
r = !0;
|
|
82
|
+
}
|
|
83
|
+
if (r) {
|
|
84
|
+
r = console;
|
|
85
|
+
var t = r.error, a = typeof Symbol == "function" && Symbol.toStringTag && e[Symbol.toStringTag] || e.constructor.name || "Object";
|
|
86
|
+
return t.call(
|
|
87
|
+
r,
|
|
88
|
+
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
89
|
+
a
|
|
90
|
+
), s(e);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
function f(e) {
|
|
94
|
+
if (e === k) return "<>";
|
|
95
|
+
if (typeof e == "object" && e !== null && e.$$typeof === T)
|
|
96
|
+
return "<...>";
|
|
97
|
+
try {
|
|
98
|
+
var r = n(e);
|
|
99
|
+
return r ? "<" + r + ">" : "<...>";
|
|
100
|
+
} catch {
|
|
101
|
+
return "<...>";
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
function i() {
|
|
105
|
+
var e = y.A;
|
|
106
|
+
return e === null ? null : e.getOwner();
|
|
107
|
+
}
|
|
108
|
+
function c() {
|
|
109
|
+
return Error("react-stack-top-frame");
|
|
110
|
+
}
|
|
111
|
+
function d(e) {
|
|
112
|
+
if (j.call(e, "key")) {
|
|
113
|
+
var r = Object.getOwnPropertyDescriptor(e, "key").get;
|
|
114
|
+
if (r && r.isReactWarning) return !1;
|
|
115
|
+
}
|
|
116
|
+
return e.key !== void 0;
|
|
117
|
+
}
|
|
118
|
+
function m(e, r) {
|
|
119
|
+
function t() {
|
|
120
|
+
N || (N = !0, console.error(
|
|
121
|
+
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
122
|
+
r
|
|
123
|
+
));
|
|
124
|
+
}
|
|
125
|
+
t.isReactWarning = !0, Object.defineProperty(e, "key", {
|
|
126
|
+
get: t,
|
|
127
|
+
configurable: !0
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
function M() {
|
|
131
|
+
var e = n(this.type);
|
|
132
|
+
return C[e] || (C[e] = !0, console.error(
|
|
133
|
+
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
134
|
+
)), e = this.props.ref, e !== void 0 ? e : null;
|
|
135
|
+
}
|
|
136
|
+
function W(e, r, t, a, E, x) {
|
|
137
|
+
var o = t.ref;
|
|
138
|
+
return e = {
|
|
139
|
+
$$typeof: S,
|
|
140
|
+
type: e,
|
|
141
|
+
key: r,
|
|
142
|
+
props: t,
|
|
143
|
+
_owner: a
|
|
144
|
+
}, (o !== void 0 ? o : null) !== null ? Object.defineProperty(e, "ref", {
|
|
145
|
+
enumerable: !1,
|
|
146
|
+
get: M
|
|
147
|
+
}) : Object.defineProperty(e, "ref", { enumerable: !1, value: null }), e._store = {}, Object.defineProperty(e._store, "validated", {
|
|
148
|
+
configurable: !1,
|
|
149
|
+
enumerable: !1,
|
|
150
|
+
writable: !0,
|
|
151
|
+
value: 0
|
|
152
|
+
}), Object.defineProperty(e, "_debugInfo", {
|
|
153
|
+
configurable: !1,
|
|
154
|
+
enumerable: !1,
|
|
155
|
+
writable: !0,
|
|
156
|
+
value: null
|
|
157
|
+
}), Object.defineProperty(e, "_debugStack", {
|
|
158
|
+
configurable: !1,
|
|
159
|
+
enumerable: !1,
|
|
160
|
+
writable: !0,
|
|
161
|
+
value: E
|
|
162
|
+
}), Object.defineProperty(e, "_debugTask", {
|
|
163
|
+
configurable: !1,
|
|
164
|
+
enumerable: !1,
|
|
165
|
+
writable: !0,
|
|
166
|
+
value: x
|
|
167
|
+
}), Object.freeze && (Object.freeze(e.props), Object.freeze(e)), e;
|
|
168
|
+
}
|
|
169
|
+
function h(e, r, t, a, E, x) {
|
|
170
|
+
var o = r.children;
|
|
171
|
+
if (o !== void 0)
|
|
172
|
+
if (a)
|
|
173
|
+
if (K(o)) {
|
|
174
|
+
for (a = 0; a < o.length; a++)
|
|
175
|
+
P(o[a]);
|
|
176
|
+
Object.freeze && Object.freeze(o);
|
|
177
|
+
} else
|
|
178
|
+
console.error(
|
|
179
|
+
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
180
|
+
);
|
|
181
|
+
else P(o);
|
|
182
|
+
if (j.call(r, "key")) {
|
|
183
|
+
o = n(e);
|
|
184
|
+
var u = Object.keys(r).filter(function(ee) {
|
|
185
|
+
return ee !== "key";
|
|
186
|
+
});
|
|
187
|
+
a = 0 < u.length ? "{key: someKey, " + u.join(": ..., ") + ": ...}" : "{key: someKey}", $[o + a] || (u = 0 < u.length ? "{" + u.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
188
|
+
`A props object containing a "key" prop is being spread into JSX:
|
|
189
|
+
let props = %s;
|
|
190
|
+
<%s {...props} />
|
|
191
|
+
React keys must be passed directly to JSX without using spread:
|
|
192
|
+
let props = %s;
|
|
193
|
+
<%s key={someKey} {...props} />`,
|
|
194
|
+
a,
|
|
195
|
+
o,
|
|
196
|
+
u,
|
|
197
|
+
o
|
|
198
|
+
), $[o + a] = !0);
|
|
199
|
+
}
|
|
200
|
+
if (o = null, t !== void 0 && (l(t), o = "" + t), d(r) && (l(r.key), o = "" + r.key), "key" in r) {
|
|
201
|
+
t = {};
|
|
202
|
+
for (var A in r)
|
|
203
|
+
A !== "key" && (t[A] = r[A]);
|
|
204
|
+
} else t = r;
|
|
205
|
+
return o && m(
|
|
206
|
+
t,
|
|
207
|
+
typeof e == "function" ? e.displayName || e.name || "Unknown" : e
|
|
208
|
+
), W(
|
|
209
|
+
e,
|
|
210
|
+
o,
|
|
211
|
+
t,
|
|
212
|
+
i(),
|
|
213
|
+
E,
|
|
214
|
+
x
|
|
215
|
+
);
|
|
216
|
+
}
|
|
217
|
+
function P(e) {
|
|
218
|
+
O(e) ? e._store && (e._store.validated = 1) : typeof e == "object" && e !== null && e.$$typeof === T && (e._payload.status === "fulfilled" ? O(e._payload.value) && e._payload.value._store && (e._payload.value._store.validated = 1) : e._store && (e._store.validated = 1));
|
|
219
|
+
}
|
|
220
|
+
function O(e) {
|
|
221
|
+
return typeof e == "object" && e !== null && e.$$typeof === S;
|
|
222
|
+
}
|
|
223
|
+
var _ = re, S = Symbol.for("react.transitional.element"), U = Symbol.for("react.portal"), k = Symbol.for("react.fragment"), G = Symbol.for("react.strict_mode"), q = Symbol.for("react.profiler"), J = Symbol.for("react.consumer"), V = Symbol.for("react.context"), z = Symbol.for("react.forward_ref"), X = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), H = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), Z = Symbol.for("react.activity"), Q = Symbol.for("react.client.reference"), y = _.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, j = Object.prototype.hasOwnProperty, K = Array.isArray, w = console.createTask ? console.createTask : function() {
|
|
224
|
+
return null;
|
|
225
|
+
};
|
|
226
|
+
_ = {
|
|
227
|
+
react_stack_bottom_frame: function(e) {
|
|
228
|
+
return e();
|
|
229
|
+
}
|
|
230
|
+
};
|
|
231
|
+
var N, C = {}, Y = _.react_stack_bottom_frame.bind(
|
|
232
|
+
_,
|
|
233
|
+
c
|
|
234
|
+
)(), F = w(f(c)), $ = {};
|
|
235
|
+
p.Fragment = k, p.jsx = function(e, r, t) {
|
|
236
|
+
var a = 1e4 > y.recentlyCreatedOwnerStacks++;
|
|
237
|
+
return h(
|
|
238
|
+
e,
|
|
239
|
+
r,
|
|
240
|
+
t,
|
|
241
|
+
!1,
|
|
242
|
+
a ? Error("react-stack-top-frame") : Y,
|
|
243
|
+
a ? w(f(e)) : F
|
|
244
|
+
);
|
|
245
|
+
}, p.jsxs = function(e, r, t) {
|
|
246
|
+
var a = 1e4 > y.recentlyCreatedOwnerStacks++;
|
|
247
|
+
return h(
|
|
248
|
+
e,
|
|
249
|
+
r,
|
|
250
|
+
t,
|
|
251
|
+
!0,
|
|
252
|
+
a ? Error("react-stack-top-frame") : Y,
|
|
253
|
+
a ? w(f(e)) : F
|
|
254
|
+
);
|
|
255
|
+
};
|
|
256
|
+
})()), p;
|
|
257
|
+
}
|
|
258
|
+
var L;
|
|
259
|
+
function oe() {
|
|
260
|
+
return L || (L = 1, process.env.NODE_ENV === "production" ? v.exports = te() : v.exports = ae()), v.exports;
|
|
261
|
+
}
|
|
262
|
+
var g = oe();
|
|
263
|
+
const se = ({
|
|
264
|
+
className: n,
|
|
265
|
+
children: s,
|
|
266
|
+
disabled: l
|
|
267
|
+
}) => /* @__PURE__ */ g.jsx(
|
|
268
|
+
"div",
|
|
269
|
+
{
|
|
270
|
+
className: R(
|
|
271
|
+
"p-4 rounded-lg border transition-colors",
|
|
272
|
+
"bg-white dark:bg-gray-900",
|
|
273
|
+
"border-gray-200 dark:border-gray-700",
|
|
274
|
+
"text-gray-900 dark:text-white",
|
|
275
|
+
l && "opacity-50 cursor-not-allowed",
|
|
276
|
+
n
|
|
277
|
+
),
|
|
278
|
+
role: "region",
|
|
279
|
+
"aria-label": "CensusForm",
|
|
280
|
+
children: s || "CensusForm Component"
|
|
281
|
+
}
|
|
282
|
+
), ie = ({
|
|
283
|
+
className: n,
|
|
284
|
+
children: s,
|
|
285
|
+
disabled: l
|
|
286
|
+
}) => /* @__PURE__ */ g.jsx(
|
|
287
|
+
"div",
|
|
288
|
+
{
|
|
289
|
+
className: R(
|
|
290
|
+
"p-4 rounded-lg border transition-colors",
|
|
291
|
+
"bg-white dark:bg-gray-900",
|
|
292
|
+
"border-gray-200 dark:border-gray-700",
|
|
293
|
+
"text-gray-900 dark:text-white",
|
|
294
|
+
l && "opacity-50 cursor-not-allowed",
|
|
295
|
+
n
|
|
296
|
+
),
|
|
297
|
+
role: "region",
|
|
298
|
+
"aria-label": "GrantApplication",
|
|
299
|
+
children: s || "GrantApplication Component"
|
|
300
|
+
}
|
|
301
|
+
), ce = ({
|
|
302
|
+
className: n,
|
|
303
|
+
children: s,
|
|
304
|
+
disabled: l
|
|
305
|
+
}) => /* @__PURE__ */ g.jsx(
|
|
306
|
+
"div",
|
|
307
|
+
{
|
|
308
|
+
className: R(
|
|
309
|
+
"p-4 rounded-lg border transition-colors",
|
|
310
|
+
"bg-white dark:bg-gray-900",
|
|
311
|
+
"border-gray-200 dark:border-gray-700",
|
|
312
|
+
"text-gray-900 dark:text-white",
|
|
313
|
+
l && "opacity-50 cursor-not-allowed",
|
|
314
|
+
n
|
|
315
|
+
),
|
|
316
|
+
role: "region",
|
|
317
|
+
"aria-label": "PermitApplication",
|
|
318
|
+
children: s || "PermitApplication Component"
|
|
319
|
+
}
|
|
320
|
+
), ue = ({
|
|
321
|
+
className: n,
|
|
322
|
+
children: s,
|
|
323
|
+
disabled: l
|
|
324
|
+
}) => /* @__PURE__ */ g.jsx(
|
|
325
|
+
"div",
|
|
326
|
+
{
|
|
327
|
+
className: R(
|
|
328
|
+
"p-4 rounded-lg border transition-colors",
|
|
329
|
+
"bg-white dark:bg-gray-900",
|
|
330
|
+
"border-gray-200 dark:border-gray-700",
|
|
331
|
+
"text-gray-900 dark:text-white",
|
|
332
|
+
l && "opacity-50 cursor-not-allowed",
|
|
333
|
+
n
|
|
334
|
+
),
|
|
335
|
+
role: "region",
|
|
336
|
+
"aria-label": "PublicNotice",
|
|
337
|
+
children: s || "PublicNotice Component"
|
|
338
|
+
}
|
|
339
|
+
);
|
|
340
|
+
export {
|
|
341
|
+
se as CensusForm,
|
|
342
|
+
ie as GrantApplication,
|
|
343
|
+
ce as PermitApplication,
|
|
344
|
+
ue as PublicNotice
|
|
345
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
(function(s,d){typeof exports=="object"&&typeof module<"u"?d(exports,require("react"),require("@sudobility/components")):typeof define=="function"&&define.amd?define(["exports","react","@sudobility/components"],d):(s=typeof globalThis<"u"?globalThis:s||self,d(s.Components={},s.React,s.components))})(this,(function(s,d,v){"use strict";var R={exports:{}},m={};var O;function G(){if(O)return m;O=1;var a=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function i(p,c,u){var _=null;if(u!==void 0&&(_=""+u),c.key!==void 0&&(_=""+c.key),"key"in c){u={};for(var E in c)E!=="key"&&(u[E]=c[E])}else u=c;return c=u.ref,{$$typeof:a,type:p,key:_,ref:c!==void 0?c:null,props:u}}return m.Fragment=l,m.jsx=i,m.jsxs=i,m}var b={};var S;function U(){return S||(S=1,process.env.NODE_ENV!=="production"&&(function(){function a(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===le?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case k:return"Fragment";case K:return"Profiler";case Q:return"StrictMode";case ne:return"Suspense";case oe:return"SuspenseList";case ie:return"Activity"}if(typeof e=="object")switch(typeof e.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case Z:return"Portal";case re:return e.displayName||"Context";case ee:return(e._context.displayName||"Context")+".Consumer";case te:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ae:return r=e.displayName||null,r!==null?r:a(e.type)||"Memo";case w:r=e._payload,e=e._init;try{return a(e(r))}catch{}}return null}function l(e){return""+e}function i(e){try{l(e);var r=!1}catch{r=!0}if(r){r=console;var t=r.error,n=typeof Symbol=="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object";return t.call(r,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",n),l(e)}}function p(e){if(e===k)return"<>";if(typeof e=="object"&&e!==null&&e.$$typeof===w)return"<...>";try{var r=a(e);return r?"<"+r+">":"<...>"}catch{return"<...>"}}function c(){var e=A.A;return e===null?null:e.getOwner()}function u(){return Error("react-stack-top-frame")}function _(e){if(I.call(e,"key")){var r=Object.getOwnPropertyDescriptor(e,"key").get;if(r&&r.isReactWarning)return!1}return e.key!==void 0}function E(e,r){function t(){$||($=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",r))}t.isReactWarning=!0,Object.defineProperty(e,"key",{get:t,configurable:!0})}function B(){var e=a(this.type);return D[e]||(D[e]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),e=this.props.ref,e!==void 0?e:null}function H(e,r,t,n,T,P){var o=t.ref;return e={$$typeof:F,type:e,key:r,props:t,_owner:n},(o!==void 0?o:null)!==null?Object.defineProperty(e,"ref",{enumerable:!1,get:B}):Object.defineProperty(e,"ref",{enumerable:!1,value:null}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:T}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:P}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function N(e,r,t,n,T,P){var o=r.children;if(o!==void 0)if(n)if(se(o)){for(n=0;n<o.length;n++)C(o[n]);Object.freeze&&Object.freeze(o)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else C(o);if(I.call(r,"key")){o=a(e);var f=Object.keys(r).filter(function(ce){return ce!=="key"});n=0<f.length?"{key: someKey, "+f.join(": ..., ")+": ...}":"{key: someKey}",W[o+n]||(f=0<f.length?"{"+f.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
|
|
2
|
+
let props = %s;
|
|
3
|
+
<%s {...props} />
|
|
4
|
+
React keys must be passed directly to JSX without using spread:
|
|
5
|
+
let props = %s;
|
|
6
|
+
<%s key={someKey} {...props} />`,n,o,f,o),W[o+n]=!0)}if(o=null,t!==void 0&&(i(t),o=""+t),_(r)&&(i(r.key),o=""+r.key),"key"in r){t={};for(var x in r)x!=="key"&&(t[x]=r[x])}else t=r;return o&&E(t,typeof e=="function"?e.displayName||e.name||"Unknown":e),H(e,o,t,c(),T,P)}function C(e){Y(e)?e._store&&(e._store.validated=1):typeof e=="object"&&e!==null&&e.$$typeof===w&&(e._payload.status==="fulfilled"?Y(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function Y(e){return typeof e=="object"&&e!==null&&e.$$typeof===F}var y=d,F=Symbol.for("react.transitional.element"),Z=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),Q=Symbol.for("react.strict_mode"),K=Symbol.for("react.profiler"),ee=Symbol.for("react.consumer"),re=Symbol.for("react.context"),te=Symbol.for("react.forward_ref"),ne=Symbol.for("react.suspense"),oe=Symbol.for("react.suspense_list"),ae=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),ie=Symbol.for("react.activity"),le=Symbol.for("react.client.reference"),A=y.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,I=Object.prototype.hasOwnProperty,se=Array.isArray,h=console.createTask?console.createTask:function(){return null};y={react_stack_bottom_frame:function(e){return e()}};var $,D={},M=y.react_stack_bottom_frame.bind(y,u)(),L=h(p(u)),W={};b.Fragment=k,b.jsx=function(e,r,t){var n=1e4>A.recentlyCreatedOwnerStacks++;return N(e,r,t,!1,n?Error("react-stack-top-frame"):M,n?h(p(e)):L)},b.jsxs=function(e,r,t){var n=1e4>A.recentlyCreatedOwnerStacks++;return N(e,r,t,!0,n?Error("react-stack-top-frame"):M,n?h(p(e)):L)}})()),b}var j;function q(){return j||(j=1,process.env.NODE_ENV==="production"?R.exports=G():R.exports=U()),R.exports}var g=q();const J=({className:a,children:l,disabled:i})=>g.jsx("div",{className:v.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",i&&"opacity-50 cursor-not-allowed",a),role:"region","aria-label":"CensusForm",children:l||"CensusForm Component"}),V=({className:a,children:l,disabled:i})=>g.jsx("div",{className:v.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",i&&"opacity-50 cursor-not-allowed",a),role:"region","aria-label":"GrantApplication",children:l||"GrantApplication Component"}),z=({className:a,children:l,disabled:i})=>g.jsx("div",{className:v.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",i&&"opacity-50 cursor-not-allowed",a),role:"region","aria-label":"PermitApplication",children:l||"PermitApplication Component"}),X=({className:a,children:l,disabled:i})=>g.jsx("div",{className:v.cn("p-4 rounded-lg border transition-colors","bg-white dark:bg-gray-900","border-gray-200 dark:border-gray-700","text-gray-900 dark:text-white",i&&"opacity-50 cursor-not-allowed",a),role:"region","aria-label":"PublicNotice",children:l||"PublicNotice Component"});s.CensusForm=J,s.GrantApplication=V,s.PermitApplication=z,s.PublicNotice=X,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PermitApplication Component
|
|
3
|
+
*
|
|
4
|
+
* Government component with full dark mode support.
|
|
5
|
+
*
|
|
6
|
+
* @component
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <PermitApplication className="custom-class" />
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export interface PermitApplicationProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const PermitApplication: ({ className, children, disabled, }: PermitApplicationProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=permit-application.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"permit-application.d.ts","sourceRoot":"","sources":["../src/permit-application.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,sBAAsB;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,iBAAiB,GAAI,oCAI/B,sBAAsB,4CAiBxB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* PublicNotice Component
|
|
3
|
+
*
|
|
4
|
+
* Civic component with full dark mode support.
|
|
5
|
+
*
|
|
6
|
+
* @component
|
|
7
|
+
* @example
|
|
8
|
+
* ```tsx
|
|
9
|
+
* <PublicNotice className="custom-class" />
|
|
10
|
+
* ```
|
|
11
|
+
*/
|
|
12
|
+
export interface PublicNoticeProps {
|
|
13
|
+
className?: string;
|
|
14
|
+
children?: React.ReactNode;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const PublicNotice: ({ className, children, disabled, }: PublicNoticeProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
//# sourceMappingURL=public-notice.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-notice.d.ts","sourceRoot":"","sources":["../src/public-notice.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,GAAI,oCAI1B,iBAAiB,4CAiBnB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sudobility/government-components",
|
|
3
|
+
"version": "1.0.9",
|
|
4
|
+
"description": "government UI components for React",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.umd.js",
|
|
7
|
+
"module": "dist/index.esm.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"import": "./dist/index.esm.js",
|
|
13
|
+
"require": "./dist/index.umd.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist",
|
|
18
|
+
"README.md"
|
|
19
|
+
],
|
|
20
|
+
"scripts": {
|
|
21
|
+
"build": "tsc && vite build",
|
|
22
|
+
"dev": "vite build --watch",
|
|
23
|
+
"type-check": "tsc --noEmit"
|
|
24
|
+
},
|
|
25
|
+
"keywords": [
|
|
26
|
+
"react",
|
|
27
|
+
"components",
|
|
28
|
+
"government",
|
|
29
|
+
"typescript"
|
|
30
|
+
],
|
|
31
|
+
"author": "John Q Huang",
|
|
32
|
+
"license": "MIT",
|
|
33
|
+
"peerDependencies": {
|
|
34
|
+
"@sudobility/components": "^3.0.0",
|
|
35
|
+
"@sudobility/design": "^1.1.3",
|
|
36
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
37
|
+
"react-dom": "^18.0.0 || ^19.0.0"
|
|
38
|
+
},
|
|
39
|
+
"devDependencies": {
|
|
40
|
+
"@sudobility/components": "^3.0.0",
|
|
41
|
+
"@sudobility/design": "^1.1.3",
|
|
42
|
+
"@types/node": "^24.7.1",
|
|
43
|
+
"@types/react": "^19.2.2",
|
|
44
|
+
"@types/react-dom": "^19.2.2",
|
|
45
|
+
"@vitejs/plugin-react": "^5.1.0",
|
|
46
|
+
"class-variance-authority": "^0.7.1",
|
|
47
|
+
"clsx": "^2.1.1",
|
|
48
|
+
"react": "^19.2.0",
|
|
49
|
+
"react-dom": "^19.2.0",
|
|
50
|
+
"tailwind-merge": "^3.3.1",
|
|
51
|
+
"typescript": "^5.9.3",
|
|
52
|
+
"vite": "^7.1.12",
|
|
53
|
+
"vite-plugin-dts": "^4.5.4"
|
|
54
|
+
}
|
|
55
|
+
}
|