@blockle/blocks-react 2.0.1 → 2.2.0
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/components/accessibility/VisuallyHidden/VisuallyHidden.d.ts +1 -0
- package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
- package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.d.ts +1 -0
- package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.d.ts.map +1 -0
- package/dist/components/display/Divider/Divider.d.ts +1 -0
- package/dist/components/display/Divider/Divider.d.ts.map +1 -0
- package/dist/components/display/Divider/divider.css.d.ts +1 -0
- package/dist/components/display/Divider/divider.css.d.ts.map +1 -0
- package/dist/components/display/Divider/divider.css.js +2 -2
- package/dist/components/display/Icon/IconMask.css.d.ts +2 -0
- package/dist/components/display/Icon/IconMask.css.d.ts.map +1 -0
- package/dist/components/display/Icon/IconMask.css.js +13 -0
- package/dist/components/display/Icon/IconMask.d.ts +12 -0
- package/dist/components/display/Icon/IconMask.d.ts.map +1 -0
- package/dist/components/display/Icon/IconMask.js +32 -0
- package/dist/components/display/Icon/createIconMask.d.ts +7 -0
- package/dist/components/display/Icon/createIconMask.d.ts.map +1 -0
- package/dist/components/display/Icon/createIconMask.js +10 -0
- package/dist/components/feedback/Alert/Alert.css.d.ts +2 -0
- package/dist/components/feedback/Alert/Alert.css.d.ts.map +1 -0
- package/dist/components/feedback/Alert/Alert.css.js +15 -0
- package/dist/components/feedback/Alert/Alert.d.ts +11 -0
- package/dist/components/feedback/Alert/Alert.d.ts.map +1 -0
- package/dist/components/feedback/Alert/Alert.js +66 -0
- package/dist/components/feedback/Progress/Progress.d.ts +1 -0
- package/dist/components/feedback/Progress/Progress.d.ts.map +1 -0
- package/dist/components/feedback/Skeleton/Skeleton.css.d.ts +2 -0
- package/dist/components/feedback/Skeleton/Skeleton.css.d.ts.map +1 -0
- package/dist/components/feedback/Skeleton/Skeleton.css.js +23 -0
- package/dist/components/feedback/Skeleton/Skeleton.d.ts +10 -0
- package/dist/components/feedback/Skeleton/Skeleton.d.ts.map +1 -0
- package/dist/components/feedback/Skeleton/Skeleton.js +24 -0
- package/dist/components/feedback/Spinner/Spinner.d.ts +1 -0
- package/dist/components/feedback/Spinner/Spinner.d.ts.map +1 -0
- package/dist/components/feedback/Toast/Toast.css.d.ts +2 -0
- package/dist/components/feedback/Toast/Toast.css.d.ts.map +1 -0
- package/dist/components/feedback/Toast/Toast.css.js +17 -0
- package/dist/components/feedback/Toast/Toast.d.ts +8 -0
- package/dist/components/feedback/Toast/Toast.d.ts.map +1 -0
- package/dist/components/feedback/Toast/Toast.js +36 -0
- package/dist/components/feedback/Toast/ToastContext.d.ts +12 -0
- package/dist/components/feedback/Toast/ToastContext.d.ts.map +1 -0
- package/dist/components/feedback/Toast/ToastContext.js +5 -0
- package/dist/components/feedback/Toast/ToastProvider.d.ts +6 -0
- package/dist/components/feedback/Toast/ToastProvider.d.ts.map +1 -0
- package/dist/components/feedback/Toast/ToastProvider.js +85 -0
- package/dist/components/form/Button/Button.css.d.ts +1 -0
- package/dist/components/form/Button/Button.css.d.ts.map +1 -0
- package/dist/components/form/Button/Button.css.js +2 -2
- package/dist/components/form/Button/Button.d.ts +1 -0
- package/dist/components/form/Button/Button.d.ts.map +1 -0
- package/dist/components/form/Button/Button.js +2 -0
- package/dist/components/form/Checkbox/Checkbox.d.ts +1 -0
- package/dist/components/form/Checkbox/Checkbox.d.ts.map +1 -0
- package/dist/components/form/Checkbox/checkbox.css.d.ts +1 -0
- package/dist/components/form/Checkbox/checkbox.css.d.ts.map +1 -0
- package/dist/components/form/Checkbox/checkbox.css.js +3 -3
- package/dist/components/form/Label/Label.d.ts +1 -0
- package/dist/components/form/Label/Label.d.ts.map +1 -0
- package/dist/components/form/NumericInput/NumericInput.css.d.ts +3 -0
- package/dist/components/form/NumericInput/NumericInput.css.d.ts.map +1 -0
- package/dist/components/form/NumericInput/NumericInput.css.js +27 -0
- package/dist/components/form/NumericInput/NumericInput.d.ts +9 -0
- package/dist/components/form/NumericInput/NumericInput.d.ts.map +1 -0
- package/dist/components/form/NumericInput/NumericInput.js +44 -0
- package/dist/components/form/Radio/Radio.d.ts +1 -0
- package/dist/components/form/Radio/Radio.d.ts.map +1 -0
- package/dist/components/form/Radio/RadioGroup.d.ts +1 -0
- package/dist/components/form/Radio/RadioGroup.d.ts.map +1 -0
- package/dist/components/form/Radio/radio.css.d.ts +1 -0
- package/dist/components/form/Radio/radio.css.d.ts.map +1 -0
- package/dist/components/form/Radio/radio.css.js +3 -3
- package/dist/components/form/Select/Select.d.ts +1 -0
- package/dist/components/form/Select/Select.d.ts.map +1 -0
- package/dist/components/form/Select/select.css.d.ts +1 -0
- package/dist/components/form/Select/select.css.d.ts.map +1 -0
- package/dist/components/form/Select/select.css.js +4 -4
- package/dist/components/form/Slider/Slider.d.ts +1 -0
- package/dist/components/form/Slider/Slider.d.ts.map +1 -0
- package/dist/components/form/Slider/slider.css.d.ts +1 -0
- package/dist/components/form/Slider/slider.css.d.ts.map +1 -0
- package/dist/components/form/Slider/slider.css.js +6 -6
- package/dist/components/form/Slider/usePointerProgress.d.ts +1 -0
- package/dist/components/form/Slider/usePointerProgress.d.ts.map +1 -0
- package/dist/components/form/Switch/Switch.d.ts +1 -0
- package/dist/components/form/Switch/Switch.d.ts.map +1 -0
- package/dist/components/form/Switch/switch.css.d.ts +1 -0
- package/dist/components/form/Switch/switch.css.d.ts.map +1 -0
- package/dist/components/form/Switch/switch.css.js +3 -3
- package/dist/components/form/TextInput/TextInput.css.d.ts +2 -0
- package/dist/components/form/TextInput/TextInput.css.d.ts.map +1 -0
- package/dist/components/form/{Input/input.css.js → TextInput/TextInput.css.js} +3 -3
- package/dist/components/form/{Input/Input.d.ts → TextInput/TextInput.d.ts} +4 -2
- package/dist/components/form/TextInput/TextInput.d.ts.map +1 -0
- package/dist/components/form/{Input/Input.js → TextInput/TextInput.js} +9 -11
- package/dist/components/form/Textarea/Textarea.css.d.ts +2 -0
- package/dist/components/form/Textarea/Textarea.css.d.ts.map +1 -0
- package/dist/components/form/Textarea/Textarea.css.js +20 -0
- package/dist/components/form/Textarea/Textarea.d.ts +7 -0
- package/dist/components/form/Textarea/Textarea.d.ts.map +1 -0
- package/dist/components/form/Textarea/Textarea.js +30 -0
- package/dist/components/layout/Box/Box.d.ts +1 -0
- package/dist/components/layout/Box/Box.d.ts.map +1 -0
- package/dist/components/layout/Grid/Grid.d.ts +9 -0
- package/dist/components/layout/Grid/Grid.d.ts.map +1 -0
- package/dist/components/layout/Grid/GridItem.d.ts +6 -0
- package/dist/components/layout/Grid/GridItem.d.ts.map +1 -0
- package/dist/components/layout/Inline/Inline.d.ts +2 -1
- package/dist/components/layout/Inline/Inline.d.ts.map +1 -0
- package/dist/components/layout/Inline/Inline.js +2 -2
- package/dist/components/layout/Stack/Stack.d.ts +2 -1
- package/dist/components/layout/Stack/Stack.d.ts.map +1 -0
- package/dist/components/layout/Stack/Stack.js +2 -2
- package/dist/components/navigation/Link/Link.d.ts +1 -0
- package/dist/components/navigation/Link/Link.d.ts.map +1 -0
- package/dist/components/overlay/Dialog/Dialog.d.ts +1 -0
- package/dist/components/overlay/Dialog/Dialog.d.ts.map +1 -0
- package/dist/components/overlay/Dialog/dialog.css.d.ts +1 -0
- package/dist/components/overlay/Dialog/dialog.css.d.ts.map +1 -0
- package/dist/components/overlay/Dialog/dialog.css.js +2 -2
- package/dist/components/overlay/Dialog/dialogHelper.d.ts +1 -0
- package/dist/components/overlay/Dialog/dialogHelper.d.ts.map +1 -0
- package/dist/components/overlay/Popover/Popover.d.ts +1 -0
- package/dist/components/overlay/Popover/Popover.d.ts.map +1 -0
- package/dist/components/overlay/Popover/popover-utils.d.ts +1 -0
- package/dist/components/overlay/Popover/popover-utils.d.ts.map +1 -0
- package/dist/components/overlay/Portal/Portal.d.ts +1 -0
- package/dist/components/overlay/Portal/Portal.d.ts.map +1 -0
- package/dist/components/overlay/Tooltip/Tooltip.d.ts +1 -0
- package/dist/components/overlay/Tooltip/Tooltip.d.ts.map +1 -0
- package/dist/components/providers/BlocksProvider/BlocksProvider.d.ts +5 -0
- package/dist/components/providers/BlocksProvider/BlocksProvider.d.ts.map +1 -0
- package/dist/components/providers/BlocksProvider/context.d.ts +1 -0
- package/dist/components/providers/BlocksProvider/context.d.ts.map +1 -0
- package/dist/components/typography/Heading/Heading.d.ts +1 -0
- package/dist/components/typography/Heading/Heading.d.ts.map +1 -0
- package/dist/components/typography/Heading/heading.css.d.ts +1 -0
- package/dist/components/typography/Heading/heading.css.d.ts.map +1 -0
- package/dist/components/typography/Heading/heading.css.js +2 -2
- package/dist/components/typography/Text/Text.d.ts +1 -0
- package/dist/components/typography/Text/Text.d.ts.map +1 -0
- package/dist/components/typography/Text/text.css.d.ts +1 -0
- package/dist/components/typography/Text/text.css.d.ts.map +1 -0
- package/dist/components/typography/Text/text.css.js +2 -2
- package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -0
- package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
- package/dist/hooks/useComponentStyles/useComponentStyleDefaultProps.d.ts +1 -0
- package/dist/hooks/useComponentStyles/useComponentStyleDefaultProps.d.ts.map +1 -0
- package/dist/hooks/useComponentStyles/useComponentStyles.d.ts +1 -0
- package/dist/hooks/useComponentStyles/useComponentStyles.d.ts.map +1 -0
- package/dist/hooks/useControlledValue/useControlledValue.d.ts +1 -0
- package/dist/hooks/useControlledValue/useControlledValue.d.ts.map +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +1 -0
- package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts.map +1 -0
- package/dist/hooks/useKeyboard/useKeyboard.d.ts +1 -0
- package/dist/hooks/useKeyboard/useKeyboard.d.ts.map +1 -0
- package/dist/hooks/useLayer/useLayer.d.ts +1 -0
- package/dist/hooks/useLayer/useLayer.d.ts.map +1 -0
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.d.ts +1 -0
- package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.d.ts.map +1 -0
- package/dist/hooks/useRestoreFocus/useRestoreFocus.d.ts +1 -0
- package/dist/hooks/useRestoreFocus/useRestoreFocus.d.ts.map +1 -0
- package/dist/hooks/useTheme/useTheme.d.ts +1 -0
- package/dist/hooks/useTheme/useTheme.d.ts.map +1 -0
- package/dist/hooks/useVisibilityState/useVisibilityState.d.ts +1 -0
- package/dist/hooks/useVisibilityState/useVisibilityState.d.ts.map +1 -0
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +20 -2
- package/dist/testUtils/testTheme.css.d.ts +1 -0
- package/dist/testUtils/testTheme.css.d.ts.map +1 -0
- package/dist/testUtils/testUtils.d.ts +1 -0
- package/dist/testUtils/testUtils.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/components/form/Input/input.css.d.ts +0 -1
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import {
|
|
2
|
+
import { layers } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/form/Checkbox/checkbox.css.ts", "@blockle/blocks-react");
|
|
5
5
|
const container = style({
|
|
6
6
|
"@layer": {
|
|
7
|
-
[
|
|
7
|
+
[layers.molecule]: {
|
|
8
8
|
position: "relative",
|
|
9
9
|
cursor: "pointer",
|
|
10
10
|
overflow: "hidden"
|
|
@@ -16,7 +16,7 @@ const input = style({
|
|
|
16
16
|
inset: 0,
|
|
17
17
|
opacity: 0,
|
|
18
18
|
"@layer": {
|
|
19
|
-
[
|
|
19
|
+
[layers.molecule]: {
|
|
20
20
|
all: "unset"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Label/Label.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,KAAK,EAEV,KAAK,eAAe,EAEpB,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAI9B,KAAK,UAAU,GAAG,eAAe,CAAC,OAAO,CAAC,CAAC;AAE3C,MAAM,MAAM,UAAU,GAAG;IACvB;;;;;OAKG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;IACtC,MAAM,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;CAC1B,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AAEvC,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAuBtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumericInput.css.d.ts","sourceRoot":"","sources":["../../../../src/components/form/NumericInput/NumericInput.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,qBAAqB,QAAY,CAAC;AAE/C,eAAO,MAAM,YAAY,QAiBvB,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
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/form/NumericInput/NumericInput.css.ts", "@blockle/blocks-react");
|
|
5
|
+
style({});
|
|
6
|
+
const numericInput = style({
|
|
7
|
+
"@layer": {
|
|
8
|
+
[layers.molecule]: {
|
|
9
|
+
// Hide native number input controls
|
|
10
|
+
MozAppearance: "textfield",
|
|
11
|
+
selectors: {
|
|
12
|
+
"&::-webkit-inner-spin-button": {
|
|
13
|
+
WebkitAppearance: "none",
|
|
14
|
+
margin: 0
|
|
15
|
+
},
|
|
16
|
+
"&::-webkit-outer-spin-button": {
|
|
17
|
+
WebkitAppearance: "none",
|
|
18
|
+
margin: 0
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
endFileScope();
|
|
25
|
+
export {
|
|
26
|
+
numericInput
|
|
27
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TextInputProps } from '../TextInput/TextInput.js';
|
|
2
|
+
export type NumericInputProps = {
|
|
3
|
+
value: number | string;
|
|
4
|
+
min?: number;
|
|
5
|
+
max?: number;
|
|
6
|
+
step?: number;
|
|
7
|
+
} & TextInputProps;
|
|
8
|
+
export declare const NumericInput: React.FC<NumericInputProps>;
|
|
9
|
+
//# sourceMappingURL=NumericInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NumericInput.d.ts","sourceRoot":"","sources":["../../../../src/components/form/NumericInput/NumericInput.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAG3E,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,GAAG,cAAc,CAAC;AAEnB,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CA2CpD,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { composeRefs } from "@blockle/blocks-core";
|
|
3
|
+
import { useRef, useCallback } from "react";
|
|
4
|
+
import { Button } from "../Button/Button.js";
|
|
5
|
+
import { TextInput } from "../TextInput/TextInput.js";
|
|
6
|
+
import { numericInput } from "./NumericInput.css.js";
|
|
7
|
+
const NumericInput = (props) => {
|
|
8
|
+
const inputRef = useRef(null);
|
|
9
|
+
const onDecrement = useCallback((event) => {
|
|
10
|
+
const size = event.shiftKey ? 10 : 1;
|
|
11
|
+
inputRef.current?.stepDown(size);
|
|
12
|
+
}, []);
|
|
13
|
+
const onIncrement = useCallback((event) => {
|
|
14
|
+
const stepSize = event.shiftKey ? 10 : 1;
|
|
15
|
+
inputRef.current?.stepUp(stepSize);
|
|
16
|
+
}, []);
|
|
17
|
+
const onKeyDown = useCallback((event) => {
|
|
18
|
+
if (!event.shiftKey) {
|
|
19
|
+
return;
|
|
20
|
+
}
|
|
21
|
+
if (event.key === "ArrowUp") {
|
|
22
|
+
event.preventDefault();
|
|
23
|
+
inputRef.current?.stepUp(10);
|
|
24
|
+
} else if (event.key === "ArrowDown") {
|
|
25
|
+
event.preventDefault();
|
|
26
|
+
inputRef.current?.stepDown(10);
|
|
27
|
+
}
|
|
28
|
+
}, []);
|
|
29
|
+
return /* @__PURE__ */ jsx(
|
|
30
|
+
TextInput,
|
|
31
|
+
{
|
|
32
|
+
ref: composeRefs(props.ref, inputRef),
|
|
33
|
+
inputClassName: numericInput,
|
|
34
|
+
type: "number",
|
|
35
|
+
startSlot: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "small", onClick: onDecrement, children: "-" }),
|
|
36
|
+
endSlot: /* @__PURE__ */ jsx(Button, { variant: "ghost", size: "small", onClick: onIncrement, children: "+" }),
|
|
37
|
+
onKeyDown,
|
|
38
|
+
...props
|
|
39
|
+
}
|
|
40
|
+
);
|
|
41
|
+
};
|
|
42
|
+
export {
|
|
43
|
+
NumericInput
|
|
44
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Radio.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Radio/Radio.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAOzE,MAAM,MAAM,UAAU,GAAG;IACvB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC,KAAK,EAAE,MAAM,CAAC;CACf,GAAG,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;AAEvC,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAuCtC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RadioGroup.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Radio/RadioGroup.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,eAAe,GAAG;IAC5B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,CAAC;AAEF,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAUhD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"radio.css.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Radio/radio.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAQpB,CAAC;AAEH,eAAO,MAAM,KAAK,QAShB,CAAC;AAEH,eAAO,MAAM,IAAI,QAEf,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import {
|
|
2
|
+
import { layers } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/form/Radio/radio.css.ts", "@blockle/blocks-react");
|
|
5
5
|
const container = style({
|
|
6
6
|
"@layer": {
|
|
7
|
-
[
|
|
7
|
+
[layers.molecule]: {
|
|
8
8
|
position: "relative",
|
|
9
9
|
cursor: "pointer",
|
|
10
10
|
overflow: "hidden"
|
|
@@ -16,7 +16,7 @@ const input = style({
|
|
|
16
16
|
inset: 0,
|
|
17
17
|
opacity: 0,
|
|
18
18
|
"@layer": {
|
|
19
|
-
[
|
|
19
|
+
[layers.molecule]: {
|
|
20
20
|
all: "unset"
|
|
21
21
|
}
|
|
22
22
|
}
|
|
@@ -0,0 +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,CAsCxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select.css.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Select/select.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,OAAO,QAMlB,CAAC;AAEH,eAAO,MAAM,MAAM,QAOjB,CAAC;AAEH,eAAO,MAAM,IAAI,QAYf,CAAC"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import {
|
|
2
|
+
import { layers } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/form/Select/select.css.ts", "@blockle/blocks-react");
|
|
5
5
|
const wrapper = style({
|
|
6
6
|
"@layer": {
|
|
7
|
-
[
|
|
7
|
+
[layers.molecule]: {
|
|
8
8
|
position: "relative"
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
const select = style({
|
|
13
13
|
"@layer": {
|
|
14
|
-
[
|
|
14
|
+
[layers.molecule]: {
|
|
15
15
|
appearance: "none",
|
|
16
16
|
inlineSize: "100%"
|
|
17
17
|
}
|
|
@@ -19,7 +19,7 @@ const select = style({
|
|
|
19
19
|
});
|
|
20
20
|
const icon = style({
|
|
21
21
|
"@layer": {
|
|
22
|
-
[
|
|
22
|
+
[layers.molecule]: {
|
|
23
23
|
position: "absolute",
|
|
24
24
|
right: 0,
|
|
25
25
|
top: 0,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Slider/Slider.tsx"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,eAAe,EAGrB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAsB/B,KAAK,WAAW,GAAG,eAAe,CAAC,QAAQ,CAAC,CAAC;AAE7C,MAAM,MAAM,WAAW,GAAG;IACxB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACnC,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,IAAI,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC;IACtC,WAAW,EAAE,WAAW,CAAC,UAAU,CAAC,CAAC,aAAa,CAAC,CAAC;IACpD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAsIxC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slider.css.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Slider/slider.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAOpB,CAAC;AAEH,eAAO,MAAM,iBAAiB,QAM5B,CAAC;AAEH,eAAO,MAAM,KAAK,QAehB,CAAC;AAEH,eAAO,MAAM,WAAW,QAatB,CAAC;AAEH,eAAO,MAAM,KAAK,QAiBhB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import {
|
|
2
|
+
import { layers } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/form/Slider/slider.css.ts", "@blockle/blocks-react");
|
|
5
5
|
const container = style({
|
|
6
6
|
"@layer": {
|
|
7
|
-
[
|
|
7
|
+
[layers.molecule]: {
|
|
8
8
|
position: "relative",
|
|
9
9
|
writingMode: "horizontal-tb"
|
|
10
10
|
}
|
|
@@ -12,14 +12,14 @@ const container = style({
|
|
|
12
12
|
});
|
|
13
13
|
const containerVertical = style({
|
|
14
14
|
"@layer": {
|
|
15
|
-
[
|
|
15
|
+
[layers.molecule]: {
|
|
16
16
|
writingMode: "vertical-lr"
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
const track = style({
|
|
21
21
|
"@layer": {
|
|
22
|
-
[
|
|
22
|
+
[layers.molecule]: {
|
|
23
23
|
cursor: "pointer",
|
|
24
24
|
position: "absolute",
|
|
25
25
|
inlineSize: "100%",
|
|
@@ -35,7 +35,7 @@ const track = style({
|
|
|
35
35
|
});
|
|
36
36
|
const filledTrack = style({
|
|
37
37
|
"@layer": {
|
|
38
|
-
[
|
|
38
|
+
[layers.molecule]: {
|
|
39
39
|
position: "absolute",
|
|
40
40
|
blockSize: "100%",
|
|
41
41
|
borderRadius: "inherit",
|
|
@@ -49,7 +49,7 @@ const filledTrack = style({
|
|
|
49
49
|
});
|
|
50
50
|
const thumb = style({
|
|
51
51
|
"@layer": {
|
|
52
|
-
[
|
|
52
|
+
[layers.molecule]: {
|
|
53
53
|
cursor: "pointer",
|
|
54
54
|
position: "absolute",
|
|
55
55
|
blockSize: "100%",
|
|
@@ -9,3 +9,4 @@ export declare function getProgress(event: PointerEvent, rect: DOMRect): [x: num
|
|
|
9
9
|
*/
|
|
10
10
|
export declare function usePointerProgress<T extends React.RefObject<HTMLElement | null>>({ container, orientation, onChange }: PointerProgressOptions<T>): void;
|
|
11
11
|
export {};
|
|
12
|
+
//# sourceMappingURL=usePointerProgress.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"usePointerProgress.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Slider/usePointerProgress.ts"],"names":[],"mappings":"AAEA,KAAK,sBAAsB,CAAC,CAAC,SAAS,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,IAAI;IAC3E,SAAS,EAAE,CAAC,CAAC;IACb,WAAW,EAAE,YAAY,GAAG,UAAU,CAAC;IACvC,QAAQ,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,wBAAgB,WAAW,CACzB,KAAK,EAAE,YAAY,EACnB,IAAI,EAAE,OAAO,GACZ,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,CAAC,CAQxB;AAED;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,KAAK,CAAC,SAAS,CAAC,WAAW,GAAG,IAAI,CAAC,EAC7C,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,EAAE,sBAAsB,CAAC,CAAC,CAAC,GAAG,IAAI,CA6CvE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Switch.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Switch/Switch.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAMzE,MAAM,MAAM,WAAW,GAAG;IACxB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACpC,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;CACnC,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC,CAAC;AAEzD,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAwExC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switch.css.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Switch/switch.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,SAAS,QAQpB,CAAC;AAEH,eAAO,MAAM,KAAK,QAQhB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import {
|
|
2
|
+
import { layers } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
4
|
setFileScope("src/components/form/Switch/switch.css.ts", "@blockle/blocks-react");
|
|
5
5
|
const container = style({
|
|
6
6
|
"@layer": {
|
|
7
|
-
[
|
|
7
|
+
[layers.molecule]: {
|
|
8
8
|
cursor: "pointer",
|
|
9
9
|
userSelect: "none",
|
|
10
10
|
position: "relative"
|
|
@@ -13,7 +13,7 @@ const container = style({
|
|
|
13
13
|
});
|
|
14
14
|
const input = style({
|
|
15
15
|
"@layer": {
|
|
16
|
-
[
|
|
16
|
+
[layers.molecule]: {
|
|
17
17
|
opacity: 0,
|
|
18
18
|
maxBlockSize: 0,
|
|
19
19
|
maxInlineSize: 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.css.d.ts","sourceRoot":"","sources":["../../../../src/components/form/TextInput/TextInput.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,KAAK,QAYhB,CAAC"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { setFileScope, endFileScope } from "@vanilla-extract/css/fileScope";
|
|
2
|
-
import {
|
|
2
|
+
import { layers } from "@blockle/blocks-core";
|
|
3
3
|
import { style } from "@vanilla-extract/css";
|
|
4
|
-
setFileScope("src/components/form/
|
|
4
|
+
setFileScope("src/components/form/TextInput/TextInput.css.ts", "@blockle/blocks-react");
|
|
5
5
|
const input = style({
|
|
6
6
|
"@layer": {
|
|
7
|
-
[
|
|
7
|
+
[layers.molecule]: {
|
|
8
8
|
appearance: "none",
|
|
9
9
|
width: "100%",
|
|
10
10
|
selectors: {
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { HTMLElementProps, OptionalLiteral } from '@blockle/blocks-core';
|
|
2
|
-
export type
|
|
2
|
+
export type TextInputProps = {
|
|
3
3
|
className?: string;
|
|
4
|
+
inputClassName?: string;
|
|
4
5
|
endSlot?: React.ReactNode;
|
|
5
6
|
name: string;
|
|
6
7
|
ref?: React.Ref<HTMLInputElement>;
|
|
7
8
|
startSlot?: React.ReactNode;
|
|
8
9
|
type?: OptionalLiteral<'email' | 'number' | 'password' | 'tel' | 'text' | 'url'>;
|
|
9
10
|
} & Omit<HTMLElementProps<HTMLInputElement>, 'type'>;
|
|
10
|
-
export declare const
|
|
11
|
+
export declare const TextInput: React.FC<TextInputProps>;
|
|
12
|
+
//# sourceMappingURL=TextInput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TextInput.d.ts","sourceRoot":"","sources":["../../../../src/components/form/TextInput/TextInput.tsx"],"names":[],"mappings":"AAEA,OAAO,EAEL,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACrB,MAAM,sBAAsB,CAAC;AAM9B,MAAM,MAAM,cAAc,GAAG;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC;IAClC,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,IAAI,CAAC,EAAE,eAAe,CACpB,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,KAAK,GAAG,MAAM,GAAG,KAAK,CACzD,CAAC;CAEH,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC,CAAC;AAErD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CA0C9C,CAAC"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { classnames } from "@blockle/blocks-core";
|
|
4
|
-
import { useId } from "react";
|
|
5
4
|
import { useComponentStyles } from "../../../hooks/useComponentStyles/useComponentStyles.js";
|
|
6
5
|
import { Box } from "../../layout/Box/Box.js";
|
|
7
|
-
import { input } from "./
|
|
8
|
-
const
|
|
6
|
+
import { input } from "./TextInput.css.js";
|
|
7
|
+
const TextInput = ({
|
|
9
8
|
className,
|
|
9
|
+
inputClassName,
|
|
10
10
|
endSlot,
|
|
11
11
|
name,
|
|
12
12
|
placeholder,
|
|
@@ -15,30 +15,28 @@ const Input = ({
|
|
|
15
15
|
type = "text",
|
|
16
16
|
...restProps
|
|
17
17
|
}) => {
|
|
18
|
-
const
|
|
19
|
-
|
|
20
|
-
"input",
|
|
18
|
+
const containerStyles = useComponentStyles(
|
|
19
|
+
"textInput",
|
|
21
20
|
{ container: true },
|
|
22
21
|
false
|
|
23
22
|
);
|
|
24
|
-
const
|
|
23
|
+
const inputStyles = useComponentStyles("textInput", { input: true });
|
|
25
24
|
return /* @__PURE__ */ jsx(Box, { children: /* @__PURE__ */ jsxs(
|
|
26
25
|
Box,
|
|
27
26
|
{
|
|
28
27
|
display: "flex",
|
|
29
28
|
alignItems: "center",
|
|
30
|
-
className: classnames(
|
|
29
|
+
className: classnames(containerStyles, className),
|
|
31
30
|
children: [
|
|
32
31
|
startSlot,
|
|
33
32
|
/* @__PURE__ */ jsx(
|
|
34
33
|
"input",
|
|
35
34
|
{
|
|
36
|
-
id,
|
|
37
35
|
ref,
|
|
38
36
|
name,
|
|
39
37
|
type,
|
|
40
38
|
placeholder,
|
|
41
|
-
className: classnames(input, inputClassName),
|
|
39
|
+
className: classnames(input, inputStyles, inputClassName),
|
|
42
40
|
...restProps
|
|
43
41
|
}
|
|
44
42
|
),
|
|
@@ -48,5 +46,5 @@ const Input = ({
|
|
|
48
46
|
) });
|
|
49
47
|
};
|
|
50
48
|
export {
|
|
51
|
-
|
|
49
|
+
TextInput
|
|
52
50
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.css.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Textarea/Textarea.css.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,QAWnB,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
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/form/Textarea/Textarea.css.ts", "@blockle/blocks-react");
|
|
5
|
+
const textarea = style({
|
|
6
|
+
"@layer": {
|
|
7
|
+
[layers.molecule]: {
|
|
8
|
+
width: "100%",
|
|
9
|
+
minHeight: "inherit",
|
|
10
|
+
resize: "none",
|
|
11
|
+
display: "block",
|
|
12
|
+
// @ts-expect-error Property is not yet supported in all browsers
|
|
13
|
+
fieldSizing: "content"
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
endFileScope();
|
|
18
|
+
export {
|
|
19
|
+
textarea
|
|
20
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { HTMLElementProps } from '@blockle/blocks-core';
|
|
2
|
+
export type TextareaProps = {
|
|
3
|
+
value: string;
|
|
4
|
+
ref: React.RefObject<HTMLTextAreaElement>;
|
|
5
|
+
} & HTMLElementProps<HTMLTextAreaElement>;
|
|
6
|
+
export declare const Textarea: React.FC<TextareaProps>;
|
|
7
|
+
//# sourceMappingURL=Textarea.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Textarea.d.ts","sourceRoot":"","sources":["../../../../src/components/form/Textarea/Textarea.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAc,KAAK,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAMzE,MAAM,MAAM,aAAa,GAAG;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;CAE3C,GAAG,gBAAgB,CAAC,mBAAmB,CAAC,CAAC;AAE1C,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAsB5C,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { classnames } from "@blockle/blocks-core";
|
|
4
|
+
import { useComponentStyles } from "../../../hooks/useComponentStyles/useComponentStyles.js";
|
|
5
|
+
import { Box } from "../../layout/Box/Box.js";
|
|
6
|
+
import { textarea } from "./Textarea.css.js";
|
|
7
|
+
const Textarea = ({
|
|
8
|
+
ref,
|
|
9
|
+
value,
|
|
10
|
+
...restProps
|
|
11
|
+
}) => {
|
|
12
|
+
const containerClassName = useComponentStyles(
|
|
13
|
+
"textarea",
|
|
14
|
+
{ container: true },
|
|
15
|
+
false
|
|
16
|
+
);
|
|
17
|
+
const inputClassName = useComponentStyles("textarea", { input: true });
|
|
18
|
+
return /* @__PURE__ */ jsx(Box, { className: containerClassName, children: /* @__PURE__ */ jsx(
|
|
19
|
+
"textarea",
|
|
20
|
+
{
|
|
21
|
+
ref,
|
|
22
|
+
value,
|
|
23
|
+
className: classnames(textarea, inputClassName),
|
|
24
|
+
...restProps
|
|
25
|
+
}
|
|
26
|
+
) });
|
|
27
|
+
};
|
|
28
|
+
export {
|
|
29
|
+
Textarea
|
|
30
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Box.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Box/Box.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,KAAK,EAIV,KAAK,gBAAgB,EACtB,MAAM,sBAAsB,CAAC;AAE9B,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,cAAc,CAAC,CAAC;IAChC,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,GAAG,KAAK,GACP,gBAAgB,CAAC,cAAc,CAAC,CAAC;AAInC,eAAO,MAAM,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,QAAQ,CAmBlC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Atoms } from '@blockle/blocks-core';
|
|
2
|
+
export type GridProps = {
|
|
3
|
+
gap?: Atoms['gap'];
|
|
4
|
+
rowGap?: Atoms['rowGap'];
|
|
5
|
+
columnGap?: Atoms['columnGap'];
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
};
|
|
8
|
+
export declare const Grid: React.FC<GridProps>;
|
|
9
|
+
//# sourceMappingURL=Grid.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Grid.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Grid/Grid.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAIlD,MAAM,MAAM,SAAS,GAAG;IACtB,GAAG,CAAC,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IACnB,MAAM,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACzB,SAAS,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC,CAAC;IAC/B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,IAAI,EAAE,KAAK,CAAC,EAAE,CAAC,SAAS,CAiBpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GridItem.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Grid/GridItem.tsx"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAE5C,CAAC"}
|
|
@@ -6,7 +6,8 @@ export type InlineProps = {
|
|
|
6
6
|
children: React.ReactNode;
|
|
7
7
|
className?: string;
|
|
8
8
|
display?: Atoms['display'];
|
|
9
|
-
|
|
9
|
+
gap: Atoms['gap'];
|
|
10
10
|
style?: React.CSSProperties;
|
|
11
11
|
} & MarginAtoms & PaddingAtoms;
|
|
12
12
|
export declare const Inline: React.FC<InlineProps>;
|
|
13
|
+
//# sourceMappingURL=Inline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Inline.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Inline/Inline.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,KAAK,EAEV,KAAK,iBAAiB,EAEtB,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAI9B,MAAM,MAAM,WAAW,GAAG;IACxB,MAAM,CAAC,EAAE,MAAM,iBAAiB,CAAC;IACjC,MAAM,CAAC,EAAE,MAAM,aAAa,CAAC;IAC7B,GAAG,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC3B,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B,GAAG,WAAW,GACb,YAAY,CAAC;AAEf,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuBxC,CAAC"}
|
|
@@ -7,7 +7,7 @@ const Inline = ({
|
|
|
7
7
|
tag: Tag = "div",
|
|
8
8
|
children,
|
|
9
9
|
display = "flex",
|
|
10
|
-
|
|
10
|
+
gap,
|
|
11
11
|
...props
|
|
12
12
|
}) => {
|
|
13
13
|
return /* @__PURE__ */ jsx(
|
|
@@ -15,7 +15,7 @@ const Inline = ({
|
|
|
15
15
|
{
|
|
16
16
|
asChild: true,
|
|
17
17
|
display,
|
|
18
|
-
gap
|
|
18
|
+
gap,
|
|
19
19
|
flexDirection: "row",
|
|
20
20
|
justifyContent: alignX ? justifyContentMap[alignX] : void 0,
|
|
21
21
|
alignItems: alignY ? alignItemsMap[alignY] : void 0,
|
|
@@ -5,7 +5,7 @@ export type StackProps = {
|
|
|
5
5
|
children: React.ReactNode;
|
|
6
6
|
className?: string;
|
|
7
7
|
display?: Atoms['display'];
|
|
8
|
-
|
|
8
|
+
gap: Atoms['gap'];
|
|
9
9
|
style?: React.CSSProperties;
|
|
10
10
|
role?: React.AriaRole;
|
|
11
11
|
/**
|
|
@@ -14,3 +14,4 @@ export type StackProps = {
|
|
|
14
14
|
start?: number;
|
|
15
15
|
} & MarginAtoms & PaddingAtoms;
|
|
16
16
|
export declare const Stack: React.FC<StackProps>;
|
|
17
|
+
//# sourceMappingURL=Stack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Stack.d.ts","sourceRoot":"","sources":["../../../../src/components/layout/Stack/Stack.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,KAAK,EAEV,KAAK,WAAW,EAChB,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAI9B,MAAM,MAAM,UAAU,GAAG;IACvB,MAAM,CAAC,EAAE,MAAM,aAAa,CAAC;IAC7B,GAAG,CAAC,EAAE,KAAK,GAAG,SAAS,GAAG,IAAI,GAAG,IAAI,CAAC;IACtC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IAC3B,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAClB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IAC5B,IAAI,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,WAAW,GACb,YAAY,CAAC;AAEf,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAwBtC,CAAC"}
|