@sprinklrjs/spaceweb 14.16.1 → 14.16.3

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 (118) hide show
  1. package/_hds_internal_deprecations.d.ts +863 -0
  2. package/_hds_internal_deprecations.js +345 -0
  3. package/asyncSelect/hooks/useAsyncSelect.d.ts +3 -3
  4. package/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +3 -3
  5. package/avatar/avatar.js +3 -3
  6. package/avatar/types.d.ts +1 -1
  7. package/banner/types.d.ts +1 -1
  8. package/baseui/datepicker/day.js +21 -8
  9. package/baseui/select/dropdown.d.ts +1 -1
  10. package/baseui/select/select-component.d.ts +1 -1
  11. package/button-group/ButtonGroup.d.ts +2 -2
  12. package/button-group/StatefulButtonGroup.d.ts +2 -2
  13. package/button-group/styled-components.d.ts +2 -2
  14. package/button-group/types.d.ts +6 -4
  15. package/checkbox/types.d.ts +4 -4
  16. package/date-input/DateInput.js +3 -0
  17. package/date-picker/types.d.ts +2 -6
  18. package/esm/_hds_internal_deprecations.d.ts +863 -0
  19. package/esm/_hds_internal_deprecations.js +342 -0
  20. package/esm/asyncSelect/hooks/useAsyncSelect.d.ts +3 -3
  21. package/esm/asyncSelect/hooks/useGroupedAsyncSelect.d.ts +3 -3
  22. package/esm/avatar/avatar.js +3 -3
  23. package/esm/avatar/types.d.ts +1 -1
  24. package/esm/banner/types.d.ts +1 -1
  25. package/esm/baseui/datepicker/day.js +21 -8
  26. package/esm/baseui/select/dropdown.d.ts +1 -1
  27. package/esm/baseui/select/select-component.d.ts +1 -1
  28. package/esm/button-group/ButtonGroup.d.ts +2 -2
  29. package/esm/button-group/StatefulButtonGroup.d.ts +2 -2
  30. package/esm/button-group/styled-components.d.ts +2 -2
  31. package/esm/button-group/types.d.ts +6 -4
  32. package/esm/checkbox/types.d.ts +4 -4
  33. package/esm/date-input/DateInput.js +3 -0
  34. package/esm/date-picker/types.d.ts +2 -6
  35. package/esm/form-control/types.d.ts +1 -1
  36. package/esm/image/types.d.ts +1 -1
  37. package/esm/input/number/base-input.d.ts +1 -1
  38. package/esm/input/types.d.ts +6 -13
  39. package/esm/menu/StatefulSubMenu.d.ts +1 -1
  40. package/esm/menu/SubMenu.d.ts +1 -1
  41. package/esm/menu/menu-item.d.ts +1 -1
  42. package/esm/menu/types.d.ts +1 -3
  43. package/esm/modal/types.d.ts +1 -6
  44. package/esm/popover/popover.d.ts +1 -1
  45. package/esm/progressSteps/types.d.ts +2 -0
  46. package/esm/radio/types.d.ts +8 -8
  47. package/esm/search/types.d.ts +6 -6
  48. package/esm/select/base-select.d.ts +1 -1
  49. package/esm/select/default-props.d.ts +1 -1
  50. package/esm/select/nested-select.d.ts +2 -2
  51. package/esm/select/select.d.ts +1 -1
  52. package/esm/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +1 -1
  53. package/esm/select/selectMenuAdapter/SelectMenuItem.d.ts +1 -1
  54. package/esm/select/stateful-select.d.ts +1 -1
  55. package/esm/select/types.d.ts +1 -1
  56. package/esm/slider/types.d.ts +2 -2
  57. package/esm/stack/stack.d.ts +5 -5
  58. package/esm/tabs/hooks/useScrollableTabs.d.ts +1 -1
  59. package/esm/tabs/types.d.ts +8 -9
  60. package/esm/tag/types.d.ts +7 -10
  61. package/esm/test-utils/keyboard/focusLock.d.ts +19 -0
  62. package/esm/test-utils/keyboard/focusLock.js +31 -0
  63. package/esm/test-utils/keyboard/index.d.ts +15 -0
  64. package/esm/test-utils/keyboard/index.js +15 -0
  65. package/esm/test-utils/keyboard/patterns.d.ts +63 -0
  66. package/esm/test-utils/keyboard/patterns.js +178 -0
  67. package/esm/test-utils/keyboard/press.d.ts +12 -0
  68. package/esm/test-utils/keyboard/press.js +22 -0
  69. package/esm/textarea/types.d.ts +10 -5
  70. package/esm/tooltip/disabled-tooltip-container.d.ts +1 -1
  71. package/esm/tooltip/stateful-tooltip-container.d.ts +1 -1
  72. package/esm/tooltip/stateful-tooltip.d.ts +1 -1
  73. package/esm/tooltip/types.d.ts +9 -21
  74. package/esm/types.d.ts +4 -1
  75. package/esm/typography/types.d.ts +63 -4
  76. package/form-control/types.d.ts +1 -1
  77. package/image/types.d.ts +1 -1
  78. package/input/number/base-input.d.ts +1 -1
  79. package/input/types.d.ts +6 -13
  80. package/menu/StatefulSubMenu.d.ts +1 -1
  81. package/menu/SubMenu.d.ts +1 -1
  82. package/menu/menu-item.d.ts +1 -1
  83. package/menu/types.d.ts +1 -3
  84. package/modal/types.d.ts +1 -6
  85. package/package.json +12 -2
  86. package/popover/popover.d.ts +1 -1
  87. package/progressSteps/types.d.ts +2 -0
  88. package/radio/types.d.ts +8 -8
  89. package/search/types.d.ts +6 -6
  90. package/select/base-select.d.ts +1 -1
  91. package/select/default-props.d.ts +1 -1
  92. package/select/nested-select.d.ts +2 -2
  93. package/select/select.d.ts +1 -1
  94. package/select/selectMenuAdapter/CollapsibleSelectMenu.d.ts +1 -1
  95. package/select/selectMenuAdapter/SelectMenuItem.d.ts +1 -1
  96. package/select/stateful-select.d.ts +1 -1
  97. package/select/types.d.ts +1 -1
  98. package/slider/types.d.ts +2 -2
  99. package/stack/stack.d.ts +5 -5
  100. package/tabs/hooks/useScrollableTabs.d.ts +1 -1
  101. package/tabs/types.d.ts +8 -9
  102. package/tag/types.d.ts +7 -10
  103. package/test-utils/keyboard/focusLock.d.ts +19 -0
  104. package/test-utils/keyboard/focusLock.js +35 -0
  105. package/test-utils/keyboard/index.d.ts +15 -0
  106. package/test-utils/keyboard/index.js +27 -0
  107. package/test-utils/keyboard/patterns.d.ts +63 -0
  108. package/test-utils/keyboard/patterns.js +185 -0
  109. package/test-utils/keyboard/press.d.ts +12 -0
  110. package/test-utils/keyboard/press.js +30 -0
  111. package/textarea/types.d.ts +10 -5
  112. package/tooltip/disabled-tooltip-container.d.ts +1 -1
  113. package/tooltip/stateful-tooltip-container.d.ts +1 -1
  114. package/tooltip/stateful-tooltip.d.ts +1 -1
  115. package/tooltip/types.d.ts +9 -21
  116. package/tsconfig.build.tsbuildinfo +1 -1
  117. package/types.d.ts +4 -1
  118. package/typography/types.d.ts +63 -4
package/types.d.ts CHANGED
@@ -63,10 +63,12 @@ export type BrowserFeaturesContext = {
63
63
  * Variant Options
64
64
  */
65
65
  export type Variant = 'primary' | 'secondary' | 'tertiary' | 'minimal';
66
+ /** @deprecated Use 'small', 'medium' or 'large' instead. */
67
+ type DeprecatedSize = 'xxxxs' | 'xxxs' | 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl';
66
68
  /**
67
69
  * Size Options
68
70
  */
69
- export type Size = 'xxxxs' | 'xxxs' | 'xxs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'small' | 'medium' | 'large' | 'x-large';
71
+ export type Size = DeprecatedSize | 'small' | 'medium' | 'large' | 'x-large';
70
72
  /**
71
73
  * Intent Options
72
74
  */
@@ -112,3 +114,4 @@ export type Action = {
112
114
  onClick: () => void;
113
115
  startEnhancer?: ReactNode;
114
116
  };
117
+ export {};
@@ -5,13 +5,72 @@ import type { TruncateWithTooltipProps } from '../truncateWithTooltip';
5
5
  type TypographyBodyHeaderVariants = 'display' | 'heading-1' | 'heading-2' | 'heading-3' | 'heading-4' | 'heading-5' | 'heading-6' | 'heading-7' | 'body-lg' | 'body-md' | 'body-sm' | 'body-xs';
6
6
  /**
7
7
  * @deprecated Prefer TypographyBodyHeaderVariants
8
+ * Deprecated variants are mapped to a variant of the same family. Line height and weight are ignored.
8
9
  */
9
- type DeprecatedTypographyVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'h7' | 'bl1' | 'bl2' | 'bl3' | 'bs1' | 'bs2' | 'bs3' | 'l1' | 'l2' | 'l3' | 'l4' | 'body-8' | 'body-10' | 'body-12' | 'body-13' | 'body-14' | 'body-16' | 'display-18' | 'display-20' | 'display-24' | 'display-28' | 'display-32' | 'display-40' | 'display-42';
10
+ type DeprecatedTypographyVariant =
11
+ /** @deprecated No matching variant exists. Use suitable heading variant. */
12
+ 'h1'
13
+ /** @deprecated Use 'heading-4' instead. */
14
+ | 'h2'
15
+ /** @deprecated Use 'heading-5' instead. */
16
+ | 'h3'
17
+ /** @deprecated Use 'heading-7' instead. */
18
+ | 'h4'
19
+ /** @deprecated Use 'heading-7' instead. */
20
+ | 'h5'
21
+ /** @deprecated No matching variant exists. Use suitable heading variant. */
22
+ | 'h6'
23
+ /** @deprecated No matching variant exists. Use suitable heading variant. */
24
+ | 'h7'
25
+ /** @deprecated Use 'body-sm' instead. */
26
+ | 'bl1'
27
+ /** @deprecated No matching variant exists. Use suitable body variant. */
28
+ | 'bl2'
29
+ /** @deprecated Use 'body-xs' instead. */
30
+ | 'bl3'
31
+ /** @deprecated Use 'body-sm' instead. */
32
+ | 'bs1'
33
+ /** @deprecated No matching variant exists. Use suitable body variant. */
34
+ | 'bs2'
35
+ /** @deprecated Use 'body-xs' instead. */
36
+ | 'bs3'
37
+ /** @deprecated No matching variant exists. Use suitable body variant. */
38
+ | 'l1'
39
+ /** @deprecated Use 'body-xs' instead. */
40
+ | 'l2'
41
+ /** @deprecated No matching variant exists. Use suitable body variant. */
42
+ | 'l3'
43
+ /** @deprecated No matching variant exists. Use suitable body variant. */
44
+ | 'l4'
45
+ /** @deprecated No matching variant exists. Use suitable body variant. */
46
+ | 'body-8'
47
+ /** @deprecated No matching variant exists. Use suitable body variant. */
48
+ | 'body-10'
49
+ /** @deprecated Use 'body-xs' instead. */
50
+ | 'body-12'
51
+ /** @deprecated No matching variant exists. Use suitable body variant. */
52
+ | 'body-13'
53
+ /** @deprecated Use 'body-sm' instead. */
54
+ | 'body-14'
55
+ /** @deprecated Use 'body-md' instead. */
56
+ | 'body-16'
57
+ /** @deprecated Use 'heading-6' instead. */
58
+ | 'display-18'
59
+ /** @deprecated Use 'heading-5' instead. */
60
+ | 'display-20'
61
+ /** @deprecated Use 'heading-4' instead. */
62
+ | 'display-24'
63
+ /** @deprecated Use 'heading-3' instead. */
64
+ | 'display-28'
65
+ /** @deprecated Use 'heading-2' instead. */
66
+ | 'display-32'
67
+ /** @deprecated Use 'heading-1' instead. */
68
+ | 'display-40'
69
+ /** @deprecated No matching variant exists. Use suitable heading variant. */
70
+ | 'display-42';
10
71
  export type TypographyVariant = TypographyBodyHeaderVariants | DeprecatedTypographyVariant;
11
72
  export type FontWeight = 'regular' | 'semibold' | 'bold'
12
- /**
13
- * @deprecated Prefer regular or semibold
14
- */
73
+ /** @deprecated Use 'regular' or 'semibold' instead. */
15
74
  | 'medium';
16
75
  export type Intent = 'default' | 'ai';
17
76
  export type TypographyProps = PropsWithChildren<SpacewebComponentProps> & {