@leaflink/stash 44.0.0-beta.1 → 44.0.0-beta.11
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/README.md +107 -39
- package/dist/ActionsDropdown.js +25 -25
- package/dist/ActionsDropdown.js.map +1 -1
- package/dist/AddressSelect.js +12 -11
- package/dist/AddressSelect.js.map +1 -1
- package/dist/Alert.js +9 -9
- package/dist/Alert.js.map +1 -1
- package/dist/AppNavigationItem.js +22 -22
- package/dist/AppNavigationItem.js.map +1 -1
- package/dist/AppSidebar.js +11 -11
- package/dist/AppSidebar.js.map +1 -1
- package/dist/AppTopbar.js +12 -12
- package/dist/Avatar.js +12 -12
- package/dist/Avatar.js.map +1 -1
- package/dist/Backdrop.js +1 -1
- package/dist/Backdrop.js.map +1 -1
- package/dist/Badge.js +12 -12
- package/dist/Badge.js.map +1 -1
- package/dist/Badge.vue.d.ts +1 -1
- package/dist/Button.js +1 -1
- package/dist/Button.js.map +1 -1
- package/dist/Button.vue_used_vue_type_style_index_0_lang.module-63d31dc0.js +17 -0
- package/dist/Button.vue_used_vue_type_style_index_0_lang.module-63d31dc0.js.map +1 -0
- package/dist/ButtonGroup.js +28 -28
- package/dist/ButtonGroup.js.map +1 -1
- package/dist/Card.js +3 -3
- package/dist/Card.js.map +1 -1
- package/dist/CardHeader.js +3 -3
- package/dist/CardMedia.js +1 -1
- package/dist/CardMedia.js.map +1 -1
- package/dist/Carousel.js +260 -248
- package/dist/Carousel.js.map +1 -1
- package/dist/Checkbox.js +58 -46
- package/dist/Checkbox.js.map +1 -1
- package/dist/Checkbox.vue.d.ts +2 -0
- package/dist/Checkbox.vue_used_vue_type_style_index_0_lang.module-fa8d9c06.js +9 -0
- package/dist/Checkbox.vue_used_vue_type_style_index_0_lang.module-fa8d9c06.js.map +1 -0
- package/dist/ChevronToggle.js +1 -1
- package/dist/Chip.js +1 -1
- package/dist/Chip.js.map +1 -1
- package/dist/ConfirmationCodeInput.js +21 -21
- package/dist/ConfirmationCodeInput.js.map +1 -1
- package/dist/ContextSwitcher.js +6 -5
- package/dist/ContextSwitcher.js.map +1 -1
- package/dist/Copy.js +1 -1
- package/dist/CurrencyInput.js +2 -2
- package/dist/DataView.js +1 -1
- package/dist/DataViewFilters.js +7 -7
- package/dist/DataViewFilters.js.map +1 -1
- package/dist/DataViewSortButton.js +47 -38
- package/dist/DataViewSortButton.js.map +1 -1
- package/dist/DataViewToolbar.js +4 -4
- package/dist/DataViewToolbar.js.map +1 -1
- package/dist/DatePicker.js +12 -15
- package/dist/DatePicker.js.map +1 -1
- package/dist/DescriptionListTerm.js +8 -8
- package/dist/DescriptionListTerm.js.map +1 -1
- package/dist/Dialog.js +46 -46
- package/dist/Dialog.js.map +1 -1
- package/dist/Divider.js +9 -9
- package/dist/Divider.js.map +1 -1
- package/dist/Dropdown.js +17 -17
- package/dist/Dropdown.js.map +1 -1
- package/dist/EmptyState.js +1 -1
- package/dist/EmptyState.js.map +1 -1
- package/dist/Expand.js +1 -1
- package/dist/{Expand.vue_vue_type_script_setup_true_lang-5fe03d51.js → Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js} +14 -15
- package/dist/Expand.vue_vue_type_script_setup_true_lang-1751f4a6.js.map +1 -0
- package/dist/Field.js +2 -2
- package/dist/Field.vue.d.ts +1 -1
- package/dist/{Field.vue_vue_type_script_setup_true_lang-475832fe.js → Field.vue_vue_type_script_setup_true_lang-42ba3c5a.js} +5 -5
- package/dist/Field.vue_vue_type_script_setup_true_lang-42ba3c5a.js.map +1 -0
- package/dist/FileUpload.js +49 -47
- package/dist/FileUpload.js.map +1 -1
- package/dist/FilterChip.js +20 -20
- package/dist/FilterChip.js.map +1 -1
- package/dist/FilterDrawerItem.js +4 -4
- package/dist/FilterDrawerItem.js.map +1 -1
- package/dist/FilterDropdown.js +19 -19
- package/dist/FilterDropdown.js.map +1 -1
- package/dist/FilterSelect.js +27 -27
- package/dist/FilterSelect.js.map +1 -1
- package/dist/Filters.js +51 -50
- package/dist/Filters.js.map +1 -1
- package/dist/HttpError.js +28 -28
- package/dist/HttpError.js.map +1 -1
- package/dist/IconLabel.js +17 -17
- package/dist/IconLabel.js.map +1 -1
- package/dist/IconLabel.vue.d.ts +1 -1
- package/dist/Illustration.js +10 -60
- package/dist/Illustration.js.map +1 -1
- package/dist/Illustration.vue_vue_type_script_setup_true_lang-d6a94e17.js +56 -0
- package/dist/Illustration.vue_vue_type_script_setup_true_lang-d6a94e17.js.map +1 -0
- package/dist/Image.js +67 -72
- package/dist/Image.js.map +1 -1
- package/dist/InlineEdit.js +3 -3
- package/dist/InlineEdit.js.map +1 -1
- package/dist/Input.js +43 -43
- package/dist/Input.js.map +1 -1
- package/dist/InputOptions.js +34 -33
- package/dist/InputOptions.js.map +1 -1
- package/dist/Label.js +1 -1
- package/dist/Label.vue.d.ts +13 -2
- package/dist/Label.vue_vue_type_script_setup_true_lang-4b02087f.js +38 -0
- package/dist/Label.vue_vue_type_script_setup_true_lang-4b02087f.js.map +1 -0
- package/dist/ListItem.js +16 -15
- package/dist/ListItem.js.map +1 -1
- package/dist/ListItemCell.js +9 -9
- package/dist/ListItemCell.js.map +1 -1
- package/dist/ListView.js +144 -140
- package/dist/ListView.js.map +1 -1
- package/dist/Loading.js +17 -10
- package/dist/Loading.js.map +1 -1
- package/dist/Loading.vue_used_vue_type_style_index_0_lang.module-ef5a3bc6.js +8 -0
- package/dist/Loading.vue_used_vue_type_style_index_0_lang.module-ef5a3bc6.js.map +1 -0
- package/dist/Menu.js +1 -1
- package/dist/Menu.js.map +1 -1
- package/dist/MenuItem.js +20 -14
- package/dist/MenuItem.js.map +1 -1
- package/dist/Metric.js +4 -4
- package/dist/Metric.js.map +1 -1
- package/dist/Modal.js +21 -21
- package/dist/Modal.js.map +1 -1
- package/dist/Modals.js +13 -13
- package/dist/Modals.js.map +1 -1
- package/dist/Module.js +2 -2
- package/dist/Module.js.map +1 -1
- package/dist/ModuleContent.js +2 -2
- package/dist/ModuleContent.js.map +1 -1
- package/dist/ModuleFooter.js +11 -11
- package/dist/ModuleFooter.js.map +1 -1
- package/dist/ModuleHeader.js +6 -6
- package/dist/ModuleHeader.js.map +1 -1
- package/dist/ObfuscateText.js +30 -32
- package/dist/ObfuscateText.js.map +1 -1
- package/dist/ObfuscateText.vue.d.ts +1 -1
- package/dist/PageContent.js +9 -9
- package/dist/PageContent.js.map +1 -1
- package/dist/PageHeader.js +24 -24
- package/dist/PageHeader.js.map +1 -1
- package/dist/PageNavigation.js +3 -3
- package/dist/PageNavigation.js.map +1 -1
- package/dist/Paginate.js +1 -1
- package/dist/Paginate.js.map +1 -1
- package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-18343da7.js +11 -0
- package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-18343da7.js.map +1 -0
- package/dist/QuickAction.js +20 -17
- package/dist/QuickAction.js.map +1 -1
- package/dist/Radio.js +30 -15
- package/dist/Radio.js.map +1 -1
- package/dist/RadioGroup.js +177 -148
- package/dist/RadioGroup.js.map +1 -1
- package/dist/RadioNew.js +118 -91
- package/dist/RadioNew.js.map +1 -1
- package/dist/SearchBar.js +27 -27
- package/dist/SearchBar.js.map +1 -1
- package/dist/Select.js +189 -188
- package/dist/Select.js.map +1 -1
- package/dist/SelectStatus.js +22 -21
- package/dist/SelectStatus.js.map +1 -1
- package/dist/Step.js +37 -37
- package/dist/Step.js.map +1 -1
- package/dist/Switch.js +44 -36
- package/dist/Switch.js.map +1 -1
- package/dist/Tab.js +3 -2
- package/dist/Tab.js.map +1 -1
- package/dist/{Tab.vue_vue_type_script_setup_true_lang-b810bee8.js → Tab.vue_vue_type_script_setup_true_lang-69d1b046.js} +23 -22
- package/dist/Tab.vue_vue_type_script_setup_true_lang-69d1b046.js.map +1 -0
- package/dist/Table.js +23 -22
- package/dist/Table.js.map +1 -1
- package/dist/Table.keys-cf93df19.js +27 -0
- package/dist/{Table.keys-1ebe4ecb.js.map → Table.keys-cf93df19.js.map} +1 -1
- package/dist/TableCell.js +24 -23
- package/dist/TableCell.js.map +1 -1
- package/dist/TableHeaderCell.js +37 -36
- package/dist/TableHeaderCell.js.map +1 -1
- package/dist/TableHeaderRow.js +13 -12
- package/dist/TableHeaderRow.js.map +1 -1
- package/dist/TableRow.js +36 -34
- package/dist/TableRow.js.map +1 -1
- package/dist/Tabs.js +2 -2
- package/dist/{Tabs.vue_used_vue_type_style_index_0_lang.module-4f247ed7.js → Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js} +26 -26
- package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-2a131332.js.map +1 -0
- package/dist/Textarea.js +61 -53
- package/dist/Textarea.js.map +1 -1
- package/dist/Toast.js +23 -23
- package/dist/Toast.js.map +1 -1
- package/dist/components.css +1 -1
- package/dist/constants.d.ts +33 -26
- package/dist/constants.js +56 -41
- package/dist/constants.js.map +1 -1
- package/dist/index.js +21 -20
- package/dist/index.js.map +1 -1
- package/dist/storage.js +3 -2
- package/dist/storage.js.map +1 -1
- package/dist/tailwind-base.d.ts +16 -16
- package/dist/tailwind-base.js +16 -6
- package/dist/tailwind-base.js.map +1 -1
- package/dist/useGoogleMaps.js.map +1 -1
- package/dist/utils/helpers.js +37 -37
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/storage.js +30 -29
- package/dist/utils/storage.js.map +1 -1
- package/package.json +2 -2
- package/styles/_core.scss +1 -1
- package/styles/backwards-compat.css +61 -105
- package/styles/base.css +271 -113
- package/tailwind-base.ts +6 -1
- package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js +0 -17
- package/dist/Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js.map +0 -1
- package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js +0 -2
- package/dist/Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js.map +0 -1
- package/dist/Expand.vue_vue_type_script_setup_true_lang-5fe03d51.js.map +0 -1
- package/dist/Field.vue_vue_type_script_setup_true_lang-475832fe.js.map +0 -1
- package/dist/Label.vue_vue_type_script_setup_true_lang-1d29d98a.js +0 -37
- package/dist/Label.vue_vue_type_script_setup_true_lang-1d29d98a.js.map +0 -1
- package/dist/Loading.vue_vue_type_style_index_0_scoped_bb8d5f15_lang-4ed993c7.js +0 -2
- package/dist/Loading.vue_vue_type_style_index_0_scoped_bb8d5f15_lang-4ed993c7.js.map +0 -1
- package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js +0 -11
- package/dist/Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js.map +0 -1
- package/dist/Tab.vue_vue_type_script_setup_true_lang-b810bee8.js.map +0 -1
- package/dist/Table.keys-1ebe4ecb.js +0 -27
- package/dist/Tabs.vue_used_vue_type_style_index_0_lang.module-4f247ed7.js.map +0 -1
- package/styles/_base.scss +0 -493
- package/styles/elements/_links.scss +0 -32
- package/styles/elements/_lists.scss +0 -31
- package/styles/elements/_misc.scss +0 -16
- package/styles/main.scss +0 -38
package/styles/base.css
CHANGED
|
@@ -9,6 +9,32 @@
|
|
|
9
9
|
@tailwind utilities;
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
|
+
@layer components {
|
|
13
|
+
/**
|
|
14
|
+
* ll-grid is a legacy grid class that conflicts with tailwinds out of the box grid class.
|
|
15
|
+
* It's quite hard to replace it with a 1-1 swap, because there's so many default styles included in ll-grid, but it's
|
|
16
|
+
* also used in conjunction with other grid classes. For example:
|
|
17
|
+
* <div class="ll-grid ll-grid-cols-4 md:ll-grid-cols-8 lg:ll-grid-cols-12">
|
|
18
|
+
*
|
|
19
|
+
* In this example, ll-grid has default grid-cols styles, but the dev is overriding those defaults. If we were to
|
|
20
|
+
* replace ll-grid with tw-grid in a simple find/replace, we would HAVE to include
|
|
21
|
+
* `tw-grid-cols-1 tw-gap-x-gutter tw-gap-y-6 md:tw-grid-cols-12` as well, and then in examples like the one above,
|
|
22
|
+
* you'd have weird conflicts and specificity issues.
|
|
23
|
+
*
|
|
24
|
+
* Conclusion: So, for now,
|
|
25
|
+
* - `.ll-grid` & `.grid` will continue to exist in backwards-compat.css as is.
|
|
26
|
+
* - `.tw-grid` will behave as expected and is a simple utility with no baked in defaults.
|
|
27
|
+
* - We're creating a custom .tw-ll-grid class that will have the same styles but won't cause weird issues downstream.
|
|
28
|
+
* In the future we can remove this class OR keep it around if we decide we want to keep a grid utility with
|
|
29
|
+
* some baked in defaults.
|
|
30
|
+
*/
|
|
31
|
+
.tw-ll-grid {
|
|
32
|
+
@apply tw-grid tw-grid-cols-1 tw-gap-x-gutter tw-gap-y-6 md:tw-grid-cols-12;
|
|
33
|
+
|
|
34
|
+
--deprecated: "WARNING: Use `tw-grid` instead";
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
12
38
|
/**
|
|
13
39
|
* This is a custom .container class that conflicts with tailwinds out of the box container class.
|
|
14
40
|
* Placed here before tw utilities, and specifically not within @layer components, so that it is
|
|
@@ -23,10 +49,11 @@
|
|
|
23
49
|
}
|
|
24
50
|
|
|
25
51
|
/**
|
|
26
|
-
*
|
|
52
|
+
* Variables
|
|
27
53
|
*/
|
|
28
54
|
|
|
29
55
|
:root {
|
|
56
|
+
--height-topbar: 56px;
|
|
30
57
|
--grid-gutter: 12px;
|
|
31
58
|
|
|
32
59
|
/* The tooltips position relative to the toggle element */
|
|
@@ -35,11 +62,126 @@
|
|
|
35
62
|
/* Centers arrow horizontally or vertically along tooltip on arrow's center */
|
|
36
63
|
--arrow-position-centered: calc(50% - theme('spacing[1.5]'));
|
|
37
64
|
|
|
38
|
-
@media screen(lg) {
|
|
65
|
+
@media screen('lg') {
|
|
39
66
|
--grid-gutter: 24px;
|
|
40
67
|
}
|
|
68
|
+
|
|
69
|
+
/* Stash colors */
|
|
70
|
+
--color-purple-900: #06040F;
|
|
71
|
+
--color-purple-800: #0C091E;
|
|
72
|
+
--color-purple-700: #120D2D;
|
|
73
|
+
--color-purple-600: #18123C;
|
|
74
|
+
--color-purple-500: #1E164B;
|
|
75
|
+
--color-purple-400: #4B456F;
|
|
76
|
+
--color-purple-300: #787393;
|
|
77
|
+
--color-purple-200: #A5A2B7;
|
|
78
|
+
--color-purple-100: #D2D0DB;
|
|
79
|
+
|
|
80
|
+
--color-royal-900: #0A0C24;
|
|
81
|
+
--color-royal-800: #131747;
|
|
82
|
+
--color-royal-700: #1D236B;
|
|
83
|
+
--color-royal-600: #262E8E;
|
|
84
|
+
--color-royal-500: #303AB2;
|
|
85
|
+
--color-royal-400: #5961C1;
|
|
86
|
+
--color-royal-300: #8389D1;
|
|
87
|
+
--color-royal-200: #ACB0E0;
|
|
88
|
+
--color-royal-100: #D6D8F0;
|
|
89
|
+
|
|
90
|
+
--color-blue-900: #001730;
|
|
91
|
+
--color-blue-800: #002E60;
|
|
92
|
+
--color-blue-700: #004490;
|
|
93
|
+
--color-blue-600: #005BC0;
|
|
94
|
+
--color-blue-500: #0072F0;
|
|
95
|
+
--color-blue-400: #338EF3;
|
|
96
|
+
--color-blue-300: #66AAF6;
|
|
97
|
+
--color-blue-200: #99C7F9;
|
|
98
|
+
--color-blue-100: #CCE3FC;
|
|
99
|
+
|
|
100
|
+
--color-teal-900: #002528;
|
|
101
|
+
--color-teal-800: #004B50;
|
|
102
|
+
--color-teal-700: #017078;
|
|
103
|
+
--color-teal-600: #0196A0;
|
|
104
|
+
--color-teal-500: #01BBC8;
|
|
105
|
+
--color-teal-400: #34C9D3;
|
|
106
|
+
--color-teal-300: #67D6DE;
|
|
107
|
+
--color-teal-200: #99E4E9;
|
|
108
|
+
--color-teal-100: #CCF1F4;
|
|
109
|
+
|
|
110
|
+
--color-green-900: #062313;
|
|
111
|
+
--color-green-800: #0C4627;
|
|
112
|
+
--color-green-700: #11683A;
|
|
113
|
+
--color-green-600: #178B4E;
|
|
114
|
+
--color-green-500: #1DAE61;
|
|
115
|
+
--color-green-400: #4ABE81;
|
|
116
|
+
--color-green-300: #77CEA0;
|
|
117
|
+
--color-green-200: #A5DFC0;
|
|
118
|
+
--color-green-100: #D2EFDF;
|
|
119
|
+
|
|
120
|
+
--color-seafoam-900: #0C2C26;
|
|
121
|
+
--color-seafoam-800: #18584D;
|
|
122
|
+
--color-seafoam-700: #248373;
|
|
123
|
+
--color-seafoam-600: #30AF9A;
|
|
124
|
+
--color-seafoam-500: #3CDBC0;
|
|
125
|
+
--color-seafoam-400: #63E2CD;
|
|
126
|
+
--color-seafoam-300: #8AE9D9;
|
|
127
|
+
--color-seafoam-200: #B1F1E6;
|
|
128
|
+
--color-seafoam-100: #D8F8F2;
|
|
129
|
+
|
|
130
|
+
--color-yellow-900: #332A00;
|
|
131
|
+
--color-yellow-800: #650;
|
|
132
|
+
--color-yellow-700: #997F00;
|
|
133
|
+
--color-yellow-600: #CA0;
|
|
134
|
+
--color-yellow-500: #FFD400;
|
|
135
|
+
--color-yellow-400: #FD3;
|
|
136
|
+
--color-yellow-300: #FFE566;
|
|
137
|
+
--color-yellow-200: #FE9;
|
|
138
|
+
--color-yellow-100: #FFF6CC;
|
|
139
|
+
|
|
140
|
+
--color-orange-900: #331E07;
|
|
141
|
+
--color-orange-800: #663B0F;
|
|
142
|
+
--color-orange-700: #995916;
|
|
143
|
+
--color-orange-600: #CC761E;
|
|
144
|
+
--color-orange-500: #FF9425;
|
|
145
|
+
--color-orange-400: #FFA951;
|
|
146
|
+
--color-orange-300: #FFBF7C;
|
|
147
|
+
--color-orange-200: #FFD4A8;
|
|
148
|
+
--color-orange-100: #FFEAD3;
|
|
149
|
+
|
|
150
|
+
--color-red-900: #2E0009;
|
|
151
|
+
--color-red-800: #5B0011;
|
|
152
|
+
--color-red-700: #89001A;
|
|
153
|
+
--color-red-600: #B60022;
|
|
154
|
+
--color-red-500: #E4002B;
|
|
155
|
+
--color-red-400: #E93355;
|
|
156
|
+
--color-red-300: #EF6680;
|
|
157
|
+
--color-red-200: #F499AA;
|
|
158
|
+
--color-red-100: #FACCD5;
|
|
159
|
+
|
|
160
|
+
--color-ice-900: #27282A;
|
|
161
|
+
--color-ice-800: #4F5055;
|
|
162
|
+
--color-ice-700: #76797F;
|
|
163
|
+
--color-ice-600: #9EA1AA;
|
|
164
|
+
--color-ice-500: #C5C9D4;
|
|
165
|
+
--color-ice-400: #D1D4DD;
|
|
166
|
+
--color-ice-300: #DCDFE5;
|
|
167
|
+
--color-ice-200: #E8E9EE;
|
|
168
|
+
--color-ice-100: #F3F4F6;
|
|
169
|
+
--color-white: #fff;
|
|
170
|
+
--color-black: #000;
|
|
171
|
+
|
|
172
|
+
/* Deprecated colors */
|
|
173
|
+
--color-blue-hover: rgb(0 114 240 / 74.9%);
|
|
174
|
+
--color-red-hover: rgb(228 0 43 / 74.9%);
|
|
175
|
+
--color-ice-700-hover: rgb(118 121 127 / 11.8%);
|
|
176
|
+
--color-white-hover: rgb(255 255 255 / 11.8%);
|
|
177
|
+
--button-secondary-blue-hover: rgb(0 114 240 / 11.8%);
|
|
178
|
+
--button-secondary-red-hover: rgb(228 0 43 / 11.8%);
|
|
41
179
|
}
|
|
42
180
|
|
|
181
|
+
/**
|
|
182
|
+
* General styles and/or reset css could go here.
|
|
183
|
+
*/
|
|
184
|
+
|
|
43
185
|
@layer base {
|
|
44
186
|
@font-face {
|
|
45
187
|
font-family: Sofia;
|
|
@@ -87,7 +229,7 @@
|
|
|
87
229
|
*,
|
|
88
230
|
::before,
|
|
89
231
|
::after {
|
|
90
|
-
@apply tw-border-0 tw-border-ice-500;
|
|
232
|
+
@apply tw-border-0 tw-border-solid tw-border-ice-500;
|
|
91
233
|
|
|
92
234
|
background-repeat: no-repeat;
|
|
93
235
|
box-sizing: border-box;
|
|
@@ -126,7 +268,7 @@
|
|
|
126
268
|
@apply tw-text-2xl tw-font-medium tw-text-ice-900;
|
|
127
269
|
}
|
|
128
270
|
|
|
129
|
-
@media screen(md) {
|
|
271
|
+
@media screen('md') {
|
|
130
272
|
.heading-jumbo {
|
|
131
273
|
font-size: theme('fontSize.5xl');
|
|
132
274
|
}
|
|
@@ -173,7 +315,7 @@
|
|
|
173
315
|
*
|
|
174
316
|
* Add LeafLink's base styles to fix issues on localhost
|
|
175
317
|
*/
|
|
176
|
-
a {
|
|
318
|
+
a, .link {
|
|
177
319
|
@apply tw-text-blue-500;
|
|
178
320
|
|
|
179
321
|
background-color: transparent;
|
|
@@ -474,6 +616,33 @@
|
|
|
474
616
|
content: "—";
|
|
475
617
|
}
|
|
476
618
|
|
|
619
|
+
/**
|
|
620
|
+
* Legacy button-grid class.
|
|
621
|
+
*
|
|
622
|
+
* Todo: Create ButtonGrid component with styles below and remove button grid styles from Button.vue
|
|
623
|
+
* https://leaflink.atlassian.net/browse/STASH-230
|
|
624
|
+
*/
|
|
625
|
+
.button-grid {
|
|
626
|
+
display: flex;
|
|
627
|
+
grid-column-end: -1 !important;
|
|
628
|
+
|
|
629
|
+
> .button {
|
|
630
|
+
width: 50%;
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
> .button + .button {
|
|
634
|
+
margin-left: theme('spacing.6')
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
@media screen('md') {
|
|
638
|
+
display: inline-flex;
|
|
639
|
+
|
|
640
|
+
> .button {
|
|
641
|
+
width: auto;
|
|
642
|
+
}
|
|
643
|
+
}
|
|
644
|
+
}
|
|
645
|
+
|
|
477
646
|
/**
|
|
478
647
|
* Stash's v-tooltip styles.
|
|
479
648
|
*/
|
|
@@ -483,7 +652,7 @@
|
|
|
483
652
|
|
|
484
653
|
background: var(--color-ice-900);
|
|
485
654
|
border-radius: theme('borderRadius.DEFAULT');
|
|
486
|
-
box-shadow: 0 0 0 1px
|
|
655
|
+
box-shadow: 0 0 0 1px rgb(255 255 255 / 25%);
|
|
487
656
|
color: var(--color-white);
|
|
488
657
|
font-size: 0.75rem;
|
|
489
658
|
line-height: calc(16 / 12);
|
|
@@ -510,59 +679,59 @@
|
|
|
510
679
|
z-index: theme('zIndex.behind');
|
|
511
680
|
width: 12px;
|
|
512
681
|
}
|
|
682
|
+
}
|
|
513
683
|
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
684
|
+
.tooltip--bottom,
|
|
685
|
+
.tooltip--top {
|
|
686
|
+
left: calc(50% + calc(var(--offset) * 1px));
|
|
687
|
+
transform: translateX(-50%);
|
|
518
688
|
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
}
|
|
689
|
+
&::after {
|
|
690
|
+
left: calc(var(--arrow-position-centered) + calc(var(--offset) * -1px));
|
|
522
691
|
}
|
|
692
|
+
}
|
|
523
693
|
|
|
524
|
-
|
|
525
|
-
|
|
694
|
+
.tooltip--bottom {
|
|
695
|
+
top: var(--tooltip-position);
|
|
526
696
|
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
}
|
|
697
|
+
&::after {
|
|
698
|
+
transform: rotate(-45deg);
|
|
530
699
|
}
|
|
700
|
+
}
|
|
531
701
|
|
|
532
|
-
|
|
533
|
-
|
|
702
|
+
.tooltip--top {
|
|
703
|
+
bottom: var(--tooltip-position);
|
|
534
704
|
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
}
|
|
705
|
+
&::after {
|
|
706
|
+
top: calc(100% - theme('spacing[1.5]'));
|
|
538
707
|
}
|
|
708
|
+
}
|
|
539
709
|
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
710
|
+
.tooltip--left,
|
|
711
|
+
.tooltip--right {
|
|
712
|
+
top: 50%;
|
|
713
|
+
transform: translateY(-50%);
|
|
544
714
|
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
}
|
|
715
|
+
&::after {
|
|
716
|
+
top: var(--arrow-position-centered);
|
|
548
717
|
}
|
|
718
|
+
}
|
|
549
719
|
|
|
550
|
-
|
|
551
|
-
|
|
720
|
+
.tooltip--left {
|
|
721
|
+
right: var(--tooltip-position);
|
|
552
722
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
}
|
|
723
|
+
&::after {
|
|
724
|
+
left: calc(100% - theme('spacing[1.5]'));
|
|
725
|
+
transform: rotate(45deg);
|
|
557
726
|
}
|
|
727
|
+
}
|
|
558
728
|
|
|
559
|
-
|
|
560
|
-
|
|
729
|
+
.tooltip--right {
|
|
730
|
+
left: var(--tooltip-position);
|
|
561
731
|
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
}
|
|
732
|
+
&::after {
|
|
733
|
+
left: calc(-1 * theme('spacing[1.5]'));
|
|
734
|
+
transform: rotate(-135deg);
|
|
566
735
|
}
|
|
567
736
|
}
|
|
568
737
|
|
|
@@ -589,8 +758,8 @@
|
|
|
589
758
|
*/
|
|
590
759
|
|
|
591
760
|
@keyframes shake {
|
|
592
|
-
|
|
593
|
-
|
|
761
|
+
0%,
|
|
762
|
+
100% {
|
|
594
763
|
transform: translate3d(0, 0, 0);
|
|
595
764
|
}
|
|
596
765
|
|
|
@@ -616,7 +785,7 @@
|
|
|
616
785
|
|
|
617
786
|
|
|
618
787
|
@keyframes pulse {
|
|
619
|
-
|
|
788
|
+
0% {
|
|
620
789
|
transform: scale3d(1, 1, 1);
|
|
621
790
|
}
|
|
622
791
|
|
|
@@ -624,7 +793,7 @@
|
|
|
624
793
|
transform: scale3d(1.25, 1.25, 1.25);
|
|
625
794
|
}
|
|
626
795
|
|
|
627
|
-
|
|
796
|
+
100% {
|
|
628
797
|
transform: scale3d(1, 1, 1);
|
|
629
798
|
}
|
|
630
799
|
}
|
|
@@ -655,7 +824,7 @@
|
|
|
655
824
|
}
|
|
656
825
|
|
|
657
826
|
@keyframes flash {
|
|
658
|
-
|
|
827
|
+
0% {
|
|
659
828
|
opacity: 1;
|
|
660
829
|
}
|
|
661
830
|
|
|
@@ -663,7 +832,7 @@
|
|
|
663
832
|
opacity: 0;
|
|
664
833
|
}
|
|
665
834
|
|
|
666
|
-
|
|
835
|
+
100% {
|
|
667
836
|
opacity: 1;
|
|
668
837
|
}
|
|
669
838
|
}
|
|
@@ -679,89 +848,78 @@
|
|
|
679
848
|
* See: https://tailwindcss.com/docs/transition-property
|
|
680
849
|
*/
|
|
681
850
|
|
|
682
|
-
.scale
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
}
|
|
851
|
+
.scale-enter-active,
|
|
852
|
+
.scale-leave-active {
|
|
853
|
+
transition: theme('transitionDuration.300') theme('transitionTimingFunction.ease-in-out');
|
|
854
|
+
}
|
|
687
855
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
}
|
|
856
|
+
.scale-enter-from,
|
|
857
|
+
.scale-leave-from,
|
|
858
|
+
.scale-leave-to {
|
|
859
|
+
opacity: 0;
|
|
860
|
+
transform: scale(0);
|
|
694
861
|
}
|
|
695
862
|
|
|
696
|
-
.slide-y {
|
|
697
|
-
&-enter-active,
|
|
698
|
-
&-leave-active {
|
|
699
|
-
transition: theme('transitionDuration.150') theme('transitionTimingFunction.swing');
|
|
700
|
-
}
|
|
701
863
|
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
transform: translateY(-0.875rem);
|
|
706
|
-
}
|
|
864
|
+
.slide-y-enter-active,
|
|
865
|
+
.slide-y-leave-active {
|
|
866
|
+
transition: theme('transitionDuration.150') theme('transitionTimingFunction.swing');
|
|
707
867
|
}
|
|
708
868
|
|
|
709
|
-
.slide-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
869
|
+
.slide-y-enter-from,
|
|
870
|
+
.slide-y-leave-to {
|
|
871
|
+
opacity: 0;
|
|
872
|
+
transform: translateY(-0.875rem);
|
|
873
|
+
}
|
|
714
874
|
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
transform: translateX(-0.875rem);
|
|
719
|
-
}
|
|
875
|
+
.slide-x-enter-active,
|
|
876
|
+
.slide-x-leave-active {
|
|
877
|
+
transition: theme('transitionDuration.150') theme('transitionTimingFunction.swing');
|
|
720
878
|
}
|
|
721
879
|
|
|
722
|
-
.
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
880
|
+
.slide-x-enter-from,
|
|
881
|
+
.slide-x-leave-to {
|
|
882
|
+
opacity: 0;
|
|
883
|
+
transform: translateX(-0.875rem);
|
|
884
|
+
}
|
|
727
885
|
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
886
|
+
.fade-enter-active,
|
|
887
|
+
.fade-leave-active {
|
|
888
|
+
transition: opacity theme('transitionDuration.150') theme('transitionTimingFunction.swing');
|
|
889
|
+
}
|
|
732
890
|
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
891
|
+
.fade-enter-from,
|
|
892
|
+
.fade-leave-to {
|
|
893
|
+
opacity: 0;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
.fade-enter-to {
|
|
897
|
+
opacity: 1;
|
|
736
898
|
}
|
|
737
899
|
|
|
738
|
-
.expand
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
transition:
|
|
900
|
+
.expand-enter-active,
|
|
901
|
+
.expand-leave-active {
|
|
902
|
+
transition:
|
|
742
903
|
height theme('transitionDuration.300') theme('transitionTimingFunction.ease-in-out'),
|
|
743
904
|
opacity theme('transitionDuration.500') theme('transitionDuration.150'),
|
|
744
905
|
transform theme('transitionDuration.500') theme('transitionDuration.150');
|
|
745
|
-
|
|
906
|
+
}
|
|
746
907
|
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
908
|
+
.expand-enter-from,
|
|
909
|
+
.expand-leave-to {
|
|
910
|
+
height: 0;
|
|
911
|
+
opacity: 0;
|
|
912
|
+
transform: translateY(-0.875rem);
|
|
913
|
+
transition-delay: 0s;
|
|
914
|
+
}
|
|
754
915
|
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
}
|
|
916
|
+
.expand-leave-from,
|
|
917
|
+
.expand-enter-to {
|
|
918
|
+
height: auto;
|
|
919
|
+
opacity: 1;
|
|
920
|
+
transform: translateY(0);
|
|
761
921
|
}
|
|
762
922
|
|
|
763
|
-
.move {
|
|
764
|
-
|
|
765
|
-
transition: transform theme('transitionDuration.150') theme('transitionTimingFunction.swing');
|
|
766
|
-
}
|
|
923
|
+
.move-move {
|
|
924
|
+
transition: transform theme('transitionDuration.150') theme('transitionTimingFunction.swing');
|
|
767
925
|
}
|
package/tailwind-base.ts
CHANGED
|
@@ -22,7 +22,7 @@ export default {
|
|
|
22
22
|
// includes a variant modifier like /hover:bg-red-.+/.
|
|
23
23
|
safelist: [
|
|
24
24
|
{
|
|
25
|
-
pattern: /(bg|text|border)-(purple|royal|blue|seafoam|teal|green|yellow|orange|red|ice)(-[1,5,7]00)
|
|
25
|
+
pattern: /(bg|text|border)-(purple|royal|blue|seafoam|teal|green|yellow|orange|red|ice)(-[1,5,7]00)$/,
|
|
26
26
|
},
|
|
27
27
|
// Illustration.vue stroke color.
|
|
28
28
|
{
|
|
@@ -37,6 +37,8 @@ export default {
|
|
|
37
37
|
// These are custom classes that we might not use in our Stash code, but we
|
|
38
38
|
// define in Stash and want to keep in the final CSS for downstream use.
|
|
39
39
|
'heading-jumbo',
|
|
40
|
+
// allow white and black to be used dynamically
|
|
41
|
+
'bg-white', 'bg-black', 'text-white', 'text-black', 'border-white', 'border-black',
|
|
40
42
|
],
|
|
41
43
|
|
|
42
44
|
// Conflicts with our own custom classes
|
|
@@ -287,6 +289,9 @@ export default {
|
|
|
287
289
|
// .tw-leading-*
|
|
288
290
|
lineHeight: {
|
|
289
291
|
initial: 'initial',
|
|
292
|
+
'2xl': 'calc(32/24)',
|
|
293
|
+
xl: 'calc(28/20)',
|
|
294
|
+
base: 'calc(24/16)',
|
|
290
295
|
// for backwards compatibility with LL typography line-heights
|
|
291
296
|
body: '20/14',
|
|
292
297
|
small: '16/12',
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const t = "_button_1ocn8_2", o = {
|
|
2
|
-
button: t,
|
|
3
|
-
"button--solid": "_button--solid_1ocn8_36",
|
|
4
|
-
"button--ghost": "_button--ghost_1ocn8_58",
|
|
5
|
-
"button--primary": "_button--primary_1ocn8_81 _button--solid_1ocn8_36",
|
|
6
|
-
"button--secondary": "_button--secondary_1ocn8_88 _button--ghost_1ocn8_58",
|
|
7
|
-
"button--tertiary": "_button--tertiary_1ocn8_95 _button--ghost_1ocn8_58",
|
|
8
|
-
"button--icon": "_button--icon_1ocn8_102",
|
|
9
|
-
"button--iconLabel": "_button--iconLabel_1ocn8_103",
|
|
10
|
-
"button--inline": "_button--inline_1ocn8_143",
|
|
11
|
-
"button--blue": "_button--blue_1ocn8_161",
|
|
12
|
-
"button--red": "_button--red_1ocn8_175"
|
|
13
|
-
};
|
|
14
|
-
export {
|
|
15
|
-
o as s
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Button.vue_used_vue_type_style_index_0_lang.module-b77978d6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.vue_vue_type_style_index_0_scoped_0d7e7fd0_lang-4ed993c7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Expand.vue_vue_type_script_setup_true_lang-5fe03d51.js","sources":["../src/components/Expand/Expand.vue"],"sourcesContent":["<script lang=\"ts\">\n export default {\n name: 'll-expand',\n };\n</script>\n\n<script setup lang=\"ts\">\n import { onMounted, ref } from 'vue';\n\n export type ExpandOuterElement = 'div' | 'td' | 'li';\n\n export interface ExpandProps {\n /**\n * The root element to use as the root element the expand transition gets applied to\n */\n is?: ExpandOuterElement;\n /**\n * Dictates whether the content is expanded or collapsed\n */\n isExpanded?: boolean;\n /**\n * Whether to only render content on expand\n */\n isLazy?: boolean;\n /**\n * The name of the transition to pass to the transition component\n * @see: https://vuejs.org/guide/built-ins/transition.html#css-based-transitions\n */\n transitionName?: string;\n }\n\n const props = withDefaults(defineProps<ExpandProps>(), {\n is: 'div',\n isExpanded: false,\n isLazy: false,\n transitionName: 'expand',\n });\n\n const emit =\n defineEmits<{\n (e: 'after-expand'): void;\n }>();\n\n const contentRef = ref<HTMLElement | null>(null);\n\n onMounted(() => {\n if (!props.isExpanded && contentRef.value) {\n contentRef.value.style.overflow = 'hidden';\n }\n });\n\n /**\n * Expands the element\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const onExpand = (element) => {\n // Trick to calculate the height of the hidden element\n element.style.visibility = 'hidden';\n element.style.height = 'auto';\n\n const height = element.offsetHeight;\n\n // Restore default styling\n element.style.visibility = '';\n element.style.display = '';\n\n // Set height on the element to zero\n element.style.height = 0;\n\n // Set expanded height after the other height change takes affect\n requestAnimationFrame(() => {\n element.style.height = `${height}px`;\n });\n };\n\n /**\n * Resores default styling after the expand animation is completed\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const afterExpand = (element) => {\n element.style.height = '';\n element.style.overflow = '';\n emit('after-expand');\n };\n\n /**\n * Collapses the element\n * @param {object} element - the element being expanded\n * @returns {void}\n */\n const onCollapse = (element) => {\n const height = element.offsetHeight;\n\n // Set height to the expanded height\n element.style.height = `${height}px`;\n element.style.overflow = 'hidden';\n\n // Set height to zero after the other height change takes affect\n requestAnimationFrame(() => {\n element.style.height = 0;\n });\n };\n</script>\n\n<template>\n <component\n :is=\"props.is\"\n class=\"stash-expand ll-expand\"\n data-test=\"stash-expand\"\n :class=\"{\n 'is-expanded': isExpanded,\n 'is-collapsed': !isExpanded,\n }\"\n >\n <transition :name=\"transitionName\" @after-enter=\"afterExpand\" @enter=\"onExpand\" @leave=\"onCollapse\">\n <template v-if=\"isLazy\">\n <div v-if=\"isExpanded\" ref=\"contentRef\">\n <slot></slot>\n </div>\n </template>\n <template v-else>\n <div v-show=\"isExpanded\" ref=\"contentRef\">\n <slot></slot>\n </div>\n </template>\n </transition>\n </component>\n</template>\n"],"names":["contentRef","ref","onMounted","props","onExpand","element","height","afterExpand","emit","onCollapse"],"mappings":";AACE,UAAe;AAAA,EACb,MAAM;AACR;;;;;;;;;;iBAwCMA,IAAaC,EAAwB,IAAI;AAE/C,IAAAC,EAAU,MAAM;AACd,MAAI,CAACC,EAAM,cAAcH,EAAW,UACvBA,EAAA,MAAM,MAAM,WAAW;AAAA,IACpC,CACD;AAOK,UAAAI,IAAW,CAACC,MAAY;AAE5B,MAAAA,EAAQ,MAAM,aAAa,UAC3BA,EAAQ,MAAM,SAAS;AAEvB,YAAMC,IAASD,EAAQ;AAGvB,MAAAA,EAAQ,MAAM,aAAa,IAC3BA,EAAQ,MAAM,UAAU,IAGxBA,EAAQ,MAAM,SAAS,GAGvB,sBAAsB,MAAM;AAClB,QAAAA,EAAA,MAAM,SAAS,GAAGC,CAAM;AAAA,MAAA,CACjC;AAAA,IAAA,GAQGC,IAAc,CAACF,MAAY;AAC/B,MAAAA,EAAQ,MAAM,SAAS,IACvBA,EAAQ,MAAM,WAAW,IACzBG,EAAK,cAAc;AAAA,IAAA,GAQfC,IAAa,CAACJ,MAAY;AAC9B,YAAMC,IAASD,EAAQ;AAGf,MAAAA,EAAA,MAAM,SAAS,GAAGC,CAAM,MAChCD,EAAQ,MAAM,WAAW,UAGzB,sBAAsB,MAAM;AAC1B,QAAAA,EAAQ,MAAM,SAAS;AAAA,MAAA,CACxB;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Field.vue_vue_type_script_setup_true_lang-475832fe.js","sources":["../src/components/Field/Field.vue"],"sourcesContent":["<script lang=\"ts\">\n export default {\n inheritAttrs: false,\n };\n</script>\n\n<script setup lang=\"ts\">\n import uniqueId from 'lodash-es/uniqueId';\n import { computed, useAttrs, useSlots } from 'vue';\n\n import Label from '../Label/Label.vue';\n\n export interface FieldProps {\n /**\n * Adds spacing under the field that is consistent whether or not hint/error text is displayed.\n */\n addBottomSpace?: boolean;\n\n /**\n * Error text to display. Replaces `hintText` (if provided) & adds error styling.\n */\n errorText?: string;\n\n /**\n * Displays text below the input; hidden when the isReadOnly prop is truthy.\n */\n hintText?: string;\n\n /**\n * ID for the Label and Input; must be unique\n */\n id?: string;\n\n /**\n * ID for the error text element; useful for aria-errormessage\n */\n errorId?: string;\n\n /**\n * Whether it's a readonly field.\n */\n isReadOnly?: boolean;\n\n /**\n * Whether the field is required.\n */\n isRequired?: boolean;\n\n /**\n * Label to render above the input.\n */\n label?: string;\n\n /**\n * Show \"(optional)\" to the right of the label text\n */\n showOptionalInLabel?: boolean;\n\n /**\n * Indicates wheter the field is a fieldset or not\n */\n fieldset?: boolean;\n }\n\n const props = withDefaults(defineProps<FieldProps>(), {\n addBottomSpace: false,\n errorText: undefined,\n hintText: undefined,\n id: undefined,\n errorId: undefined,\n isRequired: false,\n label: undefined,\n showOptionalInLabel: false,\n fieldset: false,\n });\n const attrs = useAttrs();\n const slots = useSlots();\n const fieldId = computed(() => props.id || uniqueId('field-'));\n const fieldErrorId = computed(() => props.errorId || uniqueId('field-error-'));\n const labelId = computed(() => uniqueId('field-label-'));\n const hasError = computed(() => !!props.errorText);\n const wrapperElement = computed(() => (props.fieldset ? 'fieldset' : 'div'));\n\n // Any attributes that are unique to form elements, you want to exclude from\n // being bound from the root element.\n const rootAttrs = computed(() => {\n const { placeholder, ...otherAttrs } = attrs;\n\n return otherAttrs;\n });\n</script>\n\n<template>\n <component\n v-bind=\"rootAttrs\"\n :is=\"wrapperElement\"\n :class=\"[\n { 'tw-p-0': props.fieldset },\n { 'tw-mb-9': props.addBottomSpace && !props.errorText && !props.hintText && !slots.hint },\n { 'tw-mb-4': props.addBottomSpace && (props.errorText || props.hintText || slots.hint) },\n ]\"\n >\n <Label\n v-if=\"props.label\"\n :id=\"labelId\"\n :class=\"{ 'tw-mb-1.5': !!props.isReadOnly }\"\n :for=\"fieldId\"\n :has-error=\"hasError\"\n :is-required=\"isRequired\"\n :show-optional=\"props.showOptionalInLabel\"\n :legend=\"props.fieldset\"\n >\n {{ props.label }}\n </Label>\n\n <!-- @slot for the form field; the Label can also be rendered here instead of using the label prop -->\n <template v-if=\"props.isReadOnly\">\n <div :aria-labelledby=\"labelId\">\n <slot\n :field-id=\"fieldId\"\n :field-error-id=\"fieldErrorId\"\n :has-error=\"hasError\"\n :is-required=\"isRequired\"\n :label-id=\"labelId\"\n :show-optional-in-label=\"props.showOptionalInLabel\"\n ></slot>\n </div>\n </template>\n <template v-else>\n <slot\n :field-id=\"fieldId\"\n :field-error-id=\"fieldErrorId\"\n :has-error=\"hasError\"\n :is-required=\"isRequired\"\n :label-id=\"labelId\"\n :show-optional-in-label=\"props.showOptionalInLabel\"\n ></slot>\n </template>\n\n <span\n v-if=\"props.errorText\"\n :id=\"fieldErrorId\"\n class=\"tw-block tw-text-xs tw-mt-1 tw-whitespace-pre-line tw-text-red-500\"\n data-test=\"field-error\"\n >\n {{ props.errorText }}\n </span>\n\n <span v-else-if=\"props.hintText\" class=\"tw-block tw-text-xs tw-mt-1 tw-whitespace-pre-line\" data-test=\"field-hint\">\n <span v-if=\"!props.isReadOnly\">{{ props.hintText }}</span>\n </span>\n\n <div v-else-if=\"slots.hint\" class=\"tw-text-xs tw-mt-1 tw-whitespace-pre-line\" data-test=\"field-hint\">\n <!-- @slot for displaying hint text below the field -->\n <slot v-if=\"!props.isReadOnly\" name=\"hint\"></slot>\n </div>\n </component>\n</template>\n"],"names":["attrs","useAttrs","slots","useSlots","fieldId","computed","props","uniqueId","fieldErrorId","labelId","hasError","wrapperElement","rootAttrs","placeholder","otherAttrs"],"mappings":";;;;;;;;;;;OACiB;AAAA,EACb,cAAc;AAChB;;;;;;;;;;;;;;;;iBAwEMA,IAAQC,KACRC,IAAQC,KACRC,IAAUC,EAAS,MAAMC,EAAM,MAAMC,EAAS,QAAQ,CAAC,GACvDC,IAAeH,EAAS,MAAMC,EAAM,WAAWC,EAAS,cAAc,CAAC,GACvEE,IAAUJ,EAAS,MAAME,EAAS,cAAc,CAAC,GACjDG,IAAWL,EAAS,MAAM,CAAC,CAACC,EAAM,SAAS,GAC3CK,IAAiBN,EAAS,MAAOC,EAAM,WAAW,aAAa,KAAM,GAIrEM,IAAYP,EAAS,MAAM;AAC/B,YAAM,EAAE,aAAAQ,GAAa,GAAGC,EAAA,IAAed;AAEhC,aAAAc;AAAA,IAAA,CACR;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, computed as n, openBlock as t, createBlock as i, resolveDynamicComponent as d, normalizeClass as c, withCtx as p, renderSlot as f, createElementBlock as o, toDisplayString as u, unref as m, createCommentVNode as h } from "vue";
|
|
2
|
-
import { t as w } from "./locale.js";
|
|
3
|
-
const _ = {
|
|
4
|
-
key: 0,
|
|
5
|
-
class: "text-red font-weight-bold",
|
|
6
|
-
title: "Required",
|
|
7
|
-
"aria-label": "required"
|
|
8
|
-
}, y = {
|
|
9
|
-
key: 1,
|
|
10
|
-
class: "text-ice-700"
|
|
11
|
-
}, g = /* @__PURE__ */ s({
|
|
12
|
-
__name: "Label",
|
|
13
|
-
props: {
|
|
14
|
-
for: { default: void 0 },
|
|
15
|
-
hasError: { type: Boolean, default: !1 },
|
|
16
|
-
isRequired: { type: Boolean, default: !1 },
|
|
17
|
-
showOptional: { type: Boolean, default: !1 },
|
|
18
|
-
legend: { type: Boolean, default: !1 }
|
|
19
|
-
},
|
|
20
|
-
setup(a) {
|
|
21
|
-
const e = a, l = n(() => e.legend ? "legend" : "label");
|
|
22
|
-
return (r, k) => (t(), i(d(l.value), {
|
|
23
|
-
class: c(["stash-label tw-block tw-truncate tw-text-ice-900 tw-font-medium tw-text-sm tw-leading-6", { "animate-shake": e.hasError }]),
|
|
24
|
-
for: e.for
|
|
25
|
-
}, {
|
|
26
|
-
default: p(() => [
|
|
27
|
-
f(r.$slots, "default"),
|
|
28
|
-
e.isRequired ? (t(), o("span", _, " * ")) : e.showOptional ? (t(), o("span", y, " (" + u(m(w)("ll.optional")) + ") ", 1)) : h("", !0)
|
|
29
|
-
]),
|
|
30
|
-
_: 3
|
|
31
|
-
}, 8, ["class", "for"]));
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
export {
|
|
35
|
-
g as _
|
|
36
|
-
};
|
|
37
|
-
//# sourceMappingURL=Label.vue_vue_type_script_setup_true_lang-1d29d98a.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Label.vue_vue_type_script_setup_true_lang-1d29d98a.js","sources":["../src/components/Label/Label.vue"],"sourcesContent":["<script setup lang=\"ts\">\n import { computed } from 'vue';\n\n import { t } from '../../locale';\n\n export interface LabelProps {\n for?: string;\n hasError?: boolean;\n isRequired?: boolean;\n showOptional?: boolean;\n /**\n * Indicates whether the wrapper element to be rendered\n * should be a label or a legend.\n */\n legend?: boolean;\n }\n\n const props = withDefaults(defineProps<LabelProps>(), {\n for: undefined,\n hasError: false,\n isRequired: false,\n showOptional: false,\n legend: false,\n });\n\n const wrapperElement = computed(() => {\n return props.legend ? 'legend' : 'label';\n });\n</script>\n\n<template>\n <component\n :is=\"wrapperElement\"\n class=\"stash-label tw-block tw-truncate tw-text-ice-900 tw-font-medium tw-text-sm tw-leading-6\"\n :class=\"{ 'animate-shake': props.hasError }\"\n :for=\"props.for\"\n >\n <!-- @slot the label text -->\n <slot></slot>\n <span v-if=\"props.isRequired\" class=\"text-red font-weight-bold\" title=\"Required\" aria-label=\"required\"> * </span>\n <span v-else-if=\"props.showOptional\" class=\"text-ice-700\"> ({{ t('ll.optional') }}) </span>\n </component>\n</template>\n"],"names":["wrapperElement","computed","props"],"mappings":";;;;;;;;;;;;;;;;;;;;iBAyBQA,IAAiBC,EAAS,MACvBC,EAAM,SAAS,WAAW,OAClC;;;;;;;;;;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Loading.vue_vue_type_style_index_0_scoped_bb8d5f15_lang-4ed993c7.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const _ = "_pagination_kh7yl_2", i = "_prev_kh7yl_20", t = "_next_kh7yl_25", n = {
|
|
2
|
-
pagination: _,
|
|
3
|
-
prev: i,
|
|
4
|
-
next: t,
|
|
5
|
-
"is-active": "_is-active_kh7yl_38",
|
|
6
|
-
"is-disabled": "_is-disabled_kh7yl_51"
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
n as s
|
|
10
|
-
};
|
|
11
|
-
//# sourceMappingURL=Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Paginate.vue_used_vue_type_style_index_0_lang.module-bfccf992.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|