@svadmin/surface 0.8.19 → 0.9.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.
Files changed (191) hide show
  1. package/README.md +70 -38
  2. package/STYLING.md +31 -0
  3. package/compatibility.json +23 -2
  4. package/dist/agent-contract.d.ts +37 -0
  5. package/dist/agent-contract.js +203 -0
  6. package/dist/agent.d.ts +38 -7
  7. package/dist/agent.js +98 -59
  8. package/dist/binding.d.ts +2 -0
  9. package/dist/binding.js +7 -1
  10. package/dist/builtin-definitions.d.ts +6 -0
  11. package/dist/builtin-definitions.js +40 -0
  12. package/dist/builtin-schemas.d.ts +25 -0
  13. package/dist/builtin-schemas.js +13 -0
  14. package/dist/catalog.d.ts +4 -61
  15. package/dist/catalog.js +20 -44
  16. package/dist/components/MetricWidget.svelte +12 -8
  17. package/dist/components/ResourceFormBody.svelte +97 -0
  18. package/dist/components/ResourceFormBody.svelte.d.ts +13 -0
  19. package/dist/components/ResourceFormWidget.svelte +19 -0
  20. package/dist/components/ResourceFormWidget.svelte.d.ts +4 -0
  21. package/dist/components/ResourceTableWidget.svelte +14 -12
  22. package/dist/components/SurfaceEditPreview.svelte +107 -0
  23. package/dist/components/SurfaceEditPreview.svelte.d.ts +20 -0
  24. package/dist/components/SurfaceRenderer.svelte +120 -163
  25. package/dist/components/SurfaceRenderer.svelte.d.ts +4 -0
  26. package/dist/components/SurfaceWorkflowProvider.svelte +22 -0
  27. package/dist/components/SurfaceWorkflowProvider.svelte.d.ts +17 -0
  28. package/dist/components/SvarGridWidget.svelte +47 -0
  29. package/dist/components/SvarGridWidget.svelte.d.ts +4 -0
  30. package/dist/components/SvarSurfaceProvider.svelte +12 -0
  31. package/dist/components/SvarSurfaceProvider.svelte.d.ts +11 -0
  32. package/dist/edits.d.ts +57 -0
  33. package/dist/edits.js +166 -0
  34. package/dist/index.d.ts +8 -2
  35. package/dist/index.js +5 -1
  36. package/dist/interactive.d.ts +6 -0
  37. package/dist/interactive.js +15 -0
  38. package/dist/openui.d.ts +64 -0
  39. package/dist/openui.js +168 -0
  40. package/dist/schema.d.ts +108 -0
  41. package/dist/schema.js +73 -0
  42. package/dist/server-sqlite.d.ts +1 -0
  43. package/dist/server-sqlite.js +2 -0
  44. package/dist/server.d.ts +4 -0
  45. package/dist/server.js +4 -0
  46. package/dist/source-cache.d.ts +30 -0
  47. package/dist/source-cache.js +135 -0
  48. package/dist/styled-system/css/conditions.js +36 -0
  49. package/dist/styled-system/css/css.d.ts +22 -0
  50. package/dist/styled-system/css/css.js +45 -0
  51. package/dist/styled-system/css/cva.d.ts +6 -0
  52. package/dist/styled-system/css/cva.js +87 -0
  53. package/dist/styled-system/css/cx.d.ts +5 -0
  54. package/dist/styled-system/css/cx.js +15 -0
  55. package/dist/styled-system/css/index.d.ts +5 -0
  56. package/dist/styled-system/css/index.js +4 -0
  57. package/dist/styled-system/css/sva.d.ts +4 -0
  58. package/dist/styled-system/css/sva.js +46 -0
  59. package/dist/styled-system/design-contract.d.ts +13 -0
  60. package/dist/styled-system/design-contract.js +11 -0
  61. package/dist/styled-system/helpers.js +316 -0
  62. package/dist/styled-system/patterns/aspect-ratio.d.ts +20 -0
  63. package/dist/styled-system/patterns/aspect-ratio.js +38 -0
  64. package/dist/styled-system/patterns/bleed.d.ts +21 -0
  65. package/dist/styled-system/patterns/bleed.js +24 -0
  66. package/dist/styled-system/patterns/box.d.ts +20 -0
  67. package/dist/styled-system/patterns/box.js +15 -0
  68. package/dist/styled-system/patterns/center.d.ts +20 -0
  69. package/dist/styled-system/patterns/center.js +21 -0
  70. package/dist/styled-system/patterns/circle.d.ts +20 -0
  71. package/dist/styled-system/patterns/circle.js +25 -0
  72. package/dist/styled-system/patterns/container.d.ts +20 -0
  73. package/dist/styled-system/patterns/container.js +21 -0
  74. package/dist/styled-system/patterns/cq.d.ts +21 -0
  75. package/dist/styled-system/patterns/cq.js +21 -0
  76. package/dist/styled-system/patterns/divider.d.ts +22 -0
  77. package/dist/styled-system/patterns/divider.js +25 -0
  78. package/dist/styled-system/patterns/flex.d.ts +26 -0
  79. package/dist/styled-system/patterns/flex.js +26 -0
  80. package/dist/styled-system/patterns/float.d.ts +23 -0
  81. package/dist/styled-system/patterns/float.js +52 -0
  82. package/dist/styled-system/patterns/grid-item.d.ts +25 -0
  83. package/dist/styled-system/patterns/grid-item.js +25 -0
  84. package/dist/styled-system/patterns/grid.d.ts +24 -0
  85. package/dist/styled-system/patterns/grid.js +27 -0
  86. package/dist/styled-system/patterns/hstack.d.ts +21 -0
  87. package/dist/styled-system/patterns/hstack.js +24 -0
  88. package/dist/styled-system/patterns/index.d.ts +21 -0
  89. package/dist/styled-system/patterns/index.js +20 -0
  90. package/dist/styled-system/patterns/link-overlay.d.ts +20 -0
  91. package/dist/styled-system/patterns/link-overlay.js +24 -0
  92. package/dist/styled-system/patterns/spacer.d.ts +20 -0
  93. package/dist/styled-system/patterns/spacer.js +25 -0
  94. package/dist/styled-system/patterns/square.d.ts +20 -0
  95. package/dist/styled-system/patterns/square.js +24 -0
  96. package/dist/styled-system/patterns/stack.d.ts +23 -0
  97. package/dist/styled-system/patterns/stack.js +24 -0
  98. package/dist/styled-system/patterns/visually-hidden.d.ts +20 -0
  99. package/dist/styled-system/patterns/visually-hidden.js +18 -0
  100. package/dist/styled-system/patterns/vstack.d.ts +21 -0
  101. package/dist/styled-system/patterns/vstack.js +24 -0
  102. package/dist/styled-system/patterns/wrap.d.ts +24 -0
  103. package/dist/styled-system/patterns/wrap.js +25 -0
  104. package/dist/styled-system/recipes/content-header.d.ts +31 -0
  105. package/dist/styled-system/recipes/content-header.js +65 -0
  106. package/dist/styled-system/recipes/content-page.d.ts +34 -0
  107. package/dist/styled-system/recipes/content-page.js +43 -0
  108. package/dist/styled-system/recipes/create-recipe.js +82 -0
  109. package/dist/styled-system/recipes/index.d.ts +17 -0
  110. package/dist/styled-system/recipes/index.js +16 -0
  111. package/dist/styled-system/recipes/metric-block.d.ts +34 -0
  112. package/dist/styled-system/recipes/metric-block.js +76 -0
  113. package/dist/styled-system/recipes/product-list.d.ts +31 -0
  114. package/dist/styled-system/recipes/product-list.js +73 -0
  115. package/dist/styled-system/recipes/product-section.d.ts +31 -0
  116. package/dist/styled-system/recipes/product-section.js +49 -0
  117. package/dist/styled-system/recipes/product-settings-row.d.ts +34 -0
  118. package/dist/styled-system/recipes/product-settings-row.js +58 -0
  119. package/dist/styled-system/recipes/product-settings.d.ts +31 -0
  120. package/dist/styled-system/recipes/product-settings.js +57 -0
  121. package/dist/styled-system/recipes/product-status.d.ts +34 -0
  122. package/dist/styled-system/recipes/product-status.js +45 -0
  123. package/dist/styled-system/recipes/product-toolbar.d.ts +31 -0
  124. package/dist/styled-system/recipes/product-toolbar.js +41 -0
  125. package/dist/styled-system/recipes/product-workspace.d.ts +34 -0
  126. package/dist/styled-system/recipes/product-workspace.js +58 -0
  127. package/dist/styled-system/recipes/surface-metric.d.ts +38 -0
  128. package/dist/styled-system/recipes/surface-metric.js +63 -0
  129. package/dist/styled-system/recipes/surface-table.d.ts +34 -0
  130. package/dist/styled-system/recipes/surface-table.js +62 -0
  131. package/dist/styled-system/recipes/ui-badge.d.ts +31 -0
  132. package/dist/styled-system/recipes/ui-badge.js +38 -0
  133. package/dist/styled-system/recipes/ui-button.d.ts +32 -0
  134. package/dist/styled-system/recipes/ui-button.js +43 -0
  135. package/dist/styled-system/recipes/ui-input.d.ts +31 -0
  136. package/dist/styled-system/recipes/ui-input.js +49 -0
  137. package/dist/styled-system/recipes/ui-textarea.d.ts +31 -0
  138. package/dist/styled-system/recipes/ui-textarea.js +24 -0
  139. package/dist/styled-system/styles.css +1257 -0
  140. package/dist/styled-system/tokens/index.d.ts +9 -0
  141. package/dist/styled-system/tokens/index.js +268 -0
  142. package/dist/styled-system/tokens/tokens.d.ts +36 -0
  143. package/dist/styled-system/types/composition.d.ts +227 -0
  144. package/dist/styled-system/types/conditions.d.ts +236 -0
  145. package/dist/styled-system/types/csstype.d.ts +22570 -0
  146. package/dist/styled-system/types/index.d.ts +6 -0
  147. package/dist/styled-system/types/parts.d.ts +8 -0
  148. package/dist/styled-system/types/pattern.d.ts +78 -0
  149. package/dist/styled-system/types/prop-type.d.ts +223 -0
  150. package/dist/styled-system/types/recipe.d.ts +181 -0
  151. package/dist/styled-system/types/selectors.d.ts +59 -0
  152. package/dist/styled-system/types/static-css.d.ts +56 -0
  153. package/dist/styled-system/types/style-props.d.ts +8088 -0
  154. package/dist/styled-system/types/system-types.d.ts +151 -0
  155. package/dist/styles/editor.css +124 -0
  156. package/dist/styles/editor.generated.d.ts +8 -0
  157. package/dist/styles/editor.generated.js +9 -0
  158. package/dist/styles.css +1262 -0
  159. package/dist/svar-catalog.d.ts +3 -0
  160. package/dist/svar-catalog.js +7 -0
  161. package/dist/svar-context.d.ts +9 -0
  162. package/dist/svar-context.js +1 -0
  163. package/dist/svar-schema.d.ts +21 -0
  164. package/dist/svar-schema.js +36 -0
  165. package/dist/svar.d.ts +4 -0
  166. package/dist/svar.js +3 -0
  167. package/dist/svelte.d.ts +4 -2
  168. package/dist/svelte.js +2 -1
  169. package/dist/types.d.ts +4 -0
  170. package/dist/validation.js +2 -102
  171. package/dist/wire.d.ts +13 -0
  172. package/dist/wire.js +30 -0
  173. package/dist/workflows/action-contracts.d.ts +7 -0
  174. package/dist/workflows/action-contracts.js +54 -0
  175. package/dist/workflows/catalog.d.ts +20 -0
  176. package/dist/workflows/catalog.js +50 -0
  177. package/dist/workflows/client.d.ts +45 -0
  178. package/dist/workflows/client.js +125 -0
  179. package/dist/workflows/context.d.ts +9 -0
  180. package/dist/workflows/context.js +5 -0
  181. package/dist/workflows/openui-guard.d.ts +19 -0
  182. package/dist/workflows/openui-guard.js +209 -0
  183. package/dist/workflows/service.d.ts +58 -0
  184. package/dist/workflows/service.js +296 -0
  185. package/dist/workflows/sqlite-store.d.ts +20 -0
  186. package/dist/workflows/sqlite-store.js +91 -0
  187. package/dist/workflows/types.d.ts +103 -0
  188. package/dist/workflows/types.js +8 -0
  189. package/dist/workflows.d.ts +5 -0
  190. package/dist/workflows.js +4 -0
  191. package/package.json +52 -8
@@ -0,0 +1,49 @@
1
+ import { compact, getSlotCompoundVariant, memo, splitProps } from '../helpers.js';
2
+ import { createRecipe } from './create-recipe.js';
3
+
4
+ const productSectionDefaultVariants = {}
5
+ const productSectionCompoundVariants = []
6
+
7
+ const productSectionSlotNames = [
8
+ [
9
+ "root",
10
+ "product-section__root"
11
+ ],
12
+ [
13
+ "heading",
14
+ "product-section__heading"
15
+ ],
16
+ [
17
+ "title",
18
+ "product-section__title"
19
+ ],
20
+ [
21
+ "description",
22
+ "product-section__description"
23
+ ],
24
+ [
25
+ "actions",
26
+ "product-section__actions"
27
+ ]
28
+ ]
29
+ const productSectionSlotFns = /* @__PURE__ */ productSectionSlotNames.map(([slotName, slotKey]) => [slotName, createRecipe(slotKey, productSectionDefaultVariants, getSlotCompoundVariant(productSectionCompoundVariants, slotName))])
30
+
31
+ const productSectionFn = memo((props = {}) => {
32
+ return Object.fromEntries(productSectionSlotFns.map(([slotName, slotFn]) => [slotName, slotFn.recipeFn(props)]))
33
+ })
34
+
35
+ const productSectionVariantKeys = []
36
+ const getVariantProps = (variants) => ({ ...productSectionDefaultVariants, ...compact(variants) })
37
+
38
+ export const productSection = /* @__PURE__ */ Object.assign(productSectionFn, {
39
+ __recipe__: false,
40
+ __name__: 'productSection',
41
+ raw: (props) => props,
42
+ classNameMap: {},
43
+ variantKeys: productSectionVariantKeys,
44
+ variantMap: {},
45
+ splitVariantProps(props) {
46
+ return splitProps(props, productSectionVariantKeys)
47
+ },
48
+ getVariantProps
49
+ })
@@ -0,0 +1,34 @@
1
+ /* eslint-disable */
2
+ import type { ConditionalValue } from '../types/index';
3
+ import type { DistributiveOmit, Pretty } from '../types/system-types';
4
+
5
+ interface ProductSettingsRowVariant {
6
+ /**
7
+ * @default false
8
+ */
9
+ separated: boolean
10
+ }
11
+
12
+ type ProductSettingsRowVariantMap = {
13
+ [key in keyof ProductSettingsRowVariant]: Array<ProductSettingsRowVariant[key]>
14
+ }
15
+
16
+ type ProductSettingsRowSlot = "root" | "heading" | "label" | "description" | "control"
17
+
18
+ export type ProductSettingsRowVariantProps = {
19
+ [key in keyof ProductSettingsRowVariant]?: ConditionalValue<ProductSettingsRowVariant[key]> | undefined
20
+ }
21
+
22
+ export interface ProductSettingsRowRecipe {
23
+ __slot: ProductSettingsRowSlot
24
+ __type: ProductSettingsRowVariantProps
25
+ (props?: ProductSettingsRowVariantProps): Pretty<Record<ProductSettingsRowSlot, string>>
26
+ raw: (props?: ProductSettingsRowVariantProps) => ProductSettingsRowVariantProps
27
+ variantMap: ProductSettingsRowVariantMap
28
+ variantKeys: Array<keyof ProductSettingsRowVariant>
29
+ splitVariantProps<Props extends ProductSettingsRowVariantProps>(props: Props): [ProductSettingsRowVariantProps, Pretty<DistributiveOmit<Props, keyof ProductSettingsRowVariantProps>>]
30
+ getVariantProps: (props?: ProductSettingsRowVariantProps) => ProductSettingsRowVariantProps
31
+ }
32
+
33
+
34
+ export declare const productSettingsRow: ProductSettingsRowRecipe
@@ -0,0 +1,58 @@
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
+ })
@@ -0,0 +1,31 @@
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
@@ -0,0 +1,57 @@
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
+ })
@@ -0,0 +1,34 @@
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
@@ -0,0 +1,45 @@
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
+ })
@@ -0,0 +1,31 @@
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
@@ -0,0 +1,41 @@
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
+ })
@@ -0,0 +1,34 @@
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
@@ -0,0 +1,58 @@
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
+ })
@@ -0,0 +1,38 @@
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
@@ -0,0 +1,63 @@
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
+ })
@@ -0,0 +1,34 @@
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
@@ -0,0 +1,62 @@
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
+ })