@spark-ui/components 12.0.1 → 12.1.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/dist/combobox/index.d.mts +1 -1
- package/dist/combobox/index.d.ts +1 -1
- package/dist/docgen.json +176 -104
- package/dist/dropdown/index.d.mts +1 -1
- package/dist/dropdown/index.d.ts +1 -1
- package/dist/index-Cno_GFuW.d.mts +93 -0
- package/dist/index-Cno_GFuW.d.ts +93 -0
- package/dist/popover/index.d.mts +6 -93
- package/dist/popover/index.d.ts +6 -93
- package/dist/tabs/index.d.mts +37 -3
- package/dist/tabs/index.d.ts +37 -3
- package/dist/tabs/index.js +471 -17
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +133 -12
- package/dist/tabs/index.mjs.map +1 -1
- package/package.json +5 -5
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { Dispatch, SetStateAction, RefObject, PropsWithChildren, ComponentPropsWithoutRef, Ref, ComponentProps, ReactNode, HTMLAttributes, ReactElement } from 'react';
|
|
3
3
|
import { UseComboboxReturnValue, UseMultipleSelectionReturnValue } from 'downshift';
|
|
4
4
|
import { IconButton } from '../icon-button/index.mjs';
|
|
5
|
-
import {
|
|
5
|
+
import { a as Popover$1 } from '../index-Cno_GFuW.mjs';
|
|
6
6
|
import '../button/index.mjs';
|
|
7
7
|
import 'class-variance-authority/types';
|
|
8
8
|
import 'class-variance-authority';
|
package/dist/combobox/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
|
2
2
|
import { Dispatch, SetStateAction, RefObject, PropsWithChildren, ComponentPropsWithoutRef, Ref, ComponentProps, ReactNode, HTMLAttributes, ReactElement } from 'react';
|
|
3
3
|
import { UseComboboxReturnValue, UseMultipleSelectionReturnValue } from 'downshift';
|
|
4
4
|
import { IconButton } from '../icon-button/index.js';
|
|
5
|
-
import {
|
|
5
|
+
import { a as Popover$1 } from '../index-Cno_GFuW.js';
|
|
6
6
|
import '../button/index.js';
|
|
7
7
|
import 'class-variance-authority/types';
|
|
8
8
|
import 'class-variance-authority';
|
package/dist/docgen.json
CHANGED
|
@@ -34935,130 +34935,51 @@
|
|
|
34935
34935
|
"displayName": "Popover",
|
|
34936
34936
|
"methods": [],
|
|
34937
34937
|
"props": {
|
|
34938
|
-
"
|
|
34939
|
-
"defaultValue": null,
|
|
34940
|
-
"description": "",
|
|
34941
|
-
"name": "open",
|
|
34942
|
-
"parent": {
|
|
34943
|
-
"fileName": "spark-web/node_modules/@radix-ui/react-popover/dist/index.d.ts",
|
|
34944
|
-
"name": "PopoverProps"
|
|
34945
|
-
},
|
|
34946
|
-
"declarations": [
|
|
34947
|
-
{
|
|
34948
|
-
"fileName": "spark-web/node_modules/@radix-ui/react-popover/dist/index.d.ts",
|
|
34949
|
-
"name": "PopoverProps"
|
|
34950
|
-
}
|
|
34951
|
-
],
|
|
34952
|
-
"required": false,
|
|
34953
|
-
"type": {
|
|
34954
|
-
"name": "boolean"
|
|
34955
|
-
}
|
|
34956
|
-
},
|
|
34957
|
-
"defaultOpen": {
|
|
34938
|
+
"popoverSide": {
|
|
34958
34939
|
"defaultValue": null,
|
|
34959
34940
|
"description": "",
|
|
34960
|
-
"name": "
|
|
34941
|
+
"name": "popoverSide",
|
|
34961
34942
|
"parent": {
|
|
34962
|
-
"fileName": "
|
|
34963
|
-
"name": "
|
|
34943
|
+
"fileName": "src/tabs/TabsPopoverAbstraction.tsx",
|
|
34944
|
+
"name": "PopoverAbstractionProps"
|
|
34964
34945
|
},
|
|
34965
34946
|
"declarations": [
|
|
34966
34947
|
{
|
|
34967
|
-
"fileName": "
|
|
34968
|
-
"name": "
|
|
34948
|
+
"fileName": "src/tabs/TabsPopoverAbstraction.tsx",
|
|
34949
|
+
"name": "PopoverAbstractionProps"
|
|
34969
34950
|
}
|
|
34970
34951
|
],
|
|
34971
|
-
"required":
|
|
34952
|
+
"required": true,
|
|
34972
34953
|
"type": {
|
|
34973
|
-
"name": "
|
|
34954
|
+
"name": "enum",
|
|
34955
|
+
"raw": "\"right\" | \"bottom\"",
|
|
34956
|
+
"value": [
|
|
34957
|
+
{
|
|
34958
|
+
"value": "\"right\""
|
|
34959
|
+
},
|
|
34960
|
+
{
|
|
34961
|
+
"value": "\"bottom\""
|
|
34962
|
+
}
|
|
34963
|
+
]
|
|
34974
34964
|
}
|
|
34975
34965
|
},
|
|
34976
|
-
"
|
|
34966
|
+
"popoverTriggerRef": {
|
|
34977
34967
|
"defaultValue": null,
|
|
34978
34968
|
"description": "",
|
|
34979
|
-
"name": "
|
|
34980
|
-
"parent": {
|
|
34981
|
-
"fileName": "spark-web/node_modules/@radix-ui/react-popover/dist/index.d.ts",
|
|
34982
|
-
"name": "PopoverProps"
|
|
34983
|
-
},
|
|
34984
|
-
"declarations": [
|
|
34985
|
-
{
|
|
34986
|
-
"fileName": "spark-web/node_modules/@radix-ui/react-popover/dist/index.d.ts",
|
|
34987
|
-
"name": "PopoverProps"
|
|
34988
|
-
}
|
|
34989
|
-
],
|
|
34990
|
-
"required": false,
|
|
34991
|
-
"type": {
|
|
34992
|
-
"name": "(open: boolean) => void"
|
|
34993
|
-
}
|
|
34994
|
-
},
|
|
34995
|
-
"modal": {
|
|
34996
|
-
"defaultValue": {
|
|
34997
|
-
"value": false
|
|
34998
|
-
},
|
|
34999
|
-
"description": "",
|
|
35000
|
-
"name": "modal",
|
|
34969
|
+
"name": "popoverTriggerRef",
|
|
35001
34970
|
"parent": {
|
|
35002
|
-
"fileName": "
|
|
35003
|
-
"name": "
|
|
34971
|
+
"fileName": "src/tabs/TabsPopoverAbstraction.tsx",
|
|
34972
|
+
"name": "PopoverAbstractionProps"
|
|
35004
34973
|
},
|
|
35005
34974
|
"declarations": [
|
|
35006
34975
|
{
|
|
35007
|
-
"fileName": "
|
|
35008
|
-
"name": "
|
|
34976
|
+
"fileName": "src/tabs/TabsPopoverAbstraction.tsx",
|
|
34977
|
+
"name": "PopoverAbstractionProps"
|
|
35009
34978
|
}
|
|
35010
34979
|
],
|
|
35011
|
-
"required":
|
|
34980
|
+
"required": true,
|
|
35012
34981
|
"type": {
|
|
35013
|
-
"name": "
|
|
35014
|
-
}
|
|
35015
|
-
},
|
|
35016
|
-
"intent": {
|
|
35017
|
-
"defaultValue": null,
|
|
35018
|
-
"description": "",
|
|
35019
|
-
"name": "intent",
|
|
35020
|
-
"declarations": [
|
|
35021
|
-
{
|
|
35022
|
-
"fileName": "components/src/popover/Popover.tsx",
|
|
35023
|
-
"name": "TypeLiteral"
|
|
35024
|
-
}
|
|
35025
|
-
],
|
|
35026
|
-
"required": false,
|
|
35027
|
-
"type": {
|
|
35028
|
-
"name": "enum",
|
|
35029
|
-
"raw": "PopoverIntent",
|
|
35030
|
-
"value": [
|
|
35031
|
-
{
|
|
35032
|
-
"value": "\"main\""
|
|
35033
|
-
},
|
|
35034
|
-
{
|
|
35035
|
-
"value": "\"alert\""
|
|
35036
|
-
},
|
|
35037
|
-
{
|
|
35038
|
-
"value": "\"support\""
|
|
35039
|
-
},
|
|
35040
|
-
{
|
|
35041
|
-
"value": "\"accent\""
|
|
35042
|
-
},
|
|
35043
|
-
{
|
|
35044
|
-
"value": "\"success\""
|
|
35045
|
-
},
|
|
35046
|
-
{
|
|
35047
|
-
"value": "\"danger\""
|
|
35048
|
-
},
|
|
35049
|
-
{
|
|
35050
|
-
"value": "\"info\""
|
|
35051
|
-
},
|
|
35052
|
-
{
|
|
35053
|
-
"value": "\"neutral\""
|
|
35054
|
-
},
|
|
35055
|
-
{
|
|
35056
|
-
"value": "\"surface\""
|
|
35057
|
-
},
|
|
35058
|
-
{
|
|
35059
|
-
"value": "\"basic\""
|
|
35060
|
-
}
|
|
35061
|
-
]
|
|
34982
|
+
"name": "RefObject<HTMLButtonElement>"
|
|
35062
34983
|
}
|
|
35063
34984
|
}
|
|
35064
34985
|
}
|
|
@@ -45995,6 +45916,16 @@
|
|
|
45995
45916
|
}
|
|
45996
45917
|
]
|
|
45997
45918
|
}
|
|
45919
|
+
},
|
|
45920
|
+
"hasMenu": {
|
|
45921
|
+
"defaultValue": null,
|
|
45922
|
+
"description": "",
|
|
45923
|
+
"name": "hasMenu",
|
|
45924
|
+
"declarations": [],
|
|
45925
|
+
"required": false,
|
|
45926
|
+
"type": {
|
|
45927
|
+
"name": "boolean"
|
|
45928
|
+
}
|
|
45998
45929
|
}
|
|
45999
45930
|
}
|
|
46000
45931
|
},
|
|
@@ -46160,6 +46091,128 @@
|
|
|
46160
46091
|
}
|
|
46161
46092
|
}
|
|
46162
46093
|
},
|
|
46094
|
+
"Tabs.Popover": {
|
|
46095
|
+
"tags": {},
|
|
46096
|
+
"description": "",
|
|
46097
|
+
"displayName": "Tabs.Popover",
|
|
46098
|
+
"methods": [],
|
|
46099
|
+
"props": {
|
|
46100
|
+
"className": {
|
|
46101
|
+
"defaultValue": null,
|
|
46102
|
+
"description": "Additional className for positioning",
|
|
46103
|
+
"name": "className",
|
|
46104
|
+
"parent": {
|
|
46105
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46106
|
+
"name": "TabsPopoverProps"
|
|
46107
|
+
},
|
|
46108
|
+
"declarations": [
|
|
46109
|
+
{
|
|
46110
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46111
|
+
"name": "TabsPopoverProps"
|
|
46112
|
+
}
|
|
46113
|
+
],
|
|
46114
|
+
"required": false,
|
|
46115
|
+
"type": {
|
|
46116
|
+
"name": "string"
|
|
46117
|
+
}
|
|
46118
|
+
},
|
|
46119
|
+
"children": {
|
|
46120
|
+
"defaultValue": null,
|
|
46121
|
+
"description": "The popover content - typically a Popover or other overlay component",
|
|
46122
|
+
"name": "children",
|
|
46123
|
+
"parent": {
|
|
46124
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46125
|
+
"name": "TabsPopoverProps"
|
|
46126
|
+
},
|
|
46127
|
+
"declarations": [
|
|
46128
|
+
{
|
|
46129
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46130
|
+
"name": "TabsPopoverProps"
|
|
46131
|
+
}
|
|
46132
|
+
],
|
|
46133
|
+
"required": true,
|
|
46134
|
+
"type": {
|
|
46135
|
+
"name": "ReactNode"
|
|
46136
|
+
}
|
|
46137
|
+
},
|
|
46138
|
+
"onOpenChange": {
|
|
46139
|
+
"defaultValue": null,
|
|
46140
|
+
"description": "Callback when popover open state changes",
|
|
46141
|
+
"name": "onOpenChange",
|
|
46142
|
+
"parent": {
|
|
46143
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46144
|
+
"name": "TabsPopoverProps"
|
|
46145
|
+
},
|
|
46146
|
+
"declarations": [
|
|
46147
|
+
{
|
|
46148
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46149
|
+
"name": "TabsPopoverProps"
|
|
46150
|
+
}
|
|
46151
|
+
],
|
|
46152
|
+
"required": false,
|
|
46153
|
+
"type": {
|
|
46154
|
+
"name": "(open: boolean) => void"
|
|
46155
|
+
}
|
|
46156
|
+
},
|
|
46157
|
+
"open": {
|
|
46158
|
+
"defaultValue": null,
|
|
46159
|
+
"description": "Whether the popover is open",
|
|
46160
|
+
"name": "open",
|
|
46161
|
+
"parent": {
|
|
46162
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46163
|
+
"name": "TabsPopoverProps"
|
|
46164
|
+
},
|
|
46165
|
+
"declarations": [
|
|
46166
|
+
{
|
|
46167
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46168
|
+
"name": "TabsPopoverProps"
|
|
46169
|
+
}
|
|
46170
|
+
],
|
|
46171
|
+
"required": false,
|
|
46172
|
+
"type": {
|
|
46173
|
+
"name": "boolean"
|
|
46174
|
+
}
|
|
46175
|
+
},
|
|
46176
|
+
"tabValue": {
|
|
46177
|
+
"defaultValue": null,
|
|
46178
|
+
"description": "The tab value this popover is associated with (automatically set by Tabs.Trigger)",
|
|
46179
|
+
"name": "tabValue",
|
|
46180
|
+
"parent": {
|
|
46181
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46182
|
+
"name": "TabsPopoverProps"
|
|
46183
|
+
},
|
|
46184
|
+
"declarations": [
|
|
46185
|
+
{
|
|
46186
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46187
|
+
"name": "TabsPopoverProps"
|
|
46188
|
+
}
|
|
46189
|
+
],
|
|
46190
|
+
"required": false,
|
|
46191
|
+
"type": {
|
|
46192
|
+
"name": "string"
|
|
46193
|
+
}
|
|
46194
|
+
},
|
|
46195
|
+
"isTabActive": {
|
|
46196
|
+
"defaultValue": null,
|
|
46197
|
+
"description": "Whether this tab is currently active (automatically set by Tabs.Trigger)",
|
|
46198
|
+
"name": "isTabActive",
|
|
46199
|
+
"parent": {
|
|
46200
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46201
|
+
"name": "TabsPopoverProps"
|
|
46202
|
+
},
|
|
46203
|
+
"declarations": [
|
|
46204
|
+
{
|
|
46205
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46206
|
+
"name": "TabsPopoverProps"
|
|
46207
|
+
}
|
|
46208
|
+
],
|
|
46209
|
+
"required": false,
|
|
46210
|
+
"type": {
|
|
46211
|
+
"name": "boolean"
|
|
46212
|
+
}
|
|
46213
|
+
}
|
|
46214
|
+
}
|
|
46215
|
+
},
|
|
46163
46216
|
"Tabs.Trigger": {
|
|
46164
46217
|
"tags": {},
|
|
46165
46218
|
"description": "",
|
|
@@ -46227,6 +46280,25 @@
|
|
|
46227
46280
|
"name": "boolean"
|
|
46228
46281
|
}
|
|
46229
46282
|
},
|
|
46283
|
+
"renderMenu": {
|
|
46284
|
+
"defaultValue": null,
|
|
46285
|
+
"description": "Function that receives a pre-configured Popover component and returns the popover structure.\n@example renderMenu={({ Popover }) => (\n <Popover>\n <Popover.Trigger aria-label=\"Options\">\n <CustomIcon />\n </Popover.Trigger>\n <Popover.Content>\n <Button>Action</Button>\n </Popover.Content>\n </Popover>\n)}",
|
|
46286
|
+
"name": "renderMenu",
|
|
46287
|
+
"parent": {
|
|
46288
|
+
"fileName": "src/tabs/TabsTrigger.tsx",
|
|
46289
|
+
"name": "TabsTriggerProps"
|
|
46290
|
+
},
|
|
46291
|
+
"declarations": [
|
|
46292
|
+
{
|
|
46293
|
+
"fileName": "src/tabs/TabsTrigger.tsx",
|
|
46294
|
+
"name": "TabsTriggerProps"
|
|
46295
|
+
}
|
|
46296
|
+
],
|
|
46297
|
+
"required": false,
|
|
46298
|
+
"type": {
|
|
46299
|
+
"name": "(props: { Popover: ConfiguredPopoverComponent; }) => ReactNode"
|
|
46300
|
+
}
|
|
46301
|
+
},
|
|
46230
46302
|
"ref": {
|
|
46231
46303
|
"defaultValue": null,
|
|
46232
46304
|
"description": "",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Dispatch, SetStateAction, PropsWithChildren, Ref, ReactNode, HTMLAttributes, ReactElement, ComponentProps } from 'react';
|
|
3
3
|
import { UseSelectReturnValue, UseMultipleSelectionReturnValue } from 'downshift';
|
|
4
|
-
import {
|
|
4
|
+
import { a as Popover$1 } from '../index-Cno_GFuW.mjs';
|
|
5
5
|
import 'radix-ui';
|
|
6
6
|
import 'class-variance-authority/types';
|
|
7
7
|
import 'class-variance-authority';
|
package/dist/dropdown/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import { Dispatch, SetStateAction, PropsWithChildren, Ref, ReactNode, HTMLAttributes, ReactElement, ComponentProps } from 'react';
|
|
3
3
|
import { UseSelectReturnValue, UseMultipleSelectionReturnValue } from 'downshift';
|
|
4
|
-
import {
|
|
4
|
+
import { a as Popover$1 } from '../index-Cno_GFuW.js';
|
|
5
5
|
import 'radix-ui';
|
|
6
6
|
import 'class-variance-authority/types';
|
|
7
7
|
import 'class-variance-authority';
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Popover as Popover$2 } from 'radix-ui';
|
|
3
|
+
import { Ref, ReactNode, ReactElement } from 'react';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
|
|
7
|
+
type PopoverIntent = 'surface' | 'main' | 'support' | 'accent' | 'basic' | 'success' | 'alert' | 'danger' | 'info' | 'neutral';
|
|
8
|
+
|
|
9
|
+
type PopoverProps = Popover$2.PopoverProps & {
|
|
10
|
+
intent?: PopoverIntent;
|
|
11
|
+
};
|
|
12
|
+
declare const Popover$1: {
|
|
13
|
+
({ children, intent, modal, ...rest }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type AnchorProps = Popover$2.PopoverAnchorProps & {
|
|
18
|
+
ref?: Ref<HTMLDivElement>;
|
|
19
|
+
};
|
|
20
|
+
declare const Anchor: {
|
|
21
|
+
({ asChild, children, ref, ...rest }: AnchorProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type ArrowProps = Popover$2.PopoverArrowProps & {
|
|
26
|
+
ref?: Ref<SVGSVGElement>;
|
|
27
|
+
};
|
|
28
|
+
declare const Arrow: {
|
|
29
|
+
({ asChild, width, height, className, ref, ...rest }: ArrowProps): react_jsx_runtime.JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
type CloseButtonProps = Popover$2.PopoverCloseProps & {
|
|
34
|
+
'aria-label': string;
|
|
35
|
+
ref?: Ref<HTMLButtonElement>;
|
|
36
|
+
};
|
|
37
|
+
declare const CloseButton: {
|
|
38
|
+
({ "aria-label": ariaLabel, className, ref, ...rest }: CloseButtonProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
declare const styles: (props?: ({
|
|
43
|
+
intent?: "main" | "surface" | "support" | "accent" | "basic" | "success" | "alert" | "danger" | "info" | "neutral" | null | undefined;
|
|
44
|
+
matchTriggerWidth?: boolean | null | undefined;
|
|
45
|
+
enforceBoundaries?: boolean | null | undefined;
|
|
46
|
+
inset?: boolean | null | undefined;
|
|
47
|
+
elevation?: "popover" | "dropdown" | null | undefined;
|
|
48
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
49
|
+
type StylesProps = VariantProps<typeof styles>;
|
|
50
|
+
|
|
51
|
+
type ContentProps = Popover$2.PopoverContentProps & StylesProps & {
|
|
52
|
+
ref?: Ref<HTMLDivElement>;
|
|
53
|
+
};
|
|
54
|
+
declare const Content: {
|
|
55
|
+
({ className, children, matchTriggerWidth, align, arrowPadding, asChild, avoidCollisions, "aria-labelledby": ariaLabelledBy, collisionBoundary, collisionPadding, hideWhenDetached, side, sideOffset, sticky, inset, elevation, ref, ...rest }: ContentProps): react_jsx_runtime.JSX.Element;
|
|
56
|
+
displayName: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
interface HeaderProps {
|
|
60
|
+
children: ReactNode;
|
|
61
|
+
className?: string;
|
|
62
|
+
ref?: Ref<HTMLDivElement>;
|
|
63
|
+
}
|
|
64
|
+
declare const Header: {
|
|
65
|
+
({ children, className, ref, ...rest }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
66
|
+
displayName: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
type PortalProps = Popover$2.PopoverPortalProps;
|
|
70
|
+
declare const Portal: {
|
|
71
|
+
({ children, ...rest }: PortalProps): ReactElement;
|
|
72
|
+
displayName: string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
type TriggerProps = Popover$2.PopoverTriggerProps & {
|
|
76
|
+
ref?: Ref<HTMLButtonElement>;
|
|
77
|
+
};
|
|
78
|
+
declare const Trigger: {
|
|
79
|
+
({ asChild, children, ref, ...rest }: TriggerProps): react_jsx_runtime.JSX.Element;
|
|
80
|
+
displayName: string;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
declare const Popover: typeof Popover$1 & {
|
|
84
|
+
Anchor: typeof Anchor;
|
|
85
|
+
Arrow: typeof Arrow;
|
|
86
|
+
CloseButton: typeof CloseButton;
|
|
87
|
+
Content: typeof Content;
|
|
88
|
+
Header: typeof Header;
|
|
89
|
+
Portal: typeof Portal;
|
|
90
|
+
Trigger: typeof Trigger;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export { type ContentProps as C, type PopoverProps as P, type TriggerProps as T, Popover as a };
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
|
+
import { Popover as Popover$2 } from 'radix-ui';
|
|
3
|
+
import { Ref, ReactNode, ReactElement } from 'react';
|
|
4
|
+
import * as class_variance_authority_types from 'class-variance-authority/types';
|
|
5
|
+
import { VariantProps } from 'class-variance-authority';
|
|
6
|
+
|
|
7
|
+
type PopoverIntent = 'surface' | 'main' | 'support' | 'accent' | 'basic' | 'success' | 'alert' | 'danger' | 'info' | 'neutral';
|
|
8
|
+
|
|
9
|
+
type PopoverProps = Popover$2.PopoverProps & {
|
|
10
|
+
intent?: PopoverIntent;
|
|
11
|
+
};
|
|
12
|
+
declare const Popover$1: {
|
|
13
|
+
({ children, intent, modal, ...rest }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
14
|
+
displayName: string;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type AnchorProps = Popover$2.PopoverAnchorProps & {
|
|
18
|
+
ref?: Ref<HTMLDivElement>;
|
|
19
|
+
};
|
|
20
|
+
declare const Anchor: {
|
|
21
|
+
({ asChild, children, ref, ...rest }: AnchorProps): react_jsx_runtime.JSX.Element;
|
|
22
|
+
displayName: string;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
type ArrowProps = Popover$2.PopoverArrowProps & {
|
|
26
|
+
ref?: Ref<SVGSVGElement>;
|
|
27
|
+
};
|
|
28
|
+
declare const Arrow: {
|
|
29
|
+
({ asChild, width, height, className, ref, ...rest }: ArrowProps): react_jsx_runtime.JSX.Element;
|
|
30
|
+
displayName: string;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
type CloseButtonProps = Popover$2.PopoverCloseProps & {
|
|
34
|
+
'aria-label': string;
|
|
35
|
+
ref?: Ref<HTMLButtonElement>;
|
|
36
|
+
};
|
|
37
|
+
declare const CloseButton: {
|
|
38
|
+
({ "aria-label": ariaLabel, className, ref, ...rest }: CloseButtonProps): react_jsx_runtime.JSX.Element;
|
|
39
|
+
displayName: string;
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
declare const styles: (props?: ({
|
|
43
|
+
intent?: "main" | "surface" | "support" | "accent" | "basic" | "success" | "alert" | "danger" | "info" | "neutral" | null | undefined;
|
|
44
|
+
matchTriggerWidth?: boolean | null | undefined;
|
|
45
|
+
enforceBoundaries?: boolean | null | undefined;
|
|
46
|
+
inset?: boolean | null | undefined;
|
|
47
|
+
elevation?: "popover" | "dropdown" | null | undefined;
|
|
48
|
+
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
49
|
+
type StylesProps = VariantProps<typeof styles>;
|
|
50
|
+
|
|
51
|
+
type ContentProps = Popover$2.PopoverContentProps & StylesProps & {
|
|
52
|
+
ref?: Ref<HTMLDivElement>;
|
|
53
|
+
};
|
|
54
|
+
declare const Content: {
|
|
55
|
+
({ className, children, matchTriggerWidth, align, arrowPadding, asChild, avoidCollisions, "aria-labelledby": ariaLabelledBy, collisionBoundary, collisionPadding, hideWhenDetached, side, sideOffset, sticky, inset, elevation, ref, ...rest }: ContentProps): react_jsx_runtime.JSX.Element;
|
|
56
|
+
displayName: string;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
interface HeaderProps {
|
|
60
|
+
children: ReactNode;
|
|
61
|
+
className?: string;
|
|
62
|
+
ref?: Ref<HTMLDivElement>;
|
|
63
|
+
}
|
|
64
|
+
declare const Header: {
|
|
65
|
+
({ children, className, ref, ...rest }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
66
|
+
displayName: string;
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
type PortalProps = Popover$2.PopoverPortalProps;
|
|
70
|
+
declare const Portal: {
|
|
71
|
+
({ children, ...rest }: PortalProps): ReactElement;
|
|
72
|
+
displayName: string;
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
type TriggerProps = Popover$2.PopoverTriggerProps & {
|
|
76
|
+
ref?: Ref<HTMLButtonElement>;
|
|
77
|
+
};
|
|
78
|
+
declare const Trigger: {
|
|
79
|
+
({ asChild, children, ref, ...rest }: TriggerProps): react_jsx_runtime.JSX.Element;
|
|
80
|
+
displayName: string;
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
declare const Popover: typeof Popover$1 & {
|
|
84
|
+
Anchor: typeof Anchor;
|
|
85
|
+
Arrow: typeof Arrow;
|
|
86
|
+
CloseButton: typeof CloseButton;
|
|
87
|
+
Content: typeof Content;
|
|
88
|
+
Header: typeof Header;
|
|
89
|
+
Portal: typeof Portal;
|
|
90
|
+
Trigger: typeof Trigger;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
export { type ContentProps as C, type PopoverProps as P, type TriggerProps as T, Popover as a };
|
package/dist/popover/index.d.mts
CHANGED
|
@@ -1,93 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
type PopoverIntent = 'surface' | 'main' | 'support' | 'accent' | 'basic' | 'success' | 'alert' | 'danger' | 'info' | 'neutral';
|
|
8
|
-
|
|
9
|
-
type PopoverProps = Popover$2.PopoverProps & {
|
|
10
|
-
intent?: PopoverIntent;
|
|
11
|
-
};
|
|
12
|
-
declare const Popover$1: {
|
|
13
|
-
({ children, intent, modal, ...rest }: PopoverProps): react_jsx_runtime.JSX.Element;
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
type AnchorProps = Popover$2.PopoverAnchorProps & {
|
|
18
|
-
ref?: Ref<HTMLDivElement>;
|
|
19
|
-
};
|
|
20
|
-
declare const Anchor: {
|
|
21
|
-
({ asChild, children, ref, ...rest }: AnchorProps): react_jsx_runtime.JSX.Element;
|
|
22
|
-
displayName: string;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
type ArrowProps = Popover$2.PopoverArrowProps & {
|
|
26
|
-
ref?: Ref<SVGSVGElement>;
|
|
27
|
-
};
|
|
28
|
-
declare const Arrow: {
|
|
29
|
-
({ asChild, width, height, className, ref, ...rest }: ArrowProps): react_jsx_runtime.JSX.Element;
|
|
30
|
-
displayName: string;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
type CloseButtonProps = Popover$2.PopoverCloseProps & {
|
|
34
|
-
'aria-label': string;
|
|
35
|
-
ref?: Ref<HTMLButtonElement>;
|
|
36
|
-
};
|
|
37
|
-
declare const CloseButton: {
|
|
38
|
-
({ "aria-label": ariaLabel, className, ref, ...rest }: CloseButtonProps): react_jsx_runtime.JSX.Element;
|
|
39
|
-
displayName: string;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
declare const styles: (props?: ({
|
|
43
|
-
intent?: "main" | "surface" | "support" | "accent" | "basic" | "success" | "alert" | "danger" | "info" | "neutral" | null | undefined;
|
|
44
|
-
matchTriggerWidth?: boolean | null | undefined;
|
|
45
|
-
enforceBoundaries?: boolean | null | undefined;
|
|
46
|
-
inset?: boolean | null | undefined;
|
|
47
|
-
elevation?: "popover" | "dropdown" | null | undefined;
|
|
48
|
-
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
49
|
-
type StylesProps = VariantProps<typeof styles>;
|
|
50
|
-
|
|
51
|
-
type ContentProps = Popover$2.PopoverContentProps & StylesProps & {
|
|
52
|
-
ref?: Ref<HTMLDivElement>;
|
|
53
|
-
};
|
|
54
|
-
declare const Content: {
|
|
55
|
-
({ className, children, matchTriggerWidth, align, arrowPadding, asChild, avoidCollisions, "aria-labelledby": ariaLabelledBy, collisionBoundary, collisionPadding, hideWhenDetached, side, sideOffset, sticky, inset, elevation, ref, ...rest }: ContentProps): react_jsx_runtime.JSX.Element;
|
|
56
|
-
displayName: string;
|
|
57
|
-
};
|
|
58
|
-
|
|
59
|
-
interface HeaderProps {
|
|
60
|
-
children: ReactNode;
|
|
61
|
-
className?: string;
|
|
62
|
-
ref?: Ref<HTMLDivElement>;
|
|
63
|
-
}
|
|
64
|
-
declare const Header: {
|
|
65
|
-
({ children, className, ref, ...rest }: HeaderProps): react_jsx_runtime.JSX.Element;
|
|
66
|
-
displayName: string;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
type PortalProps = Popover$2.PopoverPortalProps;
|
|
70
|
-
declare const Portal: {
|
|
71
|
-
({ children, ...rest }: PortalProps): ReactElement;
|
|
72
|
-
displayName: string;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
type TriggerProps = Popover$2.PopoverTriggerProps & {
|
|
76
|
-
ref?: Ref<HTMLButtonElement>;
|
|
77
|
-
};
|
|
78
|
-
declare const Trigger: {
|
|
79
|
-
({ asChild, children, ref, ...rest }: TriggerProps): react_jsx_runtime.JSX.Element;
|
|
80
|
-
displayName: string;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
declare const Popover: typeof Popover$1 & {
|
|
84
|
-
Anchor: typeof Anchor;
|
|
85
|
-
Arrow: typeof Arrow;
|
|
86
|
-
CloseButton: typeof CloseButton;
|
|
87
|
-
Content: typeof Content;
|
|
88
|
-
Header: typeof Header;
|
|
89
|
-
Portal: typeof Portal;
|
|
90
|
-
Trigger: typeof Trigger;
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
export { Popover };
|
|
1
|
+
export { a as Popover } from '../index-Cno_GFuW.mjs';
|
|
2
|
+
import 'react/jsx-runtime';
|
|
3
|
+
import 'radix-ui';
|
|
4
|
+
import 'react';
|
|
5
|
+
import 'class-variance-authority/types';
|
|
6
|
+
import 'class-variance-authority';
|