@cloudparker/moldex.js 0.0.6 → 0.0.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.
Files changed (64) hide show
  1. package/dist/actions/ripple.d.ts +0 -1
  2. package/dist/actions/ripple.js +1 -3
  3. package/dist/button/components/button/button.svelte +22 -16
  4. package/dist/date/index.d.ts +1 -0
  5. package/dist/date/index.js +1 -0
  6. package/dist/date/services/date-service.d.ts +51 -0
  7. package/dist/date/services/date-service.js +205 -0
  8. package/dist/dialog/components/dialog/dialog.svelte +9 -8
  9. package/dist/dialog/components/dialog/dialog.svelte.d.ts +4 -4
  10. package/dist/drawer/index.d.ts +2 -0
  11. package/dist/drawer/index.js +2 -0
  12. package/dist/icon/components/icon/icon.svelte +2 -2
  13. package/dist/icon/services/icon-path-service.d.ts +8 -5
  14. package/dist/icon/services/icon-path-service.js +8 -5
  15. package/dist/index.d.ts +8 -1
  16. package/dist/index.js +8 -1
  17. package/dist/navbar/index.d.ts +2 -0
  18. package/dist/navbar/index.js +2 -0
  19. package/dist/{common/components/vertical-rule/verticcal-rule.svelte.d.ts → ruler/components/vertical-ruler/verticcal-ruler.svelte.d.ts} +3 -3
  20. package/dist/ruler/index.d.ts +2 -0
  21. package/dist/ruler/index.js +2 -0
  22. package/dist/spinner/index.d.ts +2 -0
  23. package/dist/spinner/index.js +2 -0
  24. package/dist/tailwind.css +1 -1
  25. package/dist/text/components/text-await/text-await.svelte +9 -0
  26. package/dist/text/components/text-await/text-await.svelte.d.ts +22 -0
  27. package/dist/text/components/text-copy/text-copy.svelte +30 -0
  28. package/dist/text/components/text-copy/text-copy.svelte.d.ts +24 -0
  29. package/dist/text/components/text-country/text-country.svelte +37 -0
  30. package/dist/text/components/text-country/text-country.svelte.d.ts +20 -0
  31. package/dist/text/components/text-country-state/text-country-state.svelte +39 -0
  32. package/dist/text/components/text-country-state/text-country-state.svelte.d.ts +20 -0
  33. package/dist/text/components/text-currency/text-currency.svelte +20 -0
  34. package/dist/text/components/text-currency/text-currency.svelte.d.ts +22 -0
  35. package/dist/text/components/text-date/text-date.svelte +25 -0
  36. package/dist/text/components/text-date/text-date.svelte.d.ts +24 -0
  37. package/dist/text/components/text-email/text-email.svelte +14 -0
  38. package/dist/text/components/text-email/text-email.svelte.d.ts +23 -0
  39. package/dist/text/components/text-html/text-html.svelte +6 -0
  40. package/dist/text/components/text-html/text-html.svelte.d.ts +20 -0
  41. package/dist/text/components/text-phone/text-phone.svelte +13 -0
  42. package/dist/text/components/text-phone/text-phone.svelte.d.ts +23 -0
  43. package/dist/text/index.d.ts +10 -0
  44. package/dist/text/index.js +10 -0
  45. package/dist/toast/components/toast/toast.svelte +42 -0
  46. package/dist/toast/components/toast/toast.svelte.d.ts +29 -0
  47. package/dist/toast/index.d.ts +3 -0
  48. package/dist/toast/index.js +2 -0
  49. package/dist/toast/services/toast-service.d.ts +5 -0
  50. package/dist/toast/services/toast-service.js +26 -0
  51. package/dist/utils/index.d.ts +1 -0
  52. package/dist/utils/index.js +1 -0
  53. package/dist/utils/services/utils-service.d.ts +72 -0
  54. package/dist/utils/services/utils-service.js +370 -0
  55. package/package.json +4 -2
  56. package/dist/common/index.d.ts +0 -5
  57. package/dist/common/index.js +0 -5
  58. /package/dist/{common → drawer}/components/drawer/drawer.svelte +0 -0
  59. /package/dist/{common → drawer}/components/drawer/drawer.svelte.d.ts +0 -0
  60. /package/dist/{common → navbar}/components/navbar/navbar.svelte +0 -0
  61. /package/dist/{common → navbar}/components/navbar/navbar.svelte.d.ts +0 -0
  62. /package/dist/{common/components/vertical-rule/verticcal-rule.svelte → ruler/components/vertical-ruler/verticcal-ruler.svelte} +0 -0
  63. /package/dist/{common → spinner}/components/spinner/spinner.svelte +0 -0
  64. /package/dist/{common → spinner}/components/spinner/spinner.svelte.d.ts +0 -0
@@ -14,4 +14,3 @@ export declare const LIGHT_RIPPLE_COLOR = "rgba(255, 255, 255, 0.12)";
14
14
  export declare function ripple(node: HTMLElement, { color, light }?: RipplePropsType): {
15
15
  destroy(): void;
16
16
  };
17
- export declare function isTouchDevice(): boolean;
@@ -1,3 +1,4 @@
1
+ import { isTouchDevice } from '../utils/index.js';
1
2
  import '../tailwind.css';
2
3
  export const DARK_RIPPLE_COLOR = 'rgba(0, 0, 0, 0.12)';
3
4
  export const LIGHT_RIPPLE_COLOR = 'rgba(255, 255, 255, 0.12)';
@@ -74,6 +75,3 @@ export function ripple(node, { color, light } = {}) {
74
75
  }
75
76
  };
76
77
  }
77
- export function isTouchDevice() {
78
- return 'ontouchstart' in window || navigator.maxTouchPoints > 0 || navigator.msMaxTouchPoints > 0 || window.matchMedia("(pointer: coarse)").matches;
79
- }
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">import "../../../tailwind.css";
2
2
  import { ripple } from "../../../actions/ripple.js";
3
- import Spinner from "../../../common/components/spinner/spinner.svelte";
4
3
  import Icon from "../../../icon/components/icon/icon.svelte";
4
+ import { Spinner } from "../../../spinner/index.js";
5
5
  let {
6
6
  id = "",
7
7
  form = void 0,
@@ -33,25 +33,31 @@ function maybeRipple(node, options) {
33
33
  </script>
34
34
 
35
35
  {#snippet buttonContent()}
36
- <div class="flex w-full items-center gap-2">
37
- {#if spinner}
38
- <Spinner className="w-4 h-4 {spinnerClassName}" />
36
+ {#if spinner}
37
+ <Spinner className="w-4 h-4 {spinnerClassName}" />
38
+ {/if}
39
+ {#if !onlySpinner}
40
+ {#if iconPath}
41
+ <Icon path={iconPath} className={iconClassName} />
42
+ {/if}
43
+ {#if label}
44
+ <span>{label || ''}</span>
39
45
  {/if}
40
- {#if !onlySpinner}
41
- {#if iconPath}
42
- <Icon path={iconPath} className={iconClassName} />
43
- {/if}
44
- {#if label}
45
- <span>{label || ''}</span>
46
- {/if}
47
- {#if rightIconPath}
48
- <Icon path={rightIconPath} className={rightIconClassName} />
49
- {/if}
46
+ {#if rightIconPath}
47
+ <Icon path={rightIconPath} className={rightIconClassName} />
50
48
  {/if}
51
- </div>
49
+ {/if}
52
50
  {/snippet}
53
51
 
54
- <button {id} {type} {form} class={className} {onclick} {disabled} use:maybeRipple>
52
+ <button
53
+ {id}
54
+ {type}
55
+ {form}
56
+ class="flex items-center justify-center gap-2 {className}"
57
+ {onclick}
58
+ {disabled}
59
+ use:maybeRipple
60
+ >
55
61
  {#if children}
56
62
  {@render children()}
57
63
  {:else}
@@ -0,0 +1 @@
1
+ export * from './services/date-service.js';
@@ -0,0 +1 @@
1
+ export * from './services/date-service.js';
@@ -0,0 +1,51 @@
1
+ import { type unitOfTime } from "moment";
2
+ export declare enum PeriodEnum {
3
+ TODAY = 1,
4
+ TOMORROW = 2,
5
+ YESTERDAY = 3,
6
+ THIS_WEEK = 4,
7
+ LAST_WEEK = 5,
8
+ NEXT_WEEK = 6,
9
+ THIS_MONTH = 7,
10
+ LAST_MONTH = 8,
11
+ NEXT_MONTH = 9,
12
+ THIS_YEAR = 10,
13
+ LAST_YEAR = 11,
14
+ NEXT_YEAR = 12
15
+ }
16
+ export type FirestoreTimestamp = {
17
+ seconds: number;
18
+ nanoseconds: number;
19
+ };
20
+ export declare function getDateWith(yearChange: number): Date;
21
+ export declare function getDateTime(date: string | Date | any): number;
22
+ export declare function momentDiff({ startDate, endDate, unit }: {
23
+ startDate: Date;
24
+ endDate?: Date;
25
+ unit: unitOfTime.Diff;
26
+ }): number;
27
+ export declare function yearsDiff(startDate: Date, endDate?: Date): number;
28
+ export declare function monthsDiff(startDate: Date, endDate?: Date): number;
29
+ export declare function daysDiff(startDate: Date, endDate?: Date): number;
30
+ export declare function hoursDiff(startDate: Date, endDate?: Date): number;
31
+ export declare function minutesDiff(startDate: Date, endDate?: Date): number;
32
+ export declare function getPeriodDates(period: PeriodEnum, currentDate?: Date): {
33
+ startDate: Date | null;
34
+ endDate: Date | null;
35
+ };
36
+ export declare function padTo2Digits(num: number): string;
37
+ export declare function millisToTimeString(milliseconds: number): string;
38
+ export declare function timestampToMillis(timestamp: any): number | undefined;
39
+ export declare function timestampToDate(timestamp: FirestoreTimestamp): Date | undefined;
40
+ export declare function timestampToDateString(timestamp: FirestoreTimestamp): string | undefined;
41
+ export declare function timestampToAgo(timestamp: FirestoreTimestamp): string | undefined;
42
+ export declare function dateToTimestamp(date: Date): {
43
+ seconds: number;
44
+ nanoseconds: number;
45
+ };
46
+ export declare function dateToAgo(date: Date): string | undefined;
47
+ export declare function millisToDateString(millis: number): string | undefined;
48
+ export declare function millisToDate(millis: number): Date | undefined;
49
+ export declare function dateFormat(date: Date, format?: 'MM-DD-YYYY hh:mm a' | 'MM-DD-YYYY' | 'YYYY-MM-DD' | 'YYYY-MM-DDTHH:MM' | string): string | undefined;
50
+ export declare function isDateBetween(date: Date, startDate: Date, endDate: Date): boolean;
51
+ export declare function toDate(value: any): Date | undefined;
@@ -0,0 +1,205 @@
1
+ import moment, {} from "moment";
2
+ export var PeriodEnum;
3
+ (function (PeriodEnum) {
4
+ PeriodEnum[PeriodEnum["TODAY"] = 1] = "TODAY";
5
+ PeriodEnum[PeriodEnum["TOMORROW"] = 2] = "TOMORROW";
6
+ PeriodEnum[PeriodEnum["YESTERDAY"] = 3] = "YESTERDAY";
7
+ PeriodEnum[PeriodEnum["THIS_WEEK"] = 4] = "THIS_WEEK";
8
+ PeriodEnum[PeriodEnum["LAST_WEEK"] = 5] = "LAST_WEEK";
9
+ PeriodEnum[PeriodEnum["NEXT_WEEK"] = 6] = "NEXT_WEEK";
10
+ PeriodEnum[PeriodEnum["THIS_MONTH"] = 7] = "THIS_MONTH";
11
+ PeriodEnum[PeriodEnum["LAST_MONTH"] = 8] = "LAST_MONTH";
12
+ PeriodEnum[PeriodEnum["NEXT_MONTH"] = 9] = "NEXT_MONTH";
13
+ PeriodEnum[PeriodEnum["THIS_YEAR"] = 10] = "THIS_YEAR";
14
+ PeriodEnum[PeriodEnum["LAST_YEAR"] = 11] = "LAST_YEAR";
15
+ PeriodEnum[PeriodEnum["NEXT_YEAR"] = 12] = "NEXT_YEAR";
16
+ })(PeriodEnum || (PeriodEnum = {}));
17
+ export function getDateWith(yearChange) {
18
+ const date = new Date();
19
+ date.setFullYear(date.getFullYear() + yearChange);
20
+ return date;
21
+ }
22
+ export function getDateTime(date) {
23
+ if (date) {
24
+ if (typeof date == 'string') {
25
+ return new Date(date).getTime();
26
+ }
27
+ else if (date instanceof Date) {
28
+ return date.getTime();
29
+ }
30
+ else if (date.seconds) {
31
+ return timestampToMillis(date) || 0;
32
+ }
33
+ }
34
+ return 0;
35
+ }
36
+ export function momentDiff({ startDate, endDate, unit }) {
37
+ if (endDate) {
38
+ return moment(startDate).diff(moment(endDate), unit);
39
+ }
40
+ else {
41
+ return moment().diff(moment(startDate), unit);
42
+ }
43
+ }
44
+ export function yearsDiff(startDate, endDate) {
45
+ return momentDiff({ startDate, endDate, unit: 'y' });
46
+ }
47
+ export function monthsDiff(startDate, endDate) {
48
+ return momentDiff({ startDate, endDate, unit: 'M' });
49
+ }
50
+ export function daysDiff(startDate, endDate) {
51
+ return momentDiff({ startDate, endDate, unit: 'd' });
52
+ }
53
+ export function hoursDiff(startDate, endDate) {
54
+ return momentDiff({ startDate, endDate, unit: 'h' });
55
+ }
56
+ export function minutesDiff(startDate, endDate) {
57
+ return momentDiff({ startDate, endDate, unit: 'm' });
58
+ }
59
+ export function getPeriodDates(period, currentDate = new Date()) {
60
+ const currentDate1 = moment(currentDate);
61
+ const currentDate2 = moment(currentDate);
62
+ let startDate, endDate;
63
+ switch (period) {
64
+ case PeriodEnum.TODAY:
65
+ startDate = currentDate1.startOf('day');
66
+ endDate = currentDate2.endOf('day');
67
+ break;
68
+ case PeriodEnum.TOMORROW:
69
+ startDate = currentDate1.add(1, 'day').startOf('day');
70
+ endDate = currentDate2.add(1, 'day').endOf('day');
71
+ break;
72
+ case PeriodEnum.YESTERDAY:
73
+ startDate = currentDate1.subtract(1, 'day').startOf('day');
74
+ endDate = currentDate2.subtract(1, 'day').endOf('day');
75
+ break;
76
+ case PeriodEnum.THIS_WEEK:
77
+ startDate = currentDate1.startOf('week');
78
+ endDate = currentDate2.endOf('week');
79
+ break;
80
+ case PeriodEnum.LAST_WEEK:
81
+ startDate = currentDate1.subtract(1, 'week').startOf('week');
82
+ endDate = currentDate2.subtract(1, 'week').endOf('week');
83
+ break;
84
+ case PeriodEnum.NEXT_WEEK:
85
+ startDate = currentDate1.add(1, 'week').startOf('week');
86
+ endDate = currentDate2.add(1, 'week').endOf('week');
87
+ break;
88
+ case PeriodEnum.THIS_MONTH:
89
+ startDate = currentDate1.startOf('month');
90
+ endDate = currentDate2.endOf('month');
91
+ break;
92
+ case PeriodEnum.NEXT_MONTH:
93
+ startDate = currentDate1.add(1, 'month').startOf('month');
94
+ endDate = currentDate2.add(1, 'month').endOf('month');
95
+ break;
96
+ case PeriodEnum.LAST_MONTH:
97
+ startDate = currentDate1.subtract(1, 'month').startOf('month');
98
+ endDate = currentDate2.subtract(1, 'month').endOf('month');
99
+ break;
100
+ case PeriodEnum.THIS_YEAR:
101
+ startDate = currentDate1.startOf('year');
102
+ endDate = currentDate2.endOf('year');
103
+ break;
104
+ case PeriodEnum.LAST_YEAR:
105
+ startDate = currentDate1.subtract(1, 'year').startOf('year');
106
+ endDate = currentDate2.subtract(1, 'year').endOf('year');
107
+ break;
108
+ case PeriodEnum.NEXT_YEAR:
109
+ startDate = currentDate1.add(1, 'year').startOf('year');
110
+ endDate = currentDate2.add(1, 'year').endOf('year');
111
+ break;
112
+ default:
113
+ startDate = null;
114
+ endDate = null;
115
+ break;
116
+ }
117
+ return {
118
+ startDate: startDate ? startDate.toDate() : null,
119
+ endDate: endDate ? endDate.toDate() : null,
120
+ };
121
+ }
122
+ export function padTo2Digits(num) {
123
+ return num.toString().padStart(2, '0');
124
+ }
125
+ export function millisToTimeString(milliseconds) {
126
+ let seconds = Math.floor(milliseconds / 1000);
127
+ let minutes = Math.floor(seconds / 60);
128
+ let hours = Math.floor(minutes / 60);
129
+ seconds = seconds % 60;
130
+ minutes = minutes % 60;
131
+ // 👇️ If you don't want to roll hours over, e.g. 24 to 00
132
+ // 👇️ comment (or remove) the line below
133
+ // commenting next line gets you `24:00:00` instead of `00:00:00`
134
+ // or `36:15:31` instead of `12:15:31`, etc.
135
+ hours = hours % 24;
136
+ return `${padTo2Digits(hours)}:${padTo2Digits(minutes)}:${padTo2Digits(seconds)}`;
137
+ }
138
+ export function timestampToMillis(timestamp) {
139
+ if (timestamp && timestamp.seconds) {
140
+ return (timestamp.seconds * 1000) + (timestamp.nanoseconds / 1000000);
141
+ }
142
+ }
143
+ export function timestampToDate(timestamp) {
144
+ if (timestamp && timestamp.seconds) {
145
+ return new Date((timestamp.seconds * 1000) + (timestamp.nanoseconds / 1000000));
146
+ }
147
+ }
148
+ export function timestampToDateString(timestamp) {
149
+ if (timestamp && timestamp.seconds) {
150
+ return moment(new Date(timestamp.seconds * 1000)).format('MM-DD-YYYY hh:mm a');
151
+ }
152
+ }
153
+ export function timestampToAgo(timestamp) {
154
+ if (timestamp && timestamp.seconds) {
155
+ return moment(new Date(timestamp.seconds * 1000)).fromNow();
156
+ }
157
+ }
158
+ export function dateToTimestamp(date) {
159
+ return { seconds: date.getTime() / 1000, nanoseconds: 0 };
160
+ }
161
+ export function dateToAgo(date) {
162
+ if (date) {
163
+ return moment(date).fromNow();
164
+ }
165
+ }
166
+ export function millisToDateString(millis) {
167
+ if (millis) {
168
+ return moment(new Date(millis)).format('MM-DD-YYYY hh:mm a');
169
+ }
170
+ }
171
+ export function millisToDate(millis) {
172
+ if (millis) {
173
+ return new Date(millis);
174
+ }
175
+ }
176
+ export function dateFormat(date, format = 'MM-DD-YYYY hh:mm a') {
177
+ if (date) {
178
+ return moment(date).format(format);
179
+ }
180
+ }
181
+ export function isDateBetween(date, startDate, endDate) {
182
+ const targetDate = date;
183
+ return targetDate >= startDate && targetDate < endDate;
184
+ }
185
+ export function toDate(value) {
186
+ let result = undefined;
187
+ if (value) {
188
+ if (value instanceof Date) {
189
+ result = value;
190
+ }
191
+ else if (typeof value == 'number') {
192
+ result = millisToDate(value);
193
+ }
194
+ else if (typeof value == 'string' && !isNaN(value)) {
195
+ result = millisToDate(parseInt(value));
196
+ }
197
+ else if (typeof value == 'string') {
198
+ result = moment(value).toDate();
199
+ }
200
+ else if (value.seconds) {
201
+ result = timestampToDate(value);
202
+ }
203
+ }
204
+ return result;
205
+ }
@@ -5,7 +5,6 @@ import Button from "../../../button/components/button/button.svelte";
5
5
  import { mdiArrowLeft, mdiClose } from "../../../icon/services/icon-path-service.js";
6
6
  let {
7
7
  id = "",
8
- formId = void 0,
9
8
  cancelable = true,
10
9
  className = "",
11
10
  containerClassName = "",
@@ -39,10 +38,11 @@ let {
39
38
  footerOkButtonType = "button",
40
39
  footerOkButtonSpinner = false,
41
40
  footerOkButtonDisabled = false,
41
+ submitButtonFormId = void 0,
42
42
  size = "sm",
43
43
  bodyClassName = "",
44
- component,
45
- componetProps = {},
44
+ DialogBody,
45
+ dialogBodyProps = {},
46
46
  children,
47
47
  headerChildren,
48
48
  bodyChildren,
@@ -172,13 +172,14 @@ function handleKeyDown(event) {
172
172
  </div>
173
173
  {/if}
174
174
 
175
- <div class="p-4 flex-grow overflow-y-auto {bodyClassName}">
175
+ <div class="p-6 flex-grow overflow-y-auto {bodyClassName}">
176
176
  {#if children}
177
177
  {@render children()}
178
178
  {:else if bodyChildren}
179
179
  {@render bodyChildren(dialogExports)}
180
- {:else if component}
181
- <svelte:component this={component} ...componetProps ...dialogExports />
180
+ {:else if DialogBody?.length==2}
181
+
182
+ <DialogBody ...componetProps ...dialogExports />
182
183
  {/if}
183
184
  </div>
184
185
 
@@ -196,8 +197,8 @@ function handleKeyDown(event) {
196
197
  {#if hasFooterOkButton}
197
198
  <Button
198
199
  id="btn-ok"
199
- form={formId}
200
- type={formId ? 'submit' : footerOkButtonType}
200
+ form={submitButtonFormId}
201
+ type={submitButtonFormId ? 'submit' : footerOkButtonType}
201
202
  className="p-2 px-5 rounded bg-indigo-600 hover:bg-indigo-700 text-white {footerOkButtonClassName}"
202
203
  label={footerOkLable}
203
204
  disabled={footerOkButtonDisabled}
@@ -1,6 +1,5 @@
1
1
  export type DialogPropsType = {
2
2
  id?: string;
3
- formId?: string | null;
4
3
  cancelable?: boolean;
5
4
  className?: string;
6
5
  containerClassName?: string;
@@ -35,9 +34,10 @@ export type DialogPropsType = {
35
34
  footerOkButtonType?: 'button' | 'submit' | 'reset';
36
35
  footerOkButtonSpinner?: boolean;
37
36
  footerOkButtonDisabled?: boolean;
37
+ submitButtonFormId?: string;
38
38
  bodyClassName?: string;
39
- component?: any;
40
- componetProps?: any;
39
+ DialogBody?: Component;
40
+ dialogBodyProps?: any;
41
41
  size?: 'sm' | 'md' | 'lg' | 'full';
42
42
  children?: Snippet;
43
43
  headerChildren?: Snippet<[dialogExports: DialogExportsType]>;
@@ -53,7 +53,7 @@ export type DialogExportsType = {
53
53
  setOkDisabled: (value: boolean) => void;
54
54
  };
55
55
  import '../../../tailwind.css';
56
- import type { Snippet } from 'svelte';
56
+ import type { Component, Snippet } from 'svelte';
57
57
  interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> = any, Events extends Record<string, any> = any, Slots extends Record<string, any> = any, Exports = {}, Bindings = string> {
58
58
  new (options: import('svelte').ComponentConstructorOptions<Props>): import('svelte').SvelteComponent<Props, Events, Slots> & {
59
59
  $$bindings?: Bindings;
@@ -0,0 +1,2 @@
1
+ import Drawer from "./components/drawer/drawer.svelte";
2
+ export { Drawer };
@@ -0,0 +1,2 @@
1
+ import Drawer, {} from "./components/drawer/drawer.svelte";
2
+ export { Drawer };
@@ -1,7 +1,7 @@
1
1
  <script lang="ts">import "../../../tailwind.css";
2
2
  let {
3
3
  path,
4
- className = "",
4
+ className = "w-6 h-6",
5
5
  size = 24,
6
6
  fill = "currentColor",
7
7
  viewBox = ""
@@ -11,6 +11,6 @@ $effect(() => {
11
11
  });
12
12
  </script>
13
13
 
14
- <svg class=" h-6 w-6 align-middle {className}" {viewBox} fill="currentColor">
14
+ <svg class=" align-middle {className}" {viewBox} fill="currentColor">
15
15
  <path d={path} />
16
16
  </svg>
@@ -1,9 +1,12 @@
1
- export declare const mdiChevronDown = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z";
1
+ export declare const mdiArrowLeft = "M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z";
2
2
  export declare const mdiBellOutline = "M10 21H14C14 22.1 13.1 23 12 23S10 22.1 10 21M21 19V20H3V19L5 17V11C5 7.9 7 5.2 10 4.3V4C10 2.9 10.9 2 12 2S14 2.9 14 4V4.3C17 5.2 19 7.9 19 11V17L21 19M17 11C17 8.2 14.8 6 12 6S7 8.2 7 11V18H17V11Z";
3
- export declare const mdiCheckCircleOutline = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z";
4
3
  export declare const mdiCheckCircle = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z";
4
+ export declare const mdiCheckCircleOutline = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z";
5
+ export declare const mdiChevronDown = "M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z";
5
6
  export declare const mdiChevronRight = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z";
6
- export declare const mdiMenu = "M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z";
7
- export declare const mdiFlowerTulip = "M3,13A9,9 0 0,0 12,22A9,9 0 0,0 3,13M12,22A9,9 0 0,0 21,13A9,9 0 0,0 12,22M18,3V8A6,6 0 0,1 12,14A6,6 0 0,1 6,8V3C6.74,3 7.47,3.12 8.16,3.39C8.71,3.62 9.2,3.96 9.61,4.39L12,2L14.39,4.39C14.8,3.96 15.29,3.62 15.84,3.39C16.53,3.12 17.26,3 18,3Z";
8
7
  export declare const mdiClose = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";
9
- export declare const mdiArrowLeft = "M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z";
8
+ export declare const mdiContentCopy = "M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z";
9
+ export declare const mdiEmailOutline = "M22 6C22 4.9 21.1 4 20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6M20 6L12 11L4 6H20M20 18H4V8L12 13L20 8V18Z";
10
+ export declare const mdiFlowerTulip = "M3,13A9,9 0 0,0 12,22A9,9 0 0,0 3,13M12,22A9,9 0 0,0 21,13A9,9 0 0,0 12,22M18,3V8A6,6 0 0,1 12,14A6,6 0 0,1 6,8V3C6.74,3 7.47,3.12 8.16,3.39C8.71,3.62 9.2,3.96 9.61,4.39L12,2L14.39,4.39C14.8,3.96 15.29,3.62 15.84,3.39C16.53,3.12 17.26,3 18,3Z";
11
+ export declare const mdiMenu = "M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z";
12
+ export declare const mdiPhone = "M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z";
@@ -1,10 +1,13 @@
1
1
  // MDI
2
- export const mdiChevronDown = 'M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z';
2
+ export const mdiArrowLeft = "M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z";
3
3
  export const mdiBellOutline = 'M10 21H14C14 22.1 13.1 23 12 23S10 22.1 10 21M21 19V20H3V19L5 17V11C5 7.9 7 5.2 10 4.3V4C10 2.9 10.9 2 12 2S14 2.9 14 4V4.3C17 5.2 19 7.9 19 11V17L21 19M17 11C17 8.2 14.8 6 12 6S7 8.2 7 11V18H17V11Z';
4
- export const mdiCheckCircleOutline = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z";
5
4
  export const mdiCheckCircle = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z";
5
+ export const mdiCheckCircleOutline = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z";
6
+ export const mdiChevronDown = 'M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z';
6
7
  export const mdiChevronRight = "M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z";
7
- export const mdiMenu = "M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z";
8
- export const mdiFlowerTulip = "M3,13A9,9 0 0,0 12,22A9,9 0 0,0 3,13M12,22A9,9 0 0,0 21,13A9,9 0 0,0 12,22M18,3V8A6,6 0 0,1 12,14A6,6 0 0,1 6,8V3C6.74,3 7.47,3.12 8.16,3.39C8.71,3.62 9.2,3.96 9.61,4.39L12,2L14.39,4.39C14.8,3.96 15.29,3.62 15.84,3.39C16.53,3.12 17.26,3 18,3Z";
9
8
  export const mdiClose = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";
10
- export const mdiArrowLeft = "M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z";
9
+ export const mdiContentCopy = "M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z";
10
+ export const mdiEmailOutline = "M22 6C22 4.9 21.1 4 20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6M20 6L12 11L4 6H20M20 18H4V8L12 13L20 8V18Z";
11
+ export const mdiFlowerTulip = "M3,13A9,9 0 0,0 12,22A9,9 0 0,0 3,13M12,22A9,9 0 0,0 21,13A9,9 0 0,0 12,22M18,3V8A6,6 0 0,1 12,14A6,6 0 0,1 6,8V3C6.74,3 7.47,3.12 8.16,3.39C8.71,3.62 9.2,3.96 9.61,4.39L12,2L14.39,4.39C14.8,3.96 15.29,3.62 15.84,3.39C16.53,3.12 17.26,3 18,3Z";
12
+ export const mdiMenu = "M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z";
13
+ export const mdiPhone = "M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,12 @@
1
1
  export * from './actions/index.js';
2
2
  export * from './button/index.js';
3
- export * from './common/index.js';
3
+ export * from './date/index.js';
4
4
  export * from './dialog/index.js';
5
+ export * from './drawer/index.js';
5
6
  export * from './icon/index.js';
7
+ export * from './navbar/index.js';
8
+ export * from './ruler/index.js';
9
+ export * from './spinner/index.js';
10
+ export * from './text/index.js';
11
+ export * from './toast/index.js';
12
+ export * from './utils/index.js';
package/dist/index.js CHANGED
@@ -1,5 +1,12 @@
1
1
  export * from './actions/index.js';
2
2
  export * from './button/index.js';
3
- export * from './common/index.js';
3
+ export * from './date/index.js';
4
4
  export * from './dialog/index.js';
5
+ export * from './drawer/index.js';
5
6
  export * from './icon/index.js';
7
+ export * from './navbar/index.js';
8
+ export * from './ruler/index.js';
9
+ export * from './spinner/index.js';
10
+ export * from './text/index.js';
11
+ export * from './toast/index.js';
12
+ export * from './utils/index.js';
@@ -0,0 +1,2 @@
1
+ import Navbar from "./components/navbar/navbar.svelte";
2
+ export { Navbar };
@@ -0,0 +1,2 @@
1
+ import Navbar from "./components/navbar/navbar.svelte";
2
+ export { Navbar };
@@ -12,10 +12,10 @@ interface $$__sveltets_2_IsomorphicComponent<Props extends Record<string, any> =
12
12
  };
13
13
  z_$$bindings?: Bindings;
14
14
  }
15
- declare const VerticcalRule: $$__sveltets_2_IsomorphicComponent<{
15
+ declare const VerticcalRuler: $$__sveltets_2_IsomorphicComponent<{
16
16
  className?: string;
17
17
  }, {
18
18
  [evt: string]: CustomEvent<any>;
19
19
  }, {}, {}, "">;
20
- type VerticcalRule = InstanceType<typeof VerticcalRule>;
21
- export default VerticcalRule;
20
+ type VerticcalRuler = InstanceType<typeof VerticcalRuler>;
21
+ export default VerticcalRuler;
@@ -0,0 +1,2 @@
1
+ import VerticcalRuler from "./components/vertical-ruler/verticcal-ruler.svelte";
2
+ export { VerticcalRuler, };
@@ -0,0 +1,2 @@
1
+ import VerticcalRuler from "./components/vertical-ruler/verticcal-ruler.svelte";
2
+ export { VerticcalRuler, };
@@ -0,0 +1,2 @@
1
+ import Spinner from "./components/spinner/spinner.svelte";
2
+ export { Spinner };
@@ -0,0 +1,2 @@
1
+ import Spinner from "./components/spinner/spinner.svelte";
2
+ export { Spinner };