pixel-react 1.4.3 → 1.4.5
Sign up to get free protection for your applications and to get access to all the features.
- package/.yarn/install-state.gz +0 -0
- package/lib/StyleGuide/ColorPalette/ColorPalette.stories.d.ts +6 -0
- package/lib/StyleGuide/Typography/Typography.stories.d.ts +6 -0
- package/lib/components/Accordion/Accordion.stories.d.ts +6 -0
- package/lib/components/AddButton/AddButton.d.ts +5 -0
- package/lib/components/AddButton/AddButton.stories.d.ts +6 -0
- package/lib/components/AddButton/index.d.ts +1 -0
- package/lib/components/AddButton/types.d.ts +4 -0
- package/lib/components/AddResourceButton/AddButton.stories.d.ts +8 -0
- package/lib/components/AddResourceButton/type.d.ts +1 -1
- package/lib/components/AllProjectsDropdown/AllProjectsDropdown.stories.d.ts +7 -0
- package/lib/components/AppHeader/AppHeader.stories.d.ts +7 -0
- package/lib/components/AttachImage/AttachImage.stories.d.ts +7 -0
- package/lib/components/AttachmentButton/AttachmentButton.stories.d.ts +9 -0
- package/lib/components/Avatar/Avatar.stories.d.ts +10 -0
- package/lib/components/Button/Button.stories.d.ts +13 -0
- package/lib/components/Charts/BarChart/BarChart.stories.d.ts +6 -0
- package/lib/components/Charts/DashboardDonutChart/DashboardDonutChart.stories.d.ts +7 -0
- package/lib/components/Charts/DonutChart/DonutChart.stories.d.ts +6 -0
- package/lib/components/Charts/IconRadialChart/IconRadialChart.stories.d.ts +8 -0
- package/lib/components/Charts/LineChart/LineChart.stories.d.ts +7 -0
- package/lib/components/Charts/MultiRadialChart/MultiRadialChart.stories.d.ts +8 -0
- package/lib/components/Charts/PieChart/PieChart.stories.d.ts +7 -0
- package/lib/components/Charts/RadialChart/RadialChart.stories.d.ts +6 -0
- package/lib/components/Checkbox/Checkbox.stories.d.ts +8 -0
- package/lib/components/Chip/Chip.stories.d.ts +14 -0
- package/lib/components/ConnectingBranch/ConnectingBranch.stories.d.ts +6 -0
- package/lib/components/DatePicker/DatePicker.stories.d.ts +9 -0
- package/lib/components/DragAndDrop/DragAndDrop.stories.d.ts +6 -0
- package/lib/components/Drawer/Drawer.stories.d.ts +12 -0
- package/lib/components/Drawer/Types.d.ts +4 -0
- package/lib/components/EditTextField/EditTextField.stories.d.ts +10 -0
- package/lib/components/Editor/Editor.d.ts +1 -2
- package/lib/components/Editor/Editor.stories.d.ts +6 -0
- package/lib/components/Editor/types.d.ts +1 -5
- package/lib/components/Excel/ExcelContextMenu/ExcelContextMenu.d.ts +13 -0
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.d.ts +0 -13
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/actions.d.ts +29 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/engine.d.ts +3 -9
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/formula.d.ts +2 -10
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/engine/point-graph.d.ts +0 -1
- package/lib/components/Excel/ExcelFile/ExcelFileComponents/types.d.ts +27 -2
- package/lib/components/Excel/ExcelFile.stories.d.ts +6 -0
- package/lib/components/ExcelFile/ChangeExcelStyles.d.ts +14 -0
- package/lib/components/ExcelFile/ColorBarselector/ColorBarSelector.d.ts +8 -0
- package/lib/components/ExcelFile/ContextMenu/ContextMenu.d.ts +4 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/ActiveCell.d.ts +7 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Cell.d.ts +4 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/ColumnIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Copied.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/CornerIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/DataEditor.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/DataViewer.d.ts +8 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/FloatingRect.d.ts +10 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/HeaderRow.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Row.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/RowIndicator.d.ts +5 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Selected.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Spreadsheet.d.ts +81 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/Table.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/actions.d.ts +130 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/areModelsEqual.d.ts +1 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/context.d.ts +8 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/engine.d.ts +22 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/formula.d.ts +17 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/index.d.ts +2 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-graph.d.ts +21 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-hash.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/engine/point-set.d.ts +24 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/index.d.ts +13 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/matrix.d.ts +67 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/point-range.d.ts +22 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/point.d.ts +11 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/reducer.d.ts +27 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/selection.d.ts +95 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/types.d.ts +215 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/use-dispatch.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/use-selector.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile/Excel/util.d.ts +45 -0
- package/lib/components/ExcelFile/ExcelFile/ExcelFile.d.ts +3 -0
- package/lib/components/ExcelFile/ExcelFile.stories.d.ts +6 -0
- package/lib/components/ExcelFile/ExcelSheetBar/ExcelSheetBar.d.ts +15 -0
- package/lib/components/ExcelFile/ExcelToolBar/ExcelToolBar.d.ts +3 -0
- package/lib/components/ExcelFile/ImportExcelStyles.d.ts +24 -0
- package/lib/components/ExcelFile/Types.d.ts +176 -0
- package/lib/components/ExcelFile/index.d.ts +1 -0
- package/lib/components/ExpandableMenu/ExpandableMenu.stories.d.ts +7 -0
- package/lib/components/FF_Captcha/captcha.stories.d.ts +8 -0
- package/lib/components/FileDropzone/FileDropzone.stories.d.ts +8 -0
- package/lib/components/Form/Form.stories.d.ts +7 -0
- package/lib/components/Form/Forms.d.ts +4 -2
- package/lib/components/GridLayout/GridLayout.stories.d.ts +8 -0
- package/lib/components/HighlightText/HighlightText.stories.d.ts +6 -0
- package/lib/components/Icon/Icon.stories.d.ts +8 -0
- package/lib/components/IconButton/IconButton.stories.d.ts +7 -0
- package/lib/components/IconRadioGroup/IconRadioGroup.stories.d.ts +7 -0
- package/lib/components/Input/Input.stories.d.ts +9 -0
- package/lib/components/InputWithDropdown/InputWithDropdown.d.ts +1 -1
- package/lib/components/InputWithDropdown/InputWithDropdown.stories.d.ts +9 -0
- package/lib/components/LabelEditTextField/LabelEditTextField.stories.d.ts +13 -0
- package/lib/components/LazyLoad/LazyLoad.stories.d.ts +6 -0
- package/lib/components/MachineInputField/MachineInputField.stories.d.ts +6 -0
- package/lib/components/MenuOption/MenuOption.d.ts +1 -1
- package/lib/components/MenuOption/MenuOption.stories.d.ts +16 -0
- package/lib/components/MenuOption/types.d.ts +49 -15
- package/lib/components/MiniModal/MiniModal.stories.d.ts +10 -0
- package/lib/components/Modal/Modal.stories.d.ts +7 -0
- package/lib/components/ModulesChip/ModuleChip.stories.d.ts +6 -0
- package/lib/components/MultiSelect/MultiSelect.d.ts +1 -1
- package/lib/components/MultiSelect/MultiSelect.stories.d.ts +12 -0
- package/lib/components/MultiSelect/MultiSelectTypes.d.ts +4 -5
- package/lib/components/MultiSelect/dropdownTypes.d.ts +2 -0
- package/lib/components/NLPInput/NlpInput.stories.d.ts +7 -0
- package/lib/components/Paper/Paper.stories.d.ts +11 -0
- package/lib/components/RadioButton/RadioButton.d.ts +1 -0
- package/lib/components/RadioButton/RadioButton.stories.d.ts +10 -0
- package/lib/components/RadioButton/radioButtonTypes.d.ts +3 -1
- package/lib/components/RadioGroup/RadioGroup.stories.d.ts +9 -0
- package/lib/components/Search/Search.stories.d.ts +6 -0
- package/lib/components/Select/Select.stories.d.ts +14 -0
- package/lib/components/Select/components/Dropdown/Dropdown.d.ts +4 -0
- package/lib/components/Select/components/Dropdown/dropdownTypes.d.ts +17 -0
- package/lib/components/Select/components/types.d.ts +4 -2
- package/lib/components/SequentialConnectingBranch/SequentialConnectingBranch.stories.d.ts +6 -0
- package/lib/components/StateDropdown/StateDropdown.stories.d.ts +10 -0
- package/lib/components/StatusButton/StatusButton.stories.d.ts +14 -0
- package/lib/components/StatusCard/StatusCard.stories.d.ts +11 -0
- package/lib/components/Table/Table.d.ts +1 -1
- package/lib/components/Table/Table.stories.d.ts +13 -0
- package/lib/components/TableTree/TableTree.stories.d.ts +7 -0
- package/lib/components/Tabs/Tabs.stories.d.ts +9 -0
- package/lib/components/TextArea/Textarea.stories.d.ts +9 -0
- package/lib/components/Toast/Toast.stories.d.ts +6 -0
- package/lib/components/Toastify/Toastify.stories.d.ts +6 -0
- package/lib/components/Toggle/Toggle.stories.d.ts +12 -0
- package/lib/components/ToggleSwitch/ToggleSwitch.d.ts +10 -0
- package/lib/components/ToggleSwitch/index.d.ts +1 -0
- package/lib/components/Tooltip/Tooltip.stories.d.ts +15 -0
- package/lib/components/Typography/Typography.stories.d.ts +10 -0
- package/lib/components/VariableInput/VariableInput.stories.d.ts +6 -0
- package/lib/index.d.ts +140 -29
- package/lib/index.esm.js +15628 -5724
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +15625 -5718
- package/lib/index.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/checkEmpty/checkEmpty.stories.d.ts +6 -0
- package/lib/utils/compareArrays/compareArrays.stories.d.ts +6 -0
- package/lib/utils/compareObjects/compareObjects.stories.d.ts +6 -0
- package/lib/utils/debounce/debounce.stories.d.ts +6 -0
- package/lib/utils/ffID/ffID.stories.d.ts +6 -0
- package/lib/utils/find/findAndInsert.d.ts +7 -0
- package/lib/utils/find/findAndInsert.stories.d.ts +7 -0
- package/lib/utils/findAndInsert/findAndInsert.stories.d.ts +7 -0
- package/lib/utils/getEncryptedData/getEncryptedData.stories.d.ts +6 -0
- package/lib/utils/getExtension/getExtension.stories.d.ts +6 -0
- package/lib/utils/getSequentialPayload/getSequentialPayload.stories.d.ts +10 -0
- package/lib/utils/throttle/throttle.stories.d.ts +6 -0
- package/lib/utils/truncateText/truncateText.stories.d.ts +6 -0
- package/package.json +12 -12
- package/src/StyleGuide/ColorPalette/colorPaletteList.ts +10 -0
- package/src/assets/Themes/BaseTheme.scss +17 -23
- package/src/assets/Themes/DarkTheme.scss +25 -38
- package/src/assets/icons/apk_file_type.svg +4 -0
- package/src/assets/icons/compressed_file_type.svg +4 -0
- package/src/assets/icons/csv_file_type.svg +4 -0
- package/src/assets/icons/excel_corner_menu.svg +3 -0
- package/src/assets/icons/formula_icon.svg +3 -0
- package/src/assets/icons/gif_file_type.svg +4 -0
- package/src/assets/icons/html_file_type.svg +4 -0
- package/src/assets/icons/ipk_file_type.svg +4 -0
- package/src/assets/icons/jpg_file_type.svg +4 -0
- package/src/assets/icons/json_file_type.svg +4 -0
- package/src/assets/icons/pdf_file_type.svg +4 -0
- package/src/assets/icons/png_file_type.svg +4 -0
- package/src/assets/icons/quick_run_setting_icon.svg +5 -0
- package/src/assets/icons/run_automation_scripts_icon.svg +33 -0
- package/src/assets/icons/run_manual_testcase_icon.svg +4 -0
- package/src/assets/icons/search.svg +2 -2
- package/src/assets/icons/txt_file_type.svg +4 -0
- package/src/assets/icons/xls_file_type.svg +4 -0
- package/src/assets/icons/xlsx_file_type.svg +4 -0
- package/src/assets/icons/xml_file_type.svg +4 -0
- package/src/components/AddResourceButton/AddButton.tsx +7 -7
- package/src/components/AddResourceButton/type.ts +1 -1
- package/src/components/AttachmentButton/AttachmentButton.scss +1 -1
- package/src/components/AttachmentButton/AttachmentButton.stories.tsx +1 -0
- package/src/components/Button/Button.scss +22 -20
- package/src/components/Button/Button.tsx +8 -1
- package/src/components/Drawer/Drawer.scss +4 -3
- package/src/components/Drawer/Drawer.tsx +14 -18
- package/src/components/Drawer/Types.ts +4 -0
- package/src/components/Editor/Editor.tsx +224 -193
- package/src/components/Editor/types.ts +1 -5
- package/src/components/Excel/ExcelContextMenu/ExcelContextMenu.scss +39 -0
- package/src/components/Excel/ExcelContextMenu/ExcelContextMenu.tsx +51 -0
- package/src/components/Excel/ExcelFile/ExcelFile.tsx +7 -8
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Cell.tsx +35 -0
- package/src/components/Excel/ExcelFile/ExcelFileComponents/ColumnIndicator.tsx +44 -7
- package/src/components/Excel/ExcelFile/ExcelFileComponents/CornerIndicator.tsx +8 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/RowIndicator.tsx +45 -6
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.scss +37 -2
- package/src/components/Excel/ExcelFile/ExcelFileComponents/Spreadsheet.tsx +69 -24
- package/src/components/Excel/ExcelFile/ExcelFileComponents/actions.ts +59 -0
- package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/engine.ts +18 -65
- package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/formula.ts +5 -110
- package/src/components/Excel/ExcelFile/ExcelFileComponents/engine/point-graph.ts +0 -2
- package/src/components/Excel/ExcelFile/ExcelFileComponents/reducer.ts +105 -1
- package/src/components/Excel/ExcelFile/ExcelFileComponents/reducerFunctions.ts +670 -673
- package/src/components/Excel/ExcelFile/ExcelFileComponents/types.ts +38 -2
- package/src/components/Excel/ExcelToolBar/ExcelToolBar.tsx +0 -4
- package/src/components/FileDropzone/FileDropzone.scss +4 -2
- package/src/components/FileDropzone/FileDropzone.tsx +1 -1
- package/src/components/FileDropzone/FilePreview.tsx +3 -1
- package/src/components/Form/Form.scss +2 -0
- package/src/components/Form/Form.stories.tsx +195 -6
- package/src/components/Form/Forms.tsx +15 -8
- package/src/components/Icon/iconList.ts +46 -0
- package/src/components/IconRadioGroup/IconRadioGroup.scss +3 -0
- package/src/components/IconRadioGroup/IconRadioGroup.tsx +20 -17
- package/src/components/Input/Input.scss +14 -15
- package/src/components/Input/Input.stories.tsx +2 -1
- package/src/components/InputWithDropdown/InputWithDropdown.scss +12 -13
- package/src/components/InputWithDropdown/InputWithDropdown.stories.tsx +3 -2
- package/src/components/InputWithDropdown/InputWithDropdown.tsx +22 -19
- package/src/components/MenuOption/MenuOption.scss +11 -10
- package/src/components/MenuOption/MenuOption.stories.tsx +51 -232
- package/src/components/MenuOption/MenuOption.tsx +131 -52
- package/src/components/MenuOption/types.ts +55 -14
- package/src/components/MiniModal/MiniModal.stories.tsx +2 -3
- package/src/components/MultiSelect/Dropdown.tsx +11 -12
- package/src/components/MultiSelect/MultiSelect.scss +1 -0
- package/src/components/MultiSelect/MultiSelect.stories.tsx +45 -10
- package/src/components/MultiSelect/MultiSelect.tsx +29 -13
- package/src/components/MultiSelect/MultiSelectTypes.ts +7 -5
- package/src/components/MultiSelect/dropdownTypes.ts +2 -0
- package/src/components/RadioButton/RadioButton.scss +3 -1
- package/src/components/RadioButton/RadioButton.tsx +3 -1
- package/src/components/RadioButton/radioButtonTypes.tsx +5 -1
- package/src/components/Search/Search.scss +25 -6
- package/src/components/Search/Search.tsx +45 -24
- package/src/components/Select/Select.scss +12 -12
- package/src/components/Select/Select.stories.tsx +2 -0
- package/src/components/Select/Select.tsx +11 -5
- package/src/components/Select/components/Dropdown.scss +2 -0
- package/src/components/Select/components/Dropdown.tsx +19 -4
- package/src/components/Select/components/types.ts +4 -2
- package/src/components/StatusButton/StatusButton.tsx +26 -20
- package/src/components/Table/Table.scss +1 -3
- package/src/components/Table/Table.stories.tsx +1 -0
- package/src/components/Table/Table.tsx +7 -3
- package/src/components/ToggleSwitch/ToggleSwitch.scss +59 -0
- package/src/components/ToggleSwitch/ToggleSwitch.stories.tsx +52 -0
- package/src/components/ToggleSwitch/ToggleSwitch.tsx +30 -0
- package/src/components/ToggleSwitch/index.ts +1 -0
- package/src/hooks/useFileDropzone.tsx +1 -0
- package/src/index.ts +7 -3
- package/lib/assets/fonts/Poppins-Bold.ttf +0 -0
- package/lib/assets/fonts/Poppins-Medium.ttf +0 -0
- package/lib/assets/fonts/Poppins-Regular.ttf +0 -0
- package/lib/assets/fonts/Poppins-SemiBold.ttf +0 -0
- package/src/components/Excel/ContextMenu/ContextMenu.scss +0 -99
- package/src/components/Excel/ContextMenu/ContextMenu.tsx +0 -103
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import MachineInputField from './MachineInputField';
|
3
|
+
declare const meta: Meta<typeof MachineInputField>;
|
4
|
+
type Story = StoryObj<typeof MachineInputField>;
|
5
|
+
export declare const Primary: Story;
|
6
|
+
export default meta;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import './MenuOption.scss';
|
2
2
|
import { MenuOptionProps } from './types';
|
3
|
-
declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options,
|
3
|
+
declare const MenuOption: ({ labelName, iconName, tooltipTitle, tooltipPlacement, options, onClick, onOptionClick, iconButtonSize, iconButtonBorderRadius, iconSize, variant, zIndex, dropdownPlacement, }: MenuOptionProps) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default MenuOption;
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import MenuOption from './MenuOption';
|
3
|
+
import './MenuOption.scss';
|
4
|
+
export declare const DefaultMenuOption: Story;
|
5
|
+
declare const meta: Meta<typeof MenuOption>;
|
6
|
+
type Story = StoryObj<typeof MenuOption>;
|
7
|
+
export declare const ControlledMenuOption: Story;
|
8
|
+
export declare const MenuOptionWithLabel: Story;
|
9
|
+
export declare const MenuOptionWithDisabledHoverEffect: Story;
|
10
|
+
export declare const MenuOptionWithToolTip: Story;
|
11
|
+
export declare const MenuOptionPlacementTop: Story;
|
12
|
+
export declare const MenuOptionPlacementDown: Story;
|
13
|
+
export declare const MenuOptionPlacementLeft: Story;
|
14
|
+
export declare const MenuOptionPlacementRight: Story;
|
15
|
+
export declare const MenuOptionCustom: Story;
|
16
|
+
export default meta;
|
@@ -10,15 +10,17 @@ interface OptionClick {
|
|
10
10
|
* @type {Array<string> | string}
|
11
11
|
* @required
|
12
12
|
*/
|
13
|
-
value:
|
13
|
+
value: any;
|
14
14
|
}
|
15
15
|
interface OptionType extends OptionClick {
|
16
16
|
/**
|
17
17
|
* The name of the icon associated with the option.
|
18
18
|
* @type {string}
|
19
|
-
* @
|
19
|
+
* @optional
|
20
20
|
*/
|
21
21
|
icon?: string;
|
22
|
+
iconColor?: string;
|
23
|
+
name?: string;
|
22
24
|
/**
|
23
25
|
* Indicates whether the option is disabled.
|
24
26
|
* @type {boolean}
|
@@ -35,17 +37,47 @@ interface OptionCardProps {
|
|
35
37
|
options: Array<OptionType>;
|
36
38
|
/**
|
37
39
|
* Callback function triggered when an option is clicked.
|
38
|
-
* @param {
|
40
|
+
* @param {OptionClick} data - The data associated with the clicked option.
|
39
41
|
* @type {function}
|
40
42
|
* @required
|
41
43
|
*/
|
42
|
-
onClick: (data
|
44
|
+
onClick: (data: OptionClick) => void;
|
43
45
|
/**
|
44
46
|
* Optional styles applied to the card.
|
45
47
|
* @type {React.CSSProperties}
|
46
48
|
* @optional
|
47
49
|
*/
|
48
50
|
styles?: React.CSSProperties;
|
51
|
+
/**
|
52
|
+
* The z-index of the option card.
|
53
|
+
* @type {number}
|
54
|
+
* @optional
|
55
|
+
*/
|
56
|
+
zIndex?: number;
|
57
|
+
/**
|
58
|
+
* The position of the menu relative to the triggering element.
|
59
|
+
* @type {dropdownPosition}
|
60
|
+
* @required
|
61
|
+
*/
|
62
|
+
menuPosition: any;
|
63
|
+
/**
|
64
|
+
* Reference to the menu DOM element.
|
65
|
+
* @type {React.RefObject<HTMLElement>}
|
66
|
+
* @required
|
67
|
+
*/
|
68
|
+
menuRef: React.RefObject<HTMLElement>;
|
69
|
+
/**
|
70
|
+
* Callback function to close the dropdown.
|
71
|
+
* @type {() => void}
|
72
|
+
* @required
|
73
|
+
*/
|
74
|
+
closeDropdown: () => void;
|
75
|
+
/**
|
76
|
+
* Placement of the dropdown menu relative to the icon.
|
77
|
+
* @type {dropdownPosition}
|
78
|
+
* @optional
|
79
|
+
*/
|
80
|
+
dropdownPosition?: 'top' | 'down' | 'left' | 'right';
|
49
81
|
}
|
50
82
|
interface MenuOptionProps {
|
51
83
|
/**
|
@@ -80,27 +112,27 @@ interface MenuOptionProps {
|
|
80
112
|
tooltipPlacement?: 'bottom' | 'left' | 'right' | 'top' | 'top-start' | 'top-end' | 'bottom-start' | 'bottom-end';
|
81
113
|
/**
|
82
114
|
* The placement of the dropdown menu relative to the icon.
|
83
|
-
* @type {
|
115
|
+
* @type {dropdownPosition}
|
84
116
|
* @optional
|
85
117
|
*/
|
86
|
-
dropdownPlacement?:
|
118
|
+
dropdownPlacement?: 'top' | 'down' | 'left' | 'right';
|
87
119
|
/**
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
120
|
+
* The variant of the menu option, either 'dark' or 'light'.
|
121
|
+
* @type {'dark' | 'light'}
|
122
|
+
* @default 'light'
|
123
|
+
* @optional
|
124
|
+
*/
|
93
125
|
variant?: 'dark' | 'light';
|
94
126
|
/**
|
95
127
|
* Callback function triggered when the icon is clicked.
|
96
|
-
* @type {
|
128
|
+
* @type {() => void}
|
97
129
|
* @optional
|
98
130
|
*/
|
99
131
|
onClick?: () => void;
|
100
132
|
/**
|
101
133
|
* Callback function triggered when an option is clicked.
|
102
134
|
* @param {OptionClick} option - The option that was clicked.
|
103
|
-
* @type {
|
135
|
+
* @type {(option: OptionClick) => void}
|
104
136
|
* @optional
|
105
137
|
*/
|
106
138
|
onOptionClick?: (option: OptionClick) => void;
|
@@ -117,13 +149,15 @@ interface MenuOptionProps {
|
|
117
149
|
*/
|
118
150
|
iconSize?: number;
|
119
151
|
/**
|
120
|
-
* The border radius of the icon.
|
152
|
+
* The border radius of the icon button.
|
121
153
|
* @type {number}
|
122
154
|
* @default 7
|
123
155
|
*/
|
124
156
|
iconButtonBorderRadius?: number;
|
125
157
|
/**
|
126
158
|
* Providing z-index for the options card.
|
159
|
+
* @type {number}
|
160
|
+
* @optional
|
127
161
|
*/
|
128
162
|
zIndex?: number;
|
129
163
|
}
|
@@ -137,7 +171,7 @@ interface OptionProps {
|
|
137
171
|
/**
|
138
172
|
* Callback function triggered when the option is clicked.
|
139
173
|
* @param {OptionClick} option - The clicked option.
|
140
|
-
* @type {
|
174
|
+
* @type {(option: OptionClick) => void}
|
141
175
|
* @required
|
142
176
|
*/
|
143
177
|
onClick: (option: OptionClick) => void;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import MiniModal from './MiniModal';
|
3
|
+
import './MiniModal.scss';
|
4
|
+
declare const meta: Meta<typeof MiniModal>;
|
5
|
+
type Story = StoryObj<typeof MiniModal>;
|
6
|
+
export declare const BasicModal: Story;
|
7
|
+
export declare const CustomModalWithArrow: () => import("react/jsx-runtime").JSX.Element;
|
8
|
+
export declare const CustomModalWithWrapper: () => import("react/jsx-runtime").JSX.Element;
|
9
|
+
export declare const normalModalFollowedByIcon: () => import("react/jsx-runtime").JSX.Element;
|
10
|
+
export default meta;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Modal from './Modal';
|
3
|
+
declare const meta: Meta<typeof Modal>;
|
4
|
+
type Story = StoryObj<typeof Modal>;
|
5
|
+
export declare const DefaultModalStory: Story;
|
6
|
+
export declare const Controlled: Story;
|
7
|
+
export default meta;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import './MultiSelect.scss';
|
2
2
|
import { MultiSelectProps } from './MultiSelectTypes';
|
3
|
-
declare const MultiSelect: ({ options, type, selectedOptions, onChange, acceptNewOption, zIndex, label, onSearch, required, disabled, errorMessage, displayCount, placeholderForSearching, variant, onLabelPlusIconClick, onManageLabelsClick, className, highlightedMachine, onSelectButtonClick, withSelectButton, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
|
3
|
+
declare const MultiSelect: ({ options, type, selectedOptions, onChange, acceptNewOption, zIndex, label, onSearch, required, disabled, errorMessage, displayCount, placeholderForSearching, variant, onLabelPlusIconClick, onManageLabelsClick, className, highlightedMachine, onSelectButtonClick, labelAccessor, valueAccessor, withSelectButton, }: MultiSelectProps) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default MultiSelect;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import MultiSelect from './MultiSelect';
|
3
|
+
declare const meta: Meta<typeof MultiSelect>;
|
4
|
+
type Story = StoryObj<typeof MultiSelect>;
|
5
|
+
export declare const Default: Story;
|
6
|
+
export declare const Default2: Story;
|
7
|
+
export declare const Default3: Story;
|
8
|
+
export declare const EmailGroup: Story;
|
9
|
+
export declare const Controlled: Story;
|
10
|
+
export declare const Labels: Story;
|
11
|
+
export declare const Machines: Story;
|
12
|
+
export default meta;
|
@@ -1,10 +1,7 @@
|
|
1
1
|
import { ReactElement } from 'react';
|
2
|
+
type OptionValue = any;
|
2
3
|
interface Option {
|
3
|
-
|
4
|
-
value?: string;
|
5
|
-
accessor?: string;
|
6
|
-
isChecked?: boolean;
|
7
|
-
isDisabled?: boolean;
|
4
|
+
[key: string]: OptionValue;
|
8
5
|
}
|
9
6
|
interface MultiSelectProps {
|
10
7
|
options: Option[];
|
@@ -32,5 +29,7 @@ interface MultiSelectProps {
|
|
32
29
|
className?: string;
|
33
30
|
/** Machine Name to be displayed */
|
34
31
|
highlightedMachine?: string | ReactElement;
|
32
|
+
labelAccessor?: string;
|
33
|
+
valueAccessor?: string;
|
35
34
|
}
|
36
35
|
export { Option, MultiSelectProps };
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import NlpInput from './NlpInput';
|
3
|
+
declare const meta: Meta<typeof NlpInput>;
|
4
|
+
type Story = StoryObj<typeof NlpInput>;
|
5
|
+
export declare const Primary: Story;
|
6
|
+
export declare const Disable: Story;
|
7
|
+
export default meta;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Paper from './Paper';
|
3
|
+
import './Paper.scss';
|
4
|
+
declare const meta: Meta<typeof Paper>;
|
5
|
+
type Story = StoryObj<typeof Paper>;
|
6
|
+
export declare const Default: Story;
|
7
|
+
export declare const PrimaryPaper: Story;
|
8
|
+
export declare const PaperWithLowShadow: Story;
|
9
|
+
export declare const PaperWithHighShadow: Story;
|
10
|
+
export declare const PaperWithRounded: Story;
|
11
|
+
export default meta;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import RadioButton from './RadioButton';
|
3
|
+
declare const meta: Meta<typeof RadioButton>;
|
4
|
+
type Story = StoryObj<typeof RadioButton>;
|
5
|
+
export declare const Default: Story;
|
6
|
+
export declare const Checked: Story;
|
7
|
+
export declare const UncheckedDisabled: Story;
|
8
|
+
export declare const CheckedDisabled: Story;
|
9
|
+
export declare const WithoutLabel: Story;
|
10
|
+
export default meta;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { ReactElement } from 'react';
|
1
2
|
/**
|
2
3
|
* Props for the RadioButton component.
|
3
4
|
*/
|
@@ -6,7 +7,7 @@ interface RadioButtonProps {
|
|
6
7
|
* The display label for the radio button.
|
7
8
|
* Optional.
|
8
9
|
*/
|
9
|
-
label?: string;
|
10
|
+
label?: string | ReactElement;
|
10
11
|
/**
|
11
12
|
* The name attribute for the radio button, used for grouping.
|
12
13
|
*/
|
@@ -48,3 +49,4 @@ interface RadioButtonProps {
|
|
48
49
|
*/
|
49
50
|
tooltipTitle?: React.ReactNode;
|
50
51
|
}
|
52
|
+
export default RadioButtonProps;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import RadioGroup from './RadioGroup';
|
3
|
+
declare const meta: Meta<typeof RadioGroup>;
|
4
|
+
type Story = StoryObj<typeof RadioGroup>;
|
5
|
+
export declare const Controlled: Story;
|
6
|
+
export declare const WithDisabledOption: Story;
|
7
|
+
export declare const DisabledSelected: Story;
|
8
|
+
export declare const WithToolTipIcon: Story;
|
9
|
+
export default meta;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Select from './Select';
|
3
|
+
declare const meta: Meta<typeof Select>;
|
4
|
+
type Story = StoryObj<typeof Select>;
|
5
|
+
export declare const Primary: Story;
|
6
|
+
export declare const WithError: Story;
|
7
|
+
export declare const WithoutLabel: Story;
|
8
|
+
export declare const EmptyOptions: Story;
|
9
|
+
export declare const Disable: Story;
|
10
|
+
export declare const WithInitialValue: Story;
|
11
|
+
export declare const OptionSelection: Story;
|
12
|
+
export declare const CustomJSX: Story;
|
13
|
+
export declare const updateOptionFromOutside: Story;
|
14
|
+
export default meta;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { DropDownListProps } from './dropdownTypes';
|
2
|
+
import './Dropdown.scss';
|
3
|
+
declare const Dropdown: ({ onSelectBlur, onSelectOptionSelector, dropdownPosition, options, optionZIndex, inputRef, labelAccessor, }: DropDownListProps) => import("react/jsx-runtime").JSX.Element;
|
4
|
+
export default Dropdown;
|
@@ -0,0 +1,17 @@
|
|
1
|
+
import { DrowdownPosition, Option } from '../../types';
|
2
|
+
export interface DropDownListProps {
|
3
|
+
onSelectBlur: () => void;
|
4
|
+
onSelectOptionSelector: (option: Option) => void;
|
5
|
+
dropdownPosition: DrowdownPosition;
|
6
|
+
options?: Option[];
|
7
|
+
optionZIndex?: number;
|
8
|
+
inputRef?: React.RefObject<HTMLInputElement>;
|
9
|
+
labelAccessor?: string;
|
10
|
+
valueAccessor?: string;
|
11
|
+
}
|
12
|
+
export declare const dropdownDefaultCSSData: {
|
13
|
+
margin: number;
|
14
|
+
optionHeight: number;
|
15
|
+
selectInputHeight: number;
|
16
|
+
dropDownWrapperPadding: number;
|
17
|
+
};
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { DrowdownPosition, Option } from '../types';
|
2
|
+
import { RefObject } from 'react';
|
2
3
|
export interface DropdownProps {
|
3
4
|
options: Option[];
|
4
5
|
dropdownPosition: DrowdownPosition;
|
@@ -7,9 +8,10 @@ export interface DropdownProps {
|
|
7
8
|
valueAccessor?: string;
|
8
9
|
onSelectBlur: () => void;
|
9
10
|
onSelectOptionSelector: (option: Option) => void;
|
10
|
-
inputRef?:
|
11
|
-
selectArrowRef?:
|
11
|
+
inputRef?: RefObject<HTMLInputElement>;
|
12
|
+
selectArrowRef?: RefObject<HTMLDivElement>;
|
12
13
|
heightFromTop: number;
|
14
|
+
selectedOption?: Option;
|
13
15
|
}
|
14
16
|
export declare const dropdownDefaultCSSData: {
|
15
17
|
margin: number;
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import SequentialConnectingBranch from './SequentialConnectingBranch';
|
3
|
+
declare const meta: Meta<typeof SequentialConnectingBranch>;
|
4
|
+
type Story = StoryObj<typeof SequentialConnectingBranch>;
|
5
|
+
export declare const Primary: Story;
|
6
|
+
export default meta;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import StateDropdown from './StateDropdown';
|
3
|
+
declare const meta: Meta<typeof StateDropdown>;
|
4
|
+
type Story = StoryObj<typeof StateDropdown>;
|
5
|
+
export declare const Disable: Story;
|
6
|
+
export declare const Review: Story;
|
7
|
+
export declare const Reject: Story;
|
8
|
+
export declare const Approved: Story;
|
9
|
+
export declare const NewState: Story;
|
10
|
+
export default meta;
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import StatusButton from './StatusButton';
|
3
|
+
declare const meta: Meta<typeof StatusButton>;
|
4
|
+
type Story = StoryObj<typeof StatusButton>;
|
5
|
+
export declare const Passed: Story;
|
6
|
+
export declare const Failed: Story;
|
7
|
+
export declare const Running: Story;
|
8
|
+
export declare const Terminated: Story;
|
9
|
+
export declare const Skipped: Story;
|
10
|
+
export declare const Warning: Story;
|
11
|
+
export declare const PartiallyExecuted: Story;
|
12
|
+
export declare const Aborted: Story;
|
13
|
+
export declare const NotExecuted: Story;
|
14
|
+
export default meta;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Card from './StatusCard';
|
3
|
+
import { CardProps } from './types';
|
4
|
+
declare const meta: Meta<typeof Card>;
|
5
|
+
export default meta;
|
6
|
+
type Story = StoryObj<CardProps>;
|
7
|
+
export declare const Passed: Story;
|
8
|
+
export declare const Failed: Story;
|
9
|
+
export declare const Warning: Story;
|
10
|
+
export declare const Skipped: Story;
|
11
|
+
export declare const Flaky: Story;
|
@@ -1,4 +1,4 @@
|
|
1
1
|
import './Table.scss';
|
2
2
|
import { TableProps } from './Types';
|
3
|
-
declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, noDataContent, height, className, tableHeadClass, tableBodyRowClass, headerTextColor, tableDataTextColor, headerIconName, headerIconOnClick, }: TableProps) => import("react/jsx-runtime").JSX.Element
|
3
|
+
declare const Table: ({ data, columns, headerType, withCheckbox, onSelect, allSelected, partialSelected, withFixedHeader, borderWithRadius, headerCheckboxDisabled, noDataContent, height, className, tableHeadClass, tableBodyRowClass, headerTextColor, tableDataTextColor, headerIconName, headerIconOnClick, }: TableProps) => import("react/jsx-runtime").JSX.Element;
|
4
4
|
export default Table;
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { StoryObj, Meta } from '@storybook/react';
|
2
|
+
import Table from './Table';
|
3
|
+
declare const meta: Meta<typeof Table>;
|
4
|
+
type Story = StoryObj<typeof Table>;
|
5
|
+
export declare const Default: Story;
|
6
|
+
export declare const PrimaryHeaderTextColor: Story;
|
7
|
+
export declare const TableDataTextColor: Story;
|
8
|
+
export declare const PageTable: Story;
|
9
|
+
export declare const PrimaryHeader: Story;
|
10
|
+
export declare const FixedHeaderWithBorder: Story;
|
11
|
+
export declare const WithCheckBox: Story;
|
12
|
+
export declare const TableWithNoData: Story;
|
13
|
+
export default meta;
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import TableTree from './TableTree';
|
3
|
+
import './TableTreeStories.scss';
|
4
|
+
declare const meta: Meta<typeof TableTree>;
|
5
|
+
type Story = StoryObj<typeof TableTree>;
|
6
|
+
export declare const Default: Story;
|
7
|
+
export default meta;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Tabs from './Tabs';
|
3
|
+
declare const meta: Meta<typeof Tabs>;
|
4
|
+
type Story = StoryObj<typeof Tabs>;
|
5
|
+
export declare const DefaultTabs: Story;
|
6
|
+
export declare const CapsuleTabs: Story;
|
7
|
+
export declare const TabsWithDisabledTab: Story;
|
8
|
+
export declare const WithoutBorder: Story;
|
9
|
+
export default meta;
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Textarea from './Textarea';
|
3
|
+
declare const meta: Meta<typeof Textarea>;
|
4
|
+
type Story = StoryObj<typeof Textarea>;
|
5
|
+
export declare const Default: Story;
|
6
|
+
export declare const Primary: Story;
|
7
|
+
export declare const Disabled: Story;
|
8
|
+
export declare const Controlled: Story;
|
9
|
+
export default meta;
|
@@ -0,0 +1,12 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Toggle from './Toggle';
|
3
|
+
declare const meta: Meta<typeof Toggle>;
|
4
|
+
export default meta;
|
5
|
+
type Story = StoryObj<typeof Toggle>;
|
6
|
+
export declare const Default: Story;
|
7
|
+
export declare const Disabled: Story;
|
8
|
+
export declare const Checked: Story;
|
9
|
+
export declare const SmallSize: Story;
|
10
|
+
export declare const MediumSize: Story;
|
11
|
+
export declare const DynamicIconAndSize: Story;
|
12
|
+
export declare const Controlled: Story;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import React from "react";
|
2
|
+
import "./ToggleSwitch.scss";
|
3
|
+
interface ToggleSwitchProps {
|
4
|
+
firstButton: string;
|
5
|
+
secondButton: string;
|
6
|
+
handleClick: (selected: string) => void;
|
7
|
+
selected: string;
|
8
|
+
}
|
9
|
+
declare const ToggleSwitch: React.FC<ToggleSwitchProps>;
|
10
|
+
export default ToggleSwitch;
|
@@ -0,0 +1 @@
|
|
1
|
+
export { default } from './ToggleSwitch';
|
@@ -0,0 +1,15 @@
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Tooltip from './Tooltip';
|
3
|
+
declare const meta: Meta<typeof Tooltip>;
|
4
|
+
type Story = StoryObj<typeof Tooltip>;
|
5
|
+
export declare const Default: Story;
|
6
|
+
export declare const Controlled: Story;
|
7
|
+
export declare const Top: Story;
|
8
|
+
export declare const Left: Story;
|
9
|
+
export declare const Right: Story;
|
10
|
+
export declare const TopStart: Story;
|
11
|
+
export declare const TopEnd: Story;
|
12
|
+
export declare const BottomStart: Story;
|
13
|
+
export declare const BottomEnd: Story;
|
14
|
+
export declare const TooltipWithIcon: Story;
|
15
|
+
export default meta;
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
2
|
+
import Typography from './Typography';
|
3
|
+
declare const meta: Meta<typeof Typography>;
|
4
|
+
type Story = StoryObj<typeof Typography>;
|
5
|
+
export declare const Docs: Story;
|
6
|
+
export declare const Regular12px: Story;
|
7
|
+
export declare const Medium12px: Story;
|
8
|
+
export declare const SemiBold14px: Story;
|
9
|
+
export declare const Bold14px: Story;
|
10
|
+
export default meta;
|