@urbicon-ui/blocks 6.38.0 → 6.40.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.
Files changed (35) hide show
  1. package/dist/components/Calendar/calendar.variants.d.ts +63 -63
  2. package/dist/components/Chat/A2UIView/A2UINode.svelte +703 -0
  3. package/dist/components/Chat/A2UIView/A2UINode.svelte.d.ts +10 -0
  4. package/dist/components/Chat/A2UIView/A2UIView.svelte +293 -0
  5. package/dist/components/Chat/A2UIView/A2UIView.svelte.d.ts +4 -0
  6. package/dist/components/Chat/A2UIView/a2ui-data.d.ts +65 -0
  7. package/dist/components/Chat/A2UIView/a2ui-data.js +283 -0
  8. package/dist/components/Chat/A2UIView/a2ui-prompt.d.ts +18 -0
  9. package/dist/components/Chat/A2UIView/a2ui-prompt.js +147 -0
  10. package/dist/components/Chat/A2UIView/a2ui-registry.d.ts +64 -0
  11. package/dist/components/Chat/A2UIView/a2ui-registry.js +390 -0
  12. package/dist/components/Chat/A2UIView/a2ui-render.d.ts +96 -0
  13. package/dist/components/Chat/A2UIView/a2ui-render.js +140 -0
  14. package/dist/components/Chat/A2UIView/a2ui-validate.d.ts +75 -0
  15. package/dist/components/Chat/A2UIView/a2ui-validate.js +773 -0
  16. package/dist/components/Chat/A2UIView/a2ui-view.variants.d.ts +80 -0
  17. package/dist/components/Chat/A2UIView/a2ui-view.variants.js +62 -0
  18. package/dist/components/Chat/A2UIView/a2ui.types.d.ts +119 -0
  19. package/dist/components/Chat/A2UIView/a2ui.types.js +85 -0
  20. package/dist/components/Chat/A2UIView/index.d.ts +102 -0
  21. package/dist/components/Chat/A2UIView/index.js +7 -0
  22. package/dist/components/Chat/ChatMessage/ChatMessage.svelte +4 -1
  23. package/dist/components/Chat/index.d.ts +2 -0
  24. package/dist/components/Chat/index.js +1 -0
  25. package/dist/components/CopyButton/copy-button.variants.d.ts +4 -4
  26. package/dist/i18n/index.d.ts +398 -2
  27. package/dist/primitives/Alert/alert.variants.d.ts +8 -8
  28. package/dist/primitives/JourneyTimeline/journey-timeline.variants.d.ts +22 -22
  29. package/dist/primitives/JourneyTimeline/journey-timeline.variants.js +3 -1
  30. package/dist/primitives/Spinner/spinner.variants.d.ts +16 -16
  31. package/dist/primitives/Stepper/stepper.variants.d.ts +11 -11
  32. package/dist/primitives/Toast/toast.variants.d.ts +12 -12
  33. package/dist/primitives/Tooltip/tooltip.variants.d.ts +3 -3
  34. package/dist/style/semantic.css +11 -3
  35. package/package.json +3 -3
@@ -1,19 +1,19 @@
1
1
  import { type SlotNames, type VariantProps } from '../../utils/variants.js';
2
2
  export declare const tooltipVariants: ((props?: {
3
3
  open?: boolean | undefined;
4
- intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | "info" | undefined;
4
+ intent?: "info" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
5
5
  size?: "sm" | "md" | "lg" | undefined;
6
6
  } | undefined) => {
7
7
  base: (props?: ({
8
8
  open?: boolean | undefined;
9
- intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | "info" | undefined;
9
+ intent?: "info" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
10
10
  size?: "sm" | "md" | "lg" | undefined;
11
11
  } & {
12
12
  class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
13
13
  }) | undefined) => string;
14
14
  arrow: (props?: ({
15
15
  open?: boolean | undefined;
16
- intent?: "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | "info" | undefined;
16
+ intent?: "info" | "primary" | "secondary" | "success" | "warning" | "danger" | "neutral" | undefined;
17
17
  size?: "sm" | "md" | "lg" | undefined;
18
18
  } & {
19
19
  class?: string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | (string | number | false | /*elided*/ any | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined)[] | Record<string, boolean | null | undefined> | null | undefined;
@@ -45,9 +45,17 @@
45
45
  --color-skeleton-shimmer: light-dark(oklch(1 0 0 / 0.5), oklch(1 0 0 / 0.1));
46
46
 
47
47
  /* === TEXT ===
48
- tertiary/quaternary shifted darker (light) so informative text on
49
- surface-base passes WCAG AA 4.5:1. Previous values (neutral-500/400)
50
- gave ~3.7/~2.1 respectively. */
48
+ primary/secondary/tertiary are the informative-text ramp: each clears
49
+ WCAG AA 4.5:1 on every reading surface (base/quiet/elevated/overlay/subtle)
50
+ in both modes — measured by style/contrast.test.ts ("informative text on
51
+ reading surfaces"). tertiary was shifted darker (light) for exactly this.
52
+
53
+ quaternary is a MARK-ONLY token — placeholders, dense-grid marks (calendar
54
+ day cells, kbd hints), disabled glyphs, decoration. It sits at the AA edge
55
+ on reading surfaces (4.58–4.85:1 light) and drops BELOW AA on interactive/
56
+ pressed surfaces (4.19/3.49) and hard below it under the docs Rooms skin
57
+ (docs-softer, 1.96:1). Never use it for body text — reach for tertiary. The
58
+ contrast test asserts it only against the 3:1 UI-component floor, not 4.5. */
51
59
  --color-text-primary: light-dark(var(--color-neutral-900), var(--color-neutral-100));
52
60
  --color-text-inverted: light-dark(var(--color-neutral-0), var(--color-neutral-900));
53
61
  --color-text-secondary: light-dark(var(--color-neutral-700), var(--color-neutral-300));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@urbicon-ui/blocks",
3
- "version": "6.38.0",
3
+ "version": "6.40.1",
4
4
  "description": "Svelte 5 UI component library with Tailwind CSS 4, OKLCH design tokens and zero runtime dependencies",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -93,8 +93,8 @@
93
93
  "@sveltejs/package": "^2.5.8",
94
94
  "@sveltejs/vite-plugin-svelte": "^7.0.0",
95
95
  "@tailwindcss/vite": "^4.3.1",
96
- "@urbicon-ui/i18n": "6.38.0",
97
- "@urbicon-ui/shared-types": "6.38.0",
96
+ "@urbicon-ui/i18n": "6.40.1",
97
+ "@urbicon-ui/shared-types": "6.40.1",
98
98
  "prettier": "^3.8.4",
99
99
  "prettier-plugin-svelte": "^4.1.1",
100
100
  "prettier-plugin-tailwindcss": "^0.8.0",