Skip to content

Commit cbc527e

Browse files
committed
release: 0.0.
1 parent e543aa6 commit cbc527e

20 files changed

Lines changed: 28 additions & 18 deletions

apps/web/src/stories/autocomplete-field.stories.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,7 @@ const options: AutocompleteProps['options'] = [
120120
const DefaultTemplate: StoryFn<AutocompleteProps & { showIcon?: boolean }> = ({ showIcon, ...args }) => {
121121
return (
122122
<EnhancedView prop="Default">
123-
<div className="max-w-sm">
124-
<Form.Autocomplete
125-
{...args}
126-
prefix={showIcon ? undefined : <></>}
127-
placeholder="Placeholder"
128-
options={options}
129-
/>
130-
</div>
123+
<Form.Autocomplete {...args} prefix={showIcon ? undefined : <></>} placeholder="Placeholder" options={options} />
131124
</EnhancedView>
132125
);
133126
};

apps/web/src/stories/autocomplete.stories.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,7 @@ const options: AutocompleteProps['options'] = [
120120
const DefaultTemplate: StoryFn<AutocompleteProps & { showIcon: boolean }> = ({ showIcon, ...args }) => {
121121
return (
122122
<EnhancedView prop="Default">
123-
<div className="max-w-sm">
124-
<Autocomplete {...args} prefix={showIcon ? undefined : <></>} placeholder="Placeholder" options={options} />
125-
</div>
123+
<Autocomplete {...args} prefix={showIcon ? undefined : <></>} placeholder="Placeholder" options={options} />
126124
</EnhancedView>
127125
);
128126
};

apps/web/src/stories/button.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,9 @@ const meta: Meta = {
5454
freeHeight: {
5555
control: { type: 'boolean' },
5656
},
57+
fullWidth: {
58+
control: { type: 'boolean' },
59+
},
5760
},
5861
parameters: {
5962
docs: {

apps/web/src/stories/input.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ const meta: Meta = {
2929
disabled: {
3030
control: { type: 'boolean' },
3131
},
32+
fullWidth: {
33+
control: { type: 'boolean' },
34+
},
3235
},
3336
parameters: {
3437
docs: {

apps/web/src/stories/text-field.stories.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ const meta: Meta = {
3535
disabled: {
3636
control: { type: 'boolean' },
3737
},
38+
fullWidth: {
39+
true: 'w-full',
40+
},
3841
},
3942
args: {
4043
helperText: 'This is a hint text to help user.',

packages/icons/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@var-meta/icons",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"sideEffects": [
55
"*.svg"
66
],

packages/theme/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@var-meta/theme",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"license": "MIT",
55
"sideEffects": false,
66
"exports": {

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@var-meta/ui",
33
"license": "MIT",
4-
"version": "0.0.6",
4+
"version": "0.0.7",
55
"sideEffects": [
66
"**/*.css"
77
],

packages/ui/src/components/autocomplete/autocomplete.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const autocompleteVariants = tv({
3131
variants: {
3232
fullWidth: {
3333
true: 'w-full',
34+
false: 'w-auto',
3435
},
3536
},
3637
defaultVariants: {
@@ -274,6 +275,7 @@ const AutocompleteComponent = <T extends boolean = false>(
274275
<div className="flex items-center">
275276
{clearable ? (
276277
<button
278+
type="button"
277279
onClick={handleClear}
278280
className={cn(
279281
'hover:bg-background-light hover:text-foreground-secondary text-foreground-secondary pointer-events-none invisible relative z-10 flex h-6 w-6 items-center justify-center rounded-full opacity-0 outline-none transition-all',

packages/ui/src/components/button/button-close.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const ButtonClose = forwardRef<ElementRef<'button'>, ButtonCloseProps>((p
3131
const { className, size, ...etc } = props;
3232

3333
return (
34-
<button className={cn(buttonCloseVariants({ size, className }))} {...etc} ref={ref}>
34+
<button type="button" className={cn(buttonCloseVariants({ size, className }))} {...etc} ref={ref}>
3535
<CloseIcon
3636
className={cn('h-5 w-5', {
3737
'h-6 w-6': size === 'lg',

0 commit comments

Comments
 (0)