@algolia/satellite 2.0.0-rc.3 → 2.0.0-rc.5

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.
@@ -1,62 +0,0 @@
1
- "use strict";
2
-
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
- Object.defineProperty(exports, "__esModule", {
5
- value: true
6
- });
7
- exports.InlineFieldsComponent = void 0;
8
- var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/taggedTemplateLiteral"));
9
- var _ = require("../..");
10
- var _satellitePrefixer = _interopRequireDefault(require("../../../styles/helpers/satellitePrefixer"));
11
- var _Field = require("../../Field");
12
- var _Input = require("../../Input");
13
- var _Switch = require("../../Switch");
14
- var _TextArea = require("../../TextArea");
15
- var _jsxRuntime = require("react/jsx-runtime");
16
- var _templateObject, _templateObject2, _templateObject3;
17
- var InlineFieldsComponent = exports.InlineFieldsComponent = function InlineFieldsComponent() {
18
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
19
- className: (0, _satellitePrefixer["default"])(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2["default"])(["flex flex-col w-4/5"]))),
20
- children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_.ExperimentalForm, {
21
- className: (0, _satellitePrefixer["default"])(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2["default"])(["flex flex-col gap-4 min-w-72"]))),
22
- inline: true,
23
- inlineLabelSize: "medium",
24
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Field.Field, {
25
- label: "First Name",
26
- labelFor: "firstName",
27
- description: "Please enter your first name",
28
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Input.Input, {
29
- id: "firstName",
30
- placeholder: "John",
31
- required: true
32
- })
33
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Field.Field, {
34
- label: "Bio",
35
- labelFor: "bio",
36
- description: "Please write a short bio",
37
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextArea.TextArea, {
38
- id: "bio",
39
- required: true
40
- })
41
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Field.Field, {
42
- label: "Receive Newsletter",
43
- labelFor: "newsletter",
44
- description: "Do you want to receive our newsletter?",
45
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Switch.Switch, {
46
- id: "newsletter",
47
- required: true
48
- })
49
- }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
50
- className: (0, _satellitePrefixer["default"])(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2["default"])(["flex justify-end gap-2"]))),
51
- children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_.ExperimentalFormReset, {
52
- "aria-label": "Reset the form",
53
- children: "Reset"
54
- }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_.ExperimentalFormSubmit, {
55
- variant: "primary",
56
- "aria-label": "Save the form",
57
- children: "Save"
58
- })]
59
- })]
60
- })
61
- });
62
- };
@@ -1,55 +0,0 @@
1
- import _taggedTemplateLiteral from "@babel/runtime/helpers/taggedTemplateLiteral";
2
- var _templateObject, _templateObject2, _templateObject3;
3
- import { ExperimentalForm, ExperimentalFormReset, ExperimentalFormSubmit } from "../..";
4
- import stl from "../../../styles/helpers/satellitePrefixer";
5
- import { Field } from "../../Field";
6
- import { Input } from "../../Input";
7
- import { Switch } from "../../Switch";
8
- import { TextArea } from "../../TextArea";
9
- import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
10
- export var InlineFieldsComponent = function InlineFieldsComponent() {
11
- return /*#__PURE__*/_jsx("div", {
12
- className: stl(_templateObject || (_templateObject = _taggedTemplateLiteral(["flex flex-col w-4/5"]))),
13
- children: /*#__PURE__*/_jsxs(ExperimentalForm, {
14
- className: stl(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["flex flex-col gap-4 min-w-72"]))),
15
- inline: true,
16
- inlineLabelSize: "medium",
17
- children: [/*#__PURE__*/_jsx(Field, {
18
- label: "First Name",
19
- labelFor: "firstName",
20
- description: "Please enter your first name",
21
- children: /*#__PURE__*/_jsx(Input, {
22
- id: "firstName",
23
- placeholder: "John",
24
- required: true
25
- })
26
- }), /*#__PURE__*/_jsx(Field, {
27
- label: "Bio",
28
- labelFor: "bio",
29
- description: "Please write a short bio",
30
- children: /*#__PURE__*/_jsx(TextArea, {
31
- id: "bio",
32
- required: true
33
- })
34
- }), /*#__PURE__*/_jsx(Field, {
35
- label: "Receive Newsletter",
36
- labelFor: "newsletter",
37
- description: "Do you want to receive our newsletter?",
38
- children: /*#__PURE__*/_jsx(Switch, {
39
- id: "newsletter",
40
- required: true
41
- })
42
- }), /*#__PURE__*/_jsxs("div", {
43
- className: stl(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["flex justify-end gap-2"]))),
44
- children: [/*#__PURE__*/_jsx(ExperimentalFormReset, {
45
- "aria-label": "Reset the form",
46
- children: "Reset"
47
- }), /*#__PURE__*/_jsx(ExperimentalFormSubmit, {
48
- variant: "primary",
49
- "aria-label": "Save the form",
50
- children: "Save"
51
- })]
52
- })]
53
- })
54
- });
55
- };