tide-design-system 2.0.30 → 2.0.32

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.
@@ -45,6 +45,8 @@ declare type __VLS_NonUndefinedable_25<T> = T extends undefined ? never : T;
45
45
 
46
46
  declare type __VLS_NonUndefinedable_26<T> = T extends undefined ? never : T;
47
47
 
48
+ declare type __VLS_NonUndefinedable_27<T> = T extends undefined ? never : T;
49
+
48
50
  declare type __VLS_NonUndefinedable_3<T> = T extends undefined ? never : T;
49
51
 
50
52
  declare type __VLS_NonUndefinedable_4<T> = T extends undefined ? never : T;
@@ -115,6 +117,10 @@ declare type __VLS_PrettifyLocal_21<T> = {
115
117
  [K in keyof T]: T[K];
116
118
  } & {};
117
119
 
120
+ declare type __VLS_PrettifyLocal_22<T> = {
121
+ [K in keyof T]: T[K];
122
+ } & {};
123
+
118
124
  declare type __VLS_PrettifyLocal_3<T> = {
119
125
  [K in keyof T]: T[K];
120
126
  } & {};
@@ -314,6 +320,15 @@ declare type __VLS_TypePropsToOption_26<T> = {
314
320
  };
315
321
  };
316
322
 
323
+ declare type __VLS_TypePropsToOption_27<T> = {
324
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
325
+ type: PropType<__VLS_NonUndefinedable_27<T[K]>>;
326
+ } : {
327
+ type: PropType<T[K]>;
328
+ required: true;
329
+ };
330
+ };
331
+
317
332
  declare type __VLS_TypePropsToOption_3<T> = {
318
333
  [K in keyof T]-?: {} extends Pick<T, K> ? {
319
334
  type: PropType<__VLS_NonUndefinedable_3<T[K]>>;
@@ -461,6 +476,12 @@ declare type __VLS_WithDefaults_21<P, D> = {
461
476
  }> : P[K];
462
477
  };
463
478
 
479
+ declare type __VLS_WithDefaults_22<P, D> = {
480
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_22<P[K] & {
481
+ default: D[K];
482
+ }> : P[K];
483
+ };
484
+
464
485
  declare type __VLS_WithDefaults_3<P, D> = {
465
486
  [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_PrettifyLocal_3<P[K] & {
466
487
  default: D[K];
@@ -1286,15 +1307,21 @@ declare type Props_18 = {
1286
1307
  checked?: boolean;
1287
1308
  dataTrack?: string;
1288
1309
  disabled?: boolean;
1310
+ indeterminate?: boolean;
1289
1311
  inputId?: string;
1290
1312
  label: string;
1291
1313
  name: string;
1314
+ number?: number | undefined;
1292
1315
  };
1293
1316
 
1294
- declare interface Props_19 extends SelectField {
1317
+ declare type Props_19 = {
1318
+ checked?: boolean;
1319
+ dataTrack?: string;
1320
+ disabled?: boolean;
1295
1321
  inputId?: string;
1296
- supportingText?: string;
1297
- }
1322
+ label: string;
1323
+ name: string;
1324
+ };
1298
1325
 
1299
1326
  declare type Props_2 = {
1300
1327
  alt: string;
@@ -1302,7 +1329,12 @@ declare type Props_2 = {
1302
1329
  src: string;
1303
1330
  };
1304
1331
 
1305
- declare type Props_20 = {
1332
+ declare interface Props_20 extends SelectField {
1333
+ inputId?: string;
1334
+ supportingText?: string;
1335
+ }
1336
+
1337
+ declare type Props_21 = {
1306
1338
  autocomplete?: boolean;
1307
1339
  dataTrack?: string;
1308
1340
  disabled?: boolean;
@@ -1324,7 +1356,7 @@ declare type Props_20 = {
1324
1356
  value?: string;
1325
1357
  };
1326
1358
 
1327
- declare type Props_21 = {
1359
+ declare type Props_22 = {
1328
1360
  dataTrack?: string;
1329
1361
  error?: ValidationError;
1330
1362
  inputId?: string;
@@ -1338,7 +1370,7 @@ declare type Props_21 = {
1338
1370
  value?: string;
1339
1371
  };
1340
1372
 
1341
- declare type Props_22 = {
1373
+ declare type Props_23 = {
1342
1374
  element?: Element_2;
1343
1375
  href?: string;
1344
1376
  iconLeading?: Icon;
@@ -1347,23 +1379,23 @@ declare type Props_22 = {
1347
1379
  label: string;
1348
1380
  };
1349
1381
 
1350
- declare type Props_23 = {
1382
+ declare type Props_24 = {
1351
1383
  isOpen: boolean;
1352
1384
  title?: string;
1353
1385
  width?: string;
1354
1386
  };
1355
1387
 
1356
- declare type Props_24 = {
1388
+ declare type Props_25 = {
1357
1389
  pageCurrent?: number;
1358
1390
  pageTotal?: number;
1359
1391
  };
1360
1392
 
1361
- declare type Props_25 = {
1393
+ declare type Props_26 = {
1362
1394
  heading?: string;
1363
1395
  links: Link[];
1364
1396
  };
1365
1397
 
1366
- declare type Props_26 = {
1398
+ declare type Props_27 = {
1367
1399
  activeTabInitial?: number;
1368
1400
  tabs: Tab[];
1369
1401
  };
@@ -1451,24 +1483,24 @@ export declare type RealmConfig = {
1451
1483
  };
1452
1484
 
1453
1485
  export declare interface SelectField extends GenericInput, StringValue {
1454
- optgroups?: SelectOptionGroup[];
1486
+ optgroups?: (SelectOption | SelectOptionGroup)[];
1455
1487
  options?: SelectOption[];
1456
1488
  }
1457
1489
 
1458
1490
  export declare type SelectInput = GenericInput_2 & StringValue_2 & {
1459
1491
  options?: SelectOption[] | readonly SelectOption[];
1460
1492
  placeholder?: string;
1461
- optgroups?: SelectOptionGroup[];
1493
+ optgroups?: (SelectOption | SelectOptionGroup)[];
1462
1494
  };
1463
1495
 
1464
1496
  export declare type SelectOption = {
1465
- label: string | number;
1466
- value: any;
1497
+ label: string;
1498
+ value?: string;
1467
1499
  };
1468
1500
 
1469
1501
  export declare type SelectOptionGroup = {
1470
1502
  label: string;
1471
- options?: SelectOption[];
1503
+ options: SelectOption[];
1472
1504
  };
1473
1505
 
1474
1506
  export declare const SIZE: {
@@ -1839,13 +1871,45 @@ label: undefined;
1839
1871
  label: string | number;
1840
1872
  }, {}>;
1841
1873
 
1842
- export declare const TideInputRadio: DefineComponent<__VLS_WithDefaults_14<__VLS_TypePropsToOption_18<Props_18>, {
1874
+ export declare const TideInputCheckbox: DefineComponent<__VLS_WithDefaults_14<__VLS_TypePropsToOption_18<Props_18>, {
1875
+ checked: boolean;
1876
+ dataTrack: string;
1877
+ disabled: boolean;
1878
+ indeterminate: boolean;
1879
+ inputId: undefined;
1880
+ label: undefined;
1881
+ name: undefined;
1882
+ number: undefined;
1883
+ }>, {
1884
+ checked: Ref<boolean>;
1885
+ indeterminate: Ref<boolean>;
1886
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_18<Props_18>, {
1887
+ checked: boolean;
1888
+ dataTrack: string;
1889
+ disabled: boolean;
1890
+ indeterminate: boolean;
1891
+ inputId: undefined;
1892
+ label: undefined;
1893
+ name: undefined;
1894
+ number: undefined;
1895
+ }>>>, {
1896
+ number: number;
1897
+ label: string;
1898
+ disabled: boolean;
1899
+ checked: boolean;
1900
+ dataTrack: string;
1901
+ indeterminate: boolean;
1902
+ inputId: string;
1903
+ name: string;
1904
+ }, {}>;
1905
+
1906
+ export declare const TideInputRadio: DefineComponent<__VLS_WithDefaults_15<__VLS_TypePropsToOption_19<Props_19>, {
1843
1907
  checked: boolean;
1844
1908
  dataTrack: string;
1845
1909
  disabled: boolean;
1846
1910
  inputId: undefined;
1847
1911
  label: undefined;
1848
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_14<__VLS_TypePropsToOption_18<Props_18>, {
1912
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_19<Props_19>, {
1849
1913
  checked: boolean;
1850
1914
  dataTrack: string;
1851
1915
  disabled: boolean;
@@ -1859,25 +1923,25 @@ dataTrack: string;
1859
1923
  inputId: string;
1860
1924
  }, {}>;
1861
1925
 
1862
- export declare const TideInputSelect: DefineComponent<__VLS_WithDefaults_15<__VLS_TypePropsToOption_19<Props_19>, {
1926
+ export declare const TideInputSelect: DefineComponent<__VLS_WithDefaults_16<__VLS_TypePropsToOption_20<Props_20>, {
1863
1927
  disabled: boolean;
1864
1928
  error: boolean;
1865
1929
  inputId: undefined;
1866
1930
  label: undefined;
1867
1931
  required: boolean;
1868
1932
  supportingText: undefined;
1869
- value: string;
1933
+ value: undefined;
1870
1934
  }>, {
1871
1935
  error: Ref<ValidationError_2>;
1872
- value: Ref<string>;
1873
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_15<__VLS_TypePropsToOption_19<Props_19>, {
1936
+ value: Ref<string | undefined>;
1937
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_20<Props_20>, {
1874
1938
  disabled: boolean;
1875
1939
  error: boolean;
1876
1940
  inputId: undefined;
1877
1941
  label: undefined;
1878
1942
  required: boolean;
1879
1943
  supportingText: undefined;
1880
- value: string;
1944
+ value: undefined;
1881
1945
  }>>>, {
1882
1946
  label: string;
1883
1947
  error: ValidationError_2;
@@ -1888,7 +1952,7 @@ value: string;
1888
1952
  supportingText: string;
1889
1953
  }, {}>;
1890
1954
 
1891
- export declare const TideInputText: DefineComponent<__VLS_WithDefaults_16<__VLS_TypePropsToOption_20<Props_20>, {
1955
+ export declare const TideInputText: DefineComponent<__VLS_WithDefaults_17<__VLS_TypePropsToOption_21<Props_21>, {
1892
1956
  autocomplete: boolean;
1893
1957
  dataTrack: string;
1894
1958
  disabled: boolean;
@@ -1911,7 +1975,7 @@ value: string;
1911
1975
  error: Ref<ValidationError>;
1912
1976
  updateValue: (newValue: string) => void;
1913
1977
  value: Ref<string>;
1914
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_16<__VLS_TypePropsToOption_20<Props_20>, {
1978
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_21<Props_21>, {
1915
1979
  autocomplete: boolean;
1916
1980
  dataTrack: string;
1917
1981
  disabled: boolean;
@@ -1951,7 +2015,7 @@ suffix: string;
1951
2015
  transformValue: FormValueTransformer;
1952
2016
  }, {}>;
1953
2017
 
1954
- export declare const TideInputTextarea: DefineComponent<__VLS_WithDefaults_17<__VLS_TypePropsToOption_21<Props_21>, {
2018
+ export declare const TideInputTextarea: DefineComponent<__VLS_WithDefaults_18<__VLS_TypePropsToOption_22<Props_22>, {
1955
2019
  dataTrack: string;
1956
2020
  error: boolean;
1957
2021
  inputId: undefined;
@@ -1966,7 +2030,7 @@ value: string;
1966
2030
  }>, {
1967
2031
  error: Ref<ValidationError>;
1968
2032
  value: Ref<string>;
1969
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_17<__VLS_TypePropsToOption_21<Props_21>, {
2033
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_18<__VLS_TypePropsToOption_22<Props_22>, {
1970
2034
  dataTrack: string;
1971
2035
  error: boolean;
1972
2036
  inputId: undefined;
@@ -1992,14 +2056,14 @@ supportingText: string;
1992
2056
  rows: number;
1993
2057
  }, {}>;
1994
2058
 
1995
- export declare const TideLink: DefineComponent<__VLS_WithDefaults_18<__VLS_TypePropsToOption_22<Props_22>, {
2059
+ export declare const TideLink: DefineComponent<__VLS_WithDefaults_19<__VLS_TypePropsToOption_23<Props_23>, {
1996
2060
  element: "a";
1997
2061
  href: undefined;
1998
2062
  iconLeading: undefined;
1999
2063
  iconTrailing: undefined;
2000
2064
  isNewTab: boolean;
2001
2065
  label: undefined;
2002
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_18<__VLS_TypePropsToOption_22<Props_22>, {
2066
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_19<__VLS_TypePropsToOption_23<Props_23>, {
2003
2067
  element: "a";
2004
2068
  href: undefined;
2005
2069
  iconLeading: undefined;
@@ -2015,21 +2079,21 @@ iconLeading: Icon;
2015
2079
  iconTrailing: Icon;
2016
2080
  }, {}>;
2017
2081
 
2018
- export declare const TideModal: __VLS_WithTemplateSlots_8<DefineComponent<__VLS_TypePropsToOption_23<Props_23>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2082
+ export declare const TideModal: __VLS_WithTemplateSlots_8<DefineComponent<__VLS_TypePropsToOption_24<Props_24>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2019
2083
  close: (...args: any[]) => void;
2020
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_TypePropsToOption_23<Props_23>>> & {
2084
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_TypePropsToOption_24<Props_24>>> & {
2021
2085
  onClose?: ((...args: any[]) => any) | undefined;
2022
2086
  }, {}, {}>, {
2023
2087
  default?(_: {}): any;
2024
2088
  footer?(_: {}): any;
2025
2089
  }>;
2026
2090
 
2027
- export declare const TidePagination: DefineComponent<__VLS_WithDefaults_19<__VLS_TypePropsToOption_24<Props_24>, {
2091
+ export declare const TidePagination: DefineComponent<__VLS_WithDefaults_20<__VLS_TypePropsToOption_25<Props_25>, {
2028
2092
  pageCurrent: number;
2029
2093
  pageTotal: number;
2030
2094
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2031
2095
  change: (...args: any[]) => void;
2032
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_19<__VLS_TypePropsToOption_24<Props_24>, {
2096
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_20<__VLS_TypePropsToOption_25<Props_25>, {
2033
2097
  pageCurrent: number;
2034
2098
  pageTotal: number;
2035
2099
  }>>> & {
@@ -2039,19 +2103,19 @@ pageCurrent: number;
2039
2103
  pageTotal: number;
2040
2104
  }, {}>;
2041
2105
 
2042
- export declare const TideSeoLinks: DefineComponent<__VLS_WithDefaults_20<__VLS_TypePropsToOption_25<Props_25>, {
2106
+ export declare const TideSeoLinks: DefineComponent<__VLS_WithDefaults_21<__VLS_TypePropsToOption_26<Props_26>, {
2043
2107
  heading: string;
2044
- }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_20<__VLS_TypePropsToOption_25<Props_25>, {
2108
+ }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_21<__VLS_TypePropsToOption_26<Props_26>, {
2045
2109
  heading: string;
2046
2110
  }>>>, {
2047
2111
  heading: string;
2048
2112
  }, {}>;
2049
2113
 
2050
- export declare const TideTabs: DefineComponent<__VLS_WithDefaults_21<__VLS_TypePropsToOption_26<Props_26>, {
2114
+ export declare const TideTabs: DefineComponent<__VLS_WithDefaults_22<__VLS_TypePropsToOption_27<Props_27>, {
2051
2115
  activeTabInitial: number;
2052
2116
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
2053
2117
  change: (...args: any[]) => void;
2054
- }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_21<__VLS_TypePropsToOption_26<Props_26>, {
2118
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults_22<__VLS_TypePropsToOption_27<Props_27>, {
2055
2119
  activeTabInitial: number;
2056
2120
  }>>> & {
2057
2121
  onChange?: ((...args: any[]) => any) | undefined;