aristid-ds 14.0.0-c679caf → 14.0.0-cdba7e7
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 +1 -0
- package/dist/Kit/DataEntry/AutoComplete/index.js +2 -2
- package/dist/Kit/DataEntry/Checkbox/index.js +1 -1
- package/dist/Kit/DataEntry/ColorPicker/index.js +2 -2
- package/dist/Kit/DataEntry/DatePicker/index.js +2 -2
- 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/index.js +1 -1
- package/dist/Kit/DataEntry/Select/index.js +2 -2
- package/dist/Kit/DataEntry/TreeSelect/index.js +2 -2
- package/dist/Kit/Navigation/DropDown/index.js +1 -1
- package/dist/Kit/Navigation/SidePanel/index.js +1 -1
- package/dist/Kit/Navigation/SidePanel/types.d.ts +1 -1
- package/dist/Kit/index.js +1 -1
- package/dist/assets/InputWrapper.css +1 -1
- package/dist/assets/useGetPopupContainer.css +1 -1
- package/dist/chunks/{InputWrapper.aaS2HSev.js → InputWrapper.XK7lKnUm.js} +7 -7
- package/dist/chunks/useGetPopupContainer.efPkxYe1.js +18 -0
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/theme/types/components/Navigation/SidePanel/index.d.ts +6 -1
- package/package.json +1 -1
- package/dist/chunks/useGetPopupContainer.1ha3p9Qd.js +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -23,6 +23,7 @@
|
|
|
23
23
|
|
|
24
24
|
- **SidePanel**:
|
|
25
25
|
- Add opening and closing animations (@philippechevieux)
|
|
26
|
+
- Add `l` size (@7Remy)
|
|
26
27
|
|
|
27
28
|
- **SidePanel:**
|
|
28
29
|
- Add `useChildrenOnly` property to display the side panel as a container for other components or not. Also export two new components `KitSidePanelHeader` and `KitSidePanelContent` for layout purpose (@philippechevieux)
|
|
@@ -3,11 +3,11 @@ import { jsx as e } from "react/jsx-runtime";
|
|
|
3
3
|
import { forwardRef as O, useState as b, useRef as j } from "react";
|
|
4
4
|
import { AutoComplete as B } from "antd";
|
|
5
5
|
import { KitInput as M } from "../Input/index.js";
|
|
6
|
-
import { K as S } from "../../../chunks/InputWrapper.
|
|
6
|
+
import { K as S } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
7
7
|
import { FontAwesomeIcon as W } from "@fortawesome/react-fontawesome";
|
|
8
8
|
import { faMagnifyingGlass as q } from "@fortawesome/free-solid-svg-icons";
|
|
9
9
|
import z from "classnames";
|
|
10
|
-
import { u as D } from "../../../chunks/useGetPopupContainer.
|
|
10
|
+
import { u as D } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
11
11
|
const E = {
|
|
12
12
|
"kit-autocomplete": "_kit-autocomplete_kox09_2"
|
|
13
13
|
}, H = (t, r, o) => z(t, "ant-select-dropdown", "kit-select-dropdown-bottom", {
|
|
@@ -7,7 +7,7 @@ import { u as ae } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
|
7
7
|
import ne from "rc-util/es/omit";
|
|
8
8
|
import { ConfigContext as ie } from "antd/es/config-provider/";
|
|
9
9
|
import ce from "antd/es/checkbox/style";
|
|
10
|
-
import { K as ue } from "../../../chunks/InputWrapper.
|
|
10
|
+
import { K as ue } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
11
11
|
const j = P(null), te = ({ defaultValue: b, children: v, options: a = [], prefixCls: f, className: e, wrapperClassName: x, status: g, rootClassName: t, style: i, onChange: d, label: h, helper: o, required: r, actions: B, extra: k, ...n }, D) => {
|
|
12
12
|
const { getPrefixCls: E, direction: T } = R(ie), [m, K] = w(n.value || b || []), [W, S] = w([]);
|
|
13
13
|
I(() => {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import "../../../assets/index26.css";
|
|
2
2
|
import { forwardRef as J, useRef as Q, useState as d, useEffect as b, useImperativeHandle as Z, createElement as V } from "react";
|
|
3
3
|
import { jsxs as oo, jsx as s } from "react/jsx-runtime";
|
|
4
|
-
import { K as to } from "../../../chunks/InputWrapper.
|
|
4
|
+
import { K as to } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
5
5
|
import { u as eo } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
6
|
import { ColorPicker as ro } from "antd";
|
|
7
7
|
import N from "classnames";
|
|
8
8
|
import { FontAwesomeIcon as io } from "@fortawesome/react-fontawesome";
|
|
9
9
|
import { faCircleXmark as no } from "@fortawesome/free-solid-svg-icons";
|
|
10
10
|
import { u as co } from "../../../chunks/useKitLocale.96CdK3og.js";
|
|
11
|
-
import { u as lo } from "../../../chunks/useGetPopupContainer.
|
|
11
|
+
import { u as lo } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
12
12
|
const u = {
|
|
13
13
|
"kit-colorpicker": "_kit-colorpicker_7zhkg_2",
|
|
14
14
|
"kit-color-picker-clear": "_kit-color-picker-clear_7zhkg_37",
|
|
@@ -5,9 +5,9 @@ import { DatePicker as L } from "antd";
|
|
|
5
5
|
import W from "classnames";
|
|
6
6
|
import { FontAwesomeIcon as o } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { faChevronLeft as _, faChevronRight as k, faClock as T, faCalendar as X, faCircleXmark as $, faArrowRight as Q } from "@fortawesome/free-solid-svg-icons";
|
|
8
|
-
import { K as y } from "../../../chunks/InputWrapper.
|
|
8
|
+
import { K as y } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
9
9
|
import { u as z } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
10
|
-
import { u as B } from "../../../chunks/useGetPopupContainer.
|
|
10
|
+
import { u as B } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
11
11
|
const E = {
|
|
12
12
|
"kit-datepicker": "_kit-datepicker_1a8o2_2",
|
|
13
13
|
"kit-rangepicker": "_kit-rangepicker_1a8o2_154"
|
|
@@ -4,7 +4,7 @@ import { forwardRef as w } from "react";
|
|
|
4
4
|
import { Input as k } from "antd";
|
|
5
5
|
import { faCircleXmark as h, faEye as C, faEyeSlash as S } from "@fortawesome/free-solid-svg-icons";
|
|
6
6
|
import { FontAwesomeIcon as p } from "@fortawesome/react-fontawesome";
|
|
7
|
-
import { K as y } from "../../../chunks/InputWrapper.
|
|
7
|
+
import { K as y } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
8
8
|
import { u as K } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
9
9
|
import T from "classnames";
|
|
10
10
|
import { KitTypography as x } from "../../General/Typography/index.js";
|
|
@@ -2,7 +2,7 @@ import "../../../assets/index7.css";
|
|
|
2
2
|
import { jsx as n } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as _, useState as x } from "react";
|
|
4
4
|
import { InputNumber as N } from "antd";
|
|
5
|
-
import { K as h } from "../../../chunks/InputWrapper.
|
|
5
|
+
import { K as h } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
6
6
|
import { u as w } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
7
7
|
import y from "classnames";
|
|
8
8
|
const g = {
|
|
@@ -8,7 +8,7 @@ import X from "antd/es/config-provider/SizeContext";
|
|
|
8
8
|
import Y from "rc-util/es/pickAttrs";
|
|
9
9
|
import { Radio as Z } from "antd";
|
|
10
10
|
import { u as ee } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
11
|
-
import { K as ae } from "../../../chunks/InputWrapper.
|
|
11
|
+
import { K as ae } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
12
12
|
import te from "antd/es/radio/style";
|
|
13
13
|
const K = O(null), re = K.Provider, oe = {
|
|
14
14
|
"kit-radio": "_kit-radio_lmqef_2"
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../../../assets/index9.css";
|
|
2
2
|
import { jsxs as E, jsx as u } from "react/jsx-runtime";
|
|
3
3
|
import { forwardRef as Q, useRef as V, useState as _, useEffect as f } from "react";
|
|
4
|
-
import { K as X } from "../../../chunks/InputWrapper.
|
|
4
|
+
import { K as X } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
5
5
|
import { u as Y } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
6
6
|
import K from "classnames";
|
|
7
7
|
import { useEditor as Z, EditorContent as $ } from "@tiptap/react";
|
|
@@ -4,7 +4,7 @@ import { Select as we } from "antd";
|
|
|
4
4
|
import V from "classnames";
|
|
5
5
|
import ge from "short-unique-id";
|
|
6
6
|
import { useDebouncedCallback as Ie } from "use-debounce";
|
|
7
|
-
import { K as he } from "../../../chunks/InputWrapper.
|
|
7
|
+
import { K as he } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
8
8
|
import { u as ke } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
9
9
|
import { s as De } from "../../../chunks/styles.module.iV2bcv-5.js";
|
|
10
10
|
import { FontAwesomeIcon as g } from "@fortawesome/react-fontawesome";
|
|
@@ -12,7 +12,7 @@ import { faCircleXmark as Ee, faCircleNotch as Pe, faChevronDown as Le, faCheck
|
|
|
12
12
|
import { KitIcon as K } from "../../General/Icon/index.js";
|
|
13
13
|
import { KitIdCard as Oe } from "../../DataDisplay/IdCard/index.js";
|
|
14
14
|
import { KitTag as G } from "../../DataDisplay/Tag/index.js";
|
|
15
|
-
import { u as ye } from "../../../chunks/useGetPopupContainer.
|
|
15
|
+
import { u as ye } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
16
16
|
function Ae({ allowClear: e = !0, loading: o = !1 }) {
|
|
17
17
|
const n = e ? s(g, { "aria-label": "clear", icon: Ee }) : null, r = o ? s(g, { icon: Pe, spin: !0 }) : s(g, { icon: Le }), l = s(K, { icon: s(g, { icon: Ne }), on: !0 });
|
|
18
18
|
return {
|
|
@@ -3,9 +3,9 @@ import { forwardRef as $, useRef as R, useState as S, useEffect as ee } from "re
|
|
|
3
3
|
import { TreeSelect as oe } from "antd";
|
|
4
4
|
import B from "classnames";
|
|
5
5
|
import te from "short-unique-id";
|
|
6
|
-
import { K as ne } from "../../../chunks/InputWrapper.
|
|
6
|
+
import { K as ne } from "../../../chunks/InputWrapper.XK7lKnUm.js";
|
|
7
7
|
import { u as re } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
8
|
-
import { u as se } from "../../../chunks/useGetPopupContainer.
|
|
8
|
+
import { u as se } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
9
9
|
import { s as le } from "../../../chunks/styles.module.iV2bcv-5.js";
|
|
10
10
|
import { KitTag as ce } from "../../DataDisplay/Tag/index.js";
|
|
11
11
|
import { useDebouncedCallback as ie } from "use-debounce";
|
|
@@ -7,7 +7,7 @@ import m from "classnames";
|
|
|
7
7
|
import { FontAwesomeIcon as B } from "@fortawesome/react-fontawesome";
|
|
8
8
|
import { faCheck as P } from "@fortawesome/free-solid-svg-icons";
|
|
9
9
|
import { N as R } from "../../../chunks/constants.DINGxt3I.js";
|
|
10
|
-
import { u as g } from "../../../chunks/useGetPopupContainer.
|
|
10
|
+
import { u as g } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
11
11
|
const j = {
|
|
12
12
|
"kit-dropdown-hidden-input": "_kit-dropdown-hidden-input_k5jvv_1"
|
|
13
13
|
}, A = (o) => o.type === "divider", F = (o) => o.type === "group", I = (o) => {
|
|
@@ -2,7 +2,7 @@ import { jsx as r, jsxs as m, Fragment as F } from "react/jsx-runtime";
|
|
|
2
2
|
import { useEffect as I, forwardRef as _, useState as B, useRef as T, useImperativeHandle as W } from "react";
|
|
3
3
|
import { u as w } from "../../../chunks/useKitTheme.KSAU-Pdv.js";
|
|
4
4
|
import k from "classnames";
|
|
5
|
-
import { s as l } from "../../../chunks/useGetPopupContainer.
|
|
5
|
+
import { s as l } from "../../../chunks/useGetPopupContainer.efPkxYe1.js";
|
|
6
6
|
import { KitButton as N } from "../../General/Button/index.js";
|
|
7
7
|
import { FontAwesomeIcon as x } from "@fortawesome/react-fontawesome";
|
|
8
8
|
import { faChevronLeft as q, faClose as z } from "@fortawesome/free-solid-svg-icons";
|
|
@@ -21,7 +21,7 @@ export interface IKitSidePanel extends KitHTMLAttributes<HTMLDivElement> {
|
|
|
21
21
|
onClose?: () => void;
|
|
22
22
|
onOpenChanged?: (open: boolean) => void;
|
|
23
23
|
children?: ReactNode;
|
|
24
|
-
size?: 's' | 'm';
|
|
24
|
+
size?: 's' | 'm' | 'l';
|
|
25
25
|
closeOnEsc?: boolean;
|
|
26
26
|
closeOnOutsideClick?: boolean;
|
|
27
27
|
showSeparator?: boolean;
|
package/dist/Kit/index.js
CHANGED
|
@@ -18,7 +18,7 @@ import { KitRedirectCard as F } from "./DataDisplay/RedirectCard/index.js";
|
|
|
18
18
|
import { KitCheckbox as N } from "./DataEntry/Checkbox/index.js";
|
|
19
19
|
import { KitInput as G } from "./DataEntry/Input/index.js";
|
|
20
20
|
import { KitInputNumber as W } from "./DataEntry/InputNumber/index.js";
|
|
21
|
-
import { K as Q } from "../chunks/InputWrapper.
|
|
21
|
+
import { K as Q } from "../chunks/InputWrapper.XK7lKnUm.js";
|
|
22
22
|
import { KitRadio as q } from "./DataEntry/Radio/index.js";
|
|
23
23
|
import { KitRate as J } from "./DataEntry/Rate/index.js";
|
|
24
24
|
import { KitRichText as V } from "./DataEntry/RichText/index.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! Sass Fairy v1 | (c) roydukkey | https://sass-fairy.com/license */._kit-input-
|
|
1
|
+
/*! Sass Fairy v1 | (c) roydukkey | https://sass-fairy.com/license */._kit-input-wrapper_1oj8g_2 .ant-input-number-handler-wrap{border-start-end-radius:calc(var(--components-InputWrapper-border-radius, var(--general-border-radius-s)) * 1px);border-end-end-radius:calc(var(--components-InputWrapper-border-radius, var(--general-border-radius-s)) * 1px)}._kit-input-wrapper_1oj8g_2 .kit-input-wrapper-label{margin-bottom:calc(var(--components-InputWrapper-gap-label, var(--general-spacing-xxs)) * 1px);display:flex;align-items:center;gap:calc(var(--general-spacing-xxs) * 1px)}._kit-input-wrapper_1oj8g_2 .kit-input-wrapper-actions{display:flex;align-items:center;gap:calc(var(--general-spacing-xs) * 1px);flex:1;justify-content:flex-end}._kit-input-wrapper_1oj8g_2 .kit-input-wrapper-helper{margin-top:calc(var(--components-InputWrapper-gap-helper, var(--general-spacing-xxs)) * 1px)}._kit-input-wrapper_1oj8g_2 .kit-input-wrapper-label,._kit-input-wrapper_1oj8g_2 .kit-input-wrapper-label .ant-typography,._kit-input-wrapper_1oj8g_2 .kit-input-wrapper-helper,._kit-input-wrapper_1oj8g_2 .kit-input-wrapper-helper .ant-typography{color:var(--components-InputWrapper-colors-typography-default, var(--general-utilities-text-primary));line-height:calc(var(--general-typography-fontSize3) * 1px)}._kit-input-wrapper_1oj8g_2 .kit-input-wrapper-required{color:var(--components-InputWrapper-colors-typography-error, var(--general-utilities-text-error));padding-left:calc(var(--general-spacing-xxs) * 1px);font-variant-position:super}._kit-input-wrapper_1oj8g_2.bordered>.kit-input-wrapper-content{border:1px solid var(--components-InputWrapper-colors-border-default, var(--general-utilities-border));border-radius:calc(var(--components-InputWrapper-border-radius, var(--general-border-radius-s)) * 1px);padding:calc(var(--general-spacing-xs) * 1px);transition:border .2s linear}._kit-input-wrapper_1oj8g_2.bordered:not(.disabled,.error,.warning).hoverable .kit-input-wrapper-content:hover{border-color:var(--general-utilities-main-default);transition:border .2s linear}._kit-input-wrapper_1oj8g_2.bordered:not(.disabled,.error,.warning).focusable .kit-input-wrapper-content:focus-within{outline:var(--general-utilities-focus) solid 3px;border-color:transparent;transition:border 0s}._kit-input-wrapper_1oj8g_2.error .kit-input-wrapper-label,._kit-input-wrapper_1oj8g_2.error .kit-input-wrapper-label .ant-typography,._kit-input-wrapper_1oj8g_2.error .kit-input-wrapper-helper,._kit-input-wrapper_1oj8g_2.error .kit-input-wrapper-helper .ant-typography{color:var(--components-InputWrapper-colors-typography-error, var(--general-utilities-text-error))}._kit-input-wrapper_1oj8g_2.error .kit-input-wrapper-content{border-color:var(--components-InputWrapper-colors-border-error, var(--general-utilities-error-default))}._kit-input-wrapper_1oj8g_2.warning .kit-input-wrapper-label,._kit-input-wrapper_1oj8g_2.warning .kit-input-wrapper-label .ant-typography,._kit-input-wrapper_1oj8g_2.warning .kit-input-wrapper-helper,._kit-input-wrapper_1oj8g_2.warning .kit-input-wrapper-helper .ant-typography{color:var(--components-InputWrapper-colors-typography-warning, var(--general-utilities-text-warning))}._kit-input-wrapper_1oj8g_2.warning .kit-input-wrapper-content{border-color:var(--components-InputWrapper-colors-border-warning, var(--general-utilities-warning-default))}._kit-input-wrapper_1oj8g_2.disabled .kit-input-wrapper-label,._kit-input-wrapper_1oj8g_2.disabled .kit-input-wrapper-label .ant-typography,._kit-input-wrapper_1oj8g_2.disabled .kit-input-wrapper-helper,._kit-input-wrapper_1oj8g_2.disabled .kit-input-wrapper-helper .ant-typography,._kit-input-wrapper_1oj8g_2.disabled .kit-input-wrapper-required{color:var(--components-InputWrapper-colors-typography-disabled, var(--general-utilities-text-disabled))}._kit-input-wrapper_1oj8g_2.disabled .kit-input-wrapper-content{border-color:var(--components-InputWrapper-colors-border-disabled, var(--general-utilities-border))}._kit-input-wrapper_1oj8g_2.disabled .kit-input-wrapper-content:focus-visible{outline:none}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! Sass Fairy v1 | (c) roydukkey | https://sass-fairy.com/license */._kit-side-panel-
|
|
1
|
+
/*! Sass Fairy v1 | (c) roydukkey | https://sass-fairy.com/license */._kit-side-panel-wrapper_uvhbg_2{--sidePanel-colors-text: var(--components-SidePanel-colors-text, var(--general-utilities-text-primary));--sidePanel-shadow: var(--components-SidePanel-shadow, -5px 8px 14px -5px rgba(0, 0, 0, .3));--sidePanel-default-width-open-s: 352;--sidePanel-default-width-open-m: 456;--sidePanel-default-width-open-l: 576;--sidePanel-default-right-close-s: -352;--sidePanel-default-right-close-m: -456;--sidePanel-default-right-close-l: -576;--sidePanel-transition: .3s ease-in}._kit-side-panel-wrapper_uvhbg_2:not(.floating){position:relative;height:100%;width:calc(var(--components-SidePanel-width-s, var(--sidePanel-default-width-open-s)) * 1px);transition:width var(--sidePanel-transition)}._kit-side-panel-wrapper_uvhbg_2:not(.floating).size-m{width:calc(var(--components-SidePanel-width-m, var(--sidePanel-default-width-open-m)) * 1px)}._kit-side-panel-wrapper_uvhbg_2:not(.floating).size-l{width:calc(var(--components-SidePanel-width-l, var(--sidePanel-default-width-open-l)) * 1px)}._kit-side-panel-wrapper_uvhbg_2:not(.floating).closed{width:0}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2{display:flex;flex-direction:column;box-sizing:border-box;position:absolute;top:0;right:0;bottom:0;z-index:1000;background:var(--components-SidePanel-colors-background, var(--general-utilities-light));width:calc(var(--components-SidePanel-width-s, var(--sidePanel-default-width-open-s)) * 1px);transition:right var(--sidePanel-transition)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2.closed{right:calc(var(--sidePanel-default-right-close-s) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2.closed.size-m{right:calc(var(--sidePanel-default-right-close-m) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2.closed.size-l{right:calc(var(--sidePanel-default-right-close-l) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2.size-m{width:calc(var(--components-SidePanel-width-m, var(--sidePanel-default-width-open-m)) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2.size-l{width:calc(var(--components-SidePanel-width-l, var(--sidePanel-default-width-open-l)) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2:not(.closed){box-shadow:var(--sidePanel-shadow)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._header_uvhbg_59{flex:0 1 auto;display:flex;gap:calc(var(--components-SidePanel-spacing-headerItems, var(--general-spacing-xs)) * 1px);padding:calc(var(--components-SidePanel-padding-vertical, var(--general-spacing-s)) * 1px) calc(var(--components-SidePanel-padding-horizontal, var(--general-spacing-s)) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._header_uvhbg_59.show-separator{border-bottom:1px solid var(--general-utilities-border)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._back_uvhbg_68,._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._close_uvhbg_25{flex:0 0 auto;width:calc(var(--general-spacing-l) * 1px);min-width:calc(var(--general-spacing-l) * 1px);height:calc(var(--general-spacing-l) * 1px);padding:calc(var(--general-spacing-none) * 1px)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._back_uvhbg_68{color:var(--sidePanel-colors-text)}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._back_uvhbg_68 .fa-chevron-left{width:8px;height:8px}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._card_uvhbg_83{flex:1 1 auto}._kit-side-panel-wrapper_uvhbg_2 ._kit-side-panel_uvhbg_2 ._content_uvhbg_86{flex:1 1 auto;overflow-y:auto;overflow-x:hidden;padding:calc(var(--components-SidePanel-padding-vertical, var(--general-spacing-s)) * 1px) calc(var(--components-SidePanel-padding-horizontal, var(--general-spacing-s)) * 1px) 0 calc(var(--components-SidePanel-padding-horizontal, var(--general-spacing-s)) * 1px);margin-bottom:calc(var(--components-SidePanel-padding-vertical, var(--general-spacing-s)) * 1px)}
|
|
@@ -5,11 +5,11 @@ import { u as _ } from "./useKitTheme.KSAU-Pdv.js";
|
|
|
5
5
|
import g from "classnames";
|
|
6
6
|
import { FontAwesomeIcon as x } from "@fortawesome/react-fontawesome";
|
|
7
7
|
import { faTriangleExclamation as A, faCircleXmark as C, faCircleInfo as E } from "@fortawesome/free-solid-svg-icons";
|
|
8
|
-
import { F as K, N as
|
|
9
|
-
const
|
|
10
|
-
"kit-input-wrapper": "_kit-input-
|
|
11
|
-
},
|
|
12
|
-
const { appId: I } = _(), m = !a && (c !== void 0 || l !== void 0), N = g(
|
|
8
|
+
import { F as K, N as z } from "./constants.DINGxt3I.js";
|
|
9
|
+
const B = {
|
|
10
|
+
"kit-input-wrapper": "_kit-input-wrapper_1oj8g_2"
|
|
11
|
+
}, S = ({ label: o, htmlFor: f, helper: t, disabled: a, status: e, bordered: w, hoverable: h, required: s, onFocus: c, onBlur: l, actions: d, extra: i, className: n, children: v, ...k }) => {
|
|
12
|
+
const { appId: I } = _(), m = !a && (c !== void 0 || l !== void 0), N = g(B["kit-input-wrapper"], I, n ?? "", {
|
|
13
13
|
disabled: a,
|
|
14
14
|
bordered: w,
|
|
15
15
|
hoverable: h,
|
|
@@ -17,8 +17,8 @@ const z = {
|
|
|
17
17
|
error: e === "error",
|
|
18
18
|
warning: e === "warning"
|
|
19
19
|
}), T = () => e === "warning" ? A : e === "error" ? C : E;
|
|
20
|
-
return d !== void 0 && (console.warn("The 'actions' prop is deprecated and will be removed in a future version. Please use 'extra' instead."), i === void 0 && (i = d)), p("div", { className: N, ...k, children: [!!(
|
|
21
|
-
}, L =
|
|
20
|
+
return d !== void 0 && (console.warn("The 'actions' prop is deprecated and will be removed in a future version. Please use 'extra' instead."), i === void 0 && (i = d)), p("div", { className: N, ...k, children: [!!(o || s || i) && p("div", { className: "kit-input-wrapper-label", children: [r("label", { htmlFor: f, children: r(u.Text, { size: "fontSize5", weight: "medium", children: o }) }), s && r("span", { className: "kit-input-wrapper-required", children: "*" }), r("div", { className: "kit-input-wrapper-actions", children: i })] }), r("div", { className: "kit-input-wrapper-content", tabIndex: m ? K : z, onFocus: c, onBlur: l, children: v }), t && r("div", { className: "kit-input-wrapper-helper", children: p(u.Text, { size: "fontSize7", ellipsis: !0, children: [r(x, { icon: T() }), " ", t] }) })] });
|
|
21
|
+
}, L = S;
|
|
22
22
|
export {
|
|
23
23
|
L as K
|
|
24
24
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import "../assets/useGetPopupContainer.css";
|
|
2
|
+
const o = "_header_uvhbg_59", a = "_back_uvhbg_68", r = "_close_uvhbg_25", s = "_card_uvhbg_83", _ = "_content_uvhbg_86", i = {
|
|
3
|
+
"kit-side-panel-wrapper": "_kit-side-panel-wrapper_uvhbg_2",
|
|
4
|
+
"kit-side-panel": "_kit-side-panel_uvhbg_2",
|
|
5
|
+
header: o,
|
|
6
|
+
back: a,
|
|
7
|
+
close: r,
|
|
8
|
+
card: s,
|
|
9
|
+
content: _
|
|
10
|
+
}, d = (e, n) => n ?? (() => {
|
|
11
|
+
var t;
|
|
12
|
+
const c = e.current && "nativeElement" in e.current ? e.current.nativeElement : e.current;
|
|
13
|
+
return (t = c == null ? void 0 : c.closest(`.${i["kit-side-panel"]}`)) !== null && t !== void 0 ? t : document.body;
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
i as s,
|
|
17
|
+
d as u
|
|
18
|
+
};
|
package/dist/index.es.js
CHANGED
|
@@ -18,7 +18,7 @@ import { KitRedirectCard as M } from "./Kit/DataDisplay/RedirectCard/index.js";
|
|
|
18
18
|
import { KitCheckbox as N } from "./Kit/DataEntry/Checkbox/index.js";
|
|
19
19
|
import { KitInput as G } from "./Kit/DataEntry/Input/index.js";
|
|
20
20
|
import { KitInputNumber as W } from "./Kit/DataEntry/InputNumber/index.js";
|
|
21
|
-
import { K as Q } from "./chunks/InputWrapper.
|
|
21
|
+
import { K as Q } from "./chunks/InputWrapper.XK7lKnUm.js";
|
|
22
22
|
import { KitRadio as q } from "./Kit/DataEntry/Radio/index.js";
|
|
23
23
|
import { KitRate as J } from "./Kit/DataEntry/Rate/index.js";
|
|
24
24
|
import { KitRichText as V } from "./Kit/DataEntry/RichText/index.js";
|