@skeletonlabs/skeleton 2.6.0-dev.8e61daab → 2.6.0-dev.df49cc50

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.
@@ -4,6 +4,7 @@ export let max = 100;
4
4
  export let height = "h-2";
5
5
  export let rounded = "rounded-token";
6
6
  export let transition = "transition-[width]";
7
+ export let animIndeterminate = "anim-indeterminate";
7
8
  export let meter = "bg-surface-900-50-token";
8
9
  export let track = "bg-surface-200-700-token";
9
10
  export let labelledby = "";
@@ -14,7 +15,7 @@ $:
14
15
  $:
15
16
  indeterminate = value === void 0 || value < 0;
16
17
  $:
17
- classesIndeterminate = indeterminate ? "animIndeterminate" : "";
18
+ classesIndeterminate = indeterminate ? animIndeterminate : "";
18
19
  $:
19
20
  classesTrack = `${cTrack} ${track} ${height} ${rounded} ${$$props.class ?? ""}`;
20
21
  $:
@@ -36,12 +37,12 @@ $:
36
37
  </div>
37
38
 
38
39
  <style>
39
- .animIndeterminate {
40
+ .anim-indeterminate {
40
41
  transform-origin: 0% 50%;
41
- animation: animIndeterminate 2s infinite linear;
42
+ animation: anim-indeterminate 2s infinite linear;
42
43
  }
43
44
  /* prettier-ignore */
44
- @keyframes animIndeterminate {
45
+ @keyframes anim-indeterminate {
45
46
  0% { transform: translateX(0) scaleX(0); }
46
47
  40% { transform: translateX(0) scaleX(0.4); }
47
48
  100% { transform: translateX(100%) scaleX(0.5); }
@@ -14,6 +14,8 @@ declare const __propDef: {
14
14
  rounded?: string | undefined;
15
15
  /** Provide classes to set the meter transition styles.*/
16
16
  transition?: string | undefined;
17
+ /** Provide classes to replace the default animation styles.*/
18
+ animIndeterminate?: string | undefined;
17
19
  /** Sets the base classes of the meter element.*/
18
20
  meter?: string | undefined;
19
21
  /** Sets the base classes of the track element.*/
@@ -1,8 +1,9 @@
1
1
  <script>import { setContext } from "svelte";
2
2
  export let display = "inline-flex";
3
+ export let flexDirection = "inline-flex";
4
+ export let gap = "gap-1";
3
5
  export let background = "bg-surface-200-700-token";
4
6
  export let border = "border-token border-surface-400-500-token";
5
- export let spacing = "";
6
7
  export let rounded = "rounded-token";
7
8
  export let padding = "px-4 py-1";
8
9
  export let active = "variant-filled";
@@ -20,9 +21,7 @@ setContext("fill", fill);
20
21
  setContext("regionLabel", regionLabel);
21
22
  const cBase = "p-1";
22
23
  $:
23
- spacing = `${display.includes("flex-col") ? "" : "space-x-1"}`;
24
- $:
25
- classesBase = `${cBase} ${display} ${background} ${border} ${spacing} ${rounded} ${$$props.class ?? ""}`;
24
+ classesBase = `${cBase} ${display} ${flexDirection} ${gap} ${background} ${border} ${rounded} ${$$props.class ?? ""}`;
26
25
  </script>
27
26
 
28
27
  <div class="radio-group {classesBase}" data-testid="radio-group" role="radiogroup" aria-labelledby={labelledby}>
@@ -2,14 +2,16 @@ import { SvelteComponentTyped } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  [x: string]: any;
5
- /** Provide display classes. Set `flex` to stretch full width.*/
5
+ /** Provide display classes. Use `flex` to stretch full width.*/
6
6
  display?: string | undefined;
7
+ /** Provide classes to set flex-direction. Use `flex-col` for vertical layout.*/
8
+ flexDirection?: string | undefined;
9
+ /** Provide classes to set gap spacing between items.*/
10
+ gap?: string | undefined;
7
11
  /** Provide classes to set the base background color.*/
8
12
  background?: string | undefined;
9
13
  /** Provide classes to set the border styles.*/
10
14
  border?: string | undefined;
11
- /** Provide classes horizontal spacing between items.*/
12
- spacing?: string | undefined;
13
15
  /** Provide classes to set the border radius.*/
14
16
  rounded?: string | undefined;
15
17
  /** Provide classes to set the RadioItem padding.*/
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@skeletonlabs/skeleton",
3
- "version": "2.6.0-dev.8e61daab",
3
+ "version": "2.6.0-dev.df49cc50",
4
4
  "description": "A SvelteKit component library.",
5
5
  "author": "endigo9740 <chris@skeletonlabs.dev>",
6
6
  "repository": {