@acronis-platform/shadcn-uikit 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 (89) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +159 -0
  3. package/dist/components/icons/alert-icons.d.ts +10 -0
  4. package/dist/components/icons/auto-generated.d.ts +5648 -0
  5. package/dist/components/icons/base-icon.d.ts +19 -0
  6. package/dist/components/icons/dynamic-icons.d.ts +29 -0
  7. package/dist/components/icons/icon-library.d.ts +16 -0
  8. package/dist/components/icons/index.d.ts +3 -0
  9. package/dist/components/mode-toggle.d.ts +1 -0
  10. package/dist/components/react/components/button/button.d.ts +11 -0
  11. package/dist/components/react/index.d.ts +3 -0
  12. package/dist/components/react/types/index.d.ts +2 -0
  13. package/dist/components/react/utils/cn.d.ts +2 -0
  14. package/dist/components/react/utils/index.d.ts +1 -0
  15. package/dist/components/theme-provider.d.ts +13 -0
  16. package/dist/components/ui/accordion.d.ts +7 -0
  17. package/dist/components/ui/alert-dialog.d.ts +20 -0
  18. package/dist/components/ui/alert.d.ts +10 -0
  19. package/dist/components/ui/avatar.d.ts +6 -0
  20. package/dist/components/ui/badge.d.ts +9 -0
  21. package/dist/components/ui/breadcrumb.d.ts +19 -0
  22. package/dist/components/ui/button-group.d.ts +11 -0
  23. package/dist/components/ui/button.d.ts +11 -0
  24. package/dist/components/ui/calendar.d.ts +8 -0
  25. package/dist/components/ui/card.d.ts +8 -0
  26. package/dist/components/ui/carousel.d.ts +18 -0
  27. package/dist/components/ui/chart.d.ts +54 -0
  28. package/dist/components/ui/checkbox.d.ts +4 -0
  29. package/dist/components/ui/chip.d.ts +7 -0
  30. package/dist/components/ui/combobox.d.ts +1 -0
  31. package/dist/components/ui/command.d.ts +80 -0
  32. package/dist/components/ui/data-table/data-table-column-header.d.ts +7 -0
  33. package/dist/components/ui/data-table/data-table-pagination.d.ts +6 -0
  34. package/dist/components/ui/data-table/data-table-toolbar.d.ts +8 -0
  35. package/dist/components/ui/data-table/data-table-view-options.d.ts +6 -0
  36. package/dist/components/ui/data-table/data-table.d.ts +7 -0
  37. package/dist/components/ui/data-table/index.d.ts +5 -0
  38. package/dist/components/ui/date-picker.d.ts +1 -0
  39. package/dist/components/ui/dialog.d.ts +24 -0
  40. package/dist/components/ui/drawer.d.ts +22 -0
  41. package/dist/components/ui/dropdown-menu.d.ts +27 -0
  42. package/dist/components/ui/empty.d.ts +8 -0
  43. package/dist/components/ui/field.d.ts +24 -0
  44. package/dist/components/ui/filter.d.ts +8 -0
  45. package/dist/components/ui/form.d.ts +23 -0
  46. package/dist/components/ui/input.d.ts +3 -0
  47. package/dist/components/ui/label.d.ts +5 -0
  48. package/dist/components/ui/navigation-menu.d.ts +12 -0
  49. package/dist/components/ui/pagination.d.ts +28 -0
  50. package/dist/components/ui/popover.d.ts +6 -0
  51. package/dist/components/ui/progress.d.ts +4 -0
  52. package/dist/components/ui/radio-group.d.ts +5 -0
  53. package/dist/components/ui/scroll-area.d.ts +5 -0
  54. package/dist/components/ui/secondary-menu.d.ts +22 -0
  55. package/dist/components/ui/select.d.ts +13 -0
  56. package/dist/components/ui/separator.d.ts +4 -0
  57. package/dist/components/ui/sheet.d.ts +25 -0
  58. package/dist/components/ui/sidebar.d.ts +65 -0
  59. package/dist/components/ui/skeleton.d.ts +2 -0
  60. package/dist/components/ui/sonner.d.ts +4 -0
  61. package/dist/components/ui/spinner.d.ts +9 -0
  62. package/dist/components/ui/switch.d.ts +4 -0
  63. package/dist/components/ui/table.d.ts +10 -0
  64. package/dist/components/ui/tabs.d.ts +7 -0
  65. package/dist/components/ui/tag.d.ts +11 -0
  66. package/dist/components/ui/textarea.d.ts +3 -0
  67. package/dist/components/ui/tooltip.d.ts +8 -0
  68. package/dist/components/ui/tree.d.ts +35 -0
  69. package/dist/hooks/use-mobile.d.ts +1 -0
  70. package/dist/index.d.ts +3 -0
  71. package/dist/index.js +1368 -0
  72. package/dist/index.js.map +1 -0
  73. package/dist/lib/chart-colors.d.ts +30 -0
  74. package/dist/lib/utils.d.ts +2 -0
  75. package/dist/mode-toggle-B9LLZmUS.js +36075 -0
  76. package/dist/mode-toggle-B9LLZmUS.js.map +1 -0
  77. package/dist/react.d.ts +50 -0
  78. package/dist/react.js +1368 -0
  79. package/dist/react.js.map +1 -0
  80. package/dist/shadcn-uikit.css +1 -0
  81. package/dist/styles.d.ts +1 -0
  82. package/dist/types/index.d.ts +2 -0
  83. package/dist/types/playground/index.d.ts +3 -0
  84. package/dist/types/playground/state.d.ts +31 -0
  85. package/dist/types/playground/theme.d.ts +14 -0
  86. package/dist/types/playground/tokens.d.ts +68 -0
  87. package/dist/utils/cn.d.ts +2 -0
  88. package/dist/utils/index.d.ts +1 -0
  89. package/package.json +138 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Acronis International GmbH
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,159 @@
1
+ # @acronis-platform/shadcn-uikit
2
+
3
+ Custom shadcn UI components library with multiple color schemes.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @acronis-platform/shadcn-uikit
9
+ # or
10
+ yarn add @acronis-platform/shadcn-uikit
11
+ # or
12
+ pnpm add @acronis-platform/shadcn-uikit
13
+ ```
14
+
15
+ ## Usage
16
+
17
+ ### React
18
+
19
+ ```tsx
20
+ import { Button, Input, Dialog } from '@acronis-platform/shadcn-uikit/react';
21
+ import '@acronis-platform/shadcn-uikit/styles';
22
+
23
+ function App() {
24
+ return (
25
+ <div>
26
+ <Button variant="primary">Click me</Button>
27
+ <Input placeholder="Enter text..." />
28
+ </div>
29
+ );
30
+ }
31
+ ```
32
+
33
+ ### Vue
34
+
35
+ ```vue
36
+ <script setup>
37
+ import { AvButton } from '@acronis-platform/shadcn-uikit/vue';
38
+ import '@acronis-platform/shadcn-uikit/styles';
39
+ </script>
40
+
41
+ <template>
42
+ <AvButton variant="primary">Click me</AvButton>
43
+ </template>
44
+ ```
45
+
46
+ ## Components
47
+
48
+ ### React Components
49
+
50
+ - **Accordion** - Collapsible content sections
51
+ - **Alert** - Display important messages
52
+ - **Badge** - Small status indicators
53
+ - **Breadcrumb** - Navigation breadcrumbs
54
+ - **Button** - Interactive buttons with variants
55
+ - **Calendar** - Date selection calendar
56
+ - **Card** - Content containers
57
+ - **Carousel** - Image/content carousel
58
+ - **Checkbox** - Checkbox input
59
+ - **Chip** - Removable tags
60
+ - **Combobox** - Searchable select
61
+ - **Command** - Command palette
62
+ - **DataTable** - Feature-rich data tables
63
+ - **DatePicker** - Date picker input
64
+ - **Dialog** - Modal dialogs
65
+ - **Drawer** - Side panel drawer
66
+ - **DropdownMenu** - Dropdown menus
67
+ - **Empty** - Empty state displays
68
+ - **Filter** - Filter controls
69
+ - **Form** - Form components
70
+ - **Input** - Text input fields
71
+ - **Label** - Form labels
72
+ - **NavigationMenu** - Navigation menus
73
+ - **Pagination** - Pagination controls
74
+ - **Popover** - Popover tooltips
75
+ - **Progress** - Progress indicators
76
+ - **RadioGroup** - Radio button groups
77
+ - **ScrollArea** - Custom scroll areas
78
+ - **SecondaryMenu** - Secondary navigation
79
+ - **Select** - Select dropdowns
80
+ - **Separator** - Visual separators
81
+ - **Sidebar** - Sidebar navigation
82
+ - **Sonner** - Toast notifications
83
+ - **Spinner** - Loading spinners
84
+ - **Switch** - Toggle switches
85
+ - **Table** - Data tables
86
+ - **Tabs** - Tabbed interfaces
87
+ - **Tag** - Content tags
88
+ - **Textarea** - Multi-line text input
89
+ - **Tooltip** - Hover tooltips
90
+ - **Tree** - Hierarchical tree views
91
+
92
+ ### Vue Components
93
+
94
+ - **AvButton** - Interactive buttons (more components coming soon)
95
+
96
+ ## Styling
97
+
98
+ The library uses CSS variables for theming. Import the global styles:
99
+
100
+ ```tsx
101
+ import '@acronis-platform/shadcn-uikit/styles';
102
+ ```
103
+
104
+ ### Customization
105
+
106
+ You can customize the theme by overriding CSS variables:
107
+
108
+ ```css
109
+ :root {
110
+ --av-primary: 213 65% 46%; /* Acronis blue */
111
+ --av-background: 0 0% 100%;
112
+ --av-foreground: 215 26% 20%;
113
+ /* ... more variables */
114
+ }
115
+ ```
116
+
117
+ ## TypeScript
118
+
119
+ The library is written in TypeScript and includes type definitions out of the box.
120
+
121
+ ```tsx
122
+ import type { ButtonProps } from '@acronis-platform/shadcn-uikit/react';
123
+
124
+ const MyButton: React.FC<ButtonProps> = (props) => {
125
+ return <Button {...props} />;
126
+ };
127
+ ```
128
+
129
+ ## Design Tokens
130
+
131
+ All components follow the Acronis Design System specifications with design tokens extracted from Figma:
132
+
133
+ - Colors
134
+ - Typography
135
+ - Spacing
136
+ - Border radius
137
+ - Shadows
138
+ - And more...
139
+
140
+ ## Browser Support
141
+
142
+ - Chrome (latest)
143
+ - Firefox (latest)
144
+ - Safari (latest)
145
+ - Edge (latest)
146
+
147
+ ## License
148
+
149
+ MIT © Acronis
150
+
151
+ ## Contributing
152
+
153
+ See [CONTRIBUTING.md](../../CONTRIBUTING.md) for details.
154
+
155
+ ## Links
156
+
157
+ - [Documentation](https://github.com/acronis/shadcn-uikit)
158
+ - [GitHub Repository](https://github.com/acronis/shadcn-uikit)
159
+ - [Issue Tracker](https://github.com/acronis/shadcn-uikit/issues)
@@ -0,0 +1,10 @@
1
+ import { default as React } from 'react';
2
+ interface IconProps extends React.SVGProps<SVGSVGElement> {
3
+ className?: string;
4
+ }
5
+ export declare function InfoIcon({ className, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function SuccessIcon({ className, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function WarningIcon({ className, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function CriticalIcon({ className, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function DangerIcon({ className, ...props }: IconProps): import("react/jsx-runtime").JSX.Element;
10
+ export {};