aristid-ds 1.0.1 → 1.1.0-a203e2d
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 +33 -0
- package/README.md +9 -1
- package/dist/Kit/App/index.js +34 -34
- package/dist/Kit/DataDisplay/Badge/index.js +13 -13
- package/dist/Kit/DataDisplay/Card/index.js +1 -1
- package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemCard/index.js +1 -1
- package/dist/Kit/DataDisplay/ItemList/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/index.js +1 -1
- package/dist/Kit/DataEntry/AutoComplete/index.js +25 -17
- package/dist/Kit/DataEntry/Checkbox/index.d.ts +2 -2
- package/dist/Kit/DataEntry/Checkbox/index.js +4 -4
- package/dist/Kit/DataEntry/ColorPicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +4 -4
- package/dist/Kit/DataEntry/DatePicker/index.js +20 -20
- package/dist/Kit/DataEntry/Input/Input.d.ts +1 -1
- package/dist/Kit/DataEntry/Input/Password.d.ts +1 -1
- package/dist/Kit/DataEntry/Input/TextArea.d.ts +1 -1
- package/dist/Kit/DataEntry/Input/index.js +27 -27
- package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/Radio/context.d.ts +1 -1
- package/dist/Kit/DataEntry/Radio/index.d.ts +1 -1
- package/dist/Kit/DataEntry/Radio/index.js +6 -6
- package/dist/Kit/DataEntry/Rate/index.d.ts +1 -1
- package/dist/Kit/DataEntry/Select/index.d.ts +1 -1
- package/dist/Kit/DataEntry/Select/index.js +9 -9
- package/dist/Kit/DataEntry/Slider/index.d.ts +1 -1
- package/dist/Kit/DataEntry/Upload/Upload.d.ts +1 -1
- package/dist/Kit/DataEntry/index.js +2 -2
- package/dist/Kit/Feedback/Modal/index.js +1 -1
- package/dist/Kit/Feedback/Notification/index.js +1 -1
- package/dist/Kit/Feedback/SnackBar/index.js +4 -4
- package/dist/Kit/Feedback/index.js +1 -1
- package/dist/Kit/General/Typography/index.js +1 -1
- package/dist/Kit/Layout/Space/index.d.ts +1 -1
- package/dist/Kit/Navigation/Header/index.js +1 -1
- package/dist/Kit/Navigation/Menu/index.js +1 -1
- package/dist/Kit/Navigation/index.js +1 -1
- package/dist/Kit/index.js +2 -2
- package/dist/assets/InputWrapper.css +1 -1
- package/dist/assets/index19.css +1 -1
- package/dist/assets/index22.css +1 -1
- package/dist/assets/index25.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/chunks/{InputWrapper.sHItZx7l.js → InputWrapper.doEpNzyG.js} +4 -4
- package/dist/chunks/{KitNotification.CO3zqMt0.js → KitNotification.3hnPgsKv.js} +1 -1
- package/dist/chunks/{SnackBarProvider.v49b6mkx.js → SnackBarProvider.i0xeV0xG.js} +6 -6
- package/dist/chunks/{index.kVWdzwin.js → index.KDiQBxAp.js} +170 -168
- package/dist/chunks/{notification-provider.kV-P-2Jh.js → notification-provider.KGowspef.js} +10 -10
- package/dist/index.es.js +2 -2
- package/dist/theme/utils/tokens-mapper/DataEntry/ColorPicker/index.js +6 -6
- package/dist/theme/utils/tokens-mapper/DataEntry/DatePicker/index.js +3 -3
- package/dist/theme/utils/tokens-mapper/DataEntry/Input/index.js +5 -5
- package/dist/theme/utils/tokens-mapper/DataEntry/InputNumber/index.js +5 -5
- package/package.json +7 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,39 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [X.X.X](https://www.npmjs.com/package/aristid-ds/v/X.X.X) (2024-XX-XX)
|
|
4
|
+
### 🐛 Bug Fixes
|
|
5
|
+
* **Select:**
|
|
6
|
+
* Fix default border color (@philippechevieux)
|
|
7
|
+
* **Badge:**
|
|
8
|
+
* Fix custom className bug (@evoiron)
|
|
9
|
+
* **Input:**
|
|
10
|
+
* Update color of content, label, placeholder and clear icon (@TdyP)
|
|
11
|
+
* Add aria-label on clear icon to improve testability (@TdyP)
|
|
12
|
+
* **InputNumber:**
|
|
13
|
+
* Update color of content, label, placeholder and clear icon (@TdyP)
|
|
14
|
+
* **ColorPicker:**
|
|
15
|
+
* Update color of content, label and placeholder (@TdyP)
|
|
16
|
+
* **DatePicker:**
|
|
17
|
+
* Update color of content, label and placeholder (@TdyP)
|
|
18
|
+
|
|
19
|
+
## [1.1.0](https://www.npmjs.com/package/aristid-ds/v/1.1.0) (2024-02-28)
|
|
20
|
+
### ✨ Features
|
|
21
|
+
* **Nightly build:**
|
|
22
|
+
* publish a nightly version of the package under `next`. (@evoiron)
|
|
23
|
+
|
|
24
|
+
### 🐛 Bug Fixes
|
|
25
|
+
* **AutoComplete:**
|
|
26
|
+
* Fix crashing release (@evoiron)
|
|
27
|
+
|
|
28
|
+
* **AutoComplete:**
|
|
29
|
+
* Fix dropdown border when focused or when a status is set (@philippechevieux)
|
|
30
|
+
|
|
31
|
+
* **Select:**
|
|
32
|
+
* Fix dropdown border when focused or when a status is set (@philippechevieux)
|
|
33
|
+
* Fix dropdown border on click on arrow (@renaudamsellem)
|
|
3
34
|
|
|
35
|
+
* **InputWrapper:**
|
|
36
|
+
* Fix border default color (@philippechevieux)
|
|
4
37
|
|
|
5
38
|
## [1.0.1](https://www.npmjs.com/package/aristid-ds/v/1.0.1) (2024-02-26)
|
|
6
39
|
### 🐛 Bug Fixes
|
package/README.md
CHANGED
|
@@ -21,6 +21,7 @@ ARiSTiD Design System Readme.
|
|
|
21
21
|
- [Component code](#component-code)
|
|
22
22
|
- [Component theming](#component-theming)
|
|
23
23
|
- [Component documentation](#component-documentation)
|
|
24
|
+
- [Nightly build](#nightly-build)
|
|
24
25
|
- [Important](#important)
|
|
25
26
|
- [Contributing](#contributing)
|
|
26
27
|
- [Commit](#commit)
|
|
@@ -451,9 +452,16 @@ Every components **style** of the design system can be **override** by tokens.
|
|
|
451
452
|
After the script run, section `Design Tokens` documentation is up to date with all design tokens.
|
|
452
453
|
|
|
453
454
|
|
|
455
|
+
## Nightly build
|
|
456
|
+
A nightly version of the package is published on daily basis on branch develop (assuming new commits have been pushed on develop branch). To use it just install the more recent next version :
|
|
457
|
+
|
|
458
|
+
```sh
|
|
459
|
+
yarn add aristid-ds@next
|
|
460
|
+
```
|
|
461
|
+
**Note:** Though it is useful to test upcoming feature, this version should **NEVER** be used in production
|
|
454
462
|
|
|
455
463
|
## Important
|
|
456
|
-
Every import of antd library should pass by `antd` or
|
|
464
|
+
Every import of antd library should pass by `antd` or `ant/es`. `lib` import will lead to issues in the build process.
|
|
457
465
|
|
|
458
466
|
## Contributing
|
|
459
467
|
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -1,74 +1,74 @@
|
|
|
1
1
|
import "../../assets/index19.css";
|
|
2
|
-
import r, { useState as p, useLayoutEffect as
|
|
2
|
+
import r, { useState as p, useLayoutEffect as K, useRef as g, useEffect as v } from "react";
|
|
3
3
|
import { ConfigProvider as E } from "antd";
|
|
4
|
-
import {
|
|
4
|
+
import { K as L } from "../../chunks/SnackBarProvider.i0xeV0xG.js";
|
|
5
5
|
import { createGlobalStyle as P } from "styled-components";
|
|
6
6
|
import { toCssVariables as d, uuid as S } from "../../utils/functions/index.js";
|
|
7
|
-
import
|
|
7
|
+
import s from "lodash/merge";
|
|
8
8
|
import { Style as C } from "react-style-tag";
|
|
9
9
|
import { K as b } from "../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
10
|
-
import { KitAristidThemeGeneral as
|
|
10
|
+
import { KitAristidThemeGeneral as l } from "../../theme/aristid/general/index.js";
|
|
11
11
|
import { antdThemeConfig as h } from "../../theme/utils/tokens-mapper/index.js";
|
|
12
12
|
import { frFR as m } from "../../translation/fr-FR/index.js";
|
|
13
|
-
import { enUS as
|
|
14
|
-
import { K as
|
|
15
|
-
import { mapKitLocaleToAntdLocale as
|
|
16
|
-
import { d as
|
|
17
|
-
const
|
|
13
|
+
import { enUS as F } from "../../translation/en-US/index.js";
|
|
14
|
+
import { K as R, u as T } from "../../chunks/useKitLocale.96CdK3og.js";
|
|
15
|
+
import { mapKitLocaleToAntdLocale as $ } from "../../translation/utils/index.js";
|
|
16
|
+
import { d as k } from "../../chunks/notification-provider.KGowspef.js";
|
|
17
|
+
const y = P`
|
|
18
18
|
.${(t) => t.id} {
|
|
19
19
|
${(t) => d(t.customTheme)};
|
|
20
20
|
}
|
|
21
|
-
`,
|
|
22
|
-
const [
|
|
23
|
-
return
|
|
24
|
-
const a = d(
|
|
25
|
-
|
|
26
|
-
}, []), r.createElement(b.Provider, { value: { theme: f, appId: c, spacing: u } },
|
|
21
|
+
`, A = "aristid-ds-global", I = ({ children: t, customTheme: e, id: o }) => {
|
|
22
|
+
const [i, n] = p(null), { theme: f, appId: c, spacing: u } = x(o, e);
|
|
23
|
+
return K(() => {
|
|
24
|
+
const a = d(l, "--general");
|
|
25
|
+
n(a);
|
|
26
|
+
}, []), r.createElement(b.Provider, { value: { theme: f, appId: c, spacing: u } }, i !== null && r.createElement(
|
|
27
27
|
r.Fragment,
|
|
28
28
|
null,
|
|
29
|
-
r.createElement(C, { id:
|
|
29
|
+
r.createElement(C, { id: A, hasSourceMap: !1 }, `
|
|
30
30
|
:root{
|
|
31
|
-
${Object.keys(
|
|
31
|
+
${Object.keys(i).map((a) => `${a}: ${i[a]}`).join(";")}
|
|
32
32
|
}
|
|
33
33
|
`),
|
|
34
|
-
e && r.createElement(
|
|
34
|
+
e && r.createElement(y, { id: c, customTheme: e }),
|
|
35
35
|
t
|
|
36
36
|
));
|
|
37
37
|
}, x = (t, e) => {
|
|
38
38
|
var o;
|
|
39
|
-
const
|
|
40
|
-
return { theme:
|
|
39
|
+
const i = g(t || "ds-" + S().substring(0, 8)), n = s(l.spacing, (o = e == null ? void 0 : e.general) === null || o === void 0 ? void 0 : o.spacing);
|
|
40
|
+
return { theme: l, appId: i.current, spacing: n };
|
|
41
41
|
}, j = ({ children: t }) => {
|
|
42
42
|
const e = G();
|
|
43
|
-
return r.createElement(
|
|
43
|
+
return r.createElement(R.Provider, { value: e }, t);
|
|
44
44
|
}, G = () => {
|
|
45
45
|
const [t, e] = p(m);
|
|
46
|
-
return { locale: t, setKitLocale: (
|
|
47
|
-
if (
|
|
48
|
-
const
|
|
49
|
-
e(
|
|
46
|
+
return { locale: t, setKitLocale: (i) => {
|
|
47
|
+
if (i.locale === "frFR") {
|
|
48
|
+
const n = s(m, i);
|
|
49
|
+
e(n);
|
|
50
50
|
} else {
|
|
51
|
-
const
|
|
52
|
-
e(
|
|
51
|
+
const n = s(F, i);
|
|
52
|
+
e(n);
|
|
53
53
|
}
|
|
54
54
|
} };
|
|
55
|
-
}, Z = ({ children: t, locale: e, customTheme: o, id:
|
|
56
|
-
|
|
57
|
-
{ customTheme: o, id:
|
|
55
|
+
}, Z = ({ children: t, locale: e, customTheme: o, id: i }) => r.createElement(
|
|
56
|
+
I,
|
|
57
|
+
{ customTheme: o, id: i },
|
|
58
58
|
r.createElement(
|
|
59
59
|
j,
|
|
60
60
|
null,
|
|
61
61
|
r.createElement(U, { locale: e }, t)
|
|
62
62
|
)
|
|
63
63
|
), U = ({ children: t, locale: e }) => {
|
|
64
|
-
const { setKitLocale: o } =
|
|
65
|
-
return
|
|
64
|
+
const { setKitLocale: o } = T();
|
|
65
|
+
return v(() => {
|
|
66
66
|
e !== void 0 && o(e);
|
|
67
67
|
}, [e, o]), r.createElement(
|
|
68
68
|
E,
|
|
69
|
-
{ theme: h, locale:
|
|
69
|
+
{ theme: h, locale: $(e) },
|
|
70
70
|
r.createElement(
|
|
71
|
-
|
|
71
|
+
k,
|
|
72
72
|
null,
|
|
73
73
|
r.createElement(L, null),
|
|
74
74
|
t
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import "../../../assets/index.css";
|
|
2
|
-
import
|
|
3
|
-
import { Badge as
|
|
4
|
-
import { u } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
|
-
import { isValidColor as
|
|
6
|
-
import { kitBadgeCssTokens as
|
|
7
|
-
import
|
|
8
|
-
const
|
|
2
|
+
import g, { useMemo as l } from "react";
|
|
3
|
+
import { Badge as u } from "antd";
|
|
4
|
+
import { u as d } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
|
+
import { isValidColor as f, getColor as n, getLighterColor as c } from "../../../utils/functions/index.js";
|
|
6
|
+
import { kitBadgeCssTokens as s } from "../../../theme/aristid/components/DataDisplay/Badge/index.js";
|
|
7
|
+
import k from "classnames";
|
|
8
|
+
const b = {
|
|
9
9
|
"kit-badge": "_kit-badge_16zpm_2"
|
|
10
|
-
}, B = (t, e) => !t || !
|
|
11
|
-
[
|
|
12
|
-
[
|
|
13
|
-
}, C = ({ color: t, style: e, secondaryColorInvert: o = !1, ...
|
|
14
|
-
const { appId: a } =
|
|
15
|
-
return
|
|
10
|
+
}, B = (t, e) => !t || !f(t) ? null : {
|
|
11
|
+
[s.colors.background.default]: n(t, e),
|
|
12
|
+
[s.colors.typography.default]: c(t, e)
|
|
13
|
+
}, C = ({ color: t, style: e, secondaryColorInvert: o = !1, className: m, ...r }) => {
|
|
14
|
+
const { appId: a } = d(), i = l(() => ({ ...e, ...B(t, o) }), [t, o, e]), p = k(a, b["kit-badge"], m);
|
|
15
|
+
return g.createElement(u, { style: i, ...r, className: p });
|
|
16
16
|
};
|
|
17
17
|
C.displayName = "KitBadge";
|
|
18
18
|
export {
|
|
@@ -8,7 +8,7 @@ import "../../DataEntry/Input/index.js";
|
|
|
8
8
|
import "../../DataEntry/InputNumber/index.js";
|
|
9
9
|
import "../../DataEntry/Radio/index.js";
|
|
10
10
|
import "../../DataEntry/Rate/index.js";
|
|
11
|
-
import { K as y } from "../../../chunks/index.
|
|
11
|
+
import { K as y } from "../../../chunks/index.KDiQBxAp.js";
|
|
12
12
|
import "../../DataEntry/Switch/index.js";
|
|
13
13
|
import "../../DataEntry/DatePicker/index.js";
|
|
14
14
|
import "../../DataEntry/AutoComplete/index.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "react";
|
|
2
2
|
import "classnames";
|
|
3
|
-
import { a as q } from "../../../chunks/index.
|
|
3
|
+
import { a as q } from "../../../chunks/index.KDiQBxAp.js";
|
|
4
4
|
import "../../General/Button/index.js";
|
|
5
5
|
import "../../General/Typography/index.js";
|
|
6
6
|
import "../../General/Icon/index.js";
|
|
@@ -4,7 +4,7 @@ import "../../DataEntry/Input/index.js";
|
|
|
4
4
|
import "../../DataEntry/InputNumber/index.js";
|
|
5
5
|
import "../../DataEntry/Radio/index.js";
|
|
6
6
|
import "../../DataEntry/Rate/index.js";
|
|
7
|
-
import { c as u } from "../../../chunks/index.
|
|
7
|
+
import { c as u } from "../../../chunks/index.KDiQBxAp.js";
|
|
8
8
|
import "../../DataEntry/Switch/index.js";
|
|
9
9
|
import "../../DataEntry/DatePicker/index.js";
|
|
10
10
|
import "../../DataEntry/AutoComplete/index.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { KitAvatar as o } from "./Avatar/index.js";
|
|
2
2
|
import { KitBadge as e } from "./Badge/index.js";
|
|
3
3
|
import { KitLegacyCard as K } from "./LegacyCard/index.js";
|
|
4
|
-
import { K as p, b as f, a as x, c as s, d } from "../../chunks/index.
|
|
4
|
+
import { K as p, b as f, a as x, c as s, d } from "../../chunks/index.KDiQBxAp.js";
|
|
5
5
|
import { KitImage as g } from "./Image/index.js";
|
|
6
6
|
import { KitTooltip as l } from "./Tooltip/index.js";
|
|
7
7
|
import { KitTree as b } from "./Tree/index.js";
|
|
@@ -1,26 +1,34 @@
|
|
|
1
1
|
import "../../../assets/index9.css";
|
|
2
|
-
import t, { forwardRef as
|
|
3
|
-
import { AutoComplete as
|
|
4
|
-
import { KitInput as
|
|
5
|
-
import { K as
|
|
6
|
-
import { FontAwesomeIcon as
|
|
7
|
-
import { faMagnifyingGlass as
|
|
8
|
-
import
|
|
9
|
-
const
|
|
2
|
+
import t, { forwardRef as A, useState as E } from "react";
|
|
3
|
+
import { AutoComplete as F } from "antd";
|
|
4
|
+
import { KitInput as I } from "../Input/index.js";
|
|
5
|
+
import { K as N } from "../../../chunks/InputWrapper.doEpNzyG.js";
|
|
6
|
+
import { FontAwesomeIcon as x } from "@fortawesome/react-fontawesome";
|
|
7
|
+
import { faMagnifyingGlass as y } from "@fortawesome/free-solid-svg-icons";
|
|
8
|
+
import h from "classnames";
|
|
9
|
+
const O = {
|
|
10
10
|
"kit-autocomplete": "_kit-autocomplete_ekz5x_2"
|
|
11
|
-
},
|
|
12
|
-
|
|
11
|
+
}, P = (o, r, e) => h(o, "ant-select-dropdown", "kit-select-dropdown-bottom", {
|
|
12
|
+
"kit-select-dropdown-focus": r,
|
|
13
|
+
"kit-select-dropdown-error": e === "error",
|
|
14
|
+
"kit-select-dropdown-warning": e === "warning"
|
|
15
|
+
}), R = A(({ allowClear: o, label: r, helper: e, autoFocus: i, defaultValue: l, disabled: p, placeholder: f, status: n, value: u, onFocus: s, onBlur: c, popupClassName: d, wrapperClassName: w, ...k }, _) => {
|
|
16
|
+
const [g, a] = E(!1), C = (m) => {
|
|
17
|
+
a(!0), s && s(m);
|
|
18
|
+
}, K = (m) => {
|
|
19
|
+
a(!1), c && c(m);
|
|
20
|
+
};
|
|
13
21
|
return t.createElement(
|
|
14
|
-
|
|
15
|
-
{ label:
|
|
22
|
+
N,
|
|
23
|
+
{ label: r, helper: e, disabled: p, status: n, className: w },
|
|
16
24
|
t.createElement(
|
|
17
|
-
|
|
18
|
-
{ ...
|
|
19
|
-
t.createElement(
|
|
25
|
+
F,
|
|
26
|
+
{ ...k, disabled: p, ref: _, className: O["kit-autocomplete"], popupClassName: P(d, g, n) },
|
|
27
|
+
t.createElement(I, { prefix: t.createElement(x, { icon: y }), allowClear: o, autoFocus: i, defaultValue: l, placeholder: f, status: n, value: u, onBlur: K, onFocus: C })
|
|
20
28
|
)
|
|
21
29
|
);
|
|
22
30
|
});
|
|
23
|
-
|
|
31
|
+
R.displayName = "KitAutoComplete";
|
|
24
32
|
export {
|
|
25
|
-
|
|
33
|
+
R as KitAutoComplete
|
|
26
34
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ForwardRefExoticComponent, ForwardRefRenderFunction } from 'react';
|
|
2
2
|
import { IKitCheckbox, ICheckboxGroup } from './types';
|
|
3
|
-
export type { CheckboxChangeEvent } from 'antd/
|
|
4
|
-
export type { CheckboxGroupProps, CheckboxOptionType } from 'antd/
|
|
3
|
+
export type { CheckboxChangeEvent } from 'antd/es/checkbox/Checkbox';
|
|
4
|
+
export type { CheckboxGroupProps, CheckboxOptionType } from 'antd/es/checkbox/Group';
|
|
5
5
|
type CompoundedComponent = ForwardRefExoticComponent<IKitCheckbox> & {
|
|
6
6
|
Group: ForwardRefRenderFunction<HTMLDivElement, ICheckboxGroup>;
|
|
7
7
|
};
|
|
@@ -3,10 +3,10 @@ import r, { createContext as X, memo as Y, forwardRef as S, useContext as N, use
|
|
|
3
3
|
import { Checkbox as P } from "antd";
|
|
4
4
|
import { u as p } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
5
|
import O from "classnames";
|
|
6
|
-
import ee from "rc-util/
|
|
7
|
-
import { ConfigContext as le } from "antd/
|
|
8
|
-
import ae from "antd/
|
|
9
|
-
import { K as te } from "../../../chunks/InputWrapper.
|
|
6
|
+
import ee from "rc-util/es/omit";
|
|
7
|
+
import { ConfigContext as le } from "antd/es/config-provider/";
|
|
8
|
+
import ae from "antd/es/checkbox/style";
|
|
9
|
+
import { K as te } from "../../../chunks/InputWrapper.doEpNzyG.js";
|
|
10
10
|
const R = X(null), ne = ({ defaultValue: v, children: o, options: a = [], prefixCls: m, className: l, wrapperClassName: f, status: b, rootClassName: u, style: n, onChange: d, label: x, helper: $, ...t }, A) => {
|
|
11
11
|
const { getPrefixCls: B, direction: D } = N(le), [s, y] = K(t.value || v || []), [T, G] = K([]);
|
|
12
12
|
V(() => {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../../../assets/index11.css";
|
|
2
2
|
import t from "react";
|
|
3
|
-
import { K as p } from "../../../chunks/InputWrapper.
|
|
3
|
+
import { K as p } from "../../../chunks/InputWrapper.doEpNzyG.js";
|
|
4
4
|
import { u as n } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
5
5
|
import { ColorPicker as k } from "antd";
|
|
6
6
|
import e from "classnames";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
declare const
|
|
3
|
-
locale?: import("antd/
|
|
4
|
-
size?: import("antd/
|
|
2
|
+
declare const KitRangePicker: React.ForwardRefExoticComponent<Omit<import("rc-picker").RangePickerProps<import("dayjs").Dayjs>, "locale" | "generateConfig" | "hideHeader"> & {
|
|
3
|
+
locale?: import("antd/es/date-picker/generatePicker").PickerLocale | undefined;
|
|
4
|
+
size?: import("antd/es/button").ButtonSize;
|
|
5
5
|
placement?: "topLeft" | "topRight" | "bottomLeft" | "bottomRight" | undefined;
|
|
6
6
|
bordered?: boolean | undefined;
|
|
7
7
|
status?: "" | "error" | "warning" | undefined;
|
|
@@ -11,4 +11,4 @@ declare const KitDatePicker: React.ForwardRefExoticComponent<Omit<import("rc-pic
|
|
|
11
11
|
rootClassName?: string | undefined;
|
|
12
12
|
popupStyle?: React.CSSProperties | undefined;
|
|
13
13
|
} & import("./types").IInternalRangerPicker & React.RefAttributes<any>>;
|
|
14
|
-
export default
|
|
14
|
+
export default KitRangePicker;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import "../../../assets/index22.css";
|
|
2
|
-
import
|
|
3
|
-
import { DatePicker as E } from "antd";
|
|
4
|
-
import { K as I } from "../../../chunks/InputWrapper.sHItZx7l.js";
|
|
5
|
-
import { u as _ } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
2
|
+
import { faCircleXmark as p, faClock as b, faCalendar as E } from "@fortawesome/free-regular-svg-icons";
|
|
6
3
|
import { FontAwesomeIcon as a } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
import { K as I } from "../../../chunks/InputWrapper.doEpNzyG.js";
|
|
5
|
+
import { u as _ } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
+
import { DatePicker as v } from "antd";
|
|
7
|
+
import x from "classnames";
|
|
8
|
+
import e, { forwardRef as K } from "react";
|
|
9
|
+
const R = {
|
|
10
|
+
"kit-datepicker": "_kit-datepicker_n1csk_2",
|
|
11
|
+
"kit-rangepicker": "_kit-rangepicker_n1csk_117"
|
|
12
|
+
}, D = K(({ label: o, helper: s, suffixIcon: m, className: d, wrapperClassName: l, picker: c = "date", allowClear: t = !0, ...n }, i) => {
|
|
13
13
|
var r;
|
|
14
|
-
const { appId: f } = _(), u = () =>
|
|
14
|
+
const { appId: f } = _(), u = () => c === "time" ? e.createElement(a, { icon: b }) : e.createElement(a, { icon: E }), k = x(f, R["kit-datepicker"], d);
|
|
15
15
|
return e.createElement(
|
|
16
16
|
I,
|
|
17
|
-
{ label: o, helper: s, disabled: n.disabled, status: n.status, className:
|
|
17
|
+
{ label: o, helper: s, disabled: n.disabled, status: n.status, className: l },
|
|
18
18
|
e.createElement(
|
|
19
19
|
"div",
|
|
20
20
|
null,
|
|
21
|
-
e.createElement(
|
|
21
|
+
e.createElement(v, { ...n, picker: c, ref: i, suffixIcon: (r = m) !== null && r !== void 0 ? r : u(), allowClear: t ? { clearIcon: e.createElement(a, { "aria-label": "clear", icon: p }) } : !1, className: k })
|
|
22
22
|
)
|
|
23
23
|
);
|
|
24
|
-
}),
|
|
24
|
+
}), g = K(({ label: o, className: s, helper: m, suffixIcon: d, picker: l, allowClear: c = !0, ...t }, n) => {
|
|
25
25
|
var i;
|
|
26
|
-
const { appId: r } = _(), f = () =>
|
|
26
|
+
const { appId: r } = _(), f = () => l === "time" ? e.createElement(a, { icon: b }) : e.createElement(a, { icon: E }), u = () => t.disabled === void 0 ? !1 : typeof t.disabled == "boolean" ? t.disabled : t.disabled[0] && t.disabled[1], k = x(r, R["kit-rangepicker"], s);
|
|
27
27
|
return e.createElement(
|
|
28
28
|
I,
|
|
29
29
|
{ label: o, helper: m, disabled: u(), status: t.status },
|
|
30
30
|
e.createElement(
|
|
31
31
|
"div",
|
|
32
32
|
null,
|
|
33
|
-
e.createElement(
|
|
33
|
+
e.createElement(v.RangePicker, { ...t, picker: l, ref: n, suffixIcon: (i = d) !== null && i !== void 0 ? i : f(), allowClear: c ? { clearIcon: e.createElement(a, { "aria-label": "clear", icon: p }) } : !1, className: k })
|
|
34
34
|
)
|
|
35
35
|
);
|
|
36
|
-
}),
|
|
37
|
-
|
|
38
|
-
|
|
36
|
+
}), w = g, C = D;
|
|
37
|
+
C.displayName = "KitDatePicker";
|
|
38
|
+
C.RangePicker = w;
|
|
39
39
|
export {
|
|
40
|
-
|
|
40
|
+
C as KitDatePicker
|
|
41
41
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { InputRef } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { IKitPassword } from './types';
|
|
4
4
|
declare const KitPassword: React.ForwardRefExoticComponent<IKitPassword & React.RefAttributes<InputRef>>;
|
|
5
5
|
export default KitPassword;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
1
|
import { InputRef } from 'antd';
|
|
2
|
+
import React from 'react';
|
|
3
3
|
import { IKitTextArea } from './types';
|
|
4
4
|
declare const KitTextArea: React.ForwardRefExoticComponent<IKitTextArea & React.RefAttributes<InputRef>>;
|
|
5
5
|
export default KitTextArea;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import "../../../assets/index25.css";
|
|
2
|
-
import
|
|
3
|
-
import { Input as u } from "antd";
|
|
4
|
-
import { K as p } from "../../../chunks/InputWrapper.sHItZx7l.js";
|
|
5
|
-
import { u as I } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
2
|
+
import { faCircleXmark as d, faEye as K, faEyeSlash as N } from "@fortawesome/free-regular-svg-icons";
|
|
6
3
|
import { FontAwesomeIcon as m } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
4
|
+
import { K as u } from "../../../chunks/InputWrapper.doEpNzyG.js";
|
|
5
|
+
import { u as p } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
|
+
import { Input as I } from "antd";
|
|
7
|
+
import f from "classnames";
|
|
8
|
+
import e, { forwardRef as E } from "react";
|
|
9
9
|
const k = {
|
|
10
|
-
"kit-input": "_kit-
|
|
11
|
-
"kit-password": "_kit-
|
|
12
|
-
"kit-textarea": "_kit-
|
|
13
|
-
}, T =
|
|
14
|
-
const { appId:
|
|
15
|
-
return
|
|
16
|
-
|
|
17
|
-
{ label: s, helper: c, disabled:
|
|
18
|
-
|
|
10
|
+
"kit-input": "_kit-input_12a1a_2",
|
|
11
|
+
"kit-password": "_kit-password_12a1a_140",
|
|
12
|
+
"kit-textarea": "_kit-textarea_12a1a_264"
|
|
13
|
+
}, T = E(({ label: s, className: l, helper: c, wrapperClassName: a, allowClear: n = !0, ...t }, r) => {
|
|
14
|
+
const { appId: o } = p(), i = f(o, k["kit-input"], l);
|
|
15
|
+
return e.createElement(
|
|
16
|
+
u,
|
|
17
|
+
{ label: s, helper: c, disabled: t.disabled, status: t.status, className: a },
|
|
18
|
+
e.createElement(I, { ...t, ref: r, className: i, allowClear: n ? { clearIcon: e.createElement(m, { "aria-label": "clear", icon: d }) } : void 0 })
|
|
19
19
|
);
|
|
20
|
-
}), v =
|
|
21
|
-
const { appId:
|
|
22
|
-
return
|
|
23
|
-
|
|
24
|
-
{ label: s, helper: c, disabled:
|
|
25
|
-
|
|
20
|
+
}), v = E(({ label: s, className: l, helper: c, wrapperClassName: a, allowClear: n = !0, ...t }, r) => {
|
|
21
|
+
const { appId: o } = p(), i = f(o, k["kit-textarea"], l);
|
|
22
|
+
return e.createElement(
|
|
23
|
+
u,
|
|
24
|
+
{ label: s, helper: c, disabled: t.disabled, status: t.status, className: a },
|
|
25
|
+
e.createElement(I.TextArea, { ...t, ref: r, allowClear: n ? { clearIcon: e.createElement(m, { "aria-label": "clear", icon: d }) } : void 0, className: i })
|
|
26
26
|
);
|
|
27
|
-
}), y = v, C =
|
|
28
|
-
const { appId: i } =
|
|
29
|
-
return
|
|
30
|
-
|
|
31
|
-
{ label: s, helper: c, disabled: r.disabled, status: r.status, className:
|
|
32
|
-
|
|
27
|
+
}), y = v, C = E(({ label: s, className: l, helper: c, iconRender: a, wrapperClassName: n, allowClear: t = !0, ...r }, o) => {
|
|
28
|
+
const { appId: i } = p(), _ = f(i, k["kit-password"], l), b = (x) => x ? e.createElement(m, { icon: K }) : e.createElement(m, { icon: N });
|
|
29
|
+
return e.createElement(
|
|
30
|
+
u,
|
|
31
|
+
{ label: s, helper: c, disabled: r.disabled, status: r.status, className: n },
|
|
32
|
+
e.createElement(I.Password, { ...r, className: _, ref: o, allowClear: t ? { clearIcon: e.createElement(m, { "aria-label": "clear", icon: d }) } : void 0, iconRender: a ?? b })
|
|
33
33
|
);
|
|
34
34
|
}), A = C, w = T;
|
|
35
35
|
w.displayName = "KitInput";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../assets/index6.css";
|
|
2
2
|
import s, { forwardRef as c, useState as f } from "react";
|
|
3
3
|
import { InputNumber as l } from "antd";
|
|
4
|
-
import { K as d } from "../../../chunks/InputWrapper.
|
|
4
|
+
import { K as d } from "../../../chunks/InputWrapper.doEpNzyG.js";
|
|
5
5
|
import { u as b } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
6
|
import I from "classnames";
|
|
7
7
|
const K = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { RadioGroupContextProps } from 'antd/
|
|
2
|
+
import type { RadioGroupContextProps } from 'antd/es/radio/interface';
|
|
3
3
|
declare const RadioGroupContext: import("react").Context<RadioGroupContextProps | null>;
|
|
4
4
|
export declare const RadioGroupContextProvider: import("react").Provider<RadioGroupContextProps | null>;
|
|
5
5
|
export default RadioGroupContext;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type * as React from 'react';
|
|
2
2
|
import type { KitRadioGroup, KitRadioProps as RadioProps } from './types';
|
|
3
|
-
import type { RadioChangeEvent, RadioChangeEventTarget, RadioGroupButtonStyle, RadioGroupContextProps, RadioGroupOptionType, RadioGroupProps } from 'antd/
|
|
3
|
+
import type { RadioChangeEvent, RadioChangeEventTarget, RadioGroupButtonStyle, RadioGroupContextProps, RadioGroupOptionType, RadioGroupProps } from 'antd/es/radio/interface';
|
|
4
4
|
export { RadioChangeEvent, RadioChangeEventTarget, RadioGroupButtonStyle, RadioGroupContextProps, RadioGroupOptionType, RadioGroupProps };
|
|
5
5
|
type CompoundedComponent = React.ForwardRefExoticComponent<RadioProps> & {
|
|
6
6
|
Group: React.ForwardRefRenderFunction<HTMLDivElement, KitRadioGroup>;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../assets/index26.css";
|
|
2
2
|
import _ from "classnames";
|
|
3
|
-
import q from "rc-util/
|
|
3
|
+
import q from "rc-util/es/hooks/useMergedState";
|
|
4
4
|
import l, { createContext as D, forwardRef as $, useContext as R, memo as H } from "react";
|
|
5
|
-
import { ConfigContext as J } from "antd/
|
|
6
|
-
import O from "antd/
|
|
7
|
-
import Q from "rc-util/
|
|
5
|
+
import { ConfigContext as J } from "antd/es/config-provider/";
|
|
6
|
+
import O from "antd/es/config-provider/SizeContext";
|
|
7
|
+
import Q from "rc-util/es/pickAttrs";
|
|
8
8
|
import { Radio as U } from "antd";
|
|
9
9
|
import { u as X } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
10
|
-
import { K as Y } from "../../../chunks/InputWrapper.
|
|
11
|
-
import Z from "antd/
|
|
10
|
+
import { K as Y } from "../../../chunks/InputWrapper.doEpNzyG.js";
|
|
11
|
+
import Z from "antd/es/radio/style";
|
|
12
12
|
const z = D(null), ee = z.Provider, te = {
|
|
13
13
|
"kit-radio": "_kit-radio_1hsx3_2"
|
|
14
14
|
}, p = $((t, m) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
+
import type { RefSelectProps } from 'antd';
|
|
1
2
|
import React from 'react';
|
|
2
3
|
import { IKitSelect } from './types';
|
|
3
|
-
import type { RefSelectProps } from 'antd';
|
|
4
4
|
export declare const KitSelect: React.ForwardRefExoticComponent<IKitSelect & React.RefAttributes<RefSelectProps>>;
|