@fldr/ui 0.3.1 → 0.3.2
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/CHANGELOG.md +28 -28
- package/THEMING.md +88 -0
- package/dist/.build-complete +1 -1
- package/dist/catalog.d.ts +1 -1
- package/dist/components/clipboard-text.d.ts +1 -1
- package/dist/components/code.d.ts +1 -1
- package/dist/components/code.js +1 -1
- package/dist/components/empty.d.ts +1 -1
- package/dist/components/input.d.ts +1 -1
- package/dist/components/toast.d.ts +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +1 -1
- package/dist/registry.d.ts +1 -1
- package/package.json +62 -1
- package/scripts/component-registry/index.ts +1 -1
- package/scripts/publish-fldr.ts +22 -104
- /package/dist/chunks/{code-hp2x28uiufmk3elz.js → code-jtbk2mo5hmdbk8bu.js} +0 -0
- /package/dist/{index-pjdgauIH.d.ts → index-B6JNUfG9.d.ts} +0 -0
- /package/dist/{index-ClS-eFxE.d.ts → index-B6Wo_iiN.d.ts} +0 -0
- /package/dist/{index-CReGk3Dc.d.ts → index-DHj_enN9.d.ts} +0 -0
- /package/dist/{index-CNL6VDYZ.d.ts → index-Dsbm8Gcm.d.ts} +0 -0
- /package/dist/{index-BD-gTiEv.d.ts → index-kSN0sS2W.d.ts} +0 -0
- /package/dist/{types-CdzJnnIl.d.ts → types-CBwdSmf-.d.ts} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @
|
|
1
|
+
# @cloudflare/kumo
|
|
2
2
|
|
|
3
3
|
## 2.19.0
|
|
4
4
|
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
- c2b2fc4: Add a `masked` option to `ClipboardText` for sensitive values that should be hidden initially and revealed on demand.
|
|
64
64
|
- 7d1c776: Refresh DatePicker's styling. Days are 32px squares in 36px columns with 8px between weeks and 14px text, and the previous and next buttons are borderless squares that match the days. Two-month views sit side by side, range bands are rounded at their ends and where weeks wrap, and month and year dropdowns (`captionLayout="dropdown"`) are styled.
|
|
65
65
|
|
|
66
|
-
DatePicker now uses Kumo tokens instead of hard-coded colors, so it follows the active theme, and `@
|
|
66
|
+
DatePicker now uses Kumo tokens instead of hard-coded colors, so it follows the active theme, and `@cloudflare/kumo/styles/standalone` now styles it too. Month-change animations respect `prefers-reduced-motion`.
|
|
67
67
|
|
|
68
68
|
The `.rdp-*` rules and `--rdp-*` variables in `kumo.css` are gone, apart from the month-change animations. If you customized DatePicker through them, use the `classNames` prop instead.
|
|
69
69
|
|
|
@@ -124,7 +124,7 @@
|
|
|
124
124
|
|
|
125
125
|
- 2c53422: Fix Autocomplete highlighted item background to use `bg-kumo-tint`, matching Combobox and Select.
|
|
126
126
|
- 09a9dae: Apply dropdown icon spacing and sizing to element icons while preserving their custom classes.
|
|
127
|
-
- df14b5d: Bump `@base-ui/react` to 1.9.0. Brings Base UI bug fixes across Menu, Popover, Select, Combobox, Drawer, Dialog, and more, plus the preview menu filtering primitives (`Menu.FilterProvider`, `Menu.Input`) via `@
|
|
127
|
+
- df14b5d: Bump `@base-ui/react` to 1.9.0. Brings Base UI bug fixes across Menu, Popover, Select, Combobox, Drawer, Dialog, and more, plus the preview menu filtering primitives (`Menu.FilterProvider`, `Menu.Input`) via `@cloudflare/kumo/primitives/menu`.
|
|
128
128
|
- cdb7e0f: Button and LinkButton: optically center text by lifting it slightly, and trim the leading padding when an icon precedes text so the icon side matches the trailing padding.
|
|
129
129
|
- dc7c513: Stop throwing on malformed URL hashes while syncing table-of-contents sections. Hashes that can't be percent-decoded are matched as-is, so ids containing a literal `%` still deep-link.
|
|
130
130
|
- f7d6829: Keep Popover arrows visible when content clips or scrolls by using a compatibility-safe opacity transition.
|
|
@@ -672,7 +672,7 @@
|
|
|
672
672
|
- Add `normalizeLanguage()` function that maps common language aliases (js, ts, sh, yml, py, md, gql) to their canonical SupportedLanguage names
|
|
673
673
|
- Normalize language aliases in `ShikiProvider` when preloading grammars, so passing `['js', 'ts']` works the same as `['javascript', 'typescript']`
|
|
674
674
|
- Normalize language aliases in `highlight()` hook at runtime, so code fences using `js` or `ts` highlight correctly without warnings
|
|
675
|
-
- Export `normalizeLanguage` from `@
|
|
675
|
+
- Export `normalizeLanguage` from `@cloudflare/kumo/code` for consumers who need to normalize aliases themselves
|
|
676
676
|
- Intentionally omit `mdx` alias since MDX has a distinct grammar that would lose JSX highlighting if mapped to `markdown`
|
|
677
677
|
|
|
678
678
|
## 2.2.1
|
|
@@ -698,7 +698,7 @@
|
|
|
698
698
|
- 228a9c4: Add `passwordManagerIgnore` to Input for suppressing password manager overlays on non-credential fields.
|
|
699
699
|
- da502ce: Add scroll fade to segmented tabs. When tabs overflow, gradient masks appear on the edges based on scroll position via scroll-driven animations (Chrome 115+, degrades gracefully). Scrollbar is hidden; the fade is the scroll affordance.
|
|
700
700
|
- 59b6590: Add `size="sm"` variant to Tabs component (h-6.5 / 26px, matching Input sm)
|
|
701
|
-
- 798c2da: Forward `toastManager` prop on `<Toasty>` so code outside the React tree (timers, query-cache listeners, module-load callbacks) can dispatch toasts via a manager created by `createKumoToastManager()`. Also surface `createKumoToastManager` on the top-level package export (previously only available via the deep `@
|
|
701
|
+
- 798c2da: Forward `toastManager` prop on `<Toasty>` so code outside the React tree (timers, query-cache listeners, module-load callbacks) can dispatch toasts via a manager created by `createKumoToastManager()`. Also surface `createKumoToastManager` on the top-level package export (previously only available via the deep `@cloudflare/kumo/components/toast` path).
|
|
702
702
|
|
|
703
703
|
### Patch Changes
|
|
704
704
|
|
|
@@ -1510,10 +1510,10 @@
|
|
|
1510
1510
|
### Minor Changes
|
|
1511
1511
|
|
|
1512
1512
|
- 5505610: Add Shiki-powered `CodeHighlighted` component for syntax highlighting
|
|
1513
|
-
- **New entry point**: `@
|
|
1513
|
+
- **New entry point**: `@cloudflare/kumo/code` - keeps Shiki out of main bundle
|
|
1514
1514
|
- **ShikiProvider**: Lazy-loads Shiki on first render, shares instance across all children
|
|
1515
1515
|
- **CodeHighlighted**: Syntax highlighting with line numbers, line highlighting, copy button
|
|
1516
|
-
- **Server utilities**: `@
|
|
1516
|
+
- **Server utilities**: `@cloudflare/kumo/code/server` for SSR/static highlighting
|
|
1517
1517
|
- **Themes**: Ships with `github-light` and `vesper` defaults, supports any Shiki theme
|
|
1518
1518
|
- **i18n**: Customizable labels via provider or per-component
|
|
1519
1519
|
- **CSS customization**: `--kumo-code-highlight-bg` variable for highlight color
|
|
@@ -1570,7 +1570,7 @@
|
|
|
1570
1570
|
- Fix dark mode: Make `<pre>` background transparent so container's `bg-kumo-base` handles theming and border-radius is respected
|
|
1571
1571
|
- Fix layout: Wrap Shiki output in overflow container to prevent line highlight negative margins from being clipped
|
|
1572
1572
|
- Fix width: Add `w-full` to container for proper full-width display
|
|
1573
|
-
- Fix SSR: Remove `"use client"` directive from `@
|
|
1573
|
+
- Fix SSR: Remove `"use client"` directive from `@cloudflare/kumo/code/server` entry point so server utilities work in RSC/SSR contexts
|
|
1574
1574
|
|
|
1575
1575
|
- 31ce577: fix(CommandPalette): add explicit text-base class to Item component for consistent 14px font size
|
|
1576
1576
|
- ee5a632: Fix Select to render description and error when hideLabel is true
|
|
@@ -1750,14 +1750,14 @@
|
|
|
1750
1750
|
### Patch Changes
|
|
1751
1751
|
|
|
1752
1752
|
- c71bd9b: Updated the MenuBar so its child buttons align with the container’s outer corners.
|
|
1753
|
-
- 46ecf42: Fix `kumo add` to consolidate imports from `@
|
|
1753
|
+
- 46ecf42: Fix `kumo add` to consolidate imports from `@cloudflare/kumo` into a single statement using inline `type` syntax.
|
|
1754
1754
|
|
|
1755
1755
|
Previously, running `kumo add DeleteResource` would produce non-conformant code with duplicate imports:
|
|
1756
1756
|
|
|
1757
1757
|
```typescript
|
|
1758
|
-
import { Dialog, DialogRoot } from "@
|
|
1759
|
-
import { Input } from "@
|
|
1760
|
-
import { Button } from "@
|
|
1758
|
+
import { Dialog, DialogRoot } from "@cloudflare/kumo";
|
|
1759
|
+
import { Input } from "@cloudflare/kumo";
|
|
1760
|
+
import { Button } from "@cloudflare/kumo";
|
|
1761
1761
|
```
|
|
1762
1762
|
|
|
1763
1763
|
Now it produces a single consolidated import:
|
|
@@ -1769,7 +1769,7 @@
|
|
|
1769
1769
|
Input,
|
|
1770
1770
|
Button,
|
|
1771
1771
|
type DialogProps,
|
|
1772
|
-
} from "@
|
|
1772
|
+
} from "@cloudflare/kumo";
|
|
1773
1773
|
```
|
|
1774
1774
|
|
|
1775
1775
|
This satisfies ESLint's `import/no-duplicates` rule with `prefer-inline: true`.
|
|
@@ -1868,14 +1868,14 @@
|
|
|
1868
1868
|
|
|
1869
1869
|
### Blocks Distribution via CLI
|
|
1870
1870
|
|
|
1871
|
-
Blocks (`PageHeader`, `ResourceListPage`) are no longer exported from `@
|
|
1871
|
+
Blocks (`PageHeader`, `ResourceListPage`) are no longer exported from `@cloudflare/kumo`. They must now be installed via the CLI:
|
|
1872
1872
|
|
|
1873
1873
|
```bash
|
|
1874
|
-
npx @
|
|
1875
|
-
npx @
|
|
1874
|
+
npx @cloudflare/kumo init # Initialize kumo.json
|
|
1875
|
+
npx @cloudflare/kumo add PageHeader
|
|
1876
1876
|
```
|
|
1877
1877
|
|
|
1878
|
-
Blocks are copied to your project for full customization with imports automatically transformed to `@
|
|
1878
|
+
Blocks are copied to your project for full customization with imports automatically transformed to `@cloudflare/kumo`.
|
|
1879
1879
|
|
|
1880
1880
|
### Checkbox API Changes
|
|
1881
1881
|
- **Ref type changed**: `HTMLInputElement` → `HTMLButtonElement`
|
|
@@ -1916,11 +1916,11 @@
|
|
|
1916
1916
|
|
|
1917
1917
|
```bash
|
|
1918
1918
|
# 1. Initialize configuration
|
|
1919
|
-
npx @
|
|
1919
|
+
npx @cloudflare/kumo init
|
|
1920
1920
|
|
|
1921
1921
|
# 2. Install blocks
|
|
1922
|
-
npx @
|
|
1923
|
-
npx @
|
|
1922
|
+
npx @cloudflare/kumo add PageHeader
|
|
1923
|
+
npx @cloudflare/kumo add ResourceListPage
|
|
1924
1924
|
|
|
1925
1925
|
# 3. Update imports to the local path shown after installation
|
|
1926
1926
|
```
|
|
@@ -1971,7 +1971,7 @@
|
|
|
1971
1971
|
- `kumo blocks` - List all available blocks for CLI installation
|
|
1972
1972
|
- `kumo add <block-name>` - Install a block to your project with transformed imports
|
|
1973
1973
|
|
|
1974
|
-
Blocks are copied to your project for full customization, with relative imports automatically converted to `@
|
|
1974
|
+
Blocks are copied to your project for full customization, with relative imports automatically converted to `@cloudflare/kumo`.
|
|
1975
1975
|
|
|
1976
1976
|
- 08c4426: Add lint rule to detect usage of deprecated props on Kumo components.
|
|
1977
1977
|
- New `kumo/no-deprecated-props` lint rule automatically detects deprecated props from `@deprecated` JSDoc tags
|
|
@@ -2037,7 +2037,7 @@
|
|
|
2037
2037
|
|
|
2038
2038
|
### Minor Changes
|
|
2039
2039
|
|
|
2040
|
-
- d04c91f: Ship component registry with @
|
|
2040
|
+
- d04c91f: Ship component registry with @cloudflare/kumo module
|
|
2041
2041
|
- 0e246bf: feat(popover): Add new Popover component
|
|
2042
2042
|
|
|
2043
2043
|
Adds a new Popover component based on Base UI's popover primitive. The Popover provides an accessible popup anchored to a trigger element, with support for:
|
|
@@ -2189,13 +2189,13 @@
|
|
|
2189
2189
|
pnpm install
|
|
2190
2190
|
|
|
2191
2191
|
# Regenerate primitive files with new package references
|
|
2192
|
-
pnpm --filter @
|
|
2192
|
+
pnpm --filter @cloudflare/kumo build:primitives
|
|
2193
2193
|
|
|
2194
2194
|
# Rebuild the package
|
|
2195
|
-
pnpm --filter @
|
|
2195
|
+
pnpm --filter @cloudflare/kumo build
|
|
2196
2196
|
|
|
2197
2197
|
# Run tests to verify everything works
|
|
2198
|
-
pnpm --filter @
|
|
2198
|
+
pnpm --filter @cloudflare/kumo test:run
|
|
2199
2199
|
```
|
|
2200
2200
|
|
|
2201
2201
|
## Technical Details
|
|
@@ -2276,11 +2276,11 @@
|
|
|
2276
2276
|
|
|
2277
2277
|
```tsx
|
|
2278
2278
|
// Barrel export (imports all primitives)
|
|
2279
|
-
import { Slider, Popover, Tooltip } from "@
|
|
2279
|
+
import { Slider, Popover, Tooltip } from "@cloudflare/kumo/primitives";
|
|
2280
2280
|
|
|
2281
2281
|
// Granular exports (tree-shakeable, recommended)
|
|
2282
|
-
import { Slider } from "@
|
|
2283
|
-
import { Popover } from "@
|
|
2282
|
+
import { Slider } from "@cloudflare/kumo/primitives/slider";
|
|
2283
|
+
import { Popover } from "@cloudflare/kumo/primitives/popover";
|
|
2284
2284
|
```
|
|
2285
2285
|
|
|
2286
2286
|
**Available primitives:** accordion, alert-dialog, autocomplete, avatar, button, checkbox, checkbox-group, collapsible, combobox, context-menu, dialog, direction-provider, field, fieldset, form, input, menu, menubar, meter, navigation-menu, number-field, popover, preview-card, progress, radio, radio-group, scroll-area, select, separator, slider, switch, tabs, toast, toggle, toggle-group, toolbar, tooltip.
|
package/THEMING.md
ADDED
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# Theming
|
|
2
|
+
|
|
3
|
+
A theme is a sparse set of token overrides on top of the base `kumo` theme. Anything you leave out inherits the base value, so a theme can start as just a brand color.
|
|
4
|
+
|
|
5
|
+
## 1. Define it
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
// acme-theme.ts
|
|
9
|
+
import { defineTheme } from "@fldr/ui/theming";
|
|
10
|
+
|
|
11
|
+
export const acme = defineTheme({
|
|
12
|
+
name: "acme", // → data-theme="acme"
|
|
13
|
+
color: {
|
|
14
|
+
"kumo-brand": { light: "#e11d48", dark: "#fb7185" },
|
|
15
|
+
"kumo-brand-hover": { light: "#be123c", dark: "#f43f5e" },
|
|
16
|
+
},
|
|
17
|
+
text: {
|
|
18
|
+
"kumo-brand": { light: "#be123c", dark: "#fda4af" },
|
|
19
|
+
},
|
|
20
|
+
typography: { base: "15px" },
|
|
21
|
+
});
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
Token names are typed. Unknown names fail typecheck and throw at generation time. List the tokens with `pnpm codegen:themes --list`, or see the base values in [`scripts/theme-generator/config.ts`](scripts/theme-generator/config.ts).
|
|
25
|
+
|
|
26
|
+
- `color`: surfaces, borders, rings, fills and status colors (`bg-kumo-*`, `ring-kumo-*`, …)
|
|
27
|
+
- `text`: text colors (`text-kumo-*`)
|
|
28
|
+
- `typography`: font sizes and line heights, the same in both modes
|
|
29
|
+
|
|
30
|
+
## 2. Generate the CSS
|
|
31
|
+
|
|
32
|
+
```sh
|
|
33
|
+
npx kumo theme ./acme-theme.ts -o src/acme-theme.css
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
Or from your own build script: `generateThemeCSS(acme)` returns the same string.
|
|
37
|
+
|
|
38
|
+
## 3. Use it
|
|
39
|
+
|
|
40
|
+
Load the CSS after Kumo's styles and set the theme on `<html>` or any subtree:
|
|
41
|
+
|
|
42
|
+
```html
|
|
43
|
+
<html data-theme="acme" data-mode="dark"></html>
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
`data-mode` (`light` or `dark`) works the same as with the base theme, and themes can be nested.
|
|
47
|
+
|
|
48
|
+
## Built-in themes
|
|
49
|
+
|
|
50
|
+
`src/themes/` holds the themes we ship as prebuilt CSS, all in `@fldr/ui/styles/theme-fldr.css`, which the standalone and Tailwind builds already include:
|
|
51
|
+
|
|
52
|
+
| `data-theme` | Accent |
|
|
53
|
+
| ------------- | ------------------- |
|
|
54
|
+
| `fldr` | Kumo blue (default) |
|
|
55
|
+
| `fldr-violet` | Violet |
|
|
56
|
+
| `fldr-green` | Green |
|
|
57
|
+
| `fldr-orange` | Orange |
|
|
58
|
+
| `fldr-rose` | Rose |
|
|
59
|
+
| `fldr-ink` | Graphite, no hue |
|
|
60
|
+
|
|
61
|
+
To add one, define it in `src/themes/`, add it to `BUILT_IN_THEMES` in `src/themes/index.ts`, then run `pnpm codegen:themes`.
|
|
62
|
+
|
|
63
|
+
## Variants
|
|
64
|
+
|
|
65
|
+
`extendTheme(base, theme)` builds a theme on top of another one, so a variant lists only what it changes:
|
|
66
|
+
|
|
67
|
+
```ts
|
|
68
|
+
import { extendTheme, fldrTheme } from "@fldr/ui/theming";
|
|
69
|
+
|
|
70
|
+
export const teal = extendTheme(fldrTheme, {
|
|
71
|
+
name: "fldr-teal",
|
|
72
|
+
color: { "kumo-brand": { light: "#0f766e", dark: "#14b8a6" } },
|
|
73
|
+
});
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Density
|
|
77
|
+
|
|
78
|
+
Density is separate from the color theme, so any theme can be compact:
|
|
79
|
+
|
|
80
|
+
```html
|
|
81
|
+
<html data-theme="fldr-green" data-density="compact">
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
`compact` ships in `theme-fldr.css`. It shrinks the spacing unit from `0.25rem` to `0.22rem` and body text from 14px to 13px. Every Kumo size is a multiple of `--spacing`, so controls, gaps and padding all tighten together. Define your own with `defineDensity({ name, spacing, typography })` and `generateDensityCSS()`.
|
|
85
|
+
|
|
86
|
+
## PandaCSS
|
|
87
|
+
|
|
88
|
+
`@fldr/ui/panda` exports `kumoPreset`, which maps every Kumo token to a Panda semantic token (`bg: "kumo.base"`, `color: "kumo.text.default"`). The tokens point at Kumo's CSS variables, so any theme you load applies to Panda styles too.
|
package/dist/.build-complete
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
1795498239903
|
package/dist/catalog.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PropSchema, n as ComponentSchema, o as SubComponentSchema, t as ComponentRegistry } from "./types-
|
|
1
|
+
import { a as PropSchema, n as ComponentSchema, o as SubComponentSchema, t as ComponentRegistry } from "./types-CBwdSmf-.js";
|
|
2
2
|
//#region src/catalog/types.d.ts
|
|
3
3
|
/**
|
|
4
4
|
* A value that can either be a literal or a reference to the data model.
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as ClipboardText } from "../index-
|
|
1
|
+
import { t as ClipboardText } from "../index-DHj_enN9.js";
|
|
2
2
|
export { ClipboardText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as CodeLang, i as CodeBlockProps, n as Code, o as CodeProps, r as CodeBlock, t as BundledLanguage } from "../index-
|
|
1
|
+
import { a as CodeLang, i as CodeBlockProps, n as Code, o as CodeProps, r as CodeBlock, t as BundledLanguage } from "../index-Dsbm8Gcm.js";
|
|
2
2
|
export { type BundledLanguage, Code, CodeBlock, type CodeBlockProps, type CodeLang, type CodeProps };
|
package/dist/components/code.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as KumoEmptySize, i as KUMO_EMPTY_VARIANTS, n as EmptyProps, o as KumoEmptyVariantsProps, r as KUMO_EMPTY_DEFAULT_VARIANTS, s as emptyVariants, t as Empty } from "../index-
|
|
1
|
+
import { a as KumoEmptySize, i as KUMO_EMPTY_VARIANTS, n as EmptyProps, o as KumoEmptyVariantsProps, r as KUMO_EMPTY_DEFAULT_VARIANTS, s as emptyVariants, t as Empty } from "../index-kSN0sS2W.js";
|
|
2
2
|
export { Empty, type EmptyProps, KUMO_EMPTY_DEFAULT_VARIANTS, KUMO_EMPTY_VARIANTS, type KumoEmptySize, type KumoEmptyVariantsProps, emptyVariants };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { a as inputVariants, n as InputProps, t as Input } from "../input-BeWEb-jD.js";
|
|
2
2
|
import { n as KUMO_INPUT_GROUP_DEFAULT_VARIANTS, r as KUMO_INPUT_GROUP_VARIANTS, t as InputGroup } from "../input-group-8gEtPiKw.js";
|
|
3
|
-
import { a as Textarea, i as InputAreaProps, n as KumoInputGroupVariantsProps, r as InputArea, t as KumoInputGroupFocusMode } from "../index-
|
|
3
|
+
import { a as Textarea, i as InputAreaProps, n as KumoInputGroupVariantsProps, r as InputArea, t as KumoInputGroupFocusMode } from "../index-B6Wo_iiN.js";
|
|
4
4
|
export { Input, InputArea, type InputAreaProps, InputGroup, type InputProps, KUMO_INPUT_GROUP_DEFAULT_VARIANTS, KUMO_INPUT_GROUP_VARIANTS, KumoInputGroupFocusMode, KumoInputGroupVariantsProps, Textarea, inputVariants };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as Toasty, i as ToastProvider, n as KumoToastManagerAddOptions, o as createKumoToastManager, r as KumoToastOptions, s as useKumoToastManager, t as Toast } from "../index-
|
|
1
|
+
import { a as Toasty, i as ToastProvider, n as KumoToastManagerAddOptions, o as createKumoToastManager, r as KumoToastOptions, s as useKumoToastManager, t as Toast } from "../index-B6JNUfG9.js";
|
|
2
2
|
export { type KumoToastManagerAddOptions, type KumoToastOptions, Toast, ToastProvider, Toasty, createKumoToastManager, useKumoToastManager };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as PropSchema, i as ComponentType, n as ComponentSchema, o as SubComponentSchema, r as ComponentStyling, t as ComponentRegistry } from "./types-
|
|
1
|
+
import { a as PropSchema, i as ComponentType, n as ComponentSchema, o as SubComponentSchema, r as ComponentStyling, t as ComponentRegistry } from "./types-CBwdSmf-.js";
|
|
2
2
|
import { a as KUMO_FIELD_VARIANTS, i as KUMO_FIELD_DEFAULT_VARIANTS, n as FieldErrorMatch, o as fieldVariants, r as FieldProps, t as Field } from "./field-DIjlHM8W.js";
|
|
3
3
|
import { a as KUMO_AUTOCOMPLETE_VARIANTS, i as KUMO_AUTOCOMPLETE_DEFAULT_VARIANTS, n as Autocomplete, o as KumoAutocompleteSize, r as AutocompleteProps, s as autocompleteVariants } from "./index-T1sSoiWG.js";
|
|
4
4
|
import { n as BadgeVariant, t as Badge } from "./index-Bwhwpw_j.js";
|
|
@@ -9,9 +9,9 @@ import { a as KUMO_BUTTON_GROUP_VARIANTS, i as KUMO_BUTTON_GROUP_STYLING, n as B
|
|
|
9
9
|
import "./index-DL1-uSuH.js";
|
|
10
10
|
import { C as TimeseriesChart, S as KumoChartOption, _ as SankeyTooltipParams, a as BubbleMap, c as ChoroplethMapProps, d as MapProjection, f as MapStyle, g as SankeyNodeData, h as SankeyLinkData, i as GlobeMapProps, l as MapAccessor, m as SankeyChartProps, n as GlobeMap, o as BubbleMapProps, p as SankeyChart, r as GlobeMapMarker, s as ChoroplethMap, t as ChartPalette, u as MapGeoJson, v as ChartLegend, y as Chart } from "./index-g-eFm1Bq.js";
|
|
11
11
|
import { a as CheckboxLegendProps, n as CheckboxChangeEventDetails, o as CheckboxProps, t as Checkbox } from "./index-DjSGDESy.js";
|
|
12
|
-
import { t as ClipboardText } from "./index-
|
|
12
|
+
import { t as ClipboardText } from "./index-DHj_enN9.js";
|
|
13
13
|
import { a as CloudflareLogoSvgVariant, c as KUMO_CLOUDFLARE_LOGO_DEFAULT_VARIANTS, d as PoweredByCloudflareProps, f as generateCloudflareLogoSvg, i as CloudflareLogoSvgColor, l as KUMO_CLOUDFLARE_LOGO_VARIANTS, n as CloudflareLogoColor, o as CloudflareLogoVariant, r as CloudflareLogoProps, s as GenerateCloudflareLogoSvgOptions, t as CloudflareLogo, u as PoweredByCloudflare } from "./index-CYoiniZ4.js";
|
|
14
|
-
import { n as Code, r as CodeBlock } from "./index-
|
|
14
|
+
import { n as Code, r as CodeBlock } from "./index-Dsbm8Gcm.js";
|
|
15
15
|
import { a as CollapsibleProps, i as CollapsiblePanelProps, n as CollapsibleDefaultPanelProps, o as CollapsibleRootProps, r as CollapsibleDefaultTriggerProps, s as CollapsibleTriggerProps, t as Collapsible } from "./index-CzTgKPh-.js";
|
|
16
16
|
import { n as PortalContainer, t as KumoPortalProvider } from "./portal-provider-BAqPpq_a.js";
|
|
17
17
|
import { n as Combobox } from "./index-DxOyYZaJ.js";
|
|
@@ -20,7 +20,7 @@ import { i as DatePickerProps, n as DayPickerProps, r as DatePicker, t as DateRa
|
|
|
20
20
|
import { t as DateRangePicker } from "./index-lOWfpkxK.js";
|
|
21
21
|
import { a as DialogDescriptionProps, c as DialogRootProps, d as DialogTrigger, f as DialogTriggerProps, i as DialogDescription, l as DialogTitle, n as DialogClose, o as DialogProps, r as DialogCloseProps, s as DialogRoot, t as Dialog, u as DialogTitleProps } from "./index-CJRe-8P-.js";
|
|
22
22
|
import { t as DropdownMenu } from "./index-BW1HVU7T.js";
|
|
23
|
-
import { n as EmptyProps, t as Empty } from "./index-
|
|
23
|
+
import { n as EmptyProps, t as Empty } from "./index-kSN0sS2W.js";
|
|
24
24
|
import "./components/field.js";
|
|
25
25
|
import { t as Flow } from "./index-BzE0aNpx.js";
|
|
26
26
|
import { a as KUMO_GRID_DEFAULT_VARIANTS, c as KumoGridVariant, i as GridProps, l as gridItemVariants, n as GridItem, o as KUMO_GRID_VARIANTS, r as GridItemProps, s as KumoGridGap, t as Grid, u as gridVariants } from "./index-BVgXnR1V.js";
|
|
@@ -30,7 +30,7 @@ import { a as inputVariants, n as InputProps, t as Input } from "./input-BeWEb-j
|
|
|
30
30
|
import { a as InputGroupSuffixProps, c as InputGroupInputProps, i as InputGroupRootProps, o as InputGroupAddonProps, s as InputGroupButtonProps, t as InputGroup } from "./input-group-8gEtPiKw.js";
|
|
31
31
|
import { n as Tooltip, r as TooltipProvider } from "./tooltip-D_vhi1PN.js";
|
|
32
32
|
import "./components/input-group.js";
|
|
33
|
-
import { a as Textarea, i as InputAreaProps, r as InputArea } from "./index-
|
|
33
|
+
import { a as Textarea, i as InputAreaProps, r as InputArea } from "./index-B6Wo_iiN.js";
|
|
34
34
|
import { a as labelContentVariants, i as LabelProps, n as KUMO_LABEL_VARIANTS, o as labelVariants, r as Label, t as KUMO_LABEL_DEFAULT_VARIANTS } from "./index-CE09bLNb.js";
|
|
35
35
|
import { t as LayerCard } from "./layer-card-BNIn9pqy.js";
|
|
36
36
|
import "./components/layer-card.js";
|
|
@@ -54,7 +54,7 @@ import { a as Table } from "./index-RP_rt8vB.js";
|
|
|
54
54
|
import { n as TabsItem, r as TabsProps, t as Tabs } from "./index-gYC6cQVO.js";
|
|
55
55
|
import { n as TagInputLabels, r as TagInputProps, t as TagInput } from "./index-2jvVmJ8P.js";
|
|
56
56
|
import "./components/text.js";
|
|
57
|
-
import { a as Toasty, i as ToastProvider, o as createKumoToastManager, s as useKumoToastManager, t as Toast } from "./index-
|
|
57
|
+
import { a as Toasty, i as ToastProvider, o as createKumoToastManager, s as useKumoToastManager, t as Toast } from "./index-B6JNUfG9.js";
|
|
58
58
|
import { a as ToolbarInputGroupProps, c as ToolbarProps, i as ToolbarButtonProps, l as ToolbarSize, n as KUMO_TOOLBAR_VARIANTS, o as ToolbarInputProps, r as Toolbar, s as ToolbarLinkProps, t as KUMO_TOOLBAR_DEFAULT_VARIANTS } from "./index-aahL-0Zw.js";
|
|
59
59
|
import "./components/tooltip.js";
|
|
60
60
|
import { a as cn, i as KumoTranslationsPartial, n as KumoLocaleProviderProps, o as safeRandomId, r as KumoTranslations, t as KumoLocaleProvider } from "./locale-provider-CHMCQ0-J.js";
|
package/dist/index.js
CHANGED
|
@@ -21,7 +21,7 @@ import { t as InputGroup } from "./chunks/input-group-h9fepskc84e1h11n.js";
|
|
|
21
21
|
import { t as ClipboardText } from "./chunks/clipboard-text-oukrnke1s3kebk3y.js";
|
|
22
22
|
import { t as Text } from "./chunks/text-nqum95flcp07ac9s.js";
|
|
23
23
|
import { i as KUMO_INLINE_COPY_TEXT_VARIANTS, n as KUMO_INLINE_COPY_TEXT_DEFAULT_VARIANTS, r as KUMO_INLINE_COPY_TEXT_STYLING, t as InlineCopyText } from "./chunks/inline-copy-text-izxpvnrtebcqlquf.js";
|
|
24
|
-
import { n as CodeBlock, t as Code } from "./chunks/code-
|
|
24
|
+
import { n as CodeBlock, t as Code } from "./chunks/code-jtbk2mo5hmdbk8bu.js";
|
|
25
25
|
import { t as Combobox } from "./chunks/combobox-mzvobpvalz2gnpli.js";
|
|
26
26
|
import { n as KUMO_TOOLBAR_VARIANTS, r as Toolbar, t as KUMO_TOOLBAR_DEFAULT_VARIANTS } from "./chunks/toolbar-kh6pc12ii7b6dv1x.js";
|
|
27
27
|
import { t as LayerCard } from "./chunks/layer-card-lsmeuqic9i1isv2b.js";
|
package/dist/registry.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as PropSchema, i as ComponentType, n as ComponentSchema, o as SubComponentSchema, r as ComponentStyling, t as ComponentRegistry } from "./types-
|
|
1
|
+
import { a as PropSchema, i as ComponentType, n as ComponentSchema, o as SubComponentSchema, r as ComponentStyling, t as ComponentRegistry } from "./types-CBwdSmf-.js";
|
|
2
2
|
export type { ComponentRegistry, ComponentSchema, ComponentStyling, ComponentType, PropSchema, SubComponentSchema };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fldr/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "fldr's design system: Cloudflare Kumo with a theme authoring API and PandaCSS preset",
|
|
6
6
|
"keywords": [
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"templates",
|
|
29
29
|
"scripts",
|
|
30
30
|
"README.md",
|
|
31
|
+
"THEMING.md",
|
|
31
32
|
"LICENSE",
|
|
32
33
|
"CHANGELOG.md"
|
|
33
34
|
],
|
|
@@ -466,6 +467,40 @@
|
|
|
466
467
|
"react-day-picker": "^9.13.2",
|
|
467
468
|
"use-sync-external-store": "^1.6.0"
|
|
468
469
|
},
|
|
470
|
+
"devDependencies": {
|
|
471
|
+
"@arethetypeswrong/core": "^0.18.5",
|
|
472
|
+
"@oxlint/plugins": "=1.73.0",
|
|
473
|
+
"@tailwindcss/cli": "^4.1.17",
|
|
474
|
+
"@tailwindcss/vite": "^4.1.17",
|
|
475
|
+
"@testing-library/react": "16.3.1",
|
|
476
|
+
"@testing-library/user-event": "14.6.1",
|
|
477
|
+
"@types/d3-geo": "^3.1.0",
|
|
478
|
+
"@types/glob": "9.0.0",
|
|
479
|
+
"@types/node": "^22.10.2",
|
|
480
|
+
"@types/react": "19.2.4",
|
|
481
|
+
"@types/react-dom": "19.2.3",
|
|
482
|
+
"@types/svg-path-parser": "^1.1.6",
|
|
483
|
+
"@vitejs/plugin-react": "~6.0.3",
|
|
484
|
+
"@vitest/browser-playwright": "4.1.10",
|
|
485
|
+
"@vitest/ui": "4.1.10",
|
|
486
|
+
"esbuild": "0.27.2",
|
|
487
|
+
"glob": "13.0.0",
|
|
488
|
+
"happy-dom": "^20.8.8",
|
|
489
|
+
"playwright": "^1.57.0",
|
|
490
|
+
"plop": "4.0.4",
|
|
491
|
+
"publint": "^0.3.21",
|
|
492
|
+
"svg-path-parser": "^1.1.0",
|
|
493
|
+
"tailwindcss": "^4.1.17",
|
|
494
|
+
"ts-json-schema-generator": "2.4.0",
|
|
495
|
+
"tsx": "^4.19.2",
|
|
496
|
+
"typescript": "^5.9.2",
|
|
497
|
+
"vite": "npm:@voidzero-dev/vite-plus-core@0.3.1",
|
|
498
|
+
"vite-plus": "0.3.1",
|
|
499
|
+
"vitest": "4.1.10",
|
|
500
|
+
"vitest-browser-react": "^2.0.5",
|
|
501
|
+
"wrangler": "4.127.1",
|
|
502
|
+
"zod": "^4.0.0"
|
|
503
|
+
},
|
|
469
504
|
"peerDependencies": {
|
|
470
505
|
"@phosphor-icons/react": "^2.1.10",
|
|
471
506
|
"echarts": "^6.0.0",
|
|
@@ -480,5 +515,31 @@
|
|
|
480
515
|
"echarts": {
|
|
481
516
|
"optional": true
|
|
482
517
|
}
|
|
518
|
+
},
|
|
519
|
+
"scripts": {
|
|
520
|
+
"build": "pnpm run codegen:registry && tsx scripts/css-build.ts && vp pack && tsx src/command-line/build-cli.ts",
|
|
521
|
+
"dev": "vp pack --watch",
|
|
522
|
+
"new:component": "plop component",
|
|
523
|
+
"clean": "rm -rf dist",
|
|
524
|
+
"codegen": "pnpm run codegen:primitives && pnpm run codegen:themes && pnpm run codegen:registry",
|
|
525
|
+
"publish:fldr": "tsx scripts/publish-fldr.ts",
|
|
526
|
+
"codegen:themes": "tsx scripts/theme-generator/index.ts",
|
|
527
|
+
"migrate:tokens": "tsx scripts/theme-generator/migrate.ts",
|
|
528
|
+
"codegen:primitives": "tsx scripts/generate-primitives.ts",
|
|
529
|
+
"codegen:registry": "pnpm --filter @cloudflare/kumo-docs-astro codegen:demos && tsx scripts/component-registry/index.ts",
|
|
530
|
+
"lint": "pnpm run lint:oxlint",
|
|
531
|
+
"lint:oxlint": "vp lint src/",
|
|
532
|
+
"test": "CI=true vp test run --project=unit",
|
|
533
|
+
"test:ui": "vp test --ui",
|
|
534
|
+
"test:run": "vp test run",
|
|
535
|
+
"test:unit": "vp test run --project=unit",
|
|
536
|
+
"test:coverage": "vp test run --coverage",
|
|
537
|
+
"test:exports": "vp test run --project=unit tests/imports/export-path-validation.test.ts",
|
|
538
|
+
"test:watch": "vp test run --project=unit --watch",
|
|
539
|
+
"typecheck": "tsc --noEmit",
|
|
540
|
+
"validate:build": "vp test run --project=unit tests/imports/export-path-validation.test.ts",
|
|
541
|
+
"validate:changeset": "tsx ../../ci/scripts/validate-kumo-changeset.ts",
|
|
542
|
+
"test:browser": "vp test --config=vitest.browser.config.ts",
|
|
543
|
+
"test:visual-contracts": "vp test run --config=vitest.visual-contracts.config.ts"
|
|
483
544
|
}
|
|
484
545
|
}
|
|
@@ -103,7 +103,7 @@ function loadDemoExamples(): Map<string, { aiExamples: string[] }> {
|
|
|
103
103
|
`Warning: demo-metadata.json not found at ${demoMetadataPath}`,
|
|
104
104
|
);
|
|
105
105
|
console.warn(
|
|
106
|
-
"Run 'pnpm --filter @
|
|
106
|
+
"Run 'pnpm --filter @cloudflare/kumo-docs-astro codegen:demos' first",
|
|
107
107
|
);
|
|
108
108
|
return new Map();
|
|
109
109
|
}
|
package/scripts/publish-fldr.ts
CHANGED
|
@@ -1,130 +1,48 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Publish the
|
|
3
|
-
*
|
|
4
|
-
* The repo keeps the upstream name (@fldr/ui) so merges from
|
|
5
|
-
* cloudflare/kumo stay clean. This stages the publishable files, renames the
|
|
6
|
-
* package (and its self-references in docs and the CLI), and publishes from
|
|
7
|
-
* the staging dir.
|
|
2
|
+
* Publish @fldr/ui to npm. Sets the version, publishes, then restores package.json.
|
|
8
3
|
*
|
|
9
4
|
* pnpm build
|
|
10
|
-
* pnpm publish:fldr
|
|
11
|
-
* pnpm publish:fldr 0.
|
|
12
|
-
* pnpm publish:fldr patch # latest on npm + 0.0.1
|
|
5
|
+
* pnpm publish:fldr patch --dry-run # latest on npm + 0.0.1
|
|
6
|
+
* pnpm publish:fldr 0.4.0
|
|
13
7
|
*/
|
|
14
8
|
import { spawnSync } from "node:child_process";
|
|
15
|
-
import {
|
|
16
|
-
|
|
17
|
-
existsSync,
|
|
18
|
-
mkdtempSync,
|
|
19
|
-
readFileSync,
|
|
20
|
-
readdirSync,
|
|
21
|
-
statSync,
|
|
22
|
-
writeFileSync,
|
|
23
|
-
} from "node:fs";
|
|
24
|
-
import { tmpdir } from "node:os";
|
|
25
|
-
import { extname, join, resolve } from "node:path";
|
|
9
|
+
import { existsSync, readFileSync, writeFileSync } from "node:fs";
|
|
10
|
+
import { join, resolve } from "node:path";
|
|
26
11
|
import { fileURLToPath } from "node:url";
|
|
27
12
|
|
|
28
|
-
const NAME = "@fldr/ui";
|
|
29
|
-
const UPSTREAM_NAME = "@fldr/ui";
|
|
30
|
-
const TEXT_EXTENSIONS = new Set([
|
|
31
|
-
".js",
|
|
32
|
-
".mjs",
|
|
33
|
-
".cjs",
|
|
34
|
-
".ts",
|
|
35
|
-
".mts",
|
|
36
|
-
".json",
|
|
37
|
-
".md",
|
|
38
|
-
".css",
|
|
39
|
-
".txt",
|
|
40
|
-
]);
|
|
41
|
-
|
|
42
13
|
const pkgDir = resolve(fileURLToPath(import.meta.url), "../..");
|
|
14
|
+
const pkgPath = join(pkgDir, "package.json");
|
|
15
|
+
const original = readFileSync(pkgPath, "utf8");
|
|
16
|
+
const pkg = JSON.parse(original) as { name: string; version: string };
|
|
17
|
+
|
|
43
18
|
const args = process.argv.slice(2);
|
|
44
19
|
const requested = args.find((arg) => !arg.startsWith("-"));
|
|
45
|
-
const version = requested === "patch" ? await nextPatch() : requested;
|
|
46
20
|
const dryRun = args.includes("--dry-run");
|
|
47
|
-
const otp = args.find((arg) => arg.startsWith("--otp="));
|
|
48
|
-
|
|
49
|
-
if (!version || !/^\d+\.\d+\.\d+(-[\w.]+)?$/.test(version)) {
|
|
50
|
-
console.error("Usage: pnpm publish:fldr <version|patch> [--dry-run]");
|
|
51
|
-
process.exit(1);
|
|
52
|
-
}
|
|
53
|
-
if (!existsSync(join(pkgDir, "dist/index.js"))) {
|
|
54
|
-
console.error("dist/ is missing. Run `pnpm build` first.");
|
|
55
|
-
process.exit(1);
|
|
56
|
-
}
|
|
57
21
|
|
|
58
22
|
async function nextPatch(): Promise<string> {
|
|
59
|
-
const res = await fetch(`https://registry.npmjs.org/${
|
|
23
|
+
const res = await fetch(`https://registry.npmjs.org/${pkg.name}/latest`);
|
|
60
24
|
if (!res.ok) throw new Error(`npm registry: ${res.status}`);
|
|
61
25
|
const { version: latest } = (await res.json()) as { version: string };
|
|
62
26
|
const [major, minor, patch] = latest.split("-")[0].split(".").map(Number);
|
|
63
27
|
return `${major}.${minor}.${patch + 1}`;
|
|
64
28
|
}
|
|
65
29
|
|
|
66
|
-
const
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
const src = join(pkgDir, entry);
|
|
71
|
-
if (existsSync(src)) cpSync(src, join(stage, entry), { recursive: true });
|
|
30
|
+
const version = requested === "patch" ? await nextPatch() : requested;
|
|
31
|
+
if (!version || !/^\d+\.\d+\.\d+(-[\w.]+)?$/.test(version)) {
|
|
32
|
+
console.error("Usage: pnpm publish:fldr <version|patch> [--dry-run]");
|
|
33
|
+
process.exit(1);
|
|
72
34
|
}
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
function rewrite(dir: string) {
|
|
77
|
-
for (const name of readdirSync(dir)) {
|
|
78
|
-
const path = join(dir, name);
|
|
79
|
-
if (statSync(path).isDirectory()) {
|
|
80
|
-
rewrite(path);
|
|
81
|
-
} else if (TEXT_EXTENSIONS.has(extname(name))) {
|
|
82
|
-
const text = readFileSync(path, "utf8");
|
|
83
|
-
if (text.includes(UPSTREAM_NAME))
|
|
84
|
-
writeFileSync(path, text.replaceAll(UPSTREAM_NAME, NAME));
|
|
85
|
-
}
|
|
86
|
-
}
|
|
35
|
+
if (!existsSync(join(pkgDir, "dist/index.js"))) {
|
|
36
|
+
console.error("dist/ is missing. Run `pnpm build` first.");
|
|
37
|
+
process.exit(1);
|
|
87
38
|
}
|
|
88
|
-
rewrite(stage);
|
|
89
|
-
|
|
90
|
-
const { scripts: _scripts, devDependencies: _dev, ...rest } = pkg;
|
|
91
|
-
const published = {
|
|
92
|
-
...rest,
|
|
93
|
-
name: NAME,
|
|
94
|
-
version,
|
|
95
|
-
description:
|
|
96
|
-
"fldr's design system: Cloudflare Kumo with a theme authoring API and PandaCSS preset",
|
|
97
|
-
keywords: [
|
|
98
|
-
"fldr",
|
|
99
|
-
"kumo",
|
|
100
|
-
"components",
|
|
101
|
-
"design-system",
|
|
102
|
-
"react",
|
|
103
|
-
"ui",
|
|
104
|
-
"pandacss",
|
|
105
|
-
],
|
|
106
|
-
repository: {
|
|
107
|
-
type: "git",
|
|
108
|
-
url: "git+https://github.com/mergd/fldr-ui.git",
|
|
109
|
-
directory: "packages/kumo",
|
|
110
|
-
},
|
|
111
|
-
};
|
|
112
|
-
writeFileSync(
|
|
113
|
-
join(stage, "package.json"),
|
|
114
|
-
`${JSON.stringify(published, null, 2)}\n`,
|
|
115
|
-
);
|
|
116
39
|
|
|
117
|
-
|
|
40
|
+
writeFileSync(pkgPath, original.replace(`"version": "${pkg.version}"`, `"version": "${version}"`));
|
|
41
|
+
console.log(`Publishing ${pkg.name}@${version}`);
|
|
118
42
|
const result = spawnSync(
|
|
119
43
|
"pnpm",
|
|
120
|
-
[
|
|
121
|
-
|
|
122
|
-
"--access",
|
|
123
|
-
"public",
|
|
124
|
-
"--no-git-checks",
|
|
125
|
-
...(dryRun ? ["--dry-run"] : []),
|
|
126
|
-
...(otp ? [otp] : []),
|
|
127
|
-
],
|
|
128
|
-
{ cwd: stage, stdio: "inherit" },
|
|
44
|
+
["publish", "--access", "public", "--no-git-checks", "--ignore-scripts", ...(dryRun ? ["--dry-run"] : [])],
|
|
45
|
+
{ cwd: pkgDir, stdio: "inherit" },
|
|
129
46
|
);
|
|
47
|
+
writeFileSync(pkgPath, original);
|
|
130
48
|
process.exit(result.status ?? 1);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|