@omniumretail/component-library 1.0.21 → 1.0.23
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/bundle.js +660 -2
- package/dist/main.css +161 -1
- package/dist/types/components/Category/Category.stories.d.ts +4 -0
- package/dist/types/components/Category/CategoryContent/index.d.ts +7 -0
- package/dist/types/components/Category/CategorySidebar/index.d.ts +25 -0
- package/dist/types/components/Category/index.d.ts +6 -0
- package/dist/types/components/Questions/SingleQuestion/index.d.ts +0 -1
- package/dist/types/components/Questions/index.d.ts +0 -1
- package/dist/types/components/index.d.ts +1 -0
- package/package.json +1 -1
- package/src/components/Button/styles.module.scss +1 -1
- package/src/components/Category/CategoryContent/index.tsx +5 -5
- package/src/components/Category/CategorySidebar/index.tsx +1 -1
- package/src/components/Questions/index.tsx +1 -1
- package/src/components/index.tsx +1 -0
package/dist/main.css
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
padding: 12px 24px;
|
|
6
6
|
border-radius: 4px;
|
|
7
7
|
min-width: 170px;
|
|
8
|
-
display: flex;
|
|
8
|
+
display: inline-flex;
|
|
9
9
|
align-items: center;
|
|
10
10
|
justify-content: center;
|
|
11
11
|
align-self: flex-start;
|
|
@@ -522,3 +522,163 @@
|
|
|
522
522
|
.gER2xKwlnobsIz4BLhGJ[aria-checked=true] {
|
|
523
523
|
background: var(--color-orange) !important;
|
|
524
524
|
}
|
|
525
|
+
/*!*****************************************************************************************************************************************************************!*\
|
|
526
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Category/styles.module.scss ***!
|
|
527
|
+
\*****************************************************************************************************************************************************************/
|
|
528
|
+
.lOKzfPUFf3ukLT2wGZaY {
|
|
529
|
+
display: grid;
|
|
530
|
+
grid-template-columns: 300px auto;
|
|
531
|
+
gap: 16px;
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
.OIrZOBn2f036M5MGzc61,
|
|
535
|
+
.adDQP_uvIYgNFVC4VdHj {
|
|
536
|
+
background: white;
|
|
537
|
+
padding: 20px;
|
|
538
|
+
}
|
|
539
|
+
/*!*********************************************************************************************************************************************************************************!*\
|
|
540
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Category/CategorySidebar/styles.module.scss ***!
|
|
541
|
+
\*********************************************************************************************************************************************************************************/
|
|
542
|
+
.yBjbWkudwA_AOwhHrnlc .ant-tree-title {
|
|
543
|
+
font-weight: var(--font-weight-semibold);
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
.je000VEfsPqZupGr8ymu {
|
|
547
|
+
font-size: var(--font-size-body-4);
|
|
548
|
+
font-weight: 600;
|
|
549
|
+
line-height: 100%;
|
|
550
|
+
color: var(--color-blue);
|
|
551
|
+
text-transform: uppercase;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
button {
|
|
555
|
+
margin-top: 32px;
|
|
556
|
+
width: 100%;
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
.tUDGWNXopUejF6zWJloy {
|
|
560
|
+
margin-top: 20px;
|
|
561
|
+
}
|
|
562
|
+
/*!*********************************************************************************************************************************************************************************!*\
|
|
563
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Questions/SingleQuestion/styles.module.scss ***!
|
|
564
|
+
\*********************************************************************************************************************************************************************************/
|
|
565
|
+
.O0Juh2loT1HHb612gOA4 .ant-form-item {
|
|
566
|
+
margin-bottom: 0;
|
|
567
|
+
}
|
|
568
|
+
.O0Juh2loT1HHb612gOA4 .ant-space {
|
|
569
|
+
display: flex;
|
|
570
|
+
flex-direction: column;
|
|
571
|
+
gap: 12px;
|
|
572
|
+
border-bottom: 1px solid var(--color-blue);
|
|
573
|
+
padding: 16px 10px;
|
|
574
|
+
}
|
|
575
|
+
.O0Juh2loT1HHb612gOA4 .ant-space-item {
|
|
576
|
+
width: 100%;
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
.hg7oiINfKCZSUt6dEq4A {
|
|
580
|
+
display: none;
|
|
581
|
+
}
|
|
582
|
+
|
|
583
|
+
.BAso_dbeoowN7VtxWiKx {
|
|
584
|
+
display: grid;
|
|
585
|
+
grid-template-columns: minmax(18px, auto) 1fr 90px;
|
|
586
|
+
gap: 20px;
|
|
587
|
+
color: var(--color-black);
|
|
588
|
+
font-size: var(--font-size-body-4);
|
|
589
|
+
line-height: 100%;
|
|
590
|
+
font-weight: var(--font-weight-medium);
|
|
591
|
+
align-items: center;
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
.qg_bZXG9dQdJvLBRGuqw {
|
|
595
|
+
display: grid;
|
|
596
|
+
grid-template-columns: minmax(18px, auto) 1fr 90px;
|
|
597
|
+
gap: 20px;
|
|
598
|
+
color: var(--color-grey-dark);
|
|
599
|
+
font-size: var(--font-size-body-3);
|
|
600
|
+
align-items: center;
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
.y8UJFmCyGQzEQk4XjnI9 {
|
|
604
|
+
display: none;
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
.kknDal3CIbUXI7Lu2wPV {
|
|
608
|
+
display: flex;
|
|
609
|
+
align-items: center;
|
|
610
|
+
justify-content: flex-start;
|
|
611
|
+
gap: 20px;
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
.upuPapYjj1uGowukEEIi {
|
|
615
|
+
display: none;
|
|
616
|
+
align-items: center;
|
|
617
|
+
justify-content: center;
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
.KfrJPVKxY4b6bmXeJL5U {
|
|
621
|
+
display: flex;
|
|
622
|
+
align-items: center;
|
|
623
|
+
justify-content: center;
|
|
624
|
+
gap: 16px;
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
.zRPlv7rfSSACHPLZLs16,
|
|
628
|
+
.EHyxN8DmDHOLkQDROSV5,
|
|
629
|
+
.NLIlnBPfo09cpWYzpZ_J {
|
|
630
|
+
font-size: var(--font-size-body-5);
|
|
631
|
+
cursor: pointer;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
.AHIc83P7PkYUr3no83sO {
|
|
635
|
+
margin-top: 24px;
|
|
636
|
+
}
|
|
637
|
+
/*!*********************************************************************************************************************************************************************************!*\
|
|
638
|
+
!*** css ./node_modules/css-loader/dist/cjs.js??ruleSet[1].rules[0].use[1]!./node_modules/sass-loader/dist/cjs.js!./src/components/Category/CategoryContent/styles.module.scss ***!
|
|
639
|
+
\*********************************************************************************************************************************************************************************/
|
|
640
|
+
.vw302ajYc4_7bIROncyM {
|
|
641
|
+
font-size: var(--font-size-body-4);
|
|
642
|
+
font-weight: 600;
|
|
643
|
+
line-height: 100%;
|
|
644
|
+
color: var(--color-blue);
|
|
645
|
+
text-transform: uppercase;
|
|
646
|
+
margin-bottom: 32px;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
.DrsaZTs1Ny6wZ76RwDR9 {
|
|
650
|
+
font-size: var(--font-size-body-2);
|
|
651
|
+
color: var(--color-black);
|
|
652
|
+
font-weight: 700;
|
|
653
|
+
text-transform: uppercase;
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
.HVSssNqaNxLcYT_1lxBL {
|
|
657
|
+
display: grid;
|
|
658
|
+
grid-template-columns: minmax(200px, 1fr) auto 1fr auto;
|
|
659
|
+
gap: 46px;
|
|
660
|
+
}
|
|
661
|
+
|
|
662
|
+
.ACPbYsV0wNkissVLHcFh {
|
|
663
|
+
margin-top: 16px;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
Label {
|
|
667
|
+
margin-bottom: 8px;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
.g19LZsD26yzPPjBtV31w .ant-select {
|
|
671
|
+
width: 100%;
|
|
672
|
+
}
|
|
673
|
+
.g19LZsD26yzPPjBtV31w .ant-select-selector {
|
|
674
|
+
border-color: rgba(var(--color-black-rgb), 0.5) !important;
|
|
675
|
+
height: 50px !important;
|
|
676
|
+
display: flex;
|
|
677
|
+
align-items: center;
|
|
678
|
+
}
|
|
679
|
+
.g19LZsD26yzPPjBtV31w .ant-select-arrow {
|
|
680
|
+
color: var(--color-black);
|
|
681
|
+
}
|
|
682
|
+
.g19LZsD26yzPPjBtV31w .ant-switch {
|
|
683
|
+
width: 30px;
|
|
684
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
export interface Questions {
|
|
2
|
+
grade: string;
|
|
3
|
+
questions: string;
|
|
4
|
+
info: string;
|
|
5
|
+
}
|
|
6
|
+
export interface Data {
|
|
7
|
+
categoryName: string;
|
|
8
|
+
generalEvaluationLevel: string;
|
|
9
|
+
grade: string;
|
|
10
|
+
openAnswer: boolean;
|
|
11
|
+
questions: Questions[];
|
|
12
|
+
}
|
|
13
|
+
export interface DataNode {
|
|
14
|
+
title: string;
|
|
15
|
+
key: string;
|
|
16
|
+
data?: Data;
|
|
17
|
+
children?: DataNode[];
|
|
18
|
+
}
|
|
19
|
+
interface SidebarProps {
|
|
20
|
+
categoryContentData: any;
|
|
21
|
+
categorySidebarInfo: any;
|
|
22
|
+
data: DataNode[];
|
|
23
|
+
}
|
|
24
|
+
export declare const CategorySidebar: (props: SidebarProps) => JSX.Element;
|
|
25
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Form, Select } from 'antd';
|
|
2
2
|
import { useForm } from 'antd/es/form/Form';
|
|
3
|
-
import { Button } from '
|
|
4
|
-
import { InputField } from '
|
|
5
|
-
import { Label } from '
|
|
6
|
-
import { Questions } from '
|
|
7
|
-
import { Switch } from '
|
|
3
|
+
import { Button } from '../../Button';
|
|
4
|
+
import { InputField } from '../../Input';
|
|
5
|
+
import { Label } from '../../Label';
|
|
6
|
+
import { Questions } from '../../Questions';
|
|
7
|
+
import { Switch } from '../../Switch';
|
|
8
8
|
import { useEffect, useState } from 'react';
|
|
9
9
|
import styles from './styles.module.scss';
|
|
10
10
|
|
|
@@ -3,7 +3,7 @@ import { Tree } from 'antd';
|
|
|
3
3
|
import type { TreeProps } from 'antd/es/tree';
|
|
4
4
|
import styles from './styles.module.scss';
|
|
5
5
|
import { PlusOutlined } from '@ant-design/icons';
|
|
6
|
-
import { Button } from '
|
|
6
|
+
import { Button } from '../../Button';
|
|
7
7
|
|
|
8
8
|
export interface Questions {
|
|
9
9
|
grade: string;
|
|
@@ -3,7 +3,7 @@ import { PlusOutlined } from '@ant-design/icons';
|
|
|
3
3
|
import { Form } from 'antd';
|
|
4
4
|
import { DragDropContext, Droppable, Draggable } from "react-beautiful-dnd";
|
|
5
5
|
import { SingleQuestion } from "./SingleQuestion";
|
|
6
|
-
import { Link } from '
|
|
6
|
+
import { Link } from '../Link';
|
|
7
7
|
import { FieldContext } from 'rc-field-form';
|
|
8
8
|
import { t } from 'i18next';
|
|
9
9
|
|
package/src/components/index.tsx
CHANGED