@okshaun/components 0.4.2 → 0.4.3

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.
@@ -201,35 +201,6 @@
201
201
  "color]___[value:gray.90",
202
202
  "color]___[value:gold.50",
203
203
  "color]___[value:blue.50",
204
- "borderWidth]___[value:2",
205
- "color]___[value:transparent",
206
- "margin]___[value:8",
207
- "borderRadius]___[value:100",
208
- "lineHeight]___[value:none",
209
- "width]___[value:14",
210
- "height]___[value:14",
211
- "minWidth]___[value:14",
212
- "minHeight]___[value:14",
213
- "aspectRatio]___[value:square",
214
- "transition]___[value:all",
215
- "content]___[value:\"\"]___[cond:&:before",
216
- "position]___[value:absolute]___[cond:&:before",
217
- "inset]___[value:0]___[cond:&:before",
218
- "opacity]___[value:0]___[cond:&:before",
219
- "display]___[value:block]___[cond:&:before",
220
- "borderRadius]___[value:100]___[cond:&:before",
221
- "background]___[value:bg.neutral.bold]___[cond:&:before",
222
- "transition]___[value:all]___[cond:&:before",
223
- "transitionTimingFunction]___[value:default]___[cond:&:before",
224
- "transitionDuration]___[value:normal]___[cond:&:before",
225
- "cursor]___[value:pointer]___[cond:_hover",
226
- "background]___[value:darkNeutral.0]___[cond:_hover",
227
- "background]___[value:neutral.0]___[cond:_hover<___>_dark",
228
- "borderColor]___[value:bg.neutral.bold]___[cond:_hover",
229
- "inset]___[value:-8]___[cond:_hover<___>&:before",
230
- "background]___[value:darkNeutral.0]___[cond:_hover<___>&:before",
231
- "background]___[value:neutral.0]___[cond:_hover<___>&:before<___>_dark",
232
- "opacity]___[value:0.25]___[cond:_hover<___>&:before",
233
204
  "color]___[value:gray.10]___[cond:_dark",
234
205
  "textStyle]___[value:body-md",
235
206
  "color]___[value:gray.90]___[cond:_dark",
@@ -263,6 +234,7 @@
263
234
  "size]___[value:small]___[recipe:button",
264
235
  "size]___[value:large]___[recipe:button"
265
236
  ],
237
+ "themeSwitcher": [],
266
238
  "heading": [
267
239
  "level]___[value:h2]___[recipe:heading",
268
240
  "level]___[value:h3]___[recipe:heading",
package/dist/preset.js CHANGED
@@ -5707,6 +5707,51 @@ const tagRecipe = defineRecipe({
5707
5707
  }
5708
5708
  ]
5709
5709
  });
5710
+ const themeSwitcherRecipe = defineRecipe({
5711
+ className: "themeSwitcher",
5712
+ jsx: ["ThemeSwitcher"],
5713
+ base: {
5714
+ position: "relative",
5715
+ borderWidth: "2",
5716
+ borderStyle: "solid",
5717
+ borderColor: "border",
5718
+ color: "transparent",
5719
+ margin: "8",
5720
+ borderRadius: "100",
5721
+ cursor: "pointer",
5722
+ display: "grid",
5723
+ lineHeight: "none",
5724
+ width: "14",
5725
+ height: "14",
5726
+ minWidth: "14",
5727
+ minHeight: "14",
5728
+ flexShrink: 0,
5729
+ aspectRatio: "square",
5730
+ transition: "all",
5731
+ "&:before": {
5732
+ content: '""',
5733
+ position: "absolute",
5734
+ inset: "0",
5735
+ opacity: 0,
5736
+ display: "block",
5737
+ borderRadius: "100",
5738
+ bg: "bg.neutral.bold",
5739
+ transition: "all",
5740
+ transitionTimingFunction: "default",
5741
+ transitionDuration: "normal"
5742
+ },
5743
+ _hover: {
5744
+ cursor: "pointer",
5745
+ bg: { base: "darkNeutral.0", _dark: "neutral.0" },
5746
+ borderColor: "bg.neutral.bold",
5747
+ "&:before": {
5748
+ inset: "-8",
5749
+ bg: { base: "darkNeutral.0", _dark: "neutral.0" },
5750
+ opacity: 0.25
5751
+ }
5752
+ }
5753
+ }
5754
+ });
5710
5755
  const baseButtonStyles = {
5711
5756
  container: {
5712
5757
  position: "relative",
@@ -6691,6 +6736,7 @@ const componentRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
6691
6736
  textRecipe,
6692
6737
  textareaRecipe,
6693
6738
  textinputRecipe,
6739
+ themeSwitcherRecipe,
6694
6740
  toggleInputRecipe,
6695
6741
  toggleRecipe: toggleRecipe$1,
6696
6742
  tooltipRecipe: tooltipRecipe$1