@agility/plenum-ui 2.0.0-rc12 → 2.0.0-rc14
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/build.js +8 -4
- package/dist/index.d.ts +8 -10
- package/dist/index.js +1 -6372
- package/dist/index.js.map +3 -3
- package/dist/types/stories/atoms/buttons/Button/Button.d.ts +2 -2
- package/dist/types/stories/atoms/buttons/Capsule/Capsule.d.ts +1 -1
- package/dist/types/stories/atoms/icons/DynamicIcon.d.ts +1 -1
- package/dist/types/stories/atoms/icons/TablerIcon.d.ts +1 -1
- package/dist/types/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.d.ts +3 -2
- package/package.json +29 -4
- package/rollup.config.mjs +42 -0
- package/scripts/build.sh +53 -0
- package/scripts/resolve-files.js +32 -0
- package/scripts/rewrite-imports.js +24 -0
- package/stories/atoms/buttons/Button/Button.tsx +3 -2
- package/stories/atoms/buttons/Capsule/Capsule.tsx +2 -1
- package/stories/atoms/icons/DynamicIcon.tsx +2 -2
- package/stories/atoms/icons/TablerIcon.tsx +1 -1
- package/stories/atoms/loaders/Loader.tsx +12 -6
- package/stories/molecules/inputs/textArea/TextArea.tsx +13 -16
- package/stories/organisms/AnimatedLabelInput/AnimatedLabelInput.tsx +38 -35
- package/stories/organisms/AnimatedLabelTextArea/AnimatedLabelTextArea.tsx +3 -3
- package/stories/organisms/DropdownComponent/DropdownComponent.tsx +1 -1
- package/stories/organisms/index.ts +9 -1
- package/tsconfig.lib.json +13 -6
- package/dist/types/stories/layouts/index.d.ts +0 -0
- package/stories/layouts/CardLayout/CardLayout.stories.tsx +0 -18
- package/stories/layouts/CardLayout/CardLayout.tsx +0 -22
- package/stories/layouts/CardLayout/index.tsx +0 -3
- package/stories/layouts/ModalLayout/ModalLayout.stories.tsx +0 -18
- package/stories/layouts/ModalLayout/ModalLayout.tsx +0 -22
- package/stories/layouts/ModalLayout/index.tsx +0 -3
- package/stories/layouts/index.ts +0 -0
- package/stories/organisms/DropdownComponent/Dropdown.test.tsx +0 -0
- /package/dist/{lib/tailwind.css → tailwind.css} +0 -0
package/build.js
CHANGED
|
@@ -15,11 +15,17 @@ execSync("tsc --emitDeclarationOnly --project tsconfig.lib.json", { stdio: "inhe
|
|
|
15
15
|
// Build script using esbuild
|
|
16
16
|
esbuild
|
|
17
17
|
.build({
|
|
18
|
+
logLevel: "info",
|
|
18
19
|
entryPoints: [path.resolve(__dirname, "stories/index.ts")],
|
|
20
|
+
|
|
19
21
|
bundle: true,
|
|
20
22
|
platform: "browser",
|
|
21
|
-
target: ["
|
|
22
|
-
|
|
23
|
+
target: ["esnext"],
|
|
24
|
+
minify: true,
|
|
25
|
+
pure: ["React.createElement"],
|
|
26
|
+
jsx: 'transform',
|
|
27
|
+
loader: { '.js': 'jsx' },
|
|
28
|
+
|
|
23
29
|
outdir: path.resolve(__dirname, "dist"),
|
|
24
30
|
sourcemap: true,
|
|
25
31
|
external: [
|
|
@@ -32,8 +38,6 @@ esbuild
|
|
|
32
38
|
"@tabler/icons",
|
|
33
39
|
"@tabler/icons-react",
|
|
34
40
|
"classnames",
|
|
35
|
-
"react",
|
|
36
|
-
"react-dom",
|
|
37
41
|
"react-icons"
|
|
38
42
|
],
|
|
39
43
|
format: "esm"
|
package/dist/index.d.ts
CHANGED
|
@@ -83,10 +83,10 @@ declare module '@agility/plenum-ui/stories/atoms/buttons/Button/Alternative/Alte
|
|
|
83
83
|
|
|
84
84
|
}
|
|
85
85
|
declare module '@agility/plenum-ui/stories/atoms/buttons/Button/Button' {
|
|
86
|
-
import { HTMLAttributeAnchorTarget } from "react";
|
|
86
|
+
import React, { HTMLAttributeAnchorTarget } from "react";
|
|
87
87
|
import { UnifiedIconName, IDynamicIconProps } from "@agility/plenum-ui/stories/atoms/icons/index";
|
|
88
88
|
export type BTNActionType = "primary" | "secondary" | "alternative" | "danger";
|
|
89
|
-
export interface IButtonProps extends React.
|
|
89
|
+
export interface IButtonProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
90
90
|
/** Is the button a Primary CTA, alternative or danger button? */
|
|
91
91
|
actionType?: BTNActionType;
|
|
92
92
|
/** How lg should the button be? - Defaults to 'base'. */
|
|
@@ -198,7 +198,7 @@ declare module '@agility/plenum-ui/stories/atoms/buttons/Capsule/Capsule' {
|
|
|
198
198
|
/**
|
|
199
199
|
* Capsule Style Button
|
|
200
200
|
*/
|
|
201
|
-
export interface ICapsuleProps extends React.
|
|
201
|
+
export interface ICapsuleProps extends React.DetailedHTMLProps<React.ButtonHTMLAttributes<HTMLButtonElement>, HTMLButtonElement> {
|
|
202
202
|
/** Is the button a Primary CTA, alternative or danger button? */
|
|
203
203
|
actionType: BTNActionType;
|
|
204
204
|
/** How lg should the button be? - Defaults to 'base'. */
|
|
@@ -276,7 +276,7 @@ declare module '@agility/plenum-ui/stories/atoms/icons/DynamicIcon' {
|
|
|
276
276
|
export function isTablerIcon(name: UnifiedIconName): name is TablerIconName;
|
|
277
277
|
export function isFAIcon(name: UnifiedIconName): name is keyof typeof FA;
|
|
278
278
|
export function isUnifiedIconName(name: UnifiedIconName): name is UnifiedIconName;
|
|
279
|
-
export interface IDynamicIconProps extends React.
|
|
279
|
+
export interface IDynamicIconProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
280
280
|
icon: UnifiedIconName;
|
|
281
281
|
className?: ClassNameWithAutocomplete;
|
|
282
282
|
outline?: boolean;
|
|
@@ -324,7 +324,7 @@ declare module '@agility/plenum-ui/stories/atoms/icons/TablerIcon' {
|
|
|
324
324
|
import React from "react";
|
|
325
325
|
import { TablerIconName } from "@agility/plenum-ui/stories/atoms/icons/tablerIconNames";
|
|
326
326
|
import { ClassNameWithAutocomplete } from "@/utils/types";
|
|
327
|
-
export interface ITablerIconProps extends React.
|
|
327
|
+
export interface ITablerIconProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
328
328
|
icon: TablerIconName;
|
|
329
329
|
className?: ClassNameWithAutocomplete;
|
|
330
330
|
}
|
|
@@ -406,9 +406,6 @@ declare module '@agility/plenum-ui/stories/index' {
|
|
|
406
406
|
export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, ITextInputSelectProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, IAnimatedLabelInputProps, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownClassnames, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, UnifiedIconName, IconName, FAIconName, BTNActionType, ITextInputProps, ISimpleSelectOptions };
|
|
407
407
|
export { Avatar, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, AnimatedLabelInput, AnimatedLabelTextArea, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, isFAIcon, isHeroIcon, isTablerIcon, isUnifiedIconName, TextInput, TextInputSelect };
|
|
408
408
|
|
|
409
|
-
}
|
|
410
|
-
declare module '@agility/plenum-ui/stories/layouts/index' {
|
|
411
|
-
|
|
412
409
|
}
|
|
413
410
|
declare module '@agility/plenum-ui/stories/molecules/index' {
|
|
414
411
|
import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ISimpleSelectOptions, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, ITextInputProps, TextInput } from "@agility/plenum-ui/stories/molecules/inputs/index";
|
|
@@ -862,16 +859,17 @@ declare module '@agility/plenum-ui/stories/molecules/inputs/toggleSwitch/index'
|
|
|
862
859
|
declare module '@agility/plenum-ui/stories/organisms/AnimatedLabelInput/AnimatedLabelInput' {
|
|
863
860
|
import React from "react";
|
|
864
861
|
import { IInputFieldProps } from "@/stories/molecules/inputs/InputField";
|
|
865
|
-
interface ILabelProps extends React.
|
|
862
|
+
interface ILabelProps extends React.DetailedHTMLProps<React.LabelHTMLAttributes<HTMLLabelElement>, HTMLLabelElement> {
|
|
866
863
|
display: string;
|
|
867
864
|
}
|
|
868
|
-
export interface IAnimatedLabelInputProps extends IInputFieldProps {
|
|
865
|
+
export interface IAnimatedLabelInputProps extends Omit<IInputFieldProps, "handleChange"> {
|
|
869
866
|
id: string;
|
|
870
867
|
containerStyles?: string;
|
|
871
868
|
message?: string;
|
|
872
869
|
required?: boolean;
|
|
873
870
|
isError?: boolean;
|
|
874
871
|
label: ILabelProps;
|
|
872
|
+
handleChange: (value: string) => void;
|
|
875
873
|
}
|
|
876
874
|
const AnimatedLabelInput: React.FC<IAnimatedLabelInputProps>;
|
|
877
875
|
export default AnimatedLabelInput;
|