taro-react-uilib 1.4.7 → 1.4.8

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.
@@ -77,13 +77,12 @@
77
77
  flex: 1;
78
78
  height: 100%;
79
79
  margin-left: 30px;
80
- & > input {
80
+ &-native {
81
81
  border: 0 none;
82
82
  display: block;
83
83
  font-size: 32px;
84
84
  width: 100%;
85
- }
86
- input {
85
+ caret-color: var(--color-primary);
87
86
  &::placeholder {
88
87
  font-size: 28px;
89
88
  color: var(--font-color-tertiary);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taro-react-uilib",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "基于taro的跨端组件库",
5
5
  "templateInfo": {
6
6
  "name": "default",
@@ -1,3 +1,5 @@
1
+ import { ReactNode } from "react";
1
2
  export declare type XHComponentCommonProps = {
2
3
  className?: string;
4
+ children?: ReactNode | undefined;
3
5
  };
@@ -1,9 +0,0 @@
1
- declare const _default: {
2
- success: any;
3
- empty: any;
4
- fail: any;
5
- networkErr: any;
6
- submitted: any;
7
- wait: any;
8
- };
9
- export default _default;
@@ -1,29 +0,0 @@
1
- /// <reference types="react" />
2
- import './button.css';
3
- interface ButtonProps {
4
- /**
5
- * Is this the principal call to action on the page?
6
- */
7
- primary?: boolean;
8
- /**
9
- * What background color to use
10
- */
11
- backgroundColor?: string;
12
- /**
13
- * How large should the button be?
14
- */
15
- size?: 'small' | 'medium' | 'large';
16
- /**
17
- * Button contents
18
- */
19
- label: string;
20
- /**
21
- * Optional click handler
22
- */
23
- onClick?: () => void;
24
- }
25
- /**
26
- * Primary UI component for user interaction
27
- */
28
- export declare const Button: ({ primary, size, backgroundColor, label, ...props }: ButtonProps) => JSX.Element;
29
- export {};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import './header.css';
3
- interface HeaderProps {
4
- user?: {};
5
- onLogin: () => void;
6
- onLogout: () => void;
7
- onCreateAccount: () => void;
8
- }
9
- export declare const Header: ({ user, onLogin, onLogout, onCreateAccount }: HeaderProps) => JSX.Element;
10
- export {};
@@ -1,10 +0,0 @@
1
- /// <reference types="react" />
2
- import './page.css';
3
- interface PageProps {
4
- user?: {};
5
- onLogin: () => void;
6
- onLogout: () => void;
7
- onCreateAccount: () => void;
8
- }
9
- export declare const Page: ({ user, onLogin, onLogout, onCreateAccount }: PageProps) => JSX.Element;
10
- export {};