@a4ui/core 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 (59) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +52 -0
  3. package/dist/index.d.ts +53 -0
  4. package/dist/index.js +2157 -0
  5. package/dist/layout/AppShell.d.ts +18 -0
  6. package/dist/layout/EffectsToggle.d.ts +1 -0
  7. package/dist/layout/NavGroup.d.ts +6 -0
  8. package/dist/layout/SpaceBackground.d.ts +1 -0
  9. package/dist/layout/ThemeToggle.d.ts +2 -0
  10. package/dist/lib/cn.d.ts +3 -0
  11. package/dist/lib/effects.d.ts +4 -0
  12. package/dist/lib/media.d.ts +1 -0
  13. package/dist/lib/motion.d.ts +24 -0
  14. package/dist/lib/theme.d.ts +10 -0
  15. package/dist/lib/virtual.d.ts +2 -0
  16. package/dist/styles.css +305 -0
  17. package/dist/ui/Accordion.d.ts +13 -0
  18. package/dist/ui/Alert.d.ts +9 -0
  19. package/dist/ui/AlertDialog.d.ts +9 -0
  20. package/dist/ui/Avatar.d.ts +9 -0
  21. package/dist/ui/Badge.d.ts +8 -0
  22. package/dist/ui/Breadcrumb.d.ts +11 -0
  23. package/dist/ui/Button.d.ts +10 -0
  24. package/dist/ui/Card.d.ts +18 -0
  25. package/dist/ui/Checkbox.d.ts +9 -0
  26. package/dist/ui/Combobox.d.ts +10 -0
  27. package/dist/ui/ContextMenu.d.ts +13 -0
  28. package/dist/ui/DateField.d.ts +10 -0
  29. package/dist/ui/Drawer.d.ts +10 -0
  30. package/dist/ui/Dropdown.d.ts +17 -0
  31. package/dist/ui/Dropzone.d.ts +13 -0
  32. package/dist/ui/HoverCard.d.ts +7 -0
  33. package/dist/ui/Input.d.ts +8 -0
  34. package/dist/ui/Meter.d.ts +9 -0
  35. package/dist/ui/Modal.d.ts +10 -0
  36. package/dist/ui/NumberInput.d.ts +10 -0
  37. package/dist/ui/PageHeader.d.ts +9 -0
  38. package/dist/ui/Pagination.d.ts +9 -0
  39. package/dist/ui/Popover.d.ts +7 -0
  40. package/dist/ui/Progress.d.ts +9 -0
  41. package/dist/ui/RadioGroup.d.ts +15 -0
  42. package/dist/ui/SegmentedControl.d.ts +13 -0
  43. package/dist/ui/Select.d.ts +8 -0
  44. package/dist/ui/Separator.d.ts +7 -0
  45. package/dist/ui/Skeleton.d.ts +6 -0
  46. package/dist/ui/Slider.d.ts +12 -0
  47. package/dist/ui/Spinner.d.ts +7 -0
  48. package/dist/ui/Stat.d.ts +16 -0
  49. package/dist/ui/Switch.d.ts +10 -0
  50. package/dist/ui/Table.d.ts +11 -0
  51. package/dist/ui/Tabs.d.ts +14 -0
  52. package/dist/ui/Textarea.d.ts +8 -0
  53. package/dist/ui/Toast.d.ts +9 -0
  54. package/dist/ui/Toggle.d.ts +8 -0
  55. package/dist/ui/ToggleGroup.d.ts +13 -0
  56. package/dist/ui/Tooltip.d.ts +7 -0
  57. package/dist/ui/VirtualList.d.ts +15 -0
  58. package/package.json +82 -0
  59. package/preset.js +166 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Luis Alfredo Rivera Acuña
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,52 @@
1
+ # A4ui
2
+
3
+ **Spatial Glass** design system & component library for **SolidJS**. Named after
4
+ the 4 people in the Rivera family. 🙂
5
+
6
+ Three layers, one identity:
7
+
8
+ | Layer | What it gives | Tech |
9
+ |-------|---------------|------|
10
+ | Behavior / a11y | focus, keyboard, ARIA, portals | **Kobalte** |
11
+ | Motion | transitions, springs, count-up, calm mode | **solid-transition-group + solid-motionone** + helpers |
12
+ | Visual | glass tokens, colors, glow | **Tailwind preset + `styles.css`** |
13
+
14
+ ## Install (once published)
15
+
16
+ ```bash
17
+ npm install @a4ui/core
18
+ ```
19
+
20
+ ## Use
21
+
22
+ ```ts
23
+ // tailwind.config.ts
24
+ import a4ui from '@a4ui/core/preset'
25
+ export default {
26
+ presets: [a4ui],
27
+ content: ['./src/**/*.{ts,tsx}', './node_modules/@a4ui/core/dist/**/*.js'],
28
+ }
29
+ ```
30
+
31
+ ```tsx
32
+ // entry (once)
33
+ import '@a4ui/core/styles.css'
34
+
35
+ // anywhere
36
+ import { Button, Card, Modal } from '@a4ui/core'
37
+ ```
38
+
39
+ ## Status
40
+
41
+ 🌱 **Bases sembradas** — tokens + Tailwind preset + build scaffold. Components are
42
+ being extracted from the source app. See **`CLAUDE.md`** for the full plan and how
43
+ to continue in a new session.
44
+
45
+ ## Develop
46
+
47
+ ```bash
48
+ npm install
49
+ npm run build # library build (ESM + .d.ts)
50
+ npm run dev # watch build
51
+ npm run typecheck
52
+ ```
@@ -0,0 +1,53 @@
1
+ export declare const A4UI_VERSION = "0.0.0";
2
+ export { cn } from './lib/cn';
3
+ export { useTheme, toggleTheme, setTheme, storedTheme, applyTheme, toggled, type Theme } from './lib/theme';
4
+ export { useEffects, isCalm, setEffects } from './lib/effects';
5
+ export { prefersReducedMotion, motionReduced, useMotionForced, setMotionForced, createCountUp, } from './lib/motion';
6
+ export { useMediaQuery } from './lib/media';
7
+ export { remeasureAfterLayout } from './lib/virtual';
8
+ export { Accordion, type AccordionItem } from './ui/Accordion';
9
+ export { Badge, type BadgeTone } from './ui/Badge';
10
+ export { Button, type ButtonVariant } from './ui/Button';
11
+ export { Card, CardHeader, CardTitle, CardContent } from './ui/Card';
12
+ export { Checkbox } from './ui/Checkbox';
13
+ export { DateField } from './ui/DateField';
14
+ export { Drawer } from './ui/Drawer';
15
+ export { Dropdown, type DropdownItem } from './ui/Dropdown';
16
+ export { Dropzone } from './ui/Dropzone';
17
+ export { Input } from './ui/Input';
18
+ export { Modal } from './ui/Modal';
19
+ export { PageHeader } from './ui/PageHeader';
20
+ export { Pagination } from './ui/Pagination';
21
+ export { Select } from './ui/Select';
22
+ export { Spinner } from './ui/Spinner';
23
+ export { Stat, type StatTone } from './ui/Stat';
24
+ export { Table, TableHead, TableBody, TableRow, TableHeadCell, TableCell } from './ui/Table';
25
+ export { VirtualList } from './ui/VirtualList';
26
+ export { Tabs, type TabItem } from './ui/Tabs';
27
+ export { toast, Toaster, type ToastTone } from './ui/Toast';
28
+ export { Switch } from './ui/Switch';
29
+ export { RadioGroup, type RadioOption } from './ui/RadioGroup';
30
+ export { Textarea } from './ui/Textarea';
31
+ export { Tooltip } from './ui/Tooltip';
32
+ export { Popover } from './ui/Popover';
33
+ export { HoverCard } from './ui/HoverCard';
34
+ export { Alert, type AlertTone } from './ui/Alert';
35
+ export { Avatar } from './ui/Avatar';
36
+ export { Skeleton } from './ui/Skeleton';
37
+ export { Separator } from './ui/Separator';
38
+ export { Progress } from './ui/Progress';
39
+ export { Meter } from './ui/Meter';
40
+ export { Slider } from './ui/Slider';
41
+ export { NumberInput } from './ui/NumberInput';
42
+ export { Toggle } from './ui/Toggle';
43
+ export { ToggleGroup, type ToggleGroupOption } from './ui/ToggleGroup';
44
+ export { SegmentedControl, type SegmentedOption } from './ui/SegmentedControl';
45
+ export { Breadcrumb, type BreadcrumbItem } from './ui/Breadcrumb';
46
+ export { AlertDialog } from './ui/AlertDialog';
47
+ export { ContextMenu, type ContextMenuItem } from './ui/ContextMenu';
48
+ export { Combobox } from './ui/Combobox';
49
+ export { AppShell } from './layout/AppShell';
50
+ export { SpaceBackground } from './layout/SpaceBackground';
51
+ export { ThemeToggle } from './layout/ThemeToggle';
52
+ export { EffectsToggle } from './layout/EffectsToggle';
53
+ export { NavGroup } from './layout/NavGroup';