@cryptofi/core-ui 0.28.0 → 0.30.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.
@@ -284,7 +284,7 @@ declare const uiColors: {
284
284
 
285
285
  declare const usdToNumber: (usd: string) => number;
286
286
 
287
- declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, }: {
287
+ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showTooltip, isAnimated, formatter, sampleRate, }: {
288
288
  data: any[] | undefined;
289
289
  dataKey: string;
290
290
  width?: string | undefined;
@@ -293,12 +293,13 @@ declare const CfAreaChart: ({ data, dataKey, width, height, areaType, showToolti
293
293
  showTooltip?: boolean | undefined;
294
294
  isAnimated?: boolean | undefined;
295
295
  formatter?: ((value: number) => string) | undefined;
296
+ sampleRate?: number | undefined;
296
297
  }) => react_jsx_runtime.JSX.Element;
297
298
  //# sourceMappingURL=AreaChart.d.ts.map
298
299
 
299
300
  /**
300
301
  *
301
- * @description use this component to visualize Chakra's breakpoints for debugging responsive styles.
302
+ * @description Use this component to visualize Chakra's breakpoints for debugging responsive styles.
302
303
  */
303
304
  declare const CfBreakpointDebugger: () => react_jsx_runtime.JSX.Element;
304
305
  //# sourceMappingURL=BreakpointDebugger.d.ts.map
@@ -358,7 +359,7 @@ type Props$1<T extends FieldValues> = {
358
359
  declare const CfInputArray: <T extends FieldValues>({ name, control, register, defaultValues, onArrayAppend, onArrayRemove, }: Props$1<T>) => react_jsx_runtime.JSX.Element;
359
360
  //# sourceMappingURL=InputArray.d.ts.map
360
361
 
361
- declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, }: {
362
+ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showTooltip, isAnimated, formatter, sampleRate, }: {
362
363
  data: any[] | undefined;
363
364
  dataKey: string;
364
365
  width?: string | undefined;
@@ -367,6 +368,7 @@ declare const CfLineChart: ({ data, dataKey, width, height, lineType, showToolti
367
368
  showTooltip?: boolean | undefined;
368
369
  isAnimated?: boolean | undefined;
369
370
  formatter?: ((value: number) => string) | undefined;
371
+ sampleRate?: number | undefined;
370
372
  }) => react_jsx_runtime.JSX.Element;
371
373
  //# sourceMappingURL=LineChart.d.ts.map
372
374
 
@@ -419,7 +421,17 @@ interface CfToastProps extends UseToastOptions {
419
421
  }
420
422
  declare const CfToast: ({ description, title, onClose, isClosable, status }: CfToastProps) => react_jsx_runtime.JSX.Element;
421
423
 
424
+ declare const useBreakpoint: () => {
425
+ breakpoint: string;
426
+ isSmallBreakpoint: boolean;
427
+ isMediumBreakpoint: boolean;
428
+ isLargeBreakpoint: boolean;
429
+ isAboveSmallBreakpoint: boolean;
430
+ isBelowLargeBreakpoint: boolean;
431
+ };
432
+ //# sourceMappingURL=useBreakpoint.d.ts.map
433
+
422
434
  type SVGIcon = ChakraComponent<'svg', object>;
423
435
  declare const layoutMinWidth = "22rem";
424
436
 
425
- export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfPagination, CfSelect, type CfSelectOption, type CfSelectProps, CfTag, type CfTagProps, CfToast, SvgIconAlert as IconAlert, SvgIconArrowDown as IconArrowDown, SvgIconArrowUp as IconArrowUp, SvgIconAvax as IconAvax, SvgIconBank as IconBank, SvgIconBarChart as IconBarChart, SvgIconBch as IconBch, SvgIconBtc as IconBtc, SvgIconCalendar as IconCalendar, SvgIconCaretDown as IconCaretDown, SvgIconCaretLeft as IconCaretLeft, SvgIconCaretRight as IconCaretRight, SvgIconCaretUp as IconCaretUp, SvgIconCent as IconCent, SvgIconCheck as IconCheck, SvgIconChecking as IconChecking, SvgIconClose as IconClose, SvgIconConnect as IconConnect, SvgIconCopy as IconCopy, SvgIconDollar as IconDollar, SvgIconDownload as IconDownload, SvgIconEdit as IconEdit, SvgIconEnter as IconEnter, SvgIconEnterInverted as IconEnterInverted, SvgIconEth as IconEth, SvgIconExchange as IconExchange, SvgIconFilter as IconFilter, SvgIconFilterActive as IconFilterActive, SvgIconHelp as IconHelp, SvgIconHistory as IconHistory, SvgIconHome as IconHome, SvgIconIndicatorDown as IconIndicatorDown, SvgIconIndicatorUp as IconIndicatorUp, SvgIconInfo as IconInfo, SvgIconLink as IconLink, SvgIconLtc as IconLtc, SvgIconMail as IconMail, SvgIconMenu as IconMenu, SvgIconMore as IconMore, SvgIconNotification as IconNotification, SvgIconOverview as IconOverview, SvgIconPercent as IconPercent, SvgIconPieChart as IconPieChart, SvgIconPlus as IconPlus, SvgIconRefresh as IconRefresh, SvgIconReports as IconReports, SvgIconReservesSuccess as IconReservesSuccess, SvgIconReservesWarning as IconReservesWarning, SvgIconSearch as IconSearch, SvgIconSettings as IconSettings, SvgIconSettlement as IconSettlement, SvgIconSignIn as IconSignIn, SvgIconSignOut as IconSignOut, SvgIconSort as IconSort, SvgIconSpinner as IconSpinner, SvgIconSupport as IconSupport, SvgIconTrash as IconTrash, SvgIconUpload as IconUpload, SvgIconUser as IconUser, SvgIconXlm as IconXlm, type SVGIcon, aggregateAmounts, exportedTheme as coreTheme, dateToTimestamp, formatPercentage, formatUSD, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber };
437
+ export { CfAreaChart, CfBreakpointDebugger, CfButtonGroup, CfButtonGroupButton, CfCard, CfCheckbox, type CfCheckboxProps, CfForm, CfInput, CfInputArray, type CfInputProps, CfLineChart, CfModal, CfPagination, CfSelect, type CfSelectOption, type CfSelectProps, CfTag, type CfTagProps, CfToast, SvgIconAlert as IconAlert, SvgIconArrowDown as IconArrowDown, SvgIconArrowUp as IconArrowUp, SvgIconAvax as IconAvax, SvgIconBank as IconBank, SvgIconBarChart as IconBarChart, SvgIconBch as IconBch, SvgIconBtc as IconBtc, SvgIconCalendar as IconCalendar, SvgIconCaretDown as IconCaretDown, SvgIconCaretLeft as IconCaretLeft, SvgIconCaretRight as IconCaretRight, SvgIconCaretUp as IconCaretUp, SvgIconCent as IconCent, SvgIconCheck as IconCheck, SvgIconChecking as IconChecking, SvgIconClose as IconClose, SvgIconConnect as IconConnect, SvgIconCopy as IconCopy, SvgIconDollar as IconDollar, SvgIconDownload as IconDownload, SvgIconEdit as IconEdit, SvgIconEnter as IconEnter, SvgIconEnterInverted as IconEnterInverted, SvgIconEth as IconEth, SvgIconExchange as IconExchange, SvgIconFilter as IconFilter, SvgIconFilterActive as IconFilterActive, SvgIconHelp as IconHelp, SvgIconHistory as IconHistory, SvgIconHome as IconHome, SvgIconIndicatorDown as IconIndicatorDown, SvgIconIndicatorUp as IconIndicatorUp, SvgIconInfo as IconInfo, SvgIconLink as IconLink, SvgIconLtc as IconLtc, SvgIconMail as IconMail, SvgIconMenu as IconMenu, SvgIconMore as IconMore, SvgIconNotification as IconNotification, SvgIconOverview as IconOverview, SvgIconPercent as IconPercent, SvgIconPieChart as IconPieChart, SvgIconPlus as IconPlus, SvgIconRefresh as IconRefresh, SvgIconReports as IconReports, SvgIconReservesSuccess as IconReservesSuccess, SvgIconReservesWarning as IconReservesWarning, SvgIconSearch as IconSearch, SvgIconSettings as IconSettings, SvgIconSettlement as IconSettlement, SvgIconSignIn as IconSignIn, SvgIconSignOut as IconSignOut, SvgIconSort as IconSort, SvgIconSpinner as IconSpinner, SvgIconSupport as IconSupport, SvgIconTrash as IconTrash, SvgIconUpload as IconUpload, SvgIconUser as IconUser, SvgIconXlm as IconXlm, type SVGIcon, aggregateAmounts, exportedTheme as coreTheme, dateToTimestamp, formatPercentage, formatUSD, getDelta, layoutMinWidth, pullFromEnd, uiColors, usdToNumber, useBreakpoint as useCfBreakpoint };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cryptofi/core-ui",
3
- "version": "0.28.0",
3
+ "version": "0.30.0",
4
4
  "author": {
5
5
  "name": "CryptoFi"
6
6
  },
@@ -11,11 +11,11 @@
11
11
  "type": "module",
12
12
  "scripts": {
13
13
  "build": "rm -rf ./dist && rollup -c",
14
- "build-storybook": "storybook build -o dist",
15
- "dev": "yarn storybook",
14
+ "build:storybook": "storybook build --docs -o dist",
15
+ "dev": "yarn storybook dev --docs",
16
16
  "format": "prettier --config ./.prettierrc -w '**/*.{tsx,ts,js,cjs,json,yml}' && git update-index --again",
17
17
  "icons:gen": "yarn icons:clean && yarn icons:prefix && npx @svgr/cli --out-dir ./src/icons -- ./svg-icons",
18
- "icons:clean": "npx rimraf '**/Icon!(*.stories).tsx' ./src/icons/index.ts",
18
+ "icons:clean": "npx rimraf './src/icons/**/Icon!(*.stories).tsx' ./src/icons/index.ts",
19
19
  "icons:prefix": "node scripts/prefixIcons.cjs",
20
20
  "lint": "eslint src --ext .tsx --ext .ts",
21
21
  "lint:fix": "yarn lint --fix",
@@ -26,7 +26,7 @@
26
26
  "publish:npm": "yarn build && npm publish --access public && yarn publish:notifier",
27
27
  "storybook": "storybook dev -p 6006",
28
28
  "test": "jest --colors --passWithNoTests",
29
- "test:one": "yarn test src/__tests/\"$@\".test.ts",
29
+ "test:one": "node scripts/testOne.cjs",
30
30
  "test:watch": "yarn test --collectCoverage=false --watch"
31
31
  },
32
32
  "module": "dist/index.js",
@@ -84,7 +84,6 @@
84
84
  "@testing-library/jest-dom": "^6.4.2",
85
85
  "@testing-library/react": "^13.4.0",
86
86
  "@types/jest": "^29.2.6",
87
- "@types/lodash.isempty": "^4",
88
87
  "@types/prop-types": "^15",
89
88
  "@types/react": "^18.2.55",
90
89
  "@types/react-dom": "^18.2.19",
@@ -111,7 +110,6 @@
111
110
  "framer-motion": "^10.16.4",
112
111
  "identity-obj-proxy": "^3.0.0",
113
112
  "jest": "^29.4.0",
114
- "lodash.isempty": "^4.4.0",
115
113
  "pnpapi": "^0.0.0",
116
114
  "prettier": "^3.1.0",
117
115
  "prop-types": "^15.8.1",