@central-design-system/components 3.0.0-beta.8 → 3.0.0-rc.1
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 -1
- package/dist/cds.d.ts +9 -2
- package/dist/cds.es.js +18620 -13172
- package/dist/cds.umd.js +7 -3
- package/dist/components/CdsAutocomplete/CdsAutocomplete.vue.d.ts +93 -89
- package/dist/components/CdsBadge/CdsBadge.vue.d.ts +27 -12
- package/dist/components/CdsBreadcrumbs/CdsBreadcrumbs.vue.d.ts +11 -0
- package/dist/components/CdsBreadcrumbs/CdsBreadcrumbsItem.vue.d.ts +14 -3
- package/dist/components/CdsButton/CdsButton.vue.d.ts +40 -29
- package/dist/components/CdsButton/CdsFunctionalButton.vue.d.ts +73 -0
- package/dist/components/CdsButton/index.d.ts +1 -0
- package/dist/components/CdsCheckbox/CdsCheckbox.vue.d.ts +19 -0
- package/dist/components/CdsCheckbox/CdsCheckboxGroup.vue.d.ts +13 -0
- package/dist/components/CdsCombobox/CdsCombobox.vue.d.ts +326 -213
- package/dist/components/CdsContainer/CdsContainer.vue.d.ts +43 -26
- package/dist/components/CdsContainer/context.d.ts +1 -1
- package/dist/components/CdsContentSwitcher/CdsContentSwitcher.vue.d.ts +11 -0
- package/dist/components/CdsContentSwitcher/CdsContentSwitcherItem.vue.d.ts +27 -27
- package/dist/components/CdsDatePicker/CdsDatePicker.vue.d.ts +12 -1
- package/dist/components/CdsDatePicker/composable/calendar.d.ts +4 -4
- package/dist/components/CdsDivider/CdsDivider.vue.d.ts +45 -0
- package/dist/components/CdsDivider/index.d.ts +1 -0
- package/dist/components/CdsDrawer/CdsDrawer.vue.d.ts +70 -4
- package/dist/components/CdsDropdown/CdsDropdown.vue.d.ts +248 -177
- package/dist/components/CdsEmptyState/CdsEmptyState.vue.d.ts +4 -4
- package/dist/components/CdsExpandablePanel/CdsExpandablePanel.vue.d.ts +13 -13
- package/dist/components/CdsExpandablePanel/CdsExpandablePanelTitle.vue.d.ts +10 -10
- package/dist/components/CdsExpandablePanel/CdsExpandablePanels.vue.d.ts +19 -8
- package/dist/components/CdsExpandablePanel/composable/expandablePanelTitleProps.d.ts +3 -3
- package/dist/components/CdsFooter/CdsFooter.vue.d.ts +23 -3
- package/dist/components/CdsForm/CdsForm.vue.d.ts +11 -0
- package/dist/components/CdsGrid/composable/column.d.ts +1 -1
- package/dist/components/CdsGrid/composable/subgrid.d.ts +1 -1
- package/dist/components/CdsGrid/mode/CSSGrid.d.ts +1 -1
- package/dist/components/CdsGrid/mode/FlexGrid.d.ts +1 -1
- package/dist/components/CdsHeader/CdsHeader.vue.d.ts +23 -3
- package/dist/components/CdsIcon/CdsIcon.vue.d.ts +33 -3
- package/dist/components/CdsImage/CdsImage.vue.d.ts +264 -0
- package/dist/components/CdsImage/components/CdsResponsive.vue.d.ts +87 -0
- package/dist/components/CdsImage/components/index.d.ts +1 -0
- package/dist/components/CdsImage/composable/image.d.ts +134 -0
- package/dist/components/CdsImage/composable/index.d.ts +2 -0
- package/dist/components/CdsImage/composable/responsive.d.ts +35 -0
- package/dist/components/CdsImage/index.d.ts +2 -0
- package/dist/components/CdsInput/CdsInput.vue.d.ts +27 -22
- package/dist/components/CdsInput/CdsInputDescription.vue.d.ts +3 -3
- package/dist/components/CdsInput/CdsInputLabel.vue.d.ts +15 -4
- package/dist/components/CdsLayout/CdsLayout.vue.d.ts +12 -1
- package/dist/components/CdsLayout/context.d.ts +1 -1
- package/dist/components/CdsLink/CdsLink.vue.d.ts +13 -11
- package/dist/components/CdsList/CdsList.vue.d.ts +22 -40
- package/dist/components/CdsList/CdsListGroup.vue.d.ts +7 -7
- package/dist/components/CdsList/CdsListItem.vue.d.ts +12 -12
- package/dist/components/CdsList/composable/list.d.ts +1 -1
- package/dist/components/CdsLoader/CdsLoader.vue.d.ts +12 -0
- package/dist/components/CdsMenu/CdsMenu.vue.d.ts +59 -14
- package/dist/components/CdsModal/CdsModal.vue.d.ts +41 -8
- package/dist/components/CdsNotification/CdsNotification.vue.d.ts +34 -27
- package/dist/components/CdsNotification/CdsNotificationAlert.vue.d.ts +53 -24
- package/dist/components/CdsNotification/composable/notification.d.ts +4 -4
- package/dist/components/CdsOverlay/CdsOverlay.vue.d.ts +35 -3
- package/dist/components/CdsOverlay/composable/activator.d.ts +19 -6
- package/dist/components/CdsOverlay/composable/locationStrategies.d.ts +6 -5
- package/dist/components/CdsOverlay/composable/scrollStrategies.d.ts +1 -1
- package/dist/components/CdsOverlay/composable/teleport.d.ts +25 -1
- package/dist/components/CdsOverlay/constants.d.ts +2 -0
- package/dist/components/CdsPagination/CdsPagination.vue.d.ts +37 -2
- package/dist/components/CdsProgress/CdsProgress.vue.d.ts +11 -0
- package/dist/components/CdsRadioButton/CdsRadio.vue.d.ts +27 -12
- package/dist/components/CdsRadioButton/CdsRadioButton.vue.d.ts +13 -0
- package/dist/components/CdsSelect/CdsSelect.vue.d.ts +93 -63
- package/dist/components/CdsSidebar/CdsSidebar.vue.d.ts +15 -7
- package/dist/components/CdsSkeletonLoader/CdsSkeletonLoader.vue.d.ts +14 -3
- package/dist/components/CdsSlideGroup/CdsSlideGroup.vue.d.ts +19 -19
- package/dist/components/CdsStages/CdsStages.vue.d.ts +13 -1
- package/dist/components/CdsStatus/CdsStatus.vue.d.ts +38 -19
- package/dist/components/CdsSteps/CdsSteps.vue.d.ts +12 -65
- package/dist/components/CdsSteps/CdsStepsItem.vue.d.ts +5 -5
- package/dist/components/CdsSteps/context.d.ts +3 -2
- package/dist/components/CdsTable/CdsTable.vue.d.ts +108 -31
- package/dist/components/CdsTable/components/Footer/Footer.d.ts +1 -1
- package/dist/components/CdsTable/components/Header/DragHandle.d.ts +1 -1
- package/dist/components/CdsTable/components/Icons/ExpandIcon.d.ts +2 -1
- package/dist/components/CdsTable/components/Table/InternalTable.d.ts +98 -23
- package/dist/components/CdsTable/components/TableProvider.d.ts +110 -24
- package/dist/components/CdsTable/composable/filter.d.ts +1 -1
- package/dist/components/CdsTable/composable/flat.d.ts +1 -1
- package/dist/components/CdsTable/composable/pagination.d.ts +4 -2
- package/dist/components/CdsTable/composable/scroll.d.ts +1 -1
- package/dist/components/CdsTable/composable/selection.d.ts +1 -1
- package/dist/components/CdsTable/composable/sorter.d.ts +1 -1
- package/dist/components/CdsTable/composable/sticky.d.ts +1 -1
- package/dist/components/CdsTable/composable/table.d.ts +56 -10
- package/dist/components/CdsTable/constants.d.ts +1 -0
- package/dist/components/CdsTable/context/summary.d.ts +1 -1
- package/dist/components/CdsTable/context/table.d.ts +1 -1
- package/dist/components/CdsTable/interface.d.ts +11 -7
- package/dist/components/CdsTable/utils/column.d.ts +1 -3
- package/dist/components/CdsTable/utils/index.d.ts +1 -1
- package/dist/components/CdsTable/utils/vnode.d.ts +10 -0
- package/dist/components/CdsTabs/CdsTab.vue.d.ts +14 -14
- package/dist/components/CdsTabs/CdsTabs.vue.d.ts +38 -32
- package/dist/components/CdsTag/CdsTag.vue.d.ts +55 -39
- package/dist/components/CdsTextArea/CdsTextArea.vue.d.ts +105 -87
- package/dist/components/CdsTextInput/CdsTextInput.vue.d.ts +101 -63
- package/dist/components/CdsTimePicker/CdsTimePicker.vue.d.ts +11 -0
- package/dist/components/CdsTimePicker/composable/time.d.ts +2 -2
- package/dist/components/CdsToggle/CdsToggle.vue.d.ts +13 -8
- package/dist/components/CdsToolbar/CdsToolbar.vue.d.ts +53 -0
- package/dist/components/CdsTooltip/CdsTooltip.vue.d.ts +39 -10
- package/dist/components/CdsTree/CdsTree.vue.d.ts +708 -0
- package/dist/components/CdsTree/CdsTreeDirectory.vue.d.ts +446 -0
- package/dist/components/CdsTree/CdsTreeNode.vue.d.ts +119 -0
- package/dist/components/CdsTree/components/DropIndicator.d.ts +9 -0
- package/dist/components/CdsTree/components/Indent.d.ts +10 -0
- package/dist/components/CdsTree/components/MotionTreeNode.d.ts +128 -0
- package/dist/components/CdsTree/components/NodeList.d.ts +191 -0
- package/dist/components/CdsTree/components/SwitcherIcon.d.ts +12 -0
- package/dist/components/CdsTree/components/TreeContext.d.ts +81 -0
- package/dist/components/CdsTree/components/TreeProvider.d.ts +619 -0
- package/dist/components/CdsTree/components/VirtualList/Filler.d.ts +12 -0
- package/dist/components/CdsTree/components/VirtualList/Item.d.ts +6 -0
- package/dist/components/CdsTree/components/VirtualList/ScrollBar.d.ts +33 -0
- package/dist/components/CdsTree/components/VirtualList/VirtualList.d.ts +84 -0
- package/dist/components/CdsTree/components/VirtualList/features/index.d.ts +5 -0
- package/dist/components/CdsTree/components/VirtualList/features/useFrameWheel.d.ts +10 -0
- package/dist/components/CdsTree/components/VirtualList/features/useHeights.d.ts +9 -0
- package/dist/components/CdsTree/components/VirtualList/features/useMobileTouchMove.d.ts +2 -0
- package/dist/components/CdsTree/components/VirtualList/features/useOriginScroll.d.ts +2 -0
- package/dist/components/CdsTree/components/VirtualList/features/useScrollTo.d.ts +4 -0
- package/dist/components/CdsTree/components/VirtualList/index.d.ts +2 -0
- package/dist/components/CdsTree/components/VirtualList/interface.d.ts +10 -0
- package/dist/components/CdsTree/composable/events.d.ts +133 -0
- package/dist/components/CdsTree/composable/index.d.ts +2 -0
- package/dist/components/CdsTree/composable/tree.d.ts +273 -0
- package/dist/components/CdsTree/composable/treeNode.d.ts +75 -0
- package/dist/components/CdsTree/index.d.ts +5 -0
- package/dist/components/CdsTree/interface.d.ts +104 -4
- package/dist/components/CdsTree/utils/conduct.d.ts +1 -1
- package/dist/components/CdsTree/utils/data.d.ts +70 -0
- package/dist/components/CdsTree/utils/diff.d.ts +6 -0
- package/dist/components/CdsTree/utils/directory.d.ts +9 -0
- package/dist/components/CdsTree/utils/index.d.ts +2 -0
- package/dist/components/CdsUploader/CdsUploader.vue.d.ts +642 -39
- package/dist/components/CdsUploader/components/AjaxUploader.d.ts +603 -15
- package/dist/components/CdsUploader/components/UploadList/ListItem.d.ts +37 -19
- package/dist/components/CdsUploader/components/UploadList/UploadList.d.ts +36 -18
- package/dist/components/CdsUploader/composable/upload.d.ts +221 -9
- package/dist/components/CdsUploader/index.d.ts +1 -0
- package/dist/components/CdsUploader/interface.d.ts +1 -1
- package/dist/components/index.d.ts +10 -1
- package/dist/composable/appearance.d.ts +4 -4
- package/dist/composable/color.d.ts +17 -6
- package/dist/composable/datetime.d.ts +4 -4
- package/dist/composable/delay.d.ts +3 -2
- package/dist/composable/direction.d.ts +1 -1
- package/dist/composable/display.d.ts +2 -0
- package/dist/composable/domObserver.d.ts +5 -0
- package/dist/composable/field.d.ts +17 -5
- package/dist/composable/filter.d.ts +30 -0
- package/dist/composable/form.d.ts +2 -2
- package/dist/composable/group.d.ts +3 -3
- package/dist/composable/icon.d.ts +3 -3
- package/dist/composable/index.d.ts +5 -1
- package/dist/composable/invertColor.d.ts +19 -0
- package/dist/composable/layout.d.ts +20 -20
- package/dist/composable/loading.d.ts +2 -2
- package/dist/composable/menu.d.ts +3 -1
- package/dist/composable/nested/nested.d.ts +2 -2
- package/dist/composable/overlay.d.ts +9 -1
- package/dist/{components/CdsDropdown/composable → composable}/scrolling.d.ts +2 -2
- package/dist/composable/select.d.ts +18 -21
- package/dist/composable/size.d.ts +1 -1
- package/dist/composable/text.d.ts +2 -2
- package/dist/composable/theme.d.ts +73 -0
- package/dist/composable/transition.d.ts +2 -0
- package/dist/composable/transparent.d.ts +19 -0
- package/dist/composable/validation.d.ts +2 -2
- package/dist/composable/variant.d.ts +2 -5
- package/dist/create.d.ts +7 -1
- package/dist/globals.d.ts +7 -0
- package/dist/locale/index.d.ts +4 -1
- package/dist/themes/b2bDark.d.ts +190 -0
- package/dist/themes/b2bLight.d.ts +190 -0
- package/dist/themes/cdsDark.d.ts +190 -0
- package/dist/themes/cdsLight.d.ts +190 -0
- package/dist/themes/colors.d.ts +458 -0
- package/dist/themes/index.d.ts +6 -0
- package/dist/themes/themes.d.ts +10 -0
- package/dist/transitions/collapseTransition.d.ts +11 -0
- package/dist/transitions/index.d.ts +1 -0
- package/dist/utils/colorsUtils/APCA.d.ts +7 -0
- package/dist/utils/colorsUtils/index.d.ts +1 -0
- package/dist/utils/colorsUtils/transformCIELAB.d.ts +3 -0
- package/dist/utils/colorsUtils/transformSRGB.d.ts +3 -0
- package/dist/utils/colorsUtils/utils.d.ts +42 -0
- package/dist/utils/date/date.d.ts +1 -0
- package/dist/utils/dom/bindProps.d.ts +2 -0
- package/dist/utils/dom/box.d.ts +1 -0
- package/dist/utils/helpers.d.ts +31 -6
- package/dist/utils/index.d.ts +4 -0
- package/dist/utils/propsFactory.d.ts +1 -1
- package/dist/utils/use/flattenChildren.d.ts +3 -0
- package/nuxt.js +2 -1
- package/package.json +5 -1
- package/src/scss/index.scss +0 -2
- package/src/scss/mixins/layout/_shadow.scss +43 -2
- package/src/scss/mixins/layout/_spacing.scss +13 -12
- package/src/scss/mixins/layout/index.scss +1 -0
- package/src/scss/mixins/typo.scss +261 -58
- package/src/scss/modules/_reset.scss +5 -4
- package/src/scss/modules/_transition.scss +31 -0
- package/src/scss/modules/_typography.scss +6 -2
- package/src/scss/modules/grid/_css-grid.scss +12 -19
- package/src/scss/modules/grid/_flex-grid.scss +9 -5
- package/src/scss/modules/grid/_mixins.scss +23 -31
- package/src/scss/themes/.deprecated +1 -0
- package/src/scss/themes/b2b/tokens.json +104 -104
- package/src/scss/themes/b2b/variables.css +142 -0
- package/src/scss/themes/cds/tokens.json +104 -104
- package/src/scss/themes/cds/variables.css +173 -31
- package/src/scss/themes/index.ts +1 -1
- package/src/scss/utility/index.scss +1 -0
- package/src/scss/utility/lists.scss +1 -1
- package/src/scss/utility/typography.scss +63 -0
- package/src/scss/utility/variables/exports/_display.scss +4 -4
- package/src/scss/utility/variables/exports/_typography.scss +22 -0
- package/src/scss/utility/variables/index.scss +1 -0
- package/src/scss/utility/variables/typography.scss +93 -0
- package/src/themes/b2bDark.ts +191 -0
- package/src/themes/b2bLight.ts +191 -0
- package/src/themes/cdsDark.ts +191 -0
- package/src/themes/cdsLight.ts +191 -0
- package/src/themes/colors.ts +492 -0
- package/src/themes/css/b2bDark.css +184 -0
- package/src/themes/css/b2bLight.css +184 -0
- package/src/themes/css/cdsDark.css +184 -0
- package/src/themes/css/cdsLight.css +184 -0
- package/src/themes/index.ts +8 -0
- package/src/themes/themes.d.ts +10 -0
- package/dist/components/CdsDropdown/composable/index.d.ts +0 -1
- package/dist/components/CdsSteps/svg/_CdsStepCurrentIcon.vue.d.ts +0 -2
- package/dist/components/CdsSteps/svg/_CdsStepsIconIncomplete.vue.d.ts +0 -2
- package/dist/composable/dark.d.ts +0 -19
- package/dist/plugins/index.d.ts +0 -2
- /package/dist/{components/CdsTable/utils → utils/use}/listener.d.ts +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { ComputedRef } from 'vue';
|
|
2
|
+
import type { TThemes } from '../themes';
|
|
3
|
+
import type { App, DeepReadonly, InjectionKey, PropType, Ref } from 'vue';
|
|
4
|
+
declare type DeepPartial<T> = T extends object ? {
|
|
5
|
+
[P in keyof T]?: DeepPartial<T[P]>;
|
|
6
|
+
} : T;
|
|
7
|
+
export declare type IThemeOptions = false | {
|
|
8
|
+
cspNonce?: string;
|
|
9
|
+
defaultTheme?: TThemes | string;
|
|
10
|
+
variations?: false | VariationOptions;
|
|
11
|
+
themes?: Record<string, ThemeDefinition>;
|
|
12
|
+
};
|
|
13
|
+
export declare type ThemeDefinition = DeepPartial<InternalThemeDefinition>;
|
|
14
|
+
export declare type TTheme = typeof availableTheme[number];
|
|
15
|
+
export interface Colors extends BaseColors {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
}
|
|
18
|
+
interface VariationOptions {
|
|
19
|
+
colors: string[];
|
|
20
|
+
lighten: number;
|
|
21
|
+
darken: number;
|
|
22
|
+
}
|
|
23
|
+
interface InternalThemeDefinition {
|
|
24
|
+
dark: boolean;
|
|
25
|
+
colors: Colors;
|
|
26
|
+
variables: Record<string, string | number>;
|
|
27
|
+
}
|
|
28
|
+
interface BaseColors {
|
|
29
|
+
'brand-primary': string;
|
|
30
|
+
'brand-primary-active': string;
|
|
31
|
+
'brand-primary-border': string;
|
|
32
|
+
'brand-primary-content': string;
|
|
33
|
+
'brand-primary-hover': string;
|
|
34
|
+
'brand-secondary': string;
|
|
35
|
+
'brand-secondary-active': string;
|
|
36
|
+
'brand-secondary-border': string;
|
|
37
|
+
'brand-secondary-hover': string;
|
|
38
|
+
}
|
|
39
|
+
export interface ThemeInstance {
|
|
40
|
+
readonly isDisabled: boolean;
|
|
41
|
+
readonly themes: Ref<Record<string, InternalThemeDefinition>>;
|
|
42
|
+
readonly name: Readonly<Ref<string>>;
|
|
43
|
+
readonly current: DeepReadonly<Ref<InternalThemeDefinition>>;
|
|
44
|
+
readonly computedThemes: DeepReadonly<Ref<Record<string, InternalThemeDefinition>>>;
|
|
45
|
+
readonly themeClasses: Readonly<ComputedRef<string | undefined>>;
|
|
46
|
+
readonly styles: Readonly<ComputedRef<string>>;
|
|
47
|
+
readonly global: {
|
|
48
|
+
readonly name: Ref<string>;
|
|
49
|
+
readonly current: DeepReadonly<Ref<InternalThemeDefinition>>;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
export declare const ThemeSymbol: InjectionKey<ThemeInstance>;
|
|
53
|
+
export declare const availableTheme: readonly ["cdsLight", "cdsDark", "b2bLight", "b2bDark"];
|
|
54
|
+
export declare const makeThemeProps: <Defaults extends {
|
|
55
|
+
theme?: unknown;
|
|
56
|
+
} = {}>(defaults?: Defaults | undefined) => import('../utils').AppendDefault<{
|
|
57
|
+
/**
|
|
58
|
+
* Тема
|
|
59
|
+
*/
|
|
60
|
+
theme: {
|
|
61
|
+
type: PropType<string>;
|
|
62
|
+
available: readonly ["cdsLight", "cdsDark", "b2bLight", "b2bDark"];
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
}, Defaults>;
|
|
66
|
+
export declare function createTheme(options?: IThemeOptions): ThemeInstance & {
|
|
67
|
+
install: (app: App) => void;
|
|
68
|
+
};
|
|
69
|
+
export declare function provideTheme(props: {
|
|
70
|
+
theme?: string;
|
|
71
|
+
}): ThemeInstance;
|
|
72
|
+
export declare function useTheme(): ThemeInstance;
|
|
73
|
+
export {};
|
|
@@ -3,6 +3,8 @@ interface ITransitionProps extends TransitionProps {
|
|
|
3
3
|
transition: string | boolean | (TransitionProps & {
|
|
4
4
|
component?: Component;
|
|
5
5
|
});
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
group?: boolean;
|
|
6
8
|
}
|
|
7
9
|
export declare const makeTransitionProps: <Defaults extends {
|
|
8
10
|
transition?: unknown;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ComputedRef, PropType } from 'vue';
|
|
2
|
+
export interface ITransparentProps {
|
|
3
|
+
transparent: boolean;
|
|
4
|
+
}
|
|
5
|
+
export interface IUseTransparentProps {
|
|
6
|
+
transparentClasses: ComputedRef<string | undefined>;
|
|
7
|
+
}
|
|
8
|
+
export declare const makeTransparentProps: <Defaults extends {
|
|
9
|
+
transparent?: unknown;
|
|
10
|
+
} = {}>(defaults?: Defaults | undefined) => import('../utils').AppendDefault<{
|
|
11
|
+
/**
|
|
12
|
+
* Позволяет использовать компонент на прозрачном фоне
|
|
13
|
+
*/
|
|
14
|
+
transparent: {
|
|
15
|
+
type: PropType<boolean>;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
}, Defaults>;
|
|
19
|
+
export declare function useTransparent(props: ITransparentProps, name: string): IUseTransparentProps;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { PropType, ComputedRef, Ref } from 'vue';
|
|
2
1
|
import type { MaybeRef } from '../utils';
|
|
2
|
+
import type { PropType, ComputedRef, Ref } from 'vue';
|
|
3
3
|
export declare type TValidationResult = string | boolean;
|
|
4
4
|
export declare type TValidationRule = TValidationResult | PromiseLike<TValidationResult> | ((value: any) => TValidationResult) | ((value: any) => PromiseLike<TValidationResult>);
|
|
5
5
|
export declare type TValidationOn = typeof allowedValidationOn[number];
|
|
@@ -102,7 +102,7 @@ export declare const makeValidationProps: <Defaults extends {
|
|
|
102
102
|
default: undefined;
|
|
103
103
|
};
|
|
104
104
|
/**
|
|
105
|
-
* Убирает слот для сообщений об
|
|
105
|
+
* Убирает слот для сообщений об ошибках
|
|
106
106
|
*/
|
|
107
107
|
hideMessages: {
|
|
108
108
|
type: PropType<boolean>;
|
|
@@ -7,15 +7,12 @@ export interface IVariantProps {
|
|
|
7
7
|
export interface IUseVariant {
|
|
8
8
|
variantClasses: ComputedRef<string>;
|
|
9
9
|
}
|
|
10
|
-
export declare const allowedVariant: readonly ["default", "important"];
|
|
10
|
+
export declare const allowedVariant: readonly ["default", "compact", "important"];
|
|
11
11
|
export declare const makeVariantProps: <Defaults extends {
|
|
12
12
|
variant?: unknown;
|
|
13
13
|
} = {}>(defaults?: Defaults | undefined) => import('../utils').AppendDefault<{
|
|
14
|
-
/**
|
|
15
|
-
* Вариант отображения
|
|
16
|
-
*/
|
|
17
14
|
variant: {
|
|
18
|
-
type: PropType<
|
|
15
|
+
type: PropType<"default" | "compact" | "important">;
|
|
19
16
|
default: string;
|
|
20
17
|
validator: (value: TVariant) => boolean;
|
|
21
18
|
};
|
package/dist/create.d.ts
CHANGED
|
@@ -1,15 +1,18 @@
|
|
|
1
|
+
import { ITeleportOptions } from './components/CdsOverlay/composable';
|
|
1
2
|
import { ILocale, TAvailableLocale } from './locale';
|
|
3
|
+
import type { IDisplayOptions, IThemeOptions } from './composable';
|
|
2
4
|
import type { App } from 'vue';
|
|
3
|
-
import type { IDisplayOptions } from './composable';
|
|
4
5
|
export interface ICdsOptions {
|
|
5
6
|
components?: Record<string, any>;
|
|
6
7
|
directives?: Record<string, any>;
|
|
7
8
|
icons?: Record<string, any>;
|
|
8
9
|
illustrations?: Record<string, any>;
|
|
9
10
|
display?: IDisplayOptions;
|
|
11
|
+
theme?: IThemeOptions;
|
|
10
12
|
cssGrid?: boolean;
|
|
11
13
|
ssr?: boolean;
|
|
12
14
|
locale?: TAvailableLocale | ILocale;
|
|
15
|
+
teleport?: Partial<ITeleportOptions>;
|
|
13
16
|
}
|
|
14
17
|
interface NuxtApp {
|
|
15
18
|
$nuxt?: {
|
|
@@ -19,5 +22,8 @@ interface NuxtApp {
|
|
|
19
22
|
export declare function createCds(options?: ICdsOptions): {
|
|
20
23
|
install: (app: App & NuxtApp) => void;
|
|
21
24
|
display: import("./composable").IDisplayInstance;
|
|
25
|
+
theme: import("./composable").ThemeInstance & {
|
|
26
|
+
install: (app: App<any>) => void;
|
|
27
|
+
};
|
|
22
28
|
};
|
|
23
29
|
export {};
|
package/dist/globals.d.ts
CHANGED
|
@@ -27,5 +27,12 @@ declare global {
|
|
|
27
27
|
>;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
|
+
interface MouseEvent {
|
|
31
|
+
sourceCapabilities?: { firesTouchEvents: boolean };
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
function parseInt(s: string | number, radix?: number): number;
|
|
35
|
+
function parseFloat(string: string | number): number;
|
|
36
|
+
|
|
30
37
|
export const __VUE_OPTIONS_API__: boolean | undefined;
|
|
31
38
|
}
|
package/dist/locale/index.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
import type { TNotificationLocale } from '../components/CdsNotification/composable';
|
|
1
2
|
import type { NTable } from '../components/CdsTable/interface';
|
|
2
3
|
import type { NUploader } from '../components/CdsUploader/interface';
|
|
3
|
-
import type { TNotificationLocale } from '../components/CdsNotification/composable';
|
|
4
4
|
import type { TDateLocale } from '../utils';
|
|
5
5
|
export interface ILocale {
|
|
6
6
|
notification: TNotificationLocale;
|
|
7
7
|
table: NTable.ILocale;
|
|
8
8
|
date: TDateLocale;
|
|
9
|
+
time: {
|
|
10
|
+
now: string;
|
|
11
|
+
};
|
|
9
12
|
container: {
|
|
10
13
|
prev?: string;
|
|
11
14
|
next?: string;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
dark: boolean;
|
|
3
|
+
colors: {
|
|
4
|
+
'surface-secondary': string;
|
|
5
|
+
'surface-primary': string;
|
|
6
|
+
'surface-overlay': string;
|
|
7
|
+
'surface-inverse': string;
|
|
8
|
+
'surface-elevated': string;
|
|
9
|
+
'status-warning-surface': string;
|
|
10
|
+
'status-warning-line': string;
|
|
11
|
+
'status-warning-fill-hover': string;
|
|
12
|
+
'status-warning-fill': string;
|
|
13
|
+
'status-warning-content': string;
|
|
14
|
+
'status-success-surface': string;
|
|
15
|
+
'status-success-line': string;
|
|
16
|
+
'status-success-fill-hover': string;
|
|
17
|
+
'status-success-fill': string;
|
|
18
|
+
'status-success-content': string;
|
|
19
|
+
'status-progress-surface': string;
|
|
20
|
+
'status-progress-line': string;
|
|
21
|
+
'status-progress-fill-hover': string;
|
|
22
|
+
'status-progress-fill': string;
|
|
23
|
+
'status-progress-content': string;
|
|
24
|
+
'status-info-surface': string;
|
|
25
|
+
'status-info-line': string;
|
|
26
|
+
'status-info-fill-hover': string;
|
|
27
|
+
'status-info-fill': string;
|
|
28
|
+
'status-info-content': string;
|
|
29
|
+
'status-indication-surface': string;
|
|
30
|
+
'status-indication-line': string;
|
|
31
|
+
'status-indication-fill-hover': string;
|
|
32
|
+
'status-indication-fill': string;
|
|
33
|
+
'status-indication-content': string;
|
|
34
|
+
'status-danger-surface': string;
|
|
35
|
+
'status-danger-line': string;
|
|
36
|
+
'status-danger-fill-hover': string;
|
|
37
|
+
'status-danger-fill': string;
|
|
38
|
+
'status-danger-content': string;
|
|
39
|
+
'page-primary': string;
|
|
40
|
+
'other-teal-surface': string;
|
|
41
|
+
'other-teal-line': string;
|
|
42
|
+
'other-teal-fill-hover': string;
|
|
43
|
+
'other-teal-fill': string;
|
|
44
|
+
'other-teal-content': string;
|
|
45
|
+
'other-purple-surface': string;
|
|
46
|
+
'other-purple-line': string;
|
|
47
|
+
'other-purple-fill-hover': string;
|
|
48
|
+
'other-purple-fill': string;
|
|
49
|
+
'other-purple-content': string;
|
|
50
|
+
'other-pink-surface': string;
|
|
51
|
+
'other-pink-line': string;
|
|
52
|
+
'other-pink-fill-hover': string;
|
|
53
|
+
'other-pink-fill': string;
|
|
54
|
+
'other-pink-content': string;
|
|
55
|
+
'other-lime-surface': string;
|
|
56
|
+
'other-lime-line': string;
|
|
57
|
+
'other-lime-fill-hover': string;
|
|
58
|
+
'other-lime-fill': string;
|
|
59
|
+
'other-lime-content': string;
|
|
60
|
+
'other-lemon-surface': string;
|
|
61
|
+
'other-lemon-line': string;
|
|
62
|
+
'other-lemon-fill-hover': string;
|
|
63
|
+
'other-lemon-fill': string;
|
|
64
|
+
'other-lemon-content': string;
|
|
65
|
+
'other-indigo-surface': string;
|
|
66
|
+
'other-indigo-line': string;
|
|
67
|
+
'other-indigo-fill-hover': string;
|
|
68
|
+
'other-indigo-fill': string;
|
|
69
|
+
'other-indigo-content': string;
|
|
70
|
+
'other-cyan-surface': string;
|
|
71
|
+
'other-cyan-line': string;
|
|
72
|
+
'other-cyan-fill-hover': string;
|
|
73
|
+
'other-cyan-fill': string;
|
|
74
|
+
'other-cyan-content': string;
|
|
75
|
+
'other-chocolate-surface': string;
|
|
76
|
+
'other-chocolate-line': string;
|
|
77
|
+
'other-chocolate-fill-hover': string;
|
|
78
|
+
'other-chocolate-fill': string;
|
|
79
|
+
'other-chocolate-content': string;
|
|
80
|
+
'line-tertiary-hover': string;
|
|
81
|
+
'line-tertiary': string;
|
|
82
|
+
'line-selected-hover': string;
|
|
83
|
+
'line-selected': string;
|
|
84
|
+
'line-secondary-hover': string;
|
|
85
|
+
'line-secondary': string;
|
|
86
|
+
'line-primary-hover': string;
|
|
87
|
+
'line-primary': string;
|
|
88
|
+
'line-focus-outline': string;
|
|
89
|
+
'line-focus': string;
|
|
90
|
+
'line-elevated': string;
|
|
91
|
+
'line-disable': string;
|
|
92
|
+
'fill-selected-hover': string;
|
|
93
|
+
'fill-selected': string;
|
|
94
|
+
'fill-secondary-hover': string;
|
|
95
|
+
'fill-secondary-active': string;
|
|
96
|
+
'fill-secondary': string;
|
|
97
|
+
'fill-primary-hover': string;
|
|
98
|
+
'fill-primary-active': string;
|
|
99
|
+
'fill-primary': string;
|
|
100
|
+
'fill-elevated': string;
|
|
101
|
+
'fill-disable': string;
|
|
102
|
+
'content-tertiary': string;
|
|
103
|
+
'content-secondary': string;
|
|
104
|
+
'content-primary': string;
|
|
105
|
+
'content-placeholder': string;
|
|
106
|
+
'content-on-dark': string;
|
|
107
|
+
'content-link-visited': string;
|
|
108
|
+
'content-link': string;
|
|
109
|
+
'content-inverse': string;
|
|
110
|
+
'content-disable': string;
|
|
111
|
+
'brand-secondary-hover': string;
|
|
112
|
+
'brand-secondary-border': string;
|
|
113
|
+
'brand-secondary-active': string;
|
|
114
|
+
'brand-secondary': string;
|
|
115
|
+
'brand-primary-hover': string;
|
|
116
|
+
'brand-primary-content': string;
|
|
117
|
+
'brand-primary-border': string;
|
|
118
|
+
'brand-primary-active': string;
|
|
119
|
+
'brand-primary': string;
|
|
120
|
+
};
|
|
121
|
+
variables: {
|
|
122
|
+
'spacing-900': string;
|
|
123
|
+
'spacing-800': string;
|
|
124
|
+
'spacing-700': string;
|
|
125
|
+
'spacing-600': string;
|
|
126
|
+
'spacing-500': string;
|
|
127
|
+
'spacing-50': string;
|
|
128
|
+
'spacing-400': string;
|
|
129
|
+
'spacing-300': string;
|
|
130
|
+
'spacing-200': string;
|
|
131
|
+
'spacing-1100': string;
|
|
132
|
+
'spacing-1000': string;
|
|
133
|
+
'spacing-100': string;
|
|
134
|
+
'shadow-y-minus-400': string;
|
|
135
|
+
'shadow-y-minus-300': string;
|
|
136
|
+
'shadow-y-minus-200': string;
|
|
137
|
+
'shadow-y-minus-100': string;
|
|
138
|
+
'shadow-y-400': string;
|
|
139
|
+
'shadow-y-300': string;
|
|
140
|
+
'shadow-y-200': string;
|
|
141
|
+
'shadow-y-100': string;
|
|
142
|
+
'shadow-x-minus-400': string;
|
|
143
|
+
'shadow-x-minus-300': string;
|
|
144
|
+
'shadow-x-minus-200': string;
|
|
145
|
+
'shadow-x-minus-100': string;
|
|
146
|
+
'shadow-x-400': string;
|
|
147
|
+
'shadow-x-300': string;
|
|
148
|
+
'shadow-x-200': string;
|
|
149
|
+
'shadow-x-100': string;
|
|
150
|
+
'shadow-blur-400': string;
|
|
151
|
+
'shadow-blur-300': string;
|
|
152
|
+
'shadow-blur-200': string;
|
|
153
|
+
'shadow-blur-100': string;
|
|
154
|
+
'font-weight-regular': number;
|
|
155
|
+
'font-weight-bold': number;
|
|
156
|
+
'font-size-900': string;
|
|
157
|
+
'font-size-800': string;
|
|
158
|
+
'font-size-700': string;
|
|
159
|
+
'font-size-600': string;
|
|
160
|
+
'font-size-500': string;
|
|
161
|
+
'font-size-50': string;
|
|
162
|
+
'font-size-400': string;
|
|
163
|
+
'font-size-300': string;
|
|
164
|
+
'font-size-200': string;
|
|
165
|
+
'font-size-1100': string;
|
|
166
|
+
'font-size-1000': string;
|
|
167
|
+
'font-size-100': string;
|
|
168
|
+
'font-line-height-900': string;
|
|
169
|
+
'font-line-height-800': string;
|
|
170
|
+
'font-line-height-700': string;
|
|
171
|
+
'font-line-height-600': string;
|
|
172
|
+
'font-line-height-500': string;
|
|
173
|
+
'font-line-height-50': string;
|
|
174
|
+
'font-line-height-400': string;
|
|
175
|
+
'font-line-height-300': string;
|
|
176
|
+
'font-line-height-200': string;
|
|
177
|
+
'font-line-height-1100': string;
|
|
178
|
+
'font-line-height-1000': string;
|
|
179
|
+
'font-line-height-100': string;
|
|
180
|
+
'font-letter-spacing-500': string;
|
|
181
|
+
'font-family': string;
|
|
182
|
+
'border-radius-300': string;
|
|
183
|
+
'border-radius-200': string;
|
|
184
|
+
'border-radius-100': string;
|
|
185
|
+
'border-200': string;
|
|
186
|
+
'border-100': string;
|
|
187
|
+
'base-unit': string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
export default _default;
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
dark: boolean;
|
|
3
|
+
colors: {
|
|
4
|
+
'surface-secondary': string;
|
|
5
|
+
'surface-primary': string;
|
|
6
|
+
'surface-overlay': string;
|
|
7
|
+
'surface-inverse': string;
|
|
8
|
+
'surface-elevated': string;
|
|
9
|
+
'status-warning-surface': string;
|
|
10
|
+
'status-warning-line': string;
|
|
11
|
+
'status-warning-fill-hover': string;
|
|
12
|
+
'status-warning-fill': string;
|
|
13
|
+
'status-warning-content': string;
|
|
14
|
+
'status-success-surface': string;
|
|
15
|
+
'status-success-line': string;
|
|
16
|
+
'status-success-fill-hover': string;
|
|
17
|
+
'status-success-fill': string;
|
|
18
|
+
'status-success-content': string;
|
|
19
|
+
'status-progress-surface': string;
|
|
20
|
+
'status-progress-line': string;
|
|
21
|
+
'status-progress-fill-hover': string;
|
|
22
|
+
'status-progress-fill': string;
|
|
23
|
+
'status-progress-content': string;
|
|
24
|
+
'status-info-surface': string;
|
|
25
|
+
'status-info-line': string;
|
|
26
|
+
'status-info-fill-hover': string;
|
|
27
|
+
'status-info-fill': string;
|
|
28
|
+
'status-info-content': string;
|
|
29
|
+
'status-indication-surface': string;
|
|
30
|
+
'status-indication-line': string;
|
|
31
|
+
'status-indication-fill-hover': string;
|
|
32
|
+
'status-indication-fill': string;
|
|
33
|
+
'status-indication-content': string;
|
|
34
|
+
'status-danger-surface': string;
|
|
35
|
+
'status-danger-line': string;
|
|
36
|
+
'status-danger-fill-hover': string;
|
|
37
|
+
'status-danger-fill': string;
|
|
38
|
+
'status-danger-content': string;
|
|
39
|
+
'page-primary': string;
|
|
40
|
+
'other-teal-surface': string;
|
|
41
|
+
'other-teal-line': string;
|
|
42
|
+
'other-teal-fill-hover': string;
|
|
43
|
+
'other-teal-fill': string;
|
|
44
|
+
'other-teal-content': string;
|
|
45
|
+
'other-purple-surface': string;
|
|
46
|
+
'other-purple-line': string;
|
|
47
|
+
'other-purple-fill-hover': string;
|
|
48
|
+
'other-purple-fill': string;
|
|
49
|
+
'other-purple-content': string;
|
|
50
|
+
'other-pink-surface': string;
|
|
51
|
+
'other-pink-line': string;
|
|
52
|
+
'other-pink-fill-hover': string;
|
|
53
|
+
'other-pink-fill': string;
|
|
54
|
+
'other-pink-content': string;
|
|
55
|
+
'other-lime-surface': string;
|
|
56
|
+
'other-lime-line': string;
|
|
57
|
+
'other-lime-fill-hover': string;
|
|
58
|
+
'other-lime-fill': string;
|
|
59
|
+
'other-lime-content': string;
|
|
60
|
+
'other-lemon-surface': string;
|
|
61
|
+
'other-lemon-line': string;
|
|
62
|
+
'other-lemon-fill-hover': string;
|
|
63
|
+
'other-lemon-fill': string;
|
|
64
|
+
'other-lemon-content': string;
|
|
65
|
+
'other-indigo-surface': string;
|
|
66
|
+
'other-indigo-line': string;
|
|
67
|
+
'other-indigo-fill-hover': string;
|
|
68
|
+
'other-indigo-fill': string;
|
|
69
|
+
'other-indigo-content': string;
|
|
70
|
+
'other-cyan-surface': string;
|
|
71
|
+
'other-cyan-line': string;
|
|
72
|
+
'other-cyan-fill-hover': string;
|
|
73
|
+
'other-cyan-fill': string;
|
|
74
|
+
'other-cyan-content': string;
|
|
75
|
+
'other-chocolate-surface': string;
|
|
76
|
+
'other-chocolate-line': string;
|
|
77
|
+
'other-chocolate-fill-hover': string;
|
|
78
|
+
'other-chocolate-fill': string;
|
|
79
|
+
'other-chocolate-content': string;
|
|
80
|
+
'line-tertiary-hover': string;
|
|
81
|
+
'line-tertiary': string;
|
|
82
|
+
'line-selected-hover': string;
|
|
83
|
+
'line-selected': string;
|
|
84
|
+
'line-secondary-hover': string;
|
|
85
|
+
'line-secondary': string;
|
|
86
|
+
'line-primary-hover': string;
|
|
87
|
+
'line-primary': string;
|
|
88
|
+
'line-focus-outline': string;
|
|
89
|
+
'line-focus': string;
|
|
90
|
+
'line-elevated': string;
|
|
91
|
+
'line-disable': string;
|
|
92
|
+
'fill-selected-hover': string;
|
|
93
|
+
'fill-selected': string;
|
|
94
|
+
'fill-secondary-hover': string;
|
|
95
|
+
'fill-secondary-active': string;
|
|
96
|
+
'fill-secondary': string;
|
|
97
|
+
'fill-primary-hover': string;
|
|
98
|
+
'fill-primary-active': string;
|
|
99
|
+
'fill-primary': string;
|
|
100
|
+
'fill-elevated': string;
|
|
101
|
+
'fill-disable': string;
|
|
102
|
+
'content-tertiary': string;
|
|
103
|
+
'content-secondary': string;
|
|
104
|
+
'content-primary': string;
|
|
105
|
+
'content-placeholder': string;
|
|
106
|
+
'content-on-dark': string;
|
|
107
|
+
'content-link-visited': string;
|
|
108
|
+
'content-link': string;
|
|
109
|
+
'content-inverse': string;
|
|
110
|
+
'content-disable': string;
|
|
111
|
+
'brand-secondary-hover': string;
|
|
112
|
+
'brand-secondary-border': string;
|
|
113
|
+
'brand-secondary-active': string;
|
|
114
|
+
'brand-secondary': string;
|
|
115
|
+
'brand-primary-hover': string;
|
|
116
|
+
'brand-primary-content': string;
|
|
117
|
+
'brand-primary-border': string;
|
|
118
|
+
'brand-primary-active': string;
|
|
119
|
+
'brand-primary': string;
|
|
120
|
+
};
|
|
121
|
+
variables: {
|
|
122
|
+
'spacing-900': string;
|
|
123
|
+
'spacing-800': string;
|
|
124
|
+
'spacing-700': string;
|
|
125
|
+
'spacing-600': string;
|
|
126
|
+
'spacing-500': string;
|
|
127
|
+
'spacing-50': string;
|
|
128
|
+
'spacing-400': string;
|
|
129
|
+
'spacing-300': string;
|
|
130
|
+
'spacing-200': string;
|
|
131
|
+
'spacing-1100': string;
|
|
132
|
+
'spacing-1000': string;
|
|
133
|
+
'spacing-100': string;
|
|
134
|
+
'shadow-y-minus-400': string;
|
|
135
|
+
'shadow-y-minus-300': string;
|
|
136
|
+
'shadow-y-minus-200': string;
|
|
137
|
+
'shadow-y-minus-100': string;
|
|
138
|
+
'shadow-y-400': string;
|
|
139
|
+
'shadow-y-300': string;
|
|
140
|
+
'shadow-y-200': string;
|
|
141
|
+
'shadow-y-100': string;
|
|
142
|
+
'shadow-x-minus-400': string;
|
|
143
|
+
'shadow-x-minus-300': string;
|
|
144
|
+
'shadow-x-minus-200': string;
|
|
145
|
+
'shadow-x-minus-100': string;
|
|
146
|
+
'shadow-x-400': string;
|
|
147
|
+
'shadow-x-300': string;
|
|
148
|
+
'shadow-x-200': string;
|
|
149
|
+
'shadow-x-100': string;
|
|
150
|
+
'shadow-blur-400': string;
|
|
151
|
+
'shadow-blur-300': string;
|
|
152
|
+
'shadow-blur-200': string;
|
|
153
|
+
'shadow-blur-100': string;
|
|
154
|
+
'font-weight-regular': number;
|
|
155
|
+
'font-weight-bold': number;
|
|
156
|
+
'font-size-900': string;
|
|
157
|
+
'font-size-800': string;
|
|
158
|
+
'font-size-700': string;
|
|
159
|
+
'font-size-600': string;
|
|
160
|
+
'font-size-500': string;
|
|
161
|
+
'font-size-50': string;
|
|
162
|
+
'font-size-400': string;
|
|
163
|
+
'font-size-300': string;
|
|
164
|
+
'font-size-200': string;
|
|
165
|
+
'font-size-1100': string;
|
|
166
|
+
'font-size-1000': string;
|
|
167
|
+
'font-size-100': string;
|
|
168
|
+
'font-line-height-900': string;
|
|
169
|
+
'font-line-height-800': string;
|
|
170
|
+
'font-line-height-700': string;
|
|
171
|
+
'font-line-height-600': string;
|
|
172
|
+
'font-line-height-500': string;
|
|
173
|
+
'font-line-height-50': string;
|
|
174
|
+
'font-line-height-400': string;
|
|
175
|
+
'font-line-height-300': string;
|
|
176
|
+
'font-line-height-200': string;
|
|
177
|
+
'font-line-height-1100': string;
|
|
178
|
+
'font-line-height-1000': string;
|
|
179
|
+
'font-line-height-100': string;
|
|
180
|
+
'font-letter-spacing-500': string;
|
|
181
|
+
'font-family': string;
|
|
182
|
+
'border-radius-300': string;
|
|
183
|
+
'border-radius-200': string;
|
|
184
|
+
'border-radius-100': string;
|
|
185
|
+
'border-200': string;
|
|
186
|
+
'border-100': string;
|
|
187
|
+
'base-unit': string;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
export default _default;
|