fluent-svelte-extra 1.1.7 → 1.1.8

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,35 +22,21 @@ function handleChange(event) {
22
22
  function handleMouseDown() {
23
23
  document.addEventListener("mouseup", () => {
24
24
  dispatch('finish', valuesText.toString());
25
- }, { once: true });
25
+ }, {
26
+ once: true
27
+ });
26
28
  }
27
29
  </script>
28
30
 
29
31
  <div id="sliderComp" {...$$restProps}>
30
- <Slider
31
- bind:value={values}
32
- {min}
33
- {max}
34
- {step}
35
- range
36
- order
37
- on:input={handleChange}
38
- >
39
- <div
40
- slot="left"
41
- class="handle"
42
- on:mousedown={handleMouseDown}
43
- />
44
- <div
45
- slot="right"
46
- class="handle"
47
- on:mousedown={handleMouseDown}
48
- />
49
- </Slider>
50
- <div id="vals">
51
- <TextBlock>{valuesText.split(',')[0]}</TextBlock>
52
- <TextBlock>{valuesText.split(',')[1]}</TextBlock>
53
- </div>
32
+ <Slider bind:value={values} {min} {max} {step} range order on:input={handleChange}>
33
+ <div slot="left" class="handle" on:mousedown={handleMouseDown} />
34
+ <div slot="right" class="handle" on:mousedown={handleMouseDown} />
35
+ </Slider>
36
+ <div id="vals">
37
+ <TextBlock>{valuesText.split(',')[0]}</TextBlock>
38
+ <TextBlock>{valuesText.split(',')[1]}</TextBlock>
39
+ </div>
54
40
  </div>
55
41
 
56
- <style>#vals{justify-content:space-between}#vals,.handle{align-items:center;display:flex}.handle{height:0;justify-content:center;width:0}.handle:after{background-color:#62cdfe;border:5px solid #4d4d4d;border-radius:50%;box-sizing:border-box;content:" ";height:20px;position:absolute;transition:all .1s linear!important;width:20px}.handle:hover:after{border:4px solid #4d4d4d}.handle:active:after{border:6px solid #4d4d4d;box-shadow:0 0 10px rgba(0,0,0,.4)}#sliderComp{--fds-thumb-bg:transparent;--fds-progress-bg:#62cdfe;--fds-track-bg:#454545}</style>
42
+ <style>#vals{justify-content:space-between}#vals,.handle{align-items:center;display:flex}.handle{background-color:var(--fds-control-solid-fill-default);block-size:20px;border-radius:100%;box-shadow:0 0 0 1px var(--fds-control-stroke-default);inline-size:20px;justify-content:center;z-index:10}.handle:before{background-color:var(--fds-accent-default);block-size:12px;border-radius:100%;content:"";inline-size:12px;transition:var(--fds-control-fast-duration) var(--fds-control-fast-out-slow-in-easing) transform}.handle:hover:before{transform:scale(1.167)}.handle:active:before{background-color:var(--fds-accent-tertiary);transform:scale(.833)}#sliderComp{--fds-thumb-bg:transparent;--fds-progress-bg:var(--fds-accent-text-primary);--fds-track-bg:var(--fds-control-strong-fill-default)}</style>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fluent-svelte-extra",
3
- "version": "1.1.7",
3
+ "version": "1.1.8",
4
4
  "description": "A faithful implementation of Microsoft's Fluent Design System in Svelte.",
5
5
  "homepage": "https://github.com/OpenAnime/fluent-svelte-extra",
6
6
  "license": "MIT",