fds-vue-core 2.1.2 → 2.1.4
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/dist/global-components.d.ts +67 -32
- package/package.json +2 -3
- package/src/.DS_Store +0 -0
- package/src/App.vue +0 -133
- package/src/apply.css +0 -60
- package/src/assets/icons.ts +0 -517
- package/src/components/Blocks/FdsBlockAlert/FdsBlockAlert.stories.ts +0 -94
- package/src/components/Blocks/FdsBlockAlert/FdsBlockAlert.vue +0 -112
- package/src/components/Blocks/FdsBlockAlert/types.ts +0 -12
- package/src/components/Blocks/FdsBlockContent/FdsBlockContent.stories.ts +0 -110
- package/src/components/Blocks/FdsBlockContent/FdsBlockContent.vue +0 -66
- package/src/components/Blocks/FdsBlockContent/types.ts +0 -6
- package/src/components/Blocks/FdsBlockExpander/FdsBlockExpander.stories.ts +0 -123
- package/src/components/Blocks/FdsBlockExpander/FdsBlockExpander.vue +0 -87
- package/src/components/Blocks/FdsBlockExpander/types.ts +0 -8
- package/src/components/Blocks/FdsBlockInfo/FdsBlockInfo.stories.ts +0 -110
- package/src/components/Blocks/FdsBlockInfo/FdsBlockInfo.vue +0 -75
- package/src/components/Blocks/FdsBlockInfo/types.ts +0 -9
- package/src/components/Blocks/FdsBlockLink/FdsBlockLink.css +0 -9
- package/src/components/Blocks/FdsBlockLink/FdsBlockLink.stories.ts +0 -179
- package/src/components/Blocks/FdsBlockLink/FdsBlockLink.vue +0 -149
- package/src/components/Blocks/FdsBlockLink/types.ts +0 -14
- package/src/components/Buttons/ButtonBaseProps.ts +0 -18
- package/src/components/Buttons/FdsButtonCopy/FdsButtonCopy.stories.ts +0 -53
- package/src/components/Buttons/FdsButtonCopy/FdsButtonCopy.vue +0 -87
- package/src/components/Buttons/FdsButtonCopy/types.ts +0 -8
- package/src/components/Buttons/FdsButtonDownload/FdsButtonDownload.stories.ts +0 -111
- package/src/components/Buttons/FdsButtonDownload/FdsButtonDownload.vue +0 -187
- package/src/components/Buttons/FdsButtonIcon/FdsButtonIcon.stories.ts +0 -55
- package/src/components/Buttons/FdsButtonIcon/FdsButtonIcon.vue +0 -57
- package/src/components/Buttons/FdsButtonIcon/types.ts +0 -12
- package/src/components/Buttons/FdsButtonMinor/FdsButtonMinor.stories.ts +0 -68
- package/src/components/Buttons/FdsButtonMinor/FdsButtonMinor.vue +0 -126
- package/src/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.stories.ts +0 -86
- package/src/components/Buttons/FdsButtonPrimary/FdsButtonPrimary.vue +0 -107
- package/src/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.stories.ts +0 -68
- package/src/components/Buttons/FdsButtonSecondary/FdsButtonSecondary.vue +0 -107
- package/src/components/FdsIcon/FdsIcon.stories.ts +0 -69
- package/src/components/FdsIcon/FdsIcon.vue +0 -34
- package/src/components/FdsIcon/types.ts +0 -9
- package/src/components/FdsModal/FdsModal.stories.ts +0 -241
- package/src/components/FdsModal/FdsModal.vue +0 -261
- package/src/components/FdsModal/types.ts +0 -12
- package/src/components/FdsPagination/FdsPagination.stories.ts +0 -109
- package/src/components/FdsPagination/FdsPagination.vue +0 -193
- package/src/components/FdsPagination/types.ts +0 -6
- package/src/components/FdsSearchSelect/FdsSearchSelect.stories.ts +0 -428
- package/src/components/FdsSearchSelect/FdsSearchSelect.vue +0 -610
- package/src/components/FdsSearchSelect/types.ts +0 -25
- package/src/components/FdsSpinner/FdsSpinner.stories.ts +0 -31
- package/src/components/FdsSpinner/FdsSpinner.vue +0 -90
- package/src/components/FdsSpinner/types.ts +0 -6
- package/src/components/FdsSticker/FdsSticker.stories.ts +0 -148
- package/src/components/FdsSticker/FdsSticker.vue +0 -44
- package/src/components/FdsSticker/types.ts +0 -4
- package/src/components/FdsTreeView/FdsTreeView.stories.ts +0 -136
- package/src/components/FdsTreeView/FdsTreeView.vue +0 -162
- package/src/components/FdsTreeView/TreeNode.vue +0 -383
- package/src/components/FdsTreeView/types.ts +0 -141
- package/src/components/FdsTreeView/useTreeState.ts +0 -607
- package/src/components/FdsTreeView/utils.ts +0 -65
- package/src/components/FdsTruncatedText/FdsTruncatedText.stories.ts +0 -78
- package/src/components/FdsTruncatedText/FdsTruncatedText.vue +0 -85
- package/src/components/FdsTruncatedText/types.ts +0 -6
- package/src/components/Form/FdsCheckbox/FdsCheckbox.stories.ts +0 -275
- package/src/components/Form/FdsCheckbox/FdsCheckbox.vue +0 -155
- package/src/components/Form/FdsCheckbox/types.ts +0 -10
- package/src/components/Form/FdsInput/FdsInput.stories.ts +0 -319
- package/src/components/Form/FdsInput/FdsInput.vue +0 -233
- package/src/components/Form/FdsInput/types.ts +0 -25
- package/src/components/Form/FdsRadio/FdsRadio.stories.ts +0 -63
- package/src/components/Form/FdsRadio/FdsRadio.vue +0 -88
- package/src/components/Form/FdsRadio/types.ts +0 -12
- package/src/components/Form/FdsSelect/FdsSelect.stories.ts +0 -78
- package/src/components/Form/FdsSelect/FdsSelect.vue +0 -136
- package/src/components/Form/FdsSelect/types.ts +0 -13
- package/src/components/Form/FdsTextarea/FdsTextarea.stories.ts +0 -52
- package/src/components/Form/FdsTextarea/FdsTextarea.vue +0 -110
- package/src/components/Form/FdsTextarea/types.ts +0 -12
- package/src/components/Table/FdsTable/FdsTable.stories.ts +0 -221
- package/src/components/Table/FdsTable/FdsTable.vue +0 -25
- package/src/components/Table/FdsTable/types.ts +0 -4
- package/src/components/Table/FdsTableHead/FdsTableHead.stories.ts +0 -151
- package/src/components/Table/FdsTableHead/FdsTableHead.vue +0 -54
- package/src/components/Table/FdsTableHead/types.ts +0 -5
- package/src/components/Tabs/FdsTabs/FdsTabs.stories.ts +0 -247
- package/src/components/Tabs/FdsTabs/FdsTabs.vue +0 -27
- package/src/components/Tabs/FdsTabs/types.ts +0 -4
- package/src/components/Tabs/FdsTabsItem/FdsTabsItem.vue +0 -125
- package/src/components/Tabs/FdsTabsItem/types.ts +0 -16
- package/src/components/Typography/FdsHeading/FdsHeading.stories.ts +0 -93
- package/src/components/Typography/FdsHeading/FdsHeading.vue +0 -51
- package/src/components/Typography/FdsHeading/types.ts +0 -5
- package/src/components/Typography/FdsListHeading/FdsListHeading.stories.ts +0 -58
- package/src/components/Typography/FdsListHeading/FdsListHeading.vue +0 -62
- package/src/components/Typography/FdsListHeading/types.ts +0 -8
- package/src/components/Typography/FdsSeparator/FdsSeparator.stories.ts +0 -31
- package/src/components/Typography/FdsSeparator/FdsSeparator.vue +0 -5
- package/src/components/Typography/FdsText/FdsText.stories.ts +0 -66
- package/src/components/Typography/FdsText/FdsText.vue +0 -28
- package/src/components/Typography/FdsText/types.ts +0 -3
- package/src/composables/useBoldQuery.ts +0 -29
- package/src/composables/useElementFinalSize.ts +0 -24
- package/src/composables/useHasSlots.ts +0 -17
- package/src/composables/useIsPid.ts +0 -48
- package/src/docs/Start/Start.mdx +0 -12
- package/src/docs/Usage.md +0 -117
- package/src/fonts.css +0 -28
- package/src/global-components.ts +0 -38
- package/src/index.ts +0 -180
- package/src/main.ts +0 -7
- package/src/slot-styles.css +0 -93
- package/src/style.css +0 -89
- package/src/tokens.css +0 -252
|
@@ -1,37 +1,72 @@
|
|
|
1
|
+
import type { DefineComponent } from 'vue'
|
|
2
|
+
import type {
|
|
3
|
+
FdsTreeViewProps,
|
|
4
|
+
FdsButtonPrimaryProps,
|
|
5
|
+
FdsButtonSecondaryProps,
|
|
6
|
+
FdsButtonMinorProps,
|
|
7
|
+
FdsIconButtonProps,
|
|
8
|
+
FdsCopyButtonProps,
|
|
9
|
+
FdsButtonDownloadProps,
|
|
10
|
+
FdsIconProps,
|
|
11
|
+
FdsSpinnerProps,
|
|
12
|
+
FdsRadioProps,
|
|
13
|
+
FdsInputProps,
|
|
14
|
+
FdsCheckboxProps,
|
|
15
|
+
FdsTextareaProps,
|
|
16
|
+
FdsSelectProps,
|
|
17
|
+
FdsTableProps,
|
|
18
|
+
FdsTableHeadProps,
|
|
19
|
+
FdsContentBlockProps,
|
|
20
|
+
FdsBlockInfoProps,
|
|
21
|
+
FdsAlertBlockProps,
|
|
22
|
+
FdsExpanderBlockProps,
|
|
23
|
+
FdsInteractionBlockProps,
|
|
24
|
+
FdsStickerProps,
|
|
25
|
+
FdsTabsProps,
|
|
26
|
+
FdsTabsItemProps,
|
|
27
|
+
FdsModalProps,
|
|
28
|
+
FdsPaginationProps,
|
|
29
|
+
FdsSearchSelectProps,
|
|
30
|
+
FdsTruncatedTextProps,
|
|
31
|
+
FdsHeadingProps,
|
|
32
|
+
FdsTextProps,
|
|
33
|
+
FdsListHeadingProps,
|
|
34
|
+
} from './index'
|
|
35
|
+
|
|
1
36
|
declare module '@vue/runtime-core' {
|
|
2
37
|
export interface GlobalComponents {
|
|
3
|
-
FdsTreeView:
|
|
4
|
-
FdsButtonPrimary:
|
|
5
|
-
FdsButtonSecondary:
|
|
6
|
-
FdsButtonMinor:
|
|
7
|
-
FdsButtonIcon:
|
|
8
|
-
FdsButtonCopy:
|
|
9
|
-
FdsButtonDownload:
|
|
10
|
-
FdsIcon:
|
|
11
|
-
FdsSpinner:
|
|
12
|
-
FdsRadio:
|
|
13
|
-
FdsInput:
|
|
14
|
-
FdsCheckbox:
|
|
15
|
-
FdsTextarea:
|
|
16
|
-
FdsSelect:
|
|
17
|
-
FdsTable:
|
|
18
|
-
FdsTableHead:
|
|
19
|
-
FdsBlockContent:
|
|
20
|
-
FdsBlockInfo:
|
|
21
|
-
FdsBlockAlert:
|
|
22
|
-
FdsBlockExpander:
|
|
23
|
-
FdsBlockLink:
|
|
24
|
-
FdsSticker:
|
|
25
|
-
FdsTabs:
|
|
26
|
-
FdsTabsItem:
|
|
27
|
-
FdsModal:
|
|
28
|
-
FdsPagination:
|
|
29
|
-
FdsSearchSelect:
|
|
30
|
-
FdsTruncatedText:
|
|
31
|
-
FdsHeading:
|
|
32
|
-
FdsSeparator:
|
|
33
|
-
FdsText:
|
|
34
|
-
FdsListHeading:
|
|
38
|
+
FdsTreeView: DefineComponent<FdsTreeViewProps>
|
|
39
|
+
FdsButtonPrimary: DefineComponent<FdsButtonPrimaryProps>
|
|
40
|
+
FdsButtonSecondary: DefineComponent<FdsButtonSecondaryProps>
|
|
41
|
+
FdsButtonMinor: DefineComponent<FdsButtonMinorProps>
|
|
42
|
+
FdsButtonIcon: DefineComponent<FdsIconButtonProps>
|
|
43
|
+
FdsButtonCopy: DefineComponent<FdsCopyButtonProps>
|
|
44
|
+
FdsButtonDownload: DefineComponent<FdsButtonDownloadProps>
|
|
45
|
+
FdsIcon: DefineComponent<FdsIconProps>
|
|
46
|
+
FdsSpinner: DefineComponent<FdsSpinnerProps>
|
|
47
|
+
FdsRadio: DefineComponent<FdsRadioProps>
|
|
48
|
+
FdsInput: DefineComponent<FdsInputProps>
|
|
49
|
+
FdsCheckbox: DefineComponent<FdsCheckboxProps>
|
|
50
|
+
FdsTextarea: DefineComponent<FdsTextareaProps>
|
|
51
|
+
FdsSelect: DefineComponent<FdsSelectProps>
|
|
52
|
+
FdsTable: DefineComponent<FdsTableProps>
|
|
53
|
+
FdsTableHead: DefineComponent<FdsTableHeadProps>
|
|
54
|
+
FdsBlockContent: DefineComponent<FdsContentBlockProps>
|
|
55
|
+
FdsBlockInfo: DefineComponent<FdsBlockInfoProps>
|
|
56
|
+
FdsBlockAlert: DefineComponent<FdsAlertBlockProps>
|
|
57
|
+
FdsBlockExpander: DefineComponent<FdsExpanderBlockProps>
|
|
58
|
+
FdsBlockLink: DefineComponent<FdsInteractionBlockProps>
|
|
59
|
+
FdsSticker: DefineComponent<FdsStickerProps>
|
|
60
|
+
FdsTabs: DefineComponent<FdsTabsProps>
|
|
61
|
+
FdsTabsItem: DefineComponent<FdsTabsItemProps>
|
|
62
|
+
FdsModal: DefineComponent<FdsModalProps>
|
|
63
|
+
FdsPagination: DefineComponent<FdsPaginationProps>
|
|
64
|
+
FdsSearchSelect: DefineComponent<FdsSearchSelectProps>
|
|
65
|
+
FdsTruncatedText: DefineComponent<FdsTruncatedTextProps>
|
|
66
|
+
FdsHeading: DefineComponent<FdsHeadingProps>
|
|
67
|
+
FdsSeparator: DefineComponent<Record<string, never>>
|
|
68
|
+
FdsText: DefineComponent<FdsTextProps>
|
|
69
|
+
FdsListHeading: DefineComponent<FdsListHeadingProps>
|
|
35
70
|
}
|
|
36
71
|
}
|
|
37
72
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "fds-vue-core",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "FDS Vue Core Component Library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/fds-vue-core.cjs.js",
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
30
|
"dist",
|
|
31
|
-
"src",
|
|
32
31
|
"tailwind.preset.cjs",
|
|
33
32
|
"configs",
|
|
34
33
|
"scripts"
|
|
@@ -46,7 +45,7 @@
|
|
|
46
45
|
},
|
|
47
46
|
"scripts": {
|
|
48
47
|
"serve": "vite",
|
|
49
|
-
"build": "vite build && npm run build:types && cp ./src/tokens.css ./dist/tokens.css && cp ./src/slot-styles.css ./dist/slot-styles.css && cp ./src/apply.css ./dist/apply.css && cp ./src/fonts.css ./dist/fonts.css &&
|
|
48
|
+
"build": "vite build && npm run build:types && cp ./src/tokens.css ./dist/tokens.css && cp ./src/slot-styles.css ./dist/slot-styles.css && cp ./src/apply.css ./dist/apply.css && cp ./src/fonts.css ./dist/fonts.css && cp ./src/global-components.ts ./dist/global-components.d.ts && node -e \"const fs=require('fs'); const content=fs.readFileSync('./dist/index.d.ts','utf8'); fs.writeFileSync('./dist/index.d.ts','import \\\\'./global-components\\\\'\\n'+content);\" && cp -r ./public/assets ./dist/assets",
|
|
50
49
|
"build:types": "vue-tsc --project tsconfig.build.json",
|
|
51
50
|
"preview": "vite preview",
|
|
52
51
|
"lint": "eslint . --fix",
|
package/src/.DS_Store
DELETED
|
Binary file
|
package/src/App.vue
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
<script setup lang="ts">
|
|
2
|
-
import FdsTreeView from '@/components/FdsTreeView/FdsTreeView.vue'
|
|
3
|
-
import type { FdsTreeNode } from '@/components/FdsTreeView/types'
|
|
4
|
-
import { ref } from 'vue'
|
|
5
|
-
|
|
6
|
-
// Mock tree data
|
|
7
|
-
const mockTreeData: FdsTreeNode<Record<string, unknown>>[] = [
|
|
8
|
-
{
|
|
9
|
-
nodeId: 'root-1',
|
|
10
|
-
title: 'Documents',
|
|
11
|
-
children: [
|
|
12
|
-
{
|
|
13
|
-
nodeId: 'doc-1',
|
|
14
|
-
title: 'Work',
|
|
15
|
-
children: [
|
|
16
|
-
{
|
|
17
|
-
nodeId: 'work-1',
|
|
18
|
-
title: 'Projects',
|
|
19
|
-
children: [
|
|
20
|
-
{
|
|
21
|
-
nodeId: 'proj-1',
|
|
22
|
-
title: 'Project Alpha',
|
|
23
|
-
data: { type: 'project', status: 'active' },
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
nodeId: 'proj-2',
|
|
27
|
-
title: 'Project Beta',
|
|
28
|
-
data: { type: 'project', status: 'completed' },
|
|
29
|
-
},
|
|
30
|
-
{
|
|
31
|
-
nodeId: 'proj-3',
|
|
32
|
-
title: 'Project Gamma',
|
|
33
|
-
data: { type: 'project', status: 'planning', person_name: 'Anna Sjöström' },
|
|
34
|
-
},
|
|
35
|
-
],
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
nodeId: 'work-2',
|
|
39
|
-
title: 'Reports',
|
|
40
|
-
children: [],
|
|
41
|
-
},
|
|
42
|
-
],
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
nodeId: 'doc-2',
|
|
46
|
-
title: 'Personal',
|
|
47
|
-
children: [
|
|
48
|
-
{ nodeId: 'pers-1', title: 'Photos', data: { type: 'folder', count: 150 } },
|
|
49
|
-
{ nodeId: 'pers-2', title: 'Videos', data: { type: 'folder', count: 25 } },
|
|
50
|
-
{ nodeId: 'pers-3', title: 'Music', data: { type: 'folder', count: 500 } },
|
|
51
|
-
],
|
|
52
|
-
},
|
|
53
|
-
],
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
nodeId: 'root-2',
|
|
57
|
-
title: 'Applications',
|
|
58
|
-
children: [
|
|
59
|
-
{
|
|
60
|
-
nodeId: 'app-1',
|
|
61
|
-
title: 'Development',
|
|
62
|
-
children: [
|
|
63
|
-
{ nodeId: 'dev-1', title: 'VS Code', data: { type: 'app', category: 'editor' } },
|
|
64
|
-
{ nodeId: 'dev-2', title: 'Terminal', data: { type: 'app', category: 'utility' } },
|
|
65
|
-
{ nodeId: 'dev-3', title: 'Git', data: { type: 'app', category: 'version-control' } },
|
|
66
|
-
],
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
nodeId: 'app-2',
|
|
70
|
-
title: 'Design',
|
|
71
|
-
children: [
|
|
72
|
-
{ nodeId: 'design-1', title: 'Figma', data: { type: 'app', category: 'design' } },
|
|
73
|
-
{ nodeId: 'design-2', title: 'Sketch', data: { type: 'app', category: 'design' } },
|
|
74
|
-
],
|
|
75
|
-
},
|
|
76
|
-
],
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
nodeId: 'root-3',
|
|
80
|
-
title: 'Settings',
|
|
81
|
-
children: [
|
|
82
|
-
{ nodeId: 'set-1', title: 'General', data: { type: 'setting', category: 'preferences' } },
|
|
83
|
-
{ nodeId: 'set-2', title: 'Privacy', data: { type: 'setting', category: 'security' } },
|
|
84
|
-
{ nodeId: 'set-3', title: 'Notifications', data: { type: 'setting', category: 'alerts' } },
|
|
85
|
-
],
|
|
86
|
-
},
|
|
87
|
-
]
|
|
88
|
-
|
|
89
|
-
const treeData: FdsTreeNode<Record<string, unknown>> = {
|
|
90
|
-
nodeId: 'root',
|
|
91
|
-
title: 'Root',
|
|
92
|
-
children: mockTreeData,
|
|
93
|
-
data: { type: 'root' },
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
type SelectedShape = Pick<FdsTreeNode, 'nodeId' | 'title' | 'data' | 'children'>
|
|
97
|
-
const selectedNodes = ref<SelectedShape[]>([])
|
|
98
|
-
</script>
|
|
99
|
-
|
|
100
|
-
<template>
|
|
101
|
-
<div class="app p-8">
|
|
102
|
-
<div class="border border-gray-200 rounded-lg p-4 mb-8">
|
|
103
|
-
<h2 class="text-lg font-semibold mb-4">FDS Tree View Test</h2>
|
|
104
|
-
<FdsTreeView
|
|
105
|
-
:data="treeData"
|
|
106
|
-
:expandAllChildrenOnParentCheck="true"
|
|
107
|
-
:expandChildrenOnParentCheck="true"
|
|
108
|
-
:horizontalScroll="true"
|
|
109
|
-
:indentation="36"
|
|
110
|
-
:nodeCollapseIcon="'arrowUp'"
|
|
111
|
-
:nodeExpandIcon="'arrowDown'"
|
|
112
|
-
:searchEnabled="true"
|
|
113
|
-
:searchExpandNodes="true"
|
|
114
|
-
:searchHighlighting="true"
|
|
115
|
-
:searchLabel="'Sök noder'"
|
|
116
|
-
:searchMatchParams="['title']"
|
|
117
|
-
:showIndeterminate="true"
|
|
118
|
-
:showIndeterminateOnlyOnChildrenSelection="true"
|
|
119
|
-
:titleTemplate="'[[title]] ([[nodeId]])'"
|
|
120
|
-
:searchResultNoMatchesTitle="'Inga resultat hittades'"
|
|
121
|
-
:searchResultNoMatchesBody="'Pröva sök på något annat'"
|
|
122
|
-
:searchCountTemplate="'[[filteredNodes]] av [[totalNodes]] avdelningar'"
|
|
123
|
-
:searchCountTemplateUnfiltered="'[[totalNodes]] avdelningar'"
|
|
124
|
-
:popoverLabels="{
|
|
125
|
-
parentAndChildren: 'Denna och alla underliggande',
|
|
126
|
-
parent: 'Endast denna nivå',
|
|
127
|
-
}"
|
|
128
|
-
:searchInputTriggerLength="2"
|
|
129
|
-
v-model:selectedNodes="selectedNodes"
|
|
130
|
-
/>
|
|
131
|
-
</div>
|
|
132
|
-
</div>
|
|
133
|
-
</template>
|
package/src/apply.css
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
@import './tokens.css';
|
|
2
|
-
|
|
3
|
-
/** Create stencil components for this */
|
|
4
|
-
@layer components {
|
|
5
|
-
h1,
|
|
6
|
-
.h1 {
|
|
7
|
-
@apply font-heading text-2xl sm:text-4xl lg:text-6xl/tight font-extrabold mb-3 mt-0;
|
|
8
|
-
}
|
|
9
|
-
h2,
|
|
10
|
-
.h2 {
|
|
11
|
-
@apply font-heading text-xl sm:text-3xl font-extrabold mt-4 mb-4;
|
|
12
|
-
}
|
|
13
|
-
.h2--small {
|
|
14
|
-
@apply font-heading text-xl font-extrabold mt-4 mb-4;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
h3,
|
|
18
|
-
.h3 {
|
|
19
|
-
@apply font-heading text-xl font-extrabold mt-4 mb-4;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.h3--small {
|
|
23
|
-
@apply font-heading text-lg font-extrabold mt-4 mb-2;
|
|
24
|
-
}
|
|
25
|
-
h1:focus,
|
|
26
|
-
h2:focus,
|
|
27
|
-
h3:focus {
|
|
28
|
-
@apply focus:outline-0;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.label {
|
|
32
|
-
@apply font-bold mb-2! tracking-wide;
|
|
33
|
-
}
|
|
34
|
-
p {
|
|
35
|
-
@apply mb-4;
|
|
36
|
-
}
|
|
37
|
-
li:not(:last-child) {
|
|
38
|
-
@apply mb-2;
|
|
39
|
-
}
|
|
40
|
-
.link,
|
|
41
|
-
.html a {
|
|
42
|
-
@apply text-blue-600 hover:text-blue-700 active:text-blue-800 underline focus-visible:outline-dashed focus-visible:outline-2 focus-visible:outline-offset-4 focus-visible:outline-blue-500;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
.capitalize-first::first-letter {
|
|
46
|
-
text-transform: uppercase;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
@layer utilities {
|
|
51
|
-
/** Override browser background color when autocomplete field */
|
|
52
|
-
input:not(input[type='checkbox'], input[type='radio']),
|
|
53
|
-
textarea {
|
|
54
|
-
box-shadow: 0 0 0 1000px #fff inset !important;
|
|
55
|
-
}
|
|
56
|
-
/** Style active router link in main nav */
|
|
57
|
-
.nav-items .router-link-active {
|
|
58
|
-
@apply bg-blue-100 text-blue-700 font-bold;
|
|
59
|
-
}
|
|
60
|
-
}
|