@spark-ui/components 12.0.1 → 12.1.1
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/alert-dialog/index.mjs +1 -1
- package/dist/avatar/index.mjs +2 -2
- package/dist/carousel/index.d.mts +3 -0
- package/dist/carousel/index.d.ts +3 -0
- package/dist/carousel/index.js +146 -65
- package/dist/carousel/index.js.map +1 -1
- package/dist/carousel/index.mjs +127 -46
- package/dist/carousel/index.mjs.map +1 -1
- package/dist/combobox/index.d.mts +1 -1
- package/dist/combobox/index.d.ts +1 -1
- package/dist/combobox/index.mjs +3 -3
- package/dist/dialog/index.mjs +1 -1
- package/dist/docgen.json +193 -104
- package/dist/drawer/index.mjs +2 -2
- package/dist/dropdown/index.d.mts +1 -1
- package/dist/dropdown/index.d.ts +1 -1
- package/dist/dropdown/index.mjs +2 -2
- package/dist/file-upload/index.mjs +3 -3
- package/dist/icon/index.d.mts +2 -2
- package/dist/icon/index.d.ts +2 -2
- package/dist/index-Cno_GFuW.d.mts +93 -0
- package/dist/index-Cno_GFuW.d.ts +93 -0
- package/dist/pagination/index.mjs +3 -3
- package/dist/popover/index.d.mts +6 -93
- package/dist/popover/index.d.ts +6 -93
- package/dist/popover/index.mjs +1 -1
- package/dist/scrolling-list/index.mjs +3 -3
- package/dist/snackbar/index.mjs +3 -3
- package/dist/stepper/index.mjs +2 -2
- 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 +135 -14
- package/dist/tabs/index.mjs.map +1 -1
- package/dist/toast/index.mjs +3 -3
- package/package.json +5 -5
package/dist/docgen.json
CHANGED
|
@@ -5870,6 +5870,16 @@
|
|
|
5870
5870
|
}
|
|
5871
5871
|
}
|
|
5872
5872
|
},
|
|
5873
|
+
"useCarouselVisibility": {
|
|
5874
|
+
"tags": {
|
|
5875
|
+
"param": "carouselRef - Reference to the carousel container element",
|
|
5876
|
+
"returns": "Object with functions to register/unregister slides and check visibility"
|
|
5877
|
+
},
|
|
5878
|
+
"description": "Hook to manage slide visibility using a centralized IntersectionObserver.\nThis optimizes performance by using a single observer per carousel instead of one per slide.",
|
|
5879
|
+
"displayName": "useCarouselVisibility",
|
|
5880
|
+
"methods": [],
|
|
5881
|
+
"props": {}
|
|
5882
|
+
},
|
|
5873
5883
|
"useEvent": {
|
|
5874
5884
|
"tags": {},
|
|
5875
5885
|
"description": "Directly from this gist: https://gist.github.com/diegohaz/695097a06f038a707c3a1b11e4e40195\nUntil React releases a native `useEvent` hook.",
|
|
@@ -6099,6 +6109,13 @@
|
|
|
6099
6109
|
}
|
|
6100
6110
|
}
|
|
6101
6111
|
},
|
|
6112
|
+
"useIsVisible": {
|
|
6113
|
+
"tags": {},
|
|
6114
|
+
"description": "Hook to track slide visibility using the centralized IntersectionObserver.\nThis optimizes performance by using a single observer per carousel instead of one per slide.",
|
|
6115
|
+
"displayName": "useIsVisible",
|
|
6116
|
+
"methods": [],
|
|
6117
|
+
"props": {}
|
|
6118
|
+
},
|
|
6102
6119
|
"useSnapPoints": {
|
|
6103
6120
|
"tags": {},
|
|
6104
6121
|
"description": "Get the scroll value of each slides that serves as the start of a page\nThe array is updated when resize event are caught in the carousel.",
|
|
@@ -34935,130 +34952,51 @@
|
|
|
34935
34952
|
"displayName": "Popover",
|
|
34936
34953
|
"methods": [],
|
|
34937
34954
|
"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": {
|
|
34955
|
+
"popoverSide": {
|
|
34958
34956
|
"defaultValue": null,
|
|
34959
34957
|
"description": "",
|
|
34960
|
-
"name": "
|
|
34958
|
+
"name": "popoverSide",
|
|
34961
34959
|
"parent": {
|
|
34962
|
-
"fileName": "
|
|
34963
|
-
"name": "
|
|
34960
|
+
"fileName": "src/tabs/TabsPopoverAbstraction.tsx",
|
|
34961
|
+
"name": "PopoverAbstractionProps"
|
|
34964
34962
|
},
|
|
34965
34963
|
"declarations": [
|
|
34966
34964
|
{
|
|
34967
|
-
"fileName": "
|
|
34968
|
-
"name": "
|
|
34965
|
+
"fileName": "src/tabs/TabsPopoverAbstraction.tsx",
|
|
34966
|
+
"name": "PopoverAbstractionProps"
|
|
34969
34967
|
}
|
|
34970
34968
|
],
|
|
34971
|
-
"required":
|
|
34969
|
+
"required": true,
|
|
34972
34970
|
"type": {
|
|
34973
|
-
"name": "
|
|
34971
|
+
"name": "enum",
|
|
34972
|
+
"raw": "\"right\" | \"bottom\"",
|
|
34973
|
+
"value": [
|
|
34974
|
+
{
|
|
34975
|
+
"value": "\"right\""
|
|
34976
|
+
},
|
|
34977
|
+
{
|
|
34978
|
+
"value": "\"bottom\""
|
|
34979
|
+
}
|
|
34980
|
+
]
|
|
34974
34981
|
}
|
|
34975
34982
|
},
|
|
34976
|
-
"
|
|
34983
|
+
"popoverTriggerRef": {
|
|
34977
34984
|
"defaultValue": null,
|
|
34978
34985
|
"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",
|
|
34986
|
+
"name": "popoverTriggerRef",
|
|
35001
34987
|
"parent": {
|
|
35002
|
-
"fileName": "
|
|
35003
|
-
"name": "
|
|
34988
|
+
"fileName": "src/tabs/TabsPopoverAbstraction.tsx",
|
|
34989
|
+
"name": "PopoverAbstractionProps"
|
|
35004
34990
|
},
|
|
35005
34991
|
"declarations": [
|
|
35006
34992
|
{
|
|
35007
|
-
"fileName": "
|
|
35008
|
-
"name": "
|
|
35009
|
-
}
|
|
35010
|
-
],
|
|
35011
|
-
"required": false,
|
|
35012
|
-
"type": {
|
|
35013
|
-
"name": "boolean"
|
|
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"
|
|
34993
|
+
"fileName": "src/tabs/TabsPopoverAbstraction.tsx",
|
|
34994
|
+
"name": "PopoverAbstractionProps"
|
|
35024
34995
|
}
|
|
35025
34996
|
],
|
|
35026
|
-
"required":
|
|
34997
|
+
"required": true,
|
|
35027
34998
|
"type": {
|
|
35028
|
-
"name": "
|
|
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
|
-
]
|
|
34999
|
+
"name": "RefObject<HTMLButtonElement>"
|
|
35062
35000
|
}
|
|
35063
35001
|
}
|
|
35064
35002
|
}
|
|
@@ -45995,6 +45933,16 @@
|
|
|
45995
45933
|
}
|
|
45996
45934
|
]
|
|
45997
45935
|
}
|
|
45936
|
+
},
|
|
45937
|
+
"hasMenu": {
|
|
45938
|
+
"defaultValue": null,
|
|
45939
|
+
"description": "",
|
|
45940
|
+
"name": "hasMenu",
|
|
45941
|
+
"declarations": [],
|
|
45942
|
+
"required": false,
|
|
45943
|
+
"type": {
|
|
45944
|
+
"name": "boolean"
|
|
45945
|
+
}
|
|
45998
45946
|
}
|
|
45999
45947
|
}
|
|
46000
45948
|
},
|
|
@@ -46160,6 +46108,128 @@
|
|
|
46160
46108
|
}
|
|
46161
46109
|
}
|
|
46162
46110
|
},
|
|
46111
|
+
"Tabs.Popover": {
|
|
46112
|
+
"tags": {},
|
|
46113
|
+
"description": "",
|
|
46114
|
+
"displayName": "Tabs.Popover",
|
|
46115
|
+
"methods": [],
|
|
46116
|
+
"props": {
|
|
46117
|
+
"className": {
|
|
46118
|
+
"defaultValue": null,
|
|
46119
|
+
"description": "Additional className for positioning",
|
|
46120
|
+
"name": "className",
|
|
46121
|
+
"parent": {
|
|
46122
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46123
|
+
"name": "TabsPopoverProps"
|
|
46124
|
+
},
|
|
46125
|
+
"declarations": [
|
|
46126
|
+
{
|
|
46127
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46128
|
+
"name": "TabsPopoverProps"
|
|
46129
|
+
}
|
|
46130
|
+
],
|
|
46131
|
+
"required": false,
|
|
46132
|
+
"type": {
|
|
46133
|
+
"name": "string"
|
|
46134
|
+
}
|
|
46135
|
+
},
|
|
46136
|
+
"children": {
|
|
46137
|
+
"defaultValue": null,
|
|
46138
|
+
"description": "The popover content - typically a Popover or other overlay component",
|
|
46139
|
+
"name": "children",
|
|
46140
|
+
"parent": {
|
|
46141
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46142
|
+
"name": "TabsPopoverProps"
|
|
46143
|
+
},
|
|
46144
|
+
"declarations": [
|
|
46145
|
+
{
|
|
46146
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46147
|
+
"name": "TabsPopoverProps"
|
|
46148
|
+
}
|
|
46149
|
+
],
|
|
46150
|
+
"required": true,
|
|
46151
|
+
"type": {
|
|
46152
|
+
"name": "ReactNode"
|
|
46153
|
+
}
|
|
46154
|
+
},
|
|
46155
|
+
"onOpenChange": {
|
|
46156
|
+
"defaultValue": null,
|
|
46157
|
+
"description": "Callback when popover open state changes",
|
|
46158
|
+
"name": "onOpenChange",
|
|
46159
|
+
"parent": {
|
|
46160
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46161
|
+
"name": "TabsPopoverProps"
|
|
46162
|
+
},
|
|
46163
|
+
"declarations": [
|
|
46164
|
+
{
|
|
46165
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46166
|
+
"name": "TabsPopoverProps"
|
|
46167
|
+
}
|
|
46168
|
+
],
|
|
46169
|
+
"required": false,
|
|
46170
|
+
"type": {
|
|
46171
|
+
"name": "(open: boolean) => void"
|
|
46172
|
+
}
|
|
46173
|
+
},
|
|
46174
|
+
"open": {
|
|
46175
|
+
"defaultValue": null,
|
|
46176
|
+
"description": "Whether the popover is open",
|
|
46177
|
+
"name": "open",
|
|
46178
|
+
"parent": {
|
|
46179
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46180
|
+
"name": "TabsPopoverProps"
|
|
46181
|
+
},
|
|
46182
|
+
"declarations": [
|
|
46183
|
+
{
|
|
46184
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46185
|
+
"name": "TabsPopoverProps"
|
|
46186
|
+
}
|
|
46187
|
+
],
|
|
46188
|
+
"required": false,
|
|
46189
|
+
"type": {
|
|
46190
|
+
"name": "boolean"
|
|
46191
|
+
}
|
|
46192
|
+
},
|
|
46193
|
+
"tabValue": {
|
|
46194
|
+
"defaultValue": null,
|
|
46195
|
+
"description": "The tab value this popover is associated with (automatically set by Tabs.Trigger)",
|
|
46196
|
+
"name": "tabValue",
|
|
46197
|
+
"parent": {
|
|
46198
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46199
|
+
"name": "TabsPopoverProps"
|
|
46200
|
+
},
|
|
46201
|
+
"declarations": [
|
|
46202
|
+
{
|
|
46203
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46204
|
+
"name": "TabsPopoverProps"
|
|
46205
|
+
}
|
|
46206
|
+
],
|
|
46207
|
+
"required": false,
|
|
46208
|
+
"type": {
|
|
46209
|
+
"name": "string"
|
|
46210
|
+
}
|
|
46211
|
+
},
|
|
46212
|
+
"isTabActive": {
|
|
46213
|
+
"defaultValue": null,
|
|
46214
|
+
"description": "Whether this tab is currently active (automatically set by Tabs.Trigger)",
|
|
46215
|
+
"name": "isTabActive",
|
|
46216
|
+
"parent": {
|
|
46217
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46218
|
+
"name": "TabsPopoverProps"
|
|
46219
|
+
},
|
|
46220
|
+
"declarations": [
|
|
46221
|
+
{
|
|
46222
|
+
"fileName": "src/tabs/TabsPopover.tsx",
|
|
46223
|
+
"name": "TabsPopoverProps"
|
|
46224
|
+
}
|
|
46225
|
+
],
|
|
46226
|
+
"required": false,
|
|
46227
|
+
"type": {
|
|
46228
|
+
"name": "boolean"
|
|
46229
|
+
}
|
|
46230
|
+
}
|
|
46231
|
+
}
|
|
46232
|
+
},
|
|
46163
46233
|
"Tabs.Trigger": {
|
|
46164
46234
|
"tags": {},
|
|
46165
46235
|
"description": "",
|
|
@@ -46227,6 +46297,25 @@
|
|
|
46227
46297
|
"name": "boolean"
|
|
46228
46298
|
}
|
|
46229
46299
|
},
|
|
46300
|
+
"renderMenu": {
|
|
46301
|
+
"defaultValue": null,
|
|
46302
|
+
"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)}",
|
|
46303
|
+
"name": "renderMenu",
|
|
46304
|
+
"parent": {
|
|
46305
|
+
"fileName": "src/tabs/TabsTrigger.tsx",
|
|
46306
|
+
"name": "TabsTriggerProps"
|
|
46307
|
+
},
|
|
46308
|
+
"declarations": [
|
|
46309
|
+
{
|
|
46310
|
+
"fileName": "src/tabs/TabsTrigger.tsx",
|
|
46311
|
+
"name": "TabsTriggerProps"
|
|
46312
|
+
}
|
|
46313
|
+
],
|
|
46314
|
+
"required": false,
|
|
46315
|
+
"type": {
|
|
46316
|
+
"name": "(props: { Popover: ConfiguredPopoverComponent; }) => ReactNode"
|
|
46317
|
+
}
|
|
46318
|
+
},
|
|
46230
46319
|
"ref": {
|
|
46231
46320
|
"defaultValue": null,
|
|
46232
46321
|
"description": "",
|
package/dist/drawer/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IconButton
|
|
3
3
|
} from "../chunk-DCXWGQVZ.mjs";
|
|
4
|
+
import "../chunk-2YM6GKWW.mjs";
|
|
5
|
+
import "../chunk-GAK4SC2F.mjs";
|
|
4
6
|
import {
|
|
5
7
|
Icon
|
|
6
8
|
} from "../chunk-UMUMFMFB.mjs";
|
|
7
|
-
import "../chunk-2YM6GKWW.mjs";
|
|
8
|
-
import "../chunk-GAK4SC2F.mjs";
|
|
9
9
|
import "../chunk-KEGAAGJW.mjs";
|
|
10
10
|
import "../chunk-6QCEPQ3U.mjs";
|
|
11
11
|
|
|
@@ -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';
|
package/dist/dropdown/index.mjs
CHANGED
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
Popover
|
|
3
3
|
} from "../chunk-GPJMLIHC.mjs";
|
|
4
4
|
import "../chunk-DCXWGQVZ.mjs";
|
|
5
|
+
import "../chunk-2YM6GKWW.mjs";
|
|
6
|
+
import "../chunk-GAK4SC2F.mjs";
|
|
5
7
|
import {
|
|
6
8
|
Icon
|
|
7
9
|
} from "../chunk-UMUMFMFB.mjs";
|
|
8
|
-
import "../chunk-2YM6GKWW.mjs";
|
|
9
|
-
import "../chunk-GAK4SC2F.mjs";
|
|
10
10
|
import {
|
|
11
11
|
VisuallyHidden
|
|
12
12
|
} from "../chunk-KEGAAGJW.mjs";
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
IconButton
|
|
6
6
|
} from "../chunk-DCXWGQVZ.mjs";
|
|
7
|
-
import {
|
|
8
|
-
Icon
|
|
9
|
-
} from "../chunk-UMUMFMFB.mjs";
|
|
10
7
|
import {
|
|
11
8
|
Button,
|
|
12
9
|
buttonStyles
|
|
13
10
|
} from "../chunk-2YM6GKWW.mjs";
|
|
14
11
|
import "../chunk-GAK4SC2F.mjs";
|
|
12
|
+
import {
|
|
13
|
+
Icon
|
|
14
|
+
} from "../chunk-UMUMFMFB.mjs";
|
|
15
15
|
import "../chunk-KEGAAGJW.mjs";
|
|
16
16
|
import {
|
|
17
17
|
Slot
|
package/dist/icon/index.d.mts
CHANGED
|
@@ -4,8 +4,8 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const iconStyles: (props?: ({
|
|
7
|
-
intent?: "main" | "
|
|
8
|
-
size?: "
|
|
7
|
+
intent?: "main" | "alert" | "error" | "current" | "support" | "accent" | "basic" | "success" | "info" | "neutral" | null | undefined;
|
|
8
|
+
size?: "sm" | "md" | "lg" | "current" | "xl" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
type IconVariantsProps = VariantProps<typeof iconStyles>;
|
|
11
11
|
|
package/dist/icon/index.d.ts
CHANGED
|
@@ -4,8 +4,8 @@ import * as class_variance_authority_types from 'class-variance-authority/types'
|
|
|
4
4
|
import { VariantProps } from 'class-variance-authority';
|
|
5
5
|
|
|
6
6
|
declare const iconStyles: (props?: ({
|
|
7
|
-
intent?: "main" | "
|
|
8
|
-
size?: "
|
|
7
|
+
intent?: "main" | "alert" | "error" | "current" | "support" | "accent" | "basic" | "success" | "info" | "neutral" | null | undefined;
|
|
8
|
+
size?: "sm" | "md" | "lg" | "current" | "xl" | null | undefined;
|
|
9
9
|
} & class_variance_authority_types.ClassProp) | undefined) => string;
|
|
10
10
|
type IconVariantsProps = VariantProps<typeof iconStyles>;
|
|
11
11
|
|
|
@@ -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 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
IconButton
|
|
3
3
|
} from "../chunk-DCXWGQVZ.mjs";
|
|
4
|
-
import {
|
|
5
|
-
Icon
|
|
6
|
-
} from "../chunk-UMUMFMFB.mjs";
|
|
7
4
|
import {
|
|
8
5
|
Button
|
|
9
6
|
} from "../chunk-2YM6GKWW.mjs";
|
|
10
7
|
import "../chunk-GAK4SC2F.mjs";
|
|
8
|
+
import {
|
|
9
|
+
Icon
|
|
10
|
+
} from "../chunk-UMUMFMFB.mjs";
|
|
11
11
|
import "../chunk-KEGAAGJW.mjs";
|
|
12
12
|
import "../chunk-6QCEPQ3U.mjs";
|
|
13
13
|
|