@rocketui/vue 0.0.47 → 0.0.49

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 (169) hide show
  1. package/dist/rocket-ui-vue.cjs.js +1 -0
  2. package/dist/rocket-ui-vue.d.ts +1812 -0
  3. package/dist/rocket-ui-vue.es.js +9270 -0
  4. package/dist/rocket-ui-vue.umd.js +1 -0
  5. package/dist/style.css +2 -0
  6. package/package.json +7 -1
  7. package/.eslintrc.cjs +0 -79
  8. package/.gitattributes +0 -2
  9. package/.github/workflows/chromatic.yml +0 -28
  10. package/.github/workflows/publish-storybook.yml +0 -41
  11. package/.husky/pre-commit +0 -4
  12. package/.prettierrc.cjs +0 -10
  13. package/.storybook/Theme.js +0 -17
  14. package/.storybook/main.ts +0 -20
  15. package/.storybook/manager-head.html +0 -3
  16. package/.storybook/manager.js +0 -8
  17. package/.storybook/preview-head.html +0 -3
  18. package/.storybook/preview.ts +0 -36
  19. package/.storybook/source-panel/manager.js +0 -28
  20. package/.storybook/withSource.js +0 -91
  21. package/.vscode/extensions.json +0 -11
  22. package/.vscode/settings.json +0 -20
  23. package/index.html +0 -13
  24. package/lib/main.ts +0 -48
  25. package/postcss.config.cjs +0 -9
  26. package/resources/rocket-ui-logo-dark.svg +0 -27
  27. package/resources/rocket-ui-logo-light.svg +0 -27
  28. package/shims-rocketui.d.ts +0 -9
  29. package/src/App.vue +0 -15
  30. package/src/assets/blank-avatar.svg +0 -3
  31. package/src/assets/icons/mdi.js +0 -7302
  32. package/src/assets/logo.svg +0 -1
  33. package/src/components/Accordion/Accordion.mdx +0 -88
  34. package/src/components/Accordion/Accordion.stories.ts +0 -257
  35. package/src/components/Accordion/RAccordion.vue +0 -73
  36. package/src/components/Accordion/accordion.css +0 -75
  37. package/src/components/Accordion/accordion.spec.ts +0 -123
  38. package/src/components/Alert/Alert.mdx +0 -120
  39. package/src/components/Alert/Alert.stories.ts +0 -118
  40. package/src/components/Alert/RAlert.vue +0 -119
  41. package/src/components/Alert/alert.css +0 -136
  42. package/src/components/Alert/alert.spec.ts +0 -32
  43. package/src/components/Avatar/Avatar.mdx +0 -96
  44. package/src/components/Avatar/Avatar.stories.ts +0 -65
  45. package/src/components/Avatar/RAvatar.vue +0 -115
  46. package/src/components/Avatar/avatar.css +0 -82
  47. package/src/components/Avatar/avatar.spec.ts +0 -38
  48. package/src/components/Badge/Badge.mdx +0 -112
  49. package/src/components/Badge/Badge.stories.ts +0 -99
  50. package/src/components/Badge/RBadge.vue +0 -89
  51. package/src/components/Badge/badge.css +0 -63
  52. package/src/components/Badge/badge.spec.ts +0 -20
  53. package/src/components/Box/Box.mdx +0 -20
  54. package/src/components/Box/Box.stories.ts +0 -56
  55. package/src/components/Box/RBox.vue +0 -97
  56. package/src/components/Breadcrumb/Breadcrumb.stories.ts +0 -115
  57. package/src/components/Breadcrumb/RBreadcrumb.vue +0 -43
  58. package/src/components/Breadcrumb/breadcrumb.css +0 -29
  59. package/src/components/Button/Button.mdx +0 -148
  60. package/src/components/Button/Button.spec.ts +0 -29
  61. package/src/components/Button/Button.stories.ts +0 -118
  62. package/src/components/Button/RButton.vue +0 -179
  63. package/src/components/Button/button.css +0 -146
  64. package/src/components/Checkbox/Checkbox.mdx +0 -100
  65. package/src/components/Checkbox/Checkbox.stories.ts +0 -67
  66. package/src/components/Checkbox/RCheckbox.vue +0 -195
  67. package/src/components/Checkbox/checkbox.css +0 -67
  68. package/src/components/Checkbox/checkbox.spec.ts +0 -60
  69. package/src/components/Chips/Chip.mdx +0 -113
  70. package/src/components/Chips/Chip.stories.ts +0 -122
  71. package/src/components/Chips/RChip.vue +0 -125
  72. package/src/components/Chips/chip.css +0 -62
  73. package/src/components/Chips/chip.spec.ts +0 -40
  74. package/src/components/Dropdown/Dropdown.mdx +0 -135
  75. package/src/components/Dropdown/Dropdown.stories.ts +0 -84
  76. package/src/components/Dropdown/RDropdown.vue +0 -392
  77. package/src/components/Dropdown/dropdown.css +0 -113
  78. package/src/components/Dropdown/dropdown.spec.ts +0 -98
  79. package/src/components/Flex/Flex.mdx +0 -20
  80. package/src/components/Flex/Flex.stories.js +0 -127
  81. package/src/components/Flex/RFlex.vue +0 -91
  82. package/src/components/Grid/Grid.mdx +0 -20
  83. package/src/components/Grid/Grid.stories.js +0 -107
  84. package/src/components/Grid/RGrid.vue +0 -138
  85. package/src/components/Icon/Icon.mdx +0 -68
  86. package/src/components/Icon/Icon.stories.ts +0 -33
  87. package/src/components/Icon/RIcon.vue +0 -56
  88. package/src/components/Icon/icon.spec.ts +0 -25
  89. package/src/components/ItemGroup/ItemGroup.stories.ts +0 -91
  90. package/src/components/ItemGroup/RItem.vue +0 -74
  91. package/src/components/ItemGroup/RItemGroup.vue +0 -122
  92. package/src/components/ItemGroup/__snapshots__/itemgroup.spec.ts.snap +0 -13
  93. package/src/components/ItemGroup/itemgroup.spec.ts +0 -67
  94. package/src/components/Label/Label.mdx +0 -50
  95. package/src/components/Label/Label.stories.ts +0 -38
  96. package/src/components/Label/RLabel.vue +0 -42
  97. package/src/components/Label/label.css +0 -0
  98. package/src/components/Modal/Modal.mdx +0 -91
  99. package/src/components/Modal/Modal.stories.ts +0 -125
  100. package/src/components/Modal/RModal.vue +0 -130
  101. package/src/components/Modal/modal.css +0 -41
  102. package/src/components/Modal/modal.spec.ts +0 -25
  103. package/src/components/Pagination/Pagination.stories.ts +0 -24
  104. package/src/components/Pagination/RPagination.vue +0 -103
  105. package/src/components/Pagination/pagination.css +0 -47
  106. package/src/components/Pagination/pagination.spec.ts +0 -17
  107. package/src/components/ProgressBar/ProgressBar.stories.ts +0 -34
  108. package/src/components/ProgressBar/RProgressBar.vue +0 -21
  109. package/src/components/ProgressBar/progressbar.css +0 -24
  110. package/src/components/ProgressBar/progressbar.spec.ts +0 -17
  111. package/src/components/Shared/Enums.ts +0 -1
  112. package/src/components/Sidebar/RSidebar.vue +0 -27
  113. package/src/components/Sidebar/Sidebar.mdx +0 -31
  114. package/src/components/Sidebar/Sidebar.stories.ts +0 -34
  115. package/src/components/Sidebar/sidebar.css +0 -18
  116. package/src/components/Sidebar/sidebar.spec.ts +0 -33
  117. package/src/components/Snackbar/RSnackbar.vue +0 -136
  118. package/src/components/Snackbar/Snackbar.mdx +0 -126
  119. package/src/components/Snackbar/Snackbar.stories.ts +0 -93
  120. package/src/components/Snackbar/snackbar.css +0 -99
  121. package/src/components/Snackbar/snackbar.spec.ts +0 -56
  122. package/src/components/Switch/RSwitch.vue +0 -147
  123. package/src/components/Switch/Switch.mdx +0 -102
  124. package/src/components/Switch/Switch.stories.ts +0 -79
  125. package/src/components/Switch/switch.css +0 -102
  126. package/src/components/Switch/switch.spec.ts +0 -31
  127. package/src/components/TabItem/RTabItem.vue +0 -175
  128. package/src/components/TabItem/TabItem.mdx +0 -95
  129. package/src/components/TabItem/TabItem.spec.ts +0 -29
  130. package/src/components/TabItem/TabItem.stories.ts +0 -97
  131. package/src/components/TabItem/common.ts +0 -6
  132. package/src/components/TabItem/tab-item.css +0 -29
  133. package/src/components/Tabs/RTabs.vue +0 -94
  134. package/src/components/Tabs/Tabs.mdx +0 -78
  135. package/src/components/Tabs/Tabs.spec.ts +0 -28
  136. package/src/components/Tabs/Tabs.stories.ts +0 -191
  137. package/src/components/Tabs/tabs.css +0 -13
  138. package/src/components/Tabs/types.ts +0 -11
  139. package/src/components/TextArea/RTextArea.vue +0 -142
  140. package/src/components/TextArea/TextArea.mdx +0 -108
  141. package/src/components/TextArea/TextArea.stories.ts +0 -55
  142. package/src/components/TextArea/textarea.css +0 -51
  143. package/src/components/TextArea/textarea.spec.ts +0 -36
  144. package/src/components/Textfield/RTextfield.vue +0 -372
  145. package/src/components/Textfield/Textfield.mdx +0 -159
  146. package/src/components/Textfield/Textfield.stories.ts +0 -121
  147. package/src/components/Textfield/textfield.css +0 -81
  148. package/src/components/Textfield/textfield.spec.ts +0 -34
  149. package/src/components/Tooltip/RTooltip.vue +0 -325
  150. package/src/components/Tooltip/Tooltip.mdx +0 -111
  151. package/src/components/Tooltip/Tooltip.stories.ts +0 -203
  152. package/src/components/Tooltip/common.ts +0 -91
  153. package/src/components/Tooltip/tooltip.css +0 -34
  154. package/src/components/Tooltip/tooltip.spec.ts +0 -81
  155. package/src/components/Typography/Typography.mdx +0 -109
  156. package/src/components/Typography/typography.css +0 -128
  157. package/src/directives/index.ts +0 -19
  158. package/src/index.css +0 -241
  159. package/src/main.ts +0 -5
  160. package/src/scripts/buildIcons.js +0 -21
  161. package/src/stories/Colors.mdx +0 -355
  162. package/src/stories/GettingStarted.mdx +0 -121
  163. package/src/stories/Layout.mdx +0 -15
  164. package/tailwind.config.cjs +0 -16
  165. package/tsconfig.json +0 -24
  166. package/vite.config.ts +0 -39
  167. package/vitest.config.ts +0 -12
  168. /package/{public → dist}/design-tokens.source.json +0 -0
  169. /package/{public → dist}/favicon.ico +0 -0
@@ -1,121 +0,0 @@
1
- import { Meta } from '@storybook/addon-docs';
2
-
3
- <Meta
4
- title="Getting Started"
5
- parameters={{
6
- viewMode: 'docs',
7
- previewTabs: {
8
- canvas: { hidden: true },
9
- },
10
- }}
11
- />
12
-
13
- # Getting Started
14
-
15
- ![Logo](./resources/rocket-ui-logo-light.svg#gh-light-mode-only)
16
-
17
- ## Installation
18
-
19
- ```sh
20
- yarn add @rocketui/vue
21
- ```
22
-
23
- ## Usage
24
-
25
- Your `main.{js,ts}` file should look like this:
26
-
27
- ```js
28
- import { createApp } from 'vue';
29
- import App from './App.vue';
30
-
31
- // Import the Styles
32
- import '@rocketui/vue/dist/style.css';
33
-
34
- createApp(App).mount('#app');
35
- ```
36
-
37
- Then you can use the components in your `App.vue` file:
38
-
39
- ```js
40
- <script setup>
41
- import { RButton } from '@rocketui/vue';
42
- </script>
43
-
44
- <template>
45
- <RButton>Rocket UI Button</RButton>
46
- </template>
47
- ```
48
-
49
- ## Development
50
-
51
- ### Recommended IDE Setup
52
-
53
- [VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin).
54
-
55
- ## Type Support for `.vue` Imports in TS
56
-
57
- TypeScript cannot handle type information for `.vue` imports by default, so we replace the `tsc` CLI with `vue-tsc` for type checking. In editors, we need [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin) to make the TypeScript language service aware of `.vue` types.
58
-
59
- If the standalone TypeScript plugin doesn't feel fast enough to you, Volar has also implemented a [Take Over Mode](https://github.com/johnsoncodehk/volar/discussions/471#discussioncomment-1361669) that is more performant. You can enable it by the following steps:
60
-
61
- 1. Disable the built-in TypeScript Extension
62
- 1. Run `Extensions: Show Built-in Extensions` from VSCode's command palette
63
- 2. Find `TypeScript and JavaScript Language Features`, right click and select `Disable (Workspace)`
64
- 2. Reload the VSCode window by running `Developer: Reload Window` from the command palette.
65
-
66
- ### Customize configuration
67
-
68
- See [Vite Configuration Reference](https://vitejs.dev/config/).
69
-
70
- ### Project Setup
71
-
72
- ```sh
73
- yarn install
74
- ```
75
-
76
- #### Compile and Hot-Reload for Development
77
-
78
- ```sh
79
- yarn dev
80
- ```
81
-
82
- #### Type-Check, Compile and Minify for Production
83
-
84
- ```sh
85
- yarn build
86
- ```
87
-
88
- #### Run Unit Tests with [Vitest](https://vitest.dev/)
89
-
90
- ```sh
91
- yarn test:unit
92
- ```
93
-
94
- #### Lint with [ESLint](https://eslint.org/)
95
-
96
- ```sh
97
- yarn lint
98
- ```
99
-
100
- ## Contribution
101
-
102
- We welcome contributions of any kind including documentation, bug reports, bug fixes, feature requests, feature implementations, and pull requests. If you're interested in contributing to this project, please follow these guidelines:
103
-
104
- - Fork this repository to your own GitHub account and then clone it to your local device.
105
- - Install the dependencies by running `yarn install`.
106
- - Run `yarn dev` to start the dev server and see your changes in real-time as you edit the source files.
107
- - Create a new branch for your changes, e.g. `git checkout -b my-feature`.
108
- - Make your changes and commit them with a descriptive message.
109
- - Push your changes to your forked repository, e.g. `git push -u origin my-feature`.
110
- - Create a pull request from your forked repository to this repository, and describe the changes you've made and why they should be merged.
111
- - Before submitting a pull request, please make sure that your changes pass the following checks:
112
-
113
- The unit tests pass by running `yarn test:unit`.
114
- The code passes the ESLint check by running `yarn lint`.
115
- The code builds without errors by running `yarn build`.
116
-
117
- We aim to respond to all pull requests and issues within 48 hours. Thank you for your interest in contributing to Rocket UI Vue!
118
-
119
- ## License
120
-
121
- MIT. See [LICENSE](https://github.com/Teknasyon/rocket-ui/blob/master/LICENSE) for more details.
@@ -1,15 +0,0 @@
1
- import { Meta } from '@storybook/addon-docs';
2
-
3
- <Meta
4
- title="Layouts"
5
- parameters={{
6
- viewMode: 'docs',
7
- previewTabs: {
8
- canvas: { hidden: true },
9
- },
10
- }}
11
- />
12
-
13
- # Setting Layout
14
-
15
- Hello world
@@ -1,16 +0,0 @@
1
- /** @type {import('tailwindcss').Config} */
2
- const defaultTheme = require('tailwindcss/defaultTheme');
3
- /* eslint-env node */
4
- module.exports = {
5
- mode: 'jit',
6
- content: ['./src/**/*.{vue,js,ts,jsx,tsx}'],
7
- theme: {
8
- extend: {
9
- fontFamily: {
10
- sans: ['Albert Sans', ...defaultTheme.fontFamily.sans],
11
- serif: ['Roboto', ...defaultTheme.fontFamily.serif],
12
- },
13
- },
14
- },
15
- plugins: [],
16
- };
package/tsconfig.json DELETED
@@ -1,24 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "module": "esnext",
5
- "moduleResolution": "node",
6
- "jsx": "preserve",
7
- "types": ["vitest/globals", "vite/client", "node", "jsdom"],
8
- "composite": true,
9
- "lib": ["esnext", "dom"],
10
- "importHelpers": true,
11
- "outDir": "dist",
12
- "strict": true,
13
- "allowJs": true,
14
- "sourceMap": true,
15
- "resolveJsonModule": true,
16
- "esModuleInterop": true,
17
- "skipLibCheck": true,
18
- "experimentalDecorators": true,
19
- "baseUrl": ".",
20
- "paths": {
21
- "@/*": ["./src"]
22
- }
23
- }
24
- }
package/vite.config.ts DELETED
@@ -1,39 +0,0 @@
1
- import { defineConfig } from 'vite';
2
- import vue from '@vitejs/plugin-vue';
3
- import { resolve } from 'path';
4
- import dts from 'vite-plugin-dts';
5
-
6
- // https://vitejs.dev/config/
7
- export default defineConfig({
8
- plugins: [
9
- vue(),
10
- dts({
11
- copyDtsFiles: true,
12
- outDir: ['dist', 'types'],
13
- // include: ['src/index.ts'],
14
- exclude: ['src/**/*.stories.ts', 'src/**/*.spec.ts'],
15
- staticImport: true,
16
- rollupTypes: true,
17
- // insertTypesEntry: true,
18
- compilerOptions: {
19
- declarationMap: true,
20
- },
21
- }),
22
- ],
23
- resolve: {
24
- alias: {
25
- '@': resolve(__dirname, 'src/'),
26
- },
27
- },
28
- build: {
29
- lib: {
30
- entry: resolve(__dirname, 'lib/main.ts'),
31
- name: 'rocket-ui-vue',
32
- fileName: 'rocket-ui-vue',
33
- formats: ['es'],
34
- },
35
- rollupOptions: {
36
- external: ['vue'],
37
- },
38
- },
39
- });
package/vitest.config.ts DELETED
@@ -1,12 +0,0 @@
1
- /// <reference types="vitest" />
2
-
3
- import { defineConfig } from 'vite';
4
- import Vue from '@vitejs/plugin-vue';
5
-
6
- export default defineConfig({
7
- plugins: [Vue()],
8
- test: {
9
- globals: true,
10
- environment: 'jsdom',
11
- },
12
- });
File without changes
File without changes