@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.
Files changed (175) hide show
  1. package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.d.ts +1 -0
  2. package/dist/components/accessibility/VisuallyHidden/VisuallyHidden.d.ts.map +1 -0
  3. package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.d.ts +1 -0
  4. package/dist/components/accessibility/VisuallyHidden/visually-hidden.css.d.ts.map +1 -0
  5. package/dist/components/display/Divider/Divider.d.ts +1 -0
  6. package/dist/components/display/Divider/Divider.d.ts.map +1 -0
  7. package/dist/components/display/Divider/divider.css.d.ts +1 -0
  8. package/dist/components/display/Divider/divider.css.d.ts.map +1 -0
  9. package/dist/components/display/Divider/divider.css.js +2 -2
  10. package/dist/components/display/Icon/IconMask.css.d.ts +2 -0
  11. package/dist/components/display/Icon/IconMask.css.d.ts.map +1 -0
  12. package/dist/components/display/Icon/IconMask.css.js +13 -0
  13. package/dist/components/display/Icon/IconMask.d.ts +12 -0
  14. package/dist/components/display/Icon/IconMask.d.ts.map +1 -0
  15. package/dist/components/display/Icon/IconMask.js +32 -0
  16. package/dist/components/display/Icon/createIconMask.d.ts +7 -0
  17. package/dist/components/display/Icon/createIconMask.d.ts.map +1 -0
  18. package/dist/components/display/Icon/createIconMask.js +10 -0
  19. package/dist/components/feedback/Alert/Alert.css.d.ts +2 -0
  20. package/dist/components/feedback/Alert/Alert.css.d.ts.map +1 -0
  21. package/dist/components/feedback/Alert/Alert.css.js +15 -0
  22. package/dist/components/feedback/Alert/Alert.d.ts +11 -0
  23. package/dist/components/feedback/Alert/Alert.d.ts.map +1 -0
  24. package/dist/components/feedback/Alert/Alert.js +66 -0
  25. package/dist/components/feedback/Progress/Progress.d.ts +1 -0
  26. package/dist/components/feedback/Progress/Progress.d.ts.map +1 -0
  27. package/dist/components/feedback/Skeleton/Skeleton.css.d.ts +2 -0
  28. package/dist/components/feedback/Skeleton/Skeleton.css.d.ts.map +1 -0
  29. package/dist/components/feedback/Skeleton/Skeleton.css.js +23 -0
  30. package/dist/components/feedback/Skeleton/Skeleton.d.ts +10 -0
  31. package/dist/components/feedback/Skeleton/Skeleton.d.ts.map +1 -0
  32. package/dist/components/feedback/Skeleton/Skeleton.js +24 -0
  33. package/dist/components/feedback/Spinner/Spinner.d.ts +1 -0
  34. package/dist/components/feedback/Spinner/Spinner.d.ts.map +1 -0
  35. package/dist/components/feedback/Toast/Toast.css.d.ts +2 -0
  36. package/dist/components/feedback/Toast/Toast.css.d.ts.map +1 -0
  37. package/dist/components/feedback/Toast/Toast.css.js +17 -0
  38. package/dist/components/feedback/Toast/Toast.d.ts +8 -0
  39. package/dist/components/feedback/Toast/Toast.d.ts.map +1 -0
  40. package/dist/components/feedback/Toast/Toast.js +36 -0
  41. package/dist/components/feedback/Toast/ToastContext.d.ts +12 -0
  42. package/dist/components/feedback/Toast/ToastContext.d.ts.map +1 -0
  43. package/dist/components/feedback/Toast/ToastContext.js +5 -0
  44. package/dist/components/feedback/Toast/ToastProvider.d.ts +6 -0
  45. package/dist/components/feedback/Toast/ToastProvider.d.ts.map +1 -0
  46. package/dist/components/feedback/Toast/ToastProvider.js +85 -0
  47. package/dist/components/form/Button/Button.css.d.ts +1 -0
  48. package/dist/components/form/Button/Button.css.d.ts.map +1 -0
  49. package/dist/components/form/Button/Button.css.js +2 -2
  50. package/dist/components/form/Button/Button.d.ts +1 -0
  51. package/dist/components/form/Button/Button.d.ts.map +1 -0
  52. package/dist/components/form/Button/Button.js +2 -0
  53. package/dist/components/form/Checkbox/Checkbox.d.ts +1 -0
  54. package/dist/components/form/Checkbox/Checkbox.d.ts.map +1 -0
  55. package/dist/components/form/Checkbox/checkbox.css.d.ts +1 -0
  56. package/dist/components/form/Checkbox/checkbox.css.d.ts.map +1 -0
  57. package/dist/components/form/Checkbox/checkbox.css.js +3 -3
  58. package/dist/components/form/Label/Label.d.ts +1 -0
  59. package/dist/components/form/Label/Label.d.ts.map +1 -0
  60. package/dist/components/form/NumericInput/NumericInput.css.d.ts +3 -0
  61. package/dist/components/form/NumericInput/NumericInput.css.d.ts.map +1 -0
  62. package/dist/components/form/NumericInput/NumericInput.css.js +27 -0
  63. package/dist/components/form/NumericInput/NumericInput.d.ts +9 -0
  64. package/dist/components/form/NumericInput/NumericInput.d.ts.map +1 -0
  65. package/dist/components/form/NumericInput/NumericInput.js +44 -0
  66. package/dist/components/form/Radio/Radio.d.ts +1 -0
  67. package/dist/components/form/Radio/Radio.d.ts.map +1 -0
  68. package/dist/components/form/Radio/RadioGroup.d.ts +1 -0
  69. package/dist/components/form/Radio/RadioGroup.d.ts.map +1 -0
  70. package/dist/components/form/Radio/radio.css.d.ts +1 -0
  71. package/dist/components/form/Radio/radio.css.d.ts.map +1 -0
  72. package/dist/components/form/Radio/radio.css.js +3 -3
  73. package/dist/components/form/Select/Select.d.ts +1 -0
  74. package/dist/components/form/Select/Select.d.ts.map +1 -0
  75. package/dist/components/form/Select/select.css.d.ts +1 -0
  76. package/dist/components/form/Select/select.css.d.ts.map +1 -0
  77. package/dist/components/form/Select/select.css.js +4 -4
  78. package/dist/components/form/Slider/Slider.d.ts +1 -0
  79. package/dist/components/form/Slider/Slider.d.ts.map +1 -0
  80. package/dist/components/form/Slider/slider.css.d.ts +1 -0
  81. package/dist/components/form/Slider/slider.css.d.ts.map +1 -0
  82. package/dist/components/form/Slider/slider.css.js +6 -6
  83. package/dist/components/form/Slider/usePointerProgress.d.ts +1 -0
  84. package/dist/components/form/Slider/usePointerProgress.d.ts.map +1 -0
  85. package/dist/components/form/Switch/Switch.d.ts +1 -0
  86. package/dist/components/form/Switch/Switch.d.ts.map +1 -0
  87. package/dist/components/form/Switch/switch.css.d.ts +1 -0
  88. package/dist/components/form/Switch/switch.css.d.ts.map +1 -0
  89. package/dist/components/form/Switch/switch.css.js +3 -3
  90. package/dist/components/form/TextInput/TextInput.css.d.ts +2 -0
  91. package/dist/components/form/TextInput/TextInput.css.d.ts.map +1 -0
  92. package/dist/components/form/{Input/input.css.js → TextInput/TextInput.css.js} +3 -3
  93. package/dist/components/form/{Input/Input.d.ts → TextInput/TextInput.d.ts} +4 -2
  94. package/dist/components/form/TextInput/TextInput.d.ts.map +1 -0
  95. package/dist/components/form/{Input/Input.js → TextInput/TextInput.js} +9 -11
  96. package/dist/components/form/Textarea/Textarea.css.d.ts +2 -0
  97. package/dist/components/form/Textarea/Textarea.css.d.ts.map +1 -0
  98. package/dist/components/form/Textarea/Textarea.css.js +20 -0
  99. package/dist/components/form/Textarea/Textarea.d.ts +7 -0
  100. package/dist/components/form/Textarea/Textarea.d.ts.map +1 -0
  101. package/dist/components/form/Textarea/Textarea.js +30 -0
  102. package/dist/components/layout/Box/Box.d.ts +1 -0
  103. package/dist/components/layout/Box/Box.d.ts.map +1 -0
  104. package/dist/components/layout/Grid/Grid.d.ts +9 -0
  105. package/dist/components/layout/Grid/Grid.d.ts.map +1 -0
  106. package/dist/components/layout/Grid/GridItem.d.ts +6 -0
  107. package/dist/components/layout/Grid/GridItem.d.ts.map +1 -0
  108. package/dist/components/layout/Inline/Inline.d.ts +2 -1
  109. package/dist/components/layout/Inline/Inline.d.ts.map +1 -0
  110. package/dist/components/layout/Inline/Inline.js +2 -2
  111. package/dist/components/layout/Stack/Stack.d.ts +2 -1
  112. package/dist/components/layout/Stack/Stack.d.ts.map +1 -0
  113. package/dist/components/layout/Stack/Stack.js +2 -2
  114. package/dist/components/navigation/Link/Link.d.ts +1 -0
  115. package/dist/components/navigation/Link/Link.d.ts.map +1 -0
  116. package/dist/components/overlay/Dialog/Dialog.d.ts +1 -0
  117. package/dist/components/overlay/Dialog/Dialog.d.ts.map +1 -0
  118. package/dist/components/overlay/Dialog/dialog.css.d.ts +1 -0
  119. package/dist/components/overlay/Dialog/dialog.css.d.ts.map +1 -0
  120. package/dist/components/overlay/Dialog/dialog.css.js +2 -2
  121. package/dist/components/overlay/Dialog/dialogHelper.d.ts +1 -0
  122. package/dist/components/overlay/Dialog/dialogHelper.d.ts.map +1 -0
  123. package/dist/components/overlay/Popover/Popover.d.ts +1 -0
  124. package/dist/components/overlay/Popover/Popover.d.ts.map +1 -0
  125. package/dist/components/overlay/Popover/popover-utils.d.ts +1 -0
  126. package/dist/components/overlay/Popover/popover-utils.d.ts.map +1 -0
  127. package/dist/components/overlay/Portal/Portal.d.ts +1 -0
  128. package/dist/components/overlay/Portal/Portal.d.ts.map +1 -0
  129. package/dist/components/overlay/Tooltip/Tooltip.d.ts +1 -0
  130. package/dist/components/overlay/Tooltip/Tooltip.d.ts.map +1 -0
  131. package/dist/components/providers/BlocksProvider/BlocksProvider.d.ts +5 -0
  132. package/dist/components/providers/BlocksProvider/BlocksProvider.d.ts.map +1 -0
  133. package/dist/components/providers/BlocksProvider/context.d.ts +1 -0
  134. package/dist/components/providers/BlocksProvider/context.d.ts.map +1 -0
  135. package/dist/components/typography/Heading/Heading.d.ts +1 -0
  136. package/dist/components/typography/Heading/Heading.d.ts.map +1 -0
  137. package/dist/components/typography/Heading/heading.css.d.ts +1 -0
  138. package/dist/components/typography/Heading/heading.css.d.ts.map +1 -0
  139. package/dist/components/typography/Heading/heading.css.js +2 -2
  140. package/dist/components/typography/Text/Text.d.ts +1 -0
  141. package/dist/components/typography/Text/Text.d.ts.map +1 -0
  142. package/dist/components/typography/Text/text.css.d.ts +1 -0
  143. package/dist/components/typography/Text/text.css.d.ts.map +1 -0
  144. package/dist/components/typography/Text/text.css.js +2 -2
  145. package/dist/hooks/useClickOutside/useClickOutside.d.ts +1 -0
  146. package/dist/hooks/useClickOutside/useClickOutside.d.ts.map +1 -0
  147. package/dist/hooks/useComponentStyles/useComponentStyleDefaultProps.d.ts +1 -0
  148. package/dist/hooks/useComponentStyles/useComponentStyleDefaultProps.d.ts.map +1 -0
  149. package/dist/hooks/useComponentStyles/useComponentStyles.d.ts +1 -0
  150. package/dist/hooks/useComponentStyles/useComponentStyles.d.ts.map +1 -0
  151. package/dist/hooks/useControlledValue/useControlledValue.d.ts +1 -0
  152. package/dist/hooks/useControlledValue/useControlledValue.d.ts.map +1 -0
  153. package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts +1 -0
  154. package/dist/hooks/useIsomorphicLayoutEffect/useIsomorphicLayoutEffect.d.ts.map +1 -0
  155. package/dist/hooks/useKeyboard/useKeyboard.d.ts +1 -0
  156. package/dist/hooks/useKeyboard/useKeyboard.d.ts.map +1 -0
  157. package/dist/hooks/useLayer/useLayer.d.ts +1 -0
  158. package/dist/hooks/useLayer/useLayer.d.ts.map +1 -0
  159. package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.d.ts +1 -0
  160. package/dist/hooks/usePreventBodyScroll/usePreventBodyScroll.d.ts.map +1 -0
  161. package/dist/hooks/useRestoreFocus/useRestoreFocus.d.ts +1 -0
  162. package/dist/hooks/useRestoreFocus/useRestoreFocus.d.ts.map +1 -0
  163. package/dist/hooks/useTheme/useTheme.d.ts +1 -0
  164. package/dist/hooks/useTheme/useTheme.d.ts.map +1 -0
  165. package/dist/hooks/useVisibilityState/useVisibilityState.d.ts +1 -0
  166. package/dist/hooks/useVisibilityState/useVisibilityState.d.ts.map +1 -0
  167. package/dist/index.d.ts +11 -1
  168. package/dist/index.d.ts.map +1 -0
  169. package/dist/index.js +20 -2
  170. package/dist/testUtils/testTheme.css.d.ts +1 -0
  171. package/dist/testUtils/testTheme.css.d.ts.map +1 -0
  172. package/dist/testUtils/testUtils.d.ts +1 -0
  173. package/dist/testUtils/testUtils.d.ts.map +1 -0
  174. package/package.json +6 -6
  175. 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 { blocksLayerComponent } from "@blockle/blocks-core";
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
- [blocksLayerComponent]: {
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
- [blocksLayerComponent]: {
19
+ [layers.molecule]: {
20
20
  all: "unset"
21
21
  }
22
22
  }
@@ -16,3 +16,4 @@ export type LabelProps = {
16
16
  } & HTMLElementProps<HTMLLabelElement>;
17
17
  export declare const Label: React.FC<LabelProps>;
18
18
  export {};
19
+ //# sourceMappingURL=Label.d.ts.map
@@ -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,3 @@
1
+ export declare const numericInputContainer: string;
2
+ export declare const numericInput: string;
3
+ //# sourceMappingURL=NumericInput.css.d.ts.map
@@ -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
+ };
@@ -6,3 +6,4 @@ export type RadioProps = {
6
6
  value: string;
7
7
  } & HTMLElementProps<HTMLInputElement>;
8
8
  export declare const Radio: React.FC<RadioProps>;
9
+ //# sourceMappingURL=Radio.d.ts.map
@@ -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"}
@@ -6,3 +6,4 @@ export type RadioGroupProps = {
6
6
  style?: React.CSSProperties;
7
7
  };
8
8
  export declare const RadioGroup: React.FC<RadioGroupProps>;
9
+ //# sourceMappingURL=RadioGroup.d.ts.map
@@ -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"}
@@ -1,3 +1,4 @@
1
1
  export declare const container: string;
2
2
  export declare const input: string;
3
3
  export declare const icon: string;
4
+ //# sourceMappingURL=radio.css.d.ts.map
@@ -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 { blocksLayerComponent } from "@blockle/blocks-core";
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
- [blocksLayerComponent]: {
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
- [blocksLayerComponent]: {
19
+ [layers.molecule]: {
20
20
  all: "unset"
21
21
  }
22
22
  }
@@ -9,3 +9,4 @@ export type SelectProps = {
9
9
  } & HTMLElementProps<HTMLSelectElement>;
10
10
  export declare const Select: React.FC<SelectProps>;
11
11
  export {};
12
+ //# sourceMappingURL=Select.d.ts.map
@@ -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"}
@@ -1,3 +1,4 @@
1
1
  export declare const wrapper: string;
2
2
  export declare const select: string;
3
3
  export declare const icon: string;
4
+ //# sourceMappingURL=select.css.d.ts.map
@@ -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 { blocksLayerComponent } from "@blockle/blocks-core";
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
- [blocksLayerComponent]: {
7
+ [layers.molecule]: {
8
8
  position: "relative"
9
9
  }
10
10
  }
11
11
  });
12
12
  const select = style({
13
13
  "@layer": {
14
- [blocksLayerComponent]: {
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
- [blocksLayerComponent]: {
22
+ [layers.molecule]: {
23
23
  position: "absolute",
24
24
  right: 0,
25
25
  top: 0,
@@ -19,3 +19,4 @@ export type SliderProps = {
19
19
  };
20
20
  export declare const Slider: React.FC<SliderProps>;
21
21
  export {};
22
+ //# sourceMappingURL=Slider.d.ts.map
@@ -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"}
@@ -3,3 +3,4 @@ export declare const containerVertical: string;
3
3
  export declare const track: string;
4
4
  export declare const filledTrack: string;
5
5
  export declare const thumb: string;
6
+ //# sourceMappingURL=slider.css.d.ts.map
@@ -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 { blocksLayerComponent } from "@blockle/blocks-core";
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
- [blocksLayerComponent]: {
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
- [blocksLayerComponent]: {
15
+ [layers.molecule]: {
16
16
  writingMode: "vertical-lr"
17
17
  }
18
18
  }
19
19
  });
20
20
  const track = style({
21
21
  "@layer": {
22
- [blocksLayerComponent]: {
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
- [blocksLayerComponent]: {
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
- [blocksLayerComponent]: {
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"}
@@ -4,3 +4,4 @@ export type SwitchProps = {
4
4
  ref?: React.Ref<HTMLInputElement>;
5
5
  } & Omit<HTMLElementProps<HTMLInputElement>, 'onChange'>;
6
6
  export declare const Switch: React.FC<SwitchProps>;
7
+ //# sourceMappingURL=Switch.d.ts.map
@@ -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"}
@@ -1,2 +1,3 @@
1
1
  export declare const container: string;
2
2
  export declare const input: string;
3
+ //# sourceMappingURL=switch.css.d.ts.map
@@ -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 { blocksLayerComponent } from "@blockle/blocks-core";
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
- [blocksLayerComponent]: {
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
- [blocksLayerComponent]: {
16
+ [layers.molecule]: {
17
17
  opacity: 0,
18
18
  maxBlockSize: 0,
19
19
  maxInlineSize: 0
@@ -0,0 +1,2 @@
1
+ export declare const input: string;
2
+ //# sourceMappingURL=TextInput.css.d.ts.map
@@ -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 { blocksLayerComponent } from "@blockle/blocks-core";
2
+ import { layers } from "@blockle/blocks-core";
3
3
  import { style } from "@vanilla-extract/css";
4
- setFileScope("src/components/form/Input/input.css.ts", "@blockle/blocks-react");
4
+ setFileScope("src/components/form/TextInput/TextInput.css.ts", "@blockle/blocks-react");
5
5
  const input = style({
6
6
  "@layer": {
7
- [blocksLayerComponent]: {
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 InputProps = {
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 Input: React.FC<InputProps>;
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 "./input.css.js";
8
- const Input = ({
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 id = useId();
19
- const containerClassName = useComponentStyles(
20
- "input",
18
+ const containerStyles = useComponentStyles(
19
+ "textInput",
21
20
  { container: true },
22
21
  false
23
22
  );
24
- const inputClassName = useComponentStyles("input", { input: true });
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(containerClassName, className),
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
- Input
49
+ TextInput
52
50
  };
@@ -0,0 +1,2 @@
1
+ export declare const textarea: string;
2
+ //# sourceMappingURL=Textarea.css.d.ts.map
@@ -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
+ };
@@ -8,3 +8,4 @@ export type BoxProps = {
8
8
  style?: React.CSSProperties;
9
9
  } & Atoms & HTMLElementProps<HTMLDivElement>;
10
10
  export declare const Box: React.FC<BoxProps>;
11
+ //# sourceMappingURL=Box.d.ts.map
@@ -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,6 @@
1
+ export type GridItemProps = {
2
+ children?: React.ReactNode;
3
+ size: number;
4
+ };
5
+ export declare const GridItem: React.FC<GridItemProps>;
6
+ //# sourceMappingURL=GridItem.d.ts.map
@@ -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
- spacing: Atoms['gap'];
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
- spacing,
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: spacing,
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
- spacing: Atoms['gap'];
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"}