@react-spectrum/style-macro-s1 3.0.0-nightly-5334df7f1-250226 → 3.0.0-nightly-f90f4899f-250227
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/index.js.map +1 -1
- package/package.json +1 -1
- package/src/index.ts +1 -1
- package/src/spectrum-theme.ts +10 -0
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"mappings":";AAAA;;;;;;;;;;CAUC","sources":["packages/@react-spectrum/style-macro-s1/src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {style, baseColor, lightDark} from './spectrum-theme';\nexport {raw, keyframes} from './style-macro';\n"],"names":[],"version":3,"file":"index.js.map"}
|
|
1
|
+
{"mappings":";AAAA;;;;;;;;;;CAUC","sources":["packages/@react-spectrum/style-macro-s1/src/index.ts"],"sourcesContent":["/*\n * Copyright 2024 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nexport {style, baseColor, lightDark, focusRing} from './spectrum-theme';\nexport {raw, keyframes} from './style-macro';\n"],"names":[],"version":3,"file":"index.js.map"}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
package/src/spectrum-theme.ts
CHANGED
|
@@ -432,6 +432,16 @@ let durationProperty = createArbitraryProperty((value: number | string, property
|
|
|
432
432
|
|
|
433
433
|
const colorWithAlpha = createColorProperty(color);
|
|
434
434
|
|
|
435
|
+
export const focusRing = () => ({
|
|
436
|
+
outlineStyle: {
|
|
437
|
+
default: 'none',
|
|
438
|
+
isFocusVisible: 'solid'
|
|
439
|
+
},
|
|
440
|
+
outlineColor: 'focus-ring',
|
|
441
|
+
outlineWidth: 2,
|
|
442
|
+
outlineOffset: 2
|
|
443
|
+
} as const);
|
|
444
|
+
|
|
435
445
|
export const style = createTheme({
|
|
436
446
|
properties: {
|
|
437
447
|
// colors
|