@logicplanes/kaeso-ui 0.2.0 → 0.2.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.
Files changed (33) hide show
  1. package/ai/component-guides.md +27 -1
  2. package/ai/component-registry.json +91 -1
  3. package/ai/component-registry.md +23 -1
  4. package/ai/icons.md +1 -1
  5. package/ai/tokens.md +1 -1
  6. package/dist/chunks/release-art-DEc9HNa6.js +555 -0
  7. package/dist/chunks/release-art-DEc9HNa6.js.map +1 -0
  8. package/dist/chunks/status-dot-BzMlYuMe.js +29 -0
  9. package/dist/chunks/status-dot-BzMlYuMe.js.map +1 -0
  10. package/dist/components/charts/timeseries.js +72 -69
  11. package/dist/components/charts/timeseries.js.map +1 -1
  12. package/dist/components/data-table.js +1 -1
  13. package/dist/components/date-picker.js +1 -1
  14. package/dist/components/date-picker.js.map +1 -1
  15. package/dist/components/release-art.js +2 -0
  16. package/dist/components/status-dot.js +1 -1
  17. package/dist/format.js +84 -68
  18. package/dist/format.js.map +1 -1
  19. package/dist/index.js +27 -26
  20. package/dist/kaeso.css +23 -1
  21. package/dist/styles.css +1 -1
  22. package/dist/types/components/release-art/docs.d.ts +13 -0
  23. package/dist/types/components/release-art/drawing.d.ts +48 -0
  24. package/dist/types/components/release-art/index.d.ts +1 -0
  25. package/dist/types/components/release-art/release-art.d.ts +37 -0
  26. package/dist/types/components/status-dot/docs.d.ts +2 -0
  27. package/dist/types/components/status-dot/status-dot.d.ts +2 -0
  28. package/dist/types/format/index.d.ts +2 -0
  29. package/dist/types/index.d.ts +1 -0
  30. package/foundations/accessibility.md +1 -0
  31. package/package.json +2 -2
  32. package/dist/chunks/status-dot-CBoQpyL4.js +0 -25
  33. package/dist/chunks/status-dot-CBoQpyL4.js.map +0 -1
@@ -1,4 +1,5 @@
1
1
  import { type ReactNode } from "react";
2
+ import { type IconData } from "../icon/icon.js";
2
3
  export declare const KAESO_STATUS_DOT_VARIANTS: {
3
4
  readonly tone: {
4
5
  readonly success: {
@@ -30,6 +31,7 @@ export interface StatusDotProps {
30
31
  tone?: keyof typeof KAESO_STATUS_DOT_VARIANTS.tone | undefined;
31
32
  children?: ReactNode | undefined;
32
33
  size?: "sm" | "md" | undefined;
34
+ icon?: IconData | undefined;
33
35
  className?: string | undefined;
34
36
  }
35
37
  export declare const StatusDot: import("react").ForwardRefExoticComponent<StatusDotProps & import("react").RefAttributes<HTMLSpanElement>>;
@@ -1,5 +1,7 @@
1
1
  export declare function setFormatLocale(locale: string, messages?: Readonly<Record<string, string>>): void;
2
2
  export declare function formatLocale(): string;
3
+ export declare function setFormatTimeZone(timeZone: string | undefined): void;
4
+ export declare function formatTimeZone(): string | undefined;
3
5
  export declare function formatNumber(value: number, options?: Intl.NumberFormatOptions): string;
4
6
  export declare function formatTokens(value: number): string;
5
7
  export declare function formatBytes(bytes: number): string;
@@ -66,6 +66,7 @@ export * from "./components/avatar/index.js";
66
66
  export * from "./components/stat/index.js";
67
67
  export * from "./components/key-value/index.js";
68
68
  export * from "./components/qr-code/index.js";
69
+ export * from "./components/release-art/index.js";
69
70
  export * from "./components/collapsible/index.js";
70
71
  export * from "./components/timeline/index.js";
71
72
  export * from "./components/flow/index.js";
@@ -7,6 +7,7 @@ Every component works with a keyboard, a screen reader, a coarse pointer and the
7
7
  - Behavior comes from Base UI: roles, states, focus management and keyboard interaction follow the WAI-ARIA practices.
8
8
  - **Targets**: nothing interactive is smaller than 32px; with a coarse pointer, rows and menu items grow to 44px.
9
9
  - **Text**: 14px base, 12px minimum. Every text and background pair is measured against WCAG 2.2 (4.5:1 for text, 3:1 for large text and essential graphics).
10
+ - **Zoom stays with the person**: with a coarse pointer, every field's text is at least 16px, so a phone never zooms the page when a field takes focus, and a quick second tap on a control is a tap, not a zoom. Pinch zoom always works; never set `maximum-scale` or `user-scalable=no`.
10
11
  - **Color is never alone**: every status carries a word or an icon.
11
12
 
12
13
  ## Focus
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@logicplanes/kaeso-ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Kaeso's UI library: React components on Base UI, Tailwind CSS v4 and the Kaeso tokens.",
5
5
  "license": "MIT",
6
6
  "author": "Devin Oldenburg",
@@ -102,7 +102,7 @@
102
102
  "shiki": "4.4.3",
103
103
  "tailwind-merge": "3.7.0",
104
104
  "uqr": "0.1.3",
105
- "@logicplanes/kaeso-tokens": "0.2.0"
105
+ "@logicplanes/kaeso-tokens": "0.2.2"
106
106
  },
107
107
  "devDependencies": {
108
108
  "@hugeicons/core-free-icons": "4.3.5",
@@ -1,25 +0,0 @@
1
- "use client";
2
- import { t as e } from "./cn-CidVUKMm.js";
3
- import { t } from "./dev-CR1p7gCm.js";
4
- import { forwardRef as n } from "react";
5
- import { jsx as r } from "react/jsx-runtime";
6
- //#region src/components/status-dot/status-dot.tsx
7
- var i = { tone: {
8
- success: { classes: "text-success-text" },
9
- warning: { classes: "text-warning-text" },
10
- danger: { classes: "text-danger-text" },
11
- info: { classes: "text-info-text" },
12
- neutral: { classes: "text-fg-secondary" }
13
- } }, a = { tone: "neutral" }, o = /* @__PURE__ */ n(function({ tone: n = "neutral", children: a, size: o = "md", className: s }, c) {
14
- return (a == null || a === "") && t("StatusDot: a status is a word in its color; pass the word as children (it renders nothing without one)."), /* @__PURE__ */ r("span", {
15
- ref: c,
16
- className: e("inline-flex items-center font-medium", o === "md" ? "text-body" : "text-small", i.tone[n].classes, s),
17
- children: a
18
- });
19
- });
20
- process.env.NODE_ENV !== "production" && (o.displayName = "StatusDot");
21
- var s = o;
22
- //#endregion
23
- export { o as i, i as n, s as r, a as t };
24
-
25
- //# sourceMappingURL=status-dot-CBoQpyL4.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"status-dot-CBoQpyL4.js","names":["cn","KAESO_STATUS_DOT_VARIANTS","KAESO_STATUS_DOT_DEFAULT_VARIANTS","StatusDot","children","devWarn","size","tone","className","Status"],"sources":["../../src/components/status-dot/status-dot.tsx"],"sourcesContent":["import { forwardRef, type ReactNode } from \"react\";\nimport { cn } from \"../../utils/cn.js\";\nimport { devWarn } from \"../../utils/dev.js\";\n\nexport const KAESO_STATUS_DOT_VARIANTS = {\n tone: {\n success: { classes: \"text-success-text\" },\n warning: { classes: \"text-warning-text\" },\n danger: { classes: \"text-danger-text\" },\n info: { classes: \"text-info-text\" },\n neutral: { classes: \"text-fg-secondary\" },\n },\n} as const;\nexport const KAESO_STATUS_DOT_DEFAULT_VARIANTS = { tone: \"neutral\" } as const;\n\nexport interface StatusDotProps {\n tone?: keyof typeof KAESO_STATUS_DOT_VARIANTS.tone | undefined;\n children?: ReactNode | undefined;\n size?: \"sm\" | \"md\" | undefined;\n className?: string | undefined;\n}\n\nexport const StatusDot = /* @__PURE__ */ forwardRef<HTMLSpanElement, StatusDotProps>(function StatusDot({ tone = \"neutral\", children, size = \"md\", className }, ref) {\n if (children === undefined || children === null || children === \"\")\n devWarn(\"StatusDot: a status is a word in its color; pass the word as children (it renders nothing without one).\");\n return (\n <span\n ref={ref}\n className={cn(\n \"inline-flex items-center font-medium\",\n size === \"md\" ? \"text-body\" : \"text-small\",\n KAESO_STATUS_DOT_VARIANTS.tone[tone].classes,\n className,\n )}\n >\n {children}\n </span>\n );\n});\nif (process.env.NODE_ENV !== \"production\") StatusDot.displayName = \"StatusDot\";\n\nexport const Status = StatusDot;\n"],"mappings":";;;;;;AAIA,IAAaC,IAA4B,EACvC,MAAM;CACJ,SAAS,EAAE,SAAS,oBAAoB;CACxC,SAAS,EAAE,SAAS,oBAAoB;CACxC,QAAQ,EAAE,SAAS,mBAAmB;CACtC,MAAM,EAAE,SAAS,iBAAiB;CAClC,SAAS,EAAE,SAAS,oBAAoB;AAC1C,EACF,GACaC,IAAoC,EAAE,MAAM,UAAU,GAStDC,IAA4B,kBAA4C,SAAmB,EAAE,UAAO,WAAW,aAAU,UAAO,MAAM,gBAAa,GAAK;CAGnK,QAFIC,KAAuC,QAAQA,MAAa,OAC9DC,EAAQ,yGAAyG,GAEjH,kBAAC,QAAD;EACO;EACL,WAAWL,EACT,wCACAM,MAAS,OAAO,cAAc,cAC9BL,EAA0B,KAAKM,EAAK,CAAC,SACrCC,CACF;EAEC;CACG,CAAA;AAEV,CAAC;AACD,QAAA,IAAA,aAA6B,iBAAc,EAAU,cAAc;AAEnE,IAAaC,IAASN"}