@coolms/ui-react 0.1.0-alpha.34 → 0.1.0-alpha.35
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/CHANGELOG.md +10 -0
- package/dist/components/Column.d.ts +21 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +391 -384
- package/package.json +3 -2
- package/src/kit.css +12 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coolms/ui-react",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.35",
|
|
4
4
|
"description": "The CoolMS UI kit for React: the components of the CoolMS UI contract, styled by the CoolMS design tokens",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -42,7 +42,8 @@
|
|
|
42
42
|
"demo": "vite --config demo/vite.config.ts",
|
|
43
43
|
"demo:build": "vite build --config demo/vite.config.ts",
|
|
44
44
|
"check:layout": "node tools/check-layout.mjs",
|
|
45
|
-
"
|
|
45
|
+
"check:ui-text": "node tools/check-ui-text.mjs",
|
|
46
|
+
"verify": "npm run tokens:check && npm run check && npm run check:ui-text && npm run typecheck && npm test && npm run build && npm run check:built && npm run check:types-resolution && npm run check:package && npm run demo:build && npm run check:layout",
|
|
46
47
|
"build": "vite build --config vite.lib.config.ts && tsc -p tsconfig.build.json",
|
|
47
48
|
"check:built": "node tools/check-built.mjs",
|
|
48
49
|
"check:types-resolution": "node tools/check-types-resolution.mjs",
|
package/src/kit.css
CHANGED
|
@@ -486,7 +486,16 @@
|
|
|
486
486
|
.cms-panes { display: grid; height: 100%; min-height: 0; }
|
|
487
487
|
.cms-panes--two { grid-template-columns: 340px 1fr; }
|
|
488
488
|
.cms-panes--three { grid-template-columns: 240px 380px 1fr; }
|
|
489
|
-
.cms-panes__pane { min-width: 0; min-height: 0; overflow: auto; border-right: 1px solid var(--cms-border); background: var(--cms-surface); }
|
|
489
|
+
.cms-panes__pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; overflow: auto; border-right: 1px solid var(--cms-border); background: var(--cms-surface); }
|
|
490
|
+
/* A column (contract split-panes, grid: each pane has exactly one scroll region): its head stays at the top and its body
|
|
491
|
+
scrolls on its own, filling the rest of the pane, the screen shell or any box of a definite height. */
|
|
492
|
+
.cms-column { display: flex; flex-direction: column; flex: 1 1 auto; height: 100%; min-width: 0; min-height: 0; }
|
|
493
|
+
.cms-column__head { flex: none; }
|
|
494
|
+
.cms-column__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
|
|
495
|
+
/* In a screen shell (a phone) the shell's bar is the head that stays and its content the one scroll region, which pull
|
|
496
|
+
to refresh reads: a column there grows with its list and does not scroll on its own. */
|
|
497
|
+
.cms-screen__content .cms-column { flex: none; height: auto; }
|
|
498
|
+
.cms-screen__content .cms-column__body { overflow-y: visible; }
|
|
490
499
|
.cms-panes--sized { position: relative; }
|
|
491
500
|
.cms-panes--sized.cms-panes--two { grid-template-columns: var(--split-pane-0) minmax(0, 1fr); }
|
|
492
501
|
.cms-panes--sized.cms-panes--three { grid-template-columns: var(--split-pane-0) var(--split-pane-1) minmax(0, 1fr); }
|
|
@@ -501,7 +510,7 @@
|
|
|
501
510
|
.cms-panes.is-resizing { cursor: col-resize; user-select: none; }
|
|
502
511
|
.cms-panes__pane:first-child { background: var(--cms-bg); }
|
|
503
512
|
.cms-panes__pane:last-child { border-right: 0; }
|
|
504
|
-
.cms-panes__back { display: none; align-items: center; gap: var(--cms-space-1); padding: var(--cms-space-3) var(--cms-space-4); border-bottom: 1px solid var(--cms-border); color: var(--cms-text); font-weight: var(--cms-font-weight-semibold); text-decoration: none; }
|
|
513
|
+
.cms-panes__back { display: none; flex: none; align-items: center; gap: var(--cms-space-1); padding: var(--cms-space-3) var(--cms-space-4); border-bottom: 1px solid var(--cms-border); color: var(--cms-text); font-weight: var(--cms-font-weight-semibold); text-decoration: none; }
|
|
505
514
|
|
|
506
515
|
/* Mail row */
|
|
507
516
|
.cms-mail-row {
|
|
@@ -729,7 +738,7 @@
|
|
|
729
738
|
.cms-panes__pane { display: none; }
|
|
730
739
|
.cms-panes__pane[data-offset='0'],
|
|
731
740
|
.cms-panes__pane[data-offset='1'],
|
|
732
|
-
.cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display:
|
|
741
|
+
.cms-panes[data-active='0'] .cms-panes__pane[data-offset='-1'] { display: flex; }
|
|
733
742
|
.cms-panes--three[data-active='2'] .cms-panes__back { display: flex; }
|
|
734
743
|
.cms-signin__brand { padding: var(--cms-space-8); }
|
|
735
744
|
.cms-signin__features { grid-template-columns: minmax(0, 1fr); }
|