thailife-react 0.0.17 → 0.0.18

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.
@@ -1,4 +1,77 @@
1
- export { default as theme } from "./theme";
2
- export { default as ThemeProvider } from "./ThemeProvider";
3
- export type { Theme } from "./theme";
1
+ export declare const cssClasses: {
2
+ readonly button: "btn";
3
+ readonly buttonContained: "btn--contained";
4
+ readonly buttonOutlined: "btn--outlined";
5
+ readonly buttonLink: "btn--link";
6
+ readonly buttonSmall: "btn--sm";
7
+ readonly buttonMedium: "btn--md";
8
+ readonly buttonLarge: "btn--lg";
9
+ readonly buttonError: "btn--error";
10
+ readonly buttonDark: "btn--dark";
11
+ readonly buttonLight: "btn--light";
12
+ readonly buttonFullWidth: "btn--full-width";
13
+ readonly inputContainer: "input-container";
14
+ readonly inputContainerFullWidth: "input-container--full-width";
15
+ readonly inputLabel: "input-label";
16
+ readonly input: "input";
17
+ readonly inputError: "input--error";
18
+ readonly inputFullWidth: "input--full-width";
19
+ readonly inputHelperText: "input-helper-text";
20
+ readonly inputHelperTextError: "input-helper-text--error";
21
+ readonly checkboxContainer: "checkbox-container";
22
+ readonly checkboxContainerFullWidth: "checkbox-container--full-width";
23
+ readonly checkboxWrapper: "checkbox-wrapper";
24
+ readonly checkbox: "checkbox";
25
+ readonly checkboxError: "checkbox--error";
26
+ readonly checkboxLabelContainer: "checkbox-label-container";
27
+ readonly checkboxLabel: "checkbox-label";
28
+ readonly radioContainer: "radio-container";
29
+ readonly radioContainerFullWidth: "radio-container--full-width";
30
+ readonly radioWrapper: "radio-wrapper";
31
+ readonly radio: "radio";
32
+ readonly radioError: "radio--error";
33
+ readonly radioLabelContainer: "radio-label-container";
34
+ readonly radioLabel: "radio-label";
35
+ readonly selectContainer: "select-container";
36
+ readonly selectContainerFullWidth: "select-container--full-width";
37
+ readonly selectLabel: "select-label";
38
+ readonly selectWrapper: "select-wrapper";
39
+ readonly select: "select";
40
+ readonly selectError: "select--error";
41
+ readonly selectFullWidth: "select--full-width";
42
+ readonly selectIcon: "select-icon";
43
+ readonly textareaContainer: "textarea-container";
44
+ readonly textareaContainerFullWidth: "textarea-container--full-width";
45
+ readonly textareaLabel: "textarea-label";
46
+ readonly textarea: "textarea";
47
+ readonly textareaError: "textarea--error";
48
+ readonly textareaFullWidth: "textarea--full-width";
49
+ readonly inputFileContainer: "input-file-container";
50
+ readonly inputFileContainerFullWidth: "input-file-container--full-width";
51
+ readonly inputFileLabel: "input-file-label";
52
+ readonly inputFileWrapper: "input-file-wrapper";
53
+ readonly inputFileHidden: "input-file-hidden";
54
+ readonly inputFileUploadArea: "input-file-upload-area";
55
+ readonly inputFileUploadAreaError: "input-file-upload-area--error";
56
+ readonly inputFileUploadAreaFullWidth: "input-file-upload-area--full-width";
57
+ readonly inputFileButtonText: "input-file-button-text";
58
+ readonly inputFileMultipleText: "input-file-multiple-text";
59
+ readonly textCenter: "text-center";
60
+ readonly textLeft: "text-left";
61
+ readonly textRight: "text-right";
62
+ readonly fontBold: "font-bold";
63
+ readonly fontNormal: "font-normal";
64
+ readonly fontLight: "font-light";
65
+ readonly rounded: "rounded";
66
+ readonly roundedSm: "rounded-sm";
67
+ readonly roundedLg: "rounded-lg";
68
+ readonly roundedFull: "rounded-full";
69
+ readonly shadow: "shadow";
70
+ readonly shadowSm: "shadow-sm";
71
+ readonly shadowMd: "shadow-md";
72
+ readonly shadowLg: "shadow-lg";
73
+ readonly shadowXl: "shadow-xl";
74
+ };
75
+ export type CSSClasses = typeof cssClasses;
76
+ export default cssClasses;
4
77
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC3D,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwFb,CAAC;AAEX,MAAM,MAAM,UAAU,GAAG,OAAO,UAAU,CAAC;AAC3C,eAAe,UAAU,CAAC"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "thailife-react",
3
- "version": "0.0.17",
4
- "description": "A modern UI library built with React and Emotion",
3
+ "version": "0.0.18",
4
+ "description": "A modern UI library built with React and CSS",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
7
7
  "types": "dist/index.d.ts",
@@ -25,7 +25,7 @@
25
25
  "react",
26
26
  "ui",
27
27
  "components",
28
- "emotion",
28
+ "css",
29
29
  "typescript"
30
30
  ],
31
31
  "author": "ThaiLife",
@@ -84,9 +84,5 @@
84
84
  "ts-jest": "^29.1.0",
85
85
  "typescript": "^5.2.0",
86
86
  "vite": "^5.0.0"
87
- },
88
- "dependencies": {
89
- "@emotion/react": "11.14.0",
90
- "@emotion/styled": "11.14.1"
91
87
  }
92
88
  }
@@ -1,7 +0,0 @@
1
- import React from "react";
2
- interface ThemeProviderProps {
3
- children: React.ReactNode;
4
- }
5
- export declare const ThemeProvider: React.FC<ThemeProviderProps>;
6
- export default ThemeProvider;
7
- //# sourceMappingURL=ThemeProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ThemeProvider.d.ts","sourceRoot":"","sources":["../../src/styles/ThemeProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAI1B,UAAU,kBAAkB;IAC1B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAQtD,CAAC;AAEF,eAAe,aAAa,CAAC"}