@santi020k/lumen-astro 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 (131) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +142 -0
  3. package/components/Accordion.astro +27 -0
  4. package/components/Affix.astro +41 -0
  5. package/components/Agenda.astro +19 -0
  6. package/components/Alert.astro +38 -0
  7. package/components/AlertDialog.astro +41 -0
  8. package/components/Anchor.astro +43 -0
  9. package/components/AnimatedLogo.astro +30 -0
  10. package/components/AnimatedNumber.astro +56 -0
  11. package/components/AnimatedPortrait.astro +124 -0
  12. package/components/AspectRatio.astro +39 -0
  13. package/components/Attachment.astro +46 -0
  14. package/components/Autocomplete.astro +24 -0
  15. package/components/Avatar.astro +36 -0
  16. package/components/BackToTop.astro +30 -0
  17. package/components/Badge.astro +36 -0
  18. package/components/Breadcrumb.astro +28 -0
  19. package/components/Bubble.astro +36 -0
  20. package/components/Button.astro +52 -0
  21. package/components/ButtonGroup.astro +27 -0
  22. package/components/ButtonLink.astro +58 -0
  23. package/components/Calendar.astro +197 -0
  24. package/components/Callout.astro +27 -0
  25. package/components/Card.astro +40 -0
  26. package/components/Carousel.astro +33 -0
  27. package/components/Cascader.astro +109 -0
  28. package/components/Chart.astro +32 -0
  29. package/components/Checkbox.astro +22 -0
  30. package/components/Code.astro +96 -0
  31. package/components/Collapsible.astro +28 -0
  32. package/components/ColorPicker.astro +16 -0
  33. package/components/Combobox.astro +67 -0
  34. package/components/Command.astro +33 -0
  35. package/components/ContextMenu.astro +44 -0
  36. package/components/CoverImage.astro +180 -0
  37. package/components/DataTable.astro +122 -0
  38. package/components/DatePicker.astro +108 -0
  39. package/components/DateRangePicker.astro +18 -0
  40. package/components/Descriptions.astro +41 -0
  41. package/components/Dialog.astro +40 -0
  42. package/components/Direction.astro +30 -0
  43. package/components/Drawer.astro +40 -0
  44. package/components/DropdownMenu.astro +40 -0
  45. package/components/Empty.astro +32 -0
  46. package/components/Eyebrow.astro +27 -0
  47. package/components/Field.astro +42 -0
  48. package/components/FileUpload.astro +44 -0
  49. package/components/FloatingBadge.astro +27 -0
  50. package/components/FormattedDate.astro +27 -0
  51. package/components/GradientDivider.astro +24 -0
  52. package/components/HoverCard.astro +40 -0
  53. package/components/Icon.astro +50 -0
  54. package/components/Image.astro +33 -0
  55. package/components/Input.astro +24 -0
  56. package/components/InputGroup.astro +27 -0
  57. package/components/InputOTP.astro +60 -0
  58. package/components/Item.astro +32 -0
  59. package/components/Kbd.astro +27 -0
  60. package/components/Label.astro +18 -0
  61. package/components/LanguageToggle.astro +30 -0
  62. package/components/Link.astro +27 -0
  63. package/components/Marker.astro +33 -0
  64. package/components/Mentions.astro +47 -0
  65. package/components/Menubar.astro +40 -0
  66. package/components/Message.astro +32 -0
  67. package/components/MessageScroller.astro +32 -0
  68. package/components/Meter.astro +31 -0
  69. package/components/NativeSelect.astro +37 -0
  70. package/components/NavigationMenu.astro +40 -0
  71. package/components/Note.astro +23 -0
  72. package/components/NumberField.astro +16 -0
  73. package/components/Pagination.astro +28 -0
  74. package/components/Particles.astro +31 -0
  75. package/components/PhoneInput.astro +86 -0
  76. package/components/Pill.astro +30 -0
  77. package/components/Popconfirm.astro +40 -0
  78. package/components/Popover.astro +40 -0
  79. package/components/Progress.astro +30 -0
  80. package/components/Prose.astro +27 -0
  81. package/components/QRCode.astro +44 -0
  82. package/components/RadioGroup.astro +28 -0
  83. package/components/Rating.astro +42 -0
  84. package/components/Resizable.astro +55 -0
  85. package/components/RevealGroup.astro +54 -0
  86. package/components/RichTextEditor.astro +19 -0
  87. package/components/Schedule.astro +19 -0
  88. package/components/ScrollArea.astro +32 -0
  89. package/components/ScrollReveal.astro +50 -0
  90. package/components/SearchField.astro +16 -0
  91. package/components/Segmented.astro +56 -0
  92. package/components/Select.astro +120 -0
  93. package/components/Separator.astro +31 -0
  94. package/components/Sheet.astro +40 -0
  95. package/components/Sidebar.astro +39 -0
  96. package/components/Skeleton.astro +36 -0
  97. package/components/SkipLink.astro +27 -0
  98. package/components/Slider.astro +20 -0
  99. package/components/Sonner.astro +38 -0
  100. package/components/SpeedDial.astro +77 -0
  101. package/components/Spinner.astro +36 -0
  102. package/components/Stat.astro +34 -0
  103. package/components/Stepper.astro +57 -0
  104. package/components/Switch.astro +23 -0
  105. package/components/Table.astro +32 -0
  106. package/components/Tabs.astro +33 -0
  107. package/components/TagGroup.astro +18 -0
  108. package/components/Textarea.astro +17 -0
  109. package/components/ThemeBuilder.astro +19 -0
  110. package/components/ThemeToggle.astro +41 -0
  111. package/components/TimeField.astro +16 -0
  112. package/components/Timeline.astro +12 -0
  113. package/components/TimelineItem.astro +19 -0
  114. package/components/Toast.astro +50 -0
  115. package/components/Toggle.astro +25 -0
  116. package/components/ToggleGroup.astro +28 -0
  117. package/components/Toolbar.astro +36 -0
  118. package/components/Tooltip.astro +27 -0
  119. package/components/Tour.astro +52 -0
  120. package/components/Transfer.astro +70 -0
  121. package/components/Tree.astro +19 -0
  122. package/components/TreeGrid.astro +19 -0
  123. package/components/TreeSelect.astro +69 -0
  124. package/components/Typography.astro +27 -0
  125. package/components/VirtualList.astro +19 -0
  126. package/components/Watermark.astro +60 -0
  127. package/index.d.ts +125 -0
  128. package/index.ts +125 -0
  129. package/package.json +74 -0
  130. package/runtime/UIPrimitives.astro +4649 -0
  131. package/styles/lumen.css +5 -0
@@ -0,0 +1,19 @@
1
+ ---
2
+ import { resolveLumenAstroProps } from '@santi020k/lumen-core'
3
+
4
+ import type { HTMLAttributes } from 'astro/types'
5
+
6
+ interface Props extends HTMLAttributes<'div'> {
7
+ class?: string
8
+ className?: string
9
+ glass?: boolean | 'subtle' | 'strong'
10
+ }
11
+
12
+ const { class: classProp = '', className = '', glass = false, ...rest } = Astro.props
13
+ const { classList, passthrough } = resolveLumenAstroProps(rest, ['ui-virtual-list', glass && 'ui-virtual-list--glass', glass === 'subtle' && 'ui-glass-subtle', glass === 'strong' && 'ui-glass-strong'
14
+ ], classProp, className)
15
+ ---
16
+
17
+ <div class:list={classList} data-ui-virtual-list {...passthrough}>
18
+ <slot />
19
+ </div>
@@ -0,0 +1,60 @@
1
+ ---
2
+ import { resolveLumenAstroProps } from '@santi020k/lumen-core'
3
+
4
+ import type { HTMLAttributes } from 'astro/types'
5
+
6
+ interface Props extends HTMLAttributes<'div'> {
7
+ class?: string
8
+ className?: string
9
+ content?: string
10
+ gap?: number
11
+ rotate?: number
12
+ text?: string
13
+ }
14
+
15
+ const {
16
+ class: classProp = '',
17
+ className = '',
18
+ content,
19
+ gap = 120,
20
+ rotate = -22,
21
+ text = 'Confidential',
22
+ ...rest
23
+ } = Astro.props
24
+
25
+ const watermarkText = content ?? text
26
+ const tileSize = Math.max(1, gap)
27
+ const watermarkXmlEntities: Record<string, string> = {
28
+ '&': '&amp;',
29
+ '<': '&lt;',
30
+ '>': '&gt;',
31
+ '"': '&quot;',
32
+ "'": '&apos;'
33
+ }
34
+ const escapedWatermarkText = watermarkText.replaceAll(
35
+ /[&<>"']/g,
36
+ character => watermarkXmlEntities[character] ?? character
37
+ )
38
+ const watermarkSvg = [
39
+ `<svg xmlns="http://www.w3.org/2000/svg" width="${tileSize}" height="${tileSize}" viewBox="0 0 ${tileSize} ${tileSize}">`,
40
+ `<text x="${tileSize / 2}" y="${tileSize / 2}" dominant-baseline="middle" text-anchor="middle"`,
41
+ ` transform="rotate(${rotate} ${tileSize / 2} ${tileSize / 2})"`,
42
+ ' fill="black" font-family="system-ui, sans-serif" font-size="16" font-weight="500" letter-spacing="1.6">',
43
+ `${escapedWatermarkText}</text></svg>`
44
+ ].join('')
45
+ const watermarkImage = `url("data:image/svg+xml,${encodeURIComponent(watermarkSvg)}")`
46
+
47
+ const { classList, passthrough } = resolveLumenAstroProps(rest, [
48
+ 'ui-watermark'
49
+ ], classProp, className)
50
+ ---
51
+
52
+ <div
53
+ class:list={classList}
54
+ data-ui-watermark
55
+ style={`--ui-watermark-gap:${tileSize}px;--ui-watermark-image:${watermarkImage}`}
56
+ {...passthrough}
57
+ >
58
+ <slot />
59
+ <div aria-hidden="true" class="ui-watermark__overlay" data-text={watermarkText}></div>
60
+ </div>
package/index.d.ts ADDED
@@ -0,0 +1,125 @@
1
+ export { default as Accordion } from './components/Accordion.astro'
2
+ export { default as Affix } from './components/Affix.astro'
3
+ export { default as Agenda } from './components/Agenda.astro'
4
+ export { default as Alert } from './components/Alert.astro'
5
+ export { default as AlertDialog } from './components/AlertDialog.astro'
6
+ export { default as Anchor } from './components/Anchor.astro'
7
+ export { default as AnimatedLogo } from './components/AnimatedLogo.astro'
8
+ export { default as AnimatedNumber } from './components/AnimatedNumber.astro'
9
+ export { default as AnimatedPortrait } from './components/AnimatedPortrait.astro'
10
+ export { default as AspectRatio } from './components/AspectRatio.astro'
11
+ export { default as Attachment } from './components/Attachment.astro'
12
+ export { default as Autocomplete } from './components/Autocomplete.astro'
13
+ export { default as Avatar } from './components/Avatar.astro'
14
+ export { default as BackToTop } from './components/BackToTop.astro'
15
+ export { default as Badge } from './components/Badge.astro'
16
+ export { default as Breadcrumb } from './components/Breadcrumb.astro'
17
+ export { default as Bubble } from './components/Bubble.astro'
18
+ export { default as Button } from './components/Button.astro'
19
+ export { default as ButtonGroup } from './components/ButtonGroup.astro'
20
+ export { default as ButtonLink } from './components/ButtonLink.astro'
21
+ export { default as Calendar } from './components/Calendar.astro'
22
+ export { default as Callout } from './components/Callout.astro'
23
+ export { default as Card } from './components/Card.astro'
24
+ export { default as Carousel } from './components/Carousel.astro'
25
+ export { default as Cascader } from './components/Cascader.astro'
26
+ export { default as Chart } from './components/Chart.astro'
27
+ export { default as Checkbox } from './components/Checkbox.astro'
28
+ export { default as Code } from './components/Code.astro'
29
+ export { default as Collapsible } from './components/Collapsible.astro'
30
+ export { default as ColorPicker } from './components/ColorPicker.astro'
31
+ export { default as Combobox } from './components/Combobox.astro'
32
+ export { default as Command } from './components/Command.astro'
33
+ export { default as ContextMenu } from './components/ContextMenu.astro'
34
+ export { default as CoverImage } from './components/CoverImage.astro'
35
+ export { default as DataTable } from './components/DataTable.astro'
36
+ export { default as DatePicker } from './components/DatePicker.astro'
37
+ export { default as DateRangePicker } from './components/DateRangePicker.astro'
38
+ export { default as Descriptions } from './components/Descriptions.astro'
39
+ export { default as Dialog } from './components/Dialog.astro'
40
+ export { default as Direction } from './components/Direction.astro'
41
+ export { default as Drawer } from './components/Drawer.astro'
42
+ export { default as DropdownMenu } from './components/DropdownMenu.astro'
43
+ export { default as Empty } from './components/Empty.astro'
44
+ export { default as Eyebrow } from './components/Eyebrow.astro'
45
+ export { default as Field } from './components/Field.astro'
46
+ export { default as FileUpload } from './components/FileUpload.astro'
47
+ export { default as FloatingBadge } from './components/FloatingBadge.astro'
48
+ export { default as FormattedDate } from './components/FormattedDate.astro'
49
+ export { default as GradientDivider } from './components/GradientDivider.astro'
50
+ export { default as HoverCard } from './components/HoverCard.astro'
51
+ export { default as Icon } from './components/Icon.astro'
52
+ export { default as Image } from './components/Image.astro'
53
+ export { default as Input } from './components/Input.astro'
54
+ export { default as InputGroup } from './components/InputGroup.astro'
55
+ export { default as InputOTP } from './components/InputOTP.astro'
56
+ export { default as Item } from './components/Item.astro'
57
+ export { default as Kbd } from './components/Kbd.astro'
58
+ export { default as Label } from './components/Label.astro'
59
+ export { default as LanguageToggle } from './components/LanguageToggle.astro'
60
+ export { default as Link } from './components/Link.astro'
61
+ export { default as Marker } from './components/Marker.astro'
62
+ export { default as Mentions } from './components/Mentions.astro'
63
+ export { default as Menubar } from './components/Menubar.astro'
64
+ export { default as Message } from './components/Message.astro'
65
+ export { default as MessageScroller } from './components/MessageScroller.astro'
66
+ export { default as Meter } from './components/Meter.astro'
67
+ export { default as NativeSelect } from './components/NativeSelect.astro'
68
+ export { default as NavigationMenu } from './components/NavigationMenu.astro'
69
+ export { default as Note } from './components/Note.astro'
70
+ export { default as NumberField } from './components/NumberField.astro'
71
+ export { default as Pagination } from './components/Pagination.astro'
72
+ export { default as Particles } from './components/Particles.astro'
73
+ export { default as PhoneInput } from './components/PhoneInput.astro'
74
+ export { default as Pill } from './components/Pill.astro'
75
+ export { default as Popconfirm } from './components/Popconfirm.astro'
76
+ export { default as Popover } from './components/Popover.astro'
77
+ export { default as Progress } from './components/Progress.astro'
78
+ export { default as Prose } from './components/Prose.astro'
79
+ export { default as QRCode } from './components/QRCode.astro'
80
+ export { default as RadioGroup } from './components/RadioGroup.astro'
81
+ export { default as Rating } from './components/Rating.astro'
82
+ export { default as Resizable } from './components/Resizable.astro'
83
+ export { default as RevealGroup } from './components/RevealGroup.astro'
84
+ export { default as RichTextEditor } from './components/RichTextEditor.astro'
85
+ export { default as Schedule } from './components/Schedule.astro'
86
+ export { default as ScrollArea } from './components/ScrollArea.astro'
87
+ export { default as ScrollReveal } from './components/ScrollReveal.astro'
88
+ export { default as SearchField } from './components/SearchField.astro'
89
+ export { default as Segmented } from './components/Segmented.astro'
90
+ export { default as Select } from './components/Select.astro'
91
+ export { default as Separator } from './components/Separator.astro'
92
+ export { default as Sheet } from './components/Sheet.astro'
93
+ export { default as Sidebar } from './components/Sidebar.astro'
94
+ export { default as Skeleton } from './components/Skeleton.astro'
95
+ export { default as SkipLink } from './components/SkipLink.astro'
96
+ export { default as Slider } from './components/Slider.astro'
97
+ export { default as Sonner } from './components/Sonner.astro'
98
+ export { default as SpeedDial } from './components/SpeedDial.astro'
99
+ export { default as Spinner } from './components/Spinner.astro'
100
+ export { default as Stat } from './components/Stat.astro'
101
+ export { default as Stepper } from './components/Stepper.astro'
102
+ export { default as Switch } from './components/Switch.astro'
103
+ export { default as Table } from './components/Table.astro'
104
+ export { default as Tabs } from './components/Tabs.astro'
105
+ export { default as TagGroup } from './components/TagGroup.astro'
106
+ export { default as Textarea } from './components/Textarea.astro'
107
+ export { default as ThemeBuilder } from './components/ThemeBuilder.astro'
108
+ export { default as ThemeToggle } from './components/ThemeToggle.astro'
109
+ export { default as TimeField } from './components/TimeField.astro'
110
+ export { default as Timeline } from './components/Timeline.astro'
111
+ export { default as TimelineItem } from './components/TimelineItem.astro'
112
+ export { default as Toast } from './components/Toast.astro'
113
+ export { default as Toggle } from './components/Toggle.astro'
114
+ export { default as ToggleGroup } from './components/ToggleGroup.astro'
115
+ export { default as Toolbar } from './components/Toolbar.astro'
116
+ export { default as Tooltip } from './components/Tooltip.astro'
117
+ export { default as Tour } from './components/Tour.astro'
118
+ export { default as Transfer } from './components/Transfer.astro'
119
+ export { default as Tree } from './components/Tree.astro'
120
+ export { default as TreeGrid } from './components/TreeGrid.astro'
121
+ export { default as TreeSelect } from './components/TreeSelect.astro'
122
+ export { default as Typography } from './components/Typography.astro'
123
+ export { default as VirtualList } from './components/VirtualList.astro'
124
+ export { default as Watermark } from './components/Watermark.astro'
125
+ export { default as UIPrimitives } from './runtime/UIPrimitives.astro'
package/index.ts ADDED
@@ -0,0 +1,125 @@
1
+ export { default as Accordion } from './components/Accordion.astro'
2
+ export { default as Affix } from './components/Affix.astro'
3
+ export { default as Agenda } from './components/Agenda.astro'
4
+ export { default as Alert } from './components/Alert.astro'
5
+ export { default as AlertDialog } from './components/AlertDialog.astro'
6
+ export { default as Anchor } from './components/Anchor.astro'
7
+ export { default as AnimatedLogo } from './components/AnimatedLogo.astro'
8
+ export { default as AnimatedNumber } from './components/AnimatedNumber.astro'
9
+ export { default as AnimatedPortrait } from './components/AnimatedPortrait.astro'
10
+ export { default as AspectRatio } from './components/AspectRatio.astro'
11
+ export { default as Attachment } from './components/Attachment.astro'
12
+ export { default as Autocomplete } from './components/Autocomplete.astro'
13
+ export { default as Avatar } from './components/Avatar.astro'
14
+ export { default as BackToTop } from './components/BackToTop.astro'
15
+ export { default as Badge } from './components/Badge.astro'
16
+ export { default as Breadcrumb } from './components/Breadcrumb.astro'
17
+ export { default as Bubble } from './components/Bubble.astro'
18
+ export { default as Button } from './components/Button.astro'
19
+ export { default as ButtonGroup } from './components/ButtonGroup.astro'
20
+ export { default as ButtonLink } from './components/ButtonLink.astro'
21
+ export { default as Calendar } from './components/Calendar.astro'
22
+ export { default as Callout } from './components/Callout.astro'
23
+ export { default as Card } from './components/Card.astro'
24
+ export { default as Carousel } from './components/Carousel.astro'
25
+ export { default as Cascader } from './components/Cascader.astro'
26
+ export { default as Chart } from './components/Chart.astro'
27
+ export { default as Checkbox } from './components/Checkbox.astro'
28
+ export { default as Code } from './components/Code.astro'
29
+ export { default as Collapsible } from './components/Collapsible.astro'
30
+ export { default as ColorPicker } from './components/ColorPicker.astro'
31
+ export { default as Combobox } from './components/Combobox.astro'
32
+ export { default as Command } from './components/Command.astro'
33
+ export { default as ContextMenu } from './components/ContextMenu.astro'
34
+ export { default as CoverImage } from './components/CoverImage.astro'
35
+ export { default as DataTable } from './components/DataTable.astro'
36
+ export { default as DatePicker } from './components/DatePicker.astro'
37
+ export { default as DateRangePicker } from './components/DateRangePicker.astro'
38
+ export { default as Descriptions } from './components/Descriptions.astro'
39
+ export { default as Dialog } from './components/Dialog.astro'
40
+ export { default as Direction } from './components/Direction.astro'
41
+ export { default as Drawer } from './components/Drawer.astro'
42
+ export { default as DropdownMenu } from './components/DropdownMenu.astro'
43
+ export { default as Empty } from './components/Empty.astro'
44
+ export { default as Eyebrow } from './components/Eyebrow.astro'
45
+ export { default as Field } from './components/Field.astro'
46
+ export { default as FileUpload } from './components/FileUpload.astro'
47
+ export { default as FloatingBadge } from './components/FloatingBadge.astro'
48
+ export { default as FormattedDate } from './components/FormattedDate.astro'
49
+ export { default as GradientDivider } from './components/GradientDivider.astro'
50
+ export { default as HoverCard } from './components/HoverCard.astro'
51
+ export { default as Icon } from './components/Icon.astro'
52
+ export { default as Image } from './components/Image.astro'
53
+ export { default as Input } from './components/Input.astro'
54
+ export { default as InputGroup } from './components/InputGroup.astro'
55
+ export { default as InputOTP } from './components/InputOTP.astro'
56
+ export { default as Item } from './components/Item.astro'
57
+ export { default as Kbd } from './components/Kbd.astro'
58
+ export { default as Label } from './components/Label.astro'
59
+ export { default as LanguageToggle } from './components/LanguageToggle.astro'
60
+ export { default as Link } from './components/Link.astro'
61
+ export { default as Marker } from './components/Marker.astro'
62
+ export { default as Mentions } from './components/Mentions.astro'
63
+ export { default as Menubar } from './components/Menubar.astro'
64
+ export { default as Message } from './components/Message.astro'
65
+ export { default as MessageScroller } from './components/MessageScroller.astro'
66
+ export { default as Meter } from './components/Meter.astro'
67
+ export { default as NativeSelect } from './components/NativeSelect.astro'
68
+ export { default as NavigationMenu } from './components/NavigationMenu.astro'
69
+ export { default as Note } from './components/Note.astro'
70
+ export { default as NumberField } from './components/NumberField.astro'
71
+ export { default as Pagination } from './components/Pagination.astro'
72
+ export { default as Particles } from './components/Particles.astro'
73
+ export { default as PhoneInput } from './components/PhoneInput.astro'
74
+ export { default as Pill } from './components/Pill.astro'
75
+ export { default as Popconfirm } from './components/Popconfirm.astro'
76
+ export { default as Popover } from './components/Popover.astro'
77
+ export { default as Progress } from './components/Progress.astro'
78
+ export { default as Prose } from './components/Prose.astro'
79
+ export { default as QRCode } from './components/QRCode.astro'
80
+ export { default as RadioGroup } from './components/RadioGroup.astro'
81
+ export { default as Rating } from './components/Rating.astro'
82
+ export { default as Resizable } from './components/Resizable.astro'
83
+ export { default as RevealGroup } from './components/RevealGroup.astro'
84
+ export { default as RichTextEditor } from './components/RichTextEditor.astro'
85
+ export { default as Schedule } from './components/Schedule.astro'
86
+ export { default as ScrollArea } from './components/ScrollArea.astro'
87
+ export { default as ScrollReveal } from './components/ScrollReveal.astro'
88
+ export { default as SearchField } from './components/SearchField.astro'
89
+ export { default as Segmented } from './components/Segmented.astro'
90
+ export { default as Select } from './components/Select.astro'
91
+ export { default as Separator } from './components/Separator.astro'
92
+ export { default as Sheet } from './components/Sheet.astro'
93
+ export { default as Sidebar } from './components/Sidebar.astro'
94
+ export { default as Skeleton } from './components/Skeleton.astro'
95
+ export { default as SkipLink } from './components/SkipLink.astro'
96
+ export { default as Slider } from './components/Slider.astro'
97
+ export { default as Sonner } from './components/Sonner.astro'
98
+ export { default as SpeedDial } from './components/SpeedDial.astro'
99
+ export { default as Spinner } from './components/Spinner.astro'
100
+ export { default as Stat } from './components/Stat.astro'
101
+ export { default as Stepper } from './components/Stepper.astro'
102
+ export { default as Switch } from './components/Switch.astro'
103
+ export { default as Table } from './components/Table.astro'
104
+ export { default as Tabs } from './components/Tabs.astro'
105
+ export { default as TagGroup } from './components/TagGroup.astro'
106
+ export { default as Textarea } from './components/Textarea.astro'
107
+ export { default as ThemeBuilder } from './components/ThemeBuilder.astro'
108
+ export { default as ThemeToggle } from './components/ThemeToggle.astro'
109
+ export { default as TimeField } from './components/TimeField.astro'
110
+ export { default as Timeline } from './components/Timeline.astro'
111
+ export { default as TimelineItem } from './components/TimelineItem.astro'
112
+ export { default as Toast } from './components/Toast.astro'
113
+ export { default as Toggle } from './components/Toggle.astro'
114
+ export { default as ToggleGroup } from './components/ToggleGroup.astro'
115
+ export { default as Toolbar } from './components/Toolbar.astro'
116
+ export { default as Tooltip } from './components/Tooltip.astro'
117
+ export { default as Tour } from './components/Tour.astro'
118
+ export { default as Transfer } from './components/Transfer.astro'
119
+ export { default as Tree } from './components/Tree.astro'
120
+ export { default as TreeGrid } from './components/TreeGrid.astro'
121
+ export { default as TreeSelect } from './components/TreeSelect.astro'
122
+ export { default as Typography } from './components/Typography.astro'
123
+ export { default as VirtualList } from './components/VirtualList.astro'
124
+ export { default as Watermark } from './components/Watermark.astro'
125
+ export { default as UIPrimitives } from './runtime/UIPrimitives.astro'
package/package.json ADDED
@@ -0,0 +1,74 @@
1
+ {
2
+ "name": "@santi020k/lumen-astro",
3
+ "version": "0.1.0",
4
+ "publishConfig": {
5
+ "access": "public"
6
+ },
7
+ "description": "Astro components and progressive-enhancement runtime for Lumen UI.",
8
+ "type": "module",
9
+ "sideEffects": [
10
+ "./styles/lumen.css",
11
+ "./styles.css"
12
+ ],
13
+ "types": "./index.d.ts",
14
+ "exports": {
15
+ ".": {
16
+ "types": "./index.d.ts",
17
+ "import": "./index.ts"
18
+ },
19
+ "./components/*": "./components/*.astro",
20
+ "./runtime": "./runtime/UIPrimitives.astro",
21
+ "./styles.css": "./styles/lumen.css",
22
+ "./package.json": "./package.json"
23
+ },
24
+ "files": [
25
+ "components",
26
+ "runtime",
27
+ "styles",
28
+ "index.d.ts",
29
+ "index.ts",
30
+ "README.md",
31
+ "LICENSE"
32
+ ],
33
+ "dependencies": {
34
+ "uqr": "^0.1.3",
35
+ "@santi020k/lumen": "^0.1.0",
36
+ "@santi020k/lumen-core": "^0.1.0"
37
+ },
38
+ "devDependencies": {
39
+ "@astrojs/ts-plugin": "^1.10.10",
40
+ "astro": "^7.1.3",
41
+ "typescript": "^6.0.3",
42
+ "vitest": "^4.1.10"
43
+ },
44
+ "peerDependencies": {
45
+ "astro": ">=5"
46
+ },
47
+ "engines": {
48
+ "node": ">=22.18.0"
49
+ },
50
+ "repository": {
51
+ "type": "git",
52
+ "url": "https://github.com/santi020k/lumen.git",
53
+ "directory": "packages/astro"
54
+ },
55
+ "homepage": "https://lumen.santi020k.com",
56
+ "bugs": {
57
+ "url": "https://github.com/santi020k/lumen/issues"
58
+ },
59
+ "author": {
60
+ "name": "Santiago Molina",
61
+ "url": "https://santi020k.com"
62
+ },
63
+ "license": "MIT",
64
+ "scripts": {
65
+ "build": "astro sync && tsc -p tsconfig.json --noEmit",
66
+ "dev": "astro sync --watch",
67
+ "typecheck": "astro sync && tsc -p tsconfig.json --noEmit",
68
+ "test": "vitest run --config ../../vitest.config.ts --project astro",
69
+ "test:coverage": "vitest run --config ../../vitest.config.ts --project astro --coverage",
70
+ "lint": "eslint . --no-warn-ignored",
71
+ "lint:fix": "eslint . --fix --no-warn-ignored",
72
+ "clean": "rm -rf .astro coverage"
73
+ }
74
+ }