@dktunited-techoff/techoff-suite-ui 0.8.5 → 0.8.6
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/package.json +1 -1
- package/src/components/Icon/icons/index.ts +1 -1
- package/src/layouts/Header/Header.css +15 -23
- package/src/layouts/Header/Header.tsx +9 -4
- package/src/layouts/Header/Header.types.ts +1 -0
- package/src/layouts/Header/__stories__/Header.stories.mdx +11 -3
- package/esm/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/esm/components/Button/Button.css +0 -93
- package/esm/components/Button/Button.d.ts +0 -5
- package/esm/components/Button/Button.js +0 -17
- package/esm/components/Button/Button.js.map +0 -1
- package/esm/components/Button/Button.types.d.ts +0 -9
- package/esm/components/Button/Button.types.js +0 -2
- package/esm/components/Button/Button.types.js.map +0 -1
- package/esm/components/Button/__stories__/Button.stories.mdx +0 -74
- package/esm/components/Checkbox/Checkbox.css +0 -61
- package/esm/components/Checkbox/Checkbox.d.ts +0 -7
- package/esm/components/Checkbox/Checkbox.js +0 -21
- package/esm/components/Checkbox/Checkbox.js.map +0 -1
- package/esm/components/Checkbox/Checkbox.types.d.ts +0 -4
- package/esm/components/Checkbox/Checkbox.types.js +0 -2
- package/esm/components/Checkbox/Checkbox.types.js.map +0 -1
- package/esm/components/Checkbox/__stories__/Checkbox.stories.mdx +0 -43
- package/esm/components/Icon/Icon.css +0 -26
- package/esm/components/Icon/Icon.d.ts +0 -4
- package/esm/components/Icon/Icon.js +0 -12
- package/esm/components/Icon/Icon.js.map +0 -1
- package/esm/components/Icon/Icon.types.d.ts +0 -4
- package/esm/components/Icon/Icon.types.js +0 -2
- package/esm/components/Icon/Icon.types.js.map +0 -1
- package/esm/components/Icon/__stories__/Icon.stories.mdx +0 -88
- package/esm/components/Icon/icons/alert-fill.svg +0 -1
- package/esm/components/Icon/icons/alert-line.svg +0 -1
- package/esm/components/Icon/icons/arrow-back.svg +0 -1
- package/esm/components/Icon/icons/arrow-down.svg +0 -1
- package/esm/components/Icon/icons/arrow-left.svg +0 -1
- package/esm/components/Icon/icons/arrow-right-.svg +0 -1
- package/esm/components/Icon/icons/arrow-up.svg +0 -1
- package/esm/components/Icon/icons/arrows-up-down.svg +0 -1
- package/esm/components/Icon/icons/check-circle-fill.svg +0 -1
- package/esm/components/Icon/icons/check-circle.svg +0 -1
- package/esm/components/Icon/icons/check.svg +0 -1
- package/esm/components/Icon/icons/chevron-down.svg +0 -1
- package/esm/components/Icon/icons/chevron-left.svg +0 -1
- package/esm/components/Icon/icons/chevron-right.svg +0 -1
- package/esm/components/Icon/icons/chevron-up.svg +0 -1
- package/esm/components/Icon/icons/circle.svg +0 -1
- package/esm/components/Icon/icons/dots-vertical.svg +0 -1
- package/esm/components/Icon/icons/download.svg +0 -1
- package/esm/components/Icon/icons/edit.svg +0 -1
- package/esm/components/Icon/icons/external-link.svg +0 -1
- package/esm/components/Icon/icons/filter-off.svg +0 -1
- package/esm/components/Icon/icons/filter.svg +0 -1
- package/esm/components/Icon/icons/header-bikestudio.svg +0 -32
- package/esm/components/Icon/icons/header-nsc-helmet.svg +0 -32
- package/esm/components/Icon/icons/header-opticost.svg +0 -32
- package/esm/components/Icon/icons/heart-fill.svg +0 -1
- package/esm/components/Icon/icons/heart.svg +0 -1
- package/esm/components/Icon/icons/home.svg +0 -1
- package/esm/components/Icon/icons/houglass.svg +0 -1
- package/esm/components/Icon/icons/in-progress.svg +0 -18
- package/esm/components/Icon/icons/index.d.ts +0 -3
- package/esm/components/Icon/icons/index.js +0 -49
- package/esm/components/Icon/icons/index.js.map +0 -1
- package/esm/components/Icon/icons/index.ts +0 -48
- package/esm/components/Icon/icons/lightning-off.svg +0 -1
- package/esm/components/Icon/icons/lightning.svg +0 -1
- package/esm/components/Icon/icons/list-settings.svg +0 -1
- package/esm/components/Icon/icons/lock.svg +0 -1
- package/esm/components/Icon/icons/plus-circle.svg +0 -1
- package/esm/components/Icon/icons/plus.svg +0 -1
- package/esm/components/Icon/icons/search.svg +0 -1
- package/esm/components/Icon/icons/seed-2.svg +0 -1
- package/esm/components/Icon/icons/square-check-fill.svg +0 -1
- package/esm/components/Icon/icons/square.svg +0 -1
- package/esm/components/Icon/icons/tools.svg +0 -1
- package/esm/components/Icon/icons/user.svg +0 -1
- package/esm/components/Icon/icons/waiting-validation.svg +0 -19
- package/esm/components/Icon/icons/x-circle-fill.svg +0 -1
- package/esm/components/Icon/icons/x.svg +0 -1
- package/esm/components/Inputs/BooleanInput/BooleanInput.css +0 -51
- package/esm/components/Inputs/BooleanInput/BooleanInput.d.ts +0 -4
- package/esm/components/Inputs/BooleanInput/BooleanInput.js +0 -13
- package/esm/components/Inputs/BooleanInput/BooleanInput.js.map +0 -1
- package/esm/components/Inputs/BooleanInput/BooleanInput.tsx +0 -24
- package/esm/components/Inputs/BooleanInput/BooleanInput.types.d.ts +0 -7
- package/esm/components/Inputs/BooleanInput/BooleanInput.types.js +0 -2
- package/esm/components/Inputs/BooleanInput/BooleanInput.types.js.map +0 -1
- package/esm/components/Inputs/BooleanInput/BooleanInput.types.ts +0 -7
- package/esm/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +0 -44
- package/esm/components/Inputs/TextInput/TextInput.css +0 -42
- package/esm/components/Inputs/TextInput/TextInput.d.ts +0 -4
- package/esm/components/Inputs/TextInput/TextInput.js +0 -16
- package/esm/components/Inputs/TextInput/TextInput.js.map +0 -1
- package/esm/components/Inputs/TextInput/TextInput.tsx +0 -24
- package/esm/components/Inputs/TextInput/TextInput.types.d.ts +0 -8
- package/esm/components/Inputs/TextInput/TextInput.types.js +0 -2
- package/esm/components/Inputs/TextInput/TextInput.types.js.map +0 -1
- package/esm/components/Inputs/TextInput/TextInput.types.ts +0 -8
- package/esm/components/Inputs/TextInput/__stories__/TextInput.stories.mdx +0 -55
- package/esm/components/Loader/Loader.css +0 -42
- package/esm/components/Loader/Loader.d.ts +0 -4
- package/esm/components/Loader/Loader.js +0 -6
- package/esm/components/Loader/Loader.js.map +0 -1
- package/esm/components/Loader/Loader.types.d.ts +0 -3
- package/esm/components/Loader/Loader.types.js +0 -2
- package/esm/components/Loader/Loader.types.js.map +0 -1
- package/esm/components/Loader/__stories__/Loader.stories.mdx +0 -30
- package/esm/index.d.ts +0 -9
- package/esm/index.js +0 -10
- package/esm/index.js.map +0 -1
- package/esm/layouts/Header/Header.css +0 -83
- package/esm/layouts/Header/Header.d.ts +0 -4
- package/esm/layouts/Header/Header.js +0 -14
- package/esm/layouts/Header/Header.js.map +0 -1
- package/esm/layouts/Header/Header.types.d.ts +0 -4
- package/esm/layouts/Header/Header.types.js +0 -2
- package/esm/layouts/Header/Header.types.js.map +0 -1
- package/esm/layouts/Header/HeaderActions.d.ts +0 -3
- package/esm/layouts/Header/HeaderActions.js +0 -7
- package/esm/layouts/Header/HeaderActions.js.map +0 -1
- package/esm/layouts/Header/HeaderProfile.d.ts +0 -3
- package/esm/layouts/Header/HeaderProfile.js +0 -16
- package/esm/layouts/Header/HeaderProfile.js.map +0 -1
- package/esm/layouts/Header/HeaderTitle.d.ts +0 -3
- package/esm/layouts/Header/HeaderTitle.js +0 -11
- package/esm/layouts/Header/HeaderTitle.js.map +0 -1
- package/esm/layouts/Header/__stories__/Header.stories.mdx +0 -36
- package/esm/layouts/Navigation/Navigation.css +0 -74
- package/esm/layouts/Navigation/Navigation.d.ts +0 -4
- package/esm/layouts/Navigation/Navigation.js +0 -15
- package/esm/layouts/Navigation/Navigation.js.map +0 -1
- package/esm/layouts/Navigation/Navigation.types.d.ts +0 -5
- package/esm/layouts/Navigation/Navigation.types.js +0 -2
- package/esm/layouts/Navigation/Navigation.types.js.map +0 -1
- package/esm/layouts/Navigation/NavigationActions.d.ts +0 -4
- package/esm/layouts/Navigation/NavigationActions.js +0 -4
- package/esm/layouts/Navigation/NavigationActions.js.map +0 -1
- package/esm/layouts/Navigation/NavigationBreadcrumb.d.ts +0 -6
- package/esm/layouts/Navigation/NavigationBreadcrumb.js +0 -26
- package/esm/layouts/Navigation/NavigationBreadcrumb.js.map +0 -1
- package/esm/layouts/Navigation/__stories__/Navigation.stories.mdx +0 -46
- package/esm/utils/string.utils.d.ts +0 -1
- package/esm/utils/string.utils.js +0 -2
- package/esm/utils/string.utils.js.map +0 -1
- package/esm/utils/validator.utils.d.ts +0 -2
- package/esm/utils/validator.utils.js +0 -5
- package/esm/utils/validator.utils.js.map +0 -1
- package/lib/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/lib/components/Button/Button.css +0 -93
- package/lib/components/Button/Button.d.ts +0 -5
- package/lib/components/Button/Button.js +0 -21
- package/lib/components/Button/Button.js.map +0 -1
- package/lib/components/Button/Button.types.d.ts +0 -9
- package/lib/components/Button/Button.types.js +0 -3
- package/lib/components/Button/Button.types.js.map +0 -1
- package/lib/components/Button/__stories__/Button.stories.mdx +0 -74
- package/lib/components/Checkbox/Checkbox.css +0 -61
- package/lib/components/Checkbox/Checkbox.d.ts +0 -7
- package/lib/components/Checkbox/Checkbox.js +0 -27
- package/lib/components/Checkbox/Checkbox.js.map +0 -1
- package/lib/components/Checkbox/Checkbox.types.d.ts +0 -4
- package/lib/components/Checkbox/Checkbox.types.js +0 -3
- package/lib/components/Checkbox/Checkbox.types.js.map +0 -1
- package/lib/components/Checkbox/__stories__/Checkbox.stories.mdx +0 -43
- package/lib/components/Icon/Icon.css +0 -26
- package/lib/components/Icon/Icon.d.ts +0 -4
- package/lib/components/Icon/Icon.js +0 -16
- package/lib/components/Icon/Icon.js.map +0 -1
- package/lib/components/Icon/Icon.types.d.ts +0 -4
- package/lib/components/Icon/Icon.types.js +0 -3
- package/lib/components/Icon/Icon.types.js.map +0 -1
- package/lib/components/Icon/__stories__/Icon.stories.mdx +0 -88
- package/lib/components/Icon/icons/alert-fill.svg +0 -1
- package/lib/components/Icon/icons/alert-line.svg +0 -1
- package/lib/components/Icon/icons/arrow-back.svg +0 -1
- package/lib/components/Icon/icons/arrow-down.svg +0 -1
- package/lib/components/Icon/icons/arrow-left.svg +0 -1
- package/lib/components/Icon/icons/arrow-right-.svg +0 -1
- package/lib/components/Icon/icons/arrow-up.svg +0 -1
- package/lib/components/Icon/icons/arrows-up-down.svg +0 -1
- package/lib/components/Icon/icons/check-circle-fill.svg +0 -1
- package/lib/components/Icon/icons/check-circle.svg +0 -1
- package/lib/components/Icon/icons/check.svg +0 -1
- package/lib/components/Icon/icons/chevron-down.svg +0 -1
- package/lib/components/Icon/icons/chevron-left.svg +0 -1
- package/lib/components/Icon/icons/chevron-right.svg +0 -1
- package/lib/components/Icon/icons/chevron-up.svg +0 -1
- package/lib/components/Icon/icons/circle.svg +0 -1
- package/lib/components/Icon/icons/dots-vertical.svg +0 -1
- package/lib/components/Icon/icons/download.svg +0 -1
- package/lib/components/Icon/icons/edit.svg +0 -1
- package/lib/components/Icon/icons/external-link.svg +0 -1
- package/lib/components/Icon/icons/filter-off.svg +0 -1
- package/lib/components/Icon/icons/filter.svg +0 -1
- package/lib/components/Icon/icons/header-bikestudio.svg +0 -32
- package/lib/components/Icon/icons/header-nsc-helmet.svg +0 -32
- package/lib/components/Icon/icons/header-opticost.svg +0 -32
- package/lib/components/Icon/icons/header-reparability.svg +0 -32
- package/lib/components/Icon/icons/heart-fill.svg +0 -1
- package/lib/components/Icon/icons/heart.svg +0 -1
- package/lib/components/Icon/icons/home.svg +0 -1
- package/lib/components/Icon/icons/houglass.svg +0 -1
- package/lib/components/Icon/icons/in-progress.svg +0 -18
- package/lib/components/Icon/icons/index.d.ts +0 -3
- package/lib/components/Icon/icons/index.js +0 -52
- package/lib/components/Icon/icons/index.js.map +0 -1
- package/lib/components/Icon/icons/index.ts +0 -48
- package/lib/components/Icon/icons/lightning-off.svg +0 -1
- package/lib/components/Icon/icons/lightning.svg +0 -1
- package/lib/components/Icon/icons/list-settings.svg +0 -1
- package/lib/components/Icon/icons/lock.svg +0 -1
- package/lib/components/Icon/icons/plus-circle.svg +0 -1
- package/lib/components/Icon/icons/plus.svg +0 -1
- package/lib/components/Icon/icons/search.svg +0 -1
- package/lib/components/Icon/icons/seed-2.svg +0 -1
- package/lib/components/Icon/icons/square-check-fill.svg +0 -1
- package/lib/components/Icon/icons/square.svg +0 -1
- package/lib/components/Icon/icons/tools.svg +0 -1
- package/lib/components/Icon/icons/user.svg +0 -1
- package/lib/components/Icon/icons/waiting-validation.svg +0 -19
- package/lib/components/Icon/icons/x-circle-fill.svg +0 -1
- package/lib/components/Icon/icons/x.svg +0 -1
- package/lib/components/Inputs/BooleanInput/BooleanInput.css +0 -51
- package/lib/components/Inputs/BooleanInput/BooleanInput.d.ts +0 -4
- package/lib/components/Inputs/BooleanInput/BooleanInput.js +0 -17
- package/lib/components/Inputs/BooleanInput/BooleanInput.js.map +0 -1
- package/lib/components/Inputs/BooleanInput/BooleanInput.tsx +0 -24
- package/lib/components/Inputs/BooleanInput/BooleanInput.types.d.ts +0 -7
- package/lib/components/Inputs/BooleanInput/BooleanInput.types.js +0 -3
- package/lib/components/Inputs/BooleanInput/BooleanInput.types.js.map +0 -1
- package/lib/components/Inputs/BooleanInput/BooleanInput.types.ts +0 -7
- package/lib/components/Inputs/BooleanInput/__stories__/BooleanInput.stories.mdx +0 -44
- package/lib/components/Inputs/TextInput/TextInput.css +0 -42
- package/lib/components/Inputs/TextInput/TextInput.d.ts +0 -4
- package/lib/components/Inputs/TextInput/TextInput.js +0 -20
- package/lib/components/Inputs/TextInput/TextInput.js.map +0 -1
- package/lib/components/Inputs/TextInput/TextInput.tsx +0 -24
- package/lib/components/Inputs/TextInput/TextInput.types.d.ts +0 -8
- package/lib/components/Inputs/TextInput/TextInput.types.js +0 -3
- package/lib/components/Inputs/TextInput/TextInput.types.js.map +0 -1
- package/lib/components/Inputs/TextInput/TextInput.types.ts +0 -8
- package/lib/components/Inputs/TextInput/__stories__/TextInput.stories.mdx +0 -55
- package/lib/components/Loader/Loader.css +0 -42
- package/lib/components/Loader/Loader.d.ts +0 -4
- package/lib/components/Loader/Loader.js +0 -10
- package/lib/components/Loader/Loader.js.map +0 -1
- package/lib/components/Loader/Loader.types.d.ts +0 -3
- package/lib/components/Loader/Loader.types.js +0 -3
- package/lib/components/Loader/Loader.types.js.map +0 -1
- package/lib/components/Loader/__stories__/Loader.stories.mdx +0 -30
- package/lib/index.d.ts +0 -9
- package/lib/index.js +0 -26
- package/lib/index.js.map +0 -1
- package/lib/layouts/Header/Header.css +0 -83
- package/lib/layouts/Header/Header.d.ts +0 -4
- package/lib/layouts/Header/Header.js +0 -18
- package/lib/layouts/Header/Header.js.map +0 -1
- package/lib/layouts/Header/Header.types.d.ts +0 -4
- package/lib/layouts/Header/Header.types.js +0 -3
- package/lib/layouts/Header/Header.types.js.map +0 -1
- package/lib/layouts/Header/HeaderActions.d.ts +0 -3
- package/lib/layouts/Header/HeaderActions.js +0 -11
- package/lib/layouts/Header/HeaderActions.js.map +0 -1
- package/lib/layouts/Header/HeaderProfile.d.ts +0 -3
- package/lib/layouts/Header/HeaderProfile.js +0 -20
- package/lib/layouts/Header/HeaderProfile.js.map +0 -1
- package/lib/layouts/Header/HeaderTitle.d.ts +0 -3
- package/lib/layouts/Header/HeaderTitle.js +0 -15
- package/lib/layouts/Header/HeaderTitle.js.map +0 -1
- package/lib/layouts/Header/__stories__/Header.stories.mdx +0 -36
- package/lib/layouts/Navigation/Navigation.css +0 -74
- package/lib/layouts/Navigation/Navigation.d.ts +0 -4
- package/lib/layouts/Navigation/Navigation.js +0 -19
- package/lib/layouts/Navigation/Navigation.js.map +0 -1
- package/lib/layouts/Navigation/Navigation.types.d.ts +0 -5
- package/lib/layouts/Navigation/Navigation.types.js +0 -3
- package/lib/layouts/Navigation/Navigation.types.js.map +0 -1
- package/lib/layouts/Navigation/NavigationActions.d.ts +0 -4
- package/lib/layouts/Navigation/NavigationActions.js +0 -8
- package/lib/layouts/Navigation/NavigationActions.js.map +0 -1
- package/lib/layouts/Navigation/NavigationBreadcrumb.d.ts +0 -6
- package/lib/layouts/Navigation/NavigationBreadcrumb.js +0 -31
- package/lib/layouts/Navigation/NavigationBreadcrumb.js.map +0 -1
- package/lib/layouts/Navigation/__stories__/Navigation.stories.mdx +0 -46
- package/lib/utils/string.utils.d.ts +0 -1
- package/lib/utils/string.utils.js +0 -6
- package/lib/utils/string.utils.js.map +0 -1
- package/lib/utils/validator.utils.d.ts +0 -2
- package/lib/utils/validator.utils.js +0 -9
- package/lib/utils/validator.utils.js.map +0 -1
- package/src/components/Icon/icons/header-reparability.svg +0 -32
- package/src/layouts/Header/HeaderTitle.tsx +0 -17
- /package/{esm/components/Icon/icons/header-reparability.svg → src/components/Icon/icons/header-repairability.svg} +0 -0
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { TextInput } from '../TextInput';
|
|
4
|
-
import { icons } from '../../../Icon/icons';
|
|
5
|
-
|
|
6
|
-
<Meta title="Components/Inputs/TextInput" />
|
|
7
|
-
|
|
8
|
-
export const inputArgTypes = {
|
|
9
|
-
icon: {
|
|
10
|
-
control: 'select',
|
|
11
|
-
options: Object.keys(icons),
|
|
12
|
-
description: 'Name of an icon.',
|
|
13
|
-
},
|
|
14
|
-
label: {
|
|
15
|
-
control: 'text',
|
|
16
|
-
description: 'Label of the input.',
|
|
17
|
-
},
|
|
18
|
-
placeholder: {
|
|
19
|
-
control: 'text',
|
|
20
|
-
description: 'Placeholder displayed when the input is empty.',
|
|
21
|
-
},
|
|
22
|
-
value: {
|
|
23
|
-
control: 'text',
|
|
24
|
-
description: 'Value of the input.',
|
|
25
|
-
},
|
|
26
|
-
autofocus: {
|
|
27
|
-
control: 'boolean',
|
|
28
|
-
description: 'Auto focus the input once mounted',
|
|
29
|
-
table: { defaultValue: { summary: 'false' } },
|
|
30
|
-
},
|
|
31
|
-
onChange: {
|
|
32
|
-
control: 'function',
|
|
33
|
-
description: 'The handler called when the value of the input changes.',
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
# Text Input
|
|
38
|
-
|
|
39
|
-
Text input allows the user to enter content and data when the expected user input is a single line of text.
|
|
40
|
-
|
|
41
|
-
## Overview
|
|
42
|
-
|
|
43
|
-
<Canvas>
|
|
44
|
-
<Story
|
|
45
|
-
name="Overview"
|
|
46
|
-
args={{ label: 'Label', placeholder: 'This is a placeholder', autofocus: false, onChange: () => {} }}
|
|
47
|
-
argTypes={inputArgTypes}
|
|
48
|
-
>
|
|
49
|
-
{args => <TextInput {...args} />}
|
|
50
|
-
</Story>
|
|
51
|
-
</Canvas>
|
|
52
|
-
|
|
53
|
-
## Props
|
|
54
|
-
|
|
55
|
-
<ArgsTable story="Overview" of={TextInput} />
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
@keyframes rotation {
|
|
2
|
-
0% {
|
|
3
|
-
transform: rotate(0deg);
|
|
4
|
-
}
|
|
5
|
-
100% {
|
|
6
|
-
transform: rotate(360deg);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.loader {
|
|
11
|
-
border: 2px solid;
|
|
12
|
-
border-color: #00689d transparent;
|
|
13
|
-
border-radius: 50%;
|
|
14
|
-
display: inline-block;
|
|
15
|
-
box-sizing: border-box;
|
|
16
|
-
animation: rotation 1.5s linear infinite;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* ####### */
|
|
20
|
-
/* SIZES */
|
|
21
|
-
.loader--sm {
|
|
22
|
-
width: 24px;
|
|
23
|
-
height: 24px;
|
|
24
|
-
}
|
|
25
|
-
.loader--md {
|
|
26
|
-
width: 32px;
|
|
27
|
-
height: 32px;
|
|
28
|
-
}
|
|
29
|
-
.loader--lg {
|
|
30
|
-
width: 44px;
|
|
31
|
-
height: 44px;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/* ######### */
|
|
35
|
-
/* GLOBALS */
|
|
36
|
-
* {
|
|
37
|
-
font-size: 14px;
|
|
38
|
-
outline: none;
|
|
39
|
-
box-sizing: border-box;
|
|
40
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
41
|
-
'Helvetica Neue', sans-serif;
|
|
42
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Loader = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
require("./Loader.css");
|
|
6
|
-
const Loader = ({ size = 'md' }) => {
|
|
7
|
-
return React.createElement("div", { className: `loader loader--${size}` });
|
|
8
|
-
};
|
|
9
|
-
exports.Loader = Loader;
|
|
10
|
-
//# sourceMappingURL=Loader.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.js","sourceRoot":"","sources":["../../../src/components/Loader/Loader.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,wBAAsB;AAEf,MAAM,MAAM,GAAG,CAAC,EAAE,IAAI,GAAG,IAAI,EAAe,EAAE,EAAE;IACrD,OAAO,6BAAK,SAAS,EAAE,kBAAkB,IAAI,EAAE,GAAI,CAAC;AACtD,CAAC,CAAC;AAFW,QAAA,MAAM,UAEjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loader.types.js","sourceRoot":"","sources":["../../../src/components/Loader/Loader.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { Loader } from '../Loader';
|
|
4
|
-
|
|
5
|
-
<Meta title="Components/Loader" />
|
|
6
|
-
|
|
7
|
-
export const loaderArgTypes = {
|
|
8
|
-
size: {
|
|
9
|
-
control: 'inline-radio',
|
|
10
|
-
options: ['sm', 'md', 'lg'],
|
|
11
|
-
description: 'Define the size of the loader.',
|
|
12
|
-
table: { defaultValue: { summary: 'md' } },
|
|
13
|
-
},
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
# Loader
|
|
17
|
-
|
|
18
|
-
Loader express to user that an action is occuring.
|
|
19
|
-
|
|
20
|
-
## Overview
|
|
21
|
-
|
|
22
|
-
<Canvas>
|
|
23
|
-
<Story name="Overview" args={{ size: 'md' }} argTypes={loaderArgTypes}>
|
|
24
|
-
{args => <Loader {...args}>{args.children}</Loader>}
|
|
25
|
-
</Story>
|
|
26
|
-
</Canvas>
|
|
27
|
-
|
|
28
|
-
## Props
|
|
29
|
-
|
|
30
|
-
<ArgsTable story="Overview" of={Loader} />
|
package/lib/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './components/Button/Button';
|
|
2
|
-
export * from './components/Icon/Icon';
|
|
3
|
-
export * from './layouts/Header/Header';
|
|
4
|
-
export * from './layouts/Header/HeaderActions';
|
|
5
|
-
export * from './layouts/Header/HeaderProfile';
|
|
6
|
-
export * from './layouts/Header/HeaderTitle';
|
|
7
|
-
export * from './layouts/Navigation/Navigation';
|
|
8
|
-
export * from './layouts/Navigation/NavigationActions';
|
|
9
|
-
export * from './layouts/Navigation/NavigationBreadcrumb';
|
package/lib/index.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./components/Button/Button"), exports);
|
|
18
|
-
__exportStar(require("./components/Icon/Icon"), exports);
|
|
19
|
-
__exportStar(require("./layouts/Header/Header"), exports);
|
|
20
|
-
__exportStar(require("./layouts/Header/HeaderActions"), exports);
|
|
21
|
-
__exportStar(require("./layouts/Header/HeaderProfile"), exports);
|
|
22
|
-
__exportStar(require("./layouts/Header/HeaderTitle"), exports);
|
|
23
|
-
__exportStar(require("./layouts/Navigation/Navigation"), exports);
|
|
24
|
-
__exportStar(require("./layouts/Navigation/NavigationActions"), exports);
|
|
25
|
-
__exportStar(require("./layouts/Navigation/NavigationBreadcrumb"), exports);
|
|
26
|
-
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,6DAA2C;AAC3C,yDAAuC;AAEvC,0DAAwC;AACxC,iEAA+C;AAC/C,iEAA+C;AAC/C,+DAA6C;AAC7C,kEAAgD;AAChD,yEAAuD;AACvD,4EAA0D"}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
@font-face {
|
|
2
|
-
font-family: 'Montserrat';
|
|
3
|
-
src: url('../../assets/fonts/Montserrat-Medium.ttf');
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
/* ######## */
|
|
7
|
-
/* HEADER */
|
|
8
|
-
header {
|
|
9
|
-
display: flex;
|
|
10
|
-
align-items: center;
|
|
11
|
-
justify-content: space-between;
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 64px;
|
|
14
|
-
padding: 0 24px;
|
|
15
|
-
}
|
|
16
|
-
.header-actions {
|
|
17
|
-
display: flex;
|
|
18
|
-
}
|
|
19
|
-
.header-actions > * {
|
|
20
|
-
margin-left: 12px;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
/* ############## */
|
|
24
|
-
/* HEADER TITLE */
|
|
25
|
-
.header-title-container {
|
|
26
|
-
display: flex;
|
|
27
|
-
align-items: flex-end;
|
|
28
|
-
height: 30px;
|
|
29
|
-
}
|
|
30
|
-
.header-title {
|
|
31
|
-
font-family: 'Montserrat';
|
|
32
|
-
font-size: 25px;
|
|
33
|
-
line-height: 19px;
|
|
34
|
-
text-transform: uppercase;
|
|
35
|
-
}
|
|
36
|
-
.header-by {
|
|
37
|
-
margin-left: 15px;
|
|
38
|
-
font-family: 'Montserrat';
|
|
39
|
-
font-size: 12px;
|
|
40
|
-
line-height: 10px;
|
|
41
|
-
text-transform: uppercase;
|
|
42
|
-
}
|
|
43
|
-
.header-techoff {
|
|
44
|
-
width: 64px;
|
|
45
|
-
margin-left: 4px;
|
|
46
|
-
margin-bottom: -2px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/* ################ */
|
|
50
|
-
/* HEADER PROFILE */
|
|
51
|
-
.header-profile {
|
|
52
|
-
display: flex;
|
|
53
|
-
align-items: center;
|
|
54
|
-
height: 40px;
|
|
55
|
-
padding: 0 4px;
|
|
56
|
-
border-radius: 9999px;
|
|
57
|
-
box-shadow: 0px 12px 12px 0px #00537d1a;
|
|
58
|
-
background: white;
|
|
59
|
-
}
|
|
60
|
-
.header-profile--icon {
|
|
61
|
-
display: flex;
|
|
62
|
-
align-items: center;
|
|
63
|
-
justify-content: center;
|
|
64
|
-
width: 32px;
|
|
65
|
-
height: 32px;
|
|
66
|
-
border-radius: 9999px;
|
|
67
|
-
background: #e5e5e5;
|
|
68
|
-
}
|
|
69
|
-
.header-profile--name {
|
|
70
|
-
padding-left: 8px;
|
|
71
|
-
padding-right: 12px;
|
|
72
|
-
color: #4e5d6b;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/* ######### */
|
|
76
|
-
/* GLOBALS */
|
|
77
|
-
* {
|
|
78
|
-
font-size: 14px;
|
|
79
|
-
outline: none;
|
|
80
|
-
box-sizing: border-box;
|
|
81
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
82
|
-
'Helvetica Neue', sans-serif;
|
|
83
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Header = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const validator_utils_1 = require("../../utils/validator.utils");
|
|
7
|
-
require("./Header.css");
|
|
8
|
-
const Header = ({ children }) => {
|
|
9
|
-
const titleElement = react_1.Children.toArray(children).find(c => (0, validator_utils_1.isSuiteElement)(c, 'HeaderTitle'));
|
|
10
|
-
const actionsElement = react_1.Children.toArray(children).find(c => (0, validator_utils_1.isSuiteElement)(c, 'HeaderActions'));
|
|
11
|
-
// #########
|
|
12
|
-
// Rendering
|
|
13
|
-
return (React.createElement("header", null,
|
|
14
|
-
React.createElement("div", null, titleElement),
|
|
15
|
-
React.createElement("div", null, actionsElement)));
|
|
16
|
-
};
|
|
17
|
-
exports.Header = Header;
|
|
18
|
-
//# sourceMappingURL=Header.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.js","sourceRoot":"","sources":["../../../src/layouts/Header/Header.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAoD;AACpD,iEAA6D;AAC7D,wBAAsB;AAEf,MAAM,MAAM,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE;IACxD,MAAM,YAAY,GAAG,gBAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,gCAAc,EAAC,CAAC,EAAE,aAAa,CAAC,CAAC,CAAC;IAC5F,MAAM,cAAc,GAAG,gBAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,gCAAc,EAAC,CAAC,EAAE,eAAe,CAAC,CAAC,CAAC;IAEhG,YAAY;IACZ,YAAY;IACZ,OAAO,CACL;QACE,iCAAM,YAAY,CAAO;QACzB,iCAAM,cAAc,CAAO,CACpB,CACV,CAAC;AACJ,CAAC,CAAC;AAZW,QAAA,MAAM,UAYjB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Header.types.js","sourceRoot":"","sources":["../../../src/layouts/Header/Header.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HeaderActions = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const HeaderActions = ({ children }) => {
|
|
6
|
-
// #########
|
|
7
|
-
// Rendering
|
|
8
|
-
return React.createElement("div", { className: "header-actions" }, children);
|
|
9
|
-
};
|
|
10
|
-
exports.HeaderActions = HeaderActions;
|
|
11
|
-
//# sourceMappingURL=HeaderActions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderActions.js","sourceRoot":"","sources":["../../../src/layouts/Header/HeaderActions.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAGxB,MAAM,aAAa,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE;IAC/D,YAAY;IACZ,YAAY;IACZ,OAAO,6BAAK,SAAS,EAAC,gBAAgB,IAAE,QAAQ,CAAO,CAAC;AAC1D,CAAC,CAAC;AAJW,QAAA,aAAa,iBAIxB"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HeaderProfile = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const Icon_1 = require("../../components/Icon/Icon");
|
|
6
|
-
const string_utils_1 = require("../../utils/string.utils");
|
|
7
|
-
const HeaderProfile = ({ firstname, lastname }) => {
|
|
8
|
-
// #########
|
|
9
|
-
// Rendering
|
|
10
|
-
return (React.createElement("div", { className: "header-profile" },
|
|
11
|
-
React.createElement("div", { className: "header-profile--icon" },
|
|
12
|
-
React.createElement(Icon_1.Icon, { name: "user", size: "16" })),
|
|
13
|
-
React.createElement("div", { className: "header-profile--name" },
|
|
14
|
-
(0, string_utils_1.capitalize)(firstname),
|
|
15
|
-
" ",
|
|
16
|
-
lastname.charAt(0).toUpperCase(),
|
|
17
|
-
".")));
|
|
18
|
-
};
|
|
19
|
-
exports.HeaderProfile = HeaderProfile;
|
|
20
|
-
//# sourceMappingURL=HeaderProfile.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderProfile.js","sourceRoot":"","sources":["../../../src/layouts/Header/HeaderProfile.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,qDAAkD;AAClD,2DAAsD;AAG/C,MAAM,aAAa,GAAG,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAsB,EAAE,EAAE;IAC3E,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,gBAAgB;QAC7B,6BAAK,SAAS,EAAC,sBAAsB;YACnC,oBAAC,WAAI,IAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,GAAG,CAC1B;QAEN,6BAAK,SAAS,EAAC,sBAAsB;YAClC,IAAA,yBAAU,EAAC,SAAS,CAAC;;YAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE;gBACrD,CACF,CACP,CAAC;AACJ,CAAC,CAAC;AAdW,QAAA,aAAa,iBAcxB"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.HeaderTitle = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const svg = '<?xml version="1.0" encoding="utf-8"?><!-- Generator: Adobe Illustrator 27.3.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --><svg version="1.1" id="Calque_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 335 62.6" style="enable-background:new 0 0 335 62.6;" xml:space="preserve"><style type="text/css"> .st0{fill:#0883C4;} .st1{fill:#FFFFFF;}</style><path d="M126.2,24.4c-3.1-3.3-7.4-5.3-12.4-5.3c-9.2,0-16,6.8-16,16.1c0,9.3,6.7,16.2,16,16.2c5.3,0,9.6-2.4,12.6-6l8.1,7.3 c-5.4,6.5-12.1,9.8-20.7,9.8C98,62.6,86.4,51,86.4,35.3C86.4,19.5,98,8,113.8,8c8.2,0,15.4,3,20.3,8.5L126.2,24.4z"/><polygon points="46.8,9.5 80.3,9.5 80.3,19.9 58,19.9 58,30.8 77.3,30.8 77.3,40.9 58,40.9 58,52.1 80.3,52.1 80.3,62.6 46.8,62.6 "/><polygon points="265.4,8.7 297,8.7 297,19.2 276.6,19.2 276.6,32.6 294,32.6 294,42.8 276.6,42.8 276.6,61.8 265.4,61.8 "/><polygon points="303.4,8.7 335,8.7 335,19.2 314.6,19.2 314.6,32.6 332,32.6 332,42.8 314.6,42.8 314.6,61.8 303.4,61.8 "/><polygon points="174.5,40.1 152,40.1 152,61.8 140.8,61.8 140.8,8.7 152,8.7 152,29.2 174.5,29.2 174.5,8.7 185.7,8.7 185.7,61.8 174.5,61.8 "/><polygon points="0,9.5 40.3,9.5 40.3,20.4 25.8,20.4 25.8,62.6 14.6,62.6 14.6,20.4 0,20.4 "/><polyline points="188.4,15.9 198.6,0 209.9,0 199.7,15.9 188.4,15.9 "/><path d="M231.7,8c-15.8,0-27.4,11.5-27.4,27.3c0,15.8,11.6,27.3,27.4,27.3c15.7,0,27.2-11.5,27.2-27.3C258.9,19.5,247.4,8,231.7,8z" /><polygon class="st0" points="208,36.3 243.1,15.9 243,56.6 "/><polygon class="st1" points="231.1,56.7 230.6,37.4 214.2,47.6 "/></svg>';
|
|
6
|
-
const HeaderTitle = ({ children }) => {
|
|
7
|
-
// #########
|
|
8
|
-
// Rendering
|
|
9
|
-
return (React.createElement("div", { className: "header-title-container" },
|
|
10
|
-
React.createElement("div", { className: "header-title" }, children),
|
|
11
|
-
React.createElement("div", { className: "header-by" }, "BY"),
|
|
12
|
-
React.createElement("div", { className: "header-techoff", dangerouslySetInnerHTML: { __html: svg } })));
|
|
13
|
-
};
|
|
14
|
-
exports.HeaderTitle = HeaderTitle;
|
|
15
|
-
//# sourceMappingURL=HeaderTitle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HeaderTitle.js","sourceRoot":"","sources":["../../../src/layouts/Header/HeaderTitle.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAG/B,MAAM,GAAG,GACP,wjDAAwjD,CAAC;AAEpjD,MAAM,WAAW,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE;IAC7D,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,wBAAwB;QACrC,6BAAK,SAAS,EAAC,cAAc,IAAE,QAAQ,CAAO;QAC9C,6BAAK,SAAS,EAAC,WAAW,SAAS;QACnC,6BAAK,SAAS,EAAC,gBAAgB,EAAC,uBAAuB,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,GAAI,CACxE,CACP,CAAC;AACJ,CAAC,CAAC;AAVW,QAAA,WAAW,eAUtB"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { ArgsTable, Canvas, Meta, Story } from '@storybook/blocks';
|
|
3
|
-
import { Header } from '../Header';
|
|
4
|
-
import { HeaderActions } from '../HeaderActions';
|
|
5
|
-
import { HeaderTitle } from '../HeaderTitle';
|
|
6
|
-
import { HeaderProfile } from '../HeaderProfile';
|
|
7
|
-
import { Button } from '../../../components/Button/Button';
|
|
8
|
-
|
|
9
|
-
<Meta title="Layouts/Header" />
|
|
10
|
-
|
|
11
|
-
# Header
|
|
12
|
-
|
|
13
|
-
The header will allow users to quickly find the information they need at a glance but also make some actions. The header is therefore central in the design of each application: it contains all the essential information, obvious shortcuts, which will help boost Deacthlon Techoff brand image.
|
|
14
|
-
|
|
15
|
-
## Overview
|
|
16
|
-
|
|
17
|
-
<Canvas>
|
|
18
|
-
<Story
|
|
19
|
-
name="Overview"
|
|
20
|
-
args={{
|
|
21
|
-
children: [
|
|
22
|
-
<HeaderTitle>Techoff Suite UI</HeaderTitle>,
|
|
23
|
-
<HeaderActions>
|
|
24
|
-
<Button icon="plus" size="lg" variant="shadow" rounded onClick={() => {}} />
|
|
25
|
-
<HeaderProfile firstname="John" lastname="Doe" />
|
|
26
|
-
</HeaderActions>,
|
|
27
|
-
],
|
|
28
|
-
}}
|
|
29
|
-
>
|
|
30
|
-
{args => <Header>{args.children}</Header>}
|
|
31
|
-
</Story>
|
|
32
|
-
</Canvas>
|
|
33
|
-
|
|
34
|
-
## Props
|
|
35
|
-
|
|
36
|
-
<ArgsTable story="Overview" of={Header} />
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
.navigation {
|
|
2
|
-
display: flex;
|
|
3
|
-
align-items: center;
|
|
4
|
-
height: 32px;
|
|
5
|
-
padding: 0 24px;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
/* ############ */
|
|
9
|
-
/* BREADCRUMB */
|
|
10
|
-
.breadcrumb {
|
|
11
|
-
display: flex;
|
|
12
|
-
align-items: center;
|
|
13
|
-
padding-right: 20px;
|
|
14
|
-
}
|
|
15
|
-
.breadcrumb-container {
|
|
16
|
-
display: flex;
|
|
17
|
-
align-items: center;
|
|
18
|
-
}
|
|
19
|
-
.breadcrumb-chevron {
|
|
20
|
-
padding: 0 8px;
|
|
21
|
-
color: #00689d;
|
|
22
|
-
}
|
|
23
|
-
.breadcrumb-item {
|
|
24
|
-
display: flex;
|
|
25
|
-
align-items: center;
|
|
26
|
-
height: 32px;
|
|
27
|
-
border-radius: 9999px;
|
|
28
|
-
color: #00689d;
|
|
29
|
-
}
|
|
30
|
-
.breadcrumb-item--highlight {
|
|
31
|
-
padding: 0 20px;
|
|
32
|
-
box-shadow: 0px 6px 6px 0px #00537d1a;
|
|
33
|
-
background: linear-gradient(270.22deg, #007dbc 43.94%, #7ebee0 114.83%);
|
|
34
|
-
color: #ffffff;
|
|
35
|
-
}
|
|
36
|
-
.breadcrumb-item--link {
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
39
|
-
.breadcrumb-item--link:hover {
|
|
40
|
-
text-decoration: underline;
|
|
41
|
-
}
|
|
42
|
-
.breadcrumb-item--icon {
|
|
43
|
-
padding-right: 8px;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/* ######### */
|
|
47
|
-
/* DIVIDER */
|
|
48
|
-
.navigation-divider {
|
|
49
|
-
flex: 1;
|
|
50
|
-
height: 1px;
|
|
51
|
-
margin: 4px 0;
|
|
52
|
-
background: #b3bac3;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
/* ######### */
|
|
56
|
-
/* ACTIONS */
|
|
57
|
-
.navigation-actions {
|
|
58
|
-
/* flex items-center [&>*]:ml-4 */
|
|
59
|
-
display: flex;
|
|
60
|
-
align-items: center;
|
|
61
|
-
}
|
|
62
|
-
.navigation-actions > * {
|
|
63
|
-
margin-left: 16px;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/* ######### */
|
|
67
|
-
/* GLOBALS */
|
|
68
|
-
* {
|
|
69
|
-
font-size: 14px;
|
|
70
|
-
outline: none;
|
|
71
|
-
box-sizing: border-box;
|
|
72
|
-
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans',
|
|
73
|
-
'Helvetica Neue', sans-serif;
|
|
74
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Navigation = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const validator_utils_1 = require("../../utils/validator.utils");
|
|
7
|
-
require("./Navigation.css");
|
|
8
|
-
const Navigation = ({ children }) => {
|
|
9
|
-
const breadcrumbElement = react_1.Children.toArray(children).find(c => (0, validator_utils_1.isSuiteElement)(c, 'NavigationBreadcrumb'));
|
|
10
|
-
const actionsElement = react_1.Children.toArray(children).find(c => (0, validator_utils_1.isSuiteElement)(c, 'NavigationActions'));
|
|
11
|
-
// #########
|
|
12
|
-
// Rendering
|
|
13
|
-
return (React.createElement("div", { className: "navigation" },
|
|
14
|
-
breadcrumbElement,
|
|
15
|
-
React.createElement("div", { className: "navigation-divider" }),
|
|
16
|
-
actionsElement));
|
|
17
|
-
};
|
|
18
|
-
exports.Navigation = Navigation;
|
|
19
|
-
//# sourceMappingURL=Navigation.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.js","sourceRoot":"","sources":["../../../src/layouts/Navigation/Navigation.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAoD;AACpD,iEAA6D;AAC7D,4BAA0B;AAEnB,MAAM,UAAU,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE;IAC5D,MAAM,iBAAiB,GAAG,gBAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,gCAAc,EAAC,CAAC,EAAE,sBAAsB,CAAC,CAAC,CAAC;IAC1G,MAAM,cAAc,GAAG,gBAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,gCAAc,EAAC,CAAC,EAAE,mBAAmB,CAAC,CAAC,CAAC;IAEpG,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,YAAY;QACxB,iBAAiB;QAClB,6BAAK,SAAS,EAAC,oBAAoB,GAAG;QACrC,cAAc,CACX,CACP,CAAC;AACJ,CAAC,CAAC;AAbW,QAAA,UAAU,cAarB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Navigation.types.js","sourceRoot":"","sources":["../../../src/layouts/Navigation/Navigation.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NavigationActions = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
require("./Navigation.css");
|
|
6
|
-
const NavigationActions = ({ children }) => (React.createElement("div", { className: "navigation-actions" }, children));
|
|
7
|
-
exports.NavigationActions = NavigationActions;
|
|
8
|
-
//# sourceMappingURL=NavigationActions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationActions.js","sourceRoot":"","sources":["../../../src/layouts/Navigation/NavigationActions.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAE/B,4BAA0B;AAEnB,MAAM,iBAAiB,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE,CAAC,CACpE,6BAAK,SAAS,EAAC,oBAAoB,IAAE,QAAQ,CAAO,CACrD,CAAC;AAFW,QAAA,iBAAiB,qBAE5B"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { PropsWithChildren } from 'react';
|
|
3
|
-
import { NavigationBreadcrumbItemProps } from './Navigation.types';
|
|
4
|
-
import './Navigation.css';
|
|
5
|
-
export declare const NavigationBreadcrumbItem: ({ children, icon, highlight, onClick, }: PropsWithChildren<NavigationBreadcrumbItemProps>) => React.JSX.Element;
|
|
6
|
-
export declare const NavigationBreadcrumb: ({ children }: PropsWithChildren) => React.JSX.Element;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NavigationBreadcrumb = exports.NavigationBreadcrumbItem = void 0;
|
|
4
|
-
const React = require("react");
|
|
5
|
-
const react_1 = require("react");
|
|
6
|
-
const Icon_1 = require("../../components/Icon/Icon");
|
|
7
|
-
const validator_utils_1 = require("../../utils/validator.utils");
|
|
8
|
-
require("./Navigation.css");
|
|
9
|
-
const NavigationBreadcrumbItem = ({ children, icon, highlight, onClick, }) => {
|
|
10
|
-
// #########
|
|
11
|
-
// Rendering
|
|
12
|
-
return (React.createElement("div", { className: `
|
|
13
|
-
breadcrumb-item
|
|
14
|
-
${highlight ? 'breadcrumb-item--highlight' : ''} ${onClick ? 'breadcrumb-item--link' : ''}
|
|
15
|
-
`, onClick: onClick },
|
|
16
|
-
icon && (React.createElement("div", { className: "breadcrumb-item--icon" },
|
|
17
|
-
React.createElement(Icon_1.Icon, { name: icon, size: "16" }))),
|
|
18
|
-
children));
|
|
19
|
-
};
|
|
20
|
-
exports.NavigationBreadcrumbItem = NavigationBreadcrumbItem;
|
|
21
|
-
const NavigationBreadcrumb = ({ children }) => {
|
|
22
|
-
const breadcrumbItemElements = react_1.Children.toArray(children).filter(c => (0, validator_utils_1.isSuiteElement)(c, 'NavigationBreadcrumbItem'));
|
|
23
|
-
// #########
|
|
24
|
-
// Rendering
|
|
25
|
-
return (React.createElement("div", { className: "breadcrumb" }, breadcrumbItemElements.map((child, index) => (React.createElement("div", { key: index, className: "breadcrumb-container" },
|
|
26
|
-
child,
|
|
27
|
-
index !== breadcrumbItemElements.length - 1 && (React.createElement("div", { className: "breadcrumb-chevron" },
|
|
28
|
-
React.createElement(Icon_1.Icon, { name: "chevron-right" }))))))));
|
|
29
|
-
};
|
|
30
|
-
exports.NavigationBreadcrumb = NavigationBreadcrumb;
|
|
31
|
-
//# sourceMappingURL=NavigationBreadcrumb.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NavigationBreadcrumb.js","sourceRoot":"","sources":["../../../src/layouts/Navigation/NavigationBreadcrumb.tsx"],"names":[],"mappings":";;;AAAA,+BAA+B;AAC/B,iCAAoD;AAEpD,qDAAkD;AAClD,iEAA6D;AAC7D,4BAA0B;AAEnB,MAAM,wBAAwB,GAAG,CAAC,EACvC,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,OAAO,GAC0C,EAAE,EAAE;IACrD,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BACE,SAAS,EAAE;;UAEP,SAAS,CAAC,CAAC,CAAC,4BAA4B,CAAC,CAAC,CAAC,EAAE,IAAI,OAAO,CAAC,CAAC,CAAC,uBAAuB,CAAC,CAAC,CAAC,EAAE;OAC1F,EACD,OAAO,EAAE,OAAO;QAEf,IAAI,IAAI,CACP,6BAAK,SAAS,EAAC,uBAAuB;YACpC,oBAAC,WAAI,IAAC,IAAI,EAAE,IAAI,EAAE,IAAI,EAAC,IAAI,GAAG,CAC1B,CACP;QAEA,QAAQ,CACL,CACP,CAAC;AACJ,CAAC,CAAC;AAzBW,QAAA,wBAAwB,4BAyBnC;AAEK,MAAM,oBAAoB,GAAG,CAAC,EAAE,QAAQ,EAAqB,EAAE,EAAE;IACtE,MAAM,sBAAsB,GAAG,gBAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,IAAA,gCAAc,EAAC,CAAC,EAAE,0BAA0B,CAAC,CAAC,CAAC;IAErH,YAAY;IACZ,YAAY;IACZ,OAAO,CACL,6BAAK,SAAS,EAAC,YAAY,IACxB,sBAAsB,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,CAC5C,6BAAK,GAAG,EAAE,KAAK,EAAE,SAAS,EAAC,sBAAsB;QAC9C,KAAK;QAEL,KAAK,KAAK,sBAAsB,CAAC,MAAM,GAAG,CAAC,IAAI,CAC9C,6BAAK,SAAS,EAAC,oBAAoB;YACjC,oBAAC,WAAI,IAAC,IAAI,EAAC,eAAe,GAAG,CACzB,CACP,CACG,CACP,CAAC,CACE,CACP,CAAC;AACJ,CAAC,CAAC;AApBW,QAAA,oBAAoB,wBAoB/B"}
|