@onehat/ui 0.4.6 → 0.4.7
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/package.json
CHANGED
|
@@ -325,13 +325,13 @@ function Container(props) {
|
|
|
325
325
|
componentProps = {};
|
|
326
326
|
}
|
|
327
327
|
|
|
328
|
-
return <VStack className="w-full flex-1">
|
|
328
|
+
return <VStack className="Container-all w-full flex-1">
|
|
329
329
|
{northComponent}
|
|
330
330
|
{(!isNorthCollapsed && !localIsNorthCollapsed) && northSplitter}
|
|
331
|
-
<HStack className="w-full" style={{ flex: 100 }}>
|
|
331
|
+
<HStack className="Container-mid w-full" style={{ flex: 100 }}>
|
|
332
332
|
{westComponent}
|
|
333
333
|
{(!isWestCollapsed && !localIsWestCollapsed) && westSplitter}
|
|
334
|
-
<VStack className="h-full overflow-auto" style={{ flex: 100 }}>
|
|
334
|
+
<VStack className="Container-center h-full overflow-auto" style={{ flex: 100 }}>
|
|
335
335
|
{centerComponent}
|
|
336
336
|
</VStack>
|
|
337
337
|
{(!isEastCollapsed && !localIsEastCollapsed) && eastSplitter}
|
|
@@ -376,7 +376,7 @@ function Form(props) {
|
|
|
376
376
|
dynamicProps = getDynamicProps({ fieldState, formSetValue, formGetValues, formState });
|
|
377
377
|
}
|
|
378
378
|
|
|
379
|
-
let elementClassName = 'flex-1';
|
|
379
|
+
let elementClassName = 'Form-Element flex-1';
|
|
380
380
|
if (type.match(/Tag/)) {
|
|
381
381
|
elementClassName += ' overflow-auto';
|
|
382
382
|
}
|
|
@@ -433,6 +433,7 @@ function Form(props) {
|
|
|
433
433
|
return <HStack
|
|
434
434
|
key={ix}
|
|
435
435
|
className={`
|
|
436
|
+
Form-HStack1
|
|
436
437
|
flex-${flex}
|
|
437
438
|
${error ? "bg-[#fdd]" : "bg-white"}
|
|
438
439
|
${columnClassName}
|
|
@@ -564,7 +565,7 @@ function Form(props) {
|
|
|
564
565
|
return buildFromItem(item, ix, {...defaults, ...itemDefaults});
|
|
565
566
|
});
|
|
566
567
|
|
|
567
|
-
let elementClassName = '';
|
|
568
|
+
let elementClassName = 'Form-Element';
|
|
568
569
|
const defaultsClassName = defaults.className;
|
|
569
570
|
if (defaultsClassName) {
|
|
570
571
|
elementClassName += ' ' + defaultsClassName;
|
|
@@ -644,18 +645,18 @@ function Form(props) {
|
|
|
644
645
|
style.width = '50px';
|
|
645
646
|
}
|
|
646
647
|
if (containerWidth > styles.FORM_STACK_ROW_THRESHOLD) {
|
|
647
|
-
element = <HStack className="
|
|
648
|
+
element = <HStack className="Form-HStack2 w-full py-1">
|
|
648
649
|
<Label style={style}>{label}</Label>
|
|
649
650
|
{element}
|
|
650
651
|
</HStack>;
|
|
651
652
|
} else {
|
|
652
|
-
element = <VStack className="
|
|
653
|
+
element = <VStack className="Form-VStack1 w-full py-1 mt-3">
|
|
653
654
|
<Label style={style}>{label}</Label>
|
|
654
655
|
{element}
|
|
655
656
|
</VStack>;
|
|
656
657
|
}
|
|
657
658
|
}
|
|
658
|
-
return <HStack key={ix} className="
|
|
659
|
+
return <HStack key={ix} className="Form-HStack3 w-full px-2 pb-1">{element}</HStack>;
|
|
659
660
|
}
|
|
660
661
|
|
|
661
662
|
|
|
@@ -720,7 +721,7 @@ function Form(props) {
|
|
|
720
721
|
dynamicProps = getDynamicProps({ fieldState, formSetValue, formGetValues, formState });
|
|
721
722
|
}
|
|
722
723
|
|
|
723
|
-
let elementClassName = 'field-' + name + ' flex-1
|
|
724
|
+
let elementClassName = 'Form-Element field-' + name + ' flex-1';
|
|
724
725
|
const defaultsClassName = defaults.className;
|
|
725
726
|
if (defaultsClassName) {
|
|
726
727
|
elementClassName += ' ' + defaultsClassName;
|
|
@@ -770,7 +771,7 @@ function Form(props) {
|
|
|
770
771
|
if (message) {
|
|
771
772
|
message = <Text className="text-[#f00]">{message}</Text>;
|
|
772
773
|
}
|
|
773
|
-
element = <VStack className="Form-
|
|
774
|
+
element = <VStack className="Form-VStack4 pt-1 flex-1">
|
|
774
775
|
{element}
|
|
775
776
|
{message}
|
|
776
777
|
</VStack>;
|