@crystallize/design-system 1.16.4 → 1.16.6

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.
Files changed (60) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/chunk-NIH5ZMPE.mjs +8 -0
  3. package/dist/index.css +174 -5
  4. package/dist/index.d.ts +54 -10
  5. package/dist/index.js +31444 -1333
  6. package/dist/index.mjs +2424 -1140
  7. package/dist/parser-babel-B7AMC4UT.mjs +8379 -0
  8. package/dist/parser-html-URMUOK6U.mjs +3222 -0
  9. package/dist/parser-postcss-AN2EJ77H.mjs +5621 -0
  10. package/dist/standalone-AR2ENVE7.mjs +11618 -0
  11. package/package.json +4 -2
  12. package/src/action-menu/action-item.tsx +1 -1
  13. package/src/action-menu/action-menu.css +2 -2
  14. package/src/action-menu/action-menu.tsx +3 -2
  15. package/src/dropdown-menu/dropdown-menu.css +31 -0
  16. package/src/iconography/Icon.stories.tsx +4 -4
  17. package/src/iconography/app.tsx +23 -10
  18. package/src/iconography/billing-payments.tsx +8 -8
  19. package/src/iconography/cancel.tsx +1 -9
  20. package/src/iconography/catalogue.tsx +24 -4
  21. package/src/iconography/choice.tsx +112 -0
  22. package/src/iconography/chunk.tsx +65 -0
  23. package/src/iconography/dashboard.tsx +13 -10
  24. package/src/iconography/date.tsx +114 -0
  25. package/src/iconography/document.tsx +15 -3
  26. package/src/iconography/file-upload.tsx +43 -0
  27. package/src/iconography/fixed-property-table.tsx +35 -0
  28. package/src/iconography/grid-relation.tsx +67 -0
  29. package/src/iconography/image.tsx +21 -15
  30. package/src/iconography/index.ts +53 -7
  31. package/src/iconography/location.tsx +35 -0
  32. package/src/iconography/magnifier.tsx +40 -0
  33. package/src/iconography/numeric.tsx +36 -0
  34. package/src/iconography/paragraph-collection.tsx +69 -0
  35. package/src/iconography/percentage.tsx +18 -9
  36. package/src/iconography/plug.tsx +38 -0
  37. package/src/iconography/price-tag.tsx +20 -11
  38. package/src/iconography/product.tsx +39 -10
  39. package/src/iconography/property-table.tsx +36 -0
  40. package/src/iconography/relation.tsx +25 -0
  41. package/src/iconography/rich-text.tsx +47 -0
  42. package/src/iconography/selection.tsx +78 -0
  43. package/src/iconography/settings.tsx +7 -16
  44. package/src/iconography/singleline.tsx +25 -0
  45. package/src/iconography/split.tsx +54 -0
  46. package/src/iconography/stock-location.tsx +31 -33
  47. package/src/iconography/switch.tsx +56 -0
  48. package/src/iconography/video.tsx +46 -0
  49. package/src/index.ts +2 -0
  50. package/src/input-with-label/input-with-label.tsx +4 -3
  51. package/src/rich-text-editor/rich-text-editor.css +0 -1
  52. package/src/switch/Switch.stories.tsx +62 -0
  53. package/src/switch/index.tsx +3 -0
  54. package/src/switch/switch.css +13 -0
  55. package/src/switch/switch.tsx +12 -0
  56. package/src/tooltip/Tooltip.stories.tsx +62 -0
  57. package/src/tooltip/index.tsx +3 -0
  58. package/src/tooltip/tooltip.css +7 -0
  59. package/src/tooltip/tooltip.tsx +38 -0
  60. package/tailwind.config.cjs +1 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @crystallize/design-system
2
2
 
3
+ ## 1.16.6
4
+
5
+ ### Patch Changes
6
+
7
+ - 37b8e62: Add z-index 100 to tooltip so it can be shown in modals also make the tooltip side prop optional with default value ot top.
8
+
9
+ ## 1.16.5
10
+
11
+ ### Patch Changes
12
+
13
+ - 0abde21: Move prettier to the dev dept since it is added to the bundle for what ever reason.
14
+
3
15
  ## 1.16.4
4
16
 
5
17
  ### Patch Changes
@@ -0,0 +1,8 @@
1
+ var __getOwnPropNames = Object.getOwnPropertyNames;
2
+ var __commonJS = (cb, mod) => function __require() {
3
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
4
+ };
5
+
6
+ export {
7
+ __commonJS
8
+ };
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-700-200 {
828
+ .text-gray-800-100 {
787
829
  --tw-text-opacity: 1;
788
- color: rgb(var(--c-color-gray-700-200) / var(--tw-text-opacity));
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: 0.25rem;
1106
- width: 0.25rem;
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 {
@@ -1687,6 +1759,49 @@ button {
1687
1759
  color: rgb(var(--c-color-gray-500-400) / var(--tw-text-opacity));
1688
1760
  }
1689
1761
 
1762
+ /* src/tooltip/tooltip.css */
1763
+ .c-tooltip-content {
1764
+ z-index: 100;
1765
+ user-select: none;
1766
+ border-radius: 0.375rem;
1767
+ --tw-bg-opacity: 1;
1768
+ background-color: rgb(255 255 255 / var(--tw-bg-opacity));
1769
+ padding-left: 1rem;
1770
+ padding-right: 1rem;
1771
+ padding-top: 0.5rem;
1772
+ padding-bottom: 0.5rem;
1773
+ font-size: 0.75rem;
1774
+ line-height: 1rem;
1775
+ font-weight: 500;
1776
+ font-style: italic;
1777
+ line-height: 1;
1778
+ --tw-text-opacity: 1;
1779
+ color: rgb(var(--c-color-gray-500-400) / var(--tw-text-opacity));
1780
+ --tw-shadow: hsl(206 22% 7%/15%) 0px 10px 18px -10px, hsl(206 22% 7%/10%) 0px 2px 20px -15px;
1781
+ --tw-shadow-colored: 0px 10px 18px -10px var(--tw-shadow-color), 0px 2px 20px -15px var(--tw-shadow-color);
1782
+ box-shadow:
1783
+ var(--tw-ring-offset-shadow, 0 0 #0000),
1784
+ var(--tw-ring-shadow, 0 0 #0000),
1785
+ var(--tw-shadow);
1786
+ transition-property:
1787
+ color,
1788
+ background-color,
1789
+ border-color,
1790
+ text-decoration-color,
1791
+ fill,
1792
+ stroke,
1793
+ opacity,
1794
+ box-shadow,
1795
+ transform,
1796
+ filter,
1797
+ backdrop-filter;
1798
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
1799
+ transition-duration: 150ms;
1800
+ }
1801
+ .c-tooltip-arrow {
1802
+ fill: #fff;
1803
+ }
1804
+
1690
1805
  /* src/progress/progress.css */
1691
1806
  .c-progress-root {
1692
1807
  position: relative;
@@ -2477,7 +2592,6 @@ button {
2477
2592
  /* src/rich-text-editor/rich-text-editor.css */
2478
2593
  .c-rich-text-editor {
2479
2594
  margin: 0px auto;
2480
- max-width: 1100px;
2481
2595
  position: relative;
2482
2596
  line-height: 1.7;
2483
2597
  --c-rte-min-height: 150px;
@@ -3504,3 +3618,58 @@ button {
3504
3618
  .CrystallizeRTEditorTheme__embedBlockFocus {
3505
3619
  outline: 2px solid rgb(60, 132, 244);
3506
3620
  }
3621
+
3622
+ /* src/switch/switch.css */
3623
+ .c-switch-root {
3624
+ position: relative;
3625
+ height: 1.5rem;
3626
+ width: 2.75rem;
3627
+ cursor: pointer;
3628
+ border-radius: 9999px;
3629
+ border-width: 1px;
3630
+ border-style: solid;
3631
+ --tw-border-opacity: 1;
3632
+ border-color: rgb(var(--c-color-purple-200-700) / var(--tw-border-opacity));
3633
+ --tw-bg-opacity: 1;
3634
+ background-color: rgb(var(--c-color-purple-50-900) / var(--tw-bg-opacity));
3635
+ padding-left: 0.125rem;
3636
+ transition-property: all;
3637
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3638
+ transition-duration: 150ms;
3639
+ }
3640
+ .c-switch-root:hover {
3641
+ --tw-border-opacity: 1;
3642
+ border-color: rgb(var(--c-color-purple-300-600) / var(--tw-border-opacity));
3643
+ }
3644
+ .c-switch-root:focus {
3645
+ outline: 2px solid transparent;
3646
+ outline-offset: 2px;
3647
+ }
3648
+ .c-switch-root:disabled {
3649
+ opacity: 0.4;
3650
+ }
3651
+ .c-switch-root[data-state=checked] {
3652
+ --tw-border-opacity: 1;
3653
+ border-color: rgb(var(--c-color-green-400-500) / var(--tw-border-opacity));
3654
+ --tw-bg-opacity: 1;
3655
+ background-color: rgb(var(--c-color-cyan-100-800) / var(--tw-bg-opacity));
3656
+ }
3657
+ .c-switch-thumb {
3658
+ display: block;
3659
+ height: 1rem;
3660
+ width: 1rem;
3661
+ transform-origin: center;
3662
+ --tw-translate-x: 0.25rem;
3663
+ 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));
3664
+ border-radius: 9999px;
3665
+ --tw-bg-opacity: 1;
3666
+ background-color: rgb(var(--c-color-purple-400-500) / var(--tw-bg-opacity));
3667
+ transition-property: all;
3668
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
3669
+ transition-duration: 150ms;
3670
+ }
3671
+ .c-switch-thumb[data-state=checked] {
3672
+ transform: translateX(20px);
3673
+ --tw-bg-opacity: 1;
3674
+ background-color: rgb(var(--c-color-green-500-400) / var(--tw-bg-opacity));
3675
+ }