@calcifer-design/ui 0.2.0 → 0.3.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 (48) hide show
  1. package/dist/components/Alert/Alert.js +4 -15
  2. package/dist/components/Alert/Alert.module.js +1 -2
  3. package/dist/components/Alert/Alert_module.css +0 -12
  4. package/dist/components/Avatar/Avatar.js +2 -1
  5. package/dist/components/Avatar/Avatar.module.js +1 -2
  6. package/dist/components/Avatar/Avatar_module.css +0 -12
  7. package/dist/components/DataTable/DataTable.js +7 -2
  8. package/dist/components/DataTable/DataTable_module.css +0 -16
  9. package/dist/components/Dialog/Dialog.d.ts +44 -0
  10. package/dist/components/Dialog/Dialog.js +82 -0
  11. package/dist/components/Dialog/Dialog.module.js +10 -0
  12. package/dist/components/Dialog/Dialog_module.css +51 -0
  13. package/dist/components/LiveRegion/LiveRegion.js +2 -2
  14. package/dist/components/Menu/Menu.d.ts +35 -0
  15. package/dist/components/Menu/Menu.js +44 -0
  16. package/dist/components/Menu/Menu.module.js +6 -0
  17. package/dist/components/Menu/Menu_module.css +29 -0
  18. package/dist/components/NavMenu/NavMenu.js +4 -2
  19. package/dist/components/NavMenu/NavMenu.module.js +0 -2
  20. package/dist/components/NavMenu/NavMenu_module.css +0 -15
  21. package/dist/components/Popover/Popover.d.ts +42 -0
  22. package/dist/components/Popover/Popover.js +61 -0
  23. package/dist/components/Popover/Popover.module.js +6 -0
  24. package/dist/components/Popover/Popover_module.css +13 -0
  25. package/dist/components/Spinner/Spinner.js +2 -1
  26. package/dist/components/Spinner/Spinner.module.js +1 -2
  27. package/dist/components/Spinner/Spinner_module.css +0 -12
  28. package/dist/components/StatusDot/StatusDot.js +6 -1
  29. package/dist/components/StatusDot/StatusDot_module.css +0 -12
  30. package/dist/components/ToastRegion/ToastRegion.d.ts +72 -0
  31. package/dist/components/ToastRegion/ToastRegion.js +85 -0
  32. package/dist/components/ToastRegion/ToastRegion.module.js +10 -0
  33. package/dist/components/ToastRegion/ToastRegion_module.css +104 -0
  34. package/dist/components/Tooltip/Tooltip.d.ts +33 -0
  35. package/dist/components/Tooltip/Tooltip.js +28 -0
  36. package/dist/components/Tooltip/TooltipProvider.d.ts +24 -0
  37. package/dist/components/Tooltip/TooltipProvider.js +11 -0
  38. package/dist/icons/CloseIcon.d.ts +10 -0
  39. package/dist/icons/CloseIcon.js +21 -0
  40. package/dist/index.d.ts +12 -0
  41. package/dist/index.js +6 -0
  42. package/dist/styles/a11y.module.js +5 -0
  43. package/dist/{components/LiveRegion/LiveRegion_module.css → styles/a11y_module.css} +1 -1
  44. package/dist/styles/base.css +21 -15
  45. package/dist/styles/popup.module.js +9 -0
  46. package/dist/styles/popup_module.css +103 -0
  47. package/package.json +2 -2
  48. package/dist/components/LiveRegion/LiveRegion.module.js +0 -5
@@ -0,0 +1,103 @@
1
+ .layer-l8dxw, .dialogLayer-lHsEi {
2
+ z-index: 50;
3
+ }
4
+
5
+ .toastLayer-A8Jfk {
6
+ z-index: 70;
7
+ }
8
+
9
+ .surface-_qTRv {
10
+ gap: var(--space-2);
11
+ max-width: var(--available-width);
12
+ max-height: var(--available-height);
13
+ padding: var(--space-2);
14
+ overscroll-behavior: contain;
15
+ border: 1px solid var(--color-border);
16
+ border-radius: var(--radius-lg);
17
+ background: var(--color-surface-raised);
18
+ color: var(--color-text);
19
+ box-shadow: var(--elevation-2);
20
+ transform-origin: var(--transform-origin);
21
+ transition-property: opacity, transform;
22
+ transition-duration: var(--motion-duration-2);
23
+ transition-timing-function: var(--motion-ease);
24
+ flex-direction: column;
25
+ display: flex;
26
+ overflow-y: auto;
27
+ }
28
+
29
+ .surface-_qTRv[data-popup="popover"] {
30
+ gap: var(--space-3);
31
+ min-width: 14rem;
32
+ padding: var(--space-4);
33
+ }
34
+
35
+ .surface-_qTRv[data-popup="menu"] {
36
+ gap: 0;
37
+ min-width: 12rem;
38
+ }
39
+
40
+ .surface-_qTRv[data-popup="tooltip"] {
41
+ max-width: min(18rem, var(--available-width));
42
+ padding: var(--space-2) var(--space-3);
43
+ font-size: var(--text-sm);
44
+ }
45
+
46
+ .surface-_qTRv[data-popup="dialog"] {
47
+ gap: var(--space-4);
48
+ width: min(32rem, 100%);
49
+ max-width: 100%;
50
+ max-height: 85dvh;
51
+ padding: var(--space-5);
52
+ border-radius: var(--radius-xl);
53
+ box-shadow: var(--elevation-3);
54
+ }
55
+
56
+ .surface-_qTRv[data-popup="sheet"] {
57
+ gap: var(--space-4);
58
+ width: 100%;
59
+ max-width: 100%;
60
+ max-height: 85dvh;
61
+ padding: var(--space-5);
62
+ border-radius: var(--radius-xl) var(--radius-xl) 0 0;
63
+ box-shadow: var(--elevation-3);
64
+ }
65
+
66
+ .surface-_qTRv[data-starting-style], .surface-_qTRv[data-ending-style] {
67
+ opacity: 0;
68
+ transform: scale(.96);
69
+ }
70
+
71
+ .surface-_qTRv[data-popup="sheet"][data-starting-style], .surface-_qTRv[data-popup="sheet"][data-ending-style] {
72
+ opacity: 1;
73
+ transform: translateY(100%);
74
+ }
75
+
76
+ .surface-_qTRv[data-popup="sheet"][data-side="end"] {
77
+ border-radius: 0;
78
+ width: min(28rem, 100%);
79
+ height: 100dvh;
80
+ max-height: 100dvh;
81
+ }
82
+
83
+ .surface-_qTRv[data-popup="sheet"][data-side="end"][data-starting-style], .surface-_qTRv[data-popup="sheet"][data-side="end"][data-ending-style] {
84
+ transform: translateX(100%);
85
+ }
86
+
87
+ .surface-_qTRv[data-instant] {
88
+ transition-property: none;
89
+ }
90
+
91
+ .scrim-HnQwr {
92
+ background: var(--color-scrim);
93
+ transition-property: opacity;
94
+ transition-duration: var(--motion-duration-2);
95
+ transition-timing-function: var(--motion-ease);
96
+ position: fixed;
97
+ inset: 0;
98
+ }
99
+
100
+ .scrim-HnQwr[data-starting-style], .scrim-HnQwr[data-ending-style] {
101
+ opacity: 0;
102
+ }
103
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcifer-design/ui",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@base-ui/react": "^1.8.0",
44
- "@calcifer-design/tokens": "^0.1.1",
44
+ "@calcifer-design/tokens": "^0.2.0",
45
45
  "@tanstack/react-table": "^9.2.4"
46
46
  },
47
47
  "devDependencies": {
@@ -1,5 +0,0 @@
1
- import "./LiveRegion_module.css";
2
- const LiveRegion_module = {
3
- root: "root-queRh"
4
- };
5
- export default LiveRegion_module;