@godxjp/ui 5.0.0 → 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/dist/index.js CHANGED
@@ -162,11 +162,13 @@ function Col({
162
162
  const merged = {
163
163
  flexBasis: flex !== void 0 ? void 0 : `${SPAN_TO_PCT(resolved)}%`,
164
164
  maxWidth: flex !== void 0 ? void 0 : `${SPAN_TO_PCT(resolved)}%`,
165
- flex: typeof flex === "number" ? `${flex} ${flex} auto` : flex,
166
165
  paddingLeft: h ? `${h / 2}px` : void 0,
167
166
  paddingRight: h ? `${h / 2}px` : void 0,
168
167
  marginLeft: offset ? `${SPAN_TO_PCT(offset)}%` : void 0,
169
168
  order,
169
+ ...flex !== void 0 && {
170
+ flex: typeof flex === "number" ? `${flex} ${flex} auto` : flex
171
+ },
170
172
  ...style
171
173
  };
172
174
  return /* @__PURE__ */ jsx("div", { className: cn("min-w-0", className), style: merged, ...rest, children });
@@ -1093,8 +1095,10 @@ var Spinner = forwardRef(
1093
1095
  );
1094
1096
  var Root2 = PopoverPrimitive.Root;
1095
1097
  var Trigger2 = PopoverPrimitive.Trigger;
1098
+ var Anchor2 = PopoverPrimitive.Anchor;
1096
1099
  var Popover = forwardRef(function Popover2({
1097
1100
  trigger,
1101
+ anchor,
1098
1102
  children,
1099
1103
  align = "center",
1100
1104
  side,
@@ -1103,23 +1107,24 @@ var Popover = forwardRef(function Popover2({
1103
1107
  contentProps,
1104
1108
  ...rootProps
1105
1109
  }, ref) {
1106
- if (trigger === void 0) {
1110
+ if (trigger === void 0 && anchor === void 0) {
1107
1111
  return /* @__PURE__ */ jsx(Root2, { ...rootProps, children });
1108
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
+ ) });
1109
1125
  return /* @__PURE__ */ jsxs(Root2, { ...rootProps, children: [
1110
- /* @__PURE__ */ jsx(Trigger2, { asChild: true, children: trigger }),
1111
- /* @__PURE__ */ jsx(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx(
1112
- PopoverPrimitive.Content,
1113
- {
1114
- ref,
1115
- align,
1116
- side,
1117
- sideOffset,
1118
- ...contentProps,
1119
- className: cn("popover-content", className, contentProps?.className),
1120
- children
1121
- }
1122
- ) })
1126
+ anchor !== void 0 ? /* @__PURE__ */ jsx(Anchor2, { asChild: true, children: anchor }) : /* @__PURE__ */ jsx(Trigger2, { asChild: true, children: trigger }),
1127
+ content
1123
1128
  ] });
1124
1129
  });
1125
1130
  var AutoComplete = forwardRef(
@@ -1208,7 +1213,7 @@ var AutoComplete = forwardRef(
1208
1213
  {
1209
1214
  open: currentOpen,
1210
1215
  onOpenChange: setOpen,
1211
- trigger: input,
1216
+ anchor: input,
1212
1217
  align: "start",
1213
1218
  sideOffset: 4,
1214
1219
  className: "combobox-content",
@@ -5053,7 +5058,7 @@ var Breadcrumb = forwardRef(
5053
5058
  )
5054
5059
  );
5055
5060
  Breadcrumb.displayName = "Breadcrumb";
5056
- var Anchor = forwardRef(function Anchor2({
5061
+ var Anchor3 = forwardRef(function Anchor4({
5057
5062
  orientation = "vertical",
5058
5063
  sticky,
5059
5064
  offset = 0,
@@ -13052,6 +13057,6 @@ function useTableViews(options) {
13052
13057
  };
13053
13058
  }
13054
13059
 
13055
- 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 };
13056
13061
  //# sourceMappingURL=index.js.map
13057
13062
  //# sourceMappingURL=index.js.map