fis-component 0.1.10 → 0.1.12

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.
@@ -26,6 +26,9 @@ declare const meta: {
26
26
  onChange?: ((value: number) => void) | undefined;
27
27
  name?: string | undefined | undefined;
28
28
  dir?: string | undefined | undefined;
29
+ form?: string | undefined | undefined;
30
+ slot?: string | undefined | undefined;
31
+ pattern?: string | undefined | undefined;
29
32
  key?: import("react").Key | null | undefined;
30
33
  defaultChecked?: boolean | undefined | undefined;
31
34
  suppressContentEditableWarning?: boolean | undefined | undefined;
@@ -42,7 +45,6 @@ declare const meta: {
42
45
  id?: string | undefined | undefined;
43
46
  lang?: string | undefined | undefined;
44
47
  nonce?: string | undefined | undefined;
45
- slot?: string | undefined | undefined;
46
48
  spellCheck?: (boolean | "false" | "true") | undefined;
47
49
  style?: import("react").CSSProperties | undefined;
48
50
  tabIndex?: number | undefined | undefined;
@@ -296,7 +298,6 @@ declare const meta: {
296
298
  width?: number | string | undefined | undefined;
297
299
  size?: number | undefined | undefined;
298
300
  multiple?: boolean | undefined | undefined;
299
- form?: string | undefined | undefined;
300
301
  formAction?: string | undefined;
301
302
  formEncType?: string | undefined | undefined;
302
303
  formMethod?: string | undefined | undefined;
@@ -304,16 +305,15 @@ declare const meta: {
304
305
  formTarget?: string | undefined | undefined;
305
306
  type?: import("react").HTMLInputTypeAttribute | undefined;
306
307
  value?: string | number | readonly string[] | undefined;
307
- pattern?: string | undefined | undefined;
308
308
  autoComplete?: import("react").HTMLInputAutoCompleteAttribute | undefined;
309
- maxLength?: number | undefined | undefined;
310
- minLength?: number | undefined | undefined;
311
- placeholder?: string | undefined | undefined;
312
- required?: boolean | undefined | undefined;
313
309
  accept?: string | undefined | undefined;
314
310
  capture?: boolean | "user" | "environment" | undefined | undefined;
315
311
  checked?: boolean | undefined | undefined;
316
312
  list?: string | undefined | undefined;
313
+ maxLength?: number | undefined | undefined;
314
+ minLength?: number | undefined | undefined;
315
+ placeholder?: string | undefined | undefined;
316
+ required?: boolean | undefined | undefined;
317
317
  textLabel?: string | undefined;
318
318
  iconLabel?: import("react").ReactNode;
319
319
  onClickIconLabel?: (() => void) | undefined;
@@ -0,0 +1,9 @@
1
+ import { ThemeType } from "../../styles/design-system";
2
+ import React from "react";
3
+ export interface FISTextPropsI extends React.HTMLAttributes<HTMLElement> {
4
+ variant?: keyof ThemeType;
5
+ tag?: keyof JSX.IntrinsicElements;
6
+ color?: keyof ThemeType;
7
+ }
8
+ declare const FISText: React.ForwardRefExoticComponent<FISTextPropsI & React.RefAttributes<any>>;
9
+ export default FISText;
@@ -0,0 +1,4 @@
1
+ export declare const TextSC: import("styled-components/dist/types").IStyledComponentBase<"web", import("styled-components/dist/types").Substitute<import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLParagraphElement>, HTMLParagraphElement>, {
2
+ $variant?: string;
3
+ $color?: string;
4
+ }>> & string;
@@ -44,3 +44,4 @@ export { default as FISSelectItem } from "./components/SelectItem";
44
44
  export { default as useNotification } from "./components/Notification/useNotification";
45
45
  export { default as useToast } from "./components/Toast/useToast";
46
46
  export { default as FISPagination } from "./components/Pagination";
47
+ export { default as FISText } from "./components/Text";
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as React$1 from 'react';
2
- import React__default, { ComponentPropsWithoutRef, ReactNode, Ref, ForwardedRef, JSX, FC, DetailedHTMLProps, HTMLAttributes, ReactElement, ComponentType } from 'react';
2
+ import React__default, { ComponentPropsWithoutRef, ReactNode, Ref, ForwardedRef, JSX as JSX$1, FC, DetailedHTMLProps, HTMLAttributes, ReactElement, ComponentType } from 'react';
3
3
  import { DefaultTheme } from 'styled-components';
4
4
  import * as react_jsx_runtime from 'react/jsx-runtime';
5
5
  import { TooltipProps as TooltipProps$1, CollapseProps, TableProps as TableProps$1, PaginationProps as PaginationProps$1 } from 'antd';
@@ -3719,13 +3719,13 @@ interface InputFieldProps extends Omit<ComponentPropsWithoutRef<"input">, "onCli
3719
3719
  /**Control the style type of component: "prefix" | "dropdown" */
3720
3720
  typePrefix?: InputTypePrefix;
3721
3721
  /**Prefix for filter value*/
3722
- iconPrefix?: string | JSX.Element;
3722
+ iconPrefix?: string | JSX$1.Element;
3723
3723
  /**iconSuffix for filter value*/
3724
- iconSuffix?: string | JSX.Element;
3724
+ iconSuffix?: string | JSX$1.Element;
3725
3725
  /**labelSuffix for filter value*/
3726
- labelSuffix?: string | JSX.Element;
3726
+ labelSuffix?: string | JSX$1.Element;
3727
3727
  /**labelPrefix for filter value*/
3728
- labelPrefix?: string | JSX.Element;
3728
+ labelPrefix?: string | JSX$1.Element;
3729
3729
  /**negative for current field*/
3730
3730
  negative?: boolean;
3731
3731
  /**actived for current field*/
@@ -4269,9 +4269,9 @@ interface SelectFieldProps extends Omit<ComponentPropsWithoutRef<"input">, "onCl
4269
4269
  /**Control the size of the component*/
4270
4270
  size?: SelectSize;
4271
4271
  /**Prefix for filter value*/
4272
- iconPrefix?: string | JSX.Element;
4272
+ iconPrefix?: string | JSX$1.Element;
4273
4273
  /**iconSuffix for filter value*/
4274
- iconSuffix?: string | JSX.Element;
4274
+ iconSuffix?: string | JSX$1.Element;
4275
4275
  /**actived for current field*/
4276
4276
  actived?: boolean;
4277
4277
  /**active-dropdown for current field*/
@@ -4379,5 +4379,12 @@ interface PaginationProps extends PaginationProps$1 {
4379
4379
  }
4380
4380
  declare const FISPagination: React__default.FC<PaginationProps>;
4381
4381
 
4382
- export { FISAlertBanner, FISAvatar, FISBadge, FISBreadcrumb, FISButton, FISButtonGroup, FISCheckbox, FISCheckboxGroup, FISChipButton, FISCollapse, FISCombobox, FISDateRange, FISDivider, FISIconButton, FISInputArea, FISInputDate, FISInputField, FISInputLabel, FISInputStepper, FISInputText, FISInputTime, FISLinkButton, FISMenuItem, FISMenuSection, FISMenuSelect, FISPagination, FISProgressCircular, FISProgressLinear, FISRadio, RadioGroup as FISRadioGroup, FISSegmented, FISSelect, FISSelectItem, FISSorter, FISSplitButton, FISSwitch, FISTab, FISTable, FISTableCell, FISTableHeaderCell, FISThemeProvider, FISToast, FISTooltip, SegmentedPanelItem, TabPanelItem, useNotification, useToast };
4382
+ interface FISTextPropsI extends React__default.HTMLAttributes<HTMLElement> {
4383
+ variant?: keyof ThemeType$2;
4384
+ tag?: keyof JSX.IntrinsicElements;
4385
+ color?: keyof ThemeType$2;
4386
+ }
4387
+ declare const FISText: React__default.ForwardRefExoticComponent<FISTextPropsI & React__default.RefAttributes<any>>;
4388
+
4389
+ export { FISAlertBanner, FISAvatar, FISBadge, FISBreadcrumb, FISButton, FISButtonGroup, FISCheckbox, FISCheckboxGroup, FISChipButton, FISCollapse, FISCombobox, FISDateRange, FISDivider, FISIconButton, FISInputArea, FISInputDate, FISInputField, FISInputLabel, FISInputStepper, FISInputText, FISInputTime, FISLinkButton, FISMenuItem, FISMenuSection, FISMenuSelect, FISPagination, FISProgressCircular, FISProgressLinear, FISRadio, RadioGroup as FISRadioGroup, FISSegmented, FISSelect, FISSelectItem, FISSorter, FISSplitButton, FISSwitch, FISTab, FISTable, FISTableCell, FISTableHeaderCell, FISText, FISThemeProvider, FISToast, FISTooltip, SegmentedPanelItem, TabPanelItem, useNotification, useToast };
4383
4390
  export type { ThemeType$2 as ThemeType };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "homepage": "https://vietdiemtran.github.io/fis-component/",
3
3
  "name": "fis-component",
4
- "version": "0.1.10",
4
+ "version": "0.1.12",
5
5
  "description": "",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.js",
@@ -59,7 +59,7 @@
59
59
  "@testing-library/jest-dom": "^6.4.2",
60
60
  "@testing-library/react": "^14.2.1",
61
61
  "@types/jest": "^29.5.12",
62
- "@types/lodash": "^4.17.20",
62
+ "@types/lodash": "^4.17.23",
63
63
  "@types/react": "^18.2.55",
64
64
  "@types/react-dom": "^19.0.4",
65
65
  "@typescript-eslint/eslint-plugin": "^6.21.0",
@@ -106,7 +106,7 @@
106
106
  "dependencies": {
107
107
  "@popperjs/core": "^2.11.8",
108
108
  "antd": "^5.23.4",
109
- "lodash": "^4.17.21",
109
+ "lodash": "^4.17.23",
110
110
  "react-popper": "^2.3.0"
111
111
  }
112
112
  }
@@ -1,4 +1,4 @@
1
- import theme from "./variable";
1
+ import theme from "./variable";
2
2
 
3
3
  export type ThemeType = typeof theme;
4
- export default theme;
4
+ export default theme;