@crystallize/design-system 1.16.5 → 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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
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
+
3
9
  ## 1.16.5
4
10
 
5
11
  ### Patch Changes
package/dist/index.css CHANGED
@@ -1759,6 +1759,49 @@ button {
1759
1759
  color: rgb(var(--c-color-gray-500-400) / var(--tw-text-opacity));
1760
1760
  }
1761
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
+
1762
1805
  /* src/progress/progress.css */
1763
1806
  .c-progress-root {
1764
1807
  position: relative;
@@ -3576,48 +3619,6 @@ button {
3576
3619
  outline: 2px solid rgb(60, 132, 244);
3577
3620
  }
3578
3621
 
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
3622
  /* src/switch/switch.css */
3622
3623
  .c-switch-root {
3623
3624
  position: relative;
package/dist/index.d.ts CHANGED
@@ -425,7 +425,7 @@ declare function RichTextEditor({ initialData, language, labelTranslations, ...r
425
425
  initialData?: CrystallizeRichText;
426
426
  }): JSX.Element;
427
427
 
428
- type TooltipProps = Pick<RadixTooltip.TooltipContentProps, 'side'> & {
428
+ type TooltipProps = Partial<Pick<RadixTooltip.TooltipContentProps, 'side'>> & {
429
429
  children: ReactNode;
430
430
  content: ReactNode;
431
431
  delayDuration?: number;