@sanity/ui 3.0.0-static.19 → 3.0.0-static.20

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.
Files changed (131) hide show
  1. package/dist/_chunks-cjs/_visual-editing.cjs +109 -112
  2. package/dist/_chunks-cjs/_visual-editing.cjs.map +1 -1
  3. package/dist/_chunks-cjs/buildCommand.cjs +30 -24
  4. package/dist/_chunks-cjs/buildCommand.cjs.map +1 -1
  5. package/dist/_chunks-es/_visual-editing.js +110 -113
  6. package/dist/_chunks-es/_visual-editing.js.map +1 -1
  7. package/dist/cli.cjs +1 -1
  8. package/dist/css.cjs +379 -358
  9. package/dist/css.cjs.map +1 -1
  10. package/dist/css.d.cts +45 -10
  11. package/dist/css.d.ts +45 -10
  12. package/dist/css.js +379 -358
  13. package/dist/css.js.map +1 -1
  14. package/dist/index.d.cts +0 -1
  15. package/dist/index.d.ts +0 -1
  16. package/dist/theme.cjs +89 -64
  17. package/dist/theme.cjs.map +1 -1
  18. package/dist/theme.d.cts +28 -2
  19. package/dist/theme.d.ts +28 -2
  20. package/dist/theme.js +89 -64
  21. package/dist/theme.js.map +1 -1
  22. package/dist/ui-system.css +1236 -801
  23. package/dist/ui-system.min.css +1 -1
  24. package/dist/ui-theme.css +413 -82
  25. package/dist/ui-theme.min.css +1 -1
  26. package/dist/ui.css +1649 -883
  27. package/dist/ui.min.css +1 -1
  28. package/exports/_visual-editing.ts +0 -1
  29. package/package.json +6 -6
  30. package/src/cli/buildCommand.ts +48 -41
  31. package/src/core/components/autocomplete/__workshop__/async.tsx +1 -1
  32. package/src/core/components/autocomplete/__workshop__/constrainedHeight.tsx +1 -1
  33. package/src/core/components/autocomplete/__workshop__/custom.tsx +12 -11
  34. package/src/core/components/autocomplete/__workshop__/example.tsx +13 -12
  35. package/src/core/components/autocomplete/__workshop__/fullscreen.tsx +53 -54
  36. package/src/core/components/breadcrumbs/__workshop__/example.tsx +1 -2
  37. package/src/core/components/dialog/__workshop__/autoFocus.tsx +2 -2
  38. package/src/core/components/dialog/__workshop__/onScroll.tsx +16 -4
  39. package/src/core/components/dialog/__workshop__/position.tsx +3 -3
  40. package/src/core/components/dialog/__workshop__/props.tsx +6 -6
  41. package/src/core/components/menu/__workshop__/menuButton.tsx +3 -3
  42. package/src/core/components/menu/__workshop__/tones.tsx +3 -3
  43. package/src/core/components/skeleton/__workshop__/delay.tsx +2 -2
  44. package/src/core/components/skeleton/__workshop__/skeleton.tsx +2 -2
  45. package/src/core/components/tab/__workshop__/example.tsx +1 -1
  46. package/src/core/components/toast/__workshop__/toast.tsx +5 -5
  47. package/src/core/primitives/avatar/__workshop__/asButton.tsx +2 -2
  48. package/src/core/primitives/avatar/__workshop__/stack.tsx +2 -2
  49. package/src/core/primitives/avatar/__workshop__/withinButton.tsx +1 -1
  50. package/src/core/primitives/avatar/__workshop__/withinMenuItem.tsx +1 -1
  51. package/src/core/primitives/badge/__workshop__/props.tsx +5 -8
  52. package/src/core/primitives/box/__workshop__/props.tsx +2 -2
  53. package/src/core/primitives/box/box.tsx +2 -0
  54. package/src/core/primitives/button/__workshop__/props.tsx +17 -19
  55. package/src/core/primitives/button/__workshop__/stacked.tsx +12 -12
  56. package/src/core/primitives/card/__workshop__/asButton.tsx +1 -1
  57. package/src/core/primitives/card/__workshop__/interactive.tsx +2 -2
  58. package/src/core/primitives/card/__workshop__/props.tsx +11 -11
  59. package/src/core/primitives/card/__workshop__/selected.tsx +2 -2
  60. package/src/core/primitives/checkbox/__workshop__/props.tsx +5 -5
  61. package/src/core/primitives/code/__workshop__/props.tsx +4 -7
  62. package/src/core/primitives/code/code.tsx +1 -1
  63. package/src/core/primitives/container/__workshop__/example.tsx +2 -2
  64. package/src/core/primitives/flex/__workshop__/example.tsx +2 -2
  65. package/src/core/primitives/heading/__workshop__/plain.tsx +11 -7
  66. package/src/core/primitives/heading/heading.tsx +1 -1
  67. package/src/core/primitives/inline/__workshop__/plain.tsx +2 -5
  68. package/src/core/primitives/label/__workshop__/plain.tsx +7 -8
  69. package/src/core/primitives/label/label.tsx +1 -1
  70. package/src/core/primitives/popover/__workshop__/AlignedStory.tsx +6 -6
  71. package/src/core/primitives/popover/__workshop__/MatchReferenceWidthStory.tsx +3 -3
  72. package/src/core/primitives/popover/__workshop__/PlainStory.tsx +1 -1
  73. package/src/core/primitives/popover/__workshop__/SidePanelStory.tsx +1 -1
  74. package/src/core/primitives/popover/__workshop__/TestStory.tsx +3 -1
  75. package/src/core/primitives/radio/__workshop__/example.tsx +2 -2
  76. package/src/core/primitives/radio/__workshop__/plain.tsx +3 -3
  77. package/src/core/primitives/select/__workshop__/plain.tsx +5 -8
  78. package/src/core/primitives/spinner/__workshop__/Props.tsx +3 -3
  79. package/src/core/primitives/stack/__workshop__/plain.tsx +2 -2
  80. package/src/core/primitives/text/__workshop__/colored.tsx +2 -2
  81. package/src/core/primitives/text/__workshop__/example.tsx +8 -11
  82. package/src/core/primitives/textArea/__workshop__/plain.tsx +11 -12
  83. package/src/core/primitives/textArea/textArea.tsx +10 -7
  84. package/src/core/primitives/textInput/__workshop__/customValidity.tsx +1 -1
  85. package/src/core/primitives/textInput/__workshop__/plain.tsx +30 -18
  86. package/src/core/primitives/textInput/__workshop__/states.tsx +1 -1
  87. package/src/core/primitives/textInput/__workshop__/typed.tsx +2 -2
  88. package/src/core/primitives/textInput/textInput.tsx +11 -20
  89. package/src/core/primitives/tooltip/__workshop__/customPortal.tsx +3 -3
  90. package/src/core/primitives/tooltip/__workshop__/overflowingBoundary.tsx +1 -1
  91. package/src/core/primitives/tooltip/__workshop__/props.tsx +4 -4
  92. package/src/core/primitives/tooltip/__workshop__/resizableBoundary.tsx +1 -1
  93. package/src/core/primitives/tooltip/tooltipLayer.tsx +1 -3
  94. package/src/css/_system.style.ts +2 -0
  95. package/src/css/aspects/font/font.style.ts +9 -8
  96. package/src/css/aspects/index.ts +1 -0
  97. package/src/css/aspects/margin/margin.style.ts +13 -0
  98. package/src/css/aspects/margin/types.ts +12 -7
  99. package/src/css/aspects/minHeight/index.ts +2 -0
  100. package/src/css/aspects/minHeight/minHeight.style.ts +9 -0
  101. package/src/css/aspects/minHeight/minHeight.ts +8 -0
  102. package/src/css/aspects/minHeight/types.ts +9 -0
  103. package/src/css/components/skeleton/skeleton.style.ts +7 -10
  104. package/src/css/primitives/_input/_input.style.ts +30 -51
  105. package/src/css/primitives/_selectable/_selectable.style.ts +2 -3
  106. package/src/css/primitives/box/box.style.ts +0 -3
  107. package/src/css/primitives/box/box.ts +2 -0
  108. package/src/css/primitives/box/types.ts +2 -0
  109. package/src/css/primitives/card/card.style.ts +3 -0
  110. package/src/css/primitives/code/code.style.ts +1 -0
  111. package/src/css/primitives/heading/heading.style.ts +1 -0
  112. package/src/css/primitives/label/label.style.ts +1 -0
  113. package/src/css/primitives/text/text.style.ts +1 -0
  114. package/src/css/primitives/textArea/textArea.style.ts +1 -3
  115. package/src/css/primitives/textInput/textInput.style.ts +10 -18
  116. package/src/css/primitives/textInput/textInput.ts +15 -0
  117. package/src/css/primitives/tooltip/tooltip.style.ts +0 -13
  118. package/src/css/primitives/tooltip/tooltip.ts +0 -5
  119. package/src/css/theme/resolveTheme.ts +29 -18
  120. package/src/theme/v0/font.ts +0 -1
  121. package/src/theme/v2/defaults/fonts.ts +0 -1
  122. package/src/theme/v3/_parseColorToken.ts +0 -5
  123. package/src/theme/v3/buildTheme_v3.ts +2 -2
  124. package/src/theme/v3/defaultFonts.ts +250 -0
  125. package/src/theme/v3/defaultTokens.ts +39 -35
  126. package/src/theme/v3/types.ts +35 -2
  127. package/src/theme/versioning/v3_v2.ts +1 -0
  128. package/src/css/primitives/_input/__workshop__/customInput.tsx +0 -16
  129. package/src/css/primitives/_input/__workshop__/index.ts +0 -14
  130. /package/src/core/components/autocomplete/{__mocks__ → __workshop__/mock}/apiStore.ts +0 -0
  131. /package/src/core/components/autocomplete/{__mocks__ → __workshop__/mock}/countries.ts +0 -0
@@ -0,0 +1,250 @@
1
+ import type {ThemeFonts_v3} from './types'
2
+
3
+ export const defaultThemeFonts: ThemeFonts_v3 = {
4
+ code: {
5
+ family: 'ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, Liberation Mono, monospace',
6
+ weight: {
7
+ regular: 400,
8
+ medium: 500,
9
+ semibold: 600,
10
+ bold: 700,
11
+ },
12
+ sizes: [
13
+ {
14
+ ascenderHeight: 4,
15
+ descenderHeight: 4,
16
+ fontSize: 10,
17
+ iconSize: 17,
18
+ lineHeight: 15,
19
+ letterSpacing: 0,
20
+ customIconSize: 12,
21
+ },
22
+ {
23
+ ascenderHeight: 5,
24
+ descenderHeight: 5,
25
+ fontSize: 13,
26
+ iconSize: 21,
27
+ lineHeight: 19,
28
+ letterSpacing: 0,
29
+ customIconSize: 16,
30
+ },
31
+ {
32
+ ascenderHeight: 6,
33
+ descenderHeight: 6,
34
+ fontSize: 16,
35
+ iconSize: 25,
36
+ lineHeight: 23,
37
+ letterSpacing: 0,
38
+ customIconSize: 20,
39
+ },
40
+ {
41
+ ascenderHeight: 7,
42
+ descenderHeight: 7,
43
+ fontSize: 19,
44
+ iconSize: 29,
45
+ lineHeight: 27,
46
+ letterSpacing: 0,
47
+ customIconSize: 24,
48
+ },
49
+ {
50
+ ascenderHeight: 8,
51
+ descenderHeight: 8,
52
+ fontSize: 22,
53
+ iconSize: 33,
54
+ lineHeight: 31,
55
+ letterSpacing: 0,
56
+ customIconSize: 28,
57
+ },
58
+ ],
59
+ },
60
+ heading: {
61
+ family:
62
+ 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',
63
+ featureSettings: `'liga' 1, 'calt' 1, 'ss01' 1, 'ss03' 1, 'zero' 1`,
64
+ weight: {
65
+ regular: 600,
66
+ medium: 700,
67
+ semibold: 800,
68
+ bold: 900,
69
+ },
70
+ sizes: [
71
+ {
72
+ ascenderHeight: 5,
73
+ descenderHeight: 5,
74
+ fontSize: 13,
75
+ iconSize: 17,
76
+ lineHeight: 19,
77
+ letterSpacing: 0,
78
+ customIconSize: 12,
79
+ },
80
+ {
81
+ ascenderHeight: 6,
82
+ descenderHeight: 6,
83
+ fontSize: 16,
84
+ iconSize: 25,
85
+ lineHeight: 23,
86
+ letterSpacing: 0,
87
+ customIconSize: 20,
88
+ },
89
+ {
90
+ ascenderHeight: 7,
91
+ descenderHeight: 7,
92
+ fontSize: 21,
93
+ iconSize: 33,
94
+ lineHeight: 29,
95
+ letterSpacing: -0.25,
96
+ customIconSize: 28,
97
+ },
98
+ {
99
+ ascenderHeight: 8,
100
+ descenderHeight: 8,
101
+ fontSize: 27,
102
+ iconSize: 41,
103
+ lineHeight: 35,
104
+ letterSpacing: -0.5,
105
+ customIconSize: 36,
106
+ },
107
+ {
108
+ ascenderHeight: 9.5,
109
+ descenderHeight: 8.5,
110
+ fontSize: 33,
111
+ iconSize: 49,
112
+ lineHeight: 41,
113
+ letterSpacing: -1,
114
+ customIconSize: 44,
115
+ },
116
+ {
117
+ ascenderHeight: 10.5,
118
+ descenderHeight: 9.5,
119
+ fontSize: 38,
120
+ iconSize: 53,
121
+ lineHeight: 47,
122
+ letterSpacing: -1,
123
+ customIconSize: 48,
124
+ },
125
+ ],
126
+ },
127
+ label: {
128
+ family:
129
+ 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", system-ui, sans-serif',
130
+ weight: {
131
+ regular: 500,
132
+ medium: 600,
133
+ semibold: 700,
134
+ bold: 800,
135
+ },
136
+ sizes: [
137
+ {
138
+ ascenderHeight: 2,
139
+ descenderHeight: 2,
140
+ fontSize: 8.1,
141
+ iconSize: 13,
142
+ lineHeight: 10,
143
+ letterSpacing: 0.5,
144
+ customIconSize: 8,
145
+ },
146
+ {
147
+ ascenderHeight: 1.5,
148
+ descenderHeight: 2.5,
149
+ fontSize: 9.5,
150
+ iconSize: 15,
151
+ lineHeight: 11,
152
+ letterSpacing: 0.5,
153
+ customIconSize: 10,
154
+ },
155
+ {
156
+ ascenderHeight: 2,
157
+ descenderHeight: 2,
158
+ fontSize: 10.8,
159
+ iconSize: 17,
160
+ lineHeight: 12,
161
+ letterSpacing: 0.5,
162
+ customIconSize: 12,
163
+ },
164
+ {
165
+ ascenderHeight: 2,
166
+ descenderHeight: 2,
167
+ fontSize: 12.25,
168
+ iconSize: 19,
169
+ lineHeight: 13,
170
+ letterSpacing: 0.5,
171
+ customIconSize: 14,
172
+ },
173
+ {
174
+ ascenderHeight: 1.5,
175
+ descenderHeight: 2.5,
176
+ fontSize: 13.6,
177
+ iconSize: 21,
178
+ lineHeight: 14,
179
+ letterSpacing: 0.5,
180
+ customIconSize: 16,
181
+ },
182
+ {
183
+ ascenderHeight: 2,
184
+ descenderHeight: 2,
185
+ fontSize: 15,
186
+ iconSize: 23,
187
+ lineHeight: 15,
188
+ letterSpacing: 0.5,
189
+ customIconSize: 18,
190
+ },
191
+ ],
192
+ },
193
+ text: {
194
+ family:
195
+ 'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Liberation Sans", Helvetica, Arial, system-ui, sans-serif',
196
+ weight: {
197
+ regular: 400,
198
+ medium: 500,
199
+ semibold: 600,
200
+ bold: 700,
201
+ },
202
+ sizes: [
203
+ {
204
+ ascenderHeight: 4,
205
+ descenderHeight: 4,
206
+ fontSize: 10,
207
+ iconSize: 17,
208
+ lineHeight: 15,
209
+ letterSpacing: 0,
210
+ customIconSize: 12,
211
+ },
212
+ {
213
+ ascenderHeight: 5,
214
+ descenderHeight: 5,
215
+ fontSize: 13,
216
+ iconSize: 21,
217
+ lineHeight: 19,
218
+ letterSpacing: 0,
219
+ customIconSize: 16,
220
+ },
221
+ {
222
+ ascenderHeight: 6,
223
+ descenderHeight: 6,
224
+ fontSize: 15,
225
+ iconSize: 25,
226
+ lineHeight: 23,
227
+ letterSpacing: 0,
228
+ customIconSize: 20,
229
+ },
230
+ {
231
+ ascenderHeight: 7,
232
+ descenderHeight: 7,
233
+ fontSize: 18,
234
+ iconSize: 29,
235
+ lineHeight: 27,
236
+ letterSpacing: 0,
237
+ customIconSize: 24,
238
+ },
239
+ {
240
+ ascenderHeight: 8,
241
+ descenderHeight: 8,
242
+ fontSize: 21,
243
+ iconSize: 33,
244
+ lineHeight: 31,
245
+ letterSpacing: 0,
246
+ customIconSize: 28,
247
+ },
248
+ ],
249
+ },
250
+ }
@@ -9,41 +9,41 @@ export const defaultTokens: PartialTokens<Tokens> = {
9
9
  bg: ['50', '950'],
10
10
  fg: ['700', '300'],
11
11
  token: {
12
- atrule: ['purple-600', 'purple-300'],
13
- attrName: ['green-600', 'green-300'],
14
- attrValue: ['yellow-600', 'yellow-300'],
15
- attribute: ['yellow-600', 'yellow-300'],
16
- boolean: ['purple-600', 'purple-300'],
17
- builtin: ['purple-600', 'purple-300'],
18
- cdata: ['yellow-600', 'yellow-300'],
19
- char: ['yellow-600', 'yellow-300'],
20
- class: ['orange-600', 'orange-300'],
21
- className: ['cyan-600', 'cyan-300'],
22
- comment: ['gray-300', 'gray-600'],
23
- constant: ['purple-600', 'purple-300'],
24
- deleted: ['red-600', 'red-300'],
25
- entity: ['red-600', 'red-300'],
26
- function: ['green-600', 'green-300'],
27
- hexcode: ['blue-600', 'blue-300'],
28
- id: ['purple-600', 'purple-300'],
29
- important: ['purple-600', 'purple-300'],
30
- inserted: ['green-600', 'green-300'],
31
- keyword: ['magenta-600', 'magenta-300'],
32
- number: ['purple-600', 'purple-300'],
33
- operator: ['magenta-600', 'magenta-300'],
34
- prolog: ['gray-600', 'gray-300'],
35
- property: ['blue-600', 'blue-300'],
36
- pseudoClass: ['yellow-600', 'yellow-300'],
37
- pseudoElement: ['yellow-600', 'yellow-300'],
38
- punctuation: ['gray-600', 'gray-300'],
39
- regex: ['blue-600', 'blue-300'],
40
- selector: ['red-600', 'red-300'],
41
- string: ['yellow-600', 'yellow-300'],
42
- symbol: ['purple-600', 'purple-300'],
43
- tag: ['red-600', 'red-300'],
44
- unit: ['orange-600', 'orange-300'],
45
- url: ['red-600', 'red-300'],
46
- variable: ['red-600', 'red-300'],
12
+ atrule: ['purple-600', 'purple-400'],
13
+ attrName: ['green-600', 'green-400'],
14
+ attrValue: ['yellow-600', 'yellow-400'],
15
+ attribute: ['yellow-600', 'yellow-400'],
16
+ boolean: ['purple-600', 'purple-400'],
17
+ builtin: ['purple-600', 'purple-400'],
18
+ cdata: ['yellow-600', 'yellow-400'],
19
+ char: ['yellow-600', 'yellow-400'],
20
+ class: ['orange-600', 'orange-400'],
21
+ className: ['cyan-600', 'cyan-400'],
22
+ comment: ['gray-400', 'gray-600'],
23
+ constant: ['purple-600', 'purple-400'],
24
+ deleted: ['red-600', 'red-400'],
25
+ entity: ['red-600', 'red-400'],
26
+ function: ['green-600', 'green-400'],
27
+ hexcode: ['blue-600', 'blue-400'],
28
+ id: ['purple-600', 'purple-400'],
29
+ important: ['purple-600', 'purple-400'],
30
+ inserted: ['green-600', 'green-400'],
31
+ keyword: ['magenta-600', 'magenta-400'],
32
+ number: ['purple-600', 'purple-400'],
33
+ operator: ['magenta-600', 'magenta-400'],
34
+ prolog: ['gray-600', 'gray-400'],
35
+ property: ['blue-600', 'blue-400'],
36
+ pseudoClass: ['yellow-600', 'yellow-400'],
37
+ pseudoElement: ['yellow-600', 'yellow-400'],
38
+ punctuation: ['gray-600', 'gray-400'],
39
+ regex: ['blue-600', 'blue-400'],
40
+ selector: ['red-600', 'red-400'],
41
+ string: ['yellow-600', 'yellow-400'],
42
+ symbol: ['purple-600', 'purple-400'],
43
+ tag: ['red-600', 'red-400'],
44
+ unit: ['orange-600', 'orange-400'],
45
+ url: ['red-600', 'red-400'],
46
+ variable: ['red-600', 'red-400'],
47
47
  },
48
48
  },
49
49
  focusRing: ['blue-500', 'blue-500'],
@@ -56,6 +56,10 @@ export const defaultTokens: PartialTokens<Tokens> = {
56
56
  penumbra: ['600/0.07', 'black/0.14'],
57
57
  ambient: ['600/0.06', 'black/0.12'],
58
58
  },
59
+ skeleton: {
60
+ from: ['200 70%', '800 35%'],
61
+ to: ['200 40%', '800 50%'],
62
+ },
59
63
  variant: {
60
64
  tinted: {
61
65
  '*': {
@@ -1,6 +1,12 @@
1
1
  import type {ColorHues, ColorTint} from '@sanity/color'
2
2
 
3
- import type {ThemeFocusRing, ThemeFonts, ThemeFontWeightKey, ThemeLayer, ThemeShadow} from '../v0'
3
+ import type {
4
+ ThemeFocusRing,
5
+ ThemeFontWeight,
6
+ ThemeFontWeightKey,
7
+ ThemeLayer,
8
+ ThemeShadow,
9
+ } from '../v0'
4
10
  import type {ThemeAvatar_v2, ThemeConfig, ThemeInput_v2} from '../v2'
5
11
  import type {
6
12
  AVATAR_SIZE,
@@ -66,6 +72,33 @@ export interface ThemePalette_v3 {
66
72
  hues: ColorHues
67
73
  }
68
74
 
75
+ /** @public */
76
+ export interface ThemeFontSize_v3 {
77
+ ascenderHeight: number
78
+ descenderHeight: number
79
+ fontSize: number
80
+ iconSize: number
81
+ letterSpacing: number
82
+ lineHeight: number
83
+ customIconSize: number
84
+ }
85
+
86
+ /** @public */
87
+ export interface ThemeFont_v3 {
88
+ family: string
89
+ featureSettings?: string
90
+ weight: ThemeFontWeight
91
+ sizes: ThemeFontSize_v3[]
92
+ }
93
+
94
+ /** @public */
95
+ export interface ThemeFonts_v3 {
96
+ code: ThemeFont_v3
97
+ heading: ThemeFont_v3
98
+ label: ThemeFont_v3
99
+ text: ThemeFont_v3
100
+ }
101
+
69
102
  /**
70
103
  * Supersedes `RootTheme` and `RootTheme_v2`.
71
104
  *
@@ -88,7 +121,7 @@ export interface Theme_v3 {
88
121
  color: ThemeColor_v3
89
122
  // color: ThemeColorSchemes_v2
90
123
  container: number[]
91
- font: ThemeFonts
124
+ font: ThemeFonts_v3
92
125
  input: ThemeInput_v2
93
126
  layer: ThemeLayer
94
127
  media: number[]
@@ -97,6 +97,7 @@ export function v3_v2(theme_v3: Theme_v3): RootTheme_v2 {
97
97
  },
98
98
  },
99
99
  container: theme_v3.container,
100
+ // @ts-expect-error TODO: fix this
100
101
  font: theme_v3.font,
101
102
  input: theme_v3.input,
102
103
  layer: theme_v3.layer,
@@ -1,16 +0,0 @@
1
- import {Box, Text} from '@sanity/ui'
2
- import {_input, _inputElement, _inputPresentation} from '@sanity/ui/css'
3
-
4
- export default function CustomInputStory() {
5
- return (
6
- <Box padding={4}>
7
- <Box className={_input({border: true, padding: 3, radius: 2})}>
8
- <button className={_inputElement()} tabIndex={0}>
9
- <Text>Input text</Text>
10
- </button>
11
-
12
- <Box className={_inputPresentation()} padding={3}></Box>
13
- </Box>
14
- </Box>
15
- )
16
- }
@@ -1,14 +0,0 @@
1
- import {defineScope} from '@sanity/ui-workshop'
2
- import {lazy} from 'react'
3
-
4
- export default defineScope({
5
- name: 'css/input',
6
- title: 'Input',
7
- stories: [
8
- {
9
- name: 'custom',
10
- title: 'Custom',
11
- component: lazy(() => import('./customInput')),
12
- },
13
- ],
14
- })