armtek-uikit-react 1.0.76 → 1.0.78

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.
@@ -0,0 +1,20 @@
1
+ @import "variables";
2
+
3
+ .Paper{
4
+ border-radius: var(--border-radius);
5
+ background-color: #fff;
6
+ padding: calc(var(--size-step) * 2);
7
+ }
8
+ .Paper_elevation{
9
+ box-shadow: var(--box-shadow);
10
+ }
11
+ .Paper_outlined{
12
+ border: 1px solid var(--color-gray-300)
13
+ }
14
+
15
+ .Paper_dark{
16
+ background-color: var(--color-gray-700);
17
+ &.Paper_outlined{
18
+ border: 1px solid rgba(255, 255, 255, 0.2)
19
+ }
20
+ }
package/assets/global.css CHANGED
@@ -15,7 +15,7 @@ body{
15
15
  background-color: #DFE2E6;
16
16
  border-radius: 0px;
17
17
  }
18
- .app{
18
+ :root{
19
19
  --font-family: 'Roboto';
20
20
  --size-elarge: 56px;
21
21
  --size-large: 42px;
@@ -460,13 +460,8 @@ body{
460
460
 
461
461
 
462
462
 
463
- .mt-1{margin-top:var(--size-step)}
464
- .mt-2{margin-top:calc(var(--size-step) * 2)}
465
- .mt-3{margin-top:calc(var(--size-step) * 3)}
466
- .mt-4{margin-top:calc(var(--size-step) * 4)}
467
- .mt-5{margin-top:calc(var(--size-step) * 5)}
468
- .mt-6{margin-top:calc(var(--size-step) * 6)}
469
463
 
464
+ .m-0{margin: 0}
470
465
  .m-1{margin:var(--size-step)}
471
466
  .m-2{margin:calc(var(--size-step) * 2)}
472
467
  .m-3{margin:calc(var(--size-step) * 3)}
@@ -474,20 +469,32 @@ body{
474
469
  .m-5{margin:calc(var(--size-step) * 5)}
475
470
  .m-6{margin:calc(var(--size-step) * 6)}
476
471
 
477
- .mx-1{margin:0 var(--size-step)}
478
- .mx-2{margin:0 calc(var(--size-step) * 2)}
479
- .mx-3{margin:0 calc(var(--size-step) * 3)}
480
- .mx-4{margin:0 calc(var(--size-step) * 4)}
481
- .mx-5{margin:0 calc(var(--size-step) * 5)}
482
- .mx-6{margin:0 calc(var(--size-step) * 6)}
472
+ .mx-0{margin-left:0;margin-right:0}
473
+ .mx-1{margin-left:var(--size-step);margin-right:var(--size-step)}
474
+ .mx-2{margin-left:calc(var(--size-step) * 2);margin-right:calc(var(--size-step) * 2)}
475
+ .mx-3{margin-left:calc(var(--size-step) * 3);margin-right:calc(var(--size-step) * 3)}
476
+ .mx-4{margin-left:calc(var(--size-step) * 4);margin-right:calc(var(--size-step) * 4)}
477
+ .mx-5{margin-left:calc(var(--size-step) * 5);margin-right:calc(var(--size-step) * 5)}
478
+ .mx-6{margin-left:calc(var(--size-step) * 6);margin-right:calc(var(--size-step) * 6)}
483
479
 
484
- .my-1{margin:var(--size-step) 0}
485
- .my-2{margin:calc(var(--size-step) * 2) 0}
486
- .my-3{margin:calc(var(--size-step) * 3) 0}
487
- .my-4{margin:calc(var(--size-step) * 4) 0}
488
- .my-5{margin:calc(var(--size-step) * 5) 0}
489
- .my-6{margin:calc(var(--size-step) * 6) 0}
480
+ .my-0{margin-top:0;margin-bottom:0}
481
+ .my-1{margin-top:var(--size-step);margin-right:var(--size-step)}
482
+ .my-2{margin-top:calc(var(--size-step) * 2);margin-bottom:calc(var(--size-step) * 2)}
483
+ .my-3{margin-top:calc(var(--size-step) * 3);margin-bottom:calc(var(--size-step) * 3)}
484
+ .my-4{margin-top:calc(var(--size-step) * 4);margin-bottom:calc(var(--size-step) * 4)}
485
+ .my-5{margin-top:calc(var(--size-step) * 5);margin-bottom:calc(var(--size-step) * 5)}
486
+ .my-6{margin-top:calc(var(--size-step) * 6);margin-bottom:calc(var(--size-step) * 6)}
490
487
 
488
+
489
+ .mt-0{margin-top: 0}
490
+ .mt-1{margin-top:var(--size-step)}
491
+ .mt-2{margin-top:calc(var(--size-step) * 2)}
492
+ .mt-3{margin-top:calc(var(--size-step) * 3)}
493
+ .mt-4{margin-top:calc(var(--size-step) * 4)}
494
+ .mt-5{margin-top:calc(var(--size-step) * 5)}
495
+ .mt-6{margin-top:calc(var(--size-step) * 6)}
496
+
497
+ .mb-0{margin-bottom:0}
491
498
  .mb-1{margin-bottom:var(--size-step)}
492
499
  .mb-2{margin-bottom:calc(var(--size-step) * 2)}
493
500
  .mb-3{margin-bottom:calc(var(--size-step) * 3)}
@@ -495,6 +502,7 @@ body{
495
502
  .mb-5{margin-bottom:calc(var(--size-step) * 5)}
496
503
  .mb-6{margin-bottom:calc(var(--size-step) * 6)}
497
504
 
505
+ .ml-0{margin-left:0}
498
506
  .ml-1{margin-left:var(--size-step)}
499
507
  .ml-2{margin-left:calc(var(--size-step) * 2)}
500
508
  .ml-3{margin-left:calc(var(--size-step) * 3)}
@@ -502,6 +510,7 @@ body{
502
510
  .ml-5{margin-left:calc(var(--size-step) * 5)}
503
511
  .ml-6{margin-left:calc(var(--size-step) * 6)}
504
512
 
513
+ .mr-0{margin-right:0}
505
514
  .mr-1{margin-right:var(--size-step)}
506
515
  .mr-2{margin-right:calc(var(--size-step) * 2)}
507
516
  .mr-3{margin-right:calc(var(--size-step) * 3)}
@@ -509,6 +518,7 @@ body{
509
518
  .mr-5{margin-right:calc(var(--size-step) * 5)}
510
519
  .mr-6{margin-right:calc(var(--size-step) * 6)}
511
520
 
521
+ .p-0{padding:0}
512
522
  .p-1{padding:var(--size-step)}
513
523
  .p-2{padding:calc(var(--size-step) * 2)}
514
524
  .p-3{padding:calc(var(--size-step) * 3)}
@@ -516,20 +526,24 @@ body{
516
526
  .p-5{padding:calc(var(--size-step) * 5)}
517
527
  .p-6{padding:calc(var(--size-step) * 6)}
518
528
 
519
- .px-1{padding:0 var(--size-step)}
520
- .px-2{padding:0 calc(var(--size-step) * 2)}
521
- .px-3{padding:0 calc(var(--size-step) * 3)}
522
- .px-4{padding:0 calc(var(--size-step) * 4)}
523
- .px-5{padding:0 calc(var(--size-step) * 5)}
524
- .px-6{padding:0 calc(var(--size-step) * 6)}
529
+ .px-0{padding-left:0;padding-right:0}
530
+ .px-1{padding-left:var(--size-step);margin-right:var(--size-step)}
531
+ .px-2{padding-left:calc(var(--size-step) * 2);padding-right:calc(var(--size-step) * 2)}
532
+ .px-3{padding-left:calc(var(--size-step) * 3);padding-right:calc(var(--size-step) * 3)}
533
+ .px-4{padding-left:calc(var(--size-step) * 4);padding-right:calc(var(--size-step) * 4)}
534
+ .px-5{padding-left:calc(var(--size-step) * 5);padding-right:calc(var(--size-step) * 5)}
535
+ .px-6{padding-left:calc(var(--size-step) * 6);padding-right:calc(var(--size-step) * 6)}
536
+
537
+ .py-0{padding-top:0;padding-bottom:0}
538
+ .py-1{padding-top:var(--size-step);margin-right:var(--size-step)}
539
+ .py-2{padding-top:calc(var(--size-step) * 2);padding-bottom:calc(var(--size-step) * 2)}
540
+ .py-3{padding-top:calc(var(--size-step) * 3);padding-bottom:calc(var(--size-step) * 3)}
541
+ .py-4{padding-top:calc(var(--size-step) * 4);padding-bottom:calc(var(--size-step) * 4)}
542
+ .py-5{padding-top:calc(var(--size-step) * 5);padding-bottom:calc(var(--size-step) * 5)}
543
+ .py-6{padding-top:calc(var(--size-step) * 6);padding-bottom:calc(var(--size-step) * 6)}
525
544
 
526
- .py-1{padding:var(--size-step) 0}
527
- .py-2{padding:calc(var(--size-step) * 2) 0}
528
- .py-3{padding:calc(var(--size-step) * 3) 0}
529
- .py-4{padding:calc(var(--size-step) * 4) 0}
530
- .py-5{padding:calc(var(--size-step) * 5) 0}
531
- .py-6{padding:calc(var(--size-step) * 6) 0}
532
545
 
546
+ .pt-0{padding-top:0}
533
547
  .pt-1{padding-top:var(--size-step)}
534
548
  .pt-2{padding-top:calc(var(--size-step) * 2)}
535
549
  .pt-3{padding-top:calc(var(--size-step) * 3)}
@@ -537,6 +551,7 @@ body{
537
551
  .pt-5{padding-top:calc(var(--size-step) * 5)}
538
552
  .pt-6{padding-top:calc(var(--size-step) * 6)}
539
553
 
554
+ .pb-0{padding-bottom:0}
540
555
  .pb-1{padding-bottom:var(--size-step)}
541
556
  .pb-2{padding-bottom:calc(var(--size-step) * 2)}
542
557
  .pb-3{padding-bottom:calc(var(--size-step) * 3)}
@@ -544,6 +559,7 @@ body{
544
559
  .pb-5{padding-bottom:calc(var(--size-step) * 5)}
545
560
  .pb-6{padding-bottom:calc(var(--size-step) * 6)}
546
561
 
562
+ .pl-0{padding-left:0}
547
563
  .pl-1{padding-left:var(--size-step)}
548
564
  .pl-2{padding-left:calc(var(--size-step) * 2)}
549
565
  .pl-3{padding-left:calc(var(--size-step) * 3)}
@@ -551,6 +567,7 @@ body{
551
567
  .pl-5{padding-left:calc(var(--size-step) * 5)}
552
568
  .pl-6{padding-left:calc(var(--size-step) * 6)}
553
569
 
570
+ .pr-0{padding-right:0}
554
571
  .pr-1{padding-right:var(--size-step)}
555
572
  .pr-2{padding-right:calc(var(--size-step) * 2)}
556
573
  .pr-3{padding-right:calc(var(--size-step) * 3)}
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"armtek-uikit-react","version":"1.0.76","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
1
+ {"name":"armtek-uikit-react","version":"1.0.78","description":"Armtek UIKit for React","repository":{"type":"git","url":"ssh://git@gl.corp:10022/int/uikit/uikit_react.git"},"author":"","license":"ISC","dependencies":{"build":"^0.1.4","clsx":"^2.0.0","rc-slider":"^10.2.1","react":"*","react-datepicker":"^4.16.0","react-dom":"*","react-transition-group":"^4.4.5"},"peerDependencies":{"react":"*","react-dom":"*"},"scripts":{"pub":"npm version patch && npm publish"}}
@@ -10,6 +10,6 @@ type OwnProps = {
10
10
  transitionProps?: DropDownProps['transitionProps'];
11
11
  triggerOnIcon?: boolean;
12
12
  };
13
- type AccordionProps = OwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof OwnProps>;
13
+ export type AccordionProps = OwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof OwnProps>;
14
14
  declare const Accordion: (props: AccordionProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export default Accordion;
@@ -0,0 +1,9 @@
1
+ import { ComponentPropsWithoutRef } from 'react';
2
+ import { ThemeType } from '../../types/theme';
3
+ type OwnProps = {
4
+ variant?: 'elevation' | 'outlined';
5
+ theme?: ThemeType;
6
+ };
7
+ export type PaperProps = OwnProps & Omit<ComponentPropsWithoutRef<'div'>, keyof OwnProps>;
8
+ declare const Paper: (props: PaperProps) => import("react/jsx-runtime").JSX.Element;
9
+ export default Paper;
@@ -0,0 +1,25 @@
1
+ import clsx from 'clsx';
2
+ import css from "./Paper.module.scss";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { Fragment as _Fragment } from "react/jsx-runtime";
5
+ const Paper = props => {
6
+ let {
7
+ children,
8
+ className,
9
+ theme,
10
+ variant = 'elevation',
11
+ ...divPops
12
+ } = props;
13
+ return /*#__PURE__*/_jsx(_Fragment, {
14
+ children: /*#__PURE__*/_jsx("div", {
15
+ className: clsx(css.Paper, 'Arm-Paper', className, {
16
+ [css.Paper_elevation]: variant === 'elevation',
17
+ [css.Paper_outlined]: variant === 'outlined',
18
+ [css.Paper_dark]: theme === 'dark'
19
+ }),
20
+ ...divPops,
21
+ children: children
22
+ })
23
+ });
24
+ };
25
+ export default Paper;
@@ -0,0 +1 @@
1
+ @import "./../../assets/Paper";
@@ -0,0 +1,2 @@
1
+ export { default } from './Paper';
2
+ export * from './Paper';
@@ -0,0 +1,2 @@
1
+ export { default } from "./Paper";
2
+ export * from "./Paper";
@@ -0,0 +1,6 @@
1
+ import { PopperBaseProps } from '../../ui/Popper';
2
+ export type PopoverProps = {
3
+ onClose?: () => void;
4
+ } & PopperBaseProps;
5
+ export declare const Popover: (props: PopoverProps) => import("react/jsx-runtime").JSX.Element | null;
6
+ export default Popover;
@@ -0,0 +1,22 @@
1
+ import BackDrop from "../BackDrop";
2
+ import { PopperBase } from "../Popper";
3
+ import { jsx as _jsx } from "react/jsx-runtime";
4
+ import { Fragment as _Fragment } from "react/jsx-runtime";
5
+ export const Popover = props => {
6
+ const {
7
+ onClose,
8
+ children,
9
+ ...poperProps
10
+ } = props;
11
+ if (!props.open) return null;
12
+ return /*#__PURE__*/_jsx(_Fragment, {
13
+ children: /*#__PURE__*/_jsx(BackDrop, {
14
+ onClick: onClose,
15
+ children: /*#__PURE__*/_jsx(PopperBase, {
16
+ ...poperProps,
17
+ children: children
18
+ })
19
+ })
20
+ });
21
+ };
22
+ export default Popover;
@@ -0,0 +1 @@
1
+ export { default } from './Popover';
@@ -0,0 +1 @@
1
+ export { default } from "./Popover";
@@ -1,3 +1,4 @@
1
1
  import { PopperBaseProps } from './PopperBase';
2
- export declare const Popper: (props: PopperBaseProps) => import("react/jsx-runtime").JSX.Element | null;
2
+ export type PopperProps = {} & PopperBaseProps;
3
+ export declare const Popper: (props: PopperProps) => import("react/jsx-runtime").JSX.Element | null;
3
4
  export default Popper;