@okshaun/components 0.4.2 → 0.4.4
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/index.js +23 -46
- package/dist/index.js.map +1 -1
- package/dist/panda.buildinfo.json +4 -32
- package/dist/preset.js +80 -17
- package/dist/preset.js.map +1 -1
- package/dist/sprite.symbol.html +1 -1
- package/package.json +1 -1
|
@@ -62,8 +62,8 @@
|
|
|
62
62
|
"maxWidth]___[value:5xl",
|
|
63
63
|
"marginInline]___[value:auto",
|
|
64
64
|
"paddingInline]___[value:24",
|
|
65
|
-
"paddingInline]___[value:
|
|
66
|
-
"paddingInline]___[value:
|
|
65
|
+
"paddingInline]___[value:32]___[cond:md",
|
|
66
|
+
"paddingInline]___[value:48]___[cond:lg",
|
|
67
67
|
"color]___[value:gold.40",
|
|
68
68
|
"gridColumn]___[value:1 / -1",
|
|
69
69
|
"marginTop]___[value:32",
|
|
@@ -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",
|
|
@@ -324,7 +296,7 @@
|
|
|
324
296
|
"direction]___[value:vertical]___[recipe:divider"
|
|
325
297
|
],
|
|
326
298
|
"label": [
|
|
327
|
-
"family]___[value:
|
|
299
|
+
"family]___[value:sans]___[recipe:label"
|
|
328
300
|
],
|
|
329
301
|
"textinput": [
|
|
330
302
|
"size]___[value:medium]___[recipe:textinput",
|
package/dist/preset.js
CHANGED
|
@@ -3659,6 +3659,12 @@ const colors = defineSemanticTokens.colors({
|
|
|
3659
3659
|
}
|
|
3660
3660
|
},
|
|
3661
3661
|
inverse: {
|
|
3662
|
+
bold: {
|
|
3663
|
+
value: {
|
|
3664
|
+
base: "{colors.darkNeutral.0}",
|
|
3665
|
+
_dark: "{colors.neutral.0}"
|
|
3666
|
+
}
|
|
3667
|
+
},
|
|
3662
3668
|
subtle: {
|
|
3663
3669
|
DEFAULT: { value: { base: "#00000029", _dark: "#ffffff29" } },
|
|
3664
3670
|
hovered: { value: { base: "#0000003d", _dark: "#ffffff3d" } }
|
|
@@ -4186,6 +4192,9 @@ const colors = defineSemanticTokens.colors({
|
|
|
4186
4192
|
subtlest: {
|
|
4187
4193
|
value: { base: "{colors.neutral.70}", _dark: "{colors.darkNeutral.70}" }
|
|
4188
4194
|
},
|
|
4195
|
+
placeholder: {
|
|
4196
|
+
value: { base: "{colors.neutral.50}", _dark: "{colors.darkNeutral.60}" }
|
|
4197
|
+
},
|
|
4189
4198
|
bold: {
|
|
4190
4199
|
value: {
|
|
4191
4200
|
base: "{colors.neutral.100}",
|
|
@@ -4467,7 +4476,7 @@ const conditions = {
|
|
|
4467
4476
|
hover: "&:is(:hover, [data-hover=true])",
|
|
4468
4477
|
focus: "&:is(:focus, [data-focus=true])",
|
|
4469
4478
|
focusWithin: "&:focus-within",
|
|
4470
|
-
focusVisible: "&:is(:focus-visible, [data-focus-visible
|
|
4479
|
+
focusVisible: "&:is(:focus-visible, [data-focus-visible=true])",
|
|
4471
4480
|
disabled: "&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",
|
|
4472
4481
|
active: "&:is(:active, [data-active=true])",
|
|
4473
4482
|
visited: "&:visited",
|
|
@@ -4478,6 +4487,7 @@ const conditions = {
|
|
|
4478
4487
|
checked: '&:is(:checked, [data-checked], [aria-checked=true], [data-state="checked"])',
|
|
4479
4488
|
enabled: "&:enabled",
|
|
4480
4489
|
expanded: '&:is([aria-expanded=true], [data-expanded], [data-state="expanded"])',
|
|
4490
|
+
collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])',
|
|
4481
4491
|
highlighted: "&[data-highlighted]",
|
|
4482
4492
|
complete: "&[data-complete]",
|
|
4483
4493
|
incomplete: "&[data-incomplete]",
|
|
@@ -4543,7 +4553,7 @@ const conditions = {
|
|
|
4543
4553
|
current: "&:is([aria-current=true], [data-current])",
|
|
4544
4554
|
currentPage: "&[aria-current=page]",
|
|
4545
4555
|
currentStep: "&[aria-current=step]",
|
|
4546
|
-
today: "
|
|
4556
|
+
today: "&:is([data-today])",
|
|
4547
4557
|
unavailable: "&[data-unavailable]",
|
|
4548
4558
|
rangeStart: "&[data-range-start]",
|
|
4549
4559
|
rangeEnd: "&[data-range-end]",
|
|
@@ -4551,6 +4561,7 @@ const conditions = {
|
|
|
4551
4561
|
topmost: "&[data-topmost]",
|
|
4552
4562
|
motionReduce: "@media (prefers-reduced-motion: reduce)",
|
|
4553
4563
|
motionSafe: "@media (prefers-reduced-motion: no-preference)",
|
|
4564
|
+
paused: "&:is([data-paused=true])",
|
|
4554
4565
|
print: "@media print",
|
|
4555
4566
|
landscape: "@media (orientation: landscape)",
|
|
4556
4567
|
portrait: "@media (orientation: portrait)",
|
|
@@ -4830,11 +4841,11 @@ const textareaBase = {
|
|
|
4830
4841
|
transitionProperty: "background, border-color, color, outline-color",
|
|
4831
4842
|
transitionTimingFunction: "default",
|
|
4832
4843
|
_placeholder: {
|
|
4833
|
-
color: "text.
|
|
4834
|
-
},
|
|
4835
|
-
_hover: {
|
|
4836
|
-
bg: "bg.input.hovered"
|
|
4844
|
+
color: "text.placeholder"
|
|
4837
4845
|
},
|
|
4846
|
+
// _hover: {
|
|
4847
|
+
// bg: 'bg.input.hovered',
|
|
4848
|
+
// },
|
|
4838
4849
|
_focus: {
|
|
4839
4850
|
bg: "bg.input.pressed",
|
|
4840
4851
|
borderColor: "border.focused",
|
|
@@ -4850,6 +4861,9 @@ const textareaBase = {
|
|
|
4850
4861
|
bg: "bg.danger",
|
|
4851
4862
|
borderColor: "border.danger",
|
|
4852
4863
|
color: "text.danger",
|
|
4864
|
+
_placeholder: {
|
|
4865
|
+
color: "text.danger/60"
|
|
4866
|
+
},
|
|
4853
4867
|
_hover: {
|
|
4854
4868
|
bg: "bg.danger.hovered",
|
|
4855
4869
|
borderColor: "border.danger"
|
|
@@ -4946,7 +4960,7 @@ const linkVariants = {
|
|
|
4946
4960
|
_disabled: {
|
|
4947
4961
|
true: {
|
|
4948
4962
|
cursor: "not-allowed",
|
|
4949
|
-
|
|
4963
|
+
color: "text.disabled",
|
|
4950
4964
|
pointerEvents: "none"
|
|
4951
4965
|
}
|
|
4952
4966
|
}
|
|
@@ -4954,7 +4968,7 @@ const linkVariants = {
|
|
|
4954
4968
|
const labelBase = {
|
|
4955
4969
|
fontSize: "14",
|
|
4956
4970
|
fontWeight: "normal",
|
|
4957
|
-
lineHeight: "
|
|
4971
|
+
lineHeight: "tight",
|
|
4958
4972
|
cursor: "default"
|
|
4959
4973
|
};
|
|
4960
4974
|
const labelVariants = {
|
|
@@ -4962,7 +4976,7 @@ const labelVariants = {
|
|
|
4962
4976
|
_disabled: {
|
|
4963
4977
|
true: {
|
|
4964
4978
|
cursor: "not-allowed",
|
|
4965
|
-
|
|
4979
|
+
color: "text.disabled",
|
|
4966
4980
|
pointerEvents: "none"
|
|
4967
4981
|
}
|
|
4968
4982
|
}
|
|
@@ -5000,7 +5014,7 @@ const labelRecipe = defineRecipe({
|
|
|
5000
5014
|
base: labelBase,
|
|
5001
5015
|
variants: labelVariants,
|
|
5002
5016
|
defaultVariants: {
|
|
5003
|
-
family: "
|
|
5017
|
+
family: "sans"
|
|
5004
5018
|
}
|
|
5005
5019
|
});
|
|
5006
5020
|
const checkboxInputBase = {
|
|
@@ -5303,11 +5317,11 @@ const textInputBase = {
|
|
|
5303
5317
|
transitionProperty: "background, border-color, color, outline-color",
|
|
5304
5318
|
transitionTimingFunction: "default",
|
|
5305
5319
|
_placeholder: {
|
|
5306
|
-
color: "text.
|
|
5307
|
-
},
|
|
5308
|
-
_hover: {
|
|
5309
|
-
bg: "bg.input.hovered"
|
|
5320
|
+
color: "text.placeholder"
|
|
5310
5321
|
},
|
|
5322
|
+
// _hover: {
|
|
5323
|
+
// bg: 'bg.input.hovered',
|
|
5324
|
+
// },
|
|
5311
5325
|
_focus: {
|
|
5312
5326
|
bg: "bg.input.pressed",
|
|
5313
5327
|
borderColor: "border.focused",
|
|
@@ -5323,6 +5337,9 @@ const textInputBase = {
|
|
|
5323
5337
|
bg: "bg.danger",
|
|
5324
5338
|
borderColor: "border.danger",
|
|
5325
5339
|
color: "text.danger",
|
|
5340
|
+
_placeholder: {
|
|
5341
|
+
color: "text.danger/60"
|
|
5342
|
+
},
|
|
5326
5343
|
_hover: {
|
|
5327
5344
|
bg: "bg.danger.hovered",
|
|
5328
5345
|
borderColor: "border.danger"
|
|
@@ -5707,6 +5724,52 @@ const tagRecipe = defineRecipe({
|
|
|
5707
5724
|
}
|
|
5708
5725
|
]
|
|
5709
5726
|
});
|
|
5727
|
+
const themeSwitcherRecipe = defineRecipe({
|
|
5728
|
+
className: "themeSwitcher",
|
|
5729
|
+
jsx: ["ThemeSwitcher"],
|
|
5730
|
+
base: {
|
|
5731
|
+
position: "relative",
|
|
5732
|
+
borderWidth: "2",
|
|
5733
|
+
borderStyle: "solid",
|
|
5734
|
+
borderColor: "border",
|
|
5735
|
+
bg: "transparent",
|
|
5736
|
+
color: "transparent",
|
|
5737
|
+
margin: "8",
|
|
5738
|
+
borderRadius: "100",
|
|
5739
|
+
cursor: "pointer",
|
|
5740
|
+
display: "grid",
|
|
5741
|
+
lineHeight: "none",
|
|
5742
|
+
width: "14",
|
|
5743
|
+
height: "14",
|
|
5744
|
+
minWidth: "14",
|
|
5745
|
+
minHeight: "14",
|
|
5746
|
+
flexShrink: 0,
|
|
5747
|
+
aspectRatio: "square",
|
|
5748
|
+
transition: "all",
|
|
5749
|
+
"&:before": {
|
|
5750
|
+
content: '""',
|
|
5751
|
+
position: "absolute",
|
|
5752
|
+
inset: "0",
|
|
5753
|
+
opacity: 0,
|
|
5754
|
+
display: "block",
|
|
5755
|
+
borderRadius: "100",
|
|
5756
|
+
bg: "bg.neutral.inverse.bold",
|
|
5757
|
+
transition: "all",
|
|
5758
|
+
transitionTimingFunction: "default",
|
|
5759
|
+
transitionDuration: "normal"
|
|
5760
|
+
},
|
|
5761
|
+
_hover: {
|
|
5762
|
+
cursor: "pointer",
|
|
5763
|
+
bg: "bg.neutral.inverse.bold",
|
|
5764
|
+
borderColor: "bg.neutral.bold",
|
|
5765
|
+
"&:before": {
|
|
5766
|
+
inset: "-8",
|
|
5767
|
+
bg: "bg.neutral.inverse.bold",
|
|
5768
|
+
opacity: 0.25
|
|
5769
|
+
}
|
|
5770
|
+
}
|
|
5771
|
+
}
|
|
5772
|
+
});
|
|
5710
5773
|
const baseButtonStyles = {
|
|
5711
5774
|
container: {
|
|
5712
5775
|
position: "relative",
|
|
@@ -6691,6 +6754,7 @@ const componentRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
|
|
|
6691
6754
|
textRecipe,
|
|
6692
6755
|
textareaRecipe,
|
|
6693
6756
|
textinputRecipe,
|
|
6757
|
+
themeSwitcherRecipe,
|
|
6694
6758
|
toggleInputRecipe,
|
|
6695
6759
|
toggleRecipe: toggleRecipe$1,
|
|
6696
6760
|
tooltipRecipe: tooltipRecipe$1
|
|
@@ -6785,7 +6849,7 @@ const okshaunPreset = definePreset$1({
|
|
|
6785
6849
|
width: "100%",
|
|
6786
6850
|
maxWidth: "8xl",
|
|
6787
6851
|
mx: "auto",
|
|
6788
|
-
px: { base: "24", md: "
|
|
6852
|
+
px: { base: "24", md: "32", lg: "48" }
|
|
6789
6853
|
},
|
|
6790
6854
|
props
|
|
6791
6855
|
);
|
|
@@ -6816,8 +6880,7 @@ const okshaunPreset = definePreset$1({
|
|
|
6816
6880
|
// Conditions for responsive and state-based styling
|
|
6817
6881
|
conditions: {
|
|
6818
6882
|
...pandaBasePresetConditions,
|
|
6819
|
-
...conditions
|
|
6820
|
-
collapsed: '&:is([aria-collapsed=true], [data-collapsed], [data-state="collapsed"])'
|
|
6883
|
+
...conditions
|
|
6821
6884
|
}
|
|
6822
6885
|
});
|
|
6823
6886
|
export {
|