@godxjp/ui 5.0.1 → 5.0.2
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/CHANGELOG.md +18 -0
- package/dist/components/composites.js +17 -14
- package/dist/components/composites.js.map +1 -1
- package/dist/components/primitives.d.ts +8 -0
- package/dist/components/primitives.js +20 -17
- package/dist/components/primitives.js.map +1 -1
- package/dist/index.js +20 -17
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1095,8 +1095,10 @@ var Spinner = forwardRef(
|
|
|
1095
1095
|
);
|
|
1096
1096
|
var Root2 = PopoverPrimitive.Root;
|
|
1097
1097
|
var Trigger2 = PopoverPrimitive.Trigger;
|
|
1098
|
+
var Anchor2 = PopoverPrimitive.Anchor;
|
|
1098
1099
|
var Popover = forwardRef(function Popover2({
|
|
1099
1100
|
trigger,
|
|
1101
|
+
anchor,
|
|
1100
1102
|
children,
|
|
1101
1103
|
align = "center",
|
|
1102
1104
|
side,
|
|
@@ -1105,23 +1107,24 @@ var Popover = forwardRef(function Popover2({
|
|
|
1105
1107
|
contentProps,
|
|
1106
1108
|
...rootProps
|
|
1107
1109
|
}, ref) {
|
|
1108
|
-
if (trigger === void 0) {
|
|
1110
|
+
if (trigger === void 0 && anchor === void 0) {
|
|
1109
1111
|
return /* @__PURE__ */ jsx(Root2, { ...rootProps, children });
|
|
1110
1112
|
}
|
|
1113
|
+
const content = /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
|
|
1114
|
+
PopoverPrimitive.Content,
|
|
1115
|
+
{
|
|
1116
|
+
ref,
|
|
1117
|
+
align,
|
|
1118
|
+
side,
|
|
1119
|
+
sideOffset,
|
|
1120
|
+
...contentProps,
|
|
1121
|
+
className: cn("popover-content", className, contentProps?.className),
|
|
1122
|
+
children
|
|
1123
|
+
}
|
|
1124
|
+
) });
|
|
1111
1125
|
return /* @__PURE__ */ jsxs(Root2, { ...rootProps, children: [
|
|
1112
|
-
/* @__PURE__ */ jsx(Trigger2, { asChild: true, children: trigger }),
|
|
1113
|
-
|
|
1114
|
-
PopoverPrimitive.Content,
|
|
1115
|
-
{
|
|
1116
|
-
ref,
|
|
1117
|
-
align,
|
|
1118
|
-
side,
|
|
1119
|
-
sideOffset,
|
|
1120
|
-
...contentProps,
|
|
1121
|
-
className: cn("popover-content", className, contentProps?.className),
|
|
1122
|
-
children
|
|
1123
|
-
}
|
|
1124
|
-
) })
|
|
1126
|
+
anchor !== void 0 ? /* @__PURE__ */ jsx(Anchor2, { asChild: true, children: anchor }) : /* @__PURE__ */ jsx(Trigger2, { asChild: true, children: trigger }),
|
|
1127
|
+
content
|
|
1125
1128
|
] });
|
|
1126
1129
|
});
|
|
1127
1130
|
var AutoComplete = forwardRef(
|
|
@@ -1210,7 +1213,7 @@ var AutoComplete = forwardRef(
|
|
|
1210
1213
|
{
|
|
1211
1214
|
open: currentOpen,
|
|
1212
1215
|
onOpenChange: setOpen,
|
|
1213
|
-
|
|
1216
|
+
anchor: input,
|
|
1214
1217
|
align: "start",
|
|
1215
1218
|
sideOffset: 4,
|
|
1216
1219
|
className: "combobox-content",
|
|
@@ -5055,7 +5058,7 @@ var Breadcrumb = forwardRef(
|
|
|
5055
5058
|
)
|
|
5056
5059
|
);
|
|
5057
5060
|
Breadcrumb.displayName = "Breadcrumb";
|
|
5058
|
-
var
|
|
5061
|
+
var Anchor3 = forwardRef(function Anchor4({
|
|
5059
5062
|
orientation = "vertical",
|
|
5060
5063
|
sticky,
|
|
5061
5064
|
offset = 0,
|
|
@@ -13054,6 +13057,6 @@ function useTableViews(options) {
|
|
|
13054
13057
|
};
|
|
13055
13058
|
}
|
|
13056
13059
|
|
|
13057
|
-
export { AgendaView, Alert, AlertDialog, AllDayChip, Anchor, AttendeeChip, AttendeeListItem, AutoComplete, AvailabilityRow, Avatar, AvatarStack, AvatarUploader, Badge, Breadcrumb, Button, Calendar, CalendarOption, CalendarSidebar, CalendarTopbar, Card, Carousel, Cascader, Checkbox, CheckboxGroup, Checklist, Col, Collapse, ColorPicker, ColorSwatchCheckbox, CreateEventDialog, DEFAULT_GRID, DataTable, DateField, DatePicker, DateRangePicker, DayHeaderHero, DayHeaderPill, DayView, Descriptions, Dialog, DropdownMenu, Empty, EventBlock, EventDetailPanel, EventPill, FORGE_LOCALE_STORAGE_KEY, Field, FindATimePanel, Flex, Form, FormField, GODX_LOCALE_STORAGE_KEY, GridColumn, IconButton, IconRow, Image2 as Image, ImageUpload, Input, InputNumber, InputPassword, InputSearch, Label4 as Label, List2 as List, LocaleInput, LocaleRowInput, LocaleTabs, MediaUpload, MediaUploadAvatar, MediaUploadMultiple, MediaUploadSingle, Menu, MiniMonth, MonthCell, MonthView, NowLine, PageHeader, Pagination, Popconfirm, Popover, Progress, QRCode, Radio, RadioGroup, Rate, Result, Row, SUPPORTED_LOCALES, SegmentedControl, Select, Separator4 as Separator, Sheet, Skeleton, Slider, Space, Spinner, Statistic, Steps, SuggestedSlotCard, Switch, Table, TableExportDialog, TableImportFlow, Tabs, Tag, Textarea, TimeField, TimeGutter, TimeInput, Timeline, Toaster, Tooltip, Tour, Transfer, Tree, TreeSelect, Typography, Upload, Watermark, WeekView, buildMonthGrid, cn, computePageRange, fmtHour, formatCurrency, formatDate, formatDateTime, formatNumber, formatRelative, formatTime, initI18n, layoutEvents, matchBreakpoint, minToY, normalizeLoading, parseHM, productOptions, useBreakpoint, useDataTable, useFormLoading, useFormatters, useRowGutter, useTablePagination, useTableSelection, useTableState, useTableViews, useTweaks, ymd };
|
|
13060
|
+
export { AgendaView, Alert, AlertDialog, AllDayChip, Anchor3 as Anchor, AttendeeChip, AttendeeListItem, AutoComplete, AvailabilityRow, Avatar, AvatarStack, AvatarUploader, Badge, Breadcrumb, Button, Calendar, CalendarOption, CalendarSidebar, CalendarTopbar, Card, Carousel, Cascader, Checkbox, CheckboxGroup, Checklist, Col, Collapse, ColorPicker, ColorSwatchCheckbox, CreateEventDialog, DEFAULT_GRID, DataTable, DateField, DatePicker, DateRangePicker, DayHeaderHero, DayHeaderPill, DayView, Descriptions, Dialog, DropdownMenu, Empty, EventBlock, EventDetailPanel, EventPill, FORGE_LOCALE_STORAGE_KEY, Field, FindATimePanel, Flex, Form, FormField, GODX_LOCALE_STORAGE_KEY, GridColumn, IconButton, IconRow, Image2 as Image, ImageUpload, Input, InputNumber, InputPassword, InputSearch, Label4 as Label, List2 as List, LocaleInput, LocaleRowInput, LocaleTabs, MediaUpload, MediaUploadAvatar, MediaUploadMultiple, MediaUploadSingle, Menu, MiniMonth, MonthCell, MonthView, NowLine, PageHeader, Pagination, Popconfirm, Popover, Progress, QRCode, Radio, RadioGroup, Rate, Result, Row, SUPPORTED_LOCALES, SegmentedControl, Select, Separator4 as Separator, Sheet, Skeleton, Slider, Space, Spinner, Statistic, Steps, SuggestedSlotCard, Switch, Table, TableExportDialog, TableImportFlow, Tabs, Tag, Textarea, TimeField, TimeGutter, TimeInput, Timeline, Toaster, Tooltip, Tour, Transfer, Tree, TreeSelect, Typography, Upload, Watermark, WeekView, buildMonthGrid, cn, computePageRange, fmtHour, formatCurrency, formatDate, formatDateTime, formatNumber, formatRelative, formatTime, initI18n, layoutEvents, matchBreakpoint, minToY, normalizeLoading, parseHM, productOptions, useBreakpoint, useDataTable, useFormLoading, useFormatters, useRowGutter, useTablePagination, useTableSelection, useTableState, useTableViews, useTweaks, ymd };
|
|
13058
13061
|
//# sourceMappingURL=index.js.map
|
|
13059
13062
|
//# sourceMappingURL=index.js.map
|