@likable-hair/svelte 0.0.74 → 0.0.76

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.
@@ -3,9 +3,8 @@ import YearSelector from "./YearSelector.svelte";
3
3
  import MonthSelector from "./MonthSelector.svelte";
4
4
  import Calendar from "./Calendar.svelte";
5
5
  import Button from "../buttons/Button.svelte";
6
- export let selectedYear = new Date().getFullYear(), selectedMonth = new Date().getMonth(), selectedDate = new Date(), view = "day", locale = "it", primaryColor = "#008080", headerBackgroundColor = primaryColor, arrowColor = primaryColor, hoverColor = "#00808012", selectedDayColor = "black", headerColor = "white", cardColor = "black", cardBackGroundColor = "rgba(255,255,255,0)", height = "100%", width = "100%";
6
+ export let selectedYear = new Date().getFullYear(), selectedMonth = new Date().getMonth(), selectedDate = new Date(), view = "day", locale = "it", primaryColor = "#008080", headerBackgroundColor = primaryColor, arrowColor = primaryColor, hoverColor = "#00808012", selectedDayColor = "black", headerColor = "white", cardColor = "black", cardBackGroundColor = "rgba(255,255,255,0)", selectableYears = [...Array(150).keys()].map((i) => i + (new Date().getFullYear() - 75)), height = "100%", width = "100%";
7
7
  let selectorText = undefined;
8
- let selectableYears = [...Array(150).keys()].map((i) => i + (new Date().getFullYear() - 75));
9
8
  let elementDisabled = "date";
10
9
  $: visibleSelector = view == "day" || view == "month";
11
10
  $: {
@@ -15,6 +15,7 @@ declare const __propDef: {
15
15
  headerColor?: string;
16
16
  cardColor?: string;
17
17
  cardBackGroundColor?: string;
18
+ selectableYears?: number[];
18
19
  height?: string;
19
20
  width?: string;
20
21
  };
@@ -1,4 +1,4 @@
1
- <script>export let title = undefined, description = undefined, borderColor = "#B8B8B8", iconColor = "#8D8D8D", borderWidth = '1px', maxWidth = undefined, maxHeight = undefined, minWidth = undefined, minHeight = undefined, width = 'fit-content', height = undefined;
1
+ <script>export let title = undefined, description = undefined, borderColor = "#B8B8B8", iconColor = "#8D8D8D", iconSize = 40, iconName = 'mdi-file', borderWidth = '1px', maxWidth = undefined, maxHeight = undefined, minWidth = undefined, minHeight = undefined, width = 'fit-content', height = undefined;
2
2
  import Icon from './Icon.svelte';
3
3
  import Card from '../common/Card.svelte';
4
4
  </script>
@@ -31,10 +31,11 @@ import Card from '../common/Card.svelte';
31
31
  <div
32
32
  style:display="flex"
33
33
  style:align-items="center"
34
+ style:gap="10px"
34
35
  >
35
36
  <Icon
36
- name="mdi-file"
37
- size={40}
37
+ name={iconName}
38
+ size={iconSize}
38
39
  color={iconColor}
39
40
  ></Icon>
40
41
  <div
@@ -5,6 +5,8 @@ declare const __propDef: {
5
5
  description?: string;
6
6
  borderColor?: string;
7
7
  iconColor?: string;
8
+ iconSize?: number;
9
+ iconName?: string;
8
10
  borderWidth?: string;
9
11
  maxWidth?: string;
10
12
  maxHeight?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@likable-hair/svelte",
3
3
  "description": "A Svelte component for likablehair",
4
- "version": "0.0.74",
4
+ "version": "0.0.76",
5
5
  "devDependencies": {
6
6
  "@sveltejs/adapter-auto": "next",
7
7
  "@sveltejs/kit": "next",