@policystudio/policy-studio-ui-vue 1.0.28 → 1.0.31
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/.storybook/preview.js +7 -1
- package/README.md +6 -2
- package/dist/css/psui_styles.css +1863 -210
- package/package.json +15 -5
- package/src/assets/scss/base.scss +4 -0
- package/src/assets/scss/components/PsAccordion.scss +28 -11
- package/src/assets/scss/components/PsButton.scss +39 -18
- package/src/assets/scss/components/PsCardInfos.scss +1 -1
- package/src/assets/scss/components/PsCheckbox.scss +4 -5
- package/src/assets/scss/components/PsChips.scss +13 -8
- package/src/assets/scss/components/PsClimateZoneBadge.scss +1 -1
- package/src/assets/scss/components/PsCostEffectBar.scss +22 -27
- package/src/assets/scss/components/PsDialog.scss +5 -2
- package/src/assets/scss/components/PsDotLoader.scss +45 -0
- package/src/assets/scss/components/PsDraggable.scss +64 -0
- package/src/assets/scss/components/PsDropdown.scss +5 -22
- package/src/assets/scss/components/PsDropdownList.scss +19 -0
- package/src/assets/scss/components/PsHighlightRippleDot.scss +1 -1
- package/src/assets/scss/components/PsInlineSelector.scss +92 -1
- package/src/assets/scss/components/PsInput.scss +8 -3
- package/src/assets/scss/components/PsInputSelect.scss +75 -30
- package/src/assets/scss/components/PsInputTextArea.scss +5 -2
- package/src/assets/scss/components/PsMiniTag.scss +36 -0
- package/src/assets/scss/components/PsRadioButton.scss +5 -5
- package/src/assets/scss/components/PsSwitch.scss +4 -4
- package/src/assets/scss/components/PsTabHeader.scss +14 -0
- package/src/assets/scss/components/PsToast.scss +3 -3
- package/src/assets/scss/components/PsToggle.scss +6 -2
- package/src/assets/scss/components/PsTooltip.scss +51 -18
- package/src/components/accordion/PsAccordion.vue +7 -23
- package/src/components/accordion/PsAccordionItem.vue +41 -25
- package/src/components/badges-and-tags/PsCardInfos.vue +12 -0
- package/src/components/badges-and-tags/PsChartLegend.vue +13 -0
- package/src/components/badges-and-tags/PsClimateZoneBadge.vue +7 -0
- package/src/components/badges-and-tags/PsCostEffectBar.vue +6 -1
- package/src/components/badges-and-tags/PsHighlightRippleDot.vue +3 -1
- package/src/components/badges-and-tags/PsMiniTag.vue +21 -24
- package/src/components/badges-and-tags/PsProgressBar.vue +17 -9
- package/src/components/buttons/PsButton.vue +27 -2
- package/src/components/chips/PsChips.vue +24 -4
- package/src/components/controls/PsCheckbox.vue +32 -16
- package/src/components/controls/PsDraggable.vue +39 -150
- package/src/components/controls/PsInlineSelector.vue +144 -6
- package/src/components/controls/PsRadioButton.vue +28 -15
- package/src/components/controls/PsSlider.vue +1 -1
- package/src/components/controls/PsSwitch.vue +20 -11
- package/src/components/controls/PsToggle.vue +33 -12
- package/src/components/datatable/PsDataTable.vue +18 -0
- package/src/components/forms/PsDropdown.vue +18 -60
- package/src/components/forms/PsDropdownList.vue +82 -0
- package/src/components/forms/PsInput.vue +28 -1
- package/src/components/forms/PsInputSelect.vue +31 -2
- package/src/components/forms/PsInputTextArea.vue +53 -40
- package/src/components/notifications/PsDialog.vue +15 -0
- package/src/components/notifications/PsToast.vue +15 -0
- package/src/components/playground/PsScrollBar.vue +15 -0
- package/src/components/tabs/PsTabHeader.vue +19 -1
- package/src/components/tooltip/PsDialogTooltip.vue +103 -20
- package/src/components/tooltip/PsRichTooltip.vue +6 -3
- package/src/components/tooltip/PsTooltip.vue +19 -3
- package/src/components/ui/PsDotLoader.vue +15 -0
- package/src/components/ui/PsIcon.vue +30 -0
- package/src/index.js +39 -7
- package/src/stories/Accordion.stories.js +12 -48
- package/src/stories/Button.stories.js +30 -7
- package/src/stories/Chips.stories.js +14 -2
- package/src/stories/Colors.stories.mdx +1 -0
- package/src/stories/Dropdown.stories.js +36 -13
- package/src/stories/InlineSelector.stories.js +3 -1
- package/src/stories/InputSelect.stories.js +8 -0
- package/src/stories/MiniTag.stories.js +12 -6
- package/src/stories/Playground.stories.js +16 -0
- package/src/stories/Switch.stories.js +8 -2
- package/src/stories/Toast.stories.js +16 -16
- package/src/stories/Tooltip.stories.js +6 -6
- package/src/stories/Typography.stories.mdx +22 -18
- package/src/util/GeneralFunctions.js +8 -0
- package/tailwind.config.js +8 -3
- package/vetur/attributes.json +1376 -0
- package/vetur/tags.json +632 -0
- package/src/components/badges-and-tags/PsCostEffectBar.Copy.vue +0 -72
|
@@ -1,32 +1,55 @@
|
|
|
1
1
|
import PsDropdown from '../components/forms/PsDropdown.vue'
|
|
2
|
+
import PsDropdownList from '../components/forms/PsDropdownList.vue'
|
|
2
3
|
export default {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
argTypes: {},
|
|
4
|
+
title: 'Components/Dropdown',
|
|
5
|
+
component: { PsDropdown , PsDropdownList },
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
const Template = (args, { argTypes }) => ({
|
|
9
9
|
props: Object.keys(argTypes),
|
|
10
|
-
components: { PsDropdown },
|
|
10
|
+
components: { PsDropdown, PsDropdownList },
|
|
11
11
|
template: `
|
|
12
|
-
<div>
|
|
13
|
-
<PsDropdown
|
|
14
|
-
buttonClasses="psui-p-3 "
|
|
15
|
-
>
|
|
12
|
+
<div style='background: #E6ECF2; width:900px; height: 700px; padding: 20px;' class='psui-flex psui-gap-64 psui-bg-gray-20 '>
|
|
13
|
+
<PsDropdown>
|
|
16
14
|
<template v-slot:dropdownTrigger>
|
|
17
|
-
<
|
|
15
|
+
<i class='psui-icon psui-text-gray-50 psui-cursor-pointer psui-h-2'>more_horiz</i>
|
|
18
16
|
</template>
|
|
19
17
|
<template v-slot:items>
|
|
18
|
+
<p class='psui-uppercase psui-text-gray-40' style='padding: 24px 20px 8px 20px;'>divider label</p>
|
|
20
19
|
<ul>
|
|
21
|
-
<li
|
|
20
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer psui-flex psui-items-center psui-gap-3'><i class='psui-icon'>public</i><span>Selectable option 01</span></li>
|
|
21
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer psui-flex psui-items-center psui-gap-3'><i class='psui-icon'>share</i><span>Selectable option 02</span></li>
|
|
22
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer psui-flex psui-items-center psui-gap-3'><i class='psui-icon'>person</i><span>Selectable option 03</span></li>
|
|
23
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer psui-flex psui-items-center psui-gap-3'><i class='psui-icon'>settings</i><span>Selectable option 04</span></li>
|
|
24
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer psui-flex psui-items-center psui-gap-3'><i class='psui-icon'>save</i><span>Selectable option 05</span></li>
|
|
25
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer psui-flex psui-items-center psui-gap-3'><i class='psui-icon'>equalizer</i><span>Selectable option 06</span></li>
|
|
22
26
|
</ul>
|
|
27
|
+
<p class='psui-uppercase psui-text-gray-40' style='padding: 24px 20px 8px 20px;'>divider label</p>
|
|
28
|
+
<ul>
|
|
29
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer'>Selectable option 01</li>
|
|
30
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer'>Selectable option 02</li>
|
|
31
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer'>Selectable option 03</li>
|
|
32
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer'>Selectable option 04</li>
|
|
33
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer'>Selectable option 05</li>
|
|
34
|
+
<li style=' padding: 7px 20px;' class='hover:psui-text-blue-60 psui-text-gray-60 psui-font-bold psui-cursor-pointer'>Selectable option 06</li>
|
|
35
|
+
</ul>
|
|
36
|
+
|
|
37
|
+
</template>
|
|
38
|
+
</PsDropdown>
|
|
39
|
+
<PsDropdown>
|
|
40
|
+
<template v-slot:dropdownTrigger>
|
|
41
|
+
<i class='psui-icon psui-text-gray-50 psui-cursor-pointer psui-h-auto'>more_horiz</i>
|
|
23
42
|
</template>
|
|
43
|
+
<template v-slot:items>
|
|
44
|
+
<PsDropdownList v-bind='$props'></PsDropdownList>
|
|
45
|
+
</template>
|
|
24
46
|
</PsDropdown>
|
|
25
47
|
</div>
|
|
26
48
|
`,
|
|
27
49
|
})
|
|
28
50
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
51
|
+
|
|
52
|
+
export const DropdownMenu= Template.bind({})
|
|
53
|
+
DropdownMenu.args = {
|
|
54
|
+
items: ["Selectable option 01", "Selectable option 02", "Selectable option 03", "Selectable option 04"]
|
|
32
55
|
}
|
|
@@ -9,8 +9,10 @@ const TemplateDefault = (args, {argTypes}) => ({
|
|
|
9
9
|
props: Object.keys(argTypes),
|
|
10
10
|
components: {PsInlineSelector},
|
|
11
11
|
template: `
|
|
12
|
+
<div style="width: auto; margin-right: auto; display: flex; align-items: center;">
|
|
12
13
|
<PsInlineSelector v-bind="$props"></PsInlineSelector>
|
|
13
|
-
|
|
14
|
+
</div>
|
|
15
|
+
`
|
|
14
16
|
})
|
|
15
17
|
|
|
16
18
|
export const Default = TemplateDefault.bind({})
|
|
@@ -9,10 +9,18 @@ const TemplateDefault = (args, {argTypes})=> ({
|
|
|
9
9
|
props: Object.keys(argTypes),
|
|
10
10
|
components: {PsInputSelect},
|
|
11
11
|
template: `
|
|
12
|
+
<div style='display:flex; gap: 30px;'>
|
|
12
13
|
<div style='width:300px; display:flex; flex-direction: column; gap:20px;'>
|
|
14
|
+
<span>Default Select</span>
|
|
13
15
|
<PsInputSelect v-bind="$props" label="Gender" keyLabel="title" keyValue="value" optionalLabel="Optional helper/feedback text"/>
|
|
14
16
|
<PsInputSelect v-bind="$props" disabled label="Gender" keyLabel="title" keyValue="value" optionalLabel="Optional helper/feedback text"/>
|
|
15
17
|
</div>
|
|
18
|
+
<div style='width:90px; display:flex; flex-direction: column; gap:20px;'>
|
|
19
|
+
<span>Mini Select</span>
|
|
20
|
+
<PsInputSelect v-bind="$props" layout="mini" keyLabel="title" keyValue="value" optionalLabel="Optional helper/feedback text"/>
|
|
21
|
+
<PsInputSelect v-bind="$props" layout="mini" disabled keyLabel="title" keyValue="value" optionalLabel="Optional helper/feedback text"/>
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
16
24
|
`
|
|
17
25
|
})
|
|
18
26
|
|
|
@@ -21,26 +21,32 @@ const Template = (args, { argTypes }) => ({
|
|
|
21
21
|
template: '<PsMiniTag v-bind="$props" />',
|
|
22
22
|
})
|
|
23
23
|
|
|
24
|
-
export const
|
|
25
|
-
|
|
26
|
-
|
|
24
|
+
export const Info = Template.bind({})
|
|
25
|
+
Info.args = {
|
|
26
|
+
layout: 'info',
|
|
27
27
|
message: 'This is an info alert',
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
export const Success = Template.bind({})
|
|
31
31
|
Success.args = {
|
|
32
|
-
|
|
32
|
+
layout: 'success',
|
|
33
33
|
message: 'This is a success alert',
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
export const Warning = Template.bind({})
|
|
37
37
|
Warning.args = {
|
|
38
|
-
|
|
38
|
+
layout: 'warning',
|
|
39
39
|
message: 'This is a warning alert',
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export const Error = Template.bind({})
|
|
43
43
|
Error.args = {
|
|
44
|
-
|
|
44
|
+
layout: 'error',
|
|
45
45
|
message: 'This is an error alert',
|
|
46
46
|
}
|
|
47
|
+
|
|
48
|
+
export const Default = Template.bind({})
|
|
49
|
+
Default.args = {
|
|
50
|
+
layout: 'default',
|
|
51
|
+
message: 'This is a default color',
|
|
52
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import PsScrollBar from '../components/playground/PsScrollBar.vue'
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
title: 'Components/Playground',
|
|
5
|
+
component: PsScrollBar
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
const Template = (args, {argTypes}) => ({
|
|
9
|
+
props: Object.keys(argTypes),
|
|
10
|
+
components: { PsScrollBar},
|
|
11
|
+
template: `
|
|
12
|
+
<PsScrollBar v-bind='$props'></PsScrollbar>
|
|
13
|
+
`
|
|
14
|
+
})
|
|
15
|
+
|
|
16
|
+
export const ScrollBar = Template.bind({})
|
|
@@ -7,6 +7,12 @@ export default {
|
|
|
7
7
|
const Template = (args, { argTypes }) => ({
|
|
8
8
|
props: Object.keys(argTypes),
|
|
9
9
|
components: { PsSwitch },
|
|
10
|
+
data(){
|
|
11
|
+
return {
|
|
12
|
+
dt: false
|
|
13
|
+
|
|
14
|
+
}
|
|
15
|
+
},
|
|
10
16
|
template: `
|
|
11
17
|
<div style='display: flex; gap:10px;'>
|
|
12
18
|
<div style='display: flex; gap: 10px; flex-direction: column; margin-right: 10px;'>
|
|
@@ -16,8 +22,8 @@ const Template = (args, { argTypes }) => ({
|
|
|
16
22
|
</div>
|
|
17
23
|
<div style='display: flex; gap: 10px; flex-direction: column;'>
|
|
18
24
|
<span>Disable</span>
|
|
19
|
-
<PsSwitch v-bind="$props" label='Switch1'
|
|
20
|
-
<PsSwitch v-bind="$props" label='Switch2'
|
|
25
|
+
<PsSwitch v-bind="$props" v-model="dt" label='Switch1' size='big'/>
|
|
26
|
+
<PsSwitch v-bind="$props" v-model="dt" label='Switch2' size='small'/>
|
|
21
27
|
</div>
|
|
22
28
|
<div style='display: flex; gap: 10px; flex-direction: column;'>
|
|
23
29
|
<span>Enable</span>
|
|
@@ -11,38 +11,38 @@ const Template = (args, { argTypes }) => ({
|
|
|
11
11
|
<div style="display: flex; gap: 30px;">
|
|
12
12
|
<div style="display: flex; flex-direction: column; gap: 5px; width:500px;">
|
|
13
13
|
<PsToast v-bind="$props" message="This is a info alert" layout="info" icon="info" fill="intense" >
|
|
14
|
-
<p>Action 1</p>
|
|
15
|
-
<p>Action 2</p>
|
|
14
|
+
<p class="hover:psui-underline">Action 1</p>
|
|
15
|
+
<p class="hover:psui-underline">Action 2</p>
|
|
16
16
|
</PsToast>
|
|
17
17
|
<PsToast v-bind="$props" message="This is a success alert" layout="success" icon="check_circle" >
|
|
18
|
-
<p>Action 1</p>
|
|
19
|
-
<p>Action 2</p>
|
|
18
|
+
<p class="hover:psui-underline">Action 1</p>
|
|
19
|
+
<p class="hover:psui-underline">Action 2</p>
|
|
20
20
|
</PsToast>
|
|
21
21
|
<PsToast v-bind="$props" message="This is a warning alert" layout="warning" icon="warning">
|
|
22
|
-
<p>Action 1</p>
|
|
23
|
-
<p>Action 2</p>
|
|
22
|
+
<p class="hover:psui-underline">Action 1</p>
|
|
23
|
+
<p class="hover:psui-underline">Action 2</p>
|
|
24
24
|
</PsToast>
|
|
25
25
|
<PsToast v-bind="$props" message="This is a an error alert" layout="error" icon="warning" >
|
|
26
|
-
<p>Action 1</p>
|
|
27
|
-
<p>Action 2</p>
|
|
26
|
+
<p class="hover:psui-underline">Action 1</p>
|
|
27
|
+
<p class="hover:psui-underline">Action 2</p>
|
|
28
28
|
</PsToast>
|
|
29
29
|
</div>
|
|
30
30
|
<div style="display: flex; flex-direction: column; gap: 5px; width:500px;">
|
|
31
31
|
<PsToast v-bind="$props" message="This is a info alert" layout="info" icon="info" fill="soft" >
|
|
32
|
-
<p>Action 1</p>
|
|
33
|
-
<p>Action 2</p>
|
|
32
|
+
<p class="hover:psui-underline">Action 1</p>
|
|
33
|
+
<p class="hover:psui-underline">Action 2</p>
|
|
34
34
|
</PsToast>
|
|
35
35
|
<PsToast v-bind="$props" message="This is a success alert" layout="success" icon="check_circle" fill="soft">
|
|
36
|
-
<p>Action 1</p>
|
|
37
|
-
<p>Action 2</p>
|
|
36
|
+
<p class="hover:psui-underline">Action 1</p>
|
|
37
|
+
<p class="hover:psui-underline">Action 2</p>
|
|
38
38
|
</PsToast>
|
|
39
39
|
<PsToast v-bind="$props" message="This is a warning alert" layout="warning" icon="warning" fill="soft">
|
|
40
|
-
<p>Action 1</p>
|
|
41
|
-
<p>Action 2</p>
|
|
40
|
+
<p class="hover:psui-underline">Action 1</p>
|
|
41
|
+
<p class="hover:psui-underline">Action 2</p>
|
|
42
42
|
</PsToast>
|
|
43
43
|
<PsToast v-bind="$props" message="This is a an error alert" layout="error" icon="warning" fill="soft">
|
|
44
|
-
<p>Action 1</p>
|
|
45
|
-
<p>Action 2</p>
|
|
44
|
+
<p class="hover:psui-underline">Action 1</p>
|
|
45
|
+
<p class="hover:psui-underline">Action 2</p>
|
|
46
46
|
</PsToast>
|
|
47
47
|
</div>
|
|
48
48
|
<div>
|
|
@@ -13,7 +13,7 @@ const TemplateDialog = (args, {argTypes}) => ({
|
|
|
13
13
|
components: {PsDialogTooltip},
|
|
14
14
|
template: `
|
|
15
15
|
<div style='display: flex; justify-content: space-between;'>
|
|
16
|
-
<PsDialogTooltip v-bind='$props' layout='white' title='Duct Sealing' buttonText='More Info' cssClass='psui-w-
|
|
16
|
+
<PsDialogTooltip v-bind='$props' layout='white' title='Duct Sealing' buttonText='More Info' cssClass='psui-w-64'>
|
|
17
17
|
<template v-slot:trigger>
|
|
18
18
|
<p>Trigger</p>
|
|
19
19
|
</template>
|
|
@@ -21,7 +21,7 @@ const TemplateDialog = (args, {argTypes}) => ({
|
|
|
21
21
|
<p>Air seal all ductwork to a final duct leakage value of 10% of nominal airflow.</p>
|
|
22
22
|
</template>
|
|
23
23
|
</PsDialogTooltip>
|
|
24
|
-
<PsDialogTooltip v-bind='$props' layout='dark' title='Duct Sealing' buttonText='More Info' cssClass='psui-w-
|
|
24
|
+
<PsDialogTooltip v-bind='$props' layout='dark' title='Duct Sealing' buttonText='More Info' cssClass='psui-w-64'>
|
|
25
25
|
<template v-slot:trigger>
|
|
26
26
|
<p>Trigger</p>
|
|
27
27
|
</template>
|
|
@@ -29,7 +29,7 @@ const TemplateDialog = (args, {argTypes}) => ({
|
|
|
29
29
|
<p>Air seal all ductwork to a final duct leakage value of 10% of nominal airflow.</p>
|
|
30
30
|
</template>
|
|
31
31
|
</PsDialogTooltip>
|
|
32
|
-
<PsDialogTooltip v-bind='$props' layout='color' title='Duct Sealing' buttonText='More Info' cssClass='psui-w-
|
|
32
|
+
<PsDialogTooltip v-bind='$props' layout='color' title='Duct Sealing' buttonText='More Info' cssClass='psui-w-64'>
|
|
33
33
|
<template v-slot:trigger>
|
|
34
34
|
<p>Trigger</p>
|
|
35
35
|
</template>
|
|
@@ -46,7 +46,7 @@ const TemplateRich = (args,{argTypes})=>({
|
|
|
46
46
|
components: {PsRichTooltip},
|
|
47
47
|
template: `
|
|
48
48
|
<div style='display: flex; justify-content: space-between;'>
|
|
49
|
-
<PsRichTooltip v-bind='$props' layout='red' title='Measures that are not cost-effective cannot be added to a combination' cssClass='psui-w-
|
|
49
|
+
<PsRichTooltip v-bind='$props' layout='red' title='Measures that are not cost-effective cannot be added to a combination' cssClass='psui-w-64'>
|
|
50
50
|
<template v-slot:trigger>
|
|
51
51
|
<p>Trigger</p>
|
|
52
52
|
</template>
|
|
@@ -54,7 +54,7 @@ const TemplateRich = (args,{argTypes})=>({
|
|
|
54
54
|
<p>Here you can add an optional supporting text</p>
|
|
55
55
|
</template>
|
|
56
56
|
</PsRichTooltip>
|
|
57
|
-
<PsRichTooltip v-bind='$props' layout='blue' title='Select to create a combination of measures for your Policy' cssClass='psui-w-
|
|
57
|
+
<PsRichTooltip v-bind='$props' layout='blue' title='Select to create a combination of measures for your Policy' cssClass='psui-w-64'>
|
|
58
58
|
<template v-slot:trigger>
|
|
59
59
|
<p>Trigger</p>
|
|
60
60
|
</template>
|
|
@@ -62,7 +62,7 @@ const TemplateRich = (args,{argTypes})=>({
|
|
|
62
62
|
<p>Here you can add an optional supporting text</p>
|
|
63
63
|
</template>
|
|
64
64
|
</PsRichTooltip>
|
|
65
|
-
<PsRichTooltip v-bind='$props' layout='gray' title='Did not account for the cost of combustion safety testing' cssClass='psui-w-
|
|
65
|
+
<PsRichTooltip v-bind='$props' layout='gray' title='Did not account for the cost of combustion safety testing' cssClass='psui-w-64'>
|
|
66
66
|
<template v-slot:trigger>
|
|
67
67
|
<p>Trigger</p>
|
|
68
68
|
</template>
|
|
@@ -124,49 +124,49 @@ Keeping typography consistent and sticking to logical hierarchies ensures that e
|
|
|
124
124
|
<p class="psui-font-bold">Headline 1</p>
|
|
125
125
|
psui-text-h1
|
|
126
126
|
</td>
|
|
127
|
-
<td class="psui-text-h1">The lazy fox jumped
|
|
127
|
+
<td class="psui-text-h1 psui-cursor-pointer click-to-copy" data-to-copy="psui-text-h1">The lazy fox jumped over the brown dog</td>
|
|
128
128
|
</tr>
|
|
129
129
|
<tr>
|
|
130
130
|
<td>
|
|
131
131
|
<p class="psui-font-bold">Headline 2</p>
|
|
132
132
|
psui-text-h2
|
|
133
133
|
</td>
|
|
134
|
-
<td class="psui-text-h2">The lazy fox jumped over the brown dog</td>
|
|
134
|
+
<td class="psui-text-h2 psui-cursor-pointer click-to-copy" data-to-copy="psui-text-h2">The lazy fox jumped over the brown dog</td>
|
|
135
135
|
</tr>
|
|
136
136
|
<tr>
|
|
137
137
|
<td>
|
|
138
138
|
<p class="psui-font-bold">Headline 3</p>
|
|
139
139
|
psui-text-h3
|
|
140
140
|
</td>
|
|
141
|
-
<td class="psui-text-h3">The lazy fox jumped over the brown dog</td>
|
|
141
|
+
<td class="psui-text-h3 psui-cursor-pointer click-to-copy" data-to-copy="psui-text-h3">The lazy fox jumped over the brown dog</td>
|
|
142
142
|
</tr>
|
|
143
143
|
<tr>
|
|
144
144
|
<td>
|
|
145
145
|
<p class="psui-font-bold">Headline 4</p>
|
|
146
146
|
psui-text-h4
|
|
147
147
|
</td>
|
|
148
|
-
<td class="psui-text-h4">The lazy fox jumped over the brown dog</td>
|
|
148
|
+
<td class="psui-text-h4 psui-cursor-pointer click-to-copy" data-to-copy="psui-text-h4">The lazy fox jumped over the brown dog</td>
|
|
149
149
|
</tr>
|
|
150
150
|
<tr>
|
|
151
151
|
<td>
|
|
152
152
|
<p class="psui-font-bold">Headline 5</p>
|
|
153
153
|
psui-text-h5
|
|
154
154
|
</td>
|
|
155
|
-
<td class="psui-text-h5">The lazy fox jumped over the brown dog</td>
|
|
155
|
+
<td class="psui-text-h5 psui-cursor-pointer click-to-copy" data-to-copy="psui-text-h5">The lazy fox jumped over the brown dog</td>
|
|
156
156
|
</tr>
|
|
157
157
|
<tr>
|
|
158
158
|
<td>
|
|
159
|
-
<p class="psui-font-bold">Headline 6</p>
|
|
159
|
+
<p class="psui-font-bold" >Headline 6</p>
|
|
160
160
|
psui-text-h6
|
|
161
161
|
</td>
|
|
162
|
-
<td class="psui-text-h6">The lazy fox jumped over the brown dog</td>
|
|
162
|
+
<td class="psui-text-h6 psui-cursor-pointer click-to-copy" data-to-copy="psui-text-h6">The lazy fox jumped over the brown dog</td>
|
|
163
163
|
</tr>
|
|
164
164
|
<tr>
|
|
165
165
|
<td>
|
|
166
166
|
<p class="psui-font-bold">Paragraph</p>
|
|
167
167
|
psui-text-p
|
|
168
168
|
</td>
|
|
169
|
-
<td class="psui-text-p">
|
|
169
|
+
<td class="psui-text-p psui-cursor-pointer click-to-copy" data-to-copy="psui-text-p">
|
|
170
170
|
This tool allows you to dive into the cost-effectiveness findings relevant to your City or County. We’ve also embedded explanations of terms and concepts throughout the tool, as well as much of the supplementary information contained in the cost-effectiveness studies.
|
|
171
171
|
</td>
|
|
172
172
|
</tr>
|
|
@@ -175,7 +175,7 @@ Keeping typography consistent and sticking to logical hierarchies ensures that e
|
|
|
175
175
|
<p class="psui-font-bold">Small</p>
|
|
176
176
|
psui-text-small
|
|
177
177
|
</td>
|
|
178
|
-
<td class="psui-text-small">
|
|
178
|
+
<td class="psui-text-small psui-cursor-pointer click-to-copy" data-to-copy="psui-text-small">
|
|
179
179
|
This tool allows you to dive into the cost-effectiveness findings relevant to your City or County. We’ve also embedded explanations of terms and concepts throughout the tool, as well as much of the supplementary information contained in the cost-effectiveness studies.
|
|
180
180
|
</td>
|
|
181
181
|
</tr>
|
|
@@ -184,23 +184,27 @@ Keeping typography consistent and sticking to logical hierarchies ensures that e
|
|
|
184
184
|
<p class="psui-font-bold">XSmall</p>
|
|
185
185
|
psui-text-xsmall
|
|
186
186
|
</td>
|
|
187
|
-
<td class="psui-text-xsmall">
|
|
187
|
+
<td class="psui-text-xsmall psui-cursor-pointer click-to-copy" data-to-copy="psui-text-xsmall">
|
|
188
188
|
This tool allows you to dive into the cost-effectiveness findings relevant to your City or County. We’ve also embedded explanations of terms and concepts throughout the tool, as well as much of the supplementary information contained in the cost-effectiveness studies.
|
|
189
189
|
</td>
|
|
190
190
|
</tr>
|
|
191
191
|
<tr>
|
|
192
|
-
<td>
|
|
193
|
-
<
|
|
194
|
-
psui-text-accent
|
|
192
|
+
<td class="psui-flex psui-flex-col">
|
|
193
|
+
<span class="psui-font-bold">Accent</span>
|
|
194
|
+
<span>psui-text-accent</span>
|
|
195
|
+
<span>psui-uppercase</span>
|
|
196
|
+
<span>psui-font-bold</span>
|
|
195
197
|
</td>
|
|
196
|
-
<td class="psui-text-accent">
|
|
198
|
+
<td class="psui-text-accent psui-uppercase psui-font-bold psui-cursor-pointer click-to-copy" data-to-copy="psui-text-accent psui-uppercase psui-font-bold">The lazy fox jumped over the brown dog</td>
|
|
197
199
|
</tr>
|
|
198
200
|
<tr>
|
|
199
|
-
<td>
|
|
200
|
-
<
|
|
201
|
-
psui-text-
|
|
201
|
+
<td class="psui-flex psui-flex-col">
|
|
202
|
+
<span class="psui-font-bold">Accent Small</span>
|
|
203
|
+
<span>psui-text-accentSmall</span>
|
|
204
|
+
<span>psui-uppercase</span>
|
|
205
|
+
<span>psui-font-bold</span>
|
|
202
206
|
</td>
|
|
203
|
-
<td class="psui-text-
|
|
207
|
+
<td class="psui-text-accentSmall psui-uppercase psui-font-bold psui-cursor-pointer click-to-copy" data-to-copy="psui-text-accentSmall psui-uppercase psui-font-bold">The lazy fox jumped over the brown dog</td>
|
|
204
208
|
</tr>
|
|
205
209
|
</table>
|
|
206
210
|
|
|
@@ -20,3 +20,11 @@ export const getParentScrollableEl = (node) => {
|
|
|
20
20
|
return getParentScrollableEl(node.parentNode)
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
|
+
|
|
24
|
+
export const getParentVueComponentByName = (comp, name) => {
|
|
25
|
+
if (comp.$options.name === name) {
|
|
26
|
+
return comp
|
|
27
|
+
} else {
|
|
28
|
+
return getParentVueComponentByName(comp.$parent, name)
|
|
29
|
+
}
|
|
30
|
+
}
|
package/tailwind.config.js
CHANGED
|
@@ -33,6 +33,7 @@ module.exports = {
|
|
|
33
33
|
'yellow-80': '#834C0D',
|
|
34
34
|
|
|
35
35
|
'red-10': '#FCEBEB',
|
|
36
|
+
'red-15': '#EAC5C5',
|
|
36
37
|
'red-20': '#D65C5A',
|
|
37
38
|
'red-70': '#AA3937',
|
|
38
39
|
'red-80': '#832F2E',
|
|
@@ -55,9 +56,9 @@ module.exports = {
|
|
|
55
56
|
xsmall: ['12px', '130%'],
|
|
56
57
|
accent: ['14px', '130%', { letterSpacing: '0.6px' }],
|
|
57
58
|
accentSmall: ['12px', '130%', { letterSpacing: '0.6px' }],
|
|
58
|
-
p: ['16px', '
|
|
59
|
-
h1: ['28px', '
|
|
60
|
-
h2: ['24px', '
|
|
59
|
+
p: ['16px', '130%'],
|
|
60
|
+
h1: ['28px', '130%'],
|
|
61
|
+
h2: ['24px', '130%'],
|
|
61
62
|
h3: ['22px', '120%'],
|
|
62
63
|
h4: ['20px', '120%'],
|
|
63
64
|
h5: ['18px', '120%'],
|
|
@@ -98,6 +99,10 @@ module.exports = {
|
|
|
98
99
|
20: '0.2',
|
|
99
100
|
95: '0.95',
|
|
100
101
|
},
|
|
102
|
+
cursor: {
|
|
103
|
+
'grab': 'grab',
|
|
104
|
+
'grabbing': 'grabbing'
|
|
105
|
+
}
|
|
101
106
|
},
|
|
102
107
|
},
|
|
103
108
|
variants: {
|