blockforce-design-system 2.0.3 → 2.0.5

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 (109) hide show
  1. package/MIGRATION.md +54 -49
  2. package/lib/ai/components.json +151 -5
  3. package/lib/ai/tokens.md +1 -1
  4. package/lib/commonjs/components/charts/chart-legend/chart-legend.comp.js +1 -1
  5. package/lib/commonjs/components/charts/chart-legend/chart-legend.comp.js.map +1 -1
  6. package/lib/commonjs/components/charts/chart-legend/chart-legend.styles.js +22 -15
  7. package/lib/commonjs/components/charts/chart-legend/chart-legend.styles.js.map +1 -1
  8. package/lib/commonjs/components/data-display/calendar/calendar.styles.js +14 -13
  9. package/lib/commonjs/components/data-display/calendar/calendar.styles.js.map +1 -1
  10. package/lib/commonjs/components/data-display/matrix/matrix.styles.js +22 -21
  11. package/lib/commonjs/components/data-display/matrix/matrix.styles.js.map +1 -1
  12. package/lib/commonjs/components/data-display/side-panel/side-panel.styles.js +11 -10
  13. package/lib/commonjs/components/data-display/side-panel/side-panel.styles.js.map +1 -1
  14. package/lib/commonjs/components/forms/autocomplete/autocomplete.styles.js +8 -21
  15. package/lib/commonjs/components/forms/autocomplete/autocomplete.styles.js.map +1 -1
  16. package/lib/commonjs/components/icons/icon-box/icon-box.comp.js +1 -1
  17. package/lib/commonjs/components/icons/icon-box/icon-box.comp.js.map +1 -1
  18. package/lib/commonjs/components/icons/icon-box/icon-box.styles.js +7 -4
  19. package/lib/commonjs/components/icons/icon-box/icon-box.styles.js.map +1 -1
  20. package/lib/commonjs/components/layout/card/card.styles.js +3 -52
  21. package/lib/commonjs/components/layout/card/card.styles.js.map +1 -1
  22. package/lib/commonjs/components/layout/drawer/drawer.styles.js +7 -5
  23. package/lib/commonjs/components/layout/drawer/drawer.styles.js.map +1 -1
  24. package/lib/commonjs/components/layout/modal/modal.styles.js +7 -18
  25. package/lib/commonjs/components/layout/modal/modal.styles.js.map +1 -1
  26. package/lib/commonjs/components/layout/popover/popover.styles.js +3 -2
  27. package/lib/commonjs/components/layout/popover/popover.styles.js.map +1 -1
  28. package/lib/commonjs/components/layout/slider/slider.styles.js +5 -26
  29. package/lib/commonjs/components/layout/slider/slider.styles.js.map +1 -1
  30. package/lib/commonjs/components/layout/table/table.comp.js +1 -1
  31. package/lib/commonjs/components/layout/table/table.comp.js.map +1 -1
  32. package/lib/commonjs/components/layout/table/table.styles.js +18 -17
  33. package/lib/commonjs/components/layout/table/table.styles.js.map +1 -1
  34. package/lib/commonjs/components/layout/table-head/table-head.comp.js +1 -1
  35. package/lib/commonjs/components/layout/table-head/table-head.comp.js.map +1 -1
  36. package/lib/commonjs/components/layout/table-head/table-head.styles.js +1 -1
  37. package/lib/commonjs/components/layout/table-head/table-head.styles.js.map +1 -1
  38. package/lib/commonjs/components/layout/table-row/table-row.comp.js +1 -1
  39. package/lib/commonjs/components/layout/table-row/table-row.comp.js.map +1 -1
  40. package/lib/commonjs/components/navigation/navigation-card/navigation-card.comp.js +2 -0
  41. package/lib/commonjs/components/navigation/navigation-card/navigation-card.comp.js.map +1 -0
  42. package/lib/commonjs/components/navigation/navigation-card/navigation-card.styles.js +47 -0
  43. package/lib/commonjs/components/navigation/navigation-card/navigation-card.styles.js.map +1 -0
  44. package/lib/commonjs/components/navigation/navigation-card/navigation-cards.comp.js +2 -0
  45. package/lib/commonjs/components/navigation/navigation-card/navigation-cards.comp.js.map +1 -0
  46. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.comp.js +2 -0
  47. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.comp.js.map +1 -0
  48. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.styles.js +91 -0
  49. package/lib/commonjs/components/navigation/navigation-sections/navigation-sections.styles.js.map +1 -0
  50. package/lib/commonjs/index.js +1 -1
  51. package/lib/commonjs/theme/gradient-border.js +51 -0
  52. package/lib/commonjs/theme/gradient-border.js.map +1 -0
  53. package/lib/commonjs/theme/scrollbar.js +39 -0
  54. package/lib/commonjs/theme/scrollbar.js.map +1 -0
  55. package/lib/index.d.ts +168 -4
  56. package/lib/module/components/charts/chart-legend/chart-legend.comp.js +1 -1
  57. package/lib/module/components/charts/chart-legend/chart-legend.comp.js.map +1 -1
  58. package/lib/module/components/charts/chart-legend/chart-legend.styles.js +21 -14
  59. package/lib/module/components/charts/chart-legend/chart-legend.styles.js.map +1 -1
  60. package/lib/module/components/data-display/calendar/calendar.styles.js +17 -16
  61. package/lib/module/components/data-display/calendar/calendar.styles.js.map +1 -1
  62. package/lib/module/components/data-display/matrix/matrix.styles.js +20 -19
  63. package/lib/module/components/data-display/matrix/matrix.styles.js.map +1 -1
  64. package/lib/module/components/data-display/side-panel/side-panel.styles.js +10 -9
  65. package/lib/module/components/data-display/side-panel/side-panel.styles.js.map +1 -1
  66. package/lib/module/components/forms/autocomplete/autocomplete.styles.js +8 -21
  67. package/lib/module/components/forms/autocomplete/autocomplete.styles.js.map +1 -1
  68. package/lib/module/components/icons/icon-box/icon-box.comp.js +1 -1
  69. package/lib/module/components/icons/icon-box/icon-box.comp.js.map +1 -1
  70. package/lib/module/components/icons/icon-box/icon-box.styles.js +7 -4
  71. package/lib/module/components/icons/icon-box/icon-box.styles.js.map +1 -1
  72. package/lib/module/components/layout/card/card.styles.js +3 -52
  73. package/lib/module/components/layout/card/card.styles.js.map +1 -1
  74. package/lib/module/components/layout/drawer/drawer.styles.js +7 -5
  75. package/lib/module/components/layout/drawer/drawer.styles.js.map +1 -1
  76. package/lib/module/components/layout/modal/modal.styles.js +7 -18
  77. package/lib/module/components/layout/modal/modal.styles.js.map +1 -1
  78. package/lib/module/components/layout/popover/popover.styles.js +2 -1
  79. package/lib/module/components/layout/popover/popover.styles.js.map +1 -1
  80. package/lib/module/components/layout/slider/slider.styles.js +5 -26
  81. package/lib/module/components/layout/slider/slider.styles.js.map +1 -1
  82. package/lib/module/components/layout/table/table.comp.js +1 -1
  83. package/lib/module/components/layout/table/table.comp.js.map +1 -1
  84. package/lib/module/components/layout/table/table.styles.js +9 -8
  85. package/lib/module/components/layout/table/table.styles.js.map +1 -1
  86. package/lib/module/components/layout/table-head/table-head.comp.js +1 -1
  87. package/lib/module/components/layout/table-head/table-head.comp.js.map +1 -1
  88. package/lib/module/components/layout/table-head/table-head.styles.js +1 -1
  89. package/lib/module/components/layout/table-head/table-head.styles.js.map +1 -1
  90. package/lib/module/components/layout/table-row/table-row.comp.js +1 -1
  91. package/lib/module/components/layout/table-row/table-row.comp.js.map +1 -1
  92. package/lib/module/components/navigation/navigation-card/navigation-card.comp.js +2 -0
  93. package/lib/module/components/navigation/navigation-card/navigation-card.comp.js.map +1 -0
  94. package/lib/module/components/navigation/navigation-card/navigation-card.styles.js +47 -0
  95. package/lib/module/components/navigation/navigation-card/navigation-card.styles.js.map +1 -0
  96. package/lib/module/components/navigation/navigation-card/navigation-cards.comp.js +2 -0
  97. package/lib/module/components/navigation/navigation-card/navigation-cards.comp.js.map +1 -0
  98. package/lib/module/components/navigation/navigation-sections/navigation-sections.comp.js +2 -0
  99. package/lib/module/components/navigation/navigation-sections/navigation-sections.comp.js.map +1 -0
  100. package/lib/module/components/navigation/navigation-sections/navigation-sections.styles.js +91 -0
  101. package/lib/module/components/navigation/navigation-sections/navigation-sections.styles.js.map +1 -0
  102. package/lib/module/index.js +1 -1
  103. package/lib/module/theme/gradient-border.js +51 -0
  104. package/lib/module/theme/gradient-border.js.map +1 -0
  105. package/lib/module/theme/scrollbar.js +39 -0
  106. package/lib/module/theme/scrollbar.js.map +1 -0
  107. package/llms-full.txt +105 -2
  108. package/llms.txt +15 -2
  109. package/package.json +1 -1
@@ -1,16 +1,16 @@
1
- "use strict";var e=require("styled-components"),t=require("../../../theme/theme.util.js");const o=(e,t)=>`color-mix(in srgb, ${t.colors.primary} 10%, ${e})`,r=e.styled.div`
1
+ "use strict";var e=require("styled-components"),t=require("../../../theme/scrollbar.js"),o=require("../../../theme/theme.util.js");const r=(e,t)=>`color-mix(in srgb, ${t.colors.primary} 10%, ${e})`,i=e.styled.div`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  gap: ${({theme:e})=>e.spacing.md};
5
5
  width: 100%;
6
6
  min-width: 0;
7
7
  font-family: ${({theme:e})=>e.typography.fontFamily};
8
- `,i=e.styled.div`
8
+ `,n=e.styled.div`
9
9
  display: flex;
10
10
  align-items: stretch;
11
11
  gap: ${({theme:e})=>e.spacing.sm};
12
12
  min-width: 0;
13
- `,n=e.styled.span`
13
+ `,s=e.styled.span`
14
14
  flex: none;
15
15
  align-self: center;
16
16
  font-size: ${({theme:e})=>e.typography.textSize.caption};
@@ -24,11 +24,12 @@
24
24
  writing-mode: vertical-rl;
25
25
  transform: rotate(180deg);
26
26
  `}
27
- `,s=e.styled.div`
27
+ `,a=e.styled.div`
28
28
  flex: 1;
29
29
  min-width: 0;
30
30
  overflow-x: auto;
31
- `,a=e.styled.div`
31
+ ${t.thinScrollbar}
32
+ `,l=e.styled.div`
32
33
  display: grid;
33
34
  grid-template-columns: ${({$columns:e})=>e};
34
35
  grid-template-rows: ${({$rows:e})=>e};
@@ -46,7 +47,7 @@
46
47
  width: max-content;
47
48
  margin: 0 auto;
48
49
  `}
49
- `,l=e.styled.div`
50
+ `,p=e.styled.div`
50
51
  display: flex;
51
52
  flex-direction: column;
52
53
  justify-content: center;
@@ -56,7 +57,7 @@
56
57
  padding: 4px 8px;
57
58
  text-align: ${({$row:e,$variant:t})=>e&&"chip"===t?"left":"center"};
58
59
  background: ${({$variant:e,theme:t})=>"fill"===e?t.colors.grey_5:"transparent"};
59
- `,p=e.styled.span`
60
+ `,d=e.styled.span`
60
61
  max-width: 100%;
61
62
  overflow: hidden;
62
63
  text-overflow: ellipsis;
@@ -64,11 +65,11 @@
64
65
  font-size: ${({$variant:e,$row:t,theme:o})=>"chip"===e&&t?o.typography.textSize.bodySm:o.typography.textSize.caption};
65
66
  font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
66
67
  color: ${({$variant:e,$row:t,theme:o})=>"chip"===e&&t?o.colors.grey_1:o.colors.grey_2};
67
- `,d=e.styled.span`
68
+ `,h=e.styled.span`
68
69
  font-size: 11px;
69
70
  line-height: 1.2;
70
71
  color: ${({theme:e})=>e.colors.grey_2};
71
- `,h=e.styled.div`
72
+ `,c=e.styled.div`
72
73
  position: relative;
73
74
  display: flex;
74
75
  flex-wrap: wrap;
@@ -84,8 +85,8 @@
84
85
  font: inherit;
85
86
  font-size: ${({$variant:e,theme:t})=>"chip"===e?t.typography.textSize.caption:t.typography.textSize.bodySm};
86
87
  font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
87
- background: ${({$background:e,$variant:r,$highlighted:i,theme:n})=>{const s=e?t.getThemeColor(e,n):"chip"===r?n.colors.grey_5:n.colors.white;return i?o(s,n):s}};
88
- color: ${({$color:e,theme:o})=>e?t.getThemeColor(e,o):o.colors.grey_1};
88
+ background: ${({$background:e,$variant:t,$highlighted:i,theme:n})=>{const s=e?o.getThemeColor(e,n):"chip"===t?n.colors.grey_5:n.colors.white;return i?r(s,n):s}};
89
+ color: ${({$color:e,theme:t})=>e?o.getThemeColor(e,t):t.colors.grey_1};
89
90
  border-radius: ${({$variant:e,theme:t})=>"chip"===e?t.radius.sm:"0"};
90
91
  cursor: ${({$clickable:e})=>e?"pointer":"default"};
91
92
  transition:
@@ -105,7 +106,7 @@
105
106
  outline: 2px solid ${({theme:e})=>e.colors.border.focus};
106
107
  outline-offset: -2px;
107
108
  }
108
- `,c=e.styled.span`
109
+ `,m=e.styled.span`
109
110
  display: inline-flex;
110
111
  align-items: center;
111
112
  justify-content: center;
@@ -117,21 +118,21 @@
117
118
  box-shadow: ${({theme:e})=>e.shadow.xs};
118
119
  font-size: ${({theme:e})=>e.typography.textSize.caption};
119
120
  color: ${({theme:e})=>e.colors.grey_1};
120
- `,m=e.styled.span`
121
+ `,g=e.styled.span`
121
122
  flex: none;
122
123
  width: 14px;
123
124
  height: 14px;
124
125
  border-radius: 50%;
125
126
  border: 2px solid ${({theme:e})=>e.colors.white};
126
- background: ${({$color:e,theme:o})=>t.getThemeColor(e??"primary",o)};
127
- `,g=e.styled.span`
127
+ background: ${({$color:e,theme:t})=>o.getThemeColor(e??"primary",t)};
128
+ `,y=e.styled.span`
128
129
  font-size: 11px;
129
130
  color: ${({theme:e})=>e.colors.grey_2};
130
131
 
131
132
  &::after {
132
133
  content: attr(data-count);
133
134
  }
134
- `,y=e.styled.ul`
135
+ `,$=e.styled.ul`
135
136
  display: flex;
136
137
  flex-wrap: wrap;
137
138
  justify-content: center;
@@ -145,7 +146,7 @@
145
146
  gap: ${({theme:e})=>e.spacing.sm};
146
147
  font-size: ${({theme:e})=>e.typography.textSize.bodySm};
147
148
  color: ${({theme:e})=>e.colors.grey_2};
148
- `,$=e.styled.span`
149
+ `,f=e.styled.span`
149
150
  display: inline-flex;
150
151
  flex: none;
151
152
  align-items: center;
@@ -153,15 +154,15 @@
153
154
  width: 18px;
154
155
  height: 18px;
155
156
  border-radius: ${({theme:e})=>e.radius.sm};
156
- background: ${({$color:e,$highlighted:r,theme:i})=>r?o(i.colors.white,i):t.getThemeColor(e,i)};
157
+ background: ${({$color:e,$highlighted:t,theme:i})=>t?r(i.colors.white,i):o.getThemeColor(e,i)};
157
158
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
158
159
  font-size: 11px;
159
160
  font-weight: ${({theme:e})=>e.typography.fontWeight.bold};
160
- color: ${({$symbolColor:e,theme:o})=>e?t.getThemeColor(e,o):o.colors.grey_1};
161
- `,f=e.styled.div`
161
+ color: ${({$symbolColor:e,theme:t})=>e?o.getThemeColor(e,t):t.colors.grey_1};
162
+ `,u=e.styled.div`
162
163
  padding: ${({theme:e})=>e.spacing.md};
163
164
  font-size: ${({theme:e})=>e.typography.textSize.bodySm};
164
165
  line-height: ${({theme:e})=>e.typography.lineHeight.normal};
165
166
  color: ${({theme:e})=>e.colors.grey_1};
166
- `;exports.AxisTitle=n,exports.Body=i,exports.Cell=h,exports.Count=c,exports.Dot=m,exports.Grid=a,exports.Header=l,exports.HeaderLabel=p,exports.HeaderSublabel=d,exports.Legend=y,exports.LegendDescription=f,exports.LegendItem=x,exports.More=g,exports.Scroll=s,exports.Swatch=$,exports.Wrapper=r;
167
+ `;exports.AxisTitle=s,exports.Body=n,exports.Cell=c,exports.Count=m,exports.Dot=g,exports.Grid=l,exports.Header=p,exports.HeaderLabel=d,exports.HeaderSublabel=h,exports.Legend=$,exports.LegendDescription=u,exports.LegendItem=x,exports.More=y,exports.Scroll=a,exports.Swatch=f,exports.Wrapper=i;
167
168
  //# sourceMappingURL=matrix.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"matrix.styles.js","sources":["../../../../../src/components/data-display/matrix/matrix.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\n\ntype Variant = 'fill' | 'chip'\n\n/** Fundo da zona destacada: um véu roxo leve sobre o fundo da célula. */\nconst highlightTint = (base: string, theme: any) =>\n `color-mix(in srgb, ${theme.colors.primary} 10%, ${base})`\n\nexport const Wrapper = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.md};\n width: 100%;\n min-width: 0;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n`\n\nexport const Body = styled.div`\n display: flex;\n align-items: stretch;\n gap: ${({ theme }) => theme.spacing.sm};\n min-width: 0;\n`\n\nexport const AxisTitle = styled.span<{ $vertical?: boolean }>`\n flex: none;\n align-self: center;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n letter-spacing: 0.04em;\n text-transform: uppercase;\n text-align: center;\n color: ${({ theme }) => theme.colors.grey_2};\n\n ${({ $vertical }) =>\n $vertical &&\n css`\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n `}\n`\n\nexport const Scroll = styled.div`\n flex: 1;\n min-width: 0;\n overflow-x: auto;\n`\n\nexport const Grid = styled.div<{\n $variant: Variant\n $columns: string\n $rows: string\n}>`\n display: grid;\n grid-template-columns: ${({ $columns }) => $columns};\n grid-template-rows: ${({ $rows }) => $rows};\n min-width: min-content;\n\n ${({ $variant, theme }) =>\n $variant === 'fill'\n ? css`\n gap: 1px;\n border: 1px solid ${theme.colors.grey_4};\n border-radius: ${theme.radius.md};\n background: ${theme.colors.grey_4};\n overflow: hidden;\n `\n : css`\n gap: 4px;\n align-items: center;\n width: max-content;\n margin: 0 auto;\n `}\n`\n\nexport const Header = styled.div<{ $variant: Variant; $row?: boolean }>`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'flex-start' : 'center'};\n gap: 2px;\n min-width: 0;\n padding: 4px 8px;\n text-align: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'left' : 'center'};\n background: ${({ $variant, theme }) =>\n $variant === 'fill' ? theme.colors.grey_5 : 'transparent'};\n`\n\nexport const HeaderLabel = styled.span<{ $variant: Variant; $row?: boolean }>`\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row\n ? theme.typography.textSize.bodySm\n : theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row ? theme.colors.grey_1 : theme.colors.grey_2};\n`\n\nexport const HeaderSublabel = styled.span`\n font-size: 11px;\n line-height: 1.2;\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Cell = styled.div<{\n $variant: Variant\n $background?: string\n $color?: string\n $highlighted: boolean\n $clickable: boolean\n}>`\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n align-content: center;\n gap: 4px;\n min-width: 0;\n height: 100%;\n margin: 0;\n padding: 4px;\n border: none;\n font: inherit;\n font-size: ${({ $variant, theme }) =>\n $variant === 'chip'\n ? theme.typography.textSize.caption\n : theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n background: ${({ $background, $variant, $highlighted, theme }) => {\n const base = $background\n ? getThemeColor($background, theme)\n : $variant === 'chip'\n ? theme.colors.grey_5\n : theme.colors.white\n return $highlighted ? highlightTint(base, theme) : base\n }};\n color: ${({ $color, theme }) =>\n $color ? getThemeColor($color, theme) : theme.colors.grey_1};\n border-radius: ${({ $variant, theme }) =>\n $variant === 'chip' ? theme.radius.sm : '0'};\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n transition:\n transform ${({ theme }) => theme.motion.duration.fast} ease,\n box-shadow ${({ theme }) => theme.motion.duration.fast} ease;\n\n ${({ $clickable, theme }) =>\n $clickable &&\n css`\n &:hover {\n z-index: 1;\n transform: scale(1.03);\n box-shadow: ${theme.shadow.md};\n }\n `}\n\n &:focus-visible {\n z-index: 1;\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: -2px;\n }\n`\n\nexport const Count = styled.span`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 24px;\n height: 24px;\n padding: 0 6px;\n border-radius: ${({ theme }) => theme.radius.full};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.shadow.xs};\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Dot = styled.span<{ $color?: string }>`\n flex: none;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n border: 2px solid ${({ theme }) => theme.colors.white};\n background: ${({ $color, theme }) =>\n getThemeColor($color ?? 'primary', theme)};\n`\n\nexport const More = styled.span`\n font-size: 11px;\n color: ${({ theme }) => theme.colors.grey_2};\n\n &::after {\n content: attr(data-count);\n }\n`\n\nexport const Legend = styled.ul`\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: ${({ theme }) => `${theme.spacing.xs} ${theme.spacing.lg}`};\n margin: 0;\n padding: 0;\n list-style: none;\n`\n\nexport const LegendItem = styled.li`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Swatch = styled.span<{\n $color: string\n $symbolColor?: string\n $highlighted?: boolean\n}>`\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n border-radius: ${({ theme }) => theme.radius.sm};\n background: ${({ $color, $highlighted, theme }) =>\n $highlighted\n ? highlightTint(theme.colors.white, theme)\n : getThemeColor($color, theme)};\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n font-size: 11px;\n font-weight: ${({ theme }) => theme.typography.fontWeight.bold};\n color: ${({ $symbolColor, theme }) =>\n $symbolColor ? getThemeColor($symbolColor, theme) : theme.colors.grey_1};\n`\n\nexport const LegendDescription = styled.div`\n padding: ${({ theme }) => theme.spacing.md};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n line-height: ${({ theme }) => theme.typography.lineHeight.normal};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["highlightTint","base","theme","colors","primary","Wrapper","styled","div","spacing","md","typography","fontFamily","Body","sm","AxisTitle","span","textSize","caption","fontWeight","semibold","grey_2","$vertical","css","Scroll","Grid","$columns","$rows","$variant","grey_4","radius","Header","$row","grey_5","HeaderLabel","bodySm","grey_1","HeaderSublabel","Cell","$background","$highlighted","getThemeColor","white","$color","$clickable","motion","duration","fast","shadow","border","focus","Count","full","xs","Dot","More","Legend","ul","lg","LegendItem","li","Swatch","bold","$symbolColor","LegendDescription","lineHeight","normal"],"mappings":"0FAOA,MAAMA,EAAgBA,CAACC,EAAcC,IACb,sBAAAA,EAAMC,OAAOC,gBAAgBH,KAExCI,EAAUC,EAAMA,OAACC,GAAG;;;SAGxB,EAAGL,WAAYA,EAAMM,QAAQC;;;iBAGrB,EAAGP,WAAYA,EAAMQ,WAAWC;EAGpCC,EAAON,EAAMA,OAACC,GAAG;;;SA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eA,EAAMM,QAAQ4C,MAAMlD,EAAMM,QAAQiD;;;;EAMhDC,EAAapD,EAAMA,OAACqD,EAAE;;;SAG1B,EAAGzD,WAAYA,EAAMM,QAAQK;eACvB,EAAGX,WAAYA,EAAMQ,WAAWM,SAASkB;WAC7C,EAAGhC,WAAYA,EAAMC,OAAOiB;EAG1BwC,EAAStD,EAAMA,OAACS,IAI3B;;;;;;;mBAOiB,EAAGb,WAAYA,EAAM2B,OAAOhB;gBAC/B,EAAG6B,SAAQH,eAAcrC,WACrCqC,EACIvC,EAAcE,EAAMC,OAAOsC,MAAOvC,GAClCsC,EAAaA,cAACE,EAAQxC;;;iBAGb,EAAGA,WAAYA,EAAMQ,WAAWQ,WAAW2C;WACjD,EAAGC,eAAc5D,WACxB4D,EAAetB,EAAAA,cAAcsB,EAAc5D,GAASA,EAAMC,OAAOgC;EAGxD4B,EAAoBzD,EAAMA,OAACC,GAAG;aAC9B,EAAGL,WAAYA,EAAMM,QAAQC;eAC3B,EAAGP,WAAYA,EAAMQ,WAAWM,SAASkB;iBACvC,EAAGhC,WAAYA,EAAMQ,WAAWsD,WAAWC;WACjD,EAAG/D,WAAYA,EAAMC,OAAOgC;"}
1
+ {"version":3,"file":"matrix.styles.js","sources":["../../../../../src/components/data-display/matrix/matrix.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor, thinScrollbar } from '../../../theme'\n\ntype Variant = 'fill' | 'chip'\n\n/** Fundo da zona destacada: um véu roxo leve sobre o fundo da célula. */\nconst highlightTint = (base: string, theme: any) =>\n `color-mix(in srgb, ${theme.colors.primary} 10%, ${base})`\n\nexport const Wrapper = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.md};\n width: 100%;\n min-width: 0;\n font-family: ${({ theme }) => theme.typography.fontFamily};\n`\n\nexport const Body = styled.div`\n display: flex;\n align-items: stretch;\n gap: ${({ theme }) => theme.spacing.sm};\n min-width: 0;\n`\n\nexport const AxisTitle = styled.span<{ $vertical?: boolean }>`\n flex: none;\n align-self: center;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n letter-spacing: 0.04em;\n text-transform: uppercase;\n text-align: center;\n color: ${({ theme }) => theme.colors.grey_2};\n\n ${({ $vertical }) =>\n $vertical &&\n css`\n writing-mode: vertical-rl;\n transform: rotate(180deg);\n `}\n`\n\nexport const Scroll = styled.div`\n flex: 1;\n min-width: 0;\n overflow-x: auto;\n ${thinScrollbar}\n`\n\nexport const Grid = styled.div<{\n $variant: Variant\n $columns: string\n $rows: string\n}>`\n display: grid;\n grid-template-columns: ${({ $columns }) => $columns};\n grid-template-rows: ${({ $rows }) => $rows};\n min-width: min-content;\n\n ${({ $variant, theme }) =>\n $variant === 'fill'\n ? css`\n gap: 1px;\n border: 1px solid ${theme.colors.grey_4};\n border-radius: ${theme.radius.md};\n background: ${theme.colors.grey_4};\n overflow: hidden;\n `\n : css`\n gap: 4px;\n align-items: center;\n width: max-content;\n margin: 0 auto;\n `}\n`\n\nexport const Header = styled.div<{ $variant: Variant; $row?: boolean }>`\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'flex-start' : 'center'};\n gap: 2px;\n min-width: 0;\n padding: 4px 8px;\n text-align: ${({ $row, $variant }) =>\n $row && $variant === 'chip' ? 'left' : 'center'};\n background: ${({ $variant, theme }) =>\n $variant === 'fill' ? theme.colors.grey_5 : 'transparent'};\n`\n\nexport const HeaderLabel = styled.span<{ $variant: Variant; $row?: boolean }>`\n max-width: 100%;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n font-size: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row\n ? theme.typography.textSize.bodySm\n : theme.typography.textSize.caption};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ $variant, $row, theme }) =>\n $variant === 'chip' && $row ? theme.colors.grey_1 : theme.colors.grey_2};\n`\n\nexport const HeaderSublabel = styled.span`\n font-size: 11px;\n line-height: 1.2;\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Cell = styled.div<{\n $variant: Variant\n $background?: string\n $color?: string\n $highlighted: boolean\n $clickable: boolean\n}>`\n position: relative;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n justify-content: center;\n align-content: center;\n gap: 4px;\n min-width: 0;\n height: 100%;\n margin: 0;\n padding: 4px;\n border: none;\n font: inherit;\n font-size: ${({ $variant, theme }) =>\n $variant === 'chip'\n ? theme.typography.textSize.caption\n : theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n background: ${({ $background, $variant, $highlighted, theme }) => {\n const base = $background\n ? getThemeColor($background, theme)\n : $variant === 'chip'\n ? theme.colors.grey_5\n : theme.colors.white\n return $highlighted ? highlightTint(base, theme) : base\n }};\n color: ${({ $color, theme }) =>\n $color ? getThemeColor($color, theme) : theme.colors.grey_1};\n border-radius: ${({ $variant, theme }) =>\n $variant === 'chip' ? theme.radius.sm : '0'};\n cursor: ${({ $clickable }) => ($clickable ? 'pointer' : 'default')};\n transition:\n transform ${({ theme }) => theme.motion.duration.fast} ease,\n box-shadow ${({ theme }) => theme.motion.duration.fast} ease;\n\n ${({ $clickable, theme }) =>\n $clickable &&\n css`\n &:hover {\n z-index: 1;\n transform: scale(1.03);\n box-shadow: ${theme.shadow.md};\n }\n `}\n\n &:focus-visible {\n z-index: 1;\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: -2px;\n }\n`\n\nexport const Count = styled.span`\n display: inline-flex;\n align-items: center;\n justify-content: center;\n min-width: 24px;\n height: 24px;\n padding: 0 6px;\n border-radius: ${({ theme }) => theme.radius.full};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.shadow.xs};\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Dot = styled.span<{ $color?: string }>`\n flex: none;\n width: 14px;\n height: 14px;\n border-radius: 50%;\n border: 2px solid ${({ theme }) => theme.colors.white};\n background: ${({ $color, theme }) =>\n getThemeColor($color ?? 'primary', theme)};\n`\n\nexport const More = styled.span`\n font-size: 11px;\n color: ${({ theme }) => theme.colors.grey_2};\n\n &::after {\n content: attr(data-count);\n }\n`\n\nexport const Legend = styled.ul`\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n gap: ${({ theme }) => `${theme.spacing.xs} ${theme.spacing.lg}`};\n margin: 0;\n padding: 0;\n list-style: none;\n`\n\nexport const LegendItem = styled.li`\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing.sm};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const Swatch = styled.span<{\n $color: string\n $symbolColor?: string\n $highlighted?: boolean\n}>`\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 18px;\n height: 18px;\n border-radius: ${({ theme }) => theme.radius.sm};\n background: ${({ $color, $highlighted, theme }) =>\n $highlighted\n ? highlightTint(theme.colors.white, theme)\n : getThemeColor($color, theme)};\n box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);\n font-size: 11px;\n font-weight: ${({ theme }) => theme.typography.fontWeight.bold};\n color: ${({ $symbolColor, theme }) =>\n $symbolColor ? getThemeColor($symbolColor, theme) : theme.colors.grey_1};\n`\n\nexport const LegendDescription = styled.div`\n padding: ${({ theme }) => theme.spacing.md};\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n line-height: ${({ theme }) => theme.typography.lineHeight.normal};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n"],"names":["highlightTint","base","theme","colors","primary","Wrapper","styled","div","spacing","md","typography","fontFamily","Body","sm","AxisTitle","span","textSize","caption","fontWeight","semibold","grey_2","$vertical","css","Scroll","thinScrollbar","Grid","$columns","$rows","$variant","grey_4","radius","Header","$row","grey_5","HeaderLabel","bodySm","grey_1","HeaderSublabel","Cell","$background","$highlighted","getThemeColor","white","$color","$clickable","motion","duration","fast","shadow","border","focus","Count","full","xs","Dot","More","Legend","ul","lg","LegendItem","li","Swatch","bold","$symbolColor","LegendDescription","lineHeight","normal"],"mappings":"mIAOA,MAAMA,EAAgBA,CAACC,EAAcC,IACb,sBAAAA,EAAMC,OAAOC,gBAAgBH,KAExCI,EAAUC,EAAMA,OAACC,GAAG;;;SAGxB,EAAGL,WAAYA,EAAMM,QAAQC;;;iBAGrB,EAAGP,WAAYA,EAAMQ,WAAWC;EAGpCC,EAAON,EAAMA,OAACC,GAAG;;;SAGrB,EAAGL,WAAYA,EAAMM,QAAQK;;EAIzBC,EAAYR,EAAMA,OAACS,IAA6B;;;eAG9C,EAAGb,WAAYA,EAAMQ,WAAWM,SAASC;iBACvC,EAAGf,WAAYA,EAAMQ,WAAWQ,WAAWC;;;;WAIjD,EAAGjB,WAAYA,EAAMC,OAAOiB;;IAEnC,EAAGC,eACHA,GACAC,EAAAA,GAAG;;;;EAMMC,EAASjB,EAAMA,OAACC,GAAG;;;;IAI5BiB;EAGSC,EAAOnB,EAAMA,OAACC,GAIzB;;2BAEyB,EAAGmB,cAAeA;wBACrB,EAAGC,WAAYA;;;IAGnC,EAAGC,WAAU1B,WACA,SAAb0B,EACIN,KAAG;;8BAEmBpB,EAAMC,OAAO0B;2BAChB3B,EAAM4B,OAAOrB;wBAChBP,EAAMC,OAAO0B;;UAG7BP,EAAAA,GAAG;;;;;;EAQES,EAASzB,EAAMA,OAACC,GAA0C;;;;iBAItD,EAAGyB,OAAMJ,cACtBI,GAAqB,SAAbJ,EAAsB,aAAe;;;;gBAIjC,EAAGI,OAAMJ,cACrBI,GAAqB,SAAbJ,EAAsB,OAAS;gBAC3B,EAAGA,WAAU1B,WACZ,SAAb0B,EAAsB1B,EAAMC,OAAO8B,OAAS;EAGnCC,EAAc5B,EAAMA,OAACS,IAA2C;;;;;eAK9D,EAAGa,WAAUI,OAA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;gBAC5B,EAAGxC,WAAYA,EAAM8C,OAAOK;eAC7B,EAAGnD,WAAYA,EAAMQ,WAAWM,SAASC;WAC7C,EAAGf,WAAYA,EAAMC,OAAOiC;EAG1BkB,EAAMhD,EAAMA,OAACS,IAAyB;;;;;sBAK7B,EAAGb,WAAYA,EAAMC,OAAOuC;gBAClC,EAAGC,SAAQzC,WACvBuC,gBAAcE,GAAU,UAAWzC;EAG1BqD,EAAOjD,EAAMA,OAACS,IAAI;;WAEpB,EAAGb,WAAYA,EAAMC,OAAOiB;;;;;EAO1BoC,EAASlD,EAAMA,OAACmD,EAAE;;;;SAItB,EAAGvD,cAAeA,EAAMM,QAAQ6C,MAAMnD,EAAMM,QAAQkD;;;;EAMhDC,EAAarD,EAAMA,OAACsD,EAAE;;;SAG1B,EAAG1D,WAAYA,EAAMM,QAAQK;eACvB,EAAGX,WAAYA,EAAMQ,WAAWM,SAASmB;WAC7C,EAAGjC,WAAYA,EAAMC,OAAOiB;EAG1ByC,EAASvD,EAAMA,OAACS,IAI3B;;;;;;;mBAOiB,EAAGb,WAAYA,EAAM4B,OAAOjB;gBAC/B,EAAG8B,SAAQH,eAActC,WACrCsC,EACIxC,EAAcE,EAAMC,OAAOuC,MAAOxC,GAClCuC,EAAaA,cAACE,EAAQzC;;;iBAGb,EAAGA,WAAYA,EAAMQ,WAAWQ,WAAW4C;WACjD,EAAGC,eAAc7D,WACxB6D,EAAetB,EAAAA,cAAcsB,EAAc7D,GAASA,EAAMC,OAAOiC;EAGxD4B,EAAoB1D,EAAMA,OAACC,GAAG;aAC9B,EAAGL,WAAYA,EAAMM,QAAQC;eAC3B,EAAGP,WAAYA,EAAMQ,WAAWM,SAASmB;iBACvC,EAAGjC,WAAYA,EAAMQ,WAAWuD,WAAWC;WACjD,EAAGhE,WAAYA,EAAMC,OAAOiC;"}
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("styled-components");const o=e.styled.aside`
1
+ "use strict";var e=require("styled-components"),o=require("../../../theme/scrollbar.js");const t=e.styled.aside`
2
2
  display: flex;
3
3
  flex-direction: column;
4
4
  width: ${({$width:e})=>e};
@@ -11,38 +11,39 @@
11
11
  box-shadow: ${({theme:e})=>e.box_shadow.card};
12
12
  font-family: ${({theme:e})=>e.typography.fontFamily};
13
13
  overflow: hidden;
14
- `,t=e.styled.div`
14
+ `,r=e.styled.div`
15
15
  display: flex;
16
16
  flex-direction: column;
17
17
  gap: ${({theme:e})=>e.spacing.sm};
18
18
  padding: ${({theme:e})=>e.spacing.md};
19
19
  padding-bottom: ${({theme:e})=>e.spacing.sm};
20
- `,r=e.styled.div`
20
+ `,i=e.styled.div`
21
21
  display: flex;
22
22
  align-items: flex-start;
23
23
  justify-content: space-between;
24
24
  gap: ${({theme:e})=>e.spacing.sm};
25
- `,i=e.styled.h3`
25
+ `,s=e.styled.h3`
26
26
  margin: 0;
27
27
  font-size: ${({theme:e})=>e.typography.textSize.bodySm};
28
28
  font-weight: ${({theme:e})=>e.typography.fontWeight.semibold};
29
29
  color: ${({theme:e})=>e.colors.grey_1};
30
- `,s=e.styled.p`
30
+ `,d=e.styled.p`
31
31
  margin: 2px 0 0;
32
32
  font-size: ${({theme:e})=>e.typography.textSize.caption};
33
33
  color: ${({theme:e})=>e.colors.grey_2};
34
- `,d=e.styled.div`
34
+ `,n=e.styled.div`
35
35
  display: flex;
36
36
  flex: 1;
37
37
  flex-direction: column;
38
38
  gap: ${({theme:e})=>e.spacing.sm};
39
39
  min-height: 0;
40
40
  overflow-y: auto;
41
+ ${o.thinScrollbar}
41
42
  padding: ${({theme:e})=>e.spacing.sm} ${({theme:e})=>e.spacing.md};
42
- `,n=e.styled.div`
43
+ `,l=e.styled.div`
43
44
  padding: ${({theme:e})=>e.spacing.sm} ${({theme:e})=>e.spacing.md};
44
45
  border-top: 1px solid ${({theme:e})=>e.colors.grey_5};
45
- `,l=e.styled.button`
46
+ `,a=e.styled.button`
46
47
  display: flex;
47
48
  flex: none;
48
49
  align-items: flex-start;
@@ -63,7 +64,7 @@
63
64
  outline: 2px solid ${({theme:e})=>e.colors.border.focus};
64
65
  outline-offset: 2px;
65
66
  }
66
- `,a=e.styled.button`
67
+ `,c=e.styled.button`
67
68
  display: flex;
68
69
  flex-direction: column;
69
70
  gap: 4px;
@@ -106,5 +107,5 @@
106
107
  outline: 2px solid ${({theme:e})=>e.colors.border.focus};
107
108
  outline-offset: 2px;
108
109
  }
109
- `;exports.CollapsedStrip=l,exports.Description=s,exports.Footer=n,exports.Header=t,exports.Item=a,exports.List=d,exports.Panel=o,exports.Title=i,exports.TitleRow=r;
110
+ `;exports.CollapsedStrip=a,exports.Description=d,exports.Footer=l,exports.Header=r,exports.Item=c,exports.List=n,exports.Panel=t,exports.Title=s,exports.TitleRow=i;
110
111
  //# sourceMappingURL=side-panel.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"side-panel.styles.js","sources":["../../../../../src/components/data-display/side-panel/side-panel.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nexport const Panel = styled.aside<{ $width: string }>`\n display: flex;\n flex-direction: column;\n width: ${({ $width }) => $width};\n min-width: 0;\n min-height: 0;\n max-height: 100%;\n border: 1px solid ${({ theme }) => theme.colors.grey_5};\n border-radius: ${({ theme }) => theme.radius.xl};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.box_shadow.card};\n font-family: ${({ theme }) => theme.typography.fontFamily};\n overflow: hidden;\n`\n\nexport const Header = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n padding: ${({ theme }) => theme.spacing.md};\n padding-bottom: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const TitleRow = styled.div`\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const Title = styled.h3`\n margin: 0;\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Description = styled.p`\n margin: 2px 0 0;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const List = styled.div`\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n min-height: 0;\n overflow-y: auto;\n padding: ${({ theme }) => theme.spacing.sm} ${({ theme }) => theme.spacing.md};\n`\n\nexport const Footer = styled.div`\n padding: ${({ theme }) => theme.spacing.sm} ${({ theme }) => theme.spacing.md};\n border-top: 1px solid ${({ theme }) => theme.colors.grey_5};\n`\n\nexport const CollapsedStrip = styled.button`\n display: flex;\n flex: none;\n align-items: flex-start;\n justify-content: center;\n width: 40px;\n min-height: 120px;\n padding: ${({ theme }) => theme.spacing.sm};\n border: none;\n border-radius: ${({ theme }) => theme.radius.md};\n background: ${({ theme }) => theme.colors.grey_6};\n cursor: pointer;\n\n &:hover {\n background: ${({ theme }) => theme.colors.grey_5};\n }\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 2px;\n }\n`\n\nexport const Item = styled.button<{ $selected: boolean }>`\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 100%;\n padding: ${({ theme }) => theme.spacing.sm}\n ${({ theme }) => theme.spacing[1.5]};\n border: 1px solid ${({ theme }) => theme.colors.grey_4};\n border-radius: ${({ theme }) => theme.radius.md};\n background: ${({ theme }) => theme.colors.white};\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background-color ${({ theme }) => theme.motion.duration.fast} ease;\n\n &:hover:not(:disabled) {\n background: ${({ theme }) => theme.colors.grey_6};\n }\n\n ${({ $selected, theme }) =>\n $selected &&\n css`\n border-color: transparent;\n background:\n linear-gradient(${theme.colors.white}, ${theme.colors.white})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n\n &:hover:not(:disabled) {\n background:\n linear-gradient(${theme.colors.grey_6}, ${theme.colors.grey_6})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n }\n `}\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 2px;\n }\n`\n"],"names":["Panel","styled","aside","$width","theme","colors","grey_5","radius","xl","white","box_shadow","card","typography","fontFamily","Header","div","spacing","sm","md","TitleRow","Title","h3","textSize","bodySm","fontWeight","semibold","grey_1","Description","p","caption","grey_2","List","Footer","CollapsedStrip","button","grey_6","border","focus","Item","grey_4","motion","duration","fast","$selected","css","brand","gradient"],"mappings":"gDAEaA,MAAAA,EAAQC,EAAMA,OAACC,KAAyB;;;WAG1C,EAAGC,YAAaA;;;;sBAIL,EAAGC,WAAYA,EAAMC,OAAOC;mBAC/B,EAAGF,WAAYA,EAAMG,OAAOC;gBAC/B,EAAGJ,WAAYA,EAAMC,OAAOI;gBAC5B,EAAGL,WAAYA,EAAMM,WAAWC;iBAC/B,EAAGP,WAAYA,EAAMQ,WAAWC;;EAIpCC,EAASb,EAAMA,OAACc,GAAG;;;SAGvB,EAAGX,WAAYA,EAAMY,QAAQC;aACzB,EAAGb,WAAYA,EAAMY,QAAQE;oBACtB,EAAGd,WAAYA,EAAMY,QAAQC;EAGpCE,EAAWlB,EAAMA,OAACc,GAAG;;;;SAIzB,EAAGX,WAAYA,EAAMY,QAAQC;EAGzBG,EAAQnB,EAAMA,OAACoB,EAAE;;eAEf,EAAGjB,WAAYA,EAAMQ,WAAWU,SAASC;iBACvC,EAAGnB,WAAYA,EAAMQ,WAAWY,WAAWC;WACjD,EAAGrB,WAAYA,EAAMC,OAAOqB;EAG1BC,EAAc1B,EAAMA,OAAC2B,CAAC;;eAEpB,EAAGxB,WAAYA,EAAMQ,WAAWU,SAASO;WAC7C,EAAGzB,WAAYA,EAAMC,OAAOyB;EAG1BC,EAAO9B,EAAMA,OAACc,GAAG;;;;SAIrB,EAAGX,WAAYA,EAAMY,QAAQC;;;aAGzB,EAAGb,WAAYA,EAAMY,QAAQC,MAAM,EAAGb,WAAYA,EAAMY,QAAQE;EAGhEc,EAAS/B,EAAMA,OAACc,GAAG;aACnB,EAAGX,WAAYA,EAAMY,QAAQC,MAAM,EAAGb,WAAYA,EAAMY,QAAQE;0BACnD,EAAGd,WAAYA,EAAMC,OAAOC;EAGzC2B,EAAiBhC,EAAMA,OAACiC,MAAM;;;;;;;aAO9B,EAAG9B,WAAYA,EAAMY,QAAQC;;mBAEvB,EAAGb,WAAYA,EAAMG,OAAOW;gBAC/B,EAAGd,WAAYA,EAAMC,OAAO8B;;;;kBAI1B,EAAG/B,WAAYA,EAAMC,OAAOC;;;;yBAIrB,EAAGF,WAAYA,EAAMC,OAAO+B,OAAOC;;;EAK/CC,EAAOrC,EAAMA,OAACiC,MAA8B;;;;;aAK5C,EAAG9B,WAAYA,EAAMY,QAAQC;MACpC,EAAGb,WAAYA,EAAMY,QAAQ;sBACb,EAAGZ,WAAYA,EAAMC,OAAOkC;mBAC/B,EAAGnC,WAAYA,EAAMG,OAAOW;gBAC/B,EAAGd,WAAYA,EAAMC,OAAOI;;;;iCAIX,EAAGL,WAAYA,EAAMoC,OAAOC,SAASC;;;kBAGpD,EAAGtC,WAAYA,EAAMC,OAAO8B;;;IAG1C,EAAGQ,YAAWvC,WACduC,GACAC,EAAAA,GAAG;;;0BAGmBxC,EAAMC,OAAOI,UAAUL,EAAMC,OAAOI;;UAEpDL,EAAMC,OAAOwC,MAAMC;;;;4BAID1C,EAAMC,OAAO8B,WAAW/B,EAAMC,OAAO8B;;YAErD/B,EAAMC,OAAOwC,MAAMC;;;;;;;;;;yBAUN,EAAG1C,WAAYA,EAAMC,OAAO+B,OAAOC;;;"}
1
+ {"version":3,"file":"side-panel.styles.js","sources":["../../../../../src/components/data-display/side-panel/side-panel.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { thinScrollbar } from '../../../theme'\n\nexport const Panel = styled.aside<{ $width: string }>`\n display: flex;\n flex-direction: column;\n width: ${({ $width }) => $width};\n min-width: 0;\n min-height: 0;\n max-height: 100%;\n border: 1px solid ${({ theme }) => theme.colors.grey_5};\n border-radius: ${({ theme }) => theme.radius.xl};\n background: ${({ theme }) => theme.colors.white};\n box-shadow: ${({ theme }) => theme.box_shadow.card};\n font-family: ${({ theme }) => theme.typography.fontFamily};\n overflow: hidden;\n`\n\nexport const Header = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n padding: ${({ theme }) => theme.spacing.md};\n padding-bottom: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const TitleRow = styled.div`\n display: flex;\n align-items: flex-start;\n justify-content: space-between;\n gap: ${({ theme }) => theme.spacing.sm};\n`\n\nexport const Title = styled.h3`\n margin: 0;\n font-size: ${({ theme }) => theme.typography.textSize.bodySm};\n font-weight: ${({ theme }) => theme.typography.fontWeight.semibold};\n color: ${({ theme }) => theme.colors.grey_1};\n`\n\nexport const Description = styled.p`\n margin: 2px 0 0;\n font-size: ${({ theme }) => theme.typography.textSize.caption};\n color: ${({ theme }) => theme.colors.grey_2};\n`\n\nexport const List = styled.div`\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: ${({ theme }) => theme.spacing.sm};\n min-height: 0;\n overflow-y: auto;\n ${thinScrollbar}\n padding: ${({ theme }) => theme.spacing.sm} ${({ theme }) =>\n theme.spacing.md};\n`\n\nexport const Footer = styled.div`\n padding: ${({ theme }) => theme.spacing.sm} ${({ theme }) => theme.spacing.md};\n border-top: 1px solid ${({ theme }) => theme.colors.grey_5};\n`\n\nexport const CollapsedStrip = styled.button`\n display: flex;\n flex: none;\n align-items: flex-start;\n justify-content: center;\n width: 40px;\n min-height: 120px;\n padding: ${({ theme }) => theme.spacing.sm};\n border: none;\n border-radius: ${({ theme }) => theme.radius.md};\n background: ${({ theme }) => theme.colors.grey_6};\n cursor: pointer;\n\n &:hover {\n background: ${({ theme }) => theme.colors.grey_5};\n }\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 2px;\n }\n`\n\nexport const Item = styled.button<{ $selected: boolean }>`\n display: flex;\n flex-direction: column;\n gap: 4px;\n width: 100%;\n padding: ${({ theme }) => theme.spacing.sm}\n ${({ theme }) => theme.spacing[1.5]};\n border: 1px solid ${({ theme }) => theme.colors.grey_4};\n border-radius: ${({ theme }) => theme.radius.md};\n background: ${({ theme }) => theme.colors.white};\n font: inherit;\n text-align: left;\n cursor: pointer;\n transition: background-color ${({ theme }) => theme.motion.duration.fast} ease;\n\n &:hover:not(:disabled) {\n background: ${({ theme }) => theme.colors.grey_6};\n }\n\n ${({ $selected, theme }) =>\n $selected &&\n css`\n border-color: transparent;\n background:\n linear-gradient(${theme.colors.white}, ${theme.colors.white})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n\n &:hover:not(:disabled) {\n background:\n linear-gradient(${theme.colors.grey_6}, ${theme.colors.grey_6})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n }\n `}\n\n &:disabled {\n cursor: not-allowed;\n opacity: 0.5;\n }\n\n &:focus-visible {\n outline: 2px solid ${({ theme }) => theme.colors.border.focus};\n outline-offset: 2px;\n }\n`\n"],"names":["Panel","styled","aside","$width","theme","colors","grey_5","radius","xl","white","box_shadow","card","typography","fontFamily","Header","div","spacing","sm","md","TitleRow","Title","h3","textSize","bodySm","fontWeight","semibold","grey_1","Description","p","caption","grey_2","List","thinScrollbar","Footer","CollapsedStrip","button","grey_6","border","focus","Item","grey_4","motion","duration","fast","$selected","css","brand","gradient"],"mappings":"yFAIaA,MAAAA,EAAQC,EAAMA,OAACC,KAAyB;;;WAG1C,EAAGC,YAAaA;;;;sBAIL,EAAGC,WAAYA,EAAMC,OAAOC;mBAC/B,EAAGF,WAAYA,EAAMG,OAAOC;gBAC/B,EAAGJ,WAAYA,EAAMC,OAAOI;gBAC5B,EAAGL,WAAYA,EAAMM,WAAWC;iBAC/B,EAAGP,WAAYA,EAAMQ,WAAWC;;EAIpCC,EAASb,EAAMA,OAACc,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AAGd,WAAYA,EAAMC,OAAOI;;;;iCAIX,EAAGL,WAAYA,EAAMqC,OAAOC,SAASC;;;kBAGpD,EAAGvC,WAAYA,EAAMC,OAAO+B;;;IAG1C,EAAGQ,YAAWxC,WACdwC,GACAC,EAAAA,GAAG;;;0BAGmBzC,EAAMC,OAAOI,UAAUL,EAAMC,OAAOI;;UAEpDL,EAAMC,OAAOyC,MAAMC;;;;4BAID3C,EAAMC,OAAO+B,WAAWhC,EAAMC,OAAO+B;;YAErDhC,EAAMC,OAAOyC,MAAMC;;;;;;;;;;yBAUN,EAAG3C,WAAYA,EAAMC,OAAOgC,OAAOC;;;"}
@@ -1,4 +1,4 @@
1
- "use strict";var e=require("styled-components"),o=require("../form.styles.js"),r=require("../../layout/box/box.comp.js"),t=require("../../../theme/theme.util.js"),i=require("../../typography/text/text.comp.js");const d=e.styled(r.Box).withConfig({shouldForwardProp:e=>!["focused"].includes(e)})`
1
+ "use strict";var e=require("styled-components"),o=require("../form.styles.js"),r=require("../../layout/box/box.comp.js"),t=require("../../../theme/theme.util.js"),i=require("../../../theme/scrollbar.js"),d=require("../../typography/text/text.comp.js");const s=e.styled(r.Box).withConfig({shouldForwardProp:e=>!["focused"].includes(e)})`
2
2
  min-height: 44px;
3
3
  width: 100%;
4
4
  border-radius: ${({theme:e})=>e.border_radius.input};
@@ -27,25 +27,12 @@
27
27
  &:focus {
28
28
  outline: none;
29
29
  }
30
- `,s=e.styled(r.Box)`
30
+ `,n=e.styled(r.Box)`
31
31
  flex-direction: column;
32
32
  max-height: 300px;
33
33
  overflow-y: auto;
34
34
  background-color: ${({theme:e})=>t.getThemeColor("white",e)};
35
-
36
- &::-webkit-scrollbar {
37
- width: 10px;
38
- }
39
- &::-webkit-scrollbar-track {
40
- background: ${e=>t.getThemeColor("white",e.theme)};
41
- }
42
- &::-webkit-scrollbar-thumb {
43
- border-radius: 8px;
44
- background: ${e=>t.getThemeColor("grey_5",e.theme)};
45
- }
46
- &::-webkit-scrollbar-thumb:hover {
47
- background: ${e=>t.getThemeColor("grey_4",e.theme)};
48
- }
35
+ ${i.thinScrollbar}
49
36
 
50
37
  div {
51
38
  border-bottom: 1px solid ${({theme:e})=>t.getThemeColor("grey_5",e)};
@@ -64,12 +51,12 @@
64
51
  &:hover {
65
52
  background-color: ${({selected:e,disabled:o,theme:r})=>e||o?void 0:t.getThemeColor("grey_5",r)};
66
53
  }
67
- `,n=e.styled(r.Box)`
54
+ `,h=e.styled(r.Box)`
68
55
  display: flex;
69
56
  gap: ${({theme:e})=>e.spacing[1]};
70
57
  max-width: 50%;
71
58
  flex-wrap: wrap;
72
- `,h=e.styled(r.Box)`
59
+ `,p=e.styled(r.Box)`
73
60
  background-color: ${({theme:e})=>t.getThemeColor("grey_5",e)};
74
61
  border: 1px solid ${({theme:e})=>t.getThemeColor("grey_4",e)};
75
62
  padding: 2px 4px;
@@ -78,14 +65,14 @@
78
65
  align-items: center;
79
66
  gap: ${({theme:e})=>e.spacing[1]};
80
67
  max-width: 100%;
81
- `,g=e.styled(r.Box)`
68
+ `,m=e.styled(r.Box)`
82
69
  overflow: hidden;
83
- `,m=e.styled(i.Text)`
70
+ `,g=e.styled(d.Text)`
84
71
  width: 100%;
85
72
  p {
86
73
  text-overflow: ellipsis;
87
74
  white-space: nowrap;
88
75
  overflow: hidden;
89
76
  }
90
- `;exports.InputContainer=d,exports.Option=a,exports.OptionsContainer=s,exports.StyledInput=l,exports.Tag=h,exports.TagContainer=n,exports.TagText=m,exports.TagTextContainer=g;
77
+ `;exports.InputContainer=s,exports.Option=a,exports.OptionsContainer=n,exports.StyledInput=l,exports.Tag=p,exports.TagContainer=h,exports.TagText=g,exports.TagTextContainer=m;
91
78
  //# sourceMappingURL=autocomplete.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"autocomplete.styles.js","sources":["../../../../../src/components/forms/autocomplete/autocomplete.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\nimport { IconsName } from '../../icons'\nimport { Box } from '../../layout'\nimport { Text } from '../../typography'\nimport { fieldBorder, fieldShadow } from '../form.styles'\nimport { InputState } from '../form.types'\n\nexport const InputContainer = styled(Box).withConfig({\n shouldForwardProp: (prop) => !['focused'].includes(prop),\n})<{\n focused?: boolean\n disabled?: boolean\n state?: InputState\n $borderColor?: string\n}>`\n min-height: 44px;\n width: 100%;\n border-radius: ${({ theme }) => theme.border_radius.input};\n padding: ${({ theme }) => `${theme.spacing['1']} ${theme.spacing['2']}`};\n border: 1px solid ${({ theme }) => getThemeColor('grey_4', theme)};\n box-shadow: ${({ theme, state, focused, $borderColor }) =>\n fieldShadow(theme, state, !!focused, $borderColor)};\n transition:\n box-shadow 250ms ease-out,\n border-color 200ms ease;\n width: 100%;\n align-items: center;\n background-color: ${({ theme }) => getThemeColor('white', theme)};\n outline: none;\n\n ${({ disabled, theme }) =>\n disabled && `background-color: ${getThemeColor('grey_5', theme)};`}\n\n ${fieldBorder}\n`\nexport const StyledInput = styled.input.withConfig({\n shouldForwardProp: (prop) => ![''].includes(prop),\n})<{ icon?: IconsName }>`\n min-height: 100%;\n width: 100%;\n border: none;\n background: none;\n color: ${({ theme }) => getThemeColor('grey_1', theme)};\n font-size: ${({ theme }) => theme.typography.body_size.normal};\n\n &:focus {\n outline: none;\n }\n`\n\nexport const OptionsContainer = styled(Box)`\n flex-direction: column;\n max-height: 300px;\n overflow-y: auto;\n background-color: ${({ theme }) => getThemeColor('white', theme)};\n\n &::-webkit-scrollbar {\n width: 10px;\n }\n &::-webkit-scrollbar-track {\n background: ${(props) => getThemeColor('white', props.theme)};\n }\n &::-webkit-scrollbar-thumb {\n border-radius: 8px;\n background: ${(props) => getThemeColor('grey_5', props.theme)};\n }\n &::-webkit-scrollbar-thumb:hover {\n background: ${(props) => getThemeColor('grey_4', props.theme)};\n }\n\n div {\n border-bottom: 1px solid ${({ theme }) => getThemeColor('grey_5', theme)};\n }\n\n div:last-child {\n border-bottom: none;\n }\n`\n\nexport const Option = styled(Box)<{ selected: boolean; disabled?: boolean }>`\n width: 100%;\n padding: ${({ theme }) => `${theme.spacing['1']} ${theme.spacing['2']}`};\n background-color: ${({ selected, theme }) =>\n selected ? getThemeColor('secondary', theme) : 'transparent'};\n border-bottom: 1px solid ${({ theme }) => getThemeColor('grey_5', theme)};\n cursor: ${({ disabled }) => (disabled ? 'initial' : 'pointer')};\n\n &:hover {\n background-color: ${({ selected, disabled, theme }) =>\n selected || disabled ? undefined : getThemeColor('grey_5', theme)};\n }\n`\n\nexport const TagContainer = styled(Box)`\n display: flex;\n gap: ${({ theme }) => theme.spacing['1']};\n max-width: 50%;\n flex-wrap: wrap;\n`\n\nexport const Tag = styled(Box)`\n background-color: ${({ theme }) => getThemeColor('grey_5', theme)};\n border: 1px solid ${({ theme }) => getThemeColor('grey_4', theme)};\n padding: 2px 4px;\n border-radius: ${({ theme }) => theme.border_radius.input};\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing['1']};\n max-width: 100%;\n`\n\nexport const TagTextContainer = styled(Box)`\n overflow: hidden;\n`\n\nexport const TagText = styled(Text)`\n width: 100%;\n p {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n`\n"],"names":["InputContainer","styled","Box","withConfig","shouldForwardProp","prop","includes","theme","border_radius","input","spacing","getThemeColor","state","focused","$borderColor","fieldShadow","disabled","fieldBorder","StyledInput","typography","body_size","normal","OptionsContainer","props","Option","selected","undefined","TagContainer","Tag","TagTextContainer","TagText","Text"],"mappings":"mNASO,MAAMA,EAAiBC,EAAMA,OAACC,OAAKC,WAAW,CACnDC,kBAAoBC,IAAU,CAAC,WAAWC,SAASD,IAMnD;;;mBAGiB,EAAGE,WAAYA,EAAMC,cAAcC;aACzC,EAAGF,WAAY,GAAGA,EAAMG,QAAQ,MAAQH,EAAMG,QAAQ;sBAC7C,EAAGH,WAAYI,EAAaA,cAAC,SAAUJ;gBAC7C,EAAGA,QAAOK,QAAOC,UAASC,kBACtCC,EAAAA,YAAY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7C,EAAGF,WAAYA,EAAMG,QAAQ;;EAIzBmB,EAAmB5B,EAAAA,OAAOC,EAAAA,IAAI;;EAI9B4B,EAAU7B,EAAAA,OAAO8B,EAAAA,KAAK;;;;;;;"}
1
+ {"version":3,"file":"autocomplete.styles.js","sources":["../../../../../src/components/forms/autocomplete/autocomplete.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { getThemeColor, thinScrollbar } from '../../../theme'\nimport { IconsName } from '../../icons'\nimport { Box } from '../../layout'\nimport { Text } from '../../typography'\nimport { fieldBorder, fieldShadow } from '../form.styles'\nimport { InputState } from '../form.types'\n\nexport const InputContainer = styled(Box).withConfig({\n shouldForwardProp: (prop) => !['focused'].includes(prop),\n})<{\n focused?: boolean\n disabled?: boolean\n state?: InputState\n $borderColor?: string\n}>`\n min-height: 44px;\n width: 100%;\n border-radius: ${({ theme }) => theme.border_radius.input};\n padding: ${({ theme }) => `${theme.spacing['1']} ${theme.spacing['2']}`};\n border: 1px solid ${({ theme }) => getThemeColor('grey_4', theme)};\n box-shadow: ${({ theme, state, focused, $borderColor }) =>\n fieldShadow(theme, state, !!focused, $borderColor)};\n transition:\n box-shadow 250ms ease-out,\n border-color 200ms ease;\n width: 100%;\n align-items: center;\n background-color: ${({ theme }) => getThemeColor('white', theme)};\n outline: none;\n\n ${({ disabled, theme }) =>\n disabled && `background-color: ${getThemeColor('grey_5', theme)};`}\n\n ${fieldBorder}\n`\nexport const StyledInput = styled.input.withConfig({\n shouldForwardProp: (prop) => ![''].includes(prop),\n})<{ icon?: IconsName }>`\n min-height: 100%;\n width: 100%;\n border: none;\n background: none;\n color: ${({ theme }) => getThemeColor('grey_1', theme)};\n font-size: ${({ theme }) => theme.typography.body_size.normal};\n\n &:focus {\n outline: none;\n }\n`\n\nexport const OptionsContainer = styled(Box)`\n flex-direction: column;\n max-height: 300px;\n overflow-y: auto;\n background-color: ${({ theme }) => getThemeColor('white', theme)};\n ${thinScrollbar}\n\n div {\n border-bottom: 1px solid ${({ theme }) => getThemeColor('grey_5', theme)};\n }\n\n div:last-child {\n border-bottom: none;\n }\n`\n\nexport const Option = styled(Box)<{ selected: boolean; disabled?: boolean }>`\n width: 100%;\n padding: ${({ theme }) => `${theme.spacing['1']} ${theme.spacing['2']}`};\n background-color: ${({ selected, theme }) =>\n selected ? getThemeColor('secondary', theme) : 'transparent'};\n border-bottom: 1px solid ${({ theme }) => getThemeColor('grey_5', theme)};\n cursor: ${({ disabled }) => (disabled ? 'initial' : 'pointer')};\n\n &:hover {\n background-color: ${({ selected, disabled, theme }) =>\n selected || disabled ? undefined : getThemeColor('grey_5', theme)};\n }\n`\n\nexport const TagContainer = styled(Box)`\n display: flex;\n gap: ${({ theme }) => theme.spacing['1']};\n max-width: 50%;\n flex-wrap: wrap;\n`\n\nexport const Tag = styled(Box)`\n background-color: ${({ theme }) => getThemeColor('grey_5', theme)};\n border: 1px solid ${({ theme }) => getThemeColor('grey_4', theme)};\n padding: 2px 4px;\n border-radius: ${({ theme }) => theme.border_radius.input};\n display: flex;\n align-items: center;\n gap: ${({ theme }) => theme.spacing['1']};\n max-width: 100%;\n`\n\nexport const TagTextContainer = styled(Box)`\n overflow: hidden;\n`\n\nexport const TagText = styled(Text)`\n width: 100%;\n p {\n text-overflow: ellipsis;\n white-space: nowrap;\n overflow: hidden;\n }\n`\n"],"names":["InputContainer","styled","Box","withConfig","shouldForwardProp","prop","includes","theme","border_radius","input","spacing","getThemeColor","state","focused","$borderColor","fieldShadow","disabled","fieldBorder","StyledInput","typography","body_size","normal","OptionsContainer","thinScrollbar","Option","selected","undefined","TagContainer","Tag","TagTextContainer","TagText","Text"],"mappings":"4PASO,MAAMA,EAAiBC,EAAMA,OAACC,OAAKC,WAAW,CACnDC,kBAAoBC,IAAU,CAAC,WAAWC,SAASD,IAMnD;;;mBAGiB,EAAGE,WAAYA,EAAMC,cAAcC;aACzC,EAAGF,WAAY,GAAGA,EAAMG,QAAQ,MAAQH,EAAMG,QAAQ;sBAC7C,EAA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A,OAAOC,EAAAA,IAAI;;EAI9B4B,EAAU7B,EAAAA,OAAO8B,EAAAA,KAAK;;;;;;;"}
@@ -1,2 +1,2 @@
1
- "use strict";var e=require("react/jsx-runtime"),o=require("./icon-box.styles.js"),r=require("../icon/icon.comp.js");exports.IconBox=({icon:i,color:s,size:c=24})=>e.jsx(o.Wrapper,{"data-testid":"icon-box",children:s?e.jsx(r.Icon,{name:i,size:c,color:s}):e.jsx(r.Icon,{name:i,size:c,gradient:!0})});
1
+ "use strict";var e=require("react/jsx-runtime"),r=require("./icon-box.styles.js"),o=require("../icon/icon.comp.js");exports.IconBox=({icon:i,color:s,size:n=24,shape:c="square",gradientBorder:a})=>e.jsx(r.Wrapper,{"data-testid":"icon-box",$shape:c,$gradientBorder:a,children:s?e.jsx(o.Icon,{name:i,size:n,color:s}):e.jsx(o.Icon,{name:i,size:n,gradient:!0})});
2
2
  //# sourceMappingURL=icon-box.comp.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-box.comp.js","sources":["../../../../../src/components/icons/icon-box/icon-box.comp.tsx"],"sourcesContent":["import { Icon } from '../icon'\n\nimport { IconBoxProps } from './icon-box.types'\n\nimport * as Styles from './icon-box.styles'\n\n/**\n * Ícone dentro de uma caixinha com borda e sombra leve. É o ícone dos títulos de card e dos números\n * das dashboards. Sem `color`, o ícone vem no gradiente da marca.\n * Use para identificar um bloco; não use como botão (use IconButton).\n * @example <IconBox icon=\"file_list3\" />\n */\nexport const IconBox = ({ icon, color, size = 24 }: IconBoxProps) => (\n <Styles.Wrapper data-testid=\"icon-box\">\n {color ? (\n <Icon name={icon} size={size} color={color} />\n ) : (\n <Icon name={icon} size={size} gradient />\n )}\n </Styles.Wrapper>\n)\n"],"names":["IconBox","icon","color","size","_jsx","Styles","children","Icon","name","jsx","gradient"],"mappings":"oIAYuBA,EAAGC,OAAMC,QAAOC,OAAO,MAC5CC,EAAAA,IAACC,EAAAA,QAA2B,CAAA,cAAA,WACzBC,SAAAJ,EACCE,MAACG,OAAI,CAACC,KAAMP,EAAME,KAAMA,EAAMD,MAAOA,IAErCE,EAACK,IAAAF,OAAK,CAAAC,KAAMP,EAAME,KAAMA,EAAMO,UAAQ"}
1
+ {"version":3,"file":"icon-box.comp.js","sources":["../../../../../src/components/icons/icon-box/icon-box.comp.tsx"],"sourcesContent":["import { Icon } from '../icon'\n\nimport { IconBoxProps } from './icon-box.types'\n\nimport * as Styles from './icon-box.styles'\n\n/**\n * Ícone dentro de uma caixinha com borda e sombra leve. É o ícone dos títulos de card e dos números\n * das dashboards. Sem `color`, o ícone vem no gradiente da marca.\n * `shape=\"circle\"` com `gradientBorder=\"animated\"` é o ícone de um agente de IA ao lado do nome dele.\n * Use para identificar um bloco; não use como botão (use IconButton).\n * @example <IconBox icon=\"file_list3\" />\n * @example <IconBox icon=\"robot2\" shape=\"circle\" gradientBorder=\"animated\" />\n */\nexport const IconBox = ({\n icon,\n color,\n size = 24,\n shape = 'square',\n gradientBorder,\n}: IconBoxProps) => (\n <Styles.Wrapper\n data-testid=\"icon-box\"\n $shape={shape}\n $gradientBorder={gradientBorder}\n >\n {color ? (\n <Icon name={icon} size={size} color={color} />\n ) : (\n <Icon name={icon} size={size} gradient />\n )}\n </Styles.Wrapper>\n)\n"],"names":["IconBox","icon","color","size","shape","gradientBorder","_jsx","Styles","$gradientBorder","children","Icon","name","gradient"],"mappings":"oIAcuBA,EACrBC,OACAC,QACAC,OAAO,GACPC,QAAQ,SACRC,oBAEAC,EAAAA,IAACC,EAAAA,QACa,CAAA,cAAA,kBACJH,EAAKI,gBACIH,EAAcI,SAE9BP,EACCI,MAACI,OAAI,CAACC,KAAMV,EAAME,KAAMA,EAAMD,MAAOA,IAErCI,MAACI,OAAI,CAACC,KAAMV,EAAME,KAAMA,EAAMS,UAAQ"}
@@ -1,10 +1,13 @@
1
- "use strict";var e=require("styled-components"),t=require("../../layout/box/box.comp.js"),r=require("../../../theme/theme.util.js");const o=e.styled(t.Box)`
1
+ "use strict";var e=require("styled-components"),r=require("../../../theme/gradient-border.js"),t=require("../../layout/box/box.comp.js"),i=require("../../../theme/theme.util.js");const d=e.styled(t.Box)`
2
2
  flex: none;
3
3
  align-items: center;
4
4
  justify-content: center;
5
5
  padding: 10px;
6
- border: 1px solid ${({theme:e})=>r.getThemeColor("grey_5",e)};
7
- border-radius: ${({theme:e})=>e.radius.lg};
6
+ border-radius: ${({$shape:e,theme:r})=>"circle"===e?r.radius.full:r.radius.lg};
8
7
  box-shadow: ${({theme:e})=>e.box_shadow.input};
9
- `;exports.Wrapper=o;
8
+
9
+ ${({$gradientBorder:t,$shape:d,theme:s})=>t?r.gradientBorder({animated:"animated"===t,width:"animated"===t?2:1,radius:"circle"===d?s.radius.full:s.radius.lg,theme:s}):e.css`
10
+ border: 1px solid ${i.getThemeColor("grey_5",s)};
11
+ `}
12
+ `;exports.Wrapper=d;
10
13
  //# sourceMappingURL=icon-box.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"icon-box.styles.js","sources":["../../../../../src/components/icons/icon-box/icon-box.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\nimport { Box } from '../../layout/box'\n\nexport const Wrapper = styled(Box)`\n flex: none;\n align-items: center;\n justify-content: center;\n padding: 10px;\n border: 1px solid ${({ theme }) => getThemeColor('grey_5', theme)};\n border-radius: ${({ theme }) => theme.radius.lg};\n box-shadow: ${({ theme }) => theme.box_shadow.input};\n`\n"],"names":["Wrapper","styled","Box","theme","getThemeColor","radius","lg","box_shadow","input"],"mappings":"0IAKaA,EAAUC,EAAAA,OAAOC,EAAAA,IAAI;;;;;sBAKZ,EAAGC,WAAYC,EAAaA,cAAC,SAAUD;mBAC1C,EAAGA,WAAYA,EAAME,OAAOC;gBAC/B,EAAGH,WAAYA,EAAMI,WAAWC;"}
1
+ {"version":3,"file":"icon-box.styles.js","sources":["../../../../../src/components/icons/icon-box/icon-box.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { getThemeColor } from '../../../theme'\nimport { gradientBorder } from '../../../theme/gradient-border'\nimport { Box } from '../../layout/box'\n\nimport { IconBoxShape } from './icon-box.types'\n\nexport const Wrapper = styled(Box)<{\n $shape: IconBoxShape\n $gradientBorder?: boolean | 'animated'\n}>`\n flex: none;\n align-items: center;\n justify-content: center;\n padding: 10px;\n border-radius: ${({ $shape, theme }) =>\n $shape === 'circle' ? theme.radius.full : theme.radius.lg};\n box-shadow: ${({ theme }) => theme.box_shadow.input};\n\n ${({ $gradientBorder, $shape, theme }) =>\n $gradientBorder\n ? gradientBorder({\n animated: $gradientBorder === 'animated',\n width: $gradientBorder === 'animated' ? 2 : 1,\n radius: $shape === 'circle' ? theme.radius.full : theme.radius.lg,\n theme,\n })\n : css`\n border: 1px solid ${getThemeColor('grey_5', theme)};\n `}\n`\n"],"names":["Wrapper","styled","Box","$shape","theme","radius","full","lg","box_shadow","input","$gradientBorder","gradientBorder","animated","width","css","getThemeColor"],"mappings":"yLAQaA,EAAUC,EAAAA,OAAOC,EAAAA,IAG5B;;;;;mBAKiB,EAAGC,SAAQC,WACf,WAAXD,EAAsBC,EAAMC,OAAOC,KAAOF,EAAMC,OAAOE;gBAC3C,EAAGH,WAAYA,EAAMI,WAAWC;;IAE5C,EAAGC,kBAAiBP,SAAQC,WAC5BM,EACIC,EAAAA,eAAe,CACbC,SAA8B,aAApBF,EACVG,MAA2B,aAApBH,EAAiC,EAAI,EAC5CL,OAAmB,WAAXF,EAAsBC,EAAMC,OAAOC,KAAOF,EAAMC,OAAOE,GAC/DH,UAEFU,EAAAA,GAAG;8BACmBC,EAAaA,cAAC,SAAUX;;"}
@@ -1,53 +1,4 @@
1
- "use strict";var o=require("styled-components"),r=require("../box/box.comp.js");const e=o.keyframes`
2
- to {
3
- transform: translate(-50%, -50%) rotate(360deg);
4
- }
5
- `,t=o.styled(r.Box)`
6
- ${({$animated:r,$width:t,$radius:a,theme:n})=>r?o.css`
7
- position: relative;
8
- isolation: isolate;
9
- overflow: hidden;
10
- border: none;
11
- background: transparent;
12
-
13
- &::before {
14
- content: '';
15
- position: absolute;
16
- top: 50%;
17
- left: 50%;
18
- z-index: -2;
19
- width: max(250%, 1200px);
20
- aspect-ratio: 1;
21
- background: conic-gradient(
22
- ${n.colors.primary},
23
- ${n.colors.secondary},
24
- ${n.colors.primary}
25
- );
26
- transform: translate(-50%, -50%);
27
- animation: ${e} 4s linear infinite;
28
- will-change: transform;
29
- }
30
-
31
- &::after {
32
- content: '';
33
- position: absolute;
34
- inset: ${t}px;
35
- z-index: -1;
36
- border-radius: max(0px, calc(${a} - ${t}px));
37
- background: ${n.colors.white};
38
- }
39
-
40
- @media (prefers-reduced-motion: reduce) {
41
- &::before {
42
- animation: none;
43
- }
44
- }
45
- `:o.css`
46
- border: ${t}px solid transparent;
47
- background:
48
- linear-gradient(${n.colors.white}, ${n.colors.white})
49
- padding-box,
50
- ${n.colors.brand.gradient} border-box;
51
- `}
52
- `;exports.GradientCard=t;
1
+ "use strict";var e=require("styled-components"),r=require("../../../theme/gradient-border.js"),t=require("../box/box.comp.js");const d=e.styled(t.Box)`
2
+ ${({$animated:e,$width:t,$radius:d,theme:i})=>r.gradientBorder({animated:e,width:t,radius:d,theme:i})}
3
+ `;exports.GradientCard=d;
53
4
  //# sourceMappingURL=card.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"card.styles.js","sources":["../../../../../src/components/layout/card/card.styles.tsx"],"sourcesContent":["import { css, keyframes, styled } from 'styled-components'\n\nimport { Box } from '../box'\n\nconst spin = keyframes`\n to {\n transform: translate(-50%, -50%) rotate(360deg);\n }\n`\n\nexport const GradientCard = styled(Box)<{\n $animated: boolean\n $width: number\n $radius: string\n}>`\n ${({ $animated, $width, $radius, theme }) =>\n $animated\n ? css`\n position: relative;\n isolation: isolate;\n overflow: hidden;\n border: none;\n background: transparent;\n\n &::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n z-index: -2;\n width: max(250%, 1200px);\n aspect-ratio: 1;\n background: conic-gradient(\n ${theme.colors.primary},\n ${theme.colors.secondary},\n ${theme.colors.primary}\n );\n transform: translate(-50%, -50%);\n animation: ${spin} 4s linear infinite;\n will-change: transform;\n }\n\n &::after {\n content: '';\n position: absolute;\n inset: ${$width}px;\n z-index: -1;\n border-radius: max(0px, calc(${$radius} - ${$width}px));\n background: ${theme.colors.white};\n }\n\n @media (prefers-reduced-motion: reduce) {\n &::before {\n animation: none;\n }\n }\n `\n : css`\n border: ${$width}px solid transparent;\n background:\n linear-gradient(${theme.colors.white}, ${theme.colors.white})\n padding-box,\n ${theme.colors.brand.gradient} border-box;\n `}\n`\n"],"names":["spin","keyframes","GradientCard","styled","Box","$animated","$width","$radius","theme","css","colors","primary","secondary","white","brand","gradient"],"mappings":"gFAIA,MAAMA,EAAOC,EAAAA,SAAS;;;;EAMTC,EAAeC,EAAAA,OAAOC,EAAAA,IAIjC;IACE,EAAGC,YAAWC,SAAQC,UAASC,WAC/BH,EACII,EAAAA,GAAG;;;;;;;;;;;;;;;;gBAgBKD,EAAME,OAAOC;gBACbH,EAAME,OAAOE;gBACbJ,EAAME,OAAOC;;;yBAGJX;;;;;;;qBAOJM;;2CAEsBC,OAAaD;0BAC9BE,EAAME,OAAOG;;;;;;;;UAS/BJ,EAAAA,GAAG;oBACSH;;8BAEUE,EAAME,OAAOG,UAAUL,EAAME,OAAOG;;cAEpDL,EAAME,OAAOI,MAAMC;;"}
1
+ {"version":3,"file":"card.styles.js","sources":["../../../../../src/components/layout/card/card.styles.tsx"],"sourcesContent":["import { styled } from 'styled-components'\n\nimport { gradientBorder } from '../../../theme/gradient-border'\nimport { Box } from '../box'\n\nexport const GradientCard = styled(Box)<{\n $animated: boolean\n $width: number\n $radius: string\n}>`\n ${({ $animated, $width, $radius, theme }) =>\n gradientBorder({\n animated: $animated,\n width: $width,\n radius: $radius,\n theme,\n })}\n`\n"],"names":["GradientCard","styled","Box","$animated","$width","$radius","theme","gradientBorder","animated","width","radius"],"mappings":"qIAKaA,EAAeC,EAAAA,OAAOC,EAAAA,IAIjC;IACE,EAAGC,YAAWC,SAAQC,UAASC,WAC/BC,iBAAe,CACbC,SAAUL,EACVM,MAAOL,EACPM,OAAQL,EACRC;"}
@@ -1,4 +1,4 @@
1
- "use strict";var r=require("styled-components"),e=require("../box/box.comp.js");const t=r.styled(e.Box)`
1
+ "use strict";var r=require("styled-components"),e=require("../box/box.comp.js"),t=require("../../../theme/scrollbar.js");const o=r.styled(e.Box)`
2
2
  position: fixed;
3
3
  top: 0;
4
4
  left: 0;
@@ -11,7 +11,7 @@
11
11
  transition:
12
12
  opacity 0.3s ease,
13
13
  visibility 0.3s ease;
14
- `,o=r.styled(e.Box).attrs((({$transform:r})=>({style:{transform:r}})))`
14
+ `,s=r.styled(e.Box).attrs((({$transform:r})=>({style:{transform:r}})))`
15
15
  position: absolute;
16
16
  background-color: transparent;
17
17
  transition: transform 0.3s ease;
@@ -52,7 +52,7 @@
52
52
  border-radius: 1rem 1rem 0 0;
53
53
  box-shadow: ${s.shadow.lg};
54
54
  `}}}
55
- `,s=r.styled(e.Box)`
55
+ `,a=r.styled(e.Box)`
56
56
  position: sticky;
57
57
  top: 0;
58
58
  flex-shrink: 0;
@@ -77,17 +77,19 @@
77
77
  width: 100%;
78
78
  border-radius: 1rem 1rem 0 0;
79
79
  `}}};
80
- `,a=r.styled(e.Box)`
80
+ `,i=r.styled(e.Box)`
81
81
  width: 100%;
82
82
  height: 100%;
83
83
  flex: 1;
84
84
  overflow: auto;
85
+ ${t.thinScrollbar}
85
86
  flex-direction: column;
86
87
  background-color: ${({theme:r})=>r.colors.white};
87
88
  & > div {
88
89
  overflow: auto;
90
+ ${t.thinScrollbar}
89
91
  display: flex;
90
92
  flex-direction: column;
91
93
  }
92
- `,i=r.styled(e.Box).attrs((({$dragging:r})=>({style:{cursor:r?"grabbing":"grab",transition:r?"none":"transform 0.2s ease"}})))``;exports.DragArea=i,exports.DrawerButton=s,exports.DrawerChildren=a,exports.DrawerContainer=o,exports.Overlay=t;
94
+ `,n=r.styled(e.Box).attrs((({$dragging:r})=>({style:{cursor:r?"grabbing":"grab",transition:r?"none":"transform 0.2s ease"}})))``;exports.DragArea=n,exports.DrawerButton=a,exports.DrawerChildren=i,exports.DrawerContainer=s,exports.Overlay=o;
93
95
  //# sourceMappingURL=drawer.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.styles.js","sources":["../../../../../src/components/layout/drawer/drawer.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { Box } from '../box'\n\nexport const Overlay = styled(Box)<{\n open: boolean\n}>`\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: transparent;\n z-index: ${({ theme }) => theme.zIndex?.drawer ?? 1100};\n opacity: ${({ open }) => (open ? 1 : 0)};\n visibility: ${({ open }) => (open ? 'visible' : 'hidden')};\n transition:\n opacity 0.3s ease,\n visibility 0.3s ease;\n`\n\nexport const DrawerContainer = styled(Box).attrs<{ $transform?: string }>(\n ({ $transform }) => ({ style: { transform: $transform } }),\n)<{\n open: boolean\n $anchor?: 'left' | 'right' | 'top' | 'bottom'\n height?: string | number\n}>`\n position: absolute;\n background-color: transparent;\n transition: transform 0.3s ease;\n cursor: pointer;\n max-width: 100%;\n box-sizing: border-box;\n\n ${({ open, $anchor, height, theme }) => {\n switch ($anchor) {\n case 'left':\n return css`\n top: 0;\n left: 0;\n height: 100%;\n width: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateX(0)' : 'translateX(-100%)'};\n border-radius: 0 1rem 1rem 0;\n box-shadow: ${theme.shadow.lg};\n `\n case 'right':\n return css`\n top: 0;\n right: 0;\n height: 100%;\n width: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateX(0)' : 'translateX(100%)'};\n border-radius: 1rem 0 0 1rem;\n box-shadow: ${theme.shadow.lg};\n `\n case 'top':\n return css`\n top: 0;\n left: 0;\n right: 0;\n height: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateY(0)' : 'translateY(-100%)'};\n border-radius: 0 0 1rem 1rem;\n box-shadow: ${theme.shadow.lg};\n `\n case 'bottom':\n default:\n return css`\n bottom: 0;\n left: 0;\n right: 0;\n height: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateY(0)' : 'translateY(100%)'};\n border-radius: 1rem 1rem 0 0;\n box-shadow: ${theme.shadow.lg};\n `\n }\n }}\n`\n\nexport const DrawerButton = styled(Box)<{\n $anchor?: 'left' | 'right' | 'top' | 'bottom'\n}>`\n position: sticky;\n top: 0;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n padding: 0.25rem;\n background-color: ${({ theme }) => theme.colors.grey_5};\n min-height: 1.5rem;\n\n ${({ $anchor }) => {\n switch ($anchor) {\n case 'left':\n return css`\n border-radius: 0 1rem 1rem 0;\n height: 100%;\n width: 2rem;\n `\n case 'right':\n return css`\n border-radius: 1rem 0 0 1rem;\n height: 100%;\n width: 2rem;\n `\n case 'top':\n return css`\n width: 100%;\n border-radius: 0 0 1rem 1rem;\n `\n case 'bottom':\n default:\n return css`\n width: 100%;\n border-radius: 1rem 1rem 0 0;\n `\n }\n }};\n`\n\nexport const DrawerChildren = styled(Box)`\n width: 100%;\n height: 100%;\n flex: 1;\n overflow: auto;\n flex-direction: column;\n background-color: ${({ theme }) => theme.colors.white};\n & > div {\n overflow: auto;\n display: flex;\n flex-direction: column;\n }\n`\n\nexport const DragArea = styled(Box).attrs<{ $dragging: boolean }>(\n ({ $dragging }) => ({\n style: {\n cursor: $dragging ? 'grabbing' : 'grab',\n transition: $dragging ? 'none' : 'transform 0.2s ease',\n },\n }),\n)``\n"],"names":["Overlay","styled","Box","theme","zIndex","drawer","open","DrawerContainer","attrs","$transform","style","transform","$anchor","height","css","shadow","lg","DrawerButton","colors","grey_5","DrawerChildren","white","DragArea","$dragging","cursor","transition"],"mappings":"sFAIaA,EAAUC,EAAAA,OAAOC,EAAAA,IAE5B;;;;;;;aAOW,EAAGC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","sources":["../../../../../src/components/layout/drawer/drawer.styles.tsx"],"sourcesContent":["import { css, styled } from 'styled-components'\n\nimport { thinScrollbar } from '../../../theme'\nimport { Box } from '../box'\n\nexport const Overlay = styled(Box)<{\n open: boolean\n}>`\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: transparent;\n z-index: ${({ theme }) => theme.zIndex?.drawer ?? 1100};\n opacity: ${({ open }) => (open ? 1 : 0)};\n visibility: ${({ open }) => (open ? 'visible' : 'hidden')};\n transition:\n opacity 0.3s ease,\n visibility 0.3s ease;\n`\n\nexport const DrawerContainer = styled(Box).attrs<{ $transform?: string }>(\n ({ $transform }) => ({ style: { transform: $transform } }),\n)<{\n open: boolean\n $anchor?: 'left' | 'right' | 'top' | 'bottom'\n height?: string | number\n}>`\n position: absolute;\n background-color: transparent;\n transition: transform 0.3s ease;\n cursor: pointer;\n max-width: 100%;\n box-sizing: border-box;\n\n ${({ open, $anchor, height, theme }) => {\n switch ($anchor) {\n case 'left':\n return css`\n top: 0;\n left: 0;\n height: 100%;\n width: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateX(0)' : 'translateX(-100%)'};\n border-radius: 0 1rem 1rem 0;\n box-shadow: ${theme.shadow.lg};\n `\n case 'right':\n return css`\n top: 0;\n right: 0;\n height: 100%;\n width: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateX(0)' : 'translateX(100%)'};\n border-radius: 1rem 0 0 1rem;\n box-shadow: ${theme.shadow.lg};\n `\n case 'top':\n return css`\n top: 0;\n left: 0;\n right: 0;\n height: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateY(0)' : 'translateY(-100%)'};\n border-radius: 0 0 1rem 1rem;\n box-shadow: ${theme.shadow.lg};\n `\n case 'bottom':\n default:\n return css`\n bottom: 0;\n left: 0;\n right: 0;\n height: ${typeof height === 'number' ? `${height}px` : height};\n transform: ${open ? 'translateY(0)' : 'translateY(100%)'};\n border-radius: 1rem 1rem 0 0;\n box-shadow: ${theme.shadow.lg};\n `\n }\n }}\n`\n\nexport const DrawerButton = styled(Box)<{\n $anchor?: 'left' | 'right' | 'top' | 'bottom'\n}>`\n position: sticky;\n top: 0;\n flex-shrink: 0;\n justify-content: center;\n align-items: center;\n padding: 0.25rem;\n background-color: ${({ theme }) => theme.colors.grey_5};\n min-height: 1.5rem;\n\n ${({ $anchor }) => {\n switch ($anchor) {\n case 'left':\n return css`\n border-radius: 0 1rem 1rem 0;\n height: 100%;\n width: 2rem;\n `\n case 'right':\n return css`\n border-radius: 1rem 0 0 1rem;\n height: 100%;\n width: 2rem;\n `\n case 'top':\n return css`\n width: 100%;\n border-radius: 0 0 1rem 1rem;\n `\n case 'bottom':\n default:\n return css`\n width: 100%;\n border-radius: 1rem 1rem 0 0;\n `\n }\n }};\n`\n\nexport const DrawerChildren = styled(Box)`\n width: 100%;\n height: 100%;\n flex: 1;\n overflow: auto;\n ${thinScrollbar}\n flex-direction: column;\n background-color: ${({ theme }) => theme.colors.white};\n & > div {\n overflow: auto;\n ${thinScrollbar}\n display: flex;\n flex-direction: column;\n }\n`\n\nexport const DragArea = styled(Box).attrs<{ $dragging: boolean }>(\n ({ $dragging }) => ({\n style: {\n cursor: $dragging ? 'grabbing' : 'grab',\n transition: $dragging ? 'none' : 'transform 0.2s ease',\n },\n }),\n)``\n"],"names":["Overlay","styled","Box","theme","zIndex","drawer","open","DrawerContainer","attrs","$transform","style","transform","$anchor","height","css","shadow","lg","DrawerButton","colors","grey_5","DrawerChildren","thinScrollbar","white","DragArea","$dragging","cursor","transition"],"mappings":"+HAKaA,EAAUC,EAAAA,OAAOC,EAAAA,IAE5B;;;;;;;aAOW,EAAGC,WAAYA,EAAMC,QAAQC,QAAU;aACvC,EAAGC,UAAYA,EAAO,EAAI;gBACvB,EAAGA,UAAYA,EAAO,UAAY;;;;EAMrCC,EAAkBN,EAAMA,OAACC,OAAKM,OACzC,EAAGC,iBAAkB,CAAEC,MAAO,CAAEC,U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