react-restyle-components 0.4.45 → 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.
- package/lib/index.js +1 -3
- package/lib/src/core-components/index.js +1 -1
- package/lib/src/core-components/src/components/Accordion/AccordionSection/Accordion.js +1 -15
- package/lib/src/core-components/src/components/Accordion/AccordionSection/AccordionContext.js +1 -6
- package/lib/src/core-components/src/components/Accordion/AccordionSection/AccordionSection.js +1 -39
- package/lib/src/core-components/src/components/Accordion/AccordionSection/Header.js +1 -39
- package/lib/src/core-components/src/components/Accordion/AccordionSection/elements.js +57 -94
- package/lib/src/core-components/src/components/Accordion/AccordionSection/hooks/useCurrentAccordionIndex.js +1 -13
- package/lib/src/core-components/src/components/Accordion/AccordionSection/index.js +1 -3
- package/lib/src/core-components/src/components/Accordion/AccordionSection/types.js +1 -9
- package/lib/src/core-components/src/components/Accordion/Collapsible/Collapsible2.component.js +1 -249
- package/lib/src/core-components/src/components/Action/types.js +1 -8
- package/lib/src/core-components/src/components/AlertBanner/AlertBanner.js +1 -45
- package/lib/src/core-components/src/components/AlertBanner/elements.js +45 -120
- package/lib/src/core-components/src/components/AlertBanner/index.js +1 -2
- package/lib/src/core-components/src/components/AlertBanner/types.js +1 -10
- 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
- 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
- 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
- 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
- package/lib/src/core-components/src/components/AutoComplete/auto-complete-filter-single-select/auto-complete-filter-single-select.component.js +1 -55
- 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
- package/lib/src/core-components/src/components/AutoComplete/auto-complete-group-by/auto-complete-group-by.component.js +1 -115
- package/lib/src/core-components/src/components/AutoComplete/autocomplete/autocomplete.js +2 -442
- package/lib/src/core-components/src/components/AutoComplete/index.js +1 -8
- package/lib/src/core-components/src/components/Avatar/Avatar.js +14 -148
- package/lib/src/core-components/src/components/Badge/Badge.js +2 -25
- package/lib/src/core-components/src/components/Badge/InnerBadge/Inline.js +1 -25
- package/lib/src/core-components/src/components/Badge/InnerBadge/InnerBadge.js +1 -25
- package/lib/src/core-components/src/components/Badge/InnerBadge/elements.js +32 -78
- package/lib/src/core-components/src/components/Badge/InnerBadge/index.js +1 -1
- package/lib/src/core-components/src/components/Badge/index.js +1 -1
- package/lib/src/core-components/src/components/Badge/types.js +1 -5
- package/lib/src/core-components/src/components/Breadcrumb/Breadcrumb.js +1 -83
- package/lib/src/core-components/src/components/Breadcrumb/elements.js +94 -166
- package/lib/src/core-components/src/components/Breadcrumb/index.js +1 -3
- package/lib/src/core-components/src/components/Breadcrumb/types.js +1 -3
- package/lib/src/core-components/src/components/Button/button.component.js +1 -18
- package/lib/src/core-components/src/components/Button/buttonGroup/buttonGroup.component.js +1 -4
- package/lib/src/core-components/src/components/Button/index.js +1 -2
- package/lib/src/core-components/src/components/Button/types.js +1 -1
- package/lib/src/core-components/src/components/Chip/Chip.js +1 -64
- package/lib/src/core-components/src/components/Chip/elements.js +48 -148
- package/lib/src/core-components/src/components/Chip/index.js +1 -2
- package/lib/src/core-components/src/components/Chip/types.js +1 -4
- package/lib/src/core-components/src/components/Divider/Divider.js +1 -25
- package/lib/src/core-components/src/components/Divider/elements.js +31 -68
- package/lib/src/core-components/src/components/Divider/index.js +1 -2
- package/lib/src/core-components/src/components/Divider/types.js +1 -4
- package/lib/src/core-components/src/components/DynamicGrid/DynamicGrid.js +1 -147
- package/lib/src/core-components/src/components/DynamicGrid/GridContainer.js +17 -24
- package/lib/src/core-components/src/components/DynamicGrid/elements.js +100 -162
- package/lib/src/core-components/src/components/DynamicGrid/index.js +1 -3
- package/lib/src/core-components/src/components/DynamicGrid/types.js +1 -28
- package/lib/src/core-components/src/components/DynamicGrid/utils.js +1 -193
- package/lib/src/core-components/src/components/FormField/FormField.js +1 -103
- package/lib/src/core-components/src/components/FormField/components/CheckboxGroupInput.js +1 -37
- package/lib/src/core-components/src/components/FormField/components/CheckboxInput.js +1 -8
- package/lib/src/core-components/src/components/FormField/components/CssMultilineInput.js +1 -192
- package/lib/src/core-components/src/components/FormField/components/DatePickerInput.js +1 -99
- package/lib/src/core-components/src/components/FormField/components/DropdownInput.js +1 -70
- package/lib/src/core-components/src/components/FormField/components/OtpInput.js +1 -81
- package/lib/src/core-components/src/components/FormField/components/PasswordInput.js +1 -40
- package/lib/src/core-components/src/components/FormField/components/PinInput.js +1 -75
- package/lib/src/core-components/src/components/FormField/components/RadioInput.js +1 -54
- package/lib/src/core-components/src/components/FormField/components/TextDropdownInput.js +1 -94
- package/lib/src/core-components/src/components/FormField/components/ToggleInput.js +1 -36
- package/lib/src/core-components/src/components/FormField/components/index.js +1 -11
- package/lib/src/core-components/src/components/FormField/css-properties.js +1 -161
- package/lib/src/core-components/src/components/FormField/index.js +1 -2
- package/lib/src/core-components/src/components/Icon/Icon.js +1 -159
- package/lib/src/core-components/src/components/Icon/index.js +1 -2
- package/lib/src/core-components/src/components/Icon/types.js +1 -9
- package/lib/src/core-components/src/components/Loader/loader.component.js +2 -215
- package/lib/src/core-components/src/components/Masonry/Masonry.js +1 -73
- package/lib/src/core-components/src/components/Masonry/elements.js +29 -46
- package/lib/src/core-components/src/components/Masonry/hooks.js +1 -100
- package/lib/src/core-components/src/components/Masonry/index.js +1 -3
- package/lib/src/core-components/src/components/Masonry/types.js +1 -1
- package/lib/src/core-components/src/components/Modal/BasicModal/modal.component.js +1 -116
- package/lib/src/core-components/src/components/Modal/index.js +1 -2
- package/lib/src/core-components/src/components/Modal/modal-confirm/modal-confirm.component.js +1 -147
- package/lib/src/core-components/src/components/Picker/color-picker/color-picker.component.js +1 -12
- package/lib/src/core-components/src/components/Picker/color-picker-modal/color-picker-modal.component.js +1 -40
- package/lib/src/core-components/src/components/Picker/index.js +1 -2
- package/lib/src/core-components/src/components/Selection/index.js +1 -4
- package/lib/src/core-components/src/components/Selection/multi-select/multi-select.component.js +1 -49
- package/lib/src/core-components/src/components/Selection/multi-select-with-field/multi-select-with-field.component.js +1 -58
- package/lib/src/core-components/src/components/Selection/multi-selection-dropdown/multi-selection-dropdown.component.js +1 -43
- package/lib/src/core-components/src/components/Selection/single-select/single-select.component.js +1 -87
- package/lib/src/core-components/src/components/Skeleton/Skeleton.js +1 -51
- package/lib/src/core-components/src/components/Skeleton/elements.js +54 -143
- package/lib/src/core-components/src/components/Skeleton/index.js +1 -2
- package/lib/src/core-components/src/components/Skeleton/types.js +1 -4
- package/lib/src/core-components/src/components/SpeedDial/SpeedDial.js +1 -128
- package/lib/src/core-components/src/components/SpeedDial/elements.js +62 -132
- package/lib/src/core-components/src/components/SpeedDial/index.js +1 -2
- package/lib/src/core-components/src/components/SpeedDial/types.js +1 -3
- package/lib/src/core-components/src/components/Stepper2/stepper.component.js +1 -139
- package/lib/src/core-components/src/components/Switch/Switch.js +1 -26
- package/lib/src/core-components/src/components/Switch/elements.js +34 -103
- package/lib/src/core-components/src/components/Switch/index.js +1 -2
- package/lib/src/core-components/src/components/Switch/types.js +1 -3
- package/lib/src/core-components/src/components/Table/Table.js +1 -1497
- package/lib/src/core-components/src/components/Table/columnReorder.js +36 -332
- package/lib/src/core-components/src/components/Table/columnResize.js +21 -284
- package/lib/src/core-components/src/components/Table/elements.d.ts +6 -1
- package/lib/src/core-components/src/components/Table/elements.js +203 -275
- package/lib/src/core-components/src/components/Table/filters.js +30 -555
- package/lib/src/core-components/src/components/Table/hooks.js +2 -536
- package/lib/src/core-components/src/components/Table/index.js +1 -6
- package/lib/src/core-components/src/components/Table/types.d.ts +1 -1
- package/lib/src/core-components/src/components/Table/types.js +1 -1
- package/lib/src/core-components/src/components/Tabs/tabs.component.js +1 -22
- package/lib/src/core-components/src/components/Tags1/Tags.component.js +1 -118
- package/lib/src/core-components/src/components/Tags1/types.js +1 -20
- package/lib/src/core-components/src/components/Timer1/timer.component.js +1 -76
- package/lib/src/core-components/src/components/Toast/Toast.js +1 -50
- package/lib/src/core-components/src/components/Toast/elements.js +41 -122
- package/lib/src/core-components/src/components/Toast/index.js +1 -2
- package/lib/src/core-components/src/components/Toast/types.js +1 -9
- package/lib/src/core-components/src/components/Tooltip/Tooltip.js +1 -200
- package/lib/src/core-components/src/components/Tooltip/elements.js +55 -117
- package/lib/src/core-components/src/components/Tooltip/index.js +1 -2
- package/lib/src/core-components/src/components/Tooltip/types.js +1 -17
- package/lib/src/core-components/src/components/Tooltip/utils.js +1 -140
- package/lib/src/core-components/src/components/TreeSelect/TreeSelect.js +1 -303
- package/lib/src/core-components/src/components/TreeSelect/elements.js +117 -216
- package/lib/src/core-components/src/components/TreeSelect/hooks.js +1 -252
- package/lib/src/core-components/src/components/TreeSelect/index.js +1 -3
- package/lib/src/core-components/src/components/TreeSelect/types.js +1 -1
- package/lib/src/core-components/src/components/ag-grid/AgGrid.js +1 -1057
- package/lib/src/core-components/src/components/ag-grid/elements.js +396 -790
- package/lib/src/core-components/src/components/ag-grid/hooks.js +4 -1220
- package/lib/src/core-components/src/components/ag-grid/index.js +1 -15
- package/lib/src/core-components/src/components/ag-grid/types.js +1 -6
- package/lib/src/core-components/src/components/index.js +1 -31
- package/lib/src/core-components/src/components/pdf/pdf-images.components.js +1 -7
- package/lib/src/core-components/src/components/pdf/pdf-table.components.js +5 -48
- package/lib/src/core-components/src/components/pdf/pdf-typography.components.js +1 -70
- package/lib/src/core-components/src/components/pdf/pdf-wrapped-view.components.js +1 -50
- package/lib/src/core-components/src/core-components/Avatar.js +4 -33
- package/lib/src/core-components/src/core-components/CoreButton/CoreButton.js +1 -10
- package/lib/src/core-components/src/core-components/CoreButton/elements.js +67 -176
- package/lib/src/core-components/src/core-components/CoreButton/index.js +1 -3
- package/lib/src/core-components/src/core-components/CoreButton/types.js +1 -6
- package/lib/src/core-components/src/core-components/CoreButton/utils.js +1 -12
- package/lib/src/core-components/src/core-components/Divider/Divider.js +4 -19
- package/lib/src/core-components/src/core-components/Divider/index.js +1 -1
- package/lib/src/core-components/src/core-components/SelectionCardStrip/index.js +1 -1
- package/lib/src/core-components/src/core-components/SelectionCardStrip/selectionCardStrip.js +10 -33
- package/lib/src/core-components/src/core-components/StateLayer.js +3 -5
- package/lib/src/core-components/src/core-components/ToggleCore/elements.js +25 -50
- package/lib/src/core-components/src/core-components/ToggleCore/index.js +1 -2
- package/lib/src/core-components/src/core-components/ToggleCore/toggleCore.js +1 -14
- package/lib/src/core-components/src/core-components/atoms/Input/Input.js +1 -22
- package/lib/src/core-components/src/core-components/atoms/Label/Label.js +1 -21
- package/lib/src/core-components/src/core-components/atoms/Textarea/Textarea.js +1 -19
- package/lib/src/core-components/src/core-components/index.js +1 -3
- package/lib/src/core-components/src/helpers/constants.js +1 -11
- package/lib/src/core-components/src/hooks/index.js +1 -1
- package/lib/src/core-components/src/hooks/outside.hook.js +1 -28
- package/lib/src/core-components/src/index.js +1 -12
- package/lib/src/core-components/src/tc.global.css +3 -0
- package/lib/src/core-components/src/utils/abstracts/breakpoints/index.js +1 -28
- package/lib/src/core-components/src/utils/abstracts/colors/index.js +1 -49
- package/lib/src/core-components/src/utils/abstracts/index.js +1 -5
- package/lib/src/core-components/src/utils/abstracts/space/index.js +1 -26
- package/lib/src/core-components/src/utils/abstracts/theme/ThemeBoundary.js +1 -8
- package/lib/src/core-components/src/utils/abstracts/theme/default-themes.js +1 -30
- package/lib/src/core-components/src/utils/abstracts/theme/index.js +1 -3
- package/lib/src/core-components/src/utils/abstracts/theme/theme.js +1 -30
- package/lib/src/core-components/src/utils/abstracts/theme/types.js +1 -1
- package/lib/src/core-components/src/utils/abstracts/theme/useTheme.js +1 -17
- package/lib/src/core-components/src/utils/abstracts/typography/index.js +1 -25
- package/lib/src/core-components/src/utils/context/DefaultsProvider.js +1 -8
- package/lib/src/core-components/src/utils/context/InternalProvider.js +1 -24
- package/lib/src/core-components/src/utils/context/index.js +1 -2
- package/lib/src/core-components/src/utils/designTokens.js +1 -128
- package/lib/src/core-components/src/utils/helpers/attachSubComponents.js +1 -23
- package/lib/src/core-components/src/utils/helpers/flattenChildren.js +1 -11
- package/lib/src/core-components/src/utils/helpers/getChildByType.js +1 -3
- package/lib/src/core-components/src/utils/helpers/index.js +1 -5
- package/lib/src/core-components/src/utils/helpers/isComponentType.js +1 -16
- package/lib/src/core-components/src/utils/helpers/separateChildrenByType.js +1 -12
- package/lib/src/core-components/src/utils/hooks/index.js +1 -18
- package/lib/src/core-components/src/utils/hooks/useClickOutside.js +1 -18
- package/lib/src/core-components/src/utils/hooks/useCombinedRefs.js +1 -17
- package/lib/src/core-components/src/utils/hooks/useDebouncedCallback.js +1 -12
- package/lib/src/core-components/src/utils/hooks/useDebouncedValue.js +1 -20
- package/lib/src/core-components/src/utils/hooks/useDeprecation.js +1 -40
- package/lib/src/core-components/src/utils/hooks/useDeviceDetect.js +1 -10
- package/lib/src/core-components/src/utils/hooks/useDeviceForm.js +1 -24
- package/lib/src/core-components/src/utils/hooks/useDisableBodyScroll.js +1 -16
- package/lib/src/core-components/src/utils/hooks/useHoverState.js +1 -36
- package/lib/src/core-components/src/utils/hooks/useId.js +1 -7
- package/lib/src/core-components/src/utils/hooks/useIsBrowser.js +1 -11
- package/lib/src/core-components/src/utils/hooks/useMediaQuery.js +1 -16
- package/lib/src/core-components/src/utils/hooks/useOverflow.js +1 -22
- package/lib/src/core-components/src/utils/hooks/useSafeLayoutEffect.js +1 -5
- package/lib/src/core-components/src/utils/hooks/useScrollingUp.js +1 -18
- package/lib/src/core-components/src/utils/hooks/useTrapFocus.js +1 -30
- package/lib/src/core-components/src/utils/hooks/useWindowDimensions.js +1 -23
- package/lib/src/core-components/src/utils/index.js +1 -9
- package/lib/src/core-components/src/utils/stories/Wrappers.js +8 -23
- package/lib/src/core-components/src/utils/stories/cleanProps.js +1 -5
- package/lib/src/core-components/src/utils/stories/index.js +1 -4
- package/lib/src/core-components/src/utils/stories/sleep.js +1 -4
- package/lib/src/core-components/src/utils/stories/view-ports.js +1 -50
- package/lib/src/core-components/src/utils/styling/calcWidthOfColumns.js +1 -5
- package/lib/src/core-components/src/utils/styling/createGridContainer.js +6 -12
- package/lib/src/core-components/src/utils/styling/createTransition.js +2 -7
- package/lib/src/core-components/src/utils/styling/forwardProps.js +1 -10
- package/lib/src/core-components/src/utils/styling/index.js +1 -5
- package/lib/src/core-components/src/utils/styling/pxToRem.js +1 -6
- package/lib/src/core-components/src/utils/testing/getComputedStyle.js +1 -3
- package/lib/src/core-components/src/utils/testing/index.js +1 -1
- package/lib/src/core-components/src/utils/utility.util.js +1 -14
- package/lib/src/core-components/tailwind.config.js +1 -233
- package/lib/src/core-hooks/index.js +1 -3
- package/lib/src/core-hooks/src/useClickOutside/useClickOutside.hook.js +1 -46
- package/lib/src/core-hooks/src/useDebounce/useDebounce.hook.js +1 -30
- package/lib/src/core-hooks/src/usePreventEKey/usePreventEKey.hook.js +1 -8
- package/lib/src/core-utils/index.js +1 -7
- package/lib/src/core-utils/src/calculation/calculation.util.js +1 -89
- package/lib/src/core-utils/src/colors/color.util.js +1 -15
- package/lib/src/core-utils/src/convert/numberToWords/numToWords.util.js +1 -145
- package/lib/src/core-utils/src/convert/typography/camelCaseToTitleCase.util.js +1 -5
- package/lib/src/core-utils/src/form-helper/form-helper.util.js +1 -82
- package/lib/src/core-utils/src/index.js +1 -7
- package/lib/src/core-utils/src/utility/utility.util.js +1 -12
- package/lib/src/core-utils/src/uuid/uuid.util.js +1 -8
- package/package.json +1 -1
|
@@ -1,50 +1,38 @@
|
|
|
1
|
-
import
|
|
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: ${
|
|
27
|
+
color: ${o.onSurface||"#1f2937"};
|
|
38
28
|
background: white;
|
|
39
29
|
border-radius: 8px;
|
|
40
30
|
overflow: hidden;
|
|
41
31
|
|
|
42
|
-
${({
|
|
43
|
-
|
|
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 ${
|
|
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: ${({
|
|
115
|
+
background: ${({$active:e})=>e?o.primary||"#3b82f6":"#6b7280"};
|
|
131
116
|
border: none;
|
|
132
117
|
|
|
133
118
|
&:hover:not(:disabled) {
|
|
134
|
-
background: ${({
|
|
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: ${
|
|
136
|
+
background: ${o.primary||"#3b82f6"};
|
|
153
137
|
border-radius: 6px;
|
|
154
|
-
border: 2px solid ${
|
|
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: ${
|
|
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
|
-
${
|
|
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
|
-
${({
|
|
193
|
-
css `
|
|
175
|
+
${({$animate:e})=>e==="up"&&r`
|
|
194
176
|
animation:
|
|
195
|
-
${
|
|
196
|
-
${
|
|
177
|
+
${l} 0.3s ease-out,
|
|
178
|
+
${s} 0.3s ease-out;
|
|
197
179
|
`}
|
|
198
180
|
|
|
199
|
-
${({
|
|
200
|
-
css `
|
|
181
|
+
${({$animate:e})=>e==="down"&&r`
|
|
201
182
|
animation:
|
|
202
|
-
${
|
|
203
|
-
${
|
|
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: ${({
|
|
222
|
-
${({
|
|
223
|
-
|
|
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
|
-
${({
|
|
235
|
-
css `
|
|
209
|
+
${({$striped:e})=>e&&r`
|
|
236
210
|
tbody tr:nth-child(even) {
|
|
237
|
-
background: ${
|
|
238
|
-
color: ${
|
|
211
|
+
background: ${o.surface||"#f9fafb"};
|
|
212
|
+
color: ${o.onSurface||"#1f2937"};
|
|
239
213
|
}
|
|
240
214
|
`}
|
|
241
215
|
|
|
242
|
-
${({
|
|
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: ${
|
|
220
|
+
color: ${o.onSurface||"#1f2937"};
|
|
248
221
|
}
|
|
249
222
|
`}
|
|
250
|
-
|
|
251
|
-
|
|
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
|
-
|
|
263
|
-
|
|
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
|
-
${({
|
|
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 ${
|
|
246
|
+
border-bottom: 1px solid ${o.outline||"#e5e7eb"};
|
|
279
247
|
`}
|
|
280
248
|
|
|
281
|
-
${({
|
|
282
|
-
|
|
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
|
-
${({
|
|
287
|
-
|
|
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
|
-
${({
|
|
294
|
-
!$customClass &&
|
|
295
|
-
css `
|
|
257
|
+
${({$pinned:e,$customClass:i})=>e&&!i&&r`
|
|
296
258
|
position: sticky;
|
|
297
|
-
${
|
|
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
|
-
${({
|
|
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: ${({
|
|
272
|
+
opacity: ${({$active:e})=>e?1:.5};
|
|
313
273
|
vertical-align: middle;
|
|
314
274
|
|
|
315
275
|
svg {
|
|
@@ -317,141 +277,148 @@ export const SortIcon = styled.span `
|
|
|
317
277
|
height: 8px;
|
|
318
278
|
|
|
319
279
|
&:first-child {
|
|
320
|
-
opacity: ${({
|
|
280
|
+
opacity: ${({$active:e,$direction:i})=>e&&i==="asc"?1:.4};
|
|
321
281
|
}
|
|
322
282
|
|
|
323
283
|
&:last-child {
|
|
324
|
-
opacity: ${({
|
|
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
|
-
|
|
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 ${
|
|
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 ${
|
|
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: ${
|
|
304
|
+
border-color: ${o.primary||"#94a3b8"};
|
|
348
305
|
}
|
|
349
306
|
|
|
350
307
|
&:focus {
|
|
351
308
|
outline: none;
|
|
352
|
-
border-color: ${
|
|
309
|
+
border-color: ${o.primary||"#3b82f6"};
|
|
353
310
|
}
|
|
354
311
|
|
|
355
312
|
&::placeholder {
|
|
356
|
-
color: ${
|
|
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 ${
|
|
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: ${
|
|
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: ${
|
|
331
|
+
color: ${o.onSurface||"#1f2937"};
|
|
378
332
|
background: white;
|
|
379
333
|
|
|
380
334
|
/* Hover effect - only apply when not selected with custom style */
|
|
381
|
-
${({
|
|
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
|
-
${({
|
|
390
|
-
|
|
391
|
-
|
|
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: ${
|
|
399
|
-
? `${tokens.primary}15`
|
|
400
|
-
: '#fde68a'} !important;
|
|
347
|
+
background: ${o.primary?`${o.primary}15`:"#fde68a"} !important;
|
|
401
348
|
}
|
|
402
349
|
`}
|
|
403
350
|
|
|
404
|
-
${({
|
|
405
|
-
!$disabled &&
|
|
406
|
-
css `
|
|
351
|
+
${({$clickable:e,$disabled:i})=>e&&!i&&r`
|
|
407
352
|
cursor: pointer;
|
|
408
353
|
`}
|
|
409
354
|
|
|
410
|
-
${({
|
|
411
|
-
css `
|
|
355
|
+
${({$disabled:e})=>e&&r`
|
|
412
356
|
opacity: 0.5;
|
|
413
|
-
background: ${
|
|
414
|
-
color: ${
|
|
357
|
+
background: ${o.surface||"#e5e7eb"} !important;
|
|
358
|
+
color: ${o.onSurface||"#1f2937"};
|
|
415
359
|
cursor: not-allowed;
|
|
416
360
|
|
|
417
361
|
&:hover {
|
|
418
|
-
background: ${
|
|
362
|
+
background: ${o.surface||"#e5e7eb"} !important;
|
|
419
363
|
}
|
|
420
364
|
`}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
365
|
+
`,TableCellContent=t.div.attrs({className:"tc-table-cell-content"})`
|
|
366
|
+
display: flex;
|
|
367
|
+
width: 100%;
|
|
368
|
+
min-width: 0;
|
|
369
|
+
align-items: stretch;
|
|
370
|
+
gap: 0;
|
|
371
|
+
|
|
372
|
+
${({$hasFormatter:e})=>!e&&r`
|
|
373
|
+
display: block;
|
|
374
|
+
`}
|
|
375
|
+
|
|
376
|
+
> * {
|
|
377
|
+
width: 100%;
|
|
378
|
+
min-width: 0;
|
|
379
|
+
}
|
|
380
|
+
`,TableCell=t.td`
|
|
381
|
+
padding: ${({$padding:e,$compact:i})=>e||"2px"};
|
|
382
|
+
text-align: ${({$align:e})=>e};
|
|
425
383
|
border-bottom: 1px solid #d1d5db;
|
|
426
384
|
border-right: 1px solid #9ca3af;
|
|
427
385
|
vertical-align: middle;
|
|
428
386
|
font-size: 12px;
|
|
429
387
|
|
|
430
|
-
${({
|
|
431
|
-
|
|
432
|
-
color: ${tokens.onSurface || '#1f2937'};
|
|
388
|
+
${({$hasCustomClass:e})=>!e&&r`
|
|
389
|
+
color: ${o.onSurface||"#1f2937"};
|
|
433
390
|
background: transparent;
|
|
434
391
|
`}
|
|
435
392
|
|
|
436
|
-
${({
|
|
437
|
-
!$hasCustomClass &&
|
|
438
|
-
css `
|
|
393
|
+
${({$pinned:e,$hasCustomClass:i})=>e&&!i&&r`
|
|
439
394
|
position: sticky;
|
|
440
|
-
${
|
|
395
|
+
${e}: 0;
|
|
441
396
|
background: white;
|
|
442
397
|
z-index: 1;
|
|
443
398
|
`}
|
|
444
399
|
|
|
445
400
|
/* Add left border separator when custom class is used (e.g., sticky action column) */
|
|
446
|
-
${({
|
|
447
|
-
css `
|
|
401
|
+
${({$hasCustomClass:e})=>e&&r`
|
|
448
402
|
border-left: 2px solid #d1d5db;
|
|
449
403
|
`}
|
|
450
404
|
|
|
451
405
|
/* Ensure formatter content displays properly */
|
|
452
|
-
/*
|
|
453
|
-
|
|
454
|
-
|
|
406
|
+
/* Use a dedicated wrapper to allow formatter content to stretch full width */
|
|
407
|
+
> .tc-table-cell-content {
|
|
408
|
+
display: flex;
|
|
409
|
+
align-items: stretch;
|
|
410
|
+
width: 100%;
|
|
411
|
+
min-width: 0;
|
|
412
|
+
gap: 0;
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
> .tc-table-cell-content > * {
|
|
416
|
+
width: 100%;
|
|
417
|
+
min-width: 0;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
/* Default inline layout for legacy direct children */
|
|
421
|
+
> :not(.tc-table-cell-content) {
|
|
455
422
|
display: inline-block;
|
|
456
423
|
vertical-align: middle;
|
|
457
424
|
}
|
|
@@ -482,17 +449,13 @@ export const TableCell = styled.td `
|
|
|
482
449
|
|
|
483
450
|
/* Disabled state - prevent clicks and show not-allowed cursor */
|
|
484
451
|
/* Only apply pointer-events: none if row is disabled AND column is NOT effectively editable */
|
|
485
|
-
${({
|
|
486
|
-
!$isEditable &&
|
|
487
|
-
css `
|
|
452
|
+
${({$disabled:e,$isEditable:i})=>e&&!i&&r`
|
|
488
453
|
cursor: not-allowed;
|
|
489
454
|
pointer-events: none;
|
|
490
455
|
`}
|
|
491
456
|
|
|
492
457
|
/* If row is disabled but column is effectively editable, ensure proper width and interaction */
|
|
493
|
-
${({
|
|
494
|
-
$isEditable &&
|
|
495
|
-
css `
|
|
458
|
+
${({$disabled:e,$isEditable:i})=>e&&i&&r`
|
|
496
459
|
cursor: default;
|
|
497
460
|
pointer-events: auto !important;
|
|
498
461
|
opacity: 1 !important;
|
|
@@ -502,10 +465,8 @@ export const TableCell = styled.td `
|
|
|
502
465
|
box-sizing: border-box;
|
|
503
466
|
`}
|
|
504
467
|
|
|
505
|
-
/* Remove opacity for columns
|
|
506
|
-
${({
|
|
507
|
-
$isInAllowRows &&
|
|
508
|
-
css `
|
|
468
|
+
/* Remove opacity for allowed columns when row is disabled and ensure proper width */
|
|
469
|
+
${({$disabled:e,$isInAllowedCells:i})=>e&&i&&r`
|
|
509
470
|
opacity: 1 !important;
|
|
510
471
|
pointer-events: auto !important;
|
|
511
472
|
width: auto !important;
|
|
@@ -513,14 +474,12 @@ export const TableCell = styled.td `
|
|
|
513
474
|
max-width: none !important;
|
|
514
475
|
box-sizing: border-box;
|
|
515
476
|
`}
|
|
516
|
-
|
|
517
|
-
export const Checkbox = styled.input.attrs({ type: 'checkbox' }) `
|
|
477
|
+
`,Checkbox=t.input.attrs({type:"checkbox"})`
|
|
518
478
|
width: 16px;
|
|
519
479
|
height: 16px;
|
|
520
480
|
cursor: pointer;
|
|
521
|
-
accent-color: ${
|
|
522
|
-
|
|
523
|
-
export const ExpandButton = styled.button `
|
|
481
|
+
accent-color: ${o.primary||"#3b82f6"};
|
|
482
|
+
`,ExpandButton=t.button`
|
|
524
483
|
display: flex;
|
|
525
484
|
align-items: center;
|
|
526
485
|
justify-content: center;
|
|
@@ -534,36 +493,30 @@ export const ExpandButton = styled.button `
|
|
|
534
493
|
transition: all 0.15s ease;
|
|
535
494
|
|
|
536
495
|
&:hover {
|
|
537
|
-
background: ${
|
|
496
|
+
background: ${o.surface||"#f3f4f6"};
|
|
538
497
|
}
|
|
539
498
|
|
|
540
499
|
svg {
|
|
541
500
|
width: 16px;
|
|
542
501
|
height: 16px;
|
|
543
|
-
color: ${
|
|
502
|
+
color: ${o.onSurface?`${o.onSurface}70`:"#6b7280"};
|
|
544
503
|
transition: transform 0.2s ease;
|
|
545
|
-
transform: ${({
|
|
504
|
+
transform: ${({$expanded:e})=>e?"rotate(90deg)":"rotate(0)"};
|
|
546
505
|
}
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
`;
|
|
551
|
-
export const ExpandedCell = styled.td `
|
|
506
|
+
`,ExpandedRow=t.tr`
|
|
507
|
+
animation: ${a} 0.2s ease;
|
|
508
|
+
`,ExpandedCell=t.td`
|
|
552
509
|
padding: 16px;
|
|
553
|
-
background: ${
|
|
554
|
-
border-bottom: 1px solid ${
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
export const FooterCell = styled.td `
|
|
561
|
-
padding: ${({ $compact }) => ($compact ? '8px 12px' : '12px 16px')};
|
|
562
|
-
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};
|
|
563
517
|
font-weight: 600;
|
|
564
|
-
border-top: 2px solid ${
|
|
565
|
-
|
|
566
|
-
export const PaginationWrapper = styled.div `
|
|
518
|
+
border-top: 2px solid ${o.outline||"#e5e7eb"};
|
|
519
|
+
`,PaginationWrapper=t.div`
|
|
567
520
|
display: flex;
|
|
568
521
|
flex-wrap: wrap;
|
|
569
522
|
align-items: center;
|
|
@@ -571,24 +524,21 @@ export const PaginationWrapper = styled.div `
|
|
|
571
524
|
gap: 12px;
|
|
572
525
|
padding: 12px 16px;
|
|
573
526
|
background: #6b7280;
|
|
574
|
-
border-top: 1px solid ${
|
|
527
|
+
border-top: 1px solid ${o.outline||"#e5e7eb"};
|
|
575
528
|
color: white;
|
|
576
529
|
|
|
577
530
|
@media (max-width: 640px) {
|
|
578
531
|
flex-direction: column;
|
|
579
532
|
align-items: stretch;
|
|
580
533
|
}
|
|
581
|
-
|
|
582
|
-
export const PaginationInfo = styled.div `
|
|
534
|
+
`,PaginationInfo=t.div`
|
|
583
535
|
font-size: 13px;
|
|
584
536
|
color: white;
|
|
585
|
-
|
|
586
|
-
export const PaginationControls = styled.div `
|
|
537
|
+
`,PaginationControls=t.div`
|
|
587
538
|
display: flex;
|
|
588
539
|
align-items: center;
|
|
589
540
|
gap: 4px;
|
|
590
|
-
|
|
591
|
-
export const PageButton = styled.button `
|
|
541
|
+
`,PageButton=t.button`
|
|
592
542
|
display: flex;
|
|
593
543
|
align-items: center;
|
|
594
544
|
justify-content: center;
|
|
@@ -596,17 +546,17 @@ export const PageButton = styled.button `
|
|
|
596
546
|
height: 32px;
|
|
597
547
|
padding: 0 8px;
|
|
598
548
|
font-size: 13px;
|
|
599
|
-
font-weight: ${({
|
|
600
|
-
color: ${({
|
|
601
|
-
background: ${({
|
|
549
|
+
font-weight: ${({$active:e})=>e?600:400};
|
|
550
|
+
color: ${({$active:e})=>"white"};
|
|
551
|
+
background: ${({$active:e})=>e?o.primary||"#3b82f6":"transparent"};
|
|
602
552
|
border: 1px solid
|
|
603
|
-
${({
|
|
553
|
+
${({$active:e})=>e?"transparent":"rgba(255,255,255,0.3)"};
|
|
604
554
|
border-radius: 4px;
|
|
605
555
|
cursor: pointer;
|
|
606
556
|
transition: all 0.15s ease;
|
|
607
557
|
|
|
608
558
|
&:hover:not(:disabled) {
|
|
609
|
-
background: ${({
|
|
559
|
+
background: ${({$active:e})=>e?o.primary||"#2563eb":"rgba(255,255,255,0.1)"};
|
|
610
560
|
}
|
|
611
561
|
|
|
612
562
|
&:disabled {
|
|
@@ -618,23 +568,21 @@ export const PageButton = styled.button `
|
|
|
618
568
|
width: 16px;
|
|
619
569
|
height: 16px;
|
|
620
570
|
}
|
|
621
|
-
|
|
622
|
-
export const PageSizeSelect = styled.select `
|
|
571
|
+
`,PageSizeSelect=t.select`
|
|
623
572
|
height: 32px;
|
|
624
573
|
padding: 0 24px 0 8px;
|
|
625
574
|
font-size: 13px;
|
|
626
575
|
color: #1f2937;
|
|
627
576
|
background: white;
|
|
628
|
-
border: 1px solid ${
|
|
577
|
+
border: 1px solid ${o.outline||"#d1d5db"};
|
|
629
578
|
border-radius: 4px;
|
|
630
579
|
cursor: pointer;
|
|
631
580
|
|
|
632
581
|
&:focus {
|
|
633
582
|
outline: none;
|
|
634
|
-
border-color: ${
|
|
583
|
+
border-color: ${o.primary||"#3b82f6"};
|
|
635
584
|
}
|
|
636
|
-
|
|
637
|
-
export const QuickJumper = styled.div `
|
|
585
|
+
`,QuickJumper=t.div`
|
|
638
586
|
display: flex;
|
|
639
587
|
align-items: center;
|
|
640
588
|
gap: 8px;
|
|
@@ -654,21 +602,20 @@ export const QuickJumper = styled.div `
|
|
|
654
602
|
|
|
655
603
|
&:focus {
|
|
656
604
|
outline: none;
|
|
657
|
-
border-color: ${
|
|
605
|
+
border-color: ${o.primary||"#3b82f6"};
|
|
658
606
|
}
|
|
659
607
|
|
|
660
608
|
&::placeholder {
|
|
661
609
|
color: rgba(255, 255, 255, 0.5);
|
|
662
610
|
}
|
|
663
611
|
}
|
|
664
|
-
|
|
665
|
-
export const EmptyState = styled.div `
|
|
612
|
+
`,EmptyState=t.div`
|
|
666
613
|
display: flex;
|
|
667
614
|
flex-direction: column;
|
|
668
615
|
align-items: center;
|
|
669
616
|
justify-content: center;
|
|
670
617
|
padding: 48px 24px;
|
|
671
|
-
color: ${
|
|
618
|
+
color: ${o.onSurface?`${o.onSurface}60`:"#6b7280"};
|
|
672
619
|
|
|
673
620
|
svg {
|
|
674
621
|
width: 48px;
|
|
@@ -680,8 +627,7 @@ export const EmptyState = styled.div `
|
|
|
680
627
|
span {
|
|
681
628
|
font-size: 14px;
|
|
682
629
|
}
|
|
683
|
-
|
|
684
|
-
export const LoadingOverlay = styled.div `
|
|
630
|
+
`,LoadingOverlay=t.div`
|
|
685
631
|
position: absolute;
|
|
686
632
|
inset: 0;
|
|
687
633
|
display: flex;
|
|
@@ -689,22 +635,18 @@ export const LoadingOverlay = styled.div `
|
|
|
689
635
|
justify-content: center;
|
|
690
636
|
background: rgba(255, 255, 255, 0.8);
|
|
691
637
|
z-index: 20;
|
|
692
|
-
|
|
693
|
-
export const LoadingSpinner = styled.div `
|
|
638
|
+
`,LoadingSpinner=t.div`
|
|
694
639
|
width: 32px;
|
|
695
640
|
height: 32px;
|
|
696
|
-
border: 3px solid ${
|
|
697
|
-
border-top-color: ${
|
|
641
|
+
border: 3px solid ${o.outline||"#e5e7eb"};
|
|
642
|
+
border-top-color: ${o.primary||"#3b82f6"};
|
|
698
643
|
border-radius: 50%;
|
|
699
|
-
animation: ${
|
|
700
|
-
|
|
701
|
-
export const EditableCell = styled.div `
|
|
644
|
+
animation: ${p} 0.8s linear infinite;
|
|
645
|
+
`,EditableCell=t.div`
|
|
702
646
|
position: relative;
|
|
703
647
|
min-height: 24px;
|
|
704
648
|
|
|
705
|
-
${({
|
|
706
|
-
$showEditIcon &&
|
|
707
|
-
css `
|
|
649
|
+
${({$editing:e,$showEditIcon:i=!1})=>!e&&i&&r`
|
|
708
650
|
&:hover::after {
|
|
709
651
|
content: '✏️';
|
|
710
652
|
position: absolute;
|
|
@@ -715,20 +657,18 @@ export const EditableCell = styled.div `
|
|
|
715
657
|
opacity: 0.5;
|
|
716
658
|
}
|
|
717
659
|
`}
|
|
718
|
-
|
|
719
|
-
export const CellEditor = styled.input `
|
|
660
|
+
`,CellEditor=t.input`
|
|
720
661
|
width: 100%;
|
|
721
662
|
padding: 4px 8px;
|
|
722
663
|
font-size: inherit;
|
|
723
|
-
border: 2px solid ${
|
|
664
|
+
border: 2px solid ${o.primary||"#3b82f6"};
|
|
724
665
|
border-radius: 4px;
|
|
725
666
|
background: white;
|
|
726
667
|
|
|
727
668
|
&:focus {
|
|
728
669
|
outline: none;
|
|
729
670
|
}
|
|
730
|
-
|
|
731
|
-
export const ColumnTogglePanel = styled.div `
|
|
671
|
+
`,ColumnTogglePanel=t.div`
|
|
732
672
|
position: absolute;
|
|
733
673
|
top: 100%;
|
|
734
674
|
right: 0;
|
|
@@ -736,18 +676,17 @@ export const ColumnTogglePanel = styled.div `
|
|
|
736
676
|
max-height: 400px;
|
|
737
677
|
overflow-y: auto;
|
|
738
678
|
background: white;
|
|
739
|
-
border: 1px solid ${
|
|
679
|
+
border: 1px solid ${o.outline||"#e5e7eb"};
|
|
740
680
|
border-radius: 8px;
|
|
741
681
|
box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
|
|
742
682
|
z-index: 100;
|
|
743
|
-
animation: ${
|
|
744
|
-
|
|
745
|
-
export const ColumnToggleHeader = styled.div `
|
|
683
|
+
animation: ${a} 0.15s ease;
|
|
684
|
+
`,ColumnToggleHeader=t.div`
|
|
746
685
|
display: flex;
|
|
747
686
|
align-items: center;
|
|
748
687
|
justify-content: space-between;
|
|
749
688
|
padding: 12px 16px;
|
|
750
|
-
border-bottom: 1px solid ${
|
|
689
|
+
border-bottom: 1px solid ${o.outline||"#e5e7eb"};
|
|
751
690
|
|
|
752
691
|
span {
|
|
753
692
|
font-weight: 600;
|
|
@@ -759,63 +698,58 @@ export const ColumnToggleHeader = styled.div `
|
|
|
759
698
|
border: none;
|
|
760
699
|
background: none;
|
|
761
700
|
cursor: pointer;
|
|
762
|
-
color: ${
|
|
701
|
+
color: ${o.onSurface?`${o.onSurface}60`:"#6b7280"};
|
|
763
702
|
|
|
764
703
|
&:hover {
|
|
765
|
-
color: ${
|
|
704
|
+
color: ${o.onSurface||"#1f2937"};
|
|
766
705
|
}
|
|
767
706
|
}
|
|
768
|
-
|
|
769
|
-
export const ColumnToggleSearch = styled.div `
|
|
707
|
+
`,ColumnToggleSearch=t.div`
|
|
770
708
|
padding: 8px 16px;
|
|
771
|
-
border-bottom: 1px solid ${
|
|
709
|
+
border-bottom: 1px solid ${o.outline||"#e5e7eb"};
|
|
772
710
|
|
|
773
711
|
input {
|
|
774
712
|
width: 100%;
|
|
775
713
|
height: 32px;
|
|
776
714
|
padding: 0 12px;
|
|
777
715
|
font-size: 13px;
|
|
778
|
-
border: 1px solid ${
|
|
716
|
+
border: 1px solid ${o.outline||"#d1d5db"};
|
|
779
717
|
border-radius: 6px;
|
|
780
718
|
|
|
781
719
|
&:focus {
|
|
782
720
|
outline: none;
|
|
783
|
-
border-color: ${
|
|
721
|
+
border-color: ${o.primary||"#3b82f6"};
|
|
784
722
|
}
|
|
785
723
|
}
|
|
786
|
-
|
|
787
|
-
export const ColumnToggleList = styled.div `
|
|
724
|
+
`,ColumnToggleList=t.div`
|
|
788
725
|
padding: 8px 0;
|
|
789
726
|
max-height: 300px;
|
|
790
727
|
overflow-y: auto;
|
|
791
|
-
|
|
792
|
-
export const ColumnToggleItem = styled.label `
|
|
728
|
+
`,ColumnToggleItem=t.label`
|
|
793
729
|
display: flex;
|
|
794
730
|
align-items: center;
|
|
795
731
|
gap: 12px;
|
|
796
732
|
padding: 8px 16px;
|
|
797
|
-
cursor: ${({
|
|
733
|
+
cursor: ${({$reorderable:e})=>e?"grab":"pointer"};
|
|
798
734
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
799
735
|
position: relative;
|
|
800
736
|
user-select: none;
|
|
801
737
|
|
|
802
738
|
&:hover {
|
|
803
|
-
background: ${
|
|
739
|
+
background: ${o.surface||"#f3f4f6"};
|
|
804
740
|
}
|
|
805
741
|
|
|
806
742
|
/* Dragging state */
|
|
807
|
-
${({
|
|
808
|
-
css `
|
|
743
|
+
${({$isDragging:e})=>e&&r`
|
|
809
744
|
opacity: 0.4;
|
|
810
745
|
transform: scale(0.98);
|
|
811
|
-
background: ${
|
|
746
|
+
background: ${o.primary||"#3b82f6"}10;
|
|
812
747
|
cursor: grabbing;
|
|
813
748
|
`}
|
|
814
749
|
|
|
815
750
|
/* Drag over state */
|
|
816
|
-
${({
|
|
817
|
-
|
|
818
|
-
background: ${tokens.primary || '#3b82f6'}15;
|
|
751
|
+
${({$isDragOver:e})=>e&&r`
|
|
752
|
+
background: ${o.primary||"#3b82f6"}15;
|
|
819
753
|
transform: translateY(2px);
|
|
820
754
|
|
|
821
755
|
&::before {
|
|
@@ -825,9 +759,9 @@ export const ColumnToggleItem = styled.label `
|
|
|
825
759
|
left: 8px;
|
|
826
760
|
right: 8px;
|
|
827
761
|
height: 2px;
|
|
828
|
-
background: ${
|
|
762
|
+
background: ${o.primary||"#3b82f6"};
|
|
829
763
|
border-radius: 1px;
|
|
830
|
-
animation: ${
|
|
764
|
+
animation: ${a} 0.15s ease;
|
|
831
765
|
}
|
|
832
766
|
`}
|
|
833
767
|
|
|
@@ -835,21 +769,19 @@ export const ColumnToggleItem = styled.label `
|
|
|
835
769
|
width: 16px;
|
|
836
770
|
height: 16px;
|
|
837
771
|
cursor: pointer;
|
|
838
|
-
accent-color: ${
|
|
772
|
+
accent-color: ${o.primary||"#3b82f6"};
|
|
839
773
|
flex-shrink: 0;
|
|
840
774
|
}
|
|
841
775
|
|
|
842
776
|
span {
|
|
843
777
|
font-size: 13px;
|
|
844
|
-
color: ${
|
|
778
|
+
color: ${o.onSurface||"#374151"};
|
|
845
779
|
flex: 1;
|
|
846
780
|
overflow: hidden;
|
|
847
781
|
text-overflow: ellipsis;
|
|
848
782
|
white-space: nowrap;
|
|
849
783
|
}
|
|
850
|
-
|
|
851
|
-
// Drag handle icon for reorderable items
|
|
852
|
-
export const ColumnToggleDragHandle = styled.div `
|
|
784
|
+
`,ColumnToggleDragHandle=t.div`
|
|
853
785
|
display: flex;
|
|
854
786
|
align-items: center;
|
|
855
787
|
justify-content: center;
|
|
@@ -857,24 +789,23 @@ export const ColumnToggleDragHandle = styled.div `
|
|
|
857
789
|
height: 20px;
|
|
858
790
|
margin-left: auto;
|
|
859
791
|
cursor: grab;
|
|
860
|
-
color: ${
|
|
792
|
+
color: ${o.onSurface?`${o.onSurface}40`:"#9ca3af"};
|
|
861
793
|
transition: all 0.2s ease;
|
|
862
794
|
flex-shrink: 0;
|
|
863
795
|
|
|
864
796
|
&:hover {
|
|
865
|
-
color: ${
|
|
797
|
+
color: ${o.primary||"#3b82f6"};
|
|
866
798
|
transform: scale(1.1);
|
|
867
799
|
}
|
|
868
800
|
|
|
869
801
|
&:active {
|
|
870
802
|
cursor: grabbing;
|
|
871
|
-
color: ${
|
|
803
|
+
color: ${o.primary||"#3b82f6"};
|
|
872
804
|
}
|
|
873
805
|
|
|
874
|
-
${({
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
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;
|
|
878
809
|
`}
|
|
879
810
|
|
|
880
811
|
/* Grip dots pattern */
|
|
@@ -883,9 +814,7 @@ export const ColumnToggleDragHandle = styled.div `
|
|
|
883
814
|
font-size: 14px;
|
|
884
815
|
letter-spacing: -2px;
|
|
885
816
|
}
|
|
886
|
-
|
|
887
|
-
// Animated list container
|
|
888
|
-
export const ColumnToggleListAnimated = styled.div `
|
|
817
|
+
`,ColumnToggleListAnimated=t.div`
|
|
889
818
|
padding: 8px 0;
|
|
890
819
|
max-height: 300px;
|
|
891
820
|
overflow-y: auto;
|
|
@@ -894,8 +823,7 @@ export const ColumnToggleListAnimated = styled.div `
|
|
|
894
823
|
& > * {
|
|
895
824
|
transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
896
825
|
}
|
|
897
|
-
|
|
898
|
-
export const ResizeHandle = styled.div `
|
|
826
|
+
`,ResizeHandle=t.div`
|
|
899
827
|
position: absolute;
|
|
900
828
|
right: 0;
|
|
901
829
|
top: 0;
|
|
@@ -905,6 +833,6 @@ export const ResizeHandle = styled.div `
|
|
|
905
833
|
background: transparent;
|
|
906
834
|
|
|
907
835
|
&:hover {
|
|
908
|
-
background: ${
|
|
836
|
+
background: ${o.primary||"#3b82f6"};
|
|
909
837
|
}
|
|
910
838
|
`;
|