react-restyle-components 0.4.46 → 0.4.47

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 (231) hide show
  1. package/lib/index.js +1 -3
  2. package/lib/src/core-components/index.js +1 -1
  3. package/lib/src/core-components/src/components/Accordion/AccordionSection/Accordion.js +1 -15
  4. package/lib/src/core-components/src/components/Accordion/AccordionSection/AccordionContext.js +1 -6
  5. package/lib/src/core-components/src/components/Accordion/AccordionSection/AccordionSection.js +1 -39
  6. package/lib/src/core-components/src/components/Accordion/AccordionSection/Header.js +1 -39
  7. package/lib/src/core-components/src/components/Accordion/AccordionSection/elements.js +57 -94
  8. package/lib/src/core-components/src/components/Accordion/AccordionSection/hooks/useCurrentAccordionIndex.js +1 -13
  9. package/lib/src/core-components/src/components/Accordion/AccordionSection/index.js +1 -3
  10. package/lib/src/core-components/src/components/Accordion/AccordionSection/types.js +1 -9
  11. package/lib/src/core-components/src/components/Accordion/Collapsible/Collapsible2.component.js +1 -249
  12. package/lib/src/core-components/src/components/Action/types.js +1 -8
  13. package/lib/src/core-components/src/components/AlertBanner/AlertBanner.js +1 -45
  14. package/lib/src/core-components/src/components/AlertBanner/elements.js +45 -120
  15. package/lib/src/core-components/src/components/AlertBanner/index.js +1 -2
  16. package/lib/src/core-components/src/components/AlertBanner/types.js +1 -10
  17. package/lib/src/core-components/src/components/AutoComplete/auto-complete-filter-group-by-multiple-select-multiple-fields-display/auto-complete-filter-group-by-multiple-select-multiple-fields-display.component.js +1 -451
  18. package/lib/src/core-components/src/components/AutoComplete/auto-complete-filter-multi-select-multi-fields-display-drag-drop/auto-complete-filter-multi-select-multi-fields-display-drag-drop.component.js +1 -229
  19. package/lib/src/core-components/src/components/AutoComplete/auto-complete-filter-multi-select-selected-top-display/auto-complete-filter-multi-select-selected-top-display.component.js +1 -174
  20. package/lib/src/core-components/src/components/AutoComplete/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.js +2 -129
  21. package/lib/src/core-components/src/components/AutoComplete/auto-complete-filter-single-select/auto-complete-filter-single-select.component.js +1 -55
  22. package/lib/src/core-components/src/components/AutoComplete/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.js +2 -308
  23. package/lib/src/core-components/src/components/AutoComplete/auto-complete-group-by/auto-complete-group-by.component.js +1 -115
  24. package/lib/src/core-components/src/components/AutoComplete/autocomplete/autocomplete.js +2 -442
  25. package/lib/src/core-components/src/components/AutoComplete/index.js +1 -8
  26. package/lib/src/core-components/src/components/Avatar/Avatar.js +14 -148
  27. package/lib/src/core-components/src/components/Badge/Badge.js +2 -25
  28. package/lib/src/core-components/src/components/Badge/InnerBadge/Inline.js +1 -25
  29. package/lib/src/core-components/src/components/Badge/InnerBadge/InnerBadge.js +1 -25
  30. package/lib/src/core-components/src/components/Badge/InnerBadge/elements.js +32 -78
  31. package/lib/src/core-components/src/components/Badge/InnerBadge/index.js +1 -1
  32. package/lib/src/core-components/src/components/Badge/index.js +1 -1
  33. package/lib/src/core-components/src/components/Badge/types.js +1 -5
  34. package/lib/src/core-components/src/components/Breadcrumb/Breadcrumb.js +1 -83
  35. package/lib/src/core-components/src/components/Breadcrumb/elements.js +94 -166
  36. package/lib/src/core-components/src/components/Breadcrumb/index.js +1 -3
  37. package/lib/src/core-components/src/components/Breadcrumb/types.js +1 -3
  38. package/lib/src/core-components/src/components/Button/button.component.js +1 -18
  39. package/lib/src/core-components/src/components/Button/buttonGroup/buttonGroup.component.js +1 -4
  40. package/lib/src/core-components/src/components/Button/index.js +1 -2
  41. package/lib/src/core-components/src/components/Button/types.js +1 -1
  42. package/lib/src/core-components/src/components/Chip/Chip.js +1 -64
  43. package/lib/src/core-components/src/components/Chip/elements.js +48 -148
  44. package/lib/src/core-components/src/components/Chip/index.js +1 -2
  45. package/lib/src/core-components/src/components/Chip/types.js +1 -4
  46. package/lib/src/core-components/src/components/Divider/Divider.js +1 -25
  47. package/lib/src/core-components/src/components/Divider/elements.js +31 -68
  48. package/lib/src/core-components/src/components/Divider/index.js +1 -2
  49. package/lib/src/core-components/src/components/Divider/types.js +1 -4
  50. package/lib/src/core-components/src/components/DynamicGrid/DynamicGrid.js +1 -147
  51. package/lib/src/core-components/src/components/DynamicGrid/GridContainer.js +17 -24
  52. package/lib/src/core-components/src/components/DynamicGrid/elements.js +100 -162
  53. package/lib/src/core-components/src/components/DynamicGrid/index.js +1 -3
  54. package/lib/src/core-components/src/components/DynamicGrid/types.js +1 -28
  55. package/lib/src/core-components/src/components/DynamicGrid/utils.js +1 -193
  56. package/lib/src/core-components/src/components/FormField/FormField.js +1 -103
  57. package/lib/src/core-components/src/components/FormField/components/CheckboxGroupInput.js +1 -37
  58. package/lib/src/core-components/src/components/FormField/components/CheckboxInput.js +1 -8
  59. package/lib/src/core-components/src/components/FormField/components/CssMultilineInput.js +1 -192
  60. package/lib/src/core-components/src/components/FormField/components/DatePickerInput.js +1 -99
  61. package/lib/src/core-components/src/components/FormField/components/DropdownInput.js +1 -70
  62. package/lib/src/core-components/src/components/FormField/components/OtpInput.js +1 -81
  63. package/lib/src/core-components/src/components/FormField/components/PasswordInput.js +1 -40
  64. package/lib/src/core-components/src/components/FormField/components/PinInput.js +1 -75
  65. package/lib/src/core-components/src/components/FormField/components/RadioInput.js +1 -54
  66. package/lib/src/core-components/src/components/FormField/components/TextDropdownInput.js +1 -94
  67. package/lib/src/core-components/src/components/FormField/components/ToggleInput.js +1 -36
  68. package/lib/src/core-components/src/components/FormField/components/index.js +1 -11
  69. package/lib/src/core-components/src/components/FormField/css-properties.js +1 -161
  70. package/lib/src/core-components/src/components/FormField/index.js +1 -2
  71. package/lib/src/core-components/src/components/Icon/Icon.js +1 -159
  72. package/lib/src/core-components/src/components/Icon/index.js +1 -2
  73. package/lib/src/core-components/src/components/Icon/types.js +1 -9
  74. package/lib/src/core-components/src/components/Loader/loader.component.js +2 -215
  75. package/lib/src/core-components/src/components/Masonry/Masonry.js +1 -73
  76. package/lib/src/core-components/src/components/Masonry/elements.js +29 -46
  77. package/lib/src/core-components/src/components/Masonry/hooks.js +1 -100
  78. package/lib/src/core-components/src/components/Masonry/index.js +1 -3
  79. package/lib/src/core-components/src/components/Masonry/types.js +1 -1
  80. package/lib/src/core-components/src/components/Modal/BasicModal/modal.component.js +1 -116
  81. package/lib/src/core-components/src/components/Modal/index.js +1 -2
  82. package/lib/src/core-components/src/components/Modal/modal-confirm/modal-confirm.component.js +1 -147
  83. package/lib/src/core-components/src/components/Picker/color-picker/color-picker.component.js +1 -12
  84. package/lib/src/core-components/src/components/Picker/color-picker-modal/color-picker-modal.component.js +1 -40
  85. package/lib/src/core-components/src/components/Picker/index.js +1 -2
  86. package/lib/src/core-components/src/components/Selection/index.js +1 -4
  87. package/lib/src/core-components/src/components/Selection/multi-select/multi-select.component.js +1 -49
  88. package/lib/src/core-components/src/components/Selection/multi-select-with-field/multi-select-with-field.component.js +1 -58
  89. package/lib/src/core-components/src/components/Selection/multi-selection-dropdown/multi-selection-dropdown.component.js +1 -43
  90. package/lib/src/core-components/src/components/Selection/single-select/single-select.component.js +1 -87
  91. package/lib/src/core-components/src/components/Skeleton/Skeleton.js +1 -51
  92. package/lib/src/core-components/src/components/Skeleton/elements.js +54 -143
  93. package/lib/src/core-components/src/components/Skeleton/index.js +1 -2
  94. package/lib/src/core-components/src/components/Skeleton/types.js +1 -4
  95. package/lib/src/core-components/src/components/SpeedDial/SpeedDial.js +1 -128
  96. package/lib/src/core-components/src/components/SpeedDial/elements.js +62 -132
  97. package/lib/src/core-components/src/components/SpeedDial/index.js +1 -2
  98. package/lib/src/core-components/src/components/SpeedDial/types.js +1 -3
  99. package/lib/src/core-components/src/components/Stepper2/stepper.component.js +1 -139
  100. package/lib/src/core-components/src/components/Switch/Switch.js +1 -26
  101. package/lib/src/core-components/src/components/Switch/elements.js +34 -103
  102. package/lib/src/core-components/src/components/Switch/index.js +1 -2
  103. package/lib/src/core-components/src/components/Switch/types.js +1 -3
  104. package/lib/src/core-components/src/components/Table/Table.js +1 -1489
  105. package/lib/src/core-components/src/components/Table/columnReorder.js +36 -332
  106. package/lib/src/core-components/src/components/Table/columnResize.js +21 -284
  107. package/lib/src/core-components/src/components/Table/elements.js +173 -277
  108. package/lib/src/core-components/src/components/Table/filters.js +30 -555
  109. package/lib/src/core-components/src/components/Table/hooks.js +2 -536
  110. package/lib/src/core-components/src/components/Table/index.js +1 -6
  111. package/lib/src/core-components/src/components/Table/types.js +1 -1
  112. package/lib/src/core-components/src/components/Tabs/tabs.component.js +1 -22
  113. package/lib/src/core-components/src/components/Tags1/Tags.component.js +1 -118
  114. package/lib/src/core-components/src/components/Tags1/types.js +1 -20
  115. package/lib/src/core-components/src/components/Timer1/timer.component.js +1 -76
  116. package/lib/src/core-components/src/components/Toast/Toast.js +1 -50
  117. package/lib/src/core-components/src/components/Toast/elements.js +41 -122
  118. package/lib/src/core-components/src/components/Toast/index.js +1 -2
  119. package/lib/src/core-components/src/components/Toast/types.js +1 -9
  120. package/lib/src/core-components/src/components/Tooltip/Tooltip.js +1 -200
  121. package/lib/src/core-components/src/components/Tooltip/elements.js +55 -117
  122. package/lib/src/core-components/src/components/Tooltip/index.js +1 -2
  123. package/lib/src/core-components/src/components/Tooltip/types.js +1 -17
  124. package/lib/src/core-components/src/components/Tooltip/utils.js +1 -140
  125. package/lib/src/core-components/src/components/TreeSelect/TreeSelect.js +1 -303
  126. package/lib/src/core-components/src/components/TreeSelect/elements.js +117 -216
  127. package/lib/src/core-components/src/components/TreeSelect/hooks.js +1 -252
  128. package/lib/src/core-components/src/components/TreeSelect/index.js +1 -3
  129. package/lib/src/core-components/src/components/TreeSelect/types.js +1 -1
  130. package/lib/src/core-components/src/components/ag-grid/AgGrid.js +1 -1057
  131. package/lib/src/core-components/src/components/ag-grid/elements.js +396 -790
  132. package/lib/src/core-components/src/components/ag-grid/hooks.js +4 -1220
  133. package/lib/src/core-components/src/components/ag-grid/index.js +1 -15
  134. package/lib/src/core-components/src/components/ag-grid/types.js +1 -6
  135. package/lib/src/core-components/src/components/index.js +1 -31
  136. package/lib/src/core-components/src/components/pdf/pdf-images.components.js +1 -7
  137. package/lib/src/core-components/src/components/pdf/pdf-table.components.js +5 -48
  138. package/lib/src/core-components/src/components/pdf/pdf-typography.components.js +1 -70
  139. package/lib/src/core-components/src/components/pdf/pdf-wrapped-view.components.js +1 -50
  140. package/lib/src/core-components/src/core-components/Avatar.js +4 -33
  141. package/lib/src/core-components/src/core-components/CoreButton/CoreButton.js +1 -10
  142. package/lib/src/core-components/src/core-components/CoreButton/elements.js +67 -176
  143. package/lib/src/core-components/src/core-components/CoreButton/index.js +1 -3
  144. package/lib/src/core-components/src/core-components/CoreButton/types.js +1 -6
  145. package/lib/src/core-components/src/core-components/CoreButton/utils.js +1 -12
  146. package/lib/src/core-components/src/core-components/Divider/Divider.js +4 -19
  147. package/lib/src/core-components/src/core-components/Divider/index.js +1 -1
  148. package/lib/src/core-components/src/core-components/SelectionCardStrip/index.js +1 -1
  149. package/lib/src/core-components/src/core-components/SelectionCardStrip/selectionCardStrip.js +10 -33
  150. package/lib/src/core-components/src/core-components/StateLayer.js +3 -5
  151. package/lib/src/core-components/src/core-components/ToggleCore/elements.js +25 -50
  152. package/lib/src/core-components/src/core-components/ToggleCore/index.js +1 -2
  153. package/lib/src/core-components/src/core-components/ToggleCore/toggleCore.js +1 -14
  154. package/lib/src/core-components/src/core-components/atoms/Input/Input.js +1 -22
  155. package/lib/src/core-components/src/core-components/atoms/Label/Label.js +1 -21
  156. package/lib/src/core-components/src/core-components/atoms/Textarea/Textarea.js +1 -19
  157. package/lib/src/core-components/src/core-components/index.js +1 -3
  158. package/lib/src/core-components/src/helpers/constants.js +1 -11
  159. package/lib/src/core-components/src/hooks/index.js +1 -1
  160. package/lib/src/core-components/src/hooks/outside.hook.js +1 -28
  161. package/lib/src/core-components/src/index.js +1 -12
  162. package/lib/src/core-components/src/tc.global.css +1 -0
  163. package/lib/src/core-components/src/utils/abstracts/breakpoints/index.js +1 -28
  164. package/lib/src/core-components/src/utils/abstracts/colors/index.js +1 -49
  165. package/lib/src/core-components/src/utils/abstracts/index.js +1 -5
  166. package/lib/src/core-components/src/utils/abstracts/space/index.js +1 -26
  167. package/lib/src/core-components/src/utils/abstracts/theme/ThemeBoundary.js +1 -8
  168. package/lib/src/core-components/src/utils/abstracts/theme/default-themes.js +1 -30
  169. package/lib/src/core-components/src/utils/abstracts/theme/index.js +1 -3
  170. package/lib/src/core-components/src/utils/abstracts/theme/theme.js +1 -30
  171. package/lib/src/core-components/src/utils/abstracts/theme/types.js +1 -1
  172. package/lib/src/core-components/src/utils/abstracts/theme/useTheme.js +1 -17
  173. package/lib/src/core-components/src/utils/abstracts/typography/index.js +1 -25
  174. package/lib/src/core-components/src/utils/context/DefaultsProvider.js +1 -8
  175. package/lib/src/core-components/src/utils/context/InternalProvider.js +1 -24
  176. package/lib/src/core-components/src/utils/context/index.js +1 -2
  177. package/lib/src/core-components/src/utils/designTokens.js +1 -128
  178. package/lib/src/core-components/src/utils/helpers/attachSubComponents.js +1 -23
  179. package/lib/src/core-components/src/utils/helpers/flattenChildren.js +1 -11
  180. package/lib/src/core-components/src/utils/helpers/getChildByType.js +1 -3
  181. package/lib/src/core-components/src/utils/helpers/index.js +1 -5
  182. package/lib/src/core-components/src/utils/helpers/isComponentType.js +1 -16
  183. package/lib/src/core-components/src/utils/helpers/separateChildrenByType.js +1 -12
  184. package/lib/src/core-components/src/utils/hooks/index.js +1 -18
  185. package/lib/src/core-components/src/utils/hooks/useClickOutside.js +1 -18
  186. package/lib/src/core-components/src/utils/hooks/useCombinedRefs.js +1 -17
  187. package/lib/src/core-components/src/utils/hooks/useDebouncedCallback.js +1 -12
  188. package/lib/src/core-components/src/utils/hooks/useDebouncedValue.js +1 -20
  189. package/lib/src/core-components/src/utils/hooks/useDeprecation.js +1 -40
  190. package/lib/src/core-components/src/utils/hooks/useDeviceDetect.js +1 -10
  191. package/lib/src/core-components/src/utils/hooks/useDeviceForm.js +1 -24
  192. package/lib/src/core-components/src/utils/hooks/useDisableBodyScroll.js +1 -16
  193. package/lib/src/core-components/src/utils/hooks/useHoverState.js +1 -36
  194. package/lib/src/core-components/src/utils/hooks/useId.js +1 -7
  195. package/lib/src/core-components/src/utils/hooks/useIsBrowser.js +1 -11
  196. package/lib/src/core-components/src/utils/hooks/useMediaQuery.js +1 -16
  197. package/lib/src/core-components/src/utils/hooks/useOverflow.js +1 -22
  198. package/lib/src/core-components/src/utils/hooks/useSafeLayoutEffect.js +1 -5
  199. package/lib/src/core-components/src/utils/hooks/useScrollingUp.js +1 -18
  200. package/lib/src/core-components/src/utils/hooks/useTrapFocus.js +1 -30
  201. package/lib/src/core-components/src/utils/hooks/useWindowDimensions.js +1 -23
  202. package/lib/src/core-components/src/utils/index.js +1 -9
  203. package/lib/src/core-components/src/utils/stories/Wrappers.js +8 -23
  204. package/lib/src/core-components/src/utils/stories/cleanProps.js +1 -5
  205. package/lib/src/core-components/src/utils/stories/index.js +1 -4
  206. package/lib/src/core-components/src/utils/stories/sleep.js +1 -4
  207. package/lib/src/core-components/src/utils/stories/view-ports.js +1 -50
  208. package/lib/src/core-components/src/utils/styling/calcWidthOfColumns.js +1 -5
  209. package/lib/src/core-components/src/utils/styling/createGridContainer.js +6 -12
  210. package/lib/src/core-components/src/utils/styling/createTransition.js +2 -7
  211. package/lib/src/core-components/src/utils/styling/forwardProps.js +1 -10
  212. package/lib/src/core-components/src/utils/styling/index.js +1 -5
  213. package/lib/src/core-components/src/utils/styling/pxToRem.js +1 -6
  214. package/lib/src/core-components/src/utils/testing/getComputedStyle.js +1 -3
  215. package/lib/src/core-components/src/utils/testing/index.js +1 -1
  216. package/lib/src/core-components/src/utils/utility.util.js +1 -14
  217. package/lib/src/core-components/tailwind.config.js +1 -233
  218. package/lib/src/core-hooks/index.js +1 -3
  219. package/lib/src/core-hooks/src/useClickOutside/useClickOutside.hook.js +1 -46
  220. package/lib/src/core-hooks/src/useDebounce/useDebounce.hook.js +1 -30
  221. package/lib/src/core-hooks/src/usePreventEKey/usePreventEKey.hook.js +1 -8
  222. package/lib/src/core-utils/index.js +1 -7
  223. package/lib/src/core-utils/src/calculation/calculation.util.js +1 -89
  224. package/lib/src/core-utils/src/colors/color.util.js +1 -15
  225. package/lib/src/core-utils/src/convert/numberToWords/numToWords.util.js +1 -145
  226. package/lib/src/core-utils/src/convert/typography/camelCaseToTitleCase.util.js +1 -5
  227. package/lib/src/core-utils/src/form-helper/form-helper.util.js +1 -82
  228. package/lib/src/core-utils/src/index.js +1 -7
  229. package/lib/src/core-utils/src/utility/utility.util.js +1 -12
  230. package/lib/src/core-utils/src/uuid/uuid.util.js +1 -8
  231. package/package.json +1 -1
@@ -1,50 +1,38 @@
1
- import { styled, css, keyframes } from 'styled-components';
2
- import { tokens } from '../../utils/designTokens';
3
- // Animations
4
- const shimmer = keyframes `
1
+ "use strict";import{styled as t,css as r,keyframes as n}from"styled-components";import{tokens as o}from"../../utils/designTokens";const f=n`
5
2
  0% { background-position: -200% 0; }
6
3
  100% { background-position: 200% 0; }
7
- `;
8
- const fadeIn = keyframes `
4
+ `,a=n`
9
5
  from { opacity: 0; }
10
6
  to { opacity: 1; }
11
- `;
12
- const spin = keyframes `
7
+ `,p=n`
13
8
  from { transform: rotate(0deg); }
14
9
  to { transform: rotate(360deg); }
15
- `;
16
- const pulse = keyframes `
10
+ `,s=n`
17
11
  0% { transform: scale(1); }
18
12
  50% { transform: scale(1.1); }
19
13
  100% { transform: scale(1); }
20
- `;
21
- const countUp = keyframes `
14
+ `,l=n`
22
15
  0% { transform: translateY(100%); opacity: 0; }
23
16
  100% { transform: translateY(0); opacity: 1; }
24
- `;
25
- const countDown = keyframes `
17
+ `,d=n`
26
18
  0% { transform: translateY(-100%); opacity: 0; }
27
19
  100% { transform: translateY(0); opacity: 1; }
28
- `;
29
- const slideIn = keyframes `
20
+ `,c=n`
30
21
  0% { transform: translateX(-20px); opacity: 0; }
31
22
  100% { transform: translateX(0); opacity: 1; }
32
- `;
33
- export const TableRoot = styled.div `
23
+ `;export const TableRoot=t.div`
34
24
  width: 100%;
35
25
  font-family: inherit;
36
26
  font-size: 14px;
37
- color: ${tokens.onSurface || '#1f2937'};
27
+ color: ${o.onSurface||"#1f2937"};
38
28
  background: white;
39
29
  border-radius: 8px;
40
30
  overflow: hidden;
41
31
 
42
- ${({ $bordered }) => $bordered &&
43
- css `
44
- border: 1px solid ${tokens.outline || '#e5e7eb'};
32
+ ${({$bordered:e})=>e&&r`
33
+ border: 1px solid ${o.outline||"#e5e7eb"};
45
34
  `}
46
- `;
47
- export const Toolbar = styled.div `
35
+ `,Toolbar=t.div`
48
36
  display: flex;
49
37
  flex-wrap: wrap;
50
38
  align-items: center;
@@ -52,20 +40,18 @@ export const Toolbar = styled.div `
52
40
  gap: 8px;
53
41
  padding: 8px 12px;
54
42
  background: white;
55
- border-bottom: 1px solid ${tokens.outline || '#e5e7eb'};
43
+ border-bottom: 1px solid ${o.outline||"#e5e7eb"};
56
44
 
57
45
  @media (max-width: 640px) {
58
46
  flex-direction: column;
59
47
  align-items: stretch;
60
48
  }
61
- `;
62
- export const ToolbarGroup = styled.div `
49
+ `,ToolbarGroup=t.div`
63
50
  display: flex;
64
51
  align-items: center;
65
52
  gap: 8px;
66
53
  flex-wrap: wrap;
67
- `;
68
- export const SearchInput = styled.div `
54
+ `,SearchInput=t.div`
69
55
  position: relative;
70
56
  display: flex;
71
57
  align-items: center;
@@ -110,8 +96,7 @@ export const SearchInput = styled.div `
110
96
  height: 14px;
111
97
  color: #9ca3af;
112
98
  }
113
- `;
114
- export const ToolbarButton = styled.button `
99
+ `,ToolbarButton=t.button`
115
100
  display: inline-flex;
116
101
  align-items: center;
117
102
  justify-content: center;
@@ -127,11 +112,11 @@ export const ToolbarButton = styled.button `
127
112
 
128
113
  /* Default gray button style (matching existing TableBootstrap) */
129
114
  color: white;
130
- background: ${({ $active }) => $active ? tokens.primary || '#3b82f6' : '#6b7280'};
115
+ background: ${({$active:e})=>e?o.primary||"#3b82f6":"#6b7280"};
131
116
  border: none;
132
117
 
133
118
  &:hover:not(:disabled) {
134
- background: ${({ $active }) => $active ? tokens.primary || '#2563eb' : '#5b6570'};
119
+ background: ${({$active:e})=>e?o.primary||"#2563eb":"#5b6570"};
135
120
  }
136
121
 
137
122
  &:disabled {
@@ -143,15 +128,14 @@ export const ToolbarButton = styled.button `
143
128
  width: 14px;
144
129
  height: 14px;
145
130
  }
146
- `;
147
- export const SelectionIndicator = styled.button `
131
+ `,SelectionIndicator=t.button`
148
132
  display: inline-flex;
149
133
  align-items: center;
150
134
  gap: 8px;
151
135
  padding: 8px 16px;
152
- background: ${tokens.primary || '#3b82f6'};
136
+ background: ${o.primary||"#3b82f6"};
153
137
  border-radius: 6px;
154
- border: 2px solid ${tokens.primary || '#3b82f6'};
138
+ border: 2px solid ${o.primary||"#3b82f6"};
155
139
  outline: none;
156
140
  color: white;
157
141
  font-weight: 600;
@@ -159,7 +143,7 @@ export const SelectionIndicator = styled.button `
159
143
  cursor: pointer;
160
144
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
161
145
  transition: all 0.2s ease;
162
- animation: ${slideIn} 0.3s ease-out;
146
+ animation: ${c} 0.3s ease-out;
163
147
 
164
148
  &:hover {
165
149
  border-color: white;
@@ -172,10 +156,9 @@ export const SelectionIndicator = styled.button `
172
156
  &:focus-visible {
173
157
  border-color: white;
174
158
  box-shadow: 0 0 0 3px
175
- ${tokens.primary ? `${tokens.primary}40` : 'rgba(59, 130, 246, 0.4)'};
159
+ ${o.primary?`${o.primary}40`:"rgba(59, 130, 246, 0.4)"};
176
160
  }
177
- `;
178
- export const SelectionCount = styled.span `
161
+ `,SelectionCount=t.span`
179
162
  display: inline-flex;
180
163
  align-items: center;
181
164
  justify-content: center;
@@ -189,21 +172,18 @@ export const SelectionCount = styled.span `
189
172
  font-size: 14px;
190
173
  overflow: hidden;
191
174
 
192
- ${({ $animate }) => $animate === 'up' &&
193
- css `
175
+ ${({$animate:e})=>e==="up"&&r`
194
176
  animation:
195
- ${countUp} 0.3s ease-out,
196
- ${pulse} 0.3s ease-out;
177
+ ${l} 0.3s ease-out,
178
+ ${s} 0.3s ease-out;
197
179
  `}
198
180
 
199
- ${({ $animate }) => $animate === 'down' &&
200
- css `
181
+ ${({$animate:e})=>e==="down"&&r`
201
182
  animation:
202
- ${countDown} 0.3s ease-out,
203
- ${pulse} 0.3s ease-out;
183
+ ${d} 0.3s ease-out,
184
+ ${s} 0.3s ease-out;
204
185
  `}
205
- `;
206
- export const SelectionIcon = styled.span `
186
+ `,SelectionIcon=t.span`
207
187
  display: flex;
208
188
  align-items: center;
209
189
  justify-content: center;
@@ -214,102 +194,82 @@ export const SelectionIcon = styled.span `
214
194
  width: 16px;
215
195
  height: 16px;
216
196
  }
217
- `;
218
- export const TableWrapper = styled.div `
197
+ `,TableWrapper=t.div`
219
198
  width: 100%;
220
199
  overflow-x: auto;
221
- overflow-y: ${({ $stickyHeader }) => ($stickyHeader ? 'auto' : 'visible')};
222
- ${({ $maxHeight }) => $maxHeight &&
223
- css `
224
- max-height: ${typeof $maxHeight === 'number'
225
- ? `${$maxHeight}px`
226
- : $maxHeight};
200
+ overflow-y: ${({$stickyHeader:e})=>e?"auto":"visible"};
201
+ ${({$maxHeight:e})=>e&&r`
202
+ max-height: ${typeof e=="number"?`${e}px`:e};
227
203
  `}
228
- `;
229
- export const StyledTable = styled.table `
204
+ `,StyledTable=t.table`
230
205
  width: 100%;
231
206
  border-collapse: collapse;
232
207
  table-layout: auto;
233
208
 
234
- ${({ $striped }) => $striped &&
235
- css `
209
+ ${({$striped:e})=>e&&r`
236
210
  tbody tr:nth-child(even) {
237
- background: ${tokens.surface || '#f9fafb'};
238
- color: ${tokens.onSurface || '#1f2937'};
211
+ background: ${o.surface||"#f9fafb"};
212
+ color: ${o.onSurface||"#1f2937"};
239
213
  }
240
214
  `}
241
215
 
242
- ${({ $hover }) => $hover &&
243
- css `
216
+ ${({$hover:e})=>e&&r`
244
217
  /* Hover effect - skip rows with custom selected style (data-custom-selected attribute) */
245
218
  tbody tr:not([data-custom-selected='true']):hover {
246
219
  background: #ececec !important;
247
- color: ${tokens.onSurface || '#1f2937'};
220
+ color: ${o.onSurface||"#1f2937"};
248
221
  }
249
222
  `}
250
- `;
251
- export const TableHeader = styled.thead `
252
- ${({ $sticky }) => $sticky &&
253
- css `
223
+ `,TableHeader=t.thead`
224
+ ${({$sticky:e})=>e&&r`
254
225
  position: sticky;
255
226
  top: 0;
256
227
  z-index: 10;
257
228
  `}
258
- `;
259
- export const HeaderRow = styled.tr `
229
+ `,HeaderRow=t.tr`
260
230
  background: #6b7280;
261
- `;
262
- export const HeaderCell = styled.th `
263
- padding: ${({ $compact }) => ($compact ? '4px 6px' : '6px 8px')};
264
- text-align: ${({ $align }) => $align};
231
+ `,HeaderCell=t.th`
232
+ padding: ${({$compact:e})=>e?"4px 6px":"6px 8px"};
233
+ text-align: ${({$align:e})=>e};
265
234
  vertical-align: middle;
266
235
  user-select: none;
267
236
  white-space: nowrap;
268
237
  border-right: 1px solid rgba(255, 255, 255, 0.3);
269
238
 
270
239
  /* Default styles - only applied when no custom class */
271
- ${({ $customClass }) => !$customClass &&
272
- css `
240
+ ${({$customClass:e})=>!e&&r`
273
241
  position: relative;
274
242
  font-weight: 600;
275
243
  font-size: 11px;
276
244
  color: white;
277
245
  background: #6b7280;
278
- border-bottom: 1px solid ${tokens.outline || '#e5e7eb'};
246
+ border-bottom: 1px solid ${o.outline||"#e5e7eb"};
279
247
  `}
280
248
 
281
- ${({ $width }) => $width &&
282
- css `
283
- width: ${typeof $width === 'number' ? `${$width}px` : $width};
249
+ ${({$width:e})=>e&&r`
250
+ width: ${typeof e=="number"?`${e}px`:e};
284
251
  `}
285
252
 
286
- ${({ $minWidth }) => $minWidth &&
287
- css `
288
- min-width: ${typeof $minWidth === 'number'
289
- ? `${$minWidth}px`
290
- : $minWidth};
253
+ ${({$minWidth:e})=>e&&r`
254
+ min-width: ${typeof e=="number"?`${e}px`:e};
291
255
  `}
292
256
 
293
- ${({ $pinned, $customClass }) => $pinned &&
294
- !$customClass &&
295
- css `
257
+ ${({$pinned:e,$customClass:i})=>e&&!i&&r`
296
258
  position: sticky;
297
- ${$pinned}: 0;
259
+ ${e}: 0;
298
260
  z-index: 11;
299
261
  `}
300
262
 
301
263
  /* Add left border separator when custom class is used (e.g., sticky action column) */
302
- ${({ $customClass }) => $customClass &&
303
- css `
264
+ ${({$customClass:e})=>e&&r`
304
265
  border-left: 2px solid #d1d5db;
305
266
  border-bottom: 2px solid #d1d5db;
306
267
  `}
307
- `;
308
- export const SortIcon = styled.span `
268
+ `,SortIcon=t.span`
309
269
  display: inline-flex;
310
270
  flex-direction: column;
311
271
  gap: 1px;
312
- opacity: ${({ $active }) => ($active ? 1 : 0.5)};
272
+ opacity: ${({$active:e})=>e?1:.5};
313
273
  vertical-align: middle;
314
274
 
315
275
  svg {
@@ -317,119 +277,99 @@ export const SortIcon = styled.span `
317
277
  height: 8px;
318
278
 
319
279
  &:first-child {
320
- opacity: ${({ $active, $direction }) => $active && $direction === 'asc' ? 1 : 0.4};
280
+ opacity: ${({$active:e,$direction:i})=>e&&i==="asc"?1:.4};
321
281
  }
322
282
 
323
283
  &:last-child {
324
- opacity: ${({ $active, $direction }) => $active && $direction === 'desc' ? 1 : 0.4};
284
+ opacity: ${({$active:e,$direction:i})=>e&&i==="desc"?1:.4};
325
285
  }
326
286
  }
327
- `;
328
- export const FilterRow = styled.tr `
287
+ `,FilterRow=t.tr`
329
288
  background: #6b7280;
330
- `;
331
- export const FilterCell = styled.td `
332
- padding: ${({ $compact }) => ($compact ? '2px 4px' : '4px 6px')};
289
+ `,FilterCell=t.td`
290
+ padding: ${({$compact:e})=>e?"2px 4px":"4px 6px"};
333
291
  vertical-align: middle;
334
- border-bottom: 1px solid ${tokens.outline || '#e5e7eb'};
335
- `;
336
- export const FilterInput = styled.input `
292
+ border-bottom: 1px solid ${o.outline||"#e5e7eb"};
293
+ `,FilterInput=t.input`
337
294
  width: 100%;
338
295
  height: 24px;
339
296
  padding: 0 8px;
340
297
  font-size: 11px;
341
- border: 1px solid ${tokens.outline || '#e2e8f0'};
298
+ border: 1px solid ${o.outline||"#e2e8f0"};
342
299
  border-radius: 3px;
343
300
  background: white;
344
301
  transition: all 0.15s ease;
345
302
 
346
303
  &:hover {
347
- border-color: ${tokens.primary || '#94a3b8'};
304
+ border-color: ${o.primary||"#94a3b8"};
348
305
  }
349
306
 
350
307
  &:focus {
351
308
  outline: none;
352
- border-color: ${tokens.primary || '#3b82f6'};
309
+ border-color: ${o.primary||"#3b82f6"};
353
310
  }
354
311
 
355
312
  &::placeholder {
356
- color: ${tokens.onSurface ? `${tokens.onSurface}40` : '#9ca3af'};
313
+ color: ${o.onSurface?`${o.onSurface}40`:"#9ca3af"};
357
314
  }
358
- `;
359
- export const FilterSelect = styled.select `
315
+ `,FilterSelect=t.select`
360
316
  width: 100%;
361
317
  height: 28px;
362
318
  padding: 0 8px;
363
319
  font-size: 12px;
364
- border: 1px solid ${tokens.outline || '#d1d5db'};
320
+ border: 1px solid ${o.outline||"#d1d5db"};
365
321
  border-radius: 4px;
366
322
  background: white;
367
323
  cursor: pointer;
368
324
 
369
325
  &:focus {
370
326
  outline: none;
371
- border-color: ${tokens.primary || '#3b82f6'};
327
+ border-color: ${o.primary||"#3b82f6"};
372
328
  }
373
- `;
374
- export const TableBody = styled.tbody ``;
375
- export const TableRow = styled.tr `
329
+ `,TableBody=t.tbody``,TableRow=t.tr`
376
330
  transition: background 0.15s ease;
377
- color: ${tokens.onSurface || '#1f2937'};
331
+ color: ${o.onSurface||"#1f2937"};
378
332
  background: white;
379
333
 
380
334
  /* Hover effect - only apply when not selected with custom style */
381
- ${({ $hasCustomSelectedStyle }) => !$hasCustomSelectedStyle &&
382
- css `
335
+ ${({$hasCustomSelectedStyle:e})=>!e&&r`
383
336
  &:hover {
384
337
  background: #ececec !important;
385
338
  }
386
339
  `}
387
340
 
388
341
  /* Default selected styling - only when no custom style is provided */
389
- ${({ $selected, $hasCustomSelectedStyle }) => $selected &&
390
- !$hasCustomSelectedStyle &&
391
- css `
392
- background: ${tokens.primary
393
- ? `${tokens.primary}10`
394
- : '#fef3c7'} !important;
395
- color: ${tokens.onSurface || '#1f2937'};
342
+ ${({$selected:e,$hasCustomSelectedStyle:i})=>e&&!i&&r`
343
+ background: ${o.primary?`${o.primary}10`:"#fef3c7"} !important;
344
+ color: ${o.onSurface||"#1f2937"};
396
345
 
397
346
  &:hover {
398
- background: ${tokens.primary
399
- ? `${tokens.primary}15`
400
- : '#fde68a'} !important;
347
+ background: ${o.primary?`${o.primary}15`:"#fde68a"} !important;
401
348
  }
402
349
  `}
403
350
 
404
- ${({ $clickable, $disabled }) => $clickable &&
405
- !$disabled &&
406
- css `
351
+ ${({$clickable:e,$disabled:i})=>e&&!i&&r`
407
352
  cursor: pointer;
408
353
  `}
409
354
 
410
- ${({ $disabled }) => $disabled &&
411
- css `
355
+ ${({$disabled:e})=>e&&r`
412
356
  opacity: 0.5;
413
- background: ${tokens.surface || '#e5e7eb'} !important;
414
- color: ${tokens.onSurface || '#1f2937'};
357
+ background: ${o.surface||"#e5e7eb"} !important;
358
+ color: ${o.onSurface||"#1f2937"};
415
359
  cursor: not-allowed;
416
360
 
417
361
  &:hover {
418
- background: ${tokens.surface || '#e5e7eb'} !important;
362
+ background: ${o.surface||"#e5e7eb"} !important;
419
363
  }
420
364
  `}
421
- `;
422
- export const TableCellContent = styled.div.attrs({
423
- className: 'tc-table-cell-content',
424
- }) `
365
+ `,TableCellContent=t.div.attrs({className:"tc-table-cell-content"})`
425
366
  display: flex;
426
367
  width: 100%;
427
368
  min-width: 0;
428
369
  align-items: stretch;
429
370
  gap: 0;
430
371
 
431
- ${({ $hasFormatter }) => !$hasFormatter &&
432
- css `
372
+ ${({$hasFormatter:e})=>!e&&r`
433
373
  display: block;
434
374
  `}
435
375
 
@@ -437,33 +377,28 @@ export const TableCellContent = styled.div.attrs({
437
377
  width: 100%;
438
378
  min-width: 0;
439
379
  }
440
- `;
441
- export const TableCell = styled.td `
442
- padding: ${({ $padding, $compact }) => $padding || ($compact ? '2px' : '2px')};
443
- text-align: ${({ $align }) => $align};
380
+ `,TableCell=t.td`
381
+ padding: ${({$padding:e,$compact:i})=>e||"2px"};
382
+ text-align: ${({$align:e})=>e};
444
383
  border-bottom: 1px solid #d1d5db;
445
384
  border-right: 1px solid #9ca3af;
446
385
  vertical-align: middle;
447
386
  font-size: 12px;
448
387
 
449
- ${({ $hasCustomClass }) => !$hasCustomClass &&
450
- css `
451
- color: ${tokens.onSurface || '#1f2937'};
388
+ ${({$hasCustomClass:e})=>!e&&r`
389
+ color: ${o.onSurface||"#1f2937"};
452
390
  background: transparent;
453
391
  `}
454
392
 
455
- ${({ $pinned, $hasCustomClass }) => $pinned &&
456
- !$hasCustomClass &&
457
- css `
393
+ ${({$pinned:e,$hasCustomClass:i})=>e&&!i&&r`
458
394
  position: sticky;
459
- ${$pinned}: 0;
395
+ ${e}: 0;
460
396
  background: white;
461
397
  z-index: 1;
462
398
  `}
463
399
 
464
400
  /* Add left border separator when custom class is used (e.g., sticky action column) */
465
- ${({ $hasCustomClass }) => $hasCustomClass &&
466
- css `
401
+ ${({$hasCustomClass:e})=>e&&r`
467
402
  border-left: 2px solid #d1d5db;
468
403
  `}
469
404
 
@@ -514,17 +449,13 @@ export const TableCell = styled.td `
514
449
 
515
450
  /* Disabled state - prevent clicks and show not-allowed cursor */
516
451
  /* Only apply pointer-events: none if row is disabled AND column is NOT effectively editable */
517
- ${({ $disabled, $isEditable }) => $disabled &&
518
- !$isEditable &&
519
- css `
452
+ ${({$disabled:e,$isEditable:i})=>e&&!i&&r`
520
453
  cursor: not-allowed;
521
454
  pointer-events: none;
522
455
  `}
523
456
 
524
457
  /* If row is disabled but column is effectively editable, ensure proper width and interaction */
525
- ${({ $disabled, $isEditable }) => $disabled &&
526
- $isEditable &&
527
- css `
458
+ ${({$disabled:e,$isEditable:i})=>e&&i&&r`
528
459
  cursor: default;
529
460
  pointer-events: auto !important;
530
461
  opacity: 1 !important;
@@ -535,9 +466,7 @@ export const TableCell = styled.td `
535
466
  `}
536
467
 
537
468
  /* Remove opacity for allowed columns when row is disabled and ensure proper width */
538
- ${({ $disabled, $isInAllowedCells }) => $disabled &&
539
- $isInAllowedCells &&
540
- css `
469
+ ${({$disabled:e,$isInAllowedCells:i})=>e&&i&&r`
541
470
  opacity: 1 !important;
542
471
  pointer-events: auto !important;
543
472
  width: auto !important;
@@ -545,14 +474,12 @@ export const TableCell = styled.td `
545
474
  max-width: none !important;
546
475
  box-sizing: border-box;
547
476
  `}
548
- `;
549
- export const Checkbox = styled.input.attrs({ type: 'checkbox' }) `
477
+ `,Checkbox=t.input.attrs({type:"checkbox"})`
550
478
  width: 16px;
551
479
  height: 16px;
552
480
  cursor: pointer;
553
- accent-color: ${tokens.primary || '#3b82f6'};
554
- `;
555
- export const ExpandButton = styled.button `
481
+ accent-color: ${o.primary||"#3b82f6"};
482
+ `,ExpandButton=t.button`
556
483
  display: flex;
557
484
  align-items: center;
558
485
  justify-content: center;
@@ -566,36 +493,30 @@ export const ExpandButton = styled.button `
566
493
  transition: all 0.15s ease;
567
494
 
568
495
  &:hover {
569
- background: ${tokens.surface || '#f3f4f6'};
496
+ background: ${o.surface||"#f3f4f6"};
570
497
  }
571
498
 
572
499
  svg {
573
500
  width: 16px;
574
501
  height: 16px;
575
- color: ${tokens.onSurface ? `${tokens.onSurface}70` : '#6b7280'};
502
+ color: ${o.onSurface?`${o.onSurface}70`:"#6b7280"};
576
503
  transition: transform 0.2s ease;
577
- transform: ${({ $expanded }) => ($expanded ? 'rotate(90deg)' : 'rotate(0)')};
504
+ transform: ${({$expanded:e})=>e?"rotate(90deg)":"rotate(0)"};
578
505
  }
579
- `;
580
- export const ExpandedRow = styled.tr `
581
- animation: ${fadeIn} 0.2s ease;
582
- `;
583
- export const ExpandedCell = styled.td `
506
+ `,ExpandedRow=t.tr`
507
+ animation: ${a} 0.2s ease;
508
+ `,ExpandedCell=t.td`
584
509
  padding: 16px;
585
- background: ${tokens.surface || '#f9fafb'};
586
- border-bottom: 1px solid ${tokens.outline || '#e5e7eb'};
587
- `;
588
- export const TableFooter = styled.tfoot `
589
- background: ${tokens.surface || '#f3f4f6'};
590
- `;
591
- export const FooterRow = styled.tr ``;
592
- export const FooterCell = styled.td `
593
- padding: ${({ $compact }) => ($compact ? '8px 12px' : '12px 16px')};
594
- text-align: ${({ $align }) => $align};
510
+ background: ${o.surface||"#f9fafb"};
511
+ border-bottom: 1px solid ${o.outline||"#e5e7eb"};
512
+ `,TableFooter=t.tfoot`
513
+ background: ${o.surface||"#f3f4f6"};
514
+ `,FooterRow=t.tr``,FooterCell=t.td`
515
+ padding: ${({$compact:e})=>e?"8px 12px":"12px 16px"};
516
+ text-align: ${({$align:e})=>e};
595
517
  font-weight: 600;
596
- border-top: 2px solid ${tokens.outline || '#e5e7eb'};
597
- `;
598
- export const PaginationWrapper = styled.div `
518
+ border-top: 2px solid ${o.outline||"#e5e7eb"};
519
+ `,PaginationWrapper=t.div`
599
520
  display: flex;
600
521
  flex-wrap: wrap;
601
522
  align-items: center;
@@ -603,24 +524,21 @@ export const PaginationWrapper = styled.div `
603
524
  gap: 12px;
604
525
  padding: 12px 16px;
605
526
  background: #6b7280;
606
- border-top: 1px solid ${tokens.outline || '#e5e7eb'};
527
+ border-top: 1px solid ${o.outline||"#e5e7eb"};
607
528
  color: white;
608
529
 
609
530
  @media (max-width: 640px) {
610
531
  flex-direction: column;
611
532
  align-items: stretch;
612
533
  }
613
- `;
614
- export const PaginationInfo = styled.div `
534
+ `,PaginationInfo=t.div`
615
535
  font-size: 13px;
616
536
  color: white;
617
- `;
618
- export const PaginationControls = styled.div `
537
+ `,PaginationControls=t.div`
619
538
  display: flex;
620
539
  align-items: center;
621
540
  gap: 4px;
622
- `;
623
- export const PageButton = styled.button `
541
+ `,PageButton=t.button`
624
542
  display: flex;
625
543
  align-items: center;
626
544
  justify-content: center;
@@ -628,17 +546,17 @@ export const PageButton = styled.button `
628
546
  height: 32px;
629
547
  padding: 0 8px;
630
548
  font-size: 13px;
631
- font-weight: ${({ $active }) => ($active ? 600 : 400)};
632
- color: ${({ $active }) => ($active ? 'white' : 'white')};
633
- background: ${({ $active }) => $active ? tokens.primary || '#3b82f6' : 'transparent'};
549
+ font-weight: ${({$active:e})=>e?600:400};
550
+ color: ${({$active:e})=>"white"};
551
+ background: ${({$active:e})=>e?o.primary||"#3b82f6":"transparent"};
634
552
  border: 1px solid
635
- ${({ $active }) => ($active ? 'transparent' : 'rgba(255,255,255,0.3)')};
553
+ ${({$active:e})=>e?"transparent":"rgba(255,255,255,0.3)"};
636
554
  border-radius: 4px;
637
555
  cursor: pointer;
638
556
  transition: all 0.15s ease;
639
557
 
640
558
  &:hover:not(:disabled) {
641
- background: ${({ $active }) => $active ? tokens.primary || '#2563eb' : 'rgba(255,255,255,0.1)'};
559
+ background: ${({$active:e})=>e?o.primary||"#2563eb":"rgba(255,255,255,0.1)"};
642
560
  }
643
561
 
644
562
  &:disabled {
@@ -650,23 +568,21 @@ export const PageButton = styled.button `
650
568
  width: 16px;
651
569
  height: 16px;
652
570
  }
653
- `;
654
- export const PageSizeSelect = styled.select `
571
+ `,PageSizeSelect=t.select`
655
572
  height: 32px;
656
573
  padding: 0 24px 0 8px;
657
574
  font-size: 13px;
658
575
  color: #1f2937;
659
576
  background: white;
660
- border: 1px solid ${tokens.outline || '#d1d5db'};
577
+ border: 1px solid ${o.outline||"#d1d5db"};
661
578
  border-radius: 4px;
662
579
  cursor: pointer;
663
580
 
664
581
  &:focus {
665
582
  outline: none;
666
- border-color: ${tokens.primary || '#3b82f6'};
583
+ border-color: ${o.primary||"#3b82f6"};
667
584
  }
668
- `;
669
- export const QuickJumper = styled.div `
585
+ `,QuickJumper=t.div`
670
586
  display: flex;
671
587
  align-items: center;
672
588
  gap: 8px;
@@ -686,21 +602,20 @@ export const QuickJumper = styled.div `
686
602
 
687
603
  &:focus {
688
604
  outline: none;
689
- border-color: ${tokens.primary || '#3b82f6'};
605
+ border-color: ${o.primary||"#3b82f6"};
690
606
  }
691
607
 
692
608
  &::placeholder {
693
609
  color: rgba(255, 255, 255, 0.5);
694
610
  }
695
611
  }
696
- `;
697
- export const EmptyState = styled.div `
612
+ `,EmptyState=t.div`
698
613
  display: flex;
699
614
  flex-direction: column;
700
615
  align-items: center;
701
616
  justify-content: center;
702
617
  padding: 48px 24px;
703
- color: ${tokens.onSurface ? `${tokens.onSurface}60` : '#6b7280'};
618
+ color: ${o.onSurface?`${o.onSurface}60`:"#6b7280"};
704
619
 
705
620
  svg {
706
621
  width: 48px;
@@ -712,8 +627,7 @@ export const EmptyState = styled.div `
712
627
  span {
713
628
  font-size: 14px;
714
629
  }
715
- `;
716
- export const LoadingOverlay = styled.div `
630
+ `,LoadingOverlay=t.div`
717
631
  position: absolute;
718
632
  inset: 0;
719
633
  display: flex;
@@ -721,22 +635,18 @@ export const LoadingOverlay = styled.div `
721
635
  justify-content: center;
722
636
  background: rgba(255, 255, 255, 0.8);
723
637
  z-index: 20;
724
- `;
725
- export const LoadingSpinner = styled.div `
638
+ `,LoadingSpinner=t.div`
726
639
  width: 32px;
727
640
  height: 32px;
728
- border: 3px solid ${tokens.outline || '#e5e7eb'};
729
- border-top-color: ${tokens.primary || '#3b82f6'};
641
+ border: 3px solid ${o.outline||"#e5e7eb"};
642
+ border-top-color: ${o.primary||"#3b82f6"};
730
643
  border-radius: 50%;
731
- animation: ${spin} 0.8s linear infinite;
732
- `;
733
- export const EditableCell = styled.div `
644
+ animation: ${p} 0.8s linear infinite;
645
+ `,EditableCell=t.div`
734
646
  position: relative;
735
647
  min-height: 24px;
736
648
 
737
- ${({ $editing, $showEditIcon = false }) => !$editing &&
738
- $showEditIcon &&
739
- css `
649
+ ${({$editing:e,$showEditIcon:i=!1})=>!e&&i&&r`
740
650
  &:hover::after {
741
651
  content: '✏️';
742
652
  position: absolute;
@@ -747,20 +657,18 @@ export const EditableCell = styled.div `
747
657
  opacity: 0.5;
748
658
  }
749
659
  `}
750
- `;
751
- export const CellEditor = styled.input `
660
+ `,CellEditor=t.input`
752
661
  width: 100%;
753
662
  padding: 4px 8px;
754
663
  font-size: inherit;
755
- border: 2px solid ${tokens.primary || '#3b82f6'};
664
+ border: 2px solid ${o.primary||"#3b82f6"};
756
665
  border-radius: 4px;
757
666
  background: white;
758
667
 
759
668
  &:focus {
760
669
  outline: none;
761
670
  }
762
- `;
763
- export const ColumnTogglePanel = styled.div `
671
+ `,ColumnTogglePanel=t.div`
764
672
  position: absolute;
765
673
  top: 100%;
766
674
  right: 0;
@@ -768,18 +676,17 @@ export const ColumnTogglePanel = styled.div `
768
676
  max-height: 400px;
769
677
  overflow-y: auto;
770
678
  background: white;
771
- border: 1px solid ${tokens.outline || '#e5e7eb'};
679
+ border: 1px solid ${o.outline||"#e5e7eb"};
772
680
  border-radius: 8px;
773
681
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
774
682
  z-index: 100;
775
- animation: ${fadeIn} 0.15s ease;
776
- `;
777
- export const ColumnToggleHeader = styled.div `
683
+ animation: ${a} 0.15s ease;
684
+ `,ColumnToggleHeader=t.div`
778
685
  display: flex;
779
686
  align-items: center;
780
687
  justify-content: space-between;
781
688
  padding: 12px 16px;
782
- border-bottom: 1px solid ${tokens.outline || '#e5e7eb'};
689
+ border-bottom: 1px solid ${o.outline||"#e5e7eb"};
783
690
 
784
691
  span {
785
692
  font-weight: 600;
@@ -791,63 +698,58 @@ export const ColumnToggleHeader = styled.div `
791
698
  border: none;
792
699
  background: none;
793
700
  cursor: pointer;
794
- color: ${tokens.onSurface ? `${tokens.onSurface}60` : '#6b7280'};
701
+ color: ${o.onSurface?`${o.onSurface}60`:"#6b7280"};
795
702
 
796
703
  &:hover {
797
- color: ${tokens.onSurface || '#1f2937'};
704
+ color: ${o.onSurface||"#1f2937"};
798
705
  }
799
706
  }
800
- `;
801
- export const ColumnToggleSearch = styled.div `
707
+ `,ColumnToggleSearch=t.div`
802
708
  padding: 8px 16px;
803
- border-bottom: 1px solid ${tokens.outline || '#e5e7eb'};
709
+ border-bottom: 1px solid ${o.outline||"#e5e7eb"};
804
710
 
805
711
  input {
806
712
  width: 100%;
807
713
  height: 32px;
808
714
  padding: 0 12px;
809
715
  font-size: 13px;
810
- border: 1px solid ${tokens.outline || '#d1d5db'};
716
+ border: 1px solid ${o.outline||"#d1d5db"};
811
717
  border-radius: 6px;
812
718
 
813
719
  &:focus {
814
720
  outline: none;
815
- border-color: ${tokens.primary || '#3b82f6'};
721
+ border-color: ${o.primary||"#3b82f6"};
816
722
  }
817
723
  }
818
- `;
819
- export const ColumnToggleList = styled.div `
724
+ `,ColumnToggleList=t.div`
820
725
  padding: 8px 0;
821
726
  max-height: 300px;
822
727
  overflow-y: auto;
823
- `;
824
- export const ColumnToggleItem = styled.label `
728
+ `,ColumnToggleItem=t.label`
825
729
  display: flex;
826
730
  align-items: center;
827
731
  gap: 12px;
828
732
  padding: 8px 16px;
829
- cursor: ${({ $reorderable }) => ($reorderable ? 'grab' : 'pointer')};
733
+ cursor: ${({$reorderable:e})=>e?"grab":"pointer"};
830
734
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
831
735
  position: relative;
832
736
  user-select: none;
833
737
 
834
738
  &:hover {
835
- background: ${tokens.surface || '#f3f4f6'};
739
+ background: ${o.surface||"#f3f4f6"};
836
740
  }
837
741
 
838
742
  /* Dragging state */
839
- ${({ $isDragging }) => $isDragging &&
840
- css `
743
+ ${({$isDragging:e})=>e&&r`
841
744
  opacity: 0.4;
842
745
  transform: scale(0.98);
843
- background: ${tokens.primary || '#3b82f6'}10;
746
+ background: ${o.primary||"#3b82f6"}10;
844
747
  cursor: grabbing;
845
748
  `}
846
749
 
847
750
  /* Drag over state */
848
- ${({ $isDragOver }) => $isDragOver &&
849
- css `
850
- background: ${tokens.primary || '#3b82f6'}15;
751
+ ${({$isDragOver:e})=>e&&r`
752
+ background: ${o.primary||"#3b82f6"}15;
851
753
  transform: translateY(2px);
852
754
 
853
755
  &::before {
@@ -857,9 +759,9 @@ export const ColumnToggleItem = styled.label `
857
759
  left: 8px;
858
760
  right: 8px;
859
761
  height: 2px;
860
- background: ${tokens.primary || '#3b82f6'};
762
+ background: ${o.primary||"#3b82f6"};
861
763
  border-radius: 1px;
862
- animation: ${fadeIn} 0.15s ease;
764
+ animation: ${a} 0.15s ease;
863
765
  }
864
766
  `}
865
767
 
@@ -867,21 +769,19 @@ export const ColumnToggleItem = styled.label `
867
769
  width: 16px;
868
770
  height: 16px;
869
771
  cursor: pointer;
870
- accent-color: ${tokens.primary || '#3b82f6'};
772
+ accent-color: ${o.primary||"#3b82f6"};
871
773
  flex-shrink: 0;
872
774
  }
873
775
 
874
776
  span {
875
777
  font-size: 13px;
876
- color: ${tokens.onSurface || '#374151'};
778
+ color: ${o.onSurface||"#374151"};
877
779
  flex: 1;
878
780
  overflow: hidden;
879
781
  text-overflow: ellipsis;
880
782
  white-space: nowrap;
881
783
  }
882
- `;
883
- // Drag handle icon for reorderable items
884
- export const ColumnToggleDragHandle = styled.div `
784
+ `,ColumnToggleDragHandle=t.div`
885
785
  display: flex;
886
786
  align-items: center;
887
787
  justify-content: center;
@@ -889,24 +789,23 @@ export const ColumnToggleDragHandle = styled.div `
889
789
  height: 20px;
890
790
  margin-left: auto;
891
791
  cursor: grab;
892
- color: ${tokens.onSurface ? `${tokens.onSurface}40` : '#9ca3af'};
792
+ color: ${o.onSurface?`${o.onSurface}40`:"#9ca3af"};
893
793
  transition: all 0.2s ease;
894
794
  flex-shrink: 0;
895
795
 
896
796
  &:hover {
897
- color: ${tokens.primary || '#3b82f6'};
797
+ color: ${o.primary||"#3b82f6"};
898
798
  transform: scale(1.1);
899
799
  }
900
800
 
901
801
  &:active {
902
802
  cursor: grabbing;
903
- color: ${tokens.primary || '#3b82f6'};
803
+ color: ${o.primary||"#3b82f6"};
904
804
  }
905
805
 
906
- ${({ $isDragging }) => $isDragging &&
907
- css `
908
- color: ${tokens.primary || '#3b82f6'};
909
- animation: ${pulse} 0.6s ease-in-out infinite;
806
+ ${({$isDragging:e})=>e&&r`
807
+ color: ${o.primary||"#3b82f6"};
808
+ animation: ${s} 0.6s ease-in-out infinite;
910
809
  `}
911
810
 
912
811
  /* Grip dots pattern */
@@ -915,9 +814,7 @@ export const ColumnToggleDragHandle = styled.div `
915
814
  font-size: 14px;
916
815
  letter-spacing: -2px;
917
816
  }
918
- `;
919
- // Animated list container
920
- export const ColumnToggleListAnimated = styled.div `
817
+ `,ColumnToggleListAnimated=t.div`
921
818
  padding: 8px 0;
922
819
  max-height: 300px;
923
820
  overflow-y: auto;
@@ -926,8 +823,7 @@ export const ColumnToggleListAnimated = styled.div `
926
823
  & > * {
927
824
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
928
825
  }
929
- `;
930
- export const ResizeHandle = styled.div `
826
+ `,ResizeHandle=t.div`
931
827
  position: absolute;
932
828
  right: 0;
933
829
  top: 0;
@@ -937,6 +833,6 @@ export const ResizeHandle = styled.div `
937
833
  background: transparent;
938
834
 
939
835
  &:hover {
940
- background: ${tokens.primary || '#3b82f6'};
836
+ background: ${o.primary||"#3b82f6"};
941
837
  }
942
838
  `;