@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.
- package/dist/lib/browser/index.mjs +21 -11
- package/dist/lib/browser/index.mjs.map +3 -3
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/node/index.cjs +2400 -0
- package/dist/lib/node/index.cjs.map +7 -0
- package/dist/lib/node/meta.json +1 -0
- package/dist/lib/node-esm/index.mjs +2401 -0
- package/dist/lib/node-esm/index.mjs.map +7 -0
- package/dist/lib/node-esm/meta.json +1 -0
- package/dist/types/src/components/Input/Input.d.ts.map +1 -1
- package/dist/types/src/components/Lists/Treegrid.stories.d.ts.map +1 -1
- package/dist/types/src/components/Select/Select.d.ts.map +1 -1
- package/dist/types/src/components/ThemeProvider/TranslationsProvider.d.ts +4 -4
- package/dist/types/src/components/Toolbar/Toolbar.d.ts +4 -2
- package/dist/types/src/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/package.json +17 -14
- package/src/components/Lists/Treegrid.stories.tsx +1 -0
- package/src/components/Select/Select.tsx +9 -10
- package/src/components/Toolbar/Toolbar.tsx +21 -1
|
@@ -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
|
|
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(
|
|
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(
|
|
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(
|
|
2030
|
-
className:
|
|
2031
|
-
}, /* @__PURE__ */ React26.createElement(
|
|
2032
|
-
|
|
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
|