@mshuja288/aksuicore 0.4.0 → 0.4.1
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/CHANGELOG.md +11 -0
- package/dist/aksui.css +195 -25
- package/dist/index.cjs +415 -270
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +415 -270
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/patterns/RecordWorkspace.tsx +417 -251
- package/src/theme/patterns.css +192 -24
- package/src/theme/primitives.css +3 -1
package/src/theme/patterns.css
CHANGED
|
@@ -736,7 +736,6 @@ button.sort-header.active .sort-indicator {
|
|
|
736
736
|
|
|
737
737
|
.row-actions-mobile {
|
|
738
738
|
display: none;
|
|
739
|
-
position: relative;
|
|
740
739
|
}
|
|
741
740
|
|
|
742
741
|
button.row-action-menu-trigger {
|
|
@@ -752,7 +751,8 @@ button.row-action-menu-trigger svg {
|
|
|
752
751
|
height: 18px;
|
|
753
752
|
}
|
|
754
753
|
|
|
755
|
-
button.row-action-menu-trigger:hover
|
|
754
|
+
button.row-action-menu-trigger:hover,
|
|
755
|
+
button.row-action-menu-trigger.open {
|
|
756
756
|
transform: none;
|
|
757
757
|
background: #f4f2ef;
|
|
758
758
|
color: var(--aks-brand);
|
|
@@ -760,12 +760,8 @@ button.row-action-menu-trigger:hover {
|
|
|
760
760
|
}
|
|
761
761
|
|
|
762
762
|
.row-action-menu {
|
|
763
|
-
position: absolute;
|
|
764
|
-
top: calc(100% + 4px);
|
|
765
|
-
right: 0;
|
|
766
|
-
z-index: 5;
|
|
767
763
|
display: grid;
|
|
768
|
-
min-width:
|
|
764
|
+
min-width: 160px;
|
|
769
765
|
padding: 6px;
|
|
770
766
|
border: 1px solid var(--aks-line);
|
|
771
767
|
border-radius: var(--aks-radius);
|
|
@@ -773,10 +769,15 @@ button.row-action-menu-trigger:hover {
|
|
|
773
769
|
box-shadow: 0 12px 28px rgba(30, 39, 53, 0.14);
|
|
774
770
|
}
|
|
775
771
|
|
|
772
|
+
.row-action-menu-portal {
|
|
773
|
+
position: fixed;
|
|
774
|
+
z-index: 90;
|
|
775
|
+
}
|
|
776
|
+
|
|
776
777
|
.row-action-menu button {
|
|
777
778
|
justify-content: flex-start;
|
|
778
779
|
width: 100%;
|
|
779
|
-
padding:
|
|
780
|
+
padding: 10px 12px;
|
|
780
781
|
font-size: 13px;
|
|
781
782
|
font-weight: 600;
|
|
782
783
|
color: var(--aks-brand);
|
|
@@ -793,6 +794,13 @@ button.row-action-menu-trigger:hover {
|
|
|
793
794
|
box-shadow: none;
|
|
794
795
|
}
|
|
795
796
|
|
|
797
|
+
/* Mobile tools bar + right drawer — hidden on desktop */
|
|
798
|
+
.tools-mobile-bar,
|
|
799
|
+
.tools-drawer-backdrop,
|
|
800
|
+
.tools-drawer {
|
|
801
|
+
display: none;
|
|
802
|
+
}
|
|
803
|
+
|
|
796
804
|
button.row-action {
|
|
797
805
|
padding: 4px 8px;
|
|
798
806
|
font-size: 12px;
|
|
@@ -890,6 +898,95 @@ button.row-action.danger:not(:disabled):hover {
|
|
|
890
898
|
}
|
|
891
899
|
|
|
892
900
|
@media (max-width: 900px) {
|
|
901
|
+
.list-workspace {
|
|
902
|
+
gap: 10px;
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
.tools-mobile-bar {
|
|
906
|
+
display: flex;
|
|
907
|
+
align-items: center;
|
|
908
|
+
justify-content: space-between;
|
|
909
|
+
gap: 10px;
|
|
910
|
+
flex: 0 0 auto;
|
|
911
|
+
min-height: 48px;
|
|
912
|
+
padding: 6px 8px 6px 10px;
|
|
913
|
+
border: 1px solid var(--aks-line);
|
|
914
|
+
border-radius: var(--aks-radius);
|
|
915
|
+
background: #fff;
|
|
916
|
+
}
|
|
917
|
+
|
|
918
|
+
.tools-mobile-bar-start {
|
|
919
|
+
min-width: 0;
|
|
920
|
+
flex: 1 1 auto;
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
.tools-mobile-title {
|
|
924
|
+
margin: 0;
|
|
925
|
+
color: var(--aks-brand);
|
|
926
|
+
font-size: 13px;
|
|
927
|
+
font-weight: 700;
|
|
928
|
+
white-space: nowrap;
|
|
929
|
+
overflow: hidden;
|
|
930
|
+
text-overflow: ellipsis;
|
|
931
|
+
}
|
|
932
|
+
|
|
933
|
+
button.tools-mobile-add {
|
|
934
|
+
display: inline-flex;
|
|
935
|
+
align-items: center;
|
|
936
|
+
gap: 6px;
|
|
937
|
+
min-height: 36px;
|
|
938
|
+
padding: 6px 12px;
|
|
939
|
+
border-radius: var(--aks-radius);
|
|
940
|
+
background: var(--aks-brand);
|
|
941
|
+
color: #fff;
|
|
942
|
+
font-size: 13px;
|
|
943
|
+
font-weight: 600;
|
|
944
|
+
box-shadow: none;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
button.tools-mobile-add svg {
|
|
948
|
+
width: 16px;
|
|
949
|
+
height: 16px;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
button.tools-mobile-add:hover {
|
|
953
|
+
transform: none;
|
|
954
|
+
background: #2a3546;
|
|
955
|
+
box-shadow: none;
|
|
956
|
+
}
|
|
957
|
+
|
|
958
|
+
button.tools-mobile-toggle {
|
|
959
|
+
position: relative;
|
|
960
|
+
display: inline-flex;
|
|
961
|
+
align-items: center;
|
|
962
|
+
gap: 6px;
|
|
963
|
+
min-height: 36px;
|
|
964
|
+
padding: 6px 12px;
|
|
965
|
+
border: 1px solid var(--aks-line);
|
|
966
|
+
border-radius: var(--aks-radius);
|
|
967
|
+
background: #faf9f7;
|
|
968
|
+
color: var(--aks-brand);
|
|
969
|
+
font-size: 13px;
|
|
970
|
+
font-weight: 600;
|
|
971
|
+
box-shadow: none;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
button.tools-mobile-toggle svg {
|
|
975
|
+
width: 16px;
|
|
976
|
+
height: 16px;
|
|
977
|
+
}
|
|
978
|
+
|
|
979
|
+
button.tools-mobile-toggle:hover {
|
|
980
|
+
transform: none;
|
|
981
|
+
background: #f0eeea;
|
|
982
|
+
box-shadow: none;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
button.tools-mobile-toggle .filter-badge {
|
|
986
|
+
position: static;
|
|
987
|
+
margin-left: 2px;
|
|
988
|
+
}
|
|
989
|
+
|
|
893
990
|
.list-body {
|
|
894
991
|
flex-direction: column;
|
|
895
992
|
}
|
|
@@ -899,30 +996,101 @@ button.row-action.danger:not(:disabled):hover {
|
|
|
899
996
|
flex-direction: column;
|
|
900
997
|
}
|
|
901
998
|
|
|
902
|
-
|
|
903
|
-
.side-rail
|
|
904
|
-
|
|
905
|
-
width: 100%;
|
|
906
|
-
flex-basis: auto;
|
|
999
|
+
/* Desktop side-rail becomes a right drawer on small screens */
|
|
1000
|
+
.list-body > .side-rail {
|
|
1001
|
+
display: none;
|
|
907
1002
|
}
|
|
908
1003
|
|
|
909
|
-
.
|
|
910
|
-
flex-direction: row;
|
|
911
|
-
align-items: center;
|
|
1004
|
+
.preview-panel {
|
|
912
1005
|
width: 100%;
|
|
913
1006
|
flex-basis: auto;
|
|
914
|
-
order:
|
|
1007
|
+
order: 2;
|
|
915
1008
|
}
|
|
916
1009
|
|
|
917
|
-
.
|
|
918
|
-
display:
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
1010
|
+
.tools-drawer-backdrop {
|
|
1011
|
+
display: block;
|
|
1012
|
+
position: fixed;
|
|
1013
|
+
inset: 0;
|
|
1014
|
+
z-index: 55;
|
|
1015
|
+
border: 0;
|
|
1016
|
+
padding: 0;
|
|
1017
|
+
margin: 0;
|
|
1018
|
+
background: rgba(30, 39, 53, 0.42);
|
|
1019
|
+
opacity: 0;
|
|
1020
|
+
pointer-events: none;
|
|
1021
|
+
transition: opacity 160ms ease;
|
|
1022
|
+
box-shadow: none;
|
|
1023
|
+
}
|
|
1024
|
+
|
|
1025
|
+
.tools-drawer-backdrop.open {
|
|
1026
|
+
opacity: 1;
|
|
1027
|
+
pointer-events: auto;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
.tools-drawer {
|
|
1031
|
+
display: flex;
|
|
1032
|
+
flex-direction: column;
|
|
1033
|
+
position: fixed;
|
|
1034
|
+
top: 0;
|
|
1035
|
+
right: 0;
|
|
1036
|
+
bottom: 0;
|
|
1037
|
+
z-index: 60;
|
|
1038
|
+
width: min(320px, calc(100vw - 40px));
|
|
1039
|
+
background: #fff;
|
|
1040
|
+
border-left: 1px solid var(--aks-line);
|
|
1041
|
+
box-shadow: -12px 0 32px rgba(30, 39, 53, 0.18);
|
|
1042
|
+
transform: translateX(105%);
|
|
1043
|
+
transition: transform 180ms ease;
|
|
1044
|
+
pointer-events: none;
|
|
1045
|
+
}
|
|
1046
|
+
|
|
1047
|
+
.tools-drawer.open {
|
|
1048
|
+
transform: translateX(0);
|
|
1049
|
+
pointer-events: auto;
|
|
1050
|
+
}
|
|
1051
|
+
|
|
1052
|
+
.tools-drawer-head {
|
|
1053
|
+
display: flex;
|
|
1054
|
+
align-items: flex-start;
|
|
1055
|
+
justify-content: space-between;
|
|
1056
|
+
gap: 12px;
|
|
1057
|
+
flex: 0 0 auto;
|
|
1058
|
+
padding: 16px 16px 12px;
|
|
1059
|
+
border-bottom: 1px solid var(--aks-line);
|
|
1060
|
+
background: #faf9f7;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
.tools-drawer-kicker {
|
|
1064
|
+
margin: 0;
|
|
1065
|
+
color: var(--aks-accent);
|
|
1066
|
+
font-size: 11px;
|
|
1067
|
+
font-weight: 700;
|
|
1068
|
+
letter-spacing: 0.06em;
|
|
1069
|
+
text-transform: uppercase;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
.tools-drawer-head h3 {
|
|
1073
|
+
margin: 2px 0 0;
|
|
1074
|
+
color: var(--aks-brand);
|
|
1075
|
+
font-size: 16px;
|
|
1076
|
+
font-weight: 700;
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
button.tools-drawer-close {
|
|
1080
|
+
padding: 6px 10px;
|
|
1081
|
+
font-size: 12px;
|
|
1082
|
+
box-shadow: none;
|
|
1083
|
+
}
|
|
1084
|
+
|
|
1085
|
+
.tools-drawer-body {
|
|
1086
|
+
flex: 1 1 auto;
|
|
1087
|
+
min-height: 0;
|
|
1088
|
+
overflow: auto;
|
|
1089
|
+
padding: 14px;
|
|
922
1090
|
}
|
|
923
1091
|
|
|
924
|
-
.side-rail
|
|
925
|
-
|
|
1092
|
+
.tools-drawer-body .side-rail-body {
|
|
1093
|
+
padding: 0;
|
|
926
1094
|
}
|
|
927
1095
|
|
|
928
1096
|
.table-card-bar {
|
package/src/theme/primitives.css
CHANGED
|
@@ -38,7 +38,9 @@ button.side-rail-icon:hover,
|
|
|
38
38
|
button.side-rail-columns-toggle:hover,
|
|
39
39
|
button.filter-clear:hover,
|
|
40
40
|
button.snackbar-close:hover,
|
|
41
|
-
button.nav-drawer-close:hover
|
|
41
|
+
button.nav-drawer-close:hover,
|
|
42
|
+
button.tools-mobile-toggle:hover,
|
|
43
|
+
button.tools-drawer-close:hover {
|
|
42
44
|
transform: none;
|
|
43
45
|
}
|
|
44
46
|
|