@webstudio-is/react-sdk 0.5.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 (176) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -0
  3. package/lib/arg-types/utils.d.ts +6 -0
  4. package/lib/arg-types/utils.d.ts.map +1 -0
  5. package/lib/arg-types/utils.js +80 -0
  6. package/lib/components/bold.d.ts +3 -0
  7. package/lib/components/bold.d.ts.map +1 -0
  8. package/lib/components/bold.js +8 -0
  9. package/lib/components/bold.props.json +2204 -0
  10. package/lib/components/bold.stories.d.ts +6 -0
  11. package/lib/components/bold.stories.d.ts.map +1 -0
  12. package/lib/components/bold.stories.js +19 -0
  13. package/lib/components/box.d.ts +3 -0
  14. package/lib/components/box.d.ts.map +1 -0
  15. package/lib/components/box.js +8 -0
  16. package/lib/components/box.props.json +2204 -0
  17. package/lib/components/box.stories.d.ts +6 -0
  18. package/lib/components/box.stories.d.ts.map +1 -0
  19. package/lib/components/box.stories.js +17 -0
  20. package/lib/components/button.d.ts +6 -0
  21. package/lib/components/button.d.ts.map +1 -0
  22. package/lib/components/button.js +11 -0
  23. package/lib/components/button.props.json +2461 -0
  24. package/lib/components/button.stories.d.ts +6 -0
  25. package/lib/components/button.stories.d.ts.map +1 -0
  26. package/lib/components/button.stories.js +19 -0
  27. package/lib/components/form.d.ts +3 -0
  28. package/lib/components/form.d.ts.map +1 -0
  29. package/lib/components/form.js +8 -0
  30. package/lib/components/form.props.json +2380 -0
  31. package/lib/components/form.stories.d.ts +6 -0
  32. package/lib/components/form.stories.d.ts.map +1 -0
  33. package/lib/components/form.stories.js +17 -0
  34. package/lib/components/heading.d.ts +8 -0
  35. package/lib/components/heading.d.ts.map +1 -0
  36. package/lib/components/heading.js +12 -0
  37. package/lib/components/heading.props.json +2246 -0
  38. package/lib/components/heading.stories.d.ts +10 -0
  39. package/lib/components/heading.stories.d.ts.map +1 -0
  40. package/lib/components/heading.stories.js +19 -0
  41. package/lib/components/index.d.ts +11 -0
  42. package/lib/components/index.d.ts.map +1 -0
  43. package/lib/components/index.js +26 -0
  44. package/lib/components/input.d.ts +3 -0
  45. package/lib/components/input.d.ts.map +1 -0
  46. package/lib/components/input.js +8 -0
  47. package/lib/components/input.props.json +2955 -0
  48. package/lib/components/input.stories.d.ts +6 -0
  49. package/lib/components/input.stories.d.ts.map +1 -0
  50. package/lib/components/input.stories.js +17 -0
  51. package/lib/components/italic.d.ts +3 -0
  52. package/lib/components/italic.d.ts.map +1 -0
  53. package/lib/components/italic.js +8 -0
  54. package/lib/components/italic.props.json +2204 -0
  55. package/lib/components/italic.stories.d.ts +6 -0
  56. package/lib/components/italic.stories.d.ts.map +1 -0
  57. package/lib/components/italic.stories.js +19 -0
  58. package/lib/components/link.d.ts +8 -0
  59. package/lib/components/link.d.ts.map +1 -0
  60. package/lib/components/link.js +8 -0
  61. package/lib/components/link.props.json +2441 -0
  62. package/lib/components/link.stories.d.ts +6 -0
  63. package/lib/components/link.stories.d.ts.map +1 -0
  64. package/lib/components/link.stories.js +19 -0
  65. package/lib/components/meta.d.ts +11 -0
  66. package/lib/components/meta.d.ts.map +1 -0
  67. package/lib/components/meta.js +26 -0
  68. package/lib/components/paragraph.d.ts +3 -0
  69. package/lib/components/paragraph.d.ts.map +1 -0
  70. package/lib/components/paragraph.js +8 -0
  71. package/lib/components/paragraph.props.json +2204 -0
  72. package/lib/components/paragraph.stories.d.ts +6 -0
  73. package/lib/components/paragraph.stories.d.ts.map +1 -0
  74. package/lib/components/paragraph.stories.js +19 -0
  75. package/lib/components/text-block.d.ts +3 -0
  76. package/lib/components/text-block.d.ts.map +1 -0
  77. package/lib/components/text-block.js +8 -0
  78. package/lib/components/text-block.props.json +2204 -0
  79. package/lib/components/text-block.stories.d.ts +6 -0
  80. package/lib/components/text-block.stories.d.ts.map +1 -0
  81. package/lib/components/text-block.stories.js +19 -0
  82. package/lib/css/breakpoints.d.ts +4 -0
  83. package/lib/css/breakpoints.d.ts.map +1 -0
  84. package/lib/css/breakpoints.js +9 -0
  85. package/lib/css/categories.d.ts +408 -0
  86. package/lib/css/categories.d.ts.map +1 -0
  87. package/lib/css/categories.js +229 -0
  88. package/lib/css/get-browser-style.d.ts +3 -0
  89. package/lib/css/get-browser-style.d.ts.map +1 -0
  90. package/lib/css/get-browser-style.js +43 -0
  91. package/lib/css/index.d.ts +9 -0
  92. package/lib/css/index.d.ts.map +1 -0
  93. package/lib/css/index.js +24 -0
  94. package/lib/css/keyword-values.d.ts +302 -0
  95. package/lib/css/keyword-values.d.ts.map +1 -0
  96. package/lib/css/keyword-values.js +6619 -0
  97. package/lib/css/properties.d.ts +3197 -0
  98. package/lib/css/properties.d.ts.map +1 -0
  99. package/lib/css/properties.js +3200 -0
  100. package/lib/css/schema.d.ts +151 -0
  101. package/lib/css/schema.d.ts.map +1 -0
  102. package/lib/css/schema.js +38 -0
  103. package/lib/css/types.d.ts +15 -0
  104. package/lib/css/types.d.ts.map +1 -0
  105. package/lib/css/types.js +2 -0
  106. package/lib/css/units.d.ts +2 -0
  107. package/lib/css/units.d.ts.map +1 -0
  108. package/lib/css/units.js +35 -0
  109. package/lib/db/index.d.ts +3 -0
  110. package/lib/db/index.d.ts.map +1 -0
  111. package/lib/db/index.js +18 -0
  112. package/lib/db/instance.d.ts +11 -0
  113. package/lib/db/instance.d.ts.map +1 -0
  114. package/lib/db/instance.js +13 -0
  115. package/lib/db/types.d.ts +12 -0
  116. package/lib/db/types.d.ts.map +1 -0
  117. package/lib/db/types.js +2 -0
  118. package/lib/index.d.ts +9 -0
  119. package/lib/index.d.ts.map +1 -0
  120. package/lib/index.js +37 -0
  121. package/lib/prisma.server.d.ts +3 -0
  122. package/lib/prisma.server.d.ts.map +1 -0
  123. package/lib/prisma.server.js +8 -0
  124. package/lib/pubsub/index.d.ts +3 -0
  125. package/lib/pubsub/index.d.ts.map +1 -0
  126. package/lib/pubsub/index.js +18 -0
  127. package/lib/pubsub/publish.d.ts +17 -0
  128. package/lib/pubsub/publish.d.ts.map +1 -0
  129. package/lib/pubsub/publish.js +27 -0
  130. package/lib/pubsub/subscribe.d.ts +8 -0
  131. package/lib/pubsub/subscribe.d.ts.map +1 -0
  132. package/lib/pubsub/subscribe.js +31 -0
  133. package/lib/stitches/critical-css.d.ts +4 -0
  134. package/lib/stitches/critical-css.d.ts.map +1 -0
  135. package/lib/stitches/critical-css.js +12 -0
  136. package/lib/stitches/css.d.ts +9 -0
  137. package/lib/stitches/css.d.ts.map +1 -0
  138. package/lib/stitches/css.js +32 -0
  139. package/lib/stitches/index.d.ts +4 -0
  140. package/lib/stitches/index.d.ts.map +1 -0
  141. package/lib/stitches/index.js +19 -0
  142. package/lib/stitches/to-css.d.ts +8 -0
  143. package/lib/stitches/to-css.d.ts.map +1 -0
  144. package/lib/stitches/to-css.js +44 -0
  145. package/lib/stitches/to-css.test.d.ts +2 -0
  146. package/lib/stitches/to-css.test.d.ts.map +1 -0
  147. package/lib/stitches/to-css.test.js +63 -0
  148. package/lib/tree/create-elements-tree.d.ts +23 -0
  149. package/lib/tree/create-elements-tree.d.ts.map +1 -0
  150. package/lib/tree/create-elements-tree.js +28 -0
  151. package/lib/tree/index.d.ts +4 -0
  152. package/lib/tree/index.d.ts.map +1 -0
  153. package/lib/tree/index.js +19 -0
  154. package/lib/tree/root.d.ts +16 -0
  155. package/lib/tree/root.d.ts.map +1 -0
  156. package/lib/tree/root.js +26 -0
  157. package/lib/tree/wrapper-component.d.ts +12 -0
  158. package/lib/tree/wrapper-component.d.ts.map +1 -0
  159. package/lib/tree/wrapper-component.js +53 -0
  160. package/lib/user-props/all-user-props.d.ts +8 -0
  161. package/lib/user-props/all-user-props.d.ts.map +1 -0
  162. package/lib/user-props/all-user-props.js +20 -0
  163. package/lib/user-props/index.d.ts +5 -0
  164. package/lib/user-props/index.d.ts.map +1 -0
  165. package/lib/user-props/index.js +20 -0
  166. package/lib/user-props/schema.d.ts +34 -0
  167. package/lib/user-props/schema.d.ts.map +1 -0
  168. package/lib/user-props/schema.js +11 -0
  169. package/lib/user-props/types.d.ts +15 -0
  170. package/lib/user-props/types.d.ts.map +1 -0
  171. package/lib/user-props/types.js +2 -0
  172. package/lib/user-props/use-user-props.d.ts +12 -0
  173. package/lib/user-props/use-user-props.d.ts.map +1 -0
  174. package/lib/user-props/use-user-props.js +33 -0
  175. package/package.json +78 -0
  176. package/prisma/schema.prisma +71 -0
@@ -0,0 +1,6 @@
1
+ import React from "react";
2
+ import type { ComponentStory, ComponentMeta } from "@storybook/react";
3
+ declare const _default: ComponentMeta<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "key" | keyof React.HTMLAttributes<HTMLElement>> & React.RefAttributes<HTMLElement>>>;
4
+ export default _default;
5
+ export declare const Italic: ComponentStory<React.ForwardRefExoticComponent<Pick<React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>, "key" | keyof React.HTMLAttributes<HTMLElement>> & React.RefAttributes<HTMLElement>>>;
6
+ //# sourceMappingURL=italic.stories.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"italic.stories.d.ts","sourceRoot":"","sources":["../../src/components/italic.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;;AAItE,wBAI2C;AAM3C,eAAO,MAAM,MAAM,oNAAoB,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Italic = void 0;
7
+ const jsx_runtime_1 = require("react/jsx-runtime");
8
+ const italic_1 = require("./italic");
9
+ const italic_props_json_1 = __importDefault(require("./italic.props.json"));
10
+ exports.default = {
11
+ title: "Components/Italic",
12
+ component: italic_1.Italic,
13
+ argTypes: italic_props_json_1.default,
14
+ };
15
+ const Template = (args) => ((0, jsx_runtime_1.jsx)(italic_1.Italic, { ...args }));
16
+ exports.Italic = Template.bind({});
17
+ exports.Italic.args = {
18
+ children: "some italic text",
19
+ };
@@ -0,0 +1,8 @@
1
+ import React, { type ComponentProps } from "react";
2
+ declare const defaultTag = "a";
3
+ export declare type LinkProps = Omit<ComponentProps<typeof defaultTag>, "href"> & {
4
+ href?: string;
5
+ };
6
+ export declare const Link: React.ForwardRefExoticComponent<Pick<LinkProps, "type" | "style" | "id" | "color" | "translate" | "hidden" | "media" | "slot" | "title" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "href" | "download" | "hrefLang" | "ping" | "rel" | "target" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>;
7
+ export {};
8
+ //# sourceMappingURL=link.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/components/link.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA+B,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAEhF,QAAA,MAAM,UAAU,MAAM,CAAC;AAEvB,oBAAY,SAAS,GAAG,IAAI,CAAC,cAAc,CAAC,OAAO,UAAU,CAAC,EAAE,MAAM,CAAC,GAAG;IACxE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,eAAO,MAAM,IAAI,srJAEhB,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Link = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const defaultTag = "a";
7
+ exports.Link = (0, react_1.forwardRef)(({ href = "", ...props }, ref) => (0, jsx_runtime_1.jsx)("a", { ...props, href: href, ref: ref }));
8
+ exports.Link.displayName = "Link";