@react-spectrum/s2 3.0.0-nightly-5ed06068e-241105 → 3.0.0-nightly-09ccc53e7-241107
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/ActionButton.cjs +54 -11
- package/dist/ActionButton.cjs.map +1 -1
- package/dist/ActionButton.css +47 -3
- package/dist/ActionButton.css.map +1 -1
- package/dist/ActionButton.mjs +55 -12
- package/dist/ActionButton.mjs.map +1 -1
- package/dist/ActionButtonGroup.cjs +77 -0
- package/dist/ActionButtonGroup.cjs.map +1 -0
- package/dist/ActionButtonGroup.css +44 -0
- package/dist/ActionButtonGroup.css.map +1 -0
- package/dist/ActionButtonGroup.mjs +70 -0
- package/dist/ActionButtonGroup.mjs.map +1 -0
- package/dist/Badge.cjs +42 -42
- package/dist/Badge.css +35 -35
- package/dist/Badge.mjs +42 -42
- package/dist/Card.cjs +1 -1
- package/dist/Card.css +1 -1
- package/dist/Card.mjs +1 -1
- package/dist/Content.cjs +1 -0
- package/dist/Content.cjs.map +1 -1
- package/dist/Content.mjs +1 -0
- package/dist/Content.mjs.map +1 -1
- package/dist/ContextualHelp.cjs +1 -1
- package/dist/ContextualHelp.cjs.map +1 -1
- package/dist/ContextualHelp.css +32 -16
- package/dist/ContextualHelp.css.map +1 -1
- package/dist/ContextualHelp.mjs +1 -1
- package/dist/ContextualHelp.mjs.map +1 -1
- package/dist/IllustratedMessage.cjs +6 -2
- package/dist/IllustratedMessage.cjs.map +1 -1
- package/dist/IllustratedMessage.css +2 -2
- package/dist/IllustratedMessage.css.map +1 -1
- package/dist/IllustratedMessage.mjs +6 -2
- package/dist/IllustratedMessage.mjs.map +1 -1
- package/dist/InlineAlert.cjs +8 -8
- package/dist/InlineAlert.css +6 -6
- package/dist/InlineAlert.mjs +8 -8
- package/dist/Meter.cjs +4 -17
- package/dist/Meter.cjs.map +1 -1
- package/dist/Meter.css +7 -19
- package/dist/Meter.css.map +1 -1
- package/dist/Meter.mjs +4 -17
- package/dist/Meter.mjs.map +1 -1
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.css +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/Picker.cjs +3 -0
- package/dist/Picker.cjs.map +1 -1
- package/dist/Picker.css +12 -0
- 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 -1
- package/dist/Popover.css +1 -1
- package/dist/Popover.mjs +1 -1
- package/dist/ProgressBar.cjs +19 -3
- package/dist/ProgressBar.cjs.map +1 -1
- package/dist/ProgressBar.css +14 -0
- package/dist/ProgressBar.css.map +1 -1
- package/dist/ProgressBar.mjs +19 -3
- package/dist/ProgressBar.mjs.map +1 -1
- package/dist/Provider.cjs +1 -1
- package/dist/Provider.css +1 -1
- package/dist/Provider.mjs +1 -1
- package/dist/Radio.cjs +2 -2
- package/dist/Radio.cjs.map +1 -1
- package/dist/Radio.css +4 -8
- package/dist/Radio.css.map +1 -1
- package/dist/Radio.mjs +2 -2
- package/dist/Radio.mjs.map +1 -1
- package/dist/SegmentedControl.cjs +76 -62
- package/dist/SegmentedControl.cjs.map +1 -1
- package/dist/SegmentedControl.css +110 -69
- package/dist/SegmentedControl.css.map +1 -1
- package/dist/SegmentedControl.mjs +77 -63
- package/dist/SegmentedControl.mjs.map +1 -1
- package/dist/ToggleButton.cjs +13 -6
- package/dist/ToggleButton.cjs.map +1 -1
- package/dist/ToggleButton.css +16 -0
- package/dist/ToggleButton.css.map +1 -1
- package/dist/ToggleButton.mjs +14 -7
- package/dist/ToggleButton.mjs.map +1 -1
- package/dist/ToggleButtonGroup.cjs +54 -0
- package/dist/ToggleButtonGroup.cjs.map +1 -0
- package/dist/ToggleButtonGroup.mjs +48 -0
- package/dist/ToggleButtonGroup.mjs.map +1 -0
- package/dist/main.cjs +8 -0
- package/dist/main.cjs.map +1 -1
- package/dist/module.mjs +5 -1
- package/dist/module.mjs.map +1 -1
- package/dist/types.d.ts +57 -12
- package/dist/types.d.ts.map +1 -1
- package/package.json +17 -17
- package/src/ActionButton.tsx +88 -8
- package/src/ActionButtonGroup.tsx +106 -0
- package/src/Content.tsx +2 -1
- package/src/ContextualHelp.tsx +1 -1
- package/src/IllustratedMessage.tsx +1 -3
- package/src/Meter.tsx +4 -4
- package/src/Picker.tsx +10 -1
- package/src/ProgressBar.tsx +20 -3
- package/src/Radio.tsx +1 -3
- package/src/SegmentedControl.tsx +56 -45
- package/src/ToggleButton.tsx +23 -7
- package/src/ToggleButtonGroup.tsx +55 -0
- package/src/index.ts +4 -0
- package/style/dist/spectrum-theme.cjs +5 -0
- package/style/dist/spectrum-theme.cjs.map +1 -1
- package/style/dist/spectrum-theme.mjs +5 -0
- package/style/dist/spectrum-theme.mjs.map +1 -1
- package/style/dist/types.d.ts +2 -2
- package/style/dist/types.d.ts.map +1 -1
- package/style/spectrum-theme.ts +5 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import "./ActionButtonGroup.css";
|
|
2
|
+
import {useSpectrumContextProps as $5ce63c423902f47d$export$764f6146fadd77f7} from "../icons/useSpectrumContextProps.mjs";
|
|
3
|
+
import {jsx as $aTsYn$jsx} from "react/jsx-runtime";
|
|
4
|
+
import {Toolbar as $aTsYn$Toolbar} from "react-aria-components";
|
|
5
|
+
import {createContext as $aTsYn$createContext, forwardRef as $aTsYn$forwardRef} from "react";
|
|
6
|
+
|
|
7
|
+
/*
|
|
8
|
+
* Copyright 2024 Adobe. All rights reserved.
|
|
9
|
+
* This file is licensed to you under the Apache License, Version 2.0 (the "License");
|
|
10
|
+
* you may not use this file except in compliance with the License. You may obtain a copy
|
|
11
|
+
* of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
12
|
+
*
|
|
13
|
+
* Unless required by applicable law or agreed to in writing, software distributed under
|
|
14
|
+
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
|
|
15
|
+
* OF ANY KIND, either express or implied. See the License for the specific language
|
|
16
|
+
* governing permissions and limitations under the License.
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
const $10401bdc118cbc90$export$641cbcd1f6f6802f = function anonymous(props, overrides) {
|
|
22
|
+
let rules = " .";
|
|
23
|
+
let matches = (overrides || '').match(/(?:^|\s)(?:y|z|A|B|_9|_8|h|_5|_4|__A|__c|__d|__a|__b|U|__Q|X|Z|V|W|l|q|r|k|o|p)[^\s]+/g) || [];
|
|
24
|
+
rules += matches.join('');
|
|
25
|
+
rules += ' _Zd';
|
|
26
|
+
if (props.orientation === "vertical") rules += ' _6b';
|
|
27
|
+
else if (props.orientation === "horizontal") rules += ' _6a';
|
|
28
|
+
if (props.density === "regular") {
|
|
29
|
+
if (props.size === "XL") rules += ' id';
|
|
30
|
+
else if (props.size === "L") rules += ' id';
|
|
31
|
+
else if (props.size === "M") rules += ' id';
|
|
32
|
+
else if (props.size === "S") rules += ' ic';
|
|
33
|
+
else if (props.size === "XS") rules += ' ic';
|
|
34
|
+
} else if (props.density === "compact") rules += ' ib';
|
|
35
|
+
if (props.density === "regular") {
|
|
36
|
+
if (props.size === "XL") rules += ' jd';
|
|
37
|
+
else if (props.size === "L") rules += ' jd';
|
|
38
|
+
else if (props.size === "M") rules += ' jd';
|
|
39
|
+
else if (props.size === "S") rules += ' jc';
|
|
40
|
+
else if (props.size === "XS") rules += ' jc';
|
|
41
|
+
} else if (props.density === "compact") rules += ' jb';
|
|
42
|
+
return rules;
|
|
43
|
+
};
|
|
44
|
+
const $10401bdc118cbc90$export$33f5f2f2cb85d743 = /*#__PURE__*/ (0, $aTsYn$createContext)(null);
|
|
45
|
+
function $10401bdc118cbc90$var$ActionButtonGroup(props, ref) {
|
|
46
|
+
[props, ref] = (0, $5ce63c423902f47d$export$764f6146fadd77f7)(props, ref, $10401bdc118cbc90$export$33f5f2f2cb85d743);
|
|
47
|
+
let { density: density = 'regular', size: size = 'M', orientation: orientation = 'horizontal', isJustified: isJustified, children: children, UNSAFE_className: UNSAFE_className = '', UNSAFE_style: UNSAFE_style, styles: styles } = props;
|
|
48
|
+
return /*#__PURE__*/ (0, $aTsYn$jsx)((0, $aTsYn$Toolbar), {
|
|
49
|
+
...props,
|
|
50
|
+
ref: ref,
|
|
51
|
+
style: UNSAFE_style,
|
|
52
|
+
className: UNSAFE_className + $10401bdc118cbc90$export$641cbcd1f6f6802f({
|
|
53
|
+
size: size,
|
|
54
|
+
density: density,
|
|
55
|
+
orientation: orientation,
|
|
56
|
+
isJustified: isJustified
|
|
57
|
+
}, styles),
|
|
58
|
+
children: /*#__PURE__*/ (0, $aTsYn$jsx)($10401bdc118cbc90$export$33f5f2f2cb85d743.Provider, {
|
|
59
|
+
value: props,
|
|
60
|
+
children: children
|
|
61
|
+
})
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* An ActionButtonGroup is a grouping of related ActionButtons.
|
|
66
|
+
*/ const $10401bdc118cbc90$export$73d695ae27330056 = /*#__PURE__*/ (0, $aTsYn$forwardRef)($10401bdc118cbc90$var$ActionButtonGroup);
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
export {$10401bdc118cbc90$export$641cbcd1f6f6802f as actionGroupStyle, $10401bdc118cbc90$export$33f5f2f2cb85d743 as ActionButtonGroupContext, $10401bdc118cbc90$export$73d695ae27330056 as ActionButtonGroup};
|
|
70
|
+
//# sourceMappingURL=ActionButtonGroup.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"mappings":";;;;;;AAAA;;;;;;;;;;CAUC;;;;AAsCM,MAAM;;;;;;;;;;;;;;;;;;;;;;;AAyBN,MAAM,0DAA2B,CAAA,GAAA,oBAAY,EAAwD;AAE5G,SAAS,wCAAkB,KAA6B,EAAE,GAAiC;IACzF,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,WACF,UAAU,iBACV,OAAO,kBACP,cAAc,2BACd,WAAW,YACX,QAAQ,oBACR,mBAAmB,kBACnB,YAAY,UACZ,MAAM,EACP,GAAG;IAEJ,qBACE,gBAAC,CAAA,GAAA,cAAM;QACJ,GAAG,KAAK;QACT,KAAK;QACL,OAAO;QACP,WAAW,mBAAmB,0CAAiB;kBAAC;qBAAM;yBAAS;yBAAa;QAAW,GAAG;kBAC1F,cAAA,gBAAC,0CAAyB,QAAQ;YAAC,OAAO;sBACvC;;;AAIT;AAEA;;CAEC,GACD,MAAM,0DAAqB,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/s2/src/ActionButtonGroup.tsx"],"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\nimport {ContextValue, SlotProps, Toolbar} from 'react-aria-components';\nimport {createContext, ForwardedRef, forwardRef, ReactNode} from 'react';\nimport {getAllowedOverrides, StylesPropWithHeight, UnsafeStyles} from './style-utils' with {type: 'macro'};\nimport {style} from '../style' with {type: 'macro'};\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface ActionButtonGroupProps extends UnsafeStyles, SlotProps {\n /** Spectrum-defined styles, returned by the `style()` macro. */\n styles?: StylesPropWithHeight,\n /** The children of the group. */\n children: ReactNode,\n /**\n * Size of the buttons.\n * @default \"M\"\n */\n size?: 'XS' | 'S' | 'M' | 'L' | 'XL',\n /**\n * Spacing between the buttons.\n * @default \"regular\"\n */\n density?: 'compact' | 'regular',\n /** Whether the button should be displayed with a [quiet style](https://spectrum.adobe.com/page/action-button/#Quiet). */\n isQuiet?: boolean,\n /** Whether the buttons should divide the container width equally. */\n isJustified?: boolean,\n /** Whether the button should be displayed with an [emphasized style](https://spectrum.adobe.com/page/action-button/#Emphasis). */\n staticColor?: 'white' | 'black',\n /**\n * The axis the group should align with.\n * @default 'horizontal'\n */\n orientation?: 'horizontal' | 'vertical',\n /** Whether the group is disabled. */\n isDisabled?: boolean\n}\n\nexport const actionGroupStyle = style({\n display: 'flex',\n flexDirection: {\n orientation: {\n horizontal: 'row',\n vertical: 'column'\n }\n },\n gap: {\n density: {\n compact: 2,\n regular: {\n size: {\n XS: 4,\n S: 4,\n M: 8,\n L: 8,\n XL: 8\n }\n }\n }\n }\n}, getAllowedOverrides({height: true}));\n\n\nexport const ActionButtonGroupContext = createContext<ContextValue<ActionButtonGroupProps, HTMLDivElement>>(null);\n\nfunction ActionButtonGroup(props: ActionButtonGroupProps, ref: ForwardedRef<HTMLDivElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, ActionButtonGroupContext);\n let {\n density = 'regular',\n size = 'M',\n orientation = 'horizontal',\n isJustified,\n children,\n UNSAFE_className = '',\n UNSAFE_style,\n styles\n } = props;\n\n return (\n <Toolbar\n {...props}\n ref={ref}\n style={UNSAFE_style}\n className={UNSAFE_className + actionGroupStyle({size, density, orientation, isJustified}, styles)}>\n <ActionButtonGroupContext.Provider value={props}>\n {children}\n </ActionButtonGroupContext.Provider>\n </Toolbar>\n );\n}\n\n/**\n * An ActionButtonGroup is a grouping of related ActionButtons.\n */\nconst _ActionButtonGroup = forwardRef(ActionButtonGroup);\nexport {_ActionButtonGroup as ActionButtonGroup};\n"],"names":[],"version":3,"file":"ActionButtonGroup.mjs.map"}
|
package/dist/Badge.cjs
CHANGED
|
@@ -101,51 +101,51 @@ const $660a621e3a266afc$var$badge = function anonymous(props, overrides) {
|
|
|
101
101
|
rules += ' -oelgqu_A--177861o';
|
|
102
102
|
rules += ' jbH';
|
|
103
103
|
rules += ' jG';
|
|
104
|
-
if (props.fillStyle === "outline") rules += '
|
|
104
|
+
if (props.fillStyle === "outline") rules += ' b______o';
|
|
105
105
|
else if (props.fillStyle === "subtle") {
|
|
106
|
-
if (props.variant === "silver") rules += '
|
|
107
|
-
else if (props.variant === "cinnamon") rules += '
|
|
108
|
-
else if (props.variant === "brown") rules += '
|
|
109
|
-
else if (props.variant === "turquoise") rules += '
|
|
110
|
-
else if (props.variant === "pink") rules += '
|
|
111
|
-
else if (props.variant === "magenta") rules += '
|
|
112
|
-
else if (props.variant === "fuchsia") rules += '
|
|
113
|
-
else if (props.variant === "purple") rules += '
|
|
114
|
-
else if (props.variant === "indigo") rules += '
|
|
106
|
+
if (props.variant === "silver") rules += ' b______n';
|
|
107
|
+
else if (props.variant === "cinnamon") rules += ' b______j';
|
|
108
|
+
else if (props.variant === "brown") rules += ' b______l';
|
|
109
|
+
else if (props.variant === "turquoise") rules += ' b______h';
|
|
110
|
+
else if (props.variant === "pink") rules += ' b______f';
|
|
111
|
+
else if (props.variant === "magenta") rules += ' b______d';
|
|
112
|
+
else if (props.variant === "fuchsia") rules += ' b______b';
|
|
113
|
+
else if (props.variant === "purple") rules += ' b_____9';
|
|
114
|
+
else if (props.variant === "indigo") rules += ' b_____7';
|
|
115
115
|
else if (props.variant === "blue") rules += ' b_____G';
|
|
116
|
-
else if (props.variant === "cyan") rules += '
|
|
117
|
-
else if (props.variant === "seafoam") rules += '
|
|
118
|
-
else if (props.variant === "green") rules += '
|
|
119
|
-
else if (props.variant === "celery") rules += '
|
|
120
|
-
else if (props.variant === "charteuse") rules += '
|
|
121
|
-
else if (props.variant === "yellow") rules += '
|
|
122
|
-
else if (props.variant === "orange") rules += '
|
|
123
|
-
else if (props.variant === "red") rules += '
|
|
116
|
+
else if (props.variant === "cyan") rules += ' b_____5';
|
|
117
|
+
else if (props.variant === "seafoam") rules += ' b_____3';
|
|
118
|
+
else if (props.variant === "green") rules += ' b_____S';
|
|
119
|
+
else if (props.variant === "celery") rules += ' b_____1';
|
|
120
|
+
else if (props.variant === "charteuse") rules += ' b_____Z';
|
|
121
|
+
else if (props.variant === "yellow") rules += ' b_____X';
|
|
122
|
+
else if (props.variant === "orange") rules += ' b_____V';
|
|
123
|
+
else if (props.variant === "red") rules += ' b_____N';
|
|
124
124
|
else if (props.variant === "gray") rules += ' b_____J';
|
|
125
|
-
else if (props.variant === "negative") rules += '
|
|
126
|
-
else if (props.variant === "notice") rules += '
|
|
127
|
-
else if (props.variant === "positive") rules += '
|
|
125
|
+
else if (props.variant === "negative") rules += ' b_____N';
|
|
126
|
+
else if (props.variant === "notice") rules += ' b_____V';
|
|
127
|
+
else if (props.variant === "positive") rules += ' b_____S';
|
|
128
128
|
else if (props.variant === "neutral") rules += ' b_____J';
|
|
129
129
|
else if (props.variant === "informative") rules += ' b_____G';
|
|
130
130
|
else if (props.variant === "accent") rules += ' b_____G';
|
|
131
131
|
} else if (props.fillStyle === "bold") {
|
|
132
|
-
if (props.variant === "silver") rules += '
|
|
133
|
-
else if (props.variant === "cinnamon") rules += '
|
|
134
|
-
else if (props.variant === "brown") rules += '
|
|
135
|
-
else if (props.variant === "turquoise") rules += '
|
|
136
|
-
else if (props.variant === "pink") rules += '
|
|
137
|
-
else if (props.variant === "magenta") rules += '
|
|
138
|
-
else if (props.variant === "fuchsia") rules += '
|
|
139
|
-
else if (props.variant === "purple") rules += '
|
|
140
|
-
else if (props.variant === "indigo") rules += '
|
|
132
|
+
if (props.variant === "silver") rules += ' b______m';
|
|
133
|
+
else if (props.variant === "cinnamon") rules += ' b______i';
|
|
134
|
+
else if (props.variant === "brown") rules += ' b______k';
|
|
135
|
+
else if (props.variant === "turquoise") rules += ' b______g';
|
|
136
|
+
else if (props.variant === "pink") rules += ' b______e';
|
|
137
|
+
else if (props.variant === "magenta") rules += ' b______c';
|
|
138
|
+
else if (props.variant === "fuchsia") rules += ' b______a';
|
|
139
|
+
else if (props.variant === "purple") rules += ' b_____8';
|
|
140
|
+
else if (props.variant === "indigo") rules += ' b_____6';
|
|
141
141
|
else if (props.variant === "blue") rules += ' b_____E';
|
|
142
|
-
else if (props.variant === "cyan") rules += '
|
|
143
|
-
else if (props.variant === "seafoam") rules += '
|
|
144
|
-
else if (props.variant === "green") rules += '
|
|
145
|
-
else if (props.variant === "celery") rules += '
|
|
146
|
-
else if (props.variant === "charteuse") rules += '
|
|
147
|
-
else if (props.variant === "yellow") rules += '
|
|
148
|
-
else if (props.variant === "orange") rules += '
|
|
142
|
+
else if (props.variant === "cyan") rules += ' b_____4';
|
|
143
|
+
else if (props.variant === "seafoam") rules += ' b_____2';
|
|
144
|
+
else if (props.variant === "green") rules += ' b_____P';
|
|
145
|
+
else if (props.variant === "celery") rules += ' b_____0';
|
|
146
|
+
else if (props.variant === "charteuse") rules += ' b_____Y';
|
|
147
|
+
else if (props.variant === "yellow") rules += ' b_____W';
|
|
148
|
+
else if (props.variant === "orange") rules += ' b_____T';
|
|
149
149
|
else if (props.variant === "red") rules += ' b_____K';
|
|
150
150
|
else if (props.variant === "gray") rules += ' b_____H';
|
|
151
151
|
else if (props.variant === "negative") {
|
|
@@ -153,12 +153,12 @@ const $660a621e3a266afc$var$badge = function anonymous(props, overrides) {
|
|
|
153
153
|
else if (props.isFocusVisible) rules += ' b_____L';
|
|
154
154
|
else if (props.isHovered) rules += ' b_____L';
|
|
155
155
|
else rules += ' b_____K';
|
|
156
|
-
} else if (props.variant === "notice") rules += '
|
|
156
|
+
} else if (props.variant === "notice") rules += ' b_____T';
|
|
157
157
|
else if (props.variant === "positive") {
|
|
158
|
-
if (props.isPressed) rules += '
|
|
159
|
-
else if (props.isFocusVisible) rules += '
|
|
160
|
-
else if (props.isHovered) rules += '
|
|
161
|
-
else rules += '
|
|
158
|
+
if (props.isPressed) rules += ' b_____Q';
|
|
159
|
+
else if (props.isFocusVisible) rules += ' b_____Q';
|
|
160
|
+
else if (props.isHovered) rules += ' b_____Q';
|
|
161
|
+
else rules += ' b_____P';
|
|
162
162
|
} else if (props.variant === "neutral") {
|
|
163
163
|
if (props.isPressed) rules += ' b_____I';
|
|
164
164
|
else if (props.isFocusVisible) rules += ' b_____I';
|
package/dist/Badge.css
CHANGED
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
background-color: var(--lightningcss-light, #292929) var(--lightningcss-dark, #444);
|
|
106
106
|
}
|
|
107
107
|
|
|
108
|
-
.
|
|
108
|
+
.b_____Q {
|
|
109
109
|
background-color: var(--lightningcss-light, #036e45) var(--lightningcss-dark, #047c4b);
|
|
110
110
|
}
|
|
111
111
|
|
|
@@ -121,31 +121,31 @@
|
|
|
121
121
|
background-color: var(--lightningcss-light, #d73220) var(--lightningcss-dark, #df3422);
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
.
|
|
124
|
+
.b_____T {
|
|
125
125
|
background-color: var(--lightningcss-light, #fc7d00) var(--lightningcss-dark, #e06400);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
.
|
|
128
|
+
.b_____W {
|
|
129
129
|
background-color: var(--lightningcss-light, #f5c700) var(--lightningcss-dark, #da9f00);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
-
.
|
|
132
|
+
.b_____Y {
|
|
133
133
|
background-color: var(--lightningcss-light, #a3c400) var(--lightningcss-dark, #88a400);
|
|
134
134
|
}
|
|
135
135
|
|
|
136
|
-
.
|
|
136
|
+
.b_____0 {
|
|
137
137
|
background-color: var(--lightningcss-light, #5db41f) var(--lightningcss-dark, #4e9a17);
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
.
|
|
140
|
+
.b_____P {
|
|
141
141
|
background-color: var(--lightningcss-light, #05834e) var(--lightningcss-dark, #068850);
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
.
|
|
144
|
+
.b_____2 {
|
|
145
145
|
background-color: var(--lightningcss-light, #07816d) var(--lightningcss-dark, #088670);
|
|
146
146
|
}
|
|
147
147
|
|
|
148
|
-
.
|
|
148
|
+
.b_____4 {
|
|
149
149
|
background-color: var(--lightningcss-light, #0b78b3) var(--lightningcss-dark, #0d7dba);
|
|
150
150
|
}
|
|
151
151
|
|
|
@@ -153,39 +153,39 @@
|
|
|
153
153
|
background-color: var(--lightningcss-light, #3b63fb) var(--lightningcss-dark, #4069fd);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
.
|
|
156
|
+
.b_____6 {
|
|
157
157
|
background-color: var(--lightningcss-light, #7155fa) var(--lightningcss-dark, #745bfc);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
.
|
|
160
|
+
.b_____8 {
|
|
161
161
|
background-color: var(--lightningcss-light, #9a47e2) var(--lightningcss-dark, #9d4ee4);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
|
-
.
|
|
164
|
+
.b______a {
|
|
165
165
|
background-color: var(--lightningcss-light, #b539c8) var(--lightningcss-dark, #ba3cce);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
|
-
.
|
|
168
|
+
.b______c {
|
|
169
169
|
background-color: var(--lightningcss-light, #d92361) var(--lightningcss-dark, #e02665);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.
|
|
172
|
+
.b______e {
|
|
173
173
|
background-color: var(--lightningcss-light, #ce2a92) var(--lightningcss-dark, #d52d97);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
|
-
.
|
|
176
|
+
.b______g {
|
|
177
177
|
background-color: var(--lightningcss-light, #087e89) var(--lightningcss-dark, #09838e);
|
|
178
178
|
}
|
|
179
179
|
|
|
180
|
-
.
|
|
180
|
+
.b______k {
|
|
181
181
|
background-color: var(--lightningcss-light, #8b6d42) var(--lightningcss-dark, #8f7245);
|
|
182
182
|
}
|
|
183
183
|
|
|
184
|
-
.
|
|
184
|
+
.b______i {
|
|
185
185
|
background-color: var(--lightningcss-light, #aa5e38) var(--lightningcss-dark, #b0623b);
|
|
186
186
|
}
|
|
187
187
|
|
|
188
|
-
.
|
|
188
|
+
.b______m {
|
|
189
189
|
background-color: var(--lightningcss-light, #727272) var(--lightningcss-dark, #767676);
|
|
190
190
|
}
|
|
191
191
|
|
|
@@ -193,35 +193,35 @@
|
|
|
193
193
|
background-color: var(--lightningcss-light, #e9e9e9) var(--lightningcss-dark, #393939);
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
.
|
|
196
|
+
.b_____N {
|
|
197
197
|
background-color: var(--lightningcss-light, #ffebe8) var(--lightningcss-dark, #571107);
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
.
|
|
200
|
+
.b_____V {
|
|
201
201
|
background-color: var(--lightningcss-light, #ffeccf) var(--lightningcss-dark, #501b00);
|
|
202
202
|
}
|
|
203
203
|
|
|
204
|
-
.
|
|
204
|
+
.b_____X {
|
|
205
205
|
background-color: var(--lightningcss-light, #fff197) var(--lightningcss-dark, #3d2700);
|
|
206
206
|
}
|
|
207
207
|
|
|
208
|
-
.
|
|
208
|
+
.b_____Z {
|
|
209
209
|
background-color: var(--lightningcss-light, #eaf6ad) var(--lightningcss-dark, #272f00);
|
|
210
210
|
}
|
|
211
211
|
|
|
212
|
-
.
|
|
212
|
+
.b_____1 {
|
|
213
213
|
background-color: var(--lightningcss-light, #c5ff9c) var(--lightningcss-dark, #153301);
|
|
214
214
|
}
|
|
215
215
|
|
|
216
|
-
.
|
|
216
|
+
.b_____S {
|
|
217
217
|
background-color: var(--lightningcss-light, #d7f7e1) var(--lightningcss-dark, #003326);
|
|
218
218
|
}
|
|
219
219
|
|
|
220
|
-
.
|
|
220
|
+
.b_____3 {
|
|
221
221
|
background-color: var(--lightningcss-light, #d3f6ea) var(--lightningcss-dark, #00322c);
|
|
222
222
|
}
|
|
223
223
|
|
|
224
|
-
.
|
|
224
|
+
.b_____5 {
|
|
225
225
|
background-color: var(--lightningcss-light, #d9f4fd) var(--lightningcss-dark, #003041);
|
|
226
226
|
}
|
|
227
227
|
|
|
@@ -229,43 +229,43 @@
|
|
|
229
229
|
background-color: var(--lightningcss-light, #e5f0fe) var(--lightningcss-dark, #0c2175);
|
|
230
230
|
}
|
|
231
231
|
|
|
232
|
-
.
|
|
232
|
+
.b_____7 {
|
|
233
233
|
background-color: var(--lightningcss-light, #ebeeff) var(--lightningcss-dark, #2f008c);
|
|
234
234
|
}
|
|
235
235
|
|
|
236
|
-
.
|
|
236
|
+
.b_____9 {
|
|
237
237
|
background-color: var(--lightningcss-light, #f4ebfc) var(--lightningcss-dark, #40007a);
|
|
238
238
|
}
|
|
239
239
|
|
|
240
|
-
.
|
|
240
|
+
.b______b {
|
|
241
241
|
background-color: var(--lightningcss-light, #fde9ff) var(--lightningcss-dark, #4f005f);
|
|
242
242
|
}
|
|
243
243
|
|
|
244
|
-
.
|
|
244
|
+
.b______d {
|
|
245
245
|
background-color: var(--lightningcss-light, #ffe8f0) var(--lightningcss-dark, #5d0022);
|
|
246
246
|
}
|
|
247
247
|
|
|
248
|
-
.
|
|
248
|
+
.b______f {
|
|
249
249
|
background-color: var(--lightningcss-light, #ffe8f7) var(--lightningcss-dark, #5a0039);
|
|
250
250
|
}
|
|
251
251
|
|
|
252
|
-
.
|
|
252
|
+
.b______h {
|
|
253
253
|
background-color: var(--lightningcss-light, #d1f5f5) var(--lightningcss-dark, #003136);
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
.
|
|
256
|
+
.b______l {
|
|
257
257
|
background-color: var(--lightningcss-light, #f7eee1) var(--lightningcss-dark, #3a280e);
|
|
258
258
|
}
|
|
259
259
|
|
|
260
|
-
.
|
|
260
|
+
.b______j {
|
|
261
261
|
background-color: var(--lightningcss-light, #f9ece5) var(--lightningcss-dark, #4f1c07);
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
.
|
|
264
|
+
.b______n {
|
|
265
265
|
background-color: var(--lightningcss-light, #efefef) var(--lightningcss-dark, #2c2c2c);
|
|
266
266
|
}
|
|
267
267
|
|
|
268
|
-
.
|
|
268
|
+
.b______o {
|
|
269
269
|
background-color: var(--lightningcss-light, #fff) var(--lightningcss-dark, #222);
|
|
270
270
|
}
|
|
271
271
|
|
package/dist/Badge.mjs
CHANGED
|
@@ -90,51 +90,51 @@ const $6357025487dea614$var$badge = function anonymous(props, overrides) {
|
|
|
90
90
|
rules += ' -oelgqu_A--177861o';
|
|
91
91
|
rules += ' jbH';
|
|
92
92
|
rules += ' jG';
|
|
93
|
-
if (props.fillStyle === "outline") rules += '
|
|
93
|
+
if (props.fillStyle === "outline") rules += ' b______o';
|
|
94
94
|
else if (props.fillStyle === "subtle") {
|
|
95
|
-
if (props.variant === "silver") rules += '
|
|
96
|
-
else if (props.variant === "cinnamon") rules += '
|
|
97
|
-
else if (props.variant === "brown") rules += '
|
|
98
|
-
else if (props.variant === "turquoise") rules += '
|
|
99
|
-
else if (props.variant === "pink") rules += '
|
|
100
|
-
else if (props.variant === "magenta") rules += '
|
|
101
|
-
else if (props.variant === "fuchsia") rules += '
|
|
102
|
-
else if (props.variant === "purple") rules += '
|
|
103
|
-
else if (props.variant === "indigo") rules += '
|
|
95
|
+
if (props.variant === "silver") rules += ' b______n';
|
|
96
|
+
else if (props.variant === "cinnamon") rules += ' b______j';
|
|
97
|
+
else if (props.variant === "brown") rules += ' b______l';
|
|
98
|
+
else if (props.variant === "turquoise") rules += ' b______h';
|
|
99
|
+
else if (props.variant === "pink") rules += ' b______f';
|
|
100
|
+
else if (props.variant === "magenta") rules += ' b______d';
|
|
101
|
+
else if (props.variant === "fuchsia") rules += ' b______b';
|
|
102
|
+
else if (props.variant === "purple") rules += ' b_____9';
|
|
103
|
+
else if (props.variant === "indigo") rules += ' b_____7';
|
|
104
104
|
else if (props.variant === "blue") rules += ' b_____G';
|
|
105
|
-
else if (props.variant === "cyan") rules += '
|
|
106
|
-
else if (props.variant === "seafoam") rules += '
|
|
107
|
-
else if (props.variant === "green") rules += '
|
|
108
|
-
else if (props.variant === "celery") rules += '
|
|
109
|
-
else if (props.variant === "charteuse") rules += '
|
|
110
|
-
else if (props.variant === "yellow") rules += '
|
|
111
|
-
else if (props.variant === "orange") rules += '
|
|
112
|
-
else if (props.variant === "red") rules += '
|
|
105
|
+
else if (props.variant === "cyan") rules += ' b_____5';
|
|
106
|
+
else if (props.variant === "seafoam") rules += ' b_____3';
|
|
107
|
+
else if (props.variant === "green") rules += ' b_____S';
|
|
108
|
+
else if (props.variant === "celery") rules += ' b_____1';
|
|
109
|
+
else if (props.variant === "charteuse") rules += ' b_____Z';
|
|
110
|
+
else if (props.variant === "yellow") rules += ' b_____X';
|
|
111
|
+
else if (props.variant === "orange") rules += ' b_____V';
|
|
112
|
+
else if (props.variant === "red") rules += ' b_____N';
|
|
113
113
|
else if (props.variant === "gray") rules += ' b_____J';
|
|
114
|
-
else if (props.variant === "negative") rules += '
|
|
115
|
-
else if (props.variant === "notice") rules += '
|
|
116
|
-
else if (props.variant === "positive") rules += '
|
|
114
|
+
else if (props.variant === "negative") rules += ' b_____N';
|
|
115
|
+
else if (props.variant === "notice") rules += ' b_____V';
|
|
116
|
+
else if (props.variant === "positive") rules += ' b_____S';
|
|
117
117
|
else if (props.variant === "neutral") rules += ' b_____J';
|
|
118
118
|
else if (props.variant === "informative") rules += ' b_____G';
|
|
119
119
|
else if (props.variant === "accent") rules += ' b_____G';
|
|
120
120
|
} else if (props.fillStyle === "bold") {
|
|
121
|
-
if (props.variant === "silver") rules += '
|
|
122
|
-
else if (props.variant === "cinnamon") rules += '
|
|
123
|
-
else if (props.variant === "brown") rules += '
|
|
124
|
-
else if (props.variant === "turquoise") rules += '
|
|
125
|
-
else if (props.variant === "pink") rules += '
|
|
126
|
-
else if (props.variant === "magenta") rules += '
|
|
127
|
-
else if (props.variant === "fuchsia") rules += '
|
|
128
|
-
else if (props.variant === "purple") rules += '
|
|
129
|
-
else if (props.variant === "indigo") rules += '
|
|
121
|
+
if (props.variant === "silver") rules += ' b______m';
|
|
122
|
+
else if (props.variant === "cinnamon") rules += ' b______i';
|
|
123
|
+
else if (props.variant === "brown") rules += ' b______k';
|
|
124
|
+
else if (props.variant === "turquoise") rules += ' b______g';
|
|
125
|
+
else if (props.variant === "pink") rules += ' b______e';
|
|
126
|
+
else if (props.variant === "magenta") rules += ' b______c';
|
|
127
|
+
else if (props.variant === "fuchsia") rules += ' b______a';
|
|
128
|
+
else if (props.variant === "purple") rules += ' b_____8';
|
|
129
|
+
else if (props.variant === "indigo") rules += ' b_____6';
|
|
130
130
|
else if (props.variant === "blue") rules += ' b_____E';
|
|
131
|
-
else if (props.variant === "cyan") rules += '
|
|
132
|
-
else if (props.variant === "seafoam") rules += '
|
|
133
|
-
else if (props.variant === "green") rules += '
|
|
134
|
-
else if (props.variant === "celery") rules += '
|
|
135
|
-
else if (props.variant === "charteuse") rules += '
|
|
136
|
-
else if (props.variant === "yellow") rules += '
|
|
137
|
-
else if (props.variant === "orange") rules += '
|
|
131
|
+
else if (props.variant === "cyan") rules += ' b_____4';
|
|
132
|
+
else if (props.variant === "seafoam") rules += ' b_____2';
|
|
133
|
+
else if (props.variant === "green") rules += ' b_____P';
|
|
134
|
+
else if (props.variant === "celery") rules += ' b_____0';
|
|
135
|
+
else if (props.variant === "charteuse") rules += ' b_____Y';
|
|
136
|
+
else if (props.variant === "yellow") rules += ' b_____W';
|
|
137
|
+
else if (props.variant === "orange") rules += ' b_____T';
|
|
138
138
|
else if (props.variant === "red") rules += ' b_____K';
|
|
139
139
|
else if (props.variant === "gray") rules += ' b_____H';
|
|
140
140
|
else if (props.variant === "negative") {
|
|
@@ -142,12 +142,12 @@ const $6357025487dea614$var$badge = function anonymous(props, overrides) {
|
|
|
142
142
|
else if (props.isFocusVisible) rules += ' b_____L';
|
|
143
143
|
else if (props.isHovered) rules += ' b_____L';
|
|
144
144
|
else rules += ' b_____K';
|
|
145
|
-
} else if (props.variant === "notice") rules += '
|
|
145
|
+
} else if (props.variant === "notice") rules += ' b_____T';
|
|
146
146
|
else if (props.variant === "positive") {
|
|
147
|
-
if (props.isPressed) rules += '
|
|
148
|
-
else if (props.isFocusVisible) rules += '
|
|
149
|
-
else if (props.isHovered) rules += '
|
|
150
|
-
else rules += '
|
|
147
|
+
if (props.isPressed) rules += ' b_____Q';
|
|
148
|
+
else if (props.isFocusVisible) rules += ' b_____Q';
|
|
149
|
+
else if (props.isHovered) rules += ' b_____Q';
|
|
150
|
+
else rules += ' b_____P';
|
|
151
151
|
} else if (props.variant === "neutral") {
|
|
152
152
|
if (props.isPressed) rules += ' b_____I';
|
|
153
153
|
else if (props.isFocusVisible) rules += ' b_____I';
|
package/dist/Card.cjs
CHANGED
|
@@ -93,7 +93,7 @@ let $230078a1c4ce81d8$var$card = function anonymous(props, overrides) {
|
|
|
93
93
|
else rules += ' _yd';
|
|
94
94
|
rules += ' -_1de2x0q_b-a_____w';
|
|
95
95
|
if (props.variant === "secondary") rules += ' -_1de2x0q_b-e';
|
|
96
|
-
else if (props.variant === "primary") rules += ' -_1de2x0q_b-
|
|
96
|
+
else if (props.variant === "primary") rules += ' -_1de2x0q_b-______o';
|
|
97
97
|
if (props.variant === "quiet") rules += ' ba';
|
|
98
98
|
else if (props.variant === "tertiary") rules += ' ba';
|
|
99
99
|
else rules += ' b-1de2x0q';
|
package/dist/Card.css
CHANGED
package/dist/Card.mjs
CHANGED
|
@@ -80,7 +80,7 @@ let $68e4e6fe083e22fd$var$card = function anonymous(props, overrides) {
|
|
|
80
80
|
else rules += ' _yd';
|
|
81
81
|
rules += ' -_1de2x0q_b-a_____w';
|
|
82
82
|
if (props.variant === "secondary") rules += ' -_1de2x0q_b-e';
|
|
83
|
-
else if (props.variant === "primary") rules += ' -_1de2x0q_b-
|
|
83
|
+
else if (props.variant === "primary") rules += ' -_1de2x0q_b-______o';
|
|
84
84
|
if (props.variant === "quiet") rules += ' ba';
|
|
85
85
|
else if (props.variant === "tertiary") rules += ' ba';
|
|
86
86
|
else rules += ' b-1de2x0q';
|
package/dist/Content.cjs
CHANGED
package/dist/Content.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAqBM,MAAM,0DAAiB,CAAA,GAAA,0BAAY,EAA+D;AAEzG,qDAAqD;AACrD,SAAS,8BAAQ,KAAmB,EAAE,GAA+B;IACnE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AAI,EAAE,GAAG,YAAW,GAAG;IACnF,IAAI,UACF,OAAO;IAET,qBACE,gCAAC,CAAA,GAAA,mCAAW;QACT,GAAG,UAAU;QACd,KAAK;QACL,WAAW,mBAAmB;QAC9B,OAAO;QACP,MAAM,QAAQ;;AAEpB;AAEA,MAAM,0DAAY,CAAA,GAAA,uBAAS,EAAE;AAGtB,MAAM,0DAAgB,CAAA,GAAA,0BAAY,EAA2C,CAAC;AAErF,SAAS,6BAAO,KAAmB,EAAE,GAAW;IAC9C,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,iDAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,oBAAC,mBAAmB,kBAAI,YAAY,UAAE,MAAM,YAAE,QAAQ,QAAE,IAAI,EAAE,GAAG,YAAW,GAAG;IACnF,IAAI,UACF,OAAO;IAET,qBACE,gCAAC;QACE,GAAG,UAAU;QACd,KAAK;QACL,WAAW,mBAAmB;QAC9B,OAAO;QACP,MAAM,QAAQ;;AAEpB;AAEA,MAAM,0DAAU,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/s2/src/Content.tsx"],"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\nimport {ContextValue, Keyboard as KeyboardAria, Header as RACHeader, Heading as RACHeading, TextContext as RACTextContext, SlotProps, Text as TextAria} from 'react-aria-components';\nimport {createContext, forwardRef, ReactNode, useContext} from 'react';\nimport {DOMRef, DOMRefValue} from '@react-types/shared';\nimport {StyleString} from '../style/types';\nimport {UnsafeStyles} from './style-utils';\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useIsSkeleton, useSkeletonText} from './Skeleton';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\ninterface ContentProps extends UnsafeStyles, SlotProps {\n children?: ReactNode,\n styles?: StyleString,\n isHidden?: boolean\n}\n\ninterface HeadingProps extends ContentProps {\n level?: number\n}\n\nexport const HeadingContext = createContext<ContextValue<HeadingProps, DOMRefValue<HTMLHeadingElement>>>(null);\n\n// Wrapper around RAC Heading to unmount when hidden.\nfunction Heading(props: HeadingProps, ref: DOMRef<HTMLHeadingElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, HeadingContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, ...otherProps} = props;\n if (isHidden) {\n return null;\n }\n\n return (\n <RACHeading\n {...otherProps}\n ref={domRef}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined} />\n );\n}\n\nconst _Heading = forwardRef(Heading);\nexport {_Heading as Heading};\n\nexport const HeaderContext = createContext<ContextValue<ContentProps, DOMRefValue<HTMLElement>>>(null);\n\nfunction Header(props: ContentProps, ref: DOMRef) {\n [props, ref] = useSpectrumContextProps(props, ref, HeaderContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, ...otherProps} = props;\n if (isHidden) {\n return null;\n }\n\n return (\n <RACHeader\n {...otherProps}\n ref={domRef}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined} />\n );\n}\n\nconst _Header = forwardRef(Header);\nexport {_Header as Header};\n\nexport const ContentContext = createContext<ContextValue<ContentProps, DOMRefValue<HTMLDivElement>>>(null);\n\nfunction Content(props: ContentProps, ref: DOMRef<HTMLDivElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, ContentContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, ...otherProps} = props;\n if (isHidden) {\n return null;\n }\n return (\n <div\n {...otherProps}\n ref={domRef}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined} />\n );\n}\n\nconst _Content = forwardRef(Content);\nexport {_Content as Content};\n\nexport const TextContext = createContext<ContextValue<ContentProps, DOMRefValue>>(null);\n\nfunction Text(props: ContentProps, ref: DOMRef) {\n [props, ref] = useSpectrumContextProps(props, ref, TextContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, children, ...otherProps} = props;\n let racContext = useContext(RACTextContext);\n let isSkeleton = useIsSkeleton();\n [children, UNSAFE_style] = useSkeletonText(children, UNSAFE_style);\n if (isHidden) {\n return null;\n }\n\n slot = slot && racContext && 'slots' in racContext && !racContext.slots?.[slot] ? undefined : slot;\n return (\n <TextAria\n {...otherProps}\n ref={domRef}\n // @ts-ignore - compatibility with React < 19\n inert={isSkeleton ? 'true' : undefined}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined}>\n {children}\n </TextAria>\n );\n}\n\nconst _Text = forwardRef(Text);\nexport {_Text as Text};\n\nexport const KeyboardContext = createContext<ContextValue<ContentProps, DOMRefValue>>({});\n\nfunction Keyboard(props: ContentProps, ref: DOMRef) {\n [props, ref] = useSpectrumContextProps(props, ref, KeyboardContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, ...otherProps} = props;\n if (isHidden) {\n return null;\n }\n return (\n <KeyboardAria\n {...otherProps}\n ref={domRef}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined} />\n );\n}\n\nconst _Keyboard = forwardRef(Keyboard);\nexport {_Keyboard as Keyboard};\n\nexport const FooterContext = createContext<ContextValue<ContentProps, DOMRefValue>>({});\n\nfunction Footer(props: ContentProps, ref: DOMRef) {\n [props, ref] = useSpectrumContextProps(props, ref, FooterContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, ...otherProps} = props;\n if (isHidden) {\n return null;\n }\n return (\n <footer\n {...otherProps}\n ref={domRef}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined} />\n );\n}\n\nconst _Footer = forwardRef(Footer);\nexport {_Footer as Footer};\n"],"names":[],"version":3,"file":"Content.cjs.map"}
|
|
1
|
+
{"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;AAqBM,MAAM,0DAAiB,CAAA,GAAA,0BAAY,EAA+D;AAEzG,qDAAqD;AACrD,SAAS,8BAAQ,KAAmB,EAAE,GAA+B;IACnE,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,iDAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,oBAAC,mBAAmB,kBAAI,YAAY,UAAE,MAAM,YAAE,QAAQ,QAAE,IAAI,EAAE,GAAG,YAAW,GAAG;IACnF,IAAI,UACF,OAAO;IAGT,qBACE,gCAAC,CAAA,GAAA,kCAAS;QACP,GAAG,UAAU;QACd,KAAK;QACL,WAAW,mBAAmB;QAC9B,OAAO;QACP,MAAM,QAAQ;;AAEpB;AAEA,MAAM,0DAAW,CAAA,GAAA,uBAAS,EAAE;AAGrB,MAAM,0DAAgB,CAAA,GAAA,0BAAY,EAAwD;AAEjG,SAAS,6BAAO,KAAmB,EAAE,GAAW;IAC9C,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,iDAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,oBAAC,mBAAmB,kBAAI,YAAY,UAAE,MAAM,YAAE,QAAQ,QAAE,IAAI,EAAE,GAAG,YAAW,GAAG;IACnF,IAAI,UACF,OAAO;IAGT,qBACE,gCAAC,CAAA,GAAA,iCAAQ;QACN,GAAG,UAAU;QACd,KAAK;QACL,WAAW,mBAAmB;QAC9B,O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O,aAAa,SAAS;QAC7B,WAAW,mBAAmB;QAC9B,OAAO;QACP,MAAM,QAAQ;QACd,iBAAc;kBACb;;AAGP;AAEA,MAAM,0DAAQ,CAAA,GAAA,uBAAS,EAAE;AAGlB,MAAM,0DAAkB,CAAA,GAAA,0BAAY,EAA2C,CAAC;AAEvF,SAAS,+BAAS,KAAmB,EAAE,GAAW;IAChD,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,iDAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,oBAAC,mBAAmB,kBAAI,YAAY,UAAE,MAAM,YAAE,QAAQ,QAAE,IAAI,EAAE,GAAG,YAAW,GAAG;IACnF,IAAI,UACF,OAAO;IAET,qBACE,gCAAC,CAAA,GAAA,mCAAW;QACT,GAAG,UAAU;QACd,KAAK;QACL,WAAW,mBAAmB;QAC9B,OAAO;QACP,MAAM,QAAQ;;AAEpB;AAEA,MAAM,0DAAY,CAAA,GAAA,uBAAS,EAAE;AAGtB,MAAM,0DAAgB,CAAA,GAAA,0BAAY,EAA2C,CAAC;AAErF,SAAS,6BAAO,KAAmB,EAAE,GAAW;IAC9C,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,iDAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,SAAS,CAAA,GAAA,mCAAQ,EAAE;IACvB,IAAI,oBAAC,mBAAmB,kBAAI,YAAY,UAAE,MAAM,YAAE,QAAQ,QAAE,IAAI,EAAE,GAAG,YAAW,GAAG;IACnF,IAAI,UACF,OAAO;IAET,qBACE,gCAAC;QACE,GAAG,UAAU;QACd,KAAK;QACL,WAAW,mBAAmB;QAC9B,OAAO;QACP,MAAM,QAAQ;;AAEpB;AAEA,MAAM,0DAAU,CAAA,GAAA,uBAAS,EAAE","sources":["packages/@react-spectrum/s2/src/Content.tsx"],"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\nimport {ContextValue, Keyboard as KeyboardAria, Header as RACHeader, Heading as RACHeading, TextContext as RACTextContext, SlotProps, Text as TextAria} from 'react-aria-components';\nimport {createContext, forwardRef, ReactNode, useContext} from 'react';\nimport {DOMRef, DOMRefValue} from '@react-types/shared';\nimport {StyleString} from '../style/types';\nimport {UnsafeStyles} from './style-utils';\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useIsSkeleton, useSkeletonText} from './Skeleton';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\ninterface ContentProps extends UnsafeStyles, SlotProps {\n children?: ReactNode,\n styles?: StyleString,\n isHidden?: boolean\n}\n\ninterface HeadingProps extends ContentProps {\n level?: number\n}\n\nexport const HeadingContext = createContext<ContextValue<HeadingProps, DOMRefValue<HTMLHeadingElement>>>(null);\n\n// Wrapper around RAC Heading to unmount when hidden.\nfunction Heading(props: HeadingProps, ref: DOMRef<HTMLHeadingElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, HeadingContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, ...otherProps} = props;\n if (isHidden) {\n return null;\n }\n\n return (\n <RACHeading\n {...otherProps}\n ref={domRef}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined} />\n );\n}\n\nconst _Heading = forwardRef(Heading);\nexport {_Heading as Heading};\n\nexport const HeaderContext = createContext<ContextValue<ContentProps, DOMRefValue<HTMLElement>>>(null);\n\nfunction Header(props: ContentProps, ref: DOMRef) {\n [props, ref] = useSpectrumContextProps(props, ref, HeaderContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, ...otherProps} = props;\n if (isHidden) {\n return null;\n }\n\n return (\n <RACHeader\n {...otherProps}\n ref={domRef}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined} />\n );\n}\n\nconst _Header = forwardRef(Header);\nexport {_Header as Header};\n\nexport const ContentContext = createContext<ContextValue<ContentProps, DOMRefValue<HTMLDivElement>>>(null);\n\nfunction Content(props: ContentProps, ref: DOMRef<HTMLDivElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, ContentContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, ...otherProps} = props;\n if (isHidden) {\n return null;\n }\n return (\n <div\n {...otherProps}\n ref={domRef}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined} />\n );\n}\n\nconst _Content = forwardRef(Content);\nexport {_Content as Content};\n\nexport const TextContext = createContext<ContextValue<ContentProps, DOMRefValue>>(null);\n\nfunction Text(props: ContentProps, ref: DOMRef) {\n [props, ref] = useSpectrumContextProps(props, ref, TextContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, children, ...otherProps} = props;\n let racContext = useContext(RACTextContext);\n let isSkeleton = useIsSkeleton();\n [children, UNSAFE_style] = useSkeletonText(children, UNSAFE_style);\n if (isHidden) {\n return null;\n }\n\n slot = slot && racContext && 'slots' in racContext && !racContext.slots?.[slot] ? undefined : slot;\n return (\n <TextAria\n {...otherProps}\n ref={domRef}\n // @ts-ignore - compatibility with React < 19\n inert={isSkeleton ? 'true' : undefined}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined}\n data-rsp-slot=\"text\">\n {children}\n </TextAria>\n );\n}\n\nconst _Text = forwardRef(Text);\nexport {_Text as Text};\n\nexport const KeyboardContext = createContext<ContextValue<ContentProps, DOMRefValue>>({});\n\nfunction Keyboard(props: ContentProps, ref: DOMRef) {\n [props, ref] = useSpectrumContextProps(props, ref, KeyboardContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, ...otherProps} = props;\n if (isHidden) {\n return null;\n }\n return (\n <KeyboardAria\n {...otherProps}\n ref={domRef}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined} />\n );\n}\n\nconst _Keyboard = forwardRef(Keyboard);\nexport {_Keyboard as Keyboard};\n\nexport const FooterContext = createContext<ContextValue<ContentProps, DOMRefValue>>({});\n\nfunction Footer(props: ContentProps, ref: DOMRef) {\n [props, ref] = useSpectrumContextProps(props, ref, FooterContext);\n let domRef = useDOMRef(ref);\n let {UNSAFE_className = '', UNSAFE_style, styles, isHidden, slot, ...otherProps} = props;\n if (isHidden) {\n return null;\n }\n return (\n <footer\n {...otherProps}\n ref={domRef}\n className={UNSAFE_className + styles}\n style={UNSAFE_style}\n slot={slot || undefined} />\n );\n}\n\nconst _Footer = forwardRef(Footer);\nexport {_Footer as Footer};\n"],"names":[],"version":3,"file":"Content.cjs.map"}
|