@usefragments/ui 1.0.2 → 1.2.0
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/README.md +16 -16
- package/dist/assets/fragments-wordmark.cjs +30 -0
- package/dist/assets/fragments-wordmark.d.ts +13 -0
- package/dist/assets/fragments-wordmark.d.ts.map +1 -0
- package/dist/assets/fragments-wordmark.js +30 -0
- package/dist/assets/ui.css +3234 -3116
- package/dist/components/Accordion/Accordion.module.scss.cjs +8 -8
- package/dist/components/Accordion/Accordion.module.scss.js +8 -8
- package/dist/components/Accordion/index.cjs +22 -10
- package/dist/components/Accordion/index.d.ts.map +1 -1
- package/dist/components/Accordion/index.js +22 -10
- package/dist/components/Alert/Alert.module.scss.cjs +13 -13
- package/dist/components/Alert/Alert.module.scss.js +13 -13
- package/dist/components/AppShell/AppShell.module.scss.cjs +22 -10
- package/dist/components/AppShell/AppShell.module.scss.js +22 -10
- package/dist/components/AppShell/index.cjs +1 -1
- package/dist/components/AppShell/index.js +1 -1
- package/dist/components/Avatar/Avatar.module.scss.cjs +13 -13
- package/dist/components/Avatar/Avatar.module.scss.js +13 -13
- package/dist/components/Badge/Badge.module.scss.cjs +16 -16
- package/dist/components/Badge/Badge.module.scss.js +16 -16
- package/dist/components/BentoGrid/BentoGrid.module.scss.cjs +14 -14
- package/dist/components/BentoGrid/BentoGrid.module.scss.js +14 -14
- package/dist/components/Box/Box.module.scss.cjs +152 -152
- package/dist/components/Box/Box.module.scss.js +152 -152
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.cjs +8 -8
- package/dist/components/Breadcrumbs/Breadcrumbs.module.scss.js +8 -8
- package/dist/components/Button/Button.module.scss.cjs +13 -13
- package/dist/components/Button/Button.module.scss.js +13 -13
- package/dist/components/Card/Card.module.scss.cjs +17 -17
- package/dist/components/Card/Card.module.scss.js +17 -17
- package/dist/components/Card/index.d.ts +3 -3
- package/dist/components/Card/index.d.ts.map +1 -1
- package/dist/components/Chart/Chart.module.scss.cjs +15 -15
- package/dist/components/Chart/Chart.module.scss.js +15 -15
- package/dist/components/Checkbox/Checkbox.module.scss.cjs +11 -11
- package/dist/components/Checkbox/Checkbox.module.scss.js +11 -11
- package/dist/components/Chip/Chip.module.scss.cjs +15 -15
- package/dist/components/Chip/Chip.module.scss.js +15 -15
- package/dist/components/CodeBlock/CodeBlock.module.scss.cjs +21 -21
- package/dist/components/CodeBlock/CodeBlock.module.scss.js +21 -21
- package/dist/components/Collapsible/Collapsible.module.scss.cjs +10 -10
- package/dist/components/Collapsible/Collapsible.module.scss.js +10 -10
- package/dist/components/ColorPicker/ColorPicker.module.scss.cjs +14 -14
- package/dist/components/ColorPicker/ColorPicker.module.scss.js +14 -14
- package/dist/components/Combobox/Combobox.module.scss.cjs +23 -23
- package/dist/components/Combobox/Combobox.module.scss.js +23 -23
- package/dist/components/Combobox/index.cjs +106 -9
- package/dist/components/Combobox/index.d.ts.map +1 -1
- package/dist/components/Combobox/index.js +106 -9
- package/dist/components/Command/Command.module.scss.cjs +11 -11
- package/dist/components/Command/Command.module.scss.js +11 -11
- package/dist/components/ConversationList/ConversationList.module.scss.cjs +10 -10
- package/dist/components/ConversationList/ConversationList.module.scss.js +10 -10
- package/dist/components/DataTable/DataTable.module.scss.cjs +37 -34
- package/dist/components/DataTable/DataTable.module.scss.js +37 -34
- package/dist/components/DataTable/index.d.ts +3 -1
- package/dist/components/DataTable/index.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.module.scss.cjs +33 -33
- package/dist/components/DatePicker/DatePicker.module.scss.js +33 -33
- package/dist/components/DatePicker/index.d.ts +1 -1
- package/dist/components/DatePicker/index.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.module.scss.cjs +14 -14
- package/dist/components/Dialog/Dialog.module.scss.js +14 -14
- package/dist/components/Drawer/Drawer.module.scss.cjs +28 -28
- package/dist/components/Drawer/Drawer.module.scss.js +28 -28
- package/dist/components/Drawer/index.cjs +20 -3
- package/dist/components/Drawer/index.d.ts.map +1 -1
- package/dist/components/Drawer/index.js +20 -3
- package/dist/components/Editor/Editor.module.scss.cjs +17 -17
- package/dist/components/Editor/Editor.module.scss.js +17 -17
- package/dist/components/EmptyState/EmptyState.module.scss.cjs +8 -8
- package/dist/components/EmptyState/EmptyState.module.scss.js +8 -8
- package/dist/components/Field/Field.module.scss.cjs +4 -4
- package/dist/components/Field/Field.module.scss.js +4 -4
- package/dist/components/Field/index.cjs +10 -9
- package/dist/components/Field/index.d.ts +7 -7
- package/dist/components/Field/index.d.ts.map +1 -1
- package/dist/components/Field/index.js +10 -9
- package/dist/components/Fieldset/Fieldset.module.scss.cjs +3 -3
- package/dist/components/Fieldset/Fieldset.module.scss.js +3 -3
- package/dist/components/Header/Header.module.scss.cjs +44 -29
- package/dist/components/Header/Header.module.scss.js +44 -29
- package/dist/components/Header/index.cjs +56 -3
- package/dist/components/Header/index.d.ts +25 -3
- package/dist/components/Header/index.d.ts.map +1 -1
- package/dist/components/Header/index.js +56 -3
- package/dist/components/Icon/Icon.module.scss.cjs +8 -8
- package/dist/components/Icon/Icon.module.scss.js +8 -8
- package/dist/components/IconButton/IconButton.module.scss.cjs +8 -8
- package/dist/components/IconButton/IconButton.module.scss.js +8 -8
- package/dist/components/Image/Image.module.scss.cjs +27 -27
- package/dist/components/Image/Image.module.scss.js +27 -27
- package/dist/components/Input/Input.module.scss.cjs +19 -19
- package/dist/components/Input/Input.module.scss.js +19 -19
- package/dist/components/Link/Link.module.scss.cjs +10 -10
- package/dist/components/Link/Link.module.scss.js +10 -10
- package/dist/components/List/List.module.scss.cjs +19 -19
- package/dist/components/List/List.module.scss.js +19 -19
- package/dist/components/Listbox/Listbox.module.scss.cjs +8 -8
- package/dist/components/Listbox/Listbox.module.scss.js +8 -8
- package/dist/components/Loading/Loading.module.scss.cjs +30 -30
- package/dist/components/Loading/Loading.module.scss.js +30 -30
- package/dist/components/Main/Main.module.scss.cjs +26 -0
- package/dist/components/Main/Main.module.scss.js +26 -0
- package/dist/components/Main/index.cjs +128 -0
- package/dist/components/Main/index.d.ts +22 -0
- package/dist/components/Main/index.d.ts.map +1 -0
- package/dist/components/Main/index.js +111 -0
- package/dist/components/Markdown/Markdown.module.scss.cjs +1 -1
- package/dist/components/Markdown/Markdown.module.scss.js +1 -1
- package/dist/components/Menu/Menu.module.scss.cjs +14 -14
- package/dist/components/Menu/Menu.module.scss.js +14 -14
- package/dist/components/Message/Message.module.scss.cjs +18 -18
- package/dist/components/Message/Message.module.scss.js +18 -18
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.cjs +28 -28
- package/dist/components/NavigationMenu/NavigationMenu.module.scss.js +28 -28
- package/dist/components/Pagination/Pagination.module.scss.cjs +7 -7
- package/dist/components/Pagination/Pagination.module.scss.js +7 -7
- package/dist/components/Popover/Popover.module.scss.cjs +10 -10
- package/dist/components/Popover/Popover.module.scss.js +10 -10
- package/dist/components/Popover/index.cjs +27 -2
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.js +27 -2
- package/dist/components/Progress/Progress.module.scss.cjs +25 -25
- package/dist/components/Progress/Progress.module.scss.js +25 -25
- package/dist/components/Prompt/Prompt.module.scss.cjs +18 -18
- package/dist/components/Prompt/Prompt.module.scss.js +18 -18
- package/dist/components/RadioGroup/RadioGroup.module.scss.cjs +17 -17
- package/dist/components/RadioGroup/RadioGroup.module.scss.js +17 -17
- package/dist/components/RadioGroup/index.cjs +2 -0
- package/dist/components/RadioGroup/index.d.ts +2 -0
- package/dist/components/RadioGroup/index.d.ts.map +1 -1
- package/dist/components/RadioGroup/index.js +2 -0
- package/dist/components/ScrollArea/ScrollArea.module.scss.cjs +10 -10
- package/dist/components/ScrollArea/ScrollArea.module.scss.js +10 -10
- package/dist/components/Select/Select.module.scss.cjs +17 -17
- package/dist/components/Select/Select.module.scss.js +17 -17
- package/dist/components/Separator/Separator.module.scss.cjs +10 -10
- package/dist/components/Separator/Separator.module.scss.js +10 -10
- package/dist/components/Sidebar/Sidebar.module.scss.cjs +42 -42
- package/dist/components/Sidebar/Sidebar.module.scss.js +42 -42
- package/dist/components/Skeleton/Skeleton.module.scss.cjs +38 -38
- package/dist/components/Skeleton/Skeleton.module.scss.js +38 -38
- package/dist/components/Slider/Slider.module.scss.cjs +12 -12
- package/dist/components/Slider/Slider.module.scss.js +12 -12
- package/dist/components/Table/Table.module.scss.cjs +19 -19
- package/dist/components/Table/Table.module.scss.js +19 -19
- package/dist/components/TableOfContents/TableOfContents.module.scss.cjs +15 -15
- package/dist/components/TableOfContents/TableOfContents.module.scss.js +15 -15
- package/dist/components/TableOfContents/index.cjs +22 -42
- package/dist/components/TableOfContents/index.d.ts +3 -3
- package/dist/components/TableOfContents/index.d.ts.map +1 -1
- package/dist/components/TableOfContents/index.js +22 -42
- package/dist/components/Tabs/Tabs.module.scss.cjs +12 -12
- package/dist/components/Tabs/Tabs.module.scss.js +12 -12
- package/dist/components/Text/Text.module.scss.cjs +51 -51
- package/dist/components/Text/Text.module.scss.js +51 -51
- package/dist/components/Textarea/Textarea.module.scss.cjs +23 -23
- package/dist/components/Textarea/Textarea.module.scss.js +23 -23
- package/dist/components/Theme/ThemeToggle.module.scss.cjs +6 -6
- package/dist/components/Theme/ThemeToggle.module.scss.js +6 -6
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.cjs +13 -13
- package/dist/components/ThinkingIndicator/ThinkingIndicator.module.scss.js +13 -13
- package/dist/components/Toast/Toast.module.scss.cjs +21 -21
- package/dist/components/Toast/Toast.module.scss.js +21 -21
- package/dist/components/Toggle/Toggle.module.scss.cjs +13 -13
- package/dist/components/Toggle/Toggle.module.scss.js +13 -13
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.cjs +17 -17
- package/dist/components/ToggleGroup/ToggleGroup.module.scss.js +17 -17
- package/dist/components/Tooltip/Tooltip.module.scss.cjs +3 -3
- package/dist/components/Tooltip/Tooltip.module.scss.js +3 -3
- package/dist/data-table.cjs +58 -41
- package/dist/data-table.js +59 -41
- package/dist/datepicker.cjs +32 -72
- package/dist/datepicker.js +32 -72
- package/dist/index.cjs +89 -85
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -0
- package/fragments.json +1 -1
- package/package.json +9 -8
- package/src/assets/fragments-wordmark.tsx +47 -0
- package/src/components/Accordion/index.tsx +13 -3
- package/src/components/Alert/Alert.module.scss +15 -2
- package/src/components/AppShell/AppShell.module.scss +73 -15
- package/src/components/AppShell/index.tsx +1 -1
- package/src/components/Button/Button.module.scss +19 -20
- package/src/components/Card/Card.module.scss +3 -3
- package/src/components/Card/index.tsx +3 -3
- package/src/components/Checkbox/Checkbox.contract.json +5 -24
- package/src/components/Checkbox/Checkbox.module.scss +4 -2
- package/src/components/Chip/Chip.contract.json +11 -28
- package/src/components/Chip/Chip.module.scss +21 -45
- package/src/components/CodeBlock/CodeBlock.module.scss +2 -7
- package/src/components/Combobox/Combobox.contract.json +6 -24
- package/src/components/Combobox/Combobox.module.scss +3 -2
- package/src/components/Combobox/index.tsx +132 -6
- package/src/components/DataTable/DataTable.contract.json +16 -23
- package/src/components/DataTable/DataTable.module.scss +31 -8
- package/src/components/DataTable/index.tsx +25 -4
- package/src/components/DatePicker/index.tsx +32 -84
- package/src/components/Drawer/index.tsx +38 -12
- package/src/components/Field/index.tsx +35 -35
- package/src/components/Header/Header.contract.json +41 -1
- package/src/components/Header/Header.module.scss +40 -0
- package/src/components/Header/index.tsx +88 -2
- package/src/components/IconButton/IconButton.contract.json +120 -0
- package/src/components/Listbox/Listbox.module.scss +5 -4
- package/src/components/Main/Main.contract.json +79 -0
- package/src/components/Main/Main.module.scss +31 -0
- package/src/components/Main/index.tsx +124 -0
- package/src/components/Menu/Menu.module.scss +8 -10
- package/src/components/Popover/index.tsx +34 -2
- package/src/components/RadioGroup/RadioGroup.contract.json +13 -27
- package/src/components/RadioGroup/index.tsx +4 -0
- package/src/components/Select/Select.module.scss +13 -12
- package/src/components/Table/Table.module.scss +22 -5
- package/src/components/TableOfContents/TableOfContents.contract.json +6 -16
- package/src/components/TableOfContents/TableOfContents.module.scss +20 -14
- package/src/components/TableOfContents/index.tsx +27 -38
- package/src/components/Toast/Toast.module.scss +15 -2
- package/src/components/ToggleGroup/ToggleGroup.module.scss +4 -1
- package/src/index.ts +4 -0
- package/src/styles/globals.scss +13 -10
- package/src/tokens/_component-properties.scss +26 -0
- package/src/tokens/_computed.scss +22 -4
- package/src/tokens/_derive.scss +55 -6
- package/src/tokens/_palettes.scss +24 -0
- package/src/tokens/_seeds.scss +20 -12
- package/src/tokens/_variables.scss +110 -63
- package/dist/components/Cloud/DashboardLayoutPrototypes.shared.d.ts +0 -33
- package/dist/components/Cloud/DashboardLayoutPrototypes.shared.d.ts.map +0 -1
- package/dist/components/Cloud/DashboardLayoutPrototypes.shell.d.ts +0 -11
- package/dist/components/Cloud/DashboardLayoutPrototypes.shell.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.content.d.ts +0 -5
- package/dist/components/Cloud/PullRequestsPrototypes.content.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.detail-panels.d.ts +0 -4
- package/dist/components/Cloud/PullRequestsPrototypes.detail-panels.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.detail.d.ts +0 -3
- package/dist/components/Cloud/PullRequestsPrototypes.detail.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.id-data.d.ts +0 -86
- package/dist/components/Cloud/PullRequestsPrototypes.id-data.d.ts.map +0 -1
- package/dist/components/Cloud/PullRequestsPrototypes.id-page.d.ts +0 -2
- package/dist/components/Cloud/PullRequestsPrototypes.id-page.d.ts.map +0 -1
- package/src/components/Accordion/Accordion.stories.tsx +0 -106
- package/src/components/Alert/Alert.stories.tsx +0 -119
- package/src/components/AppShell/AppShell.stories.tsx +0 -156
- package/src/components/Avatar/Avatar.stories.tsx +0 -74
- package/src/components/Badge/Badge.stories.tsx +0 -92
- package/src/components/BentoGrid/BentoGrid.stories.tsx +0 -98
- package/src/components/Box/Box.stories.tsx +0 -150
- package/src/components/Breadcrumbs/Breadcrumbs.stories.tsx +0 -87
- package/src/components/Button/Button.stories.tsx +0 -103
- package/src/components/ButtonGroup/ButtonGroup.stories.tsx +0 -97
- package/src/components/Card/Card.stories.tsx +0 -144
- package/src/components/Chart/Chart.stories.tsx +0 -119
- package/src/components/Checkbox/Checkbox.stories.tsx +0 -68
- package/src/components/Chip/Chip.stories.tsx +0 -70
- package/src/components/Cloud/CloudGovernanceShell.module.scss +0 -88
- package/src/components/Cloud/CloudGovernanceShell.stories.tsx +0 -446
- package/src/components/Cloud/ControlSizing.module.scss +0 -49
- package/src/components/Cloud/ControlSizing.stories.tsx +0 -238
- package/src/components/Cloud/DashboardLayoutPrototypes.module.scss +0 -462
- package/src/components/Cloud/DashboardLayoutPrototypes.shared.tsx +0 -375
- package/src/components/Cloud/DashboardLayoutPrototypes.shell.tsx +0 -147
- package/src/components/Cloud/DashboardLayoutPrototypes.stories.tsx +0 -328
- package/src/components/Cloud/PullRequestsPrototypes.content.tsx +0 -283
- package/src/components/Cloud/PullRequestsPrototypes.detail-panels.tsx +0 -381
- package/src/components/Cloud/PullRequestsPrototypes.detail.tsx +0 -204
- package/src/components/Cloud/PullRequestsPrototypes.id-data.ts +0 -395
- package/src/components/Cloud/PullRequestsPrototypes.id-page.tsx +0 -349
- package/src/components/Cloud/PullRequestsPrototypes.stories.tsx +0 -81
- package/src/components/CodeBlock/CodeBlock.stories.tsx +0 -147
- package/src/components/Collapsible/Collapsible.stories.tsx +0 -94
- package/src/components/ColorPicker/ColorPicker.stories.tsx +0 -74
- package/src/components/Combobox/Combobox.stories.tsx +0 -133
- package/src/components/Command/Command.stories.tsx +0 -102
- package/src/components/ConversationList/ConversationList.stories.tsx +0 -93
- package/src/components/DataTable/DataTable.stories.tsx +0 -129
- package/src/components/DatePicker/DatePicker.stories.tsx +0 -129
- package/src/components/Dialog/Dialog.stories.tsx +0 -154
- package/src/components/Drawer/Drawer.stories.tsx +0 -144
- package/src/components/Editor/Editor.stories.tsx +0 -99
- package/src/components/EmptyState/EmptyState.stories.tsx +0 -97
- package/src/components/Field/Field.stories.tsx +0 -109
- package/src/components/Fieldset/Fieldset.stories.tsx +0 -116
- package/src/components/Form/Form.stories.tsx +0 -142
- package/src/components/Grid/Grid.stories.tsx +0 -125
- package/src/components/Header/Header.stories.tsx +0 -133
- package/src/components/Icon/Icon.stories.tsx +0 -80
- package/src/components/IconButton/IconButton.stories.tsx +0 -78
- package/src/components/Image/Image.stories.tsx +0 -109
- package/src/components/Input/Input.stories.tsx +0 -104
- package/src/components/Link/Link.stories.tsx +0 -67
- package/src/components/List/List.stories.tsx +0 -95
- package/src/components/Listbox/Listbox.stories.tsx +0 -81
- package/src/components/Loading/Loading.stories.tsx +0 -69
- package/src/components/Markdown/Markdown.stories.tsx +0 -75
- package/src/components/Menu/Menu.stories.tsx +0 -113
- package/src/components/Message/Message.stories.tsx +0 -85
- package/src/components/NavigationMenu/NavigationMenu.stories.tsx +0 -161
- package/src/components/Pagination/Pagination.stories.tsx +0 -81
- package/src/components/Popover/Popover.stories.tsx +0 -152
- package/src/components/Progress/Progress.stories.tsx +0 -64
- package/src/components/Prompt/Prompt.stories.tsx +0 -93
- package/src/components/RadioGroup/RadioGroup.stories.tsx +0 -107
- package/src/components/ScrollArea/ScrollArea.stories.tsx +0 -97
- package/src/components/Select/Select.stories.tsx +0 -127
- package/src/components/Separator/Separator.stories.tsx +0 -84
- package/src/components/Sidebar/Sidebar.stories.tsx +0 -122
- package/src/components/Skeleton/Skeleton.stories.tsx +0 -80
- package/src/components/Slider/Slider.stories.tsx +0 -73
- package/src/components/Stack/Stack.stories.tsx +0 -73
- package/src/components/Switch/Switch.stories.tsx +0 -59
- package/src/components/Table/Table.stories.tsx +0 -219
- package/src/components/TableOfContents/TableOfContents.stories.tsx +0 -120
- package/src/components/Tabs/Tabs.stories.tsx +0 -136
- package/src/components/Text/Text.stories.tsx +0 -133
- package/src/components/Textarea/Textarea.stories.tsx +0 -107
- package/src/components/Theme/Theme.stories.tsx +0 -95
- package/src/components/ThinkingIndicator/ThinkingIndicator.stories.tsx +0 -85
- package/src/components/Toast/Toast.stories.tsx +0 -91
- package/src/components/ToggleGroup/ToggleGroup.stories.tsx +0 -114
- package/src/components/Tooltip/Tooltip.stories.tsx +0 -95
- package/src/components/VisuallyHidden/VisuallyHidden.stories.tsx +0 -78
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const thinkingIndicator = "
|
|
4
|
-
const main = "
|
|
5
|
-
const label = "
|
|
6
|
-
const elapsed = "
|
|
7
|
-
const steps = "
|
|
8
|
-
const step = "
|
|
9
|
-
const stepIndicator = "
|
|
10
|
-
const stepDot = "
|
|
11
|
-
const stepLabel = "
|
|
12
|
-
const stepPending = "
|
|
13
|
-
const stepActive = "
|
|
14
|
-
const stepComplete = "
|
|
15
|
-
const stepError = "
|
|
3
|
+
const thinkingIndicator = "_thinkingIndicator_1ikr9_1";
|
|
4
|
+
const main = "_main_1ikr9_8";
|
|
5
|
+
const label = "_label_1ikr9_14";
|
|
6
|
+
const elapsed = "_elapsed_1ikr9_25";
|
|
7
|
+
const steps = "_steps_1ikr9_34";
|
|
8
|
+
const step = "_step_1ikr9_34";
|
|
9
|
+
const stepIndicator = "_stepIndicator_1ikr9_51";
|
|
10
|
+
const stepDot = "_stepDot_1ikr9_60";
|
|
11
|
+
const stepLabel = "_stepLabel_1ikr9_68";
|
|
12
|
+
const stepPending = "_stepPending_1ikr9_72";
|
|
13
|
+
const stepActive = "_stepActive_1ikr9_76";
|
|
14
|
+
const stepComplete = "_stepComplete_1ikr9_83";
|
|
15
|
+
const stepError = "_stepError_1ikr9_90";
|
|
16
16
|
const styles = {
|
|
17
17
|
thinkingIndicator,
|
|
18
18
|
main,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const thinkingIndicator = "
|
|
2
|
-
const main = "
|
|
3
|
-
const label = "
|
|
4
|
-
const elapsed = "
|
|
5
|
-
const steps = "
|
|
6
|
-
const step = "
|
|
7
|
-
const stepIndicator = "
|
|
8
|
-
const stepDot = "
|
|
9
|
-
const stepLabel = "
|
|
10
|
-
const stepPending = "
|
|
11
|
-
const stepActive = "
|
|
12
|
-
const stepComplete = "
|
|
13
|
-
const stepError = "
|
|
1
|
+
const thinkingIndicator = "_thinkingIndicator_1ikr9_1";
|
|
2
|
+
const main = "_main_1ikr9_8";
|
|
3
|
+
const label = "_label_1ikr9_14";
|
|
4
|
+
const elapsed = "_elapsed_1ikr9_25";
|
|
5
|
+
const steps = "_steps_1ikr9_34";
|
|
6
|
+
const step = "_step_1ikr9_34";
|
|
7
|
+
const stepIndicator = "_stepIndicator_1ikr9_51";
|
|
8
|
+
const stepDot = "_stepDot_1ikr9_60";
|
|
9
|
+
const stepLabel = "_stepLabel_1ikr9_68";
|
|
10
|
+
const stepPending = "_stepPending_1ikr9_72";
|
|
11
|
+
const stepActive = "_stepActive_1ikr9_76";
|
|
12
|
+
const stepComplete = "_stepComplete_1ikr9_83";
|
|
13
|
+
const stepError = "_stepError_1ikr9_90";
|
|
14
14
|
const styles = {
|
|
15
15
|
thinkingIndicator,
|
|
16
16
|
main,
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const container = "
|
|
4
|
-
const topleft = "
|
|
5
|
-
const topcenter = "
|
|
6
|
-
const topright = "
|
|
7
|
-
const bottomleft = "
|
|
8
|
-
const bottomcenter = "
|
|
9
|
-
const bottomright = "
|
|
10
|
-
const toast = "
|
|
11
|
-
const toastEnter = "
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const
|
|
15
|
-
const
|
|
16
|
-
const error = "
|
|
17
|
-
const warning = "
|
|
18
|
-
const info = "
|
|
19
|
-
const content = "
|
|
20
|
-
const action = "
|
|
21
|
-
const close = "
|
|
3
|
+
const container = "_container_5fwfk_1";
|
|
4
|
+
const topleft = "_topleft_5fwfk_15";
|
|
5
|
+
const topcenter = "_topcenter_5fwfk_20";
|
|
6
|
+
const topright = "_topright_5fwfk_26";
|
|
7
|
+
const bottomleft = "_bottomleft_5fwfk_31";
|
|
8
|
+
const bottomcenter = "_bottomcenter_5fwfk_37";
|
|
9
|
+
const bottomright = "_bottomright_5fwfk_44";
|
|
10
|
+
const toast = "_toast_5fwfk_50";
|
|
11
|
+
const toastEnter = "_toastEnter_5fwfk_1";
|
|
12
|
+
const description = "_description_5fwfk_63";
|
|
13
|
+
const icon = "_icon_5fwfk_77";
|
|
14
|
+
const success = "_success_5fwfk_81";
|
|
15
|
+
const title = "_title_5fwfk_85";
|
|
16
|
+
const error = "_error_5fwfk_96";
|
|
17
|
+
const warning = "_warning_5fwfk_111";
|
|
18
|
+
const info = "_info_5fwfk_126";
|
|
19
|
+
const content = "_content_5fwfk_155";
|
|
20
|
+
const action = "_action_5fwfk_174";
|
|
21
|
+
const close = "_close_5fwfk_199";
|
|
22
22
|
const styles = {
|
|
23
23
|
container,
|
|
24
24
|
topleft,
|
|
@@ -29,11 +29,11 @@ const styles = {
|
|
|
29
29
|
bottomright,
|
|
30
30
|
toast,
|
|
31
31
|
toastEnter,
|
|
32
|
-
|
|
32
|
+
description,
|
|
33
|
+
"default": "_default_5fwfk_77",
|
|
33
34
|
icon,
|
|
34
35
|
success,
|
|
35
36
|
title,
|
|
36
|
-
description,
|
|
37
37
|
error,
|
|
38
38
|
warning,
|
|
39
39
|
info,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
const container = "
|
|
2
|
-
const topleft = "
|
|
3
|
-
const topcenter = "
|
|
4
|
-
const topright = "
|
|
5
|
-
const bottomleft = "
|
|
6
|
-
const bottomcenter = "
|
|
7
|
-
const bottomright = "
|
|
8
|
-
const toast = "
|
|
9
|
-
const toastEnter = "
|
|
10
|
-
const
|
|
11
|
-
const
|
|
12
|
-
const
|
|
13
|
-
const
|
|
14
|
-
const error = "
|
|
15
|
-
const warning = "
|
|
16
|
-
const info = "
|
|
17
|
-
const content = "
|
|
18
|
-
const action = "
|
|
19
|
-
const close = "
|
|
1
|
+
const container = "_container_5fwfk_1";
|
|
2
|
+
const topleft = "_topleft_5fwfk_15";
|
|
3
|
+
const topcenter = "_topcenter_5fwfk_20";
|
|
4
|
+
const topright = "_topright_5fwfk_26";
|
|
5
|
+
const bottomleft = "_bottomleft_5fwfk_31";
|
|
6
|
+
const bottomcenter = "_bottomcenter_5fwfk_37";
|
|
7
|
+
const bottomright = "_bottomright_5fwfk_44";
|
|
8
|
+
const toast = "_toast_5fwfk_50";
|
|
9
|
+
const toastEnter = "_toastEnter_5fwfk_1";
|
|
10
|
+
const description = "_description_5fwfk_63";
|
|
11
|
+
const icon = "_icon_5fwfk_77";
|
|
12
|
+
const success = "_success_5fwfk_81";
|
|
13
|
+
const title = "_title_5fwfk_85";
|
|
14
|
+
const error = "_error_5fwfk_96";
|
|
15
|
+
const warning = "_warning_5fwfk_111";
|
|
16
|
+
const info = "_info_5fwfk_126";
|
|
17
|
+
const content = "_content_5fwfk_155";
|
|
18
|
+
const action = "_action_5fwfk_174";
|
|
19
|
+
const close = "_close_5fwfk_199";
|
|
20
20
|
const styles = {
|
|
21
21
|
container,
|
|
22
22
|
topleft,
|
|
@@ -27,11 +27,11 @@ const styles = {
|
|
|
27
27
|
bottomright,
|
|
28
28
|
toast,
|
|
29
29
|
toastEnter,
|
|
30
|
-
|
|
30
|
+
description,
|
|
31
|
+
"default": "_default_5fwfk_77",
|
|
31
32
|
icon,
|
|
32
33
|
success,
|
|
33
34
|
title,
|
|
34
|
-
description,
|
|
35
35
|
error,
|
|
36
36
|
warning,
|
|
37
37
|
info,
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "
|
|
4
|
-
const rootWithHelper = "
|
|
5
|
-
const track = "
|
|
6
|
-
const trackSm = "
|
|
7
|
-
const trackLg = "
|
|
8
|
-
const trackMd = "
|
|
9
|
-
const thumb = "
|
|
10
|
-
const content = "
|
|
11
|
-
const label = "
|
|
12
|
-
const labelSm = "
|
|
13
|
-
const labelLg = "
|
|
14
|
-
const helper = "
|
|
15
|
-
const helperSm = "
|
|
3
|
+
const root = "_root_1uoy9_1";
|
|
4
|
+
const rootWithHelper = "_rootWithHelper_1uoy9_48";
|
|
5
|
+
const track = "_track_1uoy9_51";
|
|
6
|
+
const trackSm = "_trackSm_1uoy9_86";
|
|
7
|
+
const trackLg = "_trackLg_1uoy9_96";
|
|
8
|
+
const trackMd = "_trackMd_1uoy9_106";
|
|
9
|
+
const thumb = "_thumb_1uoy9_116";
|
|
10
|
+
const content = "_content_1uoy9_139";
|
|
11
|
+
const label = "_label_1uoy9_143";
|
|
12
|
+
const labelSm = "_labelSm_1uoy9_151";
|
|
13
|
+
const labelLg = "_labelLg_1uoy9_155";
|
|
14
|
+
const helper = "_helper_1uoy9_159";
|
|
15
|
+
const helperSm = "_helperSm_1uoy9_167";
|
|
16
16
|
const styles = {
|
|
17
17
|
root,
|
|
18
18
|
rootWithHelper,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
const root = "
|
|
2
|
-
const rootWithHelper = "
|
|
3
|
-
const track = "
|
|
4
|
-
const trackSm = "
|
|
5
|
-
const trackLg = "
|
|
6
|
-
const trackMd = "
|
|
7
|
-
const thumb = "
|
|
8
|
-
const content = "
|
|
9
|
-
const label = "
|
|
10
|
-
const labelSm = "
|
|
11
|
-
const labelLg = "
|
|
12
|
-
const helper = "
|
|
13
|
-
const helperSm = "
|
|
1
|
+
const root = "_root_1uoy9_1";
|
|
2
|
+
const rootWithHelper = "_rootWithHelper_1uoy9_48";
|
|
3
|
+
const track = "_track_1uoy9_51";
|
|
4
|
+
const trackSm = "_trackSm_1uoy9_86";
|
|
5
|
+
const trackLg = "_trackLg_1uoy9_96";
|
|
6
|
+
const trackMd = "_trackMd_1uoy9_106";
|
|
7
|
+
const thumb = "_thumb_1uoy9_116";
|
|
8
|
+
const content = "_content_1uoy9_139";
|
|
9
|
+
const label = "_label_1uoy9_143";
|
|
10
|
+
const labelSm = "_labelSm_1uoy9_151";
|
|
11
|
+
const labelLg = "_labelLg_1uoy9_155";
|
|
12
|
+
const helper = "_helper_1uoy9_159";
|
|
13
|
+
const helperSm = "_helperSm_1uoy9_167";
|
|
14
14
|
const styles = {
|
|
15
15
|
root,
|
|
16
16
|
rootWithHelper,
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const group = "
|
|
4
|
-
const gapXs = "_gap-
|
|
5
|
-
const gapSm = "_gap-
|
|
6
|
-
const item = "
|
|
7
|
-
const selected = "
|
|
8
|
-
const pills = "
|
|
9
|
-
const outline = "
|
|
10
|
-
const disabled = "
|
|
11
|
-
const sizeSm = "_size-
|
|
12
|
-
const sizeMd = "_size-
|
|
13
|
-
const sizeLg = "_size-
|
|
3
|
+
const group = "_group_1nacr_1";
|
|
4
|
+
const gapXs = "_gap-xs_1nacr_8";
|
|
5
|
+
const gapSm = "_gap-sm_1nacr_12";
|
|
6
|
+
const item = "_item_1nacr_25";
|
|
7
|
+
const selected = "_selected_1nacr_30";
|
|
8
|
+
const pills = "_pills_1nacr_36";
|
|
9
|
+
const outline = "_outline_1nacr_51";
|
|
10
|
+
const disabled = "_disabled_1nacr_104";
|
|
11
|
+
const sizeSm = "_size-sm_1nacr_109";
|
|
12
|
+
const sizeMd = "_size-md_1nacr_118";
|
|
13
|
+
const sizeLg = "_size-lg_1nacr_127";
|
|
14
14
|
const styles = {
|
|
15
15
|
group,
|
|
16
|
-
"gap-xs": "_gap-
|
|
16
|
+
"gap-xs": "_gap-xs_1nacr_8",
|
|
17
17
|
gapXs,
|
|
18
|
-
"gap-sm": "_gap-
|
|
18
|
+
"gap-sm": "_gap-sm_1nacr_12",
|
|
19
19
|
gapSm,
|
|
20
|
-
"default": "
|
|
20
|
+
"default": "_default_1nacr_16",
|
|
21
21
|
item,
|
|
22
22
|
selected,
|
|
23
23
|
pills,
|
|
24
24
|
outline,
|
|
25
25
|
disabled,
|
|
26
|
-
"size-sm": "_size-
|
|
26
|
+
"size-sm": "_size-sm_1nacr_109",
|
|
27
27
|
sizeSm,
|
|
28
|
-
"size-md": "_size-
|
|
28
|
+
"size-md": "_size-md_1nacr_118",
|
|
29
29
|
sizeMd,
|
|
30
|
-
"size-lg": "_size-
|
|
30
|
+
"size-lg": "_size-lg_1nacr_127",
|
|
31
31
|
sizeLg
|
|
32
32
|
};
|
|
33
33
|
exports.default = styles;
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
const group = "
|
|
2
|
-
const gapXs = "_gap-
|
|
3
|
-
const gapSm = "_gap-
|
|
4
|
-
const item = "
|
|
5
|
-
const selected = "
|
|
6
|
-
const pills = "
|
|
7
|
-
const outline = "
|
|
8
|
-
const disabled = "
|
|
9
|
-
const sizeSm = "_size-
|
|
10
|
-
const sizeMd = "_size-
|
|
11
|
-
const sizeLg = "_size-
|
|
1
|
+
const group = "_group_1nacr_1";
|
|
2
|
+
const gapXs = "_gap-xs_1nacr_8";
|
|
3
|
+
const gapSm = "_gap-sm_1nacr_12";
|
|
4
|
+
const item = "_item_1nacr_25";
|
|
5
|
+
const selected = "_selected_1nacr_30";
|
|
6
|
+
const pills = "_pills_1nacr_36";
|
|
7
|
+
const outline = "_outline_1nacr_51";
|
|
8
|
+
const disabled = "_disabled_1nacr_104";
|
|
9
|
+
const sizeSm = "_size-sm_1nacr_109";
|
|
10
|
+
const sizeMd = "_size-md_1nacr_118";
|
|
11
|
+
const sizeLg = "_size-lg_1nacr_127";
|
|
12
12
|
const styles = {
|
|
13
13
|
group,
|
|
14
|
-
"gap-xs": "_gap-
|
|
14
|
+
"gap-xs": "_gap-xs_1nacr_8",
|
|
15
15
|
gapXs,
|
|
16
|
-
"gap-sm": "_gap-
|
|
16
|
+
"gap-sm": "_gap-sm_1nacr_12",
|
|
17
17
|
gapSm,
|
|
18
|
-
"default": "
|
|
18
|
+
"default": "_default_1nacr_16",
|
|
19
19
|
item,
|
|
20
20
|
selected,
|
|
21
21
|
pills,
|
|
22
22
|
outline,
|
|
23
23
|
disabled,
|
|
24
|
-
"size-sm": "_size-
|
|
24
|
+
"size-sm": "_size-sm_1nacr_109",
|
|
25
25
|
sizeSm,
|
|
26
|
-
"size-md": "_size-
|
|
26
|
+
"size-md": "_size-md_1nacr_118",
|
|
27
27
|
sizeMd,
|
|
28
|
-
"size-lg": "_size-
|
|
28
|
+
"size-lg": "_size-lg_1nacr_127",
|
|
29
29
|
sizeLg
|
|
30
30
|
};
|
|
31
31
|
export {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const positioner = "
|
|
4
|
-
const popup = "
|
|
5
|
-
const arrow = "
|
|
3
|
+
const positioner = "_positioner_whfgf_1";
|
|
4
|
+
const popup = "_popup_whfgf_6";
|
|
5
|
+
const arrow = "_arrow_whfgf_43";
|
|
6
6
|
const styles = {
|
|
7
7
|
positioner,
|
|
8
8
|
popup,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const positioner = "
|
|
2
|
-
const popup = "
|
|
3
|
-
const arrow = "
|
|
1
|
+
const positioner = "_positioner_whfgf_1";
|
|
2
|
+
const popup = "_popup_whfgf_6";
|
|
3
|
+
const arrow = "_arrow_whfgf_43";
|
|
4
4
|
const styles = {
|
|
5
5
|
positioner,
|
|
6
6
|
popup,
|
package/dist/data-table.cjs
CHANGED
|
@@ -42,7 +42,9 @@ function isInteractiveTarget(target, currentTarget) {
|
|
|
42
42
|
const interactiveElement = target.closest(
|
|
43
43
|
'button, a, input, select, textarea, [role="button"], [role="link"], [role="checkbox"], [role="switch"]'
|
|
44
44
|
);
|
|
45
|
-
return Boolean(
|
|
45
|
+
return Boolean(
|
|
46
|
+
interactiveElement && interactiveElement !== currentTarget && currentTarget.contains(interactiveElement)
|
|
47
|
+
);
|
|
46
48
|
}
|
|
47
49
|
function DataTableRoot({
|
|
48
50
|
columns: userColumns,
|
|
@@ -56,6 +58,7 @@ function DataTableRoot({
|
|
|
56
58
|
rowSelection: controlledRowSelection,
|
|
57
59
|
onRowSelectionChange,
|
|
58
60
|
onRowClick,
|
|
61
|
+
getRowProps,
|
|
59
62
|
getSubRows,
|
|
60
63
|
expanded: controlledExpanded,
|
|
61
64
|
onExpandedChange,
|
|
@@ -223,12 +226,24 @@ function DataTableRoot({
|
|
|
223
226
|
const isSelected = selectable ? row.getIsSelected() : false;
|
|
224
227
|
const depth = row.depth ?? 0;
|
|
225
228
|
const canExpand = hasSubRows && row.getCanExpand();
|
|
229
|
+
const resolvedRowProps = (getRowProps == null ? void 0 : getRowProps(row.original)) ?? {};
|
|
230
|
+
const {
|
|
231
|
+
className: rowClassName,
|
|
232
|
+
onClick: rowOnClick,
|
|
233
|
+
onKeyDown: rowOnKeyDown,
|
|
234
|
+
tabIndex: rowTabIndex,
|
|
235
|
+
...rowHtmlProps
|
|
236
|
+
} = resolvedRowProps;
|
|
226
237
|
const handleRowClick = (event) => {
|
|
238
|
+
rowOnClick == null ? void 0 : rowOnClick(event);
|
|
239
|
+
if (event.defaultPrevented) return;
|
|
227
240
|
if (!onRowClick) return;
|
|
228
241
|
if (isInteractiveTarget(event.target, event.currentTarget)) return;
|
|
229
242
|
onRowClick(row.original, event);
|
|
230
243
|
};
|
|
231
244
|
const handleRowKeyDown = (event) => {
|
|
245
|
+
rowOnKeyDown == null ? void 0 : rowOnKeyDown(event);
|
|
246
|
+
if (event.defaultPrevented) return;
|
|
232
247
|
if (!onRowClick) return;
|
|
233
248
|
if (isInteractiveTarget(event.target, event.currentTarget)) return;
|
|
234
249
|
if (event.key === "Enter" || event.key === " ") {
|
|
@@ -236,55 +251,57 @@ function DataTableRoot({
|
|
|
236
251
|
onRowClick(row.original, event);
|
|
237
252
|
}
|
|
238
253
|
};
|
|
239
|
-
return /* @__PURE__ */
|
|
254
|
+
return /* @__PURE__ */ React.createElement(
|
|
240
255
|
"tr",
|
|
241
256
|
{
|
|
257
|
+
...rowHtmlProps,
|
|
258
|
+
key: row.id,
|
|
242
259
|
className: [
|
|
243
260
|
DataTable_module.default.row,
|
|
244
261
|
isClickable && DataTable_module.default.clickable,
|
|
245
262
|
isSelected && DataTable_module.default.selected,
|
|
246
|
-
depth > 0 && DataTable_module.default.subRow
|
|
263
|
+
depth > 0 && DataTable_module.default.subRow,
|
|
264
|
+
rowClassName
|
|
247
265
|
].filter(Boolean).join(" "),
|
|
248
|
-
onClick: isClickable ? handleRowClick : void 0,
|
|
249
|
-
onKeyDown: isClickable ? handleRowKeyDown : void 0,
|
|
250
|
-
tabIndex: isClickable ? 0 : void 0,
|
|
266
|
+
onClick: isClickable || rowOnClick ? handleRowClick : void 0,
|
|
267
|
+
onKeyDown: isClickable || rowOnKeyDown ? handleRowKeyDown : void 0,
|
|
268
|
+
tabIndex: rowTabIndex ?? (isClickable ? 0 : void 0),
|
|
251
269
|
"data-selected": isSelected || void 0,
|
|
252
|
-
"data-depth": depth > 0 ? depth : void 0
|
|
253
|
-
children: row.getVisibleCells().map((cell, cellIndex) => {
|
|
254
|
-
const isFirstDataCell = hasSubRows && cellIndex === (showCheckbox && selectable ? 1 : 0);
|
|
255
|
-
const colDef = cell.column.columnDef;
|
|
256
|
-
const truncate = !!colDef.truncate;
|
|
257
|
-
const rawValue = truncate ? cell.getValue() : void 0;
|
|
258
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
259
|
-
"td",
|
|
260
|
-
{
|
|
261
|
-
className: [DataTable_module.default.td, truncate && DataTable_module.default.truncate].filter(Boolean).join(" "),
|
|
262
|
-
"data-align": colDef.align,
|
|
263
|
-
title: typeof rawValue === "string" ? rawValue : void 0,
|
|
264
|
-
style: {
|
|
265
|
-
...getColumnSizeStyle(cell.column),
|
|
266
|
-
...isFirstDataCell && depth > 0 ? { paddingLeft: `${depth * 24 + 12}px` } : void 0
|
|
267
|
-
},
|
|
268
|
-
children: isFirstDataCell && canExpand ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: DataTable_module.default.expandCell, children: [
|
|
269
|
-
/* @__PURE__ */ jsxRuntime.jsx(
|
|
270
|
-
"button",
|
|
271
|
-
{
|
|
272
|
-
type: "button",
|
|
273
|
-
className: DataTable_module.default.expandButton,
|
|
274
|
-
onClick: row.getToggleExpandedHandler(),
|
|
275
|
-
"aria-label": row.getIsExpanded() ? "Collapse row" : "Expand row",
|
|
276
|
-
"aria-expanded": row.getIsExpanded(),
|
|
277
|
-
children: /* @__PURE__ */ jsxRuntime.jsx(DataTable_icons.ExpandIcon, { expanded: row.getIsExpanded() })
|
|
278
|
-
}
|
|
279
|
-
),
|
|
280
|
-
reactTable.flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
281
|
-
] }) : reactTable.flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
282
|
-
},
|
|
283
|
-
cell.id
|
|
284
|
-
);
|
|
285
|
-
})
|
|
270
|
+
"data-depth": depth > 0 ? depth : void 0
|
|
286
271
|
},
|
|
287
|
-
row.
|
|
272
|
+
row.getVisibleCells().map((cell, cellIndex) => {
|
|
273
|
+
const isFirstDataCell = hasSubRows && cellIndex === (showCheckbox && selectable ? 1 : 0);
|
|
274
|
+
const colDef = cell.column.columnDef;
|
|
275
|
+
const truncate = !!colDef.truncate;
|
|
276
|
+
const rawValue = truncate ? cell.getValue() : void 0;
|
|
277
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
278
|
+
"td",
|
|
279
|
+
{
|
|
280
|
+
className: [DataTable_module.default.td, truncate && DataTable_module.default.truncate].filter(Boolean).join(" "),
|
|
281
|
+
"data-align": colDef.align,
|
|
282
|
+
title: typeof rawValue === "string" ? rawValue : void 0,
|
|
283
|
+
style: {
|
|
284
|
+
...getColumnSizeStyle(cell.column),
|
|
285
|
+
...isFirstDataCell && depth > 0 ? { paddingLeft: `${depth * 24 + 12}px` } : void 0
|
|
286
|
+
},
|
|
287
|
+
children: isFirstDataCell && canExpand ? /* @__PURE__ */ jsxRuntime.jsxs("span", { className: DataTable_module.default.expandCell, children: [
|
|
288
|
+
/* @__PURE__ */ jsxRuntime.jsx(
|
|
289
|
+
"button",
|
|
290
|
+
{
|
|
291
|
+
type: "button",
|
|
292
|
+
className: DataTable_module.default.expandButton,
|
|
293
|
+
onClick: row.getToggleExpandedHandler(),
|
|
294
|
+
"aria-label": row.getIsExpanded() ? "Collapse row" : "Expand row",
|
|
295
|
+
"aria-expanded": row.getIsExpanded(),
|
|
296
|
+
children: /* @__PURE__ */ jsxRuntime.jsx(DataTable_icons.ExpandIcon, { expanded: row.getIsExpanded() })
|
|
297
|
+
}
|
|
298
|
+
),
|
|
299
|
+
reactTable.flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
300
|
+
] }) : reactTable.flexRender(cell.column.columnDef.cell, cell.getContext())
|
|
301
|
+
},
|
|
302
|
+
cell.id
|
|
303
|
+
);
|
|
304
|
+
})
|
|
288
305
|
);
|
|
289
306
|
}) })
|
|
290
307
|
]
|