@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 CHANGED
@@ -1,40 +1,52 @@
1
- # UIKit
1
+ # @odeyalo/uikit
2
2
 
3
3
  React UI components library for building web applications.
4
4
 
5
- ## Install
5
+ [![npm version](https://img.shields.io/npm/v/@odeyalo/uikit.svg)](https://www.npmjs.com/package/@odeyalo/uikit)
6
+ [![license](https://img.shields.io/npm/l/@odeyalo/uikit.svg)](https://opensource.org/licenses/MIT)
7
+ [![bundle size](https://img.shields.io/bundlephobia/minzip/@odeyalo/uikit)](https://bundlephobia.com/package/@odeyalo/uikit)
8
+ [![GitLab](https://img.shields.io/badge/GitLab-odeyalo--uikit-blue?logo=gitlab&logoColor=white)](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
- ## Usage
18
+ ## ⚡ Quick Start
12
19
  ```jsx
20
+ import React from 'react';
13
21
  import { Button } from '@odeyalo/uikit';
14
-
15
- const SubmitButton = <Button view="action" size="m" />;
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
- ### Styles
33
+ ## 🎨 Styles
19
34
 
20
- Include base CSS styles at the top of your entry file:
35
+ Include global CSS at the top of your entry file:
21
36
 
22
37
  ```js
23
- // index.js
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
- Start development server with Storybook:
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 i
50
+ npm install
39
51
  npm run dev
40
52
  ```
@@ -7,6 +7,7 @@ export interface BaseButtonProps {
7
7
  shape?: ButtonShape;
8
8
  width?: ButtonWidth;
9
9
  disabled?: boolean;
10
+ readOnly?: boolean;
10
11
  loading?: boolean;
11
12
  align?: ButtonAlign;
12
13
  }
@@ -1,10 +1,10 @@
1
1
  import { FC } from 'react';
2
2
  import { CalendarViewMode } from '../../types';
3
- interface CalendarTitleProps {
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 CalendarTitle: FC<CalendarTitleProps>;
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" | "readOnly" | "required" | "minRows" | "maxRows" | "rows" | "lineHeight" | "paddingTop" | "paddingBottom" | "initialValues"> & import('react').RefAttributes<HTMLDivElement>>;
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.ts';
4
+ import { PopupAnchorElement } from '../../../../Popup/types';
5
5
  type RangeInputBadgeProps = {
6
6
  label: string;
7
7
  sizeStyles: RangeInputSizeStyles;