@sierra-95/svelte-scaffold 1.0.57 → 1.0.59

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.
@@ -9,6 +9,8 @@
9
9
  icon = 'fa-circle-xmark' as _icon,
10
10
  iconSize = '16px',
11
11
  iconColor = 'currentColor',
12
+ width = '',
13
+ height = '',
12
14
  ...rest
13
15
  } = $props();
14
16
  </script>
@@ -25,7 +27,7 @@
25
27
  onclick={(e: MouseEvent) => {
26
28
  rest.onclick?.(e);
27
29
  }}
28
- style={absolute ? `position: absolute; ${vertical}: 0; ${horizontal}: 0;` : ``}
30
+ style={absolute ? `position: absolute; ${vertical}: 0; ${horizontal}: 0;` : `${width? `width: ${width};` : ''} ${height? `height: ${height};` : ''}`}
29
31
  aria-label="Times Button"
30
32
  class={absolute ? (vertical === 'top' ? 'sierra-times-top' : 'sierra-times-bottom') : ''}
31
33
  ><i class={`${iconPrefix} ${icon}`} style={`font-size: ${iconSize}; color: ${iconColor};`}></i>
@@ -6,6 +6,8 @@ declare const Times: import("svelte").Component<{
6
6
  icon?: "fa-circle-xmark" | "fa-xmark";
7
7
  iconSize?: string;
8
8
  iconColor?: string;
9
+ width?: string;
10
+ height?: string;
9
11
  } & Record<string, any>, {}, "">;
10
12
  type Times = ReturnType<typeof Times>;
11
13
  export default Times;
@@ -40,9 +40,9 @@
40
40
  out:fly={{ y: -100, duration: 300 }}
41
41
  style="background-color: {menuBackgroundColor}; color: {menuTextColor}; z-index: {zIndex};"
42
42
  >
43
- <div style="height: 40px; justify-content: space-between; align-items: center; display: flex; padding: 0 20px;">
43
+ <div style="height: 40px; justify-content: space-between; align-items: center; display: flex; padding: 0 20px; margin-top: 20px;">
44
44
  <img src={companyLogo} alt="Logo" style="width: {LogoWidth};"/>
45
- <ButtonTimes absolute={false} iconSize="18px" onclick={toggleMenu} iconColor={buttonTimesColor}/>
45
+ <ButtonTimes width="50px" height="100%" absolute={false} iconSize="18px" onclick={toggleMenu} iconColor={buttonTimesColor}/>
46
46
  </div>
47
47
  {@render children?.()}
48
48
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sierra-95/svelte-scaffold",
3
- "version": "1.0.57",
3
+ "version": "1.0.59",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run prepack",