@agility/plenum-ui 2.2.8 → 2.3.0

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/dist/tailwind.css CHANGED
@@ -811,10 +811,6 @@ select {
811
811
  position: relative;
812
812
  }
813
813
 
814
- .inset-0 {
815
- inset: 0px;
816
- }
817
-
818
814
  .inset-y-0 {
819
815
  top: 0px;
820
816
  bottom: 0px;
@@ -1204,6 +1200,10 @@ select {
1204
1200
  z-index: 99999;
1205
1201
  }
1206
1202
 
1203
+ .z-\[9999\] {
1204
+ z-index: 9999;
1205
+ }
1206
+
1207
1207
  .-m-10 {
1208
1208
  margin: -2.5rem;
1209
1209
  }
@@ -1288,10 +1288,6 @@ select {
1288
1288
  margin: 0px;
1289
1289
  }
1290
1290
 
1291
- .m-1 {
1292
- margin: 0.25rem;
1293
- }
1294
-
1295
1291
  .m-10 {
1296
1292
  margin: 2.5rem;
1297
1293
  }
@@ -1680,6 +1676,11 @@ select {
1680
1676
  margin-right: 24rem;
1681
1677
  }
1682
1678
 
1679
+ .mx-xxsm {
1680
+ margin-left: 4px;
1681
+ margin-right: 4px;
1682
+ }
1683
+
1683
1684
  .my-10 {
1684
1685
  margin-top: 2.5rem;
1685
1686
  margin-bottom: 2.5rem;
@@ -2004,6 +2005,14 @@ select {
2004
2005
  width: 1.5rem;
2005
2006
  }
2006
2007
 
2008
+ .w-60 {
2009
+ width: 15rem;
2010
+ }
2011
+
2012
+ .w-64 {
2013
+ width: 16rem;
2014
+ }
2015
+
2007
2016
  .w-8 {
2008
2017
  width: 2rem;
2009
2018
  }
@@ -2068,8 +2077,8 @@ select {
2068
2077
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2069
2078
  }
2070
2079
 
2071
- .-rotate-90 {
2072
- --tw-rotate: -90deg;
2080
+ .rotate-180 {
2081
+ --tw-rotate: 180deg;
2073
2082
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
2074
2083
  }
2075
2084
 
@@ -3123,6 +3132,10 @@ select {
3123
3132
  gap: 24rem;
3124
3133
  }
3125
3134
 
3135
+ .gap-xsm {
3136
+ gap: 8px;
3137
+ }
3138
+
3126
3139
  .gap-x-2 {
3127
3140
  -moz-column-gap: 0.5rem;
3128
3141
  column-gap: 0.5rem;
@@ -3164,10 +3177,6 @@ select {
3164
3177
  overflow: hidden;
3165
3178
  }
3166
3179
 
3167
- .overflow-visible {
3168
- overflow: visible;
3169
- }
3170
-
3171
3180
  .truncate {
3172
3181
  overflow: hidden;
3173
3182
  text-overflow: ellipsis;
@@ -3258,10 +3267,6 @@ select {
3258
3267
  border-width: 2px;
3259
3268
  }
3260
3269
 
3261
- .border-4 {
3262
- border-width: 4px;
3263
- }
3264
-
3265
3270
  .\!border-l-0 {
3266
3271
  border-left-width: 0px !important;
3267
3272
  }
@@ -3278,6 +3283,10 @@ select {
3278
3283
  border-style: dashed;
3279
3284
  }
3280
3285
 
3286
+ .border-none {
3287
+ border-style: none;
3288
+ }
3289
+
3281
3290
  .\!border-gray-300 {
3282
3291
  --tw-border-opacity: 1 !important;
3283
3292
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1)) !important;
@@ -12203,6 +12212,14 @@ select {
12203
12212
  border-color: rgb(19 78 74 / 0.95);
12204
12213
  }
12205
12214
 
12215
+ .border-transparent-black-20 {
12216
+ border-color: rgba(0, 0, 0, 0.2);
12217
+ }
12218
+
12219
+ .border-transparent-white-50 {
12220
+ border-color: rgba(255, 255, 255, 0.5);
12221
+ }
12222
+
12206
12223
  .border-violet-100 {
12207
12224
  --tw-border-opacity: 1;
12208
12225
  border-color: rgb(237 233 254 / var(--tw-border-opacity, 1));
@@ -35398,6 +35415,11 @@ select {
35398
35415
  border-left-color: rgb(128 102 20 / 0.95);
35399
35416
  }
35400
35417
 
35418
+ .border-r-black {
35419
+ --tw-border-opacity: 1;
35420
+ border-right-color: rgb(0 0 0 / var(--tw-border-opacity, 1));
35421
+ }
35422
+
35401
35423
  .border-r-blue-100 {
35402
35424
  --tw-border-opacity: 1;
35403
35425
  border-right-color: rgb(219 234 254 / var(--tw-border-opacity, 1));
@@ -65676,6 +65698,10 @@ select {
65676
65698
  background-color: rgb(19 78 74 / 0.95);
65677
65699
  }
65678
65700
 
65701
+ .bg-transparent {
65702
+ background-color: transparent;
65703
+ }
65704
+
65679
65705
  .bg-transparent-black-03 {
65680
65706
  background-color: rgba(0, 0, 0, 0.03);
65681
65707
  }
@@ -67485,14 +67511,6 @@ select {
67485
67511
  fill: #fff;
67486
67512
  }
67487
67513
 
67488
- .stroke-gray-200 {
67489
- stroke: #E5E7EB;
67490
- }
67491
-
67492
- .stroke-purple-600 {
67493
- stroke: #691AD8;
67494
- }
67495
-
67496
67514
  .stroke-1 {
67497
67515
  stroke-width: 1;
67498
67516
  }
@@ -67752,6 +67770,11 @@ select {
67752
67770
  padding-right: 6px;
67753
67771
  }
67754
67772
 
67773
+ .px-sm {
67774
+ padding-left: 12px;
67775
+ padding-right: 12px;
67776
+ }
67777
+
67755
67778
  .py-1 {
67756
67779
  padding-top: 0.25rem;
67757
67780
  padding-bottom: 0.25rem;
@@ -67887,6 +67910,11 @@ select {
67887
67910
  padding-bottom: 9px;
67888
67911
  }
67889
67912
 
67913
+ .py-xxsm {
67914
+ padding-top: 4px;
67915
+ padding-bottom: 4px;
67916
+ }
67917
+
67890
67918
  .pl-1 {
67891
67919
  padding-left: 0.25rem;
67892
67920
  }
@@ -67931,6 +67959,10 @@ select {
67931
67959
  padding-right: 10px;
67932
67960
  }
67933
67961
 
67962
+ .pt-xxsm {
67963
+ padding-top: 4px;
67964
+ }
67965
+
67934
67966
  .text-left {
67935
67967
  text-align: left;
67936
67968
  }
@@ -71690,6 +71722,11 @@ select {
71690
71722
  color: rgb(6 78 59 / 0.95);
71691
71723
  }
71692
71724
 
71725
+ .text-neutral-500 {
71726
+ --tw-text-opacity: 1;
71727
+ color: rgb(107 114 128 / var(--tw-text-opacity, 1));
71728
+ }
71729
+
71693
71730
  .text-orange-100 {
71694
71731
  --tw-text-opacity: 1;
71695
71732
  color: rgb(255 237 213 / var(--tw-text-opacity, 1));
@@ -78965,6 +79002,26 @@ select {
78965
79002
  transition-duration: 150ms;
78966
79003
  }
78967
79004
 
79005
+ .transition-transform {
79006
+ transition-property: transform;
79007
+ transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
79008
+ transition-duration: 150ms;
79009
+ }
79010
+
79011
+ .\[--anchor-gap\:8px\] {
79012
+ --anchor-gap: 8px;
79013
+ }
79014
+
79015
+ .placeholder\:text-gray-400::-moz-placeholder {
79016
+ --tw-text-opacity: 1;
79017
+ color: rgb(156 163 175 / var(--tw-text-opacity, 1));
79018
+ }
79019
+
79020
+ .placeholder\:text-gray-400::placeholder {
79021
+ --tw-text-opacity: 1;
79022
+ color: rgb(156 163 175 / var(--tw-text-opacity, 1));
79023
+ }
79024
+
78968
79025
  .placeholder\:text-gray-500::-moz-placeholder {
78969
79026
  --tw-text-opacity: 1;
78970
79027
  color: rgb(107 114 128 / var(--tw-text-opacity, 1));
@@ -78988,6 +79045,11 @@ select {
78988
79045
  border-color: rgb(209 213 219 / var(--tw-border-opacity, 1)) !important;
78989
79046
  }
78990
79047
 
79048
+ .focus-within\:border-primary-800:focus-within {
79049
+ --tw-border-opacity: 1;
79050
+ border-color: rgb(91 33 182 / var(--tw-border-opacity, 1));
79051
+ }
79052
+
78991
79053
  .focus-within\:bg-purple-100:focus-within {
78992
79054
  --tw-bg-opacity: 1;
78993
79055
  background-color: rgb(222 204 246 / var(--tw-bg-opacity, 1));
@@ -78998,6 +79060,12 @@ select {
78998
79060
  outline-offset: 2px;
78999
79061
  }
79000
79062
 
79063
+ .focus-within\:ring-1:focus-within {
79064
+ --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
79065
+ --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
79066
+ box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
79067
+ }
79068
+
79001
79069
  .focus-within\:ring-2:focus-within {
79002
79070
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
79003
79071
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
@@ -79014,6 +79082,11 @@ select {
79014
79082
  --tw-ring-color: rgb(255 203 40 / var(--tw-ring-opacity, 1)) !important;
79015
79083
  }
79016
79084
 
79085
+ .focus-within\:ring-primary-800:focus-within {
79086
+ --tw-ring-opacity: 1;
79087
+ --tw-ring-color: rgb(91 33 182 / var(--tw-ring-opacity, 1));
79088
+ }
79089
+
79017
79090
  .focus-within\:ring-purple-600:focus-within {
79018
79091
  --tw-ring-opacity: 1;
79019
79092
  --tw-ring-color: rgb(105 26 216 / var(--tw-ring-opacity, 1));
@@ -2,9 +2,9 @@ import Avatar, { IAvatarProps } from "./Avatar";
2
2
  import Badge, { IBadgeProps } from "./badges";
3
3
  import { Button, Capsule, BTNActionType, IButtonProps, ICapsuleProps } from "./buttons";
4
4
  import { DynamicIcon, IDynamicIconProps, IIconWithShadowProps, IconName, IconWithShadow, UnifiedIconName, isHeroIcon, isTablerIcon, isUnifiedIconName } from "./icons";
5
- import { ILoaderProps, IRadialProgressProps, Loader, RadialProgress } from "./loaders";
5
+ import { ILoaderProps, Loader } from "./loaders";
6
6
  import { Heading, HeadingProps } from "./Typography/Heading";
7
7
  import { Label, LabelProps } from "./Typography/Label";
8
8
  import { Paragraph, ParagraphProps } from "./Typography/Paragraph";
9
- export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, IRadialProgressProps, HeadingProps, LabelProps, ParagraphProps, UnifiedIconName, IconName, BTNActionType };
10
- export { Avatar, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, RadialProgress, Heading, Label, Paragraph, isHeroIcon, isTablerIcon, isUnifiedIconName };
9
+ export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, HeadingProps, LabelProps, ParagraphProps, UnifiedIconName, IconName, BTNActionType };
10
+ export { Avatar, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, Heading, Label, Paragraph, isHeroIcon, isTablerIcon, isUnifiedIconName };
@@ -1,5 +1,7 @@
1
1
  import React from "react";
2
2
  export interface ILoaderProps {
3
+ size?: "lg" | "md" | "sm";
4
+ variant?: "primary" | "black" | "white";
3
5
  className?: string;
4
6
  }
5
7
  declare const Loader: React.FC<ILoaderProps>;
@@ -1,4 +1,3 @@
1
1
  import Loader, { ILoaderProps } from "./Loader";
2
- import RadialProgress, { IRadialProgressProps } from "./NProgress";
3
- export { Loader, RadialProgress };
4
- export type { ILoaderProps, IRadialProgressProps };
2
+ export { Loader };
3
+ export type { ILoaderProps };
@@ -1,5 +1,5 @@
1
- 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 "./atoms";
1
+ import { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, UnifiedIconName, IconName, BTNActionType, Avatar, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, isHeroIcon, isTablerIcon, isUnifiedIconName, Heading, HeadingProps, Label, LabelProps, Paragraph, ParagraphProps } from "./atoms";
2
2
  import { ICheckboxProps, IComboboxProps, IInputFieldProps, IInputLabelProps, INestedInputButtonProps, IRadioProps, ISelectProps, ITextareaProps, IToggleSwitchProps, AcceptedInputTypes, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, TextInput, ITextInputProps, ISimpleSelectOptions } from "./molecules";
3
3
  import { IAnimatedLabelInputProps, AnimatedLabelTextArea, IAnimatedLabelTextAreaProps, IButtonDropdownProps, IDropdownProps, IEmptySectionPlaceholderProps, IItemProp, IFormInputWithAddonsProps, AnimatedLabelInput, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, TextInputSelect, ITextInputSelectProps, IAnimatedFormInputWithAddons, AnimatedFormInputWithAddons, DropdownWithMultiSelect, MultiSelectItemProps } from "./organisms";
4
- 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 };
5
- 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 };
4
+ export type { IAvatarProps, IBadgeProps, IButtonProps, ICapsuleProps, ITextInputSelectProps, IDynamicIconProps, IIconWithShadowProps, ILoaderProps, 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 };
5
+ export { Avatar, Checkbox, Combobox, InputField, InputLabel, NestedInputButton, Radio, Select, Textarea, ToggleSwitch, AnimatedLabelInput, AnimatedLabelTextArea, ButtonDropdown, Dropdown, EmptySectionPlaceholder, FormInputWithAddons, Badge, Button, Capsule, DynamicIcon, IconWithShadow, Loader, isHeroIcon, isTablerIcon, isUnifiedIconName, TextInput, TextInputSelect, AnimatedFormInputWithAddons, DropdownWithMultiSelect, Heading, Label, Paragraph };
@@ -2,6 +2,8 @@ import React from "react";
2
2
  export interface ISimpleSelectOptions {
3
3
  label: string;
4
4
  value: string;
5
+ emoji?: string;
6
+ description?: string;
5
7
  }
6
8
  export interface ISelectProps {
7
9
  /** Label */
@@ -12,7 +14,7 @@ export interface ISelectProps {
12
14
  name?: string;
13
15
  /** List of options to display in the select menu */
14
16
  options: ISimpleSelectOptions[];
15
- /** Select name prop */
17
+ /** Called with the selected option's value string */
16
18
  onChange?(value: string): void;
17
19
  /** Select disabled state */
18
20
  isDisabled?: boolean;
@@ -25,6 +27,9 @@ export interface ISelectProps {
25
27
  onFocus?: () => void;
26
28
  onBlur?: () => void;
27
29
  message?: string;
30
+ inputRef?: React.RefObject<HTMLInputElement>;
31
+ placeholder?: string;
32
+ dropdownMaxHeight?: number;
28
33
  }
29
34
  declare const Select: React.FC<ISelectProps>;
30
35
  export default Select;
package/local.sh CHANGED
@@ -9,7 +9,7 @@ RESET='\033[0m'
9
9
  DIR="$PWD"
10
10
 
11
11
  # The required yarn version to use this script
12
- REQUIRED_YARN_VERSION="1.22.19"
12
+ REQUIRED_YARN_VERSION="1.22.22"
13
13
 
14
14
  # Get the installed Yarn version
15
15
  INSTALLED_YARN_VERSION=$(yarn --version 2>/dev/null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agility/plenum-ui",
3
- "version": "2.2.8",
3
+ "version": "2.3.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -12,7 +12,7 @@ import {
12
12
  isTablerIcon,
13
13
  isUnifiedIconName
14
14
  } from "./icons";
15
- import { ILoaderProps, IRadialProgressProps, Loader, RadialProgress } from "./loaders";
15
+ import { ILoaderProps, Loader } from "./loaders";
16
16
  import { Heading, HeadingProps } from "./Typography/Heading";
17
17
  import { Label, LabelProps } from "./Typography/Label";
18
18
  import { Paragraph, ParagraphProps } from "./Typography/Paragraph";
@@ -24,7 +24,6 @@ export type {
24
24
  IDynamicIconProps,
25
25
  IIconWithShadowProps,
26
26
  ILoaderProps,
27
- IRadialProgressProps,
28
27
  HeadingProps,
29
28
  LabelProps,
30
29
  ParagraphProps,
@@ -40,7 +39,6 @@ export {
40
39
  DynamicIcon,
41
40
  IconWithShadow,
42
41
  Loader,
43
- RadialProgress,
44
42
  Heading,
45
43
  Label,
46
44
  Paragraph,
@@ -1,15 +1,15 @@
1
- import type { Meta, StoryObj } from "@storybook/react"
2
- import Loader from "./Loader"
1
+ import type { Meta, StoryObj } from "@storybook/react";
2
+ import Loader from "./Loader";
3
3
 
4
4
  const meta: Meta<typeof Loader> = {
5
5
  title: "Design System/atoms/Loaders/Loader",
6
6
  component: Loader
7
- }
7
+ };
8
8
 
9
- type Story = StoryObj<typeof Loader>
9
+ type Story = StoryObj<typeof Loader>;
10
10
 
11
11
  export const DefaultLoader: Story = {
12
- args: { className: "" },
13
- }
12
+ args: { size: "lg", variant: "primary" }
13
+ };
14
14
 
15
- export default meta
15
+ export default meta;
@@ -2,15 +2,23 @@ import React from "react";
2
2
  import { default as cn } from "classnames";
3
3
 
4
4
  export interface ILoaderProps {
5
+ size?: "lg" | "md" | "sm";
6
+ variant?: "primary" | "black" | "white";
5
7
  className?: string;
6
8
  }
7
- const Loader: React.FC<ILoaderProps> = ({ className }) => {
9
+ const Loader: React.FC<ILoaderProps> = ({ size = "lg", variant = "primary", className }) => {
8
10
  return (
9
11
  <>
10
12
  <i
11
13
  className={cn(
12
- "rounded-full w-16 h-16 inline-block border-4 animate-spinSlower m-auto",
13
- className ? className : "border-gray-200 border-r-violet-800"
14
+ "rounded-full inline-block animate-spinSlower m-auto",
15
+ size === "lg" ? "w-10 h-10 border-2" : size === "md" ? "w-5 h-5 border" : "w-4 h-4 border",
16
+ variant === "primary"
17
+ ? "border-transparent-black-20 border-r-violet-800"
18
+ : variant === "black"
19
+ ? "border-transparent-black-20 border-r-black"
20
+ : "border-transparent-white-50 border-r-white",
21
+ className
14
22
  )}
15
23
  role="status"
16
24
  />
@@ -1,4 +1,3 @@
1
- import Loader, { ILoaderProps } from "./Loader"
2
- import RadialProgress, { IRadialProgressProps } from "./NProgress"
3
- export { Loader, RadialProgress }
4
- export type { ILoaderProps, IRadialProgressProps }
1
+ import Loader, { ILoaderProps } from "./Loader";
2
+ export { Loader };
3
+ export type { ILoaderProps };
package/stories/index.ts CHANGED
@@ -7,7 +7,6 @@ import {
7
7
  IDynamicIconProps,
8
8
  IIconWithShadowProps,
9
9
  ILoaderProps,
10
- IRadialProgressProps,
11
10
  UnifiedIconName,
12
11
  IconName,
13
12
  BTNActionType,
@@ -18,7 +17,6 @@ import {
18
17
  DynamicIcon,
19
18
  IconWithShadow,
20
19
  Loader,
21
- RadialProgress,
22
20
  isHeroIcon,
23
21
  isTablerIcon,
24
22
  isUnifiedIconName,
@@ -86,7 +84,6 @@ export type {
86
84
  IDynamicIconProps,
87
85
  IIconWithShadowProps,
88
86
  ILoaderProps,
89
- IRadialProgressProps,
90
87
  ICheckboxProps,
91
88
  IComboboxProps,
92
89
  IInputFieldProps,
@@ -138,7 +135,6 @@ export {
138
135
  DynamicIcon,
139
136
  IconWithShadow,
140
137
  Loader,
141
- RadialProgress,
142
138
  isHeroIcon,
143
139
  isTablerIcon,
144
140
  isUnifiedIconName,
@@ -10,12 +10,16 @@ const meta: Meta<typeof Select> = {
10
10
  (Story, context) => {
11
11
  if (context.name === "Default Select Dark BG") {
12
12
  return (
13
- <div className="bg-transparent-black-03 rounded p-6">
13
+ <div className="bg-transparent-black-03 rounded p-6 w-60">
14
14
  <Story />
15
15
  </div>
16
16
  );
17
17
  }
18
- return <Story />;
18
+ return (
19
+ <div className="w-64">
20
+ <Story />
21
+ </div>
22
+ );
19
23
  }
20
24
  ]
21
25
  };
@@ -23,13 +27,41 @@ const meta: Meta<typeof Select> = {
23
27
  export default meta;
24
28
  type TStory = StoryObj<typeof Select>;
25
29
 
30
+ const manyCountries = [
31
+ {
32
+ label: "Australia",
33
+ value: "au",
34
+ description: "A country and continent"
35
+ },
36
+ { label: "Brazil", value: "br" },
37
+ { label: "Canada", value: "ca" },
38
+ { label: "China", value: "cn" },
39
+ { label: "Denmark", value: "dk" },
40
+ { label: "Egypt", value: "eg" },
41
+ { label: "France", value: "fr" },
42
+ { label: "Germany", value: "de" },
43
+ { label: "India", value: "in" },
44
+ { label: "Italy", value: "it" },
45
+ { label: "Japan", value: "jp" },
46
+ { label: "Mexico", value: "mx" },
47
+ { label: "Netherlands", value: "nl" },
48
+ { label: "New Zealand", value: "nz" },
49
+ { label: "Norway", value: "no" },
50
+ { label: "Portugal", value: "pt" },
51
+ { label: "South Korea", value: "kr" },
52
+ { label: "Spain", value: "es" },
53
+ { label: "Sweden", value: "se" },
54
+ { label: "United Kingdom", value: "gb" },
55
+ { label: "United States", value: "us" }
56
+ ];
57
+
26
58
  export const DefaultSelect: TStory = {
27
59
  args: {
28
60
  label: "Label",
29
61
  id: "select",
30
62
  name: "select",
31
63
  options: [
32
- { label: "Canada", value: "value1" },
64
+ { label: "Canada", value: "value1", description: "A description for Canada." },
33
65
  { label: "USA", value: "value2" }
34
66
  ],
35
67
  isDisabled: false,
@@ -38,6 +70,20 @@ export const DefaultSelect: TStory = {
38
70
  message: "Message"
39
71
  }
40
72
  };
73
+
74
+ export const ManyOptions: TStory = {
75
+ args: {
76
+ label: "Country",
77
+ id: "select-many",
78
+ name: "select-many",
79
+ options: manyCountries,
80
+ isDisabled: false,
81
+ isError: false,
82
+ isRequired: false,
83
+ message: "Scroll to see all options"
84
+ }
85
+ };
86
+
41
87
  export const DefaultSelectDarkBG: TStory = {
42
88
  args: {
43
89
  label: "Label",