@obosbbl/grunnmuren-react 1.1.0 → 1.1.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.
@@ -51,6 +51,19 @@ var __spreadValues2 = (a, b) => {
51
51
  return a;
52
52
  };
53
53
  var __spreadProps2 = (a, b) => __defProps2(a, __getOwnPropDescs2(b));
54
+ const ChevronDown = (props) => /* @__PURE__ */ jsx("svg", __spreadProps2(__spreadValues2({
55
+ width: "1.25em",
56
+ height: "1.25em",
57
+ fill: "none",
58
+ viewBox: "0 0 29 17",
59
+ role: "img",
60
+ "aria-hidden": props["aria-label"] == null
61
+ }, props), {
62
+ children: /* @__PURE__ */ jsx("path", {
63
+ fill: "currentColor",
64
+ d: "M0 4.31662L4.31662 0L14.3752 10.0484L24.4337 0L28.7503 4.31662L17.2563 15.8106C16.4929 16.5722 15.4586 16.9999 14.3803 16.9999C13.3019 16.9999 12.2676 16.5722 11.5042 15.8106L0 4.31662Z"
65
+ })
66
+ }));
54
67
  const Close = (props) => /* @__PURE__ */ jsx("svg", __spreadProps2(__spreadValues2({
55
68
  width: "1.25em",
56
69
  height: "1.25em",
@@ -1140,4 +1153,23 @@ const TextField = forwardRef((props, ref) => {
1140
1153
  })]
1141
1154
  });
1142
1155
  });
1143
- export { Alert, Banner, BannerImage, Button, ButtonColorContext, Campaign, Card, CardContent, CardImage, CardLinkOverlay, CardList, Checkbox, Footer, Form, FormError, FormErrorMessage, FormHeading, FormHelperText, FormLabel, FormSuccess, Hero, HeroActions, HeroContent, HeroContext, HeroImage, Input, Link, Navbar, NavbarCollapsible, NavbarContent, NavbarExpandedMobileContent, NavbarItem, NavbarItems, Snackbar, SnackbarButton, SnackbarContent, StepList, StepListItem, TextArea, TextField, assignRef, useBlockBackgroundColor, useComposedRefs, useFallbackId, useFormControlValidity, useMedia, usePrefersReducedMotion, useScreenMaxWidthMd };
1156
+ const Select = forwardRef((props, ref) => {
1157
+ const _a = props, {
1158
+ children,
1159
+ className
1160
+ } = _a, rest = __objRest(_a, [
1161
+ "children",
1162
+ "className"
1163
+ ]);
1164
+ return /* @__PURE__ */ jsxs("div", {
1165
+ className: classNames("relative", className),
1166
+ children: [/* @__PURE__ */ jsx("select", __spreadProps(__spreadValues({}, rest), {
1167
+ className: "focus:border-blue border-gray-dark w-full appearance-none rounded-lg border-2 border-solid bg-white px-4 py-3 focus:outline-none",
1168
+ ref,
1169
+ children
1170
+ })), /* @__PURE__ */ jsx(ChevronDown, {
1171
+ className: "absolute top-4 right-4"
1172
+ })]
1173
+ });
1174
+ });
1175
+ export { Alert, Banner, BannerImage, Button, ButtonColorContext, Campaign, Card, CardContent, CardImage, CardLinkOverlay, CardList, Checkbox, Footer, Form, FormError, FormErrorMessage, FormHeading, FormHelperText, FormLabel, FormSuccess, Hero, HeroActions, HeroContent, HeroContext, HeroImage, Input, Link, Navbar, NavbarCollapsible, NavbarContent, NavbarExpandedMobileContent, NavbarItem, NavbarItems, Select, Snackbar, SnackbarButton, SnackbarContent, StepList, StepListItem, TextArea, TextField, assignRef, useBlockBackgroundColor, useComposedRefs, useFallbackId, useFormControlValidity, useMedia, usePrefersReducedMotion, useScreenMaxWidthMd };
package/dist/index.d.ts CHANGED
@@ -15,3 +15,4 @@ export * from './StepList';
15
15
  export * from './TextArea';
16
16
  export * from './TextField';
17
17
  export * from './hooks';
18
+ export * from './Select';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@obosbbl/grunnmuren-react",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "OBOS Grunnmuren design system React components",
5
5
  "license": "MIT",
6
6
  "repository": {