@fewangsit/wangsvue-presets 1.0.80
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/index.d.ts +1 -0
- package/index.js +5 -0
- package/package.json +13 -0
- package/wangsvue/accordion/index.d.ts +37 -0
- package/wangsvue/accordion/index.js +70 -0
- package/wangsvue/autocomplete/index.d.ts +188 -0
- package/wangsvue/autocomplete/index.js +247 -0
- package/wangsvue/avatar/index.d.ts +85 -0
- package/wangsvue/avatar/index.js +44 -0
- package/wangsvue/avatargroup/index.d.ts +8 -0
- package/wangsvue/avatargroup/index.js +9 -0
- package/wangsvue/badge/index.d.ts +47 -0
- package/wangsvue/badge/index.js +60 -0
- package/wangsvue/badgedirective/index.d.ts +50 -0
- package/wangsvue/badgedirective/index.js +49 -0
- package/wangsvue/badgegroup/index.d.ts +45 -0
- package/wangsvue/badgegroup/index.js +29 -0
- package/wangsvue/breadcrumb/index.d.ts +25 -0
- package/wangsvue/breadcrumb/index.js +31 -0
- package/wangsvue/button/index.d.ts +46 -0
- package/wangsvue/button/index.js +423 -0
- package/wangsvue/buttonbulkaction/index.d.ts +32 -0
- package/wangsvue/buttonbulkaction/index.js +35 -0
- package/wangsvue/buttondownload/index.d.ts +12 -0
- package/wangsvue/buttondownload/index.js +13 -0
- package/wangsvue/buttonfilter/index.d.ts +12 -0
- package/wangsvue/buttonfilter/index.js +13 -0
- package/wangsvue/buttonradio/index.d.ts +58 -0
- package/wangsvue/buttonradio/index.js +109 -0
- package/wangsvue/buttonsearch/index.d.ts +65 -0
- package/wangsvue/buttonsearch/index.js +62 -0
- package/wangsvue/calendar/index.d.ts +267 -0
- package/wangsvue/calendar/index.js +610 -0
- package/wangsvue/card/index.d.ts +31 -0
- package/wangsvue/card/index.js +32 -0
- package/wangsvue/carousel/index.d.ts +57 -0
- package/wangsvue/carousel/index.js +129 -0
- package/wangsvue/cascadeselect/index.d.ts +82 -0
- package/wangsvue/cascadeselect/index.js +191 -0
- package/wangsvue/changelog/index.d.ts +32 -0
- package/wangsvue/changelog/index.js +31 -0
- package/wangsvue/checkbox/index.d.ts +81 -0
- package/wangsvue/checkbox/index.js +107 -0
- package/wangsvue/chip/index.d.ts +23 -0
- package/wangsvue/chip/index.js +40 -0
- package/wangsvue/chips/index.d.ts +38 -0
- package/wangsvue/chips/index.js +98 -0
- package/wangsvue/colorpicker/index.d.ts +51 -0
- package/wangsvue/colorpicker/index.js +118 -0
- package/wangsvue/colors.config.json +77 -0
- package/wangsvue/confirmpopup/index.d.ts +39 -0
- package/wangsvue/confirmpopup/index.js +104 -0
- package/wangsvue/contextmenu/index.d.ts +63 -0
- package/wangsvue/contextmenu/index.js +113 -0
- package/wangsvue/datatable/index.d.ts +286 -0
- package/wangsvue/datatable/index.js +253 -0
- package/wangsvue/dataview/index.d.ts +15 -0
- package/wangsvue/dataview/index.js +36 -0
- package/wangsvue/dataviewlayoutoptions/index.d.ts +13 -0
- package/wangsvue/dataviewlayoutoptions/index.js +58 -0
- package/wangsvue/dialog/index.d.ts +87 -0
- package/wangsvue/dialog/index.js +220 -0
- package/wangsvue/dialogconfirm/index.d.ts +42 -0
- package/wangsvue/dialogconfirm/index.js +45 -0
- package/wangsvue/dialogform/index.d.ts +71 -0
- package/wangsvue/dialogform/index.js +68 -0
- package/wangsvue/divider/index.d.ts +192 -0
- package/wangsvue/divider/index.js +64 -0
- package/wangsvue/dock/index.d.ts +51 -0
- package/wangsvue/dock/index.js +92 -0
- package/wangsvue/dropdown/index.d.ts +136 -0
- package/wangsvue/dropdown/index.js +207 -0
- package/wangsvue/fieldset/index.d.ts +94 -0
- package/wangsvue/fieldset/index.js +87 -0
- package/wangsvue/fileupload/index.d.ts +29 -0
- package/wangsvue/fileupload/index.js +31 -0
- package/wangsvue/form/index.d.ts +40 -0
- package/wangsvue/form/index.js +44 -0
- package/wangsvue/global.d.ts +8 -0
- package/wangsvue/global.js +14 -0
- package/wangsvue/image/index.d.ts +88 -0
- package/wangsvue/image/index.js +136 -0
- package/wangsvue/index.d.ts +190 -0
- package/wangsvue/index.js +201 -0
- package/wangsvue/index.system.js +76 -0
- package/wangsvue/inlinemessage/index.d.ts +20 -0
- package/wangsvue/inlinemessage/index.js +30 -0
- package/wangsvue/inputbadge/index.d.ts +57 -0
- package/wangsvue/inputbadge/index.js +57 -0
- package/wangsvue/inputcurrency/index.d.ts +27 -0
- package/wangsvue/inputcurrency/index.js +22 -0
- package/wangsvue/inputgroup/index.d.ts +9 -0
- package/wangsvue/inputgroup/index.js +37 -0
- package/wangsvue/inputgroupaddon/index.d.ts +17 -0
- package/wangsvue/inputgroupaddon/index.js +34 -0
- package/wangsvue/inputmask/index.d.ts +11 -0
- package/wangsvue/inputmask/index.js +29 -0
- package/wangsvue/inputnumber/index.d.ts +46 -0
- package/wangsvue/inputnumber/index.js +58 -0
- package/wangsvue/inputotp/index.d.ts +137 -0
- package/wangsvue/inputotp/index.js +63 -0
- package/wangsvue/inputphonenumber/index.d.ts +37 -0
- package/wangsvue/inputphonenumber/index.js +34 -0
- package/wangsvue/inputswitch/index.d.ts +67 -0
- package/wangsvue/inputswitch/index.js +100 -0
- package/wangsvue/inputtext/index.d.ts +18 -0
- package/wangsvue/inputtext/index.js +28 -0
- package/wangsvue/knob/index.d.ts +22 -0
- package/wangsvue/knob/index.js +45 -0
- package/wangsvue/listbox/index.d.ts +79 -0
- package/wangsvue/listbox/index.js +138 -0
- package/wangsvue/megamenu/index.d.ts +105 -0
- package/wangsvue/megamenu/index.js +202 -0
- package/wangsvue/menu/index.d.ts +49 -0
- package/wangsvue/menu/index.js +110 -0
- package/wangsvue/menubar/index.d.ts +85 -0
- package/wangsvue/menubar/index.js +172 -0
- package/wangsvue/message/index.d.ts +41 -0
- package/wangsvue/message/index.js +85 -0
- package/wangsvue/multiselect/index.d.ts +243 -0
- package/wangsvue/multiselect/index.js +328 -0
- package/wangsvue/orderlist/index.d.ts +99 -0
- package/wangsvue/orderlist/index.js +245 -0
- package/wangsvue/organizationchart/index.d.ts +71 -0
- package/wangsvue/organizationchart/index.js +129 -0
- package/wangsvue/overlaypanel/index.d.ts +17 -0
- package/wangsvue/overlaypanel/index.js +34 -0
- package/wangsvue/paginator/index.d.ts +210 -0
- package/wangsvue/paginator/index.js +474 -0
- package/wangsvue/panel/index.d.ts +43 -0
- package/wangsvue/panel/index.js +85 -0
- package/wangsvue/panelmenu/index.d.ts +76 -0
- package/wangsvue/panelmenu/index.js +124 -0
- package/wangsvue/password/index.d.ts +45 -0
- package/wangsvue/password/index.js +96 -0
- package/wangsvue/picklist/index.d.ts +245 -0
- package/wangsvue/picklist/index.js +613 -0
- package/wangsvue/progressbar/index.d.ts +117 -0
- package/wangsvue/progressbar/index.js +102 -0
- package/wangsvue/rating/index.d.ts +47 -0
- package/wangsvue/rating/index.js +88 -0
- package/wangsvue/ripple/index.d.ts +8 -0
- package/wangsvue/ripple/index.js +8 -0
- package/wangsvue/scrollpanel/index.d.ts +19 -0
- package/wangsvue/scrollpanel/index.js +62 -0
- package/wangsvue/scrolltop/index.d.ts +50 -0
- package/wangsvue/scrolltop/index.js +42 -0
- package/wangsvue/selectbutton/index.d.ts +35 -0
- package/wangsvue/selectbutton/index.js +60 -0
- package/wangsvue/sidebar/index.d.ts +66 -0
- package/wangsvue/sidebar/index.js +145 -0
- package/wangsvue/skeleton/index.d.ts +16 -0
- package/wangsvue/skeleton/index.js +22 -0
- package/wangsvue/slider/index.d.ts +55 -0
- package/wangsvue/slider/index.js +126 -0
- package/wangsvue/splitbutton/index.d.ts +6690 -0
- package/wangsvue/splitbutton/index.js +786 -0
- package/wangsvue/steps/index.d.ts +108 -0
- package/wangsvue/steps/index.js +119 -0
- package/wangsvue/style.css +5823 -0
- package/wangsvue/tabmenu/index.d.ts +57 -0
- package/wangsvue/tabmenu/index.js +75 -0
- package/wangsvue/tabview/index.d.ts +67 -0
- package/wangsvue/tabview/index.js +148 -0
- package/wangsvue/tag/index.d.ts +32 -0
- package/wangsvue/tag/index.js +37 -0
- package/wangsvue/terminal/index.d.ts +27 -0
- package/wangsvue/terminal/index.js +55 -0
- package/wangsvue/textarea/index.d.ts +12 -0
- package/wangsvue/textarea/index.js +51 -0
- package/wangsvue/tieredmenu/index.d.ts +56 -0
- package/wangsvue/tieredmenu/index.js +108 -0
- package/wangsvue/timeline/index.d.ts +53 -0
- package/wangsvue/timeline/index.js +83 -0
- package/wangsvue/toast/index.d.ts +61 -0
- package/wangsvue/toast/index.js +95 -0
- package/wangsvue/togglebutton/index.d.ts +42 -0
- package/wangsvue/togglebutton/index.js +77 -0
- package/wangsvue/toolbar/index.d.ts +19 -0
- package/wangsvue/toolbar/index.js +29 -0
- package/wangsvue/tooltip/index.d.ts +22 -0
- package/wangsvue/tooltip/index.js +42 -0
- package/wangsvue/tree/index.d.ts +117 -0
- package/wangsvue/tree/index.js +256 -0
- package/wangsvue/treeselect/index.d.ts +158 -0
- package/wangsvue/treeselect/index.js +338 -0
- package/wangsvue/tristatecheckbox/index.d.ts +49 -0
- package/wangsvue/tristatecheckbox/index.js +106 -0
- package/wangsvue/validatormessage/index.d.ts +8 -0
- package/wangsvue/validatormessage/index.js +9 -0
- package/wangsvue/workcalendar/index.d.ts +27 -0
- package/wangsvue/workcalendar/index.js +36 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as wangsvue } from './wangsvue';
|
package/index.js
ADDED
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@fewangsit/wangsvue-presets",
|
|
3
|
+
"version": "1.0.80",
|
|
4
|
+
"author": "Wangsit FE Developer",
|
|
5
|
+
"description": "Wangsit VueJS Component Library Presets",
|
|
6
|
+
"main": "index.js",
|
|
7
|
+
"repository": "https://github.com/fewangsit/wangsvue",
|
|
8
|
+
"scripts": {
|
|
9
|
+
"dev": "sh dev.sh",
|
|
10
|
+
"build": "sh build.sh",
|
|
11
|
+
"release": "sh build.sh && sh release.sh"
|
|
12
|
+
}
|
|
13
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
namespace accordiontab {
|
|
3
|
+
function header({ props }: {
|
|
4
|
+
props: any;
|
|
5
|
+
}): {
|
|
6
|
+
class: (string | {
|
|
7
|
+
'select-none pointer-events-none cursor-default opacity-60': any;
|
|
8
|
+
})[];
|
|
9
|
+
};
|
|
10
|
+
function headerAction({ context }: {
|
|
11
|
+
context: any;
|
|
12
|
+
}): {
|
|
13
|
+
class: string[];
|
|
14
|
+
};
|
|
15
|
+
namespace headerIcon {
|
|
16
|
+
let _class: string;
|
|
17
|
+
export { _class as class };
|
|
18
|
+
}
|
|
19
|
+
namespace headerTitle {
|
|
20
|
+
let _class_1: string;
|
|
21
|
+
export { _class_1 as class };
|
|
22
|
+
}
|
|
23
|
+
namespace content {
|
|
24
|
+
let _class_2: string[];
|
|
25
|
+
export { _class_2 as class };
|
|
26
|
+
}
|
|
27
|
+
namespace transition {
|
|
28
|
+
let enterFromClass: string;
|
|
29
|
+
let enterActiveClass: string;
|
|
30
|
+
let enterToClass: string;
|
|
31
|
+
let leaveFromClass: string;
|
|
32
|
+
let leaveActiveClass: string;
|
|
33
|
+
let leaveToClass: string;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
export default _default;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
accordiontab: {
|
|
5
|
+
header: function (_a) {
|
|
6
|
+
var props = _a.props;
|
|
7
|
+
return ({
|
|
8
|
+
class: [
|
|
9
|
+
// Sizing
|
|
10
|
+
'pt-6 pb-0',
|
|
11
|
+
'mt-6',
|
|
12
|
+
// Shape
|
|
13
|
+
'border-x-0 border-b-0',
|
|
14
|
+
// Color
|
|
15
|
+
'border border-surface-200',
|
|
16
|
+
// State
|
|
17
|
+
{
|
|
18
|
+
'select-none pointer-events-none cursor-default opacity-60': props === null || props === void 0 ? void 0 : props.disabled,
|
|
19
|
+
},
|
|
20
|
+
],
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
headerAction: function (_a) {
|
|
24
|
+
var context = _a.context;
|
|
25
|
+
return ({
|
|
26
|
+
class: [
|
|
27
|
+
//Font
|
|
28
|
+
'font-semibold',
|
|
29
|
+
'leading-7',
|
|
30
|
+
// Alignments
|
|
31
|
+
'flex items-center justify-between flex-row-reverse',
|
|
32
|
+
'relative',
|
|
33
|
+
// Shape
|
|
34
|
+
'rounded-md',
|
|
35
|
+
// Color
|
|
36
|
+
'bg-transparent',
|
|
37
|
+
'text-surface-900',
|
|
38
|
+
// States
|
|
39
|
+
'focus:outline-none focus:outline-offset-0 focus-visible:ring-2 focus-visible:ring-primary-600 ring-inset', // Focus
|
|
40
|
+
// Misc
|
|
41
|
+
'cursor-pointer no-underline select-none',
|
|
42
|
+
],
|
|
43
|
+
});
|
|
44
|
+
},
|
|
45
|
+
headerIcon: {
|
|
46
|
+
class: 'inline-block ml-2',
|
|
47
|
+
},
|
|
48
|
+
headerTitle: {
|
|
49
|
+
class: 'leading-7',
|
|
50
|
+
},
|
|
51
|
+
content: {
|
|
52
|
+
class: [
|
|
53
|
+
// Font
|
|
54
|
+
'leading-7',
|
|
55
|
+
// Spacing
|
|
56
|
+
'pr-12 pt-2',
|
|
57
|
+
// Color
|
|
58
|
+
'text-surface-600',
|
|
59
|
+
],
|
|
60
|
+
},
|
|
61
|
+
transition: {
|
|
62
|
+
enterFromClass: 'max-h-0',
|
|
63
|
+
enterActiveClass: 'overflow-hidden transition-[max-height] duration-1000 ease-[cubic-bezier(0.42,0,0.58,1)]',
|
|
64
|
+
enterToClass: 'max-h-[1000px]',
|
|
65
|
+
leaveFromClass: 'max-h-[1000px]',
|
|
66
|
+
leaveActiveClass: 'overflow-hidden transition-[max-height] duration-[450ms] ease-[cubic-bezier(0,1,0,1)]',
|
|
67
|
+
leaveToClass: 'max-h-0',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
};
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ props }: {
|
|
3
|
+
props: any;
|
|
4
|
+
}): {
|
|
5
|
+
class: (string | {
|
|
6
|
+
'w-full': any;
|
|
7
|
+
'opacity-60 select-none pointer-events-none cursor-default'?: undefined;
|
|
8
|
+
} | {
|
|
9
|
+
'opacity-60 select-none pointer-events-none cursor-default': any;
|
|
10
|
+
'w-full'?: undefined;
|
|
11
|
+
})[];
|
|
12
|
+
};
|
|
13
|
+
function container({ props, state }: {
|
|
14
|
+
props: any;
|
|
15
|
+
state: any;
|
|
16
|
+
}): {
|
|
17
|
+
class: (string | {
|
|
18
|
+
'px-3 py-1.5': boolean;
|
|
19
|
+
'px-3 py-1': any;
|
|
20
|
+
'ring-1 ring-inset ring-surface-300'?: undefined;
|
|
21
|
+
'ring-2 ring-primary-500'?: undefined;
|
|
22
|
+
} | {
|
|
23
|
+
'ring-1 ring-inset ring-surface-300': boolean;
|
|
24
|
+
'ring-2 ring-primary-500': any;
|
|
25
|
+
'px-3 py-1.5'?: undefined;
|
|
26
|
+
'px-3 py-1'?: undefined;
|
|
27
|
+
})[];
|
|
28
|
+
};
|
|
29
|
+
function inputtoken({ props }: {
|
|
30
|
+
props: any;
|
|
31
|
+
}): {
|
|
32
|
+
class: (string | {
|
|
33
|
+
'py-1.5 px-0': boolean;
|
|
34
|
+
'p-0.5': any;
|
|
35
|
+
})[];
|
|
36
|
+
};
|
|
37
|
+
function input({ props }: {
|
|
38
|
+
props: any;
|
|
39
|
+
}): {
|
|
40
|
+
class: (string | {
|
|
41
|
+
'rounded-tr-none rounded-br-none': any;
|
|
42
|
+
'outline-none shadow-none rounded-none'?: undefined;
|
|
43
|
+
'w-full'?: undefined;
|
|
44
|
+
'py-1.5 px-3'?: undefined;
|
|
45
|
+
'p-0'?: undefined;
|
|
46
|
+
'bg-surface-0'?: undefined;
|
|
47
|
+
'border border-surface-300'?: undefined;
|
|
48
|
+
'border-0 bg-transparent'?: undefined;
|
|
49
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-inset focus:ring-2 focus:ring-primary-500'?: undefined;
|
|
50
|
+
} | {
|
|
51
|
+
'outline-none shadow-none rounded-none': any;
|
|
52
|
+
'rounded-tr-none rounded-br-none'?: undefined;
|
|
53
|
+
'w-full'?: undefined;
|
|
54
|
+
'py-1.5 px-3'?: undefined;
|
|
55
|
+
'p-0'?: undefined;
|
|
56
|
+
'bg-surface-0'?: undefined;
|
|
57
|
+
'border border-surface-300'?: undefined;
|
|
58
|
+
'border-0 bg-transparent'?: undefined;
|
|
59
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-inset focus:ring-2 focus:ring-primary-500'?: undefined;
|
|
60
|
+
} | {
|
|
61
|
+
'w-full': any;
|
|
62
|
+
'rounded-tr-none rounded-br-none'?: undefined;
|
|
63
|
+
'outline-none shadow-none rounded-none'?: undefined;
|
|
64
|
+
'py-1.5 px-3'?: undefined;
|
|
65
|
+
'p-0'?: undefined;
|
|
66
|
+
'bg-surface-0'?: undefined;
|
|
67
|
+
'border border-surface-300'?: undefined;
|
|
68
|
+
'border-0 bg-transparent'?: undefined;
|
|
69
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-inset focus:ring-2 focus:ring-primary-500'?: undefined;
|
|
70
|
+
} | {
|
|
71
|
+
'py-1.5 px-3': boolean;
|
|
72
|
+
'p-0': any;
|
|
73
|
+
'rounded-tr-none rounded-br-none'?: undefined;
|
|
74
|
+
'outline-none shadow-none rounded-none'?: undefined;
|
|
75
|
+
'w-full'?: undefined;
|
|
76
|
+
'bg-surface-0'?: undefined;
|
|
77
|
+
'border border-surface-300'?: undefined;
|
|
78
|
+
'border-0 bg-transparent'?: undefined;
|
|
79
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-inset focus:ring-2 focus:ring-primary-500'?: undefined;
|
|
80
|
+
} | {
|
|
81
|
+
'bg-surface-0': boolean;
|
|
82
|
+
'border border-surface-300': boolean;
|
|
83
|
+
'border-0 bg-transparent': any;
|
|
84
|
+
'rounded-tr-none rounded-br-none'?: undefined;
|
|
85
|
+
'outline-none shadow-none rounded-none'?: undefined;
|
|
86
|
+
'w-full'?: undefined;
|
|
87
|
+
'py-1.5 px-3'?: undefined;
|
|
88
|
+
'p-0'?: undefined;
|
|
89
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-inset focus:ring-2 focus:ring-primary-500'?: undefined;
|
|
90
|
+
} | {
|
|
91
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-inset focus:ring-2 focus:ring-primary-500': boolean;
|
|
92
|
+
'rounded-tr-none rounded-br-none'?: undefined;
|
|
93
|
+
'outline-none shadow-none rounded-none'?: undefined;
|
|
94
|
+
'w-full'?: undefined;
|
|
95
|
+
'py-1.5 px-3'?: undefined;
|
|
96
|
+
'p-0'?: undefined;
|
|
97
|
+
'bg-surface-0'?: undefined;
|
|
98
|
+
'border border-surface-300'?: undefined;
|
|
99
|
+
'border-0 bg-transparent'?: undefined;
|
|
100
|
+
})[];
|
|
101
|
+
};
|
|
102
|
+
namespace token {
|
|
103
|
+
let _class: string[];
|
|
104
|
+
export { _class as class };
|
|
105
|
+
}
|
|
106
|
+
namespace label {
|
|
107
|
+
let _class_1: string;
|
|
108
|
+
export { _class_1 as class };
|
|
109
|
+
}
|
|
110
|
+
namespace removeTokenIcon {
|
|
111
|
+
let _class_2: string[];
|
|
112
|
+
export { _class_2 as class };
|
|
113
|
+
}
|
|
114
|
+
namespace dropdownbutton {
|
|
115
|
+
export namespace root_1 {
|
|
116
|
+
let _class_3: string[];
|
|
117
|
+
export { _class_3 as class };
|
|
118
|
+
}
|
|
119
|
+
export { root_1 as root };
|
|
120
|
+
}
|
|
121
|
+
namespace loadingicon {
|
|
122
|
+
let _class_4: string[];
|
|
123
|
+
export { _class_4 as class };
|
|
124
|
+
}
|
|
125
|
+
namespace panel {
|
|
126
|
+
let _class_5: string[];
|
|
127
|
+
export { _class_5 as class };
|
|
128
|
+
}
|
|
129
|
+
namespace list {
|
|
130
|
+
let _class_6: string;
|
|
131
|
+
export { _class_6 as class };
|
|
132
|
+
}
|
|
133
|
+
function item({ context }: {
|
|
134
|
+
context: any;
|
|
135
|
+
}): {
|
|
136
|
+
class: (string | {
|
|
137
|
+
'font-normal': boolean;
|
|
138
|
+
'font-bold': any;
|
|
139
|
+
'text-surface-700/80'?: undefined;
|
|
140
|
+
'bg-surface-200 text-surface-700/80'?: undefined;
|
|
141
|
+
'bg-primary-500 text-white'?: undefined;
|
|
142
|
+
'bg-transparent text-surface-700/80'?: undefined;
|
|
143
|
+
} | {
|
|
144
|
+
'text-surface-700/80': boolean;
|
|
145
|
+
'font-normal'?: undefined;
|
|
146
|
+
'font-bold'?: undefined;
|
|
147
|
+
'bg-surface-200 text-surface-700/80'?: undefined;
|
|
148
|
+
'bg-primary-500 text-white'?: undefined;
|
|
149
|
+
'bg-transparent text-surface-700/80'?: undefined;
|
|
150
|
+
} | {
|
|
151
|
+
'bg-surface-200 text-surface-700/80': boolean;
|
|
152
|
+
'font-normal'?: undefined;
|
|
153
|
+
'font-bold'?: undefined;
|
|
154
|
+
'text-surface-700/80'?: undefined;
|
|
155
|
+
'bg-primary-500 text-white'?: undefined;
|
|
156
|
+
'bg-transparent text-surface-700/80'?: undefined;
|
|
157
|
+
} | {
|
|
158
|
+
'bg-primary-500 text-white': any;
|
|
159
|
+
'font-normal'?: undefined;
|
|
160
|
+
'font-bold'?: undefined;
|
|
161
|
+
'text-surface-700/80'?: undefined;
|
|
162
|
+
'bg-surface-200 text-surface-700/80'?: undefined;
|
|
163
|
+
'bg-transparent text-surface-700/80'?: undefined;
|
|
164
|
+
} | {
|
|
165
|
+
'bg-transparent text-surface-700/80': any;
|
|
166
|
+
'font-normal'?: undefined;
|
|
167
|
+
'font-bold'?: undefined;
|
|
168
|
+
'text-surface-700/80'?: undefined;
|
|
169
|
+
'bg-surface-200 text-surface-700/80'?: undefined;
|
|
170
|
+
'bg-primary-500 text-white'?: undefined;
|
|
171
|
+
})[];
|
|
172
|
+
};
|
|
173
|
+
namespace itemgroup {
|
|
174
|
+
let _class_7: string[];
|
|
175
|
+
export { _class_7 as class };
|
|
176
|
+
}
|
|
177
|
+
namespace emptymessage {
|
|
178
|
+
let _class_8: string[];
|
|
179
|
+
export { _class_8 as class };
|
|
180
|
+
}
|
|
181
|
+
namespace transition {
|
|
182
|
+
let enterFromClass: string;
|
|
183
|
+
let enterActiveClass: string;
|
|
184
|
+
let leaveActiveClass: string;
|
|
185
|
+
let leaveToClass: string;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
export default _default;
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
root: function (_a) {
|
|
5
|
+
var props = _a.props;
|
|
6
|
+
return ({
|
|
7
|
+
class: [
|
|
8
|
+
'relative',
|
|
9
|
+
// Flex
|
|
10
|
+
'inline-flex',
|
|
11
|
+
// Size
|
|
12
|
+
{ 'w-full': props.multiple },
|
|
13
|
+
// Color
|
|
14
|
+
'text-surface-900',
|
|
15
|
+
//States
|
|
16
|
+
{
|
|
17
|
+
'opacity-60 select-none pointer-events-none cursor-default': props.disabled,
|
|
18
|
+
},
|
|
19
|
+
],
|
|
20
|
+
});
|
|
21
|
+
},
|
|
22
|
+
container: function (_a) {
|
|
23
|
+
var props = _a.props, state = _a.state;
|
|
24
|
+
return ({
|
|
25
|
+
class: [
|
|
26
|
+
// Font
|
|
27
|
+
'font-sans sm:text-sm leading-none',
|
|
28
|
+
// Flex
|
|
29
|
+
'flex items-center flex-wrap',
|
|
30
|
+
'gap-1',
|
|
31
|
+
// Spacing
|
|
32
|
+
'm-0 list-none',
|
|
33
|
+
'px-3 py-1',
|
|
34
|
+
{ 'px-3 py-1.5': !props.multiple, 'px-3 py-1': props.multiple },
|
|
35
|
+
// Size
|
|
36
|
+
'w-full',
|
|
37
|
+
// Shape
|
|
38
|
+
'appearance-none rounded-md',
|
|
39
|
+
// Color
|
|
40
|
+
'text-surface-900',
|
|
41
|
+
'bg-surface-0',
|
|
42
|
+
'placeholder:text-surface-400',
|
|
43
|
+
'shadow-sm',
|
|
44
|
+
// States
|
|
45
|
+
'focus:outline-none focus:outline-offset-0',
|
|
46
|
+
{
|
|
47
|
+
'ring-1 ring-inset ring-surface-300': !state.focused,
|
|
48
|
+
'ring-2 ring-primary-500': state.focused,
|
|
49
|
+
},
|
|
50
|
+
// Transition
|
|
51
|
+
'transition duration-200 ease-in-out',
|
|
52
|
+
// Misc
|
|
53
|
+
'cursor-text overflow-hidden',
|
|
54
|
+
],
|
|
55
|
+
});
|
|
56
|
+
},
|
|
57
|
+
inputtoken: function (_a) {
|
|
58
|
+
var props = _a.props;
|
|
59
|
+
return ({
|
|
60
|
+
class: [
|
|
61
|
+
{ 'py-1.5 px-0': !props.multiple, 'p-0.5': props.multiple },
|
|
62
|
+
,
|
|
63
|
+
'inline-flex flex-auto',
|
|
64
|
+
],
|
|
65
|
+
});
|
|
66
|
+
},
|
|
67
|
+
input: function (_a) {
|
|
68
|
+
var props = _a.props;
|
|
69
|
+
return ({
|
|
70
|
+
class: [
|
|
71
|
+
// Font
|
|
72
|
+
'font-sans sm:text-sm leading-none',
|
|
73
|
+
// Shape
|
|
74
|
+
'appearance-none rounded-md',
|
|
75
|
+
{ 'rounded-tr-none rounded-br-none': props.dropdown },
|
|
76
|
+
{ 'outline-none shadow-none rounded-none': props.multiple },
|
|
77
|
+
// Size
|
|
78
|
+
{ 'w-full': props.multiple },
|
|
79
|
+
// Spacing
|
|
80
|
+
'm-0',
|
|
81
|
+
{ 'py-1.5 px-3': !props.multiple, 'p-0': props.multiple },
|
|
82
|
+
// Colors
|
|
83
|
+
'text-surface-700/80',
|
|
84
|
+
{
|
|
85
|
+
'bg-surface-0': !props.multiple,
|
|
86
|
+
'border border-surface-300': !props.multiple,
|
|
87
|
+
'border-0 bg-transparent': props.multiple,
|
|
88
|
+
},
|
|
89
|
+
// States
|
|
90
|
+
{
|
|
91
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-inset focus:ring-2 focus:ring-primary-500': !props.multiple,
|
|
92
|
+
},
|
|
93
|
+
// Transition
|
|
94
|
+
'transition-colors duration-200',
|
|
95
|
+
],
|
|
96
|
+
});
|
|
97
|
+
},
|
|
98
|
+
token: {
|
|
99
|
+
class: [
|
|
100
|
+
// Flexbox
|
|
101
|
+
'inline-flex items-center',
|
|
102
|
+
// Spacing
|
|
103
|
+
'py-0.5 px-3',
|
|
104
|
+
// Shape
|
|
105
|
+
'rounded-[1.14rem]',
|
|
106
|
+
// Colors
|
|
107
|
+
'text-surface-700/70',
|
|
108
|
+
'bg-surface-200',
|
|
109
|
+
],
|
|
110
|
+
},
|
|
111
|
+
label: {
|
|
112
|
+
class: 'leading-5',
|
|
113
|
+
},
|
|
114
|
+
removeTokenIcon: {
|
|
115
|
+
class: [
|
|
116
|
+
// Shape
|
|
117
|
+
'rounded-md leading-6',
|
|
118
|
+
// Spacing
|
|
119
|
+
'ml-2',
|
|
120
|
+
// Size
|
|
121
|
+
'w-4 h-4',
|
|
122
|
+
// Transition
|
|
123
|
+
'transition duration-200 ease-in-out',
|
|
124
|
+
// Misc
|
|
125
|
+
'cursor-pointer',
|
|
126
|
+
],
|
|
127
|
+
},
|
|
128
|
+
dropdownbutton: {
|
|
129
|
+
root: {
|
|
130
|
+
class: [
|
|
131
|
+
'relative text-sm leading-none',
|
|
132
|
+
// Alignments
|
|
133
|
+
'items-center inline-flex text-center align-bottom',
|
|
134
|
+
// Shape
|
|
135
|
+
'rounded-r-md',
|
|
136
|
+
// Size
|
|
137
|
+
'px-2.5 py-1.5',
|
|
138
|
+
'-ml-[1px]',
|
|
139
|
+
// Colors
|
|
140
|
+
'text-surface-600',
|
|
141
|
+
'bg-surface-100',
|
|
142
|
+
'ring-1 ring-inset ring-surface-300',
|
|
143
|
+
// States
|
|
144
|
+
'hover:bg-surface-200',
|
|
145
|
+
'focus:outline-none focus:outline-offset-0 focus:ring-1',
|
|
146
|
+
'focus:ring-primary-500',
|
|
147
|
+
],
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
loadingicon: {
|
|
151
|
+
class: [
|
|
152
|
+
'text-sm leading-none text-surface-500',
|
|
153
|
+
'absolute top-[50%] right-[0.5rem] -mt-2 animate-spin',
|
|
154
|
+
],
|
|
155
|
+
},
|
|
156
|
+
panel: {
|
|
157
|
+
class: [
|
|
158
|
+
// Position
|
|
159
|
+
'absolute top-0 left-0',
|
|
160
|
+
'mt-2',
|
|
161
|
+
// Shape
|
|
162
|
+
'border-0',
|
|
163
|
+
'rounded-md',
|
|
164
|
+
'shadow-md',
|
|
165
|
+
'max-h-[15rem]',
|
|
166
|
+
'overflow-auto',
|
|
167
|
+
// Color
|
|
168
|
+
'bg-surface-0',
|
|
169
|
+
'text-surface-800/80',
|
|
170
|
+
'ring-1 ring-inset ring-surface-300',
|
|
171
|
+
],
|
|
172
|
+
},
|
|
173
|
+
list: {
|
|
174
|
+
class: 'py-1 list-none m-0',
|
|
175
|
+
},
|
|
176
|
+
item: function (_a) {
|
|
177
|
+
var context = _a.context;
|
|
178
|
+
return ({
|
|
179
|
+
class: [
|
|
180
|
+
// Font
|
|
181
|
+
'sm:text-sm',
|
|
182
|
+
'leading-none',
|
|
183
|
+
{ 'font-normal': !context.selected, 'font-bold': context.selected },
|
|
184
|
+
// Position
|
|
185
|
+
'relative',
|
|
186
|
+
// Shape
|
|
187
|
+
'border-0',
|
|
188
|
+
'rounded-none',
|
|
189
|
+
// Spacing
|
|
190
|
+
'm-0',
|
|
191
|
+
'py-2 px-4',
|
|
192
|
+
// Color
|
|
193
|
+
{
|
|
194
|
+
'text-surface-700/80': !context.focused && !context.selected,
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
'bg-surface-200 text-surface-700/80': context.focused && !context.selected,
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
'bg-primary-500 text-white': context.focused && context.selected,
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
'bg-transparent text-surface-700/80': !context.focused && context.selected,
|
|
204
|
+
},
|
|
205
|
+
//States
|
|
206
|
+
'hover:bg-primary-500 hover:text-white',
|
|
207
|
+
// Misc
|
|
208
|
+
'cursor-pointer',
|
|
209
|
+
'overflow-hidden',
|
|
210
|
+
'whitespace-nowrap',
|
|
211
|
+
],
|
|
212
|
+
});
|
|
213
|
+
},
|
|
214
|
+
itemgroup: {
|
|
215
|
+
class: [
|
|
216
|
+
//Font
|
|
217
|
+
'font-bold',
|
|
218
|
+
'sm:text-sm',
|
|
219
|
+
// Spacing
|
|
220
|
+
'm-0',
|
|
221
|
+
'py-2 px-4',
|
|
222
|
+
// Color
|
|
223
|
+
'text-surface-800/80',
|
|
224
|
+
'bg-surface-0',
|
|
225
|
+
// Misc
|
|
226
|
+
'cursor-auto',
|
|
227
|
+
],
|
|
228
|
+
},
|
|
229
|
+
emptymessage: {
|
|
230
|
+
class: [
|
|
231
|
+
// Font
|
|
232
|
+
'leading-none',
|
|
233
|
+
'sm:text-sm',
|
|
234
|
+
// Spacing
|
|
235
|
+
'py-2 px-4',
|
|
236
|
+
// Color
|
|
237
|
+
'text-surface-800/80',
|
|
238
|
+
'bg-transparent',
|
|
239
|
+
],
|
|
240
|
+
},
|
|
241
|
+
transition: {
|
|
242
|
+
enterFromClass: 'opacity-0 scale-y-[0.8]',
|
|
243
|
+
enterActiveClass: 'transition-[transform,opacity] duration-[120ms] ease-[cubic-bezier(0,0,0.2,1)]',
|
|
244
|
+
leaveActiveClass: 'transition-opacity duration-100 ease-linear',
|
|
245
|
+
leaveToClass: 'opacity-0',
|
|
246
|
+
},
|
|
247
|
+
};
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
declare namespace _default {
|
|
2
|
+
function root({ props, parent }: {
|
|
3
|
+
props: any;
|
|
4
|
+
parent: any;
|
|
5
|
+
}): {
|
|
6
|
+
class: (string | {
|
|
7
|
+
'text-sm': boolean;
|
|
8
|
+
'text-lg': boolean;
|
|
9
|
+
'text-xl': boolean;
|
|
10
|
+
'h-[30px] w-[30px]'?: undefined;
|
|
11
|
+
'w-12 h-12'?: undefined;
|
|
12
|
+
'w-16 h-16'?: undefined;
|
|
13
|
+
'-ml-4'?: undefined;
|
|
14
|
+
'rounded-lg'?: undefined;
|
|
15
|
+
'rounded-full'?: undefined;
|
|
16
|
+
'border-[0.5px]'?: undefined;
|
|
17
|
+
'border-gray-100'?: undefined;
|
|
18
|
+
} | {
|
|
19
|
+
'h-[30px] w-[30px]': boolean;
|
|
20
|
+
'w-12 h-12': boolean;
|
|
21
|
+
'w-16 h-16': boolean;
|
|
22
|
+
'text-sm'?: undefined;
|
|
23
|
+
'text-lg'?: undefined;
|
|
24
|
+
'text-xl'?: undefined;
|
|
25
|
+
'-ml-4'?: undefined;
|
|
26
|
+
'rounded-lg'?: undefined;
|
|
27
|
+
'rounded-full'?: undefined;
|
|
28
|
+
'border-[0.5px]'?: undefined;
|
|
29
|
+
'border-gray-100'?: undefined;
|
|
30
|
+
} | {
|
|
31
|
+
'-ml-4': boolean;
|
|
32
|
+
'text-sm'?: undefined;
|
|
33
|
+
'text-lg'?: undefined;
|
|
34
|
+
'text-xl'?: undefined;
|
|
35
|
+
'h-[30px] w-[30px]'?: undefined;
|
|
36
|
+
'w-12 h-12'?: undefined;
|
|
37
|
+
'w-16 h-16'?: undefined;
|
|
38
|
+
'rounded-lg'?: undefined;
|
|
39
|
+
'rounded-full'?: undefined;
|
|
40
|
+
'border-[0.5px]'?: undefined;
|
|
41
|
+
'border-gray-100'?: undefined;
|
|
42
|
+
} | {
|
|
43
|
+
'rounded-lg': boolean;
|
|
44
|
+
'rounded-full': boolean;
|
|
45
|
+
'text-sm'?: undefined;
|
|
46
|
+
'text-lg'?: undefined;
|
|
47
|
+
'text-xl'?: undefined;
|
|
48
|
+
'h-[30px] w-[30px]'?: undefined;
|
|
49
|
+
'w-12 h-12'?: undefined;
|
|
50
|
+
'w-16 h-16'?: undefined;
|
|
51
|
+
'-ml-4'?: undefined;
|
|
52
|
+
'border-[0.5px]'?: undefined;
|
|
53
|
+
'border-gray-100'?: undefined;
|
|
54
|
+
} | {
|
|
55
|
+
'border-[0.5px]': boolean;
|
|
56
|
+
'text-sm'?: undefined;
|
|
57
|
+
'text-lg'?: undefined;
|
|
58
|
+
'text-xl'?: undefined;
|
|
59
|
+
'h-[30px] w-[30px]'?: undefined;
|
|
60
|
+
'w-12 h-12'?: undefined;
|
|
61
|
+
'w-16 h-16'?: undefined;
|
|
62
|
+
'-ml-4'?: undefined;
|
|
63
|
+
'rounded-lg'?: undefined;
|
|
64
|
+
'rounded-full'?: undefined;
|
|
65
|
+
'border-gray-100'?: undefined;
|
|
66
|
+
} | {
|
|
67
|
+
'border-gray-100': boolean;
|
|
68
|
+
'text-sm'?: undefined;
|
|
69
|
+
'text-lg'?: undefined;
|
|
70
|
+
'text-xl'?: undefined;
|
|
71
|
+
'h-[30px] w-[30px]'?: undefined;
|
|
72
|
+
'w-12 h-12'?: undefined;
|
|
73
|
+
'w-16 h-16'?: undefined;
|
|
74
|
+
'-ml-4'?: undefined;
|
|
75
|
+
'rounded-lg'?: undefined;
|
|
76
|
+
'rounded-full'?: undefined;
|
|
77
|
+
'border-[0.5px]'?: undefined;
|
|
78
|
+
})[];
|
|
79
|
+
};
|
|
80
|
+
namespace image {
|
|
81
|
+
let _class: string;
|
|
82
|
+
export { _class as class };
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
export default _default;
|