@velocity-astro/cms-ui 0.1.0-beta.6 → 0.1.0-beta.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.
Files changed (145) hide show
  1. package/component-registry.json +50 -3
  2. package/dist/components/Grid/Grid.variants.d.ts +1 -0
  3. package/dist/components/Grid/Grid.variants.d.ts.map +1 -1
  4. package/dist/components/Grid/Grid.variants.js +4 -3
  5. package/dist/components/Grid/Grid.variants.js.map +1 -1
  6. package/dist/components/Logo/Logo.d.ts +1 -1
  7. package/dist/components/Logo/Logo.d.ts.map +1 -1
  8. package/dist/components/Logo/Logo.js +3 -3
  9. package/dist/components/Logo/Logo.js.map +1 -1
  10. package/dist/components/Logo/Logo.variants.d.ts +5 -2
  11. package/dist/components/Logo/Logo.variants.d.ts.map +1 -1
  12. package/dist/components/Logo/Logo.variants.js +10 -1
  13. package/dist/components/Logo/Logo.variants.js.map +1 -1
  14. package/dist/components/Meter/Meter.d.ts +13 -0
  15. package/dist/components/Meter/Meter.d.ts.map +1 -0
  16. package/dist/components/Meter/Meter.js +8 -0
  17. package/dist/components/Meter/Meter.js.map +1 -0
  18. package/dist/components/Meter/Meter.variants.d.ts +14 -0
  19. package/dist/components/Meter/Meter.variants.d.ts.map +1 -0
  20. package/dist/components/Meter/Meter.variants.js +39 -0
  21. package/dist/components/Meter/Meter.variants.js.map +1 -0
  22. package/dist/components/Meter/index.d.ts +2 -0
  23. package/dist/components/Meter/index.d.ts.map +1 -0
  24. package/dist/components/Meter/index.js +2 -0
  25. package/dist/components/Meter/index.js.map +1 -0
  26. package/dist/components/Segmented/Segmented.d.ts +9 -1
  27. package/dist/components/Segmented/Segmented.d.ts.map +1 -1
  28. package/dist/components/Segmented/Segmented.js +8 -5
  29. package/dist/components/Segmented/Segmented.js.map +1 -1
  30. package/dist/components/Segmented/Segmented.variants.d.ts +7 -0
  31. package/dist/components/Segmented/Segmented.variants.d.ts.map +1 -1
  32. package/dist/components/Segmented/Segmented.variants.js +9 -1
  33. package/dist/components/Segmented/Segmented.variants.js.map +1 -1
  34. package/dist/components/Table/Table.d.ts +9 -2
  35. package/dist/components/Table/Table.d.ts.map +1 -1
  36. package/dist/components/Table/Table.js +14 -2
  37. package/dist/components/Table/Table.js.map +1 -1
  38. package/dist/components/Table/Table.variants.d.ts.map +1 -1
  39. package/dist/components/Table/Table.variants.js +4 -1
  40. package/dist/components/Table/Table.variants.js.map +1 -1
  41. package/dist/components/index.d.ts +1 -0
  42. package/dist/components/index.d.ts.map +1 -1
  43. package/dist/components/index.js +1 -0
  44. package/dist/components/index.js.map +1 -1
  45. package/dist/components/scales.d.ts +2 -2
  46. package/dist/components/scales.d.ts.map +1 -1
  47. package/dist/components/scales.js +4 -2
  48. package/dist/components/scales.js.map +1 -1
  49. package/dist/patterns/AppShell/AppShell.d.ts +33 -7
  50. package/dist/patterns/AppShell/AppShell.d.ts.map +1 -1
  51. package/dist/patterns/AppShell/AppShell.js +29 -7
  52. package/dist/patterns/AppShell/AppShell.js.map +1 -1
  53. package/dist/patterns/AppShell/AppShell.variants.d.ts +63 -20
  54. package/dist/patterns/AppShell/AppShell.variants.d.ts.map +1 -1
  55. package/dist/patterns/AppShell/AppShell.variants.js +97 -23
  56. package/dist/patterns/AppShell/AppShell.variants.js.map +1 -1
  57. package/dist/patterns/AppShell/index.d.ts +1 -1
  58. package/dist/patterns/AppShell/index.d.ts.map +1 -1
  59. package/dist/patterns/AppShell/index.js.map +1 -1
  60. package/dist/patterns/CommandPalette/CommandPalette.d.ts +36 -0
  61. package/dist/patterns/CommandPalette/CommandPalette.d.ts.map +1 -0
  62. package/dist/patterns/CommandPalette/CommandPalette.js +18 -0
  63. package/dist/patterns/CommandPalette/CommandPalette.js.map +1 -0
  64. package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts +18 -0
  65. package/dist/patterns/CommandPalette/CommandPalette.variants.d.ts.map +1 -0
  66. package/dist/patterns/CommandPalette/CommandPalette.variants.js +21 -0
  67. package/dist/patterns/CommandPalette/CommandPalette.variants.js.map +1 -0
  68. package/dist/patterns/CommandPalette/index.d.ts +2 -0
  69. package/dist/patterns/CommandPalette/index.d.ts.map +1 -0
  70. package/dist/patterns/CommandPalette/index.js +2 -0
  71. package/dist/patterns/CommandPalette/index.js.map +1 -0
  72. package/dist/patterns/ImagePicker/ImagePicker.d.ts +9 -1
  73. package/dist/patterns/ImagePicker/ImagePicker.d.ts.map +1 -1
  74. package/dist/patterns/ImagePicker/ImagePicker.js +13 -8
  75. package/dist/patterns/ImagePicker/ImagePicker.js.map +1 -1
  76. package/dist/patterns/Outline/Outline.d.ts +26 -0
  77. package/dist/patterns/Outline/Outline.d.ts.map +1 -0
  78. package/dist/patterns/Outline/Outline.js +21 -0
  79. package/dist/patterns/Outline/Outline.js.map +1 -0
  80. package/dist/patterns/Outline/Outline.variants.d.ts +11 -0
  81. package/dist/patterns/Outline/Outline.variants.d.ts.map +1 -0
  82. package/dist/patterns/Outline/Outline.variants.js +21 -0
  83. package/dist/patterns/Outline/Outline.variants.js.map +1 -0
  84. package/dist/patterns/Outline/index.d.ts +2 -0
  85. package/dist/patterns/Outline/index.d.ts.map +1 -0
  86. package/dist/patterns/Outline/index.js +2 -0
  87. package/dist/patterns/Outline/index.js.map +1 -0
  88. package/dist/patterns/PageHeader/PageHeader.variants.d.ts +3 -2
  89. package/dist/patterns/PageHeader/PageHeader.variants.d.ts.map +1 -1
  90. package/dist/patterns/PageHeader/PageHeader.variants.js +3 -2
  91. package/dist/patterns/PageHeader/PageHeader.variants.js.map +1 -1
  92. package/dist/patterns/PagePreview/PagePreview.d.ts +76 -3
  93. package/dist/patterns/PagePreview/PagePreview.d.ts.map +1 -1
  94. package/dist/patterns/PagePreview/PagePreview.js +111 -12
  95. package/dist/patterns/PagePreview/PagePreview.js.map +1 -1
  96. package/dist/patterns/PagePreview/PagePreview.variants.d.ts +11 -1
  97. package/dist/patterns/PagePreview/PagePreview.variants.d.ts.map +1 -1
  98. package/dist/patterns/PagePreview/PagePreview.variants.js +17 -5
  99. package/dist/patterns/PagePreview/PagePreview.variants.js.map +1 -1
  100. package/dist/patterns/PagePreview/index.d.ts +1 -1
  101. package/dist/patterns/PagePreview/index.d.ts.map +1 -1
  102. package/dist/patterns/PagePreview/index.js.map +1 -1
  103. package/dist/patterns/SaveBar/SaveBar.variants.d.ts +3 -2
  104. package/dist/patterns/SaveBar/SaveBar.variants.d.ts.map +1 -1
  105. package/dist/patterns/SaveBar/SaveBar.variants.js +5 -4
  106. package/dist/patterns/SaveBar/SaveBar.variants.js.map +1 -1
  107. package/dist/patterns/SiteWindow/SiteWindow.d.ts +20 -0
  108. package/dist/patterns/SiteWindow/SiteWindow.d.ts.map +1 -0
  109. package/dist/patterns/SiteWindow/SiteWindow.js +8 -0
  110. package/dist/patterns/SiteWindow/SiteWindow.js.map +1 -0
  111. package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts +24 -0
  112. package/dist/patterns/SiteWindow/SiteWindow.variants.d.ts.map +1 -0
  113. package/dist/patterns/SiteWindow/SiteWindow.variants.js +25 -0
  114. package/dist/patterns/SiteWindow/SiteWindow.variants.js.map +1 -0
  115. package/dist/patterns/SiteWindow/index.d.ts +2 -0
  116. package/dist/patterns/SiteWindow/index.d.ts.map +1 -0
  117. package/dist/patterns/SiteWindow/index.js +2 -0
  118. package/dist/patterns/SiteWindow/index.js.map +1 -0
  119. package/dist/patterns/Welcome/Welcome.d.ts +18 -0
  120. package/dist/patterns/Welcome/Welcome.d.ts.map +1 -0
  121. package/dist/patterns/Welcome/Welcome.js +14 -0
  122. package/dist/patterns/Welcome/Welcome.js.map +1 -0
  123. package/dist/patterns/Welcome/Welcome.variants.d.ts +12 -0
  124. package/dist/patterns/Welcome/Welcome.variants.d.ts.map +1 -0
  125. package/dist/patterns/Welcome/Welcome.variants.js +12 -0
  126. package/dist/patterns/Welcome/Welcome.variants.js.map +1 -0
  127. package/dist/patterns/Welcome/index.d.ts +2 -0
  128. package/dist/patterns/Welcome/index.d.ts.map +1 -0
  129. package/dist/patterns/Welcome/index.js +2 -0
  130. package/dist/patterns/Welcome/index.js.map +1 -0
  131. package/dist/patterns/Workbench/Workbench.d.ts +8 -4
  132. package/dist/patterns/Workbench/Workbench.d.ts.map +1 -1
  133. package/dist/patterns/Workbench/Workbench.js +7 -6
  134. package/dist/patterns/Workbench/Workbench.js.map +1 -1
  135. package/dist/patterns/Workbench/Workbench.variants.d.ts +6 -1
  136. package/dist/patterns/Workbench/Workbench.variants.d.ts.map +1 -1
  137. package/dist/patterns/Workbench/Workbench.variants.js +8 -3
  138. package/dist/patterns/Workbench/Workbench.variants.js.map +1 -1
  139. package/dist/patterns/index.d.ts +4 -0
  140. package/dist/patterns/index.d.ts.map +1 -1
  141. package/dist/patterns/index.js +4 -0
  142. package/dist/patterns/index.js.map +1 -1
  143. package/package.json +1 -1
  144. package/src/styles.css +38 -0
  145. package/src/tokens/tokens.css +21 -1
@@ -166,6 +166,15 @@
166
166
  "useInstead": "ImagePicker to choose an image.",
167
167
  "uses": []
168
168
  },
169
+ {
170
+ "name": "Meter",
171
+ "layer": "component",
172
+ "group": "Data",
173
+ "description": "How far something is toward a whole, as a bar in the brand's colour with its words above it.",
174
+ "example": "<Meter label=\"November target\" value={13800} max={20000} valueText=\"69% of $20,000\" />",
175
+ "useInstead": "Spinner or LoadingState for something still loading.",
176
+ "uses": []
177
+ },
169
178
  {
170
179
  "name": "Stat",
171
180
  "layer": "component",
@@ -337,14 +346,52 @@
337
346
  "IconButton"
338
347
  ]
339
348
  },
349
+ {
350
+ "name": "CommandPalette",
351
+ "layer": "pattern",
352
+ "group": "Overlays",
353
+ "description": "A window to find anything by typing and go there: a box, and under it the matches in groups.",
354
+ "example": "<CommandPalette isOpen={isOpen} onOpenChange={setOpen} label=\"Search and commands\" placeholder=\"Search, jump to or create anything\" emptyText=\"Nothing matches that.\" groups={groups} onAction={run} />",
355
+ "useInstead": "SearchField to narrow down one list on a screen.",
356
+ "uses": []
357
+ },
358
+ {
359
+ "name": "Welcome",
360
+ "layer": "pattern",
361
+ "group": "Page",
362
+ "description": "The top of a screen that greets the person: what matters now in large words, one phrase set apart, what to do first, and the site beside it.",
363
+ "example": "<Welcome eyebrow=\"Saturday, 21 November\" title=\"Good morning, Dana. 3 drafts are waiting.\" highlight=\"3 drafts\" actions={actions} aside={preview} />",
364
+ "useInstead": "PageHeader for the top of every other screen.",
365
+ "uses": []
366
+ },
367
+ {
368
+ "name": "SiteWindow",
369
+ "layer": "pattern",
370
+ "group": "Page",
371
+ "description": "A page of the site in a small browser window, as visitors see it now. The whole card is one link.",
372
+ "example": "<SiteWindow address=\"lakeshore.example\" src=\"/\" title=\"The home page\" label=\"Edit the home page\" meta=\"Published 3 days ago\" onPress={edit} />",
373
+ "useInstead": "PagePreview to see and work on a draft.",
374
+ "uses": []
375
+ },
376
+ {
377
+ "name": "Outline",
378
+ "layer": "pattern",
379
+ "group": "Navigation",
380
+ "description": "The parts of something long, by name and in order, with the current one marked. Choosing one goes to it.",
381
+ "example": "<Outline title=\"Sections\" items={sections} currentId={current} onChoose={goTo} emptyText=\"No sections yet.\" />",
382
+ "useInstead": "SectionList to put sections in order and edit them.",
383
+ "uses": []
384
+ },
340
385
  {
341
386
  "name": "AppShell",
342
387
  "layer": "pattern",
343
388
  "group": "Page",
344
- "description": "The frame around every screen: the sidebar with its navigation, and the main area.",
345
- "example": "<AppShell siteName=\"Lakeshore Realty\" navLabel=\"Main\" skipLabel=\"Skip to content\" nav={groups} account={account}>…</AppShell>",
389
+ "description": "The frame around every screen: the rail of sections, the current section's places beside it, the bar with the search, and the main area.",
390
+ "example": "<AppShell logoLabel=\"Velocity\" siteName=\"Lakeshore Realty\" navLabel=\"Main\" skipLabel=\"Skip to content\" search={search} nav={groups} account={account}>…</AppShell>",
346
391
  "uses": [
347
- "Menu"
392
+ "Logo",
393
+ "Menu",
394
+ "Tooltip"
348
395
  ]
349
396
  },
350
397
  {
@@ -1,4 +1,5 @@
1
1
  import { type VariantProps } from 'class-variance-authority';
2
+ /** Columns are for a window with room for them: a narrow one stacks them, or halves four. */
2
3
  export declare const gridVariants: (props?: ({
3
4
  gap?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | null | undefined;
4
5
  columns?: 1 | 2 | 3 | 4 | null | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,eAAO,MAAM,YAAY;;;8EAWvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"Grid.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Grid/Grid.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAGlE,6FAA6F;AAC7F,eAAO,MAAM,YAAY;;;8EAWvB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -1,13 +1,14 @@
1
1
  import { cva } from 'class-variance-authority';
2
2
  import { gap } from '../scales.js';
3
+ /** Columns are for a window with room for them: a narrow one stacks them, or halves four. */
3
4
  export const gridVariants = cva('grid', {
4
5
  variants: {
5
6
  gap,
6
7
  columns: {
7
8
  1: 'grid-cols-1',
8
- 2: 'grid-cols-2',
9
- 3: 'grid-cols-3',
10
- 4: 'grid-cols-4',
9
+ 2: 'grid-cols-1 md:grid-cols-2',
10
+ 3: 'grid-cols-1 md:grid-cols-3',
11
+ 4: 'grid-cols-2 md:grid-cols-4',
11
12
  },
12
13
  },
13
14
  defaultVariants: { gap: 4, columns: 2 },
@@ -1 +1 @@
1
- {"version":3,"file":"Grid.variants.js","sourceRoot":"","sources":["../../../src/components/Grid/Grid.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,EAAE;IACtC,QAAQ,EAAE;QACR,GAAG;QACH,OAAO,EAAE;YACP,CAAC,EAAE,aAAa;YAChB,CAAC,EAAE,aAAa;YAChB,CAAC,EAAE,aAAa;YAChB,CAAC,EAAE,aAAa;SACjB;KACF;IACD,eAAe,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;CACxC,CAAC,CAAC"}
1
+ {"version":3,"file":"Grid.variants.js","sourceRoot":"","sources":["../../../src/components/Grid/Grid.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,6FAA6F;AAC7F,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC,MAAM,EAAE;IACtC,QAAQ,EAAE;QACR,GAAG;QACH,OAAO,EAAE;YACP,CAAC,EAAE,aAAa;YAChB,CAAC,EAAE,4BAA4B;YAC/B,CAAC,EAAE,4BAA4B;YAC/B,CAAC,EAAE,4BAA4B;SAChC;KACF;IACD,eAAe,EAAE,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;CACxC,CAAC,CAAC"}
@@ -4,5 +4,5 @@ export interface LogoProps extends LogoVariants {
4
4
  readonly label: string;
5
5
  }
6
6
  /** The Velocity mark. */
7
- export declare function Logo({ label, size }: LogoProps): import("react").JSX.Element;
7
+ export declare function Logo({ label, size, tone }: LogoProps): import("react").JSX.Element;
8
8
  //# sourceMappingURL=Logo.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/components/Logo/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgD,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAErG,MAAM,WAAW,SAAU,SAAQ,YAAY;IAC7C,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,yBAAyB;AACzB,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,EAAE,SAAS,+BAiB9C"}
1
+ {"version":3,"file":"Logo.d.ts","sourceRoot":"","sources":["../../../src/components/Logo/Logo.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAmD,KAAK,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAExG,MAAM,WAAW,SAAU,SAAQ,YAAY;IAC7C,wEAAwE;IACxE,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;CACxB;AAED,yBAAyB;AACzB,wBAAgB,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,EAAE,SAAS,+BAiBpD"}
@@ -1,7 +1,7 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { logoAccentClass, logoBodyClass, logoVariants } from './Logo.variants.js';
2
+ import { logoAccentClass, logoBodyVariants, logoVariants } from './Logo.variants.js';
3
3
  /** The Velocity mark. */
4
- export function Logo({ label, size }) {
5
- return (_jsxs("svg", { role: "img", "aria-label": label, viewBox: "0 0 90 101", className: logoVariants({ size }), children: [_jsx("path", { className: logoAccentClass, d: "M35.1288 23.8398L45.1667 49.4151L56.2482 23.8398H87.1082C86.5647 23.3764 85.9776 22.9637 85.3616 22.5944L48.6165 0.704798C46.377 -0.0699896 43.4273 -0.439281 41.2675 0.842377L3.36286 23.3692C3.13819 23.5067 2.92801 23.666 2.72508 23.8326H35.1288V23.8398Z" }), _jsx("path", { className: logoBodyClass, d: "M0.144951 28.8578C0.079723 29.2851 0.0434853 29.7123 0.0434853 30.1323L0 72.036C0 76.1778 1.95684 78.3936 5.26172 80.3631L39.4919 100.703L0.144951 28.8578Z" }), _jsx("path", { className: logoBodyClass, d: "M89.9203 28.7058L50.0588 101L86.6661 79.1539C88.7027 77.9374 90 75.0265 90 72.6442L89.9783 29.6037C89.9783 29.2923 89.9493 28.9954 89.913 28.6985L89.9203 28.7058Z" })] }));
4
+ export function Logo({ label, size, tone }) {
5
+ return (_jsxs("svg", { role: "img", "aria-label": label, viewBox: "0 0 90 101", className: logoVariants({ size }), children: [_jsx("path", { className: logoAccentClass, d: "M35.1288 23.8398L45.1667 49.4151L56.2482 23.8398H87.1082C86.5647 23.3764 85.9776 22.9637 85.3616 22.5944L48.6165 0.704798C46.377 -0.0699896 43.4273 -0.439281 41.2675 0.842377L3.36286 23.3692C3.13819 23.5067 2.92801 23.666 2.72508 23.8326H35.1288V23.8398Z" }), _jsx("path", { className: logoBodyVariants({ tone }), d: "M0.144951 28.8578C0.079723 29.2851 0.0434853 29.7123 0.0434853 30.1323L0 72.036C0 76.1778 1.95684 78.3936 5.26172 80.3631L39.4919 100.703L0.144951 28.8578Z" }), _jsx("path", { className: logoBodyVariants({ tone }), d: "M89.9203 28.7058L50.0588 101L86.6661 79.1539C88.7027 77.9374 90 75.0265 90 72.6442L89.9783 29.6037C89.9783 29.2923 89.9493 28.9954 89.913 28.6985L89.9203 28.7058Z" })] }));
6
6
  }
7
7
  //# sourceMappingURL=Logo.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/components/Logo/Logo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,YAAY,EAAqB,MAAM,oBAAoB,CAAC;AAOrG,yBAAyB;AACzB,MAAM,UAAU,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAa;IAC7C,OAAO,CACL,eAAK,IAAI,EAAC,KAAK,gBAAa,KAAK,EAAE,OAAO,EAAC,YAAY,EAAC,SAAS,EAAE,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,aACvF,eACE,SAAS,EAAE,eAAe,EAC1B,CAAC,EAAC,gQAAgQ,GAClQ,EACF,eACE,SAAS,EAAE,aAAa,EACxB,CAAC,EAAC,6JAA6J,GAC/J,EACF,eACE,SAAS,EAAE,aAAa,EACxB,CAAC,EAAC,oKAAoK,GACtK,IACE,CACP,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"Logo.js","sourceRoot":"","sources":["../../../src/components/Logo/Logo.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,YAAY,EAAqB,MAAM,oBAAoB,CAAC;AAOxG,yBAAyB;AACzB,MAAM,UAAU,IAAI,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,IAAI,EAAa;IACnD,OAAO,CACL,eAAK,IAAI,EAAC,KAAK,gBAAa,KAAK,EAAE,OAAO,EAAC,YAAY,EAAC,SAAS,EAAE,YAAY,CAAC,EAAE,IAAI,EAAE,CAAC,aACvF,eACE,SAAS,EAAE,eAAe,EAC1B,CAAC,EAAC,gQAAgQ,GAClQ,EACF,eACE,SAAS,EAAE,gBAAgB,CAAC,EAAE,IAAI,EAAE,CAAC,EACrC,CAAC,EAAC,6JAA6J,GAC/J,EACF,eACE,SAAS,EAAE,gBAAgB,CAAC,EAAE,IAAI,EAAE,CAAC,EACrC,CAAC,EAAC,oKAAoK,GACtK,IACE,CACP,CAAC;AACJ,CAAC"}
@@ -4,6 +4,9 @@ export declare const logoVariants: (props?: ({
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  /** The top of the mark is the brand colour; the rest follows the text, so it works in the dark. */
6
6
  export declare const logoAccentClass = "fill-brand-fill";
7
- export declare const logoBodyClass = "fill-foreground";
8
- export type LogoVariants = VariantProps<typeof logoVariants>;
7
+ /** The rest of the mark: the text's colour on the page, light on the rail, which is dark in both themes. */
8
+ export declare const logoBodyVariants: (props?: ({
9
+ tone?: "default" | "rail" | null | undefined;
10
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
11
+ export type LogoVariants = VariantProps<typeof logoVariants> & VariantProps<typeof logoBodyVariants>;
9
12
  //# sourceMappingURL=Logo.variants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Logo/Logo.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,YAAY;;8EASvB,CAAC;AAEH,mGAAmG;AACnG,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,eAAO,MAAM,aAAa,oBAAoB,CAAC;AAE/C,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"Logo.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Logo/Logo.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,eAAO,MAAM,YAAY;;8EASvB,CAAC;AAEH,mGAAmG;AACnG,eAAO,MAAM,eAAe,oBAAoB,CAAC;AACjD,4GAA4G;AAC5G,eAAO,MAAM,gBAAgB;;8EAQ3B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,YAAY,CAAC,OAAO,YAAY,CAAC,GAAG,YAAY,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -11,5 +11,14 @@ export const logoVariants = cva('shrink-0', {
11
11
  });
12
12
  /** The top of the mark is the brand colour; the rest follows the text, so it works in the dark. */
13
13
  export const logoAccentClass = 'fill-brand-fill';
14
- export const logoBodyClass = 'fill-foreground';
14
+ /** The rest of the mark: the text's colour on the page, light on the rail, which is dark in both themes. */
15
+ export const logoBodyVariants = cva('', {
16
+ variants: {
17
+ tone: {
18
+ default: 'fill-foreground',
19
+ rail: 'fill-rail-foreground',
20
+ },
21
+ },
22
+ defaultVariants: { tone: 'default' },
23
+ });
15
24
  //# sourceMappingURL=Logo.variants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Logo.variants.js","sourceRoot":"","sources":["../../../src/components/Logo/Logo.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC,UAAU,EAAE;IAC1C,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;SACd;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;CAChC,CAAC,CAAC;AAEH,mGAAmG;AACnG,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AACjD,MAAM,CAAC,MAAM,aAAa,GAAG,iBAAiB,CAAC"}
1
+ {"version":3,"file":"Logo.variants.js","sourceRoot":"","sources":["../../../src/components/Logo/Logo.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,MAAM,CAAC,MAAM,YAAY,GAAG,GAAG,CAAC,UAAU,EAAE;IAC1C,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;SACd;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE;CAChC,CAAC,CAAC;AAEH,mGAAmG;AACnG,MAAM,CAAC,MAAM,eAAe,GAAG,iBAAiB,CAAC;AACjD,4GAA4G;AAC5G,MAAM,CAAC,MAAM,gBAAgB,GAAG,GAAG,CAAC,EAAE,EAAE;IACtC,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,OAAO,EAAE,iBAAiB;YAC1B,IAAI,EAAE,sBAAsB;SAC7B;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;CACrC,CAAC,CAAC"}
@@ -0,0 +1,13 @@
1
+ export interface MeterProps {
2
+ /** What is measured: "November target". */
3
+ readonly label: string;
4
+ /** How far along it is. Past `max`, the bar is full. */
5
+ readonly value: number;
6
+ /** What counts as all of it. */
7
+ readonly max: number;
8
+ /** How far along, in words, at the end of the line and read out: "69% of $20,000". */
9
+ readonly valueText: string;
10
+ }
11
+ /** How far something is toward a whole, as a bar with its words above it. */
12
+ export declare function Meter({ label, value, max, valueText }: MeterProps): import("react").JSX.Element;
13
+ //# sourceMappingURL=Meter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Meter.d.ts","sourceRoot":"","sources":["../../../src/components/Meter/Meter.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,UAAU;IACzB,2CAA2C;IAC3C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,wDAAwD;IACxD,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,sFAAsF;IACtF,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;CAC5B;AAED,6EAA6E;AAC7E,wBAAgB,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,UAAU,+BAgBjE"}
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
2
+ import { Label, Meter as AriaMeter } from 'react-aria-components';
3
+ import { meterClass, meterFillVariants, meterHeadClass, meterLabelClass, meterTrackClass, meterValueClass } from './Meter.variants.js';
4
+ /** How far something is toward a whole, as a bar with its words above it. */
5
+ export function Meter({ label, value, max, valueText }) {
6
+ return (_jsx(AriaMeter, { className: meterClass, value: Math.min(value, max), minValue: 0, maxValue: max, valueLabel: valueText, children: ({ percentage, valueText: said }) => (_jsxs(_Fragment, { children: [_jsxs("span", { className: meterHeadClass, children: [_jsx(Label, { className: meterLabelClass, children: label }), _jsx("span", { className: meterValueClass, children: said })] }), _jsx("span", { className: meterTrackClass, children: _jsx("span", { className: meterFillVariants({ step: Math.min(20, Math.max(0, Math.round(percentage / 5))) }) }) })] })) }));
7
+ }
8
+ //# sourceMappingURL=Meter.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Meter.js","sourceRoot":"","sources":["../../../src/components/Meter/Meter.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,iBAAiB,EAAE,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,eAAe,EAAkB,MAAM,qBAAqB,CAAC;AAavJ,6EAA6E;AAC7E,MAAM,UAAU,KAAK,CAAC,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAc;IAChE,OAAO,CACL,KAAC,SAAS,IAAC,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,QAAQ,EAAE,GAAG,EAAE,UAAU,EAAE,SAAS,YAC7G,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,CACpC,8BACE,gBAAM,SAAS,EAAE,cAAc,aAC7B,KAAC,KAAK,IAAC,SAAS,EAAE,eAAe,YAAG,KAAK,GAAS,EAClD,eAAM,SAAS,EAAE,eAAe,YAAG,IAAI,GAAQ,IAC1C,EACP,eAAM,SAAS,EAAE,eAAe,YAC9B,eAAM,SAAS,EAAE,iBAAiB,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAc,EAAE,CAAC,GAAI,GAC/G,IACN,CACJ,GACS,CACb,CAAC;AACJ,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare const meterClass = "flex w-full flex-col gap-2";
2
+ export declare const meterHeadClass = "flex items-baseline justify-between gap-3 text-sm";
3
+ export declare const meterLabelClass = "font-medium text-foreground-muted";
4
+ export declare const meterValueClass = "font-semibold text-foreground tabular-nums";
5
+ export declare const meterTrackClass = "flex h-2 w-full overflow-hidden rounded-full bg-background-tertiary";
6
+ /**
7
+ * The brand's colour, a screen's one orange, on how far along something is. How much of the track
8
+ * it fills goes in twentieths: a width from the scale, never one made up.
9
+ */
10
+ export declare const meterFillVariants: (props?: ({
11
+ step?: 0 | 1 | 2 | 3 | 4 | 5 | 6 | 8 | 10 | 12 | 14 | 16 | 18 | 20 | 7 | 9 | 11 | 13 | 15 | 17 | 19 | null | undefined;
12
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
13
+ export type MeterStep = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20;
14
+ //# sourceMappingURL=Meter.variants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Meter.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Meter/Meter.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,+BAA+B,CAAC;AACvD,eAAO,MAAM,cAAc,sDAAsD,CAAC;AAClF,eAAO,MAAM,eAAe,sCAAsC,CAAC;AACnE,eAAO,MAAM,eAAe,+CAA+C,CAAC;AAC5E,eAAO,MAAM,eAAe,wEAAwE,CAAC;AACrG;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;8EA2B5B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC"}
@@ -0,0 +1,39 @@
1
+ import { cva } from 'class-variance-authority';
2
+ export const meterClass = 'flex w-full flex-col gap-2';
3
+ export const meterHeadClass = 'flex items-baseline justify-between gap-3 text-sm';
4
+ export const meterLabelClass = 'font-medium text-foreground-muted';
5
+ export const meterValueClass = 'font-semibold text-foreground tabular-nums';
6
+ export const meterTrackClass = 'flex h-2 w-full overflow-hidden rounded-full bg-background-tertiary';
7
+ /**
8
+ * The brand's colour, a screen's one orange, on how far along something is. How much of the track
9
+ * it fills goes in twentieths: a width from the scale, never one made up.
10
+ */
11
+ export const meterFillVariants = cva('h-full rounded-full bg-brand-fill transition-all motion-slide', {
12
+ variants: {
13
+ step: {
14
+ 0: 'w-0',
15
+ 1: 'w-1/20',
16
+ 2: 'w-2/20',
17
+ 3: 'w-3/20',
18
+ 4: 'w-4/20',
19
+ 5: 'w-5/20',
20
+ 6: 'w-6/20',
21
+ 7: 'w-7/20',
22
+ 8: 'w-8/20',
23
+ 9: 'w-9/20',
24
+ 10: 'w-10/20',
25
+ 11: 'w-11/20',
26
+ 12: 'w-12/20',
27
+ 13: 'w-13/20',
28
+ 14: 'w-14/20',
29
+ 15: 'w-15/20',
30
+ 16: 'w-16/20',
31
+ 17: 'w-17/20',
32
+ 18: 'w-18/20',
33
+ 19: 'w-19/20',
34
+ 20: 'w-full',
35
+ },
36
+ },
37
+ defaultVariants: { step: 0 },
38
+ });
39
+ //# sourceMappingURL=Meter.variants.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Meter.variants.js","sourceRoot":"","sources":["../../../src/components/Meter/Meter.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,0BAA0B,CAAC;AAE/C,MAAM,CAAC,MAAM,UAAU,GAAG,4BAA4B,CAAC;AACvD,MAAM,CAAC,MAAM,cAAc,GAAG,mDAAmD,CAAC;AAClF,MAAM,CAAC,MAAM,eAAe,GAAG,mCAAmC,CAAC;AACnE,MAAM,CAAC,MAAM,eAAe,GAAG,4CAA4C,CAAC;AAC5E,MAAM,CAAC,MAAM,eAAe,GAAG,qEAAqE,CAAC;AACrG;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAC,+DAA+D,EAAE;IACpG,QAAQ,EAAE;QACR,IAAI,EAAE;YACJ,CAAC,EAAE,KAAK;YACR,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,CAAC,EAAE,QAAQ;YACX,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,SAAS;YACb,EAAE,EAAE,QAAQ;SACb;KACF;IACD,eAAe,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;CAC7B,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Meter, type MeterProps } from './Meter.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Meter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Meter } from './Meter.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/Meter/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAmB,MAAM,YAAY,CAAC"}
@@ -2,6 +2,8 @@ export interface SegmentedOption {
2
2
  readonly id: string;
3
3
  readonly label: string;
4
4
  readonly isDisabled?: boolean;
5
+ /** A colour to show beside the label, where the choice is a colour of the site's, as CSS writes one. A sample only. */
6
+ readonly swatch?: string;
5
7
  }
6
8
  export interface SegmentedProps {
7
9
  /** What is being chosen, for screen readers, such as "Show" or "Language". */
@@ -10,7 +12,13 @@ export interface SegmentedProps {
10
12
  /** The id of the option chosen. One always is. */
11
13
  readonly selected: string;
12
14
  readonly onChange: (id: string) => void;
15
+ /** Shows the label above the choices, as a field of a form has it. */
16
+ readonly isLabelShown?: boolean;
17
+ /** Help under the choices, for a field of a form. */
18
+ readonly description?: string;
19
+ /** What is wrong with the choice, shown in place of the help. */
20
+ readonly errorMessage?: string;
13
21
  }
14
22
  /** A few choices in a row, one of them always chosen: a filter over a list, or a language. */
15
- export declare function Segmented({ label, options, selected, onChange }: SegmentedProps): import("react").JSX.Element;
23
+ export declare function Segmented({ label, options, selected, onChange, isLabelShown, description, errorMessage }: SegmentedProps): import("react").JSX.Element;
16
24
  //# sourceMappingURL=Segmented.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Segmented.d.ts","sourceRoot":"","sources":["../../../src/components/Segmented/Segmented.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,WAAW,cAAc;IAC7B,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;IAC7C,kDAAkD;IAClD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACzC;AAED,8FAA8F;AAC9F,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,cAAc,+BAoB/E"}
1
+ {"version":3,"file":"Segmented.d.ts","sourceRoot":"","sources":["../../../src/components/Segmented/Segmented.tsx"],"names":[],"mappings":"AAGA,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,UAAU,CAAC,EAAE,OAAO,CAAC;IAC9B,uHAAuH;IACvH,QAAQ,CAAC,MAAM,CAAC,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,cAAc;IAC7B,8EAA8E;IAC9E,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,OAAO,EAAE,SAAS,eAAe,EAAE,CAAC;IAC7C,kDAAkD;IAClD,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,sEAAsE;IACtE,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAChC,qDAAqD;IACrD,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAC9B,iEAAiE;IACjE,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;CAChC;AAED,8FAA8F;AAC9F,wBAAgB,SAAS,CAAC,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,YAAoB,EAAE,WAAW,EAAE,YAAY,EAAE,EAAE,cAAc,+BAqChI"}
@@ -1,12 +1,15 @@
1
- import { jsx as _jsx } from "react/jsx-runtime";
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
2
  import { ToggleButton, ToggleButtonGroup } from 'react-aria-components';
3
- import { segmentedClass, segmentedOptionClass } from './Segmented.variants.js';
3
+ import { segmentedClass, segmentedDescriptionClass, segmentedErrorClass, segmentedFieldClass, segmentedLabelClass, segmentedOptionClass, segmentedSwatchClass } from './Segmented.variants.js';
4
4
  /** A few choices in a row, one of them always chosen: a filter over a list, or a language. */
5
- export function Segmented({ label, options, selected, onChange }) {
6
- return (_jsx(ToggleButtonGroup, { "aria-label": label, className: segmentedClass, selectionMode: "single", disallowEmptySelection: true, selectedKeys: [selected], onSelectionChange: (keys) => {
5
+ export function Segmented({ label, options, selected, onChange, isLabelShown = false, description, errorMessage }) {
6
+ const group = (_jsx(ToggleButtonGroup, { "aria-label": label, className: segmentedClass, selectionMode: "single", disallowEmptySelection: true, selectedKeys: [selected], onSelectionChange: (keys) => {
7
7
  const [next] = keys;
8
8
  if (next !== undefined && String(next) !== selected)
9
9
  onChange(String(next));
10
- }, children: options.map((option) => (_jsx(ToggleButton, { id: option.id, className: segmentedOptionClass, isDisabled: option.isDisabled ?? false, children: option.label }, option.id))) }));
10
+ }, children: options.map((option) => (_jsxs(ToggleButton, { id: option.id, className: segmentedOptionClass, isDisabled: option.isDisabled ?? false, children: [option.swatch !== undefined && (_jsx("svg", { "aria-hidden": "true", viewBox: "0 0 16 16", className: segmentedSwatchClass, children: _jsx("circle", { cx: "8", cy: "8", r: "7", fill: option.swatch }) })), option.label] }, option.id))) }));
11
+ if (!isLabelShown && description === undefined && errorMessage === undefined)
12
+ return group;
13
+ return (_jsxs("div", { className: segmentedFieldClass, children: [isLabelShown && (_jsx("span", { "aria-hidden": "true", className: segmentedLabelClass, children: label })), group, errorMessage !== undefined ? _jsx("p", { className: segmentedErrorClass, children: errorMessage }) : description !== undefined && _jsx("p", { className: segmentedDescriptionClass, children: description })] }));
11
14
  }
12
15
  //# sourceMappingURL=Segmented.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Segmented.js","sourceRoot":"","sources":["../../../src/components/Segmented/Segmented.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,EAAE,iBAAiB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,YAAY,KAAK,SAAS,CAAC,CAAC,CAAC,YAAG,SAAS,EAAE,mBAAmB,YAAG,YAAY,GAAK,CAAC,CAAC,CAAC,WAAW,KAAK,SAAS,IAAI,YAAG,SAAS,EAAE,yBAAyB,YAAG,WAAW,GAAK,IACzK,CACP,CAAC;AACJ,CAAC"}
@@ -1,3 +1,10 @@
1
1
  export declare const segmentedClass = "inline-flex flex-wrap gap-1";
2
2
  export declare const segmentedOptionClass: string;
3
+ /** The sample of a colour beside a choice, with a line around it so a colour like the page's still shows. */
4
+ export declare const segmentedSwatchClass = "h-4 w-4 shrink-0 stroke-border-strong";
5
+ /** The choices as a field of a form: its label above, its help or its problem under. */
6
+ export declare const segmentedFieldClass = "flex min-w-0 flex-col items-start gap-2";
7
+ export declare const segmentedLabelClass = "text-sm font-medium text-foreground";
8
+ export declare const segmentedDescriptionClass = "text-sm text-foreground-muted";
9
+ export declare const segmentedErrorClass = "motion-rise text-sm text-destructive";
3
10
  //# sourceMappingURL=Segmented.variants.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Segmented.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Segmented/Segmented.variants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,gCAAgC,CAAC;AAE5D,eAAO,MAAM,oBAAoB,QAKtB,CAAC"}
1
+ {"version":3,"file":"Segmented.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Segmented/Segmented.variants.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,gCAAgC,CAAC;AAE5D,eAAO,MAAM,oBAAoB,QAKtB,CAAC;AAEZ,6GAA6G;AAC7G,eAAO,MAAM,oBAAoB,0CAA0C,CAAC;AAE5E,wFAAwF;AACxF,eAAO,MAAM,mBAAmB,4CAA4C,CAAC;AAC7E,eAAO,MAAM,mBAAmB,wCAAkB,CAAC;AACnD,eAAO,MAAM,yBAAyB,kCAAwB,CAAC;AAC/D,eAAO,MAAM,mBAAmB,yCAAkB,CAAC"}
@@ -1,8 +1,16 @@
1
+ import { fieldDescriptionClass, fieldErrorClass, fieldLabelClass } from '../field.js';
1
2
  export const segmentedClass = 'inline-flex flex-wrap gap-1';
2
3
  export const segmentedOptionClass = [
3
- 'inline-flex h-8 cursor-default items-center rounded-md px-3 text-sm font-medium text-foreground-secondary',
4
+ 'inline-flex h-8 cursor-default items-center gap-2 rounded-md px-3 text-sm font-medium text-foreground-secondary',
4
5
  'transition-colors motion-fast',
5
6
  'outline-none data-hovered:text-foreground data-selected:bg-background-tertiary data-selected:text-foreground',
6
7
  'data-focus-visible:ring-2 data-focus-visible:ring-ring data-disabled:text-foreground-subtle',
7
8
  ].join(' ');
9
+ /** The sample of a colour beside a choice, with a line around it so a colour like the page's still shows. */
10
+ export const segmentedSwatchClass = 'h-4 w-4 shrink-0 stroke-border-strong';
11
+ /** The choices as a field of a form: its label above, its help or its problem under. */
12
+ export const segmentedFieldClass = 'flex min-w-0 flex-col items-start gap-2';
13
+ export const segmentedLabelClass = fieldLabelClass;
14
+ export const segmentedDescriptionClass = fieldDescriptionClass;
15
+ export const segmentedErrorClass = fieldErrorClass;
8
16
  //# sourceMappingURL=Segmented.variants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Segmented.variants.js","sourceRoot":"","sources":["../../../src/components/Segmented/Segmented.variants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,cAAc,GAAG,6BAA6B,CAAC;AAE5D,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,2GAA2G;IAC3G,+BAA+B;IAC/B,8GAA8G;IAC9G,6FAA6F;CAC9F,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC"}
1
+ {"version":3,"file":"Segmented.variants.js","sourceRoot":"","sources":["../../../src/components/Segmented/Segmented.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEtF,MAAM,CAAC,MAAM,cAAc,GAAG,6BAA6B,CAAC;AAE5D,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,iHAAiH;IACjH,+BAA+B;IAC/B,8GAA8G;IAC9G,6FAA6F;CAC9F,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,6GAA6G;AAC7G,MAAM,CAAC,MAAM,oBAAoB,GAAG,uCAAuC,CAAC;AAE5E,wFAAwF;AACxF,MAAM,CAAC,MAAM,mBAAmB,GAAG,yCAAyC,CAAC;AAC7E,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC;AACnD,MAAM,CAAC,MAAM,yBAAyB,GAAG,qBAAqB,CAAC;AAC/D,MAAM,CAAC,MAAM,mBAAmB,GAAG,eAAe,CAAC"}
@@ -22,8 +22,15 @@ export interface TableProps {
22
22
  /** The first column names each row. */
23
23
  readonly columns: readonly TableColumn[];
24
24
  readonly rows: readonly TableRow[];
25
- /** Called when a row is pressed or Enter is pressed on it. */
25
+ /** Called when a row is pressed or Enter is pressed on it. With `onSelect`, a press chooses the row and a second one opens it. */
26
26
  readonly onRowAction?: (id: string) => void;
27
+ /** The row that is chosen, such as the one whose details stand beside the table. */
28
+ readonly selectedId?: string | null;
29
+ /**
30
+ * Called when a row is chosen: pressed once, or reached with the arrow keys. Enter or a second
31
+ * press then opens it (`onRowAction`). On a touch screen a tap still opens it.
32
+ */
33
+ readonly onSelect?: (id: string) => void;
27
34
  /** How the rows are sorted. The table shows it; the screen does the sorting. */
28
35
  readonly sort?: TableSort;
29
36
  readonly onSortChange?: (sort: TableSort) => void;
@@ -31,5 +38,5 @@ export interface TableProps {
31
38
  readonly empty?: ReactNode;
32
39
  }
33
40
  /** Rows of the same kind of thing, with a heading for each column. */
34
- export declare function Table({ label, columns, rows, onRowAction, sort, onSortChange, empty, }: TableProps): import("react").JSX.Element;
41
+ export declare function Table({ label, columns, rows, onRowAction, selectedId, onSelect, sort, onSortChange, empty, }: TableProps): import("react").JSX.Element;
35
42
  //# sourceMappingURL=Table.d.ts.map
@@ -1 +1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AGG;IACH,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;IACzC,gFAAgF;IAChF,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAC1B,QAAQ,CAAC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,IAAI,CAAC;IAClD,iDAAiD;IACjD,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;CAC5B;AAED,sEAAsE;AACtE,wBAAgB,KAAK,CAAC,EACpB,KAAK,EACL,OAAO,EACP,IAAI,EACJ,WAAW,EACX,UAAU,EACV,QAAQ,EACR,IAAI,EACJ,YAAY,EACZ,KAAK,GACN,EAAE,UAAU,+BAwEZ"}
@@ -3,12 +3,24 @@ import { ArrowDown, ArrowUp } from "lucide-react";
3
3
  import { Cell, Column, Row, Table as AriaTable, TableBody, TableHeader, } from "react-aria-components";
4
4
  import { tableCellVariants, tableClass, tableColumnLabelClass, tableColumnVariants, tableEmptyClass, tableFrameClass, tableRowClass, tableSortIconSize, } from "./Table.variants.js";
5
5
  /** Rows of the same kind of thing, with a heading for each column. */
6
- export function Table({ label, columns, rows, onRowAction, sort, onSortChange, empty, }) {
6
+ export function Table({ label, columns, rows, onRowAction, selectedId, onSelect, sort, onSortChange, empty, }) {
7
7
  return (_jsx("div", { className: tableFrameClass, children: _jsxs(AriaTable, { "aria-label": label, className: tableClass, ...(sort && { sortDescriptor: sort }), ...(onSortChange && {
8
8
  onSortChange: (next) => onSortChange({
9
9
  column: String(next.column),
10
10
  direction: next.direction,
11
11
  }),
12
- }), ...(onRowAction && { onRowAction: (key) => onRowAction(String(key)) }), children: [_jsx(TableHeader, { children: columns.map((column, index) => (_jsx(Column, { id: column.id, className: tableColumnVariants({ align: column.align }), isRowHeader: index === 0, allowsSorting: column.isSortable ?? false, textValue: column.label, children: (state) => (_jsxs("span", { className: tableColumnLabelClass, children: [column.label, state.sortDirection === "ascending" && (_jsx(ArrowUp, { "aria-hidden": true, size: tableSortIconSize })), state.sortDirection === "descending" && (_jsx(ArrowDown, { "aria-hidden": true, size: tableSortIconSize }))] })) }, column.id))) }), _jsx(TableBody, { renderEmptyState: () => (_jsx("div", { className: tableEmptyClass, children: empty })), children: rows.map((row) => (_jsx(Row, { id: row.id, className: tableRowClass, children: columns.map((column) => (_jsx(Cell, { className: tableCellVariants({ align: column.align }), children: row.cells[column.id] }, column.id))) }, row.id))) })] }) }));
12
+ }), ...(onRowAction && { onRowAction: (key) => onRowAction(String(key)) }), ...(onSelect && {
13
+ selectionMode: 'single',
14
+ selectionBehavior: 'replace',
15
+ disallowEmptySelection: true,
16
+ selectedKeys: selectedId === undefined || selectedId === null ? [] : [selectedId],
17
+ onSelectionChange: (keys) => {
18
+ if (keys === 'all')
19
+ return;
20
+ const [first] = [...keys];
21
+ if (first !== undefined)
22
+ onSelect(String(first));
23
+ },
24
+ }), children: [_jsx(TableHeader, { children: columns.map((column, index) => (_jsx(Column, { id: column.id, className: tableColumnVariants({ align: column.align }), isRowHeader: index === 0, allowsSorting: column.isSortable ?? false, textValue: column.label, children: (state) => (_jsxs("span", { className: tableColumnLabelClass, children: [column.label, state.sortDirection === "ascending" && (_jsx(ArrowUp, { "aria-hidden": true, size: tableSortIconSize })), state.sortDirection === "descending" && (_jsx(ArrowDown, { "aria-hidden": true, size: tableSortIconSize }))] })) }, column.id))) }), _jsx(TableBody, { renderEmptyState: () => (_jsx("div", { className: tableEmptyClass, children: empty })), children: rows.map((row) => (_jsx(Row, { id: row.id, className: tableRowClass, children: columns.map((column) => (_jsx(Cell, { className: tableCellVariants({ align: column.align }), children: row.cells[column.id] }, column.id))) }, row.id))) })] }) }));
13
25
  }
14
26
  //# sourceMappingURL=Table.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"Table.js","sourceRoot":"","sources":["../../../src/components/Table/Table.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAA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,IACF,GACR,CACP,CAAC;AACJ,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"Table.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,mFAAmF;AACnF,eAAO,MAAM,eAAe,4DAA4D,CAAC;AAEzF,eAAO,MAAM,UAAU,6EAA6E,CAAC;AAOrG,eAAO,MAAM,mBAAmB;;8EAO/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,mCAAmC,CAAC;AAEtE,eAAO,MAAM,aAAa,QAKf,CAAC;AAEZ,eAAO,MAAM,iBAAiB;;8EAG7B,CAAC;AAEF,eAAO,MAAM,eAAe,iDAAiD,CAAC;AAE9E,6CAA6C;AAC7C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
1
+ {"version":3,"file":"Table.variants.d.ts","sourceRoot":"","sources":["../../../src/components/Table/Table.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,mFAAmF;AACnF,eAAO,MAAM,eAAe,4DAA4D,CAAC;AAEzF,eAAO,MAAM,UAAU,6EAA6E,CAAC;AAOrG,eAAO,MAAM,mBAAmB;;8EAO/B,CAAC;AAEF,eAAO,MAAM,qBAAqB,mCAAmC,CAAC;AAEtE,eAAO,MAAM,aAAa,QAQf,CAAC;AAEZ,eAAO,MAAM,iBAAiB;;8EAG7B,CAAC;AAEF,eAAO,MAAM,eAAe,iDAAiD,CAAC;AAE9E,6CAA6C;AAC7C,eAAO,MAAM,iBAAiB,KAAK,CAAC;AAEpC,MAAM,MAAM,mBAAmB,GAAG,YAAY,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
@@ -16,7 +16,10 @@ export const tableRowClass = [
16
16
  'group outline-none transition-colors motion-fast',
17
17
  'data-hovered:bg-background-secondary data-pressed:bg-background-tertiary',
18
18
  'data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset',
19
- 'data-href:cursor-default data-action:cursor-default',
19
+ // A row that opens something says so to the pointer.
20
+ 'data-href:cursor-pointer data-action:cursor-pointer',
21
+ // The row whose details stand beside the table.
22
+ 'data-selected:bg-background-tertiary',
20
23
  ].join(' ');
21
24
  export const tableCellVariants = cva('border-b border-border px-4 py-3 align-middle text-foreground outline-none group-last:border-b-0 data-focus-visible:ring-2 data-focus-visible:ring-ring data-focus-visible:ring-inset', { variants: { align }, defaultVariants: { align: 'start' } });
22
25
  export const tableEmptyClass = 'px-4 py-12 text-center text-foreground-muted';
@@ -1 +1 @@
1
- {"version":3,"file":"Table.variants.js","sourceRoot":"","sources":["../../../src/components/Table/Table.variants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAqB,MAAM,0BAA0B,CAAC;AAElE,mFAAmF;AACnF,MAAM,CAAC,MAAM,eAAe,GAAG,yDAAyD,CAAC;AAEzF,MAAM,CAAC,MAAM,UAAU,GAAG,0EAA0E,CAAC;AAErG,MAAM,KAAK,GAAG;IACZ,KAAK,EAAE,WAAW;IAClB,GAAG,EAAE,YAAY;CACT,CAAC;AAEX,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CACpC;IACE,kGAAkG;IAClG,mGAAmG;IACnG,iEAAiE;CAClE,EACD,EAAE,QAAQ,EAAE,EAAE,KAAK,EAAE,EAAE,eAAe,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAC7D,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,gCAAgC,CAAC;AAEtE,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,kDAAkD;IAClD,0EAA0E;IAC1E,sFAAsF;IACtF,qDAAqD;CACtD,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAEZ,MAAM,CAAC,MAAM,iBAAi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Ae,GAAG,8CAA8C,CAAC;AAE9E,6CAA6C;AAC7C,MAAM,CAAC,MAAM,iBAAiB,GAAG,EAAE,CAAC"}
@@ -35,4 +35,5 @@ export * from './Thumbnail/index.js';
35
35
  export * from './Toast/index.js';
36
36
  export * from './Tooltip/index.js';
37
37
  export type { Space } from './scales.js';
38
+ export * from './Meter/index.js';
38
39
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,YAAY,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,YAAY,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AACzC,cAAc,kBAAkB,CAAC"}
@@ -34,4 +34,5 @@ export * from './TextField/index.js';
34
34
  export * from './Thumbnail/index.js';
35
35
  export * from './Toast/index.js';
36
36
  export * from './Tooltip/index.js';
37
+ export * from './Meter/index.js';
37
38
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AAEnC,cAAc,kBAAkB,CAAC"}
@@ -37,7 +37,7 @@ export declare const paddingX: {
37
37
  readonly 6: "px-6";
38
38
  readonly 8: "px-8";
39
39
  readonly 10: "px-10";
40
- readonly 12: "px-12";
40
+ readonly 12: "px-4 md:px-12";
41
41
  };
42
42
  export declare const paddingY: {
43
43
  readonly 0: "py-0";
@@ -48,7 +48,7 @@ export declare const paddingY: {
48
48
  readonly 5: "py-5";
49
49
  readonly 6: "py-6";
50
50
  readonly 8: "py-8";
51
- readonly 10: "py-10";
51
+ readonly 10: "py-6 md:py-10";
52
52
  readonly 12: "py-12";
53
53
  };
54
54
  /** A step on the spacing scale, in units of 4px. */
@@ -1 +1 @@
1
- {"version":3,"file":"scales.d.ts","sourceRoot":"","sources":["../../src/components/scales.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;CAWN,CAAC;AAEX,eAAO,MAAM,OAAO;;;;;;;;;;;CAWV,CAAC;AAEX,eAAO,MAAM,QAAQ;;;;;;;;;;;CAWX,CAAC;AAEX,eAAO,MAAM,QAAQ;;;;;;;;;;;CAWX,CAAC;AAEX,oDAAoD;AACpD,MAAM,MAAM,KAAK,GAAG,MAAM,OAAO,GAAG,CAAC"}
1
+ {"version":3,"file":"scales.d.ts","sourceRoot":"","sources":["../../src/components/scales.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,GAAG;;;;;;;;;;;CAWN,CAAC;AAEX,eAAO,MAAM,OAAO;;;;;;;;;;;CAWV,CAAC;AAEX,eAAO,MAAM,QAAQ;;;;;;;;;;;CAYX,CAAC;AAEX,eAAO,MAAM,QAAQ;;;;;;;;;;;CAYX,CAAC;AAEX,oDAAoD;AACpD,MAAM,MAAM,KAAK,GAAG,MAAM,OAAO,GAAG,CAAC"}