@sanity/ui 5.0.0-alpha.15 → 5.0.0-alpha.17
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.d.ts +103 -22
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +366 -103
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/package.json +1 -1
- package/src/components/avatar/Avatar.tsx +50 -0
- package/src/components/avatar/avatar.css +51 -0
- package/src/components/avatar/avatar.props.ts +57 -0
- package/src/components/avatar-counter/AvatarCounter.tsx +38 -0
- package/src/components/avatar-counter/avatar-counter.css +8 -0
- package/src/components/avatar-counter/avatarCounter.props.ts +44 -0
- package/src/components/avatar-stack/AvatarStack.tsx +60 -0
- package/src/components/avatar-stack/avatar-stack.css +16 -0
- package/src/components/avatar-stack/avatarStack.props.ts +20 -0
- package/src/components/button/Button.tsx +7 -1
- package/src/components/button/button.css +37 -25
- package/src/components/card/Card.tsx +1 -1
- package/src/components/card/card.props.ts +4 -3
- package/src/components/checkbox/Checkbox.tsx +3 -3
- package/src/components/checkbox/checkbox.props.ts +2 -2
- package/src/components/hotkeys/Hotkeys.tsx +29 -0
- package/src/components/hotkeys/hotkeys.css +3 -0
- package/src/components/hotkeys/hotkeys.props.ts +15 -0
- package/src/components/index.css +6 -0
- package/src/components/indicator/indicator.css +1 -1
- package/src/components/kbd/KBD.tsx +33 -0
- package/src/components/kbd/kbd.css +6 -0
- package/src/components/kbd/kbd.props.ts +20 -0
- package/src/components/radio/Radio.tsx +3 -3
- package/src/components/radio/radio.props.ts +2 -2
- package/src/components/select/select.props.ts +1 -0
- package/src/components/spinner/Spinner.tsx +1 -0
- package/src/components/switch/Switch.tsx +3 -3
- package/src/components/switch/switch.props.ts +2 -2
- package/src/components/text-area/TextArea.tsx +32 -0
- package/src/components/text-area/text-area.css +56 -0
- package/src/components/text-area/textArea.props.ts +35 -0
- package/src/components/text-input/TextInput.tsx +1 -1
- package/src/components/text-input/text-input.css +9 -3
- package/src/components/text-input/textInput.props.ts +1 -0
- package/src/css/classes/dynamic/height.css +2 -0
- package/src/css/classes/local/field-sizing.css +3 -0
- package/src/css/classes/local/index.css +1 -1
- package/src/css/tokens/semantic.css +2 -5
- package/src/css/tokens/surface.css +76 -12
- package/src/index.ts +7 -1
- package/src/props/layout.ts +3 -3
- package/src/props/tone.ts +13 -2
- package/src/types/Avatar.ts +14 -0
- package/src/types/Eyebrow.ts +1 -1
- package/src/types/Tone.ts +2 -0
- package/src/version.ts +2 -2
- package/src/css/classes/local/tone.css +0 -75
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
[class*='sui-tone'] {
|
|
2
|
-
/* All .sui-tone classes use white and black for tone-0/-1000 */
|
|
3
|
-
--tone-0: light-dark(var(--white), var(--black));
|
|
4
|
-
--tone-1000: light-dark(var(--black), var(--white));
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.sui-tone-neutral {
|
|
8
|
-
--tone-50: light-dark(var(--gray-50), var(--gray-950));
|
|
9
|
-
--tone-100: light-dark(var(--gray-100), var(--gray-900));
|
|
10
|
-
--tone-200: light-dark(var(--gray-200), var(--gray-800));
|
|
11
|
-
--tone-300: light-dark(var(--gray-300), var(--gray-700));
|
|
12
|
-
--tone-400: light-dark(var(--gray-400), var(--gray-600));
|
|
13
|
-
--tone-500: light-dark(var(--gray-500), var(--gray-500));
|
|
14
|
-
--tone-600: light-dark(var(--gray-600), var(--gray-400));
|
|
15
|
-
--tone-700: light-dark(var(--gray-700), var(--gray-300));
|
|
16
|
-
--tone-800: light-dark(var(--gray-800), var(--gray-200));
|
|
17
|
-
--tone-900: light-dark(var(--gray-900), var(--gray-100));
|
|
18
|
-
--tone-950: light-dark(var(--gray-950), var(--gray-50));
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.sui-tone-suggest {
|
|
22
|
-
--tone-50: light-dark(var(--purple-50), var(--purple-950));
|
|
23
|
-
--tone-100: light-dark(var(--purple-100), var(--purple-900));
|
|
24
|
-
--tone-200: light-dark(var(--purple-200), var(--purple-800));
|
|
25
|
-
--tone-300: light-dark(var(--purple-300), var(--purple-700));
|
|
26
|
-
--tone-400: light-dark(var(--purple-400), var(--purple-600));
|
|
27
|
-
--tone-500: light-dark(var(--purple-500), var(--purple-500));
|
|
28
|
-
--tone-600: light-dark(var(--purple-600), var(--purple-400));
|
|
29
|
-
--tone-700: light-dark(var(--purple-700), var(--purple-300));
|
|
30
|
-
--tone-800: light-dark(var(--purple-800), var(--purple-200));
|
|
31
|
-
--tone-900: light-dark(var(--purple-900), var(--purple-100));
|
|
32
|
-
--tone-950: light-dark(var(--purple-950), var(--purple-50));
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.sui-tone-positive {
|
|
36
|
-
--tone-50: light-dark(var(--green-50), var(--green-950));
|
|
37
|
-
--tone-100: light-dark(var(--green-100), var(--green-900));
|
|
38
|
-
--tone-200: light-dark(var(--green-200), var(--green-800));
|
|
39
|
-
--tone-300: light-dark(var(--green-300), var(--green-700));
|
|
40
|
-
--tone-400: light-dark(var(--green-400), var(--green-600));
|
|
41
|
-
--tone-500: light-dark(var(--green-500), var(--green-500));
|
|
42
|
-
--tone-600: light-dark(var(--green-600), var(--green-400));
|
|
43
|
-
--tone-700: light-dark(var(--green-700), var(--green-300));
|
|
44
|
-
--tone-800: light-dark(var(--green-800), var(--green-200));
|
|
45
|
-
--tone-900: light-dark(var(--green-900), var(--green-100));
|
|
46
|
-
--tone-950: light-dark(var(--green-950), var(--green-50));
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.sui-tone-caution {
|
|
50
|
-
--tone-50: light-dark(var(--yellow-50), var(--yellow-950));
|
|
51
|
-
--tone-100: light-dark(var(--yellow-100), var(--yellow-900));
|
|
52
|
-
--tone-200: light-dark(var(--yellow-200), var(--yellow-800));
|
|
53
|
-
--tone-300: light-dark(var(--yellow-300), var(--yellow-700));
|
|
54
|
-
--tone-400: light-dark(var(--yellow-400), var(--yellow-600));
|
|
55
|
-
--tone-500: light-dark(var(--yellow-500), var(--yellow-500));
|
|
56
|
-
--tone-600: light-dark(var(--yellow-600), var(--yellow-400));
|
|
57
|
-
--tone-700: light-dark(var(--yellow-700), var(--yellow-300));
|
|
58
|
-
--tone-800: light-dark(var(--yellow-800), var(--yellow-200));
|
|
59
|
-
--tone-900: light-dark(var(--yellow-900), var(--yellow-100));
|
|
60
|
-
--tone-950: light-dark(var(--yellow-950), var(--yellow-50));
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.sui-tone-critical {
|
|
64
|
-
--tone-50: light-dark(var(--red-50), var(--red-950));
|
|
65
|
-
--tone-100: light-dark(var(--red-100), var(--red-900));
|
|
66
|
-
--tone-200: light-dark(var(--red-200), var(--red-800));
|
|
67
|
-
--tone-300: light-dark(var(--red-300), var(--red-700));
|
|
68
|
-
--tone-400: light-dark(var(--red-400), var(--red-600));
|
|
69
|
-
--tone-500: light-dark(var(--red-500), var(--red-500));
|
|
70
|
-
--tone-600: light-dark(var(--red-600), var(--red-400));
|
|
71
|
-
--tone-700: light-dark(var(--red-700), var(--red-300));
|
|
72
|
-
--tone-800: light-dark(var(--red-800), var(--red-200));
|
|
73
|
-
--tone-900: light-dark(var(--red-900), var(--red-100));
|
|
74
|
-
--tone-950: light-dark(var(--red-950), var(--red-50));
|
|
75
|
-
}
|