@blockle/blocks-react 2.4.1 → 2.4.4
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/README.md +1 -25
- package/dist/components/display/Divider/Divider.js +1 -1
- package/dist/components/display/Icon/createIconMask.d.ts.map +1 -1
- package/dist/components/display/Icon/createIconMask.js +2 -1
- package/dist/components/display/Icon/heroicons.d.ts +3 -0
- package/dist/components/display/Icon/heroicons.d.ts.map +1 -0
- package/dist/components/feedback/Alert/Alert.js +1 -1
- package/dist/components/feedback/Progress/Progress.js +1 -1
- package/dist/components/feedback/Spinner/Spinner.js +1 -1
- package/dist/components/form/Button/Button.d.ts.map +1 -1
- package/dist/components/form/Button/Button.js +4 -3
- package/dist/components/form/Checkbox/Checkbox.js +1 -1
- package/dist/components/form/Label/Label.js +1 -1
- package/dist/components/form/Radio/Radio.js +1 -1
- package/dist/components/form/Select/Select.d.ts.map +1 -1
- package/dist/components/form/Select/Select.js +1 -5
- package/dist/components/form/Slider/Slider.js +1 -1
- package/dist/components/form/Switch/Switch.js +3 -3
- package/dist/components/form/TextInput/TextInput.js +1 -1
- package/dist/components/form/Textarea/Textarea.js +1 -1
- package/dist/components/navigation/Link/Link.js +1 -1
- package/dist/components/overlay/Drawer/Drawer.d.ts +10 -0
- package/dist/components/overlay/Drawer/Drawer.d.ts.map +1 -0
- package/dist/components/overlay/Drawer/Drawer.js +78 -0
- package/dist/components/overlay/Drawer/drawer.css.d.ts +8 -0
- package/dist/components/overlay/Drawer/drawer.css.d.ts.map +1 -0
- package/dist/components/overlay/Drawer/drawer.css.js +73 -0
- package/dist/components/overlay/Popover/Popover.js +1 -1
- package/dist/components/overlay/Tooltip/Tooltip.js +1 -1
- package/dist/components/providers/BlocksProvider/BlocksProvider.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/testUtils/testTheme.css.d.ts.map +1 -1
- package/package.json +10 -6
package/README.md
CHANGED
|
@@ -1,25 +1 @@
|
|
|
1
|
-
# @blockle/blocks-
|
|
2
|
-
|
|
3
|
-
A collection of React hooks.
|
|
4
|
-
|
|
5
|
-
## Installation
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @blockle/hooks
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## Usage
|
|
12
|
-
|
|
13
|
-
### useIsomorphicLayoutEffect
|
|
14
|
-
|
|
15
|
-
```tsx
|
|
16
|
-
import { useIsomorphicLayoutEffect } from '@blockle/hooks';
|
|
17
|
-
|
|
18
|
-
export const Component = () => {
|
|
19
|
-
useIsomorphicLayoutEffect(() => {
|
|
20
|
-
// Your effect
|
|
21
|
-
}, []);
|
|
22
|
-
|
|
23
|
-
return <div>Component</div>;
|
|
24
|
-
};
|
|
25
|
-
```
|
|
1
|
+
# @blockle/blocks-react
|
|
@@ -10,7 +10,7 @@ const Divider = ({
|
|
|
10
10
|
color,
|
|
11
11
|
...restProps
|
|
12
12
|
}) => {
|
|
13
|
-
const dividerClass = useComponentStyles("divider", {
|
|
13
|
+
const dividerClass = useComponentStyles("divider", { root: true });
|
|
14
14
|
const dividerDefaults = useComponentStyleDefaultProps("divider");
|
|
15
15
|
return /* @__PURE__ */ jsx(
|
|
16
16
|
Box,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createIconMask.d.ts","sourceRoot":"","sources":["../../../../src/components/display/Icon/createIconMask.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAE7D,KAAK,mBAAmB,CAAC,KAAK,SAAS,MAAM,IAAI,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,GAAG;IAC5E,IAAI,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,KAAK,SAAS,MAAM,EACjD,YAAY,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,
|
|
1
|
+
{"version":3,"file":"createIconMask.d.ts","sourceRoot":"","sources":["../../../../src/components/display/Icon/createIconMask.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,eAAe,CAAC;AAE7D,KAAK,mBAAmB,CAAC,KAAK,SAAS,MAAM,IAAI,IAAI,CAAC,aAAa,EAAE,KAAK,CAAC,GAAG;IAC5E,IAAI,EAAE,KAAK,CAAC;CACb,CAAC;AAEF,eAAO,MAAM,cAAc,GAAI,KAAK,SAAS,MAAM,EACjD,YAAY,CAAC,IAAI,EAAE,KAAK,KAAK,MAAM,0BAES,mBAAmB,CAAC,KAAK,CAAC,4CAKvE,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { IconMask } from "./IconMask.js";
|
|
3
3
|
const createIconMask = (getIconUrl) => {
|
|
4
|
-
|
|
4
|
+
const CustomIconMask = ({ name, ...props }) => {
|
|
5
5
|
return /* @__PURE__ */ jsx(IconMask, { ...props, src: getIconUrl(name) });
|
|
6
6
|
};
|
|
7
|
+
return CustomIconMask;
|
|
7
8
|
};
|
|
8
9
|
export {
|
|
9
10
|
createIconMask
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export type HeroIconName = 'academic-cap' | 'adjustments-horizontal' | 'adjustments-vertical' | 'archive-box-arrow-down' | 'archive-box-x-mark' | 'archive-box' | 'arrow-down-circle' | 'arrow-down-left' | 'arrow-down-on-square-stack' | 'arrow-down-on-square' | 'arrow-down-right' | 'arrow-down-tray' | 'arrow-down' | 'arrow-left-circle' | 'arrow-left-end-on-rectangle' | 'arrow-left-on-rectangle' | 'arrow-left-start-on-rectangle' | 'arrow-left' | 'arrow-long-down' | 'arrow-long-left' | 'arrow-long-right' | 'arrow-long-up' | 'arrow-path-rounded-square' | 'arrow-path' | 'arrow-right-circle' | 'arrow-right-end-on-rectangle' | 'arrow-right-on-rectangle' | 'arrow-right-start-on-rectangle' | 'arrow-right' | 'arrow-small-down' | 'arrow-small-left' | 'arrow-small-right' | 'arrow-small-up' | 'arrow-top-right-on-square' | 'arrow-trending-down' | 'arrow-trending-up' | 'arrow-turn-down-left' | 'arrow-turn-down-right' | 'arrow-turn-left-down' | 'arrow-turn-left-up' | 'arrow-turn-right-down' | 'arrow-turn-right-up' | 'arrow-turn-up-left' | 'arrow-turn-up-right' | 'arrow-up-circle' | 'arrow-up-left' | 'arrow-up-on-square-stack' | 'arrow-up-on-square' | 'arrow-up-right' | 'arrow-up-tray' | 'arrow-up' | 'arrow-uturn-down' | 'arrow-uturn-left' | 'arrow-uturn-right' | 'arrow-uturn-up' | 'arrows-pointing-in' | 'arrows-pointing-out' | 'arrows-right-left' | 'arrows-up-down' | 'at-symbol' | 'backspace' | 'backward' | 'banknotes' | 'bars-2' | 'bars-3-bottom-left' | 'bars-3-bottom-right' | 'bars-3-center-left' | 'bars-3' | 'bars-4' | 'bars-arrow-down' | 'bars-arrow-up' | 'battery-0' | 'battery-100' | 'battery-50' | 'beaker' | 'bell-alert' | 'bell-slash' | 'bell-snooze' | 'bell' | 'bold' | 'bolt-slash' | 'bolt' | 'book-open' | 'bookmark-slash' | 'bookmark-square' | 'bookmark' | 'briefcase' | 'bug-ant' | 'building-library' | 'building-office-2' | 'building-office' | 'building-storefront' | 'cake' | 'calculator' | 'calendar-date-range' | 'calendar-days' | 'calendar' | 'camera' | 'chart-bar-square' | 'chart-bar' | 'chart-pie' | 'chat-bubble-bottom-center-text' | 'chat-bubble-bottom-center' | 'chat-bubble-left-ellipsis' | 'chat-bubble-left-right' | 'chat-bubble-left' | 'chat-bubble-oval-left-ellipsis' | 'chat-bubble-oval-left' | 'check-badge' | 'check-circle' | 'check' | 'chevron-double-down' | 'chevron-double-left' | 'chevron-double-right' | 'chevron-double-up' | 'chevron-down' | 'chevron-left' | 'chevron-right' | 'chevron-up-down' | 'chevron-up' | 'circle-stack' | 'clipboard-document-check' | 'clipboard-document-list' | 'clipboard-document' | 'clipboard' | 'clock' | 'cloud-arrow-down' | 'cloud-arrow-up' | 'cloud' | 'code-bracket-square' | 'code-bracket' | 'cog-6-tooth' | 'cog-8-tooth' | 'cog' | 'command-line' | 'computer-desktop' | 'cpu-chip' | 'credit-card' | 'cube-transparent' | 'cube' | 'currency-bangladeshi' | 'currency-dollar' | 'currency-euro' | 'currency-pound' | 'currency-rupee' | 'currency-yen' | 'cursor-arrow-rays' | 'cursor-arrow-ripple' | 'device-phone-mobile' | 'device-tablet' | 'divide' | 'document-arrow-down' | 'document-arrow-up' | 'document-chart-bar' | 'document-check' | 'document-currency-bangladeshi' | 'document-currency-dollar' | 'document-currency-euro' | 'document-currency-pound' | 'document-currency-rupee' | 'document-currency-yen' | 'document-duplicate' | 'document-magnifying-glass' | 'document-minus' | 'document-plus' | 'document-text' | 'document' | 'ellipsis-horizontal-circle' | 'ellipsis-horizontal' | 'ellipsis-vertical' | 'envelope-open' | 'envelope' | 'equals' | 'exclamation-circle' | 'exclamation-triangle' | 'eye-dropper' | 'eye-slash' | 'eye' | 'face-frown' | 'face-smile' | 'film' | 'finger-print' | 'fire' | 'flag' | 'folder-arrow-down' | 'folder-minus' | 'folder-open' | 'folder-plus' | 'folder' | 'forward' | 'funnel' | 'gif' | 'gift-top' | 'gift' | 'globe-alt' | 'globe-americas' | 'globe-asia-australia' | 'globe-europe-africa' | 'h1' | 'h2' | 'h3' | 'hand-raised' | 'hand-thumb-down' | 'hand-thumb-up' | 'hashtag' | 'heart' | 'home-modern' | 'home' | 'identification' | 'inbox-arrow-down' | 'inbox-stack' | 'inbox' | 'information-circle' | 'italic' | 'key' | 'language' | 'lifebuoy' | 'light-bulb' | 'link-slash' | 'link' | 'list-bullet' | 'lock-closed' | 'lock-open' | 'magnifying-glass-circle' | 'magnifying-glass-minus' | 'magnifying-glass-plus' | 'magnifying-glass' | 'map-pin' | 'map' | 'megaphone' | 'microphone' | 'minus-circle' | 'minus-small' | 'minus' | 'moon' | 'musical-note' | 'newspaper' | 'no-symbol' | 'numbered-list' | 'paint-brush' | 'paper-airplane' | 'paper-clip' | 'pause-circle' | 'pause' | 'pencil-square' | 'pencil' | 'percent-badge' | 'phone-arrow-down-left' | 'phone-arrow-up-right' | 'phone-x-mark' | 'phone' | 'photo' | 'play-circle' | 'play-pause' | 'play' | 'plus-circle' | 'plus-small' | 'plus' | 'power' | 'presentation-chart-bar' | 'presentation-chart-line' | 'printer' | 'puzzle-piece' | 'qr-code' | 'question-mark-circle' | 'queue-list' | 'radio' | 'receipt-percent' | 'receipt-refund' | 'rectangle-group' | 'rectangle-stack' | 'rocket-launch' | 'rss' | 'scale' | 'scissors' | 'server-stack' | 'server' | 'share' | 'shield-check' | 'shield-exclamation' | 'shopping-bag' | 'shopping-cart' | 'signal-slash' | 'signal' | 'slash' | 'sparkles' | 'speaker-wave' | 'speaker-x-mark' | 'square-2-stack' | 'square-3-stack-3d' | 'squares-2x2' | 'squares-plus' | 'star' | 'stop-circle' | 'stop' | 'strikethrough' | 'sun' | 'swatch' | 'table-cells' | 'tag' | 'ticket' | 'trash' | 'trophy' | 'truck' | 'tv' | 'underline' | 'user-circle' | 'user-group' | 'user-minus' | 'user-plus' | 'user' | 'users' | 'variable' | 'video-camera-slash' | 'video-camera' | 'view-columns' | 'viewfinder-circle' | 'wallet' | 'wifi' | 'window' | 'wrench-screwdriver' | 'wrench' | 'x-circle' | 'x-mark';
|
|
2
|
+
export declare const heroIconNames: string[];
|
|
3
|
+
//# sourceMappingURL=heroicons.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heroicons.d.ts","sourceRoot":"","sources":["../../../../src/components/display/Icon/heroicons.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GACpB,cAAc,GACd,wBAAwB,GACxB,sBAAsB,GACtB,wBAAwB,GACxB,oBAAoB,GACpB,aAAa,GACb,mBAAmB,GACnB,iBAAiB,GACjB,4BAA4B,GAC5B,sBAAsB,GACtB,kBAAkB,GAClB,iBAAiB,GACjB,YAAY,G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GACZ,YAAY,GACZ,WAAW,GACX,MAAM,GACN,OAAO,GACP,UAAU,GACV,oBAAoB,GACpB,cAAc,GACd,cAAc,GACd,mBAAmB,GACnB,QAAQ,GACR,MAAM,GACN,QAAQ,GACR,oBAAoB,GACpB,QAAQ,GACR,UAAU,GACV,QAAQ,CAAC;AAGb,eAAO,MAAM,aAAa,UAqUzB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,KAAK,EAEV,KAAK,eAAe,EAGpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Button/Button.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,KAAK,EAEV,KAAK,eAAe,EAGpB,KAAK,gBAAgB,EACrB,KAAK,WAAW,EACjB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,KAAK,WAAW,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AAE7C,MAAM,MAAM,WAAW,GAAG;IACxB,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC/B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,UAAU,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IACjC,MAAM,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,QAAQ,CAAC,CAAC;IAC3C,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC,IAAI,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;IACvC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,OAAO,CAAC;IACrC,OAAO,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC;CAC9C,GAAG,IAAI,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC,GACnD,WAAW,CAAC;AAId,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAyDxC,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { getAtomsAndProps, classnames, atoms } from "@blockle/blocks-core";
|
|
|
4
4
|
import { createSlottable } from "@blockle/blocks-react-slot";
|
|
5
5
|
import { useComponentStyles } from "../../../hooks/useComponentStyles/useComponentStyles.js";
|
|
6
6
|
import { Spinner } from "../../feedback/Spinner/Spinner.js";
|
|
7
|
+
import { Box } from "../../layout/Box/Box.js";
|
|
7
8
|
import { buttonReset } from "./Button.css.js";
|
|
8
9
|
const [Template, Slot] = createSlottable("button");
|
|
9
10
|
const Button = ({
|
|
@@ -22,7 +23,7 @@ const Button = ({
|
|
|
22
23
|
...restProps
|
|
23
24
|
}) => {
|
|
24
25
|
const buttonClassName = useComponentStyles("button", {
|
|
25
|
-
|
|
26
|
+
root: true,
|
|
26
27
|
variants: {
|
|
27
28
|
variant,
|
|
28
29
|
intent,
|
|
@@ -47,10 +48,10 @@ const Button = ({
|
|
|
47
48
|
type: asChild ? void 0 : type ?? "button",
|
|
48
49
|
...otherProps,
|
|
49
50
|
children: [
|
|
50
|
-
startSlot && /* @__PURE__ */ jsx("
|
|
51
|
+
startSlot && /* @__PURE__ */ jsx(Box, { display: "inline-flex", children: startSlot }),
|
|
51
52
|
loading && /* @__PURE__ */ jsx(Spinner, { size }),
|
|
52
53
|
/* @__PURE__ */ jsx(Slot, { children }),
|
|
53
|
-
endSlot && /* @__PURE__ */ jsx("
|
|
54
|
+
endSlot && /* @__PURE__ */ jsx(Box, { display: "inline-flex", children: endSlot })
|
|
54
55
|
]
|
|
55
56
|
}
|
|
56
57
|
);
|
|
@@ -14,7 +14,7 @@ const Radio = ({
|
|
|
14
14
|
}) => {
|
|
15
15
|
const rid = useId();
|
|
16
16
|
const id = restProps.id ?? rid;
|
|
17
|
-
const containerClassName = useComponentStyles("radio", {
|
|
17
|
+
const containerClassName = useComponentStyles("radio", { root: true }, false);
|
|
18
18
|
const iconClassName = useComponentStyles("radio", { icon: true }, false);
|
|
19
19
|
const labelClassName = useComponentStyles("checkbox", { label: true }, false);
|
|
20
20
|
const input$1 = /* @__PURE__ */ jsxs(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Select/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,KAAK,WAAW,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AAE7C,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC;CAC9C,GAAG,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;AAExC,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Select/Select.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,eAAe,EAEpB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAM/B,KAAK,WAAW,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AAE7C,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;IACnC,OAAO,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,CAAC;CAC9C,GAAG,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;AAExC,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAkCxC,CAAC"}
|
|
@@ -12,11 +12,7 @@ const Select = ({
|
|
|
12
12
|
ref,
|
|
13
13
|
...restProps
|
|
14
14
|
}) => {
|
|
15
|
-
const wrapperClassName = useComponentStyles(
|
|
16
|
-
"select",
|
|
17
|
-
{ wrapper: true },
|
|
18
|
-
false
|
|
19
|
-
);
|
|
15
|
+
const wrapperClassName = useComponentStyles("select", { root: true }, false);
|
|
20
16
|
const selectClassName = useComponentStyles("select", {
|
|
21
17
|
select: true,
|
|
22
18
|
variants: { variant }
|
|
@@ -15,8 +15,8 @@ const Switch = ({
|
|
|
15
15
|
const [isChecked, setIsChecked] = useState(
|
|
16
16
|
defaultChecked || checked || false
|
|
17
17
|
);
|
|
18
|
-
const baseClassName = useComponentStyles("switch", {
|
|
19
|
-
const
|
|
18
|
+
const baseClassName = useComponentStyles("switch", { root: true });
|
|
19
|
+
const thumbClassName = useComponentStyles("switch", { thumb: true }, false);
|
|
20
20
|
useEffect(() => {
|
|
21
21
|
if (checked !== void 0) {
|
|
22
22
|
setIsChecked(checked);
|
|
@@ -63,7 +63,7 @@ const Switch = ({
|
|
|
63
63
|
...restProps
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
|
-
/* @__PURE__ */ jsx("div", { className:
|
|
66
|
+
/* @__PURE__ */ jsx("div", { className: thumbClassName, "data-checked": isChecked })
|
|
67
67
|
]
|
|
68
68
|
}
|
|
69
69
|
) });
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { HTMLElementProps } from '@blockle/blocks-core';
|
|
2
|
+
import * as styles from './drawer.css.js';
|
|
3
|
+
export type DrawerProps = {
|
|
4
|
+
open: boolean;
|
|
5
|
+
onRequestClose: () => void;
|
|
6
|
+
placement?: keyof typeof styles.placement;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
} & HTMLElementProps<HTMLDialogElement>;
|
|
9
|
+
export declare const Drawer: React.FC<DrawerProps>;
|
|
10
|
+
//# sourceMappingURL=Drawer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Drawer.d.ts","sourceRoot":"","sources":["../../../../src/components/overlay/Drawer/Drawer.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,gBAAgB,EAEtB,MAAM,sBAAsB,CAAC;AAQ9B,OAAO,KAAK,MAAM,MAAM,iBAAiB,CAAC;AAE1C,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,OAAO,MAAM,CAAC,SAAS,CAAC;IAC1C,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,GAAG,gBAAgB,CAAC,iBAAiB,CAAC,CAAC;AAExC,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuFxC,CAAC"}
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { hasAnimationDuration, classnames } from "@blockle/blocks-core";
|
|
3
|
+
import { useRef, useState, useCallback } from "react";
|
|
4
|
+
import { useClickOutside } from "../../../hooks/useClickOutside/useClickOutside.js";
|
|
5
|
+
import { useComponentStyles } from "../../../hooks/useComponentStyles/useComponentStyles.js";
|
|
6
|
+
import { useIsomorphicLayoutEffect } from "../../../hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.js";
|
|
7
|
+
import { useKeyboard } from "../../../hooks/useKeyboard/useKeyboard.js";
|
|
8
|
+
import { usePreventBodyScroll } from "../../../hooks/usePreventBodyScroll/usePreventBodyScroll.js";
|
|
9
|
+
import { drawer, placement } from "./drawer.css.js";
|
|
10
|
+
const Drawer = ({
|
|
11
|
+
open,
|
|
12
|
+
onRequestClose,
|
|
13
|
+
placement: placement$1 = "left",
|
|
14
|
+
children,
|
|
15
|
+
...restProps
|
|
16
|
+
}) => {
|
|
17
|
+
const dialogRef = useRef(null);
|
|
18
|
+
const [visible, setVisible] = useState(open);
|
|
19
|
+
const rootClassName = useComponentStyles("drawer", {
|
|
20
|
+
root: true,
|
|
21
|
+
variants: { placement: placement$1 }
|
|
22
|
+
});
|
|
23
|
+
const dataOpen = typeof window === "undefined" && open ? true : void 0;
|
|
24
|
+
usePreventBodyScroll(open);
|
|
25
|
+
useClickOutside(dialogRef, onRequestClose, { enabled: open });
|
|
26
|
+
const onEscape = useCallback(
|
|
27
|
+
(event) => {
|
|
28
|
+
event.preventDefault();
|
|
29
|
+
onRequestClose();
|
|
30
|
+
},
|
|
31
|
+
[onRequestClose]
|
|
32
|
+
);
|
|
33
|
+
useKeyboard("Escape", onEscape, { enabled: open });
|
|
34
|
+
useIsomorphicLayoutEffect(() => {
|
|
35
|
+
if (open && visible) {
|
|
36
|
+
if (!dialogRef.current || !dialogRef.current.showModal) {
|
|
37
|
+
return;
|
|
38
|
+
}
|
|
39
|
+
dialogRef.current.showModal();
|
|
40
|
+
} else if (open) {
|
|
41
|
+
setVisible(true);
|
|
42
|
+
} else {
|
|
43
|
+
if (!hasAnimationDuration(dialogRef.current)) {
|
|
44
|
+
setVisible(false);
|
|
45
|
+
}
|
|
46
|
+
if (dialogRef.current?.close) {
|
|
47
|
+
dialogRef.current.close();
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}, [open, visible]);
|
|
51
|
+
const onAnimationEnd = useCallback(() => {
|
|
52
|
+
if (!open) {
|
|
53
|
+
setVisible(false);
|
|
54
|
+
}
|
|
55
|
+
}, [open]);
|
|
56
|
+
if (!visible) {
|
|
57
|
+
return null;
|
|
58
|
+
}
|
|
59
|
+
return /* @__PURE__ */ jsx(
|
|
60
|
+
"dialog",
|
|
61
|
+
{
|
|
62
|
+
ref: dialogRef,
|
|
63
|
+
open: dataOpen,
|
|
64
|
+
className: classnames(
|
|
65
|
+
drawer,
|
|
66
|
+
placement[placement$1],
|
|
67
|
+
rootClassName
|
|
68
|
+
),
|
|
69
|
+
onAnimationEnd,
|
|
70
|
+
onTransitionEnd: onAnimationEnd,
|
|
71
|
+
...restProps,
|
|
72
|
+
children
|
|
73
|
+
}
|
|
74
|
+
);
|
|
75
|
+
};
|
|
76
|
+
export {
|
|
77
|
+
Drawer
|
|
78
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"drawer.css.d.ts","sourceRoot":"","sources":["../../../../src/components/overlay/Drawer/drawer.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,QAmBjB,CAAC;AAEH,eAAO,MAAM,SAAS;;;;;CA2CrB,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
+
import { layers } from "@blockle/blocks-core";
|
|
3
|
+
import { style } from "@vanilla-extract/css";
|
|
4
|
+
setFileScope("src/components/overlay/Drawer/drawer.css.ts", "@blockle/blocks-react");
|
|
5
|
+
const drawer = style({
|
|
6
|
+
"@layer": {
|
|
7
|
+
[layers.molecule]: {
|
|
8
|
+
position: "fixed",
|
|
9
|
+
border: "none",
|
|
10
|
+
margin: 0,
|
|
11
|
+
// unset default dialog styles
|
|
12
|
+
maxHeight: "100%",
|
|
13
|
+
maxWidth: "100%",
|
|
14
|
+
left: "unset",
|
|
15
|
+
top: "unset",
|
|
16
|
+
overflow: "auto",
|
|
17
|
+
"::backdrop": {
|
|
18
|
+
// Remove pointer event to prevent clicks on the backdrop
|
|
19
|
+
// and make it easier to check if the click was outside the dialog
|
|
20
|
+
pointerEvents: "none"
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
const placement = {
|
|
26
|
+
left: style({
|
|
27
|
+
"@layer": {
|
|
28
|
+
[layers.molecule]: {
|
|
29
|
+
top: 0,
|
|
30
|
+
bottom: 0,
|
|
31
|
+
left: 0,
|
|
32
|
+
height: "100%",
|
|
33
|
+
width: "300px"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}),
|
|
37
|
+
right: style({
|
|
38
|
+
"@layer": {
|
|
39
|
+
[layers.molecule]: {
|
|
40
|
+
top: 0,
|
|
41
|
+
right: 0,
|
|
42
|
+
bottom: 0,
|
|
43
|
+
height: "100%",
|
|
44
|
+
width: "300px"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}),
|
|
48
|
+
top: style({
|
|
49
|
+
"@layer": {
|
|
50
|
+
[layers.molecule]: {
|
|
51
|
+
top: 0,
|
|
52
|
+
left: 0,
|
|
53
|
+
width: "100%",
|
|
54
|
+
height: "300px"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}),
|
|
58
|
+
bottom: style({
|
|
59
|
+
"@layer": {
|
|
60
|
+
[layers.molecule]: {
|
|
61
|
+
bottom: 0,
|
|
62
|
+
left: 0,
|
|
63
|
+
width: "100%",
|
|
64
|
+
height: "300px"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
})
|
|
68
|
+
};
|
|
69
|
+
endFileScope();
|
|
70
|
+
export {
|
|
71
|
+
drawer,
|
|
72
|
+
placement
|
|
73
|
+
};
|
|
@@ -22,7 +22,7 @@ const Popover = ({
|
|
|
22
22
|
const popoverRef = useRef(null);
|
|
23
23
|
const [popoverPosition, setPopoverPosition] = useState({ x: 0, y: 0 });
|
|
24
24
|
const [visible, setVisible] = useState(open);
|
|
25
|
-
const popoverClassName = useComponentStyles("popover", {
|
|
25
|
+
const popoverClassName = useComponentStyles("popover", { root: true }, false);
|
|
26
26
|
useKeyboard("Escape", onRequestClose, { enabled: open });
|
|
27
27
|
useClickOutside(popoverRef, onRequestClose, { enabled: open });
|
|
28
28
|
useIsomorphicLayoutEffect(() => {
|
package/dist/index.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export { Inline, type InlineProps } from './components/layout/Inline/Inline.js';
|
|
|
23
23
|
export { Stack, type StackProps } from './components/layout/Stack/Stack.js';
|
|
24
24
|
export { Link, type LinkProps } from './components/navigation/Link/Link.js';
|
|
25
25
|
export { Dialog, type DialogProps, } from './components/overlay/Dialog/Dialog.js';
|
|
26
|
+
export { Drawer, type DrawerProps, } from './components/overlay/Drawer/Drawer.js';
|
|
26
27
|
export { Popover, type PopoverProps, } from './components/overlay/Popover/Popover.js';
|
|
27
28
|
export { Portal, type PortalProps, } from './components/overlay/Portal/Portal.js';
|
|
28
29
|
export { Tooltip, type TooltipProps, } from './components/overlay/Tooltip/Tooltip.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,6DAA6D,CAAC;AAErE,OAAO,EACL,OAAO,EACP,KAAK,YAAY,GAClB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,6CAA6C,CAAC;AAC7E,OAAO,EACL,QAAQ,EAC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C;AACpE,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,sCAAsC,CAAC;AAChF,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAE5E,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,EACL,MAAM,EACN,KAAK,WAAW,GACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,MAAM,EACN,KAAK,WAAW,GACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,EACP,KAAK,YAAY,GAClB,MAAM,yCAAyC,CAAC;AACjD,OAAO,EACL,MAAM,EACN,KAAK,WAAW,GACjB,MAAM,uCAAuC,CAAC;AAC/C,OAAO,EACL,OAAO,EACP,KAAK,YAAY,GAClB,MAAM,yCAAyC,CAAC;AAEjD,OAAO,EACL,cAAc,EACd,KAAK,mBAAmB,GACzB,MAAM,yDAAyD,CAAC;AAEjE,OAAO,EACL,OAAO,EACP,KAAK,YAAY,GAClB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,KAAK,SAAS,EAAE,MAAM,sCAAsC,CAAC;AAE5E,OAAO,EAAE,6BAA6B,EAAE,MAAM,6DAA6D,CAAC;AAC5G,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,kDAAkD,CAAC;AACtF,OAAO,EAAE,yBAAyB,EAAE,MAAM,gEAAgE,CAAC;AAC3G,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,EAAE,oBAAoB,EAAE,MAAM,sDAAsD,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -23,6 +23,7 @@ import { Inline } from "./components/layout/Inline/Inline.js";
|
|
|
23
23
|
import { Stack } from "./components/layout/Stack/Stack.js";
|
|
24
24
|
import { Link } from "./components/navigation/Link/Link.js";
|
|
25
25
|
import { Dialog } from "./components/overlay/Dialog/Dialog.js";
|
|
26
|
+
import { Drawer } from "./components/overlay/Drawer/Drawer.js";
|
|
26
27
|
import { Popover } from "./components/overlay/Popover/Popover.js";
|
|
27
28
|
import { Portal } from "./components/overlay/Portal/Portal.js";
|
|
28
29
|
import { Tooltip } from "./components/overlay/Tooltip/Tooltip.js";
|
|
@@ -43,6 +44,7 @@ export {
|
|
|
43
44
|
Checkbox,
|
|
44
45
|
Dialog,
|
|
45
46
|
Divider,
|
|
47
|
+
Drawer,
|
|
46
48
|
Heading,
|
|
47
49
|
IconMask,
|
|
48
50
|
Inline,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"testTheme.css.d.ts","sourceRoot":"","sources":["../../src/testUtils/testTheme.css.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"testTheme.css.d.ts","sourceRoot":"","sources":["../../src/testUtils/testTheme.css.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,YAAY,KA+FvB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blockle/blocks-react",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.4",
|
|
4
4
|
"description": "React hooks and components for Blockle",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
},
|
|
23
23
|
"repository": {
|
|
24
24
|
"type": "git",
|
|
25
|
-
"url": "git+
|
|
25
|
+
"url": "git+https://github.com/Blockle/blocks.git"
|
|
26
26
|
},
|
|
27
27
|
"author": "Niek Saarberg <n.saarberg@gmail.com>",
|
|
28
28
|
"license": "MIT",
|
|
@@ -31,13 +31,17 @@
|
|
|
31
31
|
},
|
|
32
32
|
"homepage": "https://github.com/Blockle/blocks#readme",
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@vanilla-extract/css": "^1.
|
|
34
|
+
"@vanilla-extract/css": "^1.18.0"
|
|
35
35
|
},
|
|
36
36
|
"peerDependencies": {
|
|
37
37
|
"@blockle/blocks-core": ">=1.2.x",
|
|
38
38
|
"@blockle/blocks-react-slot": ">=1.1.x",
|
|
39
|
-
"@vanilla-extract/css": "^1.
|
|
40
|
-
"react": "^19.2.
|
|
41
|
-
"react-dom": "^19.2.
|
|
39
|
+
"@vanilla-extract/css": "^1.18.0",
|
|
40
|
+
"react": "^19.2.3",
|
|
41
|
+
"react-dom": "^19.2.3"
|
|
42
|
+
},
|
|
43
|
+
"publishConfig": {
|
|
44
|
+
"access": "public",
|
|
45
|
+
"provenance": true
|
|
42
46
|
}
|
|
43
47
|
}
|