@rexezuge/web 0.0.0-stage → 1.0.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.
Files changed (67) hide show
  1. package/LICENSE +21 -0
  2. package/dist/Badge.d.ts +42 -0
  3. package/dist/Badge.d.ts.map +1 -0
  4. package/dist/Badge.js +25 -0
  5. package/dist/Badge.js.map +1 -0
  6. package/dist/Button.d.ts +69 -0
  7. package/dist/Button.d.ts.map +1 -0
  8. package/dist/Button.js +39 -0
  9. package/dist/Button.js.map +1 -0
  10. package/dist/Card.d.ts +42 -0
  11. package/dist/Card.d.ts.map +1 -0
  12. package/dist/Card.js +42 -0
  13. package/dist/Card.js.map +1 -0
  14. package/dist/FocusInput.d.ts +32 -0
  15. package/dist/FocusInput.d.ts.map +1 -0
  16. package/dist/FocusInput.js +19 -0
  17. package/dist/FocusInput.js.map +1 -0
  18. package/dist/Input.d.ts +52 -0
  19. package/dist/Input.d.ts.map +1 -0
  20. package/dist/Input.js +49 -0
  21. package/dist/Input.js.map +1 -0
  22. package/dist/LoadingButton.d.ts +46 -0
  23. package/dist/LoadingButton.d.ts.map +1 -0
  24. package/dist/LoadingButton.js +30 -0
  25. package/dist/LoadingButton.js.map +1 -0
  26. package/dist/Pagination.d.ts +63 -0
  27. package/dist/Pagination.d.ts.map +1 -0
  28. package/dist/Pagination.js +75 -0
  29. package/dist/Pagination.js.map +1 -0
  30. package/dist/Spinner.d.ts +31 -0
  31. package/dist/Spinner.d.ts.map +1 -0
  32. package/dist/Spinner.js +14 -0
  33. package/dist/Spinner.js.map +1 -0
  34. package/dist/api.d.ts +132 -0
  35. package/dist/api.d.ts.map +1 -0
  36. package/dist/api.js +258 -0
  37. package/dist/api.js.map +1 -0
  38. package/dist/constants.d.ts +49 -0
  39. package/dist/constants.d.ts.map +1 -0
  40. package/dist/constants.js +49 -0
  41. package/dist/constants.js.map +1 -0
  42. package/dist/index.d.ts +62 -0
  43. package/dist/index.d.ts.map +1 -0
  44. package/dist/index.js +49 -0
  45. package/dist/index.js.map +1 -0
  46. package/dist/theme.d.ts +79 -0
  47. package/dist/theme.d.ts.map +1 -0
  48. package/dist/theme.js +134 -0
  49. package/dist/theme.js.map +1 -0
  50. package/dist/useCurrentUser.d.ts +67 -0
  51. package/dist/useCurrentUser.d.ts.map +1 -0
  52. package/dist/useCurrentUser.js +49 -0
  53. package/dist/useCurrentUser.js.map +1 -0
  54. package/dist/useNotice.d.ts +60 -0
  55. package/dist/useNotice.d.ts.map +1 -0
  56. package/dist/useNotice.js +34 -0
  57. package/dist/useNotice.js.map +1 -0
  58. package/dist/useSpaLanguage.d.ts +81 -0
  59. package/dist/useSpaLanguage.d.ts.map +1 -0
  60. package/dist/useSpaLanguage.js +149 -0
  61. package/dist/useSpaLanguage.js.map +1 -0
  62. package/dist/utils.d.ts +53 -0
  63. package/dist/utils.d.ts.map +1 -0
  64. package/dist/utils.js +346 -0
  65. package/dist/utils.js.map +1 -0
  66. package/package.json +51 -3
  67. package/README.md +0 -3
package/dist/utils.js ADDED
@@ -0,0 +1,346 @@
1
+ /**
2
+ * Class-name composition.
3
+ *
4
+ * ## Provenance
5
+ *
6
+ * `lib/utils.ts` in **CalDAV-Bridge**, **Durable-DAV**, **Durable-DAV-Router**,
7
+ * **Edge-Git**, **Edge-Sonic** and **Mail-Otter** — six byte-identical copies of
8
+ *
9
+ * ```ts
10
+ * export function cn(...inputs: ClassValue[]) {
11
+ * return twMerge(clsx(inputs));
12
+ * }
13
+ * ```
14
+ *
15
+ * The kit cannot import `clsx` or `tailwind-merge` (this package declares no
16
+ * dependency on either, and the consumers' own copies stay theirs), so the same
17
+ * contract is implemented here in-dependency-free form:
18
+ *
19
+ * - **clsx semantics** — strings, numbers, arrays and `{ [class]: active }`
20
+ * dictionaries are flattened, and falsy entries are dropped.
21
+ * - **tailwind-merge semantics, for a documented subset** — when a later class
22
+ * belongs to the same utility family as an earlier one, the earlier one is
23
+ * dropped, so `<Button className="px-6">` really does override the base
24
+ * `px-4` instead of shipping both and letting stylesheet order decide.
25
+ *
26
+ * The merged families are the ones whose value is a length or a count —
27
+ * spacing, sizing, border width, radius, transitions — plus the single-word
28
+ * utilities (position, display, flex direction, justification, alignment, text
29
+ * alignment, font weight). Families whose suffix is *not* a value
30
+ * (`text-red-500`, `bg-[var(--color-accent)]`, `border-white`) are left in
31
+ * source order on purpose: telling `text-sm` from `text-red-500` takes
32
+ * tailwind-merge's full class table, and guessing wrong would silently drop a
33
+ * colour. A consumer that needs the complete table can wrap this one:
34
+ * `const cn = (...values: ClassValue[]) => twMerge(kitCn(...values))`.
35
+ */
36
+ /**
37
+ * Utility prefixes whose remainder is a length/count, merged longest-first so
38
+ * `px-` is matched before `p-`.
39
+ */
40
+ const VALUE_UTILITY_PREFIXES = [
41
+ // Inset / spacing
42
+ 'inset-x',
43
+ 'inset-y',
44
+ 'inset',
45
+ 'scroll-mx',
46
+ 'scroll-my',
47
+ 'scroll-m',
48
+ 'scroll-px',
49
+ 'scroll-py',
50
+ 'scroll-p',
51
+ 'start',
52
+ 'end',
53
+ 'top',
54
+ 'right',
55
+ 'bottom',
56
+ 'left',
57
+ 'space-x',
58
+ 'space-y',
59
+ 'gap-x',
60
+ 'gap-y',
61
+ 'gap',
62
+ 'px',
63
+ 'py',
64
+ 'pt',
65
+ 'pr',
66
+ 'pb',
67
+ 'pl',
68
+ 'ps',
69
+ 'pe',
70
+ 'p',
71
+ 'mx',
72
+ 'my',
73
+ 'mt',
74
+ 'mr',
75
+ 'mb',
76
+ 'ml',
77
+ 'ms',
78
+ 'me',
79
+ 'm',
80
+ // Sizing
81
+ 'min-w',
82
+ 'min-h',
83
+ 'max-w',
84
+ 'max-h',
85
+ 'size',
86
+ 'w',
87
+ 'h',
88
+ // Radius
89
+ 'rounded-ss',
90
+ 'rounded-se',
91
+ 'rounded-ee',
92
+ 'rounded-es',
93
+ 'rounded-tl',
94
+ 'rounded-tr',
95
+ 'rounded-br',
96
+ 'rounded-bl',
97
+ 'rounded-s',
98
+ 'rounded-e',
99
+ 'rounded-t',
100
+ 'rounded-r',
101
+ 'rounded-b',
102
+ 'rounded-l',
103
+ 'rounded',
104
+ // Border width (a border *colour* never has a numeric suffix)
105
+ 'border-x',
106
+ 'border-y',
107
+ 'border-t',
108
+ 'border-r',
109
+ 'border-b',
110
+ 'border-l',
111
+ 'border-s',
112
+ 'border-e',
113
+ 'border',
114
+ // Ring / outline width, divide, translate/scale/rotate
115
+ 'ring-offset',
116
+ 'ring',
117
+ 'divide-x',
118
+ 'divide-y',
119
+ 'outline-offset',
120
+ 'translate-x',
121
+ 'translate-y',
122
+ 'scale',
123
+ 'rotate',
124
+ // Grid
125
+ 'col-span',
126
+ 'row-span',
127
+ 'grid-cols',
128
+ 'grid-rows',
129
+ // Flex box
130
+ 'basis',
131
+ 'grow',
132
+ 'shrink',
133
+ 'order',
134
+ 'z',
135
+ 'opacity',
136
+ 'leading',
137
+ 'tracking',
138
+ 'duration',
139
+ 'delay',
140
+ ];
141
+ /**
142
+ * Single-word utilities that have no value, grouped by the property they set.
143
+ * Only words that are unambiguously that property are listed — `font-medium`
144
+ * (weight) is here, `font-mono` (family) is not.
145
+ */
146
+ const SINGLETON_UTILITIES = {
147
+ // Position
148
+ static: 'position',
149
+ fixed: 'position',
150
+ absolute: 'position',
151
+ relative: 'position',
152
+ sticky: 'position',
153
+ // Display
154
+ block: 'display',
155
+ inline: 'display',
156
+ 'inline-block': 'display',
157
+ flex: 'display',
158
+ 'inline-flex': 'display',
159
+ grid: 'display',
160
+ 'inline-grid': 'display',
161
+ table: 'display',
162
+ hidden: 'display',
163
+ contents: 'display',
164
+ 'flow-root': 'display',
165
+ 'list-item': 'display',
166
+ // Flex direction / wrapping
167
+ 'flex-row': 'flex-direction',
168
+ 'flex-col': 'flex-direction',
169
+ 'flex-row-reverse': 'flex-direction',
170
+ 'flex-col-reverse': 'flex-direction',
171
+ 'flex-wrap': 'flex-wrap',
172
+ 'flex-wrap-reverse': 'flex-wrap',
173
+ 'flex-nowrap': 'flex-wrap',
174
+ // Justification / alignment
175
+ 'justify-normal': 'justify-content',
176
+ 'justify-start': 'justify-content',
177
+ 'justify-end': 'justify-content',
178
+ 'justify-center': 'justify-content',
179
+ 'justify-between': 'justify-content',
180
+ 'justify-around': 'justify-content',
181
+ 'justify-evenly': 'justify-content',
182
+ 'justify-stretch': 'justify-content',
183
+ 'items-start': 'align-items',
184
+ 'items-end': 'align-items',
185
+ 'items-center': 'align-items',
186
+ 'items-baseline': 'align-items',
187
+ 'items-stretch': 'align-items',
188
+ 'self-auto': 'align-self',
189
+ 'self-start': 'align-self',
190
+ 'self-end': 'align-self',
191
+ 'self-center': 'align-self',
192
+ 'self-stretch': 'align-self',
193
+ // Text alignment
194
+ 'text-left': 'text-align',
195
+ 'text-center': 'text-align',
196
+ 'text-right': 'text-align',
197
+ 'text-justify': 'text-align',
198
+ 'text-start': 'text-align',
199
+ 'text-end': 'text-align',
200
+ // Font weight (families are deliberately absent — see the comment above)
201
+ 'font-thin': 'font-weight',
202
+ 'font-extralight': 'font-weight',
203
+ 'font-light': 'font-weight',
204
+ 'font-normal': 'font-weight',
205
+ 'font-medium': 'font-weight',
206
+ 'font-semibold': 'font-weight',
207
+ 'font-bold': 'font-weight',
208
+ 'font-extrabold': 'font-weight',
209
+ 'font-black': 'font-weight',
210
+ // Visibility
211
+ visible: 'visibility',
212
+ invisible: 'visibility',
213
+ collapse: 'visibility',
214
+ };
215
+ /** A length/count-like remainder: `-2`, `1.5`, `[3px]`, `px`, `full`, `none`. */
216
+ const VALUE_SUFFIX = /^(-?(?:\d+\.?\d*|\[[^\]]*\]|px|full|none|auto|screen|min|max|fit))$/;
217
+ function isClassList(value) {
218
+ return Array.isArray(value);
219
+ }
220
+ /** Pushes the whitespace-separated classes of one string, dropping empties. */
221
+ function pushClasses(into, value) {
222
+ for (const className of value.split(/\s+/)) {
223
+ if (className !== '') {
224
+ into.push(className);
225
+ }
226
+ }
227
+ }
228
+ /** Flattens clsx-style inputs into the classes they contribute, in order. */
229
+ function flattenClasses(values, into) {
230
+ for (const value of values) {
231
+ if (value === null || value === undefined || value === false || value === '') {
232
+ continue;
233
+ }
234
+ if (typeof value === 'string') {
235
+ pushClasses(into, value);
236
+ continue;
237
+ }
238
+ if (typeof value === 'number') {
239
+ into.push(String(value));
240
+ continue;
241
+ }
242
+ if (isClassList(value)) {
243
+ flattenClasses(value, into);
244
+ continue;
245
+ }
246
+ for (const [className, active] of Object.entries(value)) {
247
+ if (active) {
248
+ // A dictionary key may itself carry several classes.
249
+ pushClasses(into, className);
250
+ }
251
+ }
252
+ }
253
+ }
254
+ /**
255
+ * Splits `hover:focus:px-2` into its variants and base, ignoring the colons
256
+ * that appear inside an arbitrary value such as `bg-[url(https://…)]`.
257
+ */
258
+ function splitVariants(className) {
259
+ let depth = 0;
260
+ let lastSeparator = -1;
261
+ for (let index = 0; index < className.length; index += 1) {
262
+ const character = className[index];
263
+ if (character === '[' || character === '(') {
264
+ depth += 1;
265
+ }
266
+ else if (character === ']' || character === ')') {
267
+ depth -= 1;
268
+ }
269
+ else if (character === ':' && depth === 0) {
270
+ lastSeparator = index;
271
+ }
272
+ }
273
+ if (lastSeparator === -1) {
274
+ return { variants: '', base: className };
275
+ }
276
+ return { variants: className.slice(0, lastSeparator), base: className.slice(lastSeparator + 1) };
277
+ }
278
+ /**
279
+ * The merge group a class belongs to, or `null` when it must be left alone.
280
+ *
281
+ * Two classes merge only when their group is equal, and the group carries the
282
+ * variant prefix — `sm:px-2` never overrides a bare `px-4`.
283
+ */
284
+ function groupKeyFor(className) {
285
+ const { variants, base } = splitVariants(className);
286
+ const singletonGroup = SINGLETON_UTILITIES[base];
287
+ if (singletonGroup !== undefined) {
288
+ return `${variants}|${singletonGroup}`;
289
+ }
290
+ for (const prefix of VALUE_UTILITY_PREFIXES) {
291
+ if (base === prefix) {
292
+ return `${variants}|${prefix}`;
293
+ }
294
+ if (!base.startsWith(`${prefix}-`)) {
295
+ continue;
296
+ }
297
+ // `important` and a trailing `!` are not values; neither is an unknown word,
298
+ // which is how `text-sm`/`border-white` escape the numeric families.
299
+ const suffix = base.slice(prefix.length + 1);
300
+ if (!VALUE_SUFFIX.test(suffix)) {
301
+ return null;
302
+ }
303
+ return `${variants}|${prefix}`;
304
+ }
305
+ return null;
306
+ }
307
+ /** Drops an exact duplicate, keeping its last occurrence. */
308
+ function dedupeClasses(classes) {
309
+ const lastIndex = new Map();
310
+ classes.forEach((className, index) => {
311
+ lastIndex.set(className, index);
312
+ });
313
+ return classes.filter((className, index) => lastIndex.get(className) === index);
314
+ }
315
+ /** Drops each class that a later member of its own group has replaced. */
316
+ function mergeGroups(classes) {
317
+ const merged = [];
318
+ const positionByGroup = new Map();
319
+ for (const className of classes) {
320
+ const group = groupKeyFor(className);
321
+ if (group !== null) {
322
+ const previous = positionByGroup.get(group);
323
+ if (previous !== undefined) {
324
+ merged[previous] = '';
325
+ }
326
+ positionByGroup.set(group, merged.length);
327
+ }
328
+ merged.push(className);
329
+ }
330
+ return merged.filter((className) => className !== '');
331
+ }
332
+ /**
333
+ * Joins class names, dropping falsy entries, exact duplicates, and superseded
334
+ * utilities.
335
+ *
336
+ * ```ts
337
+ * cn('px-4', undefined, ['py-2', { 'font-bold': isActive }], 'px-6'); // 'py-2 px-6'
338
+ * ```
339
+ */
340
+ function cn(...inputs) {
341
+ const flattened = [];
342
+ flattenClasses(inputs, flattened);
343
+ return mergeGroups(dedupeClasses(flattened)).join(' ');
344
+ }
345
+ export { cn };
346
+ //# sourceMappingURL=utils.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAUH;;;GAGG;AACH,MAAM,sBAAsB,GAAsB;IAChD,kBAAkB;IAClB,SAAS;IACT,SAAS;IACT,OAAO;IACP,WAAW;IACX,WAAW;IACX,UAAU;IACV,WAAW;IACX,WAAW;IACX,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EAA0E;AAC1E,SAAS,WAAW,CAAC,OAA0B;IAC7C,MAAM,MAAM,GAAa,EAAE,CAAC;IAC5B,MAAM,eAAe,GAAG,IAAI,GAAG,EAAkB,CAAC;IAClD,KAAK,MAAM,SAAS,IAAI,OAAO,EAAE,CAAC;QAChC,MAAM,KAAK,GAAG,WAAW,CAAC,SAAS,CAAC,CAAC;QACrC,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;YACnB,MAAM,QAAQ,GAAG,eAAe,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC5C,IAAI,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC3B,MAAM,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC;YACxB,CAAC;YACD,eAAe,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;QAC5C,CAAC;QACD,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,EAAE,CAAC,SAAS,KAAK,EAAE,CAAC,CAAC;AACxD,CAAC;AAED;;;;;;;GAOG;AACH,SAAS,EAAE,CAAC,GAAG,MAAoB;IACjC,MAAM,SAAS,GAAa,EAAE,CAAC;IAC/B,cAAc,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAClC,OAAO,WAAW,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzD,CAAC;AAED,OAAO,EAAE,EAAE,EAAE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,54 @@
1
1
  {
2
2
  "name": "@rexezuge/web",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "1.0.0",
4
+ "private": false,
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Rexezuge-CloudflareWorkers/SDK.git",
9
+ "directory": "packages/web"
10
+ },
11
+ "type": "module",
12
+ "main": "./dist/index.js",
13
+ "types": "./dist/index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./dist/index.d.ts",
17
+ "default": "./dist/index.js"
18
+ },
19
+ "./*": {
20
+ "types": "./dist/*.d.ts",
21
+ "default": "./dist/*.js"
22
+ }
23
+ },
24
+ "files": [
25
+ "dist"
26
+ ],
27
+ "dependencies": {
28
+ "@rexezuge/errors": "1.0.0",
29
+ "@rexezuge/shared": "1.0.0"
30
+ },
31
+ "peerDependencies": {
32
+ "react": "^19.3.0",
33
+ "react-dom": "^19.3.0"
34
+ },
35
+ "devDependencies": {
36
+ "@testing-library/jest-dom": "7.0.1",
37
+ "@testing-library/react": "16.3.3",
38
+ "@types/node": "26.6.4",
39
+ "@types/react": "19.3.0",
40
+ "@types/react-dom": "19.3.0",
41
+ "i18next": "26.4.2",
42
+ "jsdom": "30.1.1",
43
+ "react": "19.3.0",
44
+ "react-dom": "19.3.0",
45
+ "react-i18next": "17.0.15",
46
+ "typescript": "6.0.3",
47
+ "vitest": "4.1.11"
48
+ },
49
+ "scripts": {
50
+ "build": "tsc -p tsconfig.json",
51
+ "typecheck": "tsc -p tsconfig.test.json --noEmit",
52
+ "test": "vitest run"
53
+ }
6
54
  }
package/README.md DELETED
@@ -1,3 +0,0 @@
1
- # Temporary Holding Version
2
-
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.