@agility/plenum-ui 2.0.0-rc4 → 2.0.0-rc6
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 +1 -1
- package/dist/index.d.ts +76 -8
- package/dist/index.js +195 -67
- package/dist/index.js.map +4 -4
- package/dist/lib/tailwind.css +63510 -0
- package/dist/types/stories/index.d.ts +3 -3
- package/dist/types/stories/molecules/index.d.ts +3 -3
- package/dist/types/stories/molecules/inputs/InputCounter/InputCounter.d.ts +10 -0
- package/dist/types/stories/molecules/inputs/InputCounter/index.d.ts +2 -0
- package/dist/types/stories/molecules/inputs/TextInput/TextInput.d.ts +39 -0
- package/dist/types/stories/molecules/inputs/TextInput/index.d.ts +4 -0
- package/dist/types/stories/molecules/inputs/index.d.ts +3 -2
- package/package.json +2 -2
- package/stories/Introduction.mdx +1 -1
- package/stories/index.ts +7 -3
- package/stories/molecules/index.ts +17 -3
- package/stories/molecules/inputs/TextInput/index.tsx +4 -2
- package/stories/molecules/inputs/index.ts +14 -1
package/README.md
CHANGED
|
@@ -27,7 +27,7 @@ In your app entry point (i.e. \`_app.tsx\`), import the \`globals.css\` file fro
|
|
|
27
27
|
|
|
28
28
|
```jsx
|
|
29
29
|
import "<RELATIVE_PATH>/globals.css";
|
|
30
|
-
import "@agility/plenum-ui/lib/tailwind.css";
|
|
30
|
+
import "@agility/plenum-ui/dist/lib/tailwind.css";
|
|
31
31
|
```
|
|
32
32
|
|
|
33
33
|
Make sure to add any additional styles before these two import statements to prevent overwriting the Plenum styling.
|
package/dist/index.d.ts
CHANGED
|
@@ -401,19 +401,37 @@ declare module '@agility/plenum-ui/stories/atoms/loaders/index' {
|
|
|
401
401
|
}
|
|
402
402
|
declare module '@agility/plenum-ui/stories/index' {
|
|
403
403
|
import { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, UnifiedIconName, IconName, FAIconName, BTNActionType, Avatar, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, isFAIcon, isHeroIcon, isTablerIcon, isUnifiedIconName } from "@agility/plenum-ui/stories/atoms/index";
|
|
404
|
-
import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch } from "@agility/plenum-ui/stories/molecules/index";
|
|
404
|
+
import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch, TextInput, ITextInputProps } from "@agility/plenum-ui/stories/molecules/index";
|
|
405
405
|
import { IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons } from "@agility/plenum-ui/stories/organisms/index";
|
|
406
|
-
export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, UnifiedIconName, IconName, FAIconName, BTNActionType };
|
|
407
|
-
export { Avatar, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, isFAIcon, isHeroIcon, isTablerIcon, isUnifiedIconName };
|
|
406
|
+
export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, IAnimatedLabelInputProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, UnifiedIconName, IconName, FAIconName, BTNActionType, ITextInputProps };
|
|
407
|
+
export { Avatar, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, isFAIcon, isHeroIcon, isTablerIcon, isUnifiedIconName, TextInput };
|
|
408
408
|
|
|
409
409
|
}
|
|
410
410
|
declare module '@agility/plenum-ui/stories/layouts/index' {
|
|
411
411
|
|
|
412
412
|
}
|
|
413
413
|
declare module '@agility/plenum-ui/stories/molecules/index' {
|
|
414
|
-
import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch } from "@agility/plenum-ui/stories/molecules/inputs/index";
|
|
415
|
-
export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes };
|
|
416
|
-
export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch };
|
|
414
|
+
import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch, ITextInputProps, TextInput } from "@agility/plenum-ui/stories/molecules/inputs/index";
|
|
415
|
+
export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes, ITextInputProps };
|
|
416
|
+
export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch, TextInput };
|
|
417
|
+
|
|
418
|
+
}
|
|
419
|
+
declare module '@agility/plenum-ui/stories/molecules/inputs/InputCounter/InputCounter' {
|
|
420
|
+
import { FC } from "react";
|
|
421
|
+
export interface IInputCounterProps {
|
|
422
|
+
/** Counter limit */
|
|
423
|
+
limit: number | undefined;
|
|
424
|
+
/** Counter current number */
|
|
425
|
+
current: number;
|
|
426
|
+
}
|
|
427
|
+
/** Primary UI component for user interaction */
|
|
428
|
+
const InputCounter: FC<IInputCounterProps>;
|
|
429
|
+
export default InputCounter;
|
|
430
|
+
|
|
431
|
+
}
|
|
432
|
+
declare module '@agility/plenum-ui/stories/molecules/inputs/InputCounter/index' {
|
|
433
|
+
export { default } from '@agility/plenum-ui/stories/molecules/inputs/InputCounter/InputCounter';
|
|
434
|
+
export * from '@agility/plenum-ui/stories/molecules/inputs/InputCounter/InputCounter';
|
|
417
435
|
|
|
418
436
|
}
|
|
419
437
|
declare module '@agility/plenum-ui/stories/molecules/inputs/InputField/InputField' {
|
|
@@ -504,6 +522,55 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/NestedInputButton/in
|
|
|
504
522
|
export type { INestedInputButtonProps };
|
|
505
523
|
export default NestedInputButton;
|
|
506
524
|
|
|
525
|
+
}
|
|
526
|
+
declare module '@agility/plenum-ui/stories/molecules/inputs/TextInput/TextInput' {
|
|
527
|
+
import React from "react";
|
|
528
|
+
import { AcceptedInputTypes } from "@agility/plenum-ui/stories/molecules/inputs/InputField/index";
|
|
529
|
+
export interface ITextInputProps {
|
|
530
|
+
/** Input type*/
|
|
531
|
+
type: AcceptedInputTypes;
|
|
532
|
+
/** Input ID */
|
|
533
|
+
id?: string;
|
|
534
|
+
/** Input Name */
|
|
535
|
+
name?: string;
|
|
536
|
+
/** Label for the input */
|
|
537
|
+
label?: string;
|
|
538
|
+
/** Force the focus state on the input */
|
|
539
|
+
isFocused?: boolean;
|
|
540
|
+
/** Error state */
|
|
541
|
+
isError?: boolean;
|
|
542
|
+
/** If field is required */
|
|
543
|
+
isRequired?: boolean;
|
|
544
|
+
/** Disabled state */
|
|
545
|
+
isDisabled?: boolean;
|
|
546
|
+
/** Readonly state */
|
|
547
|
+
isReadonly?: boolean;
|
|
548
|
+
/** Set default value */
|
|
549
|
+
defaultValue?: string;
|
|
550
|
+
/** Message shown under the text field */
|
|
551
|
+
message?: string;
|
|
552
|
+
/** Input character counter */
|
|
553
|
+
isShowCounter?: boolean;
|
|
554
|
+
/** Max length of input character */
|
|
555
|
+
maxLength?: number;
|
|
556
|
+
/** Callback on change */
|
|
557
|
+
onChange(value: string): void;
|
|
558
|
+
/** input value */
|
|
559
|
+
value: string;
|
|
560
|
+
/**Placeholder input text*/
|
|
561
|
+
placeholder?: string;
|
|
562
|
+
className?: string;
|
|
563
|
+
}
|
|
564
|
+
const _TextInput: React.ForwardRefExoticComponent<ITextInputProps & React.RefAttributes<HTMLInputElement>>;
|
|
565
|
+
export default _TextInput;
|
|
566
|
+
|
|
567
|
+
}
|
|
568
|
+
declare module '@agility/plenum-ui/stories/molecules/inputs/TextInput/index' {
|
|
569
|
+
import TextInput from "@agility/plenum-ui/stories/molecules/inputs/TextInput/TextInput";
|
|
570
|
+
import { ITextInputProps } from "@agility/plenum-ui/stories/molecules/inputs/TextInput/TextInput";
|
|
571
|
+
export type { ITextInputProps };
|
|
572
|
+
export default TextInput;
|
|
573
|
+
|
|
507
574
|
}
|
|
508
575
|
declare module '@agility/plenum-ui/stories/molecules/inputs/checkbox/Checkbox' {
|
|
509
576
|
import { FC } from "react";
|
|
@@ -612,9 +679,10 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/index' {
|
|
|
612
679
|
import Radio, { IRadioProps } from "@agility/plenum-ui/stories/molecules/inputs/radio/index";
|
|
613
680
|
import Select, { ISelectProps } from "@agility/plenum-ui/stories/molecules/inputs/select/index";
|
|
614
681
|
import TextAreaField, { ITextAreaFieldProps } from "@agility/plenum-ui/stories/molecules/inputs/textArea/index";
|
|
682
|
+
import TextInput, { ITextInputProps } from "@agility/plenum-ui/stories/molecules/inputs/TextInput/index";
|
|
615
683
|
import ToggleSwitch, { IToggleSwitchProps } from "@agility/plenum-ui/stories/molecules/inputs/toggleSwitch/index";
|
|
616
|
-
export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, IToggleSwitchProps, AcceptedInputTypes };
|
|
617
|
-
export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch };
|
|
684
|
+
export type { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextAreaFieldProps, ITextInputProps, IToggleSwitchProps, AcceptedInputTypes };
|
|
685
|
+
export { Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, TextAreaField, ToggleSwitch, TextInput };
|
|
618
686
|
|
|
619
687
|
}
|
|
620
688
|
declare module '@agility/plenum-ui/stories/molecules/inputs/radio/Radio' {
|