@uzum-tech/ui 1.12.0 → 1.12.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/index.js +22930 -22766
- package/dist/index.prod.js +3 -3
- package/es/_internal/close/src/Close.d.ts +2 -2
- package/es/_internal/loading/src/Loading.d.ts +1 -1
- package/es/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +2 -2
- package/es/_internal/scrollbar/src/Scrollbar.d.ts +2 -2
- package/es/_internal/select-menu/src/SelectMenu.d.ts +7 -7
- package/es/_internal/selection/src/Selection.d.ts +13 -13
- package/es/_internal/skeleton/src/Skeleton.d.ts +1 -1
- package/es/_internal/typography/index.d.ts +1 -0
- package/es/_internal/typography/src/text.d.ts +42 -3
- package/es/_internal/typography/src/text.js +17 -4
- package/es/_internal/typography/src/variants.d.ts +105 -4
- package/es/_internal/typography/src/variants.js +84 -42
- package/es/_internal/typography/styles/dark.js +1 -1
- package/es/_internal/typography/styles/light.d.ts +1 -1
- package/es/_internal/typography/styles/light.js +1 -1
- package/es/affix/src/Affix.d.ts +3 -3
- package/es/alert/src/Alert.d.ts +3 -3
- package/es/anchor/src/AnchorAdapter.d.ts +5 -5
- package/es/auto-complete/src/AutoComplete.d.ts +3 -3
- package/es/avatar/src/Avatar.d.ts +1 -1
- package/es/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/es/back-top/src/BackTop.d.ts +1 -1
- package/es/badge/src/Badge.d.ts +1 -1
- package/es/button/src/Button.d.ts +7 -7
- package/es/card/src/Card.d.ts +3 -3
- package/es/card-list/src/CardList.d.ts +2 -2
- package/es/card-list/src/CardListItem.d.ts +1 -1
- package/es/carousel/src/Carousel.d.ts +8 -8
- package/es/carousel/src/CarouselDots.d.ts +2 -2
- package/es/cascader/src/Cascader.d.ts +12 -12
- package/es/cascader/src/CascaderMenu.d.ts +1 -1
- package/es/cascader/src/CascaderSelectMenu.d.ts +1 -1
- package/es/checkbox/src/Checkbox.d.ts +5 -5
- package/es/code/src/Code.d.ts +1 -1
- package/es/collapse/src/Collapse.d.ts +1 -1
- package/es/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/es/color-picker/src/ColorPicker.d.ts +3 -3
- package/es/config-provider/src/ConfigProvider.d.ts +7 -1
- package/es/config-provider/src/ConfigProvider.js +83 -12
- package/es/config-provider/src/interface.d.ts +1 -1
- package/es/config-provider/src/internal-interface.d.ts +196 -34
- package/es/countdown/src/Countdown.d.ts +1 -1
- package/es/create.js +34 -3
- package/es/data-table/src/DataTable.d.ts +6 -6
- package/es/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/es/date-picker/src/DatePicker.d.ts +4 -4
- package/es/date-picker/src/panel/date.d.ts +1 -1
- package/es/date-picker/src/panel/daterange.d.ts +1 -1
- package/es/date-picker/src/panel/datetime.d.ts +1 -1
- package/es/date-picker/src/panel/datetimerange.d.ts +1 -1
- package/es/date-picker/src/panel/panelMonth.d.ts +9 -9
- package/es/date-picker/src/panel/panelMonthContent.d.ts +1 -1
- package/es/date-picker/src/panel/panelYear.d.ts +9 -9
- package/es/date-picker/src/panel/panelYearContent.d.ts +1 -1
- package/es/descriptions/src/Descriptions.d.ts +3 -3
- package/es/dialog/src/Dialog.d.ts +1 -1
- package/es/dialog/src/DialogEnvironment.d.ts +3 -3
- package/es/dialog/src/DialogProvider.d.ts +29 -29
- package/es/dialog/src/dialogProps.d.ts +1 -1
- package/es/drawer/src/Drawer.d.ts +7 -7
- package/es/drawer/src/DrawerBodyWrapper.d.ts +2 -2
- package/es/dropdown/src/Dropdown.d.ts +15 -15
- package/es/dropdown/src/DropdownMenu.d.ts +2 -2
- package/es/dropdown/src/DropdownOption.d.ts +1 -1
- package/es/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +2 -2
- package/es/empty/src/Empty.d.ts +1 -1
- package/es/flex/src/Flex.d.ts +1 -1
- package/es/form/src/FormItem.d.ts +3 -3
- package/es/form/src/FormItemCol.d.ts +2 -2
- package/es/form/src/FormItemGridItem.d.ts +2 -2
- package/es/form/src/FormItemRow.d.ts +2 -2
- package/es/form/src/utils.d.ts +1 -1
- package/es/gradient-text/src/GradientText.d.ts +2 -2
- package/es/grid/src/Grid.d.ts +4 -4
- package/es/header/src/HeaderNavigation.d.ts +1 -1
- package/es/icon-bar/src/IconBar.d.ts +1 -1
- package/es/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/es/input/src/Input.d.ts +8 -8
- package/es/input-number/src/InputNumber.d.ts +3 -3
- package/es/input-otp/src/InputOtp.d.ts +1 -1
- package/es/layout/src/LayoutSider.d.ts +2 -2
- package/es/legacy-grid/src/Row.d.ts +1 -1
- package/es/legacy-transfer/src/Transfer.d.ts +2 -2
- package/es/list/src/List.d.ts +6 -6
- package/es/list/src/ListItem.d.ts +4 -4
- package/es/log/src/Log.d.ts +2 -2
- package/es/mention/src/Mention.d.ts +3 -3
- package/es/menu/src/Menu.d.ts +5 -5
- package/es/menu/src/MenuOption.d.ts +1 -1
- package/es/menu/src/MenuOptionContent.d.ts +1 -1
- package/es/menu/src/MenuOptionGroup.d.ts +1 -1
- package/es/menu/src/Submenu.d.ts +1 -1
- package/es/message/src/MessageProvider.d.ts +1 -1
- package/es/modal/src/BodyWrapper.d.ts +3 -3
- package/es/modal/src/Modal.d.ts +6 -6
- package/es/modal/src/presetProps.d.ts +1 -1
- package/es/modal-fullscreen/src/ModalFull.d.ts +2 -2
- package/es/notification/src/Notification.d.ts +2 -2
- package/es/notification/src/NotificationEnvironment.d.ts +1 -1
- package/es/notification/src/NotificationProvider.d.ts +9 -9
- package/es/number-animation/src/NumberAnimation.d.ts +2 -2
- package/es/pagination/src/Pagination.d.ts +1 -1
- package/es/popconfirm/src/Popconfirm.d.ts +8 -8
- package/es/popover/src/Popover.d.ts +8 -8
- package/es/popover/src/PopoverBody.d.ts +2 -2
- package/es/popselect/src/Popselect.d.ts +81 -81
- package/es/popselect/src/PopselectPanel.d.ts +4 -4
- package/es/progress/src/Circle.d.ts +1 -1
- package/es/progress/src/MultipleCircle.d.ts +1 -1
- package/es/progress/src/Progress.d.ts +4 -4
- package/es/qr-code/src/QrCode.d.ts +2 -2
- package/es/radio/src/Radio.d.ts +1 -1
- package/es/rate/src/Rate.d.ts +3 -3
- package/es/result/src/Result.d.ts +1 -1
- package/es/select/src/Select.d.ts +19 -19
- package/es/skeleton/src/Skeleton.d.ts +1 -1
- package/es/slider/src/Slider.d.ts +4 -4
- package/es/space/src/Space.d.ts +1 -1
- package/es/spin/src/Spin.d.ts +2 -2
- package/es/steps/src/Steps.d.ts +1 -1
- package/es/switch/src/Switch.d.ts +1 -1
- package/es/tabs/src/Tab.d.ts +1 -1
- package/es/tabs/src/Tabs.d.ts +4 -4
- package/es/tag/src/Tag.d.ts +2 -2
- package/es/tag/src/TagGroup.d.ts +1 -1
- package/es/time/src/Time.d.ts +1 -1
- package/es/time-picker/src/Panel.d.ts +1 -1
- package/es/time-picker/src/TimePicker.d.ts +5 -5
- package/es/timeline/src/TimelineItem.d.ts +1 -1
- package/es/tooltip/src/Tooltip.d.ts +8 -8
- package/es/transfer/src/Transfer.d.ts +3 -3
- package/es/tree/src/Tree.d.ts +18 -18
- package/es/tree/src/TreeNodeCheckbox.d.ts +1 -1
- package/es/tree-select/src/TreeSelect.d.ts +15 -15
- package/es/typography/index.d.ts +1 -0
- package/es/typography/src/create-header.d.ts +1 -1
- package/es/typography/src/headers.d.ts +6 -6
- package/es/typography/src/text.d.ts +44 -5
- package/es/upload/src/Upload.d.ts +11 -11
- package/es/upload/src/UploadFile.d.ts +1 -1
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/es/virtual-list/src/VirtualList.d.ts +2 -2
- package/es/watermark/src/Watermark.d.ts +7 -7
- package/lib/_internal/close/src/Close.d.ts +2 -2
- package/lib/_internal/loading/src/Loading.d.ts +1 -1
- package/lib/_internal/safe-top-scrollbar/src/SafeTopScrollbar.d.ts +2 -2
- package/lib/_internal/scrollbar/src/Scrollbar.d.ts +2 -2
- package/lib/_internal/select-menu/src/SelectMenu.d.ts +7 -7
- package/lib/_internal/selection/src/Selection.d.ts +13 -13
- package/lib/_internal/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/_internal/typography/index.d.ts +1 -0
- package/lib/_internal/typography/src/text.d.ts +42 -3
- package/lib/_internal/typography/src/text.js +18 -5
- package/lib/_internal/typography/src/variants.d.ts +105 -4
- package/lib/_internal/typography/src/variants.js +87 -43
- package/lib/_internal/typography/styles/dark.js +2 -2
- package/lib/_internal/typography/styles/light.d.ts +1 -1
- package/lib/_internal/typography/styles/light.js +2 -2
- package/lib/affix/src/Affix.d.ts +3 -3
- package/lib/alert/src/Alert.d.ts +3 -3
- package/lib/anchor/src/AnchorAdapter.d.ts +5 -5
- package/lib/auto-complete/src/AutoComplete.d.ts +3 -3
- package/lib/avatar/src/Avatar.d.ts +1 -1
- package/lib/avatar-group/src/AvatarGroup.d.ts +1 -1
- package/lib/back-top/src/BackTop.d.ts +1 -1
- package/lib/badge/src/Badge.d.ts +1 -1
- package/lib/button/src/Button.d.ts +7 -7
- package/lib/card/src/Card.d.ts +3 -3
- package/lib/card-list/src/CardList.d.ts +2 -2
- package/lib/card-list/src/CardListItem.d.ts +1 -1
- package/lib/carousel/src/Carousel.d.ts +8 -8
- package/lib/carousel/src/CarouselDots.d.ts +2 -2
- package/lib/cascader/src/Cascader.d.ts +12 -12
- package/lib/cascader/src/CascaderMenu.d.ts +1 -1
- package/lib/cascader/src/CascaderSelectMenu.d.ts +1 -1
- package/lib/checkbox/src/Checkbox.d.ts +5 -5
- package/lib/code/src/Code.d.ts +1 -1
- package/lib/collapse/src/Collapse.d.ts +1 -1
- package/lib/collapse-transition/src/CollapseTransition.d.ts +1 -1
- package/lib/color-picker/src/ColorPicker.d.ts +3 -3
- package/lib/config-provider/src/ConfigProvider.d.ts +7 -1
- package/lib/config-provider/src/ConfigProvider.js +81 -10
- package/lib/config-provider/src/interface.d.ts +1 -1
- package/lib/config-provider/src/internal-interface.d.ts +196 -34
- package/lib/countdown/src/Countdown.d.ts +1 -1
- package/lib/create.js +34 -3
- package/lib/data-table/src/DataTable.d.ts +6 -6
- package/lib/data-table/src/HeaderButton/RenderFilter.d.ts +1 -1
- package/lib/date-picker/src/DatePicker.d.ts +4 -4
- package/lib/date-picker/src/panel/date.d.ts +1 -1
- package/lib/date-picker/src/panel/daterange.d.ts +1 -1
- package/lib/date-picker/src/panel/datetime.d.ts +1 -1
- package/lib/date-picker/src/panel/datetimerange.d.ts +1 -1
- package/lib/date-picker/src/panel/panelMonth.d.ts +9 -9
- package/lib/date-picker/src/panel/panelMonthContent.d.ts +1 -1
- package/lib/date-picker/src/panel/panelYear.d.ts +9 -9
- package/lib/date-picker/src/panel/panelYearContent.d.ts +1 -1
- package/lib/descriptions/src/Descriptions.d.ts +3 -3
- package/lib/dialog/src/Dialog.d.ts +1 -1
- package/lib/dialog/src/DialogEnvironment.d.ts +3 -3
- package/lib/dialog/src/DialogProvider.d.ts +29 -29
- package/lib/dialog/src/dialogProps.d.ts +1 -1
- package/lib/drawer/src/Drawer.d.ts +7 -7
- package/lib/drawer/src/DrawerBodyWrapper.d.ts +2 -2
- package/lib/dropdown/src/Dropdown.d.ts +15 -15
- package/lib/dropdown/src/DropdownMenu.d.ts +2 -2
- package/lib/dropdown/src/DropdownOption.d.ts +1 -1
- package/lib/dynamic-input/src/DynamicInput.d.ts +1 -1
- package/lib/dynamic-tags/src/DynamicTags.d.ts +2 -2
- package/lib/empty/src/Empty.d.ts +1 -1
- package/lib/flex/src/Flex.d.ts +1 -1
- package/lib/form/src/FormItem.d.ts +3 -3
- package/lib/form/src/FormItemCol.d.ts +2 -2
- package/lib/form/src/FormItemGridItem.d.ts +2 -2
- package/lib/form/src/FormItemRow.d.ts +2 -2
- package/lib/form/src/utils.d.ts +1 -1
- package/lib/gradient-text/src/GradientText.d.ts +2 -2
- package/lib/grid/src/Grid.d.ts +4 -4
- package/lib/header/src/HeaderNavigation.d.ts +1 -1
- package/lib/icon-bar/src/IconBar.d.ts +1 -1
- package/lib/icon-wrapper/src/IconWrapper.d.ts +1 -1
- package/lib/input/src/Input.d.ts +8 -8
- package/lib/input-number/src/InputNumber.d.ts +3 -3
- package/lib/input-otp/src/InputOtp.d.ts +1 -1
- package/lib/layout/src/LayoutSider.d.ts +2 -2
- package/lib/legacy-grid/src/Row.d.ts +1 -1
- package/lib/legacy-transfer/src/Transfer.d.ts +2 -2
- package/lib/list/src/List.d.ts +6 -6
- package/lib/list/src/ListItem.d.ts +4 -4
- package/lib/log/src/Log.d.ts +2 -2
- package/lib/mention/src/Mention.d.ts +3 -3
- package/lib/menu/src/Menu.d.ts +5 -5
- package/lib/menu/src/MenuOption.d.ts +1 -1
- package/lib/menu/src/MenuOptionContent.d.ts +1 -1
- package/lib/menu/src/MenuOptionGroup.d.ts +1 -1
- package/lib/menu/src/Submenu.d.ts +1 -1
- package/lib/message/src/MessageProvider.d.ts +1 -1
- package/lib/modal/src/BodyWrapper.d.ts +3 -3
- package/lib/modal/src/Modal.d.ts +6 -6
- package/lib/modal/src/presetProps.d.ts +1 -1
- package/lib/modal-fullscreen/src/ModalFull.d.ts +2 -2
- package/lib/notification/src/Notification.d.ts +2 -2
- package/lib/notification/src/NotificationEnvironment.d.ts +1 -1
- package/lib/notification/src/NotificationProvider.d.ts +9 -9
- package/lib/number-animation/src/NumberAnimation.d.ts +2 -2
- package/lib/pagination/src/Pagination.d.ts +1 -1
- package/lib/popconfirm/src/Popconfirm.d.ts +8 -8
- package/lib/popover/src/Popover.d.ts +8 -8
- package/lib/popover/src/PopoverBody.d.ts +2 -2
- package/lib/popselect/src/Popselect.d.ts +81 -81
- package/lib/popselect/src/PopselectPanel.d.ts +4 -4
- package/lib/progress/src/Circle.d.ts +1 -1
- package/lib/progress/src/MultipleCircle.d.ts +1 -1
- package/lib/progress/src/Progress.d.ts +4 -4
- package/lib/qr-code/src/QrCode.d.ts +2 -2
- package/lib/radio/src/Radio.d.ts +1 -1
- package/lib/rate/src/Rate.d.ts +3 -3
- package/lib/result/src/Result.d.ts +1 -1
- package/lib/select/src/Select.d.ts +19 -19
- package/lib/skeleton/src/Skeleton.d.ts +1 -1
- package/lib/slider/src/Slider.d.ts +4 -4
- package/lib/space/src/Space.d.ts +1 -1
- package/lib/spin/src/Spin.d.ts +2 -2
- package/lib/steps/src/Steps.d.ts +1 -1
- package/lib/switch/src/Switch.d.ts +1 -1
- package/lib/tabs/src/Tab.d.ts +1 -1
- package/lib/tabs/src/Tabs.d.ts +4 -4
- package/lib/tag/src/Tag.d.ts +2 -2
- package/lib/tag/src/TagGroup.d.ts +1 -1
- package/lib/time/src/Time.d.ts +1 -1
- package/lib/time-picker/src/Panel.d.ts +1 -1
- package/lib/time-picker/src/TimePicker.d.ts +5 -5
- package/lib/timeline/src/TimelineItem.d.ts +1 -1
- package/lib/tooltip/src/Tooltip.d.ts +8 -8
- package/lib/transfer/src/Transfer.d.ts +3 -3
- package/lib/tree/src/Tree.d.ts +18 -18
- package/lib/tree/src/TreeNodeCheckbox.d.ts +1 -1
- package/lib/tree-select/src/TreeSelect.d.ts +15 -15
- package/lib/typography/index.d.ts +1 -0
- package/lib/typography/src/create-header.d.ts +1 -1
- package/lib/typography/src/headers.d.ts +6 -6
- package/lib/typography/src/text.d.ts +44 -5
- package/lib/upload/src/Upload.d.ts +11 -11
- package/lib/upload/src/UploadFile.d.ts +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/virtual-list/src/VirtualList.d.ts +2 -2
- package/lib/watermark/src/Watermark.d.ts +7 -7
- package/package.json +1 -1
- package/web-types.json +59 -2
|
@@ -41,9 +41,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
absolute: BooleanConstructor;
|
|
42
42
|
}>>, {
|
|
43
43
|
disabled: boolean;
|
|
44
|
-
round: boolean;
|
|
45
44
|
absolute: boolean;
|
|
46
|
-
|
|
45
|
+
round: boolean;
|
|
47
46
|
focusable: boolean;
|
|
47
|
+
isButtonTag: boolean;
|
|
48
48
|
}, {}>;
|
|
49
49
|
export default _default;
|
|
@@ -338,10 +338,10 @@ declare const SafeTopScrollbar: import("vue").DefineComponent<{
|
|
|
338
338
|
railColor: string;
|
|
339
339
|
}, any>>>;
|
|
340
340
|
}>>, {
|
|
341
|
+
readonly trigger: "none" | "hover";
|
|
342
|
+
readonly xScrollable: boolean;
|
|
341
343
|
readonly duration: number;
|
|
342
344
|
readonly scrollable: boolean;
|
|
343
|
-
readonly xScrollable: boolean;
|
|
344
|
-
readonly trigger: "none" | "hover";
|
|
345
345
|
readonly useUnifiedContainer: boolean;
|
|
346
346
|
readonly triggerDisplayManually: boolean;
|
|
347
347
|
readonly internalHoistYRail: boolean;
|
|
@@ -326,10 +326,10 @@ declare const Scrollbar: import("vue").DefineComponent<{
|
|
|
326
326
|
railColor: string;
|
|
327
327
|
}, any>>>;
|
|
328
328
|
}>>, {
|
|
329
|
+
readonly trigger: "none" | "hover";
|
|
330
|
+
readonly xScrollable: boolean;
|
|
329
331
|
readonly duration: number;
|
|
330
332
|
readonly scrollable: boolean;
|
|
331
|
-
readonly xScrollable: boolean;
|
|
332
|
-
readonly trigger: "none" | "hover";
|
|
333
333
|
readonly useUnifiedContainer: boolean;
|
|
334
334
|
readonly triggerDisplayManually: boolean;
|
|
335
335
|
readonly internalHoistYRail: boolean;
|
|
@@ -672,17 +672,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
672
672
|
value: Value | null;
|
|
673
673
|
loading: boolean;
|
|
674
674
|
inlineThemeDisabled: boolean;
|
|
675
|
+
resetMenuOnOptionsChange: boolean;
|
|
675
676
|
size: Size;
|
|
676
|
-
focusable: boolean;
|
|
677
677
|
show: boolean;
|
|
678
|
-
|
|
678
|
+
focusable: boolean;
|
|
679
679
|
multiple: boolean;
|
|
680
|
-
account: boolean;
|
|
681
|
-
showCheckmark: boolean;
|
|
682
|
-
labelField: string;
|
|
683
|
-
autoPending: boolean;
|
|
684
680
|
virtualScroll: boolean;
|
|
685
681
|
valueField: string;
|
|
686
|
-
|
|
682
|
+
labelField: string;
|
|
683
|
+
showCheckmark: boolean;
|
|
684
|
+
account: boolean;
|
|
685
|
+
scrollable: boolean;
|
|
686
|
+
autoPending: boolean;
|
|
687
687
|
}, {}>;
|
|
688
688
|
export default _default;
|
|
@@ -1177,25 +1177,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1177
1177
|
loading: boolean;
|
|
1178
1178
|
bordered: boolean | undefined;
|
|
1179
1179
|
inlineThemeDisabled: boolean;
|
|
1180
|
+
clearable: boolean;
|
|
1180
1181
|
size: SelectSize;
|
|
1181
|
-
active: boolean;
|
|
1182
1182
|
round: boolean;
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1183
|
+
loadingSkeleton: boolean;
|
|
1184
|
+
secondary: boolean;
|
|
1185
|
+
showArrow: boolean;
|
|
1186
1186
|
multiple: boolean;
|
|
1187
|
-
|
|
1188
|
-
labelField: string;
|
|
1187
|
+
filterable: boolean;
|
|
1189
1188
|
valueField: string;
|
|
1190
|
-
|
|
1191
|
-
|
|
1189
|
+
labelField: string;
|
|
1190
|
+
filled: boolean;
|
|
1191
|
+
ignoreComposition: boolean;
|
|
1192
|
+
counter: boolean;
|
|
1193
|
+
account: boolean;
|
|
1194
|
+
autofocus: boolean;
|
|
1195
|
+
pattern: string;
|
|
1196
|
+
active: boolean;
|
|
1192
1197
|
selectedOption: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => VNodeChild)> | null;
|
|
1193
1198
|
selectedOptions: SelectBaseOption<string | number, string | ((option: SelectBaseOption<string | number, string | any>, selected: boolean) => VNodeChild)>[] | null;
|
|
1194
|
-
filterable: boolean;
|
|
1195
|
-
clearable: boolean;
|
|
1196
|
-
loadingSkeleton: boolean;
|
|
1197
1199
|
focused: boolean;
|
|
1198
|
-
ignoreComposition: boolean;
|
|
1199
|
-
counter: boolean;
|
|
1200
1200
|
}, {}>;
|
|
1201
1201
|
export default _default;
|
|
@@ -146,8 +146,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
146
146
|
}, any>>>;
|
|
147
147
|
}>>, {
|
|
148
148
|
readonly repeat: number;
|
|
149
|
-
readonly round: boolean;
|
|
150
149
|
readonly circle: boolean;
|
|
150
|
+
readonly round: boolean;
|
|
151
151
|
readonly text: boolean;
|
|
152
152
|
readonly animated: boolean;
|
|
153
153
|
readonly sharp: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type PropType, ExtractPublicPropTypes } from 'vue';
|
|
2
|
-
import { TypographyVariant } from './variants';
|
|
2
|
+
import { TypographyVariant, TypographyVariantOptions, TypographyVariantWeightsOptions } from './variants';
|
|
3
3
|
export declare const internalTextProps: {
|
|
4
4
|
readonly variant: {
|
|
5
5
|
readonly type: PropType<TypographyVariant>;
|
|
@@ -17,6 +17,18 @@ export declare const internalTextProps: {
|
|
|
17
17
|
readonly type: PropType<"default" | "success" | "info" | "warning" | "error">;
|
|
18
18
|
readonly default: "default";
|
|
19
19
|
};
|
|
20
|
+
readonly color: {
|
|
21
|
+
readonly type: PropType<string>;
|
|
22
|
+
readonly default: undefined;
|
|
23
|
+
};
|
|
24
|
+
readonly variantOptions: {
|
|
25
|
+
readonly type: PropType<TypographyVariantOptions>;
|
|
26
|
+
readonly default: () => {};
|
|
27
|
+
};
|
|
28
|
+
readonly variantWeightsOptions: {
|
|
29
|
+
readonly type: PropType<TypographyVariantWeightsOptions>;
|
|
30
|
+
readonly default: () => {};
|
|
31
|
+
};
|
|
20
32
|
readonly strong: BooleanConstructor;
|
|
21
33
|
readonly italic: BooleanConstructor;
|
|
22
34
|
readonly underline: BooleanConstructor;
|
|
@@ -94,6 +106,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
94
106
|
readonly type: PropType<"default" | "success" | "info" | "warning" | "error">;
|
|
95
107
|
readonly default: "default";
|
|
96
108
|
};
|
|
109
|
+
readonly color: {
|
|
110
|
+
readonly type: PropType<string>;
|
|
111
|
+
readonly default: undefined;
|
|
112
|
+
};
|
|
113
|
+
readonly variantOptions: {
|
|
114
|
+
readonly type: PropType<TypographyVariantOptions>;
|
|
115
|
+
readonly default: () => {};
|
|
116
|
+
};
|
|
117
|
+
readonly variantWeightsOptions: {
|
|
118
|
+
readonly type: PropType<TypographyVariantWeightsOptions>;
|
|
119
|
+
readonly default: () => {};
|
|
120
|
+
};
|
|
97
121
|
readonly strong: BooleanConstructor;
|
|
98
122
|
readonly italic: BooleanConstructor;
|
|
99
123
|
readonly underline: BooleanConstructor;
|
|
@@ -175,6 +199,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
175
199
|
readonly type: PropType<"default" | "success" | "info" | "warning" | "error">;
|
|
176
200
|
readonly default: "default";
|
|
177
201
|
};
|
|
202
|
+
readonly color: {
|
|
203
|
+
readonly type: PropType<string>;
|
|
204
|
+
readonly default: undefined;
|
|
205
|
+
};
|
|
206
|
+
readonly variantOptions: {
|
|
207
|
+
readonly type: PropType<TypographyVariantOptions>;
|
|
208
|
+
readonly default: () => {};
|
|
209
|
+
};
|
|
210
|
+
readonly variantWeightsOptions: {
|
|
211
|
+
readonly type: PropType<TypographyVariantWeightsOptions>;
|
|
212
|
+
readonly default: () => {};
|
|
213
|
+
};
|
|
178
214
|
readonly strong: BooleanConstructor;
|
|
179
215
|
readonly italic: BooleanConstructor;
|
|
180
216
|
readonly underline: BooleanConstructor;
|
|
@@ -234,13 +270,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
234
270
|
codeBorder: string;
|
|
235
271
|
}, any>>>;
|
|
236
272
|
}>>, {
|
|
237
|
-
readonly type: "default" | "info" | "
|
|
273
|
+
readonly type: "default" | "info" | "warning" | "error" | "success";
|
|
238
274
|
readonly tag: keyof HTMLElementTagNameMap;
|
|
275
|
+
readonly color: string;
|
|
239
276
|
readonly strong: boolean;
|
|
240
277
|
readonly text: string;
|
|
278
|
+
readonly variant: TypographyVariant;
|
|
241
279
|
readonly italic: boolean;
|
|
242
280
|
readonly underline: boolean;
|
|
243
281
|
readonly strikethrough: boolean;
|
|
244
|
-
readonly
|
|
282
|
+
readonly variantOptions: TypographyVariantOptions;
|
|
283
|
+
readonly variantWeightsOptions: TypographyVariantWeightsOptions;
|
|
245
284
|
}, {}>;
|
|
246
285
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h, defineComponent, computed } from 'vue';
|
|
2
|
-
import
|
|
2
|
+
import typographyLight from '../styles/light';
|
|
3
3
|
import style from './styles/text.cssr';
|
|
4
4
|
import { getVariantCssVars, getVariantTag } from './variants';
|
|
5
5
|
import { useTheme, useConfig, useThemeClass } from '../../../_mixins';
|
|
@@ -16,6 +16,15 @@ export const internalTextProps = Object.assign(Object.assign({}, useTheme.props)
|
|
|
16
16
|
}, type: {
|
|
17
17
|
type: String,
|
|
18
18
|
default: 'default'
|
|
19
|
+
}, color: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: undefined
|
|
22
|
+
}, variantOptions: {
|
|
23
|
+
type: Object,
|
|
24
|
+
default: () => ({})
|
|
25
|
+
}, variantWeightsOptions: {
|
|
26
|
+
type: Object,
|
|
27
|
+
default: () => ({})
|
|
19
28
|
}, strong: Boolean, italic: Boolean, underline: Boolean, strikethrough: Boolean });
|
|
20
29
|
export default defineComponent({
|
|
21
30
|
name: 'InternalUText',
|
|
@@ -24,6 +33,7 @@ export default defineComponent({
|
|
|
24
33
|
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
25
34
|
const themeRef = useTheme('Typography', '-text', style, typographyLight, props, mergedClsPrefixRef);
|
|
26
35
|
const cssVarsRef = computed(() => {
|
|
36
|
+
var _a;
|
|
27
37
|
const { variant } = props;
|
|
28
38
|
const textColorKey = props.type === 'default'
|
|
29
39
|
? 'textColor'
|
|
@@ -32,7 +42,7 @@ export default defineComponent({
|
|
|
32
42
|
const baseVars = {
|
|
33
43
|
'--u-bezier': cubicBezierEaseInOut,
|
|
34
44
|
'--u-a-text-color': aTextColor,
|
|
35
|
-
'--u-text-color': textColor,
|
|
45
|
+
'--u-text-color': (_a = props.color) !== null && _a !== void 0 ? _a : textColor,
|
|
36
46
|
'--u-font-weight-strong': fontWeightStrong,
|
|
37
47
|
'--u-font-famliy-mono': fontFamilyMono,
|
|
38
48
|
'--u-code-border-radius': codeBorderRadius,
|
|
@@ -44,12 +54,15 @@ export default defineComponent({
|
|
|
44
54
|
'--u-margin': margin,
|
|
45
55
|
'--u-prefix-color': blockquotePrefixColor
|
|
46
56
|
};
|
|
47
|
-
return getVariantCssVars(variant, baseVars, fontFamilyWixMadeforDisplay);
|
|
57
|
+
return getVariantCssVars(variant, baseVars, fontFamilyWixMadeforDisplay, props.variantOptions, props.variantWeightsOptions);
|
|
48
58
|
});
|
|
49
59
|
const themeClassHandle = inlineThemeDisabled
|
|
50
60
|
? useThemeClass('text', computed(() => `${(props === null || props === void 0 ? void 0 : props.variant) || ''}${(props === null || props === void 0 ? void 0 : props.tag) || ''}`), cssVarsRef, props)
|
|
51
61
|
: undefined;
|
|
52
|
-
const tagToRender = props.tag ||
|
|
62
|
+
const tagToRender = props.tag ||
|
|
63
|
+
(props.variant &&
|
|
64
|
+
getVariantTag(props.variant, props.variantOptions, props.variantWeightsOptions)) ||
|
|
65
|
+
'span';
|
|
53
66
|
return {
|
|
54
67
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
55
68
|
tagToRender,
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
export
|
|
1
|
+
export interface TypographyVariantBase {
|
|
2
|
+
fontSize: string;
|
|
3
|
+
lineHeight: string;
|
|
4
|
+
letterSpacing: string;
|
|
5
|
+
tag: keyof HTMLElementTagNameMap;
|
|
6
|
+
}
|
|
7
|
+
export type TypographyVariantOptions = Record<PropertyKey, Record<PropertyKey, TypographyVariantBase>>;
|
|
8
|
+
export type TypographyVariantWeightsOptions = Record<PropertyKey, readonly string[]>;
|
|
2
9
|
export interface TypographyVariantConfig {
|
|
3
10
|
fontFamily: string;
|
|
4
11
|
fontSize: string;
|
|
@@ -8,6 +15,100 @@ export interface TypographyVariantConfig {
|
|
|
8
15
|
letterSpacing: string;
|
|
9
16
|
tag: keyof HTMLElementTagNameMap;
|
|
10
17
|
}
|
|
11
|
-
export declare
|
|
12
|
-
|
|
13
|
-
|
|
18
|
+
export declare const defaultVariantOptions: {
|
|
19
|
+
readonly display: {
|
|
20
|
+
readonly l: {
|
|
21
|
+
readonly fontSize: "42px";
|
|
22
|
+
readonly lineHeight: "48px";
|
|
23
|
+
readonly letterSpacing: "-0.014em";
|
|
24
|
+
readonly tag: "h1";
|
|
25
|
+
};
|
|
26
|
+
readonly s: {
|
|
27
|
+
readonly fontSize: "36px";
|
|
28
|
+
readonly lineHeight: "44px";
|
|
29
|
+
readonly letterSpacing: "-0.013em";
|
|
30
|
+
readonly tag: "h1";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
readonly heading: {
|
|
34
|
+
readonly l: {
|
|
35
|
+
readonly fontSize: "32px";
|
|
36
|
+
readonly lineHeight: "40px";
|
|
37
|
+
readonly letterSpacing: "-0.01em";
|
|
38
|
+
readonly tag: "h2";
|
|
39
|
+
};
|
|
40
|
+
readonly m: {
|
|
41
|
+
readonly fontSize: "28px";
|
|
42
|
+
readonly lineHeight: "36px";
|
|
43
|
+
readonly letterSpacing: "-0.009em";
|
|
44
|
+
readonly tag: "h2";
|
|
45
|
+
};
|
|
46
|
+
readonly s: {
|
|
47
|
+
readonly fontSize: "24px";
|
|
48
|
+
readonly lineHeight: "30px";
|
|
49
|
+
readonly letterSpacing: "-0.01em";
|
|
50
|
+
readonly tag: "h2";
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
readonly title: {
|
|
54
|
+
readonly l: {
|
|
55
|
+
readonly fontSize: "22px";
|
|
56
|
+
readonly lineHeight: "32px";
|
|
57
|
+
readonly letterSpacing: "-0.01em";
|
|
58
|
+
readonly tag: "h3";
|
|
59
|
+
};
|
|
60
|
+
readonly m: {
|
|
61
|
+
readonly fontSize: "20px";
|
|
62
|
+
readonly lineHeight: "30px";
|
|
63
|
+
readonly letterSpacing: "-0.009em";
|
|
64
|
+
readonly tag: "h3";
|
|
65
|
+
};
|
|
66
|
+
readonly s: {
|
|
67
|
+
readonly fontSize: "18px";
|
|
68
|
+
readonly lineHeight: "28px";
|
|
69
|
+
readonly letterSpacing: "0";
|
|
70
|
+
readonly tag: "h3";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
readonly body: {
|
|
74
|
+
readonly l: {
|
|
75
|
+
readonly fontSize: "16px";
|
|
76
|
+
readonly lineHeight: "24px";
|
|
77
|
+
readonly letterSpacing: "0.004em";
|
|
78
|
+
readonly tag: "p";
|
|
79
|
+
};
|
|
80
|
+
readonly m: {
|
|
81
|
+
readonly fontSize: "14px";
|
|
82
|
+
readonly lineHeight: "21px";
|
|
83
|
+
readonly letterSpacing: "0.006em";
|
|
84
|
+
readonly tag: "p";
|
|
85
|
+
};
|
|
86
|
+
readonly s: {
|
|
87
|
+
readonly fontSize: "12px";
|
|
88
|
+
readonly lineHeight: "16px";
|
|
89
|
+
readonly letterSpacing: "0.008em";
|
|
90
|
+
readonly tag: "p";
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
declare const variantWeights: {
|
|
95
|
+
readonly display: readonly ["", "medium", "semi-bold", "bold"];
|
|
96
|
+
readonly heading: readonly ["medium", "semi-bold", "bold"];
|
|
97
|
+
readonly title: readonly ["medium", "semi-bold", "bold"];
|
|
98
|
+
readonly body: readonly ["medium", "semi-bold", "bold"];
|
|
99
|
+
};
|
|
100
|
+
type VariantWeights = typeof variantWeights;
|
|
101
|
+
type WeightSuffix<W> = W extends string ? (W extends '' ? '' : `-${W}`) : '';
|
|
102
|
+
export type TypographyVariantFromOptions<Options extends TypographyVariantOptions> = {
|
|
103
|
+
[Category in keyof Options & keyof VariantWeights]: {
|
|
104
|
+
[Size in keyof Options[Category]]: `${string & Category}-${string & Size}${WeightSuffix<VariantWeights[Category][number]>}`;
|
|
105
|
+
}[keyof Options[Category]];
|
|
106
|
+
}[keyof Options & keyof VariantWeights];
|
|
107
|
+
export type TypographyDefaultVariant = TypographyVariantFromOptions<typeof defaultVariantOptions>;
|
|
108
|
+
export type TypographyVariant = TypographyDefaultVariant | (string & {});
|
|
109
|
+
export declare function mergeVariantOptions(variantOptions?: TypographyVariantOptions): TypographyVariantOptions;
|
|
110
|
+
export declare function mergeVariantWeights(variantWeightsOptions?: Partial<Record<PropertyKey, readonly string[]>>): Record<PropertyKey, readonly string[]>;
|
|
111
|
+
export declare function getVariantCssVars(variant: TypographyVariant | undefined, baseVars: Record<string, string>, fontFamilyVariant: string, variantOptions?: TypographyVariantOptions, variantWeightsOptions?: Partial<Record<PropertyKey, readonly string[]>>): Record<string, string>;
|
|
112
|
+
export declare function getVariantTag(variant: TypographyVariant, variantOptions?: TypographyVariantOptions, variantWeightsOptions?: Partial<Record<PropertyKey, readonly string[]>>): keyof HTMLElementTagNameMap;
|
|
113
|
+
export declare const variantToCssVars: Record<string, TypographyVariantConfig>;
|
|
114
|
+
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const fontFamily = 'var(--u-font-famliy-variant)';
|
|
2
|
-
const
|
|
2
|
+
export const defaultVariantOptions = {
|
|
3
3
|
display: {
|
|
4
4
|
l: {
|
|
5
5
|
fontSize: '42px',
|
|
@@ -47,7 +47,12 @@ const baseStyles = {
|
|
|
47
47
|
letterSpacing: '-0.009em',
|
|
48
48
|
tag: 'h3'
|
|
49
49
|
},
|
|
50
|
-
s: {
|
|
50
|
+
s: {
|
|
51
|
+
fontSize: '18px',
|
|
52
|
+
lineHeight: '28px',
|
|
53
|
+
letterSpacing: '0',
|
|
54
|
+
tag: 'h3'
|
|
55
|
+
}
|
|
51
56
|
},
|
|
52
57
|
body: {
|
|
53
58
|
l: {
|
|
@@ -70,13 +75,21 @@ const baseStyles = {
|
|
|
70
75
|
}
|
|
71
76
|
}
|
|
72
77
|
};
|
|
78
|
+
const variantWeights = {
|
|
79
|
+
display: ['', 'medium', 'semi-bold', 'bold'],
|
|
80
|
+
heading: ['medium', 'semi-bold', 'bold'],
|
|
81
|
+
title: ['medium', 'semi-bold', 'bold'],
|
|
82
|
+
body: ['medium', 'semi-bold', 'bold']
|
|
83
|
+
};
|
|
73
84
|
const fontWeights = {
|
|
74
85
|
medium: { weight: '500', style: 'medium' },
|
|
75
86
|
'semi-bold': { weight: '600', style: 'semibold' },
|
|
76
|
-
bold: { weight: '700', style: 'bold' }
|
|
87
|
+
bold: { weight: '700', style: 'bold' },
|
|
88
|
+
'': { weight: '700', style: 'bold' }
|
|
77
89
|
};
|
|
78
|
-
function createVariant(category, size, weight) {
|
|
79
|
-
|
|
90
|
+
function createVariant(options, category, size, weight) {
|
|
91
|
+
var _a, _b, _c;
|
|
92
|
+
const base = (_b = (_a = options === null || options === void 0 ? void 0 : options[category]) === null || _a === void 0 ? void 0 : _a[size]) !== null && _b !== void 0 ? _b : (_c = defaultVariantOptions[category]) === null || _c === void 0 ? void 0 : _c[size];
|
|
80
93
|
const { weight: fontWeight, style: fontStyle } = fontWeights[weight];
|
|
81
94
|
return {
|
|
82
95
|
fontFamily,
|
|
@@ -88,45 +101,74 @@ function createVariant(category, size, weight) {
|
|
|
88
101
|
tag: base.tag
|
|
89
102
|
};
|
|
90
103
|
}
|
|
91
|
-
export function
|
|
92
|
-
if (!
|
|
104
|
+
export function mergeVariantOptions(variantOptions) {
|
|
105
|
+
if (!variantOptions)
|
|
106
|
+
return defaultVariantOptions;
|
|
107
|
+
const mergedOptions = {};
|
|
108
|
+
const categories = new Set([
|
|
109
|
+
...Object.keys(defaultVariantOptions),
|
|
110
|
+
...Object.keys(variantOptions)
|
|
111
|
+
]);
|
|
112
|
+
categories.forEach((categoryKey) => {
|
|
113
|
+
const category = categoryKey;
|
|
114
|
+
mergedOptions[category] = Object.assign(Object.assign({}, (defaultVariantOptions[category] || {})), (variantOptions[category] || {}));
|
|
115
|
+
});
|
|
116
|
+
return mergedOptions;
|
|
117
|
+
}
|
|
118
|
+
export function mergeVariantWeights(variantWeightsOptions) {
|
|
119
|
+
if (!variantWeightsOptions)
|
|
120
|
+
return variantWeights;
|
|
121
|
+
const mergedWeights = {};
|
|
122
|
+
const categories = new Set([
|
|
123
|
+
...Object.keys(variantWeights),
|
|
124
|
+
...Object.keys(variantWeightsOptions)
|
|
125
|
+
]);
|
|
126
|
+
categories.forEach((category) => {
|
|
127
|
+
const defaultWeights = variantWeights[category] || [];
|
|
128
|
+
const customWeights = variantWeightsOptions[category] || [];
|
|
129
|
+
const combined = [...defaultWeights];
|
|
130
|
+
customWeights.forEach((weight) => {
|
|
131
|
+
if (!combined.includes(weight)) {
|
|
132
|
+
combined.push(weight);
|
|
133
|
+
}
|
|
134
|
+
});
|
|
135
|
+
mergedWeights[category] = combined;
|
|
136
|
+
});
|
|
137
|
+
return mergedWeights;
|
|
138
|
+
}
|
|
139
|
+
function createVariantToCssVars(variantOptions, variantWeightsOptions) {
|
|
140
|
+
const configs = {};
|
|
141
|
+
const mergedWeights = mergeVariantWeights(variantWeightsOptions);
|
|
142
|
+
Object.entries(variantOptions).forEach(([category, sizes]) => {
|
|
143
|
+
const weights = mergedWeights[category] || [];
|
|
144
|
+
Object.keys(sizes).forEach((size) => {
|
|
145
|
+
weights.forEach((weight) => {
|
|
146
|
+
const variantKey = `${category}-${size}${weight ? `-${weight}` : ''}`;
|
|
147
|
+
configs[variantKey] = createVariant(variantOptions, category, size, weight);
|
|
148
|
+
});
|
|
149
|
+
});
|
|
150
|
+
});
|
|
151
|
+
return configs;
|
|
152
|
+
}
|
|
153
|
+
function resolveVariantConfigs(variantOptions, variantWeightsOptions) {
|
|
154
|
+
const hasCustomOptions = variantOptions && Object.keys(variantOptions).length > 0;
|
|
155
|
+
const hasCustomWeights = variantWeightsOptions && Object.keys(variantWeightsOptions).length > 0;
|
|
156
|
+
if (!hasCustomOptions && !hasCustomWeights) {
|
|
157
|
+
return variantToCssVars;
|
|
158
|
+
}
|
|
159
|
+
return createVariantToCssVars(mergeVariantOptions(variantOptions), variantWeightsOptions);
|
|
160
|
+
}
|
|
161
|
+
export function getVariantCssVars(variant, baseVars, fontFamilyVariant, variantOptions, variantWeightsOptions) {
|
|
162
|
+
const variantStyles = variant
|
|
163
|
+
? resolveVariantConfigs(variantOptions, variantWeightsOptions)[variant]
|
|
164
|
+
: undefined;
|
|
165
|
+
if (!variantStyles) {
|
|
93
166
|
return baseVars;
|
|
94
167
|
}
|
|
95
|
-
const variantStyles = variantToCssVars[variant];
|
|
96
168
|
return Object.assign(Object.assign({}, baseVars), { '--u-font-famliy-variant': fontFamilyVariant, '--u-variant-font-size': variantStyles.fontSize, '--u-variant-font-weight': variantStyles.fontWeight, '--u-variant-line-height': variantStyles.lineHeight, '--u-variant-font-family': variantStyles.fontFamily, '--u-variant-font-style': variantStyles.fontStyle, '--u-variant-letter-spacing': variantStyles.letterSpacing });
|
|
97
169
|
}
|
|
98
|
-
export function getVariantTag(variant) {
|
|
99
|
-
|
|
170
|
+
export function getVariantTag(variant, variantOptions, variantWeightsOptions) {
|
|
171
|
+
var _a;
|
|
172
|
+
return (_a = resolveVariantConfigs(variantOptions, variantWeightsOptions)[variant]) === null || _a === void 0 ? void 0 : _a.tag;
|
|
100
173
|
}
|
|
101
|
-
export const variantToCssVars =
|
|
102
|
-
// Display variants
|
|
103
|
-
'display-l': createVariant('display', 'l', 'bold'),
|
|
104
|
-
'display-s': createVariant('display', 's', 'bold'),
|
|
105
|
-
// Heading variants
|
|
106
|
-
'heading-l-semi-bold': createVariant('heading', 'l', 'semi-bold'),
|
|
107
|
-
'heading-l-bold': createVariant('heading', 'l', 'bold'),
|
|
108
|
-
'heading-m-semi-bold': createVariant('heading', 'm', 'semi-bold'),
|
|
109
|
-
'heading-m-bold': createVariant('heading', 'm', 'bold'),
|
|
110
|
-
'heading-s-semi-bold': createVariant('heading', 's', 'semi-bold'),
|
|
111
|
-
'heading-s-bold': createVariant('heading', 's', 'bold'),
|
|
112
|
-
// Title variants
|
|
113
|
-
'title-l-medium': createVariant('title', 'l', 'medium'),
|
|
114
|
-
'title-l-semi-bold': createVariant('title', 'l', 'semi-bold'),
|
|
115
|
-
'title-l-bold': createVariant('title', 'l', 'bold'),
|
|
116
|
-
'title-m-medium': createVariant('title', 'm', 'medium'),
|
|
117
|
-
'title-m-semi-bold': createVariant('title', 'm', 'semi-bold'),
|
|
118
|
-
'title-m-bold': createVariant('title', 'm', 'bold'),
|
|
119
|
-
'title-s-medium': createVariant('title', 's', 'medium'),
|
|
120
|
-
'title-s-semi-bold': createVariant('title', 's', 'semi-bold'),
|
|
121
|
-
'title-s-bold': createVariant('title', 's', 'bold'),
|
|
122
|
-
// Body variants
|
|
123
|
-
'body-l-medium': createVariant('body', 'l', 'medium'),
|
|
124
|
-
'body-l-semi-bold': createVariant('body', 'l', 'semi-bold'),
|
|
125
|
-
'body-l-bold': createVariant('body', 'l', 'bold'),
|
|
126
|
-
'body-m-medium': createVariant('body', 'm', 'medium'),
|
|
127
|
-
'body-m-semi-bold': createVariant('body', 'm', 'semi-bold'),
|
|
128
|
-
'body-m-bold': createVariant('body', 'm', 'bold'),
|
|
129
|
-
'body-s-medium': createVariant('body', 's', 'medium'),
|
|
130
|
-
'body-s-semi-bold': createVariant('body', 's', 'semi-bold'),
|
|
131
|
-
'body-s-bold': createVariant('body', 's', 'bold')
|
|
132
|
-
};
|
|
174
|
+
export const variantToCssVars = createVariantToCssVars(defaultVariantOptions, variantWeights);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { commonLight } from '../../../
|
|
1
|
+
import { commonLight } from '../../../_styles/common';
|
|
2
2
|
export const self = (vars) => {
|
|
3
3
|
const { borderRadiusSmall, brandPrimary500, elementsQuaternary, textPrimary, brandQuaternary500, staticRed, staticOrange, staticGreen, elementsTertiary, fontBodyMedium, lineHeightBodyMedium, codeBorder } = vars;
|
|
4
4
|
return {
|
package/es/affix/src/Affix.d.ts
CHANGED
|
@@ -27,7 +27,7 @@ export declare const affixProps: {
|
|
|
27
27
|
readonly default: undefined;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
export declare const affixPropKeys: ("top" | "bottom" | "
|
|
30
|
+
export declare const affixPropKeys: ("top" | "bottom" | "listenTo" | "triggerTop" | "triggerBottom" | "position" | "offsetTop" | "offsetBottom" | "target")[];
|
|
31
31
|
export type AffixProps = ExtractPublicPropTypes<typeof affixProps>;
|
|
32
32
|
declare const _default: import("vue").DefineComponent<{
|
|
33
33
|
readonly listenTo: PropType<string | ScrollTarget | (() => HTMLElement) | undefined>;
|
|
@@ -85,9 +85,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
85
85
|
readonly default: undefined;
|
|
86
86
|
};
|
|
87
87
|
}>>, {
|
|
88
|
-
readonly position: "
|
|
89
|
-
readonly target: (() => HTMLElement) | undefined;
|
|
88
|
+
readonly position: "fix" | "absolute";
|
|
90
89
|
readonly offsetTop: number | undefined;
|
|
91
90
|
readonly offsetBottom: number | undefined;
|
|
91
|
+
readonly target: (() => HTMLElement) | undefined;
|
|
92
92
|
}, {}>;
|
|
93
93
|
export default _default;
|
package/es/alert/src/Alert.d.ts
CHANGED
|
@@ -929,11 +929,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
929
929
|
descriptionSpaceBanner: string;
|
|
930
930
|
}, any>>>;
|
|
931
931
|
}>>, {
|
|
932
|
-
type: "default" | "
|
|
932
|
+
type: "default" | "info" | "warning" | "error" | "success" | "primary";
|
|
933
933
|
showIcon: boolean;
|
|
934
|
-
|
|
934
|
+
layoutType: "banner" | "alert";
|
|
935
935
|
rounded: boolean;
|
|
936
|
-
layoutType: "alert" | "banner";
|
|
937
936
|
actionsHorizontal: boolean;
|
|
937
|
+
closable: boolean;
|
|
938
938
|
}, {}>;
|
|
939
939
|
export default _default;
|
|
@@ -280,15 +280,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
280
280
|
}>>, {
|
|
281
281
|
readonly type: "block" | "rail";
|
|
282
282
|
readonly top: number;
|
|
283
|
-
readonly position: "absolute" | "fix";
|
|
284
|
-
readonly target: (() => HTMLElement) | undefined;
|
|
285
|
-
readonly affix: boolean;
|
|
286
|
-
readonly offsetTop: number | undefined;
|
|
287
|
-
readonly offsetBottom: number | undefined;
|
|
288
283
|
readonly showRail: boolean;
|
|
289
284
|
readonly showBackground: boolean;
|
|
290
285
|
readonly bound: number;
|
|
291
286
|
readonly internalScrollable: boolean;
|
|
292
287
|
readonly ignoreGap: boolean;
|
|
288
|
+
readonly position: "fix" | "absolute";
|
|
289
|
+
readonly offsetTop: number | undefined;
|
|
290
|
+
readonly offsetBottom: number | undefined;
|
|
291
|
+
readonly target: (() => HTMLElement) | undefined;
|
|
292
|
+
readonly affix: boolean;
|
|
293
293
|
}, {}>;
|
|
294
294
|
export default _default;
|
|
@@ -1608,12 +1608,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1608
1608
|
readonly loading: boolean;
|
|
1609
1609
|
readonly bordered: boolean | undefined;
|
|
1610
1610
|
readonly to: string | boolean | HTMLElement;
|
|
1611
|
+
readonly clearable: boolean;
|
|
1612
|
+
readonly defaultValue: string | null;
|
|
1611
1613
|
readonly resetMenuOnOptionsChange: boolean;
|
|
1612
1614
|
readonly placement: FollowerPlacement;
|
|
1613
|
-
readonly defaultValue: string | null;
|
|
1614
|
-
readonly clearable: boolean;
|
|
1615
|
-
readonly options: AutoCompleteOptions;
|
|
1616
1615
|
readonly blurAfterSelect: boolean;
|
|
1617
1616
|
readonly clearAfterSelect: boolean;
|
|
1617
|
+
readonly options: AutoCompleteOptions;
|
|
1618
1618
|
}, {}>;
|
|
1619
1619
|
export default _default;
|
|
@@ -243,8 +243,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
243
243
|
readonly disabled: boolean;
|
|
244
244
|
readonly loading: boolean;
|
|
245
245
|
readonly bordered: boolean;
|
|
246
|
-
readonly round: boolean;
|
|
247
246
|
readonly circle: boolean;
|
|
247
|
+
readonly round: boolean;
|
|
248
248
|
readonly lazy: boolean;
|
|
249
249
|
}, {}>;
|
|
250
250
|
export default _default;
|