@rolemodel/optics 2.4.0 → 2.5.1
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/.agents/skills/github-release/SKILL.md +143 -0
- package/.github/workflows/deploy-to-npm.yml +7 -3
- package/.github/workflows/linting.yml +3 -1
- package/.github/workflows/publish-storybook.yml +2 -2
- package/.prettierignore +3 -0
- package/.yarn/install-state.gz +0 -0
- package/CHANGELOG.md +1763 -0
- package/README.md +16 -0
- package/context7.json +4 -0
- package/dist/README.md +16 -0
- package/dist/css/components/icon.css +30 -0
- package/dist/css/components/table.css +10 -0
- package/dist/css/optics+feather_icons.css +449 -0
- package/dist/css/optics+feather_icons.min.css +1 -1
- package/dist/css/optics+lucide_icons.css +2207 -0
- package/dist/css/optics+lucide_icons.min.css +1 -1
- package/dist/css/optics+material_outlined_variable.css +219 -0
- package/dist/css/optics+material_outlined_variable.min.css +1 -1
- package/dist/css/optics+no_icons.css +219 -0
- package/dist/css/optics+no_icons.min.css +1 -1
- package/dist/css/optics+phosphor_icons.css +222 -0
- package/dist/css/optics+phosphor_icons.min.css +1 -1
- package/dist/css/optics+tabler_icons.css +220 -0
- package/dist/css/optics+tabler_icons.min.css +1 -1
- package/dist/css/optics.css +220 -0
- package/dist/css/optics.min.css +1 -1
- package/dist/package.json +12 -9
- package/package.json +12 -9
package/README.md
CHANGED
|
@@ -91,6 +91,22 @@ npm run generate
|
|
|
91
91
|
|
|
92
92
|
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.
|
|
93
93
|
|
|
94
|
+
### AI-Friendly Documentation (llms.txt)
|
|
95
|
+
|
|
96
|
+
[llms txt](https://llmstxt.org/)
|
|
97
|
+
|
|
98
|
+
The docs site also serves the full documentation as plain markdown for AI tools:
|
|
99
|
+
|
|
100
|
+
- [llms.txt](https://docs.optics.rolemodel.design/llms.txt) — index of every docs page
|
|
101
|
+
- [llms-full.txt](https://docs.optics.rolemodel.design/llms-full.txt) — the entire documentation in one file
|
|
102
|
+
- `https://docs.optics.rolemodel.design/llms/<page-slug>.md` — one markdown file per page
|
|
103
|
+
|
|
104
|
+
These are generated from the Storybook MDX docs by `yarn build-docs:llms`. Each `<Canvas>` embed is replaced with the story's actual rendered HTML, and each token doc block with a table parsed from the token CSS.
|
|
105
|
+
|
|
106
|
+
## Changelog
|
|
107
|
+
|
|
108
|
+
See [CHANGELOG.md](CHANGELOG.md) for release notes.
|
|
109
|
+
|
|
94
110
|
## License
|
|
95
111
|
|
|
96
112
|
[MIT](LICENSE)
|
package/context7.json
ADDED
package/dist/README.md
CHANGED
|
@@ -91,6 +91,22 @@ npm run generate
|
|
|
91
91
|
|
|
92
92
|
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.
|
|
93
93
|
|
|
94
|
+
### AI-Friendly Documentation (llms.txt)
|
|
95
|
+
|
|
96
|
+
[llms txt](https://llmstxt.org/)
|
|
97
|
+
|
|
98
|
+
The docs site also serves the full documentation as plain markdown for AI tools:
|
|
99
|
+
|
|
100
|
+
- [llms.txt](https://docs.optics.rolemodel.design/llms.txt) — index of every docs page
|
|
101
|
+
- [llms-full.txt](https://docs.optics.rolemodel.design/llms-full.txt) — the entire documentation in one file
|
|
102
|
+
- `https://docs.optics.rolemodel.design/llms/<page-slug>.md` — one markdown file per page
|
|
103
|
+
|
|
104
|
+
These are generated from the Storybook MDX docs by `yarn build-docs:llms`. Each `<Canvas>` embed is replaced with the story's actual rendered HTML, and each token doc block with a table parsed from the token CSS.
|
|
105
|
+
|
|
106
|
+
## Changelog
|
|
107
|
+
|
|
108
|
+
See [CHANGELOG.md](CHANGELOG.md) for release notes.
|
|
109
|
+
|
|
94
110
|
## License
|
|
95
111
|
|
|
96
112
|
[MIT](LICENSE)
|
|
@@ -26,6 +26,13 @@
|
|
|
26
26
|
--_op-icon-optical-size-large: 40;
|
|
27
27
|
--_op-icon-optical-size-x-large: 48;
|
|
28
28
|
|
|
29
|
+
/* SVG (.icon--svg) */
|
|
30
|
+
--_op-icon-stroke-width-light: 1;
|
|
31
|
+
--_op-icon-stroke-width-normal: 1.5;
|
|
32
|
+
--_op-icon-stroke-width-semi-bold: 2;
|
|
33
|
+
--_op-icon-stroke-width-bold: 2.5;
|
|
34
|
+
--_op-icon-svg-opacity-low-emphasis: 0.6;
|
|
35
|
+
|
|
29
36
|
/* Private API (component option defaults) */
|
|
30
37
|
--__op-icon-weight: var(--_op-icon-weight-normal);
|
|
31
38
|
--__op-icon-fill: var(--_op-icon-fill-outlined);
|
|
@@ -53,18 +60,22 @@
|
|
|
53
60
|
/* Weight Modifiers */
|
|
54
61
|
&.icon--weight-light {
|
|
55
62
|
--__op-icon-weight: var(--_op-icon-weight-light);
|
|
63
|
+
--__op-icon-stroke-width: var(--_op-icon-stroke-width-light);
|
|
56
64
|
}
|
|
57
65
|
|
|
58
66
|
&.icon--weight-normal {
|
|
59
67
|
--__op-icon-weight: var(--_op-icon-weight-normal);
|
|
68
|
+
--__op-icon-stroke-width: var(--_op-icon-stroke-width-normal);
|
|
60
69
|
}
|
|
61
70
|
|
|
62
71
|
&.icon--weight-semi-bold {
|
|
63
72
|
--__op-icon-weight: var(--_op-icon-weight-semi-bold);
|
|
73
|
+
--__op-icon-stroke-width: var(--_op-icon-stroke-width-semi-bold);
|
|
64
74
|
}
|
|
65
75
|
|
|
66
76
|
&.icon--weight-bold {
|
|
67
77
|
--__op-icon-weight: var(--_op-icon-weight-bold);
|
|
78
|
+
--__op-icon-stroke-width: var(--_op-icon-stroke-width-bold);
|
|
68
79
|
}
|
|
69
80
|
|
|
70
81
|
/* Emphasis */
|
|
@@ -100,6 +111,25 @@
|
|
|
100
111
|
--__op-icon-font-size: var(--_op-icon-font-size-x-large);
|
|
101
112
|
--__op-icon-optical-size: var(--_op-icon-optical-size-x-large);
|
|
102
113
|
}
|
|
114
|
+
|
|
115
|
+
/* SVG Modifier: an inline SVG instead of a font glyph, e.g. `icon icon--svg icon--large` */
|
|
116
|
+
&.icon--svg {
|
|
117
|
+
svg {
|
|
118
|
+
display: block;
|
|
119
|
+
block-size: 100%;
|
|
120
|
+
inline-size: 100%;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/* A rule on the <svg> root cannot beat a stroke-width attribute on a child, so target the attribute.
|
|
124
|
+
With no weight modifier the set keeps the widths it was drawn with. */
|
|
125
|
+
&:is(.icon--weight-light, .icon--weight-normal, .icon--weight-semi-bold, .icon--weight-bold) svg [stroke-width] {
|
|
126
|
+
stroke-width: var(--__op-icon-stroke-width);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
&.icon--low-emphasis {
|
|
130
|
+
opacity: var(--_op-icon-svg-opacity-low-emphasis);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
103
133
|
}
|
|
104
134
|
|
|
105
135
|
/* Material Icons class provided by the Google Fonts CDN */
|
|
@@ -81,28 +81,37 @@
|
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
/* Layout Modifiers */
|
|
84
|
+
/* The *-layout names are kept for backwards compatibility */
|
|
85
|
+
&.table--layout-auto,
|
|
84
86
|
&.table--auto-layout {
|
|
85
87
|
table-layout: auto;
|
|
86
88
|
}
|
|
87
89
|
|
|
90
|
+
&.table--layout-fixed,
|
|
88
91
|
&.table--fixed-layout {
|
|
89
92
|
table-layout: fixed;
|
|
90
93
|
}
|
|
91
94
|
|
|
92
95
|
/* Table Density Modifiers */
|
|
96
|
+
/* The *-density names are kept for backwards compatibility */
|
|
97
|
+
&.table--density-default,
|
|
93
98
|
&.table--default-density {
|
|
94
99
|
--__op-table-cell-height: var(--_op-table-cell-height-default);
|
|
95
100
|
}
|
|
96
101
|
|
|
102
|
+
&.table--density-comfortable,
|
|
97
103
|
&.table--comfortable-density {
|
|
98
104
|
--__op-table-cell-height: var(--_op-table-cell-height-comfortable);
|
|
99
105
|
}
|
|
100
106
|
|
|
107
|
+
&.table--density-compact,
|
|
101
108
|
&.table--compact-density {
|
|
102
109
|
--__op-table-cell-height: var(--_op-table-cell-height-compact);
|
|
103
110
|
}
|
|
104
111
|
|
|
105
112
|
/* Striped Modifiers */
|
|
113
|
+
/* The *-striped names are kept for backwards compatibility */
|
|
114
|
+
&.table--striped-even,
|
|
106
115
|
&.table--even-striped {
|
|
107
116
|
tbody tr:nth-child(even) {
|
|
108
117
|
background-color: var(--op-color-neutral-plus-seven);
|
|
@@ -110,6 +119,7 @@
|
|
|
110
119
|
}
|
|
111
120
|
}
|
|
112
121
|
|
|
122
|
+
&.table--striped-odd,
|
|
113
123
|
&.table--odd-striped {
|
|
114
124
|
tbody tr:nth-child(odd) {
|
|
115
125
|
background-color: var(--op-color-neutral-plus-seven);
|