tide-design-system 2.0.47 → 2.0.49
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/IconAccountBalance-0a430d19.cjs +2 -0
- package/dist/IconAccountBalance-ad4f4a95.js +16 -0
- package/dist/IconAdd-917e055b.js +16 -0
- package/dist/IconAdd-91de604b.cjs +2 -0
- package/dist/IconAiDescription-674cca6d.cjs +2 -0
- package/dist/IconAiDescription-e6f8ed46.js +20 -0
- package/dist/IconAlignSpace-5d64a8e4.js +16 -0
- package/dist/IconAlignSpace-7ee811f8.cjs +2 -0
- package/dist/IconApplePay-7742e162.js +16 -0
- package/dist/IconApplePay-92395240.cjs +2 -0
- package/dist/IconArrowBack-1810092d.js +16 -0
- package/dist/IconArrowBack-3d47d166.cjs +2 -0
- package/dist/IconArrowCycle-7b7c7325.cjs +2 -0
- package/dist/IconArrowCycle-f8d882fe.js +16 -0
- package/dist/IconArrowForward-613e128c.cjs +2 -0
- package/dist/IconArrowForward-ddabefc9.js +16 -0
- package/dist/IconArrowRight-9f39cdbb.cjs +2 -0
- package/dist/IconArrowRight-d93347c3.js +16 -0
- package/dist/IconAssignment-1983e555.js +16 -0
- package/dist/IconAssignment-915702cc.cjs +2 -0
- package/dist/IconAwardStar-447cf4fc.cjs +2 -0
- package/dist/IconAwardStar-8128aca1.js +16 -0
- package/dist/IconBed-3b1fa670.js +16 -0
- package/dist/IconBed-8bcac0c0.cjs +2 -0
- package/dist/IconBookmark-3f6454d9.cjs +2 -0
- package/dist/IconBookmark-7d88d664.js +16 -0
- package/dist/IconBunkhouse-348a1518.cjs +2 -0
- package/dist/IconBunkhouse-e7cb965d.js +16 -0
- package/dist/IconCalendarMonth-2fd1e713.js +16 -0
- package/dist/IconCalendarMonth-bb5bbb9b.cjs +2 -0
- package/dist/IconCall-08f3119f.cjs +2 -0
- package/dist/IconCall-8aa582d9.js +16 -0
- package/dist/IconCheck-910929df.cjs +2 -0
- package/dist/IconCheck-cf7470ee.js +16 -0
- package/dist/IconChevronLeft-558206bb.js +16 -0
- package/dist/IconChevronLeft-6626777e.cjs +2 -0
- package/dist/IconChevronRight-28930a0b.js +16 -0
- package/dist/IconChevronRight-91bc7ad1.cjs +2 -0
- package/dist/IconClear-489c5a46.cjs +2 -0
- package/dist/IconClear-9419bf17.js +16 -0
- package/dist/IconClose-538a540f.cjs +2 -0
- package/dist/IconClose-abfb6177.js +16 -0
- package/dist/IconDelete-5cc224a1.cjs +2 -0
- package/dist/IconDelete-67b69553.js +16 -0
- package/dist/IconDiamond-4e736f5f.cjs +2 -0
- package/dist/IconDiamond-93af488a.js +16 -0
- package/dist/IconDraft-26850369.cjs +2 -0
- package/dist/IconDraft-6e70e48f.js +16 -0
- package/dist/IconEdit-16d34325.js +16 -0
- package/dist/IconEdit-b4d5f175.cjs +2 -0
- package/dist/IconEngine-e51389f9.cjs +2 -0
- package/dist/IconEngine-ee5f92d4.js +20 -0
- package/dist/IconError-4ad48be1.cjs +2 -0
- package/dist/IconError-a2922b95.js +16 -0
- package/dist/IconExpandContent-03a28bfb.cjs +2 -0
- package/dist/IconExpandContent-7e144d1c.js +16 -0
- package/dist/IconExpandLess-3a8a0552.js +16 -0
- package/dist/IconExpandLess-59a80211.cjs +2 -0
- package/dist/IconExpandMore-c600148e.js +16 -0
- package/dist/IconExpandMore-edf55cdd.cjs +2 -0
- package/dist/IconFacebook-4658b533.js +16 -0
- package/dist/IconFacebook-9c43095a.cjs +2 -0
- package/dist/IconFavorite-43091cef.cjs +2 -0
- package/dist/IconFavorite-d23faefe.js +16 -0
- package/dist/IconFavoriteFilled-71277849.cjs +2 -0
- package/dist/IconFavoriteFilled-aa0d6d5e.js +16 -0
- package/dist/IconFormatBold-4faa5f99.cjs +2 -0
- package/dist/IconFormatBold-70a5cacf.js +16 -0
- package/dist/IconFormatItalic-c06504d7.js +16 -0
- package/dist/IconFormatItalic-fee490fc.cjs +2 -0
- package/dist/IconFormatListBulleted-9493858a.js +16 -0
- package/dist/IconFormatListBulleted-d0a77d0e.cjs +2 -0
- package/dist/IconForum-22217aa0.cjs +2 -0
- package/dist/IconForum-ae4ad63f.js +16 -0
- package/dist/IconGas-198d529d.js +16 -0
- package/dist/IconGas-9d623313.cjs +2 -0
- package/dist/IconGavel-44c29036.js +16 -0
- package/dist/IconGavel-aacae653.cjs +2 -0
- package/dist/IconGoogle-77ec192e.cjs +2 -0
- package/dist/IconGoogle-febad0d8.js +31 -0
- package/dist/IconGooglePay-049e93ec.cjs +2 -0
- package/dist/IconGooglePay-8cf0286e.js +16 -0
- package/dist/IconGrid-1693599f.cjs +2 -0
- package/dist/IconGrid-25f665e0.js +16 -0
- package/dist/IconHeight-4fae7545.js +16 -0
- package/dist/IconHeight-d8ee424f.cjs +2 -0
- package/dist/IconHelp-340ee4fb.js +16 -0
- package/dist/IconHelp-43137a66.cjs +2 -0
- package/dist/IconInfo-2d14575c.cjs +2 -0
- package/dist/IconInfo-efead10b.js +16 -0
- package/dist/IconInsertText-00236a65.js +16 -0
- package/dist/IconInsertText-14c80b9a.cjs +2 -0
- package/dist/IconInstagram-43bb02ea.cjs +2 -0
- package/dist/IconInstagram-57188d29.js +16 -0
- package/dist/IconIosShare-167aa8c4.js +16 -0
- package/dist/IconIosShare-526a016a.cjs +2 -0
- package/dist/IconLayout-2865e0eb.js +16 -0
- package/dist/IconLayout-e663120e.cjs +2 -0
- package/dist/IconLevellingJack-04860178.js +20 -0
- package/dist/IconLevellingJack-40c63f7c.cjs +2 -0
- package/dist/IconLinkedIn-088a3792.cjs +2 -0
- package/dist/IconLinkedIn-f29c217d.js +16 -0
- package/dist/IconLocalShipping-901a3e4c.js +16 -0
- package/dist/IconLocalShipping-9bca5a95.cjs +2 -0
- package/dist/IconLock-1c996287.cjs +2 -0
- package/dist/IconLock-47669e20.js +16 -0
- package/dist/IconMail-9b85058a.js +16 -0
- package/dist/IconMail-f2b8fee4.cjs +2 -0
- package/dist/IconMenu-4bed57f3.js +16 -0
- package/dist/IconMenu-c7c2b143.cjs +2 -0
- package/dist/IconMoreHoriz-2aabe29f.js +16 -0
- package/dist/IconMoreHoriz-2c82da62.cjs +2 -0
- package/dist/IconNotifications-01f7658b.cjs +2 -0
- package/dist/IconNotifications-bcbf1d8c.js +16 -0
- package/dist/IconOdometer-709f4f00.js +16 -0
- package/dist/IconOdometer-a1bc108b.cjs +2 -0
- package/dist/IconOpenInNew-78fffcfe.js +16 -0
- package/dist/IconOpenInNew-9032f1db.cjs +2 -0
- package/dist/IconPalette-22865300.js +16 -0
- package/dist/IconPalette-269c7286.cjs +2 -0
- package/dist/IconPaypal-427e8667.cjs +2 -0
- package/dist/IconPaypal-c28e6dbe.js +16 -0
- package/dist/IconPerson-7ada8b07.js +16 -0
- package/dist/IconPerson-ee87961e.cjs +2 -0
- package/dist/IconPhotoCamera-31a58b85.js +16 -0
- package/dist/IconPhotoCamera-56cb060d.cjs +2 -0
- package/dist/IconPinterest-87034fbf.cjs +2 -0
- package/dist/IconPinterest-fe5cc414.js +16 -0
- package/dist/IconPlayArrow-1ed5d884.js +16 -0
- package/dist/IconPlayArrow-80f601bf.cjs +2 -0
- package/dist/IconPowerOff-0e3118bf.cjs +2 -0
- package/dist/IconPowerOff-dbade32b.js +16 -0
- package/dist/IconRemove-73b05132.cjs +2 -0
- package/dist/IconRemove-bab221ba.js +16 -0
- package/dist/IconRoundedCorners-53cb2cfc.cjs +2 -0
- package/dist/IconRoundedCorners-e21c4321.js +16 -0
- package/dist/IconRuler-0ceea80a.js +16 -0
- package/dist/IconRuler-5feb5a83.cjs +2 -0
- package/dist/IconRvClassA-80da0dc5.cjs +2 -0
- package/dist/IconRvClassA-e2335760.js +20 -0
- package/dist/IconRvClassB-2032c703.cjs +2 -0
- package/dist/IconRvClassB-ae8261fe.js +20 -0
- package/dist/IconRvClassC-1d11671a.cjs +2 -0
- package/dist/IconRvClassC-c1ff2a5a.js +20 -0
- package/dist/IconRvFifthWheel-b234c67c.cjs +2 -0
- package/dist/IconRvFifthWheel-d201d502.js +20 -0
- package/dist/IconRvFishHouse-b35e6ac1.js +20 -0
- package/dist/IconRvFishHouse-f6edfbbd.cjs +2 -0
- package/dist/IconRvParkModel-20bf39bc.js +20 -0
- package/dist/IconRvParkModel-3707f77a.cjs +2 -0
- package/dist/IconRvPopUpCamper-14ac6a8d.js +20 -0
- package/dist/IconRvPopUpCamper-912c58c2.cjs +2 -0
- package/dist/IconRvTravelTrailer-44a5f64d.cjs +2 -0
- package/dist/IconRvTravelTrailer-e7c21b4c.js +20 -0
- package/dist/IconRvTruckCamper-661b0c28.js +20 -0
- package/dist/IconRvTruckCamper-ce2393f4.cjs +2 -0
- package/dist/IconSearch-45b2c0e5.cjs +2 -0
- package/dist/IconSearch-f8faefb4.js +16 -0
- package/dist/IconSeating-2ca8921d.js +16 -0
- package/dist/IconSeating-bc19b98f.cjs +2 -0
- package/dist/IconSell-b011ac2d.js +16 -0
- package/dist/IconSell-bcede586.cjs +2 -0
- package/dist/IconShare-57f28ce3.js +16 -0
- package/dist/IconShare-ff50a973.cjs +2 -0
- package/dist/IconShoppingCart-b532dab0.js +16 -0
- package/dist/IconShoppingCart-eee95744.cjs +2 -0
- package/dist/IconSleeps-b994bd2f.js +16 -0
- package/dist/IconSleeps-ffe0dd67.cjs +2 -0
- package/dist/IconSms-0575f458.cjs +2 -0
- package/dist/IconSms-378f373a.js +16 -0
- package/dist/IconSnowflake-2fccf99d.cjs +2 -0
- package/dist/IconSnowflake-9d956143.js +16 -0
- package/dist/IconStar-1b8ad0f9.js +16 -0
- package/dist/IconStar-e2a88836.cjs +2 -0
- package/dist/IconSwapVert-29258e96.cjs +2 -0
- package/dist/IconSwapVert-8085e942.js +16 -0
- package/dist/IconThreeDRotation-33f086a7.js +29 -0
- package/dist/IconThreeDRotation-7be89ff8.cjs +2 -0
- package/dist/IconTrophy-4d05eb75.cjs +2 -0
- package/dist/IconTrophy-f4be8b54.js +16 -0
- package/dist/IconTune-0913ba01.js +16 -0
- package/dist/IconTune-1276696d.cjs +2 -0
- package/dist/IconTwitter-55b8ba63.cjs +2 -0
- package/dist/IconTwitter-9acefb07.js +16 -0
- package/dist/IconUmbrella-775b11b8.js +16 -0
- package/dist/IconUmbrella-81fdaa63.cjs +2 -0
- package/dist/IconVideocam-33650e6f.js +16 -0
- package/dist/IconVideocam-f5b07935.cjs +2 -0
- package/dist/IconViewInAr-a583aff8.cjs +2 -0
- package/dist/IconViewInAr-d1534ef2.js +16 -0
- package/dist/IconVisibility-4984bcac.cjs +2 -0
- package/dist/IconVisibility-a1c21dd0.js +16 -0
- package/dist/IconVolumeOff-35d350ee.cjs +2 -0
- package/dist/IconVolumeOff-8e121ef3.js +16 -0
- package/dist/IconVolumeOn-386ad18b.cjs +2 -0
- package/dist/IconVolumeOn-992e16dd.js +16 -0
- package/dist/IconWarning-54f3a9ac.cjs +2 -0
- package/dist/IconWarning-6f490acf.js +16 -0
- package/dist/IconWater-0b57b8cc.cjs +2 -0
- package/dist/IconWater-a5f94879.js +16 -0
- package/dist/IconWeight-c6ddd367.cjs +2 -0
- package/dist/IconWeight-e3b3daa6.js +16 -0
- package/dist/IconWidth-a556befc.cjs +2 -0
- package/dist/IconWidth-c81dbc7a.js +16 -0
- package/dist/IconYoutube-a6224033.js +16 -0
- package/dist/IconYoutube-ed951c21.cjs +2 -0
- package/dist/css/dynamic-buttons.css +0 -12
- package/dist/css/reset.css +6 -3
- package/dist/css/utilities.css +21 -5
- package/dist/style.css +1 -1
- package/dist/tide-design-system.cjs +2 -2
- package/dist/tide-design-system.esm.d.ts +21 -1
- package/dist/tide-design-system.esm.js +914 -900
- package/dist/utilities/storybook.ts +2 -5
- package/index.ts +7 -5
- package/package.json +4 -2
- package/src/assets/css/dynamic-buttons.css +0 -12
- package/src/assets/css/reset.css +6 -3
- package/src/assets/css/utilities.css +21 -5
- package/src/assets/svg/icons/IconBunkhouse.svg +3 -0
- package/src/components/TideButton.vue +12 -7
- package/src/components/TideCard.vue +12 -4
- package/src/components/TideColumns.vue +3 -1
- package/src/components/TideIcon.vue +11 -7
- package/src/components/TideInputSelect.vue +1 -1
- package/src/components/TideLink.vue +7 -19
- package/src/stories/FoundationsGap.stories.ts +6 -2
- package/src/stories/TideButton.stories.ts +10 -0
- package/src/stories/TideCard.stories.ts +8 -2
- package/src/stories/TideIcon.stories.ts +2 -1
- package/src/types/Field.ts +1 -1
- package/src/types/Form.ts +1 -1
- package/src/types/Icon.ts +1 -0
- package/src/types/Size.ts +7 -0
- package/src/types/Styles.ts +1 -1
- package/src/utilities/storybook.ts +2 -5
- package/vite-env.d.ts +2 -0
- package/vite.config.ts +2 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ArgTypes } from '@storybook/vue3';
|
|
1
|
+
import type { ArgTypes, StoryContext } from '@storybook/vue3';
|
|
2
2
|
|
|
3
|
-
import { BOOLEAN, BOOLEAN_UNREQUIRED } from '@/types/Storybook';
|
|
3
|
+
import { BOOLEAN, BOOLEAN_UNREQUIRED, NoneAsEmpty, NoneAsUndefined } from '@/types/Storybook';
|
|
4
4
|
import { CSS } from '@/types/Styles';
|
|
5
5
|
import { ELEMENT, ELEMENT_TEXT_AS_ICON } from '@/types/Element';
|
|
6
6
|
|
|
@@ -12,10 +12,7 @@ type KeyValueNamed = {
|
|
|
12
12
|
[key: string]: KeyValue;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
-
import type { StoryContext } from '@storybook/vue3';
|
|
16
|
-
|
|
17
15
|
import { formatKebabCase } from '@/utilities/format';
|
|
18
|
-
import { NoneAsEmpty, NoneAsUndefined } from '@/types/Storybook';
|
|
19
16
|
|
|
20
17
|
export const lineBreak = '\r';
|
|
21
18
|
export const tab = ' ';
|
package/index.ts
CHANGED
|
@@ -48,8 +48,8 @@ import type {
|
|
|
48
48
|
SelectField,
|
|
49
49
|
StringField,
|
|
50
50
|
StringValue,
|
|
51
|
-
TextField,
|
|
52
51
|
TextareaField,
|
|
52
|
+
TextField,
|
|
53
53
|
} from '@/types/Field';
|
|
54
54
|
import type {
|
|
55
55
|
BooleanInput,
|
|
@@ -58,8 +58,8 @@ import type {
|
|
|
58
58
|
Input,
|
|
59
59
|
SelectInput,
|
|
60
60
|
StringInput,
|
|
61
|
-
TextInput,
|
|
62
61
|
TextareaInput,
|
|
62
|
+
TextInput,
|
|
63
63
|
} from '@/types/Form';
|
|
64
64
|
import type { Formatted } from '@/types/Formatted';
|
|
65
65
|
import type { Icon } from '@/types/Icon';
|
|
@@ -71,12 +71,12 @@ import type { Raw } from '@/types/Raw';
|
|
|
71
71
|
import type { Realm } from '@/types/Realm';
|
|
72
72
|
import type { RealmConfig } from '@/types/RealmConfig';
|
|
73
73
|
import type { SelectOption, SelectOptionGroup } from '@/types/Select';
|
|
74
|
-
import type { Size } from '@/types/Size';
|
|
74
|
+
import type { Size, SizeButton } from '@/types/Size';
|
|
75
75
|
import type { CssUtility } from '@/types/Styles';
|
|
76
76
|
import type { Tab } from '@/types/Tab';
|
|
77
77
|
import type { Target } from '@/types/Target';
|
|
78
78
|
import type { TextInputType } from '@/types/TextInput';
|
|
79
|
-
import type { ValidationError,
|
|
79
|
+
import type { ValidationError, ValidationLength, ValidationResult, Validator } from '@/types/Validation';
|
|
80
80
|
|
|
81
81
|
import { ALERT } from '@/types/Alert';
|
|
82
82
|
import { BADGE, BADGE_PREMIUM, BADGE_TRUSTED } from '@/types/Badge';
|
|
@@ -90,7 +90,7 @@ import { ORIENTATION } from '@/types/Orientation';
|
|
|
90
90
|
import { POSITION_CARD_ICON, TYPE_CARD } from '@/types/Card';
|
|
91
91
|
import { PRIORITY } from '@/types/Priority';
|
|
92
92
|
import { REALM } from '@/types/Realm';
|
|
93
|
-
import { SIZE } from '@/types/Size';
|
|
93
|
+
import { SIZE, SIZE_BUTTON } from '@/types/Size';
|
|
94
94
|
import { TARGET } from '@/types/Target';
|
|
95
95
|
import { TEXT_INPUT_TYPE } from '@/types/TextInput';
|
|
96
96
|
import { VALIDATOR } from '@/types/Validation';
|
|
@@ -139,6 +139,7 @@ export type {
|
|
|
139
139
|
SelectOptionGroup,
|
|
140
140
|
SelectOption,
|
|
141
141
|
Size,
|
|
142
|
+
SizeButton,
|
|
142
143
|
StringField,
|
|
143
144
|
StringInput,
|
|
144
145
|
StringValue,
|
|
@@ -177,6 +178,7 @@ export {
|
|
|
177
178
|
PRIORITY,
|
|
178
179
|
REALM,
|
|
179
180
|
SIZE,
|
|
181
|
+
SIZE_BUTTON,
|
|
180
182
|
TARGET,
|
|
181
183
|
TEXT_INPUT_TYPE,
|
|
182
184
|
TYPE_CARD,
|
package/package.json
CHANGED
|
@@ -18,6 +18,8 @@
|
|
|
18
18
|
"@vue/eslint-config-typescript": "^11.0.2",
|
|
19
19
|
"@vue/test-utils": "^2.0.0-rc.18",
|
|
20
20
|
"@vue/tsconfig": "^0.4.0",
|
|
21
|
+
"eslint-import-resolver-alias": "^1.1.2",
|
|
22
|
+
"eslint-plugin-import": "^2.31.0",
|
|
21
23
|
"eslint-plugin-storybook": "^0.8.0",
|
|
22
24
|
"eslint-plugin-vue": "^9.9.0",
|
|
23
25
|
"happy-dom": "^15.10.2",
|
|
@@ -38,7 +40,7 @@
|
|
|
38
40
|
"name": "tide-design-system",
|
|
39
41
|
"scripts": {
|
|
40
42
|
"build": "npm run enforce && npm run build-vite",
|
|
41
|
-
"build-storybook": "npm run build-vite && storybook build && cp -r src/assets/
|
|
43
|
+
"build-storybook": "npm run build-vite && storybook build && cp -r src/assets/ storybook-static/",
|
|
42
44
|
"build-vite": "vite build && cp -r src/assets/css/ dist/css/ && cp -r src/utilities/ dist/utilities/",
|
|
43
45
|
"coverage": "vitest run --coverage",
|
|
44
46
|
"dev": "vite",
|
|
@@ -55,5 +57,5 @@
|
|
|
55
57
|
"main": "dist/tide-design-system.cjs",
|
|
56
58
|
"module": "dist/tide-design-system.esm.js",
|
|
57
59
|
"types": "dist/tide-design-system.esm.d.ts",
|
|
58
|
-
"version": "2.0.
|
|
60
|
+
"version": "2.0.49"
|
|
59
61
|
}
|
|
@@ -1,15 +1,3 @@
|
|
|
1
|
-
.tide-link-as-button,
|
|
2
|
-
.tide-button {
|
|
3
|
-
padding-top: 0.75rem;
|
|
4
|
-
padding-bottom: 0.75rem;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.tide-link-as-button.tide-button-quaternary,
|
|
8
|
-
.tide-button.tide-button-quaternary {
|
|
9
|
-
padding-right: 1rem;
|
|
10
|
-
padding-left: 1rem;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
1
|
/* Rest State */
|
|
14
2
|
.tide-button-primary {
|
|
15
3
|
background: var(--tide-primary);
|
package/src/assets/css/reset.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
html,
|
|
2
1
|
body {
|
|
3
2
|
color: var(--tide-on-surface);
|
|
3
|
+
font-weight: 500;
|
|
4
|
+
line-height: 1.4;
|
|
4
5
|
}
|
|
5
6
|
|
|
6
7
|
*,
|
|
@@ -12,9 +13,12 @@ body {
|
|
|
12
13
|
padding: 0;
|
|
13
14
|
color: inherit;
|
|
14
15
|
font-family: Montserrat;
|
|
15
|
-
font-weight:
|
|
16
|
+
font-weight: inherit;
|
|
17
|
+
line-height: inherit;
|
|
16
18
|
-webkit-font-smoothing: antialiased;
|
|
17
19
|
-moz-osx-font-smoothing: grayscale;
|
|
20
|
+
text-underline-offset: .2em;
|
|
21
|
+
text-decoration-skip-ink: none;
|
|
18
22
|
}
|
|
19
23
|
|
|
20
24
|
h1 {font-size: var(--tide-font-32);} /* 32px */
|
|
@@ -42,7 +46,6 @@ img {
|
|
|
42
46
|
|
|
43
47
|
p {
|
|
44
48
|
max-width: 80ch;
|
|
45
|
-
line-height: 150%;
|
|
46
49
|
}
|
|
47
50
|
|
|
48
51
|
button,
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
.tide-margin-y-1 {margin-top: var(--tide-spacing-1); margin-bottom: var(--tide-spacing-1);}
|
|
84
84
|
.tide-margin-y-2 {margin-top: var(--tide-spacing-2); margin-bottom: var(--tide-spacing-2);}
|
|
85
85
|
.tide-margin-y-4 {margin-top: var(--tide-spacing-4); margin-bottom: var(--tide-spacing-4);}
|
|
86
|
+
.tide-margin-y-auto {margin-top: var(--tide-spacing-auto); margin-bottom: var(--tide-spacing-auto);}
|
|
86
87
|
|
|
87
88
|
.tide-margin-top-0 {margin-top: 0;}
|
|
88
89
|
.tide-margin-top-1\/4 {margin-top: var(--tide-spacing-1\/4);}
|
|
@@ -90,6 +91,7 @@
|
|
|
90
91
|
.tide-margin-top-1 {margin-top: var(--tide-spacing-1);}
|
|
91
92
|
.tide-margin-top-2 {margin-top: var(--tide-spacing-2);}
|
|
92
93
|
.tide-margin-top-4 {margin-top: var(--tide-spacing-4);}
|
|
94
|
+
.tide-margin-top-auto {margin-top: var(--tide-spacing-auto);}
|
|
93
95
|
|
|
94
96
|
.tide-margin-right-0 {margin-right: 0;}
|
|
95
97
|
.tide-margin-right-1\/4 {margin-right: var(--tide-spacing-1\/4);}
|
|
@@ -105,8 +107,10 @@
|
|
|
105
107
|
.tide-margin-bottom-1 {margin-bottom: var(--tide-spacing-1);}
|
|
106
108
|
.tide-margin-bottom-2 {margin-bottom: var(--tide-spacing-2);}
|
|
107
109
|
.tide-margin-bottom-4 {margin-bottom: var(--tide-spacing-4);}
|
|
110
|
+
.tide-margin-bottom-auto {margin-bottom: var(--tide-spacing-auto);}
|
|
108
111
|
|
|
109
112
|
.tide-margin-left-0 {margin-left: 0;}
|
|
113
|
+
.tide-margin-left-1\/4 {margin-left: var(--tide-spacing-1\/2);}
|
|
110
114
|
.tide-margin-left-1\/2 {margin-left: var(--tide-spacing-1\/2);}
|
|
111
115
|
.tide-margin-left-1 {margin-left: var(--tide-spacing-1);}
|
|
112
116
|
.tide-margin-left-2 {margin-left: var(--tide-spacing-2);}
|
|
@@ -285,7 +289,7 @@
|
|
|
285
289
|
|
|
286
290
|
.tide-isolate {isolation: isolate;}
|
|
287
291
|
|
|
288
|
-
.tide-leading-default {line-height:
|
|
292
|
+
.tide-leading-default {line-height: 1.4;}
|
|
289
293
|
.tide-leading-normal {line-height: normal;}
|
|
290
294
|
|
|
291
295
|
.tide-list-none {list-style-type: none;}
|
|
@@ -453,6 +457,7 @@
|
|
|
453
457
|
.sm-tide-margin-top-1 {margin-top: var(--tide-spacing-1);}
|
|
454
458
|
.sm-tide-margin-top-2 {margin-top: var(--tide-spacing-2);}
|
|
455
459
|
.sm-tide-margin-top-4 {margin-top: var(--tide-spacing-4);}
|
|
460
|
+
.sm-tide-margin-top-auto {margin-top: auto;}
|
|
456
461
|
|
|
457
462
|
.sm-tide-margin-right-0 {margin-right: 0;}
|
|
458
463
|
.sm-tide-margin-right-1\/4 {margin-right: var(--tide-spacing-1\/4);}
|
|
@@ -468,8 +473,10 @@
|
|
|
468
473
|
.sm-tide-margin-bottom-1 {margin-bottom: var(--tide-spacing-1);}
|
|
469
474
|
.sm-tide-margin-bottom-2 {margin-bottom: var(--tide-spacing-2);}
|
|
470
475
|
.sm-tide-margin-bottom-4 {margin-bottom: var(--tide-spacing-4);}
|
|
476
|
+
.sm-tide-margin-bottom-auto {margin-bottom: auto;}
|
|
471
477
|
|
|
472
478
|
.sm-tide-margin-left-0 {margin-left: 0;}
|
|
479
|
+
.sm-tide-margin-left-1\/4 {margin-left: var(--tide-spacing-1\/4);}
|
|
473
480
|
.sm-tide-margin-left-1\/2 {margin-left: var(--tide-spacing-1\/2);}
|
|
474
481
|
.sm-tide-margin-left-1 {margin-left: var(--tide-spacing-1);}
|
|
475
482
|
.sm-tide-margin-left-2 {margin-left: var(--tide-spacing-2);}
|
|
@@ -648,7 +655,7 @@
|
|
|
648
655
|
|
|
649
656
|
.sm-tide-isolate {isolation: isolate;}
|
|
650
657
|
|
|
651
|
-
.sm-tide-leading-default {line-height:
|
|
658
|
+
.sm-tide-leading-default {line-height: 1.4;}
|
|
652
659
|
.sm-tide-leading-normal {line-height: normal;}
|
|
653
660
|
|
|
654
661
|
.sm-tide-list-none {list-style-type: none;}
|
|
@@ -817,6 +824,7 @@
|
|
|
817
824
|
.md-tide-margin-top-1 {margin-top: var(--tide-spacing-1);}
|
|
818
825
|
.md-tide-margin-top-2 {margin-top: var(--tide-spacing-2);}
|
|
819
826
|
.md-tide-margin-top-4 {margin-top: var(--tide-spacing-4);}
|
|
827
|
+
.md-tide-margin-top-auto {margin-top: auto;}
|
|
820
828
|
|
|
821
829
|
.md-tide-margin-right-0 {margin-right: 0;}
|
|
822
830
|
.md-tide-margin-right-1\/4 {margin-right: var(--tide-spacing-1\/4);}
|
|
@@ -832,8 +840,10 @@
|
|
|
832
840
|
.md-tide-margin-bottom-1 {margin-bottom: var(--tide-spacing-1);}
|
|
833
841
|
.md-tide-margin-bottom-2 {margin-bottom: var(--tide-spacing-2);}
|
|
834
842
|
.md-tide-margin-bottom-4 {margin-bottom: var(--tide-spacing-4);}
|
|
843
|
+
.md-tide-margin-bottom-auto {margin-bottom: auto;}
|
|
835
844
|
|
|
836
845
|
.md-tide-margin-left-0 {margin-left: 0;}
|
|
846
|
+
.md-tide-margin-left-1\/4 {margin-left: var(--tide-spacing-1\/4);}
|
|
837
847
|
.md-tide-margin-left-1\/2 {margin-left: var(--tide-spacing-1\/2);}
|
|
838
848
|
.md-tide-margin-left-1 {margin-left: var(--tide-spacing-1);}
|
|
839
849
|
.md-tide-margin-left-2 {margin-left: var(--tide-spacing-2);}
|
|
@@ -1012,7 +1022,7 @@
|
|
|
1012
1022
|
|
|
1013
1023
|
.md-tide-isolate {isolation: isolate;}
|
|
1014
1024
|
|
|
1015
|
-
.md-tide-leading-default {line-height:
|
|
1025
|
+
.md-tide-leading-default {line-height: 1.4;}
|
|
1016
1026
|
.md-tide-leading-normal {line-height: normal;}
|
|
1017
1027
|
|
|
1018
1028
|
.md-tide-list-none {list-style-type: none;}
|
|
@@ -1181,6 +1191,7 @@
|
|
|
1181
1191
|
.lg-tide-margin-top-1 {margin-top: var(--tide-spacing-1);}
|
|
1182
1192
|
.lg-tide-margin-top-2 {margin-top: var(--tide-spacing-2);}
|
|
1183
1193
|
.lg-tide-margin-top-4 {margin-top: var(--tide-spacing-4);}
|
|
1194
|
+
.lg-tide-margin-top-auto {margin-top: auto;}
|
|
1184
1195
|
|
|
1185
1196
|
.lg-tide-margin-right-0 {margin-right: 0;}
|
|
1186
1197
|
.lg-tide-margin-right-1\/4 {margin-right: var(--tide-spacing-1\/4);}
|
|
@@ -1196,8 +1207,10 @@
|
|
|
1196
1207
|
.lg-tide-margin-bottom-1 {margin-bottom: var(--tide-spacing-1);}
|
|
1197
1208
|
.lg-tide-margin-bottom-2 {margin-bottom: var(--tide-spacing-2);}
|
|
1198
1209
|
.lg-tide-margin-bottom-4 {margin-bottom: var(--tide-spacing-4);}
|
|
1210
|
+
.lg-tide-margin-bottom-auto {margin-bottom: auto;}
|
|
1199
1211
|
|
|
1200
1212
|
.lg-tide-margin-left-0 {margin-left: 0;}
|
|
1213
|
+
.lg-tide-margin-left-1\/4 {margin-left: var(--tide-spacing-1\/4);}
|
|
1201
1214
|
.lg-tide-margin-left-1\/2 {margin-left: var(--tide-spacing-1\/2);}
|
|
1202
1215
|
.lg-tide-margin-left-1 {margin-left: var(--tide-spacing-1);}
|
|
1203
1216
|
.lg-tide-margin-left-2 {margin-left: var(--tide-spacing-2);}
|
|
@@ -1376,7 +1389,7 @@
|
|
|
1376
1389
|
|
|
1377
1390
|
.lg-tide-isolate {isolation: isolate;}
|
|
1378
1391
|
|
|
1379
|
-
.lg-tide-leading-default {line-height:
|
|
1392
|
+
.lg-tide-leading-default {line-height: 1.4;}
|
|
1380
1393
|
.lg-tide-leading-normal {line-height: normal;}
|
|
1381
1394
|
|
|
1382
1395
|
.lg-tide-list-none {list-style-type: none;}
|
|
@@ -1545,6 +1558,7 @@
|
|
|
1545
1558
|
.xl-tide-margin-top-1 {margin-top: var(--tide-spacing-1);}
|
|
1546
1559
|
.xl-tide-margin-top-2 {margin-top: var(--tide-spacing-2);}
|
|
1547
1560
|
.xl-tide-margin-top-4 {margin-top: var(--tide-spacing-4);}
|
|
1561
|
+
.xl-tide-margin-top-auto {margin-top: auto;}
|
|
1548
1562
|
|
|
1549
1563
|
.xl-tide-margin-right-0 {margin-right: 0;}
|
|
1550
1564
|
.xl-tide-margin-right-1\/4 {margin-right: var(--tide-spacing-1\/4);}
|
|
@@ -1560,8 +1574,10 @@
|
|
|
1560
1574
|
.xl-tide-margin-bottom-1 {margin-bottom: var(--tide-spacing-1);}
|
|
1561
1575
|
.xl-tide-margin-bottom-2 {margin-bottom: var(--tide-spacing-2);}
|
|
1562
1576
|
.xl-tide-margin-bottom-4 {margin-bottom: var(--tide-spacing-4);}
|
|
1577
|
+
.xl-tide-margin-bottom-auto {margin-bottom: auto;}
|
|
1563
1578
|
|
|
1564
1579
|
.xl-tide-margin-left-0 {margin-left: 0;}
|
|
1580
|
+
.xl-tide-margin-left-1\/4 {margin-left: var(--tide-spacing-1\/4);}
|
|
1565
1581
|
.xl-tide-margin-left-1\/2 {margin-left: var(--tide-spacing-1\/2);}
|
|
1566
1582
|
.xl-tide-margin-left-1 {margin-left: var(--tide-spacing-1);}
|
|
1567
1583
|
.xl-tide-margin-left-2 {margin-left: var(--tide-spacing-2);}
|
|
@@ -1740,7 +1756,7 @@
|
|
|
1740
1756
|
|
|
1741
1757
|
.xl-tide-isolate {isolation: isolate;}
|
|
1742
1758
|
|
|
1743
|
-
.xl-tide-leading-default {line-height:
|
|
1759
|
+
.xl-tide-leading-default {line-height: 1.4;}
|
|
1744
1760
|
.xl-tide-leading-normal {line-height: normal;}
|
|
1745
1761
|
|
|
1746
1762
|
.xl-tide-list-none {list-style-type: none;}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
|
|
2
|
+
<path d="M5.95 21a.87.87 0 0 1-.75-.39.94.94 0 0 1-.15-.84L9.5 3.7a.98.98 0 0 1 .35-.51.93.93 0 0 1 .58-.19c.33 0 .59.13.77.39.18.26.23.53.15.83L10.85 6h5.63l.62-2.3a.99.99 0 0 1 .95-.7c.32 0 .57.13.75.39.18.26.23.53.15.83L14.5 20.3a.98.98 0 0 1-.35.51.93.93 0 0 1-.58.19.9.9 0 0 1-.77-.39.95.95 0 0 1-.15-.84l.5-1.77H7.53l-.63 2.3a.99.99 0 0 1-.95.7Zm3.53-10h5.6l.82-3h-5.6l-.82 3ZM8.1 16h5.6l.83-3h-5.6l-.83 3Z" />
|
|
3
|
+
</svg>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
import { CSS } from '@/types/Styles';
|
|
8
8
|
import { ELEMENT } from '@/types/Element';
|
|
9
9
|
import { PRIORITY } from '@/types/Priority';
|
|
10
|
-
import { SIZE } from '@/types/Size';
|
|
10
|
+
import { SIZE, SIZE_BUTTON, type SizeButton } from '@/types/Size';
|
|
11
11
|
import { TARGET } from '@/types/Target';
|
|
12
12
|
|
|
13
13
|
type Props = {
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
isNewTab?: boolean;
|
|
20
20
|
label: string;
|
|
21
21
|
priority?: Priority;
|
|
22
|
+
size?: SizeButton;
|
|
22
23
|
};
|
|
23
24
|
|
|
24
25
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -30,19 +31,23 @@
|
|
|
30
31
|
isNewTab: false,
|
|
31
32
|
label: undefined,
|
|
32
33
|
priority: PRIORITY.PRIMARY,
|
|
34
|
+
size: SIZE_BUTTON.LARGE,
|
|
33
35
|
});
|
|
34
36
|
</script>
|
|
35
37
|
|
|
36
38
|
<template>
|
|
37
39
|
<component
|
|
38
40
|
:class="[
|
|
39
|
-
|
|
41
|
+
'tide-button',
|
|
40
42
|
props.priority && `tide-button-${props.priority}`,
|
|
41
43
|
props.element === ELEMENT.LINK ? [CSS.DISPLAY.INLINE_FLEX] : [CSS.DISPLAY.FLEX],
|
|
42
|
-
[CSS.AXIS1.CENTER, CSS.AXIS2.CENTER, CSS.GAP.HALF, CSS.BORDER.RADIUS.HALF],
|
|
43
44
|
props.element === ELEMENT.LINK ? CSS.UNDERLINE.OFF : '',
|
|
44
|
-
CSS.PADDING.
|
|
45
|
-
CSS.PADDING.X.TWO,
|
|
45
|
+
size === SIZE_BUTTON.SMALL && [CSS.FONT.ROLE.BUTTON_2, CSS.PADDING.X.ONE, CSS.PADDING.Y.HALF],
|
|
46
|
+
size === SIZE_BUTTON.LARGE && [CSS.FONT.ROLE.BUTTON_1, CSS.PADDING.X.TWO, CSS.PADDING.Y.ONE],
|
|
47
|
+
CSS.AXIS1.CENTER,
|
|
48
|
+
CSS.AXIS2.CENTER,
|
|
49
|
+
CSS.GAP.HALF,
|
|
50
|
+
CSS.BORDER.RADIUS.HALF,
|
|
46
51
|
CSS.FONT.WEIGHT.SIX_HUNDRED,
|
|
47
52
|
]"
|
|
48
53
|
:disabled="props.element === ELEMENT.BUTTON && props.disabled"
|
|
@@ -52,7 +57,7 @@
|
|
|
52
57
|
>
|
|
53
58
|
<TideIcon
|
|
54
59
|
:icon="props.iconLeading"
|
|
55
|
-
:size="SIZE.LARGE"
|
|
60
|
+
:size="size === SIZE_BUTTON.LARGE ? SIZE.LARGE : SIZE.SMALL"
|
|
56
61
|
v-if="props.iconLeading"
|
|
57
62
|
/>
|
|
58
63
|
|
|
@@ -60,7 +65,7 @@
|
|
|
60
65
|
|
|
61
66
|
<TideIcon
|
|
62
67
|
:icon="props.iconTrailing"
|
|
63
|
-
:size="SIZE.LARGE"
|
|
68
|
+
:size="size === SIZE_BUTTON.LARGE ? SIZE.LARGE : SIZE.SMALL"
|
|
64
69
|
v-if="props.iconTrailing"
|
|
65
70
|
/>
|
|
66
71
|
</component>
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import {
|
|
2
|
+
import type { CardIconPosition, CardType } from '@/types/Card';
|
|
3
3
|
import type { Icon } from '@/types/Icon';
|
|
4
|
+
|
|
5
|
+
import TideIcon from '@/components/TideIcon.vue';
|
|
4
6
|
import { CSS } from '@/types/Styles';
|
|
7
|
+
import { POSITION_CARD_ICON, TYPE_CARD } from '@/types/Card';
|
|
5
8
|
import { SIZE } from '@/types/Size';
|
|
6
|
-
import TideIcon from '@/components/TideIcon.vue';
|
|
7
9
|
|
|
8
10
|
type Props = {
|
|
9
11
|
description?: string;
|
|
@@ -12,10 +14,12 @@
|
|
|
12
14
|
iconPosition: CardIconPosition;
|
|
13
15
|
selected?: boolean;
|
|
14
16
|
type: CardType;
|
|
17
|
+
href?: string;
|
|
15
18
|
};
|
|
16
19
|
|
|
17
20
|
withDefaults(defineProps<Props>(), {
|
|
18
21
|
description: undefined,
|
|
22
|
+
href: undefined,
|
|
19
23
|
icon: undefined,
|
|
20
24
|
iconPosition: POSITION_CARD_ICON.LEFT,
|
|
21
25
|
selected: undefined,
|
|
@@ -41,16 +45,20 @@
|
|
|
41
45
|
type !== TYPE_CARD.INFORMATIONAL && 'hoverable',
|
|
42
46
|
type === TYPE_CARD.SELECTABLE && selected && 'selected',
|
|
43
47
|
]"
|
|
44
|
-
:
|
|
48
|
+
:href="href"
|
|
49
|
+
:is="href ? 'a' : type === TYPE_CARD.INFORMATIONAL ? 'div' : 'button'"
|
|
45
50
|
>
|
|
46
51
|
<TideIcon
|
|
52
|
+
:class="[CSS.FLEX.GROW.OFF, CSS.FLEX.SHRINK.OFF]"
|
|
47
53
|
:icon="icon"
|
|
48
54
|
:size="SIZE.SMALL"
|
|
49
55
|
v-if="icon"
|
|
50
56
|
/>
|
|
51
57
|
|
|
52
58
|
<div :class="[CSS.AXIS2.START, CSS.DISPLAY.FLEX, CSS.FLEX.DIRECTION.COLUMN, CSS.GAP.HALF]">
|
|
53
|
-
<div :class="[CSS.FONT.ROLE.LABEL_1_SEMIBOLD, CSS.FONT.COLOR.SURFACE.DEFAULT]">
|
|
59
|
+
<div :class="[CSS.FONT.ROLE.LABEL_1_SEMIBOLD, CSS.FONT.COLOR.SURFACE.DEFAULT]">
|
|
60
|
+
{{ heading }}
|
|
61
|
+
</div>
|
|
54
62
|
|
|
55
63
|
<div
|
|
56
64
|
:class="[CSS.FONT.ROLE.LABEL_2, CSS.FONT.COLOR.SURFACE.VARIANT]"
|
|
@@ -12,7 +12,9 @@
|
|
|
12
12
|
|
|
13
13
|
<template>
|
|
14
14
|
<section class="tide-columns">
|
|
15
|
-
<h2 :class="[CSS.MARGIN.BOTTOM.HALF, CSS.FONT.SIZE.SIXTEEN]">
|
|
15
|
+
<h2 :class="[CSS.MARGIN.BOTTOM.HALF, CSS.FONT.SIZE.SIXTEEN]">
|
|
16
|
+
{{ props.heading }}
|
|
17
|
+
</h2>
|
|
16
18
|
|
|
17
19
|
<ul :class="[CSS.DISPLAY.FLEX, CSS.FLEX.WRAP, CSS.GAP.TWO, CSS.LIST_BULLETS.OFF]">
|
|
18
20
|
<li class="tide-columns-column">
|
|
@@ -24,16 +24,18 @@
|
|
|
24
24
|
watch(
|
|
25
25
|
() => props.icon,
|
|
26
26
|
async () => {
|
|
27
|
-
const id = props.icon
|
|
28
|
-
const
|
|
29
|
-
const
|
|
27
|
+
const id: string = props.icon;
|
|
28
|
+
const name = formatPascalCase(id);
|
|
29
|
+
const [prefix] = id.split('-');
|
|
30
30
|
const realmFolder = REALM[prefix?.toUpperCase() as keyof typeof REALM];
|
|
31
|
+
const component = defineAsyncComponent(() => {
|
|
32
|
+
if (realmFolder) {
|
|
33
|
+
return import(`../assets/svg/icons/realm/${realmFolder}/Icon${name}.svg?component`);
|
|
34
|
+
}
|
|
31
35
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
: `../assets/svg/icons/Icon${name}.svg`;
|
|
36
|
+
return import(`../assets/svg/icons/Icon${name}.svg?component`);
|
|
37
|
+
});
|
|
35
38
|
|
|
36
|
-
const component = defineAsyncComponent(() => import(componentPath));
|
|
37
39
|
innerSVG.value = markRaw(component);
|
|
38
40
|
},
|
|
39
41
|
{ immediate: true }
|
|
@@ -57,10 +59,12 @@
|
|
|
57
59
|
width: 1.5rem;
|
|
58
60
|
height: 1.5rem;
|
|
59
61
|
}
|
|
62
|
+
|
|
60
63
|
.tide-icon.small {
|
|
61
64
|
width: 1.25rem;
|
|
62
65
|
height: 1.25rem;
|
|
63
66
|
}
|
|
67
|
+
|
|
64
68
|
.tide-icon svg {
|
|
65
69
|
width: 100%;
|
|
66
70
|
height: 100%;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
import { CSS } from '@/types/Styles';
|
|
9
9
|
import { ICON } from '@/types/Icon';
|
|
10
10
|
import { SIZE } from '@/types/Size';
|
|
11
|
-
import {
|
|
11
|
+
import { getErrorMessage, getFieldHasError } from '@/utilities/validation';
|
|
12
12
|
|
|
13
13
|
interface Props extends SelectField {
|
|
14
14
|
inputId?: string;
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
import { computed } from 'vue';
|
|
3
|
-
|
|
4
2
|
import type { Element } from '@/types/Element';
|
|
5
3
|
import type { Icon } from '@/types/Icon';
|
|
6
4
|
|
|
@@ -16,6 +14,7 @@
|
|
|
16
14
|
iconTrailing?: Icon;
|
|
17
15
|
isNewTab?: boolean;
|
|
18
16
|
label: string;
|
|
17
|
+
typography?: (typeof CSS.FONT.ROLE)['LINK_1' | 'LINK_2' | 'LINK_3'];
|
|
19
18
|
};
|
|
20
19
|
|
|
21
20
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -25,40 +24,29 @@
|
|
|
25
24
|
iconTrailing: undefined,
|
|
26
25
|
isNewTab: false,
|
|
27
26
|
label: undefined,
|
|
27
|
+
typography: CSS.FONT.ROLE.LINK_1,
|
|
28
28
|
});
|
|
29
|
-
|
|
30
|
-
const hasIcon = computed(() => props.iconLeading || props.iconTrailing);
|
|
31
29
|
</script>
|
|
32
30
|
|
|
33
31
|
<template>
|
|
34
32
|
<component
|
|
35
|
-
:class="[
|
|
36
|
-
props.element === ELEMENT.LINK ? 'tide-button-as-link' : 'tide-link',
|
|
37
|
-
hasIcon
|
|
38
|
-
? [CSS.DISPLAY.INLINE_FLEX, CSS.AXIS2.CENTER, CSS.GAP.HALF]
|
|
39
|
-
: [CSS.FONT.WEIGHT.FIVE_HUNDRED, CSS.UNDERLINE.ON],
|
|
40
|
-
]"
|
|
33
|
+
:class="['tide-link', CSS.DISPLAY.INLINE, CSS.UNDERLINE.ON, CSS.ALIGN.X.LEFT, typography]"
|
|
41
34
|
:href="props.href"
|
|
42
35
|
:target="props.isNewTab ? TARGET.BLANK : TARGET.SELF"
|
|
43
36
|
:is="props.element === ELEMENT.LINK ? ELEMENT.LINK : ELEMENT.BUTTON"
|
|
44
37
|
>
|
|
45
38
|
<TideIcon
|
|
39
|
+
:class="[CSS.DISPLAY.INLINE_BLOCK, CSS.ALIGN.Y.MIDDLE, CSS.MARGIN.RIGHT.QUARTER]"
|
|
46
40
|
:icon="props.iconLeading"
|
|
47
41
|
v-if="props.iconLeading"
|
|
48
42
|
/>
|
|
49
43
|
|
|
50
|
-
<
|
|
51
|
-
:class="[CSS.FONT.WEIGHT.FIVE_HUNDRED, CSS.UNDERLINE.ON]"
|
|
52
|
-
v-if="hasIcon"
|
|
53
|
-
>
|
|
54
|
-
{{ props.label }}
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<template v-else>
|
|
44
|
+
<span :class="[CSS.ALIGN.Y.MIDDLE]">
|
|
58
45
|
{{ props.label }}
|
|
59
|
-
</
|
|
46
|
+
</span>
|
|
60
47
|
|
|
61
48
|
<TideIcon
|
|
49
|
+
:class="[CSS.DISPLAY.INLINE_BLOCK, CSS.ALIGN.Y.MIDDLE, CSS.MARGIN.LEFT.QUARTER]"
|
|
62
50
|
:icon="props.iconTrailing"
|
|
63
51
|
v-if="props.iconTrailing"
|
|
64
52
|
/>
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { StoryContext } from '@storybook/vue3';
|
|
2
2
|
|
|
3
3
|
import * as STYLES from '@/types/Storybook';
|
|
4
|
-
import {
|
|
5
|
-
|
|
4
|
+
import {
|
|
5
|
+
argTypeBooleanUnrequired,
|
|
6
|
+
formatArgType,
|
|
7
|
+
getConstantsByValues,
|
|
8
|
+
prependNoneAsEmpty,
|
|
9
|
+
} from '@/utilities/storybook';
|
|
6
10
|
|
|
7
11
|
const FLEX_AXIS1 = prependNoneAsEmpty(STYLES.FLEX_AXIS1);
|
|
8
12
|
const FLEX_AXIS2 = prependNoneAsEmpty(STYLES.FLEX_AXIS2);
|
|
@@ -3,6 +3,7 @@ import { action } from '@storybook/addon-actions';
|
|
|
3
3
|
import * as STANDARD_ELEMENT from '@/types/Element';
|
|
4
4
|
import * as STANDARD_ICON from '@/types/Icon';
|
|
5
5
|
import * as STANDARD_PRIORITY from '@/types/Priority';
|
|
6
|
+
import * as STANDARD_SIZE_BUTTON from '@/types/Size';
|
|
6
7
|
import TideButton from '@/components/TideButton.vue';
|
|
7
8
|
import {
|
|
8
9
|
argTypeBooleanUnrequired,
|
|
@@ -17,6 +18,7 @@ import {
|
|
|
17
18
|
const ELEMENT = prependNoneAsUndefined(STANDARD_ELEMENT.ELEMENT);
|
|
18
19
|
const ICON = prependNoneAsUndefined(STANDARD_ICON.ICON);
|
|
19
20
|
const PRIORITY = prependNoneAsUndefined(STANDARD_PRIORITY.PRIORITY);
|
|
21
|
+
const SIZE_BUTTON = prependNoneAsUndefined(STANDARD_SIZE_BUTTON.SIZE_BUTTON);
|
|
20
22
|
|
|
21
23
|
const render = (args: any) => ({
|
|
22
24
|
components: { TideButton },
|
|
@@ -95,6 +97,13 @@ export default {
|
|
|
95
97
|
defaultValue: { summary: 'PRIMARY' },
|
|
96
98
|
},
|
|
97
99
|
},
|
|
100
|
+
size: {
|
|
101
|
+
...formatArgType({ SIZE_BUTTON }),
|
|
102
|
+
description: 'Determines rendered size',
|
|
103
|
+
table: {
|
|
104
|
+
defaultValue: { summary: 'LARGE' },
|
|
105
|
+
},
|
|
106
|
+
},
|
|
98
107
|
},
|
|
99
108
|
args: {
|
|
100
109
|
click: 'doSomething',
|
|
@@ -107,6 +116,7 @@ export default {
|
|
|
107
116
|
isNewTab: undefined,
|
|
108
117
|
label: 'Demo',
|
|
109
118
|
priority: undefined,
|
|
119
|
+
size: undefined,
|
|
110
120
|
},
|
|
111
121
|
component: TideButton,
|
|
112
122
|
parameters,
|
|
@@ -3,8 +3,14 @@ import { action } from '@storybook/addon-actions';
|
|
|
3
3
|
import TideCard from '@/components/TideCard.vue';
|
|
4
4
|
import { ICON } from '@/types/Icon';
|
|
5
5
|
import { POSITION_CARD_ICON as STANDARD_POSITION_CARD_ICON, TYPE_CARD as STANDARD_TYPE_CARD } from '@/types/Card';
|
|
6
|
-
import {
|
|
7
|
-
|
|
6
|
+
import {
|
|
7
|
+
argTypeBooleanUnrequired,
|
|
8
|
+
click,
|
|
9
|
+
doSomething,
|
|
10
|
+
formatArgType,
|
|
11
|
+
parameters,
|
|
12
|
+
prependNoneAsUndefined,
|
|
13
|
+
} from '@/utilities/storybook';
|
|
8
14
|
|
|
9
15
|
const TYPE_CARD = prependNoneAsUndefined(STANDARD_TYPE_CARD);
|
|
10
16
|
const POSITION_CARD_ICON = prependNoneAsUndefined(STANDARD_POSITION_CARD_ICON);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { ICON as STANDARD_ICON, ICON_REALM as STANDARD_ICON_REALM } from '@/types/Icon';
|
|
1
2
|
import * as STANDARD_SIZE from '@/types/Size';
|
|
2
3
|
import TideIcon from '@/components/TideIcon.vue';
|
|
3
|
-
import { ICON } from '@/types/Icon';
|
|
4
4
|
import { formatArgType, parameters, prependNoneAsUndefined } from '@/utilities/storybook';
|
|
5
5
|
|
|
6
|
+
const ICON = prependNoneAsUndefined({ ...STANDARD_ICON, ...STANDARD_ICON_REALM.RV });
|
|
6
7
|
const SIZE = prependNoneAsUndefined(STANDARD_SIZE.SIZE);
|
|
7
8
|
|
|
8
9
|
export default {
|
package/src/types/Field.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FormValueTransformer } from '@/types/Form';
|
|
2
|
-
import type {
|
|
2
|
+
import type { SelectOption, SelectOptionGroup } from '@/types/Select';
|
|
3
3
|
import type { TextInputType } from '@/types/TextInput';
|
|
4
4
|
import type { ValidationError, Validator } from '@/types/Validation';
|
|
5
5
|
|
package/src/types/Form.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SelectOption, SelectOptionGroup } from '@/types/Select';
|
|
2
2
|
import type { TextInputType } from '@/types/TextInput';
|
|
3
3
|
import type { ValidationError, Validator } from '@/types/Validation';
|
|
4
4
|
|
package/src/types/Icon.ts
CHANGED
package/src/types/Size.ts
CHANGED
package/src/types/Styles.ts
CHANGED
|
@@ -126,7 +126,7 @@ export const CSS = {
|
|
|
126
126
|
CONTENTS: 'tide-display-contents',
|
|
127
127
|
FLEX: 'tide-display-flex',
|
|
128
128
|
GRID: 'tide-display-grid',
|
|
129
|
-
INITIAL: 'initial',
|
|
129
|
+
INITIAL: 'tide-display-initial',
|
|
130
130
|
INLINE: 'tide-display-inline',
|
|
131
131
|
INLINE_BLOCK: 'tide-display-inline-block',
|
|
132
132
|
INLINE_FLEX: 'tide-display-inline-flex',
|