react-restyle-components 0.2.89 → 0.2.91
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/lib/src/core-components/__mocks__/styleMock.d.ts +2 -0
- package/lib/src/core-components/__mocks__/styleMock.d.ts.map +1 -0
- package/lib/src/core-components/__mocks__/styleMock.js +1 -0
- package/lib/src/core-components/index.d.ts +34 -0
- package/lib/src/core-components/index.d.ts.map +1 -0
- package/lib/src/core-components/index.js +33 -0
- package/lib/src/core-components/jest.config.d.ts +12 -0
- package/lib/src/core-components/jest.config.d.ts.map +1 -0
- package/lib/src/core-components/jest.config.js +10 -0
- package/lib/src/core-components/src/App.css +45 -0
- package/lib/src/core-components/src/App.d.ts +4 -0
- package/lib/src/core-components/src/App.d.ts.map +1 -0
- package/lib/src/core-components/src/App.js +9 -0
- package/lib/src/core-components/src/assets/styles/colors.css +217 -0
- package/lib/src/core-components/src/assets/styles/decorations.css +15 -0
- package/lib/src/core-components/src/assets/styles/fontface.css +17 -0
- package/lib/src/core-components/src/assets/styles/scrollbars.css +70 -0
- package/lib/src/core-components/src/assets/styles/typography.css +3 -0
- package/lib/src/core-components/src/atoms/button/Button.test.d.ts +2 -0
- package/lib/src/core-components/src/atoms/button/Button.test.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/button/Button.test.js +27 -0
- package/lib/src/core-components/src/atoms/button/Button.types.d.ts +26 -0
- package/lib/src/core-components/src/atoms/button/Button.types.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/button/Button.types.js +1 -0
- package/lib/src/core-components/src/atoms/button/button.component.d.ts +4 -0
- package/lib/src/core-components/src/atoms/button/button.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/button/button.component.js +18 -0
- package/lib/src/core-components/src/atoms/button/buttonGroup/buttonGroup.component.d.ts +7 -0
- package/lib/src/core-components/src/atoms/button/buttonGroup/buttonGroup.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/button/buttonGroup/buttonGroup.component.js +4 -0
- package/lib/src/core-components/src/atoms/check-box/checkBox.component.d.ts +10 -0
- package/lib/src/core-components/src/atoms/check-box/checkBox.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/check-box/checkBox.component.js +20 -0
- package/lib/src/core-components/src/atoms/check-box/checkBox.spec.d.ts +2 -0
- package/lib/src/core-components/src/atoms/check-box/checkBox.spec.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/check-box/checkBox.spec.js +32 -0
- package/lib/src/core-components/src/atoms/date-picker/date-picker.component.d.ts +12 -0
- package/lib/src/core-components/src/atoms/date-picker/date-picker.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/date-picker/date-picker.component.js +20 -0
- package/lib/src/core-components/src/atoms/form/form.component.d.ts +105 -0
- package/lib/src/core-components/src/atoms/form/form.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/form/form.component.js +87 -0
- package/lib/src/core-components/src/atoms/icons/icons.component.d.ts +11 -0
- package/lib/src/core-components/src/atoms/icons/icons.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/icons/icons.component.js +71 -0
- package/lib/src/core-components/src/atoms/input/input-otp.component.d.ts +14 -0
- package/lib/src/core-components/src/atoms/input/input-otp.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/input/input-otp.component.js +61 -0
- package/lib/src/core-components/src/atoms/input/input-otp.styles.css +35 -0
- package/lib/src/core-components/src/atoms/input/input-pin.component.d.ts +16 -0
- package/lib/src/core-components/src/atoms/input/input-pin.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/input/input-pin.component.js +76 -0
- package/lib/src/core-components/src/atoms/input/input.component.d.ts +18 -0
- package/lib/src/core-components/src/atoms/input/input.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/input/input.component.js +16 -0
- package/lib/src/core-components/src/atoms/input/input.styles.css +35 -0
- package/lib/src/core-components/src/atoms/input-dropdown/input-dropdown.component.d.ts +10 -0
- package/lib/src/core-components/src/atoms/input-dropdown/input-dropdown.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/input-dropdown/input-dropdown.component.js +44 -0
- package/lib/src/core-components/src/atoms/loader/loader.component.d.ts +6 -0
- package/lib/src/core-components/src/atoms/loader/loader.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/loader/loader.component.js +6 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-images.components.d.ts +9 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-images.components.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-images.components.js +7 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-table.components.d.ts +11 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-table.components.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-table.components.js +48 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-typography.components.d.ts +21 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-typography.components.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-typography.components.js +70 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-wrapped-view.components.d.ts +53 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-wrapped-view.components.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/pdf/pdf-wrapped-view.components.js +50 -0
- package/lib/src/core-components/src/atoms/radio/radio.component.d.ts +9 -0
- package/lib/src/core-components/src/atoms/radio/radio.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/radio/radio.component.js +20 -0
- package/lib/src/core-components/src/atoms/stepper/stepper.component.d.ts +9 -0
- package/lib/src/core-components/src/atoms/stepper/stepper.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/stepper/stepper.component.js +26 -0
- package/lib/src/core-components/src/atoms/tabs/tabs.component.d.ts +18 -0
- package/lib/src/core-components/src/atoms/tabs/tabs.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/tabs/tabs.component.js +19 -0
- package/lib/src/core-components/src/atoms/tabs/tabs.module.css +238 -0
- package/lib/src/core-components/src/atoms/timer/timer.component.d.ts +7 -0
- package/lib/src/core-components/src/atoms/timer/timer.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/timer/timer.component.js +76 -0
- package/lib/src/core-components/src/atoms/tooltip/Tooltip.types.d.ts +22 -0
- package/lib/src/core-components/src/atoms/tooltip/Tooltip.types.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/tooltip/Tooltip.types.js +1 -0
- package/lib/src/core-components/src/atoms/tooltip/tooltip.component.d.ts +10 -0
- package/lib/src/core-components/src/atoms/tooltip/tooltip.component.d.ts.map +1 -0
- package/lib/src/core-components/src/atoms/tooltip/tooltip.component.js +10 -0
- package/lib/src/core-components/src/helpers/constants.d.ts +4 -0
- package/lib/src/core-components/src/helpers/constants.d.ts.map +1 -0
- package/lib/src/core-components/src/helpers/constants.js +11 -0
- package/lib/src/core-components/src/hooks/index.d.ts +2 -0
- package/lib/src/core-components/src/hooks/index.d.ts.map +1 -0
- package/lib/src/core-components/src/hooks/index.js +1 -0
- package/lib/src/core-components/src/hooks/outside.hook.d.ts +2 -0
- package/lib/src/core-components/src/hooks/outside.hook.d.ts.map +1 -0
- package/lib/src/core-components/src/hooks/outside.hook.js +28 -0
- package/lib/src/core-components/src/index.css +118 -0
- package/lib/src/core-components/src/index.d.ts +2 -0
- package/lib/src/core-components/src/index.d.ts.map +1 -0
- package/lib/src/core-components/src/index.js +12 -0
- package/lib/src/core-components/src/library/assets/fonts/arima/arima-bold.ttf +0 -0
- package/lib/src/core-components/src/library/assets/fonts/arima/arima-regular.ttf +0 -0
- package/lib/src/core-components/src/library/assets/svg/CheckedBox.svg +14 -0
- package/lib/src/core-components/src/library/assets/svg/DownArrow.svg +14 -0
- package/lib/src/core-components/src/library/assets/svg/UnCheckbox.svg +3 -0
- package/lib/src/core-components/src/library/assets/svg/UpArrow.svg +14 -0
- package/lib/src/core-components/src/library/assets/svg/checkedRadio.svg +13 -0
- package/lib/src/core-components/src/library/assets/svg/datePicker.svg +3 -0
- package/lib/src/core-components/src/library/assets/svg/index.d.ts +10 -0
- package/lib/src/core-components/src/library/assets/svg/index.d.ts.map +1 -0
- package/lib/src/core-components/src/library/assets/svg/index.js +27 -0
- package/lib/src/core-components/src/library/assets/svg/timer copy.svg +3 -0
- package/lib/src/core-components/src/library/assets/svg/timer.svg +3 -0
- package/lib/src/core-components/src/library/assets/svg/uncheckRadio.svg +3 -0
- package/lib/src/core-components/src/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.d.ts +17 -0
- package/lib/src/core-components/src/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component.js +101 -0
- package/lib/src/core-components/src/molecules/auto-complete-filter-single-select/auto-complete-filter-single-select.component.d.ts +13 -0
- package/lib/src/core-components/src/molecules/auto-complete-filter-single-select/auto-complete-filter-single-select.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/auto-complete-filter-single-select/auto-complete-filter-single-select.component.js +59 -0
- package/lib/src/core-components/src/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.d.ts +18 -0
- package/lib/src/core-components/src/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component.js +109 -0
- package/lib/src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.d.ts +10 -0
- package/lib/src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.js +128 -0
- package/lib/src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.test.d.ts +2 -0
- package/lib/src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.test.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/auto-complete-group-by/auto-complete-group-by.component.test.js +9 -0
- package/lib/src/core-components/src/molecules/autocomplete/autocomplete.css +37 -0
- package/lib/src/core-components/src/molecules/autocomplete/autocomplete.d.ts +8 -0
- package/lib/src/core-components/src/molecules/autocomplete/autocomplete.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/autocomplete/autocomplete.js +108 -0
- package/lib/src/core-components/src/molecules/autocomplete/autocomplete.spec.d.ts +2 -0
- package/lib/src/core-components/src/molecules/autocomplete/autocomplete.spec.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/autocomplete/autocomplete.spec.js +79 -0
- package/lib/src/core-components/src/molecules/color-picker/color-picker.component.d.ts +6 -0
- package/lib/src/core-components/src/molecules/color-picker/color-picker.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/color-picker/color-picker.component.js +12 -0
- package/lib/src/core-components/src/molecules/color-picker/color-picker.css +24 -0
- package/lib/src/core-components/src/molecules/color-picker/color-picker.spec.d.ts +2 -0
- package/lib/src/core-components/src/molecules/color-picker/color-picker.spec.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/color-picker/color-picker.spec.js +7 -0
- package/lib/src/core-components/src/molecules/color-picker-modal/color-picker-modal.component.d.ts +15 -0
- package/lib/src/core-components/src/molecules/color-picker-modal/color-picker-modal.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/color-picker-modal/color-picker-modal.component.js +41 -0
- package/lib/src/core-components/src/molecules/color-picker-modal/color-picker-modal.css +45 -0
- package/lib/src/core-components/src/molecules/color-picker-modal/color-picker-modal.spec.d.ts +2 -0
- package/lib/src/core-components/src/molecules/color-picker-modal/color-picker-modal.spec.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/color-picker-modal/color-picker-modal.spec.js +7 -0
- package/lib/src/core-components/src/molecules/css-multiline-input/css-multiline-input.component.d.ts +11 -0
- package/lib/src/core-components/src/molecules/css-multiline-input/css-multiline-input.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/css-multiline-input/css-multiline-input.component.js +91 -0
- package/lib/src/core-components/src/molecules/css-multiline-input/css-properties.d.ts +8932 -0
- package/lib/src/core-components/src/molecules/css-multiline-input/css-properties.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/css-multiline-input/css-properties.js +161 -0
- package/lib/src/core-components/src/molecules/modal/modal.component.d.ts +10 -0
- package/lib/src/core-components/src/molecules/modal/modal.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/modal/modal.component.js +19 -0
- package/lib/src/core-components/src/molecules/modal-confirm/modal-confirm.component.d.ts +14 -0
- package/lib/src/core-components/src/molecules/modal-confirm/modal-confirm.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/modal-confirm/modal-confirm.component.js +21 -0
- package/lib/src/core-components/src/molecules/multi-select/multi-select.component.d.ts +9 -0
- package/lib/src/core-components/src/molecules/multi-select/multi-select.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/multi-select/multi-select.component.js +49 -0
- package/lib/src/core-components/src/molecules/multi-select-with-field/multi-select-with-field.component.d.ts +10 -0
- package/lib/src/core-components/src/molecules/multi-select-with-field/multi-select-with-field.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/multi-select-with-field/multi-select-with-field.component.js +58 -0
- package/lib/src/core-components/src/molecules/multi-selection-dropdown/multi-selection-dropdown.component.d.ts +9 -0
- package/lib/src/core-components/src/molecules/multi-selection-dropdown/multi-selection-dropdown.component.d.ts.map +1 -0
- package/lib/src/core-components/src/molecules/multi-selection-dropdown/multi-selection-dropdown.component.js +43 -0
- package/lib/src/core-components/src/reportWebVitals.d.ts +4 -0
- package/lib/src/core-components/src/reportWebVitals.d.ts.map +1 -0
- package/lib/src/core-components/src/reportWebVitals.js +12 -0
- package/lib/src/core-components/src/setupTests.d.ts +2 -0
- package/lib/src/core-components/src/setupTests.d.ts.map +1 -0
- package/lib/src/core-components/src/setupTests.js +5 -0
- package/lib/src/core-components/src/tc.module.css +1 -0
- package/lib/src/core-components/src/utils/index.d.ts +2 -0
- package/lib/src/core-components/src/utils/index.d.ts.map +1 -0
- package/lib/src/core-components/src/utils/index.js +1 -0
- package/lib/src/core-components/src/utils/utility.util.d.ts +3 -0
- package/lib/src/core-components/src/utils/utility.util.d.ts.map +1 -0
- package/lib/src/core-components/src/utils/utility.util.js +5 -0
- package/lib/src/core-utils/jest.config.d.ts +11 -0
- package/lib/src/core-utils/jest.config.d.ts.map +1 -0
- package/lib/src/core-utils/jest.config.js +9 -0
- package/lib/src/core-utils/src/calculation/calculation.spec.d.ts +2 -0
- package/lib/src/core-utils/src/calculation/calculation.spec.d.ts.map +1 -0
- package/lib/src/core-utils/src/calculation/calculation.spec.js +52 -0
- package/lib/src/core-utils/src/index.d.ts +8 -0
- package/lib/src/core-utils/src/index.d.ts.map +1 -0
- package/lib/src/core-utils/src/index.js +7 -0
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styleMock.d.ts","sourceRoot":"","sources":["../../../../src/core-components/__mocks__/styleMock.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import * as Form from './src/atoms/form/form.component';
|
|
2
|
+
export * from './src/atoms/button/button.component';
|
|
3
|
+
export * from './src/atoms/button/buttonGroup/buttonGroup.component';
|
|
4
|
+
export * from './src/atoms/check-box/checkBox.component';
|
|
5
|
+
export * from './src/atoms/date-picker/date-picker.component';
|
|
6
|
+
export * from './src/atoms/input/input-otp.component';
|
|
7
|
+
export * from './src/atoms/input/input-pin.component';
|
|
8
|
+
export * from './src/atoms/input/input.component';
|
|
9
|
+
export * from './src/atoms/input-dropdown/input-dropdown.component';
|
|
10
|
+
export * from './src/atoms/loader/loader.component';
|
|
11
|
+
export * from './src/atoms/radio/radio.component';
|
|
12
|
+
export * from './src/atoms/stepper/stepper.component';
|
|
13
|
+
export * from './src/atoms/timer/timer.component';
|
|
14
|
+
export * from './src/atoms/tooltip/tooltip.component';
|
|
15
|
+
export * from './src/atoms/icons/icons.component';
|
|
16
|
+
export * from './src/atoms/tabs/tabs.component';
|
|
17
|
+
export * from './src/atoms/pdf/pdf-images.components';
|
|
18
|
+
export * from './src/atoms/pdf/pdf-table.components';
|
|
19
|
+
export * from './src/atoms/pdf/pdf-typography.components';
|
|
20
|
+
export * from './src/atoms/pdf/pdf-wrapped-view.components';
|
|
21
|
+
export * from './src/molecules/css-multiline-input/css-multiline-input.component';
|
|
22
|
+
export * from './src/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component';
|
|
23
|
+
export * from './src/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component';
|
|
24
|
+
export * from './src/molecules/multi-select/multi-select.component';
|
|
25
|
+
export * from './src/molecules/multi-select-with-field/multi-select-with-field.component';
|
|
26
|
+
export * from './src/molecules/modal/modal.component';
|
|
27
|
+
export * from './src/molecules/modal-confirm/modal-confirm.component';
|
|
28
|
+
export * from './src/molecules/autocomplete/autocomplete';
|
|
29
|
+
export * from './src/molecules/auto-complete-group-by/auto-complete-group-by.component';
|
|
30
|
+
export * from './src/molecules/color-picker/color-picker.component';
|
|
31
|
+
export * from './src/molecules/color-picker-modal/color-picker-modal.component';
|
|
32
|
+
export * from './src/molecules/auto-complete-filter-single-select/auto-complete-filter-single-select.component';
|
|
33
|
+
export { Form };
|
|
34
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core-components/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,IAAI,MAAM,iCAAiC,CAAC;AACxD,cAAc,qCAAqC,CAAC;AACpD,cAAc,sDAAsD,CAAC;AACrE,cAAc,0CAA0C,CAAC;AACzD,cAAc,+CAA+C,CAAC;AAC9D,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,qDAAqD,CAAC;AACpE,cAAc,qCAAqC,CAAC;AACpD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC;AACtD,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,uCAAuC,CAAC;AACtD,cAAc,sCAAsC,CAAC;AACrD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAE5D,cAAc,mEAAmE,CAAC;AAClF,cAAc,qJAAqJ,CAAC;AACpK,cAAc,iJAAiJ,CAAC;AAChK,cAAc,qDAAqD,CAAC;AACpE,cAAc,2EAA2E,CAAC;AAC1F,cAAc,uCAAuC,CAAC;AACtD,cAAc,uDAAuD,CAAC;AACtE,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yEAAyE,CAAC;AACxF,cAAc,qDAAqD,CAAC;AACpE,cAAc,iEAAiE,CAAC;AAChF,cAAc,iGAAiG,CAAC;AAEhH,OAAO,EAAC,IAAI,EAAC,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import * as Form from './src/atoms/form/form.component';
|
|
2
|
+
export * from './src/atoms/button/button.component';
|
|
3
|
+
export * from './src/atoms/button/buttonGroup/buttonGroup.component';
|
|
4
|
+
export * from './src/atoms/check-box/checkBox.component';
|
|
5
|
+
export * from './src/atoms/date-picker/date-picker.component';
|
|
6
|
+
export * from './src/atoms/input/input-otp.component';
|
|
7
|
+
export * from './src/atoms/input/input-pin.component';
|
|
8
|
+
export * from './src/atoms/input/input.component';
|
|
9
|
+
export * from './src/atoms/input-dropdown/input-dropdown.component';
|
|
10
|
+
export * from './src/atoms/loader/loader.component';
|
|
11
|
+
export * from './src/atoms/radio/radio.component';
|
|
12
|
+
export * from './src/atoms/stepper/stepper.component';
|
|
13
|
+
export * from './src/atoms/timer/timer.component';
|
|
14
|
+
export * from './src/atoms/tooltip/tooltip.component';
|
|
15
|
+
export * from './src/atoms/icons/icons.component';
|
|
16
|
+
export * from './src/atoms/tabs/tabs.component';
|
|
17
|
+
export * from './src/atoms/pdf/pdf-images.components';
|
|
18
|
+
export * from './src/atoms/pdf/pdf-table.components';
|
|
19
|
+
export * from './src/atoms/pdf/pdf-typography.components';
|
|
20
|
+
export * from './src/atoms/pdf/pdf-wrapped-view.components';
|
|
21
|
+
export * from './src/molecules/css-multiline-input/css-multiline-input.component';
|
|
22
|
+
export * from './src/molecules/auto-complete-filter-multiple-select-multiple-fields-display/auto-complete-filter-multiple-select-multiple-fields-display.component';
|
|
23
|
+
export * from './src/molecules/auto-complete-filter-single-select-multiple-fields-display/auto-complete-filter-single-select-multiple-fields-display.component';
|
|
24
|
+
export * from './src/molecules/multi-select/multi-select.component';
|
|
25
|
+
export * from './src/molecules/multi-select-with-field/multi-select-with-field.component';
|
|
26
|
+
export * from './src/molecules/modal/modal.component';
|
|
27
|
+
export * from './src/molecules/modal-confirm/modal-confirm.component';
|
|
28
|
+
export * from './src/molecules/autocomplete/autocomplete';
|
|
29
|
+
export * from './src/molecules/auto-complete-group-by/auto-complete-group-by.component';
|
|
30
|
+
export * from './src/molecules/color-picker/color-picker.component';
|
|
31
|
+
export * from './src/molecules/color-picker-modal/color-picker-modal.component';
|
|
32
|
+
export * from './src/molecules/auto-complete-filter-single-select/auto-complete-filter-single-select.component';
|
|
33
|
+
export { Form };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jest.config.d.ts","sourceRoot":"","sources":["../../../src/core-components/jest.config.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,wBASE"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.App {
|
|
2
|
+
text-align: center;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.App-logo {
|
|
6
|
+
height: 40vmin;
|
|
7
|
+
pointer-events: none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
11
|
+
.App-logo {
|
|
12
|
+
animation: App-logo-spin infinite 20s linear;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.App-header {
|
|
17
|
+
background-color: #282c34;
|
|
18
|
+
min-height: 100vh;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: center;
|
|
23
|
+
font-size: calc(10px + 2vmin);
|
|
24
|
+
color: white;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.App-link {
|
|
28
|
+
color: #61dafb;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
@keyframes App-logo-spin {
|
|
32
|
+
from {
|
|
33
|
+
transform: rotate(0deg);
|
|
34
|
+
}
|
|
35
|
+
to {
|
|
36
|
+
transform: rotate(360deg);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.react-bootstrap-table table {
|
|
41
|
+
table-layout: auto;
|
|
42
|
+
}
|
|
43
|
+
.bg-orange1 {
|
|
44
|
+
background-color: '#EF4444';
|
|
45
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"App.d.ts","sourceRoot":"","sources":["../../../../src/core-components/src/App.tsx"],"names":[],"mappings":"AACA,OAAO,WAAW,CAAC;AAInB,iBAAS,GAAG,4CAiBX;AAED,eAAe,GAAG,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { useState } from 'react';
|
|
3
|
+
import './App.css';
|
|
4
|
+
import { Tab, Tabs } from './atoms/tabs/tabs.component';
|
|
5
|
+
function App() {
|
|
6
|
+
const [color, setColor] = useState('#aabbcc');
|
|
7
|
+
return (_jsx("div", { className: "flex flex-col gap-4 p-4", children: _jsxs(Tabs, { options: [{ title: 'Work History' }, { title: 'Book Order' }], children: [_jsx(Tab, { title: "Work History", children: _jsx("div", { children: "Work" }) }), _jsx(Tab, { title: "Book Order", children: _jsx("div", { children: "Book" }) })] }) }));
|
|
8
|
+
}
|
|
9
|
+
export default App;
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
html.theme--dark {
|
|
2
|
+
color-scheme: dark;
|
|
3
|
+
}
|
|
4
|
+
html.theme--light {
|
|
5
|
+
color-scheme: light;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
:root {
|
|
9
|
+
--B25: #ebf3ff;
|
|
10
|
+
--B50: #dbeaff;
|
|
11
|
+
--B100: #b2d2ff;
|
|
12
|
+
--B200: #9bc5ff;
|
|
13
|
+
--B300: #7ab1fd;
|
|
14
|
+
--B400: #337ee7;
|
|
15
|
+
--B500: #145bbf;
|
|
16
|
+
--B600: #0c489c;
|
|
17
|
+
--B700: #033273;
|
|
18
|
+
--Brand: var(--B700);
|
|
19
|
+
|
|
20
|
+
--A50: #e0feff;
|
|
21
|
+
--A100: #adf8fb;
|
|
22
|
+
--A200: #5ae8ed;
|
|
23
|
+
--A300: #36dbe0;
|
|
24
|
+
--A400: #1ac7cd;
|
|
25
|
+
--A500: #16a8ad;
|
|
26
|
+
--A600: #108b8f;
|
|
27
|
+
--A700: #075255;
|
|
28
|
+
--Accent: var(--A400);
|
|
29
|
+
|
|
30
|
+
--N0: #ffffff;
|
|
31
|
+
--N25: #f9f9f9;
|
|
32
|
+
--N50: #f2f2f2;
|
|
33
|
+
--N75: #e6e6e6;
|
|
34
|
+
--N100: #dbdbdb;
|
|
35
|
+
--N200: #cbcbcb;
|
|
36
|
+
--N300: #b5b5b5;
|
|
37
|
+
--N400: #a4a2a2;
|
|
38
|
+
--N500: #808080;
|
|
39
|
+
--N600: #4d4d4d;
|
|
40
|
+
--N700: #242323;
|
|
41
|
+
--N1000: #000000;
|
|
42
|
+
--Natural: var(--N700);
|
|
43
|
+
|
|
44
|
+
--Gl25: #f7f9fc;
|
|
45
|
+
--Gl50: #e7edf8;
|
|
46
|
+
--Gl100: #d6e1f4;
|
|
47
|
+
--Gl200: #b9c8e7;
|
|
48
|
+
--Gl300: #9babd1;
|
|
49
|
+
--Gl400: #7a89b1;
|
|
50
|
+
--Gl500: #566384;
|
|
51
|
+
--Gl600: #4a5777;
|
|
52
|
+
--Gl700: #3f4b6a;
|
|
53
|
+
--Gl800: #2e3750;
|
|
54
|
+
--Gl850: #262e43;
|
|
55
|
+
--Gl900: #1e2537;
|
|
56
|
+
--Gl950: #1b1d24;
|
|
57
|
+
--Glacious: var(--Gl800);
|
|
58
|
+
|
|
59
|
+
--HO50: #ffded5;
|
|
60
|
+
--HO100: #feb9a5;
|
|
61
|
+
--HO200: #ff906e;
|
|
62
|
+
--HO300: #ff784f;
|
|
63
|
+
--HO400: #ff5d2d;
|
|
64
|
+
--HO500: #eb4d13;
|
|
65
|
+
--HO600: #7e2600;
|
|
66
|
+
--HO700: #421604;
|
|
67
|
+
--HotOrange: var(--HO400);
|
|
68
|
+
|
|
69
|
+
--Y50: #fbf3e0;
|
|
70
|
+
--Y100: #f9e3b6;
|
|
71
|
+
--Y200: #fcc003;
|
|
72
|
+
--Y300: #e4a201;
|
|
73
|
+
--Y400: #ca8501;
|
|
74
|
+
--Y500: #a35803;
|
|
75
|
+
--Y600: #6f3400;
|
|
76
|
+
--Y700: #2e2204;
|
|
77
|
+
--Yellow: var(--Y200);
|
|
78
|
+
|
|
79
|
+
--Gr25: #eafae6;
|
|
80
|
+
--Gr50: #cdefc4;
|
|
81
|
+
--Gr100: #91db8b;
|
|
82
|
+
--Gr200: #45c65a;
|
|
83
|
+
--Gr300: #3ba755;
|
|
84
|
+
--Gr400: #2e844a;
|
|
85
|
+
--Gr500: #22683e;
|
|
86
|
+
--Gr600: #194e31;
|
|
87
|
+
--Gr700: #0e3522;
|
|
88
|
+
--Green: var(--Gr300);
|
|
89
|
+
|
|
90
|
+
--CB50: #cfe9fe;
|
|
91
|
+
--CB100: #90d0fe;
|
|
92
|
+
--CB200: #1ab9ff;
|
|
93
|
+
--CB300: #08abed;
|
|
94
|
+
--CB400: #0d9dda;
|
|
95
|
+
--CB500: #107cad;
|
|
96
|
+
--CB600: #084968;
|
|
97
|
+
--CB700: #023248;
|
|
98
|
+
--CloudBlue: var(--CB500);
|
|
99
|
+
|
|
100
|
+
--I50: #e0e5f8;
|
|
101
|
+
--I100: #bec7f6;
|
|
102
|
+
--I200: #9ea9f1;
|
|
103
|
+
--I300: #8e9bef;
|
|
104
|
+
--I400: #7f8ced;
|
|
105
|
+
--I500: #5867e8;
|
|
106
|
+
--I600: #3a49da;
|
|
107
|
+
--I700: #260f8f;
|
|
108
|
+
--Indigo: var(--I500);
|
|
109
|
+
|
|
110
|
+
--Pu50: #ece1f9;
|
|
111
|
+
--Pu100: #d7bff2;
|
|
112
|
+
--Pu200: #c29ef1;
|
|
113
|
+
--Pu300: #b78def;
|
|
114
|
+
--Pu400: #ad7bee;
|
|
115
|
+
--Pu500: #9050e9;
|
|
116
|
+
--Pu600: #7526e3;
|
|
117
|
+
--Pu700: #401075;
|
|
118
|
+
--Purple: var(--Pu500);
|
|
119
|
+
|
|
120
|
+
--V50: #f2defe;
|
|
121
|
+
--V100: #e5b9fe;
|
|
122
|
+
--V200: #d892fe;
|
|
123
|
+
--V300: #d384fe;
|
|
124
|
+
--V400: #cb65ff;
|
|
125
|
+
--V500: #ba01ff;
|
|
126
|
+
--V600: #7b119a;
|
|
127
|
+
--V700: #3d0157;
|
|
128
|
+
--Violet: var(--V500);
|
|
129
|
+
|
|
130
|
+
--Pi50: #fddde3;
|
|
131
|
+
--Pi100: #fdb6c5;
|
|
132
|
+
--Pi200: #fe8aa7;
|
|
133
|
+
--Pi300: #fe7298;
|
|
134
|
+
--Pi400: #ff538a;
|
|
135
|
+
--Pi500: #e3066a;
|
|
136
|
+
--Pi600: #b60554;
|
|
137
|
+
--Pi700: #61022a;
|
|
138
|
+
--Pink: var(--Pi400);
|
|
139
|
+
|
|
140
|
+
--R25: #fcece8;
|
|
141
|
+
--R50: #ffdfd7;
|
|
142
|
+
--R100: #feb8ab;
|
|
143
|
+
--R200: #fe8f7d;
|
|
144
|
+
--R300: #fe7765;
|
|
145
|
+
--R400: #fe5c4c;
|
|
146
|
+
--R500: #ee3e3e;
|
|
147
|
+
--R600: #ba0517;
|
|
148
|
+
--R700: #640103;
|
|
149
|
+
--Red: var(--R400);
|
|
150
|
+
|
|
151
|
+
--color-impersonation-start: #ec4b4b;
|
|
152
|
+
--color-bloomberg: #fe9c29;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.theme--dark {
|
|
156
|
+
--global-focus-color: var(--B300);
|
|
157
|
+
--global-window-border-color: var(--Gl800);
|
|
158
|
+
--global-text-primary: var(--N0);
|
|
159
|
+
--global-text-primary-inverse: var(--N1000);
|
|
160
|
+
--global-text-secondary: var(--Gl100);
|
|
161
|
+
--global-input-disabled-color: var(--Gl600);
|
|
162
|
+
--global-input-bg: var(--Gl800);
|
|
163
|
+
--global-input-disabled-bg: var(--Gl800);
|
|
164
|
+
--global-input-disabled-label-color: var(--Gl600);
|
|
165
|
+
--global-input-error-highlight: var(--R400);
|
|
166
|
+
--global-input-placeholder-color: rgb(from var(--N0) r g b / 0.4);
|
|
167
|
+
--global-input-caret-color: var(--B300);
|
|
168
|
+
--global-input-error-caret-color: var(--R400);
|
|
169
|
+
--global-input-border-color: var(--Gl600);
|
|
170
|
+
--global-input-color: var(--N0);
|
|
171
|
+
--global-input-label-color: var(--Gl100);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.theme--light {
|
|
175
|
+
--global-focus-color: var(--B400);
|
|
176
|
+
--global-window-border-color: var(--N100);
|
|
177
|
+
--global-text-primary: var(--N1000);
|
|
178
|
+
--global-text-primary-inverse: var(--N0);
|
|
179
|
+
--global-text-secondary: var(--N700);
|
|
180
|
+
--global-input-disabled-color: var(--N300);
|
|
181
|
+
--global-input-bg: var(--N0);
|
|
182
|
+
--global-input-disabled-bg: var(--N50);
|
|
183
|
+
--global-input-disabled-label-color: var(--N300);
|
|
184
|
+
--global-input-error-highlight: var(--R500);
|
|
185
|
+
--global-input-placeholder-color: var(--N300);
|
|
186
|
+
--global-input-caret-color: var(--B500);
|
|
187
|
+
--global-input-error-caret-color: var(--R500);
|
|
188
|
+
--global-input-border-color: var(--N200);
|
|
189
|
+
--global-input-color: var(--N1000);
|
|
190
|
+
--global-input-label-color: var(--N700);
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
/* Menu colors - used for Dropdowns, Context Menus, etc */
|
|
194
|
+
.theme--dark {
|
|
195
|
+
--menu-panel-bg-color: var(--Gl700);
|
|
196
|
+
--menu-panel-border-color: var(--Gl500);
|
|
197
|
+
--menu-button-bg-color-hover: var(--Gl500);
|
|
198
|
+
--menu-heading-color: var(--A400);
|
|
199
|
+
--menu-toggle_bg: var(--Gl400);
|
|
200
|
+
--menu-toggle_bg_disabled: var(--Gl800);
|
|
201
|
+
--menu-toggle_thumb_bg_disabled: var(--Gl500);
|
|
202
|
+
--menu-toggle_bg_active: var(--A400);
|
|
203
|
+
--menu-toggle_thumb_bg: var(--N0);
|
|
204
|
+
--menu-panel-shadow-color: rgba(0, 0, 0, 0.4);
|
|
205
|
+
}
|
|
206
|
+
.theme--light {
|
|
207
|
+
--menu-panel-bg-color: var(--N0);
|
|
208
|
+
--menu-panel-border-color: var(--N100);
|
|
209
|
+
--menu-button-bg-color-hover: var(--N50);
|
|
210
|
+
--menu-heading-color: var(--A500);
|
|
211
|
+
--menu-toggle_bg: var(--N200);
|
|
212
|
+
--menu-toggle_bg_disabled: var(--N50);
|
|
213
|
+
--menu-toggle_thumb_bg_disabled: var(--N300);
|
|
214
|
+
--menu-toggle_bg_active: var(--A500);
|
|
215
|
+
--menu-toggle_thumb_bg: var(--N0);
|
|
216
|
+
--menu-panel-shadow-color: rgba(0, 0, 0, 0.15);
|
|
217
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Consuming apps can expect these variables to exist and use them directly - much like the colors.css file.
|
|
3
|
+
We shouldn't resort to using this for every case where we want 2 or more components to share a style.
|
|
4
|
+
*/
|
|
5
|
+
:root {
|
|
6
|
+
--menu-panel-border: 1px solid var(--menu-panel-border-color);
|
|
7
|
+
--menu-panel-shadow: 0px 16px 40px var(--menu-panel-shadow-color);
|
|
8
|
+
--menu-panel-radius: 4px;
|
|
9
|
+
--menu-panel-vertical-padding: 4px;
|
|
10
|
+
--menu-clickable-color: var(--global-text-primary);
|
|
11
|
+
--menu-clickable-font-size: 12px;
|
|
12
|
+
--menu-clickable-font-weight: 400;
|
|
13
|
+
--menu-clickable-disabled: 0.5;
|
|
14
|
+
--menu-clickable-vertical-padding: 6px;
|
|
15
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/* // Inter (variable weight fonts) Main typeface used throughout the app */
|
|
2
|
+
@font-face {
|
|
3
|
+
font-family: 'Inter var';
|
|
4
|
+
font-weight: 100 900;
|
|
5
|
+
font-display: swap;
|
|
6
|
+
font-style: normal;
|
|
7
|
+
font-named-instance: 'Regular';
|
|
8
|
+
src: url('../fonts/Inter-roman.var.woff2?v=3.19') format('woff2');
|
|
9
|
+
}
|
|
10
|
+
@font-face {
|
|
11
|
+
font-family: 'Inter var';
|
|
12
|
+
font-weight: 100 900;
|
|
13
|
+
font-display: swap;
|
|
14
|
+
font-style: italic;
|
|
15
|
+
font-named-instance: 'Italic';
|
|
16
|
+
src: url('../fonts/Inter-italic.var.woff2?v=3.19') format('woff2');
|
|
17
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
.theme--dark {
|
|
2
|
+
--scrollbar-background: transparent;
|
|
3
|
+
--scrollbar-button-display: none;
|
|
4
|
+
--scrollbar-thumb: rgb(142 142 142);
|
|
5
|
+
}
|
|
6
|
+
.theme--light {
|
|
7
|
+
--scrollbar-background: transparent;
|
|
8
|
+
--scrollbar-button-display: none;
|
|
9
|
+
--scrollbar-thumb: rgb(163 179 221);
|
|
10
|
+
}
|
|
11
|
+
/* The bar/track */
|
|
12
|
+
::-webkit-scrollbar {
|
|
13
|
+
background: var(--scrollbar-background);
|
|
14
|
+
width: var(--scrollbar-size, 20px);
|
|
15
|
+
height: var(--scrollbar-size, 20px);
|
|
16
|
+
}
|
|
17
|
+
/* The thumb/drag/pill */
|
|
18
|
+
::-webkit-scrollbar-thumb {
|
|
19
|
+
border: calc(var(--scrollbar-size, 20px) * var(--scrollbar-inset, 0.2)) solid transparent;
|
|
20
|
+
border-radius: calc(var(--scrollbar-size, 20px) / 2);
|
|
21
|
+
background-color: rgb(from var(--scrollbar-thumb) r g b / 0.3);
|
|
22
|
+
background-clip: padding-box;
|
|
23
|
+
}
|
|
24
|
+
::-webkit-scrollbar-thumb:hover {
|
|
25
|
+
background-color: rgb(from var(--scrollbar-thumb) r g b / 0.7);
|
|
26
|
+
}
|
|
27
|
+
/* The buttons */
|
|
28
|
+
::-webkit-scrollbar-button:single-button {
|
|
29
|
+
display: var(--scrollbar-button-display, block);
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
background-position: center center;
|
|
32
|
+
background-repeat: no-repeat;
|
|
33
|
+
background-size: var(--scrollbar-size, 20px);
|
|
34
|
+
width: var(--scrollbar-size, 20px);
|
|
35
|
+
height: var(--scrollbar-size, 20px);
|
|
36
|
+
}
|
|
37
|
+
::-webkit-scrollbar-button:single-button:hover {
|
|
38
|
+
background-color: rgb(from var(--scrollbar-thumb) r g b / 0.25);
|
|
39
|
+
}
|
|
40
|
+
::-webkit-scrollbar-button:not(:single-button) {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
/* Left button */
|
|
44
|
+
.theme--dark ::-webkit-scrollbar-button:horizontal:start {
|
|
45
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='rgb(185, 200, 231)'><polygon points='12,6 12,14 8,10'/></svg>");
|
|
46
|
+
}
|
|
47
|
+
.theme--light ::-webkit-scrollbar-button:horizontal:start {
|
|
48
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='rgb(77, 77, 77)'><polygon points='12,6 12,14 8,10'/></svg>");
|
|
49
|
+
}
|
|
50
|
+
/* Right button */
|
|
51
|
+
.theme--dark ::-webkit-scrollbar-button:horizontal:end {
|
|
52
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='rgb(185, 200, 231)'><polygon points='8,6 8,14 12,10'/></svg>");
|
|
53
|
+
}
|
|
54
|
+
.theme--light ::-webkit-scrollbar-button:horizontal:end {
|
|
55
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='rgb(77, 77, 77)'><polygon points='8,6 8,14 12,10'/></svg>");
|
|
56
|
+
}
|
|
57
|
+
/* Up button */
|
|
58
|
+
.theme--dark ::-webkit-scrollbar-button:vertical:start {
|
|
59
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='rgb(185, 200, 231)'><polygon points='6,12 14,12 10,8'/></svg>");
|
|
60
|
+
}
|
|
61
|
+
.theme--light ::-webkit-scrollbar-button:vertical:start {
|
|
62
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='rgb(77, 77, 77)'><polygon points='6,12 14,12 10,8'/></svg>");
|
|
63
|
+
}
|
|
64
|
+
/* Down button */
|
|
65
|
+
.theme--dark ::-webkit-scrollbar-button:vertical:end {
|
|
66
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='rgb(185, 200, 231)'><polygon points='6,8 14,8 10,12'/></svg>");
|
|
67
|
+
}
|
|
68
|
+
.theme--light ::-webkit-scrollbar-button:vertical:end {
|
|
69
|
+
background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='rgb(77, 77, 77)'><polygon points='6,8 14,8 10,12'/></svg>");
|
|
70
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.test.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/atoms/button/Button.test.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { describe, it, expect } from 'vitest';
|
|
3
|
+
import { render, screen, fireEvent } from '@testing-library/react';
|
|
4
|
+
import { Button } from './button.component';
|
|
5
|
+
import { TooltipProvider } from '../tooltip/tooltip.component';
|
|
6
|
+
describe('Renders a button', async () => {
|
|
7
|
+
it('Renders the supplied children', async () => {
|
|
8
|
+
render(_jsx(Button, { children: "Hello" }));
|
|
9
|
+
const b = await screen.queryByText('Hello');
|
|
10
|
+
expect(b).toBeInTheDocument();
|
|
11
|
+
});
|
|
12
|
+
it('Renders as a button', async () => {
|
|
13
|
+
render(_jsx(Button, { children: "Hello" }));
|
|
14
|
+
const b = await screen.queryByText('Hello');
|
|
15
|
+
expect(b?.tagName.toLowerCase()).toBe('button');
|
|
16
|
+
});
|
|
17
|
+
it('Includes the tooltip when specified', async () => {
|
|
18
|
+
render(_jsx(TooltipProvider, { children: _jsx(Button, { "data-testid": "btn", tooltip: "bye", children: "Hello" }) }));
|
|
19
|
+
const button = await screen.getByTestId('btn');
|
|
20
|
+
fireEvent.mouseOver(button);
|
|
21
|
+
setTimeout(async () => {
|
|
22
|
+
//delay for tooltip to be available in DOM
|
|
23
|
+
const t = await screen.queryByText('bye');
|
|
24
|
+
expect(t).toBeInTheDocument();
|
|
25
|
+
}, 1000);
|
|
26
|
+
});
|
|
27
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ForwardRefExoticComponent, RefAttributes } from 'react';
|
|
2
|
+
import { LinkProps } from 'react-router-dom';
|
|
3
|
+
export type ButtonProps = {
|
|
4
|
+
variant?: 'solid' | 'outline';
|
|
5
|
+
/** Optional tooltip content */
|
|
6
|
+
tooltip?: string;
|
|
7
|
+
/** ClassName to add so you can add additional styling */
|
|
8
|
+
className?: string;
|
|
9
|
+
};
|
|
10
|
+
export type LinkButtonProps = Omit<ButtonProps, 'loading'> & {
|
|
11
|
+
/** The location the link will take you to */
|
|
12
|
+
to: string;
|
|
13
|
+
/** The underlaying UI component to use */
|
|
14
|
+
Component: ForwardRefExoticComponent<LinkProps & RefAttributes<HTMLAnchorElement>>;
|
|
15
|
+
};
|
|
16
|
+
export type ToggleButtonProps = Omit<ButtonProps, 'variant'> & {
|
|
17
|
+
/** Optionally pass an extra classname to the label wrapper */
|
|
18
|
+
labelClassName?: string;
|
|
19
|
+
/** Optionally pass an extra classname to the content wrapper */
|
|
20
|
+
contentClassName?: string;
|
|
21
|
+
/** Optionally pass an active state. If not passed the component will be uncontrolled. */
|
|
22
|
+
active?: boolean;
|
|
23
|
+
/** What variant of button? Defaults to 'brand' */
|
|
24
|
+
variant?: 'brand' | 'accent';
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=Button.types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.types.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/atoms/button/Button.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,yBAAyB,EAAE,aAAa,EAAC,MAAM,OAAO,CAAC;AAC/D,OAAO,EAAC,SAAS,EAAC,MAAM,kBAAkB,CAAC;AAE3C,MAAM,MAAM,WAAW,GAAG;IACxB,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,yDAAyD;IACzD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAC3D,6CAA6C;IAC7C,EAAE,EAAE,MAAM,CAAC;IACX,0CAA0C;IAC1C,SAAS,EAAE,yBAAyB,CAClC,SAAS,GAAG,aAAa,CAAC,iBAAiB,CAAC,CAC7C,CAAC;CACH,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,GAAG;IAC7D,8DAA8D;IAC9D,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gEAAgE;IAChE,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,yFAAyF;IACzF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,kDAAkD;IAClD,OAAO,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from './Button.types';
|
|
3
|
+
export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.ButtonHTMLAttributes<HTMLButtonElement> & React.RefAttributes<HTMLButtonElement>>;
|
|
4
|
+
//# sourceMappingURL=button.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.component.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/atoms/button/button.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAK3C,eAAO,MAAM,MAAM,uIA0DlB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { forwardRef } from 'react';
|
|
3
|
+
import { Tooltip } from '../tooltip/tooltip.component';
|
|
4
|
+
import s from '../../tc.module.css';
|
|
5
|
+
import { cn } from '../../utils';
|
|
6
|
+
export const Button = forwardRef(({ variant = 'solid', tooltip, disabled = false, type = 'button', className, children, ...args }, ref) => {
|
|
7
|
+
const buttonColorClass = variant === 'solid'
|
|
8
|
+
? cn(s['text-white'], s['bg-[#007BFF]'], s['hover:bg-[#007BFF]'], s['hover:shadow-lg'], s['text-white'])
|
|
9
|
+
: cn(s['dark:text-white'], s['text-black'], s['border'], s['border-gray-400'], s['hover:shadow-lg']);
|
|
10
|
+
const button = (_jsx("button", { ref: ref, ...args, className: cn(s['rounded-100px'], s['px-3'], s['py-1'], s['text-md'], s['pt-2'], s['pb-2'], s['font-nunitoSansRegular'], disabled ? s['opacity-50'] : s['opacity-100'], buttonColorClass, className), type: type, disabled: disabled, children: children }));
|
|
11
|
+
if (tooltip) {
|
|
12
|
+
return _jsx(Tooltip, { content: tooltip, children: button });
|
|
13
|
+
}
|
|
14
|
+
else {
|
|
15
|
+
return button;
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
Button.displayName = 'Button';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
export declare const ButtonGroup: ({ children, orientation, className, }: {
|
|
3
|
+
children: ReactNode;
|
|
4
|
+
orientation?: "horizontal" | "vertical" | undefined;
|
|
5
|
+
className?: string | undefined;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
//# sourceMappingURL=buttonGroup.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"buttonGroup.component.d.ts","sourceRoot":"","sources":["../../../../../../../src/core-components/src/atoms/button/buttonGroup/buttonGroup.component.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAIhC,eAAO,MAAM,WAAW;cAKZ,SAAS;;;6CAepB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import s from '../../../tc.module.css';
|
|
3
|
+
import { cn } from '../../../utils';
|
|
4
|
+
export const ButtonGroup = ({ children, orientation = 'horizontal', className, }) => (_jsx("div", { className: cn(s.flex, orientation == 'horizontal' ? s['flex-row'] : s['flex-col'], s['w-fit'], s['gap-2'], className), children: children }));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
interface CheckBoxProps {
|
|
2
|
+
title: string;
|
|
3
|
+
data: Array<any>;
|
|
4
|
+
className?: string;
|
|
5
|
+
disable?: boolean;
|
|
6
|
+
onChange: (items: any) => void;
|
|
7
|
+
}
|
|
8
|
+
export declare const CheckBox: ({ title, data, className, onChange, }: CheckBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export {};
|
|
10
|
+
//# sourceMappingURL=checkBox.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checkBox.component.d.ts","sourceRoot":"","sources":["../../../../../../src/core-components/src/atoms/check-box/checkBox.component.tsx"],"names":[],"mappings":"AAMA,UAAU,aAAa;IACrB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;CAChC;AAED,eAAO,MAAM,QAAQ,0CAKlB,aAAa,4CAuCf,CAAC"}
|