Skip to content

Commit b1b7742

Browse files
committed
Merge branch 'main' of github.com:rtCamp/frappe-components into feat/next-pms-components-v2
2 parents ade8171 + b514c7b commit b1b7742

File tree

6 files changed

+15
-13
lines changed

6 files changed

+15
-13
lines changed

.storybook/manager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ addons.setConfig({
55
theme: create({
66
base: "light",
77
brandTitle:
8-
'<h1 id="fur-title">frappe-ui-react</h1> <span id="fur-version">(v1.0.0-beta.4)</span>', // update version as per package.json
8+
'<h1 id="fur-title">frappe-ui-react</h1> <span id="fur-version">(v1.0.0)</span>', // update version as per package.json
99
brandUrl: undefined, // disables link on the title
1010
brandImage: undefined,
1111

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "frappe-ui-react",
33
"private": true,
4-
"version": "1.0.0-beta.4",
4+
"version": "1.0.0",
55
"type": "module",
66
"workspaces": [
77
"packages/*"

packages/frappe-ui-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@rtcamp/frappe-ui-react",
3-
"version": "1.0.0-beta.4",
3+
"version": "1.0.0",
44
"main": "dist/index.js",
55
"module": "dist/index.js",
66
"types": "dist-types/index.d.ts",

packages/frappe-ui-react/src/components/autoComplete/autoComplete.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ const Autocomplete: React.FC<AutocompleteProps> = ({
295295
);
296296

297297
return (
298-
<div className="w-full">
298+
<div className="min-w-24 w-full">
299299
<Combobox
300300
value={selectedComboboxValue}
301301
onChange={handleComboboxChange}
@@ -349,7 +349,7 @@ const Autocomplete: React.FC<AutocompleteProps> = ({
349349
)}
350350
body={({ isOpen: isPopoverOpen }) =>
351351
isPopoverOpen && (
352-
<div className="relative mt-1 w-fit max-w-md rounded-lg bg-surface-modal text-base shadow-2xl">
352+
<div className="relative mt-1 max-w-md rounded-lg bg-surface-modal text-base shadow-2xl">
353353
{!hideSearch && (
354354
<div>
355355
<div className="sticky top-0 z-[100] flex items-stretch space-x-1.5 bg-surface-modal py-1.5 rounded-lg">

packages/frappe-ui-react/src/components/formControl/formControl.stories.tsx

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,13 @@ export const Autocomplete: Story = {
156156
render: (args) => {
157157
const [value, setValue] = useState("");
158158
return (
159-
<FormControl
160-
{...args}
161-
value={value}
162-
onChange={(_value: string) => setValue(_value)}
163-
/>
159+
<div className="w-40">
160+
<FormControl
161+
{...args}
162+
value={value}
163+
onChange={(_value: string) => setValue(_value)}
164+
/>
165+
</div>
164166
);
165167
},
166168
};

0 commit comments

Comments
 (0)