tide-design-system 2.4.5 → 2.4.7
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.
- package/.storybook/main.ts +1 -0
- package/dist/css/reset.css +1 -1
- package/dist/css/utilities-responsive.css +0 -546
- package/dist/style.css +1 -1
- package/dist/tide-design-system.cjs +2 -2
- package/dist/tide-design-system.esm.d.ts +62 -6
- package/dist/tide-design-system.esm.js +1821 -1720
- package/dist/utilities/storybook.ts +6 -2
- package/dist/utilities/validation.ts +1 -1
- package/index.ts +8 -5
- package/package.json +1 -1
- package/src/assets/css/reset.css +1 -1
- package/src/assets/css/utilities-responsive.css +0 -546
- package/src/components/InternalBaseLink.vue +11 -0
- package/src/components/TideBreadCrumbs.vue +3 -2
- package/src/components/TideButton.vue +17 -4
- package/src/components/TideButtonIcon.vue +15 -2
- package/src/components/TideButtonPagination.vue +16 -16
- package/src/components/TideButtonSegmented.vue +1 -0
- package/src/components/TideCard.vue +12 -2
- package/src/components/TideCarousel.vue +10 -5
- package/src/components/TideChipAction.vue +7 -1
- package/src/components/TideChipFilter.vue +1 -0
- package/src/components/TideChipInput.vue +1 -0
- package/src/components/TideIcon.vue +8 -9
- package/src/components/TideImage.vue +9 -9
- package/src/components/TideInputText.vue +2 -0
- package/src/components/TideInputTextDeprecated.vue +2 -0
- package/src/components/TideInputTextarea.vue +2 -2
- package/src/components/TideLink.vue +7 -1
- package/src/components/TideMenuItem.vue +83 -0
- package/src/components/TideModal.vue +91 -85
- package/src/components/TideSeoLinks.vue +3 -2
- package/src/components/TideSheet.vue +5 -3
- package/src/components/TideSwitch.vue +1 -0
- package/src/composables/useTideConfig.ts +23 -0
- package/src/stories/TideButtonPagination.stories.ts +6 -6
- package/src/stories/TideCarousel.stories.ts +0 -1
- package/src/stories/TideInputCheckbox.stories.ts +58 -23
- package/src/stories/TideInputRadio.stories.ts +39 -30
- package/src/stories/TideInputSelect.stories.ts +51 -27
- package/src/stories/TideInputText.stories.ts +83 -23
- package/src/stories/TideInputTextarea.stories.ts +66 -17
- package/src/stories/TideLink.stories.ts +1 -14
- package/src/stories/TideMenuItem.stories.ts +117 -0
- package/src/stories/TidePagination.stories.ts +2 -2
- package/src/stories/TidePopover.stories.ts +1 -1
- package/src/types/Badge.ts +4 -0
- package/src/types/Element.ts +2 -2
- package/src/types/Formatted.ts +1 -0
- package/src/types/Storybook.ts +4 -6
- package/src/types/Type.ts +6 -0
- package/src/types/Validation.ts +1 -0
- package/src/utilities/storybook.ts +6 -2
- package/src/utilities/validation.ts +1 -1
- package/tests/InternalBaseLink.spec.ts +61 -0
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Component } from 'vue';
|
|
1
2
|
import { ComponentOptionsMixin } from 'vue';
|
|
2
3
|
import { ComponentProvideOptions } from 'vue';
|
|
3
4
|
import { DefineComponent } from 'vue';
|
|
@@ -124,6 +125,10 @@ export declare const BADGE_COLOR_DETAILS: Record<BadgeColor, {
|
|
|
124
125
|
export declare const BADGE_TRUSTED: {
|
|
125
126
|
readonly YEARS_10: "10";
|
|
126
127
|
readonly YEARS_15: "15";
|
|
128
|
+
readonly YEARS_20: "20";
|
|
129
|
+
readonly YEARS_25: "25";
|
|
130
|
+
readonly YEARS_30: "30";
|
|
131
|
+
readonly YEARS_35: "35";
|
|
127
132
|
readonly YEARS_5: "5";
|
|
128
133
|
};
|
|
129
134
|
|
|
@@ -146,6 +151,13 @@ export declare const BREAKPOINT: {
|
|
|
146
151
|
|
|
147
152
|
export declare type Breakpoint = (typeof BREAKPOINT)[keyof typeof BREAKPOINT];
|
|
148
153
|
|
|
154
|
+
declare const BUTTON_TYPE: {
|
|
155
|
+
readonly BUTTON: "button";
|
|
156
|
+
readonly SUBMIT: "submit";
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
declare type ButtonType = (typeof BUTTON_TYPE)[keyof typeof BUTTON_TYPE];
|
|
160
|
+
|
|
149
161
|
export declare type CardType = (typeof TYPE_CARD)[keyof typeof TYPE_CARD];
|
|
150
162
|
|
|
151
163
|
declare const CSS_2: {
|
|
@@ -672,13 +684,13 @@ export declare const ELEMENT: {
|
|
|
672
684
|
declare type Element_2 = (typeof ELEMENT)[keyof typeof ELEMENT];
|
|
673
685
|
export { Element_2 as Element }
|
|
674
686
|
|
|
675
|
-
export declare const
|
|
687
|
+
export declare const ELEMENT_BROAD: {
|
|
676
688
|
readonly BUTTON: "button";
|
|
677
689
|
readonly DIV: "div";
|
|
678
690
|
readonly LINK: "a";
|
|
679
691
|
};
|
|
680
692
|
|
|
681
|
-
export declare type
|
|
693
|
+
export declare type ElementBroad = (typeof ELEMENT_BROAD)[keyof typeof ELEMENT_BROAD];
|
|
682
694
|
|
|
683
695
|
declare const ERROR_DISPLAY: {
|
|
684
696
|
readonly EAGER: "eager";
|
|
@@ -701,6 +713,7 @@ export declare const FORMAT_REGEX: {
|
|
|
701
713
|
numberFormatted: RegExp;
|
|
702
714
|
phone: RegExp;
|
|
703
715
|
price: RegExp;
|
|
716
|
+
zip: RegExp;
|
|
704
717
|
};
|
|
705
718
|
|
|
706
719
|
export declare type Formatted = {
|
|
@@ -983,7 +996,6 @@ declare type Props_11 = {
|
|
|
983
996
|
isHeadline1?: boolean;
|
|
984
997
|
isHideawayButtons?: boolean;
|
|
985
998
|
isScrollByPage?: boolean;
|
|
986
|
-
isTouchscreen?: boolean;
|
|
987
999
|
maxDots?: number;
|
|
988
1000
|
subtitle?: string;
|
|
989
1001
|
title?: string;
|
|
@@ -1188,6 +1200,7 @@ declare type Props_6 = {
|
|
|
1188
1200
|
label: string;
|
|
1189
1201
|
priority?: Priority;
|
|
1190
1202
|
size?: SizeButton;
|
|
1203
|
+
type?: ButtonType;
|
|
1191
1204
|
};
|
|
1192
1205
|
|
|
1193
1206
|
declare type Props_7 = {
|
|
@@ -1197,11 +1210,12 @@ declare type Props_7 = {
|
|
|
1197
1210
|
icon: Icon;
|
|
1198
1211
|
isNewTab?: boolean;
|
|
1199
1212
|
priority?: Priority;
|
|
1213
|
+
type?: ButtonType;
|
|
1200
1214
|
};
|
|
1201
1215
|
|
|
1202
1216
|
declare type Props_8 = {
|
|
1203
1217
|
disabled?: boolean;
|
|
1204
|
-
element?:
|
|
1218
|
+
element?: ElementBroad;
|
|
1205
1219
|
href?: string;
|
|
1206
1220
|
label: string | number;
|
|
1207
1221
|
};
|
|
@@ -1211,6 +1225,8 @@ declare type Props_9 = {
|
|
|
1211
1225
|
tabs: Tab[];
|
|
1212
1226
|
};
|
|
1213
1227
|
|
|
1228
|
+
export declare const provideTideConfig: (config?: Partial<TideConfig>) => void;
|
|
1229
|
+
|
|
1214
1230
|
export declare const REALM: {
|
|
1215
1231
|
readonly AERO: "aero";
|
|
1216
1232
|
readonly ATV: "atv";
|
|
@@ -1373,6 +1389,7 @@ breadCrumbs: BreadCrumb[];
|
|
|
1373
1389
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1374
1390
|
|
|
1375
1391
|
export declare const TideButton: DefineComponent<Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_6> & Readonly<{}>, {
|
|
1392
|
+
type: ButtonType;
|
|
1376
1393
|
label: string;
|
|
1377
1394
|
size: SizeButton;
|
|
1378
1395
|
disabled: boolean;
|
|
@@ -1385,6 +1402,7 @@ iconTrailing: Icon;
|
|
|
1385
1402
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1386
1403
|
|
|
1387
1404
|
export declare const TideButtonIcon: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_7> & Readonly<{}>, {
|
|
1405
|
+
type: ButtonType;
|
|
1388
1406
|
icon: Icon;
|
|
1389
1407
|
disabled: boolean;
|
|
1390
1408
|
element: Element_2;
|
|
@@ -1396,7 +1414,7 @@ priority: Priority;
|
|
|
1396
1414
|
export declare const TideButtonPagination: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_8> & Readonly<{}>, {
|
|
1397
1415
|
label: string | number;
|
|
1398
1416
|
disabled: boolean;
|
|
1399
|
-
element:
|
|
1417
|
+
element: ElementBroad;
|
|
1400
1418
|
href: string;
|
|
1401
1419
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1402
1420
|
|
|
@@ -1427,7 +1445,6 @@ hasDots: boolean;
|
|
|
1427
1445
|
isHeadline1: boolean;
|
|
1428
1446
|
isHideawayButtons: boolean;
|
|
1429
1447
|
isScrollByPage: boolean;
|
|
1430
|
-
isTouchscreen: boolean;
|
|
1431
1448
|
maxDots: number;
|
|
1432
1449
|
subtitle: string;
|
|
1433
1450
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1456,6 +1473,10 @@ heading: string;
|
|
|
1456
1473
|
section4?(_: {}): any;
|
|
1457
1474
|
}>;
|
|
1458
1475
|
|
|
1476
|
+
declare type TideConfig = {
|
|
1477
|
+
linkComponent: Component | typeof ELEMENT.LINK;
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1459
1480
|
export declare const TideDivider: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_16> & Readonly<{}>, {
|
|
1460
1481
|
orientation: Orientation;
|
|
1461
1482
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -1783,6 +1804,40 @@ iconTrailing: Icon;
|
|
|
1783
1804
|
subtle: boolean;
|
|
1784
1805
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1785
1806
|
|
|
1807
|
+
/**
|
|
1808
|
+
* Renders a generic menu item intended to be used in navigation menus or dropdowns.
|
|
1809
|
+
*
|
|
1810
|
+
* @see the [Storybook interface](https://tide-design-system.netlify.app/?path=/docs/components-tidemenuitem--docs) for TideMenuItem
|
|
1811
|
+
*/
|
|
1812
|
+
export declare const TideMenuItem: DefineComponent< {
|
|
1813
|
+
/** The element to render the root element as. */
|
|
1814
|
+
element?: Element_2 | undefined;
|
|
1815
|
+
/** The href attribute to apply when the element is a link. */
|
|
1816
|
+
href?: string | undefined;
|
|
1817
|
+
/** Whether to open link in a new tab. */
|
|
1818
|
+
isNewTab?: boolean | undefined;
|
|
1819
|
+
/** Icon to show after the label. */
|
|
1820
|
+
iconTrailing?: Icon | undefined;
|
|
1821
|
+
/** The label to be displayed. */
|
|
1822
|
+
label: string;
|
|
1823
|
+
}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<{
|
|
1824
|
+
/** The element to render the root element as. */
|
|
1825
|
+
element?: Element_2 | undefined;
|
|
1826
|
+
/** The href attribute to apply when the element is a link. */
|
|
1827
|
+
href?: string | undefined;
|
|
1828
|
+
/** Whether to open link in a new tab. */
|
|
1829
|
+
isNewTab?: boolean | undefined;
|
|
1830
|
+
/** Icon to show after the label. */
|
|
1831
|
+
iconTrailing?: Icon | undefined;
|
|
1832
|
+
/** The label to be displayed. */
|
|
1833
|
+
label: string;
|
|
1834
|
+
}> & Readonly<{}>, {
|
|
1835
|
+
element: Element_2;
|
|
1836
|
+
href: string;
|
|
1837
|
+
isNewTab: boolean;
|
|
1838
|
+
iconTrailing: Icon;
|
|
1839
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1840
|
+
|
|
1786
1841
|
export declare const TideModal: __VLS_WithTemplateSlots_8<DefineComponent<Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1787
1842
|
close: () => any;
|
|
1788
1843
|
back: () => any;
|
|
@@ -1880,6 +1935,7 @@ export declare const VALIDATOR: {
|
|
|
1880
1935
|
readonly EMAIL: (value: string) => ValidationResult;
|
|
1881
1936
|
readonly NUMBER: (value: string) => ValidationResult;
|
|
1882
1937
|
readonly PHONE: (value: string) => ValidationResult;
|
|
1938
|
+
readonly ZIP: (value: string) => ValidationResult;
|
|
1883
1939
|
};
|
|
1884
1940
|
|
|
1885
1941
|
export declare type Validator = (value: string) => ValidationResult;
|