@granularjs/ui 0.1.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 (220) hide show
  1. package/README.md +116 -0
  2. package/dist/fonts/Arimo-400.ttf +0 -0
  3. package/dist/fonts/Arimo-500.ttf +1449 -0
  4. package/dist/fonts/Arimo-600.ttf +1449 -0
  5. package/dist/fonts/Arimo-700.ttf +0 -0
  6. package/dist/fonts/Inter-400.woff2 +0 -0
  7. package/dist/fonts/Inter-500.woff2 +0 -0
  8. package/dist/fonts/Inter-600.woff2 +0 -0
  9. package/dist/fonts/Inter-700.woff2 +0 -0
  10. package/dist/fonts/Poppins-400.ttf +0 -0
  11. package/dist/fonts/Poppins-500.ttf +0 -0
  12. package/dist/fonts/Poppins-600.ttf +0 -0
  13. package/dist/fonts/Poppins-700.ttf +0 -0
  14. package/dist/granular-ui.min.js +3605 -0
  15. package/dist/granular-ui.min.js.map +7 -0
  16. package/package.json +55 -0
  17. package/src/components/Accordion.js +25 -0
  18. package/src/components/ActionIcon.js +20 -0
  19. package/src/components/Affix.js +11 -0
  20. package/src/components/Alert.js +33 -0
  21. package/src/components/Anchor.js +8 -0
  22. package/src/components/AppBar.js +14 -0
  23. package/src/components/Avatar.js +13 -0
  24. package/src/components/AvatarGroup.js +8 -0
  25. package/src/components/Badge.js +22 -0
  26. package/src/components/BadgeGroup.js +8 -0
  27. package/src/components/Blockquote.js +8 -0
  28. package/src/components/BottomBar.js +43 -0
  29. package/src/components/Breadcrumbs.js +19 -0
  30. package/src/components/Burger.js +13 -0
  31. package/src/components/Button.js +37 -0
  32. package/src/components/Calendar.js +109 -0
  33. package/src/components/Card.js +40 -0
  34. package/src/components/Center.js +8 -0
  35. package/src/components/Checkbox.js +46 -0
  36. package/src/components/CheckboxGroup.js +8 -0
  37. package/src/components/Chip.js +35 -0
  38. package/src/components/Code.js +8 -0
  39. package/src/components/Col.js +8 -0
  40. package/src/components/Collapse.js +8 -0
  41. package/src/components/Container.js +19 -0
  42. package/src/components/CopyButton.js +30 -0
  43. package/src/components/DateInput.js +123 -0
  44. package/src/components/DatePicker.js +7 -0
  45. package/src/components/Divider.js +22 -0
  46. package/src/components/Drawer.js +32 -0
  47. package/src/components/EventCalendar.js +972 -0
  48. package/src/components/Fieldset.js +12 -0
  49. package/src/components/Flex.js +25 -0
  50. package/src/components/Grid.js +8 -0
  51. package/src/components/GridTable.js +99 -0
  52. package/src/components/Group.js +29 -0
  53. package/src/components/HoverCard.js +24 -0
  54. package/src/components/Icon.js +19 -0
  55. package/src/components/Image.js +8 -0
  56. package/src/components/Indicator.js +21 -0
  57. package/src/components/Kbd.js +8 -0
  58. package/src/components/List.js +77 -0
  59. package/src/components/Loading.js +29 -0
  60. package/src/components/LoadingOverlay.js +9 -0
  61. package/src/components/Menu.js +129 -0
  62. package/src/components/Modal.js +61 -0
  63. package/src/components/MultiSelect.js +153 -0
  64. package/src/components/NavLink.js +72 -0
  65. package/src/components/Notification.js +42 -0
  66. package/src/components/Notifications.js +59 -0
  67. package/src/components/NumberField.js +389 -0
  68. package/src/components/NumberInput.js +5 -0
  69. package/src/components/Pagination.js +56 -0
  70. package/src/components/Paper.js +20 -0
  71. package/src/components/PasswordInput.js +29 -0
  72. package/src/components/PinInput.js +218 -0
  73. package/src/components/Popover.js +38 -0
  74. package/src/components/Popper.js +25 -0
  75. package/src/components/Progress.js +27 -0
  76. package/src/components/ProgressRing.js +11 -0
  77. package/src/components/Radio.js +22 -0
  78. package/src/components/RadioGroup.js +8 -0
  79. package/src/components/RangePicker.js +45 -0
  80. package/src/components/RangeSlider.js +143 -0
  81. package/src/components/Rating.js +42 -0
  82. package/src/components/ScrollArea.js +11 -0
  83. package/src/components/SearchInput.js +17 -0
  84. package/src/components/SegmentedControl.js +39 -0
  85. package/src/components/Select.js +71 -0
  86. package/src/components/SelectSearch.js +37 -0
  87. package/src/components/Sidebar.js +136 -0
  88. package/src/components/SimpleGrid.js +11 -0
  89. package/src/components/Skeleton.js +24 -0
  90. package/src/components/Slider.js +126 -0
  91. package/src/components/Space.js +8 -0
  92. package/src/components/Stack.js +27 -0
  93. package/src/components/Stepper.js +20 -0
  94. package/src/components/Switch.js +16 -0
  95. package/src/components/SwitchGroup.js +8 -0
  96. package/src/components/Table.js +42 -0
  97. package/src/components/Tabs.js +194 -0
  98. package/src/components/Tag.js +8 -0
  99. package/src/components/Text.js +42 -0
  100. package/src/components/TextInput.js +74 -0
  101. package/src/components/Textarea.js +15 -0
  102. package/src/components/Timeline.js +22 -0
  103. package/src/components/Title.js +18 -0
  104. package/src/components/Toast.js +16 -0
  105. package/src/components/ToastStack.js +21 -0
  106. package/src/components/Tooltip.js +12 -0
  107. package/src/hooks/useDisclosure.js +13 -0
  108. package/src/index.js +98 -0
  109. package/src/theme/fonts/Arimo-400.ttf +0 -0
  110. package/src/theme/fonts/Arimo-500.ttf +1449 -0
  111. package/src/theme/fonts/Arimo-600.ttf +1449 -0
  112. package/src/theme/fonts/Arimo-700.ttf +0 -0
  113. package/src/theme/fonts/Inter-400.woff2 +0 -0
  114. package/src/theme/fonts/Inter-500.woff2 +0 -0
  115. package/src/theme/fonts/Inter-600.woff2 +0 -0
  116. package/src/theme/fonts/Inter-700.woff2 +0 -0
  117. package/src/theme/fonts/Poppins-400.ttf +0 -0
  118. package/src/theme/fonts/Poppins-500.ttf +0 -0
  119. package/src/theme/fonts/Poppins-600.ttf +0 -0
  120. package/src/theme/fonts/Poppins-700.ttf +0 -0
  121. package/src/theme/icons.js +10 -0
  122. package/src/theme/styles.js +3630 -0
  123. package/src/theme/theme.js +71 -0
  124. package/src/utils.js +75 -0
  125. package/types/components/Accordion.d.ts +1 -0
  126. package/types/components/ActionIcon.d.ts +1 -0
  127. package/types/components/Affix.d.ts +1 -0
  128. package/types/components/Alert.d.ts +1 -0
  129. package/types/components/Anchor.d.ts +1 -0
  130. package/types/components/AppBar.d.ts +1 -0
  131. package/types/components/Avatar.d.ts +1 -0
  132. package/types/components/AvatarGroup.d.ts +1 -0
  133. package/types/components/Badge.d.ts +1 -0
  134. package/types/components/BadgeGroup.d.ts +1 -0
  135. package/types/components/Blockquote.d.ts +1 -0
  136. package/types/components/BottomBar.d.ts +4 -0
  137. package/types/components/Breadcrumbs.d.ts +1 -0
  138. package/types/components/Burger.d.ts +1 -0
  139. package/types/components/Button.d.ts +1 -0
  140. package/types/components/Calendar.d.ts +1 -0
  141. package/types/components/Card.d.ts +1 -0
  142. package/types/components/Center.d.ts +1 -0
  143. package/types/components/Checkbox.d.ts +1 -0
  144. package/types/components/CheckboxGroup.d.ts +1 -0
  145. package/types/components/Chip.d.ts +1 -0
  146. package/types/components/Code.d.ts +1 -0
  147. package/types/components/Col.d.ts +1 -0
  148. package/types/components/Collapse.d.ts +1 -0
  149. package/types/components/Container.d.ts +1 -0
  150. package/types/components/CopyButton.d.ts +1 -0
  151. package/types/components/DateInput.d.ts +1 -0
  152. package/types/components/DatePicker.d.ts +1 -0
  153. package/types/components/Divider.d.ts +1 -0
  154. package/types/components/Drawer.d.ts +1 -0
  155. package/types/components/EventCalendar.d.ts +1 -0
  156. package/types/components/Fieldset.d.ts +1 -0
  157. package/types/components/Flex.d.ts +1 -0
  158. package/types/components/Grid.d.ts +1 -0
  159. package/types/components/GridTable.d.ts +5 -0
  160. package/types/components/Group.d.ts +1 -0
  161. package/types/components/HoverCard.d.ts +1 -0
  162. package/types/components/Icon.d.ts +1 -0
  163. package/types/components/Image.d.ts +1 -0
  164. package/types/components/Indicator.d.ts +1 -0
  165. package/types/components/Kbd.d.ts +1 -0
  166. package/types/components/List.d.ts +5 -0
  167. package/types/components/Loading.d.ts +1 -0
  168. package/types/components/LoadingOverlay.d.ts +1 -0
  169. package/types/components/Menu.d.ts +2 -0
  170. package/types/components/Modal.d.ts +1 -0
  171. package/types/components/MultiSelect.d.ts +1 -0
  172. package/types/components/NavLink.d.ts +1 -0
  173. package/types/components/Notification.d.ts +1 -0
  174. package/types/components/Notifications.d.ts +1 -0
  175. package/types/components/NumberField.d.ts +1 -0
  176. package/types/components/NumberInput.d.ts +1 -0
  177. package/types/components/Pagination.d.ts +1 -0
  178. package/types/components/Paper.d.ts +1 -0
  179. package/types/components/PasswordInput.d.ts +1 -0
  180. package/types/components/PinInput.d.ts +1 -0
  181. package/types/components/Popover.d.ts +1 -0
  182. package/types/components/Popper.d.ts +1 -0
  183. package/types/components/Progress.d.ts +1 -0
  184. package/types/components/ProgressRing.d.ts +1 -0
  185. package/types/components/Radio.d.ts +1 -0
  186. package/types/components/RadioGroup.d.ts +1 -0
  187. package/types/components/RangePicker.d.ts +1 -0
  188. package/types/components/RangeSlider.d.ts +1 -0
  189. package/types/components/Rating.d.ts +1 -0
  190. package/types/components/ScrollArea.d.ts +1 -0
  191. package/types/components/SearchInput.d.ts +1 -0
  192. package/types/components/SegmentedControl.d.ts +1 -0
  193. package/types/components/Select.d.ts +1 -0
  194. package/types/components/SelectSearch.d.ts +1 -0
  195. package/types/components/Sidebar.d.ts +1 -0
  196. package/types/components/SimpleGrid.d.ts +1 -0
  197. package/types/components/Skeleton.d.ts +1 -0
  198. package/types/components/Slider.d.ts +5 -0
  199. package/types/components/Space.d.ts +1 -0
  200. package/types/components/Stack.d.ts +1 -0
  201. package/types/components/Stepper.d.ts +1 -0
  202. package/types/components/Switch.d.ts +1 -0
  203. package/types/components/SwitchGroup.d.ts +1 -0
  204. package/types/components/Table.d.ts +1 -0
  205. package/types/components/Tabs.d.ts +1 -0
  206. package/types/components/Tag.d.ts +1 -0
  207. package/types/components/Text.d.ts +1 -0
  208. package/types/components/TextInput.d.ts +1 -0
  209. package/types/components/Textarea.d.ts +1 -0
  210. package/types/components/Timeline.d.ts +1 -0
  211. package/types/components/Title.d.ts +1 -0
  212. package/types/components/Toast.d.ts +1 -0
  213. package/types/components/ToastStack.d.ts +1 -0
  214. package/types/components/Tooltip.d.ts +1 -0
  215. package/types/hooks/useDisclosure.d.ts +1 -0
  216. package/types/index.d.ts +93 -0
  217. package/types/theme/icons.d.ts +10 -0
  218. package/types/theme/styles.d.ts +1 -0
  219. package/types/theme/theme.d.ts +2 -0
  220. package/types/utils.d.ts +12 -0
@@ -0,0 +1,71 @@
1
+ const themeVars = new Set([
2
+ '--g-ui-bg',
3
+ '--g-ui-bg-subtle',
4
+ '--g-ui-bg-muted',
5
+ '--g-ui-bg-emphasized',
6
+ '--g-ui-bg-inverted',
7
+ '--g-ui-bg-panel',
8
+ '--g-ui-fg',
9
+ '--g-ui-fg-muted',
10
+ '--g-ui-fg-subtle',
11
+ '--g-ui-fg-inverted',
12
+ '--g-ui-border',
13
+ '--g-ui-border-subtle',
14
+ '--g-ui-border-emphasized',
15
+ '--g-ui-border-inverted',
16
+ '--g-ui-primary',
17
+ '--g-ui-primary-hover',
18
+ '--g-ui-primary-active',
19
+ '--g-ui-primary-subtle',
20
+ '--g-ui-primary-muted',
21
+ '--g-ui-primary-emphasized',
22
+ '--g-ui-success',
23
+ '--g-ui-success-hover',
24
+ '--g-ui-success-active',
25
+ '--g-ui-success-subtle',
26
+ '--g-ui-success-muted',
27
+ '--g-ui-danger',
28
+ '--g-ui-danger-hover',
29
+ '--g-ui-danger-active',
30
+ '--g-ui-danger-subtle',
31
+ '--g-ui-danger-muted',
32
+ '--g-ui-warning',
33
+ '--g-ui-warning-hover',
34
+ '--g-ui-warning-active',
35
+ '--g-ui-warning-subtle',
36
+ '--g-ui-warning-muted',
37
+ '--g-ui-info',
38
+ '--g-ui-info-hover',
39
+ '--g-ui-info-active',
40
+ '--g-ui-info-subtle',
41
+ '--g-ui-info-muted',
42
+ '--g-ui-shadow-xs',
43
+ '--g-ui-shadow-sm',
44
+ '--g-ui-shadow-md',
45
+ '--g-ui-shadow-lg',
46
+ '--g-ui-shadow-xl',
47
+ '--g-ui-shadow-2xl',
48
+ '--g-ui-radius',
49
+ '--g-ui-font',
50
+ // Legacy
51
+ '--g-ui-surface',
52
+ '--g-ui-text',
53
+ '--g-ui-muted',
54
+ '--g-ui-primary-strong',
55
+ '--g-ui-shadow',
56
+ ]);
57
+
58
+ export function setThemeVars(vars = {}, target = document?.documentElement) {
59
+ if (!target) return;
60
+ for (const [key, value] of Object.entries(vars)) {
61
+ const cssKey = key.startsWith('--') ? key : `--g-ui-${key}`;
62
+ if (!themeVars.has(cssKey)) continue;
63
+ target.style.setProperty(cssKey, String(value));
64
+ }
65
+ }
66
+
67
+ export function setThemeMode(mode = 'dark', target = document?.documentElement) {
68
+ if (!target) return;
69
+ target.classList.remove('g-ui-theme-dark', 'g-ui-theme-light');
70
+ target.classList.add(mode === 'light' ? 'g-ui-theme-light' : 'g-ui-theme-dark');
71
+ }
package/src/utils.js ADDED
@@ -0,0 +1,75 @@
1
+ import { Renderer, isSignal, isState, isStatePath, isComputed, resolve, computed, after, concat } from '@granularjs/core';
2
+
3
+ function isReactive(value) {
4
+ return isSignal(value) || isState(value) || isStatePath(value) || isComputed(value);
5
+ }
6
+
7
+ export function cx(...values) {
8
+ return concat(...values, { separator: ' ', filterFalsy: true });
9
+ }
10
+
11
+ export function toPx(value) {
12
+ if (value == null || value === '') return undefined;
13
+ return typeof value === 'number' ? `${value}px` : value;
14
+ }
15
+
16
+ export function splitPropsChildren(args, defaults) {
17
+ const props = {};
18
+ const children = [];
19
+ const isPropsObject = (value) =>
20
+ !!value &&
21
+ typeof value === 'object' &&
22
+ !Array.isArray(value) &&
23
+ !Renderer.isRenderable(value) &&
24
+ !Renderer.isDomNode(value) &&
25
+ !isSignal(value) &&
26
+ !isState(value) &&
27
+ !isStatePath(value) &&
28
+ !isComputed(value);
29
+
30
+ for (const arg of args) {
31
+ if (isPropsObject(arg)) Object.assign(props, arg);
32
+ else children.push(arg);
33
+ }
34
+ if (defaults && typeof defaults === 'object') {
35
+ for (const key of Object.keys(defaults)) {
36
+ if (props[key] === undefined) props[key] = defaults[key];
37
+ }
38
+ }
39
+ return { props: computed(props), rawProps: props, children };
40
+ }
41
+
42
+ export function resolveValue(value) {
43
+ return resolve(value);
44
+ }
45
+
46
+ export function resolveBool(value) {
47
+ return !!resolve(value);
48
+ }
49
+
50
+ export function classVar(prefix, value, fallback) {
51
+ const normalize = (v) => {
52
+ const resolved = resolve(v);
53
+ const finalValue = resolved == null || resolved === '' ? fallback : resolved;
54
+ return finalValue == null || finalValue === '' ? '' : `${prefix}${finalValue}`;
55
+ };
56
+ if (isReactive(value)) {
57
+ return after(value).compute((v) => normalize(v));
58
+ }
59
+ return normalize(value);
60
+ }
61
+
62
+ export function classFlag(name, value) {
63
+ if (isReactive(value)) {
64
+ return after(value).compute((v) => (resolve(v) ? name : ''));
65
+ }
66
+ return resolve(value) ? name : '';
67
+ }
68
+
69
+ export function classMap(value, map, fallback) {
70
+ const getClass = (v) => map[v] || null;
71
+ if (isReactive(value)) {
72
+ return after(value).compute((v) => getClass(resolve(v ?? fallback)));
73
+ }
74
+ return getClass(resolve(value ?? fallback));
75
+ }
@@ -0,0 +1 @@
1
+ export function Accordion(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function ActionIcon(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Affix(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Alert(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Anchor(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function AppBar(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Avatar(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function AvatarGroup(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Badge(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function BadgeGroup(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Blockquote(...args: any[]): any;
@@ -0,0 +1,4 @@
1
+ export function BottomBar(...args: any[]): any;
2
+ export namespace BottomBar {
3
+ function Action(...args: any[]): any;
4
+ }
@@ -0,0 +1 @@
1
+ export function Breadcrumbs(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Burger(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Button(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Calendar(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Card(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Center(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Checkbox(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function CheckboxGroup(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Chip(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Code(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Col(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Collapse(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Container(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function CopyButton(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function DateInput(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function DatePicker(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Divider(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Drawer(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function EventCalendar(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Fieldset(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Flex(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Grid(...args: any[]): any;
@@ -0,0 +1,5 @@
1
+ export function GridTable(...args: any[]): any;
2
+ export namespace GridTable {
3
+ function GridRow(...args: any[]): any;
4
+ function GridCell(...args: any[]): any;
5
+ }
@@ -0,0 +1 @@
1
+ export function Group(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function HoverCard(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Icon(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Image(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Indicator(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Kbd(...args: any[]): any;
@@ -0,0 +1,5 @@
1
+ export function List(...args: any[]): any;
2
+ export namespace List {
3
+ export { ListItem as Item };
4
+ }
5
+ export function ListItem(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Loading(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function LoadingOverlay(...args: any[]): any;
@@ -0,0 +1,2 @@
1
+ export function Menu(...args: any[]): any;
2
+ export const menuControlStore: any;
@@ -0,0 +1 @@
1
+ export function Modal(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function MultiSelect(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function NavLink(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Notification(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Notifications(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function NumberField(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function NumberInput(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Pagination(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Paper(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function PasswordInput(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function PinInput(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Popover(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Popper(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Progress(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function ProgressRing(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Radio(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function RadioGroup(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function RangePicker(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function RangeSlider(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Rating(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function ScrollArea(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function SearchInput(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function SegmentedControl(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Select(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function SelectSearch(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Sidebar(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function SimpleGrid(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Skeleton(...args: any[]): any;
@@ -0,0 +1,5 @@
1
+ export function Slider(...args: any[]): any;
2
+ export function SliderMark({ mark, getBounds }: {
3
+ mark: any;
4
+ getBounds: any;
5
+ }): any;
@@ -0,0 +1 @@
1
+ export function Space(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Stack(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Stepper(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Switch(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function SwitchGroup(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Table(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Tabs(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Tag(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Text(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function TextInput(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Textarea(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Timeline(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Title(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Toast(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function ToastStack(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function Tooltip(...args: any[]): any;
@@ -0,0 +1 @@
1
+ export function useDisclosure(initial?: boolean): any[];
@@ -0,0 +1,93 @@
1
+ export { cx } from "./utils.js";
2
+ export { Button } from "./components/Button.js";
3
+ export { Text } from "./components/Text.js";
4
+ export { Title } from "./components/Title.js";
5
+ export { Container } from "./components/Container.js";
6
+ export { Stack } from "./components/Stack.js";
7
+ export { Group } from "./components/Group.js";
8
+ export { Card } from "./components/Card.js";
9
+ export { Badge } from "./components/Badge.js";
10
+ export { TextInput } from "./components/TextInput.js";
11
+ export { Textarea } from "./components/Textarea.js";
12
+ export { NumberInput } from "./components/NumberInput.js";
13
+ export { Modal } from "./components/Modal.js";
14
+ export { Loading } from "./components/Loading.js";
15
+ export { Checkbox } from "./components/Checkbox.js";
16
+ export { Switch } from "./components/Switch.js";
17
+ export { Select } from "./components/Select.js";
18
+ export { Tabs } from "./components/Tabs.js";
19
+ export { Table } from "./components/Table.js";
20
+ export { Accordion } from "./components/Accordion.js";
21
+ export { Tooltip } from "./components/Tooltip.js";
22
+ export { Menu } from "./components/Menu.js";
23
+ export { Drawer } from "./components/Drawer.js";
24
+ export { Notification } from "./components/Notification.js";
25
+ export { Divider } from "./components/Divider.js";
26
+ export { Paper } from "./components/Paper.js";
27
+ export { Alert } from "./components/Alert.js";
28
+ export { Avatar } from "./components/Avatar.js";
29
+ export { Kbd } from "./components/Kbd.js";
30
+ export { Code } from "./components/Code.js";
31
+ export { Blockquote } from "./components/Blockquote.js";
32
+ export { SimpleGrid } from "./components/SimpleGrid.js";
33
+ export { List } from "./components/List.js";
34
+ export { Anchor } from "./components/Anchor.js";
35
+ export { Image } from "./components/Image.js";
36
+ export { Icon } from "./components/Icon.js";
37
+ export { Progress } from "./components/Progress.js";
38
+ export { Slider } from "./components/Slider.js";
39
+ export { Skeleton } from "./components/Skeleton.js";
40
+ export { Chip } from "./components/Chip.js";
41
+ export { SegmentedControl } from "./components/SegmentedControl.js";
42
+ export { Pagination } from "./components/Pagination.js";
43
+ export { Radio } from "./components/Radio.js";
44
+ export { RadioGroup } from "./components/RadioGroup.js";
45
+ export { Breadcrumbs } from "./components/Breadcrumbs.js";
46
+ export { Center } from "./components/Center.js";
47
+ export { Space } from "./components/Space.js";
48
+ export { Collapse } from "./components/Collapse.js";
49
+ export { ActionIcon } from "./components/ActionIcon.js";
50
+ export { Popover } from "./components/Popover.js";
51
+ export { HoverCard } from "./components/HoverCard.js";
52
+ export { Affix } from "./components/Affix.js";
53
+ export { Fieldset } from "./components/Fieldset.js";
54
+ export { AppBar } from "./components/AppBar.js";
55
+ export { Sidebar } from "./components/Sidebar.js";
56
+ export { Timeline } from "./components/Timeline.js";
57
+ export { Stepper } from "./components/Stepper.js";
58
+ export { Rating } from "./components/Rating.js";
59
+ export { Tag } from "./components/Tag.js";
60
+ export { Calendar } from "./components/Calendar.js";
61
+ export { MultiSelect } from "./components/MultiSelect.js";
62
+ export { ToastStack } from "./components/ToastStack.js";
63
+ export { DatePicker } from "./components/DatePicker.js";
64
+ export { Notifications } from "./components/Notifications.js";
65
+ export { RangeSlider } from "./components/RangeSlider.js";
66
+ export { DateInput } from "./components/DateInput.js";
67
+ export { NumberField } from "./components/NumberField.js";
68
+ export { Popper } from "./components/Popper.js";
69
+ export { PasswordInput } from "./components/PasswordInput.js";
70
+ export { SearchInput } from "./components/SearchInput.js";
71
+ export { CopyButton } from "./components/CopyButton.js";
72
+ export { ProgressRing } from "./components/ProgressRing.js";
73
+ export { Toast } from "./components/Toast.js";
74
+ export { SelectSearch } from "./components/SelectSearch.js";
75
+ export { SwitchGroup } from "./components/SwitchGroup.js";
76
+ export { RangePicker } from "./components/RangePicker.js";
77
+ export { Flex } from "./components/Flex.js";
78
+ export { NavLink } from "./components/NavLink.js";
79
+ export { Indicator } from "./components/Indicator.js";
80
+ export { Burger } from "./components/Burger.js";
81
+ export { LoadingOverlay } from "./components/LoadingOverlay.js";
82
+ export { Grid } from "./components/Grid.js";
83
+ export { Col } from "./components/Col.js";
84
+ export { ScrollArea } from "./components/ScrollArea.js";
85
+ export { PinInput } from "./components/PinInput.js";
86
+ export { CheckboxGroup } from "./components/CheckboxGroup.js";
87
+ export { AvatarGroup } from "./components/AvatarGroup.js";
88
+ export { BadgeGroup } from "./components/BadgeGroup.js";
89
+ export { GridTable } from "./components/GridTable.js";
90
+ export { BottomBar } from "./components/BottomBar.js";
91
+ export { EventCalendar } from "./components/EventCalendar.js";
92
+ export { useDisclosure } from "./hooks/useDisclosure.js";
93
+ export { setThemeVars, setThemeMode } from "./theme/theme.js";
@@ -0,0 +1,10 @@
1
+ export const forwardSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#1f1f1f\"><path d=\"M504-480 320-664l56-56 240 240-240 240-56-56 184-184Z\"/></svg>";
2
+ export const backwardSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#1f1f1f\"><path d=\"M560-240 320-480l240-240 56 56-184 184 184 184-56 56Z\"/></svg>";
3
+ export const checkedSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"40px\" viewBox=\"0 -960 960 960\" width=\"40px\" fill=\"#1f1f1f\"><path d=\"M379.33-244 154-469.33 201.67-517l177.66 177.67 378.34-378.34L805.33-670l-426 426Z\"/></svg>";
4
+ export const indeterminateSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"40px\" viewBox=\"0 -960 960 960\" width=\"40px\" fill=\"#1f1f1f\"><path d=\"M240-446.67v-66.66h480v66.66H240Z\"/></svg>";
5
+ export const closeSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"40px\" viewBox=\"0 -960 960 960\" width=\"40px\" fill=\"#1f1f1f\"><path d=\"M312-265.33 265.33-312l168-168-168-167L312-693.67l168 168 167-168L693.67-647l-168 167 168 168L647-265.33l-167-168-168 168Z\"/></svg>";
6
+ export const searchSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"#1f1f1f\"><path d=\"M784-120 532-372q-30 24-69 38t-83 14q-109 0-184.5-75.5T120-580q0-109 75.5-184.5T380-840q109 0 184.5 75.5T640-580q0 44-14 83t-38 69l252 252-56 56ZM380-400q75 0 127.5-52.5T560-580q0-75-52.5-127.5T380-760q-75 0-127.5 52.5T200-580q0 75 52.5 127.5T380-400Z\"/></svg>";
7
+ export const plusSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"currentColor\"><path d=\"M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z\"/></svg>";
8
+ export const editSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"currentColor\"><path d=\"M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h357l-80 80H200v560h560v-278l80-80v358q0 33-23.5 56.5T760-120H200Zm280-360v-80h240v80H480Zm0 160v-80h320v80H480Zm0 160v-80h320v80H480ZM360-360v-80h80v80h-80Zm0 160v-80h80v80h-80Zm0 160v-80h80v80h-80Zm160-320h280l-36-37 37-37v74H520Zm-160 0h80v-80h-80v80ZM120-600v-160l160-160h160l-80 80H200v240h-80Zm80-240v-80 80Z\"/></svg>";
9
+ export const deleteSvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"currentColor\"><path d=\"M280-120q-33 0-56.5-23.5T200-200v-520h-40v-80h200v-40h240v40h200v80h-40v520q0 33-23.5 56.5T680-120H280Zm400-600H280v520h400v-520ZM360-280h80v-360h-80v360Zm160 0h80v-360h-80v360ZM280-720v520-520Z\"/></svg>";
10
+ export const calendarTodaySvg: "<svg xmlns=\"http://www.w3.org/2000/svg\" height=\"24px\" viewBox=\"0 -960 960 960\" width=\"24px\" fill=\"currentColor\"><path d=\"M200-80q-33 0-56.5-23.5T120-160v-560q0-33 23.5-56.5T200-800h40v-80h80v80h320v-80h80v80h40q33 0 56.5 23.5T840-720v560q0 33-23.5 56.5T760-80H200Zm0-80h560v-400H200v400Z\"/></svg>";
@@ -0,0 +1 @@
1
+ export function ensureStyles(): void;
@@ -0,0 +1,2 @@
1
+ export function setThemeVars(vars?: {}, target?: HTMLElement): void;
2
+ export function setThemeMode(mode?: string, target?: HTMLElement): void;
@@ -0,0 +1,12 @@
1
+ export function cx(...values: any[]): any;
2
+ export function toPx(value: any): any;
3
+ export function splitPropsChildren(args: any, defaults: any): {
4
+ props: any;
5
+ rawProps: {};
6
+ children: any[];
7
+ };
8
+ export function resolveValue(value: any): any;
9
+ export function resolveBool(value: any): boolean;
10
+ export function classVar(prefix: any, value: any, fallback: any): any;
11
+ export function classFlag(name: any, value: any): any;
12
+ export function classMap(value: any, map: any, fallback: any): any;