@smg-automotive/components 25.11.0-chakra-v3.2 → 25.11.0-chakra-v3.4

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 (120) 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 +4 -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 +491 -6
  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/menu.d.ts.map +1 -1
  33. package/dist/cjs/themes/shared/slotRecipes/tabs.d.ts +69 -0
  34. package/dist/cjs/themes/shared/slotRecipes/tabs.d.ts.map +1 -0
  35. package/dist/cjs/themes/shared/tokens/animations.d.ts +3 -0
  36. package/dist/cjs/themes/shared/tokens/animations.d.ts.map +1 -1
  37. package/dist/cjs/themes/shared/tokens/durations.d.ts +3 -0
  38. package/dist/cjs/themes/shared/tokens/durations.d.ts.map +1 -1
  39. package/dist/cjs/themes/shared/tokens/sizes.d.ts +3 -0
  40. package/dist/cjs/themes/shared/tokens/sizes.d.ts.map +1 -1
  41. package/dist/esm/components/drawer/DrawerBody.d.ts +4 -0
  42. package/dist/esm/components/drawer/DrawerBody.d.ts.map +1 -0
  43. package/dist/esm/components/drawer/DrawerBody.js +11 -0
  44. package/dist/esm/components/drawer/DrawerBody.js.map +1 -0
  45. package/dist/esm/components/drawer/DrawerContent.d.ts +8 -0
  46. package/dist/esm/components/drawer/DrawerContent.d.ts.map +1 -0
  47. package/dist/esm/components/drawer/DrawerContent.js +181 -0
  48. package/dist/esm/components/drawer/DrawerContent.js.map +1 -0
  49. package/dist/esm/components/drawer/DrawerOverlay.d.ts +3 -0
  50. package/dist/esm/components/drawer/DrawerOverlay.d.ts.map +1 -0
  51. package/dist/esm/components/drawer/DrawerOverlay.js +10 -0
  52. package/dist/esm/components/drawer/DrawerOverlay.js.map +1 -0
  53. package/dist/esm/components/drawer/index.d.ts +13 -0
  54. package/dist/esm/components/drawer/index.d.ts.map +1 -0
  55. package/dist/esm/components/drawer/index.js +178 -0
  56. package/dist/esm/components/drawer/index.js.map +1 -0
  57. package/dist/esm/components/index.d.ts +2 -0
  58. package/dist/esm/components/index.d.ts.map +1 -1
  59. package/dist/esm/components/menu/index.d.ts +4 -1
  60. package/dist/esm/components/menu/index.d.ts.map +1 -1
  61. package/dist/esm/components/menu/index.js +12 -7
  62. package/dist/esm/components/menu/index.js.map +1 -1
  63. package/dist/esm/components/tab/Tab.d.ts +6 -0
  64. package/dist/esm/components/tab/Tab.d.ts.map +1 -0
  65. package/dist/esm/components/tab/Tab.js +13 -0
  66. package/dist/esm/components/tab/Tab.js.map +1 -0
  67. package/dist/esm/components/tab/TabList.d.ts +6 -0
  68. package/dist/esm/components/tab/TabList.d.ts.map +1 -0
  69. package/dist/esm/components/tab/TabList.js +18 -0
  70. package/dist/esm/components/tab/TabList.js.map +1 -0
  71. package/dist/esm/components/tab/TabPanel.d.ts +6 -0
  72. package/dist/esm/components/tab/TabPanel.d.ts.map +1 -0
  73. package/dist/esm/components/tab/TabPanel.js +13 -0
  74. package/dist/esm/components/tab/TabPanel.js.map +1 -0
  75. package/dist/esm/components/tab/TabPanels.d.ts +6 -0
  76. package/dist/esm/components/tab/TabPanels.d.ts.map +1 -0
  77. package/dist/esm/components/tab/TabPanels.js +16 -0
  78. package/dist/esm/components/tab/TabPanels.js.map +1 -0
  79. package/dist/esm/components/tab/index.d.ts +10 -0
  80. package/dist/esm/components/tab/index.d.ts.map +1 -0
  81. package/dist/esm/components/tab/index.js +17 -0
  82. package/dist/esm/components/tab/index.js.map +1 -0
  83. package/dist/esm/components/themeProvider/index.js +2 -0
  84. package/dist/esm/components/themeProvider/index.js.map +1 -1
  85. package/dist/esm/index.js +11 -0
  86. package/dist/esm/index.js.map +1 -1
  87. package/dist/esm/themes/shared/index.d.ts +122 -0
  88. package/dist/esm/themes/shared/index.d.ts.map +1 -1
  89. package/dist/esm/themes/shared/keyframes.d.ts.map +1 -1
  90. package/dist/esm/themes/shared/keyframes.js +32 -0
  91. package/dist/esm/themes/shared/keyframes.js.map +1 -1
  92. package/dist/esm/themes/shared/slotRecipes/drawer.d.ts +46 -0
  93. package/dist/esm/themes/shared/slotRecipes/drawer.d.ts.map +1 -0
  94. package/dist/esm/themes/shared/slotRecipes/drawer.js +247 -0
  95. package/dist/esm/themes/shared/slotRecipes/drawer.js.map +1 -0
  96. package/dist/esm/themes/shared/slotRecipes/index.d.ts +113 -0
  97. package/dist/esm/themes/shared/slotRecipes/index.d.ts.map +1 -1
  98. package/dist/esm/themes/shared/slotRecipes/index.js +4 -0
  99. package/dist/esm/themes/shared/slotRecipes/index.js.map +1 -1
  100. package/dist/esm/themes/shared/slotRecipes/menu.d.ts.map +1 -1
  101. package/dist/esm/themes/shared/slotRecipes/menu.js +1 -0
  102. package/dist/esm/themes/shared/slotRecipes/menu.js.map +1 -1
  103. package/dist/esm/themes/shared/slotRecipes/tabs.d.ts +69 -0
  104. package/dist/esm/themes/shared/slotRecipes/tabs.d.ts.map +1 -0
  105. package/dist/esm/themes/shared/slotRecipes/tabs.js +120 -0
  106. package/dist/esm/themes/shared/slotRecipes/tabs.js.map +1 -0
  107. package/dist/esm/themes/shared/tokens/animations.d.ts +3 -0
  108. package/dist/esm/themes/shared/tokens/animations.d.ts.map +1 -1
  109. package/dist/esm/themes/shared/tokens/animations.js +2 -1
  110. package/dist/esm/themes/shared/tokens/animations.js.map +1 -1
  111. package/dist/esm/themes/shared/tokens/durations.d.ts +3 -0
  112. package/dist/esm/themes/shared/tokens/durations.d.ts.map +1 -1
  113. package/dist/esm/themes/shared/tokens/durations.js +3 -0
  114. package/dist/esm/themes/shared/tokens/durations.js.map +1 -1
  115. package/dist/esm/themes/shared/tokens/sizes.d.ts +3 -0
  116. package/dist/esm/themes/shared/tokens/sizes.d.ts.map +1 -1
  117. package/dist/esm/themes/shared/tokens/sizes.js +1 -0
  118. package/dist/esm/themes/shared/tokens/sizes.js.map +1 -1
  119. package/dist/index.d.ts +108 -3
  120. 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({
@@ -1452,6 +1573,7 @@ var content = react$1.defineStyle({
1452
1573
  },
1453
1574
  });
1454
1575
  var item = react$1.defineStyle({
1576
+ display: 'flex',
1455
1577
  paddingY: 'md',
1456
1578
  paddingX: 'lg',
1457
1579
  cursor: 'pointer',
@@ -1787,6 +1909,249 @@ var energyLabelRecipe = react$1.defineSlotRecipe({
1787
1909
  },
1788
1910
  });
1789
1911
 
1912
+ var drawerRecipe = react$1.defineSlotRecipe({
1913
+ slots: ['root', 'backdrop', 'positioner', 'content', 'body', 'closeTrigger'],
1914
+ className: 'chakra-drawer',
1915
+ base: {
1916
+ root: {},
1917
+ backdrop: {
1918
+ position: 'fixed',
1919
+ insetInlineStart: '0',
1920
+ top: '0',
1921
+ width: 'full',
1922
+ height: 'full',
1923
+ zIndex: 'overlay',
1924
+ _open: {
1925
+ animation: 'fade-in',
1926
+ },
1927
+ _closed: {
1928
+ animation: 'fade-out',
1929
+ },
1930
+ },
1931
+ positioner: {
1932
+ display: 'flex',
1933
+ width: 'full',
1934
+ height: 'full',
1935
+ position: 'fixed',
1936
+ insetInlineStart: '0',
1937
+ top: '0',
1938
+ zIndex: 'modal',
1939
+ },
1940
+ content: {
1941
+ bg: 'white',
1942
+ boxShadow: 'xs',
1943
+ },
1944
+ body: {
1945
+ flex: 1,
1946
+ padding: 'lg',
1947
+ overflowY: 'auto',
1948
+ },
1949
+ closeTrigger: {
1950
+ display: 'flex',
1951
+ justifyContent: 'center',
1952
+ alignItems: 'center',
1953
+ width: 'xs',
1954
+ height: 'xs',
1955
+ borderRadius: 'sm',
1956
+ color: 'gray.800',
1957
+ fontSize: 'base',
1958
+ cursor: 'pointer',
1959
+ _hover: {
1960
+ bg: 'gray.100',
1961
+ },
1962
+ },
1963
+ },
1964
+ variants: {
1965
+ placement: {
1966
+ top: {
1967
+ positioner: {
1968
+ alignItems: 'flex-start',
1969
+ justifyContent: 'stretch',
1970
+ },
1971
+ },
1972
+ bottom: {
1973
+ positioner: {
1974
+ alignItems: 'flex-end',
1975
+ justifyContent: 'stretch',
1976
+ },
1977
+ },
1978
+ left: {
1979
+ positioner: {
1980
+ alignItems: 'stretch',
1981
+ justifyContent: 'flex-start',
1982
+ },
1983
+ },
1984
+ right: {
1985
+ positioner: {
1986
+ alignItems: 'stretch',
1987
+ justifyContent: 'flex-end',
1988
+ },
1989
+ },
1990
+ },
1991
+ size: {
1992
+ xl: {
1993
+ content: {
1994
+ width: '4xl',
1995
+ },
1996
+ },
1997
+ half: {
1998
+ content: {
1999
+ width: 'half',
2000
+ },
2001
+ },
2002
+ full: {
2003
+ content: {
2004
+ width: 'full',
2005
+ },
2006
+ },
2007
+ },
2008
+ },
2009
+ compoundVariants: [
2010
+ {
2011
+ placement: 'top',
2012
+ size: 'xl',
2013
+ css: {
2014
+ content: {
2015
+ width: 'full',
2016
+ height: '2xl',
2017
+ _open: {
2018
+ animationName: 'slide-in-from-top',
2019
+ animationDuration: 'slow',
2020
+ },
2021
+ _closed: {
2022
+ animationName: 'slide-out-to-top',
2023
+ animationDuration: 'fast',
2024
+ },
2025
+ },
2026
+ },
2027
+ },
2028
+ {
2029
+ placement: 'top',
2030
+ size: 'half',
2031
+ css: {
2032
+ content: {
2033
+ width: 'full',
2034
+ height: 'half',
2035
+ _open: {
2036
+ animationName: 'slide-in-from-top',
2037
+ animationDuration: 'slow',
2038
+ },
2039
+ _closed: {
2040
+ animationName: 'slide-out-to-top',
2041
+ animationDuration: 'fast',
2042
+ },
2043
+ },
2044
+ },
2045
+ },
2046
+ {
2047
+ placement: 'top',
2048
+ size: 'full',
2049
+ css: {
2050
+ content: {
2051
+ width: 'full',
2052
+ height: 'full',
2053
+ _open: {
2054
+ animationName: 'slide-in-from-top',
2055
+ animationDuration: 'slow',
2056
+ },
2057
+ _closed: {
2058
+ animationName: 'slide-out-to-top',
2059
+ animationDuration: 'fast',
2060
+ },
2061
+ },
2062
+ },
2063
+ },
2064
+ {
2065
+ placement: 'right',
2066
+ css: {
2067
+ content: {
2068
+ _open: {
2069
+ animationName: 'slide-in-from-right',
2070
+ animationDuration: 'slow',
2071
+ },
2072
+ _closed: {
2073
+ animationName: 'slide-out-to-right',
2074
+ animationDuration: 'fast',
2075
+ },
2076
+ },
2077
+ },
2078
+ },
2079
+ {
2080
+ placement: 'bottom',
2081
+ size: 'xl',
2082
+ css: {
2083
+ content: {
2084
+ width: 'full',
2085
+ height: '2xl',
2086
+ _open: {
2087
+ animationName: 'slide-in-from-bottom',
2088
+ animationDuration: 'slow',
2089
+ },
2090
+ _closed: {
2091
+ animationName: 'slide-out-to-bottom',
2092
+ animationDuration: 'fast',
2093
+ },
2094
+ },
2095
+ },
2096
+ },
2097
+ {
2098
+ placement: 'bottom',
2099
+ size: 'half',
2100
+ css: {
2101
+ content: {
2102
+ width: 'full',
2103
+ height: 'half',
2104
+ _open: {
2105
+ animationName: 'slide-in-from-bottom',
2106
+ animationDuration: 'slow',
2107
+ },
2108
+ _closed: {
2109
+ animationName: 'slide-out-to-bottom',
2110
+ animationDuration: 'fast',
2111
+ },
2112
+ },
2113
+ },
2114
+ },
2115
+ {
2116
+ placement: 'bottom',
2117
+ size: 'full',
2118
+ css: {
2119
+ content: {
2120
+ width: 'full',
2121
+ height: 'full',
2122
+ _open: {
2123
+ animationName: 'slide-in-from-bottom',
2124
+ animationDuration: 'slow',
2125
+ },
2126
+ _closed: {
2127
+ animationName: 'slide-out-to-bottom',
2128
+ animationDuration: 'fast',
2129
+ },
2130
+ },
2131
+ },
2132
+ },
2133
+ {
2134
+ placement: 'left',
2135
+ css: {
2136
+ content: {
2137
+ _open: {
2138
+ animationName: 'slide-in-from-left',
2139
+ animationDuration: 'slow',
2140
+ },
2141
+ _closed: {
2142
+ animationName: 'slide-out-to-left',
2143
+ animationDuration: 'fast',
2144
+ },
2145
+ },
2146
+ },
2147
+ },
2148
+ ],
2149
+ defaultVariants: {
2150
+ placement: 'right',
2151
+ size: 'half',
2152
+ },
2153
+ });
2154
+
1790
2155
  var baseStyleDialog$1 = react$1.defineStyle({
1791
2156
  _open: {
1792
2157
  animationName: 'fade-in',
@@ -2357,6 +2722,7 @@ var slotRecipes = {
2357
2722
  dialog: dialogRecipe,
2358
2723
  simpleHeader: simpleHeaderRecipe,
2359
2724
  table: tableRecipe,
2725
+ tabs: tabsRecipe,
2360
2726
  vehicleReference: vehicleReferenceRecipe,
2361
2727
  tooltip: tooltipSlotRecipe,
2362
2728
  field: fieldSlotRecipe,
@@ -2366,6 +2732,7 @@ var slotRecipes = {
2366
2732
  input: inputSlotRecipe,
2367
2733
  select: selectSlotRecipe,
2368
2734
  dialogFilter: dialogFilterRecipe,
2735
+ drawer: drawerRecipe,
2369
2736
  alert: alertRecipe,
2370
2737
  popoverFilter: popoverFilterRecipe,
2371
2738
  numberInput: numberInputRecipe,
@@ -2812,6 +3179,38 @@ var keyframes = react$1.defineKeyframes({
2812
3179
  scale: '0.95',
2813
3180
  },
2814
3181
  },
3182
+ 'slide-in-from-top': {
3183
+ from: { transform: 'translateY(-100%)' },
3184
+ to: { transform: 'translateY(0)' },
3185
+ },
3186
+ 'slide-in-from-right': {
3187
+ from: { transform: 'translateX(100%)' },
3188
+ to: { transform: 'translateX(0)' },
3189
+ },
3190
+ 'slide-in-from-bottom': {
3191
+ from: { transform: 'translateY(100%)' },
3192
+ to: { transform: 'translateY(0)' },
3193
+ },
3194
+ 'slide-in-from-left': {
3195
+ from: { transform: 'translateX(-100%)' },
3196
+ to: { transform: 'translateX(0)' },
3197
+ },
3198
+ 'slide-out-to-top': {
3199
+ from: { transform: 'translateY(0)' },
3200
+ to: { transform: 'translateY(-100%)' },
3201
+ },
3202
+ 'slide-out-to-right': {
3203
+ from: { transform: 'translateX(0)' },
3204
+ to: { transform: 'translateX(100%)' },
3205
+ },
3206
+ 'slide-out-to-bottom': {
3207
+ from: { transform: 'translateY(0)' },
3208
+ to: { transform: 'translateY(100%)' },
3209
+ },
3210
+ 'slide-out-to-left': {
3211
+ from: { transform: 'translateX(0)' },
3212
+ to: { transform: 'translateX(-100%)' },
3213
+ },
2815
3214
  });
2816
3215
 
2817
3216
  var globalCss = react$1.defineGlobalStyles({
@@ -5371,6 +5770,30 @@ var Dialog = function (_a) {
5371
5770
  primaryActionButton ? (React.createElement(Button, { variant: "primary", onClick: primaryActionButton.action, width: { base: 'full', sm: 'fit' } }, primaryActionButton.label)) : null))))))));
5372
5771
  };
5373
5772
 
5773
+ var DrawerOverlay = function (props) {
5774
+ return React.createElement(react$1.Drawer.Backdrop, __assign({}, props));
5775
+ };
5776
+
5777
+ var DrawerContent = function (props) {
5778
+ var children = props.children, withCloseButton = props.withCloseButton, drawerContentProps = __rest(props, ["children", "withCloseButton"]);
5779
+ return (React.createElement(react$1.Drawer.Positioner, null,
5780
+ React.createElement(react$1.Drawer.Content, __assign({}, drawerContentProps),
5781
+ withCloseButton ? (React.createElement(react$1.Drawer.CloseTrigger, { asChild: true, fontSize: "base" },
5782
+ React.createElement(CloseIcon, null))) : null,
5783
+ children)));
5784
+ };
5785
+
5786
+ var DrawerBody = function (props) {
5787
+ var children = props.children, drawerBodyProps = __rest(props, ["children"]);
5788
+ return React.createElement(react$1.Drawer.Body, __assign({}, drawerBodyProps), children);
5789
+ };
5790
+
5791
+ var Drawer = function (props) {
5792
+ var children = props.children, isOpen = props.isOpen, onClose = props.onClose, drawerProps = __rest(props, ["children", "isOpen", "onClose"]);
5793
+ return (React.createElement(react$1.Drawer.Root, __assign({ open: isOpen, onOpenChange: function (e) { return !e.open && onClose(); } }, drawerProps),
5794
+ React.createElement(react$1.Portal, null, children)));
5795
+ };
5796
+
5374
5797
  var Text = react$1.Text;
5375
5798
  Text.displayName = 'Text';
5376
5799
 
@@ -6677,14 +7100,16 @@ var Chip = function (_a) {
6677
7100
  Chip.displayName = 'Chip';
6678
7101
 
6679
7102
  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;
7103
+ var title = _a.title, items = _a.items, value = _a.value, _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, _f = _a.showOptionsCheckmark, showOptionsCheckmark = _f === void 0 ? false : _f;
6681
7104
  var recipe = react$1.useSlotRecipe({ key: 'menu' });
6682
7105
  var styles = recipe();
6683
- var _f = offset[0], mainAxis = _f === void 0 ? 0 : _f, _g = offset[1], crossAxis = _g === void 0 ? 0 : _g;
7106
+ var _g = offset[0], mainAxis = _g === void 0 ? 0 : _g, _h = offset[1], crossAxis = _h === void 0 ? 0 : _h;
6684
7107
  return (React.createElement(react$1.Menu.Root, { positioning: { placement: placement, offset: { mainAxis: mainAxis, crossAxis: crossAxis } } },
6685
7108
  React.createElement(react$1.Menu.Context, null, function (_a) {
6686
7109
  var open = _a.open;
6687
- return (React.createElement(react$1.Menu.Trigger, { css: styles.trigger, gap: iconSpacing, fontWeight: fontWeightTitle, color: open ? 'blue.700' : menuColor },
7110
+ // menuColor takes precedence over the open state color
7111
+ var color = menuColor || (open ? 'blue.700' : undefined);
7112
+ return (React.createElement(react$1.Menu.Trigger, { css: styles.trigger, gap: iconSpacing, fontWeight: fontWeightTitle, color: color },
6688
7113
  icon,
6689
7114
  title,
6690
7115
  showChevron ? (React.createElement(ChevronDownSmallIcon, { transition: "transform", transform: open ? 'rotate(180deg)' : 'rotate(0deg)' })) : null));
@@ -6692,8 +7117,11 @@ var Menu = function (_a) {
6692
7117
  React.createElement(react$1.Portal, null,
6693
7118
  React.createElement(react$1.Menu.Positioner, null,
6694
7119
  React.createElement(react$1.Menu.Content, { css: styles.content }, items.map(function (_a) {
6695
- 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
+ var onClick = _a.onClick, text = _a.text, itemValue = _a.value;
7121
+ var optionColor = menuOptionColor || menuColor;
7122
+ return (React.createElement(react$1.Menu.Item, __assign({ key: "menuItem-".concat(value), value: itemValue, onSelect: onClick, css: styles.item }, (optionColor && { color: optionColor })),
7123
+ showOptionsCheckmark ? (React.createElement(react$1.Box, { w: "xs", display: "flex", justifyContent: "center", marginRight: "sm" }, itemValue === value ? React.createElement(CheckmarkIcon, null) : null)) : null,
7124
+ text));
6697
7125
  }))))));
6698
7126
  };
6699
7127
 
@@ -7847,6 +8275,54 @@ var SimpleHeader = function (props) {
7847
8275
  React.createElement(CloseIcon, null))))))));
7848
8276
  };
7849
8277
 
8278
+ var Tab = function (_a) {
8279
+ var variant = _a.variant, children = _a.children, rest = __rest(_a, ["variant", "children"]);
8280
+ var recipe = react$1.useSlotRecipe({ key: 'tabs' });
8281
+ var styles = recipe({ variant: variant });
8282
+ return (React.createElement(react$1.Tabs.Trigger, __assign({}, rest, { css: styles.trigger }), children));
8283
+ };
8284
+
8285
+ var TabList = function (_a) {
8286
+ var variant = _a.variant, children = _a.children, rest = __rest(_a, ["variant", "children"]);
8287
+ var recipe = react$1.useSlotRecipe({ key: 'tabs' });
8288
+ var styles = recipe({ variant: variant });
8289
+ return (React.createElement(react$1.Box, { overflowX: "auto" },
8290
+ React.createElement(react$1.Tabs.List, __assign({}, rest, { css: styles.list }), React.Children.map(children, function (child) {
8291
+ return React.isValidElement(child)
8292
+ ? React.cloneElement(child, { variant: variant })
8293
+ : child;
8294
+ }))));
8295
+ };
8296
+
8297
+ var TabPanel = function (_a) {
8298
+ var variant = _a.variant, children = _a.children, rest = __rest(_a, ["variant", "children"]);
8299
+ var recipe = react$1.useSlotRecipe({ key: 'tabs' });
8300
+ var styles = recipe({ variant: variant });
8301
+ return (React.createElement(react$1.Tabs.Content, __assign({}, rest, { css: styles.content }), children));
8302
+ };
8303
+
8304
+ var TabPanels = function (_a) {
8305
+ var variant = _a.variant, children = _a.children;
8306
+ var recipe = react$1.useSlotRecipe({ key: 'tabs' });
8307
+ var styles = recipe({ variant: variant });
8308
+ return (React.createElement(react$1.Box, { css: styles.contentGroup }, React.Children.map(children, function (child) {
8309
+ return React.isValidElement(child)
8310
+ ? React.cloneElement(child, { variant: variant })
8311
+ : child;
8312
+ })));
8313
+ };
8314
+
8315
+ var Tabs = function (_a) {
8316
+ var variant = _a.variant, children = _a.children, rest = __rest(_a, ["variant", "children"]);
8317
+ var recipe = react$1.useSlotRecipe({ key: 'tabs' });
8318
+ var styles = recipe({ variant: variant });
8319
+ return (React.createElement(react$1.Tabs.Root, __assign({}, rest, { css: styles.root }), React.Children.map(children, function (child) {
8320
+ return React.isValidElement(child)
8321
+ ? React.cloneElement(child, { variant: variant })
8322
+ : child;
8323
+ })));
8324
+ };
8325
+
7850
8326
  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
8327
  Body.displayName = 'Table.Body';
7852
8328
  Caption.displayName = 'Table.Caption';
@@ -8182,6 +8658,10 @@ exports.DoubleChevronUpIcon = DoubleChevronUpIcon;
8182
8658
  exports.DoubleLineIcon = DoubleLineIcon;
8183
8659
  exports.DownloadIcon = DownloadIcon;
8184
8660
  exports.DragIcon = DragIcon;
8661
+ exports.Drawer = Drawer;
8662
+ exports.DrawerBody = DrawerBody;
8663
+ exports.DrawerContent = DrawerContent;
8664
+ exports.DrawerOverlay = DrawerOverlay;
8185
8665
  exports.DriveSystemIcon = DriveSystemIcon;
8186
8666
  exports.DriveSystemLargeIcon = DriveSystemLargeIcon;
8187
8667
  exports.DriveTypeIcon = DriveTypeIcon;
@@ -8293,6 +8773,10 @@ exports.SteeringWheelIcon = SteeringWheelIcon;
8293
8773
  exports.SuvIcon = SuvIcon;
8294
8774
  exports.SwissFlagIcon = SwissFlagIcon;
8295
8775
  exports.Switch = Switch;
8776
+ exports.Tab = Tab;
8777
+ exports.TabList = TabList;
8778
+ exports.TabPanel = TabPanel;
8779
+ exports.TabPanels = TabPanels;
8296
8780
  exports.Table = Table;
8297
8781
  exports.TableBody = Body;
8298
8782
  exports.TableCaption = Caption;
@@ -8305,6 +8789,7 @@ exports.TableHeader = Header;
8305
8789
  exports.TableRoot = Root;
8306
8790
  exports.TableRow = Row;
8307
8791
  exports.TableScrollArea = ScrollArea;
8792
+ exports.Tabs = Tabs;
8308
8793
  exports.Text = Text;
8309
8794
  exports.ThemeProvider = ThemeProvider;
8310
8795
  exports.ThreeSixtyIcon = ThreeSixtyIcon;