@fldr/ui 0.3.6 → 0.3.8
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/THEMING.md +2 -6
- package/ai/component-registry.json +962 -43
- package/ai/component-registry.md +1 -1
- package/dist/.build-complete +1 -1
- package/dist/ai/schemas.d.ts +18 -18
- package/dist/blocks-source/activity-feed/activity-feed.test.tsx +75 -0
- package/dist/blocks-source/activity-feed/activity-feed.tsx +256 -0
- package/dist/blocks-source/app-shell/app-shell.test.tsx +74 -0
- package/dist/blocks-source/app-shell/app-shell.tsx +123 -0
- package/dist/blocks-source/auth-card/auth-card.test.tsx +64 -0
- package/dist/blocks-source/auth-card/auth-card.tsx +234 -0
- package/dist/blocks-source/dashboard-page/dashboard-page.tsx +167 -0
- package/dist/blocks-source/error-page/error-page.test.tsx +60 -0
- package/dist/blocks-source/error-page/error-page.tsx +97 -0
- package/dist/blocks-source/file-table/file-item.tsx +164 -0
- package/dist/blocks-source/file-table/file-table.test.tsx +82 -0
- package/dist/blocks-source/file-table/file-table.tsx +292 -0
- package/dist/blocks-source/folder-grid/folder-grid.test.tsx +54 -0
- package/dist/blocks-source/folder-grid/folder-grid.tsx +170 -0
- package/dist/blocks-source/login-page/login-page.tsx +47 -0
- package/dist/blocks-source/onboarding-checklist/onboarding-checklist.test.tsx +50 -0
- package/dist/blocks-source/onboarding-checklist/onboarding-checklist.tsx +180 -0
- package/dist/blocks-source/settings-section/settings-section.test.tsx +43 -0
- package/dist/blocks-source/settings-section/settings-section.tsx +165 -0
- package/dist/blocks-source/share-dialog/share-dialog.test.tsx +69 -0
- package/dist/blocks-source/share-dialog/share-dialog.tsx +307 -0
- package/dist/blocks-source/stat-grid/stat-grid.test.tsx +52 -0
- package/dist/blocks-source/stat-grid/stat-grid.tsx +153 -0
- package/dist/blocks-source/upload-dropzone/upload-dropzone.test.tsx +82 -0
- package/dist/blocks-source/upload-dropzone/upload-dropzone.tsx +264 -0
- package/dist/blocks.d.ts +780 -0
- package/dist/blocks.js +1664 -0
- package/dist/chunks/delete-resource-cmlptb61ih8s84r3.js +151 -0
- package/dist/delete-resource-DY-GFy2s.d.ts +48 -0
- package/dist/index.d.ts +4 -50
- package/dist/index.js +1 -146
- package/dist/primitives.d.ts +1 -1
- package/dist/styles/kumo-standalone.css +1 -1
- package/dist/styles/theme-fldr.css +0 -11
- package/dist/theming.d.ts +4 -24
- package/dist/theming.js +4 -15
- package/package.json +5 -1
|
@@ -480,14 +480,3 @@
|
|
|
480
480
|
--text-lg: 15.67px;
|
|
481
481
|
}
|
|
482
482
|
}
|
|
483
|
-
|
|
484
|
-
/* Kumo density "compact". Generated by generateDensityCSS(). */
|
|
485
|
-
@layer base {
|
|
486
|
-
[data-density="compact"] {
|
|
487
|
-
--spacing: 0.22rem;
|
|
488
|
-
--text-xs: 11px;
|
|
489
|
-
--text-sm: 12px;
|
|
490
|
-
--text-base: 13px;
|
|
491
|
-
--text-lg: 15px;
|
|
492
|
-
}
|
|
493
|
-
}
|
package/dist/theming.d.ts
CHANGED
|
@@ -126,20 +126,9 @@ export declare const fldrRoseTheme: KumoTheme;
|
|
|
126
126
|
export declare const fldrInkTheme: KumoTheme;
|
|
127
127
|
//#endregion
|
|
128
128
|
//#region src/themes/density.d.ts
|
|
129
|
-
/** About 12% tighter than Kumo's default: 28px base controls, 13px body text. */
|
|
130
|
-
export declare const compactDensity: {
|
|
131
|
-
readonly name: "compact";
|
|
132
|
-
readonly spacing: "0.22rem";
|
|
133
|
-
readonly typography: {
|
|
134
|
-
readonly xs: "11px";
|
|
135
|
-
readonly sm: "12px";
|
|
136
|
-
readonly base: "13px";
|
|
137
|
-
readonly lg: "15px";
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
129
|
/**
|
|
141
|
-
* fldr's default scale,
|
|
142
|
-
* 13.67px body text. Applies on `:root`, so it needs no attribute.
|
|
130
|
+
* fldr's default scale, slightly tighter than Kumo's stock size: 0.24rem
|
|
131
|
+
* spacing and 13.67px body text. Applies on `:root`, so it needs no attribute.
|
|
143
132
|
*/
|
|
144
133
|
export declare const comfortableDensity: {
|
|
145
134
|
readonly name: "comfortable";
|
|
@@ -227,7 +216,7 @@ export declare const BUILT_IN_THEMES: (KumoTheme | {
|
|
|
227
216
|
};
|
|
228
217
|
})[];
|
|
229
218
|
/** Densities shipped in `theme-fldr.css`, applied with `data-density="<name>"`. */
|
|
230
|
-
export declare const BUILT_IN_DENSITIES:
|
|
219
|
+
export declare const BUILT_IN_DENSITIES: {
|
|
231
220
|
readonly name: "comfortable";
|
|
232
221
|
readonly default: true;
|
|
233
222
|
readonly spacing: "0.24rem";
|
|
@@ -237,15 +226,6 @@ export declare const BUILT_IN_DENSITIES: ({
|
|
|
237
226
|
readonly base: "13.67px";
|
|
238
227
|
readonly lg: "15.67px";
|
|
239
228
|
};
|
|
240
|
-
}
|
|
241
|
-
readonly name: "compact";
|
|
242
|
-
readonly spacing: "0.22rem";
|
|
243
|
-
readonly typography: {
|
|
244
|
-
readonly xs: "11px";
|
|
245
|
-
readonly sm: "12px";
|
|
246
|
-
readonly base: "13px";
|
|
247
|
-
readonly lg: "15px";
|
|
248
|
-
};
|
|
249
|
-
})[];
|
|
229
|
+
}[];
|
|
250
230
|
//#endregion
|
|
251
231
|
export type { ColorMode, KumoColorToken, KumoDensity, KumoTextToken, KumoTheme, KumoTypographyToken };
|
package/dist/theming.js
CHANGED
|
@@ -354,20 +354,9 @@ const fldrInkTheme = fldrAccent("fldr-ink", {
|
|
|
354
354
|
});
|
|
355
355
|
//#endregion
|
|
356
356
|
//#region src/themes/density.ts
|
|
357
|
-
/** About 12% tighter than Kumo's default: 28px base controls, 13px body text. */
|
|
358
|
-
const compactDensity = defineDensity({
|
|
359
|
-
name: "compact",
|
|
360
|
-
spacing: "0.22rem",
|
|
361
|
-
typography: {
|
|
362
|
-
xs: "11px",
|
|
363
|
-
sm: "12px",
|
|
364
|
-
base: "13px",
|
|
365
|
-
lg: "15px"
|
|
366
|
-
}
|
|
367
|
-
});
|
|
368
357
|
/**
|
|
369
|
-
* fldr's default scale,
|
|
370
|
-
* 13.67px body text. Applies on `:root`, so it needs no attribute.
|
|
358
|
+
* fldr's default scale, slightly tighter than Kumo's stock size: 0.24rem
|
|
359
|
+
* spacing and 13.67px body text. Applies on `:root`, so it needs no attribute.
|
|
371
360
|
*/
|
|
372
361
|
const comfortableDensity = defineDensity({
|
|
373
362
|
name: "comfortable",
|
|
@@ -396,6 +385,6 @@ const BUILT_IN_THEMES = [
|
|
|
396
385
|
fldrInkTheme
|
|
397
386
|
];
|
|
398
387
|
/** Densities shipped in `theme-fldr.css`, applied with `data-density="<name>"`. */
|
|
399
|
-
const BUILT_IN_DENSITIES = [comfortableDensity
|
|
388
|
+
const BUILT_IN_DENSITIES = [comfortableDensity];
|
|
400
389
|
//#endregion
|
|
401
|
-
export { BUILT_IN_DENSITIES, BUILT_IN_THEMES, comfortableDensity,
|
|
390
|
+
export { BUILT_IN_DENSITIES, BUILT_IN_THEMES, comfortableDensity, defineDensity, defineTheme, extendTheme, fldrGreenTheme, fldrInkTheme, fldrOrangeTheme, fldrRoseTheme, fldrTheme, fldrVioletTheme, generateDensityCSS, generateThemeCSS };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fldr/ui",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.8",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "fldr's design system: Cloudflare Kumo with a theme authoring API and PandaCSS preset",
|
|
6
6
|
"keywords": [
|
|
@@ -47,6 +47,10 @@
|
|
|
47
47
|
"types": "./dist/ai/schemas.d.ts",
|
|
48
48
|
"import": "./dist/ai/schemas.js"
|
|
49
49
|
},
|
|
50
|
+
"./blocks": {
|
|
51
|
+
"types": "./dist/blocks.d.ts",
|
|
52
|
+
"import": "./dist/blocks.js"
|
|
53
|
+
},
|
|
50
54
|
"./catalog": {
|
|
51
55
|
"types": "./dist/catalog.d.ts",
|
|
52
56
|
"import": "./dist/catalog.js"
|