@dxos/react-ui 0.6.11 → 0.6.12-main.2d19bf1

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.
@@ -1950,7 +1950,7 @@ var ScrollArea = {
1950
1950
  };
1951
1951
 
1952
1952
  // packages/ui/react-ui/src/components/Select/Select.tsx
1953
- import { CaretDown as CaretDown2, CaretUp, Check as Check2 } from "@phosphor-icons/react";
1953
+ import { CaretDown as CaretDown2, CaretUp } from "@phosphor-icons/react";
1954
1954
  import * as SelectPrimitive from "@radix-ui/react-select";
1955
1955
  import React26, { forwardRef as forwardRef23 } from "react";
1956
1956
  var SelectRoot = SelectPrimitive.Root;
@@ -1965,20 +1965,21 @@ var SelectTriggerButton = /* @__PURE__ */ forwardRef23(({ children, placeholder,
1965
1965
  ref: forwardedRef
1966
1966
  }, /* @__PURE__ */ React26.createElement(Button, props, /* @__PURE__ */ React26.createElement(SelectPrimitive.Value, {
1967
1967
  placeholder
1968
- }, children), /* @__PURE__ */ React26.createElement(SelectPrimitive.Icon, {
1968
+ }, children), /* @__PURE__ */ React26.createElement("span", {
1969
+ className: "w-1 flex-1"
1970
+ }), /* @__PURE__ */ React26.createElement(SelectPrimitive.Icon, {
1969
1971
  asChild: true
1970
- }, /* @__PURE__ */ React26.createElement(React26.Fragment, null, /* @__PURE__ */ React26.createElement("span", {
1971
- className: "w-1"
1972
- }), /* @__PURE__ */ React26.createElement(CaretDown2, {
1972
+ }, /* @__PURE__ */ React26.createElement(CaretDown2, {
1973
1973
  className: tx("select.triggerIcon", "select__trigger__icon", {}),
1974
1974
  weight: "bold"
1975
- })))));
1975
+ }))));
1976
1976
  });
1977
1977
  var SelectContent = /* @__PURE__ */ forwardRef23(({ classNames, children, ...props }, forwardedRef) => {
1978
1978
  const { tx } = useThemeContext();
1979
1979
  return /* @__PURE__ */ React26.createElement(SelectPrimitive.Content, {
1980
1980
  ...props,
1981
1981
  className: tx("select.content", "select__content", {}, classNames),
1982
+ position: "popper",
1982
1983
  ref: forwardedRef
1983
1984
  }, children);
1984
1985
  });
@@ -2026,11 +2027,11 @@ var SelectOption = /* @__PURE__ */ forwardRef23(({ children, classNames, ...prop
2026
2027
  ...props,
2027
2028
  className: tx("select.item", "option", {}, classNames),
2028
2029
  ref: forwardedRef
2029
- }, /* @__PURE__ */ React26.createElement(SelectPrimitive.ItemText, null, children), /* @__PURE__ */ React26.createElement(SelectPrimitive.ItemIndicator, {
2030
- className: tx("select.itemIndicator", "option__indicator", {})
2031
- }, /* @__PURE__ */ React26.createElement(Check2, {
2032
- weight: "bold"
2033
- })));
2030
+ }, /* @__PURE__ */ React26.createElement(SelectPrimitive.ItemText, null, children), /* @__PURE__ */ React26.createElement("span", {
2031
+ className: "grow w-1"
2032
+ }), /* @__PURE__ */ React26.createElement(Icon, {
2033
+ icon: "ph--check--regular"
2034
+ }));
2034
2035
  });
2035
2036
  var SelectGroup = SelectPrimitive.Group;
2036
2037
  var SelectLabel = SelectPrimitive.Label;
@@ -2195,6 +2196,14 @@ var ToolbarButton = /* @__PURE__ */ forwardRef26((props, forwardedRef) => {
2195
2196
  ref: forwardedRef
2196
2197
  }));
2197
2198
  });
2199
+ var ToolbarToggle = /* @__PURE__ */ forwardRef26((props, forwardedRef) => {
2200
+ return /* @__PURE__ */ React30.createElement(ToolbarPrimitive.Button, {
2201
+ asChild: true
2202
+ }, /* @__PURE__ */ React30.createElement(Toggle, {
2203
+ ...props,
2204
+ ref: forwardedRef
2205
+ }));
2206
+ });
2198
2207
  var ToolbarLink = /* @__PURE__ */ forwardRef26((props, forwardedRef) => {
2199
2208
  return /* @__PURE__ */ React30.createElement(ToolbarPrimitive.Link, {
2200
2209
  asChild: true
@@ -2239,6 +2248,7 @@ var Toolbar = {
2239
2248
  Root: ToolbarRoot,
2240
2249
  Button: ToolbarButton,
2241
2250
  Link: ToolbarLink,
2251
+ Toggle: ToolbarToggle,
2242
2252
  ToggleGroup: ToolbarToggleGroup2,
2243
2253
  ToggleGroupItem: ToolbarToggleGroupItem,
2244
2254
  Separator: ToolbarSeparator