@dust-tt/sparkle 0.2.288 → 0.2.289-rc-2
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/cjs/index.js +59763 -59984
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/Breadcrumbs.d.ts.map +1 -1
- package/dist/esm/components/Breadcrumbs.js +7 -4
- package/dist/esm/components/Breadcrumbs.js.map +1 -1
- package/dist/esm/components/Button.d.ts +1 -1
- package/dist/esm/components/Button.d.ts.map +1 -1
- package/dist/esm/components/Button.js +3 -3
- package/dist/esm/components/Button.js.map +1 -1
- package/dist/esm/components/DataTable.d.ts +3 -3
- package/dist/esm/components/DataTable.d.ts.map +1 -1
- package/dist/esm/components/DataTable.js +5 -4
- package/dist/esm/components/DataTable.js.map +1 -1
- package/dist/esm/components/IconButton.d.ts +3 -3
- package/dist/esm/components/IconButton.d.ts.map +1 -1
- package/dist/esm/components/IconButton.js +9 -12
- package/dist/esm/components/IconButton.js.map +1 -1
- package/dist/esm/components/NewDropdown.d.ts +1 -1
- package/dist/esm/components/NewDropdown.d.ts.map +1 -1
- package/dist/esm/components/index.d.ts +1 -1
- package/dist/esm/components/index.d.ts.map +1 -1
- package/dist/esm/components/index.js +0 -1
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/stories/DataTable.stories.d.ts.map +1 -1
- package/dist/esm/stories/DataTable.stories.js +1 -1
- package/dist/esm/stories/DataTable.stories.js.map +1 -1
- package/dist/esm/stories/IconButton.stories.d.ts +11 -2
- package/dist/esm/stories/IconButton.stories.d.ts.map +1 -1
- package/dist/esm/stories/IconButton.stories.js +0 -3
- package/dist/esm/stories/IconButton.stories.js.map +1 -1
- package/dist/esm/stories/Item.stories.d.ts.map +1 -1
- package/dist/esm/stories/Item.stories.js +24 -18
- package/dist/esm/stories/Item.stories.js.map +1 -1
- package/dist/esm/stories/Tabs.stories.d.ts.map +1 -1
- package/dist/esm/stories/Tabs.stories.js.map +1 -1
- package/dist/sparkle.css +0 -106
- package/package.json +1 -1
- package/src/components/Breadcrumbs.tsx +26 -19
- package/src/components/Button.tsx +4 -4
- package/src/components/DataTable.tsx +22 -15
- package/src/components/IconButton.tsx +44 -46
- package/src/components/NewDropdown.tsx +1 -1
- package/src/components/index.ts +1 -1
- package/src/stories/DataTable.stories.tsx +6 -3
- package/src/stories/IconButton.stories.tsx +0 -3
- package/src/stories/Item.stories.tsx +70 -52
- package/src/stories/Tabs.stories.tsx +6 -1
- package/dist/esm/components/DropdownMenu.d.ts +0 -59
- package/dist/esm/components/DropdownMenu.d.ts.map +0 -1
- package/dist/esm/components/DropdownMenu.js +0 -214
- package/dist/esm/components/DropdownMenu.js.map +0 -1
- package/dist/esm/stories/DropdownMenu.stories.d.ts +0 -9
- package/dist/esm/stories/DropdownMenu.stories.d.ts.map +0 -1
- package/dist/esm/stories/DropdownMenu.stories.js +0 -223
- package/dist/esm/stories/DropdownMenu.stories.js.map +0 -1
- package/src/components/DropdownMenu.tsx +0 -521
- package/src/stories/DropdownMenu.stories.tsx +0 -518
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Item.stories.js","sourceRoot":"","sources":["../../../src/stories/Item.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"Item.stories.js","sourceRoot":"","sources":["../../../src/stories/Item.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,cAAc,EACd,MAAM,EACN,IAAI,EACJ,aAAa,EACb,eAAe,EACf,sBAAsB,EACtB,oBAAoB,EACpB,mBAAmB,EACnB,sBAAsB,EACtB,QAAQ,GACT,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEtD,IAAM,IAAI,GAAG;IACX,KAAK,EAAE,iBAAiB;IACxB,SAAS,E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AC,IAAI,IACR,KAAK,EAAC,wBAAwB,EAC9B,WAAW,EAAC,2BAA2B,EACvC,IAAI,EAAE,cAAc,GACpB,CACQ,CACR,CACF,CACP,EApNoC,CAoNpC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/Tabs.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,QAAA,MAAM,IAAI;;CAEM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,wBAAgB,UAAU,
|
|
1
|
+
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../src/stories/Tabs.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAY1B,QAAA,MAAM,IAAI;;CAEM,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,wBAAgB,UAAU,sBAuBzB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.stories.js","sourceRoot":"","sources":["../../../src/stories/Tabs.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,aAAa,EACb,WAAW,EACX,aAAa,EACb,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAE/B,IAAM,IAAI,GAAG;IACX,KAAK,EAAE,iBAAiB;CACV,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,oBAAC,IAAI,IAAC,YAAY,EAAC,SAAS;QAC1B,oBAAC,QAAQ,IAAC,SAAS,EAAC,yBAAyB;YAC3C,oBAAC,WAAW,IACV,KAAK,EAAC,SAAS,EACf,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,WAAW,GACjB;YACF,oBAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"Tabs.stories.js","sourceRoot":"","sources":["../../../src/stories/Tabs.stories.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,aAAa,EACb,WAAW,EACX,aAAa,EACb,IAAI,EACJ,WAAW,EACX,QAAQ,EACR,WAAW,GACZ,MAAM,uBAAuB,CAAC;AAE/B,IAAM,IAAI,GAAG;IACX,KAAK,EAAE,iBAAiB;CACV,CAAC;AAEjB,eAAe,IAAI,CAAC;AAEpB,MAAM,UAAU,UAAU;IACxB,OAAO,CACL,oBAAC,IAAI,IAAC,YAAY,EAAC,SAAS;QAC1B,oBAAC,QAAQ,IAAC,SAAS,EAAC,yBAAyB;YAC3C,oBAAC,WAAW,IACV,KAAK,EAAC,SAAS,EACf,KAAK,EAAC,OAAO,EACb,IAAI,EAAC,OAAO,EACZ,IAAI,EAAE,WAAW,GACjB;YACF,oBAAC,WAAW,IACV,QAAQ,QACR,KAAK,EAAC,UAAU,EAChB,KAAK,EAAC,OAAO,EACb,IAAI,EAAE,aAAa,GACnB;YACF,oBAAC,WAAW,IAAC,KAAK,EAAC,UAAU,EAAC,IAAI,EAAE,aAAa,GAAI,CAC5C;QACX,oBAAC,WAAW,IAAC,KAAK,EAAC,SAAS,YAAoB;QAChD,oBAAC,WAAW,IAAC,KAAK,EAAC,UAAU,YAAoB;QACjD,oBAAC,WAAW,IAAC,KAAK,EAAC,UAAU,eAAuB,CAC/C,CACR,CAAC;AACJ,CAAC"}
|
package/dist/sparkle.css
CHANGED
|
@@ -745,10 +745,6 @@ select {
|
|
|
745
745
|
bottom: 0px;
|
|
746
746
|
}
|
|
747
747
|
|
|
748
|
-
.s-bottom-6 {
|
|
749
|
-
bottom: 1.5rem;
|
|
750
|
-
}
|
|
751
|
-
|
|
752
748
|
.s-left-0 {
|
|
753
749
|
left: 0px;
|
|
754
750
|
}
|
|
@@ -773,10 +769,6 @@ select {
|
|
|
773
769
|
z-index: 0;
|
|
774
770
|
}
|
|
775
771
|
|
|
776
|
-
.s-z-10 {
|
|
777
|
-
z-index: 10;
|
|
778
|
-
}
|
|
779
|
-
|
|
780
772
|
.s-z-20 {
|
|
781
773
|
z-index: 20;
|
|
782
774
|
}
|
|
@@ -917,22 +909,10 @@ select {
|
|
|
917
909
|
margin-right: 0.25rem;
|
|
918
910
|
}
|
|
919
911
|
|
|
920
|
-
.s-mr-1\.5 {
|
|
921
|
-
margin-right: 0.375rem;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
912
|
.s-mr-2 {
|
|
925
913
|
margin-right: 0.5rem;
|
|
926
914
|
}
|
|
927
915
|
|
|
928
|
-
.s-mt-0 {
|
|
929
|
-
margin-top: 0px;
|
|
930
|
-
}
|
|
931
|
-
|
|
932
|
-
.s-mt-0\.5 {
|
|
933
|
-
margin-top: 0.125rem;
|
|
934
|
-
}
|
|
935
|
-
|
|
936
916
|
.s-mt-14 {
|
|
937
917
|
margin-top: 3.5rem;
|
|
938
918
|
}
|
|
@@ -974,10 +954,6 @@ select {
|
|
|
974
954
|
-webkit-line-clamp: 3;
|
|
975
955
|
}
|
|
976
956
|
|
|
977
|
-
.s-inline-block {
|
|
978
|
-
display: inline-block;
|
|
979
|
-
}
|
|
980
|
-
|
|
981
957
|
.s-flex {
|
|
982
958
|
display: flex;
|
|
983
959
|
}
|
|
@@ -1131,10 +1107,6 @@ select {
|
|
|
1131
1107
|
height: 1px;
|
|
1132
1108
|
}
|
|
1133
1109
|
|
|
1134
|
-
.s-max-h-\[344px\] {
|
|
1135
|
-
max-height: 344px;
|
|
1136
|
-
}
|
|
1137
|
-
|
|
1138
1110
|
.s-max-h-full {
|
|
1139
1111
|
max-height: 100%;
|
|
1140
1112
|
}
|
|
@@ -1369,27 +1341,6 @@ select {
|
|
|
1369
1341
|
border-collapse: collapse;
|
|
1370
1342
|
}
|
|
1371
1343
|
|
|
1372
|
-
.s-origin-bottom-left {
|
|
1373
|
-
transform-origin: bottom left;
|
|
1374
|
-
}
|
|
1375
|
-
|
|
1376
|
-
.s-origin-bottom-right {
|
|
1377
|
-
transform-origin: bottom right;
|
|
1378
|
-
}
|
|
1379
|
-
|
|
1380
|
-
.s-origin-top-left {
|
|
1381
|
-
transform-origin: top left;
|
|
1382
|
-
}
|
|
1383
|
-
|
|
1384
|
-
.s-origin-top-right {
|
|
1385
|
-
transform-origin: top right;
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
.-s-translate-y-5 {
|
|
1389
|
-
--tw-translate-y: -1.25rem;
|
|
1390
|
-
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1391
|
-
}
|
|
1392
|
-
|
|
1393
1344
|
.s-translate-x-0 {
|
|
1394
1345
|
--tw-translate-x: 0px;
|
|
1395
1346
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
@@ -1430,11 +1381,6 @@ select {
|
|
|
1430
1381
|
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1431
1382
|
}
|
|
1432
1383
|
|
|
1433
|
-
.s-translate-y-5 {
|
|
1434
|
-
--tw-translate-y: 1.25rem;
|
|
1435
|
-
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
1436
|
-
}
|
|
1437
|
-
|
|
1438
1384
|
.s-scale-100 {
|
|
1439
1385
|
--tw-scale-x: 1;
|
|
1440
1386
|
--tw-scale-y: 1;
|
|
@@ -1779,10 +1725,6 @@ select {
|
|
|
1779
1725
|
overflow: hidden;
|
|
1780
1726
|
}
|
|
1781
1727
|
|
|
1782
|
-
.s-overflow-visible {
|
|
1783
|
-
overflow: visible;
|
|
1784
|
-
}
|
|
1785
|
-
|
|
1786
1728
|
.s-overflow-x-auto {
|
|
1787
1729
|
overflow-x: auto;
|
|
1788
1730
|
}
|
|
@@ -2208,11 +2150,6 @@ select {
|
|
|
2208
2150
|
border-color: rgb(203 213 225 / 0.3);
|
|
2209
2151
|
}
|
|
2210
2152
|
|
|
2211
|
-
.s-border-structure-50 {
|
|
2212
|
-
--tw-border-opacity: 1;
|
|
2213
|
-
border-color: rgb(248 250 252 / var(--tw-border-opacity));
|
|
2214
|
-
}
|
|
2215
|
-
|
|
2216
2153
|
.s-border-teal-100 {
|
|
2217
2154
|
--tw-border-opacity: 1;
|
|
2218
2155
|
border-color: rgb(204 251 241 / var(--tw-border-opacity));
|
|
@@ -4381,10 +4318,6 @@ select {
|
|
|
4381
4318
|
transition-duration: 300ms;
|
|
4382
4319
|
}
|
|
4383
4320
|
|
|
4384
|
-
.s-duration-75 {
|
|
4385
|
-
transition-duration: 75ms;
|
|
4386
|
-
}
|
|
4387
|
-
|
|
4388
4321
|
.s-ease-in {
|
|
4389
4322
|
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
4390
4323
|
}
|
|
@@ -4445,10 +4378,6 @@ select {
|
|
|
4445
4378
|
animation-duration: 300ms;
|
|
4446
4379
|
}
|
|
4447
4380
|
|
|
4448
|
-
.s-duration-75 {
|
|
4449
|
-
animation-duration: 75ms;
|
|
4450
|
-
}
|
|
4451
|
-
|
|
4452
4381
|
.s-ease-in {
|
|
4453
4382
|
animation-timing-function: cubic-bezier(0.4, 0, 1, 1);
|
|
4454
4383
|
}
|
|
@@ -4868,16 +4797,6 @@ select {
|
|
|
4868
4797
|
color: rgb(59 130 246 / var(--tw-text-opacity));
|
|
4869
4798
|
}
|
|
4870
4799
|
|
|
4871
|
-
.s-group\/dm:hover .group-hover\/dm\:s-text-action-400 {
|
|
4872
|
-
--tw-text-opacity: 1;
|
|
4873
|
-
color: rgb(96 165 250 / var(--tw-text-opacity));
|
|
4874
|
-
}
|
|
4875
|
-
|
|
4876
|
-
.s-group\/dm:hover .group-hover\/dm\:s-text-action-500 {
|
|
4877
|
-
--tw-text-opacity: 1;
|
|
4878
|
-
color: rgb(59 130 246 / var(--tw-text-opacity));
|
|
4879
|
-
}
|
|
4880
|
-
|
|
4881
4800
|
.s-group\/item:hover .group-hover\/item\:s-text-action-400 {
|
|
4882
4801
|
--tw-text-opacity: 1;
|
|
4883
4802
|
color: rgb(96 165 250 / var(--tw-text-opacity));
|
|
@@ -5034,11 +4953,6 @@ select {
|
|
|
5034
4953
|
--tw-enter-translate-y: 0.5rem;
|
|
5035
4954
|
}
|
|
5036
4955
|
|
|
5037
|
-
:is(.s-dark .dark\:s-border-structure-100-dark) {
|
|
5038
|
-
--tw-border-opacity: 1;
|
|
5039
|
-
border-color: rgb(30 41 59 / var(--tw-border-opacity));
|
|
5040
|
-
}
|
|
5041
|
-
|
|
5042
4956
|
:is(.s-dark .dark\:s-border-structure-200-dark\/50) {
|
|
5043
4957
|
border-color: rgb(51 65 85 / 0.5);
|
|
5044
4958
|
}
|
|
@@ -5072,11 +4986,6 @@ select {
|
|
|
5072
4986
|
background-color: rgb(14 165 233 / var(--tw-bg-opacity));
|
|
5073
4987
|
}
|
|
5074
4988
|
|
|
5075
|
-
:is(.s-dark .dark\:s-bg-structure-0-dark) {
|
|
5076
|
-
--tw-bg-opacity: 1;
|
|
5077
|
-
background-color: rgb(0 0 0 / var(--tw-bg-opacity));
|
|
5078
|
-
}
|
|
5079
|
-
|
|
5080
4989
|
:is(.s-dark .dark\:s-bg-structure-200-dark) {
|
|
5081
4990
|
--tw-bg-opacity: 1;
|
|
5082
4991
|
background-color: rgb(51 65 85 / var(--tw-bg-opacity));
|
|
@@ -5206,11 +5115,6 @@ select {
|
|
|
5206
5115
|
--tw-ring-color: rgb(185 28 28 / var(--tw-ring-opacity));
|
|
5207
5116
|
}
|
|
5208
5117
|
|
|
5209
|
-
:is(.s-dark .dark\:active\:s-text-action-600:active) {
|
|
5210
|
-
--tw-text-opacity: 1;
|
|
5211
|
-
color: rgb(37 99 235 / var(--tw-text-opacity));
|
|
5212
|
-
}
|
|
5213
|
-
|
|
5214
5118
|
:is(.s-dark .dark\:active\:s-text-action-600-dark:active) {
|
|
5215
5119
|
--tw-text-opacity: 1;
|
|
5216
5120
|
color: rgb(96 165 250 / var(--tw-text-opacity));
|
|
@@ -5236,16 +5140,6 @@ select {
|
|
|
5236
5140
|
color: rgb(59 130 246 / var(--tw-text-opacity));
|
|
5237
5141
|
}
|
|
5238
5142
|
|
|
5239
|
-
:is(.s-dark .s-group\/dm:hover .dark\:group-hover\/dm\:s-text-action-400) {
|
|
5240
|
-
--tw-text-opacity: 1;
|
|
5241
|
-
color: rgb(96 165 250 / var(--tw-text-opacity));
|
|
5242
|
-
}
|
|
5243
|
-
|
|
5244
|
-
:is(.s-dark .s-group\/dm:hover .dark\:group-hover\/dm\:s-text-action-500-dark) {
|
|
5245
|
-
--tw-text-opacity: 1;
|
|
5246
|
-
color: rgb(59 130 246 / var(--tw-text-opacity));
|
|
5247
|
-
}
|
|
5248
|
-
|
|
5249
5143
|
:is(.s-dark .s-group\/item:hover .dark\:group-hover\/item\:s-text-action-600-dark) {
|
|
5250
5144
|
--tw-text-opacity: 1;
|
|
5251
5145
|
color: rgb(96 165 250 / var(--tw-text-opacity));
|
package/package.json
CHANGED
|
@@ -1,8 +1,15 @@
|
|
|
1
1
|
import type { ComponentType } from "react";
|
|
2
2
|
import React from "react";
|
|
3
3
|
|
|
4
|
-
import {
|
|
4
|
+
import { Button } from "@sparkle/components/Button";
|
|
5
5
|
import { Icon } from "@sparkle/components/Icon";
|
|
6
|
+
import {
|
|
7
|
+
NewDropdownMenu,
|
|
8
|
+
NewDropdownMenuContent,
|
|
9
|
+
NewDropdownMenuGroup,
|
|
10
|
+
NewDropdownMenuItem,
|
|
11
|
+
NewDropdownMenuTrigger,
|
|
12
|
+
} from "@sparkle/components/NewDropdown";
|
|
6
13
|
import { Tooltip } from "@sparkle/components/Tooltip";
|
|
7
14
|
import { SparkleContext, SparkleContextLinkType } from "@sparkle/context";
|
|
8
15
|
import { ChevronRightIcon } from "@sparkle/icons";
|
|
@@ -56,24 +63,24 @@ export function Breadcrumbs({ items }: BreadcrumbProps) {
|
|
|
56
63
|
>
|
|
57
64
|
<Icon visual={item.icon} className="s-text-brand" />
|
|
58
65
|
{item.label === ELLIPSIS_STRING ? (
|
|
59
|
-
<
|
|
60
|
-
<
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
item.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
</
|
|
76
|
-
</
|
|
66
|
+
<NewDropdownMenu>
|
|
67
|
+
<NewDropdownMenuTrigger asChild>
|
|
68
|
+
<Button variant="ghost" label={ELLIPSIS_STRING} />
|
|
69
|
+
</NewDropdownMenuTrigger>
|
|
70
|
+
|
|
71
|
+
<NewDropdownMenuContent align="start" className="min-w-[220px]">
|
|
72
|
+
<NewDropdownMenuGroup>
|
|
73
|
+
{itemsHidden.map((item, index) => (
|
|
74
|
+
<NewDropdownMenuItem
|
|
75
|
+
key={`breadcrumbs-hidden-${index}`}
|
|
76
|
+
href={item.href}
|
|
77
|
+
icon={item.icon}
|
|
78
|
+
label={item.label}
|
|
79
|
+
/>
|
|
80
|
+
))}
|
|
81
|
+
</NewDropdownMenuGroup>
|
|
82
|
+
</NewDropdownMenuContent>
|
|
83
|
+
</NewDropdownMenu>
|
|
77
84
|
) : (
|
|
78
85
|
<div>
|
|
79
86
|
<Link
|
|
@@ -86,7 +86,7 @@ interface MetaButtonProps
|
|
|
86
86
|
extends React.ButtonHTMLAttributes<HTMLButtonElement>,
|
|
87
87
|
VariantProps<typeof buttonVariants> {
|
|
88
88
|
asChild?: boolean;
|
|
89
|
-
variant?: ButtonVariantType;
|
|
89
|
+
variant?: ButtonVariantType | null;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
const MetaButton = React.forwardRef<HTMLButtonElement, MetaButtonProps>(
|
|
@@ -98,7 +98,7 @@ const MetaButton = React.forwardRef<HTMLButtonElement, MetaButtonProps>(
|
|
|
98
98
|
|
|
99
99
|
return (
|
|
100
100
|
<Comp
|
|
101
|
-
className={cn(buttonVariants({ variant, size }), className)}
|
|
101
|
+
className={cn(variant && buttonVariants({ variant, size }), className)}
|
|
102
102
|
ref={ref}
|
|
103
103
|
{...props}
|
|
104
104
|
>
|
|
@@ -136,8 +136,8 @@ const Button = React.forwardRef<HTMLButtonElement, ButtonProps>(
|
|
|
136
136
|
) => {
|
|
137
137
|
const buttonSize = size || "sm";
|
|
138
138
|
const spinnerVariant = isLoading
|
|
139
|
-
? spinnerVariantsMapIsLoading[variant] || "slate400"
|
|
140
|
-
: spinnerVariantsMap[variant] || "slate400";
|
|
139
|
+
? (variant && spinnerVariantsMapIsLoading[variant]) || "slate400"
|
|
140
|
+
: (variant && spinnerVariantsMap[variant]) || "slate400";
|
|
141
141
|
|
|
142
142
|
const renderIcon = (visual: React.ComponentType, extraClass = "") => (
|
|
143
143
|
<Icon visual={visual} size={buttonSize} className={extraClass} />
|
|
@@ -15,11 +15,15 @@ import {
|
|
|
15
15
|
import React, { ReactNode, useEffect, useState } from "react";
|
|
16
16
|
|
|
17
17
|
import { Avatar } from "@sparkle/components/Avatar";
|
|
18
|
-
import {
|
|
19
|
-
DropdownItemProps,
|
|
20
|
-
DropdownMenu,
|
|
21
|
-
} from "@sparkle/components/DropdownMenu";
|
|
22
18
|
import { IconButton } from "@sparkle/components/IconButton";
|
|
19
|
+
import {
|
|
20
|
+
NewDropdownMenu,
|
|
21
|
+
NewDropdownMenuContent,
|
|
22
|
+
NewDropdownMenuGroup,
|
|
23
|
+
NewDropdownMenuItem,
|
|
24
|
+
NewDropdownMenuItemProps,
|
|
25
|
+
NewDropdownMenuTrigger,
|
|
26
|
+
} from "@sparkle/components/NewDropdown";
|
|
23
27
|
import { Pagination } from "@sparkle/components/Pagination";
|
|
24
28
|
import { Tooltip } from "@sparkle/components/Tooltip";
|
|
25
29
|
import {
|
|
@@ -45,7 +49,7 @@ declare module "@tanstack/react-table" {
|
|
|
45
49
|
|
|
46
50
|
interface TBaseData {
|
|
47
51
|
onClick?: () => void;
|
|
48
|
-
moreMenuItems?:
|
|
52
|
+
moreMenuItems?: NewDropdownMenuItemProps[];
|
|
49
53
|
}
|
|
50
54
|
|
|
51
55
|
interface ColumnBreakpoint {
|
|
@@ -327,7 +331,7 @@ DataTable.Body = function Body({
|
|
|
327
331
|
interface RowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
328
332
|
children: ReactNode;
|
|
329
333
|
onClick?: () => void;
|
|
330
|
-
moreMenuItems?:
|
|
334
|
+
moreMenuItems?: NewDropdownMenuItemProps[];
|
|
331
335
|
widthClassName: string;
|
|
332
336
|
}
|
|
333
337
|
|
|
@@ -353,21 +357,24 @@ DataTable.Row = function Row({
|
|
|
353
357
|
{children}
|
|
354
358
|
<td className="s-flex s-w-8 s-cursor-pointer s-items-center s-pl-1 s-text-element-600">
|
|
355
359
|
{moreMenuItems && moreMenuItems.length > 0 && (
|
|
356
|
-
<
|
|
357
|
-
<
|
|
360
|
+
<NewDropdownMenu>
|
|
361
|
+
<NewDropdownMenuTrigger asChild>
|
|
358
362
|
<IconButton
|
|
359
363
|
icon={MoreIcon}
|
|
360
364
|
size="sm"
|
|
361
365
|
variant="outline"
|
|
362
366
|
className="s-m-1"
|
|
363
367
|
/>
|
|
364
|
-
</
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
368
|
+
</NewDropdownMenuTrigger>
|
|
369
|
+
|
|
370
|
+
<NewDropdownMenuContent align="end" className="w-[220px]">
|
|
371
|
+
<NewDropdownMenuGroup>
|
|
372
|
+
{moreMenuItems?.map((item, index) => (
|
|
373
|
+
<NewDropdownMenuItem key={index} {...item} />
|
|
374
|
+
))}
|
|
375
|
+
</NewDropdownMenuGroup>
|
|
376
|
+
</NewDropdownMenuContent>
|
|
377
|
+
</NewDropdownMenu>
|
|
371
378
|
)}
|
|
372
379
|
</td>
|
|
373
380
|
</tr>
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { cva } from "class-variance-authority";
|
|
2
2
|
import React, { ComponentType, MouseEventHandler } from "react";
|
|
3
3
|
|
|
4
|
+
import { Tooltip } from "@sparkle/components";
|
|
4
5
|
import { Button, ButtonVariantType } from "@sparkle/components/Button";
|
|
5
|
-
|
|
6
|
-
import { Icon } from "./Icon";
|
|
7
|
-
import { Tooltip } from "./Tooltip";
|
|
6
|
+
import { cn } from "@sparkle/lib/utils";
|
|
8
7
|
|
|
9
8
|
type IconButtonProps = {
|
|
10
9
|
variant?: React.ComponentProps<typeof Button>["variant"];
|
|
@@ -17,9 +16,6 @@ type IconButtonProps = {
|
|
|
17
16
|
disabled?: boolean;
|
|
18
17
|
};
|
|
19
18
|
|
|
20
|
-
const baseClasses =
|
|
21
|
-
"s-transition-all s-ease-out s-duration-300 s-cursor-pointer hover:s-scale-110";
|
|
22
|
-
|
|
23
19
|
const styleVariants: Record<ButtonVariantType, string> = {
|
|
24
20
|
primary:
|
|
25
21
|
"s-text-action-500 dark:s-text-action-500-dark" +
|
|
@@ -53,46 +49,48 @@ const styleVariants: Record<ButtonVariantType, string> = {
|
|
|
53
49
|
"s-text-element-500 dark:s-text-element-500-dark",
|
|
54
50
|
};
|
|
55
51
|
|
|
56
|
-
const iconButtonVariants = cva(
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
52
|
+
const iconButtonVariants = cva(
|
|
53
|
+
"s-transition-all s-ease-out s-duration-300 s-cursor-pointer hover:s-scale-110",
|
|
54
|
+
{
|
|
55
|
+
variants: {
|
|
56
|
+
variant: styleVariants,
|
|
57
|
+
disabled: {
|
|
58
|
+
true: "s-text-element-500 s-cursor-default hover:s-scale-100",
|
|
59
|
+
},
|
|
61
60
|
},
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
export function IconButton({
|
|
70
|
-
variant,
|
|
71
|
-
onClick,
|
|
72
|
-
disabled = false,
|
|
73
|
-
tooltip,
|
|
74
|
-
tooltipPosition,
|
|
75
|
-
icon,
|
|
76
|
-
className,
|
|
77
|
-
size,
|
|
78
|
-
}: IconButtonProps) {
|
|
79
|
-
const iconSize = size || "sm";
|
|
80
|
-
const buttonClasses = iconButtonVariants({ variant, disabled, className });
|
|
81
|
-
|
|
82
|
-
const IconButtonContent = (
|
|
83
|
-
<button className={buttonClasses} onClick={onClick} disabled={disabled}>
|
|
84
|
-
<Icon visual={icon} size={iconSize} />
|
|
85
|
-
</button>
|
|
86
|
-
);
|
|
61
|
+
defaultVariants: {
|
|
62
|
+
variant: "outline",
|
|
63
|
+
disabled: false,
|
|
64
|
+
},
|
|
65
|
+
}
|
|
66
|
+
);
|
|
87
67
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
68
|
+
const IconButton = React.forwardRef<HTMLButtonElement, IconButtonProps>(
|
|
69
|
+
(
|
|
70
|
+
{
|
|
71
|
+
variant = "outline",
|
|
72
|
+
onClick,
|
|
73
|
+
disabled = false,
|
|
74
|
+
tooltip,
|
|
75
|
+
icon,
|
|
76
|
+
className,
|
|
77
|
+
size = "sm",
|
|
78
|
+
...props
|
|
79
|
+
},
|
|
80
|
+
ref
|
|
81
|
+
) => (
|
|
82
|
+
<Button
|
|
83
|
+
tooltip={tooltip}
|
|
84
|
+
className={cn(iconButtonVariants({ variant, disabled }), className)}
|
|
85
|
+
onClick={onClick}
|
|
86
|
+
disabled={disabled}
|
|
87
|
+
ref={ref}
|
|
88
|
+
size={size}
|
|
89
|
+
icon={icon}
|
|
90
|
+
variant={null}
|
|
91
|
+
{...props}
|
|
94
92
|
/>
|
|
95
|
-
)
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
}
|
|
93
|
+
)
|
|
94
|
+
);
|
|
95
|
+
|
|
96
|
+
export { IconButton };
|
|
@@ -170,7 +170,7 @@ const NewDropdownMenuContent = React.forwardRef<
|
|
|
170
170
|
));
|
|
171
171
|
NewDropdownMenuContent.displayName = DropdownMenuPrimitive.Content.displayName;
|
|
172
172
|
|
|
173
|
-
type NewDropdownMenuItemProps = MutuallyExclusiveProps<
|
|
173
|
+
export type NewDropdownMenuItemProps = MutuallyExclusiveProps<
|
|
174
174
|
React.ComponentPropsWithoutRef<typeof DropdownMenuPrimitive.Item> & {
|
|
175
175
|
inset?: boolean;
|
|
176
176
|
variant?: ItemVariantType;
|
package/src/components/index.ts
CHANGED
|
@@ -27,7 +27,6 @@ export { ConversationMessageContent } from "./ConversationMessageContent";
|
|
|
27
27
|
export { ConversationMessageHeader } from "./ConversationMessageHeader";
|
|
28
28
|
export { DataTable } from "./DataTable";
|
|
29
29
|
export { Dialog } from "./Dialog";
|
|
30
|
-
export { DropdownMenu } from "./DropdownMenu";
|
|
31
30
|
export { default as DropzoneOverlay } from "./DropzoneOverlay";
|
|
32
31
|
export { ElementDialog } from "./ElementDialog";
|
|
33
32
|
export { ElementModal } from "./ElementModal";
|
|
@@ -51,6 +50,7 @@ export {
|
|
|
51
50
|
NavigationListItem,
|
|
52
51
|
NavigationListLabel,
|
|
53
52
|
} from "./NavigationList";
|
|
53
|
+
export type { NewDropdownMenuItemProps } from "./NewDropdown";
|
|
54
54
|
export {
|
|
55
55
|
NewDropdownMenu,
|
|
56
56
|
NewDropdownMenuCheckboxItem,
|
|
@@ -6,10 +6,13 @@ import {
|
|
|
6
6
|
} from "@tanstack/react-table";
|
|
7
7
|
import React, { useMemo } from "react";
|
|
8
8
|
|
|
9
|
-
import { DropdownItemProps } from "@sparkle/components/DropdownMenu";
|
|
10
9
|
import { Input } from "@sparkle/components/Input";
|
|
11
10
|
|
|
12
|
-
import {
|
|
11
|
+
import {
|
|
12
|
+
DataTable,
|
|
13
|
+
FolderIcon,
|
|
14
|
+
NewDropdownMenuItemProps,
|
|
15
|
+
} from "../index_with_tw_base";
|
|
13
16
|
|
|
14
17
|
const meta = {
|
|
15
18
|
title: "Components/DataTable",
|
|
@@ -29,7 +32,7 @@ type Data = {
|
|
|
29
32
|
avatarTooltipLabel?: string;
|
|
30
33
|
icon?: React.ComponentType<{ className?: string }>;
|
|
31
34
|
onClick?: () => void;
|
|
32
|
-
moreMenuItems?:
|
|
35
|
+
moreMenuItems?: NewDropdownMenuItemProps[];
|
|
33
36
|
roundedAvatar?: boolean;
|
|
34
37
|
};
|
|
35
38
|
|
|
@@ -22,7 +22,6 @@ export const IconButtonWithTooltip: Story = {
|
|
|
22
22
|
args: {
|
|
23
23
|
variant: "primary",
|
|
24
24
|
tooltip: "Your settings",
|
|
25
|
-
tooltipPosition: "bottom",
|
|
26
25
|
icon: Cog6ToothIcon,
|
|
27
26
|
},
|
|
28
27
|
};
|
|
@@ -31,7 +30,6 @@ export const IconButtonSecondary: Story = {
|
|
|
31
30
|
args: {
|
|
32
31
|
variant: "highlight",
|
|
33
32
|
tooltip: "This a highlight IconButton",
|
|
34
|
-
tooltipPosition: "bottom",
|
|
35
33
|
icon: Cog6ToothIcon,
|
|
36
34
|
},
|
|
37
35
|
};
|
|
@@ -40,7 +38,6 @@ export const IconButtonTertiary: Story = {
|
|
|
40
38
|
args: {
|
|
41
39
|
variant: "ghost",
|
|
42
40
|
tooltip: "This a ghost IconButton",
|
|
43
|
-
tooltipPosition: "bottom",
|
|
44
41
|
icon: Cog6ToothIcon,
|
|
45
42
|
},
|
|
46
43
|
};
|