@progress/kendo-react-common 13.3.0-develop.9 → 13.4.0-develop.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/Draggable.d.ts +93 -0
- package/Droppable.d.ts +84 -0
- package/FormComponent.d.ts +218 -0
- package/apply-default-props.d.ts +13 -0
- package/browser-support.service.d.ts +14 -0
- package/canUseDOM.d.ts +11 -0
- package/canUseRef.d.ts +12 -0
- package/classNames.d.ts +15 -0
- package/clone.d.ts +27 -0
- package/constants/main.d.ts +27 -0
- package/contexts/AdaptiveModeContext.d.ts +50 -0
- package/contexts/AdaptiveModeContext.mjs +2 -2
- package/contexts/ZIndexContext.d.ts +14 -0
- package/deep-merge.d.ts +13 -0
- package/dist/cdn/js/kendo-react-common.js +1 -1
- package/drag-n-drop/context/index.d.ts +24 -0
- package/drag-n-drop/index.d.ts +33 -0
- package/events/BaseEvent.d.ts +25 -0
- package/events/dispatchEvent.d.ts +21 -0
- package/fieldList.d.ts +11 -0
- package/fileExtensionIcon.d.ts +12 -0
- package/getActiveElement.d.ts +15 -0
- package/getTabIndex.d.ts +11 -0
- package/getter.d.ts +21 -0
- package/guid.d.ts +11 -0
- package/hasRelativeStackingContext.d.ts +9 -0
- package/hocs/AsyncFocusBlur.d.ts +20 -0
- package/hocs/use-adaptive-mode-hoc.d.ts +10 -0
- package/hocs/use-id-hoc.d.ts +10 -0
- package/hocs/use-unstyled-hoc.d.ts +10 -0
- package/hocs/withPropsContext.d.ts +12 -0
- package/hocs/withzIndexContext.d.ts +10 -0
- package/hooks/index.d.ts +19 -0
- package/hooks/use-id.d.ts +9 -0
- package/hooks/use-immediate-inherit-state.d.ts +13 -0
- package/hooks/use-isomorphic-layout-effect.d.ts +10 -0
- package/hooks/useAsyncFocusBlur.d.ts +32 -0
- package/hooks/useCollection.d.ts +21 -0
- package/hooks/useControlledState.d.ts +11 -0
- package/hooks/useCustomComponent.d.ts +16 -0
- package/hooks/useDir.d.ts +12 -0
- package/hooks/useDocument.d.ts +14 -0
- package/hooks/useDraggable.d.ts +75 -0
- package/hooks/useDroppable.d.ts +46 -0
- package/hooks/useInheritedState.d.ts +23 -0
- package/hooks/useMouse.d.ts +27 -0
- package/hooks/usePointer.d.ts +28 -0
- package/hooks/usePropsContext.d.ts +10 -0
- package/hooks/useRtl.d.ts +12 -0
- package/hooks/useTouch.d.ts +22 -0
- package/hooks/useWindow.d.ts +14 -0
- package/icons/BaseIconProps.d.ts +79 -0
- package/icons/Icon.d.ts +41 -0
- package/icons/IconWrap.d.ts +14 -0
- package/icons/IconsContext.d.ts +28 -0
- package/icons/SvgIcon.d.ts +77 -0
- package/icons/constants.d.ts +20 -0
- package/icons/models/flip.d.ts +18 -0
- package/icons/models/size.d.ts +22 -0
- package/icons/models/theme-color.d.ts +28 -0
- package/icons/utils.d.ts +24 -0
- package/index.d.mts +74 -4288
- package/index.d.ts +74 -4288
- package/keys.d.ts +47 -0
- package/memoize.d.ts +17 -0
- package/models/auto-scroll-options.d.ts +29 -0
- package/models/index.d.ts +12 -0
- package/models/kendoReactComponentBaseProps.d.ts +30 -0
- package/models/mouse.d.ts +56 -0
- package/models/pointer.d.ts +30 -0
- package/models/touch.d.ts +24 -0
- package/navigation.d.ts +166 -0
- package/noop.d.ts +11 -0
- package/package.json +1 -1
- package/rowHeightService.d.ts +31 -0
- package/scrollbarWidth.d.ts +15 -0
- package/setter.d.ts +23 -0
- package/theme.d.ts +15 -0
- package/trappedFocus.d.ts +44 -0
- package/tree-utils/FieldsService.d.ts +32 -0
- package/tree-utils/SortedPublicItemIds.d.ts +15 -0
- package/tree-utils/itemIdUtils.d.ts +67 -0
- package/tree-utils/itemIdUtils.mjs +51 -51
- package/tree-utils/itemUtils.d.ts +52 -0
- package/tree-utils/misc.d.ts +15 -0
- package/treeDataOperations.d.ts +46 -0
- package/typography/Typography.d.ts +41 -0
- package/typography/TypographyProps.d.ts +127 -0
- package/typography/constants.d.ts +91 -0
- package/typography/models/margin.d.ts +30 -0
- package/unstyled/animations.d.ts +96 -0
- package/unstyled/buttons.d.ts +186 -0
- package/unstyled/buttons.js +1 -1
- package/unstyled/buttons.mjs +104 -194
- package/unstyled/dateinputs.d.ts +397 -0
- package/unstyled/dateinputs.mjs +19 -19
- package/unstyled/dropdowns.d.ts +314 -0
- package/unstyled/dropdowns.mjs +1 -1
- package/unstyled/form.d.ts +71 -0
- package/unstyled/form.mjs +1 -1
- package/unstyled/grid.d.ts +12 -0
- package/unstyled/grid.js +1 -1
- package/unstyled/grid.mjs +51 -50
- package/unstyled/icons.d.ts +89 -0
- package/unstyled/icons.mjs +1 -1
- package/unstyled/inputs.d.ts +213 -0
- package/unstyled/inputs.mjs +14 -14
- package/unstyled/interfaces/common.d.ts +138 -0
- package/unstyled/json-classes.d.ts +378 -0
- package/unstyled/labels.d.ts +99 -0
- package/unstyled/main.d.ts +34 -0
- package/unstyled/popup.d.ts +123 -0
- package/unstyled/popup.mjs +3 -3
- package/validate-package.d.ts +38 -0
- package/watermark/WatermarkOverlay.d.ts +21 -0
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { WidgetClassStructure } from './interfaces/common.js';
|
|
9
|
+
/** Animation states */
|
|
10
|
+
export interface AnimationStatesClasses {
|
|
11
|
+
/** Animation for 'push-right' transition */
|
|
12
|
+
'push-right'?: string;
|
|
13
|
+
/** Animation for 'push-left' transition */
|
|
14
|
+
'push-left'?: string;
|
|
15
|
+
/** Animation for 'push-down' transition */
|
|
16
|
+
'push-down'?: string;
|
|
17
|
+
/** Animation for 'push-up' transition */
|
|
18
|
+
'push-up'?: string;
|
|
19
|
+
/** Animation for 'expand-vertical' transition */
|
|
20
|
+
'expand-vertical'?: string;
|
|
21
|
+
/** Animation for 'expand-horizontal' transition */
|
|
22
|
+
'expand-horizontal'?: string;
|
|
23
|
+
/** Animation for 'fade' transition */
|
|
24
|
+
fade?: string;
|
|
25
|
+
/** Animation for 'zoom-in' transition */
|
|
26
|
+
'zoom-in'?: string;
|
|
27
|
+
/** Animation for 'zoom-out' transition */
|
|
28
|
+
'zoom-out'?: string;
|
|
29
|
+
/** Animation for 'slide-in' transition */
|
|
30
|
+
'slide-in'?: string;
|
|
31
|
+
/** Animation for 'slide-down' transition */
|
|
32
|
+
'slide-down'?: string;
|
|
33
|
+
/** Animation for 'slide-up' transition */
|
|
34
|
+
'slide-up'?: string;
|
|
35
|
+
/** Animation for 'slide-right' transition */
|
|
36
|
+
'slide-right'?: string;
|
|
37
|
+
/** Animation for 'slide-left' transition */
|
|
38
|
+
'slide-left'?: string;
|
|
39
|
+
/** Animation for 'reveal-vertical' transition */
|
|
40
|
+
'reveal-vertical'?: string;
|
|
41
|
+
/** Animation for 'reveal-horizontal' transition */
|
|
42
|
+
'reveal-horizontal'?: string;
|
|
43
|
+
}
|
|
44
|
+
/** Configuration for the child element */
|
|
45
|
+
export interface AnimationChildClasses {
|
|
46
|
+
/** Container for child element */
|
|
47
|
+
container?: string;
|
|
48
|
+
/** Relative positioning for child container */
|
|
49
|
+
relative?: string;
|
|
50
|
+
}
|
|
51
|
+
/** Configuration for the child element */
|
|
52
|
+
export interface AnimationChildContainerClasses {
|
|
53
|
+
/** Container for childContainer element */
|
|
54
|
+
container?: string;
|
|
55
|
+
}
|
|
56
|
+
/** Animation states for appear transition */
|
|
57
|
+
export interface Appear extends AnimationStatesClasses {
|
|
58
|
+
}
|
|
59
|
+
/** Active states for appear transition */
|
|
60
|
+
export interface AppearActive extends AnimationStatesClasses {
|
|
61
|
+
}
|
|
62
|
+
/** Animation states for enter transition */
|
|
63
|
+
export interface Enter extends AnimationStatesClasses {
|
|
64
|
+
}
|
|
65
|
+
/** Active states for enter transition */
|
|
66
|
+
export interface EnterActive extends AnimationStatesClasses {
|
|
67
|
+
}
|
|
68
|
+
/** Animation states for exit transition */
|
|
69
|
+
export interface Exit extends AnimationStatesClasses {
|
|
70
|
+
}
|
|
71
|
+
/** Active states for exit transition */
|
|
72
|
+
export interface ExitActive extends AnimationStatesClasses {
|
|
73
|
+
}
|
|
74
|
+
/** Animation Classes */
|
|
75
|
+
export interface AnimationClasses {
|
|
76
|
+
/** Configuration for the child element */
|
|
77
|
+
child?: AnimationChildClasses;
|
|
78
|
+
/** Configuration for the childContainer element */
|
|
79
|
+
childContainer?: AnimationChildContainerClasses;
|
|
80
|
+
/** Animation states for appear transition */
|
|
81
|
+
appear?: Appear;
|
|
82
|
+
/** Active states for appear transition */
|
|
83
|
+
appearActive?: AppearActive;
|
|
84
|
+
/** Animation states for enter transition */
|
|
85
|
+
enter?: Enter;
|
|
86
|
+
/** Active states for enter transition */
|
|
87
|
+
enterActive?: EnterActive;
|
|
88
|
+
/** Animation states for exit transition */
|
|
89
|
+
exit?: Exit;
|
|
90
|
+
/** Active states for exit transition */
|
|
91
|
+
exitActive?: ExitActive;
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* @hidden
|
|
95
|
+
*/
|
|
96
|
+
export declare const uAnimation: WidgetClassStructure;
|
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2026 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
import { WidgetClassStructure } from './interfaces/common.js';
|
|
9
|
+
/** Button wrapper classes */
|
|
10
|
+
export interface ButtonWrapperClasses {
|
|
11
|
+
/** Main button */
|
|
12
|
+
main?: string;
|
|
13
|
+
/** Size options for the button */
|
|
14
|
+
size?: {
|
|
15
|
+
/** Small size button */
|
|
16
|
+
small?: string;
|
|
17
|
+
/** Medium size button */
|
|
18
|
+
medium?: string;
|
|
19
|
+
/** Large size button */
|
|
20
|
+
large?: string;
|
|
21
|
+
};
|
|
22
|
+
/** Fill mode options for the button */
|
|
23
|
+
fillMode?: {
|
|
24
|
+
/** Solid fill mode for the button */
|
|
25
|
+
solid?: string;
|
|
26
|
+
/** Outline fill mode for the button */
|
|
27
|
+
outline?: string;
|
|
28
|
+
/** Flat fill mode for the button */
|
|
29
|
+
flat?: string;
|
|
30
|
+
/** Link fill mode for the button */
|
|
31
|
+
link?: string;
|
|
32
|
+
/** Clear fill mode for the button */
|
|
33
|
+
clear?: string;
|
|
34
|
+
};
|
|
35
|
+
/** Theme color options for the button */
|
|
36
|
+
themeColor?: {
|
|
37
|
+
/** Base theme color */
|
|
38
|
+
base?: string;
|
|
39
|
+
/** Primary theme color */
|
|
40
|
+
primary?: string;
|
|
41
|
+
/** Secondary theme color */
|
|
42
|
+
secondary?: string;
|
|
43
|
+
/** Tertiary theme color */
|
|
44
|
+
tertiary?: string;
|
|
45
|
+
/** Info theme color */
|
|
46
|
+
info?: string;
|
|
47
|
+
/** Success theme color */
|
|
48
|
+
success?: string;
|
|
49
|
+
/** Warning theme color */
|
|
50
|
+
warning?: string;
|
|
51
|
+
/** Error theme color */
|
|
52
|
+
error?: string;
|
|
53
|
+
/** Dark theme color */
|
|
54
|
+
dark?: string;
|
|
55
|
+
/** Light theme color */
|
|
56
|
+
light?: string;
|
|
57
|
+
/** Inverse theme color */
|
|
58
|
+
inverse?: string;
|
|
59
|
+
};
|
|
60
|
+
/** Rounded options for the button */
|
|
61
|
+
rounded?: {
|
|
62
|
+
/** Small rounded option */
|
|
63
|
+
small?: string;
|
|
64
|
+
/** Medium rounded option */
|
|
65
|
+
medium?: string;
|
|
66
|
+
/** Large rounded option */
|
|
67
|
+
large?: string;
|
|
68
|
+
};
|
|
69
|
+
/** Icon button */
|
|
70
|
+
iconButton?: string;
|
|
71
|
+
/** Disabled state */
|
|
72
|
+
disabled?: string;
|
|
73
|
+
/** Selected state */
|
|
74
|
+
selected?: string;
|
|
75
|
+
/** Right-to-left layout */
|
|
76
|
+
isRtl?: string;
|
|
77
|
+
}
|
|
78
|
+
/** Theme colors fill mode options for */
|
|
79
|
+
export interface ThemeColorFillModeClasses {
|
|
80
|
+
/** Fill mode options for theme colors */
|
|
81
|
+
fillMode?: {
|
|
82
|
+
/** Solid fill mode for theme colors */
|
|
83
|
+
solid?: string;
|
|
84
|
+
/** Outline fill mode for theme colors */
|
|
85
|
+
outline?: string;
|
|
86
|
+
/** Flat fill mode for theme colors */
|
|
87
|
+
flat?: string;
|
|
88
|
+
/** Link fill mode for theme colors */
|
|
89
|
+
link?: string;
|
|
90
|
+
/** Clear fill mode for theme colors */
|
|
91
|
+
clear?: string;
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
/** Button classes */
|
|
95
|
+
export interface ButtonClasses {
|
|
96
|
+
/** Button wrapper */
|
|
97
|
+
wrapper?: ButtonWrapperClasses;
|
|
98
|
+
/** Text element */
|
|
99
|
+
text?: string;
|
|
100
|
+
/** Icon element */
|
|
101
|
+
icon?: string;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* @hidden
|
|
105
|
+
*/
|
|
106
|
+
export declare const uButton: WidgetClassStructure;
|
|
107
|
+
export interface ButtonGroupWrapperClasses {
|
|
108
|
+
/** Main button group classes */
|
|
109
|
+
main?: string;
|
|
110
|
+
/** Stretched state classes for the button group */
|
|
111
|
+
stretched?: string;
|
|
112
|
+
/** Disabled state classes for the button group */
|
|
113
|
+
disabled?: string;
|
|
114
|
+
}
|
|
115
|
+
export interface ButtonGroupPositionClasses {
|
|
116
|
+
/** Position for the button group at the start */
|
|
117
|
+
start?: string;
|
|
118
|
+
/** Position for the button group at the end */
|
|
119
|
+
end?: string;
|
|
120
|
+
}
|
|
121
|
+
export interface ButtonGroupClasses {
|
|
122
|
+
/** Wrapper configuration for the button group */
|
|
123
|
+
wrapper?: ButtonGroupWrapperClasses;
|
|
124
|
+
/** Position configuration for the button group */
|
|
125
|
+
position?: ButtonGroupPositionClasses;
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* @hidden
|
|
129
|
+
*/
|
|
130
|
+
export declare const uButtonGroup: WidgetClassStructure;
|
|
131
|
+
export interface DropDownButtonWrapperClasses {
|
|
132
|
+
/** Main button class */
|
|
133
|
+
main?: string;
|
|
134
|
+
/** Focus state class for the button */
|
|
135
|
+
focus?: string;
|
|
136
|
+
/** Disabled state class for the button */
|
|
137
|
+
disabled?: string;
|
|
138
|
+
}
|
|
139
|
+
export interface DropDownButtonSizeClasses {
|
|
140
|
+
/** Small size class for the button group */
|
|
141
|
+
small?: string;
|
|
142
|
+
/** Medium size class for the button group */
|
|
143
|
+
medium?: string;
|
|
144
|
+
/** Large size class for the button group */
|
|
145
|
+
large?: string;
|
|
146
|
+
}
|
|
147
|
+
export interface DropDownButtonGroupClasses {
|
|
148
|
+
/** Group class for the button container */
|
|
149
|
+
group?: string;
|
|
150
|
+
/** Size configuration for the button group */
|
|
151
|
+
size?: DropDownButtonSizeClasses;
|
|
152
|
+
}
|
|
153
|
+
export interface DropDownButtonListItemClasses {
|
|
154
|
+
/** Item class for the list container */
|
|
155
|
+
item?: string;
|
|
156
|
+
/** Focus state class for the list item */
|
|
157
|
+
focus?: string;
|
|
158
|
+
}
|
|
159
|
+
export interface DropDownButtonLinkClasses {
|
|
160
|
+
/** Main link class */
|
|
161
|
+
main?: string;
|
|
162
|
+
/** Link class for the button */
|
|
163
|
+
link?: string;
|
|
164
|
+
/** Selected state class for the link */
|
|
165
|
+
selected?: string;
|
|
166
|
+
/** Disabled state class for the link */
|
|
167
|
+
disabled?: string;
|
|
168
|
+
}
|
|
169
|
+
export interface DropDownButtonClasses {
|
|
170
|
+
/** Wrapper configuration for the button */
|
|
171
|
+
wrapper?: DropDownButtonWrapperClasses;
|
|
172
|
+
/** Unordered list configuration for the button group */
|
|
173
|
+
ul?: DropDownButtonGroupClasses;
|
|
174
|
+
/** List item configuration */
|
|
175
|
+
li?: DropDownButtonListItemClasses;
|
|
176
|
+
/** Item class for the button */
|
|
177
|
+
item?: string;
|
|
178
|
+
/** Link configuration for the button */
|
|
179
|
+
link?: DropDownButtonLinkClasses;
|
|
180
|
+
/** Popup class for the button group */
|
|
181
|
+
popup?: string;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @hidden
|
|
185
|
+
*/
|
|
186
|
+
export declare const uDropDownButton: WidgetClassStructure;
|
package/unstyled/buttons.js
CHANGED
|
@@ -5,4 +5,4 @@
|
|
|
5
5
|
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
6
|
*-------------------------------------------------------------------------------------------
|
|
7
7
|
*/
|
|
8
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
8
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./interfaces/common.js"),e=require("./json-classes.js"),d={wrapper:{main:e.buttonPrefix,size:{small:`${e.buttonPrefix}-${e.sizeMap.small}`,medium:`${e.buttonPrefix}-${e.sizeMap.medium}`,large:`${e.buttonPrefix}-${e.sizeMap.large}`},fillMode:{solid:`${e.buttonPrefix}-${e.fillModeMap.solid}`,outline:`${e.buttonPrefix}-${e.fillModeMap.outline}`,flat:`${e.buttonPrefix}-${e.fillModeMap.flat}`,link:`${e.buttonPrefix}-${e.fillModeMap.link}`,clear:`${e.buttonPrefix}-${e.fillModeMap.clear}`},themeColor:{base:`${e.buttonPrefix}-${e.themeColorMap.base}`,primary:`${e.buttonPrefix}-${e.themeColorMap.primary}`,secondary:`${e.buttonPrefix}-${e.themeColorMap.secondary}`,tertiary:`${e.buttonPrefix}-${e.themeColorMap.tertiary}`,info:`${e.buttonPrefix}-${e.themeColorMap.info}`,success:`${e.buttonPrefix}-${e.themeColorMap.success}`,warning:`${e.buttonPrefix}-${e.themeColorMap.warning}`,error:`${e.buttonPrefix}-${e.themeColorMap.error}`,dark:`${e.buttonPrefix}-${e.themeColorMap.dark}`,light:`${e.buttonPrefix}-${e.themeColorMap.light}`,inverse:`${e.buttonPrefix}-${e.themeColorMap.inverse}`},rounded:{small:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.small}`,medium:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.medium}`,large:`${e.base.prefix}-${e.base.rounded}-${e.roundedMap.large}`},iconButton:`${e.base.prefix}-${e.elements.icon}-${e.elements.button}`,disabled:`${e.base.prefix}-${e.states.disabled}`,selected:`${e.base.prefix}-${e.states.selected}`,isRtl:`${e.base.prefix}-${e.base.rtl}`},text:`${e.buttonPrefix}-${e.elements.text}`,icon:`${e.buttonPrefix}-${e.elements.icon}`},x={wrapper:o=>{const{isRtl:r,selected:n,disabled:s,size:t,fillMode:u,rounded:a,themeColor:$,iconButton:f,c:m=d}=o,i=m.wrapper,p=$&&i.themeColor?i.themeColor[$]:void 0;return{[i.main]:!0,[i.size[t]]:t&&i.size[t],[`${e.buttonPrefix}-${t}`]:t&&!i.size[t],[i.fillMode[u]]:u&&i.fillMode[u],[p]:p,[i.rounded[a]]:a&&i.rounded[a],[`${e.base.prefix}-${e.base.rounded}-${a}`]:a&&!i.rounded[a],[i.iconButton]:f,[i.disabled]:s,[i.selected]:n,[i.isRtl]:r}},text:o=>{const{c:r=d}=o;return{[r.text]:!0}},icon:o=>{const{c:r=d}=o;return{[r.icon]:!0}}},b={wrapper:{main:`${e.buttonPrefix}-${e.containers.group}`,stretched:`${e.buttonPrefix}-${e.containers.group}-${e.states.stretched}`,disabled:`${e.base.prefix}-${e.states.disabled}`},position:{start:`${e.base.prefix}-${e.containers.group}-${e.directionMap.start}`,end:`${e.base.prefix}-${e.containers.group}-${e.directionMap.end}`}},M={wrapper:o=>{const{stretched:r,disabled:n,c:s=b}=o,t=s.wrapper;return{[t.main]:!0,[t.stretched]:r,[t.disabled]:n}},position:o=>{const{start:r,end:n,c:s=b}=o,t=s.position;return{[t.start]:r,[t.end]:n}}},l={wrapper:{main:`${e.ddbPrefix}-${e.elements.button}`,focus:`${e.base.prefix}-${e.states.focus}`,disabled:`${e.base.prefix}-${e.states.disabled}`},ul:{group:`${e.ddbPrefix}-${e.containers.group}`,size:{small:`${e.ddbPrefix}-${e.containers.group}-${e.sizeMap.small}`,medium:`${e.ddbPrefix}-${e.containers.group}-${e.sizeMap.medium}`,large:`${e.ddbPrefix}-${e.containers.group}-${e.sizeMap.large}`}},li:{item:`${e.base.prefix}-${e.containers.item}`,focus:`${e.base.prefix}-${e.states.focus}`},item:`${e.ddbPrefix}-${e.containers.item}`,link:{main:`${e.base.prefix}-${e.elements.link}`,link:`${e.ddbPrefix}-${e.elements.link}`,selected:`${e.base.prefix}-${e.states.selected}`,disabled:`${e.base.prefix}-${e.states.disabled}`},popup:`${e.ddbPrefix}-${e.containers.popup}`},P={wrapper:o=>{const{focused:r,disabled:n,c:s=l}=o,t=s.wrapper;return{[t.main]:!0,[t.focus]:r,[t.disabled]:n}},ul:o=>{const{size:r,c:n=l}=o,s=n.ul;return{[s.group]:!0,[s.size[r]]:s.size[r],[`${e.ddbPrefix}-${e.containers.group}-${r}`]:r&&!s.size[r]}},li:o=>{const{focused:r,c:n=l}=o,s=n.li;return{[s.item]:!0,[s.focus]:r}},item:c.getClassByName(l,"item"),link:o=>{const{selected:r,disabled:n,c:s=l}=o,t=s.link;return{[t.main]:!0,[t.link]:!0,[t.selected]:r,[t.disabled]:n}},popup:c.getClassByName(l,"popup")};exports.uButton=x;exports.uButtonGroup=M;exports.uDropDownButton=P;
|