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.
- 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 -1489
- 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.js +173 -277
- 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.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 +1 -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,119 +277,99 @@ 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
|
-
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
|
-
${({
|
|
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
|
-
|
|
442
|
-
|
|
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
|
-
${({
|
|
450
|
-
|
|
451
|
-
color: ${tokens.onSurface || '#1f2937'};
|
|
388
|
+
${({$hasCustomClass:e})=>!e&&r`
|
|
389
|
+
color: ${o.onSurface||"#1f2937"};
|
|
452
390
|
background: transparent;
|
|
453
391
|
`}
|
|
454
392
|
|
|
455
|
-
${({
|
|
456
|
-
!$hasCustomClass &&
|
|
457
|
-
css `
|
|
393
|
+
${({$pinned:e,$hasCustomClass:i})=>e&&!i&&r`
|
|
458
394
|
position: sticky;
|
|
459
|
-
${
|
|
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
|
-
${({
|
|
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
|
-
${({
|
|
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
|
-
${({
|
|
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
|
-
${({
|
|
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: ${
|
|
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: ${
|
|
496
|
+
background: ${o.surface||"#f3f4f6"};
|
|
570
497
|
}
|
|
571
498
|
|
|
572
499
|
svg {
|
|
573
500
|
width: 16px;
|
|
574
501
|
height: 16px;
|
|
575
|
-
color: ${
|
|
502
|
+
color: ${o.onSurface?`${o.onSurface}70`:"#6b7280"};
|
|
576
503
|
transition: transform 0.2s ease;
|
|
577
|
-
transform: ${({
|
|
504
|
+
transform: ${({$expanded:e})=>e?"rotate(90deg)":"rotate(0)"};
|
|
578
505
|
}
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
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: ${
|
|
586
|
-
border-bottom: 1px solid ${
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
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 ${
|
|
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 ${
|
|
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: ${({
|
|
632
|
-
color: ${({
|
|
633
|
-
background: ${({
|
|
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
|
-
${({
|
|
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: ${({
|
|
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 ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
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 ${
|
|
729
|
-
border-top-color: ${
|
|
641
|
+
border: 3px solid ${o.outline||"#e5e7eb"};
|
|
642
|
+
border-top-color: ${o.primary||"#3b82f6"};
|
|
730
643
|
border-radius: 50%;
|
|
731
|
-
animation: ${
|
|
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
|
-
${({
|
|
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 ${
|
|
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 ${
|
|
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: ${
|
|
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 ${
|
|
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: ${
|
|
701
|
+
color: ${o.onSurface?`${o.onSurface}60`:"#6b7280"};
|
|
795
702
|
|
|
796
703
|
&:hover {
|
|
797
|
-
color: ${
|
|
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 ${
|
|
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 ${
|
|
716
|
+
border: 1px solid ${o.outline||"#d1d5db"};
|
|
811
717
|
border-radius: 6px;
|
|
812
718
|
|
|
813
719
|
&:focus {
|
|
814
720
|
outline: none;
|
|
815
|
-
border-color: ${
|
|
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: ${({
|
|
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: ${
|
|
739
|
+
background: ${o.surface||"#f3f4f6"};
|
|
836
740
|
}
|
|
837
741
|
|
|
838
742
|
/* Dragging state */
|
|
839
|
-
${({
|
|
840
|
-
css `
|
|
743
|
+
${({$isDragging:e})=>e&&r`
|
|
841
744
|
opacity: 0.4;
|
|
842
745
|
transform: scale(0.98);
|
|
843
|
-
background: ${
|
|
746
|
+
background: ${o.primary||"#3b82f6"}10;
|
|
844
747
|
cursor: grabbing;
|
|
845
748
|
`}
|
|
846
749
|
|
|
847
750
|
/* Drag over state */
|
|
848
|
-
${({
|
|
849
|
-
|
|
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: ${
|
|
762
|
+
background: ${o.primary||"#3b82f6"};
|
|
861
763
|
border-radius: 1px;
|
|
862
|
-
animation: ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
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: ${
|
|
797
|
+
color: ${o.primary||"#3b82f6"};
|
|
898
798
|
transform: scale(1.1);
|
|
899
799
|
}
|
|
900
800
|
|
|
901
801
|
&:active {
|
|
902
802
|
cursor: grabbing;
|
|
903
|
-
color: ${
|
|
803
|
+
color: ${o.primary||"#3b82f6"};
|
|
904
804
|
}
|
|
905
805
|
|
|
906
|
-
${({
|
|
907
|
-
|
|
908
|
-
|
|
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: ${
|
|
836
|
+
background: ${o.primary||"#3b82f6"};
|
|
941
837
|
}
|
|
942
838
|
`;
|