@pgcorp/ui-kit 0.3.0 → 0.4.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.
Files changed (39) hide show
  1. package/README.md +36 -0
  2. package/docs/public-api.md +8 -0
  3. package/package.json +1 -1
  4. package/src/components/layout/SAppShell.vue +3 -2
  5. package/src/components/shared/complex/STree.vue +29 -4
  6. package/src/components/shared/complex/treeAdapter.ts +2 -1
  7. package/src/components/shared/complex/types.ts +1 -12
  8. package/src/components/shared/containers/SLeftSidebar.vue +7 -2
  9. package/src/components/shared/containers/SPageHeader.css +5 -0
  10. package/src/components/shared/containers/SPageHeader.vue +1 -1
  11. package/src/components/shared/containers/SPopover.vue +2 -1
  12. package/src/components/shared/containers/SSidebarGroup.vue +10 -5
  13. package/src/components/shared/containers/sidebar.ts +2 -1
  14. package/src/components/shared/controls/SButton.vue +10 -5
  15. package/src/components/shared/controls/SCombobox.vue +47 -5
  16. package/src/components/shared/controls/SInteractiveSurface.vue +2 -1
  17. package/src/components/shared/controls/SLink.ts +1 -17
  18. package/src/components/shared/controls/SLink.vue +26 -2
  19. package/src/components/shared/data-display/SDocBlock.vue +10 -10
  20. package/src/components/shared/data-display/SLinkedSystemsList.vue +3 -3
  21. package/src/components/shared/data-display/STable.css +39 -0
  22. package/src/components/shared/data-display/STable.vue +454 -67
  23. package/src/components/shared/data-display/STooltip.vue +2 -1
  24. package/src/components/shared/data-display/SVirtualList.ts +1 -16
  25. package/src/components/shared/data-display/SVirtualList.vue +18 -2
  26. package/src/components/shared/data-display/json.ts +1 -1
  27. package/src/components/shared/data-display/table.ts +4 -29
  28. package/src/components/shared/database/SDataGrid.vue +29 -8
  29. package/src/components/shared/database/SSqlEditor.vue +3 -2
  30. package/src/components/shared/database/dataGrid.ts +1 -17
  31. package/src/components/shared/navigation/STabs.vue +2 -1
  32. package/src/composables/uiPreferencesReset.ts +2 -1
  33. package/src/composables/useClipboard.ts +2 -1
  34. package/src/composables/useSidebarPanelState.ts +3 -2
  35. package/src/internal/es2020.ts +50 -0
  36. package/src/internal/inlineTokenEditorContract.ts +4 -3
  37. package/src/internal/pointerInteractionLease.ts +2 -1
  38. package/src/internal/semanticSizing.ts +2 -2
  39. package/src/styles/tokens.css +1 -0
@@ -34,12 +34,15 @@
34
34
  }
35
35
 
36
36
  .s-table-header th[data-width="auto"] { inline-size: auto; }
37
+ .s-table-header th[data-width="content"] { inline-size: 1%; white-space: nowrap; }
38
+ .s-table-header th[data-width="2xs"] { inline-size: var(--s-table-column-inline-size-2xs); }
37
39
  .s-table-header th[data-width="xs"] { inline-size: var(--s-table-column-inline-size-xs); }
38
40
  .s-table-header th[data-width="sm"] { inline-size: var(--s-table-column-inline-size-sm); }
39
41
  .s-table-header th[data-width="md"] { inline-size: var(--s-table-column-inline-size-md); }
40
42
  .s-table-header th[data-width="lg"] { inline-size: var(--s-table-column-inline-size-lg); }
41
43
  .s-table-header th[data-width="xl"] { inline-size: var(--s-table-column-inline-size-xl); }
42
44
  .s-table-header th[data-width="fill"] { inline-size: 100%; }
45
+ .s-table-header th[data-min-width="2xs"] { min-inline-size: var(--s-table-column-inline-size-2xs); }
43
46
  .s-table-header th[data-min-width="xs"] { min-inline-size: var(--s-table-column-inline-size-xs); }
44
47
  .s-table-header th[data-min-width="sm"] { min-inline-size: var(--s-table-column-inline-size-sm); }
45
48
  .s-table-header th[data-min-width="md"] { min-inline-size: var(--s-table-column-inline-size-md); }
@@ -58,6 +61,10 @@
58
61
  @apply bg-surface-50/50 dark:bg-surface-800/20;
59
62
  }
60
63
 
64
+ .s-table-body tr[data-selected="true"] td {
65
+ @apply bg-primary-50 dark:bg-primary-950/30;
66
+ }
67
+
61
68
  .s-table-body td {
62
69
  @apply px-4 py-3 align-middle text-surface-700 dark:text-surface-300;
63
70
  height: var(--s-density-row-comfortable);
@@ -66,6 +73,38 @@
66
73
  .s-table[data-density="compact"] th { @apply px-3 py-2; }
67
74
  .s-table[data-density="compact"] td { @apply px-2 py-1.5; height: var(--s-density-row-compact); }
68
75
 
76
+ .s-table th.s-table__control-cell,
77
+ .s-table td.s-table__control-cell {
78
+ @apply px-2 text-center;
79
+ inline-size: var(--s-table-column-inline-size-2xs);
80
+ min-inline-size: var(--s-table-column-inline-size-2xs);
81
+ }
82
+
83
+ .s-table__control-cell > * {
84
+ @apply mx-auto;
85
+ }
86
+
87
+ .s-table__header-content[data-header-presentation="assistive"],
88
+ .s-table__assistive {
89
+ @apply sr-only;
90
+ }
91
+
92
+ .s-table-body tr[data-row-details] {
93
+ @apply bg-surface-50/40 dark:bg-surface-900/40;
94
+ }
95
+
96
+ .s-table-body tr[data-row-details]:hover {
97
+ @apply bg-surface-50/40 dark:bg-surface-900/40;
98
+ }
99
+
100
+ .s-table-body tr[data-row-details] > td {
101
+ @apply h-auto p-0;
102
+ }
103
+
104
+ .s-table__row-details {
105
+ @apply px-4 py-3 text-surface-700 dark:text-surface-300;
106
+ }
107
+
69
108
  .s-table [data-align="center"] { text-align: center; }
70
109
  .s-table [data-align="right"] { text-align: right; }
71
110