@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
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import * as React from "react";
|
|
3
|
+
import { Stack } from "../Stack/index.js";
|
|
4
|
+
import styles from "./Main.module.scss.js";
|
|
5
|
+
function joinClasses(...classes) {
|
|
6
|
+
return classes.filter(Boolean).join(" ");
|
|
7
|
+
}
|
|
8
|
+
const MainRoot = React.forwardRef(function MainRoot2({ as = "main", children, className, measure = "full", ...htmlProps }, ref) {
|
|
9
|
+
return /* @__PURE__ */ jsx(
|
|
10
|
+
Stack,
|
|
11
|
+
{
|
|
12
|
+
...htmlProps,
|
|
13
|
+
ref,
|
|
14
|
+
as,
|
|
15
|
+
direction: "column",
|
|
16
|
+
gap: "lg",
|
|
17
|
+
className: joinClasses(
|
|
18
|
+
styles.root,
|
|
19
|
+
measure === "narrow" ? styles.narrow : styles.full,
|
|
20
|
+
className
|
|
21
|
+
),
|
|
22
|
+
"data-main-measure": measure,
|
|
23
|
+
children
|
|
24
|
+
}
|
|
25
|
+
);
|
|
26
|
+
});
|
|
27
|
+
function MainHeader({
|
|
28
|
+
as = "header",
|
|
29
|
+
direction = "column",
|
|
30
|
+
gap = "sm",
|
|
31
|
+
className,
|
|
32
|
+
...props
|
|
33
|
+
}) {
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
|
+
Stack,
|
|
36
|
+
{
|
|
37
|
+
...props,
|
|
38
|
+
as,
|
|
39
|
+
direction,
|
|
40
|
+
gap,
|
|
41
|
+
className: joinClasses(styles.header, className)
|
|
42
|
+
}
|
|
43
|
+
);
|
|
44
|
+
}
|
|
45
|
+
function MainDescription({
|
|
46
|
+
as = "div",
|
|
47
|
+
direction = "column",
|
|
48
|
+
gap = "xs",
|
|
49
|
+
className,
|
|
50
|
+
...props
|
|
51
|
+
}) {
|
|
52
|
+
return /* @__PURE__ */ jsx(
|
|
53
|
+
Stack,
|
|
54
|
+
{
|
|
55
|
+
...props,
|
|
56
|
+
as,
|
|
57
|
+
direction,
|
|
58
|
+
gap,
|
|
59
|
+
className: joinClasses(styles.description, className)
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
}
|
|
63
|
+
function MainContent({
|
|
64
|
+
as = "div",
|
|
65
|
+
direction = "column",
|
|
66
|
+
gap = "lg",
|
|
67
|
+
className,
|
|
68
|
+
...props
|
|
69
|
+
}) {
|
|
70
|
+
return /* @__PURE__ */ jsx(
|
|
71
|
+
Stack,
|
|
72
|
+
{
|
|
73
|
+
...props,
|
|
74
|
+
as,
|
|
75
|
+
direction,
|
|
76
|
+
gap,
|
|
77
|
+
className: joinClasses(styles.content, className)
|
|
78
|
+
}
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
function MainFooter({
|
|
82
|
+
as = "footer",
|
|
83
|
+
direction = "row",
|
|
84
|
+
gap = "sm",
|
|
85
|
+
justify = "end",
|
|
86
|
+
wrap = true,
|
|
87
|
+
className,
|
|
88
|
+
...props
|
|
89
|
+
}) {
|
|
90
|
+
return /* @__PURE__ */ jsx(
|
|
91
|
+
Stack,
|
|
92
|
+
{
|
|
93
|
+
...props,
|
|
94
|
+
as,
|
|
95
|
+
direction,
|
|
96
|
+
gap,
|
|
97
|
+
justify,
|
|
98
|
+
wrap,
|
|
99
|
+
className: joinClasses(styles.footer, className)
|
|
100
|
+
}
|
|
101
|
+
);
|
|
102
|
+
}
|
|
103
|
+
const Main = Object.assign(MainRoot, {
|
|
104
|
+
Header: MainHeader,
|
|
105
|
+
Description: MainDescription,
|
|
106
|
+
Content: MainContent,
|
|
107
|
+
Footer: MainFooter
|
|
108
|
+
});
|
|
109
|
+
export {
|
|
110
|
+
Main
|
|
111
|
+
};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const positioner = "
|
|
4
|
-
const popup = "
|
|
5
|
-
const viewport = "
|
|
6
|
-
const item = "
|
|
7
|
-
const itemDanger = "
|
|
8
|
-
const itemIcon = "
|
|
9
|
-
const itemLabel = "
|
|
10
|
-
const itemShortcut = "
|
|
11
|
-
const checkIndicator = "
|
|
12
|
-
const radioIndicator = "
|
|
13
|
-
const radioItem = "
|
|
14
|
-
const separator = "
|
|
15
|
-
const groupLabel = "
|
|
16
|
-
const submenuTrigger = "
|
|
3
|
+
const positioner = "_positioner_1jbbi_1";
|
|
4
|
+
const popup = "_popup_1jbbi_7";
|
|
5
|
+
const viewport = "_viewport_1jbbi_32";
|
|
6
|
+
const item = "_item_1jbbi_37";
|
|
7
|
+
const itemDanger = "_itemDanger_1jbbi_77";
|
|
8
|
+
const itemIcon = "_itemIcon_1jbbi_85";
|
|
9
|
+
const itemLabel = "_itemLabel_1jbbi_101";
|
|
10
|
+
const itemShortcut = "_itemShortcut_1jbbi_105";
|
|
11
|
+
const checkIndicator = "_checkIndicator_1jbbi_111";
|
|
12
|
+
const radioIndicator = "_radioIndicator_1jbbi_121";
|
|
13
|
+
const radioItem = "_radioItem_1jbbi_134";
|
|
14
|
+
const separator = "_separator_1jbbi_139";
|
|
15
|
+
const groupLabel = "_groupLabel_1jbbi_145";
|
|
16
|
+
const submenuTrigger = "_submenuTrigger_1jbbi_178";
|
|
17
17
|
const styles = {
|
|
18
18
|
positioner,
|
|
19
19
|
popup,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
const positioner = "
|
|
2
|
-
const popup = "
|
|
3
|
-
const viewport = "
|
|
4
|
-
const item = "
|
|
5
|
-
const itemDanger = "
|
|
6
|
-
const itemIcon = "
|
|
7
|
-
const itemLabel = "
|
|
8
|
-
const itemShortcut = "
|
|
9
|
-
const checkIndicator = "
|
|
10
|
-
const radioIndicator = "
|
|
11
|
-
const radioItem = "
|
|
12
|
-
const separator = "
|
|
13
|
-
const groupLabel = "
|
|
14
|
-
const submenuTrigger = "
|
|
1
|
+
const positioner = "_positioner_1jbbi_1";
|
|
2
|
+
const popup = "_popup_1jbbi_7";
|
|
3
|
+
const viewport = "_viewport_1jbbi_32";
|
|
4
|
+
const item = "_item_1jbbi_37";
|
|
5
|
+
const itemDanger = "_itemDanger_1jbbi_77";
|
|
6
|
+
const itemIcon = "_itemIcon_1jbbi_85";
|
|
7
|
+
const itemLabel = "_itemLabel_1jbbi_101";
|
|
8
|
+
const itemShortcut = "_itemShortcut_1jbbi_105";
|
|
9
|
+
const checkIndicator = "_checkIndicator_1jbbi_111";
|
|
10
|
+
const radioIndicator = "_radioIndicator_1jbbi_121";
|
|
11
|
+
const radioItem = "_radioItem_1jbbi_134";
|
|
12
|
+
const separator = "_separator_1jbbi_139";
|
|
13
|
+
const groupLabel = "_groupLabel_1jbbi_145";
|
|
14
|
+
const submenuTrigger = "_submenuTrigger_1jbbi_178";
|
|
15
15
|
const styles = {
|
|
16
16
|
positioner,
|
|
17
17
|
popup,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const message = "
|
|
4
|
-
const actions = "
|
|
5
|
-
const user = "
|
|
6
|
-
const body = "
|
|
7
|
-
const content = "
|
|
8
|
-
const assistant = "
|
|
9
|
-
const system = "
|
|
10
|
-
const avatar = "
|
|
11
|
-
const error = "
|
|
12
|
-
const sending = "
|
|
13
|
-
const avatarUser = "
|
|
14
|
-
const avatarAssistant = "
|
|
15
|
-
const avatarSystem = "
|
|
16
|
-
const avatarImage = "
|
|
17
|
-
const avatarImg = "
|
|
18
|
-
const streaming = "
|
|
19
|
-
const blink = "
|
|
20
|
-
const timestamp = "
|
|
3
|
+
const message = "_message_rfanq_1";
|
|
4
|
+
const actions = "_actions_rfanq_8";
|
|
5
|
+
const user = "_user_rfanq_15";
|
|
6
|
+
const body = "_body_rfanq_19";
|
|
7
|
+
const content = "_content_rfanq_22";
|
|
8
|
+
const assistant = "_assistant_rfanq_27";
|
|
9
|
+
const system = "_system_rfanq_32";
|
|
10
|
+
const avatar = "_avatar_rfanq_42";
|
|
11
|
+
const error = "_error_rfanq_46";
|
|
12
|
+
const sending = "_sending_rfanq_52";
|
|
13
|
+
const avatarUser = "_avatarUser_rfanq_72";
|
|
14
|
+
const avatarAssistant = "_avatarAssistant_rfanq_77";
|
|
15
|
+
const avatarSystem = "_avatarSystem_rfanq_82";
|
|
16
|
+
const avatarImage = "_avatarImage_rfanq_87";
|
|
17
|
+
const avatarImg = "_avatarImg_rfanq_92";
|
|
18
|
+
const streaming = "_streaming_rfanq_148";
|
|
19
|
+
const blink = "_blink_rfanq_1";
|
|
20
|
+
const timestamp = "_timestamp_rfanq_174";
|
|
21
21
|
const styles = {
|
|
22
22
|
message,
|
|
23
23
|
actions,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
const message = "
|
|
2
|
-
const actions = "
|
|
3
|
-
const user = "
|
|
4
|
-
const body = "
|
|
5
|
-
const content = "
|
|
6
|
-
const assistant = "
|
|
7
|
-
const system = "
|
|
8
|
-
const avatar = "
|
|
9
|
-
const error = "
|
|
10
|
-
const sending = "
|
|
11
|
-
const avatarUser = "
|
|
12
|
-
const avatarAssistant = "
|
|
13
|
-
const avatarSystem = "
|
|
14
|
-
const avatarImage = "
|
|
15
|
-
const avatarImg = "
|
|
16
|
-
const streaming = "
|
|
17
|
-
const blink = "
|
|
18
|
-
const timestamp = "
|
|
1
|
+
const message = "_message_rfanq_1";
|
|
2
|
+
const actions = "_actions_rfanq_8";
|
|
3
|
+
const user = "_user_rfanq_15";
|
|
4
|
+
const body = "_body_rfanq_19";
|
|
5
|
+
const content = "_content_rfanq_22";
|
|
6
|
+
const assistant = "_assistant_rfanq_27";
|
|
7
|
+
const system = "_system_rfanq_32";
|
|
8
|
+
const avatar = "_avatar_rfanq_42";
|
|
9
|
+
const error = "_error_rfanq_46";
|
|
10
|
+
const sending = "_sending_rfanq_52";
|
|
11
|
+
const avatarUser = "_avatarUser_rfanq_72";
|
|
12
|
+
const avatarAssistant = "_avatarAssistant_rfanq_77";
|
|
13
|
+
const avatarSystem = "_avatarSystem_rfanq_82";
|
|
14
|
+
const avatarImage = "_avatarImage_rfanq_87";
|
|
15
|
+
const avatarImg = "_avatarImg_rfanq_92";
|
|
16
|
+
const streaming = "_streaming_rfanq_148";
|
|
17
|
+
const blink = "_blink_rfanq_1";
|
|
18
|
+
const timestamp = "_timestamp_rfanq_174";
|
|
19
19
|
const styles = {
|
|
20
20
|
message,
|
|
21
21
|
actions,
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const root = "
|
|
4
|
-
const rootVertical = "
|
|
5
|
-
const list = "
|
|
6
|
-
const listVertical = "
|
|
7
|
-
const trigger = "
|
|
8
|
-
const triggerChevron = "
|
|
9
|
-
const content = "
|
|
10
|
-
const link = "
|
|
11
|
-
const linkActive = "
|
|
12
|
-
const linkStructured = "
|
|
13
|
-
const linkIcon = "
|
|
14
|
-
const linkBody = "
|
|
15
|
-
const linkTitle = "
|
|
16
|
-
const linkDescription = "
|
|
17
|
-
const linkFeatured = "
|
|
18
|
-
const indicator = "
|
|
19
|
-
const viewport = "
|
|
20
|
-
const hamburger = "
|
|
21
|
-
const drawerBackdrop = "
|
|
22
|
-
const drawer = "
|
|
23
|
-
const drawerHeader = "
|
|
24
|
-
const drawerClose = "
|
|
25
|
-
const drawerBody = "
|
|
26
|
-
const drawerNav = "
|
|
27
|
-
const drawerLink = "
|
|
28
|
-
const drawerSectionLabel = "
|
|
29
|
-
const drawerCollapsibleTrigger = "
|
|
30
|
-
const drawerCollapsibleContent = "
|
|
3
|
+
const root = "_root_1wshu_1";
|
|
4
|
+
const rootVertical = "_rootVertical_1wshu_9";
|
|
5
|
+
const list = "_list_1wshu_14";
|
|
6
|
+
const listVertical = "_listVertical_1wshu_28";
|
|
7
|
+
const trigger = "_trigger_1wshu_33";
|
|
8
|
+
const triggerChevron = "_triggerChevron_1wshu_85";
|
|
9
|
+
const content = "_content_1wshu_93";
|
|
10
|
+
const link = "_link_1wshu_156";
|
|
11
|
+
const linkActive = "_linkActive_1wshu_197";
|
|
12
|
+
const linkStructured = "_linkStructured_1wshu_203";
|
|
13
|
+
const linkIcon = "_linkIcon_1wshu_216";
|
|
14
|
+
const linkBody = "_linkBody_1wshu_227";
|
|
15
|
+
const linkTitle = "_linkTitle_1wshu_234";
|
|
16
|
+
const linkDescription = "_linkDescription_1wshu_241";
|
|
17
|
+
const linkFeatured = "_linkFeatured_1wshu_247";
|
|
18
|
+
const indicator = "_indicator_1wshu_257";
|
|
19
|
+
const viewport = "_viewport_1wshu_267";
|
|
20
|
+
const hamburger = "_hamburger_1wshu_299";
|
|
21
|
+
const drawerBackdrop = "_drawerBackdrop_1wshu_346";
|
|
22
|
+
const drawer = "_drawer_1wshu_346";
|
|
23
|
+
const drawerHeader = "_drawerHeader_1wshu_380";
|
|
24
|
+
const drawerClose = "_drawerClose_1wshu_389";
|
|
25
|
+
const drawerBody = "_drawerBody_1wshu_427";
|
|
26
|
+
const drawerNav = "_drawerNav_1wshu_433";
|
|
27
|
+
const drawerLink = "_drawerLink_1wshu_438";
|
|
28
|
+
const drawerSectionLabel = "_drawerSectionLabel_1wshu_472";
|
|
29
|
+
const drawerCollapsibleTrigger = "_drawerCollapsibleTrigger_1wshu_483";
|
|
30
|
+
const drawerCollapsibleContent = "_drawerCollapsibleContent_1wshu_526";
|
|
31
31
|
const styles = {
|
|
32
32
|
root,
|
|
33
33
|
rootVertical,
|
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
const root = "
|
|
2
|
-
const rootVertical = "
|
|
3
|
-
const list = "
|
|
4
|
-
const listVertical = "
|
|
5
|
-
const trigger = "
|
|
6
|
-
const triggerChevron = "
|
|
7
|
-
const content = "
|
|
8
|
-
const link = "
|
|
9
|
-
const linkActive = "
|
|
10
|
-
const linkStructured = "
|
|
11
|
-
const linkIcon = "
|
|
12
|
-
const linkBody = "
|
|
13
|
-
const linkTitle = "
|
|
14
|
-
const linkDescription = "
|
|
15
|
-
const linkFeatured = "
|
|
16
|
-
const indicator = "
|
|
17
|
-
const viewport = "
|
|
18
|
-
const hamburger = "
|
|
19
|
-
const drawerBackdrop = "
|
|
20
|
-
const drawer = "
|
|
21
|
-
const drawerHeader = "
|
|
22
|
-
const drawerClose = "
|
|
23
|
-
const drawerBody = "
|
|
24
|
-
const drawerNav = "
|
|
25
|
-
const drawerLink = "
|
|
26
|
-
const drawerSectionLabel = "
|
|
27
|
-
const drawerCollapsibleTrigger = "
|
|
28
|
-
const drawerCollapsibleContent = "
|
|
1
|
+
const root = "_root_1wshu_1";
|
|
2
|
+
const rootVertical = "_rootVertical_1wshu_9";
|
|
3
|
+
const list = "_list_1wshu_14";
|
|
4
|
+
const listVertical = "_listVertical_1wshu_28";
|
|
5
|
+
const trigger = "_trigger_1wshu_33";
|
|
6
|
+
const triggerChevron = "_triggerChevron_1wshu_85";
|
|
7
|
+
const content = "_content_1wshu_93";
|
|
8
|
+
const link = "_link_1wshu_156";
|
|
9
|
+
const linkActive = "_linkActive_1wshu_197";
|
|
10
|
+
const linkStructured = "_linkStructured_1wshu_203";
|
|
11
|
+
const linkIcon = "_linkIcon_1wshu_216";
|
|
12
|
+
const linkBody = "_linkBody_1wshu_227";
|
|
13
|
+
const linkTitle = "_linkTitle_1wshu_234";
|
|
14
|
+
const linkDescription = "_linkDescription_1wshu_241";
|
|
15
|
+
const linkFeatured = "_linkFeatured_1wshu_247";
|
|
16
|
+
const indicator = "_indicator_1wshu_257";
|
|
17
|
+
const viewport = "_viewport_1wshu_267";
|
|
18
|
+
const hamburger = "_hamburger_1wshu_299";
|
|
19
|
+
const drawerBackdrop = "_drawerBackdrop_1wshu_346";
|
|
20
|
+
const drawer = "_drawer_1wshu_346";
|
|
21
|
+
const drawerHeader = "_drawerHeader_1wshu_380";
|
|
22
|
+
const drawerClose = "_drawerClose_1wshu_389";
|
|
23
|
+
const drawerBody = "_drawerBody_1wshu_427";
|
|
24
|
+
const drawerNav = "_drawerNav_1wshu_433";
|
|
25
|
+
const drawerLink = "_drawerLink_1wshu_438";
|
|
26
|
+
const drawerSectionLabel = "_drawerSectionLabel_1wshu_472";
|
|
27
|
+
const drawerCollapsibleTrigger = "_drawerCollapsibleTrigger_1wshu_483";
|
|
28
|
+
const drawerCollapsibleContent = "_drawerCollapsibleContent_1wshu_526";
|
|
29
29
|
const styles = {
|
|
30
30
|
root,
|
|
31
31
|
rootVertical,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const pagination = "
|
|
4
|
-
const list = "
|
|
5
|
-
const item = "
|
|
6
|
-
const itemActive = "
|
|
7
|
-
const itemDisabled = "
|
|
8
|
-
const navButton = "
|
|
9
|
-
const ellipsis = "
|
|
3
|
+
const pagination = "_pagination_1ruwh_1";
|
|
4
|
+
const list = "_list_1ruwh_7";
|
|
5
|
+
const item = "_item_1ruwh_16";
|
|
6
|
+
const itemActive = "_itemActive_1ruwh_57";
|
|
7
|
+
const itemDisabled = "_itemDisabled_1ruwh_65";
|
|
8
|
+
const navButton = "_navButton_1ruwh_71";
|
|
9
|
+
const ellipsis = "_ellipsis_1ruwh_76";
|
|
10
10
|
const styles = {
|
|
11
11
|
pagination,
|
|
12
12
|
list,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
const pagination = "
|
|
2
|
-
const list = "
|
|
3
|
-
const item = "
|
|
4
|
-
const itemActive = "
|
|
5
|
-
const itemDisabled = "
|
|
6
|
-
const navButton = "
|
|
7
|
-
const ellipsis = "
|
|
1
|
+
const pagination = "_pagination_1ruwh_1";
|
|
2
|
+
const list = "_list_1ruwh_7";
|
|
3
|
+
const item = "_item_1ruwh_16";
|
|
4
|
+
const itemActive = "_itemActive_1ruwh_57";
|
|
5
|
+
const itemDisabled = "_itemDisabled_1ruwh_65";
|
|
6
|
+
const navButton = "_navButton_1ruwh_71";
|
|
7
|
+
const ellipsis = "_ellipsis_1ruwh_76";
|
|
8
8
|
const styles = {
|
|
9
9
|
pagination,
|
|
10
10
|
list,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
|
-
const positioner = "
|
|
4
|
-
const popup = "
|
|
5
|
-
const sm = "
|
|
6
|
-
const lg = "
|
|
7
|
-
const title = "
|
|
8
|
-
const description = "
|
|
9
|
-
const close = "
|
|
10
|
-
const arrow = "
|
|
11
|
-
const body = "
|
|
12
|
-
const footer = "
|
|
3
|
+
const positioner = "_positioner_1pyvn_1";
|
|
4
|
+
const popup = "_popup_1pyvn_6";
|
|
5
|
+
const sm = "_sm_1pyvn_47";
|
|
6
|
+
const lg = "_lg_1pyvn_52";
|
|
7
|
+
const title = "_title_1pyvn_57";
|
|
8
|
+
const description = "_description_1pyvn_65";
|
|
9
|
+
const close = "_close_1pyvn_72";
|
|
10
|
+
const arrow = "_arrow_1pyvn_119";
|
|
11
|
+
const body = "_body_1pyvn_143";
|
|
12
|
+
const footer = "_footer_1pyvn_147";
|
|
13
13
|
const styles = {
|
|
14
14
|
positioner,
|
|
15
15
|
popup,
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
const positioner = "
|
|
2
|
-
const popup = "
|
|
3
|
-
const sm = "
|
|
4
|
-
const lg = "
|
|
5
|
-
const title = "
|
|
6
|
-
const description = "
|
|
7
|
-
const close = "
|
|
8
|
-
const arrow = "
|
|
9
|
-
const body = "
|
|
10
|
-
const footer = "
|
|
1
|
+
const positioner = "_positioner_1pyvn_1";
|
|
2
|
+
const popup = "_popup_1pyvn_6";
|
|
3
|
+
const sm = "_sm_1pyvn_47";
|
|
4
|
+
const lg = "_lg_1pyvn_52";
|
|
5
|
+
const title = "_title_1pyvn_57";
|
|
6
|
+
const description = "_description_1pyvn_65";
|
|
7
|
+
const close = "_close_1pyvn_72";
|
|
8
|
+
const arrow = "_arrow_1pyvn_119";
|
|
9
|
+
const body = "_body_1pyvn_143";
|
|
10
|
+
const footer = "_footer_1pyvn_147";
|
|
11
11
|
const styles = {
|
|
12
12
|
positioner,
|
|
13
13
|
popup,
|
|
@@ -42,6 +42,13 @@ function CloseIcon() {
|
|
|
42
42
|
}
|
|
43
43
|
);
|
|
44
44
|
}
|
|
45
|
+
function resolveNativeButton(child) {
|
|
46
|
+
const type = child.type;
|
|
47
|
+
if (typeof type === "string") return type === "button";
|
|
48
|
+
const props = child.props ?? {};
|
|
49
|
+
if (props.as === "a" || props.href != null) return false;
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
45
52
|
function PopoverRoot({
|
|
46
53
|
children,
|
|
47
54
|
open,
|
|
@@ -65,7 +72,16 @@ function PopoverTrigger({ children, asChild, className, ...htmlProps }) {
|
|
|
65
72
|
if (!React__namespace.isValidElement(children)) {
|
|
66
73
|
throw new Error("Popover.Trigger with asChild requires a single valid React element child.");
|
|
67
74
|
}
|
|
68
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
75
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
76
|
+
popover.Popover.Trigger,
|
|
77
|
+
{
|
|
78
|
+
...htmlProps,
|
|
79
|
+
nativeButton: resolveNativeButton(children),
|
|
80
|
+
className,
|
|
81
|
+
render: children,
|
|
82
|
+
children: null
|
|
83
|
+
}
|
|
84
|
+
);
|
|
69
85
|
}
|
|
70
86
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
71
87
|
popover.Popover.Trigger,
|
|
@@ -146,7 +162,16 @@ function PopoverClose({ children, asChild, className, ...htmlProps }) {
|
|
|
146
162
|
if (!React__namespace.isValidElement(children)) {
|
|
147
163
|
throw new Error("Popover.Close with asChild requires a single valid React element child.");
|
|
148
164
|
}
|
|
149
|
-
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
165
|
+
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
166
|
+
popover.Popover.Close,
|
|
167
|
+
{
|
|
168
|
+
...htmlProps,
|
|
169
|
+
nativeButton: resolveNativeButton(children),
|
|
170
|
+
className,
|
|
171
|
+
render: children,
|
|
172
|
+
children: null
|
|
173
|
+
}
|
|
174
|
+
);
|
|
150
175
|
}
|
|
151
176
|
return /* @__PURE__ */ jsxRuntime.jsx(
|
|
152
177
|
popover.Popover.Close,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/Popover/index.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAQ/B;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,4BAA4B;IAC5B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yBAAyB;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qCAAqC;IACrC,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,OAAO,KAAK,IAAI,CAAC;IACvC;wBACoB;IACpB,KAAK,CAAC,EAAE,OAAO,CAAC;CACjB;AAED,KAAK,2BAA2B,GAAG,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,GAAG;IACjF,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,OAAO,CAAC,EAAE,KAAK,CAAC;CACjB,CAAC;AACF,KAAK,0BAA0B,GAAG,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,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,gBAAgB,2CAG3E;AAED,iBAAS,aAAa,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,kBAAkB,2CAG/E;AAED,iBAAS,YAAY,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,SAAS,EAAE,EAAE,iBAAiB,2CAwCtF;AAMD,eAAO,MAAM,OAAO;;;;;;;;CAQlB,CAAC;AAGH,OAAO,EACL,WAAW,EACX,cAAc,EACd,cAAc,EACd,YAAY,EACZ,kBAAkB,EAClB,WAAW,EACX,aAAa,EACb,YAAY,GACb,CAAC"}
|
|
@@ -23,6 +23,13 @@ function CloseIcon() {
|
|
|
23
23
|
}
|
|
24
24
|
);
|
|
25
25
|
}
|
|
26
|
+
function resolveNativeButton(child) {
|
|
27
|
+
const type = child.type;
|
|
28
|
+
if (typeof type === "string") return type === "button";
|
|
29
|
+
const props = child.props ?? {};
|
|
30
|
+
if (props.as === "a" || props.href != null) return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
26
33
|
function PopoverRoot({
|
|
27
34
|
children,
|
|
28
35
|
open,
|
|
@@ -46,7 +53,16 @@ function PopoverTrigger({ children, asChild, className, ...htmlProps }) {
|
|
|
46
53
|
if (!React.isValidElement(children)) {
|
|
47
54
|
throw new Error("Popover.Trigger with asChild requires a single valid React element child.");
|
|
48
55
|
}
|
|
49
|
-
return /* @__PURE__ */ jsx(
|
|
56
|
+
return /* @__PURE__ */ jsx(
|
|
57
|
+
Popover$1.Trigger,
|
|
58
|
+
{
|
|
59
|
+
...htmlProps,
|
|
60
|
+
nativeButton: resolveNativeButton(children),
|
|
61
|
+
className,
|
|
62
|
+
render: children,
|
|
63
|
+
children: null
|
|
64
|
+
}
|
|
65
|
+
);
|
|
50
66
|
}
|
|
51
67
|
return /* @__PURE__ */ jsx(
|
|
52
68
|
Popover$1.Trigger,
|
|
@@ -127,7 +143,16 @@ function PopoverClose({ children, asChild, className, ...htmlProps }) {
|
|
|
127
143
|
if (!React.isValidElement(children)) {
|
|
128
144
|
throw new Error("Popover.Close with asChild requires a single valid React element child.");
|
|
129
145
|
}
|
|
130
|
-
return /* @__PURE__ */ jsx(
|
|
146
|
+
return /* @__PURE__ */ jsx(
|
|
147
|
+
Popover$1.Close,
|
|
148
|
+
{
|
|
149
|
+
...htmlProps,
|
|
150
|
+
nativeButton: resolveNativeButton(children),
|
|
151
|
+
className,
|
|
152
|
+
render: children,
|
|
153
|
+
children: null
|
|
154
|
+
}
|
|
155
|
+
);
|
|
131
156
|
}
|
|
132
157
|
return /* @__PURE__ */ jsx(
|
|
133
158
|
Popover$1.Close,
|