dga-ui-react 1.3.0 → 1.4.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/index.d.ts CHANGED
@@ -112,9 +112,11 @@ interface DGA_TextInputProps extends Omit<React.InputHTMLAttributes<HTMLInputEle
112
112
  style?: Style$3;
113
113
  error?: boolean;
114
114
  prefix?: React.ReactNode;
115
+ onPrefixClicked?: Function;
115
116
  prefixStyle?: "solid" | "subtle";
116
117
  suffix?: React.ReactNode;
117
118
  suffixStyle?: "solid" | "subtle";
119
+ onSuffixClicked?: Function;
118
120
  icon?: React.ReactNode;
119
121
  }
120
122
  declare const TextInput: React.ForwardRefExoticComponent<DGA_TextInputProps & React.RefAttributes<HTMLInputElement>>;
@@ -601,4 +603,31 @@ interface DGA_ProgressBarProps extends Omit<React.HTMLAttributes<HTMLDivElement>
601
603
  }
602
604
  declare const ProgressBar: React.FC<DGA_ProgressBarProps>;
603
605
 
604
- export { Accordion, Autocomplete, Avatar, Breadcrumb, Button, Card, Checkbox, Chip, ContentSwitcher, DatePicker, Divider, DropZone, Dropdown, DropdownItem, FileCard, FileUpload, FloatingButton, Grid, HeaderMenuItem, InlineAlert, Link, List, Loading, Menu, MenuItem, MenuItemGroup, Modal, NavigationDrawerItem, Notification, Pagination, ProgressBar, ProgressIndicator, RadialStepper, Radio, RadioGroup, Rating, SearchBox, Skeleton, SkeletonCircle, SkeletonLine, SkeletonRectangle, SkeletonSquare, StatusTag, Switch, Tab, TabList, Table, Tag, TextInput, Textarea, ThemeProvider, Tooltip, toast, useTheme, withRtl };
606
+ type PrefixSuffixStyle = "plus" | "minus";
607
+ interface DGA_NumberInputProps extends Omit<DGA_TextInputProps, "icon"> {
608
+ prefixType?: PrefixSuffixStyle;
609
+ suffixType?: PrefixSuffixStyle;
610
+ }
611
+ declare const NumberInput: React.ForwardRefExoticComponent<DGA_NumberInputProps & React.RefAttributes<HTMLInputElement>>;
612
+
613
+ type SliderSize$1 = "small" | "medium";
614
+ interface DGA_SliderProps$1 extends Omit<React.HTMLAttributes<HTMLDivElement>, "style"> {
615
+ label?: React.ReactNode;
616
+ helperText?: React.ReactNode;
617
+ size?: SliderSize$1;
618
+ percentage?: number;
619
+ onChnage?: Function;
620
+ }
621
+ declare const NormalSlider: React.FC<DGA_SliderProps$1>;
622
+
623
+ type SliderSize = "small" | "medium";
624
+ interface DGA_SliderProps extends Omit<React.HTMLAttributes<HTMLDivElement>, "style"> {
625
+ label?: React.ReactNode;
626
+ helperText?: React.ReactNode;
627
+ size?: SliderSize;
628
+ percentage: [number, number];
629
+ onChnage?: Function;
630
+ }
631
+ declare const RangeSlider: React.FC<DGA_SliderProps>;
632
+
633
+ export { Accordion, Autocomplete, Avatar, Breadcrumb, Button, Card, Checkbox, Chip, ContentSwitcher, DatePicker, Divider, DropZone, Dropdown, DropdownItem, FileCard, FileUpload, FloatingButton, Grid, HeaderMenuItem, InlineAlert, Link, List, Loading, Menu, MenuItem, MenuItemGroup, Modal, NavigationDrawerItem, Notification, NumberInput, Pagination, ProgressBar, ProgressIndicator, RadialStepper, Radio, RadioGroup, RangeSlider, Rating, SearchBox, Skeleton, SkeletonCircle, SkeletonLine, SkeletonRectangle, SkeletonSquare, NormalSlider as Slider, StatusTag, Switch, Tab, TabList, Table, Tag, TextInput, Textarea, ThemeProvider, Tooltip, toast, useTheme, withRtl };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dga-ui-react",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "DGA ui library",
5
5
  "author": "Ashraf Ainia",
6
6
  "license": "MIT",