@dreamcommerce/aurora 2.4.0-9 → 2.4.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.
- package/build/cjs/packages/aurora/src/components/controls/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/dropdown/components/content.js +14 -1
- package/build/cjs/packages/aurora/src/components/dropdown/components/content.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/hoc/multiselect/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/dropdown/hooks/use_toggle.js +3 -1
- package/build/cjs/packages/aurora/src/components/dropdown/hooks/use_toggle.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/dropdown/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/file_picker/components/selected_file_preview.js +3 -3
- package/build/cjs/packages/aurora/src/components/flash_messenger/components/flash_message.js +4 -6
- package/build/cjs/packages/aurora/src/components/flash_messenger/components/flash_message.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/heading/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/loader/index.js +2 -2
- package/build/cjs/packages/aurora/src/components/slide/components/{slide_close_btn_wrapper.js → slide_header.js} +5 -5
- package/build/cjs/packages/aurora/src/components/slide/css_classes.js +1 -1
- package/build/cjs/packages/aurora/src/components/stack/index.js +3 -3
- package/build/cjs/packages/aurora/src/components/stack/stack_constants.js +13 -0
- package/build/cjs/packages/aurora/src/components/stack/stack_constants.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/typography/index.js +4 -3
- package/build/cjs/packages/aurora/src/components/typography/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/typography/typography_constants.js +10 -0
- package/build/cjs/packages/aurora/src/components/typography/typography_constants.js.map +1 -1
- package/build/cjs/packages/aurora/src/css/checkbox/main.module.less.js +1 -1
- package/build/cjs/packages/aurora/src/css/controls/main.module.less.js +1 -1
- package/build/cjs/packages/aurora/src/css/message-box/main.module.less.js +2 -2
- package/build/cjs/packages/aurora/src/css/slide/main.module.less.js +2 -2
- package/build/cjs/packages/aurora/src/css/stack/main.module.less.js +1 -1
- package/build/cjs/packages/aurora/src/css/typography/main.module.less.js +2 -2
- package/build/cjs/packages/aurora/src/index.js +4 -4
- package/build/esm/packages/aurora/src/components/controls/index.js +2 -2
- package/build/esm/packages/aurora/src/components/controls/types.d.ts +1 -0
- package/build/esm/packages/aurora/src/components/dropdown/components/content.js +14 -1
- package/build/esm/packages/aurora/src/components/dropdown/components/content.js.map +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/context/types.d.ts +2 -0
- package/build/esm/packages/aurora/src/components/dropdown/hoc/multiselect/index.js +2 -2
- package/build/esm/packages/aurora/src/components/dropdown/hooks/use_toggle.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/hooks/use_toggle.js +3 -1
- package/build/esm/packages/aurora/src/components/dropdown/hooks/use_toggle.js.map +1 -1
- package/build/esm/packages/aurora/src/components/dropdown/index.js +2 -2
- package/build/esm/packages/aurora/src/components/file_picker/components/selected_file_preview.js +1 -1
- package/build/esm/packages/aurora/src/components/flash_messenger/components/flash_message.js +4 -6
- package/build/esm/packages/aurora/src/components/flash_messenger/components/flash_message.js.map +1 -1
- package/build/esm/packages/aurora/src/components/heading/index.js +2 -2
- package/build/esm/packages/aurora/src/components/loader/index.js +2 -2
- package/build/esm/packages/aurora/src/components/loader/types.d.ts +1 -0
- package/build/esm/packages/aurora/src/components/slide/components/slide_header.d.ts +4 -0
- package/build/esm/packages/aurora/src/components/slide/components/{slide_close_btn_wrapper.js → slide_header.js} +5 -5
- package/build/esm/packages/aurora/src/components/slide/css_classes.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/slide/css_classes.js +1 -1
- package/build/esm/packages/aurora/src/components/stack/index.js +4 -4
- package/build/esm/packages/aurora/src/components/stack/stack_constants.js +13 -1
- package/build/esm/packages/aurora/src/components/stack/stack_constants.js.map +1 -1
- package/build/esm/packages/aurora/src/components/stack/stack_types.d.ts +3 -2
- package/build/esm/packages/aurora/src/components/typography/index.js +5 -4
- package/build/esm/packages/aurora/src/components/typography/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/typography/typography_constants.d.ts +8 -0
- package/build/esm/packages/aurora/src/components/typography/typography_constants.js +9 -1
- package/build/esm/packages/aurora/src/components/typography/typography_constants.js.map +1 -1
- package/build/esm/packages/aurora/src/components/typography/typography_types.d.ts +5 -1
- package/build/esm/packages/aurora/src/components/typography/typography_types.js +1 -0
- package/build/esm/packages/aurora/src/components/typography/typography_types.js.map +1 -1
- package/build/esm/packages/aurora/src/css/checkbox/main.module.less.js +1 -1
- package/build/esm/packages/aurora/src/css/controls/main.module.less.js +1 -1
- package/build/esm/packages/aurora/src/css/message-box/main.module.less.js +2 -2
- package/build/esm/packages/aurora/src/css/slide/main.module.less.js +2 -2
- package/build/esm/packages/aurora/src/css/stack/main.module.less.js +1 -1
- package/build/esm/packages/aurora/src/css/typography/main.module.less.js +2 -2
- package/build/esm/packages/aurora/src/index.d.ts +2 -2
- package/build/esm/packages/aurora/src/index.js +2 -2
- package/package.json +2 -2
- package/build/cjs/packages/utilities/build/esm/packages/utilities/src/file_utils.js +0 -26
- package/build/cjs/packages/utilities/build/esm/packages/utilities/src/file_utils.js.map +0 -1
- package/build/esm/packages/aurora/src/components/slide/components/slide_close_btn_wrapper.d.ts +0 -4
- package/build/esm/packages/utilities/build/esm/packages/utilities/src/file_utils.js +0 -22
- package/build/esm/packages/utilities/build/esm/packages/utilities/src/file_utils.js.map +0 -1
- /package/build/cjs/packages/aurora/src/components/slide/components/{slide_close_btn_wrapper.js.map → slide_header.js.map} +0 -0
- /package/build/esm/packages/aurora/src/components/slide/components/{slide_close_btn_wrapper.js.map → slide_header.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import styleInject from '../../../../../external/style-inject/dist/style-inject.es.js';
|
|
2
2
|
|
|
3
|
-
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_typography_h1__3-Uq1,\n.main-module_typography_h2__2S8Us,\n.main-module_typography_h3__2TNaC,\n.main-module_typography_h4__2yTuP,\n.main-module_typography_h5__1-Tt-,\n.main-module_typography_h6__2oHDB {\n display: block;\n color: #2d3748;\n font-weight: 600;\n}\n.main-module_typography_h1__3-Uq1:not(:last-child),\n.main-module_typography_h2__2S8Us:not(:last-child) {\n margin-bottom: 2rem;\n}\n.main-module_typography_h3__2TNaC:not(:last-child),\n.main-module_typography_h4__2yTuP:not(:last-child),\n.main-module_typography_h5__1-Tt-:not(:last-child),\n.main-module_typography_h6__2oHDB:not(:last-child) {\n margin-bottom: 1rem;\n}\n.main-module_typography_p__vWW6a {\n font-size: 14px;\n font-size: 1rem;\n}\n.main-module_typography_p__vWW6a:not(:last-child) {\n margin-bottom: 1rem;\n}\n.main-module_typography_h1__3-Uq1 {\n font-size: 36px;\n font-size: 2.5714285714285716rem;\n}\n.main-module_typography_h2__2S8Us {\n font-size: 24px;\n font-size: 1.7142857142857142rem;\n}\n.main-module_typography_h3__2TNaC {\n font-size: 18px;\n font-size: 1.2857142857142858rem;\n}\n.main-module_typography_h4__2yTuP {\n font-size: 16px;\n font-size: 1.1428571428571428rem;\n}\n.main-module_typography_h5__1-Tt- {\n font-size: 14px;\n font-size: 1rem;\n}\n.main-module_typography_h6__2oHDB {\n font-size: 12px;\n font-size: 0.8571428571428571rem;\n}\n.main-module_typography_p__vWW6a {\n font-size: 14px;\n font-size: 1rem;\n}\n.main-module_typography_bold__18xiI {\n font-weight: 700;\n}\n.main-module_typography_semibold__1kr14 {\n font-weight: 600;\n}\n.main-module_typography_normal__oKS8F {\n font-weight: 400;\n}\n.main-module_typography_uppercase__PMlo5 {\n text-transform: uppercase;\n}\n.main-module_typography_lowercase__17D2L {\n text-transform: lowercase;\n}\n.main-module_typography_capitalize__3L3XA {\n text-transform: capitalize;\n}\n";
|
|
4
|
-
var typographyCssClasses = {"typography_h1":"main-module_typography_h1__3-Uq1","typography_h2":"main-module_typography_h2__2S8Us","typography_h3":"main-module_typography_h3__2TNaC","typography_h4":"main-module_typography_h4__2yTuP","typography_h5":"main-module_typography_h5__1-Tt-","typography_h6":"main-module_typography_h6__2oHDB","typography_p":"main-module_typography_p__vWW6a","typography_bold":"main-module_typography_bold__18xiI","typography_semibold":"main-module_typography_semibold__1kr14","typography_normal":"main-module_typography_normal__oKS8F","typography_uppercase":"main-module_typography_uppercase__PMlo5","typography_lowercase":"main-module_typography_lowercase__17D2L","typography_capitalize":"main-module_typography_capitalize__3L3XA"};
|
|
3
|
+
var css_248z = "/* font colors */\n/* actions */\n/* background */\n/* errors */\n/* borders */\n/* grid */\n/* scrollBar */\n/* sizes */\n.main-module_typography_h1__3-Uq1,\n.main-module_typography_h2__2S8Us,\n.main-module_typography_h3__2TNaC,\n.main-module_typography_h4__2yTuP,\n.main-module_typography_h5__1-Tt-,\n.main-module_typography_h6__2oHDB {\n display: block;\n color: #2d3748;\n font-weight: 600;\n}\n.main-module_typography_h1__3-Uq1:not(:last-child),\n.main-module_typography_h2__2S8Us:not(:last-child) {\n margin-bottom: 2rem;\n}\n.main-module_typography_h3__2TNaC:not(:last-child),\n.main-module_typography_h4__2yTuP:not(:last-child),\n.main-module_typography_h5__1-Tt-:not(:last-child),\n.main-module_typography_h6__2oHDB:not(:last-child) {\n margin-bottom: 1rem;\n}\n.main-module_typography_p__vWW6a {\n font-size: 14px;\n font-size: 1rem;\n}\n.main-module_typography_p__vWW6a:not(:last-child) {\n margin-bottom: 1rem;\n}\n.main-module_typography_h1__3-Uq1 {\n font-size: 36px;\n font-size: 2.5714285714285716rem;\n}\n.main-module_typography_h2__2S8Us {\n font-size: 24px;\n font-size: 1.7142857142857142rem;\n}\n.main-module_typography_h3__2TNaC {\n font-size: 18px;\n font-size: 1.2857142857142858rem;\n}\n.main-module_typography_h4__2yTuP {\n font-size: 16px;\n font-size: 1.1428571428571428rem;\n}\n.main-module_typography_h5__1-Tt- {\n font-size: 14px;\n font-size: 1rem;\n}\n.main-module_typography_h6__2oHDB {\n font-size: 12px;\n font-size: 0.8571428571428571rem;\n}\n.main-module_typography_p__vWW6a {\n font-size: 14px;\n font-size: 1rem;\n}\n.main-module_typography_bold__18xiI {\n font-weight: 700;\n}\n.main-module_typography_semibold__1kr14 {\n font-weight: 600;\n}\n.main-module_typography_normal__oKS8F {\n font-weight: 400;\n}\n.main-module_typography_uppercase__PMlo5 {\n text-transform: uppercase;\n}\n.main-module_typography_lowercase__17D2L {\n text-transform: lowercase;\n}\n.main-module_typography_capitalize__3L3XA {\n text-transform: capitalize;\n}\n.main-module_typography_color_dark__1rr5f {\n color: #2d3748;\n}\n.main-module_typography_color_light__2gFfI {\n color: #abb4cd;\n}\n";
|
|
4
|
+
var typographyCssClasses = {"typography_h1":"main-module_typography_h1__3-Uq1","typography_h2":"main-module_typography_h2__2S8Us","typography_h3":"main-module_typography_h3__2TNaC","typography_h4":"main-module_typography_h4__2yTuP","typography_h5":"main-module_typography_h5__1-Tt-","typography_h6":"main-module_typography_h6__2oHDB","typography_p":"main-module_typography_p__vWW6a","typography_bold":"main-module_typography_bold__18xiI","typography_semibold":"main-module_typography_semibold__1kr14","typography_normal":"main-module_typography_normal__oKS8F","typography_uppercase":"main-module_typography_uppercase__PMlo5","typography_lowercase":"main-module_typography_lowercase__17D2L","typography_capitalize":"main-module_typography_capitalize__3L3XA","typography_color_dark":"main-module_typography_color_dark__1rr5f","typography_color_light":"main-module_typography_color_light__2gFfI"};
|
|
5
5
|
styleInject(css_248z);
|
|
6
6
|
|
|
7
7
|
export default typographyCssClasses;
|
|
@@ -75,7 +75,7 @@ import SearchListInput from "./components/search_list/components/search_list_inp
|
|
|
75
75
|
import SearchListResults from "./components/search_list/components/search_list_results";
|
|
76
76
|
import Select from "./components/dropdown/hoc/select";
|
|
77
77
|
import Slide from "./components/slide";
|
|
78
|
-
import
|
|
78
|
+
import SlideHeader from "./components/slide/components/slide_header";
|
|
79
79
|
import SlideContent from "./components/slide/components/slide_content";
|
|
80
80
|
import SlideFooter from "./components/slide/components/slide_footer";
|
|
81
81
|
import SlideWrapper from "./components/slide/components/slide_wrapper";
|
|
@@ -105,7 +105,7 @@ import { Typography } from "./components/typography";
|
|
|
105
105
|
/**
|
|
106
106
|
* export components
|
|
107
107
|
*/
|
|
108
|
-
export { Accordion, Button, Tooltip, ButtonsGroup, Dropdown, Select, MultiSelect, Label, Stack, Control, ControlInput, ControlCheckbox, ControlCheckboxSwitch, ControlRadio, ControlSelect, ControlRange, ControlMultiSelect, ControlTextarea, Gallery, Datepicker, ColorPicker, ControlColorPicker, ControlDatepicker, ControlFilePicker, Heading, Typography, Modal, ModalProvider, AbsoluteModal, RelativeModal, TabsWrapper, Tabs, TabsItem, TabsItemList, TabsPanel, TabsPanelList, SearchList, SearchListInput, SearchListResults, Tag, TagsSelector, ControlTagsSelector, Table, DataTable, Grid, DropdownContext, ModalContext, IconCalendar, Spacing, IconArrow, IconTick, FilePicker, ControlCellSelector, Hint, ControlRadioGroup, MessageBox, FlashMessenger, useFlashMessenger, Loader, WithLoader, useDropdownContext, FlashMessengerContext, FlashMessagesList, Link, IconTablet, IconMobile, IconLaptop, IconDesktop, IconWarning, useToggle, useSearchList, Slide, SlideWrapper,
|
|
108
|
+
export { Accordion, Button, Tooltip, ButtonsGroup, Dropdown, Select, MultiSelect, Label, Stack, Control, ControlInput, ControlCheckbox, ControlCheckboxSwitch, ControlRadio, ControlSelect, ControlRange, ControlMultiSelect, ControlTextarea, Gallery, Datepicker, ColorPicker, ControlColorPicker, ControlDatepicker, ControlFilePicker, Heading, Typography, Modal, ModalProvider, AbsoluteModal, RelativeModal, TabsWrapper, Tabs, TabsItem, TabsItemList, TabsPanel, TabsPanelList, SearchList, SearchListInput, SearchListResults, Tag, TagsSelector, ControlTagsSelector, Table, DataTable, Grid, DropdownContext, ModalContext, IconCalendar, Spacing, IconArrow, IconTick, FilePicker, ControlCellSelector, Hint, ControlRadioGroup, MessageBox, FlashMessenger, useFlashMessenger, Loader, WithLoader, useDropdownContext, FlashMessengerContext, FlashMessagesList, Link, IconTablet, IconMobile, IconLaptop, IconDesktop, IconWarning, useToggle, useSearchList, Slide, SlideWrapper, SlideHeader, SlideContent, SlideFooter };
|
|
109
109
|
/**
|
|
110
110
|
* export types
|
|
111
111
|
*/
|
|
@@ -37,10 +37,10 @@ export { default as Table } from './components/table/index.js';
|
|
|
37
37
|
export { default as DataTable } from './components/table/hoc/data-table.js';
|
|
38
38
|
export { FlashMessengerContext, useFlashMessenger } from './components/flash_messenger/context.js';
|
|
39
39
|
export { default as MessageBox } from './components/message-box/index.js';
|
|
40
|
-
export { default as Grid } from './components/grid/index.js';
|
|
41
40
|
export { default as FlashMessagesList } from './components/flash_messenger/components/flash_messages_list.js';
|
|
42
41
|
export { default as FlashMessenger } from './components/flash_messenger/index.js';
|
|
43
42
|
export { default as Gallery } from './components/gallery/index.js';
|
|
43
|
+
export { default as Grid } from './components/grid/index.js';
|
|
44
44
|
export { Typography } from './components/typography/index.js';
|
|
45
45
|
export { default as Heading } from './components/heading/index.js';
|
|
46
46
|
export { default as IconDesktop } from './assets/icon_desktop.js';
|
|
@@ -59,7 +59,7 @@ export { useSearchList } from './components/search_list/use_search_list.js';
|
|
|
59
59
|
export { SearchListInput } from './components/search_list/components/search_list_input.js';
|
|
60
60
|
export { SearchListResults } from './components/search_list/components/search_list_results.js';
|
|
61
61
|
export { default as Slide } from './components/slide/index.js';
|
|
62
|
-
export {
|
|
62
|
+
export { SlideHeader } from './components/slide/components/slide_header.js';
|
|
63
63
|
export { SlideContent } from './components/slide/components/slide_content.js';
|
|
64
64
|
export { SlideFooter } from './components/slide/components/slide_footer.js';
|
|
65
65
|
export { SlideWrapper } from './components/slide/components/slide_wrapper.js';
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@dreamcommerce/aurora",
|
|
3
3
|
"packageManager": "yarn@3.2.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "2.4.0
|
|
5
|
+
"version": "2.4.0",
|
|
6
6
|
"description": "aurora",
|
|
7
7
|
"author": "k0ssak",
|
|
8
8
|
"license": "MIT",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"update-visuals": "jest -c .config/jest/jest.config.visual.js --updateSnapshot"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@dreamcommerce/utilities": "^1.
|
|
47
|
+
"@dreamcommerce/utilities": "^1.7.0",
|
|
48
48
|
"@shoper/jest_config": "^0.0.0",
|
|
49
49
|
"@shoper/tsconfig": "^0.0.0",
|
|
50
50
|
"@storybook/react": "6.5.7",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
class FileUtils {
|
|
6
|
-
static bytesToSize(bytes) {
|
|
7
|
-
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
|
8
|
-
if (bytes === 0)
|
|
9
|
-
return 'n/a';
|
|
10
|
-
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)).toString());
|
|
11
|
-
if (i === 0)
|
|
12
|
-
return `${bytes} ${sizes[i]}`;
|
|
13
|
-
return `${(bytes / Math.pow(1024, i)).toFixed(1)} ${sizes[i]}`;
|
|
14
|
-
}
|
|
15
|
-
static getFileExtension(filename) {
|
|
16
|
-
var _a;
|
|
17
|
-
const filenameParts = filename.split('.').filter((part) => part);
|
|
18
|
-
return filenameParts.length > 1 ? (_a = filenameParts.pop()) !== null && _a !== void 0 ? _a : '' : '';
|
|
19
|
-
}
|
|
20
|
-
static getFileName(filename) {
|
|
21
|
-
return filename.substring(0, filename.lastIndexOf('.')) || filename;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
exports.FileUtils = FileUtils;
|
|
26
|
-
//# sourceMappingURL=file_utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
class FileUtils {
|
|
2
|
-
static bytesToSize(bytes) {
|
|
3
|
-
const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
|
|
4
|
-
if (bytes === 0)
|
|
5
|
-
return 'n/a';
|
|
6
|
-
const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)).toString());
|
|
7
|
-
if (i === 0)
|
|
8
|
-
return `${bytes} ${sizes[i]}`;
|
|
9
|
-
return `${(bytes / Math.pow(1024, i)).toFixed(1)} ${sizes[i]}`;
|
|
10
|
-
}
|
|
11
|
-
static getFileExtension(filename) {
|
|
12
|
-
var _a;
|
|
13
|
-
const filenameParts = filename.split('.').filter((part) => part);
|
|
14
|
-
return filenameParts.length > 1 ? (_a = filenameParts.pop()) !== null && _a !== void 0 ? _a : '' : '';
|
|
15
|
-
}
|
|
16
|
-
static getFileName(filename) {
|
|
17
|
-
return filename.substring(0, filename.lastIndexOf('.')) || filename;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export { FileUtils };
|
|
22
|
-
//# sourceMappingURL=file_utils.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
File without changes
|