@dt-dds/react-form 1.0.0-beta.51 → 1.0.0-beta.52

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @dt-ui/react-form
2
2
 
3
+ ## 1.0.0-beta.52
4
+
5
+ ### Patch Changes
6
+
7
+ - refactor: remove custom icons
8
+ - Updated dependencies
9
+ - @dt-dds/react-tooltip@1.0.0-beta.67
10
+
3
11
  ## 1.0.0-beta.51
4
12
 
5
13
  ### Minor Changes
package/dist/index.js CHANGED
@@ -1,27 +1,10 @@
1
1
  "use strict";
2
2
  var __create = Object.create;
3
3
  var __defProp = Object.defineProperty;
4
- var __defProps = Object.defineProperties;
5
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
6
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
7
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
8
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
9
6
  var __getProtoOf = Object.getPrototypeOf;
10
7
  var __hasOwnProp = Object.prototype.hasOwnProperty;
11
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
12
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
13
- var __spreadValues = (a, b) => {
14
- for (var prop in b || (b = {}))
15
- if (__hasOwnProp.call(b, prop))
16
- __defNormalProp(a, prop, b[prop]);
17
- if (__getOwnPropSymbols)
18
- for (var prop of __getOwnPropSymbols(b)) {
19
- if (__propIsEnum.call(b, prop))
20
- __defNormalProp(a, prop, b[prop]);
21
- }
22
- return a;
23
- };
24
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
25
8
  var __export = (target, all) => {
26
9
  for (var name in all)
27
10
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -52,6 +35,7 @@ __export(index_exports, {
52
35
  module.exports = __toCommonJS(index_exports);
53
36
 
54
37
  // src/Form.tsx
38
+ var import_react_icon = require("@dt-dds/react-icon");
55
39
  var import_react_tooltip = require("@dt-dds/react-tooltip");
56
40
  var import_react_typography = require("@dt-dds/react-typography");
57
41
 
@@ -97,196 +81,8 @@ var GroupItemsStyled = import_styled.default.div`
97
81
  `}
98
82
  `;
99
83
 
100
- // ../../dt-dds-react/core/assets/svgs/AllOut.tsx
101
- var import_jsx_runtime = require("react/jsx-runtime");
102
-
103
- // ../../dt-dds-react/core/assets/svgs/Apis.tsx
104
- var import_jsx_runtime2 = require("react/jsx-runtime");
105
-
106
- // ../../dt-dds-react/core/assets/svgs/Apps.tsx
107
- var import_jsx_runtime3 = require("react/jsx-runtime");
108
-
109
- // ../../dt-dds-react/core/assets/svgs/ArrowDropDown.tsx
110
- var import_jsx_runtime4 = require("react/jsx-runtime");
111
-
112
- // ../../dt-dds-react/core/assets/svgs/ArrowDropUp.tsx
113
- var import_jsx_runtime5 = require("react/jsx-runtime");
114
-
115
- // ../../dt-dds-react/core/assets/svgs/ArrowLeft.tsx
116
- var import_jsx_runtime6 = require("react/jsx-runtime");
117
-
118
- // ../../dt-dds-react/core/assets/svgs/ArrowRight.tsx
119
- var import_jsx_runtime7 = require("react/jsx-runtime");
120
-
121
- // ../../dt-dds-react/core/assets/svgs/AvatarThumbnail.tsx
122
- var import_jsx_runtime8 = require("react/jsx-runtime");
123
-
124
- // ../../dt-dds-react/core/assets/svgs/Bolt.tsx
125
- var import_jsx_runtime9 = require("react/jsx-runtime");
126
-
127
- // ../../dt-dds-react/core/assets/svgs/CalendarMonth.tsx
128
- var import_jsx_runtime10 = require("react/jsx-runtime");
129
-
130
- // ../../dt-dds-react/core/assets/svgs/Cancel.tsx
131
- var import_jsx_runtime11 = require("react/jsx-runtime");
132
-
133
- // ../../dt-dds-react/core/assets/svgs/Check.tsx
134
- var import_jsx_runtime12 = require("react/jsx-runtime");
135
-
136
- // ../../dt-dds-react/core/assets/svgs/CheckCircle.tsx
137
- var import_jsx_runtime13 = require("react/jsx-runtime");
138
-
139
- // ../../dt-dds-react/core/assets/svgs/CheckCircleOutline.tsx
140
- var import_jsx_runtime14 = require("react/jsx-runtime");
141
-
142
- // ../../dt-dds-react/core/assets/svgs/Close.tsx
143
- var import_jsx_runtime15 = require("react/jsx-runtime");
144
-
145
- // ../../dt-dds-react/core/assets/svgs/Copy.tsx
146
- var import_jsx_runtime16 = require("react/jsx-runtime");
147
-
148
- // ../../dt-dds-react/core/assets/svgs/Delete.tsx
149
- var import_jsx_runtime17 = require("react/jsx-runtime");
150
-
151
- // ../../dt-dds-react/core/assets/svgs/Edit.tsx
152
- var import_jsx_runtime18 = require("react/jsx-runtime");
153
-
154
- // ../../dt-dds-react/core/assets/svgs/Email.tsx
155
- var import_jsx_runtime19 = require("react/jsx-runtime");
156
-
157
- // ../../dt-dds-react/core/assets/svgs/EmailSend.tsx
158
- var import_jsx_runtime20 = require("react/jsx-runtime");
159
-
160
- // ../../dt-dds-react/core/assets/svgs/Error.tsx
161
- var import_react = require("@emotion/react");
162
- var import_jsx_runtime21 = require("react/jsx-runtime");
163
-
164
- // ../../dt-dds-react/core/assets/svgs/ErrorOutline.tsx
165
- var import_jsx_runtime22 = require("react/jsx-runtime");
166
-
167
- // ../../dt-dds-react/core/assets/svgs/EVStation.tsx
168
- var import_jsx_runtime23 = require("react/jsx-runtime");
169
-
170
- // ../../dt-dds-react/core/assets/svgs/Info.tsx
171
- var import_jsx_runtime24 = require("react/jsx-runtime");
172
- var Info = (props) => {
173
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
174
- "svg",
175
- __spreadProps(__spreadValues({
176
- fill: "currentColor",
177
- height: "24",
178
- viewBox: "0 0 24 24",
179
- width: "24",
180
- xmlns: "http://www.w3.org/2000/svg"
181
- }, props), {
182
- children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("path", { d: "M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V11H13V17ZM13 9H11V7H13V9Z" })
183
- })
184
- );
185
- };
186
- var Info_default = Info;
187
-
188
- // ../../dt-dds-react/core/assets/svgs/InfoOutline.tsx
189
- var import_jsx_runtime25 = require("react/jsx-runtime");
190
-
191
- // ../../dt-dds-react/core/assets/svgs/Input.tsx
192
- var import_jsx_runtime26 = require("react/jsx-runtime");
193
-
194
- // ../../dt-dds-react/core/assets/svgs/Language.tsx
195
- var import_jsx_runtime27 = require("react/jsx-runtime");
196
-
197
- // ../../dt-dds-react/core/assets/svgs/LocationOn.tsx
198
- var import_jsx_runtime28 = require("react/jsx-runtime");
199
-
200
- // ../../dt-dds-react/core/assets/svgs/LocationSearching.tsx
201
- var import_jsx_runtime29 = require("react/jsx-runtime");
202
-
203
- // ../../dt-dds-react/core/assets/svgs/MenuCompact.tsx
204
- var import_jsx_runtime30 = require("react/jsx-runtime");
205
-
206
- // ../../dt-dds-react/core/assets/svgs/MenuExpand.tsx
207
- var import_jsx_runtime31 = require("react/jsx-runtime");
208
-
209
- // ../../dt-dds-react/core/assets/svgs/Menu.tsx
210
- var import_jsx_runtime32 = require("react/jsx-runtime");
211
-
212
- // ../../dt-dds-react/core/assets/svgs/MoreHorizontal.tsx
213
- var import_jsx_runtime33 = require("react/jsx-runtime");
214
-
215
- // ../../dt-dds-react/core/assets/svgs/MoreVertical.tsx
216
- var import_jsx_runtime34 = require("react/jsx-runtime");
217
-
218
- // ../../dt-dds-react/core/assets/svgs/NoData.tsx
219
- var import_react2 = require("@emotion/react");
220
- var import_jsx_runtime35 = require("react/jsx-runtime");
221
-
222
- // ../../dt-dds-react/core/assets/svgs/NotFound.tsx
223
- var import_jsx_runtime36 = require("react/jsx-runtime");
224
-
225
- // ../../dt-dds-react/core/assets/svgs/OutlinedArrowDropDown.tsx
226
- var import_jsx_runtime37 = require("react/jsx-runtime");
227
-
228
- // ../../dt-dds-react/core/assets/svgs/OutlinedArrowDropUp.tsx
229
- var import_jsx_runtime38 = require("react/jsx-runtime");
230
-
231
- // ../../dt-dds-react/core/assets/svgs/PhoneOutlined.tsx
232
- var import_jsx_runtime39 = require("react/jsx-runtime");
233
-
234
- // ../../dt-dds-react/core/assets/svgs/Payments.tsx
235
- var import_jsx_runtime40 = require("react/jsx-runtime");
236
-
237
- // ../../dt-dds-react/core/assets/svgs/Products.tsx
238
- var import_jsx_runtime41 = require("react/jsx-runtime");
239
-
240
- // ../../dt-dds-react/core/assets/svgs/RemoveCircleOutline.tsx
241
- var import_jsx_runtime42 = require("react/jsx-runtime");
242
-
243
- // ../../dt-dds-react/core/assets/svgs/Share.tsx
244
- var import_jsx_runtime43 = require("react/jsx-runtime");
245
-
246
- // ../../dt-dds-react/core/assets/svgs/Signout.tsx
247
- var import_jsx_runtime44 = require("react/jsx-runtime");
248
-
249
- // ../../dt-dds-react/core/assets/svgs/Teams.tsx
250
- var import_jsx_runtime45 = require("react/jsx-runtime");
251
-
252
- // ../../dt-dds-react/core/assets/svgs/Timeline.tsx
253
- var import_jsx_runtime46 = require("react/jsx-runtime");
254
-
255
- // ../../dt-dds-react/core/assets/svgs/Topic.tsx
256
- var import_jsx_runtime47 = require("react/jsx-runtime");
257
-
258
- // ../../dt-dds-react/core/assets/svgs/UnfoldLess.tsx
259
- var import_jsx_runtime48 = require("react/jsx-runtime");
260
-
261
- // ../../dt-dds-react/core/assets/svgs/UnfoldMore.tsx
262
- var import_jsx_runtime49 = require("react/jsx-runtime");
263
-
264
- // ../../dt-dds-react/core/assets/svgs/Username.tsx
265
- var import_jsx_runtime50 = require("react/jsx-runtime");
266
-
267
- // ../../dt-dds-react/core/assets/svgs/ViewAgenda.tsx
268
- var import_jsx_runtime51 = require("react/jsx-runtime");
269
-
270
- // ../../dt-dds-react/core/assets/svgs/Visibility.tsx
271
- var import_jsx_runtime52 = require("react/jsx-runtime");
272
-
273
- // ../../dt-dds-react/core/assets/svgs/VisibilityOff.tsx
274
- var import_jsx_runtime53 = require("react/jsx-runtime");
275
-
276
- // ../../dt-dds-react/core/assets/svgs/WarningOutline.tsx
277
- var import_jsx_runtime54 = require("react/jsx-runtime");
278
-
279
- // ../../dt-dds-react/core/assets/svgs/Warning.tsx
280
- var import_jsx_runtime55 = require("react/jsx-runtime");
281
-
282
- // ../../dt-dds-react/core/assets/svgs/Wifi.tsx
283
- var import_jsx_runtime56 = require("react/jsx-runtime");
284
-
285
- // ../../dt-dds-react/core/assets/svgs/Settings.tsx
286
- var import_jsx_runtime57 = require("react/jsx-runtime");
287
-
288
84
  // src/Form.tsx
289
- var import_jsx_runtime58 = require("react/jsx-runtime");
85
+ var import_jsx_runtime = require("react/jsx-runtime");
290
86
  var DEFAULT_ON_SUBMIT = (event) => event.preventDefault();
291
87
  var Form = ({
292
88
  children,
@@ -295,12 +91,12 @@ var Form = ({
295
91
  onSubmit = DEFAULT_ON_SUBMIT
296
92
  }) => {
297
93
  const testId = dataTestId != null ? dataTestId : "test-form";
298
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(FormStyled, { "data-testid": testId, onSubmit, style, children });
94
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FormStyled, { "data-testid": testId, onSubmit, style, children });
299
95
  };
300
96
  Form.Group = ({ children, isDisabled, title, tooltip }) => {
301
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(GroupStyled, { children: [
302
- title ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(LabelStyled, { children: [
303
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
97
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(GroupStyled, { children: [
98
+ title ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(LabelStyled, { children: [
99
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
304
100
  import_react_typography.Typography,
305
101
  {
306
102
  color: "primary.default",
@@ -309,9 +105,9 @@ Form.Group = ({ children, isDisabled, title, tooltip }) => {
309
105
  children: title
310
106
  }
311
107
  ),
312
- tooltip ? /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(import_react_tooltip.Tooltip, { children: [
313
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Info_default, { height: "16", width: "16" }),
314
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
108
+ tooltip ? /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_react_tooltip.Tooltip, { children: [
109
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_icon.Icon, { code: "info", size: "small" }),
110
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
315
111
  import_react_tooltip.Tooltip.Content,
316
112
  {
317
113
  direction: import_react_tooltip.OTooltipDirection.Right,
@@ -321,7 +117,7 @@ Form.Group = ({ children, isDisabled, title, tooltip }) => {
321
117
  )
322
118
  ] }) : null
323
119
  ] }) : null,
324
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(GroupItemsStyled, { disabled: isDisabled, children })
120
+ /* @__PURE__ */ (0, import_jsx_runtime.jsx)(GroupItemsStyled, { disabled: isDisabled, children })
325
121
  ] });
326
122
  };
327
123
  // Annotate the CommonJS export names for ESM import in node:
package/dist/index.mjs CHANGED
@@ -1,24 +1,5 @@
1
- var __defProp = Object.defineProperty;
2
- var __defProps = Object.defineProperties;
3
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
7
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
8
- var __spreadValues = (a, b) => {
9
- for (var prop in b || (b = {}))
10
- if (__hasOwnProp.call(b, prop))
11
- __defNormalProp(a, prop, b[prop]);
12
- if (__getOwnPropSymbols)
13
- for (var prop of __getOwnPropSymbols(b)) {
14
- if (__propIsEnum.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- }
17
- return a;
18
- };
19
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
-
21
1
  // src/Form.tsx
2
+ import { Icon } from "@dt-dds/react-icon";
22
3
  import { OTooltipDirection, Tooltip } from "@dt-dds/react-tooltip";
23
4
  import { Typography } from "@dt-dds/react-typography";
24
5
 
@@ -64,196 +45,8 @@ var GroupItemsStyled = styled.div`
64
45
  `}
65
46
  `;
66
47
 
67
- // ../../dt-dds-react/core/assets/svgs/AllOut.tsx
68
- import { jsx, jsxs } from "react/jsx-runtime";
69
-
70
- // ../../dt-dds-react/core/assets/svgs/Apis.tsx
71
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
72
-
73
- // ../../dt-dds-react/core/assets/svgs/Apps.tsx
74
- import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
75
-
76
- // ../../dt-dds-react/core/assets/svgs/ArrowDropDown.tsx
77
- import { jsx as jsx4 } from "react/jsx-runtime";
78
-
79
- // ../../dt-dds-react/core/assets/svgs/ArrowDropUp.tsx
80
- import { jsx as jsx5 } from "react/jsx-runtime";
81
-
82
- // ../../dt-dds-react/core/assets/svgs/ArrowLeft.tsx
83
- import { jsx as jsx6 } from "react/jsx-runtime";
84
-
85
- // ../../dt-dds-react/core/assets/svgs/ArrowRight.tsx
86
- import { jsx as jsx7 } from "react/jsx-runtime";
87
-
88
- // ../../dt-dds-react/core/assets/svgs/AvatarThumbnail.tsx
89
- import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
90
-
91
- // ../../dt-dds-react/core/assets/svgs/Bolt.tsx
92
- import { jsx as jsx9 } from "react/jsx-runtime";
93
-
94
- // ../../dt-dds-react/core/assets/svgs/CalendarMonth.tsx
95
- import { jsx as jsx10 } from "react/jsx-runtime";
96
-
97
- // ../../dt-dds-react/core/assets/svgs/Cancel.tsx
98
- import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
99
-
100
- // ../../dt-dds-react/core/assets/svgs/Check.tsx
101
- import { jsx as jsx12 } from "react/jsx-runtime";
102
-
103
- // ../../dt-dds-react/core/assets/svgs/CheckCircle.tsx
104
- import { jsx as jsx13 } from "react/jsx-runtime";
105
-
106
- // ../../dt-dds-react/core/assets/svgs/CheckCircleOutline.tsx
107
- import { jsx as jsx14 } from "react/jsx-runtime";
108
-
109
- // ../../dt-dds-react/core/assets/svgs/Close.tsx
110
- import { jsx as jsx15 } from "react/jsx-runtime";
111
-
112
- // ../../dt-dds-react/core/assets/svgs/Copy.tsx
113
- import { jsx as jsx16, jsxs as jsxs6 } from "react/jsx-runtime";
114
-
115
- // ../../dt-dds-react/core/assets/svgs/Delete.tsx
116
- import { jsx as jsx17, jsxs as jsxs7 } from "react/jsx-runtime";
117
-
118
- // ../../dt-dds-react/core/assets/svgs/Edit.tsx
119
- import { jsx as jsx18, jsxs as jsxs8 } from "react/jsx-runtime";
120
-
121
- // ../../dt-dds-react/core/assets/svgs/Email.tsx
122
- import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
123
-
124
- // ../../dt-dds-react/core/assets/svgs/EmailSend.tsx
125
- import { jsx as jsx20, jsxs as jsxs10 } from "react/jsx-runtime";
126
-
127
- // ../../dt-dds-react/core/assets/svgs/Error.tsx
128
- import { useTheme } from "@emotion/react";
129
- import { jsx as jsx21, jsxs as jsxs11 } from "react/jsx-runtime";
130
-
131
- // ../../dt-dds-react/core/assets/svgs/ErrorOutline.tsx
132
- import { jsx as jsx22 } from "react/jsx-runtime";
133
-
134
- // ../../dt-dds-react/core/assets/svgs/EVStation.tsx
135
- import { jsx as jsx23 } from "react/jsx-runtime";
136
-
137
- // ../../dt-dds-react/core/assets/svgs/Info.tsx
138
- import { jsx as jsx24 } from "react/jsx-runtime";
139
- var Info = (props) => {
140
- return /* @__PURE__ */ jsx24(
141
- "svg",
142
- __spreadProps(__spreadValues({
143
- fill: "currentColor",
144
- height: "24",
145
- viewBox: "0 0 24 24",
146
- width: "24",
147
- xmlns: "http://www.w3.org/2000/svg"
148
- }, props), {
149
- children: /* @__PURE__ */ jsx24("path", { d: "M12 2C6.48 2 2 6.48 2 12C2 17.52 6.48 22 12 22C17.52 22 22 17.52 22 12C22 6.48 17.52 2 12 2ZM13 17H11V11H13V17ZM13 9H11V7H13V9Z" })
150
- })
151
- );
152
- };
153
- var Info_default = Info;
154
-
155
- // ../../dt-dds-react/core/assets/svgs/InfoOutline.tsx
156
- import { jsx as jsx25 } from "react/jsx-runtime";
157
-
158
- // ../../dt-dds-react/core/assets/svgs/Input.tsx
159
- import { jsx as jsx26, jsxs as jsxs12 } from "react/jsx-runtime";
160
-
161
- // ../../dt-dds-react/core/assets/svgs/Language.tsx
162
- import { jsx as jsx27 } from "react/jsx-runtime";
163
-
164
- // ../../dt-dds-react/core/assets/svgs/LocationOn.tsx
165
- import { jsx as jsx28, jsxs as jsxs13 } from "react/jsx-runtime";
166
-
167
- // ../../dt-dds-react/core/assets/svgs/LocationSearching.tsx
168
- import { jsx as jsx29 } from "react/jsx-runtime";
169
-
170
- // ../../dt-dds-react/core/assets/svgs/MenuCompact.tsx
171
- import { jsx as jsx30 } from "react/jsx-runtime";
172
-
173
- // ../../dt-dds-react/core/assets/svgs/MenuExpand.tsx
174
- import { jsx as jsx31 } from "react/jsx-runtime";
175
-
176
- // ../../dt-dds-react/core/assets/svgs/Menu.tsx
177
- import { jsx as jsx32 } from "react/jsx-runtime";
178
-
179
- // ../../dt-dds-react/core/assets/svgs/MoreHorizontal.tsx
180
- import { jsx as jsx33 } from "react/jsx-runtime";
181
-
182
- // ../../dt-dds-react/core/assets/svgs/MoreVertical.tsx
183
- import { jsx as jsx34 } from "react/jsx-runtime";
184
-
185
- // ../../dt-dds-react/core/assets/svgs/NoData.tsx
186
- import { useTheme as useTheme2 } from "@emotion/react";
187
- import { jsx as jsx35, jsxs as jsxs14 } from "react/jsx-runtime";
188
-
189
- // ../../dt-dds-react/core/assets/svgs/NotFound.tsx
190
- import { jsx as jsx36, jsxs as jsxs15 } from "react/jsx-runtime";
191
-
192
- // ../../dt-dds-react/core/assets/svgs/OutlinedArrowDropDown.tsx
193
- import { jsx as jsx37 } from "react/jsx-runtime";
194
-
195
- // ../../dt-dds-react/core/assets/svgs/OutlinedArrowDropUp.tsx
196
- import { jsx as jsx38 } from "react/jsx-runtime";
197
-
198
- // ../../dt-dds-react/core/assets/svgs/PhoneOutlined.tsx
199
- import { jsx as jsx39 } from "react/jsx-runtime";
200
-
201
- // ../../dt-dds-react/core/assets/svgs/Payments.tsx
202
- import { jsx as jsx40 } from "react/jsx-runtime";
203
-
204
- // ../../dt-dds-react/core/assets/svgs/Products.tsx
205
- import { jsx as jsx41, jsxs as jsxs16 } from "react/jsx-runtime";
206
-
207
- // ../../dt-dds-react/core/assets/svgs/RemoveCircleOutline.tsx
208
- import { jsx as jsx42 } from "react/jsx-runtime";
209
-
210
- // ../../dt-dds-react/core/assets/svgs/Share.tsx
211
- import { jsx as jsx43, jsxs as jsxs17 } from "react/jsx-runtime";
212
-
213
- // ../../dt-dds-react/core/assets/svgs/Signout.tsx
214
- import { jsx as jsx44 } from "react/jsx-runtime";
215
-
216
- // ../../dt-dds-react/core/assets/svgs/Teams.tsx
217
- import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
218
-
219
- // ../../dt-dds-react/core/assets/svgs/Timeline.tsx
220
- import { jsx as jsx46, jsxs as jsxs19 } from "react/jsx-runtime";
221
-
222
- // ../../dt-dds-react/core/assets/svgs/Topic.tsx
223
- import { jsx as jsx47, jsxs as jsxs20 } from "react/jsx-runtime";
224
-
225
- // ../../dt-dds-react/core/assets/svgs/UnfoldLess.tsx
226
- import { jsx as jsx48 } from "react/jsx-runtime";
227
-
228
- // ../../dt-dds-react/core/assets/svgs/UnfoldMore.tsx
229
- import { jsx as jsx49 } from "react/jsx-runtime";
230
-
231
- // ../../dt-dds-react/core/assets/svgs/Username.tsx
232
- import { jsx as jsx50, jsxs as jsxs21 } from "react/jsx-runtime";
233
-
234
- // ../../dt-dds-react/core/assets/svgs/ViewAgenda.tsx
235
- import { jsx as jsx51, jsxs as jsxs22 } from "react/jsx-runtime";
236
-
237
- // ../../dt-dds-react/core/assets/svgs/Visibility.tsx
238
- import { jsx as jsx52, jsxs as jsxs23 } from "react/jsx-runtime";
239
-
240
- // ../../dt-dds-react/core/assets/svgs/VisibilityOff.tsx
241
- import { jsx as jsx53, jsxs as jsxs24 } from "react/jsx-runtime";
242
-
243
- // ../../dt-dds-react/core/assets/svgs/WarningOutline.tsx
244
- import { jsx as jsx54 } from "react/jsx-runtime";
245
-
246
- // ../../dt-dds-react/core/assets/svgs/Warning.tsx
247
- import { jsx as jsx55 } from "react/jsx-runtime";
248
-
249
- // ../../dt-dds-react/core/assets/svgs/Wifi.tsx
250
- import { jsx as jsx56 } from "react/jsx-runtime";
251
-
252
- // ../../dt-dds-react/core/assets/svgs/Settings.tsx
253
- import { jsx as jsx57 } from "react/jsx-runtime";
254
-
255
48
  // src/Form.tsx
256
- import { jsx as jsx58, jsxs as jsxs25 } from "react/jsx-runtime";
49
+ import { jsx, jsxs } from "react/jsx-runtime";
257
50
  var DEFAULT_ON_SUBMIT = (event) => event.preventDefault();
258
51
  var Form = ({
259
52
  children,
@@ -262,12 +55,12 @@ var Form = ({
262
55
  onSubmit = DEFAULT_ON_SUBMIT
263
56
  }) => {
264
57
  const testId = dataTestId != null ? dataTestId : "test-form";
265
- return /* @__PURE__ */ jsx58(FormStyled, { "data-testid": testId, onSubmit, style, children });
58
+ return /* @__PURE__ */ jsx(FormStyled, { "data-testid": testId, onSubmit, style, children });
266
59
  };
267
60
  Form.Group = ({ children, isDisabled, title, tooltip }) => {
268
- return /* @__PURE__ */ jsxs25(GroupStyled, { children: [
269
- title ? /* @__PURE__ */ jsxs25(LabelStyled, { children: [
270
- /* @__PURE__ */ jsx58(
61
+ return /* @__PURE__ */ jsxs(GroupStyled, { children: [
62
+ title ? /* @__PURE__ */ jsxs(LabelStyled, { children: [
63
+ /* @__PURE__ */ jsx(
271
64
  Typography,
272
65
  {
273
66
  color: "primary.default",
@@ -276,9 +69,9 @@ Form.Group = ({ children, isDisabled, title, tooltip }) => {
276
69
  children: title
277
70
  }
278
71
  ),
279
- tooltip ? /* @__PURE__ */ jsxs25(Tooltip, { children: [
280
- /* @__PURE__ */ jsx58(Info_default, { height: "16", width: "16" }),
281
- /* @__PURE__ */ jsx58(
72
+ tooltip ? /* @__PURE__ */ jsxs(Tooltip, { children: [
73
+ /* @__PURE__ */ jsx(Icon, { code: "info", size: "small" }),
74
+ /* @__PURE__ */ jsx(
282
75
  Tooltip.Content,
283
76
  {
284
77
  direction: OTooltipDirection.Right,
@@ -288,7 +81,7 @@ Form.Group = ({ children, isDisabled, title, tooltip }) => {
288
81
  )
289
82
  ] }) : null
290
83
  ] }) : null,
291
- /* @__PURE__ */ jsx58(GroupItemsStyled, { disabled: isDisabled, children })
84
+ /* @__PURE__ */ jsx(GroupItemsStyled, { disabled: isDisabled, children })
292
85
  ] });
293
86
  };
294
87
  export {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dt-dds/react-form",
3
- "version": "1.0.0-beta.51",
3
+ "version": "1.0.0-beta.52",
4
4
  "license": "MIT",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"
@@ -21,8 +21,9 @@
21
21
  },
22
22
  "dependencies": {
23
23
  "@dt-dds/react-core": "1.0.0-beta.57",
24
- "@dt-dds/react-tooltip": "1.0.0-beta.66",
24
+ "@dt-dds/react-tooltip": "1.0.0-beta.67",
25
25
  "@dt-dds/react-typography": "1.0.0-beta.48",
26
+ "@dt-dds/react-icon": "1.0.0-beta.60",
26
27
  "@dt-dds/themes": "1.0.0-beta.12"
27
28
  },
28
29
  "devDependencies": {
@@ -30,7 +31,7 @@
30
31
  "@babel/preset-env": "^7.22.9",
31
32
  "@babel/preset-react": "^7.22.5",
32
33
  "@babel/preset-typescript": "^7.23.3",
33
- "@dt-dds/react-text-field": "1.0.0-beta.116",
34
+ "@dt-dds/react-text-field": "1.0.0-beta.117",
34
35
  "@emotion/babel-plugin": "^11.11.0",
35
36
  "@emotion/css": "^11.7.1",
36
37
  "@emotion/jest": "^11.10.0",