@cloudoperators/juno-ui-components 2.37.0 → 2.38.1
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/build/index.js +71 -59
- package/build/src/components/AppShell/AppShell.component.d.ts +6 -6
- package/build/src/components/AppShell/AppShell.component.d.ts.map +1 -1
- package/build/src/components/Checkbox/Checkbox.component.d.ts +5 -5
- package/build/src/components/Checkbox/Checkbox.component.d.ts.map +1 -1
- package/build/src/components/CheckboxGroup/CheckboxGroup.component.d.ts +7 -8
- package/build/src/components/CheckboxGroup/CheckboxGroup.component.d.ts.map +1 -1
- package/build/src/components/CheckboxGroup/CheckboxGroup.stories.d.ts +7 -0
- package/build/src/components/CheckboxGroup/CheckboxGroup.stories.d.ts.map +1 -1
- package/build/src/components/ComboBox/ComboBox.component.d.ts +7 -8
- package/build/src/components/ComboBox/ComboBox.component.d.ts.map +1 -1
- package/build/src/components/ContentContainer/ContentContainer.component.d.ts +3 -3
- package/build/src/components/ContentContainer/ContentContainer.component.d.ts.map +1 -1
- package/build/src/components/ContentHeading/ContentHeading.component.d.ts +3 -3
- package/build/src/components/ContentHeading/ContentHeading.component.d.ts.map +1 -1
- package/build/src/components/DataGridToolbar/DataGridToolbar.component.d.ts +1 -1
- package/build/src/components/DataGridToolbar/DataGridToolbar.component.d.ts.map +1 -1
- package/build/src/components/DataGridToolbar/DataGridToolbar.stories.d.ts +5 -2
- package/build/src/components/DataGridToolbar/DataGridToolbar.stories.d.ts.map +1 -1
- package/build/src/components/DateTimePicker/DateTimePicker.component.d.ts +21 -40
- package/build/src/components/DateTimePicker/DateTimePicker.component.d.ts.map +1 -1
- package/build/src/components/FormHint/FormHint.component.d.ts +1 -1
- package/build/src/components/FormHint/FormHint.component.d.ts.map +1 -1
- package/build/src/components/Icon/Icon.component.d.ts +1 -1
- package/build/src/components/Icon/Icon.component.d.ts.map +1 -1
- package/build/src/components/JsonViewer/JsonViewer.component.d.ts +2 -0
- package/build/src/components/JsonViewer/JsonViewer.component.d.ts.map +1 -1
- package/build/src/components/MainTabs/MainTabs.component.d.ts +2 -6
- package/build/src/components/MainTabs/MainTabs.component.d.ts.map +1 -1
- package/build/src/components/MainTabs/MainTabs.stories.d.ts +5 -0
- package/build/src/components/MainTabs/MainTabs.stories.d.ts.map +1 -1
- package/build/src/components/Modal/Modal.component.d.ts +3 -4
- package/build/src/components/Modal/Modal.component.d.ts.map +1 -1
- package/build/src/components/Modal/Modal.stories.d.ts +5 -0
- package/build/src/components/Modal/Modal.stories.d.ts.map +1 -1
- package/build/src/components/ModalFooter/ModalFooter.component.d.ts +2 -2
- package/build/src/components/NativeSelect/NativeSelect.component.d.ts +3 -3
- package/build/src/components/NativeSelect/NativeSelect.component.d.ts.map +1 -1
- package/build/src/components/Navigation/Navigation.component.d.ts +7 -9
- package/build/src/components/Navigation/Navigation.component.d.ts.map +1 -1
- package/build/src/components/Navigation/Navigation.stories.d.ts +6 -4
- package/build/src/components/Navigation/Navigation.stories.d.ts.map +1 -1
- package/build/src/components/NavigationItem/NavigationItem.component.d.ts +2 -2
- package/build/src/components/NavigationItem/NavigationItem.component.d.ts.map +1 -1
- package/build/src/components/PageHeader/PageHeader.component.d.ts +5 -5
- package/build/src/components/PageHeader/PageHeader.component.d.ts.map +1 -1
- package/build/src/components/PageHeader/PageHeader.stories.d.ts.map +1 -1
- package/build/src/components/Pagination/Pagination.stories.d.ts.map +1 -1
- package/build/src/components/Panel/Panel.component.d.ts +2 -2
- package/build/src/components/Panel/Panel.component.d.ts.map +1 -1
- package/build/src/components/PanelBody/PanelBody.component.d.ts +2 -2
- package/build/src/components/PanelBody/PanelBody.component.d.ts.map +1 -1
- package/build/src/components/Pill/Pill.component.d.ts +2 -2
- package/build/src/components/Pill/Pill.component.d.ts.map +1 -1
- package/build/src/components/Pill/Pill.stories.d.ts +16 -1
- package/build/src/components/Pill/Pill.stories.d.ts.map +1 -1
- package/build/src/components/PopupMenu/PopupMenu.component.d.ts +8 -8
- package/build/src/components/PopupMenu/PopupMenu.component.d.ts.map +1 -1
- package/build/src/components/PopupMenu/PopupMenu.stories.d.ts.map +1 -1
- package/build/src/components/Radio/Radio.component.d.ts +5 -7
- package/build/src/components/Radio/Radio.component.d.ts.map +1 -1
- package/build/src/components/RadioGroup/RadioGroup.component.d.ts +6 -6
- package/build/src/components/RadioGroup/RadioGroup.component.d.ts.map +1 -1
- package/build/src/components/RadioGroup/RadioGroup.stories.d.ts +7 -0
- package/build/src/components/RadioGroup/RadioGroup.stories.d.ts.map +1 -1
- package/build/src/components/SearchInput/SearchInput.component.d.ts +6 -6
- package/build/src/components/SearchInput/SearchInput.component.d.ts.map +1 -1
- package/build/src/components/SecretText/SecretText.component.d.ts +6 -8
- package/build/src/components/SecretText/SecretText.component.d.ts.map +1 -1
- package/build/src/components/Select/Select.component.d.ts +8 -8
- package/build/src/components/Select/Select.component.d.ts.map +1 -1
- package/build/src/components/SelectOption/SelectOption.stories.d.ts +8 -1
- package/build/src/components/SelectOption/SelectOption.stories.d.ts.map +1 -1
- package/build/src/components/SideNavigation/SideNavigation.component.d.ts +4 -6
- package/build/src/components/SideNavigation/SideNavigation.component.d.ts.map +1 -1
- package/build/src/components/SideNavigationItem/SideNavigationItem.component.d.ts +1 -1
- package/build/src/components/StyleProvider/StyleProvider.component.d.ts +2 -2
- package/build/src/components/StyleProvider/StyleProvider.component.d.ts.map +1 -1
- package/build/src/components/Switch/Switch.component.d.ts +4 -4
- package/build/src/components/Switch/Switch.component.d.ts.map +1 -1
- package/build/src/components/TabList/TabList.component.d.ts +1 -2
- package/build/src/components/TabList/TabList.component.d.ts.map +1 -1
- package/build/src/components/TabList/TabList.stories.d.ts +6 -1
- package/build/src/components/TabList/TabList.stories.d.ts.map +1 -1
- package/build/src/components/TabNavigation/TabNavigation.component.d.ts +4 -6
- package/build/src/components/TabNavigation/TabNavigation.component.d.ts.map +1 -1
- package/build/src/components/TabNavigationItem/TabNavigationItem.component.d.ts +1 -1
- package/build/src/components/Tabs/Tabs.component.d.ts +2 -6
- package/build/src/components/Tabs/Tabs.component.d.ts.map +1 -1
- package/build/src/components/Tabs/Tabs.stories.d.ts +5 -0
- package/build/src/components/Tabs/Tabs.stories.d.ts.map +1 -1
- package/build/src/components/TextInput/TextInput.component.d.ts +6 -6
- package/build/src/components/TextInput/TextInput.component.d.ts.map +1 -1
- package/build/src/components/Textarea/Textarea.component.d.ts +6 -6
- package/build/src/components/Textarea/Textarea.component.d.ts.map +1 -1
- package/build/src/components/ThemeToggle/ThemeToggle.component.d.ts +1 -1
- package/build/src/components/ThemeToggle/ThemeToggle.component.d.ts.map +1 -1
- package/build/src/components/Toast/Toast.component.d.ts +1 -1
- package/build/src/components/Toast/Toast.component.d.ts.map +1 -1
- package/build/src/components/TopNavigation/TopNavigation.component.d.ts +4 -6
- package/build/src/components/TopNavigation/TopNavigation.component.d.ts.map +1 -1
- package/build/src/components/TopNavigationItem/TopNavigationItem.component.d.ts +1 -1
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
export interface TabNavigationContextType {
|
|
3
3
|
tabStyle: TabStyle;
|
|
4
4
|
}
|
|
@@ -6,22 +6,20 @@ export declare const TabNavigationContext: React.Context<TabNavigationContextTyp
|
|
|
6
6
|
/** A Tab Navigation parent component. Use to wrap `<TabNavigationItem>` elements inside. For tabs with corresponding tab panels, use `<Tabs>` instead. */
|
|
7
7
|
export declare const TabNavigation: React.FC<TabNavigationProps>;
|
|
8
8
|
export type TabStyle = "main" | "content";
|
|
9
|
-
type ActiveItemChangeHandler = (value: React.ReactNode) => void;
|
|
10
9
|
export interface TabNavigationProps extends React.HTMLAttributes<HTMLElement> {
|
|
11
10
|
/** The label of the selected tab. The `activeItem` prop set on the parent will override / take precedence over any `active` prop that may be set on a child. */
|
|
12
|
-
activeItem?:
|
|
11
|
+
activeItem?: ReactNode;
|
|
13
12
|
/** The aria-label of the navigation. Specify when there are more than one elements with an implicit or explicit `role="navigation"` on a page/view. */
|
|
14
13
|
ariaLabel?: string;
|
|
15
14
|
/** The child `<TabNavigationItem>` elements to render. */
|
|
16
|
-
children?:
|
|
15
|
+
children?: ReactNode;
|
|
17
16
|
/** A custom className to be rendered on the tab navigation */
|
|
18
17
|
className?: string;
|
|
19
18
|
/** Whether the tab navigation is disabled. If set to `true`, all child tab navigation item elements will be disabled. */
|
|
20
19
|
disabled?: boolean;
|
|
21
20
|
/** A handler to execute when the active tab changes */
|
|
22
|
-
onActiveItemChange?:
|
|
21
|
+
onActiveItemChange?: (activeItem: ReactNode) => void;
|
|
23
22
|
/** The stylistic variant of the Tabs: Use `main` as the first child in an `Appshell` (when manually scaffolding, as first child of `juno-content-container`). For tabs inside the page content use "content". `<TabNavigation tabStyle="main">` will have no darkened border on the bottom of inactive tabs, `tabStyle="content"` will.*/
|
|
24
23
|
tabStyle?: TabStyle;
|
|
25
24
|
}
|
|
26
|
-
export {};
|
|
27
25
|
//# sourceMappingURL=TabNavigation.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabNavigation.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TabNavigation/TabNavigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"TabNavigation.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TabNavigation/TabNavigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAiB,SAAS,EAAE,MAAM,OAAO,CAAA;AAQvD,MAAM,WAAW,wBAAwB;IACvC,QAAQ,EAAE,QAAQ,CAAA;CACnB;AAED,eAAO,MAAM,oBAAoB,qDAAiE,CAAA;AAElG,0JAA0J;AAC1J,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAkCtD,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAA;AAEzC,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC3E,gKAAgK;IAChK,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,uJAAuJ;IACvJ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,0DAA0D;IAC1D,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yHAAyH;IACzH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uDAAuD;IAEvD,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,SAAS,KAAK,IAAI,CAAA;IACpD,0UAA0U;IAC1U,QAAQ,CAAC,EAAE,QAAQ,CAAA;CACpB"}
|
|
@@ -19,7 +19,7 @@ export interface TabNavigationItemProps extends React.HTMLAttributes<HTMLElement
|
|
|
19
19
|
/** The label of the tab navigation item. Must be unique within any given `<TabNavigation>` group. */
|
|
20
20
|
label?: string;
|
|
21
21
|
/** Pass a custom handler to execute when the tab is clicked */
|
|
22
|
-
onClick?: React.MouseEventHandler<
|
|
22
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
23
23
|
/** An optional technical identifier fort the tab. If not passed, the label will be used to identify the tab. NOTE: If value is passed, the value of the active tab MUST be used when setting the activeItem prop on the parent TabNavigation.*/
|
|
24
24
|
value?: string;
|
|
25
25
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TabsProps as ReactTabsProps } from 'react-tabs';
|
|
3
|
-
import { TabListProps } from '../TabList/TabList.component';
|
|
4
|
-
import { TabPanelProps } from '../TabPanel/TabPanel.component';
|
|
5
3
|
export interface TabsContextType {
|
|
6
4
|
variant?: TabsVariant;
|
|
7
5
|
}
|
|
@@ -17,17 +15,15 @@ export declare const Tabs: {
|
|
|
17
15
|
tabsRole: string;
|
|
18
16
|
};
|
|
19
17
|
export type TabsVariant = "main" | "content" | "codeblocks";
|
|
20
|
-
export type OnSelectHander = (value: number) => void;
|
|
21
|
-
export type TabElement = React.ReactElement<TabListProps> | React.ReactElement<TabPanelProps> | TabElement[] | null | undefined;
|
|
22
18
|
export interface TabsProps extends ReactTabsProps {
|
|
23
19
|
/** All the child elements of the Tabs: Tab(s) inside a TabList and TabPanel(s) */
|
|
24
|
-
children?:
|
|
20
|
+
children?: React.ReactNode;
|
|
25
21
|
/** The index of the Tab to be selected by default in "Uncontrolled Mode" (default) where Tabs handle their state internally. Do not use in "Controlled Mode".*/
|
|
26
22
|
defaultIndex?: number;
|
|
27
23
|
/** The index of the Tab to be selected by default. This enables "Controlled Mode" where the developer takes over control of the Tabs state and behaviour. Requires onSelect to be set.*/
|
|
28
24
|
selectedIndex?: number;
|
|
29
25
|
/** Handler required in "Controlled Mode" */
|
|
30
|
-
onSelect?:
|
|
26
|
+
onSelect?: (value: number) => void;
|
|
31
27
|
/** Switch on Main Tab styles and context if needed */
|
|
32
28
|
variant?: TabsVariant;
|
|
33
29
|
/** Add a custom className to the whole Tabs construct */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,OAAO,EAAqB,SAAS,IAAI,cAAc,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"Tabs.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAClD,OAAO,EAAqB,SAAS,IAAI,cAAc,EAAE,MAAM,YAAY,CAAA;AAE3E,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,WAAW,CAAA;CACtB;AAGD,eAAO,MAAM,cAAc,uBAAsC,CAAA;AAEjE;;;;;EAKE;AAEF,eAAO,MAAM,IAAI;wFAQd,SAAS;;CA6BX,CAAA;AAID,MAAM,MAAM,WAAW,GAAG,MAAM,GAAG,SAAS,GAAG,YAAY,CAAA;AAE3D,MAAM,WAAW,SAAU,SAAQ,cAAc;IAC/C,kFAAkF;IAClF,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,gKAAgK;IAChK,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,yLAAyL;IACzL,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,4CAA4C;IAE5C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;IAClC,sDAAsD;IACtD,OAAO,CAAC,EAAE,WAAW,CAAA;IACrB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,EAAO,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA
|
|
1
|
+
{"version":3,"file":"Tabs.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/Tabs/Tabs.stories.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAA;AAElD,OAAO,EAAO,QAAQ,EAAE,MAAM,sBAAsB,CAAA;AAGpD,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE9D,wBA2BC;AASD,UAAU,aAAa;IACrB,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAA;IACpE,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAA;CACpF;AAuBD,KAAK,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAA;AAE9C,UAAU,uBAAuB;IAC/B,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,EAAE,eAAe,CAAA;IAC1B,IAAI,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,QAAQ,CAAC,EAAE,CAAA;IACpE,SAAS,CAAC,EAAE,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,KAAK,CAAC,YAAY,CAAC,aAAa,CAAC,EAAE,CAAA;CACpF;AAED,eAAO,MAAM,OAAO;2CA1C4B,aAAa;;;;;CAqD5D,CAAA;AAED,eAAO,MAAM,aAAa;2CAvDsB,aAAa;;;;;CA4E5D,CAAA;AAED,eAAO,MAAM,cAAc;oEAlEwD,uBAAuB;;;;;;;;CAgFzG,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
A controlled Text Input.
|
|
4
4
|
Also covers email, telephone, password, url derivates.
|
|
@@ -34,19 +34,19 @@ export interface TextInputProps extends React.InputHTMLAttributes<HTMLInputEleme
|
|
|
34
34
|
/** Pass a change handler */
|
|
35
35
|
onChange?: React.ChangeEventHandler<HTMLInputElement>;
|
|
36
36
|
/** Pass a focus handler */
|
|
37
|
-
onFocus?: React.FocusEventHandler<
|
|
37
|
+
onFocus?: React.FocusEventHandler<HTMLInputElement>;
|
|
38
38
|
/** Pass a blur handler */
|
|
39
|
-
onBlur?: React.FocusEventHandler<
|
|
39
|
+
onBlur?: React.FocusEventHandler<HTMLInputElement>;
|
|
40
40
|
/** Specify the type attribute. Defaults to an input with no type attribute, which in turn will be treateas as type="text" by browsers. */
|
|
41
41
|
type?: TextInputType;
|
|
42
42
|
/** The label of the input */
|
|
43
43
|
label?: string;
|
|
44
44
|
/** A helptext to render to explain meaning and significance of the TextInput */
|
|
45
|
-
helptext?:
|
|
45
|
+
helptext?: ReactNode;
|
|
46
46
|
/** A text to render when the TextInput was successfully validated */
|
|
47
|
-
successtext?:
|
|
47
|
+
successtext?: ReactNode;
|
|
48
48
|
/** A text to render when the TextInput has an error or could not be validated */
|
|
49
|
-
errortext?:
|
|
49
|
+
errortext?: ReactNode;
|
|
50
50
|
/** The width of the text input. Either 'full' (default) or 'auto'. */
|
|
51
51
|
width?: TextInputWidth;
|
|
52
52
|
/** Pass a custom className to the wrapping element. This can be useful if you must add styling to the outermost wrapping element of this component, e.g. for positioning. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TextInput/TextInput.component.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"TextInput.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TextInput/TextInput.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAA+C,SAAS,EAAE,MAAM,OAAO,CAAA;AAIrF,OAAO,kBAAkB,CAAA;AAoEzB;;;EAGE;AACF,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAiK9C,CAAA;AAED,KAAK,aAAa,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,CAAA;AAC7E,KAAK,cAAc,GAAG,MAAM,GAAG,MAAM,CAAA;AAErC,MAAM,WAAW,cAAe,SAAQ,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC;IACjF,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,iBAAiB;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iCAAiC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,gBAAgB,CAAC,CAAA;IACrD,2BAA2B;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IACnD,0BAA0B;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAA;IAClD,0IAA0I;IAC1I,IAAI,CAAC,EAAE,aAAa,CAAA;IACpB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,gFAAgF;IAChF,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,qEAAqE;IACrE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,iFAAiF;IACjF,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,sEAAsE;IACtE,KAAK,CAAC,EAAE,cAAc,CAAA;IACtB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
A controlled Text Input.
|
|
4
4
|
Also covers email, telephone, password, url derivates.
|
|
@@ -35,15 +35,15 @@ export interface TextareaProps extends React.HTMLProps<HTMLTextAreaElement> {
|
|
|
35
35
|
/** Pass a change handler */
|
|
36
36
|
onChange?: React.ChangeEventHandler<HTMLTextAreaElement>;
|
|
37
37
|
/** Pass a focus handler */
|
|
38
|
-
onFocus?: React.
|
|
38
|
+
onFocus?: React.FocusEventHandler<HTMLTextAreaElement>;
|
|
39
39
|
/** Pass a blur handler */
|
|
40
|
-
onBlur?: React.
|
|
40
|
+
onBlur?: React.FocusEventHandler<HTMLTextAreaElement>;
|
|
41
41
|
/** A helptext to render to explain meaning and significance of the Textarea */
|
|
42
|
-
helptext?:
|
|
42
|
+
helptext?: ReactNode;
|
|
43
43
|
/** A text to render when the Textarea was successfully validated */
|
|
44
|
-
successtext?:
|
|
44
|
+
successtext?: ReactNode;
|
|
45
45
|
/** A text to render when the Textarea has an error or could not be validated */
|
|
46
|
-
errortext?:
|
|
46
|
+
errortext?: ReactNode;
|
|
47
47
|
/** The width of the textarea. Either 'full' (default) or 'auto'. */
|
|
48
48
|
width?: WidthType;
|
|
49
49
|
/** Pass a custom className to the wrapping element. This can be useful if you must add styling to the outermost wrapping element of this component, e.g. for positioning. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Textarea/Textarea.component.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"Textarea.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Textarea/Textarea.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAA+C,SAAS,EAAE,MAAM,OAAO,CAAA;AA0ErF;;;EAGE;AACF,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CA+J5C,CAAA;AAED,KAAK,SAAS,GAAG,MAAM,GAAG,MAAM,CAAA;AAEhC,MAAM,WAAW,aAAc,SAAQ,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC;IACzE,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,iBAAiB;IACjB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,oCAAoC;IACpC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,mCAAmC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iCAAiC;IACjC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,kEAAkE;IAClE,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,4BAA4B;IAC5B,QAAQ,CAAC,EAAE,KAAK,CAAC,kBAAkB,CAAC,mBAAmB,CAAC,CAAA;IACxD,2BAA2B;IAC3B,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAA;IACtD,0BAA0B;IAC1B,MAAM,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAAA;IACrD,+EAA+E;IAC/E,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,oEAAoE;IACpE,WAAW,CAAC,EAAE,SAAS,CAAA;IACvB,gFAAgF;IAChF,SAAS,CAAC,EAAE,SAAS,CAAA;IACrB,oEAAoE;IACpE,KAAK,CAAC,EAAE,SAAS,CAAA;IACjB,6KAA6K;IAC7K,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAC1B"}
|
|
@@ -19,7 +19,7 @@ export interface ThemeToggleProps {
|
|
|
19
19
|
/**
|
|
20
20
|
* Callback function that is called when the theme is toggled.
|
|
21
21
|
*/
|
|
22
|
-
onToggleTheme?: (
|
|
22
|
+
onToggleTheme?: (newTheme: string) => void;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* ThemeToggle is a button component that toggles between Light and Dark UI Themes.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ThemeToggle.component.d.ts","sourceRoot":"","sources":["../../../../src/components/ThemeToggle/ThemeToggle.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,oBAAoB,CAAA;AAoB3B,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IAEH,aAAa,CAAC,EAAE,CAAC,
|
|
1
|
+
{"version":3,"file":"ThemeToggle.component.d.ts","sourceRoot":"","sources":["../../../../src/components/ThemeToggle/ThemeToggle.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAKzB,OAAO,oBAAoB,CAAA;AAoB3B,MAAM,WAAW,gBAAgB;IAC/B;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;IACX;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAA;IACb;;OAEG;IAEH,aAAa,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAA;CAC3C;AAED;;;;GAIG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAsClD,CAAA"}
|
|
@@ -12,7 +12,7 @@ export interface ToastProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
12
12
|
/** Optional. Timeout in miliseconds after which the message is automatically dismissed. By default 10000 (10s).*/
|
|
13
13
|
autoDismissTimeout?: number;
|
|
14
14
|
/** Optional. Pass a handler that will be called when the message is dismissed */
|
|
15
|
-
onDismiss?: () =>
|
|
15
|
+
onDismiss?: () => void;
|
|
16
16
|
/** Pass an optional className */
|
|
17
17
|
className?: string;
|
|
18
18
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Toast.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/Toast.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAA;AA0BlD,KAAK,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AACnE,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE,iCAAiC;IACjC,OAAO,CAAC,EAAE,QAAQ,CAAA;IAClB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oJAAoJ;IACpJ,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kHAAkH;IAClH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Toast.component.d.ts","sourceRoot":"","sources":["../../../../src/components/Toast/Toast.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAA8B,MAAM,OAAO,CAAA;AA0BlD,KAAK,QAAQ,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAAA;AACnE,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC;IACtE,iCAAiC;IACjC,OAAO,CAAC,EAAE,QAAQ,CAAA;IAClB,kDAAkD;IAClD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAA;IAC1B,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,oJAAoJ;IACpJ,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,kHAAkH;IAClH,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,iFAAiF;IACjF,SAAS,CAAC,EAAE,MAAM,IAAI,CAAA;IACtB,iCAAiC;IACjC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED;;EAEE;AAEF,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAgDtC,CAAA"}
|
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
1
|
+
import { default as React, ReactNode } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
A generic horizontal top level navigation component. To be placed below the application header but above application content.
|
|
4
4
|
Place `TopNavigationItem` elements as children.
|
|
5
5
|
*/
|
|
6
6
|
export declare const TopNavigation: React.FC<TopNavigationProps>;
|
|
7
|
-
type ActiveItemChangeHandler = (value: React.ReactNode) => void;
|
|
8
7
|
export interface TopNavigationProps extends React.HTMLAttributes<HTMLElement> {
|
|
9
8
|
/** The active navigation item by label */
|
|
10
|
-
activeItem?:
|
|
9
|
+
activeItem?: ReactNode;
|
|
11
10
|
/** The aria-label of the navigation. Specify when there are more than one elements with an implicit or explicit `role="navigation"` on a page/view. */
|
|
12
11
|
ariaLabel?: string;
|
|
13
12
|
/** The children of the Navigation. Typically these should be TopNavigationItem(s) */
|
|
14
|
-
children?:
|
|
13
|
+
children?: ReactNode;
|
|
15
14
|
/** Pass a custom classname. */
|
|
16
15
|
className?: string;
|
|
17
16
|
/** Whether the navigation is disabled */
|
|
18
17
|
disabled?: boolean;
|
|
19
18
|
/** Handler to execute when the active item changes */
|
|
20
|
-
onActiveItemChange?:
|
|
19
|
+
onActiveItemChange?: (activeItem: ReactNode) => void;
|
|
21
20
|
}
|
|
22
|
-
export {};
|
|
23
21
|
//# sourceMappingURL=TopNavigation.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TopNavigation.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TopNavigation/TopNavigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"TopNavigation.component.d.ts","sourceRoot":"","sources":["../../../../src/components/TopNavigation/TopNavigation.component.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAUxC;;;EAGE;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAqBtD,CAAA;AAED,MAAM,WAAW,kBAAmB,SAAQ,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC;IAC3E,0CAA0C;IAC1C,UAAU,CAAC,EAAE,SAAS,CAAA;IACtB,uJAAuJ;IACvJ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qFAAqF;IACrF,QAAQ,CAAC,EAAE,SAAS,CAAA;IACpB,+BAA+B;IAC/B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yCAAyC;IACzC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,sDAAsD;IAEtD,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,SAAS,KAAK,IAAI,CAAA;CACrD"}
|
|
@@ -22,7 +22,7 @@ export interface TopNavigationItemProps extends React.HTMLAttributes<HTMLElement
|
|
|
22
22
|
/** The link the item should point to. Will render the item as an anchor if passed */
|
|
23
23
|
href?: string;
|
|
24
24
|
/** A handler to execute once the navigation item is clicked. Will render the item as a button element if passed */
|
|
25
|
-
onClick?: React.MouseEventHandler<
|
|
25
|
+
onClick?: React.MouseEventHandler<HTMLElement>;
|
|
26
26
|
/** An optional technical identifier fort the tab. If not passed, the label will be used to identify the tab. NOTE: If value is passed, the value of the active tab MUST be used when setting the activeItem prop on the parent TabNavigation.*/
|
|
27
27
|
value?: string;
|
|
28
28
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"source": "src/index.js",
|
|
5
5
|
"style": "build/lib/variables.css",
|
|
6
|
-
"version": "2.
|
|
6
|
+
"version": "2.38.1",
|
|
7
7
|
"types": "build/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
"./index": "./build/index.js",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"repository": "https://github.com/cloudoperators/juno/tree/main/packages/juno-ui-components",
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"engines": {
|
|
31
|
-
"node": ">=20.0.0
|
|
32
|
-
"npm": ">=10.0.0
|
|
31
|
+
"node": ">=20.0.0",
|
|
32
|
+
"npm": ">=10.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@cloudoperators/juno-config": "*",
|
|
@@ -87,7 +87,7 @@
|
|
|
87
87
|
"vite-plugin-glob": "0.3.2",
|
|
88
88
|
"vite-plugin-svgr": "4.3.0",
|
|
89
89
|
"vite-tsconfig-paths": "5.1.4",
|
|
90
|
-
"vitest": "
|
|
90
|
+
"vitest": "^3.0.7"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
93
|
"prop-types": "15.8.1",
|