@sats-group/ui-lib 89.0.0 → 89.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sats-group/ui-lib",
3
- "version": "89.0.0",
3
+ "version": "89.0.2",
4
4
  "description": "SATS web user interface library",
5
5
  "author": "developer@sats.no",
6
6
  "license": "UNLICENSED",
@@ -17,5 +17,6 @@ declare const RefCheckbox: React.ForwardRefExoticComponent<Omit<import("../types
17
17
  } & React.RefAttributes<HTMLInputElement>>;
18
18
  declare const Checkbox: typeof RefCheckbox & {
19
19
  themes: typeof themes;
20
+ labelVariants: typeof labelVariants;
20
21
  };
21
22
  export default Checkbox;
@@ -1,2 +1,2 @@
1
- "use client";var M=Object.defineProperty;var x=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var p=(c,o,i)=>o in c?M(c,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[o]=i,g=(c,o)=>{for(var i in o||(o={}))f.call(o,i)&&p(c,i,o[i]);if(x)for(var i of x(o))u.call(o,i)&&p(c,i,o[i]);return c};var N=(c,o)=>{var i={};for(var n in c)f.call(c,n)&&o.indexOf(n)<0&&(i[n]=c[n]);if(c!=null&&x)for(var n of x(c))o.indexOf(n)<0&&u.call(c,n)&&(i[n]=c[n]);return i};import l from"classnames";import*as e from"react";import W from"../use-input-validation";import a from"../text";import{labelVariants as h,themes as j}from"./checkbox.types";const w=e.forwardRef((H,z)=>{var t=H,{children:c,disabled:o,description:i,extra:n,intermediate:m,labelVariant:_=h.default,label:r,name:C,showCustomError:L=!0,theme:s,value:$="",required:v,hasHover:y=!1,isWide:I=!0}=t,b=N(t,["children","disabled","description","extra","intermediate","labelVariant","label","name","showCustomError","theme","value","required","hasHover","isWide"]);const[T,B,k]=W();return e.createElement("div",{className:l("checkbox",{"checkbox--error":k,"checkbox--intermediate":m,"checkbox--wide":I,[`checkbox--${s}`]:s})},e.createElement("label",{className:l("checkbox__content",{"checkbox__content--hover":y,[`checkbox__content--${s}`]:s})},e.createElement("div",{className:"checkbox__main"},e.createElement("div",{className:"checkbox__main-top"},e.createElement("div",null,e.createElement("input",g({"aria-label":_===h.hidden?r:void 0,className:"checkbox__input",type:"checkbox",name:C,onChange:d=>{b.onChange&&b.onChange(d),T(d)},onInvalid:d=>{b.onInvalid&&b.onInvalid(d),B(d)},ref:z,value:$,disabled:o,required:v},b)),e.createElement("div",{className:l("checkbox__icon",{"checkbox__icon--intermediate":m,[`checkbox__icon--${s}`]:s})},e.createElement("svg",{className:"checkbox__intermediate",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("line",{x1:"0",y1:"5",x2:"10",y2:"5",stroke:"currentColor",strokeWidth:"2"})),e.createElement("svg",{className:"checkbox__check",width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M4.76123 9.0605L0.700729 5L1.76123 3.9395L4.76123 6.9395L10.7612 0.939501L11.8217 2L4.76123 9.0605Z",fill:"currentColor"})))),_!==h.hidden?e.createElement(e.Fragment,null,r?e.createElement(a,{className:l("checkbox__label",{[`checkbox__label--${s}`]:s,"checkbox__label--disabled":o}),size:a.sizes.basic,italic:_===h.headline,theme:_===h.bold?a.themes.emphasis:_===h.headline?a.themes.headline:a.themes.normal},r):e.createElement("div",{className:l("checkbox__label",{[`checkbox__label--${s}`]:s,"checkbox__label--disabled":o})},c)):null,v?e.createElement("span",{className:"checkbox__asterisk"},"*"):null),i&&e.createElement(a,{className:l("checkbox__description",{[`checkbox__label--${s}`]:s,"checkbox__label--disabled":o}),size:a.sizes.small},i))),k&&L&&e.createElement("div",{"aria-hidden":"true",className:l("checkbox__error",{[`checkbox__error--${s}`]:s})},k),n&&e.createElement("span",{className:"checkbox__extra"},n))});w.displayName="Checkbox";const E=Object.assign(w,{themes:j});var G=E;export{G as default};
1
+ "use client";var M=Object.defineProperty;var x=Object.getOwnPropertySymbols;var f=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var p=(c,o,i)=>o in c?M(c,o,{enumerable:!0,configurable:!0,writable:!0,value:i}):c[o]=i,g=(c,o)=>{for(var i in o||(o={}))f.call(o,i)&&p(c,i,o[i]);if(x)for(var i of x(o))u.call(o,i)&&p(c,i,o[i]);return c};var N=(c,o)=>{var i={};for(var l in c)f.call(c,l)&&o.indexOf(l)<0&&(i[l]=c[l]);if(c!=null&&x)for(var l of x(c))o.indexOf(l)<0&&u.call(c,l)&&(i[l]=c[l]);return i};import n from"classnames";import*as e from"react";import W from"../use-input-validation";import a from"../text";import{labelVariants as h,themes as j}from"./checkbox.types";const w=e.forwardRef((H,z)=>{var v=H,{children:c,disabled:o,description:i,extra:l,intermediate:m,labelVariant:_=h.default,label:r,name:C,showCustomError:y=!0,theme:s,value:L="",required:t,hasHover:$=!1,isWide:I=!0}=v,b=N(v,["children","disabled","description","extra","intermediate","labelVariant","label","name","showCustomError","theme","value","required","hasHover","isWide"]);const[T,B,k]=W();return e.createElement("div",{className:n("checkbox",{"checkbox--error":k,"checkbox--intermediate":m,"checkbox--wide":I,[`checkbox--${s}`]:s})},e.createElement("label",{className:n("checkbox__content",{"checkbox__content--hover":$,[`checkbox__content--${s}`]:s})},e.createElement("div",{className:"checkbox__main"},e.createElement("div",{className:"checkbox__main-top"},e.createElement("div",null,e.createElement("input",g({"aria-label":_===h.hidden?r:void 0,className:"checkbox__input",type:"checkbox",name:C,onChange:d=>{b.onChange&&b.onChange(d),T(d)},onInvalid:d=>{b.onInvalid&&b.onInvalid(d),B(d)},ref:z,value:L,disabled:o,required:t},b)),e.createElement("div",{className:n("checkbox__icon",{"checkbox__icon--intermediate":m,[`checkbox__icon--${s}`]:s})},e.createElement("svg",{className:"checkbox__intermediate",width:"10",height:"10",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("line",{x1:"0",y1:"5",x2:"10",y2:"5",stroke:"currentColor",strokeWidth:"2"})),e.createElement("svg",{className:"checkbox__check",width:"12",height:"10",viewBox:"0 0 12 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M4.76123 9.0605L0.700729 5L1.76123 3.9395L4.76123 6.9395L10.7612 0.939501L11.8217 2L4.76123 9.0605Z",fill:"currentColor"})))),_!==h.hidden?e.createElement(e.Fragment,null,r?e.createElement(a,{className:n("checkbox__label",{[`checkbox__label--${s}`]:s,"checkbox__label--disabled":o}),size:a.sizes.basic,italic:_===h.headline,theme:_===h.bold?a.themes.emphasis:_===h.headline?a.themes.headline:a.themes.normal},r):e.createElement("div",{className:n("checkbox__label",{[`checkbox__label--${s}`]:s,"checkbox__label--disabled":o})},c)):null,t?e.createElement("span",{className:"checkbox__asterisk"},"*"):null),i&&e.createElement(a,{className:n("checkbox__description",{[`checkbox__label--${s}`]:s,"checkbox__label--disabled":o}),size:a.sizes.small},i))),k&&y&&e.createElement("div",{"aria-hidden":"true",className:n("checkbox__error",{[`checkbox__error--${s}`]:s})},k),l&&e.createElement("span",{className:"checkbox__extra"},l))});w.displayName="Checkbox";const E=Object.assign(w,{themes:j,labelVariants:h});var G=E;export{G as default};
2
2
  //# sourceMappingURL=checkbox.js.map
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../../react/checkbox/checkbox.tsx"],
4
- "sourcesContent": ["'use client';\n\nimport cn from 'classnames';\nimport * as React from 'react';\n\nimport useInputValidation from '../use-input-validation';\nimport Text from '../text';\n\nimport { Checkbox as Props, labelVariants, themes } from './checkbox.types';\n\nconst RefCheckbox = React.forwardRef<\n HTMLInputElement,\n React.PropsWithChildren<Props>\n>(\n (\n {\n children,\n disabled,\n description,\n extra,\n intermediate,\n labelVariant = labelVariants.default,\n label,\n name,\n showCustomError = true,\n theme,\n value = '',\n required,\n hasHover = false,\n isWide = true,\n ...restProps\n },\n ref,\n ) => {\n const [onChange, onInvalid, error] = useInputValidation();\n\n return (\n <div\n className={cn('checkbox', {\n 'checkbox--error': error,\n 'checkbox--intermediate': intermediate,\n 'checkbox--wide': isWide,\n [`checkbox--${theme}`]: theme,\n })}\n >\n <label\n className={cn('checkbox__content', {\n 'checkbox__content--hover': hasHover,\n [`checkbox__content--${theme}`]: theme,\n })}\n >\n <div className=\"checkbox__main\">\n <div className=\"checkbox__main-top\">\n <div>\n <input\n aria-label={\n labelVariant === labelVariants.hidden ? label : undefined\n }\n className=\"checkbox__input\"\n type=\"checkbox\"\n name={name}\n onChange={e => {\n // NOTE: If props specify an `onChange`, we need to call that too\n if (restProps.onChange) restProps.onChange(e);\n onChange(e);\n }}\n onInvalid={e => {\n // NOTE: If props specify an `onInvalid`, we need to call that too\n if (restProps.onInvalid) restProps.onInvalid(e);\n onInvalid(e);\n }}\n ref={ref}\n value={value}\n disabled={disabled}\n required={required}\n {...restProps}\n />\n\n <div\n className={cn('checkbox__icon', {\n 'checkbox__icon--intermediate': intermediate,\n [`checkbox__icon--${theme}`]: theme,\n })}\n >\n <svg\n className=\"checkbox__intermediate\"\n width=\"10\"\n height=\"10\"\n viewBox=\"0 0 10 10\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <line\n x1=\"0\"\n y1=\"5\"\n x2=\"10\"\n y2=\"5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n />\n </svg>\n <svg\n className=\"checkbox__check\"\n width=\"12\"\n height=\"10\"\n viewBox=\"0 0 12 10\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.76123 9.0605L0.700729 5L1.76123 3.9395L4.76123 6.9395L10.7612 0.939501L11.8217 2L4.76123 9.0605Z\"\n fill=\"currentColor\"\n />\n </svg>\n </div>\n </div>\n {labelVariant !== labelVariants.hidden ? (\n <>\n {label ? (\n <Text\n className={cn('checkbox__label', {\n [`checkbox__label--${theme}`]: theme,\n 'checkbox__label--disabled': disabled,\n })}\n size={Text.sizes.basic}\n italic={labelVariant === labelVariants.headline}\n theme={\n labelVariant === labelVariants.bold\n ? Text.themes.emphasis\n : labelVariant === labelVariants.headline\n ? Text.themes.headline\n : Text.themes.normal\n }\n >\n {label}\n </Text>\n ) : (\n <div\n className={cn('checkbox__label', {\n [`checkbox__label--${theme}`]: theme,\n 'checkbox__label--disabled': disabled,\n })}\n >\n {children}\n </div>\n )}\n </>\n ) : null}\n {required ? <span className=\"checkbox__asterisk\">*</span> : null}\n </div>\n {description && (\n <Text\n className={cn('checkbox__description', {\n [`checkbox__label--${theme}`]: theme,\n 'checkbox__label--disabled': disabled,\n })}\n size={Text.sizes.small}\n >\n {description}\n </Text>\n )}\n </div>\n </label>\n\n {/* NOTE: This is aria-hidden because reporting of validation errors is handled by the browser */}\n {error && showCustomError && (\n <div\n aria-hidden=\"true\"\n className={cn('checkbox__error', {\n [`checkbox__error--${theme}`]: theme,\n })}\n >\n {error}\n </div>\n )}\n\n {extra && <span className=\"checkbox__extra\">{extra}</span>}\n </div>\n );\n },\n);\n\n// NOTE: If this isn't set, stack traces say \"forwardRef\" instead of \"Checkbox\"\nRefCheckbox.displayName = 'Checkbox';\n\n// NOTE: The component is redeclared here because TypeScript doesn't accept assigning extra properties to `RefComponent` when it's declared\nconst Checkbox: typeof RefCheckbox & {\n themes: typeof themes;\n} = Object.assign(RefCheckbox, { themes });\n\nexport default Checkbox;\n"],
5
- "mappings": "wgBAEA,OAAOA,MAAQ,aACf,UAAYC,MAAW,QAEvB,OAAOC,MAAwB,0BAC/B,OAAOC,MAAU,UAEjB,OAA4B,iBAAAC,EAAe,UAAAC,MAAc,mBAEzD,MAAMC,EAAcL,EAAM,WAIxB,CACEM,EAiBAC,IACG,CAlBH,IAAAC,EAAAF,EACE,UAAAG,EACA,SAAAC,EACA,YAAAC,EACA,MAAAC,EACA,aAAAC,EACA,aAAAC,EAAeX,EAAc,QAC7B,MAAAY,EACA,KAAAC,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"sourcesContent": ["'use client';\n\nimport cn from 'classnames';\nimport * as React from 'react';\n\nimport useInputValidation from '../use-input-validation';\nimport Text from '../text';\n\nimport { Checkbox as Props, labelVariants, themes } from './checkbox.types';\n\nconst RefCheckbox = React.forwardRef<\n HTMLInputElement,\n React.PropsWithChildren<Props>\n>(\n (\n {\n children,\n disabled,\n description,\n extra,\n intermediate,\n labelVariant = labelVariants.default,\n label,\n name,\n showCustomError = true,\n theme,\n value = '',\n required,\n hasHover = false,\n isWide = true,\n ...restProps\n },\n ref,\n ) => {\n const [onChange, onInvalid, error] = useInputValidation();\n\n return (\n <div\n className={cn('checkbox', {\n 'checkbox--error': error,\n 'checkbox--intermediate': intermediate,\n 'checkbox--wide': isWide,\n [`checkbox--${theme}`]: theme,\n })}\n >\n <label\n className={cn('checkbox__content', {\n 'checkbox__content--hover': hasHover,\n [`checkbox__content--${theme}`]: theme,\n })}\n >\n <div className=\"checkbox__main\">\n <div className=\"checkbox__main-top\">\n <div>\n <input\n aria-label={\n labelVariant === labelVariants.hidden ? label : undefined\n }\n className=\"checkbox__input\"\n type=\"checkbox\"\n name={name}\n onChange={e => {\n // NOTE: If props specify an `onChange`, we need to call that too\n if (restProps.onChange) restProps.onChange(e);\n onChange(e);\n }}\n onInvalid={e => {\n // NOTE: If props specify an `onInvalid`, we need to call that too\n if (restProps.onInvalid) restProps.onInvalid(e);\n onInvalid(e);\n }}\n ref={ref}\n value={value}\n disabled={disabled}\n required={required}\n {...restProps}\n />\n\n <div\n className={cn('checkbox__icon', {\n 'checkbox__icon--intermediate': intermediate,\n [`checkbox__icon--${theme}`]: theme,\n })}\n >\n <svg\n className=\"checkbox__intermediate\"\n width=\"10\"\n height=\"10\"\n viewBox=\"0 0 10 10\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <line\n x1=\"0\"\n y1=\"5\"\n x2=\"10\"\n y2=\"5\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n />\n </svg>\n <svg\n className=\"checkbox__check\"\n width=\"12\"\n height=\"10\"\n viewBox=\"0 0 12 10\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n >\n <path\n d=\"M4.76123 9.0605L0.700729 5L1.76123 3.9395L4.76123 6.9395L10.7612 0.939501L11.8217 2L4.76123 9.0605Z\"\n fill=\"currentColor\"\n />\n </svg>\n </div>\n </div>\n {labelVariant !== labelVariants.hidden ? (\n <>\n {label ? (\n <Text\n className={cn('checkbox__label', {\n [`checkbox__label--${theme}`]: theme,\n 'checkbox__label--disabled': disabled,\n })}\n size={Text.sizes.basic}\n italic={labelVariant === labelVariants.headline}\n theme={\n labelVariant === labelVariants.bold\n ? Text.themes.emphasis\n : labelVariant === labelVariants.headline\n ? Text.themes.headline\n : Text.themes.normal\n }\n >\n {label}\n </Text>\n ) : (\n <div\n className={cn('checkbox__label', {\n [`checkbox__label--${theme}`]: theme,\n 'checkbox__label--disabled': disabled,\n })}\n >\n {children}\n </div>\n )}\n </>\n ) : null}\n {required ? <span className=\"checkbox__asterisk\">*</span> : null}\n </div>\n {description && (\n <Text\n className={cn('checkbox__description', {\n [`checkbox__label--${theme}`]: theme,\n 'checkbox__label--disabled': disabled,\n })}\n size={Text.sizes.small}\n >\n {description}\n </Text>\n )}\n </div>\n </label>\n\n {/* NOTE: This is aria-hidden because reporting of validation errors is handled by the browser */}\n {error && showCustomError && (\n <div\n aria-hidden=\"true\"\n className={cn('checkbox__error', {\n [`checkbox__error--${theme}`]: theme,\n })}\n >\n {error}\n </div>\n )}\n\n {extra && <span className=\"checkbox__extra\">{extra}</span>}\n </div>\n );\n },\n);\n\n// NOTE: If this isn't set, stack traces say \"forwardRef\" instead of \"Checkbox\"\nRefCheckbox.displayName = 'Checkbox';\n\n// NOTE: The component is redeclared here because TypeScript doesn't accept assigning extra properties to `RefComponent` when it's declared\nconst Checkbox: typeof RefCheckbox & {\n themes: typeof themes;\n labelVariants: typeof labelVariants;\n} = Object.assign(RefCheckbox, { themes, labelVariants });\n\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,CACH,CAEJ,CACF,EAGCgB,GAASV,GACRjB,EAAA,cAAC,OACC,cAAY,OACZ,UAAWD,EAAG,kBAAmB,CAC/B,CAAC,oBAAoBmB,CAAK,EAAE,EAAGA,CACjC,CAAC,GAEAS,CACH,EAGDf,GAASZ,EAAA,cAAC,QAAK,UAAU,mBAAmBY,CAAM,CACrD,CAEJ,CACF,EAGAP,EAAY,YAAc,WAG1B,MAAMyB,EAGF,OAAO,OAAOzB,EAAa,CAAE,OAAAD,EAAQ,cAAAD,CAAc,CAAC,EAExD,IAAO4B,EAAQD",
6
6
  "names": ["cn", "React", "useInputValidation", "Text", "labelVariants", "themes", "RefCheckbox", "_a", "ref", "_b", "children", "disabled", "description", "extra", "intermediate", "labelVariant", "label", "name", "showCustomError", "theme", "value", "required", "hasHover", "isWide", "restProps", "__objRest", "onChange", "onInvalid", "error", "__spreadValues", "e", "Checkbox", "checkbox_default"]
7
7
  }
@@ -136,7 +136,6 @@
136
136
  &--theme-light {
137
137
  color: var(--on-surface-featured);
138
138
  &-disabled {
139
-
140
139
  color: var(--on-surface-primary-disabled);
141
140
  }
142
141
  }
@@ -146,7 +145,6 @@
146
145
  color: var(--on-fixed-background-primary-disabled);
147
146
  }
148
147
  }
149
-
150
148
  }
151
149
 
152
150
  &__error {
@@ -164,7 +162,7 @@
164
162
  gap: spacing.$xs;
165
163
 
166
164
  &--theme-light {
167
- color: var(--on-background-primary-disabled);
165
+ color: var(--on-surface-primary-alternate);
168
166
  &--error {
169
167
  color: var(--on-surface-error);
170
168
  }