tide-design-system 2.4.4 → 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 +85 -11
- package/dist/tide-design-system.esm.js +1769 -1617
- package/dist/utilities/storybook.ts +6 -2
- package/dist/utilities/validation.ts +1 -1
- package/index.ts +10 -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/TideAlert.vue +46 -3
- 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/TideAlert.stories.ts +37 -1
- 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';
|
|
@@ -40,6 +41,12 @@ declare type __VLS_WithTemplateSlots<T, S> = T & {
|
|
|
40
41
|
};
|
|
41
42
|
};
|
|
42
43
|
|
|
44
|
+
declare type __VLS_WithTemplateSlots_10<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
|
|
43
50
|
declare type __VLS_WithTemplateSlots_2<T, S> = T & {
|
|
44
51
|
new (): {
|
|
45
52
|
$slots: S;
|
|
@@ -118,6 +125,10 @@ export declare const BADGE_COLOR_DETAILS: Record<BadgeColor, {
|
|
|
118
125
|
export declare const BADGE_TRUSTED: {
|
|
119
126
|
readonly YEARS_10: "10";
|
|
120
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";
|
|
121
132
|
readonly YEARS_5: "5";
|
|
122
133
|
};
|
|
123
134
|
|
|
@@ -140,6 +151,13 @@ export declare const BREAKPOINT: {
|
|
|
140
151
|
|
|
141
152
|
export declare type Breakpoint = (typeof BREAKPOINT)[keyof typeof BREAKPOINT];
|
|
142
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
|
+
|
|
143
161
|
export declare type CardType = (typeof TYPE_CARD)[keyof typeof TYPE_CARD];
|
|
144
162
|
|
|
145
163
|
declare const CSS_2: {
|
|
@@ -666,13 +684,13 @@ export declare const ELEMENT: {
|
|
|
666
684
|
declare type Element_2 = (typeof ELEMENT)[keyof typeof ELEMENT];
|
|
667
685
|
export { Element_2 as Element }
|
|
668
686
|
|
|
669
|
-
export declare const
|
|
687
|
+
export declare const ELEMENT_BROAD: {
|
|
670
688
|
readonly BUTTON: "button";
|
|
671
689
|
readonly DIV: "div";
|
|
672
690
|
readonly LINK: "a";
|
|
673
691
|
};
|
|
674
692
|
|
|
675
|
-
export declare type
|
|
693
|
+
export declare type ElementBroad = (typeof ELEMENT_BROAD)[keyof typeof ELEMENT_BROAD];
|
|
676
694
|
|
|
677
695
|
declare const ERROR_DISPLAY: {
|
|
678
696
|
readonly EAGER: "eager";
|
|
@@ -695,6 +713,7 @@ export declare const FORMAT_REGEX: {
|
|
|
695
713
|
numberFormatted: RegExp;
|
|
696
714
|
phone: RegExp;
|
|
697
715
|
price: RegExp;
|
|
716
|
+
zip: RegExp;
|
|
698
717
|
};
|
|
699
718
|
|
|
700
719
|
export declare type Formatted = {
|
|
@@ -977,7 +996,6 @@ declare type Props_11 = {
|
|
|
977
996
|
isHeadline1?: boolean;
|
|
978
997
|
isHideawayButtons?: boolean;
|
|
979
998
|
isScrollByPage?: boolean;
|
|
980
|
-
isTouchscreen?: boolean;
|
|
981
999
|
maxDots?: number;
|
|
982
1000
|
subtitle?: string;
|
|
983
1001
|
title?: string;
|
|
@@ -1031,6 +1049,7 @@ declare type Props_19 = {
|
|
|
1031
1049
|
|
|
1032
1050
|
declare type Props_2 = {
|
|
1033
1051
|
heading?: string;
|
|
1052
|
+
ctaLabel?: string;
|
|
1034
1053
|
isDismissible?: boolean;
|
|
1035
1054
|
isToast?: boolean;
|
|
1036
1055
|
type?: Alert;
|
|
@@ -1181,6 +1200,7 @@ declare type Props_6 = {
|
|
|
1181
1200
|
label: string;
|
|
1182
1201
|
priority?: Priority;
|
|
1183
1202
|
size?: SizeButton;
|
|
1203
|
+
type?: ButtonType;
|
|
1184
1204
|
};
|
|
1185
1205
|
|
|
1186
1206
|
declare type Props_7 = {
|
|
@@ -1190,11 +1210,12 @@ declare type Props_7 = {
|
|
|
1190
1210
|
icon: Icon;
|
|
1191
1211
|
isNewTab?: boolean;
|
|
1192
1212
|
priority?: Priority;
|
|
1213
|
+
type?: ButtonType;
|
|
1193
1214
|
};
|
|
1194
1215
|
|
|
1195
1216
|
declare type Props_8 = {
|
|
1196
1217
|
disabled?: boolean;
|
|
1197
|
-
element?:
|
|
1218
|
+
element?: ElementBroad;
|
|
1198
1219
|
href?: string;
|
|
1199
1220
|
label: string | number;
|
|
1200
1221
|
};
|
|
@@ -1204,6 +1225,8 @@ declare type Props_9 = {
|
|
|
1204
1225
|
tabs: Tab[];
|
|
1205
1226
|
};
|
|
1206
1227
|
|
|
1228
|
+
export declare const provideTideConfig: (config?: Partial<TideConfig>) => void;
|
|
1229
|
+
|
|
1207
1230
|
export declare const REALM: {
|
|
1208
1231
|
readonly AERO: "aero";
|
|
1209
1232
|
readonly ATV: "atv";
|
|
@@ -1335,11 +1358,14 @@ isOptional: boolean;
|
|
|
1335
1358
|
|
|
1336
1359
|
export declare const TideAlert: __VLS_WithTemplateSlots_2<DefineComponent<Props_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1337
1360
|
close: () => any;
|
|
1361
|
+
ctaClick: () => any;
|
|
1338
1362
|
}, string, PublicProps, Readonly<Props_2> & Readonly<{
|
|
1339
1363
|
onClose?: (() => any) | undefined;
|
|
1364
|
+
onCtaClick?: (() => any) | undefined;
|
|
1340
1365
|
}>, {
|
|
1341
1366
|
type: Alert;
|
|
1342
1367
|
heading: string;
|
|
1368
|
+
ctaLabel: string;
|
|
1343
1369
|
isDismissible: boolean;
|
|
1344
1370
|
isToast: boolean;
|
|
1345
1371
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1347,8 +1373,8 @@ isToast: boolean;
|
|
|
1347
1373
|
}>;
|
|
1348
1374
|
|
|
1349
1375
|
export declare const TideBadge: DefineComponent<Props_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_3> & Readonly<{}>, {
|
|
1350
|
-
color: BadgeColor;
|
|
1351
1376
|
iconLeading: Icon;
|
|
1377
|
+
color: BadgeColor;
|
|
1352
1378
|
isFloating: boolean;
|
|
1353
1379
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1354
1380
|
|
|
@@ -1363,6 +1389,7 @@ breadCrumbs: BreadCrumb[];
|
|
|
1363
1389
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1364
1390
|
|
|
1365
1391
|
export declare const TideButton: DefineComponent<Props_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_6> & Readonly<{}>, {
|
|
1392
|
+
type: ButtonType;
|
|
1366
1393
|
label: string;
|
|
1367
1394
|
size: SizeButton;
|
|
1368
1395
|
disabled: boolean;
|
|
@@ -1375,6 +1402,7 @@ iconTrailing: Icon;
|
|
|
1375
1402
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1376
1403
|
|
|
1377
1404
|
export declare const TideButtonIcon: DefineComponent<Props_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_7> & Readonly<{}>, {
|
|
1405
|
+
type: ButtonType;
|
|
1378
1406
|
icon: Icon;
|
|
1379
1407
|
disabled: boolean;
|
|
1380
1408
|
element: Element_2;
|
|
@@ -1386,7 +1414,7 @@ priority: Priority;
|
|
|
1386
1414
|
export declare const TideButtonPagination: DefineComponent<Props_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_8> & Readonly<{}>, {
|
|
1387
1415
|
label: string | number;
|
|
1388
1416
|
disabled: boolean;
|
|
1389
|
-
element:
|
|
1417
|
+
element: ElementBroad;
|
|
1390
1418
|
href: string;
|
|
1391
1419
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1392
1420
|
|
|
@@ -1417,7 +1445,6 @@ hasDots: boolean;
|
|
|
1417
1445
|
isHeadline1: boolean;
|
|
1418
1446
|
isHideawayButtons: boolean;
|
|
1419
1447
|
isScrollByPage: boolean;
|
|
1420
|
-
isTouchscreen: boolean;
|
|
1421
1448
|
maxDots: number;
|
|
1422
1449
|
subtitle: string;
|
|
1423
1450
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
@@ -1446,10 +1473,22 @@ heading: string;
|
|
|
1446
1473
|
section4?(_: {}): any;
|
|
1447
1474
|
}>;
|
|
1448
1475
|
|
|
1476
|
+
declare type TideConfig = {
|
|
1477
|
+
linkComponent: Component | typeof ELEMENT.LINK;
|
|
1478
|
+
};
|
|
1479
|
+
|
|
1449
1480
|
export declare const TideDivider: DefineComponent<Props_16, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_16> & Readonly<{}>, {
|
|
1450
1481
|
orientation: Orientation;
|
|
1451
1482
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1452
1483
|
|
|
1484
|
+
export declare const TideForm: __VLS_WithTemplateSlots_6<DefineComponent< {}, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1485
|
+
submit: (e: SubmitEvent) => any;
|
|
1486
|
+
}, string, PublicProps, Readonly<{}> & Readonly<{
|
|
1487
|
+
onSubmit?: ((e: SubmitEvent) => any) | undefined;
|
|
1488
|
+
}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>, {
|
|
1489
|
+
default?(_: {}): any;
|
|
1490
|
+
}>;
|
|
1491
|
+
|
|
1453
1492
|
export declare const TideIcon: DefineComponent<Props_17, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_17> & Readonly<{}>, {
|
|
1454
1493
|
size: Size;
|
|
1455
1494
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
@@ -1464,7 +1503,7 @@ sources: Source[];
|
|
|
1464
1503
|
src: string;
|
|
1465
1504
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1466
1505
|
|
|
1467
|
-
export declare const TideImageBackground:
|
|
1506
|
+
export declare const TideImageBackground: __VLS_WithTemplateSlots_7<DefineComponent<Props_19, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_19> & Readonly<{}>, {
|
|
1468
1507
|
alt: string;
|
|
1469
1508
|
isLazy: boolean;
|
|
1470
1509
|
sources: Source[];
|
|
@@ -1765,7 +1804,41 @@ iconTrailing: Icon;
|
|
|
1765
1804
|
subtle: boolean;
|
|
1766
1805
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1767
1806
|
|
|
1768
|
-
|
|
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
|
+
|
|
1841
|
+
export declare const TideModal: __VLS_WithTemplateSlots_8<DefineComponent<Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1769
1842
|
close: () => any;
|
|
1770
1843
|
back: () => any;
|
|
1771
1844
|
}, string, PublicProps, Readonly<Props_28> & Readonly<{
|
|
@@ -1790,7 +1863,7 @@ pageCurrent: number;
|
|
|
1790
1863
|
pageTotal: number;
|
|
1791
1864
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1792
1865
|
|
|
1793
|
-
export declare const TidePopover:
|
|
1866
|
+
export declare const TidePopover: __VLS_WithTemplateSlots_9<DefineComponent<Props_30, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_30> & Readonly<{}>, {
|
|
1794
1867
|
offset: number;
|
|
1795
1868
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
|
|
1796
1869
|
default?(_: {}): any;
|
|
@@ -1800,7 +1873,7 @@ export declare const TideSeoLinks: DefineComponent<Props_31, {}, {}, {}, {}, Com
|
|
|
1800
1873
|
heading: string;
|
|
1801
1874
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
1802
1875
|
|
|
1803
|
-
export declare const TideSheet:
|
|
1876
|
+
export declare const TideSheet: __VLS_WithTemplateSlots_10<DefineComponent<Props_32, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
1804
1877
|
close: () => any;
|
|
1805
1878
|
back: () => any;
|
|
1806
1879
|
}, string, PublicProps, Readonly<Props_32> & Readonly<{
|
|
@@ -1862,6 +1935,7 @@ export declare const VALIDATOR: {
|
|
|
1862
1935
|
readonly EMAIL: (value: string) => ValidationResult;
|
|
1863
1936
|
readonly NUMBER: (value: string) => ValidationResult;
|
|
1864
1937
|
readonly PHONE: (value: string) => ValidationResult;
|
|
1938
|
+
readonly ZIP: (value: string) => ValidationResult;
|
|
1865
1939
|
};
|
|
1866
1940
|
|
|
1867
1941
|
export declare type Validator = (value: string) => ValidationResult;
|