@fldr/ui 0.3.0 → 0.3.1

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.
@@ -1 +1 @@
1
- 1795497057696
1
+ 1795497461765
@@ -224,8 +224,8 @@ export declare const ButtonPropsSchema: z.ZodObject<{
224
224
  }>>;
225
225
  size: z.ZodOptional<z.ZodEnum<{
226
226
  base: "base";
227
- xs: "xs";
228
227
  sm: "sm";
228
+ xs: "xs";
229
229
  lg: "lg";
230
230
  }>>;
231
231
  variant: z.ZodOptional<z.ZodEnum<{
@@ -675,8 +675,8 @@ export declare const CollapsiblePropsSchema: z.ZodObject<{
675
675
  export declare const ComboboxPropsSchema: z.ZodObject<{
676
676
  size: z.ZodOptional<z.ZodEnum<{
677
677
  base: "base";
678
- xs: "xs";
679
678
  sm: "sm";
679
+ xs: "xs";
680
680
  lg: "lg";
681
681
  }>>;
682
682
  inputSide: z.ZodOptional<z.ZodEnum<{
@@ -888,8 +888,8 @@ export declare const InputPropsSchema: z.ZodObject<{
888
888
  passwordManagerIgnore: z.ZodOptional<z.ZodBoolean>;
889
889
  size: z.ZodOptional<z.ZodEnum<{
890
890
  base: "base";
891
- xs: "xs";
892
891
  sm: "sm";
892
+ xs: "xs";
893
893
  lg: "lg";
894
894
  }>>;
895
895
  variant: z.ZodOptional<z.ZodEnum<{
@@ -900,8 +900,8 @@ export declare const InputPropsSchema: z.ZodObject<{
900
900
  export declare const InputAreaPropsSchema: z.ZodObject<{
901
901
  size: z.ZodOptional<z.ZodEnum<{
902
902
  base: "base";
903
- xs: "xs";
904
903
  sm: "sm";
904
+ xs: "xs";
905
905
  lg: "lg";
906
906
  }>>;
907
907
  variant: z.ZodOptional<z.ZodEnum<{
@@ -944,8 +944,8 @@ export declare const InputGroupPropsSchema: z.ZodObject<{
944
944
  title: z.ZodOptional<z.ZodString>;
945
945
  size: z.ZodOptional<z.ZodEnum<{
946
946
  base: "base";
947
- xs: "xs";
948
947
  sm: "sm";
948
+ xs: "xs";
949
949
  lg: "lg";
950
950
  }>>;
951
951
  disabled: z.ZodOptional<z.ZodBoolean>;
@@ -1145,8 +1145,8 @@ export declare const SelectPropsSchema: z.ZodObject<{
1145
1145
  }, z.core.$strip>]>]>>;
1146
1146
  size: z.ZodOptional<z.ZodEnum<{
1147
1147
  base: "base";
1148
- xs: "xs";
1149
1148
  sm: "sm";
1149
+ xs: "xs";
1150
1150
  lg: "lg";
1151
1151
  }>>;
1152
1152
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodObject<{
@@ -1196,8 +1196,8 @@ export declare const SensitiveInputPropsSchema: z.ZodObject<{
1196
1196
  value: z.ZodOptional<z.ZodString>;
1197
1197
  size: z.ZodOptional<z.ZodEnum<{
1198
1198
  base: "base";
1199
- xs: "xs";
1200
1199
  sm: "sm";
1200
+ xs: "xs";
1201
1201
  lg: "lg";
1202
1202
  }>>;
1203
1203
  variant: z.ZodOptional<z.ZodEnum<{
@@ -1410,8 +1410,8 @@ export declare const TextPropsSchema: z.ZodObject<{
1410
1410
  }>>;
1411
1411
  size: z.ZodOptional<z.ZodEnum<{
1412
1412
  base: "base";
1413
- xs: "xs";
1414
1413
  sm: "sm";
1414
+ xs: "xs";
1415
1415
  lg: "lg";
1416
1416
  }>>;
1417
1417
  bold: z.ZodOptional<z.ZodBoolean>;
@@ -1502,8 +1502,8 @@ export declare const ToolbarPropsSchema: z.ZodObject<{
1502
1502
  }, z.core.$strip>]>]>>;
1503
1503
  size: z.ZodOptional<z.ZodEnum<{
1504
1504
  base: "base";
1505
- xs: "xs";
1506
1505
  sm: "sm";
1506
+ xs: "xs";
1507
1507
  lg: "lg";
1508
1508
  }>>;
1509
1509
  }, z.core.$strip>;
@@ -1712,8 +1712,8 @@ export declare const ComponentPropsSchemas: {
1712
1712
  }>>;
1713
1713
  size: z.ZodOptional<z.ZodEnum<{
1714
1714
  base: "base";
1715
- xs: "xs";
1716
1715
  sm: "sm";
1716
+ xs: "xs";
1717
1717
  lg: "lg";
1718
1718
  }>>;
1719
1719
  variant: z.ZodOptional<z.ZodEnum<{
@@ -2163,8 +2163,8 @@ export declare const ComponentPropsSchemas: {
2163
2163
  readonly Combobox: z.ZodObject<{
2164
2164
  size: z.ZodOptional<z.ZodEnum<{
2165
2165
  base: "base";
2166
- xs: "xs";
2167
2166
  sm: "sm";
2167
+ xs: "xs";
2168
2168
  lg: "lg";
2169
2169
  }>>;
2170
2170
  inputSide: z.ZodOptional<z.ZodEnum<{
@@ -2376,8 +2376,8 @@ export declare const ComponentPropsSchemas: {
2376
2376
  passwordManagerIgnore: z.ZodOptional<z.ZodBoolean>;
2377
2377
  size: z.ZodOptional<z.ZodEnum<{
2378
2378
  base: "base";
2379
- xs: "xs";
2380
2379
  sm: "sm";
2380
+ xs: "xs";
2381
2381
  lg: "lg";
2382
2382
  }>>;
2383
2383
  variant: z.ZodOptional<z.ZodEnum<{
@@ -2388,8 +2388,8 @@ export declare const ComponentPropsSchemas: {
2388
2388
  readonly InputArea: z.ZodObject<{
2389
2389
  size: z.ZodOptional<z.ZodEnum<{
2390
2390
  base: "base";
2391
- xs: "xs";
2392
2391
  sm: "sm";
2392
+ xs: "xs";
2393
2393
  lg: "lg";
2394
2394
  }>>;
2395
2395
  variant: z.ZodOptional<z.ZodEnum<{
@@ -2432,8 +2432,8 @@ export declare const ComponentPropsSchemas: {
2432
2432
  title: z.ZodOptional<z.ZodString>;
2433
2433
  size: z.ZodOptional<z.ZodEnum<{
2434
2434
  base: "base";
2435
- xs: "xs";
2436
2435
  sm: "sm";
2436
+ xs: "xs";
2437
2437
  lg: "lg";
2438
2438
  }>>;
2439
2439
  disabled: z.ZodOptional<z.ZodBoolean>;
@@ -2633,8 +2633,8 @@ export declare const ComponentPropsSchemas: {
2633
2633
  }, z.core.$strip>]>]>>;
2634
2634
  size: z.ZodOptional<z.ZodEnum<{
2635
2635
  base: "base";
2636
- xs: "xs";
2637
2636
  sm: "sm";
2637
+ xs: "xs";
2638
2638
  lg: "lg";
2639
2639
  }>>;
2640
2640
  label: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull, z.ZodObject<{
@@ -2684,8 +2684,8 @@ export declare const ComponentPropsSchemas: {
2684
2684
  value: z.ZodOptional<z.ZodString>;
2685
2685
  size: z.ZodOptional<z.ZodEnum<{
2686
2686
  base: "base";
2687
- xs: "xs";
2688
2687
  sm: "sm";
2688
+ xs: "xs";
2689
2689
  lg: "lg";
2690
2690
  }>>;
2691
2691
  variant: z.ZodOptional<z.ZodEnum<{
@@ -2898,8 +2898,8 @@ export declare const ComponentPropsSchemas: {
2898
2898
  }>>;
2899
2899
  size: z.ZodOptional<z.ZodEnum<{
2900
2900
  base: "base";
2901
- xs: "xs";
2902
2901
  sm: "sm";
2902
+ xs: "xs";
2903
2903
  lg: "lg";
2904
2904
  }>>;
2905
2905
  bold: z.ZodOptional<z.ZodBoolean>;
@@ -2990,8 +2990,8 @@ export declare const ComponentPropsSchemas: {
2990
2990
  }, z.core.$strip>]>]>>;
2991
2991
  size: z.ZodOptional<z.ZodEnum<{
2992
2992
  base: "base";
2993
- xs: "xs";
2994
2993
  sm: "sm";
2994
+ xs: "xs";
2995
2995
  lg: "lg";
2996
2996
  }>>;
2997
2997
  }, z.core.$strip>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fldr/ui",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "private": false,
5
5
  "description": "fldr's design system: Cloudflare Kumo with a theme authoring API and PandaCSS preset",
6
6
  "keywords": [
@@ -9,6 +9,7 @@
9
9
  * pnpm build
10
10
  * pnpm publish:fldr 0.1.0 --dry-run
11
11
  * pnpm publish:fldr 0.1.0 [--otp=123456]
12
+ * pnpm publish:fldr patch # latest on npm + 0.0.1
12
13
  */
13
14
  import { spawnSync } from "node:child_process";
14
15
  import {
@@ -40,12 +41,13 @@ const TEXT_EXTENSIONS = new Set([
40
41
 
41
42
  const pkgDir = resolve(fileURLToPath(import.meta.url), "../..");
42
43
  const args = process.argv.slice(2);
43
- const version = args.find((arg) => !arg.startsWith("-"));
44
+ const requested = args.find((arg) => !arg.startsWith("-"));
45
+ const version = requested === "patch" ? await nextPatch() : requested;
44
46
  const dryRun = args.includes("--dry-run");
45
47
  const otp = args.find((arg) => arg.startsWith("--otp="));
46
48
 
47
49
  if (!version || !/^\d+\.\d+\.\d+(-[\w.]+)?$/.test(version)) {
48
- console.error("Usage: pnpm publish:fldr <version> [--dry-run]");
50
+ console.error("Usage: pnpm publish:fldr <version|patch> [--dry-run]");
49
51
  process.exit(1);
50
52
  }
51
53
  if (!existsSync(join(pkgDir, "dist/index.js"))) {
@@ -53,6 +55,14 @@ if (!existsSync(join(pkgDir, "dist/index.js"))) {
53
55
  process.exit(1);
54
56
  }
55
57
 
58
+ async function nextPatch(): Promise<string> {
59
+ const res = await fetch(`https://registry.npmjs.org/${NAME}/latest`);
60
+ if (!res.ok) throw new Error(`npm registry: ${res.status}`);
61
+ const { version: latest } = (await res.json()) as { version: string };
62
+ const [major, minor, patch] = latest.split("-")[0].split(".").map(Number);
63
+ return `${major}.${minor}.${patch + 1}`;
64
+ }
65
+
56
66
  const pkg = JSON.parse(readFileSync(join(pkgDir, "package.json"), "utf8"));
57
67
  const stage = mkdtempSync(join(tmpdir(), "fldr-ui-"));
58
68