@finsweet/webflow-apps-utils 1.0.9 → 1.0.11

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.
@@ -0,0 +1,7 @@
1
+ type $$ComponentProps = {
2
+ color?: string;
3
+ onchange?: (color: string) => void;
4
+ };
5
+ declare const ColorSelect: import("svelte").Component<$$ComponentProps, {}, "color">;
6
+ type ColorSelect = ReturnType<typeof ColorSelect>;
7
+ export default ColorSelect;
@@ -0,0 +1 @@
1
+ export { default as ColorPicker } from './ColorPicker.svelte';
@@ -0,0 +1 @@
1
+ export { default as ColorPicker } from './ColorPicker.svelte';
@@ -3,6 +3,7 @@ export * from './button';
3
3
  export * from './button-group';
4
4
  export * from './checkbox';
5
5
  export * from './controlled-buttons';
6
+ export * from './color-picker';
6
7
  export * from './copy-text';
7
8
  export * from './divider';
8
9
  export * from './iframe';
@@ -3,6 +3,7 @@ export * from './button';
3
3
  export * from './button-group';
4
4
  export * from './checkbox';
5
5
  export * from './controlled-buttons';
6
+ export * from './color-picker';
6
7
  export * from './copy-text';
7
8
  export * from './divider';
8
9
  export * from './iframe';
@@ -5,6 +5,7 @@
5
5
 
6
6
  import { CheckCircleIcon, CodeIcon, InfoIcon, SettingsIcon } from '../../../icons';
7
7
  import { Button } from '../../button';
8
+ import { ColorPicker } from '../../color-picker';
8
9
  import { Input } from '../../input';
9
10
  import { Section } from '../../section';
10
11
  import { Switch } from '../../switch';
@@ -268,6 +269,13 @@
268
269
  width="130px"
269
270
  />
270
271
 
272
+ <ColorPicker
273
+ color="#8C4C4C"
274
+ onchange={(color) => {
275
+ console.log(color);
276
+ }}
277
+ />
278
+
271
279
  <Input
272
280
  value="Error input"
273
281
  invalid={true}
@@ -158,7 +158,7 @@
158
158
  <DefaultIcon />
159
159
  </span>
160
160
 
161
- <div class="content">
161
+ <div class="notification-content">
162
162
  {#if title}
163
163
  <Text
164
164
  label={title}
@@ -222,7 +222,7 @@
222
222
  flex-shrink: 0;
223
223
  }
224
224
 
225
- .content {
225
+ .notification-content {
226
226
  display: flex;
227
227
  padding-right: var(--spacing-24, 24px);
228
228
  flex-direction: column;
@@ -212,7 +212,6 @@
212
212
  tooltipEl.removeAttribute('data-trigger-type');
213
213
  isActive = false;
214
214
  hidden = true;
215
-
216
215
  activeTooltips = activeTooltips.filter((id) => id !== tooltipId);
217
216
 
218
217
  dispatchEvent('close', true);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@finsweet/webflow-apps-utils",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "Shared utilities for Webflow apps",
5
5
  "homepage": "https://github.com/finsweet/webflow-apps-utils",
6
6
  "repository": {