@walco-ai/claude-plugin-design-system 0.0.0-stage → 0.4.0

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 (53) hide show
  1. package/LICENSE +25 -0
  2. package/README.md +35 -2
  3. package/dist/breakpoints.d.ts +10 -0
  4. package/dist/components/AppHeader/AppHeader.d.ts +23 -0
  5. package/dist/components/Badge/Badge.d.ts +9 -0
  6. package/dist/components/Banner/Banner.d.ts +23 -0
  7. package/dist/components/Button/Button.d.ts +13 -0
  8. package/dist/components/Card/Card.d.ts +12 -0
  9. package/dist/components/ChangeBar/ChangeBar.d.ts +9 -0
  10. package/dist/components/Checkbox/Checkbox.d.ts +3 -0
  11. package/dist/components/CollapsibleRow/CollapsibleRow.d.ts +24 -0
  12. package/dist/components/Field/Field.d.ts +18 -0
  13. package/dist/components/Figure/Figure.d.ts +10 -0
  14. package/dist/components/FilterChip/FilterChip.d.ts +14 -0
  15. package/dist/components/Icon/Icon.d.ts +12 -0
  16. package/dist/components/Icon/icons.d.ts +34 -0
  17. package/dist/components/IconButton/IconButton.d.ts +10 -0
  18. package/dist/components/Link/Link.d.ts +8 -0
  19. package/dist/components/LiveIndicator/LiveIndicator.d.ts +10 -0
  20. package/dist/components/PillButton/PillButton.d.ts +13 -0
  21. package/dist/components/ProgressBar/ProgressBar.d.ts +12 -0
  22. package/dist/components/Prose/Prose.d.ts +13 -0
  23. package/dist/components/Radio/Choice.d.ts +10 -0
  24. package/dist/components/Radio/Radio.d.ts +3 -0
  25. package/dist/components/ScrollArea/ScrollArea.d.ts +12 -0
  26. package/dist/components/SegmentedControl/SegmentedControl.d.ts +17 -0
  27. package/dist/components/StatusBadge/StatusBadge.d.ts +9 -0
  28. package/dist/components/StatusDot/StatusDot.d.ts +13 -0
  29. package/dist/components/Tabs/Tabs.d.ts +17 -0
  30. package/dist/components/TextArea/TextArea.d.ts +10 -0
  31. package/dist/components/TextField/TextField.d.ts +10 -0
  32. package/dist/components/TruncatedPath/TruncatedPath.d.ts +7 -0
  33. package/dist/components/VisuallyHidden/VisuallyHidden.d.ts +7 -0
  34. package/dist/fonts/OFL.txt +94 -0
  35. package/dist/fonts/fonts.css +91 -0
  36. package/dist/fonts/ibm-plex-mono-latin-400-normal.woff2 +0 -0
  37. package/dist/fonts/ibm-plex-mono-latin-500-normal.woff2 +0 -0
  38. package/dist/fonts/ibm-plex-mono-latin-ext-400-normal.woff2 +0 -0
  39. package/dist/fonts/ibm-plex-mono-latin-ext-500-normal.woff2 +0 -0
  40. package/dist/fonts/ibm-plex-sans-latin-400-normal.woff2 +0 -0
  41. package/dist/fonts/ibm-plex-sans-latin-500-normal.woff2 +0 -0
  42. package/dist/fonts/ibm-plex-sans-latin-600-normal.woff2 +0 -0
  43. package/dist/fonts/ibm-plex-sans-latin-ext-400-normal.woff2 +0 -0
  44. package/dist/fonts/ibm-plex-sans-latin-ext-500-normal.woff2 +0 -0
  45. package/dist/fonts/ibm-plex-sans-latin-ext-600-normal.woff2 +0 -0
  46. package/dist/index.d.ts +30 -0
  47. package/dist/index.js +758 -0
  48. package/dist/internal/cx.d.ts +2 -0
  49. package/dist/internal/tone.d.ts +2 -0
  50. package/dist/internal/useIndicator.d.ts +9 -0
  51. package/dist/internal/useTonePulse.d.ts +5 -0
  52. package/dist/styles.css +2010 -0
  53. package/package.json +33 -4
@@ -0,0 +1,2 @@
1
+ /** Joins the class names that are set. */
2
+ export declare function cx(...names: readonly (string | false | undefined)[]): string;
@@ -0,0 +1,2 @@
1
+ /** The tones a badge, a status badge, a filter chip or a pill button takes: each names a background and the text drawn on it. */
2
+ export type Tone = "neutral" | "info" | "accent" | "queued" | "waiting" | "success" | "danger";
@@ -0,0 +1,9 @@
1
+ import { type RefObject } from "react";
2
+ /**
3
+ * Measures the element of `container` that matches `selector` and writes its box on the container as the custom
4
+ * properties --cpds-indicator-x, -y, -w and -h, so that one block drawn by the container can sit behind it.
5
+ * The container must be the offset parent of the element. It gets `data-indicator-ready` one frame after its first
6
+ * measure, so that the block is placed at once on the first render and slides only afterwards. A change of width
7
+ * measures again.
8
+ */
9
+ export declare function useIndicator(container: RefObject<HTMLElement | null>, selector: string, dependency: unknown): void;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * The class that restarts a one-off pulse each time `tone` changes, none before the first change.
3
+ * Two identical keyframes alternate, so that the pulse restarts without remounting the element.
4
+ */
5
+ export declare function useTonePulse(tone: string): string | undefined;