@agility/plenum-ui 2.2.6 → 2.2.7
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/.claude/settings.local.json +7 -0
- package/build.js +1 -2
- package/dist/index.d.ts +13 -18
- package/dist/index.js +1 -1
- package/dist/index.js.map +4 -4
- package/dist/types/stories/atoms/icons/DynamicIcon.d.ts +3 -6
- package/dist/types/stories/atoms/icons/DynamicIcon.stories.d.ts +1 -3
- package/dist/types/stories/atoms/icons/index.d.ts +3 -3
- package/dist/types/stories/atoms/index.d.ts +3 -3
- package/dist/types/stories/index.d.ts +3 -3
- package/package.json +3 -4
- package/stories/atoms/icons/DynamicIcon.stories.ts +10 -22
- package/stories/atoms/icons/DynamicIcon.tsx +7 -36
- package/stories/atoms/icons/TablerIcon.tsx +61 -3
- package/stories/atoms/icons/index.tsx +2 -4
- package/stories/atoms/index.ts +0 -4
- package/stories/index.ts +0 -4
package/build.js
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -402,17 +402,14 @@ declare module '@agility/plenum-ui/stories/atoms/buttons/index' {
|
|
|
402
402
|
}
|
|
403
403
|
declare module '@agility/plenum-ui/stories/atoms/icons/DynamicIcon' {
|
|
404
404
|
import React from "react";
|
|
405
|
-
import * as SolidIcons from "@heroicons/react/solid";
|
|
406
|
-
import * as OutlineIcons from "@heroicons/react/outline";
|
|
407
|
-
import * as FA from "react-icons/fa";
|
|
405
|
+
import type * as SolidIcons from "@heroicons/react/solid";
|
|
406
|
+
import type * as OutlineIcons from "@heroicons/react/outline";
|
|
408
407
|
import { TablerIconName } from "@agility/plenum-ui/stories/atoms/icons/tablerIconNames";
|
|
409
408
|
import { ClassNameWithAutocomplete } from "@/utils/types";
|
|
410
409
|
export type IconName = keyof typeof SolidIcons | keyof typeof OutlineIcons;
|
|
411
|
-
export type
|
|
412
|
-
export type UnifiedIconName = TablerIconName | IconName | FAIconName;
|
|
410
|
+
export type UnifiedIconName = TablerIconName | IconName;
|
|
413
411
|
export function isHeroIcon(name: UnifiedIconName): name is keyof typeof SolidIcons | keyof typeof OutlineIcons;
|
|
414
412
|
export function isTablerIcon(name: UnifiedIconName): name is TablerIconName;
|
|
415
|
-
export function isFAIcon(name: UnifiedIconName): name is keyof typeof FA;
|
|
416
413
|
export function isUnifiedIconName(name: UnifiedIconName): name is UnifiedIconName;
|
|
417
414
|
export interface IDynamicIconProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement> {
|
|
418
415
|
icon: UnifiedIconName;
|
|
@@ -428,11 +425,9 @@ declare module '@agility/plenum-ui/stories/atoms/icons/DynamicIcon.stories' {
|
|
|
428
425
|
import { DynamicIcon } from "@agility/plenum-ui/stories/atoms/icons/DynamicIcon";
|
|
429
426
|
const meta: Meta<typeof DynamicIcon>;
|
|
430
427
|
type Story = StoryObj<typeof DynamicIcon>;
|
|
431
|
-
export const HeroIconSolid: Story;
|
|
432
|
-
export const HeroIconOutline: Story;
|
|
433
428
|
export const TablerIconSolid: Story;
|
|
434
429
|
export const TablerIconOutline: Story;
|
|
435
|
-
export const
|
|
430
|
+
export const TablerIconBrandGithub: Story;
|
|
436
431
|
export default meta;
|
|
437
432
|
|
|
438
433
|
}
|
|
@@ -470,10 +465,10 @@ declare module '@agility/plenum-ui/stories/atoms/icons/TablerIcon' {
|
|
|
470
465
|
|
|
471
466
|
}
|
|
472
467
|
declare module '@agility/plenum-ui/stories/atoms/icons/index' {
|
|
473
|
-
import { DynamicIcon,
|
|
468
|
+
import { DynamicIcon, IDynamicIconProps, IconName, UnifiedIconName, isHeroIcon, isTablerIcon, isUnifiedIconName } from "@agility/plenum-ui/stories/atoms/icons/DynamicIcon";
|
|
474
469
|
import IconWithShadow, { IIconWithShadowProps } from "@agility/plenum-ui/stories/atoms/icons/IconWithShadow";
|
|
475
|
-
export { DynamicIcon,
|
|
476
|
-
export type {
|
|
470
|
+
export { DynamicIcon, isHeroIcon, isTablerIcon, isUnifiedIconName, IconWithShadow };
|
|
471
|
+
export type { IDynamicIconProps, IconName, UnifiedIconName, IIconWithShadowProps };
|
|
477
472
|
|
|
478
473
|
}
|
|
479
474
|
declare module '@agility/plenum-ui/stories/atoms/icons/tablerIconNames' {
|
|
@@ -485,13 +480,13 @@ declare module '@agility/plenum-ui/stories/atoms/index' {
|
|
|
485
480
|
import Avatar, { IAvatarProps } from "@agility/plenum-ui/stories/atoms/Avatar/index";
|
|
486
481
|
import Badge, { IBadgeProps } from "@agility/plenum-ui/stories/atoms/badges/index";
|
|
487
482
|
import { Button, Capsule, BTNActionType, IButtonProps, ICapsuleProps } from "@agility/plenum-ui/stories/atoms/buttons/index";
|
|
488
|
-
import { DynamicIcon,
|
|
483
|
+
import { DynamicIcon, IDynamicIconProps, IIconWithShadowProps, IconName, IconWithShadow, UnifiedIconName, isHeroIcon, isTablerIcon, isUnifiedIconName } from "@agility/plenum-ui/stories/atoms/icons/index";
|
|
489
484
|
import { ILoaderProps, IRadialProgressProps, Loader, RadialProgress } from "@agility/plenum-ui/stories/atoms/loaders/index";
|
|
490
485
|
import { Heading, HeadingProps } from "@agility/plenum-ui/stories/atoms/Typography/Heading/index";
|
|
491
486
|
import { Label, LabelProps } from "@agility/plenum-ui/stories/atoms/Typography/Label/index";
|
|
492
487
|
import { Paragraph, ParagraphProps } from "@agility/plenum-ui/stories/atoms/Typography/Paragraph/index";
|
|
493
|
-
export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, HeadingProps, LabelProps, ParagraphProps, UnifiedIconName, IconName,
|
|
494
|
-
export { Avatar, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, Heading, Label, Paragraph,
|
|
488
|
+
export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, HeadingProps, LabelProps, ParagraphProps, UnifiedIconName, IconName, BTNActionType };
|
|
489
|
+
export { Avatar, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, Heading, Label, Paragraph, isHeroIcon, isTablerIcon, isUnifiedIconName };
|
|
495
490
|
|
|
496
491
|
}
|
|
497
492
|
declare module '@agility/plenum-ui/stories/atoms/loaders/Loader' {
|
|
@@ -540,11 +535,11 @@ declare module '@agility/plenum-ui/stories/atoms/loaders/index' {
|
|
|
540
535
|
|
|
541
536
|
}
|
|
542
537
|
declare module '@agility/plenum-ui/stories/index' {
|
|
543
|
-
import { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, UnifiedIconName, IconName,
|
|
538
|
+
import { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, UnifiedIconName, IconName, BTNActionType, Avatar, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, isHeroIcon, isTablerIcon, isUnifiedIconName, Heading, HeadingProps, Label, LabelProps, Paragraph, ParagraphProps } from "@agility/plenum-ui/stories/atoms/index";
|
|
544
539
|
import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, TextInput, ITextInputProps, ISimpleSelectOptions } from "@agility/plenum-ui/stories/molecules/index";
|
|
545
540
|
import { IAnimatedLabelInputProps, AnimatedLabelTextArea, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, TextInputSelect, ITextInputSelectProps, IAnimatedFormInputWithAddons, AnimatedFormInputWithAddons, DropdownWithMultiSelect, MultiSelectItemProps } from "@agility/plenum-ui/stories/organisms/index";
|
|
546
|
-
export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, ITextInputSelectProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, IAnimatedLabelInputProps, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, UnifiedIconName, IconName,
|
|
547
|
-
export { Avatar, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, AnimatedLabelInput, AnimatedLabelTextArea, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress,
|
|
541
|
+
export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, ITextInputSelectProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, IAnimatedLabelInputProps, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, UnifiedIconName, IconName, BTNActionType, ITextInputProps, ISimpleSelectOptions, IAnimatedFormInputWithAddons, MultiSelectItemProps, HeadingProps, LabelProps, ParagraphProps };
|
|
542
|
+
export { Avatar, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, AnimatedLabelInput, AnimatedLabelTextArea, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, isHeroIcon, isTablerIcon, isUnifiedIconName, TextInput, TextInputSelect, AnimatedFormInputWithAddons, DropdownWithMultiSelect, Heading, Label, Paragraph };
|
|
548
543
|
|
|
549
544
|
}
|
|
550
545
|
declare module '@agility/plenum-ui/stories/molecules/index' {
|