@cloudscape-design/components 3.0.28 → 3.0.31

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 (279) hide show
  1. package/app-layout/visual-refresh/styles.css.js +59 -59
  2. package/app-layout/visual-refresh/styles.scoped.css +146 -146
  3. package/app-layout/visual-refresh/styles.selectors.js +59 -59
  4. package/autosuggest/autosuggest-option.d.ts +1 -0
  5. package/autosuggest/autosuggest-option.d.ts.map +1 -1
  6. package/autosuggest/autosuggest-option.js +2 -2
  7. package/autosuggest/autosuggest-option.js.map +1 -1
  8. package/autosuggest/controller.d.ts +2 -5
  9. package/autosuggest/controller.d.ts.map +1 -1
  10. package/autosuggest/controller.js +5 -49
  11. package/autosuggest/controller.js.map +1 -1
  12. package/autosuggest/internal.d.ts.map +1 -1
  13. package/autosuggest/internal.js +19 -25
  14. package/autosuggest/internal.js.map +1 -1
  15. package/autosuggest/options-controller.d.ts +25 -0
  16. package/autosuggest/options-controller.d.ts.map +1 -0
  17. package/autosuggest/options-controller.js +64 -0
  18. package/autosuggest/options-controller.js.map +1 -0
  19. package/autosuggest/options-list.d.ts +3 -2
  20. package/autosuggest/options-list.d.ts.map +1 -1
  21. package/autosuggest/options-list.js +8 -7
  22. package/autosuggest/options-list.js.map +1 -1
  23. package/autosuggest/plain-list.d.ts +2 -2
  24. package/autosuggest/plain-list.d.ts.map +1 -1
  25. package/autosuggest/plain-list.js +4 -4
  26. package/autosuggest/plain-list.js.map +1 -1
  27. package/autosuggest/virtual-list.d.ts +1 -1
  28. package/autosuggest/virtual-list.d.ts.map +1 -1
  29. package/autosuggest/virtual-list.js +4 -4
  30. package/autosuggest/virtual-list.js.map +1 -1
  31. package/breadcrumb-group/internal.d.ts.map +1 -1
  32. package/breadcrumb-group/internal.js +4 -4
  33. package/breadcrumb-group/internal.js.map +1 -1
  34. package/button-dropdown/category-elements/category-element.d.ts +1 -1
  35. package/button-dropdown/category-elements/category-element.d.ts.map +1 -1
  36. package/button-dropdown/category-elements/category-element.js +2 -2
  37. package/button-dropdown/category-elements/category-element.js.map +1 -1
  38. package/button-dropdown/category-elements/expandable-category-element.d.ts +1 -1
  39. package/button-dropdown/category-elements/expandable-category-element.d.ts.map +1 -1
  40. package/button-dropdown/category-elements/expandable-category-element.js +4 -2
  41. package/button-dropdown/category-elements/expandable-category-element.js.map +1 -1
  42. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts +1 -1
  43. package/button-dropdown/category-elements/mobile-expandable-category-element.d.ts.map +1 -1
  44. package/button-dropdown/category-elements/mobile-expandable-category-element.js +4 -2
  45. package/button-dropdown/category-elements/mobile-expandable-category-element.js.map +1 -1
  46. package/button-dropdown/category-elements/styles.css.js +13 -12
  47. package/button-dropdown/category-elements/styles.scoped.css +26 -22
  48. package/button-dropdown/category-elements/styles.selectors.js +13 -12
  49. package/button-dropdown/interfaces.d.ts +3 -1
  50. package/button-dropdown/interfaces.d.ts.map +1 -1
  51. package/button-dropdown/interfaces.js.map +1 -1
  52. package/button-dropdown/internal.d.ts.map +1 -1
  53. package/button-dropdown/internal.js +6 -11
  54. package/button-dropdown/internal.js.map +1 -1
  55. package/button-dropdown/item-element/index.d.ts +1 -1
  56. package/button-dropdown/item-element/index.d.ts.map +1 -1
  57. package/button-dropdown/item-element/index.js +2 -1
  58. package/button-dropdown/item-element/index.js.map +1 -1
  59. package/button-dropdown/item-element/styles.css.js +14 -13
  60. package/button-dropdown/item-element/styles.scoped.css +21 -17
  61. package/button-dropdown/item-element/styles.selectors.js +14 -13
  62. package/button-dropdown/items-list.d.ts +1 -1
  63. package/button-dropdown/items-list.d.ts.map +1 -1
  64. package/button-dropdown/items-list.js +4 -4
  65. package/button-dropdown/items-list.js.map +1 -1
  66. package/button-dropdown/utils/use-button-dropdown.d.ts +2 -2
  67. package/button-dropdown/utils/use-button-dropdown.d.ts.map +1 -1
  68. package/button-dropdown/utils/use-button-dropdown.js +7 -5
  69. package/button-dropdown/utils/use-button-dropdown.js.map +1 -1
  70. package/button-dropdown/utils/use-highlighted-menu.d.ts +1 -0
  71. package/button-dropdown/utils/use-highlighted-menu.d.ts.map +1 -1
  72. package/button-dropdown/utils/use-highlighted-menu.js +11 -3
  73. package/button-dropdown/utils/use-highlighted-menu.js.map +1 -1
  74. package/checkbox/styles.css.js +3 -3
  75. package/checkbox/styles.scoped.css +6 -6
  76. package/checkbox/styles.selectors.js +3 -3
  77. package/date-picker/calendar/index.d.ts.map +1 -1
  78. package/date-picker/calendar/index.js +2 -1
  79. package/date-picker/calendar/index.js.map +1 -1
  80. package/date-picker/calendar/utils/memoized-date.d.ts +2 -0
  81. package/date-picker/calendar/utils/memoized-date.d.ts.map +1 -0
  82. package/date-picker/calendar/utils/memoized-date.js +13 -0
  83. package/date-picker/calendar/utils/memoized-date.js.map +1 -0
  84. package/date-picker/embedded.js +1 -1
  85. package/date-picker/embedded.js.map +1 -1
  86. package/date-picker/index.js +1 -1
  87. package/date-picker/index.js.map +1 -1
  88. package/date-picker/use-date-picker.d.ts.map +1 -1
  89. package/date-picker/use-date-picker.js +1 -1
  90. package/date-picker/use-date-picker.js.map +1 -1
  91. package/date-range-picker/calendar/grids/day/index.js +1 -1
  92. package/date-range-picker/calendar/grids/day/index.js.map +1 -1
  93. package/date-range-picker/calendar/index.d.ts.map +1 -1
  94. package/date-range-picker/calendar/index.js +3 -3
  95. package/date-range-picker/calendar/index.js.map +1 -1
  96. package/date-range-picker/dropdown.d.ts +1 -0
  97. package/date-range-picker/dropdown.d.ts.map +1 -1
  98. package/date-range-picker/dropdown.js +18 -30
  99. package/date-range-picker/dropdown.js.map +1 -1
  100. package/date-range-picker/embedded.d.ts +7 -0
  101. package/date-range-picker/embedded.d.ts.map +1 -0
  102. package/date-range-picker/embedded.js +46 -0
  103. package/date-range-picker/embedded.js.map +1 -0
  104. package/date-range-picker/index.d.ts.map +1 -1
  105. package/date-range-picker/index.js +5 -18
  106. package/date-range-picker/index.js.map +1 -1
  107. package/date-range-picker/interfaces.d.ts +46 -44
  108. package/date-range-picker/interfaces.d.ts.map +1 -1
  109. package/date-range-picker/interfaces.js.map +1 -1
  110. package/date-range-picker/time-offset.d.ts +0 -7
  111. package/date-range-picker/time-offset.d.ts.map +1 -1
  112. package/date-range-picker/time-offset.js +4 -60
  113. package/date-range-picker/time-offset.js.map +1 -1
  114. package/date-range-picker/use-date-range-picker.d.ts +29 -0
  115. package/date-range-picker/use-date-range-picker.d.ts.map +1 -0
  116. package/date-range-picker/use-date-range-picker.js +58 -0
  117. package/date-range-picker/use-date-range-picker.js.map +1 -0
  118. package/icon/icons.js +1 -1
  119. package/icon/interfaces.d.ts +1 -1
  120. package/icon/interfaces.d.ts.map +1 -1
  121. package/icon/interfaces.js.map +1 -1
  122. package/input/styles.css.js +13 -13
  123. package/input/styles.scoped.css +35 -37
  124. package/input/styles.selectors.js +13 -13
  125. package/internal/components/abstract-switch/index.d.ts.map +1 -1
  126. package/internal/components/abstract-switch/index.js +5 -5
  127. package/internal/components/abstract-switch/index.js.map +1 -1
  128. package/internal/components/abstract-switch/styles.css.js +11 -11
  129. package/internal/components/abstract-switch/styles.scoped.css +20 -13
  130. package/internal/components/abstract-switch/styles.selectors.js +11 -11
  131. package/internal/components/date-input/index.d.ts.map +1 -1
  132. package/internal/components/date-input/index.js +3 -2
  133. package/internal/components/date-input/index.js.map +1 -1
  134. package/internal/components/masked-input/utils/mask-format.d.ts.map +1 -1
  135. package/internal/components/masked-input/utils/mask-format.js +2 -1
  136. package/internal/components/masked-input/utils/mask-format.js.map +1 -1
  137. package/internal/components/masked-input/utils/strings.d.ts +0 -1
  138. package/internal/components/masked-input/utils/strings.d.ts.map +1 -1
  139. package/internal/components/masked-input/utils/strings.js +0 -6
  140. package/internal/components/masked-input/utils/strings.js.map +1 -1
  141. package/internal/components/options-list/utils/use-highlight-option.d.ts +7 -2
  142. package/internal/components/options-list/utils/use-highlight-option.d.ts.map +1 -1
  143. package/internal/components/options-list/utils/use-highlight-option.js +10 -3
  144. package/internal/components/options-list/utils/use-highlight-option.js.map +1 -1
  145. package/internal/components/selectable-item/index.d.ts +1 -1
  146. package/internal/components/selectable-item/index.d.ts.map +1 -1
  147. package/internal/components/selectable-item/index.js +2 -2
  148. package/internal/components/selectable-item/index.js.map +1 -1
  149. package/internal/components/selectable-item/styles.css.js +16 -16
  150. package/internal/components/selectable-item/styles.scoped.css +29 -30
  151. package/internal/components/selectable-item/styles.selectors.js +16 -16
  152. package/internal/environment.js +1 -1
  153. package/internal/utils/date-time/display-format.d.ts +9 -0
  154. package/internal/utils/date-time/display-format.d.ts.map +1 -0
  155. package/internal/utils/date-time/display-format.js +15 -0
  156. package/internal/utils/date-time/display-format.js.map +1 -0
  157. package/internal/utils/date-time/format-date.d.ts +7 -0
  158. package/internal/utils/date-time/format-date.d.ts.map +1 -0
  159. package/internal/utils/date-time/format-date.js +15 -0
  160. package/internal/utils/date-time/format-date.js.map +1 -0
  161. package/internal/utils/date-time/format-time.d.ts +5 -0
  162. package/internal/utils/date-time/format-time.d.ts.map +1 -0
  163. package/internal/utils/date-time/format-time.js +13 -0
  164. package/internal/utils/date-time/format-time.js.map +1 -0
  165. package/internal/utils/date-time/format-timezone-offset.d.ts +2 -0
  166. package/internal/utils/date-time/format-timezone-offset.d.ts.map +1 -0
  167. package/internal/utils/date-time/format-timezone-offset.js +11 -0
  168. package/internal/utils/date-time/format-timezone-offset.js.map +1 -0
  169. package/internal/utils/date-time/get-browser-timezone-offset.d.ts +7 -0
  170. package/internal/utils/date-time/get-browser-timezone-offset.d.ts.map +1 -0
  171. package/internal/utils/date-time/get-browser-timezone-offset.js +11 -0
  172. package/internal/utils/date-time/get-browser-timezone-offset.js.map +1 -0
  173. package/internal/utils/date-time/index.d.ts +11 -0
  174. package/internal/utils/date-time/index.d.ts.map +1 -0
  175. package/internal/utils/date-time/index.js +13 -0
  176. package/internal/utils/date-time/index.js.map +1 -0
  177. package/internal/utils/date-time/is-iso-date-only.d.ts +5 -0
  178. package/internal/utils/date-time/is-iso-date-only.d.ts.map +1 -0
  179. package/internal/utils/date-time/is-iso-date-only.js +10 -0
  180. package/internal/utils/date-time/is-iso-date-only.js.map +1 -0
  181. package/internal/utils/date-time/join-date-time.d.ts +2 -0
  182. package/internal/utils/date-time/join-date-time.d.ts.map +1 -0
  183. package/internal/utils/date-time/join-date-time.js +6 -0
  184. package/internal/utils/date-time/join-date-time.js.map +1 -0
  185. package/internal/utils/date-time/parse-date.d.ts +8 -0
  186. package/internal/utils/date-time/parse-date.d.ts.map +1 -0
  187. package/internal/utils/date-time/parse-date.js +16 -0
  188. package/internal/utils/date-time/parse-date.js.map +1 -0
  189. package/internal/utils/date-time/parse-timezone-offset.d.ts +5 -0
  190. package/internal/utils/date-time/parse-timezone-offset.d.ts.map +1 -0
  191. package/internal/utils/date-time/parse-timezone-offset.js +20 -0
  192. package/internal/utils/date-time/parse-timezone-offset.js.map +1 -0
  193. package/internal/utils/date-time/shift-timezone-offset.d.ts +12 -0
  194. package/internal/utils/date-time/shift-timezone-offset.d.ts.map +1 -0
  195. package/internal/utils/date-time/shift-timezone-offset.js +27 -0
  196. package/internal/utils/date-time/shift-timezone-offset.js.map +1 -0
  197. package/internal/utils/strings/index.d.ts +3 -0
  198. package/internal/utils/strings/index.d.ts.map +1 -0
  199. package/internal/utils/strings/index.js +5 -0
  200. package/internal/utils/strings/index.js.map +1 -0
  201. package/internal/utils/strings/join-strings.d.ts +5 -0
  202. package/internal/utils/strings/join-strings.d.ts.map +1 -0
  203. package/internal/utils/{strings.js → strings/join-strings.js} +7 -6
  204. package/internal/utils/strings/join-strings.js.map +1 -0
  205. package/internal/utils/strings/pad-left-zeros.d.ts +5 -0
  206. package/internal/utils/strings/pad-left-zeros.d.ts.map +1 -0
  207. package/internal/utils/strings/pad-left-zeros.js +12 -0
  208. package/internal/utils/strings/pad-left-zeros.js.map +1 -0
  209. package/multiselect/internal.d.ts.map +1 -1
  210. package/multiselect/internal.js +2 -2
  211. package/multiselect/internal.js.map +1 -1
  212. package/package.json +1 -1
  213. package/popover/styles.css.js +48 -48
  214. package/popover/styles.scoped.css +65 -60
  215. package/popover/styles.selectors.js +48 -48
  216. package/radio-group/styles.css.js +9 -9
  217. package/radio-group/styles.scoped.css +16 -16
  218. package/radio-group/styles.selectors.js +9 -9
  219. package/select/internal.d.ts.map +1 -1
  220. package/select/internal.js +2 -2
  221. package/select/internal.js.map +1 -1
  222. package/select/parts/item.d.ts +1 -1
  223. package/select/parts/item.d.ts.map +1 -1
  224. package/select/parts/item.js +6 -3
  225. package/select/parts/item.js.map +1 -1
  226. package/select/parts/multiselect-item.d.ts +1 -1
  227. package/select/parts/multiselect-item.d.ts.map +1 -1
  228. package/select/parts/multiselect-item.js +2 -2
  229. package/select/parts/multiselect-item.js.map +1 -1
  230. package/select/parts/plain-list.d.ts +1 -1
  231. package/select/parts/plain-list.d.ts.map +1 -1
  232. package/select/parts/plain-list.js +4 -4
  233. package/select/parts/plain-list.js.map +1 -1
  234. package/select/parts/styles.css.js +8 -7
  235. package/select/parts/styles.scoped.css +12 -7
  236. package/select/parts/styles.selectors.js +8 -7
  237. package/select/parts/virtual-list.js +4 -4
  238. package/select/parts/virtual-list.js.map +1 -1
  239. package/select/utils/get-item-props.d.ts +1 -2
  240. package/select/utils/get-item-props.d.ts.map +1 -1
  241. package/select/utils/get-item-props.js +3 -3
  242. package/select/utils/get-item-props.js.map +1 -1
  243. package/select/utils/render-options.d.ts +2 -2
  244. package/select/utils/render-options.d.ts.map +1 -1
  245. package/select/utils/render-options.js +2 -3
  246. package/select/utils/render-options.js.map +1 -1
  247. package/select/utils/use-select.d.ts +1 -0
  248. package/select/utils/use-select.d.ts.map +1 -1
  249. package/select/utils/use-select.js +2 -1
  250. package/select/utils/use-select.js.map +1 -1
  251. package/split-panel/index.d.ts.map +1 -1
  252. package/split-panel/index.js +2 -2
  253. package/split-panel/index.js.map +1 -1
  254. package/table/styles.css.js +32 -32
  255. package/table/styles.scoped.css +40 -43
  256. package/table/styles.selectors.js +32 -32
  257. package/tabs/styles.css.js +21 -21
  258. package/tabs/styles.scoped.css +40 -43
  259. package/tabs/styles.selectors.js +21 -21
  260. package/textarea/styles.css.js +4 -4
  261. package/textarea/styles.scoped.css +13 -14
  262. package/textarea/styles.selectors.js +4 -4
  263. package/toggle/internal.d.ts.map +1 -1
  264. package/toggle/internal.js +3 -1
  265. package/toggle/internal.js.map +1 -1
  266. package/toggle/styles.css.js +8 -8
  267. package/toggle/styles.scoped.css +15 -14
  268. package/toggle/styles.selectors.js +8 -8
  269. package/date-picker/calendar/utils/date.d.ts +0 -10
  270. package/date-picker/calendar/utils/date.d.ts.map +0 -1
  271. package/date-picker/calendar/utils/date.js +0 -50
  272. package/date-picker/calendar/utils/date.js.map +0 -1
  273. package/internal/components/date-input/utils/date.d.ts +0 -5
  274. package/internal/components/date-input/utils/date.d.ts.map +0 -1
  275. package/internal/components/date-input/utils/date.js +0 -11
  276. package/internal/components/date-input/utils/date.js.map +0 -1
  277. package/internal/utils/strings.d.ts +0 -2
  278. package/internal/utils/strings.d.ts.map +0 -1
  279. package/internal/utils/strings.js.map +0 -1
@@ -90,7 +90,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
90
90
  Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
91
91
  SPDX-License-Identifier: Apache-2.0
92
92
  */
93
- .awsui_root_4yi2u_1dkvh_93:not(#\9) {
93
+ .awsui_root_4yi2u_1vggq_93:not(#\9) {
94
94
  /* stylelint-disable-next-line plugin/no-unsupported-browser-features */
95
95
  border-collapse: separate;
96
96
  border-spacing: 0;
@@ -128,17 +128,17 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
128
128
  display: flex;
129
129
  }
130
130
 
131
- .awsui_input_4yi2u_1dkvh_105[data-awsui-focus-visible=true]:not(#\9):focus {
131
+ .awsui_input_4yi2u_1vggq_105[data-awsui-focus-visible=true]:not(#\9):focus {
132
132
  /* stylelint-disable-next-line selector-max-type, @cloudscape-design/no-implicit-descendant */
133
133
  }
134
- .awsui_input_4yi2u_1dkvh_105[data-awsui-focus-visible=true]:not(#\9):focus + div {
134
+ .awsui_input_4yi2u_1vggq_105[data-awsui-focus-visible=true]:not(#\9):focus + span {
135
135
  position: relative;
136
136
  }
137
- .awsui_input_4yi2u_1dkvh_105[data-awsui-focus-visible=true]:not(#\9):focus + div {
137
+ .awsui_input_4yi2u_1vggq_105[data-awsui-focus-visible=true]:not(#\9):focus + span {
138
138
  outline: 2px dotted transparent;
139
139
  outline-offset: calc(2px - 1px);
140
140
  }
141
- .awsui_input_4yi2u_1dkvh_105[data-awsui-focus-visible=true]:not(#\9):focus + div::before {
141
+ .awsui_input_4yi2u_1vggq_105[data-awsui-focus-visible=true]:not(#\9):focus + span::before {
142
142
  content: " ";
143
143
  display: block;
144
144
  position: absolute;
@@ -150,7 +150,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
150
150
  box-shadow: 0 0 0 2px var(--color-border-item-focused-ap3b6s, #0972d3);
151
151
  }
152
152
 
153
- .awsui_toggle-control_4yi2u_1dkvh_127:not(#\9) {
153
+ .awsui_toggle-control_4yi2u_1vggq_127:not(#\9) {
154
154
  margin-top: calc((var(--font-body-m-line-height-i7xxvv, 22px) - 16px) / 2);
155
155
  min-height: 16px;
156
156
  min-width: 24px;
@@ -159,17 +159,18 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
159
159
  background: var(--color-background-toggle-default-w4ftus, #414d5c);
160
160
  border-radius: 8px;
161
161
  }
162
- .awsui_toggle-control-checked_4yi2u_1dkvh_136:not(#\9) {
162
+ .awsui_toggle-control-checked_4yi2u_1vggq_136:not(#\9) {
163
163
  background: var(--color-background-control-checked-9admlu, #0972d3);
164
164
  }
165
- .awsui_toggle-control-disabled_4yi2u_1dkvh_139:not(#\9) {
165
+ .awsui_toggle-control-disabled_4yi2u_1vggq_139:not(#\9) {
166
166
  background: var(--color-background-control-disabled-zplipy, #d1d5db);
167
167
  }
168
- .awsui_toggle-control-disabled_4yi2u_1dkvh_139.awsui_toggle-control-checked_4yi2u_1dkvh_136:not(#\9) {
168
+ .awsui_toggle-control-disabled_4yi2u_1vggq_139.awsui_toggle-control-checked_4yi2u_1vggq_136:not(#\9) {
169
169
  background: var(--color-background-toggle-checked-disabled-07lf06, #b5d6f4);
170
170
  }
171
171
 
172
- .awsui_toggle-handle_4yi2u_1dkvh_146:not(#\9) {
172
+ .awsui_toggle-handle_4yi2u_1vggq_146:not(#\9) {
173
+ display: block;
173
174
  position: absolute;
174
175
  border-radius: 6px;
175
176
  background: var(--color-foreground-control-default-7ajdem, #ffffff);
@@ -180,20 +181,20 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
180
181
  left: 2px;
181
182
  transition: transform var(--motion-duration-fast-nk2ap0, 90ms) var(--motion-easing-ease-out-quart-z687ml, cubic-bezier(0.165, 0.84, 0.44, 1)), background-color var(--motion-duration-fast-nk2ap0, 90ms) var(--motion-easing-ease-out-quart-z687ml, cubic-bezier(0.165, 0.84, 0.44, 1));
182
183
  }
183
- .awsui_toggle-handle-checked_4yi2u_1dkvh_157:not(#\9) {
184
+ .awsui_toggle-handle-checked_4yi2u_1vggq_158:not(#\9) {
184
185
  transform: translateX(8px);
185
186
  }
186
- .awsui_toggle-handle-disabled_4yi2u_1dkvh_160:not(#\9) {
187
+ .awsui_toggle-handle-disabled_4yi2u_1vggq_161:not(#\9) {
187
188
  background: var(--color-foreground-control-disabled-v6a97u, #ffffff);
188
189
  box-shadow: none;
189
190
  }
190
191
  @media (prefers-reduced-motion: reduce) {
191
- .awsui_toggle-handle_4yi2u_1dkvh_146:not(#\9) {
192
+ .awsui_toggle-handle_4yi2u_1vggq_146:not(#\9) {
192
193
  animation: none;
193
194
  transition: none;
194
195
  }
195
196
  }
196
- .awsui-motion-disabled .awsui_toggle-handle_4yi2u_1dkvh_146:not(#\9), .awsui-mode-entering .awsui_toggle-handle_4yi2u_1dkvh_146:not(#\9) {
197
+ .awsui-motion-disabled .awsui_toggle-handle_4yi2u_1vggq_146:not(#\9), .awsui-mode-entering .awsui_toggle-handle_4yi2u_1vggq_146:not(#\9) {
197
198
  animation: none;
198
199
  transition: none;
199
200
  }
@@ -2,13 +2,13 @@
2
2
  // es-module interop with Babel and Typescript
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
4
  module.exports.default = {
5
- "root": "awsui_root_4yi2u_1dkvh_93",
6
- "input": "awsui_input_4yi2u_1dkvh_105",
7
- "toggle-control": "awsui_toggle-control_4yi2u_1dkvh_127",
8
- "toggle-control-checked": "awsui_toggle-control-checked_4yi2u_1dkvh_136",
9
- "toggle-control-disabled": "awsui_toggle-control-disabled_4yi2u_1dkvh_139",
10
- "toggle-handle": "awsui_toggle-handle_4yi2u_1dkvh_146",
11
- "toggle-handle-checked": "awsui_toggle-handle-checked_4yi2u_1dkvh_157",
12
- "toggle-handle-disabled": "awsui_toggle-handle-disabled_4yi2u_1dkvh_160"
5
+ "root": "awsui_root_4yi2u_1vggq_93",
6
+ "input": "awsui_input_4yi2u_1vggq_105",
7
+ "toggle-control": "awsui_toggle-control_4yi2u_1vggq_127",
8
+ "toggle-control-checked": "awsui_toggle-control-checked_4yi2u_1vggq_136",
9
+ "toggle-control-disabled": "awsui_toggle-control-disabled_4yi2u_1vggq_139",
10
+ "toggle-handle": "awsui_toggle-handle_4yi2u_1vggq_146",
11
+ "toggle-handle-checked": "awsui_toggle-handle-checked_4yi2u_1vggq_158",
12
+ "toggle-handle-disabled": "awsui_toggle-handle-disabled_4yi2u_1vggq_161"
13
13
  };
14
14
 
@@ -1,10 +0,0 @@
1
- export declare const isoToDisplay: (value: string) => string;
2
- export declare const displayToIso: (value: string) => string;
3
- export declare const daysInMonth: (date: Date) => number;
4
- export declare function parseDate(value: string): Date;
5
- export declare function parseDate(value: string, strict: boolean): Date | null;
6
- export declare const formatDate: (value: Date) => string;
7
- export declare const formatTime: (value: Date) => string;
8
- export declare function formatISOStringWithoutTimezone(dateString: string, timeString: string): string;
9
- export declare const memoizedDate: (key: string, date: string | null) => Date;
10
- //# sourceMappingURL=date.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../../../src/date-picker/calendar/utils/date.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,UAAW,MAAM,WAA6B,CAAC;AACxE,eAAO,MAAM,YAAY,UAAW,MAAM,WAA8B,CAAC;AAEzE,eAAO,MAAM,WAAW,SAAU,IAAI,WAAmE,CAAC;AAU1G,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;AAC/C,wBAAgB,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,GAAG,IAAI,GAAG,IAAI,CAAC;AAkBvE,eAAO,MAAM,UAAU,UAAW,IAAI,KAAG,MAKxC,CAAC;AAEF,eAAO,MAAM,UAAU,UAAW,IAAI,KAAG,MAKxC,CAAC;AAEF,wBAAgB,8BAA8B,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,UAEpF;AAID,eAAO,MAAM,YAAY,QAAS,MAAM,QAAQ,MAAM,GAAG,IAAI,SAM5D,CAAC"}
@@ -1,50 +0,0 @@
1
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- // SPDX-License-Identifier: Apache-2.0
3
- export var isoToDisplay = function (value) { return value.replace(/-/g, '/'); };
4
- export var displayToIso = function (value) { return value.replace(/\//g, '-'); };
5
- export var daysInMonth = function (date) { return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate(); };
6
- var padLeftZeros = function (value, length) {
7
- while (value.length < length) {
8
- value = "0".concat(value);
9
- }
10
- return value;
11
- };
12
- export function parseDate(value, strict) {
13
- if (strict === void 0) { strict = false; }
14
- var _a = value.split('-'), year = _a[0], month = _a[1], day = _a[2];
15
- var y = Number(year);
16
- var m = Number(month);
17
- var d = Number(day);
18
- if (strict) {
19
- if (isNaN(y) || isNaN(m) || isNaN(d)) {
20
- return null;
21
- }
22
- }
23
- return new Date(y, (m || 1) - 1, d || 1);
24
- }
25
- // we cannot use Date.toISOString because it produces GMT time where the date can be different than local
26
- export var formatDate = function (value) {
27
- var year = value.getFullYear();
28
- var month = padLeftZeros("".concat(value.getMonth() + 1), 2);
29
- var date = padLeftZeros("".concat(value.getDate()), 2);
30
- return "".concat(year, "-").concat(month, "-").concat(date);
31
- };
32
- export var formatTime = function (value) {
33
- var hours = padLeftZeros("".concat(value.getHours()), 2);
34
- var minutes = padLeftZeros("".concat(value.getMinutes()), 2);
35
- var seconds = padLeftZeros("".concat(value.getSeconds()), 2);
36
- return "".concat(hours, ":").concat(minutes, ":").concat(seconds);
37
- };
38
- export function formatISOStringWithoutTimezone(dateString, timeString) {
39
- return "".concat(dateString, "T").concat(timeString);
40
- }
41
- // reuse date instances, to allow shallow equality checking
42
- var memoCache = {};
43
- export var memoizedDate = function (key, date) {
44
- var parsed = date && date.length >= 4 && parseDate(date);
45
- if (!(memoCache[key] && parsed && memoCache[key].getTime() === parsed.getTime())) {
46
- memoCache[key] = parsed;
47
- }
48
- return memoCache[key];
49
- };
50
- //# sourceMappingURL=date.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"date.js","sourceRoot":"","sources":["../../../../../src/date-picker/calendar/utils/date.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,KAAa,IAAK,OAAA,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,EAAxB,CAAwB,CAAC;AACxE,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,KAAa,IAAK,OAAA,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAzB,CAAyB,CAAC;AAEzE,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,IAAU,IAAK,OAAA,IAAI,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oToDisplay = (value: string) => value.replace(/-/g, '/');\nexport const displayToIso = (value: string) => value.replace(/\\//g, '-');\n\nexport const daysInMonth = (date: Date) => new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();\n\nconst padLeftZeros = (value: string, length: number) => {\n while (value.length < length) {\n value = `0${value}`;\n }\n return value;\n};\n\n// we cannot use new Date(string) constructor, because it produces GMT time that may have different date than the local\nexport function parseDate(value: string): Date;\nexport function parseDate(value: string, strict: boolean): Date | null;\nexport function parseDate(value: string, strict = false): Date | null {\n const [year, month, day] = value.split('-');\n\n const y = Number(year);\n const m = Number(month);\n const d = Number(day);\n\n if (strict) {\n if (isNaN(y) || isNaN(m) || isNaN(d)) {\n return null;\n }\n }\n\n return new Date(y, (m || 1) - 1, d || 1);\n}\n\n// we cannot use Date.toISOString because it produces GMT time where the date can be different than local\nexport const formatDate = (value: Date): string => {\n const year = value.getFullYear();\n const month = padLeftZeros(`${value.getMonth() + 1}`, 2);\n const date = padLeftZeros(`${value.getDate()}`, 2);\n return `${year}-${month}-${date}`;\n};\n\nexport const formatTime = (value: Date): string => {\n const hours = padLeftZeros(`${value.getHours()}`, 2);\n const minutes = padLeftZeros(`${value.getMinutes()}`, 2);\n const seconds = padLeftZeros(`${value.getSeconds()}`, 2);\n return `${hours}:${minutes}:${seconds}`;\n};\n\nexport function formatISOStringWithoutTimezone(dateString: string, timeString: string) {\n return `${dateString}T${timeString}`;\n}\n\n// reuse date instances, to allow shallow equality checking\nconst memoCache: Record<string, Date> = {};\nexport const memoizedDate = (key: string, date: string | null) => {\n const parsed = date && date.length >= 4 && parseDate(date);\n if (!(memoCache[key] && parsed && memoCache[key].getTime() === parsed.getTime())) {\n memoCache[key] = parsed as Date;\n }\n return memoCache[key];\n};\n"]}
@@ -1,5 +0,0 @@
1
- export declare const isoToDisplay: (value: string) => string;
2
- export declare const displayToIso: (value: string) => string;
3
- export declare const daysInMonth: (date: Date) => number;
4
- export declare const parseDate: (value: string) => Date;
5
- //# sourceMappingURL=date.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"date.d.ts","sourceRoot":"","sources":["../../../../../../src/internal/components/date-input/utils/date.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,UAAW,MAAM,WAA6B,CAAC;AACxE,eAAO,MAAM,YAAY,UAAW,MAAM,WAA8B,CAAC;AACzE,eAAO,MAAM,WAAW,SAAU,IAAI,WAAmE,CAAC;AAG1G,eAAO,MAAM,SAAS,UAAW,MAAM,KAAG,IAGzC,CAAC"}
@@ -1,11 +0,0 @@
1
- // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
- // SPDX-License-Identifier: Apache-2.0
3
- export var isoToDisplay = function (value) { return value.replace(/-/g, '/'); };
4
- export var displayToIso = function (value) { return value.replace(/\//g, '-'); };
5
- export var daysInMonth = function (date) { return new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate(); };
6
- // we cannot use new Date(string) constructor, because it produces GMT time that may have different date than the local
7
- export var parseDate = function (value) {
8
- var _a = value.split('-'), year = _a[0], month = _a[1], day = _a[2];
9
- return new Date(Number(year), (Number(month) || 1) - 1, Number(day) || 1);
10
- };
11
- //# sourceMappingURL=date.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"date.js","sourceRoot":"","sources":["../../../../../../src/internal/components/date-input/utils/date.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,KAAa,IAAK,OAAA,KAAK,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,EAAxB,CAAwB,CAAC;AACxE,MAAM,CAAC,IAAM,YAAY,GAAG,UAAC,KAAa,IAAK,OAAA,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,EAAzB,CAAyB,CAAC;AACzE,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,IAAU,IAAK,OAAA,IAAI,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,OAAO,EAAE,EAA9D,CAA8D,CAAC;AAE1G,uHAAuH;AACvH,MAAM,CAAC,IAAM,SAAS,GAAG,UAAC,KAAa;IAC/B,IAAA,KAAqB,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,EAApC,IAAI,QAAA,EAAE,KAAK,QAAA,EAAE,GAAG,QAAoB,CAAC;IAC5C,OAAO,IAAI,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC;AAC5E,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nexport const isoToDisplay = (value: string) => value.replace(/-/g, '/');\nexport const displayToIso = (value: string) => value.replace(/\\//g, '-');\nexport const daysInMonth = (date: Date) => new Date(date.getFullYear(), date.getMonth() + 1, 0).getDate();\n\n// we cannot use new Date(string) constructor, because it produces GMT time that may have different date than the local\nexport const parseDate = (value: string): Date => {\n const [year, month, day] = value.split('-');\n return new Date(Number(year), (Number(month) || 1) - 1, Number(day) || 1);\n};\n"]}
@@ -1,2 +0,0 @@
1
- export declare const joinStrings: (...strings: Array<string | undefined>) => string | undefined;
2
- //# sourceMappingURL=strings.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"strings.d.ts","sourceRoot":"","sources":["../../../../src/internal/utils/strings.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,WAAW,eAAgB,MAAM,MAAM,GAAG,SAAS,CAAC,uBAGhE,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"strings.js","sourceRoot":"","sources":["../../../../src/internal/utils/strings.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,qGAAqG;AACrG,MAAM,CAAC,IAAM,WAAW,GAAG;IAAC,iBAAqC;SAArC,UAAqC,EAArC,qBAAqC,EAArC,IAAqC;QAArC,4BAAqC;;IAC/D,IAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,UAAA,GAAG,IAAI,OAAA,GAAG,EAAH,CAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IACpD,OAAO,MAAM,IAAI,SAAS,CAAC;AAC7B,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// Joins strings with a whitespace, discarding empty strings. Useful to combine multiple aria-labels.\nexport const joinStrings = (...strings: Array<string | undefined>) => {\n const result = strings.filter(val => val).join(' ');\n return result || undefined;\n};\n"]}