@ketvietlab/design-system 0.1.20 → 0.1.22

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.
@@ -1 +1 @@
1
- {"version":3,"file":"inventory.generated.js","sourceRoot":"","sources":["../../../../../../packages/design-system/src/catalogue/inventory.generated.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAuC/D,MAAM,CAAC,MAAM,qBAAqB,GAA0B,IAAI,CAAC,KAAK,CACpE,+p5NAA+p5N,CAChq5N,CAAA"}
1
+ {"version":3,"file":"inventory.generated.js","sourceRoot":"","sources":["../../../../../../packages/design-system/src/catalogue/inventory.generated.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAuC/D,MAAM,CAAC,MAAM,qBAAqB,GAA0B,IAAI,CAAC,KAAK,CACpE,sy5NAAsy5N,CACvy5N,CAAA"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": "ketjs.design-system-inventory.v1",
3
- "version": "0.1.20",
3
+ "version": "0.1.22",
4
4
  "generatedFrom": [
5
5
  "packages/design-system/src/index.ts",
6
6
  "packages/design-system/src/catalogue/inventory-policy.json",
@@ -17,7 +17,7 @@
17
17
  "runtimeGaps": 5,
18
18
  "typeGaps": 96,
19
19
  "cssFiles": 72,
20
- "cssLines": 13686
20
+ "cssLines": 13699
21
21
  },
22
22
  "rows": [
23
23
  {
@@ -7486,6 +7486,7 @@
7486
7486
  "test/company-hierarchy-http.test.ts",
7487
7487
  "test/company-hierarchy-screen.test.tsx",
7488
7488
  "test/crm-cases-routes.test.ts",
7489
+ "test/crm-configuration-permissions.test.ts",
7489
7490
  "test/crm-e2e.test.ts",
7490
7491
  "test/crm-record-access.test.ts",
7491
7492
  "test/crm-ux.test.ts",
@@ -8658,6 +8659,7 @@
8658
8659
  "test/backend-ui.test.ts",
8659
8660
  "test/collaboration-backend-e2e.test.ts",
8660
8661
  "test/crm-cases-routes.test.ts",
8662
+ "test/crm-configuration-permissions.test.ts",
8661
8663
  "test/crm-e2e.test.ts",
8662
8664
  "test/crm-ux.test.ts",
8663
8665
  "test/design-system.test.tsx",
@@ -9376,6 +9378,7 @@
9376
9378
  "test/backend-ui.test.ts",
9377
9379
  "test/collaboration-backend-e2e.test.ts",
9378
9380
  "test/crm-case-detail-screen.test.tsx",
9381
+ "test/crm-configuration-permissions.test.ts",
9379
9382
  "test/crm-ux.test.ts",
9380
9383
  "test/design-system.test.tsx",
9381
9384
  "test/field-classification.test.ts",
@@ -9722,7 +9725,7 @@
9722
9725
  {
9723
9726
  "layer": "public",
9724
9727
  "file": "packages/design-system/src/foundations/tokens.css",
9725
- "lines": 343,
9728
+ "lines": 347,
9726
9729
  "hooks": []
9727
9730
  },
9728
9731
  {
@@ -9781,7 +9784,7 @@
9781
9784
  {
9782
9785
  "layer": "public",
9783
9786
  "file": "packages/design-system/src/layouts/app-navigation/styles.css",
9784
- "lines": 363,
9787
+ "lines": 372,
9785
9788
  "hooks": [
9786
9789
  "app-navigation",
9787
9790
  "icon",
@@ -10019,7 +10022,7 @@
10019
10022
  {
10020
10023
  "layer": "public",
10021
10024
  "file": "packages/design-system/src/patterns/data-table/styles.css",
10022
- "lines": 358,
10025
+ "lines": 359,
10023
10026
  "hooks": [
10024
10027
  "cell",
10025
10028
  "col",
@@ -10681,7 +10684,7 @@
10681
10684
  {
10682
10685
  "layer": "compatibility",
10683
10686
  "file": "packages/ketsuite/src/modules/backend/design/lists.css",
10684
- "lines": 1427,
10687
+ "lines": 1426,
10685
10688
  "hooks": [
10686
10689
  "app-main",
10687
10690
  "app-shell",
@@ -171,15 +171,17 @@
171
171
  --kv-font-sans: "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
172
172
  --kv-font-display: var(--kv-font-sans);
173
173
  --kv-font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
174
- --kv-text-2xs: 0.625rem;
175
- --kv-text-xs: 0.6875rem;
176
- --kv-text-sm: 0.75rem;
177
- --kv-text-md: 0.8125rem;
178
- --kv-text-base: 0.875rem;
179
- --kv-text-lg: 1rem;
180
- --kv-text-xl: 1.125rem;
181
- --kv-text-2xl: 1.375rem;
182
- --kv-text-3xl: 1.75rem;
174
+ /* Text scale, one pixel above the original 10/11/12/13/14/16/18/22/28 steps.
175
+ Page titles keep their own `--kv-page-title-size`. */
176
+ --kv-text-2xs: 0.6875rem;
177
+ --kv-text-xs: 0.75rem;
178
+ --kv-text-sm: 0.8125rem;
179
+ --kv-text-md: 0.875rem;
180
+ --kv-text-base: 0.9375rem;
181
+ --kv-text-lg: 1.0625rem;
182
+ --kv-text-xl: 1.1875rem;
183
+ --kv-text-2xl: 1.4375rem;
184
+ --kv-text-3xl: 1.8125rem;
183
185
  --kv-leading-tight: 1.2;
184
186
  --kv-leading-normal: 1.45;
185
187
  --kv-leading-relaxed: 1.6;
@@ -222,7 +224,9 @@
222
224
  --kv-density-control-height: var(--kv-control-height-md);
223
225
  --kv-density-row-height: 3.25rem;
224
226
  --kv-density-content-gap: var(--kv-space-4);
225
- --kv-sidebar-width: 13.5rem;
227
+ /* Wide enough for a root section label at the raised text scale
228
+ ("Chăm sóc khách hàng" at 14px medium). */
229
+ --kv-sidebar-width: 14.25rem;
226
230
  --kv-right-rail-width: 21.25rem;
227
231
  --kv-sidebar-item-height: 1.875rem;
228
232
  --kv-table-row-height: 3.25rem;
@@ -171,6 +171,15 @@
171
171
  color: var(--kv-text-main);
172
172
  }
173
173
 
174
+ /* Root sections read one weight step above their children: the section list is
175
+ the page's primary navigation, the children are its detail. */
176
+ :where([data-kv-design-system])
177
+ :is([data-ui="navigation-item"], [data-ui="navigation-branch-trigger"]):not(
178
+ [data-ui="navigation-children"] *
179
+ ) {
180
+ font-weight: var(--kv-weight-medium);
181
+ }
182
+
174
183
  :where([data-kv-design-system]) [data-ui="navigation-item"][data-active="true"] {
175
184
  border-color: var(--kv-border-default);
176
185
  background: var(--kv-accent-subtle);
@@ -77,10 +77,11 @@
77
77
  vertical-align: middle;
78
78
  }
79
79
 
80
+ /* Selection controls sit at the table's text size, not the 16px native default. */
80
81
  :where([data-kv-design-system]) [data-ui="table-scroll"][data-pattern="data-table"] [data-ui="select-all"],
81
82
  :where([data-kv-design-system]) [data-ui="table-scroll"][data-pattern="data-table"] [data-ui="row-select"] {
82
- width: 1rem;
83
- height: 1rem;
83
+ width: 0.875rem;
84
+ height: 0.875rem;
84
85
  margin: 0;
85
86
  accent-color: var(--kv-color-accent);
86
87
  }