contain-css-svelte 0.0.11 → 0.0.13

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.
@@ -22,6 +22,7 @@ let cssVars = injectVars($$props, "button", [
22
22
  class:primary
23
23
  class:warning
24
24
  class:has-icon={iconSlotted}
25
+ {...$$restProps}
25
26
  >
26
27
  <span class="content"><slot /></span>
27
28
  <span class:hidden={!iconSlotted} class="icon"><slot name="icon" /></span>
@@ -26,7 +26,8 @@ $: {
26
26
 
27
27
  <div class="label-sizing-box">
28
28
  <label class="checkbox-item">
29
- <input type="checkbox" bind:checked />
29
+ <input type="checkbox" bind:checked
30
+ {...$$restProps} />
30
31
  <span bind:this={ref}><slot /></span>
31
32
  </label>
32
33
  <label class="invisible">
@@ -2,7 +2,9 @@
2
2
  export let placeholder = "";
3
3
  </script>
4
4
 
5
- <input {placeholder} bind:value on:input on:change on:blur on:focus />
5
+ <input {placeholder} bind:value on:input on:change on:blur on:focus
6
+ {...$$restProps}
7
+ />
6
8
 
7
9
  <style>/* Convenience groupings */
8
10
  /* Warning: because we define a fallback
@@ -1,6 +1,7 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
+ [x: string]: any;
4
5
  value: string;
5
6
  placeholder?: string | undefined;
6
7
  };
@@ -13,8 +14,8 @@ declare const __propDef: {
13
14
  [evt: string]: CustomEvent<any>;
14
15
  };
15
16
  slots: {};
16
- exports?: {} | undefined;
17
- bindings?: string | undefined;
17
+ exports?: undefined;
18
+ bindings?: undefined;
18
19
  };
19
20
  export type InputProps = typeof __propDef.props;
20
21
  export type InputEvents = typeof __propDef.events;
@@ -23,6 +23,7 @@ let style = injectVars($$props, "mini-button", [
23
23
  on:focus
24
24
  on:keydown
25
25
  on:keyup
26
+ {...$$restProps}
26
27
  >
27
28
  <slot />
28
29
  </button>
@@ -25,7 +25,8 @@ $: {
25
25
 
26
26
  <div class="label-sizing-box">
27
27
  <label class="radio-item">
28
- <input {value} type="radio" bind:group />
28
+ <input {value} type="radio" bind:group
29
+ {...$$restProps}/>
29
30
  <span bind:this={ref}><slot /></span>
30
31
  </label>
31
32
  <label class="invisible">
@@ -63,7 +63,8 @@ let targetWidth;
63
63
  let optionButtons = [];
64
64
  </script>
65
65
 
66
- <select bind:value on:change bind:this={selectElement}>
66
+ <select bind:value on:change bind:this={selectElement}
67
+ {...$$restProps}>
67
68
  <slot />
68
69
  </select>
69
70
  <div class="dropdown-wrapper" style:--target-width="{targetWidth}px">
@@ -1,6 +1,7 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
+ [x: string]: any;
4
5
  value: any;
5
6
  };
6
7
  events: {
@@ -11,8 +12,8 @@ declare const __propDef: {
11
12
  slots: {
12
13
  default: {};
13
14
  };
14
- exports?: {} | undefined;
15
- bindings?: string | undefined;
15
+ exports?: undefined;
16
+ bindings?: undefined;
16
17
  };
17
18
  export type SelectProps = typeof __propDef.props;
18
19
  export type SelectEvents = typeof __propDef.events;
@@ -5,7 +5,8 @@
5
5
  export let step = 1;
6
6
  </script>
7
7
 
8
- <input type="range" bind:value {min} {max} {step} />
8
+ <input type="range" bind:value {min} {max} {step}
9
+ {...$$restProps}/>
9
10
 
10
11
  <style>
11
12
  :root {
@@ -2,6 +2,7 @@
2
2
  /** @typedef {typeof __propDef.events} SliderEvents */
3
3
  /** @typedef {typeof __propDef.slots} SliderSlots */
4
4
  export default class Slider extends SvelteComponent<{
5
+ [x: string]: any;
5
6
  value?: number | undefined;
6
7
  min?: number | undefined;
7
8
  max?: number | undefined;
@@ -16,6 +17,7 @@ export type SliderSlots = typeof __propDef.slots;
16
17
  import { SvelteComponent } from "svelte";
17
18
  declare const __propDef: {
18
19
  props: {
20
+ [x: string]: any;
19
21
  value?: number | undefined;
20
22
  min?: number | undefined;
21
23
  max?: number | undefined;
@@ -206,7 +206,7 @@ footer {
206
206
  flex-direction: row-reverse;
207
207
  }
208
208
 
209
- .page .content {
209
+ .page > div > .content {
210
210
  container-type: size;
211
211
  height: 100%;
212
212
  width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "contain-css-svelte",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build-css": "postcss src/lib/vars/defaults.css -o dist/vars/defaults.css",