@x-plat/design-system 0.15.6 → 0.16.1
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/components/Tour/index.cjs +338 -0
- package/dist/components/Tour/index.css +117 -0
- package/dist/components/Tour/index.d.cts +79 -0
- package/dist/components/Tour/index.d.ts +79 -0
- package/dist/components/Tour/index.js +301 -0
- package/dist/components/index.cjs +213 -53
- package/dist/components/index.css +116 -0
- package/dist/components/index.d.cts +1 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +212 -53
- package/dist/index.cjs +237 -77
- package/dist/index.css +116 -0
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +236 -77
- package/guidelines/Guidelines.md +1 -0
- package/guidelines/components/tour.md +93 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -5871,6 +5871,122 @@
|
|
|
5871
5871
|
opacity: 0.4;
|
|
5872
5872
|
}
|
|
5873
5873
|
|
|
5874
|
+
/* src/components/Tour/tour.scss */
|
|
5875
|
+
.lib-xplat-tour {
|
|
5876
|
+
position: fixed;
|
|
5877
|
+
inset: 0;
|
|
5878
|
+
z-index: 1100;
|
|
5879
|
+
pointer-events: none;
|
|
5880
|
+
}
|
|
5881
|
+
.lib-xplat-tour-dim {
|
|
5882
|
+
position: fixed;
|
|
5883
|
+
inset: 0;
|
|
5884
|
+
background-color: var(--semantic-interaction-overlay-50);
|
|
5885
|
+
pointer-events: auto;
|
|
5886
|
+
}
|
|
5887
|
+
.lib-xplat-tour-spotlight {
|
|
5888
|
+
position: fixed;
|
|
5889
|
+
border-radius: var(--spacing-radius-md);
|
|
5890
|
+
box-shadow: 0 0 0 9999px var(--semantic-interaction-overlay-50);
|
|
5891
|
+
pointer-events: auto;
|
|
5892
|
+
transition:
|
|
5893
|
+
top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
|
|
5894
|
+
left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
|
|
5895
|
+
width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94),
|
|
5896
|
+
height 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
|
|
5897
|
+
}
|
|
5898
|
+
.lib-xplat-tour-card {
|
|
5899
|
+
position: fixed;
|
|
5900
|
+
pointer-events: auto;
|
|
5901
|
+
box-sizing: border-box;
|
|
5902
|
+
width: 320px;
|
|
5903
|
+
max-width: calc(100vw - var(--spacing-space-8));
|
|
5904
|
+
overflow-y: auto;
|
|
5905
|
+
padding: var(--spacing-space-4);
|
|
5906
|
+
border-radius: var(--spacing-radius-md);
|
|
5907
|
+
background-color: var(--semantic-surface-neutral-primary);
|
|
5908
|
+
box-shadow: var(--semantic-shadow-lg);
|
|
5909
|
+
}
|
|
5910
|
+
.lib-xplat-tour-card .tour-card-progress {
|
|
5911
|
+
font-family: var(--semantic-typo-caption-2-r-font);
|
|
5912
|
+
font-size: var(--semantic-typo-caption-2-r-size);
|
|
5913
|
+
line-height: var(--semantic-typo-caption-2-r-lh);
|
|
5914
|
+
font-weight: var(--semantic-typo-caption-2-r-weight);
|
|
5915
|
+
letter-spacing: var(--semantic-typo-caption-2-r-ls);
|
|
5916
|
+
color: var(--semantic-text-tertiary);
|
|
5917
|
+
margin-bottom: var(--spacing-space-1);
|
|
5918
|
+
}
|
|
5919
|
+
.lib-xplat-tour-card .tour-card-title {
|
|
5920
|
+
font-family: var(--semantic-typo-label-1-sb-font);
|
|
5921
|
+
font-size: var(--semantic-typo-label-1-sb-size);
|
|
5922
|
+
line-height: var(--semantic-typo-label-1-sb-lh);
|
|
5923
|
+
font-weight: var(--semantic-typo-label-1-sb-weight);
|
|
5924
|
+
letter-spacing: var(--semantic-typo-label-1-sb-ls);
|
|
5925
|
+
color: var(--semantic-text-primary);
|
|
5926
|
+
margin-bottom: var(--spacing-space-2);
|
|
5927
|
+
}
|
|
5928
|
+
.lib-xplat-tour-card .tour-card-description {
|
|
5929
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
5930
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
5931
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
5932
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
5933
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
5934
|
+
color: var(--semantic-text-secondary);
|
|
5935
|
+
overflow-wrap: anywhere;
|
|
5936
|
+
}
|
|
5937
|
+
.lib-xplat-tour-card .tour-card-actions {
|
|
5938
|
+
display: flex;
|
|
5939
|
+
align-items: center;
|
|
5940
|
+
justify-content: space-between;
|
|
5941
|
+
gap: var(--spacing-space-2);
|
|
5942
|
+
margin-top: var(--spacing-space-4);
|
|
5943
|
+
}
|
|
5944
|
+
.lib-xplat-tour-card .tour-card-nav {
|
|
5945
|
+
display: flex;
|
|
5946
|
+
gap: var(--spacing-space-2);
|
|
5947
|
+
}
|
|
5948
|
+
.lib-xplat-tour-card .tour-skip,
|
|
5949
|
+
.lib-xplat-tour-card .tour-nav {
|
|
5950
|
+
font-family: inherit;
|
|
5951
|
+
cursor: pointer;
|
|
5952
|
+
border-radius: var(--spacing-radius-sm);
|
|
5953
|
+
padding: var(--spacing-space-1) var(--spacing-space-3);
|
|
5954
|
+
font-family: var(--semantic-typo-caption-1-r-font);
|
|
5955
|
+
font-size: var(--semantic-typo-caption-1-r-size);
|
|
5956
|
+
line-height: var(--semantic-typo-caption-1-r-lh);
|
|
5957
|
+
font-weight: var(--semantic-typo-caption-1-r-weight);
|
|
5958
|
+
letter-spacing: var(--semantic-typo-caption-1-r-ls);
|
|
5959
|
+
border: 1px solid transparent;
|
|
5960
|
+
background: none;
|
|
5961
|
+
transition: background-color 0.15s ease;
|
|
5962
|
+
}
|
|
5963
|
+
.lib-xplat-tour-card .tour-skip:focus-visible,
|
|
5964
|
+
.lib-xplat-tour-card .tour-nav:focus-visible {
|
|
5965
|
+
outline: 2px solid var(--semantic-interaction-focus-ring);
|
|
5966
|
+
outline-offset: 2px;
|
|
5967
|
+
}
|
|
5968
|
+
.lib-xplat-tour-card .tour-skip {
|
|
5969
|
+
color: var(--semantic-text-tertiary);
|
|
5970
|
+
}
|
|
5971
|
+
.lib-xplat-tour-card .tour-skip:hover {
|
|
5972
|
+
color: var(--semantic-text-secondary);
|
|
5973
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
5974
|
+
}
|
|
5975
|
+
.lib-xplat-tour-card .tour-nav.secondary {
|
|
5976
|
+
color: var(--semantic-text-secondary);
|
|
5977
|
+
border-color: var(--semantic-border-primary);
|
|
5978
|
+
}
|
|
5979
|
+
.lib-xplat-tour-card .tour-nav.secondary:hover {
|
|
5980
|
+
background-color: var(--semantic-surface-neutral-secondary);
|
|
5981
|
+
}
|
|
5982
|
+
.lib-xplat-tour-card .tour-nav.primary {
|
|
5983
|
+
color: var(--semantic-text-inverse);
|
|
5984
|
+
background-color: var(--semantic-surface-brand-default);
|
|
5985
|
+
}
|
|
5986
|
+
.lib-xplat-tour-card .tour-nav.primary:hover {
|
|
5987
|
+
background-color: var(--semantic-surface-brand-strong);
|
|
5988
|
+
}
|
|
5989
|
+
|
|
5874
5990
|
/* src/components/Video/video.scss */
|
|
5875
5991
|
.lib-xplat-video {
|
|
5876
5992
|
position: relative;
|
package/dist/index.d.cts
CHANGED
|
@@ -47,6 +47,7 @@ export { TimePicker } from './components/TimePicker/index.cjs';
|
|
|
47
47
|
export { ToastProvider, useToast } from './components/Toast/index.cjs';
|
|
48
48
|
export { ToggleChip } from './components/ToggleChip/index.cjs';
|
|
49
49
|
export { Tooltip } from './components/Tooltip/index.cjs';
|
|
50
|
+
export { Tour, TourStep } from './components/Tour/index.cjs';
|
|
50
51
|
export { Video, VideoProps } from './components/Video/index.cjs';
|
|
51
52
|
export { FullGrid } from './layout/Grid/FullGrid/index.cjs';
|
|
52
53
|
export { FullScreen } from './layout/Grid/FullScreen/index.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -47,6 +47,7 @@ export { TimePicker } from './components/TimePicker/index.js';
|
|
|
47
47
|
export { ToastProvider, useToast } from './components/Toast/index.js';
|
|
48
48
|
export { ToggleChip } from './components/ToggleChip/index.js';
|
|
49
49
|
export { Tooltip } from './components/Tooltip/index.js';
|
|
50
|
+
export { Tour, TourStep } from './components/Tour/index.js';
|
|
50
51
|
export { Video, VideoProps } from './components/Video/index.js';
|
|
51
52
|
export { FullGrid } from './layout/Grid/FullGrid/index.js';
|
|
52
53
|
export { FullScreen } from './layout/Grid/FullScreen/index.js';
|