@vonage/vivid 2.36.3 → 3.0.0-next.100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +144 -0
- package/accordion/index.js +52 -0
- package/accordion-item/index.js +118 -0
- package/action-group/index.js +41 -0
- package/avatar/index.js +61 -0
- package/badge/index.js +51 -0
- package/banner/index.js +128 -0
- package/breadcrumb/index.js +103 -0
- package/breadcrumb-item/index.js +59 -0
- package/button/index.js +24 -0
- package/calendar/index.js +1526 -0
- package/calendar-event/index.js +112 -0
- package/card/index.js +114 -0
- package/checkbox/index.js +179 -0
- package/dialog/index.js +230 -0
- package/divider/index.js +4 -0
- package/elevation/index.js +3 -0
- package/fab/index.js +100 -0
- package/focus/index.js +18 -0
- package/header/index.js +61 -0
- package/icon/index.js +36 -0
- package/index.d.ts +2 -0
- package/index.js +76 -64
- package/layout/index.js +43 -0
- package/lib/accordion/accordion.d.ts +9 -0
- package/lib/accordion/accordion.template.d.ts +4 -0
- package/lib/accordion/index.d.ts +2 -0
- package/lib/accordion-item/accordion-item.d.ts +13 -0
- package/lib/accordion-item/accordion-item.template.d.ts +4 -0
- package/lib/accordion-item/index.d.ts +4 -0
- package/lib/action-group/action-group.d.ts +10 -0
- package/lib/action-group/action-group.template.d.ts +4 -0
- package/lib/action-group/index.d.ts +2 -0
- package/lib/avatar/avatar.d.ts +15 -0
- package/lib/avatar/avatar.template.d.ts +4 -0
- package/lib/avatar/index.d.ts +3 -0
- package/lib/badge/badge.d.ts +15 -0
- package/lib/badge/badge.template.d.ts +4 -0
- package/lib/badge/index.d.ts +3 -0
- package/lib/banner/banner.d.ts +20 -0
- package/lib/banner/banner.template.d.ts +4 -0
- package/lib/banner/index.d.ts +3 -0
- package/lib/breadcrumb/breadcrumb.d.ts +3 -0
- package/lib/breadcrumb/breadcrumb.template.d.ts +4 -0
- package/lib/breadcrumb/index.d.ts +2 -0
- package/lib/breadcrumb-item/breadcrumb-item.d.ts +5 -0
- package/lib/breadcrumb-item/breadcrumb-item.template.d.ts +4 -0
- package/lib/breadcrumb-item/index.d.ts +4 -0
- package/lib/button/button.d.ts +18 -0
- package/lib/button/button.template.d.ts +4 -0
- package/lib/button/index.d.ts +4 -0
- package/lib/calendar/calendar.d.ts +13 -0
- package/lib/calendar/calendar.template.d.ts +4 -0
- package/lib/calendar/helpers/calendar.date-functions.d.ts +2 -0
- package/lib/calendar/helpers/calendar.event-context.d.ts +6 -0
- package/lib/calendar/helpers/calendar.keyboard-interactions.d.ts +9 -0
- package/lib/calendar/index.d.ts +2 -0
- package/lib/calendar-event/calendar-event.d.ts +14 -0
- package/lib/calendar-event/calendar-event.template.d.ts +4 -0
- package/lib/calendar-event/index.d.ts +2 -0
- package/lib/card/card.d.ts +10 -0
- package/lib/card/card.template.d.ts +4 -0
- package/lib/card/index.d.ts +4 -0
- package/lib/checkbox/checkbox.d.ts +5 -0
- package/lib/checkbox/checkbox.template.d.ts +4 -0
- package/lib/checkbox/index.d.ts +4 -0
- package/lib/components.d.ts +38 -0
- package/lib/dialog/dialog.d.ts +20 -0
- package/lib/dialog/dialog.template.d.ts +4 -0
- package/lib/dialog/index.d.ts +5 -0
- package/lib/divider/divider.d.ts +3 -0
- package/lib/divider/divider.template.d.ts +4 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/elevation/elevation.d.ts +5 -0
- package/lib/elevation/elevation.template.d.ts +4 -0
- package/lib/elevation/index.d.ts +2 -0
- package/lib/enums.d.ts +59 -0
- package/lib/fab/fab.d.ts +13 -0
- package/lib/fab/fab.template.d.ts +4 -0
- package/lib/fab/index.d.ts +4 -0
- package/lib/focus/focus.d.ts +3 -0
- package/lib/focus/focus.template.d.ts +4 -0
- package/lib/focus/index.d.ts +2 -0
- package/lib/header/header.d.ts +5 -0
- package/lib/header/header.template.d.ts +4 -0
- package/lib/header/index.d.ts +3 -0
- package/lib/icon/icon.d.ts +12 -0
- package/lib/icon/icon.placeholder.d.ts +1 -0
- package/lib/icon/icon.template.d.ts +4 -0
- package/lib/icon/index.d.ts +2 -0
- package/lib/layout/index.d.ts +2 -0
- package/lib/layout/layout.d.ts +16 -0
- package/lib/layout/layout.template.d.ts +4 -0
- package/lib/listbox/index.d.ts +4 -0
- package/lib/listbox/listbox.d.ts +9 -0
- package/lib/listbox/listbox.template.d.ts +4 -0
- package/lib/listbox-option/index.d.ts +4 -0
- package/lib/listbox-option/listbox-option.d.ts +9 -0
- package/lib/listbox-option/listbox-option.template.d.ts +4 -0
- package/lib/menu/index.d.ts +12 -0
- package/lib/menu/menu.d.ts +10 -0
- package/lib/menu/menu.template.d.ts +3 -0
- package/lib/menu-item/index.d.ts +3 -0
- package/lib/menu-item/menu-item.d.ts +7 -0
- package/lib/menu-item/menu-item.template.d.ts +5 -0
- package/lib/nav/index.d.ts +2 -0
- package/lib/nav/nav.d.ts +3 -0
- package/lib/nav/nav.template.d.ts +4 -0
- package/lib/nav-disclosure/index.d.ts +4 -0
- package/lib/nav-disclosure/nav-disclosure.d.ts +10 -0
- package/lib/nav-disclosure/nav-disclosure.template.d.ts +4 -0
- package/lib/nav-item/index.d.ts +4 -0
- package/lib/nav-item/nav-item.d.ts +6 -0
- package/lib/nav-item/nav-item.template.d.ts +4 -0
- package/lib/note/index.d.ts +2 -0
- package/lib/note/note.d.ts +10 -0
- package/lib/note/note.template.d.ts +5 -0
- package/lib/number-field/index.d.ts +4 -0
- package/lib/number-field/number-field.d.ts +14 -0
- package/lib/number-field/number-field.template.d.ts +4 -0
- package/lib/popup/index.d.ts +4 -0
- package/lib/popup/popup.d.ts +18 -0
- package/lib/popup/popup.template.d.ts +4 -0
- package/lib/progress/index.d.ts +2 -0
- package/lib/progress/progress.d.ts +9 -0
- package/lib/progress/progress.template.d.ts +5 -0
- package/lib/progress-ring/index.d.ts +2 -0
- package/lib/progress-ring/progress-ring.d.ts +7 -0
- package/lib/progress-ring/progress-ring.template.d.ts +4 -0
- package/lib/radio/index.d.ts +3 -0
- package/lib/radio/radio.d.ts +4 -0
- package/lib/radio/radio.template.d.ts +4 -0
- package/lib/radio-group/index.d.ts +10 -0
- package/lib/radio-group/radio-group.d.ts +4 -0
- package/lib/radio-group/radio-group.template.d.ts +4 -0
- package/lib/side-drawer/index.d.ts +2 -0
- package/lib/side-drawer/side-drawer.d.ts +9 -0
- package/lib/side-drawer/side-drawer.template.d.ts +4 -0
- package/lib/slider/index.d.ts +3 -0
- package/lib/slider/slider.d.ts +4 -0
- package/lib/slider/slider.template.d.ts +4 -0
- package/lib/switch/index.d.ts +4 -0
- package/lib/switch/switch.d.ts +7 -0
- package/lib/switch/switch.template.d.ts +4 -0
- package/lib/text-anchor/index.d.ts +2 -0
- package/lib/text-anchor/text-anchor.d.ts +7 -0
- package/lib/text-anchor/text-anchor.template.d.ts +4 -0
- package/lib/text-area/index.d.ts +4 -0
- package/lib/text-area/text-area.d.ts +9 -0
- package/lib/text-area/text-area.template.d.ts +4 -0
- package/lib/text-field/index.d.ts +4 -0
- package/lib/text-field/text-field.d.ts +14 -0
- package/lib/text-field/text-field.template.d.ts +5 -0
- package/lib/tooltip/index.d.ts +3 -0
- package/lib/tooltip/tooltip.d.ts +8 -0
- package/lib/tooltip/tooltip.template.d.ts +4 -0
- package/listbox/index.js +1090 -0
- package/listbox-option/index.js +22 -0
- package/menu/index.js +371 -0
- package/menu-item/index.js +21 -0
- package/nav/index.js +17 -0
- package/nav-disclosure/index.js +82 -0
- package/nav-item/index.js +46 -0
- package/note/index.js +59 -0
- package/number-field/index.js +461 -0
- package/package.json +65 -323
- package/popup/index.js +27 -0
- package/progress/index.js +97 -0
- package/progress-ring/index.js +76 -0
- package/radio/index.js +47 -0
- package/radio-group/index.js +435 -0
- package/shared/_has.js +58 -0
- package/shared/affix.js +24 -0
- package/shared/anchor.js +86 -0
- package/shared/apply-mixins.js +23 -0
- package/shared/aria-global.js +72 -0
- package/shared/aria.js +9 -0
- package/shared/base-progress.js +70 -0
- package/shared/breadcrumb-item.js +25 -0
- package/shared/button.js +200 -0
- package/shared/calendar-event.js +19 -0
- package/shared/class-names.js +15 -0
- package/shared/design-system/index.d.ts +3 -0
- package/shared/dialog-polyfill.esm.js +858 -0
- package/shared/direction.js +20 -0
- package/shared/dom.js +8 -0
- package/shared/enums.js +70 -0
- package/shared/es.object.assign.js +69 -0
- package/shared/es.regexp.to-string.js +59 -0
- package/shared/export.js +1017 -0
- package/shared/focus.js +5 -0
- package/shared/focus2.js +11 -0
- package/shared/form-associated.js +466 -0
- package/shared/form-elements.js +331 -0
- package/shared/icon.js +1361 -0
- package/shared/index.js +5027 -0
- package/shared/index2.js +107 -0
- package/shared/index3.js +31 -0
- package/shared/index4.js +77 -0
- package/shared/index5.js +261 -0
- package/shared/index6.js +1525 -0
- package/shared/index7.js +349 -0
- package/shared/iterators.js +61 -0
- package/shared/key-codes.js +97 -0
- package/shared/numbers.js +25 -0
- package/shared/object-keys.js +13 -0
- package/shared/patterns/affix.d.ts +9 -0
- package/shared/patterns/focus.d.ts +3 -0
- package/shared/patterns/form-elements/form-elements.d.ts +28 -0
- package/shared/patterns/form-elements/index.d.ts +1 -0
- package/shared/patterns/index.d.ts +3 -0
- package/shared/radio.js +127 -0
- package/shared/ref.js +41 -0
- package/shared/slotted.js +119 -0
- package/shared/start-end.js +50 -0
- package/shared/string-trim.js +40 -0
- package/shared/text-anchor.js +10 -0
- package/shared/text-anchor.template.js +55 -0
- package/shared/to-string.js +51 -0
- package/shared/web.dom-collections.iterator.js +472 -0
- package/shared/when.js +15 -0
- package/side-drawer/index.js +89 -0
- package/slider/index.js +596 -0
- package/styles/core/all.css +75 -0
- package/styles/core/theme.css +11 -0
- package/styles/core/typography.css +69 -0
- package/styles/fonts/SpeziaCompleteVariableItalicWeb.woff2 +0 -0
- package/styles/fonts/SpeziaCompleteVariableUprightWeb.woff2 +0 -0
- package/styles/fonts/SpeziaMonoCompleteVariableWeb.woff2 +0 -0
- package/styles/fonts/spezia.css +20 -0
- package/styles/tokens/theme-dark.css +230 -0
- package/styles/tokens/theme-light.css +230 -0
- package/switch/index.js +153 -0
- package/text-anchor/index.js +28 -0
- package/text-area/index.js +289 -0
- package/text-field/index.js +130 -0
- package/tooltip/index.js +65 -0
package/package.json
CHANGED
|
@@ -1,328 +1,70 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonage/vivid",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
3
|
+
"version": "3.0.0-next.100",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"module": "./index.js",
|
|
6
|
+
"main": "./index.js",
|
|
7
|
+
"homepage": "https://vivid.deno.dev",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "https://github.com/vonage/vivid-3",
|
|
11
|
+
"directory": "libs/components"
|
|
8
12
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
"bugs": {
|
|
14
|
+
"url": "https://github.com/Vonage/vivid-3/issues"
|
|
15
|
+
},
|
|
16
|
+
"license": "Apache-2.0",
|
|
17
|
+
"exports": {
|
|
18
|
+
"./accordion": "./accordion",
|
|
19
|
+
"./accordion-item": "./accordion-item",
|
|
20
|
+
"./action-group": "./action-group",
|
|
21
|
+
"./avatar": "./avatar",
|
|
22
|
+
"./badge": "./badge",
|
|
23
|
+
"./banner": "./banner",
|
|
24
|
+
"./breadcrumb": "./breadcrumb",
|
|
25
|
+
"./breadcrumb-item": "./breadcrumb-item",
|
|
26
|
+
"./button": "./button",
|
|
27
|
+
"./calendar": "./calendar",
|
|
28
|
+
"./calendar-event": "./calendar-event",
|
|
29
|
+
"./card": "./card",
|
|
30
|
+
"./checkbox": "./checkbox",
|
|
31
|
+
"./elevation": "./elevation",
|
|
32
|
+
"./dialog": "./dialog",
|
|
33
|
+
"./divider": "./divider",
|
|
34
|
+
"./fab": "./fab",
|
|
35
|
+
"./icon": "./icon",
|
|
36
|
+
"./layout": "./layout",
|
|
37
|
+
"./listbox": "./listbox",
|
|
38
|
+
"./menu": "./menu",
|
|
39
|
+
"./menu-item": "./menu-item",
|
|
40
|
+
"./nav": "./nav",
|
|
41
|
+
"./nav-disclosure": "./nav-disclosure",
|
|
42
|
+
"./nav-item": "./nav-item",
|
|
43
|
+
"./number-field": "./number-field",
|
|
44
|
+
"./note": "./note",
|
|
45
|
+
"./option": "./listbox-option",
|
|
46
|
+
"./popup": "./popup",
|
|
47
|
+
"./progress": "./progress",
|
|
48
|
+
"./progress-ring": "./progress-ring",
|
|
49
|
+
"./radio": "./radio",
|
|
50
|
+
"./radio-group": "./radio-group",
|
|
51
|
+
"./side-drawer": "./side-drawer",
|
|
52
|
+
"./slider": "./slider",
|
|
53
|
+
"./switch": "./switch",
|
|
54
|
+
"./text-field": "./text-field",
|
|
55
|
+
"./text-area": "./text-area",
|
|
56
|
+
"./tooltip": "./tooltip"
|
|
57
|
+
},
|
|
58
|
+
"types": "./index.d.ts",
|
|
16
59
|
"dependencies": {
|
|
17
|
-
"
|
|
18
|
-
"@
|
|
19
|
-
"@
|
|
20
|
-
"@
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"@
|
|
24
|
-
"
|
|
25
|
-
"@vonage/vwc-checkbox": "2.36.3",
|
|
26
|
-
"@vonage/vwc-circular-progress": "2.36.3",
|
|
27
|
-
"@vonage/vwc-datepicker": "2.36.3",
|
|
28
|
-
"@vonage/vwc-dialog": "2.36.3",
|
|
29
|
-
"@vonage/vwc-fab": "2.36.3",
|
|
30
|
-
"@vonage/vwc-file-picker": "2.36.3",
|
|
31
|
-
"@vonage/vwc-formfield": "2.36.3",
|
|
32
|
-
"@vonage/vwc-helper-message": "2.36.3",
|
|
33
|
-
"@vonage/vwc-icon-button": "2.36.3",
|
|
34
|
-
"@vonage/vwc-icon": "2.36.3",
|
|
35
|
-
"@vonage/vwc-keypad": "2.36.3",
|
|
36
|
-
"@vonage/vwc-layout": "2.36.3",
|
|
37
|
-
"@vonage/vwc-linear-progress": "2.36.3",
|
|
38
|
-
"@vonage/vwc-menu": "2.36.3",
|
|
39
|
-
"@vonage/vwc-note": "2.36.3",
|
|
40
|
-
"@vonage/vwc-pagination": "2.36.3",
|
|
41
|
-
"@vonage/vwc-radio": "2.36.3",
|
|
42
|
-
"@vonage/vwc-slider": "2.36.3",
|
|
43
|
-
"@vonage/vwc-snackbar": "2.36.3",
|
|
44
|
-
"@vonage/vwc-dropdown": "2.36.3",
|
|
45
|
-
"@vonage/vwc-surface": "2.36.3",
|
|
46
|
-
"@vonage/vwc-switch": "2.36.3",
|
|
47
|
-
"@vonage/vwc-elevation": "2.36.3",
|
|
48
|
-
"@vonage/vwc-textarea": "2.36.3",
|
|
49
|
-
"@vonage/vwc-theme-switch": "2.36.3",
|
|
50
|
-
"@vonage/vwc-top-app-bar": "2.36.3",
|
|
51
|
-
"@vonage/vwc-accordion": "2.36.3",
|
|
52
|
-
"@vonage/vwc-action-group": "2.36.3",
|
|
53
|
-
"@vonage/vwc-badge": "2.36.3",
|
|
54
|
-
"@vonage/vwc-drawer": "2.36.3",
|
|
55
|
-
"@vonage/vwc-popup": "2.36.3",
|
|
56
|
-
"@vonage/vwc-select": "2.36.3",
|
|
57
|
-
"@vonage/vwc-side-drawer": "2.36.3",
|
|
58
|
-
"@vonage/vwc-tags": "2.36.3",
|
|
59
|
-
"@vonage/vwc-empty-state": "2.36.3",
|
|
60
|
-
"@vonage/vwc-text": "2.36.3",
|
|
61
|
-
"@vonage/vwc-tooltip": "2.36.3",
|
|
62
|
-
"@vonage/vwc-banner": "2.36.3",
|
|
63
|
-
"@vonage/vwc-button": "2.36.3",
|
|
64
|
-
"@vonage/vwc-expansion-panel": "2.36.3",
|
|
65
|
-
"@vonage/vwc-media-controller": "2.36.3",
|
|
66
|
-
"@vonage/vwc-breadcrumb-item": "2.36.3",
|
|
67
|
-
"@vonage/vwc-carousel": "2.36.3",
|
|
68
|
-
"@vonage/vwc-tab-bar": "2.36.3",
|
|
69
|
-
"@vonage/vwc-data-grid": "2.36.3",
|
|
70
|
-
"@vonage/vwc-textfield": "2.36.3",
|
|
71
|
-
"@vonage/vwc-calendar": "2.36.3",
|
|
72
|
-
"@vonage/vwc-list": "2.36.3",
|
|
73
|
-
"@vonage/vvd-core": "2.36.3",
|
|
74
|
-
"@vonage/vvd-context": "2.36.3"
|
|
60
|
+
"rollup-plugin-postcss": "4.0.2",
|
|
61
|
+
"@microsoft/fast-element": "1.11.0",
|
|
62
|
+
"@microsoft/fast-foundation": "2.47.0",
|
|
63
|
+
"@microsoft/fast-web-utilities": "5.4.1",
|
|
64
|
+
"ramda": "0.27.2",
|
|
65
|
+
"dialog-polyfill": "0.5.6",
|
|
66
|
+
"@floating-ui/dom": "0.5.4",
|
|
67
|
+
"markdown-it": "12.3.2"
|
|
75
68
|
},
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
{
|
|
79
|
-
"component_name": "vwc-icon-button-toggle",
|
|
80
|
-
"export_name": "VWCIconButtonToggle"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
"component_name": "vwc-notched-outline",
|
|
84
|
-
"export_name": "VWCNotchedOutline"
|
|
85
|
-
},
|
|
86
|
-
{
|
|
87
|
-
"component_name": "vwc-scheme-select",
|
|
88
|
-
"export_name": "VWCSchemeSelect"
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"component_name": "vwc-top-app-bar-fixed",
|
|
92
|
-
"export_name": "VWCTopAppBarFixed"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
"component_name": "vwc-audio",
|
|
96
|
-
"export_name": "VWCAudio"
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
"component_name": "vwc-button-toggle-group",
|
|
100
|
-
"export_name": "VWCButtonToggleGroup"
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"component_name": "vwc-card",
|
|
104
|
-
"export_name": "VWCCard"
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
"component_name": "vwc-checkbox",
|
|
108
|
-
"export_name": "VWCCheckbox"
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
"component_name": "vwc-circular-progress",
|
|
112
|
-
"export_name": "VWCCircularProgress"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
"component_name": "vwc-datepicker",
|
|
116
|
-
"export_name": "VWCDatepicker"
|
|
117
|
-
},
|
|
118
|
-
{
|
|
119
|
-
"component_name": "vwc-dialog",
|
|
120
|
-
"export_name": "VWCDialog"
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
"component_name": "vwc-fab",
|
|
124
|
-
"export_name": "VWCFab"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
"component_name": "vwc-file-picker",
|
|
128
|
-
"export_name": "VWCFilePicker"
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
"component_name": "vwc-formfield",
|
|
132
|
-
"export_name": "VWCFormfield"
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
"component_name": "vwc-helper-message",
|
|
136
|
-
"export_name": "VWCHelperMessage"
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
"component_name": "vwc-icon-button",
|
|
140
|
-
"export_name": "VWCIconButton"
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
"component_name": "vwc-icon",
|
|
144
|
-
"export_name": "VWCIcon"
|
|
145
|
-
},
|
|
146
|
-
{
|
|
147
|
-
"component_name": "vwc-keypad",
|
|
148
|
-
"export_name": "VWCKeypad"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
"component_name": "vwc-layout",
|
|
152
|
-
"export_name": "VWCLayout"
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
"component_name": "vwc-linear-progress",
|
|
156
|
-
"export_name": "VWCLinearProgress"
|
|
157
|
-
},
|
|
158
|
-
{
|
|
159
|
-
"component_name": "vwc-menu",
|
|
160
|
-
"export_name": "VWCMenu"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
"component_name": "vwc-note",
|
|
164
|
-
"export_name": "VWCNote"
|
|
165
|
-
},
|
|
166
|
-
{
|
|
167
|
-
"component_name": "vwc-pagination",
|
|
168
|
-
"export_name": "VWCPagination"
|
|
169
|
-
},
|
|
170
|
-
{
|
|
171
|
-
"component_name": "vwc-radio",
|
|
172
|
-
"export_name": "VWCRadio"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
"component_name": "vwc-slider",
|
|
176
|
-
"export_name": "VWCSlider"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
"component_name": "vwc-snackbar",
|
|
180
|
-
"export_name": "VWCSnackbar"
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
"component_name": "vwc-dropdown",
|
|
184
|
-
"export_name": "VWCDropdown"
|
|
185
|
-
},
|
|
186
|
-
{
|
|
187
|
-
"component_name": "vwc-surface",
|
|
188
|
-
"export_name": "VWCSurface"
|
|
189
|
-
},
|
|
190
|
-
{
|
|
191
|
-
"component_name": "vwc-switch",
|
|
192
|
-
"export_name": "VWCSwitch"
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
"component_name": "vwc-elevation",
|
|
196
|
-
"export_name": "VWCElevation"
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
"component_name": "vwc-textarea",
|
|
200
|
-
"export_name": "VWCTextarea"
|
|
201
|
-
},
|
|
202
|
-
{
|
|
203
|
-
"component_name": "vwc-theme-switch",
|
|
204
|
-
"export_name": "VWCThemeSwitch"
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
"component_name": "vwc-top-app-bar",
|
|
208
|
-
"export_name": "VWCTopAppBar"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
"component_name": "vwc-accordion",
|
|
212
|
-
"export_name": "VWCAccordion"
|
|
213
|
-
},
|
|
214
|
-
{
|
|
215
|
-
"component_name": "vwc-action-group",
|
|
216
|
-
"export_name": "VWCActionGroup"
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
"component_name": "vwc-badge",
|
|
220
|
-
"export_name": "VWCBadge"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
"component_name": "vwc-drawer",
|
|
224
|
-
"export_name": "VWCDrawer"
|
|
225
|
-
},
|
|
226
|
-
{
|
|
227
|
-
"component_name": "vwc-popup",
|
|
228
|
-
"export_name": "VWCPopup"
|
|
229
|
-
},
|
|
230
|
-
{
|
|
231
|
-
"component_name": "vwc-select",
|
|
232
|
-
"export_name": "VWCSelect"
|
|
233
|
-
},
|
|
234
|
-
{
|
|
235
|
-
"component_name": "vwc-side-drawer",
|
|
236
|
-
"export_name": "VWCSideDrawer"
|
|
237
|
-
},
|
|
238
|
-
{
|
|
239
|
-
"component_name": "vwc-tag",
|
|
240
|
-
"export_name": "VWCTag"
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
"component_name": "vwc-empty-state",
|
|
244
|
-
"export_name": "VWCEmptyState"
|
|
245
|
-
},
|
|
246
|
-
{
|
|
247
|
-
"component_name": "vwc-text",
|
|
248
|
-
"export_name": "VWCText"
|
|
249
|
-
},
|
|
250
|
-
{
|
|
251
|
-
"component_name": "vwc-tooltip",
|
|
252
|
-
"export_name": "VWCTooltip"
|
|
253
|
-
},
|
|
254
|
-
{
|
|
255
|
-
"component_name": "vwc-banner",
|
|
256
|
-
"export_name": "VWCBanner"
|
|
257
|
-
},
|
|
258
|
-
{
|
|
259
|
-
"component_name": "vwc-button",
|
|
260
|
-
"export_name": "VWCButton"
|
|
261
|
-
},
|
|
262
|
-
{
|
|
263
|
-
"component_name": "vwc-expansion-panel",
|
|
264
|
-
"export_name": "VWCExpansionPanel"
|
|
265
|
-
},
|
|
266
|
-
{
|
|
267
|
-
"component_name": "vwc-media-controller",
|
|
268
|
-
"export_name": "VWCMediaController"
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
"component_name": "vwc-scrub-bar",
|
|
272
|
-
"export_name": "VWCScrubBar"
|
|
273
|
-
},
|
|
274
|
-
{
|
|
275
|
-
"component_name": "vwc-carousel-item",
|
|
276
|
-
"export_name": "VWCCarouselItem"
|
|
277
|
-
},
|
|
278
|
-
{
|
|
279
|
-
"component_name": "vwc-carousel",
|
|
280
|
-
"export_name": "VWCCarousel"
|
|
281
|
-
},
|
|
282
|
-
{
|
|
283
|
-
"component_name": "vwc-tab-bar",
|
|
284
|
-
"export_name": "VWCTabBar"
|
|
285
|
-
},
|
|
286
|
-
{
|
|
287
|
-
"component_name": "vwc-tab",
|
|
288
|
-
"export_name": "VWCTab"
|
|
289
|
-
},
|
|
290
|
-
{
|
|
291
|
-
"component_name": "vwc-data-grid",
|
|
292
|
-
"export_name": "VWCDataGrid"
|
|
293
|
-
},
|
|
294
|
-
{
|
|
295
|
-
"component_name": "vwc-textfield",
|
|
296
|
-
"export_name": "VWCTextfield"
|
|
297
|
-
},
|
|
298
|
-
{
|
|
299
|
-
"component_name": "vwc-calendar-event",
|
|
300
|
-
"export_name": "VWCCalendarEvent"
|
|
301
|
-
},
|
|
302
|
-
{
|
|
303
|
-
"component_name": "vwc-calendar",
|
|
304
|
-
"export_name": "VWCCalendar"
|
|
305
|
-
},
|
|
306
|
-
{
|
|
307
|
-
"component_name": "vwc-check-list-item",
|
|
308
|
-
"export_name": "VWCCheckListItem"
|
|
309
|
-
},
|
|
310
|
-
{
|
|
311
|
-
"component_name": "vwc-list-expansion-panel",
|
|
312
|
-
"export_name": "VWCListExpansionPanel"
|
|
313
|
-
},
|
|
314
|
-
{
|
|
315
|
-
"component_name": "vwc-list-item",
|
|
316
|
-
"export_name": "VWCListItem"
|
|
317
|
-
},
|
|
318
|
-
{
|
|
319
|
-
"component_name": "vwc-list",
|
|
320
|
-
"export_name": "VWCList"
|
|
321
|
-
},
|
|
322
|
-
{
|
|
323
|
-
"component_name": "vwc-radio-list-item",
|
|
324
|
-
"export_name": "VWCRadioListItem"
|
|
325
|
-
}
|
|
326
|
-
]
|
|
327
|
-
}
|
|
328
|
-
}
|
|
69
|
+
"peerDependencies": {}
|
|
70
|
+
}
|
package/popup/index.js
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import '../shared/index3.js';
|
|
2
|
+
import '../shared/index2.js';
|
|
3
|
+
import '../shared/index.js';
|
|
4
|
+
export { v as vividPopup } from '../shared/index6.js';
|
|
5
|
+
import '../shared/class-names.js';
|
|
6
|
+
import '../icon/index.js';
|
|
7
|
+
import '../shared/icon.js';
|
|
8
|
+
import '../shared/export.js';
|
|
9
|
+
import '../shared/iterators.js';
|
|
10
|
+
import '../shared/to-string.js';
|
|
11
|
+
import '../shared/string-trim.js';
|
|
12
|
+
import '../shared/_has.js';
|
|
13
|
+
import '../shared/when.js';
|
|
14
|
+
import '../focus/index.js';
|
|
15
|
+
import '../shared/focus.js';
|
|
16
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
17
|
+
import '../shared/object-keys.js';
|
|
18
|
+
import '../shared/affix.js';
|
|
19
|
+
import '../shared/button.js';
|
|
20
|
+
import '../shared/apply-mixins.js';
|
|
21
|
+
import '../shared/form-associated.js';
|
|
22
|
+
import '../shared/key-codes.js';
|
|
23
|
+
import '../shared/aria-global.js';
|
|
24
|
+
import '../shared/start-end.js';
|
|
25
|
+
import '../shared/ref.js';
|
|
26
|
+
import '../shared/focus2.js';
|
|
27
|
+
import '../shared/es.object.assign.js';
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import '../shared/web.dom-collections.iterator.js';
|
|
3
|
+
import { c as classofRaw, _ as _export, f as functionUncurryThis } from '../shared/export.js';
|
|
4
|
+
import { B as BaseProgress } from '../shared/base-progress.js';
|
|
5
|
+
import { w as when } from '../shared/when.js';
|
|
6
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
7
|
+
import '../shared/object-keys.js';
|
|
8
|
+
import '../shared/iterators.js';
|
|
9
|
+
|
|
10
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Tue, 15 Nov 2022 13:39:19 GMT\n */\n.base {\n height: 6px;\n align-items: center;\n margin: 0;\n outline: none;\n}\n.base:not(.connotation-pacific).connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n}\n.base:not(.connotation-pacific).connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n}\n.base:not(.connotation-pacific).connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n}\n.base:not(.connotation-pacific):not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n}\n.base.connotation-pacific {\n --_connotation-color-primary: linear-gradient(to right, var(--vvd-color-information-200), var(--vvd-color-cta-600));\n}\n\n.progress {\n position: relative;\n display: flex;\n overflow: hidden;\n align-items: center;\n background-color: var(--vvd-color-neutral-100);\n block-size: 100%;\n inline-size: 100%;\n /* Shape */\n}\n.base:not(.shape-sharp) .progress {\n border-radius: 3px;\n}\n\n.indeterminate {\n display: flex;\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: inherit;\n inline-size: 100%;\n}\n\n.determinate {\n background-color: var(--_connotation-color-primary);\n block-size: 100%;\n border-radius: inherit;\n transition: all 0.2s ease-in-out;\n}\n.connotation-pacific .determinate {\n background-image: var(--_connotation-color-primary);\n}\n.reverse .determinate {\n position: absolute;\n right: 0;\n}\n.paused .determinate {\n background-color: var(--vvd-color-neutral-300);\n}\n\n.indicator-1 {\n animation: indeterminate-1 2s infinite;\n inline-size: 30%;\n}\n\n.indicator-2 {\n animation: indeterminate-2 2s infinite;\n inline-size: 60%;\n}\n\n.indicator-1,\n.indicator-2 {\n position: absolute;\n animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);\n background-color: var(--vvd-color-neutral-100);\n block-size: 100%;\n opacity: 0;\n}\n.connotation-pacific .indicator-1,\n.connotation-pacific .indicator-2 {\n background-image: var(--_connotation-color-primary);\n}\n.paused .indicator-1,\n.paused .indicator-2 {\n animation-play-state: paused;\n background-color: var(--_connotation-color-primary);\n}\n.reverse .indicator-1,\n.reverse .indicator-2 {\n animation-direction: reverse;\n}\n\n@keyframes indeterminate-1 {\n 0% {\n opacity: 1;\n transform: translateX(-100%);\n }\n 70% {\n opacity: 1;\n transform: translateX(300%);\n }\n 70.01% {\n opacity: 0;\n }\n 100% {\n opacity: 0;\n transform: translateX(300%);\n }\n}\n@keyframes indeterminate-2 {\n 0% {\n opacity: 0;\n transform: translateX(-150%);\n }\n 29.99% {\n opacity: 0;\n }\n 30% {\n opacity: 1;\n transform: translateX(-150%);\n }\n 100% {\n opacity: 1;\n transform: translateX(166.66%);\n }\n}";
|
|
11
|
+
|
|
12
|
+
var classof = classofRaw;
|
|
13
|
+
|
|
14
|
+
// `IsArray` abstract operation
|
|
15
|
+
// https://tc39.es/ecma262/#sec-isarray
|
|
16
|
+
// eslint-disable-next-line es/no-array-isarray -- safe
|
|
17
|
+
var isArray$1 = Array.isArray || function isArray(argument) {
|
|
18
|
+
return classof(argument) == 'Array';
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
var $ = _export;
|
|
22
|
+
var uncurryThis = functionUncurryThis;
|
|
23
|
+
var isArray = isArray$1;
|
|
24
|
+
|
|
25
|
+
var nativeReverse = uncurryThis([].reverse);
|
|
26
|
+
var test = [1, 2];
|
|
27
|
+
|
|
28
|
+
// `Array.prototype.reverse` method
|
|
29
|
+
// https://tc39.es/ecma262/#sec-array.prototype.reverse
|
|
30
|
+
// fix for Safari 12.0 bug
|
|
31
|
+
// https://bugs.webkit.org/show_bug.cgi?id=188794
|
|
32
|
+
$({ target: 'Array', proto: true, forced: String(test) === String(test.reverse()) }, {
|
|
33
|
+
reverse: function reverse() {
|
|
34
|
+
// eslint-disable-next-line no-self-assign -- dirty hack
|
|
35
|
+
if (isArray(this)) this.length = this.length;
|
|
36
|
+
return nativeReverse(this);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
class Progress extends BaseProgress {
|
|
41
|
+
constructor() {
|
|
42
|
+
super(...arguments);
|
|
43
|
+
this.reverse = false;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
__decorate([attr(), __metadata("design:type", String)], Progress.prototype, "shape", void 0);
|
|
47
|
+
__decorate([attr(), __metadata("design:type", String)], Progress.prototype, "connotation", void 0);
|
|
48
|
+
__decorate([attr({
|
|
49
|
+
mode: 'boolean'
|
|
50
|
+
}), __metadata("design:type", Object)], Progress.prototype, "reverse", void 0);
|
|
51
|
+
|
|
52
|
+
let _2 = t => t,
|
|
53
|
+
_t,
|
|
54
|
+
_t2,
|
|
55
|
+
_t3;
|
|
56
|
+
const getClasses = ({
|
|
57
|
+
connotation,
|
|
58
|
+
shape,
|
|
59
|
+
reverse,
|
|
60
|
+
paused
|
|
61
|
+
}) => classNames('base', [`connotation-${connotation}`, Boolean(connotation)], [`shape-${shape}`, Boolean(shape)], ['reverse', Boolean(reverse)], ['paused', Boolean(paused)]);
|
|
62
|
+
function determinate() {
|
|
63
|
+
return html(_t || (_t = _2`
|
|
64
|
+
<span class="determinate" style="width: ${0}%"></span>`), x => x.percentComplete);
|
|
65
|
+
}
|
|
66
|
+
function indeterminate() {
|
|
67
|
+
return html(_t2 || (_t2 = _2`
|
|
68
|
+
<span class="indeterminate" name="indeterminate">
|
|
69
|
+
<span class="indicator-1"></span>
|
|
70
|
+
<span class="indicator-2"></span>
|
|
71
|
+
</span>`));
|
|
72
|
+
}
|
|
73
|
+
const ProgressTemplate = _ => {
|
|
74
|
+
return html(_t3 || (_t3 = _2`
|
|
75
|
+
<div
|
|
76
|
+
role="progressbar"
|
|
77
|
+
aria-valuenow="${0}"
|
|
78
|
+
aria-valuemin="${0}"
|
|
79
|
+
aria-valuemax="${0}"
|
|
80
|
+
class="${0}"
|
|
81
|
+
>
|
|
82
|
+
<div class="progress">
|
|
83
|
+
${0}
|
|
84
|
+
${0}
|
|
85
|
+
</div>
|
|
86
|
+
</div>
|
|
87
|
+
`), x => x.value, x => x.min, x => x.max, getClasses, when(x => typeof x.value === 'number', determinate()), when(x => typeof x.value !== 'number', indeterminate()));
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
const vividProgress = Progress.compose({
|
|
91
|
+
baseName: 'progress',
|
|
92
|
+
template: ProgressTemplate,
|
|
93
|
+
styles: css_248z
|
|
94
|
+
});
|
|
95
|
+
designSystem.register(vividProgress());
|
|
96
|
+
|
|
97
|
+
export { vividProgress };
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { _ as __decorate, a as attr, b as __metadata, h as html, d as designSystem } from '../shared/index.js';
|
|
2
|
+
import { B as BaseProgress } from '../shared/base-progress.js';
|
|
3
|
+
import { w as when } from '../shared/when.js';
|
|
4
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
5
|
+
|
|
6
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Tue, 15 Nov 2022 13:39:19 GMT\n */\n.base {\n align-items: center;\n block-size: var(--_size);\n color: var(--_appearance-color-text);\n inline-size: var(--_size);\n outline: none;\n}\n.base.connotation-cta {\n --_connotation-color-primary: var(--vvd-color-cta-500);\n}\n.base.connotation-alert {\n --_connotation-color-primary: var(--vvd-color-alert-500);\n}\n.base.connotation-success {\n --_connotation-color-primary: var(--vvd-color-success-500);\n}\n.base:not(.connotation-cta, .connotation-alert, .connotation-success) {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: transparent;\n}\n.base.size--5 {\n --_size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) - 20));\n}\n.base.size--4 {\n --_size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) - 16));\n}\n.base.size--3 {\n --_size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) - 12));\n}\n.base.size--2 {\n --_size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) - 8));\n}\n.base.size--1 {\n --_size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) - 4));\n}\n.base.size-1 {\n --_size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) + 4));\n}\n.base.size-2 {\n --_size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) + 8));\n}\n.base.size-3 {\n --_size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1) + 12));\n}\n.base:not(.size--5, .size--4, .size--3, .size--2, .size--1, .size-1, .size-2, .size-3) {\n --_size: calc(1px * (40 + 8 * clamp(-1, var(--vvd-size-density, 0), 1)));\n}\n\n.progress {\n width: 100%;\n height: 100%;\n}\n\n.background {\n fill: none;\n stroke: transparent;\n stroke-width: 2px;\n}\n\n.determinate {\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.indeterminate-indicator-1 {\n animation: spin-infinite 2s linear infinite;\n fill: none;\n stroke: currentColor;\n stroke-linecap: round;\n stroke-width: 2px;\n transform: rotate(-90deg);\n transform-origin: 50% 50%;\n transition: all 0.2s ease-in-out;\n}\n\n.base.paused .indeterminate-indicator-1 {\n animation-play-state: paused;\n}\n\n@keyframes spin-infinite {\n 0% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(0deg);\n }\n 50% {\n stroke-dasharray: 21.99px 21.99px;\n transform: rotate(450deg);\n }\n 100% {\n stroke-dasharray: 0.01px 43.97px;\n transform: rotate(1080deg);\n }\n}";
|
|
7
|
+
|
|
8
|
+
class ProgressRing extends BaseProgress {}
|
|
9
|
+
__decorate([attr, __metadata("design:type", String)], ProgressRing.prototype, "connotation", void 0);
|
|
10
|
+
__decorate([attr, __metadata("design:type", Number)], ProgressRing.prototype, "size", void 0);
|
|
11
|
+
|
|
12
|
+
let _2 = t => t,
|
|
13
|
+
_t,
|
|
14
|
+
_t2,
|
|
15
|
+
_t3;
|
|
16
|
+
const getClasses = ({
|
|
17
|
+
connotation,
|
|
18
|
+
size,
|
|
19
|
+
paused
|
|
20
|
+
}) => classNames('base', ['disabled', !!paused], [`connotation-${connotation}`, !!connotation], [`size-${size}`, !!size]);
|
|
21
|
+
const progressSegments = 44;
|
|
22
|
+
const ProgressRingTemplate = _ => html(_t || (_t = _2`
|
|
23
|
+
<div
|
|
24
|
+
role="progressbar"
|
|
25
|
+
aria-valuenow="${0}"
|
|
26
|
+
aria-valuemin="${0}"
|
|
27
|
+
aria-valuemax="${0}"
|
|
28
|
+
class="${0} ${0}"
|
|
29
|
+
>
|
|
30
|
+
${0}
|
|
31
|
+
${0}
|
|
32
|
+
</div>
|
|
33
|
+
`), x => x.value, x => x.min, x => x.max, x => x.paused ? 'paused' : '', getClasses, when(x => typeof x.value === 'number', html(_t2 || (_t2 = _2`
|
|
34
|
+
<svg
|
|
35
|
+
class="progress"
|
|
36
|
+
viewBox="0 0 16 16"
|
|
37
|
+
>
|
|
38
|
+
<circle
|
|
39
|
+
class="background"
|
|
40
|
+
cx="8px"
|
|
41
|
+
cy="8px"
|
|
42
|
+
r="7px"
|
|
43
|
+
></circle>
|
|
44
|
+
<circle
|
|
45
|
+
class="determinate"
|
|
46
|
+
style="stroke-dasharray: ${0}px ${0}px"
|
|
47
|
+
cx="8px"
|
|
48
|
+
cy="8px"
|
|
49
|
+
r="7px"
|
|
50
|
+
></circle>
|
|
51
|
+
</svg>
|
|
52
|
+
`), x => progressSegments * x.percentComplete / 100, progressSegments)), when(x => typeof x.value !== 'number', html(_t3 || (_t3 = _2`
|
|
53
|
+
<svg class="progress" viewBox="0 0 16 16">
|
|
54
|
+
<circle
|
|
55
|
+
class="background"
|
|
56
|
+
cx="8px"
|
|
57
|
+
cy="8px"
|
|
58
|
+
r="7px"
|
|
59
|
+
></circle>
|
|
60
|
+
<circle
|
|
61
|
+
class="indeterminate-indicator-1"
|
|
62
|
+
cx="8px"
|
|
63
|
+
cy="8px"
|
|
64
|
+
r="7px"
|
|
65
|
+
></circle>
|
|
66
|
+
</svg>
|
|
67
|
+
`))));
|
|
68
|
+
|
|
69
|
+
const vividProgressRing = ProgressRing.compose({
|
|
70
|
+
baseName: 'progress-ring',
|
|
71
|
+
template: ProgressRingTemplate,
|
|
72
|
+
styles: css_248z
|
|
73
|
+
});
|
|
74
|
+
designSystem.register(vividProgressRing());
|
|
75
|
+
|
|
76
|
+
export { vividProgressRing };
|
package/radio/index.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import '../focus/index.js';
|
|
2
|
+
import { h as html, d as designSystem } from '../shared/index.js';
|
|
3
|
+
import { R as Radio } from '../shared/radio.js';
|
|
4
|
+
import { f as focusTemplateFactory } from '../shared/focus2.js';
|
|
5
|
+
import { w as when } from '../shared/when.js';
|
|
6
|
+
import { c as classNames } from '../shared/class-names.js';
|
|
7
|
+
import '../shared/focus.js';
|
|
8
|
+
import '../shared/form-associated.js';
|
|
9
|
+
import '../shared/key-codes.js';
|
|
10
|
+
|
|
11
|
+
var css_248z = "/**\n * Do not edit directly\n * Generated on Tue, 15 Nov 2022 13:39:19 GMT\n */\n@supports selector(:focus-visible) {\n :host(:focus) {\n outline: none;\n }\n}\n.base {\n display: inline-flex;\n align-items: center;\n cursor: pointer;\n gap: 8px;\n}\n.base {\n --_connotation-color-primary: var(--vvd-color-canvas-text);\n --_connotation-color-firm: var(--vvd-color-canvas-text);\n --_connotation-color-faint: var(--vvd-color-neutral-50);\n --_connotation-color-soft: var(--vvd-color-neutral-100);\n}\n.base {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.base:where(:hover, .hover):where(:not(:disabled, .disabled, .readonly)) {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.base:where(:active, .active):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-firm);\n --_appearance-color-fill: var(--_connotation-color-soft);\n --_appearance-color-outline: var(--_connotation-color-firm);\n}\n.base:where(:checked, .checked):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--_connotation-color-primary);\n}\n.base:where(:checked, .checked):where(:hover, .hover) {\n --_appearance-color-text: var(--_connotation-color-primary);\n --_appearance-color-fill: var(--_connotation-color-faint);\n --_appearance-color-outline: var(--_connotation-color-primary);\n}\n.base:where(:disabled, .disabled) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n.base:where(.readonly):where(:not(:disabled, .disabled)) {\n --_appearance-color-text: var(--vvd-color-neutral-400);\n --_appearance-color-fill: transparent;\n --_appearance-color-outline: var(--vvd-color-neutral-400);\n}\n@supports (user-select: none) {\n .base {\n user-select: none;\n }\n}\n.base.disabled {\n cursor: not-allowed;\n}\n\n.control {\n position: relative;\n width: 20px;\n height: 20px;\n flex-shrink: 0;\n background-color: var(--_appearance-color-fill);\n border-radius: 50%;\n box-shadow: inset 0 0 0 2px var(--_appearance-color-outline);\n}\n.control::after {\n position: absolute;\n background-color: var(--_appearance-color-text);\n border-radius: inherit;\n content: \"\";\n inset: 5px;\n}\n.base:not(.checked) .control::after {\n display: none;\n}\n\nlabel {\n color: var(--vvd-color-canvas-text);\n cursor: pointer;\n font: var(--vvd-typography-base);\n}\n\n.focus-indicator {\n --focus-inset: -3px;\n --focus-stroke-gap-color: transparent;\n border-radius: 50%;\n}\n:host(:not(:focus-visible)) .focus-indicator {\n display: none;\n}";
|
|
12
|
+
|
|
13
|
+
let _ = t => t,
|
|
14
|
+
_t,
|
|
15
|
+
_t2;
|
|
16
|
+
const getClasses = ({
|
|
17
|
+
checked,
|
|
18
|
+
readOnly,
|
|
19
|
+
disabled
|
|
20
|
+
}) => classNames('base', ['checked', Boolean(checked)], ['readonly', Boolean(readOnly)], ['disabled', Boolean(disabled)]);
|
|
21
|
+
const RadioTemplate = context => {
|
|
22
|
+
const focusTemplate = focusTemplateFactory(context);
|
|
23
|
+
return html(_t || (_t = _`
|
|
24
|
+
<span class="${0}"
|
|
25
|
+
role="radio"
|
|
26
|
+
aria-checked="${0}"
|
|
27
|
+
aria-required="${0}"
|
|
28
|
+
aria-disabled="${0}"
|
|
29
|
+
@keypress="${0}"
|
|
30
|
+
@click="${0}"
|
|
31
|
+
>
|
|
32
|
+
<div class="control">
|
|
33
|
+
${0}
|
|
34
|
+
</div>
|
|
35
|
+
${0}
|
|
36
|
+
</span>
|
|
37
|
+
`), getClasses, x => x.checked, x => x.required, x => x.disabled, (x, c) => x.keypressHandler(c.event), (x, c) => x.clickHandler(c.event), () => focusTemplate, when(x => x.label, html(_t2 || (_t2 = _`<label class="label">${0}</label>`), x => x.label)));
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const vividRadio = Radio.compose({
|
|
41
|
+
baseName: 'radio',
|
|
42
|
+
template: RadioTemplate,
|
|
43
|
+
styles: css_248z
|
|
44
|
+
});
|
|
45
|
+
designSystem.register(vividRadio());
|
|
46
|
+
|
|
47
|
+
export { vividRadio };
|