revotech-ui-kit 0.0.0
Sign up to get free protection for your applications and to get access to all the features.
- package/.editorconfig +29 -0
- package/.eslintrc +10 -0
- package/.storybook/main.ts +17 -0
- package/.storybook/preview-head.html +1 -0
- package/.storybook/preview.ts +17 -0
- package/LICENSE +21 -0
- package/README.md +30 -0
- package/assets/fonts/Geist/Geist-Black.otf +0 -0
- package/assets/fonts/Geist/Geist-Black.woff2 +0 -0
- package/assets/fonts/Geist/Geist-Bold.otf +0 -0
- package/assets/fonts/Geist/Geist-Bold.woff2 +0 -0
- package/assets/fonts/Geist/Geist-Light.otf +0 -0
- package/assets/fonts/Geist/Geist-Light.woff2 +0 -0
- package/assets/fonts/Geist/Geist-Medium.otf +0 -0
- package/assets/fonts/Geist/Geist-Medium.woff2 +0 -0
- package/assets/fonts/Geist/Geist-Regular.otf +0 -0
- package/assets/fonts/Geist/Geist-Regular.woff2 +0 -0
- package/assets/fonts/Geist/Geist-SemiBold.otf +0 -0
- package/assets/fonts/Geist/Geist-SemiBold.woff2 +0 -0
- package/assets/fonts/Geist/Geist-Thin.otf +0 -0
- package/assets/fonts/Geist/Geist-Thin.woff2 +0 -0
- package/assets/fonts/Geist/Geist-UltraBlack.otf +0 -0
- package/assets/fonts/Geist/Geist-UltraBlack.woff2 +0 -0
- package/assets/fonts/Geist/Geist-UltraLight.otf +0 -0
- package/assets/fonts/Geist/Geist-UltraLight.woff2 +0 -0
- package/assets/fonts/Geist/GeistVariableVF.ttf +0 -0
- package/assets/fonts/Geist/GeistVariableVF.woff2 +0 -0
- package/assets/fonts/Geist/LICENSE.TXT +92 -0
- package/assets/open-wc-logo.svg +29 -0
- package/index.html +362 -0
- package/package.json +117 -0
- package/rollup.config.js +71 -0
- package/src/components/atoms/button/button.atom.ts +39 -0
- package/src/components/atoms/button/button.stories.ts +186 -0
- package/src/components/atoms/button/button.style.ts +31 -0
- package/src/components/atoms/button/button.type.ts +10 -0
- package/src/components/atoms/checkbox/checkbox.atom.ts +62 -0
- package/src/components/atoms/checkbox/checkbox.stories.ts +42 -0
- package/src/components/atoms/command-empty/command-empty.atom.ts +44 -0
- package/src/components/atoms/command-group/command-group.atom.ts +60 -0
- package/src/components/atoms/command-item/command-item.atom.ts +74 -0
- package/src/components/atoms/command-list/command-list.atom.ts +37 -0
- package/src/components/atoms/command-separator/command-separator.atom.ts +42 -0
- package/src/components/atoms/dialog/dialog.atom.ts +301 -0
- package/src/components/atoms/dialog/dialog.stories.ts +86 -0
- package/src/components/atoms/index.ts +10 -0
- package/src/components/atoms/input/input.atom.ts +34 -0
- package/src/components/atoms/input/input.stories.ts +89 -0
- package/src/components/atoms/input/input.type.ts +24 -0
- package/src/components/atoms/label/label.atom.ts +40 -0
- package/src/components/atoms/label/label.stories.ts +18 -0
- package/src/components/atoms/label/label.style.ts +5 -0
- package/src/components/command/command.stories.ts +154 -0
- package/src/components/command/command.ts +391 -0
- package/src/components/index.ts +2 -0
- package/src/components/molecules/command/command.molecules.ts +31 -0
- package/src/components/molecules/command-input/command-input.atom.ts +130 -0
- package/src/components/molecules/index.ts +1 -0
- package/src/components/popover.ts +247 -0
- package/src/globals.css +1806 -0
- package/src/helpers/index.ts +2 -0
- package/src/helpers/mouse-conroller.helper.ts +42 -0
- package/src/helpers/style.helpers.ts +6 -0
- package/src/interfaces/actionable.interface.ts +6 -0
- package/src/interfaces/atomic.interface.ts +6 -0
- package/src/interfaces/changeable.interface.ts +14 -0
- package/src/interfaces/child-support-atomic.interface.ts +5 -0
- package/src/interfaces/index.ts +6 -0
- package/src/interfaces/intractable.interface.ts +6 -0
- package/src/interfaces/variant.interface.ts +3 -0
- package/src/lib/index.ts +0 -0
- package/src/lib/next/next.lib.ts +0 -0
- package/src/lib/react/react.lib.ts +0 -0
- package/src/styles/index.ts +1 -0
- package/src/styles/tw.styles.ts +1867 -0
- package/src/tailwind-lib.css +95 -0
- package/src/wc-ui-app.ts +81 -0
- package/tailwind.config.js +81 -0
- package/test/wc-ui-app.test.ts +22 -0
- package/tsconfig.json +25 -0
- package/web-dev-server.config.mjs +26 -0
- package/web-test-runner.config.mjs +41 -0
package/.editorconfig
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
# EditorConfig helps developers define and maintain consistent
|
2
|
+
# coding styles between different editors and IDEs
|
3
|
+
# editorconfig.org
|
4
|
+
|
5
|
+
root = true
|
6
|
+
|
7
|
+
|
8
|
+
[*]
|
9
|
+
|
10
|
+
# Change these settings to your own preference
|
11
|
+
indent_style = space
|
12
|
+
indent_size = 2
|
13
|
+
|
14
|
+
# We recommend you to keep these unchanged
|
15
|
+
end_of_line = lf
|
16
|
+
charset = utf-8
|
17
|
+
trim_trailing_whitespace = true
|
18
|
+
insert_final_newline = true
|
19
|
+
|
20
|
+
[*.md]
|
21
|
+
trim_trailing_whitespace = false
|
22
|
+
|
23
|
+
[*.json]
|
24
|
+
indent_size = 2
|
25
|
+
|
26
|
+
[*.{html,js,md}]
|
27
|
+
block_comment_start = /**
|
28
|
+
block_comment = *
|
29
|
+
block_comment_end = */
|
package/.eslintrc
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { StorybookConfig } from '@storybook/web-components-vite';
|
2
|
+
const config: StorybookConfig = {
|
3
|
+
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
|
4
|
+
addons: [
|
5
|
+
'@storybook/addon-links',
|
6
|
+
'@storybook/addon-essentials',
|
7
|
+
'@storybook/addon-actions',
|
8
|
+
],
|
9
|
+
framework: {
|
10
|
+
name: '@storybook/web-components-vite',
|
11
|
+
options: {},
|
12
|
+
},
|
13
|
+
docs: {
|
14
|
+
autodocs: 'tag',
|
15
|
+
},
|
16
|
+
};
|
17
|
+
export default config;
|
@@ -0,0 +1 @@
|
|
1
|
+
<script src="https://code.iconify.design/iconify-icon/2.0.0/iconify-icon.min.js"></script>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import type { Preview } from '@storybook/web-components';
|
2
|
+
import '../src/tailwind-lib.css';
|
3
|
+
import '../src/globals.css';
|
4
|
+
|
5
|
+
const preview: Preview = {
|
6
|
+
parameters: {
|
7
|
+
actions: { argTypesRegex: '^on[A-Z].*' },
|
8
|
+
controls: {
|
9
|
+
matchers: {
|
10
|
+
color: /(background|color)$/i,
|
11
|
+
date: /Date$/i,
|
12
|
+
},
|
13
|
+
},
|
14
|
+
},
|
15
|
+
};
|
16
|
+
|
17
|
+
export default preview;
|
package/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2024 wc-ui-app
|
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,30 @@
|
|
1
|
+
<p align="center">
|
2
|
+
<img width="200" src="https://open-wc.org/hero.png"></img>
|
3
|
+
</p>
|
4
|
+
|
5
|
+
## Open-wc Starter App
|
6
|
+
|
7
|
+
[![Built with open-wc recommendations](https://img.shields.io/badge/built%20with-open--wc-blue.svg)](https://github.com/open-wc)
|
8
|
+
|
9
|
+
## Quickstart
|
10
|
+
|
11
|
+
To get started:
|
12
|
+
|
13
|
+
```sh
|
14
|
+
npm init @open-wc
|
15
|
+
# requires node 10 & npm 6 or higher
|
16
|
+
```
|
17
|
+
|
18
|
+
## Scripts
|
19
|
+
|
20
|
+
- `start` runs your app for development, reloading on file changes
|
21
|
+
- `start:build` runs your app after it has been built using the build command
|
22
|
+
- `build` builds your app and outputs it in your `dist` directory
|
23
|
+
- `test` runs your test suite with Web Test Runner
|
24
|
+
- `lint` runs the linter for your project
|
25
|
+
|
26
|
+
## Tooling configs
|
27
|
+
|
28
|
+
For most of the tools, the configuration is in the `package.json` to reduce the amount of files in your project.
|
29
|
+
|
30
|
+
If you customize the configuration a lot, you can consider moving them to individual files.
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1,92 @@
|
|
1
|
+
Geist Sans and Geist Mono Font
|
2
|
+
(C) 2023 Vercel, made in collaboration with basement.studio
|
3
|
+
|
4
|
+
This Font Software is licensed under the SIL Open Font License, Version 1.1.
|
5
|
+
This license is available with a FAQ at: http://scripts.sil.org/OFL and copied below
|
6
|
+
|
7
|
+
-----------------------------------------------------------
|
8
|
+
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
|
9
|
+
-----------------------------------------------------------
|
10
|
+
|
11
|
+
PREAMBLE
|
12
|
+
The goals of the Open Font License (OFL) are to stimulate worldwide
|
13
|
+
development of collaborative font projects, to support the font creation
|
14
|
+
efforts of academic and linguistic communities, and to provide a free and
|
15
|
+
open framework in which fonts may be shared and improved in partnership
|
16
|
+
with others.
|
17
|
+
|
18
|
+
The OFL allows the licensed fonts to be used, studied, modified and
|
19
|
+
redistributed freely as long as they are not sold by themselves. The
|
20
|
+
fonts, including any derivative works, can be bundled, embedded,
|
21
|
+
redistributed and/or sold with any software provided that any reserved
|
22
|
+
names are not used by derivative works. The fonts and derivatives,
|
23
|
+
however, cannot be released under any other type of license. The
|
24
|
+
requirement for fonts to remain under this license does not apply
|
25
|
+
to any document created using the fonts or their derivatives.
|
26
|
+
|
27
|
+
DEFINITIONS
|
28
|
+
"Font Software" refers to the set of files released by the Copyright
|
29
|
+
Holder(s) under this license and clearly marked as such. This may
|
30
|
+
include source files, build scripts and documentation.
|
31
|
+
|
32
|
+
"Reserved Font Name" refers to any names specified as such after the
|
33
|
+
copyright statement(s).
|
34
|
+
|
35
|
+
"Original Version" refers to the collection of Font Software components as
|
36
|
+
distributed by the Copyright Holder(s).
|
37
|
+
|
38
|
+
"Modified Version" refers to any derivative made by adding to, deleting,
|
39
|
+
or substituting -- in part or in whole -- any of the components of the
|
40
|
+
Original Version, by changing formats or by porting the Font Software to a
|
41
|
+
new environment.
|
42
|
+
|
43
|
+
"Author" refers to any designer, engineer, programmer, technical
|
44
|
+
writer or other person who contributed to the Font Software.
|
45
|
+
|
46
|
+
PERMISSION AND CONDITIONS
|
47
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
48
|
+
a copy of the Font Software, to use, study, copy, merge, embed, modify,
|
49
|
+
redistribute, and sell modified and unmodified copies of the Font
|
50
|
+
Software, subject to the following conditions:
|
51
|
+
|
52
|
+
1) Neither the Font Software nor any of its individual components,
|
53
|
+
in Original or Modified Versions, may be sold by itself.
|
54
|
+
|
55
|
+
2) Original or Modified Versions of the Font Software may be bundled,
|
56
|
+
redistributed and/or sold with any software, provided that each copy
|
57
|
+
contains the above copyright notice and this license. These can be
|
58
|
+
included either as stand-alone text files, human-readable headers or
|
59
|
+
in the appropriate machine-readable metadata fields within text or
|
60
|
+
binary files as long as those fields can be easily viewed by the user.
|
61
|
+
|
62
|
+
3) No Modified Version of the Font Software may use the Reserved Font
|
63
|
+
Name(s) unless explicit written permission is granted by the corresponding
|
64
|
+
Copyright Holder. This restriction only applies to the primary font name as
|
65
|
+
presented to the users.
|
66
|
+
|
67
|
+
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
|
68
|
+
Software shall not be used to promote, endorse or advertise any
|
69
|
+
Modified Version, except to acknowledge the contribution(s) of the
|
70
|
+
Copyright Holder(s) and the Author(s) or with their explicit written
|
71
|
+
permission.
|
72
|
+
|
73
|
+
5) The Font Software, modified or unmodified, in part or in whole,
|
74
|
+
must be distributed entirely under this license, and must not be
|
75
|
+
distributed under any other license. The requirement for fonts to
|
76
|
+
remain under this license does not apply to any document created
|
77
|
+
using the Font Software.
|
78
|
+
|
79
|
+
TERMINATION
|
80
|
+
This license becomes null and void if any of the above conditions are
|
81
|
+
not met.
|
82
|
+
|
83
|
+
DISCLAIMER
|
84
|
+
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
85
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
|
86
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
87
|
+
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
|
88
|
+
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
89
|
+
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
|
90
|
+
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
91
|
+
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
|
92
|
+
OTHER DEALINGS IN THE FONT SOFTWARE.
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<svg
|
2
|
+
width="244px"
|
3
|
+
height="244px"
|
4
|
+
viewBox="0 0 244 244"
|
5
|
+
version="1.1"
|
6
|
+
xmlns="http://www.w3.org/2000/svg"
|
7
|
+
xmlns:xlink="http://www.w3.org/1999/xlink"
|
8
|
+
>
|
9
|
+
<defs>
|
10
|
+
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-1">
|
11
|
+
<stop stop-color="#9B00FF" offset="0%"></stop>
|
12
|
+
<stop stop-color="#0077FF" offset="100%"></stop>
|
13
|
+
</linearGradient>
|
14
|
+
</defs>
|
15
|
+
<g
|
16
|
+
id="Page-1"
|
17
|
+
stroke="none"
|
18
|
+
stroke-width="1"
|
19
|
+
fill="none"
|
20
|
+
fill-rule="evenodd"
|
21
|
+
>
|
22
|
+
<path
|
23
|
+
d="M205.639259,176.936244 C207.430887,174.217233 209.093339,171.405629 210.617884,168.510161 M215.112174,158.724316 C216.385153,155.50304 217.495621,152.199852 218.433474,148.824851 M220.655293,138.874185 C221.231935,135.482212 221.637704,132.03207 221.863435,128.532919 M222,118.131039 C221.860539,114.466419 221.523806,110.85231 221.000113,107.299021 M218.885321,96.8583653 C218.001583,93.4468963 216.942225,90.1061026 215.717466,86.8461994 M211.549484,77.3039459 C209.957339,74.1238901 208.200597,71.0404957 206.290425,68.0649233 M200.180513,59.5598295 C181.848457,36.6639805 153.655709,22 122.036748,22 C66.7879774,22 22,66.771525 22,122 C22,177.228475 66.7879774,222 122.036748,222 C152.914668,222 180.52509,208.015313 198.875424,186.036326"
|
24
|
+
id="Shape"
|
25
|
+
stroke="url(#linearGradient-1)"
|
26
|
+
stroke-width="42.0804674"
|
27
|
+
></path>
|
28
|
+
</g>
|
29
|
+
</svg>
|