@stokelp/styled-system 2.126.1 → 3.0.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/css/conditions.d.ts +7 -0
- package/css/conditions.js +32 -0
- package/css/css.d.ts +6 -6
- package/css/css.js +63 -0
- package/css/cva.d.ts +3 -4
- package/css/cva.js +51 -0
- package/css/cx.d.ts +5 -4
- package/css/{cx.mjs → cx.js} +5 -4
- package/css/first-that-works.d.ts +22 -0
- package/css/first-that-works.js +1 -0
- package/css/index.d.ts +8 -5
- package/css/index.js +8 -0
- package/css/keyframes.d.ts +5 -0
- package/css/keyframes.js +8 -0
- package/css/position-try.d.ts +5 -0
- package/css/position-try.js +11 -0
- package/css/sva.d.ts +2 -3
- package/css/sva.js +49 -0
- package/css/view-transition.d.ts +7 -0
- package/css/view-transition.js +18 -0
- package/dist/panda/buildinfo.json +20580 -0
- package/dist/panda/lib.json +15 -0
- package/dist/panda/preset.mjs +9505 -0
- package/helpers.d.ts +67 -0
- package/helpers.js +624 -0
- package/jsx/aspect-ratio.d.ts +5 -8
- package/jsx/aspect-ratio.js +11 -0
- package/jsx/bleed.d.ts +6 -9
- package/jsx/bleed.js +11 -0
- package/jsx/box.d.ts +6 -9
- package/jsx/box.js +11 -0
- package/jsx/center.d.ts +6 -9
- package/jsx/center.js +11 -0
- package/jsx/circle.d.ts +6 -9
- package/jsx/circle.js +11 -0
- package/jsx/container.d.ts +6 -9
- package/jsx/container.js +11 -0
- package/jsx/cq.d.ts +6 -9
- package/jsx/cq.js +11 -0
- package/jsx/create-recipe-context.d.ts +31 -0
- package/jsx/create-recipe-context.js +38 -0
- package/jsx/create-slot-recipe-context.d.ts +49 -0
- package/jsx/create-slot-recipe-context.js +124 -0
- package/jsx/divider.d.ts +6 -9
- package/jsx/divider.js +11 -0
- package/jsx/factory.d.ts +3 -3
- package/jsx/factory.js +91 -0
- package/jsx/flex.d.ts +6 -9
- package/jsx/flex.js +11 -0
- package/jsx/float.d.ts +6 -9
- package/jsx/float.js +11 -0
- package/jsx/grid-item.d.ts +6 -9
- package/jsx/grid-item.js +11 -0
- package/jsx/grid.d.ts +6 -9
- package/jsx/grid.js +11 -0
- package/jsx/helper.d.ts +34 -0
- package/jsx/helper.js +92 -0
- package/jsx/hstack.d.ts +6 -9
- package/jsx/hstack.js +11 -0
- package/jsx/index.d.ts +25 -25
- package/jsx/index.js +24 -0
- package/jsx/is-valid-prop.d.ts +5 -10
- package/jsx/is-valid-prop.js +12 -0
- package/jsx/link-overlay.d.ts +6 -9
- package/jsx/link-overlay.js +11 -0
- package/jsx/spacer.d.ts +6 -9
- package/jsx/spacer.js +11 -0
- package/jsx/square.d.ts +6 -9
- package/jsx/square.js +11 -0
- package/jsx/stack.d.ts +6 -9
- package/jsx/stack.js +11 -0
- package/jsx/visually-hidden.d.ts +6 -9
- package/jsx/visually-hidden.js +11 -0
- package/jsx/vstack.d.ts +6 -9
- package/jsx/vstack.js +11 -0
- package/jsx/wrap.d.ts +6 -9
- package/jsx/wrap.js +11 -0
- package/package.json +32 -18
- package/patterns/aspect-ratio.d.ts +8 -9
- package/patterns/aspect-ratio.js +37 -0
- package/patterns/bleed.d.ts +9 -10
- package/patterns/bleed.js +30 -0
- package/patterns/box.d.ts +8 -11
- package/patterns/box.js +16 -0
- package/patterns/center.d.ts +8 -9
- package/patterns/center.js +22 -0
- package/patterns/circle.d.ts +8 -9
- package/patterns/circle.js +26 -0
- package/patterns/container.d.ts +8 -11
- package/patterns/container.js +26 -0
- package/patterns/cq.d.ts +10 -10
- package/patterns/cq.js +24 -0
- package/patterns/divider.d.ts +11 -11
- package/patterns/divider.js +31 -0
- package/patterns/flex.d.ts +14 -15
- package/patterns/flex.js +27 -0
- package/patterns/float.d.ts +12 -12
- package/patterns/float.js +78 -0
- package/patterns/grid-item.d.ts +13 -14
- package/patterns/grid-item.js +26 -0
- package/patterns/grid.d.ts +13 -13
- package/patterns/grid.js +30 -0
- package/patterns/hstack.d.ts +9 -10
- package/patterns/hstack.js +27 -0
- package/patterns/index.d.ts +20 -21
- package/patterns/index.js +20 -0
- package/patterns/link-overlay.d.ts +8 -11
- package/patterns/link-overlay.js +25 -0
- package/patterns/runtime.js +25 -0
- package/patterns/spacer.d.ts +9 -9
- package/patterns/spacer.js +25 -0
- package/patterns/square.d.ts +8 -9
- package/patterns/square.js +25 -0
- package/patterns/stack.d.ts +11 -12
- package/patterns/stack.js +30 -0
- package/patterns/visually-hidden.d.ts +8 -11
- package/patterns/visually-hidden.js +19 -0
- package/patterns/vstack.d.ts +9 -10
- package/patterns/vstack.js +27 -0
- package/patterns/wrap.d.ts +12 -13
- package/patterns/wrap.js +26 -0
- package/recipes/accordion.d.ts +10 -26
- package/recipes/accordion.js +5 -0
- package/recipes/action-card.d.ts +9 -26
- package/recipes/action-card.js +5 -0
- package/recipes/alert.d.ts +10 -28
- package/recipes/alert.js +5 -0
- package/recipes/app-navigation-language-select.d.ts +12 -34
- package/recipes/app-navigation-language-select.js +5 -0
- package/recipes/app-navigation.d.ts +10 -28
- package/recipes/app-navigation.js +5 -0
- package/recipes/avatar-group.d.ts +8 -26
- package/recipes/avatar-group.js +5 -0
- package/recipes/avatar.d.ts +11 -30
- package/recipes/avatar.js +5 -0
- package/recipes/breadcrumb.d.ts +9 -24
- package/recipes/breadcrumb.js +5 -0
- package/recipes/button-filter.d.ts +8 -27
- package/recipes/button-filter.js +5 -0
- package/recipes/button.d.ts +10 -37
- package/recipes/button.js +5 -0
- package/recipes/chat-document-message.d.ts +8 -27
- package/recipes/chat-document-message.js +5 -0
- package/recipes/chat-message.d.ts +10 -33
- package/recipes/chat-message.js +5 -0
- package/recipes/chat-profile-avatar.d.ts +9 -29
- package/recipes/chat-profile-avatar.js +5 -0
- package/recipes/chat-text-input.d.ts +8 -27
- package/recipes/chat-text-input.js +5 -0
- package/recipes/chat.d.ts +9 -26
- package/recipes/chat.js +5 -0
- package/recipes/checkbox-card.d.ts +10 -26
- package/recipes/checkbox-card.js +5 -0
- package/recipes/checkbox-group.d.ts +7 -24
- package/recipes/checkbox-group.js +5 -0
- package/recipes/checkbox.d.ts +10 -26
- package/recipes/checkbox.js +5 -0
- package/recipes/chip.d.ts +11 -32
- package/recipes/chip.js +5 -0
- package/recipes/collapsible.d.ts +9 -24
- package/recipes/collapsible.js +5 -0
- package/recipes/combobox.d.ts +11 -27
- package/recipes/combobox.js +5 -0
- package/recipes/datepicker.d.ts +9 -24
- package/recipes/datepicker.js +5 -0
- package/recipes/dialog.d.ts +9 -24
- package/recipes/dialog.js +5 -0
- package/recipes/drawer.d.ts +10 -26
- package/recipes/drawer.js +5 -0
- package/recipes/flag.d.ts +8 -26
- package/recipes/flag.js +5 -0
- package/recipes/form-control.d.ts +8 -27
- package/recipes/form-control.js +5 -0
- package/recipes/form-helper-text.d.ts +8 -27
- package/recipes/form-helper-text.js +5 -0
- package/recipes/form-label.d.ts +10 -28
- package/recipes/form-label.js +5 -0
- package/recipes/heading.d.ts +10 -28
- package/recipes/heading.js +5 -0
- package/recipes/highlighted-input.d.ts +9 -26
- package/recipes/highlighted-input.js +5 -0
- package/recipes/icon-button.d.ts +10 -37
- package/recipes/icon-button.js +5 -0
- package/recipes/icon.d.ts +8 -26
- package/recipes/icon.js +5 -0
- package/recipes/illustration.d.ts +9 -29
- package/recipes/illustration.js +5 -0
- package/recipes/index.d.ts +62 -63
- package/recipes/index.js +62 -0
- package/recipes/input-addon.d.ts +8 -27
- package/recipes/input-addon.js +5 -0
- package/recipes/input-group.d.ts +8 -27
- package/recipes/input-group.js +5 -0
- package/recipes/input.d.ts +9 -29
- package/recipes/input.js +5 -0
- package/recipes/menu.d.ts +10 -26
- package/recipes/menu.js +5 -0
- package/recipes/mobile-navigation.d.ts +10 -28
- package/recipes/mobile-navigation.js +5 -0
- package/recipes/pagination.d.ts +9 -26
- package/recipes/pagination.js +5 -0
- package/recipes/phone-number-input.d.ts +9 -29
- package/recipes/phone-number-input.js +5 -0
- package/recipes/popover.d.ts +9 -24
- package/recipes/popover.js +5 -0
- package/recipes/price-tag.d.ts +10 -26
- package/recipes/price-tag.js +5 -0
- package/recipes/product-card-catalog.d.ts +9 -26
- package/recipes/product-card-catalog.js +5 -0
- package/recipes/radio-button-group.d.ts +10 -26
- package/recipes/radio-button-group.js +5 -0
- package/recipes/radio-card-group.d.ts +10 -26
- package/recipes/radio-card-group.js +5 -0
- package/recipes/radio-group.d.ts +10 -26
- package/recipes/radio-group.js +5 -0
- package/recipes/runtime.js +133 -0
- package/recipes/select-language.d.ts +10 -26
- package/recipes/select-language.js +5 -0
- package/recipes/select.d.ts +11 -27
- package/recipes/select.js +5 -0
- package/recipes/status-tag-select.d.ts +11 -30
- package/recipes/status-tag-select.js +5 -0
- package/recipes/steps.d.ts +9 -24
- package/recipes/steps.js +5 -0
- package/recipes/switch-card.d.ts +10 -26
- package/recipes/switch-card.js +5 -0
- package/recipes/switch-recipe.d.ts +10 -26
- package/recipes/switch-recipe.js +5 -0
- package/recipes/table-container.d.ts +7 -24
- package/recipes/table-container.js +5 -0
- package/recipes/table-empty-row.d.ts +7 -24
- package/recipes/table-empty-row.js +5 -0
- package/recipes/table-group-title.d.ts +8 -26
- package/recipes/table-group-title.js +5 -0
- package/recipes/table.d.ts +9 -24
- package/recipes/table.js +5 -0
- package/recipes/tabs-chip.d.ts +9 -29
- package/recipes/tabs-chip.js +5 -0
- package/recipes/tabs.d.ts +11 -30
- package/recipes/tabs.js +5 -0
- package/recipes/tag.d.ts +11 -32
- package/recipes/tag.js +5 -0
- package/recipes/text.d.ts +12 -30
- package/recipes/text.js +5 -0
- package/recipes/textarea.d.ts +7 -24
- package/recipes/textarea.js +5 -0
- package/recipes/tooltip.d.ts +9 -24
- package/recipes/tooltip.js +5 -0
- package/tokens/index.d.ts +4 -5
- package/tokens/index.js +18 -0
- package/types/index.d.ts +6 -8
- package/types/jsx.d.ts +37 -28
- package/types/pattern.d.ts +18 -70
- package/types/recipe.d.ts +58 -150
- package/types/register.d.ts +40 -0
- package/types/system.d.ts +1816 -0
- package/types/tokens.d.ts +72 -0
- package/css/conditions.mjs +0 -36
- package/css/css.mjs +0 -45
- package/css/cva.mjs +0 -87
- package/css/index.mjs +0 -4
- package/css/sva.mjs +0 -46
- package/helpers.mjs +0 -328
- package/jsx/aspect-ratio.mjs +0 -14
- package/jsx/bleed.mjs +0 -14
- package/jsx/box.mjs +0 -14
- package/jsx/center.mjs +0 -14
- package/jsx/circle.mjs +0 -14
- package/jsx/container.mjs +0 -14
- package/jsx/cq.mjs +0 -14
- package/jsx/create-style-context.d.ts +0 -54
- package/jsx/create-style-context.mjs +0 -118
- package/jsx/divider.mjs +0 -14
- package/jsx/factory-helper.mjs +0 -22
- package/jsx/factory.mjs +0 -89
- package/jsx/flex.mjs +0 -14
- package/jsx/float.mjs +0 -14
- package/jsx/grid-item.mjs +0 -14
- package/jsx/grid.mjs +0 -14
- package/jsx/hstack.mjs +0 -14
- package/jsx/index.mjs +0 -23
- package/jsx/is-valid-prop.mjs +0 -17
- package/jsx/link-overlay.mjs +0 -14
- package/jsx/spacer.mjs +0 -14
- package/jsx/square.mjs +0 -14
- package/jsx/stack.mjs +0 -14
- package/jsx/visually-hidden.mjs +0 -14
- package/jsx/vstack.mjs +0 -14
- package/jsx/wrap.mjs +0 -14
- package/panda.buildinfo.json +0 -471
- package/patterns/aspect-ratio.mjs +0 -38
- package/patterns/bleed.mjs +0 -24
- package/patterns/box.mjs +0 -15
- package/patterns/center.mjs +0 -21
- package/patterns/circle.mjs +0 -25
- package/patterns/container.mjs +0 -21
- package/patterns/cq.mjs +0 -21
- package/patterns/divider.mjs +0 -25
- package/patterns/flex.mjs +0 -26
- package/patterns/float.mjs +0 -52
- package/patterns/grid-item.mjs +0 -25
- package/patterns/grid.mjs +0 -27
- package/patterns/hstack.mjs +0 -24
- package/patterns/index.mjs +0 -20
- package/patterns/link-overlay.mjs +0 -24
- package/patterns/spacer.mjs +0 -25
- package/patterns/square.mjs +0 -24
- package/patterns/stack.mjs +0 -24
- package/patterns/visually-hidden.mjs +0 -18
- package/patterns/vstack.mjs +0 -24
- package/patterns/wrap.mjs +0 -25
- package/recipes/accordion.mjs +0 -57
- package/recipes/action-card.mjs +0 -45
- package/recipes/alert.mjs +0 -57
- package/recipes/app-navigation-language-select.mjs +0 -109
- package/recipes/app-navigation.mjs +0 -84
- package/recipes/avatar-group.mjs +0 -32
- package/recipes/avatar.mjs +0 -57
- package/recipes/breadcrumb.mjs +0 -45
- package/recipes/button-filter.mjs +0 -24
- package/recipes/button.mjs +0 -212
- package/recipes/chat-document-message.mjs +0 -24
- package/recipes/chat-message.mjs +0 -36
- package/recipes/chat-profile-avatar.mjs +0 -31
- package/recipes/chat-text-input.mjs +0 -24
- package/recipes/chat.mjs +0 -45
- package/recipes/checkbox-card.mjs +0 -73
- package/recipes/checkbox-group.mjs +0 -24
- package/recipes/checkbox.mjs +0 -57
- package/recipes/chip.mjs +0 -76
- package/recipes/collapsible.mjs +0 -45
- package/recipes/combobox.mjs +0 -101
- package/recipes/create-recipe.mjs +0 -82
- package/recipes/datepicker.mjs +0 -133
- package/recipes/dialog.mjs +0 -69
- package/recipes/drawer.mjs +0 -78
- package/recipes/flag.mjs +0 -33
- package/recipes/form-control.mjs +0 -24
- package/recipes/form-helper-text.mjs +0 -24
- package/recipes/form-label.mjs +0 -50
- package/recipes/heading.mjs +0 -41
- package/recipes/highlighted-input.mjs +0 -45
- package/recipes/icon-button.mjs +0 -233
- package/recipes/icon.mjs +0 -34
- package/recipes/illustration.mjs +0 -37
- package/recipes/index.mjs +0 -62
- package/recipes/input-addon.mjs +0 -24
- package/recipes/input-group.mjs +0 -24
- package/recipes/input.mjs +0 -30
- package/recipes/menu.mjs +0 -93
- package/recipes/mobile-navigation.mjs +0 -56
- package/recipes/pagination.mjs +0 -41
- package/recipes/phone-number-input.mjs +0 -30
- package/recipes/popover.mjs +0 -69
- package/recipes/price-tag.mjs +0 -51
- package/recipes/product-card-catalog.mjs +0 -73
- package/recipes/radio-button-group.mjs +0 -62
- package/recipes/radio-card-group.mjs +0 -77
- package/recipes/radio-group.mjs +0 -61
- package/recipes/select-language.mjs +0 -98
- package/recipes/select.mjs +0 -101
- package/recipes/status-tag-select.mjs +0 -108
- package/recipes/steps.mjs +0 -69
- package/recipes/switch-card.mjs +0 -69
- package/recipes/switch-recipe.mjs +0 -53
- package/recipes/table-container.mjs +0 -24
- package/recipes/table-empty-row.mjs +0 -24
- package/recipes/table-group-title.mjs +0 -32
- package/recipes/table.mjs +0 -61
- package/recipes/tabs-chip.mjs +0 -35
- package/recipes/tabs.mjs +0 -63
- package/recipes/tag.mjs +0 -57
- package/recipes/text.mjs +0 -41
- package/recipes/textarea.mjs +0 -24
- package/recipes/tooltip.mjs +0 -49
- package/tokens/index.mjs +0 -1728
- package/tokens/tokens.d.ts +0 -63
- package/types/composition.d.ts +0 -227
- package/types/conditions.d.ts +0 -300
- package/types/csstype.d.ts +0 -22570
- package/types/global.d.ts +0 -20
- package/types/parts.d.ts +0 -8
- package/types/prop-type.d.ts +0 -251
- package/types/selectors.d.ts +0 -59
- package/types/static-css.d.ts +0 -56
- package/types/style-props.d.ts +0 -8089
- package/types/system-types.d.ts +0 -151
package/panda.buildinfo.json
DELETED
|
@@ -1,471 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schemaVersion": "1.11.1",
|
|
3
|
-
"styles": {
|
|
4
|
-
"atomic": [
|
|
5
|
-
"fill]___[value:none",
|
|
6
|
-
"marginLeft]___[value:auto",
|
|
7
|
-
"minWidth]___[value:80px",
|
|
8
|
-
"minWidth]___[value:120px",
|
|
9
|
-
"background]___[value:error.500]___[cond:_disabled<___>_hover",
|
|
10
|
-
"background]___[value:error.500]___[cond:_disabled<___>_active",
|
|
11
|
-
"background]___[value:error.500]___[cond:_disabled",
|
|
12
|
-
"background]___[value:error.800]___[cond:_active",
|
|
13
|
-
"background]___[value:error.700]___[cond:_hover",
|
|
14
|
-
"background]___[value:error.500",
|
|
15
|
-
"background]___[value:transparent]___[cond:_disabled<___>_hover",
|
|
16
|
-
"background]___[value:transparent]___[cond:_disabled<___>_active",
|
|
17
|
-
"background]___[value:transparent]___[cond:_disabled",
|
|
18
|
-
"background]___[value:error.700]___[cond:_active",
|
|
19
|
-
"background]___[value:error.500]___[cond:_hover",
|
|
20
|
-
"background]___[value:transparent",
|
|
21
|
-
"borderColor]___[value:error.500",
|
|
22
|
-
"borderColor]___[value:error.700]___[cond:_active",
|
|
23
|
-
"borderStyle]___[value:solid",
|
|
24
|
-
"color]___[value:error.500]___[cond:_disabled<___>_hover",
|
|
25
|
-
"color]___[value:error.500]___[cond:_disabled<___>_active",
|
|
26
|
-
"color]___[value:error.500]___[cond:_disabled",
|
|
27
|
-
"color]___[value:error.500",
|
|
28
|
-
"color]___[value:white]___[cond:_hover",
|
|
29
|
-
"color]___[value:white]___[cond:_active",
|
|
30
|
-
"background]___[value:error.200]___[cond:_active",
|
|
31
|
-
"background]___[value:error.100]___[cond:_hover",
|
|
32
|
-
"color]___[value:error.700]___[cond:_hover",
|
|
33
|
-
"color]___[value:error.700]___[cond:_active",
|
|
34
|
-
"background]___[value:success.500]___[cond:_disabled<___>_hover",
|
|
35
|
-
"background]___[value:success.500]___[cond:_disabled<___>_active",
|
|
36
|
-
"background]___[value:success.500]___[cond:_disabled",
|
|
37
|
-
"background]___[value:success.800]___[cond:_active",
|
|
38
|
-
"background]___[value:success.700]___[cond:_hover",
|
|
39
|
-
"background]___[value:success.500",
|
|
40
|
-
"background]___[value:success.700]___[cond:_active",
|
|
41
|
-
"background]___[value:success.500]___[cond:_hover",
|
|
42
|
-
"borderColor]___[value:success.500",
|
|
43
|
-
"borderColor]___[value:success.700]___[cond:_active",
|
|
44
|
-
"color]___[value:success.500]___[cond:_disabled<___>_hover",
|
|
45
|
-
"color]___[value:success.500]___[cond:_disabled<___>_active",
|
|
46
|
-
"color]___[value:success.500]___[cond:_disabled",
|
|
47
|
-
"color]___[value:success.500",
|
|
48
|
-
"background]___[value:success.200]___[cond:_active",
|
|
49
|
-
"background]___[value:success.100]___[cond:_hover",
|
|
50
|
-
"color]___[value:success.700]___[cond:_hover",
|
|
51
|
-
"color]___[value:success.700]___[cond:_active",
|
|
52
|
-
"minWidth]___[value:auto",
|
|
53
|
-
"display]___[value:flex",
|
|
54
|
-
"alignItems]___[value:center",
|
|
55
|
-
"gap]___[value:space-8",
|
|
56
|
-
"flexDirection]___[value:row",
|
|
57
|
-
"color]___[value:primary.900",
|
|
58
|
-
"color]___[value:primary.500",
|
|
59
|
-
"border]___[value:solid 1px",
|
|
60
|
-
"borderColor]___[value:grey.100",
|
|
61
|
-
"fontFamily]___[value:inherit]___[cond:& *",
|
|
62
|
-
"background]___[value:white",
|
|
63
|
-
"borderRadius]___[value:radius-8",
|
|
64
|
-
"padding]___[value:space-16",
|
|
65
|
-
"minWidth]___[value:220px",
|
|
66
|
-
"maxWidth]___[value:240px",
|
|
67
|
-
"height]___[value:1px",
|
|
68
|
-
"background]___[value:grey.100",
|
|
69
|
-
"marginBottom]___[value:space-8",
|
|
70
|
-
"justifyContent]___[value:center",
|
|
71
|
-
"height]___[value:100%",
|
|
72
|
-
"paddingInline]___[value:space-6",
|
|
73
|
-
"borderRadius]___[value:full",
|
|
74
|
-
"flexShrink]___[value:0",
|
|
75
|
-
"flex]___[value:1",
|
|
76
|
-
"height]___[value:3px",
|
|
77
|
-
"overflow]___[value:hidden",
|
|
78
|
-
"marginTop]___[value:space-8",
|
|
79
|
-
"alignItems]___[value:baseline",
|
|
80
|
-
"justifyContent]___[value:space-between",
|
|
81
|
-
"gap]___[value:8px",
|
|
82
|
-
"height]___[value:18px",
|
|
83
|
-
"gap]___[value:space-4",
|
|
84
|
-
"flexWrap]___[value:wrap",
|
|
85
|
-
"fontSize]___[value:body.md",
|
|
86
|
-
"fontWeight]___[value:bold",
|
|
87
|
-
"fontSize]___[value:body.lg",
|
|
88
|
-
"fontWeight]___[value:medium",
|
|
89
|
-
"fontSize]___[value:body.sm",
|
|
90
|
-
"color]___[value:grey.400",
|
|
91
|
-
"color]___[value:grey.500",
|
|
92
|
-
"minWidth]___[value:40px",
|
|
93
|
-
"textAlign]___[value:right",
|
|
94
|
-
"border]___[value:1px solid",
|
|
95
|
-
"paddingInline]___[value:space-8",
|
|
96
|
-
"paddingBlock]___[value:2px",
|
|
97
|
-
"fontSize]___[value:9px",
|
|
98
|
-
"color]___[value:grey.300",
|
|
99
|
-
"alignItems]___[value:stretch",
|
|
100
|
-
"flexDirection]___[value:column",
|
|
101
|
-
"stroke]___[value:grey.100",
|
|
102
|
-
"fill]___[value:primary.500",
|
|
103
|
-
"truncate]___[value:true",
|
|
104
|
-
"padding]___[value:space-8",
|
|
105
|
-
"textAlign]___[value:center",
|
|
106
|
-
"width]___[value:100%",
|
|
107
|
-
"backgroundColor]___[value:grey.100",
|
|
108
|
-
"marginBlock]___[value:space-4",
|
|
109
|
-
"marginInline]___[value:space-8",
|
|
110
|
-
"width]___[value:21px]___[cond:& > svg",
|
|
111
|
-
"height]___[value:15px]___[cond:& > svg",
|
|
112
|
-
"borderRadius]___[value:3px]___[cond:& > svg",
|
|
113
|
-
"width]___[value:full",
|
|
114
|
-
"width]___[value:fit-content !important",
|
|
115
|
-
"display]___[value:inline-flex",
|
|
116
|
-
"width]___[value:fit-content",
|
|
117
|
-
"maxWidth]___[value:100%",
|
|
118
|
-
"paddingBlock]___[value:space-2",
|
|
119
|
-
"cursor]___[value:default",
|
|
120
|
-
"whiteSpace]___[value:nowrap",
|
|
121
|
-
"zIndex]___[value:10000",
|
|
122
|
-
"padding]___[value:0",
|
|
123
|
-
"border]___[value:none",
|
|
124
|
-
"boxShadow]___[value:0px 8px 16px 4px #1624861A",
|
|
125
|
-
"minWidth]___[value:240px",
|
|
126
|
-
"maxWidth]___[value:260px",
|
|
127
|
-
"gap]___[value:space-2",
|
|
128
|
-
"flex]___[value:0 0 auto",
|
|
129
|
-
"background]___[value:primary.200]___[cond:_hover",
|
|
130
|
-
"background]___[value:primary.100]___[cond:_hover",
|
|
131
|
-
"paddingBottom]___[value:space-24",
|
|
132
|
-
"color]___[value:white",
|
|
133
|
-
"minWidth]___[value:0",
|
|
134
|
-
"fontSize]___[value:10px",
|
|
135
|
-
"opacity]___[value:0.8",
|
|
136
|
-
"fontSize]___[value:12px",
|
|
137
|
-
"alignItems]___[value:flex-end",
|
|
138
|
-
"gap]___[value:space-12",
|
|
139
|
-
"alignItems]___[value:flex-start",
|
|
140
|
-
"gap]___[value:space-16",
|
|
141
|
-
"paddingInline]___[value:space-12",
|
|
142
|
-
"paddingBlock]___[value:space-8",
|
|
143
|
-
"backgroundColor]___[value:grey.50",
|
|
144
|
-
"backgroundColor]___[value:white",
|
|
145
|
-
"paddingBlock]___[value:space-4",
|
|
146
|
-
"width]___[value:140px",
|
|
147
|
-
"height]___[value:14px",
|
|
148
|
-
"width]___[value:70px",
|
|
149
|
-
"height]___[value:12px",
|
|
150
|
-
"width]___[value:size-20",
|
|
151
|
-
"height]___[value:size-20",
|
|
152
|
-
"width]___[value:100px",
|
|
153
|
-
"width]___[value:80px",
|
|
154
|
-
"width]___[value:60px",
|
|
155
|
-
"height]___[value:20px",
|
|
156
|
-
"width]___[value:size-24",
|
|
157
|
-
"height]___[value:size-24",
|
|
158
|
-
"width]___[value:120px",
|
|
159
|
-
"background]___[value:black/10",
|
|
160
|
-
"color]___[value:secondary.500",
|
|
161
|
-
"background]___[value:decorative.yellow.mid",
|
|
162
|
-
"pointerEvents]___[value:none",
|
|
163
|
-
"background]___[value:decorative.blue.mid",
|
|
164
|
-
"background]___[value:decorative.green.mid",
|
|
165
|
-
"background]___[value:secondary.100",
|
|
166
|
-
"gap]___[value:space-0",
|
|
167
|
-
"display]___[value:grid",
|
|
168
|
-
"gridTemplateColumns]___[value:repeat(auto-fit, minmax(300px, 1fr))",
|
|
169
|
-
"gap]___[value:0",
|
|
170
|
-
"borderColor]___[value:primary.100",
|
|
171
|
-
"marginBlock]___[value:space-24",
|
|
172
|
-
"gridTemplateColumns]___[value:repeat(3, 1fr)",
|
|
173
|
-
"background]___[value:red.100",
|
|
174
|
-
"color]___[value:red.500",
|
|
175
|
-
"padding]___[value:space-4",
|
|
176
|
-
"gap]___[value:space-32",
|
|
177
|
-
"marginTop]___[value:100",
|
|
178
|
-
"marginTop]___[value:space-16",
|
|
179
|
-
"gridTemplateColumns]___[value:repeat(10, 21px)",
|
|
180
|
-
"gap]___[value:10px",
|
|
181
|
-
"color]___[value:warning.500",
|
|
182
|
-
"borderRadius]___[value:radius-24",
|
|
183
|
-
"height]___[value:200",
|
|
184
|
-
"width]___[value:400",
|
|
185
|
-
"maxHeight]___[value:102",
|
|
186
|
-
"overflowY]___[value:auto",
|
|
187
|
-
"alignSelf]___[value:flex-end",
|
|
188
|
-
"gap]___[value:120",
|
|
189
|
-
"overflow]___[value:auto",
|
|
190
|
-
"padding]___[value:space-64",
|
|
191
|
-
"height]___[value:500",
|
|
192
|
-
"marginTop]___[value:space-24",
|
|
193
|
-
"maxWidth]___[value:800px",
|
|
194
|
-
"display]___[value:none]___[cond:& [data-part=indicator]",
|
|
195
|
-
"boxShadow]___[value:inset 0 -2px 0 0 {colors.secondary.500}]___[cond:& [data-part=trigger][data-selected]",
|
|
196
|
-
"rowGap]___[value:space-8",
|
|
197
|
-
"maxWidth]___[value:500",
|
|
198
|
-
"textOverflow]___[value:ellipsis",
|
|
199
|
-
"gap]___[value:20",
|
|
200
|
-
"cursor]___[value:pointer",
|
|
201
|
-
"backgroundColor]___[value:primary.300",
|
|
202
|
-
"paddingInline]___[value:space-16",
|
|
203
|
-
"paddingBlock]___[value:space-12",
|
|
204
|
-
"placeContent]___[value:center",
|
|
205
|
-
"backgroundColor]___[value:error.500",
|
|
206
|
-
"borderRadius]___[value:radius-16",
|
|
207
|
-
"background]___[value:linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%)",
|
|
208
|
-
"backgroundSize]___[value:200% 100%",
|
|
209
|
-
"animation]___[value:shimmer 1.5s infinite",
|
|
210
|
-
"borderRadius]___[value:radius-4",
|
|
211
|
-
"backgroundColor]___[value:primary.100"
|
|
212
|
-
],
|
|
213
|
-
"recipes": {
|
|
214
|
-
"icon": [
|
|
215
|
-
"size]___[value:md]___[recipe:icon",
|
|
216
|
-
"size]___[value:xs]___[recipe:icon",
|
|
217
|
-
"size]___[value:sm]___[recipe:icon",
|
|
218
|
-
"size]___[value:lg]___[recipe:icon",
|
|
219
|
-
"size]___[value:xl]___[recipe:icon"
|
|
220
|
-
],
|
|
221
|
-
"iconButton": [
|
|
222
|
-
"size]___[value:sm]___[recipe:iconButton",
|
|
223
|
-
"variant]___[value:tertiary]___[recipe:iconButton",
|
|
224
|
-
"severity]___[value:none]___[recipe:iconButton",
|
|
225
|
-
"size]___[value:md]___[recipe:iconButton",
|
|
226
|
-
"variant]___[value:secondary]___[recipe:iconButton",
|
|
227
|
-
"variant]___[value:primary]___[recipe:iconButton",
|
|
228
|
-
"size]___[value:lg]___[recipe:iconButton",
|
|
229
|
-
"severity]___[value:danger]___[recipe:iconButton",
|
|
230
|
-
"severity]___[value:success]___[recipe:iconButton"
|
|
231
|
-
],
|
|
232
|
-
"avatar": [
|
|
233
|
-
"size]___[value:md]___[recipe:avatar",
|
|
234
|
-
"hasBorder]___[value:false]___[recipe:avatar",
|
|
235
|
-
"hasBorder]___[value:true]___[recipe:avatar",
|
|
236
|
-
"size]___[value:sm]___[recipe:avatar",
|
|
237
|
-
"size]___[value:lg]___[recipe:avatar"
|
|
238
|
-
],
|
|
239
|
-
"text": [
|
|
240
|
-
"size]___[value:md]___[recipe:text",
|
|
241
|
-
"bold]___[value:true]___[recipe:text",
|
|
242
|
-
"size]___[value:sm]___[recipe:text",
|
|
243
|
-
"size]___[value:lg]___[recipe:text",
|
|
244
|
-
"italic]___[value:true]___[recipe:text",
|
|
245
|
-
"underline]___[value:true]___[recipe:text"
|
|
246
|
-
],
|
|
247
|
-
"checkbox": [
|
|
248
|
-
"size]___[value:md]___[recipe:checkbox"
|
|
249
|
-
],
|
|
250
|
-
"checkboxCard": [
|
|
251
|
-
"size]___[value:md]___[recipe:checkboxCard"
|
|
252
|
-
],
|
|
253
|
-
"highlightedInput": [],
|
|
254
|
-
"chip": [
|
|
255
|
-
"size]___[value:sm]___[recipe:chip",
|
|
256
|
-
"colorScheme]___[value:secondary]___[recipe:chip",
|
|
257
|
-
"size]___[value:md]___[recipe:chip",
|
|
258
|
-
"size]___[value:lg]___[recipe:chip",
|
|
259
|
-
"colorScheme]___[value:grey]___[recipe:chip",
|
|
260
|
-
"colorScheme]___[value:red]___[recipe:chip",
|
|
261
|
-
"colorScheme]___[value:yellow]___[recipe:chip",
|
|
262
|
-
"colorScheme]___[value:green]___[recipe:chip",
|
|
263
|
-
"colorScheme]___[value:blue]___[recipe:chip",
|
|
264
|
-
"colorScheme]___[value:purple]___[recipe:chip",
|
|
265
|
-
"colorScheme]___[value:brown]___[recipe:chip",
|
|
266
|
-
"colorScheme]___[value:error]___[recipe:chip",
|
|
267
|
-
"colorScheme]___[value:warning]___[recipe:chip",
|
|
268
|
-
"colorScheme]___[value:fish]___[recipe:chip",
|
|
269
|
-
"colorScheme]___[value:meat]___[recipe:chip",
|
|
270
|
-
"colorScheme]___[value:fruit]___[recipe:chip",
|
|
271
|
-
"colorScheme]___[value:vegetable]___[recipe:chip",
|
|
272
|
-
"colorScheme]___[value:cereal]___[recipe:chip",
|
|
273
|
-
"colorScheme]___[value:oil]___[recipe:chip",
|
|
274
|
-
"colorScheme]___[value:aromatic]___[recipe:chip"
|
|
275
|
-
],
|
|
276
|
-
"input": [
|
|
277
|
-
"size]___[value:md]___[recipe:input"
|
|
278
|
-
],
|
|
279
|
-
"tooltip": [],
|
|
280
|
-
"inputGroup": [],
|
|
281
|
-
"inputAddon": [],
|
|
282
|
-
"formControl": [],
|
|
283
|
-
"formLabel": [
|
|
284
|
-
"variant]___[value:absolute]___[recipe:formLabel",
|
|
285
|
-
"variant]___[value:static]___[recipe:formLabel"
|
|
286
|
-
],
|
|
287
|
-
"combobox": [
|
|
288
|
-
"size]___[value:md]___[recipe:combobox",
|
|
289
|
-
"hideClearTrigger]___[value:true]___[recipe:combobox"
|
|
290
|
-
],
|
|
291
|
-
"flag": [
|
|
292
|
-
"shape]___[value:rounded]___[recipe:flag",
|
|
293
|
-
"shape]___[value:rectangle]___[recipe:flag",
|
|
294
|
-
"shape]___[value:circle]___[recipe:flag",
|
|
295
|
-
"shape]___[value:square]___[recipe:flag"
|
|
296
|
-
],
|
|
297
|
-
"popover": [],
|
|
298
|
-
"switchRecipe": [
|
|
299
|
-
"size]___[value:md]___[recipe:switchRecipe"
|
|
300
|
-
],
|
|
301
|
-
"switchCard": [
|
|
302
|
-
"size]___[value:md]___[recipe:switchCard"
|
|
303
|
-
],
|
|
304
|
-
"table": [],
|
|
305
|
-
"tag": [
|
|
306
|
-
"size]___[value:md]___[recipe:tag",
|
|
307
|
-
"severity]___[value:neutral]___[recipe:tag",
|
|
308
|
-
"size]___[value:sm]___[recipe:tag",
|
|
309
|
-
"severity]___[value:info]___[recipe:tag",
|
|
310
|
-
"severity]___[value:warning]___[recipe:tag",
|
|
311
|
-
"severity]___[value:success]___[recipe:tag",
|
|
312
|
-
"severity]___[value:error]___[recipe:tag",
|
|
313
|
-
"severity]___[value:primary]___[recipe:tag",
|
|
314
|
-
"size]___[value:lg]___[recipe:tag"
|
|
315
|
-
],
|
|
316
|
-
"appNavigation": [
|
|
317
|
-
"variant]___[value:prod]___[recipe:appNavigation",
|
|
318
|
-
"variant]___[value:staging]___[recipe:appNavigation",
|
|
319
|
-
"variant]___[value:dev]___[recipe:appNavigation",
|
|
320
|
-
"variant]___[value:neutral]___[recipe:appNavigation"
|
|
321
|
-
],
|
|
322
|
-
"heading": [
|
|
323
|
-
"size]___[value:h2]___[recipe:heading",
|
|
324
|
-
"italic]___[value:true]___[recipe:heading",
|
|
325
|
-
"underline]___[value:true]___[recipe:heading",
|
|
326
|
-
"size]___[value:h1]___[recipe:heading",
|
|
327
|
-
"size]___[value:h3]___[recipe:heading",
|
|
328
|
-
"size]___[value:h4]___[recipe:heading",
|
|
329
|
-
"size]___[value:h5]___[recipe:heading",
|
|
330
|
-
"size]___[value:h6]___[recipe:heading"
|
|
331
|
-
],
|
|
332
|
-
"collapsible": [],
|
|
333
|
-
"mobileNavigation": [
|
|
334
|
-
"variant]___[value:prod]___[recipe:mobileNavigation",
|
|
335
|
-
"variant]___[value:staging]___[recipe:mobileNavigation",
|
|
336
|
-
"variant]___[value:dev]___[recipe:mobileNavigation",
|
|
337
|
-
"variant]___[value:neutral]___[recipe:mobileNavigation"
|
|
338
|
-
],
|
|
339
|
-
"productCardCatalog": [],
|
|
340
|
-
"priceTag": [
|
|
341
|
-
"size]___[value:sm]___[recipe:priceTag",
|
|
342
|
-
"size]___[value:md]___[recipe:priceTag",
|
|
343
|
-
"size]___[value:lg]___[recipe:priceTag"
|
|
344
|
-
],
|
|
345
|
-
"accordion": [
|
|
346
|
-
"size]___[value:md]___[recipe:accordion"
|
|
347
|
-
],
|
|
348
|
-
"actionCard": [],
|
|
349
|
-
"avatarGroup": [
|
|
350
|
-
"size]___[value:md]___[recipe:avatarGroup",
|
|
351
|
-
"size]___[value:sm]___[recipe:avatarGroup",
|
|
352
|
-
"size]___[value:lg]___[recipe:avatarGroup"
|
|
353
|
-
],
|
|
354
|
-
"breadcrumb": [],
|
|
355
|
-
"checkboxGroup": [],
|
|
356
|
-
"button": [
|
|
357
|
-
"size]___[value:lg]___[recipe:button",
|
|
358
|
-
"variant]___[value:tertiary]___[recipe:button",
|
|
359
|
-
"severity]___[value:none]___[recipe:button",
|
|
360
|
-
"variant]___[value:primary]___[recipe:button",
|
|
361
|
-
"variant]___[value:secondary]___[recipe:button",
|
|
362
|
-
"size]___[value:md]___[recipe:button",
|
|
363
|
-
"size]___[value:sm]___[recipe:button",
|
|
364
|
-
"severity]___[value:danger]___[recipe:button",
|
|
365
|
-
"severity]___[value:success]___[recipe:button"
|
|
366
|
-
],
|
|
367
|
-
"dialog": [],
|
|
368
|
-
"textarea": [],
|
|
369
|
-
"drawer": [
|
|
370
|
-
"variant]___[value:right]___[recipe:drawer",
|
|
371
|
-
"variant]___[value:left]___[recipe:drawer"
|
|
372
|
-
],
|
|
373
|
-
"select": [
|
|
374
|
-
"size]___[value:md]___[recipe:select",
|
|
375
|
-
"hideClearTrigger]___[value:true]___[recipe:select"
|
|
376
|
-
],
|
|
377
|
-
"illustration": [
|
|
378
|
-
"pattern]___[value:neutral]___[recipe:illustration",
|
|
379
|
-
"pattern]___[value:fish]___[recipe:illustration",
|
|
380
|
-
"pattern]___[value:meat]___[recipe:illustration",
|
|
381
|
-
"pattern]___[value:fruit]___[recipe:illustration",
|
|
382
|
-
"pattern]___[value:vegetable]___[recipe:illustration",
|
|
383
|
-
"pattern]___[value:cereal]___[recipe:illustration",
|
|
384
|
-
"pattern]___[value:oil]___[recipe:illustration",
|
|
385
|
-
"pattern]___[value:aromatic]___[recipe:illustration"
|
|
386
|
-
],
|
|
387
|
-
"menu": [
|
|
388
|
-
"size]___[value:md]___[recipe:menu"
|
|
389
|
-
],
|
|
390
|
-
"pagination": [],
|
|
391
|
-
"radioButtonGroup": [
|
|
392
|
-
"size]___[value:md]___[recipe:radioButtonGroup",
|
|
393
|
-
"size]___[value:sm]___[recipe:radioButtonGroup"
|
|
394
|
-
],
|
|
395
|
-
"radioCardGroup": [
|
|
396
|
-
"size]___[value:md]___[recipe:radioCardGroup"
|
|
397
|
-
],
|
|
398
|
-
"radioGroup": [
|
|
399
|
-
"size]___[value:md]___[recipe:radioGroup"
|
|
400
|
-
],
|
|
401
|
-
"statusTagSelect": [
|
|
402
|
-
"size]___[value:md]___[recipe:statusTagSelect",
|
|
403
|
-
"severity]___[value:neutral]___[recipe:statusTagSelect",
|
|
404
|
-
"severity]___[value:success]___[recipe:statusTagSelect",
|
|
405
|
-
"severity]___[value:warning]___[recipe:statusTagSelect",
|
|
406
|
-
"severity]___[value:error]___[recipe:statusTagSelect",
|
|
407
|
-
"severity]___[value:info]___[recipe:statusTagSelect",
|
|
408
|
-
"size]___[value:lg]___[recipe:statusTagSelect",
|
|
409
|
-
"size]___[value:sm]___[recipe:statusTagSelect"
|
|
410
|
-
],
|
|
411
|
-
"steps": [],
|
|
412
|
-
"tableGroupTitle": [
|
|
413
|
-
"variant]___[value:primary]___[recipe:tableGroupTitle",
|
|
414
|
-
"variant]___[value:secondary]___[recipe:tableGroupTitle",
|
|
415
|
-
"variant]___[value:success]___[recipe:tableGroupTitle"
|
|
416
|
-
],
|
|
417
|
-
"tableEmptyRow": [],
|
|
418
|
-
"tableContainer": [],
|
|
419
|
-
"tabs": [
|
|
420
|
-
"variant]___[value:line]___[recipe:tabs",
|
|
421
|
-
"lineVariant]___[value:primary]___[recipe:tabs",
|
|
422
|
-
"lineVariant]___[value:white]___[recipe:tabs"
|
|
423
|
-
],
|
|
424
|
-
"tabsChip": [
|
|
425
|
-
"colorScheme]___[value:neutral]___[recipe:tabsChip",
|
|
426
|
-
"colorScheme]___[value:info]___[recipe:tabsChip",
|
|
427
|
-
"colorScheme]___[value:success]___[recipe:tabsChip",
|
|
428
|
-
"colorScheme]___[value:warning]___[recipe:tabsChip",
|
|
429
|
-
"colorScheme]___[value:error]___[recipe:tabsChip",
|
|
430
|
-
"colorScheme]___[value:grey]___[recipe:tabsChip"
|
|
431
|
-
],
|
|
432
|
-
"chat": [],
|
|
433
|
-
"chatProfileAvatar": [
|
|
434
|
-
"side]___[value:left]___[recipe:chatProfileAvatar",
|
|
435
|
-
"side]___[value:right]___[recipe:chatProfileAvatar"
|
|
436
|
-
],
|
|
437
|
-
"datepicker": [],
|
|
438
|
-
"formHelperText": [],
|
|
439
|
-
"phoneNumberInput": [
|
|
440
|
-
"size]___[value:md]___[recipe:phoneNumberInput"
|
|
441
|
-
],
|
|
442
|
-
"buttonFilter": [],
|
|
443
|
-
"chatMessage": [
|
|
444
|
-
"side]___[value:left]___[recipe:chatMessage",
|
|
445
|
-
"variant]___[value:primary]___[recipe:chatMessage",
|
|
446
|
-
"side]___[value:right]___[recipe:chatMessage",
|
|
447
|
-
"variant]___[value:secondary]___[recipe:chatMessage"
|
|
448
|
-
],
|
|
449
|
-
"chatTextInput": [],
|
|
450
|
-
"chatDocumentMessage": [],
|
|
451
|
-
"selectLanguage": [
|
|
452
|
-
"variant]___[value:default]___[recipe:selectLanguage",
|
|
453
|
-
"variant]___[value:compact]___[recipe:selectLanguage"
|
|
454
|
-
],
|
|
455
|
-
"alert": [
|
|
456
|
-
"severity]___[value:neutral]___[recipe:alert",
|
|
457
|
-
"severity]___[value:info]___[recipe:alert",
|
|
458
|
-
"severity]___[value:success]___[recipe:alert",
|
|
459
|
-
"severity]___[value:warning]___[recipe:alert",
|
|
460
|
-
"severity]___[value:error]___[recipe:alert"
|
|
461
|
-
],
|
|
462
|
-
"appNavigationLanguageSelect": [
|
|
463
|
-
"size]___[value:md]___[recipe:appNavigationLanguageSelect",
|
|
464
|
-
"variant]___[value:primary]___[recipe:appNavigationLanguageSelect",
|
|
465
|
-
"isMiniaturized]___[value:false]___[recipe:appNavigationLanguageSelect",
|
|
466
|
-
"isMiniaturized]___[value:true]___[recipe:appNavigationLanguageSelect",
|
|
467
|
-
"variant]___[value:secondary]___[recipe:appNavigationLanguageSelect"
|
|
468
|
-
]
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const aspectRatioConfig = {
|
|
5
|
-
transform(props, { map }) {
|
|
6
|
-
const { ratio = 4 / 3, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
position: "relative",
|
|
9
|
-
_before: {
|
|
10
|
-
content: `""`,
|
|
11
|
-
display: "block",
|
|
12
|
-
height: "0",
|
|
13
|
-
paddingBottom: map(ratio, (r) => `${1 / r * 100}%`)
|
|
14
|
-
},
|
|
15
|
-
"&>*": {
|
|
16
|
-
display: "flex",
|
|
17
|
-
justifyContent: "center",
|
|
18
|
-
alignItems: "center",
|
|
19
|
-
overflow: "hidden",
|
|
20
|
-
position: "absolute",
|
|
21
|
-
inset: "0",
|
|
22
|
-
width: "100%",
|
|
23
|
-
height: "100%"
|
|
24
|
-
},
|
|
25
|
-
"&>img, &>video": {
|
|
26
|
-
objectFit: "cover"
|
|
27
|
-
},
|
|
28
|
-
...rest
|
|
29
|
-
};
|
|
30
|
-
}}
|
|
31
|
-
|
|
32
|
-
export const getAspectRatioStyle = (styles = {}) => {
|
|
33
|
-
const _styles = getPatternStyles(aspectRatioConfig, styles)
|
|
34
|
-
return aspectRatioConfig.transform(_styles, patternFns)
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
export const aspectRatio = (styles) => css(getAspectRatioStyle(styles))
|
|
38
|
-
aspectRatio.raw = getAspectRatioStyle
|
package/patterns/bleed.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const bleedConfig = {
|
|
5
|
-
transform(props, { map, isCssUnit, isCssVar }) {
|
|
6
|
-
const { inline, block, ...rest } = props;
|
|
7
|
-
const valueFn = (v) => isCssUnit(v) || isCssVar(v) ? v : `token(spacing.${v}, ${v})`;
|
|
8
|
-
return {
|
|
9
|
-
"--bleed-x": map(inline, valueFn),
|
|
10
|
-
"--bleed-y": map(block, valueFn),
|
|
11
|
-
marginInline: "calc(var(--bleed-x, 0) * -1)",
|
|
12
|
-
marginBlock: "calc(var(--bleed-y, 0) * -1)",
|
|
13
|
-
...rest
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
|
-
defaultValues:{inline:'0',block:'0'}}
|
|
17
|
-
|
|
18
|
-
export const getBleedStyle = (styles = {}) => {
|
|
19
|
-
const _styles = getPatternStyles(bleedConfig, styles)
|
|
20
|
-
return bleedConfig.transform(_styles, patternFns)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export const bleed = (styles) => css(getBleedStyle(styles))
|
|
24
|
-
bleed.raw = getBleedStyle
|
package/patterns/box.mjs
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const boxConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
return props;
|
|
7
|
-
}}
|
|
8
|
-
|
|
9
|
-
export const getBoxStyle = (styles = {}) => {
|
|
10
|
-
const _styles = getPatternStyles(boxConfig, styles)
|
|
11
|
-
return boxConfig.transform(_styles, patternFns)
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export const box = (styles) => css(getBoxStyle(styles))
|
|
15
|
-
box.raw = getBoxStyle
|
package/patterns/center.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const centerConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { inline, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: inline ? "inline-flex" : "flex",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
justifyContent: "center",
|
|
11
|
-
...rest
|
|
12
|
-
};
|
|
13
|
-
}}
|
|
14
|
-
|
|
15
|
-
export const getCenterStyle = (styles = {}) => {
|
|
16
|
-
const _styles = getPatternStyles(centerConfig, styles)
|
|
17
|
-
return centerConfig.transform(_styles, patternFns)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const center = (styles) => css(getCenterStyle(styles))
|
|
21
|
-
center.raw = getCenterStyle
|
package/patterns/circle.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const circleConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { size, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
display: "flex",
|
|
9
|
-
alignItems: "center",
|
|
10
|
-
justifyContent: "center",
|
|
11
|
-
flex: "0 0 auto",
|
|
12
|
-
width: size,
|
|
13
|
-
height: size,
|
|
14
|
-
borderRadius: "9999px",
|
|
15
|
-
...rest
|
|
16
|
-
};
|
|
17
|
-
}}
|
|
18
|
-
|
|
19
|
-
export const getCircleStyle = (styles = {}) => {
|
|
20
|
-
const _styles = getPatternStyles(circleConfig, styles)
|
|
21
|
-
return circleConfig.transform(_styles, patternFns)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const circle = (styles) => css(getCircleStyle(styles))
|
|
25
|
-
circle.raw = getCircleStyle
|
package/patterns/container.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const containerConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
return {
|
|
7
|
-
position: "relative",
|
|
8
|
-
maxWidth: "8xl",
|
|
9
|
-
mx: "auto",
|
|
10
|
-
px: { base: "4", md: "6", lg: "8" },
|
|
11
|
-
...props
|
|
12
|
-
};
|
|
13
|
-
}}
|
|
14
|
-
|
|
15
|
-
export const getContainerStyle = (styles = {}) => {
|
|
16
|
-
const _styles = getPatternStyles(containerConfig, styles)
|
|
17
|
-
return containerConfig.transform(_styles, patternFns)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const container = (styles) => css(getContainerStyle(styles))
|
|
21
|
-
container.raw = getContainerStyle
|
package/patterns/cq.mjs
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const cqConfig = {
|
|
5
|
-
transform(props) {
|
|
6
|
-
const { name, type, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
containerType: type,
|
|
9
|
-
containerName: name,
|
|
10
|
-
...rest
|
|
11
|
-
};
|
|
12
|
-
},
|
|
13
|
-
defaultValues:{type:'inline-size'}}
|
|
14
|
-
|
|
15
|
-
export const getCqStyle = (styles = {}) => {
|
|
16
|
-
const _styles = getPatternStyles(cqConfig, styles)
|
|
17
|
-
return cqConfig.transform(_styles, patternFns)
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export const cq = (styles) => css(getCqStyle(styles))
|
|
21
|
-
cq.raw = getCqStyle
|
package/patterns/divider.mjs
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { getPatternStyles, patternFns } from '../helpers.mjs';
|
|
2
|
-
import { css } from '../css/index.mjs';
|
|
3
|
-
|
|
4
|
-
const dividerConfig = {
|
|
5
|
-
transform(props, { map }) {
|
|
6
|
-
const { orientation, thickness, color, ...rest } = props;
|
|
7
|
-
return {
|
|
8
|
-
"--thickness": thickness,
|
|
9
|
-
width: map(orientation, (v) => v === "vertical" ? void 0 : "100%"),
|
|
10
|
-
height: map(orientation, (v) => v === "horizontal" ? void 0 : "100%"),
|
|
11
|
-
borderBlockEndWidth: map(orientation, (v) => v === "horizontal" ? "var(--thickness)" : void 0),
|
|
12
|
-
borderInlineEndWidth: map(orientation, (v) => v === "vertical" ? "var(--thickness)" : void 0),
|
|
13
|
-
borderColor: color,
|
|
14
|
-
...rest
|
|
15
|
-
};
|
|
16
|
-
},
|
|
17
|
-
defaultValues:{orientation:'horizontal',thickness:'1px'}}
|
|
18
|
-
|
|
19
|
-
export const getDividerStyle = (styles = {}) => {
|
|
20
|
-
const _styles = getPatternStyles(dividerConfig, styles)
|
|
21
|
-
return dividerConfig.transform(_styles, patternFns)
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export const divider = (styles) => css(getDividerStyle(styles))
|
|
25
|
-
divider.raw = getDividerStyle
|