@react-spectrum/s2 3.0.0-nightly-db60babaf-241014 → 3.0.0-nightly-e1b72a79f-241016
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.css +3 -3
- package/dist/AlertDialog.css +2 -2
- package/dist/Badge.cjs +60 -60
- package/dist/Badge.cjs.map +1 -1
- package/dist/Badge.css +88 -88
- package/dist/Badge.css.map +1 -1
- package/dist/Badge.mjs +60 -60
- package/dist/Badge.mjs.map +1 -1
- package/dist/Breadcrumbs.css +1 -1
- package/dist/Button.cjs +4 -4
- package/dist/Button.css +7 -7
- package/dist/Button.mjs +4 -4
- package/dist/Card.cjs +1 -1
- package/dist/Card.css +2 -2
- package/dist/Card.mjs +1 -1
- package/dist/CardView.css +1 -1
- package/dist/Checkbox.cjs +1 -1
- package/dist/Checkbox.css +3 -3
- package/dist/Checkbox.mjs +1 -1
- package/dist/CloseButton.css +1 -1
- package/dist/ColorHandle.cjs +1 -1
- package/dist/ColorHandle.css +1 -1
- package/dist/ColorHandle.mjs +1 -1
- package/dist/ColorSwatchPicker.css +1 -1
- package/dist/ContextualHelp.cjs +1 -1
- package/dist/ContextualHelp.css +7 -7
- package/dist/ContextualHelp.mjs +1 -1
- package/dist/Dialog.cjs +1 -1
- package/dist/Dialog.css +3 -3
- package/dist/Dialog.mjs +1 -1
- package/dist/Disclosure.cjs +3 -3
- package/dist/Disclosure.css +9 -1
- package/dist/Disclosure.css.map +1 -1
- package/dist/Disclosure.mjs +3 -3
- package/dist/DropZone.css +3 -3
- package/dist/Field.cjs +1 -1
- package/dist/Field.css +3 -3
- package/dist/Field.mjs +1 -1
- package/dist/InlineAlert.cjs +20 -20
- package/dist/InlineAlert.css +31 -31
- package/dist/InlineAlert.mjs +20 -20
- package/dist/Link.css +1 -1
- package/dist/Menu.cjs +1 -1
- package/dist/Menu.css +2 -2
- package/dist/Menu.mjs +1 -1
- package/dist/Meter.cjs +6 -6
- package/dist/Meter.css +11 -11
- package/dist/Meter.mjs +6 -6
- package/dist/Modal.cjs +1 -1
- package/dist/Modal.css +1 -1
- package/dist/Modal.mjs +1 -1
- package/dist/Picker.css +2 -2
- package/dist/Popover.cjs +1 -1
- package/dist/Popover.css +1 -1
- package/dist/Popover.mjs +1 -1
- package/dist/ProgressBar.css +2 -2
- package/dist/Provider.cjs +1 -1
- package/dist/Provider.css +1 -1
- package/dist/Provider.mjs +1 -1
- package/dist/Radio.css +1 -1
- package/dist/{MoveHorizontalCircleTableWidget.cjs → S2_MoveHorizontalTableWidget.cjs} +7 -7
- package/dist/S2_MoveHorizontalTableWidget.cjs.map +1 -0
- package/dist/{MoveHorizontalCircleTableWidget.mjs → S2_MoveHorizontalTableWidget.mjs} +7 -7
- package/dist/S2_MoveHorizontalTableWidget.mjs.map +1 -0
- package/dist/SegmentedControl.css +1 -1
- package/dist/Slider.css +1 -1
- package/dist/StatusLight.cjs +15 -15
- package/dist/StatusLight.css +20 -20
- package/dist/StatusLight.mjs +15 -15
- package/dist/Switch.css +1 -1
- package/dist/TableView.cjs +7 -9
- package/dist/TableView.cjs.map +1 -1
- package/dist/TableView.css +11 -20
- package/dist/TableView.css.map +1 -1
- package/dist/TableView.mjs +7 -9
- package/dist/TableView.mjs.map +1 -1
- package/dist/Tabs.css +1 -1
- package/dist/TagGroup.css +3 -3
- package/dist/Tooltip.cjs +1 -1
- package/dist/Tooltip.css +1 -1
- package/dist/Tooltip.mjs +1 -1
- package/dist/types.d.ts.map +1 -1
- package/package.json +18 -18
- package/src/Badge.tsx +30 -30
- package/src/TableView.tsx +5 -10
- package/style/dist/spectrum-theme.cjs +112 -92
- package/style/dist/spectrum-theme.cjs.map +1 -1
- package/style/dist/spectrum-theme.mjs +112 -92
- package/style/dist/spectrum-theme.mjs.map +1 -1
- package/style/dist/types.d.ts +1 -1
- package/style/dist/types.d.ts.map +1 -1
- package/style/spectrum-theme.ts +25 -5
- package/dist/MoveHorizontalCircleTableWidget.cjs.map +0 -1
- package/dist/MoveHorizontalCircleTableWidget.mjs.map +0 -1
package/dist/Badge.mjs
CHANGED
|
@@ -90,69 +90,69 @@ 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______k';
|
|
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 += '
|
|
104
|
-
else if (props.variant === "blue") rules += '
|
|
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 += '
|
|
113
|
-
else if (props.variant === "gray") rules += '
|
|
114
|
-
else if (props.variant === "negative") rules += '
|
|
115
|
-
else if (props.variant === "notice") rules += '
|
|
116
|
-
else if (props.variant === "positive") rules += '
|
|
117
|
-
else if (props.variant === "neutral") rules += '
|
|
118
|
-
else if (props.variant === "informative") rules += '
|
|
119
|
-
else if (props.variant === "accent") rules += '
|
|
95
|
+
if (props.variant === "silver") rules += ' b______j';
|
|
96
|
+
else if (props.variant === "cinnamon") rules += ' b______f';
|
|
97
|
+
else if (props.variant === "brown") rules += ' b______h';
|
|
98
|
+
else if (props.variant === "turquoise") rules += ' b______d';
|
|
99
|
+
else if (props.variant === "pink") rules += ' b______b';
|
|
100
|
+
else if (props.variant === "magenta") rules += ' b_____9';
|
|
101
|
+
else if (props.variant === "fuchsia") rules += ' b_____7';
|
|
102
|
+
else if (props.variant === "purple") rules += ' b_____5';
|
|
103
|
+
else if (props.variant === "indigo") rules += ' b_____3';
|
|
104
|
+
else if (props.variant === "blue") rules += ' b_____G';
|
|
105
|
+
else if (props.variant === "cyan") rules += ' b_____1';
|
|
106
|
+
else if (props.variant === "seafoam") rules += ' b_____Z';
|
|
107
|
+
else if (props.variant === "green") rules += ' b_____P';
|
|
108
|
+
else if (props.variant === "celery") rules += ' b_____X';
|
|
109
|
+
else if (props.variant === "charteuse") rules += ' b_____V';
|
|
110
|
+
else if (props.variant === "yellow") rules += ' b_____T';
|
|
111
|
+
else if (props.variant === "orange") rules += ' b_____R';
|
|
112
|
+
else if (props.variant === "red") rules += ' b_____M';
|
|
113
|
+
else if (props.variant === "gray") rules += ' b_____J';
|
|
114
|
+
else if (props.variant === "negative") rules += ' b_____M';
|
|
115
|
+
else if (props.variant === "notice") rules += ' b_____R';
|
|
116
|
+
else if (props.variant === "positive") rules += ' b_____P';
|
|
117
|
+
else if (props.variant === "neutral") rules += ' b_____J';
|
|
118
|
+
else if (props.variant === "informative") rules += ' b_____G';
|
|
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______i';
|
|
122
|
+
else if (props.variant === "cinnamon") rules += ' b______e';
|
|
123
|
+
else if (props.variant === "brown") rules += ' b______g';
|
|
124
|
+
else if (props.variant === "turquoise") rules += ' b______c';
|
|
125
|
+
else if (props.variant === "pink") rules += ' b______a';
|
|
126
|
+
else if (props.variant === "magenta") rules += ' b_____8';
|
|
127
|
+
else if (props.variant === "fuchsia") rules += ' b_____6';
|
|
128
|
+
else if (props.variant === "purple") rules += ' b_____4';
|
|
129
|
+
else if (props.variant === "indigo") rules += ' b_____2';
|
|
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 += '
|
|
138
|
-
else if (props.variant === "red") rules += '
|
|
139
|
-
else if (props.variant === "gray") rules += '
|
|
131
|
+
else if (props.variant === "cyan") rules += ' b_____0';
|
|
132
|
+
else if (props.variant === "seafoam") rules += ' b_____Y';
|
|
133
|
+
else if (props.variant === "green") rules += ' b_____N';
|
|
134
|
+
else if (props.variant === "celery") rules += ' b_____W';
|
|
135
|
+
else if (props.variant === "charteuse") rules += ' b_____U';
|
|
136
|
+
else if (props.variant === "yellow") rules += ' b_____S';
|
|
137
|
+
else if (props.variant === "orange") rules += ' b_____Q';
|
|
138
|
+
else if (props.variant === "red") rules += ' b_____K';
|
|
139
|
+
else if (props.variant === "gray") rules += ' b_____H';
|
|
140
140
|
else if (props.variant === "negative") {
|
|
141
|
-
if (props.isPressed) rules += ' b_____J';
|
|
142
|
-
else if (props.isFocusVisible) rules += ' b_____J';
|
|
143
|
-
else if (props.isHovered) rules += ' b_____J';
|
|
144
|
-
else rules += ' b_____I';
|
|
145
|
-
} else if (props.variant === "notice") rules += ' b_____M';
|
|
146
|
-
else if (props.variant === "positive") {
|
|
147
141
|
if (props.isPressed) rules += ' b_____L';
|
|
148
142
|
else if (props.isFocusVisible) rules += ' b_____L';
|
|
149
143
|
else if (props.isHovered) rules += ' b_____L';
|
|
150
144
|
else rules += ' b_____K';
|
|
145
|
+
} else if (props.variant === "notice") rules += ' b_____Q';
|
|
146
|
+
else if (props.variant === "positive") {
|
|
147
|
+
if (props.isPressed) rules += ' b_____O';
|
|
148
|
+
else if (props.isFocusVisible) rules += ' b_____O';
|
|
149
|
+
else if (props.isHovered) rules += ' b_____O';
|
|
150
|
+
else rules += ' b_____N';
|
|
151
151
|
} else if (props.variant === "neutral") {
|
|
152
|
-
if (props.isPressed) rules += '
|
|
153
|
-
else if (props.isFocusVisible) rules += '
|
|
154
|
-
else if (props.isHovered) rules += '
|
|
155
|
-
else rules += '
|
|
152
|
+
if (props.isPressed) rules += ' b_____I';
|
|
153
|
+
else if (props.isFocusVisible) rules += ' b_____I';
|
|
154
|
+
else if (props.isHovered) rules += ' b_____I';
|
|
155
|
+
else rules += ' b_____H';
|
|
156
156
|
} else if (props.variant === "informative") {
|
|
157
157
|
if (props.isPressed) rules += ' b_____F';
|
|
158
158
|
else if (props.isFocusVisible) rules += ' b_____F';
|
|
@@ -172,12 +172,12 @@ const $6357025487dea614$var$badge = function anonymous(props, overrides) {
|
|
|
172
172
|
rules += ' sc';
|
|
173
173
|
rules += ' tc';
|
|
174
174
|
if (props.fillStyle === "outline") {
|
|
175
|
-
if (props.variant === "negative") rules += '
|
|
176
|
-
else if (props.variant === "notice") rules += '
|
|
177
|
-
else if (props.variant === "positive") rules += '
|
|
178
|
-
else if (props.variant === "neutral") rules += '
|
|
179
|
-
else if (props.variant === "informative") rules += '
|
|
180
|
-
else if (props.variant === "accent") rules += '
|
|
175
|
+
if (props.variant === "negative") rules += ' c-awl6xt';
|
|
176
|
+
else if (props.variant === "notice") rules += ' c-1c1g5qb';
|
|
177
|
+
else if (props.variant === "positive") rules += ' c-32o7sp';
|
|
178
|
+
else if (props.variant === "neutral") rules += ' c-lj7qwa';
|
|
179
|
+
else if (props.variant === "informative") rules += ' c-1n5lxsq';
|
|
180
|
+
else if (props.variant === "accent") rules += ' c-1n5lxsq';
|
|
181
181
|
} else rules += ' ca';
|
|
182
182
|
rules += ' -rwx0fg_e-b';
|
|
183
183
|
if (props.size === "XL") {
|
package/dist/Badge.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AA0CM,MAAM,0DAAe,CAAA,GAAA,oBAAY,EAAkE;AAE1G,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiIN,SAAS,4BAAM,KAAiB,EAAE,GAA2B;IAC3D,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,YACF,QAAQ,WACR,UAAU,iBACV,OAAO,gBACP,YAAY,QACZ,GAAG,YACJ,GAAG,OAAO,gCAAgC;IAC3C,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,aAAa,CAAA,GAAA,YAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,KAAK,CAAC,CAAA,IAAK,eAAC,CAAA,GAAA,YAAI,EAAE,cAAc,CAAC;IAEzF,qBACE,gBAAC,CAAA,GAAA,eAAO;QACN,QAAQ;YACN;gBAAC,CAAA,GAAA,yCAAU;gBAAG;oBAAC,MAAM;gBAA+C;aAAE;YACtE;gBAAC,CAAA,GAAA,yCAAU;gBAAG;oBACZ,QAAQ,CAAA,GAAA,yCAAa,EAAE;wBAAC,MAAM;wBAAQ,MAAM;oBAAmB;oBAC/D,MAAM;gBACR;aAAE;SACH;kBACD,cAAA,gBAAC,CAAA,GAAA,yCAAc;sBACb,cAAA,gBAAC;gBACE,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;gBAC9B,MAAK;gBACL,WAAW,AAAC,CAAA,MAAM,gBAAgB,IAAI,EAAC,IAAK,4BAAM;6BAAC;0BAAS;+BAAM;gBAAS,GAAG,MAAM,MAAM;gBAC1F,OAAO,MAAM,YAAY;gBACzB,KAAK;0BAEH,OAAO,aAAa,YAAY,2BAC5B,gBAAC,CAAA,GAAA,yCAAG;8BAAG;qBACP;;;;AAMhB;AAEA;;CAEC,GACD,IAAI,0DAAS,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/s2/src/Badge.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 {AriaLabelingProps, DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';\nimport {centerBaseline} from './CenterBaseline';\nimport {centerPadding, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {ContextValue, Provider, SlotProps} from 'react-aria-components';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {fontRelative, style} from '../style' with {type: 'macro'};\nimport {IconContext} from './Icon';\nimport React, {createContext, forwardRef, ReactNode} from 'react';\nimport {SkeletonWrapper} from './Skeleton';\nimport {Text, TextContext} from './Content';\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface BadgeStyleProps {\n /**\n * The size of the badge.\n
|
|
1
|
+
{"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;;;AA0CM,MAAM,0DAAe,CAAA,GAAA,oBAAY,EAAkE;AAE1G,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiIN,SAAS,4BAAM,KAAiB,EAAE,GAA2B;IAC3D,CAAC,OAAO,IAAI,GAAG,CAAA,GAAA,yCAAsB,EAAE,OAAO,KAAK;IACnD,IAAI,YACF,QAAQ,WACR,UAAU,iBACV,OAAO,gBACP,YAAY,QACZ,GAAG,YACJ,GAAG,OAAO,gCAAgC;IAC3C,IAAI,SAAS,CAAA,GAAA,gBAAQ,EAAE;IACvB,IAAI,aAAa,CAAA,GAAA,YAAI,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,QAAQ,EAAE,KAAK,CAAC,CAAA,IAAK,eAAC,CAAA,GAAA,YAAI,EAAE,cAAc,CAAC;IAEzF,qBACE,gBAAC,CAAA,GAAA,eAAO;QACN,QAAQ;YACN;gBAAC,CAAA,GAAA,yCAAU;gBAAG;oBAAC,MAAM;gBAA+C;aAAE;YACtE;gBAAC,CAAA,GAAA,yCAAU;gBAAG;oBACZ,QAAQ,CAAA,GAAA,yCAAa,EAAE;wBAAC,MAAM;wBAAQ,MAAM;oBAAmB;oBAC/D,MAAM;gBACR;aAAE;SACH;kBACD,cAAA,gBAAC,CAAA,GAAA,yCAAc;sBACb,cAAA,gBAAC;gBACE,GAAG,CAAA,GAAA,qBAAa,EAAE,WAAW;gBAC9B,MAAK;gBACL,WAAW,AAAC,CAAA,MAAM,gBAAgB,IAAI,EAAC,IAAK,4BAAM;6BAAC;0BAAS;+BAAM;gBAAS,GAAG,MAAM,MAAM;gBAC1F,OAAO,MAAM,YAAY;gBACzB,KAAK;0BAEH,OAAO,aAAa,YAAY,2BAC5B,gBAAC,CAAA,GAAA,yCAAG;8BAAG;qBACP;;;;AAMhB;AAEA;;CAEC,GACD,IAAI,0DAAS,CAAA,GAAA,iBAAS,EAAE","sources":["packages/@react-spectrum/s2/src/Badge.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 {AriaLabelingProps, DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';\nimport {centerBaseline} from './CenterBaseline';\nimport {centerPadding, getAllowedOverrides, StyleProps} from './style-utils' with {type: 'macro'};\nimport {ContextValue, Provider, SlotProps} from 'react-aria-components';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {fontRelative, lightDark, style} from '../style' with {type: 'macro'};\nimport {IconContext} from './Icon';\nimport React, {createContext, forwardRef, ReactNode} from 'react';\nimport {SkeletonWrapper} from './Skeleton';\nimport {Text, TextContext} from './Content';\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface BadgeStyleProps {\n /**\n * The size of the badge.\n *\n * @default 'S'\n */\n size?: 'S' | 'M' | 'L' | 'XL',\n /**\n * The variant changes the background color of the badge. When badge has a semantic meaning, they should use the variant for semantic colors.\n *\n * @default 'neutral'\n */\n variant?: 'accent' | 'informative' | 'neutral' | 'positive' | 'notice' | 'negative' | 'gray' | 'red' | 'orange' | 'yellow' | 'charteuse' | 'celery' | 'green' | 'seafoam' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'fuchsia' | 'magenta' | 'pink' | 'turquoise' | 'brown' | 'cinnamon' | 'silver',\n /**\n * The fill of the badge.\n * @default 'bold'\n */\n fillStyle?: 'bold' | 'subtle' | 'outline'\n}\n\nexport interface BadgeProps extends DOMProps, AriaLabelingProps, StyleProps, BadgeStyleProps, SlotProps {\n /**\n * The content to display in the badge.\n */\n children: ReactNode\n}\n\nexport const BadgeContext = createContext<ContextValue<Partial<BadgeProps>, DOMRefValue<HTMLDivElement>>>(null);\n\nconst badge = style<BadgeStyleProps>({\n display: 'flex',\n font: 'control',\n justifyContent: 'center',\n alignItems: 'center',\n borderRadius: 'control',\n minHeight: 'control',\n paddingX: {\n default: 'edge-to-text',\n ':has([slot=icon]:only-child)': 0\n },\n '--labelPadding': {\n type: 'paddingTop',\n value: centerPadding()\n },\n aspectRatio: {\n ':has([slot=icon]:only-child)': 'square'\n },\n '--iconMargin': {\n type: 'marginTop',\n value: {\n default: fontRelative(-2),\n ':has([slot=icon]:only-child)': 0\n }\n },\n columnGap: 'text-to-visual',\n color: {\n fillStyle: {\n bold: {\n default: 'white',\n variant: {\n notice: 'black',\n orange: 'black',\n yellow: 'black',\n charteuse: 'black',\n celery: 'black'\n }\n },\n subtle: 'gray-1000',\n outline: 'gray-1000'\n }\n },\n backgroundColor: {\n fillStyle: {\n bold: {\n variant: {\n accent: 'accent',\n informative: 'informative',\n neutral: 'neutral-subdued',\n positive: 'positive',\n notice: 'notice',\n negative: 'negative',\n gray: 'gray',\n red: 'red',\n orange: 'orange',\n yellow: 'yellow',\n charteuse: 'chartreuse',\n celery: 'celery',\n green: 'green',\n seafoam: 'seafoam',\n cyan: 'cyan',\n blue: 'blue',\n indigo: 'indigo',\n purple: 'purple',\n fuchsia: 'fuchsia',\n magenta: 'magenta',\n pink: 'pink',\n turquoise: 'turquoise',\n brown: 'brown',\n cinnamon: 'cinnamon',\n silver: 'silver'\n }\n },\n subtle: {\n variant: {\n accent: 'accent-subtle',\n informative: 'informative-subtle',\n neutral: 'neutral-subtle',\n positive: 'positive-subtle',\n notice: 'notice-subtle',\n negative: 'negative-subtle',\n gray: 'gray-subtle',\n red: 'red-subtle',\n orange: 'orange-subtle',\n yellow: 'yellow-subtle',\n charteuse: 'chartreuse-subtle',\n celery: 'celery-subtle',\n green: 'green-subtle',\n seafoam: 'seafoam-subtle',\n cyan: 'cyan-subtle',\n blue: 'blue-subtle',\n indigo: 'indigo-subtle',\n purple: 'purple-subtle',\n fuchsia: 'fuchsia-subtle',\n magenta: 'magenta-subtle',\n pink: 'pink-subtle',\n turquoise: 'turquoise-subtle',\n brown: 'brown-subtle',\n cinnamon: 'cinnamon-subtle',\n silver: 'silver-subtle'\n }\n },\n outline: 'layer-2'\n }\n },\n borderStyle: 'solid',\n boxSizing: 'border-box',\n borderWidth: 2,\n borderColor: {\n default: 'transparent',\n fillStyle: {\n outline: {\n variant: {\n accent: lightDark('accent-800', 'accent-900'), // accent-visual-color\n informative: lightDark('informative-800', 'informative-900'), // informative-visual-color\n neutral: lightDark('gray-500', 'gray-600'), // neutral-visual-color\n positive: lightDark('positive-800', 'positive-900'), // positive-visual-color\n notice: lightDark('notice-800', 'notice-900'), // notice-visual-color\n negative: lightDark('negative-800', 'negative-900') // negative-visual-color\n }\n }\n }\n },\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n }\n}, getAllowedOverrides());\n\nfunction Badge(props: BadgeProps, ref: DOMRef<HTMLDivElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, BadgeContext);\n let {\n children,\n variant = 'neutral',\n size = 'S',\n fillStyle = 'bold',\n ...otherProps\n } = props; // useProviderProps(props) in v3\n let domRef = useDOMRef(ref);\n let isTextOnly = React.Children.toArray(props.children).every(c => !React.isValidElement(c));\n\n return (\n <Provider\n values={[\n [TextContext, {styles: style({paddingY: '--labelPadding', order: 1})}],\n [IconContext, {\n render: centerBaseline({slot: 'icon', styles: style({order: 0})}),\n styles: style({size: fontRelative(20), marginStart: '--iconMargin', flexShrink: 0})\n }]\n ]}>\n <SkeletonWrapper>\n <span\n {...filterDOMProps(otherProps)}\n role=\"presentation\"\n className={(props.UNSAFE_className || '') + badge({variant, size, fillStyle}, props.styles)}\n style={props.UNSAFE_style}\n ref={domRef}>\n {\n typeof children === 'string' || isTextOnly\n ? <Text>{children}</Text>\n : children\n }\n </span>\n </SkeletonWrapper>\n </Provider>\n );\n}\n\n/**\n * Badges are used for showing a small amount of color-categorized metadata, ideal for getting a user's attention.\n */\nlet _Badge = forwardRef(Badge);\nexport {_Badge as Badge};\n"],"names":[],"version":3,"file":"Badge.mjs.map"}
|
package/dist/Breadcrumbs.css
CHANGED
package/dist/Button.cjs
CHANGED
|
@@ -310,10 +310,10 @@ const $25d06cf8d4e72761$var$button = function anonymous(props, overrides) {
|
|
|
310
310
|
} else if (props.fillStyle === "fill") {
|
|
311
311
|
if (props.isDisabled) rules += ' bg';
|
|
312
312
|
else if (props.variant === "negative") {
|
|
313
|
-
if (props.isPressed) rules += '
|
|
314
|
-
else if (props.isFocusVisible) rules += '
|
|
315
|
-
else if (props.isHovered) rules += '
|
|
316
|
-
else rules += '
|
|
313
|
+
if (props.isPressed) rules += ' b_____L';
|
|
314
|
+
else if (props.isFocusVisible) rules += ' b_____L';
|
|
315
|
+
else if (props.isHovered) rules += ' b_____L';
|
|
316
|
+
else rules += ' b_____K';
|
|
317
317
|
} else if (props.variant === "accent") {
|
|
318
318
|
if (props.isPressed) rules += ' b_____F';
|
|
319
319
|
else if (props.isFocusVisible) rules += ' b_____F';
|
package/dist/Button.css
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.dx {
|
|
11
|
-
outline-color: var(--lightningcss-light, #4b75ff) var(--lightningcss-dark, #
|
|
11
|
+
outline-color: var(--lightningcss-light, #4b75ff) var(--lightningcss-dark, #4069fd);
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.dc {
|
|
@@ -295,19 +295,19 @@
|
|
|
295
295
|
}
|
|
296
296
|
|
|
297
297
|
.b_____E {
|
|
298
|
-
background-color: var(--lightningcss-light, #3b63fb) var(--lightningcss-dark, #
|
|
298
|
+
background-color: var(--lightningcss-light, #3b63fb) var(--lightningcss-dark, #4069fd);
|
|
299
299
|
}
|
|
300
300
|
|
|
301
301
|
.b_____F {
|
|
302
|
-
background-color: var(--lightningcss-light, #274dea) var(--lightningcss-dark, #
|
|
302
|
+
background-color: var(--lightningcss-light, #274dea) var(--lightningcss-dark, #345bf8);
|
|
303
303
|
}
|
|
304
304
|
|
|
305
|
-
.
|
|
306
|
-
background-color: var(--lightningcss-light, #d73220) var(--lightningcss-dark, #
|
|
305
|
+
.b_____K {
|
|
306
|
+
background-color: var(--lightningcss-light, #d73220) var(--lightningcss-dark, #df3422);
|
|
307
307
|
}
|
|
308
308
|
|
|
309
|
-
.
|
|
310
|
-
background-color: var(--lightningcss-light, #b72818) var(--lightningcss-dark, #
|
|
309
|
+
.b_____L {
|
|
310
|
+
background-color: var(--lightningcss-light, #b72818) var(--lightningcss-dark, #cd2e1d);
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
.bg {
|
package/dist/Button.mjs
CHANGED
|
@@ -301,10 +301,10 @@ const $067ea9f64ccd4e8e$var$button = function anonymous(props, overrides) {
|
|
|
301
301
|
} else if (props.fillStyle === "fill") {
|
|
302
302
|
if (props.isDisabled) rules += ' bg';
|
|
303
303
|
else if (props.variant === "negative") {
|
|
304
|
-
if (props.isPressed) rules += '
|
|
305
|
-
else if (props.isFocusVisible) rules += '
|
|
306
|
-
else if (props.isHovered) rules += '
|
|
307
|
-
else rules += '
|
|
304
|
+
if (props.isPressed) rules += ' b_____L';
|
|
305
|
+
else if (props.isFocusVisible) rules += ' b_____L';
|
|
306
|
+
else if (props.isHovered) rules += ' b_____L';
|
|
307
|
+
else rules += ' b_____K';
|
|
308
308
|
} else if (props.variant === "accent") {
|
|
309
309
|
if (props.isPressed) rules += ' b_____F';
|
|
310
310
|
else if (props.isFocusVisible) rules += ' b_____F';
|
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-______k';
|
|
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
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
flex-direction: column;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
|
-
.-_1de2x0q_b-
|
|
6
|
+
.-_1de2x0q_b-______k {
|
|
7
7
|
--s2-container-bg: var(--lightningcss-light, #fff) var(--lightningcss-dark, #222);
|
|
8
8
|
}
|
|
9
9
|
|
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
}
|
|
253
253
|
|
|
254
254
|
.dx {
|
|
255
|
-
outline-color: var(--lightningcss-light, #4b75ff) var(--lightningcss-dark, #
|
|
255
|
+
outline-color: var(--lightningcss-light, #4b75ff) var(--lightningcss-dark, #4069fd);
|
|
256
256
|
}
|
|
257
257
|
|
|
258
258
|
._M-3t1z {
|
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-______k';
|
|
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/CardView.css
CHANGED
package/dist/Checkbox.cjs
CHANGED
|
@@ -198,7 +198,7 @@ const $af04e099a53d3e85$export$827f4ee28efc37 = function anonymous(props) {
|
|
|
198
198
|
}
|
|
199
199
|
return rules;
|
|
200
200
|
};
|
|
201
|
-
const $af04e099a53d3e85$export$2c99b98b77550cb4 = " . -rwx0fg_e-
|
|
201
|
+
const $af04e099a53d3e85$export$2c99b98b77550cb4 = " . -rwx0fg_e-B -rwx0fg_e-a_____Y";
|
|
202
202
|
const $af04e099a53d3e85$var$iconSize = {
|
|
203
203
|
S: 'XS',
|
|
204
204
|
M: 'S',
|
package/dist/Checkbox.css
CHANGED
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
.dx {
|
|
81
|
-
outline-color: var(--lightningcss-light, #4b75ff) var(--lightningcss-dark, #
|
|
81
|
+
outline-color: var(--lightningcss-light, #4b75ff) var(--lightningcss-dark, #4069fd);
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
._Nc {
|
|
@@ -253,7 +253,7 @@
|
|
|
253
253
|
border-color: #0000;
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
.-rwx0fg_e-
|
|
256
|
+
.-rwx0fg_e-B {
|
|
257
257
|
--iconPrimary: var(--lightningcss-light, #fff) var(--lightningcss-dark, #111);
|
|
258
258
|
}
|
|
259
259
|
}
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
border-color: graytext;
|
|
401
401
|
}
|
|
402
402
|
|
|
403
|
-
.-rwx0fg_e-
|
|
403
|
+
.-rwx0fg_e-a_____Y {
|
|
404
404
|
--iconPrimary: HighlightText;
|
|
405
405
|
}
|
|
406
406
|
}
|
package/dist/Checkbox.mjs
CHANGED
|
@@ -189,7 +189,7 @@ const $9b405e0f8095dce0$export$827f4ee28efc37 = function anonymous(props) {
|
|
|
189
189
|
}
|
|
190
190
|
return rules;
|
|
191
191
|
};
|
|
192
|
-
const $9b405e0f8095dce0$export$2c99b98b77550cb4 = " . -rwx0fg_e-
|
|
192
|
+
const $9b405e0f8095dce0$export$2c99b98b77550cb4 = " . -rwx0fg_e-B -rwx0fg_e-a_____Y";
|
|
193
193
|
const $9b405e0f8095dce0$var$iconSize = {
|
|
194
194
|
S: 'XS',
|
|
195
195
|
M: 'S',
|
package/dist/CloseButton.css
CHANGED
package/dist/ColorHandle.cjs
CHANGED
|
@@ -190,7 +190,7 @@ function $5b07976eb9e358fe$var$ColorLoupe({ isExiting: isExiting, onExited: onEx
|
|
|
190
190
|
fill: color.toString()
|
|
191
191
|
}),
|
|
192
192
|
/*#__PURE__*/ (0, $8hzuN$reactjsxruntime.jsx)("path", {
|
|
193
|
-
className: " . xb f_____n fa_____x
|
|
193
|
+
className: " . xb f_____n fa_____x eA",
|
|
194
194
|
d: "M25 3A21.98 21.98 0 003 25c0 6.2 4 14.794 11.568 24.853A144.233 144.233 0 0025 62.132a144.085 144.085 0 0010.4-12.239C42.99 39.816 47 31.209 47 25A21.98 21.98 0 0025 3m0-2a24 24 0 0124 24c0 16.255-24 40-24 40S1 41.255 1 25A24 24 0 0125 1z"
|
|
195
195
|
})
|
|
196
196
|
]
|
package/dist/ColorHandle.css
CHANGED
package/dist/ColorHandle.mjs
CHANGED
|
@@ -184,7 +184,7 @@ function $b4f7db7c45cd3de9$var$ColorLoupe({ isExiting: isExiting, onExited: onEx
|
|
|
184
184
|
fill: color.toString()
|
|
185
185
|
}),
|
|
186
186
|
/*#__PURE__*/ (0, $kShzN$jsx)("path", {
|
|
187
|
-
className: " . xb f_____n fa_____x
|
|
187
|
+
className: " . xb f_____n fa_____x eA",
|
|
188
188
|
d: "M25 3A21.98 21.98 0 003 25c0 6.2 4 14.794 11.568 24.853A144.233 144.233 0 0025 62.132a144.085 144.085 0 0010.4-12.239C42.99 39.816 47 31.209 47 25A21.98 21.98 0 0025 3m0-2a24 24 0 0124 24c0 16.255-24 40-24 40S1 41.255 1 25A24 24 0 0125 1z"
|
|
189
189
|
})
|
|
190
190
|
]
|
package/dist/ContextualHelp.cjs
CHANGED
|
@@ -96,7 +96,7 @@ function $bab829476f85a155$var$ContextualHelp(props, ref) {
|
|
|
96
96
|
[
|
|
97
97
|
(0, $6367bc87eb7d24ad$exports.HeadingContext),
|
|
98
98
|
{
|
|
99
|
-
styles: " . _ca _c-enzrfpb _c-enzwzjc _c-enzykdd _c-enzzrge _c-eo0c6sf _c-1uotwbwg _c-bc1l9oh
|
|
99
|
+
styles: " . _ca _c-enzrfpb _c-enzwzjc _c-enzykdd _c-enzzrge _c-eo0c6sf _c-1uotwbwg _c-bc1l9oh _di _dbj _ee _e-1x99dloe _fa _f-1x99dlob ao Aa B-y6pz8c Bb-8hx8xw ya za"
|
|
100
100
|
}
|
|
101
101
|
],
|
|
102
102
|
[
|
package/dist/ContextualHelp.css
CHANGED
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
border-end-end-radius: 0;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
.
|
|
43
|
-
font-size:
|
|
42
|
+
._di {
|
|
43
|
+
font-size: 1.125rem;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
.
|
|
47
|
-
font-variation-settings: "wght"
|
|
46
|
+
._ee {
|
|
47
|
+
font-variation-settings: "wght" 800;
|
|
48
48
|
font-synthesis-weight: none;
|
|
49
|
-
font-weight:
|
|
49
|
+
font-weight: 800;
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
._fa {
|
|
@@ -160,8 +160,8 @@
|
|
|
160
160
|
|
|
161
161
|
@layer _.b.b {
|
|
162
162
|
@media not ((hover: hover) and (pointer: fine)) {
|
|
163
|
-
.
|
|
164
|
-
font-size: 1.
|
|
163
|
+
._dbj {
|
|
164
|
+
font-size: 1.375rem;
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
.Bb-8hx8xw {
|
package/dist/ContextualHelp.mjs
CHANGED
|
@@ -89,7 +89,7 @@ function $8e176595bc49ca3f$var$ContextualHelp(props, ref) {
|
|
|
89
89
|
[
|
|
90
90
|
(0, $8e847109a6ab556d$export$d688439359537581),
|
|
91
91
|
{
|
|
92
|
-
styles: " . _ca _c-enzrfpb _c-enzwzjc _c-enzykdd _c-enzzrge _c-eo0c6sf _c-1uotwbwg _c-bc1l9oh
|
|
92
|
+
styles: " . _ca _c-enzrfpb _c-enzwzjc _c-enzykdd _c-enzzrge _c-eo0c6sf _c-1uotwbwg _c-bc1l9oh _di _dbj _ee _e-1x99dloe _fa _f-1x99dlob ao Aa B-y6pz8c Bb-8hx8xw ya za"
|
|
93
93
|
}
|
|
94
94
|
],
|
|
95
95
|
[
|
package/dist/Dialog.cjs
CHANGED
|
@@ -47,7 +47,7 @@ $parcel$export(module.exports, "dialogInner", () => $0f4636c7093b9233$export$6af
|
|
|
47
47
|
|
|
48
48
|
|
|
49
49
|
const $0f4636c7093b9233$var$image = " . l4 k-37m3s2 __Nb";
|
|
50
|
-
const $0f4636c7093b9233$var$heading = " . _9-3t1y Aa Ba _ca _c-enzrfpb _c-enzwzjc _c-enzykdd _c-enzzrge _c-eo0c6sf _c-1uotwbwg _c-bc1l9oh _dj _dbm
|
|
50
|
+
const $0f4636c7093b9233$var$heading = " . _9-3t1y Aa Ba _ca _c-enzrfpb _c-enzwzjc _c-enzykdd _c-enzzrge _c-eo0c6sf _c-1uotwbwg _c-bc1l9oh _dj _dbm _ee _e-1x99dloe _fa _f-1x99dlob ao";
|
|
51
51
|
const $0f4636c7093b9233$var$header = " . _ca _c-enzrfpb _c-enzwzjc _c-enzykdd _c-enzzrge _c-eo0c6sf _c-1uotwbwg _c-bc1l9oh _di _dbj _eb _fb _f-1x99dloc an";
|
|
52
52
|
const $0f4636c7093b9233$var$content = function anonymous(props) {
|
|
53
53
|
let rules = " .";
|
package/dist/Dialog.css
CHANGED
package/dist/Dialog.mjs
CHANGED
|
@@ -39,7 +39,7 @@ function $parcel$interopDefault(a) {
|
|
|
39
39
|
|
|
40
40
|
|
|
41
41
|
const $9bbc115952dac5a6$var$image = " . l4 k-37m3s2 __Nb";
|
|
42
|
-
const $9bbc115952dac5a6$var$heading = " . _9-3t1y Aa Ba _ca _c-enzrfpb _c-enzwzjc _c-enzykdd _c-enzzrge _c-eo0c6sf _c-1uotwbwg _c-bc1l9oh _dj _dbm
|
|
42
|
+
const $9bbc115952dac5a6$var$heading = " . _9-3t1y Aa Ba _ca _c-enzrfpb _c-enzwzjc _c-enzykdd _c-enzzrge _c-eo0c6sf _c-1uotwbwg _c-bc1l9oh _dj _dbm _ee _e-1x99dloe _fa _f-1x99dlob ao";
|
|
43
43
|
const $9bbc115952dac5a6$var$header = " . _ca _c-enzrfpb _c-enzwzjc _c-enzykdd _c-enzzrge _c-eo0c6sf _c-1uotwbwg _c-bc1l9oh _di _dbj _eb _fb _f-1x99dloc an";
|
|
44
44
|
const $9bbc115952dac5a6$var$content = function anonymous(props) {
|
|
45
45
|
let rules = " .";
|
package/dist/Disclosure.cjs
CHANGED
|
@@ -111,11 +111,11 @@ const $4e301a98f0cc4e4f$var$buttonStyles = function anonymous(props) {
|
|
|
111
111
|
rules += ' _dbm';
|
|
112
112
|
rules += ' _dj';
|
|
113
113
|
} else if (props.size === "M") {
|
|
114
|
+
rules += ' _dbl';
|
|
115
|
+
rules += ' _dk';
|
|
116
|
+
} else if (props.size === "S") {
|
|
114
117
|
rules += ' _dbj';
|
|
115
118
|
rules += ' _di';
|
|
116
|
-
} else if (props.size === "S") {
|
|
117
|
-
rules += ' _dbh';
|
|
118
|
-
rules += ' _dg';
|
|
119
119
|
}
|
|
120
120
|
rules += ' _ed';
|
|
121
121
|
rules += ' _f-1x99dlob';
|
package/dist/Disclosure.css
CHANGED
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
.dx {
|
|
51
|
-
outline-color: var(--lightningcss-light, #4b75ff) var(--lightningcss-dark, #
|
|
51
|
+
outline-color: var(--lightningcss-light, #4b75ff) var(--lightningcss-dark, #4069fd);
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
._Nc {
|
|
@@ -63,6 +63,10 @@
|
|
|
63
63
|
font-size: 1.125rem;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
._dk {
|
|
67
|
+
font-size: 1.25rem;
|
|
68
|
+
}
|
|
69
|
+
|
|
66
70
|
._dj {
|
|
67
71
|
font-size: 1.375rem;
|
|
68
72
|
}
|
|
@@ -350,6 +354,10 @@
|
|
|
350
354
|
font-size: 1.375rem;
|
|
351
355
|
}
|
|
352
356
|
|
|
357
|
+
._dbl {
|
|
358
|
+
font-size: 1.5rem;
|
|
359
|
+
}
|
|
360
|
+
|
|
353
361
|
._dbm {
|
|
354
362
|
font-size: 1.6875rem;
|
|
355
363
|
}
|
package/dist/Disclosure.css.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":"AC0CmB;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EA+DE;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAIA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EA2EC;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAqDF;;;;EAAA;;;;EAAA;;;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;AAnMD;EAAA;;;;EAAA;;;;EAmEE;;;;EAgID;;;;EAAA;;;;;AAnMD;;AAAA;EAAA;IAAA;;;;IAmEE;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAgID;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;;;AAhIC;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;IAAA;;;;;;AA2EC","sources":["af82a6f8008c749b","packages/@react-spectrum/s2/src/Disclosure.tsx"],"sourcesContent":["@import \"02b9b02b69a441b2\";\n@import \"80d1cf6aba9342e9\";\n@import \"d47c144c912b2c65\";\n@import \"54c3947845455457\";\n@import \"47e48706d70658de\";\n","/*\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 {AriaLabelingProps, DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';\nimport {Button, ContextValue, DisclosureStateContext, Heading, Provider, UNSTABLE_Disclosure as RACDisclosure, UNSTABLE_DisclosurePanel as RACDisclosurePanel, DisclosurePanelProps as RACDisclosurePanelProps, DisclosureProps as RACDisclosureProps, useLocale, useSlottedContext} from 'react-aria-components';\nimport {CenterBaseline} from './CenterBaseline';\nimport {centerPadding, getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with { type: 'macro' };\nimport Chevron from '../ui-icons/Chevron';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {focusRing, lightDark, size as sizeValue, style} from '../style' with { type: 'macro' };\nimport React, {createContext, forwardRef, ReactNode, useContext} from 'react';\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface DisclosureProps extends Omit<RACDisclosureProps, 'className' | 'style' | 'children'>, StyleProps {\n /**\n * The size of the disclosure.\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL',\n /**\n * The amount of space between the disclosures.\n * @default 'regular'\n */\n density?: 'compact' | 'regular' | 'spacious',\n /** Whether the disclosure should be displayed with a quiet style. */\n isQuiet?: boolean,\n /** The contents of the disclosure, consisting of an DisclosureHeader and DisclosurePanel. */\n children: ReactNode\n}\n\nexport const DisclosureContext = createContext<ContextValue<Omit<DisclosureProps, 'children'>, DOMRefValue<HTMLDivElement>>>(null);\n\nconst disclosure = style({\n color: 'heading',\n borderTopWidth: {\n default: 1,\n isQuiet: 0\n },\n borderBottomWidth: {\n default: 0,\n ':last-child': {\n default: 1,\n isQuiet: 0\n }\n },\n borderStartWidth: 0,\n borderEndWidth: 0,\n borderStyle: 'solid',\n borderColor: 'gray-200',\n minWidth: sizeValue(200)\n}, getAllowedOverrides());\n\nfunction Disclosure(props: DisclosureProps, ref: DOMRef<HTMLDivElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, DisclosureContext);\n let {\n size = 'M',\n density = 'regular',\n isQuiet,\n UNSAFE_style,\n UNSAFE_className = ''\n } = props;\n let domRef = useDOMRef(ref);\n\n return (\n <Provider\n values={[\n [DisclosureContext, {size, isQuiet, density}]\n ]}>\n <RACDisclosure\n {...props}\n ref={domRef}\n style={UNSAFE_style}\n className={(UNSAFE_className ?? '') + disclosure({isQuiet}, props.styles)}>\n {props.children}\n </RACDisclosure>\n </Provider>\n );\n}\n\n/**\n * A disclosure is a collapsible section of content. It is composed of a a header with a heading and trigger button, and a panel that contains the content.\n */\nlet _Disclosure = forwardRef(Disclosure);\nexport {_Disclosure as Disclosure};\n\nexport interface DisclosureHeaderProps extends UnsafeStyles, DOMProps {\n /** The heading level of the disclosure header.\n * \n * @default 3\n */\n level?: number,\n /** The contents of the disclosure header. */\n children: React.ReactNode\n}\n\nconst headingStyle = style({\n margin: 0\n});\n\nconst buttonStyles = style({\n ...focusRing(),\n outlineOffset: -2,\n font: 'heading',\n color: {\n default: 'neutral',\n isDisabled: 'disabled'\n },\n fontWeight: 'bold',\n fontSize: {\n size: {\n S: 'heading-xs',\n M: 'heading-sm',\n L: 'heading',\n XL: 'heading-lg'\n }\n },\n lineHeight: 'ui',\n display: 'flex',\n alignItems: 'baseline',\n paddingX: '[calc(self(minHeight) * 3/8 - 1px)]',\n paddingY: centerPadding(),\n gap: '[calc(self(minHeight) * 3/8 - 1px)]',\n minHeight: {\n // compact is equivalent to 'control', but other densities have more padding.\n size: {\n S: {\n density: {\n compact: 24,\n regular: 32,\n spacious: 40\n }\n },\n M: {\n density: {\n compact: 32,\n regular: 40,\n spacious: 48\n }\n },\n L: {\n density: {\n compact: 40,\n regular: 48,\n spacious: 56\n }\n },\n XL: {\n density: {\n compact: 48,\n regular: 56,\n spacious: 64\n }\n }\n }\n },\n width: 'full',\n backgroundColor: {\n default: 'transparent',\n isFocusVisible: lightDark('transparent-black-100', 'transparent-white-100'),\n isHovered: lightDark('transparent-black-100', 'transparent-white-100'),\n isPressed: lightDark('transparent-black-100', 'transparent-white-100')\n },\n transition: 'default',\n borderWidth: 0,\n borderRadius: {\n // Only rounded for keyboard focus and quiet.\n default: 'none',\n isFocusVisible: 'control',\n isQuiet: 'control'\n },\n textAlign: 'start',\n disableTapHighlight: true\n});\n\nconst chevronStyles = style({\n rotate: {\n isRTL: 180,\n isExpanded: 90\n },\n transition: 'default',\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n },\n flexShrink: 0\n});\n\nfunction DisclosureHeader(props: DisclosureHeaderProps, ref: DOMRef<HTMLDivElement>) {\n let {\n level = 3,\n UNSAFE_style,\n UNSAFE_className = '',\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n const domProps = filterDOMProps(otherProps);\n let {direction} = useLocale();\n let {isExpanded} = useContext(DisclosureStateContext)!;\n let {size, density, isQuiet} = useSlottedContext(DisclosureContext)!;\n let isRTL = direction === 'rtl';\n return (\n <Heading\n {...domProps}\n level={level}\n ref={domRef}\n style={UNSAFE_style}\n className={(UNSAFE_className ?? '') + headingStyle}>\n <Button className={(renderProps) => buttonStyles({...renderProps, size, density, isQuiet})} slot=\"trigger\">\n <CenterBaseline>\n <Chevron size={size} className={chevronStyles({isExpanded, isRTL})} aria-hidden=\"true\" />\n </CenterBaseline>\n {props.children}\n </Button>\n </Heading>\n );\n}\n\n/**\n * A header for a disclosure. Contains a heading and a trigger button to expand/collapse the panel.\n */\nlet _DisclosureHeader = forwardRef(DisclosureHeader);\nexport {_DisclosureHeader as DisclosureHeader};\n\nexport interface DisclosurePanelProps extends Omit<RACDisclosurePanelProps, 'className' | 'style' | 'children'>, UnsafeStyles, DOMProps, AriaLabelingProps {\n children: React.ReactNode\n}\n\nconst panelStyles = style({\n font: 'body',\n paddingTop: {\n isExpanded: 8\n },\n paddingBottom: {\n isExpanded: 16\n },\n paddingX: {\n isExpanded: {\n size: {\n S: 8,\n M: sizeValue(9),\n L: 12,\n XL: sizeValue(15)\n }\n }\n }\n});\n\nfunction DisclosurePanel(props: DisclosurePanelProps, ref: DOMRef<HTMLDivElement>) {\n let {\n UNSAFE_style,\n UNSAFE_className = '',\n ...otherProps\n } = props;\n const domProps = filterDOMProps(otherProps);\n let {size} = useSlottedContext(DisclosureContext)!;\n let {isExpanded} = useContext(DisclosureStateContext)!;\n let panelRef = useDOMRef(ref);\n return (\n <RACDisclosurePanel\n {...domProps}\n ref={panelRef}\n style={UNSAFE_style}\n className={(UNSAFE_className ?? '') + panelStyles({size, isExpanded})}>\n {props.children}\n </RACDisclosurePanel>\n );\n}\n\n/**\n * A disclosure panel is a collapsible section of content that is hidden until the disclosure is expanded.\n */\nlet _DisclosurePanel = forwardRef(DisclosurePanel);\nexport {_DisclosurePanel as DisclosurePanel};\n\n"],"names":[],"version":3,"file":"Disclosure.css.map"}
|
|
1
|
+
{"mappings":"AC0CmB;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EA+DE;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAIA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EA2EC;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAqDF;;;;EAAA;;;;EAAA;;;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;EAAA;;;;;AAnMD;EAAA;;;;EAAA;;;;EAmEE;;;;EAgID;;;;EAAA;;;;;AAnMD;;AAAA;EAAA;IAAA;;;;IAmEE;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAgID;;;;IAAA;;;;IAAA;;;;IAAA;;;;IAAA;;;;;;AAhIC;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;;;;;AAAA;EAAA;IAAA;;;;;;AA2EC","sources":["af82a6f8008c749b","packages/@react-spectrum/s2/src/Disclosure.tsx"],"sourcesContent":["@import \"02b9b02b69a441b2\";\n@import \"80d1cf6aba9342e9\";\n@import \"d47c144c912b2c65\";\n@import \"54c3947845455457\";\n@import \"47e48706d70658de\";\n","/*\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 {AriaLabelingProps, DOMProps, DOMRef, DOMRefValue} from '@react-types/shared';\nimport {Button, ContextValue, DisclosureStateContext, Heading, Provider, UNSTABLE_Disclosure as RACDisclosure, UNSTABLE_DisclosurePanel as RACDisclosurePanel, DisclosurePanelProps as RACDisclosurePanelProps, DisclosureProps as RACDisclosureProps, useLocale, useSlottedContext} from 'react-aria-components';\nimport {CenterBaseline} from './CenterBaseline';\nimport {centerPadding, getAllowedOverrides, StyleProps, UnsafeStyles} from './style-utils' with { type: 'macro' };\nimport Chevron from '../ui-icons/Chevron';\nimport {filterDOMProps} from '@react-aria/utils';\nimport {focusRing, lightDark, size as sizeValue, style} from '../style' with { type: 'macro' };\nimport React, {createContext, forwardRef, ReactNode, useContext} from 'react';\nimport {useDOMRef} from '@react-spectrum/utils';\nimport {useSpectrumContextProps} from './useSpectrumContextProps';\n\nexport interface DisclosureProps extends Omit<RACDisclosureProps, 'className' | 'style' | 'children'>, StyleProps {\n /**\n * The size of the disclosure.\n * @default 'M'\n */\n size?: 'S' | 'M' | 'L' | 'XL',\n /**\n * The amount of space between the disclosures.\n * @default 'regular'\n */\n density?: 'compact' | 'regular' | 'spacious',\n /** Whether the disclosure should be displayed with a quiet style. */\n isQuiet?: boolean,\n /** The contents of the disclosure, consisting of an DisclosureHeader and DisclosurePanel. */\n children: ReactNode\n}\n\nexport const DisclosureContext = createContext<ContextValue<Omit<DisclosureProps, 'children'>, DOMRefValue<HTMLDivElement>>>(null);\n\nconst disclosure = style({\n color: 'heading',\n borderTopWidth: {\n default: 1,\n isQuiet: 0\n },\n borderBottomWidth: {\n default: 0,\n ':last-child': {\n default: 1,\n isQuiet: 0\n }\n },\n borderStartWidth: 0,\n borderEndWidth: 0,\n borderStyle: 'solid',\n borderColor: 'gray-200',\n minWidth: sizeValue(200)\n}, getAllowedOverrides());\n\nfunction Disclosure(props: DisclosureProps, ref: DOMRef<HTMLDivElement>) {\n [props, ref] = useSpectrumContextProps(props, ref, DisclosureContext);\n let {\n size = 'M',\n density = 'regular',\n isQuiet,\n UNSAFE_style,\n UNSAFE_className = ''\n } = props;\n let domRef = useDOMRef(ref);\n\n return (\n <Provider\n values={[\n [DisclosureContext, {size, isQuiet, density}]\n ]}>\n <RACDisclosure\n {...props}\n ref={domRef}\n style={UNSAFE_style}\n className={(UNSAFE_className ?? '') + disclosure({isQuiet}, props.styles)}>\n {props.children}\n </RACDisclosure>\n </Provider>\n );\n}\n\n/**\n * A disclosure is a collapsible section of content. It is composed of a a header with a heading and trigger button, and a panel that contains the content.\n */\nlet _Disclosure = forwardRef(Disclosure);\nexport {_Disclosure as Disclosure};\n\nexport interface DisclosureHeaderProps extends UnsafeStyles, DOMProps {\n /** The heading level of the disclosure header.\n * \n * @default 3\n */\n level?: number,\n /** The contents of the disclosure header. */\n children: React.ReactNode\n}\n\nconst headingStyle = style({\n margin: 0\n});\n\nconst buttonStyles = style({\n ...focusRing(),\n outlineOffset: -2,\n font: 'heading',\n color: {\n default: 'neutral',\n isDisabled: 'disabled'\n },\n fontWeight: 'bold',\n fontSize: {\n size: {\n S: 'heading-xs',\n M: 'heading-sm',\n L: 'heading',\n XL: 'heading-lg'\n }\n },\n lineHeight: 'ui',\n display: 'flex',\n alignItems: 'baseline',\n paddingX: '[calc(self(minHeight) * 3/8 - 1px)]',\n paddingY: centerPadding(),\n gap: '[calc(self(minHeight) * 3/8 - 1px)]',\n minHeight: {\n // compact is equivalent to 'control', but other densities have more padding.\n size: {\n S: {\n density: {\n compact: 24,\n regular: 32,\n spacious: 40\n }\n },\n M: {\n density: {\n compact: 32,\n regular: 40,\n spacious: 48\n }\n },\n L: {\n density: {\n compact: 40,\n regular: 48,\n spacious: 56\n }\n },\n XL: {\n density: {\n compact: 48,\n regular: 56,\n spacious: 64\n }\n }\n }\n },\n width: 'full',\n backgroundColor: {\n default: 'transparent',\n isFocusVisible: lightDark('transparent-black-100', 'transparent-white-100'),\n isHovered: lightDark('transparent-black-100', 'transparent-white-100'),\n isPressed: lightDark('transparent-black-100', 'transparent-white-100')\n },\n transition: 'default',\n borderWidth: 0,\n borderRadius: {\n // Only rounded for keyboard focus and quiet.\n default: 'none',\n isFocusVisible: 'control',\n isQuiet: 'control'\n },\n textAlign: 'start',\n disableTapHighlight: true\n});\n\nconst chevronStyles = style({\n rotate: {\n isRTL: 180,\n isExpanded: 90\n },\n transition: 'default',\n '--iconPrimary': {\n type: 'fill',\n value: 'currentColor'\n },\n flexShrink: 0\n});\n\nfunction DisclosureHeader(props: DisclosureHeaderProps, ref: DOMRef<HTMLDivElement>) {\n let {\n level = 3,\n UNSAFE_style,\n UNSAFE_className = '',\n ...otherProps\n } = props;\n let domRef = useDOMRef(ref);\n const domProps = filterDOMProps(otherProps);\n let {direction} = useLocale();\n let {isExpanded} = useContext(DisclosureStateContext)!;\n let {size, density, isQuiet} = useSlottedContext(DisclosureContext)!;\n let isRTL = direction === 'rtl';\n return (\n <Heading\n {...domProps}\n level={level}\n ref={domRef}\n style={UNSAFE_style}\n className={(UNSAFE_className ?? '') + headingStyle}>\n <Button className={(renderProps) => buttonStyles({...renderProps, size, density, isQuiet})} slot=\"trigger\">\n <CenterBaseline>\n <Chevron size={size} className={chevronStyles({isExpanded, isRTL})} aria-hidden=\"true\" />\n </CenterBaseline>\n {props.children}\n </Button>\n </Heading>\n );\n}\n\n/**\n * A header for a disclosure. Contains a heading and a trigger button to expand/collapse the panel.\n */\nlet _DisclosureHeader = forwardRef(DisclosureHeader);\nexport {_DisclosureHeader as DisclosureHeader};\n\nexport interface DisclosurePanelProps extends Omit<RACDisclosurePanelProps, 'className' | 'style' | 'children'>, UnsafeStyles, DOMProps, AriaLabelingProps {\n children: React.ReactNode\n}\n\nconst panelStyles = style({\n font: 'body',\n paddingTop: {\n isExpanded: 8\n },\n paddingBottom: {\n isExpanded: 16\n },\n paddingX: {\n isExpanded: {\n size: {\n S: 8,\n M: sizeValue(9),\n L: 12,\n XL: sizeValue(15)\n }\n }\n }\n});\n\nfunction DisclosurePanel(props: DisclosurePanelProps, ref: DOMRef<HTMLDivElement>) {\n let {\n UNSAFE_style,\n UNSAFE_className = '',\n ...otherProps\n } = props;\n const domProps = filterDOMProps(otherProps);\n let {size} = useSlottedContext(DisclosureContext)!;\n let {isExpanded} = useContext(DisclosureStateContext)!;\n let panelRef = useDOMRef(ref);\n return (\n <RACDisclosurePanel\n {...domProps}\n ref={panelRef}\n style={UNSAFE_style}\n className={(UNSAFE_className ?? '') + panelStyles({size, isExpanded})}>\n {props.children}\n </RACDisclosurePanel>\n );\n}\n\n/**\n * A disclosure panel is a collapsible section of content that is hidden until the disclosure is expanded.\n */\nlet _DisclosurePanel = forwardRef(DisclosurePanel);\nexport {_DisclosurePanel as DisclosurePanel};\n\n"],"names":[],"version":3,"file":"Disclosure.css.map"}
|