@luscii-healthtech/web-ui 60.3.2 → 61.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/esm/components/Box/Box.js +2 -4
- package/dist/esm/components/Box/Box.js.map +1 -1
- package/dist/esm/components/Stack/Stack.js +2 -3
- package/dist/esm/components/Stack/Stack.js.map +1 -1
- package/dist/esm/components/Tag/Tag.js.map +1 -1
- package/dist/esm/components/Textarea/LabeledTextarea.js +21 -0
- package/dist/esm/components/Textarea/LabeledTextarea.js.map +1 -0
- package/dist/esm/components/Textarea/Textarea.js +9 -10
- package/dist/esm/components/Textarea/Textarea.js.map +1 -1
- package/dist/esm/index.js +1 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/index.development.js +90 -83
- package/dist/index.development.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/components/Box/Box.d.ts +2 -2
- package/dist/src/components/Stack/Stack.d.ts +2 -2
- package/dist/src/components/Tag/Tag.d.ts +2 -2
- package/dist/src/components/Textarea/LabeledTextarea.d.ts +42 -0
- package/dist/src/components/Textarea/Textarea.d.ts +11 -2
- package/dist/src/generated/components/Box/Box.d.ts +2 -2
- package/dist/src/generated/components/Stack/Stack.d.ts +2 -2
- package/dist/src/generated/components/Tag/Tag.d.ts +2 -2
- package/dist/src/generated/components/Textarea/LabeledTextarea.d.ts +42 -0
- package/dist/src/generated/components/Textarea/Textarea.d.ts +11 -2
- package/dist/src/generated/index.d.ts +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/stories/Box.stories.d.ts +1 -1
- package/dist/stories/LabeledTextarea.stories.d.ts +89 -0
- package/dist/stories/Stack.stories.d.ts +1 -1
- package/dist/stories/Tag.stories.d.ts +5 -0
- package/package.json +3 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { __rest } from '../../vendor/tslib/tslib.es6.js';
|
|
2
2
|
import { jsx } from 'react/jsx-runtime';
|
|
3
|
-
import React__default from 'react';
|
|
4
3
|
import classNames from 'classnames';
|
|
5
4
|
import { omit } from 'lodash-es';
|
|
6
5
|
import { createShadowClassName } from '../../utils/shadow.utils.js';
|
|
@@ -24,8 +23,8 @@ const underscoredSpacingPropNames = [
|
|
|
24
23
|
"_my"
|
|
25
24
|
];
|
|
26
25
|
const createSpacingClassNames = (spacingPropsArg) => underscoredSpacingPropNames.filter((key) => spacingPropsArg[key]).map((key) => `ui:${key.replace("_", "")}-f_${spacingPropsArg[key]}`).join(" ");
|
|
27
|
-
const
|
|
28
|
-
const { as: Element = "div", borderRadius, borderRadiusLeft, borderRadiusRight, className, elevation, width, backgroundColor, hoverBackgroundColor, cursor } = props, attributes = __rest(props, ["as", "borderRadius", "borderRadiusLeft", "borderRadiusRight", "className", "elevation", "width", "backgroundColor", "hoverBackgroundColor", "cursor"]);
|
|
26
|
+
const Box = (props) => {
|
|
27
|
+
const { as: Element = "div", ref, borderRadius, borderRadiusLeft, borderRadiusRight, className, elevation, width, backgroundColor, hoverBackgroundColor, cursor } = props, attributes = __rest(props, ["as", "ref", "borderRadius", "borderRadiusLeft", "borderRadiusRight", "className", "elevation", "width", "backgroundColor", "hoverBackgroundColor", "cursor"]);
|
|
29
28
|
const spacingClasses = createSpacingClassNames(props);
|
|
30
29
|
const shadowClassName = createShadowClassName(elevation);
|
|
31
30
|
const borderRadiusClassName = createRadiusClassName(borderRadius);
|
|
@@ -78,7 +77,6 @@ const BoxInner = (props, ref) => {
|
|
|
78
77
|
}, shadowClassName, borderRadiusClassName, borderRadiusLeftClassName, borderRadiusRightClassName);
|
|
79
78
|
return jsx(Element, Object.assign({ ref, className: twMerge(boxClasses, className) }, attributesWithoutSpacingKeys));
|
|
80
79
|
};
|
|
81
|
-
const Box = React__default.forwardRef(BoxInner);
|
|
82
80
|
|
|
83
81
|
export { Box };
|
|
84
82
|
//# sourceMappingURL=Box.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Box.js","sources":["../../../../../../src/components/Box/Box.tsx"],"sourcesContent":[null],"names":["_jsx"
|
|
1
|
+
{"version":3,"file":"Box.js","sources":["../../../../../../src/components/Box/Box.tsx"],"sourcesContent":[null],"names":["_jsx"],"mappings":";;;;;;;;AAqBA,MAAM,2BAAA,GAA8B;AAAA,EAClC,IAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,IAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA,KAAA;AAAA,EACA;;AAWF,MAAM,uBAAA,GAA0B,CAAC,eAAA,KAC/B,2BAAA,CACG,MAAA,CAAO,CAAC,GAAA,KAAQ,eAAA,CAAgB,GAAG,CAAC,CAAA,CAMpC,GAAA,CAAI,CAAC,GAAA,KAAQ,CAAA,GAAA,EAAM,GAAA,CAAI,OAAA,CAAQ,GAAA,EAAK,EAAE,CAAC,CAAA,GAAA,EAAM,eAAA,CAAgB,GAAG,CAAC,CAAA,CAAE,CAAA,CACnE,IAAA,CAAK,GAAG,CAAA;AAuCN,MAAM,GAAA,GAAM,CAAgC,KAAA,KAA0B;AAC3E,EAAA,MAAM,EACJ,EAAA,EAAI,OAAA,GAAU,KAAA,EACd,GAAA,EACA,YAAA,EACA,gBAAA,EACA,iBAAA,EACA,SAAA,EACA,SAAA,EACA,KAAA,EACA,eAAA,EACA,sBACA,MAAA,EAAM,GAEJ,KAAA,EADC,UAAA,GAAU,MAAA,CACX,KAAA,EAbE,CAAA,IAAA,EAAA,OAAA,cAAA,EAAA,kBAAA,EAAA,mBAAA,EAAA,WAAA,EAAA,WAAA,EAAA,OAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,QAAA,CAaL,CAAA;AAED,EAAA,MAAM,cAAA,GAAiB,wBAAwB,KAAK,CAAA;AACpD,EAAA,MAAM,eAAA,GAAkB,sBAAsB,SAA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AwB,oBAAA,KAAyB,OAAA;AAAA,IACjD,kCAAkC,oBAAA,KAAyB;AAAA,KAE7D;AAAA,IACE,yDACE,oBAAA,KAAyB;AAAA,KAE7B;AAAA,IACE,kBAAkB,MAAA,KAAW,MAAA;AAAA,IAC7B,qBAAqB,MAAA,KAAW,SAAA;AAAA,IAChC,qBAAqB,MAAA,KAAW,SAAA;AAAA,IAChC,kBAAkB,MAAA,KAAW,MAAA;AAAA,IAC7B,kBAAkB,MAAA,KAAW,MAAA;AAAA,IAC7B,kBAAkB,MAAA,KAAW,MAAA;AAAA,IAC7B,yBAAyB,MAAA,KAAW,aAAA;AAAA,IACpC,sBAAsB,MAAA,KAAW,UAAA;AAAA,IACjC,kBAAkB,MAAA,KAAW,MAAA;AAAA,IAC7B,qBAAqB,MAAA,KAAW,SAAA;AAAA,IAChC,kBAAkB,MAAA,KAAW,MAAA;AAAA,IAC7B,sBAAsB,MAAA,KAAW;AAAA,KAEnC,eAAA,EACA,qBAAA,EACA,yBAAA,EACA,0BAA0B,CAAA;AAG5B,EAAA,OACEA,GAAA,CAAC,OAAA,EAAO,MAAA,CAAA,MAAA,CAAA,EACN,GAAA,EACA,SAAA,EAAW,OAAA,CAAQ,UAAA,EAAY,SAAS,CAAA,IACpC,4BAA4B,CAAA,CAAA;AAGtC;;"}
|
|
@@ -5,8 +5,8 @@ import classNames from 'classnames';
|
|
|
5
5
|
import { twMerge } from 'tailwind-merge';
|
|
6
6
|
import { Box } from '../Box/Box.js';
|
|
7
7
|
|
|
8
|
-
const
|
|
9
|
-
const { children, _gap, align = "start", justify = "normal", axis = "y", className, reverse, wrap = false, divider, as } = props, attributes = __rest(props, ["children", "_gap", "align", "justify", "axis", "className", "reverse", "wrap", "divider", "as"]);
|
|
8
|
+
const Stack = (props) => {
|
|
9
|
+
const { ref, children, _gap, align = "start", justify = "normal", axis = "y", className, reverse, wrap = false, divider, as } = props, attributes = __rest(props, ["ref", "children", "_gap", "align", "justify", "axis", "className", "reverse", "wrap", "divider", "as"]);
|
|
10
10
|
const stackClasses = classNames(`ui:flex`, {
|
|
11
11
|
"ui:flex-row": axis === "x",
|
|
12
12
|
"ui:flex-col": axis === "y",
|
|
@@ -60,7 +60,6 @@ const StackInner = (props, ref) => {
|
|
|
60
60
|
jsx(Box, Object.assign({ as, ref, className: classes }, attributes, { children }))
|
|
61
61
|
);
|
|
62
62
|
};
|
|
63
|
-
const Stack = React__default.forwardRef(StackInner);
|
|
64
63
|
|
|
65
64
|
export { Stack };
|
|
66
65
|
//# sourceMappingURL=Stack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stack.js","sources":["../../../../../../src/components/Stack/Stack.tsx"],"sourcesContent":[null],"names":["React","_jsx","_jsxs"],"mappings":";;;;;;;
|
|
1
|
+
{"version":3,"file":"Stack.js","sources":["../../../../../../src/components/Stack/Stack.tsx"],"sourcesContent":[null],"names":["React","_jsx","_jsxs"],"mappings":";;;;;;;AAiEO,MAAM,KAAA,GAAQ,CACnB,KAAA,KACE;AACF,EAAA,MAAM,EACJ,GAAA,EACA,QAAA,EACA,IAAA,EACA,QAAQ,OAAA,EACR,OAAA,GAAU,QAAA,EACV,IAAA,GAAO,GAAA,EACP,SAAA,EACA,OAAA,EACA,IAAA,GAAO,OACP,OAAA,EACA,EAAA,EAAE,GAEA,KAAA,EADC,UAAA,GAAU,MAAA,CACX,KAAA,EAbE,CAAA,OAAA,UAAA,EAAA,MAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,WAAA,EAAA,SAAA,EAAA,MAAA,EAAA,SAAA,EAAA,IAAA,CAaL,CAAA;AAED,EAAA,MAAM,YAAA,GAAe,WAAW,CAAA,OAAA,CAAA,EAAW;AAAA,IACzC,eAAe,IAAA,KAAS,GAAA;AAAA,IACxB,eAAe,IAAA,KAAS,GAAA;AAAA,IACxB,qBAAA,EAAuB,SAAS,GAAA,IAAO,OAAA;AAAA,IACvC,qBAAA,EAAuB,SAAS,GAAA,IAAO,OAAA;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AC,EAAA,EAAQ,KAAU,SAAA,EAAW,OAAA,IAAa,UAAA,EAAU,EAAA,UACtDD,cAAA,CAAM,QAAA,CAAS,IAAI,QAAA,EAAU,CAAC,OAAO,KAAA,KAAS;AAC7C,QAAA,MAAM,UAAA,GAAa,SAAS,kBAAA,GAAqB,CAAA;AAEjD,QAAA,IAAIA,cAAA,CAAM,cAAA,CAAe,KAAK,CAAA,KAAM,KAAA,EAAO;AACzC,UAAA,OAAO,IAAA;AAAA,QACT;AAEA,QAAA,IAAI,UAAA,EAAY;AACd,UAAA,OAAO,KAAA;AAAA,QACT;AAEA,QAAA,OACEE,IAAA,CAACF,eAAM,QAAA,EAAQ,EAAA,UAAA,CACZ,KAAA,EACA,OAAO,CAAA,EAAA,CAAA;AAAA,MAGd,CAAC,CAAA,EAAC,CAAA;AAAA;AAAA,EAGR;AAEA,EAAA;AAAA;AAAA,IAEEC,GAAA,CAAC,GAAA,EAAG,MAAA,CAAA,MAAA,CAAA,EAAC,EAAA,EAAQ,GAAA,EAAU,SAAA,EAAW,OAAA,EAAO,EAAM,UAAA,cACpC,CAAA;AAAA;AAGf;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tag.js","sources":["../../../../../../src/components/Tag/Tag.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;
|
|
1
|
+
{"version":3,"file":"Tag.js","sources":["../../../../../../src/components/Tag/Tag.tsx"],"sourcesContent":[null],"names":["_jsxs","_jsx"],"mappings":";;;;;;;;AAgCO,MAAM,GAAA,GAAiB,CAAC,EAAA,KAW1B;AAX0B,EAAA,IAAA,EAC7B,GAAA,GAAM,MAAA,EACN,KAAA,GAAQ,SAAA,EACR,KAAA,GAAQ,OAAA,EACR,QAAA,GAAW,MAAA,EACX,YAAA,EACA,aAAA,EACA,SAAA,EACA,QAAA,EACA,SAAA,EAAS,GAAA,EAAA,EACN,IAAA,GAAI,MAAA,CAAA,EAAA,EAVsB,4GAW9B,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AA,IAOE,0BAA0B,QAAA,KAAa,UAAA;AAAA,IACvC,8GACE,QAAA,KAAa;AAAA,GAChB,CAAA,EACF,EACG,IAAA,EAAI,EAAA,UAAA,CAEP,SAAA,CAAU,YAAA,EAAc,EAAE,MAAM,KAAA,EAAO,CAAA,EACxCC,GAAA,CAAC,MAAI,EACH,KAAA,EAAM,SAAA,EACN,OAAA,EAAS,aACT,SAAA,EAAW,eAAA,EACX,QAAA,EAAU,SAAA,EAAS,UAEV,CAAA,EAEV,SAAA,CAAU,aAAA,EAAe,EAAE,IAAA,EAAM,KAAA,EAAO,CAAC,CAAA,EAAA,CAAA,CAAA;AAGhD;AAEA,SAAS,SAAA,CACP,MACA,OAAA,EAAoC;AAEpC,EAAA,MAAM,SAAA,GAAY,OAAA,CAAQ,IAAA,KAAS,OAAA,GAAU,EAAA,GAAK,EAAA;AAElD,EAAA,IAAI,CAAC,cAAA,CAAoD,IAAI,CAAA,EAAG;AAC9D,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,OACEA,IAAC,GAAA,EAAG,EAAC,WAAU,aAAA,EAAa,QAAA,EAMzB,aAAa,IAAA,EAAM;AAAA,IAClB,KAAA,EAAO,SAAA;AAAA,IACP,MAAA,EAAQ;AAAA,GACT,GAAC,CAAA;AAGR;;"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { __rest } from '../../vendor/tslib/tslib.es6.js';
|
|
2
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
3
|
+
import React__default from 'react';
|
|
4
|
+
import classNames from 'classnames';
|
|
5
|
+
import { calculateResponsiveWidthClasses } from '../../utils/responsiveness.utils.js';
|
|
6
|
+
import { Stack } from '../Stack/Stack.js';
|
|
7
|
+
import { HelperAndErrorText } from '../forms/shared/HelperAndErrorText.js';
|
|
8
|
+
import { LabelText } from '../forms/shared/LabelText.js';
|
|
9
|
+
import { Textarea } from './Textarea.js';
|
|
10
|
+
|
|
11
|
+
const LabeledTextarea = React__default.forwardRef((props, ref) => {
|
|
12
|
+
const { className, helperText, errorText, label, width, fullWidth, id, "aria-describedby": ariaDescribedBy } = props, rest = __rest(props, ["className", "helperText", "errorText", "label", "width", "fullWidth", "id", "aria-describedby"]);
|
|
13
|
+
const generatedTextareaId = React__default.useId();
|
|
14
|
+
const textareaId = id || generatedTextareaId;
|
|
15
|
+
const helperErrorTextId = React__default.useId();
|
|
16
|
+
const fieldWidth = width !== null && width !== void 0 ? width : fullWidth ? "full" : void 0;
|
|
17
|
+
return jsxs(Stack, { _gap: "base", align: fieldWidth ? "stretch" : void 0, className: classNames(fieldWidth && calculateResponsiveWidthClasses(fieldWidth), className), children: [label && jsx(LabelText, { as: "label", htmlFor: textareaId, children: label }), jsx(Textarea, Object.assign({}, rest, { id: textareaId, ref, isError: Boolean(errorText), "aria-invalid": Boolean(errorText) || rest["aria-invalid"] || void 0, "aria-describedby": [ariaDescribedBy, helperErrorTextId].filter(Boolean).join(" ") })), jsx(HelperAndErrorText, { helperText, errorText, describingId: helperErrorTextId })] });
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
export { LabeledTextarea };
|
|
21
|
+
//# sourceMappingURL=LabeledTextarea.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LabeledTextarea.js","sources":["../../../../../../src/components/Textarea/LabeledTextarea.tsx"],"sourcesContent":[null],"names":["React","_jsxs","_jsx"],"mappings":";;;;;;;;;;AAyFO,MAAM,eAAA,GAAkBA,cAAA,CAAM,UAAA,CACnC,CAAC,OAAO,GAAA,KAAO;AAIb,EAAA,MAAM,EACJ,SAAA,EACA,UAAA,EACA,SAAA,EACA,KAAA,EACA,OACA,SAAA,EACA,EAAA,EACA,kBAAA,EAAoB,eAAA,EAAe,GAEjC,KAAA,EADC,OAAI,MAAA,CACL,KAAA,EAVE,CAAA,WAAA,EAAA,YAAA,EAAA,WAAA,EAAA,SAAA,OAAA,EAAA,WAAA,EAAA,IAAA,EAAA,kBAAA,CAUL,CAAA;AAED,EAAA,MAAM,mBAAA,GAAsBA,eAAM,KAAA;AAClC,EAAA,MAAM,aAAa,EAAA,IAAM,mBAAA;AACzB,EAAA,MAAM,iBAAA,GAAoBA,eAAM,KAAA;AAChC,EAAA,MAAM,aAAa,KAAA,aAAA,UAAK,MAAA,GAAL,KAAA,GAAU,YAAY,MAAA,GAAS,MAAA;AAQlD,EAAA,OACEC,KAAC,KAAA,IACC,IAAA,EAAK,MAAA,EACL,OAAO,UAAA,GAAa,SAAA,GAAY,MAAA,EAChC,SAAA,EAAW,WACT,UAAA,IAAc,+BAAA,CAAgC,UAAU,CAAA,EACxD,SAAS,CAAA,EACV,QAAA,EAAA,CAEA,KAAA,IACCC,IAAC,SAAA,EAAS,EAAC,EAAA,EAAG,OAAA,EAAQ,SAAS,UAAA,EAAU,QAAA,EACtC,KAAA,KAGLA,GAAA,CAAC,QAAA,EAAQ,OAAA,MAAA,CAAA,IACH,IAAA,EAAI,EACR,EAAA,EAAI,UAAA,EACJ,KACA,OAAA,EAAS,OAAA,CAAQ,SAAS,CAAA,EAAC,gBACb,OAAA,CAAQ,SAAS,CAAA,IAAK,IAAA,CAAK,cAAc,CAAA,IAAK,MAAA,EAAS,kBAAA,EACnD,CAAC,iBAAiB,iBAAiB,CAAA,CAClD,MAAA,CAAO,OAAO,EACd,IAAA,CAAK,GAAG,CAAA,EAAC,CAAA,CAAA,EAGdA,GAAA,CAAC,kBAAA,EAAkB,EACjB,YACA,SAAA,EACA,YAAA,EAAc,mBAAiB,CAC/B,GAAA,CAAA;AAGR,CAAC;;"}
|
|
@@ -10,12 +10,11 @@ const resizeTypes = {
|
|
|
10
10
|
VERTICAL: "vertical"
|
|
11
11
|
};
|
|
12
12
|
const Textarea = React__default.forwardRef((_a, ref) => {
|
|
13
|
-
var { className, value, name, placeholder, maxLength, rows = 4, resizable = resizeTypes.VERTICAL, isDisabled = false, icon, onChange, onBlur, onFocus, onKeyPress, onKeyDown, onCtrlEnter, isError } = _a, otherProps = __rest(_a, ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter", "isError"]);
|
|
14
|
-
|
|
13
|
+
var { className, value, name, placeholder, maxLength, rows = 4, resizable = resizeTypes.VERTICAL, isDisabled = false, disabled: nativeDisabled = false, icon, onChange, onBlur, onFocus, onKeyPress, onKeyDown, onCtrlEnter, isError, style: consumerStyle } = _a, otherProps = __rest(_a, ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "disabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter", "isError", "style"]);
|
|
14
|
+
const disabled = isDisabled || nativeDisabled;
|
|
15
|
+
let style = consumerStyle;
|
|
15
16
|
if (icon) {
|
|
16
|
-
style = {
|
|
17
|
-
backgroundImage: `url("${icon}")`
|
|
18
|
-
};
|
|
17
|
+
style = Object.assign(Object.assign({}, consumerStyle), { backgroundImage: `url("${icon}")` });
|
|
19
18
|
}
|
|
20
19
|
return jsx("textarea", Object.assign({}, otherProps, { name, value, placeholder, onChange, onBlur, onFocus, onKeyPress, onKeyDown: (event) => {
|
|
21
20
|
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
|
|
@@ -23,7 +22,7 @@ const Textarea = React__default.forwardRef((_a, ref) => {
|
|
|
23
22
|
if ((ctrlKey || metaKey) && key === "Enter") {
|
|
24
23
|
onCtrlEnter === null || onCtrlEnter === void 0 ? void 0 : onCtrlEnter();
|
|
25
24
|
}
|
|
26
|
-
}, maxLength, rows, disabled
|
|
25
|
+
}, maxLength, rows, disabled, className: classNames([
|
|
27
26
|
// Base classes
|
|
28
27
|
className,
|
|
29
28
|
"cweb-textarea",
|
|
@@ -45,11 +44,11 @@ const Textarea = React__default.forwardRef((_a, ref) => {
|
|
|
45
44
|
"ui:duration-300",
|
|
46
45
|
{
|
|
47
46
|
// Disabled state
|
|
48
|
-
"ui:bg-slate-50 ui:text-slate-400":
|
|
49
|
-
"ui:text-on-surface": !
|
|
47
|
+
"ui:bg-slate-50 ui:text-slate-400": disabled,
|
|
48
|
+
"ui:text-on-surface": !disabled,
|
|
50
49
|
// Normal state (not disabled, not error)
|
|
51
|
-
"ui:border-input-border": !
|
|
52
|
-
"ui:hover:border-input-border-dark": !
|
|
50
|
+
"ui:border-input-border": !disabled && !isError,
|
|
51
|
+
"ui:hover:border-input-border-dark": !disabled,
|
|
53
52
|
// Error state
|
|
54
53
|
"ui:border-negative-border": isError,
|
|
55
54
|
"ui:focus:outline-negative": isError,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.js","sources":["../../../../../../src/components/Textarea/Textarea.tsx"],"sourcesContent":[null],"names":["React","_jsx"],"mappings":";;;;;;AASA,MAAM,WAAA,GAAc;AAAA,EAElB,IAAA,EAAM,MAAA;AAAA,EACN,UAAA,EAAY,YAAA;AAAA,EACZ,QAAA,EAAU;;
|
|
1
|
+
{"version":3,"file":"Textarea.js","sources":["../../../../../../src/components/Textarea/Textarea.tsx"],"sourcesContent":[null],"names":["React","_jsx"],"mappings":";;;;;;AASA,MAAM,WAAA,GAAc;AAAA,EAElB,IAAA,EAAM,MAAA;AAAA,EACN,UAAA,EAAY,YAAA;AAAA,EACZ,QAAA,EAAU;;AAkCL,MAAM,QAAA,GAAWA,cAAA,CAAM,UAAA,CAC5B,CACE,IAqBA,GAAA,KACE;MAtBF,EACE,WACA,KAAA,EACA,IAAA,EACA,aACA,SAAA,EACA,IAAA,GAAO,CAAA,EACP,SAAA,GAAY,WAAA,CAAY,QAAA,EACxB,aAAa,KAAA,EACb,QAAA,EAAU,cAAA,GAAiB,KAAA,EAC3B,IAAA,EACA,QAAA,EACA,QACA,OAAA,EACA,UAAA,EACA,SAAA,EACA,WAAA,EACA,OAAA,EACA,KAAA,EAAO,eAAa,GAAA,EAAA,EACjB,aAAU,MAAA,CAAA,EAAA,EAnBf,CAAA,WAAA,EAAA,OAAA,EAAA,M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AA;AAAA,IACA,0BAAA;AAAA,IACA,yBAAA;AAAA;AAAA,IAGA,sBAAA;AAAA,IACA,iBAAA;AAAA,IAEA;AAAA;AAAA,MAEE,kCAAA,EAAoC,QAAA;AAAA,MACpC,sBAAsB,CAAC,QAAA;AAAA;AAAA,MAGvB,wBAAA,EAA0B,CAAC,QAAA,IAAY,CAAC,OAAA;AAAA,MACxC,qCAAqC,CAAC,QAAA;AAAA;AAAA,MAGtC,2BAAA,EAA6B,OAAA;AAAA,MAC7B,2BAAA,EAA6B,OAAA;AAAA,MAC7B,2BAA2B,CAAC,OAAA;AAAA,MAC5B,4BAA4B,CAAC,OAAA;AAAA;AAAA,MAG7B,UAAA,EAAY,CAAC,CAAC,IAAA;AAAA,MACd,SAAA,EAAW,cAAc,WAAA,CAAY,IAAA;AAAA,MACrC,aAAA,EAAe,cAAc,WAAA,CAAY,UAAA;AAAA,MACzC,aAAA,EAAe,cAAc,WAAA,CAAY;AAAA;AAC1C,GACF,CAAA,EACD,KAAA,EACA,GAAA,EAAQ,CAAA,CAAA;AAGd,CAAC;;"}
|
package/dist/esm/index.js
CHANGED
|
@@ -32,6 +32,7 @@ export { StyledInput } from './components/Input/StyledInput.js';
|
|
|
32
32
|
export { StyledRadio } from './components/Radio/StyledRadio.js';
|
|
33
33
|
export { LabeledDatePicker } from './components/DatePicker/LabeledDatePicker.js';
|
|
34
34
|
export { LabeledInput } from './components/Input/LabeledInput.js';
|
|
35
|
+
export { LabeledTextarea } from './components/Textarea/LabeledTextarea.js';
|
|
35
36
|
export { LabeledRadio } from './components/Radio/LabeledRadio.js';
|
|
36
37
|
export { LabeledRadioGroup } from './components/Radio/LabeledRadioGroup.js';
|
|
37
38
|
export { LabelText } from './components/forms/shared/LabelText.js';
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1356,8 +1356,8 @@ const underscoredSpacingPropNames = [
|
|
|
1356
1356
|
"_my"
|
|
1357
1357
|
];
|
|
1358
1358
|
const createSpacingClassNames = (spacingPropsArg) => underscoredSpacingPropNames.filter((key) => spacingPropsArg[key]).map((key) => `ui:${key.replace("_", "")}-f_${spacingPropsArg[key]}`).join(" ");
|
|
1359
|
-
const
|
|
1360
|
-
const { as: Element = "div", borderRadius, borderRadiusLeft, borderRadiusRight, className, elevation, width, backgroundColor, hoverBackgroundColor, cursor } = props, attributes = __rest(props, ["as", "borderRadius", "borderRadiusLeft", "borderRadiusRight", "className", "elevation", "width", "backgroundColor", "hoverBackgroundColor", "cursor"]);
|
|
1359
|
+
const Box = (props) => {
|
|
1360
|
+
const { as: Element = "div", ref, borderRadius, borderRadiusLeft, borderRadiusRight, className, elevation, width, backgroundColor, hoverBackgroundColor, cursor } = props, attributes = __rest(props, ["as", "ref", "borderRadius", "borderRadiusLeft", "borderRadiusRight", "className", "elevation", "width", "backgroundColor", "hoverBackgroundColor", "cursor"]);
|
|
1361
1361
|
const spacingClasses = createSpacingClassNames(props);
|
|
1362
1362
|
const shadowClassName = createShadowClassName(elevation);
|
|
1363
1363
|
const borderRadiusClassName = createRadiusClassName(borderRadius);
|
|
@@ -1410,7 +1410,6 @@ const BoxInner = (props, ref) => {
|
|
|
1410
1410
|
}, shadowClassName, borderRadiusClassName, borderRadiusLeftClassName, borderRadiusRightClassName);
|
|
1411
1411
|
return jsxRuntime.jsx(Element, Object.assign({ ref, className: tailwindMerge.twMerge(boxClasses, className) }, attributesWithoutSpacingKeys));
|
|
1412
1412
|
};
|
|
1413
|
-
const Box = React__namespace.default.forwardRef(BoxInner);
|
|
1414
1413
|
|
|
1415
1414
|
const Content$3 = (_a) => {
|
|
1416
1415
|
var { container, children, className, backgroundColor } = _a, contentProps = __rest(_a, ["container", "children", "className", "backgroundColor"]);
|
|
@@ -1577,8 +1576,8 @@ const Modal = (props) => {
|
|
|
1577
1576
|
};
|
|
1578
1577
|
Modal.setAppElement = ReactModal__default.default.setAppElement;
|
|
1579
1578
|
|
|
1580
|
-
const
|
|
1581
|
-
const { children, _gap, align = "start", justify = "normal", axis = "y", className, reverse, wrap = false, divider, as } = props, attributes = __rest(props, ["children", "_gap", "align", "justify", "axis", "className", "reverse", "wrap", "divider", "as"]);
|
|
1579
|
+
const Stack = (props) => {
|
|
1580
|
+
const { ref, children, _gap, align = "start", justify = "normal", axis = "y", className, reverse, wrap = false, divider, as } = props, attributes = __rest(props, ["ref", "children", "_gap", "align", "justify", "axis", "className", "reverse", "wrap", "divider", "as"]);
|
|
1582
1581
|
const stackClasses = classNames__default.default(`ui:flex`, {
|
|
1583
1582
|
"ui:flex-row": axis === "x",
|
|
1584
1583
|
"ui:flex-col": axis === "y",
|
|
@@ -1632,7 +1631,6 @@ const StackInner = (props, ref) => {
|
|
|
1632
1631
|
jsxRuntime.jsx(Box, Object.assign({ as, ref, className: classes }, attributes, { children }))
|
|
1633
1632
|
);
|
|
1634
1633
|
};
|
|
1635
|
-
const Stack = React__namespace.default.forwardRef(StackInner);
|
|
1636
1634
|
|
|
1637
1635
|
const Tag = (_a) => {
|
|
1638
1636
|
var { _as = "span", _type = "neutral", _size = "large", _variant = "flat", _leadingIcon, _trailingIcon, _truncate, children, className } = _a, rest = __rest(_a, ["_as", "_type", "_size", "_variant", "_leadingIcon", "_trailingIcon", "_truncate", "children", "className"]);
|
|
@@ -2739,6 +2737,77 @@ const LabeledInput = React__namespace.default.forwardRef((props, ref) => {
|
|
|
2739
2737
|
return jsxRuntime.jsxs(Stack, { _gap: "base", align: fieldWidth ? "stretch" : void 0, className: classNames__default.default(fieldWidth && calculateResponsiveWidthClasses(fieldWidth), className), children: [label && jsxRuntime.jsx(LabelText, { as: "label", htmlFor: inputId, children: label }), jsxRuntime.jsx(StyledInput, Object.assign({}, rest, { id: inputId, ref, isError: Boolean(errorText), "aria-describedby": [ariaDescribedBy, helperErrorTextId].filter(Boolean).join(" ") })), jsxRuntime.jsx(HelperAndErrorText, { helperText, errorText, describingId: helperErrorTextId })] });
|
|
2740
2738
|
});
|
|
2741
2739
|
|
|
2740
|
+
var css_248z$8 = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n.cweb-textarea {\n resize: none;\n background-color: field;\n}\n.cweb-textarea.has-icon {\n background-size: 24px;\n background-position: 10px 10px;\n background-repeat: no-repeat;\n padding-left: 44px;\n}\n.cweb-textarea.resizable {\n resize: both;\n}\n.cweb-textarea.resizable-x {\n resize: horizontal;\n}\n.cweb-textarea.resizable-y {\n resize: vertical;\n}\n.cweb-textarea:focus {\n border-color: var(--color-primary);\n}\n.cweb-textarea:disabled {\n cursor: not-allowed;\n}\n.cweb-textarea.has-error {\n border: 1px solid #b91c1c;\n color: #991b1b;\n}";
|
|
2741
|
+
styleInject(css_248z$8);
|
|
2742
|
+
|
|
2743
|
+
const resizeTypes = {
|
|
2744
|
+
BOTH: "both",
|
|
2745
|
+
HORIZONTAL: "horizontal",
|
|
2746
|
+
VERTICAL: "vertical"
|
|
2747
|
+
};
|
|
2748
|
+
const Textarea = React__namespace.default.forwardRef((_a, ref) => {
|
|
2749
|
+
var { className, value, name, placeholder, maxLength, rows = 4, resizable = resizeTypes.VERTICAL, isDisabled = false, disabled: nativeDisabled = false, icon, onChange, onBlur, onFocus, onKeyPress, onKeyDown, onCtrlEnter, isError, style: consumerStyle } = _a, otherProps = __rest(_a, ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "disabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter", "isError", "style"]);
|
|
2750
|
+
const disabled = isDisabled || nativeDisabled;
|
|
2751
|
+
let style = consumerStyle;
|
|
2752
|
+
if (icon) {
|
|
2753
|
+
style = Object.assign(Object.assign({}, consumerStyle), { backgroundImage: `url("${icon}")` });
|
|
2754
|
+
}
|
|
2755
|
+
return jsxRuntime.jsx("textarea", Object.assign({}, otherProps, { name, value, placeholder, onChange, onBlur, onFocus, onKeyPress, onKeyDown: (event) => {
|
|
2756
|
+
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
|
|
2757
|
+
const { ctrlKey, metaKey, key } = event;
|
|
2758
|
+
if ((ctrlKey || metaKey) && key === "Enter") {
|
|
2759
|
+
onCtrlEnter === null || onCtrlEnter === void 0 ? void 0 : onCtrlEnter();
|
|
2760
|
+
}
|
|
2761
|
+
}, maxLength, rows, disabled, className: classNames__default.default([
|
|
2762
|
+
// Base classes
|
|
2763
|
+
className,
|
|
2764
|
+
"cweb-textarea",
|
|
2765
|
+
"ui:w-full",
|
|
2766
|
+
"ui:rounded",
|
|
2767
|
+
"ui:text-sm",
|
|
2768
|
+
// Padding and border
|
|
2769
|
+
"ui:p-2",
|
|
2770
|
+
"ui:border",
|
|
2771
|
+
"ui:border-solid",
|
|
2772
|
+
"ui:input-border",
|
|
2773
|
+
// Colors and states
|
|
2774
|
+
"ui:placeholder-gray-500",
|
|
2775
|
+
"ui:hover:input-border-dark",
|
|
2776
|
+
"ui:focus:outline-primary",
|
|
2777
|
+
"ui:focus:border-primary",
|
|
2778
|
+
// Transitions
|
|
2779
|
+
"ui:transition-colors",
|
|
2780
|
+
"ui:duration-300",
|
|
2781
|
+
{
|
|
2782
|
+
// Disabled state
|
|
2783
|
+
"ui:bg-slate-50 ui:text-slate-400": disabled,
|
|
2784
|
+
"ui:text-on-surface": !disabled,
|
|
2785
|
+
// Normal state (not disabled, not error)
|
|
2786
|
+
"ui:border-input-border": !disabled && !isError,
|
|
2787
|
+
"ui:hover:border-input-border-dark": !disabled,
|
|
2788
|
+
// Error state
|
|
2789
|
+
"ui:border-negative-border": isError,
|
|
2790
|
+
"ui:focus:outline-negative": isError,
|
|
2791
|
+
"ui:focus:border-primary": !isError,
|
|
2792
|
+
"ui:focus:outline-primary": !isError,
|
|
2793
|
+
// Style if icon present, and resizable states
|
|
2794
|
+
"has-icon": !!icon,
|
|
2795
|
+
resizable: resizable === resizeTypes.BOTH,
|
|
2796
|
+
"resizable-x": resizable === resizeTypes.HORIZONTAL,
|
|
2797
|
+
"resizable-y": resizable === resizeTypes.VERTICAL
|
|
2798
|
+
}
|
|
2799
|
+
]), style, ref }));
|
|
2800
|
+
});
|
|
2801
|
+
|
|
2802
|
+
const LabeledTextarea = React__namespace.default.forwardRef((props, ref) => {
|
|
2803
|
+
const { className, helperText, errorText, label, width, fullWidth, id, "aria-describedby": ariaDescribedBy } = props, rest = __rest(props, ["className", "helperText", "errorText", "label", "width", "fullWidth", "id", "aria-describedby"]);
|
|
2804
|
+
const generatedTextareaId = React__namespace.default.useId();
|
|
2805
|
+
const textareaId = id || generatedTextareaId;
|
|
2806
|
+
const helperErrorTextId = React__namespace.default.useId();
|
|
2807
|
+
const fieldWidth = width !== null && width !== void 0 ? width : fullWidth ? "full" : void 0;
|
|
2808
|
+
return jsxRuntime.jsxs(Stack, { _gap: "base", align: fieldWidth ? "stretch" : void 0, className: classNames__default.default(fieldWidth && calculateResponsiveWidthClasses(fieldWidth), className), children: [label && jsxRuntime.jsx(LabelText, { as: "label", htmlFor: textareaId, children: label }), jsxRuntime.jsx(Textarea, Object.assign({}, rest, { id: textareaId, ref, isError: Boolean(errorText), "aria-invalid": Boolean(errorText) || rest["aria-invalid"] || void 0, "aria-describedby": [ariaDescribedBy, helperErrorTextId].filter(Boolean).join(" ") })), jsxRuntime.jsx(HelperAndErrorText, { helperText, errorText, describingId: helperErrorTextId })] });
|
|
2809
|
+
});
|
|
2810
|
+
|
|
2742
2811
|
const Actions$1 = (props) => {
|
|
2743
2812
|
const { children, className } = props, rest = __rest(props, ["children", "className"]);
|
|
2744
2813
|
return jsxRuntime.jsx("div", Object.assign({}, rest, { className: classNames__default.default(
|
|
@@ -3146,8 +3215,8 @@ Line.propTypes = {
|
|
|
3146
3215
|
className: PropTypes__default.default.string
|
|
3147
3216
|
};
|
|
3148
3217
|
|
|
3149
|
-
var css_248z$
|
|
3150
|
-
styleInject(css_248z$
|
|
3218
|
+
var css_248z$7 = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n.cweb-checkbox {\n outline: none;\n}\n.cweb-checkbox .cweb-checkbox-input {\n position: absolute;\n -webkit-appearance: none;\n height: 1px;\n opacity: 0;\n width: 1px;\n}\n.cweb-checkbox.type-regular .cweb-checkbox-icon-container {\n border-color: #cccccc;\n display: flex;\n align-items: center;\n justify-content: center;\n flex: 0 0 auto;\n border-width: 1px;\n border-style: solid;\n border-radius: 4px;\n}\n.cweb-checkbox.type-regular.hasError .cweb-checkbox-icon-container {\n border-color: var(--ui-color-red-800, #991b1b);\n}\n.cweb-checkbox.type-regular.is-focused .cweb-checkbox-icon-container {\n border-color: #1e40af;\n}\n.cweb-checkbox.type-regular.is-checked .cweb-checkbox-icon {\n padding: 4px;\n background: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2210%22 height%3D%228%22 viewBox%3D%220 0 10 8%22 fill%3D%22none%22%3E %3Cpath d%3D%22M9.207 0.792787C9.39447 0.980314 9.49979 1.23462 9.49979 1.49979C9.49979 1.76495 9.39447 2.01926 9.207 2.20679L4.207 7.20679C4.01947 7.39426 3.76516 7.49957 3.5 7.49957C3.23484 7.49957 2.98053 7.39426 2.793 7.20679L0.793 5.20679C0.610842 5.01818 0.510047 4.76558 0.512326 4.50339C0.514604 4.24119 0.619773 3.99038 0.805181 3.80497C0.990589 3.61956 1.2414 3.51439 1.5036 3.51211C1.7658 3.50983 2.0184 3.61063 2.207 3.79279L3.5 5.08579L7.793 0.792787C7.98053 0.605316 8.23484 0.5 8.5 0.5C8.76516 0.5 9.01947 0.605316 9.207 0.792787Z%22 fill%3D%22white%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n.cweb-checkbox.type-regular.is-checked .cweb-checkbox-icon-container {\n border-color: #1e40af;\n}\n.cweb-checkbox.type-regular.is-checked.is-focused .cweb-checkbox-icon-container {\n border-color: #1d4ed8;\n}\n.cweb-checkbox.type-regular.is-indeterminate .cweb-checkbox-icon {\n width: 0.5rem;\n height: 0.5rem;\n padding: 4px;\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2210%22 height%3D%222%22 viewBox%3D%220 0 10 2%22 fill%3D%22none%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M9 -4.37114e-08C9.55228 -1.95703e-08 10 0.447715 10 1C10 1.55228 9.55228 2 9 2L1 2C0.447716 2 -6.78525e-08 1.55228 -4.37114e-08 1C-1.95703e-08 0.447715 0.447715 -4.17544e-07 1 -3.93402e-07L9 -4.37114e-08Z%22 fill%3D%22white%22%2F%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n}\n.cweb-checkbox.type-regular.is-indeterminate .cweb-checkbox-icon-container {\n border-color: #1e40af;\n}\n.cweb-checkbox.type-regular.is-indeterminate.is-focused .cweb-checkbox-icon-container {\n border-color: #1d4ed8;\n}\n.cweb-checkbox.type-regular.is-disabled.show-cross-when-disabled .cweb-checkbox-icon {\n width: 10px;\n height: 10px;\n background: url(\"data:image/svg+xml,%3Csvg width%3D%2211px%22 height%3D%2211px%22 viewBox%3D%220 0 11 11%22 version%3D%221.1%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E %3Cg stroke%3D%22none%22 stroke-width%3D%221%22 fill%3D%22none%22 fill-rule%3D%22evenodd%22 stroke-linecap%3D%22round%22%3E %3Cg transform%3D%22translate(-6.000000%2C -7.000000)%22 stroke%3D%22%232D2D2D%22 stroke-width%3D%222%22%3E %3Cpath d%3D%22M7%2C17 L16%2C8 M16%2C17 L7%2C8%22 %2F%3E %3C%2Fg%3E %3C%2Fg%3E%3C%2Fsvg%3E\") no-repeat center;\n background-size: contain;\n opacity: 0.6;\n}";
|
|
3219
|
+
styleInject(css_248z$7);
|
|
3151
3220
|
|
|
3152
3221
|
const CheckboxInner = (props) => {
|
|
3153
3222
|
const { id, explanation, type = "regular", isChecked = false, isIndeterminate = false, isDisabled, name, value, onChange, onClick, className, classNameCheckboxLabel, error, innerRef } = props;
|
|
@@ -3265,8 +3334,8 @@ var img$3 = "data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:
|
|
|
3265
3334
|
|
|
3266
3335
|
var img$2 = "data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e%3csvg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' style='margin: auto%3b background: none%3b display: block%3b shape-rendering: auto%3b' width='200px' height='200px' viewBox='0 0 100 100' preserveAspectRatio='xMidYMid'%3e%3ccircle cx='50' cy='50' fill='none' stroke='%23cbd5e1' stroke-width='16' r='36' stroke-dasharray='169.64600329384882 58.548667764616276'%3e %3canimateTransform attributeName='transform' type='rotate' repeatCount='indefinite' dur='1.1111111111111112s' values='0 50 50%3b360 50 50' keyTimes='0%3b1'%3e%3c/animateTransform%3e%3c/circle%3e%3c!-- %5bldio%5d generated by https://loading.io/ --%3e%3c/svg%3e";
|
|
3267
3336
|
|
|
3268
|
-
var css_248z$
|
|
3269
|
-
styleInject(css_248z$
|
|
3337
|
+
var css_248z$6 = "/**\n * --- DEPRECATED ---\n * DON'T USE ANYTHING FROM THIS FILE IN FUTURE CHANGES. WE SHOULD BE\n * USING TAILWIND CLASSES DIRECTLY IN OUR COMPONENTS.\n */\n.cweb-loading {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.cweb-loading .cweb-loading-text {\n margin-bottom: 24px;\n}\n.cweb-loading.as-modal {\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n z-index: 9999;\n background-color: rgba(255, 255, 255, 0.6);\n}\n.cweb-loading.as-modal .cweb-loading-panel {\n position: relative;\n width: 320px;\n min-height: 120px;\n border-radius: 4px;\n padding: 16px;\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.36);\n background-color: #ffffff;\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n}\n.cweb-loading.as-modal .cweb-loading-panel:before {\n position: absolute;\n content: \"\";\n top: 0;\n left: 0;\n right: 0;\n z-index: 1;\n height: 3px;\n background-color: #6abfa5;\n border-top-left-radius: 4px;\n border-top-right-radius: 4px;\n}";
|
|
3338
|
+
styleInject(css_248z$6);
|
|
3270
3339
|
|
|
3271
3340
|
function LoadingIndicator(_a) {
|
|
3272
3341
|
var { asModal = false, asSpinner = false, className = "", spinnerColor = "blue", dataTestId = "loading-indicator" } = _a, restProps = __rest(_a, ["asModal", "asSpinner", "className", "spinnerColor", "dataTestId"]);
|
|
@@ -3460,8 +3529,8 @@ const PaginationMenuSmall = (props) => {
|
|
|
3460
3529
|
return jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(TertiaryButton, { "aria-label": localization.previous, "data-test-id": "prev-button", leadingIcon: jsxRuntime.jsx(ChevronLeftIcon, {}), "data-page": props.currentPageNumber - 1, onClick: handleOnChange, disabled: props.currentPageNumber === 1 }), jsxRuntime.jsx(Text, { className: "ui:ml-4", variant: "sm", color: "slate-500", children: `${props.currentPageNumber} / ${props.pageCount}` }), jsxRuntime.jsx(TertiaryButton, { className: "ui:ml-4", "aria-label": localization.next, "data-test-id": "next-button", leadingIcon: jsxRuntime.jsx(ChevronRightIcon, {}), disabled: props.currentPageNumber === props.pageCount, "data-page": props.currentPageNumber + 1, onClick: handleOnChange })] });
|
|
3461
3530
|
};
|
|
3462
3531
|
|
|
3463
|
-
var css_248z$
|
|
3464
|
-
styleInject(css_248z$
|
|
3532
|
+
var css_248z$5 = ".styled-select {\n appearance: none;\n}\n.styled-select::picker-icon {\n appearance: none;\n}";
|
|
3533
|
+
styleInject(css_248z$5);
|
|
3465
3534
|
|
|
3466
3535
|
const StyledSelect = React__namespace.default.forwardRef((_a, ref) => {
|
|
3467
3536
|
var { children, suffix, prefix, className, width = "full", height = "lg", isError } = _a, attributes = __rest(_a, ["children", "suffix", "prefix", "className", "width", "height", "isError"]);
|
|
@@ -3932,8 +4001,8 @@ const NavLayout = (props) => {
|
|
|
3932
4001
|
}), children })] })] })] }));
|
|
3933
4002
|
};
|
|
3934
4003
|
|
|
3935
|
-
var css_248z$
|
|
3936
|
-
styleInject(css_248z$
|
|
4004
|
+
var css_248z$4 = ".cweb-page {\n width: 100%;\n max-width: 1140px;\n margin: 32px auto 0 auto;\n}\n.cweb-page .cweb-page-breadcrumbs {\n margin-bottom: 16px;\n}\n.cweb-page .page-spinner {\n margin-left: 8px;\n margin-bottom: 4px;\n}\n.cweb-page .page-spinner img {\n width: 21px;\n}\n.cweb-page .cweb-page-header {\n display: flex;\n align-items: center;\n width: 100%;\n flex-grow: 0;\n}\n.cweb-page .cweb-page-header .cweb-page-title {\n display: inline;\n}\n.cweb-page .cweb-page-header.accessory-right {\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n}\n@media screen and (max-width: 426px) {\n .cweb-page .cweb-page-header.accessory-bottom {\n max-width: 75vw;\n }\n .cweb-page .cweb-page-header.accessory-bottom img {\n max-width: 10vw;\n }\n .cweb-page .cweb-page-header.accessory-bottom button p {\n font-size: 4vw;\n }\n}\n.cweb-page .cweb-page-header.accessory-bottom {\n flex-direction: column;\n align-items: flex-start;\n}\n.cweb-page .cweb-page-header.accessory-bottom .cweb-page-title {\n margin-bottom: 8px;\n display: inline;\n}";
|
|
4005
|
+
styleInject(css_248z$4);
|
|
3937
4006
|
|
|
3938
4007
|
function Page({
|
|
3939
4008
|
dataTestId = "page",
|
|
@@ -4112,8 +4181,8 @@ const Breadcrumbs = ({
|
|
|
4112
4181
|
return jsxRuntime.jsx("ul", { "data-test-id": "breadcrumbs", className: "ui:flex ui:flex-row ui:flex-wrap ui:items-center", children: (isTruncated ? crumbsAndDivider : crumbs).map((crumbOrDividerProps) => isBreadcrumbDividerProps(crumbOrDividerProps) ? jsxRuntime.jsx(BreadcrumbDividerItem, Object.assign({}, crumbOrDividerProps), `divider-${truncatedCrumbs.map((crumb) => crumb.name).join("-")}`) : jsxRuntime.jsx(BreadcrumbItem, Object.assign({}, crumbOrDividerProps, { render: renderItem }), crumbOrDividerProps.key || crumbOrDividerProps.name)) });
|
|
4113
4182
|
};
|
|
4114
4183
|
|
|
4115
|
-
var css_248z$
|
|
4116
|
-
styleInject(css_248z$
|
|
4184
|
+
var css_248z$3 = "/**\n * --- DEPRECATED ---\n * DON'T USE ANYTHING FROM THIS FILE IN FUTURE CHANGES. WE SHOULD BE\n * USING TAILWIND CLASSES DIRECTLY IN OUR COMPONENTS.\n */\n/**\n * Avenir is NOT declared here. The library does not ship font files, so any\n * `@font-face` written against a path in this repo resolves against the\n * consuming app's document and 404s there. Providing the typeface is the\n * consumer's responsibility; this rule only names it.\n */\n.title-avenir {\n font-family: \"AvenirNextLTPro-Bold\", \"Roboto\", sans-serif;\n}\n\n.title-inter {\n font-family: \"Inter\", \"Roboto\", \"Helvetica\", sans-serif;\n}";
|
|
4185
|
+
styleInject(css_248z$3);
|
|
4117
4186
|
|
|
4118
4187
|
const PageTitle = (props) => {
|
|
4119
4188
|
const { as: Component = "h2", className } = props, rest = __rest(props, ["as", "className"]);
|
|
@@ -4322,8 +4391,8 @@ const Section = (_a) => {
|
|
|
4322
4391
|
}), children: isLoading ? null : children }), footer && jsxRuntime.jsx(SectionFooter, { children: footer })] }));
|
|
4323
4392
|
};
|
|
4324
4393
|
|
|
4325
|
-
var css_248z$
|
|
4326
|
-
styleInject(css_248z$
|
|
4394
|
+
var css_248z$2 = "/**\n * --- DEPRECATED ---\n * DON'T USE ANYTHING FROM THIS FILE IN FUTURE CHANGES. WE SHOULD BE\n * USING TAILWIND CLASSES DIRECTLY IN OUR COMPONENTS.\n */\n.cweb-list-item {\n display: flex;\n justify-content: flex-start;\n flex-direction: row;\n align-items: center;\n padding: 16px 0 16px 0;\n border-bottom: 1px solid #eeeeee;\n}\n.cweb-list-item:last-child {\n border-bottom: none;\n}\n.cweb-list-item.cweb-list-item-clickable {\n cursor: pointer;\n}\n.cweb-list-item.cweb-list-item-clickable:hover {\n background-color: #f2fafd;\n}";
|
|
4395
|
+
styleInject(css_248z$2);
|
|
4327
4396
|
|
|
4328
4397
|
const SectionItem = (props) => {
|
|
4329
4398
|
const { children, className, onClick } = props, rest = __rest(props, ["children", "className", "onClick"]);
|
|
@@ -4340,8 +4409,8 @@ function SectionItemWithContent(props) {
|
|
|
4340
4409
|
return jsxRuntime.jsxs(SectionItem, Object.assign({ className: mergedClasses, onClick }, rest, { children: [icon && jsxRuntime.jsx("img", { className: iconClasses, src: icon, alt: "" }), jsxRuntime.jsx(Text, { children: text })] }));
|
|
4341
4410
|
}
|
|
4342
4411
|
|
|
4343
|
-
var css_248z$
|
|
4344
|
-
styleInject(css_248z$
|
|
4412
|
+
var css_248z$1 = ".customized-select [class*=MenuList] [class*=option]::after {\n position: absolute;\n content: \"\";\n background: url(\"data:image/svg+xml,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2216%22 height%3D%2216%22 viewBox%3D%220 0 16 16%22%3E %3Cg transform%3D%22translate(1.5%2C 0.5)%22%3E %3Cpath fill%3D%22none%22 fill-rule%3D%22evenodd%22 stroke%3D%22%230074DD%22 stroke-linecap%3D%22round%22 stroke-linejoin%3D%22round%22 stroke-width%3D%222%22 d%3D%22M12.643 3.357L6.03 9.97l-2.674 2.674L0 9.286%22%2F%3E %3C%2Fg%3E%3C%2Fsvg%3E\") no-repeat center;\n right: 12px;\n height: 1rem;\n width: 1rem;\n}";
|
|
4413
|
+
styleInject(css_248z$1);
|
|
4345
4414
|
|
|
4346
4415
|
const SelectDropdownIndicator = (props) => jsxRuntime.jsx(ReactSelect.components.DropdownIndicator, Object.assign({}, props, { children: props.isMulti ? jsxRuntime.jsx(ChevronDoubleIcon, {}) : jsxRuntime.jsx(ChevronDownIcon, {}) }));
|
|
4347
4416
|
|
|
@@ -5127,69 +5196,6 @@ const ActionCardDetailed = ({ type, iconUrl, title, category, metadata, schedule
|
|
|
5127
5196
|
)) })] }), children ? jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Divider, { version: "v2", className: "ui:w-full" }), jsxRuntime.jsx(Stack, { _gap: "base", width: "full", children })] }) : null] }) });
|
|
5128
5197
|
};
|
|
5129
5198
|
|
|
5130
|
-
var css_248z$1 = "/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */\n.cweb-textarea {\n resize: none;\n background-color: field;\n}\n.cweb-textarea.has-icon {\n background-size: 24px;\n background-position: 10px 10px;\n background-repeat: no-repeat;\n padding-left: 44px;\n}\n.cweb-textarea.resizable {\n resize: both;\n}\n.cweb-textarea.resizable-x {\n resize: horizontal;\n}\n.cweb-textarea.resizable-y {\n resize: vertical;\n}\n.cweb-textarea:focus {\n border-color: var(--color-primary);\n}\n.cweb-textarea:disabled {\n cursor: not-allowed;\n}\n.cweb-textarea.has-error {\n border: 1px solid #b91c1c;\n color: #991b1b;\n}";
|
|
5131
|
-
styleInject(css_248z$1);
|
|
5132
|
-
|
|
5133
|
-
const resizeTypes = {
|
|
5134
|
-
BOTH: "both",
|
|
5135
|
-
HORIZONTAL: "horizontal",
|
|
5136
|
-
VERTICAL: "vertical"
|
|
5137
|
-
};
|
|
5138
|
-
const Textarea = React__namespace.default.forwardRef((_a, ref) => {
|
|
5139
|
-
var { className, value, name, placeholder, maxLength, rows = 4, resizable = resizeTypes.VERTICAL, isDisabled = false, icon, onChange, onBlur, onFocus, onKeyPress, onKeyDown, onCtrlEnter, isError } = _a, otherProps = __rest(_a, ["className", "value", "name", "placeholder", "maxLength", "rows", "resizable", "isDisabled", "icon", "onChange", "onBlur", "onFocus", "onKeyPress", "onKeyDown", "onCtrlEnter", "isError"]);
|
|
5140
|
-
let style;
|
|
5141
|
-
if (icon) {
|
|
5142
|
-
style = {
|
|
5143
|
-
backgroundImage: `url("${icon}")`
|
|
5144
|
-
};
|
|
5145
|
-
}
|
|
5146
|
-
return jsxRuntime.jsx("textarea", Object.assign({}, otherProps, { name, value, placeholder, onChange, onBlur, onFocus, onKeyPress, onKeyDown: (event) => {
|
|
5147
|
-
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(event);
|
|
5148
|
-
const { ctrlKey, metaKey, key } = event;
|
|
5149
|
-
if ((ctrlKey || metaKey) && key === "Enter") {
|
|
5150
|
-
onCtrlEnter === null || onCtrlEnter === void 0 ? void 0 : onCtrlEnter();
|
|
5151
|
-
}
|
|
5152
|
-
}, maxLength, rows, disabled: isDisabled, className: classNames__default.default([
|
|
5153
|
-
// Base classes
|
|
5154
|
-
className,
|
|
5155
|
-
"cweb-textarea",
|
|
5156
|
-
"ui:w-full",
|
|
5157
|
-
"ui:rounded",
|
|
5158
|
-
"ui:text-sm",
|
|
5159
|
-
// Padding and border
|
|
5160
|
-
"ui:p-2",
|
|
5161
|
-
"ui:border",
|
|
5162
|
-
"ui:border-solid",
|
|
5163
|
-
"ui:input-border",
|
|
5164
|
-
// Colors and states
|
|
5165
|
-
"ui:placeholder-gray-500",
|
|
5166
|
-
"ui:hover:input-border-dark",
|
|
5167
|
-
"ui:focus:outline-primary",
|
|
5168
|
-
"ui:focus:border-primary",
|
|
5169
|
-
// Transitions
|
|
5170
|
-
"ui:transition-colors",
|
|
5171
|
-
"ui:duration-300",
|
|
5172
|
-
{
|
|
5173
|
-
// Disabled state
|
|
5174
|
-
"ui:bg-slate-50 ui:text-slate-400": isDisabled,
|
|
5175
|
-
"ui:text-on-surface": !isDisabled,
|
|
5176
|
-
// Normal state (not disabled, not error)
|
|
5177
|
-
"ui:border-input-border": !isDisabled && !isError,
|
|
5178
|
-
"ui:hover:border-input-border-dark": !isDisabled,
|
|
5179
|
-
// Error state
|
|
5180
|
-
"ui:border-negative-border": isError,
|
|
5181
|
-
"ui:focus:outline-negative": isError,
|
|
5182
|
-
"ui:focus:border-primary": !isError,
|
|
5183
|
-
"ui:focus:outline-primary": !isError,
|
|
5184
|
-
// Style if icon present, and resizable states
|
|
5185
|
-
"has-icon": !!icon,
|
|
5186
|
-
resizable: resizable === resizeTypes.BOTH,
|
|
5187
|
-
"resizable-x": resizable === resizeTypes.HORIZONTAL,
|
|
5188
|
-
"resizable-y": resizable === resizeTypes.VERTICAL
|
|
5189
|
-
}
|
|
5190
|
-
]), style, ref }));
|
|
5191
|
-
});
|
|
5192
|
-
|
|
5193
5199
|
const LinkTooltip = ({ linkElement, editorInstance, onClose, translations }) => {
|
|
5194
5200
|
const dialogRef = React.useRef(null);
|
|
5195
5201
|
const anchorName = React.useRef(`link-${Date.now()}-${Math.random().toString(36).substring(2, 9)}`);
|
|
@@ -7532,6 +7538,7 @@ exports.LabeledRadioCardGroup = LabeledRadioCardGroup;
|
|
|
7532
7538
|
exports.LabeledRadioGroup = LabeledRadioGroup;
|
|
7533
7539
|
exports.LabeledSelect = LabeledSelect;
|
|
7534
7540
|
exports.LabeledSelectSearchable = LabeledSelectSearchable;
|
|
7541
|
+
exports.LabeledTextarea = LabeledTextarea;
|
|
7535
7542
|
exports.LifebuoyIcon = LifebuoyIcon;
|
|
7536
7543
|
exports.LightBulbIcon = LightBulbIcon;
|
|
7537
7544
|
exports.Line = Line;
|