@alacris/ui 0.1.0 → 0.2.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.
package/README.md
CHANGED
|
@@ -123,10 +123,10 @@ Component modules have side effects (they call `define()`). Theme, motion and to
|
|
|
123
123
|
|
|
124
124
|
## In this repository
|
|
125
125
|
|
|
126
|
-
This package lives in `
|
|
126
|
+
This package lives in `ui/` of the [Alacris repo](https://github.com/bmartel/alacris) so the library and the design system can be developed together. They **publish separately**: `@alacris/ui` has its own version, changelog, and npm release. A commit that only changes this folder does not cut an Alacris library release. `starter/` in the same repo is a usage example and install guide, not this package.
|
|
127
127
|
|
|
128
128
|
```
|
|
129
|
-
|
|
129
|
+
ui/
|
|
130
130
|
src/ the published modules
|
|
131
131
|
types/ hand-written .d.ts
|
|
132
132
|
demo/ kitchen-sink app (not published)
|
|
@@ -139,8 +139,9 @@ From a clone of the repo:
|
|
|
139
139
|
|
|
140
140
|
```bash
|
|
141
141
|
npm install
|
|
142
|
-
npm run demo # http://localhost:5173/
|
|
143
|
-
|
|
142
|
+
npm run demo # kitchen sink: http://localhost:5173/ui/
|
|
143
|
+
# starter app: http://localhost:5173/starter/
|
|
144
|
+
cd ui && npm test
|
|
144
145
|
```
|
|
145
146
|
|
|
146
147
|
## License
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alacris/ui",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Themeable design system for Alacris — Material defaults, sixty-eight custom elements, ESM-only, no build step.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"repository": {
|
|
65
65
|
"type": "git",
|
|
66
66
|
"url": "git+https://github.com/bmartel/alacris.git",
|
|
67
|
-
"directory": "
|
|
67
|
+
"directory": "ui"
|
|
68
68
|
},
|
|
69
69
|
"homepage": "https://bmartel.github.io/alacris/ui/getting-started/",
|
|
70
70
|
"bugs": {
|
|
@@ -115,8 +115,10 @@ const styles = css`
|
|
|
115
115
|
position: relative;
|
|
116
116
|
display: grid;
|
|
117
117
|
place-items: center;
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
/* Cap at 48px for the 56px bar; shrink with --ui-search-height so a
|
|
119
|
+
compact field in an app bar can match the 40px icon buttons. */
|
|
120
|
+
inline-size: min(48px, ${t.height});
|
|
121
|
+
block-size: min(48px, ${t.height});
|
|
120
122
|
}
|
|
121
123
|
.leads > * { grid-area: 1 / 1; }
|
|
122
124
|
.lead-slot {
|