@svadmin/surface 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +9 -3
- package/STYLING.md +4 -2
- package/compatibility.json +18 -7
- package/dist/agent-contract.d.ts +1 -1
- package/dist/agent-contract.js +5 -2
- package/dist/builtin-schemas.js +1 -1
- package/dist/business-data.d.ts +16 -0
- package/dist/business-data.js +42 -0
- package/dist/business-definitions.d.ts +28 -0
- package/dist/business-definitions.js +53 -0
- package/dist/business.d.ts +3 -0
- package/dist/business.js +17 -0
- package/dist/components/ActivityFeedWidget.svelte +34 -0
- package/dist/components/ActivityFeedWidget.svelte.d.ts +4 -0
- package/dist/components/MetricWidget.svelte +2 -1
- package/dist/components/MetricWidget.svelte.d.ts +1 -0
- package/dist/components/ResourceDetailWidget.svelte +56 -0
- package/dist/components/ResourceDetailWidget.svelte.d.ts +4 -0
- package/dist/components/ResourceFormBody.svelte +1 -1
- package/dist/components/ResourceTableWidget.svelte +2 -1
- package/dist/components/ResourceTableWidget.svelte.d.ts +1 -0
- package/dist/components/SurfaceEditPreview.svelte +1 -1
- package/dist/components/SurfaceRenderer.svelte +2 -1
- package/dist/components/SurfaceRenderer.svelte.d.ts +1 -0
- package/dist/design-contract.d.ts +2 -0
- package/dist/design-contract.js +2 -0
- package/dist/localization.d.ts +11 -1
- package/dist/localization.js +20 -0
- package/dist/recipes.d.ts +20 -0
- package/dist/recipes.js +20 -0
- package/dist/styles/{editor.generated.js → editor.js} +1 -1
- package/dist/styles.css +41 -1260
- package/dist/types.d.ts +1 -1
- package/dist/validation.js +12 -6
- package/dist/workflows/catalog.js +1 -1
- package/package.json +15 -8
- package/dist/styled-system/css/conditions.js +0 -36
- package/dist/styled-system/css/css.d.ts +0 -22
- package/dist/styled-system/css/css.js +0 -45
- package/dist/styled-system/css/cva.d.ts +0 -6
- package/dist/styled-system/css/cva.js +0 -87
- package/dist/styled-system/css/cx.d.ts +0 -5
- package/dist/styled-system/css/cx.js +0 -15
- package/dist/styled-system/css/index.d.ts +0 -5
- package/dist/styled-system/css/index.js +0 -4
- package/dist/styled-system/css/sva.d.ts +0 -4
- package/dist/styled-system/css/sva.js +0 -46
- package/dist/styled-system/design-contract.d.ts +0 -13
- package/dist/styled-system/design-contract.js +0 -11
- package/dist/styled-system/helpers.js +0 -316
- package/dist/styled-system/patterns/aspect-ratio.d.ts +0 -20
- package/dist/styled-system/patterns/aspect-ratio.js +0 -38
- package/dist/styled-system/patterns/bleed.d.ts +0 -21
- package/dist/styled-system/patterns/bleed.js +0 -24
- package/dist/styled-system/patterns/box.d.ts +0 -20
- package/dist/styled-system/patterns/box.js +0 -15
- package/dist/styled-system/patterns/center.d.ts +0 -20
- package/dist/styled-system/patterns/center.js +0 -21
- package/dist/styled-system/patterns/circle.d.ts +0 -20
- package/dist/styled-system/patterns/circle.js +0 -25
- package/dist/styled-system/patterns/container.d.ts +0 -20
- package/dist/styled-system/patterns/container.js +0 -21
- package/dist/styled-system/patterns/cq.d.ts +0 -21
- package/dist/styled-system/patterns/cq.js +0 -21
- package/dist/styled-system/patterns/divider.d.ts +0 -22
- package/dist/styled-system/patterns/divider.js +0 -25
- package/dist/styled-system/patterns/flex.d.ts +0 -26
- package/dist/styled-system/patterns/flex.js +0 -26
- package/dist/styled-system/patterns/float.d.ts +0 -23
- package/dist/styled-system/patterns/float.js +0 -52
- package/dist/styled-system/patterns/grid-item.d.ts +0 -25
- package/dist/styled-system/patterns/grid-item.js +0 -25
- package/dist/styled-system/patterns/grid.d.ts +0 -24
- package/dist/styled-system/patterns/grid.js +0 -27
- package/dist/styled-system/patterns/hstack.d.ts +0 -21
- package/dist/styled-system/patterns/hstack.js +0 -24
- package/dist/styled-system/patterns/index.d.ts +0 -21
- package/dist/styled-system/patterns/index.js +0 -20
- package/dist/styled-system/patterns/link-overlay.d.ts +0 -20
- package/dist/styled-system/patterns/link-overlay.js +0 -24
- package/dist/styled-system/patterns/spacer.d.ts +0 -20
- package/dist/styled-system/patterns/spacer.js +0 -25
- package/dist/styled-system/patterns/square.d.ts +0 -20
- package/dist/styled-system/patterns/square.js +0 -24
- package/dist/styled-system/patterns/stack.d.ts +0 -23
- package/dist/styled-system/patterns/stack.js +0 -24
- package/dist/styled-system/patterns/visually-hidden.d.ts +0 -20
- package/dist/styled-system/patterns/visually-hidden.js +0 -18
- package/dist/styled-system/patterns/vstack.d.ts +0 -21
- package/dist/styled-system/patterns/vstack.js +0 -24
- package/dist/styled-system/patterns/wrap.d.ts +0 -24
- package/dist/styled-system/patterns/wrap.js +0 -25
- package/dist/styled-system/recipes/content-header.d.ts +0 -31
- package/dist/styled-system/recipes/content-header.js +0 -65
- package/dist/styled-system/recipes/content-page.d.ts +0 -34
- package/dist/styled-system/recipes/content-page.js +0 -43
- package/dist/styled-system/recipes/create-recipe.js +0 -82
- package/dist/styled-system/recipes/index.d.ts +0 -17
- package/dist/styled-system/recipes/index.js +0 -16
- package/dist/styled-system/recipes/metric-block.d.ts +0 -34
- package/dist/styled-system/recipes/metric-block.js +0 -76
- package/dist/styled-system/recipes/product-list.d.ts +0 -31
- package/dist/styled-system/recipes/product-list.js +0 -73
- package/dist/styled-system/recipes/product-section.d.ts +0 -31
- package/dist/styled-system/recipes/product-section.js +0 -49
- package/dist/styled-system/recipes/product-settings-row.d.ts +0 -34
- package/dist/styled-system/recipes/product-settings-row.js +0 -58
- package/dist/styled-system/recipes/product-settings.d.ts +0 -31
- package/dist/styled-system/recipes/product-settings.js +0 -57
- package/dist/styled-system/recipes/product-status.d.ts +0 -34
- package/dist/styled-system/recipes/product-status.js +0 -45
- package/dist/styled-system/recipes/product-toolbar.d.ts +0 -31
- package/dist/styled-system/recipes/product-toolbar.js +0 -41
- package/dist/styled-system/recipes/product-workspace.d.ts +0 -34
- package/dist/styled-system/recipes/product-workspace.js +0 -58
- package/dist/styled-system/recipes/surface-metric.d.ts +0 -38
- package/dist/styled-system/recipes/surface-metric.js +0 -63
- package/dist/styled-system/recipes/surface-table.d.ts +0 -34
- package/dist/styled-system/recipes/surface-table.js +0 -62
- package/dist/styled-system/recipes/ui-badge.d.ts +0 -31
- package/dist/styled-system/recipes/ui-badge.js +0 -38
- package/dist/styled-system/recipes/ui-button.d.ts +0 -32
- package/dist/styled-system/recipes/ui-button.js +0 -43
- package/dist/styled-system/recipes/ui-input.d.ts +0 -31
- package/dist/styled-system/recipes/ui-input.js +0 -49
- package/dist/styled-system/recipes/ui-textarea.d.ts +0 -31
- package/dist/styled-system/recipes/ui-textarea.js +0 -24
- package/dist/styled-system/styles.css +0 -1257
- package/dist/styled-system/tokens/index.d.ts +0 -9
- package/dist/styled-system/tokens/index.js +0 -268
- package/dist/styled-system/tokens/tokens.d.ts +0 -36
- package/dist/styled-system/types/composition.d.ts +0 -227
- package/dist/styled-system/types/conditions.d.ts +0 -236
- package/dist/styled-system/types/csstype.d.ts +0 -22570
- package/dist/styled-system/types/index.d.ts +0 -6
- package/dist/styled-system/types/parts.d.ts +0 -8
- package/dist/styled-system/types/pattern.d.ts +0 -78
- package/dist/styled-system/types/prop-type.d.ts +0 -223
- package/dist/styled-system/types/recipe.d.ts +0 -181
- package/dist/styled-system/types/selectors.d.ts +0 -59
- package/dist/styled-system/types/static-css.d.ts +0 -56
- package/dist/styled-system/types/style-props.d.ts +0 -8088
- package/dist/styled-system/types/system-types.d.ts +0 -151
- /package/dist/styles/{editor.generated.d.ts → editor.d.ts} +0 -0
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface UiButtonVariant {
|
|
6
|
-
variant: "default" | "outline" | "secondary" | "ghost" | "destructive" | "link"
|
|
7
|
-
size: "default" | "xs" | "sm" | "lg" | "icon" | "icon-xs" | "icon-sm" | "icon-lg"
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
type UiButtonVariantMap = {
|
|
11
|
-
[key in keyof UiButtonVariant]: Array<UiButtonVariant[key]>
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export type UiButtonVariantProps = {
|
|
17
|
-
[key in keyof UiButtonVariant]?: ConditionalValue<UiButtonVariant[key]> | undefined
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export interface UiButtonRecipe {
|
|
21
|
-
|
|
22
|
-
__type: UiButtonVariantProps
|
|
23
|
-
(props?: UiButtonVariantProps): string
|
|
24
|
-
raw: (props?: UiButtonVariantProps) => UiButtonVariantProps
|
|
25
|
-
variantMap: UiButtonVariantMap
|
|
26
|
-
variantKeys: Array<keyof UiButtonVariant>
|
|
27
|
-
splitVariantProps<Props extends UiButtonVariantProps>(props: Props): [UiButtonVariantProps, Pretty<DistributiveOmit<Props, keyof UiButtonVariantProps>>]
|
|
28
|
-
getVariantProps: (props?: UiButtonVariantProps) => UiButtonVariantProps
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export declare const uiButton: UiButtonRecipe
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.js';
|
|
3
|
-
|
|
4
|
-
const uiButtonFn = /* @__PURE__ */ createRecipe('ui-button', {}, [])
|
|
5
|
-
|
|
6
|
-
const uiButtonVariantMap = {
|
|
7
|
-
"variant": [
|
|
8
|
-
"default",
|
|
9
|
-
"outline",
|
|
10
|
-
"secondary",
|
|
11
|
-
"ghost",
|
|
12
|
-
"destructive",
|
|
13
|
-
"link"
|
|
14
|
-
],
|
|
15
|
-
"size": [
|
|
16
|
-
"default",
|
|
17
|
-
"xs",
|
|
18
|
-
"sm",
|
|
19
|
-
"lg",
|
|
20
|
-
"icon",
|
|
21
|
-
"icon-xs",
|
|
22
|
-
"icon-sm",
|
|
23
|
-
"icon-lg"
|
|
24
|
-
]
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const uiButtonVariantKeys = Object.keys(uiButtonVariantMap)
|
|
28
|
-
|
|
29
|
-
export const uiButton = /* @__PURE__ */ Object.assign(memo(uiButtonFn.recipeFn), {
|
|
30
|
-
__recipe__: true,
|
|
31
|
-
__name__: 'uiButton',
|
|
32
|
-
__getCompoundVariantCss__: uiButtonFn.__getCompoundVariantCss__,
|
|
33
|
-
raw: (props) => props,
|
|
34
|
-
variantKeys: uiButtonVariantKeys,
|
|
35
|
-
variantMap: uiButtonVariantMap,
|
|
36
|
-
merge(recipe) {
|
|
37
|
-
return mergeRecipes(this, recipe)
|
|
38
|
-
},
|
|
39
|
-
splitVariantProps(props) {
|
|
40
|
-
return splitProps(props, uiButtonVariantKeys)
|
|
41
|
-
},
|
|
42
|
-
getVariantProps: uiButtonFn.getVariantProps,
|
|
43
|
-
})
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface UiInputVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type UiInputVariantMap = {
|
|
10
|
-
[key in keyof UiInputVariant]: Array<UiInputVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type UiInputSlot = "root" | "control" | "visual" | "button" | "name"
|
|
14
|
-
|
|
15
|
-
export type UiInputVariantProps = {
|
|
16
|
-
[key in keyof UiInputVariant]?: ConditionalValue<UiInputVariant[key]> | undefined
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface UiInputRecipe {
|
|
20
|
-
__slot: UiInputSlot
|
|
21
|
-
__type: UiInputVariantProps
|
|
22
|
-
(props?: UiInputVariantProps): Pretty<Record<UiInputSlot, string>>
|
|
23
|
-
raw: (props?: UiInputVariantProps) => UiInputVariantProps
|
|
24
|
-
variantMap: UiInputVariantMap
|
|
25
|
-
variantKeys: Array<keyof UiInputVariant>
|
|
26
|
-
splitVariantProps<Props extends UiInputVariantProps>(props: Props): [UiInputVariantProps, Pretty<DistributiveOmit<Props, keyof UiInputVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: UiInputVariantProps) => UiInputVariantProps
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export declare const uiInput: UiInputRecipe
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
|
|
4
|
-
const uiInputDefaultVariants = {}
|
|
5
|
-
const uiInputCompoundVariants = []
|
|
6
|
-
|
|
7
|
-
const uiInputSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"root",
|
|
10
|
-
"ui-input__root"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"control",
|
|
14
|
-
"ui-input__control"
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"visual",
|
|
18
|
-
"ui-input__visual"
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
"button",
|
|
22
|
-
"ui-input__button"
|
|
23
|
-
],
|
|
24
|
-
[
|
|
25
|
-
"name",
|
|
26
|
-
"ui-input__name"
|
|
27
|
-
]
|
|
28
|
-
]
|
|
29
|
-
const uiInputSlotFns = /* @__PURE__ */ uiInputSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, uiInputDefaultVariants, getSlotCompoundVariant(uiInputCompoundVariants, slotName))])
|
|
30
|
-
|
|
31
|
-
const uiInputFn = memo((props = {}) => {
|
|
32
|
-
return Object.fromEntries(uiInputSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
33
|
-
})
|
|
34
|
-
|
|
35
|
-
const uiInputVariantKeys = []
|
|
36
|
-
const getVariantProps = (variants) => ({ ...uiInputDefaultVariants, ...compact(variants) })
|
|
37
|
-
|
|
38
|
-
export const uiInput = /* @__PURE__ */ Object.assign(uiInputFn, {
|
|
39
|
-
__recipe__: false,
|
|
40
|
-
__name__: 'uiInput',
|
|
41
|
-
raw: (props) => props,
|
|
42
|
-
classNameMap: {},
|
|
43
|
-
variantKeys: uiInputVariantKeys,
|
|
44
|
-
variantMap: {},
|
|
45
|
-
splitVariantProps(props) {
|
|
46
|
-
return splitProps(props, uiInputVariantKeys)
|
|
47
|
-
},
|
|
48
|
-
getVariantProps
|
|
49
|
-
})
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface UiTextareaVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type UiTextareaVariantMap = {
|
|
10
|
-
[key in keyof UiTextareaVariant]: Array<UiTextareaVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export type UiTextareaVariantProps = {
|
|
16
|
-
[key in keyof UiTextareaVariant]?: ConditionalValue<UiTextareaVariant[key]> | undefined
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface UiTextareaRecipe {
|
|
20
|
-
|
|
21
|
-
__type: UiTextareaVariantProps
|
|
22
|
-
(props?: UiTextareaVariantProps): string
|
|
23
|
-
raw: (props?: UiTextareaVariantProps) => UiTextareaVariantProps
|
|
24
|
-
variantMap: UiTextareaVariantMap
|
|
25
|
-
variantKeys: Array<keyof UiTextareaVariant>
|
|
26
|
-
splitVariantProps<Props extends UiTextareaVariantProps>(props: Props): [UiTextareaVariantProps, Pretty<DistributiveOmit<Props, keyof UiTextareaVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: UiTextareaVariantProps) => UiTextareaVariantProps
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export declare const uiTextarea: UiTextareaRecipe
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.js';
|
|
3
|
-
|
|
4
|
-
const uiTextareaFn = /* @__PURE__ */ createRecipe('ui-textarea', {}, [])
|
|
5
|
-
|
|
6
|
-
const uiTextareaVariantMap = {}
|
|
7
|
-
|
|
8
|
-
const uiTextareaVariantKeys = Object.keys(uiTextareaVariantMap)
|
|
9
|
-
|
|
10
|
-
export const uiTextarea = /* @__PURE__ */ Object.assign(memo(uiTextareaFn.recipeFn), {
|
|
11
|
-
__recipe__: true,
|
|
12
|
-
__name__: 'uiTextarea',
|
|
13
|
-
__getCompoundVariantCss__: uiTextareaFn.__getCompoundVariantCss__,
|
|
14
|
-
raw: (props) => props,
|
|
15
|
-
variantKeys: uiTextareaVariantKeys,
|
|
16
|
-
variantMap: uiTextareaVariantMap,
|
|
17
|
-
merge(recipe) {
|
|
18
|
-
return mergeRecipes(this, recipe)
|
|
19
|
-
},
|
|
20
|
-
splitVariantProps(props) {
|
|
21
|
-
return splitProps(props, uiTextareaVariantKeys)
|
|
22
|
-
},
|
|
23
|
-
getVariantProps: uiTextareaFn.getVariantProps,
|
|
24
|
-
})
|