aristid-ds 1.1.0 → 2.0.0-36716c3
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 +54 -2
- package/dist/Kit/App/index.js +61 -49
- package/dist/Kit/App/types.d.ts +6 -0
- package/dist/Kit/DataDisplay/Avatar/types.d.ts +21 -0
- package/dist/Kit/DataDisplay/Badge/index.js +13 -13
- package/dist/Kit/DataDisplay/Badge/types.d.ts +10 -0
- package/dist/Kit/DataDisplay/Card/index.js +2 -2
- package/dist/Kit/DataDisplay/Card/types.d.ts +32 -0
- package/dist/Kit/DataDisplay/Collapse/index.js +1 -1
- package/dist/Kit/DataDisplay/Collapse/types.d.ts +68 -0
- package/dist/Kit/DataDisplay/Empty/Empty.d.ts +4 -0
- package/dist/Kit/DataDisplay/Empty/index.d.ts +2 -0
- package/dist/Kit/DataDisplay/Empty/index.js +221 -0
- package/dist/Kit/DataDisplay/Empty/types.d.ts +19 -0
- package/dist/Kit/DataDisplay/Image/index.js +8 -27
- package/dist/Kit/DataDisplay/Image/types.d.ts +19 -0
- package/dist/Kit/DataDisplay/ItemCard/index.js +2 -2
- package/dist/Kit/DataDisplay/ItemCard/types.d.ts +40 -0
- package/dist/Kit/DataDisplay/ItemList/index.js +2 -2
- package/dist/Kit/DataDisplay/ItemList/types.d.ts +21 -0
- package/dist/Kit/DataDisplay/LegacyCard/index.js +10 -7
- package/dist/Kit/DataDisplay/LegacyCard/types.d.ts +31 -0
- package/dist/Kit/DataDisplay/Tabs/index.js +8 -8
- package/dist/Kit/DataDisplay/Tabs/types.d.ts +6 -0
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/types.d.ts +29 -0
- package/dist/Kit/DataDisplay/Tooltip/types.d.ts +9 -0
- package/dist/Kit/DataDisplay/Tour/types.d.ts +5 -0
- package/dist/Kit/DataDisplay/Tree/types.d.ts +19 -0
- package/dist/Kit/DataDisplay/index.d.ts +6 -5
- package/dist/Kit/DataDisplay/index.js +19 -17
- package/dist/Kit/DataEntry/AutoComplete/index.js +20 -20
- package/dist/Kit/DataEntry/AutoComplete/types.d.ts +15 -0
- package/dist/Kit/DataEntry/Checkbox/index.js +32 -32
- package/dist/Kit/DataEntry/Checkbox/types.d.ts +56 -0
- package/dist/Kit/DataEntry/ColorPicker/index.d.ts +2 -2
- package/dist/Kit/DataEntry/ColorPicker/index.js +12 -12
- package/dist/Kit/DataEntry/ColorPicker/types.d.ts +19 -0
- package/dist/Kit/DataEntry/DatePicker/RangePicker.d.ts +2 -2
- package/dist/Kit/DataEntry/DatePicker/index.js +23 -25
- package/dist/Kit/DataEntry/DatePicker/types.d.ts +40 -0
- package/dist/Kit/DataEntry/Input/index.js +34 -34
- package/dist/Kit/DataEntry/Input/types.d.ts +45 -0
- package/dist/Kit/DataEntry/InputNumber/index.js +15 -15
- package/dist/Kit/DataEntry/InputNumber/types.d.ts +17 -0
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/InputWrapper/types.d.ts +15 -0
- package/dist/Kit/DataEntry/Radio/index.d.ts +3 -3
- package/dist/Kit/DataEntry/Radio/index.js +32 -32
- package/dist/Kit/DataEntry/Radio/types.d.ts +30 -0
- package/dist/Kit/DataEntry/Rate/index.js +1 -1
- package/dist/Kit/DataEntry/Rate/types.d.ts +13 -0
- package/dist/Kit/DataEntry/Select/index.d.ts +1 -1
- package/dist/Kit/DataEntry/Select/index.js +9 -9
- package/dist/Kit/DataEntry/Select/types.d.ts +48 -0
- package/dist/Kit/DataEntry/Slider/index.js +1 -1
- package/dist/Kit/DataEntry/Slider/types.d.ts +26 -0
- package/dist/Kit/DataEntry/Switch/index.js +1 -1
- package/dist/Kit/DataEntry/Switch/types.d.ts +4 -0
- package/dist/Kit/DataEntry/Upload/types.d.ts +24 -0
- package/dist/Kit/DataEntry/index.js +2 -2
- package/dist/Kit/Feedback/Alert/index.js +1 -1
- package/dist/Kit/Feedback/Alert/types.d.ts +8 -0
- package/dist/Kit/Feedback/Modal/index.js +122 -102
- package/dist/Kit/Feedback/Modal/types.d.ts +62 -0
- package/dist/Kit/Feedback/Notification/KitNotification.d.ts +2 -2
- package/dist/Kit/Feedback/Notification/index.js +1 -1
- package/dist/Kit/Feedback/Notification/types.d.ts +27 -0
- package/dist/Kit/Feedback/Progress/index.js +1 -1
- package/dist/Kit/Feedback/Progress/types.d.ts +4 -0
- package/dist/Kit/Feedback/SnackBar/types.d.ts +21 -0
- package/dist/Kit/Feedback/index.js +1 -1
- package/dist/Kit/General/Button/index.js +15 -14
- package/dist/Kit/General/Button/types.d.ts +49 -0
- package/dist/Kit/General/Icon/index.js +1 -1
- package/dist/Kit/General/Icon/types.d.ts +20 -0
- package/dist/Kit/General/Typography/types.d.ts +77 -0
- package/dist/Kit/Layout/Divider/index.js +1 -1
- package/dist/Kit/Layout/Divider/types.d.ts +16 -0
- package/dist/Kit/Layout/Grid/types.d.ts +12 -0
- package/dist/Kit/Layout/Section/index.d.ts +4 -0
- package/dist/Kit/Layout/Section/index.js +20 -0
- package/dist/Kit/Layout/Section/types.d.ts +8 -0
- package/dist/Kit/Layout/Space/types.d.ts +16 -0
- package/dist/Kit/Layout/index.d.ts +1 -0
- package/dist/Kit/Layout/index.js +4 -2
- package/dist/Kit/Navigation/Breadcrumb/index.js +1 -1
- package/dist/Kit/Navigation/Breadcrumb/types.d.ts +12 -0
- package/dist/Kit/Navigation/DropDown/types.d.ts +6 -0
- package/dist/Kit/Navigation/Header/index.js +6 -3
- package/dist/Kit/Navigation/Header/types.d.ts +11 -0
- package/dist/Kit/Navigation/Menu/index.js +1 -1
- package/dist/Kit/Navigation/Menu/types.d.ts +51 -0
- package/dist/Kit/Navigation/Pagination/index.js +1 -1
- package/dist/Kit/Navigation/Pagination/types.d.ts +6 -0
- package/dist/Kit/Navigation/Steps/index.js +1 -1
- package/dist/Kit/Navigation/Steps/types.d.ts +12 -0
- package/dist/Kit/Navigation/index.js +1 -1
- package/dist/Kit/index.js +155 -149
- package/dist/assets/InputWrapper.css +1 -1
- package/dist/assets/empty/empty-folder.d.ts +2 -0
- package/dist/assets/empty/empty-list.d.ts +2 -0
- package/dist/assets/empty/empty-modal.d.ts +2 -0
- package/dist/assets/empty/empty-page.d.ts +2 -0
- package/dist/assets/empty/empty-result.d.ts +2 -0
- package/dist/assets/index10.css +1 -1
- package/dist/assets/index11.css +1 -1
- package/dist/assets/index12.css +1 -1
- package/dist/assets/index13.css +1 -1
- package/dist/assets/index14.css +1 -1
- package/dist/assets/index15.css +1 -1
- package/dist/assets/index16.css +1 -1
- package/dist/assets/index17.css +1 -1
- package/dist/assets/index18.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/index27.css +1 -1
- package/dist/assets/index29.css +1 -1
- package/dist/assets/index3.css +1 -1
- package/dist/assets/index30.css +1 -0
- package/dist/assets/index5.css +1 -1
- package/dist/assets/index6.css +1 -1
- package/dist/assets/index7.css +1 -1
- package/dist/assets/index8.css +1 -1
- package/dist/assets/index9.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/assets/styles2.css +1 -0
- package/dist/chunks/InputWrapper.69dUKMaK.js +47 -0
- package/dist/chunks/{KitNotification.3hnPgsKv.js → KitNotification.o3gKIpvN.js} +7 -4
- package/dist/chunks/index.-7K1zF8V.js +35 -0
- package/dist/chunks/index.fN8eYpwW.js +757 -0
- package/dist/chunks/styles.module.cDfGpFWX.js +8 -0
- package/dist/chunks/{styles.module.x1Oajwjm.js → styles.module.h70MuyQF.js} +1 -1
- package/dist/index.es.js +159 -153
- package/dist/index.umd.js +10 -0
- package/dist/theme/aristid/general/colors/index.js +2 -0
- package/dist/theme/theme-context.d.ts +2 -2
- package/dist/theme/types/components/DataDisplay/Avatar/index.d.ts +59 -0
- package/dist/theme/types/components/DataDisplay/Badge/index.d.ts +59 -0
- package/dist/theme/types/components/DataDisplay/Card/index.d.ts +181 -0
- package/dist/theme/types/components/DataDisplay/Collapse/index.d.ts +67 -0
- package/dist/theme/types/components/DataDisplay/Image/index.d.ts +45 -0
- package/dist/theme/types/components/DataDisplay/ItemCard/index.d.ts +313 -0
- package/dist/theme/types/components/DataDisplay/ItemList/index.d.ts +185 -0
- package/dist/theme/types/components/DataDisplay/LegacyCard/index.d.ts +251 -0
- package/dist/theme/types/components/DataDisplay/Tabs/index.d.ts +315 -0
- package/dist/theme/types/components/DataDisplay/Tag/index.d.ts +61 -0
- package/dist/theme/types/components/DataDisplay/Tooltip/index.d.ts +51 -0
- package/dist/theme/types/components/DataDisplay/Tree/index.d.ts +177 -0
- package/dist/theme/types/components/DataEntry/Checkbox/index.d.ts +169 -0
- package/dist/theme/types/components/DataEntry/ColorPicker/index.d.ts +228 -0
- package/dist/theme/types/components/DataEntry/DatePicker/index.d.ts +576 -0
- package/dist/theme/types/components/DataEntry/Input/index.d.ts +332 -0
- package/dist/theme/types/components/DataEntry/InputNumber/index.d.ts +211 -0
- package/dist/theme/types/components/DataEntry/InputWrapper/index.d.ts +95 -0
- package/dist/theme/types/components/DataEntry/Radio/index.d.ts +181 -0
- package/dist/theme/types/components/DataEntry/Rate/index.d.ts +25 -0
- package/dist/theme/types/components/DataEntry/Select/index.d.ts +373 -0
- package/dist/theme/types/components/DataEntry/Slider/index.d.ts +169 -0
- package/dist/theme/types/components/DataEntry/Switch/index.d.ts +91 -0
- package/dist/theme/types/components/DataEntry/Upload/index.d.ts +178 -0
- package/dist/theme/types/components/Feedback/Alert/index.d.ts +162 -0
- package/dist/theme/types/components/Feedback/Modal/index.d.ts +158 -0
- package/dist/theme/types/components/Feedback/Notification/index.d.ts +130 -0
- package/dist/theme/types/components/Feedback/Progress/index.d.ts +64 -0
- package/dist/theme/types/components/Feedback/SnackBar/index.d.ts +114 -0
- package/dist/theme/types/components/General/Button/index.d.ts +81 -0
- package/dist/theme/types/components/General/Icon/index.d.ts +36 -0
- package/dist/theme/types/components/General/Typography/index.d.ts +119 -0
- package/dist/theme/types/components/Layout/Divider/index.d.ts +34 -0
- package/dist/theme/types/components/Navigation/Breadcrumb/index.d.ts +21 -0
- package/dist/theme/types/components/Navigation/DropDown/index.d.ts +297 -0
- package/dist/theme/types/components/Navigation/Header/index.d.ts +33 -0
- package/dist/theme/types/components/Navigation/Menu/index.d.ts +123 -0
- package/dist/theme/types/components/Navigation/Pagination/index.d.ts +191 -0
- package/dist/theme/types/components/Navigation/Steps/index.d.ts +77 -0
- package/dist/theme/types/general/border/index.d.ts +29 -0
- package/dist/theme/types/general/colors/index.d.ts +385 -0
- package/dist/theme/types/general/spacing/index.d.ts +25 -0
- package/dist/theme/types/general/typography/index.d.ts +45 -0
- package/dist/theme/types/index.d.ts +113 -0
- 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/dist/translation/en-US/components/DataDisplay/Empty/index.d.ts +2 -0
- package/dist/translation/en-US/components/DataDisplay/Empty/index.js +6 -0
- package/dist/translation/en-US/index.js +10 -8
- package/dist/translation/fr-FR/components/DataDisplay/Empty/index.d.ts +2 -0
- package/dist/translation/fr-FR/components/DataDisplay/Empty/index.js +6 -0
- package/dist/translation/fr-FR/index.js +8 -6
- package/dist/translation/types/components/DataDisplay/Collapse/index.d.ts +3 -0
- package/dist/translation/types/components/DataDisplay/Empty/index.d.ts +3 -0
- package/dist/translation/types/components/DataDisplay/Image/index.d.ts +3 -0
- package/dist/translation/types/components/DataDisplay/ItemCard/index.d.ts +4 -0
- package/dist/translation/types/components/DataDisplay/ItemList/index.d.ts +4 -0
- package/dist/translation/types/general/index.d.ts +4 -0
- package/dist/translation/types/index.d.ts +17 -0
- package/dist/types.d.ts +174 -0
- package/dist/utils/functions/types.d.ts +4 -0
- package/dist/vite-env.d.ts +1 -0
- package/package.json +7 -3
- package/dist/chunks/InputWrapper.7RKY3QZ2.js +0 -40
- package/dist/chunks/index.0RmfE2Nm.js +0 -757
- package/dist/chunks/useKitLocale.96CdK3og.js +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,60 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [X.X.X](https://www.npmjs.com/package/aristid-ds/v/X.X.X) (2024-XX-XX)
|
|
4
|
+
### ✨ Features
|
|
5
|
+
* **Empty:**
|
|
6
|
+
* Add a new component `KitEmpty` (@philippechevieux)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### 🐛 Bug Fixes
|
|
10
|
+
* **Build**: Build as EsModule and commonjs module (@evoiron)
|
|
11
|
+
|
|
12
|
+
## [2.0.0](https://www.npmjs.com/package/aristid-ds/v/2.0.0) (2024-03-06)
|
|
13
|
+
### ✨ Features
|
|
14
|
+
* **⚠️ Breaking change - Modal:** (@evoiron)
|
|
15
|
+
* update Modal Design
|
|
16
|
+
* update confirmModal Options:
|
|
17
|
+
* remove `secondLine` property
|
|
18
|
+
* rename `firstLine` to `content`
|
|
19
|
+
* add `dangerConfirm` property to show Cta Button as danger look n' feel,
|
|
20
|
+
* add `showCloseIcon` to display top tight button for closing
|
|
21
|
+
* **Section:** (@Delmotte-Vincent)
|
|
22
|
+
* Add new component Section
|
|
23
|
+
* **Typography:**
|
|
24
|
+
* update default typography color (@evoiron)
|
|
25
|
+
* **InputWrapper:**
|
|
26
|
+
* Add 4 properties: (@evoiron)
|
|
27
|
+
* `required`: show a red asterisk right after the label
|
|
28
|
+
* `actions`: an array of items to display at the right of the label
|
|
29
|
+
* `onInfoClick`: When set, display a clickable info icon which triggers this event
|
|
30
|
+
* `infoIcon`: customise the infoIcon displayed
|
|
31
|
+
* These components now accept the 4 properties above: (@evoiron)
|
|
32
|
+
* `AutoComplete`, `Checkbox.Group`, `Radio.Group`, `ColorPicker`, `DatePicker`, `RangePicker`, `Input`, `InputNumber`, `Select`
|
|
33
|
+
* **ItemList**
|
|
34
|
+
* Add `draggable` property showing an icon that indicates the item is draggable (@fatb38)
|
|
35
|
+
* **Tabs:**
|
|
36
|
+
* Add `hideSeparator` prop to hide separator between tabs and content (@P0ppoff)
|
|
37
|
+
* (Style) Allow tabs center on extraContent (@P0ppoff)
|
|
38
|
+
* (Style) Reduce space between tabs and separator (@P0ppoff)
|
|
39
|
+
|
|
40
|
+
### 🐛 Bug Fixes
|
|
41
|
+
* **Package**: include typescript definitions for each component in built package (@evoiron)
|
|
42
|
+
* **Select:**
|
|
43
|
+
* Fix default border color (@philippechevieux)
|
|
44
|
+
* **Badge:**
|
|
45
|
+
* Fix custom className bug (@evoiron)
|
|
46
|
+
* **Input:**
|
|
47
|
+
* Update color of content, label, placeholder and clear icon (@TdyP)
|
|
48
|
+
* Add aria-label on clear icon to improve testability (@TdyP)
|
|
49
|
+
* **InputNumber:**
|
|
50
|
+
* Update color of content, label, placeholder and clear icon (@TdyP)
|
|
51
|
+
* **ColorPicker:**
|
|
52
|
+
* Update color of content, label and placeholder (@TdyP)
|
|
53
|
+
* **DatePicker:**
|
|
54
|
+
* Update color of content, label and placeholder (@TdyP)
|
|
55
|
+
|
|
3
56
|
## [1.1.0](https://www.npmjs.com/package/aristid-ds/v/1.1.0) (2024-02-28)
|
|
57
|
+
|
|
4
58
|
### ✨ Features
|
|
5
59
|
* **Nightly build:**
|
|
6
60
|
* publish a nightly version of the package under `next`. (@evoiron)
|
|
@@ -19,8 +73,6 @@
|
|
|
19
73
|
* **InputWrapper:**
|
|
20
74
|
* Fix border default color (@philippechevieux)
|
|
21
75
|
|
|
22
|
-
|
|
23
|
-
|
|
24
76
|
## [1.0.1](https://www.npmjs.com/package/aristid-ds/v/1.0.1) (2024-02-26)
|
|
25
77
|
### 🐛 Bug Fixes
|
|
26
78
|
* **Typography:**
|
package/dist/Kit/App/index.js
CHANGED
|
@@ -1,80 +1,92 @@
|
|
|
1
1
|
import "../../assets/index19.css";
|
|
2
|
-
import
|
|
3
|
-
import { ConfigProvider as
|
|
4
|
-
import { I as
|
|
2
|
+
import o, { useState as d, useLayoutEffect as g, useRef as E, useEffect as K } from "react";
|
|
3
|
+
import { ConfigProvider as L } from "antd";
|
|
4
|
+
import { I as S } from "../../chunks/SnackBarProvider.v49b6mkx.js";
|
|
5
5
|
import { createGlobalStyle as P } from "styled-components";
|
|
6
|
-
import { toCssVariables as
|
|
7
|
-
import
|
|
8
|
-
import { Style as
|
|
9
|
-
import { K as
|
|
10
|
-
import { KitAristidThemeGeneral as
|
|
11
|
-
import { antdThemeConfig as
|
|
12
|
-
import { frFR as
|
|
13
|
-
import { enUS as
|
|
14
|
-
import {
|
|
15
|
-
import { mapKitLocaleToAntdLocale as
|
|
16
|
-
import { d as
|
|
17
|
-
|
|
6
|
+
import { toCssVariables as f, uuid as C } from "../../utils/functions/index.js";
|
|
7
|
+
import m from "lodash/merge";
|
|
8
|
+
import { Style as b } from "react-style-tag";
|
|
9
|
+
import { K as y } from "../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
10
|
+
import { KitAristidThemeGeneral as l } from "../../theme/aristid/general/index.js";
|
|
11
|
+
import { antdThemeConfig as I } from "../../theme/utils/tokens-mapper/index.js";
|
|
12
|
+
import { frFR as c } from "../../translation/fr-FR/index.js";
|
|
13
|
+
import { enUS as T } from "../../translation/en-US/index.js";
|
|
14
|
+
import { a as h, u as k } from "../../chunks/index.-7K1zF8V.js";
|
|
15
|
+
import { mapKitLocaleToAntdLocale as A } from "../../translation/utils/index.js";
|
|
16
|
+
import { d as F } from "../../chunks/notification-provider.KGowspef.js";
|
|
17
|
+
import "../DataDisplay/Avatar/index.js";
|
|
18
|
+
import "../DataDisplay/Badge/index.js";
|
|
19
|
+
import "../../chunks/index.fN8eYpwW.js";
|
|
20
|
+
import { KitEmpty as p } from "../DataDisplay/Empty/index.js";
|
|
21
|
+
import "../DataDisplay/LegacyCard/index.js";
|
|
22
|
+
import "../DataDisplay/Tabs/index.js";
|
|
23
|
+
import "../DataDisplay/Tree/index.js";
|
|
24
|
+
import "../DataDisplay/Tooltip/index.js";
|
|
25
|
+
import "classnames";
|
|
26
|
+
const R = P`
|
|
18
27
|
.${(t) => t.id} {
|
|
19
|
-
${(t) =>
|
|
28
|
+
${(t) => f(t.customTheme)};
|
|
20
29
|
}
|
|
21
|
-
`,
|
|
22
|
-
const [
|
|
30
|
+
`, $ = "aristid-ds-global", x = ({ children: t, customTheme: e, id: n }) => {
|
|
31
|
+
const [r, i] = d(null), { theme: u, appId: s, spacing: v } = _(n, e);
|
|
23
32
|
return g(() => {
|
|
24
|
-
const a =
|
|
33
|
+
const a = f(l, "--general");
|
|
25
34
|
i(a);
|
|
26
|
-
}, []),
|
|
27
|
-
|
|
35
|
+
}, []), o.createElement(y.Provider, { value: { theme: u, appId: s, spacing: v } }, r !== null && o.createElement(
|
|
36
|
+
o.Fragment,
|
|
28
37
|
null,
|
|
29
|
-
|
|
38
|
+
o.createElement(b, { id: $, hasSourceMap: !1 }, `
|
|
30
39
|
:root{
|
|
31
|
-
${Object.keys(
|
|
40
|
+
${Object.keys(r).map((a) => `${a}: ${r[a]}`).join(";")}
|
|
32
41
|
}
|
|
33
42
|
`),
|
|
34
|
-
e &&
|
|
43
|
+
e && o.createElement(R, { id: s, customTheme: e }),
|
|
35
44
|
t
|
|
36
45
|
));
|
|
37
|
-
},
|
|
38
|
-
var
|
|
39
|
-
const
|
|
40
|
-
return { theme:
|
|
46
|
+
}, _ = (t, e) => {
|
|
47
|
+
var n;
|
|
48
|
+
const r = E(t || "ds-" + C().substring(0, 8)), i = m(l.spacing, (n = e == null ? void 0 : e.general) === null || n === void 0 ? void 0 : n.spacing);
|
|
49
|
+
return { theme: l, appId: r.current, spacing: i };
|
|
41
50
|
}, j = ({ children: t }) => {
|
|
42
51
|
const e = G();
|
|
43
|
-
return
|
|
52
|
+
return o.createElement(h.Provider, { value: e }, t);
|
|
44
53
|
}, G = () => {
|
|
45
|
-
const [t, e] =
|
|
46
|
-
return { locale: t, setKitLocale: (
|
|
47
|
-
if (
|
|
48
|
-
const i =
|
|
54
|
+
const [t, e] = d(c);
|
|
55
|
+
return { locale: t, setKitLocale: (r) => {
|
|
56
|
+
if (r.locale === "frFR") {
|
|
57
|
+
const i = m(c, r);
|
|
49
58
|
e(i);
|
|
50
59
|
} else {
|
|
51
|
-
const i =
|
|
60
|
+
const i = m(T, r);
|
|
52
61
|
e(i);
|
|
53
62
|
}
|
|
54
63
|
} };
|
|
55
|
-
},
|
|
56
|
-
|
|
57
|
-
{ customTheme:
|
|
58
|
-
|
|
64
|
+
}, se = ({ children: t, locale: e, customTheme: n, id: r }) => o.createElement(
|
|
65
|
+
x,
|
|
66
|
+
{ customTheme: n, id: r },
|
|
67
|
+
o.createElement(
|
|
59
68
|
j,
|
|
60
69
|
null,
|
|
61
|
-
|
|
70
|
+
o.createElement(N, { locale: e }, t)
|
|
62
71
|
)
|
|
63
|
-
),
|
|
64
|
-
const { setKitLocale:
|
|
72
|
+
), N = ({ children: t, locale: e }) => {
|
|
73
|
+
const { locale: n, setKitLocale: r } = k();
|
|
65
74
|
return K(() => {
|
|
66
|
-
e !== void 0 &&
|
|
67
|
-
}, [e,
|
|
68
|
-
|
|
69
|
-
{ theme:
|
|
70
|
-
|
|
71
|
-
|
|
75
|
+
e !== void 0 && r(e);
|
|
76
|
+
}, [e, r]), o.createElement(
|
|
77
|
+
L,
|
|
78
|
+
{ theme: I, locale: A(e), renderEmpty: () => {
|
|
79
|
+
var i;
|
|
80
|
+
return o.createElement(p, { className: "default-render", image: p.ASSET_LIST, description: (i = n.Empty) === null || i === void 0 ? void 0 : i.noData });
|
|
81
|
+
} },
|
|
82
|
+
o.createElement(
|
|
83
|
+
F,
|
|
72
84
|
null,
|
|
73
|
-
|
|
85
|
+
o.createElement(S, null),
|
|
74
86
|
t
|
|
75
87
|
)
|
|
76
88
|
);
|
|
77
89
|
};
|
|
78
90
|
export {
|
|
79
|
-
|
|
91
|
+
se as KitApp
|
|
80
92
|
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import {AvatarProps} from 'antd';
|
|
2
|
+
import {GroupProps} from 'antd/es/avatar';
|
|
3
|
+
import {KitHTMLAttributes} from '../../../types';
|
|
4
|
+
import {FunctionComponent} from 'react';
|
|
5
|
+
import {KitColorProp} from '../../../utils/functions/types';
|
|
6
|
+
|
|
7
|
+
type AntdAvatarTypesToOmit = '';
|
|
8
|
+
type AntdAvatarGroupTypesToOmit = 'maxStyle';
|
|
9
|
+
|
|
10
|
+
export interface IKitAvatar extends Omit<AvatarProps, AntdAvatarTypesToOmit>, KitHTMLAttributes<HTMLSpanElement> {
|
|
11
|
+
color?: KitColorProp;
|
|
12
|
+
secondaryColorInvert?: boolean;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface IKitAvatarGroup
|
|
16
|
+
extends Omit<GroupProps, AntdAvatarGroupTypesToOmit>,
|
|
17
|
+
KitHTMLAttributes<HTMLDivElement> {}
|
|
18
|
+
|
|
19
|
+
export type KitAvatarCompoundedComponent = FunctionComponent<IKitAvatar> & {
|
|
20
|
+
Group: FunctionComponent<IKitAvatarGroup>;
|
|
21
|
+
};
|
|
@@ -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 {
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import {BadgeProps} from 'antd';
|
|
2
|
+
import {KitHTMLAttributes} from '../../../types';
|
|
3
|
+
import {KitColorProp} from '../../../utils/functions/types';
|
|
4
|
+
|
|
5
|
+
type AntdBadgeTypesToOmit = 'color' | 'size' | 'offset' | 'text';
|
|
6
|
+
|
|
7
|
+
export interface IKitBadge extends KitHTMLAttributes<HTMLDivElement>, Omit<BadgeProps, AntdBadgeTypesToOmit> {
|
|
8
|
+
color?: KitColorProp;
|
|
9
|
+
secondaryColorInvert?: boolean;
|
|
10
|
+
}
|
|
@@ -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.fN8eYpwW.js";
|
|
12
12
|
import "../../DataEntry/Switch/index.js";
|
|
13
13
|
import "../../DataEntry/DatePicker/index.js";
|
|
14
14
|
import "../../DataEntry/AutoComplete/index.js";
|
|
@@ -22,7 +22,7 @@ import "../../Navigation/DropDown/index.js";
|
|
|
22
22
|
import "../../Navigation/Steps/index.js";
|
|
23
23
|
import "antd";
|
|
24
24
|
import "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
25
|
-
import "../../../chunks/styles.module.
|
|
25
|
+
import "../../../chunks/styles.module.h70MuyQF.js";
|
|
26
26
|
export {
|
|
27
27
|
y as KitCard
|
|
28
28
|
};
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import {CSSProperties, ReactNode} from 'react';
|
|
2
|
+
import {IKitTagConfig} from '../../DataDisplay/Tag/types';
|
|
3
|
+
import {CheckboxChangeEvent} from 'antd/es/checkbox';
|
|
4
|
+
import {SwitchChangeEventHandler} from 'antd/es/switch';
|
|
5
|
+
|
|
6
|
+
export interface IKitCard {
|
|
7
|
+
title: string;
|
|
8
|
+
actions?: IKitCardAction[];
|
|
9
|
+
activated?: boolean;
|
|
10
|
+
brandingBar?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
extra?: string;
|
|
14
|
+
style?: CSSProperties;
|
|
15
|
+
disabled?: boolean;
|
|
16
|
+
previewSrc?: string;
|
|
17
|
+
onActivate?: SwitchChangeEventHandler;
|
|
18
|
+
onSelect?: (e: CheckboxChangeEvent) => void;
|
|
19
|
+
selected?: boolean;
|
|
20
|
+
tags?: IKitTagConfig[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface IKitCardAction {
|
|
24
|
+
key: string;
|
|
25
|
+
label: string;
|
|
26
|
+
icon: ReactNode;
|
|
27
|
+
onClick: (e: unknown) => void;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface IStyledKitCard {
|
|
31
|
+
$brandingBar: boolean;
|
|
32
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import {CollapseProps} from 'antd';
|
|
2
|
+
import {ReactNode, MouseEvent, ReactInstance, KeyboardEvent, FunctionComponent} from 'react';
|
|
3
|
+
import {KitHTMLAttributes} from '../../../types';
|
|
4
|
+
import {SwitchChangeEventHandler} from 'antd/es/switch';
|
|
5
|
+
|
|
6
|
+
type AntdCollapseTypesToOmit = 'bordered' | 'expandIconPosition' | 'ghost';
|
|
7
|
+
|
|
8
|
+
export interface IKitCollapse extends Omit<CollapseProps, AntdCollapseTypesToOmit>, KitHTMLAttributes<HTMLDivElement> {}
|
|
9
|
+
|
|
10
|
+
export interface IKitHeader {
|
|
11
|
+
imageSrc?: string;
|
|
12
|
+
title?: string;
|
|
13
|
+
description?: string;
|
|
14
|
+
tagContent?: ReactNode;
|
|
15
|
+
onSwitchChange?: SwitchChangeEventHandler;
|
|
16
|
+
disabled?: boolean;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IKitHeaderSwitch {
|
|
20
|
+
onSwitchChange: NonNullable<IKitHeader['onSwitchChange']>;
|
|
21
|
+
disabled: NonNullable<IKitHeader['disabled']>;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export interface IKitHeaderImage {
|
|
25
|
+
imageSrc: NonNullable<IKitHeader['imageSrc']>;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface IKitHeaderContent {
|
|
29
|
+
title: IKitHeader['title'];
|
|
30
|
+
description: IKitHeader['description'];
|
|
31
|
+
tagContent: IKitHeader['tagContent'];
|
|
32
|
+
disabled: IKitHeader['disabled'];
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface IKitMenuInfo {
|
|
36
|
+
key: string;
|
|
37
|
+
keyPath: string[];
|
|
38
|
+
/** @deprecated This will not support in future. You should avoid to use this */
|
|
39
|
+
item: ReactInstance;
|
|
40
|
+
domEvent: MouseEvent<HTMLElement> | KeyboardEvent<HTMLElement>;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
interface IAction {
|
|
44
|
+
icon: ReactNode;
|
|
45
|
+
label: string;
|
|
46
|
+
onClick?: (e: MouseEvent<HTMLElement> | IKitMenuInfo) => void;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface IActions extends Array<IAction> {}
|
|
50
|
+
|
|
51
|
+
export interface IKitHeaderExtra {
|
|
52
|
+
actions?: IActions;
|
|
53
|
+
disabled?: boolean;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface IKitHeaderExtraActions {
|
|
57
|
+
actions: NonNullable<IKitHeaderExtra['actions']>;
|
|
58
|
+
disabled: NonNullable<IKitHeaderExtra['disabled']>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export interface IKitHeaderExtraMoreActions {
|
|
62
|
+
actions: NonNullable<IKitHeaderExtra['actions']>;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type KitCollapseCompoundedComponent = FunctionComponent<IKitCollapse> & {
|
|
66
|
+
Header: FunctionComponent<IKitHeader>;
|
|
67
|
+
HeaderExtra: FunctionComponent<IKitHeaderExtra>;
|
|
68
|
+
};
|