unifyedx-storybook-new 0.1.23 → 0.1.25
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.
|
@@ -80,15 +80,6 @@
|
|
|
80
80
|
--color-blue-900: oklch(37.9% .146 265.522);
|
|
81
81
|
--color-purple-500: oklch(62.7% .265 303.9);
|
|
82
82
|
--color-gray-50: oklch(98.5% .002 247.839);
|
|
83
|
-
--color-gray-100: oklch(96.7% .003 264.542);
|
|
84
|
-
--color-gray-200: oklch(92.8% .006 264.531);
|
|
85
|
-
--color-gray-300: oklch(87.2% .01 258.338);
|
|
86
|
-
--color-gray-400: oklch(70.7% .022 261.325);
|
|
87
|
-
--color-gray-500: oklch(55.1% .027 264.364);
|
|
88
|
-
--color-gray-600: oklch(44.6% .03 256.802);
|
|
89
|
-
--color-gray-700: oklch(37.3% .034 259.733);
|
|
90
|
-
--color-gray-800: oklch(27.8% .033 256.848);
|
|
91
|
-
--color-gray-900: oklch(21% .034 264.665);
|
|
92
83
|
--color-black: #000;
|
|
93
84
|
--color-white: #fff;
|
|
94
85
|
--spacing: .25rem;
|
|
@@ -711,7 +702,7 @@
|
|
|
711
702
|
}
|
|
712
703
|
|
|
713
704
|
:where(.divide-gray-200 > :not(:last-child)) {
|
|
714
|
-
border-color: var(--
|
|
705
|
+
border-color: var(--gray200);
|
|
715
706
|
}
|
|
716
707
|
|
|
717
708
|
.truncate {
|
|
@@ -782,15 +773,15 @@
|
|
|
782
773
|
}
|
|
783
774
|
|
|
784
775
|
.border-gray-200 {
|
|
785
|
-
border-color: var(--
|
|
776
|
+
border-color: var(--gray200);
|
|
786
777
|
}
|
|
787
778
|
|
|
788
779
|
.border-gray-300 {
|
|
789
|
-
border-color: var(--
|
|
780
|
+
border-color: var(--gray300);
|
|
790
781
|
}
|
|
791
782
|
|
|
792
783
|
.border-gray-400 {
|
|
793
|
-
border-color: var(--
|
|
784
|
+
border-color: var(--gray400);
|
|
794
785
|
}
|
|
795
786
|
|
|
796
787
|
.border-transparent {
|
|
@@ -814,11 +805,11 @@
|
|
|
814
805
|
}
|
|
815
806
|
|
|
816
807
|
.bg-gray-100 {
|
|
817
|
-
background-color: var(--
|
|
808
|
+
background-color: var(--gray100);
|
|
818
809
|
}
|
|
819
810
|
|
|
820
811
|
.bg-gray-200 {
|
|
821
|
-
background-color: var(--
|
|
812
|
+
background-color: var(--gray200);
|
|
822
813
|
}
|
|
823
814
|
|
|
824
815
|
.bg-red-100 {
|
|
@@ -977,27 +968,27 @@
|
|
|
977
968
|
}
|
|
978
969
|
|
|
979
970
|
.text-gray-400 {
|
|
980
|
-
color: var(--
|
|
971
|
+
color: var(--gray400);
|
|
981
972
|
}
|
|
982
973
|
|
|
983
974
|
.text-gray-500 {
|
|
984
|
-
color: var(--
|
|
975
|
+
color: var(--gray500);
|
|
985
976
|
}
|
|
986
977
|
|
|
987
978
|
.text-gray-600 {
|
|
988
|
-
color: var(--
|
|
979
|
+
color: var(--gray600);
|
|
989
980
|
}
|
|
990
981
|
|
|
991
982
|
.text-gray-700 {
|
|
992
|
-
color: var(--
|
|
983
|
+
color: var(--gray700);
|
|
993
984
|
}
|
|
994
985
|
|
|
995
986
|
.text-gray-800 {
|
|
996
|
-
color: var(--
|
|
987
|
+
color: var(--gray800);
|
|
997
988
|
}
|
|
998
989
|
|
|
999
990
|
.text-gray-900 {
|
|
1000
|
-
color: var(--
|
|
991
|
+
color: var(--darkgray200);
|
|
1001
992
|
}
|
|
1002
993
|
|
|
1003
994
|
.text-green-500 {
|
|
@@ -1161,7 +1152,7 @@
|
|
|
1161
1152
|
}
|
|
1162
1153
|
|
|
1163
1154
|
.hover\:bg-gray-100:hover {
|
|
1164
|
-
background-color: var(--
|
|
1155
|
+
background-color: var(--gray100);
|
|
1165
1156
|
}
|
|
1166
1157
|
|
|
1167
1158
|
.hover\:bg-white\/\[0\.6\]:hover {
|
|
@@ -1179,11 +1170,11 @@
|
|
|
1179
1170
|
}
|
|
1180
1171
|
|
|
1181
1172
|
.hover\:text-gray-800:hover {
|
|
1182
|
-
color: var(--
|
|
1173
|
+
color: var(--gray800);
|
|
1183
1174
|
}
|
|
1184
1175
|
|
|
1185
1176
|
.hover\:text-gray-900:hover {
|
|
1186
|
-
color: var(--
|
|
1177
|
+
color: var(--darkgray200);
|
|
1187
1178
|
}
|
|
1188
1179
|
|
|
1189
1180
|
.hover\:text-red-500:hover {
|
|
@@ -1250,6 +1241,11 @@
|
|
|
1250
1241
|
|
|
1251
1242
|
:root {
|
|
1252
1243
|
--font-primary: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
|
|
1244
|
+
--primaryColor: #525252;
|
|
1245
|
+
--secondaryColor: #1e1e1e;
|
|
1246
|
+
--secondaryTextColor: #1e1e1e;
|
|
1247
|
+
--textColor: #fff;
|
|
1248
|
+
--linkColor: #1c61a5;
|
|
1253
1249
|
--color-text-primary: #1a1a1a;
|
|
1254
1250
|
--color-text-secondary: #4d4d4d;
|
|
1255
1251
|
--color-text-tertiary: gray;
|
|
@@ -3930,22 +3926,35 @@ body {
|
|
|
3930
3926
|
}
|
|
3931
3927
|
|
|
3932
3928
|
.btn-primary {
|
|
3933
|
-
color:
|
|
3934
|
-
|
|
3929
|
+
background-color: var(--primaryColor);
|
|
3930
|
+
color: var(--textColor);
|
|
3931
|
+
border-color: var(--primaryColor);
|
|
3932
|
+
}
|
|
3933
|
+
|
|
3934
|
+
.btn-primary span {
|
|
3935
|
+
color: var(--textColor);
|
|
3935
3936
|
}
|
|
3936
3937
|
|
|
3937
3938
|
.btn-primary:hover {
|
|
3938
|
-
background-color:
|
|
3939
|
+
background-color: var(--primaryColor);
|
|
3940
|
+
}
|
|
3941
|
+
|
|
3942
|
+
.btn-primary:hover:not([disabled]) {
|
|
3943
|
+
filter: brightness(90%);
|
|
3939
3944
|
}
|
|
3940
3945
|
|
|
3941
3946
|
.btn-secondary {
|
|
3942
|
-
color:
|
|
3943
|
-
|
|
3944
|
-
|
|
3947
|
+
border-color: var(--secondaryColor);
|
|
3948
|
+
color: var(--secondaryTextColor);
|
|
3949
|
+
background-color: #fff;
|
|
3945
3950
|
}
|
|
3946
3951
|
|
|
3947
3952
|
.btn-secondary:hover {
|
|
3948
|
-
background-color: #
|
|
3953
|
+
background-color: #fff;
|
|
3954
|
+
}
|
|
3955
|
+
|
|
3956
|
+
.btn-secondary:hover:not([disabled]) {
|
|
3957
|
+
background-color: #f9fafb;
|
|
3949
3958
|
}
|
|
3950
3959
|
|
|
3951
3960
|
.btn-base[disabled] {
|
|
@@ -4887,23 +4896,36 @@ body {
|
|
|
4887
4896
|
|
|
4888
4897
|
/* Primary Button */
|
|
4889
4898
|
.btn-primary {
|
|
4890
|
-
background-color:
|
|
4891
|
-
color:
|
|
4899
|
+
background-color: var(--primaryColor);
|
|
4900
|
+
color: var(--textColor);
|
|
4901
|
+
border-color: var(--primaryColor);
|
|
4892
4902
|
}
|
|
4903
|
+
.btn-primary span {
|
|
4904
|
+
color: var(--textColor);
|
|
4905
|
+
}
|
|
4906
|
+
|
|
4893
4907
|
.btn-primary:hover {
|
|
4894
|
-
background-color:
|
|
4908
|
+
background-color:var(--primaryColor); /* blue-700 */
|
|
4909
|
+
}
|
|
4910
|
+
.btn-primary:hover:not([disabled]) {
|
|
4911
|
+
filter: brightness(90%);
|
|
4895
4912
|
}
|
|
4896
4913
|
|
|
4897
4914
|
/* Secondary Button */
|
|
4898
4915
|
.btn-secondary {
|
|
4899
|
-
background-color: #
|
|
4900
|
-
color:
|
|
4901
|
-
|
|
4916
|
+
background-color: #ffffff;
|
|
4917
|
+
border-color: var(--secondaryColor);
|
|
4918
|
+
color:var(--secondaryTextColor)
|
|
4902
4919
|
}
|
|
4903
4920
|
.btn-secondary:hover {
|
|
4904
|
-
background-color: #
|
|
4921
|
+
background-color: #ffffff; /* gray-300 */
|
|
4922
|
+
}
|
|
4923
|
+
|
|
4924
|
+
.btn-secondary:hover:not([disabled]) {
|
|
4925
|
+
background-color: #f9fafb;
|
|
4905
4926
|
}
|
|
4906
4927
|
|
|
4928
|
+
|
|
4907
4929
|
/* --- State Styles --- */
|
|
4908
4930
|
|
|
4909
4931
|
/* Disabled State (works for all variants) */
|
|
@@ -69276,6 +69276,7 @@ const AvatarGroupDisplay = ({
|
|
|
69276
69276
|
roles = [],
|
|
69277
69277
|
onClick
|
|
69278
69278
|
}) => {
|
|
69279
|
+
console.log("checking props", { users, groups, roles });
|
|
69279
69280
|
const avatarsToShow = users.slice(0, 2);
|
|
69280
69281
|
const textParts = [];
|
|
69281
69282
|
if (users.length > 0) {
|
|
@@ -69309,15 +69310,15 @@ const AvatarGroupDisplay = ({
|
|
|
69309
69310
|
className: "flex items-center justify-between p-3 border border-gray-300 rounded-lg hover:bg-gray-50 hover:cursor-pointer transition-colors duration-150",
|
|
69310
69311
|
children: [
|
|
69311
69312
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3 overflow-hidden", children: [
|
|
69312
|
-
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: avatarsToShow.map((
|
|
69313
|
+
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: avatarsToShow.map((item, index) => /* @__PURE__ */ jsx(
|
|
69313
69314
|
"img",
|
|
69314
69315
|
{
|
|
69315
|
-
src:
|
|
69316
|
-
alt:
|
|
69316
|
+
src: item.avatarUrl || `https://avatar.vercel.sh/${item.name}.svg?text=${item?.name?.charAt(0) || "U"}`,
|
|
69317
|
+
alt: item.name,
|
|
69317
69318
|
className: `w-10 h-10 rounded-full border-2 border-white ${index > 0 ? "-ml-4" : ""}`,
|
|
69318
69319
|
style: { zIndex: index }
|
|
69319
69320
|
},
|
|
69320
|
-
|
|
69321
|
+
item.id || index
|
|
69321
69322
|
)) }),
|
|
69322
69323
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-gray-800 truncate", children: summaryText })
|
|
69323
69324
|
] }),
|
|
@@ -70211,7 +70212,9 @@ const AddUserGroupsRolesModal = ({
|
|
|
70211
70212
|
mainEntity,
|
|
70212
70213
|
calledBy,
|
|
70213
70214
|
onClose = () => {
|
|
70214
|
-
}
|
|
70215
|
+
},
|
|
70216
|
+
showExistingShares = true,
|
|
70217
|
+
...props
|
|
70215
70218
|
}) => {
|
|
70216
70219
|
const [view, setView] = useState(ModalView.INVITE);
|
|
70217
70220
|
const [activeEntity, setActiveEntity] = useState(null);
|
|
@@ -70296,7 +70299,7 @@ const AddUserGroupsRolesModal = ({
|
|
|
70296
70299
|
onClose: handleClose,
|
|
70297
70300
|
existingShares,
|
|
70298
70301
|
calledBy,
|
|
70299
|
-
showExistingShares
|
|
70302
|
+
showExistingShares,
|
|
70300
70303
|
onFinalSubmit: (payload) => {
|
|
70301
70304
|
console.log("payload", payload);
|
|
70302
70305
|
onFinalSubmit(payload);
|