ToolJet/frontend/src/AppBuilder/Widgets/TextArea.jsx

75 lines
2.5 KiB
React
Raw Normal View History

2025-10-22 21:12:32 +00:00
import React, { useLayoutEffect, useCallback } from 'react';
2024-12-08 07:56:23 +00:00
import { BaseInput } from './BaseComponents/BaseInput';
import { useInput } from './BaseComponents/hooks/useInput';
Feat/dynamic height (#12255) * adjust the component position based on the dynamic height of the above component * Grid collision and dynamic height added * Fixed delete component edge case * Fixed components overlapping on decreasing height & few minor bugs * Fix for dynamic height decrease * Temp top map added * Merge conflicts resolved * feat: Add CSA and functionalities for managing loading, visibility, and disable states for full tab component. (#11267) * feat: tab draggble option and popover menu (#11267) * feat: tab scrollable arrows and tabItem logic(#11267) * feat: remove logs(#11267) * feat: Tabslayout name change(#11267) * fix: component update on Tabs * fix: tab text color update * feat: setTabDisable CSA added(#11267) * feat: added CSA for tab specific changes(#11267) * feat: added handle function for tab specific changes(#11267) * feat: shimmer for tab nav and icon chooser (#11267) * feat: icon for each tab in TabNav items (#11267) * feat: equal split width fix for each tab in TabNav items (#11267) * feat: styles for Tab Nav (#11267) * feat: slide options(#11267) * feat: fix radius (#11267) * feat: slider (#11267) * feat: fix slide direction (#11267) * feat: fix slide direction 2 (#11267) * feat: fix styles right side inspector view (#11267) * feat: nav ellipsis ... (#11267) * feat: children different for dynamic and non-dynamic (#11267) * feat:[tabsLayout] change default values in config (#11267) * feat:[tabsLayout] split and auto fix (#11267) * feat: fix styles accent and text (#11267) * feat: fix styles divider and more 2(#11267) * feat: fix styles divider and more 3(#11267) * feat: fix styles 4(#11267) * feat: fix styles 5(#11267) * feat: fix tab icon visibility 6 (#11267) * feat: modify name of property from id to Tab 7(#11267) * fixes and changes * fix: csa for tabs * new changes and fixes * fix: dynamic options sytling * v2 changes * fix: styling * fix: styling of icons * Minor bug fixes * fix: styling * Listview related dynamic height added * transition effect fix * Dynamic height related issues solved * fixed transition * new changes * style: extend tabpane background to whole pane * fix: tinycolor import * Minor fix for config handle * Dynamic Height for Tabs * Submodule updated * Submodule updated * Submodule update * Horizontally resizeable * Form fix --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Raman Kumar <k.raman1998@yahoo.in> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com> Co-authored-by: TaruunMalik <taruunrmalik09@gmail.com> Co-authored-by: johnsoncherian <johnsonc.dev@gmail.com>
2025-06-27 11:35:01 +00:00
import { useDynamicHeight } from '@/_hooks/useDynamicHeight';
2025-10-22 21:12:32 +00:00
import { useHeightObserver } from '@/_hooks/useHeightObserver';
2024-12-08 07:56:23 +00:00
2025-01-09 19:14:40 +00:00
export const TextArea = (props) => {
2024-12-08 07:56:23 +00:00
const inputLogic = useInput(props);
const {
properties,
height,
width,
id,
adjustComponentPositions,
currentLayout,
currentMode,
subContainerIndex,
componentType,
} = props;
Feat/dynamic height (#12255) * adjust the component position based on the dynamic height of the above component * Grid collision and dynamic height added * Fixed delete component edge case * Fixed components overlapping on decreasing height & few minor bugs * Fix for dynamic height decrease * Temp top map added * Merge conflicts resolved * feat: Add CSA and functionalities for managing loading, visibility, and disable states for full tab component. (#11267) * feat: tab draggble option and popover menu (#11267) * feat: tab scrollable arrows and tabItem logic(#11267) * feat: remove logs(#11267) * feat: Tabslayout name change(#11267) * fix: component update on Tabs * fix: tab text color update * feat: setTabDisable CSA added(#11267) * feat: added CSA for tab specific changes(#11267) * feat: added handle function for tab specific changes(#11267) * feat: shimmer for tab nav and icon chooser (#11267) * feat: icon for each tab in TabNav items (#11267) * feat: equal split width fix for each tab in TabNav items (#11267) * feat: styles for Tab Nav (#11267) * feat: slide options(#11267) * feat: fix radius (#11267) * feat: slider (#11267) * feat: fix slide direction (#11267) * feat: fix slide direction 2 (#11267) * feat: fix styles right side inspector view (#11267) * feat: nav ellipsis ... (#11267) * feat: children different for dynamic and non-dynamic (#11267) * feat:[tabsLayout] change default values in config (#11267) * feat:[tabsLayout] split and auto fix (#11267) * feat: fix styles accent and text (#11267) * feat: fix styles divider and more 2(#11267) * feat: fix styles divider and more 3(#11267) * feat: fix styles 4(#11267) * feat: fix styles 5(#11267) * feat: fix tab icon visibility 6 (#11267) * feat: modify name of property from id to Tab 7(#11267) * fixes and changes * fix: csa for tabs * new changes and fixes * fix: dynamic options sytling * v2 changes * fix: styling * fix: styling of icons * Minor bug fixes * fix: styling * Listview related dynamic height added * transition effect fix * Dynamic height related issues solved * fixed transition * new changes * style: extend tabpane background to whole pane * fix: tinycolor import * Minor fix for config handle * Dynamic Height for Tabs * Submodule updated * Submodule updated * Submodule update * Horizontally resizeable * Form fix --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Raman Kumar <k.raman1998@yahoo.in> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com> Co-authored-by: TaruunMalik <taruunrmalik09@gmail.com> Co-authored-by: johnsoncherian <johnsonc.dev@gmail.com>
2025-06-27 11:35:01 +00:00
const { inputRef, value } = inputLogic;
const isDynamicHeightEnabled = properties.dynamicHeight && currentMode === 'view';
Feat/dynamic height (#12255) * adjust the component position based on the dynamic height of the above component * Grid collision and dynamic height added * Fixed delete component edge case * Fixed components overlapping on decreasing height & few minor bugs * Fix for dynamic height decrease * Temp top map added * Merge conflicts resolved * feat: Add CSA and functionalities for managing loading, visibility, and disable states for full tab component. (#11267) * feat: tab draggble option and popover menu (#11267) * feat: tab scrollable arrows and tabItem logic(#11267) * feat: remove logs(#11267) * feat: Tabslayout name change(#11267) * fix: component update on Tabs * fix: tab text color update * feat: setTabDisable CSA added(#11267) * feat: added CSA for tab specific changes(#11267) * feat: added handle function for tab specific changes(#11267) * feat: shimmer for tab nav and icon chooser (#11267) * feat: icon for each tab in TabNav items (#11267) * feat: equal split width fix for each tab in TabNav items (#11267) * feat: styles for Tab Nav (#11267) * feat: slide options(#11267) * feat: fix radius (#11267) * feat: slider (#11267) * feat: fix slide direction (#11267) * feat: fix slide direction 2 (#11267) * feat: fix styles right side inspector view (#11267) * feat: nav ellipsis ... (#11267) * feat: children different for dynamic and non-dynamic (#11267) * feat:[tabsLayout] change default values in config (#11267) * feat:[tabsLayout] split and auto fix (#11267) * feat: fix styles accent and text (#11267) * feat: fix styles divider and more 2(#11267) * feat: fix styles divider and more 3(#11267) * feat: fix styles 4(#11267) * feat: fix styles 5(#11267) * feat: fix tab icon visibility 6 (#11267) * feat: modify name of property from id to Tab 7(#11267) * fixes and changes * fix: csa for tabs * new changes and fixes * fix: dynamic options sytling * v2 changes * fix: styling * fix: styling of icons * Minor bug fixes * fix: styling * Listview related dynamic height added * transition effect fix * Dynamic height related issues solved * fixed transition * new changes * style: extend tabpane background to whole pane * fix: tinycolor import * Minor fix for config handle * Dynamic Height for Tabs * Submodule updated * Submodule updated * Submodule update * Horizontally resizeable * Form fix --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Raman Kumar <k.raman1998@yahoo.in> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com> Co-authored-by: TaruunMalik <taruunrmalik09@gmail.com> Co-authored-by: johnsoncherian <johnsonc.dev@gmail.com>
2025-06-27 11:35:01 +00:00
2025-10-22 21:12:32 +00:00
const heightChangeValue = useHeightObserver(inputRef, isDynamicHeightEnabled);
const resizeTextArea = useCallback(() => {
if (!inputRef.current) return;
if (!isDynamicHeightEnabled) {
inputRef.current.style.height = '100%';
Feat/dynamic height (#12255) * adjust the component position based on the dynamic height of the above component * Grid collision and dynamic height added * Fixed delete component edge case * Fixed components overlapping on decreasing height & few minor bugs * Fix for dynamic height decrease * Temp top map added * Merge conflicts resolved * feat: Add CSA and functionalities for managing loading, visibility, and disable states for full tab component. (#11267) * feat: tab draggble option and popover menu (#11267) * feat: tab scrollable arrows and tabItem logic(#11267) * feat: remove logs(#11267) * feat: Tabslayout name change(#11267) * fix: component update on Tabs * fix: tab text color update * feat: setTabDisable CSA added(#11267) * feat: added CSA for tab specific changes(#11267) * feat: added handle function for tab specific changes(#11267) * feat: shimmer for tab nav and icon chooser (#11267) * feat: icon for each tab in TabNav items (#11267) * feat: equal split width fix for each tab in TabNav items (#11267) * feat: styles for Tab Nav (#11267) * feat: slide options(#11267) * feat: fix radius (#11267) * feat: slider (#11267) * feat: fix slide direction (#11267) * feat: fix slide direction 2 (#11267) * feat: fix styles right side inspector view (#11267) * feat: nav ellipsis ... (#11267) * feat: children different for dynamic and non-dynamic (#11267) * feat:[tabsLayout] change default values in config (#11267) * feat:[tabsLayout] split and auto fix (#11267) * feat: fix styles accent and text (#11267) * feat: fix styles divider and more 2(#11267) * feat: fix styles divider and more 3(#11267) * feat: fix styles 4(#11267) * feat: fix styles 5(#11267) * feat: fix tab icon visibility 6 (#11267) * feat: modify name of property from id to Tab 7(#11267) * fixes and changes * fix: csa for tabs * new changes and fixes * fix: dynamic options sytling * v2 changes * fix: styling * fix: styling of icons * Minor bug fixes * fix: styling * Listview related dynamic height added * transition effect fix * Dynamic height related issues solved * fixed transition * new changes * style: extend tabpane background to whole pane * fix: tinycolor import * Minor fix for config handle * Dynamic Height for Tabs * Submodule updated * Submodule updated * Submodule update * Horizontally resizeable * Form fix --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Raman Kumar <k.raman1998@yahoo.in> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com> Co-authored-by: TaruunMalik <taruunrmalik09@gmail.com> Co-authored-by: johnsoncherian <johnsonc.dev@gmail.com>
2025-06-27 11:35:01 +00:00
return;
}
inputRef.current.style.height = 'auto';
2026-04-21 13:33:14 +00:00
// Subtract the input container's padding + border so the outer wrapper
// matches the authored widget height when content fits. Without this,
// wrapper = textarea + container padding/border, making dynamic-height
// textareas visibly taller than non-dynamic ones.
const container = inputRef.current.parentElement;
const cs = container ? window.getComputedStyle(container) : null;
const containerPaddingAndBorder = cs
? parseFloat(cs.paddingTop) +
parseFloat(cs.paddingBottom) +
parseFloat(cs.borderTopWidth) +
parseFloat(cs.borderBottomWidth)
: 0;
const effectiveMax = Math.max(height - containerPaddingAndBorder, 0);
2025-10-22 21:12:32 +00:00
inputRef.current.style.height =
2026-04-21 13:33:14 +00:00
effectiveMax >= inputRef.current.scrollHeight ? `${effectiveMax}px` : `${inputRef.current.scrollHeight}px`;
2025-10-22 21:12:32 +00:00
}, [inputRef?.current, height, isDynamicHeightEnabled]);
Feat/dynamic height (#12255) * adjust the component position based on the dynamic height of the above component * Grid collision and dynamic height added * Fixed delete component edge case * Fixed components overlapping on decreasing height & few minor bugs * Fix for dynamic height decrease * Temp top map added * Merge conflicts resolved * feat: Add CSA and functionalities for managing loading, visibility, and disable states for full tab component. (#11267) * feat: tab draggble option and popover menu (#11267) * feat: tab scrollable arrows and tabItem logic(#11267) * feat: remove logs(#11267) * feat: Tabslayout name change(#11267) * fix: component update on Tabs * fix: tab text color update * feat: setTabDisable CSA added(#11267) * feat: added CSA for tab specific changes(#11267) * feat: added handle function for tab specific changes(#11267) * feat: shimmer for tab nav and icon chooser (#11267) * feat: icon for each tab in TabNav items (#11267) * feat: equal split width fix for each tab in TabNav items (#11267) * feat: styles for Tab Nav (#11267) * feat: slide options(#11267) * feat: fix radius (#11267) * feat: slider (#11267) * feat: fix slide direction (#11267) * feat: fix slide direction 2 (#11267) * feat: fix styles right side inspector view (#11267) * feat: nav ellipsis ... (#11267) * feat: children different for dynamic and non-dynamic (#11267) * feat:[tabsLayout] change default values in config (#11267) * feat:[tabsLayout] split and auto fix (#11267) * feat: fix styles accent and text (#11267) * feat: fix styles divider and more 2(#11267) * feat: fix styles divider and more 3(#11267) * feat: fix styles 4(#11267) * feat: fix styles 5(#11267) * feat: fix tab icon visibility 6 (#11267) * feat: modify name of property from id to Tab 7(#11267) * fixes and changes * fix: csa for tabs * new changes and fixes * fix: dynamic options sytling * v2 changes * fix: styling * fix: styling of icons * Minor bug fixes * fix: styling * Listview related dynamic height added * transition effect fix * Dynamic height related issues solved * fixed transition * new changes * style: extend tabpane background to whole pane * fix: tinycolor import * Minor fix for config handle * Dynamic Height for Tabs * Submodule updated * Submodule updated * Submodule update * Horizontally resizeable * Form fix --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Raman Kumar <k.raman1998@yahoo.in> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com> Co-authored-by: TaruunMalik <taruunrmalik09@gmail.com> Co-authored-by: johnsoncherian <johnsonc.dev@gmail.com>
2025-06-27 11:35:01 +00:00
2025-10-22 21:12:32 +00:00
useLayoutEffect(() => {
Feat/dynamic height (#12255) * adjust the component position based on the dynamic height of the above component * Grid collision and dynamic height added * Fixed delete component edge case * Fixed components overlapping on decreasing height & few minor bugs * Fix for dynamic height decrease * Temp top map added * Merge conflicts resolved * feat: Add CSA and functionalities for managing loading, visibility, and disable states for full tab component. (#11267) * feat: tab draggble option and popover menu (#11267) * feat: tab scrollable arrows and tabItem logic(#11267) * feat: remove logs(#11267) * feat: Tabslayout name change(#11267) * fix: component update on Tabs * fix: tab text color update * feat: setTabDisable CSA added(#11267) * feat: added CSA for tab specific changes(#11267) * feat: added handle function for tab specific changes(#11267) * feat: shimmer for tab nav and icon chooser (#11267) * feat: icon for each tab in TabNav items (#11267) * feat: equal split width fix for each tab in TabNav items (#11267) * feat: styles for Tab Nav (#11267) * feat: slide options(#11267) * feat: fix radius (#11267) * feat: slider (#11267) * feat: fix slide direction (#11267) * feat: fix slide direction 2 (#11267) * feat: fix styles right side inspector view (#11267) * feat: nav ellipsis ... (#11267) * feat: children different for dynamic and non-dynamic (#11267) * feat:[tabsLayout] change default values in config (#11267) * feat:[tabsLayout] split and auto fix (#11267) * feat: fix styles accent and text (#11267) * feat: fix styles divider and more 2(#11267) * feat: fix styles divider and more 3(#11267) * feat: fix styles 4(#11267) * feat: fix styles 5(#11267) * feat: fix tab icon visibility 6 (#11267) * feat: modify name of property from id to Tab 7(#11267) * fixes and changes * fix: csa for tabs * new changes and fixes * fix: dynamic options sytling * v2 changes * fix: styling * fix: styling of icons * Minor bug fixes * fix: styling * Listview related dynamic height added * transition effect fix * Dynamic height related issues solved * fixed transition * new changes * style: extend tabpane background to whole pane * fix: tinycolor import * Minor fix for config handle * Dynamic Height for Tabs * Submodule updated * Submodule updated * Submodule update * Horizontally resizeable * Form fix --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Raman Kumar <k.raman1998@yahoo.in> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com> Co-authored-by: TaruunMalik <taruunrmalik09@gmail.com> Co-authored-by: johnsoncherian <johnsonc.dev@gmail.com>
2025-06-27 11:35:01 +00:00
resizeTextArea();
2025-10-22 21:12:32 +00:00
}, [width, height, isDynamicHeightEnabled, properties.placeholder, value, heightChangeValue]);
Feat/dynamic height (#12255) * adjust the component position based on the dynamic height of the above component * Grid collision and dynamic height added * Fixed delete component edge case * Fixed components overlapping on decreasing height & few minor bugs * Fix for dynamic height decrease * Temp top map added * Merge conflicts resolved * feat: Add CSA and functionalities for managing loading, visibility, and disable states for full tab component. (#11267) * feat: tab draggble option and popover menu (#11267) * feat: tab scrollable arrows and tabItem logic(#11267) * feat: remove logs(#11267) * feat: Tabslayout name change(#11267) * fix: component update on Tabs * fix: tab text color update * feat: setTabDisable CSA added(#11267) * feat: added CSA for tab specific changes(#11267) * feat: added handle function for tab specific changes(#11267) * feat: shimmer for tab nav and icon chooser (#11267) * feat: icon for each tab in TabNav items (#11267) * feat: equal split width fix for each tab in TabNav items (#11267) * feat: styles for Tab Nav (#11267) * feat: slide options(#11267) * feat: fix radius (#11267) * feat: slider (#11267) * feat: fix slide direction (#11267) * feat: fix slide direction 2 (#11267) * feat: fix styles right side inspector view (#11267) * feat: nav ellipsis ... (#11267) * feat: children different for dynamic and non-dynamic (#11267) * feat:[tabsLayout] change default values in config (#11267) * feat:[tabsLayout] split and auto fix (#11267) * feat: fix styles accent and text (#11267) * feat: fix styles divider and more 2(#11267) * feat: fix styles divider and more 3(#11267) * feat: fix styles 4(#11267) * feat: fix styles 5(#11267) * feat: fix tab icon visibility 6 (#11267) * feat: modify name of property from id to Tab 7(#11267) * fixes and changes * fix: csa for tabs * new changes and fixes * fix: dynamic options sytling * v2 changes * fix: styling * fix: styling of icons * Minor bug fixes * fix: styling * Listview related dynamic height added * transition effect fix * Dynamic height related issues solved * fixed transition * new changes * style: extend tabpane background to whole pane * fix: tinycolor import * Minor fix for config handle * Dynamic Height for Tabs * Submodule updated * Submodule updated * Submodule update * Horizontally resizeable * Form fix --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Raman Kumar <k.raman1998@yahoo.in> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com> Co-authored-by: TaruunMalik <taruunrmalik09@gmail.com> Co-authored-by: johnsoncherian <johnsonc.dev@gmail.com>
2025-06-27 11:35:01 +00:00
useDynamicHeight({
isDynamicHeightEnabled,
Feat/dynamic height (#12255) * adjust the component position based on the dynamic height of the above component * Grid collision and dynamic height added * Fixed delete component edge case * Fixed components overlapping on decreasing height & few minor bugs * Fix for dynamic height decrease * Temp top map added * Merge conflicts resolved * feat: Add CSA and functionalities for managing loading, visibility, and disable states for full tab component. (#11267) * feat: tab draggble option and popover menu (#11267) * feat: tab scrollable arrows and tabItem logic(#11267) * feat: remove logs(#11267) * feat: Tabslayout name change(#11267) * fix: component update on Tabs * fix: tab text color update * feat: setTabDisable CSA added(#11267) * feat: added CSA for tab specific changes(#11267) * feat: added handle function for tab specific changes(#11267) * feat: shimmer for tab nav and icon chooser (#11267) * feat: icon for each tab in TabNav items (#11267) * feat: equal split width fix for each tab in TabNav items (#11267) * feat: styles for Tab Nav (#11267) * feat: slide options(#11267) * feat: fix radius (#11267) * feat: slider (#11267) * feat: fix slide direction (#11267) * feat: fix slide direction 2 (#11267) * feat: fix styles right side inspector view (#11267) * feat: nav ellipsis ... (#11267) * feat: children different for dynamic and non-dynamic (#11267) * feat:[tabsLayout] change default values in config (#11267) * feat:[tabsLayout] split and auto fix (#11267) * feat: fix styles accent and text (#11267) * feat: fix styles divider and more 2(#11267) * feat: fix styles divider and more 3(#11267) * feat: fix styles 4(#11267) * feat: fix styles 5(#11267) * feat: fix tab icon visibility 6 (#11267) * feat: modify name of property from id to Tab 7(#11267) * fixes and changes * fix: csa for tabs * new changes and fixes * fix: dynamic options sytling * v2 changes * fix: styling * fix: styling of icons * Minor bug fixes * fix: styling * Listview related dynamic height added * transition effect fix * Dynamic height related issues solved * fixed transition * new changes * style: extend tabpane background to whole pane * fix: tinycolor import * Minor fix for config handle * Dynamic Height for Tabs * Submodule updated * Submodule updated * Submodule update * Horizontally resizeable * Form fix --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Raman Kumar <k.raman1998@yahoo.in> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com> Co-authored-by: TaruunMalik <taruunrmalik09@gmail.com> Co-authored-by: johnsoncherian <johnsonc.dev@gmail.com>
2025-06-27 11:35:01 +00:00
id,
height,
2025-10-22 21:12:32 +00:00
value: heightChangeValue,
Feat/dynamic height (#12255) * adjust the component position based on the dynamic height of the above component * Grid collision and dynamic height added * Fixed delete component edge case * Fixed components overlapping on decreasing height & few minor bugs * Fix for dynamic height decrease * Temp top map added * Merge conflicts resolved * feat: Add CSA and functionalities for managing loading, visibility, and disable states for full tab component. (#11267) * feat: tab draggble option and popover menu (#11267) * feat: tab scrollable arrows and tabItem logic(#11267) * feat: remove logs(#11267) * feat: Tabslayout name change(#11267) * fix: component update on Tabs * fix: tab text color update * feat: setTabDisable CSA added(#11267) * feat: added CSA for tab specific changes(#11267) * feat: added handle function for tab specific changes(#11267) * feat: shimmer for tab nav and icon chooser (#11267) * feat: icon for each tab in TabNav items (#11267) * feat: equal split width fix for each tab in TabNav items (#11267) * feat: styles for Tab Nav (#11267) * feat: slide options(#11267) * feat: fix radius (#11267) * feat: slider (#11267) * feat: fix slide direction (#11267) * feat: fix slide direction 2 (#11267) * feat: fix styles right side inspector view (#11267) * feat: nav ellipsis ... (#11267) * feat: children different for dynamic and non-dynamic (#11267) * feat:[tabsLayout] change default values in config (#11267) * feat:[tabsLayout] split and auto fix (#11267) * feat: fix styles accent and text (#11267) * feat: fix styles divider and more 2(#11267) * feat: fix styles divider and more 3(#11267) * feat: fix styles 4(#11267) * feat: fix styles 5(#11267) * feat: fix tab icon visibility 6 (#11267) * feat: modify name of property from id to Tab 7(#11267) * fixes and changes * fix: csa for tabs * new changes and fixes * fix: dynamic options sytling * v2 changes * fix: styling * fix: styling of icons * Minor bug fixes * fix: styling * Listview related dynamic height added * transition effect fix * Dynamic height related issues solved * fixed transition * new changes * style: extend tabpane background to whole pane * fix: tinycolor import * Minor fix for config handle * Dynamic Height for Tabs * Submodule updated * Submodule updated * Submodule update * Horizontally resizeable * Form fix --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Raman Kumar <k.raman1998@yahoo.in> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com> Co-authored-by: TaruunMalik <taruunrmalik09@gmail.com> Co-authored-by: johnsoncherian <johnsonc.dev@gmail.com>
2025-06-27 11:35:01 +00:00
adjustComponentPositions,
currentLayout,
width,
visibility: inputLogic.visibility,
2025-10-13 05:52:36 +00:00
subContainerIndex,
componentType,
Feat/dynamic height (#12255) * adjust the component position based on the dynamic height of the above component * Grid collision and dynamic height added * Fixed delete component edge case * Fixed components overlapping on decreasing height & few minor bugs * Fix for dynamic height decrease * Temp top map added * Merge conflicts resolved * feat: Add CSA and functionalities for managing loading, visibility, and disable states for full tab component. (#11267) * feat: tab draggble option and popover menu (#11267) * feat: tab scrollable arrows and tabItem logic(#11267) * feat: remove logs(#11267) * feat: Tabslayout name change(#11267) * fix: component update on Tabs * fix: tab text color update * feat: setTabDisable CSA added(#11267) * feat: added CSA for tab specific changes(#11267) * feat: added handle function for tab specific changes(#11267) * feat: shimmer for tab nav and icon chooser (#11267) * feat: icon for each tab in TabNav items (#11267) * feat: equal split width fix for each tab in TabNav items (#11267) * feat: styles for Tab Nav (#11267) * feat: slide options(#11267) * feat: fix radius (#11267) * feat: slider (#11267) * feat: fix slide direction (#11267) * feat: fix slide direction 2 (#11267) * feat: fix styles right side inspector view (#11267) * feat: nav ellipsis ... (#11267) * feat: children different for dynamic and non-dynamic (#11267) * feat:[tabsLayout] change default values in config (#11267) * feat:[tabsLayout] split and auto fix (#11267) * feat: fix styles accent and text (#11267) * feat: fix styles divider and more 2(#11267) * feat: fix styles divider and more 3(#11267) * feat: fix styles 4(#11267) * feat: fix styles 5(#11267) * feat: fix tab icon visibility 6 (#11267) * feat: modify name of property from id to Tab 7(#11267) * fixes and changes * fix: csa for tabs * new changes and fixes * fix: dynamic options sytling * v2 changes * fix: styling * fix: styling of icons * Minor bug fixes * fix: styling * Listview related dynamic height added * transition effect fix * Dynamic height related issues solved * fixed transition * new changes * style: extend tabpane background to whole pane * fix: tinycolor import * Minor fix for config handle * Dynamic Height for Tabs * Submodule updated * Submodule updated * Submodule update * Horizontally resizeable * Form fix --------- Co-authored-by: Kavin Venkatachalam <kavin.saratha@gmail.com> Co-authored-by: Raman Kumar <k.raman1998@yahoo.in> Co-authored-by: Vijaykant Yadav <vjy239@gmail.com> Co-authored-by: TaruunMalik <taruunrmalik09@gmail.com> Co-authored-by: johnsoncherian <johnsonc.dev@gmail.com>
2025-06-27 11:35:01 +00:00
});
2024-12-08 07:56:23 +00:00
return (
<BaseInput
{...props}
{...inputLogic}
isDynamicHeightEnabled={isDynamicHeightEnabled}
inputType="textarea"
classes={{ leftIcon: 'tw-mt-0.5', loaderContainer: 'tw-mt-0.5' }}
/>
);
2024-12-08 07:56:23 +00:00
};