tamagui 3.0.0 → 3.0.2

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.
@@ -144,46 +144,61 @@ const selectItemSize = {
144
144
  paddingVertical: "2.5"
145
145
  }
146
146
  };
147
+ const nativeChevronStroke = (angle) => `linear-gradient(${angle}deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px) calc(50% + 0.75px), transparent calc(50% + 0.75px))`;
148
+ const nativeChevronPosition = (paddingInline) => {
149
+ const center = paddingInline + 8;
150
+ return `calc(100% - ${center - .25}px) 50%, calc(100% - ${center - 4.75}px) 50%`;
151
+ };
147
152
  const selectNativeSize = {
148
153
  xs: {
154
+ ...selectTextSize.xs,
149
155
  paddingInline: "2",
150
156
  paddingBlock: "1",
151
157
  borderRadius: "sm",
152
158
  gap: "1",
153
159
  height: 26,
154
- paddingRight: 28
160
+ paddingRight: 28,
161
+ backgroundPosition: nativeChevronPosition(8)
155
162
  },
156
163
  sm: {
164
+ ...selectTextSize.sm,
157
165
  paddingInline: "3",
158
166
  paddingBlock: "1.5",
159
167
  borderRadius: "md",
160
168
  gap: "1.5",
161
169
  height: 34,
162
- paddingRight: 32
170
+ paddingRight: 32,
171
+ backgroundPosition: nativeChevronPosition(12)
163
172
  },
164
173
  md: {
174
+ ...selectTextSize.md,
165
175
  paddingInline: "4",
166
176
  paddingBlock: "2",
167
177
  borderRadius: "md",
168
178
  gap: "2",
169
179
  height: 38,
170
- paddingRight: 36
180
+ paddingRight: 36,
181
+ backgroundPosition: nativeChevronPosition(16)
171
182
  },
172
183
  lg: {
184
+ ...selectTextSize.lg,
173
185
  paddingInline: "6",
174
186
  paddingBlock: "2",
175
187
  borderRadius: "md",
176
188
  gap: "2",
177
189
  height: 42,
178
- paddingRight: 44
190
+ paddingRight: 44,
191
+ backgroundPosition: nativeChevronPosition(24)
179
192
  },
180
193
  xl: {
194
+ ...selectTextSize.xl,
181
195
  paddingInline: "8",
182
196
  paddingBlock: "2.5",
183
197
  borderRadius: "lg",
184
198
  gap: "2.5",
185
199
  height: 50,
186
- paddingRight: 52
200
+ paddingRight: 52,
201
+ backgroundPosition: nativeChevronPosition(32)
187
202
  }
188
203
  };
189
204
  const SelectNative = (0, import_core.styled)(import_text.SizableText, {
@@ -195,6 +210,9 @@ const SelectNative = (0, import_core.styled)(import_text.SizableText, {
195
210
  color: "color",
196
211
  outlineWidth: 0,
197
212
  userSelect: "none",
213
+ backgroundImage: `${nativeChevronStroke(45)}, ${nativeChevronStroke(-45)}`,
214
+ backgroundRepeat: "no-repeat",
215
+ backgroundSize: "5px 5px",
198
216
  variants: { size: {
199
217
  ...selectNativeSize,
200
218
  true: selectNativeSize.md
@@ -155,46 +155,63 @@ var selectItemSize = {
155
155
  paddingVertical: "2.5"
156
156
  }
157
157
  };
158
+ var nativeChevronStroke = function(angle) {
159
+ return `linear-gradient(${angle}deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px) calc(50% + 0.75px), transparent calc(50% + 0.75px))`;
160
+ };
161
+ var nativeChevronPosition = function(paddingInline) {
162
+ var center = paddingInline + 8;
163
+ return `calc(100% - ${center - .25}px) 50%, calc(100% - ${center - 4.75}px) 50%`;
164
+ };
158
165
  var selectNativeSize = {
159
166
  xs: {
167
+ ...selectTextSize.xs,
160
168
  paddingInline: "2",
161
169
  paddingBlock: "1",
162
170
  borderRadius: "sm",
163
171
  gap: "1",
164
172
  height: 26,
165
- paddingRight: 28
173
+ paddingRight: 28,
174
+ backgroundPosition: nativeChevronPosition(8)
166
175
  },
167
176
  sm: {
177
+ ...selectTextSize.sm,
168
178
  paddingInline: "3",
169
179
  paddingBlock: "1.5",
170
180
  borderRadius: "md",
171
181
  gap: "1.5",
172
182
  height: 34,
173
- paddingRight: 32
183
+ paddingRight: 32,
184
+ backgroundPosition: nativeChevronPosition(12)
174
185
  },
175
186
  md: {
187
+ ...selectTextSize.md,
176
188
  paddingInline: "4",
177
189
  paddingBlock: "2",
178
190
  borderRadius: "md",
179
191
  gap: "2",
180
192
  height: 38,
181
- paddingRight: 36
193
+ paddingRight: 36,
194
+ backgroundPosition: nativeChevronPosition(16)
182
195
  },
183
196
  lg: {
197
+ ...selectTextSize.lg,
184
198
  paddingInline: "6",
185
199
  paddingBlock: "2",
186
200
  borderRadius: "md",
187
201
  gap: "2",
188
202
  height: 42,
189
- paddingRight: 44
203
+ paddingRight: 44,
204
+ backgroundPosition: nativeChevronPosition(24)
190
205
  },
191
206
  xl: {
207
+ ...selectTextSize.xl,
192
208
  paddingInline: "8",
193
209
  paddingBlock: "2.5",
194
210
  borderRadius: "lg",
195
211
  gap: "2.5",
196
212
  height: 50,
197
- paddingRight: 52
213
+ paddingRight: 52,
214
+ backgroundPosition: nativeChevronPosition(32)
198
215
  }
199
216
  };
200
217
  var SelectNative = (0, import_core.styled)(import_text.SizableText, {
@@ -206,6 +223,9 @@ var SelectNative = (0, import_core.styled)(import_text.SizableText, {
206
223
  color: "color",
207
224
  outlineWidth: 0,
208
225
  userSelect: "none",
226
+ backgroundImage: `${nativeChevronStroke(45)}, ${nativeChevronStroke(-45)}`,
227
+ backgroundRepeat: "no-repeat",
228
+ backgroundSize: "5px 5px",
209
229
  variants: { size: {
210
230
  ...selectNativeSize,
211
231
  true: selectNativeSize.md
@@ -155,46 +155,63 @@ var selectItemSize = {
155
155
  paddingVertical: "2.5"
156
156
  }
157
157
  };
158
+ var nativeChevronStroke = function(angle) {
159
+ return `linear-gradient(${angle}deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px) calc(50% + 0.75px), transparent calc(50% + 0.75px))`;
160
+ };
161
+ var nativeChevronPosition = function(paddingInline) {
162
+ var center = paddingInline + 8;
163
+ return `calc(100% - ${center - .25}px) 50%, calc(100% - ${center - 4.75}px) 50%`;
164
+ };
158
165
  var selectNativeSize = {
159
166
  xs: {
167
+ ...selectTextSize.xs,
160
168
  paddingInline: "2",
161
169
  paddingBlock: "1",
162
170
  borderRadius: "sm",
163
171
  gap: "1",
164
172
  height: 26,
165
- paddingRight: 28
173
+ paddingRight: 28,
174
+ backgroundPosition: nativeChevronPosition(8)
166
175
  },
167
176
  sm: {
177
+ ...selectTextSize.sm,
168
178
  paddingInline: "3",
169
179
  paddingBlock: "1.5",
170
180
  borderRadius: "md",
171
181
  gap: "1.5",
172
182
  height: 34,
173
- paddingRight: 32
183
+ paddingRight: 32,
184
+ backgroundPosition: nativeChevronPosition(12)
174
185
  },
175
186
  md: {
187
+ ...selectTextSize.md,
176
188
  paddingInline: "4",
177
189
  paddingBlock: "2",
178
190
  borderRadius: "md",
179
191
  gap: "2",
180
192
  height: 38,
181
- paddingRight: 36
193
+ paddingRight: 36,
194
+ backgroundPosition: nativeChevronPosition(16)
182
195
  },
183
196
  lg: {
197
+ ...selectTextSize.lg,
184
198
  paddingInline: "6",
185
199
  paddingBlock: "2",
186
200
  borderRadius: "md",
187
201
  gap: "2",
188
202
  height: 42,
189
- paddingRight: 44
203
+ paddingRight: 44,
204
+ backgroundPosition: nativeChevronPosition(24)
190
205
  },
191
206
  xl: {
207
+ ...selectTextSize.xl,
192
208
  paddingInline: "8",
193
209
  paddingBlock: "2.5",
194
210
  borderRadius: "lg",
195
211
  gap: "2.5",
196
212
  height: 50,
197
- paddingRight: 52
213
+ paddingRight: 52,
214
+ backgroundPosition: nativeChevronPosition(32)
198
215
  }
199
216
  };
200
217
  var SelectNative = (0, import_core.styled)(import_text.SizableText, {
@@ -206,6 +223,9 @@ var SelectNative = (0, import_core.styled)(import_text.SizableText, {
206
223
  color: "color",
207
224
  outlineWidth: 0,
208
225
  userSelect: "none",
226
+ backgroundImage: `${nativeChevronStroke(45)}, ${nativeChevronStroke(-45)}`,
227
+ backgroundRepeat: "no-repeat",
228
+ backgroundSize: "5px 5px",
209
229
  variants: { size: {
210
230
  ...selectNativeSize,
211
231
  true: selectNativeSize.md
@@ -1 +1 @@
1
- {"version":3,"file":"Select.native.js","names":[],"sources":["cjs/components/Select.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Select_exports = {};\n__export(Select_exports, {\n Select: () => Select,\n SelectGroup: () => SelectGroup,\n SelectIcon: () => SelectIcon,\n SelectIndicator: () => SelectIndicator,\n SelectItem: () => SelectItem,\n SelectItemIndicator: () => SelectItemIndicator,\n SelectItemText: () => SelectItemText,\n SelectLabel: () => SelectLabel,\n SelectRoot: () => SelectRoot,\n SelectScrollDownButton: () => SelectScrollDownButton,\n SelectScrollUpButton: () => SelectScrollUpButton,\n SelectSeparator: () => SelectSeparator,\n SelectTrigger: () => SelectTrigger,\n SelectValue: () => SelectValue,\n SelectViewport: () => SelectViewport,\n selectParts: () => selectParts\n});\nmodule.exports = __toCommonJS(Select_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_select = require(\"@tamagui/select\");\nvar import_text = require(\"@tamagui/text\");\nvar IconGlyph = (0, import_core.styled)(import_text.SizableText, {\n displayName: \"SelectIconGlyph\",\n color: \"color\",\n userSelect: \"none\"\n});\nvar ChevronDown = function(param) {\n var { size = 16 } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u25BE\"\n });\n};\nvar ChevronUp = function(param) {\n var { size = 16 } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u25B4\"\n });\n};\nvar Check = function(param) {\n var { size = 14 } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u2713\"\n });\n};\nvar SelectContext = (0, import_core.createStyledContext)({\n size: \"md\"\n});\nvar selectFrameSize = {\n xs: {\n paddingInline: \"2\",\n paddingBlock: \"1\",\n borderRadius: \"sm\",\n gap: \"1\"\n },\n sm: {\n paddingInline: \"3\",\n paddingBlock: \"1.5\",\n borderRadius: \"md\",\n gap: \"1.5\"\n },\n md: {\n paddingInline: \"4\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\"\n },\n lg: {\n paddingInline: \"6\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\"\n },\n xl: {\n paddingInline: \"8\",\n paddingBlock: \"2.5\",\n borderRadius: \"lg\",\n gap: \"2.5\"\n }\n};\nvar selectTextSize = {\n xs: {\n fontSize: \"xs\",\n lineHeight: \"xs\"\n },\n sm: {\n fontSize: \"sm\",\n lineHeight: \"sm\"\n },\n md: {\n fontSize: \"sm\",\n lineHeight: \"sm\"\n },\n lg: {\n fontSize: \"base\",\n lineHeight: \"base\"\n },\n xl: {\n fontSize: \"lg\",\n lineHeight: \"lg\"\n }\n};\nvar selectItemSize = {\n xs: {\n gap: \"1\",\n paddingHorizontal: \"2\",\n paddingVertical: \"1\"\n },\n sm: {\n gap: \"1.5\",\n paddingHorizontal: \"3\",\n paddingVertical: \"1.5\"\n },\n md: {\n gap: \"2\",\n paddingHorizontal: \"4\",\n paddingVertical: \"2\"\n },\n lg: {\n gap: \"2\",\n paddingHorizontal: \"6\",\n paddingVertical: \"2\"\n },\n xl: {\n gap: \"2.5\",\n paddingHorizontal: \"8\",\n paddingVertical: \"2.5\"\n }\n};\nvar selectNativeSize = {\n // a native <select> ignores line-height, so it gets the control height\n // (line height plus vertical padding) plus its 1px border on each side,\n // and room for the chevron\n xs: {\n paddingInline: \"2\",\n paddingBlock: \"1\",\n borderRadius: \"sm\",\n gap: \"1\",\n height: 26,\n paddingRight: 28\n },\n sm: {\n paddingInline: \"3\",\n paddingBlock: \"1.5\",\n borderRadius: \"md\",\n gap: \"1.5\",\n height: 34,\n paddingRight: 32\n },\n md: {\n paddingInline: \"4\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 38,\n paddingRight: 36\n },\n lg: {\n paddingInline: \"6\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 42,\n paddingRight: 44\n },\n xl: {\n paddingInline: \"8\",\n paddingBlock: \"2.5\",\n borderRadius: \"lg\",\n gap: \"2.5\",\n height: 50,\n paddingRight: 52\n }\n};\nvar SelectNative = (0, import_core.styled)(import_text.SizableText, {\n displayName: \"SelectNative\",\n render: \"select\",\n backgroundColor: \"background hover:background-hover\",\n borderColor: \"border-color\",\n borderWidth: 1,\n color: \"color\",\n outlineWidth: 0,\n userSelect: \"none\",\n variants: {\n size: {\n ...selectNativeSize,\n true: selectNativeSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectTrigger = (0, import_core.styled)(import_select.Select.Trigger, {\n context: SelectContext,\n displayName: \"SelectTrigger\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n backgroundColor: \"background hover:background-hover press:background-press\",\n borderColor: \"border-color hover:border-color-hover\",\n borderWidth: 1,\n justifyContent: \"space-between\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:2px\",\n variants: {\n size: {\n ...selectFrameSize,\n true: selectFrameSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectValue = (0, import_core.styled)(import_select.Select.Value, {\n context: SelectContext,\n displayName: \"SelectValue\",\n color: \"color\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectIcon = (0, import_core.styled)(import_select.Select.Icon, {\n context: SelectContext,\n displayName: \"SelectIcon\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, {})\n});\nvar SelectGroup = (0, import_core.styled)(import_select.Select.Group, {\n displayName: \"SelectGroup\",\n width: \"100%\"\n});\nvar SelectLabel = (0, import_core.styled)(import_select.Select.Label, {\n context: SelectContext,\n displayName: \"SelectLabel\",\n color: \"color-10\",\n fontWeight: \"600\",\n paddingHorizontal: 10,\n paddingVertical: 6,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItem = (0, import_core.styled)(import_select.Select.Item, {\n context: SelectContext,\n displayName: \"SelectItem\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n justifyContent: \"space-between\",\n cursor: \"default\",\n outlineOffset: -1,\n borderRadius: 6,\n backgroundColor: \"hover:background-hover press:background-press focus:background-focus\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:1px\",\n variants: {\n size: {\n ...selectItemSize,\n true: selectItemSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItemText = (0, import_core.styled)(import_select.Select.ItemText, {\n context: SelectContext,\n displayName: \"SelectItemText\",\n color: \"color\",\n userSelect: \"none\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItemIndicator = (0, import_core.styled)(import_select.Select.ItemIndicator, {\n displayName: \"SelectItemIndicator\",\n alignItems: \"center\",\n justifyContent: \"center\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, {\n size: 14\n })\n});\nvar SelectIndicator = (0, import_core.styled)(import_select.Select.Indicator, {\n displayName: \"SelectIndicator\",\n backgroundColor: \"background-focus\",\n borderRadius: 6\n});\nvar SelectViewport = (0, import_core.styled)(import_select.Select.Viewport, {\n displayName: \"SelectViewport\",\n backgroundColor: \"background\",\n borderColor: \"border-color\",\n borderRadius: 10,\n borderWidth: 1,\n maxHeight: 300,\n padding: 4,\n boxShadow: \"0 12px 28px rgba(0, 0, 0, 0.2)\"\n});\nvar SelectScrollUpButton = (0, import_core.styled)(import_select.Select.ScrollUpButton, {\n displayName: \"SelectScrollUpButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronUp, {\n size: 16\n })\n});\nvar SelectScrollDownButton = (0, import_core.styled)(import_select.Select.ScrollDownButton, {\n displayName: \"SelectScrollDownButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, {\n size: 16\n })\n});\nvar SelectSeparator = (0, import_core.styled)(import_select.Select.Separator, {\n displayName: \"SelectSeparator\",\n backgroundColor: \"border-color\",\n height: 1,\n marginVertical: 4\n});\nfunction SelectRoot(param) {\n var { size = true, ...props } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectNativeComponentContext.Provider, {\n value: SelectNative,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContext.Provider, {\n size,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.Root, {\n size,\n ...props\n })\n })\n });\n}\nvar selectParts = {\n Adapt: import_select.Select.Adapt,\n Content: import_select.Select.Content,\n FocusScope: import_select.Select.FocusScope,\n Group: SelectGroup,\n Icon: SelectIcon,\n Indicator: SelectIndicator,\n Item: SelectItem,\n ItemIndicator: SelectItemIndicator,\n ItemText: SelectItemText,\n Label: SelectLabel,\n ScrollDownButton: SelectScrollDownButton,\n ScrollUpButton: SelectScrollUpButton,\n Separator: SelectSeparator,\n Trigger: SelectTrigger,\n Value: SelectValue,\n Viewport: SelectViewport\n};\nvar Select = (0, import_core.withStaticProperties)(SelectRoot, {\n Root: SelectRoot,\n ...selectParts\n});\n//# sourceMappingURL=Select.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,iBAAiB,CAAC;AACtB,SAAS,gBAAgB;CACvB,cAAc;CACd,mBAAmB;CACnB,kBAAkB;CAClB,uBAAuB;CACvB,kBAAkB;CAClB,2BAA2B;CAC3B,sBAAsB;CACtB,mBAAmB;CACnB,kBAAkB;CAClB,8BAA8B;CAC9B,4BAA4B;CAC5B,uBAAuB;CACvB,qBAAqB;CACrB,mBAAmB;CACnB,sBAAsB;CACtB,mBAAmB;AACrB,CAAC;AACD,OAAO,UAAU,aAAa,cAAc;AA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D,SAAS,WAAW,OAAO;CACzB,IAAI,EAAE,OAAO,MAAM,GAAG,UAAU;CAChC,OAAuB,iBAAC,GAAG,mBAAmB,IAAG,CAAE,cAAc,6BAA6B,UAAU;EACtG,OAAO;EACP,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,cAAc,UAAU;GAC5E;GACA,UAA0B,iBAAC,GAAG,mBAAmB,IAAG,CAAE,cAAc,OAAO,MAAM;IAC/E;IACA,GAAG;GACL,CAAC;EACH,CAAC;CACH,CAAC;AACH;AACA,IAAI,cAAc;CAChB,OAAO,cAAc,OAAO;CAC5B,SAAS,cAAc,OAAO;CAC9B,YAAY,cAAc,OAAO;CACjC,OAAO;CACP,MAAM;CACN,WAAW;CACX,MAAM;CACN,eAAe;CACf,UAAU;CACV,OAAO;CACP,kBAAkB;CAClB,gBAAgB;CAChB,WAAW;CACX,SAAS;CACT,OAAO;CACP,UAAU;AACZ;AACA,IAAI,UAAU,GAAG,YAAY,qBAAoB,CAAE,YAAY;CAC7D,MAAM;CACN,GAAG;AACL,CAAC"}
1
+ {"version":3,"file":"Select.native.js","names":[],"sources":["cjs/components/Select.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar Select_exports = {};\n__export(Select_exports, {\n Select: () => Select,\n SelectGroup: () => SelectGroup,\n SelectIcon: () => SelectIcon,\n SelectIndicator: () => SelectIndicator,\n SelectItem: () => SelectItem,\n SelectItemIndicator: () => SelectItemIndicator,\n SelectItemText: () => SelectItemText,\n SelectLabel: () => SelectLabel,\n SelectRoot: () => SelectRoot,\n SelectScrollDownButton: () => SelectScrollDownButton,\n SelectScrollUpButton: () => SelectScrollUpButton,\n SelectSeparator: () => SelectSeparator,\n SelectTrigger: () => SelectTrigger,\n SelectValue: () => SelectValue,\n SelectViewport: () => SelectViewport,\n selectParts: () => selectParts\n});\nmodule.exports = __toCommonJS(Select_exports);\nvar import_jsx_runtime = require(\"react/jsx-runtime\");\nvar import_core = require(\"@tamagui/core\");\nvar import_select = require(\"@tamagui/select\");\nvar import_text = require(\"@tamagui/text\");\nvar IconGlyph = (0, import_core.styled)(import_text.SizableText, {\n displayName: \"SelectIconGlyph\",\n color: \"color\",\n userSelect: \"none\"\n});\nvar ChevronDown = function(param) {\n var { size = 16 } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u25BE\"\n });\n};\nvar ChevronUp = function(param) {\n var { size = 16 } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u25B4\"\n });\n};\nvar Check = function(param) {\n var { size = 14 } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u2713\"\n });\n};\nvar SelectContext = (0, import_core.createStyledContext)({\n size: \"md\"\n});\nvar selectFrameSize = {\n xs: {\n paddingInline: \"2\",\n paddingBlock: \"1\",\n borderRadius: \"sm\",\n gap: \"1\"\n },\n sm: {\n paddingInline: \"3\",\n paddingBlock: \"1.5\",\n borderRadius: \"md\",\n gap: \"1.5\"\n },\n md: {\n paddingInline: \"4\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\"\n },\n lg: {\n paddingInline: \"6\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\"\n },\n xl: {\n paddingInline: \"8\",\n paddingBlock: \"2.5\",\n borderRadius: \"lg\",\n gap: \"2.5\"\n }\n};\nvar selectTextSize = {\n xs: {\n fontSize: \"xs\",\n lineHeight: \"xs\"\n },\n sm: {\n fontSize: \"sm\",\n lineHeight: \"sm\"\n },\n md: {\n fontSize: \"sm\",\n lineHeight: \"sm\"\n },\n lg: {\n fontSize: \"base\",\n lineHeight: \"base\"\n },\n xl: {\n fontSize: \"lg\",\n lineHeight: \"lg\"\n }\n};\nvar selectItemSize = {\n xs: {\n gap: \"1\",\n paddingHorizontal: \"2\",\n paddingVertical: \"1\"\n },\n sm: {\n gap: \"1.5\",\n paddingHorizontal: \"3\",\n paddingVertical: \"1.5\"\n },\n md: {\n gap: \"2\",\n paddingHorizontal: \"4\",\n paddingVertical: \"2\"\n },\n lg: {\n gap: \"2\",\n paddingHorizontal: \"6\",\n paddingVertical: \"2\"\n },\n xl: {\n gap: \"2.5\",\n paddingHorizontal: \"8\",\n paddingVertical: \"2.5\"\n }\n};\nvar nativeChevronStroke = function(angle) {\n return `linear-gradient(${angle}deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px) calc(50% + 0.75px), transparent calc(50% + 0.75px))`;\n};\nvar nativeChevronPosition = function(paddingInline) {\n var center = paddingInline + 8;\n return `calc(100% - ${center - 0.25}px) 50%, calc(100% - ${center - 4.75}px) 50%`;\n};\nvar selectNativeSize = {\n // a native <select> ignores line-height, so it gets the control height\n // (line height plus vertical padding) plus its 1px border on each side,\n // and room for the chevron\n xs: {\n ...selectTextSize.xs,\n paddingInline: \"2\",\n paddingBlock: \"1\",\n borderRadius: \"sm\",\n gap: \"1\",\n height: 26,\n paddingRight: 28,\n backgroundPosition: nativeChevronPosition(8)\n },\n sm: {\n ...selectTextSize.sm,\n paddingInline: \"3\",\n paddingBlock: \"1.5\",\n borderRadius: \"md\",\n gap: \"1.5\",\n height: 34,\n paddingRight: 32,\n backgroundPosition: nativeChevronPosition(12)\n },\n md: {\n ...selectTextSize.md,\n paddingInline: \"4\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 38,\n paddingRight: 36,\n backgroundPosition: nativeChevronPosition(16)\n },\n lg: {\n ...selectTextSize.lg,\n paddingInline: \"6\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 42,\n paddingRight: 44,\n backgroundPosition: nativeChevronPosition(24)\n },\n xl: {\n ...selectTextSize.xl,\n paddingInline: \"8\",\n paddingBlock: \"2.5\",\n borderRadius: \"lg\",\n gap: \"2.5\",\n height: 50,\n paddingRight: 52,\n backgroundPosition: nativeChevronPosition(32)\n }\n};\nvar SelectNative = (0, import_core.styled)(import_text.SizableText, {\n displayName: \"SelectNative\",\n render: \"select\",\n backgroundColor: \"background hover:background-hover\",\n borderColor: \"border-color\",\n borderWidth: 1,\n color: \"color\",\n outlineWidth: 0,\n userSelect: \"none\",\n backgroundImage: `${nativeChevronStroke(45)}, ${nativeChevronStroke(-45)}`,\n backgroundRepeat: \"no-repeat\",\n backgroundSize: \"5px 5px\",\n variants: {\n size: {\n ...selectNativeSize,\n true: selectNativeSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectTrigger = (0, import_core.styled)(import_select.Select.Trigger, {\n context: SelectContext,\n displayName: \"SelectTrigger\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n backgroundColor: \"background hover:background-hover press:background-press\",\n borderColor: \"border-color hover:border-color-hover\",\n borderWidth: 1,\n justifyContent: \"space-between\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:2px\",\n variants: {\n size: {\n ...selectFrameSize,\n true: selectFrameSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectValue = (0, import_core.styled)(import_select.Select.Value, {\n context: SelectContext,\n displayName: \"SelectValue\",\n color: \"color\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectIcon = (0, import_core.styled)(import_select.Select.Icon, {\n context: SelectContext,\n displayName: \"SelectIcon\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, {})\n});\nvar SelectGroup = (0, import_core.styled)(import_select.Select.Group, {\n displayName: \"SelectGroup\",\n width: \"100%\"\n});\nvar SelectLabel = (0, import_core.styled)(import_select.Select.Label, {\n context: SelectContext,\n displayName: \"SelectLabel\",\n color: \"color-10\",\n fontWeight: \"600\",\n paddingHorizontal: 10,\n paddingVertical: 6,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItem = (0, import_core.styled)(import_select.Select.Item, {\n context: SelectContext,\n displayName: \"SelectItem\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n justifyContent: \"space-between\",\n cursor: \"default\",\n outlineOffset: -1,\n borderRadius: 6,\n backgroundColor: \"hover:background-hover press:background-press focus:background-focus\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:1px\",\n variants: {\n size: {\n ...selectItemSize,\n true: selectItemSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItemText = (0, import_core.styled)(import_select.Select.ItemText, {\n context: SelectContext,\n displayName: \"SelectItemText\",\n color: \"color\",\n userSelect: \"none\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItemIndicator = (0, import_core.styled)(import_select.Select.ItemIndicator, {\n displayName: \"SelectItemIndicator\",\n alignItems: \"center\",\n justifyContent: \"center\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Check, {\n size: 14\n })\n});\nvar SelectIndicator = (0, import_core.styled)(import_select.Select.Indicator, {\n displayName: \"SelectIndicator\",\n backgroundColor: \"background-focus\",\n borderRadius: 6\n});\nvar SelectViewport = (0, import_core.styled)(import_select.Select.Viewport, {\n displayName: \"SelectViewport\",\n backgroundColor: \"background\",\n borderColor: \"border-color\",\n borderRadius: 10,\n borderWidth: 1,\n maxHeight: 300,\n padding: 4,\n boxShadow: \"0 12px 28px rgba(0, 0, 0, 0.2)\"\n});\nvar SelectScrollUpButton = (0, import_core.styled)(import_select.Select.ScrollUpButton, {\n displayName: \"SelectScrollUpButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronUp, {\n size: 16\n })\n});\nvar SelectScrollDownButton = (0, import_core.styled)(import_select.Select.ScrollDownButton, {\n displayName: \"SelectScrollDownButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ChevronDown, {\n size: 16\n })\n});\nvar SelectSeparator = (0, import_core.styled)(import_select.Select.Separator, {\n displayName: \"SelectSeparator\",\n backgroundColor: \"border-color\",\n height: 1,\n marginVertical: 4\n});\nfunction SelectRoot(param) {\n var { size = true, ...props } = param;\n return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.SelectNativeComponentContext.Provider, {\n value: SelectNative,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(SelectContext.Provider, {\n size,\n children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_select.Select.Root, {\n size,\n ...props\n })\n })\n });\n}\nvar selectParts = {\n Adapt: import_select.Select.Adapt,\n Content: import_select.Select.Content,\n FocusScope: import_select.Select.FocusScope,\n Group: SelectGroup,\n Icon: SelectIcon,\n Indicator: SelectIndicator,\n Item: SelectItem,\n ItemIndicator: SelectItemIndicator,\n ItemText: SelectItemText,\n Label: SelectLabel,\n ScrollDownButton: SelectScrollDownButton,\n ScrollUpButton: SelectScrollUpButton,\n Separator: SelectSeparator,\n Trigger: SelectTrigger,\n Value: SelectValue,\n Viewport: SelectViewport\n};\nvar Select = (0, import_core.withStaticProperties)(SelectRoot, {\n Root: SelectRoot,\n ...selectParts\n});\n//# sourceMappingURL=Select.js.map\n"],"mappings":";;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,iBAAiB,CAAC;AACtB,SAAS,gBAAgB;CACvB,cAAc;CACd,mBAAmB;CACnB,kBAAkB;CAClB,uBAAuB;CACvB,kBAAkB;CAClB,2BAA2B;CAC3B,sBAAsB;CACtB,mBAAmB;CACnB,kBAAkB;CAClB,8BAA8B;CAC9B,4BAA4B;CAC5B,uBAAuB;CACvB,qBAAqB;CACrB,mBAAmB;CACnB,sBAAsB;CACtB,mBAA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 @@ const selectItemSize = {
105
105
  paddingVertical: "2.5"
106
106
  }
107
107
  };
108
+ const nativeChevronStroke = (angle) => `linear-gradient(${angle}deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px) calc(50% + 0.75px), transparent calc(50% + 0.75px))`;
109
+ const nativeChevronPosition = (paddingInline) => {
110
+ const center = paddingInline + 8;
111
+ return `calc(100% - ${center - .25}px) 50%, calc(100% - ${center - 4.75}px) 50%`;
112
+ };
108
113
  const selectNativeSize = {
109
114
  xs: {
115
+ ...selectTextSize.xs,
110
116
  paddingInline: "2",
111
117
  paddingBlock: "1",
112
118
  borderRadius: "sm",
113
119
  gap: "1",
114
120
  height: 26,
115
- paddingRight: 28
121
+ paddingRight: 28,
122
+ backgroundPosition: nativeChevronPosition(8)
116
123
  },
117
124
  sm: {
125
+ ...selectTextSize.sm,
118
126
  paddingInline: "3",
119
127
  paddingBlock: "1.5",
120
128
  borderRadius: "md",
121
129
  gap: "1.5",
122
130
  height: 34,
123
- paddingRight: 32
131
+ paddingRight: 32,
132
+ backgroundPosition: nativeChevronPosition(12)
124
133
  },
125
134
  md: {
135
+ ...selectTextSize.md,
126
136
  paddingInline: "4",
127
137
  paddingBlock: "2",
128
138
  borderRadius: "md",
129
139
  gap: "2",
130
140
  height: 38,
131
- paddingRight: 36
141
+ paddingRight: 36,
142
+ backgroundPosition: nativeChevronPosition(16)
132
143
  },
133
144
  lg: {
145
+ ...selectTextSize.lg,
134
146
  paddingInline: "6",
135
147
  paddingBlock: "2",
136
148
  borderRadius: "md",
137
149
  gap: "2",
138
150
  height: 42,
139
- paddingRight: 44
151
+ paddingRight: 44,
152
+ backgroundPosition: nativeChevronPosition(24)
140
153
  },
141
154
  xl: {
155
+ ...selectTextSize.xl,
142
156
  paddingInline: "8",
143
157
  paddingBlock: "2.5",
144
158
  borderRadius: "lg",
145
159
  gap: "2.5",
146
160
  height: 50,
147
- paddingRight: 52
161
+ paddingRight: 52,
162
+ backgroundPosition: nativeChevronPosition(32)
148
163
  }
149
164
  };
150
165
  const SelectNative = styled(SizableText, {
@@ -156,6 +171,9 @@ const SelectNative = styled(SizableText, {
156
171
  color: "color",
157
172
  outlineWidth: 0,
158
173
  userSelect: "none",
174
+ backgroundImage: `${nativeChevronStroke(45)}, ${nativeChevronStroke(-45)}`,
175
+ backgroundRepeat: "no-repeat",
176
+ backgroundSize: "5px 5px",
159
177
  variants: { size: {
160
178
  ...selectNativeSize,
161
179
  true: selectNativeSize.md
@@ -1 +1 @@
1
- {"version":3,"file":"Select.js","names":["SelectBehavior"],"sources":["esm/components/Select.js"],"sourcesContent":["import {\n createStyledContext,\n styled,\n withStaticProperties\n} from \"@tamagui/core\";\nimport {\n Select as SelectBehavior,\n SelectNativeComponentContext\n} from \"@tamagui/select\";\nimport { SizableText } from \"@tamagui/text\";\nimport { jsx } from \"react/jsx-runtime\";\nconst IconGlyph = styled(SizableText, {\n displayName: \"SelectIconGlyph\",\n color: \"color\",\n userSelect: \"none\"\n});\nconst ChevronDown = ({ size = 16 }) => /* @__PURE__ */ jsx(IconGlyph, { fontSize: size, lineHeight: 1, children: \"\\u25BE\" });\nconst ChevronUp = ({ size = 16 }) => /* @__PURE__ */ jsx(IconGlyph, { fontSize: size, lineHeight: 1, children: \"\\u25B4\" });\nconst Check = ({ size = 14 }) => /* @__PURE__ */ jsx(IconGlyph, { fontSize: size, lineHeight: 1, children: \"\\u2713\" });\nconst SelectContext = createStyledContext({ size: \"md\" });\nconst selectFrameSize = {\n xs: { paddingInline: \"2\", paddingBlock: \"1\", borderRadius: \"sm\", gap: \"1\" },\n sm: { paddingInline: \"3\", paddingBlock: \"1.5\", borderRadius: \"md\", gap: \"1.5\" },\n md: { paddingInline: \"4\", paddingBlock: \"2\", borderRadius: \"md\", gap: \"2\" },\n lg: { paddingInline: \"6\", paddingBlock: \"2\", borderRadius: \"md\", gap: \"2\" },\n xl: { paddingInline: \"8\", paddingBlock: \"2.5\", borderRadius: \"lg\", gap: \"2.5\" }\n};\nconst selectTextSize = {\n xs: { fontSize: \"xs\", lineHeight: \"xs\" },\n sm: { fontSize: \"sm\", lineHeight: \"sm\" },\n md: { fontSize: \"sm\", lineHeight: \"sm\" },\n lg: { fontSize: \"base\", lineHeight: \"base\" },\n xl: { fontSize: \"lg\", lineHeight: \"lg\" }\n};\nconst selectItemSize = {\n xs: { gap: \"1\", paddingHorizontal: \"2\", paddingVertical: \"1\" },\n sm: { gap: \"1.5\", paddingHorizontal: \"3\", paddingVertical: \"1.5\" },\n md: { gap: \"2\", paddingHorizontal: \"4\", paddingVertical: \"2\" },\n lg: { gap: \"2\", paddingHorizontal: \"6\", paddingVertical: \"2\" },\n xl: { gap: \"2.5\", paddingHorizontal: \"8\", paddingVertical: \"2.5\" }\n};\nconst selectNativeSize = {\n // a native <select> ignores line-height, so it gets the control height\n // (line height plus vertical padding) plus its 1px border on each side,\n // and room for the chevron\n xs: {\n paddingInline: \"2\",\n paddingBlock: \"1\",\n borderRadius: \"sm\",\n gap: \"1\",\n height: 26,\n paddingRight: 28\n },\n sm: {\n paddingInline: \"3\",\n paddingBlock: \"1.5\",\n borderRadius: \"md\",\n gap: \"1.5\",\n height: 34,\n paddingRight: 32\n },\n md: {\n paddingInline: \"4\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 38,\n paddingRight: 36\n },\n lg: {\n paddingInline: \"6\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 42,\n paddingRight: 44\n },\n xl: {\n paddingInline: \"8\",\n paddingBlock: \"2.5\",\n borderRadius: \"lg\",\n gap: \"2.5\",\n height: 50,\n paddingRight: 52\n }\n};\nconst SelectNative = styled(SizableText, {\n displayName: \"SelectNative\",\n render: \"select\",\n backgroundColor: \"background hover:background-hover\",\n borderColor: \"border-color\",\n borderWidth: 1,\n color: \"color\",\n outlineWidth: 0,\n userSelect: \"none\",\n variants: {\n size: {\n ...selectNativeSize,\n true: selectNativeSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectTrigger = styled(SelectBehavior.Trigger, {\n context: SelectContext,\n displayName: \"SelectTrigger\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n backgroundColor: \"background hover:background-hover press:background-press\",\n borderColor: \"border-color hover:border-color-hover\",\n borderWidth: 1,\n justifyContent: \"space-between\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:2px\",\n variants: {\n size: {\n ...selectFrameSize,\n true: selectFrameSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectValue = styled(SelectBehavior.Value, {\n context: SelectContext,\n displayName: \"SelectValue\",\n color: \"color\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectIcon = styled(SelectBehavior.Icon, {\n context: SelectContext,\n displayName: \"SelectIcon\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ jsx(ChevronDown, {})\n});\nconst SelectGroup = styled(SelectBehavior.Group, {\n displayName: \"SelectGroup\",\n width: \"100%\"\n});\nconst SelectLabel = styled(SelectBehavior.Label, {\n context: SelectContext,\n displayName: \"SelectLabel\",\n color: \"color-10\",\n fontWeight: \"600\",\n paddingHorizontal: 10,\n paddingVertical: 6,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectItem = styled(SelectBehavior.Item, {\n context: SelectContext,\n displayName: \"SelectItem\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n justifyContent: \"space-between\",\n cursor: \"default\",\n outlineOffset: -1,\n borderRadius: 6,\n backgroundColor: \"hover:background-hover press:background-press focus:background-focus\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:1px\",\n variants: {\n size: {\n ...selectItemSize,\n true: selectItemSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectItemText = styled(SelectBehavior.ItemText, {\n context: SelectContext,\n displayName: \"SelectItemText\",\n color: \"color\",\n userSelect: \"none\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectItemIndicator = styled(SelectBehavior.ItemIndicator, {\n displayName: \"SelectItemIndicator\",\n alignItems: \"center\",\n justifyContent: \"center\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ jsx(Check, { size: 14 })\n});\nconst SelectIndicator = styled(SelectBehavior.Indicator, {\n displayName: \"SelectIndicator\",\n backgroundColor: \"background-focus\",\n borderRadius: 6\n});\nconst SelectViewport = styled(SelectBehavior.Viewport, {\n displayName: \"SelectViewport\",\n backgroundColor: \"background\",\n borderColor: \"border-color\",\n borderRadius: 10,\n borderWidth: 1,\n maxHeight: 300,\n padding: 4,\n boxShadow: \"0 12px 28px rgba(0, 0, 0, 0.2)\"\n});\nconst SelectScrollUpButton = styled(SelectBehavior.ScrollUpButton, {\n displayName: \"SelectScrollUpButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ jsx(ChevronUp, { size: 16 })\n});\nconst SelectScrollDownButton = styled(SelectBehavior.ScrollDownButton, {\n displayName: \"SelectScrollDownButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ jsx(ChevronDown, { size: 16 })\n});\nconst SelectSeparator = styled(SelectBehavior.Separator, {\n displayName: \"SelectSeparator\",\n backgroundColor: \"border-color\",\n height: 1,\n marginVertical: 4\n});\nfunction SelectRoot({ size = true, ...props }) {\n return /* @__PURE__ */ jsx(SelectNativeComponentContext.Provider, { value: SelectNative, children: /* @__PURE__ */ jsx(SelectContext.Provider, { size, children: /* @__PURE__ */ jsx(SelectBehavior.Root, { size, ...props }) }) });\n}\nconst selectParts = {\n Adapt: SelectBehavior.Adapt,\n Content: SelectBehavior.Content,\n FocusScope: SelectBehavior.FocusScope,\n Group: SelectGroup,\n Icon: SelectIcon,\n Indicator: SelectIndicator,\n Item: SelectItem,\n ItemIndicator: SelectItemIndicator,\n ItemText: SelectItemText,\n Label: SelectLabel,\n ScrollDownButton: SelectScrollDownButton,\n ScrollUpButton: SelectScrollUpButton,\n Separator: SelectSeparator,\n Trigger: SelectTrigger,\n Value: SelectValue,\n Viewport: SelectViewport\n};\nconst Select = withStaticProperties(SelectRoot, {\n Root: SelectRoot,\n ...selectParts\n});\nexport {\n Select,\n SelectGroup,\n SelectIcon,\n SelectIndicator,\n SelectItem,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectRoot,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n SelectViewport,\n selectParts\n};\n//# sourceMappingURL=Select.js.map\n"],"mappings":";;;;;;AAWA,MAAM,YAAY,OAAO,aAAa;CACpC,aAAa;CACb,OAAO;CACP,YAAY;AACd,CAAC;AACD,MAAM,eAAe,EAAE,OAAO,SAAyB,oBAAI,WAAW;CAAE,UAAU;CAAM,YAAY;CAAG,UAAU;AAAS,CAAC;AAC3H,MAAM,aAAa,EAAE,OAAO,SAAyB,oBAAI,WAAW;CAAE,UAAU;CAAM,YAAY;CAAG,UAAU;AAAS,CAAC;AACzH,MAAM,SAAS,EAAE,OAAO,SAAyB,oBAAI,WAAW;CAAE,UAAU;CAAM,YAAY;CAAG,UAAU;AAAS,CAAC;AACrH,MAAM,gBAAgB,oBAAoB,EAAE,MAAM,KAAK,CAAC;AACxD,MAAM,kBAAkB;CACtB,IAAI;EAAE,eAAe;EAAK,cAAc;EAAK,cAAc;EAAM,KAAK;CAAI;CAC1E,IAAI;EAAE,eAAe;EAAK,cAAc;EAAO,cAAc;EAAM,KAAK;CAAM;CAC9E,IAAI;EAAE,eAAe;EAAK,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,6BAA6B,UAAU;EAAE,OAAO;EAAc,UAA0B,oBAAI,cAAc,UAAU;GAAE;GAAM,UAA0B,oBAAIA,SAAe,MAAM;IAAE;IAAM,GAAG;GAAM,CAAC;EAAE,CAAC;CAAE,CAAC;AACpO;AACA,MAAM,cAAc;CAClB,OAAOA,SAAe;CACtB,SAASA,SAAe;CACxB,YAAYA,SAAe;CAC3B,OAAO;CACP,MAAM;CACN,WAAW;CACX,MAAM;CACN,eAAe;CACf,UAAU;CACV,OAAO;CACP,kBAAkB;CAClB,gBAAgB;CAChB,WAAW;CACX,SAAS;CACT,OAAO;CACP,UAAU;AACZ;AACA,MAAM,SAAS,qBAAqB,YAAY;CAC9C,MAAM;CACN,GAAG;AACL,CAAC"}
1
+ {"version":3,"file":"Select.js","names":["SelectBehavior"],"sources":["esm/components/Select.js"],"sourcesContent":["import {\n createStyledContext,\n styled,\n withStaticProperties\n} from \"@tamagui/core\";\nimport {\n Select as SelectBehavior,\n SelectNativeComponentContext\n} from \"@tamagui/select\";\nimport { SizableText } from \"@tamagui/text\";\nimport { jsx } from \"react/jsx-runtime\";\nconst IconGlyph = styled(SizableText, {\n displayName: \"SelectIconGlyph\",\n color: \"color\",\n userSelect: \"none\"\n});\nconst ChevronDown = ({ size = 16 }) => /* @__PURE__ */ jsx(IconGlyph, { fontSize: size, lineHeight: 1, children: \"\\u25BE\" });\nconst ChevronUp = ({ size = 16 }) => /* @__PURE__ */ jsx(IconGlyph, { fontSize: size, lineHeight: 1, children: \"\\u25B4\" });\nconst Check = ({ size = 14 }) => /* @__PURE__ */ jsx(IconGlyph, { fontSize: size, lineHeight: 1, children: \"\\u2713\" });\nconst SelectContext = createStyledContext({ size: \"md\" });\nconst selectFrameSize = {\n xs: { paddingInline: \"2\", paddingBlock: \"1\", borderRadius: \"sm\", gap: \"1\" },\n sm: { paddingInline: \"3\", paddingBlock: \"1.5\", borderRadius: \"md\", gap: \"1.5\" },\n md: { paddingInline: \"4\", paddingBlock: \"2\", borderRadius: \"md\", gap: \"2\" },\n lg: { paddingInline: \"6\", paddingBlock: \"2\", borderRadius: \"md\", gap: \"2\" },\n xl: { paddingInline: \"8\", paddingBlock: \"2.5\", borderRadius: \"lg\", gap: \"2.5\" }\n};\nconst selectTextSize = {\n xs: { fontSize: \"xs\", lineHeight: \"xs\" },\n sm: { fontSize: \"sm\", lineHeight: \"sm\" },\n md: { fontSize: \"sm\", lineHeight: \"sm\" },\n lg: { fontSize: \"base\", lineHeight: \"base\" },\n xl: { fontSize: \"lg\", lineHeight: \"lg\" }\n};\nconst selectItemSize = {\n xs: { gap: \"1\", paddingHorizontal: \"2\", paddingVertical: \"1\" },\n sm: { gap: \"1.5\", paddingHorizontal: \"3\", paddingVertical: \"1.5\" },\n md: { gap: \"2\", paddingHorizontal: \"4\", paddingVertical: \"2\" },\n lg: { gap: \"2\", paddingHorizontal: \"6\", paddingVertical: \"2\" },\n xl: { gap: \"2.5\", paddingHorizontal: \"8\", paddingVertical: \"2.5\" }\n};\nconst nativeChevronStroke = (angle) => `linear-gradient(${angle}deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px) calc(50% + 0.75px), transparent calc(50% + 0.75px))`;\nconst nativeChevronPosition = (paddingInline) => {\n const center = paddingInline + 8;\n return `calc(100% - ${center - 0.25}px) 50%, calc(100% - ${center - 4.75}px) 50%`;\n};\nconst selectNativeSize = {\n // a native <select> ignores line-height, so it gets the control height\n // (line height plus vertical padding) plus its 1px border on each side,\n // and room for the chevron\n xs: {\n ...selectTextSize.xs,\n paddingInline: \"2\",\n paddingBlock: \"1\",\n borderRadius: \"sm\",\n gap: \"1\",\n height: 26,\n paddingRight: 28,\n backgroundPosition: nativeChevronPosition(8)\n },\n sm: {\n ...selectTextSize.sm,\n paddingInline: \"3\",\n paddingBlock: \"1.5\",\n borderRadius: \"md\",\n gap: \"1.5\",\n height: 34,\n paddingRight: 32,\n backgroundPosition: nativeChevronPosition(12)\n },\n md: {\n ...selectTextSize.md,\n paddingInline: \"4\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 38,\n paddingRight: 36,\n backgroundPosition: nativeChevronPosition(16)\n },\n lg: {\n ...selectTextSize.lg,\n paddingInline: \"6\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 42,\n paddingRight: 44,\n backgroundPosition: nativeChevronPosition(24)\n },\n xl: {\n ...selectTextSize.xl,\n paddingInline: \"8\",\n paddingBlock: \"2.5\",\n borderRadius: \"lg\",\n gap: \"2.5\",\n height: 50,\n paddingRight: 52,\n backgroundPosition: nativeChevronPosition(32)\n }\n};\nconst SelectNative = styled(SizableText, {\n displayName: \"SelectNative\",\n render: \"select\",\n backgroundColor: \"background hover:background-hover\",\n borderColor: \"border-color\",\n borderWidth: 1,\n color: \"color\",\n outlineWidth: 0,\n userSelect: \"none\",\n backgroundImage: `${nativeChevronStroke(45)}, ${nativeChevronStroke(-45)}`,\n backgroundRepeat: \"no-repeat\",\n backgroundSize: \"5px 5px\",\n variants: {\n size: {\n ...selectNativeSize,\n true: selectNativeSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectTrigger = styled(SelectBehavior.Trigger, {\n context: SelectContext,\n displayName: \"SelectTrigger\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n backgroundColor: \"background hover:background-hover press:background-press\",\n borderColor: \"border-color hover:border-color-hover\",\n borderWidth: 1,\n justifyContent: \"space-between\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:2px\",\n variants: {\n size: {\n ...selectFrameSize,\n true: selectFrameSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectValue = styled(SelectBehavior.Value, {\n context: SelectContext,\n displayName: \"SelectValue\",\n color: \"color\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectIcon = styled(SelectBehavior.Icon, {\n context: SelectContext,\n displayName: \"SelectIcon\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ jsx(ChevronDown, {})\n});\nconst SelectGroup = styled(SelectBehavior.Group, {\n displayName: \"SelectGroup\",\n width: \"100%\"\n});\nconst SelectLabel = styled(SelectBehavior.Label, {\n context: SelectContext,\n displayName: \"SelectLabel\",\n color: \"color-10\",\n fontWeight: \"600\",\n paddingHorizontal: 10,\n paddingVertical: 6,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectItem = styled(SelectBehavior.Item, {\n context: SelectContext,\n displayName: \"SelectItem\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n justifyContent: \"space-between\",\n cursor: \"default\",\n outlineOffset: -1,\n borderRadius: 6,\n backgroundColor: \"hover:background-hover press:background-press focus:background-focus\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:1px\",\n variants: {\n size: {\n ...selectItemSize,\n true: selectItemSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectItemText = styled(SelectBehavior.ItemText, {\n context: SelectContext,\n displayName: \"SelectItemText\",\n color: \"color\",\n userSelect: \"none\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: { size: \"md\" }\n});\nconst SelectItemIndicator = styled(SelectBehavior.ItemIndicator, {\n displayName: \"SelectItemIndicator\",\n alignItems: \"center\",\n justifyContent: \"center\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ jsx(Check, { size: 14 })\n});\nconst SelectIndicator = styled(SelectBehavior.Indicator, {\n displayName: \"SelectIndicator\",\n backgroundColor: \"background-focus\",\n borderRadius: 6\n});\nconst SelectViewport = styled(SelectBehavior.Viewport, {\n displayName: \"SelectViewport\",\n backgroundColor: \"background\",\n borderColor: \"border-color\",\n borderRadius: 10,\n borderWidth: 1,\n maxHeight: 300,\n padding: 4,\n boxShadow: \"0 12px 28px rgba(0, 0, 0, 0.2)\"\n});\nconst SelectScrollUpButton = styled(SelectBehavior.ScrollUpButton, {\n displayName: \"SelectScrollUpButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ jsx(ChevronUp, { size: 16 })\n});\nconst SelectScrollDownButton = styled(SelectBehavior.ScrollDownButton, {\n displayName: \"SelectScrollDownButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ jsx(ChevronDown, { size: 16 })\n});\nconst SelectSeparator = styled(SelectBehavior.Separator, {\n displayName: \"SelectSeparator\",\n backgroundColor: \"border-color\",\n height: 1,\n marginVertical: 4\n});\nfunction SelectRoot({ size = true, ...props }) {\n return /* @__PURE__ */ jsx(SelectNativeComponentContext.Provider, { value: SelectNative, children: /* @__PURE__ */ jsx(SelectContext.Provider, { size, children: /* @__PURE__ */ jsx(SelectBehavior.Root, { size, ...props }) }) });\n}\nconst selectParts = {\n Adapt: SelectBehavior.Adapt,\n Content: SelectBehavior.Content,\n FocusScope: SelectBehavior.FocusScope,\n Group: SelectGroup,\n Icon: SelectIcon,\n Indicator: SelectIndicator,\n Item: SelectItem,\n ItemIndicator: SelectItemIndicator,\n ItemText: SelectItemText,\n Label: SelectLabel,\n ScrollDownButton: SelectScrollDownButton,\n ScrollUpButton: SelectScrollUpButton,\n Separator: SelectSeparator,\n Trigger: SelectTrigger,\n Value: SelectValue,\n Viewport: SelectViewport\n};\nconst Select = withStaticProperties(SelectRoot, {\n Root: SelectRoot,\n ...selectParts\n});\nexport {\n Select,\n SelectGroup,\n SelectIcon,\n SelectIndicator,\n SelectItem,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectRoot,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n S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AU;GAAE;GAAM,UAA0B,oBAAIA,SAAe,MAAM;IAAE;IAAM,GAAG;GAAM,CAAC;EAAE,CAAC;CAAE,CAAC;AACpO;AACA,MAAM,cAAc;CAClB,OAAOA,SAAe;CACtB,SAASA,SAAe;CACxB,YAAYA,SAAe;CAC3B,OAAO;CACP,MAAM;CACN,WAAW;CACX,MAAM;CACN,eAAe;CACf,UAAU;CACV,OAAO;CACP,kBAAkB;CAClB,gBAAgB;CAChB,WAAW;CACX,SAAS;CACT,OAAO;CACP,UAAU;AACZ;AACA,MAAM,SAAS,qBAAqB,YAAY;CAC9C,MAAM;CACN,GAAG;AACL,CAAC"}
@@ -114,46 +114,63 @@ var selectItemSize = {
114
114
  paddingVertical: "2.5"
115
115
  }
116
116
  };
117
+ var nativeChevronStroke = function(angle) {
118
+ return `linear-gradient(${angle}deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px) calc(50% + 0.75px), transparent calc(50% + 0.75px))`;
119
+ };
120
+ var nativeChevronPosition = function(paddingInline) {
121
+ var center = paddingInline + 8;
122
+ return `calc(100% - ${center - .25}px) 50%, calc(100% - ${center - 4.75}px) 50%`;
123
+ };
117
124
  var selectNativeSize = {
118
125
  xs: {
126
+ ...selectTextSize.xs,
119
127
  paddingInline: "2",
120
128
  paddingBlock: "1",
121
129
  borderRadius: "sm",
122
130
  gap: "1",
123
131
  height: 26,
124
- paddingRight: 28
132
+ paddingRight: 28,
133
+ backgroundPosition: nativeChevronPosition(8)
125
134
  },
126
135
  sm: {
136
+ ...selectTextSize.sm,
127
137
  paddingInline: "3",
128
138
  paddingBlock: "1.5",
129
139
  borderRadius: "md",
130
140
  gap: "1.5",
131
141
  height: 34,
132
- paddingRight: 32
142
+ paddingRight: 32,
143
+ backgroundPosition: nativeChevronPosition(12)
133
144
  },
134
145
  md: {
146
+ ...selectTextSize.md,
135
147
  paddingInline: "4",
136
148
  paddingBlock: "2",
137
149
  borderRadius: "md",
138
150
  gap: "2",
139
151
  height: 38,
140
- paddingRight: 36
152
+ paddingRight: 36,
153
+ backgroundPosition: nativeChevronPosition(16)
141
154
  },
142
155
  lg: {
156
+ ...selectTextSize.lg,
143
157
  paddingInline: "6",
144
158
  paddingBlock: "2",
145
159
  borderRadius: "md",
146
160
  gap: "2",
147
161
  height: 42,
148
- paddingRight: 44
162
+ paddingRight: 44,
163
+ backgroundPosition: nativeChevronPosition(24)
149
164
  },
150
165
  xl: {
166
+ ...selectTextSize.xl,
151
167
  paddingInline: "8",
152
168
  paddingBlock: "2.5",
153
169
  borderRadius: "lg",
154
170
  gap: "2.5",
155
171
  height: 50,
156
- paddingRight: 52
172
+ paddingRight: 52,
173
+ backgroundPosition: nativeChevronPosition(32)
157
174
  }
158
175
  };
159
176
  var SelectNative = styled(SizableText, {
@@ -165,6 +182,9 @@ var SelectNative = styled(SizableText, {
165
182
  color: "color",
166
183
  outlineWidth: 0,
167
184
  userSelect: "none",
185
+ backgroundImage: `${nativeChevronStroke(45)}, ${nativeChevronStroke(-45)}`,
186
+ backgroundRepeat: "no-repeat",
187
+ backgroundSize: "5px 5px",
168
188
  variants: { size: {
169
189
  ...selectNativeSize,
170
190
  true: selectNativeSize.md
@@ -1 +1 @@
1
- {"version":3,"file":"Select.native.js","names":["SelectBehavior"],"sources":["esm/components/Select.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createStyledContext, styled, withStaticProperties } from \"@tamagui/core\";\nimport { Select as SelectBehavior, SelectNativeComponentContext } from \"@tamagui/select\";\nimport { SizableText } from \"@tamagui/text\";\nvar IconGlyph = styled(SizableText, {\n displayName: \"SelectIconGlyph\",\n color: \"color\",\n userSelect: \"none\"\n});\nvar ChevronDown = function(param) {\n var { size = 16 } = param;\n return /* @__PURE__ */ _jsx(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u25BE\"\n });\n};\nvar ChevronUp = function(param) {\n var { size = 16 } = param;\n return /* @__PURE__ */ _jsx(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u25B4\"\n });\n};\nvar Check = function(param) {\n var { size = 14 } = param;\n return /* @__PURE__ */ _jsx(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u2713\"\n });\n};\nvar SelectContext = createStyledContext({\n size: \"md\"\n});\nvar selectFrameSize = {\n xs: {\n paddingInline: \"2\",\n paddingBlock: \"1\",\n borderRadius: \"sm\",\n gap: \"1\"\n },\n sm: {\n paddingInline: \"3\",\n paddingBlock: \"1.5\",\n borderRadius: \"md\",\n gap: \"1.5\"\n },\n md: {\n paddingInline: \"4\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\"\n },\n lg: {\n paddingInline: \"6\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\"\n },\n xl: {\n paddingInline: \"8\",\n paddingBlock: \"2.5\",\n borderRadius: \"lg\",\n gap: \"2.5\"\n }\n};\nvar selectTextSize = {\n xs: {\n fontSize: \"xs\",\n lineHeight: \"xs\"\n },\n sm: {\n fontSize: \"sm\",\n lineHeight: \"sm\"\n },\n md: {\n fontSize: \"sm\",\n lineHeight: \"sm\"\n },\n lg: {\n fontSize: \"base\",\n lineHeight: \"base\"\n },\n xl: {\n fontSize: \"lg\",\n lineHeight: \"lg\"\n }\n};\nvar selectItemSize = {\n xs: {\n gap: \"1\",\n paddingHorizontal: \"2\",\n paddingVertical: \"1\"\n },\n sm: {\n gap: \"1.5\",\n paddingHorizontal: \"3\",\n paddingVertical: \"1.5\"\n },\n md: {\n gap: \"2\",\n paddingHorizontal: \"4\",\n paddingVertical: \"2\"\n },\n lg: {\n gap: \"2\",\n paddingHorizontal: \"6\",\n paddingVertical: \"2\"\n },\n xl: {\n gap: \"2.5\",\n paddingHorizontal: \"8\",\n paddingVertical: \"2.5\"\n }\n};\nvar selectNativeSize = {\n // a native <select> ignores line-height, so it gets the control height\n // (line height plus vertical padding) plus its 1px border on each side,\n // and room for the chevron\n xs: {\n paddingInline: \"2\",\n paddingBlock: \"1\",\n borderRadius: \"sm\",\n gap: \"1\",\n height: 26,\n paddingRight: 28\n },\n sm: {\n paddingInline: \"3\",\n paddingBlock: \"1.5\",\n borderRadius: \"md\",\n gap: \"1.5\",\n height: 34,\n paddingRight: 32\n },\n md: {\n paddingInline: \"4\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 38,\n paddingRight: 36\n },\n lg: {\n paddingInline: \"6\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 42,\n paddingRight: 44\n },\n xl: {\n paddingInline: \"8\",\n paddingBlock: \"2.5\",\n borderRadius: \"lg\",\n gap: \"2.5\",\n height: 50,\n paddingRight: 52\n }\n};\nvar SelectNative = styled(SizableText, {\n displayName: \"SelectNative\",\n render: \"select\",\n backgroundColor: \"background hover:background-hover\",\n borderColor: \"border-color\",\n borderWidth: 1,\n color: \"color\",\n outlineWidth: 0,\n userSelect: \"none\",\n variants: {\n size: {\n ...selectNativeSize,\n true: selectNativeSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectTrigger = styled(SelectBehavior.Trigger, {\n context: SelectContext,\n displayName: \"SelectTrigger\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n backgroundColor: \"background hover:background-hover press:background-press\",\n borderColor: \"border-color hover:border-color-hover\",\n borderWidth: 1,\n justifyContent: \"space-between\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:2px\",\n variants: {\n size: {\n ...selectFrameSize,\n true: selectFrameSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectValue = styled(SelectBehavior.Value, {\n context: SelectContext,\n displayName: \"SelectValue\",\n color: \"color\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectIcon = styled(SelectBehavior.Icon, {\n context: SelectContext,\n displayName: \"SelectIcon\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ _jsx(ChevronDown, {})\n});\nvar SelectGroup = styled(SelectBehavior.Group, {\n displayName: \"SelectGroup\",\n width: \"100%\"\n});\nvar SelectLabel = styled(SelectBehavior.Label, {\n context: SelectContext,\n displayName: \"SelectLabel\",\n color: \"color-10\",\n fontWeight: \"600\",\n paddingHorizontal: 10,\n paddingVertical: 6,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItem = styled(SelectBehavior.Item, {\n context: SelectContext,\n displayName: \"SelectItem\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n justifyContent: \"space-between\",\n cursor: \"default\",\n outlineOffset: -1,\n borderRadius: 6,\n backgroundColor: \"hover:background-hover press:background-press focus:background-focus\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:1px\",\n variants: {\n size: {\n ...selectItemSize,\n true: selectItemSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItemText = styled(SelectBehavior.ItemText, {\n context: SelectContext,\n displayName: \"SelectItemText\",\n color: \"color\",\n userSelect: \"none\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItemIndicator = styled(SelectBehavior.ItemIndicator, {\n displayName: \"SelectItemIndicator\",\n alignItems: \"center\",\n justifyContent: \"center\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ _jsx(Check, {\n size: 14\n })\n});\nvar SelectIndicator = styled(SelectBehavior.Indicator, {\n displayName: \"SelectIndicator\",\n backgroundColor: \"background-focus\",\n borderRadius: 6\n});\nvar SelectViewport = styled(SelectBehavior.Viewport, {\n displayName: \"SelectViewport\",\n backgroundColor: \"background\",\n borderColor: \"border-color\",\n borderRadius: 10,\n borderWidth: 1,\n maxHeight: 300,\n padding: 4,\n boxShadow: \"0 12px 28px rgba(0, 0, 0, 0.2)\"\n});\nvar SelectScrollUpButton = styled(SelectBehavior.ScrollUpButton, {\n displayName: \"SelectScrollUpButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ _jsx(ChevronUp, {\n size: 16\n })\n});\nvar SelectScrollDownButton = styled(SelectBehavior.ScrollDownButton, {\n displayName: \"SelectScrollDownButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ _jsx(ChevronDown, {\n size: 16\n })\n});\nvar SelectSeparator = styled(SelectBehavior.Separator, {\n displayName: \"SelectSeparator\",\n backgroundColor: \"border-color\",\n height: 1,\n marginVertical: 4\n});\nfunction SelectRoot(param) {\n var { size = true, ...props } = param;\n return /* @__PURE__ */ _jsx(SelectNativeComponentContext.Provider, {\n value: SelectNative,\n children: /* @__PURE__ */ _jsx(SelectContext.Provider, {\n size,\n children: /* @__PURE__ */ _jsx(SelectBehavior.Root, {\n size,\n ...props\n })\n })\n });\n}\nvar selectParts = {\n Adapt: SelectBehavior.Adapt,\n Content: SelectBehavior.Content,\n FocusScope: SelectBehavior.FocusScope,\n Group: SelectGroup,\n Icon: SelectIcon,\n Indicator: SelectIndicator,\n Item: SelectItem,\n ItemIndicator: SelectItemIndicator,\n ItemText: SelectItemText,\n Label: SelectLabel,\n ScrollDownButton: SelectScrollDownButton,\n ScrollUpButton: SelectScrollUpButton,\n Separator: SelectSeparator,\n Trigger: SelectTrigger,\n Value: SelectValue,\n Viewport: SelectViewport\n};\nvar Select = withStaticProperties(SelectRoot, {\n Root: SelectRoot,\n ...selectParts\n});\nexport {\n Select,\n SelectGroup,\n SelectIcon,\n SelectIndicator,\n SelectItem,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectRoot,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n SelectViewport,\n selectParts\n};\n//# sourceMappingURL=Select.js.map\n"],"mappings":";;;;;;AAIA,IAAI,YAAY,OAAO,aAAa;CAClC,aAAa;CACb,OAAO;CACP,YAAY;AACd,CAAC;AACD,IAAI,cAAc,SAAS,OAAO;CAChC,IAAI,EAAE,OAAO,OAAO;CACpB,OAAuB,oBAAK,WAAW;EACrC,UAAU;EACV,YAAY;EACZ,UAAU;CACZ,CAAC;AACH;AACA,IAAI,YAAY,SAAS,OAAO;CAC9B,IAAI,EAAE,OAAO,OAAO;CACpB,OAAuB,oBAAK,WAAW;EACrC,UAAU;EACV,YAAY;EACZ,UAAU;CACZ,CAAC;AACH;AACA,IAAI,QAAQ,SAAS,OAAO;CAC1B,IAAI,EAAE,OAAO,OAAO;CACpB,OAAuB,oBAAK,WAAW;EACrC,UAAU;EACV,YAAY;EACZ,UAAU;CACZ,CAAC;AACH;AACA,IAAI,gBAAgB,oBAAoB,EACtC,MAAM,KACR,CAAC;AACD,IAAI,kBAAkB;CACpB,IAAI;EACF,eAAe;EACf,cAAc;EACd,cAAc;EACd,KAAK;CACP;CACA,IAAI;EACF,eAAe;EACf,cAAc;EACd,cAAc;EACd,KAAK;CACP;CACA,IAAI;EACF,eAAe;EACf,cAAc;EACd,cAAc;EACd,KAAK;CACP;CACA,IAAI;EACF,eAAe;EACf,cAAc;EACd,cAAc;EACd,KAAK;CACP;CACA,IAAI;EACF,eAAe;EACf,cAAc;EACd,cAAc;EACd,KAAK;CACP;AACF;AACA,IAAI,iBAAiB;CACnB,IAAI;EACF,UAAU;EACV,YAAY;CACd;CACA,IAAI;EACF,UAAU;EACV,YAAY;CACd;CACA,IAAI;EACF,UAAU;EACV,YAAY;CACd;CACA,IAAI;EACF,UAAU;EACV,YAAY;CACd;CACA,IAAI;EACF,UAAU;EACV,YAAY;CACd;AACF;AACA,IAAI,iBAAiB;CACnB,IAAI;EACF,KAA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"],"sources":["esm/components/Select.native.js"],"sourcesContent":["import { jsx as _jsx } from \"react/jsx-runtime\";\nimport { createStyledContext, styled, withStaticProperties } from \"@tamagui/core\";\nimport { Select as SelectBehavior, SelectNativeComponentContext } from \"@tamagui/select\";\nimport { SizableText } from \"@tamagui/text\";\nvar IconGlyph = styled(SizableText, {\n displayName: \"SelectIconGlyph\",\n color: \"color\",\n userSelect: \"none\"\n});\nvar ChevronDown = function(param) {\n var { size = 16 } = param;\n return /* @__PURE__ */ _jsx(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u25BE\"\n });\n};\nvar ChevronUp = function(param) {\n var { size = 16 } = param;\n return /* @__PURE__ */ _jsx(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u25B4\"\n });\n};\nvar Check = function(param) {\n var { size = 14 } = param;\n return /* @__PURE__ */ _jsx(IconGlyph, {\n fontSize: size,\n lineHeight: 1,\n children: \"\\u2713\"\n });\n};\nvar SelectContext = createStyledContext({\n size: \"md\"\n});\nvar selectFrameSize = {\n xs: {\n paddingInline: \"2\",\n paddingBlock: \"1\",\n borderRadius: \"sm\",\n gap: \"1\"\n },\n sm: {\n paddingInline: \"3\",\n paddingBlock: \"1.5\",\n borderRadius: \"md\",\n gap: \"1.5\"\n },\n md: {\n paddingInline: \"4\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\"\n },\n lg: {\n paddingInline: \"6\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\"\n },\n xl: {\n paddingInline: \"8\",\n paddingBlock: \"2.5\",\n borderRadius: \"lg\",\n gap: \"2.5\"\n }\n};\nvar selectTextSize = {\n xs: {\n fontSize: \"xs\",\n lineHeight: \"xs\"\n },\n sm: {\n fontSize: \"sm\",\n lineHeight: \"sm\"\n },\n md: {\n fontSize: \"sm\",\n lineHeight: \"sm\"\n },\n lg: {\n fontSize: \"base\",\n lineHeight: \"base\"\n },\n xl: {\n fontSize: \"lg\",\n lineHeight: \"lg\"\n }\n};\nvar selectItemSize = {\n xs: {\n gap: \"1\",\n paddingHorizontal: \"2\",\n paddingVertical: \"1\"\n },\n sm: {\n gap: \"1.5\",\n paddingHorizontal: \"3\",\n paddingVertical: \"1.5\"\n },\n md: {\n gap: \"2\",\n paddingHorizontal: \"4\",\n paddingVertical: \"2\"\n },\n lg: {\n gap: \"2\",\n paddingHorizontal: \"6\",\n paddingVertical: \"2\"\n },\n xl: {\n gap: \"2.5\",\n paddingHorizontal: \"8\",\n paddingVertical: \"2.5\"\n }\n};\nvar nativeChevronStroke = function(angle) {\n return `linear-gradient(${angle}deg, transparent calc(50% - 0.75px), currentColor calc(50% - 0.75px) calc(50% + 0.75px), transparent calc(50% + 0.75px))`;\n};\nvar nativeChevronPosition = function(paddingInline) {\n var center = paddingInline + 8;\n return `calc(100% - ${center - 0.25}px) 50%, calc(100% - ${center - 4.75}px) 50%`;\n};\nvar selectNativeSize = {\n // a native <select> ignores line-height, so it gets the control height\n // (line height plus vertical padding) plus its 1px border on each side,\n // and room for the chevron\n xs: {\n ...selectTextSize.xs,\n paddingInline: \"2\",\n paddingBlock: \"1\",\n borderRadius: \"sm\",\n gap: \"1\",\n height: 26,\n paddingRight: 28,\n backgroundPosition: nativeChevronPosition(8)\n },\n sm: {\n ...selectTextSize.sm,\n paddingInline: \"3\",\n paddingBlock: \"1.5\",\n borderRadius: \"md\",\n gap: \"1.5\",\n height: 34,\n paddingRight: 32,\n backgroundPosition: nativeChevronPosition(12)\n },\n md: {\n ...selectTextSize.md,\n paddingInline: \"4\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 38,\n paddingRight: 36,\n backgroundPosition: nativeChevronPosition(16)\n },\n lg: {\n ...selectTextSize.lg,\n paddingInline: \"6\",\n paddingBlock: \"2\",\n borderRadius: \"md\",\n gap: \"2\",\n height: 42,\n paddingRight: 44,\n backgroundPosition: nativeChevronPosition(24)\n },\n xl: {\n ...selectTextSize.xl,\n paddingInline: \"8\",\n paddingBlock: \"2.5\",\n borderRadius: \"lg\",\n gap: \"2.5\",\n height: 50,\n paddingRight: 52,\n backgroundPosition: nativeChevronPosition(32)\n }\n};\nvar SelectNative = styled(SizableText, {\n displayName: \"SelectNative\",\n render: \"select\",\n backgroundColor: \"background hover:background-hover\",\n borderColor: \"border-color\",\n borderWidth: 1,\n color: \"color\",\n outlineWidth: 0,\n userSelect: \"none\",\n backgroundImage: `${nativeChevronStroke(45)}, ${nativeChevronStroke(-45)}`,\n backgroundRepeat: \"no-repeat\",\n backgroundSize: \"5px 5px\",\n variants: {\n size: {\n ...selectNativeSize,\n true: selectNativeSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectTrigger = styled(SelectBehavior.Trigger, {\n context: SelectContext,\n displayName: \"SelectTrigger\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n backgroundColor: \"background hover:background-hover press:background-press\",\n borderColor: \"border-color hover:border-color-hover\",\n borderWidth: 1,\n justifyContent: \"space-between\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:2px\",\n variants: {\n size: {\n ...selectFrameSize,\n true: selectFrameSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectValue = styled(SelectBehavior.Value, {\n context: SelectContext,\n displayName: \"SelectValue\",\n color: \"color\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectIcon = styled(SelectBehavior.Icon, {\n context: SelectContext,\n displayName: \"SelectIcon\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ _jsx(ChevronDown, {})\n});\nvar SelectGroup = styled(SelectBehavior.Group, {\n displayName: \"SelectGroup\",\n width: \"100%\"\n});\nvar SelectLabel = styled(SelectBehavior.Label, {\n context: SelectContext,\n displayName: \"SelectLabel\",\n color: \"color-10\",\n fontWeight: \"600\",\n paddingHorizontal: 10,\n paddingVertical: 6,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItem = styled(SelectBehavior.Item, {\n context: SelectContext,\n displayName: \"SelectItem\",\n width: \"100%\",\n maxWidth: \"100%\",\n overflow: \"hidden\",\n flexWrap: \"nowrap\",\n justifyContent: \"space-between\",\n cursor: \"default\",\n outlineOffset: -1,\n borderRadius: 6,\n backgroundColor: \"hover:background-hover press:background-press focus:background-focus\",\n outlineColor: \"focus-visible:outline-color\",\n outlineStyle: \"focus-visible:solid\",\n outlineWidth: \"focus-visible:1px\",\n variants: {\n size: {\n ...selectItemSize,\n true: selectItemSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItemText = styled(SelectBehavior.ItemText, {\n context: SelectContext,\n displayName: \"SelectItemText\",\n color: \"color\",\n userSelect: \"none\",\n ellipsis: true,\n variants: {\n size: {\n ...selectTextSize,\n true: selectTextSize.md\n }\n },\n defaultVariants: {\n size: \"md\"\n }\n});\nvar SelectItemIndicator = styled(SelectBehavior.ItemIndicator, {\n displayName: \"SelectItemIndicator\",\n alignItems: \"center\",\n justifyContent: \"center\",\n marginLeft: \"auto\",\n children: /* @__PURE__ */ _jsx(Check, {\n size: 14\n })\n});\nvar SelectIndicator = styled(SelectBehavior.Indicator, {\n displayName: \"SelectIndicator\",\n backgroundColor: \"background-focus\",\n borderRadius: 6\n});\nvar SelectViewport = styled(SelectBehavior.Viewport, {\n displayName: \"SelectViewport\",\n backgroundColor: \"background\",\n borderColor: \"border-color\",\n borderRadius: 10,\n borderWidth: 1,\n maxHeight: 300,\n padding: 4,\n boxShadow: \"0 12px 28px rgba(0, 0, 0, 0.2)\"\n});\nvar SelectScrollUpButton = styled(SelectBehavior.ScrollUpButton, {\n displayName: \"SelectScrollUpButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ _jsx(ChevronUp, {\n size: 16\n })\n});\nvar SelectScrollDownButton = styled(SelectBehavior.ScrollDownButton, {\n displayName: \"SelectScrollDownButton\",\n alignItems: \"center\",\n backgroundColor: \"background\",\n height: 28,\n justifyContent: \"center\",\n children: /* @__PURE__ */ _jsx(ChevronDown, {\n size: 16\n })\n});\nvar SelectSeparator = styled(SelectBehavior.Separator, {\n displayName: \"SelectSeparator\",\n backgroundColor: \"border-color\",\n height: 1,\n marginVertical: 4\n});\nfunction SelectRoot(param) {\n var { size = true, ...props } = param;\n return /* @__PURE__ */ _jsx(SelectNativeComponentContext.Provider, {\n value: SelectNative,\n children: /* @__PURE__ */ _jsx(SelectContext.Provider, {\n size,\n children: /* @__PURE__ */ _jsx(SelectBehavior.Root, {\n size,\n ...props\n })\n })\n });\n}\nvar selectParts = {\n Adapt: SelectBehavior.Adapt,\n Content: SelectBehavior.Content,\n FocusScope: SelectBehavior.FocusScope,\n Group: SelectGroup,\n Icon: SelectIcon,\n Indicator: SelectIndicator,\n Item: SelectItem,\n ItemIndicator: SelectItemIndicator,\n ItemText: SelectItemText,\n Label: SelectLabel,\n ScrollDownButton: SelectScrollDownButton,\n ScrollUpButton: SelectScrollUpButton,\n Separator: SelectSeparator,\n Trigger: SelectTrigger,\n Value: SelectValue,\n Viewport: SelectViewport\n};\nvar Select = withStaticProperties(SelectRoot, {\n Root: SelectRoot,\n ...selectParts\n});\nexport {\n Select,\n SelectGroup,\n SelectIcon,\n SelectIndicator,\n SelectItem,\n SelectItemIndicator,\n SelectItemText,\n SelectLabel,\n SelectRoot,\n SelectScrollDownButton,\n SelectScrollUpButton,\n SelectSeparator,\n SelectTrigger,\n SelectValue,\n SelectViewport,\n selectParts\n};\n//# sourceMappingURL=Select.js.map\n"],"mappings":";;;;;;AAIA,IAAI,YAAY,OAAO,aAAa;CAClC,aAAa;CACb,OAAO;CACP,YAAY;AACd,CAAC;AACD,IAAI,cAAc,SAAS,OAAO;CAChC,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