@fewangsit/wangsvue-presets 1.0.103-alpha.1 → 1.0.103
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/fixedasset/calendar/index.js +3 -3
- package/fixedasset/colors.config.json +73 -73
- package/fixedasset/index.es.js +25 -25
- package/fixedasset/index.system.js +2 -2
- package/fixedasset/inputbadge/index.js +3 -3
- package/fixedasset/inputcurrency/index.d.ts +4 -4
- package/fixedasset/inputgroup/index.js +3 -3
- package/fixedasset/inputphonenumber/index.d.ts +8 -8
- package/fixedasset/inputphonenumber/index.js +2 -2
- package/fixedasset/style.css +9 -9
- package/fixedasset/toggleswitch/index.js +2 -2
- package/globalsettings/calendar/index.js +3 -3
- package/globalsettings/colors.config.json +97 -97
- package/globalsettings/index.es.js +20 -20
- package/globalsettings/index.system.js +2 -2
- package/globalsettings/inputbadge/index.js +3 -3
- package/globalsettings/inputcurrency/index.d.ts +4 -4
- package/globalsettings/inputgroup/index.js +3 -3
- package/globalsettings/inputphonenumber/index.d.ts +8 -8
- package/globalsettings/inputphonenumber/index.js +2 -2
- package/globalsettings/style.css +10 -10
- package/globalsettings/toggleswitch/index.js +2 -2
- package/package.json +13 -13
- package/supplyasset/calendar/index.js +3 -3
- package/supplyasset/colors.config.json +97 -97
- package/supplyasset/index.es.js +18 -18
- package/supplyasset/index.system.js +2 -2
- package/supplyasset/inputbadge/index.js +3 -3
- package/supplyasset/inputcurrency/index.d.ts +4 -4
- package/supplyasset/inputgroup/index.js +3 -3
- package/supplyasset/inputphonenumber/index.d.ts +8 -8
- package/supplyasset/inputphonenumber/index.js +2 -2
- package/supplyasset/style.css +10 -10
- package/supplyasset/toggleswitch/index.js +2 -2
- package/wangsvue/calendar/index.js +3 -3
- package/wangsvue/colors.config.json +76 -76
- package/wangsvue/index.es.js +21 -21
- package/wangsvue/index.system.js +2 -2
- package/wangsvue/inputbadge/index.js +3 -3
- package/wangsvue/inputcurrency/index.d.ts +4 -4
- package/wangsvue/inputgroup/index.js +3 -3
- package/wangsvue/inputphonenumber/index.d.ts +8 -8
- package/wangsvue/inputphonenumber/index.js +2 -2
- package/wangsvue/style.css +9 -9
- package/wangsvue/toggleswitch/index.js +2 -2
|
@@ -14,7 +14,7 @@ var index_js_1 = require("../inputtext/index.js");
|
|
|
14
14
|
* To set different ring width for Firefox Browser
|
|
15
15
|
* Also for InputGroupAddon
|
|
16
16
|
*/
|
|
17
|
-
var
|
|
17
|
+
var isChromeBased = navigator.userAgent.includes('Chrome');
|
|
18
18
|
exports.default = {
|
|
19
19
|
root: function (_a) {
|
|
20
20
|
var context = _a.context;
|
|
@@ -24,8 +24,8 @@ exports.default = {
|
|
|
24
24
|
'min-h-[26px] h-fit w-full',
|
|
25
25
|
'ring-inset rounded px-[12px] py-[2px]',
|
|
26
26
|
{
|
|
27
|
-
'ring-[1px]':
|
|
28
|
-
'ring-[0.5px]':
|
|
27
|
+
'ring-[1px]': !isChromeBased,
|
|
28
|
+
'ring-[0.5px]': isChromeBased,
|
|
29
29
|
},
|
|
30
30
|
{ '!ring-danger-500 !dark:ring-danger-500': context.invalidInput },
|
|
31
31
|
{ '!ring-general-200 !dark:ring-general-200': !context.invalidInput },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare namespace _default {
|
|
2
2
|
function currency(ctx: any): {
|
|
3
3
|
class: (string | {
|
|
4
|
-
'ring-[1px]':
|
|
5
|
-
'ring-[0.5px]':
|
|
4
|
+
'ring-[1px]': boolean;
|
|
5
|
+
'ring-[0.5px]': any;
|
|
6
6
|
'!ring-danger-500'?: undefined;
|
|
7
7
|
} | {
|
|
8
8
|
'!ring-danger-500': any;
|
|
@@ -13,8 +13,8 @@ declare namespace _default {
|
|
|
13
13
|
};
|
|
14
14
|
function value(ctx: any): {
|
|
15
15
|
class: (string | {
|
|
16
|
-
'ring-[1px]':
|
|
17
|
-
'ring-[0.5px]':
|
|
16
|
+
'ring-[1px]': boolean;
|
|
17
|
+
'ring-[0.5px]': any;
|
|
18
18
|
'!ring-danger-500'?: undefined;
|
|
19
19
|
} | {
|
|
20
20
|
'!ring-danger-500': any;
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
* To set different ring width for Firefox Browser
|
|
5
5
|
* Also for InputGroupAddon
|
|
6
6
|
*/
|
|
7
|
-
var
|
|
7
|
+
var isChromeBased = navigator.userAgent.includes('Chrome');
|
|
8
8
|
exports.default = {
|
|
9
9
|
root: function (_a) {
|
|
10
10
|
var props = _a.props;
|
|
@@ -19,8 +19,8 @@ exports.default = {
|
|
|
19
19
|
'[&:has(:focus)]:!ring-primary-400 [&:has(:focus)_.inputgroupaddon]:!ring-primary-400': props.ring !== 'none',
|
|
20
20
|
},
|
|
21
21
|
{
|
|
22
|
-
'ring-[1px] [&_.inputgroupaddon]:ring-[1px]':
|
|
23
|
-
'ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]':
|
|
22
|
+
'ring-[1px] [&_.inputgroupaddon]:ring-[1px]': !isChromeBased && props.ring !== 'none',
|
|
23
|
+
'ring-[0.5px] [&_.inputgroupaddon]:ring-[0.5px]': isChromeBased && props.ring !== 'none',
|
|
24
24
|
},
|
|
25
25
|
'[&_.inputgroupaddon[data-addon-variant=plain]]:!ring-[0px]',
|
|
26
26
|
'[&:has(input)]:cursor-text',
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export function commonClasses({
|
|
2
|
-
|
|
1
|
+
export function commonClasses({ isChromeBased, invalidInput }: {
|
|
2
|
+
isChromeBased: any;
|
|
3
3
|
invalidInput: any;
|
|
4
4
|
}): (string | {
|
|
5
|
-
'ring-[1px]':
|
|
6
|
-
'ring-[0.5px]':
|
|
5
|
+
'ring-[1px]': boolean;
|
|
6
|
+
'ring-[0.5px]': any;
|
|
7
7
|
'!ring-danger-500'?: undefined;
|
|
8
8
|
} | {
|
|
9
9
|
'!ring-danger-500': any;
|
|
@@ -14,8 +14,8 @@ declare namespace _default {
|
|
|
14
14
|
namespace dialcode {
|
|
15
15
|
function root(ctx: any): {
|
|
16
16
|
class: (string | {
|
|
17
|
-
'ring-[1px]':
|
|
18
|
-
'ring-[0.5px]':
|
|
17
|
+
'ring-[1px]': boolean;
|
|
18
|
+
'ring-[0.5px]': any;
|
|
19
19
|
'!ring-danger-500'?: undefined;
|
|
20
20
|
} | {
|
|
21
21
|
'!ring-danger-500': any;
|
|
@@ -34,8 +34,8 @@ declare namespace _default {
|
|
|
34
34
|
}
|
|
35
35
|
function input(ctx: any): {
|
|
36
36
|
class: (string | {
|
|
37
|
-
'ring-[1px]':
|
|
38
|
-
'ring-[0.5px]':
|
|
37
|
+
'ring-[1px]': boolean;
|
|
38
|
+
'ring-[0.5px]': any;
|
|
39
39
|
'!ring-danger-500'?: undefined;
|
|
40
40
|
} | {
|
|
41
41
|
'!ring-danger-500': any;
|
|
@@ -12,9 +12,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.commonClasses = void 0;
|
|
13
13
|
var index_js_1 = require("../multiselect/index.js");
|
|
14
14
|
var commonClasses = function (_a) {
|
|
15
|
-
var
|
|
15
|
+
var isChromeBased = _a.isChromeBased, invalidInput = _a.invalidInput;
|
|
16
16
|
return [
|
|
17
|
-
{ 'ring-[1px]':
|
|
17
|
+
{ 'ring-[1px]': !isChromeBased, 'ring-[0.5px]': isChromeBased },
|
|
18
18
|
{ '!ring-danger-500': invalidInput },
|
|
19
19
|
'ring-inset',
|
|
20
20
|
'ring-general-400',
|
package/wangsvue/style.css
CHANGED
|
@@ -4799,49 +4799,49 @@
|
|
|
4799
4799
|
font-style: normal;
|
|
4800
4800
|
}
|
|
4801
4801
|
|
|
4802
|
-
h1,
|
|
4802
|
+
h1,
|
|
4803
4803
|
.heading-1{
|
|
4804
4804
|
font-size: 22px !important;
|
|
4805
4805
|
font-weight: 600 !important;
|
|
4806
4806
|
line-height: 1.75rem;
|
|
4807
4807
|
}
|
|
4808
4808
|
|
|
4809
|
-
h2,
|
|
4809
|
+
h2,
|
|
4810
4810
|
.heading-2{
|
|
4811
4811
|
font-size: 1.125rem !important;
|
|
4812
4812
|
font-weight: 600 !important;
|
|
4813
4813
|
line-height: 1.5rem;
|
|
4814
4814
|
}
|
|
4815
4815
|
|
|
4816
|
-
h3,
|
|
4816
|
+
h3,
|
|
4817
4817
|
.heading-3{
|
|
4818
4818
|
font-size: 1rem !important;
|
|
4819
4819
|
font-weight: 500 !important;
|
|
4820
4820
|
line-height: 1.25rem;
|
|
4821
4821
|
}
|
|
4822
4822
|
|
|
4823
|
-
h4,
|
|
4823
|
+
h4,
|
|
4824
4824
|
.heading-4{
|
|
4825
4825
|
font-size: 0.875rem !important;
|
|
4826
4826
|
font-weight: 500 !important;
|
|
4827
4827
|
line-height: 1rem;
|
|
4828
4828
|
}
|
|
4829
4829
|
|
|
4830
|
-
p,
|
|
4830
|
+
p,
|
|
4831
4831
|
.p{
|
|
4832
4832
|
font-size: 0.75rem !important;
|
|
4833
4833
|
font-weight: 400 !important;
|
|
4834
4834
|
line-height: 1rem;
|
|
4835
4835
|
}
|
|
4836
4836
|
|
|
4837
|
-
h5,
|
|
4837
|
+
h5,
|
|
4838
4838
|
.heading-5{
|
|
4839
4839
|
font-size: 0.75rem !important;
|
|
4840
4840
|
font-weight: 600 !important;
|
|
4841
4841
|
line-height: 1rem;
|
|
4842
4842
|
}
|
|
4843
4843
|
|
|
4844
|
-
h6,
|
|
4844
|
+
h6,
|
|
4845
4845
|
.heading-6{
|
|
4846
4846
|
font-size: 10px !important;
|
|
4847
4847
|
font-weight: 600 !important;
|
|
@@ -4852,7 +4852,7 @@ h6,
|
|
|
4852
4852
|
scrollbar-width: none;
|
|
4853
4853
|
}
|
|
4854
4854
|
|
|
4855
|
-
.scrollbar-w-thin,
|
|
4855
|
+
.scrollbar-w-thin,
|
|
4856
4856
|
.p-virtualscroller {
|
|
4857
4857
|
scrollbar-width: thin;
|
|
4858
4858
|
}
|
|
@@ -6654,4 +6654,4 @@ h6,
|
|
|
6654
6654
|
|
|
6655
6655
|
.\[\&_ul_li\]\:pl-\[6px\] ul li{
|
|
6656
6656
|
padding-left: 6px;
|
|
6657
|
-
}
|
|
6657
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
3
|
+
var isChromeBased = navigator.userAgent.includes('Chrome');
|
|
4
4
|
exports.default = {
|
|
5
5
|
root: function (_a) {
|
|
6
6
|
var props = _a.props;
|
|
@@ -46,7 +46,7 @@ exports.default = {
|
|
|
46
46
|
},
|
|
47
47
|
// Colors
|
|
48
48
|
'ring-1',
|
|
49
|
-
{ 'ring-1':
|
|
49
|
+
{ 'ring-1': !isChromeBased, 'ring-[0.5px]': isChromeBased },
|
|
50
50
|
{
|
|
51
51
|
'before:bg-white': props.modelValue == props.trueValue,
|
|
52
52
|
'before:bg-primary-200': props.modelValue !== props.trueValue && !props.disabled,
|