@dgshahr/ui-kit 0.0.3 → 0.0.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.
- package/dist/Accordion/AccordionGroup.d.ts.map +1 -1
- package/dist/Accordion/index.cjs +1 -1
- package/dist/Accordion/index.js +1 -1
- package/dist/Alert/index.cjs +73 -73
- package/dist/Alert/index.d.ts.map +1 -1
- package/dist/Alert/index.js +73 -73
- package/dist/Breadcrumb/index.cjs +1 -1
- package/dist/Breadcrumb/index.d.ts.map +1 -1
- package/dist/Breadcrumb/index.js +1 -1
- package/dist/Button/index.d.ts.map +1 -1
- package/dist/Form/Checkbox/index.cjs +4 -4
- package/dist/Form/Checkbox/index.d.ts +1 -1
- package/dist/Form/Checkbox/index.d.ts.map +1 -1
- package/dist/Form/Checkbox/index.js +4 -4
- package/dist/Form/Input/index.cjs +1 -1
- package/dist/Form/Input/index.d.ts.map +1 -1
- package/dist/Form/Input/index.js +1 -1
- package/dist/Form/RadioButton/index.d.ts +1 -1
- package/dist/Form/RadioButton/index.d.ts.map +1 -1
- package/dist/Form/Textarea/index.cjs +1 -1
- package/dist/Form/Textarea/index.js +1 -1
- package/dist/Form/Wrappers/TextFieldWrapper/FieldBottomInfo.d.ts.map +1 -1
- package/dist/Form/Wrappers/TextFieldWrapper/TextFieldWrapper.d.ts.map +1 -1
- package/dist/Pagination/index.cjs +3 -3
- package/dist/Pagination/index.js +3 -3
- package/dist/Slide-BDD1_RXD.js +215 -0
- package/dist/Slide-Q5_7SCZR.cjs +218 -0
- package/dist/Slider/Slide.d.ts.map +1 -1
- package/dist/Slider/Slider.d.ts.map +1 -1
- package/dist/Slider/index.cjs +1 -1
- package/dist/Slider/index.js +1 -1
- package/dist/assets/Button.css +12 -6
- package/dist/assets/styles.css +12 -6
- package/dist/index.cjs +2 -2
- package/dist/index.js +2 -2
- package/package.json +114 -69
- package/dist/Slide-6SD8mElS.js +0 -198
- package/dist/Slide-BiCQh7AV.cjs +0 -201
- package/dist/{AccordionItem-BBbE__nk.js → AccordionItem-DN7bi5kw.js} +1 -1
- package/dist/{AccordionItem-BOXOB5GK.cjs → AccordionItem-lq6ehxKe.cjs} +1 -1
- package/dist/{TextFieldWrapper-D3oaEPmc.js → TextFieldWrapper--hxpmYuz.js} +32 -32
- package/dist/{TextFieldWrapper-C80myx6j.cjs → TextFieldWrapper-DaoZxs1E.cjs} +32 -32
|
@@ -1,39 +1,8 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
|
-
import { useState, useEffect } from 'react';
|
|
3
2
|
import { c as clsx } from './clsx-ChV9xqsO.js';
|
|
3
|
+
import { useState, useEffect } from 'react';
|
|
4
4
|
import './assets/styles.css';/* empty css */
|
|
5
5
|
|
|
6
|
-
const FieldLabel = (props) => {
|
|
7
|
-
const { link, labelContent, required } = props;
|
|
8
|
-
const showLabel = Boolean(labelContent || link?.href);
|
|
9
|
-
if (showLabel)
|
|
10
|
-
return /* @__PURE__ */ jsxs(
|
|
11
|
-
"div",
|
|
12
|
-
{
|
|
13
|
-
className: clsx("flex mb-2", {
|
|
14
|
-
"justify-between": labelContent && link?.href,
|
|
15
|
-
"justify-start": labelContent && !link?.href,
|
|
16
|
-
"justify-end": !labelContent && link?.href
|
|
17
|
-
}),
|
|
18
|
-
children: [
|
|
19
|
-
labelContent && /* @__PURE__ */ jsxs("label", { className: "px-0 text-sm font-bold text-right md:mx-0", children: [
|
|
20
|
-
labelContent,
|
|
21
|
-
required && /* @__PURE__ */ jsx("span", { className: "ms-2 text-error-500", children: "*" })
|
|
22
|
-
] }),
|
|
23
|
-
link?.href && /* @__PURE__ */ jsx(
|
|
24
|
-
"a",
|
|
25
|
-
{
|
|
26
|
-
href: link.href,
|
|
27
|
-
className: "font-button-small text-primary-400",
|
|
28
|
-
children: link.cnotent
|
|
29
|
-
}
|
|
30
|
-
)
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
);
|
|
34
|
-
return null;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
6
|
const InfoCircleOutlineIcon = (props) => /* @__PURE__ */ jsxs(
|
|
38
7
|
"svg",
|
|
39
8
|
{
|
|
@@ -104,6 +73,37 @@ const FieldBottomInfo = (props) => {
|
|
|
104
73
|
return null;
|
|
105
74
|
};
|
|
106
75
|
|
|
76
|
+
const FieldLabel = (props) => {
|
|
77
|
+
const { link, labelContent, required } = props;
|
|
78
|
+
const showLabel = Boolean(labelContent || link?.href);
|
|
79
|
+
if (showLabel)
|
|
80
|
+
return /* @__PURE__ */ jsxs(
|
|
81
|
+
"div",
|
|
82
|
+
{
|
|
83
|
+
className: clsx("flex mb-2", {
|
|
84
|
+
"justify-between": labelContent && link?.href,
|
|
85
|
+
"justify-start": labelContent && !link?.href,
|
|
86
|
+
"justify-end": !labelContent && link?.href
|
|
87
|
+
}),
|
|
88
|
+
children: [
|
|
89
|
+
labelContent && /* @__PURE__ */ jsxs("label", { className: "px-0 text-sm font-bold text-right md:mx-0", children: [
|
|
90
|
+
labelContent,
|
|
91
|
+
required && /* @__PURE__ */ jsx("span", { className: "ms-2 text-error-500", children: "*" })
|
|
92
|
+
] }),
|
|
93
|
+
link?.href && /* @__PURE__ */ jsx(
|
|
94
|
+
"a",
|
|
95
|
+
{
|
|
96
|
+
href: link.href,
|
|
97
|
+
className: "font-button-small text-primary-400",
|
|
98
|
+
children: link.cnotent
|
|
99
|
+
}
|
|
100
|
+
)
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
);
|
|
104
|
+
return null;
|
|
105
|
+
};
|
|
106
|
+
|
|
107
107
|
const TextFieldWrapper = (props) => {
|
|
108
108
|
const {
|
|
109
109
|
labelContent,
|
|
@@ -1,41 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
require('./assets/styles.css');const jsxRuntime = require('react/jsx-runtime');
|
|
4
|
-
const react = require('react');
|
|
5
4
|
const clsx = require('./clsx-BtxeOLZW.cjs');
|
|
5
|
+
const react = require('react');
|
|
6
6
|
;/* empty css */
|
|
7
7
|
|
|
8
|
-
const FieldLabel = (props) => {
|
|
9
|
-
const { link, labelContent, required } = props;
|
|
10
|
-
const showLabel = Boolean(labelContent || link?.href);
|
|
11
|
-
if (showLabel)
|
|
12
|
-
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
13
|
-
"div",
|
|
14
|
-
{
|
|
15
|
-
className: clsx.clsx("flex mb-2", {
|
|
16
|
-
"justify-between": labelContent && link?.href,
|
|
17
|
-
"justify-start": labelContent && !link?.href,
|
|
18
|
-
"justify-end": !labelContent && link?.href
|
|
19
|
-
}),
|
|
20
|
-
children: [
|
|
21
|
-
labelContent && /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "px-0 text-sm font-bold text-right md:mx-0", children: [
|
|
22
|
-
labelContent,
|
|
23
|
-
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ms-2 text-error-500", children: "*" })
|
|
24
|
-
] }),
|
|
25
|
-
link?.href && /* @__PURE__ */ jsxRuntime.jsx(
|
|
26
|
-
"a",
|
|
27
|
-
{
|
|
28
|
-
href: link.href,
|
|
29
|
-
className: "font-button-small text-primary-400",
|
|
30
|
-
children: link.cnotent
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
);
|
|
36
|
-
return null;
|
|
37
|
-
};
|
|
38
|
-
|
|
39
8
|
const InfoCircleOutlineIcon = (props) => /* @__PURE__ */ jsxRuntime.jsxs(
|
|
40
9
|
"svg",
|
|
41
10
|
{
|
|
@@ -106,6 +75,37 @@ const FieldBottomInfo = (props) => {
|
|
|
106
75
|
return null;
|
|
107
76
|
};
|
|
108
77
|
|
|
78
|
+
const FieldLabel = (props) => {
|
|
79
|
+
const { link, labelContent, required } = props;
|
|
80
|
+
const showLabel = Boolean(labelContent || link?.href);
|
|
81
|
+
if (showLabel)
|
|
82
|
+
return /* @__PURE__ */ jsxRuntime.jsxs(
|
|
83
|
+
"div",
|
|
84
|
+
{
|
|
85
|
+
className: clsx.clsx("flex mb-2", {
|
|
86
|
+
"justify-between": labelContent && link?.href,
|
|
87
|
+
"justify-start": labelContent && !link?.href,
|
|
88
|
+
"justify-end": !labelContent && link?.href
|
|
89
|
+
}),
|
|
90
|
+
children: [
|
|
91
|
+
labelContent && /* @__PURE__ */ jsxRuntime.jsxs("label", { className: "px-0 text-sm font-bold text-right md:mx-0", children: [
|
|
92
|
+
labelContent,
|
|
93
|
+
required && /* @__PURE__ */ jsxRuntime.jsx("span", { className: "ms-2 text-error-500", children: "*" })
|
|
94
|
+
] }),
|
|
95
|
+
link?.href && /* @__PURE__ */ jsxRuntime.jsx(
|
|
96
|
+
"a",
|
|
97
|
+
{
|
|
98
|
+
href: link.href,
|
|
99
|
+
className: "font-button-small text-primary-400",
|
|
100
|
+
children: link.cnotent
|
|
101
|
+
}
|
|
102
|
+
)
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
);
|
|
106
|
+
return null;
|
|
107
|
+
};
|
|
108
|
+
|
|
109
109
|
const TextFieldWrapper = (props) => {
|
|
110
110
|
const {
|
|
111
111
|
labelContent,
|