@gluhar/theme 2.0.0-dev.0
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/CHANGELOG.md +147 -0
- package/README.md +162 -0
- package/dist/module.cjs +5 -0
- package/dist/module.d.mts +13 -0
- package/dist/module.d.ts +13 -0
- package/dist/module.json +9 -0
- package/dist/module.mjs +34 -0
- package/dist/runtime/composables/useTheme.d.ts +10 -0
- package/dist/runtime/composables/useTheme.js +29 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-Heavy.otf +0 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-HeavySlanted.otf +0 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-Regular.otf +0 -0
- package/dist/runtime/fonts/object-sans/PPObjectSans-Slanted.otf +0 -0
- package/dist/runtime/fonts/object-sans/stylesheet.css +1 -0
- package/dist/runtime/presets/lara/accordion/index.d.ts +49 -0
- package/dist/runtime/presets/lara/accordion/index.js +78 -0
- package/dist/runtime/presets/lara/autocomplete/index.d.ts +200 -0
- package/dist/runtime/presets/lara/autocomplete/index.js +259 -0
- package/dist/runtime/presets/lara/avatar/index.d.ts +83 -0
- package/dist/runtime/presets/lara/avatar/index.js +43 -0
- package/dist/runtime/presets/lara/avatargroup/index.d.ts +7 -0
- package/dist/runtime/presets/lara/avatargroup/index.js +5 -0
- package/dist/runtime/presets/lara/badge/index.d.ts +72 -0
- package/dist/runtime/presets/lara/badge/index.js +43 -0
- package/dist/runtime/presets/lara/badgedirective/index.d.ts +50 -0
- package/dist/runtime/presets/lara/badgedirective/index.js +43 -0
- package/dist/runtime/presets/lara/blockui/index.d.ts +11 -0
- package/dist/runtime/presets/lara/blockui/index.js +8 -0
- package/dist/runtime/presets/lara/breadcrumb/index.d.ts +23 -0
- package/dist/runtime/presets/lara/breadcrumb/index.js +64 -0
- package/dist/runtime/presets/lara/button/index.d.ts +3790 -0
- package/dist/runtime/presets/lara/button/index.js +220 -0
- package/dist/runtime/presets/lara/calendar/index.d.ts +334 -0
- package/dist/runtime/presets/lara/calendar/index.js +643 -0
- package/dist/runtime/presets/lara/card/index.d.ts +27 -0
- package/dist/runtime/presets/lara/card/index.js +37 -0
- package/dist/runtime/presets/lara/carousel/index.d.ts +71 -0
- package/dist/runtime/presets/lara/carousel/index.js +149 -0
- package/dist/runtime/presets/lara/cascadeselect/index.d.ts +112 -0
- package/dist/runtime/presets/lara/cascadeselect/index.js +209 -0
- package/dist/runtime/presets/lara/checkbox/index.d.ts +45 -0
- package/dist/runtime/presets/lara/checkbox/index.js +101 -0
- package/dist/runtime/presets/lara/chip/index.d.ts +23 -0
- package/dist/runtime/presets/lara/chip/index.js +45 -0
- package/dist/runtime/presets/lara/chips/index.d.ts +56 -0
- package/dist/runtime/presets/lara/chips/index.js +114 -0
- package/dist/runtime/presets/lara/colorpicker/index.d.ts +51 -0
- package/dist/runtime/presets/lara/colorpicker/index.js +123 -0
- package/dist/runtime/presets/lara/confirmpopup/index.d.ts +39 -0
- package/dist/runtime/presets/lara/confirmpopup/index.js +106 -0
- package/dist/runtime/presets/lara/contextmenu/index.d.ts +72 -0
- package/dist/runtime/presets/lara/contextmenu/index.js +125 -0
- package/dist/runtime/presets/lara/datatable/index.d.ts +695 -0
- package/dist/runtime/presets/lara/datatable/index.js +1170 -0
- package/dist/runtime/presets/lara/dataview/index.d.ts +15 -0
- package/dist/runtime/presets/lara/dataview/index.js +40 -0
- package/dist/runtime/presets/lara/dataviewlayoutoptions/index.d.ts +13 -0
- package/dist/runtime/presets/lara/dataviewlayoutoptions/index.js +62 -0
- package/dist/runtime/presets/lara/deferred/index.d.ts +4 -0
- package/dist/runtime/presets/lara/deferred/index.js +3 -0
- package/dist/runtime/presets/lara/dialog/index.d.ts +79 -0
- package/dist/runtime/presets/lara/dialog/index.js +235 -0
- package/dist/runtime/presets/lara/divider/index.d.ts +192 -0
- package/dist/runtime/presets/lara/divider/index.js +67 -0
- package/dist/runtime/presets/lara/dock/index.d.ts +51 -0
- package/dist/runtime/presets/lara/dock/index.js +93 -0
- package/dist/runtime/presets/lara/dropdown/index.d.ts +207 -0
- package/dist/runtime/presets/lara/dropdown/index.js +265 -0
- package/dist/runtime/presets/lara/fieldset/index.d.ts +87 -0
- package/dist/runtime/presets/lara/fieldset/index.js +84 -0
- package/dist/runtime/presets/lara/fileupload/index.d.ts +70 -0
- package/dist/runtime/presets/lara/fileupload/index.js +173 -0
- package/dist/runtime/presets/lara/floatlabel/index.d.ts +7 -0
- package/dist/runtime/presets/lara/floatlabel/index.js +26 -0
- package/dist/runtime/presets/lara/galleria/index.d.ts +194 -0
- package/dist/runtime/presets/lara/galleria/index.js +306 -0
- package/dist/runtime/presets/lara/global.d.ts +4 -0
- package/dist/runtime/presets/lara/global.js +90 -0
- package/dist/runtime/presets/lara/iconfield/index.d.ts +18 -0
- package/dist/runtime/presets/lara/iconfield/index.js +22 -0
- package/dist/runtime/presets/lara/image/index.d.ts +65 -0
- package/dist/runtime/presets/lara/image/index.js +206 -0
- package/dist/runtime/presets/lara/index.d.ts +187 -0
- package/dist/runtime/presets/lara/index.js +207 -0
- package/dist/runtime/presets/lara/inlinemessage/index.d.ts +55 -0
- package/dist/runtime/presets/lara/inlinemessage/index.js +36 -0
- package/dist/runtime/presets/lara/inplace/index.d.ts +7 -0
- package/dist/runtime/presets/lara/inplace/index.js +27 -0
- package/dist/runtime/presets/lara/inputgroup/index.d.ts +7 -0
- package/dist/runtime/presets/lara/inputgroup/index.js +5 -0
- package/dist/runtime/presets/lara/inputgroupaddon/index.d.ts +7 -0
- package/dist/runtime/presets/lara/inputgroupaddon/index.js +28 -0
- package/dist/runtime/presets/lara/inputmask/index.d.ts +27 -0
- package/dist/runtime/presets/lara/inputmask/index.js +34 -0
- package/dist/runtime/presets/lara/inputnumber/index.d.ts +390 -0
- package/dist/runtime/presets/lara/inputnumber/index.js +164 -0
- package/dist/runtime/presets/lara/inputotp/index.d.ts +147 -0
- package/dist/runtime/presets/lara/inputotp/index.js +60 -0
- package/dist/runtime/presets/lara/inputswitch/index.d.ts +67 -0
- package/dist/runtime/presets/lara/inputswitch/index.js +80 -0
- package/dist/runtime/presets/lara/inputtext/index.d.ts +160 -0
- package/dist/runtime/presets/lara/inputtext/index.js +49 -0
- package/dist/runtime/presets/lara/knob/index.d.ts +22 -0
- package/dist/runtime/presets/lara/knob/index.js +44 -0
- package/dist/runtime/presets/lara/listbox/index.d.ts +93 -0
- package/dist/runtime/presets/lara/listbox/index.js +152 -0
- package/dist/runtime/presets/lara/megamenu/index.d.ts +105 -0
- package/dist/runtime/presets/lara/megamenu/index.js +199 -0
- package/dist/runtime/presets/lara/menu/index.d.ts +40 -0
- package/dist/runtime/presets/lara/menu/index.js +96 -0
- package/dist/runtime/presets/lara/menubar/index.d.ts +85 -0
- package/dist/runtime/presets/lara/menubar/index.js +176 -0
- package/dist/runtime/presets/lara/message/index.d.ts +70 -0
- package/dist/runtime/presets/lara/message/index.js +87 -0
- package/dist/runtime/presets/lara/metergroup/index.d.ts +92 -0
- package/dist/runtime/presets/lara/metergroup/index.js +97 -0
- package/dist/runtime/presets/lara/multiselect/index.d.ts +260 -0
- package/dist/runtime/presets/lara/multiselect/index.js +546 -0
- package/dist/runtime/presets/lara/orderlist/index.d.ts +99 -0
- package/dist/runtime/presets/lara/orderlist/index.js +257 -0
- package/dist/runtime/presets/lara/organizationchart/index.d.ts +81 -0
- package/dist/runtime/presets/lara/organizationchart/index.js +138 -0
- package/dist/runtime/presets/lara/overlaypanel/index.d.ts +17 -0
- package/dist/runtime/presets/lara/overlaypanel/index.js +40 -0
- package/dist/runtime/presets/lara/paginator/index.d.ts +280 -0
- package/dist/runtime/presets/lara/paginator/index.js +533 -0
- package/dist/runtime/presets/lara/panel/index.d.ts +39 -0
- package/dist/runtime/presets/lara/panel/index.js +91 -0
- package/dist/runtime/presets/lara/panelmenu/index.d.ts +76 -0
- package/dist/runtime/presets/lara/panelmenu/index.js +127 -0
- package/dist/runtime/presets/lara/password/index.d.ts +181 -0
- package/dist/runtime/presets/lara/password/index.js +118 -0
- package/dist/runtime/presets/lara/picklist/index.d.ts +245 -0
- package/dist/runtime/presets/lara/picklist/index.js +650 -0
- package/dist/runtime/presets/lara/progressbar/index.d.ts +44 -0
- package/dist/runtime/presets/lara/progressbar/index.js +55 -0
- package/dist/runtime/presets/lara/progressspinner/index.d.ts +15 -0
- package/dist/runtime/presets/lara/progressspinner/index.js +51 -0
- package/dist/runtime/presets/lara/radiobutton/index.d.ts +57 -0
- package/dist/runtime/presets/lara/radiobutton/index.js +104 -0
- package/dist/runtime/presets/lara/rating/index.d.ts +49 -0
- package/dist/runtime/presets/lara/rating/index.js +92 -0
- package/dist/runtime/presets/lara/ripple/index.d.ts +8 -0
- package/dist/runtime/presets/lara/ripple/index.js +6 -0
- package/dist/runtime/presets/lara/scrollpanel/index.d.ts +19 -0
- package/dist/runtime/presets/lara/scrollpanel/index.js +77 -0
- package/dist/runtime/presets/lara/scrolltop/index.d.ts +50 -0
- package/dist/runtime/presets/lara/scrolltop/index.js +41 -0
- package/dist/runtime/presets/lara/selectbutton/index.d.ts +56 -0
- package/dist/runtime/presets/lara/selectbutton/index.js +49 -0
- package/dist/runtime/presets/lara/sidebar/index.d.ts +66 -0
- package/dist/runtime/presets/lara/sidebar/index.js +149 -0
- package/dist/runtime/presets/lara/skeleton/index.d.ts +16 -0
- package/dist/runtime/presets/lara/skeleton/index.js +16 -0
- package/dist/runtime/presets/lara/slider/index.d.ts +55 -0
- package/dist/runtime/presets/lara/slider/index.js +137 -0
- package/dist/runtime/presets/lara/speeddial/index.d.ts +3091 -0
- package/dist/runtime/presets/lara/speeddial/index.js +283 -0
- package/dist/runtime/presets/lara/splitbutton/index.d.ts +6749 -0
- package/dist/runtime/presets/lara/splitbutton/index.js +502 -0
- package/dist/runtime/presets/lara/splitter/index.d.ts +30 -0
- package/dist/runtime/presets/lara/splitter/index.js +61 -0
- package/dist/runtime/presets/lara/splitterpanel/index.d.ts +10 -0
- package/dist/runtime/presets/lara/splitterpanel/index.js +5 -0
- package/dist/runtime/presets/lara/stepper/index.d.ts +66 -0
- package/dist/runtime/presets/lara/stepper/index.js +161 -0
- package/dist/runtime/presets/lara/steps/index.d.ts +57 -0
- package/dist/runtime/presets/lara/steps/index.js +111 -0
- package/dist/runtime/presets/lara/tabmenu/index.d.ts +43 -0
- package/dist/runtime/presets/lara/tabmenu/index.js +73 -0
- package/dist/runtime/presets/lara/tabview/index.d.ts +67 -0
- package/dist/runtime/presets/lara/tabview/index.js +156 -0
- package/dist/runtime/presets/lara/tag/index.d.ts +32 -0
- package/dist/runtime/presets/lara/tag/index.js +36 -0
- package/dist/runtime/presets/lara/terminal/index.d.ts +27 -0
- package/dist/runtime/presets/lara/terminal/index.js +60 -0
- package/dist/runtime/presets/lara/textarea/index.d.ts +27 -0
- package/dist/runtime/presets/lara/textarea/index.js +36 -0
- package/dist/runtime/presets/lara/tieredmenu/index.d.ts +56 -0
- package/dist/runtime/presets/lara/tieredmenu/index.js +120 -0
- package/dist/runtime/presets/lara/timeline/index.d.ts +84 -0
- package/dist/runtime/presets/lara/timeline/index.js +81 -0
- package/dist/runtime/presets/lara/toast/index.d.ts +92 -0
- package/dist/runtime/presets/lara/toast/index.js +102 -0
- package/dist/runtime/presets/lara/togglebutton/index.d.ts +72 -0
- package/dist/runtime/presets/lara/togglebutton/index.js +91 -0
- package/dist/runtime/presets/lara/toolbar/index.d.ts +19 -0
- package/dist/runtime/presets/lara/toolbar/index.js +28 -0
- package/dist/runtime/presets/lara/tooltip/index.d.ts +38 -0
- package/dist/runtime/presets/lara/tooltip/index.js +46 -0
- package/dist/runtime/presets/lara/tree/index.d.ts +105 -0
- package/dist/runtime/presets/lara/tree/index.js +258 -0
- package/dist/runtime/presets/lara/treeselect/index.d.ts +181 -0
- package/dist/runtime/presets/lara/treeselect/index.js +352 -0
- package/dist/runtime/presets/lara/treetable/index.d.ts +316 -0
- package/dist/runtime/presets/lara/treetable/index.js +434 -0
- package/dist/runtime/presets/lara/tristatecheckbox/index.d.ts +49 -0
- package/dist/runtime/presets/lara/tristatecheckbox/index.js +104 -0
- package/dist/runtime/styles/core.css +27 -0
- package/dist/runtime/tailwind/gluharTheme.d.ts +3 -0
- package/dist/runtime/tailwind/gluharTheme.js +52 -0
- package/dist/runtime/tailwind/handleTailwind.d.ts +3 -0
- package/dist/runtime/tailwind/handleTailwind.js +22 -0
- package/dist/types.d.mts +7 -0
- package/dist/types.d.ts +7 -0
- package/package.json +56 -0
|
@@ -0,0 +1,306 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
content: ({ parent, props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'flex',
|
|
5
|
+
{
|
|
6
|
+
'flex-col': props.fullScreen
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
'flex-col': parent.props.thumbnailsPosition === 'top' || parent.props.thumbnailsPosition === 'bottom',
|
|
10
|
+
'flex-row': parent.props.thumbnailsPosition === 'right' || parent.props.thumbnailsPosition === 'left'
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}),
|
|
14
|
+
itemwrapper: ({ parent, props }) => ({
|
|
15
|
+
class: [
|
|
16
|
+
'group',
|
|
17
|
+
'flex relative',
|
|
18
|
+
{
|
|
19
|
+
'grow shrink w-0 justify-center': props.fullScreen
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
'flex-col': parent.props.indicatorsPosition === 'bottom' || parent.props.indicatorsPosition === 'top',
|
|
23
|
+
'flex-row items-center': parent.props.indicatorsPosition === 'left' || parent.props.indicatorsPosition === 'right'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
'order-2': parent.props.thumbnailsPosition === 'top' || parent.props.thumbnailsPosition === 'left',
|
|
27
|
+
'flex-row': parent.props.thumbnailsPosition === 'right'
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
}),
|
|
31
|
+
|
|
32
|
+
itemcontainer: ({ parent }) => ({
|
|
33
|
+
class: [
|
|
34
|
+
'flex h-full relative',
|
|
35
|
+
{
|
|
36
|
+
'order-1': parent.props.indicatorsPosition === 'bottom' || parent.props.indicatorsPosition === 'right',
|
|
37
|
+
'order-2': parent.props.indicatorsPosition === 'top' || parent.props.indicatorsPosition === 'left'
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
}),
|
|
41
|
+
item: {
|
|
42
|
+
class: [
|
|
43
|
+
// Flex
|
|
44
|
+
'flex justify-center items-center h-full w-full',
|
|
45
|
+
|
|
46
|
+
// Sizing
|
|
47
|
+
'h-full w-full'
|
|
48
|
+
]
|
|
49
|
+
},
|
|
50
|
+
thumbnailwrapper: ({ parent }) => ({
|
|
51
|
+
class: [
|
|
52
|
+
// Flex
|
|
53
|
+
'flex flex-col shrink-0',
|
|
54
|
+
|
|
55
|
+
{
|
|
56
|
+
'order-1': parent.props.thumbnailsPosition === 'top' || parent.props.thumbnailsPosition === 'left'
|
|
57
|
+
},
|
|
58
|
+
|
|
59
|
+
// Misc
|
|
60
|
+
'overflow-auto'
|
|
61
|
+
]
|
|
62
|
+
}),
|
|
63
|
+
thumbnailcontainer: ({ parent }) => ({
|
|
64
|
+
class: [
|
|
65
|
+
// Flex
|
|
66
|
+
'flex',
|
|
67
|
+
|
|
68
|
+
// Spacing
|
|
69
|
+
'p-4',
|
|
70
|
+
|
|
71
|
+
// Colors
|
|
72
|
+
'bg-black/90',
|
|
73
|
+
|
|
74
|
+
{
|
|
75
|
+
'flex-row': parent.props.thumbnailsPosition === 'top' || parent.props.thumbnailsPosition === 'bottom',
|
|
76
|
+
'flex-col grow': parent.props.thumbnailsPosition === 'right' || parent.props.thumbnailsPosition === 'left'
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}),
|
|
80
|
+
previousthumbnailbutton: {
|
|
81
|
+
class: [
|
|
82
|
+
// Positioning
|
|
83
|
+
'self-center relative',
|
|
84
|
+
|
|
85
|
+
// Display & Flexbox
|
|
86
|
+
'flex shrink-0 justify-center items-center overflow-hidden',
|
|
87
|
+
|
|
88
|
+
// Spacing
|
|
89
|
+
'm-2',
|
|
90
|
+
|
|
91
|
+
// Appearance
|
|
92
|
+
'bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out',
|
|
93
|
+
|
|
94
|
+
// Hover Effects
|
|
95
|
+
'hover:bg-surface-0/10 hover:text-white',
|
|
96
|
+
|
|
97
|
+
// Focus Effects
|
|
98
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50'
|
|
99
|
+
]
|
|
100
|
+
},
|
|
101
|
+
thumbnailitemscontainer: {
|
|
102
|
+
class: 'overflow-hidden w-full'
|
|
103
|
+
},
|
|
104
|
+
thumbnailitems: ({ parent }) => ({
|
|
105
|
+
class: [
|
|
106
|
+
'flex',
|
|
107
|
+
{
|
|
108
|
+
'flex-col h-full': parent.props.thumbnailsPosition === 'right' || parent.props.thumbnailsPosition === 'left'
|
|
109
|
+
}
|
|
110
|
+
]
|
|
111
|
+
}),
|
|
112
|
+
thumbnailitem: ({ parent }) => ({
|
|
113
|
+
class: [
|
|
114
|
+
// Flexbox
|
|
115
|
+
'flex items-center justify-center',
|
|
116
|
+
'grow shrink-0',
|
|
117
|
+
|
|
118
|
+
// Sizing
|
|
119
|
+
{
|
|
120
|
+
'w-full md:w-[25%] lg:w-[20%]': parent.props.thumbnailsPosition === 'top' || parent.props.thumbnailsPosition === 'bottom'
|
|
121
|
+
},
|
|
122
|
+
|
|
123
|
+
// Misc
|
|
124
|
+
'overflow-auto',
|
|
125
|
+
'cursor-pointer',
|
|
126
|
+
'opacity-50',
|
|
127
|
+
|
|
128
|
+
// States
|
|
129
|
+
'hover:opacity-100',
|
|
130
|
+
'hover:transition-opacity',
|
|
131
|
+
'hover:duration-300'
|
|
132
|
+
]
|
|
133
|
+
}),
|
|
134
|
+
nextthumbnailbutton: {
|
|
135
|
+
class: [
|
|
136
|
+
// Positioning
|
|
137
|
+
'self-center relative',
|
|
138
|
+
|
|
139
|
+
// Display & Flexbox
|
|
140
|
+
'flex shrink-0 justify-center items-center overflow-hidden',
|
|
141
|
+
|
|
142
|
+
// Spacing
|
|
143
|
+
'm-2',
|
|
144
|
+
|
|
145
|
+
// Appearance
|
|
146
|
+
'bg-transparent text-white w-8 h-8 rounded-full transition duration-200 ease-in-out',
|
|
147
|
+
|
|
148
|
+
// Hover Effects
|
|
149
|
+
'hover:bg-surface-0/10 hover:text-white',
|
|
150
|
+
|
|
151
|
+
// Focus Effects
|
|
152
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50'
|
|
153
|
+
]
|
|
154
|
+
},
|
|
155
|
+
indicators: ({ parent }) => ({
|
|
156
|
+
class: [
|
|
157
|
+
// flex
|
|
158
|
+
'flex items-center justify-center',
|
|
159
|
+
|
|
160
|
+
// Spacing
|
|
161
|
+
'p-4',
|
|
162
|
+
|
|
163
|
+
// Indicators Position
|
|
164
|
+
{
|
|
165
|
+
'order-2': parent.props.indicatorsPosition == 'bottom',
|
|
166
|
+
'order-1': parent.props.indicatorsPosition == 'top',
|
|
167
|
+
'order-1 flex-col': parent.props.indicatorsPosition == 'left',
|
|
168
|
+
'flex-col order-2': parent.props.indicatorsPosition == 'right'
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
'absolute z-10 bg-black/50': parent.props.showIndicatorsOnItem
|
|
172
|
+
},
|
|
173
|
+
|
|
174
|
+
{
|
|
175
|
+
'bottom-0 left-0 w-full items-start': parent.props.indicatorsPosition == 'bottom' && parent.props.showIndicatorsOnItem,
|
|
176
|
+
'top-0 left-0 w-full items-start': parent.props.indicatorsPosition == 'top' && parent.props.showIndicatorsOnItem,
|
|
177
|
+
'left-0 top-0 h-full items-start': parent.props.indicatorsPosition == 'left' && parent.props.showIndicatorsOnItem,
|
|
178
|
+
'right-0 top-0 h-full items-start': parent.props.indicatorsPosition == 'right' && parent.props.showIndicatorsOnItem
|
|
179
|
+
}
|
|
180
|
+
]
|
|
181
|
+
}),
|
|
182
|
+
indicator: ({ parent }) => ({
|
|
183
|
+
class: [
|
|
184
|
+
{
|
|
185
|
+
'mr-2': parent.props.indicatorsPosition == 'bottom' || parent.props.indicatorsPosition == 'top',
|
|
186
|
+
'mb-2': parent.props.indicatorsPosition == 'left' || parent.props.indicatorsPosition == 'right'
|
|
187
|
+
}
|
|
188
|
+
]
|
|
189
|
+
}),
|
|
190
|
+
indicatorbutton: ({ context }) => ({
|
|
191
|
+
class: [
|
|
192
|
+
// Size
|
|
193
|
+
'w-4 h-4',
|
|
194
|
+
|
|
195
|
+
// Appearance
|
|
196
|
+
'rounded-full transition duration-200',
|
|
197
|
+
|
|
198
|
+
// Focus Effects
|
|
199
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50',
|
|
200
|
+
|
|
201
|
+
// Conditional Appearance: Not Highlighted
|
|
202
|
+
{ 'bg-surface-200 hover:bg-surface-300 dark:bg-surface-700 dark:hover:bg-surface-600': !context.highlighted },
|
|
203
|
+
|
|
204
|
+
// Conditional Appearance: Highlighted
|
|
205
|
+
{ 'bg-primary-500 hover:bg-primary-600': context.highlighted }
|
|
206
|
+
]
|
|
207
|
+
}),
|
|
208
|
+
mask: {
|
|
209
|
+
class: ['fixed top-0 left-0 w-full h-full', 'flex items-center justify-center', 'bg-black/90']
|
|
210
|
+
},
|
|
211
|
+
closebutton: {
|
|
212
|
+
class: [
|
|
213
|
+
// Positioning
|
|
214
|
+
'!absolute top-0 right-0',
|
|
215
|
+
|
|
216
|
+
// Display & Flexbox
|
|
217
|
+
'flex justify-center items-center overflow-hidden',
|
|
218
|
+
|
|
219
|
+
// Spacing
|
|
220
|
+
'm-2',
|
|
221
|
+
|
|
222
|
+
// Appearance
|
|
223
|
+
'text-white bg-transparent w-12 h-12 rounded-full transition duration-200 ease-in-out',
|
|
224
|
+
|
|
225
|
+
// Hover Effect
|
|
226
|
+
'hover:text-white hover:bg-surface-0/10',
|
|
227
|
+
|
|
228
|
+
// Focus Effects
|
|
229
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50'
|
|
230
|
+
]
|
|
231
|
+
},
|
|
232
|
+
closeicon: {
|
|
233
|
+
class: 'w-6 h-6'
|
|
234
|
+
},
|
|
235
|
+
previousitembutton: ({ parent }) => ({
|
|
236
|
+
class: [
|
|
237
|
+
// Display & Flexbox
|
|
238
|
+
'inline-flex justify-center items-center overflow-hidden',
|
|
239
|
+
|
|
240
|
+
// Appearance
|
|
241
|
+
'bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md',
|
|
242
|
+
{
|
|
243
|
+
'opacity-0 group-hover:opacity-100': parent.props.showItemNavigatorsOnHover
|
|
244
|
+
},
|
|
245
|
+
|
|
246
|
+
// Spacing
|
|
247
|
+
'mx-2',
|
|
248
|
+
|
|
249
|
+
// Positioning
|
|
250
|
+
'top-1/2 mt-[-0.5rem] left-0',
|
|
251
|
+
{
|
|
252
|
+
'!absolute': parent.props.showItemNavigators,
|
|
253
|
+
'!fixed': !parent.props.showItemNavigators
|
|
254
|
+
},
|
|
255
|
+
|
|
256
|
+
// Hover Effect
|
|
257
|
+
'hover:bg-surface-0/10 hover:text-white',
|
|
258
|
+
|
|
259
|
+
// Focus Effects
|
|
260
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50'
|
|
261
|
+
]
|
|
262
|
+
}),
|
|
263
|
+
nextitembutton: ({ parent }) => ({
|
|
264
|
+
class: [
|
|
265
|
+
// Display & Flexbox
|
|
266
|
+
'inline-flex justify-center items-center overflow-hidden',
|
|
267
|
+
|
|
268
|
+
// Appearance
|
|
269
|
+
'bg-transparent text-white w-16 h-16 transition duration-200 ease-in-out rounded-md',
|
|
270
|
+
{
|
|
271
|
+
'opacity-0 group-hover:opacity-100': parent.props.showItemNavigatorsOnHover
|
|
272
|
+
},
|
|
273
|
+
|
|
274
|
+
// Spacing
|
|
275
|
+
'mx-2',
|
|
276
|
+
|
|
277
|
+
// Positioning
|
|
278
|
+
'top-1/2 mt-[-0.5rem] right-0',
|
|
279
|
+
{
|
|
280
|
+
'!absolute': parent.props.showItemNavigators,
|
|
281
|
+
'!fixed': !parent.props.showItemNavigators
|
|
282
|
+
},
|
|
283
|
+
|
|
284
|
+
// Hover Effect
|
|
285
|
+
'hover:bg-surface-0/10 hover:text-white',
|
|
286
|
+
|
|
287
|
+
// Focus Effects
|
|
288
|
+
'focus:outline-none focus:outline-offset-0 focus:ring focus:ring-primary-400/50 dark:focus:ring-primary-300/50'
|
|
289
|
+
]
|
|
290
|
+
}),
|
|
291
|
+
caption: {
|
|
292
|
+
class: [
|
|
293
|
+
// Positioning
|
|
294
|
+
'absolute bottom-0 left-0 w-full',
|
|
295
|
+
|
|
296
|
+
// Appearance
|
|
297
|
+
'bg-black/50 text-white p-4'
|
|
298
|
+
]
|
|
299
|
+
},
|
|
300
|
+
transition: {
|
|
301
|
+
enterFromClass: 'opacity-0 scale-75',
|
|
302
|
+
enterActiveClass: 'transition-all duration-150 ease-in-out',
|
|
303
|
+
leaveActiveClass: 'transition-all duration-150 ease-in',
|
|
304
|
+
leaveToClass: 'opacity-0 scale-75'
|
|
305
|
+
}
|
|
306
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
css: `
|
|
3
|
+
*[data-pd-ripple="true"]{
|
|
4
|
+
overflow: hidden;
|
|
5
|
+
position: relative;
|
|
6
|
+
}
|
|
7
|
+
span[data-p-ink-active="true"]{
|
|
8
|
+
animation: ripple 0.4s linear;
|
|
9
|
+
}
|
|
10
|
+
@keyframes ripple {
|
|
11
|
+
100% {
|
|
12
|
+
opacity: 0;
|
|
13
|
+
transform: scale(2.5);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.progress-spinner-circle {
|
|
18
|
+
stroke-dasharray: 89, 200;
|
|
19
|
+
stroke-dashoffset: 0;
|
|
20
|
+
animation: p-progress-spinner-dash 1.5s ease-in-out infinite, p-progress-spinner-color 6s ease-in-out infinite;
|
|
21
|
+
stroke-linecap: round;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
@keyframes p-progress-spinner-dash{
|
|
25
|
+
0% {
|
|
26
|
+
stroke-dasharray: 1, 200;
|
|
27
|
+
stroke-dashoffset: 0;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
50% {
|
|
31
|
+
stroke-dasharray: 89, 200;
|
|
32
|
+
stroke-dashoffset: -35px;
|
|
33
|
+
}
|
|
34
|
+
100% {
|
|
35
|
+
stroke-dasharray: 89, 200;
|
|
36
|
+
stroke-dashoffset: -124px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
@keyframes p-progress-spinner-color {
|
|
40
|
+
100%, 0% {
|
|
41
|
+
stroke: #ff5757;
|
|
42
|
+
}
|
|
43
|
+
40% {
|
|
44
|
+
stroke: #696cff;
|
|
45
|
+
}
|
|
46
|
+
66% {
|
|
47
|
+
stroke: #1ea97c;
|
|
48
|
+
}
|
|
49
|
+
80%, 90% {
|
|
50
|
+
stroke: #cc8925;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.progressbar-value-animate::after {
|
|
55
|
+
will-change: left, right;
|
|
56
|
+
animation: p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
|
|
57
|
+
}
|
|
58
|
+
.progressbar-value-animate::before {
|
|
59
|
+
will-change: left, right;
|
|
60
|
+
animation: p-progressbar-indeterminate-anim 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
61
|
+
}
|
|
62
|
+
@keyframes p-progressbar-indeterminate-anim {
|
|
63
|
+
0% {
|
|
64
|
+
left: -35%;
|
|
65
|
+
right: 100%;
|
|
66
|
+
}
|
|
67
|
+
60% {
|
|
68
|
+
left: 100%;
|
|
69
|
+
right: -90%;
|
|
70
|
+
}
|
|
71
|
+
100% {
|
|
72
|
+
left: 100%;
|
|
73
|
+
right: -90%;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.p-fadein {
|
|
78
|
+
animation: p-fadein 250ms linear;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
@keyframes p-fadein {
|
|
82
|
+
0% {
|
|
83
|
+
opacity: 0;
|
|
84
|
+
}
|
|
85
|
+
100% {
|
|
86
|
+
opacity: 1;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
`
|
|
90
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}): {
|
|
5
|
+
class: (string | {
|
|
6
|
+
'[&>*:first-child]:right-3': boolean;
|
|
7
|
+
'[&>*:first-child]:left-3': boolean;
|
|
8
|
+
'[&>*:last-child]:pr-10'?: undefined;
|
|
9
|
+
'[&>*:last-child]:pl-10'?: undefined;
|
|
10
|
+
} | {
|
|
11
|
+
'[&>*:last-child]:pr-10': boolean;
|
|
12
|
+
'[&>*:last-child]:pl-10': boolean;
|
|
13
|
+
'[&>*:first-child]:right-3'?: undefined;
|
|
14
|
+
'[&>*:first-child]:left-3'?: undefined;
|
|
15
|
+
})[];
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
root: ({ props }) => ({
|
|
3
|
+
class: [
|
|
4
|
+
'relative',
|
|
5
|
+
'[&>input]:w-full',
|
|
6
|
+
|
|
7
|
+
'[&>*:first-child]:absolute',
|
|
8
|
+
'[&>*:first-child]:top-1/2',
|
|
9
|
+
'[&>*:first-child]:-mt-2',
|
|
10
|
+
'[&>*:first-child]:leading-none',
|
|
11
|
+
'[&>*:first-child]:text-surface-900/60 dark:[&>*:first-child]:text-white/60',
|
|
12
|
+
{
|
|
13
|
+
'[&>*:first-child]:right-3': props.iconPosition === 'right',
|
|
14
|
+
'[&>*:first-child]:left-3': props.iconPosition === 'left'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
'[&>*:last-child]:pr-10': props.iconPosition === 'right',
|
|
18
|
+
'[&>*:last-child]:pl-10': props.iconPosition === 'left'
|
|
19
|
+
}
|
|
20
|
+
]
|
|
21
|
+
})
|
|
22
|
+
};
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace root {
|
|
3
|
+
let _class: string;
|
|
4
|
+
export { _class as class };
|
|
5
|
+
}
|
|
6
|
+
namespace button {
|
|
7
|
+
let _class_1: string[];
|
|
8
|
+
export { _class_1 as class };
|
|
9
|
+
}
|
|
10
|
+
namespace mask {
|
|
11
|
+
let _class_2: string[];
|
|
12
|
+
export { _class_2 as class };
|
|
13
|
+
}
|
|
14
|
+
namespace toolbar {
|
|
15
|
+
let _class_3: string[];
|
|
16
|
+
export { _class_3 as class };
|
|
17
|
+
}
|
|
18
|
+
namespace rotaterightbutton {
|
|
19
|
+
let _class_4: string[];
|
|
20
|
+
export { _class_4 as class };
|
|
21
|
+
}
|
|
22
|
+
namespace rotaterighticon {
|
|
23
|
+
let _class_5: string;
|
|
24
|
+
export { _class_5 as class };
|
|
25
|
+
}
|
|
26
|
+
namespace rotateleftbutton {
|
|
27
|
+
let _class_6: string[];
|
|
28
|
+
export { _class_6 as class };
|
|
29
|
+
}
|
|
30
|
+
namespace rotatelefticon {
|
|
31
|
+
let _class_7: string;
|
|
32
|
+
export { _class_7 as class };
|
|
33
|
+
}
|
|
34
|
+
namespace zoomoutbutton {
|
|
35
|
+
let _class_8: string[];
|
|
36
|
+
export { _class_8 as class };
|
|
37
|
+
}
|
|
38
|
+
namespace zoomouticon {
|
|
39
|
+
let _class_9: string;
|
|
40
|
+
export { _class_9 as class };
|
|
41
|
+
}
|
|
42
|
+
namespace zoominbutton {
|
|
43
|
+
let _class_10: string[];
|
|
44
|
+
export { _class_10 as class };
|
|
45
|
+
}
|
|
46
|
+
namespace zoominicon {
|
|
47
|
+
let _class_11: string;
|
|
48
|
+
export { _class_11 as class };
|
|
49
|
+
}
|
|
50
|
+
namespace closebutton {
|
|
51
|
+
let _class_12: string[];
|
|
52
|
+
export { _class_12 as class };
|
|
53
|
+
}
|
|
54
|
+
namespace closeicon {
|
|
55
|
+
let _class_13: string;
|
|
56
|
+
export { _class_13 as class };
|
|
57
|
+
}
|
|
58
|
+
namespace transition {
|
|
59
|
+
let enterFromClass: string;
|
|
60
|
+
let enterActiveClass: string;
|
|
61
|
+
let leaveActiveClass: string;
|
|
62
|
+
let leaveToClass: string;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
export default _default;
|