@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.
- package/LICENSE +21 -0
- package/README.md +4 -0
- package/lib/arg-types/utils.d.ts +6 -0
- package/lib/arg-types/utils.d.ts.map +1 -0
- package/lib/arg-types/utils.js +80 -0
- package/lib/components/bold.d.ts +3 -0
- package/lib/components/bold.d.ts.map +1 -0
- package/lib/components/bold.js +8 -0
- package/lib/components/bold.props.json +2204 -0
- package/lib/components/bold.stories.d.ts +6 -0
- package/lib/components/bold.stories.d.ts.map +1 -0
- package/lib/components/bold.stories.js +19 -0
- package/lib/components/box.d.ts +3 -0
- package/lib/components/box.d.ts.map +1 -0
- package/lib/components/box.js +8 -0
- package/lib/components/box.props.json +2204 -0
- package/lib/components/box.stories.d.ts +6 -0
- package/lib/components/box.stories.d.ts.map +1 -0
- package/lib/components/box.stories.js +17 -0
- package/lib/components/button.d.ts +6 -0
- package/lib/components/button.d.ts.map +1 -0
- package/lib/components/button.js +11 -0
- package/lib/components/button.props.json +2461 -0
- package/lib/components/button.stories.d.ts +6 -0
- package/lib/components/button.stories.d.ts.map +1 -0
- package/lib/components/button.stories.js +19 -0
- package/lib/components/form.d.ts +3 -0
- package/lib/components/form.d.ts.map +1 -0
- package/lib/components/form.js +8 -0
- package/lib/components/form.props.json +2380 -0
- package/lib/components/form.stories.d.ts +6 -0
- package/lib/components/form.stories.d.ts.map +1 -0
- package/lib/components/form.stories.js +17 -0
- package/lib/components/heading.d.ts +8 -0
- package/lib/components/heading.d.ts.map +1 -0
- package/lib/components/heading.js +12 -0
- package/lib/components/heading.props.json +2246 -0
- package/lib/components/heading.stories.d.ts +10 -0
- package/lib/components/heading.stories.d.ts.map +1 -0
- package/lib/components/heading.stories.js +19 -0
- package/lib/components/index.d.ts +11 -0
- package/lib/components/index.d.ts.map +1 -0
- package/lib/components/index.js +26 -0
- package/lib/components/input.d.ts +3 -0
- package/lib/components/input.d.ts.map +1 -0
- package/lib/components/input.js +8 -0
- package/lib/components/input.props.json +2955 -0
- package/lib/components/input.stories.d.ts +6 -0
- package/lib/components/input.stories.d.ts.map +1 -0
- package/lib/components/input.stories.js +17 -0
- package/lib/components/italic.d.ts +3 -0
- package/lib/components/italic.d.ts.map +1 -0
- package/lib/components/italic.js +8 -0
- package/lib/components/italic.props.json +2204 -0
- package/lib/components/italic.stories.d.ts +6 -0
- package/lib/components/italic.stories.d.ts.map +1 -0
- package/lib/components/italic.stories.js +19 -0
- package/lib/components/link.d.ts +8 -0
- package/lib/components/link.d.ts.map +1 -0
- package/lib/components/link.js +8 -0
- package/lib/components/link.props.json +2441 -0
- package/lib/components/link.stories.d.ts +6 -0
- package/lib/components/link.stories.d.ts.map +1 -0
- package/lib/components/link.stories.js +19 -0
- package/lib/components/meta.d.ts +11 -0
- package/lib/components/meta.d.ts.map +1 -0
- package/lib/components/meta.js +26 -0
- package/lib/components/paragraph.d.ts +3 -0
- package/lib/components/paragraph.d.ts.map +1 -0
- package/lib/components/paragraph.js +8 -0
- package/lib/components/paragraph.props.json +2204 -0
- package/lib/components/paragraph.stories.d.ts +6 -0
- package/lib/components/paragraph.stories.d.ts.map +1 -0
- package/lib/components/paragraph.stories.js +19 -0
- package/lib/components/text-block.d.ts +3 -0
- package/lib/components/text-block.d.ts.map +1 -0
- package/lib/components/text-block.js +8 -0
- package/lib/components/text-block.props.json +2204 -0
- package/lib/components/text-block.stories.d.ts +6 -0
- package/lib/components/text-block.stories.d.ts.map +1 -0
- package/lib/components/text-block.stories.js +19 -0
- package/lib/css/breakpoints.d.ts +4 -0
- package/lib/css/breakpoints.d.ts.map +1 -0
- package/lib/css/breakpoints.js +9 -0
- package/lib/css/categories.d.ts +408 -0
- package/lib/css/categories.d.ts.map +1 -0
- package/lib/css/categories.js +229 -0
- package/lib/css/get-browser-style.d.ts +3 -0
- package/lib/css/get-browser-style.d.ts.map +1 -0
- package/lib/css/get-browser-style.js +43 -0
- package/lib/css/index.d.ts +9 -0
- package/lib/css/index.d.ts.map +1 -0
- package/lib/css/index.js +24 -0
- package/lib/css/keyword-values.d.ts +302 -0
- package/lib/css/keyword-values.d.ts.map +1 -0
- package/lib/css/keyword-values.js +6619 -0
- package/lib/css/properties.d.ts +3197 -0
- package/lib/css/properties.d.ts.map +1 -0
- package/lib/css/properties.js +3200 -0
- package/lib/css/schema.d.ts +151 -0
- package/lib/css/schema.d.ts.map +1 -0
- package/lib/css/schema.js +38 -0
- package/lib/css/types.d.ts +15 -0
- package/lib/css/types.d.ts.map +1 -0
- package/lib/css/types.js +2 -0
- package/lib/css/units.d.ts +2 -0
- package/lib/css/units.d.ts.map +1 -0
- package/lib/css/units.js +35 -0
- package/lib/db/index.d.ts +3 -0
- package/lib/db/index.d.ts.map +1 -0
- package/lib/db/index.js +18 -0
- package/lib/db/instance.d.ts +11 -0
- package/lib/db/instance.d.ts.map +1 -0
- package/lib/db/instance.js +13 -0
- package/lib/db/types.d.ts +12 -0
- package/lib/db/types.d.ts.map +1 -0
- package/lib/db/types.js +2 -0
- package/lib/index.d.ts +9 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +37 -0
- package/lib/prisma.server.d.ts +3 -0
- package/lib/prisma.server.d.ts.map +1 -0
- package/lib/prisma.server.js +8 -0
- package/lib/pubsub/index.d.ts +3 -0
- package/lib/pubsub/index.d.ts.map +1 -0
- package/lib/pubsub/index.js +18 -0
- package/lib/pubsub/publish.d.ts +17 -0
- package/lib/pubsub/publish.d.ts.map +1 -0
- package/lib/pubsub/publish.js +27 -0
- package/lib/pubsub/subscribe.d.ts +8 -0
- package/lib/pubsub/subscribe.d.ts.map +1 -0
- package/lib/pubsub/subscribe.js +31 -0
- package/lib/stitches/critical-css.d.ts +4 -0
- package/lib/stitches/critical-css.d.ts.map +1 -0
- package/lib/stitches/critical-css.js +12 -0
- package/lib/stitches/css.d.ts +9 -0
- package/lib/stitches/css.d.ts.map +1 -0
- package/lib/stitches/css.js +32 -0
- package/lib/stitches/index.d.ts +4 -0
- package/lib/stitches/index.d.ts.map +1 -0
- package/lib/stitches/index.js +19 -0
- package/lib/stitches/to-css.d.ts +8 -0
- package/lib/stitches/to-css.d.ts.map +1 -0
- package/lib/stitches/to-css.js +44 -0
- package/lib/stitches/to-css.test.d.ts +2 -0
- package/lib/stitches/to-css.test.d.ts.map +1 -0
- package/lib/stitches/to-css.test.js +63 -0
- package/lib/tree/create-elements-tree.d.ts +23 -0
- package/lib/tree/create-elements-tree.d.ts.map +1 -0
- package/lib/tree/create-elements-tree.js +28 -0
- package/lib/tree/index.d.ts +4 -0
- package/lib/tree/index.d.ts.map +1 -0
- package/lib/tree/index.js +19 -0
- package/lib/tree/root.d.ts +16 -0
- package/lib/tree/root.d.ts.map +1 -0
- package/lib/tree/root.js +26 -0
- package/lib/tree/wrapper-component.d.ts +12 -0
- package/lib/tree/wrapper-component.d.ts.map +1 -0
- package/lib/tree/wrapper-component.js +53 -0
- package/lib/user-props/all-user-props.d.ts +8 -0
- package/lib/user-props/all-user-props.d.ts.map +1 -0
- package/lib/user-props/all-user-props.js +20 -0
- package/lib/user-props/index.d.ts +5 -0
- package/lib/user-props/index.d.ts.map +1 -0
- package/lib/user-props/index.js +20 -0
- package/lib/user-props/schema.d.ts +34 -0
- package/lib/user-props/schema.d.ts.map +1 -0
- package/lib/user-props/schema.js +11 -0
- package/lib/user-props/types.d.ts +15 -0
- package/lib/user-props/types.d.ts.map +1 -0
- package/lib/user-props/types.js +2 -0
- package/lib/user-props/use-user-props.d.ts +12 -0
- package/lib/user-props/use-user-props.d.ts.map +1 -0
- package/lib/user-props/use-user-props.js +33 -0
- package/package.json +78 -0
- 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";
|