@surfaces-ui/components 0.7.0 → 0.8.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/dist/styles.css CHANGED
@@ -2178,6 +2178,10 @@ select.sf-input:disabled {
2178
2178
  flex: 0 0 auto;
2179
2179
  }
2180
2180
 
2181
+ .sf-a2-row > .sf-run-control {
2182
+ flex: 0 1 auto;
2183
+ }
2184
+
2181
2185
  .sf-a2-card {
2182
2186
  min-width: 0;
2183
2187
  padding: var(--sf-space-4);
@@ -4404,7 +4408,7 @@ select.sf-input:disabled {
4404
4408
  overflow-y: auto;
4405
4409
  overscroll-behavior: contain;
4406
4410
  padding: var(--sf-space-1);
4407
- border-radius: var(--sf-radius-md);
4411
+ border-radius: var(--sf-radius);
4408
4412
  }
4409
4413
 
4410
4414
  .sf-a2-conversation-thread:focus-visible {
@@ -5168,6 +5172,10 @@ select.sf-input:disabled {
5168
5172
  color: var(--sf-color-danger);
5169
5173
  }
5170
5174
 
5175
+ .sf-receipt[data-outcome="none"] .sf-receipt-mark {
5176
+ color: var(--sf-color-muted);
5177
+ }
5178
+
5171
5179
  .sf-receipt-facts {
5172
5180
  display: grid;
5173
5181
  grid-template-columns: max-content minmax(0, 1fr);
@@ -6535,6 +6543,214 @@ select.sf-input:disabled {
6535
6543
  }
6536
6544
  }
6537
6545
 
6546
+ /* An app document run by AppView: its navigation beside the page on the current route. */
6547
+
6548
+ .sf-app {
6549
+ display: flex;
6550
+ align-items: stretch;
6551
+ min-height: 100%;
6552
+ }
6553
+
6554
+ /* A theme scope that holds an app (mountApp) fills its holder, so the navigation runs the whole height. */
6555
+ .sf-scope:has(> .sf-app) {
6556
+ display: flex;
6557
+ flex-direction: column;
6558
+ min-height: 100%;
6559
+ }
6560
+
6561
+ .sf-scope > .sf-app {
6562
+ flex: 1 0 auto;
6563
+ }
6564
+
6565
+ .sf-app-main {
6566
+ flex: 1 1 auto;
6567
+ min-width: 0;
6568
+ padding: var(--sf-space-4);
6569
+ }
6570
+
6571
+ /* Focus is put on the page after a move, for a screen reader; it is not a control, so no ring unless by keyboard. */
6572
+ .sf-app-main:focus:not(:focus-visible) {
6573
+ outline: none;
6574
+ }
6575
+
6576
+ /* A button whose operation is out: it says so, and reads as not to be pressed again. */
6577
+ .sf-a2-button[data-working] {
6578
+ cursor: progress;
6579
+ white-space: nowrap;
6580
+ }
6581
+
6582
+ /* A button that runs an operation, with what the server said under it. */
6583
+ .sf-run-control {
6584
+ display: inline-flex;
6585
+ flex-direction: column;
6586
+ align-items: flex-start;
6587
+ min-width: 0;
6588
+ max-width: 100%;
6589
+ }
6590
+
6591
+ .sf-a2-button-working {
6592
+ margin-inline-start: var(--sf-space-2);
6593
+ font-weight: var(--sf-font-weight-regular, 400);
6594
+ }
6595
+
6596
+ /* What an operation run from a control said: beside the control, never over the page. */
6597
+ .sf-run-alert {
6598
+ max-width: 28rem;
6599
+ display: flex;
6600
+ flex-wrap: wrap;
6601
+ align-items: center;
6602
+ gap: var(--sf-space-2);
6603
+ margin: var(--sf-space-2) 0 0;
6604
+ color: var(--sf-color-danger);
6605
+ }
6606
+
6607
+ .sf-run-alert > p {
6608
+ margin: 0;
6609
+ }
6610
+
6611
+ .sf-run-alert ul {
6612
+ margin: 0;
6613
+ padding-inline-start: var(--sf-space-4);
6614
+ }
6615
+
6616
+ /* RecordForm: one record, read or edited. The fields are a form's; the facts are a description list. */
6617
+ .sf-record {
6618
+ inline-size: 100%;
6619
+ }
6620
+
6621
+ .sf-record-field {
6622
+ display: grid;
6623
+ min-width: 0;
6624
+ }
6625
+
6626
+ .sf-record-facts {
6627
+ display: grid;
6628
+ gap: var(--sf-space-2);
6629
+ margin: 0;
6630
+ }
6631
+
6632
+ .sf-record-facts > div {
6633
+ display: flex;
6634
+ flex-wrap: wrap;
6635
+ justify-content: space-between;
6636
+ gap: var(--sf-space-1) var(--sf-space-3);
6637
+ padding-bottom: var(--sf-space-2);
6638
+ border-bottom: 1px solid var(--sf-color-border);
6639
+ }
6640
+
6641
+ .sf-record-facts dt {
6642
+ color: var(--sf-color-muted);
6643
+ font-size: var(--sf-font-size-sm);
6644
+ }
6645
+
6646
+ .sf-record-facts dd {
6647
+ margin: 0;
6648
+ font-variant-numeric: tabular-nums;
6649
+ overflow-wrap: anywhere;
6650
+ }
6651
+
6652
+ /* What is wrong, listed above the fields with a link to each, when there is more than one. */
6653
+ .sf-record-summary {
6654
+ display: grid;
6655
+ gap: var(--sf-space-1);
6656
+ padding: var(--sf-space-3);
6657
+ border: 1px solid var(--sf-color-danger);
6658
+ border-radius: var(--sf-radius);
6659
+ font-size: var(--sf-font-size-sm);
6660
+ }
6661
+
6662
+ .sf-record-summary:focus-visible {
6663
+ outline: 2px solid var(--sf-color-focus);
6664
+ outline-offset: 2px;
6665
+ }
6666
+
6667
+ .sf-record-summary-title {
6668
+ margin: 0;
6669
+ font-weight: var(--sf-font-weight-semibold);
6670
+ }
6671
+
6672
+ .sf-record-summary ul {
6673
+ margin: 0;
6674
+ padding-inline-start: var(--sf-space-4);
6675
+ }
6676
+
6677
+ .sf-record-summary a {
6678
+ display: inline-block;
6679
+ min-height: var(--sf-target-min);
6680
+ color: var(--sf-color-danger);
6681
+ }
6682
+
6683
+ .sf-record-summary a:focus-visible {
6684
+ outline: 2px solid var(--sf-color-focus);
6685
+ outline-offset: 2px;
6686
+ }
6687
+
6688
+ .sf-record-missing {
6689
+ display: grid;
6690
+ gap: var(--sf-space-2);
6691
+ }
6692
+
6693
+ .sf-record-missing p,
6694
+ p.sf-record-missing {
6695
+ margin: 0;
6696
+ }
6697
+
6698
+ .sf-record .sf-run-alert {
6699
+ margin: 0;
6700
+ }
6701
+
6702
+ .sf-record [aria-disabled="true"] {
6703
+ opacity: 0.6;
6704
+ cursor: progress;
6705
+ }
6706
+
6707
+ /* A partial run's receipt, above the page until the person has read it. */
6708
+ .sf-app-receipt {
6709
+ display: grid;
6710
+ gap: var(--sf-space-3);
6711
+ margin-bottom: var(--sf-space-4);
6712
+ }
6713
+
6714
+ .sf-app-receipt:focus:not(:focus-visible) {
6715
+ outline: none;
6716
+ }
6717
+
6718
+ .sf-app-receipt:focus-visible {
6719
+ outline: 2px solid var(--sf-color-focus);
6720
+ outline-offset: 2px;
6721
+ }
6722
+
6723
+ .sf-run-receipt {
6724
+ display: grid;
6725
+ gap: var(--sf-space-3);
6726
+ justify-items: start;
6727
+ }
6728
+
6729
+ .sf-run-receipt > .sf-receipt {
6730
+ justify-self: stretch;
6731
+ }
6732
+
6733
+ .sf-run-skipped {
6734
+ justify-self: stretch;
6735
+ margin: 0;
6736
+ }
6737
+
6738
+ .sf-run-skipped h3 {
6739
+ margin: 0 0 var(--sf-space-1);
6740
+ font-size: var(--sf-font-size);
6741
+ font-weight: var(--sf-font-weight-semibold);
6742
+ }
6743
+
6744
+ .sf-run-skipped ul {
6745
+ margin: 0;
6746
+ padding-inline-start: var(--sf-space-4);
6747
+ }
6748
+
6749
+ .sf-app-title {
6750
+ font-size: var(--sf-font-size-lg);
6751
+ font-weight: var(--sf-font-weight-semibold);
6752
+ }
6753
+
6538
6754
  /* SideNav: navigation that stays beside the page, or folds away to a menu button and slides in over the whole screen. */
6539
6755
 
6540
6756
  .sf-sidenav {
@@ -9363,7 +9579,7 @@ button > .sf-item-control-icon:only-child {
9363
9579
  .sf-site-screen {
9364
9580
  min-height: 0;
9365
9581
  overflow: auto;
9366
- border-radius: var(--sf-radius-md);
9582
+ border-radius: var(--sf-radius);
9367
9583
  scrollbar-width: thin;
9368
9584
  }
9369
9585
 
@@ -9969,6 +10185,45 @@ button > .sf-item-control-icon:only-child {
9969
10185
  margin-top: 0;
9970
10186
  }
9971
10187
 
10188
+ .sf-confirm-fields {
10189
+ display: grid;
10190
+ gap: var(--sf-space-3);
10191
+ margin-top: var(--sf-space-3);
10192
+ }
10193
+
10194
+ .sf-confirm-field {
10195
+ display: grid;
10196
+ gap: var(--sf-space-1);
10197
+ font-weight: var(--sf-font-weight-medium);
10198
+ }
10199
+
10200
+ .sf-confirm-error {
10201
+ margin: 0;
10202
+ color: var(--sf-color-danger);
10203
+ }
10204
+
10205
+ /* What an approval is about: the operation and each argument, as the server will run them. */
10206
+ .sf-confirm-subject {
10207
+ display: grid;
10208
+ grid-template-columns: max-content minmax(0, 1fr);
10209
+ gap: var(--sf-space-1) var(--sf-space-3);
10210
+ margin: var(--sf-space-3) 0 0;
10211
+ color: var(--sf-color-text);
10212
+ }
10213
+
10214
+ .sf-confirm-subject dt {
10215
+ color: var(--sf-color-muted);
10216
+ }
10217
+
10218
+ .sf-confirm-subject dd {
10219
+ margin: 0;
10220
+ overflow-wrap: anywhere;
10221
+ }
10222
+
10223
+ .sf-confirm-tags {
10224
+ margin: 0 0 var(--sf-space-2);
10225
+ }
10226
+
9972
10227
  .sf-confirm-actions {
9973
10228
  display: flex;
9974
10229
  flex-wrap: wrap;
@@ -2180,6 +2180,10 @@ select.sf-input:disabled {
2180
2180
  flex: 0 0 auto;
2181
2181
  }
2182
2182
 
2183
+ .sf-a2-row > .sf-run-control {
2184
+ flex: 0 1 auto;
2185
+ }
2186
+
2183
2187
  .sf-a2-card {
2184
2188
  min-width: 0;
2185
2189
  padding: var(--sf-space-4);
@@ -4406,7 +4410,7 @@ select.sf-input:disabled {
4406
4410
  overflow-y: auto;
4407
4411
  overscroll-behavior: contain;
4408
4412
  padding: var(--sf-space-1);
4409
- border-radius: var(--sf-radius-md);
4413
+ border-radius: var(--sf-radius);
4410
4414
  }
4411
4415
 
4412
4416
  .sf-a2-conversation-thread:focus-visible {
@@ -5170,6 +5174,10 @@ select.sf-input:disabled {
5170
5174
  color: var(--sf-color-danger);
5171
5175
  }
5172
5176
 
5177
+ .sf-receipt[data-outcome="none"] .sf-receipt-mark {
5178
+ color: var(--sf-color-muted);
5179
+ }
5180
+
5173
5181
  .sf-receipt-facts {
5174
5182
  display: grid;
5175
5183
  grid-template-columns: max-content minmax(0, 1fr);
@@ -6537,6 +6545,214 @@ select.sf-input:disabled {
6537
6545
  }
6538
6546
  }
6539
6547
 
6548
+ /* An app document run by AppView: its navigation beside the page on the current route. */
6549
+
6550
+ .sf-app {
6551
+ display: flex;
6552
+ align-items: stretch;
6553
+ min-height: 100%;
6554
+ }
6555
+
6556
+ /* A theme scope that holds an app (mountApp) fills its holder, so the navigation runs the whole height. */
6557
+ .sf-scope:has(> .sf-app) {
6558
+ display: flex;
6559
+ flex-direction: column;
6560
+ min-height: 100%;
6561
+ }
6562
+
6563
+ .sf-scope > .sf-app {
6564
+ flex: 1 0 auto;
6565
+ }
6566
+
6567
+ .sf-app-main {
6568
+ flex: 1 1 auto;
6569
+ min-width: 0;
6570
+ padding: var(--sf-space-4);
6571
+ }
6572
+
6573
+ /* Focus is put on the page after a move, for a screen reader; it is not a control, so no ring unless by keyboard. */
6574
+ .sf-app-main:focus:not(:focus-visible) {
6575
+ outline: none;
6576
+ }
6577
+
6578
+ /* A button whose operation is out: it says so, and reads as not to be pressed again. */
6579
+ .sf-a2-button[data-working] {
6580
+ cursor: progress;
6581
+ white-space: nowrap;
6582
+ }
6583
+
6584
+ /* A button that runs an operation, with what the server said under it. */
6585
+ .sf-run-control {
6586
+ display: inline-flex;
6587
+ flex-direction: column;
6588
+ align-items: flex-start;
6589
+ min-width: 0;
6590
+ max-width: 100%;
6591
+ }
6592
+
6593
+ .sf-a2-button-working {
6594
+ margin-inline-start: var(--sf-space-2);
6595
+ font-weight: var(--sf-font-weight-regular, 400);
6596
+ }
6597
+
6598
+ /* What an operation run from a control said: beside the control, never over the page. */
6599
+ .sf-run-alert {
6600
+ max-width: 28rem;
6601
+ display: flex;
6602
+ flex-wrap: wrap;
6603
+ align-items: center;
6604
+ gap: var(--sf-space-2);
6605
+ margin: var(--sf-space-2) 0 0;
6606
+ color: var(--sf-color-danger);
6607
+ }
6608
+
6609
+ .sf-run-alert > p {
6610
+ margin: 0;
6611
+ }
6612
+
6613
+ .sf-run-alert ul {
6614
+ margin: 0;
6615
+ padding-inline-start: var(--sf-space-4);
6616
+ }
6617
+
6618
+ /* RecordForm: one record, read or edited. The fields are a form's; the facts are a description list. */
6619
+ .sf-record {
6620
+ inline-size: 100%;
6621
+ }
6622
+
6623
+ .sf-record-field {
6624
+ display: grid;
6625
+ min-width: 0;
6626
+ }
6627
+
6628
+ .sf-record-facts {
6629
+ display: grid;
6630
+ gap: var(--sf-space-2);
6631
+ margin: 0;
6632
+ }
6633
+
6634
+ .sf-record-facts > div {
6635
+ display: flex;
6636
+ flex-wrap: wrap;
6637
+ justify-content: space-between;
6638
+ gap: var(--sf-space-1) var(--sf-space-3);
6639
+ padding-bottom: var(--sf-space-2);
6640
+ border-bottom: 1px solid var(--sf-color-border);
6641
+ }
6642
+
6643
+ .sf-record-facts dt {
6644
+ color: var(--sf-color-muted);
6645
+ font-size: var(--sf-font-size-sm);
6646
+ }
6647
+
6648
+ .sf-record-facts dd {
6649
+ margin: 0;
6650
+ font-variant-numeric: tabular-nums;
6651
+ overflow-wrap: anywhere;
6652
+ }
6653
+
6654
+ /* What is wrong, listed above the fields with a link to each, when there is more than one. */
6655
+ .sf-record-summary {
6656
+ display: grid;
6657
+ gap: var(--sf-space-1);
6658
+ padding: var(--sf-space-3);
6659
+ border: 1px solid var(--sf-color-danger);
6660
+ border-radius: var(--sf-radius);
6661
+ font-size: var(--sf-font-size-sm);
6662
+ }
6663
+
6664
+ .sf-record-summary:focus-visible {
6665
+ outline: 2px solid var(--sf-color-focus);
6666
+ outline-offset: 2px;
6667
+ }
6668
+
6669
+ .sf-record-summary-title {
6670
+ margin: 0;
6671
+ font-weight: var(--sf-font-weight-semibold);
6672
+ }
6673
+
6674
+ .sf-record-summary ul {
6675
+ margin: 0;
6676
+ padding-inline-start: var(--sf-space-4);
6677
+ }
6678
+
6679
+ .sf-record-summary a {
6680
+ display: inline-block;
6681
+ min-height: var(--sf-target-min);
6682
+ color: var(--sf-color-danger);
6683
+ }
6684
+
6685
+ .sf-record-summary a:focus-visible {
6686
+ outline: 2px solid var(--sf-color-focus);
6687
+ outline-offset: 2px;
6688
+ }
6689
+
6690
+ .sf-record-missing {
6691
+ display: grid;
6692
+ gap: var(--sf-space-2);
6693
+ }
6694
+
6695
+ .sf-record-missing p,
6696
+ p.sf-record-missing {
6697
+ margin: 0;
6698
+ }
6699
+
6700
+ .sf-record .sf-run-alert {
6701
+ margin: 0;
6702
+ }
6703
+
6704
+ .sf-record [aria-disabled="true"] {
6705
+ opacity: 0.6;
6706
+ cursor: progress;
6707
+ }
6708
+
6709
+ /* A partial run's receipt, above the page until the person has read it. */
6710
+ .sf-app-receipt {
6711
+ display: grid;
6712
+ gap: var(--sf-space-3);
6713
+ margin-bottom: var(--sf-space-4);
6714
+ }
6715
+
6716
+ .sf-app-receipt:focus:not(:focus-visible) {
6717
+ outline: none;
6718
+ }
6719
+
6720
+ .sf-app-receipt:focus-visible {
6721
+ outline: 2px solid var(--sf-color-focus);
6722
+ outline-offset: 2px;
6723
+ }
6724
+
6725
+ .sf-run-receipt {
6726
+ display: grid;
6727
+ gap: var(--sf-space-3);
6728
+ justify-items: start;
6729
+ }
6730
+
6731
+ .sf-run-receipt > .sf-receipt {
6732
+ justify-self: stretch;
6733
+ }
6734
+
6735
+ .sf-run-skipped {
6736
+ justify-self: stretch;
6737
+ margin: 0;
6738
+ }
6739
+
6740
+ .sf-run-skipped h3 {
6741
+ margin: 0 0 var(--sf-space-1);
6742
+ font-size: var(--sf-font-size);
6743
+ font-weight: var(--sf-font-weight-semibold);
6744
+ }
6745
+
6746
+ .sf-run-skipped ul {
6747
+ margin: 0;
6748
+ padding-inline-start: var(--sf-space-4);
6749
+ }
6750
+
6751
+ .sf-app-title {
6752
+ font-size: var(--sf-font-size-lg);
6753
+ font-weight: var(--sf-font-weight-semibold);
6754
+ }
6755
+
6540
6756
  /* SideNav: navigation that stays beside the page, or folds away to a menu button and slides in over the whole screen. */
6541
6757
 
6542
6758
  .sf-sidenav {
@@ -9365,7 +9581,7 @@ button > .sf-item-control-icon:only-child {
9365
9581
  .sf-site-screen {
9366
9582
  min-height: 0;
9367
9583
  overflow: auto;
9368
- border-radius: var(--sf-radius-md);
9584
+ border-radius: var(--sf-radius);
9369
9585
  scrollbar-width: thin;
9370
9586
  }
9371
9587
 
@@ -9971,6 +10187,45 @@ button > .sf-item-control-icon:only-child {
9971
10187
  margin-top: 0;
9972
10188
  }
9973
10189
 
10190
+ .sf-confirm-fields {
10191
+ display: grid;
10192
+ gap: var(--sf-space-3);
10193
+ margin-top: var(--sf-space-3);
10194
+ }
10195
+
10196
+ .sf-confirm-field {
10197
+ display: grid;
10198
+ gap: var(--sf-space-1);
10199
+ font-weight: var(--sf-font-weight-medium);
10200
+ }
10201
+
10202
+ .sf-confirm-error {
10203
+ margin: 0;
10204
+ color: var(--sf-color-danger);
10205
+ }
10206
+
10207
+ /* What an approval is about: the operation and each argument, as the server will run them. */
10208
+ .sf-confirm-subject {
10209
+ display: grid;
10210
+ grid-template-columns: max-content minmax(0, 1fr);
10211
+ gap: var(--sf-space-1) var(--sf-space-3);
10212
+ margin: var(--sf-space-3) 0 0;
10213
+ color: var(--sf-color-text);
10214
+ }
10215
+
10216
+ .sf-confirm-subject dt {
10217
+ color: var(--sf-color-muted);
10218
+ }
10219
+
10220
+ .sf-confirm-subject dd {
10221
+ margin: 0;
10222
+ overflow-wrap: anywhere;
10223
+ }
10224
+
10225
+ .sf-confirm-tags {
10226
+ margin: 0 0 var(--sf-space-2);
10227
+ }
10228
+
9974
10229
  .sf-confirm-actions {
9975
10230
  display: flex;
9976
10231
  flex-wrap: wrap;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@surfaces-ui/components",
3
- "version": "0.7.0",
3
+ "version": "0.8.0",
4
4
  "description": "React components for Surfaces UI",
5
5
  "keywords": [
6
6
  "surfaces-ui",
@@ -20,7 +20,7 @@
20
20
  "url": "git+https://github.com/teradata-labs/surfaces-ui.git",
21
21
  "directory": "packages/components"
22
22
  },
23
- "homepage": "https://github.com/teradata-labs/surfaces-ui#readme",
23
+ "homepage": "https://surfaces-ui.com",
24
24
  "bugs": {
25
25
  "url": "https://github.com/teradata-labs/surfaces-ui/issues"
26
26
  },
@@ -57,7 +57,7 @@
57
57
  "jsdom": "^31.0.0",
58
58
  "react": "^19.3.1",
59
59
  "react-dom": "^19.3.1",
60
- "@surfaces-ui/discovery": "0.7.0"
60
+ "@surfaces-ui/discovery": "0.8.0"
61
61
  },
62
62
  "dependencies": {
63
63
  "@bufbuild/protobuf": "^2.17.0",
@@ -71,11 +71,11 @@
71
71
  "@lezer/highlight": "^1.2.5",
72
72
  "apache-arrow": "^21.2.0",
73
73
  "echarts": "^6.1.0",
74
- "@surfaces-ui/data": "0.7.0",
75
- "@surfaces-ui/icons": "0.7.0",
76
- "@surfaces-ui/proto": "0.7.0",
77
- "@surfaces-ui/tokens": "0.7.0",
78
- "@surfaces-ui/trace": "0.7.0"
74
+ "@surfaces-ui/data": "0.8.0",
75
+ "@surfaces-ui/icons": "0.8.0",
76
+ "@surfaces-ui/proto": "0.8.0",
77
+ "@surfaces-ui/tokens": "0.8.0",
78
+ "@surfaces-ui/trace": "0.8.0"
79
79
  },
80
80
  "peerDependencies": {
81
81
  "react": ">=18",