visits-style 1.4.16 → 2.0.1

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.
Files changed (68) hide show
  1. package/README.md +59 -26
  2. package/dist/index.cjs.js +1 -1571
  3. package/dist/index.d.ts +447 -7
  4. package/dist/index.es.js +953 -1440
  5. package/dist/lib.css +26 -0
  6. package/package.json +9 -8
  7. package/dist/components/Accordion/index.d.ts +0 -12
  8. package/dist/components/AppBar/index.d.ts +0 -19
  9. package/dist/components/Modal/index.d.ts +0 -32
  10. package/dist/components/Popover/index.d.ts +0 -46
  11. package/dist/components/Portal/index.d.ts +0 -8
  12. package/dist/components/Spinner/index.d.ts +0 -12
  13. package/dist/components/Toast/ToastItem.d.ts +0 -2
  14. package/dist/components/Toast/index.d.ts +0 -2
  15. package/dist/components/Toast/types.d.ts +0 -44
  16. package/dist/components/Tooltip/index.d.ts +0 -37
  17. package/dist/components/index.d.ts +0 -10
  18. package/dist/elements/Box/index.d.ts +0 -10
  19. package/dist/elements/Button/ButtonGroup.d.ts +0 -3
  20. package/dist/elements/Button/TextButton.d.ts +0 -18
  21. package/dist/elements/Button/index.d.ts +0 -16
  22. package/dist/elements/Content/index.d.ts +0 -3
  23. package/dist/elements/Divider/index.d.ts +0 -3
  24. package/dist/elements/Grid/Col.d.ts +0 -12
  25. package/dist/elements/Grid/Container.d.ts +0 -7
  26. package/dist/elements/Grid/Row.d.ts +0 -3
  27. package/dist/elements/Icons/Approved.d.ts +0 -2
  28. package/dist/elements/Icons/ArrowDown.d.ts +0 -2
  29. package/dist/elements/Icons/ChevronLeftRound.d.ts +0 -2
  30. package/dist/elements/Icons/ChevronRightRound.d.ts +0 -2
  31. package/dist/elements/Icons/Close.d.ts +0 -2
  32. package/dist/elements/Icons/FileRound.d.ts +0 -2
  33. package/dist/elements/Icons/Pencil.d.ts +0 -2
  34. package/dist/elements/Icons/PencilSimple.d.ts +0 -2
  35. package/dist/elements/Icons/Plus.d.ts +0 -2
  36. package/dist/elements/Icons/Refresh.d.ts +0 -2
  37. package/dist/elements/Icons/User.d.ts +0 -2
  38. package/dist/elements/Icons/index.d.ts +0 -11
  39. package/dist/elements/Placeholder/index.d.ts +0 -3
  40. package/dist/elements/Progress/index.d.ts +0 -18
  41. package/dist/elements/Table/index.d.ts +0 -12
  42. package/dist/elements/Tag/index.d.ts +0 -15
  43. package/dist/elements/index.d.ts +0 -14
  44. package/dist/forms/Checkbox/index.d.ts +0 -8
  45. package/dist/forms/Field/index.d.ts +0 -7
  46. package/dist/forms/HelpMessage.d.ts +0 -8
  47. package/dist/forms/Radio/index.d.ts +0 -8
  48. package/dist/forms/Select/index.d.ts +0 -29
  49. package/dist/forms/Switch/index.d.ts +0 -21
  50. package/dist/forms/TextInput/index.d.ts +0 -22
  51. package/dist/forms/Textarea/index.d.ts +0 -11
  52. package/dist/forms/index.d.ts +0 -7
  53. package/dist/hooks/useIsomorphicLayoutEffect.d.ts +0 -3
  54. package/dist/styles/normalize.d.ts +0 -3
  55. package/dist/theme.d.ts +0 -3
  56. package/dist/types.d.ts +0 -36
  57. package/dist/utils/arrow.d.ts +0 -1
  58. package/dist/utils/boxShadow.d.ts +0 -1
  59. package/dist/utils/disabledColor.d.ts +0 -2
  60. package/dist/utils/findColorInvert.d.ts +0 -2
  61. package/dist/utils/hambuger.d.ts +0 -1
  62. package/dist/utils/index.d.ts +0 -6
  63. package/dist/utils/isClient.d.ts +0 -2
  64. package/dist/utils/media.d.ts +0 -6
  65. package/dist/utils/setAlign.d.ts +0 -3
  66. package/dist/utils/setSize.d.ts +0 -4
  67. package/dist/utils/stopPropagation.d.ts +0 -2
  68. package/dist/utils/wrapEvent.d.ts +0 -2
@@ -1,22 +0,0 @@
1
- import React, { InputHTMLAttributes } from 'react';
2
- export interface Props extends InputHTMLAttributes<HTMLInputElement> {
3
- /**
4
- * 'text' | 'number' | 'password' | 'email' | 'tel' | 'search'
5
- * @default 'text'
6
- */
7
- type?: 'text' | 'number' | 'password' | 'email' | 'tel' | 'search';
8
- /** エラーの発生時の表示テキスト */
9
- error?: React.ReactNode;
10
- /** 捕捉テキスト */
11
- help?: React.ReactNode;
12
- /** ボックス系のデザインでする */
13
- outline?: boolean;
14
- /** 左側のアイコン */
15
- leftIcon?: React.ReactNode;
16
- /** 右側のアイコン */
17
- rightIcon?: React.ReactNode;
18
- /** エラーが発生しても、エラーメッセージを出さないようにする */
19
- noErrorMessage?: boolean;
20
- }
21
- declare const TextInput: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
22
- export default TextInput;
@@ -1,11 +0,0 @@
1
- import React, { TextareaHTMLAttributes } from 'react';
2
- export interface Props extends TextareaHTMLAttributes<HTMLTextAreaElement> {
3
- /** エラーの発生時の表示テキスト */
4
- error?: React.ReactNode;
5
- /** 捕捉テキスト */
6
- help?: React.ReactNode;
7
- /** エラーが発生しても、エラーメッセージを出さないようにする */
8
- noErrorMessage?: boolean;
9
- }
10
- declare const Textarea: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLTextAreaElement>>;
11
- export default Textarea;
@@ -1,7 +0,0 @@
1
- export { default as Field, type Props as FieldProps } from './Field';
2
- export { default as TextInput, type Props as TextInputProps } from './TextInput';
3
- export { default as Textarea, type Props as TextareaProps } from './Textarea';
4
- export { default as Checkbox, type Props as CheckboxProps } from './Checkbox';
5
- export { default as Select, type Props as SelectProps } from './Select';
6
- export { default as Radio, type Props as RadioProps } from './Radio';
7
- export { default as Switch, type Props as SwitchProps } from './Switch';
@@ -1,3 +0,0 @@
1
- import { useLayoutEffect } from 'react';
2
- declare const _default: typeof useLayoutEffect;
3
- export default _default;
@@ -1,3 +0,0 @@
1
- /*! based on normalize.css v8.0.0 | MIT License | github.com/necolas/normalize.css */
2
- declare const normalized: any;
3
- export default normalized;
package/dist/theme.d.ts DELETED
@@ -1,3 +0,0 @@
1
- import { ThemeType } from './types';
2
- declare const theme: ThemeType;
3
- export default theme;
package/dist/types.d.ts DELETED
@@ -1,36 +0,0 @@
1
- export type ColorType = 'light' | 'primary' | 'info' | 'link' | 'success' | 'warning' | 'danger' | 'dark' | 'text' | string;
2
- export type SizeType = 'small' | 'medium' | 'large';
3
- export type ColSizeType = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
4
- export type AlignType = 'left' | 'right' | 'center';
5
- export interface ThemeType {
6
- fontSize: string;
7
- fontFamily: string;
8
- gutter: number;
9
- smallGutter: number;
10
- media: {
11
- mobile: string;
12
- tablet: string;
13
- desktop: string;
14
- fullhd: string;
15
- };
16
- radius: string;
17
- primary: string;
18
- link: string;
19
- info: string;
20
- success: string;
21
- warning: string;
22
- danger: string;
23
- dark: string;
24
- black: string;
25
- white: string;
26
- text: string;
27
- textDark: string;
28
- textLight: string;
29
- textStrong: string;
30
- background: string;
31
- border: string;
32
- borderHover: string;
33
- borderActive: string;
34
- responsive: boolean;
35
- [key: string]: string | number | boolean | any;
36
- }
@@ -1 +0,0 @@
1
- export default function Arrow(color: string): import("styled-components").RuleSet<object>;
@@ -1 +0,0 @@
1
- export default function boxShadow(size: string, color: string, amount?: number): import("styled-components").RuleSet<object>;
@@ -1,2 +0,0 @@
1
- import { ThemeType } from '../types';
2
- export default function disabledColor(theme: ThemeType): import("styled-components").RuleSet<object>;
@@ -1,2 +0,0 @@
1
- import { ThemeType } from '../types';
2
- export default function findColorInvert({ black, white }: ThemeType, color: string): string;
@@ -1 +0,0 @@
1
- export default function hamburger(size: string): import("styled-components").RuleSet<object>;
@@ -1,6 +0,0 @@
1
- export { default as findColorInvert } from './findColorInvert';
2
- export { default as hambuger } from './hambuger';
3
- export { default as boxShadow } from './boxShadow';
4
- export { default as arrow } from './arrow';
5
- export { default as setSize } from './setSize';
6
- export * from './media';
@@ -1,2 +0,0 @@
1
- declare const _default: boolean;
2
- export default _default;
@@ -1,6 +0,0 @@
1
- import type { Interpolation, ExecutionContext } from 'styled-components/dist/types';
2
- export declare function mediaMobile({ theme }: ExecutionContext): Interpolation<object>;
3
- export declare function mediaTablet({ theme }: ExecutionContext): Interpolation<object>;
4
- export declare function mediaDesktop({ theme }: ExecutionContext): Interpolation<object>;
5
- export declare function mediaFullHD({ theme }: ExecutionContext): Interpolation<object>;
6
- export declare function mediaUntilFullHD({ theme }: ExecutionContext): Interpolation<object>;
@@ -1,3 +0,0 @@
1
- export default function setAlign({ align }: {
2
- align?: 'left' | 'right' | 'center';
3
- }): "center" | "space-evenly" | "flex-end" | "flex-start";
@@ -1,4 +0,0 @@
1
- import { SizeType } from '../types';
2
- type SizePropsNameType = 'font-size' | 'height';
3
- export default function setSize(name: SizePropsNameType, size?: SizeType): string;
4
- export {};
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function stopPropagation(e?: React.MouseEvent<Element>): void;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export default function wrapEvent(child: React.ReactElement, handlerName: string, ourHandler: React.EventHandler<any>): (event: any) => void;