@policystudio/policy-studio-ui-vue 1.1.90-beta.10 → 1.1.90-beta.17

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.
Files changed (132) hide show
  1. package/.eslintrc.js +2 -1
  2. package/.github/workflows/deploy-storybook.yml +4 -4
  3. package/.nvmrc +1 -0
  4. package/dist/css/psui_styles_output.css +6986 -0
  5. package/package.json +9 -23
  6. package/src/assets/scss/components/PsDataTable.scss +1 -1
  7. package/src/components/accordion/PsAccordionItem.vue +75 -75
  8. package/src/components/badges-and-tags/PsBadgeWithIcon.vue +31 -34
  9. package/src/components/badges-and-tags/PsCardInfos.vue +40 -41
  10. package/src/components/badges-and-tags/PsChartLegend.vue +47 -51
  11. package/src/components/badges-and-tags/PsClimateZoneBadge.vue +14 -19
  12. package/src/components/badges-and-tags/PsCostEffectBar.vue +24 -56
  13. package/src/components/badges-and-tags/PsDateCardInfo.vue +17 -18
  14. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +3 -2
  15. package/src/components/badges-and-tags/PsMiniTag.vue +39 -41
  16. package/src/components/badges-and-tags/PsProgressBar.vue +72 -68
  17. package/src/components/badges-and-tags/PsTagScope.vue +17 -22
  18. package/src/components/badges-and-tags/PsTestimonialCard.vue +20 -26
  19. package/src/components/buttons/PsButton.vue +61 -62
  20. package/src/components/chips/PsChips.vue +98 -101
  21. package/src/components/controls/PsCheckbox.vue +84 -84
  22. package/src/components/controls/PsCheckboxSimple.vue +95 -95
  23. package/src/components/controls/PsDraggable.vue +53 -55
  24. package/src/components/controls/PsInlineSelector.vue +99 -99
  25. package/src/components/controls/PsRadioButton.vue +59 -58
  26. package/src/components/controls/PsRadioButtonSimple.vue +79 -75
  27. package/src/components/controls/PsSlider.vue +185 -176
  28. package/src/components/controls/PsSwitch.vue +51 -52
  29. package/src/components/controls/PsToggle.vue +53 -50
  30. package/src/components/data-graphics/PsBarChart.vue +19 -21
  31. package/src/components/datatable/PsDataTable.vue +56 -60
  32. package/src/components/datatable/PsDataTableItem.vue +14 -28
  33. package/src/components/forms/PsDropdown.vue +164 -162
  34. package/src/components/forms/PsDropdownList.vue +132 -129
  35. package/src/components/forms/PsInput.vue +155 -153
  36. package/src/components/forms/PsInputSelect.vue +91 -92
  37. package/src/components/forms/PsInputTextArea.vue +71 -71
  38. package/src/components/navigations/PsBreadcrumb.vue +26 -34
  39. package/src/components/notifications/PsDialog.vue +57 -56
  40. package/src/components/notifications/PsSimpleAlert.vue +28 -29
  41. package/src/components/notifications/PsToast.vue +40 -39
  42. package/src/components/table-results/PsTableResults.vue +452 -458
  43. package/src/components/table-results/PsTableResultsBody.vue +66 -67
  44. package/src/components/table-results/PsTableResultsHead.vue +62 -56
  45. package/src/components/table-results/PsTableResultsHeadComparison.vue +62 -56
  46. package/src/components/table-results/PsTableResultsHeadFlexible.vue +63 -56
  47. package/src/components/table-results/PsTableResultsRow.vue +55 -56
  48. package/src/components/tabs/PsTabHeader.vue +106 -100
  49. package/src/components/tooltip/PsDialogTooltip.vue +96 -101
  50. package/src/components/tooltip/PsRichTooltip.vue +42 -45
  51. package/src/components/tooltip/PsTooltip.vue +111 -116
  52. package/src/components/ui/PsDotLoader.vue +1 -5
  53. package/src/components/ui/PsIcon.vue +126 -129
  54. package/src/index.ts +56 -66
  55. package/src/tsconfig.json +12 -0
  56. package/src/{shims-vue.d.ts → types/index.d.ts} +0 -5
  57. package/src/util/{GeneralFunctions.ts → GeneralFunctions.js} +3 -5
  58. package/src/util/directives.ts +24 -0
  59. package/src/util/eventBus.js +10 -0
  60. package/src/util/{imageLoader.ts → imageLoader.js} +9 -8
  61. package/tailwind.config.js +1 -1
  62. package/tsconfig.json +16 -18
  63. package/.storybook/PolicyStudio.ts +0 -11
  64. package/.storybook/eventBus.ts +0 -26
  65. package/.storybook/main.ts +0 -21
  66. package/.storybook/manager.ts +0 -7
  67. package/.storybook/preview.ts +0 -17
  68. package/dist/css/psui_styles.css +0 -4647
  69. package/postcss.config.js +0 -8
  70. package/src/assets/images/multifamily-units.svg +0 -10
  71. package/src/assets/images/policy-studio.svg +0 -15
  72. package/src/components/playground/PsScrollBar.vue +0 -320
  73. package/src/contents/ComparisonData.ts +0 -378
  74. package/src/contents/FlexibleData.ts +0 -502
  75. package/src/contents/ResultsData.ts +0 -531
  76. package/src/stories/Accordion.stories.ts +0 -59
  77. package/src/stories/BadgeWithIcon.stories.ts +0 -31
  78. package/src/stories/BarChart.stories.ts +0 -17
  79. package/src/stories/Breadcrumb.stories.ts +0 -22
  80. package/src/stories/Button.stories.ts +0 -48
  81. package/src/stories/Button.vue +0 -59
  82. package/src/stories/CardInfos.stories.ts +0 -15
  83. package/src/stories/ChartLegend.stories.ts +0 -15
  84. package/src/stories/Checkbox.stories.ts +0 -45
  85. package/src/stories/CheckboxSimple.stories.ts +0 -49
  86. package/src/stories/Chips.stories.ts +0 -33
  87. package/src/stories/ClimateZoneBadge.stories.ts +0 -28
  88. package/src/stories/Colors.mdx +0 -70
  89. package/src/stories/CostEffectBar.stories.ts +0 -26
  90. package/src/stories/Datatable.stories.ts +0 -53
  91. package/src/stories/DateCardInfo.stories.ts +0 -20
  92. package/src/stories/Dialog.stories.ts +0 -131
  93. package/src/stories/Draggable.stories.ts +0 -32
  94. package/src/stories/Dropdown.stories.ts +0 -89
  95. package/src/stories/DropdownList.stories.ts +0 -213
  96. package/src/stories/ElevationSystem.mdx +0 -41
  97. package/src/stories/Header.stories.ts +0 -42
  98. package/src/stories/Header.vue +0 -77
  99. package/src/stories/HighlightRippleDot.stories.ts +0 -16
  100. package/src/stories/Icon.stories.ts +0 -22
  101. package/src/stories/InlineSelector.stories.ts +0 -18
  102. package/src/stories/Input.stories.ts +0 -244
  103. package/src/stories/InputSelect.stories.ts +0 -31
  104. package/src/stories/InputTextArea.stories.ts +0 -25
  105. package/src/stories/Introduction.mdx +0 -211
  106. package/src/stories/MiniTag.stories.ts +0 -59
  107. package/src/stories/Playground.stories.ts +0 -16
  108. package/src/stories/ProgressBar.stories.ts +0 -24
  109. package/src/stories/RadioButton.stories.ts +0 -41
  110. package/src/stories/RadioButtonSimple.stories.ts +0 -43
  111. package/src/stories/SimpleAlert.stories.ts +0 -22
  112. package/src/stories/Slider.stories.ts +0 -79
  113. package/src/stories/Switch.stories.ts +0 -39
  114. package/src/stories/TabHeader.stories.ts +0 -56
  115. package/src/stories/TableResults.stories.ts +0 -728
  116. package/src/stories/TagScope.stories.ts +0 -17
  117. package/src/stories/TestimonialCard.stories.ts +0 -27
  118. package/src/stories/Toast.stories.ts +0 -52
  119. package/src/stories/Toggle.stories.ts +0 -48
  120. package/src/stories/Tooltip.stories.ts +0 -114
  121. package/src/stories/Typography.mdx +0 -212
  122. package/src/stories/assets/code-brackets.svg +0 -1
  123. package/src/stories/assets/colors.svg +0 -1
  124. package/src/stories/assets/comments.svg +0 -1
  125. package/src/stories/assets/direction.svg +0 -1
  126. package/src/stories/assets/flow.svg +0 -1
  127. package/src/stories/assets/plugin.svg +0 -1
  128. package/src/stories/assets/repo.svg +0 -1
  129. package/src/stories/assets/stackalt.svg +0 -1
  130. package/src/stories/button.css +0 -30
  131. package/src/stories/header.css +0 -32
  132. package/webpack.config.js +0 -36
@@ -1,244 +0,0 @@
1
- import PsInput from '../components/forms/PsInput.vue'
2
- export default {
3
- title: 'Text fields & Forms/Input',
4
- component: PsInput,
5
- argTypes: {
6
- disabled: { control: 'boolean' },
7
- required: { control: 'boolean' },
8
- },
9
- }
10
-
11
- // @ts-ignore
12
- const TemplateInputText = (args, { argTypes }) => ({
13
- props: Object.keys(argTypes),
14
- components: { PsInput },
15
- data: () => {
16
- return {
17
- validator: {
18
- hasError: true,
19
- label: 'Error message!'
20
- }
21
- }
22
- },
23
- template: `
24
- <div class="psui-p-8 psui-bg-gray-10 psui-grid psui-grid-cols-3 psui-gap-6">
25
-
26
- <div class="psui-col-span-3 psui-mt-8">
27
- <h1 class="psui-font-bold psui-border-b psui-border-gray-30">PSInput Layout Default</h1>
28
- </div>
29
-
30
- <PsInput v-bind="{...$props, label: 'Resting with hint', placeholder: '', value: '' }" />
31
- <PsInput label="Resting without hint" />
32
- <PsInput label="Resting with Placeholder" placeholder="This is a placeholder" />
33
-
34
- <PsInput v-bind="{...$props, label: 'Focus'}" />
35
- <PsInput label="Typing" placeholder="Type to see the effect..." />
36
- <PsInput v-bind="{...$props, label: 'Active', active: true }" />
37
-
38
- <PsInput v-bind="{...$props, label: 'Error', hasError: true }" />
39
- <PsInput v-bind="{...$props, label: 'Error with custom message', hasError: 'Format invalid' }" />
40
- <PsInput v-bind="{...$props, label: 'Prepend / Append ' }" >
41
- <template v-slot:append>
42
- Append
43
- </template>
44
- <template v-slot:prepend>
45
- Prepend
46
- </template>
47
- </PsInput>
48
-
49
- <PsInput label="Disabled" :disabled="true" value="100,000" />
50
- <PsInput v-bind="{...$props, label: 'Disabled without value', disabled: true, value: '', hint: false }" />
51
- <PsInput v-bind="{...$props, label: 'Active/Disabled', disabled: true, active: true }" />
52
-
53
- <div class="psui-col-span-3 psui-mt-8">
54
- <h1 class="psui-font-bold psui-border-b psui-border-gray-30">PSInput Layout Mini</h1>
55
- </div>
56
-
57
- <PsInput layout="mini" label="Resting with hint" hint="This is a hint" value="1,653" />
58
- <PsInput layout="mini" label="Resting without hint" />
59
- <PsInput layout="mini" label="Resting with Placeholder" placeholder="This is a placeholder" />
60
-
61
- <PsInput layout="mini" v-bind="{...$props, label: 'Focus'}" />
62
- <PsInput layout="mini" label="Typing" placeholder="Type to see the effect..." />
63
- <PsInput layout="mini" v-bind="{...$props, label: 'Active', active: true }" />
64
-
65
- <PsInput layout="mini" v-bind="{...$props, label: 'Error', hasError: true }" />
66
- <PsInput layout="mini" v-bind="{...$props, label: 'Error with custom message', hasError: 'Format invalid' }" />
67
- <PsInput layout="mini" v-bind="{...$props, label: 'Prepend / Append ' }" >
68
- <template v-slot:append>
69
- Append
70
- </template>
71
- <template v-slot:prepend>
72
- Prepend
73
- </template>
74
- </PsInput>
75
-
76
- <PsInput layout="mini" label="Disabled" :disabled="true" value="100,000" />
77
- <PsInput layout="mini" v-bind="{...$props, label: 'Disabled without value', disabled: true, value: '', hint: false }" />
78
- <PsInput layout="mini" v-bind="{...$props, label: 'Active/Disabled', disabled: true, active: true }" />
79
-
80
- </div>
81
- `
82
- })
83
- // @ts-ignore
84
- const TemplateInputPassword = (args, { argTypes }) => ({
85
- props: Object.keys(argTypes),
86
- components: { PsInput },
87
- data: () => {
88
- return {
89
- validator: {
90
- hasError: true,
91
- label: 'Error message!'
92
- }
93
- }
94
- },
95
- template: `
96
- <div class="psui-p-8 psui-bg-gray-10 psui-grid psui-grid-cols-3 psui-gap-6">
97
-
98
- <div class="psui-col-span-3 psui-mt-8">
99
- <h1 class="psui-font-bold psui-border-b psui-border-gray-30">PSInput Password Layout Default</h1>
100
- </div>
101
-
102
- <PsInput v-bind="{...$props, label: 'Resting with hint', placeholder: '', value: '', hint: 'Between 8 and 16 characters' }" >
103
- <template v-slot:append>
104
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
105
- visibility_off
106
- </span>
107
- </template>
108
- </PsInput>
109
-
110
- <PsInput label="Resting without hint" hint="Between 8 and 16 characters">
111
- <template v-slot:append>
112
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
113
- visibility_off
114
- </span>
115
- </template>
116
- </PsInput>
117
-
118
- <PsInput label="Resting with Placeholder" placeholder="This is a placeholder" hint="Between 8 and 16 characters">
119
- <template v-slot:append>
120
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
121
- visibility_off
122
- </span>
123
- </template>
124
- </PsInput>
125
-
126
- <PsInput v-bind="{...$props, label: 'Focus'}" hint="Between 8 and 16 characters">
127
- <template v-slot:append>
128
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
129
- visibility_off
130
- </span>
131
- </template>
132
- </PsInput>
133
-
134
- <PsInput v-bind="{...$props, label: 'Typing', placeholder: 'Type to see the effect...', value: '' }" hint="Between 8 and 16 characters" >
135
- <template v-slot:append>
136
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
137
- visibility_off
138
- </span>
139
- </template>
140
- </PsInput>
141
-
142
- <PsInput v-bind="{label: 'Active', active: true }" value="Password123" hint="Between 8 and 16 characters">
143
- <template v-slot:append>
144
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
145
- visibility
146
- </span>
147
- </template>
148
- </PsInput>
149
-
150
- <PsInput v-bind="{...$props, label: 'Error', hasError: true }" hint="Between 8 and 16 characters" />
151
- <PsInput v-bind="{...$props, label: 'Error with custom message', hasError: 'Format invalid' }" />
152
- <PsInput v-bind="{...$props, label: 'Prepend / Append ' }" hint="Between 8 and 16 characters">
153
- <template v-slot:append>
154
- Append
155
- </template>
156
- <template v-slot:prepend>
157
- Prepend
158
- </template>
159
- </PsInput>
160
-
161
- <PsInput label="Disabled" :disabled="true" value="100,000" hint="Between 8 and 16 characters">
162
- <template v-slot:append>
163
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
164
- visibility
165
- </span>
166
- </template>
167
- </PsInput>
168
-
169
- <PsInput v-bind="{...$props, label: 'Disabled without value', disabled: true, value: '', hint: false }">
170
- <template v-slot:append>
171
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
172
- visibility_off
173
- </span>
174
- </template>
175
- </PsInput>
176
-
177
- <PsInput v-bind="{...$props, label: 'Active/Disabled', disabled: true, active: true }" hint="Between 8 and 16 characters">
178
- <template v-slot:append>
179
- <span class="material-icons-round psui-text-gray-50 psui-mr-2">
180
- visibility_off
181
- </span>
182
- </template>
183
- </PsInput>
184
- </div>
185
- `
186
- })
187
- // @ts-ignore
188
- const TemplateSlots = (args, { argTypes }) => ({
189
- props: Object.keys(argTypes),
190
- components: { PsInput },
191
- template: `
192
- <div class="psui-p-8 psui-bg-gray-10">
193
- <PsInput v-bind="$props" class="psui-mb-4">
194
- <template v-slot:append>
195
- ft²
196
- </template>
197
- </PsInput>
198
- <PsInput v-bind="$props" class="psui-mb-4">
199
- <template v-slot:prepend>
200
- ft²
201
- </template>
202
- </PsInput>
203
- <PsInput v-bind="$props" class="psui-mb-4">
204
- <template v-slot:prepend>
205
- ft²
206
- </template>
207
- <template v-slot:append>
208
- ft²
209
- </template>
210
- </PsInput>
211
- </div>
212
- `
213
- })
214
-
215
- export const InputText = TemplateInputText.bind({})
216
- // @ts-ignore
217
- InputText.args = {
218
- label: 'Input Text',
219
- placeholder: 'Placeholder',
220
- hint: 'Optional Assistive text',
221
- disabled: false,
222
- required: false,
223
- value: 10,
224
- }
225
-
226
- export const InputPassword = TemplateInputPassword.bind({})
227
- // @ts-ignore
228
- InputPassword.args = {
229
- type: 'password',
230
- label: 'Password',
231
- hint: 'Optional Assistive text',
232
- disabled: false,
233
- required: false,
234
- }
235
-
236
- export const InputSlots = TemplateSlots.bind({})
237
- // @ts-ignore
238
- InputSlots.args = {
239
- label: 'Label',
240
- placeholder: 'Placeholder',
241
- hint: 'Optional Assistive text',
242
- disabled: false,
243
- required: false,
244
- }
@@ -1,31 +0,0 @@
1
- import PsInputSelect from '../components/forms/PsInputSelect.vue'
2
-
3
- export default {
4
- title: 'Text fields & Forms/InputSelect',
5
- component: PsInputSelect
6
- }
7
- // @ts-ignore
8
- const TemplateDefault = (args, {argTypes})=> ({
9
- props: Object.keys(argTypes),
10
- components: {PsInputSelect},
11
- template: `
12
- <div style='display:flex; gap: 30px;'>
13
- <div style='width:300px; display:flex; flex-direction: column; gap:20px;'>
14
- <span>Default Select</span>
15
- <PsInputSelect v-bind="$props" label="Gender" keyLabel="title" keyValue="value" optionalLabel="Optional helper/feedback text"/>
16
- <PsInputSelect v-bind="$props" disabled label="Gender" keyLabel="title" keyValue="value" optionalLabel="Optional helper/feedback text"/>
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>
24
- `
25
- })
26
-
27
- export const Default = TemplateDefault.bind({})
28
- // @ts-ignore
29
- Default.args = {
30
- items: [{title:'Text 1', value:'Value 1'}, {title:'Text 2', value:'Value 2'}]
31
- }
@@ -1,25 +0,0 @@
1
- import PsInputTextArea from '../components/forms/PsInputTextArea.vue'
2
-
3
- export default {
4
- title: 'Text fields & Forms/Input Textarea',
5
- component: PsInputTextArea,
6
- }
7
-
8
- const Template = (args:any, {argTypes}:{argTypes:any}) => ({
9
- props: Object.keys(argTypes),
10
- components: {PsInputTextArea},
11
- template: `
12
- <div style='background-color:#F3F6F9; width:400px; height: 100%; padding: 20px 20px; display: flex: display; flex-direction: column;'>
13
- <div style='display: flex; align-items:center; gap:30px;'>
14
- <h1>Default</h1>
15
- <PsInputTextArea v-bind='$props' placeholder='Optional placeholder' label='Drop us a line' rows="${10}" optionalLabel="Optional helper/feedback text"></PsInputTextArea>
16
- </div>
17
- <div style='display: flex; align-items:center; gap:30px; margin-top:40px;'>
18
- <h1>Disable</h1>
19
- <PsInputTextArea v-bind='$props' placeholder='Optional placeholder' label='Drop us a line' rows="${10}" disabled ></PsInputTextArea>
20
- </div>
21
- </div>
22
- `
23
- })
24
-
25
- export const Default = Template.bind({})
@@ -1,211 +0,0 @@
1
- import { Meta } from "@storybook/blocks";
2
- import Code from './assets/code-brackets.svg';
3
- import Colors from './assets/colors.svg';
4
- import Comments from './assets/comments.svg';
5
- import Direction from './assets/direction.svg';
6
- import Flow from './assets/flow.svg';
7
- import Plugin from './assets/plugin.svg';
8
- import Repo from './assets/repo.svg';
9
- import StackAlt from './assets/stackalt.svg';
10
-
11
- <Meta title="Policy Studio" />
12
-
13
- #Welcome to UI Explorer
14
-
15
- Storybook helps you build UI components in isolation from your app's business logic, data, and context.
16
- That makes it easy to develop hard-to-reach states. Save these UI states as **stories** to revisit during development, testing, or QA.
17
-
18
- Browse example stories now by navigating to them in the sidebar.
19
- View their code in the `src/stories` directory to learn how they work.
20
- We recommend building UIs with a [**component-driven**](https://componentdriven.org) process starting with atomic components and ending with pages.
21
-
22
- <div className="subheading">Configure</div>
23
-
24
- <div className="link-list">
25
- <a
26
- className="link-item"
27
- href="https://storybook.js.org/docs/react/addons/addon-types"
28
- target="_blank"
29
- >
30
- <img src={Plugin} alt="plugin" />
31
- <span>
32
- <strong>Presets for popular tools</strong>
33
- Easy setup for TypeScript, SCSS and more.
34
- </span>
35
- </a>
36
- <a
37
- className="link-item"
38
- href="https://storybook.js.org/docs/react/configure/webpack"
39
- target="_blank"
40
- >
41
- <img src={StackAlt} alt="Build" />
42
- <span>
43
- <strong>Build configuration</strong>
44
- How to customize webpack and Babel
45
- </span>
46
- </a>
47
- <a
48
- className="link-item"
49
- href="https://storybook.js.org/docs/react/configure/styling-and-css"
50
- target="_blank"
51
- >
52
- <img src={Colors} alt="colors" />
53
- <span>
54
- <strong>Styling</strong>
55
- How to load and configure CSS libraries
56
- </span>
57
- </a>
58
- <a
59
- className="link-item"
60
- href="https://storybook.js.org/docs/react/get-started/setup#configure-storybook-for-your-stack"
61
- target="_blank"
62
- >
63
- <img src={Flow} alt="flow" />
64
- <span>
65
- <strong>Data</strong>
66
- Providers and mocking for data libraries
67
- </span>
68
- </a>
69
- </div>
70
-
71
- <div className="subheading">Learn</div>
72
-
73
- <div className="link-list">
74
- <a className="link-item" href="https://storybook.js.org/docs" target="_blank">
75
- <img src={Repo} alt="repo" />
76
- <span>
77
- <strong>Storybook documentation</strong>
78
- Configure, customize, and extend
79
- </span>
80
- </a>
81
- <a className="link-item" href="https://storybook.js.org/tutorials/" target="_blank">
82
- <img src={Direction} alt="direction" />
83
- <span>
84
- <strong>In-depth guides</strong>
85
- Best practices from leading teams
86
- </span>
87
- </a>
88
- <a className="link-item" href="https://github.com/storybookjs/storybook" target="_blank">
89
- <img src={Code} alt="code" />
90
- <span>
91
- <strong>GitHub project</strong>
92
- View the source and add issues
93
- </span>
94
- </a>
95
- <a className="link-item" href="https://discord.gg/storybook" target="_blank">
96
- <img src={Comments} alt="comments" />
97
- <span>
98
- <strong>Discord chat</strong>
99
- Chat with maintainers and the community
100
- </span>
101
- </a>
102
- </div>
103
-
104
- <div className="tip-wrapper">
105
- <span className="tip">Tip</span>
106
- <code>src/stories/Introduction.stories.mdx</code>
107
- </div>
108
-
109
- <style>
110
- {`
111
- .subheading {
112
- --mediumdark: '#999999';
113
- font-weight: 900;
114
- font-size: 13px;
115
- color: #999;
116
- letter-spacing: 6px;
117
- line-height: 24px;
118
- text-transform: uppercase;
119
- margin-bottom: 12px;
120
- margin-top: 40px;
121
- }
122
-
123
- .link-list {
124
- display: grid;
125
- grid-template-columns: 1fr;
126
- grid-template-rows: 1fr 1fr;
127
- row-gap: 10px;
128
- }
129
-
130
- @media (min-width: 620px) {
131
- .link-list {
132
- row-gap: 20px;
133
- column-gap: 20px;
134
- grid-template-columns: 1fr 1fr;
135
- }
136
- }
137
-
138
- @media all and (-ms-high-contrast:none) {
139
- .link-list {
140
- display: -ms-grid;
141
- -ms-grid-columns: 1fr 1fr;
142
- -ms-grid-rows: 1fr 1fr;
143
- }
144
- }
145
-
146
- .link-item {
147
- display: block;
148
- padding: 20px 30px 20px 15px;
149
- border: 1px solid #00000010;
150
- border-radius: 5px;
151
- transition: background 150ms ease-out, border 150ms ease-out, transform 150ms ease-out;
152
- color: #333333;
153
- display: flex;
154
- align-items: flex-start;
155
- }
156
-
157
- .link-item:hover {
158
- border-color: #1EA7FD50;
159
- transform: translate3d(0, -3px, 0);
160
- box-shadow: rgba(0, 0, 0, 0.08) 0 3px 10px 0;
161
- }
162
-
163
- .link-item:active {
164
- border-color: #1EA7FD;
165
- transform: translate3d(0, 0, 0);
166
- }
167
-
168
- .link-item strong {
169
- font-weight: 700;
170
- display: block;
171
- margin-bottom: 2px;
172
- }
173
-
174
- .link-item img {
175
- height: 40px;
176
- width: 40px;
177
- margin-right: 15px;
178
- flex: none;
179
- }
180
-
181
- .link-item span {
182
- font-size: 14px;
183
- line-height: 20px;
184
- }
185
-
186
- .tip {
187
- display: inline-block;
188
- border-radius: 1em;
189
- font-size: 11px;
190
- line-height: 12px;
191
- font-weight: 700;
192
- background: #E7FDD8;
193
- color: #66BF3C;
194
- padding: 4px 12px;
195
- margin-right: 10px;
196
- vertical-align: top;
197
- }
198
-
199
- .tip-wrapper {
200
- font-size: 13px;
201
- line-height: 20px;
202
- margin-top: 40px;
203
- margin-bottom: 40px;
204
- }
205
-
206
- .tip-wrapper code {
207
- font-size: 12px;
208
- display: inline-block;
209
- }
210
- `}
211
- </style>
@@ -1,59 +0,0 @@
1
-
2
- import PsMiniTag, {
3
- // @ts-ignore
4
- typeOptions,
5
- } from '../components/badges-and-tags/PsMiniTag.vue'
6
-
7
- export default {
8
- title: 'Badges & Tags/Tags/Mini Tag',
9
- component: PsMiniTag,
10
- argTypes: {
11
- type: {
12
- control: {
13
- type: 'select',
14
- options: typeOptions,
15
- },
16
- },
17
- },
18
- }
19
- // @ts-ignore
20
- const Template = (args, { argTypes }) => ({
21
- props: Object.keys(argTypes),
22
- components: { PsMiniTag },
23
- template: '<PsMiniTag v-bind="$props" />',
24
- })
25
-
26
- export const Info = Template.bind({})
27
- // @ts-ignore
28
- Info.args = {
29
- layout: 'info',
30
- message: 'This is an info alert',
31
- }
32
-
33
- export const Success = Template.bind({})
34
- // @ts-ignore
35
- Success.args = {
36
- layout: 'success',
37
- message: 'This is a success alert',
38
- }
39
-
40
- export const Warning = Template.bind({})
41
- // @ts-ignore
42
- Warning.args = {
43
- layout: 'warning',
44
- message: 'This is a warning alert',
45
- }
46
-
47
- export const Error = Template.bind({})
48
- // @ts-ignore
49
- Error.args = {
50
- layout: 'error',
51
- message: 'This is an error alert',
52
- }
53
-
54
- export const Default = Template.bind({})
55
- // @ts-ignore
56
- Default.args = {
57
- layout: 'default',
58
- message: 'This is a default color',
59
- }
@@ -1,16 +0,0 @@
1
- import PsScrollBar from '../components/playground/PsScrollBar.vue'
2
-
3
- export default {
4
- title: 'Components/Playground',
5
- component: PsScrollBar
6
- }
7
- // @ts-ignore
8
- const Template = (args, {argTypes}) => ({
9
- props: Object.keys(argTypes),
10
- components: { PsScrollBar},
11
- template: `
12
- <PsScrollBar v-bind='$props' scrollWidth='30'></PsScrollbar>
13
- `
14
- })
15
-
16
- export const ScrollBar = Template.bind({})
@@ -1,24 +0,0 @@
1
- import PsProgressBar from '../components/badges-and-tags/PsProgressBar.vue'
2
-
3
- export default {
4
- title: 'Badges & Tags/Badges/ProgressBar',
5
- component: PsProgressBar,
6
- argTypes: {
7
- value: {
8
- control: { type: 'number', min: 0, max: 100 },
9
- },
10
- breakEven: {
11
- control: { type: 'number', min: 0, max: 100 },
12
- },
13
- },
14
- }
15
- // @ts-ignore
16
- const TemplateDefault = (args, { argTypes }) => ({
17
- props: Object.keys(argTypes),
18
- components: { PsProgressBar },
19
- template: '<PsProgressBar v-bind="$props" />',
20
- })
21
-
22
- export const Default = TemplateDefault.bind({})
23
- // @ts-ignore
24
- Default.args = {}
@@ -1,41 +0,0 @@
1
- import PsRadioButton from '../components/controls/PsRadioButton.vue'
2
-
3
- export default {
4
- title: 'Controls & Selectors/Radio Button',
5
- component: PsRadioButton,
6
- }
7
-
8
- // @ts-ignore
9
- const DefaultTemplate = (args,{ argTypes}) => ({
10
- props: Object.keys(argTypes),
11
- components: { PsRadioButton},
12
- template: `
13
- <div style='display: flex; gap: 20px;'>
14
- <div style='display: flex; flex-direction: column; gap:10px;'>
15
- <span>Resting</span>
16
- <div style='display: flex; flex-direction:column; gap:5px;'>
17
- <PsRadioButton v-bind='$props' label='Label 1' size='big'/>
18
- <PsRadioButton v-bind='$props' label='Label 2' size='small'/>
19
- </div>
20
- </div>
21
- <div style='display: flex; flex-direction: column; gap:10px;'>
22
- <span>Active</span>
23
- <div style='display: flex; flex-direction:column; gap:5px;'>
24
- <PsRadioButton v-bind='$props' label='Label 3' size='big' checked/>
25
- <PsRadioButton v-bind='$props' label='Label 4' size='small' checked/>
26
- </div>
27
- </div>
28
- <div style='display: flex; flex-direction: column; gap:10px;'>
29
- <span>Disable</span>
30
- <div style='display: flex; flex-direction:column; gap:5px;'>
31
- <PsRadioButton v-bind='$props' label='Label 5' size='big' disabled/>
32
- <PsRadioButton v-bind='$props' label='Label 6' size='small' disabled/>
33
- </div>
34
- </div>
35
- </div>
36
- `
37
- })
38
-
39
-
40
- export const Default = DefaultTemplate.bind({})
41
-