@redis-ui/styles 21.14.2 → 21.15.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/README.md +6 -1
- package/dist/index.js +92 -0
- package/dist/index.umd.cjs +1 -1
- package/dist/themes/themeDark/theme/components/stepper.js +23 -0
- package/dist/themes/themeDarkNext/theme/components/stepper.js +23 -0
- package/dist/themes/themeLight/theme/components/stepper.js +23 -0
- package/dist/themes/themeLightNext/theme/components/stepper.js +23 -0
- package/dist/themes/types/theme/components/stepper.types.d.ts +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -85,7 +85,12 @@ const Panel = styled.div`
|
|
|
85
85
|
background: ${({ theme }) => theme.semantic.color.background.neutral100};
|
|
86
86
|
`;
|
|
87
87
|
|
|
88
|
-
|
|
88
|
+
// useTheme is a hook: call it inside a component or custom hook
|
|
89
|
+
const ModeLabel = () => {
|
|
90
|
+
const { mode } = useTheme(); // 'light' | 'dark'
|
|
91
|
+
|
|
92
|
+
return <span>Current mode: {mode}</span>;
|
|
93
|
+
};
|
|
89
94
|
```
|
|
90
95
|
|
|
91
96
|
Use tokens instead of hard-coded values, so your UI follows both themes and both modes.
|
package/dist/index.js
CHANGED
|
@@ -3731,6 +3731,29 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
|
|
|
3731
3731
|
separator: { bgColor: m.semantic.color.border.primary400 }
|
|
3732
3732
|
}
|
|
3733
3733
|
}
|
|
3734
|
+
},
|
|
3735
|
+
compact: {
|
|
3736
|
+
gap: "0.8rem",
|
|
3737
|
+
stepGap: "0.8rem",
|
|
3738
|
+
fontFamily: m.core.font.fontFamily.sourceCodeProRegular,
|
|
3739
|
+
fontSize: m.core.font.fontSize.s12,
|
|
3740
|
+
letterSpacing: "0.1em",
|
|
3741
|
+
textTransform: "uppercase",
|
|
3742
|
+
separatorColor: m.semantic.color.text.secondary500,
|
|
3743
|
+
states: {
|
|
3744
|
+
idle: {
|
|
3745
|
+
textColor: m.semantic.color.text.secondary500,
|
|
3746
|
+
fontWeight: m.core.font.fontWeight.normal
|
|
3747
|
+
},
|
|
3748
|
+
focused: {
|
|
3749
|
+
textColor: m.semantic.color.text.primary400,
|
|
3750
|
+
fontWeight: m.core.font.fontWeight.semiBold
|
|
3751
|
+
},
|
|
3752
|
+
completed: {
|
|
3753
|
+
textColor: m.semantic.color.text.secondary500,
|
|
3754
|
+
fontWeight: m.core.font.fontWeight.normal
|
|
3755
|
+
}
|
|
3756
|
+
}
|
|
3734
3757
|
}
|
|
3735
3758
|
}, Qt = {
|
|
3736
3759
|
width: "3.2rem",
|
|
@@ -6742,6 +6765,29 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
|
|
|
6742
6765
|
separator: { bgColor: L.semantic.color.border.primary400 }
|
|
6743
6766
|
}
|
|
6744
6767
|
}
|
|
6768
|
+
},
|
|
6769
|
+
compact: {
|
|
6770
|
+
gap: "0.8rem",
|
|
6771
|
+
stepGap: "0.8rem",
|
|
6772
|
+
fontFamily: L.core.font.fontFamily.sourceCodeProRegular,
|
|
6773
|
+
fontSize: L.core.font.fontSize.s12,
|
|
6774
|
+
letterSpacing: "0.1em",
|
|
6775
|
+
textTransform: "uppercase",
|
|
6776
|
+
separatorColor: L.semantic.color.text.secondary400,
|
|
6777
|
+
states: {
|
|
6778
|
+
idle: {
|
|
6779
|
+
textColor: L.semantic.color.text.secondary400,
|
|
6780
|
+
fontWeight: L.core.font.fontWeight.normal
|
|
6781
|
+
},
|
|
6782
|
+
focused: {
|
|
6783
|
+
textColor: L.semantic.color.text.primary400,
|
|
6784
|
+
fontWeight: L.core.font.fontWeight.semiBold
|
|
6785
|
+
},
|
|
6786
|
+
completed: {
|
|
6787
|
+
textColor: L.semantic.color.text.secondary400,
|
|
6788
|
+
fontWeight: L.core.font.fontWeight.normal
|
|
6789
|
+
}
|
|
6790
|
+
}
|
|
6745
6791
|
}
|
|
6746
6792
|
}, ur = {
|
|
6747
6793
|
width: "3.2rem",
|
|
@@ -9788,6 +9834,29 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
|
|
|
9788
9834
|
separator: { bgColor: V.semantic.color.background.success500 }
|
|
9789
9835
|
}
|
|
9790
9836
|
}
|
|
9837
|
+
},
|
|
9838
|
+
compact: {
|
|
9839
|
+
gap: "0.8rem",
|
|
9840
|
+
stepGap: "0.8rem",
|
|
9841
|
+
fontFamily: V.core.font.fontFamily.sourceCodeProRegular,
|
|
9842
|
+
fontSize: V.core.font.fontSize.s12,
|
|
9843
|
+
letterSpacing: "0.1em",
|
|
9844
|
+
textTransform: "uppercase",
|
|
9845
|
+
separatorColor: V.semantic.color.text.secondary500,
|
|
9846
|
+
states: {
|
|
9847
|
+
idle: {
|
|
9848
|
+
textColor: V.semantic.color.text.secondary500,
|
|
9849
|
+
fontWeight: V.core.font.fontWeight.normal
|
|
9850
|
+
},
|
|
9851
|
+
focused: {
|
|
9852
|
+
textColor: V.semantic.color.text.primary400,
|
|
9853
|
+
fontWeight: V.core.font.fontWeight.semiBold
|
|
9854
|
+
},
|
|
9855
|
+
completed: {
|
|
9856
|
+
textColor: V.semantic.color.text.secondary500,
|
|
9857
|
+
fontWeight: V.core.font.fontWeight.normal
|
|
9858
|
+
}
|
|
9859
|
+
}
|
|
9791
9860
|
}
|
|
9792
9861
|
}, Si = {
|
|
9793
9862
|
width: "3.6rem",
|
|
@@ -12853,6 +12922,29 @@ var mt = (e) => e.reduce((e, t) => (e.light.push(t.light), e.dark.push(t.dark),
|
|
|
12853
12922
|
separator: { bgColor: K.semantic.color.background.success500 }
|
|
12854
12923
|
}
|
|
12855
12924
|
}
|
|
12925
|
+
},
|
|
12926
|
+
compact: {
|
|
12927
|
+
gap: "0.8rem",
|
|
12928
|
+
stepGap: "0.8rem",
|
|
12929
|
+
fontFamily: K.core.font.fontFamily.sourceCodeProRegular,
|
|
12930
|
+
fontSize: K.core.font.fontSize.s12,
|
|
12931
|
+
letterSpacing: "0.1em",
|
|
12932
|
+
textTransform: "uppercase",
|
|
12933
|
+
separatorColor: K.semantic.color.text.secondary400,
|
|
12934
|
+
states: {
|
|
12935
|
+
idle: {
|
|
12936
|
+
textColor: K.semantic.color.text.secondary400,
|
|
12937
|
+
fontWeight: K.core.font.fontWeight.normal
|
|
12938
|
+
},
|
|
12939
|
+
focused: {
|
|
12940
|
+
textColor: K.semantic.color.text.primary400,
|
|
12941
|
+
fontWeight: K.core.font.fontWeight.semiBold
|
|
12942
|
+
},
|
|
12943
|
+
completed: {
|
|
12944
|
+
textColor: K.semantic.color.text.secondary400,
|
|
12945
|
+
fontWeight: K.core.font.fontWeight.normal
|
|
12946
|
+
}
|
|
12947
|
+
}
|
|
12856
12948
|
}
|
|
12857
12949
|
}, Na = {
|
|
12858
12950
|
width: "3.6rem",
|