@react-spectrum/s2 3.0.0-nightly-5ae234603-240925 → 3.0.0-nightly-d57bd8d90-240927
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.
- package/dist/Accordion.cjs.map +1 -1
- package/dist/Accordion.css.map +1 -1
- package/dist/Accordion.mjs.map +1 -1
- package/dist/ActionButton.cjs.map +1 -1
- package/dist/ActionButton.css.map +1 -1
- package/dist/ActionButton.mjs.map +1 -1
- package/dist/AlertDialog.cjs.map +1 -1
- package/dist/AlertDialog.css.map +1 -1
- package/dist/AlertDialog.mjs.map +1 -1
- package/dist/Avatar.cjs.map +1 -1
- package/dist/Avatar.css.map +1 -1
- package/dist/Avatar.mjs.map +1 -1
- package/dist/AvatarGroup.cjs.map +1 -1
- package/dist/AvatarGroup.css.map +1 -1
- package/dist/AvatarGroup.mjs.map +1 -1
- package/dist/Badge.cjs.map +1 -1
- package/dist/Badge.css.map +1 -1
- package/dist/Badge.mjs.map +1 -1
- package/dist/Breadcrumbs.cjs.map +1 -1
- package/dist/Breadcrumbs.css.map +1 -1
- package/dist/Breadcrumbs.mjs.map +1 -1
- package/dist/Button.cjs +39 -5
- package/dist/Button.cjs.map +1 -1
- package/dist/Button.css +64 -0
- package/dist/Button.css.map +1 -1
- package/dist/Button.mjs +39 -5
- package/dist/Button.mjs.map +1 -1
- package/dist/ButtonGroup.cjs.map +1 -1
- package/dist/ButtonGroup.css.map +1 -1
- package/dist/ButtonGroup.mjs.map +1 -1
- package/dist/Card.cjs +2 -2
- package/dist/Card.cjs.map +1 -1
- package/dist/Card.css.map +1 -1
- package/dist/Card.mjs +2 -2
- package/dist/Card.mjs.map +1 -1
- package/dist/CardView.cjs.map +1 -1
- package/dist/CardView.css.map +1 -1
- package/dist/CardView.mjs.map +1 -1
- package/dist/CenterBaseline.cjs.map +1 -1
- package/dist/CenterBaseline.css.map +1 -1
- package/dist/CenterBaseline.mjs.map +1 -1
- package/dist/Checkbox.cjs +4 -1
- package/dist/Checkbox.cjs.map +1 -1
- package/dist/Checkbox.css +4 -0
- package/dist/Checkbox.css.map +1 -1
- package/dist/Checkbox.mjs +4 -1
- package/dist/Checkbox.mjs.map +1 -1
- package/dist/CheckboxGroup.cjs.map +1 -1
- package/dist/CheckboxGroup.css.map +1 -1
- package/dist/CheckboxGroup.mjs.map +1 -1
- package/dist/ClearButton.cjs.map +1 -1
- package/dist/ClearButton.css.map +1 -1
- package/dist/ClearButton.mjs.map +1 -1
- package/dist/CloseButton.cjs.map +1 -1
- package/dist/CloseButton.css.map +1 -1
- package/dist/CloseButton.mjs.map +1 -1
- package/dist/ColorArea.cjs.map +1 -1
- package/dist/ColorArea.css.map +1 -1
- package/dist/ColorArea.mjs.map +1 -1
- package/dist/ColorField.cjs.map +1 -1
- package/dist/ColorField.css.map +1 -1
- package/dist/ColorField.mjs.map +1 -1
- package/dist/ColorHandle.cjs.map +1 -1
- package/dist/ColorHandle.css.map +1 -1
- package/dist/ColorHandle.mjs.map +1 -1
- package/dist/ColorSlider.cjs.map +1 -1
- package/dist/ColorSlider.css.map +1 -1
- package/dist/ColorSlider.mjs.map +1 -1
- package/dist/ColorSwatch.cjs.map +1 -1
- package/dist/ColorSwatch.css.map +1 -1
- package/dist/ColorSwatch.mjs.map +1 -1
- package/dist/ColorSwatchPicker.cjs.map +1 -1
- package/dist/ColorSwatchPicker.css.map +1 -1
- package/dist/ColorSwatchPicker.mjs.map +1 -1
- package/dist/ColorWheel.cjs.map +1 -1
- package/dist/ColorWheel.css.map +1 -1
- package/dist/ColorWheel.mjs.map +1 -1
- package/dist/ComboBox.cjs +3 -0
- package/dist/ComboBox.cjs.map +1 -1
- package/dist/ComboBox.css.map +1 -1
- package/dist/ComboBox.mjs +3 -0
- package/dist/ComboBox.mjs.map +1 -1
- package/dist/Content.cjs +0 -2
- package/dist/Content.cjs.map +1 -1
- package/dist/Content.mjs +1 -2
- package/dist/Content.mjs.map +1 -1
- package/dist/ContextualHelp.cjs.map +1 -1
- package/dist/ContextualHelp.css.map +1 -1
- package/dist/ContextualHelp.mjs.map +1 -1
- package/dist/Dialog.cjs +7 -5
- package/dist/Dialog.cjs.map +1 -1
- package/dist/Dialog.css.map +1 -1
- package/dist/Dialog.mjs +8 -6
- package/dist/Dialog.mjs.map +1 -1
- package/dist/Disclosure.cjs.map +1 -1
- package/dist/Disclosure.css.map +1 -1
- package/dist/Disclosure.mjs.map +1 -1
- package/dist/Divider.cjs.map +1 -1
- package/dist/Divider.css.map +1 -1
- package/dist/Divider.mjs.map +1 -1
- package/dist/DropZone.cjs.map +1 -1
- package/dist/DropZone.css.map +1 -1
- package/dist/DropZone.mjs.map +1 -1
- package/dist/Field.cjs.map +1 -1
- package/dist/Field.css.map +1 -1
- package/dist/Field.mjs.map +1 -1
- package/dist/Form.cjs.map +1 -1
- package/dist/Form.css.map +1 -1
- package/dist/Form.mjs.map +1 -1
- package/dist/IllustratedMessage.cjs.map +1 -1
- package/dist/IllustratedMessage.css.map +1 -1
- package/dist/IllustratedMessage.mjs.map +1 -1
- package/dist/Image.cjs.map +1 -1
- package/dist/Image.css.map +1 -1
- package/dist/Image.mjs.map +1 -1
- package/dist/InlineAlert.cjs.map +1 -1
- package/dist/InlineAlert.css.map +1 -1
- package/dist/InlineAlert.mjs.map +1 -1
- package/dist/Link.cjs.map +1 -1
- package/dist/Link.css.map +1 -1
- package/dist/Link.mjs.map +1 -1
- package/dist/Menu.cjs.map +1 -1
- package/dist/Menu.css.map +1 -1
- package/dist/Menu.mjs.map +1 -1
- package/dist/Meter.cjs.map +1 -1
- package/dist/Meter.css.map +1 -1
- package/dist/Meter.mjs.map +1 -1
- package/dist/Modal.cjs.map +1 -1
- package/dist/Modal.css.map +1 -1
- package/dist/Modal.mjs.map +1 -1
- package/dist/MoveHorizontalCircleTableWidget.cjs +33 -0
- package/dist/MoveHorizontalCircleTableWidget.cjs.map +1 -0
- package/dist/MoveHorizontalCircleTableWidget.mjs +28 -0
- package/dist/MoveHorizontalCircleTableWidget.mjs.map +1 -0
- package/dist/NumberField.cjs.map +1 -1
- package/dist/NumberField.css.map +1 -1
- package/dist/NumberField.mjs.map +1 -1
- package/dist/Picker.cjs +3 -0
- package/dist/Picker.cjs.map +1 -1
- package/dist/Picker.css.map +1 -1
- package/dist/Picker.mjs +3 -0
- package/dist/Picker.mjs.map +1 -1
- package/dist/Popover.cjs +1 -0
- package/dist/Popover.cjs.map +1 -1
- package/dist/Popover.css +4 -0
- package/dist/Popover.css.map +1 -1
- package/dist/Popover.mjs +1 -0
- package/dist/Popover.mjs.map +1 -1
- package/dist/ProgressBar.cjs.map +1 -1
- package/dist/ProgressBar.css.map +1 -1
- package/dist/ProgressBar.mjs.map +1 -1
- package/dist/ProgressCircle.cjs +0 -1
- package/dist/ProgressCircle.cjs.map +1 -1
- package/dist/ProgressCircle.css +0 -4
- package/dist/ProgressCircle.css.map +1 -1
- package/dist/ProgressCircle.mjs +0 -1
- package/dist/ProgressCircle.mjs.map +1 -1
- package/dist/Provider.cjs.map +1 -1
- package/dist/Provider.css.map +1 -1
- package/dist/Provider.mjs.map +1 -1
- package/dist/Radio.cjs.map +1 -1
- package/dist/Radio.css.map +1 -1
- package/dist/Radio.mjs.map +1 -1
- package/dist/RadioGroup.cjs.map +1 -1
- package/dist/RadioGroup.css.map +1 -1
- package/dist/RadioGroup.mjs.map +1 -1
- package/dist/SearchField.cjs.map +1 -1
- package/dist/SearchField.css.map +1 -1
- package/dist/SearchField.mjs.map +1 -1
- package/dist/SegmentedControl.cjs +11 -8
- package/dist/SegmentedControl.cjs.map +1 -1
- package/dist/SegmentedControl.css.map +1 -1
- package/dist/SegmentedControl.mjs +11 -8
- package/dist/SegmentedControl.mjs.map +1 -1
- package/dist/SkeletonCollection.cjs.map +1 -1
- package/dist/SkeletonCollection.mjs.map +1 -1
- package/dist/Slider.cjs.map +1 -1
- package/dist/Slider.css.map +1 -1
- package/dist/Slider.mjs.map +1 -1
- package/dist/StatusLight.cjs.map +1 -1
- package/dist/StatusLight.css.map +1 -1
- package/dist/StatusLight.mjs.map +1 -1
- package/dist/Switch.cjs.map +1 -1
- package/dist/Switch.css.map +1 -1
- package/dist/Switch.mjs.map +1 -1
- package/dist/Table.cjs +1064 -0
- package/dist/Table.cjs.map +1 -0
- package/dist/Table.css +801 -0
- package/dist/Table.css.map +1 -0
- package/dist/Table.mjs +1054 -0
- package/dist/Table.mjs.map +1 -0
- package/dist/Tabs.cjs.map +1 -1
- package/dist/Tabs.css.map +1 -1
- package/dist/Tabs.mjs.map +1 -1
- package/dist/TagGroup.cjs +5 -3
- package/dist/TagGroup.cjs.map +1 -1
- package/dist/TagGroup.css.map +1 -1
- package/dist/TagGroup.mjs +5 -3
- package/dist/TagGroup.mjs.map +1 -1
- package/dist/TextField.cjs.map +1 -1
- package/dist/TextField.css.map +1 -1
- package/dist/TextField.mjs.map +1 -1
- package/dist/ToggleButton.cjs +2 -1
- package/dist/ToggleButton.cjs.map +1 -1
- package/dist/ToggleButton.css.map +1 -1
- package/dist/ToggleButton.mjs +2 -1
- package/dist/ToggleButton.mjs.map +1 -1
- package/dist/Tooltip.cjs.map +1 -1
- package/dist/Tooltip.css.map +1 -1
- package/dist/Tooltip.mjs.map +1 -1
- package/dist/ar-AE.cjs +5 -0
- package/dist/ar-AE.cjs.map +1 -1
- package/dist/ar-AE.mjs +5 -0
- package/dist/ar-AE.mjs.map +1 -1
- package/dist/bg-BG.cjs +5 -0
- package/dist/bg-BG.cjs.map +1 -1
- package/dist/bg-BG.mjs +5 -0
- package/dist/bg-BG.mjs.map +1 -1
- package/dist/cs-CZ.cjs +5 -0
- package/dist/cs-CZ.cjs.map +1 -1
- package/dist/cs-CZ.mjs +5 -0
- package/dist/cs-CZ.mjs.map +1 -1
- package/dist/da-DK.cjs +5 -0
- package/dist/da-DK.cjs.map +1 -1
- package/dist/da-DK.mjs +5 -0
- package/dist/da-DK.mjs.map +1 -1
- package/dist/de-DE.cjs +5 -0
- package/dist/de-DE.cjs.map +1 -1
- package/dist/de-DE.mjs +5 -0
- package/dist/de-DE.mjs.map +1 -1
- package/dist/el-GR.cjs +5 -0
- package/dist/el-GR.cjs.map +1 -1
- package/dist/el-GR.mjs +5 -0
- package/dist/el-GR.mjs.map +1 -1
- package/dist/en-US.cjs +5 -0
- package/dist/en-US.cjs.map +1 -1
- package/dist/en-US.mjs +5 -0
- package/dist/en-US.mjs.map +1 -1
- package/dist/es-ES.cjs +5 -0
- package/dist/es-ES.cjs.map +1 -1
- package/dist/es-ES.mjs +5 -0
- package/dist/es-ES.mjs.map +1 -1
- package/dist/et-EE.cjs +5 -0
- package/dist/et-EE.cjs.map +1 -1
- package/dist/et-EE.mjs +5 -0
- package/dist/et-EE.mjs.map +1 -1
- package/dist/fi-FI.cjs +5 -0
- package/dist/fi-FI.cjs.map +1 -1
- package/dist/fi-FI.mjs +5 -0
- package/dist/fi-FI.mjs.map +1 -1
- package/dist/fr-FR.cjs +5 -0
- package/dist/fr-FR.cjs.map +1 -1
- package/dist/fr-FR.mjs +5 -0
- package/dist/fr-FR.mjs.map +1 -1
- package/dist/he-IL.cjs +5 -0
- package/dist/he-IL.cjs.map +1 -1
- package/dist/he-IL.mjs +5 -0
- package/dist/he-IL.mjs.map +1 -1
- package/dist/hr-HR.cjs +5 -0
- package/dist/hr-HR.cjs.map +1 -1
- package/dist/hr-HR.mjs +5 -0
- package/dist/hr-HR.mjs.map +1 -1
- package/dist/hu-HU.cjs +5 -0
- package/dist/hu-HU.cjs.map +1 -1
- package/dist/hu-HU.mjs +5 -0
- package/dist/hu-HU.mjs.map +1 -1
- package/dist/it-IT.cjs +5 -0
- package/dist/it-IT.cjs.map +1 -1
- package/dist/it-IT.mjs +5 -0
- package/dist/it-IT.mjs.map +1 -1
- package/dist/ja-JP.cjs +5 -0
- package/dist/ja-JP.cjs.map +1 -1
- package/dist/ja-JP.mjs +5 -0
- package/dist/ja-JP.mjs.map +1 -1
- package/dist/ko-KR.cjs +5 -0
- package/dist/ko-KR.cjs.map +1 -1
- package/dist/ko-KR.mjs +5 -0
- package/dist/ko-KR.mjs.map +1 -1
- package/dist/lt-LT.cjs +5 -0
- package/dist/lt-LT.cjs.map +1 -1
- package/dist/lt-LT.mjs +5 -0
- package/dist/lt-LT.mjs.map +1 -1
- package/dist/lv-LV.cjs +5 -0
- package/dist/lv-LV.cjs.map +1 -1
- package/dist/lv-LV.mjs +5 -0
- package/dist/lv-LV.mjs.map +1 -1
- package/dist/main.cjs +11 -0
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +5 -1
- package/dist/module.mjs.map +1 -1
- package/dist/nb-NO.cjs +5 -0
- package/dist/nb-NO.cjs.map +1 -1
- package/dist/nb-NO.mjs +5 -0
- package/dist/nb-NO.mjs.map +1 -1
- package/dist/nl-NL.cjs +5 -0
- package/dist/nl-NL.cjs.map +1 -1
- package/dist/nl-NL.mjs +5 -0
- package/dist/nl-NL.mjs.map +1 -1
- package/dist/pl-PL.cjs +5 -0
- package/dist/pl-PL.cjs.map +1 -1
- package/dist/pl-PL.mjs +5 -0
- package/dist/pl-PL.mjs.map +1 -1
- package/dist/pt-BR.cjs +5 -0
- package/dist/pt-BR.cjs.map +1 -1
- package/dist/pt-BR.mjs +5 -0
- package/dist/pt-BR.mjs.map +1 -1
- package/dist/pt-PT.cjs +5 -0
- package/dist/pt-PT.cjs.map +1 -1
- package/dist/pt-PT.mjs +5 -0
- package/dist/pt-PT.mjs.map +1 -1
- package/dist/ro-RO.cjs +5 -0
- package/dist/ro-RO.cjs.map +1 -1
- package/dist/ro-RO.mjs +5 -0
- package/dist/ro-RO.mjs.map +1 -1
- package/dist/ru-RU.cjs +5 -0
- package/dist/ru-RU.cjs.map +1 -1
- package/dist/ru-RU.mjs +5 -0
- package/dist/ru-RU.mjs.map +1 -1
- package/dist/sk-SK.cjs +5 -0
- package/dist/sk-SK.cjs.map +1 -1
- package/dist/sk-SK.mjs +5 -0
- package/dist/sk-SK.mjs.map +1 -1
- package/dist/sl-SI.cjs +5 -0
- package/dist/sl-SI.cjs.map +1 -1
- package/dist/sl-SI.mjs +5 -0
- package/dist/sl-SI.mjs.map +1 -1
- package/dist/sr-SP.cjs +5 -0
- package/dist/sr-SP.cjs.map +1 -1
- package/dist/sr-SP.mjs +5 -0
- package/dist/sr-SP.mjs.map +1 -1
- package/dist/sv-SE.cjs +5 -0
- package/dist/sv-SE.cjs.map +1 -1
- package/dist/sv-SE.mjs +5 -0
- package/dist/sv-SE.mjs.map +1 -1
- package/dist/tr-TR.cjs +5 -0
- package/dist/tr-TR.cjs.map +1 -1
- package/dist/tr-TR.mjs +5 -0
- package/dist/tr-TR.mjs.map +1 -1
- package/dist/types.d.ts +136 -30
- package/dist/types.d.ts.map +1 -1
- package/dist/uk-UA.cjs +5 -0
- package/dist/uk-UA.cjs.map +1 -1
- package/dist/uk-UA.mjs +5 -0
- package/dist/uk-UA.mjs.map +1 -1
- package/dist/utils.cjs +30 -0
- package/dist/utils.cjs.map +1 -0
- package/dist/utils.mjs +25 -0
- package/dist/utils.mjs.map +1 -0
- package/dist/zh-CN.cjs +5 -0
- package/dist/zh-CN.cjs.map +1 -1
- package/dist/zh-CN.mjs +5 -0
- package/dist/zh-CN.mjs.map +1 -1
- package/dist/zh-TW.cjs +5 -0
- package/dist/zh-TW.cjs.map +1 -1
- package/dist/zh-TW.mjs +5 -0
- package/dist/zh-TW.mjs.map +1 -1
- package/icons/Skeleton.cjs.map +1 -1
- package/icons/Skeleton.css.map +1 -1
- package/icons/Skeleton.mjs.map +1 -1
- package/package.json +18 -16
- package/src/Accordion.tsx +2 -2
- package/src/ActionButton.tsx +3 -3
- package/src/AlertDialog.tsx +1 -1
- package/src/Avatar.tsx +1 -1
- package/src/AvatarGroup.tsx +1 -1
- package/src/Badge.tsx +1 -1
- package/src/Breadcrumbs.tsx +2 -2
- package/src/Button.tsx +41 -19
- package/src/ButtonGroup.tsx +1 -1
- package/src/Card.tsx +7 -7
- package/src/CardView.tsx +2 -2
- package/src/CenterBaseline.tsx +1 -1
- package/src/Checkbox.tsx +3 -2
- package/src/CheckboxGroup.tsx +1 -1
- package/src/ClearButton.tsx +1 -1
- package/src/CloseButton.tsx +2 -2
- package/src/ColorArea.tsx +1 -1
- package/src/ColorField.tsx +1 -1
- package/src/ColorHandle.tsx +1 -1
- package/src/ColorSlider.tsx +1 -1
- package/src/ColorSwatch.tsx +3 -3
- package/src/ColorSwatchPicker.tsx +5 -5
- package/src/ColorWheel.tsx +1 -1
- package/src/ComboBox.tsx +7 -4
- package/src/Content.tsx +1 -3
- package/src/ContextualHelp.tsx +1 -1
- package/src/Dialog.tsx +4 -3
- package/src/Disclosure.tsx +4 -4
- package/src/Divider.tsx +1 -1
- package/src/DropZone.tsx +1 -1
- package/src/Field.tsx +2 -2
- package/src/Form.tsx +1 -1
- package/src/IllustratedMessage.tsx +1 -1
- package/src/Image.tsx +1 -1
- package/src/InlineAlert.tsx +2 -2
- package/src/Link.tsx +2 -2
- package/src/Menu.tsx +2 -2
- package/src/Meter.tsx +1 -1
- package/src/Modal.tsx +1 -1
- package/src/NumberField.tsx +2 -2
- package/src/Picker.tsx +7 -4
- package/src/Popover.tsx +5 -2
- package/src/ProgressBar.tsx +1 -1
- package/src/ProgressCircle.tsx +7 -5
- package/src/Provider.tsx +1 -1
- package/src/Radio.tsx +2 -2
- package/src/RadioGroup.tsx +1 -1
- package/src/SearchField.tsx +1 -1
- package/src/SegmentedControl.tsx +32 -22
- package/src/Skeleton.tsx +4 -1
- package/src/SkeletonCollection.tsx +4 -0
- package/src/Slider.tsx +2 -2
- package/src/StatusLight.tsx +1 -1
- package/src/Switch.tsx +2 -2
- package/src/Table.tsx +1063 -48
- package/src/Tabs.tsx +3 -3
- package/src/TagGroup.tsx +5 -4
- package/src/TextField.tsx +1 -1
- package/src/ToggleButton.tsx +3 -2
- package/src/Tooltip.tsx +1 -1
- package/src/index.ts +4 -0
- package/src/style-utils.ts +0 -10
- package/src/utils.ts +28 -0
- package/style/__tests__/mergeStyles.test.js +32 -0
- package/style/__tests__/style-macro.test.js +128 -0
- package/style/dist/main.cjs +38 -0
- package/style/dist/main.cjs.map +1 -0
- package/style/dist/module.mjs +26 -0
- package/style/dist/module.mjs.map +1 -0
- package/style/dist/spectrum-theme.cjs +1989 -0
- package/style/dist/spectrum-theme.cjs.map +1 -0
- package/style/dist/spectrum-theme.mjs +1978 -0
- package/style/dist/spectrum-theme.mjs.map +1 -0
- package/style/dist/style-macro.cjs +544 -0
- package/style/dist/style-macro.cjs.map +1 -0
- package/style/dist/style-macro.mjs +534 -0
- package/style/dist/style-macro.mjs.map +1 -0
- package/style/dist/types.d.ts +791 -0
- package/style/dist/types.d.ts.map +1 -0
- package/style/index.ts +24 -0
- package/style/runtime.ts +103 -0
- package/style/spectrum-theme.ts +980 -0
- package/style/style-macro.ts +638 -0
- package/style/tokens.ts +68 -0
- package/style/types.ts +178 -0
package/src/Tabs.tsx
CHANGED
|
@@ -27,9 +27,9 @@ import {
|
|
|
27
27
|
import {centerBaseline} from './CenterBaseline';
|
|
28
28
|
import {Collection, DOMRef, DOMRefValue, Key, Node, Orientation} from '@react-types/shared';
|
|
29
29
|
import {createContext, forwardRef, ReactNode, useCallback, useContext, useEffect, useRef, useState} from 'react';
|
|
30
|
-
import {focusRing,
|
|
30
|
+
import {focusRing, style} from '../style' with {type: 'macro'};
|
|
31
|
+
import {getAllowedOverrides, StyleProps, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'};
|
|
31
32
|
import {IconContext} from './Icon';
|
|
32
|
-
import {style} from '../style/spectrum-theme' with {type: 'macro'};
|
|
33
33
|
import {Text, TextContext} from './Content';
|
|
34
34
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
35
35
|
import {useLayoutEffect} from '@react-aria/utils';
|
|
@@ -43,7 +43,7 @@ export interface TabsProps extends Omit<AriaTabsProps, 'className' | 'style' | '
|
|
|
43
43
|
children?: ReactNode,
|
|
44
44
|
/**
|
|
45
45
|
* The amount of space between the tabs.
|
|
46
|
-
* @default
|
|
46
|
+
* @default 'regular'
|
|
47
47
|
*/
|
|
48
48
|
density?: 'compact' | 'regular'
|
|
49
49
|
}
|
package/src/TagGroup.tsx
CHANGED
|
@@ -32,17 +32,18 @@ import {ClearButton} from './ClearButton';
|
|
|
32
32
|
import {Collection, CollectionBuilder} from '@react-aria/collections';
|
|
33
33
|
import {createContext, forwardRef, ReactNode, useContext, useEffect, useMemo, useRef, useState} from 'react';
|
|
34
34
|
import {DOMRef, DOMRefValue, HelpTextProps, Node, SpectrumLabelableProps} from '@react-types/shared';
|
|
35
|
-
import {field,
|
|
35
|
+
import {field, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};
|
|
36
36
|
import {FieldLabel} from './Field';
|
|
37
37
|
import {flushSync} from 'react-dom';
|
|
38
|
-
import {fontRelative, style} from '../style
|
|
38
|
+
import {focusRing, fontRelative, style} from '../style' with { type: 'macro' };
|
|
39
39
|
import {FormContext, useFormProps} from './Form';
|
|
40
40
|
import {forwardRefType} from './types';
|
|
41
41
|
import {IconContext} from './Icon';
|
|
42
|
-
import {ImageContext
|
|
42
|
+
import {ImageContext} from './Image';
|
|
43
43
|
// @ts-ignore
|
|
44
44
|
import intlMessages from '../intl/*.json';
|
|
45
45
|
import {pressScale} from './pressScale';
|
|
46
|
+
import {Text, TextContext} from './Content';
|
|
46
47
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
47
48
|
import {useEffectEvent, useId, useLayoutEffect, useResizeObserver} from '@react-aria/utils';
|
|
48
49
|
import {useLocalizedStringFormatter} from '@react-aria/i18n';
|
|
@@ -573,7 +574,7 @@ function TagWrapper({children, isDisabled, allowsRemoving, isInRealDOM}) {
|
|
|
573
574
|
styles: style({order: 0})
|
|
574
575
|
}],
|
|
575
576
|
[ImageContext, {
|
|
576
|
-
|
|
577
|
+
styles: style({
|
|
577
578
|
size: fontRelative(20),
|
|
578
579
|
flexShrink: 0,
|
|
579
580
|
order: 0,
|
package/src/TextField.tsx
CHANGED
|
@@ -27,7 +27,7 @@ import {FieldErrorIcon, FieldGroup, FieldLabel, HelpText, Input} from './Field';
|
|
|
27
27
|
import {FormContext, useFormProps} from './Form';
|
|
28
28
|
import {HelpTextProps, SpectrumLabelableProps} from '@react-types/shared';
|
|
29
29
|
import {mergeRefs} from '@react-aria/utils';
|
|
30
|
-
import {style} from '../style
|
|
30
|
+
import {style} from '../style' with {type: 'macro'};
|
|
31
31
|
import {StyleString} from '../style/types';
|
|
32
32
|
import {TextFieldRef} from '@react-types/textfield';
|
|
33
33
|
import {useSpectrumContextProps} from './useSpectrumContextProps';
|
package/src/ToggleButton.tsx
CHANGED
|
@@ -15,7 +15,7 @@ import {centerBaseline} from './CenterBaseline';
|
|
|
15
15
|
import {ContextValue, Provider, ToggleButton as RACToggleButton, ToggleButtonProps as RACToggleButtonProps} from 'react-aria-components';
|
|
16
16
|
import {createContext, forwardRef, ReactNode} from 'react';
|
|
17
17
|
import {FocusableRef, FocusableRefValue} from '@react-types/shared';
|
|
18
|
-
import {fontRelative, style} from '../style
|
|
18
|
+
import {fontRelative, style} from '../style' with {type: 'macro'};
|
|
19
19
|
import {IconContext} from './Icon';
|
|
20
20
|
import {pressScale} from './pressScale';
|
|
21
21
|
import {SkeletonContext} from './Skeleton';
|
|
@@ -48,7 +48,8 @@ function ToggleButton(props: ToggleButtonProps, ref: FocusableRef<HTMLButtonElem
|
|
|
48
48
|
staticColor: props.staticColor,
|
|
49
49
|
size: props.size,
|
|
50
50
|
isQuiet: props.isQuiet,
|
|
51
|
-
isEmphasized: props.isEmphasized
|
|
51
|
+
isEmphasized: props.isEmphasized,
|
|
52
|
+
isPending: false
|
|
52
53
|
}, props.styles)}>
|
|
53
54
|
<Provider
|
|
54
55
|
values={[
|
package/src/Tooltip.tsx
CHANGED
|
@@ -25,7 +25,7 @@ import {ColorSchemeContext} from './Provider';
|
|
|
25
25
|
import {createContext, forwardRef, MutableRefObject, ReactNode, useCallback, useContext, useState} from 'react';
|
|
26
26
|
import {DOMRef} from '@react-types/shared';
|
|
27
27
|
import {keyframes} from '../style/style-macro' with {type: 'macro'};
|
|
28
|
-
import {style} from '../style
|
|
28
|
+
import {style} from '../style' with {type: 'macro'};
|
|
29
29
|
import {useDOMRef} from '@react-spectrum/utils';
|
|
30
30
|
|
|
31
31
|
export interface TooltipTriggerProps extends Omit<AriaTooltipTriggerComponentProps, 'children' | 'closeDelay'>, Pick<AriaTooltipProps, 'shouldFlip' | 'containerPadding' | 'offset' | 'crossOffset'> {
|
package/src/index.ts
CHANGED
|
@@ -63,12 +63,15 @@ export {Skeleton, useIsSkeleton} from './Skeleton';
|
|
|
63
63
|
export {SkeletonCollection} from './SkeletonCollection';
|
|
64
64
|
export {StatusLight, StatusLightContext} from './StatusLight';
|
|
65
65
|
export {Switch, SwitchContext} from './Switch';
|
|
66
|
+
export {Table, TableHeader, TableBody, Row, Cell, Column} from './Table';
|
|
66
67
|
export {Tabs, TabList, Tab, TabPanel, TabsContext} from './Tabs';
|
|
67
68
|
export {TagGroup, Tag, TagGroupContext} from './TagGroup';
|
|
68
69
|
export {TextArea, TextField, TextAreaContext, TextFieldContext} from './TextField';
|
|
69
70
|
export {ToggleButton, ToggleButtonContext} from './ToggleButton';
|
|
70
71
|
export {Tooltip, TooltipTrigger} from './Tooltip';
|
|
71
72
|
|
|
73
|
+
export {pressScale} from './pressScale';
|
|
74
|
+
|
|
72
75
|
export {Collection} from 'react-aria-components';
|
|
73
76
|
export {FileTrigger} from 'react-aria-components';
|
|
74
77
|
|
|
@@ -121,6 +124,7 @@ export type {SkeletonProps} from './Skeleton';
|
|
|
121
124
|
export type {SkeletonCollectionProps} from './SkeletonCollection';
|
|
122
125
|
export type {StatusLightProps} from './StatusLight';
|
|
123
126
|
export type {SwitchProps} from './Switch';
|
|
127
|
+
export type {TableProps, TableHeaderProps, TableBodyProps, RowProps, CellProps, ColumnProps} from './Table';
|
|
124
128
|
export type {TabsProps, TabProps, TabListProps, TabPanelProps} from './Tabs';
|
|
125
129
|
export type {TagGroupProps, TagProps} from './TagGroup';
|
|
126
130
|
export type {TextFieldProps, TextAreaProps} from './TextField';
|
package/src/style-utils.ts
CHANGED
|
@@ -13,16 +13,6 @@
|
|
|
13
13
|
import {CSSProperties} from 'react';
|
|
14
14
|
import {StyleString} from '../style/types';
|
|
15
15
|
|
|
16
|
-
export const focusRing = () => ({
|
|
17
|
-
outlineStyle: {
|
|
18
|
-
default: 'none',
|
|
19
|
-
isFocusVisible: 'solid'
|
|
20
|
-
},
|
|
21
|
-
outlineColor: 'focus-ring',
|
|
22
|
-
outlineWidth: 2,
|
|
23
|
-
outlineOffset: 2
|
|
24
|
-
} as const);
|
|
25
|
-
|
|
26
16
|
export function centerPadding(minHeight: string = 'self(minHeight)'): `[${string}]` {
|
|
27
17
|
return `[calc((${minHeight} - self(borderTopWidth, 0px) - self(borderBottomWidth, 0px) - 1lh) / 2)]`;
|
|
28
18
|
}
|
package/src/utils.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import {useMediaQuery} from '@react-spectrum/utils';
|
|
14
|
+
|
|
15
|
+
export type Scale = 'large' | 'medium';
|
|
16
|
+
|
|
17
|
+
export function useIsMobileDevice(): boolean {
|
|
18
|
+
return useMediaQuery('(max-width: 640px)');
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export function useScale(): Scale {
|
|
22
|
+
let matchesFine = useMediaQuery('not ((hover: hover) and (pointer: fine))');
|
|
23
|
+
if (matchesFine) {
|
|
24
|
+
return 'large';
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
return 'medium';
|
|
28
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import {mergeStyles} from '../runtime';
|
|
14
|
+
import {style} from '../spectrum-theme';
|
|
15
|
+
|
|
16
|
+
describe('mergeStyles', () => {
|
|
17
|
+
it('should merge styles', () => {
|
|
18
|
+
let a = style({backgroundColor: 'red-1000', color: 'pink-100'});
|
|
19
|
+
let b = style({fontSize: 'body-xs', backgroundColor: 'gray-50'});
|
|
20
|
+
let expected = style({backgroundColor: 'gray-50', color: 'pink-100', fontSize: 'body-xs'});
|
|
21
|
+
let merged = mergeStyles(a, b);
|
|
22
|
+
expect(merged).toBe(expected);
|
|
23
|
+
});
|
|
24
|
+
|
|
25
|
+
it('should merge with arbitrary values', () => {
|
|
26
|
+
let a = style({backgroundColor: 'red-1000', color: '[hotpink]'});
|
|
27
|
+
let b = style({fontSize: '[15px]', backgroundColor: 'gray-50'});
|
|
28
|
+
let expected = style({backgroundColor: 'gray-50', color: '[hotpink]', fontSize: '[15px]'});
|
|
29
|
+
let merged = mergeStyles(a, b);
|
|
30
|
+
expect(merged).toBe(expected);
|
|
31
|
+
});
|
|
32
|
+
});
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
3
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
4
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
5
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
6
|
+
*
|
|
7
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
8
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
9
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
10
|
+
* governing permissions and limitations under the License.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
import {style} from '../spectrum-theme';
|
|
14
|
+
|
|
15
|
+
function testStyle(...args) {
|
|
16
|
+
let css;
|
|
17
|
+
let js = style.apply(
|
|
18
|
+
{
|
|
19
|
+
addAsset({content}) {
|
|
20
|
+
css = content;
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
args
|
|
24
|
+
);
|
|
25
|
+
return {css, js};
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
describe('style-macro', () => {
|
|
29
|
+
it('should handle nested css conditions', () => {
|
|
30
|
+
let {css, js} = testStyle({
|
|
31
|
+
marginTop: {
|
|
32
|
+
':first-child': {
|
|
33
|
+
default: 4,
|
|
34
|
+
lg: 8
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
expect(css).toMatchInlineSnapshot(`
|
|
40
|
+
".\\.:not(#a#b) { all: revert-layer }
|
|
41
|
+
|
|
42
|
+
@layer _.a, _.b, _.c, UNSAFE_overrides;
|
|
43
|
+
|
|
44
|
+
@layer _.b {
|
|
45
|
+
.A-13alit4c {
|
|
46
|
+
&:first-child {
|
|
47
|
+
margin-top: 0.25rem;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
@layer _.c.e {
|
|
53
|
+
@media (min-width: 1024px) {
|
|
54
|
+
.A-13alit4ed {
|
|
55
|
+
&:first-child {
|
|
56
|
+
margin-top: 0.5rem;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
"
|
|
63
|
+
`);
|
|
64
|
+
expect(js).toMatchInlineSnapshot('" . A-13alit4c A-13alit4ed"');
|
|
65
|
+
});
|
|
66
|
+
|
|
67
|
+
it('should support self references', () => {
|
|
68
|
+
let {css} = testStyle({
|
|
69
|
+
borderWidth: 2,
|
|
70
|
+
paddingX: 'edge-to-text',
|
|
71
|
+
width: '[calc(200px - self(borderStartWidth) - self(paddingStart))]'
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
expect(css).toMatchInlineSnapshot(`
|
|
75
|
+
".\\.:not(#a#b) { all: revert-layer }
|
|
76
|
+
|
|
77
|
+
@layer _.a, _.b, UNSAFE_overrides;
|
|
78
|
+
|
|
79
|
+
@layer _.a {
|
|
80
|
+
.uc {
|
|
81
|
+
border-top-width: 2px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
.vc {
|
|
86
|
+
border-bottom-width: 2px;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
.s-375toy {
|
|
91
|
+
border-inline-start-width: var(--s);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
.tc {
|
|
96
|
+
border-inline-end-width: 2px;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
.C-375tnm {
|
|
101
|
+
padding-inline-start: var(--C);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
.DI {
|
|
106
|
+
padding-inline-end: calc(var(--k, var(--o)) * 3 / 8);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
.l-4s570k {
|
|
111
|
+
width: calc(200px - var(--s) - var(--C));
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
.-_375toy_s-c {
|
|
116
|
+
--s: 2px;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
.-_375tnm_C-I {
|
|
121
|
+
--C: calc(var(--k, var(--o)) * 3 / 8);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
"
|
|
126
|
+
`);
|
|
127
|
+
});
|
|
128
|
+
});
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var $7dddb03c6ef7d79c$exports = require("./spectrum-theme.cjs");
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
function $parcel$export(e, n, v, s) {
|
|
5
|
+
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
$parcel$export(module.exports, "focusRing", () => $68f77cfae04dca88$export$8e24544ddba725ee);
|
|
9
|
+
$parcel$export(module.exports, "baseColor", () => $7dddb03c6ef7d79c$exports.baseColor);
|
|
10
|
+
$parcel$export(module.exports, "edgeToText", () => $7dddb03c6ef7d79c$exports.edgeToText);
|
|
11
|
+
$parcel$export(module.exports, "fontRelative", () => $7dddb03c6ef7d79c$exports.fontRelative);
|
|
12
|
+
$parcel$export(module.exports, "lightDark", () => $7dddb03c6ef7d79c$exports.lightDark);
|
|
13
|
+
$parcel$export(module.exports, "size", () => $7dddb03c6ef7d79c$exports.size);
|
|
14
|
+
$parcel$export(module.exports, "space", () => $7dddb03c6ef7d79c$exports.space);
|
|
15
|
+
$parcel$export(module.exports, "style", () => $7dddb03c6ef7d79c$exports.style);
|
|
16
|
+
/*
|
|
17
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
18
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
19
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
20
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
21
|
+
*
|
|
22
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
23
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
24
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
25
|
+
* governing permissions and limitations under the License.
|
|
26
|
+
*/
|
|
27
|
+
const $68f77cfae04dca88$export$8e24544ddba725ee = ()=>({
|
|
28
|
+
outlineStyle: {
|
|
29
|
+
default: 'none',
|
|
30
|
+
isFocusVisible: 'solid'
|
|
31
|
+
},
|
|
32
|
+
outlineColor: 'focus-ring',
|
|
33
|
+
outlineWidth: 2,
|
|
34
|
+
outlineOffset: 2
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
//# sourceMappingURL=main.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;AAKM,MAAM,4CAAY,IAAO,CAAA;QAC9B,cAAc;YACZ,SAAS;YACT,gBAAgB;QAClB;QACA,cAAc;QACd,cAAc;QACd,eAAe;IACjB,CAAA","sources":["packages/@react-spectrum/s2/style/index.ts"],"sourcesContent":["/*\n * Copyright 2024 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\nexport {baseColor, edgeToText, fontRelative, lightDark, size, space, style} from './spectrum-theme';\nexport type {StyleString} from './types';\n\nexport const focusRing = () => ({\n outlineStyle: {\n default: 'none',\n isFocusVisible: 'solid'\n },\n outlineColor: 'focus-ring',\n outlineWidth: 2,\n outlineOffset: 2\n} as const);\n"],"names":[],"version":3,"file":"main.cjs.map","sourceRoot":"../../../../../"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {baseColor as $468034641bb536ce$export$49bbad2a916ab57c, edgeToText as $468034641bb536ce$export$17b63977b35bb6d2, fontRelative as $468034641bb536ce$export$ba024f4caf693d15, lightDark as $468034641bb536ce$export$d19e682d444755ed, size as $468034641bb536ce$export$346677f925de839c, space as $468034641bb536ce$export$a941ed4b947d12f8, style as $468034641bb536ce$export$1d567c320f4763bc} from "./spectrum-theme.mjs";
|
|
2
|
+
|
|
3
|
+
/*
|
|
4
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
5
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
7
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
+
*
|
|
9
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
10
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
11
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
12
|
+
* governing permissions and limitations under the License.
|
|
13
|
+
*/
|
|
14
|
+
const $b308eef0abc42945$export$8e24544ddba725ee = ()=>({
|
|
15
|
+
outlineStyle: {
|
|
16
|
+
default: 'none',
|
|
17
|
+
isFocusVisible: 'solid'
|
|
18
|
+
},
|
|
19
|
+
outlineColor: 'focus-ring',
|
|
20
|
+
outlineWidth: 2,
|
|
21
|
+
outlineOffset: 2
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
export {$b308eef0abc42945$export$8e24544ddba725ee as focusRing, $468034641bb536ce$export$49bbad2a916ab57c as baseColor, $468034641bb536ce$export$17b63977b35bb6d2 as edgeToText, $468034641bb536ce$export$ba024f4caf693d15 as fontRelative, $468034641bb536ce$export$d19e682d444755ed as lightDark, $468034641bb536ce$export$346677f925de839c as size, $468034641bb536ce$export$a941ed4b947d12f8 as space, $468034641bb536ce$export$1d567c320f4763bc as style};
|
|
26
|
+
//# sourceMappingURL=module.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;AAAA;;;;;;;;;;CAUC;AAKM,MAAM,4CAAY,IAAO,CAAA;QAC9B,cAAc;YACZ,SAAS;YACT,gBAAgB;QAClB;QACA,cAAc;QACd,cAAc;QACd,eAAe;IACjB,CAAA","sources":["packages/@react-spectrum/s2/style/index.ts"],"sourcesContent":["/*\n * Copyright 2024 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\nexport {baseColor, edgeToText, fontRelative, lightDark, size, space, style} from './spectrum-theme';\nexport type {StyleString} from './types';\n\nexport const focusRing = () => ({\n outlineStyle: {\n default: 'none',\n isFocusVisible: 'solid'\n },\n outlineColor: 'focus-ring',\n outlineWidth: 2,\n outlineOffset: 2\n} as const);\n"],"names":[],"version":3,"file":"module.mjs.map","sourceRoot":"../../../../../"}
|