@odeyalo/uikit 0.0.14 → 0.0.16
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/README.md +28 -16
- package/dist/components/Button/types.d.ts +1 -0
- package/dist/components/date/Calendar/components/{CalendarTitle/CalendarTitle.d.ts → SwitchViewModeButton/SwitchViewModeButton.d.ts} +2 -2
- package/dist/components/date/Calendar/components/index.d.ts +1 -1
- package/dist/components/fields/AddableInputGroup/AddableInputGroup.d.ts +1 -1
- package/dist/components/fields/PhoneInput/__storibook__/PhoneInput.stories.d.ts +5 -1
- package/dist/components/fields/RangeInput/components/RangeInputBadge/RangeInputBadge.d.ts +1 -1
- package/dist/main.js +5343 -5345
- package/dist/styles.css +1 -0
- package/package.json +7 -7
- package/dist/main.css +0 -1
- package/styles/fonts.css +0 -1
- package/styles/fonts.scss +0 -39
- package/styles/reset.css +0 -93
- package/styles/reset.scss +0 -99
- package/styles/styles.css +0 -192
- package/styles/styles.scss +0 -12
- package/styles/theme/colors.css +0 -1
- package/styles/theme/colors.scss +0 -35
- package/styles/theme/index.css +0 -7
- package/styles/theme/index.scss +0 -7
- package/styles/theme/typography.css +0 -7
- package/styles/theme/typography.scss +0 -77
package/README.md
CHANGED
|
@@ -1,40 +1,52 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @odeyalo/uikit
|
|
2
2
|
|
|
3
3
|
React UI components library for building web applications.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
[](https://www.npmjs.com/package/@odeyalo/uikit)
|
|
6
|
+
[](https://opensource.org/licenses/MIT)
|
|
7
|
+
[](https://bundlephobia.com/package/@odeyalo/uikit)
|
|
8
|
+
[](https://gitlab.com/maksim4k1/odeyalo-uikit)
|
|
9
|
+
|
|
10
|
+
## 🚀 Install
|
|
6
11
|
|
|
7
12
|
```bash
|
|
8
13
|
npm install @odeyalo/uikit
|
|
14
|
+
# or
|
|
15
|
+
yarn add @odeyalo/uikit
|
|
9
16
|
```
|
|
10
17
|
|
|
11
|
-
##
|
|
18
|
+
## ⚡ Quick Start
|
|
12
19
|
```jsx
|
|
20
|
+
import React from 'react';
|
|
13
21
|
import { Button } from '@odeyalo/uikit';
|
|
14
|
-
|
|
15
|
-
|
|
22
|
+
import '@odeyalo/uikit/styles.css';
|
|
23
|
+
|
|
24
|
+
function App() {
|
|
25
|
+
return (
|
|
26
|
+
<>
|
|
27
|
+
<Button view="primary" size="m">Submit</Button>
|
|
28
|
+
</>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
16
31
|
```
|
|
17
32
|
|
|
18
|
-
|
|
33
|
+
## 🎨 Styles
|
|
19
34
|
|
|
20
|
-
Include
|
|
35
|
+
Include global CSS at the top of your entry file:
|
|
21
36
|
|
|
22
37
|
```js
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
import '@odeyalo/uikit/styles/fonts.css';
|
|
26
|
-
import '@odeyalo/uikit/styles/styles.css';
|
|
27
|
-
|
|
28
|
-
// ...
|
|
38
|
+
import '@odeyalo/uikit/styles.css';
|
|
29
39
|
```
|
|
40
|
+
- All base styles, colors, and typography are included.
|
|
41
|
+
- No extra configuration required.
|
|
30
42
|
|
|
31
|
-
## Development
|
|
43
|
+
## 🛠 Development
|
|
32
44
|
|
|
33
|
-
|
|
45
|
+
Clone the repo and run Storybook:
|
|
34
46
|
|
|
35
47
|
```bash
|
|
36
48
|
git clone git@gitlab.com:maksim4k1/odeyalo-uikit.git
|
|
37
49
|
cd odeyalo-uikit
|
|
38
|
-
npm
|
|
50
|
+
npm install
|
|
39
51
|
npm run dev
|
|
40
52
|
```
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { FC } from 'react';
|
|
2
2
|
import { CalendarViewMode } from '../../types';
|
|
3
|
-
interface
|
|
3
|
+
interface SwitchViewModeButtonProps {
|
|
4
4
|
currentDate: Date;
|
|
5
5
|
viewMode: CalendarViewMode;
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
changeViewModeHandler: () => void;
|
|
8
8
|
}
|
|
9
|
-
export declare const
|
|
9
|
+
export declare const SwitchViewModeButton: FC<SwitchViewModeButtonProps>;
|
|
10
10
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CalendarTitle } from './CalendarTitle/CalendarTitle';
|
|
2
1
|
export { DaysViewMode } from './DaysViewMode/DaysViewMode';
|
|
3
2
|
export { MonthsViewMode } from './MonthsViewMode/MonthsViewMode';
|
|
3
|
+
export { SwitchViewModeButton } from './SwitchViewModeButton/SwitchViewModeButton';
|
|
4
4
|
export { YearsViewMode } from './YearsViewMode/YearsViewMode';
|
|
@@ -7,5 +7,5 @@ interface AddableInputGroupBaseProps extends TextAreaProps {
|
|
|
7
7
|
}
|
|
8
8
|
type AddableInputGroupPropsWithoutTagAttributes = QAProps & DOMProps & AddableInputGroupBaseProps;
|
|
9
9
|
export type AddableInputGroupProps = AddableInputGroupPropsWithoutTagAttributes & Omit<TextAreaProps, keyof AddableInputGroupPropsWithoutTagAttributes>;
|
|
10
|
-
export declare const AddableInputGroup: import('react').ForwardRefExoticComponent<QAProps & DOMProps & AddableInputGroupBaseProps & Omit<TextAreaProps, "children" | "value" | "className" | "name" | "id" | "hidden" | "color" | "content" | "style" | "wrap" | "disabled" | "form" | "slot" | "title" | "qa" | "suppressHydrationWarning" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "autoComplete" | "cols" | "dirName" | "maxLength" | "minLength" | "dir" | "lang" | "nonce" | "part" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "onUpdate" | "errorMessage" | "placeholder" | "
|
|
10
|
+
export declare const AddableInputGroup: import('react').ForwardRefExoticComponent<QAProps & DOMProps & AddableInputGroupBaseProps & Omit<TextAreaProps, "children" | "value" | "className" | "name" | "id" | "hidden" | "color" | "content" | "style" | "wrap" | "disabled" | "form" | "slot" | "title" | "qa" | "suppressHydrationWarning" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "autoComplete" | "cols" | "dirName" | "maxLength" | "minLength" | "dir" | "lang" | "nonce" | "part" | "role" | "tabIndex" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onScrollEnd" | "onScrollEndCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onToggle" | "onBeforeToggle" | "onTransitionCancel" | "onTransitionCancelCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onTransitionRun" | "onTransitionRunCapture" | "onTransitionStart" | "onTransitionStartCapture" | "readOnly" | "accessKey" | "autoCapitalize" | "autoFocus" | "contentEditable" | "contextMenu" | "draggable" | "enterKeyHint" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "popover" | "popoverTargetAction" | "popoverTarget" | "inert" | "inputMode" | "is" | "exportparts" | "onUpdate" | "errorMessage" | "placeholder" | "required" | "minRows" | "maxRows" | "rows" | "lineHeight" | "paddingTop" | "paddingBottom" | "initialValues"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
11
11
|
export {};
|
|
@@ -3,7 +3,11 @@ declare const meta: {
|
|
|
3
3
|
title: string;
|
|
4
4
|
component: import('react').ForwardRefExoticComponent<import('..').PhoneInputProps & import('react').RefAttributes<HTMLSpanElement>>;
|
|
5
5
|
tags: string[];
|
|
6
|
-
argTypes: {
|
|
6
|
+
argTypes: {
|
|
7
|
+
readOnly: {
|
|
8
|
+
type: "boolean";
|
|
9
|
+
};
|
|
10
|
+
};
|
|
7
11
|
args: {};
|
|
8
12
|
};
|
|
9
13
|
export default meta;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Boundary } from '@floating-ui/dom';
|
|
2
2
|
import { FC } from 'react';
|
|
3
3
|
import { RangeInputSizeStyles } from '../../types.ts';
|
|
4
|
-
import { PopupAnchorElement } from '../../../../Popup/types
|
|
4
|
+
import { PopupAnchorElement } from '../../../../Popup/types';
|
|
5
5
|
type RangeInputBadgeProps = {
|
|
6
6
|
label: string;
|
|
7
7
|
sizeStyles: RangeInputSizeStyles;
|