aristid-ds 17.1.0-d004430 → 17.1.0-e41230a
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 +40 -2
- package/dist/Kit/DataDisplay/Carousel/CarouselArrow.d.ts +3 -0
- package/dist/Kit/DataDisplay/Carousel/CarouselBulletNav.d.ts +3 -0
- package/dist/Kit/DataDisplay/Carousel/index.d.ts +3 -0
- package/dist/Kit/DataDisplay/Carousel/index.js +2 -0
- package/dist/Kit/DataDisplay/Carousel/types.d.ts +59 -0
- 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/RedirectCard/index.js +1 -1
- package/dist/Kit/DataDisplay/Table/index.js +1 -1
- package/dist/Kit/DataDisplay/Tabs/index.js +1 -1
- package/dist/Kit/DataDisplay/Tag/index.js +1 -1
- package/dist/Kit/DataEntry/AutoComplete/index.js +5 -5
- package/dist/Kit/DataEntry/Checkbox/index.js +1 -1
- package/dist/Kit/DataEntry/ColorPicker/index.js +1 -1
- package/dist/Kit/DataEntry/DatePicker/index.js +1 -1
- package/dist/Kit/DataEntry/Input/index.js +1 -1
- package/dist/Kit/DataEntry/InputNumber/index.js +1 -1
- package/dist/Kit/DataEntry/InputWrapper/index.js +1 -1
- package/dist/Kit/DataEntry/Radio/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/LinkButton/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/MenuBar/MenuActionList/index.js +1 -1
- package/dist/Kit/DataEntry/RichText/index.js +1 -1
- package/dist/Kit/DataEntry/SearchInput/index.js +1 -1
- package/dist/Kit/DataEntry/Select/index.js +1 -1
- package/dist/Kit/DataEntry/TreeSelect/index.js +1 -1
- package/dist/Kit/DataEntry/Upload/index.js +1 -1
- package/dist/Kit/Feedback/Alert/index.js +1 -1
- 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 +1 -1
- package/dist/Kit/General/Button/index.js +1 -1
- package/dist/Kit/General/DynamicActions/index.js +1 -1
- package/dist/Kit/Layout/PageLayout/index.js +1 -1
- package/dist/Kit/Navigation/DropDown/index.js +50 -38
- package/dist/Kit/Navigation/Header/index.js +1 -1
- package/dist/Kit/Navigation/PageHeader/index.js +1 -1
- package/dist/Kit/Navigation/SideMenu/index.js +1 -1
- package/dist/Kit/Navigation/SidePanel/index.js +1 -1
- package/dist/Kit/index.d.ts +1 -0
- package/dist/Kit/index.js +55 -54
- package/dist/assets/Alert.css +1 -1
- package/dist/assets/App.css +1 -1
- package/dist/assets/Button.css +1 -1
- package/dist/assets/Carousel.css +1 -0
- package/dist/assets/ColorPicker.css +1 -1
- package/dist/assets/DatePicker.css +1 -1
- package/dist/assets/Input.css +1 -1
- package/dist/assets/InputNumber.css +1 -1
- package/dist/assets/InputWrapper.css +1 -1
- package/dist/assets/Notification.css +1 -1
- package/dist/assets/RichText.css +1 -1
- package/dist/assets/styles.css +1 -1
- package/dist/chunks/{Alert.DBSUI1YQ.js → Alert.CrmbhCGw.js} +1 -1
- package/dist/chunks/{Button.BwZ9TVAy.js → Button.v1MQw30k.js} +1 -1
- package/dist/chunks/Carousel.DCzkHSg3.js +108 -0
- package/dist/chunks/{Checkbox.UZ_xOkpB.js → Checkbox.Bo3N2_HB.js} +5 -5
- package/dist/chunks/{Collapse.UQswQLdu.js → Collapse.Chl_oSFX.js} +17 -17
- package/dist/chunks/{ColorPicker.CIfnJxzt.js → ColorPicker.rUXYswcG.js} +8 -8
- package/dist/chunks/{DatePicker.B6MnduRh.js → DatePicker.BZlCppmB.js} +8 -8
- package/dist/chunks/{DynamicActions.Cm8BsY8r.js → DynamicActions.qq2NpBeB.js} +1 -1
- package/dist/chunks/{Header.Dy-_xRYz.js → Header.BBAyPU4i.js} +12 -12
- package/dist/chunks/{Input.CpnF5RXW.js → Input.BVOno3po.js} +18 -18
- package/dist/chunks/{InputNumber.CUVPnyxG.js → InputNumber.BitD3ti0.js} +2 -2
- package/dist/chunks/{InputWrapper.By9kN0xU.js → InputWrapper.ClVv6MKw.js} +1 -1
- package/dist/chunks/{ItemCard.IfukwSXw.js → ItemCard.NOwKiaOa.js} +35 -35
- package/dist/chunks/{ItemList.B4WlfX8P.js → ItemList.CaBU0JnF.js} +12 -12
- package/dist/chunks/{LinkButton.D9hS3_Ah.js → LinkButton.DoFT7L5o.js} +6 -6
- package/dist/chunks/{Modal.CsGHowNT.js → Modal.BV2B37Lq.js} +1 -1
- package/dist/chunks/{Notification.0bSpwSG0.js → Notification.BMo655AG.js} +2 -2
- package/dist/chunks/{PageHeader.DrBzIAkD.js → PageHeader.aid527xG.js} +2 -2
- package/dist/chunks/{PageLayout.BxWR52f1.js → PageLayout.Vk7ocz7U.js} +2 -2
- package/dist/chunks/{Radio.CEJd1j6E.js → Radio.DepTCCZw.js} +1 -1
- package/dist/chunks/{RedirectCard.C9L2Ym_b.js → RedirectCard.CKQEtQnm.js} +1 -1
- package/dist/chunks/{RichText.DnxqGaDh.js → RichText.B2k_EebE.js} +12 -12
- package/dist/chunks/{SearchInput.Bfq_95YB.js → SearchInput.DaDXvsIv.js} +1 -1
- package/dist/chunks/{Select.DkuOgq0D.js → Select.s7ntBKRR.js} +22 -22
- package/dist/chunks/{SideMenu.ImYCXDC3.js → SideMenu.CH2Z0TdM.js} +2 -2
- package/dist/chunks/{SidePanel.CTtyKSw5.js → SidePanel.DN2qSVay.js} +16 -16
- package/dist/chunks/{SnackBar.Bdq4XTnk.js → SnackBar.C7_Izy5H.js} +2 -2
- package/dist/chunks/{Table.COyj-GZ5.js → Table.eZGKvND1.js} +1 -1
- package/dist/chunks/{Tabs.BHToGNhL.js → Tabs.DzoxGGJ1.js} +1 -1
- package/dist/chunks/{Tag.C48VnN6a.js → Tag.Cif-4UOP.js} +1 -1
- package/dist/chunks/TreeSelect.DbNLXwTZ.js +180 -0
- package/dist/chunks/{Upload.BGoYUqae.js → Upload.DlW3ObtU.js} +2 -2
- package/dist/chunks/{styles.module.By98kIfU.js → styles.module.1MMI-Pri.js} +1 -1
- package/dist/index.es.js +55 -54
- package/dist/index.umd.js +4 -4
- package/dist/theme/aristid/components/DataDisplay/Carousel/index.d.ts +2 -0
- package/dist/theme/aristid/components/DataDisplay/Carousel/index.js +21 -0
- package/dist/theme/aristid/general/colors/index.js +17 -15
- package/dist/theme/aristid/general/utilities/index.js +5 -5
- package/dist/theme/types/components/DataDisplay/Carousel/index.d.ts +85 -0
- package/dist/theme/types/general/colors/index.d.ts +5 -0
- package/dist/theme/types/index.d.ts +2 -0
- package/dist/theme/utils/tokens-mapper/Feedback/Alert/index.js +2 -2
- package/dist/translation/en-US/components/DataDisplay/Carousel/index.d.ts +2 -0
- package/dist/translation/en-US/components/DataDisplay/Carousel/index.js +9 -0
- package/dist/translation/en-US/index.js +34 -32
- package/dist/translation/fr-FR/components/DataDisplay/Carousel/index.d.ts +2 -0
- package/dist/translation/fr-FR/components/DataDisplay/Carousel/index.js +9 -0
- package/dist/translation/fr-FR/index.js +28 -26
- package/dist/translation/pt-PT/components/DataDisplay/Carousel/index.d.ts +2 -0
- package/dist/translation/pt-PT/components/DataDisplay/Carousel/index.js +9 -0
- package/dist/translation/pt-PT/index.js +30 -28
- package/dist/translation/types/components/DataDisplay/Carousel/index.d.ts +6 -0
- package/dist/translation/types/index.d.ts +2 -0
- package/package.json +2 -2
- package/dist/chunks/TreeSelect.5SAFEy-v.js +0 -169
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,45 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [X.Y.Z](https://www.npmjs.com/package/aristid-ds/v/X.Y.Z) (YYYY-MM-DD)
|
|
4
|
+
|
|
5
|
+
### ✨ Features
|
|
6
|
+
|
|
7
|
+
- **Colors:**
|
|
8
|
+
- Update the `error` ramp step 400 (`--general-colors-secondary-error-400`, aliased by `--general-utilities-error-default` and `--general-utilities-text-error`) failing the WCAG AA contrast check: `#EB0D18` becomes `#E80A15`, raising the ratio on the error input background from 4.41 to 4.53 with no perceptible visual change (@philippechevieux)
|
|
9
|
+
- Darken the whole `secondary.warning` (orange) ramp for accessibility: `100` `#FFF4E6`→`#FEF8EE`, `200` `#FFD8A8`→`#F9DAAF`, `300` `#FFA94D`→`#EF9B48`, `400` `#FF922B`→`#EB7E24`, `500` `#FD7E14`→`#DC651A`, `600` `#F76707`→`#BC4F18`, `700` `#360F00`→`#3F190B` (@philippechevieux)
|
|
10
|
+
- Repoint the `text.warning` alias from `warning.default` (ramp `400`) to `warning.dark` (ramp `600`): warning text on the warning surface only reached 2.64:1, it now reaches 4.65:1 and passes WCAG AA (@philippechevieux)
|
|
11
|
+
- Improve the accessibility of the `Grey` palette: add `--general-colors-neutral-grey-50` (`#F3F7F8`) and re-value the 7 existing shades — `100` → `#E0E9ED`, `200` → `#C5D4DC`, `300` → `#9CB6C4`, `400` → `#6C8FA4`, `500` → `#567A91`, `600` → `#3D5061`, `700` → `#1E262E` (@philippechevieux)
|
|
12
|
+
- Remap the neutral semantic aliases onto the new scale: `neutral-light` → `grey-50`, `neutral-dark` → `grey-500`, `neutral-deepDark` → `grey-700` (`neutral-medium` stays on `grey-200`), and point `--general-utilities-disabled` at `grey-500` so disabled texts, placeholders and character counts reach the WCAG AA contrast ratio (4.58:1 on white, was 2.27:1) (@philippechevieux)
|
|
13
|
+
- **Accessibility**:
|
|
14
|
+
- Render placeholder text in italic on every data entry component — `Input`, `Input.TextArea`, `Input.Password`, `SearchInput`, `AutoComplete`, `InputNumber`, `DatePicker`, `RangePicker`, `Select`, `TreeSelect`, `ColorPicker` and `RichText` — in all sizes and including the AI variants, so the empty (default) state is visually distinct from filled content now that the placeholder grey is darker (@philippechevieux)
|
|
15
|
+
- **DropDown:**
|
|
16
|
+
- Highlight the open path (menu items and submenus) and mark the selected item with a check (@philippechevieux)
|
|
17
|
+
- Top-align each submenu panel with its trigger and offset it by `spacing.s`, bridging the gap so hover doesn't close the menu (@philippechevieux)
|
|
18
|
+
- Give a hovered submenu the same background highlight as a menu item, instead of a bordered frame (@philippechevieux)
|
|
19
|
+
- **Carousel:**
|
|
20
|
+
- Add the `KitCarousel` component: slides browsed horizontally with the current one centered, floating previous/next buttons and a bullet navigation (@philippechevieux)
|
|
21
|
+
|
|
22
|
+
### 🐛 Bug Fixes
|
|
23
|
+
|
|
24
|
+
- **Button:**
|
|
25
|
+
- Fix the focus ring being offset to the right on the primary split button (all sizes): Ant Design 6 wraps the dropdown trigger in a `span.ant-dropdown-trigger`, breaking the adjacent-sibling selector that hides the divider when the main button is focused (@philippechevieux)
|
|
26
|
+
- **Alert:**
|
|
27
|
+
- Fix the icon and single-line message not being vertically centered against each other on a message-only alert (no description) (@philippechevieux)
|
|
28
|
+
- Fix the icon being misaligned on a description-only alert (no message): the empty title row still reserved its vertical spacing, so the description was pushed down away from the icon (@philippechevieux)
|
|
29
|
+
- Fix the icons' & borders' color for the "Info" type (@frykten)
|
|
30
|
+
- **Select:**
|
|
31
|
+
- Fix the select collapsing to its content width under Ant Design 6 when no explicit width is set; it now fills its `KitInputWrapper` by default while an inline `style` width still takes precedence (@7Remy)
|
|
32
|
+
- **TreeSelect:**
|
|
33
|
+
- Fix the tree select collapsing to its content width under Ant Design 6 when no explicit width is set; it now fills its `KitInputWrapper` by default while an inline `style` width still takes precedence (@7Remy)
|
|
34
|
+
- Fix search being cleared when re-clicking the input while a search was already in progress; the dropdown now stays open and the search value is preserved (@philippechevieux)
|
|
35
|
+
- Fix multi-character search returning no result by defaulting `treeNodeFilterProp` to `title` (was antd's `value`), so nodes are filtered on their displayed label (@philippechevieux)
|
|
36
|
+
- Fix the dropdown staying open after selecting a node in single mode; it now closes on selection while multiple mode still stays open to check several nodes in a row (@philippechevieux)
|
|
37
|
+
- Fix the selected value showing through the search text in single mode: the design-system content color was cancelling the transparency Ant Design 6 uses to hide the value behind the search input (@philippechevieux)
|
|
38
|
+
|
|
39
|
+
### 📝 Documentation
|
|
40
|
+
|
|
41
|
+
- Fix the Storybook table of contents listing the titles of the components used as demo data (`KitRedirectCard`, `KitItemCard`…) alongside the real chapters (@philippechevieux)
|
|
42
|
+
|
|
3
43
|
## [17.1.0](https://www.npmjs.com/package/aristid-ds/v/17.1.0) (2026-07-23)
|
|
4
44
|
|
|
5
45
|
### ✨ Features
|
|
@@ -22,14 +62,12 @@
|
|
|
22
62
|
- **Switch:**
|
|
23
63
|
- Replace deprecated `size="default"` with `size="medium"` to remove the Ant Design 6 deprecation warning (@philippechevieux)
|
|
24
64
|
- **Select:**
|
|
25
|
-
- Fix the select collapsing to its content width under Ant Design 6 when no explicit width is set; it now fills its `KitInputWrapper` by default while an inline `style` width still takes precedence (@7Remy)
|
|
26
65
|
- Fix `popupRender` being ignored unless the deprecated `dropdownRender` prop was also passed (@frykten)
|
|
27
66
|
- Fix a consumer-provided `classNames.popup.root` being overwritten instead of merged with the design system's own popup classes (@frykten)
|
|
28
67
|
- Fix `value`/`defaultValue` shape: they now properly accept `labelInValue` objects and arrays (`LabeledValue` / `LabeledValue[]`) in addition to raw string/number values, and fix tag rendering to correctly resolve the tag's icon, avatar and label (@frykten)
|
|
29
68
|
- **DropDown:**
|
|
30
69
|
- Fix a consumer-provided `styles.root` being overwritten instead of merged with the design system's own popup styles when the deprecated `overlayStyle` prop was also used (@frykten)
|
|
31
70
|
- **TreeSelect:**
|
|
32
|
-
- Fix the tree select collapsing to its content width under Ant Design 6 when no explicit width is set; it now fills its `KitInputWrapper` by default while an inline `style` width still takes precedence (@7Remy)
|
|
33
71
|
- Fix `popupRender` being ignored unless the deprecated `dropdownRender` prop was also passed (@frykten)
|
|
34
72
|
- Fix a consumer-provided `classNames.popup.root` being overwritten instead of merged with the design system's own popup classes (@frykten)
|
|
35
73
|
- Remove the deprecated `bordered`, `dropdownMatchSelectWidth`, `removeIcon` and `maxTagTextLength` props from the public type — they were already dead (ignored due to the custom `tagRender`) or could silently override the design system's own variant/tag styling (@frykten)
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { CSSProperties, MouseEventHandler, ReactNode } from 'react';
|
|
2
|
+
import { CarouselProps, CarouselRef } from 'antd/es/carousel';
|
|
3
|
+
/**
|
|
4
|
+
* Props driven by the design system, they can't be overridden by the consumer:
|
|
5
|
+
* - the dots are replaced by the design system bullet navigation
|
|
6
|
+
* - the arrows are replaced by the design system floating buttons
|
|
7
|
+
* - the carousel is always horizontal and always centers the current slide
|
|
8
|
+
*/
|
|
9
|
+
type AntdCarouselTypesToOmit =
|
|
10
|
+
| 'centerMode'
|
|
11
|
+
| 'centerPadding'
|
|
12
|
+
| 'dotPlacement'
|
|
13
|
+
| 'dotPosition'
|
|
14
|
+
| 'dots'
|
|
15
|
+
| 'dotsClass'
|
|
16
|
+
| 'nextArrow'
|
|
17
|
+
| 'prefixCls'
|
|
18
|
+
| 'prevArrow'
|
|
19
|
+
| 'rootClassName'
|
|
20
|
+
| 'vertical';
|
|
21
|
+
|
|
22
|
+
export interface IKitCarousel extends Omit<CarouselProps, AntdCarouselTypesToOmit> {
|
|
23
|
+
children?: ReactNode;
|
|
24
|
+
className?: string;
|
|
25
|
+
style?: CSSProperties;
|
|
26
|
+
/**
|
|
27
|
+
* Number of slides displayed at once. Use an odd number so the current slide is centered.
|
|
28
|
+
* @default 3
|
|
29
|
+
*/
|
|
30
|
+
slidesToShow?: number;
|
|
31
|
+
/**
|
|
32
|
+
* Display the floating previous/next navigation buttons.
|
|
33
|
+
* @default true
|
|
34
|
+
*/
|
|
35
|
+
arrows?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Display the bullet navigation below the slides.
|
|
38
|
+
* @default true
|
|
39
|
+
*/
|
|
40
|
+
bullets?: boolean;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type IKitCarouselRef = CarouselRef;
|
|
44
|
+
|
|
45
|
+
export type KitCarouselArrowDirection = 'previous' | 'next';
|
|
46
|
+
|
|
47
|
+
export interface IKitCarouselArrow {
|
|
48
|
+
direction: KitCarouselArrowDirection;
|
|
49
|
+
label?: string;
|
|
50
|
+
onClick: MouseEventHandler<HTMLElement>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface IKitCarouselBulletNav {
|
|
54
|
+
count: number;
|
|
55
|
+
currentSlide: number;
|
|
56
|
+
label?: string;
|
|
57
|
+
getSlideLabel: (slideNumber: number) => string;
|
|
58
|
+
onSelect: (slideIndex: number) => void;
|
|
59
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Collapse.
|
|
1
|
+
import { t as e } from "../../../chunks/Collapse.Chl_oSFX.js";
|
|
2
2
|
export { e as KitCollapse };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/ItemCard.
|
|
1
|
+
import { t as e } from "../../../chunks/ItemCard.NOwKiaOa.js";
|
|
2
2
|
export { e as KitItemCard };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/ItemList.
|
|
1
|
+
import { t as e } from "../../../chunks/ItemList.CaBU0JnF.js";
|
|
2
2
|
export { e as KitItemList };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/RedirectCard.
|
|
1
|
+
import { t as e } from "../../../chunks/RedirectCard.CKQEtQnm.js";
|
|
2
2
|
export { e as KitRedirectCard };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../../../chunks/Table.
|
|
1
|
+
import { n as e, t } from "../../../chunks/Table.eZGKvND1.js";
|
|
2
2
|
export { t as KitTable, e as KitTableExpandButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Tabs.
|
|
1
|
+
import { t as e } from "../../../chunks/Tabs.DzoxGGJ1.js";
|
|
2
2
|
export { e as KitTabs };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Tag.
|
|
1
|
+
import { t as e } from "../../../chunks/Tag.Cif-4UOP.js";
|
|
2
2
|
export { e as KitTag };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/
|
|
2
|
-
import { t } from "../../../chunks/
|
|
3
|
-
import { t as n } from "../../../chunks/Input.
|
|
1
|
+
import { t as e } from "../../../chunks/useGetPopupContainer.C6KjVnVk.js";
|
|
2
|
+
import { t } from "../../../chunks/InputWrapper.ClVv6MKw.js";
|
|
3
|
+
import { t as n } from "../../../chunks/Input.BVOno3po.js";
|
|
4
4
|
import { jsx as r } from "react/jsx-runtime";
|
|
5
5
|
import { forwardRef as i, useRef as a, useState as o } from "react";
|
|
6
6
|
import { AutoComplete as s } from "antd";
|
|
@@ -13,12 +13,12 @@ var d = (e, t, n) => c(e, "ant-select-dropdown", "kit-select-dropdown-bottom", {
|
|
|
13
13
|
"kit-select-dropdown-error": n === "error",
|
|
14
14
|
"kit-select-dropdown-warning": n === "warning"
|
|
15
15
|
}), f = i(({ allowClear: i, label: c, helper: f, htmlFor: p, autoFocus: m, defaultValue: h, disabled: g, placeholder: _, status: v, value: y, getPopupContainer: b, onFocus: x, onBlur: S, popupClassName: C, wrapperClassName: w, required: T, actions: E, size: D = "large", extra: O, ...k }, A) => {
|
|
16
|
-
let [j, M] = o(!1), N = a(null), P = A ?? N, F =
|
|
16
|
+
let [j, M] = o(!1), N = a(null), P = A ?? N, F = e(P, b), I = (e) => {
|
|
17
17
|
M(!0), x && x(e);
|
|
18
18
|
}, L = (e) => {
|
|
19
19
|
M(!1), S && S(e);
|
|
20
20
|
}, R = typeof k.classNames == "function" ? void 0 : k.classNames;
|
|
21
|
-
return r(
|
|
21
|
+
return r(t, {
|
|
22
22
|
label: c,
|
|
23
23
|
helper: f,
|
|
24
24
|
htmlFor: p,
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Checkbox.
|
|
1
|
+
import { t as e } from "../../../chunks/Checkbox.Bo3N2_HB.js";
|
|
2
2
|
export { e as KitCheckbox };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/ColorPicker.
|
|
1
|
+
import { t as e } from "../../../chunks/ColorPicker.rUXYswcG.js";
|
|
2
2
|
export { e as KitColorPicker };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/DatePicker.
|
|
1
|
+
import { t as e } from "../../../chunks/DatePicker.BZlCppmB.js";
|
|
2
2
|
export { e as KitDatePicker };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Input.
|
|
1
|
+
import { t as e } from "../../../chunks/Input.BVOno3po.js";
|
|
2
2
|
export { e as KitInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/InputNumber.
|
|
1
|
+
import { t as e } from "../../../chunks/InputNumber.BitD3ti0.js";
|
|
2
2
|
export { e as KitInputNumber };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/InputWrapper.
|
|
1
|
+
import { t as e } from "../../../chunks/InputWrapper.ClVv6MKw.js";
|
|
2
2
|
export { e as KitInputWrapper };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Radio.
|
|
1
|
+
import { t as e } from "../../../chunks/Radio.DepTCCZw.js";
|
|
2
2
|
export { e as KitRadio };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../../../chunks/LinkButton.
|
|
1
|
+
import { t as e } from "../../../../../chunks/LinkButton.DoFT7L5o.js";
|
|
2
2
|
export { e as KitLinkButton };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "../../../../../chunks/Divider.BmAL40z9.js";
|
|
2
2
|
import { KitFontStylesButtons as t } from "../FontStylesButtons/index.js";
|
|
3
3
|
import { KitTextAlignButtons as n } from "../TextAlignButtons/index.js";
|
|
4
|
-
import { t as r } from "../../../../../chunks/LinkButton.
|
|
4
|
+
import { t as r } from "../../../../../chunks/LinkButton.DoFT7L5o.js";
|
|
5
5
|
import { KitListButtons as i } from "../ListButtons/index.js";
|
|
6
6
|
import { KitIndentListButtons as a } from "../IndentListButtons/index.js";
|
|
7
7
|
import { Fragment as o, jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/RichText.
|
|
1
|
+
import { t as e } from "../../../chunks/RichText.B2k_EebE.js";
|
|
2
2
|
export { e as KitRichText };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/SearchInput.
|
|
1
|
+
import { t as e } from "../../../chunks/SearchInput.DaDXvsIv.js";
|
|
2
2
|
export { e as KitSearchInput };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Select.
|
|
1
|
+
import { t as e } from "../../../chunks/Select.s7ntBKRR.js";
|
|
2
2
|
export { e as KitSelect };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/TreeSelect.
|
|
1
|
+
import { t as e } from "../../../chunks/TreeSelect.DbNLXwTZ.js";
|
|
2
2
|
export { e as KitTreeSelect };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Upload.
|
|
1
|
+
import { t as e } from "../../../chunks/Upload.DlW3ObtU.js";
|
|
2
2
|
export { e as KitUpload };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Alert.
|
|
1
|
+
import { t as e } from "../../../chunks/Alert.CrmbhCGw.js";
|
|
2
2
|
export { e as KitAlert };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../../../chunks/Modal.
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../../../chunks/Modal.BV2B37Lq.js";
|
|
2
2
|
export { r as KitModal, t as KitModalContent, n as KitModalFooter, e as KitModalHeader };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Notification.
|
|
1
|
+
import { t as e } from "../../../chunks/Notification.BMo655AG.js";
|
|
2
2
|
export { e as KitNotification };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../../../chunks/SnackBar.
|
|
1
|
+
import { n as e, r as t, t as n } from "../../../chunks/SnackBar.C7_Izy5H.js";
|
|
2
2
|
export { n as KitSnackBarProvider, e as closeKitSnackBar, t as openKitSnackBar };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Button.
|
|
1
|
+
import { t as e } from "../../../chunks/Button.v1MQw30k.js";
|
|
2
2
|
export { e as KitButton };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/DynamicActions.
|
|
1
|
+
import { t as e } from "../../../chunks/DynamicActions.qq2NpBeB.js";
|
|
2
2
|
export { e as default };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/PageLayout.
|
|
1
|
+
import { t as e } from "../../../chunks/PageLayout.Vk7ocz7U.js";
|
|
2
2
|
export { e as KitPageLayout };
|
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
import { n as e } from "../../../chunks/useKitTheme.Bcv-etUA.js";
|
|
2
|
-
import { t } from "../../../
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
2
|
+
import { spacing as t } from "../../../theme/aristid/general/spacing/index.js";
|
|
3
|
+
import { t as n } from "../../../chunks/useGetPopupContainer.C6KjVnVk.js";
|
|
4
|
+
import { Fragment as r, jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
import { useContext as o, useEffect as s, useRef as c, useState as l } from "react";
|
|
6
|
+
import { Dropdown as u } from "antd";
|
|
7
|
+
import d from "classnames";
|
|
8
|
+
import { FontAwesomeIcon as f } from "@fortawesome/react-fontawesome";
|
|
9
|
+
import { faCheck as p } from "@fortawesome/free-solid-svg-icons";
|
|
10
|
+
import { ConfigContext as m } from "antd/es/config-provider/";
|
|
9
11
|
//#region src/Kit/Navigation/DropDown/index.tsx
|
|
10
|
-
var
|
|
12
|
+
var h = 1, g = t.xxs, _ = 11 + t.s, v = -(h + g), y = (e) => e.type === "divider", b = (e) => e.type === "group", x = (e) => {
|
|
11
13
|
if (e === null) return e;
|
|
12
|
-
let t =
|
|
14
|
+
let t = y(e) || b(e) ? e : {
|
|
13
15
|
...e,
|
|
14
16
|
onClick: (t) => {
|
|
15
17
|
var n;
|
|
@@ -17,7 +19,7 @@ var f = (e) => e.type === "divider", p = (e) => e.type === "group", m = (e) => {
|
|
|
17
19
|
}
|
|
18
20
|
};
|
|
19
21
|
if ("children" in t && t.children !== void 0) {
|
|
20
|
-
let e = t.children.map((e) =>
|
|
22
|
+
let e = t.children.map((e) => x(e));
|
|
21
23
|
return {
|
|
22
24
|
...t,
|
|
23
25
|
children: e
|
|
@@ -25,49 +27,59 @@ var f = (e) => e.type === "divider", p = (e) => e.type === "group", m = (e) => {
|
|
|
25
27
|
}
|
|
26
28
|
return "label" in t ? {
|
|
27
29
|
...t,
|
|
28
|
-
label:
|
|
30
|
+
label: a(r, { children: [t.label, i(f, {
|
|
29
31
|
className: "ant-dropdown-check",
|
|
30
|
-
icon:
|
|
32
|
+
icon: p
|
|
31
33
|
})] })
|
|
32
34
|
} : t;
|
|
33
|
-
},
|
|
35
|
+
}, S = (e) => {
|
|
34
36
|
if (e === void 0 || e.items === void 0) return e;
|
|
35
|
-
let t = e.items.map(
|
|
37
|
+
let t = e.items.map(x);
|
|
36
38
|
return {
|
|
37
39
|
...e,
|
|
38
40
|
items: t
|
|
39
41
|
};
|
|
40
|
-
},
|
|
41
|
-
let { appId:
|
|
42
|
-
|
|
43
|
-
let
|
|
44
|
-
...
|
|
42
|
+
}, C = ({ overlayClassName: t, overlayStyle: r, rootClassName: a, styles: f, menu: p, getPopupContainer: h, onOpenChange: g, children: y, ...b }) => {
|
|
43
|
+
let { appId: x } = e(), { direction: C } = o(m), [w, T] = l(!1), E = c(null), D = c(0);
|
|
44
|
+
w && D.current++;
|
|
45
|
+
let O = n(E, h), k = d(x, t, a), A = typeof f == "function" ? void 0 : f, j = r ? {
|
|
46
|
+
...A,
|
|
45
47
|
root: {
|
|
46
|
-
...
|
|
47
|
-
...
|
|
48
|
+
...A?.root,
|
|
49
|
+
...r
|
|
48
50
|
}
|
|
49
|
-
} :
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
} : A, M = C === "rtl", N = { rightTop: {
|
|
52
|
+
points: M ? ["tr", "tl"] : ["tl", "tr"],
|
|
53
|
+
offset: [M ? -_ : _, v],
|
|
54
|
+
overflow: {
|
|
55
|
+
adjustX: 1,
|
|
56
|
+
adjustY: 1
|
|
57
|
+
}
|
|
58
|
+
} }, P = S(p), F = P && {
|
|
59
|
+
...P,
|
|
60
|
+
builtinPlacements: P.builtinPlacements ?? N
|
|
61
|
+
};
|
|
62
|
+
return s(() => {
|
|
63
|
+
let e = () => T(!1);
|
|
52
64
|
return window.addEventListener("blur", e), () => window.removeEventListener("blur", e);
|
|
53
|
-
}, []),
|
|
54
|
-
rootClassName:
|
|
55
|
-
styles:
|
|
56
|
-
getPopupContainer:
|
|
57
|
-
menu:
|
|
58
|
-
open:
|
|
65
|
+
}, []), i(u, {
|
|
66
|
+
rootClassName: k,
|
|
67
|
+
styles: j,
|
|
68
|
+
getPopupContainer: O,
|
|
69
|
+
menu: F,
|
|
70
|
+
open: w,
|
|
59
71
|
onOpenChange: (e, t) => {
|
|
60
|
-
t.source === "menu" ?
|
|
72
|
+
t.source === "menu" ? T(!0) : T(e), g?.(e, t);
|
|
61
73
|
},
|
|
62
|
-
...
|
|
63
|
-
children:
|
|
64
|
-
ref:
|
|
74
|
+
...b,
|
|
75
|
+
children: i("span", {
|
|
76
|
+
ref: E,
|
|
65
77
|
tabIndex: -1,
|
|
66
78
|
style: { display: "inline-flex" },
|
|
67
|
-
children:
|
|
68
|
-
},
|
|
79
|
+
children: y
|
|
80
|
+
}, D.current)
|
|
69
81
|
});
|
|
70
82
|
};
|
|
71
|
-
|
|
83
|
+
C.displayName = "KitDropDown";
|
|
72
84
|
//#endregion
|
|
73
|
-
export {
|
|
85
|
+
export { C as KitDropDown };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/Header.
|
|
1
|
+
import { t as e } from "../../../chunks/Header.BBAyPU4i.js";
|
|
2
2
|
export { e as KitHeader };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/PageHeader.
|
|
1
|
+
import { t as e } from "../../../chunks/PageHeader.aid527xG.js";
|
|
2
2
|
export { e as KitPageHeader };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { t as e } from "../../../chunks/SideMenu.
|
|
1
|
+
import { t as e } from "../../../chunks/SideMenu.CH2Z0TdM.js";
|
|
2
2
|
export { e as KitSideMenu };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, r as t, t as n } from "../../../chunks/SidePanel.
|
|
1
|
+
import { n as e, r as t, t as n } from "../../../chunks/SidePanel.DN2qSVay.js";
|
|
2
2
|
export { n as KitSidePanel, e as KitSidePanelContent, t as KitSidePanelHeader };
|
package/dist/Kit/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export { KitApp } from './App';
|
|
2
2
|
export { KitAvatar } from './DataDisplay/Avatar';
|
|
3
3
|
export { KitBadge } from './DataDisplay/Badge';
|
|
4
|
+
export { KitCarousel } from './DataDisplay/Carousel';
|
|
4
5
|
export { KitComment } from './DataDisplay/Comment';
|
|
5
6
|
export { KitItemCard } from './DataDisplay/ItemCard';
|
|
6
7
|
export { KitCollapse } from './DataDisplay/Collapse';
|