@six-vallees/ui-react 0.5.0 → 0.6.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 (59) hide show
  1. package/README.md +3 -3
  2. package/dist/avatar/avatar.d.ts +30 -0
  3. package/dist/avatar/avatar.js +11 -0
  4. package/dist/avatar/avatar.js.map +1 -0
  5. package/dist/badge/badge.d.ts +32 -0
  6. package/dist/badge/badge.js +10 -0
  7. package/dist/badge/badge.js.map +1 -0
  8. package/dist/chunk-BYZCFI7X.js +32 -0
  9. package/dist/chunk-BYZCFI7X.js.map +1 -0
  10. package/dist/chunk-DCKWB3EY.js +35 -0
  11. package/dist/chunk-DCKWB3EY.js.map +1 -0
  12. package/dist/chunk-GNHNTI5A.js +30 -0
  13. package/dist/chunk-GNHNTI5A.js.map +1 -0
  14. package/dist/chunk-HHUI32DT.js +36 -0
  15. package/dist/chunk-HHUI32DT.js.map +1 -0
  16. package/dist/chunk-OVF2VS3L.js +42 -0
  17. package/dist/chunk-OVF2VS3L.js.map +1 -0
  18. package/dist/chunk-POUL3ZTV.js +60 -0
  19. package/dist/chunk-POUL3ZTV.js.map +1 -0
  20. package/dist/chunk-R7BM6J75.js +93 -0
  21. package/dist/chunk-R7BM6J75.js.map +1 -0
  22. package/dist/chunk-RXDJPRH5.js +39 -0
  23. package/dist/chunk-RXDJPRH5.js.map +1 -0
  24. package/dist/chunk-ULEDFFUJ.js +43 -0
  25. package/dist/chunk-ULEDFFUJ.js.map +1 -0
  26. package/dist/chunk-WHD5CSTB.js +52 -0
  27. package/dist/chunk-WHD5CSTB.js.map +1 -0
  28. package/dist/chunk-WHJ4JVO6.js +39 -0
  29. package/dist/chunk-WHJ4JVO6.js.map +1 -0
  30. package/dist/index.d.ts +19 -0
  31. package/dist/index.js +120 -14
  32. package/dist/input/input.d.ts +22 -0
  33. package/dist/input/input.js +8 -0
  34. package/dist/input/input.js.map +1 -0
  35. package/dist/input/label.d.ts +32 -0
  36. package/dist/input/label.js +11 -0
  37. package/dist/input/label.js.map +1 -0
  38. package/dist/input/textarea.d.ts +13 -0
  39. package/dist/input/textarea.js +8 -0
  40. package/dist/input/textarea.js.map +1 -0
  41. package/dist/overlay/alert-dialog.d.ts +42 -0
  42. package/dist/overlay/alert-dialog.js +23 -0
  43. package/dist/overlay/alert-dialog.js.map +1 -0
  44. package/dist/overlay/popover.d.ts +42 -0
  45. package/dist/overlay/popover.js +17 -0
  46. package/dist/overlay/popover.js.map +1 -0
  47. package/dist/overlay/sheet.d.ts +47 -0
  48. package/dist/overlay/sheet.js +29 -0
  49. package/dist/overlay/sheet.js.map +1 -0
  50. package/dist/overlay/tooltip.d.ts +31 -0
  51. package/dist/overlay/tooltip.js +15 -0
  52. package/dist/overlay/tooltip.js.map +1 -0
  53. package/dist/tabs/tabs.d.ts +24 -0
  54. package/dist/tabs/tabs.js +15 -0
  55. package/dist/tabs/tabs.js.map +1 -0
  56. package/dist/tabs/toggle-group.d.ts +19 -0
  57. package/dist/tabs/toggle-group.js +11 -0
  58. package/dist/tabs/toggle-group.js.map +1 -0
  59. package/package.json +9 -1
@@ -0,0 +1,31 @@
1
+ import * as React from 'react';
2
+ import * as TooltipPrimitive from '@radix-ui/react-tooltip';
3
+
4
+ /**
5
+ * Cairn Tooltip. Radix, because the `title` attribute is not an accessible
6
+ * alternative to one.
7
+ *
8
+ * `title` looks like the free version of a tooltip and behaves like nothing at
9
+ * all: it never appears on keyboard focus, most screen readers ignore or
10
+ * duplicate it, it cannot be dismissed, and its delay belongs to the operating
11
+ * system. Any information a sighted mouse user gets from it is information a
12
+ * keyboard user does not get. Radix gives focus and hover parity, Escape to
13
+ * dismiss, and a real `aria-describedby` link.
14
+ *
15
+ * The rule that survives all of it: a tooltip may only ever carry information
16
+ * that is *supplementary*. If the interface does not make sense without it, the
17
+ * text belongs on the surface (rule 4 — meaning never rests on a hover).
18
+ *
19
+ * Inverse surface, not a hue: a tooltip is a small dense mark and the inverse
20
+ * pairing is the one that reads at that size on both themes.
21
+ */
22
+ declare const TooltipProvider: React.FC<TooltipPrimitive.TooltipProviderProps>;
23
+ declare const Tooltip: React.FC<TooltipPrimitive.TooltipProps>;
24
+ declare const TooltipTrigger: React.ForwardRefExoticComponent<TooltipPrimitive.TooltipTriggerProps & React.RefAttributes<HTMLButtonElement>>;
25
+ interface TooltipContentProps extends React.ComponentPropsWithoutRef<typeof TooltipPrimitive.Content> {
26
+ /** Where the portal mounts. Defaults to `document.body`. See `PopoverContent`. */
27
+ container?: HTMLElement | null;
28
+ }
29
+ declare const TooltipContent: React.ForwardRefExoticComponent<TooltipContentProps & React.RefAttributes<HTMLDivElement>>;
30
+
31
+ export { Tooltip, TooltipContent, type TooltipContentProps, TooltipProvider, TooltipTrigger };
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import {
3
+ Tooltip,
4
+ TooltipContent,
5
+ TooltipProvider,
6
+ TooltipTrigger
7
+ } from "../chunk-DCKWB3EY.js";
8
+ import "../chunk-DXRY7AS4.js";
9
+ export {
10
+ Tooltip,
11
+ TooltipContent,
12
+ TooltipProvider,
13
+ TooltipTrigger
14
+ };
15
+ //# sourceMappingURL=tooltip.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,24 @@
1
+ import * as React from 'react';
2
+ import * as TabsPrimitive from '@radix-ui/react-tabs';
3
+
4
+ /**
5
+ * Cairn Tabs. Radix, and this one is not negotiable.
6
+ *
7
+ * `role="tablist"` on a row of buttons is the most common accessibility lie in a
8
+ * codebase: it announces a tab list to a screen reader and then ships none of
9
+ * the behaviour that word promises — a single tab stop for the whole set, arrow
10
+ * keys to move between tabs, Home/End, and the selected tab bound to its panel
11
+ * by id. Writing the role without the behaviour is worse than writing no role at
12
+ * all, because it tells the user a lie they will act on. Radix has all of it.
13
+ *
14
+ * The selected tab is marked by the surface ramp, not by hue and not by an
15
+ * underline: `surface-muted` is the selected step, `surface-subtle` the hover
16
+ * step, exactly as `sv-state` uses them elsewhere. One mechanism for state
17
+ * across the system (BRAND.md, law 5).
18
+ */
19
+ declare const Tabs: React.ForwardRefExoticComponent<TabsPrimitive.TabsProps & React.RefAttributes<HTMLDivElement>>;
20
+ declare const TabsList: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsListProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
21
+ declare const TabsTrigger: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsTriggerProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
22
+ declare const TabsContent: React.ForwardRefExoticComponent<Omit<TabsPrimitive.TabsContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & React.RefAttributes<HTMLDivElement>>;
23
+
24
+ export { Tabs, TabsContent, TabsList, TabsTrigger };
@@ -0,0 +1,15 @@
1
+ "use client";
2
+ import {
3
+ Tabs,
4
+ TabsContent,
5
+ TabsList,
6
+ TabsTrigger
7
+ } from "../chunk-WHD5CSTB.js";
8
+ import "../chunk-DXRY7AS4.js";
9
+ export {
10
+ Tabs,
11
+ TabsContent,
12
+ TabsList,
13
+ TabsTrigger
14
+ };
15
+ //# sourceMappingURL=tabs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,19 @@
1
+ import * as React from 'react';
2
+ import * as ToggleGroupPrimitive from '@radix-ui/react-toggle-group';
3
+
4
+ /**
5
+ * Cairn ToggleGroup. A row of mutually exclusive choices that are NOT tabs.
6
+ *
7
+ * The distinction matters and is usually missed: tabs switch which panel you are
8
+ * looking at, a toggle group sets a value. They announce themselves differently
9
+ * (`tablist` vs `group` of pressed buttons) and a screen reader user acts on the
10
+ * difference. Reaching for `Tabs` because the pills look alike is how a status
11
+ * control ends up telling people it will change the view.
12
+ *
13
+ * Radix carries the roving tabindex, the arrow keys and the pressed state; the
14
+ * surface ramp carries the selection, like every other state in the system.
15
+ */
16
+ declare const ToggleGroup: React.ForwardRefExoticComponent<(Omit<ToggleGroupPrimitive.ToggleGroupSingleProps & React.RefAttributes<HTMLDivElement>, "ref"> | Omit<ToggleGroupPrimitive.ToggleGroupMultipleProps & React.RefAttributes<HTMLDivElement>, "ref">) & React.RefAttributes<HTMLDivElement>>;
17
+ declare const ToggleGroupItem: React.ForwardRefExoticComponent<Omit<ToggleGroupPrimitive.ToggleGroupItemProps & React.RefAttributes<HTMLButtonElement>, "ref"> & React.RefAttributes<HTMLButtonElement>>;
18
+
19
+ export { ToggleGroup, ToggleGroupItem };
@@ -0,0 +1,11 @@
1
+ "use client";
2
+ import {
3
+ ToggleGroup,
4
+ ToggleGroupItem
5
+ } from "../chunk-OVF2VS3L.js";
6
+ import "../chunk-DXRY7AS4.js";
7
+ export {
8
+ ToggleGroup,
9
+ ToggleGroupItem
10
+ };
11
+ //# sourceMappingURL=toggle-group.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@six-vallees/ui-react",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "type": "module",
5
5
  "description": "Cairn React components — the Six Vallées design system UI, driven by the Cairn tokens.",
6
6
  "license": "UNLICENSED",
@@ -29,7 +29,15 @@
29
29
  "typecheck": "tsc -p tsconfig.json --noEmit"
30
30
  },
31
31
  "dependencies": {
32
+ "@radix-ui/react-alert-dialog": "^1.1.23",
33
+ "@radix-ui/react-avatar": "^1.2.6",
34
+ "@radix-ui/react-dialog": "^1.1.23",
35
+ "@radix-ui/react-label": "^2.1.15",
36
+ "@radix-ui/react-popover": "^1.1.23",
32
37
  "@radix-ui/react-slot": "^1.1.2",
38
+ "@radix-ui/react-tabs": "^1.1.21",
39
+ "@radix-ui/react-toggle-group": "^1.1.19",
40
+ "@radix-ui/react-tooltip": "^1.2.16",
33
41
  "class-variance-authority": "^0.7.1",
34
42
  "clsx": "^2.1.1",
35
43
  "tailwind-merge": "^3.0.2"