@mhmo91/schmancy 0.4.21 → 0.4.22

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 (50) hide show
  1. package/dist/{avatar-CQceYbCt.cjs → avatar-CRWIpCVJ.cjs} +2 -2
  2. package/dist/{avatar-CQceYbCt.cjs.map → avatar-CRWIpCVJ.cjs.map} +1 -1
  3. package/dist/{avatar-CPbVhMW7.js → avatar-CZ4ubNmx.js} +2 -2
  4. package/dist/{avatar-CPbVhMW7.js.map → avatar-CZ4ubNmx.js.map} +1 -1
  5. package/dist/badge.cjs +1 -1
  6. package/dist/badge.js +1 -1
  7. package/dist/content-drawer.cjs +1 -1
  8. package/dist/content-drawer.js +1 -1
  9. package/dist/index.cjs +1 -1
  10. package/dist/index.js +191 -189
  11. package/dist/input-BN9xQTH0.cjs +111 -0
  12. package/dist/{input-DcWJTrr9.cjs.map → input-BN9xQTH0.cjs.map} +1 -1
  13. package/dist/{input-P8bwT-4D.js → input-DHNBYBq4.js} +5 -1
  14. package/dist/{input-P8bwT-4D.js.map → input-DHNBYBq4.js.map} +1 -1
  15. package/dist/input.cjs +1 -1
  16. package/dist/input.js +5 -1
  17. package/dist/nav-drawer.cjs +1 -1
  18. package/dist/nav-drawer.js +1 -1
  19. package/dist/teleport.cjs +1 -1
  20. package/dist/teleport.js +1 -1
  21. package/package.json +1 -1
  22. package/types/mixins/index.d.ts +1 -0
  23. package/types/src/busy/spinner.d.ts +1 -0
  24. package/types/src/card/actions.d.ts +3 -3
  25. package/types/src/card/content.d.ts +0 -3
  26. package/types/src/card/media.d.ts +1 -0
  27. package/types/src/chips/chip.d.ts +1 -1
  28. package/types/src/chips/chips.d.ts +1 -1
  29. package/types/src/date-range/date-range-dialog.d.ts +28 -0
  30. package/types/src/date-range/date-range-helpers.d.ts +27 -0
  31. package/types/src/date-range/date-range-presets.d.ts +18 -0
  32. package/types/src/date-range/date-range.d.ts +1 -27
  33. package/types/src/date-range-inline/date-range-inline.d.ts +111 -0
  34. package/types/src/date-range-inline/index.d.ts +2 -0
  35. package/types/src/index.d.ts +2 -0
  36. package/types/src/input/index.d.ts +2 -2
  37. package/types/src/input/input.d.ts +118 -34
  38. package/types/src/progress/index.d.ts +1 -0
  39. package/types/src/progress/progress.d.ts +17 -0
  40. package/types/src/radio-group/radio-button.d.ts +1 -1
  41. package/types/src/radio-group/radio-group.d.ts +1 -1
  42. package/dist/input-DcWJTrr9.cjs +0 -111
  43. package/types/src/data/countries.d.ts +0 -5
  44. package/types/src/data/index.d.ts +0 -1
  45. package/types/src/notification/$notification.d.ts +0 -13
  46. package/types/src/store/action-creator.d.ts +0 -8
  47. package/types/src/store/clear.d.ts +0 -1
  48. package/types/src/v2/form.d.ts +0 -51
  49. package/types/src/v2/index.d.ts +0 -2
  50. package/types/src/v2/input.d.ts +0 -71
@@ -1,5 +0,0 @@
1
- declare const _default: {
2
- name: string;
3
- code: string;
4
- }[];
5
- export default _default;
@@ -1 +0,0 @@
1
- export * from './countries';
@@ -1,13 +0,0 @@
1
- import { SchmancyNotification } from './notification';
2
- export type TNotification = 'success' | 'error' | 'warning' | 'info';
3
- export type TNotificationConfig = {
4
- action?: typeof Function;
5
- duration?: number;
6
- };
7
- export declare const $notify: {
8
- success: (message: string, config?: TNotificationConfig) => SchmancyNotification;
9
- error: (message: string, config?: TNotificationConfig) => SchmancyNotification;
10
- warning: (message: string, config?: TNotificationConfig) => SchmancyNotification;
11
- info: (message: string, config?: TNotificationConfig) => SchmancyNotification;
12
- dismiss: (component: SchmancyNotification) => void;
13
- };
@@ -1,8 +0,0 @@
1
- export type Action<T = any> = {
2
- type: string;
3
- payload?: T;
4
- };
5
- export type ActionCreator<P = void, R = void> = P extends void ? () => R : (payload: P) => R;
6
- export type ActionCreatorMap<T> = {
7
- [K in keyof T]: T[K] extends (...args: infer A) => infer R ? (...args: A) => R : never;
8
- };
@@ -1 +0,0 @@
1
- export default function contextClear(): void;
@@ -1,51 +0,0 @@
1
- declare const SchForm_base: import("../../mixins").Constructor<CustomElementConstructor> & import("../../mixins").Constructor<import("@mixins/tailwind.mixin").ITailwindElementMixin> & import("../../mixins").Constructor<import("lit").LitElement> & import("../../mixins").Constructor<import("../../mixins").IBaseMixin>;
2
- /**
3
- * A form component that enforces native browser validation
4
- * for all contained form elements.
5
- *
6
- * @example
7
- * ```html
8
- * <sch-form @submit=${handleSubmit}>
9
- * <sch-input label="Name" required></sch-input>
10
- * <schmancy-button type="submit">Submit</schmancy-button>
11
- * </sch-form>
12
- * ```
13
- */
14
- export declare class SchForm extends SchForm_base {
15
- /**
16
- * If true, form validation will be skipped
17
- */
18
- novalidate: boolean;
19
- /**
20
- * The form's submission method (get or post)
21
- */
22
- method: 'get' | 'post';
23
- /**
24
- * The URL to submit the form to
25
- */
26
- action: string;
27
- /**
28
- * The form's encoding type
29
- */
30
- enctype: 'application/x-www-form-urlencoded' | 'multipart/form-data' | 'text/plain';
31
- /**
32
- * Reference to the internal form element
33
- */
34
- formElement: HTMLFormElement;
35
- /**
36
- * Handle form submission
37
- * This is the key method that ensures browser validation works
38
- */
39
- private handleSubmit;
40
- /**
41
- * Reset the form
42
- */
43
- reset(): void;
44
- render(): import("lit-html").TemplateResult<1>;
45
- }
46
- declare global {
47
- interface HTMLElementTagNameMap {
48
- 'sch-form': SchForm;
49
- }
50
- }
51
- export {};
@@ -1,2 +0,0 @@
1
- export * from './form';
2
- export * from './input';
@@ -1,71 +0,0 @@
1
- declare const SchInput_base: import("../../mixins").Constructor<import("@mixins/formField.mixin").IFormFieldMixin> & import("../../mixins").Constructor<import("../../mixins").ITailwindElementMixin> & import("../../mixins").Constructor<import("lit").LitElement> & import("../../mixins").Constructor<import("../../mixins").IBaseMixin>;
2
- /**
3
- * A simplified input component that works with browser validation.
4
- *
5
- * @example
6
- * ```html
7
- * <sch-input
8
- * label="Email"
9
- * name="email"
10
- * required
11
- * type="email"
12
- * ></sch-input>
13
- * ```
14
- */
15
- export default class SchInput extends SchInput_base {
16
- /**
17
- * The type of input (text, email, password, etc.)
18
- */
19
- type: string;
20
- /**
21
- * Placeholder text
22
- */
23
- placeholder: string;
24
- /**
25
- * Minimum input length
26
- */
27
- minlength?: number;
28
- /**
29
- * Maximum input length
30
- */
31
- maxlength?: number;
32
- /**
33
- * Pattern for validation
34
- */
35
- pattern?: string;
36
- /**
37
- * Whether to enable autocomplete
38
- */
39
- autocomplete: string;
40
- /**
41
- * Reference to the internal input element
42
- */
43
- private inputRef;
44
- /**
45
- * Handle input change
46
- */
47
- private handleInput;
48
- /**
49
- * Focus the input
50
- */
51
- focus(options?: FocusOptions): void;
52
- /**
53
- * Blur the input
54
- */
55
- blur(): void;
56
- /**
57
- * Let the browser handle validation
58
- */
59
- checkValidity(): boolean;
60
- /**
61
- * Use the browser's built-in validation UI
62
- */
63
- reportValidity(): boolean;
64
- render(): import("lit-html").TemplateResult<1>;
65
- }
66
- declare global {
67
- interface HTMLElementTagNameMap {
68
- 'sch-input': SchInput;
69
- }
70
- }
71
- export {};