@docsplain-kit/core 0.0.48 → 0.0.50
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/auto-complete/auto-complete-theme.d.ts +29 -0
- package/auto-complete/auto-complete-theme.js +53 -0
- package/auto-complete/auto-complete-theme.js.map +1 -0
- package/auto-complete/auto-complete.js +23 -3
- package/auto-complete/auto-complete.js.map +1 -1
- package/card/card-body/card-body.js +10 -1
- package/card/card-body/card-body.js.map +1 -1
- package/card/card-theme.d.ts +26 -0
- package/card/card-theme.js +170 -0
- package/card/card-theme.js.map +1 -0
- package/card/card.js +11 -1
- package/card/card.js.map +1 -1
- package/card/card.style.d.ts +3 -79
- package/card/card.style.js +34 -50
- package/card/card.style.js.map +1 -1
- package/divider/divider-theme.d.ts +16 -0
- package/divider/divider-theme.js +82 -0
- package/divider/divider-theme.js.map +1 -0
- package/divider/divider.js +13 -3
- package/divider/divider.js.map +1 -1
- package/label/label-theme.d.ts +17 -0
- package/label/label-theme.js +35 -0
- package/label/label-theme.js.map +1 -0
- package/label/label.js +21 -3
- package/label/label.js.map +1 -1
- package/media/media.js +1 -1
- package/media/media.js.map +1 -1
- package/modal/modal-theme.d.ts +17 -0
- package/modal/modal-theme.js +32 -0
- package/modal/modal-theme.js.map +1 -0
- package/modal/modal.d.ts +1 -1
- package/modal/modal.js +22 -5
- package/modal/modal.js.map +1 -1
- package/mouse-popup/mouse-popup-theme.d.ts +17 -0
- package/mouse-popup/mouse-popup-theme.js +32 -0
- package/mouse-popup/mouse-popup-theme.js.map +1 -0
- package/mouse-popup/mouse-popup.js +19 -1
- package/mouse-popup/mouse-popup.js.map +1 -1
- package/multi-select/index.js.map +1 -1
- package/multi-select/multi-select-theme.d.ts +54 -0
- package/multi-select/multi-select-theme.js +127 -0
- package/multi-select/multi-select-theme.js.map +1 -0
- package/multi-select/multi-select.js +44 -10
- package/multi-select/multi-select.js.map +1 -1
- package/multi-select/multi-select.style.d.ts +97 -1
- package/multi-select/multi-select.style.js +99 -3
- package/multi-select/multi-select.style.js.map +1 -1
- package/package.json +1 -1
- package/popper/popper-content/popper-content.js +19 -1
- package/popper/popper-content/popper-content.js.map +1 -1
- package/popper/popper-theme.d.ts +21 -0
- package/popper/popper-theme.js +39 -0
- package/popper/popper-theme.js.map +1 -0
- package/select/select-theme.d.ts +50 -0
- package/select/select-theme.js +120 -0
- package/select/select-theme.js.map +1 -0
- package/select/select.js +44 -10
- package/select/select.js.map +1 -1
- package/select/select.style.d.ts +48 -16
- package/select/select.style.js +97 -65
- package/select/select.style.js.map +1 -1
- package/skeleton/skeleton-theme.d.ts +16 -0
- package/skeleton/skeleton-theme.js +82 -0
- package/skeleton/skeleton-theme.js.map +1 -0
- package/skeleton/skeleton.js +19 -1
- package/skeleton/skeleton.js.map +1 -1
- package/slider/slider-theme.d.ts +63 -0
- package/slider/slider-theme.js +219 -0
- package/slider/slider-theme.js.map +1 -0
- package/slider/slider.js +26 -8
- package/slider/slider.js.map +1 -1
- package/tab/tab-item/tab-item.style.js +21 -6
- package/tab/tab-item/tab-item.style.js.map +1 -1
- package/tab/tab-theme.d.ts +42 -0
- package/tab/tab-theme.js +242 -0
- package/tab/tab-theme.js.map +1 -0
- package/tab/tab.js +21 -3
- package/tab/tab.js.map +1 -1
- package/text-input/text-input-theme.d.ts +30 -0
- package/text-input/text-input-theme.js +73 -0
- package/text-input/text-input-theme.js.map +1 -0
- package/text-input/text-input.js +26 -4
- package/text-input/text-input.js.map +1 -1
- package/text-input/text-input.style.d.ts +33 -1
- package/text-input/text-input.style.js +34 -2
- package/text-input/text-input.style.js.map +1 -1
- package/textarea/textarea-theme.d.ts +30 -0
- package/textarea/textarea-theme.js +73 -0
- package/textarea/textarea-theme.js.map +1 -0
- package/textarea/textarea.js +26 -4
- package/textarea/textarea.js.map +1 -1
- package/textarea/textarea.style.d.ts +33 -1
- package/textarea/textarea.style.js +34 -2
- package/textarea/textarea.style.js.map +1 -1
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.getPopperHoverBackground = exports.getPopperSecondaryTextColor = exports.getPopperTextColor = exports.getPopperBorder = exports.getPopperBackground = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Get popper content background color based on theme
|
|
6
|
+
*/
|
|
7
|
+
var getPopperBackground = function (theme) {
|
|
8
|
+
return theme === 'dark' ? 'bg-gray-800' : 'bg-white';
|
|
9
|
+
};
|
|
10
|
+
exports.getPopperBackground = getPopperBackground;
|
|
11
|
+
/**
|
|
12
|
+
* Get popper content border color based on theme
|
|
13
|
+
*/
|
|
14
|
+
var getPopperBorder = function (theme) {
|
|
15
|
+
return theme === 'dark' ? 'border-gray-700' : 'border-gray-200';
|
|
16
|
+
};
|
|
17
|
+
exports.getPopperBorder = getPopperBorder;
|
|
18
|
+
/**
|
|
19
|
+
* Get popper content text color based on theme
|
|
20
|
+
*/
|
|
21
|
+
var getPopperTextColor = function (theme) {
|
|
22
|
+
return theme === 'dark' ? 'text-gray-100' : 'text-gray-900';
|
|
23
|
+
};
|
|
24
|
+
exports.getPopperTextColor = getPopperTextColor;
|
|
25
|
+
/**
|
|
26
|
+
* Get popper content secondary text color based on theme
|
|
27
|
+
*/
|
|
28
|
+
var getPopperSecondaryTextColor = function (theme) {
|
|
29
|
+
return theme === 'dark' ? 'text-gray-300' : 'text-gray-600';
|
|
30
|
+
};
|
|
31
|
+
exports.getPopperSecondaryTextColor = getPopperSecondaryTextColor;
|
|
32
|
+
/**
|
|
33
|
+
* Get popper content hover background color based on theme
|
|
34
|
+
*/
|
|
35
|
+
var getPopperHoverBackground = function (theme) {
|
|
36
|
+
return theme === 'dark' ? 'hover:bg-gray-700' : 'hover:bg-gray-100';
|
|
37
|
+
};
|
|
38
|
+
exports.getPopperHoverBackground = getPopperHoverBackground;
|
|
39
|
+
//# sourceMappingURL=popper-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popper-theme.js","sourceRoot":"","sources":["../../popper/popper-theme.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACI,IAAM,mBAAmB,GAAG,UAAC,KAAY;IAC9C,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,UAAU,CAAC;AACvD,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEF;;GAEG;AACI,IAAM,eAAe,GAAG,UAAC,KAAY;IAC1C,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,iBAAiB,CAAC;AAClE,CAAC,CAAC;AAFW,QAAA,eAAe,mBAE1B;AAEF;;GAEG;AACI,IAAM,kBAAkB,GAAG,UAAC,KAAY;IAC7C,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC;AAC9D,CAAC,CAAC;AAFW,QAAA,kBAAkB,sBAE7B;AAEF;;GAEG;AACI,IAAM,2BAA2B,GAAG,UAAC,KAAY;IACtD,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC;AAC9D,CAAC,CAAC;AAFW,QAAA,2BAA2B,+BAEtC;AAEF;;GAEG;AACI,IAAM,wBAAwB,GAAG,UAAC,KAAY;IACnD,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,mBAAmB,CAAC;AACtE,CAAC,CAAC;AAFW,QAAA,wBAAwB,4BAEnC"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Theme } from '../provider';
|
|
2
|
+
import { Colors } from '../types';
|
|
3
|
+
/**
|
|
4
|
+
* Get select background based on theme and variant
|
|
5
|
+
*/
|
|
6
|
+
export declare const getSelectBackground: (theme: Theme, variant: 'outlined' | 'filled', color: Colors) => string;
|
|
7
|
+
/**
|
|
8
|
+
* Get select text color based on theme
|
|
9
|
+
*/
|
|
10
|
+
export declare const getSelectTextColor: (theme: Theme) => string;
|
|
11
|
+
/**
|
|
12
|
+
* Get select placeholder color based on theme
|
|
13
|
+
*/
|
|
14
|
+
export declare const getSelectPlaceholderColor: (theme: Theme) => string;
|
|
15
|
+
/**
|
|
16
|
+
* Get select label background based on theme
|
|
17
|
+
*/
|
|
18
|
+
export declare const getSelectLabelBackground: (theme: Theme) => string;
|
|
19
|
+
/**
|
|
20
|
+
* Get select border color based on theme and color
|
|
21
|
+
*/
|
|
22
|
+
export declare const getSelectBorderColor: (theme: Theme, _color: Colors, error: boolean, disabled: boolean) => string;
|
|
23
|
+
/**
|
|
24
|
+
* Get select focus border color based on theme and color
|
|
25
|
+
*/
|
|
26
|
+
export declare const getSelectFocusBorderColor: (theme: Theme, color: Colors) => string;
|
|
27
|
+
/**
|
|
28
|
+
* Get select icon color based on theme
|
|
29
|
+
*/
|
|
30
|
+
export declare const getSelectIconColor: (theme: Theme) => string;
|
|
31
|
+
/**
|
|
32
|
+
* Get dropdown background based on theme
|
|
33
|
+
*/
|
|
34
|
+
export declare const getDropdownBackground: (theme: Theme) => string;
|
|
35
|
+
/**
|
|
36
|
+
* Get dropdown border color based on theme and color
|
|
37
|
+
*/
|
|
38
|
+
export declare const getDropdownBorderColor: (theme: Theme, color: Colors) => string;
|
|
39
|
+
/**
|
|
40
|
+
* Get dropdown item hover background based on theme
|
|
41
|
+
*/
|
|
42
|
+
export declare const getDropdownItemHoverBackground: (theme: Theme) => string;
|
|
43
|
+
/**
|
|
44
|
+
* Get dropdown item selected background based on theme
|
|
45
|
+
*/
|
|
46
|
+
export declare const getDropdownItemSelectedBackground: (theme: Theme) => string;
|
|
47
|
+
/**
|
|
48
|
+
* Get dropdown text color based on theme
|
|
49
|
+
*/
|
|
50
|
+
export declare const getDropdownTextColor: (theme: Theme, isSelected: boolean) => string;
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports.getDropdownTextColor = exports.getDropdownItemSelectedBackground = exports.getDropdownItemHoverBackground = exports.getDropdownBorderColor = exports.getDropdownBackground = exports.getSelectIconColor = exports.getSelectFocusBorderColor = exports.getSelectBorderColor = exports.getSelectLabelBackground = exports.getSelectPlaceholderColor = exports.getSelectTextColor = exports.getSelectBackground = void 0;
|
|
4
|
+
var select_style_1 = require("./select.style");
|
|
5
|
+
/**
|
|
6
|
+
* Get select background based on theme and variant
|
|
7
|
+
*/
|
|
8
|
+
var getSelectBackground = function (theme, variant, color) {
|
|
9
|
+
if (variant === 'filled') {
|
|
10
|
+
return theme === 'dark' ? select_style_1.DARK_SELECT_COLORS[color] : select_style_1.LIGHT_SELECT_COLORS[color];
|
|
11
|
+
}
|
|
12
|
+
return theme === 'dark' ? '!bg-control-800' : '!bg-white';
|
|
13
|
+
};
|
|
14
|
+
exports.getSelectBackground = getSelectBackground;
|
|
15
|
+
/**
|
|
16
|
+
* Get select text color based on theme
|
|
17
|
+
*/
|
|
18
|
+
var getSelectTextColor = function (theme) {
|
|
19
|
+
return theme === 'dark' ? 'text-control-100' : 'text-control-800';
|
|
20
|
+
};
|
|
21
|
+
exports.getSelectTextColor = getSelectTextColor;
|
|
22
|
+
/**
|
|
23
|
+
* Get select placeholder color based on theme
|
|
24
|
+
*/
|
|
25
|
+
var getSelectPlaceholderColor = function (theme) {
|
|
26
|
+
return theme === 'dark' ? 'text-control-400' : 'text-control';
|
|
27
|
+
};
|
|
28
|
+
exports.getSelectPlaceholderColor = getSelectPlaceholderColor;
|
|
29
|
+
/**
|
|
30
|
+
* Get select label background based on theme
|
|
31
|
+
*/
|
|
32
|
+
var getSelectLabelBackground = function (theme) {
|
|
33
|
+
return theme === 'dark' ? 'bg-control-800' : 'bg-white';
|
|
34
|
+
};
|
|
35
|
+
exports.getSelectLabelBackground = getSelectLabelBackground;
|
|
36
|
+
/**
|
|
37
|
+
* Get select border color based on theme and color
|
|
38
|
+
*/
|
|
39
|
+
var getSelectBorderColor = function (theme, _color, error, disabled) {
|
|
40
|
+
if (disabled) {
|
|
41
|
+
return theme === 'dark' ? 'border-control-600' : 'border-control-100';
|
|
42
|
+
}
|
|
43
|
+
if (error) {
|
|
44
|
+
return theme === 'dark' ? 'border-danger-500' : 'border-danger';
|
|
45
|
+
}
|
|
46
|
+
// Default border colors for different themes
|
|
47
|
+
return theme === 'dark' ? 'border-control-600 hover:border-control-500' : 'border-control-light hover:border-control-dark';
|
|
48
|
+
};
|
|
49
|
+
exports.getSelectBorderColor = getSelectBorderColor;
|
|
50
|
+
/**
|
|
51
|
+
* Get select focus border color based on theme and color
|
|
52
|
+
*/
|
|
53
|
+
var getSelectFocusBorderColor = function (theme, color) {
|
|
54
|
+
var colorMap = {
|
|
55
|
+
primary: theme === 'dark' ? 'focus:border-primary-400' : 'focus:border-primary-dark',
|
|
56
|
+
secondary: theme === 'dark' ? 'focus:border-secondary-400' : 'focus:border-secondary-dark',
|
|
57
|
+
info: theme === 'dark' ? 'focus:border-info-400' : 'focus:border-info-dark',
|
|
58
|
+
success: theme === 'dark' ? 'focus:border-success-400' : 'focus:border-success-dark',
|
|
59
|
+
warning: theme === 'dark' ? 'focus:border-warning-400' : 'focus:border-warning-dark',
|
|
60
|
+
danger: theme === 'dark' ? 'focus:border-danger-400' : 'focus:border-danger-dark',
|
|
61
|
+
control: theme === 'dark' ? 'focus:border-control-400' : 'focus:border-control-dark'
|
|
62
|
+
};
|
|
63
|
+
return colorMap[color] || colorMap['primary'];
|
|
64
|
+
};
|
|
65
|
+
exports.getSelectFocusBorderColor = getSelectFocusBorderColor;
|
|
66
|
+
/**
|
|
67
|
+
* Get select icon color based on theme
|
|
68
|
+
*/
|
|
69
|
+
var getSelectIconColor = function (theme) {
|
|
70
|
+
return theme === 'dark' ? 'text-control-300' : 'text-control';
|
|
71
|
+
};
|
|
72
|
+
exports.getSelectIconColor = getSelectIconColor;
|
|
73
|
+
/**
|
|
74
|
+
* Get dropdown background based on theme
|
|
75
|
+
*/
|
|
76
|
+
var getDropdownBackground = function (theme) {
|
|
77
|
+
return theme === 'dark' ? 'bg-control-800' : 'bg-white';
|
|
78
|
+
};
|
|
79
|
+
exports.getDropdownBackground = getDropdownBackground;
|
|
80
|
+
/**
|
|
81
|
+
* Get dropdown border color based on theme and color
|
|
82
|
+
*/
|
|
83
|
+
var getDropdownBorderColor = function (theme, color) {
|
|
84
|
+
var colorMap = {
|
|
85
|
+
primary: theme === 'dark' ? 'border-primary-400' : 'border-primary-dark',
|
|
86
|
+
secondary: theme === 'dark' ? 'border-secondary-400' : 'border-secondary-dark',
|
|
87
|
+
info: theme === 'dark' ? 'border-info-400' : 'border-info-dark',
|
|
88
|
+
success: theme === 'dark' ? 'border-success-400' : 'border-success-dark',
|
|
89
|
+
warning: theme === 'dark' ? 'border-warning-400' : 'border-warning-dark',
|
|
90
|
+
danger: theme === 'dark' ? 'border-danger-400' : 'border-danger-dark',
|
|
91
|
+
control: theme === 'dark' ? 'border-control-400' : 'border-control-dark'
|
|
92
|
+
};
|
|
93
|
+
return colorMap[color] || colorMap['primary'];
|
|
94
|
+
};
|
|
95
|
+
exports.getDropdownBorderColor = getDropdownBorderColor;
|
|
96
|
+
/**
|
|
97
|
+
* Get dropdown item hover background based on theme
|
|
98
|
+
*/
|
|
99
|
+
var getDropdownItemHoverBackground = function (theme) {
|
|
100
|
+
return theme === 'dark' ? 'hover:bg-control-700' : 'hover:bg-control-100';
|
|
101
|
+
};
|
|
102
|
+
exports.getDropdownItemHoverBackground = getDropdownItemHoverBackground;
|
|
103
|
+
/**
|
|
104
|
+
* Get dropdown item selected background based on theme
|
|
105
|
+
*/
|
|
106
|
+
var getDropdownItemSelectedBackground = function (theme) {
|
|
107
|
+
return theme === 'dark' ? 'bg-control-700' : 'bg-control-100';
|
|
108
|
+
};
|
|
109
|
+
exports.getDropdownItemSelectedBackground = getDropdownItemSelectedBackground;
|
|
110
|
+
/**
|
|
111
|
+
* Get dropdown text color based on theme
|
|
112
|
+
*/
|
|
113
|
+
var getDropdownTextColor = function (theme, isSelected) {
|
|
114
|
+
if (isSelected) {
|
|
115
|
+
return theme === 'dark' ? 'text-control-100' : 'text-control-800';
|
|
116
|
+
}
|
|
117
|
+
return theme === 'dark' ? 'text-control-300' : 'text-control-600';
|
|
118
|
+
};
|
|
119
|
+
exports.getDropdownTextColor = getDropdownTextColor;
|
|
120
|
+
//# sourceMappingURL=select-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-theme.js","sourceRoot":"","sources":["../../select/select-theme.ts"],"names":[],"mappings":";;;AAEA,+CAAyE;AAEzE;;GAEG;AACI,IAAM,mBAAmB,GAAG,UAAC,KAAY,EAAE,OAA8B,EAAE,KAAa;IAC7F,IAAI,OAAO,KAAK,QAAQ,EAAE;QACxB,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,iCAAkB,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,kCAAmB,CAAC,KAAK,CAAC,CAAC;KAClF;IACD,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,iBAAiB,CAAC,CAAC,CAAC,WAAW,CAAC;AAC5D,CAAC,CAAC;AALW,QAAA,mBAAmB,uBAK9B;AAEF;;GAEG;AACI,IAAM,kBAAkB,GAAG,UAAC,KAAY;IAC7C,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,kBAAkB,CAAC;AACpE,CAAC,CAAC;AAFW,QAAA,kBAAkB,sBAE7B;AAEF;;GAEG;AACI,IAAM,yBAAyB,GAAG,UAAC,KAAY;IACpD,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,cAAc,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,yBAAyB,6BAEpC;AAEF;;GAEG;AACI,IAAM,wBAAwB,GAAG,UAAC,KAAY;IACnD,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,gBAAg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,CAAC,CAAC,qBAAqB;KACzE,CAAC;IACF,OAAO,QAAQ,CAAC,KAAK,CAAC,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC;AAChD,CAAC,CAAC;AAXW,QAAA,sBAAsB,0BAWjC;AAEF;;GAEG;AACI,IAAM,8BAA8B,GAAG,UAAC,KAAY;IACzD,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,sBAAsB,CAAC,CAAC,CAAC,sBAAsB,CAAC;AAC5E,CAAC,CAAC;AAFW,QAAA,8BAA8B,kCAEzC;AAEF;;GAEG;AACI,IAAM,iCAAiC,GAAG,UAAC,KAAY;IAC5D,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,gBAAgB,CAAC;AAChE,CAAC,CAAC;AAFW,QAAA,iCAAiC,qCAE5C;AAEF;;GAEG;AACI,IAAM,oBAAoB,GAAG,UAAC,KAAY,EAAE,UAAmB;IACpE,IAAI,UAAU,EAAE;QACd,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,kBAAkB,CAAC;KACnE;IACD,OAAO,KAAK,KAAK,MAAM,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,kBAAkB,CAAC;AACpE,CAAC,CAAC;AALW,QAAA,oBAAoB,wBAK/B"}
|
package/select/select.js
CHANGED
|
@@ -6,9 +6,19 @@ var tslib_1 = require("tslib");
|
|
|
6
6
|
var react_1 = tslib_1.__importStar(require("react"));
|
|
7
7
|
var tailwind_merge_config_1 = require("../tailwind-merge-config");
|
|
8
8
|
var select_style_1 = require("./select.style");
|
|
9
|
+
var select_theme_1 = require("./select-theme");
|
|
9
10
|
var text_1 = tslib_1.__importDefault(require("../text"));
|
|
10
11
|
var div_1 = tslib_1.__importDefault(require("../div"));
|
|
11
12
|
var button_1 = tslib_1.__importDefault(require("../button"));
|
|
13
|
+
// Try to import the theme provider, but make it optional
|
|
14
|
+
var useThemeSafe = function () { return 'light'; };
|
|
15
|
+
try {
|
|
16
|
+
var useTheme = require('../provider').useTheme;
|
|
17
|
+
useThemeSafe = useTheme;
|
|
18
|
+
}
|
|
19
|
+
catch (_a) {
|
|
20
|
+
// Provider not available, use default
|
|
21
|
+
}
|
|
12
22
|
var Select = function (_a) {
|
|
13
23
|
var _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.placeholder, placeholder = _c === void 0 ? 'default text' : _c, className = _a.className, label = _a.label, optionsList = _a.optionsList, value = _a.value, onChange = _a.onChange, id = _a.id, text = _a.text, _d = _a.color, color = _d === void 0 ? 'primary' : _d, _e = _a.variant, variant = _e === void 0 ? 'outlined' : _e, disabled = _a.disabled, error = _a.error, startAdornment = _a.startAdornment, helperText = _a.helperText, _f = _a.rounded, rounded = _f === void 0 ? 'medium' : _f, _g = _a.autoComplete, autoComplete = _g === void 0 ? false : _g, onClear = _a.onClear, required = _a.required;
|
|
14
24
|
var wrapperRef = (0, react_1.useRef)(null);
|
|
@@ -17,6 +27,14 @@ var Select = function (_a) {
|
|
|
17
27
|
var _h = (0, react_1.useState)(''), selectedText = _h[0], setSelectedText = _h[1];
|
|
18
28
|
var _j = (0, react_1.useState)(false), show = _j[0], setShow = _j[1];
|
|
19
29
|
var _k = (0, react_1.useState)(optionsList), searchedItems = _k[0], setSearchedItems = _k[1];
|
|
30
|
+
// Try to get theme from provider, fallback to 'light'
|
|
31
|
+
var theme = 'light';
|
|
32
|
+
try {
|
|
33
|
+
theme = useThemeSafe();
|
|
34
|
+
}
|
|
35
|
+
catch (_l) {
|
|
36
|
+
// Not in provider, use default
|
|
37
|
+
}
|
|
20
38
|
// click outside to close dropdown
|
|
21
39
|
(0, react_1.useEffect)(function () {
|
|
22
40
|
// @ts-ignore
|
|
@@ -87,20 +105,36 @@ var Select = function (_a) {
|
|
|
87
105
|
return (react_1["default"].createElement(div_1["default"], { ref: wrapperRef, className: (0, tailwind_merge_config_1.twMerge)('flex flex-col items-start justify-between relative w-full h-auto', className) },
|
|
88
106
|
react_1["default"].createElement("input", { className: 'hidden' }),
|
|
89
107
|
react_1["default"].createElement(div_1["default"], { className: 'relative w-full' },
|
|
90
|
-
react_1["default"].createElement(div_1["default"], { onClick: handleListDisplay, className: (0, tailwind_merge_config_1.twMerge)('flex items-center w-full px-4', autoComplete ? 'cursor-text' : 'cursor-pointer', !disabled && ("".concat(select_style_1.VARIANTS[variant])), disabled
|
|
91
|
-
|
|
108
|
+
react_1["default"].createElement(div_1["default"], { onClick: handleListDisplay, className: (0, tailwind_merge_config_1.twMerge)('flex items-center w-full px-4', autoComplete ? 'cursor-text' : 'cursor-pointer', !disabled && ("".concat(select_style_1.VARIANTS[variant])), disabled
|
|
109
|
+
? (0, tailwind_merge_config_1.twMerge)("text-control-500 !cursor-not-allowed border", (0, select_theme_1.getSelectBorderColor)(theme, color, false, true), variant === 'filled'
|
|
110
|
+
? theme === 'dark' ? 'bg-control-950/40' : 'bg-control-100'
|
|
111
|
+
: theme === 'dark' ? 'bg-control-800' : 'bg-white')
|
|
112
|
+
: error
|
|
113
|
+
? (0, tailwind_merge_config_1.twMerge)("border-danger !text-danger", (0, select_theme_1.getSelectBorderColor)(theme, color, true, false), variant === 'filled'
|
|
114
|
+
? theme === 'dark' ? '!bg-danger-900/30 !text-danger-300' : '!bg-danger-100 !text-danger-400'
|
|
115
|
+
: theme === 'dark' ? 'bg-control-800 !text-danger-300' : '!bg-white !text-danger-400')
|
|
116
|
+
: (0, tailwind_merge_config_1.twMerge)(show ? (0, select_theme_1.getSelectFocusBorderColor)(theme, color) : '', (0, select_theme_1.getSelectBorderColor)(theme, color, false, false), (0, select_theme_1.getSelectBackground)(theme, variant, color)), select_style_1.SIZES[size], startAdornment || (onClear && selectedText !== '' && selectedText !== undefined) ? 'justify-between' : 'justify-end', select_style_1.ROUNDED[rounded]) },
|
|
92
117
|
onClear && selectedText !== '' && selectedText !== undefined ? (react_1["default"].createElement(button_1["default"], { startAdornment: react_1["default"].createElement(DeleteIcon, null), color: 'danger', className: '!ps-0 !pe-3', variant: 'text', onClick: onClear })) : startAdornment || null,
|
|
93
|
-
label ? (react_1["default"].createElement("span", { color: 'inherit', className: (0, tailwind_merge_config_1.twMerge)(show || (selectedText !== '' && selectedText !== undefined) ? 'text-m-sm' : 'text-m-base', 'select-none h-auto px-2 absolute duration-200 flex items-center font-family-regular', startAdornment || (onClear && selectedText !== '' && selectedText !== undefined) ? 'start-8' : 'start-2', show || (selectedText !== '' && selectedText !== undefined)
|
|
118
|
+
label ? (react_1["default"].createElement("span", { color: 'inherit', className: (0, tailwind_merge_config_1.twMerge)(show || (selectedText !== '' && selectedText !== undefined) ? 'text-m-sm' : 'text-m-base', 'select-none h-auto px-2 absolute duration-200 flex items-center font-family-regular', startAdornment || (onClear && selectedText !== '' && selectedText !== undefined) ? 'start-8' : 'start-2', show || (selectedText !== '' && selectedText !== undefined)
|
|
119
|
+
? "translate-x-0 text-xs ".concat(variant === 'filled' ? '!top-0 !h-auto !leading-none bg-transparent' : "!start-2 !top-0 translate-y-[-50%] ".concat((0, select_theme_1.getSelectLabelBackground)(theme), " rounded-lg border-white"))
|
|
120
|
+
: '', disabled
|
|
121
|
+
? '!cursor-not-allowed'
|
|
122
|
+
: (error ? 'text-danger' : (show ? (0, select_theme_1.getSelectBackground)(theme, variant, color) : (0, select_theme_1.getSelectTextColor)(theme)))) },
|
|
94
123
|
label,
|
|
95
|
-
required ? react_1["default"].createElement("span", { className: "text-danger ms-0.5" }, "*") : null)) : placeholder ? (react_1["default"].createElement("span", { color: 'inherit', className: (0, tailwind_merge_config_1.twMerge)('select-none h-auto px-2 absolute duration-200 flex items-center text-m-base font-family-regular', selectedText !== '' ? "hidden" : startAdornment || (onClear && selectedText !== '' && selectedText !== undefined) ? 'start-8' : 'start-2', disabled ? '!bg-transparent' : (error ? 'text-danger' :
|
|
96
|
-
autoComplete ? (react_1["default"].createElement("input", { ref: inputRef, value: selectedText, onChange: handleInputChange, className: (0, tailwind_merge_config_1.twMerge)("px-2 z-10 text-m-base sm:text-d-xs md:!text-d-base font-family-regular flex-1 outline-0 min-w-8 bg-transparent outline-none", disabled ? 'cursor-not-allowed' : 'cursor-text'), type: 'text', readOnly: disabled })) : (selectedText !== '' && (react_1["default"].createElement(div_1["default"], { className: 'grow flex select-none !leading-none' },
|
|
124
|
+
required ? react_1["default"].createElement("span", { className: "text-danger ms-0.5" }, "*") : null)) : placeholder ? (react_1["default"].createElement("span", { color: 'inherit', className: (0, tailwind_merge_config_1.twMerge)('select-none h-auto px-2 absolute duration-200 flex items-center text-m-base font-family-regular', selectedText !== '' ? "hidden" : startAdornment || (onClear && selectedText !== '' && selectedText !== undefined) ? 'start-8' : 'start-2', disabled ? '!bg-transparent' : (error ? 'text-danger' : (0, select_theme_1.getSelectPlaceholderColor)(theme))) }, placeholder)) : null,
|
|
125
|
+
autoComplete ? (react_1["default"].createElement("input", { ref: inputRef, value: selectedText, onChange: handleInputChange, className: (0, tailwind_merge_config_1.twMerge)("px-2 z-10 text-m-base sm:text-d-xs md:!text-d-base font-family-regular flex-1 outline-0 min-w-8 bg-transparent outline-none", (0, select_theme_1.getSelectTextColor)(theme), disabled ? 'cursor-not-allowed' : 'cursor-text'), type: 'text', readOnly: disabled })) : (selectedText !== '' && (react_1["default"].createElement(div_1["default"], { className: 'grow flex select-none !leading-none' },
|
|
97
126
|
react_1["default"].createElement(text_1["default"], { className: '!leading-none', typography: 'sm', align: 'left', color: disabled ? 'control.500' : 'control.800' }, selectedText)))),
|
|
98
|
-
react_1["default"].createElement("svg", { className: (0, tailwind_merge_config_1.twMerge)(
|
|
127
|
+
react_1["default"].createElement("svg", { className: (0, tailwind_merge_config_1.twMerge)(show ? 'rotate-0 duration-150' : 'rotate-180 duration-150', (0, select_theme_1.getSelectIconColor)(theme)), width: "18", height: "9", viewBox: "0 0 18 9", fill: "none", xmlns: "http://www.w3.org/2000/svg" },
|
|
99
128
|
react_1["default"].createElement("path", { d: "M16.92 8.04999L10.4 1.52999C9.63002 0.759987 8.37002 0.759987 7.60002 1.52999L1.08002 8.04999", stroke: 'currentColor', strokeWidth: "1.5", strokeMiterlimit: "10", strokeLinecap: "round", strokeLinejoin: "round" }))),
|
|
100
|
-
react_1["default"].createElement(div_1["default"], { ref: dropDownRef, className: (0, tailwind_merge_config_1.twMerge)('mt-2 absolute w-full top-full
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
129
|
+
react_1["default"].createElement(div_1["default"], { ref: dropDownRef, className: (0, tailwind_merge_config_1.twMerge)('mt-2 absolute w-full top-full border rounded-lg shadow-lg p-2 max-h-[300px] overflow-y-scroll z-50', (0, select_theme_1.getDropdownBackground)(theme), (0, select_theme_1.getDropdownBorderColor)(theme, color), show ? 'flex flex-col h-fit z-10' : 'hidden') }, searchedItems && searchedItems.length > 0 && typeof searchedItems === 'object' ? searchedItems.map(function (option) {
|
|
130
|
+
var isSelected = option[text] === selectedText;
|
|
131
|
+
return (react_1["default"].createElement(div_1["default"], { className: (0, tailwind_merge_config_1.twMerge)('flex justify-between items-center rounded cursor-pointer px-1', isSelected
|
|
132
|
+
? (0, select_theme_1.getDropdownItemSelectedBackground)(theme)
|
|
133
|
+
: '', (0, select_theme_1.getDropdownItemHoverBackground)(theme), theme === 'light' ? select_style_1.LIGHT_HOVER_COLORS[color] : select_style_1.DARK_HOVER_COLORS[color]), key: option[id], "data-name": option[id] },
|
|
134
|
+
react_1["default"].createElement(text_1["default"], { color: "".concat(option[text] === selectedText ? 'control.800' : 'control.600'), align: 'start', type: isSelected ? 'medium' : 'regular', typography: 'sm', "data-name": option[id], key: option[id], onClick: handleOptionClick, className: "px-2 grow py-2 select-none" }, option[text]),
|
|
135
|
+
isSelected ? (react_1["default"].createElement("svg", { className: (0, select_theme_1.getSelectIconColor)(theme), width: "15", height: "11", viewBox: "0 0 15 11", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg" },
|
|
136
|
+
react_1["default"].createElement("path", { d: "M5.33336 8.64332L12.9934 0.982483L14.1725 2.16082L5.33336 11L0.0300293 5.69665L1.20836 4.51832L5.33336 8.64332Z" }))) : null));
|
|
137
|
+
}) : (react_1["default"].createElement(text_1["default"], { color: theme === 'dark' ? 'control.400' : 'control.400', typography: 'sm', align: 'left' }, "There are no items to display.")))),
|
|
104
138
|
helperText ? (react_1["default"].createElement(div_1["default"], { className: 'px-3 select-none' },
|
|
105
139
|
react_1["default"].createElement(text_1["default"], { color: disabled ? 'control.500' : (error ? 'danger' : 'control.400'), typography: 'xs' }, helperText))) : null));
|
|
106
140
|
};
|
package/select/select.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../select/select.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;AAEb,qDAA2D;AAE3D,kEAAmD;AACnD,+CAAiG;AACjG,yDAA2B;AAC3B,uDAAyB;AACzB,6DAA+B;
|
|
1
|
+
{"version":3,"file":"select.js","sourceRoot":"","sources":["../../select/select.tsx"],"names":[],"mappings":";AAAA,YAAY,CAAC;;;;AAEb,qDAA2D;AAE3D,kEAAmD;AACnD,+CAAiG;AACjG,+CAAqT;AACrT,yDAA2B;AAC3B,uDAAyB;AACzB,6DAA+B;AAE/B,yDAAyD;AACzD,IAAI,YAAY,GAA2B,cAAM,OAAA,OAAO,EAAP,CAAO,CAAC;AACzD,IAAI;IACM,IAAA,QAAQ,GAAK,OAAO,CAAC,aAAa,CAAC,SAA3B,CAA4B;IAC5C,YAAY,GAAG,QAAQ,CAAC;CACzB;AAAC,WAAM;IACN,sCAAsC;CACvC;AAMM,IAAM,MAAM,GAAG,UAAC,EAA2Q;QAAzQ,YAAe,EAAf,IAAI,mBAAG,QAAQ,KAAA,EAAE,mBAA4B,EAA5B,WAAW,mBAAG,cAAc,KAAA,EAAE,SAAS,eAAA,EAAE,KAAK,WAAA,EAAE,WAAW,iBAAA,EAAE,KAAK,WAAA,EAAE,QAAQ,cAAA,EAAE,EAAE,QAAA,EAAE,IAAI,UA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AAU,EAAE,IAAI,IACzF,UAAU,CACN,CACH,CACP,CAAC,CAAC,CAAC,IAAI,CACJ,CACP,CAAC;AACJ,CAAC,CAAC;AAtQW,QAAA,MAAM,UAsQjB;AAEF,IAAM,UAAU,GAAG;IACjB,OAAO,CACL,0CAAK,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,OAAO,EAAC,WAAW,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,4BAA4B;QAC5F,2CAAM,CAAC,EAAC,iQAAiQ,EAAC,IAAI,EAAC,cAAc,GAAE;QAC/R,2CAAM,CAAC,EAAC,mSAAmS,EAAC,IAAI,EAAC,cAAc,GAAE;QACjU,2CAAM,CAAC,EAAC,mSAAmS,EAAC,IAAI,EAAC,cAAc,GAAE,CAC7T,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,qBAAe,cAAM,CAAC"}
|
package/select/select.style.d.ts
CHANGED
|
@@ -1,4 +1,36 @@
|
|
|
1
|
-
export declare const
|
|
1
|
+
export declare const LIGHT_SELECT_COLORS: {
|
|
2
|
+
primary: string;
|
|
3
|
+
danger: string;
|
|
4
|
+
warning: string;
|
|
5
|
+
secondary: string;
|
|
6
|
+
tertiary: string;
|
|
7
|
+
success: string;
|
|
8
|
+
info: string;
|
|
9
|
+
control: string;
|
|
10
|
+
inherit: string;
|
|
11
|
+
slate: string;
|
|
12
|
+
zinc: string;
|
|
13
|
+
neutral: string;
|
|
14
|
+
stone: string;
|
|
15
|
+
red: string;
|
|
16
|
+
orange: string;
|
|
17
|
+
amber: string;
|
|
18
|
+
yellow: string;
|
|
19
|
+
lime: string;
|
|
20
|
+
green: string;
|
|
21
|
+
emerald: string;
|
|
22
|
+
teal: string;
|
|
23
|
+
cyan: string;
|
|
24
|
+
sky: string;
|
|
25
|
+
blue: string;
|
|
26
|
+
indigo: string;
|
|
27
|
+
violet: string;
|
|
28
|
+
purple: string;
|
|
29
|
+
fuchsia: string;
|
|
30
|
+
pink: string;
|
|
31
|
+
rose: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const DARK_SELECT_COLORS: {
|
|
2
34
|
primary: string;
|
|
3
35
|
danger: string;
|
|
4
36
|
warning: string;
|
|
@@ -37,7 +69,7 @@ export declare const SIZES: {
|
|
|
37
69
|
small: string;
|
|
38
70
|
tiny: string;
|
|
39
71
|
};
|
|
40
|
-
export declare const
|
|
72
|
+
export declare const LIGHT_HOVER_COLORS: {
|
|
41
73
|
primary: string;
|
|
42
74
|
danger: string;
|
|
43
75
|
warning: string;
|
|
@@ -69,20 +101,7 @@ export declare const HOVER_COLORS: {
|
|
|
69
101
|
pink: string;
|
|
70
102
|
rose: string;
|
|
71
103
|
};
|
|
72
|
-
export declare const
|
|
73
|
-
full: string;
|
|
74
|
-
huge: string;
|
|
75
|
-
large: string;
|
|
76
|
-
medium: string;
|
|
77
|
-
small: string;
|
|
78
|
-
tiny: string;
|
|
79
|
-
none: string;
|
|
80
|
-
};
|
|
81
|
-
export declare const VARIANTS: {
|
|
82
|
-
filled: string;
|
|
83
|
-
outlined: string;
|
|
84
|
-
};
|
|
85
|
-
export declare const DROPDOWN_COLORS: {
|
|
104
|
+
export declare const DARK_HOVER_COLORS: {
|
|
86
105
|
primary: string;
|
|
87
106
|
danger: string;
|
|
88
107
|
warning: string;
|
|
@@ -114,3 +133,16 @@ export declare const DROPDOWN_COLORS: {
|
|
|
114
133
|
pink: string;
|
|
115
134
|
rose: string;
|
|
116
135
|
};
|
|
136
|
+
export declare const ROUNDED: {
|
|
137
|
+
full: string;
|
|
138
|
+
huge: string;
|
|
139
|
+
large: string;
|
|
140
|
+
medium: string;
|
|
141
|
+
small: string;
|
|
142
|
+
tiny: string;
|
|
143
|
+
none: string;
|
|
144
|
+
};
|
|
145
|
+
export declare const VARIANTS: {
|
|
146
|
+
filled: string;
|
|
147
|
+
outlined: string;
|
|
148
|
+
};
|