@nattstack/ui 0.0.59 → 0.0.60
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.
|
@@ -21,9 +21,10 @@ interface ButtonInternalProps extends Omit<ComponentProps<"button">, "aria-press
|
|
|
21
21
|
isIconOnly?: boolean;
|
|
22
22
|
isLoading?: boolean;
|
|
23
23
|
isRounded?: boolean;
|
|
24
|
-
size?:
|
|
24
|
+
size?: ButtonSize;
|
|
25
25
|
variant?: "ghost" | "primary" | "secondary";
|
|
26
26
|
}
|
|
27
|
+
type ButtonSize = keyof typeof BUTTON_CLASS_NAME.SIZE;
|
|
27
28
|
type ButtonUnionProps = ButtonIconProps | ButtonProps;
|
|
28
29
|
declare function Button(props: ButtonUnionProps): JSX.Element;
|
|
29
30
|
declare const BUTTON_CLASS_NAME: {
|
|
@@ -101,8 +102,9 @@ interface InputProps extends Omit<ComponentProps<"input">, "aria-pressed" | "dis
|
|
|
101
102
|
isRequired?: boolean;
|
|
102
103
|
isRounded?: boolean;
|
|
103
104
|
isValid?: boolean;
|
|
104
|
-
size?:
|
|
105
|
+
size?: InputSize;
|
|
105
106
|
}
|
|
107
|
+
type InputSize = keyof typeof INPUT_CLASS_NAME.SIZE;
|
|
106
108
|
declare function Input(props: InputProps): JSX.Element;
|
|
107
109
|
declare const INPUT_CLASS_NAME: {
|
|
108
110
|
readonly BASE: string;
|
|
@@ -294,8 +296,9 @@ interface SwitchProps extends Omit<ComponentProps<typeof Switch$1.Root>, "checke
|
|
|
294
296
|
isDisabled?: boolean;
|
|
295
297
|
isReadOnly?: boolean;
|
|
296
298
|
isRequired?: boolean;
|
|
297
|
-
size?:
|
|
299
|
+
size?: SwitchSize;
|
|
298
300
|
}
|
|
301
|
+
type SwitchSize = keyof typeof SWITCH_CLASS_NAME.SIZE;
|
|
299
302
|
declare function Switch(props: SwitchProps): JSX.Element;
|
|
300
303
|
declare const SWITCH_CLASS_NAME: {
|
|
301
304
|
readonly BASE: string;
|
|
@@ -963,7 +963,8 @@
|
|
|
963
963
|
padding: 4px 8px;
|
|
964
964
|
font-size: 13px;
|
|
965
965
|
font-weight: 500;
|
|
966
|
-
transition: opacity
|
|
966
|
+
transition-property: opacity, scale;
|
|
967
|
+
transition-duration: .15s;
|
|
967
968
|
box-shadow: 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;
|
|
968
969
|
}
|
|
969
970
|
|