@coolms/ui-react 0.1.0-alpha.28 → 0.1.0-alpha.29

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/kit.contract.json CHANGED
@@ -16,6 +16,7 @@
16
16
  "tab-strip": { "implementedBy": "TabStrip", "states": ["default", "active", "with-count"] },
17
17
  "list": { "implementedBy": "List", "states": ["loading", "empty", "populated", "selected", "error", "pulled"] },
18
18
  "avatar": { "implementedBy": "Avatar", "states": ["picture", "initials", "presence", "connection", "deleted"] },
19
+ "filter-chips": { "implementedBy": "FilterChips", "states": ["default", "chosen", "focused", "overflowing"] },
19
20
  "screen-shell": { "implementedBy": "ScreenShell", "states": ["root", "nested", "with-filters", "with-primary-action", "with-primary-menu", "pulling", "refreshing", "searching", "bar-hidden"] },
20
21
  "context-menu": { "implementedBy": "ContextMenu", "states": ["open", "item-danger", "item-locked", "item-refused", "item-disabled"] },
21
22
  "file-viewer": { "implementedBy": "FileViewer", "states": ["loading", "error", "no-preview", "editing", "editing-closing", "editing-conflict", "with-edit", "with-siblings", "with-thumbnails", "with-attachment-strip", "phone"] },
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@coolms/ui-react",
3
- "version": "0.1.0-alpha.28",
3
+ "version": "0.1.0-alpha.29",
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",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/coolms/ui-react.git"
9
+ "url": "git+https://github.com/coolms/ui-react.git"
10
10
  },
11
11
  "engines": {
12
12
  "node": "^22.0.0 || ^24.0.0 || ^26.0.0"
@@ -42,10 +42,11 @@
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
- "verify": "npm run tokens:check && npm run check && npm run typecheck && npm test && npm run build && npm run check:built && npm run check:types-resolution && npm run demo:build && npm run check:layout",
45
+ "verify": "npm run tokens:check && npm run check && 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
46
  "build": "vite build --config vite.lib.config.ts && tsc -p tsconfig.build.json",
47
47
  "check:built": "node tools/check-built.mjs",
48
48
  "check:types-resolution": "node tools/check-types-resolution.mjs",
49
+ "check:package": "node tools/check-package.mjs",
49
50
  "prepack": "npm run build"
50
51
  },
51
52
  "peerDependencies": {
@@ -53,6 +54,7 @@
53
54
  "react-dom": "^19.2.3"
54
55
  },
55
56
  "devDependencies": {
57
+ "@arethetypeswrong/cli": "0.18.5",
56
58
  "@testing-library/jest-dom": "6.9.1",
57
59
  "@testing-library/react": "16.3.3",
58
60
  "@testing-library/user-event": "14.6.7",
@@ -60,6 +62,7 @@
60
62
  "@types/react-dom": "19.2.7",
61
63
  "@vitejs/plugin-react": "4.7.0",
62
64
  "jsdom": "26.1.0",
65
+ "publint": "0.3.25",
63
66
  "react": "19.2.3",
64
67
  "react-dom": "19.2.3",
65
68
  "typescript": "6.0.3",
package/src/kit.css CHANGED
@@ -436,7 +436,22 @@
436
436
  .cms-search__input::placeholder { color: var(--cms-text-muted); }
437
437
 
438
438
  /* Filter chips */
439
- .cms-chips { display: flex; flex-wrap: wrap; gap: var(--cms-space-2); }
439
+ /* One line: chips that do not fit scroll sideways, the scrollbar hidden; the clipped edge fades while there is more past
440
+ it (is-past-start, is-past-end, measured from the scroll). The block padding keeps a chip's focus ring inside the
441
+ scroll box, and the margin gives the row its height back. */
442
+ .cms-chips {
443
+ display: flex; flex-wrap: nowrap; gap: var(--cms-space-2); min-width: 0; overflow-x: auto; scrollbar-width: none;
444
+ padding-block: 3px; margin-block: -3px; padding-inline: 3px; margin-inline: -3px;
445
+ }
446
+ .cms-chips::-webkit-scrollbar { display: none; }
447
+ .cms-chips > .cms-chip { flex: none; }
448
+ .cms-chips.is-past-end { mask-image: linear-gradient(to right, #000 calc(100% - var(--cms-space-6)), transparent); }
449
+ .cms-chips.is-past-start { mask-image: linear-gradient(to right, transparent, #000 var(--cms-space-6)); }
450
+ .cms-chips.is-past-start.is-past-end { mask-image: linear-gradient(to right, transparent, #000 var(--cms-space-6), #000 calc(100% - var(--cms-space-6)), transparent); }
451
+ /* Right to left, the start is the right edge. */
452
+ .cms-chips.is-past-end:dir(rtl) { mask-image: linear-gradient(to left, #000 calc(100% - var(--cms-space-6)), transparent); }
453
+ .cms-chips.is-past-start:dir(rtl) { mask-image: linear-gradient(to left, transparent, #000 var(--cms-space-6)); }
454
+ .cms-chips.is-past-start.is-past-end:dir(rtl) { mask-image: linear-gradient(to left, transparent, #000 var(--cms-space-6), #000 calc(100% - var(--cms-space-6)), transparent); }
440
455
  .cms-chip { display: inline-flex; align-items: center; gap: var(--cms-space-1); height: 32px; padding: 0 var(--cms-space-4); border: 1px solid var(--cms-border); border-radius: var(--cms-radius-pill); background: var(--cms-surface); color: var(--cms-text-body); font: inherit; font-size: var(--cms-font-size-meta); cursor: pointer; }
441
456
  .cms-chip:hover { background: var(--cms-surface-muted); }
442
457
  .cms-chip.is-on { border-color: var(--cms-button-chrome-bg); background: var(--cms-button-chrome-bg); color: var(--cms-on-chrome); font-weight: var(--cms-font-weight-semibold); }