@central-design-system/components 2.30.0 → 3.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cds.css +1 -111
- package/dist/cds.d.ts +31 -0
- package/dist/cds.es.js +2159 -0
- package/dist/cds.umd.js +1 -0
- package/dist/components/CdsBadge/CdsBadge.vue.d.ts +32 -0
- package/dist/components/CdsButton/CdsButton.vue.d.ts +140 -0
- package/dist/components/CdsDrawer/CdsDrawer.vue.d.ts +179 -0
- package/dist/components/CdsGrid/CdsCol.vue.d.ts +73 -0
- package/dist/components/CdsGrid/CdsGrid.vue.d.ts +55 -0
- package/dist/components/CdsGrid/CdsRow.vue.d.ts +37 -0
- package/dist/components/CdsGrid/composable/column.d.ts +84 -0
- package/dist/components/CdsGrid/composable/grid.d.ts +24 -0
- package/dist/components/CdsGrid/composable/index.d.ts +4 -0
- package/dist/components/CdsGrid/composable/subgrid.d.ts +20 -0
- package/dist/components/CdsGrid/composable/wide.d.ts +12 -0
- package/dist/components/CdsGrid/mode/CSSGrid.d.ts +5 -0
- package/dist/components/CdsGrid/mode/FlexGrid.d.ts +5 -0
- package/dist/components/CdsGrid/types.d.ts +27 -0
- package/dist/components/CdsIcon/CdsIcon.vue.d.ts +44 -0
- package/dist/components/CdsIcon/index.d.ts +1 -0
- package/dist/components/CdsLink/CdsLink.vue.d.ts +50 -0
- package/dist/components/CdsList/CdsList.vue.d.ts +170 -0
- package/dist/components/CdsList/CdsListGroup.vue.d.ts +125 -0
- package/dist/components/CdsList/CdsListItem.vue.d.ts +172 -0
- package/dist/components/CdsList/composable/depth.d.ts +3 -0
- package/dist/components/CdsList/composable/index.d.ts +2 -0
- package/dist/components/CdsList/composable/list.d.ts +19 -0
- package/dist/components/CdsList/index.d.ts +3 -0
- package/dist/components/CdsLoader/CdsLoader.vue.d.ts +62 -0
- package/dist/components/CdsLoader/index.d.ts +1 -0
- package/dist/components/CdsStatus/CdsStatus.vue.d.ts +46 -0
- package/dist/components/CdsTag/CdsTag.vue.d.ts +96 -0
- package/dist/components/index.d.ts +18 -0
- package/dist/composable/appearance.d.ts +24 -0
- package/dist/composable/color.d.ts +21 -0
- package/dist/composable/dark.d.ts +19 -0
- package/dist/composable/disabled.d.ts +19 -0
- package/dist/composable/focus.d.ts +12 -0
- package/dist/composable/icon.d.ts +32 -0
- package/dist/composable/index.d.ts +17 -0
- package/dist/composable/items.d.ts +78 -0
- package/dist/composable/link.d.ts +36 -0
- package/dist/composable/loading.d.ts +19 -0
- package/dist/composable/nested/nested.d.ts +85 -0
- package/dist/composable/nested/openStrategies.d.ts +25 -0
- package/dist/composable/nested/selectStrategies.d.ts +21 -0
- package/dist/composable/proxyModel.d.ts +8 -0
- package/dist/composable/render.d.ts +2 -0
- package/dist/composable/size.d.ts +24 -0
- package/dist/composable/status.d.ts +21 -0
- package/dist/composable/tag.d.ts +16 -0
- package/dist/composable/text.d.ts +17 -0
- package/dist/composable/toggleScope.d.ts +2 -0
- package/dist/directives/index.d.ts +2 -0
- package/dist/plugins/index.d.ts +2 -0
- package/dist/shims-vue.d.ts +24 -0
- package/dist/transitions/createTransition.d.ts +9 -0
- package/dist/transitions/expandTransition.d.ts +19 -0
- package/dist/transitions/index.d.ts +14 -0
- package/dist/types/CdsOptions.d.ts +3 -0
- package/dist/utils/changeCase/lowerCase.d.ts +8 -0
- package/dist/utils/changeCase/noCase.d.ts +10 -0
- package/dist/utils/changeCase/paramCase.d.ts +3 -0
- package/dist/utils/changeCase/pascalCase.d.ts +5 -0
- package/dist/utils/getCurrentInstance.d.ts +13 -0
- package/dist/utils/helpers.d.ts +49 -0
- package/dist/utils/index.d.ts +7 -0
- package/dist/utils/propsFactory.d.ts +52 -0
- package/nuxt.js +13 -0
- package/package.json +37 -80
- package/src/scss/index.scss +10 -0
- package/{dist/mixins/scss → src/scss/mixins}/layout/_convert.scss +4 -2
- package/{dist/mixins/scss → src/scss/mixins}/layout/_layout.scss +0 -0
- package/{dist/mixins/scss → src/scss/mixins}/layout/_mini-unit.scss +0 -0
- package/{dist/mixins/scss → src/scss/mixins}/layout/_spacing.scss +0 -0
- package/src/scss/mixins/layout/exports/_mini-unit.module.scss +5 -0
- package/src/scss/mixins/layout/exports/_spacing-all.module.scss +3 -0
- package/src/scss/mixins/layout/exports/_spacing-fluid.module.scss +8 -0
- package/src/scss/mixins/layout/exports/_spacing-layout.module.scss +11 -0
- package/src/scss/mixins/layout/exports/_spacing.module.scss +16 -0
- package/{dist/mixins/scss → src/scss/mixins}/layout/index.scss +0 -2
- package/{dist/mixins/scss → src/scss/mixins}/motion.scss +0 -0
- package/{dist/mixins/scss → src/scss/mixins}/typo.scss +0 -67
- package/src/scss/modules/_reset.scss +113 -0
- package/src/scss/modules/_transition.scss +26 -0
- package/src/scss/modules/_typography.scss +36 -0
- package/src/scss/modules/_variables.scss +9 -0
- package/src/scss/modules/grid/_aspect-ratio.scss +62 -0
- package/src/scss/modules/grid/_breakpoint.scss +195 -0
- package/src/scss/modules/grid/_config.scss +88 -0
- package/src/scss/modules/grid/_css-grid.scss +445 -0
- package/src/scss/modules/grid/_flex-grid.scss +39 -0
- package/src/scss/modules/grid/_mixins.scss +307 -0
- package/src/scss/modules/grid/exports/_config.module.scss +9 -0
- package/src/scss/modules/grid/index.scss +5 -0
- package/src/scss/themes/b2b/tokens-map.scss +139 -0
- package/src/scss/themes/b2b/tokens.json +2190 -0
- package/{dist/tokens → src/scss/themes}/b2b/variables.css +0 -0
- package/src/scss/themes/cds/tokens-map.scss +138 -0
- package/src/scss/themes/cds/tokens.json +2184 -0
- package/{dist/tokens → src/scss/themes}/cds/variables.css +0 -1
- package/src/scss/themes/index.ts +43 -0
- package/src/scss/utility/display.scss +13 -0
- package/src/scss/utility/flexbox.scss +37 -0
- package/src/scss/utility/generatedFiles/generatedStyles.json +1 -0
- package/src/scss/utility/generatedFiles/generatedStyles.scss +300 -0
- package/src/scss/utility/index.scss +7 -0
- package/src/scss/utility/layout.scss +11 -0
- package/src/scss/utility/lists.scss +76 -0
- package/src/scss/utility/spacing.scss +89 -0
- package/src/scss/utility/typography.scss +16 -0
- package/src/scss/utility/variables.scss +116 -0
- package/README.md +0 -87
- package/build/utils/postInstall.js +0 -20
- package/build/utils/print.js +0 -38
- package/dist/CdsAccordion/index.js +0 -8
- package/dist/CdsAccordion/styles.css +0 -11
- package/dist/CdsBadge/index.js +0 -8
- package/dist/CdsBadge/styles.css +0 -9
- package/dist/CdsBreadcrumbs/index.js +0 -8
- package/dist/CdsBreadcrumbs/styles.css +0 -11
- package/dist/CdsButton/index.js +0 -8
- package/dist/CdsButton/styles.css +0 -11
- package/dist/CdsCheckbox/index.js +0 -8
- package/dist/CdsCheckbox/styles.css +0 -15
- package/dist/CdsCombobox/index.js +0 -8
- package/dist/CdsCombobox/styles.css +0 -15
- package/dist/CdsContainer/index.js +0 -8
- package/dist/CdsContainer/styles.css +0 -11
- package/dist/CdsContentSwitcher/index.js +0 -8
- package/dist/CdsContentSwitcher/styles.css +0 -15
- package/dist/CdsDataTable/index.js +0 -8
- package/dist/CdsDataTable/styles.css +0 -21
- package/dist/CdsDatePicker/index.js +0 -24
- package/dist/CdsDatePicker/styles.css +0 -15
- package/dist/CdsDrawer/index.js +0 -8
- package/dist/CdsDrawer/styles.css +0 -17
- package/dist/CdsDropdown/index.js +0 -8
- package/dist/CdsDropdown/styles.css +0 -15
- package/dist/CdsEmptyState/index.js +0 -8
- package/dist/CdsEmptyState/styles.css +0 -9
- package/dist/CdsFooter/index.js +0 -8
- package/dist/CdsFooter/styles.css +0 -17
- package/dist/CdsForm/index.js +0 -8
- package/dist/CdsForm/styles.css +0 -15
- package/dist/CdsGrid/index.js +0 -8
- package/dist/CdsGrid/styles.css +0 -9
- package/dist/CdsHeader/index.js +0 -8
- package/dist/CdsHeader/styles.css +0 -11
- package/dist/CdsIcon/index.js +0 -8
- package/dist/CdsIcon/styles.css +0 -9
- package/dist/CdsImage/index.js +0 -8
- package/dist/CdsImage/styles.css +0 -9
- package/dist/CdsInput/index.js +0 -8
- package/dist/CdsInput/styles.css +0 -13
- package/dist/CdsLink/index.js +0 -8
- package/dist/CdsLink/styles.css +0 -9
- package/dist/CdsList/index.js +0 -8
- package/dist/CdsList/styles.css +0 -9
- package/dist/CdsLoading/index.js +0 -8
- package/dist/CdsLoading/styles.css +0 -9
- package/dist/CdsModal/index.js +0 -8
- package/dist/CdsModal/styles.css +0 -15
- package/dist/CdsMultiselect/index.js +0 -8
- package/dist/CdsMultiselect/styles.css +0 -17
- package/dist/CdsNotification/index.js +0 -8
- package/dist/CdsNotification/styles.css +0 -21
- package/dist/CdsOverflowMenu/index.js +0 -8
- package/dist/CdsOverflowMenu/styles.css +0 -21
- package/dist/CdsPagination/index.js +0 -8
- package/dist/CdsPagination/styles.css +0 -13
- package/dist/CdsRadioButton/index.js +0 -8
- package/dist/CdsRadioButton/styles.css +0 -15
- package/dist/CdsSearch/index.js +0 -8
- package/dist/CdsSearch/styles.css +0 -19
- package/dist/CdsSelect/index.js +0 -8
- package/dist/CdsSelect/styles.css +0 -15
- package/dist/CdsSidebar/index.js +0 -8
- package/dist/CdsSidebar/styles.css +0 -15
- package/dist/CdsSkeleton/index.js +0 -8
- package/dist/CdsSkeleton/styles.css +0 -9
- package/dist/CdsStages/index.js +0 -8
- package/dist/CdsStages/styles.css +0 -9
- package/dist/CdsStatus/index.js +0 -8
- package/dist/CdsStatus/styles.css +0 -15
- package/dist/CdsSteps/index.js +0 -8
- package/dist/CdsSteps/styles.css +0 -19
- package/dist/CdsTable/index.js +0 -16
- package/dist/CdsTable/styles.css +0 -21
- package/dist/CdsTabs/index.js +0 -8
- package/dist/CdsTabs/styles.css +0 -9
- package/dist/CdsTag/index.js +0 -8
- package/dist/CdsTag/styles.css +0 -11
- package/dist/CdsTextArea/index.js +0 -8
- package/dist/CdsTextArea/styles.css +0 -17
- package/dist/CdsTextInput/index.js +0 -8
- package/dist/CdsTextInput/styles.css +0 -15
- package/dist/CdsToggle/index.js +0 -8
- package/dist/CdsToggle/styles.css +0 -9
- package/dist/CdsTooltip/index.js +0 -8
- package/dist/CdsTooltip/styles.css +0 -13
- package/dist/CdsUploader/index.js +0 -14
- package/dist/CdsUploader/styles.css +0 -25
- package/dist/cds.js +0 -38
- package/dist/cds.min.css +0 -7
- package/dist/cds.min.js +0 -38
- package/dist/index.html +0 -60
- package/dist/mixins/scss/layout/_breakpoint.scss +0 -237
- package/dist/mixins/scss/layout/_key-height.scss +0 -90
- package/dist/mixins/scss/layout/_spacing-export.scss +0 -34
- package/dist/mixins/scss/layout/_utilities.scss +0 -33
- package/dist/types/CdsAccordion.ts +0 -4
- package/dist/types/CdsAccordionItem.ts +0 -10
- package/dist/types/CdsBreadcrumbs.ts +0 -11
- package/dist/types/CdsBreadcrumbsItem.ts +0 -12
- package/dist/types/CdsButton.ts +0 -30
- package/dist/types/CdsCheckbox.ts +0 -20
- package/dist/types/CdsCheckboxGroup.ts +0 -14
- package/dist/types/CdsCol.ts +0 -38
- package/dist/types/CdsCombobox.ts +0 -42
- package/dist/types/CdsContainer.ts +0 -32
- package/dist/types/CdsContentSwitcher.ts +0 -4
- package/dist/types/CdsContentSwitcherButton.ts +0 -21
- package/dist/types/CdsDataTable.ts +0 -48
- package/dist/types/CdsDatePicker.ts +0 -40
- package/dist/types/CdsDrawer.ts +0 -25
- package/dist/types/CdsDrawerGroup.ts +0 -8
- package/dist/types/CdsDrawerItem.ts +0 -12
- package/dist/types/CdsDrawerLabel.ts +0 -4
- package/dist/types/CdsDropdown.ts +0 -14
- package/dist/types/CdsEmptyState.ts +0 -10
- package/dist/types/CdsFooter.ts +0 -17
- package/dist/types/CdsFooterService.ts +0 -16
- package/dist/types/CdsForm.ts +0 -4
- package/dist/types/CdsFormGroup.ts +0 -8
- package/dist/types/CdsFormItem.ts +0 -4
- package/dist/types/CdsGrid.ts +0 -16
- package/dist/types/CdsHeader.ts +0 -27
- package/dist/types/CdsHeaderService.ts +0 -4
- package/dist/types/CdsIcon.ts +0 -6
- package/dist/types/CdsLink.ts +0 -22
- package/dist/types/CdsList.ts +0 -6
- package/dist/types/CdsLoading.ts +0 -14
- package/dist/types/CdsModal.ts +0 -17
- package/dist/types/CdsMultiselect.ts +0 -33
- package/dist/types/CdsNotification.ts +0 -22
- package/dist/types/CdsOverflowMenu.ts +0 -16
- package/dist/types/CdsPagination.ts +0 -12
- package/dist/types/CdsRadioButton.ts +0 -29
- package/dist/types/CdsRow.ts +0 -18
- package/dist/types/CdsSearch.ts +0 -24
- package/dist/types/CdsSelect.ts +0 -37
- package/dist/types/CdsSkeleton.ts +0 -14
- package/dist/types/CdsStages.ts +0 -10
- package/dist/types/CdsStatus.ts +0 -22
- package/dist/types/CdsSteps.ts +0 -22
- package/dist/types/CdsStepsItem.ts +0 -12
- package/dist/types/CdsTable.ts +0 -46
- package/dist/types/CdsTabs.ts +0 -19
- package/dist/types/CdsTabsItem.ts +0 -18
- package/dist/types/CdsTag.ts +0 -20
- package/dist/types/CdsTextArea.ts +0 -26
- package/dist/types/CdsTextInput.ts +0 -32
- package/dist/types/CdsToggle.ts +0 -18
- package/dist/types/CdsTooltip.ts +0 -18
- package/dist/types/CdsTooltipDefinition.ts +0 -16
- package/dist/types/CdsTooltipInteractive.ts +0 -11
- package/dist/types/CdsUploader.ts +0 -44
- package/dist/types/Sidebar.ts +0 -17
- package/dist/types/types.ts +0 -2
- package/dist/utils/convertRemToPx.js +0 -9
- package/dist/utils/deepFind.js +0 -14
- package/dist/utils/expiringStorage.js +0 -28
- package/dist/utils/helpers.js +0 -33
- package/dist/utils/index.js +0 -1
- package/dist/utils/isCorrectTag.js +0 -5
- package/dist/utils/isRightProps.js +0 -5
- package/dist/utils/memoize.js +0 -8
- package/dist/utils/suffixPropName.js +0 -12
- package/dist/utils/test/deepFind.test.js +0 -18
- package/dist/utils/test/isCorrectTag.test.js +0 -9
- package/dist/utils/test/isCorrectTagDataSet.js +0 -51
- package/dist/utils/validationProps.js +0 -7
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
export declare const componentName = "CdsListItem";
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
disabled: {
|
|
5
|
+
type: PropType<boolean>;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
tag: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
description: string;
|
|
12
|
+
};
|
|
13
|
+
href: {
|
|
14
|
+
type: PropType<string>;
|
|
15
|
+
/**
|
|
16
|
+
* Активное состояние
|
|
17
|
+
*/
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
to: {
|
|
21
|
+
type: PropType<import("vue-router").RouteLocationRaw>;
|
|
22
|
+
default: undefined;
|
|
23
|
+
};
|
|
24
|
+
prependIcon: {
|
|
25
|
+
type: PropType<"add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
26
|
+
default: undefined;
|
|
27
|
+
validator: (value: "add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube") => boolean;
|
|
28
|
+
};
|
|
29
|
+
appendIcon: {
|
|
30
|
+
type: PropType<"add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
31
|
+
default: undefined;
|
|
32
|
+
validator: (value: "add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube") => boolean;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Заголовок элемента списка
|
|
36
|
+
*/
|
|
37
|
+
title: {
|
|
38
|
+
type: PropType<string>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Описание элемента списка
|
|
43
|
+
*/
|
|
44
|
+
description: {
|
|
45
|
+
type: PropType<string>;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Значение элемента списка
|
|
50
|
+
*/
|
|
51
|
+
value: {
|
|
52
|
+
type: PropType<string | number>;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Активное состояние
|
|
57
|
+
*/
|
|
58
|
+
active: {
|
|
59
|
+
type: PropType<boolean>;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Принудительно сделать элемент списка кликабельным
|
|
64
|
+
*/
|
|
65
|
+
isClickable: {
|
|
66
|
+
type: PropType<boolean>;
|
|
67
|
+
default: boolean;
|
|
68
|
+
};
|
|
69
|
+
}, {
|
|
70
|
+
tag: import("vue").ComputedRef<string>;
|
|
71
|
+
href: import("vue").ComputedRef<string | undefined>;
|
|
72
|
+
to: import("vue").ComputedRef<import("vue-router").RouteLocationRaw | undefined>;
|
|
73
|
+
slotProps: import("vue").ComputedRef<{
|
|
74
|
+
isActive: boolean;
|
|
75
|
+
select: (selected: boolean, event?: Event | undefined) => void;
|
|
76
|
+
isSelected: boolean;
|
|
77
|
+
isIndeterminate: boolean;
|
|
78
|
+
}>;
|
|
79
|
+
hasTitle: import("vue").ComputedRef<boolean>;
|
|
80
|
+
hasDescription: import("vue").ComputedRef<boolean>;
|
|
81
|
+
hasPrepend: import("vue").ComputedRef<boolean>;
|
|
82
|
+
hasAppend: import("vue").ComputedRef<boolean>;
|
|
83
|
+
classes: import("vue").ComputedRef<{
|
|
84
|
+
'cds-list-item--active': boolean;
|
|
85
|
+
'cds-list-item--clickable': boolean;
|
|
86
|
+
}>;
|
|
87
|
+
disabledClasses: import("vue").ComputedRef<string | undefined>;
|
|
88
|
+
tabindex: number | undefined;
|
|
89
|
+
onClick: (event: MouseEvent) => void;
|
|
90
|
+
onKeyDown: false | ((event: KeyboardEvent) => void);
|
|
91
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
92
|
+
disabled: {
|
|
93
|
+
type: PropType<boolean>;
|
|
94
|
+
default: boolean;
|
|
95
|
+
};
|
|
96
|
+
tag: {
|
|
97
|
+
type: PropType<string>;
|
|
98
|
+
default: string;
|
|
99
|
+
description: string;
|
|
100
|
+
};
|
|
101
|
+
href: {
|
|
102
|
+
type: PropType<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Активное состояние
|
|
105
|
+
*/
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
108
|
+
to: {
|
|
109
|
+
type: PropType<import("vue-router").RouteLocationRaw>;
|
|
110
|
+
default: undefined;
|
|
111
|
+
};
|
|
112
|
+
prependIcon: {
|
|
113
|
+
type: PropType<"add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
114
|
+
default: undefined;
|
|
115
|
+
validator: (value: "add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube") => boolean;
|
|
116
|
+
};
|
|
117
|
+
appendIcon: {
|
|
118
|
+
type: PropType<"add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
119
|
+
default: undefined;
|
|
120
|
+
validator: (value: "add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube") => boolean;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* Заголовок элемента списка
|
|
124
|
+
*/
|
|
125
|
+
title: {
|
|
126
|
+
type: PropType<string>;
|
|
127
|
+
default: undefined;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Описание элемента списка
|
|
131
|
+
*/
|
|
132
|
+
description: {
|
|
133
|
+
type: PropType<string>;
|
|
134
|
+
default: undefined;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* Значение элемента списка
|
|
138
|
+
*/
|
|
139
|
+
value: {
|
|
140
|
+
type: PropType<string | number>;
|
|
141
|
+
default: undefined;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Активное состояние
|
|
145
|
+
*/
|
|
146
|
+
active: {
|
|
147
|
+
type: PropType<boolean>;
|
|
148
|
+
default: boolean;
|
|
149
|
+
};
|
|
150
|
+
/**
|
|
151
|
+
* Принудительно сделать элемент списка кликабельным
|
|
152
|
+
*/
|
|
153
|
+
isClickable: {
|
|
154
|
+
type: PropType<boolean>;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
157
|
+
}>> & {
|
|
158
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
159
|
+
}, {
|
|
160
|
+
description: string;
|
|
161
|
+
prependIcon: "add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube";
|
|
162
|
+
appendIcon: "add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube";
|
|
163
|
+
disabled: boolean;
|
|
164
|
+
href: string;
|
|
165
|
+
to: import("vue-router").RouteLocationRaw;
|
|
166
|
+
tag: string;
|
|
167
|
+
title: string;
|
|
168
|
+
value: string | number;
|
|
169
|
+
active: boolean;
|
|
170
|
+
isClickable: boolean;
|
|
171
|
+
}>;
|
|
172
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { SetupContext } from 'vue';
|
|
2
|
+
import type { InjectionKey, Ref } from 'vue';
|
|
3
|
+
import type { IInternalItem } from '../../../composable';
|
|
4
|
+
export declare const ListKey: InjectionKey<{
|
|
5
|
+
hasPrepend: Ref<boolean>;
|
|
6
|
+
updateHasPrepend: (value: boolean) => void;
|
|
7
|
+
}>;
|
|
8
|
+
export declare function createList(): {
|
|
9
|
+
hasPrepend: Ref<boolean>;
|
|
10
|
+
updateHasPrepend: (value: boolean) => void;
|
|
11
|
+
};
|
|
12
|
+
export declare function createChildren(props: {
|
|
13
|
+
tag: string;
|
|
14
|
+
items: IInternalItem[];
|
|
15
|
+
}, context: SetupContext<any>): any;
|
|
16
|
+
export declare function useList(): {
|
|
17
|
+
hasPrepend: Ref<boolean>;
|
|
18
|
+
updateHasPrepend: (value: boolean) => void;
|
|
19
|
+
} | null;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
export declare const componentName = "CdsLoader";
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
size: {
|
|
5
|
+
type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
6
|
+
default: string;
|
|
7
|
+
available: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
8
|
+
validator: (value: "xs" | "sm" | "md" | "lg" | "xl") => boolean;
|
|
9
|
+
};
|
|
10
|
+
fixed: {
|
|
11
|
+
type: PropType<boolean>;
|
|
12
|
+
default: boolean;
|
|
13
|
+
description: string;
|
|
14
|
+
};
|
|
15
|
+
overlay: {
|
|
16
|
+
type: PropType<boolean>;
|
|
17
|
+
default: boolean;
|
|
18
|
+
description: string;
|
|
19
|
+
};
|
|
20
|
+
description: {
|
|
21
|
+
type: PropType<string>;
|
|
22
|
+
default: string;
|
|
23
|
+
description: string;
|
|
24
|
+
};
|
|
25
|
+
}, {
|
|
26
|
+
attrs: {
|
|
27
|
+
[x: string]: unknown;
|
|
28
|
+
};
|
|
29
|
+
loaderClasses: import("vue").ComputedRef<{
|
|
30
|
+
'cds-loader__overlay': boolean;
|
|
31
|
+
'cds-loader__fixed': boolean;
|
|
32
|
+
}>;
|
|
33
|
+
sizeClasses: import("vue").ComputedRef<string>;
|
|
34
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
35
|
+
size: {
|
|
36
|
+
type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
37
|
+
default: string;
|
|
38
|
+
available: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
39
|
+
validator: (value: "xs" | "sm" | "md" | "lg" | "xl") => boolean;
|
|
40
|
+
};
|
|
41
|
+
fixed: {
|
|
42
|
+
type: PropType<boolean>;
|
|
43
|
+
default: boolean;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
overlay: {
|
|
47
|
+
type: PropType<boolean>;
|
|
48
|
+
default: boolean;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
description: {
|
|
52
|
+
type: PropType<string>;
|
|
53
|
+
default: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
}>>, {
|
|
57
|
+
description: string;
|
|
58
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
59
|
+
fixed: boolean;
|
|
60
|
+
overlay: boolean;
|
|
61
|
+
}>;
|
|
62
|
+
export default _sfc_main;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as CdsLoader } from './CdsLoader.vue';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
export declare const componentName = "CdsStatus";
|
|
2
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
3
|
+
status: {
|
|
4
|
+
type: import("vue").PropType<"error" | "info" | "success" | "warning" | "progress">;
|
|
5
|
+
default: string;
|
|
6
|
+
available: readonly ["info", "success", "warning", "error", "progress"];
|
|
7
|
+
description: string;
|
|
8
|
+
validator: (value: "error" | "info" | "success" | "warning" | "progress") => boolean;
|
|
9
|
+
};
|
|
10
|
+
appearance: {
|
|
11
|
+
type: import("vue").PropType<"primary" | "secondary" | "transparent">;
|
|
12
|
+
default: string;
|
|
13
|
+
available: readonly ["primary", "secondary", "transparent"];
|
|
14
|
+
validator: (value: "primary" | "secondary" | "transparent") => boolean;
|
|
15
|
+
};
|
|
16
|
+
text: {
|
|
17
|
+
type: import("vue").PropType<string>;
|
|
18
|
+
default: undefined;
|
|
19
|
+
};
|
|
20
|
+
}, {
|
|
21
|
+
appearanceClasses: import("vue").ComputedRef<string>;
|
|
22
|
+
statusClasses: import("vue").ComputedRef<string>;
|
|
23
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
status: {
|
|
25
|
+
type: import("vue").PropType<"error" | "info" | "success" | "warning" | "progress">;
|
|
26
|
+
default: string;
|
|
27
|
+
available: readonly ["info", "success", "warning", "error", "progress"];
|
|
28
|
+
description: string;
|
|
29
|
+
validator: (value: "error" | "info" | "success" | "warning" | "progress") => boolean;
|
|
30
|
+
};
|
|
31
|
+
appearance: {
|
|
32
|
+
type: import("vue").PropType<"primary" | "secondary" | "transparent">;
|
|
33
|
+
default: string;
|
|
34
|
+
available: readonly ["primary", "secondary", "transparent"];
|
|
35
|
+
validator: (value: "primary" | "secondary" | "transparent") => boolean;
|
|
36
|
+
};
|
|
37
|
+
text: {
|
|
38
|
+
type: import("vue").PropType<string>;
|
|
39
|
+
default: undefined;
|
|
40
|
+
};
|
|
41
|
+
}>>, {
|
|
42
|
+
text: string;
|
|
43
|
+
appearance: "primary" | "secondary" | "transparent";
|
|
44
|
+
status: "error" | "info" | "success" | "warning" | "progress";
|
|
45
|
+
}>;
|
|
46
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
export declare const componentName = "CdsTag";
|
|
3
|
+
declare const _sfc_main: import("vue").DefineComponent<{
|
|
4
|
+
text: {
|
|
5
|
+
type: PropType<string>;
|
|
6
|
+
default: undefined;
|
|
7
|
+
};
|
|
8
|
+
color: {
|
|
9
|
+
type: PropType<"yellow" | "light-blue" | "blue" | "deep-purple" | "purple" | "pink">;
|
|
10
|
+
available: readonly ["yellow", "light-blue", "blue", "deep-purple", "purple", "pink"];
|
|
11
|
+
default: undefined;
|
|
12
|
+
description: string;
|
|
13
|
+
validator: (value: "yellow" | "light-blue" | "blue" | "deep-purple" | "purple" | "pink") => boolean;
|
|
14
|
+
};
|
|
15
|
+
href: {
|
|
16
|
+
type: PropType<string>;
|
|
17
|
+
default: undefined;
|
|
18
|
+
};
|
|
19
|
+
to: {
|
|
20
|
+
type: PropType<import("vue-router").RouteLocationRaw>;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
disabled: {
|
|
24
|
+
type: PropType<boolean>;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
size: {
|
|
28
|
+
type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
29
|
+
default: string;
|
|
30
|
+
available: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
31
|
+
validator: (value: "xs" | "sm" | "md" | "lg" | "xl") => boolean;
|
|
32
|
+
};
|
|
33
|
+
removable: {
|
|
34
|
+
type: PropType<boolean>;
|
|
35
|
+
default: boolean;
|
|
36
|
+
description: string;
|
|
37
|
+
};
|
|
38
|
+
}, {
|
|
39
|
+
onRemove: (event: MouseEvent) => void;
|
|
40
|
+
sizeClasses: import("vue").ComputedRef<string>;
|
|
41
|
+
disabledClasses: import("vue").ComputedRef<string | undefined>;
|
|
42
|
+
colorClasses: import("vue").ComputedRef<string | undefined>;
|
|
43
|
+
tagClasses: import("vue").ComputedRef<{
|
|
44
|
+
'cds-tag--interactive': boolean;
|
|
45
|
+
'cds-tag--removable': boolean;
|
|
46
|
+
}>;
|
|
47
|
+
tag: string | import("vue").ComputedRef<string>;
|
|
48
|
+
href: import("vue").ComputedRef<string | undefined>;
|
|
49
|
+
to: import("vue").ComputedRef<import("vue-router").RouteLocationRaw | undefined>;
|
|
50
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "remove"[], "remove", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
51
|
+
text: {
|
|
52
|
+
type: PropType<string>;
|
|
53
|
+
default: undefined;
|
|
54
|
+
};
|
|
55
|
+
color: {
|
|
56
|
+
type: PropType<"yellow" | "light-blue" | "blue" | "deep-purple" | "purple" | "pink">;
|
|
57
|
+
available: readonly ["yellow", "light-blue", "blue", "deep-purple", "purple", "pink"];
|
|
58
|
+
default: undefined;
|
|
59
|
+
description: string;
|
|
60
|
+
validator: (value: "yellow" | "light-blue" | "blue" | "deep-purple" | "purple" | "pink") => boolean;
|
|
61
|
+
};
|
|
62
|
+
href: {
|
|
63
|
+
type: PropType<string>;
|
|
64
|
+
default: undefined;
|
|
65
|
+
};
|
|
66
|
+
to: {
|
|
67
|
+
type: PropType<import("vue-router").RouteLocationRaw>;
|
|
68
|
+
default: undefined;
|
|
69
|
+
};
|
|
70
|
+
disabled: {
|
|
71
|
+
type: PropType<boolean>;
|
|
72
|
+
default: boolean;
|
|
73
|
+
};
|
|
74
|
+
size: {
|
|
75
|
+
type: PropType<"xs" | "sm" | "md" | "lg" | "xl">;
|
|
76
|
+
default: string;
|
|
77
|
+
available: readonly ["xs", "sm", "md", "lg", "xl"];
|
|
78
|
+
validator: (value: "xs" | "sm" | "md" | "lg" | "xl") => boolean;
|
|
79
|
+
};
|
|
80
|
+
removable: {
|
|
81
|
+
type: PropType<boolean>;
|
|
82
|
+
default: boolean;
|
|
83
|
+
description: string;
|
|
84
|
+
};
|
|
85
|
+
}>> & {
|
|
86
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
}, {
|
|
88
|
+
size: "xs" | "sm" | "md" | "lg" | "xl";
|
|
89
|
+
text: string;
|
|
90
|
+
disabled: boolean;
|
|
91
|
+
href: string;
|
|
92
|
+
to: import("vue-router").RouteLocationRaw;
|
|
93
|
+
color: "yellow" | "light-blue" | "blue" | "deep-purple" | "purple" | "pink";
|
|
94
|
+
removable: boolean;
|
|
95
|
+
}>;
|
|
96
|
+
export default _sfc_main;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Automatically generated by CDS CLI
|
|
3
|
+
* Generated on 2/17/2023, 8:45:21 PM
|
|
4
|
+
**/
|
|
5
|
+
export { default as CdsBadge } from './CdsBadge/CdsBadge.vue';
|
|
6
|
+
export { default as CdsButton } from './CdsButton/CdsButton.vue';
|
|
7
|
+
export { default as CdsDrawer } from './CdsDrawer/CdsDrawer.vue';
|
|
8
|
+
export { default as CdsCol } from './CdsGrid/CdsCol.vue';
|
|
9
|
+
export { default as CdsGrid } from './CdsGrid/CdsGrid.vue';
|
|
10
|
+
export { default as CdsRow } from './CdsGrid/CdsRow.vue';
|
|
11
|
+
export { default as CdsIcon } from './CdsIcon/CdsIcon.vue';
|
|
12
|
+
export { default as CdsLink } from './CdsLink/CdsLink.vue';
|
|
13
|
+
export { default as CdsList } from './CdsList/CdsList.vue';
|
|
14
|
+
export { default as CdsListGroup } from './CdsList/CdsListGroup.vue';
|
|
15
|
+
export { default as CdsListItem } from './CdsList/CdsListItem.vue';
|
|
16
|
+
export { default as CdsLoader } from './CdsLoader/CdsLoader.vue';
|
|
17
|
+
export { default as CdsStatus } from './CdsStatus/CdsStatus.vue';
|
|
18
|
+
export { default as CdsTag } from './CdsTag/CdsTag.vue';
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { ComputedRef, PropType } from 'vue';
|
|
2
|
+
import type { MaybeRef } from '../utils';
|
|
3
|
+
export declare type TAppearance = typeof allowedAppearance[number];
|
|
4
|
+
export interface IAppearanceProps {
|
|
5
|
+
appearance: TAppearance;
|
|
6
|
+
}
|
|
7
|
+
export interface IUseAppearance {
|
|
8
|
+
appearanceClasses: ComputedRef<string>;
|
|
9
|
+
}
|
|
10
|
+
export declare const allowedAppearance: readonly ["primary", "secondary", "transparent"];
|
|
11
|
+
export declare const makeAppearanceProps: <Defaults extends {
|
|
12
|
+
appearance?: unknown;
|
|
13
|
+
} = {}>(defaults?: Defaults | undefined) => import('../utils').AppendDefault<{
|
|
14
|
+
/**
|
|
15
|
+
* Внешний вид
|
|
16
|
+
*/
|
|
17
|
+
appearance: {
|
|
18
|
+
type: PropType<"primary" | "secondary" | "transparent">;
|
|
19
|
+
default: string;
|
|
20
|
+
available: readonly ["primary", "secondary", "transparent"];
|
|
21
|
+
validator: (value: TAppearance) => boolean;
|
|
22
|
+
};
|
|
23
|
+
}, Defaults>;
|
|
24
|
+
export declare function useAppearance(props: MaybeRef<IAppearanceProps>, name: string): IUseAppearance;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ComputedRef, PropType } from 'vue';
|
|
2
|
+
export declare type TColor = typeof allowedColor[number];
|
|
3
|
+
export declare type IColorProps = {
|
|
4
|
+
color: TColor | undefined;
|
|
5
|
+
};
|
|
6
|
+
export interface IUseColor {
|
|
7
|
+
colorClasses: ComputedRef<string | undefined>;
|
|
8
|
+
}
|
|
9
|
+
export declare const allowedColor: readonly ["yellow", "light-blue", "blue", "deep-purple", "purple", "pink"];
|
|
10
|
+
export declare const makeColorProps: <Defaults extends {
|
|
11
|
+
color?: unknown;
|
|
12
|
+
} = {}>(defaults?: Defaults | undefined) => import('../utils').AppendDefault<{
|
|
13
|
+
color: {
|
|
14
|
+
type: PropType<"yellow" | "light-blue" | "blue" | "deep-purple" | "purple" | "pink">;
|
|
15
|
+
available: readonly ["yellow", "light-blue", "blue", "deep-purple", "purple", "pink"];
|
|
16
|
+
default: undefined;
|
|
17
|
+
description: string;
|
|
18
|
+
validator: (value: TColor) => boolean;
|
|
19
|
+
};
|
|
20
|
+
}, Defaults>;
|
|
21
|
+
export declare function useColor(props: IColorProps, name: string): IUseColor;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComputedRef, PropType } from 'vue';
|
|
2
|
+
export interface IDarkProps {
|
|
3
|
+
dark: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface IUseDark {
|
|
6
|
+
darkClasses: ComputedRef<string | undefined>;
|
|
7
|
+
}
|
|
8
|
+
export declare const makeDarkProps: <Defaults extends {
|
|
9
|
+
dark?: unknown;
|
|
10
|
+
} = {}>(defaults?: Defaults | undefined) => import('../utils').AppendDefault<{
|
|
11
|
+
/**
|
|
12
|
+
* Темная тема
|
|
13
|
+
*/
|
|
14
|
+
dark: {
|
|
15
|
+
type: PropType<boolean>;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
}, Defaults>;
|
|
19
|
+
export declare function useDark(props: IDarkProps, name: string): IUseDark;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComputedRef, PropType } from 'vue';
|
|
2
|
+
export interface IDisabledProps {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface IUseDisabled {
|
|
6
|
+
disabledClasses: ComputedRef<string | undefined>;
|
|
7
|
+
}
|
|
8
|
+
export declare const makeDisabledProps: <Defaults extends {
|
|
9
|
+
disabled?: unknown;
|
|
10
|
+
} = {}>(defaults?: Defaults | undefined) => import('../utils').AppendDefault<{
|
|
11
|
+
/**
|
|
12
|
+
* Заблокированное состояние
|
|
13
|
+
*/
|
|
14
|
+
disabled: {
|
|
15
|
+
type: PropType<boolean>;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
}, Defaults>;
|
|
19
|
+
export declare function useDisabled(props: IDisabledProps): IUseDisabled;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Ref } from 'vue';
|
|
2
|
+
export declare type TFocusLocation = 'next' | 'previous' | 'first' | 'last';
|
|
3
|
+
export interface IUseFocus {
|
|
4
|
+
contentRef: Ref<HTMLElement | null>;
|
|
5
|
+
isFocused: Ref<boolean>;
|
|
6
|
+
onFocusin: (event: FocusEvent) => void;
|
|
7
|
+
onFocusout: (event: FocusEvent) => void;
|
|
8
|
+
onFocus: (event: FocusEvent) => void;
|
|
9
|
+
onKeydown: (event: KeyboardEvent) => void;
|
|
10
|
+
focus: (location?: TFocusLocation) => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function useFocus(): IUseFocus;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { PropType, ComputedRef, SetupContext } from 'vue';
|
|
2
|
+
import type { TCdsIconsName } from '@central-design-system/icons';
|
|
3
|
+
export interface IIconProps {
|
|
4
|
+
prependIcon: TCdsIconsName | undefined;
|
|
5
|
+
appendIcon: TCdsIconsName | undefined;
|
|
6
|
+
}
|
|
7
|
+
export interface IUseIcon {
|
|
8
|
+
hasPrepend: ComputedRef<boolean>;
|
|
9
|
+
hasAppend: ComputedRef<boolean>;
|
|
10
|
+
}
|
|
11
|
+
export declare const makeIconProps: <Defaults extends {
|
|
12
|
+
prependIcon?: unknown;
|
|
13
|
+
appendIcon?: unknown;
|
|
14
|
+
} = {}>(defaults?: Defaults | undefined) => import('../utils').AppendDefault<{
|
|
15
|
+
/**
|
|
16
|
+
* Иконка в начале элемента
|
|
17
|
+
*/
|
|
18
|
+
prependIcon: {
|
|
19
|
+
type: PropType<"add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
20
|
+
default: undefined;
|
|
21
|
+
validator: (value: TCdsIconsName) => boolean;
|
|
22
|
+
};
|
|
23
|
+
/**
|
|
24
|
+
* Иконка в конце элемента
|
|
25
|
+
*/
|
|
26
|
+
appendIcon: {
|
|
27
|
+
type: PropType<"add" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocolate-menu" | "clock" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "external" | "facebook-fill" | "facebook" | "filters" | "flag" | "globe" | "infinity" | "info-fill" | "info" | "link" | "list-search" | "list" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "search" | "settings" | "shopping-cart" | "sort-date" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube">;
|
|
28
|
+
default: undefined;
|
|
29
|
+
validator: (value: TCdsIconsName) => boolean;
|
|
30
|
+
};
|
|
31
|
+
}, Defaults>;
|
|
32
|
+
export declare function useIcon(props: IIconProps, context: SetupContext<any>): IUseIcon;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './text';
|
|
2
|
+
export * from './link';
|
|
3
|
+
export * from './icon';
|
|
4
|
+
export * from './loading';
|
|
5
|
+
export * from './appearance';
|
|
6
|
+
export * from './size';
|
|
7
|
+
export * from './disabled';
|
|
8
|
+
export * from './dark';
|
|
9
|
+
export * from './color';
|
|
10
|
+
export * from './status';
|
|
11
|
+
export * from './tag';
|
|
12
|
+
export * from './items';
|
|
13
|
+
export * from './focus';
|
|
14
|
+
export * from './proxyModel';
|
|
15
|
+
export * from './toggleScope';
|
|
16
|
+
export * from './nested/nested';
|
|
17
|
+
export * from './render';
|