@esportsplus/ui 0.59.1 → 0.61.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/.audit/audit.json +2810 -0
- package/.audit/check-scss.mjs +20 -0
- package/.audit/rules-audit.md +542 -0
- package/README.md +42 -31
- package/RULES.md +115 -0
- package/build/components/accordion/index.d.ts +12 -2175
- package/build/components/accordion/index.js +3 -4
- package/build/components/accordion/scss/index.scss +1 -1
- package/build/components/announcement/scss/index.scss +1 -1
- package/build/components/breadcrumb/index.js +47 -64
- package/build/components/breadcrumb/scss/index.scss +1 -1
- package/build/components/button/copy.d.ts +6 -4
- package/build/components/button/copy.js +24 -20
- package/build/components/button/faces.d.ts +0 -1
- package/build/components/button/faces.js +5 -6
- package/build/components/button/index.d.ts +3 -7
- package/build/components/button/index.js +3 -5
- package/build/components/button/kbd.d.ts +12 -8
- package/build/components/button/kbd.js +59 -74
- package/build/components/button/morph/index.d.ts +2169 -0
- package/build/components/button/morph/index.js +4 -0
- package/build/components/button/morph/save.d.ts +19 -0
- package/build/components/button/morph/save.js +57 -0
- package/build/components/button/morph/template.d.ts +22 -0
- package/build/components/button/morph/template.js +90 -0
- package/build/components/button/scss/index.scss +1 -1
- package/build/components/button/sidebar.js +2 -2
- package/build/components/button/split.d.ts +1 -1
- package/build/components/button/split.js +11 -15
- package/build/components/capslock/index.js +6 -5
- package/build/components/capslock/scss/index.scss +1 -1
- package/build/components/card/scss/index.scss +1 -1
- package/build/components/cc/index.js +103 -111
- package/build/components/cc/scss/index.scss +1 -1
- package/build/components/chat/index.d.ts +6 -0
- package/build/components/chat/index.js +3 -0
- package/build/components/chat/minimap/index.d.ts +52 -0
- package/build/components/chat/minimap/index.js +248 -0
- package/build/components/{chat-minimap/range.js → chat/minimap/model.js} +1 -1
- package/build/components/{chat-minimap → chat/minimap}/spy.d.ts +1 -1
- package/build/components/{chat-minimap → chat/minimap}/spy.js +1 -1
- package/build/components/checkbox/index.d.ts +1 -0
- package/build/components/checkbox/index.js +1 -0
- package/build/components/checkbox/options.d.ts +0 -1
- package/build/components/checkbox/options.js +0 -1
- package/build/components/checkbox/scss/index.scss +1 -1
- package/build/components/clipboard/index.d.ts +3 -2181
- package/build/components/clipboard/index.js +2 -3
- package/build/components/color-picker/index.d.ts +21 -0
- package/build/components/color-picker/index.js +153 -138
- package/build/components/color-picker/scss/index.scss +1 -1
- package/build/components/command/index.d.ts +6 -93
- package/build/components/command/index.js +4 -601
- package/build/components/command/palette.d.ts +103 -0
- package/build/components/command/palette.js +595 -0
- package/build/components/command/scss/index.scss +1 -1
- package/build/components/command/search.d.ts +37 -0
- package/build/components/command/search.js +67 -0
- package/build/components/counter/index.d.ts +15 -4
- package/build/components/counter/index.js +3 -2
- package/build/components/counter/scss/index.scss +1 -1
- package/build/components/datalist/scss/index.scss +1 -1
- package/build/components/dock/index.d.ts +24 -5
- package/build/components/dock/index.js +389 -51
- package/build/components/dock/scss/index.scss +1 -1
- package/build/components/editor/markdown/index.d.ts +3 -22
- package/build/components/editor/markdown/index.js +3 -30
- package/build/components/editor/markdown/render.js +3 -5
- package/build/components/editor/markdown/template.d.ts +22 -0
- package/build/components/editor/markdown/template.js +30 -0
- package/build/components/editor/tree/find.js +3 -3
- package/build/components/editor/tree/index.d.ts +3 -116
- package/build/components/editor/tree/index.js +3 -2225
- package/build/components/editor/tree/template.d.ts +116 -0
- package/build/components/editor/tree/template.js +2225 -0
- package/build/components/editor/viewer/index.d.ts +3 -26
- package/build/components/editor/viewer/index.js +3 -249
- package/build/components/editor/viewer/template.d.ts +26 -0
- package/build/components/editor/viewer/template.js +249 -0
- package/build/components/editor/workspace/index.d.ts +4 -65
- package/build/components/editor/workspace/index.js +4 -1228
- package/build/components/editor/workspace/model.d.ts +29 -37
- package/build/components/editor/workspace/model.js +186 -155
- package/build/components/editor/workspace/session.d.ts +3 -0
- package/build/components/editor/workspace/session.js +61 -34
- package/build/components/editor/workspace/shortcuts.d.ts +0 -2
- package/build/components/editor/workspace/shortcuts.js +0 -2
- package/build/components/editor/workspace/status.d.ts +4 -5
- package/build/components/editor/workspace/status.js +79 -61
- package/build/components/editor/workspace/statusbar.d.ts +5 -3
- package/build/components/editor/workspace/statusbar.js +66 -80
- package/build/components/editor/workspace/strip.d.ts +1 -2
- package/build/components/editor/workspace/strip.js +4 -3
- package/build/components/editor/workspace/tabs.d.ts +35 -3
- package/build/components/editor/workspace/tabs.js +75 -13
- package/build/components/editor/workspace/template.d.ts +65 -0
- package/build/components/editor/workspace/template.js +1145 -0
- package/build/components/error/scss/index.scss +1 -1
- package/build/components/filter/index.js +0 -3
- package/build/components/filter/scss/index.scss +1 -1
- package/build/components/form/index.d.ts +6 -32
- package/build/components/form/index.js +2 -1
- package/build/components/frame/scss/index.scss +1 -1
- package/build/components/grid/scss/index.scss +1 -1
- package/build/components/group/index.d.ts +12 -0
- package/build/components/group/index.js +15 -0
- package/build/components/group/scss/index.scss +2 -0
- package/build/components/heatmap/index.js +10 -32
- package/build/components/heatmap/scss/index.scss +1 -1
- package/build/components/highlight/index.d.ts +2 -3
- package/build/components/highlight/index.js +79 -78
- package/build/components/highlight/scss/index.scss +1 -1
- package/build/components/icon/index.d.ts +4 -3
- package/build/components/icon/index.js +2 -1
- package/build/components/icon/scss/index.scss +1 -1
- package/build/components/image/index.d.ts +3 -16
- package/build/components/image/index.js +2 -2
- package/build/components/image/scss/index.scss +1 -1
- package/build/components/index.d.ts +6 -4
- package/build/components/index.js +6 -4
- package/build/components/inline-edit/index.js +5 -4
- package/build/components/inline-edit/rich.js +79 -82
- package/build/components/inline-edit/scss/index.scss +1 -1
- package/build/components/inline-edit/status.js +4 -3
- package/build/components/input/scss/index.scss +1 -1
- package/build/components/input/tag.js +84 -67
- package/build/components/json/index.d.ts +4 -3
- package/build/components/json/index.js +2 -1
- package/build/components/link/scss/index.scss +1 -1
- package/build/components/loading/scss/index.scss +1 -1
- package/build/components/marquee/index.js +74 -71
- package/build/components/marquee/scss/index.scss +1 -1
- package/build/components/metric/flash.js +12 -11
- package/build/components/metric/scss/index.scss +1 -1
- package/build/components/nav/index.d.ts +1 -1
- package/build/components/nav/scss/index.scss +1 -1
- package/build/components/nav/toc.d.ts +8 -13
- package/build/components/nav/toc.js +9 -21
- package/build/components/nav/tree.d.ts +13 -14
- package/build/components/nav/tree.js +32 -19
- package/build/components/notification/index.d.ts +14 -3
- package/build/components/notification/index.js +4 -3
- package/build/components/notification/scss/index.scss +1 -1
- package/build/components/overlay/scss/index.scss +1 -1
- package/build/components/page/scss/index.scss +1 -1
- package/build/components/pagination/cards.d.ts +1 -0
- package/build/components/pagination/cards.js +4 -6
- package/build/components/pagination/scss/index.scss +1 -1
- package/build/components/panels/dnd.d.ts +47 -0
- package/build/components/panels/dnd.js +106 -0
- package/build/components/panels/group.d.ts +35 -0
- package/build/components/panels/group.js +319 -0
- package/build/components/panels/index.d.ts +25 -0
- package/build/components/panels/index.js +520 -0
- package/build/components/panels/model.d.ts +64 -0
- package/build/components/panels/model.js +446 -0
- package/build/components/panels/resize.d.ts +9 -0
- package/build/components/panels/resize.js +87 -0
- package/build/components/panels/scss/index.scss +2 -0
- package/build/components/panels/subtree.d.ts +3 -0
- package/build/components/panels/subtree.js +43 -0
- package/build/components/preview/buttons.d.ts +20 -0
- package/build/components/preview/buttons.js +26 -0
- package/build/components/{copy/index.d.ts → preview/code.d.ts} +3 -9
- package/build/components/preview/code.js +18 -0
- package/build/components/preview/header.d.ts +16 -0
- package/build/components/preview/header.js +18 -0
- package/build/components/preview/index.d.ts +8704 -0
- package/build/components/preview/index.js +123 -0
- package/build/components/preview/scss/index.scss +2 -0
- package/build/components/preview/source.d.ts +21 -0
- package/build/components/preview/source.js +76 -0
- package/build/components/preview/stage.d.ts +16 -0
- package/build/components/preview/stage.js +24 -0
- package/build/components/progress/scss/index.scss +1 -1
- package/build/components/progress/text.js +9 -11
- package/build/components/radio/index.d.ts +3 -2
- package/build/components/radio/index.js +2 -2
- package/build/components/range/filter.js +8 -9
- package/build/components/range/scss/index.scss +1 -1
- package/build/components/relative-time/index.js +4 -7
- package/build/components/relative-time/scss/index.scss +1 -1
- package/build/components/root/scss/index.scss +1 -1
- package/build/components/select/index.d.ts +1 -1
- package/build/components/select/index.js +72 -59
- package/build/components/select/scss/index.scss +1 -1
- package/build/components/shell/index.d.ts +22 -0
- package/build/components/shell/index.js +272 -0
- package/build/components/shell/scss/index.scss +2 -0
- package/build/components/shortcut-recorder/index.d.ts +2 -3
- package/build/components/shortcut-recorder/index.js +3 -1
- package/build/components/shortcut-recorder/scss/index.scss +1 -1
- package/build/components/sortable/scss/index.scss +1 -1
- package/build/components/sticky-header/scss/index.scss +1 -1
- package/build/components/story/index.d.ts +10 -6
- package/build/components/story/index.js +27 -47
- package/build/components/story/scss/index.scss +1 -1
- package/build/components/surface-field/index.js +13 -16
- package/build/components/surface-field/scss/index.scss +1 -1
- package/build/components/switch/index.d.ts +3 -2
- package/build/components/switch/index.js +2 -2
- package/build/components/tasklist/index.js +3 -1
- package/build/components/tasklist/scss/index.scss +1 -1
- package/build/components/textarea/scss/index.scss +1 -1
- package/build/components/theme/index.d.ts +6 -2
- package/build/components/theme/index.js +4 -3
- package/build/components/theme/scss/index.scss +1 -1
- package/build/components/theme-picker/cards.d.ts +13 -0
- package/build/components/theme-picker/cards.js +17 -0
- package/build/components/theme-picker/index.d.ts +9 -49
- package/build/components/theme-picker/index.js +5 -165
- package/build/components/theme-picker/scss/index.scss +1 -1
- package/build/components/theme-picker/shared.d.ts +26 -0
- package/build/components/theme-picker/shared.js +24 -0
- package/build/components/theme-picker/swatches.d.ts +13 -0
- package/build/components/theme-picker/swatches.js +17 -0
- package/build/components/theme-picker/toggle.d.ts +19 -0
- package/build/components/theme-picker/toggle.js +109 -0
- package/build/components/toast/index.js +10 -10
- package/build/components/toast/scss/index.scss +1 -1
- package/build/components/tooltip/menu.d.ts +2 -0
- package/build/components/tooltip/menu.js +88 -45
- package/build/components/tooltip/scss/index.scss +1 -1
- package/build/components/tooltip/shared.js +2 -2
- package/build/components/typewriter/rotate.js +7 -16
- package/build/components/typewriter/scss/index.scss +1 -1
- package/build/components/uptime/index.js +26 -33
- package/build/components/uptime/scss/index.scss +1 -1
- package/build/components/usage-meter/scss/index.scss +1 -1
- package/build/modifiers/background/scss/index.scss +2 -0
- package/build/modifiers/border/scss/index.scss +2 -0
- package/build/modifiers/box-shadow/scss/index.scss +2 -0
- package/build/modifiers/color/scss/index.scss +2 -0
- package/build/modifiers/scrollbar/scss/index.scss +1 -1
- package/build/shared/animation.js +1 -1
- package/build/shared/drag.d.ts +2 -1
- package/build/shared/drag.js +4 -3
- package/package.json +5 -5
- package/scripts/code-editor-services.test.mjs +1 -1
- package/scripts/code-editor-workspace.test.mjs +28 -18
- package/scripts/panels.test.mjs +262 -0
- package/scripts/workspace-keybindings.test.mjs +1 -1
- package/scripts/workspace-session.test.mjs +8 -6
- package/scripts/workspace-status.test.mjs +9 -1
- package/scripts/workspace-tabs.test.mjs +5 -5
- package/src/components/accordion/index.ts +11 -8
- package/src/components/accordion/scss/index.scss +15 -15
- package/src/components/accordion/scss/variables.scss +11 -7
- package/src/components/announcement/scss/index.scss +21 -24
- package/src/components/announcement/scss/variables.scss +13 -7
- package/src/components/breadcrumb/index.ts +8 -10
- package/src/components/breadcrumb/scss/index.scss +48 -122
- package/src/components/breadcrumb/scss/variables.scss +73 -55
- package/src/components/button/copy.ts +34 -27
- package/src/components/button/faces.ts +2 -4
- package/src/components/button/index.ts +3 -7
- package/src/components/button/kbd.ts +37 -95
- package/src/components/button/morph/index.ts +6 -0
- package/src/components/button/morph/save.ts +55 -0
- package/src/components/button/morph/template.ts +135 -0
- package/src/components/button/scss/index.scss +218 -99
- package/src/components/button/scss/variables.scss +160 -115
- package/src/components/button/sidebar.ts +6 -6
- package/src/components/button/split.ts +5 -6
- package/src/components/capslock/index.ts +9 -8
- package/src/components/capslock/scss/index.scss +21 -25
- package/src/components/capslock/scss/variables.scss +31 -12
- package/src/components/card/scss/index.scss +9 -24
- package/src/components/card/scss/variables.scss +29 -76
- package/src/components/cc/index.ts +15 -10
- package/src/components/cc/scss/index.scss +110 -153
- package/src/components/cc/scss/variables.scss +231 -44
- package/src/components/chat/index.ts +10 -0
- package/src/components/{chat-minimap → chat/minimap}/index.ts +66 -21
- package/src/components/{chat-minimap → chat/minimap}/scss/index.scss +26 -54
- package/src/components/chat/minimap/scss/variables.scss +178 -0
- package/src/components/{chat-minimap → chat/minimap}/spy.ts +1 -1
- package/src/components/checkbox/index.ts +1 -0
- package/src/components/checkbox/options.ts +0 -1
- package/src/components/checkbox/scss/index.scss +25 -31
- package/src/components/checkbox/scss/variables.scss +50 -19
- package/src/components/clipboard/index.ts +4 -3
- package/src/components/color-picker/index.ts +131 -67
- package/src/components/color-picker/scss/index.scss +138 -221
- package/src/components/color-picker/scss/variables.scss +228 -81
- package/src/components/command/index.ts +5 -860
- package/src/components/command/palette.ts +879 -0
- package/src/components/command/scss/index.scss +82 -99
- package/src/components/command/scss/variables.scss +129 -50
- package/src/components/command/search.ts +67 -0
- package/src/components/counter/index.ts +90 -85
- package/src/components/counter/scss/index.scss +32 -41
- package/src/components/counter/scss/variables.scss +44 -16
- package/src/components/datalist/scss/index.scss +25 -25
- package/src/components/datalist/scss/variables.scss +21 -11
- package/src/components/dock/index.ts +505 -42
- package/src/components/dock/scss/index.scss +318 -73
- package/src/components/dock/scss/variables.scss +310 -39
- package/src/components/editor/code/features.ts +0 -1
- package/src/components/editor/code/find.ts +0 -1
- package/src/components/editor/code/keymap.ts +0 -1
- package/src/components/editor/code/scss/_editor.scss +12 -31
- package/src/components/editor/code/scss/_features.scss +12 -45
- package/src/components/editor/code/scss/_services.scss +15 -23
- package/src/components/editor/code/scss/index.scss +1 -1
- package/src/components/editor/code/scss/variables.scss +195 -42
- package/src/components/editor/code/view.ts +0 -1
- package/src/components/editor/diffs/scss/_diffs.scss +24 -77
- package/src/components/editor/diffs/scss/_merge.scss +5 -16
- package/src/components/editor/diffs/scss/index.scss +1 -1
- package/src/components/editor/diffs/scss/variables.scss +148 -11
- package/src/components/editor/markdown/index.ts +3 -67
- package/src/components/editor/markdown/render.ts +3 -6
- package/src/components/editor/markdown/scss/index.scss +30 -48
- package/src/components/editor/markdown/scss/variables.scss +117 -32
- package/src/components/editor/markdown/template.ts +69 -0
- package/src/components/editor/tree/drag.ts +5 -2
- package/src/components/editor/tree/find.ts +5 -4
- package/src/components/editor/tree/index.ts +3 -3434
- package/src/components/editor/tree/scss/index.scss +204 -262
- package/src/components/editor/tree/scss/variables.scss +198 -31
- package/src/components/editor/tree/template.ts +3436 -0
- package/src/components/editor/viewer/index.ts +3 -318
- package/src/components/editor/viewer/scss/_viewer.scss +15 -31
- package/src/components/editor/viewer/scss/index.scss +1 -1
- package/src/components/editor/viewer/scss/variables.scss +56 -14
- package/src/components/editor/viewer/template.ts +321 -0
- package/src/components/editor/workspace/index.ts +4 -1480
- package/src/components/editor/workspace/model.ts +225 -185
- package/src/components/editor/workspace/scss/_keybindings.scss +163 -0
- package/src/components/editor/workspace/scss/{status.scss → _status.scss} +11 -44
- package/src/components/editor/workspace/scss/_tabs.scss +57 -0
- package/src/components/editor/workspace/scss/index.scss +82 -312
- package/src/components/editor/workspace/scss/variables.scss +427 -0
- package/src/components/editor/workspace/session.ts +80 -44
- package/src/components/editor/workspace/shortcuts.ts +0 -2
- package/src/components/editor/workspace/status.ts +110 -80
- package/src/components/editor/workspace/statusbar.ts +38 -35
- package/src/components/editor/workspace/strip.ts +6 -5
- package/src/components/editor/workspace/tabs.ts +115 -15
- package/src/components/editor/workspace/template.ts +1486 -0
- package/src/components/error/index.ts +3 -0
- package/src/components/error/scss/index.scss +34 -65
- package/src/components/error/scss/variables.scss +28 -9
- package/src/components/filter/index.ts +2 -6
- package/src/components/filter/scss/index.scss +9 -2
- package/src/components/filter/scss/variables.scss +6 -6
- package/src/components/form/index.ts +4 -1
- package/src/components/frame/scss/index.scss +31 -42
- package/src/components/frame/scss/variables.scss +25 -18
- package/src/components/grid/scss/index.scss +2 -1
- package/src/components/group/index.ts +24 -0
- package/src/components/group/scss/index.scss +6 -0
- package/src/components/group/scss/variables.scss +4 -0
- package/src/components/heatmap/index.ts +14 -44
- package/src/components/heatmap/scss/index.scss +38 -44
- package/src/components/heatmap/scss/variables.scss +100 -59
- package/src/components/highlight/index.ts +133 -119
- package/src/components/highlight/scss/index.scss +49 -43
- package/src/components/highlight/scss/variables.scss +71 -30
- package/src/components/icon/index.ts +7 -5
- package/src/components/icon/scss/index.scss +7 -2
- package/src/components/icon/scss/variables.scss +2 -0
- package/src/components/image/index.ts +4 -2
- package/src/components/image/scss/index.scss +14 -22
- package/src/components/image/scss/variables.scss +30 -15
- package/src/components/index.ts +6 -4
- package/src/components/inline-edit/index.ts +3 -2
- package/src/components/inline-edit/rich.ts +17 -15
- package/src/components/inline-edit/scss/index.scss +165 -254
- package/src/components/inline-edit/scss/variables.scss +311 -83
- package/src/components/inline-edit/status.ts +2 -1
- package/src/components/input/scrub.ts +1 -1
- package/src/components/input/scss/_field.scss +1 -1
- package/src/components/input/scss/_scrub.scss +14 -25
- package/src/components/input/scss/_tag.scss +26 -46
- package/src/components/input/scss/variables.scss +167 -77
- package/src/components/input/tag.ts +59 -49
- package/src/components/json/index.ts +4 -1
- package/src/components/link/scss/index.scss +1 -4
- package/src/components/link/scss/variables.scss +5 -1
- package/src/components/loading/scss/index.scss +3 -23
- package/src/components/loading/scss/variables.scss +3 -6
- package/src/components/marquee/index.ts +33 -28
- package/src/components/marquee/scss/index.scss +32 -26
- package/src/components/marquee/scss/variables.scss +35 -23
- package/src/components/metric/flash.ts +2 -1
- package/src/components/metric/scss/_flash.scss +125 -145
- package/src/components/metric/scss/index.scss +31 -43
- package/src/components/metric/scss/variables.scss +192 -98
- package/src/components/nav/index.ts +1 -1
- package/src/components/nav/scss/index.scss +46 -49
- package/src/components/nav/scss/variables.scss +61 -64
- package/src/components/nav/spy.ts +2 -0
- package/src/components/nav/toc.ts +11 -31
- package/src/components/nav/tree.ts +56 -24
- package/src/components/notification/index.ts +94 -89
- package/src/components/notification/scss/index.scss +77 -76
- package/src/components/notification/scss/variables.scss +55 -38
- package/src/components/overlay/index.ts +3 -1
- package/src/components/overlay/scss/index.scss +94 -114
- package/src/components/overlay/scss/variables.scss +46 -18
- package/src/components/page/scss/variables.scss +1 -1
- package/src/components/pagination/cards.ts +2 -1
- package/src/components/pagination/scss/index.scss +191 -7
- package/src/components/pagination/scss/variables.scss +112 -36
- package/src/components/panels/dnd.ts +184 -0
- package/src/components/panels/group.ts +437 -0
- package/src/components/panels/index.ts +678 -0
- package/src/components/panels/model.ts +675 -0
- package/src/components/panels/resize.ts +131 -0
- package/src/components/panels/scss/index.scss +394 -0
- package/src/components/panels/scss/variables.scss +197 -0
- package/src/components/panels/subtree.ts +65 -0
- package/src/components/preview/buttons.ts +48 -0
- package/src/components/preview/code.ts +28 -0
- package/src/components/preview/header.ts +23 -0
- package/src/components/preview/index.ts +144 -0
- package/src/components/preview/scss/index.scss +143 -0
- package/src/components/preview/scss/variables.scss +127 -0
- package/src/components/preview/source.ts +73 -0
- package/src/components/preview/stage.ts +33 -0
- package/src/components/progress/scss/index.scss +117 -15
- package/src/components/progress/scss/variables.scss +140 -40
- package/src/components/progress/text.ts +5 -4
- package/src/components/radio/index.ts +2 -4
- package/src/components/range/filter.ts +7 -11
- package/src/components/range/scss/_filter.scss +301 -327
- package/src/components/range/scss/_slider.scss +31 -110
- package/src/components/range/scss/_vertical.scss +8 -20
- package/src/components/range/scss/index.scss +1 -4
- package/src/components/range/scss/variables.scss +374 -70
- package/src/components/relative-time/index.ts +9 -14
- package/src/components/relative-time/scss/index.scss +13 -21
- package/src/components/relative-time/scss/variables.scss +46 -29
- package/src/components/root/scss/index.scss +11 -20
- package/src/components/root/scss/variables.scss +17 -15
- package/src/components/select/index.ts +37 -15
- package/src/components/select/scss/index.scss +24 -51
- package/src/components/select/scss/variables.scss +77 -19
- package/src/components/shell/index.ts +321 -0
- package/src/components/shell/scss/index.scss +214 -0
- package/src/components/shell/scss/variables.scss +89 -0
- package/src/components/shortcut-recorder/index.ts +6 -3
- package/src/components/shortcut-recorder/scss/index.scss +71 -56
- package/src/components/shortcut-recorder/scss/variables.scss +47 -21
- package/src/components/sortable/index.ts +1 -0
- package/src/components/sortable/scss/index.scss +37 -42
- package/src/components/sortable/scss/variables.scss +76 -52
- package/src/components/sticky-header/scss/index.scss +11 -10
- package/src/components/sticky-header/scss/variables.scss +36 -4
- package/src/components/story/index.ts +1 -36
- package/src/components/story/scss/index.scss +22 -98
- package/src/components/story/scss/variables.scss +57 -15
- package/src/components/surface-field/index.ts +18 -20
- package/src/components/surface-field/scss/index.scss +32 -46
- package/src/components/surface-field/scss/variables.scss +92 -23
- package/src/components/switch/index.ts +2 -4
- package/src/components/tasklist/index.ts +8 -2
- package/src/components/tasklist/scss/index.scss +7 -7
- package/src/components/tasklist/scss/variables.scss +18 -13
- package/src/components/textarea/index.ts +1 -0
- package/src/components/textarea/scss/index.scss +9 -7
- package/src/components/textarea/scss/variables.scss +2 -2
- package/src/components/theme/index.ts +12 -4
- package/src/components/theme/scss/index.scss +13 -0
- package/src/components/theme/scss/variables.scss +5 -16
- package/src/components/theme-picker/cards.ts +19 -0
- package/src/components/theme-picker/index.ts +6 -225
- package/src/components/theme-picker/scss/index.scss +77 -167
- package/src/components/theme-picker/scss/variables.scss +220 -0
- package/src/components/theme-picker/shared.ts +54 -0
- package/src/components/theme-picker/swatches.ts +15 -0
- package/src/components/theme-picker/toggle.ts +150 -0
- package/src/components/toast/index.ts +14 -14
- package/src/components/toast/scss/index.scss +130 -155
- package/src/components/toast/scss/variables.scss +89 -52
- package/src/components/tooltip/menu.ts +77 -10
- package/src/components/tooltip/scss/_menu.scss +96 -138
- package/src/components/tooltip/scss/_shared.scss +93 -90
- package/src/components/tooltip/scss/index.scss +52 -54
- package/src/components/tooltip/scss/variables.scss +187 -67
- package/src/components/tooltip/shared.ts +8 -6
- package/src/components/typewriter/rotate.ts +15 -24
- package/src/components/typewriter/scss/index.scss +131 -3
- package/src/components/typewriter/scss/variables.scss +56 -44
- package/src/components/uptime/index.ts +1 -13
- package/src/components/uptime/scss/index.scss +28 -66
- package/src/components/uptime/scss/variables.scss +63 -48
- package/src/components/usage-meter/scss/index.scss +19 -19
- package/src/components/usage-meter/scss/variables.scss +80 -35
- package/src/css-utilities/absolute.scss +54 -52
- package/src/css-utilities/background.scss +22 -24
- package/src/css-utilities/border.scss +21 -21
- package/src/css-utilities/box-shadow.scss +32 -21
- package/src/css-utilities/color.scss +23 -21
- package/src/css-utilities/flex.scss +55 -53
- package/src/css-utilities/group.scss +7 -0
- package/src/css-utilities/hidden.scss +22 -20
- package/src/css-utilities/icon.scss +32 -30
- package/src/css-utilities/layer.scss +10 -10
- package/src/css-utilities/reset.scss +27 -16
- package/src/css-utilities/surface.scss +206 -128
- package/src/css-utilities/text.scss +114 -114
- package/src/modifiers/background/scss/index.scss +1 -0
- package/src/modifiers/background/scss/variables.scss +24 -0
- package/src/modifiers/border/scss/index.scss +1 -0
- package/src/modifiers/border/scss/variables.scss +21 -0
- package/src/modifiers/box-shadow/scss/index.scss +1 -0
- package/src/modifiers/box-shadow/scss/variables.scss +12 -0
- package/src/modifiers/color/scss/index.scss +1 -0
- package/src/modifiers/color/scss/variables.scss +10 -0
- package/src/modifiers/scrollbar/scss/index.scss +3 -2
- package/src/modifiers/scrollbar/scss/variables.scss +4 -3
- package/src/shared/animation.ts +3 -3
- package/src/shared/drag.ts +8 -3
- package/src/tokens/scss/color.scss +53 -37
- package/src/tokens/scss/index.scss +0 -1
- package/src/tokens/scss/state.scss +16 -1
- package/storage/svg/code.svg +1 -1
- package/storage/svg/collapse.svg +1 -0
- package/storage/svg/grid.svg +1 -0
- package/storage/svg/stack.svg +1 -0
- package/build/components/banner/scss/index.scss +0 -2
- package/build/components/button/fan.d.ts +0 -24
- package/build/components/button/fan.js +0 -118
- package/build/components/button/hold.d.ts +0 -31
- package/build/components/button/hold.js +0 -115
- package/build/components/button/icons.d.ts +0 -6
- package/build/components/button/icons.js +0 -35
- package/build/components/button/loading.d.ts +0 -22
- package/build/components/button/loading.js +0 -60
- package/build/components/button/morph.d.ts +0 -22
- package/build/components/button/morph.js +0 -115
- package/build/components/card/expand.d.ts +0 -22
- package/build/components/card/expand.js +0 -118
- package/build/components/card/index.d.ts +0 -6
- package/build/components/card/index.js +0 -4
- package/build/components/chat-minimap/index.d.ts +0 -28
- package/build/components/chat-minimap/index.js +0 -223
- package/build/components/chat-minimap/scss/index.scss +0 -2
- package/build/components/clipboard/copy.d.ts +0 -27
- package/build/components/clipboard/copy.js +0 -48
- package/build/components/copy/index.js +0 -61
- package/build/components/copy/scss/index.scss +0 -2
- package/build/components/highlight/easing.d.ts +0 -2
- package/build/components/highlight/easing.js +0 -19
- package/build/components/pull-to-refresh/index.d.ts +0 -18
- package/build/components/pull-to-refresh/index.js +0 -222
- package/build/components/pull-to-refresh/scss/index.scss +0 -2
- package/src/components/banner/scss/index.scss +0 -37
- package/src/components/banner/scss/variables.scss +0 -16
- package/src/components/button/fan.ts +0 -170
- package/src/components/button/hold.ts +0 -154
- package/src/components/button/icons.ts +0 -21
- package/src/components/button/loading.ts +0 -77
- package/src/components/button/morph.ts +0 -153
- package/src/components/button/scss/_fan.scss +0 -121
- package/src/components/button/scss/_kbd.scss +0 -11
- package/src/components/button/scss/_morph.scss +0 -107
- package/src/components/button/scss/_sidebar.scss +0 -61
- package/src/components/button/scss/_split.scss +0 -53
- package/src/components/card/expand.ts +0 -141
- package/src/components/card/index.ts +0 -8
- package/src/components/card/scss/_expand.scss +0 -234
- package/src/components/chat-minimap/scss/variables.scss +0 -97
- package/src/components/clipboard/copy.ts +0 -49
- package/src/components/copy/index.ts +0 -69
- package/src/components/copy/scss/index.scss +0 -52
- package/src/components/copy/scss/variables.scss +0 -19
- package/src/components/editor/workspace/scss/keybindings.scss +0 -190
- package/src/components/editor/workspace/scss/tabs.scss +0 -56
- package/src/components/highlight/easing.ts +0 -33
- package/src/components/pagination/scss/_arrows.scss +0 -69
- package/src/components/pagination/scss/_cards.scss +0 -121
- package/src/components/pagination/scss/_dots.scss +0 -64
- package/src/components/progress/scss/_text.scss +0 -135
- package/src/components/pull-to-refresh/index.ts +0 -316
- package/src/components/pull-to-refresh/scss/index.scss +0 -128
- package/src/components/pull-to-refresh/scss/variables.scss +0 -38
- package/src/components/typewriter/scss/_caret.scss +0 -34
- package/src/components/typewriter/scss/_retype.scss +0 -68
- package/src/components/typewriter/scss/_rotate.scss +0 -29
- package/src/tokens/scss/transition.scss +0 -21
- /package/build/components/{chat-minimap/range.d.ts → chat/minimap/model.d.ts} +0 -0
- /package/src/components/{chat-minimap/range.ts → chat/minimap/model.ts} +0 -0
|
@@ -3,10 +3,11 @@ import { component } from '@esportsplus/template';
|
|
|
3
3
|
import * as reactivity_u0 from '@esportsplus/reactivity';
|
|
4
4
|
import { computed, effect, onCleanup, read } from '@esportsplus/reactivity';
|
|
5
5
|
import faces from '../button/faces.js';
|
|
6
|
-
import
|
|
6
|
+
import icon from '../icon/index.js';
|
|
7
7
|
import input from '../input/index.js';
|
|
8
8
|
import amex from '@esportsplus/ui/svg/amex.svg';
|
|
9
9
|
import card from '@esportsplus/ui/svg/card.svg';
|
|
10
|
+
import checkSvg from '@esportsplus/ui/svg/check.svg';
|
|
10
11
|
import chip from '@esportsplus/ui/svg/chip.svg';
|
|
11
12
|
import discover from '@esportsplus/ui/svg/discover.svg';
|
|
12
13
|
import lock from '@esportsplus/ui/svg/lock.svg';
|
|
@@ -21,13 +22,14 @@ const template_02im3v1m = template_u1.template(`<div class='cc-shell cc-shell--n
|
|
|
21
22
|
const template_02im3v1t = template_u1.template(`<div class='cc-shell cc-shell--number'><div class='cc-shell-header'><label class='cc-label'>`);
|
|
22
23
|
const template_02im3v110 = template_u1.template(`<div class='cc-shell '><div class='cc-shell-header'><label class='cc-label'>`);
|
|
23
24
|
const template_02im3v117 = template_u1.template(`<span aria-hidden='true' class='cc-brand cc-brand--large'>`);
|
|
24
|
-
const template_02im3v11a = template_u1.template(`<span class='cc-brand-mark '
|
|
25
|
-
const
|
|
26
|
-
const
|
|
27
|
-
const
|
|
28
|
-
const
|
|
29
|
-
const
|
|
30
|
-
const
|
|
25
|
+
const template_02im3v11a = template_u1.template(`<span class='cc-brand-mark '>`);
|
|
26
|
+
const template_02im3v11d = template_u1.template(`<span aria-hidden='true' class='cc-brand cc-brand--small'>`);
|
|
27
|
+
const template_02im3v11i = template_u1.template(`<span aria-hidden='true' class='cc-brand '>`);
|
|
28
|
+
const template_02im3v11n = template_u1.template(`<form aria-label='Card details' class='cc' novalidate><div aria-hidden='true' class='cc-preview'><div class='cc-card '><div class='cc-face cc-face--front'><span class='cc-ring '></span><div class='cc-face-top'><!--$--></div><div class='cc-number'></div><div class='cc-face-bottom'><div class='cc-holder'><span class='cc-caption'>Card holder</span><span class='cc-holder-value'></span></div><div class='cc-expires'><span class='cc-caption'>Expires</span><span class='cc-expires-value'></span></div></div></div><div class='cc-face cc-face--back'><div class='cc-stripe'></div><div class='cc-signature'><div class='cc-signature-value'></div><span class='cc-caption'>CVC</span></div><p class='cc-disclaimer'>Not a real card. Nothing you type leaves this page.</p></div></div></div><div class='cc-fields'><!--$--><div class='cc-row'><!--$--></div></div><div class='cc-actions'><button class='button button--feedback cc-submit' type='submit'></button><!--$--><span aria-live='polite' class='button-status' role='status'></span><span aria-live='polite' class='cc-live'>`);
|
|
29
|
+
const template_02im3v128 = template_u1.template(`<span class='cc-digit '>`);
|
|
30
|
+
const template_02im3v12b = template_u1.template(`<div class='cc-control'><!--$--><span class='cc-control-brand '>`);
|
|
31
|
+
const template_02im3v12f = template_u1.template(`<!--$-->Details look valid`);
|
|
32
|
+
const template_02im3v12i = template_u1.template(`<p class='cc-note'><!--$-->`);
|
|
31
33
|
class ReactiveObject_02im3v10 extends reactivity_u0.ReactiveObject {
|
|
32
34
|
#cvc = this[reactivity_u0.SIGNAL]('');
|
|
33
35
|
#expiry = this[reactivity_u0.SIGNAL]('');
|
|
@@ -223,31 +225,31 @@ function mark(brand, size) {
|
|
|
223
225
|
return (size === "large" ? (() => {
|
|
224
226
|
let root_02im3v116 = template_02im3v117(), element_02im3v118 = root_02im3v116.firstChild;
|
|
225
227
|
template_u1.slot(element_02im3v118, Object.keys(BRANDS).map((b) => {
|
|
226
|
-
let root_02im3v119 = template_02im3v11a(), element_02im3v11b = root_02im3v119.firstChild
|
|
227
|
-
template_u1.
|
|
228
|
+
let root_02im3v119 = template_02im3v11a(), element_02im3v11b = root_02im3v119.firstChild;
|
|
229
|
+
template_u1.slot(element_02im3v11b, icon({ class: 'cc-brand-icon' }, BRANDS[b].icon), 1);
|
|
228
230
|
template_u1.setList(element_02im3v11b, 'class', () => brand() === b && '--active');
|
|
229
231
|
return root_02im3v119;
|
|
230
232
|
}), 1);
|
|
231
233
|
return root_02im3v116;
|
|
232
234
|
})() : size === "small" ? (() => {
|
|
233
|
-
let
|
|
234
|
-
template_u1.slot(
|
|
235
|
-
let
|
|
236
|
-
template_u1.
|
|
237
|
-
template_u1.setList(
|
|
238
|
-
return
|
|
235
|
+
let root_02im3v11c = template_02im3v11d(), element_02im3v11e = root_02im3v11c.firstChild;
|
|
236
|
+
template_u1.slot(element_02im3v11e, Object.keys(BRANDS).map((b) => {
|
|
237
|
+
let root_02im3v11f = template_02im3v11a(), element_02im3v11g = root_02im3v11f.firstChild;
|
|
238
|
+
template_u1.slot(element_02im3v11g, icon({ class: 'cc-brand-icon' }, BRANDS[b].icon), 1);
|
|
239
|
+
template_u1.setList(element_02im3v11g, 'class', () => brand() === b && '--active');
|
|
240
|
+
return root_02im3v11f;
|
|
239
241
|
}), 1);
|
|
240
|
-
return
|
|
242
|
+
return root_02im3v11c;
|
|
241
243
|
})() : (() => {
|
|
242
|
-
let
|
|
243
|
-
template_u1.slot(
|
|
244
|
-
let
|
|
245
|
-
template_u1.
|
|
246
|
-
template_u1.setList(
|
|
247
|
-
return
|
|
244
|
+
let root_02im3v11h = template_02im3v11i(), element_02im3v11j = root_02im3v11h.firstChild;
|
|
245
|
+
template_u1.slot(element_02im3v11j, Object.keys(BRANDS).map((b) => {
|
|
246
|
+
let root_02im3v11k = template_02im3v11a(), element_02im3v11l = root_02im3v11k.firstChild;
|
|
247
|
+
template_u1.slot(element_02im3v11l, icon({ class: 'cc-brand-icon' }, BRANDS[b].icon), 1);
|
|
248
|
+
template_u1.setList(element_02im3v11l, 'class', () => brand() === b && '--active');
|
|
249
|
+
return root_02im3v11k;
|
|
248
250
|
}), 1);
|
|
249
|
-
template_u1.setList(
|
|
250
|
-
return
|
|
251
|
+
template_u1.setList(element_02im3v11j, 'class', template_u1.interpolate(["cc-brand--", (size)]));
|
|
252
|
+
return root_02im3v11h;
|
|
251
253
|
})());
|
|
252
254
|
}
|
|
253
255
|
function reformat(element, max, format, pad) {
|
|
@@ -314,6 +316,7 @@ export default component(function ({ note = '', onvalid, state = new ReactiveObj
|
|
|
314
316
|
name: new ReactiveObject_02im3v13(),
|
|
315
317
|
number: new ReactiveObject_02im3v14()
|
|
316
318
|
}, id = `cc-${++uid}`, local = new ReactiveObject_02im3v15(), parts = { ...this?.attributes?.[CC_FIELD], ...attributes[CC_FIELD] }, regions = {}, ring, slots = new reactivity_u0.ReactiveArray(), timer;
|
|
319
|
+
let errors = Object.fromEntries(FIELDS.map((field) => [field, computed(() => !!fields[field].error)]));
|
|
317
320
|
function brand() {
|
|
318
321
|
return read(detected);
|
|
319
322
|
}
|
|
@@ -385,75 +388,60 @@ export default component(function ({ note = '', onvalid, state = new ReactiveObj
|
|
|
385
388
|
return (field === "cvc" ? (() => {
|
|
386
389
|
let root_02im3v16 = template_02im3v17(), element_02im3v18 = root_02im3v16.firstChild.firstElementChild.firstElementChild, element_02im3v19 = root_02im3v16.firstChild.firstElementChild, element_02im3v1a = root_02im3v16.firstChild;
|
|
387
390
|
template_u1.slot(element_02im3v18, label, 1);
|
|
388
|
-
new template_u1.EffectSlot(element_02im3v19, () => {
|
|
389
|
-
let
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
return root_02im3v1b;
|
|
395
|
-
})();
|
|
396
|
-
}, 2);
|
|
391
|
+
new template_u1.EffectSlot(element_02im3v19, () => read(errors[field]) && (() => {
|
|
392
|
+
let root_02im3v1b = template_02im3v1c(), element_02im3v1d = root_02im3v1b.firstChild;
|
|
393
|
+
new template_u1.EffectSlot(element_02im3v1d, () => fields[field].error, 1);
|
|
394
|
+
template_u1.setProperty(element_02im3v1d, 'id', template_u1.interpolate([(id), "-", (field), "-error"]));
|
|
395
|
+
return root_02im3v1b;
|
|
396
|
+
})(), 2);
|
|
397
397
|
template_u1.slot(element_02im3v1a, content, 2);
|
|
398
398
|
template_u1.setProperty(element_02im3v18, 'for', template_u1.interpolate([(id), "-cvc"]));
|
|
399
399
|
return root_02im3v16;
|
|
400
400
|
})() : field === "expiry" ? (() => {
|
|
401
401
|
let root_02im3v1e = template_02im3v1f(), element_02im3v1g = root_02im3v1e.firstChild.firstElementChild.firstElementChild, element_02im3v1h = root_02im3v1e.firstChild.firstElementChild, element_02im3v1i = root_02im3v1e.firstChild;
|
|
402
402
|
template_u1.slot(element_02im3v1g, label, 1);
|
|
403
|
-
new template_u1.EffectSlot(element_02im3v1h, () => {
|
|
404
|
-
let
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
return root_02im3v1j;
|
|
410
|
-
})();
|
|
411
|
-
}, 2);
|
|
403
|
+
new template_u1.EffectSlot(element_02im3v1h, () => read(errors[field]) && (() => {
|
|
404
|
+
let root_02im3v1j = template_02im3v1c(), element_02im3v1k = root_02im3v1j.firstChild;
|
|
405
|
+
new template_u1.EffectSlot(element_02im3v1k, () => fields[field].error, 1);
|
|
406
|
+
template_u1.setProperty(element_02im3v1k, 'id', template_u1.interpolate([(id), "-", (field), "-error"]));
|
|
407
|
+
return root_02im3v1j;
|
|
408
|
+
})(), 2);
|
|
412
409
|
template_u1.slot(element_02im3v1i, content, 2);
|
|
413
410
|
template_u1.setProperty(element_02im3v1g, 'for', template_u1.interpolate([(id), "-expiry"]));
|
|
414
411
|
return root_02im3v1e;
|
|
415
412
|
})() : field === "name" ? (() => {
|
|
416
413
|
let root_02im3v1l = template_02im3v1m(), element_02im3v1n = root_02im3v1l.firstChild.firstElementChild.firstElementChild, element_02im3v1o = root_02im3v1l.firstChild.firstElementChild, element_02im3v1p = root_02im3v1l.firstChild;
|
|
417
414
|
template_u1.slot(element_02im3v1n, label, 1);
|
|
418
|
-
new template_u1.EffectSlot(element_02im3v1o, () => {
|
|
419
|
-
let
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
return root_02im3v1q;
|
|
425
|
-
})();
|
|
426
|
-
}, 2);
|
|
415
|
+
new template_u1.EffectSlot(element_02im3v1o, () => read(errors[field]) && (() => {
|
|
416
|
+
let root_02im3v1q = template_02im3v1c(), element_02im3v1r = root_02im3v1q.firstChild;
|
|
417
|
+
new template_u1.EffectSlot(element_02im3v1r, () => fields[field].error, 1);
|
|
418
|
+
template_u1.setProperty(element_02im3v1r, 'id', template_u1.interpolate([(id), "-", (field), "-error"]));
|
|
419
|
+
return root_02im3v1q;
|
|
420
|
+
})(), 2);
|
|
427
421
|
template_u1.slot(element_02im3v1p, content, 2);
|
|
428
422
|
template_u1.setProperty(element_02im3v1n, 'for', template_u1.interpolate([(id), "-name"]));
|
|
429
423
|
return root_02im3v1l;
|
|
430
424
|
})() : field === "number" ? (() => {
|
|
431
425
|
let root_02im3v1s = template_02im3v1t(), element_02im3v1u = root_02im3v1s.firstChild.firstElementChild.firstElementChild, element_02im3v1v = root_02im3v1s.firstChild.firstElementChild, element_02im3v1w = root_02im3v1s.firstChild;
|
|
432
426
|
template_u1.slot(element_02im3v1u, label, 1);
|
|
433
|
-
new template_u1.EffectSlot(element_02im3v1v, () => {
|
|
434
|
-
let
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
return root_02im3v1x;
|
|
440
|
-
})();
|
|
441
|
-
}, 2);
|
|
427
|
+
new template_u1.EffectSlot(element_02im3v1v, () => read(errors[field]) && (() => {
|
|
428
|
+
let root_02im3v1x = template_02im3v1c(), element_02im3v1y = root_02im3v1x.firstChild;
|
|
429
|
+
new template_u1.EffectSlot(element_02im3v1y, () => fields[field].error, 1);
|
|
430
|
+
template_u1.setProperty(element_02im3v1y, 'id', template_u1.interpolate([(id), "-", (field), "-error"]));
|
|
431
|
+
return root_02im3v1x;
|
|
432
|
+
})(), 2);
|
|
442
433
|
template_u1.slot(element_02im3v1w, content, 2);
|
|
443
434
|
template_u1.setProperty(element_02im3v1u, 'for', template_u1.interpolate([(id), "-number"]));
|
|
444
435
|
return root_02im3v1s;
|
|
445
436
|
})() : (() => {
|
|
446
437
|
let root_02im3v1z = template_02im3v110(), element_02im3v111 = root_02im3v1z.firstChild, element_02im3v112 = element_02im3v111.firstElementChild.firstElementChild, element_02im3v113 = element_02im3v111.firstElementChild;
|
|
447
438
|
template_u1.slot(element_02im3v112, label, 1);
|
|
448
|
-
new template_u1.EffectSlot(element_02im3v113, () => {
|
|
449
|
-
let
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
return root_02im3v114;
|
|
455
|
-
})();
|
|
456
|
-
}, 2);
|
|
439
|
+
new template_u1.EffectSlot(element_02im3v113, () => read(errors[field]) && (() => {
|
|
440
|
+
let root_02im3v114 = template_02im3v1c(), element_02im3v115 = root_02im3v114.firstChild;
|
|
441
|
+
new template_u1.EffectSlot(element_02im3v115, () => fields[field].error, 1);
|
|
442
|
+
template_u1.setProperty(element_02im3v115, 'id', template_u1.interpolate([(id), "-", (field), "-error"]));
|
|
443
|
+
return root_02im3v114;
|
|
444
|
+
})(), 2);
|
|
457
445
|
template_u1.slot(element_02im3v111, content, 2);
|
|
458
446
|
template_u1.setProperty(element_02im3v112, 'for', template_u1.interpolate([(id), "-", (field)]));
|
|
459
447
|
template_u1.setList(element_02im3v111, 'class', template_u1.interpolate(["cc-shell--", (field)]));
|
|
@@ -481,22 +469,23 @@ export default component(function ({ note = '', onvalid, state = new ReactiveObj
|
|
|
481
469
|
effect(focused, frame);
|
|
482
470
|
onCleanup(() => clearTimeout(timer));
|
|
483
471
|
return (() => {
|
|
484
|
-
let
|
|
485
|
-
template_u1.slot(
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
template_u1.
|
|
490
|
-
template_u1.setList(
|
|
491
|
-
template_u1.setList(
|
|
492
|
-
|
|
472
|
+
let root_02im3v11m = template_02im3v11n(), element_02im3v11o = root_02im3v11m.firstChild, element_02im3v11p = element_02im3v11o.firstElementChild.firstElementChild, element_02im3v11q = element_02im3v11p.firstElementChild.firstElementChild, element_02im3v11r = element_02im3v11q.nextElementSibling.firstChild, element_02im3v11s = element_02im3v11q.nextElementSibling, element_02im3v11t = element_02im3v11s.nextElementSibling, element_02im3v11u = element_02im3v11t.nextElementSibling.firstElementChild, element_02im3v11v = element_02im3v11u.firstElementChild.nextElementSibling, element_02im3v11w = element_02im3v11u.nextElementSibling, element_02im3v11x = element_02im3v11w.firstElementChild.nextElementSibling, element_02im3v11y = element_02im3v11p.firstElementChild.nextElementSibling.firstElementChild.nextElementSibling.firstElementChild, element_02im3v11z = element_02im3v11o.firstElementChild.nextElementSibling.firstChild, element_02im3v120 = element_02im3v11o.firstElementChild.nextElementSibling.firstElementChild.firstChild, element_02im3v121 = element_02im3v11o.firstElementChild.nextElementSibling.firstElementChild, element_02im3v122 = element_02im3v11o.firstElementChild.nextElementSibling, element_02im3v123 = element_02im3v122.nextElementSibling.firstElementChild, element_02im3v124 = element_02im3v122.nextElementSibling.firstChild.nextSibling, element_02im3v125 = element_02im3v123.nextElementSibling, element_02im3v126 = element_02im3v125.nextElementSibling;
|
|
473
|
+
template_u1.slot(element_02im3v11r, icon({ class: 'cc-chip' }, chip));
|
|
474
|
+
template_u1.slot(element_02im3v11s, mark(brand, 'large'), 2);
|
|
475
|
+
element_02im3v11t.appendChild(new template_u1.ArraySlot(slots, (slot) => {
|
|
476
|
+
let root_02im3v127 = template_02im3v128(), element_02im3v129 = root_02im3v127.firstChild;
|
|
477
|
+
new template_u1.EffectSlot(element_02im3v129, () => slot.char, 1);
|
|
478
|
+
template_u1.setList(element_02im3v129, 'class', () => slot.gap && 'cc-digit--gap');
|
|
479
|
+
template_u1.setList(element_02im3v129, 'class', () => slot.char === '•' && 'cc-digit--placeholder');
|
|
480
|
+
template_u1.setList(element_02im3v129, 'class', () => slot.roll && `cc-digit--roll-${slot.roll}`);
|
|
481
|
+
return root_02im3v127;
|
|
493
482
|
}, true).fragment);
|
|
494
|
-
new template_u1.EffectSlot(
|
|
495
|
-
new template_u1.EffectSlot(
|
|
496
|
-
new template_u1.EffectSlot(
|
|
497
|
-
template_u1.slot(
|
|
498
|
-
let
|
|
499
|
-
template_u1.slot(
|
|
483
|
+
new template_u1.EffectSlot(element_02im3v11v, () => state.name.trim() || 'Your name', 1);
|
|
484
|
+
new template_u1.EffectSlot(element_02im3v11x, () => state.expiry || 'MM/YY', 1);
|
|
485
|
+
new template_u1.EffectSlot(element_02im3v11y, () => state.cvc || (brand() === 'amex' ? '••••' : '•••'), 1);
|
|
486
|
+
template_u1.slot(element_02im3v11z, shell('number', 'Card number', (() => {
|
|
487
|
+
let root_02im3v12a = template_02im3v12b(), element_02im3v12c = root_02im3v12a.firstChild.firstChild, element_02im3v12d = root_02im3v12a.firstChild.firstElementChild;
|
|
488
|
+
template_u1.slot(element_02im3v12c, control('number', {
|
|
500
489
|
autocomplete: 'cc-number',
|
|
501
490
|
inputmode: 'numeric',
|
|
502
491
|
oninput: (e) => {
|
|
@@ -509,11 +498,11 @@ export default component(function ({ note = '', onvalid, state = new ReactiveObj
|
|
|
509
498
|
onkeydown: skip,
|
|
510
499
|
placeholder: '1234 5678 9012 3456'
|
|
511
500
|
}));
|
|
512
|
-
template_u1.slot(
|
|
513
|
-
template_u1.setList(
|
|
514
|
-
return
|
|
501
|
+
template_u1.slot(element_02im3v12d, mark(brand, 'small'), 1);
|
|
502
|
+
template_u1.setList(element_02im3v12d, 'class', () => brand() !== 'unknown' && 'cc-control-brand--known');
|
|
503
|
+
return root_02im3v12a;
|
|
515
504
|
})()));
|
|
516
|
-
template_u1.slot(
|
|
505
|
+
template_u1.slot(element_02im3v120, shell('expiry', 'Expiry', control('expiry', {
|
|
517
506
|
autocomplete: 'cc-exp',
|
|
518
507
|
inputmode: 'numeric',
|
|
519
508
|
oninput: (e) => {
|
|
@@ -522,7 +511,7 @@ export default component(function ({ note = '', onvalid, state = new ReactiveObj
|
|
|
522
511
|
onkeydown: skip,
|
|
523
512
|
placeholder: 'MM/YY'
|
|
524
513
|
})));
|
|
525
|
-
template_u1.slot(
|
|
514
|
+
template_u1.slot(element_02im3v121, shell('cvc', 'CVC', control('cvc', {
|
|
526
515
|
autocomplete: 'cc-csc',
|
|
527
516
|
inputmode: 'numeric',
|
|
528
517
|
oninput: (e) => {
|
|
@@ -530,7 +519,7 @@ export default component(function ({ note = '', onvalid, state = new ReactiveObj
|
|
|
530
519
|
},
|
|
531
520
|
placeholder: () => brand() === 'amex' ? '1234' : '123'
|
|
532
521
|
})), 2);
|
|
533
|
-
template_u1.slot(
|
|
522
|
+
template_u1.slot(element_02im3v122, shell('name', 'Name on card', control('name', {
|
|
534
523
|
autocapitalize: 'words',
|
|
535
524
|
autocomplete: 'cc-name',
|
|
536
525
|
maxlength: 40,
|
|
@@ -540,30 +529,33 @@ export default component(function ({ note = '', onvalid, state = new ReactiveObj
|
|
|
540
529
|
placeholder: 'Ada Lovelace',
|
|
541
530
|
spellcheck: false
|
|
542
531
|
})), 2);
|
|
543
|
-
template_u1.slot(
|
|
532
|
+
template_u1.slot(element_02im3v123, faces(() => local.confirmed ? 'valid' : 'idle', [
|
|
544
533
|
{ content: submit, key: 'idle' },
|
|
545
|
-
{ content:
|
|
534
|
+
{ content: (() => {
|
|
535
|
+
let root_02im3v12e = template_02im3v12f(), element_02im3v12g = root_02im3v12e.firstChild;
|
|
536
|
+
template_u1.slot(element_02im3v12g, icon({ 'aria-hidden': 'true', class: 'button-icon button-icon--draw' }, checkSvg));
|
|
537
|
+
return root_02im3v12e;
|
|
538
|
+
})(), key: 'valid' }
|
|
546
539
|
]), 1);
|
|
547
|
-
template_u1.slot(
|
|
548
|
-
let root_02im3v12h = template_02im3v12i(), element_02im3v12j = root_02im3v12h.firstChild.
|
|
540
|
+
template_u1.slot(element_02im3v124, !!note && (() => {
|
|
541
|
+
let root_02im3v12h = template_02im3v12i(), element_02im3v12j = root_02im3v12h.firstChild.firstChild, element_02im3v12k = root_02im3v12h.firstChild;
|
|
542
|
+
template_u1.slot(element_02im3v12j, icon({ 'aria-hidden': 'true', class: 'cc-note-icon' }, lock));
|
|
549
543
|
template_u1.slot(element_02im3v12k, note, 2);
|
|
550
|
-
template_u1.setProperty(element_02im3v12j, 'href', template_u1.interpolate(["#", (lock)]));
|
|
551
544
|
return root_02im3v12h;
|
|
552
545
|
})());
|
|
553
|
-
new template_u1.EffectSlot(
|
|
554
|
-
new template_u1.EffectSlot(
|
|
555
|
-
template_u1.setProperties(
|
|
556
|
-
template_u1.setProperties(
|
|
557
|
-
template_u1.onconnect(
|
|
558
|
-
template_u1.onconnect(
|
|
559
|
-
template_u1.onconnect(
|
|
560
|
-
template_u1.
|
|
561
|
-
template_u1.
|
|
562
|
-
template_u1.
|
|
563
|
-
template_u1.
|
|
564
|
-
template_u1.setProperties(
|
|
565
|
-
template_u1.
|
|
566
|
-
|
|
567
|
-
return root_02im3v11p;
|
|
546
|
+
new template_u1.EffectSlot(element_02im3v125, () => local.confirmed && 'Card details look valid', 1);
|
|
547
|
+
new template_u1.EffectSlot(element_02im3v126, () => brand() !== 'unknown' && `${BRANDS[brand()].name} card`, 1);
|
|
548
|
+
template_u1.setProperties(element_02im3v123, this?.attributes?.[CC_SUBMIT]);
|
|
549
|
+
template_u1.setProperties(element_02im3v123, attributes[CC_SUBMIT]);
|
|
550
|
+
template_u1.onconnect(element_02im3v11w, (element) => { regions.expiry = element; });
|
|
551
|
+
template_u1.onconnect(element_02im3v11u, (element) => { regions.name = element; });
|
|
552
|
+
template_u1.onconnect(element_02im3v11t, (element) => { regions.number = element; });
|
|
553
|
+
template_u1.setList(element_02im3v11q, 'class', () => local.ring && '--active');
|
|
554
|
+
template_u1.onconnect(element_02im3v11q, (element) => { ring = element; });
|
|
555
|
+
template_u1.setList(element_02im3v11p, 'class', () => focused() === 'cvc' && 'cc-card--flipped');
|
|
556
|
+
template_u1.setProperties(element_02im3v11o, this?.attributes);
|
|
557
|
+
template_u1.setProperties(element_02im3v11o, attributes);
|
|
558
|
+
template_u1.on(element_02im3v11o, 'submit', check);
|
|
559
|
+
return root_02im3v11m;
|
|
568
560
|
})();
|
|
569
561
|
}, { field: CC_FIELD, submit: CC_SUBMIT });
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
@layer components{.cc-face{position:absolute;inset:0}@font-face{font-display:swap;font-family:Geist;font-style:normal;font-weight:100 900;src:url(../../../css-utilities/font/geist/Geist-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist;font-style:italic;font-weight:100 900;src:url(../../../css-utilities/font/geist/Geist-Italic-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist Mono;font-style:normal;font-weight:100 900;src:url(../../../css-utilities/font/geist/GeistMono-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist Mono;font-style:italic;font-weight:100 900;src:url(../../../css-utilities/font/geist/GeistMono-Italic-Variable.woff2)format("woff2")}.cc-expires-value,.cc-field--cvc,.cc-field--expiry,.cc-field--number,.cc-number,.cc-signature-value{--font-weight-300:300;--font-weight-400:400;--font-weight-500:500;--font-weight-600:600;--font-family:"Geist Mono", monospace}.cc-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.cc-brand-mark{filter:blur(var(--blur-400));opacity:0;transition:filter var(--icon-swap-duration) var(--icon-swap-timing-function), opacity var(--icon-swap-duration) var(--icon-swap-timing-function), scale var(--icon-swap-duration) var(--icon-swap-timing-function);scale:.25}@media (prefers-reduced-motion:reduce){.cc-brand-mark{transition:none}}.cc-brand-mark.--active{filter:blur();opacity:1;scale:1}.cc-face{--surface-shadow-weight:6;--surface-background-active:light-dark(oklch(from var(--surface-background-default) calc(l + .01) c h),oklch(from var(--surface-background-default) calc(l + .02) c h));--surface-background-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .01, 1) calc(c * (1 - clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .01, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .02 + min(var(--surface-level), 0) * .02, l + .12) calc(c * clamp(0, l + max(var(--surface-level), 0) * .02 + min(var(--surface-level), 0) * .02, l + .12) / max(l, .01)) h));--surface-background-hover:light-dark(oklch(from var(--surface-background-default) calc(l + .005) c h),oklch(from var(--surface-background-default) calc(l + .01) c h));--surface-background-pressed:light-dark(oklch(from var(--surface-background-default) calc(l - .02) c h),oklch(from var(--surface-background-default) calc(l - .04) c h));--surface-border-active:light-dark(oklch(from var(--surface-background-active) max(0, l - .04) c h),oklch(from var(--surface-background-active) min(1, l + .06) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .04) c h),oklch(from var(--surface-background-default) min(1, l + .06) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .04) c h),oklch(from var(--surface-background-hover) min(1, l + .06) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .04) c h),oklch(from var(--surface-background-pressed) min(1, l + .06) c h));--surface-shadow-active:var(--surface-shadow-hover);--surface-shadow-color:light-dark(oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .08),oklch(from var(--surface-background-default) calc(l * .24) calc(c * .24) h / .16));--surface-shadow-cast:light-dark(oklch(from light-dark(oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) calc(c * clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) / max(l, .01)) h)) calc(l * .24) calc(c * .24) h / .08),oklch(from light-dark(oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .01, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) calc(c * clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .02 + min(calc(var(--surface-level) - 1), 0) * .02, l + .12) / max(l, .01)) h)) calc(l * .24) calc(c * .24) h / .16));--surface-shadow-default:0 calc((0 + 1 * clamp(0, var(--surface-shadow-weight) - 0, 1) + 3 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 6 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 10 * clamp(0, var(--surface-shadow-weight) - 5, 1) + 5 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, var(--surface-shadow-weight) - 1, 1) + 1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + 3 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 9 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 10 * clamp(0, var(--surface-shadow-weight) - 5, 1) + 25 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, var(--surface-shadow-weight) - 3, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 5, 1) + -7 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .05 * clamp(0, var(--surface-shadow-weight) - 0, 1) + .05 * clamp(0, var(--surface-shadow-weight) - 2, 1) + .15 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 10)), 0 calc((0 + 1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + 1 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 4 * clamp(0, var(--surface-shadow-weight) - 5, 1) + -8 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, var(--surface-shadow-weight) - 2, 1) + 2 * clamp(0, var(--surface-shadow-weight) - 3, 1) + 2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + 4 * clamp(0, var(--surface-shadow-weight) - 5, 1) + -10 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + -1 * clamp(0, var(--surface-shadow-weight) - 3, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 4, 1) + -2 * clamp(0, var(--surface-shadow-weight) - 5, 1) + 6 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .1 * clamp(0, var(--surface-shadow-weight) - 2, 1) + -.1 * clamp(0, var(--surface-shadow-weight) - 6, 1)) * 10));--surface-shadow-hover:0 calc((0 + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 0, 1) + 3 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 6 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 10 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + 5 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 1, 1) + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + 3 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 9 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 10 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + 25 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + -7 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .05 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 0, 1) + .05 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + .15 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 10)), 0 calc((0 + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + 1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 4 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + -8 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + 2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + 4 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + -10 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + -1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 3, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 4, 1) + -2 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 5, 1) + 6 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 2, 1) + -.1 * clamp(0, min(var(--surface-shadow-weight) + 1, 7) - 6, 1)) * 10));--surface-shadow-pressed:0 calc((0 + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 0, 1) + 3 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 6 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 10 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + 5 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 1, 1) + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + 3 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 9 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 10 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + 25 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + -7 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .05 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 0, 1) + .05 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + .15 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 10)), 0 calc((0 + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + 1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 4 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + -8 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + 2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + 4 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + -10 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) calc((0 + -1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + -1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 3, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 4, 1) + -2 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 5, 1) + 6 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 1px) oklch(from var(--surface-shadow-cast) l c h / calc(alpha * (0 + .1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 2, 1) + -.1 * clamp(0, max(var(--surface-shadow-weight) - 1, 0) - 6, 1)) * 10))}@container style(--surface-level:-3){.cc-face{--surface-level:-2;--surface-shadow-weight:0}}@container style(--surface-level:-2){.cc-face{--surface-level:-1;--surface-shadow-weight:0}}@container style(--surface-level:-1){.cc-face{--surface-level:0;--surface-shadow-weight:0}}@container style(--surface-level:0){.cc-face{--surface-level:1;--surface-shadow-weight:1}}@container style(--surface-level:1){.cc-face{--surface-level:2;--surface-shadow-weight:2}}@container style(--surface-level:2){.cc-face{--surface-level:3;--surface-shadow-weight:3}}@container style(--surface-level:3){.cc-face{--surface-level:4;--surface-shadow-weight:4}}@container style(--surface-level:4){.cc-face{--surface-level:5;--surface-shadow-weight:5}}@container style(--surface-level:5){.cc-face{--surface-level:6;--surface-shadow-weight:6}}.cc-error,.cc-holder-value{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}@keyframes text-gradient{to{background-position:var(--background-size) 0}}@keyframes text-line-shadow{0%{background-position:0 0}to{background-position:100% -100%}}@keyframes text-shiny{0%,90%,to{background-position:calc(-100% - var(--shine-width)) 0}30%,60%{background-position:calc(100% + var(--shine-width)) 0}}.cc{--card-background:var(--color-black-300);--card-border-radius:var(--border-radius-700);--card-color:var(--color-white-300);--card-number-font-size:clamp(16px, 5.2vw, 21px);--color:var(--color-text-500);--digit-duration:var(--duration-fast);--error-color:var(--color-red-400);--field-border-color:var(--surface-border-default);--field-border-radius:var(--border-radius-600);--field-font-size:var(--font-size-400);--field-height:44px;--flip-duration:.764s;--flip-timing-function:linear(0, .031, .108, .205, .315, .421, .524, .614, .695, .762, .82, .865, .903, .931, .954, .97, .982, .991, .997, 1.001, 1.004, 1.005, 1.006, 1.006, 1.005, 1.005, 1.004, 1.004, 1.003, 1.002, 1);--icon-swap-duration:var(--swap-duration);--icon-swap-timing-function:var(--spring);--label-font-size:var(--font-size-300);--label-font-weight:var(--font-weight-500);--muted-color:var(--color-text-300);--outline-color:var(--color-primary-500);--ring-duration:var(--duration-moderate);--spring:linear(0, .035, .118, .216, .319, .424, .515, .6, .669, .728, .781, .822, .856, .885, .908, .927, .942, .954, .964, .971, .977, .982, .986, .989, .991, .993, .995, .996, .997, .997, 1);--submit-background:var(--color-primary-500);--submit-color:var(--color-surface);--swap-duration:var(--duration-moderate);--width:min(400px, 100%)}@media (prefers-reduced-motion:reduce){.cc{--ring-duration:0s}}.cc-field.input{--background-default:var(--field-background);--border-color-active:var(--field-border-color);--border-color-default:var(--field-border-color);--border-color-hover:var(--field-border-color);--border-color-pressed:var(--field-border-color);--border-radius:var(--field-border-radius);--border-width:var(--border-width-400);--color-default:currentColor;--padding-horizontal:14px}.cc-field.input[aria-invalid=true]{--field-border-color:var(--error-color);--outline-color:var(--error-color)}.cc-submit.button{--background-default:var(--submit-background);--border-radius:var(--field-border-radius);--color-default:var(--submit-color);--face-duration:var(--swap-duration);--face-gap:var(--size-100);--face-timing-function:var(--spring);--font-size:var(--field-font-size);--font-weight:var(--font-weight-500);--icon-size:var(--size-400);--padding-horizontal:var(--size-500);--padding-vertical:0px}.cc{color:var(--color);gap:var(--size-500);width:var(--width);flex-direction:column;display:flex}.cc-actions{gap:var(--size-200);flex-direction:column;display:flex}.cc-brand{grid-template:100%/100%;display:grid}.cc-brand--large{width:48px;height:32px}.cc-brand--small{width:36px;height:24px}.cc-brand-icon{width:100%;height:100%;display:block}.cc-brand-mark{grid-area:1/1;width:100%;height:100%}.cc-caption{font-size:var(--font-size-300);opacity:.6;text-transform:uppercase}.cc-card{height:100%;transform-style:preserve-3d;transition:transform var(--flip-duration) var(--flip-timing-function);width:100%;position:relative}.cc-card--flipped{transform:rotateY(180deg)}.cc-chip{width:44px;height:32px}.cc-control{position:relative}.cc-control-brand{color:var(--muted-color);pointer-events:none;transition:color var(--transition-duration) var(--transition-timing-function);display:flex;position:absolute;top:50%;right:12px;translate:0 -50%}.cc-control-brand--known{color:var(--color)}.cc-digit{display:inline-block}.cc-digit--gap{margin-inline-start:.6em}.cc-digit--placeholder{opacity:.45}.cc-digit--roll-1{animation:cc-digit-1 var(--digit-duration) var(--easing-out)}.cc-digit--roll-2{animation:cc-digit-2 var(--digit-duration) var(--easing-out)}.cc-disclaimer{font-size:var(--font-size-300);opacity:.6;padding:0 24px var(--size-500);margin:auto 0 0}.cc-error{color:var(--error-color);font-size:var(--font-size-300);transition:filter var(--duration-fast) var(--easing-spring), opacity var(--duration-fast) var(--easing-spring), translate var(--duration-fast) var(--easing-spring)}@starting-style{.cc-error{filter:blur(var(--blur-400));opacity:0;translate:0 2px}}.cc-expires{gap:calc(var(--size-100) / 2);flex-direction:column;flex-shrink:0;display:flex}.cc-expires-value{font-family:var(--font-family);font-size:var(--font-size-400);font-weight:var(--font-weight-500)}.cc-face{backface-visibility:hidden;background:var(--card-background);border-radius:var(--card-border-radius);box-shadow:var(--surface-shadow-default);color:var(--card-color);transition:opacity var(--duration-moderate) var(--easing-out);flex-direction:column;display:flex;overflow:hidden}.cc-face--back{transform:rotateY(180deg)}.cc-face--front{justify-content:space-between;padding:24px}.cc-face-bottom{justify-content:space-between;align-items:flex-end;gap:24px;display:flex}.cc-face-top{justify-content:space-between;align-items:flex-start;display:flex}.cc-field--cvc,.cc-field--expiry,.cc-field--number{font-family:var(--font-family)}.cc-field--number.input{padding-inline-end:64px}.cc-field.input{font-size:var(--field-font-size);font-variant-numeric:tabular-nums;height:var(--field-height);min-height:0;transition:border-color var(--duration-fast) var(--easing-spring);outline:none;padding-block:0}.cc-field.input::placeholder{color:oklch(from var(--muted-color) l c h/.7)}.cc-field.input:focus-visible{outline:var(--border-width-500) solid var(--outline-color);outline-offset:-1px}.cc-fields{gap:var(--size-400);flex-direction:column;display:flex}.cc-holder{gap:calc(var(--size-100) / 2);flex-direction:column;flex:1;min-width:0;display:flex}.cc-holder-value{font-size:var(--font-size-400);font-weight:var(--font-weight-500);text-transform:uppercase}.cc-label{font-size:var(--label-font-size);font-weight:var(--label-font-weight);-webkit-user-select:none;user-select:none}.cc-note{color:var(--muted-color);font-size:var(--font-size-300);align-items:center;gap:calc(var(--size-300) / 2);justify-content:center;margin:0;display:flex}.cc-note-icon{flex-shrink:0;width:14px;height:14px}.cc-number{font-family:var(--font-family);font-size:var(--card-number-font-size);white-space:nowrap;align-self:flex-start}.cc-preview{aspect-ratio:1.586;perspective:1200px;-webkit-user-select:none;user-select:none;width:100%;position:relative}.cc-ring{border:1px solid oklch(from var(--card-color) l c h/.35);border-radius:var(--border-radius-400);opacity:0;pointer-events:none;transition:height var(--ring-duration) var(--spring), left var(--ring-duration) var(--spring), opacity var(--duration-fast) var(--easing-out), top var(--ring-duration) var(--spring), width var(--ring-duration) var(--spring);position:absolute;top:0;left:0}.cc-ring.--active{opacity:1;transition:height var(--ring-duration) var(--spring), left var(--ring-duration) var(--spring), opacity var(--duration-moderate) var(--easing-out), top var(--ring-duration) var(--spring), width var(--ring-duration) var(--spring)}.cc-row{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;display:grid}.cc-shell{gap:var(--size-100);flex-direction:column;min-width:0;display:flex}.cc-shell-header{align-items:baseline;gap:var(--size-100);justify-content:space-between;display:flex}.cc-signature{padding:var(--size-500) 24px 0;align-items:center;gap:12px;display:flex}.cc-signature-value{background:var(--card-color);border-radius:var(--border-radius-300);color:var(--card-background);font-family:var(--font-family);font-size:var(--font-size-400);flex:1;justify-content:flex-end;align-items:center;height:40px;padding-inline:12px;font-style:italic;display:flex}.cc-stripe{background:oklch(from var(--card-color) l c h/.15);height:44px;margin-top:24px}.cc-submit.button{height:var(--field-height);border:0;outline:none}.cc-submit.button:focus-visible{outline:var(--border-width-500) solid var(--outline-color);outline-offset:calc(var(--size-100) / 4)}@keyframes cc-digit-1{0%{filter:blur(var(--blur-300));opacity:0;translate:0 -4px}}@keyframes cc-digit-2{0%{filter:blur(var(--blur-300));opacity:0;translate:0 -4px}}@media (prefers-reduced-motion:reduce){@starting-style{.cc-error{filter:none;translate:0}}.cc-face--back{opacity:var(--face-back-opacity,0);transform:none}.cc-face--front{opacity:var(--face-front-opacity,1)}.cc-card--flipped{--face-back-opacity:1;--face-front-opacity:0;transform:none}.cc-digit--roll-1,.cc-digit--roll-2{animation-name:cc-fade}}@keyframes cc-fade{0%{opacity:0}}}
|
|
1
|
+
@layer components{.cc-face{position:absolute;inset:0}@font-face{font-display:swap;font-family:Geist;font-style:normal;font-weight:100 900;src:url(../../../css-utilities/font/geist/Geist-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist;font-style:italic;font-weight:100 900;src:url(../../../css-utilities/font/geist/Geist-Italic-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist Mono;font-style:normal;font-weight:100 900;src:url(../../../css-utilities/font/geist/GeistMono-Variable.woff2)format("woff2")}@font-face{font-display:swap;font-family:Geist Mono;font-style:italic;font-weight:100 900;src:url(../../../css-utilities/font/geist/GeistMono-Italic-Variable.woff2)format("woff2")}.cc-expires-value,.cc-field--cvc,.cc-field--expiry,.cc-field--number,.cc-number,.cc-signature-value{--font-weight-300:300;--font-weight-400:400;--font-weight-500:500;--font-weight-600:600;--font-family:"Geist Mono", monospace}.cc-live{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.cc-brand-mark{filter:blur(var(--blur-400));opacity:0;transition:filter var(--icon-swap-duration) var(--icon-swap-timing-function), opacity var(--icon-swap-duration) var(--icon-swap-timing-function), scale var(--icon-swap-duration) var(--icon-swap-timing-function);scale:.25}@media (prefers-reduced-motion:reduce){.cc-brand-mark{transition:none}}.cc-brand-mark.--active{filter:blur();opacity:1;scale:1}.cc-error,.cc-holder-value{text-overflow:ellipsis;white-space:nowrap;max-width:100%;overflow:hidden}@keyframes text-gradient{to{background-position:var(--background-size) 0}}@keyframes text-line-shadow{0%{background-position:0 0}to{background-position:100% -100%}}@keyframes text-shiny{0%,90%,to{background-position:calc(-100% - var(--shine-width)) 0}30%,60%{background-position:calc(100% + var(--shine-width)) 0}}.cc-face{--surface-background-active:light-dark(oklch(from var(--surface-background-default) calc(l + .02) c h),oklch(from var(--surface-background-default) calc(l + .03) c h));--surface-background-below:light-dark(oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) - 1), 0) * .01 + min(calc(var(--surface-level) - 1), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + calc(var(--surface-level) - 1) * .016, l + .096) calc(c * clamp(0, l + calc(var(--surface-level) - 1) * .016, l + .096) / max(l, .01)) h));--surface-background-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(var(--surface-level), 0) * .01 + min(var(--surface-level), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + var(--surface-level) * .016, l + .096) calc(c * clamp(0, l + var(--surface-level) * .016, l + .096) / max(l, .01)) h));--surface-background-hover:light-dark(oklch(from var(--surface-background-default) calc(l + .01) c h),oklch(from var(--surface-background-default) calc(l + .02) c h));--surface-background-pressed:light-dark(oklch(from var(--surface-background-default) calc(l - .02) c h),oklch(from var(--surface-background-default) calc(l - .03) c h));--surface-border-active:light-dark(oklch(from var(--surface-background-active) max(0, l - .046) c h),oklch(from var(--surface-background-active) min(1, l + .024) c h));--surface-border-default:light-dark(oklch(from var(--surface-background-default) max(0, l - .046) c h),oklch(from var(--surface-background-default) min(1, l + .024) c h));--surface-border-hover:light-dark(oklch(from var(--surface-background-hover) max(0, l - .046) c h),oklch(from var(--surface-background-hover) min(1, l + .024) c h));--surface-border-pressed:light-dark(oklch(from var(--surface-background-pressed) max(0, l - .046) c h),oklch(from var(--surface-background-pressed) min(1, l + .024) c h));--surface-primary-active:light-dark(oklch(from var(--surface-primary-default) calc(l + .02) c h),oklch(from var(--surface-primary-default) calc(l + .03) c h));--surface-primary-default:light-dark(oklch(from var(--color-surface) clamp(0, l + max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016, 1) calc(c * (1 - clamp(0, l + max(calc(var(--surface-level) + -3.2), 0) * .01 + min(calc(var(--surface-level) + -3.2), 0) * .016, 1)) / max(1 - l, .01)) h),oklch(from var(--color-surface) clamp(0, l + calc(var(--surface-level) + 1.6) * .016, l + .096) calc(c * clamp(0, l + calc(var(--surface-level) + 1.6) * .016, l + .096) / max(l, .01)) h));--surface-primary-hover:light-dark(oklch(from var(--surface-primary-default) calc(l + .01) c h),oklch(from var(--surface-primary-default) calc(l + .02) c h));--surface-primary-pressed:light-dark(oklch(from var(--surface-primary-default) calc(l - .02) c h),oklch(from var(--surface-primary-default) calc(l - .03) c h));--surface-shadow-active:var(--surface-shadow-hover);--surface-shadow-cast:light-dark(oklch(from var(--surface-background-below) calc(l * .2) calc(c * .2) h / .08),oklch(from var(--surface-background-below) calc(l * .2) calc(c * .2) h / .16));--surface-shadow-color:light-dark(oklch(from var(--surface-background-default) calc(l * .2) calc(c * .2) h / .08),oklch(from var(--surface-background-default) calc(l * .2) calc(c * .2) h / .16));--surface-shadow-default:0 20px 25px -5px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 8px 10px -6px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-hover:0 25px 50px -12px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 2.5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 10px 15px -3px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 4px 6px -4px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1))}@container style(--surface-level:-3){.cc-face{--surface-level:-2;--surface-shadow-default:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-hover:0 1px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:-2){.cc-face{--surface-level:-1;--surface-shadow-default:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-hover:0 1px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:-1){.cc-face{--surface-level:0;--surface-shadow-default:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-hover:0 1px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:0){.cc-face{--surface-level:1;--surface-shadow-default:0 1px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-hover:0 1px 2px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:1){.cc-face{--surface-level:2;--surface-shadow-default:0 1px 2px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-hover:0 1px 3px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 1px 2px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-pressed:0 1px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:2){.cc-face{--surface-level:3;--surface-shadow-default:0 1px 3px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 1px 2px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-hover:0 4px 6px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 2px 4px -2px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-pressed:0 1px 2px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * .5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0))}}@container style(--surface-level:3){.cc-face{--surface-level:4;--surface-shadow-default:0 4px 6px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 2px 4px -2px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-hover:0 10px 15px -3px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 4px 6px -4px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-pressed:0 1px 3px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 1px 2px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1))}}@container style(--surface-level:4){.cc-face{--surface-level:5;--surface-shadow-default:0 10px 15px -3px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 4px 6px -4px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-hover:0 20px 25px -5px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 8px 10px -6px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-pressed:0 4px 6px -1px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 2px 4px -2px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1))}}@container style(--surface-level:5){.cc-face{--surface-level:6;--surface-shadow-default:0 20px 25px -5px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 8px 10px -6px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1));--surface-shadow-hover:0 25px 50px -12px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 2.5)), 0 0px 0px 0px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 0));--surface-shadow-pressed:0 10px 15px -3px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1)), 0 4px 6px -4px oklch(from var(--surface-shadow-cast) l c h / calc(alpha * 1))}}.cc{--color:var(--color-text-500);--gap-horizontal:0px;--gap-vertical:var(--size-500);--spring:linear(0, .035, .118, .216, .319, .424, .515, .6, .669, .728, .781, .822, .856, .885, .908, .927, .942, .954, .964, .971, .977, .982, .986, .989, .991, .993, .995, .996, .997, .997, 1);--width:min(400px, 100%)}.cc-actions{--gap-horizontal:0px;--gap-vertical:var(--size-200)}.cc-brand--large{--height:32px;--width:48px}.cc-brand--small{--height:24px;--width:36px}.cc-brand-mark{--icon-swap-duration:.3s;--icon-swap-timing-function:var(--spring)}.cc-brand-icon.icon{--color:currentColor;--height:100%;--width:100%}.cc-caption{--opacity:.6}.cc-card{--transition-duration:.764s;--transition-timing-function:linear(0, .031, .108, .205, .315, .421, .524, .614, .695, .762, .82, .865, .903, .931, .954, .97, .982, .991, .997, 1.001, 1.004, 1.005, 1.006, 1.006, 1.005, 1.005, 1.004, 1.004, 1.003, 1.002, 1)}.cc-chip.icon{--color:currentColor;--height:32px;--width:44px}.cc-control-brand{--color:var(--color-text-300);--inset-horizontal:12px}.cc-control-brand--known{--color:var(--color-text-500)}.cc-digit{--animation-duration:.15s;--animation-timing-function:ease-out}.cc-digit--gap{--gap-horizontal:.6em}.cc-digit--placeholder{--opacity:.45}.cc-disclaimer{--opacity:.6;--padding-bottom:var(--size-500);--padding-horizontal:24px}.cc-error{--color:var(--color-red-400);--offset:2px;--transition-duration:.2s;--transition-timing-function:cubic-bezier(.23, 1, .32, 1)}.cc-expires{--gap-horizontal:0px;--gap-vertical:calc(var(--size-100) / 2)}.cc-face{--background:var(--color-black-300);--border-radius:var(--border-radius-700);--color:var(--color-white-300);--transition-duration:.2s;--transition-timing-function:ease-out}.cc-face--front{--padding-horizontal:24px;--padding-vertical:24px}.cc-face-bottom{--gap-horizontal:24px;--gap-vertical:0px}.cc-field--number.input{--padding-end:64px}.cc-field.input{--background-default:transparent;--border-color-active:var(--surface-border-default);--border-color-default:var(--surface-border-default);--border-color-hover:var(--surface-border-default);--border-color-pressed:var(--surface-border-default);--border-radius:var(--border-radius-600);--border-width:var(--border-width-400);--color-default:currentColor;--focus-color:var(--color-primary-500);--focus-offset:-1px;--focus-width:var(--border-width-500);--font-size:var(--font-size-400);--height:44px;--padding-horizontal:14px;--placeholder-color:oklch(from var(--color-text-300) l c h / .7);--transition-duration:.15s;--transition-timing-function:ease-out}.cc-field.input[aria-invalid=true]{--border-color-active:var(--color-red-400);--border-color-default:var(--color-red-400);--border-color-hover:var(--color-red-400);--border-color-pressed:var(--color-red-400);--focus-color:var(--color-red-400)}.cc-fields{--gap-horizontal:0px;--gap-vertical:var(--size-400)}.cc-holder{--gap-horizontal:0px;--gap-vertical:calc(var(--size-100) / 2)}.cc-label{--font-size:var(--font-size-300);--font-weight:var(--font-weight-500)}.cc-note{--color:var(--color-text-300);--gap-horizontal:calc(var(--size-300) / 2);--gap-vertical:0px}.cc-note-icon.icon{--color:currentColor;--size:14px}.cc-number{--font-size:clamp(16px, 5.2vw, 21px)}.cc-preview{--perspective:1200px}.cc-ring{--border-color:oklch(from var(--color) l c h / .35);--border-radius:var(--border-radius-400);--border-width:1px;--fade-duration:.12s;--fade-timing-function:ease-out;--transition-duration:.3s;--transition-timing-function:var(--spring)}.cc-ring.--active{--fade-duration:.2s}@media (prefers-reduced-motion:reduce){.cc-ring{--transition-duration:0s}}.cc-row{--gap-horizontal:12px;--gap-vertical:12px}.cc-shell{--gap-horizontal:0px;--gap-vertical:var(--size-100)}.cc-shell-header{--gap-horizontal:var(--size-100);--gap-vertical:0px}.cc-signature{--gap-horizontal:12px;--gap-vertical:0px;--padding-horizontal:24px;--padding-top:var(--size-500)}.cc-signature-value{--background:var(--color-white-300);--color:var(--color-black-300);--height:40px;--padding-horizontal:12px}.cc-stripe{--background:oklch(from var(--color) l c h / .15);--height:44px;--margin-top:24px}.cc-submit.button{--background-default:var(--color-primary-500);--border-radius:var(--border-radius-600);--color-default:var(--color-surface);--focus-color:var(--color-primary-500);--focus-offset:calc(var(--size-100) / 4);--focus-width:var(--border-width-500);--font-size:var(--font-size-400);--font-weight:var(--font-weight-500);--height:44px;--padding-horizontal:var(--size-500);--padding-vertical:0px}.cc{color:var(--color);gap:var(--gap-vertical) var(--gap-horizontal);width:var(--width);flex-direction:column;display:flex}.cc-actions{gap:var(--gap-vertical) var(--gap-horizontal);flex-direction:column;display:flex}.cc-brand{grid-template:100%/100%;display:grid}.cc-brand--large,.cc-brand--small{height:var(--height);width:var(--width)}.cc-brand-mark{grid-area:1/1;width:100%;height:100%}.cc-caption{font-size:var(--font-size-300);opacity:var(--opacity);text-transform:uppercase}.cc-card{height:100%;transform-style:preserve-3d;transition:transform var(--transition-duration) var(--transition-timing-function);width:100%;position:relative}.cc-card--flipped{transform:rotateY(180deg)}@media (prefers-reduced-motion:reduce){.cc-card--flipped{transform:none}.cc-card--flipped .cc-face--back{opacity:1}.cc-card--flipped .cc-face--front{opacity:0}}.cc-control{position:relative}.cc-control-brand{color:var(--color);pointer-events:none;right:var(--inset-horizontal);transition:color var(--transition-duration) var(--transition-timing-function);display:flex;position:absolute;top:50%;translate:0 -50%}.cc-digit{display:inline-block}.cc-digit--gap{margin-inline-start:var(--gap-horizontal)}.cc-digit--placeholder{opacity:var(--opacity)}.cc-digit--roll-1{animation:cc-digit--roll-1 var(--animation-duration) var(--animation-timing-function)}@media (prefers-reduced-motion:reduce){.cc-digit--roll-1{animation-name:cc-digit-fade}}@keyframes cc-digit--roll-1{0%{filter:blur(var(--blur-300));opacity:0;translate:0 -4px}}.cc-digit--roll-2{animation:cc-digit--roll-2 var(--animation-duration) var(--animation-timing-function)}@media (prefers-reduced-motion:reduce){.cc-digit--roll-2{animation-name:cc-digit-fade}}@keyframes cc-digit--roll-2{0%{filter:blur(var(--blur-300));opacity:0;translate:0 -4px}}@keyframes cc-digit-fade{0%{opacity:0}}.cc-disclaimer{font-size:var(--font-size-300);opacity:var(--opacity);padding:0 var(--padding-horizontal) var(--padding-bottom);margin:auto 0 0}.cc-error{color:var(--color);font-size:var(--font-size-300);transition:filter var(--transition-duration) var(--transition-timing-function), opacity var(--transition-duration) var(--transition-timing-function), translate var(--transition-duration) var(--transition-timing-function)}@starting-style{.cc-error{filter:blur(var(--blur-400));opacity:0;translate:0 var(--offset)}}@media (prefers-reduced-motion:reduce){@starting-style{.cc-error{filter:none;translate:0}}}.cc-expires{gap:var(--gap-vertical) var(--gap-horizontal);flex-direction:column;flex-shrink:0;display:flex}.cc-expires-value{font-family:var(--font-family);font-size:var(--font-size-400);font-weight:var(--font-weight-500)}.cc-face{backface-visibility:hidden;background:var(--background);border-radius:var(--border-radius);box-shadow:var(--surface-shadow-default);color:var(--color);transition:opacity var(--transition-duration) var(--transition-timing-function);flex-direction:column;display:flex;overflow:hidden}.cc-face--back{transform:rotateY(180deg)}@media (prefers-reduced-motion:reduce){.cc-face--back{opacity:0;transform:none}}.cc-face--front{padding-block:var(--padding-vertical);padding-inline:var(--padding-horizontal);justify-content:space-between}.cc-face-bottom{align-items:flex-end;gap:var(--gap-vertical) var(--gap-horizontal);justify-content:space-between;display:flex}.cc-face-top{justify-content:space-between;align-items:flex-start;display:flex}.cc-field--cvc,.cc-field--expiry,.cc-field--number{font-family:var(--font-family)}.cc-field--number.input{padding-inline-end:var(--padding-end)}.cc-field.input{font-variant-numeric:tabular-nums;height:var(--height);min-height:0;transition:border-color var(--transition-duration) var(--transition-timing-function);outline:none;padding-block:0}.cc-field.input::placeholder{color:var(--placeholder-color)}.cc-field.input:focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:var(--focus-offset)}.cc-fields{gap:var(--gap-vertical) var(--gap-horizontal);flex-direction:column;display:flex}.cc-holder{gap:var(--gap-vertical) var(--gap-horizontal);flex-direction:column;flex:1;min-width:0;display:flex}.cc-holder-value{font-size:var(--font-size-400);font-weight:var(--font-weight-500);text-transform:uppercase}.cc-label{font-size:var(--font-size);font-weight:var(--font-weight);-webkit-user-select:none;user-select:none}.cc-note{color:var(--color);font-size:var(--font-size-300);align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);justify-content:center;margin:0;display:flex}.cc-number{font-family:var(--font-family);font-size:var(--font-size);white-space:nowrap;align-self:flex-start}.cc-preview{aspect-ratio:1.586;perspective:var(--perspective);-webkit-user-select:none;user-select:none;width:100%;position:relative}.cc-ring{border:var(--border-width) solid var(--border-color);border-radius:var(--border-radius);opacity:0;pointer-events:none;transition:height var(--transition-duration) var(--transition-timing-function), left var(--transition-duration) var(--transition-timing-function), opacity var(--fade-duration) var(--fade-timing-function), top var(--transition-duration) var(--transition-timing-function), width var(--transition-duration) var(--transition-timing-function);position:absolute;top:0;left:0}.cc-ring.--active{opacity:1}.cc-row{gap:var(--gap-vertical) var(--gap-horizontal);grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.cc-shell{gap:var(--gap-vertical) var(--gap-horizontal);flex-direction:column;min-width:0;display:flex}.cc-shell-header{align-items:baseline;gap:var(--gap-vertical) var(--gap-horizontal);justify-content:space-between;display:flex}.cc-signature{align-items:center;gap:var(--gap-vertical) var(--gap-horizontal);padding:var(--padding-top) var(--padding-horizontal) 0;display:flex}.cc-signature-value{background:var(--background);border-radius:var(--border-radius-300);color:var(--color);font-family:var(--font-family);font-size:var(--font-size-400);height:var(--height);padding-inline:var(--padding-horizontal);flex:1;justify-content:flex-end;align-items:center;font-style:italic;display:flex}.cc-stripe{background:var(--background);height:var(--height);margin-top:var(--margin-top)}.cc-submit.button{height:var(--height);border:0;outline:none}.cc-submit.button:focus-visible{outline:var(--focus-width) solid var(--focus-color);outline-offset:var(--focus-offset)}}
|
|
2
2
|
/*$vite$:1*/
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { ReactiveArray } from '@esportsplus/reactivity';
|
|
2
|
+
import * as template_u1 from '@esportsplus/template';
|
|
3
|
+
import { type Attributes } from '@esportsplus/template';
|
|
4
|
+
import { type Range } from './model.js';
|
|
5
|
+
import spy from './spy.js';
|
|
6
|
+
import './scss/index.scss';
|
|
7
|
+
type ChatMinimapAttributes = Attributes & {
|
|
8
|
+
[CHAT_MINIMAP_CARD]?: Attributes;
|
|
9
|
+
[CHAT_MINIMAP_DESCRIPTION]?: Attributes;
|
|
10
|
+
[CHAT_MINIMAP_ITEM]?: Attributes;
|
|
11
|
+
[CHAT_MINIMAP_ITEMS]?: Attributes;
|
|
12
|
+
[CHAT_MINIMAP_LABEL]?: Attributes;
|
|
13
|
+
[CHAT_MINIMAP_LINE]?: Attributes;
|
|
14
|
+
[CHAT_MINIMAP_NAV]?: Attributes;
|
|
15
|
+
[CHAT_MINIMAP_PREVIEW]?: Attributes;
|
|
16
|
+
[CHAT_MINIMAP_TITLE]?: Attributes;
|
|
17
|
+
label?: string;
|
|
18
|
+
next?: string;
|
|
19
|
+
onnavigate?: (index: number) => void;
|
|
20
|
+
previous?: string;
|
|
21
|
+
side?: Side;
|
|
22
|
+
state?: Range;
|
|
23
|
+
turns: ReactiveArray<Turn> | Turn[];
|
|
24
|
+
};
|
|
25
|
+
type Side = 'left' | 'right';
|
|
26
|
+
type Turn = {
|
|
27
|
+
description?: string;
|
|
28
|
+
title: string;
|
|
29
|
+
};
|
|
30
|
+
declare const CHAT_MINIMAP_CARD: unique symbol;
|
|
31
|
+
declare const CHAT_MINIMAP_DESCRIPTION: unique symbol;
|
|
32
|
+
declare const CHAT_MINIMAP_ITEM: unique symbol;
|
|
33
|
+
declare const CHAT_MINIMAP_ITEMS: unique symbol;
|
|
34
|
+
declare const CHAT_MINIMAP_LABEL: unique symbol;
|
|
35
|
+
declare const CHAT_MINIMAP_LINE: unique symbol;
|
|
36
|
+
declare const CHAT_MINIMAP_NAV: unique symbol;
|
|
37
|
+
declare const CHAT_MINIMAP_PREVIEW: unique symbol;
|
|
38
|
+
declare const CHAT_MINIMAP_TITLE: unique symbol;
|
|
39
|
+
declare const _default: template_u1.Factory<ChatMinimapAttributes, template_u1.Renderable<any>, template_u1.Renderable<any>, {
|
|
40
|
+
readonly card: typeof CHAT_MINIMAP_CARD;
|
|
41
|
+
readonly description: typeof CHAT_MINIMAP_DESCRIPTION;
|
|
42
|
+
readonly item: typeof CHAT_MINIMAP_ITEM;
|
|
43
|
+
readonly items: typeof CHAT_MINIMAP_ITEMS;
|
|
44
|
+
readonly label: typeof CHAT_MINIMAP_LABEL;
|
|
45
|
+
readonly line: typeof CHAT_MINIMAP_LINE;
|
|
46
|
+
readonly nav: typeof CHAT_MINIMAP_NAV;
|
|
47
|
+
readonly preview: typeof CHAT_MINIMAP_PREVIEW;
|
|
48
|
+
readonly title: typeof CHAT_MINIMAP_TITLE;
|
|
49
|
+
readonly spy: typeof spy;
|
|
50
|
+
}>;
|
|
51
|
+
export default _default;
|
|
52
|
+
export type { ChatMinimapAttributes, Range as ChatMinimapRange, Side as ChatMinimapSide, Turn as ChatMinimapTurn };
|