@okshaun/components 0.4.6 → 0.5.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/preset.js CHANGED
@@ -116,6 +116,28 @@ const keyframes$1 = {
116
116
  transform: "none",
117
117
  animationTimingFunction: "cubic-bezier(0,0,0.2,1)"
118
118
  }
119
+ },
120
+ badgePop: {
121
+ "0%": {
122
+ transform: "translate(50%, -50%) scale(1)"
123
+ },
124
+ "50%": {
125
+ transform: "translate(50%, -50%) scale(1.2)"
126
+ },
127
+ "100%": {
128
+ transform: "translate(50%, -50%) scale(1)"
129
+ }
130
+ },
131
+ badgePopStandalone: {
132
+ "0%": {
133
+ transform: "scale(1)"
134
+ },
135
+ "50%": {
136
+ transform: "scale(1.2)"
137
+ },
138
+ "100%": {
139
+ transform: "scale(1)"
140
+ }
119
141
  }
120
142
  };
121
143
  const easings = {
@@ -203,7 +225,8 @@ const radii = {
203
225
  "4": { value: "{sizes.4}" },
204
226
  "8": { value: "{sizes.8}" },
205
227
  "16": { value: "{sizes.16}" },
206
- "100": { value: "100%" }
228
+ "100": { value: "100%" },
229
+ "999": { value: "999px" }
207
230
  };
208
231
  const borderWidths = {
209
232
  "0": { value: "{sizes.0}" },
@@ -4478,6 +4501,7 @@ const conditions = {
4478
4501
  focusWithin: "&:focus-within",
4479
4502
  focusVisible: "&:is(:focus-visible, [data-focus-visible=true])",
4480
4503
  disabled: "&:is(:disabled, [disabled], [data-disabled], [aria-disabled=true])",
4504
+ deleted: "&:is(:deleted, [deleted], [data-deleted=true])",
4481
4505
  active: "&:is(:active, [data-active=true])",
4482
4506
  visited: "&:visited",
4483
4507
  target: "&:target",
@@ -4548,7 +4572,7 @@ const conditions = {
4548
4572
  open: '&:is([open], [data-open], [data-state="open"], :popover-open)',
4549
4573
  closed: '&:is([closed], [data-closed], [data-state="closed"])',
4550
4574
  fullscreen: "&:is(:fullscreen, [data-fullscreen])",
4551
- loading: "&:is([data-loading], [aria-busy=true])",
4575
+ loading: "&:is([data-loading=true], [aria-busy=true])",
4552
4576
  hidden: "&:is([hidden], [data-hidden])",
4553
4577
  current: "&:is([aria-current=true], [data-current])",
4554
4578
  currentPage: "&[aria-current=page]",
@@ -4667,78 +4691,6 @@ const globalCss = defineGlobalStyles({
4667
4691
  display: "list-item"
4668
4692
  }
4669
4693
  });
4670
- const badgeRecipe = defineRecipe({
4671
- className: "badge",
4672
- jsx: ["Badge"],
4673
- staticCss: [{ size: ["sm", "md", "lg"] }],
4674
- base: {
4675
- alignItems: "center",
4676
- borderRadius: "full",
4677
- colorPalette: "accent",
4678
- display: "inline-flex",
4679
- fontWeight: "medium",
4680
- userSelect: "none",
4681
- whiteSpace: "nowrap"
4682
- },
4683
- defaultVariants: {
4684
- variant: "subtle",
4685
- size: "md"
4686
- },
4687
- variants: {
4688
- variant: {
4689
- solid: {
4690
- background: "colorPalette.default",
4691
- color: "colorPalette.fg"
4692
- },
4693
- subtle: {
4694
- background: "bg.subtle",
4695
- borderColor: "border.subtle",
4696
- borderWidth: "1px",
4697
- color: "fg.default",
4698
- "& svg": {
4699
- color: "fg.muted"
4700
- }
4701
- },
4702
- outline: {
4703
- color: "fg.default",
4704
- borderWidth: "2px",
4705
- borderColor: "border.default"
4706
- }
4707
- },
4708
- size: {
4709
- sm: {
4710
- textStyle: "xs",
4711
- px: "2",
4712
- h: "5",
4713
- gap: "1",
4714
- "& svg": {
4715
- width: "3",
4716
- height: "3"
4717
- }
4718
- },
4719
- md: {
4720
- textStyle: "xs",
4721
- px: "2.5",
4722
- h: "6",
4723
- gap: "1.5",
4724
- "& svg": {
4725
- width: "4",
4726
- height: "4"
4727
- }
4728
- },
4729
- lg: {
4730
- textStyle: "sm",
4731
- px: "3",
4732
- h: "7",
4733
- gap: "1.5",
4734
- "& svg": {
4735
- width: "4",
4736
- height: "4"
4737
- }
4738
- }
4739
- }
4740
- }
4741
- });
4742
4694
  const textareaVariants = {
4743
4695
  size: {
4744
4696
  medium: {
@@ -5725,265 +5677,6 @@ const tagRecipe = defineRecipe({
5725
5677
  }
5726
5678
  ]
5727
5679
  });
5728
- const chipBase = {
5729
- display: "inline-flex",
5730
- alignItems: "center",
5731
- gap: "1",
5732
- px: "2",
5733
- py: "0",
5734
- borderRadius: "2",
5735
- fontFamily: "sans",
5736
- fontSize: "inherit",
5737
- lineHeight: "inherit",
5738
- fontWeight: "500",
5739
- whiteSpace: "nowrap",
5740
- verticalAlign: "baseline",
5741
- cursor: "pointer",
5742
- transitionProperty: "common",
5743
- transitionDuration: "fast",
5744
- userSelect: "none"
5745
- };
5746
- const chipRecipe = defineRecipe({
5747
- className: "chip",
5748
- jsx: ["Chip"],
5749
- base: chipBase,
5750
- variants: {
5751
- state: {
5752
- resolved: {},
5753
- placeholder: {
5754
- borderStyle: "dashed",
5755
- borderWidth: "1px"
5756
- },
5757
- loading: {
5758
- cursor: "wait",
5759
- animation: "pulse"
5760
- },
5761
- deleted: {
5762
- textDecoration: "line-through",
5763
- cursor: "not-allowed",
5764
- opacity: 0.5
5765
- }
5766
- },
5767
- hue: {
5768
- blue: {},
5769
- purple: {},
5770
- orange: {},
5771
- green: {},
5772
- gray: {}
5773
- },
5774
- hasIcon: {
5775
- true: { pl: "1" },
5776
- false: {}
5777
- }
5778
- },
5779
- defaultVariants: {
5780
- state: "resolved",
5781
- hue: "blue",
5782
- hasIcon: false
5783
- },
5784
- compoundVariants: [
5785
- // Blue hue (page)
5786
- {
5787
- hue: "blue",
5788
- state: "resolved",
5789
- css: {
5790
- color: { base: "blue.70", _dark: "blue.20" },
5791
- bg: { base: "blue.20", _dark: "blue.90" },
5792
- _hover: {
5793
- bg: { base: "blue.30", _dark: "blue.80" }
5794
- }
5795
- }
5796
- },
5797
- {
5798
- hue: "blue",
5799
- state: "placeholder",
5800
- css: {
5801
- color: { base: "blue.50", _dark: "blue.40" },
5802
- borderColor: { base: "blue.40", _dark: "blue.60" },
5803
- bg: "transparent",
5804
- _hover: {
5805
- bg: { base: "blue.10", _dark: "blue.90/50" }
5806
- }
5807
- }
5808
- },
5809
- {
5810
- hue: "blue",
5811
- state: "loading",
5812
- css: {
5813
- color: { base: "blue.50", _dark: "blue.40" },
5814
- bg: { base: "blue.10", _dark: "blue.90" }
5815
- }
5816
- },
5817
- {
5818
- hue: "blue",
5819
- state: "deleted",
5820
- css: {
5821
- color: { base: "blue.40", _dark: "blue.60" },
5822
- bg: { base: "blue.10", _dark: "blue.90" }
5823
- }
5824
- },
5825
- // Purple hue (daily_note)
5826
- {
5827
- hue: "purple",
5828
- state: "resolved",
5829
- css: {
5830
- color: { base: "purple.70", _dark: "purple.20" },
5831
- bg: { base: "purple.20", _dark: "purple.90" },
5832
- _hover: {
5833
- bg: { base: "purple.30", _dark: "purple.80" }
5834
- }
5835
- }
5836
- },
5837
- {
5838
- hue: "purple",
5839
- state: "placeholder",
5840
- css: {
5841
- color: { base: "purple.50", _dark: "purple.40" },
5842
- borderColor: { base: "purple.40", _dark: "purple.60" },
5843
- bg: "transparent",
5844
- _hover: {
5845
- bg: { base: "purple.10", _dark: "purple.90/50" }
5846
- }
5847
- }
5848
- },
5849
- {
5850
- hue: "purple",
5851
- state: "loading",
5852
- css: {
5853
- color: { base: "purple.50", _dark: "purple.40" },
5854
- bg: { base: "purple.10", _dark: "purple.90" }
5855
- }
5856
- },
5857
- {
5858
- hue: "purple",
5859
- state: "deleted",
5860
- css: {
5861
- color: { base: "purple.40", _dark: "purple.60" },
5862
- bg: { base: "purple.10", _dark: "purple.90" }
5863
- }
5864
- },
5865
- // Orange hue (event)
5866
- {
5867
- hue: "orange",
5868
- state: "resolved",
5869
- css: {
5870
- color: { base: "orange.70", _dark: "orange.20" },
5871
- bg: { base: "orange.20", _dark: "orange.100" },
5872
- _hover: {
5873
- bg: { base: "orange.30", _dark: "orange.90" }
5874
- }
5875
- }
5876
- },
5877
- {
5878
- hue: "orange",
5879
- state: "placeholder",
5880
- css: {
5881
- color: { base: "orange.50", _dark: "orange.40" },
5882
- borderColor: { base: "orange.40", _dark: "orange.60" },
5883
- bg: "transparent",
5884
- _hover: {
5885
- bg: { base: "orange.10", _dark: "orange.90/50" }
5886
- }
5887
- }
5888
- },
5889
- {
5890
- hue: "orange",
5891
- state: "loading",
5892
- css: {
5893
- color: { base: "orange.50", _dark: "orange.40" },
5894
- bg: { base: "orange.10", _dark: "orange.100" }
5895
- }
5896
- },
5897
- {
5898
- hue: "orange",
5899
- state: "deleted",
5900
- css: {
5901
- color: { base: "orange.40", _dark: "orange.60" },
5902
- bg: { base: "orange.10", _dark: "orange.100" }
5903
- }
5904
- },
5905
- // Green hue (person)
5906
- {
5907
- hue: "green",
5908
- state: "resolved",
5909
- css: {
5910
- color: { base: "green.70", _dark: "green.20" },
5911
- bg: { base: "green.20", _dark: "green.90" },
5912
- _hover: {
5913
- bg: { base: "green.30", _dark: "green.80" }
5914
- }
5915
- }
5916
- },
5917
- {
5918
- hue: "green",
5919
- state: "placeholder",
5920
- css: {
5921
- color: { base: "green.50", _dark: "green.40" },
5922
- borderColor: { base: "green.40", _dark: "green.60" },
5923
- bg: "transparent",
5924
- _hover: {
5925
- bg: { base: "green.10", _dark: "green.90/50" }
5926
- }
5927
- }
5928
- },
5929
- {
5930
- hue: "green",
5931
- state: "loading",
5932
- css: {
5933
- color: { base: "green.50", _dark: "green.40" },
5934
- bg: { base: "green.10", _dark: "green.90" }
5935
- }
5936
- },
5937
- {
5938
- hue: "green",
5939
- state: "deleted",
5940
- css: {
5941
- color: { base: "green.40", _dark: "green.60" },
5942
- bg: { base: "green.10", _dark: "green.90" }
5943
- }
5944
- },
5945
- // Gray hue (default/fallback)
5946
- {
5947
- hue: "gray",
5948
- state: "resolved",
5949
- css: {
5950
- color: "text.subtle",
5951
- bg: "bg.neutral",
5952
- _hover: {
5953
- bg: "bg.neutral.hovered"
5954
- }
5955
- }
5956
- },
5957
- {
5958
- hue: "gray",
5959
- state: "placeholder",
5960
- css: {
5961
- color: "text.subtlest",
5962
- borderColor: "border.default",
5963
- bg: "transparent",
5964
- _hover: {
5965
- bg: "bg.neutral"
5966
- }
5967
- }
5968
- },
5969
- {
5970
- hue: "gray",
5971
- state: "loading",
5972
- css: {
5973
- color: "text.subtlest",
5974
- bg: "bg.neutral"
5975
- }
5976
- },
5977
- {
5978
- hue: "gray",
5979
- state: "deleted",
5980
- css: {
5981
- color: "text.disabled",
5982
- bg: "bg.neutral"
5983
- }
5984
- }
5985
- ]
5986
- });
5987
5680
  const themeSwitcherRecipe = defineRecipe({
5988
5681
  className: "themeSwitcher",
5989
5682
  jsx: ["ThemeSwitcher"],
@@ -6038,6 +5731,8 @@ const baseButtonStyles = {
6038
5731
  alignItems: "center",
6039
5732
  gap: 4,
6040
5733
  minWidth: 0,
5734
+ width: "fit",
5735
+ height: "fit",
6041
5736
  transitionDuration: "fast",
6042
5737
  transitionProperty: "background, border-color, color, box-shadow",
6043
5738
  transitionTimingFunction: "default",
@@ -6054,12 +5749,10 @@ const baseButtonStyles = {
6054
5749
  outlineWidth: 2,
6055
5750
  outlineStyle: "solid",
6056
5751
  outlineColor: "transparent",
6057
- // outlineOffset: 1,
6058
5752
  textDecoration: "none",
6059
5753
  whiteSpace: "nowrap",
6060
5754
  cursor: "pointer",
6061
5755
  _focusVisible: {
6062
- // borderColor: 'border.focused',
6063
5756
  outlineColor: "border.focused"
6064
5757
  },
6065
5758
  _disabled: {
@@ -6990,16 +6683,599 @@ const menuRecipe$1 = defineSlotRecipe({
6990
6683
  indicatorPosition: "left"
6991
6684
  }
6992
6685
  });
6686
+ const chipBase = {
6687
+ container: {
6688
+ position: "relative",
6689
+ display: "inline-flex",
6690
+ alignItems: "center",
6691
+ appearance: "none",
6692
+ width: "fit",
6693
+ borderRadius: "999",
6694
+ fontFamily: "sans",
6695
+ lineHeight: "default",
6696
+ fontWeight: "medium",
6697
+ whiteSpace: "nowrap",
6698
+ verticalAlign: "middle",
6699
+ cursor: "pointer",
6700
+ transitionDuration: "fast",
6701
+ transitionProperty: "background, border-color, color, box-shadow",
6702
+ transitionTimingFunction: "default",
6703
+ userSelect: "none",
6704
+ outlineWidth: 2,
6705
+ outlineStyle: "solid",
6706
+ outlineColor: "transparent",
6707
+ bg: "bg.neutral",
6708
+ color: "text",
6709
+ icon: { fill: "icon.decorative" },
6710
+ _hover: {
6711
+ bg: "bg.neutral.hovered",
6712
+ icon: { fill: "icon.decorative.hovered" }
6713
+ },
6714
+ _active: {
6715
+ bg: "bg.neutral.pressed",
6716
+ icon: { fill: "icon.decorative.hovered" }
6717
+ },
6718
+ _focusVisible: {
6719
+ outlineColor: "border.focused"
6720
+ },
6721
+ _loading: {
6722
+ cursor: "wait",
6723
+ animation: "pulse"
6724
+ },
6725
+ _deleted: {
6726
+ textDecoration: "line-through",
6727
+ cursor: "not-allowed",
6728
+ opacity: 0.6
6729
+ },
6730
+ _disabled: {
6731
+ cursor: "not-allowed",
6732
+ bg: "bg.disabled",
6733
+ color: "text.disabled",
6734
+ borderColor: "border.disabled",
6735
+ icon: { fill: "icon.disabled" },
6736
+ _hover: {
6737
+ bg: "bg.disabled",
6738
+ color: "text.disabled",
6739
+ borderColor: "border.disabled",
6740
+ icon: { fill: "icon.disabled" }
6741
+ }
6742
+ },
6743
+ _selected: {
6744
+ bg: "bg.brand.boldest",
6745
+ color: "text.inverse",
6746
+ icon: { fill: "icon.decorative.inverse" },
6747
+ _hover: {
6748
+ bg: "bg.brand.boldest.hovered",
6749
+ icon: { fill: "icon.inverse" }
6750
+ },
6751
+ _active: {
6752
+ bg: "bg.brand.boldest.pressed",
6753
+ icon: { fill: "icon.inverse" }
6754
+ }
6755
+ }
6756
+ },
6757
+ icon: {
6758
+ aspectRatio: "square",
6759
+ transitionDuration: "fast",
6760
+ transitionProperty: "fill",
6761
+ transitionTimingFunction: "default"
6762
+ }
6763
+ };
6764
+ const chipRecipe$1 = defineSlotRecipe({
6765
+ className: "chip",
6766
+ jsx: ["Chip"],
6767
+ slots: ["container", "icon"],
6768
+ base: chipBase,
6769
+ variants: {
6770
+ size: {
6771
+ default: {
6772
+ container: {
6773
+ gap: "4",
6774
+ h: "24",
6775
+ px: "8",
6776
+ py: "1",
6777
+ fontSize: "14"
6778
+ },
6779
+ icon: {
6780
+ w: "20",
6781
+ h: "20"
6782
+ }
6783
+ },
6784
+ small: {
6785
+ container: {
6786
+ gap: "2",
6787
+ h: "20",
6788
+ px: "6",
6789
+ py: "0",
6790
+ fontSize: "14"
6791
+ },
6792
+ icon: {
6793
+ w: "20",
6794
+ h: "20"
6795
+ }
6796
+ },
6797
+ large: {
6798
+ container: {
6799
+ gap: "4",
6800
+ h: "32",
6801
+ px: "10",
6802
+ py: "4",
6803
+ fontSize: "16"
6804
+ },
6805
+ icon: {
6806
+ w: "24",
6807
+ h: "24"
6808
+ }
6809
+ }
6810
+ },
6811
+ before: {
6812
+ true: { container: {} }
6813
+ },
6814
+ after: {
6815
+ true: { container: {} }
6816
+ }
6817
+ },
6818
+ compoundVariants: [
6819
+ {
6820
+ size: "default",
6821
+ before: true,
6822
+ css: {
6823
+ container: { ps: "2" }
6824
+ }
6825
+ },
6826
+ {
6827
+ size: "default",
6828
+ after: true,
6829
+ css: {
6830
+ container: { pe: "2" }
6831
+ }
6832
+ },
6833
+ {
6834
+ size: "small",
6835
+ before: true,
6836
+ css: {
6837
+ container: { ps: "2" }
6838
+ }
6839
+ },
6840
+ {
6841
+ size: "small",
6842
+ after: true,
6843
+ css: {
6844
+ container: { pe: "2" }
6845
+ }
6846
+ },
6847
+ {
6848
+ size: "large",
6849
+ before: true,
6850
+ css: {
6851
+ container: { ps: "4" }
6852
+ }
6853
+ },
6854
+ {
6855
+ size: "large",
6856
+ after: true,
6857
+ css: {
6858
+ container: { pe: "4" }
6859
+ }
6860
+ }
6861
+ ],
6862
+ defaultVariants: {
6863
+ size: "default"
6864
+ }
6865
+ });
6866
+ const badgeRecipe$1 = defineSlotRecipe({
6867
+ className: "badge",
6868
+ jsx: ["Badge"],
6869
+ slots: ["root", "indicator"],
6870
+ staticCss: [
6871
+ {
6872
+ size: ["sm", "md", "lg"],
6873
+ standalone: ["true", "false"],
6874
+ dot: ["true", "false"],
6875
+ appearance: [
6876
+ "neutral",
6877
+ "inverted",
6878
+ "subtle",
6879
+ "subtle-inverted",
6880
+ "success",
6881
+ "danger",
6882
+ "warning",
6883
+ "info"
6884
+ ]
6885
+ }
6886
+ ],
6887
+ base: {
6888
+ root: {
6889
+ display: "inline-flex",
6890
+ position: "relative",
6891
+ verticalAlign: "middle"
6892
+ },
6893
+ indicator: {
6894
+ display: "inline-flex",
6895
+ alignItems: "center",
6896
+ justifyContent: "center",
6897
+ borderRadius: "full",
6898
+ fontWeight: "medium",
6899
+ fontFamily: "sans",
6900
+ lineHeight: "1",
6901
+ whiteSpace: "nowrap",
6902
+ userSelect: "none",
6903
+ zIndex: "1"
6904
+ }
6905
+ },
6906
+ variants: {
6907
+ size: {
6908
+ sm: {
6909
+ indicator: {
6910
+ h: "6",
6911
+ fontSize: "10",
6912
+ p: "3"
6913
+ }
6914
+ },
6915
+ md: {
6916
+ indicator: {
6917
+ h: "8",
6918
+ fontSize: "12",
6919
+ p: "4"
6920
+ }
6921
+ },
6922
+ lg: {
6923
+ indicator: {
6924
+ h: "10",
6925
+ fontSize: "14",
6926
+ p: "5"
6927
+ }
6928
+ }
6929
+ },
6930
+ // When standalone (no children), don't use absolute positioning
6931
+ standalone: {
6932
+ true: {
6933
+ root: {
6934
+ display: "inline-flex"
6935
+ },
6936
+ indicator: {
6937
+ position: "static",
6938
+ transform: "none"
6939
+ }
6940
+ },
6941
+ false: {
6942
+ root: {
6943
+ display: "inline-flex",
6944
+ position: "relative",
6945
+ verticalAlign: "middle"
6946
+ },
6947
+ indicator: {
6948
+ position: "absolute",
6949
+ top: "0",
6950
+ right: "0",
6951
+ transform: "translate(50%, -50%)"
6952
+ }
6953
+ }
6954
+ },
6955
+ // Dot mode: smaller, no text
6956
+ dot: {
6957
+ true: {
6958
+ indicator: {
6959
+ // Dot mode styles handled by base + size variants
6960
+ }
6961
+ },
6962
+ false: {
6963
+ indicator: {
6964
+ // Count mode - compound variants handle sizing
6965
+ }
6966
+ }
6967
+ },
6968
+ // Appearance variants for color schemes
6969
+ appearance: {
6970
+ neutral: {
6971
+ indicator: {
6972
+ bg: { base: "neutral.30", _dark: "darkNeutral.40" },
6973
+ color: "text"
6974
+ }
6975
+ },
6976
+ subtle: {
6977
+ indicator: {
6978
+ bg: "bg.neutral",
6979
+ color: "text"
6980
+ }
6981
+ },
6982
+ inverted: {
6983
+ indicator: {
6984
+ bg: "bg.neutral.inverse.bold",
6985
+ color: "text.inverse"
6986
+ }
6987
+ },
6988
+ "subtle-inverted": {
6989
+ indicator: {
6990
+ bg: "bg.neutral.inverse.subtle",
6991
+ color: "text"
6992
+ }
6993
+ },
6994
+ success: {
6995
+ indicator: {
6996
+ bg: "bg.success.bold",
6997
+ color: "text.inverse"
6998
+ }
6999
+ },
7000
+ danger: {
7001
+ indicator: {
7002
+ bg: "bg.danger.bold",
7003
+ color: "text.inverse"
7004
+ }
7005
+ },
7006
+ warning: {
7007
+ indicator: {
7008
+ bg: "bg.warning.bold",
7009
+ color: "text.warning.inverse"
7010
+ }
7011
+ },
7012
+ info: {
7013
+ indicator: {
7014
+ bg: "bg.info.bold",
7015
+ color: "text.inverse"
7016
+ }
7017
+ }
7018
+ }
7019
+ },
7020
+ compoundVariants: [
7021
+ // Count mode sizes (smaller than count mode)
7022
+ {
7023
+ dot: false,
7024
+ size: "sm",
7025
+ css: {
7026
+ indicator: {
7027
+ minW: "16",
7028
+ h: "fit"
7029
+ // w: '4',
7030
+ // h: '4',
7031
+ // p: '3',
7032
+ }
7033
+ }
7034
+ },
7035
+ {
7036
+ dot: false,
7037
+ size: "md",
7038
+ css: {
7039
+ indicator: {
7040
+ minW: "20",
7041
+ h: "fit"
7042
+ // w: '6',
7043
+ // h: '6',
7044
+ // p: '4',
7045
+ }
7046
+ }
7047
+ },
7048
+ {
7049
+ dot: false,
7050
+ size: "lg",
7051
+ css: {
7052
+ indicator: {
7053
+ minW: "24",
7054
+ h: "fit"
7055
+ // w: '8',
7056
+ // h: '8',
7057
+ // p: '5',
7058
+ }
7059
+ }
7060
+ }
7061
+ ],
7062
+ defaultVariants: {
7063
+ size: "md",
7064
+ appearance: "danger"
7065
+ }
7066
+ });
7067
+ const avatarRecipe$1 = defineSlotRecipe({
7068
+ className: "avatar",
7069
+ jsx: ["Avatar"],
7070
+ slots: ["root", "image", "fallback", "presence", "status"],
7071
+ staticCss: [
7072
+ {
7073
+ size: ["xs", "sm", "md", "lx", "xl", "2xl"],
7074
+ shape: ["circle", "square", "hexagon"]
7075
+ }
7076
+ ],
7077
+ base: {
7078
+ root: {
7079
+ display: "inline-flex",
7080
+ position: "relative",
7081
+ alignItems: "center",
7082
+ justifyContent: "center",
7083
+ verticalAlign: "middle",
7084
+ flexShrink: 0,
7085
+ color: "text",
7086
+ bg: "bg.neutral",
7087
+ userSelect: "none",
7088
+ aspectRatio: "square"
7089
+ },
7090
+ image: {
7091
+ w: "full",
7092
+ h: "full",
7093
+ objectFit: "cover",
7094
+ overflow: "hidden"
7095
+ },
7096
+ fallback: {
7097
+ display: "flex",
7098
+ alignItems: "center",
7099
+ justifyContent: "center",
7100
+ w: "full",
7101
+ h: "full",
7102
+ fontFamily: "sans",
7103
+ fontWeight: "medium",
7104
+ textTransform: "uppercase",
7105
+ color: "text.subtle"
7106
+ },
7107
+ presence: {
7108
+ position: "absolute",
7109
+ bottom: "0",
7110
+ right: "0",
7111
+ borderRadius: "full",
7112
+ borderWidth: "2",
7113
+ borderStyle: "solid",
7114
+ borderColor: "bg",
7115
+ zIndex: 1
7116
+ },
7117
+ status: {
7118
+ position: "absolute",
7119
+ top: "0",
7120
+ right: "0",
7121
+ display: "flex",
7122
+ alignItems: "center",
7123
+ justifyContent: "center",
7124
+ borderRadius: "full",
7125
+ borderWidth: "2",
7126
+ borderStyle: "solid",
7127
+ borderColor: "bg",
7128
+ zIndex: 1
7129
+ }
7130
+ },
7131
+ variants: {
7132
+ size: {
7133
+ xs: {
7134
+ root: {
7135
+ w: "16",
7136
+ h: "16"
7137
+ },
7138
+ fallback: {
7139
+ fontSize: "8"
7140
+ },
7141
+ presence: {
7142
+ w: "6",
7143
+ h: "6"
7144
+ },
7145
+ status: {
7146
+ w: "8",
7147
+ h: "8"
7148
+ }
7149
+ },
7150
+ sm: {
7151
+ root: {
7152
+ w: "20",
7153
+ h: "20"
7154
+ },
7155
+ fallback: {
7156
+ fontSize: "10"
7157
+ },
7158
+ presence: {
7159
+ w: "8",
7160
+ h: "8"
7161
+ },
7162
+ status: {
7163
+ w: "10",
7164
+ h: "10"
7165
+ }
7166
+ },
7167
+ md: {
7168
+ root: {
7169
+ w: "24",
7170
+ h: "24"
7171
+ },
7172
+ fallback: {
7173
+ fontSize: "12"
7174
+ },
7175
+ presence: {
7176
+ w: "8",
7177
+ h: "8"
7178
+ },
7179
+ status: {
7180
+ w: "10",
7181
+ h: "10"
7182
+ }
7183
+ },
7184
+ lg: {
7185
+ root: {
7186
+ w: "32",
7187
+ h: "32"
7188
+ },
7189
+ fallback: {
7190
+ fontSize: "14"
7191
+ },
7192
+ presence: {
7193
+ w: "10",
7194
+ h: "10"
7195
+ },
7196
+ status: {
7197
+ w: "12",
7198
+ h: "12"
7199
+ }
7200
+ },
7201
+ xl: {
7202
+ root: {
7203
+ w: "48",
7204
+ h: "48"
7205
+ },
7206
+ fallback: {
7207
+ fontSize: "20"
7208
+ },
7209
+ presence: {
7210
+ w: "12",
7211
+ h: "12"
7212
+ },
7213
+ status: {
7214
+ w: "16",
7215
+ h: "16"
7216
+ }
7217
+ },
7218
+ "2xl": {
7219
+ root: {
7220
+ w: "64",
7221
+ h: "64"
7222
+ },
7223
+ fallback: {
7224
+ fontSize: "24"
7225
+ },
7226
+ presence: {
7227
+ w: "14",
7228
+ h: "14"
7229
+ },
7230
+ status: {
7231
+ w: "20",
7232
+ h: "20"
7233
+ }
7234
+ }
7235
+ },
7236
+ shape: {
7237
+ circle: {
7238
+ root: {
7239
+ borderRadius: "full"
7240
+ },
7241
+ image: {
7242
+ borderRadius: "full"
7243
+ }
7244
+ },
7245
+ square: {
7246
+ root: {
7247
+ borderRadius: "4"
7248
+ },
7249
+ image: {
7250
+ borderRadius: "4"
7251
+ }
7252
+ },
7253
+ hexagon: {
7254
+ root: {
7255
+ clipPath: "polygon(45% 1.33975%,46.5798% .60307%,48.26352% .15192%,50% 0,51.73648% .15192%,53.4202% .60307%,55% 1.33975%,89.64102% 21.33975%,91.06889% 22.33956%,92.30146% 23.57212%,93.30127% 25%,94.03794% 26.5798%,94.48909% 28.26352%,94.64102% 30%,94.64102% 70%,94.48909% 71.73648%,94.03794% 73.4202%,93.30127% 75%,92.30146% 76.42788%,91.06889% 77.66044%,89.64102% 78.66025%,55% 98.66025%,53.4202% 99.39693%,51.73648% 99.84808%,50% 100%,48.26352% 99.84808%,46.5798% 99.39693%,45% 98.66025%,10.35898% 78.66025%,8.93111% 77.66044%,7.69854% 76.42788%,6.69873% 75%,5.96206% 73.4202%,5.51091% 71.73648%,5.35898% 70%,5.35898% 30%,5.51091% 28.26352%,5.96206% 26.5798%,6.69873% 25%,7.69854% 23.57212%,8.93111% 22.33956%,10.35898% 21.33975%)"
7256
+ },
7257
+ image: {
7258
+ clipPath: "polygon(45% 1.33975%,46.5798% .60307%,48.26352% .15192%,50% 0,51.73648% .15192%,53.4202% .60307%,55% 1.33975%,89.64102% 21.33975%,91.06889% 22.33956%,92.30146% 23.57212%,93.30127% 25%,94.03794% 26.5798%,94.48909% 28.26352%,94.64102% 30%,94.64102% 70%,94.48909% 71.73648%,94.03794% 73.4202%,93.30127% 75%,92.30146% 76.42788%,91.06889% 77.66044%,89.64102% 78.66025%,55% 98.66025%,53.4202% 99.39693%,51.73648% 99.84808%,50% 100%,48.26352% 99.84808%,46.5798% 99.39693%,45% 98.66025%,10.35898% 78.66025%,8.93111% 77.66044%,7.69854% 76.42788%,6.69873% 75%,5.96206% 73.4202%,5.51091% 71.73648%,5.35898% 70%,5.35898% 30%,5.51091% 28.26352%,5.96206% 26.5798%,6.69873% 25%,7.69854% 23.57212%,8.93111% 22.33956%,10.35898% 21.33975%)"
7259
+ }
7260
+ }
7261
+ }
7262
+ },
7263
+ defaultVariants: {
7264
+ size: "md",
7265
+ shape: "circle"
7266
+ }
7267
+ });
6993
7268
  const componentRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
6994
7269
  __proto__: null,
6995
- badgeRecipe,
7270
+ avatarRecipe: avatarRecipe$1,
7271
+ badgeRecipe: badgeRecipe$1,
6996
7272
  boxRecipe,
6997
7273
  breadcrumbsRecipe,
6998
7274
  buttonRecipe: buttonRecipe$1,
6999
7275
  cardRecipe,
7000
7276
  checkboxInputRecipe,
7001
7277
  checkboxRecipe: checkboxRecipe$1,
7002
- chipRecipe,
7278
+ chipRecipe: chipRecipe$1,
7003
7279
  codeRecipe,
7004
7280
  dividerRecipe,
7005
7281
  headingRecipe,
@@ -7021,6 +7297,7 @@ const componentRecipes = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.de
7021
7297
  tooltipRecipe: tooltipRecipe$1
7022
7298
  }, Symbol.toStringTag, { value: "Module" }));
7023
7299
  const {
7300
+ badgeRecipe,
7024
7301
  buttonRecipe,
7025
7302
  iconButtonRecipe,
7026
7303
  checkboxRecipe,
@@ -7028,6 +7305,8 @@ const {
7028
7305
  tooltipRecipe,
7029
7306
  menuRecipe,
7030
7307
  toggleRecipe,
7308
+ chipRecipe,
7309
+ avatarRecipe,
7031
7310
  ...regularComponents
7032
7311
  } = componentRecipes;
7033
7312
  const transformedRecipes = Object.fromEntries(
@@ -7073,13 +7352,16 @@ const okshaunPreset = definePreset$1({
7073
7352
  ...transformedRecipes
7074
7353
  },
7075
7354
  slotRecipes: {
7355
+ badge: badgeRecipe,
7076
7356
  button: buttonRecipe,
7077
7357
  iconButton: iconButtonRecipe,
7078
7358
  checkbox: checkboxRecipe,
7079
7359
  radio: radioRecipe,
7080
7360
  tooltip: tooltipRecipe,
7081
7361
  menu: menuRecipe,
7082
- toggle: toggleRecipe
7362
+ toggle: toggleRecipe,
7363
+ chip: chipRecipe,
7364
+ avatar: avatarRecipe
7083
7365
  }
7084
7366
  }
7085
7367
  },