@grandbazar/ui-baza 1.2.0 → 1.2.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/style.css CHANGED
@@ -1086,11 +1086,17 @@ textarea {
1086
1086
  }
1087
1087
  }
1088
1088
  @layer ui_baza_components {
1089
- ._dropdownPortal_ne1k6_2 {
1089
+ ._dropdownPortal_p3tdk_2 {
1090
+ --dropdown-portal-translate-x: 0%;
1091
+ --dropdown-portal-translate-y: 0%;
1092
+ --dropdown-portal-max-width: auto;
1093
+ --dropdown-portal-max-height: auto;
1094
+
1090
1095
  z-index: var(--z-index-dropdown);
1091
1096
  position: absolute;
1092
- margin-top: var(--space-md);
1093
- transform: scale(1);
1097
+ max-width: var(--dropdown-portal-max-width);
1098
+ max-height: var(--dropdown-portal-max-height);
1099
+ transform: translate(var(--dropdown-portal-translate-x), var(--dropdown-portal-translate-y)) scale(1);
1094
1100
  transform-origin: top left;
1095
1101
  opacity: 1;
1096
1102
  transition:
@@ -1098,7 +1104,7 @@ textarea {
1098
1104
  transform 0.2s ease-out;
1099
1105
 
1100
1106
  @starting-style {
1101
- transform: scale(0.95);
1107
+ transform: translate(var(--dropdown-portal-translate-x), var(--dropdown-portal-translate-y)) scale(0.95);
1102
1108
  opacity: 0;
1103
1109
  }
1104
1110
  }
@@ -1851,3 +1857,104 @@ textarea {
1851
1857
  }
1852
1858
  }
1853
1859
  }
1860
+ @layer ui_baza_components {
1861
+ ._tooltipContent_1267q_2 {
1862
+ --tooltip-content-arrow-width: 16px;
1863
+ --tooltip-content-arrow-height: 8px;
1864
+ --tooltip-content-arrow-square-side: calc(var(--tooltip-content-arrow-height) * sqrt(2));
1865
+ --tooltip-content-arrow-border-radius: 2px;
1866
+ --tooltip-content-arrow-offset-inline: var(--space-xl);
1867
+ --tooltip-content-arrow-offset-block: var(--space-lg);
1868
+
1869
+ display: flex;
1870
+ position: relative;
1871
+ flex-direction: column;
1872
+ justify-content: center;
1873
+ padding-inline: var(--space-xl);
1874
+ padding-block: var(--space-lg);
1875
+ gap: var(--space-xs);
1876
+ border-radius: var(--radius-tooltip);
1877
+ background-color: var(--color-neutral);
1878
+ color: var(--color-white);
1879
+ font-size: var(--size-sm);
1880
+ line-height: var(--line-height-md);
1881
+
1882
+ &::before {
1883
+ visibility: hidden;
1884
+ position: absolute;
1885
+ width: var(--tooltip-content-arrow-square-side);
1886
+ height: var(--tooltip-content-arrow-square-side);
1887
+ transform: rotate(45deg);
1888
+ background-color: var(--color-neutral);
1889
+ content: '';
1890
+ }
1891
+
1892
+ &[data-position='top']::before {
1893
+ visibility: visible;
1894
+ bottom: calc(var(--tooltip-content-arrow-square-side) / -2);
1895
+ border-radius: 0 0 var(--tooltip-content-arrow-border-radius) 0;
1896
+ }
1897
+
1898
+ &[data-position='bottom']::before {
1899
+ visibility: visible;
1900
+ top: calc(var(--tooltip-content-arrow-square-side) / -2);
1901
+ border-radius: var(--tooltip-content-arrow-border-radius) 0 0 0;
1902
+ }
1903
+
1904
+ &[data-position='right']::before {
1905
+ visibility: visible;
1906
+ left: calc(var(--tooltip-content-arrow-square-side) / -2);
1907
+ border-radius: 0 0 0 var(--tooltip-content-arrow-border-radius);
1908
+ }
1909
+
1910
+ &[data-position='left']::before {
1911
+ visibility: visible;
1912
+ right: calc(var(--tooltip-content-arrow-square-side) / -2);
1913
+ border-radius: 0 var(--tooltip-content-arrow-border-radius) 0 0;
1914
+ }
1915
+
1916
+ &[data-align='center'][data-position='top']::before,
1917
+ &[data-align='center'][data-position='bottom']::before {
1918
+ visibility: visible;
1919
+ left: 50%;
1920
+ transform: translateX(-50%) rotate(45deg);
1921
+ }
1922
+
1923
+ &[data-align='center'][data-position='left']::before,
1924
+ &[data-align='center'][data-position='right']::before {
1925
+ visibility: visible;
1926
+ top: 50%;
1927
+ transform: translateY(-50%) rotate(45deg);
1928
+ }
1929
+
1930
+ &[data-align='start'][data-position='top']::before,
1931
+ &[data-align='start'][data-position='bottom']::before {
1932
+ visibility: visible;
1933
+ left: var(--tooltip-content-arrow-offset-inline);
1934
+ }
1935
+
1936
+ &[data-align='end'][data-position='top']::before,
1937
+ &[data-align='end'][data-position='bottom']::before {
1938
+ visibility: visible;
1939
+ right: var(--tooltip-content-arrow-offset-inline);
1940
+ }
1941
+
1942
+ &[data-align='start'][data-position='left']::before,
1943
+ &[data-align='start'][data-position='right']::before {
1944
+ visibility: visible;
1945
+ top: var(--tooltip-content-arrow-offset-block);
1946
+ }
1947
+
1948
+ &[data-align='end'][data-position='left']::before,
1949
+ &[data-align='end'][data-position='right']::before {
1950
+ visibility: visible;
1951
+ bottom: var(--tooltip-content-arrow-offset-block);
1952
+ }
1953
+ }
1954
+
1955
+ ._tooltipTitle_1267q_96 {
1956
+ font-weight: var(--font-weight-medium);
1957
+ font-size: var(--size-md);
1958
+ line-height: var(--line-height-lg);
1959
+ }
1960
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grandbazar/ui-baza",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "A lightweight and modular UI kit for building modern, accessible web interfaces. Designed for flexibility, scalability, and developer happiness.",
5
5
  "repository": {
6
6
  "type": "git",