@rolemodel/optics 2.0.1 → 2.1.2
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/.yarn/install-state.gz +0 -0
- package/dist/LICENSE +21 -0
- package/dist/README.md +78 -0
- package/dist/css/addons/fonts/feather_icons.css +939 -0
- package/dist/css/addons/fonts/lucide_icons.css +4672 -0
- package/dist/css/addons/fonts/material_symbols_outlined_variable.css +10 -0
- package/dist/css/addons/fonts/phosphor_icons.css +44 -0
- package/dist/css/addons/fonts/tabler_icons.css +11 -0
- package/dist/css/optics.css +4964 -7
- package/dist/css/optics.min.css +1 -4934
- package/dist/package.json +87 -0
- package/package.json +6 -4
- package/postcss.config.js +6 -3
- package/dist/css/components/accordion.css +0 -66
- package/dist/css/components/alert.css +0 -171
- package/dist/css/components/avatar.css +0 -95
- package/dist/css/components/badge.css +0 -73
- package/dist/css/components/breadcrumbs.css +0 -37
- package/dist/css/components/button.css +0 -273
- package/dist/css/components/button_group.css +0 -47
- package/dist/css/components/card.css +0 -62
- package/dist/css/components/confirm-dialog.css +0 -80
- package/dist/css/components/divider.css +0 -55
- package/dist/css/components/form.css +0 -360
- package/dist/css/components/icon.css +0 -114
- package/dist/css/components/index.css +0 -24
- package/dist/css/components/modal.css +0 -149
- package/dist/css/components/navbar.css +0 -60
- package/dist/css/components/pagination.css +0 -24
- package/dist/css/components/side_panel.css +0 -90
- package/dist/css/components/sidebar.css +0 -139
- package/dist/css/components/spinner.css +0 -52
- package/dist/css/components/switch.css +0 -107
- package/dist/css/components/tab.css +0 -76
- package/dist/css/components/table.css +0 -133
- package/dist/css/components/tag.css +0 -168
- package/dist/css/components/text_pair.css +0 -55
- package/dist/css/components/tooltip.css +0 -134
- package/dist/css/core/base.css +0 -95
- package/dist/css/core/layout.css +0 -43
- package/dist/css/core/tokens/base_tokens.css +0 -354
- package/dist/css/core/tokens/index.css +0 -2
- package/dist/css/core/tokens/scale_color_tokens.css +0 -1498
- package/dist/css/core/utilities.css +0 -429
- package/dist/css/recipes/16six-sidebar.css +0 -63
- package/dist/css/recipes/aligned-header.css +0 -16
- package/dist/css/recipes/domains-sidebar.css +0 -40
package/.yarn/install-state.gz
CHANGED
|
Binary file
|
package/dist/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 RoleModel Software
|
|
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/dist/README.md
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Optics, a RoleModel Design System
|
|
2
|
+
|
|
3
|
+
<div style='display: flex; gap: 10px;'>
|
|
4
|
+
|
|
5
|
+
[](https://github.com/RoleModel/optics)
|
|
6
|
+
|
|
7
|
+
[](https://github.com/RoleModel/optics/blob/main/LICENSE)
|
|
8
|
+
|
|
9
|
+
[](https://www.npmjs.com/package/@rolemodel/optics)
|
|
10
|
+
|
|
11
|
+
[](https://github.com/RoleModel/optics/actions/workflows/linting.yml)
|
|
12
|
+
|
|
13
|
+
</div>
|
|
14
|
+
|
|
15
|
+
Optics is an css package that provides base styles and components that can be integrated and customized in a variety of projects.
|
|
16
|
+
|
|
17
|
+
## Installation
|
|
18
|
+
|
|
19
|
+
### NPM
|
|
20
|
+
|
|
21
|
+
```sh
|
|
22
|
+
npm install @rolemodel/optics
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### Yarn
|
|
26
|
+
|
|
27
|
+
```sh
|
|
28
|
+
yarn add @rolemodel/optics
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
### Import
|
|
32
|
+
|
|
33
|
+
You can add this import to the top of your root level `css` file.
|
|
34
|
+
|
|
35
|
+
```css
|
|
36
|
+
@import '@rolemodel/optics'; /* Using webpack to compile */
|
|
37
|
+
/* Or */
|
|
38
|
+
@import '@rolemodel/optics/dist/css/optics'; /* Using a different compiler or no compiler */
|
|
39
|
+
/* Or */
|
|
40
|
+
@import '@rolemodel/optics/dist/css/optics.min.css'; /* If you want a single file with all the styles in it. */
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
## Documentation
|
|
44
|
+
|
|
45
|
+
We use [Storybook](https://storybook.js.org/docs/html/get-started/introduction) as a way to provide informative and interactive documentation.
|
|
46
|
+
|
|
47
|
+
It can be found here [Optics Documentation](https://docs.optics.rolemodel.design/)
|
|
48
|
+
|
|
49
|
+
### Token Documentation
|
|
50
|
+
|
|
51
|
+
We use the Storybook Design Token for showing design tokens in the documentation. This allows us to tag groups of tokens with a category and a presenter.
|
|
52
|
+
|
|
53
|
+
[Available Presenters](https://github.com/UX-and-I/storybook-design-token#available-presenters)
|
|
54
|
+
|
|
55
|
+
Add the following above a group to categorize the tokens.
|
|
56
|
+
|
|
57
|
+
```css
|
|
58
|
+
/**
|
|
59
|
+
* @tokens Basic Colors
|
|
60
|
+
* @presenter Color
|
|
61
|
+
*/
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Component Documentation
|
|
65
|
+
|
|
66
|
+
For instructions on how to create a new component, see [Process for Creating New Components](./NEW_COMPONENT.md)
|
|
67
|
+
|
|
68
|
+
Additional stories can be added using the following command, or copying an existing story.
|
|
69
|
+
|
|
70
|
+
```sh
|
|
71
|
+
npm run generate
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
The visual graphic found on the Selective Imports page in the documentation is generated from the `tools/generate-graph.dot` file. You can preview and export a newer svg version of the graphic by using the `tintinweb.graphviz-interactive-preview` VSCode extension.
|
|
75
|
+
|
|
76
|
+
## License
|
|
77
|
+
|
|
78
|
+
[MIT](LICENSE)
|