Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aboutbits/react-ui

Package Overview
Dependencies
Maintainers
1
Versions
106
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aboutbits/react-ui - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

components/pagination/SectionFooter/index.d.ts

4

components/form/SelectMonth.d.ts
/// <reference types="react" />
import { ClassNameProps } from '../types';
export declare enum month {
export declare enum Month {
JANUARY = "JANUARY",

@@ -17,3 +17,3 @@ FEBRUARY = "FEBRUARY",

}
export declare const monthNames: [
export declare const MonthNames: [
'JANUARY',

@@ -20,0 +20,0 @@ 'FEBRUARY',

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SelectMonth = exports.monthNames = exports.month = void 0;
exports.SelectMonth = exports.MonthNames = exports.Month = void 0;
var tslib_1 = require("tslib");

@@ -9,18 +9,18 @@ var jsx_runtime_1 = require("react/jsx-runtime");

var Select_1 = require("./Select");
var month;
(function (month) {
month["JANUARY"] = "JANUARY";
month["FEBRUARY"] = "FEBRUARY";
month["MARCH"] = "MARCH";
month["APRIL"] = "APRIL";
month["MAY"] = "MAY";
month["JUNE"] = "JUNE";
month["JULY"] = "JULY";
month["AUGUST"] = "AUGUST";
month["SEPTEMBER"] = "SEPTEMBER";
month["OCTOBER"] = "OCTOBER";
month["NOVEMBER"] = "NOVEMBER";
month["DECEMBER"] = "DECEMBER";
})(month = exports.month || (exports.month = {}));
exports.monthNames = [
var Month;
(function (Month) {
Month["JANUARY"] = "JANUARY";
Month["FEBRUARY"] = "FEBRUARY";
Month["MARCH"] = "MARCH";
Month["APRIL"] = "APRIL";
Month["MAY"] = "MAY";
Month["JUNE"] = "JUNE";
Month["JULY"] = "JULY";
Month["AUGUST"] = "AUGUST";
Month["SEPTEMBER"] = "SEPTEMBER";
Month["OCTOBER"] = "OCTOBER";
Month["NOVEMBER"] = "NOVEMBER";
Month["DECEMBER"] = "DECEMBER";
})(Month = exports.Month || (exports.Month = {}));
exports.MonthNames = [
'JANUARY',

@@ -42,4 +42,4 @@ 'FEBRUARY',

var internationalization = framework_1.useInternationalization();
return (jsx_runtime_1.jsx(Select_1.Select, tslib_1.__assign({}, props, { ref: ref }, { children: Object.keys(month).map(function (element) { return (jsx_runtime_1.jsx("option", tslib_1.__assign({ value: element }, { children: internationalization.translate("shared.month." + element) }), element)); }) }), void 0));
return (jsx_runtime_1.jsx(Select_1.Select, tslib_1.__assign({}, props, { ref: ref }, { children: Object.keys(Month).map(function (element) { return (jsx_runtime_1.jsx("option", tslib_1.__assign({ value: element }, { children: internationalization.translate("shared.month." + element) }), element)); }) }), void 0));
});
exports.SelectMonth.displayName = 'SelectMonth';

@@ -6,1 +6,2 @@ export * from './PaginationContainer';

export * from './PaginationRouter';
export * from './SectionFooter';

@@ -9,1 +9,2 @@ "use strict";

tslib_1.__exportStar(require("./PaginationRouter"), exports);
tslib_1.__exportStar(require("./SectionFooter"), exports);
/// <reference types="react" />
import { IndexType } from '@aboutbits/pagination';
import { ClassNameProps } from '../types';
declare type Props = ClassNameProps & {
export declare type PaginationInMemoryProps = ClassNameProps & {
/**

@@ -30,3 +30,3 @@ * Defines the current page.

};
declare const PaginationInMemory: React.FC<Props>;
declare const PaginationInMemory: React.FC<PaginationInMemoryProps>;
export { PaginationInMemory };
/// <reference types="react" />
import { IndexType } from '@aboutbits/pagination';
import { LinkComponentProps } from '../../framework/router/LinkComponentContext';
import { LinkComponentProps } from '../../framework';
import { ClassNameProps } from '../types';
declare type Props = ClassNameProps & {
export declare type PaginationRouterProps = ClassNameProps & {
/**

@@ -23,3 +23,3 @@ * Defines the current page.

*/
linkProps: (parameter: {
linkProps?: (parameter: {
pageIndex: number;

@@ -37,3 +37,3 @@ size: number;

};
declare const PaginationRouter: React.FC<Props>;
declare const PaginationRouter: React.FC<PaginationRouterProps>;
export { PaginationRouter };

@@ -8,5 +8,3 @@ "use strict";

var pagination_1 = require("@aboutbits/pagination");
var LinkComponentContext_1 = require("../../framework/router/LinkComponentContext");
var ThemeContext_1 = require("../../framework/theme/ThemeContext");
var InternationalizationContext_1 = require("../../framework/internationalization/InternationalizationContext");
var framework_1 = require("../../framework");
var PaginationContainer_1 = require("./PaginationContainer");

@@ -16,6 +14,14 @@ var PaginationPreviousNextContent_1 = require("./PaginationPreviousNextContent");

var PaginationRouter = function (_a) {
var page = _a.page, size = _a.size, total = _a.total, linkProps = _a.linkProps, config = _a.config, className = _a.className;
var internationalization = InternationalizationContext_1.useInternationalization();
var LinkComponent = LinkComponentContext_1.useLinkComponent();
var paginationTheme = ThemeContext_1.useTheme().pagination;
var page = _a.page, size = _a.size, total = _a.total, config = _a.config, className = _a.className, _b = _a.linkProps, linkProps = _b === void 0 ? function (_a) {
var pageIndex = _a.pageIndex, size = _a.size;
var params = new URLSearchParams(window.parent.location.search);
params.set('page', String(pageIndex));
params.set('size', String(size));
return {
href: window.parent.location.pathname + '?' + params.toString(),
};
} : _b;
var internationalization = framework_1.useInternationalization();
var LinkComponent = framework_1.useLinkComponent();
var paginationTheme = framework_1.useTheme().pagination;
var pagination = pagination_1.calculatePagination(page, size, total, config);

@@ -22,0 +28,0 @@ if (pagination === null)

@@ -8,2 +8,2 @@ export * from './Section/Section';

export * from './SectionItem/SectionDescriptionItem';
export * from './SectionFooter';
export * from './SectionFooter/SectionFooter';

@@ -11,2 +11,2 @@ "use strict";

tslib_1.__exportStar(require("./SectionItem/SectionDescriptionItem"), exports);
tslib_1.__exportStar(require("./SectionFooter"), exports);
tslib_1.__exportStar(require("./SectionFooter/SectionFooter"), exports);
{
"name": "@aboutbits/react-ui",
"version": "0.0.24",
"version": "0.0.25",
"main": "index.js",

@@ -5,0 +5,0 @@ "types": "index.d.ts",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc