@teseor/css 1.14.2 → 1.15.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/package.json +1 -1
- package/src/base/root.docs.html +20 -0
- package/src/base/typography/typography.docs.html +161 -0
- package/src/components/actions/button/button.docs.html +76 -0
- package/src/components/actions/button/button.visual.spec.ts +7 -3
- package/src/components/actions/button-group/button-group.docs.html +47 -0
- package/src/components/actions/button-group/button-group.visual.spec.ts +7 -3
- package/src/components/actions/close-button/close-button.docs.html +77 -0
- package/src/components/actions/close-button/close-button.visual.spec.ts +7 -3
- package/src/components/content/divider/divider.docs.html +27 -0
- package/src/components/content/divider/divider.visual.spec.ts +7 -3
- package/src/components/content/scroll-area/scroll-area-visual.png +0 -0
- package/src/components/content/scroll-area/scroll-area.docs.html +130 -0
- package/src/components/content/scroll-area/scroll-area.visual.spec.ts +7 -3
- package/src/components/content/spacer/spacer.docs.html +23 -0
- package/src/components/content/spacer/spacer.visual.spec.ts +3 -3
- package/src/components/data-display/avatar/avatar.docs.html +67 -0
- package/src/components/data-display/avatar/avatar.visual.spec.ts +7 -3
- package/src/components/data-display/badge/badge.docs.html +39 -0
- package/src/components/data-display/badge/badge.visual.spec.ts +7 -3
- package/src/components/data-display/card/card-visual.png +0 -0
- package/src/components/data-display/card/card.docs.html +36 -0
- package/src/components/data-display/card/card.visual.spec.ts +7 -3
- package/src/components/data-display/data-list/data-list-visual.png +0 -0
- package/src/components/data-display/data-list/data-list.docs.html +97 -0
- package/src/components/data-display/data-list/data-list.visual.spec.ts +7 -3
- package/src/components/data-display/icon/icon.docs.html +72 -0
- package/src/components/data-display/icon/icon.visual.spec.ts +7 -3
- package/src/components/data-display/image/image-visual.png +0 -0
- package/src/components/data-display/image/image.docs.html +67 -0
- package/src/components/data-display/image/image.visual.spec.ts +7 -3
- package/src/components/data-display/stat/stat.docs.html +35 -0
- package/src/components/data-display/stat/stat.visual.spec.ts +7 -3
- package/src/components/data-display/status/status.docs.html +67 -0
- package/src/components/data-display/status/status.visual.spec.ts +7 -3
- package/src/components/data-display/table/table.docs.html +73 -0
- package/src/components/data-display/table/table.visual.spec.ts +7 -3
- package/src/components/data-display/tag/tag.docs.html +42 -0
- package/src/components/data-display/tag/tag.visual.spec.ts +7 -3
- package/src/components/disclosure/accordion/accordion.docs.html +83 -0
- package/src/components/disclosure/accordion/accordion.visual.spec.ts +7 -3
- package/src/components/disclosure/disclosure/disclosure.docs.html +51 -0
- package/src/components/disclosure/disclosure/disclosure.visual.spec.ts +7 -3
- package/src/components/feedback/alert/alert.docs.html +90 -0
- package/src/components/feedback/alert/alert.visual.spec.ts +7 -3
- package/src/components/feedback/progress/progress.docs.html +65 -0
- package/src/components/feedback/progress/progress.visual.spec.ts +7 -3
- package/src/components/feedback/progress-circle/progress-circle.docs.html +65 -0
- package/src/components/feedback/progress-circle/progress-circle.visual.spec.ts +7 -3
- package/src/components/feedback/skeleton/skeleton.docs.html +40 -0
- package/src/components/feedback/skeleton/skeleton.visual.spec.ts +7 -3
- package/src/components/feedback/spinner/spinner.docs.html +28 -0
- package/src/components/feedback/spinner/spinner.visual.spec.ts +7 -3
- package/src/components/feedback/toast/toast-visual.png +0 -0
- package/src/components/feedback/toast/toast.docs.html +109 -0
- package/src/components/feedback/toast/toast.visual.spec.ts +7 -3
- package/src/components/forms/checkbox/checkbox.docs.html +33 -0
- package/src/components/forms/checkbox/checkbox.visual.spec.ts +7 -3
- package/src/components/forms/checkbox-group/checkbox-group.docs.html +104 -0
- package/src/components/forms/checkbox-group/checkbox-group.visual.spec.ts +7 -3
- package/src/components/forms/field/field.docs.html +63 -0
- package/src/components/forms/field/field.visual.spec.ts +7 -3
- package/src/components/forms/fieldset/fieldset.docs.html +122 -0
- package/src/components/forms/fieldset/fieldset.visual.spec.ts +7 -3
- package/src/components/forms/form/form.docs.html +132 -0
- package/src/components/forms/form/form.visual.spec.ts +7 -3
- package/src/components/forms/form-error/form-error.docs.html +18 -0
- package/src/components/forms/form-error/form-error.visual.spec.ts +7 -3
- package/src/components/forms/form-helper/form-helper.docs.html +42 -0
- package/src/components/forms/form-helper/form-helper.visual.spec.ts +7 -3
- package/src/components/forms/input/input-visual.png +0 -0
- package/src/components/forms/input/input.docs.html +69 -0
- package/src/components/forms/input/input.visual.spec.ts +7 -3
- package/src/components/forms/label/label-visual.png +0 -0
- package/src/components/forms/label/label.docs.html +29 -0
- package/src/components/forms/label/label.visual.spec.ts +7 -3
- package/src/components/forms/number-input/number-input-visual.png +0 -0
- package/src/components/forms/number-input/number-input.docs.html +100 -0
- package/src/components/forms/number-input/number-input.visual.spec.ts +7 -3
- package/src/components/forms/password-input/password-input-visual.png +0 -0
- package/src/components/forms/password-input/password-input.docs.html +88 -0
- package/src/components/forms/password-input/password-input.visual.spec.ts +7 -3
- package/src/components/forms/radio/radio.docs.html +52 -0
- package/src/components/forms/radio/radio.visual.spec.ts +7 -3
- package/src/components/forms/radio-group/radio-group.docs.html +100 -0
- package/src/components/forms/radio-group/radio-group.visual.spec.ts +7 -3
- package/src/components/forms/search-input/search-input-visual.png +0 -0
- package/src/components/forms/search-input/search-input.docs.html +87 -0
- package/src/components/forms/search-input/search-input.visual.spec.ts +7 -3
- package/src/components/forms/select/select-visual.png +0 -0
- package/src/components/forms/select/select.docs.html +70 -0
- package/src/components/forms/select/select.visual.spec.ts +7 -3
- package/src/components/forms/slider/slider-visual.png +0 -0
- package/src/components/forms/slider/slider.docs.html +25 -0
- package/src/components/forms/slider/slider.visual.spec.ts +7 -3
- package/src/components/forms/textarea/textarea-visual.png +0 -0
- package/src/components/forms/textarea/textarea.docs.html +39 -0
- package/src/components/forms/textarea/textarea.visual.spec.ts +7 -3
- package/src/components/forms/toggle/toggle.docs.html +64 -0
- package/src/components/forms/toggle/toggle.visual.spec.ts +7 -3
- package/src/components/navigation/breadcrumb/breadcrumb.docs.html +60 -0
- package/src/components/navigation/breadcrumb/breadcrumb.visual.spec.ts +7 -3
- package/src/components/navigation/dropdown-menu/dropdown-menu-visual.png +0 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.docs.html +106 -0
- package/src/components/navigation/dropdown-menu/dropdown-menu.visual.spec.ts +7 -3
- package/src/components/navigation/menu/menu.docs.html +122 -0
- package/src/components/navigation/menu/menu.visual.spec.ts +7 -3
- package/src/components/navigation/nav/nav.docs.html +74 -0
- package/src/components/navigation/nav/nav.visual.spec.ts +7 -3
- package/src/components/navigation/pagination/pagination-visual.png +0 -0
- package/src/components/navigation/pagination/pagination.docs.html +116 -0
- package/src/components/navigation/pagination/pagination.visual.spec.ts +7 -3
- package/src/components/navigation/tabs/tabs.docs.html +66 -0
- package/src/components/navigation/tabs/tabs.visual.spec.ts +7 -3
- package/src/components/overlays/dialog/dialog.docs.html +61 -0
- package/src/components/overlays/dialog/dialog.visual.spec.ts +7 -3
- package/src/components/overlays/drawer/drawer-visual.png +0 -0
- package/src/components/overlays/drawer/drawer.docs.html +90 -0
- package/src/components/overlays/drawer/drawer.visual.spec.ts +7 -3
- package/src/components/overlays/modal/modal.docs.html +69 -0
- package/src/components/overlays/modal/modal.visual.spec.ts +7 -3
- package/src/components/overlays/overlay/overlay.docs.html +30 -0
- package/src/components/overlays/overlay/overlay.visual.spec.ts +7 -3
- package/src/components/overlays/popover/popover.docs.html +41 -0
- package/src/components/overlays/popover/popover.visual.spec.ts +7 -3
- package/src/components/overlays/tooltip/tooltip.docs.html +33 -0
- package/src/components/overlays/tooltip/tooltip.visual.spec.ts +7 -3
- package/src/components/typography/blockquote/blockquote.docs.html +24 -0
- package/src/components/typography/blockquote/blockquote.visual.spec.ts +7 -3
- package/src/components/typography/code/code-visual.png +0 -0
- package/src/components/typography/code/code.docs.html +23 -0
- package/src/components/typography/code/code.visual.spec.ts +7 -3
- package/src/components/typography/code-block/code-block-visual.png +0 -0
- package/src/components/typography/code-block/code-block.docs.html +87 -0
- package/src/components/typography/code-block/code-block.visual.spec.ts +7 -3
- package/src/components/typography/heading/heading-visual.png +0 -0
- package/src/components/typography/heading/heading.docs.html +26 -0
- package/src/components/typography/heading/heading.visual.spec.ts +7 -3
- package/src/components/typography/kbd/kbd.docs.html +16 -0
- package/src/components/typography/kbd/kbd.visual.spec.ts +7 -3
- package/src/components/typography/link/link.docs.html +33 -0
- package/src/components/typography/link/link.visual.spec.ts +7 -3
- package/src/components/typography/list/list.docs.html +79 -0
- package/src/components/typography/list/list.visual.spec.ts +7 -3
- package/src/components/typography/mark/mark.docs.html +12 -0
- package/src/components/typography/mark/mark.visual.spec.ts +7 -3
- package/src/config/guides/accessibility.docs.html +108 -0
- package/src/config/guides/getting-started.docs.html +47 -0
- package/src/config/guides/theming.docs.html +71 -0
- package/src/config/tokens/colors/colors.docs.html +75 -0
- package/src/config/tokens/design-tokens.docs.html +116 -0
- package/src/config/tokens/grid/grid.docs.html +12 -0
- package/src/config/tokens/spacing/spacing.docs.html +33 -0
- package/src/debug/debug.docs.html +29 -0
- package/src/debug/index.scss +81 -1
- package/src/layout/app-shell/app-shell-visual.png +0 -0
- package/src/layout/app-shell/app-shell.docs.html +102 -0
- package/src/layout/app-shell/app-shell.visual.spec.ts +3 -3
- package/src/layout/aspect-ratio/aspect-ratio.docs.html +41 -0
- package/src/layout/aspect-ratio/aspect-ratio.visual.spec.ts +3 -3
- package/src/layout/box/box-visual.png +0 -0
- package/src/layout/box/box.docs.html +27 -0
- package/src/layout/box/box.visual.spec.ts +3 -3
- package/src/layout/center/center.docs.html +26 -0
- package/src/layout/center/center.visual.spec.ts +3 -3
- package/src/layout/column/column.docs.html +32 -0
- package/src/layout/column/column.visual.spec.ts +3 -3
- package/src/layout/container/container.docs.html +37 -0
- package/src/layout/content/content-visual.png +0 -0
- package/src/layout/content/content.docs.html +38 -0
- package/src/layout/content/content.visual.spec.ts +7 -3
- package/src/layout/footer/footer-visual.png +0 -0
- package/src/layout/footer/footer.docs.html +73 -0
- package/src/layout/footer/footer.visual.spec.ts +7 -3
- package/src/layout/grid/grid.docs.html +87 -0
- package/src/layout/grid/grid.visual.spec.ts +3 -3
- package/src/layout/main/main.docs.html +31 -0
- package/src/layout/nav-rail/nav-rail-visual.png +0 -0
- package/src/layout/nav-rail/nav-rail.docs.html +42 -0
- package/src/layout/nav-rail/nav-rail.visual.spec.ts +7 -3
- package/src/layout/page-header/page-header.docs.html +52 -0
- package/src/layout/page-header/page-header.visual.spec.ts +7 -3
- package/src/layout/row/row.docs.html +47 -0
- package/src/layout/row/row.visual.spec.ts +3 -3
- package/src/layout/sidebar/sidebar-visual.png +0 -0
- package/src/layout/sidebar/sidebar.docs.html +30 -0
- package/src/layout/sidebar/sidebar.visual.spec.ts +7 -3
- package/src/layout/sidebar-nav/sidebar-nav.docs.html +235 -0
- package/src/layout/sidebar-nav/sidebar-nav.visual.spec.ts +7 -3
- package/src/layout/topbar/topbar-visual.png +0 -0
- package/src/layout/topbar/topbar.docs.html +64 -0
- package/src/layout/topbar/topbar.visual.spec.ts +7 -3
- package/src/utilities/container/container.docs.html +34 -0
- package/src/utilities/display/display.docs.html +30 -0
- package/src/utilities/scroll-animation/scroll-animation.docs.html +32 -0
- package/src/utilities/scroll-snap/scroll-snap.docs.html +80 -0
- package/src/utilities/spacing/spacing.docs.html +29 -0
- package/src/utilities/text/text.docs.html +66 -0
- package/src/utilities/view-transition/view-transition.docs.html +52 -0
- package/src/utilities/visually-hidden/visually-hidden.docs.html +18 -0
- package/src/base/typography/typography.docs.json +0 -328
- package/src/components/actions/button/button.docs.json +0 -264
- package/src/components/actions/button-group/button-group.docs.json +0 -151
- package/src/components/actions/close-button/close-button.docs.json +0 -265
- package/src/components/content/divider/divider.docs.json +0 -113
- package/src/components/content/scroll-area/scroll-area.docs.json +0 -273
- package/src/components/content/spacer/spacer.docs.json +0 -102
- package/src/components/data-display/avatar/avatar.docs.json +0 -245
- package/src/components/data-display/badge/badge.docs.json +0 -114
- package/src/components/data-display/card/card.docs.json +0 -229
- package/src/components/data-display/data-list/data-list.docs.json +0 -259
- package/src/components/data-display/icon/icon.docs.json +0 -307
- package/src/components/data-display/image/image.docs.json +0 -337
- package/src/components/data-display/stat/stat.docs.json +0 -114
- package/src/components/data-display/status/status.docs.json +0 -147
- package/src/components/data-display/table/table.docs.json +0 -184
- package/src/components/data-display/tag/tag.docs.json +0 -146
- package/src/components/disclosure/accordion/accordion.docs.json +0 -206
- package/src/components/disclosure/disclosure/disclosure.docs.json +0 -154
- package/src/components/feedback/alert/alert.docs.json +0 -325
- package/src/components/feedback/progress/progress.docs.json +0 -315
- package/src/components/feedback/progress-circle/progress-circle.docs.json +0 -378
- package/src/components/feedback/skeleton/skeleton.docs.json +0 -142
- package/src/components/feedback/spinner/spinner.docs.json +0 -121
- package/src/components/feedback/toast/toast.docs.json +0 -418
- package/src/components/forms/checkbox/checkbox.docs.json +0 -166
- package/src/components/forms/checkbox-group/checkbox-group.docs.json +0 -339
- package/src/components/forms/field/field.docs.json +0 -276
- package/src/components/forms/fieldset/fieldset.docs.json +0 -520
- package/src/components/forms/form/form.docs.json +0 -482
- package/src/components/forms/form-error/form-error.docs.json +0 -61
- package/src/components/forms/form-helper/form-helper.docs.json +0 -151
- package/src/components/forms/input/input.docs.json +0 -306
- package/src/components/forms/label/label.docs.json +0 -110
- package/src/components/forms/number-input/number-input.docs.json +0 -311
- package/src/components/forms/password-input/password-input.docs.json +0 -316
- package/src/components/forms/radio/radio.docs.json +0 -236
- package/src/components/forms/radio-group/radio-group.docs.json +0 -351
- package/src/components/forms/search-input/search-input.docs.json +0 -293
- package/src/components/forms/select/select.docs.json +0 -231
- package/src/components/forms/slider/slider.docs.json +0 -144
- package/src/components/forms/textarea/textarea.docs.json +0 -229
- package/src/components/forms/toggle/toggle.docs.json +0 -229
- package/src/components/navigation/breadcrumb/breadcrumb.docs.json +0 -240
- package/src/components/navigation/dropdown-menu/dropdown-menu.docs.json +0 -290
- package/src/components/navigation/menu/menu.docs.json +0 -326
- package/src/components/navigation/nav/nav.docs.json +0 -304
- package/src/components/navigation/pagination/pagination.docs.json +0 -483
- package/src/components/navigation/tabs/tabs.docs.json +0 -243
- package/src/components/overlays/dialog/dialog.docs.json +0 -200
- package/src/components/overlays/drawer/drawer.docs.json +0 -307
- package/src/components/overlays/modal/modal.docs.json +0 -252
- package/src/components/overlays/overlay/overlay.docs.json +0 -138
- package/src/components/overlays/popover/popover.docs.json +0 -154
- package/src/components/overlays/tooltip/tooltip.docs.json +0 -133
- package/src/components/typography/blockquote/blockquote.docs.json +0 -89
- package/src/components/typography/code/code.docs.json +0 -104
- package/src/components/typography/code-block/code-block.docs.json +0 -308
- package/src/components/typography/heading/heading.docs.json +0 -120
- package/src/components/typography/kbd/kbd.docs.json +0 -61
- package/src/components/typography/link/link.docs.json +0 -149
- package/src/components/typography/list/list.docs.json +0 -296
- package/src/components/typography/mark/mark.docs.json +0 -60
- package/src/config/tokens/accessibility.docs.json +0 -125
- package/src/config/tokens/colors/colors.docs.json +0 -316
- package/src/config/tokens/grid/grid.docs.json +0 -54
- package/src/config/tokens/spacing/spacing.docs.json +0 -114
- package/src/config/tokens/theming.docs.json +0 -288
- package/src/debug/grid-overlay.scss +0 -81
- package/src/layout/app-shell/app-shell.docs.json +0 -155
- package/src/layout/aspect-ratio/aspect-ratio.docs.json +0 -193
- package/src/layout/box/box.docs.json +0 -93
- package/src/layout/center/center.docs.json +0 -63
- package/src/layout/column/column.docs.json +0 -157
- package/src/layout/container/container.docs.json +0 -85
- package/src/layout/content/content.docs.json +0 -82
- package/src/layout/footer/footer.docs.json +0 -119
- package/src/layout/grid/grid.docs.json +0 -493
- package/src/layout/main/main.docs.json +0 -87
- package/src/layout/nav-rail/nav-rail.docs.json +0 -76
- package/src/layout/page-header/page-header.docs.json +0 -124
- package/src/layout/row/row.docs.json +0 -237
- package/src/layout/sidebar/sidebar.docs.json +0 -63
- package/src/layout/sidebar-nav/sidebar-nav.docs.json +0 -833
- package/src/layout/topbar/topbar.docs.json +0 -110
- package/src/testing/api-types.ts +0 -20
- package/src/testing/grid-alignment.spec.ts +0 -38
- package/src/testing/html-generator.ts +0 -151
- package/src/testing/index.ts +0 -15
- package/src/testing/page-setup.ts +0 -149
- package/src/testing/rhythm.ts +0 -146
- package/src/testing/scaffold.ts +0 -50
- package/src/utilities/container/container.docs.json +0 -121
- package/src/utilities/display/display.docs.json +0 -83
- package/src/utilities/scroll-animation/scroll-animation.docs.json +0 -100
- package/src/utilities/scroll-snap/scroll-snap.docs.json +0 -333
- package/src/utilities/spacing/spacing.docs.json +0 -133
- package/src/utilities/text/text.docs.json +0 -191
- package/src/utilities/view-transition/view-transition.docs.json +0 -63
- package/src/utilities/visually-hidden/visually-hidden.docs.json +0 -44
|
@@ -1,307 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "drawer",
|
|
3
|
-
"type": "component",
|
|
4
|
-
"title": "Drawer",
|
|
5
|
-
"api": "./drawer.api.json",
|
|
6
|
-
"sections": [
|
|
7
|
-
{
|
|
8
|
-
"title": "Default (End)",
|
|
9
|
-
"description": "Slides in from the end (right in LTR)",
|
|
10
|
-
"examples": [
|
|
11
|
-
{
|
|
12
|
-
"items": [
|
|
13
|
-
{
|
|
14
|
-
"tag": "div",
|
|
15
|
-
"attrs": {
|
|
16
|
-
"style": "position:relative;height:300px;overflow:hidden;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-md)"
|
|
17
|
-
},
|
|
18
|
-
"children": [
|
|
19
|
-
{
|
|
20
|
-
"tag": "div",
|
|
21
|
-
"class": "ui-drawer-overlay",
|
|
22
|
-
"attrs": { "style": "position:absolute" }
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"tag": "div",
|
|
26
|
-
"class": "ui-drawer ui-drawer--end",
|
|
27
|
-
"attrs": { "style": "position:absolute", "data-state": "open" },
|
|
28
|
-
"children": [
|
|
29
|
-
{
|
|
30
|
-
"tag": "div",
|
|
31
|
-
"class": "ui-drawer__header",
|
|
32
|
-
"children": [
|
|
33
|
-
{
|
|
34
|
-
"tag": "div",
|
|
35
|
-
"children": [
|
|
36
|
-
{ "tag": "h2", "class": "ui-drawer__title", "text": "Drawer Title" },
|
|
37
|
-
{
|
|
38
|
-
"tag": "p",
|
|
39
|
-
"class": "ui-drawer__description",
|
|
40
|
-
"text": "Optional description text"
|
|
41
|
-
}
|
|
42
|
-
]
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
"tag": "button",
|
|
46
|
-
"class": "ui-drawer__close ui-button ui-button--ghost ui-button--icon",
|
|
47
|
-
"text": "X"
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
"tag": "div",
|
|
53
|
-
"class": "ui-drawer__body",
|
|
54
|
-
"children": [{ "tag": "p", "text": "Drawer content goes here." }]
|
|
55
|
-
},
|
|
56
|
-
{
|
|
57
|
-
"tag": "div",
|
|
58
|
-
"class": "ui-drawer__footer",
|
|
59
|
-
"children": [
|
|
60
|
-
{
|
|
61
|
-
"tag": "button",
|
|
62
|
-
"class": "ui-button ui-button--secondary",
|
|
63
|
-
"text": "Cancel"
|
|
64
|
-
},
|
|
65
|
-
{ "tag": "button", "class": "ui-button", "text": "Save" }
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
]
|
|
71
|
-
}
|
|
72
|
-
]
|
|
73
|
-
}
|
|
74
|
-
]
|
|
75
|
-
},
|
|
76
|
-
{
|
|
77
|
-
"title": "Positions",
|
|
78
|
-
"examples": [
|
|
79
|
-
{
|
|
80
|
-
"items": [
|
|
81
|
-
{
|
|
82
|
-
"tag": "div",
|
|
83
|
-
"attrs": {
|
|
84
|
-
"style": "position:relative;height:200px;overflow:hidden;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-md)"
|
|
85
|
-
},
|
|
86
|
-
"children": [
|
|
87
|
-
{
|
|
88
|
-
"tag": "div",
|
|
89
|
-
"class": "ui-drawer ui-drawer--start ui-drawer--sm",
|
|
90
|
-
"attrs": { "style": "position:absolute", "data-state": "open" },
|
|
91
|
-
"children": [
|
|
92
|
-
{
|
|
93
|
-
"tag": "div",
|
|
94
|
-
"class": "ui-drawer__header",
|
|
95
|
-
"children": [{ "tag": "h2", "class": "ui-drawer__title", "text": "Start" }]
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"tag": "div",
|
|
99
|
-
"class": "ui-drawer__body",
|
|
100
|
-
"children": [{ "tag": "p", "text": "From start edge" }]
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
}
|
|
104
|
-
]
|
|
105
|
-
}
|
|
106
|
-
],
|
|
107
|
-
"layout": "column"
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"items": [
|
|
111
|
-
{
|
|
112
|
-
"tag": "div",
|
|
113
|
-
"attrs": {
|
|
114
|
-
"style": "position:relative;height:200px;overflow:hidden;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-md)"
|
|
115
|
-
},
|
|
116
|
-
"children": [
|
|
117
|
-
{
|
|
118
|
-
"tag": "div",
|
|
119
|
-
"class": "ui-drawer ui-drawer--top",
|
|
120
|
-
"attrs": { "style": "position:absolute", "data-state": "open" },
|
|
121
|
-
"children": [
|
|
122
|
-
{
|
|
123
|
-
"tag": "div",
|
|
124
|
-
"class": "ui-drawer__header",
|
|
125
|
-
"children": [{ "tag": "h2", "class": "ui-drawer__title", "text": "Top" }]
|
|
126
|
-
},
|
|
127
|
-
{
|
|
128
|
-
"tag": "div",
|
|
129
|
-
"class": "ui-drawer__body",
|
|
130
|
-
"children": [{ "tag": "p", "text": "From top edge" }]
|
|
131
|
-
}
|
|
132
|
-
]
|
|
133
|
-
}
|
|
134
|
-
]
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
"layout": "column"
|
|
138
|
-
},
|
|
139
|
-
{
|
|
140
|
-
"items": [
|
|
141
|
-
{
|
|
142
|
-
"tag": "div",
|
|
143
|
-
"attrs": {
|
|
144
|
-
"style": "position:relative;height:200px;overflow:hidden;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-md)"
|
|
145
|
-
},
|
|
146
|
-
"children": [
|
|
147
|
-
{
|
|
148
|
-
"tag": "div",
|
|
149
|
-
"class": "ui-drawer ui-drawer--bottom",
|
|
150
|
-
"attrs": { "style": "position:absolute", "data-state": "open" },
|
|
151
|
-
"children": [
|
|
152
|
-
{
|
|
153
|
-
"tag": "div",
|
|
154
|
-
"class": "ui-drawer__header",
|
|
155
|
-
"children": [{ "tag": "h2", "class": "ui-drawer__title", "text": "Bottom" }]
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"tag": "div",
|
|
159
|
-
"class": "ui-drawer__body",
|
|
160
|
-
"children": [{ "tag": "p", "text": "From bottom edge" }]
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
}
|
|
164
|
-
]
|
|
165
|
-
}
|
|
166
|
-
],
|
|
167
|
-
"layout": "column"
|
|
168
|
-
}
|
|
169
|
-
]
|
|
170
|
-
},
|
|
171
|
-
{
|
|
172
|
-
"title": "Sizes",
|
|
173
|
-
"examples": [
|
|
174
|
-
{
|
|
175
|
-
"items": [
|
|
176
|
-
{
|
|
177
|
-
"tag": "div",
|
|
178
|
-
"attrs": {
|
|
179
|
-
"style": "position:relative;height:150px;overflow:hidden;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-md)"
|
|
180
|
-
},
|
|
181
|
-
"children": [
|
|
182
|
-
{
|
|
183
|
-
"tag": "div",
|
|
184
|
-
"class": "ui-drawer ui-drawer--end ui-drawer--sm",
|
|
185
|
-
"attrs": { "style": "position:absolute", "data-state": "open" },
|
|
186
|
-
"children": [
|
|
187
|
-
{
|
|
188
|
-
"tag": "div",
|
|
189
|
-
"class": "ui-drawer__body",
|
|
190
|
-
"children": [{ "tag": "p", "text": "Small drawer" }]
|
|
191
|
-
}
|
|
192
|
-
]
|
|
193
|
-
}
|
|
194
|
-
]
|
|
195
|
-
}
|
|
196
|
-
],
|
|
197
|
-
"layout": "column"
|
|
198
|
-
},
|
|
199
|
-
{
|
|
200
|
-
"items": [
|
|
201
|
-
{
|
|
202
|
-
"tag": "div",
|
|
203
|
-
"attrs": {
|
|
204
|
-
"style": "position:relative;height:150px;overflow:hidden;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-md)"
|
|
205
|
-
},
|
|
206
|
-
"children": [
|
|
207
|
-
{
|
|
208
|
-
"tag": "div",
|
|
209
|
-
"class": "ui-drawer ui-drawer--end",
|
|
210
|
-
"attrs": { "style": "position:absolute", "data-state": "open" },
|
|
211
|
-
"children": [
|
|
212
|
-
{
|
|
213
|
-
"tag": "div",
|
|
214
|
-
"class": "ui-drawer__body",
|
|
215
|
-
"children": [{ "tag": "p", "text": "Default drawer" }]
|
|
216
|
-
}
|
|
217
|
-
]
|
|
218
|
-
}
|
|
219
|
-
]
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
|
-
"layout": "column"
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
"items": [
|
|
226
|
-
{
|
|
227
|
-
"tag": "div",
|
|
228
|
-
"attrs": {
|
|
229
|
-
"style": "position:relative;height:150px;overflow:hidden;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-md)"
|
|
230
|
-
},
|
|
231
|
-
"children": [
|
|
232
|
-
{
|
|
233
|
-
"tag": "div",
|
|
234
|
-
"class": "ui-drawer ui-drawer--end ui-drawer--lg",
|
|
235
|
-
"attrs": { "style": "position:absolute", "data-state": "open" },
|
|
236
|
-
"children": [
|
|
237
|
-
{
|
|
238
|
-
"tag": "div",
|
|
239
|
-
"class": "ui-drawer__body",
|
|
240
|
-
"children": [{ "tag": "p", "text": "Large drawer" }]
|
|
241
|
-
}
|
|
242
|
-
]
|
|
243
|
-
}
|
|
244
|
-
]
|
|
245
|
-
}
|
|
246
|
-
],
|
|
247
|
-
"layout": "column"
|
|
248
|
-
},
|
|
249
|
-
{
|
|
250
|
-
"items": [
|
|
251
|
-
{
|
|
252
|
-
"tag": "div",
|
|
253
|
-
"attrs": {
|
|
254
|
-
"style": "position:relative;height:150px;overflow:hidden;border:1px solid var(--ui-color-border);border-radius:var(--ui-radius-md)"
|
|
255
|
-
},
|
|
256
|
-
"children": [
|
|
257
|
-
{
|
|
258
|
-
"tag": "div",
|
|
259
|
-
"class": "ui-drawer ui-drawer--end ui-drawer--full",
|
|
260
|
-
"attrs": { "style": "position:absolute", "data-state": "open" },
|
|
261
|
-
"children": [
|
|
262
|
-
{
|
|
263
|
-
"tag": "div",
|
|
264
|
-
"class": "ui-drawer__body",
|
|
265
|
-
"children": [{ "tag": "p", "text": "Full-size drawer" }]
|
|
266
|
-
}
|
|
267
|
-
]
|
|
268
|
-
}
|
|
269
|
-
]
|
|
270
|
-
}
|
|
271
|
-
],
|
|
272
|
-
"layout": "column"
|
|
273
|
-
}
|
|
274
|
-
]
|
|
275
|
-
}
|
|
276
|
-
],
|
|
277
|
-
"customization": [
|
|
278
|
-
{
|
|
279
|
-
"token": "--ui-drawer-size",
|
|
280
|
-
"default": "calc(var(--ui-unit) * 40)",
|
|
281
|
-
"description": "Default width/height"
|
|
282
|
-
},
|
|
283
|
-
{ "token": "--ui-drawer-max-size", "default": "90%", "description": "Maximum size" },
|
|
284
|
-
{
|
|
285
|
-
"token": "--ui-drawer-bg",
|
|
286
|
-
"default": "var(--ui-color-bg)",
|
|
287
|
-
"description": "Background color"
|
|
288
|
-
},
|
|
289
|
-
{ "token": "--ui-drawer-shadow", "default": "var(--shadow-lg)", "description": "Box shadow" },
|
|
290
|
-
{
|
|
291
|
-
"token": "--ui-drawer-header-padding",
|
|
292
|
-
"default": "16px 24px",
|
|
293
|
-
"description": "Header padding"
|
|
294
|
-
},
|
|
295
|
-
{ "token": "--ui-drawer-body-padding", "default": "24px", "description": "Body padding" },
|
|
296
|
-
{
|
|
297
|
-
"token": "--ui-drawer-footer-padding",
|
|
298
|
-
"default": "16px 24px",
|
|
299
|
-
"description": "Footer padding"
|
|
300
|
-
},
|
|
301
|
-
{
|
|
302
|
-
"token": "--ui-drawer-border-color",
|
|
303
|
-
"default": "var(--ui-color-border)",
|
|
304
|
-
"description": "Border color"
|
|
305
|
-
}
|
|
306
|
-
]
|
|
307
|
-
}
|
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "modal",
|
|
3
|
-
"type": "component",
|
|
4
|
-
"title": "Modal",
|
|
5
|
-
"description": "Container for modal dialogs. Use with overlay for backdrop effect.",
|
|
6
|
-
"api": "./modal.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Default",
|
|
10
|
-
"examples": [
|
|
11
|
-
{
|
|
12
|
-
"items": [
|
|
13
|
-
{
|
|
14
|
-
"tag": "div",
|
|
15
|
-
"attrs": {
|
|
16
|
-
"style": "position: relative; height: 200px; background: var(--ui-color-bg-subtle);"
|
|
17
|
-
},
|
|
18
|
-
"children": [
|
|
19
|
-
{
|
|
20
|
-
"tag": "div",
|
|
21
|
-
"class": "ui-modal ui-modal--visible",
|
|
22
|
-
"attrs": { "style": "position: absolute;" },
|
|
23
|
-
"children": [
|
|
24
|
-
{
|
|
25
|
-
"tag": "div",
|
|
26
|
-
"class": "ui-modal__content",
|
|
27
|
-
"children": [{ "tag": "p", "text": "Modal content goes here" }]
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
]
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"code": "<div class=\"ui-overlay\"></div>\n<div class=\"ui-modal\">\n <div class=\"ui-modal__content\">\n <p>Modal content goes here</p>\n </div>\n</div>"
|
|
35
|
-
}
|
|
36
|
-
]
|
|
37
|
-
},
|
|
38
|
-
{
|
|
39
|
-
"title": "Sizes",
|
|
40
|
-
"data": {
|
|
41
|
-
"sizes": [
|
|
42
|
-
{ "mod": "sm", "label": "Small" },
|
|
43
|
-
{ "mod": "", "label": "Default" },
|
|
44
|
-
{ "mod": "lg", "label": "Large" }
|
|
45
|
-
]
|
|
46
|
-
},
|
|
47
|
-
"examples": [
|
|
48
|
-
{
|
|
49
|
-
"items": [
|
|
50
|
-
{
|
|
51
|
-
"tag": "div",
|
|
52
|
-
"attrs": {
|
|
53
|
-
"style": "position: relative; height: 120px; background: var(--ui-color-bg-subtle);"
|
|
54
|
-
},
|
|
55
|
-
"children": [
|
|
56
|
-
{
|
|
57
|
-
"tag": "div",
|
|
58
|
-
"class": "ui-modal ui-modal--sm ui-modal--visible",
|
|
59
|
-
"attrs": { "style": "position: absolute;" },
|
|
60
|
-
"children": [
|
|
61
|
-
{
|
|
62
|
-
"tag": "div",
|
|
63
|
-
"class": "ui-modal__content",
|
|
64
|
-
"children": [{ "tag": "p", "text": "Small modal" }]
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
]
|
|
69
|
-
}
|
|
70
|
-
],
|
|
71
|
-
"code": "<div class=\"ui-modal ui-modal--sm\">\n <div class=\"ui-modal__content\">Small modal</div>\n</div>"
|
|
72
|
-
}
|
|
73
|
-
]
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"title": "Large",
|
|
77
|
-
"examples": [
|
|
78
|
-
{
|
|
79
|
-
"items": [
|
|
80
|
-
{
|
|
81
|
-
"tag": "div",
|
|
82
|
-
"attrs": {
|
|
83
|
-
"style": "position: relative; height: 120px; background: var(--ui-color-bg-subtle);"
|
|
84
|
-
},
|
|
85
|
-
"children": [
|
|
86
|
-
{
|
|
87
|
-
"tag": "div",
|
|
88
|
-
"class": "ui-modal ui-modal--lg ui-modal--visible",
|
|
89
|
-
"attrs": { "style": "position: absolute;" },
|
|
90
|
-
"children": [
|
|
91
|
-
{
|
|
92
|
-
"tag": "div",
|
|
93
|
-
"class": "ui-modal__content",
|
|
94
|
-
"children": [{ "tag": "p", "text": "Large modal" }]
|
|
95
|
-
}
|
|
96
|
-
]
|
|
97
|
-
}
|
|
98
|
-
]
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
]
|
|
103
|
-
},
|
|
104
|
-
{
|
|
105
|
-
"title": "Full",
|
|
106
|
-
"examples": [
|
|
107
|
-
{
|
|
108
|
-
"items": [
|
|
109
|
-
{
|
|
110
|
-
"tag": "div",
|
|
111
|
-
"attrs": {
|
|
112
|
-
"style": "position: relative; height: 120px; background: var(--ui-color-bg-subtle);"
|
|
113
|
-
},
|
|
114
|
-
"children": [
|
|
115
|
-
{
|
|
116
|
-
"tag": "div",
|
|
117
|
-
"class": "ui-modal ui-modal--full ui-modal--visible",
|
|
118
|
-
"attrs": { "style": "position: absolute;" },
|
|
119
|
-
"children": [
|
|
120
|
-
{
|
|
121
|
-
"tag": "div",
|
|
122
|
-
"class": "ui-modal__content",
|
|
123
|
-
"children": [{ "tag": "p", "text": "Full-screen modal" }]
|
|
124
|
-
}
|
|
125
|
-
]
|
|
126
|
-
}
|
|
127
|
-
]
|
|
128
|
-
}
|
|
129
|
-
]
|
|
130
|
-
}
|
|
131
|
-
]
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"title": "Entering Animation",
|
|
135
|
-
"description": "Apply entering modifier for open transition.",
|
|
136
|
-
"examples": [
|
|
137
|
-
{
|
|
138
|
-
"items": [
|
|
139
|
-
{
|
|
140
|
-
"tag": "div",
|
|
141
|
-
"attrs": {
|
|
142
|
-
"style": "position: relative; height: 120px; background: var(--ui-color-bg-subtle);"
|
|
143
|
-
},
|
|
144
|
-
"children": [
|
|
145
|
-
{
|
|
146
|
-
"tag": "div",
|
|
147
|
-
"class": "ui-modal ui-modal--visible ui-modal--entering",
|
|
148
|
-
"attrs": { "style": "position: absolute;" },
|
|
149
|
-
"children": [
|
|
150
|
-
{
|
|
151
|
-
"tag": "div",
|
|
152
|
-
"class": "ui-modal__content",
|
|
153
|
-
"children": [{ "tag": "p", "text": "Entering modal" }]
|
|
154
|
-
}
|
|
155
|
-
]
|
|
156
|
-
}
|
|
157
|
-
]
|
|
158
|
-
}
|
|
159
|
-
],
|
|
160
|
-
"code": "<div class=\"ui-modal ui-modal--entering\">\n <div class=\"ui-modal__content\">...</div>\n</div>"
|
|
161
|
-
}
|
|
162
|
-
]
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
"title": "With Scrollable Content",
|
|
166
|
-
"examples": [
|
|
167
|
-
{
|
|
168
|
-
"items": [
|
|
169
|
-
{
|
|
170
|
-
"tag": "div",
|
|
171
|
-
"attrs": {
|
|
172
|
-
"style": "position: relative; height: 200px; background: var(--ui-color-bg-subtle);"
|
|
173
|
-
},
|
|
174
|
-
"children": [
|
|
175
|
-
{
|
|
176
|
-
"tag": "div",
|
|
177
|
-
"class": "ui-modal ui-modal--visible",
|
|
178
|
-
"attrs": { "style": "position: absolute;" },
|
|
179
|
-
"children": [
|
|
180
|
-
{
|
|
181
|
-
"tag": "div",
|
|
182
|
-
"class": "ui-modal__content",
|
|
183
|
-
"attrs": { "style": "max-height: 150px;" },
|
|
184
|
-
"children": [
|
|
185
|
-
{
|
|
186
|
-
"tag": "div",
|
|
187
|
-
"class": "ui-modal__body",
|
|
188
|
-
"children": [
|
|
189
|
-
{ "tag": "p", "text": "Line 1" },
|
|
190
|
-
{ "tag": "p", "text": "Line 2" },
|
|
191
|
-
{ "tag": "p", "text": "Line 3" },
|
|
192
|
-
{ "tag": "p", "text": "Line 4" },
|
|
193
|
-
{ "tag": "p", "text": "Line 5" },
|
|
194
|
-
{ "tag": "p", "text": "Line 6" }
|
|
195
|
-
]
|
|
196
|
-
}
|
|
197
|
-
]
|
|
198
|
-
}
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
]
|
|
202
|
-
}
|
|
203
|
-
],
|
|
204
|
-
"code": "<div class=\"ui-modal\">\n <div class=\"ui-modal__content\">\n <div class=\"ui-modal__body\">\n <!-- Scrollable content -->\n </div>\n </div>\n</div>"
|
|
205
|
-
}
|
|
206
|
-
]
|
|
207
|
-
}
|
|
208
|
-
],
|
|
209
|
-
"customization": [
|
|
210
|
-
{
|
|
211
|
-
"token": "--ui-modal-bg",
|
|
212
|
-
"default": "var(--ui-color-bg)",
|
|
213
|
-
"description": "Background color"
|
|
214
|
-
},
|
|
215
|
-
{
|
|
216
|
-
"token": "--ui-modal-radius",
|
|
217
|
-
"default": "var(--ui-radius-lg)",
|
|
218
|
-
"description": "Border radius"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"token": "--ui-modal-shadow",
|
|
222
|
-
"default": "0 24px 48px rgb(0 0 0 / 0.25)",
|
|
223
|
-
"description": "Box shadow"
|
|
224
|
-
},
|
|
225
|
-
{
|
|
226
|
-
"token": "--ui-modal-padding",
|
|
227
|
-
"default": "calc(var(--ui-unit) * 3)",
|
|
228
|
-
"description": "Content padding"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"token": "--ui-modal-max-width",
|
|
232
|
-
"default": "calc(var(--ui-unit) * 60)",
|
|
233
|
-
"description": "Max width (default)"
|
|
234
|
-
},
|
|
235
|
-
{
|
|
236
|
-
"token": "--ui-modal-max-width-sm",
|
|
237
|
-
"default": "calc(var(--ui-unit) * 40)",
|
|
238
|
-
"description": "Max width (small)"
|
|
239
|
-
},
|
|
240
|
-
{
|
|
241
|
-
"token": "--ui-modal-max-width-lg",
|
|
242
|
-
"default": "calc(var(--ui-unit) * 80)",
|
|
243
|
-
"description": "Max width (large)"
|
|
244
|
-
},
|
|
245
|
-
{
|
|
246
|
-
"token": "--ui-modal-max-height",
|
|
247
|
-
"default": "calc(100vh - var(--ui-unit) * 8)",
|
|
248
|
-
"description": "Max height"
|
|
249
|
-
},
|
|
250
|
-
{ "token": "--ui-modal-z", "default": "var(--ui-z-modal)", "description": "Z-index" }
|
|
251
|
-
]
|
|
252
|
-
}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "overlay",
|
|
3
|
-
"type": "component",
|
|
4
|
-
"title": "Overlay",
|
|
5
|
-
"description": "Full viewport backdrop for modals, dialogs, and drawers. Controls visibility via state modifiers.",
|
|
6
|
-
"api": "./overlay.api.json",
|
|
7
|
-
"sections": [
|
|
8
|
-
{
|
|
9
|
-
"title": "Default",
|
|
10
|
-
"examples": [
|
|
11
|
-
{
|
|
12
|
-
"items": [
|
|
13
|
-
{
|
|
14
|
-
"tag": "div",
|
|
15
|
-
"attrs": {
|
|
16
|
-
"style": "position: relative; height: 120px; background: var(--ui-color-bg-subtle);"
|
|
17
|
-
},
|
|
18
|
-
"children": [
|
|
19
|
-
{
|
|
20
|
-
"tag": "div",
|
|
21
|
-
"class": "ui-overlay",
|
|
22
|
-
"attrs": { "style": "position: absolute;" }
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"tag": "p",
|
|
26
|
-
"attrs": { "style": "position: relative; padding: var(--ui-space-2);" },
|
|
27
|
-
"text": "Content behind overlay"
|
|
28
|
-
}
|
|
29
|
-
]
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"code": "<div class=\"ui-overlay\"></div>"
|
|
33
|
-
}
|
|
34
|
-
]
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
"title": "Light Variant",
|
|
38
|
-
"examples": [
|
|
39
|
-
{
|
|
40
|
-
"items": [
|
|
41
|
-
{
|
|
42
|
-
"tag": "div",
|
|
43
|
-
"attrs": {
|
|
44
|
-
"style": "position: relative; height: 120px; background: var(--ui-color-text);"
|
|
45
|
-
},
|
|
46
|
-
"children": [
|
|
47
|
-
{
|
|
48
|
-
"tag": "div",
|
|
49
|
-
"class": "ui-overlay ui-overlay--light",
|
|
50
|
-
"attrs": { "style": "position: absolute;" }
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"tag": "p",
|
|
54
|
-
"attrs": {
|
|
55
|
-
"style": "position: relative; padding: var(--ui-space-2); color: white;"
|
|
56
|
-
},
|
|
57
|
-
"text": "Dark content behind light overlay"
|
|
58
|
-
}
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
],
|
|
62
|
-
"code": "<div class=\"ui-overlay ui-overlay--light\"></div>"
|
|
63
|
-
}
|
|
64
|
-
]
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"title": "Blur Variant",
|
|
68
|
-
"examples": [
|
|
69
|
-
{
|
|
70
|
-
"items": [
|
|
71
|
-
{
|
|
72
|
-
"tag": "div",
|
|
73
|
-
"attrs": {
|
|
74
|
-
"style": "position: relative; height: 120px; background: linear-gradient(45deg, var(--ui-color-primary), var(--ui-color-success));"
|
|
75
|
-
},
|
|
76
|
-
"children": [
|
|
77
|
-
{
|
|
78
|
-
"tag": "div",
|
|
79
|
-
"class": "ui-overlay ui-overlay--blur",
|
|
80
|
-
"attrs": { "style": "position: absolute;" }
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"tag": "p",
|
|
84
|
-
"attrs": {
|
|
85
|
-
"style": "position: relative; padding: var(--ui-space-2); color: white;"
|
|
86
|
-
},
|
|
87
|
-
"text": "Blurred backdrop"
|
|
88
|
-
}
|
|
89
|
-
]
|
|
90
|
-
}
|
|
91
|
-
],
|
|
92
|
-
"code": "<div class=\"ui-overlay ui-overlay--blur\"></div>"
|
|
93
|
-
}
|
|
94
|
-
]
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"title": "With Animation",
|
|
98
|
-
"examples": [
|
|
99
|
-
{
|
|
100
|
-
"items": [
|
|
101
|
-
{
|
|
102
|
-
"tag": "div",
|
|
103
|
-
"attrs": {
|
|
104
|
-
"style": "position: relative; height: 120px; background: var(--ui-color-bg-subtle);"
|
|
105
|
-
},
|
|
106
|
-
"children": [
|
|
107
|
-
{
|
|
108
|
-
"tag": "div",
|
|
109
|
-
"class": "ui-overlay ui-overlay--animate ui-overlay--visible",
|
|
110
|
-
"attrs": { "style": "position: absolute;" }
|
|
111
|
-
}
|
|
112
|
-
]
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
"code": "<div class=\"ui-overlay ui-overlay--animate ui-overlay--visible\"></div>\n<!-- JS toggles between --visible and --hidden -->"
|
|
116
|
-
}
|
|
117
|
-
]
|
|
118
|
-
}
|
|
119
|
-
],
|
|
120
|
-
"customization": [
|
|
121
|
-
{
|
|
122
|
-
"token": "--ui-overlay-bg",
|
|
123
|
-
"default": "rgb(0 0 0 / 0.5)",
|
|
124
|
-
"description": "Default backdrop color"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"token": "--ui-overlay-bg-light",
|
|
128
|
-
"default": "rgb(255 255 255 / 0.7)",
|
|
129
|
-
"description": "Light variant backdrop color"
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
"token": "--ui-overlay-bg-blur",
|
|
133
|
-
"default": "rgb(0 0 0 / 0.3)",
|
|
134
|
-
"description": "Blur variant backdrop color"
|
|
135
|
-
},
|
|
136
|
-
{ "token": "--ui-overlay-z", "default": "var(--ui-z-overlay)", "description": "Z-index layer" }
|
|
137
|
-
]
|
|
138
|
-
}
|