@sanity-labs/ui-poc 0.0.1-alpha.1 → 0.0.1-alpha.2

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.
@@ -1,9 +0,0 @@
1
- .sui-Box {
2
- display: block;
3
- }
4
- .sui-Flex {
5
- display: flex;
6
- }
7
- .sui-Grid {
8
- display: grid;
9
- }
package/dist/index.d.ts CHANGED
@@ -1,6 +1,10 @@
1
1
  import {JSX} from 'react/jsx-runtime'
2
2
  import {default as React_2} from 'react'
3
3
 
4
+ declare const ALIGN_ITEMS: readonly ['baseline', 'center', 'flex-end', 'flex-start', 'stretch']
5
+
6
+ declare type AlignItems = (typeof ALIGN_ITEMS)[number]
7
+
4
8
  declare type BorderProps = {
5
9
  /** CSS **border** property */
6
10
  border?: Responsive<boolean>
@@ -17,9 +21,10 @@ declare type BorderProps = {
17
21
  }
18
22
 
19
23
  /** @public */
20
- export declare function Box<T extends React_2.ElementType = 'div'>(
21
- props: BoxProps<T> & Omit<React_2.ComponentPropsWithRef<T>, keyof BoxProps<T>>,
22
- ): JSX.Element
24
+ export declare function Box<T extends React_2.ElementType = 'div'>({
25
+ display,
26
+ ...props
27
+ }: BoxProps<T> & Omit<React_2.ComponentPropsWithRef<T>, keyof BoxProps<T>>): JSX.Element
23
28
 
24
29
  /** @public */
25
30
  export declare interface BoxProps<T extends React_2.ElementType> extends LayoutProps {
@@ -31,8 +36,29 @@ export declare interface BoxProps<T extends React_2.ElementType> extends LayoutP
31
36
 
32
37
  declare const DISPLAY_BLOCK: readonly ['block', 'inline-block', 'none']
33
38
 
39
+ declare const DISPLAY_FLEX: readonly ['flex', 'inline-flex', 'none']
40
+
41
+ declare const DISPLAY_GRID: readonly ['grid', 'inline-grid', 'none']
42
+
34
43
  declare type DisplayBlock = (typeof DISPLAY_BLOCK)[number]
35
44
 
45
+ declare type DisplayFlex = (typeof DISPLAY_FLEX)[number]
46
+
47
+ declare type DisplayGrid = (typeof DISPLAY_GRID)[number]
48
+
49
+ /** @public */
50
+ export declare function Divider(): JSX.Element
51
+
52
+ /** @public */
53
+ export declare function Flex<T extends React_2.ElementType = 'div'>({
54
+ display,
55
+ ...props
56
+ }: FlexProps<T> & Omit<React_2.ComponentPropsWithRef<T>, keyof FlexProps<T>>): JSX.Element
57
+
58
+ declare const FLEX_DIRECTION: readonly ['row', 'row-reverse', 'column', 'column-reverse']
59
+
60
+ declare const FLEX_WRAP: readonly ['wrap', 'wrap-reverse', 'nowrap']
61
+
36
62
  declare type FlexChildProps = {
37
63
  /** CSS **flex-basis** property */
38
64
  flexBasis?: Responsive<string>
@@ -42,6 +68,53 @@ declare type FlexChildProps = {
42
68
  flexShrink?: Responsive<number>
43
69
  }
44
70
 
71
+ declare type FlexDirection = (typeof FLEX_DIRECTION)[number]
72
+
73
+ declare type FlexParentProps = {
74
+ /** CSS **align-items** property */
75
+ alignItems?: Responsive<AlignItems>
76
+ /** CSS **justify-content** property */
77
+ justifyContent?: Responsive<JustifyContent>
78
+ /** CSS **flex-direction** property */
79
+ flexDirection?: Responsive<FlexDirection>
80
+ /** CSS **flex-wrap** property */
81
+ flexWrap?: Responsive<FlexWrap>
82
+ }
83
+
84
+ /** @public */
85
+ export declare interface FlexProps<T extends React_2.ElementType>
86
+ extends FlexParentProps, GapProps, LayoutProps {
87
+ /** Element to render */
88
+ as?: T
89
+ /** CSS **display** property */
90
+ display?: Responsive<DisplayFlex>
91
+ }
92
+
93
+ declare type FlexWrap = (typeof FLEX_WRAP)[number]
94
+
95
+ declare const FONT_WEIGHT: string[]
96
+
97
+ declare type FontWeight = (typeof FONT_WEIGHT)[number]
98
+
99
+ declare type GapProps = {
100
+ /** CSS **gap** property */
101
+ gap?: Responsive<Space>
102
+ /** CSS **row-gap** property */
103
+ rowGap?: Responsive<Space>
104
+ /** CSS **column-gap** property */
105
+ columnGap?: Responsive<Space>
106
+ }
107
+
108
+ /** @public */
109
+ export declare function Grid<T extends React_2.ElementType = 'div'>({
110
+ display,
111
+ ...props
112
+ }: GridProps<T> & Omit<React_2.ComponentPropsWithRef<T>, keyof GridProps<T>>): JSX.Element
113
+
114
+ declare const GRID_AUTO_FLOW: readonly ['row', 'column', 'row dense', 'column dense', 'dense']
115
+
116
+ declare type GridAutoFlow = (typeof GRID_AUTO_FLOW)[number]
117
+
45
118
  declare type GridChildProps = {
46
119
  /** CSS **grid-column** property */
47
120
  gridColumn?: Responsive<string>
@@ -57,6 +130,28 @@ declare type GridChildProps = {
57
130
  gridRowEnd?: Responsive<string>
58
131
  }
59
132
 
133
+ declare type GridParentProps = {
134
+ /** CSS **grid-auto-flow** property */
135
+ gridAutoFlow?: Responsive<GridAutoFlow>
136
+ /** CSS **grid-auto-columns** property */
137
+ gridAutoColumns?: Responsive<string>
138
+ /** CSS **grid-auto-row** property */
139
+ gridAutoRows?: Responsive<string>
140
+ /** CSS **grid-template-columns** property */
141
+ gridTemplateColumns?: Responsive<string>
142
+ /** CSS **grid-template-rows** property */
143
+ gridTemplateRows?: Responsive<string>
144
+ }
145
+
146
+ /** @public */
147
+ export declare interface GridProps<T extends React_2.ElementType>
148
+ extends GridParentProps, GapProps, LayoutProps {
149
+ /** Element to render */
150
+ as?: T
151
+ /** CSS **display** property */
152
+ display?: Responsive<DisplayGrid>
153
+ }
154
+
60
155
  declare type HeightProps = {
61
156
  /** CSS **height** property */
62
157
  height?: Responsive<string>
@@ -66,6 +161,17 @@ declare type HeightProps = {
66
161
  maxHeight?: Responsive<string>
67
162
  }
68
163
 
164
+ declare const JUSTIFY_CONTENT: readonly [
165
+ 'flex-start',
166
+ 'flex-end',
167
+ 'center',
168
+ 'space-between',
169
+ 'space-around',
170
+ 'space-evenly',
171
+ ]
172
+
173
+ declare type JustifyContent = (typeof JUSTIFY_CONTENT)[number]
174
+
69
175
  declare interface LayoutProps
70
176
  extends
71
177
  ToneProps,
@@ -143,6 +249,8 @@ declare type PositionProps = {
143
249
  bottom?: Responsive<SpaceAuto>
144
250
  /** CSS **left** property */
145
251
  left?: Responsive<SpaceAuto>
252
+ /** CSS **z-index** property */
253
+ zIndex?: Responsive<number>
146
254
  }
147
255
 
148
256
  declare const RADIUS: (string | number)[]
@@ -182,6 +290,29 @@ declare const SPACE_AUTO: readonly [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'auto']
182
290
 
183
291
  declare type SpaceAuto = (typeof SPACE_AUTO)[number]
184
292
 
293
+ /** @public */
294
+ declare function Text_2<T extends React_2.ElementType = 'p'>({
295
+ size,
296
+ ...props
297
+ }: TextProps<T> & Omit<React_2.ComponentPropsWithRef<T>, keyof TextProps<T>>): JSX.Element
298
+ export {Text_2 as Text}
299
+
300
+ declare const TEXT_ALIGN: string[]
301
+
302
+ declare const TEXT_SIZE: number[]
303
+
304
+ declare type TextAlign = (typeof TEXT_ALIGN)[number]
305
+
306
+ /** @public */
307
+ export declare interface TextProps<T extends React_2.ElementType> extends TypographyProps {
308
+ /** Element to render */
309
+ as?: T
310
+ /** CSS **font-size** property */
311
+ size?: TextSize
312
+ }
313
+
314
+ declare type TextSize = (typeof TEXT_SIZE)[number]
315
+
185
316
  declare const TONE: string[]
186
317
 
187
318
  declare type Tone = (typeof TONE)[number]
@@ -191,6 +322,19 @@ declare type ToneProps = {
191
322
  tone?: Responsive<Tone>
192
323
  }
193
324
 
325
+ declare interface TypographyProps extends MarginProps {
326
+ /** CSS **text-align** property */
327
+ align?: TextAlign
328
+ /** CSS **-webkit-line-clamp** property */
329
+ lineClamp?: number
330
+ /** CSS **color** property */
331
+ muted?: boolean
332
+ /** CSS **text-box-trim** property */
333
+ trim?: boolean
334
+ /** CSS **font-weight** property */
335
+ weight?: FontWeight
336
+ }
337
+
194
338
  declare type WidthProps = {
195
339
  /** CSS **width** property */
196
340
  width?: Responsive<string>
package/dist/index.js CHANGED
@@ -212,6 +212,11 @@ const RADIUS = [0, 1, 2, 3, 4, 5, 6, "full"], borderProps = {
212
212
  type: "union",
213
213
  className: "left",
214
214
  values: SPACE_AUTO
215
+ },
216
+ zIndex: {
217
+ type: "number",
218
+ className: "z-index",
219
+ variable: "--z-index"
215
220
  }
216
221
  }, TONE = ["default", "neutral", "primary", "suggest", "positive", "caution", "critical"], toneProps = {
217
222
  tone: {
@@ -246,27 +251,29 @@ const RADIUS = [0, 1, 2, 3, 4, 5, 6, "full"], borderProps = {
246
251
  ...overflowProps,
247
252
  ...flexChildProps,
248
253
  ...gridChildProps
249
- }, DISPLAY_BLOCK = ["block", "inline-block", "none"], PREFIX = "sui", BREAKPOINTS_LENGTH = 7;
250
- function getProps(allProps, styleProps) {
251
- let className = allProps?.className || "", style = allProps?.style || {};
252
- for (const key in allProps)
253
- if (!(!styleProps?.[key] || !styleProps?.[key].className))
254
- if (Array.isArray(allProps[key]))
255
- for (let i = 0, len = Math.min(allProps[key].length, BREAKPOINTS_LENGTH); i < len; i++)
256
- className = classNames(className, getClassName(allProps[key][i], styleProps[key], i)), style = { ...style, ...getStyle(allProps[key][i], styleProps[key], i) };
257
- else
258
- className = classNames(className, getClassName(allProps[key], styleProps[key])), style = { ...style, ...getStyle(allProps[key], styleProps[key]) };
259
- const propsWithoutStyleProps = {};
260
- for (const key in allProps)
261
- (!styleProps?.[key] || !styleProps[key].className) && (propsWithoutStyleProps[key] = allProps[key]);
262
- return { ...propsWithoutStyleProps, className, style };
254
+ }, DISPLAY_BLOCK = ["block", "inline-block", "none"], DISPLAY_FLEX = ["flex", "inline-flex", "none"], DISPLAY_GRID = ["grid", "inline-grid", "none"], PREFIX = "sui", BREAKPOINTS_LENGTH = 7;
255
+ function getProps(componentProps, propDefs) {
256
+ let className = componentProps?.className || "", style = componentProps?.style || {};
257
+ const restProps = {};
258
+ for (const key in componentProps) {
259
+ if (!propDefs?.[key] || !propDefs?.[key].className) {
260
+ restProps[key] = componentProps[key];
261
+ continue;
262
+ }
263
+ if (Array.isArray(componentProps[key]))
264
+ for (let i = 0, len = Math.min(componentProps[key].length, BREAKPOINTS_LENGTH); i < len; i++)
265
+ className = classNames(className, getClassName(componentProps[key][i], propDefs[key], i)), style = { ...style, ...getStyle(componentProps[key][i], propDefs[key], i) };
266
+ else
267
+ className = classNames(className, getClassName(componentProps[key], propDefs[key])), style = { ...style, ...getStyle(componentProps[key], propDefs[key]) };
268
+ }
269
+ return { ...restProps, className, style };
263
270
  }
264
- function getClassName(prop, styleProp, bp) {
265
- return styleProp.type === "union" && styleProp.values?.includes(prop) ? `${PREFIX}-${styleProp.className}${typeof prop == "string" ? `-${prop}` : prop}${bp ? `-bp-${bp}` : ""}` : styleProp.type === "string" || styleProp.type === "number" ? `${PREFIX}-${styleProp.className}${bp ? `-bp-${bp}` : ""}` : styleProp.type === "boolean" ? `${PREFIX}-${prop ? styleProp.className : styleProp.inverse}${bp ? `-bp-${bp}` : ""}` : "";
271
+ function getClassName(prop, propDef, bp) {
272
+ return propDef.type === "union" && propDef.values?.includes(prop) ? `${PREFIX}-${propDef.className}${typeof prop == "string" ? `-${prop}` : prop}${bp ? `-bp-${bp}` : ""}` : propDef.type === "string" || propDef.type === "number" ? `${PREFIX}-${propDef.className}${bp ? `-bp-${bp}` : ""}` : propDef.type === "boolean" ? `${PREFIX}-${prop ? propDef.className : propDef.inverse}${bp ? `-bp-${bp}` : ""}` : "";
266
273
  }
267
- function getStyle(prop, styleProp, bp) {
268
- return styleProp.type === "string" || styleProp.type === "number" ? {
269
- [`${styleProp.variable}${bp ? `-bp-${bp}` : ""}`]: prop
274
+ function getStyle(prop, propDef, bp) {
275
+ return propDef.type === "string" || propDef.type === "number" ? {
276
+ [`${propDef.variable}${bp ? `-bp-${bp}` : ""}`]: prop
270
277
  } : {};
271
278
  }
272
279
  const boxProps = {
@@ -280,11 +287,191 @@ const boxProps = {
280
287
  },
281
288
  ...layoutProps
282
289
  };
283
- function Box(props) {
284
- const { as, children, className, style, ...rest } = getProps(props, boxProps);
290
+ function Box({
291
+ display = "block",
292
+ ...props
293
+ }) {
294
+ const { as, children, className, style, ...rest } = getProps({ display, ...props }, boxProps);
285
295
  return /* @__PURE__ */ jsx(as || "div", { className: classNames("sui-Box", className), style, "data-ui": "Box", ...rest, children });
286
296
  }
297
+ function Divider() {
298
+ return /* @__PURE__ */ jsx(
299
+ "hr",
300
+ {
301
+ className: "sui-Divider sui-border-bottom-none sui-border-left-none sui-border-right-none sui-border-top",
302
+ "data-ui": "Divider"
303
+ }
304
+ );
305
+ }
306
+ const ALIGN_ITEMS = ["baseline", "center", "flex-end", "flex-start", "stretch"], JUSTIFY_CONTENT = [
307
+ "flex-start",
308
+ "flex-end",
309
+ "center",
310
+ "space-between",
311
+ "space-around",
312
+ "space-evenly"
313
+ ], FLEX_DIRECTION = ["row", "row-reverse", "column", "column-reverse"], FLEX_WRAP = ["wrap", "wrap-reverse", "nowrap"], flexParentProps = {
314
+ alignItems: {
315
+ type: "union",
316
+ className: "align-items",
317
+ values: ALIGN_ITEMS
318
+ },
319
+ justifyContent: {
320
+ type: "union",
321
+ className: "justify-content",
322
+ values: JUSTIFY_CONTENT
323
+ },
324
+ flexDirection: {
325
+ type: "union",
326
+ className: "flex-direction",
327
+ values: FLEX_DIRECTION
328
+ },
329
+ flexWrap: {
330
+ type: "union",
331
+ className: "flex-wrap",
332
+ values: FLEX_WRAP
333
+ }
334
+ }, gapProps = {
335
+ gap: {
336
+ type: "union",
337
+ className: "gap",
338
+ values: SPACE
339
+ },
340
+ rowGap: {
341
+ type: "union",
342
+ className: "row-gap",
343
+ values: SPACE
344
+ },
345
+ columnGap: {
346
+ type: "union",
347
+ className: "column-gap",
348
+ values: SPACE
349
+ }
350
+ }, flexProps = {
351
+ as: {
352
+ type: "string"
353
+ },
354
+ display: {
355
+ type: "union",
356
+ className: "display",
357
+ values: DISPLAY_FLEX
358
+ },
359
+ ...flexParentProps,
360
+ ...gapProps,
361
+ ...layoutProps
362
+ };
363
+ function Flex({
364
+ display = "flex",
365
+ ...props
366
+ }) {
367
+ const { as, children, className, style, ...rest } = getProps({ display, ...props }, flexProps);
368
+ return /* @__PURE__ */ jsx(as || "div", { className: classNames("sui-Flex", className), style, "data-ui": "Flex", ...rest, children });
369
+ }
370
+ const GRID_AUTO_FLOW = ["row", "column", "row dense", "column dense", "dense"], gridParentProps = {
371
+ gridAutoFlow: {
372
+ type: "union",
373
+ className: "grid-auto-flow",
374
+ values: GRID_AUTO_FLOW
375
+ },
376
+ gridAutoColumns: {
377
+ type: "string",
378
+ className: "grid-auto-columns",
379
+ variable: "--grid-auto-columns"
380
+ },
381
+ gridAutoRows: {
382
+ type: "string",
383
+ className: "grid-auto-rows",
384
+ variable: "--grid-auto-rows"
385
+ },
386
+ gridTemplateColumns: {
387
+ type: "string",
388
+ className: "grid-template-columns",
389
+ variable: "--grid-template-columns"
390
+ },
391
+ gridTemplateRows: {
392
+ type: "string",
393
+ className: "grid-template-rows",
394
+ variable: "--grid-template-rows"
395
+ }
396
+ }, gridProps = {
397
+ as: {
398
+ type: "string"
399
+ },
400
+ display: {
401
+ type: "union",
402
+ className: "display",
403
+ values: DISPLAY_GRID
404
+ },
405
+ ...gridParentProps,
406
+ ...gapProps,
407
+ ...layoutProps
408
+ };
409
+ function Grid({
410
+ display = "grid",
411
+ ...props
412
+ }) {
413
+ const { as, children, className, style, ...rest } = getProps({ display, ...props }, gridProps);
414
+ return /* @__PURE__ */ jsx(as || "div", { className: classNames("sui-Grid", className), style, "data-ui": "Grid", ...rest, children });
415
+ }
416
+ const FONT_WEIGHT = ["regular", "medium", "semibold", "bold"], TEXT_ALIGN = ["left", "center", "right", "justify"], typographyProps = {
417
+ align: {
418
+ type: "union",
419
+ className: "text",
420
+ values: TEXT_ALIGN
421
+ },
422
+ lineClamp: {
423
+ type: "number",
424
+ className: "line-clamp",
425
+ variable: "--line-clamp"
426
+ },
427
+ muted: {
428
+ type: "boolean",
429
+ className: "text-muted",
430
+ inverse: "text-default"
431
+ },
432
+ trim: {
433
+ type: "boolean",
434
+ className: "text-trim",
435
+ inverse: "text-trim-none"
436
+ },
437
+ weight: {
438
+ type: "union",
439
+ className: "weight",
440
+ values: FONT_WEIGHT
441
+ },
442
+ ...marginProps
443
+ }, TEXT_SIZE = [0, 1, 2, 3, 4], textProps = {
444
+ as: {
445
+ type: "string"
446
+ },
447
+ size: {
448
+ type: "union",
449
+ className: "text-body",
450
+ values: TEXT_SIZE
451
+ },
452
+ ...typographyProps
453
+ };
454
+ function Text({
455
+ size = 2,
456
+ ...props
457
+ }) {
458
+ const { as, children, className, style, ...rest } = getProps({ size, ...props }, textProps), Component = as || "p";
459
+ return props.lineClamp && props.trim ? /* @__PURE__ */ jsx(
460
+ Component,
461
+ {
462
+ className: classNames("sui-Text", className?.replace("sui-line-clamp", "")),
463
+ style,
464
+ "data-ui": "Text",
465
+ ...rest,
466
+ children: /* @__PURE__ */ jsx("span", { className: "sui-line-clamp", children })
467
+ }
468
+ ) : /* @__PURE__ */ jsx(Component, { className: classNames("sui-Text", className), style, "data-ui": "Text", ...rest, children });
469
+ }
287
470
  export {
288
- Box
471
+ Box,
472
+ Divider,
473
+ Flex,
474
+ Grid,
475
+ Text
289
476
  };
290
477
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../src/types/Radius.ts","../src/props/border.ts","../src/props/flexChild.ts","../src/props/gridChild.ts","../src/props/height.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Overflow.ts","../src/props/overflow.ts","../src/props/padding.ts","../src/types/Position.ts","../src/props/position.ts","../src/types/Tone.ts","../src/props/tone.ts","../src/props/width.ts","../src/props/layout.ts","../src/types/Display.ts","../src/utils/getProps.ts","../src/components/box.props.ts","../src/components/Box.tsx"],"sourcesContent":["export const RADIUS = [0, 1, 2, 3, 4, 5, 6, 'full']\nexport type Radius = (typeof RADIUS)[number]\n","import {type StyleProp} from '../types/StyleProp'\nimport {RADIUS, type Radius} from '../types/Radius'\nimport {type Responsive} from '../types/Responsive'\n\nexport type BorderProps = {\n /** CSS **border** property */\n border?: Responsive<boolean>\n /** CSS **border-top** property */\n borderTop?: Responsive<boolean>\n /** CSS **border-right** property */\n borderRight?: Responsive<boolean>\n /** CSS **border-bottom** property */\n borderBottom?: Responsive<boolean>\n /** CSS **border-left** property */\n borderLeft?: Responsive<boolean>\n /** CSS **border-radius** property */\n radius?: Responsive<Radius>\n}\n\nexport const borderProps: Record<string, StyleProp> = {\n border: {\n type: 'boolean',\n className: 'border',\n inverse: 'border-none',\n },\n borderTop: {\n type: 'boolean',\n className: 'border-top',\n inverse: 'border-top-none',\n },\n borderRight: {\n type: 'boolean',\n className: 'border-right',\n inverse: 'border-right-none',\n },\n borderBottom: {\n type: 'boolean',\n className: 'border-bottom',\n inverse: 'border-bottom-none',\n },\n borderLeft: {\n type: 'boolean',\n className: 'border-left',\n inverse: 'border-left-none',\n },\n radius: {\n type: 'union',\n className: 'radius',\n values: RADIUS,\n },\n}\n","import {type StyleProp} from '../types/StyleProp'\nimport {type Responsive} from '../types/Responsive'\n\nexport type FlexChildProps = {\n /** CSS **flex-basis** property */\n flexBasis?: Responsive<string>\n /** CSS **flex-grow** property */\n flexGrow?: Responsive<number>\n /** CSS **flex-shrink** property */\n flexShrink?: Responsive<number>\n}\n\nexport const flexChildProps: Record<string, StyleProp> = {\n flexBasis: {\n type: 'string',\n className: 'flex-basis',\n variable: '--flex-basis',\n },\n flexGrow: {\n type: 'number',\n className: 'flex-grow',\n variable: '--flex-grow',\n },\n flexShrink: {\n type: 'number',\n className: 'flex-shrink',\n variable: '--flex-shrink',\n },\n}\n","import {type StyleProp} from '../types/StyleProp'\nimport {type Responsive} from '../types/Responsive'\n\nexport type GridChildProps = {\n /** CSS **grid-column** property */\n gridColumn?: Responsive<string>\n /** CSS **grid-column-start** property */\n gridColumnStart?: Responsive<string>\n /** CSS **grid-column-end** property */\n gridColumnEnd?: Responsive<string>\n /** CSS **grid-row** property */\n gridRow?: Responsive<string>\n /** CSS **grid-row-start** property */\n gridRowStart?: Responsive<string>\n /** CSS **grid-row-end** property */\n gridRowEnd?: Responsive<string>\n}\n\nexport const gridChildProps: Record<string, StyleProp> = {\n gridColumn: {\n type: 'string',\n className: 'grid-column',\n variable: '--grid-column',\n },\n gridColumnStart: {\n type: 'string',\n className: 'grid-column-start',\n variable: '--grid-column-start',\n },\n gridColumnEnd: {\n type: 'string',\n className: 'grid-column-end',\n variable: '--grid-column-end',\n },\n gridRow: {\n type: 'string',\n className: 'grid-row',\n variable: '--grid-row',\n },\n gridRowStart: {\n type: 'string',\n className: 'grid-row-start',\n variable: '--grid-row-start',\n },\n gridRowEnd: {\n type: 'string',\n className: 'grid-row-end',\n variable: '--grid-row-end',\n },\n}\n","import {type StyleProp} from '../types/StyleProp'\nimport {type Responsive} from '../types/Responsive'\n\nexport type HeightProps = {\n /** CSS **height** property */\n height?: Responsive<string>\n /** CSS **min-height** property */\n minHeight?: Responsive<string>\n /** CSS **max-height** property */\n maxHeight?: Responsive<string>\n}\n\nexport const heightProps: Record<string, StyleProp> = {\n height: {\n type: 'string',\n className: 'height',\n variable: '--height',\n },\n minHeight: {\n type: 'string',\n className: 'min-height',\n variable: '--min-height',\n },\n maxHeight: {\n type: 'string',\n className: 'max-height',\n variable: '--max-height',\n },\n}\n","export const SPACE = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] as const\nexport type Space = (typeof SPACE)[number]\n\nexport const SPACE_AUTO = [...SPACE, 'auto'] as const\nexport type SpaceAuto = (typeof SPACE_AUTO)[number]\n","import {type StyleProp} from '../types/StyleProp'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE_AUTO, type SpaceAuto} from '../types/Space'\n\nexport type MarginProps = {\n /** CSS **margin** property */\n margin?: Responsive<SpaceAuto>\n /** CSS **margin-left** and **margin-right** properties */\n marginX?: Responsive<SpaceAuto>\n /** CSS **margin-top** and **margin-bottom** properties */\n marginY?: Responsive<SpaceAuto>\n /** CSS **margin-top** property */\n marginTop?: Responsive<SpaceAuto>\n /** CSS **margin-right** property */\n marginRight?: Responsive<SpaceAuto>\n /** CSS **margin-bottom** property */\n marginBottom?: Responsive<SpaceAuto>\n /** CSS **margin-left** property */\n marginLeft?: Responsive<SpaceAuto>\n}\n\nexport const marginProps: Record<string, StyleProp> = {\n margin: {\n type: 'union',\n className: 'm',\n values: SPACE_AUTO,\n },\n marginX: {\n type: 'union',\n className: 'mx',\n values: SPACE_AUTO,\n },\n marginY: {\n type: 'union',\n className: 'my',\n values: SPACE_AUTO,\n },\n marginTop: {\n type: 'union',\n className: 'mt',\n values: SPACE_AUTO,\n },\n marginRight: {\n type: 'union',\n className: 'mr',\n values: SPACE_AUTO,\n },\n marginBottom: {\n type: 'union',\n className: 'mb',\n values: SPACE_AUTO,\n },\n marginLeft: {\n type: 'union',\n className: 'ml',\n values: SPACE_AUTO,\n },\n}\n","export const OVERFLOW = ['visible', 'hidden', 'auto', 'scroll', 'clip']\nexport type Overflow = (typeof OVERFLOW)[number]\n","import {OVERFLOW, type Overflow} from '../types/Overflow'\nimport {type StyleProp} from '../types/StyleProp'\nimport {type Responsive} from '../types/Responsive'\n\nexport type OverflowProps = {\n /** CSS **overflow** property */\n overflow?: Responsive<Overflow>\n /** CSS **overflow-x** property */\n overflowX?: Responsive<Overflow>\n /** CSS **overflow-y** property */\n overflowY?: Responsive<Overflow>\n}\n\nexport const overflowProps: Record<string, StyleProp> = {\n overflow: {\n type: 'union',\n className: 'overflow',\n values: OVERFLOW,\n },\n overflowX: {\n type: 'union',\n className: 'overflow-x',\n values: OVERFLOW,\n },\n overflowY: {\n type: 'union',\n className: 'overflow-y',\n values: OVERFLOW,\n },\n}\n","import {type StyleProp} from '../types/StyleProp'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE, type Space} from '../types/Space'\n\nexport interface PaddingProps {\n /** CSS **padding** property */\n padding?: Responsive<Space>\n /** CSS **padding-left** and **padding-right** properties */\n paddingX?: Responsive<Space>\n /** CSS **padding-top** and **padding-bottom** properties */\n paddingY?: Responsive<Space>\n /** CSS **padding-top** property */\n paddingTop?: Responsive<Space>\n /** CSS **padding-right** property */\n paddingRight?: Responsive<Space>\n /** CSS **padding-bottom** property */\n paddingBottom?: Responsive<Space>\n /** CSS **padding-left** property */\n paddingLeft?: Responsive<Space>\n}\n\nexport const paddingProps: Record<string, StyleProp> = {\n padding: {\n type: 'union',\n className: 'p',\n values: SPACE,\n },\n paddingX: {\n type: 'union',\n className: 'px',\n values: SPACE,\n },\n paddingY: {\n type: 'union',\n className: 'py',\n values: SPACE,\n },\n paddingTop: {\n type: 'union',\n className: 'pt',\n values: SPACE,\n },\n paddingRight: {\n type: 'union',\n className: 'pr',\n values: SPACE,\n },\n paddingBottom: {\n type: 'union',\n className: 'pb',\n values: SPACE,\n },\n paddingLeft: {\n type: 'union',\n className: 'pl',\n values: SPACE,\n },\n}\n","export const POSITION = ['absolute', 'fixed', 'relative', 'static', 'sticky']\nexport type Position = (typeof POSITION)[number]\n","import {POSITION, type Position} from '../types/Position'\nimport {type StyleProp} from '../types/StyleProp'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE_AUTO, type SpaceAuto} from '../types/Space'\n\nexport type PositionProps = {\n /** CSS **position** property */\n position?: Responsive<Position>\n /** CSS **inset** property */\n inset?: Responsive<SpaceAuto>\n /** CSS **top** property */\n top?: Responsive<SpaceAuto>\n /** CSS **right** property */\n right?: Responsive<SpaceAuto>\n /** CSS **bottom** property */\n bottom?: Responsive<SpaceAuto>\n /** CSS **left** property */\n left?: Responsive<SpaceAuto>\n}\n\nexport const positionProps: Record<string, StyleProp> = {\n position: {\n type: 'union',\n className: 'position',\n values: POSITION,\n },\n inset: {\n type: 'union',\n className: 'inset',\n values: SPACE_AUTO,\n },\n top: {\n type: 'union',\n className: 'top',\n values: SPACE_AUTO,\n },\n right: {\n type: 'union',\n className: 'right',\n values: SPACE_AUTO,\n },\n bottom: {\n type: 'union',\n className: 'bottom',\n values: SPACE_AUTO,\n },\n left: {\n type: 'union',\n className: 'left',\n values: SPACE_AUTO,\n },\n}\n","export const TONE = ['default', 'neutral', 'primary', 'suggest', 'positive', 'caution', 'critical']\nexport type Tone = (typeof TONE)[number]\n","import {type StyleProp} from '../types/StyleProp'\nimport {type Responsive} from '../types/Responsive'\nimport {TONE, type Tone} from '../types/Tone'\n\nexport type ToneProps = {\n /** CSS **background-color** property */\n tone?: Responsive<Tone>\n}\n\nexport const toneProps: Record<string, StyleProp> = {\n tone: {\n type: 'union',\n className: 'tone',\n values: TONE,\n },\n}\n","import {type StyleProp} from '../types/StyleProp'\nimport {type Responsive} from '../types/Responsive'\n\nexport type WidthProps = {\n /** CSS **width** property */\n width?: Responsive<string>\n /** CSS **min-width** property */\n minWidth?: Responsive<string>\n /** CSS **max-width** property */\n maxWidth?: Responsive<string>\n}\n\nexport const widthProps: Record<string, StyleProp> = {\n width: {\n type: 'string',\n className: 'width',\n variable: '--width',\n },\n minWidth: {\n type: 'string',\n className: 'min-width',\n variable: '--min-width',\n },\n maxWidth: {\n type: 'string',\n className: 'max-width',\n variable: '--max-width',\n },\n}\n","import {type StyleProp} from '../types/StyleProp'\nimport {type BorderProps, borderProps} from './border'\nimport {type FlexChildProps, flexChildProps} from './flexChild'\nimport {type GridChildProps, gridChildProps} from './gridChild'\nimport {type HeightProps, heightProps} from './height'\nimport {type MarginProps, marginProps} from './margin'\nimport {type OverflowProps, overflowProps} from './overflow'\nimport {type PaddingProps, paddingProps} from './padding'\nimport {type PositionProps, positionProps} from './position'\nimport {type ToneProps, toneProps} from './tone'\nimport {type WidthProps, widthProps} from './width'\n\nexport interface LayoutProps\n extends\n ToneProps,\n WidthProps,\n HeightProps,\n MarginProps,\n BorderProps,\n PaddingProps,\n PositionProps,\n OverflowProps,\n FlexChildProps,\n GridChildProps {}\n\nexport const layoutProps: Record<string, StyleProp> = {\n ...toneProps,\n ...widthProps,\n ...heightProps,\n ...marginProps,\n ...borderProps,\n ...paddingProps,\n ...positionProps,\n ...overflowProps,\n ...flexChildProps,\n ...gridChildProps,\n}\n","export const DISPLAY_BLOCK = ['block', 'inline-block', 'none'] as const\nexport type DisplayBlock = (typeof DISPLAY_BLOCK)[number]\n\nexport const DISPLAY_FLEX = ['flex', 'inline-flex', 'none'] as const\nexport type DisplayFlex = (typeof DISPLAY_FLEX)[number]\n\nexport const DISPLAY_GRID = ['grid', 'inline-grid', 'none'] as const\nexport type DisplayGrid = (typeof DISPLAY_GRID)[number]\n","import classNames from 'classnames'\n\nimport {type StyleProp} from '../types/StyleProp'\n\nconst PREFIX = 'sui'\nconst BREAKPOINTS_LENGTH = 7\n\ninterface AllProps {\n className?: string\n style?: React.CSSProperties\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n [key: string]: any\n}\n\nexport function getProps<P extends AllProps, T extends Record<string, StyleProp>>(\n allProps?: P,\n styleProps?: T,\n): AllProps {\n let className = allProps?.className || ''\n let style = allProps?.style || {}\n\n // Iterate through the keys of all props on the component\n for (const key in allProps) {\n // Bypass props that aren't style props\n if (!styleProps?.[key] || !styleProps?.[key].className) {\n continue\n }\n\n // Process style props\n if (Array.isArray(allProps[key])) {\n // Responsive array: generate a class name and style per breakpoint\n for (let i = 0, len = Math.min(allProps[key].length, BREAKPOINTS_LENGTH); i < len; i++) {\n className = classNames(className, getClassName(allProps[key][i], styleProps[key], i))\n style = {...style, ...getStyle(allProps[key][i], styleProps[key], i)}\n }\n } else {\n // Single value: generate one class name and style\n className = classNames(className, getClassName(allProps[key], styleProps[key]))\n style = {...style, ...getStyle(allProps[key], styleProps[key])}\n }\n }\n\n // Return only the props not consumed by style props\n const propsWithoutStyleProps: AllProps = {}\n for (const key in allProps) {\n if (!styleProps?.[key] || !styleProps[key].className) {\n propsWithoutStyleProps[key] = allProps[key]\n }\n }\n\n return {...propsWithoutStyleProps, className, style}\n}\n\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any */\nfunction getClassName(prop: any, styleProp: StyleProp, bp?: number) {\n if (styleProp.type === 'union' && styleProp.values?.includes(prop)) {\n /* Note: This may need updating depending on the final CSS classname formatting */\n return `${PREFIX}-${styleProp.className}${typeof prop === 'string' ? `-${prop}` : prop}${bp ? `-bp-${bp}` : ''}`\n }\n\n if (styleProp.type === 'string' || styleProp.type === 'number') {\n return `${PREFIX}-${styleProp.className}${bp ? `-bp-${bp}` : ''}`\n }\n\n if (styleProp.type === 'boolean') {\n return `${PREFIX}-${prop ? styleProp.className : styleProp.inverse}${bp ? `-bp-${bp}` : ''}`\n }\n\n return ''\n}\n\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any */\nfunction getStyle(prop: any, styleProp: StyleProp, bp?: number) {\n if (styleProp.type === 'string' || styleProp.type === 'number') {\n return {\n [`${styleProp.variable}${bp ? `-bp-${bp}` : ''}`]: prop,\n }\n }\n\n return {}\n}\n","import {layoutProps} from '../props/layout'\nimport {DISPLAY_BLOCK} from '../types/Display'\nimport {type StyleProp} from '../types/StyleProp'\n\nexport const boxProps: Record<string, StyleProp> = {\n as: {\n type: 'string',\n },\n display: {\n type: 'union',\n className: 'display',\n values: DISPLAY_BLOCK,\n },\n ...layoutProps,\n}\n","import classNames from 'classnames'\nimport React from 'react'\n\nimport {type LayoutProps} from '../props/layout'\nimport {type DisplayBlock} from '../types/Display'\nimport {type Responsive} from '../types/Responsive'\nimport {getProps} from '../utils/getProps'\nimport {boxProps} from './box.props'\n\n/** @public */\nexport interface BoxProps<T extends React.ElementType> extends LayoutProps {\n /** Element to render */\n as?: T\n /** CSS **display** property */\n display?: Responsive<DisplayBlock>\n}\n\n/** @public */\nexport function Box<T extends React.ElementType = 'div'>(\n props: BoxProps<T> & Omit<React.ComponentPropsWithRef<T>, keyof BoxProps<T>>,\n) {\n const {as, children, className, style, ...rest} = getProps(props, boxProps)\n const Component = as || 'div'\n\n return (\n <Component className={classNames('sui-Box', className)} style={style} data-ui=\"Box\" {...rest}>\n {children}\n </Component>\n )\n}\n"],"names":[],"mappings":";;AAAO,MAAM,SAAS,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,GCmBrC,cAAyC;AAAA,EACpD,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,WAAW;AAAA,I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B,MAAM,OAGrB,EAAU,WAAW,WAAW,WAAW,SAAS,GAAG,OAAc,WAAQ,OAAO,GAAG,MACrF,SAAA,CACH;AAEJ;"}
1
+ {"version":3,"file":"index.js","sources":["../src/types/Radius.ts","../src/props/border.ts","../src/props/flexChild.ts","../src/props/gridChild.ts","../src/props/height.ts","../src/types/Space.ts","../src/props/margin.ts","../src/types/Overflow.ts","../src/props/overflow.ts","../src/props/padding.ts","../src/types/Position.ts","../src/props/position.ts","../src/types/Tone.ts","../src/props/tone.ts","../src/props/width.ts","../src/props/layout.ts","../src/types/Display.ts","../src/utils/getProps.ts","../src/components/box/box.props.ts","../src/components/box/Box.tsx","../src/components/divider/Divider.tsx","../src/types/Flex.ts","../src/props/flexParent.ts","../src/props/gap.ts","../src/components/flex/flex.props.ts","../src/components/flex/Flex.tsx","../src/types/Grid.ts","../src/props/gridParent.ts","../src/components/grid/grid.props.ts","../src/components/grid/Grid.tsx","../src/types/FontWeight.ts","../src/types/TextAlign.ts","../src/props/typography.ts","../src/types/Text.ts","../src/components/text/text.props.ts","../src/components/text/Text.tsx"],"sourcesContent":["export const RADIUS = [0, 1, 2, 3, 4, 5, 6, 'full']\nexport type Radius = (typeof RADIUS)[number]\n","import {type PropDef} from '../types/PropDef'\nimport {RADIUS, type Radius} from '../types/Radius'\nimport {type Responsive} from '../types/Responsive'\n\nexport type BorderProps = {\n /** CSS **border** property */\n border?: Responsive<boolean>\n /** CSS **border-top** property */\n borderTop?: Responsive<boolean>\n /** CSS **border-right** property */\n borderRight?: Responsive<boolean>\n /** CSS **border-bottom** property */\n borderBottom?: Responsive<boolean>\n /** CSS **border-left** property */\n borderLeft?: Responsive<boolean>\n /** CSS **border-radius** property */\n radius?: Responsive<Radius>\n}\n\nexport const borderProps: Record<string, PropDef> = {\n border: {\n type: 'boolean',\n className: 'border',\n inverse: 'border-none',\n },\n borderTop: {\n type: 'boolean',\n className: 'border-top',\n inverse: 'border-top-none',\n },\n borderRight: {\n type: 'boolean',\n className: 'border-right',\n inverse: 'border-right-none',\n },\n borderBottom: {\n type: 'boolean',\n className: 'border-bottom',\n inverse: 'border-bottom-none',\n },\n borderLeft: {\n type: 'boolean',\n className: 'border-left',\n inverse: 'border-left-none',\n },\n radius: {\n type: 'union',\n className: 'radius',\n values: RADIUS,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type FlexChildProps = {\n /** CSS **flex-basis** property */\n flexBasis?: Responsive<string>\n /** CSS **flex-grow** property */\n flexGrow?: Responsive<number>\n /** CSS **flex-shrink** property */\n flexShrink?: Responsive<number>\n}\n\nexport const flexChildProps: Record<string, PropDef> = {\n flexBasis: {\n type: 'string',\n className: 'flex-basis',\n variable: '--flex-basis',\n },\n flexGrow: {\n type: 'number',\n className: 'flex-grow',\n variable: '--flex-grow',\n },\n flexShrink: {\n type: 'number',\n className: 'flex-shrink',\n variable: '--flex-shrink',\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type GridChildProps = {\n /** CSS **grid-column** property */\n gridColumn?: Responsive<string>\n /** CSS **grid-column-start** property */\n gridColumnStart?: Responsive<string>\n /** CSS **grid-column-end** property */\n gridColumnEnd?: Responsive<string>\n /** CSS **grid-row** property */\n gridRow?: Responsive<string>\n /** CSS **grid-row-start** property */\n gridRowStart?: Responsive<string>\n /** CSS **grid-row-end** property */\n gridRowEnd?: Responsive<string>\n}\n\nexport const gridChildProps: Record<string, PropDef> = {\n gridColumn: {\n type: 'string',\n className: 'grid-column',\n variable: '--grid-column',\n },\n gridColumnStart: {\n type: 'string',\n className: 'grid-column-start',\n variable: '--grid-column-start',\n },\n gridColumnEnd: {\n type: 'string',\n className: 'grid-column-end',\n variable: '--grid-column-end',\n },\n gridRow: {\n type: 'string',\n className: 'grid-row',\n variable: '--grid-row',\n },\n gridRowStart: {\n type: 'string',\n className: 'grid-row-start',\n variable: '--grid-row-start',\n },\n gridRowEnd: {\n type: 'string',\n className: 'grid-row-end',\n variable: '--grid-row-end',\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type HeightProps = {\n /** CSS **height** property */\n height?: Responsive<string>\n /** CSS **min-height** property */\n minHeight?: Responsive<string>\n /** CSS **max-height** property */\n maxHeight?: Responsive<string>\n}\n\nexport const heightProps: Record<string, PropDef> = {\n height: {\n type: 'string',\n className: 'height',\n variable: '--height',\n },\n minHeight: {\n type: 'string',\n className: 'min-height',\n variable: '--min-height',\n },\n maxHeight: {\n type: 'string',\n className: 'max-height',\n variable: '--max-height',\n },\n}\n","export const SPACE = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] as const\nexport type Space = (typeof SPACE)[number]\n\nexport const SPACE_AUTO = [...SPACE, 'auto'] as const\nexport type SpaceAuto = (typeof SPACE_AUTO)[number]\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE_AUTO, type SpaceAuto} from '../types/Space'\n\nexport type MarginProps = {\n /** CSS **margin** property */\n margin?: Responsive<SpaceAuto>\n /** CSS **margin-left** and **margin-right** properties */\n marginX?: Responsive<SpaceAuto>\n /** CSS **margin-top** and **margin-bottom** properties */\n marginY?: Responsive<SpaceAuto>\n /** CSS **margin-top** property */\n marginTop?: Responsive<SpaceAuto>\n /** CSS **margin-right** property */\n marginRight?: Responsive<SpaceAuto>\n /** CSS **margin-bottom** property */\n marginBottom?: Responsive<SpaceAuto>\n /** CSS **margin-left** property */\n marginLeft?: Responsive<SpaceAuto>\n}\n\nexport const marginProps: Record<string, PropDef> = {\n margin: {\n type: 'union',\n className: 'm',\n values: SPACE_AUTO,\n },\n marginX: {\n type: 'union',\n className: 'mx',\n values: SPACE_AUTO,\n },\n marginY: {\n type: 'union',\n className: 'my',\n values: SPACE_AUTO,\n },\n marginTop: {\n type: 'union',\n className: 'mt',\n values: SPACE_AUTO,\n },\n marginRight: {\n type: 'union',\n className: 'mr',\n values: SPACE_AUTO,\n },\n marginBottom: {\n type: 'union',\n className: 'mb',\n values: SPACE_AUTO,\n },\n marginLeft: {\n type: 'union',\n className: 'ml',\n values: SPACE_AUTO,\n },\n}\n","export const OVERFLOW = ['visible', 'hidden', 'auto', 'scroll', 'clip']\nexport type Overflow = (typeof OVERFLOW)[number]\n","import {OVERFLOW, type Overflow} from '../types/Overflow'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type OverflowProps = {\n /** CSS **overflow** property */\n overflow?: Responsive<Overflow>\n /** CSS **overflow-x** property */\n overflowX?: Responsive<Overflow>\n /** CSS **overflow-y** property */\n overflowY?: Responsive<Overflow>\n}\n\nexport const overflowProps: Record<string, PropDef> = {\n overflow: {\n type: 'union',\n className: 'overflow',\n values: OVERFLOW,\n },\n overflowX: {\n type: 'union',\n className: 'overflow-x',\n values: OVERFLOW,\n },\n overflowY: {\n type: 'union',\n className: 'overflow-y',\n values: OVERFLOW,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE, type Space} from '../types/Space'\n\nexport interface PaddingProps {\n /** CSS **padding** property */\n padding?: Responsive<Space>\n /** CSS **padding-left** and **padding-right** properties */\n paddingX?: Responsive<Space>\n /** CSS **padding-top** and **padding-bottom** properties */\n paddingY?: Responsive<Space>\n /** CSS **padding-top** property */\n paddingTop?: Responsive<Space>\n /** CSS **padding-right** property */\n paddingRight?: Responsive<Space>\n /** CSS **padding-bottom** property */\n paddingBottom?: Responsive<Space>\n /** CSS **padding-left** property */\n paddingLeft?: Responsive<Space>\n}\n\nexport const paddingProps: Record<string, PropDef> = {\n padding: {\n type: 'union',\n className: 'p',\n values: SPACE,\n },\n paddingX: {\n type: 'union',\n className: 'px',\n values: SPACE,\n },\n paddingY: {\n type: 'union',\n className: 'py',\n values: SPACE,\n },\n paddingTop: {\n type: 'union',\n className: 'pt',\n values: SPACE,\n },\n paddingRight: {\n type: 'union',\n className: 'pr',\n values: SPACE,\n },\n paddingBottom: {\n type: 'union',\n className: 'pb',\n values: SPACE,\n },\n paddingLeft: {\n type: 'union',\n className: 'pl',\n values: SPACE,\n },\n}\n","export const POSITION = ['absolute', 'fixed', 'relative', 'static', 'sticky']\nexport type Position = (typeof POSITION)[number]\n","import {POSITION, type Position} from '../types/Position'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE_AUTO, type SpaceAuto} from '../types/Space'\n\nexport type PositionProps = {\n /** CSS **position** property */\n position?: Responsive<Position>\n /** CSS **inset** property */\n inset?: Responsive<SpaceAuto>\n /** CSS **top** property */\n top?: Responsive<SpaceAuto>\n /** CSS **right** property */\n right?: Responsive<SpaceAuto>\n /** CSS **bottom** property */\n bottom?: Responsive<SpaceAuto>\n /** CSS **left** property */\n left?: Responsive<SpaceAuto>\n /** CSS **z-index** property */\n zIndex?: Responsive<number>\n}\n\nexport const positionProps: Record<string, PropDef> = {\n position: {\n type: 'union',\n className: 'position',\n values: POSITION,\n },\n inset: {\n type: 'union',\n className: 'inset',\n values: SPACE_AUTO,\n },\n top: {\n type: 'union',\n className: 'top',\n values: SPACE_AUTO,\n },\n right: {\n type: 'union',\n className: 'right',\n values: SPACE_AUTO,\n },\n bottom: {\n type: 'union',\n className: 'bottom',\n values: SPACE_AUTO,\n },\n left: {\n type: 'union',\n className: 'left',\n values: SPACE_AUTO,\n },\n zIndex: {\n type: 'number',\n className: 'z-index',\n variable: '--z-index',\n },\n}\n","export const TONE = ['default', 'neutral', 'primary', 'suggest', 'positive', 'caution', 'critical']\nexport type Tone = (typeof TONE)[number]\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {TONE, type Tone} from '../types/Tone'\n\nexport type ToneProps = {\n /** CSS **background-color** property */\n tone?: Responsive<Tone>\n}\n\nexport const toneProps: Record<string, PropDef> = {\n tone: {\n type: 'union',\n className: 'tone',\n values: TONE,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type WidthProps = {\n /** CSS **width** property */\n width?: Responsive<string>\n /** CSS **min-width** property */\n minWidth?: Responsive<string>\n /** CSS **max-width** property */\n maxWidth?: Responsive<string>\n}\n\nexport const widthProps: Record<string, PropDef> = {\n width: {\n type: 'string',\n className: 'width',\n variable: '--width',\n },\n minWidth: {\n type: 'string',\n className: 'min-width',\n variable: '--min-width',\n },\n maxWidth: {\n type: 'string',\n className: 'max-width',\n variable: '--max-width',\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type BorderProps, borderProps} from './border'\nimport {type FlexChildProps, flexChildProps} from './flexChild'\nimport {type GridChildProps, gridChildProps} from './gridChild'\nimport {type HeightProps, heightProps} from './height'\nimport {type MarginProps, marginProps} from './margin'\nimport {type OverflowProps, overflowProps} from './overflow'\nimport {type PaddingProps, paddingProps} from './padding'\nimport {type PositionProps, positionProps} from './position'\nimport {type ToneProps, toneProps} from './tone'\nimport {type WidthProps, widthProps} from './width'\n\nexport interface LayoutProps\n extends\n ToneProps,\n WidthProps,\n HeightProps,\n MarginProps,\n BorderProps,\n PaddingProps,\n PositionProps,\n OverflowProps,\n FlexChildProps,\n GridChildProps {}\n\nexport const layoutProps: Record<string, PropDef> = {\n ...toneProps,\n ...widthProps,\n ...heightProps,\n ...marginProps,\n ...borderProps,\n ...paddingProps,\n ...positionProps,\n ...overflowProps,\n ...flexChildProps,\n ...gridChildProps,\n}\n","export const DISPLAY_BLOCK = ['block', 'inline-block', 'none'] as const\nexport type DisplayBlock = (typeof DISPLAY_BLOCK)[number]\n\nexport const DISPLAY_FLEX = ['flex', 'inline-flex', 'none'] as const\nexport type DisplayFlex = (typeof DISPLAY_FLEX)[number]\n\nexport const DISPLAY_GRID = ['grid', 'inline-grid', 'none'] as const\nexport type DisplayGrid = (typeof DISPLAY_GRID)[number]\n","import classNames from 'classnames'\n\nimport {type PropDef} from '../types/PropDef'\n\nconst PREFIX = 'sui'\nconst BREAKPOINTS_LENGTH = 7\n\ninterface ComponentProps {\n className?: string\n style?: React.CSSProperties\n /* eslint-disable-next-line @typescript-eslint/no-explicit-any */\n [key: string]: any\n}\n\nexport function getProps<P extends ComponentProps, T extends Record<string, PropDef>>(\n componentProps?: P,\n propDefs?: T,\n): ComponentProps {\n let className = componentProps?.className || ''\n let style = componentProps?.style || {}\n const restProps: ComponentProps = {}\n\n for (const key in componentProps) {\n if (!propDefs?.[key] || !propDefs?.[key].className) {\n restProps[key] = componentProps[key]\n continue\n }\n\n if (Array.isArray(componentProps[key])) {\n for (\n let i = 0, len = Math.min(componentProps[key].length, BREAKPOINTS_LENGTH);\n i < len;\n i++\n ) {\n className = classNames(className, getClassName(componentProps[key][i], propDefs[key], i))\n style = {...style, ...getStyle(componentProps[key][i], propDefs[key], i)}\n }\n } else {\n className = classNames(className, getClassName(componentProps[key], propDefs[key]))\n style = {...style, ...getStyle(componentProps[key], propDefs[key])}\n }\n }\n\n return {...restProps, className, style}\n}\n\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any */\nfunction getClassName(prop: any, propDef: PropDef, bp?: number) {\n if (propDef.type === 'union' && propDef.values?.includes(prop)) {\n /* Note: This may need updating depending on the final CSS classname formatting */\n return `${PREFIX}-${propDef.className}${typeof prop === 'string' ? `-${prop}` : prop}${bp ? `-bp-${bp}` : ''}`\n }\n\n if (propDef.type === 'string' || propDef.type === 'number') {\n return `${PREFIX}-${propDef.className}${bp ? `-bp-${bp}` : ''}`\n }\n\n if (propDef.type === 'boolean') {\n return `${PREFIX}-${prop ? propDef.className : propDef.inverse}${bp ? `-bp-${bp}` : ''}`\n }\n\n return ''\n}\n\n/* eslint-disable-next-line @typescript-eslint/no-explicit-any */\nfunction getStyle(prop: any, propDef: PropDef, bp?: number) {\n if (propDef.type === 'string' || propDef.type === 'number') {\n return {\n [`${propDef.variable}${bp ? `-bp-${bp}` : ''}`]: prop,\n }\n }\n\n return {}\n}\n","import {layoutProps} from '../../props/layout'\nimport {DISPLAY_BLOCK} from '../../types/Display'\nimport {type PropDef} from '../../types/PropDef'\n\nexport const boxProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n display: {\n type: 'union',\n className: 'display',\n values: DISPLAY_BLOCK,\n },\n ...layoutProps,\n}\n","import classNames from 'classnames'\nimport React from 'react'\n\nimport {type LayoutProps} from '../../props/layout'\nimport {type DisplayBlock} from '../../types/Display'\nimport {type Responsive} from '../../types/Responsive'\nimport {getProps} from '../../utils/getProps'\nimport {boxProps} from './box.props'\n\n/** @public */\nexport interface BoxProps<T extends React.ElementType> extends LayoutProps {\n /** Element to render */\n as?: T\n /** CSS **display** property */\n display?: Responsive<DisplayBlock>\n}\n\n/** @public */\nexport function Box<T extends React.ElementType = 'div'>({\n display = 'block',\n ...props\n}: BoxProps<T> & Omit<React.ComponentPropsWithRef<T>, keyof BoxProps<T>>) {\n const {as, children, className, style, ...rest} = getProps({display, ...props}, boxProps)\n const Component = as || 'div'\n\n return (\n <Component className={classNames('sui-Box', className)} style={style} data-ui=\"Box\" {...rest}>\n {children}\n </Component>\n )\n}\n","import React from 'react'\n\n/** @public */\nexport function Divider() {\n return (\n <hr\n className=\"sui-Divider sui-border-bottom-none sui-border-left-none sui-border-right-none sui-border-top\"\n data-ui=\"Divider\"\n />\n )\n}\n","export const ALIGN_ITEMS = ['baseline', 'center', 'flex-end', 'flex-start', 'stretch'] as const\nexport type AlignItems = (typeof ALIGN_ITEMS)[number]\n\nexport const JUSTIFY_CONTENT = [\n 'flex-start',\n 'flex-end',\n 'center',\n 'space-between',\n 'space-around',\n 'space-evenly',\n] as const\nexport type JustifyContent = (typeof JUSTIFY_CONTENT)[number]\n\nexport const FLEX_DIRECTION = ['row', 'row-reverse', 'column', 'column-reverse'] as const\nexport type FlexDirection = (typeof FLEX_DIRECTION)[number]\n\nexport const FLEX_WRAP = ['wrap', 'wrap-reverse', 'nowrap'] as const\nexport type FlexWrap = (typeof FLEX_WRAP)[number]\n","import {\n ALIGN_ITEMS,\n type AlignItems,\n FLEX_DIRECTION,\n FLEX_WRAP,\n type FlexDirection,\n type FlexWrap,\n JUSTIFY_CONTENT,\n type JustifyContent,\n} from '../types/Flex'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type FlexParentProps = {\n /** CSS **align-items** property */\n alignItems?: Responsive<AlignItems>\n /** CSS **justify-content** property */\n justifyContent?: Responsive<JustifyContent>\n /** CSS **flex-direction** property */\n flexDirection?: Responsive<FlexDirection>\n /** CSS **flex-wrap** property */\n flexWrap?: Responsive<FlexWrap>\n}\n\nexport const flexParentProps: Record<string, PropDef> = {\n alignItems: {\n type: 'union',\n className: 'align-items',\n values: ALIGN_ITEMS,\n },\n justifyContent: {\n type: 'union',\n className: 'justify-content',\n values: JUSTIFY_CONTENT,\n },\n flexDirection: {\n type: 'union',\n className: 'flex-direction',\n values: FLEX_DIRECTION,\n },\n flexWrap: {\n type: 'union',\n className: 'flex-wrap',\n values: FLEX_WRAP,\n },\n}\n","import {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\nimport {SPACE, type Space} from '../types/Space'\n\nexport type GapProps = {\n /** CSS **gap** property */\n gap?: Responsive<Space>\n /** CSS **row-gap** property */\n rowGap?: Responsive<Space>\n /** CSS **column-gap** property */\n columnGap?: Responsive<Space>\n}\n\nexport const gapProps: Record<string, PropDef> = {\n gap: {\n type: 'union',\n className: 'gap',\n values: SPACE,\n },\n rowGap: {\n type: 'union',\n className: 'row-gap',\n values: SPACE,\n },\n columnGap: {\n type: 'union',\n className: 'column-gap',\n values: SPACE,\n },\n}\n","import {flexParentProps} from '../../props/flexParent'\nimport {gapProps} from '../../props/gap'\nimport {layoutProps} from '../../props/layout'\nimport {DISPLAY_FLEX} from '../../types/Display'\nimport {type PropDef} from '../../types/PropDef'\n\nexport const flexProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n display: {\n type: 'union',\n className: 'display',\n values: DISPLAY_FLEX,\n },\n ...flexParentProps,\n ...gapProps,\n ...layoutProps,\n}\n","import classNames from 'classnames'\nimport React from 'react'\n\nimport type {FlexParentProps} from '../../props/flexParent'\nimport type {GapProps} from '../../props/gap'\nimport {type LayoutProps} from '../../props/layout'\nimport {type DisplayFlex} from '../../types/Display'\nimport {type Responsive} from '../../types/Responsive'\nimport {getProps} from '../../utils/getProps'\nimport {flexProps} from './flex.props'\n\n/** @public */\nexport interface FlexProps<T extends React.ElementType>\n extends FlexParentProps, GapProps, LayoutProps {\n /** Element to render */\n as?: T\n /** CSS **display** property */\n display?: Responsive<DisplayFlex>\n}\n\n/** @public */\nexport function Flex<T extends React.ElementType = 'div'>({\n display = 'flex',\n ...props\n}: FlexProps<T> & Omit<React.ComponentPropsWithRef<T>, keyof FlexProps<T>>) {\n const {as, children, className, style, ...rest} = getProps({display, ...props}, flexProps)\n const Component = as || 'div'\n\n return (\n <Component className={classNames('sui-Flex', className)} style={style} data-ui=\"Flex\" {...rest}>\n {children}\n </Component>\n )\n}\n","export const GRID_AUTO_FLOW = ['row', 'column', 'row dense', 'column dense', 'dense'] as const\nexport type GridAutoFlow = (typeof GRID_AUTO_FLOW)[number]\n","import {GRID_AUTO_FLOW, type GridAutoFlow} from '../types/Grid'\nimport {type PropDef} from '../types/PropDef'\nimport {type Responsive} from '../types/Responsive'\n\nexport type GridParentProps = {\n /** CSS **grid-auto-flow** property */\n gridAutoFlow?: Responsive<GridAutoFlow>\n /** CSS **grid-auto-columns** property */\n gridAutoColumns?: Responsive<string>\n /** CSS **grid-auto-row** property */\n gridAutoRows?: Responsive<string>\n /** CSS **grid-template-columns** property */\n gridTemplateColumns?: Responsive<string>\n /** CSS **grid-template-rows** property */\n gridTemplateRows?: Responsive<string>\n}\n\nexport const gridParentProps: Record<string, PropDef> = {\n gridAutoFlow: {\n type: 'union',\n className: 'grid-auto-flow',\n values: GRID_AUTO_FLOW,\n },\n gridAutoColumns: {\n type: 'string',\n className: 'grid-auto-columns',\n variable: '--grid-auto-columns',\n },\n gridAutoRows: {\n type: 'string',\n className: 'grid-auto-rows',\n variable: '--grid-auto-rows',\n },\n gridTemplateColumns: {\n type: 'string',\n className: 'grid-template-columns',\n variable: '--grid-template-columns',\n },\n gridTemplateRows: {\n type: 'string',\n className: 'grid-template-rows',\n variable: '--grid-template-rows',\n },\n}\n","import {gapProps} from '../../props/gap'\nimport {gridParentProps} from '../../props/gridParent'\nimport {layoutProps} from '../../props/layout'\nimport {DISPLAY_GRID} from '../../types/Display'\nimport {type PropDef} from '../../types/PropDef'\n\nexport const gridProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n display: {\n type: 'union',\n className: 'display',\n values: DISPLAY_GRID,\n },\n ...gridParentProps,\n ...gapProps,\n ...layoutProps,\n}\n","import classNames from 'classnames'\nimport React from 'react'\n\nimport {type GapProps} from '../../props/gap'\nimport {type GridParentProps} from '../../props/gridParent'\nimport {type LayoutProps} from '../../props/layout'\nimport {type DisplayGrid} from '../../types/Display'\nimport {type Responsive} from '../../types/Responsive'\nimport {getProps} from '../../utils/getProps'\nimport {gridProps} from './grid.props'\n\n/** @public */\nexport interface GridProps<T extends React.ElementType>\n extends GridParentProps, GapProps, LayoutProps {\n /** Element to render */\n as?: T\n /** CSS **display** property */\n display?: Responsive<DisplayGrid>\n}\n\n/** @public */\nexport function Grid<T extends React.ElementType = 'div'>({\n display = 'grid',\n ...props\n}: GridProps<T> & Omit<React.ComponentPropsWithRef<T>, keyof GridProps<T>>) {\n const {as, children, className, style, ...rest} = getProps({display, ...props}, gridProps)\n const Component = as || 'div'\n\n return (\n <Component className={classNames('sui-Grid', className)} style={style} data-ui=\"Grid\" {...rest}>\n {children}\n </Component>\n )\n}\n","export const FONT_WEIGHT = ['regular', 'medium', 'semibold', 'bold']\nexport type FontWeight = (typeof FONT_WEIGHT)[number]\n","export const TEXT_ALIGN = ['left', 'center', 'right', 'justify']\nexport type TextAlign = (typeof TEXT_ALIGN)[number]\n","import {FONT_WEIGHT, type FontWeight} from '../types/FontWeight'\nimport {type PropDef} from '../types/PropDef'\nimport {TEXT_ALIGN, type TextAlign} from '../types/TextAlign'\nimport {type MarginProps, marginProps} from './margin'\n\nexport interface TypographyProps extends MarginProps {\n /** CSS **text-align** property */\n align?: TextAlign\n /** CSS **-webkit-line-clamp** property */\n lineClamp?: number\n /** CSS **color** property */\n muted?: boolean\n /** CSS **text-box-trim** property */\n trim?: boolean\n /** CSS **font-weight** property */\n weight?: FontWeight\n}\n\nexport const typographyProps: Record<string, PropDef> = {\n align: {\n type: 'union',\n className: 'text',\n values: TEXT_ALIGN,\n },\n lineClamp: {\n type: 'number',\n className: 'line-clamp',\n variable: '--line-clamp',\n },\n muted: {\n type: 'boolean',\n className: 'text-muted',\n inverse: 'text-default',\n },\n trim: {\n type: 'boolean',\n className: 'text-trim',\n inverse: 'text-trim-none',\n },\n weight: {\n type: 'union',\n className: 'weight',\n values: FONT_WEIGHT,\n },\n ...marginProps,\n}\n","export const TEXT_SIZE = [0, 1, 2, 3, 4]\nexport type TextSize = (typeof TEXT_SIZE)[number]\n","import {typographyProps} from '../../props/typography'\nimport {type PropDef} from '../../types/PropDef'\nimport {TEXT_SIZE} from '../../types/Text'\n\nexport const textProps: Record<string, PropDef> = {\n as: {\n type: 'string',\n },\n size: {\n type: 'union',\n className: 'text-body',\n values: TEXT_SIZE,\n },\n ...typographyProps,\n}\n","import classNames from 'classnames'\nimport React from 'react'\n\nimport type {TypographyProps} from '../../props/typography'\nimport type {TextSize} from '../../types/Text'\nimport {getProps} from '../../utils/getProps'\nimport {textProps} from './text.props'\n\n/** @public */\nexport interface TextProps<T extends React.ElementType> extends TypographyProps {\n /** Element to render */\n as?: T\n /** CSS **font-size** property */\n size?: TextSize\n}\n\n/** @public */\nexport function Text<T extends React.ElementType = 'p'>({\n size = 2,\n ...props\n}: TextProps<T> & Omit<React.ComponentPropsWithRef<T>, keyof TextProps<T>>) {\n const {as, children, className, style, ...rest} = getProps({size, ...props}, textProps)\n const Component = as || 'p'\n\n if (props.lineClamp && props.trim) {\n return (\n <Component\n className={classNames('sui-Text', className?.replace('sui-line-clamp', ''))}\n style={style}\n data-ui=\"Text\"\n {...rest}\n >\n <span className=\"sui-line-clamp\">{children}</span>\n </Component>\n )\n }\n\n return (\n <Component className={classNames('sui-Text', className)} style={style} data-ui=\"Text\" {...rest}>\n {children}\n </Component>\n )\n}\n"],"names":[],"mappings":";;AAAO,MAAM,SAAS,CAAC,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,MAAM,GCmBrC,cAAuC;AAAA,EAClD,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EAAA;AAAA,EAEX,WAAW;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EAAA;AAAA,EAEX,aAAa;AAAA,IACX,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EAAA;AAAA,EAEX,cAAc;AAAA,IACZ,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EAAA;AAAA,EAEX,YAAY;AAAA,IACV,MAAM;AAAA,IACN,WAAW;AAAA,IACX,SAAS;AAAA,EAAA;AAAA,EAEX,QAAQ;AAAA,IACN,MAAM;AAAA,IACN,WAAW;AAAA,IACX,QAAQ;AAAA,EAAA;AAEZ,GCtCa,iBAA0C;AAAA,EACrD,WAAW;AAAA,IACT,MAAM;AAAA,IACN,WAAW;AAAA,IACX,UAAU;AAAA,EAAA;AAAA,EAEZ,UAAU;AAAA,IACR,MAAM;AAAA,IACN,WAAW;AAAA,IACX,UAAU;AAAA,EAAA;AAAA,EAEZ,YAAY;AAAA,IACV,MAAM;AAAA,IACN,WAAW;AAAA,IACX,UAAU;AAAA,EAAA;AAEd,GCVa,iBAA0C;AAAA,EACrD,YAAY;AAAA,IACV,MAAM;AAAA,IACN,WAAW;AAAA,IACX,UAAU;AAAA,EAAA;AAAA,EAEZ,iBAAiB;AAAA,IACf,MAAM;AAAA,IACN,WAAW;AAAA,IACX,UAAU;AAAA,EAAA;AA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B,YAAqC;AAAA,EAChD,IAAI;AAAA,IACF,MAAM;AAAA,EAAA;AAAA,EAER,MAAM;AAAA,IACJ,MAAM;AAAA,IACN,WAAW;AAAA,IACX,QAAQ;AAAA,EAAA;AAAA,EAEV,GAAG;AACL;ACGO,SAAS,KAAwC;AAAA,EACtD,OAAO;AAAA,EACP,GAAG;AACL,GAA4E;AAC1E,QAAM,EAAC,IAAI,UAAU,WAAW,OAAO,GAAG,SAAQ,SAAS,EAAC,MAAM,GAAG,MAAA,GAAQ,SAAS,GAChF,YAAY,MAAM;AAExB,SAAI,MAAM,aAAa,MAAM,OAEzB;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAW,WAAW,YAAY,WAAW,QAAQ,kBAAkB,EAAE,CAAC;AAAA,MAC1E;AAAA,MACA,WAAQ;AAAA,MACP,GAAG;AAAA,MAEJ,UAAA,oBAAC,QAAA,EAAK,WAAU,kBAAkB,SAAA,CAAS;AAAA,IAAA;AAAA,EAAA,IAM/C,oBAAC,WAAA,EAAU,WAAW,WAAW,YAAY,SAAS,GAAG,OAAc,WAAQ,QAAQ,GAAG,MACvF,SAAA,CACH;AAEJ;"}
package/dist/styles.css CHANGED
@@ -222,6 +222,110 @@
222
222
  --label-5: 400 15px/1.25 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Liberation Sans, sans-serif;
223
223
  }
224
224
 
225
+ *,
226
+ *::before,
227
+ *::after {
228
+ margin: 0;
229
+ padding: 0;
230
+ box-sizing: border-box;
231
+ }
232
+
233
+ @font-face {
234
+ font-family: Inter;
235
+ font-style: normal;
236
+ font-weight: 400;
237
+ font-display: swap;
238
+ src: url('https://studio-static.sanity.io/Inter-Regular.woff2') format('woff2');
239
+ }
240
+
241
+ @font-face {
242
+ font-family: Inter;
243
+ font-style: italic;
244
+ font-weight: 400;
245
+ font-display: swap;
246
+ src: url('https://studio-static.sanity.io/Inter-Italic.woff2') format('woff2');
247
+ }
248
+
249
+ @font-face {
250
+ font-family: Inter;
251
+ font-style: normal;
252
+ font-weight: 500;
253
+ font-display: swap;
254
+ src: url('https://studio-static.sanity.io/Inter-Medium.woff2') format('woff2');
255
+ }
256
+
257
+ @font-face {
258
+ font-family: Inter;
259
+ font-style: italic;
260
+ font-weight: 500;
261
+ font-display: swap;
262
+ src: url('https://studio-static.sanity.io/Inter-MediumItalic.woff2') format('woff2');
263
+ }
264
+
265
+ @font-face {
266
+ font-family: Inter;
267
+ font-style: normal;
268
+ font-weight: 600;
269
+ font-display: swap;
270
+ src: url('https://studio-static.sanity.io/Inter-SemiBold.woff2') format('woff2');
271
+ }
272
+
273
+ @font-face {
274
+ font-family: Inter;
275
+ font-style: italic;
276
+ font-weight: 600;
277
+ font-display: swap;
278
+ src: url('https://studio-static.sanity.io/Inter-SemiBoldItalic.woff2') format('woff2');
279
+ }
280
+
281
+ @font-face {
282
+ font-family: Inter;
283
+ font-style: normal;
284
+ font-weight: 700;
285
+ font-display: swap;
286
+ src: url('https://studio-static.sanity.io/Inter-Bold.woff2') format('woff2');
287
+ }
288
+
289
+ @font-face {
290
+ font-family: Inter;
291
+ font-style: italic;
292
+ font-weight: 700;
293
+ font-display: swap;
294
+ src: url('https://studio-static.sanity.io/Inter-BoldItalic.woff2') format('woff2');
295
+ }
296
+
297
+ @font-face {
298
+ font-family: Inter;
299
+ font-style: normal;
300
+ font-weight: 800;
301
+ font-display: swap;
302
+ src: url('https://studio-static.sanity.io/Inter-ExtraBold.woff2') format('woff2');
303
+ }
304
+
305
+ @font-face {
306
+ font-family: Inter;
307
+ font-style: italic;
308
+ font-weight: 800;
309
+ font-display: swap;
310
+ src: url('https://studio-static.sanity.io/Inter-ExtraBoldItalic.woff2') format('woff2');
311
+ }
312
+
313
+ @font-face {
314
+ font-family: Inter;
315
+ font-style: normal;
316
+ font-weight: 900;
317
+ font-display: swap;
318
+ src: url('https://studio-static.sanity.io/Inter-Black.woff2') format('woff2');
319
+ }
320
+
321
+ @font-face {
322
+ font-family: Inter;
323
+ font-style: italic;
324
+ font-weight: 900;
325
+ font-display: swap;
326
+ src: url('https://studio-static.sanity.io/Inter-BlackItalic.woff2') format('woff2');
327
+ }
328
+
225
329
  .sui-flex-basis {
226
330
  flex-basis: var(--flex-basis);
227
331
  }
@@ -730,6 +834,53 @@
730
834
  }
731
835
  }
732
836
 
837
+ .sui-line-clamp {
838
+ display: -webkit-box;
839
+ -webkit-line-clamp: var(--line-clamp);
840
+ -webkit-box-orient: vertical;
841
+ overflow: hidden;
842
+ }
843
+
844
+ .sui-z-index {
845
+ z-index: var(--z-index);
846
+ }
847
+
848
+ @media (min-width: 360px) {
849
+ .sui-z-index-bp-1 {
850
+ z-index: var(--z-index);
851
+ }
852
+ }
853
+
854
+ @media (min-width: 600px) {
855
+ .sui-z-index-bp-2 {
856
+ z-index: var(--z-index);
857
+ }
858
+ }
859
+
860
+ @media (min-width: 900px) {
861
+ .sui-z-index-bp-3 {
862
+ z-index: var(--z-index);
863
+ }
864
+ }
865
+
866
+ @media (min-width: 1200px) {
867
+ .sui-z-index-bp-4 {
868
+ z-index: var(--z-index);
869
+ }
870
+ }
871
+
872
+ @media (min-width: 1800px) {
873
+ .sui-z-index-bp-5 {
874
+ z-index: var(--z-index);
875
+ }
876
+ }
877
+
878
+ @media (min-width: 2400px) {
879
+ .sui-z-index-bp-6 {
880
+ z-index: var(--z-index);
881
+ }
882
+ }
883
+
733
884
  .sui-border { border: 1px solid var(--border-color, var(--gray-200)) }
734
885
 
735
886
  .sui-border-top { border-top: 1px solid var(--border-color, var(--gray-200)) }
@@ -1508,12 +1659,6 @@
1508
1659
  }
1509
1660
  }
1510
1661
 
1511
- .sui-leading-single { line-height: 1; }
1512
-
1513
- .sui-leading-compact { line-height: 1.25; }
1514
-
1515
- .sui-leading-body { line-height: 1.5; }
1516
-
1517
1662
  .sui-overflow-visible {
1518
1663
  overflow: visible;
1519
1664
  }
@@ -2074,7 +2219,158 @@
2074
2219
  }
2075
2220
  }
2076
2221
 
2077
- .sui-text-uppercase { text-transform: uppercase; }
2222
+ .sui-text-muted { color: var(--gray-600) }
2223
+
2224
+ .sui-text-default { color: var(--gray-800) }
2225
+
2226
+ .sui-text-trim:before,
2227
+ .sui-text-trim:after {
2228
+ content: '';
2229
+ display: block;
2230
+ width: 0;
2231
+ height: 0;
2232
+ }
2233
+
2234
+ .sui-text-trim:before {
2235
+ margin-bottom: var(--trim);
2236
+ }
2237
+
2238
+ .sui-text-trim:after {
2239
+ margin-top: var(--trim);
2240
+ }
2241
+
2242
+ .sui-text-trim-none:before,
2243
+ .sui-text-trim-none:after {
2244
+ content: none;
2245
+ }
2246
+
2247
+ .sui-text-body0 {
2248
+ --trim: -4px;
2249
+ }
2250
+
2251
+ .sui-text-body1 {
2252
+ --trim: -5px;
2253
+ }
2254
+
2255
+ .sui-text-body2 {
2256
+ --trim: -6px;
2257
+ }
2258
+
2259
+ .sui-text-body3 {
2260
+ --trim: -7px;
2261
+ }
2262
+
2263
+ .sui-text-body4 {
2264
+ --trim: -8px;
2265
+ }
2266
+
2267
+ @media (min-width: 360px) {
2268
+ .sui-text-body0-bp-1 {
2269
+ --trim: -4px;
2270
+ }
2271
+ .sui-text-body1-bp-1 {
2272
+ --trim: -5px;
2273
+ }
2274
+ .sui-text-body2-bp-1 {
2275
+ --trim: -6px;
2276
+ }
2277
+ .sui-text-body3-bp-1 {
2278
+ --trim: -7px;
2279
+ }
2280
+ .sui-text-body4-bp-1 {
2281
+ --trim: -8px;
2282
+ }
2283
+ }
2284
+
2285
+ @media (min-width: 600px) {
2286
+ .sui-text-body0-bp-2 {
2287
+ --trim: -4px;
2288
+ }
2289
+ .sui-text-body1-bp-2 {
2290
+ --trim: -5px;
2291
+ }
2292
+ .sui-text-body2-bp-2 {
2293
+ --trim: -6px;
2294
+ }
2295
+ .sui-text-body3-bp-2 {
2296
+ --trim: -7px;
2297
+ }
2298
+ .sui-text-body4-bp-2 {
2299
+ --trim: -8px;
2300
+ }
2301
+ }
2302
+
2303
+ @media (min-width: 900px) {
2304
+ .sui-text-body0-bp-3 {
2305
+ --trim: -4px;
2306
+ }
2307
+ .sui-text-body1-bp-3 {
2308
+ --trim: -5px;
2309
+ }
2310
+ .sui-text-body2-bp-3 {
2311
+ --trim: -6px;
2312
+ }
2313
+ .sui-text-body3-bp-3 {
2314
+ --trim: -7px;
2315
+ }
2316
+ .sui-text-body4-bp-3 {
2317
+ --trim: -8px;
2318
+ }
2319
+ }
2320
+
2321
+ @media (min-width: 1200px) {
2322
+ .sui-text-body0-bp-4 {
2323
+ --trim: -4px;
2324
+ }
2325
+ .sui-text-body1-bp-4 {
2326
+ --trim: -5px;
2327
+ }
2328
+ .sui-text-body2-bp-4 {
2329
+ --trim: -6px;
2330
+ }
2331
+ .sui-text-body3-bp-4 {
2332
+ --trim: -7px;
2333
+ }
2334
+ .sui-text-body4-bp-4 {
2335
+ --trim: -8px;
2336
+ }
2337
+ }
2338
+
2339
+ @media (min-width: 1800px) {
2340
+ .sui-text-body0-bp-5 {
2341
+ --trim: -4px;
2342
+ }
2343
+ .sui-text-body1-bp-5 {
2344
+ --trim: -5px;
2345
+ }
2346
+ .sui-text-body2-bp-5 {
2347
+ --trim: -6px;
2348
+ }
2349
+ .sui-text-body3-bp-5 {
2350
+ --trim: -7px;
2351
+ }
2352
+ .sui-text-body4-bp-5 {
2353
+ --trim: -8px;
2354
+ }
2355
+ }
2356
+
2357
+ @media (min-width: 2400px) {
2358
+ .sui-text-body0-bp-6 {
2359
+ --trim: -4px;
2360
+ }
2361
+ .sui-text-body1-bp-6 {
2362
+ --trim: -5px;
2363
+ }
2364
+ .sui-text-body2-bp-6 {
2365
+ --trim: -6px;
2366
+ }
2367
+ .sui-text-body3-bp-6 {
2368
+ --trim: -7px;
2369
+ }
2370
+ .sui-text-body4-bp-6 {
2371
+ --trim: -8px;
2372
+ }
2373
+ }
2078
2374
 
2079
2375
  .sui-tone-default {
2080
2376
  background: var(--white);
@@ -2687,18 +2983,6 @@
2687
2983
  }
2688
2984
  }
2689
2985
 
2690
- .sui-font-sans { font-family: var(--sans); }
2691
-
2692
- .sui-font-mono { font-family: var(--mono); }
2693
-
2694
- .sui-weight-bold { font-weight: var(--bold); }
2695
-
2696
- .sui-weight-medium { font-weight: var(--medium); }
2697
-
2698
- .sui-weight-regular { font-weight: var(--regular); }
2699
-
2700
- .sui-weight-semibold { font-weight: var(--semibold); }
2701
-
2702
2986
  .sui-inset0 {
2703
2987
  inset: var(--space-0);
2704
2988
  }
@@ -8031,14 +8315,10 @@
8031
8315
  }
8032
8316
  }
8033
8317
 
8034
- .sui-Box {
8035
- display: block;
8036
- }
8318
+ .sui-weight-bold { font-weight: var(--bold); }
8037
8319
 
8038
- .sui-Flex {
8039
- display: flex;
8040
- }
8320
+ .sui-weight-medium { font-weight: var(--medium); }
8041
8321
 
8042
- .sui-Grid {
8043
- display: grid;
8044
- }
8322
+ .sui-weight-regular { font-weight: var(--regular); }
8323
+
8324
+ .sui-weight-semibold { font-weight: var(--semibold); }
@@ -222,6 +222,110 @@
222
222
  --label-5: 400 15px/1.25 Inter, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Liberation Sans, sans-serif;
223
223
  }
224
224
 
225
+ *,
226
+ *::before,
227
+ *::after {
228
+ margin: 0;
229
+ padding: 0;
230
+ box-sizing: border-box;
231
+ }
232
+
233
+ @font-face {
234
+ font-family: Inter;
235
+ font-style: normal;
236
+ font-weight: 400;
237
+ font-display: swap;
238
+ src: url('https://studio-static.sanity.io/Inter-Regular.woff2') format('woff2');
239
+ }
240
+
241
+ @font-face {
242
+ font-family: Inter;
243
+ font-style: italic;
244
+ font-weight: 400;
245
+ font-display: swap;
246
+ src: url('https://studio-static.sanity.io/Inter-Italic.woff2') format('woff2');
247
+ }
248
+
249
+ @font-face {
250
+ font-family: Inter;
251
+ font-style: normal;
252
+ font-weight: 500;
253
+ font-display: swap;
254
+ src: url('https://studio-static.sanity.io/Inter-Medium.woff2') format('woff2');
255
+ }
256
+
257
+ @font-face {
258
+ font-family: Inter;
259
+ font-style: italic;
260
+ font-weight: 500;
261
+ font-display: swap;
262
+ src: url('https://studio-static.sanity.io/Inter-MediumItalic.woff2') format('woff2');
263
+ }
264
+
265
+ @font-face {
266
+ font-family: Inter;
267
+ font-style: normal;
268
+ font-weight: 600;
269
+ font-display: swap;
270
+ src: url('https://studio-static.sanity.io/Inter-SemiBold.woff2') format('woff2');
271
+ }
272
+
273
+ @font-face {
274
+ font-family: Inter;
275
+ font-style: italic;
276
+ font-weight: 600;
277
+ font-display: swap;
278
+ src: url('https://studio-static.sanity.io/Inter-SemiBoldItalic.woff2') format('woff2');
279
+ }
280
+
281
+ @font-face {
282
+ font-family: Inter;
283
+ font-style: normal;
284
+ font-weight: 700;
285
+ font-display: swap;
286
+ src: url('https://studio-static.sanity.io/Inter-Bold.woff2') format('woff2');
287
+ }
288
+
289
+ @font-face {
290
+ font-family: Inter;
291
+ font-style: italic;
292
+ font-weight: 700;
293
+ font-display: swap;
294
+ src: url('https://studio-static.sanity.io/Inter-BoldItalic.woff2') format('woff2');
295
+ }
296
+
297
+ @font-face {
298
+ font-family: Inter;
299
+ font-style: normal;
300
+ font-weight: 800;
301
+ font-display: swap;
302
+ src: url('https://studio-static.sanity.io/Inter-ExtraBold.woff2') format('woff2');
303
+ }
304
+
305
+ @font-face {
306
+ font-family: Inter;
307
+ font-style: italic;
308
+ font-weight: 800;
309
+ font-display: swap;
310
+ src: url('https://studio-static.sanity.io/Inter-ExtraBoldItalic.woff2') format('woff2');
311
+ }
312
+
313
+ @font-face {
314
+ font-family: Inter;
315
+ font-style: normal;
316
+ font-weight: 900;
317
+ font-display: swap;
318
+ src: url('https://studio-static.sanity.io/Inter-Black.woff2') format('woff2');
319
+ }
320
+
321
+ @font-face {
322
+ font-family: Inter;
323
+ font-style: italic;
324
+ font-weight: 900;
325
+ font-display: swap;
326
+ src: url('https://studio-static.sanity.io/Inter-BlackItalic.woff2') format('woff2');
327
+ }
328
+
225
329
  .sui-flex-basis {
226
330
  flex-basis: var(--flex-basis);
227
331
  }
@@ -730,6 +834,53 @@
730
834
  }
731
835
  }
732
836
 
837
+ .sui-line-clamp {
838
+ display: -webkit-box;
839
+ -webkit-line-clamp: var(--line-clamp);
840
+ -webkit-box-orient: vertical;
841
+ overflow: hidden;
842
+ }
843
+
844
+ .sui-z-index {
845
+ z-index: var(--z-index);
846
+ }
847
+
848
+ @media (min-width: 360px) {
849
+ .sui-z-index-bp-1 {
850
+ z-index: var(--z-index);
851
+ }
852
+ }
853
+
854
+ @media (min-width: 600px) {
855
+ .sui-z-index-bp-2 {
856
+ z-index: var(--z-index);
857
+ }
858
+ }
859
+
860
+ @media (min-width: 900px) {
861
+ .sui-z-index-bp-3 {
862
+ z-index: var(--z-index);
863
+ }
864
+ }
865
+
866
+ @media (min-width: 1200px) {
867
+ .sui-z-index-bp-4 {
868
+ z-index: var(--z-index);
869
+ }
870
+ }
871
+
872
+ @media (min-width: 1800px) {
873
+ .sui-z-index-bp-5 {
874
+ z-index: var(--z-index);
875
+ }
876
+ }
877
+
878
+ @media (min-width: 2400px) {
879
+ .sui-z-index-bp-6 {
880
+ z-index: var(--z-index);
881
+ }
882
+ }
883
+
733
884
  .sui-border { border: 1px solid var(--border-color, var(--gray-200)) }
734
885
 
735
886
  .sui-border-top { border-top: 1px solid var(--border-color, var(--gray-200)) }
@@ -1508,12 +1659,6 @@
1508
1659
  }
1509
1660
  }
1510
1661
 
1511
- .sui-leading-single { line-height: 1; }
1512
-
1513
- .sui-leading-compact { line-height: 1.25; }
1514
-
1515
- .sui-leading-body { line-height: 1.5; }
1516
-
1517
1662
  .sui-overflow-visible {
1518
1663
  overflow: visible;
1519
1664
  }
@@ -2074,7 +2219,158 @@
2074
2219
  }
2075
2220
  }
2076
2221
 
2077
- .sui-text-uppercase { text-transform: uppercase; }
2222
+ .sui-text-muted { color: var(--gray-600) }
2223
+
2224
+ .sui-text-default { color: var(--gray-800) }
2225
+
2226
+ .sui-text-trim:before,
2227
+ .sui-text-trim:after {
2228
+ content: '';
2229
+ display: block;
2230
+ width: 0;
2231
+ height: 0;
2232
+ }
2233
+
2234
+ .sui-text-trim:before {
2235
+ margin-bottom: var(--trim);
2236
+ }
2237
+
2238
+ .sui-text-trim:after {
2239
+ margin-top: var(--trim);
2240
+ }
2241
+
2242
+ .sui-text-trim-none:before,
2243
+ .sui-text-trim-none:after {
2244
+ content: none;
2245
+ }
2246
+
2247
+ .sui-text-body0 {
2248
+ --trim: -4px;
2249
+ }
2250
+
2251
+ .sui-text-body1 {
2252
+ --trim: -5px;
2253
+ }
2254
+
2255
+ .sui-text-body2 {
2256
+ --trim: -6px;
2257
+ }
2258
+
2259
+ .sui-text-body3 {
2260
+ --trim: -7px;
2261
+ }
2262
+
2263
+ .sui-text-body4 {
2264
+ --trim: -8px;
2265
+ }
2266
+
2267
+ @media (min-width: 360px) {
2268
+ .sui-text-body0-bp-1 {
2269
+ --trim: -4px;
2270
+ }
2271
+ .sui-text-body1-bp-1 {
2272
+ --trim: -5px;
2273
+ }
2274
+ .sui-text-body2-bp-1 {
2275
+ --trim: -6px;
2276
+ }
2277
+ .sui-text-body3-bp-1 {
2278
+ --trim: -7px;
2279
+ }
2280
+ .sui-text-body4-bp-1 {
2281
+ --trim: -8px;
2282
+ }
2283
+ }
2284
+
2285
+ @media (min-width: 600px) {
2286
+ .sui-text-body0-bp-2 {
2287
+ --trim: -4px;
2288
+ }
2289
+ .sui-text-body1-bp-2 {
2290
+ --trim: -5px;
2291
+ }
2292
+ .sui-text-body2-bp-2 {
2293
+ --trim: -6px;
2294
+ }
2295
+ .sui-text-body3-bp-2 {
2296
+ --trim: -7px;
2297
+ }
2298
+ .sui-text-body4-bp-2 {
2299
+ --trim: -8px;
2300
+ }
2301
+ }
2302
+
2303
+ @media (min-width: 900px) {
2304
+ .sui-text-body0-bp-3 {
2305
+ --trim: -4px;
2306
+ }
2307
+ .sui-text-body1-bp-3 {
2308
+ --trim: -5px;
2309
+ }
2310
+ .sui-text-body2-bp-3 {
2311
+ --trim: -6px;
2312
+ }
2313
+ .sui-text-body3-bp-3 {
2314
+ --trim: -7px;
2315
+ }
2316
+ .sui-text-body4-bp-3 {
2317
+ --trim: -8px;
2318
+ }
2319
+ }
2320
+
2321
+ @media (min-width: 1200px) {
2322
+ .sui-text-body0-bp-4 {
2323
+ --trim: -4px;
2324
+ }
2325
+ .sui-text-body1-bp-4 {
2326
+ --trim: -5px;
2327
+ }
2328
+ .sui-text-body2-bp-4 {
2329
+ --trim: -6px;
2330
+ }
2331
+ .sui-text-body3-bp-4 {
2332
+ --trim: -7px;
2333
+ }
2334
+ .sui-text-body4-bp-4 {
2335
+ --trim: -8px;
2336
+ }
2337
+ }
2338
+
2339
+ @media (min-width: 1800px) {
2340
+ .sui-text-body0-bp-5 {
2341
+ --trim: -4px;
2342
+ }
2343
+ .sui-text-body1-bp-5 {
2344
+ --trim: -5px;
2345
+ }
2346
+ .sui-text-body2-bp-5 {
2347
+ --trim: -6px;
2348
+ }
2349
+ .sui-text-body3-bp-5 {
2350
+ --trim: -7px;
2351
+ }
2352
+ .sui-text-body4-bp-5 {
2353
+ --trim: -8px;
2354
+ }
2355
+ }
2356
+
2357
+ @media (min-width: 2400px) {
2358
+ .sui-text-body0-bp-6 {
2359
+ --trim: -4px;
2360
+ }
2361
+ .sui-text-body1-bp-6 {
2362
+ --trim: -5px;
2363
+ }
2364
+ .sui-text-body2-bp-6 {
2365
+ --trim: -6px;
2366
+ }
2367
+ .sui-text-body3-bp-6 {
2368
+ --trim: -7px;
2369
+ }
2370
+ .sui-text-body4-bp-6 {
2371
+ --trim: -8px;
2372
+ }
2373
+ }
2078
2374
 
2079
2375
  .sui-tone-default {
2080
2376
  background: var(--white);
@@ -2687,18 +2983,6 @@
2687
2983
  }
2688
2984
  }
2689
2985
 
2690
- .sui-font-sans { font-family: var(--sans); }
2691
-
2692
- .sui-font-mono { font-family: var(--mono); }
2693
-
2694
- .sui-weight-bold { font-weight: var(--bold); }
2695
-
2696
- .sui-weight-medium { font-weight: var(--medium); }
2697
-
2698
- .sui-weight-regular { font-weight: var(--regular); }
2699
-
2700
- .sui-weight-semibold { font-weight: var(--semibold); }
2701
-
2702
2986
  .sui-inset0 {
2703
2987
  inset: var(--space-0);
2704
2988
  }
@@ -8030,3 +8314,11 @@
8030
8314
  font: var(--label-5);
8031
8315
  }
8032
8316
  }
8317
+
8318
+ .sui-weight-bold { font-weight: var(--bold); }
8319
+
8320
+ .sui-weight-medium { font-weight: var(--medium); }
8321
+
8322
+ .sui-weight-regular { font-weight: var(--regular); }
8323
+
8324
+ .sui-weight-semibold { font-weight: var(--semibold); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sanity-labs/ui-poc",
3
- "version": "0.0.1-alpha.1",
3
+ "version": "0.0.1-alpha.2",
4
4
  "description": "Sanity UI POC",
5
5
  "keywords": [],
6
6
  "homepage": "https://github.com/sanity-labs/ui-poc#readme",