colibri-ui 0.8.76 → 0.8.78
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/Autocomplete/Autocomplete.d.ts +6 -0
- package/Autocomplete/Autocomplete.js +298 -0
- package/Autocomplete/Autocomplete.module.css +147 -0
- package/Autocomplete/index.d.ts +2 -0
- package/Autocomplete/index.js +7 -0
- package/Autocomplete/index.props.d.ts +39 -0
- package/Autocomplete/package.json +9 -0
- package/Button/tokens.d.ts +78 -0
- package/Button/tokens.js +84 -0
- package/Calendar/Calendar.js +3 -1
- package/Input/index.d.ts +1 -1
- package/Input/index.js +20 -14
- package/Input/index.props.d.ts +4 -1
- package/List/List.d.ts +5 -0
- package/List/List.js +161 -0
- package/List/List.module.css +185 -0
- package/List/index.d.ts +2 -0
- package/List/index.js +9 -0
- package/List/index.props.d.ts +43 -0
- package/List/package.json +9 -0
- package/Modal/Modal.module.css +14 -7
- package/Modal/components/Body/Body.module.css +12 -0
- package/Modal/components/Body/index.d.ts +3 -0
- package/Modal/components/Body/index.js +27 -0
- package/Modal/components/Body/index.props.d.ts +1 -0
- package/Modal/components/Close/index.js +5 -2
- package/Modal/components/Close/index.props.d.ts +1 -0
- package/Modal/components/Footer/Footer.module.css +10 -0
- package/Modal/components/Footer/index.d.ts +3 -0
- package/Modal/components/Footer/index.js +23 -0
- package/Modal/components/Footer/index.props.d.ts +1 -0
- package/Modal/components/Header/Header.module.css +32 -0
- package/Modal/components/Header/index.d.ts +3 -0
- package/Modal/components/Header/index.js +37 -0
- package/Modal/components/Header/index.props.d.ts +1 -0
- package/Modal/components/Title/index.js +20 -7
- package/Modal/components/Title/index.props.d.ts +1 -2
- package/Modal/context.d.ts +9 -0
- package/Modal/context.js +15 -0
- package/Modal/index.d.ts +12 -2
- package/Modal/index.js +103 -31
- package/Modal/index.props.d.ts +25 -0
- package/Modal/useModalStack.d.ts +2 -0
- package/Modal/useModalStack.js +20 -0
- package/README.md +59 -0
- package/Theme/breakpoints.d.ts +20 -16
- package/Theme/breakpoints.js +21 -32
- package/Theme/colors/index.d.ts +4 -0
- package/Theme/colors/theme_buenos_aires.d.ts +4 -0
- package/Theme/colors/theme_buenos_aires.js +2 -0
- package/Theme/colors/theme_jaipur.d.ts +4 -0
- package/Theme/colors/theme_jaipur.js +2 -0
- package/Theme/index.d.ts +300 -152
- package/Theme/index.js +6 -2
- package/Theme/themes/buenos_aires.d.ts +73 -76
- package/Theme/themes/buenos_aires.js +73 -76
- package/Theme/themes/jaipur.d.ts +73 -76
- package/Theme/themes/jaipur.js +73 -76
- package/esm/Autocomplete/Autocomplete.d.ts +6 -0
- package/esm/Autocomplete/Autocomplete.js +288 -0
- package/esm/Autocomplete/Autocomplete.module.css +147 -0
- package/esm/Autocomplete/index.d.ts +2 -0
- package/esm/Autocomplete/index.props.d.ts +39 -0
- package/esm/Button/tokens.d.ts +78 -0
- package/esm/Button/tokens.js +82 -0
- package/esm/Calendar/Calendar.js +3 -1
- package/esm/Input/index.d.ts +1 -1
- package/esm/Input/index.js +16 -10
- package/esm/Input/index.props.d.ts +4 -1
- package/esm/List/List.d.ts +5 -0
- package/esm/List/List.js +150 -0
- package/esm/List/List.module.css +185 -0
- package/esm/List/index.d.ts +2 -0
- package/esm/List/index.props.d.ts +43 -0
- package/esm/Modal/Modal.module.css +14 -7
- package/esm/Modal/components/Body/Body.module.css +12 -0
- package/esm/Modal/components/Body/index.d.ts +3 -0
- package/esm/Modal/components/Body/index.js +18 -0
- package/esm/Modal/components/Body/index.props.d.ts +1 -0
- package/esm/Modal/components/Close/index.js +4 -2
- package/esm/Modal/components/Close/index.props.d.ts +1 -0
- package/esm/Modal/components/Footer/Footer.module.css +10 -0
- package/esm/Modal/components/Footer/index.d.ts +3 -0
- package/esm/Modal/components/Footer/index.js +15 -0
- package/esm/Modal/components/Footer/index.props.d.ts +1 -0
- package/esm/Modal/components/Header/Header.module.css +32 -0
- package/esm/Modal/components/Header/index.d.ts +3 -0
- package/esm/Modal/components/Header/index.js +28 -0
- package/esm/Modal/components/Header/index.props.d.ts +1 -0
- package/esm/Modal/components/Title/index.js +20 -8
- package/esm/Modal/components/Title/index.props.d.ts +1 -2
- package/esm/Modal/context.d.ts +9 -0
- package/esm/Modal/context.js +12 -0
- package/esm/Modal/index.d.ts +12 -2
- package/esm/Modal/index.js +92 -25
- package/esm/Modal/index.props.d.ts +25 -0
- package/esm/Modal/useModalStack.d.ts +2 -0
- package/esm/Modal/useModalStack.js +18 -0
- package/esm/Theme/breakpoints.d.ts +20 -16
- package/esm/Theme/breakpoints.js +20 -26
- package/esm/Theme/colors/index.d.ts +4 -0
- package/esm/Theme/colors/theme_buenos_aires.d.ts +4 -0
- package/esm/Theme/colors/theme_buenos_aires.js +2 -0
- package/esm/Theme/colors/theme_jaipur.d.ts +4 -0
- package/esm/Theme/colors/theme_jaipur.js +2 -0
- package/esm/Theme/index.d.ts +300 -152
- package/esm/Theme/index.js +3 -2
- package/esm/Theme/themes/buenos_aires.d.ts +73 -76
- package/esm/Theme/themes/buenos_aires.js +73 -76
- package/esm/Theme/themes/jaipur.d.ts +73 -76
- package/esm/Theme/themes/jaipur.js +73 -76
- package/esm/hooks/useMediaSizes/index.d.ts +2 -2
- package/esm/hooks/useMediaSizes/index.js +2 -2
- package/esm/hooks/useTrapFocus/index.d.ts +1 -1
- package/esm/hooks/useTrapFocus/index.js +3 -2
- package/esm/index.d.ts +8 -3
- package/esm/index.js +7 -0
- package/esm/theme_ba_variables.css +149 -76
- package/esm/theme_jaipur_variables.css +149 -76
- package/hooks/useMediaSizes/index.d.ts +2 -2
- package/hooks/useMediaSizes/index.js +1 -1
- package/hooks/useTrapFocus/index.d.ts +1 -1
- package/hooks/useTrapFocus/index.js +3 -2
- package/index.d.ts +8 -3
- package/index.js +54 -35
- package/package.json +1 -1
- package/theme_ba_variables.css +149 -76
- package/theme_jaipur_variables.css +149 -76
package/Theme/breakpoints.js
CHANGED
|
@@ -1,39 +1,28 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
xs: 320
|
|
19
|
-
},
|
|
20
|
-
up: function up(breakpoint) {
|
|
21
|
-
var isMedia = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
22
|
-
return "".concat(isMedia ? "@media " : "", "(min-width: ").concat(this.values[breakpoint], "px)");
|
|
3
|
+
/**
|
|
4
|
+
* Breakpoints shared with the apps that use the kit.
|
|
5
|
+
* The values match the Tailwind CSS defaults on purpose; Tailwind is not a dependency.
|
|
6
|
+
*/
|
|
7
|
+
var BREAKPOINTS = {
|
|
8
|
+
sm: "40rem",
|
|
9
|
+
md: "48rem",
|
|
10
|
+
lg: "64rem",
|
|
11
|
+
xl: "80rem",
|
|
12
|
+
"2xl": "96rem"
|
|
13
|
+
};
|
|
14
|
+
/** Bare media queries, usable in `window.matchMedia`. Prefix with `@media ` in CSS-in-JS. */
|
|
15
|
+
var media = {
|
|
16
|
+
up: function up(name) {
|
|
17
|
+
return "(width >= ".concat(BREAKPOINTS[name], ")");
|
|
23
18
|
},
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
return "".concat(isMedia ? "@media " : "", "(max-width: ").concat(this.values[breakpoint] - 1, "px)");
|
|
19
|
+
down: function down(name) {
|
|
20
|
+
return "(width < ".concat(BREAKPOINTS[name], ")");
|
|
27
21
|
},
|
|
28
|
-
between: function between(
|
|
29
|
-
|
|
30
|
-
min = _ref2[0],
|
|
31
|
-
max = _ref2[1];
|
|
32
|
-
var isMedia = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
|
|
33
|
-
var from = this.values[min];
|
|
34
|
-
var to = this.values[max] - 1;
|
|
35
|
-
return "".concat(isMedia ? "@media " : "", "(min-width: ").concat(from, "px) and (max-width: ").concat(to, "px)");
|
|
22
|
+
between: function between(from, to) {
|
|
23
|
+
return "(".concat(BREAKPOINTS[from], " <= width < ").concat(BREAKPOINTS[to], ")");
|
|
36
24
|
}
|
|
37
25
|
};
|
|
38
26
|
|
|
39
|
-
exports.
|
|
27
|
+
exports.BREAKPOINTS = BREAKPOINTS;
|
|
28
|
+
exports.media = media;
|
package/Theme/colors/index.d.ts
CHANGED
|
@@ -24,10 +24,12 @@ declare const _default: {
|
|
|
24
24
|
PROMO_NEON: string;
|
|
25
25
|
STATUS_JP_SUCCESS: string;
|
|
26
26
|
STATUS_JP_SUCCESS_BG: string;
|
|
27
|
+
STATUS_JP_SUCCESS_BG_HOVER: string;
|
|
27
28
|
STATUS_JP_WARNING: string;
|
|
28
29
|
STATUS_JP_WARNING_BG: string;
|
|
29
30
|
STATUS_JP_ERROR_ACCENT: string;
|
|
30
31
|
STATUS_JP_ERROR: string;
|
|
32
|
+
STATUS_JP_ERROR_HOVER: string;
|
|
31
33
|
STATUS_JP_ERROR_BG: string;
|
|
32
34
|
STATUS_JP_INFO: string;
|
|
33
35
|
STATUS_JP_INFO_BG: string;
|
|
@@ -127,10 +129,12 @@ declare const _default: {
|
|
|
127
129
|
PRIMARY_BA_5: string;
|
|
128
130
|
STATUS_BA_SUCCESS: string;
|
|
129
131
|
STATUS_BA_SUCCESS_BG: string;
|
|
132
|
+
STATUS_BA_SUCCESS_BG_HOVER: string;
|
|
130
133
|
STATUS_BA_WARNING: string;
|
|
131
134
|
STATUS_BA_WARNING_BG: string;
|
|
132
135
|
STATUS_BA_ERROR_ACCENT: string;
|
|
133
136
|
STATUS_BA_ERROR: string;
|
|
137
|
+
STATUS_BA_ERROR_HOVER: string;
|
|
134
138
|
STATUS_BA_ERROR_BG: string;
|
|
135
139
|
STATUS_BA_INFO: string;
|
|
136
140
|
STATUS_BA_INFO_BG: string;
|
|
@@ -95,10 +95,12 @@ export declare const PurpleBA: {
|
|
|
95
95
|
export declare const StatusBA: {
|
|
96
96
|
STATUS_BA_SUCCESS: string;
|
|
97
97
|
STATUS_BA_SUCCESS_BG: string;
|
|
98
|
+
STATUS_BA_SUCCESS_BG_HOVER: string;
|
|
98
99
|
STATUS_BA_WARNING: string;
|
|
99
100
|
STATUS_BA_WARNING_BG: string;
|
|
100
101
|
STATUS_BA_ERROR_ACCENT: string;
|
|
101
102
|
STATUS_BA_ERROR: string;
|
|
103
|
+
STATUS_BA_ERROR_HOVER: string;
|
|
102
104
|
STATUS_BA_ERROR_BG: string;
|
|
103
105
|
STATUS_BA_INFO: string;
|
|
104
106
|
STATUS_BA_INFO_BG: string;
|
|
@@ -160,10 +162,12 @@ declare const Color: {
|
|
|
160
162
|
PROMO_NEON: string;
|
|
161
163
|
STATUS_BA_SUCCESS: string;
|
|
162
164
|
STATUS_BA_SUCCESS_BG: string;
|
|
165
|
+
STATUS_BA_SUCCESS_BG_HOVER: string;
|
|
163
166
|
STATUS_BA_WARNING: string;
|
|
164
167
|
STATUS_BA_WARNING_BG: string;
|
|
165
168
|
STATUS_BA_ERROR_ACCENT: string;
|
|
166
169
|
STATUS_BA_ERROR: string;
|
|
170
|
+
STATUS_BA_ERROR_HOVER: string;
|
|
167
171
|
STATUS_BA_ERROR_BG: string;
|
|
168
172
|
STATUS_BA_INFO: string;
|
|
169
173
|
STATUS_BA_INFO_BG: string;
|
|
@@ -99,10 +99,12 @@ var PurpleBA = {
|
|
|
99
99
|
var StatusBA = {
|
|
100
100
|
STATUS_BA_SUCCESS: "#244F18",
|
|
101
101
|
STATUS_BA_SUCCESS_BG: "#E4FFD2",
|
|
102
|
+
STATUS_BA_SUCCESS_BG_HOVER: LimeBA.LIME_BA_200,
|
|
102
103
|
STATUS_BA_WARNING: "#59470C",
|
|
103
104
|
STATUS_BA_WARNING_BG: "#FFF4BD",
|
|
104
105
|
STATUS_BA_ERROR_ACCENT: "#E5484D",
|
|
105
106
|
STATUS_BA_ERROR: "#7A1D21",
|
|
107
|
+
STATUS_BA_ERROR_HOVER: "#5F1519",
|
|
106
108
|
STATUS_BA_ERROR_BG: "#FFE8E5",
|
|
107
109
|
STATUS_BA_INFO: "#123B40",
|
|
108
110
|
STATUS_BA_INFO_BG: "#DDF7F7"
|
|
@@ -96,10 +96,12 @@ export declare const YellowJP: {
|
|
|
96
96
|
export declare const StatusJP: {
|
|
97
97
|
STATUS_JP_SUCCESS: string;
|
|
98
98
|
STATUS_JP_SUCCESS_BG: string;
|
|
99
|
+
STATUS_JP_SUCCESS_BG_HOVER: string;
|
|
99
100
|
STATUS_JP_WARNING: string;
|
|
100
101
|
STATUS_JP_WARNING_BG: string;
|
|
101
102
|
STATUS_JP_ERROR_ACCENT: string;
|
|
102
103
|
STATUS_JP_ERROR: string;
|
|
104
|
+
STATUS_JP_ERROR_HOVER: string;
|
|
103
105
|
STATUS_JP_ERROR_BG: string;
|
|
104
106
|
STATUS_JP_INFO: string;
|
|
105
107
|
STATUS_JP_INFO_BG: string;
|
|
@@ -161,10 +163,12 @@ declare const Color: {
|
|
|
161
163
|
PROMO_NEON: string;
|
|
162
164
|
STATUS_JP_SUCCESS: string;
|
|
163
165
|
STATUS_JP_SUCCESS_BG: string;
|
|
166
|
+
STATUS_JP_SUCCESS_BG_HOVER: string;
|
|
164
167
|
STATUS_JP_WARNING: string;
|
|
165
168
|
STATUS_JP_WARNING_BG: string;
|
|
166
169
|
STATUS_JP_ERROR_ACCENT: string;
|
|
167
170
|
STATUS_JP_ERROR: string;
|
|
171
|
+
STATUS_JP_ERROR_HOVER: string;
|
|
168
172
|
STATUS_JP_ERROR_BG: string;
|
|
169
173
|
STATUS_JP_INFO: string;
|
|
170
174
|
STATUS_JP_INFO_BG: string;
|
|
@@ -100,10 +100,12 @@ var YellowJP = {
|
|
|
100
100
|
var StatusJP = {
|
|
101
101
|
STATUS_JP_SUCCESS: "#46591B",
|
|
102
102
|
STATUS_JP_SUCCESS_BG: "#E6FFA9",
|
|
103
|
+
STATUS_JP_SUCCESS_BG_HOVER: LimeJP.LIME_JP_200,
|
|
103
104
|
STATUS_JP_WARNING: "#624D15",
|
|
104
105
|
STATUS_JP_WARNING_BG: "#FFF0AD",
|
|
105
106
|
STATUS_JP_ERROR_ACCENT: "#D94B69",
|
|
106
107
|
STATUS_JP_ERROR: "#7A263C",
|
|
108
|
+
STATUS_JP_ERROR_HOVER: PinkJP.PINK_JP_600,
|
|
107
109
|
STATUS_JP_ERROR_BG: "#FFE5EB",
|
|
108
110
|
STATUS_JP_INFO: "#303F6C",
|
|
109
111
|
STATUS_JP_INFO_BG: "#E4EDFF"
|