tide-design-system 2.0.50 → 2.0.52

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 (87) hide show
  1. package/.eslintrc.cjs +29 -0
  2. package/.storybook/preview.ts +1 -1
  3. package/dist/css/realm/aero.css +6 -5
  4. package/dist/css/realm/atv.css +8 -7
  5. package/dist/css/realm/boatmart.css +2 -1
  6. package/dist/css/realm/cycle.css +25 -11
  7. package/dist/css/realm/equipment.css +12 -11
  8. package/dist/css/realm/pwc.css +2 -1
  9. package/dist/css/realm/rv.css +4 -4
  10. package/dist/css/realm/snow.css +12 -11
  11. package/dist/css/realm/truck.css +6 -5
  12. package/dist/style.css +1 -1
  13. package/dist/tide-design-system.cjs +2 -2
  14. package/dist/tide-design-system.esm.d.ts +1 -1
  15. package/dist/tide-design-system.esm.js +37 -37
  16. package/dist/utilities/storybook.ts +4 -5
  17. package/dist/utilities/validation.ts +3 -4
  18. package/index.ts +18 -19
  19. package/package.json +1 -1
  20. package/src/assets/css/realm/aero.css +6 -5
  21. package/src/assets/css/realm/atv.css +8 -7
  22. package/src/assets/css/realm/boatmart.css +2 -1
  23. package/src/assets/css/realm/cycle.css +25 -11
  24. package/src/assets/css/realm/equipment.css +12 -11
  25. package/src/assets/css/realm/pwc.css +2 -1
  26. package/src/assets/css/realm/rv.css +4 -4
  27. package/src/assets/css/realm/snow.css +12 -11
  28. package/src/assets/css/realm/truck.css +6 -5
  29. package/src/components/TideAlert.vue +5 -5
  30. package/src/components/TideBackgroundImage.vue +2 -2
  31. package/src/components/TideBadgePremium.vue +2 -2
  32. package/src/components/TideBadgeTrustedPartner.vue +3 -3
  33. package/src/components/TideBreadCrumbs.vue +4 -5
  34. package/src/components/TideButton.vue +7 -6
  35. package/src/components/TideButtonIcon.vue +5 -5
  36. package/src/components/TideButtonPagination.vue +3 -3
  37. package/src/components/TideCard.vue +4 -4
  38. package/src/components/TideCarousel.vue +1 -1
  39. package/src/components/TideChipAction.vue +1 -1
  40. package/src/components/TideChipInput.vue +1 -1
  41. package/src/components/TideDivider.vue +3 -2
  42. package/src/components/TideIcon.vue +6 -6
  43. package/src/components/TideImage.vue +3 -3
  44. package/src/components/TideInputCheckbox.vue +1 -1
  45. package/src/components/TideInputSelect.vue +4 -4
  46. package/src/components/TideInputText.vue +6 -6
  47. package/src/components/TideInputTextarea.vue +3 -3
  48. package/src/components/TideLink.vue +4 -4
  49. package/src/components/TideModal.vue +1 -1
  50. package/src/components/TidePagination.vue +1 -1
  51. package/src/components/TideSeoLinks.vue +2 -2
  52. package/src/components/TideTabs.vue +2 -2
  53. package/src/components/TideToggle.vue +1 -1
  54. package/src/docs/integration.md +1 -1
  55. package/src/stories/DemoCssUtilities.stories.ts +3 -3
  56. package/src/stories/FoundationsBorder.stories.ts +2 -2
  57. package/src/stories/FoundationsGap.stories.ts +2 -2
  58. package/src/stories/FoundationsGrid.stories.ts +2 -2
  59. package/src/stories/FoundationsMargin.stories.ts +2 -2
  60. package/src/stories/FoundationsPadding.stories.ts +2 -2
  61. package/src/stories/FoundationsShadow.stories.ts +2 -2
  62. package/src/stories/FoundationsTransparency.stories.ts +2 -2
  63. package/src/stories/FoundationsTypography.stories.ts +2 -2
  64. package/src/stories/TideAlert.stories.ts +1 -1
  65. package/src/stories/TideBackgroundImage.stories.ts +3 -4
  66. package/src/stories/TideBadgeTrustedPartner.stories.ts +1 -1
  67. package/src/stories/TideBreadCrumbs.stories.ts +2 -2
  68. package/src/stories/TideButton.stories.ts +1 -1
  69. package/src/stories/TideButtonIcon.stories.ts +2 -2
  70. package/src/stories/TideButtonPagination.stories.ts +1 -1
  71. package/src/stories/TideCard.stories.ts +1 -1
  72. package/src/stories/TideCarousel.stories.ts +2 -2
  73. package/src/stories/TideColumns.stories.ts +2 -2
  74. package/src/stories/TideDivider.stories.ts +1 -1
  75. package/src/stories/TideIcon.stories.ts +1 -1
  76. package/src/stories/TideImage.stories.ts +3 -4
  77. package/src/stories/TideInputSelect.stories.ts +2 -2
  78. package/src/stories/TideInputText.stories.ts +1 -1
  79. package/src/stories/TideLink.stories.ts +3 -3
  80. package/src/stories/TideModal.stories.ts +2 -2
  81. package/src/stories/TidePagination.stories.ts +1 -1
  82. package/src/stories/TideSeoLinks.stories.ts +2 -3
  83. package/src/stories/TideTabs.stories.ts +2 -2
  84. package/src/types/Realm.ts +1 -1
  85. package/src/utilities/storybook.ts +4 -5
  86. package/src/utilities/validation.ts +3 -4
  87. package/vite.config.ts +4 -4
@@ -1,15 +1,15 @@
1
1
  <script lang="ts" setup>
2
2
  import { computed, ref, watch } from 'vue';
3
3
 
4
- import type { SelectField } from '@/types/Field';
5
- import type { SelectOption, SelectOptionGroup } from '@/types/Select';
6
-
7
4
  import TideIcon from '@/components/TideIcon.vue';
8
- import { CSS } from '@/types/Styles';
9
5
  import { ICON } from '@/types/Icon';
10
6
  import { SIZE } from '@/types/Size';
7
+ import { CSS } from '@/types/Styles';
11
8
  import { getErrorMessage, getFieldHasError } from '@/utilities/validation';
12
9
 
10
+ import type { SelectField } from '@/types/Field';
11
+ import type { SelectOption, SelectOptionGroup } from '@/types/Select';
12
+
13
13
  interface Props extends SelectField {
14
14
  inputId?: string;
15
15
  supportingText?: string;
@@ -1,18 +1,18 @@
1
1
  <script lang="ts" setup>
2
2
  import { computed, ref, watch } from 'vue';
3
3
 
4
- import type { FormValueTransformer } from '@/types/Form';
5
- import type { Icon } from '@/types/Icon';
6
- import type { TextInputType } from '@/types/TextInput';
7
- import type { ValidationError, Validator } from '@/types/Validation';
8
-
9
4
  import TideIcon from '@/components/TideIcon.vue';
10
- import { CSS } from '@/types/Styles';
11
5
  import { ICON } from '@/types/Icon';
12
6
  import { SIZE } from '@/types/Size';
7
+ import { CSS } from '@/types/Styles';
13
8
  import { TEXT_INPUT_TYPE } from '@/types/TextInput';
14
9
  import { getErrorMessage, getFieldHasError, handleFieldValidation } from '@/utilities/validation';
15
10
 
11
+ import type { FormValueTransformer } from '@/types/Form';
12
+ import type { Icon } from '@/types/Icon';
13
+ import type { TextInputType } from '@/types/TextInput';
14
+ import type { ValidationError, Validator } from '@/types/Validation';
15
+
16
16
  type Props = {
17
17
  autocomplete?: boolean;
18
18
  dataTrack?: string;
@@ -1,14 +1,14 @@
1
1
  <script lang="ts" setup>
2
2
  import { computed, ref, watch } from 'vue';
3
3
 
4
- import type { ValidationError } from '@/types/Validation';
5
-
6
4
  import TideIcon from '@/components/TideIcon.vue';
7
- import { CSS } from '@/types/Styles';
8
5
  import { ICON } from '@/types/Icon';
9
6
  import { SIZE } from '@/types/Size';
7
+ import { CSS } from '@/types/Styles';
10
8
  import { getErrorMessage, getFieldHasError, handleFieldValidation } from '@/utilities/validation';
11
9
 
10
+ import type { ValidationError } from '@/types/Validation';
11
+
12
12
  type Props = {
13
13
  dataTrack?: string;
14
14
  error?: ValidationError;
@@ -1,12 +1,12 @@
1
1
  <script lang="ts" setup>
2
- import type { Element } from '@/types/Element';
3
- import type { Icon } from '@/types/Icon';
4
-
5
2
  import TideIcon from '@/components/TideIcon.vue';
6
- import { CSS } from '@/types/Styles';
7
3
  import { ELEMENT } from '@/types/Element';
4
+ import { CSS } from '@/types/Styles';
8
5
  import { TARGET } from '@/types/Target';
9
6
 
7
+ import type { Element } from '@/types/Element';
8
+ import type { Icon } from '@/types/Icon';
9
+
10
10
  type Props = {
11
11
  element?: Element;
12
12
  href?: string;
@@ -2,8 +2,8 @@
2
2
  import { onMounted, ref, watch } from 'vue';
3
3
 
4
4
  import TideIcon from '@/components/TideIcon.vue';
5
- import { CSS } from '@/types/Styles';
6
5
  import { ICON } from '@/types/Icon';
6
+ import { CSS } from '@/types/Styles';
7
7
 
8
8
  type Props = {
9
9
  isOpen: boolean;
@@ -3,9 +3,9 @@
3
3
 
4
4
  import TideButtonIcon from '@/components/TideButtonIcon.vue';
5
5
  import TideButtonPagination from '@/components/TideButtonPagination.vue';
6
- import { CSS } from '@/types/Styles';
7
6
  import { ICON } from '@/types/Icon';
8
7
  import { PRIORITY } from '@/types/Priority';
8
+ import { CSS } from '@/types/Styles';
9
9
 
10
10
  type Props = {
11
11
  pageCurrent?: number;
@@ -1,9 +1,9 @@
1
1
  <script lang="ts" setup>
2
- import type { Link } from '@/types/Link';
3
-
4
2
  import { CSS } from '@/types/Styles';
5
3
  import { TARGET } from '@/types/Target';
6
4
 
5
+ import type { Link } from '@/types/Link';
6
+
7
7
  type Props = {
8
8
  heading?: string;
9
9
  links: Link[];
@@ -1,10 +1,10 @@
1
1
  <script lang="ts" setup>
2
2
  import { ref } from 'vue';
3
3
 
4
- import type { Tab } from '@/types/Tab';
5
-
6
4
  import { CSS } from '@/types/Styles';
7
5
 
6
+ import type { Tab } from '@/types/Tab';
7
+
8
8
  type Props = {
9
9
  activeTabInitial?: number;
10
10
  tabs: Tab[];
@@ -2,9 +2,9 @@
2
2
  import { ref } from 'vue';
3
3
 
4
4
  import TideIcon from '@/components/TideIcon.vue';
5
- import { CSS } from '@/types/Styles';
6
5
  import { ICON } from '@/types/Icon';
7
6
  import { SIZE } from '@/types/Size';
7
+ import { CSS } from '@/types/Styles';
8
8
 
9
9
  const props = defineProps({
10
10
  disabled: {
@@ -18,7 +18,7 @@
18
18
 
19
19
  `import 'tide-design-system/css/realm/cycle';`
20
20
 
21
- `import 'tide-design-system/css/realm/equip';`
21
+ `import 'tide-design-system/css/realm/equipment';`
22
22
 
23
23
  `import 'tide-design-system/css/realm/pwc';`
24
24
 
@@ -1,15 +1,15 @@
1
1
  /* eslint vue/sort-keys: 0 */
2
2
 
3
- import type { StoryContext } from '@storybook/vue3';
4
-
5
- import * as STYLES from '@/types/Storybook';
6
3
  import Border from '@/stories/FoundationsBorder.stories';
7
4
  import Gap from '@/stories/FoundationsGap.stories';
8
5
  import Margin from '@/stories/FoundationsMargin.stories';
9
6
  import Padding from '@/stories/FoundationsPadding.stories';
10
7
  import Shadow from '@/stories/FoundationsShadow.stories';
8
+ import * as STYLES from '@/types/Storybook';
11
9
  import { argTypeDimension, formatArgType, prependKeyValue, prependNoneAsEmpty } from '@/utilities/storybook';
12
10
 
11
+ import type { StoryContext } from '@storybook/vue3';
12
+
13
13
  const BORDER_RADIUS = prependNoneAsEmpty(STYLES.BORDER_RADIUS);
14
14
  const BORDER_SIDE = prependNoneAsEmpty(STYLES.BORDER_SIDE);
15
15
  const BORDER_WIDTH = prependNoneAsEmpty(STYLES.BORDER_WIDTH);
@@ -1,8 +1,8 @@
1
- import type { StoryContext } from '@storybook/vue3';
2
-
3
1
  import * as STYLES from '@/types/Storybook';
4
2
  import { formatArgType, getConstantsByValues, prependNoneAsEmpty } from '@/utilities/storybook';
5
3
 
4
+ import type { StoryContext } from '@storybook/vue3';
5
+
6
6
  const BORDER_RADIUS = prependNoneAsEmpty(STYLES.BORDER_RADIUS);
7
7
  const BORDER_SIDE = prependNoneAsEmpty(STYLES.BORDER_SIDE);
8
8
  const BORDER_WIDTH = prependNoneAsEmpty(STYLES.BORDER_WIDTH);
@@ -1,5 +1,3 @@
1
- import type { StoryContext } from '@storybook/vue3';
2
-
3
1
  import * as STYLES from '@/types/Storybook';
4
2
  import {
5
3
  argTypeBooleanUnrequired,
@@ -8,6 +6,8 @@ import {
8
6
  prependNoneAsEmpty,
9
7
  } from '@/utilities/storybook';
10
8
 
9
+ import type { StoryContext } from '@storybook/vue3';
10
+
11
11
  const FLEX_AXIS1 = prependNoneAsEmpty(STYLES.FLEX_AXIS1);
12
12
  const FLEX_AXIS2 = prependNoneAsEmpty(STYLES.FLEX_AXIS2);
13
13
  const FLEX_DIRECTION = prependNoneAsEmpty(STYLES.FLEX_DIRECTION);
@@ -1,5 +1,3 @@
1
- import type { StoryContext } from '@storybook/vue3';
2
-
3
1
  import * as STYLES from '@/types/Storybook';
4
2
  import { CSS } from '@/types/Styles';
5
3
  import {
@@ -11,6 +9,8 @@ import {
11
9
  tab,
12
10
  } from '@/utilities/storybook';
13
11
 
12
+ import type { StoryContext } from '@storybook/vue3';
13
+
14
14
  const GRID_END = prependNoneAsEmpty(STYLES.GRID_END);
15
15
  const GRID_START = prependNoneAsEmpty(STYLES.GRID_START);
16
16
 
@@ -1,9 +1,9 @@
1
- import type { StoryContext } from '@storybook/vue3';
2
-
3
1
  import * as STYLES from '@/types/Storybook';
4
2
  import { CSS } from '@/types/Styles';
5
3
  import { formatArgType, getConstantsByValues, prependNoneAsEmpty } from '@/utilities/storybook';
6
4
 
5
+ import type { StoryContext } from '@storybook/vue3';
6
+
7
7
  const MARGIN = prependNoneAsEmpty(STYLES.MARGIN);
8
8
 
9
9
  const formatArgs = (args: any) => {
@@ -1,8 +1,8 @@
1
- import type { StoryContext } from '@storybook/vue3';
2
-
3
1
  import * as STYLES from '@/types/Storybook';
4
2
  import { formatArgType, getConstantsByValues, prependNoneAsEmpty } from '@/utilities/storybook';
5
3
 
4
+ import type { StoryContext } from '@storybook/vue3';
5
+
6
6
  const PADDING = prependNoneAsEmpty(STYLES.PADDING);
7
7
 
8
8
  const formatArgs = (args: any) => {
@@ -1,8 +1,8 @@
1
- import type { StoryContext } from '@storybook/vue3';
2
-
3
1
  import * as STYLES from '@/types/Storybook';
4
2
  import { formatArgType, getConstantsByValues, prependNoneAsEmpty } from '@/utilities/storybook';
5
3
 
4
+ import type { StoryContext } from '@storybook/vue3';
5
+
6
6
  const SHADOW = prependNoneAsEmpty(STYLES.SHADOW);
7
7
 
8
8
  const formatArgs = (args: any) => {
@@ -1,8 +1,8 @@
1
- import type { StoryContext } from '@storybook/vue3';
2
-
3
1
  import * as STYLES from '@/types/Storybook';
4
2
  import { formatArgType, getConstantsByValues, prependNoneAsEmpty } from '@/utilities/storybook';
5
3
 
4
+ import type { StoryContext } from '@storybook/vue3';
5
+
6
6
  const BG = prependNoneAsEmpty(STYLES.BG);
7
7
  const FONT_COLOR = prependNoneAsEmpty(STYLES.FONT_COLOR);
8
8
  const TRANSPARENT = prependNoneAsEmpty(STYLES.TRANSPARENT);
@@ -1,8 +1,8 @@
1
- import type { StoryContext } from '@storybook/vue3';
2
-
3
1
  import * as STYLES from '@/types/Storybook';
4
2
  import { formatArgType, getConstantsByValues, prependNoneAsEmpty } from '@/utilities/storybook';
5
3
 
4
+ import type { StoryContext } from '@storybook/vue3';
5
+
6
6
  const TYPOGRAPHY = prependNoneAsEmpty(STYLES.TYPOGRAPHY);
7
7
 
8
8
  const formatArgs = (args: any) => {
@@ -1,5 +1,5 @@
1
- import * as STANDARD_ALERT from '@/types/Alert';
2
1
  import TideAlert from '@/components/TideAlert.vue';
2
+ import * as STANDARD_ALERT from '@/types/Alert';
3
3
  import {
4
4
  argTypeBooleanUnrequired,
5
5
  dataTrack,
@@ -1,11 +1,10 @@
1
- import type { StoryContext } from '@storybook/vue3';
2
-
3
- import type { Source } from '@/types/Source';
4
-
5
1
  import TideBackgroundImage from '@/components/TideBackgroundImage.vue';
6
2
  import { MEDIA } from '@/types/Breakpoint';
7
3
  import { argTypeBooleanUnrequired } from '@/utilities/storybook';
8
4
 
5
+ import type { Source } from '@/types/Source';
6
+ import type { StoryContext } from '@storybook/vue3';
7
+
9
8
  const formatSnippet = (_code: string, context: StoryContext) => {
10
9
  const { args } = context;
11
10
  const argsWithValues: string[] = [`alt="${args.alt}"`];
@@ -1,5 +1,5 @@
1
- import * as STANDARD_BADGE from '@/types/Storybook';
2
1
  import TideBadgeTrustedPartner from '@/components/TideBadgeTrustedPartner.vue';
2
+ import * as STANDARD_BADGE from '@/types/Storybook';
3
3
  import { formatArgType, parameters, prependNoneAsUndefined } from '@/utilities/storybook';
4
4
 
5
5
  const BADGE_TRUSTED = prependNoneAsUndefined(STANDARD_BADGE.BADGE_TRUSTED);
@@ -1,8 +1,8 @@
1
- import type { BreadCrumb } from '@/types/BreadCrumb';
2
-
3
1
  import TideBreadCrumbs from '@/components/TideBreadCrumbs.vue';
4
2
  import { parameters } from '@/utilities/storybook';
5
3
 
4
+ import type { BreadCrumb } from '@/types/BreadCrumb';
5
+
6
6
  const breadCrumbs: BreadCrumb[] = [
7
7
  {
8
8
  dataTrack: 'Home Bread Crumb Click',
@@ -1,10 +1,10 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
 
3
+ import TideButton from '@/components/TideButton.vue';
3
4
  import * as STANDARD_ELEMENT from '@/types/Element';
4
5
  import * as STANDARD_ICON from '@/types/Icon';
5
6
  import * as STANDARD_PRIORITY from '@/types/Priority';
6
7
  import * as STANDARD_SIZE_BUTTON from '@/types/Size';
7
- import TideButton from '@/components/TideButton.vue';
8
8
  import {
9
9
  argTypeBooleanUnrequired,
10
10
  click,
@@ -1,9 +1,9 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
 
3
- import * as STANDARD_ELEMENT from '@/types/Element';
4
- import * as STANDARD_PRIORITY from '@/types/Priority';
5
3
  import TideButtonIcon from '@/components/TideButtonIcon.vue';
4
+ import * as STANDARD_ELEMENT from '@/types/Element';
6
5
  import { ICON } from '@/types/Icon';
6
+ import * as STANDARD_PRIORITY from '@/types/Priority';
7
7
  import {
8
8
  argTypeBooleanUnrequired,
9
9
  click,
@@ -1,7 +1,7 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
 
3
- import * as STANDARD_ELEMENT from '@/types/Element';
4
3
  import TideButtonPagination from '@/components/TideButtonPagination.vue';
4
+ import * as STANDARD_ELEMENT from '@/types/Element';
5
5
  import {
6
6
  argTypeBooleanUnrequired,
7
7
  click,
@@ -1,8 +1,8 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
 
3
3
  import TideCard from '@/components/TideCard.vue';
4
- import { ICON } from '@/types/Icon';
5
4
  import { POSITION_CARD_ICON as STANDARD_POSITION_CARD_ICON, TYPE_CARD as STANDARD_TYPE_CARD } from '@/types/Card';
5
+ import { ICON } from '@/types/Icon';
6
6
  import {
7
7
  argTypeBooleanUnrequired,
8
8
  click,
@@ -1,11 +1,11 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
 
3
- import type { StoryContext } from '@storybook/vue3';
4
-
5
3
  import TideCard from '@/components/TideCard.vue';
6
4
  import TideCarousel from '@/components/TideCarousel.vue';
7
5
  import { argTypeBooleanUnrequired, change, disabledArgType, doSomething, lineBreak, tab } from '@/utilities/storybook';
8
6
 
7
+ import type { StoryContext } from '@storybook/vue3';
8
+
9
9
  const formatSnippet = (code: string, context: StoryContext) => {
10
10
  const { args } = context;
11
11
 
@@ -1,8 +1,8 @@
1
- import type { StoryContext } from '@storybook/vue3';
2
-
3
1
  import TideColumns from '@/components/TideColumns.vue';
4
2
  import { lineBreak, tab } from '@/utilities/storybook';
5
3
 
4
+ import type { StoryContext } from '@storybook/vue3';
5
+
6
6
  const formatSnippet = (code: string, context: StoryContext) => {
7
7
  const { args } = context;
8
8
 
@@ -1,5 +1,5 @@
1
- import { ORIENTATION as STANDARD_ORIENTATION } from '@/types/Orientation';
2
1
  import TideDivider from '@/components/TideDivider.vue';
2
+ import { ORIENTATION as STANDARD_ORIENTATION } from '@/types/Orientation';
3
3
  import { disabledArgType, formatArgType, parameters, prependNoneAsUndefined } from '@/utilities/storybook';
4
4
 
5
5
  const formatArgs = (args: any) => {
@@ -1,6 +1,6 @@
1
+ import TideIcon from '@/components/TideIcon.vue';
1
2
  import { ICON as STANDARD_ICON, ICON_REALM as STANDARD_ICON_REALM } from '@/types/Icon';
2
3
  import * as STANDARD_SIZE from '@/types/Size';
3
- import TideIcon from '@/components/TideIcon.vue';
4
4
  import { formatArgType, parameters, prependNoneAsUndefined } from '@/utilities/storybook';
5
5
 
6
6
  const ICON = prependNoneAsUndefined({ ...STANDARD_ICON, ...STANDARD_ICON_REALM.RV });
@@ -1,11 +1,10 @@
1
- import type { StoryContext } from '@storybook/vue3';
2
-
3
- import type { Source } from '@/types/Source';
4
-
5
1
  import TideImage from '@/components/TideImage.vue';
6
2
  import { MEDIA } from '@/types/Breakpoint';
7
3
  import { argTypeBooleanUnrequired } from '@/utilities/storybook';
8
4
 
5
+ import type { Source } from '@/types/Source';
6
+ import type { StoryContext } from '@storybook/vue3';
7
+
9
8
  const sources: Source[] = [
10
9
  {
11
10
  media: MEDIA.XL,
@@ -1,7 +1,5 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
 
3
- import type { SelectOption, SelectOptionGroup } from '@/types/Select';
4
-
5
3
  import TideInputSelect from '@/components/TideInputSelect.vue';
6
4
  import {
7
5
  argTypeBooleanUnrequired,
@@ -13,6 +11,8 @@ import {
13
11
  parameters,
14
12
  } from '@/utilities/storybook';
15
13
 
14
+ import type { SelectOption, SelectOptionGroup } from '@/types/Select';
15
+
16
16
  const options = {
17
17
  'Any': '',
18
18
  'Option 1': 1,
@@ -1,9 +1,9 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
 
3
+ import TideInputText from '@/components/TideInputText.vue';
3
4
  import * as STANDARD_FORMAT from '@/types/Formatted';
4
5
  import * as STANDARD_ICON from '@/types/Icon';
5
6
  import * as STANDARD_TEXT_INPUT_TYPE from '@/types/TextInput';
6
- import TideInputText from '@/components/TideInputText.vue';
7
7
  import { VALIDATOR } from '@/types/Validation';
8
8
  import {
9
9
  argTypeBooleanUnrequired,
@@ -1,11 +1,9 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
 
3
- import type { StoryContext } from '@storybook/vue3';
4
-
3
+ import TideLink from '@/components/TideLink.vue';
5
4
  import * as STANDARD_ELEMENT from '@/types/Element';
6
5
  import * as STANDARD_ICON from '@/types/Icon';
7
6
  import * as STANDARD_LINK_SIZE from '@/types/Storybook';
8
- import TideLink from '@/components/TideLink.vue';
9
7
  import {
10
8
  argTypeBooleanUnrequired,
11
9
  click,
@@ -15,6 +13,8 @@ import {
15
13
  prependNoneAsUndefined,
16
14
  } from '@/utilities/storybook';
17
15
 
16
+ import type { StoryContext } from '@storybook/vue3';
17
+
18
18
  const ELEMENT = prependNoneAsUndefined(STANDARD_ELEMENT.ELEMENT);
19
19
  const ICON = prependNoneAsUndefined(STANDARD_ICON.ICON);
20
20
  const LINK_SIZE = prependNoneAsUndefined(STANDARD_LINK_SIZE.LINK_SIZE);
@@ -1,11 +1,11 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
 
3
- import type { StoryContext } from '@storybook/vue3';
4
-
5
3
  import TideButton from '@/components/TideButton.vue';
6
4
  import TideModal from '@/components/TideModal.vue';
7
5
  import { disabledArgType, doSomething, lineBreak, tab } from '@/utilities/storybook';
8
6
 
7
+ import type { StoryContext } from '@storybook/vue3';
8
+
9
9
  const formatSnippet = (code: string, context: StoryContext) => {
10
10
  const { args } = context;
11
11
 
@@ -1,7 +1,7 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
 
3
- import * as STANDARD_ELEMENT from '@/types/Element';
4
3
  import TidePagination from '@/components/TidePagination.vue';
4
+ import * as STANDARD_ELEMENT from '@/types/Element';
5
5
  import {
6
6
  argTypeBooleanUnrequired,
7
7
  change,
@@ -1,8 +1,7 @@
1
- import type { StoryContext } from '@storybook/vue3';
1
+ import TideSeoLinks from '@/components/TideSeoLinks.vue';
2
2
 
3
3
  import type { Link } from '@/types/Link';
4
-
5
- import TideSeoLinks from '@/components/TideSeoLinks.vue';
4
+ import type { StoryContext } from '@storybook/vue3';
6
5
 
7
6
  const links: Link[] = new Array(12).fill({}).map((link, index) => {
8
7
  return {
@@ -1,10 +1,10 @@
1
1
  import { action } from '@storybook/addon-actions';
2
2
 
3
- import type { Tab } from '@/types/Tab';
4
-
5
3
  import TideTabs from '@/components/TideTabs.vue';
6
4
  import { change, disabledArgType, doSomething, getLabelsFromOptions, parameters } from '@/utilities/storybook';
7
5
 
6
+ import type { Tab } from '@/types/Tab';
7
+
8
8
  /* eslint-disable */
9
9
  // ^ Storybook controls are based on iterating over object properties instead of array slots (bad form), so these can't be ordered alphabetically.
10
10
  const options = {
@@ -3,7 +3,7 @@ export const REALM = {
3
3
  ATV: 'atv',
4
4
  BOATMART: 'boatmart',
5
5
  CYCLE: 'cycle',
6
- EQUIP: 'equip',
6
+ EQUIPMENT: 'equipment',
7
7
  PWC: 'pwc',
8
8
  RV: 'rv',
9
9
  SNOW: 'snow',
@@ -1,8 +1,9 @@
1
- import type { ArgTypes, StoryContext } from '@storybook/vue3';
2
-
1
+ import { ELEMENT, ELEMENT_TEXT_AS_ICON } from '@/types/Element';
3
2
  import { BOOLEAN, BOOLEAN_UNREQUIRED, NoneAsEmpty, NoneAsUndefined } from '@/types/Storybook';
4
3
  import { CSS } from '@/types/Styles';
5
- import { ELEMENT, ELEMENT_TEXT_AS_ICON } from '@/types/Element';
4
+ import { formatKebabCase } from '@/utilities/format';
5
+
6
+ import type { ArgTypes, StoryContext } from '@storybook/vue3';
6
7
 
7
8
  // Extensible object of key/value pairs
8
9
  type KeyValue = { [key: string]: any };
@@ -12,8 +13,6 @@ type KeyValueNamed = {
12
13
  [key: string]: KeyValue;
13
14
  };
14
15
 
15
- import { formatKebabCase } from '@/utilities/format';
16
-
17
16
  export const lineBreak = '\r';
18
17
  export const tab = ' ';
19
18
 
@@ -1,11 +1,10 @@
1
- import type { Ref } from 'vue';
1
+ import { priceToNumber } from '@/utilities/format';
2
2
 
3
3
  import type { RangeData } from '@/types/FacetRange';
4
- import type { SelectOption } from '@/types/Select';
5
4
  import type { StringInput } from '@/types/Form';
5
+ import type { SelectOption } from '@/types/Select';
6
6
  import type { ValidationError, ValidationLength, ValidationResult, Validator } from '@/types/Validation';
7
-
8
- import { priceToNumber } from '@/utilities/format';
7
+ import type { Ref } from 'vue';
9
8
 
10
9
  export const errorMessageDefault = 'Please enter a valid value.';
11
10
 
package/vite.config.ts CHANGED
@@ -1,9 +1,9 @@
1
1
  import vue from '@vitejs/plugin-vue';
2
- import svgLoader from 'vite-svg-loader';
3
- import ViteDts from 'vite-plugin-dts';
4
- import { defineConfig } from 'vite';
5
- import { fileURLToPath, URL } from 'node:url';
2
+ import { URL, fileURLToPath } from 'node:url';
6
3
  import { resolve } from 'path';
4
+ import { defineConfig } from 'vite';
5
+ import ViteDts from 'vite-plugin-dts';
6
+ import svgLoader from 'vite-svg-loader';
7
7
 
8
8
  // https://vitejs.dev/config/
9
9
  export default defineConfig({