@ketvietlab/design-system 0.1.17 → 0.1.19

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,s6pNAAs6pN,CACv6pN,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,8n5NAA8n5N,CAC/n5N,CAAA"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "schemaVersion": "ketjs.design-system-inventory.v1",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "generatedFrom": [
5
5
  "packages/design-system/src/index.ts",
6
6
  "packages/design-system/src/catalogue/inventory-policy.json",
@@ -10,14 +10,14 @@
10
10
  "publicExports": 214,
11
11
  "runtimeExports": 117,
12
12
  "registeredComponents": 112,
13
- "compatibilityExports": 223,
14
- "compatibilityModules": 38,
13
+ "compatibilityExports": 245,
14
+ "compatibilityModules": 40,
15
15
  "plannedComponents": 0,
16
16
  "publicGaps": 101,
17
17
  "runtimeGaps": 5,
18
18
  "typeGaps": 96,
19
19
  "cssFiles": 72,
20
- "cssLines": 13663
20
+ "cssLines": 13722
21
21
  },
22
22
  "rows": [
23
23
  {
@@ -2408,7 +2408,7 @@
2408
2408
  "packages/design-system/src/catalogue/specimens.tsx"
2409
2409
  ],
2410
2410
  "tests": "present",
2411
- "testFiles": ["test/design-system.test.tsx"],
2411
+ "testFiles": ["test/design-system.test.tsx", "test/ui-record-modal.test.tsx"],
2412
2412
  "gapTask": "DS-015"
2413
2413
  },
2414
2414
  {
@@ -5538,7 +5538,7 @@
5538
5538
  "specimen": "not-applicable",
5539
5539
  "specimenFiles": [],
5540
5540
  "tests": "present",
5541
- "testFiles": ["test/design-system.test.tsx"],
5541
+ "testFiles": ["test/design-system.test.tsx", "test/ui-record-modal.test.tsx"],
5542
5542
  "gapTask": "DS-015"
5543
5543
  },
5544
5544
  {
@@ -5883,6 +5883,78 @@
5883
5883
  "testFiles": ["test/design-system.test.tsx", "test/flow-issue-detail-screen.test.tsx"],
5884
5884
  "gapTask": "DS-029"
5885
5885
  },
5886
+ {
5887
+ "scope": "compatibility",
5888
+ "name": "RECORD_COMMAND_FIELD",
5889
+ "imported": "RECORD_COMMAND_FIELD",
5890
+ "kind": "runtime",
5891
+ "source": "./client/record-modal.tsx",
5892
+ "owner": "Overlays",
5893
+ "maturity": "compatibility",
5894
+ "decision": "promote",
5895
+ "target": "Public core",
5896
+ "wave": 2,
5897
+ "consumers": 0,
5898
+ "specimen": "not-applicable",
5899
+ "specimenFiles": [],
5900
+ "tests": "gap",
5901
+ "testFiles": [],
5902
+ "gapTask": "DS-015"
5903
+ },
5904
+ {
5905
+ "scope": "compatibility",
5906
+ "name": "RECORD_DIALOG_ATTRIBUTE",
5907
+ "imported": "RECORD_DIALOG_ATTRIBUTE",
5908
+ "kind": "runtime",
5909
+ "source": "./client/record-modal.tsx",
5910
+ "owner": "Overlays",
5911
+ "maturity": "compatibility",
5912
+ "decision": "promote",
5913
+ "target": "Public core",
5914
+ "wave": 2,
5915
+ "consumers": 0,
5916
+ "specimen": "not-applicable",
5917
+ "specimenFiles": [],
5918
+ "tests": "gap",
5919
+ "testFiles": [],
5920
+ "gapTask": "DS-015"
5921
+ },
5922
+ {
5923
+ "scope": "compatibility",
5924
+ "name": "RECORD_PARAM",
5925
+ "imported": "RECORD_PARAM",
5926
+ "kind": "runtime",
5927
+ "source": "./record-modal.tsx",
5928
+ "owner": "Overlays",
5929
+ "maturity": "compatibility",
5930
+ "decision": "promote",
5931
+ "target": "Public core",
5932
+ "wave": 2,
5933
+ "consumers": 0,
5934
+ "specimen": "not-applicable",
5935
+ "specimenFiles": [],
5936
+ "tests": "present",
5937
+ "testFiles": ["test/ui-record-modal.test.tsx"],
5938
+ "gapTask": "DS-015"
5939
+ },
5940
+ {
5941
+ "scope": "compatibility",
5942
+ "name": "RECORD_TAB_PARAM",
5943
+ "imported": "RECORD_TAB_PARAM",
5944
+ "kind": "runtime",
5945
+ "source": "./record-modal.tsx",
5946
+ "owner": "Overlays",
5947
+ "maturity": "compatibility",
5948
+ "decision": "promote",
5949
+ "target": "Public core",
5950
+ "wave": 2,
5951
+ "consumers": 0,
5952
+ "specimen": "not-applicable",
5953
+ "specimenFiles": [],
5954
+ "tests": "gap",
5955
+ "testFiles": [],
5956
+ "gapTask": "DS-015"
5957
+ },
5886
5958
  {
5887
5959
  "scope": "compatibility",
5888
5960
  "name": "ReadonlyField",
@@ -5955,6 +6027,42 @@
5955
6027
  "testFiles": [],
5956
6028
  "gapTask": "DS-036"
5957
6029
  },
6030
+ {
6031
+ "scope": "compatibility",
6032
+ "name": "RecordCallResult",
6033
+ "imported": "RecordCallResult",
6034
+ "kind": "type",
6035
+ "source": "./client/record-modal.tsx",
6036
+ "owner": "Overlays",
6037
+ "maturity": "compatibility",
6038
+ "decision": "promote",
6039
+ "target": "Public core",
6040
+ "wave": 2,
6041
+ "consumers": 0,
6042
+ "specimen": "not-applicable",
6043
+ "specimenFiles": [],
6044
+ "tests": "gap",
6045
+ "testFiles": [],
6046
+ "gapTask": "DS-015"
6047
+ },
6048
+ {
6049
+ "scope": "compatibility",
6050
+ "name": "RecordContextEnvelope",
6051
+ "imported": "RecordContextEnvelope",
6052
+ "kind": "type",
6053
+ "source": "./client/record-modal.tsx",
6054
+ "owner": "Overlays",
6055
+ "maturity": "compatibility",
6056
+ "decision": "promote",
6057
+ "target": "Public core",
6058
+ "wave": 2,
6059
+ "consumers": 0,
6060
+ "specimen": "not-applicable",
6061
+ "specimenFiles": [],
6062
+ "tests": "gap",
6063
+ "testFiles": [],
6064
+ "gapTask": "DS-015"
6065
+ },
5958
6066
  {
5959
6067
  "scope": "compatibility",
5960
6068
  "name": "RecordFieldGrid",
@@ -6027,6 +6135,24 @@
6027
6135
  "testFiles": [],
6028
6136
  "gapTask": "DS-036"
6029
6137
  },
6138
+ {
6139
+ "scope": "compatibility",
6140
+ "name": "RecordIssue",
6141
+ "imported": "RecordIssue",
6142
+ "kind": "type",
6143
+ "source": "./client/record-modal.tsx",
6144
+ "owner": "Overlays",
6145
+ "maturity": "compatibility",
6146
+ "decision": "promote",
6147
+ "target": "Public core",
6148
+ "wave": 2,
6149
+ "consumers": 0,
6150
+ "specimen": "not-applicable",
6151
+ "specimenFiles": [],
6152
+ "tests": "gap",
6153
+ "testFiles": [],
6154
+ "gapTask": "DS-015"
6155
+ },
6030
6156
  {
6031
6157
  "scope": "compatibility",
6032
6158
  "name": "RecordList",
@@ -6045,6 +6171,114 @@
6045
6171
  "testFiles": [],
6046
6172
  "gapTask": "DS-029"
6047
6173
  },
6174
+ {
6175
+ "scope": "compatibility",
6176
+ "name": "RecordModalCommand",
6177
+ "imported": "RecordModalCommand",
6178
+ "kind": "type",
6179
+ "source": "./client/record-modal.tsx",
6180
+ "owner": "Overlays",
6181
+ "maturity": "compatibility",
6182
+ "decision": "promote",
6183
+ "target": "Public core",
6184
+ "wave": 2,
6185
+ "consumers": 0,
6186
+ "specimen": "not-applicable",
6187
+ "specimenFiles": [],
6188
+ "tests": "gap",
6189
+ "testFiles": [],
6190
+ "gapTask": "DS-015"
6191
+ },
6192
+ {
6193
+ "scope": "compatibility",
6194
+ "name": "RecordModalContext",
6195
+ "imported": "RecordModalContext",
6196
+ "kind": "type",
6197
+ "source": "./client/record-modal.tsx",
6198
+ "owner": "Overlays",
6199
+ "maturity": "compatibility",
6200
+ "decision": "promote",
6201
+ "target": "Public core",
6202
+ "wave": 2,
6203
+ "consumers": 0,
6204
+ "specimen": "not-applicable",
6205
+ "specimenFiles": [],
6206
+ "tests": "gap",
6207
+ "testFiles": [],
6208
+ "gapTask": "DS-015"
6209
+ },
6210
+ {
6211
+ "scope": "compatibility",
6212
+ "name": "RecordModalDefinition",
6213
+ "imported": "RecordModalDefinition",
6214
+ "kind": "type",
6215
+ "source": "./client/record-modal.tsx",
6216
+ "owner": "Overlays",
6217
+ "maturity": "compatibility",
6218
+ "decision": "promote",
6219
+ "target": "Public core",
6220
+ "wave": 2,
6221
+ "consumers": 0,
6222
+ "specimen": "not-applicable",
6223
+ "specimenFiles": [],
6224
+ "tests": "gap",
6225
+ "testFiles": [],
6226
+ "gapTask": "DS-015"
6227
+ },
6228
+ {
6229
+ "scope": "compatibility",
6230
+ "name": "RecordModalDialog",
6231
+ "imported": "RecordModalDialog",
6232
+ "kind": "type",
6233
+ "source": "./client/record-modal.tsx",
6234
+ "owner": "Overlays",
6235
+ "maturity": "compatibility",
6236
+ "decision": "promote",
6237
+ "target": "Public core",
6238
+ "wave": 2,
6239
+ "consumers": 0,
6240
+ "specimen": "not-applicable",
6241
+ "specimenFiles": [],
6242
+ "tests": "gap",
6243
+ "testFiles": [],
6244
+ "gapTask": "DS-015"
6245
+ },
6246
+ {
6247
+ "scope": "compatibility",
6248
+ "name": "RecordModalTab",
6249
+ "imported": "RecordModalTab",
6250
+ "kind": "type",
6251
+ "source": "./client/record-modal.tsx",
6252
+ "owner": "Overlays",
6253
+ "maturity": "compatibility",
6254
+ "decision": "promote",
6255
+ "target": "Public core",
6256
+ "wave": 2,
6257
+ "consumers": 0,
6258
+ "specimen": "not-applicable",
6259
+ "specimenFiles": [],
6260
+ "tests": "gap",
6261
+ "testFiles": [],
6262
+ "gapTask": "DS-015"
6263
+ },
6264
+ {
6265
+ "scope": "compatibility",
6266
+ "name": "RecordModalTarget",
6267
+ "imported": "RecordModalTarget",
6268
+ "kind": "type",
6269
+ "source": "./record-modal.tsx",
6270
+ "owner": "Overlays",
6271
+ "maturity": "compatibility",
6272
+ "decision": "promote",
6273
+ "target": "Public core",
6274
+ "wave": 2,
6275
+ "consumers": 0,
6276
+ "specimen": "not-applicable",
6277
+ "specimenFiles": [],
6278
+ "tests": "gap",
6279
+ "testFiles": [],
6280
+ "gapTask": "DS-015"
6281
+ },
6048
6282
  {
6049
6283
  "scope": "compatibility",
6050
6284
  "name": "RecordMore",
@@ -7086,6 +7320,7 @@
7086
7320
  "test/product-stock.test.ts",
7087
7321
  "test/ssr.test.ts",
7088
7322
  "test/table.test.ts",
7323
+ "test/ui-record-modal.test.tsx",
7089
7324
  "test/website-form-lifecycle.test.ts",
7090
7325
  "test/website-form-retention-sweep.test.ts",
7091
7326
  "test/website-menu-reorder.test.tsx",
@@ -7111,6 +7346,24 @@
7111
7346
  "testFiles": ["test/backend-ui.test.ts"],
7112
7347
  "gapTask": "DS-043"
7113
7348
  },
7349
+ {
7350
+ "scope": "compatibility",
7351
+ "name": "callRecordFunction",
7352
+ "imported": "callRecordFunction",
7353
+ "kind": "runtime",
7354
+ "source": "./client/record-modal.tsx",
7355
+ "owner": "Overlays",
7356
+ "maturity": "compatibility",
7357
+ "decision": "promote",
7358
+ "target": "Public core",
7359
+ "wave": 2,
7360
+ "consumers": 0,
7361
+ "specimen": "not-applicable",
7362
+ "specimenFiles": [],
7363
+ "tests": "gap",
7364
+ "testFiles": [],
7365
+ "gapTask": "DS-015"
7366
+ },
7114
7367
  {
7115
7368
  "scope": "compatibility",
7116
7369
  "name": "cardGrid",
@@ -7511,6 +7764,24 @@
7511
7764
  "testFiles": ["test/backend-ui.test.ts"],
7512
7765
  "gapTask": "DS-010"
7513
7766
  },
7767
+ {
7768
+ "scope": "compatibility",
7769
+ "name": "createRecordModal",
7770
+ "imported": "createRecordModal",
7771
+ "kind": "runtime",
7772
+ "source": "./client/record-modal.tsx",
7773
+ "owner": "Overlays",
7774
+ "maturity": "compatibility",
7775
+ "decision": "promote",
7776
+ "target": "Public core",
7777
+ "wave": 2,
7778
+ "consumers": 0,
7779
+ "specimen": "not-applicable",
7780
+ "specimenFiles": [],
7781
+ "tests": "gap",
7782
+ "testFiles": [],
7783
+ "gapTask": "DS-015"
7784
+ },
7514
7785
  {
7515
7786
  "scope": "compatibility",
7516
7787
  "name": "dataTable",
@@ -7574,6 +7845,24 @@
7574
7845
  ],
7575
7846
  "gapTask": "DS-010"
7576
7847
  },
7848
+ {
7849
+ "scope": "compatibility",
7850
+ "name": "defineRecordModalIsland",
7851
+ "imported": "defineRecordModalIsland",
7852
+ "kind": "runtime",
7853
+ "source": "./record-modal.tsx",
7854
+ "owner": "Overlays",
7855
+ "maturity": "compatibility",
7856
+ "decision": "promote",
7857
+ "target": "Public core",
7858
+ "wave": 2,
7859
+ "consumers": 0,
7860
+ "specimen": "not-applicable",
7861
+ "specimenFiles": [],
7862
+ "tests": "present",
7863
+ "testFiles": ["test/ui-record-modal.test.tsx"],
7864
+ "gapTask": "DS-015"
7865
+ },
7577
7866
  {
7578
7867
  "scope": "compatibility",
7579
7868
  "name": "definitionList",
@@ -7932,6 +8221,24 @@
7932
8221
  ],
7933
8222
  "gapTask": "DS-010"
7934
8223
  },
8224
+ {
8225
+ "scope": "compatibility",
8226
+ "name": "isRecordKind",
8227
+ "imported": "isRecordKind",
8228
+ "kind": "runtime",
8229
+ "source": "./record-modal.tsx",
8230
+ "owner": "Overlays",
8231
+ "maturity": "compatibility",
8232
+ "decision": "promote",
8233
+ "target": "Public core",
8234
+ "wave": 2,
8235
+ "consumers": 0,
8236
+ "specimen": "not-applicable",
8237
+ "specimenFiles": [],
8238
+ "tests": "gap",
8239
+ "testFiles": [],
8240
+ "gapTask": "DS-015"
8241
+ },
7935
8242
  {
7936
8243
  "scope": "compatibility",
7937
8244
  "name": "kanbanCard",
@@ -8495,6 +8802,24 @@
8495
8802
  "testFiles": ["test/backend-ui.test.ts"],
8496
8803
  "gapTask": "DS-010"
8497
8804
  },
8805
+ {
8806
+ "scope": "compatibility",
8807
+ "name": "readRecordModalTarget",
8808
+ "imported": "readRecordModalTarget",
8809
+ "kind": "runtime",
8810
+ "source": "./record-modal.tsx",
8811
+ "owner": "Overlays",
8812
+ "maturity": "compatibility",
8813
+ "decision": "promote",
8814
+ "target": "Public core",
8815
+ "wave": 2,
8816
+ "consumers": 0,
8817
+ "specimen": "not-applicable",
8818
+ "specimenFiles": [],
8819
+ "tests": "present",
8820
+ "testFiles": ["test/ui-record-modal.test.tsx"],
8821
+ "gapTask": "DS-015"
8822
+ },
8498
8823
  {
8499
8824
  "scope": "compatibility",
8500
8825
  "name": "readonlyField",
@@ -8603,6 +8928,24 @@
8603
8928
  "testFiles": ["test/backend-ui.test.ts"],
8604
8929
  "gapTask": "DS-036"
8605
8930
  },
8931
+ {
8932
+ "scope": "compatibility",
8933
+ "name": "recordLayerHasDraft",
8934
+ "imported": "recordLayerHasDraft",
8935
+ "kind": "runtime",
8936
+ "source": "./client/record-modal.tsx",
8937
+ "owner": "Overlays",
8938
+ "maturity": "compatibility",
8939
+ "decision": "promote",
8940
+ "target": "Public core",
8941
+ "wave": 2,
8942
+ "consumers": 0,
8943
+ "specimen": "not-applicable",
8944
+ "specimenFiles": [],
8945
+ "tests": "gap",
8946
+ "testFiles": [],
8947
+ "gapTask": "DS-015"
8948
+ },
8606
8949
  {
8607
8950
  "scope": "compatibility",
8608
8951
  "name": "recordList",
@@ -8621,6 +8964,60 @@
8621
8964
  "testFiles": ["test/backend-ui.test.ts"],
8622
8965
  "gapTask": "DS-029"
8623
8966
  },
8967
+ {
8968
+ "scope": "compatibility",
8969
+ "name": "recordModalClosedHref",
8970
+ "imported": "recordModalClosedHref",
8971
+ "kind": "runtime",
8972
+ "source": "./record-modal.tsx",
8973
+ "owner": "Overlays",
8974
+ "maturity": "compatibility",
8975
+ "decision": "promote",
8976
+ "target": "Public core",
8977
+ "wave": 2,
8978
+ "consumers": 0,
8979
+ "specimen": "not-applicable",
8980
+ "specimenFiles": [],
8981
+ "tests": "present",
8982
+ "testFiles": ["test/ui-record-modal.test.tsx"],
8983
+ "gapTask": "DS-015"
8984
+ },
8985
+ {
8986
+ "scope": "compatibility",
8987
+ "name": "recordModalHost",
8988
+ "imported": "recordModalHost",
8989
+ "kind": "runtime",
8990
+ "source": "./record-modal.tsx",
8991
+ "owner": "Overlays",
8992
+ "maturity": "compatibility",
8993
+ "decision": "promote",
8994
+ "target": "Public core",
8995
+ "wave": 2,
8996
+ "consumers": 0,
8997
+ "specimen": "not-applicable",
8998
+ "specimenFiles": [],
8999
+ "tests": "present",
9000
+ "testFiles": ["test/backend-ui.test.ts", "test/ui-record-modal.test.tsx"],
9001
+ "gapTask": "DS-015"
9002
+ },
9003
+ {
9004
+ "scope": "compatibility",
9005
+ "name": "recordModalHref",
9006
+ "imported": "recordModalHref",
9007
+ "kind": "runtime",
9008
+ "source": "./record-modal.tsx",
9009
+ "owner": "Overlays",
9010
+ "maturity": "compatibility",
9011
+ "decision": "promote",
9012
+ "target": "Public core",
9013
+ "wave": 2,
9014
+ "consumers": 0,
9015
+ "specimen": "not-applicable",
9016
+ "specimenFiles": [],
9017
+ "tests": "present",
9018
+ "testFiles": ["test/ui-record-modal.test.tsx"],
9019
+ "gapTask": "DS-015"
9020
+ },
8624
9021
  {
8625
9022
  "scope": "compatibility",
8626
9023
  "name": "recordMore",
@@ -9622,7 +10019,7 @@
9622
10019
  {
9623
10020
  "layer": "public",
9624
10021
  "file": "packages/design-system/src/patterns/data-table/styles.css",
9625
- "lines": 350,
10022
+ "lines": 358,
9626
10023
  "hooks": [
9627
10024
  "cell",
9628
10025
  "col",
@@ -9676,7 +10073,7 @@
9676
10073
  {
9677
10074
  "layer": "public",
9678
10075
  "file": "packages/design-system/src/patterns/list-chrome/styles.css",
9679
- "lines": 327,
10076
+ "lines": 350,
9680
10077
  "hooks": [
9681
10078
  "bulk-action-list",
9682
10079
  "bulk-actions",
@@ -9870,7 +10267,7 @@
9870
10267
  {
9871
10268
  "layer": "public",
9872
10269
  "file": "packages/design-system/src/primitives/feedback/styles.css",
9873
- "lines": 119,
10270
+ "lines": 142,
9874
10271
  "hooks": [
9875
10272
  "empty",
9876
10273
  "empty-actions",
@@ -10054,7 +10451,7 @@
10054
10451
  {
10055
10452
  "layer": "compatibility",
10056
10453
  "file": "packages/ketsuite/src/modules/backend/design/content.css",
10057
- "lines": 666,
10454
+ "lines": 671,
10058
10455
  "hooks": [
10059
10456
  "action",
10060
10457
  "action-label",
@@ -10105,6 +10502,7 @@
10105
10502
  "pager-range",
10106
10503
  "record-copy",
10107
10504
  "record-list",
10505
+ "record-modal-host",
10108
10506
  "record-row",
10109
10507
  "record-summary",
10110
10508
  "record-title",
@@ -281,6 +281,14 @@
281
281
  min-width: 0;
282
282
  }
283
283
 
284
+ /* `strong` defaults to `bolder`, which pushed the semibold primary cell to 800+. */
285
+ :where([data-kv-design-system])
286
+ [data-ui="table-scroll"][data-pattern="data-table"]
287
+ [data-ui="cell"]
288
+ strong {
289
+ font-weight: var(--kv-weight-semibold);
290
+ }
291
+
284
292
  :where([data-kv-design-system]) [data-ui="table-scroll"][data-pattern="data-table"] [data-ui="cell"] small {
285
293
  color: var(--kv-text-muted);
286
294
  font-size: var(--kv-text-xs);
@@ -266,10 +266,33 @@
266
266
  flex-wrap: nowrap;
267
267
  align-items: center;
268
268
  gap: var(--kv-space-2);
269
- min-width: 0;
270
269
  white-space: nowrap;
271
270
  }
272
271
 
272
+ :where([data-kv-design-system])
273
+ [data-ui="list-chrome"][data-pattern="list-chrome"]
274
+ [data-ui="bulk-summary"] {
275
+ min-width: 0;
276
+ }
277
+
278
+ /*
279
+ * A range summary changes length with every filter ("1–50 / 10.000+" becomes
280
+ * "1–2 / 2"). Reserving the widest common figure and aligning it to the paging
281
+ * buttons keeps those buttons from jumping sideways as the count changes.
282
+ *
283
+ * This carries the list-chrome scope on purpose: the shared summary rule above
284
+ * used to set `min-width: 0` with three attribute selectors, and an unscoped
285
+ * `[data-ui="pager-summary"]` rule lost to it despite coming later.
286
+ */
287
+ :where([data-kv-design-system])
288
+ [data-ui="list-chrome"][data-pattern="list-chrome"]
289
+ [data-ui="pager-summary"] {
290
+ justify-content: flex-end;
291
+ min-width: 14ch;
292
+ font-variant-numeric: tabular-nums;
293
+ text-align: right;
294
+ }
295
+
273
296
  :where([data-kv-design-system])
274
297
  [data-ui="list-chrome"][data-pattern="list-chrome"]
275
298
  [data-ui="bulk-action-list"],
@@ -4,13 +4,20 @@ export declare const ModalSheet: (props: {
4
4
  id: string;
5
5
  title: string;
6
6
  body: JSXChild;
7
- closeHref: string;
7
+ /** Required for `overlay`: a route modal closes by navigating. Ignored in `client` mode. */
8
+ closeHref?: string;
8
9
  closeLabel: string;
9
10
  description?: string | null;
10
11
  actions?: JSXChild;
11
12
  presentation?: 'sheet' | 'dialog';
12
13
  size?: 'default' | 'large';
13
- mode?: 'overlay' | 'embedded';
14
+ /**
15
+ * `overlay` is URL-owned: its close controls are links the route runtime
16
+ * follows. `client` belongs to a modal island that opens and closes it in the
17
+ * browser: close controls are buttons, and it carries no route-modal marker, so
18
+ * no navigation layer ever treats closing it as a page change.
19
+ */
20
+ mode?: 'overlay' | 'embedded' | 'client';
14
21
  unsavedPrompt?: string | null;
15
22
  }) => TemplateResult;
16
23
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/design-system/src/patterns/modal-sheet/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAEtE,eAAO,MAAM,KAAK,YAChB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,eAAe,CACP,CAAA;AAEV,eAAO,MAAM,UAAU,UAAW;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,QAAQ,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,OAAO,CAAC,EAAE,QAAQ,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACjC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC1B,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,CAAA;IAC7B,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B,KAAG,cA6CH,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../packages/design-system/src/patterns/modal-sheet/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAEtE,eAAO,MAAM,KAAK,YAChB,aAAa,EACb,gBAAgB,EAChB,aAAa,EACb,YAAY,EACZ,eAAe,EACf,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,YAAY,EACZ,eAAe,CACP,CAAA;AAEV,eAAO,MAAM,UAAU,UAAW;IAChC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,QAAQ,CAAA;IACd,4FAA4F;IAC5F,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC3B,OAAO,CAAC,EAAE,QAAQ,CAAA;IAClB,YAAY,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAA;IACjC,IAAI,CAAC,EAAE,SAAS,GAAG,OAAO,CAAA;IAC1B;;;;;OAKG;IACH,IAAI,CAAC,EAAE,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAA;IACxC,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAC9B,KAAG,cAmEH,CAAA"}
@@ -11,5 +11,9 @@ export const HOOKS = [
11
11
  'modal-body',
12
12
  'modal-actions',
13
13
  ];
14
- export const ModalSheet = (props) => (_jsxs("div", { "data-ui": "modal-layer", "data-mode": props.mode ?? 'overlay', "data-route-modal": props.mode === 'embedded' ? null : 'true', "data-presentation": props.presentation ?? 'sheet', "data-unsaved-prompt": props.unsavedPrompt ?? null, children: [_jsx("a", { "data-ui": "modal-backdrop", href: props.closeHref, "aria-label": props.closeLabel, children: _jsx("span", { children: props.closeLabel }) }), _jsxs("section", { id: props.id, "data-ui": "modal-sheet", "data-size": props.size ?? 'default', role: "dialog", "aria-modal": props.mode === 'embedded' ? 'false' : 'true', "aria-labelledby": `${props.id}-title`, "aria-describedby": props.description ? `${props.id}-description` : null, tabindex: props.mode === 'embedded' ? null : '-1', children: [_jsxs("header", { "data-ui": "modal-head", children: [_jsxs("div", { "data-ui": "modal-heading", children: [_jsx("h2", { "data-ui": "modal-title", id: `${props.id}-title`, children: props.title }), !!props.description && (_jsx("p", { "data-ui": "modal-description", id: `${props.id}-description`, children: props.description }))] }), _jsx("a", { "data-ui": "modal-close", href: props.closeHref, "aria-label": props.closeLabel, title: props.closeLabel, children: "\u00D7" })] }), _jsx("div", { "data-ui": "modal-body", children: props.body }), props.actions !== undefined && _jsx("footer", { "data-ui": "modal-actions", children: props.actions })] })] }));
14
+ export const ModalSheet = (props) => {
15
+ const client = props.mode === 'client';
16
+ const embedded = props.mode === 'embedded';
17
+ return (_jsxs("div", { "data-ui": "modal-layer", "data-mode": props.mode ?? 'overlay', "data-route-modal": embedded || client ? null : 'true', "data-client-modal": client ? 'true' : null, "data-presentation": props.presentation ?? 'sheet', "data-unsaved-prompt": props.unsavedPrompt ?? null, children: [client ? (_jsx("button", { "data-ui": "modal-backdrop", type: "button", "aria-label": props.closeLabel, tabindex: "-1", children: _jsx("span", { children: props.closeLabel }) })) : (_jsx("a", { "data-ui": "modal-backdrop", href: props.closeHref ?? '#', "aria-label": props.closeLabel, children: _jsx("span", { children: props.closeLabel }) })), _jsxs("section", { id: props.id, "data-ui": "modal-sheet", "data-size": props.size ?? 'default', role: "dialog", "aria-modal": embedded ? 'false' : 'true', "aria-labelledby": `${props.id}-title`, "aria-describedby": props.description ? `${props.id}-description` : null, tabindex: embedded ? null : '-1', children: [_jsxs("header", { "data-ui": "modal-head", children: [_jsxs("div", { "data-ui": "modal-heading", children: [_jsx("h2", { "data-ui": "modal-title", id: `${props.id}-title`, children: props.title }), !!props.description && (_jsx("p", { "data-ui": "modal-description", id: `${props.id}-description`, children: props.description }))] }), client ? (_jsx("button", { "data-ui": "modal-close", type: "button", "aria-label": props.closeLabel, title: props.closeLabel, children: "\u00D7" })) : (_jsx("a", { "data-ui": "modal-close", href: props.closeHref ?? '#', "aria-label": props.closeLabel, title: props.closeLabel, children: "\u00D7" }))] }), _jsx("div", { "data-ui": "modal-body", children: props.body }), props.actions !== undefined && _jsx("footer", { "data-ui": "modal-actions", children: props.actions })] })] }));
18
+ };
15
19
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/design-system/src/patterns/modal-sheet/index.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,YAAY;IACZ,eAAe;IACf,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,YAAY;IACZ,eAAe;CACP,CAAA;AAEV,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAY1B,EAAkB,EAAE,CAAC,CACpB,0BACU,aAAa,eACV,KAAK,CAAC,IAAI,IAAI,SAAS,sBAChB,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,uBACxC,KAAK,CAAC,YAAY,IAAI,OAAO,yBAC3B,KAAK,CAAC,aAAa,IAAI,IAAI,aAEhD,uBAAW,gBAAgB,EAAC,IAAI,EAAE,KAAK,CAAC,SAAS,gBAAc,KAAK,CAAC,UAAU,YAC7E,yBAAO,KAAK,CAAC,UAAU,GAAQ,GAC7B,EACJ,mBACE,EAAE,EAAE,KAAK,CAAC,EAAE,aACJ,aAAa,eACV,KAAK,CAAC,IAAI,IAAI,SAAS,EAClC,IAAI,EAAC,QAAQ,gBACD,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,qBACvC,GAAG,KAAK,CAAC,EAAE,QAAQ,sBAClB,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,EACtE,QAAQ,EAAE,KAAK,CAAC,IAAI,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,aAEjD,6BAAgB,YAAY,aAC1B,0BAAa,eAAe,aAC1B,wBAAY,aAAa,EAAC,EAAE,EAAE,GAAG,KAAK,CAAC,EAAE,QAAQ,YAC9C,KAAK,CAAC,KAAK,GACT,EACJ,CAAC,CAAC,KAAK,CAAC,WAAW,IAAI,CACtB,uBAAW,mBAAmB,EAAC,EAAE,EAAE,GAAG,KAAK,CAAC,EAAE,cAAc,YACzD,KAAK,CAAC,WAAW,GAChB,CACL,IACG,EACN,uBACU,aAAa,EACrB,IAAI,EAAE,KAAK,CAAC,SAAS,gBACT,KAAK,CAAC,UAAU,EAC5B,KAAK,EAAE,KAAK,CAAC,UAAU,uBAGrB,IACG,EACT,yBAAa,YAAY,YAAE,KAAK,CAAC,IAAI,GAAO,EAC3C,KAAK,CAAC,OAAO,KAAK,SAAS,IAAI,4BAAgB,eAAe,YAAE,KAAK,CAAC,OAAO,GAAU,IAChF,IACN,CACP,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/design-system/src/patterns/modal-sheet/index.tsx"],"names":[],"mappings":";AAEA,MAAM,CAAC,MAAM,KAAK,GAAG;IACnB,aAAa;IACb,gBAAgB;IAChB,aAAa;IACb,YAAY;IACZ,eAAe;IACf,aAAa;IACb,mBAAmB;IACnB,aAAa;IACb,YAAY;IACZ,eAAe;CACP,CAAA;AAEV,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,KAmB1B,EAAkB,EAAE;IACnB,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAA;IACtC,MAAM,QAAQ,GAAG,KAAK,CAAC,IAAI,KAAK,UAAU,CAAA;IAC1C,OAAO,CACL,0BACU,aAAa,eACV,KAAK,CAAC,IAAI,IAAI,SAAS,sBAChB,QAAQ,IAAI,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,uBACjC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,uBACtB,KAAK,CAAC,YAAY,IAAI,OAAO,yBAC3B,KAAK,CAAC,aAAa,IAAI,IAAI,aAE/C,MAAM,CAAC,CAAC,CAAC,CACR,4BAAgB,gBAAgB,EAAC,IAAI,EAAC,QAAQ,gBAAa,KAAK,CAAC,UAAU,EAAE,QAAQ,EAAC,IAAI,YACxF,yBAAO,KAAK,CAAC,UAAU,GAAQ,GACxB,CACV,CAAC,CAAC,CAAC,CACF,uBAAW,gBAAgB,EAAC,IAAI,EAAE,KAAK,CAAC,SAAS,IAAI,GAAG,gBAAc,KAAK,CAAC,UAAU,YACpF,yBAAO,KAAK,CAAC,UAAU,GAAQ,GAC7B,CACL,EACD,mBACE,EAAE,EAAE,KAAK,CAAC,EAAE,aACJ,aAAa,eACV,KAAK,CAAC,IAAI,IAAI,SAAS,EAClC,IAAI,EAAC,QAAQ,gBACD,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,qBACtB,GAAG,KAAK,CAAC,EAAE,QAAQ,sBAClB,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,EACtE,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,aAEhC,6BAAgB,YAAY,aAC1B,0BAAa,eAAe,aAC1B,wBAAY,aAAa,EAAC,EAAE,EAAE,GAAG,KAAK,CAAC,EAAE,QAAQ,YAC9C,KAAK,CAAC,KAAK,GACT,EACJ,CAAC,CAAC,KAAK,CAAC,WAAW,IAAI,CACtB,uBAAW,mBAAmB,EAAC,EAAE,EAAE,GAAG,KAAK,CAAC,EAAE,cAAc,YACzD,KAAK,CAAC,WAAW,GAChB,CACL,IACG,EACL,MAAM,CAAC,CAAC,CAAC,CACR,4BACU,aAAa,EACrB,IAAI,EAAC,QAAQ,gBACD,KAAK,CAAC,UAAU,EAC5B,KAAK,EAAE,KAAK,CAAC,UAAU,uBAGhB,CACV,CAAC,CAAC,CAAC,CACF,uBACU,aAAa,EACrB,IAAI,EAAE,KAAK,CAAC,SAAS,IAAI,GAAG,gBAChB,KAAK,CAAC,UAAU,EAC5B,KAAK,EAAE,KAAK,CAAC,UAAU,uBAGrB,CACL,IACM,EACT,yBAAa,YAAY,YAAE,KAAK,CAAC,IAAI,GAAO,EAC3C,KAAK,CAAC,OAAO,KAAK,SAAS,IAAI,4BAAgB,eAAe,YAAE,KAAK,CAAC,OAAO,GAAU,IAChF,IACN,CACP,CAAA;AACH,CAAC,CAAA"}