@progress/kendo-react-common 8.3.0-develop.2 → 8.3.0-develop.4
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/cdn/js/kendo-react-common.js +1 -1
- package/hocs/use-unstyled-hoc.js +8 -0
- package/hocs/use-unstyled-hoc.mjs +17 -0
- package/icons/SvgIcon.js +1 -1
- package/icons/SvgIcon.mjs +52 -56
- package/index.d.mts +169 -0
- package/index.d.ts +169 -0
- package/index.js +1 -1
- package/index.mjs +133 -110
- package/package.json +1 -1
- package/unstyled/animations.js +8 -0
- package/unstyled/animations.mjs +185 -0
- package/unstyled/buttons.js +8 -0
- package/unstyled/buttons.mjs +253 -0
- package/unstyled/grid.js +8 -0
- package/unstyled/grid.mjs +319 -0
- package/unstyled/icons.js +8 -0
- package/unstyled/icons.mjs +53 -0
- package/unstyled/inputs.js +8 -0
- package/unstyled/inputs.mjs +149 -0
- package/unstyled/json-classes.js +8 -0
- package/unstyled/json-classes.mjs +201 -0
- package/unstyled/main.js +8 -0
- package/unstyled/main.mjs +14 -0
- package/unstyled/popup.js +8 -0
- package/unstyled/popup.mjs +91 -0
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { base as e, input as m, sizeMap as p, states as o, containers as u, elements as k, fillModeMap as c, roundedMap as f } from "./json-classes.mjs";
|
|
10
|
+
const n = `${e.prefix}-${m.prefix}`, M = `${e.prefix}-${m.maskedtextbox}`, d = `${e.prefix}-${m.radio}`, x = {
|
|
11
|
+
input: {
|
|
12
|
+
radio: d,
|
|
13
|
+
size: {
|
|
14
|
+
small: `${d}-${p.small}`,
|
|
15
|
+
medium: `${d}-${p.medium}`,
|
|
16
|
+
large: `${d}-${p.large}`
|
|
17
|
+
},
|
|
18
|
+
invalid: `${e.prefix}-${o.invalid}`,
|
|
19
|
+
checked: `${e.prefix}-${o.checked}`
|
|
20
|
+
},
|
|
21
|
+
wrap: `${d}-${u.wrap}`,
|
|
22
|
+
label: `${d}-${k.label}`
|
|
23
|
+
}, w = {
|
|
24
|
+
input: (r) => {
|
|
25
|
+
const {
|
|
26
|
+
size: i,
|
|
27
|
+
invalid: s,
|
|
28
|
+
checked: a,
|
|
29
|
+
c: $ = x
|
|
30
|
+
} = r, l = $.input;
|
|
31
|
+
return {
|
|
32
|
+
[l.radio]: !0,
|
|
33
|
+
[l.size[i]]: l.size[i],
|
|
34
|
+
[`${d}-${i}`]: !l.size[i],
|
|
35
|
+
[l.invalid]: s,
|
|
36
|
+
[l.checked]: a
|
|
37
|
+
};
|
|
38
|
+
},
|
|
39
|
+
label: (r) => {
|
|
40
|
+
const {
|
|
41
|
+
c: i = x
|
|
42
|
+
} = r;
|
|
43
|
+
return {
|
|
44
|
+
[i.label]: !0
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
wrap: (r) => {
|
|
48
|
+
const {
|
|
49
|
+
c: i = x
|
|
50
|
+
} = r;
|
|
51
|
+
return {
|
|
52
|
+
[i.wrap]: !0
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
}, z = {
|
|
56
|
+
ul: {
|
|
57
|
+
main: `${d}-${u.list}`,
|
|
58
|
+
horizontal: `${e.prefix}-${u.list}-${o.horizontal}`,
|
|
59
|
+
vertical: `${e.prefix}-${u.list}-${o.vertical}`
|
|
60
|
+
},
|
|
61
|
+
item: {
|
|
62
|
+
main: `${d}-${u.list}-${u.item}`,
|
|
63
|
+
disabled: `${e.prefix}-${o.disabled}`
|
|
64
|
+
}
|
|
65
|
+
}, g = {
|
|
66
|
+
ul: (r) => {
|
|
67
|
+
const {
|
|
68
|
+
horizontal: i,
|
|
69
|
+
vertical: s,
|
|
70
|
+
c: a = z
|
|
71
|
+
} = r, $ = a.ul;
|
|
72
|
+
return {
|
|
73
|
+
[$.main]: !0,
|
|
74
|
+
[$.horizontal]: i,
|
|
75
|
+
[$.vertical]: s
|
|
76
|
+
};
|
|
77
|
+
},
|
|
78
|
+
item: (r) => {
|
|
79
|
+
const {
|
|
80
|
+
disabled: i,
|
|
81
|
+
c: s = z
|
|
82
|
+
} = r, a = s.item;
|
|
83
|
+
return {
|
|
84
|
+
[a.main]: !0,
|
|
85
|
+
[a.disabled]: i
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
}, b = {
|
|
89
|
+
wrapper: {
|
|
90
|
+
main: M,
|
|
91
|
+
input: n,
|
|
92
|
+
size: {
|
|
93
|
+
small: `${n}-${p.small}`,
|
|
94
|
+
medium: `${n}-${p.medium}`,
|
|
95
|
+
large: `${n}-${p.large}`
|
|
96
|
+
},
|
|
97
|
+
fillMode: {
|
|
98
|
+
solid: `${n}-${c.solid}`,
|
|
99
|
+
outline: `${n}-${c.outline}`,
|
|
100
|
+
flat: `${n}-${c.flat}`,
|
|
101
|
+
link: `${n}-${c.link}`,
|
|
102
|
+
clear: `${n}-${c.clear}`
|
|
103
|
+
},
|
|
104
|
+
rounded: {
|
|
105
|
+
small: `${e.prefix}-${e.rounded}-${f.small}`,
|
|
106
|
+
medium: `${e.prefix}-${e.rounded}-${f.medium}`,
|
|
107
|
+
large: `${e.prefix}-${e.rounded}-${f.large}`
|
|
108
|
+
},
|
|
109
|
+
disabled: `${e.prefix}-${o.disabled}`,
|
|
110
|
+
invalid: `${e.prefix}-${o.invalid}`,
|
|
111
|
+
isRtl: `${e.prefix}-${e.rtl}`
|
|
112
|
+
},
|
|
113
|
+
input: `${n}-${m.inner}`
|
|
114
|
+
}, B = {
|
|
115
|
+
wrapper: (r) => {
|
|
116
|
+
const {
|
|
117
|
+
invalid: i,
|
|
118
|
+
disabled: s,
|
|
119
|
+
size: a,
|
|
120
|
+
fillMode: $,
|
|
121
|
+
rounded: l,
|
|
122
|
+
c: v = b
|
|
123
|
+
} = r, t = v.wrapper;
|
|
124
|
+
return {
|
|
125
|
+
[t.main]: !0,
|
|
126
|
+
[t.input]: !0,
|
|
127
|
+
[t.size[a]]: t.size[a],
|
|
128
|
+
[`${n}-${a}`]: !t.size[a],
|
|
129
|
+
[t.fillMode[$]]: t.fillMode[$],
|
|
130
|
+
[t.rounded[l]]: t.rounded[l],
|
|
131
|
+
[`${e.prefix}-${e.rounded}-${l}`]: l && !t.rounded[l],
|
|
132
|
+
[t.disabled]: s,
|
|
133
|
+
[t.invalid]: i
|
|
134
|
+
};
|
|
135
|
+
},
|
|
136
|
+
input: (r) => {
|
|
137
|
+
const { c: i = b } = r;
|
|
138
|
+
return {
|
|
139
|
+
[i.input]: !0
|
|
140
|
+
};
|
|
141
|
+
}
|
|
142
|
+
};
|
|
143
|
+
export {
|
|
144
|
+
x as radioButtonClasses,
|
|
145
|
+
z as radioGroupClasses,
|
|
146
|
+
B as uMaskedTextBox,
|
|
147
|
+
w as uRadioButton,
|
|
148
|
+
g as uRadioGroup
|
|
149
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e={prefix:"k",important:"!",rtl:"rtl",rounded:"rounded"},t={xsmall:"xs",small:"sm",medium:"md",large:"lg",xlarge:"xl",xxlarge:"xxl",xxxlarge:"xxxl"},i={solid:"solid",outline:"outline",flat:"flat",link:"link",clear:"clear"},n={base:"base",primary:"primary",secondary:"secondary",tertiary:"tertiary",info:"info",success:"success",warning:"warning",error:"error",dark:"dark",light:"light",inherit:"inherit",inverse:"inverse"},o={small:"sm",medium:"md",large:"lg",full:"full"},a={height:"height",width:"width"},r={default:"cursor-default"},l={up:"up",down:"down",left:"left",right:"right"},s={container:"container",content:"content",wrap:"wrap",list:"list",popup:"popup",item:"item"},d={table:"table",text:"text",tbody:"tbody",thead:"thead",th:"th",td:"td",header:"header",footer:"footer",icon:"icon",title:"title",link:"link",label:"label"},c={first:"first",focus:"focus",last:"last",draggable:"draggable",filterable:"filterable",grouping:"grouping",selected:"selected",disabled:"disabled",invalid:"invalid",checked:"checked",sorted:"sorted",sort:"sort",order:"order",alt:"alt",edit:"edit",template:"template",shown:"shown",horizontal:"horizontal",vertical:"vertical"},p={prefix:"animation",child:"child",relative:"relative",slide:"slide",appear:"appear",active:"active",enter:"enter",exit:"exit",pushRight:"push-right",pushLeft:"push-left",pushDown:"push-down",pushUp:"push-up",expandVertical:"expand-vertical",expandHorizontal:"expand-horizontal",fade:"fade",zoomIn:"zoom-in",zoomOut:"zoom-out",slideIn:"slide-in",slideDown:"slide-down",slideUp:"slide-up",slideRight:"slide-right",slideLeft:"slide-left",revealVertical:"reveal-vertical",revealHorizontal:"reveal-horizontal","animation-container":"animation-container","animation-container-shown":"animation-container-shown","animation-container-relative":"animation-container-relative","animation-container-fixed":"animation-container-fixed","child-animation-container":"child-animation-container"},u={prefix:"button"},h={prefix:"input",inner:"inner",maskedtextbox:"maskedtextbox",radio:"radio"},m={prefix:"menu",group:"group"},f={prefix:"icon",svg:"svg",i:"i",color:"color",flipH:"flip-h",flipV:"flip-v"},g={prefix:"popup"},x={prefix:"grid",virtual:"virtual",ariaRoot:"aria-root",tableWrap:"table-wrap",sticky:"sticky",master:"master",column:"column",cell:"cell",cellInner:"cell-inner",row:"row",group:"group",hierarchy:"hierarchy",detail:"detail",noRecords:"norecords",pager:"pager"},b={base:e,animation:p,sizeMap:t,directionMap:l,fillModeMap:i,themeColorMap:n,roundedMap:o,elements:d,states:c,dimensions:a,containers:s,cursor:r,button:u,input:h,ddb:m,popup:g,icon:f,grid:x};exports.animation=p;exports.base=e;exports.button=u;exports.containers=s;exports.cursor=r;exports.ddb=m;exports.dimensions=a;exports.directionMap=l;exports.elements=d;exports.fillModeMap=i;exports.grid=x;exports.icon=f;exports.input=h;exports.popup=g;exports.roundedMap=o;exports.sizeMap=t;exports.states=c;exports.theme=b;exports.themeColorMap=n;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
const e = {
|
|
10
|
+
prefix: "k",
|
|
11
|
+
important: "!",
|
|
12
|
+
rtl: "rtl",
|
|
13
|
+
rounded: "rounded"
|
|
14
|
+
}, t = {
|
|
15
|
+
xsmall: "xs",
|
|
16
|
+
small: "sm",
|
|
17
|
+
medium: "md",
|
|
18
|
+
large: "lg",
|
|
19
|
+
xlarge: "xl",
|
|
20
|
+
xxlarge: "xxl",
|
|
21
|
+
xxxlarge: "xxxl"
|
|
22
|
+
}, i = {
|
|
23
|
+
solid: "solid",
|
|
24
|
+
outline: "outline",
|
|
25
|
+
flat: "flat",
|
|
26
|
+
link: "link",
|
|
27
|
+
clear: "clear"
|
|
28
|
+
}, a = {
|
|
29
|
+
base: "base",
|
|
30
|
+
primary: "primary",
|
|
31
|
+
secondary: "secondary",
|
|
32
|
+
tertiary: "tertiary",
|
|
33
|
+
info: "info",
|
|
34
|
+
success: "success",
|
|
35
|
+
warning: "warning",
|
|
36
|
+
error: "error",
|
|
37
|
+
dark: "dark",
|
|
38
|
+
light: "light",
|
|
39
|
+
inherit: "inherit",
|
|
40
|
+
inverse: "inverse"
|
|
41
|
+
}, n = {
|
|
42
|
+
small: "sm",
|
|
43
|
+
medium: "md",
|
|
44
|
+
large: "lg",
|
|
45
|
+
full: "full"
|
|
46
|
+
}, o = {
|
|
47
|
+
height: "height",
|
|
48
|
+
width: "width"
|
|
49
|
+
}, r = {
|
|
50
|
+
default: "cursor-default"
|
|
51
|
+
}, l = {
|
|
52
|
+
up: "up",
|
|
53
|
+
down: "down",
|
|
54
|
+
left: "left",
|
|
55
|
+
right: "right"
|
|
56
|
+
}, s = {
|
|
57
|
+
container: "container",
|
|
58
|
+
content: "content",
|
|
59
|
+
wrap: "wrap",
|
|
60
|
+
list: "list",
|
|
61
|
+
popup: "popup",
|
|
62
|
+
item: "item"
|
|
63
|
+
}, d = {
|
|
64
|
+
table: "table",
|
|
65
|
+
text: "text",
|
|
66
|
+
tbody: "tbody",
|
|
67
|
+
thead: "thead",
|
|
68
|
+
th: "th",
|
|
69
|
+
td: "td",
|
|
70
|
+
header: "header",
|
|
71
|
+
footer: "footer",
|
|
72
|
+
icon: "icon",
|
|
73
|
+
title: "title",
|
|
74
|
+
link: "link",
|
|
75
|
+
label: "label"
|
|
76
|
+
}, c = {
|
|
77
|
+
first: "first",
|
|
78
|
+
focus: "focus",
|
|
79
|
+
last: "last",
|
|
80
|
+
draggable: "draggable",
|
|
81
|
+
filterable: "filterable",
|
|
82
|
+
grouping: "grouping",
|
|
83
|
+
selected: "selected",
|
|
84
|
+
disabled: "disabled",
|
|
85
|
+
invalid: "invalid",
|
|
86
|
+
checked: "checked",
|
|
87
|
+
sorted: "sorted",
|
|
88
|
+
sort: "sort",
|
|
89
|
+
order: "order",
|
|
90
|
+
alt: "alt",
|
|
91
|
+
edit: "edit",
|
|
92
|
+
template: "template",
|
|
93
|
+
shown: "shown",
|
|
94
|
+
horizontal: "horizontal",
|
|
95
|
+
vertical: "vertical"
|
|
96
|
+
}, p = {
|
|
97
|
+
prefix: "animation",
|
|
98
|
+
child: "child",
|
|
99
|
+
relative: "relative",
|
|
100
|
+
slide: "slide",
|
|
101
|
+
appear: "appear",
|
|
102
|
+
active: "active",
|
|
103
|
+
enter: "enter",
|
|
104
|
+
exit: "exit",
|
|
105
|
+
pushRight: "push-right",
|
|
106
|
+
pushLeft: "push-left",
|
|
107
|
+
pushDown: "push-down",
|
|
108
|
+
pushUp: "push-up",
|
|
109
|
+
expandVertical: "expand-vertical",
|
|
110
|
+
expandHorizontal: "expand-horizontal",
|
|
111
|
+
fade: "fade",
|
|
112
|
+
zoomIn: "zoom-in",
|
|
113
|
+
zoomOut: "zoom-out",
|
|
114
|
+
slideIn: "slide-in",
|
|
115
|
+
slideDown: "slide-down",
|
|
116
|
+
slideUp: "slide-up",
|
|
117
|
+
slideRight: "slide-right",
|
|
118
|
+
slideLeft: "slide-left",
|
|
119
|
+
revealVertical: "reveal-vertical",
|
|
120
|
+
revealHorizontal: "reveal-horizontal",
|
|
121
|
+
"animation-container": "animation-container",
|
|
122
|
+
"animation-container-shown": "animation-container-shown",
|
|
123
|
+
"animation-container-relative": "animation-container-relative",
|
|
124
|
+
"animation-container-fixed": "animation-container-fixed",
|
|
125
|
+
"child-animation-container": "child-animation-container"
|
|
126
|
+
}, h = {
|
|
127
|
+
prefix: "button"
|
|
128
|
+
}, u = {
|
|
129
|
+
prefix: "input",
|
|
130
|
+
inner: "inner",
|
|
131
|
+
maskedtextbox: "maskedtextbox",
|
|
132
|
+
radio: "radio"
|
|
133
|
+
}, m = {
|
|
134
|
+
prefix: "menu",
|
|
135
|
+
group: "group"
|
|
136
|
+
}, f = {
|
|
137
|
+
prefix: "icon",
|
|
138
|
+
svg: "svg",
|
|
139
|
+
i: "i",
|
|
140
|
+
color: "color",
|
|
141
|
+
flipH: "flip-h",
|
|
142
|
+
flipV: "flip-v"
|
|
143
|
+
}, g = {
|
|
144
|
+
prefix: "popup"
|
|
145
|
+
}, x = {
|
|
146
|
+
prefix: "grid",
|
|
147
|
+
virtual: "virtual",
|
|
148
|
+
ariaRoot: "aria-root",
|
|
149
|
+
tableWrap: "table-wrap",
|
|
150
|
+
sticky: "sticky",
|
|
151
|
+
master: "master",
|
|
152
|
+
column: "column",
|
|
153
|
+
cell: "cell",
|
|
154
|
+
cellInner: "cell-inner",
|
|
155
|
+
row: "row",
|
|
156
|
+
group: "group",
|
|
157
|
+
hierarchy: "hierarchy",
|
|
158
|
+
detail: "detail",
|
|
159
|
+
noRecords: "norecords",
|
|
160
|
+
pager: "pager"
|
|
161
|
+
}, v = {
|
|
162
|
+
base: e,
|
|
163
|
+
animation: p,
|
|
164
|
+
sizeMap: t,
|
|
165
|
+
directionMap: l,
|
|
166
|
+
fillModeMap: i,
|
|
167
|
+
themeColorMap: a,
|
|
168
|
+
roundedMap: n,
|
|
169
|
+
elements: d,
|
|
170
|
+
states: c,
|
|
171
|
+
dimensions: o,
|
|
172
|
+
containers: s,
|
|
173
|
+
cursor: r,
|
|
174
|
+
button: h,
|
|
175
|
+
input: u,
|
|
176
|
+
ddb: m,
|
|
177
|
+
popup: g,
|
|
178
|
+
icon: f,
|
|
179
|
+
grid: x
|
|
180
|
+
};
|
|
181
|
+
export {
|
|
182
|
+
p as animation,
|
|
183
|
+
e as base,
|
|
184
|
+
h as button,
|
|
185
|
+
s as containers,
|
|
186
|
+
r as cursor,
|
|
187
|
+
m as ddb,
|
|
188
|
+
o as dimensions,
|
|
189
|
+
l as directionMap,
|
|
190
|
+
d as elements,
|
|
191
|
+
i as fillModeMap,
|
|
192
|
+
x as grid,
|
|
193
|
+
f as icon,
|
|
194
|
+
u as input,
|
|
195
|
+
g as popup,
|
|
196
|
+
n as roundedMap,
|
|
197
|
+
t as sizeMap,
|
|
198
|
+
c as states,
|
|
199
|
+
v as theme,
|
|
200
|
+
a as themeColorMap
|
|
201
|
+
};
|
package/unstyled/main.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=e.createContext(void 0),n=()=>e.useContext(t);exports.UnstyledContext=t;exports.useUnstyled=n;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import t from "react";
|
|
10
|
+
const e = t.createContext(void 0), n = () => t.useContext(e);
|
|
11
|
+
export {
|
|
12
|
+
e as UnstyledContext,
|
|
13
|
+
n as useUnstyled
|
|
14
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./json-classes.js"),a={animationContainer:`${i.base.prefix}-${i.animation.prefix}-${i.containers.container}`,animationContainerShown:`${i.base.prefix}-${i.animation.prefix}-${i.containers.container}-${i.states.shown}`,animationChild:`${i.base.prefix}-${i.animation.child}-${i.animation.prefix}-${i.containers.container}`,popup:`${i.base.prefix}-${i.popup.prefix}`,slide:{up:{enter:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.up}-${i.animation.enter}`,exit:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.up}-${i.animation.exit}`},down:{enter:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.down}-${i.animation.enter}`,exit:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.down}-${i.animation.exit}`},left:{enter:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.left}-${i.animation.enter}`,exit:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.left}-${i.animation.exit}`},right:{enter:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.right}-${i.animation.enter}`,exit:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.right}-${i.animation.exit}`}},slideActive:{up:{enter:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.up}-${i.animation.enter}-${i.animation.active}`,exit:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.up}-${i.animation.exit}-${i.animation.active}`},down:{enter:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.down}-${i.animation.enter}-${i.animation.active}`,exit:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.down}-${i.animation.exit}-${i.animation.active}`},left:{enter:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.left}-${i.animation.enter}-${i.animation.active}`,exit:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.left}-${i.animation.exit}-${i.animation.active}`},right:{enter:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.right}-${i.animation.enter}-${i.animation.active}`,exit:`${i.base.prefix}-${i.animation.slide}-${i.directionMap.right}-${i.animation.exit}-${i.animation.active}`}}},r={animationContainer:n=>{const{c:e=a}=n;return{[e.animationContainer]:!0}},animationContainerShown:n=>{const{c:e=a}=n;return{[e.animationContainerShown]:!0}},animationChild:n=>{const{c:e=a}=n;return{[e.animationChild]:!0}},popup:n=>{const{c:e=a}=n;return{[e.popup]:!0}},slide:n=>{const{direction:e,type:o,c:t=a}=n;return{[t.slide[e][o]]:t.slide[e]&&t.slide[e][o]}},slideActive:n=>{const{direction:e,type:o,c:t=a}=n;return{[t.slideActive[e][o]]:t.slideActive[e]&&t.slideActive[e][o]}}};exports.uPopup=r;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
*-------------------------------------------------------------------------------------------
|
|
4
|
+
* Copyright © 2024 Progress Software Corporation. All rights reserved.
|
|
5
|
+
* Licensed under commercial license. See LICENSE.md in the package root for more information
|
|
6
|
+
*-------------------------------------------------------------------------------------------
|
|
7
|
+
*/
|
|
8
|
+
"use client";
|
|
9
|
+
import { base as i, animation as e, containers as s, states as a, popup as x, directionMap as t } from "./json-classes.mjs";
|
|
10
|
+
const p = {
|
|
11
|
+
animationContainer: `${i.prefix}-${e.prefix}-${s.container}`,
|
|
12
|
+
animationContainerShown: `${i.prefix}-${e.prefix}-${s.container}-${a.shown}`,
|
|
13
|
+
animationChild: `${i.prefix}-${e.child}-${e.prefix}-${s.container}`,
|
|
14
|
+
popup: `${i.prefix}-${x.prefix}`,
|
|
15
|
+
slide: {
|
|
16
|
+
up: {
|
|
17
|
+
enter: `${i.prefix}-${e.slide}-${t.up}-${e.enter}`,
|
|
18
|
+
exit: `${i.prefix}-${e.slide}-${t.up}-${e.exit}`
|
|
19
|
+
},
|
|
20
|
+
down: {
|
|
21
|
+
enter: `${i.prefix}-${e.slide}-${t.down}-${e.enter}`,
|
|
22
|
+
exit: `${i.prefix}-${e.slide}-${t.down}-${e.exit}`
|
|
23
|
+
},
|
|
24
|
+
left: {
|
|
25
|
+
enter: `${i.prefix}-${e.slide}-${t.left}-${e.enter}`,
|
|
26
|
+
exit: `${i.prefix}-${e.slide}-${t.left}-${e.exit}`
|
|
27
|
+
},
|
|
28
|
+
right: {
|
|
29
|
+
enter: `${i.prefix}-${e.slide}-${t.right}-${e.enter}`,
|
|
30
|
+
exit: `${i.prefix}-${e.slide}-${t.right}-${e.exit}`
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
slideActive: {
|
|
34
|
+
up: {
|
|
35
|
+
enter: `${i.prefix}-${e.slide}-${t.up}-${e.enter}-${e.active}`,
|
|
36
|
+
exit: `${i.prefix}-${e.slide}-${t.up}-${e.exit}-${e.active}`
|
|
37
|
+
},
|
|
38
|
+
down: {
|
|
39
|
+
enter: `${i.prefix}-${e.slide}-${t.down}-${e.enter}-${e.active}`,
|
|
40
|
+
exit: `${i.prefix}-${e.slide}-${t.down}-${e.exit}-${e.active}`
|
|
41
|
+
},
|
|
42
|
+
left: {
|
|
43
|
+
enter: `${i.prefix}-${e.slide}-${t.left}-${e.enter}-${e.active}`,
|
|
44
|
+
exit: `${i.prefix}-${e.slide}-${t.left}-${e.exit}-${e.active}`
|
|
45
|
+
},
|
|
46
|
+
right: {
|
|
47
|
+
enter: `${i.prefix}-${e.slide}-${t.right}-${e.enter}-${e.active}`,
|
|
48
|
+
exit: `${i.prefix}-${e.slide}-${t.right}-${e.exit}-${e.active}`
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}, l = {
|
|
52
|
+
animationContainer: (n) => {
|
|
53
|
+
const { c: $ = p } = n;
|
|
54
|
+
return {
|
|
55
|
+
[$.animationContainer]: !0
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
animationContainerShown: (n) => {
|
|
59
|
+
const { c: $ = p } = n;
|
|
60
|
+
return {
|
|
61
|
+
[$.animationContainerShown]: !0
|
|
62
|
+
};
|
|
63
|
+
},
|
|
64
|
+
animationChild: (n) => {
|
|
65
|
+
const { c: $ = p } = n;
|
|
66
|
+
return {
|
|
67
|
+
[$.animationChild]: !0
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
popup: (n) => {
|
|
71
|
+
const { c: $ = p } = n;
|
|
72
|
+
return {
|
|
73
|
+
[$.popup]: !0
|
|
74
|
+
};
|
|
75
|
+
},
|
|
76
|
+
slide: (n) => {
|
|
77
|
+
const { direction: $, type: o, c: r = p } = n;
|
|
78
|
+
return {
|
|
79
|
+
[r.slide[$][o]]: r.slide[$] && r.slide[$][o]
|
|
80
|
+
};
|
|
81
|
+
},
|
|
82
|
+
slideActive: (n) => {
|
|
83
|
+
const { direction: $, type: o, c: r = p } = n;
|
|
84
|
+
return {
|
|
85
|
+
[r.slideActive[$][o]]: r.slideActive[$] && r.slideActive[$][o]
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
};
|
|
89
|
+
export {
|
|
90
|
+
l as uPopup
|
|
91
|
+
};
|