@redsift/design-system 11.9.4 → 12.0.0-muiv6

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 (112) hide show
  1. package/CONTRIBUTING.md +1 -5
  2. package/_internal/Alert2.js +9 -4
  3. package/_internal/Alert2.js.map +1 -1
  4. package/_internal/AppContent.js +9 -4
  5. package/_internal/AppContent.js.map +1 -1
  6. package/_internal/Badge2.js +9 -4
  7. package/_internal/Badge2.js.map +1 -1
  8. package/_internal/Breadcrumbs2.js +9 -4
  9. package/_internal/Breadcrumbs2.js.map +1 -1
  10. package/_internal/Button2.js +9 -4
  11. package/_internal/Button2.js.map +1 -1
  12. package/_internal/ButtonGroup.js +15 -6
  13. package/_internal/ButtonGroup.js.map +1 -1
  14. package/_internal/ButtonLink.js +1 -1
  15. package/_internal/Card2.js +9 -4
  16. package/_internal/Card2.js.map +1 -1
  17. package/_internal/CardActions.js +16 -12
  18. package/_internal/CardActions.js.map +1 -1
  19. package/_internal/CardBody.js +9 -4
  20. package/_internal/CardBody.js.map +1 -1
  21. package/_internal/CardHeader.js +13 -4
  22. package/_internal/CardHeader.js.map +1 -1
  23. package/_internal/Checkbox2.js +9 -4
  24. package/_internal/Checkbox2.js.map +1 -1
  25. package/_internal/CheckboxGroup.js +9 -4
  26. package/_internal/CheckboxGroup.js.map +1 -1
  27. package/_internal/DetailedCard.js +24 -12
  28. package/_internal/DetailedCard.js.map +1 -1
  29. package/_internal/Flexbox2.js +21 -16
  30. package/_internal/Flexbox2.js.map +1 -1
  31. package/_internal/Grid2.js +21 -16
  32. package/_internal/Grid2.js.map +1 -1
  33. package/_internal/GridItem.js +9 -4
  34. package/_internal/GridItem.js.map +1 -1
  35. package/_internal/Heading2.js +9 -4
  36. package/_internal/Heading2.js.map +1 -1
  37. package/_internal/Icon2.js +10 -5
  38. package/_internal/Icon2.js.map +1 -1
  39. package/_internal/IconButton.js +9 -4
  40. package/_internal/IconButton.js.map +1 -1
  41. package/_internal/IconButtonLink.js +1 -1
  42. package/_internal/Item2.js +16 -7
  43. package/_internal/Item2.js.map +1 -1
  44. package/_internal/Link2.js +9 -4
  45. package/_internal/Link2.js.map +1 -1
  46. package/_internal/LinkButton.js +2 -1
  47. package/_internal/LinkButton.js.map +1 -1
  48. package/_internal/Listbox2.js +14 -8
  49. package/_internal/Listbox2.js.map +1 -1
  50. package/_internal/Number2.js +10 -5
  51. package/_internal/Number2.js.map +1 -1
  52. package/_internal/NumberField.js +11 -6
  53. package/_internal/NumberField.js.map +1 -1
  54. package/_internal/Pill2.js +9 -4
  55. package/_internal/Pill2.js.map +1 -1
  56. package/_internal/ProgressBar.js +20 -11
  57. package/_internal/ProgressBar.js.map +1 -1
  58. package/_internal/Radio2.js +9 -4
  59. package/_internal/Radio2.js.map +1 -1
  60. package/_internal/RadioGroup.js +9 -4
  61. package/_internal/RadioGroup.js.map +1 -1
  62. package/_internal/Shield2.js +12 -7
  63. package/_internal/Shield2.js.map +1 -1
  64. package/_internal/SideNavigationMenu.js +1 -1
  65. package/_internal/Skeleton2.js +9 -4
  66. package/_internal/Skeleton2.js.map +1 -1
  67. package/_internal/SkeletonCircle.js +1 -1
  68. package/_internal/SkeletonText.js +1 -1
  69. package/_internal/Spinner2.js +9 -4
  70. package/_internal/Spinner2.js.map +1 -1
  71. package/_internal/Switch2.js +9 -4
  72. package/_internal/Switch2.js.map +1 -1
  73. package/_internal/SwitchGroup.js +9 -4
  74. package/_internal/SwitchGroup.js.map +1 -1
  75. package/_internal/Text2.js +13 -6
  76. package/_internal/Text2.js.map +1 -1
  77. package/_internal/TextArea.js +18 -12
  78. package/_internal/TextArea.js.map +1 -1
  79. package/_internal/TextField.js +12 -6
  80. package/_internal/TextField.js.map +1 -1
  81. package/_internal/_rollupPluginBabelHelpers.js +1 -1
  82. package/_internal/button.js +1 -1
  83. package/_internal/colors.js +1 -1
  84. package/_internal/icon-button.js +1 -1
  85. package/_internal/link.js +1 -1
  86. package/_internal/shared.js +1 -1
  87. package/_internal/styles.js +309 -217
  88. package/_internal/styles.js.map +1 -1
  89. package/_internal/styles2.js +202 -14
  90. package/_internal/styles2.js.map +1 -1
  91. package/_internal/styles3.js +30 -128
  92. package/_internal/styles3.js.map +1 -1
  93. package/_internal/styles4.js +129 -234
  94. package/_internal/styles4.js.map +1 -1
  95. package/_internal/styles5.js +227 -118
  96. package/_internal/styles5.js.map +1 -1
  97. package/_internal/styles6.js +128 -69
  98. package/_internal/styles6.js.map +1 -1
  99. package/_internal/styles7.js +84 -0
  100. package/_internal/styles7.js.map +1 -0
  101. package/_internal/text.js +1 -1
  102. package/_internal/types2.js.map +1 -1
  103. package/_internal/useFocusOnList.js +1 -1
  104. package/_internal/useFocusRing.js +1 -1
  105. package/_internal/useListboxItem.js.map +1 -1
  106. package/_internal/useLocalizedStringFormatter.js +1 -1
  107. package/_internal/useMessageFormatter.js +1 -1
  108. package/_internal/useNumberFormatter.js +1 -1
  109. package/index.d.ts +227 -136
  110. package/index.js +8 -164
  111. package/index.js.map +1 -1
  112. package/package.json +5 -6
package/index.js CHANGED
@@ -1,7 +1,7 @@
1
1
  export { StyledGradientBorder } from './_internal/gradient-border.js';
2
2
  export { F as FontFamily } from './_internal/fonts.js';
3
3
  export { B as ButtonsColorPalette, C as ColorPalette, g as NeutralColorPalette, N as NotificationsColorPalette, f as PresentationColorPalette, d as PrimaryButtonsColorPalette, c as PrimaryColorPalette, P as Product, e as ProductColorPalette, b as ProductLogo, a as ProductName, S as SecondaryColorPalette, T as Theme } from './_internal/colors.js';
4
- import { _ as _objectSpread2, a as _defineProperty } from './_internal/_rollupPluginBabelHelpers.js';
4
+ export { a as AlignContent, b as AlignItems, A as AlignSelf, F as FlexDirection, c as FlexWrap, d as JustifyContent, e as JustifyItems, J as JustifySelf, g as getContainerProps, i as getContainerStylingTransientProps, j as getContainerTransientProps, h as getFlexLayoutTransientProps, f as getStylingTransientProps, o as omitStylingProps } from './_internal/styles.js';
5
5
  export { f as filterComponents } from './_internal/filterComponents.js';
6
6
  export { i as isComponent } from './_internal/isComponent.js';
7
7
  export { p as partitionComponents } from './_internal/partitionComponents.js';
@@ -16,6 +16,7 @@ import { u as useLocale } from './_internal/context.js';
16
16
  export { I as I18nProvider, S as SSRProvider, b as useIsSSR, u as useLocale, a as useSSRSafeId } from './_internal/context.js';
17
17
  export { a as useLocalizedStringDictionary, u as useLocalizedStringFormatter } from './_internal/useLocalizedStringFormatter.js';
18
18
  import { useMemo, useRef, useCallback } from 'react';
19
+ import { _ as _defineProperty, a as _objectSpread2 } from './_internal/_rollupPluginBabelHelpers.js';
19
20
  export { u as useNumberFormatter } from './_internal/useNumberFormatter.js';
20
21
  export { u as useMessageFormatter } from './_internal/useMessageFormatter.js';
21
22
  export { b as Alert, a as AlertStyleVariant, A as AlertVariant } from './_internal/Alert2.js';
@@ -29,7 +30,7 @@ export { B as BreadcrumbItem } from './_internal/BreadcrumbItem.js';
29
30
  export { B as BaseBreadcrumbs, a as Breadcrumbs } from './_internal/Breadcrumbs2.js';
30
31
  export { a as ButtonGroup, B as ButtonGroupVariant } from './_internal/ButtonGroup.js';
31
32
  export { B as ButtonLink } from './_internal/ButtonLink.js';
32
- export { B as ButtonVariant, S as StyledButton } from './_internal/styles.js';
33
+ export { B as ButtonVariant, S as StyledButton } from './_internal/styles2.js';
33
34
  export { B as Button } from './_internal/Button2.js';
34
35
  export { C as Card } from './_internal/Card2.js';
35
36
  export { C as CardActions } from './_internal/CardActions.js';
@@ -50,13 +51,13 @@ export { B as BaseGrid, G as Grid } from './_internal/Grid2.js';
50
51
  export { G as GridItem } from './_internal/GridItem.js';
51
52
  export { a as HeadingComponent, H as HeadingVariant } from './_internal/types2.js';
52
53
  export { H as Heading } from './_internal/Heading2.js';
53
- export { I as IconButtonVariant } from './_internal/styles2.js';
54
+ export { I as IconButtonVariant } from './_internal/styles3.js';
54
55
  export { I as IconButton } from './_internal/IconButton.js';
55
56
  export { I as IconButtonLink } from './_internal/IconButtonLink.js';
56
57
  export { a as Icon, I as IconSize, s as sizeToDimension } from './_internal/Icon2.js';
57
58
  export { I as Item, R as RenderedListboxItem, S as StyledItem } from './_internal/Item2.js';
58
59
  export { L as LinkButton } from './_internal/LinkButton.js';
59
- export { S as StyledLink } from './_internal/styles3.js';
60
+ export { S as StyledLink } from './_internal/styles4.js';
60
61
  export { L as Link } from './_internal/Link2.js';
61
62
  export { c as LISTBOX_INITIAL_STATE, a as ListboxActionType, d as ListboxContext, L as ListboxSelectionMode, b as ListboxVariant, u as useListboxItem } from './_internal/useListboxItem.js';
62
63
  export { A as ActiveDescendantListbox, L as Listbox, a as ListboxReducer, R as RovingTabindexListbox } from './_internal/Listbox2.js';
@@ -66,7 +67,7 @@ export { a as Pill, P as PillSize } from './_internal/Pill2.js';
66
67
  export { P as ProgressBar } from './_internal/ProgressBar.js';
67
68
  export { a as RadioGroup, R as RadioGroupOrientation } from './_internal/RadioGroup.js';
68
69
  export { R as Radio } from './_internal/Radio2.js';
69
- export { f as baseBorder, j as baseContainer, g as baseFlexbox, h as baseGrid, c as baseInternalSpacing, b as baseLayout, e as basePositioning, d as baseSizing, a as baseSpacing, i as baseStyling, k as focusRing, s as srOnly } from './_internal/styles4.js';
70
+ export { f as baseBorder, j as baseContainer, g as baseFlexbox, h as baseGrid, c as baseInternalSpacing, b as baseLayout, e as basePositioning, d as baseSizing, a as baseSpacing, i as baseStyling, k as focusRing, s as srOnly } from './_internal/styles5.js';
70
71
  export { S as Shield, a as ShieldVariant } from './_internal/Shield2.js';
71
72
  export { S as SideNavigationMenuBarVariant, a as SideNavigationMenuItem } from './_internal/SideNavigationMenuItem.js';
72
73
  export { a as SideNavigationMenu, S as SideNavigationMenuReducerActionType } from './_internal/SideNavigationMenu.js';
@@ -77,168 +78,11 @@ export { S as SkeletonText } from './_internal/SkeletonText.js';
77
78
  export { S as Spinner, a as SpinnerSize } from './_internal/Spinner2.js';
78
79
  export { S as Switch } from './_internal/Switch2.js';
79
80
  export { a as SwitchGroup, S as SwitchGroupOrientation } from './_internal/SwitchGroup.js';
80
- export { a as TextComponent, T as TextVariant } from './_internal/styles5.js';
81
+ export { a as TextComponent, T as TextVariant } from './_internal/styles6.js';
81
82
  export { T as Text } from './_internal/Text2.js';
82
83
  export { S as StyledTextField, a as TextField, T as TextFieldVariant } from './_internal/TextField.js';
83
84
  export { T as ThemeContext, a as ThemeProvider, u as useTheme } from './_internal/useTheme.js';
84
85
 
85
- const AlignSelf = {
86
- auto: 'auto',
87
- normal: 'normal',
88
- start: 'start',
89
- end: 'end',
90
- center: 'center',
91
- 'flex-start': 'flex-start',
92
- 'flex-end': 'flex-end',
93
- 'self-start': 'self-start',
94
- 'self-end': 'self-end',
95
- baseline: 'baseline',
96
- stretch: 'stretch'
97
- };
98
- const JustifySelf = {
99
- auto: 'auto',
100
- normal: 'normal',
101
- start: 'start',
102
- end: 'end',
103
- center: 'center',
104
- 'flex-start': 'flex-start',
105
- 'flex-end': 'flex-end',
106
- 'self-start': 'self-start',
107
- 'self-end': 'self-end',
108
- left: 'left',
109
- right: 'right',
110
- stretch: 'stretch'
111
- };
112
- const AlignContent = {
113
- 'flex-start': 'flex-start',
114
- 'flex-end': 'flex-end',
115
- center: 'center',
116
- 'space-between': 'space-between',
117
- 'space-around': 'space-around',
118
- 'space-evenly': 'space-evenly',
119
- stretch: 'stretch',
120
- start: 'start',
121
- end: 'end',
122
- baseline: 'baseline',
123
- 'first baseline': 'first baseline',
124
- 'last baseline': 'last baseline'
125
- };
126
- const AlignItems = {
127
- stretch: 'stretch',
128
- 'flex-start': 'flex-start',
129
- 'flex-end': 'flex-end',
130
- center: 'center',
131
- baseline: 'baseline',
132
- 'first baseline': 'first baseline',
133
- 'last baseline': 'last baseline',
134
- start: 'start',
135
- end: 'end',
136
- 'self-start': 'self-start',
137
- 'self-end': 'self-end'
138
- };
139
- const FlexDirection = {
140
- row: 'row',
141
- 'row-reverse': 'row-reverse',
142
- column: 'column',
143
- 'column-reverse': 'column-reverse'
144
- };
145
- const FlexWrap = {
146
- nowrap: 'nowrap',
147
- wrap: 'wrap',
148
- 'wrap-reverse': 'wrap-reverse'
149
- };
150
- const JustifyContent = {
151
- 'flex-start': 'flex-start',
152
- 'flex-end': 'flex-end',
153
- center: 'center',
154
- 'space-between': 'space-between',
155
- 'space-around': 'space-around',
156
- 'space-evenly': 'space-evenly',
157
- start: 'start',
158
- end: 'end',
159
- left: 'left',
160
- right: 'right',
161
- baseline: 'baseline',
162
- 'first baseline': 'first baseline',
163
- 'last baseline': 'last baseline',
164
- stretch: 'stretch'
165
- };
166
- const JustifyItems = {
167
- start: 'start',
168
- end: 'end',
169
- center: 'center',
170
- stretch: 'stretch'
171
- };
172
- const getContainerProps = props => _objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2(_objectSpread2({}, props.alignContent && {
173
- alignContent: props.alignContent
174
- }), props.alignItems && {
175
- alignItems: props.alignItems
176
- }), props.bottom && {
177
- bottom: props.bottom
178
- }), props.flexDirection && {
179
- flexDirection: props.flexDirection
180
- }), props.flexWrap && {
181
- flexWrap: props.flexWrap
182
- }), props.gap && {
183
- gap: props.gap
184
- }), props.gridAutoColumns && {
185
- gridAutoColumns: props.gridAutoColumns
186
- }), props.gridAutoRows && {
187
- gridAutoRows: props.gridAutoRows
188
- }), props.gridTemplateAreas && {
189
- gridTemplateAreas: props.gridTemplateAreas
190
- }), props.gridTemplateColumns && {
191
- gridTemplateColumns: props.gridTemplateColumns
192
- }), props.gridTemplateRows && {
193
- gridTemplateRows: props.gridTemplateRows
194
- }), props.height && {
195
- height: props.height
196
- }), props.justifyContent && {
197
- justifyContent: props.justifyContent
198
- }), props.justifyItems && {
199
- justifyItems: props.justifyItems
200
- }), props.left && {
201
- left: props.left
202
- }), props.margin && {
203
- margin: props.margin
204
- }), props.marginBottom && {
205
- marginBottom: props.marginBottom
206
- }), props.marginLeft && {
207
- marginLeft: props.marginLeft
208
- }), props.marginRight && {
209
- marginRight: props.marginRight
210
- }), props.marginTop && {
211
- marginTop: props.marginTop
212
- }), props.maxHeight && {
213
- maxHeight: props.maxHeight
214
- }), props.maxWidth && {
215
- maxWidth: props.maxWidth
216
- }), props.minHeight && {
217
- minHeight: props.minHeight
218
- }), props.minWidth && {
219
- minWidth: props.minWidth
220
- }), props.padding && {
221
- padding: props.padding
222
- }), props.paddingBottom && {
223
- paddingBottom: props.paddingBottom
224
- }), props.paddingLeft && {
225
- paddingLeft: props.paddingLeft
226
- }), props.paddingRight && {
227
- paddingRight: props.paddingRight
228
- }), props.paddingTop && {
229
- paddingTop: props.paddingTop
230
- }), props.position && {
231
- position: props.position
232
- }), props.right && {
233
- right: props.right
234
- }), props.top && {
235
- top: props.top
236
- }), props.width && {
237
- width: props.width
238
- }), props.zIndex && {
239
- zIndex: props.zIndex
240
- });
241
-
242
86
  const getCssStyle = (element, prop) => {
243
87
  return window.getComputedStyle(element, null).getPropertyValue(prop);
244
88
  };
@@ -584,5 +428,5 @@ function useFilter(options) {
584
428
  }), [startsWith, endsWith, contains]);
585
429
  }
586
430
 
587
- export { AlignContent, AlignItems, AlignSelf, FlexDirection, FlexWrap, JustifyContent, JustifyItems, JustifySelf, getCanvasFont, getContainerProps, getCssStyle, getMaxTextWidth, getTextWidth, useCollator, useDateFormatter, useFilter, useListFormatter };
431
+ export { getCanvasFont, getCssStyle, getMaxTextWidth, getTextWidth, useCollator, useDateFormatter, useFilter, useListFormatter };
588
432
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/types/styles.ts","../src/utils/getTextWidth.ts","../src/react-aria/react-aria/i18n/useListFormatter.tsx","../src/react-aria/internationalized/date/DateFormatter.ts","../src/react-aria/react-aria/utils/useDeepMemo.ts","../src/react-aria/react-aria/i18n/useDateFormatter.ts","../src/react-aria/react-aria/i18n/useCollator.ts","../src/react-aria/react-aria/i18n/useFilter.ts"],"sourcesContent":["import { ValueOf } from './helpers';\n\nexport const AlignSelf = {\n auto: 'auto',\n normal: 'normal',\n start: 'start',\n end: 'end',\n center: 'center',\n 'flex-start': 'flex-start',\n 'flex-end': 'flex-end',\n 'self-start': 'self-start',\n 'self-end': 'self-end',\n baseline: 'baseline',\n stretch: 'stretch',\n} as const;\nexport type AlignSelf = ValueOf<typeof AlignSelf>;\n\nexport const JustifySelf = {\n auto: 'auto',\n normal: 'normal',\n start: 'start',\n end: 'end',\n center: 'center',\n 'flex-start': 'flex-start',\n 'flex-end': 'flex-end',\n 'self-start': 'self-start',\n 'self-end': 'self-end',\n left: 'left',\n right: 'right',\n stretch: 'stretch',\n} as const;\nexport type JustifySelf = ValueOf<typeof JustifySelf>;\n\nexport const AlignContent = {\n 'flex-start': 'flex-start',\n 'flex-end': 'flex-end',\n center: 'center',\n 'space-between': 'space-between',\n 'space-around': 'space-around',\n 'space-evenly': 'space-evenly',\n stretch: 'stretch',\n start: 'start',\n end: 'end',\n baseline: 'baseline',\n 'first baseline': 'first baseline',\n 'last baseline': 'last baseline',\n} as const;\nexport type AlignContent = ValueOf<typeof AlignContent>;\n\nexport const AlignItems = {\n stretch: 'stretch',\n 'flex-start': 'flex-start',\n 'flex-end': 'flex-end',\n center: 'center',\n baseline: 'baseline',\n 'first baseline': 'first baseline',\n 'last baseline': 'last baseline',\n start: 'start',\n end: 'end',\n 'self-start': 'self-start',\n 'self-end': 'self-end',\n} as const;\nexport type AlignItems = ValueOf<typeof AlignItems>;\n\nexport const FlexDirection = {\n row: 'row',\n 'row-reverse': 'row-reverse',\n column: 'column',\n 'column-reverse': 'column-reverse',\n} as const;\nexport type FlexDirection = ValueOf<typeof FlexDirection>;\n\nexport const FlexWrap = {\n nowrap: 'nowrap',\n wrap: 'wrap',\n 'wrap-reverse': 'wrap-reverse',\n} as const;\nexport type FlexWrap = ValueOf<typeof FlexWrap>;\n\nexport const JustifyContent = {\n 'flex-start': 'flex-start',\n 'flex-end': 'flex-end',\n center: 'center',\n 'space-between': 'space-between',\n 'space-around': 'space-around',\n 'space-evenly': 'space-evenly',\n start: 'start',\n end: 'end',\n left: 'left',\n right: 'right',\n baseline: 'baseline',\n 'first baseline': 'first baseline',\n 'last baseline': 'last baseline',\n stretch: 'stretch',\n} as const;\nexport type JustifyContent = ValueOf<typeof JustifyContent>;\n\nexport const JustifyItems = {\n start: 'start',\n end: 'end',\n center: 'center',\n stretch: 'stretch',\n} as const;\nexport type JustifyItems = ValueOf<typeof JustifyItems>;\n\nexport interface LayoutProps {\n /** When used in a flex layout, specifies how the element will grow or shrink to fit the space available. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/flex\">MDN</a>. */\n flex?: string;\n /** When used in a flex layout, specifies how the element will grow to fit the space available. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/flex-grow\">MDN</a>. */\n flexGrow?: number;\n /** When used in a flex layout, specifies how the element will shrink to fit the space available. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/flex-shrink\">MDN</a>. */\n flexShrink?: number;\n /** When used in a flex layout, specifies the initial main size of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/flex_basis\">MDN</a>. */\n flexBasis?: string;\n /** Overrides the alignItems property of a flex or grid container. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/align-self\">MDN</a>. */\n alignSelf?: AlignSelf;\n /** Specifies how the element is justified inside a flex or grid container. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/justify-self\">MDN</a>. */\n justifySelf?: string;\n /** The layout order for the element within a flex or grid container. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/order\">MDN</a>. */\n order?: number;\n /** When used in a grid layout, specifies the named grid area that the element should be placed in within the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-area\">MDN</a>. */\n gridArea?: string;\n /** When used in a grid layout, specifies the column the element should be placed in within the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column\">MDN</a>. */\n gridColumn?: string;\n /** When used in a grid layout, specifies the row the element should be placed in within the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row\">MDN</a>. */\n gridRow?: string;\n /** When used in a grid layout, specifies the starting column to span within the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-start\">MDN</a>. */\n gridColumnStart?: string;\n /** When used in a grid layout, specifies the ending column to span within the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column-end\">MDN</a>. */\n gridColumnEnd?: string;\n /** When used in a grid layout, specifies the starting row to span within the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-start\">MDN</a>. */\n gridRowStart?: string;\n /** When used in a grid layout, specifies the ending row to span within the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-row-end\">MDN</a>. */\n gridRowEnd?: string;\n}\n\nexport interface SpacingProps {\n /** The margin for all four sides of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/margin\">MDN</a>. */\n margin?: string;\n /** The margin for the bottom side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/margin-bottom\">MDN</a>. */\n marginBottom?: string;\n /** The margin for the left side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/margin-left\">MDN</a>. */\n marginLeft?: string;\n /** The margin for the right side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/margin-right\">MDN</a>. */\n marginRight?: string;\n /** The margin for the top side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/margin-top\">MDN</a>. */\n marginTop?: string;\n}\n\nexport interface SizingProps {\n /** The height of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/height\">MDN</a>. */\n height?: string | number;\n /** The maximum height of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/max-height\">MDN</a>. */\n maxHeight?: string;\n /** The maximum width of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/max-width\">MDN</a>. */\n maxWidth?: string;\n /** The minimum height of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/min-height\">MDN</a>. */\n minHeight?: string;\n /** The minimum width of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/min-width\">MDN</a>. */\n minWidth?: string;\n /** The width of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/width\">MDN</a>. */\n width?: string | number;\n}\n\nexport interface PositioningProps {\n /** Specifies how the element is positioned. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/position\">MDN</a>. */\n position?: string;\n /** The top position for the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/top\">MDN</a>. */\n top?: string;\n /** The bottom position for the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/bottom\">MDN</a>. */\n bottom?: string;\n /** The left position for the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/left\">MDN</a>. Consider using start instead for RTL support. */\n left?: string;\n /** The right position for the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/right\">MDN</a>. Consider using start instead for RTL support. */\n right?: string;\n /** The stacking order for the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/z-index\">MDN</a>. */\n zIndex?: string;\n}\n\nexport interface BorderProps {\n /** The background shorthand CSS property sets all background style properties at once, such as color, image, origin and size, or repeat method. Component properties not set in the background shorthand property value declaration are set to their default values. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/background\">MDN</a>. */\n background?: string;\n /** The background-color CSS property sets the background color of an element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/background-color\">MDN</a>. */\n backgroundColor?: string;\n /** The border shorthand CSS property sets an element's border. It sets the values of border-width, border-style, and border-color. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border\">MDN</a>. */\n border?: string;\n /** The border-top CSS property sets all the properties of an element's top border. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border-top\">MDN</a>. */\n borderTop?: string;\n /** The border-top CSS property sets all the properties of an element's bottom border. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border-bottom\">MDN</a>. */\n borderBottom?: string;\n /** The border-top CSS property sets all the properties of an element's left border. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border-left\">MDN</a>. Consider using start instead for RTL support. */\n borderLeft?: string;\n /** The border-top CSS property sets all the properties of an element's right border. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border-right\">MDN</a>. Consider using start instead for RTL support. */\n borderRight?: string;\n /** The border-radius CSS property rounds the corners of an element's outer border edge. You can set a single radius to make circular corners, or two radii to make elliptical corners. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius\">MDN</a>. */\n borderRadius?: string;\n /** The box-shadow CSS property adds shadow effects around an element's frame. You can set multiple effects separated by commas. A box shadow is described by X and Y offsets relative to the element, blur and spread radius, and color. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/box-shadow\">MDN</a>. */\n boxShadow?: string;\n}\n\nexport interface FlexLayoutProps {\n /** The distribution of space around child items along the cross axis. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/align-content\">MDN</a>. */\n alignContent?: AlignContent;\n /** The alignment of children within their container. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/align-items\">MDN</a>. */\n alignItems?: AlignItems;\n /** The direction in which to layout children. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/flex-direction\">MDN</a>. */\n flexDirection?: FlexDirection;\n /** Whether to wrap items onto multiple lines. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/flex-wrap\">MDN</a>. */\n flexWrap?: FlexWrap;\n /** The space to display between both rows and columns. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/gap\">MDN</a>. */\n gap?: string;\n /** Whether the box is displayed inline or not. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/display\">MDN</a>. */\n inline?: boolean;\n /** The distribution of space around items along the main axis. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content\">MDN</a>. */\n justifyContent?: JustifyContent;\n}\n\nexport interface GridLayoutProps {\n /** The distribution of space around child items along the cross axis. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/align-content\">MDN</a>. */\n alignContent?: AlignContent;\n /** The alignment of children within their container. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/align-items\">MDN</a>. */\n alignItems?: AlignItems;\n /** The space to display between both rows and columns. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/gap\">MDN</a>. */\n gap?: string;\n /** Defines the size of implicitly generated columns. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-columns\">MDN</a>. */\n gridAutoColumns?: string;\n /** Defines the size of implicitly generated rows. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-auto-rows\">MDN</a>. */\n gridAutoRows?: string;\n /** Defines named grid areas. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-areas\">MDN</a>. */\n gridTemplateAreas?: string;\n /** Defines the sizes of each column in the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-columns\">MDN</a>. */\n gridTemplateColumns?: string;\n /** Defines the sizes of each row in the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/grid-template-rows\">MDN</a>. */\n gridTemplateRows?: string;\n /** Whether the box is displayed inline or not. */\n inline?: boolean;\n /** The distribution of space around items along the main axis. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/justify-content\">MDN</a>. */\n justifyContent?: JustifyContent;\n /** Defines the default justifySelf for all items in the grid. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/justify-items\">MDN</a>. */\n justifyItems?: JustifyItems;\n}\n\nexport interface StylingProps extends LayoutProps, SpacingProps, SizingProps, PositioningProps {}\n\nexport interface InternalSpacingProps {\n /** The padding for all four sides of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/padding\">MDN</a>. */\n padding?: string;\n /** The padding for the bottom side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/padding-bottom\">MDN</a>. */\n paddingBottom?: string;\n /** The padding for the left side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/padding-left\">MDN</a>. */\n paddingLeft?: string;\n /** The padding for the right side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/padding-right\">MDN</a>. */\n paddingRight?: string;\n /** The padding for the top side of the element. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/padding-top\">MDN</a>. */\n paddingTop?: string;\n}\nexport interface ContainerProps\n extends Omit<FlexLayoutProps, 'inline'>,\n Omit<GridLayoutProps, 'inline'>,\n SpacingProps,\n SizingProps,\n PositioningProps,\n BorderProps,\n InternalSpacingProps {\n /** Sets whether an element is treated as a block or inline element and the layout used for its children, such as flow layout, grid or flex. See <a href=\"https://developer.mozilla.org/en-US/docs/Web/CSS/display\">MDN</a>. */\n display?: 'block' | 'inline' | 'inline-block' | 'flex' | 'inline-flex' | 'grid' | 'inline-grid' | 'inherit';\n}\n\nexport const getContainerProps = (props: ContainerProps) => ({\n ...(props.alignContent && { alignContent: props.alignContent }),\n ...(props.alignItems && { alignItems: props.alignItems }),\n ...(props.bottom && { bottom: props.bottom }),\n ...(props.flexDirection && { flexDirection: props.flexDirection }),\n ...(props.flexWrap && { flexWrap: props.flexWrap }),\n ...(props.gap && { gap: props.gap }),\n ...(props.gridAutoColumns && { gridAutoColumns: props.gridAutoColumns }),\n ...(props.gridAutoRows && { gridAutoRows: props.gridAutoRows }),\n ...(props.gridTemplateAreas && { gridTemplateAreas: props.gridTemplateAreas }),\n ...(props.gridTemplateColumns && { gridTemplateColumns: props.gridTemplateColumns }),\n ...(props.gridTemplateRows && { gridTemplateRows: props.gridTemplateRows }),\n ...(props.height && { height: props.height }),\n ...(props.justifyContent && { justifyContent: props.justifyContent }),\n ...(props.justifyItems && { justifyItems: props.justifyItems }),\n ...(props.left && { left: props.left }),\n ...(props.margin && { margin: props.margin }),\n ...(props.marginBottom && { marginBottom: props.marginBottom }),\n ...(props.marginLeft && { marginLeft: props.marginLeft }),\n ...(props.marginRight && { marginRight: props.marginRight }),\n ...(props.marginTop && { marginTop: props.marginTop }),\n ...(props.maxHeight && { maxHeight: props.maxHeight }),\n ...(props.maxWidth && { maxWidth: props.maxWidth }),\n ...(props.minHeight && { minHeight: props.minHeight }),\n ...(props.minWidth && { minWidth: props.minWidth }),\n ...(props.padding && { padding: props.padding }),\n ...(props.paddingBottom && { paddingBottom: props.paddingBottom }),\n ...(props.paddingLeft && { paddingLeft: props.paddingLeft }),\n ...(props.paddingRight && { paddingRight: props.paddingRight }),\n ...(props.paddingTop && { paddingTop: props.paddingTop }),\n ...(props.position && { position: props.position }),\n ...(props.right && { right: props.right }),\n ...(props.top && { top: props.top }),\n ...(props.width && { width: props.width }),\n ...(props.zIndex && { zIndex: props.zIndex }),\n});\n","export const getCssStyle = (element: Element, prop: string) => {\n return window.getComputedStyle(element, null).getPropertyValue(prop);\n};\n\nexport const getCanvasFont = (el = document.body) => {\n const fontWeight = getCssStyle(el, 'font-weight') || 'normal';\n const fontSize = getCssStyle(el, 'font-size') || '16px';\n const fontFamily = getCssStyle(el, 'font-family') || 'Times New Roman';\n\n return `${fontWeight} ${fontSize} ${fontFamily}`;\n};\n\nexport const getTextWidth: (text: string, font: string, angle?: number) => number = (text, font, angle = 0) => {\n const canvas = document.createElement('canvas');\n const context = canvas.getContext('2d');\n context!.font = font;\n const metrics = context!.measureText(text);\n\n const radians = angle * (Math.PI / 180);\n const cosTheta = Math.abs(Math.cos(radians));\n const sinTheta = Math.abs(Math.sin(radians));\n\n const boundingBoxHeight = metrics.width * sinTheta + 15 * cosTheta;\n // console.log(text, metrics.width, boundingBoxHeight);\n\n // return metrics.width;\n return boundingBoxHeight;\n};\n\nexport const getMaxTextWidth: (texts: string[], font: string, angle?: number) => number = (texts, font, angle = 0) => {\n return Math.max(...texts.map((text) => getTextWidth(text, font, angle)));\n};\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useLocale } from './context';\nimport { useMemo } from 'react';\n\n/**\n * Provides localized list formatting for the current locale. Automatically updates when the locale changes,\n * and handles caching of the list formatter for performance.\n * @param options - Formatting options.\n */\nexport function useListFormatter(options: Intl.ListFormatOptions = {}): Intl.ListFormat {\n let { locale } = useLocale();\n return useMemo(() => new Intl.ListFormat(locale, options), [locale, options]);\n}\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nlet formatterCache = new Map<string, Intl.DateTimeFormat>();\n\ninterface ResolvedDateTimeFormatOptions extends Intl.ResolvedDateTimeFormatOptions {\n hourCycle?: Intl.DateTimeFormatOptions['hourCycle'];\n}\n\ninterface DateRangeFormatPart extends Intl.DateTimeFormatPart {\n source: 'startRange' | 'endRange' | 'shared';\n}\n\n/** A wrapper around Intl.DateTimeFormat that fixes various browser bugs, and polyfills new features. */\nexport class DateFormatter implements Intl.DateTimeFormat {\n private formatter: Intl.DateTimeFormat;\n private options: Intl.DateTimeFormatOptions;\n private resolvedHourCycle: Intl.DateTimeFormatOptions['hourCycle'];\n\n constructor(locale: string, options: Intl.DateTimeFormatOptions = {}) {\n this.formatter = getCachedDateFormatter(locale, options);\n this.options = options;\n }\n\n /** Formats a date as a string according to the locale and format options passed to the constructor. */\n format(value: Date): string {\n return this.formatter.format(value);\n }\n\n /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */\n formatToParts(value: Date): Intl.DateTimeFormatPart[] {\n return this.formatter.formatToParts(value);\n }\n\n /** Formats a date range as a string. */\n formatRange(start: Date, end: Date): string {\n // @ts-ignore\n if (typeof this.formatter.formatRange === 'function') {\n // @ts-ignore\n return this.formatter.formatRange(start, end);\n }\n\n if (end < start) {\n throw new RangeError('End date must be >= start date');\n }\n\n // Very basic fallback for old browsers.\n return `${this.formatter.format(start)} – ${this.formatter.format(end)}`;\n }\n\n /** Formats a date range as an array of parts. */\n formatRangeToParts(start: Date, end: Date): DateRangeFormatPart[] {\n // @ts-ignore\n if (typeof this.formatter.formatRangeToParts === 'function') {\n // @ts-ignore\n return this.formatter.formatRangeToParts(start, end);\n }\n\n if (end < start) {\n throw new RangeError('End date must be >= start date');\n }\n\n let startParts = this.formatter.formatToParts(start);\n let endParts = this.formatter.formatToParts(end);\n return [\n ...startParts.map((p) => ({ ...p, source: 'startRange' } as DateRangeFormatPart)),\n { type: 'literal', value: ' – ', source: 'shared' },\n ...endParts.map((p) => ({ ...p, source: 'endRange' } as DateRangeFormatPart)),\n ];\n }\n\n /** Returns the resolved formatting options based on the values passed to the constructor. */\n resolvedOptions(): ResolvedDateTimeFormatOptions {\n let resolvedOptions = this.formatter.resolvedOptions() as ResolvedDateTimeFormatOptions;\n if (hasBuggyResolvedHourCycle()) {\n if (!this.resolvedHourCycle) {\n this.resolvedHourCycle = getResolvedHourCycle(resolvedOptions.locale, this.options);\n }\n resolvedOptions.hourCycle = this.resolvedHourCycle;\n resolvedOptions.hour12 = this.resolvedHourCycle === 'h11' || this.resolvedHourCycle === 'h12';\n }\n\n // Safari uses a different name for the Ethiopic (Amete Alem) calendar.\n // https://bugs.webkit.org/show_bug.cgi?id=241564\n if (resolvedOptions.calendar === 'ethiopic-amete-alem') {\n resolvedOptions.calendar = 'ethioaa';\n }\n\n return resolvedOptions;\n }\n}\n\n// There are multiple bugs involving the hour12 and hourCycle options in various browser engines.\n// - Chrome [1] (and the ECMA 402 spec [2]) resolve hour12: false in English and other locales to h24 (24:00 - 23:59)\n// rather than h23 (00:00 - 23:59). Same can happen with hour12: true in French, which Chrome resolves to h11 (00:00 - 11:59)\n// rather than h12 (12:00 - 11:59).\n// - WebKit returns an incorrect hourCycle resolved option in the French locale due to incorrect parsing of 'h' literal\n// in the resolved pattern. It also formats incorrectly when specifying the hourCycle option for the same reason. [3]\n// [1] https://bugs.chromium.org/p/chromium/issues/detail?id=1045791\n// [2] https://github.com/tc39/ecma402/issues/402\n// [3] https://bugs.webkit.org/show_bug.cgi?id=229313\n\n// https://github.com/unicode-org/cldr/blob/018b55eff7ceb389c7e3fc44e2f657eae3b10b38/common/supplemental/supplementalData.xml#L4774-L4802\nconst hour12Preferences = {\n true: {\n // Only Japanese uses the h11 style for 12 hour time. All others use h12.\n ja: 'h11',\n },\n false: {\n // All locales use h23 for 24 hour time. None use h24.\n },\n};\n\nfunction getCachedDateFormatter(locale: string, options: Intl.DateTimeFormatOptions = {}): Intl.DateTimeFormat {\n // Work around buggy hour12 behavior in Chrome / ECMA 402 spec by using hourCycle instead.\n // Only apply the workaround if the issue is detected, because the hourCycle option is buggy in Safari.\n if (typeof options.hour12 === 'boolean' && hasBuggyHour12Behavior()) {\n options = { ...options };\n let pref = hour12Preferences[String(options.hour12)][locale.split('-')[0]];\n let defaultHourCycle = options.hour12 ? 'h12' : 'h23';\n options.hourCycle = pref ?? defaultHourCycle;\n delete options.hour12;\n }\n\n let cacheKey =\n locale +\n (options\n ? Object.entries(options)\n .sort((a, b) => (a[0] < b[0] ? -1 : 1))\n .join()\n : '');\n if (formatterCache.has(cacheKey)) {\n return formatterCache.get(cacheKey)!;\n }\n\n let numberFormatter = new Intl.DateTimeFormat(locale, options);\n formatterCache.set(cacheKey, numberFormatter);\n return numberFormatter;\n}\n\nlet _hasBuggyHour12Behavior: boolean | null = null;\nfunction hasBuggyHour12Behavior() {\n if (_hasBuggyHour12Behavior == null) {\n _hasBuggyHour12Behavior =\n new Intl.DateTimeFormat('en-US', {\n hour: 'numeric',\n hour12: false,\n }).format(new Date(2020, 2, 3, 0)) === '24';\n }\n\n return _hasBuggyHour12Behavior;\n}\n\nlet _hasBuggyResolvedHourCycle: boolean | null = null;\nfunction hasBuggyResolvedHourCycle() {\n if (_hasBuggyResolvedHourCycle == null) {\n _hasBuggyResolvedHourCycle =\n (\n new Intl.DateTimeFormat('fr', {\n hour: 'numeric',\n hour12: false,\n }).resolvedOptions() as ResolvedDateTimeFormatOptions\n ).hourCycle === 'h12';\n }\n\n return _hasBuggyResolvedHourCycle;\n}\n\nfunction getResolvedHourCycle(locale: string, options: Intl.DateTimeFormatOptions) {\n if (!options.timeStyle && !options.hour) {\n return undefined;\n }\n\n // Work around buggy results in resolved hourCycle and hour12 options in WebKit.\n // Format the minimum possible hour and maximum possible hour in a day and parse the results.\n locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, '');\n locale += (locale.includes('-u-') ? '' : '-u') + '-nu-latn';\n let formatter = getCachedDateFormatter(locale, {\n ...options,\n timeZone: undefined, // use local timezone\n });\n\n let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p) => p.type === 'hour')!.value, 10);\n let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p) => p.type === 'hour')!.value, 10);\n\n if (min === 0 && max === 23) {\n return 'h23';\n }\n\n if (min === 24 && max === 23) {\n return 'h24';\n }\n\n if (min === 0 && max === 11) {\n return 'h11';\n }\n\n if (min === 12 && max === 11) {\n return 'h12';\n }\n\n throw new Error('Unexpected hour cycle result');\n}\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useRef } from 'react';\n\nexport function useDeepMemo<T>(value: T, isEqual: (a: T, b: T) => boolean): T {\n // Using a ref during render is ok here because it's only an optimization – both values are equivalent.\n // If a render is thrown away, it'll still work the same no matter if the next render is the same or not.\n let lastValue = useRef<T | null>(null);\n if (value && lastValue.current && isEqual(value, lastValue.current)) {\n value = lastValue.current;\n }\n\n lastValue.current = value;\n return value;\n}\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { DateFormatter } from '../../internationalized/date';\nimport { useDeepMemo } from '../utils';\nimport { useLocale } from './context';\nimport { useMemo } from 'react';\n\nexport interface DateFormatterOptions extends Intl.DateTimeFormatOptions {\n calendar?: string;\n}\n\n/**\n * Provides localized date formatting for the current locale. Automatically updates when the locale changes,\n * and handles caching of the date formatter for performance.\n * @param options - Formatting options.\n */\nexport function useDateFormatter(options?: DateFormatterOptions): DateFormatter {\n // Reuse last options object if it is shallowly equal, which allows the useMemo result to also be reused.\n options = useDeepMemo(options ?? {}, isEqual);\n let { locale } = useLocale();\n return useMemo(() => new DateFormatter(locale, options), [locale, options]);\n}\n\nfunction isEqual(a: DateFormatterOptions, b: DateFormatterOptions) {\n if (a === b) {\n return true;\n }\n\n let aKeys = Object.keys(a);\n let bKeys = Object.keys(b);\n if (aKeys.length !== bKeys.length) {\n return false;\n }\n\n for (let key of aKeys) {\n if (b[key] !== a[key]) {\n return false;\n }\n }\n\n return true;\n}\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useLocale } from './context';\n\nlet cache = new Map<string, Intl.Collator>();\n\n/**\n * Provides localized string collation for the current locale. Automatically updates when the locale changes,\n * and handles caching of the collator for performance.\n * @param options - Collator options.\n */\nexport function useCollator(options?: Intl.CollatorOptions): Intl.Collator {\n let { locale } = useLocale();\n\n let cacheKey =\n locale +\n (options\n ? Object.entries(options)\n .sort((a, b) => (a[0] < b[0] ? -1 : 1))\n .join()\n : '');\n if (cache.has(cacheKey)) {\n return cache.get(cacheKey)!;\n }\n\n let formatter = new Intl.Collator(locale, options);\n cache.set(cacheKey, formatter);\n return formatter;\n}\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useCallback, useMemo } from 'react';\nimport { useCollator } from './useCollator';\n\nexport interface Filter {\n /** Returns whether a string starts with a given substring. */\n startsWith(string: string, substring: string): boolean;\n /** Returns whether a string ends with a given substring. */\n endsWith(string: string, substring: string): boolean;\n /** Returns whether a string contains a given substring. */\n contains(string: string, substring: string): boolean;\n}\n\n/**\n * Provides localized string search functionality that is useful for filtering or matching items\n * in a list. Options can be provided to adjust the sensitivity to case, diacritics, and other parameters.\n */\nexport function useFilter(options?: Intl.CollatorOptions): Filter {\n let collator = useCollator({\n usage: 'search',\n ...options,\n });\n\n // TODO(later): these methods don't currently support the ignorePunctuation option.\n let startsWith = useCallback(\n (string, substring) => {\n if (substring.length === 0) {\n return true;\n }\n\n // Normalize both strings so we can slice safely\n // TODO: take into account the ignorePunctuation option as well...\n string = string.normalize('NFC');\n substring = substring.normalize('NFC');\n return collator.compare(string.slice(0, substring.length), substring) === 0;\n },\n [collator]\n );\n\n let endsWith = useCallback(\n (string, substring) => {\n if (substring.length === 0) {\n return true;\n }\n\n string = string.normalize('NFC');\n substring = substring.normalize('NFC');\n return collator.compare(string.slice(-substring.length), substring) === 0;\n },\n [collator]\n );\n\n let contains = useCallback(\n (string, substring) => {\n if (substring.length === 0) {\n return true;\n }\n\n string = string.normalize('NFC');\n substring = substring.normalize('NFC');\n\n let scan = 0;\n let sliceLen = substring.length;\n for (; scan + sliceLen <= string.length; scan++) {\n let slice = string.slice(scan, scan + sliceLen);\n if (collator.compare(substring, slice) === 0) {\n return true;\n }\n }\n\n return false;\n },\n [collator]\n );\n\n return useMemo(\n () => ({\n startsWith,\n endsWith,\n contains,\n }),\n [startsWith, endsWith, contains]\n );\n}\n"],"names":["AlignSelf","auto","normal","start","end","center","baseline","stretch","JustifySelf","left","right","AlignContent","AlignItems","FlexDirection","row","column","FlexWrap","nowrap","wrap","JustifyContent","JustifyItems","getContainerProps","props","_objectSpread","alignContent","alignItems","bottom","flexDirection","flexWrap","gap","gridAutoColumns","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","justifyContent","justifyItems","margin","marginBottom","marginLeft","marginRight","marginTop","maxHeight","maxWidth","minHeight","minWidth","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","position","top","width","zIndex","getCssStyle","element","prop","window","getComputedStyle","getPropertyValue","getCanvasFont","el","arguments","length","undefined","document","body","fontWeight","fontSize","fontFamily","getTextWidth","text","font","angle","canvas","createElement","context","getContext","metrics","measureText","radians","Math","PI","cosTheta","abs","cos","sinTheta","sin","boundingBoxHeight","getMaxTextWidth","texts","max","map","useListFormatter","options","locale","useLocale","useMemo","Intl","ListFormat","formatterCache","Map","DateFormatter","constructor","_defineProperty","formatter","getCachedDateFormatter","format","value","formatToParts","formatRange","RangeError","formatRangeToParts","startParts","endParts","p","source","type","resolvedOptions","hasBuggyResolvedHourCycle","resolvedHourCycle","getResolvedHourCycle","hourCycle","hour12","calendar","hour12Preferences","true","ja","false","hasBuggyHour12Behavior","pref","String","split","defaultHourCycle","cacheKey","Object","entries","sort","a","b","join","has","get","numberFormatter","DateTimeFormat","set","_hasBuggyHour12Behavior","hour","Date","_hasBuggyResolvedHourCycle","timeStyle","replace","includes","timeZone","min","parseInt","find","Error","useDeepMemo","isEqual","lastValue","useRef","current","useDateFormatter","_options","aKeys","keys","bKeys","key","cache","useCollator","Collator","useFilter","collator","usage","startsWith","useCallback","string","substring","normalize","compare","slice","endsWith","contains","scan","sliceLen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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EAAE;AAC1B,MAAA,OAAO,IAAI,CAAA;AACb,KAAA;AAEAkH,IAAAA,MAAM,GAAGA,MAAM,CAACE,SAAS,CAAC,KAAK,CAAC,CAAA;AAChCD,IAAAA,SAAS,GAAGA,SAAS,CAACC,SAAS,CAAC,KAAK,CAAC,CAAA;IAEtC,IAAIK,IAAI,GAAG,CAAC,CAAA;AACZ,IAAA,IAAIC,QAAQ,GAAGP,SAAS,CAACnH,MAAM,CAAA;IAC/B,OAAOyH,IAAI,GAAGC,QAAQ,IAAIR,MAAM,CAAClH,MAAM,EAAEyH,IAAI,EAAE,EAAE;MAC/C,IAAIH,KAAK,GAAGJ,MAAM,CAACI,KAAK,CAACG,IAAI,EAAEA,IAAI,GAAGC,QAAQ,CAAC,CAAA;MAC/C,IAAIZ,QAAQ,CAACO,OAAO,CAACF,SAAS,EAAEG,KAAK,CAAC,KAAK,CAAC,EAAE;AAC5C,QAAA,OAAO,IAAI,CAAA;AACb,OAAA;AACF,KAAA;AAEA,IAAA,OAAO,KAAK,CAAA;AACd,GAAC,EACD,CAACR,QAAQ,CACX,CAAC,CAAA;EAED,OAAO5E,OAAO,CACZ,OAAO;IACL8E,UAAU;IACVO,QAAQ;AACRC,IAAAA,QAAAA;GACD,CAAC,EACF,CAACR,UAAU,EAAEO,QAAQ,EAAEC,QAAQ,CACjC,CAAC,CAAA;AACH;;;;"}
1
+ {"version":3,"file":"index.js","sources":["../src/utils/getTextWidth.ts","../src/react-aria/react-aria/i18n/useListFormatter.tsx","../src/react-aria/internationalized/date/DateFormatter.ts","../src/react-aria/react-aria/utils/useDeepMemo.ts","../src/react-aria/react-aria/i18n/useDateFormatter.ts","../src/react-aria/react-aria/i18n/useCollator.ts","../src/react-aria/react-aria/i18n/useFilter.ts"],"sourcesContent":["export const getCssStyle = (element: Element, prop: string) => {\n return window.getComputedStyle(element, null).getPropertyValue(prop);\n};\n\nexport const getCanvasFont = (el = document.body) => {\n const fontWeight = getCssStyle(el, 'font-weight') || 'normal';\n const fontSize = getCssStyle(el, 'font-size') || '16px';\n const fontFamily = getCssStyle(el, 'font-family') || 'Times New Roman';\n\n return `${fontWeight} ${fontSize} ${fontFamily}`;\n};\n\nexport const getTextWidth: (text: string, font: string, angle?: number) => number = (text, font, angle = 0) => {\n const canvas = document.createElement('canvas');\n const context = canvas.getContext('2d');\n context!.font = font;\n const metrics = context!.measureText(text);\n\n const radians = angle * (Math.PI / 180);\n const cosTheta = Math.abs(Math.cos(radians));\n const sinTheta = Math.abs(Math.sin(radians));\n\n const boundingBoxHeight = metrics.width * sinTheta + 15 * cosTheta;\n // console.log(text, metrics.width, boundingBoxHeight);\n\n // return metrics.width;\n return boundingBoxHeight;\n};\n\nexport const getMaxTextWidth: (texts: string[], font: string, angle?: number) => number = (texts, font, angle = 0) => {\n return Math.max(...texts.map((text) => getTextWidth(text, font, angle)));\n};\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useLocale } from './context';\nimport { useMemo } from 'react';\n\n/**\n * Provides localized list formatting for the current locale. Automatically updates when the locale changes,\n * and handles caching of the list formatter for performance.\n * @param options - Formatting options.\n */\nexport function useListFormatter(options: Intl.ListFormatOptions = {}): Intl.ListFormat {\n let { locale } = useLocale();\n return useMemo(() => new Intl.ListFormat(locale, options), [locale, options]);\n}\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nlet formatterCache = new Map<string, Intl.DateTimeFormat>();\n\ninterface ResolvedDateTimeFormatOptions extends Intl.ResolvedDateTimeFormatOptions {\n hourCycle?: Intl.DateTimeFormatOptions['hourCycle'];\n}\n\ninterface DateRangeFormatPart extends Intl.DateTimeFormatPart {\n source: 'startRange' | 'endRange' | 'shared';\n}\n\n/** A wrapper around Intl.DateTimeFormat that fixes various browser bugs, and polyfills new features. */\nexport class DateFormatter implements Intl.DateTimeFormat {\n private formatter: Intl.DateTimeFormat;\n private options: Intl.DateTimeFormatOptions;\n private resolvedHourCycle: Intl.DateTimeFormatOptions['hourCycle'];\n\n constructor(locale: string, options: Intl.DateTimeFormatOptions = {}) {\n this.formatter = getCachedDateFormatter(locale, options);\n this.options = options;\n }\n\n /** Formats a date as a string according to the locale and format options passed to the constructor. */\n format(value: Date): string {\n return this.formatter.format(value);\n }\n\n /** Formats a date to an array of parts such as separators, numbers, punctuation, and more. */\n formatToParts(value: Date): Intl.DateTimeFormatPart[] {\n return this.formatter.formatToParts(value);\n }\n\n /** Formats a date range as a string. */\n formatRange(start: Date, end: Date): string {\n // @ts-ignore\n if (typeof this.formatter.formatRange === 'function') {\n // @ts-ignore\n return this.formatter.formatRange(start, end);\n }\n\n if (end < start) {\n throw new RangeError('End date must be >= start date');\n }\n\n // Very basic fallback for old browsers.\n return `${this.formatter.format(start)} – ${this.formatter.format(end)}`;\n }\n\n /** Formats a date range as an array of parts. */\n formatRangeToParts(start: Date, end: Date): DateRangeFormatPart[] {\n // @ts-ignore\n if (typeof this.formatter.formatRangeToParts === 'function') {\n // @ts-ignore\n return this.formatter.formatRangeToParts(start, end);\n }\n\n if (end < start) {\n throw new RangeError('End date must be >= start date');\n }\n\n let startParts = this.formatter.formatToParts(start);\n let endParts = this.formatter.formatToParts(end);\n return [\n ...startParts.map((p) => ({ ...p, source: 'startRange' } as DateRangeFormatPart)),\n { type: 'literal', value: ' – ', source: 'shared' },\n ...endParts.map((p) => ({ ...p, source: 'endRange' } as DateRangeFormatPart)),\n ];\n }\n\n /** Returns the resolved formatting options based on the values passed to the constructor. */\n resolvedOptions(): ResolvedDateTimeFormatOptions {\n let resolvedOptions = this.formatter.resolvedOptions() as ResolvedDateTimeFormatOptions;\n if (hasBuggyResolvedHourCycle()) {\n if (!this.resolvedHourCycle) {\n this.resolvedHourCycle = getResolvedHourCycle(resolvedOptions.locale, this.options);\n }\n resolvedOptions.hourCycle = this.resolvedHourCycle;\n resolvedOptions.hour12 = this.resolvedHourCycle === 'h11' || this.resolvedHourCycle === 'h12';\n }\n\n // Safari uses a different name for the Ethiopic (Amete Alem) calendar.\n // https://bugs.webkit.org/show_bug.cgi?id=241564\n if (resolvedOptions.calendar === 'ethiopic-amete-alem') {\n resolvedOptions.calendar = 'ethioaa';\n }\n\n return resolvedOptions;\n }\n}\n\n// There are multiple bugs involving the hour12 and hourCycle options in various browser engines.\n// - Chrome [1] (and the ECMA 402 spec [2]) resolve hour12: false in English and other locales to h24 (24:00 - 23:59)\n// rather than h23 (00:00 - 23:59). Same can happen with hour12: true in French, which Chrome resolves to h11 (00:00 - 11:59)\n// rather than h12 (12:00 - 11:59).\n// - WebKit returns an incorrect hourCycle resolved option in the French locale due to incorrect parsing of 'h' literal\n// in the resolved pattern. It also formats incorrectly when specifying the hourCycle option for the same reason. [3]\n// [1] https://bugs.chromium.org/p/chromium/issues/detail?id=1045791\n// [2] https://github.com/tc39/ecma402/issues/402\n// [3] https://bugs.webkit.org/show_bug.cgi?id=229313\n\n// https://github.com/unicode-org/cldr/blob/018b55eff7ceb389c7e3fc44e2f657eae3b10b38/common/supplemental/supplementalData.xml#L4774-L4802\nconst hour12Preferences = {\n true: {\n // Only Japanese uses the h11 style for 12 hour time. All others use h12.\n ja: 'h11',\n },\n false: {\n // All locales use h23 for 24 hour time. None use h24.\n },\n};\n\nfunction getCachedDateFormatter(locale: string, options: Intl.DateTimeFormatOptions = {}): Intl.DateTimeFormat {\n // Work around buggy hour12 behavior in Chrome / ECMA 402 spec by using hourCycle instead.\n // Only apply the workaround if the issue is detected, because the hourCycle option is buggy in Safari.\n if (typeof options.hour12 === 'boolean' && hasBuggyHour12Behavior()) {\n options = { ...options };\n let pref = hour12Preferences[String(options.hour12)][locale.split('-')[0]];\n let defaultHourCycle = options.hour12 ? 'h12' : 'h23';\n options.hourCycle = pref ?? defaultHourCycle;\n delete options.hour12;\n }\n\n let cacheKey =\n locale +\n (options\n ? Object.entries(options)\n .sort((a, b) => (a[0] < b[0] ? -1 : 1))\n .join()\n : '');\n if (formatterCache.has(cacheKey)) {\n return formatterCache.get(cacheKey)!;\n }\n\n let numberFormatter = new Intl.DateTimeFormat(locale, options);\n formatterCache.set(cacheKey, numberFormatter);\n return numberFormatter;\n}\n\nlet _hasBuggyHour12Behavior: boolean | null = null;\nfunction hasBuggyHour12Behavior() {\n if (_hasBuggyHour12Behavior == null) {\n _hasBuggyHour12Behavior =\n new Intl.DateTimeFormat('en-US', {\n hour: 'numeric',\n hour12: false,\n }).format(new Date(2020, 2, 3, 0)) === '24';\n }\n\n return _hasBuggyHour12Behavior;\n}\n\nlet _hasBuggyResolvedHourCycle: boolean | null = null;\nfunction hasBuggyResolvedHourCycle() {\n if (_hasBuggyResolvedHourCycle == null) {\n _hasBuggyResolvedHourCycle =\n (\n new Intl.DateTimeFormat('fr', {\n hour: 'numeric',\n hour12: false,\n }).resolvedOptions() as ResolvedDateTimeFormatOptions\n ).hourCycle === 'h12';\n }\n\n return _hasBuggyResolvedHourCycle;\n}\n\nfunction getResolvedHourCycle(locale: string, options: Intl.DateTimeFormatOptions) {\n if (!options.timeStyle && !options.hour) {\n return undefined;\n }\n\n // Work around buggy results in resolved hourCycle and hour12 options in WebKit.\n // Format the minimum possible hour and maximum possible hour in a day and parse the results.\n locale = locale.replace(/(-u-)?-nu-[a-zA-Z0-9]+/, '');\n locale += (locale.includes('-u-') ? '' : '-u') + '-nu-latn';\n let formatter = getCachedDateFormatter(locale, {\n ...options,\n timeZone: undefined, // use local timezone\n });\n\n let min = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 0)).find((p) => p.type === 'hour')!.value, 10);\n let max = parseInt(formatter.formatToParts(new Date(2020, 2, 3, 23)).find((p) => p.type === 'hour')!.value, 10);\n\n if (min === 0 && max === 23) {\n return 'h23';\n }\n\n if (min === 24 && max === 23) {\n return 'h24';\n }\n\n if (min === 0 && max === 11) {\n return 'h11';\n }\n\n if (min === 12 && max === 11) {\n return 'h12';\n }\n\n throw new Error('Unexpected hour cycle result');\n}\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2023 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useRef } from 'react';\n\nexport function useDeepMemo<T>(value: T, isEqual: (a: T, b: T) => boolean): T {\n // Using a ref during render is ok here because it's only an optimization – both values are equivalent.\n // If a render is thrown away, it'll still work the same no matter if the next render is the same or not.\n let lastValue = useRef<T | null>(null);\n if (value && lastValue.current && isEqual(value, lastValue.current)) {\n value = lastValue.current;\n }\n\n lastValue.current = value;\n return value;\n}\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { DateFormatter } from '../../internationalized/date';\nimport { useDeepMemo } from '../utils';\nimport { useLocale } from './context';\nimport { useMemo } from 'react';\n\nexport interface DateFormatterOptions extends Intl.DateTimeFormatOptions {\n calendar?: string;\n}\n\n/**\n * Provides localized date formatting for the current locale. Automatically updates when the locale changes,\n * and handles caching of the date formatter for performance.\n * @param options - Formatting options.\n */\nexport function useDateFormatter(options?: DateFormatterOptions): DateFormatter {\n // Reuse last options object if it is shallowly equal, which allows the useMemo result to also be reused.\n options = useDeepMemo(options ?? {}, isEqual);\n let { locale } = useLocale();\n return useMemo(() => new DateFormatter(locale, options), [locale, options]);\n}\n\nfunction isEqual(a: DateFormatterOptions, b: DateFormatterOptions) {\n if (a === b) {\n return true;\n }\n\n let aKeys = Object.keys(a);\n let bKeys = Object.keys(b);\n if (aKeys.length !== bKeys.length) {\n return false;\n }\n\n for (let key of aKeys) {\n if (b[key] !== a[key]) {\n return false;\n }\n }\n\n return true;\n}\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useLocale } from './context';\n\nlet cache = new Map<string, Intl.Collator>();\n\n/**\n * Provides localized string collation for the current locale. Automatically updates when the locale changes,\n * and handles caching of the collator for performance.\n * @param options - Collator options.\n */\nexport function useCollator(options?: Intl.CollatorOptions): Intl.Collator {\n let { locale } = useLocale();\n\n let cacheKey =\n locale +\n (options\n ? Object.entries(options)\n .sort((a, b) => (a[0] < b[0] ? -1 : 1))\n .join()\n : '');\n if (cache.has(cacheKey)) {\n return cache.get(cacheKey)!;\n }\n\n let formatter = new Intl.Collator(locale, options);\n cache.set(cacheKey, formatter);\n return formatter;\n}\n","/* eslint-disable prefer-const */\n// @ts-nocheck\n/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport { useCallback, useMemo } from 'react';\nimport { useCollator } from './useCollator';\n\nexport interface Filter {\n /** Returns whether a string starts with a given substring. */\n startsWith(string: string, substring: string): boolean;\n /** Returns whether a string ends with a given substring. */\n endsWith(string: string, substring: string): boolean;\n /** Returns whether a string contains a given substring. */\n contains(string: string, substring: string): boolean;\n}\n\n/**\n * Provides localized string search functionality that is useful for filtering or matching items\n * in a list. Options can be provided to adjust the sensitivity to case, diacritics, and other parameters.\n */\nexport function useFilter(options?: Intl.CollatorOptions): Filter {\n let collator = useCollator({\n usage: 'search',\n ...options,\n });\n\n // TODO(later): these methods don't currently support the ignorePunctuation option.\n let startsWith = useCallback(\n (string, substring) => {\n if (substring.length === 0) {\n return true;\n }\n\n // Normalize both strings so we can slice safely\n // TODO: take into account the ignorePunctuation option as well...\n string = string.normalize('NFC');\n substring = substring.normalize('NFC');\n return collator.compare(string.slice(0, substring.length), substring) === 0;\n },\n [collator]\n );\n\n let endsWith = useCallback(\n (string, substring) => {\n if (substring.length === 0) {\n return true;\n }\n\n string = string.normalize('NFC');\n substring = substring.normalize('NFC');\n return collator.compare(string.slice(-substring.length), substring) === 0;\n },\n [collator]\n );\n\n let contains = useCallback(\n (string, substring) => {\n if (substring.length === 0) {\n return true;\n }\n\n string = string.normalize('NFC');\n substring = substring.normalize('NFC');\n\n let scan = 0;\n let sliceLen = substring.length;\n for (; scan + sliceLen <= string.length; scan++) {\n let slice = string.slice(scan, scan + sliceLen);\n if (collator.compare(substring, slice) === 0) {\n return true;\n }\n }\n\n return false;\n },\n [collator]\n );\n\n return useMemo(\n () => ({\n startsWith,\n endsWith,\n contains,\n }),\n [startsWith, endsWith, contains]\n );\n}\n"],"names":["getCssStyle","element","prop","window","getComputedStyle","getPropertyValue","getCanvasFont","el","arguments","length","undefined","document","body","fontWeight","fontSize","fontFamily","getTextWidth","text","font","angle","canvas","createElement","context","getContext","metrics","measureText","radians","Math","PI","cosTheta","abs","cos","sinTheta","sin","boundingBoxHeight","width","getMaxTextWidth","texts","max","map","useListFormatter","options","locale","useLocale","useMemo","Intl","ListFormat","formatterCache","Map","DateFormatter","constructor","_defineProperty","formatter","getCachedDateFormatter","format","value","formatToParts","formatRange","start","end","RangeError","formatRangeToParts","startParts","endParts","p","_objectSpread","source","type","resolvedOptions","hasBuggyResolvedHourCycle","resolvedHourCycle","getResolvedHourCycle","hourCycle","hour12","calendar","hour12Preferences","true","ja","false","hasBuggyHour12Behavior","pref","String","split","defaultHourCycle","cacheKey","Object","entries","sort","a","b","join","has","get","numberFormatter","DateTimeFormat","set","_hasBuggyHour12Behavior","hour","Date","_hasBuggyResolvedHourCycle","timeStyle","replace","includes","timeZone","min","parseInt","find","Error","useDeepMemo","isEqual","lastValue","useRef","current","useDateFormatter","_options","aKeys","keys","bKeys","key","cache","useCollator","Collator","useFilter","collator","usage","startsWith","useCallback","string","substring","normalize","compare","slice","endsWith","contains","scan","sliceLen"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAaA,WAAW,GAAGA,CAACC,OAAgB,EAAEC,IAAY,KAAK;A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AAIK,IAAI,GAAG,CAAC,CAAA;AACZ,IAAA,IAAIC,QAAQ,GAAGP,SAAS,CAACvH,MAAM,CAAA;IAC/B,OAAO6H,IAAI,GAAGC,QAAQ,IAAIR,MAAM,CAACtH,MAAM,EAAE6H,IAAI,EAAE,EAAE;MAC/C,IAAIH,KAAK,GAAGJ,MAAM,CAACI,KAAK,CAACG,IAAI,EAAEA,IAAI,GAAGC,QAAQ,CAAC,CAAA;MAC/C,IAAIZ,QAAQ,CAACO,OAAO,CAACF,SAAS,EAAEG,KAAK,CAAC,KAAK,CAAC,EAAE;AAC5C,QAAA,OAAO,IAAI,CAAA;AACb,OAAA;AACF,KAAA;AAEA,IAAA,OAAO,KAAK,CAAA;AACd,GAAC,EACD,CAACR,QAAQ,CACX,CAAC,CAAA;EAED,OAAO/E,OAAO,CACZ,OAAO;IACLiF,UAAU;IACVO,QAAQ;AACRC,IAAAA,QAAAA;GACD,CAAC,EACF,CAACR,UAAU,EAAEO,QAAQ,EAAEC,QAAQ,CACjC,CAAC,CAAA;AACH;;;;"}
package/package.json CHANGED
@@ -33,13 +33,13 @@
33
33
  "version": "version-changelog ../../CHANGELOG.md && changelog-verify ../../CHANGELOG.md && git add ../../CHANGELOG.md"
34
34
  },
35
35
  "types": "index.d.ts",
36
- "version": "11.9.4",
36
+ "version": "12.0.0-muiv6",
37
37
  "dependencies": {
38
38
  "@react-spring/web": "^9.7.1",
39
39
  "classnames": "^2.3.1",
40
40
  "clsx": "^2.0.0",
41
41
  "intl-messageformat": "^10.1.0",
42
- "styled-components": "^5.3.5"
42
+ "styled-components": "6.1.19"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@babel/core": "^7.8.3",
@@ -67,7 +67,6 @@
67
67
  "@types/jest": "^27.5.1",
68
68
  "@types/react": "18.0.12",
69
69
  "@types/react-dom": "18.0.5",
70
- "@types/styled-components": "^5.1.25",
71
70
  "@typescript-eslint/eslint-plugin": "^5.48.0",
72
71
  "@typescript-eslint/parser": "^5.26.0",
73
72
  "autoprefixer": "^9.7.4",
@@ -95,10 +94,10 @@
95
94
  "version-changelog": "^3.1.1"
96
95
  },
97
96
  "peerDependencies": {
98
- "@redsift/icons": "^11.9.4-0",
97
+ "@redsift/icons": "^12.0.0-0",
99
98
  "react": ">=17",
100
99
  "react-dom": ">=17",
101
- "styled-components": "^5.3.5"
100
+ "styled-components": "6.1.19"
102
101
  },
103
- "gitHead": "9a03d280397d4c14275b70d80b7189b7fce40e57"
102
+ "gitHead": "335e07afb5651d859877fe5c1861a274091d2153"
104
103
  }