@smg-automotive/components 25.11.0-chakra-v3.2 → 25.11.0-dbojovic-vsst-4320-select-menu-migration.1

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 (116) hide show
  1. package/dist/cjs/components/drawer/DrawerBody.d.ts +4 -0
  2. package/dist/cjs/components/drawer/DrawerBody.d.ts.map +1 -0
  3. package/dist/cjs/components/drawer/DrawerContent.d.ts +8 -0
  4. package/dist/cjs/components/drawer/DrawerContent.d.ts.map +1 -0
  5. package/dist/cjs/components/drawer/DrawerOverlay.d.ts +3 -0
  6. package/dist/cjs/components/drawer/DrawerOverlay.d.ts.map +1 -0
  7. package/dist/cjs/components/drawer/index.d.ts +13 -0
  8. package/dist/cjs/components/drawer/index.d.ts.map +1 -0
  9. package/dist/cjs/components/index.d.ts +2 -0
  10. package/dist/cjs/components/index.d.ts.map +1 -1
  11. package/dist/cjs/components/menu/index.d.ts +2 -1
  12. package/dist/cjs/components/menu/index.d.ts.map +1 -1
  13. package/dist/cjs/components/tab/Tab.d.ts +6 -0
  14. package/dist/cjs/components/tab/Tab.d.ts.map +1 -0
  15. package/dist/cjs/components/tab/TabList.d.ts +6 -0
  16. package/dist/cjs/components/tab/TabList.d.ts.map +1 -0
  17. package/dist/cjs/components/tab/TabPanel.d.ts +6 -0
  18. package/dist/cjs/components/tab/TabPanel.d.ts.map +1 -0
  19. package/dist/cjs/components/tab/TabPanels.d.ts +6 -0
  20. package/dist/cjs/components/tab/TabPanels.d.ts.map +1 -0
  21. package/dist/cjs/components/tab/index.d.ts +10 -0
  22. package/dist/cjs/components/tab/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +485 -4
  24. package/dist/cjs/index.js.map +1 -1
  25. package/dist/cjs/themes/shared/index.d.ts +122 -0
  26. package/dist/cjs/themes/shared/index.d.ts.map +1 -1
  27. package/dist/cjs/themes/shared/keyframes.d.ts.map +1 -1
  28. package/dist/cjs/themes/shared/slotRecipes/drawer.d.ts +46 -0
  29. package/dist/cjs/themes/shared/slotRecipes/drawer.d.ts.map +1 -0
  30. package/dist/cjs/themes/shared/slotRecipes/index.d.ts +113 -0
  31. package/dist/cjs/themes/shared/slotRecipes/index.d.ts.map +1 -1
  32. package/dist/cjs/themes/shared/slotRecipes/tabs.d.ts +69 -0
  33. package/dist/cjs/themes/shared/slotRecipes/tabs.d.ts.map +1 -0
  34. package/dist/cjs/themes/shared/tokens/animations.d.ts +3 -0
  35. package/dist/cjs/themes/shared/tokens/animations.d.ts.map +1 -1
  36. package/dist/cjs/themes/shared/tokens/durations.d.ts +3 -0
  37. package/dist/cjs/themes/shared/tokens/durations.d.ts.map +1 -1
  38. package/dist/cjs/themes/shared/tokens/sizes.d.ts +3 -0
  39. package/dist/cjs/themes/shared/tokens/sizes.d.ts.map +1 -1
  40. package/dist/esm/components/drawer/DrawerBody.d.ts +4 -0
  41. package/dist/esm/components/drawer/DrawerBody.d.ts.map +1 -0
  42. package/dist/esm/components/drawer/DrawerBody.js +11 -0
  43. package/dist/esm/components/drawer/DrawerBody.js.map +1 -0
  44. package/dist/esm/components/drawer/DrawerContent.d.ts +8 -0
  45. package/dist/esm/components/drawer/DrawerContent.d.ts.map +1 -0
  46. package/dist/esm/components/drawer/DrawerContent.js +181 -0
  47. package/dist/esm/components/drawer/DrawerContent.js.map +1 -0
  48. package/dist/esm/components/drawer/DrawerOverlay.d.ts +3 -0
  49. package/dist/esm/components/drawer/DrawerOverlay.d.ts.map +1 -0
  50. package/dist/esm/components/drawer/DrawerOverlay.js +10 -0
  51. package/dist/esm/components/drawer/DrawerOverlay.js.map +1 -0
  52. package/dist/esm/components/drawer/index.d.ts +13 -0
  53. package/dist/esm/components/drawer/index.d.ts.map +1 -0
  54. package/dist/esm/components/drawer/index.js +178 -0
  55. package/dist/esm/components/drawer/index.js.map +1 -0
  56. package/dist/esm/components/index.d.ts +2 -0
  57. package/dist/esm/components/index.d.ts.map +1 -1
  58. package/dist/esm/components/menu/index.d.ts +2 -1
  59. package/dist/esm/components/menu/index.d.ts.map +1 -1
  60. package/dist/esm/components/menu/index.js +5 -3
  61. package/dist/esm/components/menu/index.js.map +1 -1
  62. package/dist/esm/components/tab/Tab.d.ts +6 -0
  63. package/dist/esm/components/tab/Tab.d.ts.map +1 -0
  64. package/dist/esm/components/tab/Tab.js +13 -0
  65. package/dist/esm/components/tab/Tab.js.map +1 -0
  66. package/dist/esm/components/tab/TabList.d.ts +6 -0
  67. package/dist/esm/components/tab/TabList.d.ts.map +1 -0
  68. package/dist/esm/components/tab/TabList.js +18 -0
  69. package/dist/esm/components/tab/TabList.js.map +1 -0
  70. package/dist/esm/components/tab/TabPanel.d.ts +6 -0
  71. package/dist/esm/components/tab/TabPanel.d.ts.map +1 -0
  72. package/dist/esm/components/tab/TabPanel.js +13 -0
  73. package/dist/esm/components/tab/TabPanel.js.map +1 -0
  74. package/dist/esm/components/tab/TabPanels.d.ts +6 -0
  75. package/dist/esm/components/tab/TabPanels.d.ts.map +1 -0
  76. package/dist/esm/components/tab/TabPanels.js +16 -0
  77. package/dist/esm/components/tab/TabPanels.js.map +1 -0
  78. package/dist/esm/components/tab/index.d.ts +10 -0
  79. package/dist/esm/components/tab/index.d.ts.map +1 -0
  80. package/dist/esm/components/tab/index.js +17 -0
  81. package/dist/esm/components/tab/index.js.map +1 -0
  82. package/dist/esm/components/themeProvider/index.js +2 -0
  83. package/dist/esm/components/themeProvider/index.js.map +1 -1
  84. package/dist/esm/index.js +11 -0
  85. package/dist/esm/index.js.map +1 -1
  86. package/dist/esm/themes/shared/index.d.ts +122 -0
  87. package/dist/esm/themes/shared/index.d.ts.map +1 -1
  88. package/dist/esm/themes/shared/keyframes.d.ts.map +1 -1
  89. package/dist/esm/themes/shared/keyframes.js +32 -0
  90. package/dist/esm/themes/shared/keyframes.js.map +1 -1
  91. package/dist/esm/themes/shared/slotRecipes/drawer.d.ts +46 -0
  92. package/dist/esm/themes/shared/slotRecipes/drawer.d.ts.map +1 -0
  93. package/dist/esm/themes/shared/slotRecipes/drawer.js +247 -0
  94. package/dist/esm/themes/shared/slotRecipes/drawer.js.map +1 -0
  95. package/dist/esm/themes/shared/slotRecipes/index.d.ts +113 -0
  96. package/dist/esm/themes/shared/slotRecipes/index.d.ts.map +1 -1
  97. package/dist/esm/themes/shared/slotRecipes/index.js +4 -0
  98. package/dist/esm/themes/shared/slotRecipes/index.js.map +1 -1
  99. package/dist/esm/themes/shared/slotRecipes/tabs.d.ts +69 -0
  100. package/dist/esm/themes/shared/slotRecipes/tabs.d.ts.map +1 -0
  101. package/dist/esm/themes/shared/slotRecipes/tabs.js +120 -0
  102. package/dist/esm/themes/shared/slotRecipes/tabs.js.map +1 -0
  103. package/dist/esm/themes/shared/tokens/animations.d.ts +3 -0
  104. package/dist/esm/themes/shared/tokens/animations.d.ts.map +1 -1
  105. package/dist/esm/themes/shared/tokens/animations.js +2 -1
  106. package/dist/esm/themes/shared/tokens/animations.js.map +1 -1
  107. package/dist/esm/themes/shared/tokens/durations.d.ts +3 -0
  108. package/dist/esm/themes/shared/tokens/durations.d.ts.map +1 -1
  109. package/dist/esm/themes/shared/tokens/durations.js +3 -0
  110. package/dist/esm/themes/shared/tokens/durations.js.map +1 -1
  111. package/dist/esm/themes/shared/tokens/sizes.d.ts +3 -0
  112. package/dist/esm/themes/shared/tokens/sizes.d.ts.map +1 -1
  113. package/dist/esm/themes/shared/tokens/sizes.js +1 -0
  114. package/dist/esm/themes/shared/tokens/sizes.js.map +1 -1
  115. package/dist/index.d.ts +106 -3
  116. package/package.json +1 -1
package/dist/cjs/index.js CHANGED
@@ -59,6 +59,7 @@ var sizes = react$1.defineTokens.sizes({
59
59
  '6xl': { value: '20rem' },
60
60
  '7xl': { value: '30rem' },
61
61
  '8xl': { value: '45rem' },
62
+ half: { value: '50%' },
62
63
  full: { value: '100%' },
63
64
  fit: { value: 'fit-content' },
64
65
  container: {
@@ -145,6 +146,9 @@ var durations = react$1.defineTokens.durations({
145
146
  normal: {
146
147
  value: '200ms',
147
148
  },
149
+ slow: {
150
+ value: '350ms',
151
+ },
148
152
  });
149
153
 
150
154
  var cursor = react$1.defineTokens.cursor({
@@ -326,7 +330,8 @@ var aspectRatios = react$1.defineTokens.aspectRatios({
326
330
  var animations = react$1.defineTokens.animations({
327
331
  skeletonPulse: { value: 'skeletonPulse 1.6s linear infinite' },
328
332
  spin: { value: 'spin 0.8s linear infinite' },
329
- 'fade-in': { value: 'fade-in var(--fade-in-duration, 0.1s) ease-out' },
333
+ 'fade-in': { value: 'fade-in var(--fade-in-duration, 0.1s) ease-in' },
334
+ 'fade-out': { value: 'fade-out var(--fade-out-duration, 0.1s) ease-out' },
330
335
  });
331
336
 
332
337
  var textStyles = react$1.defineTextStyles({
@@ -523,6 +528,122 @@ var tooltipSlotRecipe = react$1.defineSlotRecipe({
523
528
  },
524
529
  });
525
530
 
531
+ var baseTriggerStyle$1 = react$1.defineStyle({
532
+ textStyle: 'body',
533
+ transitionProperty: 'common',
534
+ transitionDuration: 'normal',
535
+ '--tabs-border-width': '3px',
536
+ borderBottomWidth: 'var(--tabs-border-width)',
537
+ borderBottomStyle: 'var(--tabs-border-style, solid)',
538
+ borderBottomColor: 'transparent',
539
+ p: 'md',
540
+ color: 'gray.600',
541
+ cursor: 'pointer',
542
+ _selected: {
543
+ fontWeight: 'bold',
544
+ color: 'gray.900',
545
+ borderBottomWidth: 'var(--tabs-border-width)',
546
+ borderBottomStyle: 'var(--tabs-border-style, solid)',
547
+ borderBottomColor: 'currentColor',
548
+ },
549
+ _disabled: {
550
+ _active: { bg: 'none' },
551
+ cursor: 'notAllowed',
552
+ color: 'gray.300',
553
+ },
554
+ });
555
+ var baseListStyle = react$1.defineStyle({
556
+ display: 'flex',
557
+ width: 'full',
558
+ borderBottom: '1px',
559
+ borderColor: 'gray.200',
560
+ justifyContent: 'start',
561
+ });
562
+ var baseContentStyle$1 = react$1.defineStyle({
563
+ textStyle: 'body',
564
+ m: 'sm',
565
+ });
566
+ var tabsRecipe = react$1.defineSlotRecipe({
567
+ slots: ['root', 'list', 'trigger', 'content', 'contentGroup'],
568
+ className: 'chakra-tabs',
569
+ base: {
570
+ trigger: baseTriggerStyle$1,
571
+ list: baseListStyle,
572
+ content: baseContentStyle$1,
573
+ },
574
+ variants: {
575
+ variant: {
576
+ default: {
577
+ trigger: {
578
+ _selected: {
579
+ borderBottomColor: 'currentColor',
580
+ },
581
+ },
582
+ },
583
+ spaceBetween: {
584
+ list: {
585
+ justifyContent: 'space-between',
586
+ },
587
+ trigger: {
588
+ _selected: {
589
+ borderBottomColor: 'currentColor',
590
+ },
591
+ },
592
+ },
593
+ spaceAround: {
594
+ list: {
595
+ justifyContent: 'space-around',
596
+ },
597
+ trigger: {
598
+ _selected: {
599
+ borderBottomColor: 'currentColor',
600
+ },
601
+ },
602
+ },
603
+ enclosed: {
604
+ list: {
605
+ borderBottom: 'none',
606
+ },
607
+ trigger: {
608
+ color: 'gray.700',
609
+ fontWeight: 'bold',
610
+ flexBasis: 'full',
611
+ border: '1px',
612
+ borderColor: 'blue.200',
613
+ backgroundColor: 'blue.50',
614
+ borderRight: 'none',
615
+ '--tabs-border-width': '1px',
616
+ _selected: {
617
+ backgroundColor: 'transparent',
618
+ borderBottomColor: 'transparent',
619
+ },
620
+ _last: {
621
+ borderRight: '1px',
622
+ borderRightColor: 'blue.200',
623
+ },
624
+ },
625
+ content: {
626
+ m: '0',
627
+ },
628
+ },
629
+ fullWidth: {
630
+ trigger: {
631
+ flex: 1,
632
+ _selected: {
633
+ borderBottomColor: 'currentColor',
634
+ },
635
+ },
636
+ content: {
637
+ m: '0',
638
+ },
639
+ },
640
+ },
641
+ },
642
+ defaultVariants: {
643
+ variant: 'default',
644
+ },
645
+ });
646
+
526
647
  var borderColor = 'colorPalette.200';
527
648
  var subtleColor = 'colorPalette.50';
528
649
  var tableRecipe = react$1.defineSlotRecipe({
@@ -1787,6 +1908,249 @@ var energyLabelRecipe = react$1.defineSlotRecipe({
1787
1908
  },
1788
1909
  });
1789
1910
 
1911
+ var drawerRecipe = react$1.defineSlotRecipe({
1912
+ slots: ['root', 'backdrop', 'positioner', 'content', 'body', 'closeTrigger'],
1913
+ className: 'chakra-drawer',
1914
+ base: {
1915
+ root: {},
1916
+ backdrop: {
1917
+ position: 'fixed',
1918
+ insetInlineStart: '0',
1919
+ top: '0',
1920
+ width: 'full',
1921
+ height: 'full',
1922
+ zIndex: 'overlay',
1923
+ _open: {
1924
+ animation: 'fade-in',
1925
+ },
1926
+ _closed: {
1927
+ animation: 'fade-out',
1928
+ },
1929
+ },
1930
+ positioner: {
1931
+ display: 'flex',
1932
+ width: 'full',
1933
+ height: 'full',
1934
+ position: 'fixed',
1935
+ insetInlineStart: '0',
1936
+ top: '0',
1937
+ zIndex: 'modal',
1938
+ },
1939
+ content: {
1940
+ bg: 'white',
1941
+ boxShadow: 'xs',
1942
+ },
1943
+ body: {
1944
+ flex: 1,
1945
+ padding: 'lg',
1946
+ overflowY: 'auto',
1947
+ },
1948
+ closeTrigger: {
1949
+ display: 'flex',
1950
+ justifyContent: 'center',
1951
+ alignItems: 'center',
1952
+ width: 'xs',
1953
+ height: 'xs',
1954
+ borderRadius: 'sm',
1955
+ color: 'gray.800',
1956
+ fontSize: 'base',
1957
+ cursor: 'pointer',
1958
+ _hover: {
1959
+ bg: 'gray.100',
1960
+ },
1961
+ },
1962
+ },
1963
+ variants: {
1964
+ placement: {
1965
+ top: {
1966
+ positioner: {
1967
+ alignItems: 'flex-start',
1968
+ justifyContent: 'stretch',
1969
+ },
1970
+ },
1971
+ bottom: {
1972
+ positioner: {
1973
+ alignItems: 'flex-end',
1974
+ justifyContent: 'stretch',
1975
+ },
1976
+ },
1977
+ left: {
1978
+ positioner: {
1979
+ alignItems: 'stretch',
1980
+ justifyContent: 'flex-start',
1981
+ },
1982
+ },
1983
+ right: {
1984
+ positioner: {
1985
+ alignItems: 'stretch',
1986
+ justifyContent: 'flex-end',
1987
+ },
1988
+ },
1989
+ },
1990
+ size: {
1991
+ xl: {
1992
+ content: {
1993
+ width: '4xl',
1994
+ },
1995
+ },
1996
+ half: {
1997
+ content: {
1998
+ width: 'half',
1999
+ },
2000
+ },
2001
+ full: {
2002
+ content: {
2003
+ width: 'full',
2004
+ },
2005
+ },
2006
+ },
2007
+ },
2008
+ compoundVariants: [
2009
+ {
2010
+ placement: 'top',
2011
+ size: 'xl',
2012
+ css: {
2013
+ content: {
2014
+ width: 'full',
2015
+ height: '2xl',
2016
+ _open: {
2017
+ animationName: 'slide-in-from-top',
2018
+ animationDuration: 'slow',
2019
+ },
2020
+ _closed: {
2021
+ animationName: 'slide-out-to-top',
2022
+ animationDuration: 'fast',
2023
+ },
2024
+ },
2025
+ },
2026
+ },
2027
+ {
2028
+ placement: 'top',
2029
+ size: 'half',
2030
+ css: {
2031
+ content: {
2032
+ width: 'full',
2033
+ height: 'half',
2034
+ _open: {
2035
+ animationName: 'slide-in-from-top',
2036
+ animationDuration: 'slow',
2037
+ },
2038
+ _closed: {
2039
+ animationName: 'slide-out-to-top',
2040
+ animationDuration: 'fast',
2041
+ },
2042
+ },
2043
+ },
2044
+ },
2045
+ {
2046
+ placement: 'top',
2047
+ size: 'full',
2048
+ css: {
2049
+ content: {
2050
+ width: 'full',
2051
+ height: 'full',
2052
+ _open: {
2053
+ animationName: 'slide-in-from-top',
2054
+ animationDuration: 'slow',
2055
+ },
2056
+ _closed: {
2057
+ animationName: 'slide-out-to-top',
2058
+ animationDuration: 'fast',
2059
+ },
2060
+ },
2061
+ },
2062
+ },
2063
+ {
2064
+ placement: 'right',
2065
+ css: {
2066
+ content: {
2067
+ _open: {
2068
+ animationName: 'slide-in-from-right',
2069
+ animationDuration: 'slow',
2070
+ },
2071
+ _closed: {
2072
+ animationName: 'slide-out-to-right',
2073
+ animationDuration: 'fast',
2074
+ },
2075
+ },
2076
+ },
2077
+ },
2078
+ {
2079
+ placement: 'bottom',
2080
+ size: 'xl',
2081
+ css: {
2082
+ content: {
2083
+ width: 'full',
2084
+ height: '2xl',
2085
+ _open: {
2086
+ animationName: 'slide-in-from-bottom',
2087
+ animationDuration: 'slow',
2088
+ },
2089
+ _closed: {
2090
+ animationName: 'slide-out-to-bottom',
2091
+ animationDuration: 'fast',
2092
+ },
2093
+ },
2094
+ },
2095
+ },
2096
+ {
2097
+ placement: 'bottom',
2098
+ size: 'half',
2099
+ css: {
2100
+ content: {
2101
+ width: 'full',
2102
+ height: 'half',
2103
+ _open: {
2104
+ animationName: 'slide-in-from-bottom',
2105
+ animationDuration: 'slow',
2106
+ },
2107
+ _closed: {
2108
+ animationName: 'slide-out-to-bottom',
2109
+ animationDuration: 'fast',
2110
+ },
2111
+ },
2112
+ },
2113
+ },
2114
+ {
2115
+ placement: 'bottom',
2116
+ size: 'full',
2117
+ css: {
2118
+ content: {
2119
+ width: 'full',
2120
+ height: 'full',
2121
+ _open: {
2122
+ animationName: 'slide-in-from-bottom',
2123
+ animationDuration: 'slow',
2124
+ },
2125
+ _closed: {
2126
+ animationName: 'slide-out-to-bottom',
2127
+ animationDuration: 'fast',
2128
+ },
2129
+ },
2130
+ },
2131
+ },
2132
+ {
2133
+ placement: 'left',
2134
+ css: {
2135
+ content: {
2136
+ _open: {
2137
+ animationName: 'slide-in-from-left',
2138
+ animationDuration: 'slow',
2139
+ },
2140
+ _closed: {
2141
+ animationName: 'slide-out-to-left',
2142
+ animationDuration: 'fast',
2143
+ },
2144
+ },
2145
+ },
2146
+ },
2147
+ ],
2148
+ defaultVariants: {
2149
+ placement: 'right',
2150
+ size: 'half',
2151
+ },
2152
+ });
2153
+
1790
2154
  var baseStyleDialog$1 = react$1.defineStyle({
1791
2155
  _open: {
1792
2156
  animationName: 'fade-in',
@@ -2357,6 +2721,7 @@ var slotRecipes = {
2357
2721
  dialog: dialogRecipe,
2358
2722
  simpleHeader: simpleHeaderRecipe,
2359
2723
  table: tableRecipe,
2724
+ tabs: tabsRecipe,
2360
2725
  vehicleReference: vehicleReferenceRecipe,
2361
2726
  tooltip: tooltipSlotRecipe,
2362
2727
  field: fieldSlotRecipe,
@@ -2366,6 +2731,7 @@ var slotRecipes = {
2366
2731
  input: inputSlotRecipe,
2367
2732
  select: selectSlotRecipe,
2368
2733
  dialogFilter: dialogFilterRecipe,
2734
+ drawer: drawerRecipe,
2369
2735
  alert: alertRecipe,
2370
2736
  popoverFilter: popoverFilterRecipe,
2371
2737
  numberInput: numberInputRecipe,
@@ -2812,6 +3178,38 @@ var keyframes = react$1.defineKeyframes({
2812
3178
  scale: '0.95',
2813
3179
  },
2814
3180
  },
3181
+ 'slide-in-from-top': {
3182
+ from: { transform: 'translateY(-100%)' },
3183
+ to: { transform: 'translateY(0)' },
3184
+ },
3185
+ 'slide-in-from-right': {
3186
+ from: { transform: 'translateX(100%)' },
3187
+ to: { transform: 'translateX(0)' },
3188
+ },
3189
+ 'slide-in-from-bottom': {
3190
+ from: { transform: 'translateY(100%)' },
3191
+ to: { transform: 'translateY(0)' },
3192
+ },
3193
+ 'slide-in-from-left': {
3194
+ from: { transform: 'translateX(-100%)' },
3195
+ to: { transform: 'translateX(0)' },
3196
+ },
3197
+ 'slide-out-to-top': {
3198
+ from: { transform: 'translateY(0)' },
3199
+ to: { transform: 'translateY(-100%)' },
3200
+ },
3201
+ 'slide-out-to-right': {
3202
+ from: { transform: 'translateX(0)' },
3203
+ to: { transform: 'translateX(100%)' },
3204
+ },
3205
+ 'slide-out-to-bottom': {
3206
+ from: { transform: 'translateY(0)' },
3207
+ to: { transform: 'translateY(100%)' },
3208
+ },
3209
+ 'slide-out-to-left': {
3210
+ from: { transform: 'translateX(0)' },
3211
+ to: { transform: 'translateX(-100%)' },
3212
+ },
2815
3213
  });
2816
3214
 
2817
3215
  var globalCss = react$1.defineGlobalStyles({
@@ -5371,6 +5769,30 @@ var Dialog = function (_a) {
5371
5769
  primaryActionButton ? (React.createElement(Button, { variant: "primary", onClick: primaryActionButton.action, width: { base: 'full', sm: 'fit' } }, primaryActionButton.label)) : null))))))));
5372
5770
  };
5373
5771
 
5772
+ var DrawerOverlay = function (props) {
5773
+ return React.createElement(react$1.Drawer.Backdrop, __assign({}, props));
5774
+ };
5775
+
5776
+ var DrawerContent = function (props) {
5777
+ var children = props.children, withCloseButton = props.withCloseButton, drawerContentProps = __rest(props, ["children", "withCloseButton"]);
5778
+ return (React.createElement(react$1.Drawer.Positioner, null,
5779
+ React.createElement(react$1.Drawer.Content, __assign({}, drawerContentProps),
5780
+ withCloseButton ? (React.createElement(react$1.Drawer.CloseTrigger, { asChild: true, fontSize: "base" },
5781
+ React.createElement(CloseIcon, null))) : null,
5782
+ children)));
5783
+ };
5784
+
5785
+ var DrawerBody = function (props) {
5786
+ var children = props.children, drawerBodyProps = __rest(props, ["children"]);
5787
+ return React.createElement(react$1.Drawer.Body, __assign({}, drawerBodyProps), children);
5788
+ };
5789
+
5790
+ var Drawer = function (props) {
5791
+ var children = props.children, isOpen = props.isOpen, onClose = props.onClose, drawerProps = __rest(props, ["children", "isOpen", "onClose"]);
5792
+ return (React.createElement(react$1.Drawer.Root, __assign({ open: isOpen, onOpenChange: function (e) { return !e.open && onClose(); } }, drawerProps),
5793
+ React.createElement(react$1.Portal, null, children)));
5794
+ };
5795
+
5374
5796
  var Text = react$1.Text;
5375
5797
  Text.displayName = 'Text';
5376
5798
 
@@ -6677,14 +7099,16 @@ var Chip = function (_a) {
6677
7099
  Chip.displayName = 'Chip';
6678
7100
 
6679
7101
  var Menu = function (_a) {
6680
- var title = _a.title, items = _a.items, _b = _a.fontWeightTitle, fontWeightTitle = _b === void 0 ? 'regular' : _b, _c = _a.offset, offset = _c === void 0 ? [8, 0] : _c, menuColor = _a.menuColor, _d = _a.showChevron, showChevron = _d === void 0 ? true : _d, icon = _a.icon, _e = _a.iconSpacing, iconSpacing = _e === void 0 ? 'sm' : _e, placement = _a.placement;
7102
+ var title = _a.title, items = _a.items, _b = _a.fontWeightTitle, fontWeightTitle = _b === void 0 ? 'regular' : _b, _c = _a.offset, offset = _c === void 0 ? [8, 0] : _c, menuColor = _a.menuColor, menuOptionColor = _a.menuOptionColor, _d = _a.showChevron, showChevron = _d === void 0 ? true : _d, icon = _a.icon, _e = _a.iconSpacing, iconSpacing = _e === void 0 ? 'sm' : _e, placement = _a.placement;
6681
7103
  var recipe = react$1.useSlotRecipe({ key: 'menu' });
6682
7104
  var styles = recipe();
6683
7105
  var _f = offset[0], mainAxis = _f === void 0 ? 0 : _f, _g = offset[1], crossAxis = _g === void 0 ? 0 : _g;
6684
7106
  return (React.createElement(react$1.Menu.Root, { positioning: { placement: placement, offset: { mainAxis: mainAxis, crossAxis: crossAxis } } },
6685
7107
  React.createElement(react$1.Menu.Context, null, function (_a) {
6686
7108
  var open = _a.open;
6687
- return (React.createElement(react$1.Menu.Trigger, { css: styles.trigger, gap: iconSpacing, fontWeight: fontWeightTitle, color: open ? 'blue.700' : menuColor },
7109
+ // menuColor takes precedence over the open state color
7110
+ var color = menuColor || (open ? 'blue.700' : undefined);
7111
+ return (React.createElement(react$1.Menu.Trigger, { css: styles.trigger, gap: iconSpacing, fontWeight: fontWeightTitle, color: color },
6688
7112
  icon,
6689
7113
  title,
6690
7114
  showChevron ? (React.createElement(ChevronDownSmallIcon, { transition: "transform", transform: open ? 'rotate(180deg)' : 'rotate(0deg)' })) : null));
@@ -6693,7 +7117,7 @@ var Menu = function (_a) {
6693
7117
  React.createElement(react$1.Menu.Positioner, null,
6694
7118
  React.createElement(react$1.Menu.Content, { css: styles.content }, items.map(function (_a) {
6695
7119
  var onClick = _a.onClick, text = _a.text, value = _a.value;
6696
- return (React.createElement(react$1.Menu.Item, __assign({ key: "menuItem-".concat(value), value: value, onSelect: onClick, css: styles.item }, (menuColor && { color: menuColor })), text));
7120
+ return (React.createElement(react$1.Menu.Item, __assign({ key: "menuItem-".concat(value), value: value, onSelect: onClick, css: styles.item }, (menuOptionColor && { color: menuOptionColor })), text));
6697
7121
  }))))));
6698
7122
  };
6699
7123
 
@@ -7847,6 +8271,54 @@ var SimpleHeader = function (props) {
7847
8271
  React.createElement(CloseIcon, null))))))));
7848
8272
  };
7849
8273
 
8274
+ var Tab = function (_a) {
8275
+ var variant = _a.variant, children = _a.children, rest = __rest(_a, ["variant", "children"]);
8276
+ var recipe = react$1.useSlotRecipe({ key: 'tabs' });
8277
+ var styles = recipe({ variant: variant });
8278
+ return (React.createElement(react$1.Tabs.Trigger, __assign({}, rest, { css: styles.trigger }), children));
8279
+ };
8280
+
8281
+ var TabList = function (_a) {
8282
+ var variant = _a.variant, children = _a.children, rest = __rest(_a, ["variant", "children"]);
8283
+ var recipe = react$1.useSlotRecipe({ key: 'tabs' });
8284
+ var styles = recipe({ variant: variant });
8285
+ return (React.createElement(react$1.Box, { overflowX: "auto" },
8286
+ React.createElement(react$1.Tabs.List, __assign({}, rest, { css: styles.list }), React.Children.map(children, function (child) {
8287
+ return React.isValidElement(child)
8288
+ ? React.cloneElement(child, { variant: variant })
8289
+ : child;
8290
+ }))));
8291
+ };
8292
+
8293
+ var TabPanel = function (_a) {
8294
+ var variant = _a.variant, children = _a.children, rest = __rest(_a, ["variant", "children"]);
8295
+ var recipe = react$1.useSlotRecipe({ key: 'tabs' });
8296
+ var styles = recipe({ variant: variant });
8297
+ return (React.createElement(react$1.Tabs.Content, __assign({}, rest, { css: styles.content }), children));
8298
+ };
8299
+
8300
+ var TabPanels = function (_a) {
8301
+ var variant = _a.variant, children = _a.children;
8302
+ var recipe = react$1.useSlotRecipe({ key: 'tabs' });
8303
+ var styles = recipe({ variant: variant });
8304
+ return (React.createElement(react$1.Box, { css: styles.contentGroup }, React.Children.map(children, function (child) {
8305
+ return React.isValidElement(child)
8306
+ ? React.cloneElement(child, { variant: variant })
8307
+ : child;
8308
+ })));
8309
+ };
8310
+
8311
+ var Tabs = function (_a) {
8312
+ var variant = _a.variant, children = _a.children, rest = __rest(_a, ["variant", "children"]);
8313
+ var recipe = react$1.useSlotRecipe({ key: 'tabs' });
8314
+ var styles = recipe({ variant: variant });
8315
+ return (React.createElement(react$1.Tabs.Root, __assign({}, rest, { css: styles.root }), React.Children.map(children, function (child) {
8316
+ return React.isValidElement(child)
8317
+ ? React.cloneElement(child, { variant: variant })
8318
+ : child;
8319
+ })));
8320
+ };
8321
+
7850
8322
  var Body = react$1.Table.Body, Caption = react$1.Table.Caption, Cell = react$1.Table.Cell, Column = react$1.Table.Column, ColumnGroup = react$1.Table.ColumnGroup, ColumnHeader = react$1.Table.ColumnHeader, Footer = react$1.Table.Footer, Header = react$1.Table.Header, Root = react$1.Table.Root, Row = react$1.Table.Row, ScrollArea = react$1.Table.ScrollArea;
7851
8323
  Body.displayName = 'Table.Body';
7852
8324
  Caption.displayName = 'Table.Caption';
@@ -8182,6 +8654,10 @@ exports.DoubleChevronUpIcon = DoubleChevronUpIcon;
8182
8654
  exports.DoubleLineIcon = DoubleLineIcon;
8183
8655
  exports.DownloadIcon = DownloadIcon;
8184
8656
  exports.DragIcon = DragIcon;
8657
+ exports.Drawer = Drawer;
8658
+ exports.DrawerBody = DrawerBody;
8659
+ exports.DrawerContent = DrawerContent;
8660
+ exports.DrawerOverlay = DrawerOverlay;
8185
8661
  exports.DriveSystemIcon = DriveSystemIcon;
8186
8662
  exports.DriveSystemLargeIcon = DriveSystemLargeIcon;
8187
8663
  exports.DriveTypeIcon = DriveTypeIcon;
@@ -8293,6 +8769,10 @@ exports.SteeringWheelIcon = SteeringWheelIcon;
8293
8769
  exports.SuvIcon = SuvIcon;
8294
8770
  exports.SwissFlagIcon = SwissFlagIcon;
8295
8771
  exports.Switch = Switch;
8772
+ exports.Tab = Tab;
8773
+ exports.TabList = TabList;
8774
+ exports.TabPanel = TabPanel;
8775
+ exports.TabPanels = TabPanels;
8296
8776
  exports.Table = Table;
8297
8777
  exports.TableBody = Body;
8298
8778
  exports.TableCaption = Caption;
@@ -8305,6 +8785,7 @@ exports.TableHeader = Header;
8305
8785
  exports.TableRoot = Root;
8306
8786
  exports.TableRow = Row;
8307
8787
  exports.TableScrollArea = ScrollArea;
8788
+ exports.Tabs = Tabs;
8308
8789
  exports.Text = Text;
8309
8790
  exports.ThemeProvider = ThemeProvider;
8310
8791
  exports.ThreeSixtyIcon = ThreeSixtyIcon;