@syscore/ui-library 1.4.0 → 1.5.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/client/components/ui/page-header.tsx +145 -0
- package/client/components/ui/standard-table.tsx +554 -0
- package/client/global.css +184 -33
- package/client/lib/concepts-mock-data.ts +797 -0
- package/client/ui/PageHeader.stories.tsx +150 -0
- package/client/ui/Panel.stories.tsx +1 -1
- package/client/ui/StandardTable.stories.tsx +311 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +42 -0
- package/dist/index.es.js +371 -0
- package/package.json +1 -1
package/client/global.css
CHANGED
|
@@ -758,49 +758,49 @@ layer(base);
|
|
|
758
758
|
* These variables are used by Tailwind CSS and should be expressed as HSL values.
|
|
759
759
|
*/
|
|
760
760
|
:root {
|
|
761
|
-
|
|
762
|
-
|
|
761
|
+
--background: 0 0% 100%;
|
|
762
|
+
--foreground: 230 15% 12%;
|
|
763
763
|
|
|
764
|
-
|
|
765
|
-
|
|
764
|
+
--card: 0 0% 100%;
|
|
765
|
+
--card-foreground: 230 15% 12%;
|
|
766
766
|
|
|
767
|
-
|
|
768
|
-
|
|
767
|
+
--popover: 0 0% 100%;
|
|
768
|
+
--popover-foreground: 230 15% 12%;
|
|
769
769
|
|
|
770
|
-
|
|
771
|
-
|
|
770
|
+
--primary: 190 84% 29%;
|
|
771
|
+
--primary-foreground: 210 40% 98%;
|
|
772
772
|
|
|
773
|
-
|
|
774
|
-
|
|
773
|
+
--secondary: 252 100% 97%;
|
|
774
|
+
--secondary-foreground: 255 35% 20%;
|
|
775
775
|
|
|
776
|
-
|
|
777
|
-
|
|
776
|
+
--muted: 240 33% 98%;
|
|
777
|
+
--muted-foreground: 230 12% 40%;
|
|
778
778
|
|
|
779
|
-
|
|
780
|
-
|
|
779
|
+
--accent: 255 85% 55%;
|
|
780
|
+
--accent-foreground: 210 40% 98%;
|
|
781
781
|
|
|
782
|
-
|
|
783
|
-
|
|
782
|
+
--destructive: 0 72% 51%;
|
|
783
|
+
--destructive-foreground: 210 40% 98%;
|
|
784
784
|
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
785
|
+
--border: 240 13% 92%;
|
|
786
|
+
--input: 240 13% 92%;
|
|
787
|
+
--ring: 255 85% 55%;
|
|
788
788
|
|
|
789
|
-
|
|
789
|
+
--radius: 0.625rem;
|
|
790
790
|
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
791
|
+
/* Utility colors */
|
|
792
|
+
--white: 0 0% 100%;
|
|
793
|
+
--black: 0 0% 0%;
|
|
794
|
+
--coolGrey-400: 225 7% 35%;
|
|
795
795
|
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
796
|
+
--sidebar-background: 0 0% 98%;
|
|
797
|
+
--sidebar-foreground: 240 5.3% 26.1%;
|
|
798
|
+
--sidebar-primary: 240 5.9% 10%;
|
|
799
|
+
--sidebar-primary-foreground: 0 0% 98%;
|
|
800
|
+
--sidebar-accent: 240 4.8% 95.9%;
|
|
801
|
+
--sidebar-accent-foreground: 240 5.9% 10%;
|
|
802
|
+
--sidebar-border: 220 13% 91%;
|
|
803
|
+
--sidebar-ring: 217.2 91.2% 59.8%;
|
|
804
804
|
}
|
|
805
805
|
|
|
806
806
|
.dark {
|
|
@@ -1287,7 +1287,9 @@ body {
|
|
|
1287
1287
|
background-color: var(--color-white, #fff);
|
|
1288
1288
|
padding: 1.5rem;
|
|
1289
1289
|
gap: 1.5rem;
|
|
1290
|
-
transition:
|
|
1290
|
+
transition:
|
|
1291
|
+
transform 200ms ease-in-out,
|
|
1292
|
+
border-color 200ms ease-in-out;
|
|
1291
1293
|
will-change: transform;
|
|
1292
1294
|
}
|
|
1293
1295
|
|
|
@@ -6771,3 +6773,152 @@ body {
|
|
|
6771
6773
|
text-decoration-thickness: 0.75px;
|
|
6772
6774
|
text-underline-offset: 2px;
|
|
6773
6775
|
}
|
|
6776
|
+
|
|
6777
|
+
/* Standard Table Styles */
|
|
6778
|
+
.standard-table {
|
|
6779
|
+
border: 1px solid var(--color-blue-200, #cbe0f1);
|
|
6780
|
+
border-radius: var(--radius-lg, 12px);
|
|
6781
|
+
overflow: hidden;
|
|
6782
|
+
}
|
|
6783
|
+
|
|
6784
|
+
.standard-table-header {
|
|
6785
|
+
width: 100%;
|
|
6786
|
+
display: flex;
|
|
6787
|
+
align-items: center;
|
|
6788
|
+
justify-content: space-between;
|
|
6789
|
+
background-color: var(--color-blue-50, #fbfdfe);
|
|
6790
|
+
}
|
|
6791
|
+
|
|
6792
|
+
.standard-table-header__title {
|
|
6793
|
+
/* Uses body-large utility */
|
|
6794
|
+
color: var(--color-cyan-800, #0f748a);
|
|
6795
|
+
font-weight: 600;
|
|
6796
|
+
}
|
|
6797
|
+
|
|
6798
|
+
.standard-table-row {
|
|
6799
|
+
border-bottom: 1px solid var(--color-blue-200, #cbe0f1);
|
|
6800
|
+
}
|
|
6801
|
+
|
|
6802
|
+
.standard-table-row:last-child {
|
|
6803
|
+
border-bottom: 0;
|
|
6804
|
+
}
|
|
6805
|
+
|
|
6806
|
+
.standard-table-row-header {
|
|
6807
|
+
height: 5rem;
|
|
6808
|
+
width: 100%;
|
|
6809
|
+
display: flex;
|
|
6810
|
+
align-items: center;
|
|
6811
|
+
justify-content: space-between;
|
|
6812
|
+
gap: 1.5rem;
|
|
6813
|
+
padding: 1.5rem;
|
|
6814
|
+
background-color: var(--color-blue-50, #fbfdfe);
|
|
6815
|
+
transition: background-color 0.2s ease-in-out;
|
|
6816
|
+
cursor: pointer;
|
|
6817
|
+
}
|
|
6818
|
+
|
|
6819
|
+
.standard-table-row-header:hover {
|
|
6820
|
+
background-color: var(--color-gray-50, #f9f9fa);
|
|
6821
|
+
}
|
|
6822
|
+
|
|
6823
|
+
.standard-table-trigger {
|
|
6824
|
+
background-color: transparent;
|
|
6825
|
+
cursor: pointer;
|
|
6826
|
+
transition: background-color 0.2s ease-in-out;
|
|
6827
|
+
}
|
|
6828
|
+
|
|
6829
|
+
.standard-table-trigger:hover {
|
|
6830
|
+
background-color: rgba(214, 244, 251, 0.5); /* cyan-100/50 */
|
|
6831
|
+
}
|
|
6832
|
+
|
|
6833
|
+
.standard-table-content {
|
|
6834
|
+
overflow: hidden;
|
|
6835
|
+
background-color: var(--color-white, #fff);
|
|
6836
|
+
border-top: 1px solid var(--color-blue-200, #cbe0f1);
|
|
6837
|
+
}
|
|
6838
|
+
|
|
6839
|
+
.standard-table-content__inner {
|
|
6840
|
+
display: flex;
|
|
6841
|
+
flex-direction: column;
|
|
6842
|
+
}
|
|
6843
|
+
|
|
6844
|
+
.standard-table-content__inner > * {
|
|
6845
|
+
border-bottom: 1px solid var(--color-blue-200, #cbe0f1);
|
|
6846
|
+
}
|
|
6847
|
+
|
|
6848
|
+
.standard-table-content__inner > *:last-child {
|
|
6849
|
+
border-bottom: 0;
|
|
6850
|
+
}
|
|
6851
|
+
|
|
6852
|
+
.standard-table-list-row {
|
|
6853
|
+
height: 5rem;
|
|
6854
|
+
display: flex;
|
|
6855
|
+
align-items: center;
|
|
6856
|
+
gap: 1.5rem;
|
|
6857
|
+
padding: 1.5rem;
|
|
6858
|
+
transition: background-color 0.2s ease-in-out;
|
|
6859
|
+
cursor: pointer;
|
|
6860
|
+
}
|
|
6861
|
+
|
|
6862
|
+
.standard-table-list-row--default {
|
|
6863
|
+
background-color: var(--color-blue-50, #fbfdfe);
|
|
6864
|
+
}
|
|
6865
|
+
|
|
6866
|
+
.standard-table-list-row--default:hover {
|
|
6867
|
+
background-color: var(--color-gray-50, #f9f9fa);
|
|
6868
|
+
}
|
|
6869
|
+
|
|
6870
|
+
.standard-table-list-row--nested {
|
|
6871
|
+
background-color: var(--color-white, #fff);
|
|
6872
|
+
}
|
|
6873
|
+
|
|
6874
|
+
.standard-table-list-row--nested:hover {
|
|
6875
|
+
background-color: var(--color-gray-50, #f9f9fa);
|
|
6876
|
+
}
|
|
6877
|
+
|
|
6878
|
+
.standard-table-list-row__title {
|
|
6879
|
+
font-weight: 500;
|
|
6880
|
+
flex: 1;
|
|
6881
|
+
text-align: left;
|
|
6882
|
+
}
|
|
6883
|
+
|
|
6884
|
+
.standard-table-container {
|
|
6885
|
+
display: flex;
|
|
6886
|
+
flex-direction: column;
|
|
6887
|
+
gap: 1rem;
|
|
6888
|
+
}
|
|
6889
|
+
|
|
6890
|
+
/* PageHeader Styles */
|
|
6891
|
+
.page-header {
|
|
6892
|
+
margin-bottom: 1.5rem;
|
|
6893
|
+
}
|
|
6894
|
+
|
|
6895
|
+
.page-header-top-section {
|
|
6896
|
+
display: flex;
|
|
6897
|
+
align-items: center;
|
|
6898
|
+
justify-content: space-between;
|
|
6899
|
+
gap: 1rem;
|
|
6900
|
+
margin-bottom: 0.75rem;
|
|
6901
|
+
min-height: 52px;
|
|
6902
|
+
}
|
|
6903
|
+
|
|
6904
|
+
.page-header-left-content {
|
|
6905
|
+
display: flex;
|
|
6906
|
+
align-items: center;
|
|
6907
|
+
gap: 1.5rem;
|
|
6908
|
+
}
|
|
6909
|
+
|
|
6910
|
+
.page-header-title {
|
|
6911
|
+
display: flex;
|
|
6912
|
+
align-items: center;
|
|
6913
|
+
justify-content: start;
|
|
6914
|
+
min-height: 32px;
|
|
6915
|
+
}
|
|
6916
|
+
|
|
6917
|
+
.page-header-title:last-child {
|
|
6918
|
+
margin-bottom: 0;
|
|
6919
|
+
}
|
|
6920
|
+
|
|
6921
|
+
.page-header-description {
|
|
6922
|
+
/* Uses body-large utility */
|
|
6923
|
+
max-width: 680px;
|
|
6924
|
+
}
|