@uzum-tech/ui 1.13.0 → 1.13.2

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.
Files changed (66) hide show
  1. package/dist/index.js +128 -85
  2. package/dist/index.prod.js +2 -2
  3. package/es/collapse/index.d.ts +5 -4
  4. package/es/collapse/index.js +4 -2
  5. package/es/collapse/src/Collapse.d.ts +62 -123
  6. package/es/collapse/src/Collapse.js +7 -27
  7. package/es/collapse/src/CollapseItem.d.ts +8 -18
  8. package/es/collapse/src/CollapseItem.js +36 -24
  9. package/es/collapse/src/interface.d.ts +1 -10
  10. package/es/collapse/src/props/collapse.props.d.ts +100 -0
  11. package/es/collapse/src/props/collapse.props.js +29 -0
  12. package/es/collapse/src/props/collapseItem.props.d.ts +7 -0
  13. package/es/collapse/src/props/collapseItem.props.js +6 -0
  14. package/es/collapse/src/styles/index.cssr.js +6 -2
  15. package/es/collapse/src/types/collapse.types.d.ts +55 -0
  16. package/es/collapse/src/types/collapse.types.js +1 -0
  17. package/es/collapse/styles/light.d.ts +3 -0
  18. package/es/collapse/styles/light.js +5 -2
  19. package/es/dropdown/src/Dropdown.d.ts +1 -1
  20. package/es/icon-bar/index.d.ts +4 -4
  21. package/es/icon-bar/index.js +3 -2
  22. package/es/icon-bar/src/IconBar.d.ts +19 -69
  23. package/es/icon-bar/src/IconBar.js +6 -11
  24. package/es/icon-bar/src/IconBarItem.d.ts +81 -65
  25. package/es/icon-bar/src/IconBarItem.js +6 -5
  26. package/es/icon-bar/src/interface.d.ts +112 -0
  27. package/es/icon-bar/src/interface.js +17 -0
  28. package/es/popconfirm/src/Popconfirm.d.ts +1 -1
  29. package/es/popover/src/Popover.d.ts +1 -1
  30. package/es/qr-code/src/QrCode.d.ts +1 -1
  31. package/es/tooltip/src/Tooltip.d.ts +1 -1
  32. package/es/version.d.ts +1 -1
  33. package/es/version.js +1 -1
  34. package/lib/collapse/index.d.ts +5 -4
  35. package/lib/collapse/index.js +5 -3
  36. package/lib/collapse/src/Collapse.d.ts +62 -123
  37. package/lib/collapse/src/Collapse.js +8 -28
  38. package/lib/collapse/src/CollapseItem.d.ts +8 -18
  39. package/lib/collapse/src/CollapseItem.js +35 -24
  40. package/lib/collapse/src/interface.d.ts +1 -10
  41. package/lib/collapse/src/props/collapse.props.d.ts +100 -0
  42. package/lib/collapse/src/props/collapse.props.js +32 -0
  43. package/lib/collapse/src/props/collapseItem.props.d.ts +7 -0
  44. package/lib/collapse/src/props/collapseItem.props.js +9 -0
  45. package/lib/collapse/src/styles/index.cssr.js +6 -2
  46. package/lib/collapse/src/types/collapse.types.d.ts +55 -0
  47. package/lib/collapse/src/types/collapse.types.js +2 -0
  48. package/lib/collapse/styles/light.d.ts +3 -0
  49. package/lib/collapse/styles/light.js +5 -2
  50. package/lib/dropdown/src/Dropdown.d.ts +1 -1
  51. package/lib/icon-bar/index.d.ts +4 -4
  52. package/lib/icon-bar/index.js +4 -3
  53. package/lib/icon-bar/src/IconBar.d.ts +19 -69
  54. package/lib/icon-bar/src/IconBar.js +6 -12
  55. package/lib/icon-bar/src/IconBarItem.d.ts +81 -65
  56. package/lib/icon-bar/src/IconBarItem.js +6 -6
  57. package/lib/icon-bar/src/interface.d.ts +112 -0
  58. package/lib/icon-bar/src/interface.js +20 -0
  59. package/lib/popconfirm/src/Popconfirm.d.ts +1 -1
  60. package/lib/popover/src/Popover.d.ts +1 -1
  61. package/lib/qr-code/src/QrCode.d.ts +1 -1
  62. package/lib/tooltip/src/Tooltip.d.ts +1 -1
  63. package/lib/version.d.ts +1 -1
  64. package/lib/version.js +1 -1
  65. package/package.json +1 -1
  66. package/web-types.json +13 -1
@@ -3,7 +3,6 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.collapseItemProps = void 0;
7
6
  const vue_1 = require("vue");
8
7
  const seemly_1 = require("seemly");
9
8
  const vooks_1 = require("vooks");
@@ -14,15 +13,10 @@ const _internal_1 = require("../../_internal");
14
13
  const _utils_1 = require("../../_utils");
15
14
  const Collapse_1 = require("./Collapse");
16
15
  const CollapseItemContent_1 = __importDefault(require("./CollapseItemContent"));
17
- exports.collapseItemProps = {
18
- title: String,
19
- name: [String, Number],
20
- disabled: Boolean,
21
- displayDirective: String
22
- };
16
+ const collapseItem_props_1 = require("./props/collapseItem.props");
23
17
  exports.default = (0, vue_1.defineComponent)({
24
18
  name: 'CollapseItem',
25
- props: exports.collapseItemProps,
19
+ props: collapseItem_props_1.collapseItemProps,
26
20
  setup(props) {
27
21
  const { mergedRtlRef } = (0, _mixins_1.useConfig)(props);
28
22
  const randomName = (0, seemly_1.createId)();
@@ -48,12 +42,26 @@ exports.default = (0, vue_1.defineComponent)({
48
42
  return true;
49
43
  });
50
44
  const rtlEnabledRef = (0, use_rtl_1.useRtl)('Collapse', mergedRtlRef, mergedClsPrefixRef);
45
+ function clickedOn(event, area) {
46
+ return (0, seemly_1.happensIn)(event, area);
47
+ }
48
+ function checkClickedPlace(event) {
49
+ let clickedPlace = 'main';
50
+ if (clickedOn(event, 'arrow')) {
51
+ clickedPlace = 'arrow';
52
+ }
53
+ if (clickedOn(event, 'extra')) {
54
+ clickedPlace = 'extra';
55
+ }
56
+ return clickedPlace;
57
+ }
51
58
  return {
52
59
  rtlEnabled: rtlEnabledRef,
53
60
  collapseSlots,
54
61
  randomName,
55
62
  mergedClsPrefix: mergedClsPrefixRef,
56
63
  collapsed: collapsedRef,
64
+ triggerAreas: (0, vue_1.toRef)(collapseProps, 'triggerAreas'),
57
65
  mergedDisplayDirective: (0, vue_1.computed)(() => {
58
66
  const { displayDirective } = props;
59
67
  if (displayDirective) {
@@ -66,41 +74,44 @@ exports.default = (0, vue_1.defineComponent)({
66
74
  arrowPlacement: (0, vue_1.computed)(() => {
67
75
  return collapseProps.arrowPlacement;
68
76
  }),
69
- handleClick(e) {
70
- e.stopPropagation();
77
+ handleClick(event) {
78
+ const clickedPlace = checkClickedPlace(event);
79
+ if (!collapseProps.triggerAreas.includes(clickedPlace)) {
80
+ return;
81
+ }
71
82
  if (UCollapse && !props.disabled) {
72
- UCollapse.toggleItem(collapsedRef.value, mergedNameRef.value, e);
83
+ UCollapse.toggleItem(collapsedRef.value, mergedNameRef.value, event);
73
84
  }
74
85
  }
75
86
  };
76
87
  },
77
88
  render() {
78
- const { collapseSlots, $slots, arrowPlacement, collapsed, mergedDisplayDirective, mergedClsPrefix, disabled } = this;
89
+ const { collapseSlots, $slots, arrowPlacement, collapsed, mergedDisplayDirective, mergedClsPrefix, disabled, triggerAreas } = this;
79
90
  const headerNode = (0, _utils_1.resolveSlotWithProps)($slots.header, { collapsed }, () => [this.title]);
80
91
  const headerExtraSlot = $slots['header-extra'] || collapseSlots['header-extra'];
81
92
  const arrowSlot = $slots.arrow || collapseSlots.arrow;
82
- const arrowNode = ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-collapse-item-arrow`, key: this.rtlEnabled ? 0 : 1 }, (0, _utils_1.resolveSlotWithProps)(arrowSlot, { collapsed }, () => {
83
- var _a;
84
- return [
85
- (0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix: mergedClsPrefix }, {
86
- default: (_a = collapseSlots.expandIcon) !== null && _a !== void 0 ? _a : (() => this.rtlEnabled ? (0, vue_1.h)(icons_1.ChevronLeftIcon, null) : (0, vue_1.h)(icons_1.ChevronRightIcon, null))
87
- })
88
- ];
89
- })));
93
+ const arrowNode = ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-collapse-item-arrow`, key: this.rtlEnabled ? 0 : 1, "data-arrow": true }, (0, _utils_1.resolveSlotWithProps)(arrowSlot, { collapsed }, () => [
94
+ (0, vue_1.h)(_internal_1.UBaseIcon, { clsPrefix: mergedClsPrefix }, {
95
+ default: () => this.rtlEnabled ? (0, vue_1.h)(icons_1.ChevronLeftIcon, null) : (0, vue_1.h)(icons_1.ChevronRightIcon, null)
96
+ })
97
+ ])));
90
98
  return ((0, vue_1.h)("div", { class: [
91
99
  `${mergedClsPrefix}-collapse-item`,
92
100
  `${mergedClsPrefix}-collapse-item--${arrowPlacement}-arrow-placement`,
93
101
  disabled && `${mergedClsPrefix}-collapse-item--disabled`,
94
- !collapsed && `${mergedClsPrefix}-collapse-item--active`
95
- ], onClick: this.handleClick },
102
+ !collapsed && `${mergedClsPrefix}-collapse-item--active`,
103
+ triggerAreas.map((area) => {
104
+ return `${mergedClsPrefix}-collapse-item--trigger-area-${area}`;
105
+ })
106
+ ] },
96
107
  (0, vue_1.h)("div", { class: [
97
108
  `${mergedClsPrefix}-collapse-item__header`,
98
109
  !collapsed && `${mergedClsPrefix}-collapse-item__header--active`
99
- ] },
110
+ ], onClick: this.handleClick },
100
111
  (0, vue_1.h)("div", { class: `${mergedClsPrefix}-collapse-item__header-main` },
101
112
  arrowPlacement !== 'right-edge' && arrowNode,
102
113
  headerNode),
103
- (0, _utils_1.resolveWrappedSlotWithProps)(headerExtraSlot, { collapsed }, (children) => ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-collapse-item__header-extra`, onClick: this.handleClick }, children))),
114
+ (0, _utils_1.resolveWrappedSlotWithProps)(headerExtraSlot, { collapsed }, (children) => ((0, vue_1.h)("div", { class: `${mergedClsPrefix}-collapse-item__header-extra`, "data-extra": true }, children))),
104
115
  arrowPlacement === 'right-edge' && arrowNode),
105
116
  (0, vue_1.h)(CollapseItemContent_1.default, { clsPrefix: mergedClsPrefix, displayDirective: mergedDisplayDirective, show: !collapsed }, $slots)));
106
117
  }
@@ -1,10 +1 @@
1
- export type OnUpdateExpandedNames = <T extends string[] & number[] & Array<string | number> & (string | number | null) & (string | null) & (number | null)>(value: T) => void;
2
- export type OnUpdateExpandedNamesImpl = <T extends string[] | number[] | Array<string | number> | (string | number | null) | (string | null) | (number | null)>(value: T) => void;
3
- export type OnItemHeaderClick = <T extends string & number & (string | number)>(info: HeaderClickInfo<T>) => void;
4
- export type OnItemHeaderClickImpl = <T extends string | number | (string | number)>(info: HeaderClickInfo<T>) => void;
5
- export interface HeaderClickInfo<T> {
6
- name: T;
7
- expanded: boolean;
8
- event: MouseEvent;
9
- }
10
- export type ArrowPlacement = 'left' | 'right' | 'right-edge';
1
+ export type { ArrowPlacement, CollapseArrowSlotProps, CollapseExpandedName, CollapseExpandedNames, CollapseItemProps, CollapseItemSlots, CollapseItemArrowSlotProps, CollapseItemHeaderExtraSlotProps, CollapseItemHeaderSlotProps, CollapseProps, CollapseSlots, CollapseTriggerArea, HeaderClickInfo, OnItemHeaderClick, OnItemHeaderClickImpl, OnUpdateExpandedNames, OnUpdateExpandedNamesImpl, UCollapseInjection } from './types/collapse.types';
@@ -0,0 +1,100 @@
1
+ import type { PropType } from 'vue';
2
+ import type { MaybeArray } from '../../../_utils';
3
+ import type { ArrowPlacement, CollapseTriggerArea, OnItemHeaderClick, OnUpdateExpandedNames } from '../types/collapse.types';
4
+ export declare const collapseProps: {
5
+ readonly defaultExpandedNames: {
6
+ readonly type: PropType<string | number | Array<string | number> | null>;
7
+ readonly default: null;
8
+ };
9
+ readonly expandedNames: PropType<string | number | Array<string | number> | null>;
10
+ readonly arrowPlacement: {
11
+ readonly type: PropType<ArrowPlacement>;
12
+ readonly default: "right-edge";
13
+ };
14
+ readonly accordion: {
15
+ readonly type: BooleanConstructor;
16
+ readonly default: false;
17
+ };
18
+ readonly displayDirective: {
19
+ readonly type: PropType<"if" | "show">;
20
+ readonly default: "if";
21
+ };
22
+ readonly triggerAreas: {
23
+ readonly type: PropType<CollapseTriggerArea[]>;
24
+ readonly default: () => string[];
25
+ };
26
+ readonly onItemHeaderClick: PropType<MaybeArray<OnItemHeaderClick>>;
27
+ readonly 'onUpdate:expandedNames': PropType<MaybeArray<OnUpdateExpandedNames>>;
28
+ readonly onUpdateExpandedNames: PropType<MaybeArray<OnUpdateExpandedNames>>;
29
+ readonly onExpandedNamesChange: {
30
+ readonly type: PropType<MaybeArray<OnUpdateExpandedNames> | undefined>;
31
+ readonly validator: () => boolean;
32
+ readonly default: undefined;
33
+ };
34
+ readonly theme: PropType<import("../../../_mixins").Theme<"Collapse", {
35
+ titleFontSize: string;
36
+ titleLineHeight: string;
37
+ titleFontWeight: string;
38
+ dividerColor: string;
39
+ titleTextColor: string;
40
+ titleTextColorDisabled: string;
41
+ fontSize: string;
42
+ lineHeight: string;
43
+ textColor: string;
44
+ arrowSize: string;
45
+ arrowColor: string;
46
+ arrowColorDisabled: string;
47
+ titlePadding: string;
48
+ backgroundColor: string;
49
+ borderRadius: string;
50
+ padding: string;
51
+ boxSizing: string;
52
+ iconBorder: string;
53
+ iconBorderRadius: string;
54
+ iconBackground: string;
55
+ }, any>>;
56
+ readonly themeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Collapse", {
57
+ titleFontSize: string;
58
+ titleLineHeight: string;
59
+ titleFontWeight: string;
60
+ dividerColor: string;
61
+ titleTextColor: string;
62
+ titleTextColorDisabled: string;
63
+ fontSize: string;
64
+ lineHeight: string;
65
+ textColor: string;
66
+ arrowSize: string;
67
+ arrowColor: string;
68
+ arrowColorDisabled: string;
69
+ titlePadding: string;
70
+ backgroundColor: string;
71
+ borderRadius: string;
72
+ padding: string;
73
+ boxSizing: string;
74
+ iconBorder: string;
75
+ iconBorderRadius: string;
76
+ iconBackground: string;
77
+ }, any>>>;
78
+ readonly builtinThemeOverrides: PropType<import("../../../_mixins/use-theme").ExtractThemeOverrides<import("../../../_mixins").Theme<"Collapse", {
79
+ titleFontSize: string;
80
+ titleLineHeight: string;
81
+ titleFontWeight: string;
82
+ dividerColor: string;
83
+ titleTextColor: string;
84
+ titleTextColorDisabled: string;
85
+ fontSize: string;
86
+ lineHeight: string;
87
+ textColor: string;
88
+ arrowSize: string;
89
+ arrowColor: string;
90
+ arrowColorDisabled: string;
91
+ titlePadding: string;
92
+ backgroundColor: string;
93
+ borderRadius: string;
94
+ padding: string;
95
+ boxSizing: string;
96
+ iconBorder: string;
97
+ iconBorderRadius: string;
98
+ iconBackground: string;
99
+ }, any>>>;
100
+ };
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collapseProps = void 0;
4
+ const _mixins_1 = require("../../../_mixins");
5
+ const _utils_1 = require("../../../_utils");
6
+ exports.collapseProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { defaultExpandedNames: {
7
+ type: [Array, String],
8
+ default: null
9
+ }, expandedNames: [Array, String], arrowPlacement: {
10
+ type: String,
11
+ default: 'right-edge'
12
+ }, accordion: {
13
+ type: Boolean,
14
+ default: false
15
+ }, displayDirective: {
16
+ type: String,
17
+ default: 'if'
18
+ }, triggerAreas: {
19
+ type: Array,
20
+ default: () => ['main', 'extra', 'arrow']
21
+ }, onItemHeaderClick: [Function, Array], 'onUpdate:expandedNames': [Function, Array], onUpdateExpandedNames: [Function, Array],
22
+ // deprecated
23
+ onExpandedNamesChange: {
24
+ type: [Function, Array],
25
+ validator: () => {
26
+ if (process.env.NODE_ENV !== 'production') {
27
+ (0, _utils_1.warn)('collapse', '`on-expanded-names-change` is deprecated, please use `on-update:expanded-names` instead.');
28
+ }
29
+ return true;
30
+ },
31
+ default: undefined
32
+ } });
@@ -0,0 +1,7 @@
1
+ import type { PropType } from 'vue';
2
+ export declare const collapseItemProps: {
3
+ readonly title: StringConstructor;
4
+ readonly name: PropType<string | number>;
5
+ readonly disabled: BooleanConstructor;
6
+ readonly displayDirective: PropType<"if" | "show">;
7
+ };
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.collapseItemProps = void 0;
4
+ exports.collapseItemProps = {
5
+ title: String,
6
+ name: [String, Number],
7
+ disabled: Boolean,
8
+ displayDirective: String
9
+ };
@@ -21,6 +21,9 @@ const fade_in_height_expand_cssr_1 = require("../../../_styles/transitions/fade-
21
21
  // --u-border-radius
22
22
  // --u-padding
23
23
  // --u-box-sizing
24
+ // --u-icon-border
25
+ // --u-icon-border-radius
26
+ // --u-icon-background
24
27
  exports.default = (0, cssr_1.cB)('collapse', `
25
28
  width: 100%;
26
29
  background-color: var(--u-background-color);
@@ -49,8 +52,9 @@ exports.default = (0, cssr_1.cB)('collapse', `
49
52
  height: 28px;
50
53
  justify-content: center;
51
54
  align-items: center;
52
- border-radius: 100px;
53
- background: #F3F4F6;
55
+ border: var(--u-icon-border);
56
+ border-radius: var(--u-icon-border-radius);
57
+ background: var(--u-icon-background);
54
58
  `, [(0, cssr_1.cB)('base-icon', `
55
59
  transform: scaleY(1) rotate(90deg);
56
60
  transition:
@@ -0,0 +1,55 @@
1
+ import type { Ref, VNode } from 'vue';
2
+ import type { ExtractPublicPropTypes } from '../../../_utils';
3
+ import { collapseItemProps } from '../props/collapseItem.props';
4
+ import { collapseProps } from '../props/collapse.props';
5
+ export type CollapseTriggerArea = 'main' | 'extra' | 'arrow';
6
+ export type CollapseExpandedName = string | number;
7
+ export type CollapseExpandedNames = CollapseExpandedName | CollapseExpandedName[] | null;
8
+ export type OnUpdateExpandedNames = <T extends string[] & number[] & Array<string | number> & (string | number | null) & (string | null) & (number | null)>(value: T) => void;
9
+ export type OnUpdateExpandedNamesImpl = <T extends string[] | number[] | Array<string | number> | (string | number | null) | (string | null) | (number | null)>(value: T) => void;
10
+ export type OnItemHeaderClick = <T extends string & number & (string | number)>(info: HeaderClickInfo<T>) => void;
11
+ export type OnItemHeaderClickImpl = <T extends string | number | (string | number)>(info: HeaderClickInfo<T>) => void;
12
+ export interface HeaderClickInfo<T> {
13
+ name: T;
14
+ expanded: boolean;
15
+ event: MouseEvent;
16
+ }
17
+ export type ArrowPlacement = 'left' | 'right' | 'right-edge';
18
+ export interface CollapseArrowSlotProps {
19
+ collapsed: boolean;
20
+ }
21
+ export interface CollapseItemHeaderSlotProps {
22
+ collapsed: boolean;
23
+ }
24
+ export interface CollapseItemHeaderExtraSlotProps {
25
+ collapsed: boolean;
26
+ }
27
+ export interface CollapseItemArrowSlotProps {
28
+ collapsed: boolean;
29
+ }
30
+ export interface CollapseSlots {
31
+ default?: () => VNode[];
32
+ arrow?: (props: CollapseArrowSlotProps) => VNode[];
33
+ header?: (props: CollapseItemHeaderSlotProps) => VNode[];
34
+ 'header-extra'?: (props: CollapseItemHeaderExtraSlotProps) => VNode[];
35
+ }
36
+ export interface CollapseItemSlots {
37
+ default?: () => VNode[];
38
+ header?: (props: CollapseItemHeaderSlotProps) => VNode[];
39
+ 'header-extra'?: (props: CollapseItemHeaderExtraSlotProps) => VNode[];
40
+ arrow?: (props: CollapseItemArrowSlotProps) => VNode[];
41
+ }
42
+ export interface UCollapseInjectionProps {
43
+ triggerAreas: CollapseTriggerArea[];
44
+ displayDirective: 'if' | 'show';
45
+ arrowPlacement: ArrowPlacement;
46
+ }
47
+ export interface UCollapseInjection {
48
+ props: UCollapseInjectionProps;
49
+ expandedNamesRef: Ref<CollapseExpandedNames>;
50
+ mergedClsPrefixRef: Ref<string>;
51
+ slots: CollapseSlots;
52
+ toggleItem: (collapse: boolean, name: CollapseExpandedName, event: MouseEvent) => void;
53
+ }
54
+ export type CollapseProps = ExtractPublicPropTypes<typeof collapseProps>;
55
+ export type CollapseItemProps = ExtractPublicPropTypes<typeof collapseItemProps>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -18,6 +18,9 @@ export declare const self: (vars: ThemeCommonVars) => {
18
18
  borderRadius: string;
19
19
  padding: string;
20
20
  boxSizing: string;
21
+ iconBorder: string;
22
+ iconBorderRadius: string;
23
+ iconBackground: string;
21
24
  };
22
25
  export type CollapseThemeVars = ReturnType<typeof self>;
23
26
  declare const collapseLight: Theme<'Collapse', CollapseThemeVars>;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.self = void 0;
4
4
  const common_1 = require("../../_styles/common");
5
5
  const self = (vars) => {
6
- const { fontWeight, fontBodyLarge, lineHeightBodyLarge, elementsQuaternary, textPrimary, textSecondary, fontBodyMedium, lineHeightBodyMedium, iconSmall, containerPrimary } = vars;
6
+ const { fontWeight, fontBodyLarge, lineHeightBodyLarge, elementsQuaternary, textPrimary, textSecondary, fontBodyMedium, lineHeightBodyMedium, iconSmall, containerPrimary, elementsTertiary } = vars;
7
7
  return {
8
8
  titleFontSize: fontBodyLarge,
9
9
  titleLineHeight: lineHeightBodyLarge,
@@ -21,7 +21,10 @@ const self = (vars) => {
21
21
  backgroundColor: containerPrimary,
22
22
  borderRadius: '20px',
23
23
  padding: '24px',
24
- boxSizing: 'border-box'
24
+ boxSizing: 'border-box',
25
+ iconBorder: 'none',
26
+ iconBorderRadius: '100px',
27
+ iconBackground: elementsTertiary
25
28
  };
26
29
  };
27
30
  exports.self = self;
@@ -1109,6 +1109,7 @@ declare const _default: import("vue").DefineComponent<{
1109
1109
  readonly trigger: import("../../popover").PopoverTrigger;
1110
1110
  readonly labelField: string;
1111
1111
  readonly childrenField: string;
1112
+ readonly arrow: boolean | undefined;
1112
1113
  readonly displayDirective: "show" | "if";
1113
1114
  readonly defaultShow: boolean;
1114
1115
  readonly animated: boolean;
@@ -1126,6 +1127,5 @@ declare const _default: import("vue").DefineComponent<{
1126
1127
  readonly internalInheritedEventHandlers: import("../../popover/src/Popover").TriggerEventHandlers[];
1127
1128
  readonly internalTrapFocus: boolean;
1128
1129
  readonly internalExtraClass: string[];
1129
- readonly arrow: boolean | undefined;
1130
1130
  }, {}>;
1131
1131
  export default _default;
@@ -1,4 +1,4 @@
1
- export { default as UIconBar, iconBarProps } from './src/IconBar';
2
- export type { IconBarProps } from './src/IconBar';
3
- export { default as UIconBarItem, iconBarItemProps } from './src/IconBarItem';
4
- export type { IconBarItemProps } from './src/IconBarItem';
1
+ export { default as UIconBar } from './src/IconBar';
2
+ export { default as UIconBarItem } from './src/IconBarItem';
3
+ export { iconBarProps, iconBarItemProps } from './src/interface';
4
+ export type { IconBarProps, IconBarItemProps } from './src/interface';
@@ -3,10 +3,11 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.iconBarItemProps = exports.UIconBarItem = exports.iconBarProps = exports.UIconBar = void 0;
6
+ exports.iconBarItemProps = exports.iconBarProps = exports.UIconBarItem = exports.UIconBar = void 0;
7
7
  var IconBar_1 = require("./src/IconBar");
8
8
  Object.defineProperty(exports, "UIconBar", { enumerable: true, get: function () { return __importDefault(IconBar_1).default; } });
9
- Object.defineProperty(exports, "iconBarProps", { enumerable: true, get: function () { return IconBar_1.iconBarProps; } });
10
9
  var IconBarItem_1 = require("./src/IconBarItem");
11
10
  Object.defineProperty(exports, "UIconBarItem", { enumerable: true, get: function () { return __importDefault(IconBarItem_1).default; } });
12
- Object.defineProperty(exports, "iconBarItemProps", { enumerable: true, get: function () { return IconBarItem_1.iconBarItemProps; } });
11
+ var interface_1 = require("./src/interface");
12
+ Object.defineProperty(exports, "iconBarProps", { enumerable: true, get: function () { return interface_1.iconBarProps; } });
13
+ Object.defineProperty(exports, "iconBarItemProps", { enumerable: true, get: function () { return interface_1.iconBarItemProps; } });
@@ -1,63 +1,7 @@
1
- import { ExtractPublicPropTypes, PropType } from 'vue';
2
- import { IconBarItemProps } from './IconBarItem';
3
- import { GridProps } from '../../grid';
4
- export declare const iconBarProps: {
5
- readonly items: {
6
- readonly type: PropType<IconBarItemProps[]>;
7
- readonly default: () => never[];
8
- };
9
- readonly cols: {
10
- readonly type: NumberConstructor;
11
- readonly default: 6;
12
- };
13
- readonly gridProps: {
14
- readonly type: PropType<Partial<GridProps>>;
15
- };
16
- readonly itemSize: PropType<number | string>;
17
- readonly theme: PropType<import("../../_mixins").Theme<"IconBar", {
18
- itemSize: string;
19
- color: string;
20
- colorHover: string;
21
- itemGap: string;
22
- iconSize: string;
23
- labelColor: string;
24
- labelSizeHover: string;
25
- labelColorHover: string;
26
- boxShadow: string;
27
- span: number;
28
- cols: number;
29
- }, any>>;
30
- readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
31
- itemSize: string;
32
- color: string;
33
- colorHover: string;
34
- itemGap: string;
35
- iconSize: string;
36
- labelColor: string;
37
- labelSizeHover: string;
38
- labelColorHover: string;
39
- boxShadow: string;
40
- span: number;
41
- cols: number;
42
- }, any>>>;
43
- readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
44
- itemSize: string;
45
- color: string;
46
- colorHover: string;
47
- itemGap: string;
48
- iconSize: string;
49
- labelColor: string;
50
- labelSizeHover: string;
51
- labelColorHover: string;
52
- boxShadow: string;
53
- span: number;
54
- cols: number;
55
- }, any>>>;
56
- };
57
- export type IconBarProps = ExtractPublicPropTypes<typeof iconBarProps>;
1
+ import { IconBarItemProps } from './interface';
58
2
  declare const _default: import("vue").DefineComponent<{
59
3
  readonly items: {
60
- readonly type: PropType<IconBarItemProps[]>;
4
+ readonly type: import("vue").PropType<IconBarItemProps[]>;
61
5
  readonly default: () => never[];
62
6
  };
63
7
  readonly cols: {
@@ -65,10 +9,13 @@ declare const _default: import("vue").DefineComponent<{
65
9
  readonly default: 6;
66
10
  };
67
11
  readonly gridProps: {
68
- readonly type: PropType<Partial<GridProps>>;
12
+ readonly type: import("vue").PropType<Partial<import("../../grid").GridProps>>;
69
13
  };
70
- readonly itemSize: PropType<number | string>;
71
- readonly theme: PropType<import("../../_mixins").Theme<"IconBar", {
14
+ readonly typographyProps: {
15
+ readonly type: import("vue").PropType<Partial<import("../..").TextProps>>;
16
+ };
17
+ readonly itemSize: import("vue").PropType<number | string>;
18
+ readonly theme: import("vue").PropType<import("../../_mixins").Theme<"IconBar", {
72
19
  itemSize: string;
73
20
  color: string;
74
21
  colorHover: string;
@@ -81,7 +28,7 @@ declare const _default: import("vue").DefineComponent<{
81
28
  span: number;
82
29
  cols: number;
83
30
  }, any>>;
84
- readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
31
+ readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
85
32
  itemSize: string;
86
33
  color: string;
87
34
  colorHover: string;
@@ -94,7 +41,7 @@ declare const _default: import("vue").DefineComponent<{
94
41
  span: number;
95
42
  cols: number;
96
43
  }, any>>>;
97
- readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
44
+ readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
98
45
  itemSize: string;
99
46
  color: string;
100
47
  colorHover: string;
@@ -118,7 +65,7 @@ declare const _default: import("vue").DefineComponent<{
118
65
  onRender: (() => void) | undefined;
119
66
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
120
67
  readonly items: {
121
- readonly type: PropType<IconBarItemProps[]>;
68
+ readonly type: import("vue").PropType<IconBarItemProps[]>;
122
69
  readonly default: () => never[];
123
70
  };
124
71
  readonly cols: {
@@ -126,10 +73,13 @@ declare const _default: import("vue").DefineComponent<{
126
73
  readonly default: 6;
127
74
  };
128
75
  readonly gridProps: {
129
- readonly type: PropType<Partial<GridProps>>;
76
+ readonly type: import("vue").PropType<Partial<import("../../grid").GridProps>>;
77
+ };
78
+ readonly typographyProps: {
79
+ readonly type: import("vue").PropType<Partial<import("../..").TextProps>>;
130
80
  };
131
- readonly itemSize: PropType<number | string>;
132
- readonly theme: PropType<import("../../_mixins").Theme<"IconBar", {
81
+ readonly itemSize: import("vue").PropType<number | string>;
82
+ readonly theme: import("vue").PropType<import("../../_mixins").Theme<"IconBar", {
133
83
  itemSize: string;
134
84
  color: string;
135
85
  colorHover: string;
@@ -142,7 +92,7 @@ declare const _default: import("vue").DefineComponent<{
142
92
  span: number;
143
93
  cols: number;
144
94
  }, any>>;
145
- readonly themeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
95
+ readonly themeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
146
96
  itemSize: string;
147
97
  color: string;
148
98
  colorHover: string;
@@ -155,7 +105,7 @@ declare const _default: import("vue").DefineComponent<{
155
105
  span: number;
156
106
  cols: number;
157
107
  }, any>>>;
158
- readonly builtinThemeOverrides: PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
108
+ readonly builtinThemeOverrides: import("vue").PropType<import("../../_mixins/use-theme").ExtractThemeOverrides<import("../../_mixins").Theme<"IconBar", {
159
109
  itemSize: string;
160
110
  color: string;
161
111
  colorHover: string;
@@ -3,28 +3,22 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
3
3
  return (mod && mod.__esModule) ? mod : { "default": mod };
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
- exports.iconBarProps = void 0;
7
6
  const vue_1 = require("vue");
8
7
  const _mixins_1 = require("../../_mixins");
9
8
  const styles_1 = require("../styles");
10
9
  const index_cssr_1 = __importDefault(require("./styles/index.cssr"));
11
- const IconBarItem_1 = __importDefault(require("./IconBarItem"));
12
10
  const grid_1 = require("../../grid");
13
11
  const _utils_1 = require("../../_utils");
14
- exports.iconBarProps = Object.assign(Object.assign({}, _mixins_1.useTheme.props), { items: {
15
- type: Array,
16
- default: () => []
17
- }, cols: {
18
- type: Number,
19
- default: 6
20
- }, gridProps: {
21
- type: Object
22
- }, itemSize: [Number, String] });
12
+ const interface_1 = require("./interface");
13
+ const IconBarItem_1 = __importDefault(require("./IconBarItem"));
23
14
  exports.default = (0, vue_1.defineComponent)({
24
15
  name: 'IconBar',
25
- props: exports.iconBarProps,
16
+ props: interface_1.iconBarProps,
26
17
  setup(props, { slots }) {
27
18
  const { mergedClsPrefixRef, inlineThemeDisabled } = (0, _mixins_1.useConfig)(props);
19
+ (0, vue_1.provide)(interface_1.iconBarInjectionKey, {
20
+ typographyPropsRef: (0, vue_1.toRef)(props, 'typographyProps')
21
+ });
28
22
  const themeRef = (0, _mixins_1.useTheme)('IconBar', '-icon-bar', index_cssr_1.default, styles_1.iconBarLight, props, mergedClsPrefixRef);
29
23
  const cssVarsRef = (0, vue_1.computed)(() => {
30
24
  const { self: { itemSize } } = themeRef.value;