@wrdagency/blockout 0.0.13 → 0.0.14
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/dist/{2NBKRL7C-C6mXReCE.js → 2NBKRL7C-D-Q0qGRV.js} +3 -3
- package/dist/{P7GR5CS5-DNbthaqU.js → P7GR5CS5-qyeuZVEs.js} +1 -1
- package/dist/T7VMP3TM-BxgFbvdx.js +2106 -0
- package/dist/{UQQRIHDV-CFdrMoqW.js → UQQRIHDV-BGs025hb.js} +2 -2
- package/dist/{VIIRIBF3-B585VK9r.js → VIIRIBF3-D9clDhln.js} +1 -1
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/assets/button.css +1 -0
- package/dist/assets/form.css +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -0
- package/dist/assets/index13.css +1 -0
- package/dist/assets/index2.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index4.css +1 -1
- package/dist/components/breadcrumbs/index.js +23 -16
- package/dist/components/button/{index.d.ts → button.d.ts} +2 -3
- package/dist/components/button/button.js +28 -0
- package/dist/components/button/icon.d.ts +6 -0
- package/dist/components/button/icon.js +10 -0
- package/dist/components/button/index.js +6 -26
- package/dist/components/controls/base-control/affix.d.ts +6 -0
- package/dist/components/controls/base-control/affix.js +15 -0
- package/dist/components/controls/base-control/index.js +26 -21
- package/dist/components/controls/index.d.ts +1 -0
- package/dist/components/controls/index.js +10 -8
- package/dist/components/controls/number-control/index.d.ts +1 -1
- package/dist/components/controls/number-control/index.js +37 -31
- package/dist/components/controls/password-control/index.d.ts +7 -0
- package/dist/components/controls/password-control/index.js +114 -0
- package/dist/components/controls/select-control/index.js +9 -9
- package/dist/components/data-table/column.js +1 -1
- package/dist/components/form/components/pagination.js +1 -1
- package/dist/components/form/components/step.js +22 -16
- package/dist/components/form/index.d.ts +0 -2
- package/dist/components/form/types/fields.d.ts +1 -1
- package/dist/components/form/types/form.d.ts +1 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +23 -19
- package/dist/components/markdown/index.d.ts +6 -0
- package/dist/components/markdown/index.js +25844 -0
- package/dist/components/menu/index.js +4 -4
- package/dist/components/menu/item.js +1 -1
- package/dist/components/menu/items/action.js +1 -1
- package/dist/components/menu/items/spacer.js +2 -2
- package/dist/components/menu/items/submenu.js +2 -2
- package/dist/components/menu/items/toggle.js +1 -1
- package/dist/floating-ui.dom-9sqP7IwC.js +1512 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/index.js +4 -0
- package/dist/hooks/theme.d.ts +8 -0
- package/dist/hooks/theme.js +45 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +30 -24
- package/dist/{item-C0kyELlf.js → item-D9r2-3fk.js} +5 -5
- package/package.json +3 -1
- package/dist/T7VMP3TM-B3jxXFmj.js +0 -3548
- package/dist/_commonjsHelpers-C6fGbg64.js +0 -6
|
@@ -1,62 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { noop as
|
|
3
|
-
import { e as
|
|
4
|
-
import { r as
|
|
5
|
-
import { useRef as
|
|
6
|
-
import { BaseControl as
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { jsxs as s, Fragment as f, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { noop as u } from "../../../utils/noop.js";
|
|
3
|
+
import { e as d } from "../../../CaretDown.es-eySGHzTJ.js";
|
|
4
|
+
import { r as h } from "../../../CaretUp.es-Cy8czlHG.js";
|
|
5
|
+
import { useRef as x } from "react";
|
|
6
|
+
import { BaseControl as C } from "../base-control/index.js";
|
|
7
|
+
import { Affix as _ } from "../base-control/affix.js";
|
|
8
|
+
import { useBaseControlProps as g } from "../base-control/props.js";
|
|
9
|
+
import '../../../assets/index5.css';const T = (r) => {
|
|
10
|
+
const e = x(null), i = () => /* @__PURE__ */ s("div", { className: "component-number-control__spinbox", children: [
|
|
11
|
+
/* @__PURE__ */ n(
|
|
11
12
|
"button",
|
|
12
13
|
{
|
|
13
14
|
type: "button",
|
|
14
15
|
className: "component-number-control__spinbox__button",
|
|
15
16
|
"aria-label": "Increment",
|
|
16
17
|
role: "spinbutton",
|
|
17
|
-
"aria-controls":
|
|
18
|
-
onClick: () =>
|
|
18
|
+
"aria-controls": r.id,
|
|
19
|
+
onClick: () => c(1),
|
|
19
20
|
tabIndex: -1,
|
|
20
|
-
children: /* @__PURE__ */
|
|
21
|
+
children: /* @__PURE__ */ n(h, {})
|
|
21
22
|
}
|
|
22
23
|
),
|
|
23
|
-
/* @__PURE__ */
|
|
24
|
+
/* @__PURE__ */ n(
|
|
24
25
|
"button",
|
|
25
26
|
{
|
|
26
27
|
type: "button",
|
|
27
28
|
className: "component-number-control__spinbox__button",
|
|
28
29
|
"aria-label": "Decrement",
|
|
29
30
|
role: "spinbutton",
|
|
30
|
-
"aria-controls":
|
|
31
|
-
onClick: () =>
|
|
31
|
+
"aria-controls": r.id,
|
|
32
|
+
onClick: () => c(-1),
|
|
32
33
|
tabIndex: -1,
|
|
33
|
-
children: /* @__PURE__ */
|
|
34
|
+
children: /* @__PURE__ */ n(d, {})
|
|
34
35
|
}
|
|
35
36
|
)
|
|
36
|
-
] }),
|
|
37
|
-
|
|
38
|
-
}, { baseProps:
|
|
37
|
+
] }), c = (o) => {
|
|
38
|
+
e.current && (o > 0 ? e.current.stepUp(o) : e.current.stepDown(o * -1), t(Number(e.current.value)), e.current.focus());
|
|
39
|
+
}, { baseProps: l, controlProps: m } = g(r, {
|
|
39
40
|
className: "component-number-control",
|
|
40
|
-
suffix: /* @__PURE__ */
|
|
41
|
+
suffix: /* @__PURE__ */ s(f, { children: [
|
|
42
|
+
/* @__PURE__ */ n(_, { suffix: !0, children: r.suffix }),
|
|
43
|
+
/* @__PURE__ */ n(i, {})
|
|
44
|
+
] })
|
|
41
45
|
}), {
|
|
42
|
-
onChangeValue:
|
|
43
|
-
onChange: a =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
46
|
+
onChangeValue: t = u,
|
|
47
|
+
onChange: a = u,
|
|
48
|
+
value: p = "",
|
|
49
|
+
...b
|
|
50
|
+
} = m;
|
|
51
|
+
return /* @__PURE__ */ n(C, { ...l, children: /* @__PURE__ */ n(
|
|
47
52
|
"input",
|
|
48
53
|
{
|
|
49
54
|
className: "component-number-control__input",
|
|
50
55
|
type: "number",
|
|
51
56
|
inputMode: "numeric",
|
|
52
|
-
ref:
|
|
53
|
-
onChange: (
|
|
54
|
-
|
|
57
|
+
ref: e,
|
|
58
|
+
onChange: (o) => {
|
|
59
|
+
o.currentTarget.value === "" ? t(void 0) : t(Number(o.currentTarget.value)), a(o);
|
|
55
60
|
},
|
|
56
|
-
|
|
61
|
+
value: p,
|
|
62
|
+
...b
|
|
57
63
|
}
|
|
58
64
|
) });
|
|
59
65
|
};
|
|
60
66
|
export {
|
|
61
|
-
|
|
67
|
+
T as NumberControl
|
|
62
68
|
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { ControlFC } from '../base-control/props';
|
|
3
|
+
interface PasswordControlProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "type"> {
|
|
4
|
+
onChangeValue?: (value: string) => void;
|
|
5
|
+
}
|
|
6
|
+
export declare const PasswordControl: ControlFC<PasswordControlProps>;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
|
+
import { noop as c } from "../../../utils/noop.js";
|
|
3
|
+
import * as e from "react";
|
|
4
|
+
import { useState as E, useRef as g } from "react";
|
|
5
|
+
import { w as o } from "../../../SSRBase.es-BUXS72ra.js";
|
|
6
|
+
import { BaseControl as f } from "../base-control/index.js";
|
|
7
|
+
import { useBaseControlProps as M } from "../base-control/props.js";
|
|
8
|
+
import '../../../assets/index11.css';const L = /* @__PURE__ */ new Map([
|
|
9
|
+
[
|
|
10
|
+
"bold",
|
|
11
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M251,123.13c-.37-.81-9.13-20.26-28.48-39.61C196.63,57.67,164,44,128,44S59.37,57.67,33.51,83.52C14.16,102.87,5.4,122.32,5,123.13a12.08,12.08,0,0,0,0,9.75c.37.82,9.13,20.26,28.49,39.61C59.37,198.34,92,212,128,212s68.63-13.66,94.48-39.51c19.36-19.35,28.12-38.79,28.49-39.61A12.08,12.08,0,0,0,251,123.13Zm-46.06,33C183.47,177.27,157.59,188,128,188s-55.47-10.73-76.91-31.88A130.36,130.36,0,0,1,29.52,128,130.45,130.45,0,0,1,51.09,99.89C72.54,78.73,98.41,68,128,68s55.46,10.73,76.91,31.89A130.36,130.36,0,0,1,226.48,128,130.45,130.45,0,0,1,204.91,156.12ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,64a20,20,0,1,1,20-20A20,20,0,0,1,128,148Z" }))
|
|
12
|
+
],
|
|
13
|
+
[
|
|
14
|
+
"duotone",
|
|
15
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
16
|
+
"path",
|
|
17
|
+
{
|
|
18
|
+
d: "M128,56C48,56,16,128,16,128s32,72,112,72,112-72,112-72S208,56,128,56Zm0,112a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z",
|
|
19
|
+
opacity: "0.2"
|
|
20
|
+
}
|
|
21
|
+
), /* @__PURE__ */ e.createElement("path", { d: "M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z" }))
|
|
22
|
+
],
|
|
23
|
+
[
|
|
24
|
+
"fill",
|
|
25
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,168a40,40,0,1,1,40-40A40,40,0,0,1,128,168Z" }))
|
|
26
|
+
],
|
|
27
|
+
[
|
|
28
|
+
"light",
|
|
29
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M245.48,125.57c-.34-.78-8.66-19.23-27.24-37.81C201,70.54,171.38,50,128,50S55,70.54,37.76,87.76c-18.58,18.58-26.9,37-27.24,37.81a6,6,0,0,0,0,4.88c.34.77,8.66,19.22,27.24,37.8C55,185.47,84.62,206,128,206s73-20.53,90.24-37.75c18.58-18.58,26.9-37,27.24-37.8A6,6,0,0,0,245.48,125.57ZM128,194c-31.38,0-58.78-11.42-81.45-33.93A134.77,134.77,0,0,1,22.69,128,134.56,134.56,0,0,1,46.55,95.94C69.22,73.42,96.62,62,128,62s58.78,11.42,81.45,33.94A134.56,134.56,0,0,1,233.31,128C226.94,140.21,195,194,128,194Zm0-112a46,46,0,1,0,46,46A46.06,46.06,0,0,0,128,82Zm0,80a34,34,0,1,1,34-34A34,34,0,0,1,128,162Z" }))
|
|
30
|
+
],
|
|
31
|
+
[
|
|
32
|
+
"regular",
|
|
33
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M247.31,124.76c-.35-.79-8.82-19.58-27.65-38.41C194.57,61.26,162.88,48,128,48S61.43,61.26,36.34,86.35C17.51,105.18,9,124,8.69,124.76a8,8,0,0,0,0,6.5c.35.79,8.82,19.57,27.65,38.4C61.43,194.74,93.12,208,128,208s66.57-13.26,91.66-38.34c18.83-18.83,27.3-37.61,27.65-38.4A8,8,0,0,0,247.31,124.76ZM128,192c-30.78,0-57.67-11.19-79.93-33.25A133.47,133.47,0,0,1,25,128,133.33,133.33,0,0,1,48.07,97.25C70.33,75.19,97.22,64,128,64s57.67,11.19,79.93,33.25A133.46,133.46,0,0,1,231.05,128C223.84,141.46,192.43,192,128,192Zm0-112a48,48,0,1,0,48,48A48.05,48.05,0,0,0,128,80Zm0,80a32,32,0,1,1,32-32A32,32,0,0,1,128,160Z" }))
|
|
34
|
+
],
|
|
35
|
+
[
|
|
36
|
+
"thin",
|
|
37
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M243.66,126.38c-.34-.76-8.52-18.89-26.83-37.2C199.87,72.22,170.7,52,128,52S56.13,72.22,39.17,89.18c-18.31,18.31-26.49,36.44-26.83,37.2a4.08,4.08,0,0,0,0,3.25c.34.77,8.52,18.89,26.83,37.2,17,17,46.14,37.17,88.83,37.17s71.87-20.21,88.83-37.17c18.31-18.31,26.49-36.43,26.83-37.2A4.08,4.08,0,0,0,243.66,126.38Zm-32.7,35c-23.07,23-51,34.62-83,34.62s-59.89-11.65-83-34.62A135.71,135.71,0,0,1,20.44,128,135.69,135.69,0,0,1,45,94.62C68.11,71.65,96,60,128,60s59.89,11.65,83,34.62A135.79,135.79,0,0,1,235.56,128,135.71,135.71,0,0,1,211,161.38ZM128,84a44,44,0,1,0,44,44A44.05,44.05,0,0,0,128,84Zm0,80a36,36,0,1,1,36-36A36,36,0,0,1,128,164Z" }))
|
|
38
|
+
]
|
|
39
|
+
]), s = e.forwardRef((t, a) => /* @__PURE__ */ e.createElement(o, { ref: a, ...t, weights: L }));
|
|
40
|
+
s.displayName = "EyeIcon";
|
|
41
|
+
const w = /* @__PURE__ */ new Map([
|
|
42
|
+
[
|
|
43
|
+
"bold",
|
|
44
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M234.42,162A12,12,0,1,1,213.58,174l-16.86-29.5a127.19,127.19,0,0,1-30.17,13.86L171.84,190a12,12,0,0,1-9.87,13.8,11.22,11.22,0,0,1-2,.17,12,12,0,0,1-11.82-10L143,163.17a136.5,136.5,0,0,1-30.06,0L107.84,194A12,12,0,0,1,96,204a11.22,11.22,0,0,1-2-.17A12,12,0,0,1,84.16,190l5.29-31.72a127.19,127.19,0,0,1-30.17-13.86L42.42,174A12,12,0,1,1,21.58,162L40,129.85a159.73,159.73,0,0,1-17.31-18.31A12,12,0,0,1,41.34,96.46C57.38,116.32,85.44,140,128,140s70.62-23.68,86.66-43.54a12,12,0,0,1,18.67,15.08A159.73,159.73,0,0,1,216,129.85Z" }))
|
|
45
|
+
],
|
|
46
|
+
[
|
|
47
|
+
"duotone",
|
|
48
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement(
|
|
49
|
+
"path",
|
|
50
|
+
{
|
|
51
|
+
d: "M224,104c-16.81,20.81-47.63,48-96,48s-79.19-27.19-96-48c16.81-20.81,47.63-48,96-48S207.19,83.19,224,104Z",
|
|
52
|
+
opacity: "0.2"
|
|
53
|
+
}
|
|
54
|
+
), /* @__PURE__ */ e.createElement("path", { d: "M228,175a8,8,0,0,1-10.92-3l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a153.47,153.47,0,0,1-19.3-20A8,8,0,1,1,38.22,99c16.6,20.54,45.64,45,89.78,45s73.18-24.49,89.78-45A8,8,0,1,1,230.22,109a153.47,153.47,0,0,1-19.3,20l20,35A8,8,0,0,1,228,175Z" }))
|
|
55
|
+
],
|
|
56
|
+
[
|
|
57
|
+
"fill",
|
|
58
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M230.94,164A8,8,0,1,1,217.05,172l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a152.8,152.8,0,0,1-19.3-20,8,8,0,0,1,0-10.06C44.56,75.72,77.55,48,128,48s83.44,27.72,102.22,51a8,8,0,0,1,0,10.06,152.8,152.8,0,0,1-19.3,20Z" }))
|
|
59
|
+
],
|
|
60
|
+
[
|
|
61
|
+
"light",
|
|
62
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M229.21,165a6,6,0,0,1-10.42,6l-20-35.08a122,122,0,0,1-39,18.09l6.17,37a6,6,0,0,1-4.93,6.91,6.85,6.85,0,0,1-1,.08,6,6,0,0,1-5.91-5L148,156.44a128.86,128.86,0,0,1-40,0L101.92,193A6,6,0,0,1,96,198a6.85,6.85,0,0,1-1-.08A6,6,0,0,1,90.08,191l6.17-37a122,122,0,0,1-39-18.09L37.21,171a6,6,0,1,1-10.42-6l20.85-36.48a152,152,0,0,1-20.31-20.77,6,6,0,0,1,9.34-7.54C53.54,121.11,83.07,146,128,146s74.46-24.89,91.33-45.77a6,6,0,0,1,9.34,7.54,152,152,0,0,1-20.31,20.77Z" }))
|
|
63
|
+
],
|
|
64
|
+
[
|
|
65
|
+
"regular",
|
|
66
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M228,175a8,8,0,0,1-10.92-3l-19-33.2A123.23,123.23,0,0,1,162,155.46l5.87,35.22a8,8,0,0,1-6.58,9.21A8.4,8.4,0,0,1,160,200a8,8,0,0,1-7.88-6.69l-5.77-34.58a133.06,133.06,0,0,1-36.68,0l-5.77,34.58A8,8,0,0,1,96,200a8.4,8.4,0,0,1-1.32-.11,8,8,0,0,1-6.58-9.21L94,155.46a123.23,123.23,0,0,1-36.06-16.69L39,172A8,8,0,1,1,25.06,164l20-35a153.47,153.47,0,0,1-19.3-20A8,8,0,1,1,38.22,99c16.6,20.54,45.64,45,89.78,45s73.18-24.49,89.78-45A8,8,0,1,1,230.22,109a153.47,153.47,0,0,1-19.3,20l20,35A8,8,0,0,1,228,175Z" }))
|
|
67
|
+
],
|
|
68
|
+
[
|
|
69
|
+
"thin",
|
|
70
|
+
/* @__PURE__ */ e.createElement(e.Fragment, null, /* @__PURE__ */ e.createElement("path", { d: "M226,171.47a3.92,3.92,0,0,1-2,.53,4,4,0,0,1-3.47-2l-21.15-37a120,120,0,0,1-41.91,19.53L164,191.34a4,4,0,0,1-3.29,4.6,3.79,3.79,0,0,1-.67.06,4,4,0,0,1-3.94-3.34l-6.41-38.5a128.17,128.17,0,0,1-43.28,0L100,192.66A4,4,0,0,1,96,196a3.88,3.88,0,0,1-.67-.06,4,4,0,0,1-3.29-4.6l6.48-38.83A120,120,0,0,1,56.62,133L35.47,170A4,4,0,0,1,32,172a3.92,3.92,0,0,1-2-.53A4,4,0,0,1,28.53,166l21.68-37.94a148.24,148.24,0,0,1-21.32-21.56,4,4,0,1,1,6.22-5C52.25,122.71,82.29,148,128,148s75.75-25.29,92.89-46.51a4,4,0,1,1,6.22,5,148.24,148.24,0,0,1-21.32,21.56L227.47,166A4,4,0,0,1,226,171.47Z" }))
|
|
71
|
+
]
|
|
72
|
+
]), m = e.forwardRef((t, a) => /* @__PURE__ */ e.createElement(o, { ref: a, ...t, weights: w }));
|
|
73
|
+
m.displayName = "EyeClosedIcon";
|
|
74
|
+
const _ = (t) => {
|
|
75
|
+
const [a, A] = E(!1), r = g(null), p = () => {
|
|
76
|
+
const n = () => {
|
|
77
|
+
A((Z) => !Z), r.current.focus();
|
|
78
|
+
};
|
|
79
|
+
return /* @__PURE__ */ l(
|
|
80
|
+
"button",
|
|
81
|
+
{
|
|
82
|
+
type: "button",
|
|
83
|
+
className: "component-password-control__btn",
|
|
84
|
+
"aria-label": "Show Password",
|
|
85
|
+
"aria-pressed": a ? "true" : "false",
|
|
86
|
+
"aria-controls": t.id,
|
|
87
|
+
onClick: n,
|
|
88
|
+
children: a ? /* @__PURE__ */ l(m, {}) : /* @__PURE__ */ l(s, {})
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}, { baseProps: C, controlProps: d } = M(t, {
|
|
92
|
+
className: "component-password-control",
|
|
93
|
+
suffix: /* @__PURE__ */ l(p, {})
|
|
94
|
+
}), {
|
|
95
|
+
onChangeValue: i = c,
|
|
96
|
+
onChange: u = c,
|
|
97
|
+
...h
|
|
98
|
+
} = d;
|
|
99
|
+
return /* @__PURE__ */ l(f, { ...C, children: /* @__PURE__ */ l(
|
|
100
|
+
"input",
|
|
101
|
+
{
|
|
102
|
+
className: "component-password-control__input",
|
|
103
|
+
onChange: (n) => {
|
|
104
|
+
i(n.currentTarget.value), u(n);
|
|
105
|
+
},
|
|
106
|
+
type: a ? "text" : "password",
|
|
107
|
+
ref: r,
|
|
108
|
+
...h
|
|
109
|
+
}
|
|
110
|
+
) });
|
|
111
|
+
};
|
|
112
|
+
export {
|
|
113
|
+
_ as PasswordControl
|
|
114
|
+
};
|
|
@@ -5,13 +5,13 @@ import { e as qt } from "../../../CaretDown.es-eySGHzTJ.js";
|
|
|
5
5
|
import * as M from "react";
|
|
6
6
|
import { createContext as ge, useMemo as Ee, useState as de, useRef as le, useEffect as ae, useCallback as Je, useContext as Ve, startTransition as zt } from "react";
|
|
7
7
|
import { w as Yt } from "../../../SSRBase.es-BUXS72ra.js";
|
|
8
|
-
import { g as Gt } from "../../../_commonjsHelpers-
|
|
8
|
+
import { g as Gt } from "../../../_commonjsHelpers-DaMA6jEr.js";
|
|
9
9
|
import { BaseControl as Jt } from "../base-control/index.js";
|
|
10
10
|
import { useBaseControlProps as Qt } from "../base-control/props.js";
|
|
11
|
-
import { c as Qe, P as Xt, C as Xe, a as en, b as et, d as te, _ as ne, q as tn, i as me, j as R, k as x, t as tt, f as oe, e as re, K as nt, x as ue, y as D, z as Z, M as Me, u as L, g as G,
|
|
12
|
-
import { d as it, c as ct, t as dt, e as mt, k as ft, u as vt, f as pt, j as Sn, h as bt, i as ht, g as St, b as Cn, a as gn, l as En, C as On, m as Ct, n as gt, o as xn, p as yn, q as An, r as In } from "../../../T7VMP3TM-
|
|
13
|
-
import { m as Et, o as wn, t as Ot, c as xt, f as J, s as Q, i as yt, g as At, d as be, j as It, a as wt, b as Pt, u as Pn, p as Vn, k as _e } from "../../../UQQRIHDV-
|
|
14
|
-
import '../../../assets/
|
|
11
|
+
import { c as Qe, P as Xt, C as Xe, a as en, b as et, d as te, _ as ne, q as tn, i as me, j as R, k as x, t as tt, f as oe, e as re, K as nt, x as ue, y as D, z as Z, M as Me, u as L, g as G, G as he, s as Ae, O as ot, a2 as rt, m as lt, r as Ie, J as nn, h as on, l as st, n as at, ag as rn, ah as ut, a3 as ln, D as sn, a6 as an, ai as un, aj as cn, ak as dn, ac as Be, al as Pe, U as mn, af as fn, v as ke, H as vn, a4 as pn, am as bn, W as hn } from "../../../P7GR5CS5-qyeuZVEs.js";
|
|
12
|
+
import { d as it, c as ct, t as dt, e as mt, k as ft, u as vt, f as pt, j as Sn, h as bt, i as ht, g as St, b as Cn, a as gn, l as En, C as On, m as Ct, n as gt, o as xn, p as yn, q as An, r as In } from "../../../T7VMP3TM-BxgFbvdx.js";
|
|
13
|
+
import { m as Et, o as wn, t as Ot, c as xt, f as J, s as Q, i as yt, g as At, d as be, j as It, a as wt, b as Pt, u as Pn, p as Vn, k as _e } from "../../../UQQRIHDV-BGs025hb.js";
|
|
14
|
+
import '../../../assets/index12.css';const kn = /* @__PURE__ */ new Map([
|
|
15
15
|
[
|
|
16
16
|
"bold",
|
|
17
17
|
/* @__PURE__ */ M.createElement(M.Fragment, null, /* @__PURE__ */ M.createElement("path", { d: "M232.49,215.51,185,168a92.12,92.12,0,1,0-17,17l47.53,47.54a12,12,0,0,0,17-17ZM44,112a68,68,0,1,1,68,68A68.07,68.07,0,0,1,44,112Z" }))
|
|
@@ -285,7 +285,7 @@ var Zn = te(function(n) {
|
|
|
285
285
|
ArrowUp: Se,
|
|
286
286
|
ArrowLeft: y === "left",
|
|
287
287
|
ArrowRight: y === "right"
|
|
288
|
-
})[S.key] && d(S) && (S.preventDefault(), e.move(X),
|
|
288
|
+
})[S.key] && d(S) && (S.preventDefault(), e.move(X), rt(S.currentTarget, "keyup", e.show));
|
|
289
289
|
});
|
|
290
290
|
s = he(
|
|
291
291
|
s,
|
|
@@ -369,7 +369,7 @@ var Zn = te(function(n) {
|
|
|
369
369
|
role: "combobox",
|
|
370
370
|
"aria-autocomplete": "none",
|
|
371
371
|
"aria-labelledby": U,
|
|
372
|
-
"aria-haspopup":
|
|
372
|
+
"aria-haspopup": ot(P, "listbox"),
|
|
373
373
|
"data-autofill": $ || void 0,
|
|
374
374
|
"data-name": r,
|
|
375
375
|
children: h
|
|
@@ -915,7 +915,7 @@ var bo = te(
|
|
|
915
915
|
}), Ke = g.onMouseDown, Nt = L(
|
|
916
916
|
d ?? (() => !!(e != null && e.getState().includesBaseElement))
|
|
917
917
|
), Tt = L(p), Lt = L(s ?? pe), Rt = G((i) => {
|
|
918
|
-
Ke == null || Ke(i), !i.defaultPrevented && (i.button || i.ctrlKey || e && (Nt(i) && e.setActiveId(null), Tt(i) && e.setValue(X), Lt(i) &&
|
|
918
|
+
Ke == null || Ke(i), !i.defaultPrevented && (i.button || i.ctrlKey || e && (Nt(i) && e.setActiveId(null), Tt(i) && e.setValue(X), Lt(i) && rt(i.currentTarget, "mouseup", e.show)));
|
|
919
919
|
}), He = g.onKeyDown, Kt = L(C ?? pe), Ht = G((i) => {
|
|
920
920
|
if (He == null || He(i), i.repeat || (w.current = !1), i.defaultPrevented || i.ctrlKey || i.altKey || i.shiftKey || i.metaKey || !e) return;
|
|
921
921
|
const { open: A } = e.getState();
|
|
@@ -927,7 +927,7 @@ var bo = te(
|
|
|
927
927
|
id: Ft,
|
|
928
928
|
role: "combobox",
|
|
929
929
|
"aria-autocomplete": Bt,
|
|
930
|
-
"aria-haspopup":
|
|
930
|
+
"aria-haspopup": ot(z, "listbox"),
|
|
931
931
|
"aria-expanded": q,
|
|
932
932
|
"aria-controls": z == null ? void 0 : z.id,
|
|
933
933
|
"data-active-item": jt || void 0,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { g as lr } from "../../_commonjsHelpers-
|
|
1
|
+
import { g as lr } from "../../_commonjsHelpers-DaMA6jEr.js";
|
|
2
2
|
function tr(T) {
|
|
3
3
|
throw new Error('Could not dynamically require "' + T + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
|
|
4
4
|
}
|
|
@@ -1,24 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { cn as
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
2
|
+
import { cn as u } from "../../../utils/css.js";
|
|
3
|
+
import { useRef as f, useEffect as m } from "react";
|
|
4
|
+
import { useForm as a } from "../types/form.js";
|
|
5
|
+
const h = ({
|
|
6
|
+
className: o,
|
|
7
|
+
index: t,
|
|
8
|
+
children: c,
|
|
9
|
+
...n
|
|
9
10
|
}) => {
|
|
10
|
-
const { step:
|
|
11
|
-
return
|
|
11
|
+
const { step: r } = a(), e = f(null);
|
|
12
|
+
return m(() => {
|
|
13
|
+
r.current === t && e.current && e.current.querySelectorAll(
|
|
14
|
+
'button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])'
|
|
15
|
+
)[0].focus();
|
|
16
|
+
}, [r.current, t]), /* @__PURE__ */ s(
|
|
12
17
|
"div",
|
|
13
18
|
{
|
|
14
|
-
className:
|
|
15
|
-
hidden:
|
|
16
|
-
inert:
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
className: u("component-form-step", o),
|
|
20
|
+
hidden: r.current !== t,
|
|
21
|
+
inert: r.current !== t,
|
|
22
|
+
ref: e,
|
|
23
|
+
...n,
|
|
24
|
+
children: c
|
|
19
25
|
}
|
|
20
26
|
);
|
|
21
27
|
};
|
|
22
28
|
export {
|
|
23
|
-
|
|
29
|
+
h as FormStep
|
|
24
30
|
};
|
|
@@ -15,7 +15,7 @@ export type FieldValues<TFields extends Fields<any>> = {
|
|
|
15
15
|
[Key in keyof TFields]: z.infer<TFields[Key]["validation"]>;
|
|
16
16
|
};
|
|
17
17
|
export type Values<TShape extends FieldsShape> = {
|
|
18
|
-
[Key in keyof TShape]: TShape[Key];
|
|
18
|
+
[Key in keyof TShape]: TShape[Key] | undefined;
|
|
19
19
|
};
|
|
20
20
|
export declare const createFields: <TShape extends FieldsShape>(shape: Fields<TShape>) => Fields<TShape>;
|
|
21
21
|
export declare const getDefaultValues: <TShape extends FieldsShape>(fields: Fields<TShape>) => Values<TShape>;
|
|
@@ -20,7 +20,7 @@ export type FormContext<TShape extends FieldsShape, TKeys extends keyof TShape =
|
|
|
20
20
|
};
|
|
21
21
|
control: <TKey extends TKeys = TKeys, TValue extends TValues[TKey] = TValues[TKey]>(name: TKey) => {
|
|
22
22
|
value: TValue;
|
|
23
|
-
onChangeValue: (value
|
|
23
|
+
onChangeValue: (value?: TValue) => void;
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
export declare const FormContext: import('react').Context<FormContext<any, string | number | symbol, Values<any>>>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export { Breadcrumbs } from './breadcrumbs';
|
|
2
2
|
export { Button } from './button';
|
|
3
|
-
export
|
|
3
|
+
export * from './controls';
|
|
4
4
|
export { DataTable, ExampleDataTable } from './data-table';
|
|
5
5
|
export { createForm, Form } from './form';
|
|
6
|
+
export { MarkdownEditor } from './markdown';
|
|
6
7
|
export { Menu } from './menu';
|
|
7
8
|
export { Progress } from './progress';
|
package/dist/components/index.js
CHANGED
|
@@ -3,29 +3,33 @@ import { Button as m } from "./button/index.js";
|
|
|
3
3
|
import { BaseControl as p } from "./controls/base-control/index.js";
|
|
4
4
|
import { ChoiceControl as a } from "./controls/choice-control/index.js";
|
|
5
5
|
import { NumberControl as n } from "./controls/number-control/index.js";
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
6
|
+
import { PasswordControl as s } from "./controls/password-control/index.js";
|
|
7
|
+
import { SelectControl as b } from "./controls/select-control/index.js";
|
|
8
|
+
import { TextControl as d } from "./controls/text-control/index.js";
|
|
9
|
+
import { TextareaControl as g } from "./controls/textarea-control/index.js";
|
|
10
|
+
import { ToggleControl as i } from "./controls/toggle-control/index.js";
|
|
11
|
+
import { DataTable as D, ExampleDataTable as E } from "./data-table/index.js";
|
|
12
|
+
import { Form as M } from "./form/components/index.js";
|
|
13
|
+
import { createForm as h } from "./form/types/form.js";
|
|
14
|
+
import { MarkdownEditor as N } from "./markdown/index.js";
|
|
15
|
+
import { Menu as j } from "./menu/index.js";
|
|
16
|
+
import { Progress as v } from "./progress/index.js";
|
|
15
17
|
export {
|
|
16
18
|
p as BaseControl,
|
|
17
19
|
e as Breadcrumbs,
|
|
18
20
|
m as Button,
|
|
19
21
|
a as ChoiceControl,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
D as DataTable,
|
|
23
|
+
E as ExampleDataTable,
|
|
24
|
+
M as Form,
|
|
25
|
+
N as MarkdownEditor,
|
|
26
|
+
j as Menu,
|
|
24
27
|
n as NumberControl,
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
28
|
+
s as PasswordControl,
|
|
29
|
+
v as Progress,
|
|
30
|
+
b as SelectControl,
|
|
31
|
+
d as TextControl,
|
|
32
|
+
g as TextareaControl,
|
|
33
|
+
i as ToggleControl,
|
|
34
|
+
h as createForm
|
|
31
35
|
};
|