@propelinc/citrus-ui 1.0.0 → 1.0.2

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 (122) hide show
  1. package/README.md +21 -15
  2. package/dist/index.cdn.css +1 -0
  3. package/dist/index.cdn.mjs +21718 -0
  4. package/dist/index.cdn.mjs.map +1 -0
  5. package/dist/styles/main.css +466 -62
  6. package/dist/styles/utils.css +390 -0
  7. package/package.json +5 -2
  8. package/src/components/CTextField.vue +11 -5
  9. package/src/styles/_core.scss +1 -0
  10. package/src/styles/_reset.scss +93 -78
  11. package/src/styles/utils.scss +50 -0
  12. package/dist/colors/colors.d.ts +0 -31
  13. package/dist/colors/theme.d.ts +0 -3
  14. package/dist/colors/util-classes.d.ts +0 -11
  15. package/dist/components/CAccordion.vue.d.ts +0 -21
  16. package/dist/components/CAccordionItem.vue.d.ts +0 -41
  17. package/dist/components/CAppBar.vue.d.ts +0 -156
  18. package/dist/components/CBadge.vue.d.ts +0 -52
  19. package/dist/components/CBottomSheet.vue.d.ts +0 -226
  20. package/dist/components/CButton/CButton.vue.d.ts +0 -231
  21. package/dist/components/CButton/types.d.ts +0 -5
  22. package/dist/components/CButtonStack.vue.d.ts +0 -24
  23. package/dist/components/CCard.vue.d.ts +0 -107
  24. package/dist/components/CCardFooter.vue.d.ts +0 -26
  25. package/dist/components/CCardHeader.vue.d.ts +0 -3
  26. package/dist/components/CCardSection.vue.d.ts +0 -17
  27. package/dist/components/CCheckbox.vue.d.ts +0 -145
  28. package/dist/components/CCol.vue.d.ts +0 -21
  29. package/dist/components/CDivider.vue.d.ts +0 -17
  30. package/dist/components/CDobField.vue.d.ts +0 -2109
  31. package/dist/components/CDobSelect.vue.d.ts +0 -398
  32. package/dist/components/CEmailField.vue.d.ts +0 -699
  33. package/dist/components/CExpandTransition.vue.d.ts +0 -19
  34. package/dist/components/CFadeTransition.vue.d.ts +0 -3
  35. package/dist/components/CFileInput.vue.d.ts +0 -98
  36. package/dist/components/CFixedPageFooter.vue.d.ts +0 -106
  37. package/dist/components/CForm.vue.d.ts +0 -29
  38. package/dist/components/CFormFieldCounter.vue.d.ts +0 -42
  39. package/dist/components/CIconButton.vue.d.ts +0 -390
  40. package/dist/components/CLabel.vue.d.ts +0 -32
  41. package/dist/components/CListItem.vue.d.ts +0 -208
  42. package/dist/components/CListItemContent.vue.d.ts +0 -27
  43. package/dist/components/CListItemIcon.vue.d.ts +0 -54
  44. package/dist/components/CLoader.vue.d.ts +0 -73
  45. package/dist/components/CLogo.vue.d.ts +0 -19
  46. package/dist/components/CMaskedTextField.vue.d.ts +0 -2012
  47. package/dist/components/CMenu.vue.d.ts +0 -6
  48. package/dist/components/CMenuItem.vue.d.ts +0 -170
  49. package/dist/components/CMenuLabel.vue.d.ts +0 -3
  50. package/dist/components/CModal.vue.d.ts +0 -206
  51. package/dist/components/CModalLoading.vue.d.ts +0 -230
  52. package/dist/components/CNotification.vue.d.ts +0 -589
  53. package/dist/components/CPhoneField.vue.d.ts +0 -2088
  54. package/dist/components/CPill.vue.d.ts +0 -42
  55. package/dist/components/CPillGroup.vue.d.ts +0 -70
  56. package/dist/components/CPopup.vue.d.ts +0 -21
  57. package/dist/components/CProgressLinear.vue.d.ts +0 -61
  58. package/dist/components/CProgressRing.vue.d.ts +0 -103
  59. package/dist/components/CRadio.vue.d.ts +0 -73
  60. package/dist/components/CRadioGroup.vue.d.ts +0 -123
  61. package/dist/components/CRebrand.vue.d.ts +0 -28
  62. package/dist/components/CRow.vue.d.ts +0 -67
  63. package/dist/components/CSafeArea.vue.d.ts +0 -18
  64. package/dist/components/CSectionHeader.vue.d.ts +0 -28
  65. package/dist/components/CSelect.vue.d.ts +0 -293
  66. package/dist/components/CSkeleton.vue.d.ts +0 -3
  67. package/dist/components/CSkeletonLoaderCard.vue.d.ts +0 -21
  68. package/dist/components/CSkeletonLoaderCircle.vue.d.ts +0 -5
  69. package/dist/components/CSkeletonLoaderText.vue.d.ts +0 -44
  70. package/dist/components/CSlideFadeTransition.vue.d.ts +0 -58
  71. package/dist/components/CSplitInput.vue.d.ts +0 -2131
  72. package/dist/components/CSquaredIcon.vue.d.ts +0 -47
  73. package/dist/components/CSsnField.vue.d.ts +0 -2083
  74. package/dist/components/CStatusDot.vue.d.ts +0 -27
  75. package/dist/components/CSwitch.vue.d.ts +0 -54
  76. package/dist/components/CSwitchListItem.vue.d.ts +0 -392
  77. package/dist/components/CTextArea.vue.d.ts +0 -240
  78. package/dist/components/CTextField.vue.d.ts +0 -647
  79. package/dist/components/CTextLink.vue.d.ts +0 -55
  80. package/dist/components/CThirdPartyLogo.vue.d.ts +0 -128
  81. package/dist/components/CTimeago.vue.d.ts +0 -12
  82. package/dist/components/CToast.vue.d.ts +0 -458
  83. package/dist/components/CToastsList.vue.d.ts +0 -430
  84. package/dist/components/CValidationMessage.vue.d.ts +0 -45
  85. package/dist/components/CZipcodeField.vue.d.ts +0 -2080
  86. package/dist/components/index.d.ts +0 -66
  87. package/dist/components/internal/CCloseButton.vue.d.ts +0 -14
  88. package/dist/composables/accessibility.d.ts +0 -1
  89. package/dist/composables/animation.d.ts +0 -12
  90. package/dist/composables/binding.d.ts +0 -19
  91. package/dist/composables/colors.d.ts +0 -13
  92. package/dist/composables/elements.d.ts +0 -3
  93. package/dist/composables/fields.d.ts +0 -9
  94. package/dist/composables/gestures.d.ts +0 -53
  95. package/dist/composables/i18n.d.ts +0 -3
  96. package/dist/composables/id.d.ts +0 -11
  97. package/dist/composables/input-mask.d.ts +0 -18
  98. package/dist/composables/router.d.ts +0 -30
  99. package/dist/composables/slots.d.ts +0 -2
  100. package/dist/composables/toast.d.ts +0 -21
  101. package/dist/composables/validations.d.ts +0 -77
  102. package/dist/index.css +0 -1
  103. package/dist/index.d.ts +0 -8
  104. package/dist/index.mjs +0 -11738
  105. package/dist/index.mjs.map +0 -1
  106. package/dist/plugin.d.ts +0 -3
  107. package/dist/services/animation.d.ts +0 -17
  108. package/dist/services/directives/index.d.ts +0 -2
  109. package/dist/services/directives/scroll-into-view.d.ts +0 -7
  110. package/dist/services/directives/tap-animation.d.ts +0 -6
  111. package/dist/services/id.d.ts +0 -22
  112. package/dist/services/injections/accordions.d.ts +0 -3
  113. package/dist/services/injections/animations.d.ts +0 -2
  114. package/dist/services/injections/buttons.d.ts +0 -4
  115. package/dist/services/injections/forms.d.ts +0 -6
  116. package/dist/services/injections/icon-buttons.d.ts +0 -3
  117. package/dist/services/injections/pills.d.ts +0 -4
  118. package/dist/services/injections/radio.d.ts +0 -10
  119. package/dist/theme/icons.d.ts +0 -36
  120. package/dist/types/CForm.d.ts +0 -12
  121. package/dist/types/font-awesome.d.ts +0 -5
  122. package/dist/types.d.ts +0 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@propelinc/citrus-ui",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/propelinc/citrus-ui"
@@ -59,7 +59,7 @@
59
59
  "*": "prettier --write --ignore-unknown --ignore-path='../../.prettierignore'"
60
60
  },
61
61
  "scripts": {
62
- "build": "vite build && pnpm run build:styles",
62
+ "build": "vite build && vite build --mode cdn && pnpm run build:styles",
63
63
  "build:styles": "node scripts/build-styles.mjs"
64
64
  },
65
65
  "module": "./dist/index.mjs",
@@ -69,6 +69,9 @@
69
69
  "types": "./dist/index.d.ts",
70
70
  "import": "./dist/index.mjs"
71
71
  },
72
+ "./cdn": {
73
+ "import": "./dist/index.cdn.mjs"
74
+ },
72
75
  "./styles/main.css": "./dist/styles/main.css",
73
76
  "./styles/utils.css": "./dist/styles/utils.css",
74
77
  "./src/*": "./src/*"
@@ -4,7 +4,7 @@
4
4
  :class="[
5
5
  {
6
6
  'c-text-field--disabled': disabled,
7
- 'c-text-field--invalid': !isValidationValid,
7
+ 'c-text-field--invalid': isInvalid,
8
8
  'c-text-field--hide-label': hideLabel,
9
9
  'c-text-field--focused': isFocused,
10
10
  'c-text-field--medium': size === 'medium',
@@ -44,7 +44,7 @@
44
44
  :data-test="`${dataTest}-input`"
45
45
  :aria-label="ariaLabel || label || undefined"
46
46
  :aria-describedby="`${idWithFallback}-validation-message ${idWithFallback}-message`"
47
- :aria-invalid="isValidationValid ? 'false' : 'true'"
47
+ :aria-invalid="isInvalid ? 'true' : 'false'"
48
48
  :type="inputType"
49
49
  :placeholder="placeholder"
50
50
  :minlength="minlength"
@@ -248,6 +248,8 @@ export default defineComponent({
248
248
  field: input,
249
249
  });
250
250
 
251
+ const isInvalid = computed(() => !isValidationValid.value || !!props.errorMessage);
252
+
251
253
  const prefixSlotHasContent = useSlotHasContent('prepend-inner');
252
254
  const suffixSlotHasContent = useSlotHasContent('append');
253
255
  const messageSlotHasContent = useSlotHasContent('message');
@@ -330,7 +332,7 @@ export default defineComponent({
330
332
  prefixSlotHasContent,
331
333
  rootStyles,
332
334
  suffixSlotHasContent,
333
- isValidationValid,
335
+ isInvalid,
334
336
  validationMessage,
335
337
 
336
338
  clearInput,
@@ -366,12 +368,16 @@ export default defineComponent({
366
368
  transition: border-color $citrus-field-transition-duration ease;
367
369
  }
368
370
 
369
- .c-text-field--focused .c-text-field__container,
370
- .c-text-field--invalid .c-text-field__container {
371
+ .c-text-field--focused .c-text-field__container {
371
372
  border-color: $color-black;
372
373
  }
373
374
 
375
+ .c-text-field--invalid .c-text-field__label {
376
+ color: $color-status-error;
377
+ }
378
+
374
379
  .c-text-field--invalid .c-text-field__container {
380
+ border-color: $color-status-error;
375
381
  color: $color-status-error;
376
382
  }
377
383
 
@@ -147,6 +147,7 @@ $font-size-3x-large: 32px;
147
147
  $font-size-2x-large: 26px;
148
148
  $font-size-x-large: 24px;
149
149
  $font-size-large: 20px;
150
+ $font-size-medium-large: 18px;
150
151
  $font-size-medium: 16px;
151
152
  $font-size-small: 14px;
152
153
  $font-size-x-small: 12px;
@@ -4,102 +4,117 @@
4
4
  // They are taken from https://www.joshwcomeau.com/css/custom-css-reset/
5
5
  // ****************************************************************************
6
6
 
7
- /* 1. Use a more-intuitive box-sizing model */
8
- *,
9
- *::before,
10
- *::after {
11
- box-sizing: border-box;
12
- }
7
+ /**
8
+ * NOTE about `@layer reset`:
9
+ *
10
+ * By using a CSS Layer, we can specify the order of styles without relying on the order of imports.
11
+ * For example, in freshebt-vue, we can have:
12
+ *
13
+ * ```css
14
+ * @layer reset, base, components, utilities;
15
+ * ```
16
+ *
17
+ * This will ensure reset styles are applied first, and then the Tailwind layers of `base`,
18
+ * `components`, and `utilities` are applied after, regardless of import order.
19
+ */
20
+ @layer reset {
21
+ /* 1. Use a more-intuitive box-sizing model */
22
+ *,
23
+ *::before,
24
+ *::after {
25
+ box-sizing: border-box;
26
+ }
13
27
 
14
- /* 2. Remove default padding and margin */
15
- * {
16
- margin: 0;
17
- padding: 0;
18
- }
28
+ /* 2. Remove default padding and margin */
29
+ * {
30
+ margin: 0;
31
+ padding: 0;
32
+ }
19
33
 
20
- /* 3. Enable keyword animations */
21
- @media (prefers-reduced-motion: no-preference) {
22
- html {
23
- // stylelint-disable-next-line property-no-unknown
24
- interpolate-size: allow-keywords;
34
+ /* 3. Enable keyword animations */
35
+ @media (prefers-reduced-motion: no-preference) {
36
+ html {
37
+ // stylelint-disable-next-line property-no-unknown
38
+ interpolate-size: allow-keywords;
39
+ }
25
40
  }
26
- }
27
41
 
28
- body {
29
- /* 5. Improve text rendering */
30
- -webkit-font-smoothing: antialiased;
42
+ body {
43
+ /* 5. Improve text rendering */
44
+ -webkit-font-smoothing: antialiased;
31
45
 
32
- /* 4. Add accessible line-height */
33
- line-height: 1.5;
34
- }
46
+ /* 4. Add accessible line-height */
47
+ line-height: 1.5;
48
+ }
35
49
 
36
- /* 6. Improve media defaults
50
+ /* 6. Improve media defaults
37
51
  * `svg` and `img` were in this list, but we've had to remove them. On device, this was
38
52
  * causing issues with giant sized icons.
39
53
  */
40
- picture,
41
- video,
42
- canvas {
43
- display: block;
44
- max-width: 100%;
45
- }
54
+ picture,
55
+ video,
56
+ canvas {
57
+ display: block;
58
+ max-width: 100%;
59
+ }
46
60
 
47
- /* 7. Inherit fonts for form controls */
48
- input,
49
- button,
50
- textarea,
51
- select {
52
- background: transparent; // This was in the old reset
53
- border-style: none; // This was in the old reset
54
- color: inherit; // This was in the old reset
55
- font: inherit;
56
- }
61
+ /* 7. Inherit fonts for form controls */
62
+ input,
63
+ button,
64
+ textarea,
65
+ select {
66
+ background: transparent; // This was in the old reset
67
+ border-style: none; // This was in the old reset
68
+ color: inherit; // This was in the old reset
69
+ font: inherit;
70
+ }
57
71
 
58
- /* 8. Avoid text overflows */
59
- p,
60
- h1,
61
- h2,
62
- h3,
63
- h4,
64
- h5,
65
- h6 {
66
- overflow-wrap: break-word;
67
- }
72
+ /* 8. Avoid text overflows */
73
+ p,
74
+ h1,
75
+ h2,
76
+ h3,
77
+ h4,
78
+ h5,
79
+ h6 {
80
+ overflow-wrap: break-word;
81
+ }
68
82
 
69
- p {
70
- margin-bottom: 16px; // matches old defaults
83
+ p {
84
+ margin-bottom: 16px; // matches old defaults
71
85
 
72
- /* 9. Improve line wrapping */
73
- text-wrap: pretty;
74
- }
86
+ /* 9. Improve line wrapping */
87
+ text-wrap: pretty;
88
+ }
75
89
 
76
- h1,
77
- h2,
78
- h3,
79
- h4,
80
- h5,
81
- h6 {
82
- text-wrap: balance;
83
- }
90
+ h1,
91
+ h2,
92
+ h3,
93
+ h4,
94
+ h5,
95
+ h6 {
96
+ text-wrap: balance;
97
+ }
84
98
 
85
- /* 10. Remove default tap highlight */
86
- button,
87
- a {
88
- -webkit-tap-highlight-color: transparent;
89
- }
99
+ /* 10. Remove default tap highlight */
100
+ button,
101
+ a {
102
+ -webkit-tap-highlight-color: transparent;
103
+ }
90
104
 
91
- /* 11. Add default padding to lists */
92
- ol,
93
- ul {
94
- padding-left: 24px;
95
- }
105
+ /* 11. Add default padding to lists */
106
+ ol,
107
+ ul {
108
+ padding-left: 24px;
109
+ }
96
110
 
97
- /* 12. Remove default link styles
111
+ /* 12. Remove default link styles
98
112
  * This was moved from the `_providers.scss` file to citrus-ui so that link styles are consistent
99
113
  * when CMS content is used in MFEs.
100
114
  */
101
- a,
102
- a:active,
103
- a:hover {
104
- text-decoration: none !important;
115
+ a,
116
+ a:active,
117
+ a:hover {
118
+ text-decoration: none !important;
119
+ }
105
120
  }
@@ -119,9 +119,24 @@ $align-options: (
119
119
  align-items: $value !important;
120
120
  }
121
121
 
122
+ // Added to match Tailwind's naming convention for align-items
123
+ .items-#{$option} {
124
+ align-items: $value;
125
+ }
126
+
122
127
  .align-content-#{$option} {
123
128
  align-content: $value !important;
124
129
  }
130
+
131
+ // Added to match Tailwind's naming convention for align-content
132
+ .content-#{$option} {
133
+ align-content: $value;
134
+ }
135
+
136
+ // Added to match Tailwind's naming convention for align-self
137
+ .self-#{$option} {
138
+ align-self: $value;
139
+ }
125
140
  }
126
141
 
127
142
  $justify-options: (
@@ -383,6 +398,11 @@ $text-colors: (
383
398
  );
384
399
 
385
400
  @each $name, $color in $text-colors {
401
+ // NOTE: (kyleshevlin) making these match Tailwind's naming convention
402
+ .bg-#{$name} {
403
+ background-color: $color !important;
404
+ }
405
+
386
406
  .text-#{$name} {
387
407
  color: $color !important;
388
408
  }
@@ -415,6 +435,7 @@ $font-sizes: (
415
435
  'xs': $font-size-x-small,
416
436
  'sm': $font-size-small,
417
437
  'md': $font-size-medium,
438
+ 'ml': $font-size-medium-large,
418
439
  'lg': $font-size-large,
419
440
  'xl': $font-size-x-large,
420
441
  '2xl': $font-size-2x-large,
@@ -446,6 +467,35 @@ $font-weights: (
446
467
  font-style: italic !important;
447
468
  }
448
469
 
470
+ /* Using the same naming convention as Tailwind */
471
+ $letter-spacings: (
472
+ 'tighter': -0.5px,
473
+ 'tight': -0.25px,
474
+ 'normal': normal,
475
+ 'wide': 0.25px,
476
+ 'wider': 0.5px,
477
+ );
478
+
479
+ @each $spacing, $s in $letter-spacings {
480
+ .tracking-#{$spacing} {
481
+ letter-spacing: $s;
482
+ }
483
+ }
484
+
485
+ /* This does not use the same naming convention as Tailwind, but we can make ours match it when implemented */
486
+ $line-heights: (
487
+ 'none': 1,
488
+ 'small': 120%,
489
+ 'medium': 125%,
490
+ 'large': 140%,
491
+ );
492
+
493
+ @each $height, $h in $line-heights {
494
+ .leading-#{$height} {
495
+ line-height: $h;
496
+ }
497
+ }
498
+
449
499
  $text-transforms: (
450
500
  'uppercase': uppercase,
451
501
  'lowercase': lowercase,
@@ -1,31 +0,0 @@
1
- export type HexColor = `#${string}`;
2
- export type RgbaColor = `rgba(${number}, ${number}, ${number}, ${number})`;
3
- /**
4
- * CSS color value from the palette (hex or rgba). Use this type when a value
5
- * may be either format, e.g. gray colors are rgba, others are hex.
6
- */
7
- export type CssColor = HexColor | RgbaColor;
8
- /**
9
- * Maps a color name to its corresponding CSS color (hex or rgba).
10
- * Gray neutrals use rgba for transparency; other colors use hex.
11
- *
12
- * NOTE: Please write hex codes in lowercase letters
13
- */
14
- declare const Colors: Record<string, CssColor>;
15
- export default Colors;
16
- /**
17
- * This is a type predicate that will allow TypeScript to know that the string tested is a
18
- * HexColor within the scope of the narrowing.
19
- */
20
- export declare function isHexColor(color?: string): color is HexColor;
21
- export declare function isRgbaColor(color?: string): color is RgbaColor;
22
- export declare function isCssColor(color?: string): color is CssColor;
23
- /**
24
- * This is a type predicate that will allow TypeScript to know that the string tested is a
25
- * key of the Colors object.
26
- */
27
- export declare function isColorKey(color?: string): color is keyof typeof Colors;
28
- /**
29
- * Validates a string as either a hex color or a color key.
30
- */
31
- export declare function isValidColor(value: string): boolean;
@@ -1,3 +0,0 @@
1
- type Theme = Record<string, string>;
2
- declare const _default: Theme;
3
- export default _default;
@@ -1,11 +0,0 @@
1
- /**
2
- * Generates utility classes for each Citrus color.
3
- *
4
- * For example, for blue-500 it creates:
5
- * - `.blue-500` - sets background and border
6
- * - `.blue-500--text` - sets text color
7
- *
8
- * This matches the syntax of Vuetify's utils:
9
- * https://vuetifyjs.com/en/styles/colors/#classes
10
- */
11
- export declare function addColorUtils(): void;
@@ -1,21 +0,0 @@
1
- import { DefineComponent, ExtractPropTypes, Ref, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<ExtractPropTypes<{
3
- /** Removes horizontal padding for all items inside */
4
- fluid: {
5
- type: BooleanConstructor;
6
- default: boolean;
7
- };
8
- }>, {
9
- accordion: Ref<HTMLDivElement | null, HTMLDivElement | null>;
10
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "change"[], "change", PublicProps, Readonly< ExtractPropTypes<{
11
- /** Removes horizontal padding for all items inside */
12
- fluid: {
13
- type: BooleanConstructor;
14
- default: boolean;
15
- };
16
- }>> & Readonly<{
17
- onChange?: ((...args: any[]) => any) | undefined;
18
- }>, {
19
- fluid: boolean;
20
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
21
- export default _default;
@@ -1,41 +0,0 @@
1
- import { default as SlDetails } from '@shoelace-style/shoelace/dist/components/details/details';
2
- import { PropType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- import { IconDefinition } from '@fortawesome/pro-regular-svg-icons';
4
- import { FontAwesomeIconProps } from '@fortawesome/vue-fontawesome';
5
- declare const _default: DefineComponent<ExtractPropTypes<{
6
- /** Controls whether the item is open */
7
- value: {
8
- type: BooleanConstructor;
9
- default: boolean;
10
- };
11
- /** Removes horizontal padding from the content */
12
- fluid: {
13
- type: PropType<boolean | null>;
14
- default: null;
15
- };
16
- }>, {
17
- internalValue: Ref<boolean, boolean>;
18
- faChevronDown: IconDefinition;
19
- details: Ref<SlDetails | null, SlDetails | null>;
20
- injectedOrPropFluid: ComputedRef<boolean>;
21
- onChange: (value: boolean) => void;
22
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, "input"[], "input", PublicProps, Readonly< ExtractPropTypes<{
23
- /** Controls whether the item is open */
24
- value: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- /** Removes horizontal padding from the content */
29
- fluid: {
30
- type: PropType<boolean | null>;
31
- default: null;
32
- };
33
- }>> & Readonly<{
34
- onInput?: ((...args: any[]) => any) | undefined;
35
- }>, {
36
- fluid: boolean | null;
37
- value: boolean;
38
- }, {}, {
39
- FontAwesomeIcon: DefineComponent<FontAwesomeIconProps>;
40
- }, {}, string, ComponentProvideOptions, true, {}, any>;
41
- export default _default;
@@ -1,156 +0,0 @@
1
- import { PropType, DefineComponent, ExtractPropTypes, Ref, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- import { HexColor, default as Colors, isValidColor, CssColor } from '../colors/colors';
3
- declare const _default: DefineComponent<ExtractPropTypes<{
4
- /**
5
- * Used to set the background color of the app bar. Needs to accept either a hex code or a
6
- * a valid color key from the Colors object.
7
- */
8
- backgroundColor: {
9
- type: PropType<HexColor | keyof typeof Colors>;
10
- default: string;
11
- validator: typeof isValidColor;
12
- };
13
- color: {
14
- type: PropType<HexColor | keyof typeof Colors>;
15
- default: undefined;
16
- validator: typeof isValidColor;
17
- };
18
- /** If true, the app bar will be fixed to the top of the viewport. */
19
- fixed: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
- };
23
- /** If true, the app bar will have a bottom border. */
24
- border: {
25
- type: BooleanConstructor;
26
- default: boolean;
27
- };
28
- /** Shows text in the center of the component. Typically used for page names. Overrides the title slot. */
29
- title: {
30
- type: StringConstructor;
31
- default: string;
32
- };
33
- /** Shows a loading spinner. Overrides the title slot. */
34
- loading: {
35
- type: BooleanConstructor;
36
- default: boolean;
37
- };
38
- /** Adds screen reader only text alternative to loading icon, text should be translated */
39
- loaderAccessibleText: {
40
- type: StringConstructor;
41
- default: string;
42
- };
43
- }>, {
44
- bgCssColor: Ref< CssColor | undefined, CssColor | undefined>;
45
- textCssColor: ComputedRef<CssColor>;
46
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
47
- /**
48
- * Used to set the background color of the app bar. Needs to accept either a hex code or a
49
- * a valid color key from the Colors object.
50
- */
51
- backgroundColor: {
52
- type: PropType<HexColor | keyof typeof Colors>;
53
- default: string;
54
- validator: typeof isValidColor;
55
- };
56
- color: {
57
- type: PropType<HexColor | keyof typeof Colors>;
58
- default: undefined;
59
- validator: typeof isValidColor;
60
- };
61
- /** If true, the app bar will be fixed to the top of the viewport. */
62
- fixed: {
63
- type: BooleanConstructor;
64
- default: boolean;
65
- };
66
- /** If true, the app bar will have a bottom border. */
67
- border: {
68
- type: BooleanConstructor;
69
- default: boolean;
70
- };
71
- /** Shows text in the center of the component. Typically used for page names. Overrides the title slot. */
72
- title: {
73
- type: StringConstructor;
74
- default: string;
75
- };
76
- /** Shows a loading spinner. Overrides the title slot. */
77
- loading: {
78
- type: BooleanConstructor;
79
- default: boolean;
80
- };
81
- /** Adds screen reader only text alternative to loading icon, text should be translated */
82
- loaderAccessibleText: {
83
- type: StringConstructor;
84
- default: string;
85
- };
86
- }>> & Readonly<{}>, {
87
- title: string;
88
- border: boolean;
89
- fixed: boolean;
90
- color: string;
91
- backgroundColor: string;
92
- loading: boolean;
93
- loaderAccessibleText: string;
94
- }, {}, {
95
- CLoader: DefineComponent<ExtractPropTypes<{
96
- accessibleText: {
97
- type: StringConstructor;
98
- default: undefined;
99
- };
100
- color: {
101
- type: PropType<HexColor | keyof typeof Colors>;
102
- default: string;
103
- validator: typeof isValidColor;
104
- };
105
- small: {
106
- type: BooleanConstructor;
107
- default: boolean;
108
- };
109
- size: {
110
- type: PropType<"sm" | "lg" | "md">;
111
- default: string;
112
- };
113
- trackColor: {
114
- type: PropType<HexColor | keyof typeof Colors>;
115
- default: string;
116
- validator: typeof isValidColor;
117
- };
118
- }>, {
119
- computedSize: ComputedRef<"sm" | "lg" | "md">;
120
- indicatorColorCode: Ref< CssColor | undefined, CssColor | undefined>;
121
- SIZE_TO_FONT_SIZE: Record<"sm" | "lg" | "md", `${number}px`>;
122
- SIZE_TO_TRACK_WIDTH: Record<"sm" | "lg" | "md", `${number}px`>;
123
- trackColorCode: Ref< CssColor | undefined, CssColor | undefined>;
124
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
125
- accessibleText: {
126
- type: StringConstructor;
127
- default: undefined;
128
- };
129
- color: {
130
- type: PropType<HexColor | keyof typeof Colors>;
131
- default: string;
132
- validator: typeof isValidColor;
133
- };
134
- small: {
135
- type: BooleanConstructor;
136
- default: boolean;
137
- };
138
- size: {
139
- type: PropType<"sm" | "lg" | "md">;
140
- default: string;
141
- };
142
- trackColor: {
143
- type: PropType<HexColor | keyof typeof Colors>;
144
- default: string;
145
- validator: typeof isValidColor;
146
- };
147
- }>> & Readonly<{}>, {
148
- small: boolean;
149
- size: "sm" | "lg" | "md";
150
- accessibleText: string;
151
- color: string;
152
- trackColor: string;
153
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
154
- CFadeTransition: DefineComponent<{}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
155
- }, {}, string, ComponentProvideOptions, true, {}, any>;
156
- export default _default;
@@ -1,52 +0,0 @@
1
- import { DefineComponent, ExtractPropTypes, ComputedRef, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
- declare const _default: DefineComponent<ExtractPropTypes<{
3
- /** Sets the text of the badge, can also use default slot */
4
- text: {
5
- type: StringConstructor;
6
- default: undefined;
7
- };
8
- /** Adds a unique data-test attribute for testing to the container */
9
- dataTest: {
10
- type: StringConstructor;
11
- default: string;
12
- };
13
- /** Sets the background color */
14
- color: {
15
- type: StringConstructor;
16
- default: string;
17
- };
18
- /** Sets the text color */
19
- textColor: {
20
- type: StringConstructor;
21
- default: string;
22
- };
23
- }>, {
24
- computedStyle: ComputedRef<Record<string, string>>;
25
- }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
26
- /** Sets the text of the badge, can also use default slot */
27
- text: {
28
- type: StringConstructor;
29
- default: undefined;
30
- };
31
- /** Adds a unique data-test attribute for testing to the container */
32
- dataTest: {
33
- type: StringConstructor;
34
- default: string;
35
- };
36
- /** Sets the background color */
37
- color: {
38
- type: StringConstructor;
39
- default: string;
40
- };
41
- /** Sets the text color */
42
- textColor: {
43
- type: StringConstructor;
44
- default: string;
45
- };
46
- }>> & Readonly<{}>, {
47
- text: string;
48
- dataTest: string;
49
- color: string;
50
- textColor: string;
51
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
52
- export default _default;