@phila/phila-ui-core 1.0.24 → 1.0.25-beta.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.
Files changed (49) hide show
  1. package/README.md +79 -0
  2. package/dist/components.css +1 -0
  3. package/dist/components.d.ts +129 -0
  4. package/dist/components.js +1 -0
  5. package/dist/components.mjs +111 -0
  6. package/dist/composables.d.ts +27 -0
  7. package/dist/composables.js +1 -0
  8. package/dist/composables.mjs +5 -0
  9. package/dist/index-BoaHzp_d.js +5 -0
  10. package/dist/index-C8jyC31H.mjs +1724 -0
  11. package/dist/index.d.ts +37 -0
  12. package/dist/index.js +1 -0
  13. package/dist/index.mjs +4 -0
  14. package/dist/styles/template-blue.css +40 -0
  15. package/dist/styles/template-orange.css +40 -0
  16. package/dist/styles/variables.css +14 -0
  17. package/dist/utils.d.ts +37 -0
  18. package/dist/utils.js +1 -0
  19. package/dist/utils.mjs +6 -0
  20. package/package.json +58 -35
  21. package/LICENSE +0 -21
  22. package/dist/images/phila-small-logo.svg +0 -10
  23. package/dist/phila-ui-core.js +0 -2672
  24. package/dist/phila-ui-core.umd.cjs +0 -1
  25. package/dist/styles/scss/all.scss +0 -34
  26. package/dist/styles/scss/base.scss +0 -53
  27. package/dist/styles/scss/buttons.scss +0 -239
  28. package/dist/styles/scss/colors.scss +0 -72
  29. package/dist/styles/scss/content.scss +0 -103
  30. package/dist/styles/scss/deprecated/all.scss +0 -6
  31. package/dist/styles/scss/deprecated/buttons.scss +0 -135
  32. package/dist/styles/scss/deprecated/content-padding.scss +0 -3
  33. package/dist/styles/scss/deprecated/headings.scss +0 -112
  34. package/dist/styles/scss/deprecated/links.scss +0 -32
  35. package/dist/styles/scss/deprecated/table.scss +0 -15
  36. package/dist/styles/scss/deprecated/tabs.scss +0 -14
  37. package/dist/styles/scss/derived-colors.scss +0 -14
  38. package/dist/styles/scss/fonts.scss +0 -71
  39. package/dist/styles/scss/functions.scss +0 -57
  40. package/dist/styles/scss/headings.scss +0 -10
  41. package/dist/styles/scss/helpers.scss +0 -4
  42. package/dist/styles/scss/inputs.scss +0 -350
  43. package/dist/styles/scss/mixins.scss +0 -220
  44. package/dist/styles/scss/table.scss +0 -10
  45. package/dist/styles/scss/textbox-inputs.scss +0 -29
  46. package/dist/styles/scss/variables.scss +0 -86
  47. package/dist/styles/scss/vendors/vendors.scss +0 -1
  48. package/dist/styles/scss/vendors/vue-good-table.scss +0 -15
  49. package/dist/types.d.ts +0 -105
package/dist/types.d.ts DELETED
@@ -1,105 +0,0 @@
1
- import { ComponentInternalInstance, ComputedRef, App, Ref, SetupContext } from 'vue';
2
- import { default as PhilaUICore } from './src/main.ts';
3
- import { RandomID } from './src/inputs/helperFns.ts';
4
-
5
- export interface ResponsiveState {
6
- isMobile: boolean;
7
- isTablet: boolean;
8
- isDesktop: boolean;
9
- isWideScreen: boolean;
10
- headerOffsetHeight?: number;
11
- footerOffsetHeight?: number;
12
- }
13
- export interface ResponsiveHelpers {
14
- responsiveState: ResponsiveState;
15
- updateResponsiveState: (window: Window) => void;
16
- }
17
- export interface InputOptionObject {
18
- value: string;
19
- disabled?: boolean;
20
- [key: string]: HTMLInputValue | undefined;
21
- }
22
- export type HTMLInputValue = string | boolean | number;
23
- export type InputOptions = Record<string, HTMLInputValue>;
24
- export type InputOptionsGroup = Record<string, string[]>;
25
- export type Mask = typeof String | typeof Number | typeof Date | typeof RegExp | Record<"mask", typeof String | typeof Number | typeof Date | typeof RegExp>;
26
- export interface MaskProps {
27
- mask: Mask | Mask[];
28
- pattern?: string;
29
- blocks?: Record<string, Record<string, unknown>>;
30
- format?: () => string;
31
- parse?: () => string;
32
- min?: Mask;
33
- max?: Mask;
34
- lazy?: boolean;
35
- overwrite?: boolean;
36
- }
37
- export type InputErrors = string | string[] | Record<string, string[]>;
38
- export interface InputProps {
39
- id?: string;
40
- errors?: InputErrors;
41
- optgroup?: boolean;
42
- disableableOptions?: boolean;
43
- options?: HTMLInputValue[] | InputOptions | InputOptions[] | InputOptionsGroup | InputOptionObject[];
44
- name?: string;
45
- textKey?: string;
46
- valueKey?: string;
47
- imaskProps?: MaskProps;
48
- }
49
- export type OptionValue = HTMLInputValue | InputOptions;
50
- export interface UseInputComposable {
51
- (instance: ComponentInternalInstance | null, props: InputProps): {
52
- error: ComputedRef<InputErrors>;
53
- hasError: () => void;
54
- classes: ComputedRef<string | string[]>;
55
- optionText: (option: OptionValue) => HTMLInputValue;
56
- optionValue: (option: OptionValue, key: string) => HTMLInputValue;
57
- };
58
- }
59
- export interface TextboxProps {
60
- label?: string;
61
- desc?: string;
62
- placeholder: string;
63
- type?: string;
64
- modelValue: string | number;
65
- icon?: string;
66
- isLoading?: boolean;
67
- innerLabel?: boolean;
68
- }
69
- export interface UseTextboxComposable {
70
- (emit: SetupContext["emit"], props: TextboxProps): {
71
- inputModifierClasses: ComputedRef<string>;
72
- defaultPlaceholder: ComputedRef<string>;
73
- onInput: (e: Event) => void;
74
- };
75
- }
76
- export interface UseMaskedInputComposable {
77
- (instance: ComponentInternalInstance | null, emit: SetupContext["emit"]): {
78
- mask: MaskProps;
79
- localValue: Ref<HTMLInputValue>;
80
- acceptEvent: (e: InputEvent) => void;
81
- completeEvent: (e: InputEvent) => void;
82
- onFocus: () => void;
83
- onBlur: (e: FocusEvent) => void;
84
- };
85
- }
86
- export type UseTextbox = {
87
- useTextboxComposable: UseTextboxComposable;
88
- };
89
- export type UseInput = {
90
- useInputComposable: UseInputComposable;
91
- };
92
- export type UseMaskInput = {
93
- useMaskedInputComposable: UseMaskedInputComposable;
94
- };
95
- export type FormHelpersInterface = {
96
- randomID: RandomID;
97
- useTextbox: UseTextbox;
98
- useInput: UseInput;
99
- useMaskedInput: UseMaskInput;
100
- };
101
- export type PhilaUICoreInterface = {
102
- formHelpers: FormHelpersInterface;
103
- install: (app: App) => void;
104
- };
105
- export default PhilaUICore;