@crystallize/design-system 1.16.4 → 1.16.5
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 +6 -0
- package/dist/chunk-NIH5ZMPE.mjs +8 -0
- package/dist/index.css +173 -5
- package/dist/index.d.ts +54 -10
- package/dist/index.js +31440 -1331
- package/dist/index.mjs +2420 -1138
- package/dist/parser-babel-B7AMC4UT.mjs +8379 -0
- package/dist/parser-html-URMUOK6U.mjs +3222 -0
- package/dist/parser-postcss-AN2EJ77H.mjs +5621 -0
- package/dist/standalone-AR2ENVE7.mjs +11618 -0
- package/package.json +4 -2
- package/src/action-menu/action-item.tsx +1 -1
- package/src/action-menu/action-menu.css +2 -2
- package/src/action-menu/action-menu.tsx +3 -2
- package/src/dropdown-menu/dropdown-menu.css +31 -0
- package/src/iconography/Icon.stories.tsx +4 -4
- package/src/iconography/app.tsx +23 -10
- package/src/iconography/billing-payments.tsx +8 -8
- package/src/iconography/cancel.tsx +1 -9
- package/src/iconography/catalogue.tsx +24 -4
- package/src/iconography/choice.tsx +112 -0
- package/src/iconography/chunk.tsx +65 -0
- package/src/iconography/dashboard.tsx +13 -10
- package/src/iconography/date.tsx +114 -0
- package/src/iconography/document.tsx +15 -3
- package/src/iconography/file-upload.tsx +43 -0
- package/src/iconography/fixed-property-table.tsx +35 -0
- package/src/iconography/grid-relation.tsx +67 -0
- package/src/iconography/image.tsx +21 -15
- package/src/iconography/index.ts +53 -7
- package/src/iconography/location.tsx +35 -0
- package/src/iconography/magnifier.tsx +40 -0
- package/src/iconography/numeric.tsx +36 -0
- package/src/iconography/paragraph-collection.tsx +69 -0
- package/src/iconography/percentage.tsx +18 -9
- package/src/iconography/plug.tsx +38 -0
- package/src/iconography/price-tag.tsx +20 -11
- package/src/iconography/product.tsx +39 -10
- package/src/iconography/property-table.tsx +36 -0
- package/src/iconography/relation.tsx +25 -0
- package/src/iconography/rich-text.tsx +47 -0
- package/src/iconography/selection.tsx +78 -0
- package/src/iconography/settings.tsx +7 -16
- package/src/iconography/singleline.tsx +25 -0
- package/src/iconography/split.tsx +54 -0
- package/src/iconography/stock-location.tsx +31 -33
- package/src/iconography/switch.tsx +56 -0
- package/src/iconography/video.tsx +46 -0
- package/src/index.ts +2 -0
- package/src/rich-text-editor/rich-text-editor.css +0 -1
- package/src/switch/Switch.stories.tsx +62 -0
- package/src/switch/index.tsx +3 -0
- package/src/switch/switch.css +13 -0
- package/src/switch/switch.tsx +12 -0
- package/src/tooltip/Tooltip.stories.tsx +62 -0
- package/src/tooltip/index.tsx +3 -0
- package/src/tooltip/tooltip.css +7 -0
- package/src/tooltip/tooltip.tsx +38 -0
- package/tailwind.config.cjs +1 -0
package/CHANGELOG.md
CHANGED
package/dist/index.css
CHANGED
|
@@ -552,6 +552,9 @@ button {
|
|
|
552
552
|
margin-top: 1.5rem;
|
|
553
553
|
margin-bottom: 1.5rem;
|
|
554
554
|
}
|
|
555
|
+
.mb-9 {
|
|
556
|
+
margin-bottom: 2.25rem;
|
|
557
|
+
}
|
|
555
558
|
.mt-2 {
|
|
556
559
|
margin-top: 0.5rem;
|
|
557
560
|
}
|
|
@@ -591,6 +594,9 @@ button {
|
|
|
591
594
|
.h-24 {
|
|
592
595
|
height: 6rem;
|
|
593
596
|
}
|
|
597
|
+
.h-36 {
|
|
598
|
+
height: 9rem;
|
|
599
|
+
}
|
|
594
600
|
.h-6 {
|
|
595
601
|
height: 1.5rem;
|
|
596
602
|
}
|
|
@@ -603,6 +609,12 @@ button {
|
|
|
603
609
|
.w-1\/2 {
|
|
604
610
|
width: 50%;
|
|
605
611
|
}
|
|
612
|
+
.w-1\/4 {
|
|
613
|
+
width: 25%;
|
|
614
|
+
}
|
|
615
|
+
.w-36 {
|
|
616
|
+
width: 9rem;
|
|
617
|
+
}
|
|
606
618
|
.w-6 {
|
|
607
619
|
width: 1.5rem;
|
|
608
620
|
}
|
|
@@ -612,12 +624,18 @@ button {
|
|
|
612
624
|
.w-\[8px\] {
|
|
613
625
|
width: 8px;
|
|
614
626
|
}
|
|
627
|
+
.w-full {
|
|
628
|
+
width: 100%;
|
|
629
|
+
}
|
|
615
630
|
.min-w-\[44px\] {
|
|
616
631
|
min-width: 44px;
|
|
617
632
|
}
|
|
618
633
|
.max-w-\[1100px\] {
|
|
619
634
|
max-width: 1100px;
|
|
620
635
|
}
|
|
636
|
+
.max-w-xs {
|
|
637
|
+
max-width: 20rem;
|
|
638
|
+
}
|
|
621
639
|
.flex-1 {
|
|
622
640
|
flex: 1 1 0%;
|
|
623
641
|
}
|
|
@@ -642,12 +660,18 @@ button {
|
|
|
642
660
|
.flex-col {
|
|
643
661
|
flex-direction: column;
|
|
644
662
|
}
|
|
663
|
+
.flex-wrap {
|
|
664
|
+
flex-wrap: wrap;
|
|
665
|
+
}
|
|
645
666
|
.items-start {
|
|
646
667
|
align-items: flex-start;
|
|
647
668
|
}
|
|
648
669
|
.items-center {
|
|
649
670
|
align-items: center;
|
|
650
671
|
}
|
|
672
|
+
.justify-start {
|
|
673
|
+
justify-content: flex-start;
|
|
674
|
+
}
|
|
651
675
|
.justify-end {
|
|
652
676
|
justify-content: flex-end;
|
|
653
677
|
}
|
|
@@ -660,6 +684,9 @@ button {
|
|
|
660
684
|
.justify-items-center {
|
|
661
685
|
justify-items: center;
|
|
662
686
|
}
|
|
687
|
+
.gap-2 {
|
|
688
|
+
gap: 0.5rem;
|
|
689
|
+
}
|
|
663
690
|
.gap-4 {
|
|
664
691
|
gap: 1rem;
|
|
665
692
|
}
|
|
@@ -732,16 +759,31 @@ button {
|
|
|
732
759
|
.p-10 {
|
|
733
760
|
padding: 2.5rem;
|
|
734
761
|
}
|
|
762
|
+
.p-2 {
|
|
763
|
+
padding: 0.5rem;
|
|
764
|
+
}
|
|
735
765
|
.p-4 {
|
|
736
766
|
padding: 1rem;
|
|
737
767
|
}
|
|
738
768
|
.p-\[5px\] {
|
|
739
769
|
padding: 5px;
|
|
740
770
|
}
|
|
771
|
+
.px-14 {
|
|
772
|
+
padding-left: 3.5rem;
|
|
773
|
+
padding-right: 3.5rem;
|
|
774
|
+
}
|
|
741
775
|
.px-3 {
|
|
742
776
|
padding-left: 0.75rem;
|
|
743
777
|
padding-right: 0.75rem;
|
|
744
778
|
}
|
|
779
|
+
.px-6 {
|
|
780
|
+
padding-left: 1.5rem;
|
|
781
|
+
padding-right: 1.5rem;
|
|
782
|
+
}
|
|
783
|
+
.py-12 {
|
|
784
|
+
padding-top: 3rem;
|
|
785
|
+
padding-bottom: 3rem;
|
|
786
|
+
}
|
|
745
787
|
.pt-14 {
|
|
746
788
|
padding-top: 3.5rem;
|
|
747
789
|
}
|
|
@@ -783,9 +825,9 @@ button {
|
|
|
783
825
|
.text-gray {
|
|
784
826
|
color: rgb(var(--c-color-gray));
|
|
785
827
|
}
|
|
786
|
-
.text-gray-
|
|
828
|
+
.text-gray-800-100 {
|
|
787
829
|
--tw-text-opacity: 1;
|
|
788
|
-
color: rgb(var(--c-color-gray-
|
|
830
|
+
color: rgb(var(--c-color-gray-800-100) / var(--tw-text-opacity));
|
|
789
831
|
}
|
|
790
832
|
.underline {
|
|
791
833
|
text-decoration-line: underline;
|
|
@@ -1095,6 +1137,7 @@ button {
|
|
|
1095
1137
|
.c-action-menu-xs .c-action-menu-dot {
|
|
1096
1138
|
height: 0.125rem;
|
|
1097
1139
|
width: 0.125rem;
|
|
1140
|
+
flex-shrink: 0;
|
|
1098
1141
|
}
|
|
1099
1142
|
.c-action-menu-sm {
|
|
1100
1143
|
height: 2rem;
|
|
@@ -1102,8 +1145,9 @@ button {
|
|
|
1102
1145
|
padding: 0.25rem;
|
|
1103
1146
|
}
|
|
1104
1147
|
.c-action-menu-sm .c-action-menu-dot {
|
|
1105
|
-
height:
|
|
1106
|
-
width:
|
|
1148
|
+
height: 3px;
|
|
1149
|
+
width: 3px;
|
|
1150
|
+
flex-shrink: 0;
|
|
1107
1151
|
}
|
|
1108
1152
|
.c-action-menu-item {
|
|
1109
1153
|
display: flex;
|
|
@@ -1165,6 +1209,8 @@ button {
|
|
|
1165
1209
|
|
|
1166
1210
|
/* src/dropdown-menu/dropdown-menu.css */
|
|
1167
1211
|
.c-dropdown-menu-content {
|
|
1212
|
+
animation-duration: 0.4s;
|
|
1213
|
+
animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
|
|
1168
1214
|
--tw-shadow: 0 2px 4px rgba(130,138,144,0.15);
|
|
1169
1215
|
--tw-shadow-colored: 0 2px 4px var(--tw-shadow-color);
|
|
1170
1216
|
box-shadow:
|
|
@@ -1172,6 +1218,12 @@ button {
|
|
|
1172
1218
|
var(--tw-ring-shadow, 0 0 #0000),
|
|
1173
1219
|
var(--tw-shadow);
|
|
1174
1220
|
}
|
|
1221
|
+
.c-dropdown-menu-content[data-side=top] {
|
|
1222
|
+
animation-name: slideUp;
|
|
1223
|
+
}
|
|
1224
|
+
.c-dropdown-menu-content[data-side=bottom] {
|
|
1225
|
+
animation-name: slideDown;
|
|
1226
|
+
}
|
|
1175
1227
|
.c-dropdown-menu-label {
|
|
1176
1228
|
--tw-bg-opacity: 1;
|
|
1177
1229
|
background-color: rgb(var(--c-color-elevate) / var(--tw-bg-opacity));
|
|
@@ -1261,6 +1313,26 @@ button {
|
|
|
1261
1313
|
border-bottom-left-radius: 0.25rem;
|
|
1262
1314
|
border-bottom-right-radius: 0.25rem;
|
|
1263
1315
|
}
|
|
1316
|
+
@keyframes slideUp {
|
|
1317
|
+
from {
|
|
1318
|
+
opacity: 0;
|
|
1319
|
+
transform: translateY(10px);
|
|
1320
|
+
}
|
|
1321
|
+
to {
|
|
1322
|
+
opacity: 1;
|
|
1323
|
+
transform: translateY(0);
|
|
1324
|
+
}
|
|
1325
|
+
}
|
|
1326
|
+
@keyframes slideDown {
|
|
1327
|
+
from {
|
|
1328
|
+
opacity: 0;
|
|
1329
|
+
transform: translateY(-10px);
|
|
1330
|
+
}
|
|
1331
|
+
to {
|
|
1332
|
+
opacity: 1;
|
|
1333
|
+
transform: translateY(0);
|
|
1334
|
+
}
|
|
1335
|
+
}
|
|
1264
1336
|
|
|
1265
1337
|
/* src/avatar/avatar.css */
|
|
1266
1338
|
.c-avatar {
|
|
@@ -2477,7 +2549,6 @@ button {
|
|
|
2477
2549
|
/* src/rich-text-editor/rich-text-editor.css */
|
|
2478
2550
|
.c-rich-text-editor {
|
|
2479
2551
|
margin: 0px auto;
|
|
2480
|
-
max-width: 1100px;
|
|
2481
2552
|
position: relative;
|
|
2482
2553
|
line-height: 1.7;
|
|
2483
2554
|
--c-rte-min-height: 150px;
|
|
@@ -3504,3 +3575,100 @@ button {
|
|
|
3504
3575
|
.CrystallizeRTEditorTheme__embedBlockFocus {
|
|
3505
3576
|
outline: 2px solid rgb(60, 132, 244);
|
|
3506
3577
|
}
|
|
3578
|
+
|
|
3579
|
+
/* src/tooltip/tooltip.css */
|
|
3580
|
+
.c-tooltip-content {
|
|
3581
|
+
user-select: none;
|
|
3582
|
+
border-radius: 0.375rem;
|
|
3583
|
+
--tw-bg-opacity: 1;
|
|
3584
|
+
background-color: rgb(255 255 255 / var(--tw-bg-opacity));
|
|
3585
|
+
padding-left: 1rem;
|
|
3586
|
+
padding-right: 1rem;
|
|
3587
|
+
padding-top: 0.5rem;
|
|
3588
|
+
padding-bottom: 0.5rem;
|
|
3589
|
+
font-size: 0.75rem;
|
|
3590
|
+
line-height: 1rem;
|
|
3591
|
+
font-weight: 500;
|
|
3592
|
+
font-style: italic;
|
|
3593
|
+
line-height: 1;
|
|
3594
|
+
--tw-text-opacity: 1;
|
|
3595
|
+
color: rgb(var(--c-color-gray-500-400) / var(--tw-text-opacity));
|
|
3596
|
+
--tw-shadow: hsl(206 22% 7%/15%) 0px 10px 18px -10px, hsl(206 22% 7%/10%) 0px 2px 20px -15px;
|
|
3597
|
+
--tw-shadow-colored: 0px 10px 18px -10px var(--tw-shadow-color), 0px 2px 20px -15px var(--tw-shadow-color);
|
|
3598
|
+
box-shadow:
|
|
3599
|
+
var(--tw-ring-offset-shadow, 0 0 #0000),
|
|
3600
|
+
var(--tw-ring-shadow, 0 0 #0000),
|
|
3601
|
+
var(--tw-shadow);
|
|
3602
|
+
transition-property:
|
|
3603
|
+
color,
|
|
3604
|
+
background-color,
|
|
3605
|
+
border-color,
|
|
3606
|
+
text-decoration-color,
|
|
3607
|
+
fill,
|
|
3608
|
+
stroke,
|
|
3609
|
+
opacity,
|
|
3610
|
+
box-shadow,
|
|
3611
|
+
transform,
|
|
3612
|
+
filter,
|
|
3613
|
+
backdrop-filter;
|
|
3614
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3615
|
+
transition-duration: 150ms;
|
|
3616
|
+
}
|
|
3617
|
+
.c-tooltip-arrow {
|
|
3618
|
+
fill: #fff;
|
|
3619
|
+
}
|
|
3620
|
+
|
|
3621
|
+
/* src/switch/switch.css */
|
|
3622
|
+
.c-switch-root {
|
|
3623
|
+
position: relative;
|
|
3624
|
+
height: 1.5rem;
|
|
3625
|
+
width: 2.75rem;
|
|
3626
|
+
cursor: pointer;
|
|
3627
|
+
border-radius: 9999px;
|
|
3628
|
+
border-width: 1px;
|
|
3629
|
+
border-style: solid;
|
|
3630
|
+
--tw-border-opacity: 1;
|
|
3631
|
+
border-color: rgb(var(--c-color-purple-200-700) / var(--tw-border-opacity));
|
|
3632
|
+
--tw-bg-opacity: 1;
|
|
3633
|
+
background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity));
|
|
3634
|
+
padding-left: 0.125rem;
|
|
3635
|
+
transition-property: all;
|
|
3636
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3637
|
+
transition-duration: 150ms;
|
|
3638
|
+
}
|
|
3639
|
+
.c-switch-root:hover {
|
|
3640
|
+
--tw-border-opacity: 1;
|
|
3641
|
+
border-color: rgb(var(--c-color-purple-300-600) / var(--tw-border-opacity));
|
|
3642
|
+
}
|
|
3643
|
+
.c-switch-root:focus {
|
|
3644
|
+
outline: 2px solid transparent;
|
|
3645
|
+
outline-offset: 2px;
|
|
3646
|
+
}
|
|
3647
|
+
.c-switch-root:disabled {
|
|
3648
|
+
opacity: 0.4;
|
|
3649
|
+
}
|
|
3650
|
+
.c-switch-root[data-state=checked] {
|
|
3651
|
+
--tw-border-opacity: 1;
|
|
3652
|
+
border-color: rgb(var(--c-color-green-400-500) / var(--tw-border-opacity));
|
|
3653
|
+
--tw-bg-opacity: 1;
|
|
3654
|
+
background-color: rgb(var(--c-color-cyan-100-800) / var(--tw-bg-opacity));
|
|
3655
|
+
}
|
|
3656
|
+
.c-switch-thumb {
|
|
3657
|
+
display: block;
|
|
3658
|
+
height: 1rem;
|
|
3659
|
+
width: 1rem;
|
|
3660
|
+
transform-origin: center;
|
|
3661
|
+
--tw-translate-x: 0.25rem;
|
|
3662
|
+
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));
|
|
3663
|
+
border-radius: 9999px;
|
|
3664
|
+
--tw-bg-opacity: 1;
|
|
3665
|
+
background-color: rgb(var(--c-color-purple-400-500) / var(--tw-bg-opacity));
|
|
3666
|
+
transition-property: all;
|
|
3667
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
3668
|
+
transition-duration: 150ms;
|
|
3669
|
+
}
|
|
3670
|
+
.c-switch-thumb[data-state=checked] {
|
|
3671
|
+
transform: translateX(20px);
|
|
3672
|
+
--tw-bg-opacity: 1;
|
|
3673
|
+
background-color: rgb(var(--c-color-green-500-400) / var(--tw-bg-opacity));
|
|
3674
|
+
}
|