@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,58 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
|
|
4
|
-
const productSettingsRowDefaultVariants = {
|
|
5
|
-
"separated": false
|
|
6
|
-
}
|
|
7
|
-
const productSettingsRowCompoundVariants = []
|
|
8
|
-
|
|
9
|
-
const productSettingsRowSlotNames = [
|
|
10
|
-
[
|
|
11
|
-
"root",
|
|
12
|
-
"product-settings-row__root"
|
|
13
|
-
],
|
|
14
|
-
[
|
|
15
|
-
"heading",
|
|
16
|
-
"product-settings-row__heading"
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"label",
|
|
20
|
-
"product-settings-row__label"
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"description",
|
|
24
|
-
"product-settings-row__description"
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"control",
|
|
28
|
-
"product-settings-row__control"
|
|
29
|
-
]
|
|
30
|
-
]
|
|
31
|
-
const productSettingsRowSlotFns = /* @__PURE__ */ productSettingsRowSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, productSettingsRowDefaultVariants, getSlotCompoundVariant(productSettingsRowCompoundVariants, slotName))])
|
|
32
|
-
|
|
33
|
-
const productSettingsRowFn = memo((props = {}) => {
|
|
34
|
-
return Object.fromEntries(productSettingsRowSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
const productSettingsRowVariantKeys = [
|
|
38
|
-
"separated"
|
|
39
|
-
]
|
|
40
|
-
const getVariantProps = (variants) => ({ ...productSettingsRowDefaultVariants, ...compact(variants) })
|
|
41
|
-
|
|
42
|
-
export const productSettingsRow = /* @__PURE__ */ Object.assign(productSettingsRowFn, {
|
|
43
|
-
__recipe__: false,
|
|
44
|
-
__name__: 'productSettingsRow',
|
|
45
|
-
raw: (props) => props,
|
|
46
|
-
classNameMap: {},
|
|
47
|
-
variantKeys: productSettingsRowVariantKeys,
|
|
48
|
-
variantMap: {
|
|
49
|
-
"separated": [
|
|
50
|
-
"true",
|
|
51
|
-
"false"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
splitVariantProps(props) {
|
|
55
|
-
return splitProps(props, productSettingsRowVariantKeys)
|
|
56
|
-
},
|
|
57
|
-
getVariantProps
|
|
58
|
-
})
|
|
@@ -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 ProductSettingsVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type ProductSettingsVariantMap = {
|
|
10
|
-
[key in keyof ProductSettingsVariant]: Array<ProductSettingsVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type ProductSettingsSlot = "root" | "header" | "heading" | "title" | "description" | "actions" | "body"
|
|
14
|
-
|
|
15
|
-
export type ProductSettingsVariantProps = {
|
|
16
|
-
[key in keyof ProductSettingsVariant]?: ConditionalValue<ProductSettingsVariant[key]> | undefined
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface ProductSettingsRecipe {
|
|
20
|
-
__slot: ProductSettingsSlot
|
|
21
|
-
__type: ProductSettingsVariantProps
|
|
22
|
-
(props?: ProductSettingsVariantProps): Pretty<Record<ProductSettingsSlot, string>>
|
|
23
|
-
raw: (props?: ProductSettingsVariantProps) => ProductSettingsVariantProps
|
|
24
|
-
variantMap: ProductSettingsVariantMap
|
|
25
|
-
variantKeys: Array<keyof ProductSettingsVariant>
|
|
26
|
-
splitVariantProps<Props extends ProductSettingsVariantProps>(props: Props): [ProductSettingsVariantProps, Pretty<DistributiveOmit<Props, keyof ProductSettingsVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: ProductSettingsVariantProps) => ProductSettingsVariantProps
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export declare const productSettings: ProductSettingsRecipe
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
|
|
4
|
-
const productSettingsDefaultVariants = {}
|
|
5
|
-
const productSettingsCompoundVariants = []
|
|
6
|
-
|
|
7
|
-
const productSettingsSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"root",
|
|
10
|
-
"product-settings__root"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"header",
|
|
14
|
-
"product-settings__header"
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"heading",
|
|
18
|
-
"product-settings__heading"
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
"title",
|
|
22
|
-
"product-settings__title"
|
|
23
|
-
],
|
|
24
|
-
[
|
|
25
|
-
"description",
|
|
26
|
-
"product-settings__description"
|
|
27
|
-
],
|
|
28
|
-
[
|
|
29
|
-
"actions",
|
|
30
|
-
"product-settings__actions"
|
|
31
|
-
],
|
|
32
|
-
[
|
|
33
|
-
"body",
|
|
34
|
-
"product-settings__body"
|
|
35
|
-
]
|
|
36
|
-
]
|
|
37
|
-
const productSettingsSlotFns = /* @__PURE__ */ productSettingsSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, productSettingsDefaultVariants, getSlotCompoundVariant(productSettingsCompoundVariants, slotName))])
|
|
38
|
-
|
|
39
|
-
const productSettingsFn = memo((props = {}) => {
|
|
40
|
-
return Object.fromEntries(productSettingsSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
41
|
-
})
|
|
42
|
-
|
|
43
|
-
const productSettingsVariantKeys = []
|
|
44
|
-
const getVariantProps = (variants) => ({ ...productSettingsDefaultVariants, ...compact(variants) })
|
|
45
|
-
|
|
46
|
-
export const productSettings = /* @__PURE__ */ Object.assign(productSettingsFn, {
|
|
47
|
-
__recipe__: false,
|
|
48
|
-
__name__: 'productSettings',
|
|
49
|
-
raw: (props) => props,
|
|
50
|
-
classNameMap: {},
|
|
51
|
-
variantKeys: productSettingsVariantKeys,
|
|
52
|
-
variantMap: {},
|
|
53
|
-
splitVariantProps(props) {
|
|
54
|
-
return splitProps(props, productSettingsVariantKeys)
|
|
55
|
-
},
|
|
56
|
-
getVariantProps
|
|
57
|
-
})
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface ProductStatusVariant {
|
|
6
|
-
/**
|
|
7
|
-
* @default "neutral"
|
|
8
|
-
*/
|
|
9
|
-
status: "success" | "warning" | "danger" | "info" | "neutral"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type ProductStatusVariantMap = {
|
|
13
|
-
[key in keyof ProductStatusVariant]: Array<ProductStatusVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
type ProductStatusSlot = "root"
|
|
17
|
-
|
|
18
|
-
export type ProductStatusVariantProps = {
|
|
19
|
-
[key in keyof ProductStatusVariant]?: ConditionalValue<ProductStatusVariant[key]> | undefined
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ProductStatusRecipe {
|
|
23
|
-
__slot: ProductStatusSlot
|
|
24
|
-
__type: ProductStatusVariantProps
|
|
25
|
-
(props?: ProductStatusVariantProps): Pretty<Record<ProductStatusSlot, string>>
|
|
26
|
-
raw: (props?: ProductStatusVariantProps) => ProductStatusVariantProps
|
|
27
|
-
variantMap: ProductStatusVariantMap
|
|
28
|
-
variantKeys: Array<keyof ProductStatusVariant>
|
|
29
|
-
splitVariantProps<Props extends ProductStatusVariantProps>(props: Props): [ProductStatusVariantProps, Pretty<DistributiveOmit<Props, keyof ProductStatusVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: ProductStatusVariantProps) => ProductStatusVariantProps
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export declare const productStatus: ProductStatusRecipe
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
|
|
4
|
-
const productStatusDefaultVariants = {
|
|
5
|
-
"status": "neutral"
|
|
6
|
-
}
|
|
7
|
-
const productStatusCompoundVariants = []
|
|
8
|
-
|
|
9
|
-
const productStatusSlotNames = [
|
|
10
|
-
[
|
|
11
|
-
"root",
|
|
12
|
-
"product-status__root"
|
|
13
|
-
]
|
|
14
|
-
]
|
|
15
|
-
const productStatusSlotFns = /* @__PURE__ */ productStatusSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, productStatusDefaultVariants, getSlotCompoundVariant(productStatusCompoundVariants, slotName))])
|
|
16
|
-
|
|
17
|
-
const productStatusFn = memo((props = {}) => {
|
|
18
|
-
return Object.fromEntries(productStatusSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
19
|
-
})
|
|
20
|
-
|
|
21
|
-
const productStatusVariantKeys = [
|
|
22
|
-
"status"
|
|
23
|
-
]
|
|
24
|
-
const getVariantProps = (variants) => ({ ...productStatusDefaultVariants, ...compact(variants) })
|
|
25
|
-
|
|
26
|
-
export const productStatus = /* @__PURE__ */ Object.assign(productStatusFn, {
|
|
27
|
-
__recipe__: false,
|
|
28
|
-
__name__: 'productStatus',
|
|
29
|
-
raw: (props) => props,
|
|
30
|
-
classNameMap: {},
|
|
31
|
-
variantKeys: productStatusVariantKeys,
|
|
32
|
-
variantMap: {
|
|
33
|
-
"status": [
|
|
34
|
-
"success",
|
|
35
|
-
"warning",
|
|
36
|
-
"danger",
|
|
37
|
-
"info",
|
|
38
|
-
"neutral"
|
|
39
|
-
]
|
|
40
|
-
},
|
|
41
|
-
splitVariantProps(props) {
|
|
42
|
-
return splitProps(props, productStatusVariantKeys)
|
|
43
|
-
},
|
|
44
|
-
getVariantProps
|
|
45
|
-
})
|
|
@@ -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 ProductToolbarVariant {
|
|
6
|
-
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type ProductToolbarVariantMap = {
|
|
10
|
-
[key in keyof ProductToolbarVariant]: Array<ProductToolbarVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
type ProductToolbarSlot = "root" | "leading" | "trailing"
|
|
14
|
-
|
|
15
|
-
export type ProductToolbarVariantProps = {
|
|
16
|
-
[key in keyof ProductToolbarVariant]?: ConditionalValue<ProductToolbarVariant[key]> | undefined
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface ProductToolbarRecipe {
|
|
20
|
-
__slot: ProductToolbarSlot
|
|
21
|
-
__type: ProductToolbarVariantProps
|
|
22
|
-
(props?: ProductToolbarVariantProps): Pretty<Record<ProductToolbarSlot, string>>
|
|
23
|
-
raw: (props?: ProductToolbarVariantProps) => ProductToolbarVariantProps
|
|
24
|
-
variantMap: ProductToolbarVariantMap
|
|
25
|
-
variantKeys: Array<keyof ProductToolbarVariant>
|
|
26
|
-
splitVariantProps<Props extends ProductToolbarVariantProps>(props: Props): [ProductToolbarVariantProps, Pretty<DistributiveOmit<Props, keyof ProductToolbarVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: ProductToolbarVariantProps) => ProductToolbarVariantProps
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export declare const productToolbar: ProductToolbarRecipe
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
|
|
4
|
-
const productToolbarDefaultVariants = {}
|
|
5
|
-
const productToolbarCompoundVariants = []
|
|
6
|
-
|
|
7
|
-
const productToolbarSlotNames = [
|
|
8
|
-
[
|
|
9
|
-
"root",
|
|
10
|
-
"product-toolbar__root"
|
|
11
|
-
],
|
|
12
|
-
[
|
|
13
|
-
"leading",
|
|
14
|
-
"product-toolbar__leading"
|
|
15
|
-
],
|
|
16
|
-
[
|
|
17
|
-
"trailing",
|
|
18
|
-
"product-toolbar__trailing"
|
|
19
|
-
]
|
|
20
|
-
]
|
|
21
|
-
const productToolbarSlotFns = /* @__PURE__ */ productToolbarSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, productToolbarDefaultVariants, getSlotCompoundVariant(productToolbarCompoundVariants, slotName))])
|
|
22
|
-
|
|
23
|
-
const productToolbarFn = memo((props = {}) => {
|
|
24
|
-
return Object.fromEntries(productToolbarSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
const productToolbarVariantKeys = []
|
|
28
|
-
const getVariantProps = (variants) => ({ ...productToolbarDefaultVariants, ...compact(variants) })
|
|
29
|
-
|
|
30
|
-
export const productToolbar = /* @__PURE__ */ Object.assign(productToolbarFn, {
|
|
31
|
-
__recipe__: false,
|
|
32
|
-
__name__: 'productToolbar',
|
|
33
|
-
raw: (props) => props,
|
|
34
|
-
classNameMap: {},
|
|
35
|
-
variantKeys: productToolbarVariantKeys,
|
|
36
|
-
variantMap: {},
|
|
37
|
-
splitVariantProps(props) {
|
|
38
|
-
return splitProps(props, productToolbarVariantKeys)
|
|
39
|
-
},
|
|
40
|
-
getVariantProps
|
|
41
|
-
})
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface ProductWorkspaceVariant {
|
|
6
|
-
/**
|
|
7
|
-
* @default false
|
|
8
|
-
*/
|
|
9
|
-
hasSecondary: boolean
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type ProductWorkspaceVariantMap = {
|
|
13
|
-
[key in keyof ProductWorkspaceVariant]: Array<ProductWorkspaceVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
type ProductWorkspaceSlot = "root" | "summary" | "columns" | "primary" | "secondary"
|
|
17
|
-
|
|
18
|
-
export type ProductWorkspaceVariantProps = {
|
|
19
|
-
[key in keyof ProductWorkspaceVariant]?: ConditionalValue<ProductWorkspaceVariant[key]> | undefined
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface ProductWorkspaceRecipe {
|
|
23
|
-
__slot: ProductWorkspaceSlot
|
|
24
|
-
__type: ProductWorkspaceVariantProps
|
|
25
|
-
(props?: ProductWorkspaceVariantProps): Pretty<Record<ProductWorkspaceSlot, string>>
|
|
26
|
-
raw: (props?: ProductWorkspaceVariantProps) => ProductWorkspaceVariantProps
|
|
27
|
-
variantMap: ProductWorkspaceVariantMap
|
|
28
|
-
variantKeys: Array<keyof ProductWorkspaceVariant>
|
|
29
|
-
splitVariantProps<Props extends ProductWorkspaceVariantProps>(props: Props): [ProductWorkspaceVariantProps, Pretty<DistributiveOmit<Props, keyof ProductWorkspaceVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: ProductWorkspaceVariantProps) => ProductWorkspaceVariantProps
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export declare const productWorkspace: ProductWorkspaceRecipe
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
|
|
4
|
-
const productWorkspaceDefaultVariants = {
|
|
5
|
-
"hasSecondary": false
|
|
6
|
-
}
|
|
7
|
-
const productWorkspaceCompoundVariants = []
|
|
8
|
-
|
|
9
|
-
const productWorkspaceSlotNames = [
|
|
10
|
-
[
|
|
11
|
-
"root",
|
|
12
|
-
"product-workspace__root"
|
|
13
|
-
],
|
|
14
|
-
[
|
|
15
|
-
"summary",
|
|
16
|
-
"product-workspace__summary"
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"columns",
|
|
20
|
-
"product-workspace__columns"
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"primary",
|
|
24
|
-
"product-workspace__primary"
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"secondary",
|
|
28
|
-
"product-workspace__secondary"
|
|
29
|
-
]
|
|
30
|
-
]
|
|
31
|
-
const productWorkspaceSlotFns = /* @__PURE__ */ productWorkspaceSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, productWorkspaceDefaultVariants, getSlotCompoundVariant(productWorkspaceCompoundVariants, slotName))])
|
|
32
|
-
|
|
33
|
-
const productWorkspaceFn = memo((props = {}) => {
|
|
34
|
-
return Object.fromEntries(productWorkspaceSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
const productWorkspaceVariantKeys = [
|
|
38
|
-
"hasSecondary"
|
|
39
|
-
]
|
|
40
|
-
const getVariantProps = (variants) => ({ ...productWorkspaceDefaultVariants, ...compact(variants) })
|
|
41
|
-
|
|
42
|
-
export const productWorkspace = /* @__PURE__ */ Object.assign(productWorkspaceFn, {
|
|
43
|
-
__recipe__: false,
|
|
44
|
-
__name__: 'productWorkspace',
|
|
45
|
-
raw: (props) => props,
|
|
46
|
-
classNameMap: {},
|
|
47
|
-
variantKeys: productWorkspaceVariantKeys,
|
|
48
|
-
variantMap: {
|
|
49
|
-
"hasSecondary": [
|
|
50
|
-
"true",
|
|
51
|
-
"false"
|
|
52
|
-
]
|
|
53
|
-
},
|
|
54
|
-
splitVariantProps(props) {
|
|
55
|
-
return splitProps(props, productWorkspaceVariantKeys)
|
|
56
|
-
},
|
|
57
|
-
getVariantProps
|
|
58
|
-
})
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface SurfaceMetricVariant {
|
|
6
|
-
/**
|
|
7
|
-
* @default "neutral"
|
|
8
|
-
*/
|
|
9
|
-
tone: "neutral" | "success" | "warning" | "danger" | "info"
|
|
10
|
-
/**
|
|
11
|
-
* @default "comfortable"
|
|
12
|
-
*/
|
|
13
|
-
density: "comfortable" | "compact"
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
type SurfaceMetricVariantMap = {
|
|
17
|
-
[key in keyof SurfaceMetricVariant]: Array<SurfaceMetricVariant[key]>
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
type SurfaceMetricSlot = "root" | "card" | "description" | "state"
|
|
21
|
-
|
|
22
|
-
export type SurfaceMetricVariantProps = {
|
|
23
|
-
[key in keyof SurfaceMetricVariant]?: ConditionalValue<SurfaceMetricVariant[key]> | undefined
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
export interface SurfaceMetricRecipe {
|
|
27
|
-
__slot: SurfaceMetricSlot
|
|
28
|
-
__type: SurfaceMetricVariantProps
|
|
29
|
-
(props?: SurfaceMetricVariantProps): Pretty<Record<SurfaceMetricSlot, string>>
|
|
30
|
-
raw: (props?: SurfaceMetricVariantProps) => SurfaceMetricVariantProps
|
|
31
|
-
variantMap: SurfaceMetricVariantMap
|
|
32
|
-
variantKeys: Array<keyof SurfaceMetricVariant>
|
|
33
|
-
splitVariantProps<Props extends SurfaceMetricVariantProps>(props: Props): [SurfaceMetricVariantProps, Pretty<DistributiveOmit<Props, keyof SurfaceMetricVariantProps>>]
|
|
34
|
-
getVariantProps: (props?: SurfaceMetricVariantProps) => SurfaceMetricVariantProps
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
export declare const surfaceMetric: SurfaceMetricRecipe
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
|
|
4
|
-
const surfaceMetricDefaultVariants = {
|
|
5
|
-
"tone": "neutral",
|
|
6
|
-
"density": "comfortable"
|
|
7
|
-
}
|
|
8
|
-
const surfaceMetricCompoundVariants = []
|
|
9
|
-
|
|
10
|
-
const surfaceMetricSlotNames = [
|
|
11
|
-
[
|
|
12
|
-
"root",
|
|
13
|
-
"surface-metric__root"
|
|
14
|
-
],
|
|
15
|
-
[
|
|
16
|
-
"card",
|
|
17
|
-
"surface-metric__card"
|
|
18
|
-
],
|
|
19
|
-
[
|
|
20
|
-
"description",
|
|
21
|
-
"surface-metric__description"
|
|
22
|
-
],
|
|
23
|
-
[
|
|
24
|
-
"state",
|
|
25
|
-
"surface-metric__state"
|
|
26
|
-
]
|
|
27
|
-
]
|
|
28
|
-
const surfaceMetricSlotFns = /* @__PURE__ */ surfaceMetricSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, surfaceMetricDefaultVariants, getSlotCompoundVariant(surfaceMetricCompoundVariants, slotName))])
|
|
29
|
-
|
|
30
|
-
const surfaceMetricFn = memo((props = {}) => {
|
|
31
|
-
return Object.fromEntries(surfaceMetricSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
32
|
-
})
|
|
33
|
-
|
|
34
|
-
const surfaceMetricVariantKeys = [
|
|
35
|
-
"tone",
|
|
36
|
-
"density"
|
|
37
|
-
]
|
|
38
|
-
const getVariantProps = (variants) => ({ ...surfaceMetricDefaultVariants, ...compact(variants) })
|
|
39
|
-
|
|
40
|
-
export const surfaceMetric = /* @__PURE__ */ Object.assign(surfaceMetricFn, {
|
|
41
|
-
__recipe__: false,
|
|
42
|
-
__name__: 'surfaceMetric',
|
|
43
|
-
raw: (props) => props,
|
|
44
|
-
classNameMap: {},
|
|
45
|
-
variantKeys: surfaceMetricVariantKeys,
|
|
46
|
-
variantMap: {
|
|
47
|
-
"tone": [
|
|
48
|
-
"neutral",
|
|
49
|
-
"success",
|
|
50
|
-
"warning",
|
|
51
|
-
"danger",
|
|
52
|
-
"info"
|
|
53
|
-
],
|
|
54
|
-
"density": [
|
|
55
|
-
"comfortable",
|
|
56
|
-
"compact"
|
|
57
|
-
]
|
|
58
|
-
},
|
|
59
|
-
splitVariantProps(props) {
|
|
60
|
-
return splitProps(props, surfaceMetricVariantKeys)
|
|
61
|
-
},
|
|
62
|
-
getVariantProps
|
|
63
|
-
})
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
import type { ConditionalValue } from '../types/index';
|
|
3
|
-
import type { DistributiveOmit, Pretty } from '../types/system-types';
|
|
4
|
-
|
|
5
|
-
interface SurfaceTableVariant {
|
|
6
|
-
/**
|
|
7
|
-
* @default "comfortable"
|
|
8
|
-
*/
|
|
9
|
-
density: "comfortable" | "compact"
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
type SurfaceTableVariantMap = {
|
|
13
|
-
[key in keyof SurfaceTableVariant]: Array<SurfaceTableVariant[key]>
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
type SurfaceTableSlot = "root" | "header" | "content" | "head" | "cell" | "state"
|
|
17
|
-
|
|
18
|
-
export type SurfaceTableVariantProps = {
|
|
19
|
-
[key in keyof SurfaceTableVariant]?: ConditionalValue<SurfaceTableVariant[key]> | undefined
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export interface SurfaceTableRecipe {
|
|
23
|
-
__slot: SurfaceTableSlot
|
|
24
|
-
__type: SurfaceTableVariantProps
|
|
25
|
-
(props?: SurfaceTableVariantProps): Pretty<Record<SurfaceTableSlot, string>>
|
|
26
|
-
raw: (props?: SurfaceTableVariantProps) => SurfaceTableVariantProps
|
|
27
|
-
variantMap: SurfaceTableVariantMap
|
|
28
|
-
variantKeys: Array<keyof SurfaceTableVariant>
|
|
29
|
-
splitVariantProps<Props extends SurfaceTableVariantProps>(props: Props): [SurfaceTableVariantProps, Pretty<DistributiveOmit<Props, keyof SurfaceTableVariantProps>>]
|
|
30
|
-
getVariantProps: (props?: SurfaceTableVariantProps) => SurfaceTableVariantProps
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
export declare const surfaceTable: SurfaceTableRecipe
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe } from './create-recipe.js';
|
|
3
|
-
|
|
4
|
-
const surfaceTableDefaultVariants = {
|
|
5
|
-
"density": "comfortable"
|
|
6
|
-
}
|
|
7
|
-
const surfaceTableCompoundVariants = []
|
|
8
|
-
|
|
9
|
-
const surfaceTableSlotNames = [
|
|
10
|
-
[
|
|
11
|
-
"root",
|
|
12
|
-
"surface-table__root"
|
|
13
|
-
],
|
|
14
|
-
[
|
|
15
|
-
"header",
|
|
16
|
-
"surface-table__header"
|
|
17
|
-
],
|
|
18
|
-
[
|
|
19
|
-
"content",
|
|
20
|
-
"surface-table__content"
|
|
21
|
-
],
|
|
22
|
-
[
|
|
23
|
-
"head",
|
|
24
|
-
"surface-table__head"
|
|
25
|
-
],
|
|
26
|
-
[
|
|
27
|
-
"cell",
|
|
28
|
-
"surface-table__cell"
|
|
29
|
-
],
|
|
30
|
-
[
|
|
31
|
-
"state",
|
|
32
|
-
"surface-table__state"
|
|
33
|
-
]
|
|
34
|
-
]
|
|
35
|
-
const surfaceTableSlotFns = /* @__PURE__ */ surfaceTableSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, surfaceTableDefaultVariants, getSlotCompoundVariant(surfaceTableCompoundVariants, slotName))])
|
|
36
|
-
|
|
37
|
-
const surfaceTableFn = memo((props = {}) => {
|
|
38
|
-
return Object.fromEntries(surfaceTableSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
|
|
39
|
-
})
|
|
40
|
-
|
|
41
|
-
const surfaceTableVariantKeys = [
|
|
42
|
-
"density"
|
|
43
|
-
]
|
|
44
|
-
const getVariantProps = (variants) => ({ ...surfaceTableDefaultVariants, ...compact(variants) })
|
|
45
|
-
|
|
46
|
-
export const surfaceTable = /* @__PURE__ */ Object.assign(surfaceTableFn, {
|
|
47
|
-
__recipe__: false,
|
|
48
|
-
__name__: 'surfaceTable',
|
|
49
|
-
raw: (props) => props,
|
|
50
|
-
classNameMap: {},
|
|
51
|
-
variantKeys: surfaceTableVariantKeys,
|
|
52
|
-
variantMap: {
|
|
53
|
-
"density": [
|
|
54
|
-
"comfortable",
|
|
55
|
-
"compact"
|
|
56
|
-
]
|
|
57
|
-
},
|
|
58
|
-
splitVariantProps(props) {
|
|
59
|
-
return splitProps(props, surfaceTableVariantKeys)
|
|
60
|
-
},
|
|
61
|
-
getVariantProps
|
|
62
|
-
})
|
|
@@ -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 UiBadgeVariant {
|
|
6
|
-
variant: "default" | "secondary" | "destructive" | "subtle" | "subtle-success" | "subtle-warning" | "subtle-destructive" | "subtle-pill" | "outline" | "ghost" | "link"
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
type UiBadgeVariantMap = {
|
|
10
|
-
[key in keyof UiBadgeVariant]: Array<UiBadgeVariant[key]>
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export type UiBadgeVariantProps = {
|
|
16
|
-
[key in keyof UiBadgeVariant]?: ConditionalValue<UiBadgeVariant[key]> | undefined
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export interface UiBadgeRecipe {
|
|
20
|
-
|
|
21
|
-
__type: UiBadgeVariantProps
|
|
22
|
-
(props?: UiBadgeVariantProps): string
|
|
23
|
-
raw: (props?: UiBadgeVariantProps) => UiBadgeVariantProps
|
|
24
|
-
variantMap: UiBadgeVariantMap
|
|
25
|
-
variantKeys: Array<keyof UiBadgeVariant>
|
|
26
|
-
splitVariantProps<Props extends UiBadgeVariantProps>(props: Props): [UiBadgeVariantProps, Pretty<DistributiveOmit<Props, keyof UiBadgeVariantProps>>]
|
|
27
|
-
getVariantProps: (props?: UiBadgeVariantProps) => UiBadgeVariantProps
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
export declare const uiBadge: UiBadgeRecipe
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { memo, splitProps } from '../helpers.js';
|
|
2
|
-
import { createRecipe, mergeRecipes } from './create-recipe.js';
|
|
3
|
-
|
|
4
|
-
const uiBadgeFn = /* @__PURE__ */ createRecipe('ui-badge', {}, [])
|
|
5
|
-
|
|
6
|
-
const uiBadgeVariantMap = {
|
|
7
|
-
"variant": [
|
|
8
|
-
"default",
|
|
9
|
-
"secondary",
|
|
10
|
-
"destructive",
|
|
11
|
-
"subtle",
|
|
12
|
-
"subtle-success",
|
|
13
|
-
"subtle-warning",
|
|
14
|
-
"subtle-destructive",
|
|
15
|
-
"subtle-pill",
|
|
16
|
-
"outline",
|
|
17
|
-
"ghost",
|
|
18
|
-
"link"
|
|
19
|
-
]
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
const uiBadgeVariantKeys = Object.keys(uiBadgeVariantMap)
|
|
23
|
-
|
|
24
|
-
export const uiBadge = /* @__PURE__ */ Object.assign(memo(uiBadgeFn.recipeFn), {
|
|
25
|
-
__recipe__: true,
|
|
26
|
-
__name__: 'uiBadge',
|
|
27
|
-
__getCompoundVariantCss__: uiBadgeFn.__getCompoundVariantCss__,
|
|
28
|
-
raw: (props) => props,
|
|
29
|
-
variantKeys: uiBadgeVariantKeys,
|
|
30
|
-
variantMap: uiBadgeVariantMap,
|
|
31
|
-
merge(recipe) {
|
|
32
|
-
return mergeRecipes(this, recipe)
|
|
33
|
-
},
|
|
34
|
-
splitVariantProps(props) {
|
|
35
|
-
return splitProps(props, uiBadgeVariantKeys)
|
|
36
|
-
},
|
|
37
|
-
getVariantProps: uiBadgeFn.getVariantProps,
|
|
38
|
-
})
|