tide-design-system 2.0.46 → 2.0.48
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/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/reset.css +4 -2
- package/dist/css/utilities.css +16 -0
- package/dist/style.css +1 -1
- package/dist/tide-design-system.cjs +2 -2
- package/dist/tide-design-system.esm.d.ts +6 -2
- package/dist/tide-design-system.esm.js +876 -861
- package/index.ts +2 -1
- package/package.json +2 -2
- package/src/assets/css/reset.css +4 -2
- package/src/assets/css/utilities.css +16 -0
- package/src/components/TideIcon.vue +11 -7
- package/src/components/TideLink.vue +7 -19
- package/src/stories/TideIcon.stories.ts +3 -1
- package/src/types/Styles.ts +1 -1
package/index.ts
CHANGED
|
@@ -84,7 +84,7 @@ import { BREAKPOINT, MEDIA } from '@/types/Breakpoint';
|
|
|
84
84
|
import { CSS } from '@/types/Styles';
|
|
85
85
|
import { ELEMENT, ELEMENT_TEXT_AS_ICON } from '@/types/Element';
|
|
86
86
|
import { FORMAT, FORMAT_REGEX } from '@/types/Formatted';
|
|
87
|
-
import { ICON } from '@/types/Icon';
|
|
87
|
+
import { ICON, ICON_REALM } from '@/types/Icon';
|
|
88
88
|
import { MEDIA_SLIDE_TYPES } from '@/types/ListingMedia';
|
|
89
89
|
import { ORIENTATION } from '@/types/Orientation';
|
|
90
90
|
import { POSITION_CARD_ICON, TYPE_CARD } from '@/types/Card';
|
|
@@ -170,6 +170,7 @@ export {
|
|
|
170
170
|
FORMAT,
|
|
171
171
|
FORMAT_REGEX,
|
|
172
172
|
ICON,
|
|
173
|
+
ICON_REALM,
|
|
173
174
|
MEDIA,
|
|
174
175
|
MEDIA_SLIDE_TYPES,
|
|
175
176
|
ORIENTATION,
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"name": "tide-design-system",
|
|
39
39
|
"scripts": {
|
|
40
40
|
"build": "npm run enforce && npm run build-vite",
|
|
41
|
-
"build-storybook": "npm run build-vite && storybook build && cp -r src/assets/
|
|
41
|
+
"build-storybook": "npm run build-vite && storybook build && cp -r src/assets/ storybook-static/",
|
|
42
42
|
"build-vite": "vite build && cp -r src/assets/css/ dist/css/ && cp -r src/utilities/ dist/utilities/",
|
|
43
43
|
"coverage": "vitest run --coverage",
|
|
44
44
|
"dev": "vite",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"main": "dist/tide-design-system.cjs",
|
|
56
56
|
"module": "dist/tide-design-system.esm.js",
|
|
57
57
|
"types": "dist/tide-design-system.esm.d.ts",
|
|
58
|
-
"version": "2.0.
|
|
58
|
+
"version": "2.0.48"
|
|
59
59
|
}
|
package/src/assets/css/reset.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
html,
|
|
2
1
|
body {
|
|
3
2
|
color: var(--tide-on-surface);
|
|
3
|
+
font-weight: 500;
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
*,
|
|
@@ -12,9 +12,11 @@ body {
|
|
|
12
12
|
padding: 0;
|
|
13
13
|
color: inherit;
|
|
14
14
|
font-family: Montserrat;
|
|
15
|
-
font-weight:
|
|
15
|
+
font-weight: inherit;
|
|
16
16
|
-webkit-font-smoothing: antialiased;
|
|
17
17
|
-moz-osx-font-smoothing: grayscale;
|
|
18
|
+
text-underline-offset: .2em;
|
|
19
|
+
text-decoration-skip-ink: none;
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
h1 {font-size: var(--tide-font-32);} /* 32px */
|
|
@@ -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);}
|
|
@@ -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);}
|
|
@@ -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);}
|
|
@@ -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);}
|
|
@@ -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);}
|
|
@@ -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%;
|
|
@@ -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,10 @@
|
|
|
1
|
+
import { ICON as STANDARD_ICON } from '@/types/Icon';
|
|
2
|
+
import { ICON_REALM as STANDARD_ICON_REALM } from '@/types/Icon';
|
|
1
3
|
import * as STANDARD_SIZE from '@/types/Size';
|
|
2
4
|
import TideIcon from '@/components/TideIcon.vue';
|
|
3
|
-
import { ICON } from '@/types/Icon';
|
|
4
5
|
import { formatArgType, parameters, prependNoneAsUndefined } from '@/utilities/storybook';
|
|
5
6
|
|
|
7
|
+
const ICON = prependNoneAsUndefined({ ...STANDARD_ICON, ...STANDARD_ICON_REALM.RV });
|
|
6
8
|
const SIZE = prependNoneAsUndefined(STANDARD_SIZE.SIZE);
|
|
7
9
|
|
|
8
10
|
export default {
|
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',
|