@momentum-ui/web-components 2.5.6 → 2.5.7
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/.eslintignore +6 -0
- package/.eslintrc.js +20 -0
- package/.github/CODEOWNERS +5 -0
- package/.github/ISSUE_TEMPLATE/bug_report.md +38 -0
- package/.github/ISSUE_TEMPLATE/feature_request.md +20 -0
- package/.github/pull_request_template.md +191 -0
- package/.prettierignore +6 -0
- package/.prettierrc +5 -0
- package/.storybook/main.ts +75 -0
- package/.storybook/manager.ts +14 -0
- package/.storybook/preview-body.html +43 -0
- package/.storybook/preview-head.html +3 -0
- package/.storybook/preview.ts +32 -0
- package/.stylelintignore +6 -0
- package/.stylelintrc.js +18 -0
- package/.vscode/extensions.json +13 -0
- package/.vscode/launch.json +13 -0
- package/.vscode/settings.json +29 -0
- package/ANGULAR_USAGE.md +102 -0
- package/APPLYING_STYLES.md +44 -0
- package/CONTRIBUTING.md +56 -0
- package/REACT_USAGE.md +145 -0
- package/VERSIONING.md +28 -0
- package/WEB_COMPONENTS_CRASH_COURSE.md +255 -0
- package/babel.config.js +4 -0
- package/codecov.yml +10 -0
- package/jest/cssTransform.js +9 -0
- package/jest/imgTransform.js +9 -0
- package/jest.config.js +35 -0
- package/package.json +119 -6
- package/sonar-project.properties +22 -0
- package/sonar.config.js +22 -0
- package/src/[sandbox]/examples/accordion.ts +67 -0
- package/src/[sandbox]/examples/alert-banner.ts +85 -0
- package/src/[sandbox]/examples/alert.ts +27 -0
- package/src/[sandbox]/examples/avatar.ts +56 -0
- package/src/[sandbox]/examples/badge.ts +195 -0
- package/src/[sandbox]/examples/breadcrumb.ts +7 -0
- package/src/[sandbox]/examples/button-group.ts +66 -0
- package/src/[sandbox]/examples/button.ts +214 -0
- package/src/[sandbox]/examples/card.ts +76 -0
- package/src/[sandbox]/examples/chat-message.ts +33 -0
- package/src/[sandbox]/examples/checkbox.ts +51 -0
- package/src/[sandbox]/examples/chip.ts +72 -0
- package/src/[sandbox]/examples/coachmark.ts +90 -0
- package/src/[sandbox]/examples/code-editor.ts +13 -0
- package/src/[sandbox]/examples/colorTable.ts +14 -0
- package/src/[sandbox]/examples/combobox.ts +194 -0
- package/src/[sandbox]/examples/date-range-picker.ts +30 -0
- package/src/[sandbox]/examples/date-time-picker.ts +30 -0
- package/src/[sandbox]/examples/datepicker.ts +33 -0
- package/src/[sandbox]/examples/draggable.ts +72 -0
- package/src/[sandbox]/examples/dropdown.ts +161 -0
- package/src/[sandbox]/examples/editable-field.ts +111 -0
- package/src/[sandbox]/examples/favorite.ts +49 -0
- package/src/[sandbox]/examples/floating-modal.ts +102 -0
- package/src/[sandbox]/examples/form.ts +101 -0
- package/src/[sandbox]/examples/icon.ts +9 -0
- package/src/[sandbox]/examples/index.ts +50 -0
- package/src/[sandbox]/examples/input-file.ts +7 -0
- package/src/[sandbox]/examples/input.ts +363 -0
- package/src/[sandbox]/examples/label.ts +12 -0
- package/src/[sandbox]/examples/link.ts +51 -0
- package/src/[sandbox]/examples/list.ts +45 -0
- package/src/[sandbox]/examples/loading.ts +8 -0
- package/src/[sandbox]/examples/meeting-alert.ts +108 -0
- package/src/[sandbox]/examples/menu-item.ts +33 -0
- package/src/[sandbox]/examples/menu-overlay.ts +415 -0
- package/src/[sandbox]/examples/modal.ts +243 -0
- package/src/[sandbox]/examples/pagination.ts +13 -0
- package/src/[sandbox]/examples/phone-input.ts +72 -0
- package/src/[sandbox]/examples/progress-bar.ts +6 -0
- package/src/[sandbox]/examples/radio-group.ts +36 -0
- package/src/[sandbox]/examples/slider.ts +17 -0
- package/src/[sandbox]/examples/spinner.ts +6 -0
- package/src/[sandbox]/examples/table-advanced.ts +114 -0
- package/src/[sandbox]/examples/table.ts +25 -0
- package/src/[sandbox]/examples/tabs.ts +612 -0
- package/src/[sandbox]/examples/task-item.ts +65 -0
- package/src/[sandbox]/examples/timepicker.ts +26 -0
- package/src/[sandbox]/examples/toggle-switch.ts +29 -0
- package/src/[sandbox]/examples/tooltip.ts +144 -0
- package/src/[sandbox]/favicon.ico +0 -0
- package/src/[sandbox]/index.html +17 -0
- package/src/[sandbox]/sandbox.mock.ts +515 -0
- package/src/[sandbox]/sandbox.scss +37 -0
- package/src/[sandbox]/sandbox.ts +468 -0
- package/src/assets/images/profile.svg +47 -0
- package/src/assets/images/whatsapp.svg +1104 -0
- package/src/assets/images/wxm.svg +8 -0
- package/{dist → src}/assets/styles/fonts.css +0 -0
- package/src/components/accordion/Accordion.stories.ts +41 -0
- package/src/components/accordion/Accordion.test.ts +147 -0
- package/src/components/accordion/Accordion.ts +188 -0
- package/src/components/accordion/AccordionItem.test.ts +130 -0
- package/src/components/accordion/AccordionItem.ts +175 -0
- package/src/components/accordion/scss/accordion-item.scss +63 -0
- package/src/components/accordion/scss/accordion.scss +23 -0
- package/src/components/accordion/scss/mixins.scss +16 -0
- package/src/components/accordion/scss/module.scss +17 -0
- package/src/components/accordion/scss/settings.scss +10 -0
- package/src/components/accordion/tokens/lm-accordion-tokens.js +26 -0
- package/src/components/accordion/tokens/md-accordion-tokens.js +26 -0
- package/src/components/activity-button/ActivityButton.test.ts +55 -0
- package/src/components/activity-button/ActivityButton.ts +92 -0
- package/src/components/activity-button/scss/activity-button.scss +160 -0
- package/src/components/activity-button/scss/module.scss +63 -0
- package/src/components/alert/Alert.stories.ts +48 -0
- package/src/components/alert/Alert.test.ts +145 -0
- package/src/components/alert/Alert.ts +135 -0
- package/src/components/alert/scss/alert.scss +85 -0
- package/src/components/alert/scss/mixins.scss +27 -0
- package/src/components/alert/scss/module.scss +21 -0
- package/src/components/alert/scss/settings.scss +37 -0
- package/src/components/alert/tokens/lm-alert-tokens.js +52 -0
- package/src/components/alert/tokens/md-alert-tokens.js +52 -0
- package/src/components/alert-banner/AlertBanner.stories.ts +48 -0
- package/src/components/alert-banner/AlertBanner.test.ts +84 -0
- package/src/components/alert-banner/AlertBanner.ts +89 -0
- package/src/components/alert-banner/scss/alert-banner.scss +52 -0
- package/src/components/alert-banner/scss/mixins.scss +8 -0
- package/src/components/alert-banner/scss/module.scss +9 -0
- package/src/components/alert-banner/scss/settings.scss +15 -0
- package/src/components/alert-banner/tokens/lm-alertbanner-tokens.js +40 -0
- package/src/components/alert-banner/tokens/md-alertbanner-tokens.js +40 -0
- package/src/components/avatar/Avatar.stories.ts +82 -0
- package/src/components/avatar/Avatar.test.ts +119 -0
- package/src/components/avatar/Avatar.ts +207 -0
- package/src/components/avatar/CompositeAvatar.ts +48 -0
- package/src/components/avatar/scss/avatar.scss +295 -0
- package/src/components/avatar/scss/composite-avatar.scss +89 -0
- package/src/components/avatar/scss/mixins.scss +33 -0
- package/src/components/avatar/scss/module.scss +19 -0
- package/src/components/avatar/scss/settings.scss +204 -0
- package/src/components/avatar/tokens/lm-avatar-tokens.js +170 -0
- package/src/components/avatar/tokens/md-avatar-tokens.js +160 -0
- package/src/components/badge/Badge.stories.ts +70 -0
- package/src/components/badge/Badge.test.ts +127 -0
- package/src/components/badge/Badge.ts +98 -0
- package/src/components/badge/scss/badge.scss +215 -0
- package/src/components/badge/scss/mixins.scss +82 -0
- package/src/components/badge/scss/module.scss +14 -0
- package/src/components/badge/scss/settings.scss +69 -0
- package/src/components/badge/tokens/lm-badge-tokens.js +296 -0
- package/src/components/badge/tokens/md-badge-tokens.js +286 -0
- package/src/components/breadcrumb/Breadcrumb.stories.ts +56 -0
- package/src/components/breadcrumb/Breadcrumb.test.ts +42 -0
- package/src/components/breadcrumb/Breadcrumb.ts +85 -0
- package/src/components/breadcrumb/scss/breadcrumb.scss +39 -0
- package/src/components/breadcrumb/scss/mixins.scss +5 -0
- package/src/components/breadcrumb/scss/module.scss +15 -0
- package/src/components/breadcrumb/scss/settings.scss +6 -0
- package/src/components/breadcrumb/tokens/lm-breadcrumb-token.js +23 -0
- package/src/components/breadcrumb/tokens/md-breadcrumb-token.js +23 -0
- package/src/components/button/Button.mdx +77 -0
- package/src/components/button/Button.stories.ts +115 -0
- package/src/components/button/Button.test.ts +207 -0
- package/src/components/button/Button.ts +360 -0
- package/src/components/button/README.md +72 -0
- package/src/components/button/scss/button.scss +764 -0
- package/src/components/button/scss/mixins.scss +257 -0
- package/src/components/button/scss/module.scss +18 -0
- package/src/components/button/scss/settings.scss +235 -0
- package/src/components/button/tokens/lm-button-tokens.js +292 -0
- package/src/components/button-group/ButtonGroup.stories.ts +41 -0
- package/src/components/button-group/ButtonGroup.test.ts +148 -0
- package/src/components/button-group/ButtonGroup.ts +219 -0
- package/src/components/button-group/scss/button-group.scss +66 -0
- package/src/components/button-group/scss/module.scss +16 -0
- package/src/components/button-group/scss/settings.scss +5 -0
- package/src/components/button-group/tokens/lm-button-group-tokens.js +38 -0
- package/src/components/button-group/tokens/md-button-group-tokens.js +38 -0
- package/src/components/card/Card.stories.ts +84 -0
- package/src/components/card/Card.test.ts +86 -0
- package/src/components/card/Card.ts +177 -0
- package/src/components/card/scss/card.scss +114 -0
- package/src/components/card/scss/module.scss +13 -0
- package/src/components/card/scss/settings.scss +11 -0
- package/src/components/chat-message/ChatMessage.stories.ts +40 -0
- package/src/components/chat-message/ChatMessage.test.ts +55 -0
- package/src/components/chat-message/ChatMessage.ts +54 -0
- package/src/components/chat-message/scss/chat-message.scss +43 -0
- package/src/components/chat-message/scss/mixins.scss +6 -0
- package/src/components/chat-message/scss/module.scss +16 -0
- package/src/components/chat-message/scss/settings.scss +7 -0
- package/src/components/chat-message/tokens/lm-chat-message-tokens.js +18 -0
- package/src/components/chat-message/tokens/md-chat-message-tokens.js +18 -0
- package/src/components/checkbox/Checkbox.stories.ts +53 -0
- package/src/components/checkbox/Checkbox.test.ts +124 -0
- package/src/components/checkbox/Checkbox.ts +172 -0
- package/src/components/checkbox/CheckboxGroup.test.ts +43 -0
- package/src/components/checkbox/CheckboxGroup.ts +91 -0
- package/src/components/checkbox/scss/checkbox.scss +139 -0
- package/src/components/checkbox/scss/checkboxgroup.scss +17 -0
- package/src/components/checkbox/scss/mixins.scss +0 -0
- package/src/components/checkbox/scss/module.scss +13 -0
- package/src/components/checkbox/scss/settings.scss +15 -0
- package/src/components/checkbox/tokens/lm-checkbox-tokens.js +78 -0
- package/src/components/checkbox/tokens/md-checkbox-tokens.js +79 -0
- package/src/components/chip/Chip.stories.ts +82 -0
- package/src/components/chip/Chip.test.ts +129 -0
- package/src/components/chip/Chip.ts +241 -0
- package/src/components/chip/scss/chip.scss +379 -0
- package/src/components/chip/scss/mixins.scss +53 -0
- package/src/components/chip/scss/module.scss +21 -0
- package/src/components/chip/scss/settings.scss +5 -0
- package/src/components/coachmark/Coachmark.stories.ts +49 -0
- package/src/components/coachmark/Coachmark.test.ts +60 -0
- package/src/components/coachmark/Coachmark.ts +144 -0
- package/src/components/coachmark/scss/coachmarks.scss +528 -0
- package/src/components/coachmark/scss/module.scss +14 -0
- package/src/components/coachmark/scss/settings.scss +4 -0
- package/src/components/coachmark/tokens/lm-coachmark-tokens.js +140 -0
- package/src/components/coachmark/tokens/md-coachmark-tokens.js +130 -0
- package/src/components/code-editor/CodeEditor.stories.ts +32 -0
- package/src/components/code-editor/CodeEditor.test.ts +48 -0
- package/src/components/code-editor/CodeEditor.ts +183 -0
- package/src/components/code-editor/scss/code-editor.scss +144 -0
- package/src/components/code-editor/scss/module.scss +12 -0
- package/src/components/code-editor/scss/settings.scss +10 -0
- package/src/components/combobox/ComboBox.stories.ts +167 -0
- package/src/components/combobox/ComboBox.test.ts +1136 -0
- package/src/components/combobox/ComboBox.ts +1093 -0
- package/src/components/combobox/scss/combobox.scss +318 -0
- package/src/components/combobox/scss/mixins.scss +9 -0
- package/src/components/combobox/scss/module.scss +17 -0
- package/src/components/combobox/scss/settings.scss +33 -0
- package/src/components/combobox/tokens/lm-combobox-tokens.js +120 -0
- package/src/components/combobox/tokens/md-combobox-tokens.js +120 -0
- package/src/components/date-range-picker/DateRangePicker.stories.ts +62 -0
- package/src/components/date-range-picker/DateRangePicker.test.ts +184 -0
- package/src/components/date-range-picker/DateRangePicker.ts +92 -0
- package/src/components/date-range-picker/scss/daterangepicker.scss +0 -0
- package/src/components/date-range-picker/tokens/lm-date-range-picker-tokens.js +26 -0
- package/src/components/date-range-picker/tokens/md-date-range-picker-tokens.js +26 -0
- package/src/components/date-time-picker/DateTimePicker.stories.ts +73 -0
- package/src/components/date-time-picker/DateTimePicker.test.ts +43 -0
- package/src/components/date-time-picker/DateTimePicker.ts +175 -0
- package/src/components/date-time-picker/scss/date-time-picker.scss +7 -0
- package/src/components/date-time-picker/scss/module.scss +9 -0
- package/src/components/date-time-picker/scss/settings.scss +1 -0
- package/src/components/datepicker/DatePicker.stories.ts +56 -0
- package/src/components/datepicker/DatePicker.test.ts +101 -0
- package/src/components/datepicker/DatePicker.ts +263 -0
- package/src/components/datepicker/datepicker-calendar/DatePickerCalendar.test.ts +51 -0
- package/src/components/datepicker/datepicker-calendar/DatePickerCalendar.ts +175 -0
- package/src/components/datepicker/datepicker-day/DatePickerDay.test.ts +76 -0
- package/src/components/datepicker/datepicker-day/DatePickerDay.ts +162 -0
- package/src/components/datepicker/datepicker-month/DatePickerMonth.test.ts +17 -0
- package/src/components/datepicker/datepicker-month/DatePickerMonth.ts +73 -0
- package/src/components/datepicker/datepicker-week/DatePickerWeek.test.ts +17 -0
- package/src/components/datepicker/datepicker-week/DatePickerWeek.ts +60 -0
- package/src/components/datepicker/scss/datepicker.scss +209 -0
- package/src/components/datepicker/scss/module.scss +9 -0
- package/src/components/datepicker/scss/settings.scss +9 -0
- package/src/components/datepicker/tokens/lm-datepicker-tokens.js +52 -0
- package/src/components/datepicker/tokens/md-datepicker-tokens.js +52 -0
- package/src/components/draggable/Draggable.mdx +258 -0
- package/src/components/draggable/Draggable.stories.ts +181 -0
- package/src/components/draggable/Draggable.test.ts +121 -0
- package/src/components/draggable/Draggable.ts +203 -0
- package/src/components/draggable/DraggableItem.test.ts +49 -0
- package/src/components/draggable/DraggableItem.ts +64 -0
- package/src/components/draggable/scss/draggable-item.scss +53 -0
- package/src/components/draggable/scss/module.scss +12 -0
- package/src/components/draggable/scss/settings.scss +6 -0
- package/src/components/dropdown/Dropdown.stories.ts +83 -0
- package/src/components/dropdown/Dropdown.test.ts +294 -0
- package/src/components/dropdown/Dropdown.ts +495 -0
- package/src/components/dropdown/scss/dropdown.scss +152 -0
- package/src/components/dropdown/scss/mixins.scss +23 -0
- package/src/components/dropdown/scss/module.scss +25 -0
- package/src/components/dropdown/scss/settings.scss +24 -0
- package/src/components/dropdown/tokens/lm-dropdown-tokens.js +58 -0
- package/src/components/dropdown/tokens/md-dropdown-tokens.js +58 -0
- package/src/components/editable-textfield/EditableTextfield.stories.ts +113 -0
- package/src/components/editable-textfield/EditableTextfield.test.ts +232 -0
- package/src/components/editable-textfield/EditableTextfield.ts +258 -0
- package/src/components/editable-textfield/scss/editable-textfield.scss +108 -0
- package/src/components/editable-textfield/scss/module.scss +14 -0
- package/src/components/editable-textfield/scss/settings.scss +6 -0
- package/src/components/editable-textfield/tokens/lm-editabletextfield-tokens.js +130 -0
- package/src/components/editable-textfield/tokens/md-editabletextfield-tokens.js +118 -0
- package/src/components/favorite/Favorite.stories.ts +42 -0
- package/src/components/favorite/Favorite.test.ts +66 -0
- package/src/components/favorite/Favorite.ts +119 -0
- package/src/components/favorite/scss/favorite.scss +73 -0
- package/src/components/favorite/scss/module.scss +18 -0
- package/src/components/favorite/scss/settings.scss +3 -0
- package/src/components/floating-modal/Floating.mdx +42 -0
- package/src/components/floating-modal/FloatingMinimizedModal.test.ts +96 -0
- package/src/components/floating-modal/FloatingMinimizedModal.ts +274 -0
- package/src/components/floating-modal/FloatingModal.stories.ts +75 -0
- package/src/components/floating-modal/FloatingModal.test.ts +119 -0
- package/src/components/floating-modal/FloatingModal.ts +360 -0
- package/src/components/floating-modal/README.md +36 -0
- package/src/components/floating-modal/scss/floating.scss +85 -0
- package/src/components/floating-modal/scss/module.scss +19 -0
- package/src/components/floating-modal/scss/settings.scss +5 -0
- package/src/components/floating-modal/tokens/lm-floating-modal-tokens.js +46 -0
- package/src/components/floating-modal/tokens/md-floating-modal-tokens.js +46 -0
- package/src/components/form/Form.stories.ts +64 -0
- package/src/components/form/Form.test.ts +59 -0
- package/src/components/form/Form.ts +229 -0
- package/src/components/help-text/HelpText.test.ts +39 -0
- package/src/components/help-text/HelpText.ts +60 -0
- package/src/components/help-text/scss/help-text.scss +34 -0
- package/src/components/help-text/scss/mixins.scss +14 -0
- package/src/components/help-text/scss/module.scss +13 -0
- package/src/components/help-text/scss/settings.scss +5 -0
- package/src/components/help-text/tokens/lm-help-text-tokens.js +16 -0
- package/src/components/help-text/tokens/md-help-text-tokens.js +16 -0
- package/src/components/icon/Icon.stories.ts +66 -0
- package/src/components/icon/Icon.test.ts +75 -0
- package/src/components/icon/Icon.ts +168 -0
- package/src/components/icon/scss/icon.scss +15 -0
- package/src/components/icon/scss/module.scss +17 -0
- package/src/components/icon/scss/settings.scss +10 -0
- package/src/components/input/Input.stories.ts +136 -0
- package/src/components/input/Input.test.ts +335 -0
- package/src/components/input/Input.ts +533 -0
- package/src/components/input/scss/input.scss +399 -0
- package/src/components/input/scss/module.scss +26 -0
- package/src/components/input/scss/settings.scss +120 -0
- package/src/components/input/tokens/lm-input-tokens.js +138 -0
- package/src/components/input/tokens/md-input-tokens.js +128 -0
- package/src/components/input-file/InputFile.stories.ts +27 -0
- package/src/components/input-file/InputFile.test.ts +43 -0
- package/src/components/input-file/InputFile.ts +116 -0
- package/src/components/input-file/scss/input-file.scss +8 -0
- package/src/components/input-file/scss/module.scss +6 -0
- package/src/components/label/Label.stories.ts +57 -0
- package/src/components/label/Label.test.ts +27 -0
- package/src/components/label/Label.ts +90 -0
- package/src/components/label/scss/label.scss +36 -0
- package/src/components/label/scss/mixins.scss +25 -0
- package/src/components/label/scss/module.scss +17 -0
- package/src/components/label/scss/settings.scss +8 -0
- package/src/components/label/tokens/lm-label-tokens.js +18 -0
- package/src/components/label/tokens/md-label-tokens.js +18 -0
- package/src/components/link/Link.stories.ts +48 -0
- package/src/components/link/Link.test.ts +72 -0
- package/src/components/link/Link.ts +96 -0
- package/src/components/link/scss/link.scss +27 -0
- package/src/components/link/scss/mixins.scss +124 -0
- package/src/components/link/scss/module.scss +14 -0
- package/src/components/link/scss/settings.scss +5 -0
- package/src/components/link/tokens/lm-link-tokens.js +61 -0
- package/src/components/link/tokens/md-link-tokens.js +127 -0
- package/src/components/list/List.stories.ts +57 -0
- package/src/components/list/List.test.ts +217 -0
- package/src/components/list/List.ts +181 -0
- package/src/components/list/ListItem.test.ts +45 -0
- package/src/components/list/ListItem.ts +68 -0
- package/src/components/list/scss/list.scss +26 -0
- package/src/components/list/scss/listitem.scss +48 -0
- package/src/components/list/scss/mixins.scss +8 -0
- package/src/components/list/scss/module.scss +15 -0
- package/src/components/list/scss/settings.scss +7 -0
- package/src/components/list/tokens/lm-list-tokens.js +38 -0
- package/src/components/list/tokens/md-list-tokens.js +38 -0
- package/src/components/loading/Loading.stories.ts +46 -0
- package/src/components/loading/Loading.test.ts +33 -0
- package/src/components/loading/Loading.ts +48 -0
- package/src/components/loading/scss/loading.scss +69 -0
- package/src/components/loading/scss/module.scss +8 -0
- package/src/components/meeting-alert/CompositeAvatar.ts +37 -0
- package/src/components/meeting-alert/MeetingAlert.stories.ts +95 -0
- package/src/components/meeting-alert/MeetingAlert.test.ts +214 -0
- package/src/components/meeting-alert/MeetingAlert.ts +203 -0
- package/src/components/meeting-alert/scss/alert.scss +244 -0
- package/src/components/meeting-alert/scss/mixins.scss +13 -0
- package/src/components/meeting-alert/scss/module.scss +20 -0
- package/src/components/meeting-alert/scss/settings.scss +30 -0
- package/src/components/menu/Menu.stories.ts +63 -0
- package/src/components/menu/Menu.test.ts +109 -0
- package/src/components/menu/Menu.ts +213 -0
- package/src/components/menu/MenuItem.test.ts +54 -0
- package/src/components/menu/MenuItem.ts +160 -0
- package/src/components/menu/scss/menu-item.scss +34 -0
- package/src/components/menu/scss/menu.scss +31 -0
- package/src/components/menu/scss/module.scss +15 -0
- package/src/components/menu/scss/settings.scss +1 -0
- package/src/components/menu/tokens/lm-menu-tokens.js +27 -0
- package/src/components/menu/tokens/md-menu-tokens.js +27 -0
- package/src/components/menu-overlay/MenuOverlay.stories.ts +85 -0
- package/src/components/menu-overlay/MenuOverlay.test.ts +360 -0
- package/src/components/menu-overlay/MenuOverlay.ts +373 -0
- package/src/components/menu-overlay/scss/menu-overlay.scss +75 -0
- package/src/components/menu-overlay/scss/module.scss +12 -0
- package/src/components/menu-overlay/scss/settings.scss +6 -0
- package/src/components/modal/Modal.stories.ts +81 -0
- package/src/components/modal/Modal.test.ts +169 -0
- package/src/components/modal/Modal.ts +300 -0
- package/src/components/modal/scss/mixins.scss +107 -0
- package/src/components/modal/scss/modal.scss +405 -0
- package/src/components/modal/scss/module.scss +18 -0
- package/src/components/modal/scss/settings.scss +59 -0
- package/src/components/modal/tokens/lm-modal-tokens.js +44 -0
- package/src/components/modal/tokens/md-modal-tokens.js +44 -0
- package/src/components/pagination/Pagination.stories.ts +37 -0
- package/src/components/pagination/Pagination.test.ts +76 -0
- package/src/components/pagination/Pagination.ts +211 -0
- package/src/components/pagination/scss/mixins.scss +11 -0
- package/src/components/pagination/scss/module.scss +18 -0
- package/src/components/pagination/scss/pagination.scss +101 -0
- package/src/components/pagination/scss/settings.scss +11 -0
- package/src/components/pagination/tokens/lm-pagination-tokens.js +49 -0
- package/src/components/pagination/tokens/md-pagination-tokens.js +49 -0
- package/src/components/phone-input/PhoneInput.stories.ts +47 -0
- package/src/components/phone-input/PhoneInput.test.ts +193 -0
- package/src/components/phone-input/PhoneInput.ts +241 -0
- package/src/components/phone-input/scss/module.scss +7 -0
- package/src/components/phone-input/scss/phoneInput.scss +95 -0
- package/src/components/phone-input/scss/settings.scss +3 -0
- package/src/components/phone-input/tokens/lm-phone-input-tokens.js +26 -0
- package/src/components/phone-input/tokens/md-phone-input-tokens.js +26 -0
- package/src/components/progress-bar/ProgressBar.stories.ts +50 -0
- package/src/components/progress-bar/ProgressBar.test.ts +80 -0
- package/src/components/progress-bar/ProgressBar.ts +112 -0
- package/src/components/progress-bar/scss/mixins.scss +48 -0
- package/src/components/progress-bar/scss/module.scss +10 -0
- package/src/components/progress-bar/scss/progress.scss +66 -0
- package/src/components/progress-bar/scss/settings.scss +27 -0
- package/src/components/radio/Radio.test.ts +60 -0
- package/src/components/radio/Radio.ts +93 -0
- package/src/components/radio/RadioGroup.stories.ts +45 -0
- package/src/components/radio/RadioGroup.test.ts +187 -0
- package/src/components/radio/RadioGroup.ts +175 -0
- package/src/components/radio/scss/mixins.scss +7 -0
- package/src/components/radio/scss/module.scss +17 -0
- package/src/components/radio/scss/radio.scss +101 -0
- package/src/components/radio/scss/radiogroup.scss +25 -0
- package/src/components/radio/scss/settings.scss +17 -0
- package/src/components/radio/tokens/lm-radio-tokens.js +80 -0
- package/src/components/radio/tokens/md-radio-tokens.js +80 -0
- package/src/components/sass-stats/README.md +25 -0
- package/src/components/sass-stats/SassStats.test.ts +17 -0
- package/src/components/sass-stats/SassStats.ts +110 -0
- package/src/components/slider/Slider.stories.ts +47 -0
- package/src/components/slider/Slider.test.ts +132 -0
- package/src/components/slider/Slider.ts +274 -0
- package/src/components/slider/scss/mixins.scss +5 -0
- package/src/components/slider/scss/module.scss +17 -0
- package/src/components/slider/scss/settings.scss +10 -0
- package/src/components/slider/scss/slider.scss +139 -0
- package/src/components/slider/tokens/lm-slider-token.js +57 -0
- package/src/components/slider/tokens/md-slider-tokens.js +61 -0
- package/src/components/spinner/Spinner.stories.ts +39 -0
- package/src/components/spinner/Spinner.test.ts +22 -0
- package/src/components/spinner/Spinner.ts +42 -0
- package/src/components/spinner/scss/mixins.scss +34 -0
- package/src/components/spinner/scss/module.scss +10 -0
- package/src/components/spinner/scss/settings.scss +3 -0
- package/src/components/spinner/scss/spinner.scss +37 -0
- package/src/components/spinner/tokens/lm-spinner-tokens.js +16 -0
- package/src/components/spinner/tokens/md-spinner-tokens.js +18 -0
- package/src/components/table/Table.stories.ts +77 -0
- package/src/components/table/Table.test.ts +55 -0
- package/src/components/table/Table.ts +219 -0
- package/src/components/table/scss/mixins.scss +6 -0
- package/src/components/table/scss/module.scss +27 -0
- package/src/components/table/scss/settings.scss +11 -0
- package/src/components/table/scss/table.scss +164 -0
- package/src/components/table/tokens/lm-table-tokens.js +42 -0
- package/src/components/table/tokens/md-table-tokens.js +42 -0
- package/src/components/table-advanced/TableAdvanced.md +232 -0
- package/src/components/table-advanced/TableAdvanced.mdx +239 -0
- package/src/components/table-advanced/TableAdvanced.stories.ts +182 -0
- package/src/components/table-advanced/TableAdvanced.test.ts +299 -0
- package/src/components/table-advanced/TableAdvanced.ts +1068 -0
- package/src/components/table-advanced/scss/module.scss +27 -0
- package/src/components/table-advanced/scss/settings.scss +16 -0
- package/src/components/table-advanced/scss/table-advanced.scss +426 -0
- package/src/components/table-advanced/src/decorators.ts +149 -0
- package/src/components/table-advanced/src/filter.ts +86 -0
- package/src/components/table-advanced/tokens/lm-table-advanced-tokens.js +64 -0
- package/src/components/table-advanced/tokens/md-table-advanced-tokens.js +64 -0
- package/src/components/tabs/Tab.test.ts +119 -0
- package/src/components/tabs/Tab.ts +204 -0
- package/src/components/tabs/TabPanel.test.ts +24 -0
- package/src/components/tabs/TabPanel.ts +46 -0
- package/src/components/tabs/Tabs.stories.ts +177 -0
- package/src/components/tabs/Tabs.test.ts +486 -0
- package/src/components/tabs/Tabs.ts +1081 -0
- package/src/components/tabs/scss/mixins.scss +5 -0
- package/src/components/tabs/scss/module.scss +16 -0
- package/src/components/tabs/scss/settings.scss +18 -0
- package/src/components/tabs/scss/tab.scss +151 -0
- package/src/components/tabs/scss/tabs.scss +227 -0
- package/src/components/tabs/tokens/lm-tabs-tokens.js +76 -0
- package/src/components/tabs/tokens/md-tabs-tokens.js +68 -0
- package/src/components/taskitem/TaskItem.stories.ts +66 -0
- package/src/components/taskitem/TaskItem.test.ts +349 -0
- package/src/components/taskitem/TaskItem.ts +249 -0
- package/src/components/taskitem/scss/mixins.scss +42 -0
- package/src/components/taskitem/scss/module.scss +15 -0
- package/src/components/taskitem/scss/settings.scss +43 -0
- package/src/components/taskitem/scss/task-item.scss +196 -0
- package/src/components/taskitem/tokens/lm-taskitem-tokens.js +66 -0
- package/src/components/taskitem/tokens/md-taskitem-tokens.js +66 -0
- package/src/components/theme/README.md +13 -0
- package/src/components/theme/Theme.test.ts +40 -0
- package/src/components/theme/Theme.ts +342 -0
- package/src/components/theme/index.ts +6 -0
- package/src/components/timepicker/TimePicker.stories.ts +38 -0
- package/src/components/timepicker/TimePicker.test.ts +163 -0
- package/src/components/timepicker/TimePicker.ts +417 -0
- package/src/components/timepicker/scss/module.scss +9 -0
- package/src/components/timepicker/scss/settings.scss +8 -0
- package/src/components/timepicker/scss/timepicker.scss +64 -0
- package/src/components/toggle-switch/ToggleSwitch.stories.ts +43 -0
- package/src/components/toggle-switch/ToggleSwitch.test.ts +60 -0
- package/src/components/toggle-switch/ToggleSwitch.ts +73 -0
- package/src/components/toggle-switch/scss/mixins.scss +93 -0
- package/src/components/toggle-switch/scss/module.scss +12 -0
- package/src/components/toggle-switch/scss/settings.scss +14 -0
- package/src/components/toggle-switch/scss/toggle-switch.scss +94 -0
- package/src/components/toggle-switch/tokens/lm-toggle-tokens.js +52 -0
- package/src/components/toggle-switch/tokens/md-toggle-tokens.js +52 -0
- package/src/components/tooltip/Tooltip.stories.ts +53 -0
- package/src/components/tooltip/Tooltip.test.ts +84 -0
- package/src/components/tooltip/Tooltip.ts +210 -0
- package/src/components/tooltip/scss/module.scss +12 -0
- package/src/components/tooltip/scss/settings.scss +11 -0
- package/src/components/tooltip/scss/tooltip.scss +151 -0
- package/src/components/tooltip/tokens/lm-tooltip-tokens.js +18 -0
- package/src/components/tooltip/tokens/md-tooltip-tokens.js +18 -0
- package/src/constants.ts +37 -0
- package/src/index.ts +75 -0
- package/src/internal-components/color-table/ColorTable.stories.ts +35 -0
- package/src/internal-components/color-table/ColorTable.ts +85 -0
- package/src/internal-components/color-table/data.ts +204 -0
- package/src/internal-components/color-table/scss/color-table.scss +739 -0
- package/src/internal-components/color-table/scss/module.scss +11 -0
- package/src/internal-components/color-table/utils.ts +552 -0
- package/src/mixins/CustomElementCheck.ts +25 -0
- package/src/mixins/DedupeMixin.test.ts +81 -0
- package/src/mixins/DedupeMixin.ts +54 -0
- package/src/mixins/FocusMixin.test.ts +120 -0
- package/src/mixins/FocusMixin.ts +131 -0
- package/src/mixins/FocusTrapMixin.test.ts +438 -0
- package/src/mixins/FocusTrapMixin.ts +379 -0
- package/src/mixins/ResizeMixin.test.ts +86 -0
- package/src/mixins/ResizeMixin.ts +142 -0
- package/src/mixins/RovingTabIndexMixin.test.ts +62 -0
- package/src/mixins/RovingTabIndexMixin.ts +110 -0
- package/src/mixins/SlottedMixin.test.ts +70 -0
- package/src/mixins/SlottedMixin.ts +110 -0
- package/src/mixins/index.ts +17 -0
- package/src/templates/color-table-data-string.hbs +22 -0
- package/src/templates/colors-settings.hbs +21 -0
- package/src/templates/colors.hbs +35 -0
- package/src/templates/component-colors.hbs +31 -0
- package/src/templates/css-color-variables.hbs +22 -0
- package/src/templates/dark-colors.hbs +24 -0
- package/src/templates/light-colors.hbs +24 -0
- package/src/templates/semantic-color-dark.hbs +28 -0
- package/src/templates/semantic-color-light.hbs +28 -0
- package/src/templates/semantic-color-settings.hbs +38 -0
- package/src/tokens/Tokens.test.ts +11 -0
- package/src/tokens/tokenImports.js +7 -0
- package/src/tsconfig.json +25 -0
- package/src/types/declare.d.ts +31 -0
- package/src/types/globals.d.ts +5 -0
- package/src/utils/clearVars.js +47 -0
- package/src/utils/createTokenFilesModule.js +86 -0
- package/src/utils/dateUtils.test.ts +174 -0
- package/src/utils/dateUtils.ts +101 -0
- package/src/utils/enums.ts +720 -0
- package/src/utils/generateColorTableData.js +42 -0
- package/src/utils/generateScssFromTokens.js +249 -0
- package/src/utils/helpers.ts +150 -0
- package/src/utils/validations.ts +28 -0
- package/src/wc_scss/colors/settings-base.scss +208 -0
- package/src/wc_scss/colors/settings-transparencies.scss +52 -0
- package/src/wc_scss/colors/settings.scss +1 -0
- package/src/wc_scss/colors/tests/colors.cy.js +8 -0
- package/src/wc_scss/generic/global.scss +114 -0
- package/src/wc_scss/generic/normalize.scss +422 -0
- package/src/wc_scss/icon/settings.scss +12 -0
- package/src/wc_scss/path.scss +4 -0
- package/src/wc_scss/reset.scss +26 -0
- package/src/wc_scss/settings/avatar.scss +193 -0
- package/src/wc_scss/settings/button-settings.scss +193 -0
- package/src/wc_scss/settings/core.scss +128 -0
- package/src/wc_scss/settings/focus.scss +7 -0
- package/src/wc_scss/settings/form-controls.scss +23 -0
- package/src/wc_scss/settings/forms.scss +26 -0
- package/src/wc_scss/settings/input.scss +59 -0
- package/src/wc_scss/settings/list-item.scss +86 -0
- package/src/wc_scss/settings/list.scss +10 -0
- package/src/wc_scss/settings/media.scss +116 -0
- package/src/wc_scss/settings/overlay.scss +6 -0
- package/src/wc_scss/settings/rem.scss +1 -0
- package/src/wc_scss/settings/z-index.scss +9 -0
- package/src/wc_scss/themes/global--dark.scss +87 -0
- package/src/wc_scss/themes/global--light.scss +87 -0
- package/src/wc_scss/themes/global--lm.scss +4 -0
- package/src/wc_scss/themes/global--md.scss +4 -0
- package/src/wc_scss/tools/functions/core.scss +181 -0
- package/src/wc_scss/tools/mixins/avatar.scss +32 -0
- package/src/wc_scss/tools/mixins/baseline.scss +69 -0
- package/src/wc_scss/tools/mixins/border-radius.scss +26 -0
- package/src/wc_scss/tools/mixins/button.scss +248 -0
- package/src/wc_scss/tools/mixins/core.scss +215 -0
- package/src/wc_scss/tools/mixins/easing.scss +63 -0
- package/src/wc_scss/tools/mixins/flex.scss +14 -0
- package/src/wc_scss/tools/mixins/focus.scss +35 -0
- package/src/wc_scss/tools/mixins/input.scss +136 -0
- package/src/wc_scss/tools/mixins/nav-divider.scss +10 -0
- package/src/wc_scss/tools/mixins/spacing.scss +208 -0
- package/src/wc_scss/tools/mixins/spinner.scss +38 -0
- package/src/wc_scss/typography/mixins.scss +208 -0
- package/src/wc_scss/typography/settings.scss +286 -0
- package/src/wc_scss/typography/tests/typography.cy.js +8 -0
- package/src/wc_scss/typography/typography.scss +319 -0
- package/stats/cssStats.js +17 -0
- package/stats/stats-loader.js +23 -0
- package/stats/utils.js +5 -0
- package/stats/writeFileSyncRecursive.js +20 -0
- package/tsconfig.json +13 -0
- package/webpack.config.dev.server.ts +12 -0
- package/webpack.config.ts +284 -0
- package/webpack.plugin.LoadChunks.ts +67 -0
- package/dist/assets/fonts/CiscoSansTT-Medium.woff +0 -0
- package/dist/assets/fonts/CiscoSansTT-Medium.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTBold.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTBold.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTBoldOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTBoldOblique.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTExtraLight.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTExtraLight.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTExtraLightOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTExtraLightOblique.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTHeavy.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTHeavy.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTHeavyOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTHeavyOblique.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTLight.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTLight.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTLightOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTLightOblique.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTRegular.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTRegular.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTRegularOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTRegularOblique.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTThin.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTThin.woff2 +0 -0
- package/dist/assets/fonts/CiscoSansTTThinOblique.woff +0 -0
- package/dist/assets/fonts/CiscoSansTTThinOblique.woff2 +0 -0
- package/dist/assets/fonts/index.html +0 -18560
- package/dist/assets/fonts/momentum-ui-icons.svg +0 -9261
- package/dist/assets/fonts/momentum-ui-icons.ttf +0 -0
- package/dist/assets/fonts/momentum-ui-icons.woff +0 -0
- package/dist/assets/fonts/momentum-ui-icons.woff2 +0 -0
- package/dist/assets/icons/fonts/index.html +0 -18560
- package/dist/assets/icons/fonts/momentum-ui-icons.svg +0 -9261
- package/dist/assets/icons/fonts/momentum-ui-icons.ttf +0 -0
- package/dist/assets/icons/fonts/momentum-ui-icons.woff +0 -0
- package/dist/assets/icons/fonts/momentum-ui-icons.woff2 +0 -0
- package/dist/assets/images/avatar-images/barbara.png +0 -0
- package/dist/assets/images/avatar-images/brandon.png +0 -0
- package/dist/assets/images/avatar-images/brenda.png +0 -0
- package/dist/assets/images/avatar-images/giacomo.png +0 -0
- package/dist/assets/images/avatar-images/maria.png +0 -0
- package/dist/assets/images/avatar-images/simon.png +0 -0
- package/dist/assets/images/cisco/cisco-logo-black.png +0 -0
- package/dist/assets/images/cisco/cisco-logo-black.svg +0 -21
- package/dist/assets/images/cisco/cisco-logo-blue.png +0 -0
- package/dist/assets/images/cisco/cisco-logo-blue.svg +0 -21
- package/dist/assets/images/cisco/cisco-logo-white.png +0 -0
- package/dist/assets/images/cisco/cisco-logo-white.svg +0 -21
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-black.png +0 -0
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-black.svg +0 -30
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-blue.png +0 -0
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-blue.svg +0 -30
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-white.png +0 -0
- package/dist/assets/images/cisco-webex/lockup/cisco-webex-lockup-white.svg +0 -30
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-black.png +0 -0
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-black.svg +0 -13
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-blue.png +0 -0
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-blue.svg +0 -13
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-white.png +0 -0
- package/dist/assets/images/cisco-webex/wordmark/cisco-webex-wordmark-white.svg +0 -13
- package/dist/assets/images/flags.png +0 -0
- package/dist/assets/images/flags@2x.png +0 -0
- package/dist/assets/images/momentum/momentum-color-icon.png +0 -0
- package/dist/assets/images/momentum/momentum-color-icon.svg +0 -1
- package/dist/assets/images/momentum/momentum-horiz-color-white.png +0 -0
- package/dist/assets/images/momentum/momentum-horiz-color.png +0 -0
- package/dist/assets/images/momentum/momentum-horiz-color.svg +0 -1
- package/dist/assets/images/momentum/momentum-horiz-outline.png +0 -0
- package/dist/assets/images/momentum/momentum-horiz-outline.svg +0 -1
- package/dist/assets/images/momentum/momentum-outline-icon.png +0 -0
- package/dist/assets/images/momentum/momentum-outline-icon.svg +0 -1
- package/dist/assets/images/momentum/momentum-vert-color.png +0 -0
- package/dist/assets/images/momentum/momentum-vert-color.svg +0 -1
- package/dist/assets/images/momentum/momentum-vert-outline.png +0 -0
- package/dist/assets/images/momentum/momentum-vert-outline.svg +0 -1
- package/dist/assets/images/momentum/momentum.jpg +0 -0
- package/dist/assets/images/opacity-bkgd.jpg +0 -0
- package/dist/assets/images/webex-calling/calling-icon-color.png +0 -0
- package/dist/assets/images/webex-calling/calling-icon-color.svg +0 -14
- package/dist/assets/images/webex-calling/calling-icon-white.png +0 -0
- package/dist/assets/images/webex-calling/calling-icon-white.svg +0 -13
- package/dist/assets/images/webex-calling/calling-with-container-and-label-color.png +0 -0
- package/dist/assets/images/webex-calling/calling-with-container-and-label-color.svg +0 -46
- package/dist/assets/images/webex-calling/calling-with-container-color.png +0 -0
- package/dist/assets/images/webex-calling/calling-with-container-color.svg +0 -19
- package/dist/assets/images/webex-calling/calling-with-label-color.png +0 -0
- package/dist/assets/images/webex-calling/calling-with-label-color.svg +0 -39
- package/dist/assets/images/webex-meetings/meetings-icon-color.png +0 -0
- package/dist/assets/images/webex-meetings/meetings-icon-color.svg +0 -15
- package/dist/assets/images/webex-meetings/meetings-icon-white.png +0 -0
- package/dist/assets/images/webex-meetings/meetings-icon-white.svg +0 -12
- package/dist/assets/images/webex-meetings/meetings-with-container-and-label-color.png +0 -0
- package/dist/assets/images/webex-meetings/meetings-with-container-and-label-color.svg +0 -29
- package/dist/assets/images/webex-meetings/meetings-with-container-color.png +0 -0
- package/dist/assets/images/webex-meetings/meetings-with-container-color.svg +0 -16
- package/dist/assets/images/webex-meetings/meetings-with-label-color.png +0 -0
- package/dist/assets/images/webex-meetings/meetings-with-label-color.svg +0 -28
- package/dist/assets/images/webex-teams/teams-icon-color.png +0 -0
- package/dist/assets/images/webex-teams/teams-icon-color.svg +0 -18
- package/dist/assets/images/webex-teams/teams-icon-white.png +0 -0
- package/dist/assets/images/webex-teams/teams-icon-white.svg +0 -12
- package/dist/assets/images/webex-teams/teams-with-container-and-label-color.png +0 -0
- package/dist/assets/images/webex-teams/teams-with-container-and-label-color.svg +0 -29
- package/dist/assets/images/webex-teams/teams-with-container-color.png +0 -0
- package/dist/assets/images/webex-teams/teams-with-container-color.svg +0 -19
- package/dist/assets/images/webex-teams/teams-with-label-color.png +0 -0
- package/dist/assets/images/webex-teams/teams-with-label-color.svg +0 -30
- package/dist/assets/styles/momentum-ui-icons.min.css +0 -1
- package/dist/assets/styles/momentum-ui.min.css +0 -7
- package/dist/assets/styles/momentum-ui.min.css.map +0 -1
- package/dist/chunks/md-0.js +0 -1
- package/dist/chunks/md-1.js +0 -1
- package/dist/chunks/md-10.js +0 -12
- package/dist/chunks/md-100.js +0 -1
- package/dist/chunks/md-101.js +0 -1
- package/dist/chunks/md-102.js +0 -1
- package/dist/chunks/md-103.js +0 -1
- package/dist/chunks/md-104.js +0 -1
- package/dist/chunks/md-105.js +0 -1
- package/dist/chunks/md-106.js +0 -1
- package/dist/chunks/md-107.js +0 -1
- package/dist/chunks/md-108.js +0 -1
- package/dist/chunks/md-109.js +0 -1
- package/dist/chunks/md-11.js +0 -1
- package/dist/chunks/md-110.js +0 -1
- package/dist/chunks/md-111.js +0 -1
- package/dist/chunks/md-112.js +0 -1
- package/dist/chunks/md-113.js +0 -1
- package/dist/chunks/md-114.js +0 -1
- package/dist/chunks/md-115.js +0 -1
- package/dist/chunks/md-116.js +0 -1
- package/dist/chunks/md-117.js +0 -1
- package/dist/chunks/md-118.js +0 -1
- package/dist/chunks/md-119.js +0 -1
- package/dist/chunks/md-12.js +0 -6
- package/dist/chunks/md-120.js +0 -1
- package/dist/chunks/md-121.js +0 -1
- package/dist/chunks/md-122.js +0 -1
- package/dist/chunks/md-123.js +0 -1
- package/dist/chunks/md-124.js +0 -1
- package/dist/chunks/md-125.js +0 -1
- package/dist/chunks/md-126.js +0 -1
- package/dist/chunks/md-127.js +0 -1
- package/dist/chunks/md-128.js +0 -1
- package/dist/chunks/md-129.js +0 -1
- package/dist/chunks/md-13.js +0 -13
- package/dist/chunks/md-130.js +0 -1
- package/dist/chunks/md-131.js +0 -1
- package/dist/chunks/md-132.js +0 -1
- package/dist/chunks/md-133.js +0 -1
- package/dist/chunks/md-134.js +0 -1
- package/dist/chunks/md-135.js +0 -1
- package/dist/chunks/md-136.js +0 -1
- package/dist/chunks/md-137.js +0 -1
- package/dist/chunks/md-138.js +0 -1
- package/dist/chunks/md-139.js +0 -1
- package/dist/chunks/md-14.js +0 -1
- package/dist/chunks/md-140.js +0 -1
- package/dist/chunks/md-141.js +0 -1
- package/dist/chunks/md-142.js +0 -1
- package/dist/chunks/md-143.js +0 -1
- package/dist/chunks/md-144.js +0 -1
- package/dist/chunks/md-145.js +0 -1
- package/dist/chunks/md-146.js +0 -1
- package/dist/chunks/md-147.js +0 -1
- package/dist/chunks/md-148.js +0 -1
- package/dist/chunks/md-149.js +0 -1
- package/dist/chunks/md-15.js +0 -118
- package/dist/chunks/md-150.js +0 -1
- package/dist/chunks/md-151.js +0 -1
- package/dist/chunks/md-152.js +0 -1
- package/dist/chunks/md-153.js +0 -1
- package/dist/chunks/md-154.js +0 -1
- package/dist/chunks/md-155.js +0 -1
- package/dist/chunks/md-156.js +0 -1
- package/dist/chunks/md-157.js +0 -1
- package/dist/chunks/md-158.js +0 -1
- package/dist/chunks/md-159.js +0 -1
- package/dist/chunks/md-16.js +0 -19
- package/dist/chunks/md-160.js +0 -1
- package/dist/chunks/md-161.js +0 -1
- package/dist/chunks/md-162.js +0 -1
- package/dist/chunks/md-163.js +0 -1
- package/dist/chunks/md-164.js +0 -1
- package/dist/chunks/md-165.js +0 -1
- package/dist/chunks/md-166.js +0 -1
- package/dist/chunks/md-167.js +0 -1
- package/dist/chunks/md-168.js +0 -1
- package/dist/chunks/md-169.js +0 -1
- package/dist/chunks/md-17.js +0 -17
- package/dist/chunks/md-170.js +0 -1
- package/dist/chunks/md-171.js +0 -1
- package/dist/chunks/md-172.js +0 -1
- package/dist/chunks/md-173.js +0 -1
- package/dist/chunks/md-174.js +0 -1
- package/dist/chunks/md-175.js +0 -1
- package/dist/chunks/md-176.js +0 -1
- package/dist/chunks/md-177.js +0 -1
- package/dist/chunks/md-178.js +0 -1
- package/dist/chunks/md-179.js +0 -1
- package/dist/chunks/md-18.js +0 -12
- package/dist/chunks/md-180.js +0 -1
- package/dist/chunks/md-181.js +0 -1
- package/dist/chunks/md-182.js +0 -1
- package/dist/chunks/md-183.js +0 -1
- package/dist/chunks/md-184.js +0 -1
- package/dist/chunks/md-185.js +0 -1
- package/dist/chunks/md-186.js +0 -1
- package/dist/chunks/md-187.js +0 -1
- package/dist/chunks/md-188.js +0 -1
- package/dist/chunks/md-189.js +0 -1
- package/dist/chunks/md-19.js +0 -1
- package/dist/chunks/md-190.js +0 -1
- package/dist/chunks/md-191.js +0 -1
- package/dist/chunks/md-192.js +0 -1
- package/dist/chunks/md-193.js +0 -1
- package/dist/chunks/md-194.js +0 -1
- package/dist/chunks/md-195.js +0 -1
- package/dist/chunks/md-196.js +0 -1
- package/dist/chunks/md-197.js +0 -1
- package/dist/chunks/md-198.js +0 -1
- package/dist/chunks/md-199.js +0 -1
- package/dist/chunks/md-2.js +0 -1
- package/dist/chunks/md-20.js +0 -7
- package/dist/chunks/md-200.js +0 -1
- package/dist/chunks/md-201.js +0 -1
- package/dist/chunks/md-202.js +0 -1
- package/dist/chunks/md-203.js +0 -1
- package/dist/chunks/md-204.js +0 -1
- package/dist/chunks/md-205.js +0 -1
- package/dist/chunks/md-206.js +0 -1
- package/dist/chunks/md-207.js +0 -1
- package/dist/chunks/md-208.js +0 -1
- package/dist/chunks/md-209.js +0 -1
- package/dist/chunks/md-21.js +0 -12
- package/dist/chunks/md-210.js +0 -1
- package/dist/chunks/md-211.js +0 -1
- package/dist/chunks/md-212.js +0 -1
- package/dist/chunks/md-213.js +0 -1
- package/dist/chunks/md-214.js +0 -1
- package/dist/chunks/md-215.js +0 -1
- package/dist/chunks/md-216.js +0 -1
- package/dist/chunks/md-217.js +0 -1
- package/dist/chunks/md-218.js +0 -1
- package/dist/chunks/md-219.js +0 -1
- package/dist/chunks/md-22.js +0 -1
- package/dist/chunks/md-220.js +0 -1
- package/dist/chunks/md-221.js +0 -1
- package/dist/chunks/md-222.js +0 -1
- package/dist/chunks/md-223.js +0 -1
- package/dist/chunks/md-224.js +0 -1
- package/dist/chunks/md-225.js +0 -1
- package/dist/chunks/md-226.js +0 -1
- package/dist/chunks/md-227.js +0 -1
- package/dist/chunks/md-228.js +0 -1
- package/dist/chunks/md-229.js +0 -1
- package/dist/chunks/md-23.js +0 -36
- package/dist/chunks/md-230.js +0 -1
- package/dist/chunks/md-231.js +0 -1
- package/dist/chunks/md-232.js +0 -1
- package/dist/chunks/md-233.js +0 -1
- package/dist/chunks/md-234.js +0 -1
- package/dist/chunks/md-235.js +0 -1
- package/dist/chunks/md-236.js +0 -1
- package/dist/chunks/md-237.js +0 -1
- package/dist/chunks/md-238.js +0 -1
- package/dist/chunks/md-239.js +0 -1
- package/dist/chunks/md-24.js +0 -1
- package/dist/chunks/md-240.js +0 -1
- package/dist/chunks/md-241.js +0 -1
- package/dist/chunks/md-242.js +0 -1
- package/dist/chunks/md-243.js +0 -1
- package/dist/chunks/md-244.js +0 -1
- package/dist/chunks/md-245.js +0 -1
- package/dist/chunks/md-246.js +0 -1
- package/dist/chunks/md-247.js +0 -1
- package/dist/chunks/md-248.js +0 -1
- package/dist/chunks/md-249.js +0 -1
- package/dist/chunks/md-25.js +0 -1
- package/dist/chunks/md-250.js +0 -1
- package/dist/chunks/md-251.js +0 -1
- package/dist/chunks/md-252.js +0 -1
- package/dist/chunks/md-253.js +0 -1
- package/dist/chunks/md-254.js +0 -1
- package/dist/chunks/md-255.js +0 -1
- package/dist/chunks/md-256.js +0 -1
- package/dist/chunks/md-257.js +0 -1
- package/dist/chunks/md-258.js +0 -1
- package/dist/chunks/md-259.js +0 -1
- package/dist/chunks/md-26.js +0 -55
- package/dist/chunks/md-260.js +0 -1
- package/dist/chunks/md-261.js +0 -1
- package/dist/chunks/md-262.js +0 -1
- package/dist/chunks/md-263.js +0 -1
- package/dist/chunks/md-264.js +0 -1
- package/dist/chunks/md-265.js +0 -1
- package/dist/chunks/md-266.js +0 -1
- package/dist/chunks/md-267.js +0 -1
- package/dist/chunks/md-268.js +0 -1
- package/dist/chunks/md-269.js +0 -1
- package/dist/chunks/md-27.js +0 -1
- package/dist/chunks/md-270.js +0 -1
- package/dist/chunks/md-271.js +0 -1
- package/dist/chunks/md-272.js +0 -1
- package/dist/chunks/md-273.js +0 -1
- package/dist/chunks/md-28.js +0 -1
- package/dist/chunks/md-29.js +0 -20
- package/dist/chunks/md-3.js +0 -1
- package/dist/chunks/md-30.js +0 -22
- package/dist/chunks/md-31.js +0 -5
- package/dist/chunks/md-32.js +0 -5
- package/dist/chunks/md-33.js +0 -1
- package/dist/chunks/md-34.js +0 -21
- package/dist/chunks/md-35.js +0 -20
- package/dist/chunks/md-36.js +0 -119
- package/dist/chunks/md-37.js +0 -34
- package/dist/chunks/md-38.js +0 -1
- package/dist/chunks/md-39.js +0 -33
- package/dist/chunks/md-4.js +0 -1
- package/dist/chunks/md-40.js +0 -15
- package/dist/chunks/md-41.js +0 -1
- package/dist/chunks/md-42.js +0 -27
- package/dist/chunks/md-43.js +0 -5
- package/dist/chunks/md-44.js +0 -34
- package/dist/chunks/md-45.js +0 -13
- package/dist/chunks/md-46.js +0 -20
- package/dist/chunks/md-47.js +0 -46
- package/dist/chunks/md-48.js +0 -13
- package/dist/chunks/md-49.js +0 -5
- package/dist/chunks/md-5.js +0 -1
- package/dist/chunks/md-50.js +0 -68
- package/dist/chunks/md-51.js +0 -24
- package/dist/chunks/md-52.js +0 -14
- package/dist/chunks/md-53.js +0 -5
- package/dist/chunks/md-54.js +0 -39
- package/dist/chunks/md-55.js +0 -22
- package/dist/chunks/md-56.js +0 -5
- package/dist/chunks/md-57.js +0 -1
- package/dist/chunks/md-58.js +0 -22
- package/dist/chunks/md-59.js +0 -5
- package/dist/chunks/md-6.js +0 -3
- package/dist/chunks/md-60.js +0 -15
- package/dist/chunks/md-61.js +0 -42
- package/dist/chunks/md-62.js +0 -30
- package/dist/chunks/md-63.js +0 -72
- package/dist/chunks/md-64.js +0 -19
- package/dist/chunks/md-65.js +0 -17
- package/dist/chunks/md-66.js +0 -22
- package/dist/chunks/md-67.js +0 -84
- package/dist/chunks/md-68.js +0 -7
- package/dist/chunks/md-69.js +0 -77
- package/dist/chunks/md-7.js +0 -82
- package/dist/chunks/md-70.js +0 -72
- package/dist/chunks/md-71.js +0 -61
- package/dist/chunks/md-72.js +0 -16
- package/dist/chunks/md-73.js +0 -5
- package/dist/chunks/md-74.js +0 -30
- package/dist/chunks/md-75.js +0 -3
- package/dist/chunks/md-76.js +0 -179
- package/dist/chunks/md-77.js +0 -39
- package/dist/chunks/md-78.js +0 -85
- package/dist/chunks/md-79.js +0 -104
- package/dist/chunks/md-8.js +0 -1
- package/dist/chunks/md-80.js +0 -12
- package/dist/chunks/md-81.js +0 -43
- package/dist/chunks/md-82.js +0 -21
- package/dist/chunks/md-83.js +0 -1
- package/dist/chunks/md-84.js +0 -1
- package/dist/chunks/md-85.js +0 -1
- package/dist/chunks/md-86.js +0 -1
- package/dist/chunks/md-87.js +0 -1
- package/dist/chunks/md-88.js +0 -1
- package/dist/chunks/md-89.js +0 -1
- package/dist/chunks/md-9.js +0 -1
- package/dist/chunks/md-90.js +0 -1
- package/dist/chunks/md-91.js +0 -1
- package/dist/chunks/md-92.js +0 -1
- package/dist/chunks/md-93.js +0 -1
- package/dist/chunks/md-94.js +0 -1
- package/dist/chunks/md-95.js +0 -1
- package/dist/chunks/md-96.js +0 -1
- package/dist/chunks/md-97.js +0 -1
- package/dist/chunks/md-98.js +0 -1
- package/dist/chunks/md-99.js +0 -1
- package/dist/comp/md-accordion-entry.js +0 -1
- package/dist/comp/md-accordion-item-entry.js +0 -1
- package/dist/comp/md-accordion-item.js +0 -11
- package/dist/comp/md-accordion.js +0 -11
- package/dist/comp/md-activity-button-entry.js +0 -1
- package/dist/comp/md-activity-button.js +0 -8
- package/dist/comp/md-alert-banner-entry.js +0 -1
- package/dist/comp/md-alert-banner.js +0 -8
- package/dist/comp/md-alert-entry.js +0 -1
- package/dist/comp/md-alert.js +0 -8
- package/dist/comp/md-avatar-entry.js +0 -1
- package/dist/comp/md-avatar.js +0 -10
- package/dist/comp/md-badge-entry.js +0 -1
- package/dist/comp/md-badge.js +0 -4
- package/dist/comp/md-breadcrumb-entry.js +0 -1
- package/dist/comp/md-breadcrumb.js +0 -4
- package/dist/comp/md-button-entry.js +0 -1
- package/dist/comp/md-button-group-entry.js +0 -1
- package/dist/comp/md-button-group.js +0 -10
- package/dist/comp/md-button.js +0 -6
- package/dist/comp/md-card-entry.js +0 -1
- package/dist/comp/md-card.js +0 -17
- package/dist/comp/md-chat-message-entry.js +0 -1
- package/dist/comp/md-chat-message.js +0 -11
- package/dist/comp/md-checkbox-entry.js +0 -1
- package/dist/comp/md-checkbox.js +0 -11
- package/dist/comp/md-checkboxgroup-entry.js +0 -1
- package/dist/comp/md-checkboxgroup.js +0 -11
- package/dist/comp/md-chip-entry.js +0 -1
- package/dist/comp/md-chip.js +0 -16
- package/dist/comp/md-coachmark-entry.js +0 -1
- package/dist/comp/md-coachmark.js +0 -12
- package/dist/comp/md-combobox-entry.js +0 -1
- package/dist/comp/md-combobox.js +0 -15
- package/dist/comp/md-composite-avatar-entry.js +0 -1
- package/dist/comp/md-composite-avatar.js +0 -5
- package/dist/comp/md-date-range-picker-entry.js +0 -1
- package/dist/comp/md-date-range-picker.js +0 -23
- package/dist/comp/md-date-time-picker-entry.js +0 -1
- package/dist/comp/md-date-time-picker.js +0 -16
- package/dist/comp/md-datepicker-calendar-entry.js +0 -1
- package/dist/comp/md-datepicker-calendar.js +0 -13
- package/dist/comp/md-datepicker-day-entry.js +0 -1
- package/dist/comp/md-datepicker-day.js +0 -9
- package/dist/comp/md-datepicker-entry.js +0 -1
- package/dist/comp/md-datepicker-month-entry.js +0 -1
- package/dist/comp/md-datepicker-month.js +0 -11
- package/dist/comp/md-datepicker-week-entry.js +0 -1
- package/dist/comp/md-datepicker-week.js +0 -10
- package/dist/comp/md-datepicker.js +0 -22
- package/dist/comp/md-draggable-entry.js +0 -1
- package/dist/comp/md-draggable-item-entry.js +0 -1
- package/dist/comp/md-draggable-item.js +0 -11
- package/dist/comp/md-draggable.js +0 -12
- package/dist/comp/md-dropdown-entry.js +0 -1
- package/dist/comp/md-dropdown.js +0 -13
- package/dist/comp/md-editable-field-entry.js +0 -1
- package/dist/comp/md-editable-field.js +0 -14
- package/dist/comp/md-favorite-entry.js +0 -1
- package/dist/comp/md-favorite.js +0 -13
- package/dist/comp/md-floating-minimize-entry.js +0 -1
- package/dist/comp/md-floating-minimize.js +0 -14
- package/dist/comp/md-floating-modal-entry.js +0 -1
- package/dist/comp/md-floating-modal.js +0 -15
- package/dist/comp/md-form-entry.js +0 -1
- package/dist/comp/md-form.js +0 -9
- package/dist/comp/md-help-text-entry.js +0 -1
- package/dist/comp/md-help-text.js +0 -4
- package/dist/comp/md-icon-entry.js +0 -1
- package/dist/comp/md-icon.js +0 -7
- package/dist/comp/md-inpu.js +0 -12
- package/dist/comp/md-input-entry.js +0 -1
- package/dist/comp/md-input-file.js +0 -1
- package/dist/comp/md-input.js +0 -12
- package/dist/comp/md-label-entry.js +0 -1
- package/dist/comp/md-label.js +0 -4
- package/dist/comp/md-link-entry.js +0 -1
- package/dist/comp/md-link.js +0 -4
- package/dist/comp/md-list-entry.js +0 -1
- package/dist/comp/md-list-item-entry.js +0 -1
- package/dist/comp/md-list-item.js +0 -11
- package/dist/comp/md-list.js +0 -11
- package/dist/comp/md-loading-entry.js +0 -1
- package/dist/comp/md-loading.js +0 -4
- package/dist/comp/md-meeting-alert-entry.js +0 -1
- package/dist/comp/md-meeting-alert.js +0 -11
- package/dist/comp/md-menu-entry.js +0 -1
- package/dist/comp/md-menu-item-entry.js +0 -1
- package/dist/comp/md-menu-item.js +0 -4
- package/dist/comp/md-menu-overlay-entry.js +0 -1
- package/dist/comp/md-menu-overlay.js +0 -7
- package/dist/comp/md-menu.js +0 -8
- package/dist/comp/md-modal-entry.js +0 -1
- package/dist/comp/md-modal.js +0 -13
- package/dist/comp/md-pagination-entry.js +0 -1
- package/dist/comp/md-pagination.js +0 -4
- package/dist/comp/md-phone-input-entry.js +0 -1
- package/dist/comp/md-phone-input.js +0 -18
- package/dist/comp/md-progress-bar-entry.js +0 -1
- package/dist/comp/md-progress-bar.js +0 -4
- package/dist/comp/md-radio-entry.js +0 -1
- package/dist/comp/md-radio.js +0 -11
- package/dist/comp/md-radiogroup-entry.js +0 -1
- package/dist/comp/md-radiogroup.js +0 -11
- package/dist/comp/md-slider-entry.js +0 -1
- package/dist/comp/md-slider.js +0 -10
- package/dist/comp/md-spinner-entry.js +0 -1
- package/dist/comp/md-spinner.js +0 -4
- package/dist/comp/md-tab-entry.js +0 -1
- package/dist/comp/md-tab-panel-entry.js +0 -1
- package/dist/comp/md-tab-panel.js +0 -11
- package/dist/comp/md-tab.js +0 -11
- package/dist/comp/md-table-advanced-entry.js +0 -1
- package/dist/comp/md-table-advanced.js +0 -12
- package/dist/comp/md-table-entry.js +0 -1
- package/dist/comp/md-table.js +0 -4
- package/dist/comp/md-tabs-entry.js +0 -1
- package/dist/comp/md-tabs.js +0 -16
- package/dist/comp/md-task-item-entry.js +0 -1
- package/dist/comp/md-task-item.js +0 -9
- package/dist/comp/md-theme-entry.js +0 -1
- package/dist/comp/md-theme.js +0 -4
- package/dist/comp/md-timepicker-entry.js +0 -1
- package/dist/comp/md-timepicker.js +0 -15
- package/dist/comp/md-toggle-switch-entry.js +0 -1
- package/dist/comp/md-toggle-switch.js +0 -11
- package/dist/comp/md-tooltip-entry.js +0 -1
- package/dist/comp/md-tooltip.js +0 -11
- package/dist/index-entry.js +0 -34
- package/dist/index.js +0 -84
- package/dist/types/components/accordion/Accordion.d.ts +0 -32
- package/dist/types/components/accordion/AccordionItem.d.ts +0 -33
- package/dist/types/components/activity-button/ActivityButton.d.ts +0 -41
- package/dist/types/components/alert/Alert.d.ts +0 -35
- package/dist/types/components/alert-banner/AlertBanner.d.ts +0 -29
- package/dist/types/components/avatar/Avatar.d.ts +0 -48
- package/dist/types/components/avatar/CompositeAvatar.d.ts +0 -25
- package/dist/types/components/badge/Badge.d.ts +0 -36
- package/dist/types/components/breadcrumb/Breadcrumb.d.ts +0 -24
- package/dist/types/components/button/Button.d.ts +0 -104
- package/dist/types/components/button-group/ButtonGroup.d.ts +0 -45
- package/dist/types/components/card/Card.d.ts +0 -35
- package/dist/types/components/chat-message/ChatMessage.d.ts +0 -18
- package/dist/types/components/checkbox/Checkbox.d.ts +0 -44
- package/dist/types/components/checkbox/CheckboxGroup.d.ts +0 -29
- package/dist/types/components/chip/Chip.d.ts +0 -59
- package/dist/types/components/coachmark/Coachmark.d.ts +0 -44
- package/dist/types/components/code-editor/CodeEditor.d.ts +0 -40
- package/dist/types/components/combobox/ComboBox.d.ts +0 -133
- package/dist/types/components/date-range-picker/DateRangePicker.d.ts +0 -27
- package/dist/types/components/date-time-picker/DateTimePicker.d.ts +0 -43
- package/dist/types/components/datepicker/DatePicker.d.ts +0 -51
- package/dist/types/components/datepicker/datepicker-calendar/DatePickerCalendar.d.ts +0 -39
- package/dist/types/components/datepicker/datepicker-day/DatePickerDay.d.ts +0 -45
- package/dist/types/components/datepicker/datepicker-month/DatePickerMonth.d.ts +0 -26
- package/dist/types/components/datepicker/datepicker-week/DatePickerWeek.d.ts +0 -27
- package/dist/types/components/draggable/Draggable.d.ts +0 -62
- package/dist/types/components/draggable/DraggableItem.d.ts +0 -29
- package/dist/types/components/dropdown/Dropdown.d.ts +0 -82
- package/dist/types/components/editable-textfield/EditableTextfield.d.ts +0 -53
- package/dist/types/components/favorite/Favorite.d.ts +0 -36
- package/dist/types/components/floating-modal/FloatingMinimizedModal.d.ts +0 -53
- package/dist/types/components/floating-modal/FloatingModal.d.ts +0 -68
- package/dist/types/components/form/Form.d.ts +0 -55
- package/dist/types/components/help-text/HelpText.d.ts +0 -26
- package/dist/types/components/icon/Icon.d.ts +0 -57
- package/dist/types/components/input/Input.d.ts +0 -130
- package/dist/types/components/input-file/InputFile.d.ts +0 -25
- package/dist/types/components/label/Label.d.ts +0 -43
- package/dist/types/components/link/Link.d.ts +0 -32
- package/dist/types/components/list/List.d.ts +0 -40
- package/dist/types/components/list/ListItem.d.ts +0 -22
- package/dist/types/components/loading/Loading.d.ts +0 -24
- package/dist/types/components/meeting-alert/CompositeAvatar.d.ts +0 -1
- package/dist/types/components/meeting-alert/MeetingAlert.d.ts +0 -46
- package/dist/types/components/menu/Menu.d.ts +0 -46
- package/dist/types/components/menu/MenuItem.d.ts +0 -46
- package/dist/types/components/menu-overlay/MenuOverlay.d.ts +0 -63
- package/dist/types/components/modal/Modal.d.ts +0 -73
- package/dist/types/components/pagination/Pagination.d.ts +0 -31
- package/dist/types/components/phone-input/PhoneInput.d.ts +0 -61
- package/dist/types/components/progress-bar/ProgressBar.d.ts +0 -35
- package/dist/types/components/radio/Radio.d.ts +0 -33
- package/dist/types/components/radio/RadioGroup.d.ts +0 -40
- package/dist/types/components/sass-stats/SassStats.d.ts +0 -29
- package/dist/types/components/slider/Slider.d.ts +0 -46
- package/dist/types/components/spinner/Spinner.d.ts +0 -24
- package/dist/types/components/table/Table.d.ts +0 -62
- package/dist/types/components/table-advanced/TableAdvanced.d.ts +0 -165
- package/dist/types/components/table-advanced/src/decorators.d.ts +0 -32
- package/dist/types/components/table-advanced/src/filter.d.ts +0 -25
- package/dist/types/components/tabs/Tab.d.ts +0 -58
- package/dist/types/components/tabs/TabPanel.d.ts +0 -25
- package/dist/types/components/tabs/Tabs.d.ts +0 -115
- package/dist/types/components/taskitem/TaskItem.d.ts +0 -37
- package/dist/types/components/theme/Theme.d.ts +0 -82
- package/dist/types/components/theme/index.d.ts +0 -5
- package/dist/types/components/timepicker/TimePicker.d.ts +0 -49
- package/dist/types/components/toggle-switch/ToggleSwitch.d.ts +0 -34
- package/dist/types/components/tooltip/Tooltip.d.ts +0 -49
- package/dist/types/constants.d.ts +0 -35
- package/dist/types/index.d.ts +0 -72
- package/dist/types/internal-components/color-table/ColorTable.d.ts +0 -13
- package/dist/types/internal-components/color-table/data.d.ts +0 -551
- package/dist/types/internal-components/color-table/utils.d.ts +0 -1
- package/dist/types/mixins/CustomElementCheck.d.ts +0 -1
- package/dist/types/mixins/DedupeMixin.d.ts +0 -28
- package/dist/types/mixins/FocusMixin.d.ts +0 -44
- package/dist/types/mixins/FocusTrapMixin.d.ts +0 -18
- package/dist/types/mixins/ResizeMixin.d.ts +0 -52
- package/dist/types/mixins/RovingTabIndexMixin.d.ts +0 -31
- package/dist/types/mixins/SlottedMixin.d.ts +0 -43
- package/dist/types/mixins/index.d.ts +0 -14
- package/dist/types/utils/dateUtils.d.ts +0 -31
- package/dist/types/utils/enums.d.ts +0 -17
- package/dist/types/utils/helpers.d.ts +0 -17
- package/dist/types/utils/validations.d.ts +0 -25
- package/dist/types/wc_scss/colors/vars/color-table-data-string.d.ts +0 -1
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
+
/* eslint-disable no-undef */
|
|
3
|
+
const colors = require("@momentum-ui/tokens/dist/colors.json");
|
|
4
|
+
|
|
5
|
+
const button = {
|
|
6
|
+
prefix: "md",
|
|
7
|
+
component: "input",
|
|
8
|
+
default: {
|
|
9
|
+
"bg-color": {
|
|
10
|
+
light: colors.white[100].name,
|
|
11
|
+
dark: colors.gray[100].name
|
|
12
|
+
},
|
|
13
|
+
"text-color": {
|
|
14
|
+
light: colors.gray[70].name,
|
|
15
|
+
dark: colors.gray["05"].name
|
|
16
|
+
},
|
|
17
|
+
"border-color": {
|
|
18
|
+
light: colors.gray[30].name,
|
|
19
|
+
dark: colors.gray[80].name
|
|
20
|
+
},
|
|
21
|
+
hover: {
|
|
22
|
+
"bg-color": {
|
|
23
|
+
light: colors.gray[30].name,
|
|
24
|
+
dark: colors.gray[90].name
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"read-only": {
|
|
28
|
+
"bg-color": {
|
|
29
|
+
light: colors.gray[10].name,
|
|
30
|
+
dark: colors.gray[90].name
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
focus: {
|
|
34
|
+
"border-color": {
|
|
35
|
+
light: colors.blue[60].name,
|
|
36
|
+
dark: colors.blue[40].name
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
pressed: {
|
|
40
|
+
"bg-color": {
|
|
41
|
+
light: colors.gray[30].name,
|
|
42
|
+
dark: colors.gray[70].name
|
|
43
|
+
},
|
|
44
|
+
"border-color": {
|
|
45
|
+
light: colors.gray[30].name,
|
|
46
|
+
dark: colors.gray[70].name
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
disabled: {
|
|
51
|
+
"bg-color": {
|
|
52
|
+
light: colors.gray[10].name,
|
|
53
|
+
dark: colors.gray[90].name
|
|
54
|
+
},
|
|
55
|
+
"text-color": {
|
|
56
|
+
light: colors.gray[40].name,
|
|
57
|
+
dark: colors.gray[70].name
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
error: {
|
|
61
|
+
"bg-color": {
|
|
62
|
+
light: colors.red[10].name,
|
|
63
|
+
dark: colors.red[90].name
|
|
64
|
+
},
|
|
65
|
+
"border-color": {
|
|
66
|
+
light: colors.red[50].name,
|
|
67
|
+
dark: colors.red[50].name
|
|
68
|
+
},
|
|
69
|
+
"text-color": {
|
|
70
|
+
light: colors.gray[100].name,
|
|
71
|
+
dark: colors.gray["05"].name
|
|
72
|
+
},
|
|
73
|
+
"message-text-color": {
|
|
74
|
+
light: colors.red[50].name,
|
|
75
|
+
dark: colors.red[50].name
|
|
76
|
+
},
|
|
77
|
+
hover: {
|
|
78
|
+
"bg-color": {
|
|
79
|
+
light: colors.red[20].name,
|
|
80
|
+
dark: colors.red[80].name
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
pressed: {
|
|
84
|
+
"bg-color": {
|
|
85
|
+
light: colors.red[30].name,
|
|
86
|
+
dark: colors.red[70].name
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
succes: {
|
|
91
|
+
"border-color": {
|
|
92
|
+
light: colors.green[50].name,
|
|
93
|
+
dark: colors.blue[40].name
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
warning: {
|
|
97
|
+
"border-color": {
|
|
98
|
+
light: colors.yellow[40].name,
|
|
99
|
+
dark: colors.yellow[40].name
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
filled: {
|
|
103
|
+
"bg-color": {
|
|
104
|
+
light: colors.gray[10].name,
|
|
105
|
+
dark: colors.gray[90].name
|
|
106
|
+
},
|
|
107
|
+
disabled: {
|
|
108
|
+
"bg-color": {
|
|
109
|
+
light: colors.gray[10].name,
|
|
110
|
+
dark: colors.gray[90].name
|
|
111
|
+
}
|
|
112
|
+
},
|
|
113
|
+
hover: {
|
|
114
|
+
"bg-color": {
|
|
115
|
+
light: colors.gray[20].name,
|
|
116
|
+
dark: colors.gray[70].name
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
},
|
|
120
|
+
"focus-ring": {
|
|
121
|
+
color: {
|
|
122
|
+
light: colors.blue[60].name,
|
|
123
|
+
dark: colors.blue[40].name
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
module.exports = button;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import "./InputFile";
|
|
2
|
+
import { withA11y } from "@storybook/addon-a11y";
|
|
3
|
+
import { html } from "lit-element";
|
|
4
|
+
import { withKnobs, text, boolean } from '@storybook/addon-knobs';
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: "Components/Input File",
|
|
8
|
+
component: "md-input-file",
|
|
9
|
+
decorators: [withKnobs, withA11y],
|
|
10
|
+
parameters: {
|
|
11
|
+
a11y: {
|
|
12
|
+
element: "md-input-file"
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export const InputFile = () => {
|
|
18
|
+
const darkTheme = boolean("darkMode", false);
|
|
19
|
+
const lumos = boolean("Lumos Theme", false);
|
|
20
|
+
const language = text("Enter Accept Language", "JavaScript");
|
|
21
|
+
|
|
22
|
+
return html`
|
|
23
|
+
<md-theme class="theme-toggle" id="input-file" ?darkTheme=${darkTheme} ?lumos=${lumos}>
|
|
24
|
+
<md-input-file .accept-language=${language}></md-input-file>
|
|
25
|
+
</md-theme>
|
|
26
|
+
`;
|
|
27
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Button } from "@/components/button/Button";
|
|
2
|
+
import { elementUpdated, fixture, fixtureCleanup } from "@open-wc/testing-helpers";
|
|
3
|
+
import { html } from "lit-element";
|
|
4
|
+
import "./InputFile";
|
|
5
|
+
import { InputFile } from "./InputFile";
|
|
6
|
+
|
|
7
|
+
describe("InputFile component", () => {
|
|
8
|
+
let element: InputFile.ELEMENT;
|
|
9
|
+
|
|
10
|
+
afterEach(fixtureCleanup);
|
|
11
|
+
|
|
12
|
+
beforeEach(async () => {
|
|
13
|
+
element = await fixture<InputFile.ELEMENT>(
|
|
14
|
+
html`
|
|
15
|
+
<md-input-file></md-input-file>
|
|
16
|
+
`
|
|
17
|
+
);
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
test("should render input file", async () => {
|
|
21
|
+
expect(element).toBeDefined();
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
test("should check acceptable lang", async () => {
|
|
25
|
+
element.acceptLanguage = "Jabascript";
|
|
26
|
+
|
|
27
|
+
const spyWarn = jest.spyOn(console, "warn");
|
|
28
|
+
|
|
29
|
+
await elementUpdated(element);
|
|
30
|
+
|
|
31
|
+
expect(spyWarn).toHaveBeenCalledWith("Please set correct language name");
|
|
32
|
+
spyWarn.mockRestore();
|
|
33
|
+
});
|
|
34
|
+
|
|
35
|
+
test("should trigger input click", async () => {
|
|
36
|
+
const mdButton = element.shadowRoot!.querySelector(".md-input-file-btn") as Button.ELEMENT;
|
|
37
|
+
const button = mdButton.shadowRoot!.querySelector("button");
|
|
38
|
+
|
|
39
|
+
button!.click();
|
|
40
|
+
element.input.dispatchEvent(new Event("change"));
|
|
41
|
+
await elementUpdated(element);
|
|
42
|
+
});
|
|
43
|
+
});
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import "@/components/button/Button";
|
|
2
|
+
import { customElementWithCheck } from "@/mixins";
|
|
3
|
+
import reset from "@/wc_scss/reset.scss";
|
|
4
|
+
import hljs from "highlight.js/lib/core";
|
|
5
|
+
import { html, internalProperty, LitElement, property, PropertyValues, query } from "lit-element";
|
|
6
|
+
import { nothing } from "lit-html";
|
|
7
|
+
import { ifDefined } from "lit-html/directives/if-defined";
|
|
8
|
+
import styles from "./scss/module.scss";
|
|
9
|
+
|
|
10
|
+
export namespace InputFile {
|
|
11
|
+
@customElementWithCheck("md-input-file")
|
|
12
|
+
export class ELEMENT extends LitElement {
|
|
13
|
+
@property({ type: String, attribute: "accept-language" }) acceptLanguage = "javascript";
|
|
14
|
+
@property({ type: String }) getLocalization = "Input File";
|
|
15
|
+
|
|
16
|
+
@query("input[type='file']") input!: HTMLInputElement;
|
|
17
|
+
|
|
18
|
+
@internalProperty() private acceptTypes = "";
|
|
19
|
+
@internalProperty() private fileName = "";
|
|
20
|
+
|
|
21
|
+
static get styles() {
|
|
22
|
+
return [reset, styles];
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
triggerFileLoad(event: MouseEvent) {
|
|
26
|
+
event.preventDefault();
|
|
27
|
+
this.input.click();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async handleFile(event: Event) {
|
|
31
|
+
event.preventDefault();
|
|
32
|
+
|
|
33
|
+
const fileList = this.input.files;
|
|
34
|
+
if (fileList && fileList.length !== 0)
|
|
35
|
+
for (const file of fileList) {
|
|
36
|
+
let fileTextContent = "";
|
|
37
|
+
this.fileName = file.name;
|
|
38
|
+
|
|
39
|
+
try {
|
|
40
|
+
fileTextContent = (await this.readFile(file)) as string;
|
|
41
|
+
} catch (e) {
|
|
42
|
+
fileTextContent = "";
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
private readFile(file: File) {
|
|
48
|
+
return new Promise((resolve, reject) => {
|
|
49
|
+
const reader = new FileReader();
|
|
50
|
+
|
|
51
|
+
reader.onload = res => {
|
|
52
|
+
resolve(res.target!.result);
|
|
53
|
+
};
|
|
54
|
+
reader.onerror = err => reject(err);
|
|
55
|
+
reader.readAsText(file);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
private async importLanguage(language: string) {
|
|
60
|
+
try {
|
|
61
|
+
const { default: importLanguage } = await import(`highlight.js/lib/languages/${language}`);
|
|
62
|
+
hljs.registerLanguage(`${language}`, importLanguage);
|
|
63
|
+
this.setAcceptTypes();
|
|
64
|
+
} catch {
|
|
65
|
+
console.warn("Please set correct language name");
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private getAllAcceptTypes() {
|
|
70
|
+
const listLanguages = hljs.listLanguages();
|
|
71
|
+
if (listLanguages.length) {
|
|
72
|
+
return listLanguages
|
|
73
|
+
.map((language: string) => hljs.getLanguage(`${language}`).aliases)
|
|
74
|
+
.map((aliases: string[]) => aliases.map((alias: string) => `.${alias}`))
|
|
75
|
+
.join(",");
|
|
76
|
+
}
|
|
77
|
+
return "";
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
private setAcceptTypes() {
|
|
81
|
+
this.acceptTypes = this.getAllAcceptTypes();
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
protected updated(changedProperties: PropertyValues) {
|
|
85
|
+
super.updated(changedProperties);
|
|
86
|
+
if (changedProperties.has("acceptLanguage")) {
|
|
87
|
+
this.importLanguage(this.acceptLanguage);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
render() {
|
|
92
|
+
return html`
|
|
93
|
+
<div class="md-input-file">
|
|
94
|
+
<label for="file-input">
|
|
95
|
+
<md-button color="blue" class="md-input-file-btn" @click=${this.triggerFileLoad}>
|
|
96
|
+
${this.getLocalization.trim()}
|
|
97
|
+
</md-button>
|
|
98
|
+
${this.fileName.length ? this.fileName : nothing}
|
|
99
|
+
</label>
|
|
100
|
+
<input
|
|
101
|
+
type="file"
|
|
102
|
+
id="file-input"
|
|
103
|
+
name="file-input"
|
|
104
|
+
accept=${ifDefined(this.acceptTypes || undefined)}
|
|
105
|
+
@change=${(event: Event) => this.handleFile(event)}
|
|
106
|
+
/>
|
|
107
|
+
</div>
|
|
108
|
+
`;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
declare global {
|
|
113
|
+
interface HTMLElementTagNameMap {
|
|
114
|
+
"md-input-file": InputFile.ELEMENT;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Cisco Systems, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { withA11y } from "@storybook/addon-a11y";
|
|
10
|
+
import { text, boolean, withKnobs } from "@storybook/addon-knobs";
|
|
11
|
+
import { html } from "lit-element";
|
|
12
|
+
import "@/components/input/Input";
|
|
13
|
+
import "@/components/label/Label";
|
|
14
|
+
import "@/components/theme/Theme";
|
|
15
|
+
import { action } from '@storybook/addon-actions';
|
|
16
|
+
|
|
17
|
+
export default {
|
|
18
|
+
title: "Components/Label",
|
|
19
|
+
component: "md-label",
|
|
20
|
+
decorators: [withKnobs, withA11y],
|
|
21
|
+
argTypes: {
|
|
22
|
+
theme: { table: { disable: true } },
|
|
23
|
+
radioLabel: { table: { disable: true } },
|
|
24
|
+
checkboxLabel: { table: { disable: true } },
|
|
25
|
+
toggleSwitchLabel: { table: { disable: true } },
|
|
26
|
+
active: { table: { disable: true } },
|
|
27
|
+
indeterminate: { table: { disable: true } },
|
|
28
|
+
labelClassMap: { table: { disable: true } }
|
|
29
|
+
},
|
|
30
|
+
parameters: {
|
|
31
|
+
a11y: {
|
|
32
|
+
element: "md-label"
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
export const Label = () => {
|
|
38
|
+
const darkTheme = boolean("darkMode", false);
|
|
39
|
+
const lumos = boolean("Lumos Theme", false);
|
|
40
|
+
const label = text("Label", "Label");
|
|
41
|
+
const withInput = boolean("With Input", false);
|
|
42
|
+
const secondaryLabel = text("Secondary Label", "");
|
|
43
|
+
|
|
44
|
+
if (withInput) {
|
|
45
|
+
return html`
|
|
46
|
+
<md-theme class="theme-toggle" id="label" ?darkTheme=${darkTheme} ?lumos=${lumos}>
|
|
47
|
+
<md-input @label-click=${action('click')} .label=${label} placeholder="placeholder text" .secondaryLabel=${secondaryLabel}> </md-input>
|
|
48
|
+
</md-theme>
|
|
49
|
+
`;
|
|
50
|
+
} else {
|
|
51
|
+
return html`
|
|
52
|
+
<md-theme class="theme-toggle" id="input" ?darkTheme=${darkTheme}>
|
|
53
|
+
<md-label htmlFor="#">${label}</md-label>
|
|
54
|
+
</md-theme>
|
|
55
|
+
`;
|
|
56
|
+
}
|
|
57
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { fixture, fixtureCleanup, oneEvent } from "@open-wc/testing-helpers";
|
|
2
|
+
import "./Label";
|
|
3
|
+
import { Label } from "./Label";
|
|
4
|
+
|
|
5
|
+
describe("Label", () => {
|
|
6
|
+
afterEach(fixtureCleanup);
|
|
7
|
+
test("should render one Label", async () => {
|
|
8
|
+
const element = await fixture(`<md-label label="Test Label Text"></md-label>`);
|
|
9
|
+
expect(element).not.toBeNull();
|
|
10
|
+
});
|
|
11
|
+
test("should dispatch click", async () => {
|
|
12
|
+
const element = await fixture<Label.ELEMENT>(`<md-label label="Test Label Text" htmlFor="firstValue"></md-label>`);
|
|
13
|
+
const event = new MouseEvent("click");
|
|
14
|
+
setTimeout(() => element.handleClick(event));
|
|
15
|
+
const { detail } = await oneEvent(element, "label-click");
|
|
16
|
+
expect(detail).toBeDefined();
|
|
17
|
+
expect(detail.htmlFor).toBe("firstValue");
|
|
18
|
+
});
|
|
19
|
+
test("should render slot if label not initialize in markup", async () => {
|
|
20
|
+
const element = await fixture(`<md-label></md-label>`);
|
|
21
|
+
expect(element.shadowRoot!.querySelectorAll("slot").length).toBe(1);
|
|
22
|
+
});
|
|
23
|
+
test("should render secondary Label", async () => {
|
|
24
|
+
const element = await fixture(`<md-label label="Label" secondaryLabel="Secondary Label"></md-label>`);
|
|
25
|
+
expect(element.getAttribute("secondaryLabel")).not.toBeNull();
|
|
26
|
+
});
|
|
27
|
+
});
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Cisco Systems, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import reset from "@/wc_scss/reset.scss";
|
|
10
|
+
import { customElementWithCheck } from "@/mixins/CustomElementCheck";
|
|
11
|
+
import { html, LitElement, property } from "lit-element";
|
|
12
|
+
import { classMap } from "lit-html/directives/class-map.js";
|
|
13
|
+
import styles from "./scss/module.scss";
|
|
14
|
+
|
|
15
|
+
export namespace Label {
|
|
16
|
+
export type LabelEventDetail = { htmlFor: string };
|
|
17
|
+
|
|
18
|
+
@customElementWithCheck("md-label")
|
|
19
|
+
export class ELEMENT extends LitElement {
|
|
20
|
+
@property({ type: String }) label = "";
|
|
21
|
+
@property({ type: String }) theme = "";
|
|
22
|
+
@property({ type: Boolean }) radioLabel = false;
|
|
23
|
+
@property({ type: Boolean }) checkboxLabel = false;
|
|
24
|
+
@property({ type: Boolean }) toggleSwitchLabel = false;
|
|
25
|
+
@property({ type: String }) htmlFor = "";
|
|
26
|
+
@property({ type: Boolean }) active = false;
|
|
27
|
+
@property({ type: Boolean }) disabled = false;
|
|
28
|
+
@property({ type: Boolean }) indeterminate = false;
|
|
29
|
+
@property({ type: Boolean }) secondaryLabel = false;
|
|
30
|
+
|
|
31
|
+
static get styles() {
|
|
32
|
+
return [reset, styles];
|
|
33
|
+
}
|
|
34
|
+
setFocus() {
|
|
35
|
+
this.dispatchEvent(new CustomEvent("setFocus"));
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
get labelClassMap() {
|
|
39
|
+
return {
|
|
40
|
+
[`md-label--${this.theme}`]: !!this.theme,
|
|
41
|
+
"md-radio__label": this.radioLabel,
|
|
42
|
+
"md-checkbox__label": this.checkboxLabel,
|
|
43
|
+
"md-secondary-label": this.secondaryLabel,
|
|
44
|
+
active: this.active,
|
|
45
|
+
disabled: this.disabled,
|
|
46
|
+
indeterminate: this.indeterminate
|
|
47
|
+
};
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
handleClick(event: MouseEvent) {
|
|
51
|
+
this.setFocus();
|
|
52
|
+
this.dispatchEvent(
|
|
53
|
+
new CustomEvent<LabelEventDetail>("label-click", {
|
|
54
|
+
composed: true,
|
|
55
|
+
bubbles: true,
|
|
56
|
+
detail: {
|
|
57
|
+
htmlFor: this.htmlFor
|
|
58
|
+
}
|
|
59
|
+
})
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
render() {
|
|
64
|
+
return html`
|
|
65
|
+
<label
|
|
66
|
+
@click="${(event: MouseEvent) => this.handleClick(event)}"
|
|
67
|
+
class="md-label ${classMap(this.labelClassMap)}"
|
|
68
|
+
for="${this.htmlFor}"
|
|
69
|
+
>
|
|
70
|
+
${this.label
|
|
71
|
+
? html`
|
|
72
|
+
<span>${this.label}</span>
|
|
73
|
+
`
|
|
74
|
+
: html`
|
|
75
|
+
<slot></slot>
|
|
76
|
+
`}
|
|
77
|
+
</label>
|
|
78
|
+
`;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
declare global {
|
|
87
|
+
interface HTMLElementTagNameMap {
|
|
88
|
+
"md-label": Label.ELEMENT;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
:host(md-label) {
|
|
2
|
+
.md-label {
|
|
3
|
+
@include form-label;
|
|
4
|
+
display: flex;
|
|
5
|
+
|
|
6
|
+
&.right {
|
|
7
|
+
@include form-label(right, false);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
&.inline {
|
|
11
|
+
@include form-label(inline, false);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
small {
|
|
15
|
+
text-transform: capitalize;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
span {
|
|
19
|
+
font-size: inherit;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
.md-secondary-label {
|
|
23
|
+
@include secondary-label;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
:host(.md-input__label.disabled),
|
|
29
|
+
:host(.md-input__secondary-label.disabled) {
|
|
30
|
+
label {
|
|
31
|
+
cursor: not-allowed;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@mixin form-label($alignment: false, $base-style: true) {
|
|
2
|
+
@if $base-style {
|
|
3
|
+
color: var(--label-color, $lm-label-color-light);
|
|
4
|
+
font-family: $label__font-family;
|
|
5
|
+
font-size: $label__font-size;
|
|
6
|
+
line-height: $label__line-height;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
@if $alignment==right {
|
|
10
|
+
float: none !important;
|
|
11
|
+
text-align: right;
|
|
12
|
+
} @else if $alignment==inline {
|
|
13
|
+
margin: 0 0 $label__spacing 0;
|
|
14
|
+
padding: $label__spacing / 2 + rem-calc($input__border-width) 0;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
@mixin secondary-label {
|
|
19
|
+
color: var(--label-secondary, $lm-label-secondary-light);
|
|
20
|
+
display: flex;
|
|
21
|
+
flex-grow: 1;
|
|
22
|
+
font-size: $secondary-label__font-size;
|
|
23
|
+
line-height: $secondary-label__line-height;
|
|
24
|
+
padding: $secondary-label__indent;
|
|
25
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@import "@/wc_scss/tools/functions/core";
|
|
2
|
+
|
|
3
|
+
@import "@/wc_scss/colors/settings";
|
|
4
|
+
@import "@/wc_scss/settings/core";
|
|
5
|
+
@import "@/wc_scss/typography/settings";
|
|
6
|
+
@import "@/wc_scss/settings/input";
|
|
7
|
+
|
|
8
|
+
@import "./vars/lm-label-settings";
|
|
9
|
+
@import "./vars/md-label-settings";
|
|
10
|
+
|
|
11
|
+
// Component Specific
|
|
12
|
+
@import "./settings";
|
|
13
|
+
@import "./mixins";
|
|
14
|
+
@import "@/components/checkbox/scss/module.scss";
|
|
15
|
+
@import "@/components/radio/scss/module.scss";
|
|
16
|
+
@import "./label";
|
|
17
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
$label__font-family: $brand-font-regular !default;
|
|
2
|
+
$label__font-size: rem-calc(14) !default;
|
|
3
|
+
$label__line-height: rem-calc(20) !default;
|
|
4
|
+
$label__spacing: rem-calc(16) !default;
|
|
5
|
+
|
|
6
|
+
$secondary-label__font-size: rem-calc(14) !default;
|
|
7
|
+
$secondary-label__line-height: rem-calc(18) !default;
|
|
8
|
+
$secondary-label__indent: rem-calc(4 16 0) !default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
+
/* eslint-disable no-undef */
|
|
3
|
+
const colors = require("@momentum-ui/tokens/dist/colors.json");
|
|
4
|
+
|
|
5
|
+
const label = {
|
|
6
|
+
prefix: "lm",
|
|
7
|
+
component: "label",
|
|
8
|
+
color: {
|
|
9
|
+
light: colors.black[100].name,
|
|
10
|
+
dark: colors.gray[30].name
|
|
11
|
+
},
|
|
12
|
+
secondary: {
|
|
13
|
+
light: colors.gray[70].name,
|
|
14
|
+
dark: colors.gray[40].name
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
module.exports = label;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
2
|
+
/* eslint-disable no-undef */
|
|
3
|
+
const colors = require("@momentum-ui/tokens/dist/colors.json");
|
|
4
|
+
|
|
5
|
+
const label = {
|
|
6
|
+
prefix: "md",
|
|
7
|
+
component: "label",
|
|
8
|
+
color: {
|
|
9
|
+
light: colors.black[100].name,
|
|
10
|
+
dark: colors.gray[30].name
|
|
11
|
+
},
|
|
12
|
+
secondary: {
|
|
13
|
+
light: colors.gray[70].name,
|
|
14
|
+
dark: colors.gray[40].name
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
module.exports = label;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) Cisco Systems, Inc. and its affiliates.
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the MIT license found in the
|
|
5
|
+
* LICENSE file in the root directory of this source tree.
|
|
6
|
+
*
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
import { withA11y } from "@storybook/addon-a11y";
|
|
10
|
+
import { boolean, select, text, withKnobs } from "@storybook/addon-knobs";
|
|
11
|
+
import { html } from "lit-element";
|
|
12
|
+
import "@/components/link/Link";
|
|
13
|
+
import { linkTag, linkColor } from "./Link"; // Keep type import as a relative path
|
|
14
|
+
import "@/components/theme/Theme";
|
|
15
|
+
|
|
16
|
+
export default {
|
|
17
|
+
title: "Components/Link",
|
|
18
|
+
component: "md-link",
|
|
19
|
+
decorators: [withKnobs, withA11y],
|
|
20
|
+
parameters: {
|
|
21
|
+
a11y: {
|
|
22
|
+
element: "md-link"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export const Link = () => {
|
|
28
|
+
const darkTheme = boolean("darkMode", false);
|
|
29
|
+
const lumos = boolean("Lumos Theme", false);
|
|
30
|
+
const href = text("href", "http://google.com");
|
|
31
|
+
const tag = select("HTML Tag", linkTag, "");
|
|
32
|
+
const disabled = boolean("Disabled", false);
|
|
33
|
+
const inline = boolean("Link Inline", false);
|
|
34
|
+
const target = text("Target", "_self");
|
|
35
|
+
const color = select("Link color", linkColor, "blue")
|
|
36
|
+
|
|
37
|
+
return html`
|
|
38
|
+
<md-theme class="theme-toggle" id="link" ?darkTheme=${darkTheme} ?lumos=${lumos}>
|
|
39
|
+
<md-link
|
|
40
|
+
.href=${href}
|
|
41
|
+
.tag=${tag as any}
|
|
42
|
+
.target="${target}"
|
|
43
|
+
.color="${color}"
|
|
44
|
+
?disabled=${disabled}
|
|
45
|
+
?inline=${inline}>Default Link</md-link>
|
|
46
|
+
</md-theme>
|
|
47
|
+
`;
|
|
48
|
+
};
|