@marianmeres/stuic 1.115.0 → 1.116.0

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.
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import type { Writable } from 'svelte/store';
3
2
  export type EffectAllowed = 'copy' | 'none' | 'copyLink' | 'copyMove' | 'link' | 'linkMove' | 'move' | 'all' | 'uninitialized';
4
3
  export type DropEffect = 'copy' | 'none' | 'link' | 'move';
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  import { type Readable, type Writable } from 'svelte/store';
3
2
  import type { Alignment } from '../../utils/calculate-alignment.js';
4
3
  export declare class TooltipConfig {
@@ -79,13 +79,13 @@ declare const __propDef: {
79
79
  posXMobile: NOTIFICATIONS_POSX;
80
80
  posY: NOTIFICATIONS_POSY;
81
81
  posYMobile: NOTIFICATIONS_POSY;
82
- }> | undefined;
82
+ }>;
83
83
  acp: ReturnType<typeof createAlertConfirmPromptStore>;
84
84
  forceAsHtml?: boolean | undefined;
85
- defaultIcons?: Partial<AlertConfirmPromptIcons> | undefined;
86
- classes?: Partial<AlertConfirmPromptKnownClasses> | undefined;
87
- classesByVariant?: Partial<Record<AlertConfirmPromptVariant, Partial<AlertConfirmPromptKnownClasses>>> | undefined;
88
- backdropFadeIn?: boolean | undefined;
85
+ defaultIcons?: Partial<AlertConfirmPromptIcons>;
86
+ classes?: Partial<AlertConfirmPromptKnownClasses>;
87
+ classesByVariant?: Partial<Record<AlertConfirmPromptVariant, Partial<AlertConfirmPromptKnownClasses>>>;
88
+ backdropFadeIn?: boolean;
89
89
  };
90
90
  events: {
91
91
  [evt: string]: CustomEvent<any>;
@@ -2,20 +2,20 @@ import { SvelteComponent } from "svelte";
2
2
  export declare const appShellSetHtmlBodyHeight: () => (() => any);
3
3
  declare const __propDef: {
4
4
  props: {
5
- class?: string | undefined;
6
- railClass?: string | undefined;
7
- headerClass?: string | undefined;
8
- contentClass?: string | undefined;
9
- sidebarLeftClass?: string | undefined;
10
- pageClass?: string | undefined;
11
- pageHeaderClass?: string | undefined;
12
- pageMainClass?: string | undefined;
13
- pageFooterClass?: string | undefined;
14
- sidebarRightClass?: string | undefined;
15
- footerClass?: string | undefined;
16
- scrollbarGutter?: string | undefined;
17
- id?: string | undefined;
18
- pageFlexGrow?: 0 | 1 | 2 | 3 | 4 | 5 | undefined;
5
+ class?: string;
6
+ railClass?: string;
7
+ headerClass?: string;
8
+ contentClass?: string;
9
+ sidebarLeftClass?: string;
10
+ pageClass?: string;
11
+ pageHeaderClass?: string;
12
+ pageMainClass?: string;
13
+ pageFooterClass?: string;
14
+ sidebarRightClass?: string;
15
+ footerClass?: string;
16
+ scrollbarGutter?: string;
17
+ id?: string;
18
+ pageFlexGrow?: 0 | 1 | 2 | 3 | 4 | 5;
19
19
  };
20
20
  events: {
21
21
  scroll: Event;
@@ -7,12 +7,12 @@ export declare class BackdropConfig {
7
7
  import { type FocusTrapOptions } from '../../actions/focus-trap.js';
8
8
  declare const __propDef: {
9
9
  props: {
10
- useFocusTrap?: boolean | undefined;
11
- focusTrapOptions?: Partial<FocusTrapOptions> | undefined;
12
- class?: string | undefined;
13
- fadeInDuration?: number | undefined;
14
- fadeOutDuration?: number | undefined;
15
- transitionEnabled?: boolean | undefined;
10
+ useFocusTrap?: boolean;
11
+ focusTrapOptions?: Partial<FocusTrapOptions>;
12
+ class?: string;
13
+ fadeInDuration?: number;
14
+ fadeOutDuration?: number;
15
+ transitionEnabled?: boolean;
16
16
  };
17
17
  events: {
18
18
  click: MouseEvent;
@@ -43,14 +43,14 @@ declare const __propDef: {
43
43
  [x: string]: any;
44
44
  class?: string | undefined;
45
45
  href?: string | undefined;
46
- type?: HTMLButtonAttributes['type'];
46
+ type?: HTMLButtonAttributes["type"];
47
47
  shadow?: boolean | undefined;
48
- rounded?: boolean | "full" | undefined;
48
+ rounded?: (boolean | "full") | undefined;
49
49
  variant?: string | undefined;
50
50
  square?: boolean | undefined;
51
51
  disabled?: boolean | undefined;
52
52
  value?: string | undefined;
53
- size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
53
+ size?: ("xs" | "sm" | "md" | "lg" | "xl") | undefined;
54
54
  };
55
55
  events: {
56
56
  focus: FocusEvent;
@@ -12,16 +12,16 @@ export declare class DismissibleMessageConfig {
12
12
  declare const __propDef: {
13
13
  props: {
14
14
  class?: {
15
- box?: string | undefined;
16
- content?: string | undefined;
17
- dismiss?: string | undefined;
18
- x?: string | undefined;
19
- } | undefined;
20
- duration?: number | undefined;
15
+ box?: string;
16
+ content?: string;
17
+ dismiss?: string;
18
+ x?: string;
19
+ };
20
+ duration?: number;
21
21
  message: THC | Error;
22
- onDismiss?: false | (() => void) | null | undefined;
23
- theme?: "primary" | TW_COLORS | "secondary" | undefined;
24
- forceAsHtml?: boolean | undefined;
22
+ onDismiss?: (() => void) | null | false;
23
+ theme?: "primary" | "secondary" | TW_COLORS;
24
+ forceAsHtml?: boolean;
25
25
  };
26
26
  events: {
27
27
  [evt: string]: CustomEvent<any>;
@@ -4,16 +4,16 @@ export type DrawerStore = ReturnType<typeof createDrawerStore>;
4
4
  export declare const createDrawerStore: (open?: boolean) => import("@marianmeres/switch-store").SwitchStore<any>;
5
5
  declare const __propDef: {
6
6
  props: {
7
- drawer: import("@marianmeres/switch-store").SwitchStore<any>;
8
- position?: "left" | "right" | "top" | "bottom" | undefined;
9
- class?: string | undefined;
10
- backdropClass?: string | undefined;
11
- labelledby?: string | undefined;
12
- describedby?: string | undefined;
13
- transitionDuration?: number | undefined;
14
- transitionEnabled?: boolean | undefined;
15
- animOffset?: string | number | undefined;
16
- backdropFocusTrapOptions?: Partial<FocusTrapOptions> | undefined;
7
+ drawer: DrawerStore;
8
+ position?: "left" | "top" | "right" | "bottom";
9
+ class?: string;
10
+ backdropClass?: string;
11
+ labelledby?: string;
12
+ describedby?: string;
13
+ transitionDuration?: number;
14
+ transitionEnabled?: boolean;
15
+ animOffset?: string | number;
16
+ backdropFocusTrapOptions?: Partial<FocusTrapOptions>;
17
17
  };
18
18
  events: {
19
19
  escape: CustomEvent<any>;
@@ -2,12 +2,12 @@ import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
4
  enabled?: boolean | undefined;
5
- shadowOpacity?: number | undefined;
6
- duration?: number | undefined;
7
- targetWidth?: number | undefined;
8
- delayIn?: number | undefined;
9
- delayOut?: number | undefined;
10
- class?: string | undefined;
5
+ shadowOpacity?: number;
6
+ duration?: number;
7
+ targetWidth?: number;
8
+ delayIn?: number;
9
+ delayOut?: number;
10
+ class?: string;
11
11
  };
12
12
  events: {
13
13
  click: MouseEvent;
@@ -30,7 +30,7 @@ declare const __propDef: {
30
30
  [x: string]: any;
31
31
  class?: FieldConfigClasses | undefined;
32
32
  classBySize?: FieldConfigClassesBySize | undefined;
33
- size?: "sm" | "md" | "lg" | undefined;
33
+ size?: ("sm" | "md" | "lg") | undefined;
34
34
  id?: string | undefined;
35
35
  value: string;
36
36
  label?: THC | undefined;
@@ -53,7 +53,7 @@ declare const __propDef: {
53
53
  useTrim?: boolean | undefined;
54
54
  textareaAutoEnlarge?: boolean | undefined;
55
55
  labelLeft?: boolean | undefined;
56
- labelLeftWidth?: "normal" | "wide" | undefined;
56
+ labelLeftWidth?: ("normal" | "wide") | undefined;
57
57
  validate?: ValidateOptions | true | undefined;
58
58
  showAsterixOnRequired?: boolean | undefined;
59
59
  };
@@ -20,15 +20,15 @@ export declare class FieldCheckboxConfig {
20
20
  }
21
21
  declare const __propDef: {
22
22
  props: {
23
- class?: FieldCheckboxConfigClasses | undefined;
24
- classBySize?: FieldCheckboxConfigClassesBySize | undefined;
25
- size?: "sm" | "md" | "lg" | undefined;
26
- id?: string | undefined;
27
- checked?: boolean | undefined;
28
- label?: THC | undefined;
29
- name?: string | undefined;
30
- description?: THC | undefined;
31
- tabindex?: number | undefined;
23
+ class?: FieldCheckboxConfigClasses;
24
+ classBySize?: FieldCheckboxConfigClassesBySize;
25
+ size?: "sm" | "md" | "lg";
26
+ id?: string;
27
+ checked?: boolean;
28
+ label?: THC;
29
+ name?: string;
30
+ description?: THC;
31
+ tabindex?: number;
32
32
  disabled?: boolean | undefined;
33
33
  readonly?: boolean | undefined;
34
34
  required?: boolean | undefined;
@@ -21,17 +21,17 @@ declare const __propDef: {
21
21
  props: {
22
22
  options?: (string | {
23
23
  label: string;
24
- value?: string | undefined;
25
- description?: string | undefined;
26
- })[] | undefined;
27
- class?: FieldRadiosConfigClasses | undefined;
28
- classBySize?: FieldRadiosConfigClassesBySize | undefined;
29
- size?: "sm" | "md" | "lg" | undefined;
30
- name?: string | undefined;
24
+ value?: string;
25
+ description?: string;
26
+ })[];
27
+ class?: FieldRadiosConfigClasses;
28
+ classBySize?: FieldRadiosConfigClassesBySize;
29
+ size?: "sm" | "md" | "lg";
30
+ name?: string;
31
31
  value: any;
32
- disabled?: boolean | undefined;
33
- required?: boolean | undefined;
34
- tabindex?: number | undefined;
32
+ disabled?: boolean;
33
+ required?: boolean;
34
+ tabindex?: number;
35
35
  };
36
36
  events: {
37
37
  blur: FocusEvent;
@@ -29,25 +29,25 @@ declare const __propDef: {
29
29
  props: {
30
30
  options?: (string | {
31
31
  label: string;
32
- value?: string | undefined;
33
- optgroup?: string | undefined;
34
- })[] | undefined;
35
- class?: FieldSelectConfigClasses | undefined;
36
- classBySize?: FieldSelectConfigClassesBySize | undefined;
37
- size?: "sm" | "md" | "lg" | undefined;
38
- id?: string | undefined;
32
+ value?: string;
33
+ optgroup?: string;
34
+ })[];
35
+ class?: FieldSelectConfigClasses;
36
+ classBySize?: FieldSelectConfigClassesBySize;
37
+ size?: "sm" | "md" | "lg";
38
+ id?: string;
39
39
  value: any;
40
- label?: THC | undefined;
41
- name?: string | undefined;
42
- tabindex?: number | undefined;
43
- description?: THC | undefined;
44
- disabled?: boolean | undefined;
45
- required?: boolean | undefined;
40
+ label?: THC;
41
+ name?: string;
42
+ tabindex?: number;
43
+ description?: THC;
44
+ disabled?: boolean;
45
+ required?: boolean;
46
46
  autofocus?: true | undefined;
47
47
  validate?: ValidateOptions | true | undefined;
48
- showAsterixOnRequired?: boolean | undefined;
49
- labelLeft?: boolean | undefined;
50
- labelLeftWidth?: "normal" | "wide" | undefined;
48
+ showAsterixOnRequired?: boolean;
49
+ labelLeft?: boolean;
50
+ labelLeftWidth?: "normal" | "wide";
51
51
  };
52
52
  events: {
53
53
  blur: FocusEvent;
@@ -8,8 +8,8 @@ export declare class FieldsetConfig {
8
8
  }
9
9
  declare const __propDef: {
10
10
  props: {
11
- class?: FieldsetConfigClasses | undefined;
12
- legend?: string | undefined;
11
+ class?: FieldsetConfigClasses;
12
+ legend?: string;
13
13
  };
14
14
  events: {
15
15
  [evt: string]: CustomEvent<any>;
@@ -86,7 +86,11 @@ const gridCols = [
86
86
  {id}
87
87
  type="text"
88
88
  spellcheck="false"
89
- class={twMerge('caret-black', inputClass, `font-mono text-transparent`)}
89
+ class={twMerge(
90
+ 'caret-black',
91
+ inputClass,
92
+ `font-mono text-transparent black:text-transparent`
93
+ )}
90
94
  class:cursor-not-allowed={disabled}
91
95
  style="
92
96
  padding-left: {100 / length / 2}%;
@@ -3,17 +3,17 @@ import type { ValidateOptions } from '../../actions/validate.js';
3
3
  import { type FieldRadiosConfigClasses, type FieldRadiosConfigClassesBySize } from './FieldRadios.svelte';
4
4
  declare const __propDef: {
5
5
  props: {
6
- class?: FieldRadiosConfigClasses | undefined;
7
- classBySize?: FieldRadiosConfigClassesBySize | undefined;
8
- size?: "sm" | "md" | "lg" | undefined;
6
+ class?: FieldRadiosConfigClasses;
7
+ classBySize?: FieldRadiosConfigClassesBySize;
8
+ size?: "sm" | "md" | "lg";
9
9
  value: any;
10
10
  group: any;
11
11
  label: string;
12
12
  name: string;
13
- description?: string | undefined;
14
- tabindex?: number | undefined;
15
- disabled?: boolean | undefined;
16
- required?: boolean | undefined;
13
+ description?: string;
14
+ tabindex?: number;
15
+ disabled?: boolean;
16
+ required?: boolean;
17
17
  validate?: ValidateOptions | true | undefined;
18
18
  };
19
19
  events: {
@@ -7,16 +7,16 @@ export interface ModalDialogAPI {
7
7
  }
8
8
  declare const __propDef: {
9
9
  props: {
10
- openOnMount?: boolean | undefined;
11
- closeOnOutsideClick?: boolean | undefined;
12
- closeOnEscape?: boolean | undefined;
13
- class?: string | undefined;
14
- style?: string | undefined;
15
- backdropFadeIn?: false | "normal" | "slow" | undefined;
16
- toggle?: (() => void) | undefined;
17
- open?: (() => void) | undefined;
18
- close?: (() => void) | undefined;
19
- isOpen?: Writable<boolean> | undefined;
10
+ openOnMount?: boolean;
11
+ closeOnOutsideClick?: boolean;
12
+ closeOnEscape?: boolean;
13
+ class?: string;
14
+ style?: string;
15
+ backdropFadeIn?: false | "normal" | "slow";
16
+ toggle?: () => void;
17
+ open?: () => void;
18
+ close?: () => void;
19
+ isOpen?: Writable<boolean>;
20
20
  };
21
21
  events: {
22
22
  [evt: string]: CustomEvent<any>;
@@ -24,20 +24,20 @@ declare const __propDef: {
24
24
  props: {
25
25
  notifications: ReturnType<typeof createNotificationsStore>;
26
26
  forceAsHtml?: boolean | undefined;
27
- defaultIcons?: Partial<Record<string, () => string>> | undefined;
28
- classes?: Partial<NotificationKnownClasses> | undefined;
29
- classesByType?: Partial<Record<string, Partial<NotificationKnownClasses>>> | undefined;
30
- ariaCloseLabel?: string | undefined;
31
- posX?: "center" | "left" | "right" | undefined;
32
- posXMobile?: "center" | "left" | "right" | undefined;
33
- posY?: "center" | "top" | "bottom" | undefined;
34
- posYMobile?: "center" | "top" | "bottom" | undefined;
35
- getPositionConfig?: (() => {
27
+ defaultIcons?: Partial<Record<NotificationType, () => string>>;
28
+ classes?: Partial<NotificationKnownClasses>;
29
+ classesByType?: Partial<Record<NotificationType, Partial<NotificationKnownClasses>>>;
30
+ ariaCloseLabel?: string;
31
+ posX?: NOTIFICATIONS_POSX;
32
+ posXMobile?: NOTIFICATIONS_POSX;
33
+ posY?: NOTIFICATIONS_POSY;
34
+ posYMobile?: NOTIFICATIONS_POSY;
35
+ getPositionConfig?: () => {
36
36
  posX: "center" | "left" | "right";
37
37
  posY: "center" | "top" | "bottom";
38
38
  posXMobile: "center" | "left" | "right";
39
39
  posYMobile: "center" | "top" | "bottom";
40
- }) | undefined;
40
+ };
41
41
  };
42
42
  events: {
43
43
  [evt: string]: CustomEvent<any>;
@@ -2,7 +2,7 @@ import { SvelteComponent } from "svelte";
2
2
  import { type TooltipOptions } from '../../actions/tooltip/tooltip.js';
3
3
  declare const __propDef: {
4
4
  props: {
5
- options?: Partial<TooltipOptions> | undefined;
5
+ options?: Partial<TooltipOptions>;
6
6
  };
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
@@ -26,17 +26,17 @@ export declare class SwitchConfig {
26
26
  }
27
27
  declare const __propDef: {
28
28
  props: {
29
- class?: string | undefined;
30
- classDot?: string | undefined;
31
- label?: string | undefined;
32
- checked?: boolean | undefined;
33
- disabled?: boolean | undefined;
34
- tabindex?: number | undefined;
29
+ class?: string;
30
+ classDot?: string;
31
+ label?: string;
32
+ checked?: boolean;
33
+ disabled?: boolean;
34
+ tabindex?: number;
35
35
  variant?: string | undefined;
36
- stopPropagation?: boolean | undefined;
37
- preventDefault?: boolean | undefined;
38
- preHook?: SwitchPreHook | undefined;
39
- size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
36
+ stopPropagation?: boolean;
37
+ preventDefault?: boolean;
38
+ preHook?: SwitchPreHook;
39
+ size?: "xs" | "sm" | "md" | "lg" | "xl";
40
40
  };
41
41
  events: {
42
42
  click: MouseEvent;
@@ -1,8 +1,8 @@
1
1
  import { SvelteComponent } from "svelte";
2
2
  declare const __propDef: {
3
3
  props: {
4
- class?: string | undefined;
5
- strokeWidth?: 1 | 2 | 3 | 4 | 1.5 | 2.5 | 3.5 | undefined;
4
+ class?: string;
5
+ strokeWidth?: 1 | 1.5 | 2 | 2.5 | 3 | 3.5 | 4;
6
6
  };
7
7
  events: {
8
8
  [evt: string]: CustomEvent<any>;
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  /**
3
2
  * Indicates that the user has enabled reduced motion on their device.
4
3
  *
@@ -1,4 +1,3 @@
1
- /// <reference types="svelte" />
2
1
  export declare const windowSize: {
3
2
  touch: () => void;
4
3
  subscribe(this: void, run: import("svelte/store").Subscriber<{
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marianmeres/stuic",
3
- "version": "1.115.0",
3
+ "version": "1.116.0",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "vite build && npm run package && node ./scripts/date.js",