@process.co/ui 0.0.22 → 0.0.23
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/css/ui.css +48 -0
- package/dist/components/dev/index.cjs +213 -7
- package/dist/components/dev/index.cjs.map +1 -1
- package/dist/components/dev/index.d.cts +64 -3
- package/dist/components/dev/index.d.ts +64 -3
- package/dist/components/dev/index.js +214 -9
- package/dist/components/dev/index.js.map +1 -1
- package/dist/components/fields/index.cjs.map +1 -1
- package/dist/components/fields/index.js.map +1 -1
- package/dist/components/slots/index.cjs +73 -59
- package/dist/components/slots/index.cjs.map +1 -1
- package/dist/components/slots/index.d.cts +1 -1
- package/dist/components/slots/index.d.ts +1 -1
- package/dist/components/slots/index.js +73 -60
- package/dist/components/slots/index.js.map +1 -1
- package/dist/{index-NpNmoYuX.d.cts → index-D4Fc9AJv.d.cts} +15 -2
- package/dist/{index-NpNmoYuX.d.ts → index-D4Fc9AJv.d.ts} +15 -2
- package/dist/index.cjs +14 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +15 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { B as Button, L as LogicToggleButton, T as ToggleButton, b as buttonVariants, i as fields, l as logicToggleButtonStyles, t as toggleButtonVariants } from './index-DVH6qE_o.cjs';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
|
-
export { i as slots } from './index-
|
|
4
|
+
export { i as slots } from './index-D4Fc9AJv.cjs';
|
|
5
5
|
import 'class-variance-authority/types';
|
|
6
6
|
import 'class-variance-authority';
|
|
7
7
|
import '@radix-ui/react-toggle';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { B as Button, L as LogicToggleButton, T as ToggleButton, b as buttonVariants, i as fields, l as logicToggleButtonStyles, t as toggleButtonVariants } from './index-DVH6qE_o.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
4
|
-
export { i as slots } from './index-
|
|
4
|
+
export { i as slots } from './index-D4Fc9AJv.js';
|
|
5
5
|
import 'class-variance-authority/types';
|
|
6
6
|
import 'class-variance-authority';
|
|
7
7
|
import '@radix-ui/react-toggle';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React45 from 'react';
|
|
2
|
-
import React45__default, { forwardRef, createElement, createContext, useLayoutEffect, useState, useContext, useCallback } from 'react';
|
|
2
|
+
import React45__default, { forwardRef, createElement, createContext, useLayoutEffect, useState, useContext, useCallback, useEffect } from 'react';
|
|
3
3
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
4
4
|
import * as ReactDOM4 from 'react-dom';
|
|
5
5
|
import ReactDOM4__default from 'react-dom';
|
|
@@ -11956,7 +11956,8 @@ __export(slots_exports, {
|
|
|
11956
11956
|
SlotDelete: () => SlotDelete,
|
|
11957
11957
|
SlotDragHandle: () => SlotDragHandle,
|
|
11958
11958
|
SlotElements: () => SlotElements,
|
|
11959
|
-
SlotEnable: () => SlotEnable
|
|
11959
|
+
SlotEnable: () => SlotEnable,
|
|
11960
|
+
useSlotContext: () => useSlotContext
|
|
11960
11961
|
});
|
|
11961
11962
|
|
|
11962
11963
|
// src/components/slots/SlotElements.tsx
|
|
@@ -15367,6 +15368,18 @@ var SlotDragHandle = (props) => {
|
|
|
15367
15368
|
const { slotId } = props;
|
|
15368
15369
|
return /* @__PURE__ */ React.createElement("div", { className: "uii:cursor-grab" }, /* @__PURE__ */ React.createElement(FontAwesomeIcon, { icon: faGripVertical }));
|
|
15369
15370
|
};
|
|
15371
|
+
|
|
15372
|
+
// src/components/slots/index.tsx
|
|
15373
|
+
function useSlotContext(slotId) {
|
|
15374
|
+
const devContext = useContext(DevContext);
|
|
15375
|
+
const [activeSlotId, setActiveSlotId] = useState(void 0);
|
|
15376
|
+
useEffect(() => {
|
|
15377
|
+
if (devContext) {
|
|
15378
|
+
setActiveSlotId(devContext.activeSlotId ?? void 0);
|
|
15379
|
+
}
|
|
15380
|
+
}, [devContext, slotId]);
|
|
15381
|
+
return { active: (activeSlotId ?? "") === slotId, enabled: true };
|
|
15382
|
+
}
|
|
15370
15383
|
/*! Bundled license information:
|
|
15371
15384
|
|
|
15372
15385
|
react-is/cjs/react-is.production.min.js:
|