@astryxdesign/theme-stone 0.0.0-bootstrap.0 → 0.1.0-canary.08d4cf4

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.
package/src/icons.tsx ADDED
@@ -0,0 +1,77 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ /**
4
+ * @file icons.tsx
5
+ * @input Uses lucide-react icon components, IconRegistry type
6
+ * @output Exports stoneIconRegistry for the neutral theme
7
+ * @position Icon configuration for the neutral theme; consumed by index.ts
8
+ *
9
+ * Maps semantic icon names to Lucide icon components.
10
+ * These icons are bundled with the theme, not with @astryxdesign/core.
11
+ */
12
+
13
+ import React from 'react';
14
+ import type {IconRegistry} from '@astryxdesign/core/Icon';
15
+
16
+ import {
17
+ X,
18
+ ChevronDown,
19
+ ChevronLeft,
20
+ ChevronRight,
21
+ Check,
22
+ CheckCircle,
23
+ XCircle,
24
+ AlertTriangle,
25
+ Info,
26
+ Calendar,
27
+ Clock,
28
+ ExternalLink,
29
+ Menu,
30
+ MoreHorizontal,
31
+ Search,
32
+ ArrowUp,
33
+ ArrowDown,
34
+ ArrowUpDown,
35
+ Filter,
36
+ EyeOff,
37
+ Columns,
38
+ Copy,
39
+ CheckCheck,
40
+ Wrench,
41
+ Square,
42
+ Mic,
43
+ } from 'lucide-react';
44
+
45
+ const iconProps = {
46
+ size: '1em',
47
+ 'aria-hidden': true as const,
48
+ };
49
+
50
+ export const stoneIconRegistry: IconRegistry = {
51
+ close: <X {...iconProps} />,
52
+ chevronDown: <ChevronDown {...iconProps} />,
53
+ chevronLeft: <ChevronLeft {...iconProps} />,
54
+ chevronRight: <ChevronRight {...iconProps} />,
55
+ check: <Check {...iconProps} />,
56
+ success: <CheckCircle {...iconProps} />,
57
+ error: <XCircle {...iconProps} />,
58
+ warning: <AlertTriangle {...iconProps} />,
59
+ info: <Info {...iconProps} />,
60
+ calendar: <Calendar {...iconProps} />,
61
+ clock: <Clock {...iconProps} />,
62
+ externalLink: <ExternalLink {...iconProps} />,
63
+ menu: <Menu {...iconProps} />,
64
+ moreHorizontal: <MoreHorizontal {...iconProps} />,
65
+ search: <Search {...iconProps} />,
66
+ arrowUp: <ArrowUp {...iconProps} />,
67
+ arrowDown: <ArrowDown {...iconProps} />,
68
+ arrowsUpDown: <ArrowUpDown {...iconProps} />,
69
+ funnel: <Filter {...iconProps} />,
70
+ eyeSlash: <EyeOff {...iconProps} />,
71
+ viewColumns: <Columns {...iconProps} />,
72
+ copy: <Copy {...iconProps} />,
73
+ checkDouble: <CheckCheck {...iconProps} />,
74
+ wrench: <Wrench {...iconProps} />,
75
+ stop: <Square {...iconProps} />,
76
+ microphone: <Mic {...iconProps} />,
77
+ };
package/src/source.ts ADDED
@@ -0,0 +1,4 @@
1
+ // Copyright (c) Meta Platforms, Inc. and affiliates.
2
+
3
+ export {stoneTheme, stonePalettes} from './stoneTheme';
4
+ export {stoneIconRegistry} from './icons';