tide-design-system 2.4.7 → 2.5.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.
@@ -9,31 +9,73 @@ declare type __VLS_PublicProps = {
9
9
  modelValue: boolean;
10
10
  } & typeof __VLS_typeProps;
11
11
 
12
+ declare type __VLS_PublicProps_10 = {
13
+ modelValue: number;
14
+ } & typeof __VLS_typeProps_10;
15
+
16
+ declare type __VLS_PublicProps_11 = {
17
+ modelValue: boolean;
18
+ } & typeof __VLS_typeProps_11;
19
+
20
+ declare type __VLS_PublicProps_12 = {
21
+ modelValue: boolean;
22
+ } & typeof __VLS_typeProps_12;
23
+
12
24
  declare type __VLS_PublicProps_2 = {
13
- modelValue: string;
25
+ modelValue: number;
14
26
  } & typeof __VLS_typeProps_2;
15
27
 
16
28
  declare type __VLS_PublicProps_3 = {
17
- modelValue: string;
29
+ modelValue: boolean;
18
30
  } & typeof __VLS_typeProps_3;
19
31
 
20
32
  declare type __VLS_PublicProps_4 = {
21
- modelValue: string;
33
+ modelValue: boolean;
22
34
  } & typeof __VLS_typeProps_4;
23
35
 
24
36
  declare type __VLS_PublicProps_5 = {
25
37
  modelValue: string;
26
38
  } & typeof __VLS_typeProps_5;
27
39
 
28
- declare let __VLS_typeProps: Props_21;
40
+ declare type __VLS_PublicProps_6 = {
41
+ modelValue: string;
42
+ } & typeof __VLS_typeProps_6;
43
+
44
+ declare type __VLS_PublicProps_7 = {
45
+ modelValue: string;
46
+ } & typeof __VLS_typeProps_7;
47
+
48
+ declare type __VLS_PublicProps_8 = {
49
+ modelValue: string;
50
+ } & typeof __VLS_typeProps_8;
51
+
52
+ declare type __VLS_PublicProps_9 = {
53
+ modelValue: boolean;
54
+ } & typeof __VLS_typeProps_9;
55
+
56
+ declare let __VLS_typeProps: Props;
29
57
 
30
- declare let __VLS_typeProps_2: Props_22;
58
+ declare let __VLS_typeProps_10: Props_29;
31
59
 
32
- declare let __VLS_typeProps_3: Props_23;
60
+ declare let __VLS_typeProps_11: Props_32;
33
61
 
34
- declare let __VLS_typeProps_4: Props_25;
62
+ declare let __VLS_typeProps_12: Props_33;
35
63
 
36
- declare let __VLS_typeProps_5: Props_26;
64
+ declare let __VLS_typeProps_2: Props_9;
65
+
66
+ declare let __VLS_typeProps_3: Props_13;
67
+
68
+ declare let __VLS_typeProps_4: Props_21;
69
+
70
+ declare let __VLS_typeProps_5: Props_22;
71
+
72
+ declare let __VLS_typeProps_6: Props_23;
73
+
74
+ declare let __VLS_typeProps_7: Props_25;
75
+
76
+ declare let __VLS_typeProps_8: Props_26;
77
+
78
+ declare let __VLS_typeProps_9: Props_28;
37
79
 
38
80
  declare type __VLS_WithTemplateSlots<T, S> = T & {
39
81
  new (): {
@@ -976,7 +1018,6 @@ export declare type Priority = (typeof PRIORITY)[keyof typeof PRIORITY];
976
1018
  declare type Props = {
977
1019
  hasBottomDivider?: boolean;
978
1020
  hasTopDivider?: boolean;
979
- isExpanded?: boolean;
980
1021
  isOptional?: boolean;
981
1022
  label: string;
982
1023
  };
@@ -1009,7 +1050,6 @@ declare type Props_12 = {
1009
1050
  };
1010
1051
 
1011
1052
  declare type Props_13 = {
1012
- isActive: boolean;
1013
1053
  label: string;
1014
1054
  };
1015
1055
 
@@ -1143,16 +1183,20 @@ declare type Props_27 = {
1143
1183
  };
1144
1184
 
1145
1185
  declare type Props_28 = {
1186
+ /**
1187
+ * Called before the modal closes.
1188
+ *
1189
+ * Return `false` to cancel the close event.
1190
+ */
1191
+ beforeClose?: () => void | boolean | Promise<void | boolean>;
1146
1192
  isBackButton?: boolean;
1147
1193
  isDismissible?: boolean;
1148
- isOpen: boolean;
1149
1194
  title?: string;
1150
1195
  width?: string;
1151
1196
  };
1152
1197
 
1153
1198
  declare type Props_29 = {
1154
- pageCurrent?: number;
1155
- pageTotal?: number;
1199
+ pageTotal: number;
1156
1200
  };
1157
1201
 
1158
1202
  declare type Props_3 = {
@@ -1173,13 +1217,11 @@ declare type Props_31 = {
1173
1217
  };
1174
1218
 
1175
1219
  declare type Props_32 = {
1176
- isOpen: boolean;
1177
1220
  isBackButton?: boolean;
1178
1221
  };
1179
1222
 
1180
1223
  declare type Props_33 = {
1181
1224
  disabled?: boolean;
1182
- isActive?: boolean;
1183
1225
  };
1184
1226
 
1185
1227
  declare type Props_4 = {
@@ -1221,8 +1263,7 @@ declare type Props_8 = {
1221
1263
  };
1222
1264
 
1223
1265
  declare type Props_9 = {
1224
- activeTab: number;
1225
- tabs: Tab[];
1266
+ tabs: Tab[] | readonly Tab[];
1226
1267
  };
1227
1268
 
1228
1269
  export declare const provideTideConfig: (config?: Partial<TideConfig>) => void;
@@ -1342,15 +1383,13 @@ export declare type TextInput = GenericInput & StringValue & {
1342
1383
 
1343
1384
  export declare type TextInputType = (typeof TEXT_INPUT_TYPE)[keyof typeof TEXT_INPUT_TYPE];
1344
1385
 
1345
- export declare const TideAccordionItem: __VLS_WithTemplateSlots<DefineComponent<Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1346
- toggle: (...args: any[]) => void;
1347
- }, string, PublicProps, Readonly<Props> & Readonly<{
1348
- onToggle?: ((...args: any[]) => any) | undefined;
1386
+ export declare const TideAccordionItem: __VLS_WithTemplateSlots<DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1387
+ "update:modelValue": (modelValue: boolean) => any;
1388
+ }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
1389
+ "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
1349
1390
  }>, {
1350
- label: string;
1351
1391
  hasBottomDivider: boolean;
1352
1392
  hasTopDivider: boolean;
1353
- isExpanded: boolean;
1354
1393
  isOptional: boolean;
1355
1394
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
1356
1395
  default?(_: {}): any;
@@ -1418,13 +1457,11 @@ element: ElementBroad;
1418
1457
  href: string;
1419
1458
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1420
1459
 
1421
- export declare const TideButtonSegmented: DefineComponent<Props_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1422
- change: (...args: any[]) => void;
1423
- }, string, PublicProps, Readonly<Props_9> & Readonly<{
1424
- onChange?: ((...args: any[]) => any) | undefined;
1425
- }>, {
1426
- activeTab: number;
1427
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1460
+ export declare const TideButtonSegmented: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1461
+ "update:modelValue": (modelValue: number) => any;
1462
+ }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
1463
+ "onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
1464
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1428
1465
 
1429
1466
  export declare const TideCard: DefineComponent<Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_10> & Readonly<{}>, {
1430
1467
  type: CardType;
@@ -1458,7 +1495,11 @@ href: string;
1458
1495
  isNewTab: boolean;
1459
1496
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1460
1497
 
1461
- export declare const TideChipFilter: __VLS_WithTemplateSlots_4<DefineComponent<Props_13, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_13> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
1498
+ export declare const TideChipFilter: __VLS_WithTemplateSlots_4<DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1499
+ "update:modelValue": (modelValue: boolean) => any;
1500
+ }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
1501
+ "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
1502
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
1462
1503
  default?(_: {}): any;
1463
1504
  }>;
1464
1505
 
@@ -1516,13 +1557,13 @@ export declare const TideIndicator: DefineComponent<Props_20, {}, {}, {}, {}, Co
1516
1557
  label: string | number;
1517
1558
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1518
1559
 
1519
- export declare const TideInputCheckbox: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1560
+ export declare const TideInputCheckbox: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1520
1561
  "update:modelValue": (modelValue: boolean) => any;
1521
1562
  } & {
1522
1563
  valid: (valid: boolean) => any;
1523
- }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
1524
- onValid?: ((valid: boolean) => any) | undefined;
1564
+ }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
1525
1565
  "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
1566
+ onValid?: ((valid: boolean) => any) | undefined;
1526
1567
  }>, {
1527
1568
  number: number;
1528
1569
  error: string;
@@ -1563,9 +1604,9 @@ name: string;
1563
1604
  checked: boolean;
1564
1605
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1565
1606
 
1566
- export declare const TideInputRadio: DefineComponent<__VLS_PublicProps_2, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1607
+ export declare const TideInputRadio: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1567
1608
  "update:modelValue": (modelValue: string) => any;
1568
- }, string, PublicProps, Readonly<__VLS_PublicProps_2> & Readonly<{
1609
+ }, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
1569
1610
  "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
1570
1611
  }>, {
1571
1612
  number: number;
@@ -1600,13 +1641,13 @@ name: string;
1600
1641
  checked: boolean;
1601
1642
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1602
1643
 
1603
- export declare const TideInputSelect: DefineComponent<__VLS_PublicProps_3, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1644
+ export declare const TideInputSelect: DefineComponent<__VLS_PublicProps_6, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1604
1645
  "update:modelValue": (modelValue: string) => any;
1605
1646
  } & {
1606
1647
  valid: (isValid: boolean) => any;
1607
- }, string, PublicProps, Readonly<__VLS_PublicProps_3> & Readonly<{
1608
- onValid?: ((isValid: boolean) => any) | undefined;
1648
+ }, string, PublicProps, Readonly<__VLS_PublicProps_6> & Readonly<{
1609
1649
  "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
1650
+ onValid?: ((isValid: boolean) => any) | undefined;
1610
1651
  }>, {
1611
1652
  error: string;
1612
1653
  label: string;
@@ -1635,13 +1676,13 @@ inputId: string;
1635
1676
  supportingText: string;
1636
1677
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1637
1678
 
1638
- export declare const TideInputText: DefineComponent<__VLS_PublicProps_4, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1679
+ export declare const TideInputText: DefineComponent<__VLS_PublicProps_7, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1639
1680
  "update:modelValue": (modelValue: string) => any;
1640
1681
  } & {
1641
1682
  valid: (isValid: boolean) => any;
1642
- }, string, PublicProps, Readonly<__VLS_PublicProps_4> & Readonly<{
1643
- onValid?: ((isValid: boolean) => any) | undefined;
1683
+ }, string, PublicProps, Readonly<__VLS_PublicProps_7> & Readonly<{
1644
1684
  "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
1685
+ onValid?: ((isValid: boolean) => any) | undefined;
1645
1686
  }>, {
1646
1687
  error: string;
1647
1688
  type: TextInputType;
@@ -1664,13 +1705,13 @@ suffix: string;
1664
1705
  transformValue: FormValueTransformer;
1665
1706
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1666
1707
 
1667
- export declare const TideInputTextarea: DefineComponent<__VLS_PublicProps_5, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1708
+ export declare const TideInputTextarea: DefineComponent<__VLS_PublicProps_8, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1668
1709
  "update:modelValue": (modelValue: string) => any;
1669
1710
  } & {
1670
1711
  valid: (isValid: boolean) => any;
1671
- }, string, PublicProps, Readonly<__VLS_PublicProps_5> & Readonly<{
1672
- onValid?: ((isValid: boolean) => any) | undefined;
1712
+ }, string, PublicProps, Readonly<__VLS_PublicProps_8> & Readonly<{
1673
1713
  "onUpdate:modelValue"?: ((modelValue: string) => any) | undefined;
1714
+ onValid?: ((isValid: boolean) => any) | undefined;
1674
1715
  }>, {
1675
1716
  error: string;
1676
1717
  label: string;
@@ -1838,30 +1879,29 @@ isNewTab: boolean;
1838
1879
  iconTrailing: Icon;
1839
1880
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1840
1881
 
1841
- export declare const TideModal: __VLS_WithTemplateSlots_8<DefineComponent<Props_28, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1842
- close: () => any;
1882
+ export declare const TideModal: __VLS_WithTemplateSlots_8<DefineComponent<__VLS_PublicProps_9, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1883
+ "update:modelValue": (modelValue: boolean) => any;
1884
+ } & {
1843
1885
  back: () => any;
1844
- }, string, PublicProps, Readonly<Props_28> & Readonly<{
1845
- onClose?: (() => any) | undefined;
1886
+ }, string, PublicProps, Readonly<__VLS_PublicProps_9> & Readonly<{
1887
+ "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
1846
1888
  onBack?: (() => any) | undefined;
1847
1889
  }>, {
1848
1890
  title: string;
1849
1891
  width: string;
1850
1892
  isDismissible: boolean;
1893
+ beforeClose: () => boolean | void | Promise<boolean | void>;
1851
1894
  isBackButton: boolean;
1852
1895
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
1853
1896
  default?(_: {}): any;
1854
1897
  footer?(_: {}): any;
1855
1898
  }>;
1856
1899
 
1857
- export declare const TidePagination: DefineComponent<Props_29, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1858
- change: (...args: any[]) => void;
1859
- }, string, PublicProps, Readonly<Props_29> & Readonly<{
1860
- onChange?: ((...args: any[]) => any) | undefined;
1861
- }>, {
1862
- pageCurrent: number;
1863
- pageTotal: number;
1864
- }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1900
+ export declare const TidePagination: DefineComponent<__VLS_PublicProps_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1901
+ "update:modelValue": (modelValue: number) => any;
1902
+ }, string, PublicProps, Readonly<__VLS_PublicProps_10> & Readonly<{
1903
+ "onUpdate:modelValue"?: ((modelValue: number) => any) | undefined;
1904
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1865
1905
 
1866
1906
  export declare const TidePopover: __VLS_WithTemplateSlots_9<DefineComponent<Props_30, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<Props_30> & Readonly<{}>, {
1867
1907
  offset: number;
@@ -1873,23 +1913,25 @@ export declare const TideSeoLinks: DefineComponent<Props_31, {}, {}, {}, {}, Com
1873
1913
  heading: string;
1874
1914
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1875
1915
 
1876
- export declare const TideSheet: __VLS_WithTemplateSlots_10<DefineComponent<Props_32, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
1877
- close: () => any;
1916
+ export declare const TideSheet: __VLS_WithTemplateSlots_10<DefineComponent<__VLS_PublicProps_11, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1917
+ "update:modelValue": (modelValue: boolean) => any;
1918
+ } & {
1878
1919
  back: () => any;
1879
- }, string, PublicProps, Readonly<Props_32> & Readonly<{
1880
- onClose?: (() => any) | undefined;
1920
+ }, string, PublicProps, Readonly<__VLS_PublicProps_11> & Readonly<{
1921
+ "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
1881
1922
  onBack?: (() => any) | undefined;
1882
- }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
1923
+ }>, {
1924
+ isBackButton: boolean;
1925
+ }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>, {
1883
1926
  default?(_: {}): any;
1884
1927
  }>;
1885
1928
 
1886
- export declare const TideSwitch: DefineComponent<Props_33, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1887
- change: (...args: any[]) => void;
1888
- }, string, PublicProps, Readonly<Props_33> & Readonly<{
1889
- onChange?: ((...args: any[]) => any) | undefined;
1929
+ export declare const TideSwitch: DefineComponent<__VLS_PublicProps_12, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
1930
+ "update:modelValue": (modelValue: boolean) => any;
1931
+ }, string, PublicProps, Readonly<__VLS_PublicProps_12> & Readonly<{
1932
+ "onUpdate:modelValue"?: ((modelValue: boolean) => any) | undefined;
1890
1933
  }>, {
1891
1934
  disabled: boolean;
1892
- isActive: boolean;
1893
1935
  }, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
1894
1936
 
1895
1937
  export declare const TYPE_CARD: {