@gradio/button 0.3.8 → 0.4.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,23 @@
1
1
  # @gradio/button
2
2
 
3
+ ## 0.4.0
4
+
5
+ ### Features
6
+
7
+ - [#10191](https://github.com/gradio-app/gradio/pull/10191) [`5ce2832`](https://github.com/gradio-app/gradio/commit/5ce28324971e974ae24dc9a229b2160793140fb2) - Support saving chat history in `gr.ChatInterface`. Thanks @abidlabs!
8
+
9
+ ### Dependency updates
10
+
11
+ - @gradio/utils@0.10.0
12
+ - @gradio/upload@0.14.4
13
+ - @gradio/client@1.9.0
14
+
15
+ ## 0.3.9
16
+
17
+ ### Dependency updates
18
+
19
+ - @gradio/upload@0.14.3
20
+
3
21
  ## 0.3.8
4
22
 
5
23
  ### Dependency updates
@@ -171,6 +171,13 @@ export let min_width = void 0;
171
171
  font-size: var(--button-small-text-size);
172
172
  }
173
173
 
174
+ .md {
175
+ border-radius: var(--button-medium-radius);
176
+ padding: var(--button-medium-padding);
177
+ font-weight: var(--button-medium-text-weight);
178
+ font-size: var(--button-medium-text-size);
179
+ }
180
+
174
181
  .lg {
175
182
  border-radius: var(--button-large-radius);
176
183
  padding: var(--button-large-padding);
@@ -183,7 +190,7 @@ export let min_width = void 0;
183
190
  height: var(--text-xl);
184
191
  }
185
192
  .button-icon.right-padded {
186
- margin-right: var(--spacing-xl);
193
+ margin-right: var(--spacing-md);
187
194
  }
188
195
 
189
196
  .huggingface {
@@ -6,7 +6,7 @@ declare const __propDef: {
6
6
  elem_classes?: string[] | undefined;
7
7
  visible?: boolean | undefined;
8
8
  variant?: ("primary" | "secondary" | "stop" | "huggingface") | undefined;
9
- size?: ("sm" | "lg") | undefined;
9
+ size?: ("sm" | "md" | "lg") | undefined;
10
10
  value?: (string | null) | undefined;
11
11
  link?: (string | null) | undefined;
12
12
  icon?: FileData | null;
package/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@gradio/button",
3
- "version": "0.3.8",
3
+ "version": "0.4.0",
4
4
  "description": "Gradio UI packages",
5
5
  "type": "module",
6
6
  "author": "",
7
7
  "license": "ISC",
8
8
  "private": false,
9
9
  "dependencies": {
10
- "@gradio/client": "^1.8.0",
11
- "@gradio/upload": "^0.14.2",
12
- "@gradio/utils": "^0.9.0"
10
+ "@gradio/client": "^1.9.0",
11
+ "@gradio/upload": "^0.14.4",
12
+ "@gradio/utils": "^0.10.0"
13
13
  },
14
14
  "devDependencies": {
15
15
  "@gradio/preview": "^0.13.0"
@@ -6,7 +6,7 @@
6
6
  export let visible = true;
7
7
  export let variant: "primary" | "secondary" | "stop" | "huggingface" =
8
8
  "secondary";
9
- export let size: "sm" | "lg" = "lg";
9
+ export let size: "sm" | "md" | "lg" = "lg";
10
10
  export let value: string | null = null;
11
11
  export let link: string | null = null;
12
12
  export let icon: FileData | null = null;
@@ -174,6 +174,13 @@
174
174
  font-size: var(--button-small-text-size);
175
175
  }
176
176
 
177
+ .md {
178
+ border-radius: var(--button-medium-radius);
179
+ padding: var(--button-medium-padding);
180
+ font-weight: var(--button-medium-text-weight);
181
+ font-size: var(--button-medium-text-size);
182
+ }
183
+
177
184
  .lg {
178
185
  border-radius: var(--button-large-radius);
179
186
  padding: var(--button-large-padding);
@@ -186,7 +193,7 @@
186
193
  height: var(--text-xl);
187
194
  }
188
195
  .button-icon.right-padded {
189
- margin-right: var(--spacing-xl);
196
+ margin-right: var(--spacing-md);
190
197
  }
191
198
 
192
199
  .huggingface {