File tree Expand file tree Collapse file tree 6 files changed +10
-9
lines changed
Expand file tree Collapse file tree 6 files changed +10
-9
lines changed Original file line number Diff line number Diff line change 11import { FormItemOrientation } from '@/types/form-item' ;
22
3- export const containerBaseClassName = 'w-full flex' ;
3+ export const containerBaseClassName = 'w-full flex gap-2 ' ;
44export const orientationClassMap : Record < FormItemOrientation , string > = {
55 [ FormItemOrientation . Vertical ] : 'flex-col' ,
66 [ FormItemOrientation . Horizontal ] : 'flex-row items-end' ,
Original file line number Diff line number Diff line change @@ -18,6 +18,8 @@ export interface DialIconProps {
1818 * @param [icon] - The icon element to render
1919 * @param [className] - Additional CSS classes to apply to the icon wrapper
2020 */
21+
22+ // TODO: really need?
2123export const DialIcon : FC < DialIconProps > = ( { icon, className } ) => {
2224 if ( ! icon ) {
2325 return null ;
Original file line number Diff line number Diff line change @@ -11,7 +11,6 @@ import {
1111
1212import { useMergeRefs } from '@floating-ui/react' ;
1313
14- import { DialIcon } from '@/components/Icon/Icon' ;
1514import { mergeClasses } from '@/utils/merge-classes' ;
1615import { DialErrorText } from '@/components/ErrorText/ErrorText' ;
1716import { DialLabel , type DialLabelProps } from '@/components/Label/Label' ;
@@ -71,7 +70,7 @@ export const DialInput: FC<DialInputProps> = ({
7170 ...props
7271} ) => {
7372 return (
74- < div className = { mergeClasses ( 'flex flex-col gap-y-1 ' , containerClassName ) } >
73+ < div className = { mergeClasses ( 'flex flex-col gap-y-2 ' , containerClassName ) } >
7574 { labelProps && < DialLabel { ...labelProps } htmlFor = { id } /> }
7675
7776 < InputWrapper id = { id } { ...props } />
@@ -180,7 +179,7 @@ const InputWrapper: FC<InputWrapperProps> = ({
180179 </ div >
181180 ) }
182181
183- < DialIcon icon = { iconBefore } />
182+ { iconBefore }
184183
185184 < input
186185 ref = { ref }
@@ -200,7 +199,7 @@ const InputWrapper: FC<InputWrapperProps> = ({
200199
201200 { postfix && < p className = "text-secondary dial-small-text" > { postfix } </ p > }
202201
203- < DialIcon icon = { iconAfter } />
202+ { iconAfter }
204203
205204 { inputButtonIcon && < div className = "" > { inputButtonIcon } </ div > }
206205 </ div >
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ export const DialRadioGroupPopupField: FC<RadioGroupPopupFieldProps> = ({
126126 } , [ onApply , onClosePopup ] ) ;
127127
128128 return (
129- < div className = "flex flex-col" >
129+ < div className = "flex flex-col gap-2 " >
130130 < DialLabel label = { label } htmlFor = { htmlFor } />
131131 < DialInputPopup
132132 disabled = { disabled }
Original file line number Diff line number Diff line change @@ -593,7 +593,7 @@ export const DialSelect: FC<DialSelectProps> = ({
593593 ? 'min-h-[25px] px-1.5 py-1'
594594 : 'min-h-[38px] px-3 py-2' ,
595595 invalid && 'dial-input-error' ,
596- variant === SelectVariant . Secondary ? '!bg-layer-4' : '' ,
596+ variant === SelectVariant . Secondary ? '!bg-layer-4 !h-auto ' : '' ,
597597 className ,
598598 ) }
599599 onMouseDown = { ( e ) => {
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ export interface DialTextareaProps
3838 * - {@link HTMLTextAreaElement} - The underlying HTML textarea element type
3939 *
4040 * @param [onChange] - Callback function called when the textarea value changes
41- * @param [labelProps] - Props for the field label, including `fieldLabel ` (label text) and `required` (whether to show required indicator)
41+ * @param [labelProps] - Props for the field label, including `label ` (label text) and `required` (whether to show required indicator)
4242 * @param [className=""] - Additional CSS classes to apply to the textarea element
4343 * @param [containerClassName=""] - Additional CSS classes to apply to the container div
4444 * @param [invalid=false] - Whether the textarea has validation errors (applies error styling)
@@ -65,7 +65,7 @@ export const DialTextarea: FC<DialTextareaProps> = ({
6565 ) ;
6666
6767 return (
68- < div className = { mergeClasses ( 'flex flex-col gap-y-1 ' , containerClassName ) } >
68+ < div className = { mergeClasses ( 'flex flex-col gap-y-2 ' , containerClassName ) } >
6969 { labelProps && < DialLabel { ...labelProps } htmlFor = { id } /> }
7070 < textarea
7171 id = { id }
You can’t perform that action at this time.
0 commit comments