@camunda/ccma-saas-frontend 0.8.1 → 0.8.3
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/lib/esm/components/c4-cluster-settings/elements/external-identity-provider-modal.js +1 -2
- package/lib/esm/components/c4-create-alert-modal/c4-create-alert-modal.js +1 -2
- package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js +1 -2
- package/lib/esm/ui/c4-password-input.d.ts +24 -0
- package/lib/esm/ui/c4-password-input.js +95 -0
- package/lib/esm/ui/index.d.ts +8 -3
- package/lib/esm/ui/index.js +13 -4
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-alerts-tab.js +1 -2
- package/lib/esm/widgets/cluster-details/tabs/c4-cluster-details-connector-secrets-tab.js +2 -2
- package/package.json +3 -3
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { PasswordInput } from '@carbon/react';
|
|
3
2
|
import { useEffect, useState } from 'react';
|
|
4
|
-
import { Checkbox, CodeSnippet, Form, Modal, Stack, TextInput, } from '../../../ui/index.js';
|
|
3
|
+
import { Checkbox, CodeSnippet, Form, Modal, PasswordInput, Stack, TextInput, } from '../../../ui/index.js';
|
|
5
4
|
import { C4InlineNotification } from '../../c4-inline-notification/c4-inline-notification.js';
|
|
6
5
|
// ponytail: English placeholder copy — final UX copy + lockout wording are a Product
|
|
7
6
|
// Design action item (design §1). Kept inline until it lands.
|
|
@@ -4,9 +4,8 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import { PasswordInput } from '@carbon/react';
|
|
8
7
|
import { forwardRef, useCallback, useImperativeHandle, useState, } from 'react';
|
|
9
|
-
import { Checkbox, Form, Modal, Stack, TextInput } from '../../ui/index.js';
|
|
8
|
+
import { Checkbox, Form, Modal, PasswordInput, Stack, TextInput, } from '../../ui/index.js';
|
|
10
9
|
import { useRadioFamily } from '../../ui/families.js';
|
|
11
10
|
import { C4ActionableNotification } from '../c4-actionable-notification/c4-actionable-notification.js';
|
|
12
11
|
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
package/lib/esm/components/c4-create-connector-secret-modal/c4-create-connector-secret-modal.js
CHANGED
|
@@ -5,9 +5,8 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
7
|
import { SECRETS_MAX_LENGTH } from '@camunda/ccma-shared-types';
|
|
8
|
-
import { PasswordInput } from '@carbon/react';
|
|
9
8
|
import { forwardRef, useCallback, useImperativeHandle, useMemo, useState, } from 'react';
|
|
10
|
-
import { Form, Modal, Stack, TextInput } from '../../ui/index.js';
|
|
9
|
+
import { Form, Modal, PasswordInput, Stack, TextInput } from '../../ui/index.js';
|
|
11
10
|
import { C4InlineNotification } from '../c4-inline-notification/c4-inline-notification.js';
|
|
12
11
|
function safeTranslate(t, key, defaultValue, options) {
|
|
13
12
|
if (!t)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { PasswordInputProps } from '@carbon/react';
|
|
2
|
+
import { type JSX } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Carbon `PasswordInput` API → DS `Input` plus a visibility toggle.
|
|
5
|
+
*
|
|
6
|
+
* The ds branch of the `../ui` `PasswordInput` switch. Unlike most leaves, this
|
|
7
|
+
* one cannot go through `carbon-compat`: that `PasswordInput` export is a SHIM
|
|
8
|
+
* (`export { PasswordInput } from '@carbon/react'`, with a `MIGRATION TODO`), so
|
|
9
|
+
* `switchable(CarbonPasswordInput, DsPasswordInput)` renders Carbon in both
|
|
10
|
+
* modes. A password field next to a ds `TextInput` then keeps the Carbon label
|
|
11
|
+
* and the Carbon box, which is the mismatch this component removes.
|
|
12
|
+
*
|
|
13
|
+
* The markup copies the `carbon-compat` `TextInput` adapter (label, `Input`,
|
|
14
|
+
* then an error or helper `<span>`) so the two fields line up in a form. The
|
|
15
|
+
* toggle button copies the clear button of the DS `SearchInput`: a `relative`
|
|
16
|
+
* wrapper, an absolutely positioned button, and `pr-8` on the input to keep the
|
|
17
|
+
* text clear of it.
|
|
18
|
+
*
|
|
19
|
+
* Every utility class here is already in the prebuilt `dist/styles.css` of the
|
|
20
|
+
* DS package, because `TextInput` and `SearchInput` use it. This package runs no
|
|
21
|
+
* Tailwind pass of its own, so a class that those components do not use has no
|
|
22
|
+
* rule at all (see the note in `./c4-modal-dialog`).
|
|
23
|
+
*/
|
|
24
|
+
export declare function C4PasswordInput({ className, defaultValue, disabled, helperText, hideLabel, hidePasswordLabel, id, invalid, invalidText, labelText, onChange, onClick, onTogglePasswordVisibility, placeholder, readOnly, showPasswordLabel, type, value, 'aria-describedby': ariaDescribedBy, 'aria-errormessage': ariaErrorMessage, ...rest }: PasswordInputProps): JSX.Element;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright Camunda Services GmbH and/or licensed to Camunda Services GmbH
|
|
4
|
+
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
|
+
* You may not use this file except in compliance with the commercial license.
|
|
6
|
+
*/
|
|
7
|
+
import { cn, Input } from '@camunda/design-system';
|
|
8
|
+
import { Eye, EyeOff } from 'lucide-react';
|
|
9
|
+
import { useId, useState } from 'react';
|
|
10
|
+
/**
|
|
11
|
+
* Carbon `PasswordInput` props that the ds branch cannot honor.
|
|
12
|
+
*
|
|
13
|
+
* These leave through `omitCarbonOnly` below, not through the destructure in the
|
|
14
|
+
* component. `apps/accounts-frontend` compiles `@carbon/react` against its own
|
|
15
|
+
* `src/carbon.d.ts`, which does not declare every one of these props (#9748).
|
|
16
|
+
* A destructure names a prop, so a missing one is a build error in that app,
|
|
17
|
+
* which is what broke `@camunda-cloud/accounts-frontend#typecheck`. A key list
|
|
18
|
+
* only reads the object, so it holds for both declarations.
|
|
19
|
+
*/
|
|
20
|
+
const CARBON_ONLY_PROPS = [
|
|
21
|
+
'enableCounter',
|
|
22
|
+
'inline',
|
|
23
|
+
'light',
|
|
24
|
+
'maxCount',
|
|
25
|
+
'size',
|
|
26
|
+
'tooltipAlignment',
|
|
27
|
+
'tooltipPosition',
|
|
28
|
+
'warn',
|
|
29
|
+
'warnText',
|
|
30
|
+
];
|
|
31
|
+
/**
|
|
32
|
+
* Removes the props that only Carbon reads.
|
|
33
|
+
*
|
|
34
|
+
* The DS `Input` spreads what it does not read onto the `<input>` node, so a
|
|
35
|
+
* Carbon prop that stays becomes an unknown DOM attribute and React warns.
|
|
36
|
+
* `Omit` accepts a key that the type does not have, so the signature holds
|
|
37
|
+
* whichever `@carbon/react` declaration the app compiles against.
|
|
38
|
+
*/
|
|
39
|
+
function omitCarbonOnly(props) {
|
|
40
|
+
const next = { ...props };
|
|
41
|
+
for (const key of CARBON_ONLY_PROPS) {
|
|
42
|
+
delete next[key];
|
|
43
|
+
}
|
|
44
|
+
return next;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Carbon `PasswordInput` API → DS `Input` plus a visibility toggle.
|
|
48
|
+
*
|
|
49
|
+
* The ds branch of the `../ui` `PasswordInput` switch. Unlike most leaves, this
|
|
50
|
+
* one cannot go through `carbon-compat`: that `PasswordInput` export is a SHIM
|
|
51
|
+
* (`export { PasswordInput } from '@carbon/react'`, with a `MIGRATION TODO`), so
|
|
52
|
+
* `switchable(CarbonPasswordInput, DsPasswordInput)` renders Carbon in both
|
|
53
|
+
* modes. A password field next to a ds `TextInput` then keeps the Carbon label
|
|
54
|
+
* and the Carbon box, which is the mismatch this component removes.
|
|
55
|
+
*
|
|
56
|
+
* The markup copies the `carbon-compat` `TextInput` adapter (label, `Input`,
|
|
57
|
+
* then an error or helper `<span>`) so the two fields line up in a form. The
|
|
58
|
+
* toggle button copies the clear button of the DS `SearchInput`: a `relative`
|
|
59
|
+
* wrapper, an absolutely positioned button, and `pr-8` on the input to keep the
|
|
60
|
+
* text clear of it.
|
|
61
|
+
*
|
|
62
|
+
* Every utility class here is already in the prebuilt `dist/styles.css` of the
|
|
63
|
+
* DS package, because `TextInput` and `SearchInput` use it. This package runs no
|
|
64
|
+
* Tailwind pass of its own, so a class that those components do not use has no
|
|
65
|
+
* rule at all (see the note in `./c4-modal-dialog`).
|
|
66
|
+
*/
|
|
67
|
+
export function C4PasswordInput({ className, defaultValue, disabled, helperText, hideLabel, hidePasswordLabel = 'Hide password', id, invalid, invalidText, labelText, onChange, onClick, onTogglePasswordVisibility, placeholder, readOnly, showPasswordLabel = 'Show password', type = 'password', value, 'aria-describedby': ariaDescribedBy, 'aria-errormessage': ariaErrorMessage, ...rest }) {
|
|
68
|
+
// Carbon seeds its own state from `type` and then owns the value, so a later
|
|
69
|
+
// change of the prop does not move the field back. Mirror that.
|
|
70
|
+
const [inputType, setInputType] = useState(type);
|
|
71
|
+
const generatedId = useId();
|
|
72
|
+
const resolvedId = id ?? generatedId;
|
|
73
|
+
const passwordIsVisible = inputType === 'text';
|
|
74
|
+
// The DS TextInput adapter drops the helper text while the field is invalid,
|
|
75
|
+
// and wires both messages for a screen reader through `aria-describedby`.
|
|
76
|
+
const showInvalidText = invalid && invalidText !== undefined;
|
|
77
|
+
const showHelperText = !invalid && helperText !== undefined;
|
|
78
|
+
const errorId = showInvalidText ? `${resolvedId}-error-msg` : undefined;
|
|
79
|
+
const helperId = showHelperText ? `${resolvedId}-helper-text` : undefined;
|
|
80
|
+
// A consumer-supplied `aria-errormessage` wins outright: the axe rule for that
|
|
81
|
+
// attribute rejects more than one id, unlike `aria-describedby`.
|
|
82
|
+
const errorMessageId = ariaErrorMessage ?? errorId;
|
|
83
|
+
const describedBy = [errorId, helperId, ariaDescribedBy].filter(Boolean).join(' ') || undefined;
|
|
84
|
+
const ToggleIcon = passwordIsVisible ? EyeOff : Eye;
|
|
85
|
+
// Send `value` or `defaultValue`, never both. React reads an input that has
|
|
86
|
+
// both as controlled, uses `value`, and warns. The result is the same, so pass
|
|
87
|
+
// only the prop that decides it and keep the console clean. Carbon lets both
|
|
88
|
+
// through to the `<input>`, and so does the DS TextInput adapter, but no call
|
|
89
|
+
// site sets both, so this stays consistent with them for every real input.
|
|
90
|
+
const valueProps = value !== undefined ? { value } : { defaultValue };
|
|
91
|
+
return (_jsxs("div", { className: 'flex flex-col gap-1', children: [labelText !== undefined ? (_jsx("label", { htmlFor: resolvedId, className: cn('text-sm font-medium', hideLabel && 'sr-only'), children: labelText })) : null, _jsxs("div", { className: 'relative', children: [_jsx(Input, { ...omitCarbonOnly(rest), ...valueProps, id: resolvedId, type: inputType, disabled: disabled, readOnly: readOnly, placeholder: placeholder, onChange: onChange, onClick: onClick, "aria-invalid": invalid || undefined, "aria-errormessage": errorMessageId, "aria-describedby": describedBy, className: cn('pr-8', className) }), _jsx("button", { type: 'button', "aria-label": passwordIsVisible ? hidePasswordLabel : showPasswordLabel, disabled: disabled, onClick: (event) => {
|
|
92
|
+
setInputType(passwordIsVisible ? 'password' : 'text');
|
|
93
|
+
onTogglePasswordVisibility?.(event);
|
|
94
|
+
}, className: 'absolute right-2 top-1/2 -translate-y-1/2 rounded-sm text-neutral-foreground-subtle hover:text-neutral-foreground-strong focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50', children: _jsx(ToggleIcon, { "aria-hidden": 'true', className: 'h-4 w-4' }) })] }), showInvalidText ? (_jsx("span", { id: errorId, className: 'text-xs text-danger-action-default', children: invalidText })) : null, showHelperText ? (_jsx("span", { id: helperId, className: 'text-xs text-neutral-foreground-subtle', children: helperText })) : null] }));
|
|
95
|
+
}
|
package/lib/esm/ui/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FilterableMultiSelect as CarbonFilterableMultiSelect, MultiSelect as CarbonMultiSelect, TextArea as CarbonTextArea, Tooltip as CarbonTooltip } from '@carbon/react';
|
|
2
|
-
import { type ComponentType } from 'react';
|
|
1
|
+
import { FilterableMultiSelect as CarbonFilterableMultiSelect, IconButton as CarbonIconButton, MultiSelect as CarbonMultiSelect, TextArea as CarbonTextArea, Tooltip as CarbonTooltip } from '@carbon/react';
|
|
2
|
+
import { type ComponentProps, type ComponentType } from 'react';
|
|
3
3
|
export declare const Button: ComponentType<import("@camunda/design-system/carbon-compat").ButtonProps<"button">>;
|
|
4
4
|
export declare const Checkbox: ComponentType<import("@carbon/react").CheckboxProps & import("react").RefAttributes<unknown>>;
|
|
5
5
|
export declare const CodeSnippet: ComponentType<import("@camunda/design-system/carbon-compat").CodeSnippetProps>;
|
|
@@ -9,7 +9,10 @@ export declare const Dropdown: ComponentType<import("@carbon/react").DropdownPro
|
|
|
9
9
|
}>;
|
|
10
10
|
export declare const Form: ComponentType<import("react").DetailedHTMLProps<import("react").FormHTMLAttributes<HTMLFormElement>, HTMLFormElement>>;
|
|
11
11
|
export declare const FormGroup: ComponentType<import("@carbon/react").FormGroupProps>;
|
|
12
|
-
|
|
12
|
+
type IconButtonProps = Omit<ComponentProps<typeof CarbonIconButton>, 'label'> & {
|
|
13
|
+
label: string;
|
|
14
|
+
};
|
|
15
|
+
export declare const IconButton: ComponentType<IconButtonProps>;
|
|
13
16
|
export declare const Link: ComponentType<import("@camunda/design-system/carbon-compat").LinkProps>;
|
|
14
17
|
export declare const ListItem: ComponentType<import("@carbon/react").ListItemProps>;
|
|
15
18
|
export declare const Loading: ComponentType<import("@carbon/react").LoadingProps>;
|
|
@@ -20,6 +23,7 @@ export declare const ModalBody: ComponentType<import("@carbon/react").ModalBodyP
|
|
|
20
23
|
export declare const ModalFooter: ComponentType<import("@carbon/react").ModalFooterProps & import("react").RefAttributes<HTMLElement>>;
|
|
21
24
|
export declare const MultiSelect: typeof CarbonMultiSelect;
|
|
22
25
|
export declare const FilterableMultiSelect: typeof CarbonFilterableMultiSelect;
|
|
26
|
+
export declare const PasswordInput: ComponentType<import("@carbon/react").PasswordInputProps & import("react").RefAttributes<unknown>>;
|
|
23
27
|
export declare const ProgressBar: ComponentType<import("@carbon/react").ProgressBarProps>;
|
|
24
28
|
export declare const Search: ComponentType<import("@carbon/react").SearchProps & import("react").RefAttributes<HTMLInputElement>>;
|
|
25
29
|
export declare const SkeletonText: ComponentType<import("@carbon/react").SkeletonTextProps>;
|
|
@@ -36,3 +40,4 @@ export declare const Tile: ComponentType<import("@carbon/react").TileProps & imp
|
|
|
36
40
|
export declare const Toggle: ComponentType<import("@carbon/react").ToggleProps>;
|
|
37
41
|
export declare const UnorderedList: ComponentType<import("@carbon/react").UnorderedListProps>;
|
|
38
42
|
export declare const Tooltip: typeof CarbonTooltip;
|
|
43
|
+
export {};
|
package/lib/esm/ui/index.js
CHANGED
|
@@ -24,19 +24,25 @@
|
|
|
24
24
|
* breaks state injection (checked/selected). Migrate such families as a whole
|
|
25
25
|
* composite, not symbol-by-symbol.
|
|
26
26
|
*
|
|
27
|
-
* Also excluded:
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* Also excluded: prop-gap symbols (Tooltip `autoAlign`, ref-forwarding
|
|
28
|
+
* TextInput/TextArea/Stack, OverflowMenuItem `id`, FilterableMultiSelect item
|
|
29
|
+
* typing).
|
|
30
|
+
*
|
|
31
|
+
* A SHIM symbol (carbon-compat re-exports Carbon, so both modes render the
|
|
32
|
+
* same) belongs here only with a c4 transformation as its ds branch, the way
|
|
33
|
+
* `PasswordInput` uses `./c4-password-input`. A bare `switchable(...)` over a
|
|
34
|
+
* SHIM is a no-op that hides the component from the migration.
|
|
30
35
|
*
|
|
31
36
|
* To add a leaf: import the Carbon + carbon-compat versions and wrap with
|
|
32
37
|
* `switchable(...)`, then point the consuming component's import at this module.
|
|
33
38
|
*/
|
|
34
39
|
import { BreadcrumbSkeleton as DsBreadcrumbSkeleton, Button as DsButton, Checkbox as DsCheckbox, CodeSnippet as DsCodeSnippet, ComposedModal as DsComposedModal, Dropdown as DsDropdown, FilterableMultiSelect as DsFilterableMultiSelect, Form as DsForm, FormGroup as DsFormGroup, IconButton as DsIconButton, Link as DsLink, ListItem as DsListItem, Loading as DsLoading, ModalBody as DsModalBody, ModalFooter as DsModalFooter, ModalHeader as DsModalHeader, MultiSelect as DsMultiSelect, OverflowMenu as DsOverflowMenu, OverflowMenuItem as DsOverflowMenuItem, ProgressBar as DsProgressBar, Search as DsSearch, SkeletonPlaceholder as DsSkeletonPlaceholder, SkeletonText as DsSkeletonText, Stack as DsStack, TabsSkeleton as DsTabsSkeleton, Tag as DsTag, TextArea as DsTextArea, TextInput as DsTextInput, Tile as DsTile, Toggle as DsToggle, Tooltip as DsTooltip, UnorderedList as DsUnorderedList, } from '@camunda/design-system/carbon-compat';
|
|
35
|
-
import { BreadcrumbSkeleton as CarbonBreadcrumbSkeleton, Button as CarbonButton, Checkbox as CarbonCheckbox, CodeSnippet as CarbonCodeSnippet, ComposedModal as CarbonComposedModal, DefinitionTooltip as CarbonDefinitionTooltip, Dropdown as CarbonDropdown, FilterableMultiSelect as CarbonFilterableMultiSelect, Form as CarbonForm, FormGroup as CarbonFormGroup, IconButton as CarbonIconButton, Link as CarbonLink, ListItem as CarbonListItem, Loading as CarbonLoading, Modal as CarbonModal, ModalBody as CarbonModalBody, ModalFooter as CarbonModalFooter, ModalHeader as CarbonModalHeader, MultiSelect as CarbonMultiSelect, OverflowMenu as CarbonOverflowMenu, OverflowMenuItem as CarbonOverflowMenuItem, ProgressBar as CarbonProgressBar, Search as CarbonSearch, SkeletonPlaceholder as CarbonSkeletonPlaceholder, SkeletonText as CarbonSkeletonText, Stack as CarbonStack, TabsSkeleton as CarbonTabsSkeleton, Tag as CarbonTag, TextArea as CarbonTextArea, TextInput as CarbonTextInput, Tile as CarbonTile, Toggle as CarbonToggle, Tooltip as CarbonTooltip, UnorderedList as CarbonUnorderedList, } from '@carbon/react';
|
|
40
|
+
import { BreadcrumbSkeleton as CarbonBreadcrumbSkeleton, Button as CarbonButton, Checkbox as CarbonCheckbox, CodeSnippet as CarbonCodeSnippet, ComposedModal as CarbonComposedModal, DefinitionTooltip as CarbonDefinitionTooltip, Dropdown as CarbonDropdown, FilterableMultiSelect as CarbonFilterableMultiSelect, Form as CarbonForm, FormGroup as CarbonFormGroup, IconButton as CarbonIconButton, Link as CarbonLink, ListItem as CarbonListItem, Loading as CarbonLoading, Modal as CarbonModal, ModalBody as CarbonModalBody, ModalFooter as CarbonModalFooter, ModalHeader as CarbonModalHeader, MultiSelect as CarbonMultiSelect, OverflowMenu as CarbonOverflowMenu, OverflowMenuItem as CarbonOverflowMenuItem, PasswordInput as CarbonPasswordInput, ProgressBar as CarbonProgressBar, Search as CarbonSearch, SkeletonPlaceholder as CarbonSkeletonPlaceholder, SkeletonText as CarbonSkeletonText, Stack as CarbonStack, TabsSkeleton as CarbonTabsSkeleton, Tag as CarbonTag, TextArea as CarbonTextArea, TextInput as CarbonTextInput, Tile as CarbonTile, Toggle as CarbonToggle, Tooltip as CarbonTooltip, UnorderedList as CarbonUnorderedList, } from '@carbon/react';
|
|
36
41
|
import { createElement, Fragment, } from 'react';
|
|
37
42
|
import { useC4DesignSystem } from '../runtime/c4-console-runtime-context.js';
|
|
38
43
|
import { C4DefinitionTooltip } from './c4-definition-tooltip.js';
|
|
39
44
|
import { C4ModalDialog } from './c4-modal-dialog.js';
|
|
45
|
+
import { C4PasswordInput } from './c4-password-input.js';
|
|
40
46
|
import { switchable } from './switchable.js';
|
|
41
47
|
export const Button = switchable(CarbonButton, DsButton);
|
|
42
48
|
export const Checkbox = switchable(CarbonCheckbox, DsCheckbox);
|
|
@@ -69,6 +75,9 @@ export const ModalFooter = switchable(CarbonModalFooter, DsModalFooter);
|
|
|
69
75
|
// item-type inference (carbon-compat REMAPs both onto the DS MultiSelect).
|
|
70
76
|
export const MultiSelect = switchable(CarbonMultiSelect, DsMultiSelect);
|
|
71
77
|
export const FilterableMultiSelect = switchable(CarbonFilterableMultiSelect, DsFilterableMultiSelect);
|
|
78
|
+
// carbon-compat's PasswordInput is a SHIM (it re-exports Carbon), so the ds
|
|
79
|
+
// branch is a c4 transformation over the DS `Input` (see ./c4-password-input).
|
|
80
|
+
export const PasswordInput = switchable(CarbonPasswordInput, C4PasswordInput);
|
|
72
81
|
export const ProgressBar = switchable(CarbonProgressBar, DsProgressBar);
|
|
73
82
|
export const Search = switchable(CarbonSearch, DsSearch);
|
|
74
83
|
export const SkeletonText = switchable(CarbonSkeletonText, DsSkeletonText);
|
|
@@ -4,14 +4,13 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
4
4
|
* under one or more contributor license agreements. Licensed under a commercial license.
|
|
5
5
|
* You may not use this file except in compliance with the commercial license.
|
|
6
6
|
*/
|
|
7
|
-
import { PasswordInput } from '@carbon/react';
|
|
8
7
|
import { Fragment, useCallback, useRef, useState } from 'react';
|
|
9
8
|
import { C4ActionableNotification } from '../../../components/c4-actionable-notification/c4-actionable-notification.js';
|
|
10
9
|
import { C4ClusterDetailsAlerts } from '../../../components/c4-cluster-details-alerts/c4-cluster-details-alerts.js';
|
|
11
10
|
import { C4CreateAlertModal } from '../../../components/c4-create-alert-modal/c4-create-alert-modal.js';
|
|
12
11
|
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
13
12
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
14
|
-
import { Checkbox, Form, Link, Modal, Stack, TextInput } from '../../../ui/index.js';
|
|
13
|
+
import { Checkbox, Form, Link, Modal, PasswordInput, Stack, TextInput, } from '../../../ui/index.js';
|
|
15
14
|
import { useRadioFamily } from '../../../ui/families.js';
|
|
16
15
|
// Helper to translate with fallback
|
|
17
16
|
function safeTranslate(translateFn, key, fallback, options) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ConsoleConnectorSecretsService } from '@camunda/ccma-api';
|
|
3
3
|
import { SECRETS_MAX_LENGTH, SseEntity } from '@camunda/ccma-shared-types';
|
|
4
|
-
import { FileUploader, InlineLoading
|
|
4
|
+
import { FileUploader, InlineLoading } from '@carbon/react';
|
|
5
5
|
import { observer } from 'mobx-react-lite';
|
|
6
6
|
import { useCallback, useEffect, useRef, useState } from 'react';
|
|
7
7
|
import { C4ClusterDetailsConnectorSecrets } from '../../../components/c4-cluster-details-connector-secrets/c4-cluster-details-connector-secrets.js';
|
|
8
8
|
import { C4InlineNotification } from '../../../components/c4-inline-notification/c4-inline-notification.js';
|
|
9
9
|
import { useC4ConsoleData } from '../../../runtime/c4-console-data-context.js';
|
|
10
10
|
import { useC4ConsoleRuntime } from '../../../runtime/c4-console-runtime-context.js';
|
|
11
|
-
import { CodeSnippet, Form, Link, Modal, Stack, TextArea, TextInput, } from '../../../ui/index.js';
|
|
11
|
+
import { CodeSnippet, Form, Link, Modal, PasswordInput, Stack, TextArea, TextInput, } from '../../../ui/index.js';
|
|
12
12
|
import { useSelectFamily } from '../../../ui/families.js';
|
|
13
13
|
import { safeTranslate, scopedTranslate } from '../../../utils/safe-translate.js';
|
|
14
14
|
function renderInlineStrong(value) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camunda/ccma-saas-frontend",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.3",
|
|
4
4
|
"description": "Camunda Composite Components",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/camunda/camunda-cloud-management-apps/issues"
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@playwright/test": "1.63.0",
|
|
48
48
|
"@camunda/c4-identity": "0.0.45",
|
|
49
49
|
"@camunda/camunda-composite-components": "0.25.4",
|
|
50
|
-
"@camunda/design-system": "0.
|
|
50
|
+
"@camunda/design-system": "0.54.0",
|
|
51
51
|
"@carbon/charts": "1.27.18",
|
|
52
52
|
"@carbon/charts-react": "1.27.18",
|
|
53
53
|
"@carbon/layout": "11.58.0",
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
"eslint-plugin-react-hooks": "7.1.1",
|
|
72
72
|
"eslint-plugin-storybook": "10.6.0",
|
|
73
73
|
"jsdom": "30.0.1",
|
|
74
|
-
"lucide-react": "1.
|
|
74
|
+
"lucide-react": "1.42.0",
|
|
75
75
|
"react": "19.2.8",
|
|
76
76
|
"react-dom": "19.2.8",
|
|
77
77
|
"react-is": "19.2.8",
|